ryco-cli 0.1.3 → 0.1.5

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 (466) hide show
  1. package/dist/{AzureDevOpsSourceControlProvider-X7_C5qAM.cjs → AzureDevOpsSourceControlProvider-CdgNqZ5j.cjs} +29 -19
  2. package/dist/{AzureDevOpsSourceControlProvider-CwvdH4Ll.mjs → AzureDevOpsSourceControlProvider-OsyDSESj.mjs} +14 -4
  3. package/dist/{BitbucketSourceControlProvider-3IhNThuu.cjs → BitbucketSourceControlProvider-DBTH98i4.cjs} +36 -19
  4. package/dist/{BitbucketSourceControlProvider-Y3LxnPYV.mjs → BitbucketSourceControlProvider-SQ3gKdFs.mjs} +21 -4
  5. package/dist/{BunPTY-6EA-iDZJ.mjs → BunPTY-B_vjRZN4.mjs} +2 -4
  6. package/dist/{BunPTY-CyqsuAMZ.cjs → BunPTY-BclzAOxp.cjs} +2 -4
  7. package/dist/{ClaudeDriver-Cmqo9lqD.mjs → ClaudeDriver-2dTtrsFD.mjs} +166 -156
  8. package/dist/{ClaudeDriver-CiWSk1E1.cjs → ClaudeDriver-D9yC2F0b.cjs} +196 -185
  9. package/dist/{CodexDriver-D73klBUb.cjs → CodexDriver-BC2B-qpT.cjs} +114 -50
  10. package/dist/{CodexDriver-BRsJm8XU.mjs → CodexDriver-CIDYevQX.mjs} +83 -20
  11. package/dist/{CodexTextGeneration-Bg0r8k7C.mjs → CodexTextGeneration-CjknB1Xl.mjs} +6 -6
  12. package/dist/{CodexTextGeneration-jbe9qfEM.cjs → CodexTextGeneration-DNeO-8GE.cjs} +18 -18
  13. package/dist/{CopilotDriver-tZdF91om.cjs → CopilotDriver-BGChrP5c.cjs} +31 -37
  14. package/dist/{CopilotDriver-DvDa-7-c.mjs → CopilotDriver-NPhlLrk2.mjs} +13 -19
  15. package/dist/{CursorDriver-C6dq_Wr6.mjs → CursorDriver-BcAVbT8D.mjs} +195 -273
  16. package/dist/{CursorDriver-BVJV7yyE.cjs → CursorDriver-CYxn4_c1.cjs} +239 -316
  17. package/dist/{ForgejoSourceControlProvider-C9T3-pOt.mjs → ForgejoSourceControlProvider-BjCE3730.mjs} +14 -4
  18. package/dist/{ForgejoSourceControlProvider-DYtCJSSP.cjs → ForgejoSourceControlProvider-D3wP2Cav.cjs} +29 -19
  19. package/dist/{GitHubSourceControlProvider-BmSffLFQ.mjs → GitHubSourceControlProvider-DByZ_cnw.mjs} +40 -8
  20. package/dist/{GitHubSourceControlProvider-DIbRPFFf.cjs → GitHubSourceControlProvider-DU_7IvMa.cjs} +54 -22
  21. package/dist/{GitLabSourceControlProvider-BdLuuH3g.cjs → GitLabSourceControlProvider-BVJ5IqTS.cjs} +29 -19
  22. package/dist/{GitLabSourceControlProvider-DTZ_rx8U.mjs → GitLabSourceControlProvider-BdMCIjXb.mjs} +14 -4
  23. package/dist/Metrics-BCOc3Ml2.mjs +356 -0
  24. package/dist/Metrics-DNOriWhP.cjs +634 -0
  25. package/dist/{NodePTY-Dg0g4rID.mjs → NodePTY-_u3kQLvd.mjs} +2 -4
  26. package/dist/{NodePTY-U7qcu5qQ.cjs → NodePTY-keGvFYk9.cjs} +2 -4
  27. package/dist/{NodeSqliteClient-CPd53X2R.mjs → NodeSqliteClient-BXy61fAd.mjs} +2 -4
  28. package/dist/{NodeSqliteClient-UlhLLRBA.cjs → NodeSqliteClient-homCO8-6.cjs} +16 -18
  29. package/dist/{OpenCodeDriver-D79_QFoB.cjs → OpenCodeDriver-DyR83FcY.cjs} +32 -34
  30. package/dist/{OpenCodeDriver-DN5bRb9Z.mjs → OpenCodeDriver-fwqXoVyH.mjs} +10 -13
  31. package/dist/{ProjectCustomSystemPrompt-9Bf13ScV.cjs → ProjectCustomSystemPrompt-B8SUlNGa.cjs} +11 -13
  32. package/dist/{ProjectCustomSystemPrompt-QmzOdzXf.mjs → ProjectCustomSystemPrompt-CS1nulhL.mjs} +1 -2
  33. package/dist/{ProviderDriver-DJK4EOeA.cjs → ProviderDriver--rNeAi3B.cjs} +6 -8
  34. package/dist/{ProviderDriver-CkHnmP8q.mjs → ProviderDriver-kCV60GKk.mjs} +1 -2
  35. package/dist/SourceControlProviderDiscoveryCatalog-CQiMyDCC.mjs +569 -0
  36. package/dist/SourceControlProviderDiscoveryCatalog-DqQVhwYM.cjs +676 -0
  37. package/dist/bin.cjs +6648 -12395
  38. package/dist/bin.d.cts +2 -0
  39. package/dist/bin.d.mts +2 -0
  40. package/dist/bin.mjs +8539 -14222
  41. package/dist/chunk-jM1PLTSZ.cjs +30 -0
  42. package/dist/client/assets/AnimatedHeight-CYuVQOpY.js +1 -0
  43. package/dist/client/assets/AppearanceSettings-BBbC8CV5.js +1 -0
  44. package/dist/client/assets/BranchToolbar.logic-Di2EkKiO.js +1 -0
  45. package/dist/client/assets/ChatRightPanel-BJ_cVP66.js +188 -0
  46. package/dist/client/assets/ChatThreadRouteView-DmxD3m2U.js +1 -0
  47. package/dist/client/assets/CommandPaletteDialog-CAzz6bsT.js +1 -0
  48. package/dist/client/assets/CompositeRoot-BvXCwn2c.js +1 -0
  49. package/dist/client/assets/ConnectionsSettings-Cmxm0y2u.js +1 -0
  50. package/dist/client/assets/DialogHandle-CXNAm3QY.js +1 -0
  51. package/dist/client/assets/DialogRoot-DaMwpoP_.js +1 -0
  52. package/dist/client/assets/DialogTitle-KXmfgzP3.js +1 -0
  53. package/dist/client/assets/DialogTrigger-NHyQnW3X.js +1 -0
  54. package/dist/client/assets/DialogViewport-CL0WR9a5.js +1 -0
  55. package/dist/client/assets/DraftChatThreadRouteView-C_hqauF6.js +1 -0
  56. package/dist/client/assets/JetBrainsIcons-BcR8pCma.js +1 -0
  57. package/dist/client/assets/KeybindingsSettings-m2AteGOl.js +7 -0
  58. package/dist/client/assets/McpServersSettings-DndIDxgA.js +6 -0
  59. package/dist/client/assets/NoActiveThreadState-Bt-Wkv-C.js +1 -0
  60. package/dist/client/assets/OpinionatedPluginsSettings-oDtdE6qx.js +1 -0
  61. package/dist/client/assets/ProjectFavicon-j9IX_7-B.js +1 -0
  62. package/dist/client/assets/ProviderUpdateLaunchNotification.logic-BFzNCo3I.js +1 -0
  63. package/dist/client/assets/ProvidersSettingsPanel-CvlIBNVJ.js +1 -0
  64. package/dist/client/assets/QueryClientProvider-BZxRKpeb.js +1 -0
  65. package/dist/client/assets/RedactedSensitiveText-UnZZJnFF.js +1 -0
  66. package/dist/client/assets/RootAppShell-CyHZ_F5P.js +12 -0
  67. package/dist/client/assets/SettingsDialog-BYJ8AhQp.js +2 -0
  68. package/dist/client/assets/SourceControlSettings-7xU6VH6N.js +1 -0
  69. package/dist/client/assets/ThreadStatusIndicators-M9FWDEex.js +1 -0
  70. package/dist/client/assets/ThreadTerminalDrawer-BXoXAbsR.js +38 -0
  71. package/dist/client/assets/ThreadTerminalDrawer-BrP-ENHg.css +1 -0
  72. package/dist/client/assets/ThreadWorkspacePanel-D1J63TVD.js +166 -0
  73. package/dist/client/assets/alert-dialog-BJQbh5gX.js +1 -0
  74. package/dist/client/assets/{angular-html-s8mFfHxJ.js → angular-html-BjMPwewj.js} +1 -1
  75. package/dist/client/assets/{angular-ts-qPgEQREa.js → angular-ts-DueL15Nu.js} +1 -1
  76. package/dist/client/assets/{apl-Bk41I3U1.js → apl-BgVy_tIs.js} +1 -1
  77. package/dist/client/assets/{astro-ClwGnYhy.js → astro-CWd6v_kU.js} +1 -1
  78. package/dist/client/assets/{blade-D8d2x7Cj.js → blade-C1itW3Xj.js} +1 -1
  79. package/dist/client/assets/{bsl-DJJjEj3G.js → bsl-BkkzgIyY.js} +1 -1
  80. package/dist/client/assets/{c-C7LLcxwo.js → c-BerOGYIx.js} +1 -1
  81. package/dist/client/assets/{cairo-D0DvaGhb.js → cairo-DLTphjLi.js} +1 -1
  82. package/dist/client/assets/chatThreadActions--n7v5mnB.js +1 -0
  83. package/dist/client/assets/clamp-NYtK3f5s.js +1 -0
  84. package/dist/client/assets/{cobol-BFmBEDT2.js → cobol-C_rkq165.js} +1 -1
  85. package/dist/client/assets/codexUsageLimits-BJQiZCqn.js +1 -0
  86. package/dist/client/assets/{coffee-C6xKBntv.js → coffee-DX2eriSb.js} +1 -1
  87. package/dist/client/assets/commandPaletteStore-oFMPKPmp.js +1 -0
  88. package/dist/client/assets/{compiler-runtime-BF315rzL.js → compiler-runtime-BNrXlsa1.js} +1 -1
  89. package/dist/client/assets/composerDraftStore-xu3n5gdX.js +21 -0
  90. package/dist/client/assets/{cpp-CVDdGIJL.js → cpp-DN_S3YzL.js} +1 -1
  91. package/dist/client/assets/{crystal-C8hrz-Ed.js → crystal-DX_yIzv-.js} +1 -1
  92. package/dist/client/assets/{css-Bq4IaKl1.js → css-CcrQR6FS.js} +1 -1
  93. package/dist/client/assets/desktopUpdateReactQuery-YSCkifKp.js +2 -0
  94. package/dist/client/assets/download-Bi4-cFbc.js +1 -0
  95. package/dist/client/assets/draft-input-BGSRgOW7.js +1 -0
  96. package/dist/client/assets/{edge-M0lvKmK0.js → edge-D6QhZ796.js} +1 -1
  97. package/dist/client/assets/{elixir-Z_A63tjC.js → elixir-DMd9329w.js} +1 -1
  98. package/dist/client/assets/{elm-CSUyuYJg.js → elm-ClOR9TU8.js} +1 -1
  99. package/dist/client/assets/empty-BTxheW4B.js +1 -0
  100. package/dist/client/assets/environmentApi-BFHi_M02.js +1 -0
  101. package/dist/client/assets/{erb-DrEx0jBQ.js → erb-HraKpeAP.js} +1 -1
  102. package/dist/client/assets/{erlang-CJBKhF6J.js → erlang-Cphh6RMH.js} +1 -1
  103. package/dist/client/assets/folder-open-DJmHEPv9.js +1 -0
  104. package/dist/client/assets/{fortran-fixed-form-BKSuIOW4.js → fortran-fixed-form-DEKoE2YW.js} +1 -1
  105. package/dist/client/assets/{fsharp-U9gZ5YOh.js → fsharp-D13ZGOAj.js} +1 -1
  106. package/dist/client/assets/{gdresource-DoBd66sG.js → gdresource-C0sCabJj.js} +1 -1
  107. package/dist/client/assets/{git-commit-Db7dtED7.js → git-commit-BSykSTBG.js} +1 -1
  108. package/dist/client/assets/{git-rebase-QypkBr98.js → git-rebase-7x6VaRfM.js} +1 -1
  109. package/dist/client/assets/{glimmer-js-NOqtI1Rk.js → glimmer-js-Bs66SSVv.js} +1 -1
  110. package/dist/client/assets/{glimmer-ts-BeU4NlYB.js → glimmer-ts-C-1005ee.js} +1 -1
  111. package/dist/client/assets/{glsl-BkDxwNg4.js → glsl-ClknhvHk.js} +1 -1
  112. package/dist/client/assets/{graphql-BuqaMepw.js → graphql-BJK35HL6.js} +1 -1
  113. package/dist/client/assets/group-Dwm-OV-r.js +1 -0
  114. package/dist/client/assets/{hack-C01X66u7.js → hack-DTKnRaIz.js} +1 -1
  115. package/dist/client/assets/{haml-6AVURMsW.js → haml-v1Ae09NK.js} +1 -1
  116. package/dist/client/assets/{handlebars-CQt0otqg.js → handlebars-DvtPw9yK.js} +1 -1
  117. package/dist/client/assets/hostedPairing-DAdvNuk3.js +1 -0
  118. package/dist/client/assets/{html-B9GCfMM1.js → html-Ckes0w7-.js} +1 -1
  119. package/dist/client/assets/{html-derivative-Choar9BD.js → html-derivative-CjYqXu8c.js} +1 -1
  120. package/dist/client/assets/{http-DvFNkpiH.js → http-DgyAR01B.js} +1 -1
  121. package/dist/client/assets/{hurl-BSVy9O8n.js → hurl-BSy4XrZM.js} +1 -1
  122. package/dist/client/assets/{hxml-BcCIYlZp.js → hxml-B0Qn7Nwc.js} +1 -1
  123. package/dist/client/assets/{index-B215HMv1.js → index-BI5yFj9n.js} +2 -2
  124. package/dist/client/assets/input-BfUa3JUD.js +1 -0
  125. package/dist/client/assets/{java-DYU2LKAe.js → java-BRs8BbUU.js} +1 -1
  126. package/dist/client/assets/{javascript-CqMUgcTv.js → javascript-CCh9h5HS.js} +1 -1
  127. package/dist/client/assets/{jinja-DZIBHWGb.js → jinja-D1OtL_yO.js} +1 -1
  128. package/dist/client/assets/{jison-1dZyCIA-.js → jison-D_fWb18i.js} +1 -1
  129. package/dist/client/assets/{json-By08Hh8g.js → json-Bs_SRPeT.js} +1 -1
  130. package/dist/client/assets/{jsx-D-zBxh5E.js → jsx-Btew4WFJ.js} +1 -1
  131. package/dist/client/assets/{julia-D4DyCD9m.js → julia-BKIxRKg2.js} +1 -1
  132. package/dist/client/assets/{just-t1DYRM-F.js → just-CSkhc6Nt.js} +1 -1
  133. package/dist/client/assets/kbd-Dd57M8OY.js +1 -0
  134. package/dist/client/assets/keybindings--G1bkIjA.js +1 -0
  135. package/dist/client/assets/keyboard-B87VTfPa.js +1 -0
  136. package/dist/client/assets/{latex-WQQP2pth.js → latex-DrurJw6z.js} +1 -1
  137. package/dist/client/assets/{liquid-D0Ghr7un.js → liquid-DLZ2kGK1.js} +1 -1
  138. package/dist/client/assets/{lua-r3xGOG0a.js → lua-BNdhJiqB.js} +1 -1
  139. package/dist/client/assets/main-BQf5U-fz.js +9 -0
  140. package/dist/client/assets/main-DrwkwNo9.css +2 -0
  141. package/dist/client/assets/{marko-wk9TVjCS.js → marko-B3eJkbnP.js} +1 -1
  142. package/dist/client/assets/{mdc-BRMVGNjb.js → mdc-Dz2y1zK2.js} +1 -1
  143. package/dist/client/assets/modelPickerOpenState-BJxsqvdg.js +1 -0
  144. package/dist/client/assets/mutation-DJZgOJRu.js +1 -0
  145. package/dist/client/assets/{nextflow-D0nv53RF.js → nextflow-Bbiyy34d.js} +1 -1
  146. package/dist/client/assets/{nginx-D968CCNX.js → nginx-BazusZwe.js} +1 -1
  147. package/dist/client/assets/{nim-CRCwl258.js → nim-jwqEnSmK.js} +1 -1
  148. package/dist/client/assets/{perl-29yJp9Uu.js → perl-BwoWHrup.js} +1 -1
  149. package/dist/client/assets/{php-Cemz192H.js → php-DmODFjdr.js} +1 -1
  150. package/dist/client/assets/plus-B10j9MbZ.js +1 -0
  151. package/dist/client/assets/primary-CSkhdakK.js +1 -0
  152. package/dist/client/assets/providerDriverMeta-B6xuq7ij.js +1 -0
  153. package/dist/client/assets/providerIconUtils-Ch6hejVW.js +47 -0
  154. package/dist/client/assets/{pug-B2ZE7aeX.js → pug-JR1tLpbP.js} +1 -1
  155. package/dist/client/assets/{qml-jG3DrKD9.js → qml-CrcLSvXM.js} +1 -1
  156. package/dist/client/assets/{r-D3sEfBW5.js → r-B4G19rTw.js} +1 -1
  157. package/dist/client/assets/{razor-Beauj9_g.js → razor-Vr7Dkano.js} +1 -1
  158. package/dist/client/assets/react-CjD7iThp.js +16 -0
  159. package/dist/client/assets/react-PSPkXoKo.js +1 -0
  160. package/dist/client/assets/refresh-cw-CRxaXR0E.js +1 -0
  161. package/dist/client/assets/{regexp-DJB-0KGI.js → regexp-mkyOQxyI.js} +1 -1
  162. package/dist/client/assets/resolveAriaLabelledBy-D4fWpj84.js +1 -0
  163. package/dist/client/assets/rightPanelRouteSearch-CTMFCS6R.js +1 -0
  164. package/dist/client/assets/{rst-D9Thij-7.js → rst-CMlIIAT6.js} +1 -1
  165. package/dist/client/assets/{ruby-BriTZmlZ.js → ruby-DeHylo3G.js} +1 -1
  166. package/dist/client/assets/{sas-Cp_miaeX.js → sas-DITAP7FM.js} +1 -1
  167. package/dist/client/assets/scroll-area-BgFq7GRd.js +1 -0
  168. package/dist/client/assets/{scss-DpivEdne.js → scss-DPGO9NvD.js} +1 -1
  169. package/dist/client/assets/separator-CB3Ctlvi.js +1 -0
  170. package/dist/client/assets/server-tdx7WxLI.js +1 -0
  171. package/dist/client/assets/session-logic-CaiGe4hy.js +4 -0
  172. package/dist/client/assets/settingsDialogStore-9vo22xKp.js +1 -0
  173. package/dist/client/assets/settingsLayout-B5o13iGO.js +1 -0
  174. package/dist/client/assets/{shaderlab-DJPIU-BM.js → shaderlab-TOUzSsQk.js} +1 -1
  175. package/dist/client/assets/{shellscript-CM8oTE2e.js → shellscript-Ctrwjmrg.js} +1 -1
  176. package/dist/client/assets/{shellsession-Cbvx0Scr.js → shellsession-CVFkOqvv.js} +1 -1
  177. package/dist/client/assets/sidebar-Bbdql7Af.js +1 -0
  178. package/dist/client/assets/skeleton-C8OZcsPq.js +1 -0
  179. package/dist/client/assets/{soy-4R-idkhG.js → soy-DGJ8Y2bl.js} +1 -1
  180. package/dist/client/assets/{sparql-Zqzk9CwD.js → sparql-D_iOobhT.js} +1 -1
  181. package/dist/client/assets/{sql-sKjBShS8.js → sql-u97rfsUo.js} +1 -1
  182. package/dist/client/assets/{stata-DLIq7jHS.js → stata-DWI7UlWE.js} +1 -1
  183. package/dist/client/assets/storeSelectors-DBRyhCGm.js +1 -0
  184. package/dist/client/assets/{surrealql-CRX8IwBN.js → surrealql-BUWsplpt.js} +1 -1
  185. package/dist/client/assets/{svelte-Dvrysi6X.js → svelte-CQXFJOFl.js} +1 -1
  186. package/dist/client/assets/{templ-RcP_-Nu-.js → templ-CA7lFfrq.js} +1 -1
  187. package/dist/client/assets/{tex-B8a5_DIi.js → tex-DAVBEZhF.js} +1 -1
  188. package/dist/client/assets/threadRoutes-CfldSp4X.js +1 -0
  189. package/dist/client/assets/threadSelectionStore-BggKwzmQ.js +1 -0
  190. package/dist/client/assets/toast-DE-WwLMa.js +1 -0
  191. package/dist/client/assets/toggle-BFMa0a0Y.js +1 -0
  192. package/dist/client/assets/toggle-group-DdKXHoT3.js +1 -0
  193. package/dist/client/assets/trash-2-CZQem-sz.js +1 -0
  194. package/dist/client/assets/{ts-tags-BG0VzqyM.js → ts-tags-cqyzSw6V.js} +1 -1
  195. package/dist/client/assets/{tsx-D4f8_1wY.js → tsx-aOZK_XWL.js} +1 -1
  196. package/dist/client/assets/{twig-DxlRBqRW.js → twig-RScZCD0T.js} +1 -1
  197. package/dist/client/assets/{typescript-C32OH5Jk.js → typescript-6eFuNBLU.js} +1 -1
  198. package/dist/client/assets/useHandleNewThread-DOPZAFqE.js +1 -0
  199. package/dist/client/assets/useLabelableId-BzWaBebJ.js +1 -0
  200. package/dist/client/assets/useNavigate-B1qgM5mt.js +1 -0
  201. package/dist/client/assets/useTheme-C7Ji7x06.js +1 -0
  202. package/dist/client/assets/vscode-icons-E8NUFd62.js +1 -0
  203. package/dist/client/assets/{vue-5RtgVZcg.js → vue-DVoN9ARa.js} +1 -1
  204. package/dist/client/assets/{vue-html-Dd-LXYnz.js → vue-html-BnZS_Ahq.js} +1 -1
  205. package/dist/client/assets/{vue-vine-BKz6iXyu.js → vue-vine-B0I6Y_6P.js} +1 -1
  206. package/dist/client/assets/{worker-rFBLi4xK.js → worker-B_h_pwVO.js} +5 -5
  207. package/dist/client/assets/wrench-DEteICtk.js +1 -0
  208. package/dist/client/assets/x-b9324xm-.js +1 -0
  209. package/dist/client/assets/{xml-DXQJVDNT.js → xml-Dvs5bvzt.js} +1 -1
  210. package/dist/client/assets/{xsl-ByvM9IQh.js → xsl-CuljSg_9.js} +1 -1
  211. package/dist/client/assets/{yaml-CCq_gfp4.js → yaml-orq9hzxs.js} +1 -1
  212. package/dist/client/index.html +1 -1
  213. package/dist/collectUint8StreamText-DbCOJom3.cjs +7269 -0
  214. package/dist/collectUint8StreamText-DuFJyaQh.mjs +6185 -0
  215. package/dist/{makeManagedServerProvider-DVrBJ3h3.cjs → makeManagedServerProvider-C3cQUDkZ.cjs} +77 -79
  216. package/dist/{makeManagedServerProvider-B3DH-AMf.mjs → makeManagedServerProvider-wFGZ2-vd.mjs} +7 -10
  217. package/dist/sourceControl-iWG-m4wE.mjs +207 -0
  218. package/dist/sourceControl-x2t62T8h.cjs +230 -0
  219. package/dist/{sourceControlContextFormatter-CO5cScmF.cjs → sourceControlContextFormatter-BDZqn-4T.cjs} +6 -8
  220. package/dist/{sourceControlContextFormatter-DpXEEmAm.mjs → sourceControlContextFormatter-DEwpnVAH.mjs} +1 -2
  221. package/package.json +5 -3
  222. package/dist/client/assets/ChangedFilesTree-B4W17bLf.js +0 -1
  223. package/dist/client/assets/DiffPanel-C9_pKXWU.js +0 -75
  224. package/dist/client/assets/DiffPanelShell-BmfxFBmp.js +0 -167
  225. package/dist/client/assets/DiffWorkerPoolProvider-B2FLS8eo.js +0 -1
  226. package/dist/client/assets/PreviewPanel-Z0IDMiKg.js +0 -30
  227. package/dist/client/assets/RootAppShell-qLlEOcIH.js +0 -24
  228. package/dist/client/assets/alert-D2R5HNlM.js +0 -1
  229. package/dist/client/assets/composerHandleContext-CkHnb2_F.js +0 -46
  230. package/dist/client/assets/hostedPairing-D299g9iL.js +0 -1
  231. package/dist/client/assets/main-DOCL-gXt.js +0 -66
  232. package/dist/client/assets/main-DhO2tDKo.css +0 -1
  233. package/dist/client/assets/pathEntry-DCmCWUeG.js +0 -1
  234. package/dist/client/assets/primary-BKkx6aqv.js +0 -16
  235. package/dist/client/assets/react-CYzKIDNi.js +0 -1
  236. package/dist/client/assets/refresh-cw-BpZqiP_0.js +0 -1
  237. package/dist/client/assets/runtime-QfzvF0Vn.js +0 -1
  238. package/dist/client/assets/separator-CXZK6vFp.js +0 -4
  239. package/dist/client/assets/text-wrap-CnmG6WhR.js +0 -62
  240. package/dist/client/assets/toggle-BfBpNkCG.js +0 -1
  241. package/dist/client/assets/toggle-group-Dp1gg0mX.js +0 -1
  242. package/dist/client/assets/useSettings-BLDkflD_.js +0 -21
  243. package/dist/client/assets/useTheme-BHTjVtp9.js +0 -1
  244. package/dist/client/assets/useTheme-EFHXLM5e.js +0 -1
  245. package/dist/client/assets/vscode-icons-Ciu6Pjk4.js +0 -1
  246. /package/dist/client/assets/{abap-Vg0cj5d8.js → abap-CLvhMVsD.js} +0 -0
  247. /package/dist/client/assets/{actionscript-3-BV1RXWL1.js → actionscript-3--17pq3dv.js} +0 -0
  248. /package/dist/client/assets/{ada-Ce_Xk3Sp.js → ada-C5qYipkI.js} +0 -0
  249. /package/dist/client/assets/{andromeeda-DJewj201.js → andromeeda-vGVdxbeo.js} +0 -0
  250. /package/dist/client/assets/{apache-BbDgM_LY.js → apache-U0d_L8uA.js} +0 -0
  251. /package/dist/client/assets/{apex-Z4y334SR.js → apex-CGTLDQj6.js} +0 -0
  252. /package/dist/client/assets/{applescript-CLDQZ5Zp.js → applescript-CCn79oCD.js} +0 -0
  253. /package/dist/client/assets/{ara-DwFb8Z32.js → ara-4CJ0cIlV.js} +0 -0
  254. /package/dist/client/assets/{asciidoc-ByVQW3u3.js → asciidoc-DE70LPWp.js} +0 -0
  255. /package/dist/client/assets/{asm-CqqqWovZ.js → asm-Cmm7eHzH.js} +0 -0
  256. /package/dist/client/assets/{aurora-x-B9BHU0bK.js → aurora-x-CDeNXAV0.js} +0 -0
  257. /package/dist/client/assets/{awk-L5v-cuCL.js → awk-BWXHIvNe.js} +0 -0
  258. /package/dist/client/assets/{ayu-dark-YQNfFJx2.js → ayu-dark-DluEY0Gj.js} +0 -0
  259. /package/dist/client/assets/{ayu-light-_9Blof0L.js → ayu-light-C3h-C4tm.js} +0 -0
  260. /package/dist/client/assets/{ayu-mirage-ywKZgCHT.js → ayu-mirage-Bqwy1Gya.js} +0 -0
  261. /package/dist/client/assets/{ballerina-Dgg2a6zg.js → ballerina-B7ZEbQpA.js} +0 -0
  262. /package/dist/client/assets/{bat-wLloRoua.js → bat-Bo4NYOV-.js} +0 -0
  263. /package/dist/client/assets/{beancount-BCSJrVVf.js → beancount-D-usSTwE.js} +0 -0
  264. /package/dist/client/assets/{berry-DJXUHylF.js → berry-DKpUyyne.js} +0 -0
  265. /package/dist/client/assets/{bibtex-C6hGKKRT.js → bibtex-Ci_nEsc7.js} +0 -0
  266. /package/dist/client/assets/{bicep-RsAVk7ms.js → bicep-CUHmPFLl.js} +0 -0
  267. /package/dist/client/assets/{bird2-DTRIpKsA.js → bird2-C2hNVINV.js} +0 -0
  268. /package/dist/client/assets/{c3-DhlmE_oa.js → c3-CnJL0r0V.js} +0 -0
  269. /package/dist/client/assets/{cadence-gm_AXdjh.js → cadence-CQ2zXKGN.js} +0 -0
  270. /package/dist/client/assets/{catppuccin-frappe-CRaK-OXp.js → catppuccin-frappe-3VR1Za6u.js} +0 -0
  271. /package/dist/client/assets/{catppuccin-latte-CekmIWzD.js → catppuccin-latte-DwIHMF0Q.js} +0 -0
  272. /package/dist/client/assets/{catppuccin-macchiato-Pgs1_ylq.js → catppuccin-macchiato-DYnBP6_5.js} +0 -0
  273. /package/dist/client/assets/{catppuccin-mocha-CVFrnEg2.js → catppuccin-mocha-DYhrFGRu.js} +0 -0
  274. /package/dist/client/assets/{clarity-_nV8rm3T.js → clarity-SemFz856.js} +0 -0
  275. /package/dist/client/assets/{clojure-Dsywsvl2.js → clojure-DqKBuwfJ.js} +0 -0
  276. /package/dist/client/assets/{cmake-DoZviRk-.js → cmake-Bj61d0ZC.js} +0 -0
  277. /package/dist/client/assets/{codeowners-LcUICwIC.js → codeowners-C8r90Shi.js} +0 -0
  278. /package/dist/client/assets/{codeql-C0tRiarJ.js → codeql-oeQT6MSM.js} +0 -0
  279. /package/dist/client/assets/{common-lisp-BQXePP3H.js → common-lisp-Cv5bFMCO.js} +0 -0
  280. /package/dist/client/assets/{coq-DWR2ZlCV.js → coq-BrsZFFmf.js} +0 -0
  281. /package/dist/client/assets/{csharp-BpO6pU8h.js → csharp-Ct8U2NOr.js} +0 -0
  282. /package/dist/client/assets/{csv-guZ1Hczt.js → csv-Dx-8-gkx.js} +0 -0
  283. /package/dist/client/assets/{cue-DVp9_WvV.js → cue-CE9AQfxI.js} +0 -0
  284. /package/dist/client/assets/{cypher-3MHH4pYW.js → cypher-ClKdZ_lG.js} +0 -0
  285. /package/dist/client/assets/{d-CIAu_RLS.js → d-qD-0Kul2.js} +0 -0
  286. /package/dist/client/assets/{dark-plus-D6YuWbv0.js → dark-plus-Cs2F2srj.js} +0 -0
  287. /package/dist/client/assets/{dart-DYuQ6kUW.js → dart-DkHntEIa.js} +0 -0
  288. /package/dist/client/assets/{dax-BBIUHzFG.js → dax-BkyTk9wS.js} +0 -0
  289. /package/dist/client/assets/{desktop-i7Pu8H5c.js → desktop-Dlh5hvp9.js} +0 -0
  290. /package/dist/client/assets/{diff-BOMu6KnT.js → diff-woXpYk--.js} +0 -0
  291. /package/dist/client/assets/{docker-Jl7Opeg9.js → docker-IyjqRm3v.js} +0 -0
  292. /package/dist/client/assets/{dotenv-DNMkRfS9.js → dotenv-_5a1GRtc.js} +0 -0
  293. /package/dist/client/assets/{dracula-BRuhgxZx.js → dracula-BHWKrbxM.js} +0 -0
  294. /package/dist/client/assets/{dracula-soft-Bh-3NXEk.js → dracula-soft-5eyTD99u.js} +0 -0
  295. /package/dist/client/assets/{dream-maker-XsE3rknm.js → dream-maker-DW3nJb8Q.js} +0 -0
  296. /package/dist/client/assets/{emacs-lisp-DILRoF5l.js → emacs-lisp-C9PiwqqW.js} +0 -0
  297. /package/dist/client/assets/{everforest-dark-TN28LCtO.js → everforest-dark-sB-x3p7T.js} +0 -0
  298. /package/dist/client/assets/{everforest-light-Bie4zQAp.js → everforest-light-Df2xbC6M.js} +0 -0
  299. /package/dist/client/assets/{fennel-C5HmIS3y.js → fennel-DQxkIbk2.js} +0 -0
  300. /package/dist/client/assets/{fish-BLa94bES.js → fish-BJitypiv.js} +0 -0
  301. /package/dist/client/assets/{fluent-Dz5wDZec.js → fluent-C03EYrpw.js} +0 -0
  302. /package/dist/client/assets/{fortran-free-form-Dhgntk66.js → fortran-free-form-CYNrtFtB.js} +0 -0
  303. /package/dist/client/assets/{gdscript-cU6-22QG.js → gdscript-Cp2uCuqX.js} +0 -0
  304. /package/dist/client/assets/{gdshader-D10o9T_4.js → gdshader-CBce3t8t.js} +0 -0
  305. /package/dist/client/assets/{genie-BxoMb50b.js → genie-CV2tkWYe.js} +0 -0
  306. /package/dist/client/assets/{gherkin-B2lz9HMr.js → gherkin-DExj1W_8.js} +0 -0
  307. /package/dist/client/assets/{github-dark-D5NDXfHf.js → github-dark-C-LZuMrd.js} +0 -0
  308. /package/dist/client/assets/{github-dark-default-Bo_3g1lT.js → github-dark-default-DXG-b-1a.js} +0 -0
  309. /package/dist/client/assets/{github-dark-dimmed-BQUS-1Ln.js → github-dark-dimmed-Bx1FflLF.js} +0 -0
  310. /package/dist/client/assets/{github-dark-high-contrast-DIHLvRoS.js → github-dark-high-contrast-B_tTalzw.js} +0 -0
  311. /package/dist/client/assets/{github-light-Bw4sXpzB.js → github-light-EUqPIrTm.js} +0 -0
  312. /package/dist/client/assets/{github-light-default-B8bmeZPd.js → github-light-default-BXViO-2h.js} +0 -0
  313. /package/dist/client/assets/{github-light-high-contrast-CJI8nAIV.js → github-light-high-contrast-B68TUdTA.js} +0 -0
  314. /package/dist/client/assets/{gleam-9zwoUsHJ.js → gleam-CSRkHgEL.js} +0 -0
  315. /package/dist/client/assets/{gn-DLF2G5Ru.js → gn-ilITqXS6.js} +0 -0
  316. /package/dist/client/assets/{gnuplot-Bcm3DAiA.js → gnuplot-7GGW24-e.js} +0 -0
  317. /package/dist/client/assets/{go-CPlmKKFp.js → go-BJwz_mda.js} +0 -0
  318. /package/dist/client/assets/{groovy-Dg2VIq5p.js → groovy-CacY0gHj.js} +0 -0
  319. /package/dist/client/assets/{gruvbox-dark-hard-BzHG1YMb.js → gruvbox-dark-hard-C820rvS2.js} +0 -0
  320. /package/dist/client/assets/{gruvbox-dark-medium-C9UQOvAR.js → gruvbox-dark-medium-BPjhmG05.js} +0 -0
  321. /package/dist/client/assets/{gruvbox-dark-soft-xgYmK4Rn.js → gruvbox-dark-soft-MrdJrrXF.js} +0 -0
  322. /package/dist/client/assets/{gruvbox-light-hard-DxvMP-zF.js → gruvbox-light-hard-BC_s9l72.js} +0 -0
  323. /package/dist/client/assets/{gruvbox-light-medium-SxCJk4ze.js → gruvbox-light-medium-BAWPOn9u.js} +0 -0
  324. /package/dist/client/assets/{gruvbox-light-soft-B9XTNyng.js → gruvbox-light-soft-BSMLrYjP.js} +0 -0
  325. /package/dist/client/assets/{haskell-Cf52ssWB.js → haskell-D8IpX4py.js} +0 -0
  326. /package/dist/client/assets/{haxe-BiaDi9Ls.js → haxe-OTjmBuCE.js} +0 -0
  327. /package/dist/client/assets/{hcl-Dcb9DqV1.js → hcl-Dh228itO.js} +0 -0
  328. /package/dist/client/assets/{hjson-LjA2UJVG.js → hjson-CxZEssPk.js} +0 -0
  329. /package/dist/client/assets/{hlsl-Bdu4H644.js → hlsl-Cvrh5tZx.js} +0 -0
  330. /package/dist/client/assets/{horizon-DfLB6K3K.js → horizon-CE9ld1lL.js} +0 -0
  331. /package/dist/client/assets/{horizon-bright-BRcOD00n.js → horizon-bright-Br1oVSNq.js} +0 -0
  332. /package/dist/client/assets/{houston-pGeyqiDN.js → houston-CsvMBhTu.js} +0 -0
  333. /package/dist/client/assets/{hy-CAzVaHwm.js → hy-CZbG8q4J.js} +0 -0
  334. /package/dist/client/assets/{imba-CtP12ZBI.js → imba-DsUTQ-LC.js} +0 -0
  335. /package/dist/client/assets/{ini-DyaqLXx3.js → ini-B5eOa1yu.js} +0 -0
  336. /package/dist/client/assets/{json5-pkfxH3eL.js → json5-BR5RXkoi.js} +0 -0
  337. /package/dist/client/assets/{jsonc-D_yIvXTo.js → jsonc-CYpm1nAK.js} +0 -0
  338. /package/dist/client/assets/{jsonl-Cyj0VVep.js → jsonl-CmCQp5Yx.js} +0 -0
  339. /package/dist/client/assets/{jsonnet-CQ7ol0Ju.js → jsonnet-CJTPZ8u_.js} +0 -0
  340. /package/dist/client/assets/{jssm-MbQThoOI.js → jssm-DXw9l8Rf.js} +0 -0
  341. /package/dist/client/assets/{kanagawa-dragon-WzYJN5gB.js → kanagawa-dragon-CXtmUGW6.js} +0 -0
  342. /package/dist/client/assets/{kanagawa-lotus-rRmvCTTT.js → kanagawa-lotus-BN08jTvb.js} +0 -0
  343. /package/dist/client/assets/{kanagawa-wave-DLXZ_HFW.js → kanagawa-wave-CTweb8Dz.js} +0 -0
  344. /package/dist/client/assets/{kdl-MlO6iUnG.js → kdl-CsD5j6eV.js} +0 -0
  345. /package/dist/client/assets/{kotlin-Dugiuyzo.js → kotlin-DhhofPvG.js} +0 -0
  346. /package/dist/client/assets/{kusto-6Zx2e4iM.js → kusto-BUv0MjJC.js} +0 -0
  347. /package/dist/client/assets/{laserwave-Bms40fEM.js → laserwave-C_8bwKvT.js} +0 -0
  348. /package/dist/client/assets/{lean-BeI6HXzS.js → lean-CewbzKMR.js} +0 -0
  349. /package/dist/client/assets/{less-CgPeGWAa.js → less-DVTAwKKz.js} +0 -0
  350. /package/dist/client/assets/{light-plus-j7rlQ_-d.js → light-plus-DVQuIRkW.js} +0 -0
  351. /package/dist/client/assets/{llvm-Dw0AsrHc.js → llvm-Cm23YOpf.js} +0 -0
  352. /package/dist/client/assets/{log-9mP7MLA7.js → log-BNLmms1o.js} +0 -0
  353. /package/dist/client/assets/{logo-CEB74EGf.js → logo-Cluzi2Zq.js} +0 -0
  354. /package/dist/client/assets/{luau-C4m3ZsP4.js → luau-CNKltnaQ.js} +0 -0
  355. /package/dist/client/assets/{make-D05QTRNX.js → make-Dixweg8N.js} +0 -0
  356. /package/dist/client/assets/{markdown-UoFBNZst.js → markdown-BYOwaDjH.js} +0 -0
  357. /package/dist/client/assets/{material-theme-BLisqalJ.js → material-theme-Bm3Qr25_.js} +0 -0
  358. /package/dist/client/assets/{material-theme-darker-CMDfuiQ2.js → material-theme-darker-2IIEA8gg.js} +0 -0
  359. /package/dist/client/assets/{material-theme-lighter-CxAafT95.js → material-theme-lighter-uhdI0v04.js} +0 -0
  360. /package/dist/client/assets/{material-theme-ocean-B4-TfnzS.js → material-theme-ocean-CHQ94UKr.js} +0 -0
  361. /package/dist/client/assets/{material-theme-palenight-BiO5TPm2.js → material-theme-palenight-B5W6OYN7.js} +0 -0
  362. /package/dist/client/assets/{matlab-B1JUCa3X.js → matlab-D7qyCx1q.js} +0 -0
  363. /package/dist/client/assets/{mdx-5iivKtUB.js → mdx-DQZ5AkYe.js} +0 -0
  364. /package/dist/client/assets/{mermaid-e-18nCBH.js → mermaid-Bk4SNUv9.js} +0 -0
  365. /package/dist/client/assets/{min-dark-CwF0fYNT.js → min-dark-BSWPekZh.js} +0 -0
  366. /package/dist/client/assets/{min-light-DbuMCP1T.js → min-light-DDpmG2fV.js} +0 -0
  367. /package/dist/client/assets/{mipsasm-DcTRWKSO.js → mipsasm-BMqwQI7S.js} +0 -0
  368. /package/dist/client/assets/{mojo-DTlMyvmX.js → mojo-BgCJLMeH.js} +0 -0
  369. /package/dist/client/assets/{monokai-ShOh_SLr.js → monokai-CdkpiU2Y.js} +0 -0
  370. /package/dist/client/assets/{moonbit-Clq4Da-i.js → moonbit-CaWjb8XO.js} +0 -0
  371. /package/dist/client/assets/{move-Bl5q_pwm.js → move-B1IS1UjX.js} +0 -0
  372. /package/dist/client/assets/{narrat-CBsmOEAI.js → narrat-_X_XdTYD.js} +0 -0
  373. /package/dist/client/assets/{nextflow-groovy-aMR1iPI_.js → nextflow-groovy-Dc_ddanL.js} +0 -0
  374. /package/dist/client/assets/{night-owl-yTEb_Wwb.js → night-owl-DhmEMT88.js} +0 -0
  375. /package/dist/client/assets/{night-owl-light-huKGrUNo.js → night-owl-light-eJ-hLW7d.js} +0 -0
  376. /package/dist/client/assets/{nix-Cp796_WQ.js → nix-IvuFDN5E.js} +0 -0
  377. /package/dist/client/assets/{nord-DcX-wPJc.js → nord-Cb4Vim4T.js} +0 -0
  378. /package/dist/client/assets/{nushell-BfyhU0X_.js → nushell-DcLAeLz5.js} +0 -0
  379. /package/dist/client/assets/{objective-c-B4uJcreS.js → objective-c-D1A_Heim.js} +0 -0
  380. /package/dist/client/assets/{objective-cpp-jpQjhWST.js → objective-cpp-BsSzOQcm.js} +0 -0
  381. /package/dist/client/assets/{ocaml-Bd4ZvQW_.js → ocaml-O90oeIOV.js} +0 -0
  382. /package/dist/client/assets/{odin-CrrB9RSu.js → odin-B1RWQWA5.js} +0 -0
  383. /package/dist/client/assets/{one-dark-pro-CkQTfcfR.js → one-dark-pro-CLwyXe_n.js} +0 -0
  384. /package/dist/client/assets/{one-light-DThLWCfa.js → one-light-D7Lr4KcI.js} +0 -0
  385. /package/dist/client/assets/{openscad-D3TTqx3L.js → openscad-BUDT5pXO.js} +0 -0
  386. /package/dist/client/assets/{pairingUrl-BDy1QCMe.js → pairingUrl-rQM9kSGT.js} +0 -0
  387. /package/dist/client/assets/{pascal-DWfvzseC.js → pascal-4ZHwLPI5.js} +0 -0
  388. /package/dist/client/assets/{pierre-dark-DvfVJVsW.js → pierre-dark-PhHPzmGe.js} +0 -0
  389. /package/dist/client/assets/{pierre-light-B0eN5zia.js → pierre-light-DN22GkGi.js} +0 -0
  390. /package/dist/client/assets/{pkl-DdTB5XmH.js → pkl-ot-7Btpt.js} +0 -0
  391. /package/dist/client/assets/{plastic-B7VrxlmD.js → plastic-DQwYfKfQ.js} +0 -0
  392. /package/dist/client/assets/{plsql-BqXKIIPU.js → plsql-DGHpHOYJ.js} +0 -0
  393. /package/dist/client/assets/{po-C5lHU9KQ.js → po-BiJDBrnU.js} +0 -0
  394. /package/dist/client/assets/{poimandres-3PFzcj5x.js → poimandres-DRFjx7u4.js} +0 -0
  395. /package/dist/client/assets/{polar-C6NB-8j6.js → polar-C7UOKdEL.js} +0 -0
  396. /package/dist/client/assets/{postcss-vtVbFW0L.js → postcss-BXeXVLqQ.js} +0 -0
  397. /package/dist/client/assets/{powerquery-hquWt5c6.js → powerquery-DNMTfnFr.js} +0 -0
  398. /package/dist/client/assets/{powershell-CQ330hRP.js → powershell-DshXNtvi.js} +0 -0
  399. /package/dist/client/assets/{prisma-BQON8_gf.js → prisma-BsRQq5mF.js} +0 -0
  400. /package/dist/client/assets/{prolog-0b9P4dbF.js → prolog-iXnhIJG7.js} +0 -0
  401. /package/dist/client/assets/{proto-CLvr77Vf.js → proto-DB4EqR-F.js} +0 -0
  402. /package/dist/client/assets/{puppet-BT0t2Kuu.js → puppet-CDv2pdJW.js} +0 -0
  403. /package/dist/client/assets/{purescript-DkMvIExr.js → purescript-9MfHhQsQ.js} +0 -0
  404. /package/dist/client/assets/{python-wd06zWQV.js → python-gzcpVVnB.js} +0 -0
  405. /package/dist/client/assets/{qmldir-llhyId5r.js → qmldir-DCQb3MpD.js} +0 -0
  406. /package/dist/client/assets/{qss-CVMsEoHp.js → qss-Fe1Jh2GI.js} +0 -0
  407. /package/dist/client/assets/{racket-DBMp3jda.js → racket-DcIDlBhZ.js} +0 -0
  408. /package/dist/client/assets/{raku-BRxsLZ2S.js → raku-B3gFvitq.js} +0 -0
  409. /package/dist/client/assets/{red-qaVQBZPK.js → red-CJ3rzSJv.js} +0 -0
  410. /package/dist/client/assets/{reg-BDyfNUUq.js → reg-CRGYupPL.js} +0 -0
  411. /package/dist/client/assets/{rel-DdGqSVEp.js → rel-BtDbiS_P.js} +0 -0
  412. /package/dist/client/assets/{riscv-DV28q7Fg.js → riscv-Ckw8ddFX.js} +0 -0
  413. /package/dist/client/assets/{ron-CY4nyhYH.js → ron-VUp2lXgN.js} +0 -0
  414. /package/dist/client/assets/{rose-pine-CxNAz5gp.js → rose-pine-BthvhNj6.js} +0 -0
  415. /package/dist/client/assets/{rose-pine-dawn-xFu_N-rV.js → rose-pine-dawn-Dg85fqjY.js} +0 -0
  416. /package/dist/client/assets/{rose-pine-moon-DK-HvE6Y.js → rose-pine-moon-hon4tzzS.js} +0 -0
  417. /package/dist/client/assets/{rosmsg-K2kzuYs8.js → rosmsg-CAekHB0j.js} +0 -0
  418. /package/dist/client/assets/{rust-DZfNSAHN.js → rust-Cfkwpbl8.js} +0 -0
  419. /package/dist/client/assets/{sass-DIGpNETF.js → sass-DXrisJhu.js} +0 -0
  420. /package/dist/client/assets/{scala-Dm4xFcTl.js → scala-DKOlJaKm.js} +0 -0
  421. /package/dist/client/assets/{scheme-Dyo1jQfP.js → scheme-DQCgrYNe.js} +0 -0
  422. /package/dist/client/assets/{sdbl-C0HF5Szh.js → sdbl-bTVj8UrX.js} +0 -0
  423. /package/dist/client/assets/{slack-dark-jzjOs3ob.js → slack-dark-DnToyrRv.js} +0 -0
  424. /package/dist/client/assets/{slack-ochin-CrJIbU0m.js → slack-ochin-B2OO5cIa.js} +0 -0
  425. /package/dist/client/assets/{smalltalk-DD30vTCS.js → smalltalk-B16xEiuN.js} +0 -0
  426. /package/dist/client/assets/{snazzy-light-DWAW_zRS.js → snazzy-light-4G7pJPwS.js} +0 -0
  427. /package/dist/client/assets/{solarized-dark-QfOoX52e.js → solarized-dark-DV17i1UV.js} +0 -0
  428. /package/dist/client/assets/{solarized-light-3Q8bP0PY.js → solarized-light-DSh2HLQt.js} +0 -0
  429. /package/dist/client/assets/{solidity-DEXV1iYf.js → solidity-CKzVLygQ.js} +0 -0
  430. /package/dist/client/assets/{splunk-D3yrvsJB.js → splunk-BC2Px7Mm.js} +0 -0
  431. /package/dist/client/assets/{ssh-config-DJbT8CNv.js → ssh-config-BgfXC-Er.js} +0 -0
  432. /package/dist/client/assets/{stylus-D7yuZo8M.js → stylus-B6D30XZt.js} +0 -0
  433. /package/dist/client/assets/{swift-Dcka7tnA.js → swift-DonLKvLd.js} +0 -0
  434. /package/dist/client/assets/{synthwave-84-Cp0uE3e0.js → synthwave-84-nFMaYfgc.js} +0 -0
  435. /package/dist/client/assets/{system-verilog-0hmR2xuR.js → system-verilog-DJ5XKQeo.js} +0 -0
  436. /package/dist/client/assets/{systemd-JaNPzh8j.js → systemd-BxMlprV5.js} +0 -0
  437. /package/dist/client/assets/{talonscript-BPHMb4jr.js → talonscript-CohzipZa.js} +0 -0
  438. /package/dist/client/assets/{tasl-D07ubp53.js → tasl-DMoTqEGO.js} +0 -0
  439. /package/dist/client/assets/{tcl-DRL4sBMb.js → tcl-CZd0xW_V.js} +0 -0
  440. /package/dist/client/assets/{terraform-C8KioG9C.js → terraform-DswuEJGm.js} +0 -0
  441. /package/dist/client/assets/{tokyo-night-sVj4Hc0t.js → tokyo-night-oM2G3aXe.js} +0 -0
  442. /package/dist/client/assets/{toml-DOSf8MYV.js → toml-CcmNWLt0.js} +0 -0
  443. /package/dist/client/assets/{tsv-BpjyUJlf.js → tsv-sltzmVWM.js} +0 -0
  444. /package/dist/client/assets/{turtle-x_g5g_iY.js → turtle-ByJddavk.js} +0 -0
  445. /package/dist/client/assets/{typespec-Dfd73-vI.js → typespec-B88KGewJ.js} +0 -0
  446. /package/dist/client/assets/{typst-Dlb0aZU4.js → typst-DI99ib-x.js} +0 -0
  447. /package/dist/client/assets/{v-v-fvjFiX.js → v-DETTlOr0.js} +0 -0
  448. /package/dist/client/assets/{vala-D9-xQ00Z.js → vala-zf12oZj6.js} +0 -0
  449. /package/dist/client/assets/{vb-BReSiWNQ.js → vb-Djn5o6TS.js} +0 -0
  450. /package/dist/client/assets/{verilog-DfyNqRJD.js → verilog-CiiDBU1e.js} +0 -0
  451. /package/dist/client/assets/{vesper-Bv60RWju.js → vesper-D5bVUKB1.js} +0 -0
  452. /package/dist/client/assets/{vhdl-DbQyuq9g.js → vhdl-BroJfC0k.js} +0 -0
  453. /package/dist/client/assets/{viml-DhThL36t.js → viml-DvXPmvsu.js} +0 -0
  454. /package/dist/client/assets/{vitesse-black-CThrVPkw.js → vitesse-black-fwtXNY1n.js} +0 -0
  455. /package/dist/client/assets/{vitesse-dark-BrahNcrX.js → vitesse-dark-BZCL-v6S.js} +0 -0
  456. /package/dist/client/assets/{vitesse-light-BCKYomrh.js → vitesse-light-VbXTXTou.js} +0 -0
  457. /package/dist/client/assets/{vyper-e4AwrcSk.js → vyper-CgoNMtux.js} +0 -0
  458. /package/dist/client/assets/{wasm-Cia-w-S9.js → wasm-BnjxR4X6.js} +0 -0
  459. /package/dist/client/assets/{wasm-B1MrEdvT.js → wasm-ByWQv1Qj.js} +0 -0
  460. /package/dist/client/assets/{wenyan-CrxLlNlW.js → wenyan-C8pVoKbM.js} +0 -0
  461. /package/dist/client/assets/{wgsl-BpsXvExJ.js → wgsl-BsKzXJz4.js} +0 -0
  462. /package/dist/client/assets/{wikitext-C6XIgJ_Z.js → wikitext-ClFFjSW2.js} +0 -0
  463. /package/dist/client/assets/{wit-DkjXKZxQ.js → wit-DdvCle-K.js} +0 -0
  464. /package/dist/client/assets/{wolfram--3zV4S15.js → wolfram-DLL8P-h_.js} +0 -0
  465. /package/dist/client/assets/{zenscript-BLGtygmo.js → zenscript-BnlCZFoB.js} +0 -0
  466. /package/dist/client/assets/{zig-CaWWBKRf.js → zig-CMLA9XwU.js} +0 -0
