nuxt-ignis 0.4.0 → 0.5.0-rc.2

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 (1755) hide show
  1. package/.data/content/contents.sqlite +0 -0
  2. package/.env +1 -1
  3. package/.nuxt/app.config.mjs +8 -3
  4. package/.nuxt/components.d.ts +287 -749
  5. package/.nuxt/content/components.ts +118 -116
  6. package/.nuxt/dev/index.mjs +1074 -355
  7. package/.nuxt/dev/index.mjs.map +1 -1
  8. package/.nuxt/dist/server/client.manifest.json +2 -2
  9. package/.nuxt/dist/server/client.manifest.mjs +2 -2
  10. package/.nuxt/eslint-typegen.d.ts +144 -21
  11. package/.nuxt/eslint.config.d.mts +3 -3
  12. package/.nuxt/eslint.config.mjs +11 -11
  13. package/.nuxt/i18n-route-resources.mjs +3 -0
  14. package/.nuxt/imports.d.ts +79 -86
  15. package/.nuxt/manifest/latest.json +1 -1
  16. package/.nuxt/manifest/meta/dev.json +1 -1
  17. package/.nuxt/mdc-highlighter.mjs +1 -1
  18. package/.nuxt/mdc-image-component.mjs +1 -1
  19. package/.nuxt/mdc-imports.mjs +1 -1
  20. package/.nuxt/module/nuxt-robots.d.ts +12 -12
  21. package/.nuxt/module/nuxt-seo-utils.assets.d.ts +1 -1
  22. package/.nuxt/module/nuxt-seo-utils.d.ts +10 -10
  23. package/.nuxt/module/nuxt-site-config.d.ts +11 -8
  24. package/.nuxt/module/nuxt-sitemap.d.ts +48 -0
  25. package/.nuxt/nitro.json +5 -5
  26. package/.nuxt/nuxt.d.ts +18 -19
  27. package/.nuxt/nuxt.json +2 -2
  28. package/.nuxt/nuxt.node.d.ts +30 -0
  29. package/.nuxt/nuxt.shared.d.ts +5 -0
  30. package/.nuxt/tsconfig.app.json +483 -0
  31. package/.nuxt/tsconfig.json +310 -301
  32. package/.nuxt/tsconfig.node.json +235 -0
  33. package/.nuxt/tsconfig.server.json +198 -167
  34. package/.nuxt/tsconfig.shared.json +283 -0
  35. package/.nuxt/types/app.config.d.ts +8 -2
  36. package/.nuxt/types/build.d.ts +3 -2
  37. package/.nuxt/types/components.d.ts +309 -0
  38. package/.nuxt/types/i18n-plugin.d.ts +25 -6
  39. package/.nuxt/types/imports.d.ts +710 -714
  40. package/.nuxt/types/modules.d.ts +599 -0
  41. package/.nuxt/types/neon.d.ts +11 -8
  42. package/.nuxt/types/nitro-imports.d.ts +394 -355
  43. package/.nuxt/types/nitro-middleware.d.ts +5 -0
  44. package/.nuxt/types/nitro-nuxt.d.ts +30 -2
  45. package/.nuxt/types/nitro-routes.d.ts +28 -25
  46. package/.nuxt/types/plugins.d.ts +42 -39
  47. package/.nuxt/types/runtime-config.d.ts +1018 -0
  48. package/.nuxt/types/ui.d.ts +3 -3
  49. package/.nuxt/ui/button.ts +42 -42
  50. package/.nuxt/ui/command-palette.ts +2 -1
  51. package/.nuxt/ui/drawer.ts +1 -1
  52. package/.nuxt/ui/file-upload.ts +290 -0
  53. package/.nuxt/ui/index.ts +1 -0
  54. package/.nuxt/ui/input.ts +1 -1
  55. package/.nuxt/ui/kbd.ts +167 -3
  56. package/.nuxt/ui/select.ts +7 -7
  57. package/.nuxt/ui/table.ts +8 -0
  58. package/.nuxt/ui/tabs.ts +4 -2
  59. package/.nuxt/ui/textarea.ts +1 -1
  60. package/.nuxt/ui/toast.ts +8 -15
  61. package/.nuxt/ui/tooltip.ts +1 -1
  62. package/.nuxt/ui-image-component.ts +1 -1
  63. package/.output/nitro.json +15 -0
  64. package/.output/public/__nuxt_content/content/sql_dump.txt +1 -0
  65. package/.output/public/_fonts/31PZhXd_YTCmsoiPQZc-xVtAWAkLogRFRj5mWplmKFE-6WsTw05QKugcwLySGc_b9CIheG8j8LRyo47qPL430Mk.woff2 +0 -0
  66. package/.output/public/_fonts/9FWLUGCSCYLRIRMtCzLrt4Go7DMFXOeN_pyCOJD_44Y-Yh2wNaqrq_e759vVlc3tX81lMwRu9ktkQJX_Svgs-VI.woff2 +0 -0
  67. package/.output/public/_fonts/BQnDL9FFy0Q_jvURlmv87luvmXLSMbSuXsfZv_R2Rkk-y5MVrLtP4J_1al8rz8R-MDaUOMAHckAWCwDrKhw25fY.woff2 +0 -0
  68. package/.output/public/_fonts/EP1810cmAtyahQPDHB6nvBzRkIG5RcNv4u5vTy1aYHU-6h0m1Bf2RaAhaXNIrP4eW5ztakwJFN8JcCXPea_zL8E.woff2 +0 -0
  69. package/.output/public/_fonts/JNWOTRocaYj0gq52vW_s7sHAdSMUetrRmhhggCVxyZ0-8R9ucQ623nsXJTayzizuOYtVntUNPQzR8aWYpk8a8d8.woff2 +0 -0
  70. package/.output/public/_fonts/JSrPAbQHsQEdUrIE5Ts6fIQ2ymsa4i7HhiCpui6ulCc-_AoyGWssOn06OMh3ZY_GddBBPRny4Igxin4fT_1K6F4.woff2 +0 -0
  71. package/.output/public/_fonts/Jtqhy44WKYEjGWTSusP5YJfJv7Wf74QqgkBOI9u_77s-Rl_Bht5SvmaotE20bkavBEAJEEGEa0hcz3d_8yOeXmw.woff +0 -0
  72. package/.output/public/_fonts/M-60tFLmAJxdPjHsK-2ILWom5zPbu37lb3Qex2waL14-A9y4QcXALPi_RvQsmRsSFUxrT3_J213W4zPFIXetlbw.woff2 +0 -0
  73. package/.output/public/_fonts/T-ozk-QJ_Ck37B2RHPl2i-s_gAGGo7suFgagWoJ8bO4-maDXQ_nEXKAaLHm4Joud3DJR9EVzS7QXWMWK8YOTIcs.woff2 +0 -0
  74. package/.output/public/_fonts/TTYbISAfwy-y4uVGS9AH32sK7b2xJsoCESo64ryf8LU-y87nRMqBGo42rUOW9tWZa06o4oTa0USJrAMMoKDamgs.woff2 +0 -0
  75. package/.output/public/_fonts/XbAtjIvy1UErjg9eu_v7X3zPLS_AwsmqVsR9fG-JB6o-s6NA3uLuPs0vnwZNhOTJ1g_7NVire0Uvng_2zP6mjNQ.woff2 +0 -0
  76. package/.output/public/_fonts/Y_5DOsLit49q2i2tbcNxnyUen9__GPCX8mwAi03q1aA-pBCjVKDT5tBT3BJckh9uzNkfUWeUIBPz9Y8T55vcj8E.woff2 +0 -0
  77. package/.output/public/_fonts/ZHaz3DhCHNWhsElqYfuM71rfBBDgjuU2sd34vaYJwQg-71NZaZSGjxzAGjCMnCc2zS5rS_EGA0xHKPGCggWuXik.woff +0 -0
  78. package/.output/public/_fonts/ZLm6CLvwhQbamZ73M80jbqz7DuOkHlT_HRyXHG7YfVs-t7L_F0sYO8m44V7ZmFyCOiGNJDIBFFLVfLeLwCIUhsI.woff2 +0 -0
  79. package/.output/public/_fonts/aPa9az0DeE4U5rqM-Ov0Vl_obQis_d6sScLNygGkvxw-4s8awL3_7NCZIzHTaY2tD681prJPuNHGqkbChz7OJeE.woff2 +0 -0
  80. package/.output/public/_fonts/h9PwCjip_BNPVO50hT4v29USWFv6H3ZlYx_IestfqgY-sYfLVuZXl9E1aYbn1S0pAr4zfdQ_WT7iBZhrgQY6N-4.woff2 +0 -0
  81. package/.output/public/_fonts/kgyHMsxRmhh06xcV0yKMKdTKQBsQpXGi7erqwaqgjXg-BgCmQXkW3N6talUbQSKexB2sHUT0qGEzmM4uMcnDAbI.woff +0 -0
  82. package/.output/public/_fonts/l00UCz_-QvI_NO8AGcu7ooAcrFDlxYUdxCSCh6gBwd4-vPjTZ3ztgw27A2TnHeCycxPvUtXWEVpG33_97ra6su8.woff2 +0 -0
  83. package/.output/public/_fonts/nuenOq7ZFSZ65QudJO7uQ0sOjDqow2WjfXrQh4S9gEc-uF81rxcswER5srfhzyLfPoGlKNAIt2C_BvkXFOc19rw.woff2 +0 -0
  84. package/.output/public/_fonts/pWMvGwciZ-EfQsfR2ueelhC7Jnt5K-8Px8PjPK0mDII-eT9iD0iZ9WWhTJs6V5GxXr0iaUwx_WxgGGriOiGb81o.woff2 +0 -0
  85. package/.output/public/_fonts/y3mP_zJcojQwJn30TpF_XxDzgeM6Nbk7MaRg1Ne0YcI-lFx13nqMCMgk_S70gRmwEHXlE5BLp1B4W82RpFihpMs.woff2 +0 -0
  86. package/.output/public/_fonts/zr3WxpLd5PmlBr7e4PWGkhZv6XTg70Pi4sCbC-CEV0Q-v2yL98XOiD3FkbiYlYYeAeTSVSkgAckeOp55Q5kHJmU.woff2 +0 -0
  87. package/.output/public/_ignis-config.json +1989 -0
  88. package/.output/public/_nuxt/1soVlS0z.js +1 -0
  89. package/.output/public/_nuxt/B7rsWaa2.js +1 -0
  90. package/.output/public/_nuxt/BFreiu22.js +1 -0
  91. package/.output/public/_nuxt/BLcTglbc.js +1 -0
  92. package/.output/public/_nuxt/Bhd4_yFT.js +1 -0
  93. package/.output/public/_nuxt/Bhpb4lc3.js +1 -0
  94. package/.output/public/_nuxt/Bi2eMDmd.js +1 -0
  95. package/.output/public/_nuxt/Bm30MqE0.js +1 -0
  96. package/.output/public/_nuxt/BqsN2CZp.js +1 -0
  97. package/.output/public/_nuxt/Bs3IGOdt.js +1 -0
  98. package/.output/public/_nuxt/ByaiRTkI.js +1 -0
  99. package/.output/public/_nuxt/C9ePPGPX.js +94 -0
  100. package/.output/public/_nuxt/CA578xwz.js +1 -0
  101. package/.output/public/_nuxt/CDttUXKg.js +1 -0
  102. package/.output/public/_nuxt/CQozUI2A.js +1 -0
  103. package/.output/public/_nuxt/CSN71QT8.js +1 -0
  104. package/.output/public/_nuxt/CqCaqSd2.js +1 -0
  105. package/.output/public/_nuxt/D8v-efI7.js +1 -0
  106. package/.output/public/_nuxt/DBJqMhGy.js +35 -0
  107. package/.output/public/_nuxt/DR4hWRk7.js +1 -0
  108. package/.output/public/_nuxt/DRroQ-Xq.js +1 -0
  109. package/.output/public/_nuxt/DStnBfJS.js +1 -0
  110. package/.output/public/_nuxt/DXTYyv-V.js +1 -0
  111. package/.output/public/_nuxt/DeS1g0YT.js +1 -0
  112. package/.output/public/_nuxt/Deb6R53f.js +1 -0
  113. package/.output/public/_nuxt/DiDHllLr.js +1 -0
  114. package/.output/public/_nuxt/DvwlldUy.js +1 -0
  115. package/.output/public/_nuxt/DyCICqRh.js +1 -0
  116. package/.output/public/_nuxt/DzT4wm3Y.js +1 -0
  117. package/.output/public/_nuxt/E8nje24C.js +1 -0
  118. package/.output/public/_nuxt/ProsePre.D5orA6B_.css +1 -0
  119. package/.output/public/_nuxt/RbPLLy5S.js +1 -0
  120. package/.output/public/_nuxt/aetvq4w9.js +6767 -0
  121. package/.output/public/_nuxt/builds/latest.json +1 -0
  122. package/.output/public/_nuxt/builds/meta/cbc9377a-971e-4db1-b4b1-01807b82ee58.json +1 -0
  123. package/.output/public/_nuxt/entry.whtwWr_z.css +1 -0
  124. package/.output/public/_nuxt/error-404.Cq535Uij.css +1 -0
  125. package/.output/public/_nuxt/error-500.BHm_N15n.css +1 -0
  126. package/.output/public/_nuxt/jpnxxCHq.js +1 -0
  127. package/.output/public/_nuxt/sHsV3x2B.js +1 -0
  128. package/.output/public/_nuxt/sQEqbbg2.js +1 -0
  129. package/.output/public/_nuxt/vueform.ChEauysg.css +1 -0
  130. package/.output/public/favicon.ico +0 -0
  131. package/.output/public/nuxt-ignis.png +0 -0
  132. package/.output/public/nuxt-spec.png +0 -0
  133. package/.output/public/unsplash.jpg +0 -0
  134. package/.output/server/chunks/_/error-500.mjs +10 -0
  135. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  136. package/.output/server/chunks/_/i18n.config.mjs +39 -0
  137. package/.output/server/chunks/_/i18n.config.mjs.map +1 -0
  138. package/.output/server/chunks/_/nitro.mjs +12953 -0
  139. package/.output/server/chunks/_/nitro.mjs.map +1 -0
  140. package/.output/server/chunks/build/client.manifest.mjs +511 -0
  141. package/.output/server/chunks/build/client.manifest.mjs.map +1 -0
  142. package/.output/server/chunks/build/database.compressed.mjs +4 -0
  143. package/.output/server/chunks/build/database.compressed.mjs.map +1 -0
  144. package/.output/server/chunks/raw/headers.mjs +5 -0
  145. package/.output/server/chunks/raw/headers.mjs.map +1 -0
  146. package/.output/server/chunks/routes/api/neonTest.mjs +41 -0
  147. package/.output/server/chunks/routes/api/neonTest.mjs.map +1 -0
  148. package/.output/server/chunks/routes/renderer.mjs +352 -0
  149. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  150. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  151. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  152. package/.output/server/chunks/virtual/child-sources.mjs +4 -0
  153. package/.output/server/chunks/virtual/child-sources.mjs.map +1 -0
  154. package/.output/server/chunks/virtual/global-sources.mjs +48 -0
  155. package/.output/server/chunks/virtual/global-sources.mjs.map +1 -0
  156. package/.output/server/index.mjs +49 -0
  157. package/.output/server/index.mjs.map +1 -0
  158. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/convertor/create.cjs +32 -0
  159. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/data-patch.cjs +7 -0
  160. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/data.cjs +97 -0
  161. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/SyntaxError.cjs +16 -0
  162. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/generate.cjs +135 -0
  163. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/index.cjs +13 -0
  164. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/parse.cjs +588 -0
  165. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/tokenizer.cjs +56 -0
  166. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/walk.cjs +56 -0
  167. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/generator/create.cjs +103 -0
  168. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/generator/sourceMap.cjs +96 -0
  169. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/generator/token-before.cjs +170 -0
  170. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/index.cjs +63 -0
  171. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/Lexer.cjs +459 -0
  172. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/error.cjs +128 -0
  173. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/generic-an-plus-b.cjs +235 -0
  174. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/generic-const.cjs +12 -0
  175. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/generic-urange.cjs +149 -0
  176. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/generic.cjs +573 -0
  177. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/match-graph.cjs +459 -0
  178. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/match.cjs +632 -0
  179. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/prepare-tokens.cjs +54 -0
  180. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/search.cjs +65 -0
  181. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/structure.cjs +168 -0
  182. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/trace.cjs +73 -0
  183. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/parser/SyntaxError.cjs +69 -0
  184. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/parser/create.cjs +336 -0
  185. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/parser/sequence.cjs +47 -0
  186. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/font-face.cjs +12 -0
  187. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/import.cjs +37 -0
  188. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/index.cjs +17 -0
  189. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/media.cjs +16 -0
  190. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/page.cjs +16 -0
  191. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/supports.cjs +77 -0
  192. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/config/lexer.cjs +12 -0
  193. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/config/mix.cjs +142 -0
  194. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/config/parser.cjs +34 -0
  195. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/config/walker.cjs +9 -0
  196. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/create.cjs +56 -0
  197. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/function/expression.cjs +11 -0
  198. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/function/var.cjs +43 -0
  199. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/index.cjs +14 -0
  200. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/AnPlusB.cjs +293 -0
  201. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Atrule.cjs +103 -0
  202. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/AtrulePrelude.cjs +52 -0
  203. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/AttributeSelector.cjs +148 -0
  204. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Block.cjs +90 -0
  205. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Brackets.cjs +38 -0
  206. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/CDC.cjs +26 -0
  207. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/CDO.cjs +26 -0
  208. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/ClassSelector.cjs +31 -0
  209. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Combinator.cjs +61 -0
  210. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Comment.cjs +40 -0
  211. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Declaration.cjs +166 -0
  212. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/DeclarationList.cjs +50 -0
  213. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Dimension.cjs +30 -0
  214. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Function.cjs +45 -0
  215. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Hash.cjs +30 -0
  216. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/IdSelector.cjs +33 -0
  217. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Identifier.cjs +25 -0
  218. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/MediaFeature.cjs +76 -0
  219. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/MediaQuery.cjs +61 -0
  220. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/MediaQueryList.cjs +41 -0
  221. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Nth.cjs +54 -0
  222. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Number.cjs +25 -0
  223. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Operator.cjs +28 -0
  224. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Parentheses.cjs +38 -0
  225. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Percentage.cjs +25 -0
  226. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/PseudoClassSelector.cjs +65 -0
  227. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/PseudoElementSelector.cjs +67 -0
  228. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Ratio.cjs +67 -0
  229. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Raw.cjs +48 -0
  230. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Rule.cjs +58 -0
  231. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Selector.cjs +39 -0
  232. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/SelectorList.cjs +43 -0
  233. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/String.cjs +26 -0
  234. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/StyleSheet.cjs +83 -0
  235. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/TypeSelector.cjs +59 -0
  236. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/UnicodeRange.cjs +158 -0
  237. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Url.cjs +54 -0
  238. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Value.cjs +26 -0
  239. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/WhiteSpace.cjs +34 -0
  240. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/index-parse.cjs +85 -0
  241. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/index.cjs +85 -0
  242. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/pseudo/index.cjs +52 -0
  243. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/atrulePrelude.cjs +9 -0
  244. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/default.cjs +76 -0
  245. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/index.cjs +11 -0
  246. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/selector.cjs +84 -0
  247. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/value.cjs +29 -0
  248. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/OffsetToLocation.cjs +91 -0
  249. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/TokenStream.cjs +264 -0
  250. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/adopt-buffer.cjs +13 -0
  251. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/char-code-definitions.cjs +231 -0
  252. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/index.cjs +554 -0
  253. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/names.cjs +31 -0
  254. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/types.cjs +57 -0
  255. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/utils.cjs +261 -0
  256. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/List.cjs +473 -0
  257. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/clone.cjs +25 -0
  258. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/create-custom-error.cjs +18 -0
  259. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/ident.cjs +102 -0
  260. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/names.cjs +113 -0
  261. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/string.cjs +99 -0
  262. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/url.cjs +108 -0
  263. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/version.cjs +5 -0
  264. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/walker/create.cjs +291 -0
  265. package/.output/server/node_modules/.nitro/css-tree@2.2.1/data/patch.json +739 -0
  266. package/.output/server/node_modules/.nitro/css-tree@2.2.1/package.json +127 -0
  267. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/convertor/create.cjs +32 -0
  268. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/data-patch.cjs +7 -0
  269. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/data.cjs +99 -0
  270. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/SyntaxError.cjs +16 -0
  271. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/generate.cjs +135 -0
  272. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/index.cjs +13 -0
  273. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/parse.cjs +588 -0
  274. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/tokenizer.cjs +56 -0
  275. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/walk.cjs +56 -0
  276. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/generator/create.cjs +103 -0
  277. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/generator/sourceMap.cjs +96 -0
  278. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/generator/token-before.cjs +170 -0
  279. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/index.cjs +63 -0
  280. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/Lexer.cjs +470 -0
  281. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/error.cjs +128 -0
  282. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/generic-an-plus-b.cjs +235 -0
  283. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/generic-const.cjs +12 -0
  284. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/generic-urange.cjs +149 -0
  285. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/generic.cjs +573 -0
  286. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/match-graph.cjs +459 -0
  287. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/match.cjs +632 -0
  288. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/prepare-tokens.cjs +54 -0
  289. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/search.cjs +65 -0
  290. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/structure.cjs +168 -0
  291. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/trace.cjs +73 -0
  292. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/units.cjs +38 -0
  293. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/parser/SyntaxError.cjs +69 -0
  294. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/parser/create.cjs +336 -0
  295. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/parser/sequence.cjs +47 -0
  296. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/font-face.cjs +12 -0
  297. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/import.cjs +37 -0
  298. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/index.cjs +19 -0
  299. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/media.cjs +16 -0
  300. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/nest.cjs +16 -0
  301. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/page.cjs +16 -0
  302. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/supports.cjs +77 -0
  303. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/config/lexer.cjs +12 -0
  304. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/config/mix.cjs +119 -0
  305. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/config/parser.cjs +34 -0
  306. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/config/walker.cjs +9 -0
  307. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/create.cjs +57 -0
  308. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/function/expression.cjs +11 -0
  309. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/function/var.cjs +43 -0
  310. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/index.cjs +14 -0
  311. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/AnPlusB.cjs +293 -0
  312. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Atrule.cjs +103 -0
  313. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/AtrulePrelude.cjs +52 -0
  314. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/AttributeSelector.cjs +148 -0
  315. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Block.cjs +96 -0
  316. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Brackets.cjs +38 -0
  317. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/CDC.cjs +26 -0
  318. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/CDO.cjs +26 -0
  319. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/ClassSelector.cjs +31 -0
  320. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Combinator.cjs +61 -0
  321. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Comment.cjs +40 -0
  322. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Declaration.cjs +166 -0
  323. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/DeclarationList.cjs +62 -0
  324. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Dimension.cjs +30 -0
  325. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Function.cjs +45 -0
  326. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Hash.cjs +30 -0
  327. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/IdSelector.cjs +33 -0
  328. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Identifier.cjs +25 -0
  329. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/MediaFeature.cjs +76 -0
  330. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/MediaQuery.cjs +61 -0
  331. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/MediaQueryList.cjs +41 -0
  332. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/NestingSelector.cjs +29 -0
  333. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Nth.cjs +54 -0
  334. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Number.cjs +25 -0
  335. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Operator.cjs +28 -0
  336. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Parentheses.cjs +38 -0
  337. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Percentage.cjs +25 -0
  338. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/PseudoClassSelector.cjs +65 -0
  339. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/PseudoElementSelector.cjs +67 -0
  340. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Ratio.cjs +67 -0
  341. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Raw.cjs +48 -0
  342. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Rule.cjs +58 -0
  343. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Selector.cjs +39 -0
  344. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/SelectorList.cjs +43 -0
  345. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/String.cjs +26 -0
  346. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/StyleSheet.cjs +83 -0
  347. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/TypeSelector.cjs +59 -0
  348. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/UnicodeRange.cjs +158 -0
  349. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Url.cjs +54 -0
  350. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Value.cjs +26 -0
  351. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/WhiteSpace.cjs +34 -0
  352. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/index-parse.cjs +87 -0
  353. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/index.cjs +87 -0
  354. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/pseudo/index.cjs +54 -0
  355. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/atrulePrelude.cjs +9 -0
  356. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/default.cjs +76 -0
  357. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/index.cjs +11 -0
  358. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/selector.cjs +88 -0
  359. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/value.cjs +29 -0
  360. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/OffsetToLocation.cjs +91 -0
  361. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/TokenStream.cjs +264 -0
  362. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/adopt-buffer.cjs +13 -0
  363. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/char-code-definitions.cjs +231 -0
  364. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/index.cjs +554 -0
  365. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/names.cjs +31 -0
  366. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/types.cjs +57 -0
  367. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/utils.cjs +261 -0
  368. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/List.cjs +473 -0
  369. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/clone.cjs +25 -0
  370. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/create-custom-error.cjs +18 -0
  371. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/ident.cjs +102 -0
  372. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/names.cjs +113 -0
  373. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/string.cjs +99 -0
  374. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/url.cjs +108 -0
  375. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/version.cjs +5 -0
  376. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/walker/create.cjs +291 -0
  377. package/.output/server/node_modules/.nitro/css-tree@2.3.1/data/patch.json +725 -0
  378. package/.output/server/node_modules/.nitro/css-tree@2.3.1/package.json +126 -0
  379. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/decode.js +536 -0
  380. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/decode_codepoint.js +76 -0
  381. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/encode.js +77 -0
  382. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/escape.js +122 -0
  383. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-html.js +9 -0
  384. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-xml.js +9 -0
  385. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/encode-html.js +12 -0
  386. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/index.js +126 -0
  387. package/.output/server/node_modules/.nitro/entities@4.5.0/package.json +90 -0
  388. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/decode-codepoint.js +72 -0
  389. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/decode.js +497 -0
  390. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/escape.js +117 -0
  391. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/generated/decode-data-html.js +7 -0
  392. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/generated/decode-data-xml.js +7 -0
  393. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/package.json +3 -0
  394. package/.output/server/node_modules/.nitro/entities@6.0.1/package.json +118 -0
  395. package/.output/server/node_modules/.nitro/mdn-data@2.0.28/css/at-rules.json +620 -0
  396. package/.output/server/node_modules/.nitro/mdn-data@2.0.28/css/properties.json +9297 -0
  397. package/.output/server/node_modules/.nitro/mdn-data@2.0.28/css/syntaxes.json +794 -0
  398. package/.output/server/node_modules/.nitro/mdn-data@2.0.28/package.json +38 -0
  399. package/.output/server/node_modules/.nitro/mdn-data@2.0.30/css/at-rules.json +620 -0
  400. package/.output/server/node_modules/.nitro/mdn-data@2.0.30/css/properties.json +9626 -0
  401. package/.output/server/node_modules/.nitro/mdn-data@2.0.30/css/syntaxes.json +866 -0
  402. package/.output/server/node_modules/.nitro/mdn-data@2.0.30/package.json +38 -0
  403. package/.output/server/node_modules/.nitro/property-information@6.5.0/index.js +18 -0
  404. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/aria.js +59 -0
  405. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/find.js +68 -0
  406. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/hast-to-react.js +28 -0
  407. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/html.js +322 -0
  408. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/normalize.js +7 -0
  409. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/svg.js +567 -0
  410. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-insensitive-transform.js +10 -0
  411. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-sensitive-transform.js +8 -0
  412. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/create.js +58 -0
  413. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/defined-info.js +44 -0
  414. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/info.js +25 -0
  415. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/merge.js +26 -0
  416. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/schema.js +28 -0
  417. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/types.js +13 -0
  418. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xlink.js +17 -0
  419. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xml.js +9 -0
  420. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xmlns.js +9 -0
  421. package/.output/server/node_modules/.nitro/property-information@6.5.0/package.json +93 -0
  422. package/.output/server/node_modules/.nitro/property-information@7.1.0/index.js +17 -0
  423. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/aria.js +61 -0
  424. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/find.js +97 -0
  425. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/hast-to-react.js +30 -0
  426. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/html.js +322 -0
  427. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/normalize.js +12 -0
  428. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/svg.js +567 -0
  429. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/case-insensitive-transform.js +13 -0
  430. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/case-sensitive-transform.js +11 -0
  431. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/create.js +69 -0
  432. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/defined-info.js +60 -0
  433. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/info.js +32 -0
  434. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/merge.js +27 -0
  435. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/schema.js +29 -0
  436. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/types.js +13 -0
  437. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/xlink.js +17 -0
  438. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/xml.js +9 -0
  439. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/xmlns.js +9 -0
  440. package/.output/server/node_modules/.nitro/property-information@7.1.0/package.json +121 -0
  441. package/.output/server/node_modules/@adonisjs/hash/build/chunk-7RS6HCBK.js +36 -0
  442. package/.output/server/node_modules/@adonisjs/hash/build/chunk-JSA56AE7.js +26 -0
  443. package/.output/server/node_modules/@adonisjs/hash/build/chunk-JSBRDJBE.js +30 -0
  444. package/.output/server/node_modules/@adonisjs/hash/build/chunk-RHMXMP27.js +202 -0
  445. package/.output/server/node_modules/@adonisjs/hash/build/chunk-WB54OA6N.js +193 -0
  446. package/.output/server/node_modules/@adonisjs/hash/build/index.js +9 -0
  447. package/.output/server/node_modules/@adonisjs/hash/build/src/drivers/scrypt.js +9 -0
  448. package/.output/server/node_modules/@adonisjs/hash/package.json +150 -0
  449. package/.output/server/node_modules/@babel/parser/lib/index.js +14595 -0
  450. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  451. package/.output/server/node_modules/@fastify/accept-negotiator/index.js +170 -0
  452. package/.output/server/node_modules/@fastify/accept-negotiator/package.json +51 -0
  453. package/.output/server/node_modules/@iconify/utils/lib/colors/index.mjs +350 -0
  454. package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.mjs +188 -0
  455. package/.output/server/node_modules/@iconify/utils/lib/css/common.mjs +90 -0
  456. package/.output/server/node_modules/@iconify/utils/lib/css/format.mjs +38 -0
  457. package/.output/server/node_modules/@iconify/utils/lib/css/icon.mjs +76 -0
  458. package/.output/server/node_modules/@iconify/utils/lib/css/icons.mjs +168 -0
  459. package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.mjs +22 -0
  460. package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.mjs +14 -0
  461. package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.mjs +16 -0
  462. package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.mjs +22 -0
  463. package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.mjs +33 -0
  464. package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.mjs +51 -0
  465. package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.mjs +84 -0
  466. package/.output/server/node_modules/@iconify/utils/lib/emoji/data.mjs +16 -0
  467. package/.output/server/node_modules/@iconify/utils/lib/emoji/format.mjs +44 -0
  468. package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.mjs +58 -0
  469. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.mjs +231 -0
  470. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.mjs +31 -0
  471. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.mjs +164 -0
  472. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.mjs +216 -0
  473. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.mjs +113 -0
  474. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.mjs +104 -0
  475. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.mjs +34 -0
  476. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.mjs +75 -0
  477. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.mjs +97 -0
  478. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.mjs +54 -0
  479. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.mjs +97 -0
  480. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.mjs +45 -0
  481. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.mjs +105 -0
  482. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.mjs +54 -0
  483. package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.mjs +24 -0
  484. package/.output/server/node_modules/@iconify/utils/lib/icon/merge.mjs +20 -0
  485. package/.output/server/node_modules/@iconify/utils/lib/icon/name.mjs +53 -0
  486. package/.output/server/node_modules/@iconify/utils/lib/icon/square.mjs +23 -0
  487. package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.mjs +16 -0
  488. package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.mjs +182 -0
  489. package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.mjs +22 -0
  490. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +28 -0
  491. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.mjs +46 -0
  492. package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.mjs +66 -0
  493. package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.mjs +51 -0
  494. package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.mjs +23 -0
  495. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.mjs +62 -0
  496. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.mjs +161 -0
  497. package/.output/server/node_modules/@iconify/utils/lib/index.mjs +64 -0
  498. package/.output/server/node_modules/@iconify/utils/lib/loader/custom.mjs +50 -0
  499. package/.output/server/node_modules/@iconify/utils/lib/loader/loader.mjs +59 -0
  500. package/.output/server/node_modules/@iconify/utils/lib/loader/modern.mjs +80 -0
  501. package/.output/server/node_modules/@iconify/utils/lib/loader/utils.mjs +92 -0
  502. package/.output/server/node_modules/@iconify/utils/lib/misc/objects.mjs +30 -0
  503. package/.output/server/node_modules/@iconify/utils/lib/misc/strings.mjs +17 -0
  504. package/.output/server/node_modules/@iconify/utils/lib/misc/title.mjs +5 -0
  505. package/.output/server/node_modules/@iconify/utils/lib/svg/build.mjs +119 -0
  506. package/.output/server/node_modules/@iconify/utils/lib/svg/defs.mjs +30 -0
  507. package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.mjs +20 -0
  508. package/.output/server/node_modules/@iconify/utils/lib/svg/html.mjs +9 -0
  509. package/.output/server/node_modules/@iconify/utils/lib/svg/id.mjs +28 -0
  510. package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.mjs +19 -0
  511. package/.output/server/node_modules/@iconify/utils/lib/svg/parse.mjs +83 -0
  512. package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.mjs +70 -0
  513. package/.output/server/node_modules/@iconify/utils/lib/svg/size.mjs +40 -0
  514. package/.output/server/node_modules/@iconify/utils/lib/svg/trim.mjs +5 -0
  515. package/.output/server/node_modules/@iconify/utils/lib/svg/url.mjs +11 -0
  516. package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.mjs +8 -0
  517. package/.output/server/node_modules/@iconify/utils/package.json +447 -0
  518. package/.output/server/node_modules/@intlify/core/dist/core.mjs +31 -0
  519. package/.output/server/node_modules/@intlify/core/package.json +82 -0
  520. package/.output/server/node_modules/@intlify/core-base/dist/core-base.mjs +1886 -0
  521. package/.output/server/node_modules/@intlify/core-base/package.json +80 -0
  522. package/.output/server/node_modules/@intlify/h3/dist/index.mjs +61 -0
  523. package/.output/server/node_modules/@intlify/h3/package.json +89 -0
  524. package/.output/server/node_modules/@intlify/message-compiler/dist/message-compiler.mjs +1530 -0
  525. package/.output/server/node_modules/@intlify/message-compiler/package.json +79 -0
  526. package/.output/server/node_modules/@intlify/shared/dist/shared.mjs +281 -0
  527. package/.output/server/node_modules/@intlify/shared/package.json +69 -0
  528. package/.output/server/node_modules/@intlify/utils/dist/h3.mjs +89 -0
  529. package/.output/server/node_modules/@intlify/utils/dist/index.mjs +121 -0
  530. package/.output/server/node_modules/@intlify/utils/dist/shared/utils.12d9adcd.mjs +133 -0
  531. package/.output/server/node_modules/@intlify/utils/dist/shared/utils.9f8159f5.mjs +108 -0
  532. package/.output/server/node_modules/@intlify/utils/package.json +129 -0
  533. package/.output/server/node_modules/@lukeed/ms/dist/index.mjs +34 -0
  534. package/.output/server/node_modules/@lukeed/ms/package.json +48 -0
  535. package/.output/server/node_modules/@neondatabase/serverless/index.mjs +1374 -0
  536. package/.output/server/node_modules/@neondatabase/serverless/package.json +115 -0
  537. package/.output/server/node_modules/@phc/format/index.js +229 -0
  538. package/.output/server/node_modules/@phc/format/package.json +60 -0
  539. package/.output/server/node_modules/@poppinss/exception/build/index.js +63 -0
  540. package/.output/server/node_modules/@poppinss/exception/package.json +106 -0
  541. package/.output/server/node_modules/@poppinss/object-builder/build/index.js +49 -0
  542. package/.output/server/node_modules/@poppinss/object-builder/package.json +112 -0
  543. package/.output/server/node_modules/@poppinss/string/build/chunk-LJJE2S3U.js +407 -0
  544. package/.output/server/node_modules/@poppinss/string/build/index.js +6 -0
  545. package/.output/server/node_modules/@poppinss/string/package.json +128 -0
  546. package/.output/server/node_modules/@poppinss/utils/build/chunk-2KG3PWR4.js +17 -0
  547. package/.output/server/node_modules/@poppinss/utils/build/chunk-4V5ON6P7.js +7 -0
  548. package/.output/server/node_modules/@poppinss/utils/build/chunk-EJKUJ44Y.js +12 -0
  549. package/.output/server/node_modules/@poppinss/utils/build/chunk-H54AK3PI.js +7 -0
  550. package/.output/server/node_modules/@poppinss/utils/build/chunk-XHQBV7AF.js +39 -0
  551. package/.output/server/node_modules/@poppinss/utils/build/index.js +365 -0
  552. package/.output/server/node_modules/@poppinss/utils/build/lodash/main.cjs +39 -0
  553. package/.output/server/node_modules/@poppinss/utils/package.json +153 -0
  554. package/.output/server/node_modules/@shikijs/core/dist/index.mjs +2333 -0
  555. package/.output/server/node_modules/@shikijs/core/package.json +49 -0
  556. package/.output/server/node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs +52 -0
  557. package/.output/server/node_modules/@shikijs/engine-javascript/dist/engine-raw.mjs +22 -0
  558. package/.output/server/node_modules/@shikijs/engine-javascript/dist/index.mjs +4 -0
  559. package/.output/server/node_modules/@shikijs/engine-javascript/dist/shared/engine-javascript.hzpS1_41.mjs +93 -0
  560. package/.output/server/node_modules/@shikijs/engine-javascript/package.json +39 -0
  561. package/.output/server/node_modules/@shikijs/engine-oniguruma/dist/index.mjs +448 -0
  562. package/.output/server/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.mjs +8 -0
  563. package/.output/server/node_modules/@shikijs/engine-oniguruma/package.json +42 -0
  564. package/.output/server/node_modules/@shikijs/langs/dist/css.mjs +5 -0
  565. package/.output/server/node_modules/@shikijs/langs/dist/html-derivative.mjs +8 -0
  566. package/.output/server/node_modules/@shikijs/langs/dist/html.mjs +10 -0
  567. package/.output/server/node_modules/@shikijs/langs/dist/javascript.mjs +5 -0
  568. package/.output/server/node_modules/@shikijs/langs/dist/json.mjs +5 -0
  569. package/.output/server/node_modules/@shikijs/langs/dist/jsx.mjs +5 -0
  570. package/.output/server/node_modules/@shikijs/langs/dist/markdown-vue.mjs +5 -0
  571. package/.output/server/node_modules/@shikijs/langs/dist/markdown.mjs +5 -0
  572. package/.output/server/node_modules/@shikijs/langs/dist/mdc.mjs +12 -0
  573. package/.output/server/node_modules/@shikijs/langs/dist/shellscript.mjs +5 -0
  574. package/.output/server/node_modules/@shikijs/langs/dist/tsx.mjs +5 -0
  575. package/.output/server/node_modules/@shikijs/langs/dist/typescript.mjs +5 -0
  576. package/.output/server/node_modules/@shikijs/langs/dist/vue-directives.mjs +5 -0
  577. package/.output/server/node_modules/@shikijs/langs/dist/vue-interpolations.mjs +5 -0
  578. package/.output/server/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.mjs +8 -0
  579. package/.output/server/node_modules/@shikijs/langs/dist/vue.mjs +26 -0
  580. package/.output/server/node_modules/@shikijs/langs/dist/yaml.mjs +5 -0
  581. package/.output/server/node_modules/@shikijs/langs/package.json +357 -0
  582. package/.output/server/node_modules/@shikijs/themes/dist/github-dark.mjs +2 -0
  583. package/.output/server/node_modules/@shikijs/themes/dist/github-light.mjs +2 -0
  584. package/.output/server/node_modules/@shikijs/themes/package.json +98 -0
  585. package/.output/server/node_modules/@shikijs/transformers/dist/index.mjs +744 -0
  586. package/.output/server/node_modules/@shikijs/transformers/package.json +37 -0
  587. package/.output/server/node_modules/@shikijs/types/dist/index.mjs +8 -0
  588. package/.output/server/node_modules/@shikijs/types/package.json +36 -0
  589. package/.output/server/node_modules/@shikijs/vscode-textmate/dist/index.js +3216 -0
  590. package/.output/server/node_modules/@shikijs/vscode-textmate/package.json +46 -0
  591. package/.output/server/node_modules/@sindresorhus/is/dist/index.js +434 -0
  592. package/.output/server/node_modules/@sindresorhus/is/package.json +96 -0
  593. package/.output/server/node_modules/@trysound/sax/lib/sax.js +1413 -0
  594. package/.output/server/node_modules/@trysound/sax/package.json +30 -0
  595. package/.output/server/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
  596. package/.output/server/node_modules/@ungap/structured-clone/esm/index.js +25 -0
  597. package/.output/server/node_modules/@ungap/structured-clone/esm/serialize.js +171 -0
  598. package/.output/server/node_modules/@ungap/structured-clone/esm/types.js +11 -0
  599. package/.output/server/node_modules/@ungap/structured-clone/package.json +54 -0
  600. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6741 -0
  601. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  602. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
  603. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  604. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1411 -0
  605. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  606. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/api.js +2 -0
  607. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/app.js +2 -0
  608. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/component.js +2 -0
  609. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/context.js +2 -0
  610. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
  611. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/index.js +22 -0
  612. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/util.js +2 -0
  613. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/const.js +5 -0
  614. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/env.js +17 -0
  615. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/index.js +45 -0
  616. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/plugin.js +2 -0
  617. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/proxy.js +111 -0
  618. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/time.js +28 -0
  619. package/.output/server/node_modules/@vue/devtools-api/package.json +37 -0
  620. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1807 -0
  621. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  622. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6732 -0
  623. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  624. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1703 -0
  625. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  626. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +879 -0
  627. package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
  628. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
  629. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  630. package/.output/server/node_modules/bail/index.js +12 -0
  631. package/.output/server/node_modules/bail/package.json +73 -0
  632. package/.output/server/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
  633. package/.output/server/node_modules/better-sqlite3/lib/database.js +90 -0
  634. package/.output/server/node_modules/better-sqlite3/lib/index.js +3 -0
  635. package/.output/server/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
  636. package/.output/server/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
  637. package/.output/server/node_modules/better-sqlite3/lib/methods/function.js +31 -0
  638. package/.output/server/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
  639. package/.output/server/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
  640. package/.output/server/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
  641. package/.output/server/node_modules/better-sqlite3/lib/methods/table.js +189 -0
  642. package/.output/server/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
  643. package/.output/server/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
  644. package/.output/server/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
  645. package/.output/server/node_modules/better-sqlite3/lib/util.js +12 -0
  646. package/.output/server/node_modules/better-sqlite3/package.json +62 -0
  647. package/.output/server/node_modules/bindings/bindings.js +221 -0
  648. package/.output/server/node_modules/bindings/package.json +28 -0
  649. package/.output/server/node_modules/boolbase/index.js +8 -0
  650. package/.output/server/node_modules/boolbase/package.json +23 -0
  651. package/.output/server/node_modules/bytes/index.js +170 -0
  652. package/.output/server/node_modules/bytes/package.json +42 -0
  653. package/.output/server/node_modules/case-anything/dist/core.js +242 -0
  654. package/.output/server/node_modules/case-anything/dist/index.js +1 -0
  655. package/.output/server/node_modules/case-anything/dist/utils.js +90 -0
  656. package/.output/server/node_modules/case-anything/package.json +61 -0
  657. package/.output/server/node_modules/ccount/index.js +27 -0
  658. package/.output/server/node_modules/ccount/package.json +71 -0
  659. package/.output/server/node_modules/char-regex/index.js +39 -0
  660. package/.output/server/node_modules/char-regex/package.json +44 -0
  661. package/.output/server/node_modules/character-entities/index.js +2132 -0
  662. package/.output/server/node_modules/character-entities/package.json +78 -0
  663. package/.output/server/node_modules/character-entities-html4/index.js +259 -0
  664. package/.output/server/node_modules/character-entities-html4/package.json +79 -0
  665. package/.output/server/node_modules/character-entities-legacy/index.js +113 -0
  666. package/.output/server/node_modules/character-entities-legacy/package.json +77 -0
  667. package/.output/server/node_modules/character-reference-invalid/index.js +35 -0
  668. package/.output/server/node_modules/character-reference-invalid/package.json +83 -0
  669. package/.output/server/node_modules/color/index.js +496 -0
  670. package/.output/server/node_modules/color/package.json +47 -0
  671. package/.output/server/node_modules/color-convert/conversions.js +839 -0
  672. package/.output/server/node_modules/color-convert/index.js +81 -0
  673. package/.output/server/node_modules/color-convert/package.json +48 -0
  674. package/.output/server/node_modules/color-convert/route.js +97 -0
  675. package/.output/server/node_modules/color-name/index.js +152 -0
  676. package/.output/server/node_modules/color-name/package.json +28 -0
  677. package/.output/server/node_modules/color-string/index.js +242 -0
  678. package/.output/server/node_modules/color-string/package.json +39 -0
  679. package/.output/server/node_modules/comma-separated-tokens/index.js +74 -0
  680. package/.output/server/node_modules/comma-separated-tokens/package.json +72 -0
  681. package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
  682. package/.output/server/node_modules/consola/dist/core.mjs +512 -0
  683. package/.output/server/node_modules/consola/dist/index.mjs +651 -0
  684. package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
  685. package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
  686. package/.output/server/node_modules/consola/package.json +136 -0
  687. package/.output/server/node_modules/cookie-es/dist/index.mjs +262 -0
  688. package/.output/server/node_modules/cookie-es/package.json +46 -0
  689. package/.output/server/node_modules/css-select/lib/attributes.js +236 -0
  690. package/.output/server/node_modules/css-select/lib/compile.js +151 -0
  691. package/.output/server/node_modules/css-select/lib/general.js +148 -0
  692. package/.output/server/node_modules/css-select/lib/index.js +154 -0
  693. package/.output/server/node_modules/css-select/lib/pseudo-selectors/aliases.js +34 -0
  694. package/.output/server/node_modules/css-select/lib/pseudo-selectors/filters.js +157 -0
  695. package/.output/server/node_modules/css-select/lib/pseudo-selectors/index.js +46 -0
  696. package/.output/server/node_modules/css-select/lib/pseudo-selectors/pseudos.js +93 -0
  697. package/.output/server/node_modules/css-select/lib/pseudo-selectors/subselects.js +112 -0
  698. package/.output/server/node_modules/css-select/lib/sort.js +84 -0
  699. package/.output/server/node_modules/css-select/package.json +81 -0
  700. package/.output/server/node_modules/css-what/lib/commonjs/index.js +23 -0
  701. package/.output/server/node_modules/css-what/lib/commonjs/parse.js +425 -0
  702. package/.output/server/node_modules/css-what/lib/commonjs/stringify.js +138 -0
  703. package/.output/server/node_modules/css-what/lib/commonjs/types.js +42 -0
  704. package/.output/server/node_modules/css-what/package.json +59 -0
  705. package/.output/server/node_modules/cssfilter/lib/css.js +110 -0
  706. package/.output/server/node_modules/cssfilter/lib/default.js +398 -0
  707. package/.output/server/node_modules/cssfilter/lib/index.js +32 -0
  708. package/.output/server/node_modules/cssfilter/lib/parser.js +74 -0
  709. package/.output/server/node_modules/cssfilter/lib/util.js +35 -0
  710. package/.output/server/node_modules/cssfilter/package.json +49 -0
  711. package/.output/server/node_modules/csso/cjs/clean/Atrule.cjs +73 -0
  712. package/.output/server/node_modules/csso/cjs/clean/Comment.cjs +7 -0
  713. package/.output/server/node_modules/csso/cjs/clean/Declaration.cjs +18 -0
  714. package/.output/server/node_modules/csso/cjs/clean/Raw.cjs +13 -0
  715. package/.output/server/node_modules/csso/cjs/clean/Rule.cjs +104 -0
  716. package/.output/server/node_modules/csso/cjs/clean/TypeSelector.cjs +23 -0
  717. package/.output/server/node_modules/csso/cjs/clean/WhiteSpace.cjs +7 -0
  718. package/.output/server/node_modules/csso/cjs/clean/index.cjs +32 -0
  719. package/.output/server/node_modules/csso/cjs/clean/utils.cjs +12 -0
  720. package/.output/server/node_modules/csso/cjs/compress.cjs +200 -0
  721. package/.output/server/node_modules/csso/cjs/index.cjs +127 -0
  722. package/.output/server/node_modules/csso/cjs/replace/Atrule.cjs +13 -0
  723. package/.output/server/node_modules/csso/cjs/replace/AttributeSelector.cjs +32 -0
  724. package/.output/server/node_modules/csso/cjs/replace/Dimension.cjs +67 -0
  725. package/.output/server/node_modules/csso/cjs/replace/Number.cjs +45 -0
  726. package/.output/server/node_modules/csso/cjs/replace/Percentage.cjs +41 -0
  727. package/.output/server/node_modules/csso/cjs/replace/Url.cjs +8 -0
  728. package/.output/server/node_modules/csso/cjs/replace/Value.cjs +29 -0
  729. package/.output/server/node_modules/csso/cjs/replace/atrule/keyframes.cjs +25 -0
  730. package/.output/server/node_modules/csso/cjs/replace/color.cjs +504 -0
  731. package/.output/server/node_modules/csso/cjs/replace/index.cjs +36 -0
  732. package/.output/server/node_modules/csso/cjs/replace/property/background.cjs +54 -0
  733. package/.output/server/node_modules/csso/cjs/replace/property/border.cjs +20 -0
  734. package/.output/server/node_modules/csso/cjs/replace/property/font-weight.cjs +26 -0
  735. package/.output/server/node_modules/csso/cjs/replace/property/font.cjs +34 -0
  736. package/.output/server/node_modules/csso/cjs/restructure/1-mergeAtrule.cjs +109 -0
  737. package/.output/server/node_modules/csso/cjs/restructure/2-initialMergeRuleset.cjs +51 -0
  738. package/.output/server/node_modules/csso/cjs/restructure/3-disjoinRuleset.cjs +46 -0
  739. package/.output/server/node_modules/csso/cjs/restructure/4-restructShorthand.cjs +429 -0
  740. package/.output/server/node_modules/csso/cjs/restructure/6-restructBlock.cjs +307 -0
  741. package/.output/server/node_modules/csso/cjs/restructure/7-mergeRuleset.cjs +90 -0
  742. package/.output/server/node_modules/csso/cjs/restructure/8-restructRuleset.cjs +175 -0
  743. package/.output/server/node_modules/csso/cjs/restructure/index.cjs +39 -0
  744. package/.output/server/node_modules/csso/cjs/restructure/prepare/createDeclarationIndexer.cjs +34 -0
  745. package/.output/server/node_modules/csso/cjs/restructure/prepare/index.cjs +45 -0
  746. package/.output/server/node_modules/csso/cjs/restructure/prepare/processSelector.cjs +101 -0
  747. package/.output/server/node_modules/csso/cjs/restructure/prepare/specificity.cjs +133 -0
  748. package/.output/server/node_modules/csso/cjs/restructure/utils.cjs +151 -0
  749. package/.output/server/node_modules/csso/cjs/syntax.cjs +60 -0
  750. package/.output/server/node_modules/csso/cjs/usage.cjs +75 -0
  751. package/.output/server/node_modules/csso/cjs/utils.cjs +14 -0
  752. package/.output/server/node_modules/csso/cjs/version.cjs +5 -0
  753. package/.output/server/node_modules/csso/package.json +82 -0
  754. package/.output/server/node_modules/debug/package.json +64 -0
  755. package/.output/server/node_modules/debug/src/browser.js +272 -0
  756. package/.output/server/node_modules/debug/src/common.js +292 -0
  757. package/.output/server/node_modules/debug/src/index.js +10 -0
  758. package/.output/server/node_modules/debug/src/node.js +263 -0
  759. package/.output/server/node_modules/decode-named-character-reference/index.js +19 -0
  760. package/.output/server/node_modules/decode-named-character-reference/package.json +89 -0
  761. package/.output/server/node_modules/defu/dist/defu.mjs +69 -0
  762. package/.output/server/node_modules/defu/package.json +43 -0
  763. package/.output/server/node_modules/destr/dist/index.mjs +72 -0
  764. package/.output/server/node_modules/destr/package.json +47 -0
  765. package/.output/server/node_modules/detab/index.js +45 -0
  766. package/.output/server/node_modules/detab/package.json +71 -0
  767. package/.output/server/node_modules/detect-libc/lib/detect-libc.js +267 -0
  768. package/.output/server/node_modules/detect-libc/lib/filesystem.js +41 -0
  769. package/.output/server/node_modules/detect-libc/lib/process.js +24 -0
  770. package/.output/server/node_modules/detect-libc/package.json +41 -0
  771. package/.output/server/node_modules/devalue/index.js +3 -0
  772. package/.output/server/node_modules/devalue/package.json +37 -0
  773. package/.output/server/node_modules/devalue/src/base64.js +110 -0
  774. package/.output/server/node_modules/devalue/src/constants.js +6 -0
  775. package/.output/server/node_modules/devalue/src/parse.js +195 -0
  776. package/.output/server/node_modules/devalue/src/stringify.js +261 -0
  777. package/.output/server/node_modules/devalue/src/uneval.js +402 -0
  778. package/.output/server/node_modules/devalue/src/utils.js +114 -0
  779. package/.output/server/node_modules/devlop/lib/default.js +9 -0
  780. package/.output/server/node_modules/devlop/package.json +80 -0
  781. package/.output/server/node_modules/dom-serializer/lib/foreignNames.js +103 -0
  782. package/.output/server/node_modules/dom-serializer/lib/index.js +229 -0
  783. package/.output/server/node_modules/dom-serializer/package.json +69 -0
  784. package/.output/server/node_modules/domelementtype/lib/index.js +55 -0
  785. package/.output/server/node_modules/domelementtype/package.json +54 -0
  786. package/.output/server/node_modules/domhandler/lib/index.js +165 -0
  787. package/.output/server/node_modules/domhandler/lib/node.js +474 -0
  788. package/.output/server/node_modules/domhandler/package.json +73 -0
  789. package/.output/server/node_modules/domutils/lib/feeds.js +190 -0
  790. package/.output/server/node_modules/domutils/lib/helpers.js +142 -0
  791. package/.output/server/node_modules/domutils/lib/index.js +33 -0
  792. package/.output/server/node_modules/domutils/lib/legacy.js +168 -0
  793. package/.output/server/node_modules/domutils/lib/manipulation.js +142 -0
  794. package/.output/server/node_modules/domutils/lib/querying.js +155 -0
  795. package/.output/server/node_modules/domutils/lib/stringify.js +91 -0
  796. package/.output/server/node_modules/domutils/lib/traversal.js +125 -0
  797. package/.output/server/node_modules/domutils/package.json +79 -0
  798. package/.output/server/node_modules/emojilib/emojis.json +9422 -0
  799. package/.output/server/node_modules/emojilib/index.js +5 -0
  800. package/.output/server/node_modules/emojilib/ordered.json +1572 -0
  801. package/.output/server/node_modules/emojilib/package.json +41 -0
  802. package/.output/server/node_modules/emoticon/index.js +480 -0
  803. package/.output/server/node_modules/emoticon/package.json +88 -0
  804. package/.output/server/node_modules/escape-string-regexp/index.js +11 -0
  805. package/.output/server/node_modules/escape-string-regexp/package.json +40 -0
  806. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  807. package/.output/server/node_modules/estree-walker/package.json +37 -0
  808. package/.output/server/node_modules/etag/index.js +131 -0
  809. package/.output/server/node_modules/etag/package.json +47 -0
  810. package/.output/server/node_modules/extend/index.js +117 -0
  811. package/.output/server/node_modules/extend/package.json +42 -0
  812. package/.output/server/node_modules/fast-xml-parser/package.json +90 -0
  813. package/.output/server/node_modules/fast-xml-parser/src/fxp.js +14 -0
  814. package/.output/server/node_modules/fast-xml-parser/src/ignoreAttributes.js +18 -0
  815. package/.output/server/node_modules/fast-xml-parser/src/util.js +68 -0
  816. package/.output/server/node_modules/fast-xml-parser/src/validator.js +425 -0
  817. package/.output/server/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +285 -0
  818. package/.output/server/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +134 -0
  819. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +369 -0
  820. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +46 -0
  821. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +606 -0
  822. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +71 -0
  823. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/node2json.js +119 -0
  824. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +40 -0
  825. package/.output/server/node_modules/file-uri-to-path/index.js +66 -0
  826. package/.output/server/node_modules/file-uri-to-path/package.json +32 -0
  827. package/.output/server/node_modules/flat/index.js +157 -0
  828. package/.output/server/node_modules/flat/package.json +49 -0
  829. package/.output/server/node_modules/flattie/dist/index.mjs +25 -0
  830. package/.output/server/node_modules/flattie/package.json +48 -0
  831. package/.output/server/node_modules/github-slugger/index.js +77 -0
  832. package/.output/server/node_modules/github-slugger/package.json +71 -0
  833. package/.output/server/node_modules/github-slugger/regex.js +3 -0
  834. package/.output/server/node_modules/h3/dist/index.mjs +2478 -0
  835. package/.output/server/node_modules/h3/package.json +75 -0
  836. package/.output/server/node_modules/has-flag/index.js +8 -0
  837. package/.output/server/node_modules/has-flag/package.json +46 -0
  838. package/.output/server/node_modules/hast-util-embedded/index.js +1 -0
  839. package/.output/server/node_modules/hast-util-embedded/lib/index.js +33 -0
  840. package/.output/server/node_modules/hast-util-embedded/package.json +78 -0
  841. package/.output/server/node_modules/hast-util-format/index.js +2 -0
  842. package/.output/server/node_modules/hast-util-format/lib/index.js +186 -0
  843. package/.output/server/node_modules/hast-util-format/package.json +124 -0
  844. package/.output/server/node_modules/hast-util-from-parse5/index.js +2 -0
  845. package/.output/server/node_modules/hast-util-from-parse5/lib/index.js +337 -0
  846. package/.output/server/node_modules/hast-util-from-parse5/package.json +120 -0
  847. package/.output/server/node_modules/hast-util-has-property/index.js +1 -0
  848. package/.output/server/node_modules/hast-util-has-property/lib/index.js +29 -0
  849. package/.output/server/node_modules/hast-util-has-property/package.json +79 -0
  850. package/.output/server/node_modules/hast-util-is-body-ok-link/index.js +46 -0
  851. package/.output/server/node_modules/hast-util-is-body-ok-link/lib/index.js +38 -0
  852. package/.output/server/node_modules/hast-util-is-body-ok-link/package.json +52 -0
  853. package/.output/server/node_modules/hast-util-is-element/index.js +7 -0
  854. package/.output/server/node_modules/hast-util-is-element/lib/index.js +278 -0
  855. package/.output/server/node_modules/hast-util-is-element/package.json +82 -0
  856. package/.output/server/node_modules/hast-util-minify-whitespace/index.js +69 -0
  857. package/.output/server/node_modules/hast-util-minify-whitespace/lib/block.js +61 -0
  858. package/.output/server/node_modules/hast-util-minify-whitespace/lib/content.js +7 -0
  859. package/.output/server/node_modules/hast-util-minify-whitespace/lib/index.js +377 -0
  860. package/.output/server/node_modules/hast-util-minify-whitespace/lib/skippable.js +20 -0
  861. package/.output/server/node_modules/hast-util-minify-whitespace/package.json +56 -0
  862. package/.output/server/node_modules/hast-util-parse-selector/index.js +1 -0
  863. package/.output/server/node_modules/hast-util-parse-selector/lib/index.js +87 -0
  864. package/.output/server/node_modules/hast-util-parse-selector/package.json +79 -0
  865. package/.output/server/node_modules/hast-util-phrasing/index.js +1 -0
  866. package/.output/server/node_modules/hast-util-phrasing/lib/index.js +78 -0
  867. package/.output/server/node_modules/hast-util-phrasing/package.json +83 -0
  868. package/.output/server/node_modules/hast-util-raw/index.js +2 -0
  869. package/.output/server/node_modules/hast-util-raw/lib/index.js +682 -0
  870. package/.output/server/node_modules/hast-util-raw/package.json +123 -0
  871. package/.output/server/node_modules/hast-util-to-html/index.js +8 -0
  872. package/.output/server/node_modules/hast-util-to-html/lib/handle/comment.js +52 -0
  873. package/.output/server/node_modules/hast-util-to-html/lib/handle/doctype.js +27 -0
  874. package/.output/server/node_modules/hast-util-to-html/lib/handle/element.js +265 -0
  875. package/.output/server/node_modules/hast-util-to-html/lib/handle/index.js +47 -0
  876. package/.output/server/node_modules/hast-util-to-html/lib/handle/raw.js +27 -0
  877. package/.output/server/node_modules/hast-util-to-html/lib/handle/root.js +22 -0
  878. package/.output/server/node_modules/hast-util-to-html/lib/handle/text.js +38 -0
  879. package/.output/server/node_modules/hast-util-to-html/lib/index.js +257 -0
  880. package/.output/server/node_modules/hast-util-to-html/lib/omission/closing.js +358 -0
  881. package/.output/server/node_modules/hast-util-to-html/lib/omission/omission.js +44 -0
  882. package/.output/server/node_modules/hast-util-to-html/lib/omission/opening.js +148 -0
  883. package/.output/server/node_modules/hast-util-to-html/lib/omission/util/siblings.js +50 -0
  884. package/.output/server/node_modules/hast-util-to-html/package.json +106 -0
  885. package/.output/server/node_modules/hast-util-to-mdast/index.js +13 -0
  886. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/a.js +30 -0
  887. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/base.js +20 -0
  888. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/blockquote.js +20 -0
  889. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/br.js +20 -0
  890. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/code.js +65 -0
  891. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/comment.js +23 -0
  892. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/del.js +23 -0
  893. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/dl.js +144 -0
  894. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/em.js +24 -0
  895. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/heading.js +30 -0
  896. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/hr.js +20 -0
  897. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/iframe.js +35 -0
  898. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/img.js +27 -0
  899. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/index.js +233 -0
  900. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/inline-code.js +22 -0
  901. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/input.js +137 -0
  902. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/li.js +147 -0
  903. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/list.js +47 -0
  904. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/media.js +82 -0
  905. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/p.js +30 -0
  906. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/q.js +43 -0
  907. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/root.js +28 -0
  908. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/select.js +34 -0
  909. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/strong.js +24 -0
  910. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/table-cell.js +38 -0
  911. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/table-row.js +29 -0
  912. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/table.js +203 -0
  913. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/text.js +20 -0
  914. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/textarea.js +22 -0
  915. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/wbr.js +20 -0
  916. package/.output/server/node_modules/hast-util-to-mdast/lib/index.js +111 -0
  917. package/.output/server/node_modules/hast-util-to-mdast/lib/state.js +389 -0
  918. package/.output/server/node_modules/hast-util-to-mdast/lib/util/drop-surrounding-breaks.js +23 -0
  919. package/.output/server/node_modules/hast-util-to-mdast/lib/util/find-selected-options.js +90 -0
  920. package/.output/server/node_modules/hast-util-to-mdast/lib/util/list-items-spread.js +25 -0
  921. package/.output/server/node_modules/hast-util-to-mdast/lib/util/wrap.js +223 -0
  922. package/.output/server/node_modules/hast-util-to-mdast/package.json +124 -0
  923. package/.output/server/node_modules/hast-util-to-parse5/index.js +6 -0
  924. package/.output/server/node_modules/hast-util-to-parse5/lib/index.js +338 -0
  925. package/.output/server/node_modules/hast-util-to-parse5/package.json +87 -0
  926. package/.output/server/node_modules/hast-util-to-string/index.js +46 -0
  927. package/.output/server/node_modules/hast-util-to-string/lib/index.js +54 -0
  928. package/.output/server/node_modules/hast-util-to-string/package.json +54 -0
  929. package/.output/server/node_modules/hast-util-to-text/index.js +6 -0
  930. package/.output/server/node_modules/hast-util-to-text/lib/index.js +633 -0
  931. package/.output/server/node_modules/hast-util-to-text/package.json +87 -0
  932. package/.output/server/node_modules/hast-util-whitespace/index.js +1 -0
  933. package/.output/server/node_modules/hast-util-whitespace/lib/index.js +34 -0
  934. package/.output/server/node_modules/hast-util-whitespace/package.json +83 -0
  935. package/.output/server/node_modules/hastscript/index.js +7 -0
  936. package/.output/server/node_modules/hastscript/lib/create-h.js +365 -0
  937. package/.output/server/node_modules/hastscript/lib/index.js +27 -0
  938. package/.output/server/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +46 -0
  939. package/.output/server/node_modules/hastscript/package.json +126 -0
  940. package/.output/server/node_modules/hookable/dist/index.mjs +290 -0
  941. package/.output/server/node_modules/hookable/package.json +49 -0
  942. package/.output/server/node_modules/html-void-elements/index.js +27 -0
  943. package/.output/server/node_modules/html-void-elements/package.json +79 -0
  944. package/.output/server/node_modules/html-whitespace-sensitive-tag-names/index.js +28 -0
  945. package/.output/server/node_modules/html-whitespace-sensitive-tag-names/lib/index.js +9 -0
  946. package/.output/server/node_modules/html-whitespace-sensitive-tag-names/package.json +48 -0
  947. package/.output/server/node_modules/image-meta/dist/index.mjs +785 -0
  948. package/.output/server/node_modules/image-meta/package.json +46 -0
  949. package/.output/server/node_modules/ipx/dist/index.mjs +52 -0
  950. package/.output/server/node_modules/ipx/dist/shared/ipx.e4d5b25d.mjs +761 -0
  951. package/.output/server/node_modules/ipx/package.json +72 -0
  952. package/.output/server/node_modules/iron-webcrypto/dist/index.js +298 -0
  953. package/.output/server/node_modules/iron-webcrypto/package.json +72 -0
  954. package/.output/server/node_modules/is-absolute-url/index.js +18 -0
  955. package/.output/server/node_modules/is-absolute-url/package.json +37 -0
  956. package/.output/server/node_modules/is-alphabetical/index.js +16 -0
  957. package/.output/server/node_modules/is-alphabetical/package.json +73 -0
  958. package/.output/server/node_modules/is-alphanumerical/index.js +13 -0
  959. package/.output/server/node_modules/is-alphanumerical/package.json +79 -0
  960. package/.output/server/node_modules/is-arrayish/index.js +9 -0
  961. package/.output/server/node_modules/is-arrayish/package.json +45 -0
  962. package/.output/server/node_modules/is-decimal/index.js +13 -0
  963. package/.output/server/node_modules/is-decimal/package.json +73 -0
  964. package/.output/server/node_modules/is-hexadecimal/index.js +17 -0
  965. package/.output/server/node_modules/is-hexadecimal/package.json +73 -0
  966. package/.output/server/node_modules/is-plain-obj/index.js +8 -0
  967. package/.output/server/node_modules/is-plain-obj/package.json +41 -0
  968. package/.output/server/node_modules/jose/dist/webapi/index.js +30 -0
  969. package/.output/server/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +27 -0
  970. package/.output/server/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +27 -0
  971. package/.output/server/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +165 -0
  972. package/.output/server/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +165 -0
  973. package/.output/server/node_modules/jose/dist/webapi/jwe/general/decrypt.js +31 -0
  974. package/.output/server/node_modules/jose/dist/webapi/jwe/general/encrypt.js +187 -0
  975. package/.output/server/node_modules/jose/dist/webapi/jwk/embedded.js +17 -0
  976. package/.output/server/node_modules/jose/dist/webapi/jwk/thumbprint.js +68 -0
  977. package/.output/server/node_modules/jose/dist/webapi/jwks/local.js +119 -0
  978. package/.output/server/node_modules/jose/dist/webapi/jwks/remote.js +179 -0
  979. package/.output/server/node_modules/jose/dist/webapi/jws/compact/sign.js +18 -0
  980. package/.output/server/node_modules/jose/dist/webapi/jws/compact/verify.js +21 -0
  981. package/.output/server/node_modules/jose/dist/webapi/jws/flattened/sign.js +86 -0
  982. package/.output/server/node_modules/jose/dist/webapi/jws/flattened/verify.js +116 -0
  983. package/.output/server/node_modules/jose/dist/webapi/jws/general/sign.js +73 -0
  984. package/.output/server/node_modules/jose/dist/webapi/jws/general/verify.js +24 -0
  985. package/.output/server/node_modules/jose/dist/webapi/jwt/decrypt.js +23 -0
  986. package/.output/server/node_modules/jose/dist/webapi/jwt/encrypt.js +108 -0
  987. package/.output/server/node_modules/jose/dist/webapi/jwt/sign.js +52 -0
  988. package/.output/server/node_modules/jose/dist/webapi/jwt/unsecured.js +63 -0
  989. package/.output/server/node_modules/jose/dist/webapi/jwt/verify.js +15 -0
  990. package/.output/server/node_modules/jose/dist/webapi/key/export.js +11 -0
  991. package/.output/server/node_modules/jose/dist/webapi/key/generate_key_pair.js +97 -0
  992. package/.output/server/node_modules/jose/dist/webapi/key/generate_secret.js +40 -0
  993. package/.output/server/node_modules/jose/dist/webapi/key/import.js +57 -0
  994. package/.output/server/node_modules/jose/dist/webapi/lib/aesgcmkw.js +16 -0
  995. package/.output/server/node_modules/jose/dist/webapi/lib/aeskw.js +25 -0
  996. package/.output/server/node_modules/jose/dist/webapi/lib/asn1.js +247 -0
  997. package/.output/server/node_modules/jose/dist/webapi/lib/base64.js +22 -0
  998. package/.output/server/node_modules/jose/dist/webapi/lib/buffer_utils.js +32 -0
  999. package/.output/server/node_modules/jose/dist/webapi/lib/cek.js +19 -0
  1000. package/.output/server/node_modules/jose/dist/webapi/lib/check_cek_length.js +7 -0
  1001. package/.output/server/node_modules/jose/dist/webapi/lib/check_iv_length.js +7 -0
  1002. package/.output/server/node_modules/jose/dist/webapi/lib/check_key_length.js +8 -0
  1003. package/.output/server/node_modules/jose/dist/webapi/lib/check_key_type.js +126 -0
  1004. package/.output/server/node_modules/jose/dist/webapi/lib/crypto_key.js +147 -0
  1005. package/.output/server/node_modules/jose/dist/webapi/lib/decrypt.js +106 -0
  1006. package/.output/server/node_modules/jose/dist/webapi/lib/decrypt_key_management.js +127 -0
  1007. package/.output/server/node_modules/jose/dist/webapi/lib/digest.js +4 -0
  1008. package/.output/server/node_modules/jose/dist/webapi/lib/ecdhes.js +52 -0
  1009. package/.output/server/node_modules/jose/dist/webapi/lib/encrypt.js +74 -0
  1010. package/.output/server/node_modules/jose/dist/webapi/lib/encrypt_key_management.js +92 -0
  1011. package/.output/server/node_modules/jose/dist/webapi/lib/epoch.js +1 -0
  1012. package/.output/server/node_modules/jose/dist/webapi/lib/get_sign_verify_key.js +12 -0
  1013. package/.output/server/node_modules/jose/dist/webapi/lib/invalid_key_input.js +31 -0
  1014. package/.output/server/node_modules/jose/dist/webapi/lib/is_disjoint.js +21 -0
  1015. package/.output/server/node_modules/jose/dist/webapi/lib/is_jwk.js +14 -0
  1016. package/.output/server/node_modules/jose/dist/webapi/lib/is_key_like.js +14 -0
  1017. package/.output/server/node_modules/jose/dist/webapi/lib/is_object.js +16 -0
  1018. package/.output/server/node_modules/jose/dist/webapi/lib/iv.js +19 -0
  1019. package/.output/server/node_modules/jose/dist/webapi/lib/jwk_to_key.js +109 -0
  1020. package/.output/server/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +185 -0
  1021. package/.output/server/node_modules/jose/dist/webapi/lib/key_to_jwk.js +31 -0
  1022. package/.output/server/node_modules/jose/dist/webapi/lib/normalize_key.js +176 -0
  1023. package/.output/server/node_modules/jose/dist/webapi/lib/pbes2kw.js +37 -0
  1024. package/.output/server/node_modules/jose/dist/webapi/lib/private_symbols.js +1 -0
  1025. package/.output/server/node_modules/jose/dist/webapi/lib/rsaes.js +24 -0
  1026. package/.output/server/node_modules/jose/dist/webapi/lib/secs.js +55 -0
  1027. package/.output/server/node_modules/jose/dist/webapi/lib/sign.js +9 -0
  1028. package/.output/server/node_modules/jose/dist/webapi/lib/subtle_dsa.js +31 -0
  1029. package/.output/server/node_modules/jose/dist/webapi/lib/validate_algorithms.js +10 -0
  1030. package/.output/server/node_modules/jose/dist/webapi/lib/validate_crit.js +33 -0
  1031. package/.output/server/node_modules/jose/dist/webapi/lib/verify.js +14 -0
  1032. package/.output/server/node_modules/jose/dist/webapi/util/base64url.js +30 -0
  1033. package/.output/server/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -0
  1034. package/.output/server/node_modules/jose/dist/webapi/util/decode_protected_header.js +34 -0
  1035. package/.output/server/node_modules/jose/dist/webapi/util/errors.js +99 -0
  1036. package/.output/server/node_modules/jose/package.json +200 -0
  1037. package/.output/server/node_modules/longest-streak/index.js +36 -0
  1038. package/.output/server/node_modules/longest-streak/package.json +73 -0
  1039. package/.output/server/node_modules/lru-cache/dist/esm/index.js +1542 -0
  1040. package/.output/server/node_modules/lru-cache/dist/esm/package.json +3 -0
  1041. package/.output/server/node_modules/lru-cache/package.json +116 -0
  1042. package/.output/server/node_modules/markdown-table/index.js +393 -0
  1043. package/.output/server/node_modules/markdown-table/package.json +77 -0
  1044. package/.output/server/node_modules/mdast-util-find-and-replace/index.js +11 -0
  1045. package/.output/server/node_modules/mdast-util-find-and-replace/lib/index.js +261 -0
  1046. package/.output/server/node_modules/mdast-util-find-and-replace/package.json +85 -0
  1047. package/.output/server/node_modules/mdast-util-from-markdown/index.js +2 -0
  1048. package/.output/server/node_modules/mdast-util-from-markdown/lib/index.js +1177 -0
  1049. package/.output/server/node_modules/mdast-util-from-markdown/package.json +139 -0
  1050. package/.output/server/node_modules/mdast-util-gfm/index.js +2 -0
  1051. package/.output/server/node_modules/mdast-util-gfm/lib/index.js +63 -0
  1052. package/.output/server/node_modules/mdast-util-gfm/package.json +125 -0
  1053. package/.output/server/node_modules/mdast-util-gfm-autolink-literal/index.js +4 -0
  1054. package/.output/server/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +280 -0
  1055. package/.output/server/node_modules/mdast-util-gfm-autolink-literal/package.json +106 -0
  1056. package/.output/server/node_modules/mdast-util-gfm-footnote/index.js +2 -0
  1057. package/.output/server/node_modules/mdast-util-gfm-footnote/lib/index.js +212 -0
  1058. package/.output/server/node_modules/mdast-util-gfm-footnote/package.json +111 -0
  1059. package/.output/server/node_modules/mdast-util-gfm-strikethrough/index.js +5 -0
  1060. package/.output/server/node_modules/mdast-util-gfm-strikethrough/lib/index.js +106 -0
  1061. package/.output/server/node_modules/mdast-util-gfm-strikethrough/package.json +99 -0
  1062. package/.output/server/node_modules/mdast-util-gfm-table/index.js +2 -0
  1063. package/.output/server/node_modules/mdast-util-gfm-table/lib/index.js +300 -0
  1064. package/.output/server/node_modules/mdast-util-gfm-table/package.json +101 -0
  1065. package/.output/server/node_modules/mdast-util-gfm-task-list-item/index.js +4 -0
  1066. package/.output/server/node_modules/mdast-util-gfm-task-list-item/lib/index.js +141 -0
  1067. package/.output/server/node_modules/mdast-util-gfm-task-list-item/package.json +90 -0
  1068. package/.output/server/node_modules/mdast-util-phrasing/index.js +1 -0
  1069. package/.output/server/node_modules/mdast-util-phrasing/lib/index.js +45 -0
  1070. package/.output/server/node_modules/mdast-util-phrasing/package.json +78 -0
  1071. package/.output/server/node_modules/mdast-util-to-hast/index.js +7 -0
  1072. package/.output/server/node_modules/mdast-util-to-hast/lib/footer.js +252 -0
  1073. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +30 -0
  1074. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/break.js +26 -0
  1075. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/code.js +50 -0
  1076. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/delete.js +30 -0
  1077. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +30 -0
  1078. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +70 -0
  1079. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/heading.js +30 -0
  1080. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/html.js +31 -0
  1081. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +41 -0
  1082. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/image.js +36 -0
  1083. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/index.js +64 -0
  1084. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +35 -0
  1085. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +46 -0
  1086. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/link.js +37 -0
  1087. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +125 -0
  1088. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/list.js +56 -0
  1089. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +30 -0
  1090. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/root.js +26 -0
  1091. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/strong.js +30 -0
  1092. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +32 -0
  1093. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +69 -0
  1094. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/table.js +61 -0
  1095. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/text.js +25 -0
  1096. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +30 -0
  1097. package/.output/server/node_modules/mdast-util-to-hast/lib/index.js +106 -0
  1098. package/.output/server/node_modules/mdast-util-to-hast/lib/revert.js +55 -0
  1099. package/.output/server/node_modules/mdast-util-to-hast/lib/state.js +473 -0
  1100. package/.output/server/node_modules/mdast-util-to-hast/package.json +118 -0
  1101. package/.output/server/node_modules/mdast-util-to-markdown/index.js +3 -0
  1102. package/.output/server/node_modules/mdast-util-to-markdown/lib/configure.js +79 -0
  1103. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +29 -0
  1104. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/break.js +30 -0
  1105. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/code.js +75 -0
  1106. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/definition.js +76 -0
  1107. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +69 -0
  1108. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/heading.js +75 -0
  1109. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/html.js +20 -0
  1110. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +63 -0
  1111. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/image.js +82 -0
  1112. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/index.js +45 -0
  1113. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +76 -0
  1114. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +63 -0
  1115. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/link.js +114 -0
  1116. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +62 -0
  1117. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/list.js +100 -0
  1118. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +20 -0
  1119. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/root.js +23 -0
  1120. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/strong.js +69 -0
  1121. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/text.js +15 -0
  1122. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +21 -0
  1123. package/.output/server/node_modules/mdast-util-to-markdown/lib/index.js +187 -0
  1124. package/.output/server/node_modules/mdast-util-to-markdown/lib/join.js +39 -0
  1125. package/.output/server/node_modules/mdast-util-to-markdown/lib/unsafe.js +146 -0
  1126. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/association.js +33 -0
  1127. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +21 -0
  1128. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +38 -0
  1129. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +21 -0
  1130. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +21 -0
  1131. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +21 -0
  1132. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +21 -0
  1133. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +21 -0
  1134. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +21 -0
  1135. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +21 -0
  1136. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +21 -0
  1137. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +24 -0
  1138. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +84 -0
  1139. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +125 -0
  1140. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +11 -0
  1141. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +82 -0
  1142. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +22 -0
  1143. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +34 -0
  1144. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +34 -0
  1145. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +35 -0
  1146. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +41 -0
  1147. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/safe.js +174 -0
  1148. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/track.js +55 -0
  1149. package/.output/server/node_modules/mdast-util-to-markdown/package.json +132 -0
  1150. package/.output/server/node_modules/mdast-util-to-string/index.js +5 -0
  1151. package/.output/server/node_modules/mdast-util-to-string/lib/index.js +108 -0
  1152. package/.output/server/node_modules/mdast-util-to-string/package.json +78 -0
  1153. package/.output/server/node_modules/micromark/index.js +60 -0
  1154. package/.output/server/node_modules/micromark/lib/compile.js +1060 -0
  1155. package/.output/server/node_modules/micromark/lib/constructs.js +85 -0
  1156. package/.output/server/node_modules/micromark/lib/create-tokenizer.js +611 -0
  1157. package/.output/server/node_modules/micromark/lib/initialize/content.js +79 -0
  1158. package/.output/server/node_modules/micromark/lib/initialize/document.js +362 -0
  1159. package/.output/server/node_modules/micromark/lib/initialize/flow.js +58 -0
  1160. package/.output/server/node_modules/micromark/lib/initialize/text.js +212 -0
  1161. package/.output/server/node_modules/micromark/lib/parse.js +56 -0
  1162. package/.output/server/node_modules/micromark/lib/postprocess.js +18 -0
  1163. package/.output/server/node_modules/micromark/lib/preprocess.js +115 -0
  1164. package/.output/server/node_modules/micromark/package.json +100 -0
  1165. package/.output/server/node_modules/micromark-core-commonmark/index.js +22 -0
  1166. package/.output/server/node_modules/micromark-core-commonmark/lib/attention.js +241 -0
  1167. package/.output/server/node_modules/micromark-core-commonmark/lib/autolink.js +233 -0
  1168. package/.output/server/node_modules/micromark-core-commonmark/lib/blank-line.js +61 -0
  1169. package/.output/server/node_modules/micromark-core-commonmark/lib/block-quote.js +143 -0
  1170. package/.output/server/node_modules/micromark-core-commonmark/lib/character-escape.js +64 -0
  1171. package/.output/server/node_modules/micromark-core-commonmark/lib/character-reference.js +149 -0
  1172. package/.output/server/node_modules/micromark-core-commonmark/lib/code-fenced.js +460 -0
  1173. package/.output/server/node_modules/micromark-core-commonmark/lib/code-indented.js +177 -0
  1174. package/.output/server/node_modules/micromark-core-commonmark/lib/code-text.js +225 -0
  1175. package/.output/server/node_modules/micromark-core-commonmark/lib/content.js +163 -0
  1176. package/.output/server/node_modules/micromark-core-commonmark/lib/definition.js +254 -0
  1177. package/.output/server/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
  1178. package/.output/server/node_modules/micromark-core-commonmark/lib/heading-atx.js +195 -0
  1179. package/.output/server/node_modules/micromark-core-commonmark/lib/html-flow.js +876 -0
  1180. package/.output/server/node_modules/micromark-core-commonmark/lib/html-text.js +678 -0
  1181. package/.output/server/node_modules/micromark-core-commonmark/lib/label-end.js +560 -0
  1182. package/.output/server/node_modules/micromark-core-commonmark/lib/label-start-image.js +102 -0
  1183. package/.output/server/node_modules/micromark-core-commonmark/lib/label-start-link.js +55 -0
  1184. package/.output/server/node_modules/micromark-core-commonmark/lib/line-ending.js +33 -0
  1185. package/.output/server/node_modules/micromark-core-commonmark/lib/list.js +213 -0
  1186. package/.output/server/node_modules/micromark-core-commonmark/lib/setext-underline.js +185 -0
  1187. package/.output/server/node_modules/micromark-core-commonmark/lib/thematic-break.js +102 -0
  1188. package/.output/server/node_modules/micromark-core-commonmark/package.json +74 -0
  1189. package/.output/server/node_modules/micromark-extension-gfm/index.js +69 -0
  1190. package/.output/server/node_modules/micromark-extension-gfm/package.json +107 -0
  1191. package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/index.js +2 -0
  1192. package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/lib/html.js +60 -0
  1193. package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +854 -0
  1194. package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/package.json +116 -0
  1195. package/.output/server/node_modules/micromark-extension-gfm-footnote/index.js +3 -0
  1196. package/.output/server/node_modules/micromark-extension-gfm-footnote/lib/html.js +154 -0
  1197. package/.output/server/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +485 -0
  1198. package/.output/server/node_modules/micromark-extension-gfm-footnote/package.json +132 -0
  1199. package/.output/server/node_modules/micromark-extension-gfm-strikethrough/index.js +3 -0
  1200. package/.output/server/node_modules/micromark-extension-gfm-strikethrough/lib/html.js +26 -0
  1201. package/.output/server/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +142 -0
  1202. package/.output/server/node_modules/micromark-extension-gfm-strikethrough/package.json +129 -0
  1203. package/.output/server/node_modules/micromark-extension-gfm-table/index.js +2 -0
  1204. package/.output/server/node_modules/micromark-extension-gfm-table/lib/edit-map.js +202 -0
  1205. package/.output/server/node_modules/micromark-extension-gfm-table/lib/html.js +130 -0
  1206. package/.output/server/node_modules/micromark-extension-gfm-table/lib/infer.js +52 -0
  1207. package/.output/server/node_modules/micromark-extension-gfm-table/lib/syntax.js +819 -0
  1208. package/.output/server/node_modules/micromark-extension-gfm-table/package.json +128 -0
  1209. package/.output/server/node_modules/micromark-extension-gfm-tagfilter/index.js +1 -0
  1210. package/.output/server/node_modules/micromark-extension-gfm-tagfilter/lib/index.js +51 -0
  1211. package/.output/server/node_modules/micromark-extension-gfm-tagfilter/package.json +82 -0
  1212. package/.output/server/node_modules/micromark-extension-gfm-task-list-item/index.js +2 -0
  1213. package/.output/server/node_modules/micromark-extension-gfm-task-list-item/lib/html.js +29 -0
  1214. package/.output/server/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +158 -0
  1215. package/.output/server/node_modules/micromark-extension-gfm-task-list-item/package.json +131 -0
  1216. package/.output/server/node_modules/micromark-factory-destination/index.js +206 -0
  1217. package/.output/server/node_modules/micromark-factory-destination/package.json +57 -0
  1218. package/.output/server/node_modules/micromark-factory-label/index.js +148 -0
  1219. package/.output/server/node_modules/micromark-factory-label/package.json +60 -0
  1220. package/.output/server/node_modules/micromark-factory-space/index.js +64 -0
  1221. package/.output/server/node_modules/micromark-factory-space/package.json +55 -0
  1222. package/.output/server/node_modules/micromark-factory-title/index.js +158 -0
  1223. package/.output/server/node_modules/micromark-factory-title/package.json +58 -0
  1224. package/.output/server/node_modules/micromark-factory-whitespace/index.js +44 -0
  1225. package/.output/server/node_modules/micromark-factory-whitespace/package.json +57 -0
  1226. package/.output/server/node_modules/micromark-util-character/index.js +246 -0
  1227. package/.output/server/node_modules/micromark-util-character/package.json +57 -0
  1228. package/.output/server/node_modules/micromark-util-chunked/index.js +81 -0
  1229. package/.output/server/node_modules/micromark-util-chunked/package.json +57 -0
  1230. package/.output/server/node_modules/micromark-util-classify-character/index.js +27 -0
  1231. package/.output/server/node_modules/micromark-util-classify-character/package.json +59 -0
  1232. package/.output/server/node_modules/micromark-util-combine-extensions/index.js +143 -0
  1233. package/.output/server/node_modules/micromark-util-combine-extensions/package.json +52 -0
  1234. package/.output/server/node_modules/micromark-util-decode-numeric-character-reference/index.js +32 -0
  1235. package/.output/server/node_modules/micromark-util-decode-numeric-character-reference/package.json +59 -0
  1236. package/.output/server/node_modules/micromark-util-decode-string/index.js +45 -0
  1237. package/.output/server/node_modules/micromark-util-decode-string/package.json +63 -0
  1238. package/.output/server/node_modules/micromark-util-encode/index.js +33 -0
  1239. package/.output/server/node_modules/micromark-util-encode/package.json +47 -0
  1240. package/.output/server/node_modules/micromark-util-html-tag-name/index.js +93 -0
  1241. package/.output/server/node_modules/micromark-util-html-tag-name/package.json +47 -0
  1242. package/.output/server/node_modules/micromark-util-normalize-identifier/index.js +33 -0
  1243. package/.output/server/node_modules/micromark-util-normalize-identifier/package.json +58 -0
  1244. package/.output/server/node_modules/micromark-util-resolve-all/index.js +32 -0
  1245. package/.output/server/node_modules/micromark-util-resolve-all/package.json +48 -0
  1246. package/.output/server/node_modules/micromark-util-sanitize-uri/index.js +107 -0
  1247. package/.output/server/node_modules/micromark-util-sanitize-uri/package.json +59 -0
  1248. package/.output/server/node_modules/micromark-util-subtokenize/index.js +228 -0
  1249. package/.output/server/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
  1250. package/.output/server/node_modules/micromark-util-subtokenize/package.json +60 -0
  1251. package/.output/server/node_modules/minimark/dist/hast.mjs +39 -0
  1252. package/.output/server/node_modules/minimark/package.json +40 -0
  1253. package/.output/server/node_modules/ms/index.js +162 -0
  1254. package/.output/server/node_modules/ms/package.json +38 -0
  1255. package/.output/server/node_modules/node-emoji/lib/index.js +174 -0
  1256. package/.output/server/node_modules/node-emoji/package.json +118 -0
  1257. package/.output/server/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +2 -0
  1258. package/.output/server/node_modules/node-fetch-native/dist/index.mjs +1 -0
  1259. package/.output/server/node_modules/node-fetch-native/dist/node.mjs +19 -0
  1260. package/.output/server/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.mjs +1 -0
  1261. package/.output/server/node_modules/node-fetch-native/package.json +138 -0
  1262. package/.output/server/node_modules/node-mock-http/dist/_polyfill/buffer/node.mjs +1 -0
  1263. package/.output/server/node_modules/node-mock-http/dist/_polyfill/events/node.mjs +1 -0
  1264. package/.output/server/node_modules/node-mock-http/dist/index.mjs +1 -0
  1265. package/.output/server/node_modules/node-mock-http/package.json +63 -0
  1266. package/.output/server/node_modules/nth-check/lib/compile.js +121 -0
  1267. package/.output/server/node_modules/nth-check/lib/index.js +70 -0
  1268. package/.output/server/node_modules/nth-check/lib/parse.js +77 -0
  1269. package/.output/server/node_modules/nth-check/package.json +78 -0
  1270. package/.output/server/node_modules/oauth4webapi/build/index.js +2492 -0
  1271. package/.output/server/node_modules/oauth4webapi/package.json +105 -0
  1272. package/.output/server/node_modules/ofetch/dist/node.mjs +32 -0
  1273. package/.output/server/node_modules/ofetch/dist/shared/ofetch.03887fc3.mjs +333 -0
  1274. package/.output/server/node_modules/ofetch/package.json +96 -0
  1275. package/.output/server/node_modules/oniguruma-parser/dist/parser/node-utils.js +2 -0
  1276. package/.output/server/node_modules/oniguruma-parser/dist/parser/parse.js +2 -0
  1277. package/.output/server/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js +34 -0
  1278. package/.output/server/node_modules/oniguruma-parser/dist/traverser/traverse.js +2 -0
  1279. package/.output/server/node_modules/oniguruma-parser/dist/utils.js +2 -0
  1280. package/.output/server/node_modules/oniguruma-parser/package.json +64 -0
  1281. package/.output/server/node_modules/oniguruma-to-es/dist/esm/index.js +1876 -0
  1282. package/.output/server/node_modules/oniguruma-to-es/dist/esm/package.json +1 -0
  1283. package/.output/server/node_modules/oniguruma-to-es/package.json +61 -0
  1284. package/.output/server/node_modules/openid-client/build/index.js +1310 -0
  1285. package/.output/server/node_modules/openid-client/package.json +122 -0
  1286. package/.output/server/node_modules/parse-entities/index.js +3 -0
  1287. package/.output/server/node_modules/parse-entities/lib/index.js +407 -0
  1288. package/.output/server/node_modules/parse-entities/package.json +91 -0
  1289. package/.output/server/node_modules/parse5/dist/common/doctype.js +114 -0
  1290. package/.output/server/node_modules/parse5/dist/common/error-codes.js +63 -0
  1291. package/.output/server/node_modules/parse5/dist/common/foreign-content.js +228 -0
  1292. package/.output/server/node_modules/parse5/dist/common/html.js +523 -0
  1293. package/.output/server/node_modules/parse5/dist/common/token.js +20 -0
  1294. package/.output/server/node_modules/parse5/dist/common/unicode.js +62 -0
  1295. package/.output/server/node_modules/parse5/dist/index.js +42 -0
  1296. package/.output/server/node_modules/parse5/dist/parser/formatting-element-list.js +110 -0
  1297. package/.output/server/node_modules/parse5/dist/parser/index.js +3245 -0
  1298. package/.output/server/node_modules/parse5/dist/parser/open-element-stack.js +324 -0
  1299. package/.output/server/node_modules/parse5/dist/serializer/index.js +168 -0
  1300. package/.output/server/node_modules/parse5/dist/tokenizer/index.js +2710 -0
  1301. package/.output/server/node_modules/parse5/dist/tokenizer/preprocessor.js +196 -0
  1302. package/.output/server/node_modules/parse5/dist/tree-adapters/default.js +173 -0
  1303. package/.output/server/node_modules/parse5/package.json +50 -0
  1304. package/.output/server/node_modules/pathe/dist/index.mjs +1 -0
  1305. package/.output/server/node_modules/pathe/dist/shared/pathe.ff20891b.mjs +221 -0
  1306. package/.output/server/node_modules/pathe/package.json +48 -0
  1307. package/.output/server/node_modules/pluralize/package.json +40 -0
  1308. package/.output/server/node_modules/pluralize/pluralize.js +503 -0
  1309. package/.output/server/node_modules/radix3/dist/index.mjs +262 -0
  1310. package/.output/server/node_modules/radix3/package.json +52 -0
  1311. package/.output/server/node_modules/regex/package.json +60 -0
  1312. package/.output/server/node_modules/regex/src/atomic.js +221 -0
  1313. package/.output/server/node_modules/regex/src/internals.js +2 -0
  1314. package/.output/server/node_modules/regex/src/subclass.js +98 -0
  1315. package/.output/server/node_modules/regex/src/utils-internals.js +33 -0
  1316. package/.output/server/node_modules/regex-recursion/package.json +47 -0
  1317. package/.output/server/node_modules/regex-recursion/src/index.js +365 -0
  1318. package/.output/server/node_modules/regex-utilities/package.json +35 -0
  1319. package/.output/server/node_modules/regex-utilities/src/index.js +170 -0
  1320. package/.output/server/node_modules/rehype-external-links/index.js +10 -0
  1321. package/.output/server/node_modules/rehype-external-links/lib/index.js +179 -0
  1322. package/.output/server/node_modules/rehype-external-links/package.json +86 -0
  1323. package/.output/server/node_modules/rehype-minify-whitespace/index.js +47 -0
  1324. package/.output/server/node_modules/rehype-minify-whitespace/lib/index.js +26 -0
  1325. package/.output/server/node_modules/rehype-minify-whitespace/package.json +56 -0
  1326. package/.output/server/node_modules/rehype-raw/index.js +5 -0
  1327. package/.output/server/node_modules/rehype-raw/lib/index.js +36 -0
  1328. package/.output/server/node_modules/rehype-raw/package.json +82 -0
  1329. package/.output/server/node_modules/rehype-sort-attribute-values/index.js +29 -0
  1330. package/.output/server/node_modules/rehype-sort-attribute-values/lib/index.js +130 -0
  1331. package/.output/server/node_modules/rehype-sort-attribute-values/lib/schema.js +15 -0
  1332. package/.output/server/node_modules/rehype-sort-attribute-values/package.json +56 -0
  1333. package/.output/server/node_modules/rehype-sort-attributes/index.js +30 -0
  1334. package/.output/server/node_modules/rehype-sort-attributes/lib/index.js +120 -0
  1335. package/.output/server/node_modules/rehype-sort-attributes/package.json +54 -0
  1336. package/.output/server/node_modules/remark-emoji/index.js +76 -0
  1337. package/.output/server/node_modules/remark-emoji/package.json +85 -0
  1338. package/.output/server/node_modules/remark-gfm/index.js +2 -0
  1339. package/.output/server/node_modules/remark-gfm/lib/index.js +41 -0
  1340. package/.output/server/node_modules/remark-gfm/package.json +125 -0
  1341. package/.output/server/node_modules/remark-mdc/dist/index.mjs +2010 -0
  1342. package/.output/server/node_modules/remark-mdc/package.json +84 -0
  1343. package/.output/server/node_modules/remark-parse/index.js +2 -0
  1344. package/.output/server/node_modules/remark-parse/lib/index.js +43 -0
  1345. package/.output/server/node_modules/remark-parse/package.json +72 -0
  1346. package/.output/server/node_modules/remark-rehype/index.js +10 -0
  1347. package/.output/server/node_modules/remark-rehype/lib/index.js +175 -0
  1348. package/.output/server/node_modules/remark-rehype/package.json +86 -0
  1349. package/.output/server/node_modules/remark-stringify/index.js +2 -0
  1350. package/.output/server/node_modules/remark-stringify/lib/index.js +42 -0
  1351. package/.output/server/node_modules/remark-stringify/package.json +71 -0
  1352. package/.output/server/node_modules/safe-stable-stringify/esm/package.json +4 -0
  1353. package/.output/server/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
  1354. package/.output/server/node_modules/safe-stable-stringify/index.js +625 -0
  1355. package/.output/server/node_modules/safe-stable-stringify/package.json +65 -0
  1356. package/.output/server/node_modules/scule/dist/index.mjs +80 -0
  1357. package/.output/server/node_modules/scule/package.json +43 -0
  1358. package/.output/server/node_modules/secure-json-parse/index.js +126 -0
  1359. package/.output/server/node_modules/secure-json-parse/package.json +75 -0
  1360. package/.output/server/node_modules/semver/classes/semver.js +319 -0
  1361. package/.output/server/node_modules/semver/functions/coerce.js +62 -0
  1362. package/.output/server/node_modules/semver/functions/compare.js +7 -0
  1363. package/.output/server/node_modules/semver/functions/gte.js +5 -0
  1364. package/.output/server/node_modules/semver/functions/parse.js +18 -0
  1365. package/.output/server/node_modules/semver/internal/constants.js +37 -0
  1366. package/.output/server/node_modules/semver/internal/debug.js +11 -0
  1367. package/.output/server/node_modules/semver/internal/identifiers.js +25 -0
  1368. package/.output/server/node_modules/semver/internal/parse-options.js +17 -0
  1369. package/.output/server/node_modules/semver/internal/re.js +223 -0
  1370. package/.output/server/node_modules/semver/package.json +78 -0
  1371. package/.output/server/node_modules/sharp/build/Release/libglib-2.0-0.dll +0 -0
  1372. package/.output/server/node_modules/sharp/build/Release/libgobject-2.0-0.dll +0 -0
  1373. package/.output/server/node_modules/sharp/build/Release/libvips-42.dll +0 -0
  1374. package/.output/server/node_modules/sharp/build/Release/libvips-cpp.dll +0 -0
  1375. package/.output/server/node_modules/sharp/build/Release/sharp-win32-x64.node +0 -0
  1376. package/.output/server/node_modules/sharp/lib/channel.js +174 -0
  1377. package/.output/server/node_modules/sharp/lib/colour.js +184 -0
  1378. package/.output/server/node_modules/sharp/lib/composite.js +210 -0
  1379. package/.output/server/node_modules/sharp/lib/constructor.js +439 -0
  1380. package/.output/server/node_modules/sharp/lib/index.js +16 -0
  1381. package/.output/server/node_modules/sharp/lib/input.js +631 -0
  1382. package/.output/server/node_modules/sharp/lib/is.js +155 -0
  1383. package/.output/server/node_modules/sharp/lib/libvips.js +140 -0
  1384. package/.output/server/node_modules/sharp/lib/operation.js +919 -0
  1385. package/.output/server/node_modules/sharp/lib/output.js +1413 -0
  1386. package/.output/server/node_modules/sharp/lib/platform.js +30 -0
  1387. package/.output/server/node_modules/sharp/lib/resize.js +582 -0
  1388. package/.output/server/node_modules/sharp/lib/sharp.js +38 -0
  1389. package/.output/server/node_modules/sharp/lib/utility.js +287 -0
  1390. package/.output/server/node_modules/sharp/package.json +204 -0
  1391. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/THIRD-PARTY-NOTICES.md +43 -0
  1392. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/include/harfbuzz/hb-cplusplus.hh +223 -0
  1393. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/include/vips/vips8 +60 -0
  1394. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libglib-2.0-0.dll +0 -0
  1395. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libglib-2.0.lib +0 -0
  1396. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libgobject-2.0-0.dll +0 -0
  1397. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libgobject-2.0.lib +0 -0
  1398. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libvips-42.dll +0 -0
  1399. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libvips.lib +0 -0
  1400. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/platform.json +1 -0
  1401. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/versions.json +31 -0
  1402. package/.output/server/node_modules/shiki/dist/engine-javascript.mjs +1 -0
  1403. package/.output/server/node_modules/shiki/dist/engine-oniguruma.mjs +1 -0
  1404. package/.output/server/node_modules/shiki/dist/wasm.mjs +2 -0
  1405. package/.output/server/node_modules/shiki/package.json +70 -0
  1406. package/.output/server/node_modules/simple-swizzle/index.js +29 -0
  1407. package/.output/server/node_modules/simple-swizzle/package.json +36 -0
  1408. package/.output/server/node_modules/skin-tone/index.js +25 -0
  1409. package/.output/server/node_modules/skin-tone/package.json +45 -0
  1410. package/.output/server/node_modules/slugify/package.json +42 -0
  1411. package/.output/server/node_modules/slugify/slugify.js +69 -0
  1412. package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  1413. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  1414. package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  1415. package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  1416. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  1417. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
  1418. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  1419. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  1420. package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
  1421. package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  1422. package/.output/server/node_modules/source-map-js/package.json +71 -0
  1423. package/.output/server/node_modules/source-map-js/source-map.js +8 -0
  1424. package/.output/server/node_modules/space-separated-tokens/index.js +24 -0
  1425. package/.output/server/node_modules/space-separated-tokens/package.json +67 -0
  1426. package/.output/server/node_modules/sqlstring/index.js +1 -0
  1427. package/.output/server/node_modules/sqlstring/lib/SqlString.js +237 -0
  1428. package/.output/server/node_modules/sqlstring/package.json +47 -0
  1429. package/.output/server/node_modules/stringify-entities/index.js +6 -0
  1430. package/.output/server/node_modules/stringify-entities/lib/constant/dangerous.js +16 -0
  1431. package/.output/server/node_modules/stringify-entities/lib/core.js +117 -0
  1432. package/.output/server/node_modules/stringify-entities/lib/index.js +36 -0
  1433. package/.output/server/node_modules/stringify-entities/lib/util/format-basic.js +9 -0
  1434. package/.output/server/node_modules/stringify-entities/lib/util/format-smart.js +69 -0
  1435. package/.output/server/node_modules/stringify-entities/lib/util/to-decimal.js +16 -0
  1436. package/.output/server/node_modules/stringify-entities/lib/util/to-hexadecimal.js +16 -0
  1437. package/.output/server/node_modules/stringify-entities/lib/util/to-named.js +57 -0
  1438. package/.output/server/node_modules/stringify-entities/package.json +86 -0
  1439. package/.output/server/node_modules/strnum/package.json +31 -0
  1440. package/.output/server/node_modules/strnum/strnum.js +129 -0
  1441. package/.output/server/node_modules/supports-color/index.js +135 -0
  1442. package/.output/server/node_modules/supports-color/package.json +53 -0
  1443. package/.output/server/node_modules/svgo/lib/builtin.js +57 -0
  1444. package/.output/server/node_modules/svgo/lib/parser.js +262 -0
  1445. package/.output/server/node_modules/svgo/lib/path.js +380 -0
  1446. package/.output/server/node_modules/svgo/lib/stringifier.js +295 -0
  1447. package/.output/server/node_modules/svgo/lib/style.js +336 -0
  1448. package/.output/server/node_modules/svgo/lib/svgo/css-select-adapter.js +120 -0
  1449. package/.output/server/node_modules/svgo/lib/svgo/plugins.js +61 -0
  1450. package/.output/server/node_modules/svgo/lib/svgo/tools.js +245 -0
  1451. package/.output/server/node_modules/svgo/lib/svgo-node.js +85 -0
  1452. package/.output/server/node_modules/svgo/lib/svgo.js +102 -0
  1453. package/.output/server/node_modules/svgo/lib/xast.js +87 -0
  1454. package/.output/server/node_modules/svgo/package.json +108 -0
  1455. package/.output/server/node_modules/svgo/plugins/_collections.js +2339 -0
  1456. package/.output/server/node_modules/svgo/plugins/_path.js +815 -0
  1457. package/.output/server/node_modules/svgo/plugins/_transforms.js +410 -0
  1458. package/.output/server/node_modules/svgo/plugins/addAttributesToSVGElement.js +82 -0
  1459. package/.output/server/node_modules/svgo/plugins/addClassesToSVGElement.js +82 -0
  1460. package/.output/server/node_modules/svgo/plugins/applyTransforms.js +388 -0
  1461. package/.output/server/node_modules/svgo/plugins/cleanupAttrs.js +49 -0
  1462. package/.output/server/node_modules/svgo/plugins/cleanupEnableBackground.js +165 -0
  1463. package/.output/server/node_modules/svgo/plugins/cleanupIds.js +265 -0
  1464. package/.output/server/node_modules/svgo/plugins/cleanupListOfValues.js +147 -0
  1465. package/.output/server/node_modules/svgo/plugins/cleanupNumericValues.js +106 -0
  1466. package/.output/server/node_modules/svgo/plugins/collapseGroups.js +134 -0
  1467. package/.output/server/node_modules/svgo/plugins/convertColors.js +144 -0
  1468. package/.output/server/node_modules/svgo/plugins/convertEllipseToCircle.js +37 -0
  1469. package/.output/server/node_modules/svgo/plugins/convertOneStopGradients.js +168 -0
  1470. package/.output/server/node_modules/svgo/plugins/convertPathData.js +1284 -0
  1471. package/.output/server/node_modules/svgo/plugins/convertShapeToPath.js +170 -0
  1472. package/.output/server/node_modules/svgo/plugins/convertStyleToAttrs.js +136 -0
  1473. package/.output/server/node_modules/svgo/plugins/convertTransform.js +418 -0
  1474. package/.output/server/node_modules/svgo/plugins/inlineStyles.js +390 -0
  1475. package/.output/server/node_modules/svgo/plugins/mergePaths.js +148 -0
  1476. package/.output/server/node_modules/svgo/plugins/mergeStyles.js +98 -0
  1477. package/.output/server/node_modules/svgo/plugins/minifyStyles.js +141 -0
  1478. package/.output/server/node_modules/svgo/plugins/moveElemsAttrsToGroup.js +128 -0
  1479. package/.output/server/node_modules/svgo/plugins/moveGroupAttrsToElems.js +65 -0
  1480. package/.output/server/node_modules/svgo/plugins/prefixIds.js +268 -0
  1481. package/.output/server/node_modules/svgo/plugins/preset-default.js +82 -0
  1482. package/.output/server/node_modules/svgo/plugins/removeAttributesBySelector.js +97 -0
  1483. package/.output/server/node_modules/svgo/plugins/removeAttrs.js +151 -0
  1484. package/.output/server/node_modules/svgo/plugins/removeComments.js +51 -0
  1485. package/.output/server/node_modules/svgo/plugins/removeDesc.js +39 -0
  1486. package/.output/server/node_modules/svgo/plugins/removeDimensions.js +43 -0
  1487. package/.output/server/node_modules/svgo/plugins/removeDoctype.js +40 -0
  1488. package/.output/server/node_modules/svgo/plugins/removeEditorsNSData.js +64 -0
  1489. package/.output/server/node_modules/svgo/plugins/removeElementsByAttr.js +73 -0
  1490. package/.output/server/node_modules/svgo/plugins/removeEmptyAttrs.js +31 -0
  1491. package/.output/server/node_modules/svgo/plugins/removeEmptyContainers.js +59 -0
  1492. package/.output/server/node_modules/svgo/plugins/removeEmptyText.js +51 -0
  1493. package/.output/server/node_modules/svgo/plugins/removeHiddenElems.js +440 -0
  1494. package/.output/server/node_modules/svgo/plugins/removeMetadata.js +27 -0
  1495. package/.output/server/node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js +38 -0
  1496. package/.output/server/node_modules/svgo/plugins/removeOffCanvasPaths.js +136 -0
  1497. package/.output/server/node_modules/svgo/plugins/removeRasterImages.js +31 -0
  1498. package/.output/server/node_modules/svgo/plugins/removeScriptElement.js +70 -0
  1499. package/.output/server/node_modules/svgo/plugins/removeStyleElement.js +27 -0
  1500. package/.output/server/node_modules/svgo/plugins/removeTitle.js +27 -0
  1501. package/.output/server/node_modules/svgo/plugins/removeUnknownsAndDefaults.js +212 -0
  1502. package/.output/server/node_modules/svgo/plugins/removeUnusedNS.js +59 -0
  1503. package/.output/server/node_modules/svgo/plugins/removeUselessDefs.js +65 -0
  1504. package/.output/server/node_modules/svgo/plugins/removeUselessStrokeAndFill.js +139 -0
  1505. package/.output/server/node_modules/svgo/plugins/removeViewBox.js +49 -0
  1506. package/.output/server/node_modules/svgo/plugins/removeXMLNS.js +29 -0
  1507. package/.output/server/node_modules/svgo/plugins/removeXMLProcInst.js +28 -0
  1508. package/.output/server/node_modules/svgo/plugins/removeXlink.js +226 -0
  1509. package/.output/server/node_modules/svgo/plugins/reusePaths.js +195 -0
  1510. package/.output/server/node_modules/svgo/plugins/sortAttrs.js +108 -0
  1511. package/.output/server/node_modules/svgo/plugins/sortDefsChildren.js +58 -0
  1512. package/.output/server/node_modules/trim-lines/index.js +69 -0
  1513. package/.output/server/node_modules/trim-lines/package.json +67 -0
  1514. package/.output/server/node_modules/trim-trailing-lines/index.js +23 -0
  1515. package/.output/server/node_modules/trim-trailing-lines/package.json +65 -0
  1516. package/.output/server/node_modules/trough/index.js +9 -0
  1517. package/.output/server/node_modules/trough/lib/index.js +206 -0
  1518. package/.output/server/node_modules/trough/package.json +77 -0
  1519. package/.output/server/node_modules/truncatise/index.js +188 -0
  1520. package/.output/server/node_modules/truncatise/package.json +36 -0
  1521. package/.output/server/node_modules/ufo/dist/index.mjs +638 -0
  1522. package/.output/server/node_modules/ufo/package.json +47 -0
  1523. package/.output/server/node_modules/ultrahtml/dist/index.js +1 -0
  1524. package/.output/server/node_modules/ultrahtml/package.json +79 -0
  1525. package/.output/server/node_modules/uncrypto/dist/crypto.node.mjs +16 -0
  1526. package/.output/server/node_modules/uncrypto/package.json +60 -0
  1527. package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
  1528. package/.output/server/node_modules/unhead/dist/server.mjs +689 -0
  1529. package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
  1530. package/.output/server/node_modules/unhead/dist/shared/unhead.BpRRHAhY.mjs +194 -0
  1531. package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
  1532. package/.output/server/node_modules/unhead/dist/shared/unhead.DH45uomy.mjs +180 -0
  1533. package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
  1534. package/.output/server/node_modules/unhead/dist/shared/unhead.DZbvapt-.mjs +70 -0
  1535. package/.output/server/node_modules/unhead/dist/shared/unhead.Djo8ep_Y.mjs +166 -0
  1536. package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
  1537. package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
  1538. package/.output/server/node_modules/unhead/package.json +101 -0
  1539. package/.output/server/node_modules/unicode-emoji-modifier-base/index.js +86 -0
  1540. package/.output/server/node_modules/unicode-emoji-modifier-base/package.json +44 -0
  1541. package/.output/server/node_modules/unified/index.js +2 -0
  1542. package/.output/server/node_modules/unified/lib/callable-instance.js +44 -0
  1543. package/.output/server/node_modules/unified/lib/index.js +1323 -0
  1544. package/.output/server/node_modules/unified/package.json +120 -0
  1545. package/.output/server/node_modules/unist-util-find-after/index.js +1 -0
  1546. package/.output/server/node_modules/unist-util-find-after/lib/index.js +130 -0
  1547. package/.output/server/node_modules/unist-util-find-after/package.json +84 -0
  1548. package/.output/server/node_modules/unist-util-is/index.js +7 -0
  1549. package/.output/server/node_modules/unist-util-is/lib/index.js +291 -0
  1550. package/.output/server/node_modules/unist-util-is/package.json +100 -0
  1551. package/.output/server/node_modules/unist-util-position/index.js +1 -0
  1552. package/.output/server/node_modules/unist-util-position/lib/index.js +95 -0
  1553. package/.output/server/node_modules/unist-util-position/package.json +76 -0
  1554. package/.output/server/node_modules/unist-util-stringify-position/index.js +1 -0
  1555. package/.output/server/node_modules/unist-util-stringify-position/lib/index.js +84 -0
  1556. package/.output/server/node_modules/unist-util-stringify-position/package.json +80 -0
  1557. package/.output/server/node_modules/unist-util-visit/index.js +2 -0
  1558. package/.output/server/node_modules/unist-util-visit/lib/index.js +313 -0
  1559. package/.output/server/node_modules/unist-util-visit/package.json +113 -0
  1560. package/.output/server/node_modules/unist-util-visit-parents/index.js +2 -0
  1561. package/.output/server/node_modules/unist-util-visit-parents/lib/color.node.js +7 -0
  1562. package/.output/server/node_modules/unist-util-visit-parents/lib/index.js +398 -0
  1563. package/.output/server/node_modules/unist-util-visit-parents/package.json +101 -0
  1564. package/.output/server/node_modules/vfile/index.js +2 -0
  1565. package/.output/server/node_modules/vfile/lib/index.js +643 -0
  1566. package/.output/server/node_modules/vfile/lib/minpath.js +1 -0
  1567. package/.output/server/node_modules/vfile/lib/minproc.js +1 -0
  1568. package/.output/server/node_modules/vfile/lib/minurl.js +2 -0
  1569. package/.output/server/node_modules/vfile/lib/minurl.shared.js +31 -0
  1570. package/.output/server/node_modules/vfile/package.json +134 -0
  1571. package/.output/server/node_modules/vfile-location/index.js +2 -0
  1572. package/.output/server/node_modules/vfile-location/lib/index.js +93 -0
  1573. package/.output/server/node_modules/vfile-location/package.json +115 -0
  1574. package/.output/server/node_modules/vfile-message/index.js +5 -0
  1575. package/.output/server/node_modules/vfile-message/lib/index.js +314 -0
  1576. package/.output/server/node_modules/vfile-message/package.json +80 -0
  1577. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  1578. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  1579. package/.output/server/node_modules/vue/index.js +7 -0
  1580. package/.output/server/node_modules/vue/index.mjs +1 -0
  1581. package/.output/server/node_modules/vue/package.json +112 -0
  1582. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  1583. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
  1584. package/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
  1585. package/.output/server/node_modules/vue-router/dist/devtools-BLCumUwL.mjs +1218 -0
  1586. package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1557 -0
  1587. package/.output/server/node_modules/vue-router/package.json +154 -0
  1588. package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
  1589. package/.output/server/node_modules/web-namespaces/index.js +13 -0
  1590. package/.output/server/node_modules/web-namespaces/package.json +81 -0
  1591. package/.output/server/node_modules/xss/lib/default.js +461 -0
  1592. package/.output/server/node_modules/xss/lib/index.js +51 -0
  1593. package/.output/server/node_modules/xss/lib/parser.js +257 -0
  1594. package/.output/server/node_modules/xss/lib/util.js +34 -0
  1595. package/.output/server/node_modules/xss/lib/xss.js +232 -0
  1596. package/.output/server/node_modules/xss/package.json +65 -0
  1597. package/.output/server/node_modules/yaml/dist/compose/compose-collection.js +90 -0
  1598. package/.output/server/node_modules/yaml/dist/compose/compose-doc.js +45 -0
  1599. package/.output/server/node_modules/yaml/dist/compose/compose-node.js +105 -0
  1600. package/.output/server/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
  1601. package/.output/server/node_modules/yaml/dist/compose/composer.js +222 -0
  1602. package/.output/server/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
  1603. package/.output/server/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
  1604. package/.output/server/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
  1605. package/.output/server/node_modules/yaml/dist/compose/resolve-end.js +39 -0
  1606. package/.output/server/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
  1607. package/.output/server/node_modules/yaml/dist/compose/resolve-flow-scalar.js +225 -0
  1608. package/.output/server/node_modules/yaml/dist/compose/resolve-props.js +148 -0
  1609. package/.output/server/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
  1610. package/.output/server/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
  1611. package/.output/server/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
  1612. package/.output/server/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
  1613. package/.output/server/node_modules/yaml/dist/doc/Document.js +337 -0
  1614. package/.output/server/node_modules/yaml/dist/doc/anchors.js +76 -0
  1615. package/.output/server/node_modules/yaml/dist/doc/applyReviver.js +57 -0
  1616. package/.output/server/node_modules/yaml/dist/doc/createNode.js +90 -0
  1617. package/.output/server/node_modules/yaml/dist/doc/directives.js +178 -0
  1618. package/.output/server/node_modules/yaml/dist/errors.js +62 -0
  1619. package/.output/server/node_modules/yaml/dist/index.js +50 -0
  1620. package/.output/server/node_modules/yaml/dist/log.js +19 -0
  1621. package/.output/server/node_modules/yaml/dist/nodes/Alias.js +116 -0
  1622. package/.output/server/node_modules/yaml/dist/nodes/Collection.js +151 -0
  1623. package/.output/server/node_modules/yaml/dist/nodes/Node.js +40 -0
  1624. package/.output/server/node_modules/yaml/dist/nodes/Pair.js +39 -0
  1625. package/.output/server/node_modules/yaml/dist/nodes/Scalar.js +27 -0
  1626. package/.output/server/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
  1627. package/.output/server/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
  1628. package/.output/server/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
  1629. package/.output/server/node_modules/yaml/dist/nodes/identity.js +53 -0
  1630. package/.output/server/node_modules/yaml/dist/nodes/toJS.js +39 -0
  1631. package/.output/server/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
  1632. package/.output/server/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
  1633. package/.output/server/node_modules/yaml/dist/parse/cst-visit.js +99 -0
  1634. package/.output/server/node_modules/yaml/dist/parse/cst.js +112 -0
  1635. package/.output/server/node_modules/yaml/dist/parse/lexer.js +719 -0
  1636. package/.output/server/node_modules/yaml/dist/parse/line-counter.js +41 -0
  1637. package/.output/server/node_modules/yaml/dist/parse/parser.js +972 -0
  1638. package/.output/server/node_modules/yaml/dist/public-api.js +107 -0
  1639. package/.output/server/node_modules/yaml/dist/schema/Schema.js +39 -0
  1640. package/.output/server/node_modules/yaml/dist/schema/common/map.js +19 -0
  1641. package/.output/server/node_modules/yaml/dist/schema/common/null.js +17 -0
  1642. package/.output/server/node_modules/yaml/dist/schema/common/seq.js +19 -0
  1643. package/.output/server/node_modules/yaml/dist/schema/common/string.js +16 -0
  1644. package/.output/server/node_modules/yaml/dist/schema/core/bool.js +21 -0
  1645. package/.output/server/node_modules/yaml/dist/schema/core/float.js +47 -0
  1646. package/.output/server/node_modules/yaml/dist/schema/core/int.js +42 -0
  1647. package/.output/server/node_modules/yaml/dist/schema/core/schema.js +25 -0
  1648. package/.output/server/node_modules/yaml/dist/schema/json/schema.js +64 -0
  1649. package/.output/server/node_modules/yaml/dist/schema/tags.js +99 -0
  1650. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
  1651. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
  1652. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
  1653. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
  1654. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/merge.js +68 -0
  1655. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
  1656. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
  1657. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
  1658. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
  1659. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
  1660. package/.output/server/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
  1661. package/.output/server/node_modules/yaml/dist/stringify/stringify.js +131 -0
  1662. package/.output/server/node_modules/yaml/dist/stringify/stringifyCollection.js +145 -0
  1663. package/.output/server/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
  1664. package/.output/server/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
  1665. package/.output/server/node_modules/yaml/dist/stringify/stringifyNumber.js +26 -0
  1666. package/.output/server/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
  1667. package/.output/server/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
  1668. package/.output/server/node_modules/yaml/dist/visit.js +236 -0
  1669. package/.output/server/node_modules/yaml/package.json +96 -0
  1670. package/.output/server/node_modules/zwitch/index.js +118 -0
  1671. package/.output/server/node_modules/zwitch/package.json +72 -0
  1672. package/.output/server/package.json +241 -0
  1673. package/README.md +4 -0
  1674. package/{app.vue → app/app.vue} +3 -2
  1675. package/{assets → app/assets}/css/ignis-open-props.css +4 -5
  1676. package/{components → app/components}/CurrentTime.vue +9 -2
  1677. package/{components/ignis/IgnisInfo.vue → app/components/ignis/IgnisContent.vue} +3 -3
  1678. package/{components/ignis/IgnisConfig.vue → app/components/ignis/IgnisContentConfig.vue} +5 -1
  1679. package/app/components/ignis/IgnisContentFeatures.vue +102 -0
  1680. package/{components/ignis/IgnisWelcome.vue → app/components/ignis/IgnisContentWelcome.vue} +3 -3
  1681. package/app/components/ignis/IgnisFooter.vue +24 -0
  1682. package/{composables → app/composables}/useTranslation.ts +2 -2
  1683. package/app/pages/_ignis-config.vue +3 -0
  1684. package/app/pages/_ignis-info.vue +3 -0
  1685. package/app/pages/_ignis-welcome.vue +3 -0
  1686. package/{pages → app/pages}/index.vue +2 -2
  1687. package/app/utils/date.ts +12 -0
  1688. package/{utils → app/utils}/i18n-sources.ts +2 -2
  1689. package/app/utils/validation.ts +25 -0
  1690. package/bin/cli.js +59 -0
  1691. package/bin/set-app-vue.js +18 -0
  1692. package/bin/set-css.js +18 -0
  1693. package/bin/set-eslint.js +16 -0
  1694. package/bin/setup.js +255 -0
  1695. package/content.config.ts +1 -1
  1696. package/eslint.config.mjs +0 -3
  1697. package/features.ts +52 -41
  1698. package/formkit.config.ts +1 -1
  1699. package/i18n/i18n.config.ts +2 -0
  1700. package/nuxt.config.ts +19 -21
  1701. package/package.json +30 -29
  1702. package/public/_ignis-config.json +1894 -3
  1703. package/test/config/css-multiple.txt +30 -24
  1704. package/test/config/css-nuxt-ui.txt +34 -28
  1705. package/test/config/css-open-props.txt +1812 -1763
  1706. package/test/config/css-single.txt +28 -22
  1707. package/test/config/css-tailwind.txt +55 -48
  1708. package/test/config/custom-lang.txt +27 -21
  1709. package/test/config/db-neon.txt +28 -22
  1710. package/test/config/db-supabase.txt +31 -25
  1711. package/test/config/default.txt +27 -21
  1712. package/test/config/equipment-1-composable.txt +33 -27
  1713. package/test/config/equipment-2-plugins.txt +34 -28
  1714. package/test/config/equipment-all.txt +38 -32
  1715. package/test/config/forms-formkit.txt +32 -26
  1716. package/test/config/forms-vueform.txt +28 -22
  1717. package/test/config/i18n.txt +36 -30
  1718. package/test/config/no-default-css.txt +24 -18
  1719. package/test/config/open-props.txt +1811 -1762
  1720. package/test/config/seo-ssr-false.txt +35 -29
  1721. package/test/config/ui-nuxt-ui.txt +33 -27
  1722. package/test/config/ui-tailwind.txt +54 -47
  1723. package/test/features.test.ts +34 -34
  1724. package/tsconfig.json +16 -5
  1725. package/vitest.config.ts +5 -0
  1726. package/vueform.config.ts +2 -0
  1727. package/.nuxt/i18n.options.mjs +0 -165
  1728. package/.nuxt/module/@nuxtjs-sitemap.d.ts +0 -29
  1729. package/.nuxt/nuxt-i18n-logger.mjs +0 -1
  1730. package/.nuxt/types/app-defaults.d.ts +0 -7
  1731. package/.nuxt/types/schema.d.ts +0 -1756
  1732. package/bin/make-eslint.js +0 -55
  1733. package/components/ignis/IgnisFeatureList.vue +0 -111
  1734. package/components/ignis/IgnisFooter.vue +0 -16
  1735. package/pages/_ignis-config.vue +0 -3
  1736. package/pages/_ignis-info.vue +0 -3
  1737. package/server/tsconfig.json +0 -3
  1738. /package/{assets → app/assets}/css/ignis-nuxt-ui.css +0 -0
  1739. /package/{assets → app/assets}/css/ignis-tailwind.css +0 -0
  1740. /package/{assets → app/assets}/css/ignis.css +0 -0
  1741. /package/{components/ignis/IgnisFeature.vue → app/components/ignis/IgnisContentFeaturesDetail.vue} +0 -0
  1742. /package/{components → app/components}/ignis/IgnisHeader.vue +0 -0
  1743. /package/{composables → app/composables}/useValibot.ts +0 -0
  1744. /package/{composables → app/composables}/useZod.ts +0 -0
  1745. /package/{plugins → app/plugins}/errorHandler.ts +0 -0
  1746. /package/{utils → app/utils}/config/content.ts +0 -0
  1747. /package/{utils → app/utils}/config/formkit.ts +0 -0
  1748. /package/{utils → app/utils}/config/vueform.ts +0 -0
  1749. /package/{utils → app/utils}/consola.ts +0 -0
  1750. /package/{utils → app/utils}/content.ts +0 -0
  1751. /package/{utils → app/utils}/formkit.ts +0 -0
  1752. /package/{utils → app/utils}/ignis-types.ts +0 -0
  1753. /package/{utils → app/utils}/pslo-utils.ts +0 -0
  1754. /package/{utils → app/utils}/tailwind.ts +0 -0
  1755. /package/{utils → app/utils}/vueform.ts +0 -0