@@ -1,167 +0,0 @@
1
- import{i as e,n as t,t as n}from"./react-CYzKIDNi.js";import{t as r}from"./index-B215HMv1.js";import{Ct as i,Et as a,St as o,bt as s,gt as c,mt as l,p as u,r as d,vt as f,xt as p,yt as m}from"./toggle-BfBpNkCG.js";import{Da as h,as as g,ft as _}from"./useSettings-BLDkflD_.js";import{t as v}from"./compiler-runtime-BF315rzL.js";var ee=`diffs-container`,te=/(?=^From [a-f0-9]+ .+$)/m,ne=/(?=^diff --git)/gm,re=/(?=^---\s+\S)/gm,ie=/(?=^@@ )/gm,ae=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,y=/(?<=\n)/,oe=/^(---|\+\+\+)\s+([^\t\r\n]+)/,se=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,ce=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,le=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,ue=`header-prefix`,de=`header-metadata`,fe=`header-custom`,b={dark:`pierre-dark`,light:`pierre-light`},pe=`data-theme-css`,me=`data-unsafe-css`,he={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,hunkSeparatorHeight:32,fileGap:8},ge=Object.freeze({fromStart:0,fromEnd:0}),_e={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},ve={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function ye(e){return{type:`text`,value:e}}function x({tagName:e,children:t=[],properties:n={}}){return{type:`element`,tagName:e,properties:n,children:t}}function be({name:e,width:t=16,height:n=16,properties:r}){return x({tagName:`svg`,properties:{width:t,height:n,viewBox:`0 0 16 16`,...r},children:[x({tagName:`use`,properties:{href:`#${e.replace(/^#/,``)}`}})]})}function xe(e){let t=e.children[0];for(;t!=null;){if(t.type===`element`&&t.tagName===`code`)return t;t=`children`in t?t.children[0]:null}}function Se(e){return x({tagName:`div`,properties:{"data-gutter":``},children:e})}function Ce(e,t,n,r={}){return x({tagName:`div`,properties:{"data-line-type":e,"data-column-number":t,"data-line-index":n,...r},children:t==null?void 0:[x({tagName:`span`,properties:{"data-line-number-content":``},children:[ye(`${t}`)]})]})}function we(e,t,n){return x({tagName:`div`,properties:{"data-gutter-buffer":t,"data-buffer-size":n,"data-line-type":t===`annotation`?void 0:e,style:t===`annotation`?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}var Te=/["&'<>`]/g,Ee=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,De=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Oe=/[|\\{}()[\]^$+*?.]/g,ke=new WeakMap;function Ae(e,t){if(e=e.replace(t.subset?je(t.subset):Te,r),t.subset||t.escapeOnly)return e;return e.replace(Ee,n).replace(De,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function je(e){let t=ke.get(e);return t||(t=Me(e),ke.set(e,t)),t}function Me(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(Oe,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var Ne=/[\dA-Fa-f]/;function Pe(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!Ne.test(String.fromCharCode(t))?r:r+`;`}var Fe=/\d/;function Ie(e,t,n){let r=`&#`+String(e);return n&&t&&!Fe.test(String.fromCharCode(t))?r:r+`;`}var Le=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),Re={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},ze=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],Be={}.hasOwnProperty,Ve={},He;for(He in Re)Be.call(Re,He)&&(Ve[Re[He]]=He);var Ue=/[^\dA-Za-z]/;function We(e,t,n,r){let i=String.fromCharCode(e);if(Be.call(Ve,i)){let e=Ve[i],a=`&`+e;return n&&Le.includes(e)&&!ze.includes(e)&&(!r||t&&t!==61&&Ue.test(String.fromCharCode(t)))?a:a+`;`}return``}function Ge(e,t,n){let r=Pe(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=We(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=Ie(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Ke(e,t){return Ae(e,Object.assign({format:Ge},t))}var qe=/^>|^->|<!--|-->|--!>|<!-$/g,Je=[`>`],Ye=[`<`,`>`];function Xe(e,t,n,r){return r.settings.bogusComments?`<?`+Ke(e.value,Object.assign({},r.settings.characterReferences,{subset:Je}))+`>`:`<!--`+e.value.replace(qe,i)+`-->`;function i(e){return Ke(e,Object.assign({},r.settings.characterReferences,{subset:Ye}))}}function Ze(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}var S=et(1),Qe=et(-1),$e=[];function et(e){return t;function t(t,n,r){let i=t?t.children:$e,a=(n||0)+e,o=i[a];if(!r)for(;o&&l(o);)a+=e,o=i[a];return o}}var tt={}.hasOwnProperty;function nt(e){return t;function t(t,n,r){return tt.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var rt=nt({body:ot,caption:it,colgroup:it,dd:ut,dt:lt,head:it,html:at,li:ct,optgroup:ft,option:pt,p:st,rp:dt,rt:dt,tbody:ht,td:vt,tfoot:gt,th:vt,thead:mt,tr:_t});function it(e,t,n){let r=S(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&l(r.value.charAt(0)))}function at(e,t,n){let r=S(n,t);return!r||r.type!==`comment`}function ot(e,t,n){let r=S(n,t);return!r||r.type!==`comment`}function st(e,t,n){let r=S(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||!(n.type===`element`&&(n.tagName===`a`||n.tagName===`audio`||n.tagName===`del`||n.tagName===`ins`||n.tagName===`map`||n.tagName===`noscript`||n.tagName===`video`))}function ct(e,t,n){let r=S(n,t);return!r||r.type===`element`&&r.tagName===`li`}function lt(e,t,n){let r=S(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function ut(e,t,n){let r=S(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function dt(e,t,n){let r=S(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function ft(e,t,n){let r=S(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function pt(e,t,n){let r=S(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function mt(e,t,n){let r=S(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function ht(e,t,n){let r=S(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function gt(e,t,n){return!S(n,t)}function _t(e,t,n){let r=S(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function vt(e,t,n){let r=S(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var yt=nt({body:St,colgroup:Ct,head:xt,html:bt,tbody:wt});function bt(e){let t=S(e,-1);return!t||t.type!==`comment`}function xt(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function St(e){let t=S(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&l(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function Ct(e,t,n){let r=Qe(n,t),i=S(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&rt(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function wt(e,t,n){let r=Qe(n,t),i=S(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&rt(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var Tt={name:[[`
2
- \f\r &/=>`.split(``),`
3
- \f\r "&'/=>\``.split(``)],[`\0
4
- \f\r "&'/<=>`.split(``),`\0
5
- \f\r "&'/<=>\``.split(``)]],unquoted:[[`
6
- \f\r &>`.split(``),`\0
7
- \f\r "&'<=>\``.split(``)],[`\0
8
- \f\r "&'<=>\``.split(``),`\0
9
- \f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function Et(e,t,n,r){let i=r.schema,a=i.space===`svg`?!1:r.settings.omitOptionalTags,s=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),c=[],l;i.space===`html`&&e.tagName===`svg`&&(r.schema=o);let u=Dt(r,e.properties),d=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,d&&(s=!1),(u||!a||!yt(e,t,n))&&(c.push(`<`,e.tagName,u?` `+u:``),s&&(i.space===`svg`||r.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!r.settings.tightSelfClosing||l===`/`||l&&l!==`"`&&l!==`'`)&&c.push(` `),c.push(`/`)),c.push(`>`)),c.push(d),!s&&(!a||!rt(e,t,n))&&c.push(`</`+e.tagName+`>`),c.join(``)}function Dt(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=Ot(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function Ot(e,t,n){let r=i(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,o=e.settings.allowDangerousCharacters?0:1,s=e.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let u=Ke(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Tt.name[a][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?f:c)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(l=Ke(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Tt.unquoted[a][o]}))),l!==n&&(e.settings.quoteSmart&&m(n,s)>m(n,e.alternative)&&(s=e.alternative),l=s+Ke(n,Object.assign({},e.settings.characterReferences,{subset:(s===`'`?Tt.single:Tt.double)[a][o],attribute:!0}))+s),u+(l&&`=`+l))}var kt=[`<`,`&`];function At(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:Ke(e.value,Object.assign({},r.settings.characterReferences,{subset:kt}))}function jt(e,t,n,r){return r.settings.allowDangerousHtml?e.value:At(e,t,n,r)}function Mt(e,t,n,r){return r.all(e)}var Nt=s(`type`,{invalid:Pt,unknown:Ft,handlers:{comment:Xe,doctype:Ze,element:Et,raw:jt,root:Mt,text:At}});function Pt(e){throw Error("Expected node, not `"+e+"`")}function Ft(e){let t=e;throw Error("Cannot compile unknown node `"+t.type+"`")}var It={},Lt={},Rt=[];function zt(e,t){let n=t||It,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Bt,all:Vt,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||a,characterReferences:n.characterReferences||Lt,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?o:p,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function Bt(e,t,n){return Nt(e,t,n,this)}function Vt(e){let t=[],n=e&&e.children||Rt,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var C=new Map,Ht=new Map,Ut=new Map,Wt=new Set;function Gt(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(Wt.has(n.name))continue;let e=C.get(n.name);e??(e=n,C.set(n.name,e)),Wt.add(e.name),t.loadLanguageSync(e.data)}}function Kt(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var w=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function qt(e){return Jt(e)}function Jt(e){return Array.isArray(e)?Yt(e):e instanceof RegExp?e:typeof e==`object`?Xt(e):e}function Yt(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Jt(e[n]);return t}function Xt(e){let t={};for(let n in e)t[n]=Jt(e[n]);return t}function Zt(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function Qt(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?Qt(e.substring(0,e.length-1)):e.substr(~t+1)}var $t=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,en=class{static hasCaptures(e){return e===null?!1:($t.lastIndex=0,$t.test(e))}static replaceCaptures(e,t,n){return e.replace($t,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function tn(e,t){return e<t?-1:e>t?1:0}function nn(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=tn(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function rn(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function an(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var on=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},sn=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(fn(e),t)}static createFromParsedTheme(e,t){return mn(e,t)}_cachedMatchRoot=new on(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>ln(e.parent,t.parentScopes));return n?new dn(n.fontStyle,n.foreground,n.background):null}},cn=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function ln(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!un(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function un(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var dn=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function fn(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&rn(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&rn(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new pn(l,u,e,o,s,c)}}return n}var pn=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},T=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(T||{});function mn(e,t){e.sort((e,t)=>{let n=tn(e.scope,t.scope);return n!==0||(n=nn(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new hn(t),o=new dn(n,a.getId(r),a.getId(i)),s=new vn(new _n(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new sn(a,o,s)}var hn=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},gn=Object.freeze([]),_n=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||gn,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},vn=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),_n.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(nn(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new _n(e,t,n,r,i))}},yn=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=e.containsBalancedBrackets(t)?1:0,d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=xn(r)),i!==null&&(u=i?1:0),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function bn(e){return e}function xn(e){return e}function Sn(e,t){let n=[],r=wn(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(Cn(i)){let e=[];do e.push(i),i=r.next();while(Cn(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function Cn(e){return!!e&&!!e.match(/[\w\.:]+/)}function wn(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function Tn(e){typeof e.dispose==`function`&&e.dispose()}var En=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Dn=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},On=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},kn=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new En(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new On;for(let n of e)An(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof En){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function An(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof En?Mn({baseGrammar:a,selfGrammar:i},r):jn(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new En(e))}function jn(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];Nn([r],t,n)}}function Mn(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Nn(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Nn(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Nn(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?Zt({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Nn(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=zn(i);switch(a.kind){case 0:Mn({...t,selfGrammar:t.baseGrammar},n);break;case 1:Mn(t,n);break;case 2:jn(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?jn(a.ruleName,i,n):Mn(i,n)}else a.kind===4?n.add(new Dn(a.scopeName,a.ruleName)):n.add(new En(a.scopeName));break}}}var Pn=class{kind=0},Fn=class{kind=1},In=class{constructor(e){this.ruleName=e}kind=2},Ln=class{constructor(e){this.scopeName=e}kind=3},Rn=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function zn(e){if(e===`$base`)return new Pn;if(e===`$self`)return new Fn;let t=e.indexOf(`#`);return t===-1?new Ln(e):t===0?new In(e.substring(1)):new Rn(e.substring(0,t),e.substring(t+1))}var Bn=/\\(\d+)/,Vn=/\\(\d+)/g,Hn=-1,Un=-2;function Wn(e){return e}function Gn(e){return e}var Kn=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=en.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=en.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Qt(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:en.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:en.replaceCaptures(this._contentName,e,t)}},qn=class extends Kn{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},Jn=class extends Kn{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new $n(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new er,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Yn=class extends Kn{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new er,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Xn=class extends Kn{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new $n(i,this.id),this.beginCaptures=a,this._end=new $n(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new er;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Zn=class extends Kn{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new $n(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new $n(o,Un),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new er;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new er,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},Qn=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new qn(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Jn(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=Zt({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new Yn(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new Zn(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Xn(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=zn(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof Yn||e instanceof Xn||e instanceof Zn)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},$n=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source==`string`?this.hasBackReferences=Bn.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return Vn.lastIndex=0,this.source.replace(Vn,(e,t)=>an(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`￿`,t[i+1]=`￿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`￿`,t[i+1]=`G`,n[i+1]=`￿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},er=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){return this._cached||=new tr(e,this._items.map(e=>e.source),this._items.map(e=>e.ruleId)),this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new tr(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},tr=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
10
- `)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},nr=class{constructor(e,t){this.languageId=e,this.tokenType=t}},rr=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new nr(e,8),this._embeddedLanguagesMatcher=new ir(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new nr(0,0);_getBasicScopeAttributes=new on(e=>new nr(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},ir=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>an(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var ar=!1,or=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function sr(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=cr(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new or(i,!0);f()}return new or(i,!1);function f(){let o=lr(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===Hn){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),hr(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof Xn){let r=o;hr(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof Zn){let r=o;hr(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(hr(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function cr(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof Zn&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=pr(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==Un){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),hr(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function lr(e,t,n,r,i,a){let o=ur(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=dr(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function ur(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=fr(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function dr(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=fr(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function fr(e,t,n,r,i){return ar?{ruleScanner:e.compile(t,n),findOptions:mr(r,i)}:{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function pr(e,t,n,r,i){return ar?{ruleScanner:e.compileWhile(t,n),findOptions:mr(r,i)}:{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function mr(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function hr(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));sr(e,p,n&&d.start===0,d.start,f,i,!1,0),Tn(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new gr(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var gr=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function _r(e,t,n,r,i,a,o,s){return new xr(e,t,n,r,i,a,o,s)}function vr(e,t,n,r,i){let a=Sn(t,yr),o=Qn.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function yr(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(br(t[r],e))return n=r+1,!0;return!1})}function br(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var xr=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new rr(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=Sr(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=Sn(e,yr);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)vr(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&vr(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(Wn(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[Gn(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=Sr(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Qn.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===wr.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=yn.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?Cr.createRootAndLookUpScopeName(a,r,this):Cr.createRoot(`unknown`,r),t=new wr(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
11
- `;let a=this.createOnigString(e),o=a.content.length,s=new Er(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=sr(this,a,i,0,t,s,!0,r);return Tn(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function Sr(e,t){return e=qt(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Cr=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=cn.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new cn(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new cn(null,t),o=r.themeProvider.themeMatch(a);return new e(null,a,e.mergeAttributes(n,i,o))}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),yn.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a);return new e(t,a,e.mergeAttributes(t.tokenAttributes,i,o))}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},wr=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?Cr.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:Gn(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=Cr.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,Wn(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Cr.fromExtension(r,n.contentNameScopesList))}},Tr=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):Sn(e,yr).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>Sn(e,yr).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Er=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=yn.set(n,0,bn(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=yn.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},Dr=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,_r(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},Or=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Dr(sn.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(sn.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new Tr(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new kn(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},kr=wr.NULL;function Ar(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function E(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function jr(e){return Array.isArray(e)?e:[e]}async function Mr(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function Nr(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function Pr(e){return e===`ansi`||Nr(e)}function Fr(e){return e===`none`}function Ir(e){return Fr(e)}function Lr(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(/\s+/g);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function Rr(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}function zr(e){let t=Rr(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}function Br(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes(`/`)?e.split(`/`).pop():e;n&&r.add(n)}if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}var Vr=`light-dark()`,Hr=[`color`,`background-color`];function Ur(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function Wr(e,t){let n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?Ur(e,t):e})):e}function Gr(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>Kr(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&Hr.includes(a))if(r===Vr&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new w('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');c[a]=`light-dark(${o[e][a]||`inherit`}, ${o[r][a]||`inherit`})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s;else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function Kr(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&T.Italic&&(t[`font-style`]=`italic`),e.fontStyle&T.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&T.Underline&&n.push(`underline`),e.fontStyle&T.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function qr(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}var Jr=new WeakMap;function Yr(e,t){Jr.set(e,t)}function Xr(e){return Jr.get(e)}var Zr=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(jr(n).map(e=>[e,kr])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Qr(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Qr(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function $r(e,t){if(!(e instanceof Zr))throw new w(`Invalid grammar state`);return e.getInternalStack(t)}function ei(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new w(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}else{let t=r.lines[e.line];if(t===void 0)throw new w(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new w(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:r.posToIndex(e.line,n)}}},r=zr(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));ti(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return Wr(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new w(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=ni(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new w(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new w(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&Lr(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>a(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function ti(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new w(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new w(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function ni(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(ni).join(``):``}var ri=[ei()];function ii(e){let t=ai(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...ri]}function ai(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var D=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],oi={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function si(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function ci(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}else if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function li(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:`resetAll`});else if(r<=9)oi[r]&&t.push({type:`setDecoration`,value:oi[r]});else if(r<=29){let e=oi[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:D[r-30]}});else if(r===38){let n=ci(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:D[r-40]}});else if(r===48){let n=ci(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:D[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:D[r-100+8]}})}return t}function ui(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=si(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=li(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var di={black:`#000000`,red:`#bb0000`,green:`#00bb00`,yellow:`#bbbb00`,blue:`#0000bb`,magenta:`#ff00ff`,cyan:`#00bbbb`,white:`#eeeeee`,brightBlack:`#555555`,brightRed:`#ff5555`,brightGreen:`#00ff00`,brightYellow:`#ffff55`,brightBlue:`#5555ff`,brightMagenta:`#ff55ff`,brightCyan:`#55ffff`,brightWhite:`#ffffff`};function fi(e=di){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<D.length;e++)r.push(t(D[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var pi={black:`#000000`,red:`#cd3131`,green:`#0DBC79`,yellow:`#E5E510`,blue:`#2472C8`,magenta:`#BC3FBC`,cyan:`#11A8CD`,white:`#E5E5E5`,brightBlack:`#666666`,brightRed:`#F14C4C`,brightGreen:`#23D18B`,brightYellow:`#F5F543`,brightBlue:`#3B8EEA`,brightMagenta:`#D670D6`,brightCyan:`#29B8DB`,brightWhite:`#FFFFFF`};function mi(e,t,n){let r=Ar(e,n),i=Rr(t),a=fi(Object.fromEntries(D.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||pi[t]]}))),o=ui();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=E(i,r),o=E(o,r),n.decorations.has(`dim`)&&(i=hi(i));let s=T.None;return n.decorations.has(`bold`)&&(s|=T.Bold),n.decorations.has(`italic`)&&(s|=T.Italic),n.decorations.has(`underline`)&&(s|=T.Underline),n.decorations.has(`strikethrough`)&&(s|=T.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function hi(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}else if(e.length===6)return`#${e}80`;else if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}else if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function gi(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n,i=e.resolveLangAlias(n.lang||`text`);if(Nr(i)||Fr(r))return Rr(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:o}=e.setTheme(r);if(i===`ansi`)return mi(a,t,n);let s=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==s.name)throw new w(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(a.name))throw new w(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return vi(t,s,a,o,n)}function _i(...e){if(e.length===2)return Xr(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(Nr(i)||Fr(a))throw new w(`Plain language does not have grammar state`);if(i===`ansi`)throw new w(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new Zr(yi(n,c,o,s,r).stateStack,c.name,o.name)}function vi(e,t,n,r,i){let a=yi(e,t,n,r,i),o=new Zr(a.stateStack,t.name,n.name);return Yr(a.tokens,o),a.tokens}function yi(e,t,n,r,i){let a=Ar(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,c=Rr(e),l=i.grammarState?$r(i.grammarState,n.name)??kr:i.grammarContextCode==null?kr:yi(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,u=[],d=[];for(let e=0,f=c.length;e<f;e++){let[f,p]=c[e];if(f===``){u=[],d.push([]);continue}if(o>0&&f.length>=o){u=[],d.push([{content:f,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;i.includeExplanation&&(m=t.tokenizeLine(f,l,s),h=m.tokens,g=0);let _=t.tokenizeLine2(f,l,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:f.length;if(t===o)continue;let s=_.tokens[2*e+1],c=E(r[yn.getForeground(s)],a),l=yn.getFontStyle(s),d={content:f.substring(t,o),offset:p+t,color:c,fontStyle:l};if(i.includeExplanation){let e=[];if(i.includeExplanation!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(/,/).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=f.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:i.includeExplanation===`scopeName`?bi(t.scopes):xi(e,t.scopes)}),g+=1}}u.push(d)}d.push(u),u=[],l=_.ruleStack}return{tokens:d,stateStack:l}}function bi(e){return e.map(e=>({scopeName:e}))}function xi(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:wi(e,i,t.slice(0,r))}}return n}function Si(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function Ci(e,t,n){if(!Si(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)Si(e[r],n[i])&&--r,--i;return r===-1}function wi(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(Ci(e,t,n)){r.push(a);break}return r}function Ti(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=gi(e,t,{...n,theme:r.theme});return{tokens:i,state:Xr(i),theme:typeof r.theme==`string`?r.theme:r.theme.name}}),a=Ei(...i.map(e=>e.tokens)),o=a[0].map((e,t)=>e.map((e,i)=>{let o={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(o.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:s,offset:c,...l}=e[t][i];o.variants[r[n].color]=l}),o})),s=i[0].state?new Zr(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return s&&Yr(o,s),o}function Ei(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}function Di(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:t.color===l?1:0);if(f.length===0)throw new w("`themes` option must not be empty");let p=Ti(e,t,n);if(c=Xr(p),l&&Vr!==l&&!f.find(e=>e.color===l))throw new w(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>Gr(e,h,u,l,d))),c&&Yr(a,c);let g=f.map(e=>Ar(e.theme,n));i=Oi(f,m,g,u,l,`fg`,d),r=Oi(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=Ar(n.theme,n);a=gi(e,t,n);let l=e.getTheme(n.theme);r=E(l.bg,s),i=E(l.fg,s),o=l.name,c=Xr(a)}else throw new w("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function Oi(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=E(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===Vr&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new w('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${E(t[r][a],n[r])||`inherit`}, ${E(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}function ki(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>ki(e,t,n),codeToTokens:(t,n)=>Di(e,t,n)}){let i=t;for(let e of ii(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=Di(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=ji(a):d===`never`&&(a=Mi(a)),f&&(a=Ni(a));let p={...r,get source(){return i}};for(let e of ii(n))a=e.tokens?.call(p,a)||a;return Ai(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function Ai(e,t,n,r=Xr(e)){let i=ii(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(t.rootStyle==null?l.style=`background-color:${t.bg};color:${t.fg}`:l.style=t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:Lr,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
12
- `}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=qr(a.htmlStyle||Kr(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&Yr(m,r),m}function ji(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&T.Underline||i.fontStyle&T.Strikethrough));o&&i.content.match(/^\s+$/)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function Mi(e){return e.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function Ni(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t[t.length-1],r=qr(e.htmlStyle||Kr(e)),i=qr(n.htmlStyle||Kr(n)),a=e.fontStyle&&(e.fontStyle&T.Underline||e.fontStyle&T.Strikethrough),o=n.fontStyle&&(n.fontStyle&T.Underline||n.fontStyle&T.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var Pi=zt;function Fi(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>ki(e,t,n),codeToTokens:(t,n)=>Di(e,t,n)},i=Pi(ki(e,t,n,r));for(let e of ii(n))i=e.postprocess?.call(r,i,n)||i;return i}var Ii={light:`#333333`,dark:`#bbbbbb`},Li={light:`#fffffe`,dark:`#1e1e1e`},Ri=`__shiki_resolved`;function zi(e){if(e?.[Ri])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?Ii.light:Ii.dark,n||=t.type===`light`?Li.light:Li.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,Ri,{enumerable:!1,writable:!1,value:!0}),t}async function Bi(e){return Array.from(new Set((await Promise.all(e.filter(e=>!Pr(e)).map(async e=>await Mr(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function Vi(e){return(await Promise.all(e.map(async e=>Ir(e)?null:zi(await Mr(e))))).filter(e=>!!e)}var Hi=3,Ui=!1;function Wi(e,t=3){if(Hi&&!(typeof Hi==`number`&&t>Hi)){if(Ui)throw Error(`[SHIKI DEPRECATE]: ${e}`);console.trace(`[SHIKI DEPRECATE]: ${e}`)}}var Gi=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Ki(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Gi(`Circular alias \`${Array.from(n).join(` -> `)} -> ${e}\``);n.add(e)}}return e}var qi=class extends Or{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=zi(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=sn.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Ki(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new Gi(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},Ji=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},Yi=0;function Xi(e){Yi+=1,e.warnings!==!1&&Yi>=10&&Yi%10==0&&console.warn(`[Shiki] ${Yi} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Gi("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(zi),i=new qi(new Ji(e.engine,n),r,n,e.langAlias),a;function o(t){return Ki(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new Gi(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new Gi(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await Bi(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await Vi(e))}function g(){if(t)throw new Gi(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--Yi)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function Zi(e){e.engine||Wi("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([Vi(e.themes||[]),Bi(e.langs||[]),e.engine]);return Xi({...e,themes:t,langs:n,engine:r})}async function Qi(e){let t=await Zi(e);return{getLastGrammarState:(...e)=>_i(t,...e),codeToTokensBase:(e,n)=>gi(t,e,n),codeToTokensWithThemes:(e,n)=>Ti(t,e,n),codeToTokens:(e,n)=>Di(t,e,n),codeToHast:(e,n)=>ki(t,e,n),codeToHtml:(e,n)=>Fi(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function $i(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,Pr(n))return[];let r=t[n];if(!r)throw new w(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(Ir(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new w(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await Qi({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function ea(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}else{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}return n}function ta(e,t){let n=ea(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){return(await r(e,t)).codeToHtml(e,t)},async codeToHast(e,t){return(await r(e,t)).codeToHast(e,t)},async codeToTokens(e,t){return(await r(e,t)).codeToTokens(e,t)},async codeToTokensBase(e,t){return(await r(e,t)).codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){return(await r(e,t)).codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){return(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}}var na=[{id:`abap`,name:`ABAP`,import:(()=>r(()=>import(`./abap-Vg0cj5d8.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,import:(()=>r(()=>import(`./actionscript-3-BV1RXWL1.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>r(()=>import(`./ada-Ce_Xk3Sp.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>r(()=>import(`./angular-html-s8mFfHxJ.js`).then(e=>e.n),[]))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>r(()=>import(`./angular-ts-qPgEQREa.js`),[]))},{id:`apache`,name:`Apache Conf`,import:(()=>r(()=>import(`./apache-BbDgM_LY.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>r(()=>import(`./apex-Z4y334SR.js`),[]))},{id:`apl`,name:`APL`,import:(()=>r(()=>import(`./apl-Bk41I3U1.js`),[]))},{id:`applescript`,name:`AppleScript`,import:(()=>r(()=>import(`./applescript-CLDQZ5Zp.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>r(()=>import(`./ara-DwFb8Z32.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>r(()=>import(`./asciidoc-ByVQW3u3.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>r(()=>import(`./asm-CqqqWovZ.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>r(()=>import(`./astro-ClwGnYhy.js`),[]))},{id:`awk`,name:`AWK`,import:(()=>r(()=>import(`./awk-L5v-cuCL.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>r(()=>import(`./ballerina-Dgg2a6zg.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`],import:(()=>r(()=>import(`./bat-wLloRoua.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>r(()=>import(`./beancount-BCSJrVVf.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>r(()=>import(`./berry-DJXUHylF.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>r(()=>import(`./bibtex-C6hGKKRT.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>r(()=>import(`./bicep-RsAVk7ms.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>r(()=>import(`./bird2-DTRIpKsA.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>r(()=>import(`./blade-D8d2x7Cj.js`),[]))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>r(()=>import(`./bsl-DJJjEj3G.js`),[]))},{id:`c`,name:`C`,import:(()=>r(()=>import(`./c-C7LLcxwo.js`).then(e=>e.n),[]))},{id:`c3`,name:`C3`,import:(()=>r(()=>import(`./c3-DhlmE_oa.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>r(()=>import(`./cadence-gm_AXdjh.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>r(()=>import(`./cairo-D0DvaGhb.js`),[]))},{id:`clarity`,name:`Clarity`,import:(()=>r(()=>import(`./clarity-_nV8rm3T.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>r(()=>import(`./clojure-Dsywsvl2.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>r(()=>import(`./cmake-DoZviRk-.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>r(()=>import(`./cobol-BFmBEDT2.js`),[]))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>r(()=>import(`./codeowners-LcUICwIC.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>r(()=>import(`./codeql-C0tRiarJ.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>r(()=>import(`./coffee-C6xKBntv.js`),[]))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>r(()=>import(`./common-lisp-BQXePP3H.js`),[]))},{id:`coq`,name:`Coq`,import:(()=>r(()=>import(`./coq-DWR2ZlCV.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>r(()=>import(`./cpp-CVDdGIJL.js`).then(e=>e.n),[]))},{id:`crystal`,name:`Crystal`,import:(()=>r(()=>import(`./crystal-C8hrz-Ed.js`),[]))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>r(()=>import(`./csharp-BpO6pU8h.js`),[]))},{id:`css`,name:`CSS`,import:(()=>r(()=>import(`./css-Bq4IaKl1.js`).then(e=>e.n),[]))},{id:`csv`,name:`CSV`,import:(()=>r(()=>import(`./csv-guZ1Hczt.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>r(()=>import(`./cue-DVp9_WvV.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>r(()=>import(`./cypher-3MHH4pYW.js`),[]))},{id:`d`,name:`D`,import:(()=>r(()=>import(`./d-CIAu_RLS.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>r(()=>import(`./dart-DYuQ6kUW.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>r(()=>import(`./dax-BBIUHzFG.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>r(()=>import(`./desktop-i7Pu8H5c.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>r(()=>import(`./diff-BOMu6KnT.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>r(()=>import(`./docker-Jl7Opeg9.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>r(()=>import(`./dotenv-DNMkRfS9.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>r(()=>import(`./dream-maker-XsE3rknm.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>r(()=>import(`./edge-M0lvKmK0.js`),[]))},{id:`elixir`,name:`Elixir`,import:(()=>r(()=>import(`./elixir-Z_A63tjC.js`),[]))},{id:`elm`,name:`Elm`,import:(()=>r(()=>import(`./elm-CSUyuYJg.js`),[]))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>r(()=>import(`./emacs-lisp-DILRoF5l.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>r(()=>import(`./erb-DrEx0jBQ.js`),[]))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>r(()=>import(`./erlang-CJBKhF6J.js`),[]))},{id:`fennel`,name:`Fennel`,import:(()=>r(()=>import(`./fennel-C5HmIS3y.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>r(()=>import(`./fish-BLa94bES.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>r(()=>import(`./fluent-Dz5wDZec.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>r(()=>import(`./fortran-fixed-form-BKSuIOW4.js`),[]))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>r(()=>import(`./fortran-free-form-Dhgntk66.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>r(()=>import(`./fsharp-U9gZ5YOh.js`),[]))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>r(()=>import(`./gdresource-DoBd66sG.js`),[]))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>r(()=>import(`./gdscript-cU6-22QG.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>r(()=>import(`./gdshader-D10o9T_4.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>r(()=>import(`./genie-BxoMb50b.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>r(()=>import(`./gherkin-B2lz9HMr.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>r(()=>import(`./git-commit-Db7dtED7.js`),[]))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>r(()=>import(`./git-rebase-QypkBr98.js`),[]))},{id:`gleam`,name:`Gleam`,import:(()=>r(()=>import(`./gleam-9zwoUsHJ.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>r(()=>import(`./glimmer-js-NOqtI1Rk.js`),[]))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>r(()=>import(`./glimmer-ts-BeU4NlYB.js`),[]))},{id:`glsl`,name:`GLSL`,import:(()=>r(()=>import(`./glsl-BkDxwNg4.js`).then(e=>e.n),[]))},{id:`gn`,name:`GN`,import:(()=>r(()=>import(`./gn-DLF2G5Ru.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>r(()=>import(`./gnuplot-Bcm3DAiA.js`),[]))},{id:`go`,name:`Go`,import:(()=>r(()=>import(`./go-CPlmKKFp.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>r(()=>import(`./graphql-BuqaMepw.js`).then(e=>e.n),[]))},{id:`groovy`,name:`Groovy`,import:(()=>r(()=>import(`./groovy-Dg2VIq5p.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>r(()=>import(`./hack-C01X66u7.js`),[]))},{id:`haml`,name:`Ruby Haml`,import:(()=>r(()=>import(`./haml-6AVURMsW.js`).then(e=>e.n),[]))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>r(()=>import(`./handlebars-CQt0otqg.js`),[]))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>r(()=>import(`./haskell-Cf52ssWB.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>r(()=>import(`./haxe-BiaDi9Ls.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>r(()=>import(`./hcl-Dcb9DqV1.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>r(()=>import(`./hjson-LjA2UJVG.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>r(()=>import(`./hlsl-Bdu4H644.js`),[]))},{id:`html`,name:`HTML`,import:(()=>r(()=>import(`./html-B9GCfMM1.js`).then(e=>e.n),[]))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>r(()=>import(`./html-derivative-Choar9BD.js`),[]))},{id:`http`,name:`HTTP`,import:(()=>r(()=>import(`./http-DvFNkpiH.js`),[]))},{id:`hurl`,name:`Hurl`,import:(()=>r(()=>import(`./hurl-BSVy9O8n.js`),[]))},{id:`hxml`,name:`HXML`,import:(()=>r(()=>import(`./hxml-BcCIYlZp.js`),[]))},{id:`hy`,name:`Hy`,import:(()=>r(()=>import(`./hy-CAzVaHwm.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>r(()=>import(`./imba-CtP12ZBI.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>r(()=>import(`./ini-DyaqLXx3.js`),[]))},{id:`java`,name:`Java`,import:(()=>r(()=>import(`./java-DYU2LKAe.js`).then(e=>e.n),[]))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>r(()=>import(`./javascript-CqMUgcTv.js`).then(e=>e.n),[]))},{id:`jinja`,name:`Jinja`,import:(()=>r(()=>import(`./jinja-DZIBHWGb.js`),[]))},{id:`jison`,name:`Jison`,import:(()=>r(()=>import(`./jison-1dZyCIA-.js`),[]))},{id:`json`,name:`JSON`,import:(()=>r(()=>import(`./json-By08Hh8g.js`).then(e=>e.n),[]))},{id:`json5`,name:`JSON5`,import:(()=>r(()=>import(`./json5-pkfxH3eL.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>r(()=>import(`./jsonc-D_yIvXTo.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>r(()=>import(`./jsonl-Cyj0VVep.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>r(()=>import(`./jsonnet-CQ7ol0Ju.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>r(()=>import(`./jssm-MbQThoOI.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>r(()=>import(`./jsx-D-zBxh5E.js`).then(e=>e.n),[]))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>r(()=>import(`./julia-D4DyCD9m.js`),[]))},{id:`just`,name:`Just`,import:(()=>r(()=>import(`./just-t1DYRM-F.js`),[]))},{id:`kdl`,name:`KDL`,import:(()=>r(()=>import(`./kdl-MlO6iUnG.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>r(()=>import(`./kotlin-Dugiuyzo.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>r(()=>import(`./kusto-6Zx2e4iM.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>r(()=>import(`./latex-WQQP2pth.js`),[]))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>r(()=>import(`./lean-BeI6HXzS.js`),[]))},{id:`less`,name:`Less`,import:(()=>r(()=>import(`./less-CgPeGWAa.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>r(()=>import(`./liquid-D0Ghr7un.js`),[]))},{id:`llvm`,name:`LLVM IR`,import:(()=>r(()=>import(`./llvm-Dw0AsrHc.js`),[]))},{id:`log`,name:`Log file`,import:(()=>r(()=>import(`./log-9mP7MLA7.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>r(()=>import(`./logo-CEB74EGf.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>r(()=>import(`./lua-r3xGOG0a.js`).then(e=>e.n),[]))},{id:`luau`,name:`Luau`,import:(()=>r(()=>import(`./luau-C4m3ZsP4.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>r(()=>import(`./make-D05QTRNX.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>r(()=>import(`./markdown-UoFBNZst.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>r(()=>import(`./marko-wk9TVjCS.js`),[]))},{id:`matlab`,name:`MATLAB`,import:(()=>r(()=>import(`./matlab-B1JUCa3X.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>r(()=>import(`./mdc-BRMVGNjb.js`),[]))},{id:`mdx`,name:`MDX`,import:(()=>r(()=>import(`./mdx-5iivKtUB.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>r(()=>import(`./mermaid-e-18nCBH.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>r(()=>import(`./mipsasm-DcTRWKSO.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>r(()=>import(`./mojo-DTlMyvmX.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>r(()=>import(`./moonbit-Clq4Da-i.js`),[]))},{id:`move`,name:`Move`,import:(()=>r(()=>import(`./move-Bl5q_pwm.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>r(()=>import(`./narrat-CBsmOEAI.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>r(()=>import(`./nextflow-D0nv53RF.js`),[]))},{id:`nextflow-groovy`,name:`nextflow-groovy`,import:(()=>r(()=>import(`./nextflow-groovy-aMR1iPI_.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>r(()=>import(`./nginx-D968CCNX.js`),[]))},{id:`nim`,name:`Nim`,import:(()=>r(()=>import(`./nim-CRCwl258.js`),[]))},{id:`nix`,name:`Nix`,import:(()=>r(()=>import(`./nix-Cp796_WQ.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>r(()=>import(`./nushell-BfyhU0X_.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>r(()=>import(`./objective-c-B4uJcreS.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>r(()=>import(`./objective-cpp-jpQjhWST.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>r(()=>import(`./ocaml-Bd4ZvQW_.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>r(()=>import(`./odin-CrrB9RSu.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>r(()=>import(`./openscad-D3TTqx3L.js`),[]))},{id:`pascal`,name:`Pascal`,import:(()=>r(()=>import(`./pascal-DWfvzseC.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>r(()=>import(`./perl-29yJp9Uu.js`),[]))},{id:`php`,name:`PHP`,import:(()=>r(()=>import(`./php-Cemz192H.js`),[]))},{id:`pkl`,name:`Pkl`,import:(()=>r(()=>import(`./pkl-DdTB5XmH.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>r(()=>import(`./plsql-BqXKIIPU.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>r(()=>import(`./po-C5lHU9KQ.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>r(()=>import(`./polar-C6NB-8j6.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>r(()=>import(`./postcss-vtVbFW0L.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>r(()=>import(`./powerquery-hquWt5c6.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`],import:(()=>r(()=>import(`./powershell-CQ330hRP.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>r(()=>import(`./prisma-BQON8_gf.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>r(()=>import(`./prolog-0b9P4dbF.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>r(()=>import(`./proto-CLvr77Vf.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>r(()=>import(`./pug-B2ZE7aeX.js`),[]))},{id:`puppet`,name:`Puppet`,import:(()=>r(()=>import(`./puppet-BT0t2Kuu.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>r(()=>import(`./purescript-DkMvIExr.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>r(()=>import(`./python-wd06zWQV.js`),[]))},{id:`qml`,name:`QML`,import:(()=>r(()=>import(`./qml-jG3DrKD9.js`),[]))},{id:`qmldir`,name:`QML Directory`,import:(()=>r(()=>import(`./qmldir-llhyId5r.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>r(()=>import(`./qss-CVMsEoHp.js`),[]))},{id:`r`,name:`R`,import:(()=>r(()=>import(`./r-D3sEfBW5.js`).then(e=>e.n),[]))},{id:`racket`,name:`Racket`,import:(()=>r(()=>import(`./racket-DBMp3jda.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>r(()=>import(`./raku-BRxsLZ2S.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>r(()=>import(`./razor-Beauj9_g.js`),[]))},{id:`reg`,name:`Windows Registry Script`,import:(()=>r(()=>import(`./reg-BDyfNUUq.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>r(()=>import(`./regexp-DJB-0KGI.js`).then(e=>e.n),[]))},{id:`rel`,name:`Rel`,import:(()=>r(()=>import(`./rel-DdGqSVEp.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>r(()=>import(`./riscv-DV28q7Fg.js`),[]))},{id:`ron`,name:`RON`,import:(()=>r(()=>import(`./ron-CY4nyhYH.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>r(()=>import(`./rosmsg-K2kzuYs8.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>r(()=>import(`./rst-D9Thij-7.js`),[]))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>r(()=>import(`./ruby-BriTZmlZ.js`),[]))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>r(()=>import(`./rust-DZfNSAHN.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>r(()=>import(`./sas-Cp_miaeX.js`),[]))},{id:`sass`,name:`Sass`,import:(()=>r(()=>import(`./sass-DIGpNETF.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>r(()=>import(`./scala-Dm4xFcTl.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>r(()=>import(`./scheme-Dyo1jQfP.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>r(()=>import(`./scss-DpivEdne.js`).then(e=>e.n),[]))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>r(()=>import(`./sdbl-C0HF5Szh.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>r(()=>import(`./shaderlab-DJPIU-BM.js`),[]))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>r(()=>import(`./shellscript-CM8oTE2e.js`).then(e=>e.n),[]))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>r(()=>import(`./shellsession-Cbvx0Scr.js`),[]))},{id:`smalltalk`,name:`Smalltalk`,import:(()=>r(()=>import(`./smalltalk-DD30vTCS.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>r(()=>import(`./solidity-DEXV1iYf.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>r(()=>import(`./soy-4R-idkhG.js`),[]))},{id:`sparql`,name:`SPARQL`,import:(()=>r(()=>import(`./sparql-Zqzk9CwD.js`),[]))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>r(()=>import(`./splunk-D3yrvsJB.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>r(()=>import(`./sql-sKjBShS8.js`).then(e=>e.n),[]))},{id:`ssh-config`,name:`SSH Config`,import:(()=>r(()=>import(`./ssh-config-DJbT8CNv.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>r(()=>import(`./stata-DLIq7jHS.js`),[]))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>r(()=>import(`./stylus-D7yuZo8M.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>r(()=>import(`./surrealql-CRX8IwBN.js`),[]))},{id:`svelte`,name:`Svelte`,import:(()=>r(()=>import(`./svelte-Dvrysi6X.js`),[]))},{id:`swift`,name:`Swift`,import:(()=>r(()=>import(`./swift-Dcka7tnA.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>r(()=>import(`./system-verilog-0hmR2xuR.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>r(()=>import(`./systemd-JaNPzh8j.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>r(()=>import(`./talonscript-BPHMb4jr.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>r(()=>import(`./tasl-D07ubp53.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>r(()=>import(`./tcl-DRL4sBMb.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>r(()=>import(`./templ-RcP_-Nu-.js`),[]))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>r(()=>import(`./terraform-C8KioG9C.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>r(()=>import(`./tex-B8a5_DIi.js`),[]))},{id:`toml`,name:`TOML`,import:(()=>r(()=>import(`./toml-DOSf8MYV.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>r(()=>import(`./ts-tags-BG0VzqyM.js`),[]))},{id:`tsv`,name:`TSV`,import:(()=>r(()=>import(`./tsv-BpjyUJlf.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>r(()=>import(`./tsx-D4f8_1wY.js`).then(e=>e.n),[]))},{id:`turtle`,name:`Turtle`,import:(()=>r(()=>import(`./turtle-x_g5g_iY.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>r(()=>import(`./twig-DxlRBqRW.js`),[]))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>r(()=>import(`./typescript-C32OH5Jk.js`).then(e=>e.n),[]))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>r(()=>import(`./typespec-Dfd73-vI.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>r(()=>import(`./typst-Dlb0aZU4.js`),[]))},{id:`v`,name:`V`,import:(()=>r(()=>import(`./v-v-fvjFiX.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>r(()=>import(`./vala-D9-xQ00Z.js`),[]))},{id:`vb`,name:`Visual Basic`,aliases:[`cmd`],import:(()=>r(()=>import(`./vb-BReSiWNQ.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>r(()=>import(`./verilog-DfyNqRJD.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>r(()=>import(`./vhdl-DbQyuq9g.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>r(()=>import(`./viml-DhThL36t.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>r(()=>import(`./vue-5RtgVZcg.js`),[]))},{id:`vue-html`,name:`Vue HTML`,import:(()=>r(()=>import(`./vue-html-Dd-LXYnz.js`),[]))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>r(()=>import(`./vue-vine-BKz6iXyu.js`),[]))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>r(()=>import(`./vyper-e4AwrcSk.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>r(()=>import(`./wasm-B1MrEdvT.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>r(()=>import(`./wenyan-CrxLlNlW.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>r(()=>import(`./wgsl-BpsXvExJ.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>r(()=>import(`./wikitext-C6XIgJ_Z.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>r(()=>import(`./wit-DkjXKZxQ.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>r(()=>import(`./wolfram--3zV4S15.js`),[]))},{id:`xml`,name:`XML`,import:(()=>r(()=>import(`./xml-DXQJVDNT.js`).then(e=>e.n),[]))},{id:`xsl`,name:`XSL`,import:(()=>r(()=>import(`./xsl-ByvM9IQh.js`),[]))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>r(()=>import(`./yaml-CCq_gfp4.js`).then(e=>e.n),[]))},{id:`zenscript`,name:`ZenScript`,import:(()=>r(()=>import(`./zenscript-BLGtygmo.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>r(()=>import(`./zig-CaWWBKRf.js`),[]))}],ra=Object.fromEntries(na.map(e=>[e.id,e.import])),ia=Object.fromEntries(na.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),aa={...ra,...ia},oa=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>r(()=>import(`./andromeeda-DJewj201.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>r(()=>import(`./aurora-x-B9BHU0bK.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>r(()=>import(`./ayu-dark-YQNfFJx2.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>r(()=>import(`./ayu-light-_9Blof0L.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>r(()=>import(`./ayu-mirage-ywKZgCHT.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>r(()=>import(`./catppuccin-frappe-CRaK-OXp.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>r(()=>import(`./catppuccin-latte-CekmIWzD.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>r(()=>import(`./catppuccin-macchiato-Pgs1_ylq.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>r(()=>import(`./catppuccin-mocha-CVFrnEg2.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>r(()=>import(`./dark-plus-D6YuWbv0.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>r(()=>import(`./dracula-BRuhgxZx.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>r(()=>import(`./dracula-soft-Bh-3NXEk.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>r(()=>import(`./everforest-dark-TN28LCtO.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>r(()=>import(`./everforest-light-Bie4zQAp.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>r(()=>import(`./github-dark-D5NDXfHf.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>r(()=>import(`./github-dark-default-Bo_3g1lT.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>r(()=>import(`./github-dark-dimmed-BQUS-1Ln.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>r(()=>import(`./github-dark-high-contrast-DIHLvRoS.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>r(()=>import(`./github-light-Bw4sXpzB.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>r(()=>import(`./github-light-default-B8bmeZPd.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>r(()=>import(`./github-light-high-contrast-CJI8nAIV.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>r(()=>import(`./gruvbox-dark-hard-BzHG1YMb.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>r(()=>import(`./gruvbox-dark-medium-C9UQOvAR.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>r(()=>import(`./gruvbox-dark-soft-xgYmK4Rn.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>r(()=>import(`./gruvbox-light-hard-DxvMP-zF.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>r(()=>import(`./gruvbox-light-medium-SxCJk4ze.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>r(()=>import(`./gruvbox-light-soft-B9XTNyng.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>r(()=>import(`./horizon-DfLB6K3K.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`dark`,import:(()=>r(()=>import(`./horizon-bright-BRcOD00n.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>r(()=>import(`./houston-pGeyqiDN.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>r(()=>import(`./kanagawa-dragon-WzYJN5gB.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>r(()=>import(`./kanagawa-lotus-rRmvCTTT.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>r(()=>import(`./kanagawa-wave-DLXZ_HFW.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>r(()=>import(`./laserwave-Bms40fEM.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>r(()=>import(`./light-plus-j7rlQ_-d.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>r(()=>import(`./material-theme-BLisqalJ.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>r(()=>import(`./material-theme-darker-CMDfuiQ2.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>r(()=>import(`./material-theme-lighter-CxAafT95.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>r(()=>import(`./material-theme-ocean-B4-TfnzS.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>r(()=>import(`./material-theme-palenight-BiO5TPm2.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>r(()=>import(`./min-dark-CwF0fYNT.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>r(()=>import(`./min-light-DbuMCP1T.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>r(()=>import(`./monokai-ShOh_SLr.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>r(()=>import(`./night-owl-yTEb_Wwb.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>r(()=>import(`./night-owl-light-huKGrUNo.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>r(()=>import(`./nord-DcX-wPJc.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>r(()=>import(`./one-dark-pro-CkQTfcfR.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>r(()=>import(`./one-light-DThLWCfa.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>r(()=>import(`./plastic-B7VrxlmD.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>r(()=>import(`./poimandres-3PFzcj5x.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>r(()=>import(`./red-qaVQBZPK.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>r(()=>import(`./rose-pine-CxNAz5gp.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>r(()=>import(`./rose-pine-dawn-xFu_N-rV.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>r(()=>import(`./rose-pine-moon-DK-HvE6Y.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>r(()=>import(`./slack-dark-jzjOs3ob.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>r(()=>import(`./slack-ochin-CrJIbU0m.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>r(()=>import(`./snazzy-light-DWAW_zRS.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>r(()=>import(`./solarized-dark-QfOoX52e.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>r(()=>import(`./solarized-light-3Q8bP0PY.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>r(()=>import(`./synthwave-84-Cp0uE3e0.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>r(()=>import(`./tokyo-night-sVj4Hc0t.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>r(()=>import(`./vesper-Bv60RWju.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>r(()=>import(`./vitesse-black-CThrVPkw.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>r(()=>import(`./vitesse-dark-BrahNcrX.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>r(()=>import(`./vitesse-light-BCKYomrh.js`),[]))}].map(e=>[e.id,e.import])),sa=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function ca(){return 2147483648}function la(){return typeof performance<`u`?performance.now():Date.now()}var ua=(e,t)=>e+(t-e%t)%t;async function da(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=ca();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,ua(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:la,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var fa=Object.defineProperty,pa=(e,t,n)=>t in e?fa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O=(e,t,n)=>pa(e,typeof t==`symbol`?t:t+``,n),k=null;function ma(e){throw new sa(e.UTF8ToString(e.getLastOnigError()))}var ha=class e{constructor(t){O(this,`utf16Length`),O(this,`utf8Length`),O(this,`utf16Value`),O(this,`utf8Value`),O(this,`utf16OffsetToUtf8`),O(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},ga=class e{constructor(t){if(O(this,`id`,++e.LAST_ID),O(this,`_onigBinding`),O(this,`content`),O(this,`utf16Length`),O(this,`utf8Length`),O(this,`utf16OffsetToUtf8`),O(this,`utf8OffsetToUtf16`),O(this,`ptr`),!k)throw new sa(`Must invoke loadWasm first.`);this._onigBinding=k,this.content=t;let n=new ha(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=k.omalloc(1e4),e._sharedPtrInUse=!0,k.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(k)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};O(ga,`LAST_ID`,0),O(ga,`_sharedPtr`,0),O(ga,`_sharedPtrInUse`,!1);var _a=ga,va=class{constructor(e){if(O(this,`_onigBinding`),O(this,`_ptr`),!k)throw new sa(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new ha(e[r]);t[r]=i.createString(k),n[r]=i.utf8Length}let r=k.omalloc(4*e.length);k.HEAPU32.set(t,r/4);let i=k.omalloc(4*e.length);k.HEAPU32.set(n,i/4);let a=k.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)k.ofree(t[n]);k.ofree(i),k.ofree(r),a===0&&ma(k),this._onigBinding=k,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new _a(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function ya(e){return typeof e.instantiator==`function`}function ba(e){return typeof e.default==`function`}function xa(e){return e.data!==void 0}function Sa(e){return typeof Response<`u`&&e instanceof Response}function Ca(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var wa;function Ta(e){if(wa)return wa;async function t(){k=await da(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),ya(n)?n=await n.instantiator(t):ba(n)?n=await n.default(t):(xa(n)&&(n=n.data),Sa(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await Da(n)(t):await Oa(n)(t):Ca(n)||n instanceof WebAssembly.Module?n=await Ea(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await Ea(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return wa=t(),wa}function Ea(e){return t=>WebAssembly.instantiate(e,t)}function Da(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Oa(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function ka(e){return e&&await Ta(e),{createScanner(e){return new va(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new _a(e)}}}var Aa=$i({langs:aa,themes:oa,engine:()=>ka(r(()=>import(`./wasm-Cia-w-S9.js`),[]))}),{codeToHtml:ja,codeToHast:Ma,codeToTokens:Na,codeToTokensBase:Pa,codeToTokensWithThemes:Fa,getSingletonHighlighter:Ia,getLastGrammarState:La}=ta(Aa,{guessEmbeddedLanguages:Br});function Ra(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function za(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var Ba=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),A=String.raw;function Va(e,t){if(e==null)throw Error(t??`Value expected`);return e}var Ha=A`\[\^?`,Ua=`c.? | C(?:-.?)?|${A`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${A`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${A`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${A`o\{[^\}]*\}?`}|${A`\d{1,3}`}`,Wa=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Ga=new RegExp(A`
13
- \\ (?:
14
- ${Ua}
15
- | [gk]<[^>]*>?
16
- | [gk]'[^']*'?
17
- | .
18
- )
19
- | \( (?:
20
- \? (?:
21
- [:=!>({]
22
- | <[=!]
23
- | <[^>]*>
24
- | '[^']*'
25
- | ~\|?
26
- | #(?:[^)\\]|\\.?)*
27
- | [^:)]*[:)]
28
- )?
29
- | \*[^\)]*\)?
30
- )?
31
- | (?:${Wa.source})+
32
- | ${Ha}
33
- | .
34
- `.replace(/\s+/g,``),`gsu`),Ka=new RegExp(A`
35
- \\ (?:
36
- ${Ua}
37
- | .
38
- )
39
- | \[:(?:\^?\p{Alpha}+|\^):\]
40
- | ${Ha}
41
- | &&
42
- | .
43
- `.replace(/\s+/g,``),`gsu`);function qa(e,t={}){let n={flags:``,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!=`string`)throw Error(`String expected as pattern`);let r=So(n.flags),i=[r.extended],a={captureGroup:n.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(e){i.push(e)},replaceCurrentModX(e){i[i.length-1]=e},singleline:n.rules.singleline},o=[],s;for(Ga.lastIndex=0;s=Ga.exec(e);){let t=Ja(a,e,s[0],Ga.lastIndex);t.tokens?o.push(...t.tokens):t.token&&o.push(t.token),t.lastIndex!==void 0&&(Ga.lastIndex=t.lastIndex)}let c=[],l=0;o.filter(e=>e.type===`GroupOpen`).forEach(e=>{e.kind===`capturing`?e.number=++l:e.raw===`(`&&c.push(e)}),l||c.forEach((e,t)=>{e.kind=`capturing`,e.number=t+1});let u=l||c.length;return{tokens:o.map(e=>e.type===`EscapedNumber`?wo(e,u):e).flat(),flags:r}}function Ja(e,t,n,r){let[i,a]=n;if(n===`[`||n===`[^`){let e=Ya(t,n,r);return{tokens:e.tokens,lastIndex:e.lastIndex}}if(i===`\\`){if(`AbBGyYzZ`.includes(a))return{token:$a(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:fo(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:eo(n)}}if(a===`K`)return{token:ao(`keep`,n)};if(a===`N`||a===`R`)return{token:M(`newline`,n,{negate:a===`N`})};if(a===`O`)return{token:M(`any`,n)};if(a===`X`)return{token:M(`text_segment`,n)};let e=Za(n,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if(i===`(`){if(a===`*`)return{token:_o(n)};if(n===`(?{`)throw Error(`Unsupported callout "${n}"`);if(n.startsWith(`(?#`)){if(t[r]!==`)`)throw Error(`Unclosed comment group "(?#"`);return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:go(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n===`(`&&!e.captureGroup||n===`(?:`)return{token:co(`group`,n)};if(n===`(?>`)return{token:co(`atomic`,n)};if(n===`(?=`||n===`(?!`||n===`(?<=`||n===`(?<!`)return{token:co(n[2]===`<`?`lookbehind`:`lookahead`,n,{negate:n.endsWith(`!`)})};if(n===`(`&&e.captureGroup||n.startsWith(`(?<`)&&n.endsWith(`>`)||n.startsWith(`(?'`)&&n.endsWith(`'`))return{token:co(`capturing`,n,{...n!==`(`&&{name:n.slice(3,-1)}})};if(n.startsWith(`(?~`)){if(n===`(?~|`)throw Error(`Unsupported absence function kind "${n}"`);return{token:co(`absence_repeater`,n)}}throw n===`(?(`?Error(`Unsupported conditional "${n}"`):Error(`Invalid or unsupported group option "${n}"`)}if(n===`)`){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error(`Unmatched ")"`);return{token:so(n)}}if(e.getCurrentModX()){if(n===`#`){let e=t.indexOf(`
44
- `,r);return{lastIndex:e===-1?t.length:e}}if(/^\s$/.test(n)){let e=/\s+/y;return e.lastIndex=r,{lastIndex:e.exec(t)?e.lastIndex:r}}}return n===`.`?{token:M(`dot`,n)}:n===`^`||n===`$`?{token:$a(e.singleline?{"^":A`\A`,$:A`\Z`}[n]:n,n)}:n===`|`?{token:Qa(n)}:Wa.test(n)?{tokens:To(n)}:{token:j(Ra(n),n)}}function Ya(e,t,n){let r=[io(t[1]===`^`,t)],i=1,a;for(Ka.lastIndex=n;a=Ka.exec(e);){let e=a[0];if(e[0]===`[`&&e[1]!==`:`)i++,r.push(io(e[1]===`^`,e));else if(e===`]`){if(r.at(-1).type===`CharacterClassOpen`)r.push(j(93,e));else if(i--,r.push(to(e)),!i)break}else{let t=Xa(e);Array.isArray(t)?r.push(...t):r.push(t)}}return{tokens:r,lastIndex:Ka.lastIndex||e.length}}function Xa(e){if(e[0]===`\\`)return Za(e,{inCharClass:!0});if(e[0]===`[`){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!Ba.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return M(`posix`,e,{value:t.groups.name,negate:!!t.groups.negate})}return e===`-`?no(e):e===`&&`?ro(e):j(Ra(e),e)}function Za(e,{inCharClass:t}){let n=e[1];if(n===`c`||n===`C`)return ho(e);if(`dDhHsSwW`.includes(n))return yo(e);if(e.startsWith(A`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw Error(`Incomplete or invalid Unicode property "${e}"`);return bo(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),n=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),r=new TextEncoder;return[...n].map(e=>{let t=[...r.encode(e)].map(e=>`\\x${e.toString(16)}`).join(``);return j(Ra(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n===`u`||n===`x`)return j(Co(e),e);if(mo.has(n))return j(mo.get(n),e);if(/\d/.test(n))return oo(t,e);if(e===`\\`)throw Error(A`Incomplete escape "\"`);if(n===`M`)throw Error(`Unsupported meta "${e}"`);if([...e].length===2)return j(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function Qa(e){return{type:`Alternator`,raw:e}}function $a(e,t){return{type:`Assertion`,kind:e,raw:t}}function eo(e){return{type:`Backreference`,raw:e}}function j(e,t){return{type:`Character`,value:e,raw:t}}function to(e){return{type:`CharacterClassClose`,raw:e}}function no(e){return{type:`CharacterClassHyphen`,raw:e}}function ro(e){return{type:`CharacterClassIntersector`,raw:e}}function io(e,t){return{type:`CharacterClassOpen`,negate:e,raw:t}}function M(e,t,n={}){return{type:`CharacterSet`,kind:e,...n,raw:t}}function ao(e,t,n={}){return e===`keep`?{type:`Directive`,kind:e,raw:t}:{type:`Directive`,kind:e,flags:Va(n.flags),raw:t}}function oo(e,t){return{type:`EscapedNumber`,inCharClass:e,raw:t}}function so(e){return{type:`GroupClose`,raw:e}}function co(e,t,n={}){return{type:`GroupOpen`,kind:e,...n,raw:t}}function lo(e,t,n,r){return{type:`NamedCallout`,kind:e,tag:t,arguments:n,raw:r}}function uo(e,t,n,r){return{type:`Quantifier`,kind:e,min:t,max:n,raw:r}}function fo(e){return{type:`Subroutine`,raw:e}}var po=new Set([`COUNT`,`CMP`,`ERROR`,`FAIL`,`MAX`,`MISMATCH`,`SKIP`,`TOTAL_COUNT`]),mo=new Map([[`a`,7],[`b`,8],[`e`,27],[`f`,12],[`n`,10],[`r`,13],[`t`,9],[`v`,11]]);function ho(e){let t=e[1]===`c`?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${e}"`);return j(Ra(t.toUpperCase())-64,e)}function go(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??=``;let i=(t.getCurrentModX()||n.includes(`x`))&&!r.includes(`x`),a=xo(n),o=xo(r),s={};if(a&&(s.enable=a),o&&(s.disable=o),e.endsWith(`)`))return t.replaceCurrentModX(i),ao(`flags`,e,{flags:s});if(e.endsWith(`:`))return t.pushModX(i),t.numOpenGroups++,co(`group`,e,{...(a||o)&&{flags:s}});throw Error(`Unexpected flag modifier "${e}"`)}function _o(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:n,tag:r,args:i}=t.groups;if(!n)throw Error(`Invalid named callout "${e}"`);if(r===``)throw Error(`Named callout tag with empty value not allowed "${e}"`);let a=i?i.split(`,`).filter(e=>e!==``).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[o,s,c]=a,l=po.has(n)?n.toLowerCase():`custom`;switch(l){case`fail`:case`mismatch`:case`skip`:if(a.length>0)throw Error(`Named callout arguments not allowed "${a}"`);break;case`error`:if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(typeof o==`string`)throw Error(`Named callout argument must be a number "${o}"`);break;case`max`:if(!a.length||a.length>2)throw Error(`Named callout must have one or two arguments "${a}"`);if(typeof o==`string`&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(a.length===2&&(typeof s==`number`||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case`count`:case`total_count`:if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(a.length===1&&(typeof o==`number`||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);break;case`cmp`:if(a.length!==3)throw Error(`Named callout must have three arguments "${a}"`);if(typeof o==`string`&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(typeof s==`number`||!/^(?:[<>!=]=|[<>])$/.test(s))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof c==`string`&&!/^[A-Za-z_]\w*$/.test(c))throw Error(`Named callout argument three must be a tag or number "${c}"`);break;case`custom`:throw Error(`Undefined callout name "${n}"`);default:throw Error(`Unexpected named callout kind "${l}"`)}return lo(l,r??null,i?.split(`,`)??null,e)}function vo(e){let t=null,n,r;if(e[0]===`{`){let{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,o=1e5;if(+i>o||a&&+a>o)throw Error(`Quantifier value unsupported in Oniguruma`);if(n=+i,r=a===void 0?+i:a===``?1/0:+a,n>r&&(t=`possessive`,[n,r]=[r,n]),e.endsWith(`?`)){if(t===`possessive`)throw Error(`Unsupported possessive interval quantifier chain with "?"`);t=`lazy`}else t||=`greedy`}else n=e[0]===`+`?1:0,r=e[0]===`?`?1:1/0,t=e[1]===`+`?`possessive`:e[1]===`?`?`lazy`:`greedy`;return uo(t,n,r,e)}function yo(e){let t=e[1].toLowerCase();return M({d:`digit`,h:`hex`,s:`space`,w:`word`}[t],e,{negate:e[1]!==t})}function bo(e){let{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return M(`property`,e,{value:r,negate:t===`P`&&!n||t===`p`&&!!n})}function xo(e){let t={};return e.includes(`i`)&&(t.ignoreCase=!0),e.includes(`m`)&&(t.dotAll=!0),e.includes(`x`)&&(t.extended=!0),Object.keys(t).length?t:null}function So(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){let r=e[n];if(!`imxDPSWy`.includes(r))throw Error(`Invalid flag "${r}"`);if(r===`y`){if(!/^y{[gw]}/.test(e.slice(n)))throw Error(`Invalid or unspecified flag "y" mode`);t.textSegmentMode=e[n+2]===`g`?`grapheme`:`word`,n+=3;continue}t[{i:`ignoreCase`,m:`dotAll`,x:`extended`,D:`digitIsAscii`,P:`posixIsAscii`,S:`spaceIsAscii`,W:`wordIsAscii`}[r]]=!0}return t}function Co(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);let t=e[2]===`{`?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function wo(e,t){let{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&(i!==`0`&&i.length===1||i[0]!==`0`&&+i<=t))return[eo(n)];let a=[],o=i.match(/^[0-7]+|\d/g);for(let e=0;e<o.length;e++){let t=o[e],r;if(e===0&&t!==`8`&&t!==`9`){if(r=parseInt(t,8),r>127)throw Error(A`Octal encoded byte above 177 unsupported "${n}"`)}else r=Ra(t);a.push(j(r,(e===0?`\\`:``)+t))}return a}function To(e){let t=[],n=new RegExp(Wa,`gy`),r;for(;r=n.exec(e);){let e=r[0];if(e[0]===`{`){let r=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(r){let{min:i,max:a}=r.groups;if(+i>+a&&e.endsWith(`?`)){n.lastIndex--,t.push(vo(e.slice(0,-1)));continue}}}t.push(vo(e))}return t}function Eo(e,t){if(!Array.isArray(e.body))throw Error(`Expected node with body array`);if(e.body.length!==1)return!1;let n=e.body[0];return!t||Object.keys(t).every(e=>t[e]===n[e])}function Do(e){return Oo.has(e.type)}var Oo=new Set([`AbsenceFunction`,`Backreference`,`CapturingGroup`,`Character`,`CharacterClass`,`CharacterSet`,`Group`,`Quantifier`,`Subroutine`]);function ko(e,t={}){let n={flags:``,normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=qa(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(e,t)=>{let n=r.tokens[a.nextIndex];switch(a.parent=e,a.nextIndex++,n.type){case`Alternator`:return N();case`Assertion`:return Ao(n);case`Backreference`:return jo(n,a);case`Character`:return Ho(n.value,{useLastValid:!!t.isCheckingRangeEnd});case`CharacterClassHyphen`:return Mo(n,a,t);case`CharacterClassOpen`:return No(n,a,t);case`CharacterSet`:return Po(n,a);case`Directive`:return Ko(n.kind,{flags:n.flags});case`GroupOpen`:return Fo(n,a,t);case`NamedCallout`:return Jo(n.kind,n.tag,n.arguments);case`Quantifier`:return Io(n,a);case`Subroutine`:return Lo(n,a);default:throw Error(`Unexpected token type "${n.type}"`)}},a={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:i},o=Zo(qo(r.flags)),s=o.body[0];for(;a.nextIndex<r.tokens.length;){let e=i(s,{});e.type===`Alternative`?(o.body.push(e),s=e):s.body.push(e)}let{capturingGroups:c,hasNumberedRef:l,namedGroupsByName:u,subroutines:d}=a;if(l&&u.size&&!n.rules.captureGroup)throw Error(`Numbered backref/subroutine not allowed when using named capture`);for(let{ref:e}of d)if(typeof e==`number`){if(e>c.length)throw Error(`Subroutine uses a group number that's not defined`);e&&(c[e-1].isSubroutined=!0)}else if(u.has(e)){if(u.get(e).length>1)throw Error(A`Subroutine uses a duplicate group name "\g<${e}>"`);u.get(e)[0].isSubroutined=!0}else throw Error(A`Subroutine uses a group name that's not defined "\g<${e}>"`);return o}function Ao({kind:e}){return zo(Va({"^":`line_start`,$:`line_end`,"\\A":`string_start`,"\\b":`word_boundary`,"\\B":`word_boundary`,"\\G":`search_start`,"\\y":`text_segment_boundary`,"\\Y":`text_segment_boundary`,"\\z":`string_end`,"\\Z":`string_end_newline`}[e],`Unexpected assertion kind "${e}"`),{negate:e===A`\B`||e===A`\Y`})}function jo({raw:e},t){let n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(n,r=!1)=>{let i=t.capturingGroups.length,a=!1;if(n>i)if(t.skipBackrefValidation)a=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Bo(r?i+1-n:n,{orphan:a})};if(n){let n=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(n)return i(+n.groups.num,!!n.groups.sign);if(/[-+]/.test(r))throw Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw Error(`Group name not defined to the left "${e}"`);return Bo(r)}return i(+r)}function Mo(e,t,n){let{tokens:r,walk:i}=t,a=t.parent,o=a.body.at(-1),s=r[t.nextIndex];if(!n.isCheckingRangeEnd&&o&&o.type!==`CharacterClass`&&o.type!==`CharacterClassRange`&&s&&s.type!==`CharacterClassOpen`&&s.type!==`CharacterClassClose`&&s.type!==`CharacterClassIntersector`){let e=i(a,{...n,isCheckingRangeEnd:!0});if(o.type===`Character`&&e.type===`Character`)return a.body.pop(),Wo(o,e);throw Error(`Invalid character class range`)}return Ho(Ra(`-`))}function No({negate:e},t,n){let{tokens:r,walk:i}=t,a=r[t.nextIndex],o=[Uo()],s=cs(a);for(;s.type!==`CharacterClassClose`;){if(s.type===`CharacterClassIntersector`)o.push(Uo()),t.nextIndex++;else{let e=o.at(-1);e.body.push(i(e,n))}s=cs(r[t.nextIndex],a)}let c=Uo({negate:e});return o.length===1?c.body=o[0].body:(c.kind=`intersection`,c.body=o.map(e=>e.body.length===1?e.body[0]:e)),t.nextIndex++,c}function Po({kind:e,negate:t,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o}=r;if(e===`property`){let r=ss(n);if(Ba.has(r)&&!o?.has(r))e=`posix`,n=r;else return $o(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o})}return e===`posix`?Yo(n,{negate:t}):Go(e,{negate:t})}function Fo(e,t,n){let{tokens:r,capturingGroups:i,namedGroupsByName:a,skipLookbehindValidation:o,walk:s}=t,c=es(e),l=c.type===`AbsenceFunction`,u=is(c),d=u&&c.negate;if(c.type===`CapturingGroup`&&(i.push(c),c.name&&za(a,c.name,[]).push(c)),l&&n.isInAbsenceFunction)throw Error(`Nested absence function not supported by Oniguruma`);let f=ls(r[t.nextIndex]);for(;f.type!==`GroupClose`;){if(f.type===`Alternator`)c.body.push(N()),t.nextIndex++;else{let e=c.body.at(-1),t=s(e,{...n,isInAbsenceFunction:n.isInAbsenceFunction||l,isInLookbehind:n.isInLookbehind||u,isInNegLookbehind:n.isInNegLookbehind||d});if(e.body.push(t),(u||n.isInLookbehind)&&!o){let e=`Lookbehind includes a pattern not allowed by Oniguruma`;if(d||n.isInNegLookbehind){if(rs(t)||t.type===`CapturingGroup`)throw Error(e)}else if(rs(t)||is(t)&&t.negate)throw Error(e)}}f=ls(r[t.nextIndex])}return t.nextIndex++,c}function Io({kind:e,min:t,max:n},r){let i=r.parent,a=i.body.at(-1);if(!a||!Do(a))throw Error(`Quantifier requires a repeatable token`);let o=Xo(e,t,n,a);return i.body.pop(),o}function Lo({raw:e},t){let{capturingGroups:n,subroutines:r}=t,i=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){let e=+a.groups.num,r=n.length;if(t.hasNumberedRef=!0,i={"":e,"+":r+e,"-":r+1-e}[a.groups.sign],i<1)throw Error(`Invalid subroutine number`)}else i===`0`&&(i=0);let o=Qo(i);return r.push(o),o}function Ro(e,t){if(e!==`repeater`)throw Error(`Unexpected absence function kind "${e}"`);return{type:`AbsenceFunction`,kind:e,body:ts(t?.body)}}function N(e){return{type:`Alternative`,body:ns(e?.body)}}function zo(e,t){let n={type:`Assertion`,kind:e};return(e===`word_boundary`||e===`text_segment_boundary`)&&(n.negate=!!t?.negate),n}function Bo(e,t){let n=!!t?.orphan;return{type:`Backreference`,ref:e,...n&&{orphan:n}}}function Vo(e,t){let n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!as(n.name))throw Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:`CapturingGroup`,number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:ts(t?.body)}}function Ho(e,t){let n={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?Error(`Invalid code point out of range "\\x{${t}}"`):Error(`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:`Character`,value:e}}function Uo(e){let t={kind:`union`,negate:!1,...e};return{type:`CharacterClass`,kind:t.kind,negate:t.negate,body:ns(e?.body)}}function Wo(e,t){if(t.value<e.value)throw Error(`Character class range out of order`);return{type:`CharacterClassRange`,min:e,max:t}}function Go(e,t){let n=!!t?.negate,r={type:`CharacterSet`,kind:e};return(e===`digit`||e===`hex`||e===`newline`||e===`space`||e===`word`)&&(r.negate=n),(e===`text_segment`||e===`newline`&&!n)&&(r.variableLength=!0),r}function Ko(e,t={}){if(e===`keep`)return{type:`Directive`,kind:e};if(e===`flags`)return{type:`Directive`,kind:e,flags:Va(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}function qo(e){return{type:`Flags`,...e}}function P(e){let t=e?.atomic,n=e?.flags;if(t&&n)throw Error(`Atomic group cannot have flags`);return{type:`Group`,...t&&{atomic:t},...n&&{flags:n},body:ts(e?.body)}}function F(e){let t={behind:!1,negate:!1,...e};return{type:`LookaroundAssertion`,kind:t.behind?`lookbehind`:`lookahead`,negate:t.negate,body:ts(e?.body)}}function Jo(e,t,n){return{type:`NamedCallout`,kind:e,tag:t,arguments:n}}function Yo(e,t){let n=!!t?.negate;if(!Ba.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:`CharacterSet`,kind:`posix`,value:e,negate:n}}function Xo(e,t,n,r){if(t>n)throw Error(`Invalid reversed quantifier range`);return{type:`Quantifier`,kind:e,min:t,max:n,body:r}}function Zo(e,t){return{type:`Regex`,body:ts(t?.body),flags:e}}function Qo(e){return{type:`Subroutine`,ref:e}}function $o(e,t){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},r=n.unicodePropertyMap?.get(ss(e));if(!r){if(n.normalizeUnknownPropertyNames)r=os(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw Error(A`Invalid Unicode property "\p{${e}}"`)}return{type:`CharacterSet`,kind:`property`,value:r??e,negate:n.negate}}function es({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case`absence_repeater`:return Ro(`repeater`);case`atomic`:return P({atomic:!0});case`capturing`:return Vo(i,{name:n});case`group`:return P({flags:e});case`lookahead`:case`lookbehind`:return F({behind:t===`lookbehind`,negate:r});default:throw Error(`Unexpected group kind "${t}"`)}}function ts(e){if(e===void 0)e=[N()];else if(!Array.isArray(e)||!e.length||!e.every(e=>e.type===`Alternative`))throw Error(`Invalid body; expected array of one or more Alternative nodes`);return e}function ns(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error(`Invalid body; expected array of nodes`);return e}function rs(e){return e.type===`LookaroundAssertion`&&e.kind===`lookahead`}function is(e){return e.type===`LookaroundAssertion`&&e.kind===`lookbehind`}function as(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function os(e){return e.trim().replace(/[- _]+/g,`_`).replace(/[A-Z][a-z]+(?=[A-Z])/g,`$&_`).replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function ss(e){return e.replace(/[- _]+/g,``).toLowerCase()}function cs(e,t){return Va(e,`${t?.type===`Character`&&t.value===93?`Empty`:`Unclosed`} character class`)}function ls(e){return Va(e,`Unclosed group`)}function us(e,t,n=null){function r(e,t){for(let n=0;n<e.length;n++){let r=i(e[n],t,n,e);n=Math.max(-1,n+r)}}function i(a,o=null,s=null,c=null){let l=0,u=!1,d={node:a,parent:o,key:s,container:c,root:e,remove(){ds(c).splice(Math.max(0,fs(s)+l),1),l--,u=!0},removeAllNextSiblings(){return ds(c).splice(fs(s)+1)},removeAllPrevSiblings(){let e=fs(s)+l;return l-=e,ds(c).splice(0,Math.max(0,e))},replaceWith(e,t={}){let n=!!t.traverse;c?c[Math.max(0,fs(s)+l)]=e:Va(o,`Can't replace root node`)[s]=e,n&&i(e,o,s,c),u=!0},replaceWithMultiple(e,t={}){let n=!!t.traverse;if(ds(c).splice(Math.max(0,fs(s)+l),1,...e),l+=e.length-1,n){let t=0;for(let n=0;n<e.length;n++)t+=i(e[n],o,fs(s)+n+t,c)}u=!0},skip(){u=!0}},{type:f}=a,p=t[`*`],m=t[f],h=typeof p==`function`?p:p?.enter,g=typeof m==`function`?m:m?.enter;if(h?.(d,n),g?.(d,n),!u)switch(f){case`AbsenceFunction`:case`CapturingGroup`:case`Group`:r(a.body,a);break;case`Alternative`:case`CharacterClass`:r(a.body,a);break;case`Assertion`:case`Backreference`:case`Character`:case`CharacterSet`:case`Directive`:case`Flags`:case`NamedCallout`:case`Subroutine`:break;case`CharacterClassRange`:i(a.min,a,`min`),i(a.max,a,`max`);break;case`LookaroundAssertion`:r(a.body,a);break;case`Quantifier`:i(a.body,a,`body`);break;case`Regex`:r(a.body,a),i(a.flags,a,`flags`);break;default:throw Error(`Unexpected node type "${f}"`)}return m?.exit?.(d,n),p?.exit?.(d,n),l}return i(e),e}function ds(e){if(!Array.isArray(e))throw Error(`Container expected`);return e}function fs(e){if(typeof e!=`number`)throw Error(`Numeric key expected`);return e}var ps=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function ms(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function hs(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}var I=Object.freeze({DEFAULT:`DEFAULT`,CHAR_CLASS:`CHAR_CLASS`});function gs(e,t,n,r){let i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,`gsu`),a=[!1],o=0,s=``;for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;if(!i&&(!r||r===I.DEFAULT==!o)){n instanceof Function?s+=n(t,{context:o?I.CHAR_CLASS:I.DEFAULT,negated:a[a.length-1]}):s+=n;continue}e[0]===`[`?(o++,a.push(e[1]===`^`)):e===`]`&&o&&(o--,a.pop()),s+=e}return s}function _s(e,t,n,r){gs(e,t,n,r)}function vs(e,t,n=0,r){if(!new RegExp(t,`su`).test(e))return null;let i=RegExp(`${t}|(?<$skip>\\\\?.)`,`gsu`);i.lastIndex=n;let a=0,o;for(;o=i.exec(e);){let{0:e,groups:{$skip:t}}=o;if(!t&&(!r||r===I.DEFAULT==!a))return o;e===`[`?a++:e===`]`&&a&&a--,i.lastIndex==o.index&&i.lastIndex++}return null}function ys(e,t,n){return!!vs(e,t,0,n)}function bs(e,t){let n=/\\?./gsu;n.lastIndex=t;let r=e.length,i=0,a=1,o;for(;o=n.exec(e);){let[e]=o;if(e===`[`)i++;else if(i)e===`]`&&i--;else if(e===`(`)a++;else if(e===`)`&&(a--,!a)){r=o.index;break}}return e.slice(t,r)}var xs=new RegExp(String.raw`(?<noncapturingStart>${ps})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,`gsu`);function Ss(e,t){let n=t?.hiddenCaptures??[],r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};let i=[0],a=[],o=0,s=0,c=NaN,l;do{l=!1;let t=0,u=0,d=!1,f;for(xs.lastIndex=Number.isNaN(c)?0:c+7;f=xs.exec(e);){let{0:p,index:m,groups:{capturingStart:h,noncapturingStart:g}}=f;if(p===`[`)t++;else if(t)p===`]`&&t--;else if(p===`(?>`&&!d)c=m,d=!0;else if(d&&g)u++;else if(h)d?u++:(o++,i.push(o+s));else if(p===`)`&&d){if(!u){s++;let t=o+s;if(e=`${e.slice(0,c)}(?:(?=(${e.slice(c+3,m)}))<$$${t}>)${e.slice(m+1)}`,l=!0,a.push(t),ms(n,t),r.size){let e=new Map;r.forEach((n,r)=>{e.set(r>=t?r+1:r,n.map(e=>e>=t?e+1:e))}),r=e}break}u--}}}while(l);return n.push(...a),e=gs(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:n}})=>{if(t){let n=+t;if(n>i.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${i[n]}`}return`\\${n}`},I.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}var Cs=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,ws=new RegExp(String.raw`
45
- \\(?: \d+
46
- | c[A-Za-z]
47
- | [gk]<[^>]+>
48
- | [pPu]\{[^\}]+\}
49
- | u[A-Fa-f\d]{4}
50
- | x[A-Fa-f\d]{2}
51
- )
52
- | \((?: \? (?: [:=!>]
53
- | <(?:[=!]|[^>]+>)
54
- | [A-Za-z\-]+:
55
- | \(DEFINE\)
56
- ))?
57
- | (?<qBase>${Cs})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
58
- | \\?.
59
- `.replace(/\s+/g,``),`gsu`);function Ts(e){if(!RegExp(`${Cs}\\+`).test(e))return{pattern:e};let t=[],n=null,r=null,i=``,a=0,o;for(ws.lastIndex=0;o=ws.exec(e);){let{0:s,index:c,groups:{qBase:l,qMod:u,invalidQ:d}}=o;if(s===`[`)a||(r=c),a++;else if(s===`]`)a?a--:r=null;else if(!a)if(u===`+`&&i&&!i.startsWith(`(`)){if(d)throw Error(`Invalid quantifier "${s}"`);let t=-1;if(/^\{\d+\}$/.test(l))e=hs(e,c+l.length,u,``);else{if(i===`)`||i===`]`){let t=i===`)`?n:r;if(t===null)throw Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,t)}(?>${e.slice(t,c)}${l})${e.slice(c+s.length)}`}else e=`${e.slice(0,c-i.length)}(?>${i}${l})${e.slice(c+s.length)}`;t+=4}ws.lastIndex+=t}else s[0]===`(`?t.push(c):s===`)`&&(n=t.length?t.pop():null);i=s}return{pattern:e}}var L=String.raw,Es=L`\(\?R=(?<rDepth>[^\)]+)\)|${L`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`,Ds=L`\(\?<(?![=!])(?<captureName>[^>]+)>`,Os=L`${Ds}|(?<unnamed>\()(?!\?)`,R=new RegExp(L`${Ds}|${Es}|\(\?|\\?.`,`gsu`),ks=`Cannot use multiple overlapping recursions`;function As(e,t){let{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:`plugin`,...t},i=t?.captureTransfers??new Map;if(!new RegExp(Es,`su`).test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};if(r===`plugin`&&ys(e,L`\(\?\(DEFINE\)`,I.DEFAULT))throw Error(`DEFINE groups cannot be used with recursion`);let a=[],o=ys(e,L`\\[1-9]`,I.DEFAULT),s=new Map,c=[],l=!1,u=0,d=0,f;for(R.lastIndex=0;f=R.exec(e);){let{0:t,groups:{captureName:p,rDepth:m,gRNameOrNum:h,gRDepth:g}}=f;if(t===`[`)u++;else if(u)t===`]`&&u--;else if(m){if(js(m),l)throw Error(ks);if(o)throw Error(`${r===`external`?`Backrefs`:`Numbered backrefs`} cannot be used with global recursion`);let t=e.slice(0,f.index),s=e.slice(R.lastIndex);if(ys(s,Es,I.DEFAULT))throw Error(ks);let c=m-1;e=Ms(t,s,c,!1,n,a,d),i=Fs(i,t,c,a.length,0,d);break}else if(h){js(g);let u=!1;for(let e of c)if(e.name===h||e.num===+h){if(u=!0,e.hasRecursedWithin)throw Error(ks);break}if(!u)throw Error(L`Recursive \g cannot be used outside the referenced group "${r===`external`?h:L`\g<${h}&R=${g}>`}"`);let p=s.get(h),m=bs(e,p);if(o&&ys(m,L`${Ds}|\((?!\?)`,I.DEFAULT))throw Error(`${r===`external`?`Backrefs`:`Numbered backrefs`} cannot be used with recursion of capturing groups`);let _=e.slice(p,f.index),v=m.slice(_.length+t.length),ee=a.length,te=g-1,ne=Ms(_,v,te,!0,n,a,d);i=Fs(i,_,te,a.length-ee,ee,d),e=`${e.slice(0,p)}${ne}${e.slice(p+m.length)}`,R.lastIndex+=ne.length-t.length-_.length-v.length,c.forEach(e=>e.hasRecursedWithin=!0),l=!0}else if(p)d++,s.set(String(d),R.lastIndex),s.set(p,R.lastIndex),c.push({num:d,name:p});else if(t[0]===`(`){let e=t===`(`;e&&(d++,s.set(String(d),R.lastIndex)),c.push(e?{num:d}:{})}else t===`)`&&c.pop()}return n.push(...a),{pattern:e,captureTransfers:i,hiddenCaptures:n}}function js(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e=+e,e<2||e>100))throw Error(t)}function Ms(e,t,n,r,i,a,o){let s=new Set;r&&_s(e+t,Ds,({groups:{captureName:e}})=>{s.add(e)},I.DEFAULT);let c=[n,r?s:null,i,a,o];return`${e}${Ns(`(?:${e}`,`forward`,...c)}(?:)${Ns(`${t})`,`backward`,...c)}${t}`}function Ns(e,t,n,r,i,a,o){let s=e=>t===`forward`?e+2:n-e+2-1,c=``;for(let t=0;t<n;t++){let n=s(t);c+=gs(e,L`${Os}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:s,backref:c}})=>{if(c&&r&&!r.has(c))return e;let l=`_$${n}`;if(s||t){let n=o+a.length+1;return a.push(n),Ps(i,n),s?e:`(?<${t}${l}>`}return L`\k<${c}${l}>`},I.DEFAULT)}return c}function Ps(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Fs(e,t,n,r,i,a){if(e.size&&r){let o=0;_s(t,Os,()=>o++,I.DEFAULT);let s=a-o+i,c=new Map;return e.forEach((e,t)=>{let i=(r-o*n)/n,a=o*n,l=t>s+o?t+r:t,u=[];for(let t of e)if(t<=s)u.push(t);else if(t>s+o+i)u.push(t+r);else if(t<=s+o)for(let e=0;e<=n;e++)u.push(t+o*e);else for(let e=0;e<=n;e++)u.push(t+a+i*e);c.set(l,u)}),c}return e}var z=String.fromCodePoint,B=String.raw,V={},Is=globalThis.RegExp;V.flagGroups=(()=>{try{new Is(`(?i:)`)}catch{return!1}return!0})(),V.unicodeSets=(()=>{try{new Is(`[[]]`,`v`)}catch{return!1}return!0})(),V.bugFlagVLiteralHyphenIsRange=V.unicodeSets?(()=>{try{new Is(B`[\d\-a]`,`v`)}catch{return!0}return!1})():!1,V.bugNestedClassIgnoresNegation=V.unicodeSets&&new Is(`[[^a]]`,`v`).test(`a`);function Ls(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function Rs(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function zs(e,t){return Vs[e]>=Vs[t]}function Bs(e,t){if(e==null)throw Error(t??`Value expected`);return e}var Vs={ES2025:2025,ES2024:2024,ES2018:2018},Hs={auto:`auto`,ES2025:`ES2025`,ES2024:`ES2024`,ES2018:`ES2018`};function Us(e={}){if({}.toString.call(e)!==`[object Object]`)throw Error(`Unexpected options`);if(e.target!==void 0&&!Hs[e.target])throw Error(`Unexpected target "${e.target}"`);let t={accuracy:`default`,avoidSubclass:!1,flags:``,global:!1,hasIndices:!1,lazyCompileLength:1/0,target:`auto`,verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target===`auto`&&(t.target=V.flagGroups?`ES2025`:V.unicodeSets?`ES2024`:`ES2018`),t}var Ws=`[ -\r ]`,Gs=new Set([z(304),z(305)]),H=B`[\p{L}\p{M}\p{N}\p{Pc}]`;function Ks(e){if(Gs.has(e))return[e];let t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=Xs.get(n),a=Js.get(n),o=Ys.get(n);return[...r].length===1&&t.add(r),o&&t.add(o),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var qs=new Map(`C Other
60
- Cc Control cntrl
61
- Cf Format
62
- Cn Unassigned
63
- Co Private_Use
64
- Cs Surrogate
65
- L Letter
66
- LC Cased_Letter
67
- Ll Lowercase_Letter
68
- Lm Modifier_Letter
69
- Lo Other_Letter
70
- Lt Titlecase_Letter
71
- Lu Uppercase_Letter
72
- M Mark Combining_Mark
73
- Mc Spacing_Mark
74
- Me Enclosing_Mark
75
- Mn Nonspacing_Mark
76
- N Number
77
- Nd Decimal_Number digit
78
- Nl Letter_Number
79
- No Other_Number
80
- P Punctuation punct
81
- Pc Connector_Punctuation
82
- Pd Dash_Punctuation
83
- Pe Close_Punctuation
84
- Pf Final_Punctuation
85
- Pi Initial_Punctuation
86
- Po Other_Punctuation
87
- Ps Open_Punctuation
88
- S Symbol
89
- Sc Currency_Symbol
90
- Sk Modifier_Symbol
91
- Sm Math_Symbol
92
- So Other_Symbol
93
- Z Separator
94
- Zl Line_Separator
95
- Zp Paragraph_Separator
96
- Zs Space_Separator
97
- ASCII
98
- ASCII_Hex_Digit AHex
99
- Alphabetic Alpha
100
- Any
101
- Assigned
102
- Bidi_Control Bidi_C
103
- Bidi_Mirrored Bidi_M
104
- Case_Ignorable CI
105
- Cased
106
- Changes_When_Casefolded CWCF
107
- Changes_When_Casemapped CWCM
108
- Changes_When_Lowercased CWL
109
- Changes_When_NFKC_Casefolded CWKCF
110
- Changes_When_Titlecased CWT
111
- Changes_When_Uppercased CWU
112
- Dash
113
- Default_Ignorable_Code_Point DI
114
- Deprecated Dep
115
- Diacritic Dia
116
- Emoji
117
- Emoji_Component EComp
118
- Emoji_Modifier EMod
119
- Emoji_Modifier_Base EBase
120
- Emoji_Presentation EPres
121
- Extended_Pictographic ExtPict
122
- Extender Ext
123
- Grapheme_Base Gr_Base
124
- Grapheme_Extend Gr_Ext
125
- Hex_Digit Hex
126
- IDS_Binary_Operator IDSB
127
- IDS_Trinary_Operator IDST
128
- ID_Continue IDC
129
- ID_Start IDS
130
- Ideographic Ideo
131
- Join_Control Join_C
132
- Logical_Order_Exception LOE
133
- Lowercase Lower
134
- Math
135
- Noncharacter_Code_Point NChar
136
- Pattern_Syntax Pat_Syn
137
- Pattern_White_Space Pat_WS
138
- Quotation_Mark QMark
139
- Radical
140
- Regional_Indicator RI
141
- Sentence_Terminal STerm
142
- Soft_Dotted SD
143
- Terminal_Punctuation Term
144
- Unified_Ideograph UIdeo
145
- Uppercase Upper
146
- Variation_Selector VS
147
- White_Space space
148
- XID_Continue XIDC
149
- XID_Start XIDS`.split(/\s/).map(e=>[ss(e),e])),Js=new Map([[`s`,z(383)],[z(383),`s`]]),Ys=new Map([[z(223),z(7838)],[z(107),z(8490)],[z(229),z(8491)],[z(969),z(8486)]]),Xs=new Map([U(453),U(456),U(459),U(498),...$s(8072,8079),...$s(8088,8095),...$s(8104,8111),U(8124),U(8140),U(8188)]),Zs=new Map([[`alnum`,B`[\p{Alpha}\p{Nd}]`],[`alpha`,B`\p{Alpha}`],[`ascii`,B`\p{ASCII}`],[`blank`,B`[\p{Zs}\t]`],[`cntrl`,B`\p{Cc}`],[`digit`,B`\p{Nd}`],[`graph`,B`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],[`lower`,B`\p{Lower}`],[`print`,B`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],[`punct`,B`[\p{P}\p{S}]`],[`space`,B`\p{space}`],[`upper`,B`\p{Upper}`],[`word`,B`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],[`xdigit`,B`\p{AHex}`]]);function Qs(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n}function U(e){let t=z(e);return[t.toLowerCase(),t]}function $s(e,t){return Qs(e,t).map(e=>U(e))}var ec=new Set([`Lower`,`Lowercase`,`Upper`,`Uppercase`,`Ll`,`Lowercase_Letter`,`Lt`,`Titlecase_Letter`,`Lu`,`Uppercase_Letter`]);function tc(e,t){let n={accuracy:`default`,asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:`ES2025`,...t};ac(e);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:zs(n.bestEffortTarget,`ES2024`),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};us(e,nc,r);let i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};return us(e,rc,a),us(e,ic,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=r.strategy,e}var nc={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if(i===`repeater`){let e=P();e.body[0].body.push(F({negate:!0,body:r}),$o(`Any`));let i=P();i.body[0].body.push(Xo(`greedy`,0,1/0,e)),n(K(i,t),{traverse:!0})}else throw Error(`Unsupported absence function "(?~|"`)},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){let i=e.body.filter(e=>e.kind===`flags`);for(let e=n+1;e<t.body.length;e++){let n=t.body[e];Rs(r,n,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let n=fc(t.get(e));if(n){let t=P({flags:n});t.body[0].body=e.body,e.body=[K(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:o},s){let{kind:c,negate:l}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:f,wordIsAscii:p}=s;if(c===`text_segment_boundary`)throw Error(`Unsupported text segment boundary "\\${l?`Y`:`y`}"`);if(c===`line_end`)o(K(F({body:[N({body:[zo(`string_end`)]}),N({body:[Ho(10)]})]}),t));else if(c===`line_start`)o(K(W(B`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c===`search_start`)if(f.has(e))i.flags.sticky=!0,a();else{let e=r[n-1];if(e&&vc(e))o(K(F({negate:!0}),t));else if(d)throw Error(B`Uses "\G" in a way that requires a subclass`);else o(G(zo(`string_start`),t)),s.strategy=`clip_search`}else if(!(c===`string_end`||c===`string_start`))if(c===`string_end_newline`)o(K(W(B`(?=\n?\z)`),t));else if(c===`word_boundary`){if(!p&&!u){let e=`(?:(?<=${H})(?!${H})|(?<!${H})(?=${H}))`,n=`(?:(?<=${H})(?=${H})|(?<!${H})(?!${H}))`;o(K(W(l?n:e),t))}}else throw Error(`Unexpected assertion kind "${c}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!bc(n)&&(n=dc(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!bc(r)&&(r=dc(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){t.kind===`intersection`&&n(K(Uo({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:o,wordIsAscii:s}){let{kind:c,negate:l,value:u}=e;if(a&&(c===`digit`||u===`digit`)){n(G(Go(`digit`,{negate:l}),t));return}if(o&&(c===`space`||u===`space`)){n(K(xc(W(Ws),l),t));return}if(s&&(c===`word`||u===`word`)){n(G(Go(`word`,{negate:l}),t));return}if(c===`any`)n(G($o(`Any`),t));else if(c===`digit`)n(G($o(`Nd`,{negate:l}),t));else if(c!==`dot`)if(c===`text_segment`){if(r===`strict`)throw Error(B`Use of "\X" requires non-strict accuracy`);let e=`\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?`,a=B`\p{RI}{2}|${e}(?:\u200D${e})*`;n(K(W(B`(?>\r\n|${i?B`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c===`hex`)n(G($o(`AHex`,{negate:l}),t));else if(c===`newline`)n(K(W(l?`[^
150
- ]`:`(?>\r
151
- ?|[
152
- \v\f…\u2028\u2029])`),t));else if(c===`posix`)if(!i&&(u===`graph`||u===`print`)){if(r===`strict`)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:`!-~`,print:` -~`}[u];l&&(e=`\0-${z(e.codePointAt(0)-1)}${z(e.codePointAt(2)+1)}-\u{10FFFF}`),n(K(W(`[${e}]`),t))}else n(K(xc(W(Zs.get(u)),l),t));else if(c===`property`)qs.has(ss(u))||(e.key=`sc`);else if(c===`space`)n(G($o(`space`,{negate:l}),t));else if(c===`word`)n(K(xc(W(H),l),t));else throw Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:c}=e;if(s===`flags`)if(!c.enable&&!c.disable)r();else{let e=P({flags:c});e.body[0].body=o(),i(K(e,t),{traverse:!0})}else if(s===`keep`){let e=n.body[0],r=n.body.length===1&&Eo(e,{type:`Group`})&&e.body[0].body.length===1?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(B`Uses "\K" in a way that's unsupported`);let o=F({behind:!0});o.body[0].body=a(),i(K(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error(`Unsupported flag "P"`);if(e.textSegmentMode===`word`)throw Error(`Unsupported flag "y{w}"`);[`digitIsAscii`,`extended`,`posixIsAscii`,`spaceIsAscii`,`wordIsAscii`,`textSegmentMode`].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;n===`lookbehind`&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if(r===`fail`)n(K(F({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type===`Quantifier`){let t=P();t.body[0].body.push(e.body),e.body=K(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(t.body.length===1&&t.body[0].kind===`search_start`)t.body.pop();else{let e=hc(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t===`strict`&&n&&r)throw Error(B`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!bc(n)&&(n=dc(n,t),e.ref=n)}},rc={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:c}){let l=i.get(e);if(l&&s.has(e.number)){let r=G(lc(e.number),t);c.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&Rs(o,e.name,[]);let u=o.get(e.name??e.number);for(let t=0;t<u.length;t++){let n=u[t];if(l===n.node||l&&l===n.origin||e===n.origin){u.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:l}),e.name&&o.get(e.name).push({node:e,origin:l}),e.name){let t=Rs(a,e.name,new Map),n=!1;if(l)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Ls(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&!(n.type===`CapturingGroup`&&(n.name===a||n.number===a)););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=a===0,c=s?lc(0):cc(o,r.groupOriginByCopy,null),l=c;if(!s){let e=fc(uc(o,e=>e.type===`Group`&&!!e.flags)),t=e?Ls(r.globalFlags,e):r.globalFlags;oc(t,r.currentFlags)||(l=P({flags:pc(t)}),l.body[0].body.push(c))}n(K(l,t),{traverse:!s})}},ic={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>sc(t,e));i.length?i.length>1?n(K(P({atomic:!0,body:i.reverse().map(e=>N({body:[Bo(e.number)]}))}),t)):e.ref=i[0].number:n(K(F({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=Vo();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function ac(e){us(e,{"*"({node:e,parent:t}){e.parent=t}})}function oc(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function sc(e,t){let n=t;do{if(n.type===`Regex`)return!1;if(n.type===`Alternative`)continue;if(n===e)return!1;let t=mc(n.parent);for(let r of t){if(r===n)break;if(r===e||gc(r,e))return!0}}while(n=n.parent);throw Error(`Unexpected path`)}function cc(e,t,n,r){let i=Array.isArray(e)?[]:{};for(let[a,o]of Object.entries(e))a===`parent`?i.parent=Array.isArray(n)?r:n:o&&typeof o==`object`?i[a]=cc(o,t,i,n):(a===`type`&&o===`CapturingGroup`&&t.set(i,t.get(e)??e),i[a]=o);return i}function lc(e){let t=Qo(e);return t.isRecursive=!0,t}function uc(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function dc(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,`_`)}`;return t.set(e,n),n}function fc(e){let t=[`dotAll`,`ignoreCase`],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function pc({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function mc(e){if(!e)throw Error(`Node expected`);let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function hc(e){let t=e.find(e=>e.kind===`search_start`||yc(e,{negate:!1})||!_c(e));if(!t)return null;if(t.kind===`search_start`)return t;if(t.type===`LookaroundAssertion`)return t.body[0].body[0];if(t.type===`CapturingGroup`||t.type===`Group`){let e=[];for(let n of t.body){let t=hc(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function gc(e,t){let n=mc(e)??[];for(let e of n)if(e===t||gc(e,t))return!0;return!1}function _c({type:e}){return e===`Assertion`||e===`Directive`||e===`LookaroundAssertion`}function vc(e){let t=[`Character`,`CharacterClass`,`CharacterSet`];return t.includes(e.type)||e.type===`Quantifier`&&e.min&&t.includes(e.body.type)}function yc(e,t){let n={negate:null,...t};return e.type===`LookaroundAssertion`&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Eo(e.body[0],{type:`Assertion`,kind:`search_start`})}function bc(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function W(e,t){let n=ko(e,{...t,unicodePropertyMap:qs}).body;return n.length>1||n[0].body.length>1?P({body:n}):n[0].body[0]}function xc(e,t){return e.negate=t,e}function G(e,t){return e.parent=t,e}function K(e,t){return ac(e),e.parent=t,e}function Sc(e,t){let n=Us(t),r=zs(n.target,`ES2024`),i=zs(n.target,`ES2025`),a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error(`Invalid recursionLimit; use 2-20`);let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];us(e,Cc,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!s)},l=e,u={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=l,l=e,Bs(wc[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let f={pattern:e.body.map(d).join(`|`),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&f._hiddenCaptures.push(t),e.transferTo&&Rs(f._captureTransfers,e.transferTo,[]).push(t)}),f}var Cc={"*":{enter({node:e},t){if(Ic(e)){let n=t.getCurrentModI();t.pushModI(e.flags?Ls({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Ic(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Ac(z(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),jc(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===`property`&&ec.has(e.value)&&t.setHasCasedChar()}},wc={Alternative({body:e},t,n){return e.map(n).join(``)},Assertion({kind:e,negate:t}){if(e===`string_end`)return`$`;if(e===`string_start`)return`^`;if(e===`word_boundary`)return t?B`\B`:B`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!=`number`)throw Error(`Unexpected named backref in transformed AST`);if(!t.useFlagMods&&t.accuracy===`strict`&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error(`Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy`);return`\\`+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:``}${r.map(n).join(`|`)})`},Character({value:e},t){let n=z(e),r=Mc(e,{escDigit:t.lastNode.type===`Backreference`,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Ac(n)){let e=Ks(n);return t.inCharClass?e.join(``):e.length>1?`[${e.join(``)}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if(r===`intersection`&&!t.useFlagV)throw Error(`Use of character class intersection requires min target ES2024`);V.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(Rc)&&(o=[Ho(45),...o.filter(e=>!Rc(e))]);let s=()=>`[${i?`^`:``}${o.map(n).join(r===`intersection`?`&&`:``)}]`;if(!t.inCharClass){if((!t.useFlagV||V.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>e.type===`CharacterClass`&&e.kind===`union`&&e.negate);if(t.length){let r=P(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=N({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let c=o[0];if(r===`union`&&!i&&c&&((!t.useFlagV||!t.verbose)&&a.kind===`union`&&!(V.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind===`intersection`&&o.length===1&&c.type!==`CharacterClassRange`))return o.map(n).join(``);if(!t.useFlagV&&a.type===`CharacterClass`)throw Error(`Uses nested character class in a way that requires min target ES2024`);return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=Mc(n,i),o=Mc(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Nc(jc(e)).forEach(e=>{s.add(Array.isArray(e)?`${Mc(e[0],i)}-${Mc(e[1],i)}`:Mc(e,i))}),`${a}-${o}${[...s].join(``)}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e===`dot`)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?`.`:`[^]`:B`[^\n]`;if(e===`digit`)return t?B`\D`:B`\d`;if(e===`property`){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&ec.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?B`\P`:B`\p`}{${r?`${r}=`:``}${n}}`}if(e===`word`)return t?B`\W`:B`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?`i`:``)+(e.dotAll?`s`:``)+(e.sticky?`y`:``)},Group({atomic:e,body:t,flags:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=Ls(o,n));let s=t.map(a).join(`|`),c=!i.verbose&&t.length===1&&r.type!==`Quantifier`&&!e&&(!i.useFlagMods||!n)?s:`(?${Pc(e,n,i.useFlagMods)}${s})`;return i.currentFlags=o,c},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t===`lookahead`?``:`<`}${n?`!`:`=`}`}${e.map(i).join(`|`)})`},Quantifier(e,t,n){return n(e.body)+Fc(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error(`Unexpected non-recursive subroutine in transformed AST`);let r=n.recursionLimit;return t===0?`(?R=${r})`:B`\g<${t}&R=${r}>`}},Tc=new Set([`$`,`(`,`)`,`*`,`+`,`.`,`?`,`[`,`\\`,`]`,`^`,`{`,`|`,`}`]),Ec=new Set([`-`,`\\`,`]`,`^`,`[`]),Dc=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split(``)),Oc=new Map([[9,B`\t`],[10,B`\n`],[11,B`\v`],[12,B`\f`],[13,B`\r`],[8232,B`\u2028`],[8233,B`\u2029`],[65279,B`\uFEFF`]]),kc=/^\p{Cased}$/u;function Ac(e){return kc.test(e)}function jc(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return a;for(let e=r;e<=i;e++){let t=z(e);if(!Ac(t))continue;let o=Ks(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function Mc(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Oc.has(e))return Oc.get(e);if(e<32||e>126&&e<160||e>262143||t&&Lc(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,`0`)}`;let i=n?r?Dc:Ec:Tc,a=z(e);return(i.has(a)?`\\`:``)+a}function Nc(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:r===null?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function Pc(e,t,n){if(e)return`>`;let r=``;if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?`i`:``)+(e?.dotAll?`s`:``)+(n?`-`:``)+(n?.ignoreCase?`i`:``)+(n?.dotAll?`s`:``)}return`${r}:`}function Fc({kind:e,max:t,min:n}){let r;return r=!n&&t===1?`?`:!n&&t===1/0?`*`:n===1&&t===1/0?`+`:n===t?`{${n}}`:`{${n},${t===1/0?``:t}}`,r+{greedy:``,lazy:`?`,possessive:`+`}[e]}function Ic({type:e}){return e===`CapturingGroup`||e===`Group`||e===`LookaroundAssertion`}function Lc(e){return e>47&&e<58}function Rc({type:e,value:t}){return e===`Character`&&t===45}var zc=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||`(?:)`}constructor(t,n,r){let i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error(`Cannot provide options when copying a regexp`);let i=t;super(i,n),this.#n=i.source,i instanceof e&&(this.#e=i.#e,this.#r=i.#r,this.#i=i.#i,this.rawOptions=i.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?``:t,n),this.#n=t,this.#e=Vc(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if(this.#i===`clip_search`&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(Bc(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){this.#t.lastIndex=this.lastIndex;let t=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!t||!this.#e.size)return t;let n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),o&&n[e]!==void 0){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){this.#r||=Hc(this.source);let i=this.#r.get(o);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t}};function Bc(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function Vc(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)Rs(n,t,{}).transferTo=e;return n}function Hc(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,i=0,a;for(;a=t.exec(e);){let{0:e,groups:{capture:t,name:o}}=a;e===`[`?r++:r?e===`]`&&r--:t&&(i++,o&&n.set(i,o))}return n}function Uc(e,t){let n=Wc(e,t);return n.options?new zc(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Wc(e,t){let n=Us(t),r=tc(ko(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:qs}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=Sc(r,n),a=As(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:`external`}),o=Ss(Ts(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${n.hasIndices?`d`:``}${n.global?`g`:``}${i.flags}${i.options.disable.v?`u`:`v`}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error(`Lazy compilation requires subclass`)}else{let e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=s.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}var Gc=4294967295,Kc=class{constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}})}regexps;findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>e==null?{start:Gc,end:Gc,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let o=n.exec(r);if(!o)continue;if(o.index===t)return a(e,o,0);i.push([e,o,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}};function qc(e,t){return Uc(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function Jc(e={}){let t=Object.assign({target:`auto`,cache:new Map},e);return t.regexConstructor||=e=>qc(e,{target:t.target}),{createScanner(e){return new Kc(e,t)},createString(e){return{content:e}}}}async function Yc(e){if(Kt())throw Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let t=Ht.get(e);if(t!=null)return t;try{let t=Ut.get(e);if(t==null&&Object.prototype.hasOwnProperty.call(aa,e)&&(t=aa[e]),t==null)throw Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);let n=t().then(({default:t})=>{let n={name:e,data:t};return C.has(e)||C.set(e,n),n});return Ht.set(e,n),await n}finally{Ht.delete(e)}}function Xc(e){return C.get(e)??Yc(e)}var q=new Map,Zc=new Map,Qc=new Map,$c=new Set;function el(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let e;if(typeof n==`string`){if(e=q.get(n),e==null)throw Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else e=n,n=n.name,q.has(n)||q.set(n,e);$c.has(n)||($c.add(n),t.loadThemeSync(e))}}async function tl(e){if(Kt())throw Error(`resolveTheme("${e}") cannot be called from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let t=Zc.get(e);if(t!=null)return t;try{let t=Qc.get(e)??oa[e];if(t==null)throw Error(`resolveTheme: No valid loader for ${e}`);let n=t().then(t=>nl(e,`default`in t?t.default:t));Zc.set(e,n);let r=await n;if(r.name!==e)throw Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${r.name}`);return q.set(r.name,r),r}finally{Zc.delete(e)}}function nl(e,t){return q.get(e)??(t=zi(t),q.set(e,t),t)}function rl(e){return q.get(e)??tl(e)}function il(e,t){if(Qc.has(e)){console.error(`SharedHighlight.registerCustomTheme: theme name already registered`,e);return}Qc.set(e,t)}var J;async function al({themes:e,langs:t,preferredHighlighter:n=`shiki-js`}){J??=Aa({themes:[],langs:[`text`],engine:n===`shiki-wasm`?ka(r(()=>import(`./wasm-Cia-w-S9.js`),[])):Jc()});let i=sl(J)?await J:J;J=i;let a=[];for(let e of t){if(e===`text`||e===`ansi`)continue;let t=Xc(e);`then`in t?a.push(t):Gt(t,i)}let o=[];for(let t of e){let e=rl(t);`then`in e?o.push(e):el(e,J)}return(a.length>0||o.length>0)&&await Promise.all([Promise.all(a).then(e=>{Gt(e,i)}),Promise.all(o).then(e=>{el(e,i)})]),i}function ol(){if(J!=null&&!(`then`in J))return J}function sl(e=J){return e!=null&&`then`in e}il(`pierre-dark`,async()=>{let{default:e}=await r(async()=>{let{default:e}=await import(`./pierre-dark-DvfVJVsW.js`);return{default:e}},[]);return{...e,name:`pierre-dark`}}),il(`pierre-light`,async()=>{let{default:e}=await r(async()=>{let{default:e}=await import(`./pierre-light-B0eN5zia.js`);return{default:e}},[]);return{...e,name:`pierre-light`}});function cl(e=b){let t=[];return typeof e==`string`?t.push(e):(t.push(e.dark),t.push(e.light)),t}function ll(e){for(let t of e)if(!q.has(t))return!1;return!0}function ul(e,t){return e==null||t==null||typeof e==`string`||typeof t==`string`?e===t:e.dark===t.dark&&e.light===t.light}var dl=new Map,fl=0,pl={"1c":`1c`,abap:`abap`,as:`actionscript-3`,ada:`ada`,adb:`ada`,ads:`ada`,adoc:`asciidoc`,asciidoc:`asciidoc`,"component.html":`angular-html`,"component.ts":`angular-ts`,conf:`nginx`,htaccess:`apache`,cls:`tex`,trigger:`apex`,apl:`apl`,applescript:`applescript`,scpt:`applescript`,ara:`ara`,asm:`asm`,s:`riscv`,astro:`astro`,awk:`awk`,bal:`ballerina`,sh:`zsh`,bash:`zsh`,bat:`cmd`,cmd:`cmd`,be:`berry`,beancount:`beancount`,bib:`bibtex`,bicep:`bicep`,"blade.php":`blade`,bsl:`bsl`,c:`c`,h:`objective-cpp`,cs:`csharp`,cpp:`cpp`,hpp:`cpp`,cc:`cpp`,cxx:`cpp`,hh:`cpp`,cdc:`cdc`,cairo:`cairo`,clar:`clarity`,clj:`clojure`,cljs:`clojure`,cljc:`clojure`,soy:`soy`,cmake:`cmake`,"CMakeLists.txt":`cmake`,cob:`cobol`,cbl:`cobol`,cobol:`cobol`,CODEOWNERS:`codeowners`,ql:`ql`,coffee:`coffeescript`,lisp:`lisp`,cl:`lisp`,lsp:`lisp`,log:`log`,v:`verilog`,cql:`cql`,cr:`crystal`,css:`css`,csv:`csv`,cue:`cue`,cypher:`cypher`,cyp:`cypher`,d:`d`,dart:`dart`,dax:`dax`,desktop:`desktop`,diff:`diff`,patch:`diff`,Dockerfile:`dockerfile`,dockerfile:`dockerfile`,env:`dotenv`,dm:`dream-maker`,edge:`edge`,el:`emacs-lisp`,ex:`elixir`,exs:`elixir`,elm:`elm`,erb:`erb`,erl:`erlang`,hrl:`erlang`,f:`fortran-fixed-form`,for:`fortran-fixed-form`,fs:`fsharp`,fsi:`fsharp`,fsx:`fsharp`,f03:`f03`,f08:`f08`,f18:`f18`,f77:`f77`,f90:`fortran-free-form`,f95:`fortran-free-form`,fnl:`fennel`,fish:`fish`,ftl:`ftl`,tres:`gdresource`,res:`gdresource`,gd:`gdscript`,gdshader:`gdshader`,gs:`genie`,feature:`gherkin`,COMMIT_EDITMSG:`git-commit`,"git-rebase-todo":`git-rebase`,gjs:`glimmer-js`,gleam:`gleam`,gts:`glimmer-ts`,glsl:`glsl`,vert:`glsl`,frag:`glsl`,shader:`shaderlab`,gp:`gnuplot`,plt:`gnuplot`,gnuplot:`gnuplot`,go:`go`,graphql:`graphql`,gql:`graphql`,groovy:`groovy`,gvy:`groovy`,hack:`hack`,haml:`haml`,hbs:`handlebars`,handlebars:`handlebars`,hs:`haskell`,lhs:`haskell`,hx:`haxe`,hcl:`hcl`,hjson:`hjson`,hlsl:`hlsl`,fx:`hlsl`,html:`html`,htm:`html`,http:`http`,rest:`http`,hxml:`hxml`,hy:`hy`,imba:`imba`,ini:`ini`,cfg:`ini`,jade:`pug`,pug:`pug`,java:`java`,js:`javascript`,mjs:`javascript`,cjs:`javascript`,jinja:`jinja`,jinja2:`jinja`,j2:`jinja`,jison:`jison`,jl:`julia`,json:`json`,json5:`json5`,jsonc:`jsonc`,jsonl:`jsonl`,jsonnet:`jsonnet`,libsonnet:`jsonnet`,jssm:`jssm`,jsx:`jsx`,kt:`kotlin`,kts:`kts`,kql:`kusto`,tex:`tex`,ltx:`tex`,lean:`lean4`,less:`less`,liquid:`liquid`,lit:`lit`,ll:`llvm`,logo:`logo`,lua:`lua`,luau:`luau`,Makefile:`makefile`,mk:`makefile`,makefile:`makefile`,md:`markdown`,markdown:`markdown`,marko:`marko`,m:`wolfram`,mat:`matlab`,mdc:`mdc`,mdx:`mdx`,wiki:`wikitext`,mediawiki:`wikitext`,mmd:`mermaid`,mermaid:`mermaid`,mips:`mipsasm`,mojo:`mojo`,"🔥":`mojo`,move:`move`,nar:`narrat`,nf:`nextflow`,nim:`nim`,nims:`nim`,nimble:`nim`,nix:`nix`,nu:`nushell`,mm:`objective-cpp`,ml:`ocaml`,mli:`ocaml`,mll:`ocaml`,mly:`ocaml`,pas:`pascal`,p:`pascal`,pl:`prolog`,pm:`perl`,t:`perl`,raku:`raku`,p6:`raku`,pl6:`raku`,php:`php`,phtml:`php`,pls:`plsql`,sql:`sql`,po:`po`,polar:`polar`,pcss:`postcss`,pot:`pot`,potx:`potx`,pq:`powerquery`,pqm:`powerquery`,ps1:`powershell`,psm1:`powershell`,psd1:`powershell`,prisma:`prisma`,pro:`prolog`,P:`prolog`,properties:`properties`,proto:`protobuf`,pp:`puppet`,purs:`purescript`,py:`python`,pyw:`python`,pyi:`python`,qml:`qml`,qmldir:`qmldir`,qss:`qss`,r:`r`,R:`r`,rkt:`racket`,rktl:`racket`,razor:`razor`,cshtml:`razor`,rb:`ruby`,rbw:`ruby`,reg:`reg`,regex:`regexp`,rel:`rel`,rs:`rust`,rst:`rst`,rake:`ruby`,gemspec:`ruby`,sas:`sas`,sass:`sass`,scala:`scala`,sc:`scala`,scm:`scheme`,ss:`scheme`,sld:`scheme`,scss:`scss`,sdbl:`sdbl`,shadergraph:`shader`,st:`smalltalk`,sol:`solidity`,sparql:`sparql`,rq:`sparql`,spl:`splunk`,config:`ssh-config`,do:`stata`,ado:`stata`,dta:`stata`,styl:`stylus`,stylus:`stylus`,svelte:`svelte`,swift:`swift`,sv:`system-verilog`,svh:`system-verilog`,service:`systemd`,socket:`systemd`,device:`systemd`,timer:`systemd`,talon:`talonscript`,tasl:`tasl`,tcl:`tcl`,templ:`templ`,tf:`tf`,tfvars:`tfvars`,toml:`toml`,ts:`typescript`,tsp:`typespec`,tsv:`tsv`,tsx:`tsx`,ttl:`turtle`,twig:`twig`,typ:`typst`,vv:`v`,vala:`vala`,vapi:`vala`,vb:`vb`,vbs:`vb`,bas:`vb`,vh:`verilog`,vhd:`vhdl`,vhdl:`vhdl`,vim:`vimscript`,vue:`vue`,"vine.ts":`vue-vine`,vy:`vyper`,wasm:`wasm`,wat:`wasm`,wy:`文言`,wgsl:`wgsl`,wit:`wit`,wl:`wolfram`,nb:`wolfram`,xml:`xml`,xsl:`xsl`,xslt:`xsl`,yaml:`yaml`,yml:`yml`,zs:`zenscript`,zig:`zig`,zsh:`zsh`,sty:`tex`};function Y(e){if(dl.has(e))return dl.get(e)??`text`;if(pl[e]!=null)return pl[e];let t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(t!=null){if(dl.has(t[1]))return dl.get(t[1])??`text`;if(pl[t[1]]!=null)return pl[t[1]]??`text`}let n=e.match(/\.([^.]+)$/)?.[1]??``;return dl.has(n)?dl.get(n)??`text`:pl[n]??`text`}function ml(){return fl}function hl(){return Object.fromEntries(dl)}function gl(e){return e.replace(/\n$|\r\n$/,``)}function _l(e,t,n){let r=typeof n.lineInfo==`function`?n.lineInfo(t):n.lineInfo[t-1];if(r==null){let r=`processLine: line ${t}, contains no state.lineInfo`;throw console.error(r,{node:e,line:t,state:n}),Error(r)}return e.tagName=`div`,e.properties[`data-line`]=r.lineNumber,e.properties[`data-alt-line`]=r.altLineNumber,e.properties[`data-line-type`]=r.type,e.properties[`data-line-index`]=r.lineIndex,e.children.length===0&&e.children.push(ye(`
153
- `)),e}var vl=Symbol(`no-token`),yl=Symbol(`multiple-tokens`);function bl(e){let t=xl(e);if(t!=null)return t;let n=vl,r=[],i=[],a,o=()=>{if(i.length===0||a==null){i=[],a=void 0;return}if(i.length===1){let e=i[0];if(e?.type===`element`){Cl(e,a);for(let t of e.children)Sl(t)}else Sl(e);r.push(e),i=[],a=void 0;return}for(let e of i)Sl(e);r.push(x({tagName:`span`,properties:{"data-char":a},children:i})),i=[],a=void 0},s=e=>{if(e!==vl){if(e===yl){n=yl;return}if(n===vl){n=e;return}n!==e&&(n=yl)}};for(let t of e.children){let e=t.type===`element`?bl(t):vl;if(s(e),typeof e!=`number`){o(),r.push(t);continue}a!=null&&a!==e&&o(),a??=e,i.push(t)}return o(),e.children=r,n}function xl(e){let t=e.properties[`data-char`];if(typeof t==`number`)return t}function Sl(e){if(e.type===`element`){e.properties[`data-char`]=void 0;for(let t of e.children)Sl(t)}}function Cl(e,t){e.properties[`data-char`]=t}function wl(e={}){let{classPrefix:t=`__shiki_`,classSuffix:n=``,classReplacer:r=e=>e}=e,i=new Map;function a(e){return Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function o(e){let o=t+Tl(typeof e==`string`?e:a(e))+n;return o=r(o),i.has(o)||i.set(o,typeof e==`string`?e:{...e}),o}return{name:`@shikijs/transformers:style-to-class`,pre(e){if(!e.properties.style)return;let t=o(e.properties.style);delete e.properties.style,this.addClassToHast(e,t)},tokens(e){for(let t of e)for(let e of t){if(!e.htmlStyle)continue;let t=o(e.htmlStyle);e.htmlStyle={},e.htmlAttrs||={},e.htmlAttrs.class?e.htmlAttrs.class+=` ${t}`:e.htmlAttrs.class=t}},getClassRegistry(){return i},getCSS(){let e=``;for(let[t,n]of i.entries())e+=`.${t}{${typeof n==`string`?n:a(n)}}`;return e},clearRegistry(){i.clear()}}}function Tl(e,t=0){let n=3735928559^t,r=1103547991^t;for(let t=0,i;t<e.length;t++)i=e.charCodeAt(t),n=Math.imul(n^i,2654435761),r=Math.imul(r^i,1597334677);return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&r)+(n>>>0)).toString(36).slice(0,6)}function El(e=!1,t=!1){let n={lineInfo:[]},r=[{line(e){return delete e.properties.class,e},pre(t){let r=xe(t),i=[];if(r!=null){let t=1;for(let a of r.children)a.type===`element`&&(e&&bl(a),i.push(_l(a,t,n)),t++);r.children=i}return t},...e?{tokens(e){for(let t of e){let e=0;for(let n of t){let t=n;t.__lineChar??=e,e+=n.content.length}}},preprocess(e,t){t.mergeWhitespaces=`never`},span(e,t,n,r,i){if(i?.offset!=null&&i.content!=null){let t=i.__lineChar;return t!=null&&(e.properties[`data-char`]=t),e}return e}}:null}];return t&&r.push(Ol,Dl),{state:n,transformers:r,toClass:Dl}}var Dl=wl({classPrefix:`hl-`}),Ol={name:`token-style-normalizer`,tokens(e){for(let t of e)for(let e of t){if(e.htmlStyle!=null)continue;let t={};e.color!=null&&(t.color=e.color),e.bgColor!=null&&(t[`background-color`]=e.bgColor),e.fontStyle!=null&&e.fontStyle!==0&&(e.fontStyle&1&&(t[`font-style`]=`italic`),e.fontStyle&2&&(t[`font-weight`]=`bold`),e.fontStyle&4&&(t[`text-decoration`]=`underline`)),Object.keys(t).length>0&&(e.htmlStyle=t)}}};function X(e){return`--${e===`token`?`diffs-token`:`diffs`}-`}function kl({theme:e=b,highlighter:t,prefix:n}){let r=``;if(typeof e==`string`){let i=t.getTheme(e);r+=`color:${i.fg};`,r+=`background-color:${i.bg};`,r+=`${X(`global`)}fg:${i.fg};`,r+=`${X(`global`)}bg:${i.bg};`,r+=Al(i,n)}else{let n=t.getTheme(e.dark);r+=`${X(`global`)}dark:${n.fg};`,r+=`${X(`global`)}dark-bg:${n.bg};`,r+=Al(n,`dark`),n=t.getTheme(e.light),r+=`${X(`global`)}light:${n.fg};`,r+=`${X(`global`)}light-bg:${n.bg};`,r+=Al(n,`light`)}return r}function Al(e,t){t=t==null?``:`${t}-`;let n=``,r=e.colors?.[`gitDecoration.addedResourceForeground`]??e.colors?.[`terminal.ansiGreen`];r!=null&&(n+=`${X(`global`)}${t}addition-color:${r};`);let i=e.colors?.[`gitDecoration.deletedResourceForeground`]??e.colors?.[`terminal.ansiRed`];i!=null&&(n+=`${X(`global`)}${t}deletion-color:${i};`);let a=e.colors?.[`gitDecoration.modifiedResourceForeground`]??e.colors?.[`terminal.ansiBlue`];return a!=null&&(n+=`${X(`global`)}${t}modified-color:${a};`),n}function jl(e){let t=e.children[0];for(;t!=null;){if(t.type===`element`&&t.tagName===`code`)return t.children;t=`children`in t?t.children[0]:null}throw console.error(e),Error(`getLineNodes: Unable to find children`)}function Ml({lines:e,startingLine:t=0,totalLines:n=1/0,callback:r}){let i=Math.min(t+n,e.length),a=(()=>{let t=e.at(-1);return t===``||t===`
154
- `||t===`\r
155
- `||t===`\r`?Math.max(0,e.length-2):e.length-1})();for(let n=t;n<i;n++){let t=n===a;if(r({lineIndex:n,lineNumber:n+1,content:e[n],isLastLine:t})===!0||t)break}}function Nl(e){return e===``?[]:e.split(y)}var Pl={forcePlainText:!1};function Fl(e,t,{theme:n=b,tokenizeMaxLineLength:r,useTokenTransformer:i},{forcePlainText:a,startingLine:o,totalLines:s,lines:c}=Pl){a?(o??=0,s??=1/0):(o=0,s=1/0);let l=o>0||s<1/0,{state:u,transformers:d}=El(i),f=a?`text`:e.lang??Y(e.name),p=typeof n==`string`?t.getTheme(n).type:void 0,m=kl({theme:n,highlighter:t});u.lineInfo=e=>({type:`context`,lineIndex:e-1+o,lineNumber:e+o});let h=typeof n==`string`?{lang:f,theme:n,transformers:d,defaultColor:!1,cssVariablePrefix:X(`token`),tokenizeMaxLineLength:r}:{lang:f,themes:n,transformers:d,defaultColor:!1,cssVariablePrefix:X(`token`),tokenizeMaxLineLength:r},g=jl(t.codeToHast(l?Il(c??Nl(e.contents),o,s):gl(e.contents),h)),_=l?Array(o):g;return l&&_.push(...g),{code:_,themeStyles:m,baseThemeType:p}}function Il(e,t,n){let r=``;return Ml({lines:e,startingLine:t,totalLines:n,callback({content:e}){r+=e}}),r}function Ll(e){return(e.lang??Y(e.name))===`text`}function Rl(e,t){return e?.cacheKey===t?.cacheKey&&e?.contents===t?.contents&&e?.name===t?.name&&e?.lang===t?.lang}function zl(e,t){return ul(e.theme,t.theme)&&e.useTokenTransformer===t.useTokenTransformer&&e.tokenizeMaxLineLength===t.tokenizeMaxLineLength&&e.lineDiffType===t.lineDiffType&&e.maxLineDiffLength===t.maxLineDiffLength}var Z=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}},Bl=new class extends Z{};function Vl(e,t,n){return Bl.diff(e,t,n)}function Hl(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function Ul(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function Wl(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function Gl(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function Kl(e,t){return Wl(e,t,``)}function ql(e,t){return Gl(e,t,``)}function Jl(e,t){return t.slice(0,Yl(e,t))}function Yl(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function Xl(e){let t;for(t=e.length-1;t>=0&&e[t].match(/\s/);t--);return e.substring(t+1)}function Q(e){let t=e.match(/^\s*/);return t?t[0]:``}var Zl=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,Ql=RegExp(`[${Zl}]+|\\s+|[^${Zl}]`,`ug`);new class extends Z{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=[];for(let t of Array.from(r.segment(e))){let e=t.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}}else n=e.match(Ql)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&$l(n,i,r,e),n=e,r=null,i=null)}),(r||i)&&$l(n,i,r,null),e}};function $l(e,t,n,r){if(t&&n){let i=Q(t.value),a=Xl(t.value),o=Q(n.value),s=Xl(n.value);if(e){let r=Hl(i,o);e.value=Gl(e.value,o,r),t.value=Kl(t.value,r),n.value=Kl(n.value,r)}if(r){let e=Ul(a,s);r.value=Wl(r.value,s,e),t.value=ql(t.value,e),n.value=ql(n.value,e)}}else if(n){if(e){let e=Q(n.value);n.value=n.value.substring(e.length)}if(r){let e=Q(r.value);r.value=r.value.substring(e.length)}}else if(e&&r){let n=Q(r.value),i=Q(t.value),a=Xl(t.value),o=Hl(n,i);t.value=Kl(t.value,o);let s=Ul(Kl(n,o),a);t.value=ql(t.value,s),r.value=Wl(r.value,n,s),e.value=Gl(e.value,n,n.slice(0,n.length-s.length))}else if(r){let e=Q(r.value),n=Jl(Xl(t.value),e);t.value=ql(t.value,n)}else if(e){let n=Jl(Xl(e.value),Q(t.value));t.value=Kl(t.value,n)}}var eu=new class extends Z{tokenize(e){let t=RegExp(`(\\r?\\n)|[${Zl}]+|[^\\S\\n\\r]+|[^${Zl}]`,`ug`);return e.match(t)||[]}};function tu(e,t,n){return eu.diff(e,t,n)}var nu=new class extends Z{constructor(){super(...arguments),this.tokenize=iu}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
156
- `))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
157
- `))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
158
- `)&&(e=e.slice(0,-1)),t.endsWith(`
159
- `)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function ru(e,t,n){return nu.diff(e,t,n)}function iu(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
160
- `));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function au(e){return e==`.`||e==`!`||e==`?`}new class extends Z{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(au(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}},new class extends Z{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends Z{constructor(){super(...arguments),this.tokenize=iu}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(ou(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function ou(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=ou(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=ou(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}new class extends Z{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};var su={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function cu(e,t,n,r,i,a,o){let s;s=o?typeof o==`function`?{callback:o}:o:{},s.context===void 0&&(s.context=4);let c=s.context;if(s.newlineIsToken)throw Error(`newlineIsToken may not be used with patch-generation functions, only with diffing functions`);if(s.callback){let{callback:e}=s;ru(n,r,Object.assign(Object.assign({},s),{callback:t=>{e(l(t))}}))}else return l(ru(n,r,s));function l(n){if(!n)return;n.push({value:``,lines:[]});function r(e){return e.map(function(e){return` `+e})}let o=[],s=0,l=0,u=[],d=1,f=1;for(let e=0;e<n.length;e++){let t=n[e],i=t.lines||du(t.value);if(t.lines=i,t.added||t.removed){if(!s){let t=n[e-1];s=d,l=f,t&&(u=c>0?r(t.lines.slice(-c)):[],s-=u.length,l-=u.length)}for(let e of i)u.push((t.added?`+`:`-`)+e);t.added?f+=i.length:d+=i.length}else{if(s)if(i.length<=c*2&&e<n.length-2)for(let e of r(i))u.push(e);else{let e=Math.min(i.length,c);for(let t of r(i.slice(0,e)))u.push(t);let t={oldStart:s,oldLines:d-s+e,newStart:l,newLines:f-l+e,lines:u};o.push(t),s=0,l=0,u=[]}d+=i.length,f+=i.length}}for(let e of o)for(let t=0;t<e.lines.length;t++)e.lines[t].endsWith(`
161
- `)?e.lines[t]=e.lines[t].slice(0,-1):(e.lines.splice(t+1,0,`\`),t++);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:a,hunks:o}}}function lu(e,t){if(t||=su,Array.isArray(e)){if(e.length>1&&!t.includeFileHeaders)throw Error(`Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)`);return e.map(e=>lu(e,t)).join(`
162
- `)}let n=[];t.includeIndex&&e.oldFileName==e.newFileName&&n.push(`Index: `+e.oldFileName),t.includeUnderline&&n.push(`===================================================================`),t.includeFileHeaders&&(n.push(`--- `+e.oldFileName+(e.oldHeader===void 0?``:` `+e.oldHeader)),n.push(`+++ `+e.newFileName+(e.newHeader===void 0?``:` `+e.newHeader)));for(let t=0;t<e.hunks.length;t++){let r=e.hunks[t];r.oldLines===0&&--r.oldStart,r.newLines===0&&--r.newStart,n.push(`@@ -`+r.oldStart+`,`+r.oldLines+` +`+r.newStart+`,`+r.newLines+` @@`);for(let e of r.lines)n.push(e)}return n.join(`
163
- `)+`
164
- `}function uu(e,t,n,r,i,a,o){if(typeof o==`function`&&(o={callback:o}),o?.callback){let{callback:s}=o;cu(e,t,n,r,i,a,Object.assign(Object.assign({},o),{callback:e=>{s(e?lu(e,o.headerOptions):void 0)}}))}else{let s=cu(e,t,n,r,i,a,o);return s?lu(s,o?.headerOptions):void 0}}function du(e){let t=e.endsWith(`
165
- `),n=e.split(`
166
- `).map(e=>e+`
167
- `);return t?n.pop():n.push(n.pop().slice(0,-1)),n}function fu({line:e,spanStart:t,spanLength:n}){return{start:{line:e,character:t},end:{line:e,character:t+n},properties:{"data-diff-span":``},alwaysWrap:!0}}function pu({item:e,arr:t,enableJoin:n,isNeutral:r=!1,isLastItem:i=!1}){let a=t[t.length-1];if(a==null||i||!n){t.push([r?0:1,e.value]);return}let o=a[0]===0;if(r===o||r&&e.value.length===1&&!o){a[1]+=e.value;return}t.push([r?0:1,e.value])}function mu({diff:e,diffStyle:t,startingLine:n=0,totalLines:r=1/0,expandedHunks:i,collapsedContextThreshold:a=1,callback:o}){let s={finalHunk:e.hunks.at(-1),viewportStart:n,viewportEnd:n+r,isWindowedHighlight:n>0||r<1/0,splitCount:0,unifiedCount:0,shouldBreak(){if(!s.isWindowedHighlight)return!1;let e=s.unifiedCount>=n+r,i=s.splitCount>=n+r;return t===`unified`?e:(t===`split`||e)&&i},shouldSkip(e,r){if(!s.isWindowedHighlight)return!1;let i=s.unifiedCount+e<n,a=s.splitCount+r<n;return t===`unified`?i:(t===`split`||i)&&a},incrementCounts(e,n){(t===`unified`||t===`both`)&&(s.unifiedCount+=e),(t===`split`||t===`both`)&&(s.splitCount+=n)},isInWindow(e,n){if(!s.isWindowedHighlight)return!0;let r=s.isInUnifiedWindow(e),i=s.isInSplitWindow(n);return t===`unified`?r:t===`split`?i:r||i},isInUnifiedWindow(e){return!s.isWindowedHighlight||s.unifiedCount>=n-e&&s.unifiedCount<n+r},isInSplitWindow(e){return!s.isWindowedHighlight||s.splitCount>=n-e&&s.splitCount<n+r},emit(e,n=!1){return n||(t===`unified`?s.incrementCounts(1,0):t===`split`?s.incrementCounts(0,1):s.incrementCounts(1,1)),o(e)??!1}};hunkIterator:for(let[n,r]of e.hunks.entries()){if(s.shouldBreak())break;let o=hu(e.isPartial,r.collapsedBefore,i,n,a),c=(()=>{if(r!==s.finalHunk||!gu(e))return;let t=e.additionLines.length-(r.additionLineIndex+r.additionCount),n=e.deletionLines.length-(r.deletionLineIndex+r.deletionCount);if(t!==n)throw Error(`iterateOverDiff: trailing context mismatch (additions=${t}, deletions=${n}) for ${e.name}`);let o=Math.min(t,n);return hu(e.isPartial,o,i,e.hunks.length,a)})(),l=o.fromStart+o.fromEnd;function u(e,n){return c==null||c.collapsedLines<=0||c.fromStart+c.fromEnd>0?0:t===`unified`?e===r.unifiedLineStart+r.unifiedLineCount-1?c.collapsedLines:0:n===r.splitLineStart+r.splitLineCount-1?c.collapsedLines:0}function d(){if(o.collapsedLines===0)return 0;let e=o.collapsedLines;return o.collapsedLines=0,e}if(s.shouldSkip(l,l))s.incrementCounts(l,l),d();else{let e=r.unifiedLineStart-o.rangeSize,t=r.splitLineStart-o.rangeSize,i=r.deletionLineIndex-o.rangeSize,a=r.additionLineIndex-o.rangeSize,c=r.deletionStart-o.rangeSize,l=r.additionStart-o.rangeSize,u=0;for(;u<o.fromStart;){if(s.isInWindow(0,0)){if(s.emit({hunkIndex:n,hunk:r,collapsedBefore:0,collapsedAfter:0,type:`context-expanded`,deletionLine:{lineNumber:c+u,lineIndex:i+u,noEOFCR:!1,unifiedLineIndex:e+u,splitLineIndex:t+u},additionLine:{unifiedLineIndex:e+u,splitLineIndex:t+u,lineIndex:a+u,lineNumber:l+u,noEOFCR:!1}}))break hunkIterator}else s.incrementCounts(1,1);u++}for(e=r.unifiedLineStart-o.fromEnd,t=r.splitLineStart-o.fromEnd,i=r.deletionLineIndex-o.fromEnd,a=r.additionLineIndex-o.fromEnd,c=r.deletionStart-o.fromEnd,l=r.additionStart-o.fromEnd,u=0;u<o.fromEnd;){if(s.isInWindow(0,0)){if(s.emit({hunkIndex:n,hunk:r,collapsedBefore:d(),collapsedAfter:0,type:`context-expanded`,deletionLine:{lineNumber:c+u,lineIndex:i+u,noEOFCR:!1,unifiedLineIndex:e+u,splitLineIndex:t+u},additionLine:{unifiedLineIndex:e+u,splitLineIndex:t+u,lineIndex:a+u,lineNumber:l+u,noEOFCR:!1}}))break hunkIterator}else s.incrementCounts(1,1);u++}}let f=r.unifiedLineStart,p=r.splitLineStart,m=r.deletionLineIndex,h=r.additionLineIndex,g=r.deletionStart,_=r.additionStart,v=r.hunkContent.at(-1);for(let e of r.hunkContent){if(s.shouldBreak())break hunkIterator;let i=e===v;if(e.type===`context`){if(s.shouldSkip(e.lines,e.lines))s.incrementCounts(e.lines,e.lines),d();else{let t=0;for(;t<e.lines;){if(s.isInWindow(0,0)){let a=i&&t===e.lines-1,o=f+t,c=p+t;if(s.emit({hunkIndex:n,hunk:r,collapsedBefore:d(),collapsedAfter:u(o,c),type:`context`,deletionLine:{lineNumber:g+t,lineIndex:m+t,noEOFCR:a&&r.noEOFCRDeletions,unifiedLineIndex:o,splitLineIndex:c},additionLine:{unifiedLineIndex:o,splitLineIndex:c,lineIndex:h+t,lineNumber:_+t,noEOFCR:a&&r.noEOFCRAdditions}}))break hunkIterator}else s.incrementCounts(1,1);t++}}f+=e.lines,p+=e.lines,m+=e.lines,h+=e.lines,g+=e.lines,_+=e.lines}else{let a=Math.max(e.deletions,e.additions),o=e.deletions+e.additions;if(!s.shouldSkip(o,a)){let c=_u(s,e,t);for(let[l,v]of c)for(let c=l;c<v;c++){let l=u(f+c,t===`unified`?p+(c<e.deletions?c:c-e.deletions):p+c);if(s.emit(vu({hunkIndex:n,hunk:r,collapsedBefore:d(),collapsedAfter:l,diffStyle:t,index:c,unifiedLineIndex:f,splitLineIndex:p,additionLineIndex:h,deletionLineIndex:m,additionLineNumber:_,deletionLineNumber:g,content:e,isLastContent:i,unifiedCount:o,splitCount:a}),!0))break hunkIterator}}d(),s.incrementCounts(o,a),f+=o,p+=a,m+=e.deletions,h+=e.additions,g+=e.deletions,_+=e.additions}}if(c!=null){let{collapsedLines:t,fromStart:n,fromEnd:r}=c,i=n+r,a=0;for(;a<i;){if(s.shouldBreak())break hunkIterator;if(s.isInWindow(0,0)){let n=a===i-1;if(s.emit({hunkIndex:e.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:n?t:0,type:`context-expanded`,deletionLine:{lineNumber:g+a,lineIndex:m+a,noEOFCR:!1,unifiedLineIndex:f+a,splitLineIndex:p+a},additionLine:{unifiedLineIndex:f+a,splitLineIndex:p+a,lineIndex:h+a,lineNumber:_+a,noEOFCR:!1}}))break hunkIterator}else s.incrementCounts(1,1);a++}}}}function hu(e,t,n,r,i){if(t=Math.max(t,0),t===0||e)return{fromStart:0,fromEnd:0,rangeSize:t,collapsedLines:Math.max(t,0)};if(n===!0||t<=i)return{fromStart:t,fromEnd:0,rangeSize:t,collapsedLines:0};let a=n?.get(r),o=Math.min(Math.max(a?.fromStart??0,0),t),s=Math.min(Math.max(a?.fromEnd??0,0),t),c=o+s,l=c>=t;return{fromStart:l?t:o,fromEnd:l?0:s,rangeSize:t,collapsedLines:Math.max(t-c,0)}}function gu(e){let t=e.hunks.at(-1);return t==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0?!1:t.additionLineIndex+t.additionCount<e.additionLines.length||t.deletionLineIndex+t.deletionCount<e.deletionLines.length}function _u(e,t,n){if(!e.isWindowedHighlight)return[[0,n===`unified`?t.deletions+t.additions:Math.max(t.deletions,t.additions)]];let r=n!==`split`,i=n!==`unified`,a=n===`unified`?`unified`:`split`,o=[];function s(t,n){if(t+n<=e.viewportStart||t>=e.viewportEnd)return;let r=Math.max(0,e.viewportStart-t),i=Math.min(n,e.viewportEnd-t);return i>r?[r,i]:void 0}function c(e,n){return a===`split`?e:n===`additions`?[e[0]+t.deletions,e[1]+t.deletions]:e}function l(e,t){if(e==null)return;let[n,r]=c(e,t);r>n&&o.push([n,r])}if(r&&(l(s(e.unifiedCount,t.deletions),`deletions`),l(s(e.unifiedCount+t.deletions,t.additions),`additions`)),i&&(l(s(e.splitCount,t.deletions),`deletions`),l(s(e.splitCount,t.additions),`additions`)),o.length===0)return o;o.sort((e,t)=>e[0]-t[0]);let u=[o[0]];for(let[e,t]of o.slice(1)){let n=u[u.length-1];e<=n[1]?n[1]=Math.max(n[1],t):u.push([e,t])}return u}function vu({hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,diffStyle:i,index:a,unifiedLineIndex:o,splitLineIndex:s,additionLineIndex:c,deletionLineIndex:l,additionLineNumber:u,deletionLineNumber:d,content:f,isLastContent:p,unifiedCount:m,splitCount:h}){let g=a<f.deletions?o+a:void 0,_=i===`unified`?a>=f.deletions?o+a:void 0:a<f.additions?o+f.deletions+a:void 0,v=i===`unified`?s+(a<f.deletions?a:a-f.deletions):s+a,ee=a<f.deletions?l+a:void 0,te=a<f.deletions?d+a:void 0,ne=i===`unified`?a>=f.deletions?c+(a-f.deletions):void 0:a<f.additions?c+a:void 0,re=i===`unified`?a>=f.deletions?u+(a-f.deletions):void 0:a<f.additions?u+a:void 0,ie=i===`unified`?p&&a===f.deletions-1&&t.noEOFCRDeletions:p&&a===h-1&&t.noEOFCRDeletions,ae=i===`unified`?p&&a===m-1&&t.noEOFCRAdditions:p&&a===h-1&&t.noEOFCRAdditions,y=ee!=null&&te!=null&&g!=null?{lineNumber:te,lineIndex:ee,noEOFCR:ie,unifiedLineIndex:g,splitLineIndex:v}:void 0,oe=ne!=null&&re!=null&&_!=null?{unifiedLineIndex:_,splitLineIndex:v,lineIndex:ne,lineNumber:re,noEOFCR:ae}:void 0;if(y==null&&oe!=null)return{type:`change`,hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,deletionLine:void 0,additionLine:oe};if(y!=null&&oe==null)return{type:`change`,hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,deletionLine:y,additionLine:void 0};if(y==null||oe==null)throw Error(`iterateOverDiff: missing change line data`);return{type:`change`,hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,deletionLine:y,additionLine:oe}}var yu={forcePlainText:!1};function bu(e,t,n,{forcePlainText:r,startingLine:i,totalLines:a,expandedHunks:o,collapsedContextThreshold:s=1}=yu){r?(i??=0,a??=1/0):(i=0,a=1/0);let c=i>0||a<1/0,l=typeof n.theme==`string`?t.getTheme(n.theme).type:void 0,u=kl({theme:n.theme,highlighter:t}),d=r&&!c&&(e.unifiedLineCount>1e3||e.splitLineCount>1e3)?`none`:n.lineDiffType,f={deletionLines:[],additionLines:[]},{maxLineDiffLength:p}=n,m=!r&&!e.isPartial,h=r?o:void 0,g=new Map;function _(e){let t=m?0:e,n=g.get(t)??Su();return g.set(t,n),n}function v(e,t,n,r){if(c){let e=n.at(-1);(e==null||e.targetIndex+e.count!==t)&&(e={targetIndex:t,originalOffset:r.length,count:0},n.push(e)),e.count++}r.push(e)}mu({diff:e,diffStyle:`both`,startingLine:i,totalLines:a,expandedHunks:c?h:!0,collapsedContextThreshold:s,callback:({hunkIndex:t,additionLine:n,deletionLine:r,type:i})=>{let a=_(t),o=n==null?r.splitLineIndex:n.splitLineIndex;i===`change`&&n!=null&&r!=null&&xu({additionLine:e.additionLines[n.lineIndex],deletionLine:e.deletionLines[r.lineIndex],deletionLineIndex:a.deletionContent.length,additionLineIndex:a.additionContent.length,deletionDecorations:a.deletionDecorations,additionDecorations:a.additionDecorations,lineDiffType:d,maxLineDiffLength:p}),r!=null&&(v(e.deletionLines[r.lineIndex],r.lineIndex,a.deletionSegments,a.deletionContent),a.deletionInfo.push({type:i===`change`?`change-deletion`:i,lineNumber:r.lineNumber,altLineNumber:i===`change`?void 0:n.lineNumber??void 0,lineIndex:`${r.unifiedLineIndex},${o}`})),n!=null&&(v(e.additionLines[n.lineIndex],n.lineIndex,a.additionSegments,a.additionContent),a.additionInfo.push({type:i===`change`?`change-addition`:i,lineNumber:n.lineNumber,altLineNumber:i===`change`?void 0:r.lineNumber??void 0,lineIndex:`${n.unifiedLineIndex},${o}`}))}});for(let i of g.values()){if(i.deletionContent.length===0&&i.additionContent.length===0)continue;let a={name:e.prevName??e.name,contents:i.deletionContent.value},o={name:e.name,contents:i.additionContent.value},{deletionLines:s,additionLines:c}=Cu({deletionFile:a,deletionInfo:i.deletionInfo,deletionDecorations:i.deletionDecorations,additionFile:o,additionInfo:i.additionInfo,additionDecorations:i.additionDecorations,highlighter:t,options:n,languageOverride:r?`text`:e.lang});if(m){f.deletionLines=s,f.additionLines=c;continue}if(i.deletionSegments.length>0)for(let e of i.deletionSegments)for(let t=0;t<e.count;t++)f.deletionLines[e.targetIndex+t]=s[e.originalOffset+t];else f.deletionLines.push(...s);if(i.additionSegments.length>0)for(let e of i.additionSegments)for(let t=0;t<e.count;t++)f.additionLines[e.targetIndex+t]=c[e.originalOffset+t];else f.additionLines.push(...c)}return{code:f,themeStyles:u,baseThemeType:l}}function xu({deletionLine:e,additionLine:t,deletionLineIndex:n,additionLineIndex:r,deletionDecorations:i,additionDecorations:a,lineDiffType:o,maxLineDiffLength:s}){if(e==null||t==null||o===`none`||(e=gl(e),t=gl(t),e.length>s||t.length>s))return;let c=o===`char`?Vl(e,t):tu(e,t),l=[],u=[],d=o===`word-alt`,f=c.at(-1);for(let e of c){let t=e===f;!e.added&&!e.removed?(pu({item:e,arr:l,enableJoin:d,isNeutral:!0,isLastItem:t}),pu({item:e,arr:u,enableJoin:d,isNeutral:!0,isLastItem:t})):e.removed?pu({item:e,arr:l,enableJoin:d,isLastItem:t}):pu({item:e,arr:u,enableJoin:d,isLastItem:t})}let p=0;for(let e of l)e[0]===1&&i.push(fu({line:n,spanStart:p,spanLength:e[1].length})),p+=e[1].length;p=0;for(let e of u)e[0]===1&&a.push(fu({line:r,spanStart:p,spanLength:e[1].length})),p+=e[1].length}function Su(){return{deletionContent:{push(e){this.value+=e,this.length++},value:``,length:0},additionContent:{push(e){this.value+=e,this.length++},value:``,length:0},deletionInfo:[],additionInfo:[],deletionDecorations:[],additionDecorations:[],deletionSegments:[],additionSegments:[]}}function Cu({deletionFile:e,additionFile:t,deletionInfo:n,additionInfo:r,highlighter:i,deletionDecorations:a,additionDecorations:o,languageOverride:s,options:{theme:c=b,...l}}){let u=s??Y(e.name),d=s??Y(t.name),{state:f,transformers:p}=El(l.useTokenTransformer),m=typeof c==`string`?{...l,lang:`text`,theme:c,transformers:p,decorations:void 0,defaultColor:!1,cssVariablePrefix:X(`token`)}:{...l,lang:`text`,themes:c,transformers:p,decorations:void 0,defaultColor:!1,cssVariablePrefix:X(`token`)};return{deletionLines:e.contents===``?[]:(m.lang=u,f.lineInfo=n,m.decorations=a,jl(i.codeToHast(gl(e.contents),m))),additionLines:t.contents===``?[]:(m.lang=d,m.decorations=o,f.lineInfo=r,jl(i.codeToHast(gl(t.contents),m)))}}function wu(e){let t=e.lang??Y(e.name),n=e.lang??(e.prevName==null?`text`:Y(e.prevName));return t===`text`&&n===`text`}function Tu(e){let t=[];for(let n of e){let e=C.get(n);if(e==null)throw Error(`getResolvedLanguages: ${n} is not resolved. Please resolve languages before calling getResolvedLanguages`);t.push(e)}return t}function Eu(e){for(let t of Array.isArray(e)?e:[e])if(!C.has(t))return!1;return!0}async function Du(e){let t=[],n=[];for(let r of e){if(r===`text`||r===`ansi`)continue;let e=Xc(r)??Yc(r);`then`in e?n.push(e):t.push(e)}return n.length>0&&await Promise.all(n).then(e=>{for(let n of e){if(n==null)throw Error(`resolvedLanguages: unable to resolve language`);t.push(n)}}),t}function Ou(e){let t=[];for(let n of e){let e=q.get(n);if(e==null)throw Error(`getAllResolvedThemes: ${n} is unresolved, you must resolve all necessary themes before calling this function`);t.push(e)}return t}async function ku(e){let t=[],n=[];for(let r of e){let e=rl(r)??tl(r);`then`in e?n.push(e):t.push(e)}return n.length>0&&await Promise.all(n).then(e=>{for(let n of e)n!=null&&t.push(n)}),t}var Au=e(t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):r((n||=self).lru_map=n.lru_map||{})})(e,function(e){let t=Symbol(`newer`),n=Symbol(`older`);class r{constructor(e,t){typeof e!=`number`&&(t=e,e=0),this.size=0,this.limit=e,this.oldest=this.newest=void 0,this._keymap=new Map,t&&(this.assign(t),e<1&&(this.limit=this.size))}_markEntryAsUsed(e){e!==this.newest&&(e[t]&&(e===this.oldest&&(this.oldest=e[t]),e[t][n]=e[n]),e[n]&&(e[n][t]=e[t]),e[t]=void 0,e[n]=this.newest,this.newest&&(this.newest[t]=e),this.newest=e)}assign(e){let r,a=this.limit||Number.MAX_VALUE;this._keymap.clear();let o=e[Symbol.iterator]();for(let e=o.next();!e.done;e=o.next()){let o=new i(e.value[0],e.value[1]);if(this._keymap.set(o.key,o),r?(r[t]=o,o[n]=r):this.oldest=o,r=o,a--==0)throw Error(`overflow`)}this.newest=r,this.size=this._keymap.size}get(e){var t=this._keymap.get(e);return t?(this._markEntryAsUsed(t),t.value):void 0}set(e,r){var a=this._keymap.get(e);return a?(a.value=r,this._markEntryAsUsed(a),this):(this._keymap.set(e,a=new i(e,r)),this.newest?(this.newest[t]=a,a[n]=this.newest):this.oldest=a,this.newest=a,++this.size,this.size>this.limit&&this.shift(),this)}shift(){var e=this.oldest;if(e)return this.oldest[t]?(this.oldest=this.oldest[t],this.oldest[n]=void 0):(this.oldest=void 0,this.newest=void 0),e[t]=e[n]=void 0,this._keymap.delete(e.key),--this.size,[e.key,e.value]}find(e){let t=this._keymap.get(e);return t?t.value:void 0}has(e){return this._keymap.has(e)}delete(e){var r=this._keymap.get(e);return r?(this._keymap.delete(r.key),r[t]&&r[n]?(r[n][t]=r[t],r[t][n]=r[n]):r[t]?(r[t][n]=void 0,this.oldest=r[t]):r[n]?(r[n][t]=void 0,this.newest=r[n]):this.oldest=this.newest=void 0,this.size--,r.value):void 0}clear(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()}keys(){return new o(this.oldest)}values(){return new s(this.oldest)}entries(){return this}[Symbol.iterator](){return new a(this.oldest)}forEach(e,n){typeof n!=`object`&&(n=this);let r=this.oldest;for(;r;)e.call(n,r.value,r.key,this),r=r[t]}toJSON(){for(var e=Array(this.size),n=0,r=this.oldest;r;)e[n++]={key:r.key,value:r.value},r=r[t];return e}toString(){for(var e=``,n=this.oldest;n;)e+=String(n.key)+`:`+n.value,n=n[t],n&&(e+=` < `);return e}}e.LRUMap=r;function i(e,r){this.key=e,this.value=r,this[t]=void 0,this[n]=void 0}function a(e){this.entry=e}a.prototype[Symbol.iterator]=function(){return this},a.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:[e.key,e.value]}):{done:!0,value:void 0}};function o(e){this.entry=e}o.prototype[Symbol.iterator]=function(){return this},o.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:e.key}):{done:!0,value:void 0}};function s(e){this.entry=e}s.prototype[Symbol.iterator]=function(){return this},s.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:e.value}):{done:!0,value:void 0}}})}))(),1),ju=Symbol(`IGNORE_RESPONSE`),Mu=class extends Error{constructor(){super(`WorkerPoolManager: operation canceled because the pool terminated`)}},Nu=class{highlighter;preferredHighlighter;renderOptions;initialized=!1;workers=[];taskQueue=new Map;pendingTasks=new Map;nextRequestId=0;themeSubscribers=new Set;workersFailed=!1;instanceRequestMap=new Map;statSubscribers=new Set;fileCache;diffCache;_queuedBroadcast;lifecycleGeneration=0;constructor(e,{langs:t,theme:n=b,useTokenTransformer:r=!1,lineDiffType:i=`word-alt`,maxLineDiffLength:a=1e3,tokenizeMaxLineLength:o=1e3,preferredHighlighter:s=`shiki-js`}){this.options=e,this.preferredHighlighter=s,this.renderOptions={theme:n,useTokenTransformer:r,lineDiffType:i,maxLineDiffLength:a,tokenizeMaxLineLength:o},this.fileCache=new Au.default.LRUMap(e.totalASTLRUCacheSize??100),this.diffCache=new Au.default.LRUMap(e.totalASTLRUCacheSize??100),this.queueInitialization(t)}isWorkingPool(){return!this.workersFailed}getFileResultCache(e){return e.cacheKey==null?void 0:this.fileCache.get(e.cacheKey)}getDiffResultCache(e){return e.cacheKey==null?void 0:this.diffCache.get(e.cacheKey)}inspectCaches(){let{fileCache:e,diffCache:t}=this;return{fileCache:e,diffCache:t}}evictFileFromCache(e){try{return this.fileCache.delete(e)!==void 0}finally{this.queueBroadcastStateChanges()}}evictDiffFromCache(e){try{return this.diffCache.delete(e)!==void 0}finally{this.queueBroadcastStateChanges()}}async setRenderOptions({theme:e=b,useTokenTransformer:t=!1,lineDiffType:n=`word-alt`,maxLineDiffLength:r=1e3,tokenizeMaxLineLength:i=1e3}){let{lifecycleGeneration:a}=this;try{let o={theme:e,useTokenTransformer:t,lineDiffType:n,maxLineDiffLength:r,tokenizeMaxLineLength:i};if(this.isInitialized()||await this.initialize(),!this.isCurrentLifecycle(a)||zl(o,this.renderOptions))return;let s=cl(e),c=[];if(ul(o.theme,this.renderOptions.theme)||(c=ll(s)?Ou(s):await ku(s)),!this.isCurrentLifecycle(a))return;if(this.highlighter!=null)el(c,this.highlighter),await this.setRenderOptionsOnWorkers(o,c);else{let[e]=await Promise.all([al({themes:s,langs:[`text`],preferredHighlighter:this.preferredHighlighter}),this.setRenderOptionsOnWorkers(o,c)]);if(!this.isCurrentLifecycle(a))return;this.highlighter=e}if(!this.isCurrentLifecycle(a))return;this.renderOptions=o,this.diffCache.clear(),this.fileCache.clear();for(let e of this.themeSubscribers)e.rerender()}catch(e){if(e instanceof Mu||!this.isCurrentLifecycle(a))return;throw e}}getFileRenderOptions(){let{tokenizeMaxLineLength:e,theme:t,useTokenTransformer:n}=this.renderOptions;return{theme:t,useTokenTransformer:n,tokenizeMaxLineLength:e}}getDiffRenderOptions(){return{...this.renderOptions}}async setRenderOptionsOnWorkers(e,t){if(this.workersFailed)return;this.isInitialized()||await this.initialize();let n=[];for(let r of this.workers){if(!r.initialized)throw console.log({managedWorker:r}),Error(`setRenderOptionsOnWorkers: Somehow we have an uninitialized worker`);n.push(new Promise((n,i)=>{let a=this.generateRequestId(),o={type:`set-render-options`,id:a,request:{type:`set-render-options`,id:a,renderOptions:e,resolvedThemes:t},resolve:n,reject:i,requestStart:Date.now()};this.pendingTasks.set(a,o),r.worker.postMessage(o.request)}))}await Promise.all(n)}subscribeToThemeChanges(e){return this.themeSubscribers.add(e),this.queueBroadcastStateChanges(),()=>{this.unsubscribeToThemeChanges(e),this.queueBroadcastStateChanges()}}unsubscribeToThemeChanges(e){this.themeSubscribers.delete(e),this.queueBroadcastStateChanges()}subscribeToStatChanges(e){return this.statSubscribers.add(e),e(this.getStats()),()=>{this.statSubscribers.delete(e)}}queueBroadcastStateChanges(){this._queuedBroadcast??=requestAnimationFrame(this._broadcastStateChanges)}_broadcastStateChanges=()=>{this._queuedBroadcast!=null&&(cancelAnimationFrame(this._queuedBroadcast),this._queuedBroadcast=void 0);let e=this.getStats();for(let t of this.statSubscribers)t(e)};cleanUpPendingTasks(e){this.taskQueue.delete(e);let t=this.instanceRequestMap.get(e);t!=null&&(this.pendingTasks.delete(t),this.instanceRequestMap.delete(e)),this.queueBroadcastStateChanges()}isInitialized(){return this.initialized===!0}async initialize(e=[]){if(this.initialized!==!0)if(this.initialized===!1){let{lifecycleGeneration:t}=this;this.initialized=new Promise((n,r)=>{(async()=>{try{let r=cl(this.renderOptions.theme),i=[];if(i=ll(r)?Ou(r):await ku(r),!this.isCurrentLifecycle(t)){n();return}let a=[];if(a=Eu(e)?Tu(e):await Du(e),!this.isCurrentLifecycle(t)){n();return}let[o]=await Promise.all([al({themes:r,langs:[`text`,...e],preferredHighlighter:this.preferredHighlighter}),this.initializeWorkers(i,a)]);if(!this.isCurrentLifecycle(t)){this.terminateWorkers(),n();return}this.highlighter=o,this.initialized=!0,this.diffCache.clear(),this.fileCache.clear(),this.drainQueue(),this.queueBroadcastStateChanges(),n()}catch(e){if(e instanceof Mu||!this.isCurrentLifecycle(t)){n();return}this.initialized=!1,this.workersFailed=!0,this.queueBroadcastStateChanges(),r(e)}})()}),this.queueBroadcastStateChanges()}else return this.initialized}async initializeWorkers(e,t){this.workersFailed=!1;let n=[],r=ml(),i=r>0?hl():void 0;this.workers.length>0&&this.terminateWorkers();for(let a=0;a<(this.options.poolSize??8);a++){let a=this.options.workerFactory(),o={worker:a,request_id:void 0,initialized:!1,langs:new Set([`text`,...t.map(({name:e})=>e)]),customExtensionsVersion:0};a.addEventListener(`message`,e=>{this.handleWorkerMessage(o,e.data)}),a.addEventListener(`error`,e=>console.error(`Worker error:`,e,o)),this.workers.push(o),n.push(new Promise((n,a)=>{let s=this.generateRequestId(),c={type:`initialize`,id:s,request:{type:`initialize`,id:s,renderOptions:this.renderOptions,preferredHighlighter:this.preferredHighlighter,resolvedThemes:e,resolvedLanguages:t,customExtensionsVersion:i==null?void 0:r,customExtensionMap:i},resolve(){o.initialized=!0,n()},reject:a,requestStart:Date.now()};this.pendingTasks.set(s,c),this.executeTask(o,c)}))}await Promise.all(n)}drainQueue=()=>{if(this._queuedDrain=void 0,!(this.initialized!==!0||this.taskQueue.size===0)){for(let[e,t]of this.taskQueue){if(this.instanceRequestMap.has(e))continue;let n=Fu(t),r=this.getAvailableWorker(n);if(r==null)break;this.assignWorkerToTask(t,r),this.resolveLanguagesAndExecuteTask(r,t,n)}this.queueBroadcastStateChanges()}};highlightFileAST(e,t){if(!Ll(t)){for(let n of[this.taskQueue,this.pendingTasks.values()])for(let r of n)if(`instance`in r&&r.instance===e&&r.request.type===`file`&&Rl(t,r.request.file))return;this.submitTask(e,{type:`file`,file:t})}}getPlainFileAST(e,t,n,r){if(this.highlighter==null){this.queueInitialization();return}return Fl(e,this.highlighter,this.renderOptions,{forcePlainText:!0,startingLine:t,totalLines:n,lines:r})}highlightDiffAST(e,t){if(!wu(t)){for(let n of[this.taskQueue,this.pendingTasks.values()])for(let r of n)if(`instance`in r&&r.instance===e&&r.request.type===`diff`&&r.request.diff===t)return;this.submitTask(e,{type:`diff`,diff:t})}}getPlainDiffAST(e,t,n,r,i){return this.highlighter==null?void 0:bu(e,this.highlighter,this.renderOptions,{forcePlainText:!0,startingLine:t,totalLines:n,expandedHunks:r,collapsedContextThreshold:i})}terminate(){this.lifecycleGeneration++,this.cancelPendingAsyncWorkerTasks(),this.terminateWorkers(),this.fileCache.clear(),this.diffCache.clear(),this.instanceRequestMap.clear(),this.taskQueue.clear(),this.pendingTasks.clear(),this.highlighter=void 0,this.initialized=!1,this.workersFailed=!1,this.queueBroadcastStateChanges()}isCurrentLifecycle(e){return this.lifecycleGeneration===e}queueInitialization(e){this.initialize(e).catch(e=>{console.error(e)})}cancelPendingAsyncWorkerTasks(){let e=new Mu;for(let t of this.pendingTasks.values())`reject`in t&&t.reject(e)}terminateWorkers(){for(let e of this.workers)e.worker.terminate();this.workers.length=0}getStats(){return{managerState:this.initialized===!1?`waiting`:this.initialized===!0?`initialized`:`initializing`,totalWorkers:this.workers.length,workersFailed:this.workersFailed,busyWorkers:this.workers.filter(e=>e.request_id!=null).length,queuedTasks:this.taskQueue.size,pendingTasks:this.pendingTasks.size,themeSubscribers:this.themeSubscribers.size,fileCacheSize:this.fileCache.size,diffCacheSize:this.diffCache.size}}submitTask(e,t){this.initialized===!1&&this.queueInitialization();let n=this.generateRequestId(),r=Date.now(),i=(()=>{switch(t.type){case`file`:return{type:`file`,id:n,request:{...t,id:n},instance:e,requestStart:r};case`diff`:return{type:`diff`,id:n,request:{...t,id:n},instance:e,requestStart:r}}})();this.taskQueue.set(e,i),this.queueDrain()}async resolveLanguagesAndExecuteTask(e,t,n){try{let r=n.filter(t=>!e.langs.has(t));r.length>0&&(Eu(r)?t.request.resolvedLanguages=Tu(r):t.request.resolvedLanguages=await Du(r)),this.executeTask(e,t)}catch{this.cleanWorkerAndTask(e,t)}}handleWorkerMessage(e,t){let n=this.pendingTasks.get(t.id);try{if(n==null)throw ju;if(t.type===`error`){let e=Error(t.error);throw t.stack&&(e.stack=t.stack),`reject`in n?n.reject(e):n.instance.onHighlightError(e),e}else{if(`instance`in n&&this.instanceRequestMap.get(n.instance)!==t.id)throw ju;switch(t.requestType){case`initialize`:if(n.type!==`initialize`)throw Error(`handleWorkerMessage: task/response dont match`);this.syncCustomExtensionVersion(e,n.request),n.resolve();break;case`set-render-options`:if(n.type!==`set-render-options`)throw Error(`handleWorkerMessage: task/response dont match`);n.resolve();break;case`file`:{if(n.type!==`file`)throw Error(`handleWorkerMessage: task/response dont match`);let{result:r,options:i}=t,{instance:a,request:o}=n;this.syncCustomExtensionVersion(e,o),o.file.cacheKey!=null&&this.fileCache.set(o.file.cacheKey,{result:r,options:i}),a.onHighlightSuccess(o.file,r,i);break}case`diff`:{if(n.type!==`diff`)throw Error(`handleWorkerMessage: task/response dont match`);let{result:r,options:i}=t,{instance:a,request:o}=n;this.syncCustomExtensionVersion(e,o),o.diff.cacheKey!=null&&this.diffCache.set(o.diff.cacheKey,{result:r,options:i}),a.onHighlightSuccess(o.diff,r,i);break}}}}catch(e){e!==ju&&console.error(e,n,t)}this.cleanWorkerAndTask(e,n),this.queueBroadcastStateChanges(),this.taskQueue.size>0&&this.queueDrain()}_queuedDrain;queueDrain(){this._queuedDrain??(this._queuedDrain=Promise.resolve().then(this.drainQueue),this.queueBroadcastStateChanges())}assignWorkerToTask(e,t){t.request_id=e.id,`instance`in e&&(this.taskQueue.delete(e.instance),this.instanceRequestMap.set(e.instance,e.id)),this.pendingTasks.set(e.id,e)}cleanWorkerAndTask(e,t){e.request_id=void 0,t!=null&&(`instance`in t&&this.instanceRequestMap.delete(t.instance),this.pendingTasks.delete(t.id))}executeTask(e,t){Pu(t.request)&&this.maybeAttachCustomExtensions(e,t.request),this.assignWorkerToTask(t,e);for(let n of Fu(t))e.langs.add(n);try{e.worker.postMessage(t.request)}catch(n){this.cleanWorkerAndTask(e,t),console.error(`Failed to post message to worker:`,n),`instance`in t?t.instance.onHighlightError(n):`reject`in t&&t.reject(n)}this.queueBroadcastStateChanges()}maybeAttachCustomExtensions(e,t){if(t.customExtensionsVersion!=null)return;let n=ml();e.customExtensionsVersion>=n||(t.customExtensionsVersion=n,t.customExtensionMap=hl())}syncCustomExtensionVersion(e,t){t.customExtensionsVersion!=null&&(e.customExtensionsVersion=t.customExtensionsVersion)}getAvailableWorker(e){let t;for(let n of this.workers){if(n.request_id!=null||!n.initialized)continue;if(t=n,e.length===0)break;let r=!0;for(let t of e)if(!n.langs.has(t)){r=!1;break}if(r)break}return t}generateRequestId(){return`req_${++this.nextRequestId}`}};function Pu(e){return e.type===`initialize`||e.type===`file`||e.type===`diff`}function Fu(e){let t=new Set;if(e.type===`initialize`||e.type===`set-render-options`)return[];switch(e.type){case`file`:t.add(e.request.file.lang??Y(e.request.file.name));break;case`diff`:t.add(e.request.diff.lang??Y(e.request.diff.name)),t.add(e.request.diff.lang??Y(e.request.diff.prevName??`-`));break}return t.delete(`text`),Array.from(t)}var Iu;function Lu({poolOptions:e,highlighterOptions:t}){return Iu??=new Nu(e,t),Iu}function Ru(){Iu!=null&&(Iu.terminate(),Iu=void 0)}var zu=e(n(),1),$=g(),Bu=(0,zu.createContext)(void 0),Vu=0;function Hu({children:e,poolOptions:t,highlighterOptions:n}){let[r]=(0,zu.useState)(()=>{if(!(typeof window>`u`))return Lu({poolOptions:t,highlighterOptions:n})});return(0,zu.useInsertionEffect)(()=>{if(r!=null)return Vu++,()=>{Vu--}},[r]),(0,zu.useEffect)(()=>()=>{Vu===0&&Ru()},[]),(0,$.jsx)(Bu.Provider,{value:r,children:e})}function Uu(){return(0,zu.useContext)(Bu)}function Wu(e){return u({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var Gu={light:`pierre-light`,dark:`pierre-dark`};function Ku(e){return e===`dark`?Gu.dark:Gu.light}var qu=2166136261,Ju=16777619,Yu=2654435769,Xu=2246822507;function Zu(e,t=qu,n=Ju){let r=t>>>0;for(let t=0;t<e.length;t+=1)r^=e.charCodeAt(t),r=Math.imul(r,n)>>>0;return r>>>0}function Qu(e,t=`diff-panel`){let n=e.trim(),r=Zu(n,qu,Ju).toString(36),i=Zu(n,Yu,Xu).toString(36);return`${t}:${n.length}:${r}:${i}`}var $u=v();function ed(e){return h(`flex items-center justify-between gap-2 px-4`,_&&e!==`sheet`?`drag-region h-[52px] border-b border-border wco:h-[env(titlebar-area-height)] wco:pr-[calc(100vw-env(titlebar-area-width)-env(titlebar-area-x)+1em)]`:`h-12 wco:max-h-[env(titlebar-area-height)]`)}function td(e){let t=(0,$u.c)(10),n=_&&e.mode!==`sheet`,r=e.mode===`inline`?`w-[42vw] min-w-[360px] max-w-[560px] shrink-0 border-l border-border`:`w-full`,i;t[0]===r?i=t[1]:(i=h(`flex h-full min-w-0 flex-col bg-background`,r),t[0]=r,t[1]=i);let a;t[2]!==e.header||t[3]!==e.mode||t[4]!==n?(a=n?(0,$.jsx)(`div`,{className:ed(e.mode),children:e.header}):(0,$.jsx)(`div`,{className:`border-b border-border`,children:(0,$.jsx)(`div`,{className:ed(e.mode),children:e.header})}),t[2]=e.header,t[3]=e.mode,t[4]=n,t[5]=a):a=t[5];let o;return t[6]!==e.children||t[7]!==i||t[8]!==a?(o=(0,$.jsxs)(`div`,{className:i,children:[a,e.children]}),t[6]=e.children,t[7]=i,t[8]=a,t[9]=o):o=t[9],o}function nd(){let e=(0,$u.c)(4),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(d,{className:`absolute left-0 top-1/2 size-6 -translate-y-1/2 rounded-md border border-border/50`}),n=(0,$.jsx)(d,{className:`absolute right-0 top-1/2 size-6 -translate-y-1/2 rounded-md border border-border/50`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsxs)(`div`,{className:`relative min-w-0 flex-1`,children:[t,n,(0,$.jsxs)(`div`,{className:`flex gap-1 overflow-hidden px-8 py-0.5`,children:[(0,$.jsx)(d,{className:`h-6 w-16 shrink-0 rounded-md`}),(0,$.jsx)(d,{className:`h-6 w-24 shrink-0 rounded-md`}),(0,$.jsx)(d,{className:`h-6 w-24 shrink-0 rounded-md max-sm:hidden`})]})]}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsxs)($.Fragment,{children:[r,(0,$.jsxs)(`div`,{className:`flex shrink-0 gap-1`,children:[(0,$.jsx)(d,{className:`size-7 rounded-md`}),(0,$.jsx)(d,{className:`size-7 rounded-md`})]})]}),e[3]=i):i=e[3],i}function rd(e){let t=(0,$u.c)(7),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-border/50 px-3 py-2`,children:[(0,$.jsx)(d,{className:`h-4 w-32 rounded-full`}),(0,$.jsx)(d,{className:`ml-auto h-4 w-20 rounded-full`})]}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(d,{className:`h-3 w-full rounded-full`}),(0,$.jsx)(d,{className:`h-3 w-full rounded-full`}),(0,$.jsx)(d,{className:`h-3 w-10/12 rounded-full`}),(0,$.jsx)(d,{className:`h-3 w-11/12 rounded-full`}),(0,$.jsx)(d,{className:`h-3 w-9/12 rounded-full`})]}),t[1]=r):r=t[1];let i;t[2]===e.label?i=t[3]:(i=(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-4 px-3 py-4`,children:[r,(0,$.jsx)(`span`,{className:`sr-only`,children:e.label})]}),t[2]=e.label,t[3]=i);let a;return t[4]!==e.label||t[5]!==i?(a=(0,$.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col p-2`,children:(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-hidden rounded-md border border-border/60 bg-card/25`,role:`status`,"aria-live":`polite`,"aria-label":e.label,children:[n,i]})}),t[4]=e.label,t[5]=i,t[6]=a):a=t[6],a}export{le as $,zt as A,ge as B,ul as C,al as D,ol as E,be as F,ve as G,b as H,ye as I,ie as J,oe as K,ce as L,Ce as M,Se as N,$c as O,x as P,ae as Q,te as R,Y as S,cl as T,he as U,_e as V,ee as W,de as X,ne as Y,ue as Z,Ll as _,Zu as a,Ml as b,Bu as c,wu as d,y as et,bu as f,Rl as g,zl as h,Qu as i,we as j,Wt as k,Hu as l,uu as m,rd as n,re as nt,Ku as o,mu as p,se as q,td as r,me as rt,Wu as s,nd as t,pe as tt,Uu as u,Fl as v,ll as w,gl as x,Nl as y,fe as z};