@@ -0,0 +1,3216 @@
1
+ // src/utils.ts
2
+ function clone(something) {
3
+ return doClone(something);
4
+ }
5
+ function doClone(something) {
6
+ if (Array.isArray(something)) {
7
+ return cloneArray(something);
8
+ }
9
+ if (something instanceof RegExp) {
10
+ return something;
11
+ }
12
+ if (typeof something === "object") {
13
+ return cloneObj(something);
14
+ }
15
+ return something;
16
+ }
17
+ function cloneArray(arr) {
18
+ let r = [];
19
+ for (let i = 0, len = arr.length; i < len; i++) {
20
+ r[i] = doClone(arr[i]);
21
+ }
22
+ return r;
23
+ }
24
+ function cloneObj(obj) {
25
+ let r = {};
26
+ for (let key in obj) {
27
+ r[key] = doClone(obj[key]);
28
+ }
29
+ return r;
30
+ }
31
+ function mergeObjects(target, ...sources) {
32
+ sources.forEach((source) => {
33
+ for (let key in source) {
34
+ target[key] = source[key];
35
+ }
36
+ });
37
+ return target;
38
+ }
39
+ function basename(path) {
40
+ const idx = ~path.lastIndexOf("/") || ~path.lastIndexOf("\\");
41
+ if (idx === 0) {
42
+ return path;
43
+ } else if (~idx === path.length - 1) {
44
+ return basename(path.substring(0, path.length - 1));
45
+ } else {
46
+ return path.substr(~idx + 1);
47
+ }
48
+ }
49
+ var CAPTURING_REGEX_SOURCE = /\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;
50
+ var RegexSource = class {
51
+ static hasCaptures(regexSource) {
52
+ if (regexSource === null) {
53
+ return false;
54
+ }
55
+ CAPTURING_REGEX_SOURCE.lastIndex = 0;
56
+ return CAPTURING_REGEX_SOURCE.test(regexSource);
57
+ }
58
+ static replaceCaptures(regexSource, captureSource, captureIndices) {
59
+ return regexSource.replace(CAPTURING_REGEX_SOURCE, (match, index, commandIndex, command) => {
60
+ let capture = captureIndices[parseInt(index || commandIndex, 10)];
61
+ if (capture) {
62
+ let result = captureSource.substring(capture.start, capture.end);
63
+ while (result[0] === ".") {
64
+ result = result.substring(1);
65
+ }
66
+ switch (command) {
67
+ case "downcase":
68
+ return result.toLowerCase();
69
+ case "upcase":
70
+ return result.toUpperCase();
71
+ default:
72
+ return result;
73
+ }
74
+ } else {
75
+ return match;
76
+ }
77
+ });
78
+ }
79
+ };
80
+ function strcmp(a, b) {
81
+ if (a < b) {
82
+ return -1;
83
+ }
84
+ if (a > b) {
85
+ return 1;
86
+ }
87
+ return 0;
88
+ }
89
+ function strArrCmp(a, b) {
90
+ if (a === null && b === null) {
91
+ return 0;
92
+ }
93
+ if (!a) {
94
+ return -1;
95
+ }
96
+ if (!b) {
97
+ return 1;
98
+ }
99
+ let len1 = a.length;
100
+ let len2 = b.length;
101
+ if (len1 === len2) {
102
+ for (let i = 0; i < len1; i++) {
103
+ let res = strcmp(a[i], b[i]);
104
+ if (res !== 0) {
105
+ return res;
106
+ }
107
+ }
108
+ return 0;
109
+ }
110
+ return len1 - len2;
111
+ }
112
+ function isValidHexColor(hex) {
113
+ if (/^#[0-9a-f]{6}$/i.test(hex)) {
114
+ return true;
115
+ }
116
+ if (/^#[0-9a-f]{8}$/i.test(hex)) {
117
+ return true;
118
+ }
119
+ if (/^#[0-9a-f]{3}$/i.test(hex)) {
120
+ return true;
121
+ }
122
+ if (/^#[0-9a-f]{4}$/i.test(hex)) {
123
+ return true;
124
+ }
125
+ return false;
126
+ }
127
+ function escapeRegExpCharacters(value) {
128
+ return value.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, "\\$&");
129
+ }
130
+ var CachedFn = class {
131
+ constructor(fn) {
132
+ this.fn = fn;
133
+ }
134
+ cache = /* @__PURE__ */ new Map();
135
+ get(key) {
136
+ if (this.cache.has(key)) {
137
+ return this.cache.get(key);
138
+ }
139
+ const value = this.fn(key);
140
+ this.cache.set(key, value);
141
+ return value;
142
+ }
143
+ };
144
+
145
+ // src/theme.ts
146
+ var Theme = class {
147
+ constructor(_colorMap, _defaults, _root) {
148
+ this._colorMap = _colorMap;
149
+ this._defaults = _defaults;
150
+ this._root = _root;
151
+ }
152
+ static createFromRawTheme(source, colorMap) {
153
+ return this.createFromParsedTheme(parseTheme(source), colorMap);
154
+ }
155
+ static createFromParsedTheme(source, colorMap) {
156
+ return resolveParsedThemeRules(source, colorMap);
157
+ }
158
+ _cachedMatchRoot = new CachedFn(
159
+ (scopeName) => this._root.match(scopeName)
160
+ );
161
+ getColorMap() {
162
+ return this._colorMap.getColorMap();
163
+ }
164
+ getDefaults() {
165
+ return this._defaults;
166
+ }
167
+ match(scopePath) {
168
+ if (scopePath === null) {
169
+ return this._defaults;
170
+ }
171
+ const scopeName = scopePath.scopeName;
172
+ const matchingTrieElements = this._cachedMatchRoot.get(scopeName);
173
+ const effectiveRule = matchingTrieElements.find(
174
+ (v) => _scopePathMatchesParentScopes(scopePath.parent, v.parentScopes)
175
+ );
176
+ if (!effectiveRule) {
177
+ return null;
178
+ }
179
+ return new StyleAttributes(
180
+ effectiveRule.fontStyle,
181
+ effectiveRule.foreground,
182
+ effectiveRule.background
183
+ );
184
+ }
185
+ };
186
+ var ScopeStack = class _ScopeStack {
187
+ constructor(parent, scopeName) {
188
+ this.parent = parent;
189
+ this.scopeName = scopeName;
190
+ }
191
+ static push(path, scopeNames) {
192
+ for (const name of scopeNames) {
193
+ path = new _ScopeStack(path, name);
194
+ }
195
+ return path;
196
+ }
197
+ static from(...segments) {
198
+ let result = null;
199
+ for (let i = 0; i < segments.length; i++) {
200
+ result = new _ScopeStack(result, segments[i]);
201
+ }
202
+ return result;
203
+ }
204
+ push(scopeName) {
205
+ return new _ScopeStack(this, scopeName);
206
+ }
207
+ getSegments() {
208
+ let item = this;
209
+ const result = [];
210
+ while (item) {
211
+ result.push(item.scopeName);
212
+ item = item.parent;
213
+ }
214
+ result.reverse();
215
+ return result;
216
+ }
217
+ toString() {
218
+ return this.getSegments().join(" ");
219
+ }
220
+ extends(other) {
221
+ if (this === other) {
222
+ return true;
223
+ }
224
+ if (this.parent === null) {
225
+ return false;
226
+ }
227
+ return this.parent.extends(other);
228
+ }
229
+ getExtensionIfDefined(base) {
230
+ const result = [];
231
+ let item = this;
232
+ while (item && item !== base) {
233
+ result.push(item.scopeName);
234
+ item = item.parent;
235
+ }
236
+ return item === base ? result.reverse() : void 0;
237
+ }
238
+ };
239
+ function _scopePathMatchesParentScopes(scopePath, parentScopes) {
240
+ if (parentScopes.length === 0) {
241
+ return true;
242
+ }
243
+ for (let index = 0; index < parentScopes.length; index++) {
244
+ let scopePattern = parentScopes[index];
245
+ let scopeMustMatch = false;
246
+ if (scopePattern === ">") {
247
+ if (index === parentScopes.length - 1) {
248
+ return false;
249
+ }
250
+ scopePattern = parentScopes[++index];
251
+ scopeMustMatch = true;
252
+ }
253
+ while (scopePath) {
254
+ if (_matchesScope(scopePath.scopeName, scopePattern)) {
255
+ break;
256
+ }
257
+ if (scopeMustMatch) {
258
+ return false;
259
+ }
260
+ scopePath = scopePath.parent;
261
+ }
262
+ if (!scopePath) {
263
+ return false;
264
+ }
265
+ scopePath = scopePath.parent;
266
+ }
267
+ return true;
268
+ }
269
+ function _matchesScope(scopeName, scopePattern) {
270
+ return scopePattern === scopeName || scopeName.startsWith(scopePattern) && scopeName[scopePattern.length] === ".";
271
+ }
272
+ var StyleAttributes = class {
273
+ constructor(fontStyle, foregroundId, backgroundId) {
274
+ this.fontStyle = fontStyle;
275
+ this.foregroundId = foregroundId;
276
+ this.backgroundId = backgroundId;
277
+ }
278
+ };
279
+ function parseTheme(source) {
280
+ if (!source) {
281
+ return [];
282
+ }
283
+ if (!source.settings || !Array.isArray(source.settings)) {
284
+ return [];
285
+ }
286
+ let settings = source.settings;
287
+ let result = [], resultLen = 0;
288
+ for (let i = 0, len = settings.length; i < len; i++) {
289
+ let entry = settings[i];
290
+ if (!entry.settings) {
291
+ continue;
292
+ }
293
+ let scopes;
294
+ if (typeof entry.scope === "string") {
295
+ let _scope = entry.scope;
296
+ _scope = _scope.replace(/^[,]+/, "");
297
+ _scope = _scope.replace(/[,]+$/, "");
298
+ scopes = _scope.split(",");
299
+ } else if (Array.isArray(entry.scope)) {
300
+ scopes = entry.scope;
301
+ } else {
302
+ scopes = [""];
303
+ }
304
+ let fontStyle = -1 /* NotSet */;
305
+ if (typeof entry.settings.fontStyle === "string") {
306
+ fontStyle = 0 /* None */;
307
+ let segments = entry.settings.fontStyle.split(" ");
308
+ for (let j = 0, lenJ = segments.length; j < lenJ; j++) {
309
+ let segment = segments[j];
310
+ switch (segment) {
311
+ case "italic":
312
+ fontStyle = fontStyle | 1 /* Italic */;
313
+ break;
314
+ case "bold":
315
+ fontStyle = fontStyle | 2 /* Bold */;
316
+ break;
317
+ case "underline":
318
+ fontStyle = fontStyle | 4 /* Underline */;
319
+ break;
320
+ case "strikethrough":
321
+ fontStyle = fontStyle | 8 /* Strikethrough */;
322
+ break;
323
+ }
324
+ }
325
+ }
326
+ let foreground = null;
327
+ if (typeof entry.settings.foreground === "string" && isValidHexColor(entry.settings.foreground)) {
328
+ foreground = entry.settings.foreground;
329
+ }
330
+ let background = null;
331
+ if (typeof entry.settings.background === "string" && isValidHexColor(entry.settings.background)) {
332
+ background = entry.settings.background;
333
+ }
334
+ for (let j = 0, lenJ = scopes.length; j < lenJ; j++) {
335
+ let _scope = scopes[j].trim();
336
+ let segments = _scope.split(" ");
337
+ let scope = segments[segments.length - 1];
338
+ let parentScopes = null;
339
+ if (segments.length > 1) {
340
+ parentScopes = segments.slice(0, segments.length - 1);
341
+ parentScopes.reverse();
342
+ }
343
+ result[resultLen++] = new ParsedThemeRule(
344
+ scope,
345
+ parentScopes,
346
+ i,
347
+ fontStyle,
348
+ foreground,
349
+ background
350
+ );
351
+ }
352
+ }
353
+ return result;
354
+ }
355
+ var ParsedThemeRule = class {
356
+ constructor(scope, parentScopes, index, fontStyle, foreground, background) {
357
+ this.scope = scope;
358
+ this.parentScopes = parentScopes;
359
+ this.index = index;
360
+ this.fontStyle = fontStyle;
361
+ this.foreground = foreground;
362
+ this.background = background;
363
+ }
364
+ };
365
+ var FontStyle = /* @__PURE__ */ ((FontStyle2) => {
366
+ FontStyle2[FontStyle2["NotSet"] = -1] = "NotSet";
367
+ FontStyle2[FontStyle2["None"] = 0] = "None";
368
+ FontStyle2[FontStyle2["Italic"] = 1] = "Italic";
369
+ FontStyle2[FontStyle2["Bold"] = 2] = "Bold";
370
+ FontStyle2[FontStyle2["Underline"] = 4] = "Underline";
371
+ FontStyle2[FontStyle2["Strikethrough"] = 8] = "Strikethrough";
372
+ return FontStyle2;
373
+ })(FontStyle || {});
374
+ function resolveParsedThemeRules(parsedThemeRules, _colorMap) {
375
+ parsedThemeRules.sort((a, b) => {
376
+ let r = strcmp(a.scope, b.scope);
377
+ if (r !== 0) {
378
+ return r;
379
+ }
380
+ r = strArrCmp(a.parentScopes, b.parentScopes);
381
+ if (r !== 0) {
382
+ return r;
383
+ }
384
+ return a.index - b.index;
385
+ });
386
+ let defaultFontStyle = 0 /* None */;
387
+ let defaultForeground = "#000000";
388
+ let defaultBackground = "#ffffff";
389
+ while (parsedThemeRules.length >= 1 && parsedThemeRules[0].scope === "") {
390
+ let incomingDefaults = parsedThemeRules.shift();
391
+ if (incomingDefaults.fontStyle !== -1 /* NotSet */) {
392
+ defaultFontStyle = incomingDefaults.fontStyle;
393
+ }
394
+ if (incomingDefaults.foreground !== null) {
395
+ defaultForeground = incomingDefaults.foreground;
396
+ }
397
+ if (incomingDefaults.background !== null) {
398
+ defaultBackground = incomingDefaults.background;
399
+ }
400
+ }
401
+ let colorMap = new ColorMap(_colorMap);
402
+ let defaults = new StyleAttributes(defaultFontStyle, colorMap.getId(defaultForeground), colorMap.getId(defaultBackground));
403
+ let root = new ThemeTrieElement(new ThemeTrieElementRule(0, null, -1 /* NotSet */, 0, 0), []);
404
+ for (let i = 0, len = parsedThemeRules.length; i < len; i++) {
405
+ let rule = parsedThemeRules[i];
406
+ root.insert(0, rule.scope, rule.parentScopes, rule.fontStyle, colorMap.getId(rule.foreground), colorMap.getId(rule.background));
407
+ }
408
+ return new Theme(colorMap, defaults, root);
409
+ }
410
+ var ColorMap = class {
411
+ _isFrozen;
412
+ _lastColorId;
413
+ _id2color;
414
+ _color2id;
415
+ constructor(_colorMap) {
416
+ this._lastColorId = 0;
417
+ this._id2color = [];
418
+ this._color2id = /* @__PURE__ */ Object.create(null);
419
+ if (Array.isArray(_colorMap)) {
420
+ this._isFrozen = true;
421
+ for (let i = 0, len = _colorMap.length; i < len; i++) {
422
+ this._color2id[_colorMap[i]] = i;
423
+ this._id2color[i] = _colorMap[i];
424
+ }
425
+ } else {
426
+ this._isFrozen = false;
427
+ }
428
+ }
429
+ getId(color) {
430
+ if (color === null) {
431
+ return 0;
432
+ }
433
+ color = color.toUpperCase();
434
+ let value = this._color2id[color];
435
+ if (value) {
436
+ return value;
437
+ }
438
+ if (this._isFrozen) {
439
+ throw new Error(`Missing color in color map - ${color}`);
440
+ }
441
+ value = ++this._lastColorId;
442
+ this._color2id[color] = value;
443
+ this._id2color[value] = color;
444
+ return value;
445
+ }
446
+ getColorMap() {
447
+ return this._id2color.slice(0);
448
+ }
449
+ };
450
+ var emptyParentScopes = Object.freeze([]);
451
+ var ThemeTrieElementRule = class _ThemeTrieElementRule {
452
+ scopeDepth;
453
+ parentScopes;
454
+ fontStyle;
455
+ foreground;
456
+ background;
457
+ constructor(scopeDepth, parentScopes, fontStyle, foreground, background) {
458
+ this.scopeDepth = scopeDepth;
459
+ this.parentScopes = parentScopes || emptyParentScopes;
460
+ this.fontStyle = fontStyle;
461
+ this.foreground = foreground;
462
+ this.background = background;
463
+ }
464
+ clone() {
465
+ return new _ThemeTrieElementRule(this.scopeDepth, this.parentScopes, this.fontStyle, this.foreground, this.background);
466
+ }
467
+ static cloneArr(arr) {
468
+ let r = [];
469
+ for (let i = 0, len = arr.length; i < len; i++) {
470
+ r[i] = arr[i].clone();
471
+ }
472
+ return r;
473
+ }
474
+ acceptOverwrite(scopeDepth, fontStyle, foreground, background) {
475
+ if (this.scopeDepth > scopeDepth) {
476
+ console.log("how did this happen?");
477
+ } else {
478
+ this.scopeDepth = scopeDepth;
479
+ }
480
+ if (fontStyle !== -1 /* NotSet */) {
481
+ this.fontStyle = fontStyle;
482
+ }
483
+ if (foreground !== 0) {
484
+ this.foreground = foreground;
485
+ }
486
+ if (background !== 0) {
487
+ this.background = background;
488
+ }
489
+ }
490
+ };
491
+ var ThemeTrieElement = class _ThemeTrieElement {
492
+ constructor(_mainRule, rulesWithParentScopes = [], _children = {}) {
493
+ this._mainRule = _mainRule;
494
+ this._children = _children;
495
+ this._rulesWithParentScopes = rulesWithParentScopes;
496
+ }
497
+ _rulesWithParentScopes;
498
+ static _cmpBySpecificity(a, b) {
499
+ if (a.scopeDepth !== b.scopeDepth) {
500
+ return b.scopeDepth - a.scopeDepth;
501
+ }
502
+ let aParentIndex = 0;
503
+ let bParentIndex = 0;
504
+ while (true) {
505
+ if (a.parentScopes[aParentIndex] === ">") {
506
+ aParentIndex++;
507
+ }
508
+ if (b.parentScopes[bParentIndex] === ">") {
509
+ bParentIndex++;
510
+ }
511
+ if (aParentIndex >= a.parentScopes.length || bParentIndex >= b.parentScopes.length) {
512
+ break;
513
+ }
514
+ const parentScopeLengthDiff = b.parentScopes[bParentIndex].length - a.parentScopes[aParentIndex].length;
515
+ if (parentScopeLengthDiff !== 0) {
516
+ return parentScopeLengthDiff;
517
+ }
518
+ aParentIndex++;
519
+ bParentIndex++;
520
+ }
521
+ return b.parentScopes.length - a.parentScopes.length;
522
+ }
523
+ match(scope) {
524
+ if (scope !== "") {
525
+ let dotIndex = scope.indexOf(".");
526
+ let head;
527
+ let tail;
528
+ if (dotIndex === -1) {
529
+ head = scope;
530
+ tail = "";
531
+ } else {
532
+ head = scope.substring(0, dotIndex);
533
+ tail = scope.substring(dotIndex + 1);
534
+ }
535
+ if (this._children.hasOwnProperty(head)) {
536
+ return this._children[head].match(tail);
537
+ }
538
+ }
539
+ const rules = this._rulesWithParentScopes.concat(this._mainRule);
540
+ rules.sort(_ThemeTrieElement._cmpBySpecificity);
541
+ return rules;
542
+ }
543
+ insert(scopeDepth, scope, parentScopes, fontStyle, foreground, background) {
544
+ if (scope === "") {
545
+ this._doInsertHere(scopeDepth, parentScopes, fontStyle, foreground, background);
546
+ return;
547
+ }
548
+ let dotIndex = scope.indexOf(".");
549
+ let head;
550
+ let tail;
551
+ if (dotIndex === -1) {
552
+ head = scope;
553
+ tail = "";
554
+ } else {
555
+ head = scope.substring(0, dotIndex);
556
+ tail = scope.substring(dotIndex + 1);
557
+ }
558
+ let child;
559
+ if (this._children.hasOwnProperty(head)) {
560
+ child = this._children[head];
561
+ } else {
562
+ child = new _ThemeTrieElement(this._mainRule.clone(), ThemeTrieElementRule.cloneArr(this._rulesWithParentScopes));
563
+ this._children[head] = child;
564
+ }
565
+ child.insert(scopeDepth + 1, tail, parentScopes, fontStyle, foreground, background);
566
+ }
567
+ _doInsertHere(scopeDepth, parentScopes, fontStyle, foreground, background) {
568
+ if (parentScopes === null) {
569
+ this._mainRule.acceptOverwrite(scopeDepth, fontStyle, foreground, background);
570
+ return;
571
+ }
572
+ for (let i = 0, len = this._rulesWithParentScopes.length; i < len; i++) {
573
+ let rule = this._rulesWithParentScopes[i];
574
+ if (strArrCmp(rule.parentScopes, parentScopes) === 0) {
575
+ rule.acceptOverwrite(scopeDepth, fontStyle, foreground, background);
576
+ return;
577
+ }
578
+ }
579
+ if (fontStyle === -1 /* NotSet */) {
580
+ fontStyle = this._mainRule.fontStyle;
581
+ }
582
+ if (foreground === 0) {
583
+ foreground = this._mainRule.foreground;
584
+ }
585
+ if (background === 0) {
586
+ background = this._mainRule.background;
587
+ }
588
+ this._rulesWithParentScopes.push(new ThemeTrieElementRule(scopeDepth, parentScopes, fontStyle, foreground, background));
589
+ }
590
+ };
591
+
592
+ // src/encodedTokenAttributes.ts
593
+ var EncodedTokenMetadata = class _EncodedTokenMetadata {
594
+ static toBinaryStr(encodedTokenAttributes) {
595
+ return encodedTokenAttributes.toString(2).padStart(32, "0");
596
+ }
597
+ static print(encodedTokenAttributes) {
598
+ const languageId = _EncodedTokenMetadata.getLanguageId(encodedTokenAttributes);
599
+ const tokenType = _EncodedTokenMetadata.getTokenType(encodedTokenAttributes);
600
+ const fontStyle = _EncodedTokenMetadata.getFontStyle(encodedTokenAttributes);
601
+ const foreground = _EncodedTokenMetadata.getForeground(encodedTokenAttributes);
602
+ const background = _EncodedTokenMetadata.getBackground(encodedTokenAttributes);
603
+ console.log({
604
+ languageId,
605
+ tokenType,
606
+ fontStyle,
607
+ foreground,
608
+ background
609
+ });
610
+ }
611
+ static getLanguageId(encodedTokenAttributes) {
612
+ return (encodedTokenAttributes & 255 /* LANGUAGEID_MASK */) >>> 0 /* LANGUAGEID_OFFSET */;
613
+ }
614
+ static getTokenType(encodedTokenAttributes) {
615
+ return (encodedTokenAttributes & 768 /* TOKEN_TYPE_MASK */) >>> 8 /* TOKEN_TYPE_OFFSET */;
616
+ }
617
+ static containsBalancedBrackets(encodedTokenAttributes) {
618
+ return (encodedTokenAttributes & 1024 /* BALANCED_BRACKETS_MASK */) !== 0;
619
+ }
620
+ static getFontStyle(encodedTokenAttributes) {
621
+ return (encodedTokenAttributes & 30720 /* FONT_STYLE_MASK */) >>> 11 /* FONT_STYLE_OFFSET */;
622
+ }
623
+ static getForeground(encodedTokenAttributes) {
624
+ return (encodedTokenAttributes & 16744448 /* FOREGROUND_MASK */) >>> 15 /* FOREGROUND_OFFSET */;
625
+ }
626
+ static getBackground(encodedTokenAttributes) {
627
+ return (encodedTokenAttributes & 4278190080 /* BACKGROUND_MASK */) >>> 24 /* BACKGROUND_OFFSET */;
628
+ }
629
+ /**
630
+ * Updates the fields in `metadata`.
631
+ * A value of `0`, `NotSet` or `null` indicates that the corresponding field should be left as is.
632
+ */
633
+ static set(encodedTokenAttributes, languageId, tokenType, containsBalancedBrackets, fontStyle, foreground, background) {
634
+ let _languageId = _EncodedTokenMetadata.getLanguageId(encodedTokenAttributes);
635
+ let _tokenType = _EncodedTokenMetadata.getTokenType(encodedTokenAttributes);
636
+ let _containsBalancedBracketsBit = _EncodedTokenMetadata.containsBalancedBrackets(encodedTokenAttributes) ? 1 : 0;
637
+ let _fontStyle = _EncodedTokenMetadata.getFontStyle(encodedTokenAttributes);
638
+ let _foreground = _EncodedTokenMetadata.getForeground(encodedTokenAttributes);
639
+ let _background = _EncodedTokenMetadata.getBackground(encodedTokenAttributes);
640
+ if (languageId !== 0) {
641
+ _languageId = languageId;
642
+ }
643
+ if (tokenType !== 8 /* NotSet */) {
644
+ _tokenType = fromOptionalTokenType(tokenType);
645
+ }
646
+ if (containsBalancedBrackets !== null) {
647
+ _containsBalancedBracketsBit = containsBalancedBrackets ? 1 : 0;
648
+ }
649
+ if (fontStyle !== -1 /* NotSet */) {
650
+ _fontStyle = fontStyle;
651
+ }
652
+ if (foreground !== 0) {
653
+ _foreground = foreground;
654
+ }
655
+ if (background !== 0) {
656
+ _background = background;
657
+ }
658
+ return (_languageId << 0 /* LANGUAGEID_OFFSET */ | _tokenType << 8 /* TOKEN_TYPE_OFFSET */ | _containsBalancedBracketsBit << 10 /* BALANCED_BRACKETS_OFFSET */ | _fontStyle << 11 /* FONT_STYLE_OFFSET */ | _foreground << 15 /* FOREGROUND_OFFSET */ | _background << 24 /* BACKGROUND_OFFSET */) >>> 0;
659
+ }
660
+ };
661
+ function toOptionalTokenType(standardType) {
662
+ return standardType;
663
+ }
664
+ function fromOptionalTokenType(standardType) {
665
+ return standardType;
666
+ }
667
+
668
+ // src/matcher.ts
669
+ function createMatchers(selector, matchesName) {
670
+ const results = [];
671
+ const tokenizer = newTokenizer(selector);
672
+ let token = tokenizer.next();
673
+ while (token !== null) {
674
+ let priority = 0;
675
+ if (token.length === 2 && token.charAt(1) === ":") {
676
+ switch (token.charAt(0)) {
677
+ case "R":
678
+ priority = 1;
679
+ break;
680
+ case "L":
681
+ priority = -1;
682
+ break;
683
+ default:
684
+ console.log(`Unknown priority ${token} in scope selector`);
685
+ }
686
+ token = tokenizer.next();
687
+ }
688
+ let matcher = parseConjunction();
689
+ results.push({ matcher, priority });
690
+ if (token !== ",") {
691
+ break;
692
+ }
693
+ token = tokenizer.next();
694
+ }
695
+ return results;
696
+ function parseOperand() {
697
+ if (token === "-") {
698
+ token = tokenizer.next();
699
+ const expressionToNegate = parseOperand();
700
+ return (matcherInput) => !!expressionToNegate && !expressionToNegate(matcherInput);
701
+ }
702
+ if (token === "(") {
703
+ token = tokenizer.next();
704
+ const expressionInParents = parseInnerExpression();
705
+ if (token === ")") {
706
+ token = tokenizer.next();
707
+ }
708
+ return expressionInParents;
709
+ }
710
+ if (isIdentifier(token)) {
711
+ const identifiers = [];
712
+ do {
713
+ identifiers.push(token);
714
+ token = tokenizer.next();
715
+ } while (isIdentifier(token));
716
+ return (matcherInput) => matchesName(identifiers, matcherInput);
717
+ }
718
+ return null;
719
+ }
720
+ function parseConjunction() {
721
+ const matchers = [];
722
+ let matcher = parseOperand();
723
+ while (matcher) {
724
+ matchers.push(matcher);
725
+ matcher = parseOperand();
726
+ }
727
+ return (matcherInput) => matchers.every((matcher2) => matcher2(matcherInput));
728
+ }
729
+ function parseInnerExpression() {
730
+ const matchers = [];
731
+ let matcher = parseConjunction();
732
+ while (matcher) {
733
+ matchers.push(matcher);
734
+ if (token === "|" || token === ",") {
735
+ do {
736
+ token = tokenizer.next();
737
+ } while (token === "|" || token === ",");
738
+ } else {
739
+ break;
740
+ }
741
+ matcher = parseConjunction();
742
+ }
743
+ return (matcherInput) => matchers.some((matcher2) => matcher2(matcherInput));
744
+ }
745
+ }
746
+ function isIdentifier(token) {
747
+ return !!token && !!token.match(/[\w\.:]+/);
748
+ }
749
+ function newTokenizer(input) {
750
+ let regex = /([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g;
751
+ let match = regex.exec(input);
752
+ return {
753
+ next: () => {
754
+ if (!match) {
755
+ return null;
756
+ }
757
+ const res = match[0];
758
+ match = regex.exec(input);
759
+ return res;
760
+ }
761
+ };
762
+ }
763
+
764
+ // src/onigLib.ts
765
+ var FindOption = /* @__PURE__ */ ((FindOption2) => {
766
+ FindOption2[FindOption2["None"] = 0] = "None";
767
+ FindOption2[FindOption2["NotBeginString"] = 1] = "NotBeginString";
768
+ FindOption2[FindOption2["NotEndString"] = 2] = "NotEndString";
769
+ FindOption2[FindOption2["NotBeginPosition"] = 4] = "NotBeginPosition";
770
+ FindOption2[FindOption2["DebugCall"] = 8] = "DebugCall";
771
+ return FindOption2;
772
+ })(FindOption || {});
773
+ function disposeOnigString(str) {
774
+ if (typeof str.dispose === "function") {
775
+ str.dispose();
776
+ }
777
+ }
778
+
779
+ // src/grammar/grammarDependencies.ts
780
+ var TopLevelRuleReference = class {
781
+ constructor(scopeName) {
782
+ this.scopeName = scopeName;
783
+ }
784
+ toKey() {
785
+ return this.scopeName;
786
+ }
787
+ };
788
+ var TopLevelRepositoryRuleReference = class {
789
+ constructor(scopeName, ruleName) {
790
+ this.scopeName = scopeName;
791
+ this.ruleName = ruleName;
792
+ }
793
+ toKey() {
794
+ return `${this.scopeName}#${this.ruleName}`;
795
+ }
796
+ };
797
+ var ExternalReferenceCollector = class {
798
+ _references = [];
799
+ _seenReferenceKeys = /* @__PURE__ */ new Set();
800
+ get references() {
801
+ return this._references;
802
+ }
803
+ visitedRule = /* @__PURE__ */ new Set();
804
+ add(reference) {
805
+ const key = reference.toKey();
806
+ if (this._seenReferenceKeys.has(key)) {
807
+ return;
808
+ }
809
+ this._seenReferenceKeys.add(key);
810
+ this._references.push(reference);
811
+ }
812
+ };
813
+ var ScopeDependencyProcessor = class {
814
+ constructor(repo, initialScopeName) {
815
+ this.repo = repo;
816
+ this.initialScopeName = initialScopeName;
817
+ this.seenFullScopeRequests.add(this.initialScopeName);
818
+ this.Q = [new TopLevelRuleReference(this.initialScopeName)];
819
+ }
820
+ seenFullScopeRequests = /* @__PURE__ */ new Set();
821
+ seenPartialScopeRequests = /* @__PURE__ */ new Set();
822
+ Q;
823
+ processQueue() {
824
+ const q = this.Q;
825
+ this.Q = [];
826
+ const deps = new ExternalReferenceCollector();
827
+ for (const dep of q) {
828
+ collectReferencesOfReference(dep, this.initialScopeName, this.repo, deps);
829
+ }
830
+ for (const dep of deps.references) {
831
+ if (dep instanceof TopLevelRuleReference) {
832
+ if (this.seenFullScopeRequests.has(dep.scopeName)) {
833
+ continue;
834
+ }
835
+ this.seenFullScopeRequests.add(dep.scopeName);
836
+ this.Q.push(dep);
837
+ } else {
838
+ if (this.seenFullScopeRequests.has(dep.scopeName)) {
839
+ continue;
840
+ }
841
+ if (this.seenPartialScopeRequests.has(dep.toKey())) {
842
+ continue;
843
+ }
844
+ this.seenPartialScopeRequests.add(dep.toKey());
845
+ this.Q.push(dep);
846
+ }
847
+ }
848
+ }
849
+ };
850
+ function collectReferencesOfReference(reference, baseGrammarScopeName, repo, result) {
851
+ const selfGrammar = repo.lookup(reference.scopeName);
852
+ if (!selfGrammar) {
853
+ if (reference.scopeName === baseGrammarScopeName) {
854
+ throw new Error(`No grammar provided for <${baseGrammarScopeName}>`);
855
+ }
856
+ return;
857
+ }
858
+ const baseGrammar = repo.lookup(baseGrammarScopeName);
859
+ if (reference instanceof TopLevelRuleReference) {
860
+ collectExternalReferencesInTopLevelRule({ baseGrammar, selfGrammar }, result);
861
+ } else {
862
+ collectExternalReferencesInTopLevelRepositoryRule(
863
+ reference.ruleName,
864
+ { baseGrammar, selfGrammar, repository: selfGrammar.repository },
865
+ result
866
+ );
867
+ }
868
+ const injections = repo.injections(reference.scopeName);
869
+ if (injections) {
870
+ for (const injection of injections) {
871
+ result.add(new TopLevelRuleReference(injection));
872
+ }
873
+ }
874
+ }
875
+ function collectExternalReferencesInTopLevelRepositoryRule(ruleName, context, result) {
876
+ if (context.repository && context.repository[ruleName]) {
877
+ const rule = context.repository[ruleName];
878
+ collectExternalReferencesInRules([rule], context, result);
879
+ }
880
+ }
881
+ function collectExternalReferencesInTopLevelRule(context, result) {
882
+ if (context.selfGrammar.patterns && Array.isArray(context.selfGrammar.patterns)) {
883
+ collectExternalReferencesInRules(
884
+ context.selfGrammar.patterns,
885
+ { ...context, repository: context.selfGrammar.repository },
886
+ result
887
+ );
888
+ }
889
+ if (context.selfGrammar.injections) {
890
+ collectExternalReferencesInRules(
891
+ Object.values(context.selfGrammar.injections),
892
+ { ...context, repository: context.selfGrammar.repository },
893
+ result
894
+ );
895
+ }
896
+ }
897
+ function collectExternalReferencesInRules(rules, context, result) {
898
+ for (const rule of rules) {
899
+ if (result.visitedRule.has(rule)) {
900
+ continue;
901
+ }
902
+ result.visitedRule.add(rule);
903
+ const patternRepository = rule.repository ? mergeObjects({}, context.repository, rule.repository) : context.repository;
904
+ if (Array.isArray(rule.patterns)) {
905
+ collectExternalReferencesInRules(rule.patterns, { ...context, repository: patternRepository }, result);
906
+ }
907
+ const include = rule.include;
908
+ if (!include) {
909
+ continue;
910
+ }
911
+ const reference = parseInclude(include);
912
+ switch (reference.kind) {
913
+ case 0 /* Base */:
914
+ collectExternalReferencesInTopLevelRule({ ...context, selfGrammar: context.baseGrammar }, result);
915
+ break;
916
+ case 1 /* Self */:
917
+ collectExternalReferencesInTopLevelRule(context, result);
918
+ break;
919
+ case 2 /* RelativeReference */:
920
+ collectExternalReferencesInTopLevelRepositoryRule(reference.ruleName, { ...context, repository: patternRepository }, result);
921
+ break;
922
+ case 3 /* TopLevelReference */:
923
+ case 4 /* TopLevelRepositoryReference */:
924
+ const selfGrammar = reference.scopeName === context.selfGrammar.scopeName ? context.selfGrammar : reference.scopeName === context.baseGrammar.scopeName ? context.baseGrammar : void 0;
925
+ if (selfGrammar) {
926
+ const newContext = { baseGrammar: context.baseGrammar, selfGrammar, repository: patternRepository };
927
+ if (reference.kind === 4 /* TopLevelRepositoryReference */) {
928
+ collectExternalReferencesInTopLevelRepositoryRule(reference.ruleName, newContext, result);
929
+ } else {
930
+ collectExternalReferencesInTopLevelRule(newContext, result);
931
+ }
932
+ } else {
933
+ if (reference.kind === 4 /* TopLevelRepositoryReference */) {
934
+ result.add(new TopLevelRepositoryRuleReference(reference.scopeName, reference.ruleName));
935
+ } else {
936
+ result.add(new TopLevelRuleReference(reference.scopeName));
937
+ }
938
+ }
939
+ break;
940
+ }
941
+ }
942
+ }
943
+ var BaseReference = class {
944
+ kind = 0 /* Base */;
945
+ };
946
+ var SelfReference = class {
947
+ kind = 1 /* Self */;
948
+ };
949
+ var RelativeReference = class {
950
+ constructor(ruleName) {
951
+ this.ruleName = ruleName;
952
+ }
953
+ kind = 2 /* RelativeReference */;
954
+ };
955
+ var TopLevelReference = class {
956
+ constructor(scopeName) {
957
+ this.scopeName = scopeName;
958
+ }
959
+ kind = 3 /* TopLevelReference */;
960
+ };
961
+ var TopLevelRepositoryReference = class {
962
+ constructor(scopeName, ruleName) {
963
+ this.scopeName = scopeName;
964
+ this.ruleName = ruleName;
965
+ }
966
+ kind = 4 /* TopLevelRepositoryReference */;
967
+ };
968
+ function parseInclude(include) {
969
+ if (include === "$base") {
970
+ return new BaseReference();
971
+ } else if (include === "$self") {
972
+ return new SelfReference();
973
+ }
974
+ const indexOfSharp = include.indexOf("#");
975
+ if (indexOfSharp === -1) {
976
+ return new TopLevelReference(include);
977
+ } else if (indexOfSharp === 0) {
978
+ return new RelativeReference(include.substring(1));
979
+ } else {
980
+ const scopeName = include.substring(0, indexOfSharp);
981
+ const ruleName = include.substring(indexOfSharp + 1);
982
+ return new TopLevelRepositoryReference(scopeName, ruleName);
983
+ }
984
+ }
985
+
986
+ // src/rule.ts
987
+ var HAS_BACK_REFERENCES = /\\(\d+)/;
988
+ var BACK_REFERENCING_END = /\\(\d+)/g;
989
+ var ruleIdSymbol = Symbol("RuleId");
990
+ var endRuleId = -1;
991
+ var whileRuleId = -2;
992
+ function ruleIdFromNumber(id) {
993
+ return id;
994
+ }
995
+ function ruleIdToNumber(id) {
996
+ return id;
997
+ }
998
+ var Rule = class {
999
+ $location;
1000
+ id;
1001
+ _nameIsCapturing;
1002
+ _name;
1003
+ _contentNameIsCapturing;
1004
+ _contentName;
1005
+ constructor($location, id, name, contentName) {
1006
+ this.$location = $location;
1007
+ this.id = id;
1008
+ this._name = name || null;
1009
+ this._nameIsCapturing = RegexSource.hasCaptures(this._name);
1010
+ this._contentName = contentName || null;
1011
+ this._contentNameIsCapturing = RegexSource.hasCaptures(this._contentName);
1012
+ }
1013
+ get debugName() {
1014
+ const location = this.$location ? `${basename(this.$location.filename)}:${this.$location.line}` : "unknown";
1015
+ return `${this.constructor.name}#${this.id} @ ${location}`;
1016
+ }
1017
+ getName(lineText, captureIndices) {
1018
+ if (!this._nameIsCapturing || this._name === null || lineText === null || captureIndices === null) {
1019
+ return this._name;
1020
+ }
1021
+ return RegexSource.replaceCaptures(this._name, lineText, captureIndices);
1022
+ }
1023
+ getContentName(lineText, captureIndices) {
1024
+ if (!this._contentNameIsCapturing || this._contentName === null) {
1025
+ return this._contentName;
1026
+ }
1027
+ return RegexSource.replaceCaptures(this._contentName, lineText, captureIndices);
1028
+ }
1029
+ };
1030
+ var CaptureRule = class extends Rule {
1031
+ retokenizeCapturedWithRuleId;
1032
+ constructor($location, id, name, contentName, retokenizeCapturedWithRuleId) {
1033
+ super($location, id, name, contentName);
1034
+ this.retokenizeCapturedWithRuleId = retokenizeCapturedWithRuleId;
1035
+ }
1036
+ dispose() {
1037
+ }
1038
+ collectPatterns(grammar, out) {
1039
+ throw new Error("Not supported!");
1040
+ }
1041
+ compile(grammar, endRegexSource) {
1042
+ throw new Error("Not supported!");
1043
+ }
1044
+ compileAG(grammar, endRegexSource, allowA, allowG) {
1045
+ throw new Error("Not supported!");
1046
+ }
1047
+ };
1048
+ var MatchRule = class extends Rule {
1049
+ _match;
1050
+ captures;
1051
+ _cachedCompiledPatterns;
1052
+ constructor($location, id, name, match, captures) {
1053
+ super($location, id, name, null);
1054
+ this._match = new RegExpSource(match, this.id);
1055
+ this.captures = captures;
1056
+ this._cachedCompiledPatterns = null;
1057
+ }
1058
+ dispose() {
1059
+ if (this._cachedCompiledPatterns) {
1060
+ this._cachedCompiledPatterns.dispose();
1061
+ this._cachedCompiledPatterns = null;
1062
+ }
1063
+ }
1064
+ get debugMatchRegExp() {
1065
+ return `${this._match.source}`;
1066
+ }
1067
+ collectPatterns(grammar, out) {
1068
+ out.push(this._match);
1069
+ }
1070
+ compile(grammar, endRegexSource) {
1071
+ return this._getCachedCompiledPatterns(grammar).compile(grammar);
1072
+ }
1073
+ compileAG(grammar, endRegexSource, allowA, allowG) {
1074
+ return this._getCachedCompiledPatterns(grammar).compileAG(grammar, allowA, allowG);
1075
+ }
1076
+ _getCachedCompiledPatterns(grammar) {
1077
+ if (!this._cachedCompiledPatterns) {
1078
+ this._cachedCompiledPatterns = new RegExpSourceList();
1079
+ this.collectPatterns(grammar, this._cachedCompiledPatterns);
1080
+ }
1081
+ return this._cachedCompiledPatterns;
1082
+ }
1083
+ };
1084
+ var IncludeOnlyRule = class extends Rule {
1085
+ hasMissingPatterns;
1086
+ patterns;
1087
+ _cachedCompiledPatterns;
1088
+ constructor($location, id, name, contentName, patterns) {
1089
+ super($location, id, name, contentName);
1090
+ this.patterns = patterns.patterns;
1091
+ this.hasMissingPatterns = patterns.hasMissingPatterns;
1092
+ this._cachedCompiledPatterns = null;
1093
+ }
1094
+ dispose() {
1095
+ if (this._cachedCompiledPatterns) {
1096
+ this._cachedCompiledPatterns.dispose();
1097
+ this._cachedCompiledPatterns = null;
1098
+ }
1099
+ }
1100
+ collectPatterns(grammar, out) {
1101
+ for (const pattern of this.patterns) {
1102
+ const rule = grammar.getRule(pattern);
1103
+ rule.collectPatterns(grammar, out);
1104
+ }
1105
+ }
1106
+ compile(grammar, endRegexSource) {
1107
+ return this._getCachedCompiledPatterns(grammar).compile(grammar);
1108
+ }
1109
+ compileAG(grammar, endRegexSource, allowA, allowG) {
1110
+ return this._getCachedCompiledPatterns(grammar).compileAG(grammar, allowA, allowG);
1111
+ }
1112
+ _getCachedCompiledPatterns(grammar) {
1113
+ if (!this._cachedCompiledPatterns) {
1114
+ this._cachedCompiledPatterns = new RegExpSourceList();
1115
+ this.collectPatterns(grammar, this._cachedCompiledPatterns);
1116
+ }
1117
+ return this._cachedCompiledPatterns;
1118
+ }
1119
+ };
1120
+ var BeginEndRule = class extends Rule {
1121
+ _begin;
1122
+ beginCaptures;
1123
+ _end;
1124
+ endHasBackReferences;
1125
+ endCaptures;
1126
+ applyEndPatternLast;
1127
+ hasMissingPatterns;
1128
+ patterns;
1129
+ _cachedCompiledPatterns;
1130
+ constructor($location, id, name, contentName, begin, beginCaptures, end, endCaptures, applyEndPatternLast, patterns) {
1131
+ super($location, id, name, contentName);
1132
+ this._begin = new RegExpSource(begin, this.id);
1133
+ this.beginCaptures = beginCaptures;
1134
+ this._end = new RegExpSource(end ? end : "\uFFFF", -1);
1135
+ this.endHasBackReferences = this._end.hasBackReferences;
1136
+ this.endCaptures = endCaptures;
1137
+ this.applyEndPatternLast = applyEndPatternLast || false;
1138
+ this.patterns = patterns.patterns;
1139
+ this.hasMissingPatterns = patterns.hasMissingPatterns;
1140
+ this._cachedCompiledPatterns = null;
1141
+ }
1142
+ dispose() {
1143
+ if (this._cachedCompiledPatterns) {
1144
+ this._cachedCompiledPatterns.dispose();
1145
+ this._cachedCompiledPatterns = null;
1146
+ }
1147
+ }
1148
+ get debugBeginRegExp() {
1149
+ return `${this._begin.source}`;
1150
+ }
1151
+ get debugEndRegExp() {
1152
+ return `${this._end.source}`;
1153
+ }
1154
+ getEndWithResolvedBackReferences(lineText, captureIndices) {
1155
+ return this._end.resolveBackReferences(lineText, captureIndices);
1156
+ }
1157
+ collectPatterns(grammar, out) {
1158
+ out.push(this._begin);
1159
+ }
1160
+ compile(grammar, endRegexSource) {
1161
+ return this._getCachedCompiledPatterns(grammar, endRegexSource).compile(grammar);
1162
+ }
1163
+ compileAG(grammar, endRegexSource, allowA, allowG) {
1164
+ return this._getCachedCompiledPatterns(grammar, endRegexSource).compileAG(grammar, allowA, allowG);
1165
+ }
1166
+ _getCachedCompiledPatterns(grammar, endRegexSource) {
1167
+ if (!this._cachedCompiledPatterns) {
1168
+ this._cachedCompiledPatterns = new RegExpSourceList();
1169
+ for (const pattern of this.patterns) {
1170
+ const rule = grammar.getRule(pattern);
1171
+ rule.collectPatterns(grammar, this._cachedCompiledPatterns);
1172
+ }
1173
+ if (this.applyEndPatternLast) {
1174
+ this._cachedCompiledPatterns.push(this._end.hasBackReferences ? this._end.clone() : this._end);
1175
+ } else {
1176
+ this._cachedCompiledPatterns.unshift(this._end.hasBackReferences ? this._end.clone() : this._end);
1177
+ }
1178
+ }
1179
+ if (this._end.hasBackReferences) {
1180
+ if (this.applyEndPatternLast) {
1181
+ this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length() - 1, endRegexSource);
1182
+ } else {
1183
+ this._cachedCompiledPatterns.setSource(0, endRegexSource);
1184
+ }
1185
+ }
1186
+ return this._cachedCompiledPatterns;
1187
+ }
1188
+ };
1189
+ var BeginWhileRule = class extends Rule {
1190
+ _begin;
1191
+ beginCaptures;
1192
+ whileCaptures;
1193
+ _while;
1194
+ whileHasBackReferences;
1195
+ hasMissingPatterns;
1196
+ patterns;
1197
+ _cachedCompiledPatterns;
1198
+ _cachedCompiledWhilePatterns;
1199
+ constructor($location, id, name, contentName, begin, beginCaptures, _while, whileCaptures, patterns) {
1200
+ super($location, id, name, contentName);
1201
+ this._begin = new RegExpSource(begin, this.id);
1202
+ this.beginCaptures = beginCaptures;
1203
+ this.whileCaptures = whileCaptures;
1204
+ this._while = new RegExpSource(_while, whileRuleId);
1205
+ this.whileHasBackReferences = this._while.hasBackReferences;
1206
+ this.patterns = patterns.patterns;
1207
+ this.hasMissingPatterns = patterns.hasMissingPatterns;
1208
+ this._cachedCompiledPatterns = null;
1209
+ this._cachedCompiledWhilePatterns = null;
1210
+ }
1211
+ dispose() {
1212
+ if (this._cachedCompiledPatterns) {
1213
+ this._cachedCompiledPatterns.dispose();
1214
+ this._cachedCompiledPatterns = null;
1215
+ }
1216
+ if (this._cachedCompiledWhilePatterns) {
1217
+ this._cachedCompiledWhilePatterns.dispose();
1218
+ this._cachedCompiledWhilePatterns = null;
1219
+ }
1220
+ }
1221
+ get debugBeginRegExp() {
1222
+ return `${this._begin.source}`;
1223
+ }
1224
+ get debugWhileRegExp() {
1225
+ return `${this._while.source}`;
1226
+ }
1227
+ getWhileWithResolvedBackReferences(lineText, captureIndices) {
1228
+ return this._while.resolveBackReferences(lineText, captureIndices);
1229
+ }
1230
+ collectPatterns(grammar, out) {
1231
+ out.push(this._begin);
1232
+ }
1233
+ compile(grammar, endRegexSource) {
1234
+ return this._getCachedCompiledPatterns(grammar).compile(grammar);
1235
+ }
1236
+ compileAG(grammar, endRegexSource, allowA, allowG) {
1237
+ return this._getCachedCompiledPatterns(grammar).compileAG(grammar, allowA, allowG);
1238
+ }
1239
+ _getCachedCompiledPatterns(grammar) {
1240
+ if (!this._cachedCompiledPatterns) {
1241
+ this._cachedCompiledPatterns = new RegExpSourceList();
1242
+ for (const pattern of this.patterns) {
1243
+ const rule = grammar.getRule(pattern);
1244
+ rule.collectPatterns(grammar, this._cachedCompiledPatterns);
1245
+ }
1246
+ }
1247
+ return this._cachedCompiledPatterns;
1248
+ }
1249
+ compileWhile(grammar, endRegexSource) {
1250
+ return this._getCachedCompiledWhilePatterns(grammar, endRegexSource).compile(grammar);
1251
+ }
1252
+ compileWhileAG(grammar, endRegexSource, allowA, allowG) {
1253
+ return this._getCachedCompiledWhilePatterns(grammar, endRegexSource).compileAG(grammar, allowA, allowG);
1254
+ }
1255
+ _getCachedCompiledWhilePatterns(grammar, endRegexSource) {
1256
+ if (!this._cachedCompiledWhilePatterns) {
1257
+ this._cachedCompiledWhilePatterns = new RegExpSourceList();
1258
+ this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences ? this._while.clone() : this._while);
1259
+ }
1260
+ if (this._while.hasBackReferences) {
1261
+ this._cachedCompiledWhilePatterns.setSource(0, endRegexSource ? endRegexSource : "\uFFFF");
1262
+ }
1263
+ return this._cachedCompiledWhilePatterns;
1264
+ }
1265
+ };
1266
+ var RuleFactory = class _RuleFactory {
1267
+ static createCaptureRule(helper, $location, name, contentName, retokenizeCapturedWithRuleId) {
1268
+ return helper.registerRule((id) => {
1269
+ return new CaptureRule($location, id, name, contentName, retokenizeCapturedWithRuleId);
1270
+ });
1271
+ }
1272
+ static getCompiledRuleId(desc, helper, repository) {
1273
+ if (!desc.id) {
1274
+ helper.registerRule((id) => {
1275
+ desc.id = id;
1276
+ if (desc.match) {
1277
+ return new MatchRule(
1278
+ desc.$vscodeTextmateLocation,
1279
+ desc.id,
1280
+ desc.name,
1281
+ desc.match,
1282
+ _RuleFactory._compileCaptures(desc.captures, helper, repository)
1283
+ );
1284
+ }
1285
+ if (typeof desc.begin === "undefined") {
1286
+ if (desc.repository) {
1287
+ repository = mergeObjects({}, repository, desc.repository);
1288
+ }
1289
+ let patterns = desc.patterns;
1290
+ if (typeof patterns === "undefined" && desc.include) {
1291
+ patterns = [{ include: desc.include }];
1292
+ }
1293
+ return new IncludeOnlyRule(
1294
+ desc.$vscodeTextmateLocation,
1295
+ desc.id,
1296
+ desc.name,
1297
+ desc.contentName,
1298
+ _RuleFactory._compilePatterns(patterns, helper, repository)
1299
+ );
1300
+ }
1301
+ if (desc.while) {
1302
+ return new BeginWhileRule(
1303
+ desc.$vscodeTextmateLocation,
1304
+ desc.id,
1305
+ desc.name,
1306
+ desc.contentName,
1307
+ desc.begin,
1308
+ _RuleFactory._compileCaptures(desc.beginCaptures || desc.captures, helper, repository),
1309
+ desc.while,
1310
+ _RuleFactory._compileCaptures(desc.whileCaptures || desc.captures, helper, repository),
1311
+ _RuleFactory._compilePatterns(desc.patterns, helper, repository)
1312
+ );
1313
+ }
1314
+ return new BeginEndRule(
1315
+ desc.$vscodeTextmateLocation,
1316
+ desc.id,
1317
+ desc.name,
1318
+ desc.contentName,
1319
+ desc.begin,
1320
+ _RuleFactory._compileCaptures(desc.beginCaptures || desc.captures, helper, repository),
1321
+ desc.end,
1322
+ _RuleFactory._compileCaptures(desc.endCaptures || desc.captures, helper, repository),
1323
+ desc.applyEndPatternLast,
1324
+ _RuleFactory._compilePatterns(desc.patterns, helper, repository)
1325
+ );
1326
+ });
1327
+ }
1328
+ return desc.id;
1329
+ }
1330
+ static _compileCaptures(captures, helper, repository) {
1331
+ let r = [];
1332
+ if (captures) {
1333
+ let maximumCaptureId = 0;
1334
+ for (const captureId in captures) {
1335
+ if (captureId === "$vscodeTextmateLocation") {
1336
+ continue;
1337
+ }
1338
+ const numericCaptureId = parseInt(captureId, 10);
1339
+ if (numericCaptureId > maximumCaptureId) {
1340
+ maximumCaptureId = numericCaptureId;
1341
+ }
1342
+ }
1343
+ for (let i = 0; i <= maximumCaptureId; i++) {
1344
+ r[i] = null;
1345
+ }
1346
+ for (const captureId in captures) {
1347
+ if (captureId === "$vscodeTextmateLocation") {
1348
+ continue;
1349
+ }
1350
+ const numericCaptureId = parseInt(captureId, 10);
1351
+ let retokenizeCapturedWithRuleId = 0;
1352
+ if (captures[captureId].patterns) {
1353
+ retokenizeCapturedWithRuleId = _RuleFactory.getCompiledRuleId(captures[captureId], helper, repository);
1354
+ }
1355
+ r[numericCaptureId] = _RuleFactory.createCaptureRule(helper, captures[captureId].$vscodeTextmateLocation, captures[captureId].name, captures[captureId].contentName, retokenizeCapturedWithRuleId);
1356
+ }
1357
+ }
1358
+ return r;
1359
+ }
1360
+ static _compilePatterns(patterns, helper, repository) {
1361
+ let r = [];
1362
+ if (patterns) {
1363
+ for (let i = 0, len = patterns.length; i < len; i++) {
1364
+ const pattern = patterns[i];
1365
+ let ruleId = -1;
1366
+ if (pattern.include) {
1367
+ const reference = parseInclude(pattern.include);
1368
+ switch (reference.kind) {
1369
+ case 0 /* Base */:
1370
+ case 1 /* Self */:
1371
+ ruleId = _RuleFactory.getCompiledRuleId(repository[pattern.include], helper, repository);
1372
+ break;
1373
+ case 2 /* RelativeReference */:
1374
+ let localIncludedRule = repository[reference.ruleName];
1375
+ if (localIncludedRule) {
1376
+ ruleId = _RuleFactory.getCompiledRuleId(localIncludedRule, helper, repository);
1377
+ } else {
1378
+ }
1379
+ break;
1380
+ case 3 /* TopLevelReference */:
1381
+ case 4 /* TopLevelRepositoryReference */:
1382
+ const externalGrammarName = reference.scopeName;
1383
+ const externalGrammarInclude = reference.kind === 4 /* TopLevelRepositoryReference */ ? reference.ruleName : null;
1384
+ const externalGrammar = helper.getExternalGrammar(externalGrammarName, repository);
1385
+ if (externalGrammar) {
1386
+ if (externalGrammarInclude) {
1387
+ let externalIncludedRule = externalGrammar.repository[externalGrammarInclude];
1388
+ if (externalIncludedRule) {
1389
+ ruleId = _RuleFactory.getCompiledRuleId(externalIncludedRule, helper, externalGrammar.repository);
1390
+ } else {
1391
+ }
1392
+ } else {
1393
+ ruleId = _RuleFactory.getCompiledRuleId(externalGrammar.repository.$self, helper, externalGrammar.repository);
1394
+ }
1395
+ } else {
1396
+ }
1397
+ break;
1398
+ }
1399
+ } else {
1400
+ ruleId = _RuleFactory.getCompiledRuleId(pattern, helper, repository);
1401
+ }
1402
+ if (ruleId !== -1) {
1403
+ const rule = helper.getRule(ruleId);
1404
+ let skipRule = false;
1405
+ if (rule instanceof IncludeOnlyRule || rule instanceof BeginEndRule || rule instanceof BeginWhileRule) {
1406
+ if (rule.hasMissingPatterns && rule.patterns.length === 0) {
1407
+ skipRule = true;
1408
+ }
1409
+ }
1410
+ if (skipRule) {
1411
+ continue;
1412
+ }
1413
+ r.push(ruleId);
1414
+ }
1415
+ }
1416
+ }
1417
+ return {
1418
+ patterns: r,
1419
+ hasMissingPatterns: (patterns ? patterns.length : 0) !== r.length
1420
+ };
1421
+ }
1422
+ };
1423
+ var RegExpSource = class _RegExpSource {
1424
+ source;
1425
+ ruleId;
1426
+ hasAnchor;
1427
+ hasBackReferences;
1428
+ _anchorCache;
1429
+ constructor(regExpSource, ruleId) {
1430
+ if (regExpSource && typeof regExpSource === "string") {
1431
+ const len = regExpSource.length;
1432
+ let lastPushedPos = 0;
1433
+ let output = [];
1434
+ let hasAnchor = false;
1435
+ for (let pos = 0; pos < len; pos++) {
1436
+ const ch = regExpSource.charAt(pos);
1437
+ if (ch === "\\") {
1438
+ if (pos + 1 < len) {
1439
+ const nextCh = regExpSource.charAt(pos + 1);
1440
+ if (nextCh === "z") {
1441
+ output.push(regExpSource.substring(lastPushedPos, pos));
1442
+ output.push("$(?!\\n)(?<!\\n)");
1443
+ lastPushedPos = pos + 2;
1444
+ } else if (nextCh === "A" || nextCh === "G") {
1445
+ hasAnchor = true;
1446
+ }
1447
+ pos++;
1448
+ }
1449
+ }
1450
+ }
1451
+ this.hasAnchor = hasAnchor;
1452
+ if (lastPushedPos === 0) {
1453
+ this.source = regExpSource;
1454
+ } else {
1455
+ output.push(regExpSource.substring(lastPushedPos, len));
1456
+ this.source = output.join("");
1457
+ }
1458
+ } else {
1459
+ this.hasAnchor = false;
1460
+ this.source = regExpSource;
1461
+ }
1462
+ if (this.hasAnchor) {
1463
+ this._anchorCache = this._buildAnchorCache();
1464
+ } else {
1465
+ this._anchorCache = null;
1466
+ }
1467
+ this.ruleId = ruleId;
1468
+ if (typeof this.source === "string") {
1469
+ this.hasBackReferences = HAS_BACK_REFERENCES.test(this.source);
1470
+ } else {
1471
+ this.hasBackReferences = false;
1472
+ }
1473
+ }
1474
+ clone() {
1475
+ return new _RegExpSource(this.source, this.ruleId);
1476
+ }
1477
+ setSource(newSource) {
1478
+ if (this.source === newSource) {
1479
+ return;
1480
+ }
1481
+ this.source = newSource;
1482
+ if (this.hasAnchor) {
1483
+ this._anchorCache = this._buildAnchorCache();
1484
+ }
1485
+ }
1486
+ resolveBackReferences(lineText, captureIndices) {
1487
+ if (typeof this.source !== "string") {
1488
+ throw new Error("This method should only be called if the source is a string");
1489
+ }
1490
+ let capturedValues = captureIndices.map((capture) => {
1491
+ return lineText.substring(capture.start, capture.end);
1492
+ });
1493
+ BACK_REFERENCING_END.lastIndex = 0;
1494
+ return this.source.replace(BACK_REFERENCING_END, (match, g1) => {
1495
+ return escapeRegExpCharacters(capturedValues[parseInt(g1, 10)] || "");
1496
+ });
1497
+ }
1498
+ _buildAnchorCache() {
1499
+ if (typeof this.source !== "string") {
1500
+ throw new Error("This method should only be called if the source is a string");
1501
+ }
1502
+ let A0_G0_result = [];
1503
+ let A0_G1_result = [];
1504
+ let A1_G0_result = [];
1505
+ let A1_G1_result = [];
1506
+ let pos, len, ch, nextCh;
1507
+ for (pos = 0, len = this.source.length; pos < len; pos++) {
1508
+ ch = this.source.charAt(pos);
1509
+ A0_G0_result[pos] = ch;
1510
+ A0_G1_result[pos] = ch;
1511
+ A1_G0_result[pos] = ch;
1512
+ A1_G1_result[pos] = ch;
1513
+ if (ch === "\\") {
1514
+ if (pos + 1 < len) {
1515
+ nextCh = this.source.charAt(pos + 1);
1516
+ if (nextCh === "A") {
1517
+ A0_G0_result[pos + 1] = "\uFFFF";
1518
+ A0_G1_result[pos + 1] = "\uFFFF";
1519
+ A1_G0_result[pos + 1] = "A";
1520
+ A1_G1_result[pos + 1] = "A";
1521
+ } else if (nextCh === "G") {
1522
+ A0_G0_result[pos + 1] = "\uFFFF";
1523
+ A0_G1_result[pos + 1] = "G";
1524
+ A1_G0_result[pos + 1] = "\uFFFF";
1525
+ A1_G1_result[pos + 1] = "G";
1526
+ } else {
1527
+ A0_G0_result[pos + 1] = nextCh;
1528
+ A0_G1_result[pos + 1] = nextCh;
1529
+ A1_G0_result[pos + 1] = nextCh;
1530
+ A1_G1_result[pos + 1] = nextCh;
1531
+ }
1532
+ pos++;
1533
+ }
1534
+ }
1535
+ }
1536
+ return {
1537
+ A0_G0: A0_G0_result.join(""),
1538
+ A0_G1: A0_G1_result.join(""),
1539
+ A1_G0: A1_G0_result.join(""),
1540
+ A1_G1: A1_G1_result.join("")
1541
+ };
1542
+ }
1543
+ resolveAnchors(allowA, allowG) {
1544
+ if (!this.hasAnchor || !this._anchorCache || typeof this.source !== "string") {
1545
+ return this.source;
1546
+ }
1547
+ if (allowA) {
1548
+ if (allowG) {
1549
+ return this._anchorCache.A1_G1;
1550
+ } else {
1551
+ return this._anchorCache.A1_G0;
1552
+ }
1553
+ } else {
1554
+ if (allowG) {
1555
+ return this._anchorCache.A0_G1;
1556
+ } else {
1557
+ return this._anchorCache.A0_G0;
1558
+ }
1559
+ }
1560
+ }
1561
+ };
1562
+ var RegExpSourceList = class {
1563
+ _items;
1564
+ _hasAnchors;
1565
+ _cached;
1566
+ _anchorCache;
1567
+ constructor() {
1568
+ this._items = [];
1569
+ this._hasAnchors = false;
1570
+ this._cached = null;
1571
+ this._anchorCache = {
1572
+ A0_G0: null,
1573
+ A0_G1: null,
1574
+ A1_G0: null,
1575
+ A1_G1: null
1576
+ };
1577
+ }
1578
+ dispose() {
1579
+ this._disposeCaches();
1580
+ }
1581
+ _disposeCaches() {
1582
+ if (this._cached) {
1583
+ this._cached.dispose();
1584
+ this._cached = null;
1585
+ }
1586
+ if (this._anchorCache.A0_G0) {
1587
+ this._anchorCache.A0_G0.dispose();
1588
+ this._anchorCache.A0_G0 = null;
1589
+ }
1590
+ if (this._anchorCache.A0_G1) {
1591
+ this._anchorCache.A0_G1.dispose();
1592
+ this._anchorCache.A0_G1 = null;
1593
+ }
1594
+ if (this._anchorCache.A1_G0) {
1595
+ this._anchorCache.A1_G0.dispose();
1596
+ this._anchorCache.A1_G0 = null;
1597
+ }
1598
+ if (this._anchorCache.A1_G1) {
1599
+ this._anchorCache.A1_G1.dispose();
1600
+ this._anchorCache.A1_G1 = null;
1601
+ }
1602
+ }
1603
+ push(item) {
1604
+ this._items.push(item);
1605
+ this._hasAnchors = this._hasAnchors || item.hasAnchor;
1606
+ }
1607
+ unshift(item) {
1608
+ this._items.unshift(item);
1609
+ this._hasAnchors = this._hasAnchors || item.hasAnchor;
1610
+ }
1611
+ length() {
1612
+ return this._items.length;
1613
+ }
1614
+ setSource(index, newSource) {
1615
+ if (this._items[index].source !== newSource) {
1616
+ this._disposeCaches();
1617
+ this._items[index].setSource(newSource);
1618
+ }
1619
+ }
1620
+ compile(onigLib) {
1621
+ if (!this._cached) {
1622
+ let regExps = this._items.map((e) => e.source);
1623
+ this._cached = new CompiledRule(onigLib, regExps, this._items.map((e) => e.ruleId));
1624
+ }
1625
+ return this._cached;
1626
+ }
1627
+ compileAG(onigLib, allowA, allowG) {
1628
+ if (!this._hasAnchors) {
1629
+ return this.compile(onigLib);
1630
+ } else {
1631
+ if (allowA) {
1632
+ if (allowG) {
1633
+ if (!this._anchorCache.A1_G1) {
1634
+ this._anchorCache.A1_G1 = this._resolveAnchors(onigLib, allowA, allowG);
1635
+ }
1636
+ return this._anchorCache.A1_G1;
1637
+ } else {
1638
+ if (!this._anchorCache.A1_G0) {
1639
+ this._anchorCache.A1_G0 = this._resolveAnchors(onigLib, allowA, allowG);
1640
+ }
1641
+ return this._anchorCache.A1_G0;
1642
+ }
1643
+ } else {
1644
+ if (allowG) {
1645
+ if (!this._anchorCache.A0_G1) {
1646
+ this._anchorCache.A0_G1 = this._resolveAnchors(onigLib, allowA, allowG);
1647
+ }
1648
+ return this._anchorCache.A0_G1;
1649
+ } else {
1650
+ if (!this._anchorCache.A0_G0) {
1651
+ this._anchorCache.A0_G0 = this._resolveAnchors(onigLib, allowA, allowG);
1652
+ }
1653
+ return this._anchorCache.A0_G0;
1654
+ }
1655
+ }
1656
+ }
1657
+ }
1658
+ _resolveAnchors(onigLib, allowA, allowG) {
1659
+ let regExps = this._items.map((e) => e.resolveAnchors(allowA, allowG));
1660
+ return new CompiledRule(onigLib, regExps, this._items.map((e) => e.ruleId));
1661
+ }
1662
+ };
1663
+ var CompiledRule = class {
1664
+ constructor(onigLib, regExps, rules) {
1665
+ this.regExps = regExps;
1666
+ this.rules = rules;
1667
+ this.scanner = onigLib.createOnigScanner(regExps);
1668
+ }
1669
+ scanner;
1670
+ dispose() {
1671
+ if (typeof this.scanner.dispose === "function") {
1672
+ this.scanner.dispose();
1673
+ }
1674
+ }
1675
+ toString() {
1676
+ const r = [];
1677
+ for (let i = 0, len = this.rules.length; i < len; i++) {
1678
+ r.push(" - " + this.rules[i] + ": " + this.regExps[i]);
1679
+ }
1680
+ return r.join("\n");
1681
+ }
1682
+ findNextMatchSync(string, startPosition, options) {
1683
+ const result = this.scanner.findNextMatchSync(string, startPosition, options);
1684
+ if (!result) {
1685
+ return null;
1686
+ }
1687
+ return {
1688
+ ruleId: this.rules[result.index],
1689
+ captureIndices: result.captureIndices
1690
+ };
1691
+ }
1692
+ };
1693
+
1694
+ // src/grammar/basicScopesAttributeProvider.ts
1695
+ var BasicScopeAttributes = class {
1696
+ constructor(languageId, tokenType) {
1697
+ this.languageId = languageId;
1698
+ this.tokenType = tokenType;
1699
+ }
1700
+ };
1701
+ var BasicScopeAttributesProvider = class _BasicScopeAttributesProvider {
1702
+ _defaultAttributes;
1703
+ _embeddedLanguagesMatcher;
1704
+ constructor(initialLanguageId, embeddedLanguages) {
1705
+ this._defaultAttributes = new BasicScopeAttributes(initialLanguageId, 8 /* NotSet */);
1706
+ this._embeddedLanguagesMatcher = new ScopeMatcher(Object.entries(embeddedLanguages || {}));
1707
+ }
1708
+ getDefaultAttributes() {
1709
+ return this._defaultAttributes;
1710
+ }
1711
+ getBasicScopeAttributes(scopeName) {
1712
+ if (scopeName === null) {
1713
+ return _BasicScopeAttributesProvider._NULL_SCOPE_METADATA;
1714
+ }
1715
+ return this._getBasicScopeAttributes.get(scopeName);
1716
+ }
1717
+ static _NULL_SCOPE_METADATA = new BasicScopeAttributes(0, 0);
1718
+ _getBasicScopeAttributes = new CachedFn((scopeName) => {
1719
+ const languageId = this._scopeToLanguage(scopeName);
1720
+ const standardTokenType = this._toStandardTokenType(scopeName);
1721
+ return new BasicScopeAttributes(languageId, standardTokenType);
1722
+ });
1723
+ /**
1724
+ * Given a produced TM scope, return the language that token describes or null if unknown.
1725
+ * e.g. source.html => html, source.css.embedded.html => css, punctuation.definition.tag.html => null
1726
+ */
1727
+ _scopeToLanguage(scope) {
1728
+ return this._embeddedLanguagesMatcher.match(scope) || 0;
1729
+ }
1730
+ _toStandardTokenType(scopeName) {
1731
+ const m = scopeName.match(_BasicScopeAttributesProvider.STANDARD_TOKEN_TYPE_REGEXP);
1732
+ if (!m) {
1733
+ return 8 /* NotSet */;
1734
+ }
1735
+ switch (m[1]) {
1736
+ case "comment":
1737
+ return 1 /* Comment */;
1738
+ case "string":
1739
+ return 2 /* String */;
1740
+ case "regex":
1741
+ return 3 /* RegEx */;
1742
+ case "meta.embedded":
1743
+ return 0 /* Other */;
1744
+ }
1745
+ throw new Error("Unexpected match for standard token type!");
1746
+ }
1747
+ static STANDARD_TOKEN_TYPE_REGEXP = /\b(comment|string|regex|meta\.embedded)\b/;
1748
+ };
1749
+ var ScopeMatcher = class {
1750
+ values;
1751
+ scopesRegExp;
1752
+ constructor(values) {
1753
+ if (values.length === 0) {
1754
+ this.values = null;
1755
+ this.scopesRegExp = null;
1756
+ } else {
1757
+ this.values = new Map(values);
1758
+ const escapedScopes = values.map(
1759
+ ([scopeName, value]) => escapeRegExpCharacters(scopeName)
1760
+ );
1761
+ escapedScopes.sort();
1762
+ escapedScopes.reverse();
1763
+ this.scopesRegExp = new RegExp(
1764
+ `^((${escapedScopes.join(")|(")}))($|\\.)`,
1765
+ ""
1766
+ );
1767
+ }
1768
+ }
1769
+ match(scope) {
1770
+ if (!this.scopesRegExp) {
1771
+ return void 0;
1772
+ }
1773
+ const m = scope.match(this.scopesRegExp);
1774
+ if (!m) {
1775
+ return void 0;
1776
+ }
1777
+ return this.values.get(m[1]);
1778
+ }
1779
+ };
1780
+
1781
+ // src/debug.ts
1782
+ var DebugFlags = {
1783
+ InDebugMode: typeof process !== "undefined" && !!process.env["VSCODE_TEXTMATE_DEBUG"]
1784
+ };
1785
+ var UseOnigurumaFindOptions = false;
1786
+
1787
+ // src/grammar/tokenizeString.ts
1788
+ var TokenizeStringResult = class {
1789
+ constructor(stack, stoppedEarly) {
1790
+ this.stack = stack;
1791
+ this.stoppedEarly = stoppedEarly;
1792
+ }
1793
+ };
1794
+ function _tokenizeString(grammar, lineText, isFirstLine, linePos, stack, lineTokens, checkWhileConditions, timeLimit) {
1795
+ const lineLength = lineText.content.length;
1796
+ let STOP = false;
1797
+ let anchorPosition = -1;
1798
+ if (checkWhileConditions) {
1799
+ const whileCheckResult = _checkWhileConditions(
1800
+ grammar,
1801
+ lineText,
1802
+ isFirstLine,
1803
+ linePos,
1804
+ stack,
1805
+ lineTokens
1806
+ );
1807
+ stack = whileCheckResult.stack;
1808
+ linePos = whileCheckResult.linePos;
1809
+ isFirstLine = whileCheckResult.isFirstLine;
1810
+ anchorPosition = whileCheckResult.anchorPosition;
1811
+ }
1812
+ const startTime = Date.now();
1813
+ while (!STOP) {
1814
+ if (timeLimit !== 0) {
1815
+ const elapsedTime = Date.now() - startTime;
1816
+ if (elapsedTime > timeLimit) {
1817
+ return new TokenizeStringResult(stack, true);
1818
+ }
1819
+ }
1820
+ scanNext();
1821
+ }
1822
+ return new TokenizeStringResult(stack, false);
1823
+ function scanNext() {
1824
+ if (false) {
1825
+ console.log("");
1826
+ console.log(
1827
+ `@@scanNext ${linePos}: |${lineText.content.substr(linePos).replace(/\n$/, "\\n")}|`
1828
+ );
1829
+ }
1830
+ const r = matchRuleOrInjections(
1831
+ grammar,
1832
+ lineText,
1833
+ isFirstLine,
1834
+ linePos,
1835
+ stack,
1836
+ anchorPosition
1837
+ );
1838
+ if (!r) {
1839
+ lineTokens.produce(stack, lineLength);
1840
+ STOP = true;
1841
+ return;
1842
+ }
1843
+ const captureIndices = r.captureIndices;
1844
+ const matchedRuleId = r.matchedRuleId;
1845
+ const hasAdvanced = captureIndices && captureIndices.length > 0 ? captureIndices[0].end > linePos : false;
1846
+ if (matchedRuleId === endRuleId) {
1847
+ const poppedRule = stack.getRule(grammar);
1848
+ if (false) {
1849
+ console.log(
1850
+ " popping " + poppedRule.debugName + " - " + poppedRule.debugEndRegExp
1851
+ );
1852
+ }
1853
+ lineTokens.produce(stack, captureIndices[0].start);
1854
+ stack = stack.withContentNameScopesList(stack.nameScopesList);
1855
+ handleCaptures(
1856
+ grammar,
1857
+ lineText,
1858
+ isFirstLine,
1859
+ stack,
1860
+ lineTokens,
1861
+ poppedRule.endCaptures,
1862
+ captureIndices
1863
+ );
1864
+ lineTokens.produce(stack, captureIndices[0].end);
1865
+ const popped = stack;
1866
+ stack = stack.parent;
1867
+ anchorPosition = popped.getAnchorPos();
1868
+ if (!hasAdvanced && popped.getEnterPos() === linePos) {
1869
+ if (false) {
1870
+ console.error(
1871
+ "[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"
1872
+ );
1873
+ }
1874
+ stack = popped;
1875
+ lineTokens.produce(stack, lineLength);
1876
+ STOP = true;
1877
+ return;
1878
+ }
1879
+ } else {
1880
+ const _rule = grammar.getRule(matchedRuleId);
1881
+ lineTokens.produce(stack, captureIndices[0].start);
1882
+ const beforePush = stack;
1883
+ const scopeName = _rule.getName(lineText.content, captureIndices);
1884
+ const nameScopesList = stack.contentNameScopesList.pushAttributed(
1885
+ scopeName,
1886
+ grammar
1887
+ );
1888
+ stack = stack.push(
1889
+ matchedRuleId,
1890
+ linePos,
1891
+ anchorPosition,
1892
+ captureIndices[0].end === lineLength,
1893
+ null,
1894
+ nameScopesList,
1895
+ nameScopesList
1896
+ );
1897
+ if (_rule instanceof BeginEndRule) {
1898
+ const pushedRule = _rule;
1899
+ if (false) {
1900
+ console.log(
1901
+ " pushing " + pushedRule.debugName + " - " + pushedRule.debugBeginRegExp
1902
+ );
1903
+ }
1904
+ handleCaptures(
1905
+ grammar,
1906
+ lineText,
1907
+ isFirstLine,
1908
+ stack,
1909
+ lineTokens,
1910
+ pushedRule.beginCaptures,
1911
+ captureIndices
1912
+ );
1913
+ lineTokens.produce(stack, captureIndices[0].end);
1914
+ anchorPosition = captureIndices[0].end;
1915
+ const contentName = pushedRule.getContentName(
1916
+ lineText.content,
1917
+ captureIndices
1918
+ );
1919
+ const contentNameScopesList = nameScopesList.pushAttributed(
1920
+ contentName,
1921
+ grammar
1922
+ );
1923
+ stack = stack.withContentNameScopesList(contentNameScopesList);
1924
+ if (pushedRule.endHasBackReferences) {
1925
+ stack = stack.withEndRule(
1926
+ pushedRule.getEndWithResolvedBackReferences(
1927
+ lineText.content,
1928
+ captureIndices
1929
+ )
1930
+ );
1931
+ }
1932
+ if (!hasAdvanced && beforePush.hasSameRuleAs(stack)) {
1933
+ if (false) {
1934
+ console.error(
1935
+ "[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"
1936
+ );
1937
+ }
1938
+ stack = stack.pop();
1939
+ lineTokens.produce(stack, lineLength);
1940
+ STOP = true;
1941
+ return;
1942
+ }
1943
+ } else if (_rule instanceof BeginWhileRule) {
1944
+ const pushedRule = _rule;
1945
+ if (false) {
1946
+ console.log(" pushing " + pushedRule.debugName);
1947
+ }
1948
+ handleCaptures(
1949
+ grammar,
1950
+ lineText,
1951
+ isFirstLine,
1952
+ stack,
1953
+ lineTokens,
1954
+ pushedRule.beginCaptures,
1955
+ captureIndices
1956
+ );
1957
+ lineTokens.produce(stack, captureIndices[0].end);
1958
+ anchorPosition = captureIndices[0].end;
1959
+ const contentName = pushedRule.getContentName(
1960
+ lineText.content,
1961
+ captureIndices
1962
+ );
1963
+ const contentNameScopesList = nameScopesList.pushAttributed(
1964
+ contentName,
1965
+ grammar
1966
+ );
1967
+ stack = stack.withContentNameScopesList(contentNameScopesList);
1968
+ if (pushedRule.whileHasBackReferences) {
1969
+ stack = stack.withEndRule(
1970
+ pushedRule.getWhileWithResolvedBackReferences(
1971
+ lineText.content,
1972
+ captureIndices
1973
+ )
1974
+ );
1975
+ }
1976
+ if (!hasAdvanced && beforePush.hasSameRuleAs(stack)) {
1977
+ if (false) {
1978
+ console.error(
1979
+ "[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"
1980
+ );
1981
+ }
1982
+ stack = stack.pop();
1983
+ lineTokens.produce(stack, lineLength);
1984
+ STOP = true;
1985
+ return;
1986
+ }
1987
+ } else {
1988
+ const matchingRule = _rule;
1989
+ if (false) {
1990
+ console.log(
1991
+ " matched " + matchingRule.debugName + " - " + matchingRule.debugMatchRegExp
1992
+ );
1993
+ }
1994
+ handleCaptures(
1995
+ grammar,
1996
+ lineText,
1997
+ isFirstLine,
1998
+ stack,
1999
+ lineTokens,
2000
+ matchingRule.captures,
2001
+ captureIndices
2002
+ );
2003
+ lineTokens.produce(stack, captureIndices[0].end);
2004
+ stack = stack.pop();
2005
+ if (!hasAdvanced) {
2006
+ if (false) {
2007
+ console.error(
2008
+ "[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"
2009
+ );
2010
+ }
2011
+ stack = stack.safePop();
2012
+ lineTokens.produce(stack, lineLength);
2013
+ STOP = true;
2014
+ return;
2015
+ }
2016
+ }
2017
+ }
2018
+ if (captureIndices[0].end > linePos) {
2019
+ linePos = captureIndices[0].end;
2020
+ isFirstLine = false;
2021
+ }
2022
+ }
2023
+ }
2024
+ function _checkWhileConditions(grammar, lineText, isFirstLine, linePos, stack, lineTokens) {
2025
+ let anchorPosition = stack.beginRuleCapturedEOL ? 0 : -1;
2026
+ const whileRules = [];
2027
+ for (let node = stack; node; node = node.pop()) {
2028
+ const nodeRule = node.getRule(grammar);
2029
+ if (nodeRule instanceof BeginWhileRule) {
2030
+ whileRules.push({
2031
+ rule: nodeRule,
2032
+ stack: node
2033
+ });
2034
+ }
2035
+ }
2036
+ for (let whileRule = whileRules.pop(); whileRule; whileRule = whileRules.pop()) {
2037
+ const { ruleScanner, findOptions } = prepareRuleWhileSearch(whileRule.rule, grammar, whileRule.stack.endRule, isFirstLine, linePos === anchorPosition);
2038
+ const r = ruleScanner.findNextMatchSync(lineText, linePos, findOptions);
2039
+ if (false) {
2040
+ console.log(" scanning for while rule");
2041
+ console.log(ruleScanner.toString());
2042
+ }
2043
+ if (r) {
2044
+ const matchedRuleId = r.ruleId;
2045
+ if (matchedRuleId !== whileRuleId) {
2046
+ stack = whileRule.stack.pop();
2047
+ break;
2048
+ }
2049
+ if (r.captureIndices && r.captureIndices.length) {
2050
+ lineTokens.produce(whileRule.stack, r.captureIndices[0].start);
2051
+ handleCaptures(grammar, lineText, isFirstLine, whileRule.stack, lineTokens, whileRule.rule.whileCaptures, r.captureIndices);
2052
+ lineTokens.produce(whileRule.stack, r.captureIndices[0].end);
2053
+ anchorPosition = r.captureIndices[0].end;
2054
+ if (r.captureIndices[0].end > linePos) {
2055
+ linePos = r.captureIndices[0].end;
2056
+ isFirstLine = false;
2057
+ }
2058
+ }
2059
+ } else {
2060
+ if (false) {
2061
+ console.log(" popping " + whileRule.rule.debugName + " - " + whileRule.rule.debugWhileRegExp);
2062
+ }
2063
+ stack = whileRule.stack.pop();
2064
+ break;
2065
+ }
2066
+ }
2067
+ return { stack, linePos, anchorPosition, isFirstLine };
2068
+ }
2069
+ function matchRuleOrInjections(grammar, lineText, isFirstLine, linePos, stack, anchorPosition) {
2070
+ const matchResult = matchRule(grammar, lineText, isFirstLine, linePos, stack, anchorPosition);
2071
+ const injections = grammar.getInjections();
2072
+ if (injections.length === 0) {
2073
+ return matchResult;
2074
+ }
2075
+ const injectionResult = matchInjections(injections, grammar, lineText, isFirstLine, linePos, stack, anchorPosition);
2076
+ if (!injectionResult) {
2077
+ return matchResult;
2078
+ }
2079
+ if (!matchResult) {
2080
+ return injectionResult;
2081
+ }
2082
+ const matchResultScore = matchResult.captureIndices[0].start;
2083
+ const injectionResultScore = injectionResult.captureIndices[0].start;
2084
+ if (injectionResultScore < matchResultScore || injectionResult.priorityMatch && injectionResultScore === matchResultScore) {
2085
+ return injectionResult;
2086
+ }
2087
+ return matchResult;
2088
+ }
2089
+ function matchRule(grammar, lineText, isFirstLine, linePos, stack, anchorPosition) {
2090
+ const rule = stack.getRule(grammar);
2091
+ const { ruleScanner, findOptions } = prepareRuleSearch(rule, grammar, stack.endRule, isFirstLine, linePos === anchorPosition);
2092
+ const r = ruleScanner.findNextMatchSync(lineText, linePos, findOptions);
2093
+ if (r) {
2094
+ return {
2095
+ captureIndices: r.captureIndices,
2096
+ matchedRuleId: r.ruleId
2097
+ };
2098
+ }
2099
+ return null;
2100
+ }
2101
+ function matchInjections(injections, grammar, lineText, isFirstLine, linePos, stack, anchorPosition) {
2102
+ let bestMatchRating = Number.MAX_VALUE;
2103
+ let bestMatchCaptureIndices = null;
2104
+ let bestMatchRuleId;
2105
+ let bestMatchResultPriority = 0;
2106
+ const scopes = stack.contentNameScopesList.getScopeNames();
2107
+ for (let i = 0, len = injections.length; i < len; i++) {
2108
+ const injection = injections[i];
2109
+ if (!injection.matcher(scopes)) {
2110
+ continue;
2111
+ }
2112
+ const rule = grammar.getRule(injection.ruleId);
2113
+ const { ruleScanner, findOptions } = prepareRuleSearch(rule, grammar, null, isFirstLine, linePos === anchorPosition);
2114
+ const matchResult = ruleScanner.findNextMatchSync(lineText, linePos, findOptions);
2115
+ if (!matchResult) {
2116
+ continue;
2117
+ }
2118
+ if (false) {
2119
+ console.log(` matched injection: ${injection.debugSelector}`);
2120
+ console.log(ruleScanner.toString());
2121
+ }
2122
+ const matchRating = matchResult.captureIndices[0].start;
2123
+ if (matchRating >= bestMatchRating) {
2124
+ continue;
2125
+ }
2126
+ bestMatchRating = matchRating;
2127
+ bestMatchCaptureIndices = matchResult.captureIndices;
2128
+ bestMatchRuleId = matchResult.ruleId;
2129
+ bestMatchResultPriority = injection.priority;
2130
+ if (bestMatchRating === linePos) {
2131
+ break;
2132
+ }
2133
+ }
2134
+ if (bestMatchCaptureIndices) {
2135
+ return {
2136
+ priorityMatch: bestMatchResultPriority === -1,
2137
+ captureIndices: bestMatchCaptureIndices,
2138
+ matchedRuleId: bestMatchRuleId
2139
+ };
2140
+ }
2141
+ return null;
2142
+ }
2143
+ function prepareRuleSearch(rule, grammar, endRegexSource, allowA, allowG) {
2144
+ if (UseOnigurumaFindOptions) {
2145
+ const ruleScanner2 = rule.compile(grammar, endRegexSource);
2146
+ const findOptions = getFindOptions(allowA, allowG);
2147
+ return { ruleScanner: ruleScanner2, findOptions };
2148
+ }
2149
+ const ruleScanner = rule.compileAG(grammar, endRegexSource, allowA, allowG);
2150
+ return { ruleScanner, findOptions: 0 /* None */ };
2151
+ }
2152
+ function prepareRuleWhileSearch(rule, grammar, endRegexSource, allowA, allowG) {
2153
+ if (UseOnigurumaFindOptions) {
2154
+ const ruleScanner2 = rule.compileWhile(grammar, endRegexSource);
2155
+ const findOptions = getFindOptions(allowA, allowG);
2156
+ return { ruleScanner: ruleScanner2, findOptions };
2157
+ }
2158
+ const ruleScanner = rule.compileWhileAG(grammar, endRegexSource, allowA, allowG);
2159
+ return { ruleScanner, findOptions: 0 /* None */ };
2160
+ }
2161
+ function getFindOptions(allowA, allowG) {
2162
+ let options = 0 /* None */;
2163
+ if (!allowA) {
2164
+ options |= 1 /* NotBeginString */;
2165
+ }
2166
+ if (!allowG) {
2167
+ options |= 4 /* NotBeginPosition */;
2168
+ }
2169
+ return options;
2170
+ }
2171
+ function handleCaptures(grammar, lineText, isFirstLine, stack, lineTokens, captures, captureIndices) {
2172
+ if (captures.length === 0) {
2173
+ return;
2174
+ }
2175
+ const lineTextContent = lineText.content;
2176
+ const len = Math.min(captures.length, captureIndices.length);
2177
+ const localStack = [];
2178
+ const maxEnd = captureIndices[0].end;
2179
+ for (let i = 0; i < len; i++) {
2180
+ const captureRule = captures[i];
2181
+ if (captureRule === null) {
2182
+ continue;
2183
+ }
2184
+ const captureIndex = captureIndices[i];
2185
+ if (captureIndex.length === 0) {
2186
+ continue;
2187
+ }
2188
+ if (captureIndex.start > maxEnd) {
2189
+ break;
2190
+ }
2191
+ while (localStack.length > 0 && localStack[localStack.length - 1].endPos <= captureIndex.start) {
2192
+ lineTokens.produceFromScopes(localStack[localStack.length - 1].scopes, localStack[localStack.length - 1].endPos);
2193
+ localStack.pop();
2194
+ }
2195
+ if (localStack.length > 0) {
2196
+ lineTokens.produceFromScopes(localStack[localStack.length - 1].scopes, captureIndex.start);
2197
+ } else {
2198
+ lineTokens.produce(stack, captureIndex.start);
2199
+ }
2200
+ if (captureRule.retokenizeCapturedWithRuleId) {
2201
+ const scopeName = captureRule.getName(lineTextContent, captureIndices);
2202
+ const nameScopesList = stack.contentNameScopesList.pushAttributed(scopeName, grammar);
2203
+ const contentName = captureRule.getContentName(lineTextContent, captureIndices);
2204
+ const contentNameScopesList = nameScopesList.pushAttributed(contentName, grammar);
2205
+ const stackClone = stack.push(captureRule.retokenizeCapturedWithRuleId, captureIndex.start, -1, false, null, nameScopesList, contentNameScopesList);
2206
+ const onigSubStr = grammar.createOnigString(lineTextContent.substring(0, captureIndex.end));
2207
+ _tokenizeString(
2208
+ grammar,
2209
+ onigSubStr,
2210
+ isFirstLine && captureIndex.start === 0,
2211
+ captureIndex.start,
2212
+ stackClone,
2213
+ lineTokens,
2214
+ false,
2215
+ /* no time limit */
2216
+ 0
2217
+ );
2218
+ disposeOnigString(onigSubStr);
2219
+ continue;
2220
+ }
2221
+ const captureRuleScopeName = captureRule.getName(lineTextContent, captureIndices);
2222
+ if (captureRuleScopeName !== null) {
2223
+ const base = localStack.length > 0 ? localStack[localStack.length - 1].scopes : stack.contentNameScopesList;
2224
+ const captureRuleScopesList = base.pushAttributed(captureRuleScopeName, grammar);
2225
+ localStack.push(new LocalStackElement(captureRuleScopesList, captureIndex.end));
2226
+ }
2227
+ }
2228
+ while (localStack.length > 0) {
2229
+ lineTokens.produceFromScopes(localStack[localStack.length - 1].scopes, localStack[localStack.length - 1].endPos);
2230
+ localStack.pop();
2231
+ }
2232
+ }
2233
+ var LocalStackElement = class {
2234
+ scopes;
2235
+ endPos;
2236
+ constructor(scopes, endPos) {
2237
+ this.scopes = scopes;
2238
+ this.endPos = endPos;
2239
+ }
2240
+ };
2241
+
2242
+ // src/grammar/grammar.ts
2243
+ function createGrammar(scopeName, grammar, initialLanguage, embeddedLanguages, tokenTypes, balancedBracketSelectors, grammarRepository, onigLib) {
2244
+ return new Grammar(
2245
+ scopeName,
2246
+ grammar,
2247
+ initialLanguage,
2248
+ embeddedLanguages,
2249
+ tokenTypes,
2250
+ balancedBracketSelectors,
2251
+ grammarRepository,
2252
+ onigLib
2253
+ );
2254
+ }
2255
+ function collectInjections(result, selector, rule, ruleFactoryHelper, grammar) {
2256
+ const matchers = createMatchers(selector, nameMatcher);
2257
+ const ruleId = RuleFactory.getCompiledRuleId(rule, ruleFactoryHelper, grammar.repository);
2258
+ for (const matcher of matchers) {
2259
+ result.push({
2260
+ debugSelector: selector,
2261
+ matcher: matcher.matcher,
2262
+ ruleId,
2263
+ grammar,
2264
+ priority: matcher.priority
2265
+ });
2266
+ }
2267
+ }
2268
+ function nameMatcher(identifers, scopes) {
2269
+ if (scopes.length < identifers.length) {
2270
+ return false;
2271
+ }
2272
+ let lastIndex = 0;
2273
+ return identifers.every((identifier) => {
2274
+ for (let i = lastIndex; i < scopes.length; i++) {
2275
+ if (scopesAreMatching(scopes[i], identifier)) {
2276
+ lastIndex = i + 1;
2277
+ return true;
2278
+ }
2279
+ }
2280
+ return false;
2281
+ });
2282
+ }
2283
+ function scopesAreMatching(thisScopeName, scopeName) {
2284
+ if (!thisScopeName) {
2285
+ return false;
2286
+ }
2287
+ if (thisScopeName === scopeName) {
2288
+ return true;
2289
+ }
2290
+ const len = scopeName.length;
2291
+ return thisScopeName.length > len && thisScopeName.substr(0, len) === scopeName && thisScopeName[len] === ".";
2292
+ }
2293
+ var Grammar = class {
2294
+ constructor(_rootScopeName, grammar, initialLanguage, embeddedLanguages, tokenTypes, balancedBracketSelectors, grammarRepository, _onigLib) {
2295
+ this._rootScopeName = _rootScopeName;
2296
+ this.balancedBracketSelectors = balancedBracketSelectors;
2297
+ this._onigLib = _onigLib;
2298
+ this._basicScopeAttributesProvider = new BasicScopeAttributesProvider(
2299
+ initialLanguage,
2300
+ embeddedLanguages
2301
+ );
2302
+ this._rootId = -1;
2303
+ this._lastRuleId = 0;
2304
+ this._ruleId2desc = [null];
2305
+ this._includedGrammars = {};
2306
+ this._grammarRepository = grammarRepository;
2307
+ this._grammar = initGrammar(grammar, null);
2308
+ this._injections = null;
2309
+ this._tokenTypeMatchers = [];
2310
+ if (tokenTypes) {
2311
+ for (const selector of Object.keys(tokenTypes)) {
2312
+ const matchers = createMatchers(selector, nameMatcher);
2313
+ for (const matcher of matchers) {
2314
+ this._tokenTypeMatchers.push({
2315
+ matcher: matcher.matcher,
2316
+ type: tokenTypes[selector]
2317
+ });
2318
+ }
2319
+ }
2320
+ }
2321
+ }
2322
+ _rootId;
2323
+ _lastRuleId;
2324
+ _ruleId2desc;
2325
+ _includedGrammars;
2326
+ _grammarRepository;
2327
+ _grammar;
2328
+ _injections;
2329
+ _basicScopeAttributesProvider;
2330
+ _tokenTypeMatchers;
2331
+ get themeProvider() {
2332
+ return this._grammarRepository;
2333
+ }
2334
+ dispose() {
2335
+ for (const rule of this._ruleId2desc) {
2336
+ if (rule) {
2337
+ rule.dispose();
2338
+ }
2339
+ }
2340
+ }
2341
+ createOnigScanner(sources) {
2342
+ return this._onigLib.createOnigScanner(sources);
2343
+ }
2344
+ createOnigString(sources) {
2345
+ return this._onigLib.createOnigString(sources);
2346
+ }
2347
+ getMetadataForScope(scope) {
2348
+ return this._basicScopeAttributesProvider.getBasicScopeAttributes(scope);
2349
+ }
2350
+ _collectInjections() {
2351
+ const grammarRepository = {
2352
+ lookup: (scopeName2) => {
2353
+ if (scopeName2 === this._rootScopeName) {
2354
+ return this._grammar;
2355
+ }
2356
+ return this.getExternalGrammar(scopeName2);
2357
+ },
2358
+ injections: (scopeName2) => {
2359
+ return this._grammarRepository.injections(scopeName2);
2360
+ }
2361
+ };
2362
+ const result = [];
2363
+ const scopeName = this._rootScopeName;
2364
+ const grammar = grammarRepository.lookup(scopeName);
2365
+ if (grammar) {
2366
+ const rawInjections = grammar.injections;
2367
+ if (rawInjections) {
2368
+ for (let expression in rawInjections) {
2369
+ collectInjections(
2370
+ result,
2371
+ expression,
2372
+ rawInjections[expression],
2373
+ this,
2374
+ grammar
2375
+ );
2376
+ }
2377
+ }
2378
+ const injectionScopeNames = this._grammarRepository.injections(scopeName);
2379
+ if (injectionScopeNames) {
2380
+ injectionScopeNames.forEach((injectionScopeName) => {
2381
+ const injectionGrammar = this.getExternalGrammar(injectionScopeName);
2382
+ if (injectionGrammar) {
2383
+ const selector = injectionGrammar.injectionSelector;
2384
+ if (selector) {
2385
+ collectInjections(
2386
+ result,
2387
+ selector,
2388
+ injectionGrammar,
2389
+ this,
2390
+ injectionGrammar
2391
+ );
2392
+ }
2393
+ }
2394
+ });
2395
+ }
2396
+ }
2397
+ result.sort((i1, i2) => i1.priority - i2.priority);
2398
+ return result;
2399
+ }
2400
+ getInjections() {
2401
+ if (this._injections === null) {
2402
+ this._injections = this._collectInjections();
2403
+ }
2404
+ return this._injections;
2405
+ }
2406
+ registerRule(factory) {
2407
+ const id = ++this._lastRuleId;
2408
+ const result = factory(ruleIdFromNumber(id));
2409
+ this._ruleId2desc[id] = result;
2410
+ return result;
2411
+ }
2412
+ getRule(ruleId) {
2413
+ return this._ruleId2desc[ruleIdToNumber(ruleId)];
2414
+ }
2415
+ getExternalGrammar(scopeName, repository) {
2416
+ if (this._includedGrammars[scopeName]) {
2417
+ return this._includedGrammars[scopeName];
2418
+ } else if (this._grammarRepository) {
2419
+ const rawIncludedGrammar = this._grammarRepository.lookup(scopeName);
2420
+ if (rawIncludedGrammar) {
2421
+ this._includedGrammars[scopeName] = initGrammar(
2422
+ rawIncludedGrammar,
2423
+ repository && repository.$base
2424
+ );
2425
+ return this._includedGrammars[scopeName];
2426
+ }
2427
+ }
2428
+ return void 0;
2429
+ }
2430
+ tokenizeLine(lineText, prevState, timeLimit = 0) {
2431
+ const r = this._tokenize(lineText, prevState, false, timeLimit);
2432
+ return {
2433
+ tokens: r.lineTokens.getResult(r.ruleStack, r.lineLength),
2434
+ ruleStack: r.ruleStack,
2435
+ stoppedEarly: r.stoppedEarly
2436
+ };
2437
+ }
2438
+ tokenizeLine2(lineText, prevState, timeLimit = 0) {
2439
+ const r = this._tokenize(lineText, prevState, true, timeLimit);
2440
+ return {
2441
+ tokens: r.lineTokens.getBinaryResult(r.ruleStack, r.lineLength),
2442
+ ruleStack: r.ruleStack,
2443
+ stoppedEarly: r.stoppedEarly
2444
+ };
2445
+ }
2446
+ _tokenize(lineText, prevState, emitBinaryTokens, timeLimit) {
2447
+ if (this._rootId === -1) {
2448
+ this._rootId = RuleFactory.getCompiledRuleId(
2449
+ this._grammar.repository.$self,
2450
+ this,
2451
+ this._grammar.repository
2452
+ );
2453
+ this.getInjections();
2454
+ }
2455
+ let isFirstLine;
2456
+ if (!prevState || prevState === StateStackImpl.NULL) {
2457
+ isFirstLine = true;
2458
+ const rawDefaultMetadata = this._basicScopeAttributesProvider.getDefaultAttributes();
2459
+ const defaultStyle = this.themeProvider.getDefaults();
2460
+ const defaultMetadata = EncodedTokenMetadata.set(
2461
+ 0,
2462
+ rawDefaultMetadata.languageId,
2463
+ rawDefaultMetadata.tokenType,
2464
+ null,
2465
+ defaultStyle.fontStyle,
2466
+ defaultStyle.foregroundId,
2467
+ defaultStyle.backgroundId
2468
+ );
2469
+ const rootScopeName = this.getRule(this._rootId).getName(
2470
+ null,
2471
+ null
2472
+ );
2473
+ let scopeList;
2474
+ if (rootScopeName) {
2475
+ scopeList = AttributedScopeStack.createRootAndLookUpScopeName(
2476
+ rootScopeName,
2477
+ defaultMetadata,
2478
+ this
2479
+ );
2480
+ } else {
2481
+ scopeList = AttributedScopeStack.createRoot(
2482
+ "unknown",
2483
+ defaultMetadata
2484
+ );
2485
+ }
2486
+ prevState = new StateStackImpl(
2487
+ null,
2488
+ this._rootId,
2489
+ -1,
2490
+ -1,
2491
+ false,
2492
+ null,
2493
+ scopeList,
2494
+ scopeList
2495
+ );
2496
+ } else {
2497
+ isFirstLine = false;
2498
+ prevState.reset();
2499
+ }
2500
+ lineText = lineText + "\n";
2501
+ const onigLineText = this.createOnigString(lineText);
2502
+ const lineLength = onigLineText.content.length;
2503
+ const lineTokens = new LineTokens(
2504
+ emitBinaryTokens,
2505
+ lineText,
2506
+ this._tokenTypeMatchers,
2507
+ this.balancedBracketSelectors
2508
+ );
2509
+ const r = _tokenizeString(
2510
+ this,
2511
+ onigLineText,
2512
+ isFirstLine,
2513
+ 0,
2514
+ prevState,
2515
+ lineTokens,
2516
+ true,
2517
+ timeLimit
2518
+ );
2519
+ disposeOnigString(onigLineText);
2520
+ return {
2521
+ lineLength,
2522
+ lineTokens,
2523
+ ruleStack: r.stack,
2524
+ stoppedEarly: r.stoppedEarly
2525
+ };
2526
+ }
2527
+ };
2528
+ function initGrammar(grammar, base) {
2529
+ grammar = clone(grammar);
2530
+ grammar.repository = grammar.repository || {};
2531
+ grammar.repository.$self = {
2532
+ $vscodeTextmateLocation: grammar.$vscodeTextmateLocation,
2533
+ patterns: grammar.patterns,
2534
+ name: grammar.scopeName
2535
+ };
2536
+ grammar.repository.$base = base || grammar.repository.$self;
2537
+ return grammar;
2538
+ }
2539
+ var AttributedScopeStack = class _AttributedScopeStack {
2540
+ /**
2541
+ * Invariant:
2542
+ * ```
2543
+ * if (parent && !scopePath.extends(parent.scopePath)) {
2544
+ * throw new Error();
2545
+ * }
2546
+ * ```
2547
+ */
2548
+ constructor(parent, scopePath, tokenAttributes) {
2549
+ this.parent = parent;
2550
+ this.scopePath = scopePath;
2551
+ this.tokenAttributes = tokenAttributes;
2552
+ }
2553
+ static fromExtension(namesScopeList, contentNameScopesList) {
2554
+ let current = namesScopeList;
2555
+ let scopeNames = namesScopeList?.scopePath ?? null;
2556
+ for (const frame of contentNameScopesList) {
2557
+ scopeNames = ScopeStack.push(scopeNames, frame.scopeNames);
2558
+ current = new _AttributedScopeStack(current, scopeNames, frame.encodedTokenAttributes);
2559
+ }
2560
+ return current;
2561
+ }
2562
+ static createRoot(scopeName, tokenAttributes) {
2563
+ return new _AttributedScopeStack(null, new ScopeStack(null, scopeName), tokenAttributes);
2564
+ }
2565
+ static createRootAndLookUpScopeName(scopeName, tokenAttributes, grammar) {
2566
+ const rawRootMetadata = grammar.getMetadataForScope(scopeName);
2567
+ const scopePath = new ScopeStack(null, scopeName);
2568
+ const rootStyle = grammar.themeProvider.themeMatch(scopePath);
2569
+ const resolvedTokenAttributes = _AttributedScopeStack.mergeAttributes(
2570
+ tokenAttributes,
2571
+ rawRootMetadata,
2572
+ rootStyle
2573
+ );
2574
+ return new _AttributedScopeStack(null, scopePath, resolvedTokenAttributes);
2575
+ }
2576
+ get scopeName() {
2577
+ return this.scopePath.scopeName;
2578
+ }
2579
+ toString() {
2580
+ return this.getScopeNames().join(" ");
2581
+ }
2582
+ equals(other) {
2583
+ return _AttributedScopeStack.equals(this, other);
2584
+ }
2585
+ static equals(a, b) {
2586
+ do {
2587
+ if (a === b) {
2588
+ return true;
2589
+ }
2590
+ if (!a && !b) {
2591
+ return true;
2592
+ }
2593
+ if (!a || !b) {
2594
+ return false;
2595
+ }
2596
+ if (a.scopeName !== b.scopeName || a.tokenAttributes !== b.tokenAttributes) {
2597
+ return false;
2598
+ }
2599
+ a = a.parent;
2600
+ b = b.parent;
2601
+ } while (true);
2602
+ }
2603
+ static mergeAttributes(existingTokenAttributes, basicScopeAttributes, styleAttributes) {
2604
+ let fontStyle = -1 /* NotSet */;
2605
+ let foreground = 0;
2606
+ let background = 0;
2607
+ if (styleAttributes !== null) {
2608
+ fontStyle = styleAttributes.fontStyle;
2609
+ foreground = styleAttributes.foregroundId;
2610
+ background = styleAttributes.backgroundId;
2611
+ }
2612
+ return EncodedTokenMetadata.set(
2613
+ existingTokenAttributes,
2614
+ basicScopeAttributes.languageId,
2615
+ basicScopeAttributes.tokenType,
2616
+ null,
2617
+ fontStyle,
2618
+ foreground,
2619
+ background
2620
+ );
2621
+ }
2622
+ pushAttributed(scopePath, grammar) {
2623
+ if (scopePath === null) {
2624
+ return this;
2625
+ }
2626
+ if (scopePath.indexOf(" ") === -1) {
2627
+ return _AttributedScopeStack._pushAttributed(this, scopePath, grammar);
2628
+ }
2629
+ const scopes = scopePath.split(/ /g);
2630
+ let result = this;
2631
+ for (const scope of scopes) {
2632
+ result = _AttributedScopeStack._pushAttributed(result, scope, grammar);
2633
+ }
2634
+ return result;
2635
+ }
2636
+ static _pushAttributed(target, scopeName, grammar) {
2637
+ const rawMetadata = grammar.getMetadataForScope(scopeName);
2638
+ const newPath = target.scopePath.push(scopeName);
2639
+ const scopeThemeMatchResult = grammar.themeProvider.themeMatch(newPath);
2640
+ const metadata = _AttributedScopeStack.mergeAttributes(
2641
+ target.tokenAttributes,
2642
+ rawMetadata,
2643
+ scopeThemeMatchResult
2644
+ );
2645
+ return new _AttributedScopeStack(target, newPath, metadata);
2646
+ }
2647
+ getScopeNames() {
2648
+ return this.scopePath.getSegments();
2649
+ }
2650
+ getExtensionIfDefined(base) {
2651
+ const result = [];
2652
+ let self = this;
2653
+ while (self && self !== base) {
2654
+ result.push({
2655
+ encodedTokenAttributes: self.tokenAttributes,
2656
+ scopeNames: self.scopePath.getExtensionIfDefined(self.parent?.scopePath ?? null)
2657
+ });
2658
+ self = self.parent;
2659
+ }
2660
+ return self === base ? result.reverse() : void 0;
2661
+ }
2662
+ };
2663
+ var StateStackImpl = class _StateStackImpl {
2664
+ /**
2665
+ * Invariant:
2666
+ * ```
2667
+ * if (contentNameScopesList !== nameScopesList && contentNameScopesList?.parent !== nameScopesList) {
2668
+ * throw new Error();
2669
+ * }
2670
+ * if (this.parent && !nameScopesList.extends(this.parent.contentNameScopesList)) {
2671
+ * throw new Error();
2672
+ * }
2673
+ * ```
2674
+ */
2675
+ constructor(parent, ruleId, enterPos, anchorPos, beginRuleCapturedEOL, endRule, nameScopesList, contentNameScopesList) {
2676
+ this.parent = parent;
2677
+ this.ruleId = ruleId;
2678
+ this.beginRuleCapturedEOL = beginRuleCapturedEOL;
2679
+ this.endRule = endRule;
2680
+ this.nameScopesList = nameScopesList;
2681
+ this.contentNameScopesList = contentNameScopesList;
2682
+ this.depth = this.parent ? this.parent.depth + 1 : 1;
2683
+ this._enterPos = enterPos;
2684
+ this._anchorPos = anchorPos;
2685
+ }
2686
+ _stackElementBrand = void 0;
2687
+ // TODO remove me
2688
+ static NULL = new _StateStackImpl(
2689
+ null,
2690
+ 0,
2691
+ 0,
2692
+ 0,
2693
+ false,
2694
+ null,
2695
+ null,
2696
+ null
2697
+ );
2698
+ /**
2699
+ * The position on the current line where this state was pushed.
2700
+ * This is relevant only while tokenizing a line, to detect endless loops.
2701
+ * Its value is meaningless across lines.
2702
+ */
2703
+ _enterPos;
2704
+ /**
2705
+ * The captured anchor position when this stack element was pushed.
2706
+ * This is relevant only while tokenizing a line, to restore the anchor position when popping.
2707
+ * Its value is meaningless across lines.
2708
+ */
2709
+ _anchorPos;
2710
+ /**
2711
+ * The depth of the stack.
2712
+ */
2713
+ depth;
2714
+ equals(other) {
2715
+ if (other === null) {
2716
+ return false;
2717
+ }
2718
+ return _StateStackImpl._equals(this, other);
2719
+ }
2720
+ static _equals(a, b) {
2721
+ if (a === b) {
2722
+ return true;
2723
+ }
2724
+ if (!this._structuralEquals(a, b)) {
2725
+ return false;
2726
+ }
2727
+ return AttributedScopeStack.equals(a.contentNameScopesList, b.contentNameScopesList);
2728
+ }
2729
+ /**
2730
+ * A structural equals check. Does not take into account `scopes`.
2731
+ */
2732
+ static _structuralEquals(a, b) {
2733
+ do {
2734
+ if (a === b) {
2735
+ return true;
2736
+ }
2737
+ if (!a && !b) {
2738
+ return true;
2739
+ }
2740
+ if (!a || !b) {
2741
+ return false;
2742
+ }
2743
+ if (a.depth !== b.depth || a.ruleId !== b.ruleId || a.endRule !== b.endRule) {
2744
+ return false;
2745
+ }
2746
+ a = a.parent;
2747
+ b = b.parent;
2748
+ } while (true);
2749
+ }
2750
+ clone() {
2751
+ return this;
2752
+ }
2753
+ static _reset(el) {
2754
+ while (el) {
2755
+ el._enterPos = -1;
2756
+ el._anchorPos = -1;
2757
+ el = el.parent;
2758
+ }
2759
+ }
2760
+ reset() {
2761
+ _StateStackImpl._reset(this);
2762
+ }
2763
+ pop() {
2764
+ return this.parent;
2765
+ }
2766
+ safePop() {
2767
+ if (this.parent) {
2768
+ return this.parent;
2769
+ }
2770
+ return this;
2771
+ }
2772
+ push(ruleId, enterPos, anchorPos, beginRuleCapturedEOL, endRule, nameScopesList, contentNameScopesList) {
2773
+ return new _StateStackImpl(
2774
+ this,
2775
+ ruleId,
2776
+ enterPos,
2777
+ anchorPos,
2778
+ beginRuleCapturedEOL,
2779
+ endRule,
2780
+ nameScopesList,
2781
+ contentNameScopesList
2782
+ );
2783
+ }
2784
+ getEnterPos() {
2785
+ return this._enterPos;
2786
+ }
2787
+ getAnchorPos() {
2788
+ return this._anchorPos;
2789
+ }
2790
+ getRule(grammar) {
2791
+ return grammar.getRule(this.ruleId);
2792
+ }
2793
+ toString() {
2794
+ const r = [];
2795
+ this._writeString(r, 0);
2796
+ return "[" + r.join(",") + "]";
2797
+ }
2798
+ _writeString(res, outIndex) {
2799
+ if (this.parent) {
2800
+ outIndex = this.parent._writeString(res, outIndex);
2801
+ }
2802
+ res[outIndex++] = `(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`;
2803
+ return outIndex;
2804
+ }
2805
+ withContentNameScopesList(contentNameScopeStack) {
2806
+ if (this.contentNameScopesList === contentNameScopeStack) {
2807
+ return this;
2808
+ }
2809
+ return this.parent.push(
2810
+ this.ruleId,
2811
+ this._enterPos,
2812
+ this._anchorPos,
2813
+ this.beginRuleCapturedEOL,
2814
+ this.endRule,
2815
+ this.nameScopesList,
2816
+ contentNameScopeStack
2817
+ );
2818
+ }
2819
+ withEndRule(endRule) {
2820
+ if (this.endRule === endRule) {
2821
+ return this;
2822
+ }
2823
+ return new _StateStackImpl(
2824
+ this.parent,
2825
+ this.ruleId,
2826
+ this._enterPos,
2827
+ this._anchorPos,
2828
+ this.beginRuleCapturedEOL,
2829
+ endRule,
2830
+ this.nameScopesList,
2831
+ this.contentNameScopesList
2832
+ );
2833
+ }
2834
+ // Used to warn of endless loops
2835
+ hasSameRuleAs(other) {
2836
+ let el = this;
2837
+ while (el && el._enterPos === other._enterPos) {
2838
+ if (el.ruleId === other.ruleId) {
2839
+ return true;
2840
+ }
2841
+ el = el.parent;
2842
+ }
2843
+ return false;
2844
+ }
2845
+ toStateStackFrame() {
2846
+ return {
2847
+ ruleId: ruleIdToNumber(this.ruleId),
2848
+ beginRuleCapturedEOL: this.beginRuleCapturedEOL,
2849
+ endRule: this.endRule,
2850
+ nameScopesList: this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList ?? null) ?? [],
2851
+ contentNameScopesList: this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList) ?? []
2852
+ };
2853
+ }
2854
+ static pushFrame(self, frame) {
2855
+ const namesScopeList = AttributedScopeStack.fromExtension(self?.nameScopesList ?? null, frame.nameScopesList);
2856
+ return new _StateStackImpl(
2857
+ self,
2858
+ ruleIdFromNumber(frame.ruleId),
2859
+ frame.enterPos ?? -1,
2860
+ frame.anchorPos ?? -1,
2861
+ frame.beginRuleCapturedEOL,
2862
+ frame.endRule,
2863
+ namesScopeList,
2864
+ AttributedScopeStack.fromExtension(namesScopeList, frame.contentNameScopesList)
2865
+ );
2866
+ }
2867
+ };
2868
+ var BalancedBracketSelectors = class {
2869
+ balancedBracketScopes;
2870
+ unbalancedBracketScopes;
2871
+ allowAny = false;
2872
+ constructor(balancedBracketScopes, unbalancedBracketScopes) {
2873
+ this.balancedBracketScopes = balancedBracketScopes.flatMap(
2874
+ (selector) => {
2875
+ if (selector === "*") {
2876
+ this.allowAny = true;
2877
+ return [];
2878
+ }
2879
+ return createMatchers(selector, nameMatcher).map((m) => m.matcher);
2880
+ }
2881
+ );
2882
+ this.unbalancedBracketScopes = unbalancedBracketScopes.flatMap(
2883
+ (selector) => createMatchers(selector, nameMatcher).map((m) => m.matcher)
2884
+ );
2885
+ }
2886
+ get matchesAlways() {
2887
+ return this.allowAny && this.unbalancedBracketScopes.length === 0;
2888
+ }
2889
+ get matchesNever() {
2890
+ return this.balancedBracketScopes.length === 0 && !this.allowAny;
2891
+ }
2892
+ match(scopes) {
2893
+ for (const excluder of this.unbalancedBracketScopes) {
2894
+ if (excluder(scopes)) {
2895
+ return false;
2896
+ }
2897
+ }
2898
+ for (const includer of this.balancedBracketScopes) {
2899
+ if (includer(scopes)) {
2900
+ return true;
2901
+ }
2902
+ }
2903
+ return this.allowAny;
2904
+ }
2905
+ };
2906
+ var LineTokens = class {
2907
+ constructor(emitBinaryTokens, lineText, tokenTypeOverrides, balancedBracketSelectors) {
2908
+ this.balancedBracketSelectors = balancedBracketSelectors;
2909
+ this._emitBinaryTokens = emitBinaryTokens;
2910
+ this._tokenTypeOverrides = tokenTypeOverrides;
2911
+ if (false) {
2912
+ this._lineText = lineText;
2913
+ } else {
2914
+ this._lineText = null;
2915
+ }
2916
+ this._tokens = [];
2917
+ this._binaryTokens = [];
2918
+ this._lastTokenEndIndex = 0;
2919
+ }
2920
+ _emitBinaryTokens;
2921
+ /**
2922
+ * defined only if `false`.
2923
+ */
2924
+ _lineText;
2925
+ /**
2926
+ * used only if `_emitBinaryTokens` is false.
2927
+ */
2928
+ _tokens;
2929
+ /**
2930
+ * used only if `_emitBinaryTokens` is true.
2931
+ */
2932
+ _binaryTokens;
2933
+ _lastTokenEndIndex;
2934
+ _tokenTypeOverrides;
2935
+ produce(stack, endIndex) {
2936
+ this.produceFromScopes(stack.contentNameScopesList, endIndex);
2937
+ }
2938
+ produceFromScopes(scopesList, endIndex) {
2939
+ if (this._lastTokenEndIndex >= endIndex) {
2940
+ return;
2941
+ }
2942
+ if (this._emitBinaryTokens) {
2943
+ let metadata = scopesList?.tokenAttributes ?? 0;
2944
+ let containsBalancedBrackets = false;
2945
+ if (this.balancedBracketSelectors?.matchesAlways) {
2946
+ containsBalancedBrackets = true;
2947
+ }
2948
+ if (this._tokenTypeOverrides.length > 0 || this.balancedBracketSelectors && !this.balancedBracketSelectors.matchesAlways && !this.balancedBracketSelectors.matchesNever) {
2949
+ const scopes2 = scopesList?.getScopeNames() ?? [];
2950
+ for (const tokenType of this._tokenTypeOverrides) {
2951
+ if (tokenType.matcher(scopes2)) {
2952
+ metadata = EncodedTokenMetadata.set(
2953
+ metadata,
2954
+ 0,
2955
+ toOptionalTokenType(tokenType.type),
2956
+ null,
2957
+ -1 /* NotSet */,
2958
+ 0,
2959
+ 0
2960
+ );
2961
+ }
2962
+ }
2963
+ if (this.balancedBracketSelectors) {
2964
+ containsBalancedBrackets = this.balancedBracketSelectors.match(scopes2);
2965
+ }
2966
+ }
2967
+ if (containsBalancedBrackets) {
2968
+ metadata = EncodedTokenMetadata.set(
2969
+ metadata,
2970
+ 0,
2971
+ 8 /* NotSet */,
2972
+ containsBalancedBrackets,
2973
+ -1 /* NotSet */,
2974
+ 0,
2975
+ 0
2976
+ );
2977
+ }
2978
+ if (this._binaryTokens.length > 0 && this._binaryTokens[this._binaryTokens.length - 1] === metadata) {
2979
+ this._lastTokenEndIndex = endIndex;
2980
+ return;
2981
+ }
2982
+ this._binaryTokens.push(this._lastTokenEndIndex);
2983
+ this._binaryTokens.push(metadata);
2984
+ this._lastTokenEndIndex = endIndex;
2985
+ return;
2986
+ }
2987
+ const scopes = scopesList?.getScopeNames() ?? [];
2988
+ this._tokens.push({
2989
+ startIndex: this._lastTokenEndIndex,
2990
+ endIndex,
2991
+ // value: lineText.substring(lastTokenEndIndex, endIndex),
2992
+ scopes
2993
+ });
2994
+ this._lastTokenEndIndex = endIndex;
2995
+ }
2996
+ getResult(stack, lineLength) {
2997
+ if (this._tokens.length > 0 && this._tokens[this._tokens.length - 1].startIndex === lineLength - 1) {
2998
+ this._tokens.pop();
2999
+ }
3000
+ if (this._tokens.length === 0) {
3001
+ this._lastTokenEndIndex = -1;
3002
+ this.produce(stack, lineLength);
3003
+ this._tokens[this._tokens.length - 1].startIndex = 0;
3004
+ }
3005
+ return this._tokens;
3006
+ }
3007
+ getBinaryResult(stack, lineLength) {
3008
+ if (this._binaryTokens.length > 0 && this._binaryTokens[this._binaryTokens.length - 2] === lineLength - 1) {
3009
+ this._binaryTokens.pop();
3010
+ this._binaryTokens.pop();
3011
+ }
3012
+ if (this._binaryTokens.length === 0) {
3013
+ this._lastTokenEndIndex = -1;
3014
+ this.produce(stack, lineLength);
3015
+ this._binaryTokens[this._binaryTokens.length - 2] = 0;
3016
+ }
3017
+ const result = new Uint32Array(this._binaryTokens.length);
3018
+ for (let i = 0, len = this._binaryTokens.length; i < len; i++) {
3019
+ result[i] = this._binaryTokens[i];
3020
+ }
3021
+ return result;
3022
+ }
3023
+ };
3024
+
3025
+ // src/registry.ts
3026
+ var SyncRegistry = class {
3027
+ constructor(theme, _onigLib) {
3028
+ this._onigLib = _onigLib;
3029
+ this._theme = theme;
3030
+ }
3031
+ _grammars = /* @__PURE__ */ new Map();
3032
+ _rawGrammars = /* @__PURE__ */ new Map();
3033
+ _injectionGrammars = /* @__PURE__ */ new Map();
3034
+ _theme;
3035
+ dispose() {
3036
+ for (const grammar of this._grammars.values()) {
3037
+ grammar.dispose();
3038
+ }
3039
+ }
3040
+ setTheme(theme) {
3041
+ this._theme = theme;
3042
+ }
3043
+ getColorMap() {
3044
+ return this._theme.getColorMap();
3045
+ }
3046
+ /**
3047
+ * Add `grammar` to registry and return a list of referenced scope names
3048
+ */
3049
+ addGrammar(grammar, injectionScopeNames) {
3050
+ this._rawGrammars.set(grammar.scopeName, grammar);
3051
+ if (injectionScopeNames) {
3052
+ this._injectionGrammars.set(grammar.scopeName, injectionScopeNames);
3053
+ }
3054
+ }
3055
+ /**
3056
+ * Lookup a raw grammar.
3057
+ */
3058
+ lookup(scopeName) {
3059
+ return this._rawGrammars.get(scopeName);
3060
+ }
3061
+ /**
3062
+ * Returns the injections for the given grammar
3063
+ */
3064
+ injections(targetScope) {
3065
+ return this._injectionGrammars.get(targetScope);
3066
+ }
3067
+ /**
3068
+ * Get the default theme settings
3069
+ */
3070
+ getDefaults() {
3071
+ return this._theme.getDefaults();
3072
+ }
3073
+ /**
3074
+ * Match a scope in the theme.
3075
+ */
3076
+ themeMatch(scopePath) {
3077
+ return this._theme.match(scopePath);
3078
+ }
3079
+ /**
3080
+ * Lookup a grammar.
3081
+ */
3082
+ grammarForScopeName(scopeName, initialLanguage, embeddedLanguages, tokenTypes, balancedBracketSelectors) {
3083
+ if (!this._grammars.has(scopeName)) {
3084
+ let rawGrammar = this._rawGrammars.get(scopeName);
3085
+ if (!rawGrammar) {
3086
+ return null;
3087
+ }
3088
+ this._grammars.set(scopeName, createGrammar(
3089
+ scopeName,
3090
+ rawGrammar,
3091
+ initialLanguage,
3092
+ embeddedLanguages,
3093
+ tokenTypes,
3094
+ balancedBracketSelectors,
3095
+ this,
3096
+ this._onigLib
3097
+ ));
3098
+ }
3099
+ return this._grammars.get(scopeName);
3100
+ }
3101
+ };
3102
+
3103
+ // src/index.ts
3104
+ var Registry = class {
3105
+ _options;
3106
+ _syncRegistry;
3107
+ _ensureGrammarCache;
3108
+ constructor(options) {
3109
+ this._options = options;
3110
+ this._syncRegistry = new SyncRegistry(
3111
+ Theme.createFromRawTheme(options.theme, options.colorMap),
3112
+ options.onigLib
3113
+ );
3114
+ this._ensureGrammarCache = /* @__PURE__ */ new Map();
3115
+ }
3116
+ dispose() {
3117
+ this._syncRegistry.dispose();
3118
+ }
3119
+ /**
3120
+ * Change the theme. Once called, no previous `ruleStack` should be used anymore.
3121
+ */
3122
+ setTheme(theme, colorMap) {
3123
+ this._syncRegistry.setTheme(Theme.createFromRawTheme(theme, colorMap));
3124
+ }
3125
+ /**
3126
+ * Returns a lookup array for color ids.
3127
+ */
3128
+ getColorMap() {
3129
+ return this._syncRegistry.getColorMap();
3130
+ }
3131
+ /**
3132
+ * Load the grammar for `scopeName` and all referenced included grammars asynchronously.
3133
+ * Please do not use language id 0.
3134
+ */
3135
+ loadGrammarWithEmbeddedLanguages(initialScopeName, initialLanguage, embeddedLanguages) {
3136
+ return this.loadGrammarWithConfiguration(initialScopeName, initialLanguage, { embeddedLanguages });
3137
+ }
3138
+ /**
3139
+ * Load the grammar for `scopeName` and all referenced included grammars asynchronously.
3140
+ * Please do not use language id 0.
3141
+ */
3142
+ loadGrammarWithConfiguration(initialScopeName, initialLanguage, configuration) {
3143
+ return this._loadGrammar(
3144
+ initialScopeName,
3145
+ initialLanguage,
3146
+ configuration.embeddedLanguages,
3147
+ configuration.tokenTypes,
3148
+ new BalancedBracketSelectors(
3149
+ configuration.balancedBracketSelectors || [],
3150
+ configuration.unbalancedBracketSelectors || []
3151
+ )
3152
+ );
3153
+ }
3154
+ /**
3155
+ * Load the grammar for `scopeName` and all referenced included grammars asynchronously.
3156
+ */
3157
+ loadGrammar(initialScopeName) {
3158
+ return this._loadGrammar(initialScopeName, 0, null, null, null);
3159
+ }
3160
+ _loadGrammar(initialScopeName, initialLanguage, embeddedLanguages, tokenTypes, balancedBracketSelectors) {
3161
+ const dependencyProcessor = new ScopeDependencyProcessor(this._syncRegistry, initialScopeName);
3162
+ while (dependencyProcessor.Q.length > 0) {
3163
+ dependencyProcessor.Q.map((request) => this._loadSingleGrammar(request.scopeName));
3164
+ dependencyProcessor.processQueue();
3165
+ }
3166
+ return this._grammarForScopeName(
3167
+ initialScopeName,
3168
+ initialLanguage,
3169
+ embeddedLanguages,
3170
+ tokenTypes,
3171
+ balancedBracketSelectors
3172
+ );
3173
+ }
3174
+ _loadSingleGrammar(scopeName) {
3175
+ if (!this._ensureGrammarCache.has(scopeName)) {
3176
+ this._doLoadSingleGrammar(scopeName);
3177
+ this._ensureGrammarCache.set(scopeName, true);
3178
+ }
3179
+ }
3180
+ _doLoadSingleGrammar(scopeName) {
3181
+ const grammar = this._options.loadGrammar(scopeName);
3182
+ if (grammar) {
3183
+ const injections = typeof this._options.getInjections === "function" ? this._options.getInjections(scopeName) : void 0;
3184
+ this._syncRegistry.addGrammar(grammar, injections);
3185
+ }
3186
+ }
3187
+ /**
3188
+ * Adds a rawGrammar.
3189
+ */
3190
+ addGrammar(rawGrammar, injections = [], initialLanguage = 0, embeddedLanguages = null) {
3191
+ this._syncRegistry.addGrammar(rawGrammar, injections);
3192
+ return this._grammarForScopeName(rawGrammar.scopeName, initialLanguage, embeddedLanguages);
3193
+ }
3194
+ /**
3195
+ * Get the grammar for `scopeName`. The grammar must first be created via `loadGrammar` or `addGrammar`.
3196
+ */
3197
+ _grammarForScopeName(scopeName, initialLanguage = 0, embeddedLanguages = null, tokenTypes = null, balancedBracketSelectors = null) {
3198
+ return this._syncRegistry.grammarForScopeName(
3199
+ scopeName,
3200
+ initialLanguage,
3201
+ embeddedLanguages,
3202
+ tokenTypes,
3203
+ balancedBracketSelectors
3204
+ );
3205
+ }
3206
+ };
3207
+ var INITIAL = StateStackImpl.NULL;
3208
+ export {
3209
+ EncodedTokenMetadata,
3210
+ FindOption,
3211
+ FontStyle,
3212
+ INITIAL,
3213
+ Registry,
3214
+ Theme,
3215
+ disposeOnigString
3216
+ };