@marimo-team/frontend 0.15.4 → 0.16.0-dev96986

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 (325) hide show
  1. package/dist/assets/ConnectedDataExplorerComponent-CNLoZkWr.js +19 -0
  2. package/dist/assets/{ImageComparisonComponent-CEXMKKA4.js → ImageComparisonComponent-SX7fDaTK.js} +1 -1
  3. package/dist/assets/{VegaLite-Bt14Ds9k.js → VegaLite-MJUW3b7C.js} +6 -6
  4. package/dist/assets/_baseEach-9_logFrf.js +1 -0
  5. package/dist/assets/_baseMap-NzEbKt5c.js +1 -0
  6. package/dist/assets/_baseUniq-C5LFcyNC.js +1 -0
  7. package/dist/assets/_createAggregator-ZRm2b6Zm.js +1 -0
  8. package/dist/assets/agent-panel-BBd11wNX.js +287 -0
  9. package/dist/assets/agent-panel-D92Mfy1i.css +1 -0
  10. package/dist/assets/{any-language-editor-DiwNT6zp.js → any-language-editor-DwAaEQfS.js} +1 -1
  11. package/dist/assets/architectureDiagram-W76B3OCA-BJmVXUoW.js +36 -0
  12. package/dist/assets/{between-horizontal-start-FyewyCGn.js → between-horizontal-start-KiwU-a3C.js} +1 -1
  13. package/dist/assets/{blockDiagram-QIGZ2CNN-BrOkAf_c.js → blockDiagram-QIGZ2CNN-DzxZjE7B.js} +1 -1
  14. package/dist/assets/{c4Diagram-FPNF74CW-BHPzDxE2.js → c4Diagram-FPNF74CW-DjmldG_J.js} +5 -5
  15. package/dist/assets/channel-DHcKBVM4.js +1 -0
  16. package/dist/assets/chat-panel-DgJZr0eS.js +3 -0
  17. package/dist/assets/{chunk-4BX2VUAB-DLxaCNYh.js → chunk-4BX2VUAB-EUTQThiZ.js} +1 -1
  18. package/dist/assets/{chunk-55IACEB6-DdzvO3HR.js → chunk-55IACEB6-DZAiDJxy.js} +1 -1
  19. package/dist/assets/{chunk-FMBD7UC4-R5o-nSiG.js → chunk-FMBD7UC4-Bd0Czs-J.js} +1 -1
  20. package/dist/assets/{chunk-K7UQS3LO-DxaMrGgG.js → chunk-K7UQS3LO-DEKMIknX.js} +1 -1
  21. package/dist/assets/{chunk-QN33PNHL-DqS9-FYm.js → chunk-QN33PNHL-E0jwHU_n.js} +1 -1
  22. package/dist/assets/{chunk-QZHKN3VN-BZ-TzajS.js → chunk-QZHKN3VN-BzaIHJbq.js} +1 -1
  23. package/dist/assets/{chunk-TVAH2DTR-BsgP2dyv.js → chunk-TVAH2DTR-CZFYvqnm.js} +1 -1
  24. package/dist/assets/{chunk-TZMSLE5B-D-h3ahXI.js → chunk-TZMSLE5B-BNqnFjtv.js} +1 -1
  25. package/dist/assets/{circle-play-CQtRZ-rT.js → circle-play-D3J_mYrF.js} +1 -1
  26. package/dist/assets/classDiagram-KNZD7YFC-D-xwLnlX.js +1 -0
  27. package/dist/assets/classDiagram-v2-RKCZMP56-D-xwLnlX.js +1 -0
  28. package/dist/assets/{clear-button-BY6Z_ViL.js → clear-button-ifzRuAR3.js} +1 -1
  29. package/dist/assets/clone-CSxIll62.js +1 -0
  30. package/dist/assets/command-palette-D2fdVSET.js +1 -0
  31. package/dist/assets/common-Ku-cF_2J.js +1 -0
  32. package/dist/assets/{compile-Ct_jzdKr.js → compile-BgZlHW1c.js} +1 -1
  33. package/dist/assets/cose-bilkent-S5V4N54A-CVM83SqK.js +1 -0
  34. package/dist/assets/dagre-5GWH7T2D-ouQPkxT3.js +4 -0
  35. package/dist/assets/{data-grid-overlay-editor-BN_wulc3.js → data-grid-overlay-editor-B47j5GJJ.js} +1 -1
  36. package/dist/assets/datasources-panel-Bt41Zir-.js +1 -0
  37. package/dist/assets/{dependency-graph-panel-BOmSCZf7.js → dependency-graph-panel-CZC_B7pK.js} +4 -4
  38. package/dist/assets/diagram-N5W7TBWH-CQ817ZdR.js +24 -0
  39. package/dist/assets/diagram-QEK2KX5R-DOK_psUO.js +43 -0
  40. package/dist/assets/diagram-S2PKOQOG-CVljmOW8.js +24 -0
  41. package/dist/assets/{documentation-panel-BxjJO_Gw.js → documentation-panel-C7yIvGg1.js} +1 -1
  42. package/dist/assets/edit-page-CyTMQV2u.js +129 -0
  43. package/dist/assets/{ellipsis-vertical-UHbmjI2n.js → ellipsis-vertical-C7FjlUsY.js} +1 -1
  44. package/dist/assets/{empty-state-BIBXzY_0.js → empty-state-DIOGM_CU.js} +1 -1
  45. package/dist/assets/{erDiagram-AWTI2OKA-E84mAle_.js → erDiagram-AWTI2OKA-DYu8cEdc.js} +1 -1
  46. package/dist/assets/{error-panel-MEvQ6K7h.js → error-panel-Ddb8RkFG.js} +1 -1
  47. package/dist/assets/file-explorer-panel-Oy9DbyFP.js +1 -0
  48. package/dist/assets/{flowDiagram-PVAE7QVJ-DfbIRSAW.js → flowDiagram-PVAE7QVJ-CmvW5iTb.js} +1 -1
  49. package/dist/assets/{ganttDiagram-OWAHRB6G-DR4HZ1z_.js → ganttDiagram-OWAHRB6G-BaKQlCaT.js} +4 -4
  50. package/dist/assets/gitGraphDiagram-NY62KEGX-CWO24eP6.js +65 -0
  51. package/dist/assets/{glide-data-editor-nNmo1lPq.js → glide-data-editor-CNDLEJ9a.js} +11 -11
  52. package/dist/assets/graph-BZKTtxsc.js +1 -0
  53. package/dist/assets/home-page-Bvwppn9N.js +9 -0
  54. package/dist/assets/{index-VPWqq2Pg.js → index-0XOUPdwT.js} +1 -1
  55. package/dist/assets/{index-uacyUula.js → index-BH7f3aiU.js} +1 -1
  56. package/dist/assets/{index-Dt9UWeWn.js → index-BJVyzkx5.js} +1 -1
  57. package/dist/assets/{index-BAH034Ue.js → index-B_d_JZGI.js} +1 -1
  58. package/dist/assets/{index-CB2pnVQG.js → index-BgXbBA39.js} +1 -1
  59. package/dist/assets/{index-B8llrTSo.js → index-Brf2DwUM.js} +1 -1
  60. package/dist/assets/{index-BLu5CX6z.js → index-CXrWwFX6.js} +1 -1
  61. package/dist/assets/{index-DyLSuOH1.js → index-CZaurnA9.js} +1 -1
  62. package/dist/assets/{index-BFSnz7iM.js → index-CerjupfZ.js} +1 -1
  63. package/dist/assets/{index-B7yXbrLa.js → index-D-tZfElD.js} +1 -1
  64. package/dist/assets/{index-c6If577Q.js → index-D3PqGupX.js} +1 -1
  65. package/dist/assets/{index-CSgxTUzD.js → index-DCkzth56.js} +1 -1
  66. package/dist/assets/{index-DWOaniGT.js → index-DFrGFNW1.js} +1 -1
  67. package/dist/assets/{index-CPN7TRA1.js → index-DZhOPkOB.js} +1 -1
  68. package/dist/assets/index-DadI618h.css +1 -0
  69. package/dist/assets/{index-DqzMPAC8.js → index-DkntzpX4.js} +2 -2
  70. package/dist/assets/{index-B1_GXGaP.js → index-DmgwT3sx.js} +1 -1
  71. package/dist/assets/index-PmY0x4Zd.js +578 -0
  72. package/dist/assets/{index-Bq516OmX.js → index-WXJFkQHg.js} +1 -1
  73. package/dist/assets/{index-DSU75csX.js → index-qE8lHQ-N.js} +1 -1
  74. package/dist/assets/{index-DMomwMcN.js → index-zrSUQXha.js} +1 -1
  75. package/dist/assets/infoDiagram-STP46IZ2-CAuVVehw.js +2 -0
  76. package/dist/assets/isEmpty-D1t7Gran.js +1 -0
  77. package/dist/assets/{journeyDiagram-BIP6EPQ6-BBiFyygf.js → journeyDiagram-BIP6EPQ6-D4Rp6H_h.js} +1 -1
  78. package/dist/assets/{kanban-definition-6OIFK2YF-DhgA6Nt6.js → kanban-definition-6OIFK2YF-DFt9DftA.js} +4 -4
  79. package/dist/assets/layout-D8WXi2_g.js +1 -0
  80. package/dist/assets/linear-BwY8e5hA.js +1 -0
  81. package/dist/assets/links-4B6ldZ5P.js +7 -0
  82. package/dist/assets/{logs-panel-B9SmTZAW.js → logs-panel-Dxiyt7dO.js} +1 -1
  83. package/dist/assets/{agent-panel-DpQ6muj-.css → markdown-renderer-ClyzDMmG.css} +1 -1
  84. package/dist/assets/markdown-renderer-VDu-NBKB.js +263 -0
  85. package/dist/assets/mermaid-B-O-Puyi.js +1 -0
  86. package/dist/assets/{mermaid.core-4nVOEVX3.js → mermaid.core-BFFCqfOn.js} +41 -41
  87. package/dist/assets/min-DtVSfYKl.js +1 -0
  88. package/dist/assets/{mindmap-definition-Q6HEUPPD-CVLQNn1q.js → mindmap-definition-Q6HEUPPD-kyvIY8Dg.js} +2 -2
  89. package/dist/assets/{number-overlay-editor-CzRzXLcd.js → number-overlay-editor-GjLB2UK4.js} +1 -1
  90. package/dist/assets/outline-panel-CMJjOoN7.js +1 -0
  91. package/dist/assets/packages-panel-nfXB-bKW.js +1 -0
  92. package/dist/assets/{pieDiagram-ADFJNKIX-C5IQ5DBZ.js → pieDiagram-ADFJNKIX-D8JFQcWR.js} +3 -3
  93. package/dist/assets/{quadrantDiagram-LMRXKWRM-CFXFnQxx.js → quadrantDiagram-LMRXKWRM-Nf8GzxXG.js} +1 -1
  94. package/dist/assets/{react-plotly-mzdv02_Y.js → react-plotly-CnW9p7ZA.js} +1 -1
  95. package/dist/assets/{requirementDiagram-4UW4RH46-D9bPC89T.js → requirementDiagram-4UW4RH46-CCUxF8BZ.js} +1 -1
  96. package/dist/assets/run-page-Bl4p3AbZ.js +1 -0
  97. package/dist/assets/sankeyDiagram-GR3RE2ED-Sr8kDwP1.js +10 -0
  98. package/dist/assets/scratchpad-panel-Ja1Mu-W3.js +1 -0
  99. package/dist/assets/secrets-panel-B-3fcSyP.js +1 -0
  100. package/dist/assets/{sequenceDiagram-C3RYC4MD-6N7_hY4k.js → sequenceDiagram-C3RYC4MD-CBJ152Q3.js} +4 -4
  101. package/dist/assets/{slides-component-DMjQomc3.css → slides-component-C-LoGC1U.css} +1 -1
  102. package/dist/assets/{slides-component-EcjC8sDK.js → slides-component-DGtsVP5o.js} +1 -1
  103. package/dist/assets/snippets-panel-ClNnwKBM.js +1 -0
  104. package/dist/assets/sortBy-D47H6Vyl.js +1 -0
  105. package/dist/assets/state-B_RCHTH5.js +1 -0
  106. package/dist/assets/stateDiagram-KXAO66HF-BlBFSAZr.js +1 -0
  107. package/dist/assets/stateDiagram-v2-UMBNRL4Z-DbA-iToo.js +1 -0
  108. package/dist/assets/storage-BNcWOH3-.js +26 -0
  109. package/dist/assets/terminal-CATzv5Hd.js +10 -0
  110. package/dist/assets/time-CsYqILfB.js +1 -0
  111. package/dist/assets/{timeline-definition-XQNQX7LJ-BEaynAiY.js → timeline-definition-XQNQX7LJ-CGrhjuAs.js} +1 -1
  112. package/dist/assets/tracing-DUbJtOyq.js +2 -0
  113. package/dist/assets/{tracing-panel-BmuHLPrY.js → tracing-panel-DmzqPUtc.js} +2 -2
  114. package/dist/assets/{trash-UBqfK4mR.js → trash-rxdjLzkf.js} +1 -1
  115. package/dist/assets/{tree-XiEycetl.js → tree-C2Ul1h1C.js} +1 -1
  116. package/dist/assets/{treemap-75Q7IDZK-CnuVFbBG.js → treemap-75Q7IDZK-N9hyUpyj.js} +20 -20
  117. package/dist/assets/{ts-tags-CloPe9IY.js → ts-tags-DxCDHihD.js} +1 -1
  118. package/dist/assets/variable-panel-BbgupOdG.js +1 -0
  119. package/dist/assets/{vega-component-DsTH4tuX.js → vega-component-CR_MHOBT.js} +1 -1
  120. package/dist/assets/worker-fHbtoWvT.js +1 -0
  121. package/dist/assets/{xychartDiagram-6GGTOJPD-Dcz3O-A3.js → xychartDiagram-6GGTOJPD-jdLZsMb2.js} +1 -1
  122. package/dist/index.html +2 -2
  123. package/package.json +10 -5
  124. package/src/__tests__/mocks.ts +43 -0
  125. package/src/components/app-config/user-config-form.tsx +78 -1
  126. package/src/components/chat/acp/__tests__/__snapshots__/prompt.test.ts.snap +116 -65
  127. package/src/components/chat/acp/__tests__/atoms.test.ts +1 -1
  128. package/src/components/chat/acp/__tests__/context-utils.test.ts +222 -0
  129. package/src/components/chat/acp/__tests__/prompt.test.ts +1 -1
  130. package/src/components/chat/acp/__tests__/state.test.ts +38 -42
  131. package/src/components/chat/acp/agent-docs.tsx +33 -6
  132. package/src/components/chat/acp/agent-panel.css +0 -18
  133. package/src/components/chat/acp/agent-panel.tsx +394 -72
  134. package/src/components/chat/acp/agent-selector.tsx +7 -1
  135. package/src/components/chat/acp/blocks.tsx +40 -10
  136. package/src/components/chat/acp/common.tsx +10 -2
  137. package/src/components/chat/acp/context-utils.ts +127 -0
  138. package/src/components/chat/acp/prompt.ts +96 -53
  139. package/src/components/chat/acp/state.ts +1 -1
  140. package/src/components/chat/acp/types.ts +8 -0
  141. package/src/components/chat/chat-panel.tsx +28 -89
  142. package/src/components/chat/chat-utils.ts +127 -1
  143. package/src/components/chat/markdown-renderer.css +39 -0
  144. package/src/components/chat/markdown-renderer.tsx +12 -47
  145. package/src/components/chat/tool-call-accordion.tsx +148 -26
  146. package/src/components/data-table/SearchBar.tsx +8 -7
  147. package/src/components/data-table/__tests__/column_formatting.test.ts +50 -35
  148. package/src/components/data-table/__tests__/data-table.test.tsx +39 -1
  149. package/src/components/data-table/cell-hover-template/feature.ts +14 -0
  150. package/src/components/data-table/cell-hover-template/types.ts +11 -0
  151. package/src/components/data-table/charts/components/form-fields.tsx +41 -37
  152. package/src/components/data-table/charts/forms/common-chart.tsx +2 -2
  153. package/src/components/data-table/column-explorer-panel/column-explorer.tsx +5 -2
  154. package/src/components/data-table/column-formatting/feature.ts +62 -29
  155. package/src/components/data-table/column-formatting/types.ts +1 -0
  156. package/src/components/data-table/column-header.tsx +3 -1
  157. package/src/components/data-table/column-summary/chart-spec-model.tsx +24 -7
  158. package/src/components/data-table/column-summary/column-summary.tsx +18 -9
  159. package/src/components/data-table/columns.tsx +42 -18
  160. package/src/components/data-table/data-table.tsx +10 -2
  161. package/src/components/data-table/date-popover.tsx +85 -75
  162. package/src/components/data-table/filter-pills.tsx +14 -9
  163. package/src/components/data-table/header-items.tsx +5 -1
  164. package/src/components/data-table/pagination.tsx +20 -13
  165. package/src/components/data-table/renderers.tsx +28 -0
  166. package/src/components/data-table/row-viewer-panel/row-viewer.tsx +10 -8
  167. package/src/components/datasources/column-preview.tsx +6 -2
  168. package/src/components/datasources/datasources.tsx +8 -12
  169. package/src/components/editor/Cell.tsx +6 -0
  170. package/src/components/editor/actions/name-cell-input.tsx +6 -1
  171. package/src/components/editor/actions/useCellActionButton.tsx +3 -1
  172. package/src/components/editor/ai/__tests__/completion-utils.test.ts +178 -1
  173. package/src/components/editor/ai/add-cell-with-ai.tsx +68 -66
  174. package/src/components/editor/ai/ai-completion-editor.tsx +29 -26
  175. package/src/components/editor/ai/completion-handlers.tsx +44 -6
  176. package/src/components/editor/ai/completion-utils.ts +92 -0
  177. package/src/components/editor/ai/transport/chat-transport.tsx +39 -0
  178. package/src/components/editor/cell/CellStatus.tsx +23 -20
  179. package/src/components/editor/cell/CreateCellButton.tsx +3 -4
  180. package/src/components/editor/cell/StagedAICell.tsx +51 -0
  181. package/src/components/editor/cell/cell-actions.tsx +2 -1
  182. package/src/components/editor/cell/code/language-toggle.tsx +3 -4
  183. package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +39 -28
  184. package/src/components/editor/controls/notebook-menu-dropdown.tsx +4 -2
  185. package/src/components/editor/file-tree/requesting-tree.tsx +14 -8
  186. package/src/components/editor/renderers/CellArray.tsx +3 -4
  187. package/src/components/editor/renderers/slides-layout/slides-layout.tsx +3 -3
  188. package/src/components/editor/renderers/slides-layout/types.ts +1 -0
  189. package/src/components/pages/home-page.tsx +4 -1
  190. package/src/components/slides/slides-component.tsx +1 -1
  191. package/src/components/slides/slides.css +6 -0
  192. package/src/components/terminal/__tests__/state.test.ts +207 -0
  193. package/src/components/terminal/hooks.ts +41 -0
  194. package/src/components/terminal/state.ts +75 -0
  195. package/src/components/terminal/terminal.tsx +334 -13
  196. package/src/components/terminal/theme.tsx +57 -0
  197. package/src/components/tracing/tracing-spec.ts +5 -4
  198. package/src/components/ui/range-slider.tsx +4 -2
  199. package/src/components/ui/slider.tsx +3 -1
  200. package/src/components/variables/variables-table.tsx +3 -0
  201. package/src/core/MarimoApp.tsx +9 -6
  202. package/src/core/ai/__tests__/staged-cells.test.ts +356 -0
  203. package/src/core/ai/context/__tests__/registry.test.ts +6 -4
  204. package/src/core/ai/context/providers/cell-output.ts +3 -2
  205. package/src/core/ai/context/providers/error.ts +3 -1
  206. package/src/core/ai/context/providers/file.ts +7 -2
  207. package/src/core/ai/context/providers/tables.ts +3 -2
  208. package/src/core/ai/context/providers/variable.ts +6 -4
  209. package/src/core/ai/staged-cells.ts +208 -0
  210. package/src/core/cells/cells.ts +1 -1
  211. package/src/core/cells/logs.ts +1 -1
  212. package/src/core/codemirror/find-replace/search-highlight.ts +3 -1
  213. package/src/core/codemirror/language/LanguageAdapters.ts +9 -3
  214. package/src/core/codemirror/lsp/federated-lsp.ts +1 -1
  215. package/src/core/codemirror/lsp/notebook-lsp.ts +8 -2
  216. package/src/core/codemirror/readonly/__tests__/extension.test.ts +1 -1
  217. package/src/core/codemirror/rtc/loro/awareness.ts +52 -17
  218. package/src/core/codemirror/rtc/loro/sync.ts +12 -4
  219. package/src/core/config/config-schema.ts +1 -0
  220. package/src/core/config/config.ts +4 -0
  221. package/src/core/hotkeys/hotkeys.ts +8 -4
  222. package/src/core/i18n/__tests__/locale-provider.test.tsx +176 -0
  223. package/src/core/i18n/locale-provider.tsx +35 -0
  224. package/src/core/i18n/with-locale.tsx +12 -0
  225. package/src/core/islands/components/web-components.tsx +13 -10
  226. package/src/core/islands/main.ts +2 -2
  227. package/src/core/kernel/RuntimeState.ts +4 -1
  228. package/src/core/kernel/messages.ts +8 -12
  229. package/src/core/network/DeferredRequestRegistry.ts +16 -4
  230. package/src/core/runtime/runtime.ts +5 -4
  231. package/src/core/saving/__tests__/filename.test.ts +37 -0
  232. package/src/core/static/__tests__/download-html.test.ts +43 -1
  233. package/src/core/wasm/bridge.ts +5 -1
  234. package/src/core/wasm/store.ts +4 -1
  235. package/src/core/wasm/worker/message-buffer.ts +3 -2
  236. package/src/core/websocket/types.ts +22 -16
  237. package/src/core/websocket/useMarimoWebSocket.tsx +2 -2
  238. package/src/css/app/Cell.css +11 -0
  239. package/src/hooks/useFormatting.ts +97 -0
  240. package/src/hooks/useTimer.ts +8 -5
  241. package/src/plugins/core/RenderHTML.tsx +36 -2
  242. package/src/plugins/core/__test__/RenderHTML.test.ts +72 -0
  243. package/src/plugins/core/registerReactComponent.tsx +44 -10
  244. package/src/plugins/impl/DataTablePlugin.tsx +4 -0
  245. package/src/plugins/impl/FileBrowserPlugin.tsx +8 -2
  246. package/src/plugins/impl/RangeSliderPlugin.tsx +5 -3
  247. package/src/plugins/impl/SliderPlugin.tsx +3 -1
  248. package/src/plugins/impl/anywidget/model.ts +16 -5
  249. package/src/plugins/impl/data-editor/types.ts +7 -5
  250. package/src/plugins/impl/data-explorer/components/column-summary.tsx +20 -13
  251. package/src/plugins/impl/panel/utils.ts +6 -4
  252. package/src/plugins/layout/OutlinePlugin.tsx +69 -0
  253. package/src/plugins/layout/StatPlugin.tsx +4 -1
  254. package/src/plugins/plugins.ts +2 -0
  255. package/src/stories/cell.stories.tsx +1 -1
  256. package/src/stories/layout/vertical/one-column.stories.tsx +1 -1
  257. package/src/utils/__tests__/cell-urls.test.ts +29 -0
  258. package/src/utils/__tests__/dates.test.ts +45 -24
  259. package/src/utils/__tests__/filenames.test.ts +18 -0
  260. package/src/utils/__tests__/numbers.test.ts +42 -30
  261. package/src/utils/__tests__/once.test.ts +187 -0
  262. package/src/utils/__tests__/path.test.ts +38 -0
  263. package/src/utils/__tests__/urls.test.ts +56 -1
  264. package/src/utils/dates.ts +15 -10
  265. package/src/utils/edit-distance.ts +8 -6
  266. package/src/utils/errors.ts +9 -0
  267. package/src/utils/id-tree.tsx +21 -10
  268. package/src/utils/localStorage.ts +13 -4
  269. package/src/utils/numbers.ts +11 -11
  270. package/src/utils/once.ts +32 -0
  271. package/src/utils/paths.ts +4 -1
  272. package/src/utils/pluralize.ts +12 -5
  273. package/src/utils/python-poet/poet.ts +30 -15
  274. package/src/utils/time.ts +5 -1
  275. package/dist/assets/ConnectedDataExplorerComponent-Cn5-l2X1.js +0 -19
  276. package/dist/assets/_baseEach-C1FLm7WW.js +0 -1
  277. package/dist/assets/_baseMap-DBVArUYD.js +0 -1
  278. package/dist/assets/_baseUniq-Dk7ZPJ3N.js +0 -1
  279. package/dist/assets/_createAggregator-Bn38fDd3.js +0 -1
  280. package/dist/assets/agent-panel-COUYnuIK.js +0 -475
  281. package/dist/assets/architectureDiagram-W76B3OCA-DBzWQKKu.js +0 -36
  282. package/dist/assets/channel-CjhbjOv4.js +0 -1
  283. package/dist/assets/chat-panel-BPXKoTnZ.js +0 -7
  284. package/dist/assets/chat-panel-Brrs_eeH.css +0 -1
  285. package/dist/assets/classDiagram-KNZD7YFC-DHs5cFzy.js +0 -1
  286. package/dist/assets/classDiagram-v2-RKCZMP56-DHs5cFzy.js +0 -1
  287. package/dist/assets/clone-DM1YNjEn.js +0 -1
  288. package/dist/assets/command-palette-S0bzQp7v.js +0 -1
  289. package/dist/assets/common-B8U9k2Ly.js +0 -1
  290. package/dist/assets/cose-bilkent-S5V4N54A-wz1Sfx7j.js +0 -1
  291. package/dist/assets/dagre-5GWH7T2D-BfpcVBgq.js +0 -4
  292. package/dist/assets/datasources-panel-DfuURLJw.js +0 -1
  293. package/dist/assets/diagram-N5W7TBWH-Bf0oqqQh.js +0 -24
  294. package/dist/assets/diagram-QEK2KX5R-ZTc3qikh.js +0 -43
  295. package/dist/assets/diagram-S2PKOQOG-tLScBy7Z.js +0 -24
  296. package/dist/assets/edit-page-DJ8kJZ9w.js +0 -129
  297. package/dist/assets/file-explorer-panel-CzNUJ63G.js +0 -1
  298. package/dist/assets/gitGraphDiagram-NY62KEGX-C1t6QtVa.js +0 -65
  299. package/dist/assets/graph-CssCVWIq.js +0 -1
  300. package/dist/assets/home-page-9eW6qida.js +0 -9
  301. package/dist/assets/index-CknhX2Vy.css +0 -1
  302. package/dist/assets/index-DcCIe7np.js +0 -28
  303. package/dist/assets/index-OC46250R.js +0 -570
  304. package/dist/assets/infoDiagram-STP46IZ2-CwiAoz9f.js +0 -2
  305. package/dist/assets/layout-DpQrxGW-.js +0 -1
  306. package/dist/assets/linear-NsreOeBF.js +0 -1
  307. package/dist/assets/links-CbvGxbsJ.js +0 -7
  308. package/dist/assets/mermaid-DSt0r6IQ.js +0 -1
  309. package/dist/assets/min-D259kI3t.js +0 -1
  310. package/dist/assets/outline-panel-uvsS-YEQ.js +0 -1
  311. package/dist/assets/packages-panel-xMz9W2hW.js +0 -1
  312. package/dist/assets/run-page-Bb68qdhQ.js +0 -1
  313. package/dist/assets/sankeyDiagram-GR3RE2ED-BSJOau8E.js +0 -10
  314. package/dist/assets/scratchpad-panel-BF4BO-U4.js +0 -1
  315. package/dist/assets/secrets-panel-CdIX44dQ.js +0 -1
  316. package/dist/assets/snippets-panel-Dco9h0rb.js +0 -1
  317. package/dist/assets/sortBy-aLGA-PGK.js +0 -1
  318. package/dist/assets/stateDiagram-KXAO66HF-Bd68WT3b.js +0 -1
  319. package/dist/assets/stateDiagram-v2-UMBNRL4Z-BXz_GSwb.js +0 -1
  320. package/dist/assets/storage-CGlP4lCF.js +0 -26
  321. package/dist/assets/terminal-CxkHubcu.js +0 -9
  322. package/dist/assets/time-D2nr1UgQ.js +0 -1
  323. package/dist/assets/tracing-kTqHxa7q.js +0 -2
  324. package/dist/assets/variable-panel-noTnH-AQ.js +0 -1
  325. package/dist/assets/worker-X5rxzQGQ.js +0 -1
@@ -0,0 +1,263 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./angular-html-BZhSV2-l.js","./html-ReiWYoHo.js","./javascript-CY0YvwoL.js","./css-l46fsARh.js","./angular-ts-DRQ-j7PL.js","./scss-CHxzYwli.js","./apl-BnBkWLuz.js","./xml-BsgRw6d1.js","./java-DtRXFtDl.js","./json-LWN7Ml79.js","./astro-CXYfh229.js","./typescript-C6YI4KwS.js","./postcss-CeUBPB2S.js","./tsx-DYwE5ssU.js","./blade-CkGRa-l8.js","./html-derivative-BEFkAAPd.js","./sql-BhJCBb_s.js","./bsl-DGicdwC0.js","./sdbl-BpucmfEo.js","./cairo-Dz8fl918.js","./python-DlV7vnVD.js","./cobol-Dt3m7Jkx.js","./coffee-DgxxYT5L.js","./cpp-BmKY377x.js","./regexp-CpyjTnFF.js","./glsl-BDbjGBhJ.js","./c-BmJt9k-y.js","./crystal-DB6V90z1.js","./shellscript-B8OHlvmy.js","./edge-Brl-y200.js","./elixir-CGzfkNtR.js","./elm-DmpuOW2E.js","./erb-BNAqOH5i.js","./ruby-DJftxM78.js","./haml-DiuhmbKg.js","./graphql-DMns_A3G.js","./jsx-g2NrEQII.js","./lua-B09NiSMa.js","./yaml-c2-Vhxho.js","./erlang-DAw79KxH.js","./markdown-DY93LJPj.js","./fortran-fixed-form-D_2otJTs.js","./fortran-free-form-Ix_0F1Zz.js","./fsharp-DmSnwM-W.js","./gdresource-BLuZCTp3.js","./gdshader-BC7WJXp9.js","./gdscript-fffAh1pn.js","./git-commit-Bptnmh-c.js","./diff-Beq1YlA8.js","./git-rebase-CqNhyBhE.js","./glimmer-js-CamsSOgS.js","./glimmer-ts-DpQMos9P.js","./hack-CXH7pT2m.js","./handlebars-PuluTGUb.js","./http-BPFbEDC3.js","./hxml-DB3_nACV.js","./haxe-D-PmAGDa.js","./jinja-CXJbPSuL.js","./jison-iRP-Iv-P.js","./julia-BabrhEml.js","./r-C1kzXVmM.js","./latex-CCwiU5tQ.js","./tex-BGsfIjRo.js","./liquid-QTP3a8yd.js","./marko-CgCapwG0.js","./less-DKKxO4Pm.js","./mdc-CVidKc4b.js","./nginx-CtwUG8yW.js","./nim-BCqJOqd2.js","./perl-Da10OPbb.js","./php-hSYFjEJr.js","./pug-DYUvS0f2.js","./qml-DiX3J200.js","./razor-7Qmv-3mF.js","./csharp-yFVQ185C.js","./rst-DU5WA_Li.js","./cmake-BYiqpiH1.js","./sas-BBCK0tAG.js","./shaderlab-DNyPh2Q6.js","./hlsl-B-PjNM4a.js","./shellsession-OATBsyRD.js","./soy-BjzVbqVk.js","./sparql-CLNNOQQI.js","./turtle-BVy4HXn4.js","./stata-G4GYNNPE.js","./svelte-Dg-n8Id4.js","./templ-C0tOEwaA.js","./go-BR7YH85S.js","./ts-tags-DxCDHihD.js","./twig-D8xgA4Ji.js","./vue-ChwqA4lT.js","./vue-html-DP_EF96N.js","./vue-vine-K4R7Z1Ei.js","./stylus-BeJftkpb.js","./xsl-DCNnPbrB.js","./mermaid.core-BFFCqfOn.js","./index-PmY0x4Zd.js","./index-DadI618h.css","./transform-D9VCJYws.js","./timer-Bqd5yn_a.js","./step-BwsUM5iJ.js","./isEmpty-D1t7Gran.js"])))=>i.map(i=>d[i]);
2
+ var eA=Object.defineProperty;var tA=Object.getPrototypeOf;var nA=Reflect.get;var wd=_e=>{throw TypeError(_e)};var rA=(_e,be,xe)=>be in _e?eA(_e,be,{enumerable:!0,configurable:!0,writable:!0,value:xe}):_e[be]=xe;var v=(_e,be,xe)=>rA(_e,typeof be!="symbol"?be+"":be,xe),ia=(_e,be,xe)=>be.has(_e)||wd("Cannot "+xe);var We=(_e,be,xe)=>(ia(_e,be,"read from private field"),xe?xe.call(_e):be.get(_e)),hn=(_e,be,xe)=>be.has(_e)?wd("Cannot add the same private member more than once"):be instanceof WeakSet?be.add(_e):be.set(_e,xe),pt=(_e,be,xe,dn)=>(ia(_e,be,"write to private field"),dn?dn.call(_e,xe):be.set(_e,xe),xe),oa=(_e,be,xe)=>(ia(_e,be,"access private method"),xe);var Ld=(_e,be,xe)=>nA(tA(_e),xe,be);import{a as jn,r as K,T as iA,j as U,bn as oA,W as sA,dW as Od,ai as sa,k0 as aA,k1 as lA,cS as cA,a9 as k,j1 as uA,a7 as Rd,a8 as vd,b4 as aa,u as pA,$ as hA,bS as dA,p as mA,a_ as Pd,S as fA,by as gA,K as _A,bx as EA,bD as TA,k2 as bA,hJ as kA,__tla as AA}from"./index-PmY0x4Zd.js";import{I as yA,__tla as xA}from"./storage-BNcWOH3-.js";import Md from"./katex-LV4FpwlL.js";import{B as CA}from"./between-horizontal-start-KiwU-a3C.js";let Bd,Fd,la,IA=Promise.all([(()=>{try{return AA}catch{}})(),(()=>{try{return xA}catch{}})()]).then(async()=>{var Nt,ot,jt,wt,un,zt,pn,Or,ua,qt,ta;Bd=e=>{var o;const t=jn.c(6),{attachment:n}=e;if((o=n.mediaType)!=null&&o.startsWith("image/")){let s;return t[0]!==n.filename||t[1]!==n.url?(s=U.jsx("img",{src:n.url,alt:n.filename,className:"max-h-[100px] max-w-[100px] object-contain mb-1.5"}),t[0]=n.filename,t[1]=n.url,t[2]=s):s=t[2],s}let r,i;return t[3]===Symbol.for("react.memo_cache_sentinel")?(r=U.jsx(Od,{className:"h-3 w-3 mt-0.5"}),t[3]=r):r=t[3],t[4]!==n.filename?(i=U.jsxs("div",{className:"flex flex-row gap-1 items-center text-xs",children:[r,n.filename]}),t[4]=n.filename,t[5]=i):i=t[5],i},Fd=e=>{const t=jn.c(12),{file:n,className:r,onRemove:i}=e,[o,s]=K.useState(!1);let a,l,c,u,h;return t[0]!==r?(a=iA("py-1 px-1.5 bg-muted rounded-md cursor-pointer flex flex-row gap-1 items-center text-xs",r),t[0]=r,t[1]=a):a=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>s(!0),c=()=>s(!1),t[2]=l,t[3]=c):(l=t[2],c=t[3]),t[4]!==n||t[5]!==o||t[6]!==i?(u=o?U.jsx(oA,{className:"h-3 w-3 mt-0.5",onClick:i}):(function(p){const m="h-3 w-3 mt-0.5";return p.type.startsWith("image/")?U.jsx(yA,{className:m}):p.type.startsWith("text/")?U.jsx(sA,{className:m}):U.jsx(Od,{className:m})})(n),t[4]=n,t[5]=o,t[6]=i,t[7]=u):u=t[7],t[8]!==n.name||t[9]!==a||t[10]!==u?(h=U.jsxs("div",{className:a,onMouseEnter:l,onMouseLeave:c,children:[u,n.name]}),t[8]=n.name,t[9]=a,t[10]=u,t[11]=h):h=t[11],h};function _e(){}function be(){}function xe(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const s=n.slice(i,r).trim();!s&&o||t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function dn(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Gd=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$d=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vd={};function da(e,t){return(Vd.jsx?$d:Gd).test(e)}const jd=/[ \t\n\f\r]/g;function Pr(e){return typeof e=="object"?e.type==="text"&&ma(e.value):ma(e)}function ma(e){return e.replace(jd,"")===""}let zn=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function fa(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new zn(n,r,t)}function qn(e){return e.toLowerCase()}zn.prototype.normal={},zn.prototype.property={},zn.prototype.space=void 0;let Ye=class{constructor(e,t){this.attribute=t,this.property=e}};Ye.prototype.attribute="",Ye.prototype.booleanish=!1,Ye.prototype.boolean=!1,Ye.prototype.commaOrSpaceSeparated=!1,Ye.prototype.commaSeparated=!1,Ye.prototype.defined=!1,Ye.prototype.mustUseProperty=!1,Ye.prototype.number=!1,Ye.prototype.overloadedBoolean=!1,Ye.prototype.property="",Ye.prototype.spaceSeparated=!1,Ye.prototype.space=void 0;let zd=0;const oe=Yt(),Se=Yt(),Qi=Yt(),V=Yt(),Ee=Yt(),mn=Yt(),Xe=Yt();function Yt(){return 2**++zd}const Xi=Object.freeze(Object.defineProperty({__proto__:null,boolean:oe,booleanish:Se,commaOrSpaceSeparated:Xe,commaSeparated:mn,number:V,overloadedBoolean:Qi,spaceSeparated:Ee},Symbol.toStringTag,{value:"Module"})),Ki=Object.keys(Xi);let Zi=class extends Ye{constructor(e,t,n,r){let i=-1;if(super(e,t),ga(this,"space",r),typeof n=="number")for(;++i<Ki.length;){const o=Ki[i];ga(this,Ki[i],(n&Xi[o])===Xi[o])}}};function ga(e,t,n){n&&(e[t]=n)}function fn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Zi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[qn(r)]=r,n[qn(o.attribute)]=r}return new zn(t,n,e.space)}Zi.prototype.defined=!0;const _a=fn({properties:{ariaActiveDescendant:null,ariaAtomic:Se,ariaAutoComplete:null,ariaBusy:Se,ariaChecked:Se,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:Ee,ariaCurrent:null,ariaDescribedBy:Ee,ariaDetails:null,ariaDisabled:Se,ariaDropEffect:Ee,ariaErrorMessage:null,ariaExpanded:Se,ariaFlowTo:Ee,ariaGrabbed:Se,ariaHasPopup:null,ariaHidden:Se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ee,ariaLevel:V,ariaLive:null,ariaModal:Se,ariaMultiLine:Se,ariaMultiSelectable:Se,ariaOrientation:null,ariaOwns:Ee,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:Se,ariaReadOnly:Se,ariaRelevant:null,ariaRequired:Se,ariaRoleDescription:Ee,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:Se,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform:(e,t)=>t==="role"?t:"aria-"+t.slice(4).toLowerCase()});function Ea(e,t){return t in e?e[t]:t}function Ta(e,t){return Ea(e,t.toLowerCase())}const qd=fn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mn,acceptCharset:Ee,accessKey:Ee,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:Ee,autoFocus:oe,autoPlay:oe,blocking:Ee,capture:null,charSet:null,checked:oe,cite:null,className:Ee,cols:V,colSpan:null,content:null,contentEditable:Se,controls:oe,controlsList:Ee,coords:V|mn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:Qi,draggable:Se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:Ee,height:V,hidden:Qi,high:V,href:null,hrefLang:null,htmlFor:Ee,httpEquiv:Ee,id:null,imageSizes:null,imageSrcSet:null,inert:oe,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:Ee,itemRef:Ee,itemScope:oe,itemType:Ee,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:oe,muted:oe,name:null,nonce:null,noModule:oe,noValidate:oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:oe,optimum:V,pattern:null,ping:Ee,placeholder:null,playsInline:oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:Ee,required:oe,reversed:oe,rows:V,rowSpan:V,sandbox:Ee,scope:null,scoped:oe,seamless:oe,selected:oe,shadowRootClonable:oe,shadowRootDelegatesFocus:oe,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:Se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:Se,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ee,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:oe,declare:oe,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:Se,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:oe,disableRemotePlayback:oe,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:Ta}),Wd=fn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Xe,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:Ee,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:mn,g2:mn,glyphName:mn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:Xe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ee,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xe,rev:Xe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xe,requiredFeatures:Xe,requiredFonts:Xe,requiredFormats:Xe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:Xe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xe,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ea}),ba=fn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),ka=fn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ta}),Aa=fn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Yd={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Qd=/[A-Z]/g,ya=/-[a-z]/g,Xd=/^data[-\w.:]+$/i;function Mr(e,t){const n=qn(t);let r=t,i=Ye;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Xd.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ya,Zd);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ya.test(o)){let s=o.replace(Qd,Kd);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Zi}return new i(r,t)}function Kd(e){return"-"+e.toLowerCase()}function Zd(e){return e.charAt(1).toUpperCase()}const Wn=fa([_a,qd,ba,ka,Aa],"html"),Rt=fa([_a,Wd,ba,ka,Aa],"svg");function xa(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ji(e){return e.join(" ").trim()}const Jd=sa(aA()),Br=Ca("end"),ht=Ca("start");function Ca(e){return function(t){const n=t&&t.position&&t.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Yn(e){return e&&typeof e=="object"?"position"in e||"type"in e?Ia(e.position):"start"in e||"end"in e?Ia(e):"line"in e||"column"in e?eo(e):"":""}function eo(e){return Sa(e&&e.line)+":"+Sa(e&&e.column)}function Ia(e){return eo(e&&e.start)+"-"+eo(e&&e.end)}function Sa(e){return e&&typeof e=="number"?e:1}class He extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&(o="line"in n&&"column"in n||"start"in n&&"end"in n?{place:n}:"type"in n?{ancestors:[n],place:n.position}:{...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Yn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}He.prototype.file="",He.prototype.name="",He.prototype.reason="",He.prototype.message="",He.prototype.stack="",He.prototype.column=void 0,He.prototype.line=void 0,He.prototype.ancestors=void 0,He.prototype.cause=void 0,He.prototype.fatal=void 0,He.prototype.place=void 0,He.prototype.ruleId=void 0,He.prototype.source=void 0;const to={}.hasOwnProperty,em=new Map,tm=/[A-Z]/g,nm=new Set(["table","tbody","thead","tfoot","tr"]),rm=new Set(["td","th"]),Da="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function im(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=(function(s,a){return l;function l(c,u,h,p){const m=Array.isArray(h.children),f=ht(c);return a(u,h,p,m,{columnNumber:f?f.column-1:void 0,fileName:s,lineNumber:f?f.line:void 0},void 0)}})(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=(function(s,a,l){return c;function c(u,h,p,m){const f=Array.isArray(p.children)?l:a;return m?f(h,p,m):f(h,p)}})(0,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Rt:Wn,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Na(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Na(e,t,n){return t.type==="element"?(function(r,i,o){const s=r.schema;let a=s;i.tagName.toLowerCase()==="svg"&&s.space==="html"&&(a=Rt,r.schema=a),r.ancestors.push(i);const l=La(r,i.tagName,!1),c=(function(h,p){const m={};let f,T;for(T in p.properties)if(T!=="children"&&to.call(p.properties,T)){const g=om(h,T,p.properties[T]);if(g){const[_,x]=g;h.tableCellAlignToStyle&&_==="align"&&typeof x=="string"&&rm.has(p.tagName)?f=x:m[_]=x}}return f&&((m.style||(m.style={}))[h.stylePropertyNameCase==="css"?"text-align":"textAlign"]=f),m})(r,i);let u=ro(r,i);return nm.has(i.tagName)&&(u=u.filter(function(h){return typeof h!="string"||!Pr(h)})),wa(r,c,l,i),no(c,u),r.ancestors.pop(),r.schema=s,r.create(i,l,c,o)})(e,t,n):t.type==="mdxFlowExpression"||t.type==="mdxTextExpression"?(function(r,i){if(i.data&&i.data.estree&&r.evaluater){const o=i.data.estree.body[0];return o.type,r.evaluater.evaluateExpression(o.expression)}Qn(r,i.position)})(e,t):t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement"?(function(r,i,o){const s=r.schema;let a=s;i.name==="svg"&&s.space==="html"&&(a=Rt,r.schema=a),r.ancestors.push(i);const l=i.name===null?r.Fragment:La(r,i.name,!0),c=(function(h,p){const m={};for(const f of p.attributes)if(f.type==="mdxJsxExpressionAttribute")if(f.data&&f.data.estree&&h.evaluater){const T=f.data.estree.body[0];T.type;const g=T.expression;g.type;const _=g.properties[0];_.type,Object.assign(m,h.evaluater.evaluateExpression(_.argument))}else Qn(h,p.position);else{const T=f.name;let g;if(f.value&&typeof f.value=="object")if(f.value.data&&f.value.data.estree&&h.evaluater){const _=f.value.data.estree.body[0];_.type,g=h.evaluater.evaluateExpression(_.expression)}else Qn(h,p.position);else g=f.value===null||f.value;m[T]=g}return m})(r,i),u=ro(r,i);return wa(r,c,l,i),no(c,u),r.ancestors.pop(),r.schema=s,r.create(i,l,c,o)})(e,t,n):t.type==="mdxjsEsm"?(function(r,i){if(i.data&&i.data.estree&&r.evaluater)return r.evaluater.evaluateProgram(i.data.estree);Qn(r,i.position)})(e,t):t.type==="root"?(function(r,i,o){const s={};return no(s,ro(r,i)),r.create(i,r.Fragment,s,o)})(e,t,n):t.type==="text"?(function(r,i){return i.value})(0,t):void 0}function wa(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function no(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ro(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:em;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const c=i.get(l)||0;s=l+"-"+c,i.set(l,c+1)}}const a=Na(e,o,s);a!==void 0&&n.push(a)}return n}function om(e,t,n){const r=Mr(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?dn(n):Ji(n)),r.property==="style"){let i=typeof n=="object"?n:(function(o,s){try{return Jd(s,{reactCompat:!0})}catch(a){if(o.ignoreInvalidStyle)return{};const l=a,c=new He("Cannot parse `style` attribute",{ancestors:o.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw c.file=o.filePath||void 0,c.url=Da+"#cannot-parse-style-attribute",c}})(e,String(n));return e.stylePropertyNameCase==="css"&&(i=(function(o){const s={};let a;for(a in o)to.call(o,a)&&(s[sm(a)]=o[a]);return s})(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Yd[r.property]||r.property:r.attribute,n]}}function La(e,t,n){let r;if(n)if(t.includes(".")){const i=t.split(".");let o,s=-1;for(;++s<i.length;){const a=da(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(s&&a.type==="Literal"),optional:!1}:a}r=o}else r=da(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return to.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Qn(e)}function Qn(e,t){const n=new He("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Da+"#cannot-handle-mdx-estrees-without-createevaluater",n}function sm(e){let t=e.replace(tm,am);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function am(e){return"-"+e.toLowerCase()}const io={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Fr={};function oo(e,t){return Oa(e,typeof Fr.includeImageAlt!="boolean"||Fr.includeImageAlt,typeof Fr.includeHtml!="boolean"||Fr.includeHtml)}function Oa(e,t,n){if((function(r){return!!(r&&typeof r=="object")})(e)){if("value"in e)return e.type!=="html"||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ra(e.children,t,n)}return Array.isArray(e)?Ra(e,t,n):""}function Ra(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Oa(e[i],t,n);return r.join("")}const va=document.createElement("i");function so(e){const t="&"+e+";";va.innerHTML=t;const n=va.textContent;return(n.charCodeAt(n.length-1)!==59||e==="semi")&&n!==t&&n}function Ke(e,t,n,r){const i=e.length;let o,s=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function et(e,t){return e.length>0?(Ke(e,e.length,0,t),e):t}const Pa={}.hasOwnProperty;function Ma(e){const t={};let n=-1;for(;++n<e.length;)lm(t,e[n]);return t}function lm(e,t){let n;for(n in t){const r=(Pa.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Pa.call(r,o)||(r[o]=[]);const s=i[o];cm(r[o],Array.isArray(s)?s:s?[s]:[])}}}function cm(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ke(e,0,0,r)}function Ba(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||(65535&n)==65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}function at(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ze=vt(/[A-Za-z]/),Ge=vt(/[\dA-Za-z]/),um=vt(/[#-'*+\--9=?A-Z^-~]/);function Ur(e){return e!==null&&(e<32||e===127)}const ao=vt(/\d/),pm=vt(/[\dA-Fa-f]/),hm=vt(/[!-/:-@[-`{-~]/);function ee(e){return e!==null&&e<-2}function me(e){return e!==null&&(e<0||e===32)}function ce(e){return e===-2||e===-1||e===32}const Hr=vt(new RegExp("\\p{P}|\\p{S}","u")),Qt=vt(/\s/);function vt(e){return function(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function gn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&Ge(e.charCodeAt(n+1))&&Ge(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="\uFFFD"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ae(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(a){return ce(a)?(e.enter(n),s(a)):t(a)};function s(a){return ce(a)&&o++<i?(e.consume(a),s):(e.exit(n),t(a))}}const dm={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(o){return o===null?void e.consume(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ae(e,t,"linePrefix"))},function(o){return e.enter("paragraph"),r(o)});let n;return t;function r(o){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,i(o)}function i(o){return o===null?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(o)):ee(o)?(e.consume(o),e.exit("chunkText"),r):(e.consume(o),i)}}},mm={tokenize:function(e){const t=this,n=[];let r,i,o,s=0;return a;function a(E){if(s<n.length){const y=n[s];return t.containerState=y[1],e.attempt(y[0].continuation,l,c)(E)}return c(E)}function l(E){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&x();const y=t.events.length;let w,N=y;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){w=t.events[N][1].end;break}_(s);let O=y;for(;O<t.events.length;)t.events[O][1].end={...w},O++;return Ke(t.events,N+1,0,t.events.slice(y)),t.events.length=O,c(E)}return a(E)}function c(E){if(s===n.length){if(!r)return p(E);if(r.currentConstruct&&r.currentConstruct.concrete)return f(E);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Fa,u,h)(E)}function u(E){return r&&x(),_(s),p(E)}function h(E){return t.parser.lazy[t.now().line]=s!==n.length,o=t.now().offset,f(E)}function p(E){return t.containerState={},e.attempt(Fa,m,f)(E)}function m(E){return s++,n.push([t.currentConstruct,t.containerState]),p(E)}function f(E){return E===null?(r&&x(),_(0),void e.consume(E)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:i}),T(E))}function T(E){return E===null?(g(e.exit("chunkFlow"),!0),_(0),void e.consume(E)):ee(E)?(e.consume(E),g(e.exit("chunkFlow")),s=0,t.interrupt=void 0,a):(e.consume(E),T)}function g(E,y){const w=t.sliceStream(E);if(y&&w.push(null),E.previous=i,i&&(i.next=E),i=E,r.defineSkip(E.start),r.write(w),t.parser.lazy[E.start.line]){let N=r.events.length;for(;N--;)if(r.events[N][1].start.offset<o&&(!r.events[N][1].end||r.events[N][1].end.offset>o))return;const O=t.events.length;let S,M,B=O;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(S){M=t.events[B][1].end;break}S=!0}for(_(s),N=O;N<t.events.length;)t.events[N][1].end={...M},N++;Ke(t.events,B+1,0,t.events.slice(O)),t.events.length=N}}function _(E){let y=n.length;for(;y-- >E;){const w=n[y];t.containerState=w[1],w[0].exit.call(t,e)}n.length=E}function x(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Fa={tokenize:function(e,t,n){return ae(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function _n(e){return e===null||me(e)||Qt(e)?1:Hr(e)?2:void 0}function Gr(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const lo={name:"attention",resolveAll:function(e,t){let n,r,i,o,s,a,l,c,u=-1;for(;++u<e.length;)if(e[u][0]==="enter"&&e[u][1].type==="attentionSequence"&&e[u][1]._close){for(n=u;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const h={...e[n][1].end},p={...e[u][1].start};Ua(h,-a),Ua(p,a),o={type:a>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:a>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[n][1].end={...o.start},e[u][1].start={...s.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=et(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=et(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=et(l,Gr(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=et(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=et(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Ke(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++u<e.length;)e[u][1].type==="attentionSequence"&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=_n(r);let o;return function(a){return o=a,e.enter("attentionSequence"),s(a)};function s(a){if(a===o)return e.consume(a),s;const l=e.exit("attentionSequence"),c=_n(a),u=!c||c===2&&i||n.includes(a),h=!i||i===2&&c||n.includes(r);return l._open=!!(o===42?u:u&&(i||!h)),l._close=!!(o===42?h:h&&(c||!u)),t(a)}}};function Ua(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const fm={name:"autolink",tokenize:function(e,t,n){let r=0;return function(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(p){return ze(p)?(e.consume(p),o):p===64?n(p):l(p)}function o(p){return p===43||p===45||p===46||Ge(p)?(r=1,s(p)):l(p)}function s(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||Ge(p))&&r++<32?(e.consume(p),s):(r=0,l(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Ur(p)?n(p):(e.consume(p),a)}function l(p){return p===64?(e.consume(p),c):um(p)?(e.consume(p),l):n(p)}function c(p){return Ge(p)?u(p):n(p)}function u(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||Ge(p))&&r++<63){const m=p===45?h:u;return e.consume(p),m}return n(p)}}},Xn={partial:!0,tokenize:function(e,t,n){return function(i){return ce(i)?ae(e,r,"linePrefix")(i):r(i)};function r(i){return i===null||ee(i)?t(i):n(i)}}},Ha={continuation:{tokenize:function(e,t,n){const r=this;return function(o){return ce(o)?ae(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)};function i(o){return e.attempt(Ha,t,n)(o)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)};function i(o){return ce(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}},Ga={name:"characterEscape",tokenize:function(e,t,n){return function(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),r};function r(i){return hm(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}},$a={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,s=0;return function(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),a};function a(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=Ge,c(u))}function l(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=pm,c):(e.enter("characterReferenceValue"),i=7,o=ao,c(u))}function c(u){if(u===59&&s){const h=e.exit("characterReferenceValue");return o!==Ge||so(r.sliceSerialize(h))?(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(u)}return o(u)&&s++<i?(e.consume(u),c):n(u)}}},Va={partial:!0,tokenize:function(e,t,n){const r=this;return function(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)};function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}},ja={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(E,y,w){let N=0;return O;function O(R){return E.enter("lineEnding"),E.consume(R),E.exit("lineEnding"),S}function S(R){return E.enter("codeFencedFence"),ce(R)?ae(E,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):M(R)}function M(R){return R===o?(E.enter("codeFencedFenceSequence"),B(R)):w(R)}function B(R){return R===o?(N++,E.consume(R),B):N>=a?(E.exit("codeFencedFenceSequence"),ce(R)?ae(E,G,"whitespace")(R):G(R)):w(R)}function G(R){return R===null||ee(R)?(E.exit("codeFencedFence"),y(R)):w(R)}}};let o,s=0,a=0;return function(E){return(function(y){const w=r.events[r.events.length-1];return s=w&&w[1].type==="linePrefix"?w[2].sliceSerialize(w[1],!0).length:0,o=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(y)})(E)};function l(E){return E===o?(a++,e.consume(E),l):a<3?n(E):(e.exit("codeFencedFenceSequence"),ce(E)?ae(e,c,"whitespace")(E):c(E))}function c(E){return E===null||ee(E)?(e.exit("codeFencedFence"),r.interrupt?t(E):e.check(Va,m,x)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(E))}function u(E){return E===null||ee(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(E)):ce(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ae(e,h,"whitespace")(E)):E===96&&E===o?n(E):(e.consume(E),u)}function h(E){return E===null||ee(E)?c(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===null||ee(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(E)):E===96&&E===o?n(E):(e.consume(E),p)}function m(E){return e.attempt(i,x,f)(E)}function f(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),T}function T(E){return s>0&&ce(E)?ae(e,g,"linePrefix",s+1)(E):g(E)}function g(E){return E===null||ee(E)?e.check(Va,m,x)(E):(e.enter("codeFlowValue"),_(E))}function _(E){return E===null||ee(E)?(e.exit("codeFlowValue"),g(E)):(e.consume(E),_)}function x(E){return e.exit("codeFenced"),t(E)}}},co={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(l){return e.enter("codeIndented"),ae(e,i,"linePrefix",5)(l)};function i(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(l):n(l)}function o(l){return l===null?a(l):ee(l)?e.attempt(gm,o,a)(l):(e.enter("codeFlowValue"),s(l))}function s(l){return l===null||ee(l)?(e.exit("codeFlowValue"),o(l)):(e.consume(l),s)}function a(l){return e.exit("codeIndented"),t(l)}}},gm={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):ee(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ae(e,o,"linePrefix",5)(s)}function o(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):ee(s)?i(s):n(s)}}},_m={name:"codeText",previous:function(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"},resolve:function(e){let t,n,r=e.length-4,i=3;if(!(e[i][1].type!=="lineEnding"&&e[i][1].type!=="space"||e[r][1].type!=="lineEnding"&&e[r][1].type!=="space")){for(t=i;++t<r;)if(e[t][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)n===void 0?t!==r&&e[t][1].type!=="lineEnding"&&(n=t):t!==r&&e[t][1].type!=="lineEnding"||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(u){return e.enter("codeText"),e.enter("codeTextSequence"),s(u)};function s(u){return u===96?(e.consume(u),o++,s):(e.exit("codeTextSequence"),a(u))}function a(u){return u===null?n(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),a):u===96?(i=e.enter("codeTextSequence"),r=0,c(u)):ee(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):(e.enter("codeTextData"),l(u))}function l(u){return u===null||u===32||u===96||ee(u)?(e.exit("codeTextData"),a(u)):(e.consume(u),l)}function c(u){return u===96?(e.consume(u),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(u)):(i.type="codeTextData",l(u))}}};class Em{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Kn(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Kn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Kn(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Kn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Kn(this.left,n.reverse())}}}function Kn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function za(e){const t={};let n,r,i,o,s,a,l,c=-1;const u=new Em(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&n[1].type==="chunkFlow"&&u.get(c-1)[1].type==="listItemPrefix"&&(a=n[1]._tokenizer.events,i=0,i<a.length&&a[i][1].type==="lineEndingBlank"&&(i+=2),i<a.length&&a[i][1].type==="content"))for(;++i<a.length&&a[i][1].type!=="content";)a[i][1].type==="chunkText"&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Tm(u,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--;)if(o=u.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);else if(o[1].type!=="linePrefix"&&o[1].type!=="listItemIndent")break;r&&(n[1].end={...u.get(r)[1].start},s=u.slice(r,c),s.unshift(n),u.splice(r,c-r+1,s))}}return Ke(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function Tm(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],c={};let u,h,p=-1,m=n,f=0,T=0;const g=[T];for(;m;){for(;e.get(++i)[1]!==m;);o.push(i),m._tokenizer||(u=r.sliceStream(m),m.next||u.push(null),h&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=m,m=m.next}for(m=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(T=p+1,g.push(T),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):g.pop(),p=g.length;p--;){const _=a.slice(g[p],g[p+1]),x=o.pop();l.push([x,x+_.length-1]),e.splice(x,2,_)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const bm={resolve:function(e){return za(e),e},tokenize:function(e,t){let n;return function(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(s)};function r(s){return s===null?i(s):ee(s)?e.check(km,o,i)(s):(e.consume(s),r)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},km={partial:!0,tokenize:function(e,t,n){const r=this;return function(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ae(e,i,"linePrefix")};function i(o){if(o===null||ee(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function qa(e,t,n,r,i,o,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(g){return g===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(g),e.exit(o),h):g===null||g===32||g===41||Ur(g)?n(g):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),f(g))};function h(g){return g===62?(e.enter(o),e.consume(g),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(e.exit("chunkString"),e.exit(a),h(g)):g===null||g===60||ee(g)?n(g):(e.consume(g),g===92?m:p)}function m(g){return g===60||g===62||g===92?(e.consume(g),p):p(g)}function f(g){return u||g!==null&&g!==41&&!me(g)?u<c&&g===40?(e.consume(g),u++,f):g===41?(e.consume(g),u--,f):g===null||g===32||g===40||Ur(g)?n(g):(e.consume(g),g===92?T:f):(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(g))}function T(g){return g===40||g===41||g===92?(e.consume(g),f):f(g)}}function Wa(e,t,n,r,i,o){const s=this;let a,l=0;return function(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),c};function c(p){return l>999||p===null||p===91||p===93&&!a||p===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):ee(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===null||p===91||p===93||ee(p)||l++>999?(e.exit("chunkString"),c(p)):(e.consume(p),a||(a=!ce(p)),p===92?h:u)}function h(p){return p===91||p===92||p===93?(e.consume(p),l++,u):u(p)}}function Ya(e,t,n,r,i,o){let s;return function(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),s=h===40?41:h,a):n(h)};function a(h){return h===s?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(o),l(h))}function l(h){return h===s?(e.exit(o),a(s)):h===null?n(h):ee(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ae(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===s||h===null||ee(h)?(e.exit("chunkString"),l(h)):(e.consume(h),h===92?u:c)}function u(h){return h===s||h===92?(e.consume(h),c):c(h)}}function Zn(e,t){let n;return function r(i){return ee(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ce(i)?ae(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Am={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(h){return e.enter("definition"),(function(p){return Wa.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)})(h)};function o(h){return i=at(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):n(h)}function s(h){return me(h)?Zn(e,a)(h):a(h)}function a(h){return qa(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function l(h){return e.attempt(ym,c,c)(h)}function c(h){return ce(h)?ae(e,u,"whitespace")(h):u(h)}function u(h){return h===null||ee(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}},ym={partial:!0,tokenize:function(e,t,n){return function(s){return me(s)?Zn(e,r)(s):n(s)};function r(s){return Ya(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return ce(s)?ae(e,o,"whitespace")(s):o(s)}function o(s){return s===null||ee(s)?t(s):n(s)}}},xm={name:"hardBreakEscape",tokenize:function(e,t,n){return function(i){return e.enter("hardBreakEscape"),e.consume(i),r};function r(i){return ee(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}},Cm={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return e[o][1].type==="whitespace"&&(o+=2),i-2>o&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(o===i-1||i-4>o&&e[i-2][1].type==="whitespace")&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},Ke(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(l){return e.enter("atxHeading"),(function(c){return e.enter("atxHeadingSequence"),i(c)})(l)};function i(l){return l===35&&r++<6?(e.consume(l),i):l===null||me(l)?(e.exit("atxHeadingSequence"),o(l)):n(l)}function o(l){return l===35?(e.enter("atxHeadingSequence"),s(l)):l===null||ee(l)?(e.exit("atxHeading"),t(l)):ce(l)?ae(e,o,"whitespace")(l):(e.enter("atxHeadingText"),a(l))}function s(l){return l===35?(e.consume(l),s):(e.exit("atxHeadingSequence"),o(l))}function a(l){return l===null||l===35||me(l)?(e.exit("atxHeadingText"),o(l)):(e.consume(l),a)}}},Im=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Qa=["pre","script","style","textarea"],Sm={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&(e[t][0]!=="enter"||e[t][1].type!=="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let i,o,s,a,l;return function(D){return(function(ye){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(ye),c})(D)};function c(D){return D===33?(e.consume(D),u):D===47?(e.consume(D),o=!0,m):D===63?(e.consume(D),i=3,r.interrupt?t:J):ze(D)?(e.consume(D),s=String.fromCharCode(D),f):n(D)}function u(D){return D===45?(e.consume(D),i=2,h):D===91?(e.consume(D),i=5,a=0,p):ze(D)?(e.consume(D),i=4,r.interrupt?t:J):n(D)}function h(D){return D===45?(e.consume(D),r.interrupt?t:J):n(D)}function p(D){return D==="CDATA[".charCodeAt(a++)?(e.consume(D),a===6?r.interrupt?t:B:p):n(D)}function m(D){return ze(D)?(e.consume(D),s=String.fromCharCode(D),f):n(D)}function f(D){if(D===null||D===47||D===62||me(D)){const ye=D===47,ke=s.toLowerCase();return ye||o||!Qa.includes(ke)?Im.includes(s.toLowerCase())?(i=6,ye?(e.consume(D),T):r.interrupt?t(D):B(D)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):o?g(D):_(D)):(i=1,r.interrupt?t(D):B(D))}return D===45||Ge(D)?(e.consume(D),s+=String.fromCharCode(D),f):n(D)}function T(D){return D===62?(e.consume(D),r.interrupt?t:B):n(D)}function g(D){return ce(D)?(e.consume(D),g):S(D)}function _(D){return D===47?(e.consume(D),S):D===58||D===95||ze(D)?(e.consume(D),x):ce(D)?(e.consume(D),_):S(D)}function x(D){return D===45||D===46||D===58||D===95||Ge(D)?(e.consume(D),x):E(D)}function E(D){return D===61?(e.consume(D),y):ce(D)?(e.consume(D),E):_(D)}function y(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),l=D,w):ce(D)?(e.consume(D),y):N(D)}function w(D){return D===l?(e.consume(D),l=null,O):D===null||ee(D)?n(D):(e.consume(D),w)}function N(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||me(D)?E(D):(e.consume(D),N)}function O(D){return D===47||D===62||ce(D)?_(D):n(D)}function S(D){return D===62?(e.consume(D),M):n(D)}function M(D){return D===null||ee(D)?B(D):ce(D)?(e.consume(D),M):n(D)}function B(D){return D===45&&i===2?(e.consume(D),W):D===60&&i===1?(e.consume(D),Y):D===62&&i===4?(e.consume(D),I):D===63&&i===3?(e.consume(D),J):D===93&&i===5?(e.consume(D),Z):!ee(D)||i!==6&&i!==7?D===null||ee(D)?(e.exit("htmlFlowData"),G(D)):(e.consume(D),B):(e.exit("htmlFlowData"),e.check(Dm,pe,G)(D))}function G(D){return e.check(Nm,R,pe)(D)}function R(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),q}function q(D){return D===null||ee(D)?G(D):(e.enter("htmlFlowData"),B(D))}function W(D){return D===45?(e.consume(D),J):B(D)}function Y(D){return D===47?(e.consume(D),s="",z):B(D)}function z(D){if(D===62){const ye=s.toLowerCase();return Qa.includes(ye)?(e.consume(D),I):B(D)}return ze(D)&&s.length<8?(e.consume(D),s+=String.fromCharCode(D),z):B(D)}function Z(D){return D===93?(e.consume(D),J):B(D)}function J(D){return D===62?(e.consume(D),I):D===45&&i===2?(e.consume(D),J):B(D)}function I(D){return D===null||ee(D)?(e.exit("htmlFlowData"),pe(D)):(e.consume(D),I)}function pe(D){return e.exit("htmlFlow"),t(D)}}},Dm={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Xn,t,n)}}},Nm={partial:!0,tokenize:function(e,t,n){const r=this;return function(o){return ee(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)};function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}},wm={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,s;return function(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),a};function a(I){return I===33?(e.consume(I),l):I===47?(e.consume(I),y):I===63?(e.consume(I),x):ze(I)?(e.consume(I),O):n(I)}function l(I){return I===45?(e.consume(I),c):I===91?(e.consume(I),o=0,m):ze(I)?(e.consume(I),_):n(I)}function c(I){return I===45?(e.consume(I),p):n(I)}function u(I){return I===null?n(I):I===45?(e.consume(I),h):ee(I)?(s=u,z(I)):(e.consume(I),u)}function h(I){return I===45?(e.consume(I),p):u(I)}function p(I){return I===62?Y(I):I===45?h(I):u(I)}function m(I){return I==="CDATA[".charCodeAt(o++)?(e.consume(I),o===6?f:m):n(I)}function f(I){return I===null?n(I):I===93?(e.consume(I),T):ee(I)?(s=f,z(I)):(e.consume(I),f)}function T(I){return I===93?(e.consume(I),g):f(I)}function g(I){return I===62?Y(I):I===93?(e.consume(I),g):f(I)}function _(I){return I===null||I===62?Y(I):ee(I)?(s=_,z(I)):(e.consume(I),_)}function x(I){return I===null?n(I):I===63?(e.consume(I),E):ee(I)?(s=x,z(I)):(e.consume(I),x)}function E(I){return I===62?Y(I):x(I)}function y(I){return ze(I)?(e.consume(I),w):n(I)}function w(I){return I===45||Ge(I)?(e.consume(I),w):N(I)}function N(I){return ee(I)?(s=N,z(I)):ce(I)?(e.consume(I),N):Y(I)}function O(I){return I===45||Ge(I)?(e.consume(I),O):I===47||I===62||me(I)?S(I):n(I)}function S(I){return I===47?(e.consume(I),Y):I===58||I===95||ze(I)?(e.consume(I),M):ee(I)?(s=S,z(I)):ce(I)?(e.consume(I),S):Y(I)}function M(I){return I===45||I===46||I===58||I===95||Ge(I)?(e.consume(I),M):B(I)}function B(I){return I===61?(e.consume(I),G):ee(I)?(s=B,z(I)):ce(I)?(e.consume(I),B):S(I)}function G(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),i=I,R):ee(I)?(s=G,z(I)):ce(I)?(e.consume(I),G):(e.consume(I),q)}function R(I){return I===i?(e.consume(I),i=void 0,W):I===null?n(I):ee(I)?(s=R,z(I)):(e.consume(I),R)}function q(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||me(I)?S(I):(e.consume(I),q)}function W(I){return I===47||I===62||me(I)?S(I):n(I)}function Y(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}function z(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),Z}function Z(I){return ce(I)?ae(e,J,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):J(I)}function J(I){return e.enter("htmlTextData"),s(I)}}},uo={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Ke(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[s][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(i){if(e[s][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(r=s,n.type!=="labelLink")){a=2;break}}else n.type==="labelEnd"&&(i=s);const l={type:e[r][1].type==="labelLink"?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=et(o,e.slice(r+1,r+a+3)),o=et(o,[["enter",u,t]]),o=et(o,Gr(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=et(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=et(o,e.slice(i+1)),o=et(o,[["exit",l,t]]),Ke(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let i,o,s=r.events.length;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){i=r.events[s][1];break}return function(h){return i?i._inactive?u(h):(o=r.parser.defined.includes(at(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),a):n(h)};function a(h){return h===40?e.attempt(Lm,c,o?c:u)(h):h===91?e.attempt(Om,c,o?l:u)(h):o?c(h):u(h)}function l(h){return e.attempt(Rm,c,u)(h)}function c(h){return t(h)}function u(h){return i._balanced=!0,n(h)}}},Lm={tokenize:function(e,t,n){return function(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),r};function r(u){return me(u)?Zn(e,i)(u):i(u)}function i(u){return u===41?c(u):qa(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function o(u){return me(u)?Zn(e,a)(u):c(u)}function s(u){return n(u)}function a(u){return u===34||u===39||u===40?Ya(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):c(u)}function l(u){return me(u)?Zn(e,c)(u):c(u)}function c(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):n(u)}}},Om={tokenize:function(e,t,n){const r=this;return function(s){return Wa.call(r,e,i,o,"reference","referenceMarker","referenceString")(s)};function i(s){return r.parser.defined.includes(at(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}},Rm={tokenize:function(e,t,n){return function(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),r};function r(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}},vm={name:"labelStartImage",resolveAll:uo.resolveAll,tokenize:function(e,t,n){const r=this;return function(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i};function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}},Pm={name:"labelStartLink",resolveAll:uo.resolveAll,tokenize:function(e,t,n){const r=this;return function(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i};function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}},po={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ae(e,t,"linePrefix")}}},$r={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(a){return e.enter("thematicBreak"),(function(l){return r=l,o(l)})(a)};function o(a){return a===r?(e.enter("thematicBreakSequence"),s(a)):i>=3&&(a===null||ee(a))?(e.exit("thematicBreak"),t(a)):n(a)}function s(a){return a===r?(e.consume(a),i++,s):(e.exit("thematicBreakSequence"),ce(a)?ae(e,o,"whitespace")(a):o(a))}}},Qe={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Xn,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ae(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!ce(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Bm,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ae(e,e.attempt(Qe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ao(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check($r,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)};function a(p){return ao(p)&&++s<10?(e.consume(p),a):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Xn,r.interrupt?n:c,e.attempt(Mm,h,u))}function c(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function u(p){return ce(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}},Mm={partial:!0,tokenize:function(e,t,n){const r=this;return ae(e,function(i){const o=r.events[r.events.length-1];return!ce(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Bm={partial:!0,tokenize:function(e,t,n){const r=this;return ae(e,function(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)},"listItemIndent",r.containerState.size+1)}},Xa={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if(e[o][0]==="enter"){if(e[o][1].type==="content"){n=o;break}e[o][1].type==="paragraph"&&(r=o)}else e[o][1].type==="content"&&e.splice(o,1),i||e[o][1].type!=="definition"||(i=o);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(a){let l,c=r.events.length;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){l=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||l)?(e.enter("setextHeadingLine"),i=a,(function(u){return e.enter("setextHeadingLineSequence"),o(u)})(a)):n(a)};function o(a){return a===i?(e.consume(a),o):(e.exit("setextHeadingLineSequence"),ce(a)?ae(e,s,"lineSuffix")(a):s(a))}function s(a){return a===null||ee(a)?(e.exit("setextHeadingLine"),t(a)):n(a)}}},Fm={tokenize:function(e){const t=this,n=e.attempt(Xn,function(i){return i===null?void e.consume(i):(e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,ae(e,e.attempt(this.parser.constructs.flow,r,e.attempt(bm,r)),"linePrefix")));return n;function r(i){if(i!==null)return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(i)}}},Um={resolveAll:Za()},Hm=Ka("string"),Gm=Ka("text");function Ka(e){return{resolveAll:Za(e==="text"?$m:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(c){return l(c)?i(c):s(c)}function s(c){if(c!==null)return t.enter("data"),t.consume(c),a;t.consume(c)}function a(c){return l(c)?(t.exit("data"),i(c)):(t.consume(c),a)}function l(c){if(c===null)return!0;const u=r[c];let h=-1;if(u)for(;++h<u.length;){const p=u[h];if(!p.previous||p.previous.call(n,n.previous))return!0}return!1}}}}function Za(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)r===void 0?t[i]&&t[i][1].type==="data"&&(r=i,i++):t[i]&&t[i][1].type==="data"||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function $m(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o,s=i.length,a=-1,l=0;for(;s--;){const c=i[s];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(c===-2)o=!0,l++;else if(c!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const c={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const Vm={42:Qe,43:Qe,45:Qe,48:Qe,49:Qe,50:Qe,51:Qe,52:Qe,53:Qe,54:Qe,55:Qe,56:Qe,57:Qe,62:Ha},jm={91:Am},zm={[-2]:co,[-1]:co,32:co},qm={35:Cm,42:$r,45:[Xa,$r],60:Sm,61:Xa,95:$r,96:ja,126:ja},Wm={38:$a,92:Ga},Ym={[-5]:po,[-4]:po,[-3]:po,33:vm,38:$a,42:lo,60:[fm,wm],91:Pm,92:[xm,Ga],93:uo,95:lo,96:_m},Qm={null:[lo,Um]},Xm=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:jm,disable:{null:[]},document:Vm,flow:qm,flowInitial:zm,insideSpan:Qm,string:Wm,text:Ym},Symbol.toStringTag,{value:"Module"}));function Km(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],a=[];const l={attempt:g(function(E,y){_(E,y.from)}),check:g(T),consume:function(E){ee(E)?(r.line++,r.column=1,r.offset+=E===-3?2:1,x()):E!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=E},enter:function(E,y){const w=y||{};return w.type=E,w.start=p(),c.events.push(["enter",w,c]),a.push(w),w},exit:function(E){const y=a.pop();return y.end=p(),c.events.push(["exit",y,c]),y},interrupt:g(T,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(E){i[E.line]=E.column,x()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(E,y){return(function(w,N){let O=-1;const S=[];let M;for(;++O<w.length;){const B=w[O];let G;if(typeof B=="string")G=B;else switch(B){case-5:G="\r";break;case-4:G=`
3
+ `;break;case-3:G=`\r
4
+ `;break;case-2:G=N?" ":" ";break;case-1:if(!N&&M)continue;G=" ";break;default:G=String.fromCharCode(B)}M=B===-2,S.push(G)}return S.join("")})(h(E),y)},sliceStream:h,write:function(E){return s=et(s,E),m(),s[s.length-1]!==null?[]:(_(t,0),c.events=Gr(o,c.events,c),c.events)}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function h(E){return(function(y,w){const N=w.start._index,O=w.start._bufferIndex,S=w.end._index,M=w.end._bufferIndex;let B;if(N===S)B=[y[N].slice(O,M)];else{if(B=y.slice(N,S),O>-1){const G=B[0];typeof G=="string"?B[0]=G.slice(O):B.shift()}M>0&&B.push(y[S].slice(0,M))}return B})(s,E)}function p(){const{_bufferIndex:E,_index:y,line:w,column:N,offset:O}=r;return{_bufferIndex:E,_index:y,line:w,column:N,offset:O}}function m(){let E;for(;r._index<s.length;){const y=s[r._index];if(typeof y=="string")for(E=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===E&&r._bufferIndex<y.length;)f(y.charCodeAt(r._bufferIndex));else f(y)}}function f(E){u=u(E)}function T(E,y){y.restore()}function g(E,y){return function(w,N,O){let S,M,B,G;return Array.isArray(w)?R(w):"tokenize"in w?R([w]):(function(z){return Z;function Z(J){const I=J!==null&&z[J],pe=J!==null&&z.null;return R([...Array.isArray(I)?I:I?[I]:[],...Array.isArray(pe)?pe:pe?[pe]:[]])(J)}})(w);function R(z){return S=z,M=0,z.length===0?O:q(z[M])}function q(z){return function(Z){return G=(function(){const J=p(),I=c.previous,pe=c.currentConstruct,D=c.events.length,ye=Array.from(a);return{from:D,restore:ke};function ke(){r=J,c.previous=I,c.currentConstruct=pe,c.events.length=D,a=ye,x()}})(),B=z,z.partial||(c.currentConstruct=z),z.name&&c.parser.constructs.disable.null.includes(z.name)?Y():z.tokenize.call(y?Object.assign(Object.create(c),y):c,l,W,Y)(Z)}}function W(z){return E(B,G),N}function Y(z){return G.restore(),++M<S.length?q(S[M]):O}}}function _(E,y){E.resolveAll&&!o.includes(E)&&o.push(E),E.resolve&&Ke(c.events,y,c.events.length-y,E.resolve(c.events.slice(y),c)),E.resolveTo&&(c.events=E.resolveTo(c.events,c))}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const Ja=/[\0\t\n\r]/g,Zm=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Jm(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),i=r===120||r===88;return Ba(n.slice(i?2:1),i?16:10)}return so(n)||e}const el={}.hasOwnProperty;function ef(e,t,n){return typeof t!="string"&&(n=t,t=void 0),(function(r){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Sd),autolinkProtocol:R,autolinkEmail:R,atxHeading:l(xd),blockQuote:l(jk),characterEscape:R,characterReference:R,codeFenced:l(yd),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(yd,c),codeText:l(zk,c),codeTextData:R,data:R,codeFlowValue:R,definition:l(qk),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(Wk),hardBreakEscape:l(Cd),hardBreakTrailing:l(Cd),htmlFlow:l(Id,c),htmlFlowData:R,htmlText:l(Id,c),htmlTextData:R,image:l(Yk),label:c,link:l(Sd),listItem:l(Qk),listItemValue:T,listOrdered:l(Dd,f),listUnordered:l(Dd),paragraph:l(Xk),reference:Lt,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(xd),strong:l(Kk),thematicBreak:l(Jk)},exit:{atxHeading:h(),atxHeadingSequence:S,autolink:h(),autolinkEmail:Vk,autolinkProtocol:Wi,blockQuote:h(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:qi,characterReferenceMarkerNumeric:qi,characterReferenceValue:ra,characterReference:$n,codeFenced:h(E),codeFencedFence:x,codeFencedFenceInfo:g,codeFencedFenceMeta:_,codeFlowValue:q,codeIndented:h(y),codeText:h(J),codeTextData:q,data:q,definition:h(),definitionDestinationString:O,definitionLabelString:w,definitionTitleString:N,emphasis:h(),hardBreakEscape:h(Y),hardBreakTrailing:h(Y),htmlFlow:h(z),htmlFlowData:q,htmlText:h(Z),htmlTextData:q,image:h(pe),label:ye,labelText:D,lineEnding:W,link:h(I),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:na,resourceDestinationString:ke,resourceTitleString:Ue,resource:Gn,setextHeading:h(G),setextHeadingLineSequence:B,setextHeadingText:M,strong:h(),thematicBreak:h()}};tl(i,(r||{}).mdastExtensions||[]);const o={};return s;function s(F){let te={type:"root",children:[]};const ne={stack:[te],tokenStack:[],config:i,enter:u,exit:p,buffer:c,resume:m,data:o},fe=[];let ge=-1;for(;++ge<F.length;)(F[ge][1].type==="listOrdered"||F[ge][1].type==="listUnordered")&&(F[ge][0]==="enter"?fe.push(ge):ge=a(F,fe.pop(),ge));for(ge=-1;++ge<F.length;){const ut=i[F[ge][0]];el.call(ut,F[ge][1].type)&&ut[F[ge][1].type].call(Object.assign({sliceSerialize:F[ge][2].sliceSerialize},ne),F[ge][1])}if(ne.tokenStack.length>0){const ut=ne.tokenStack[ne.tokenStack.length-1];(ut[1]||nl).call(ne,void 0,ut[0])}for(te.position={start:Pt(F.length>0?F[0][1].start:{line:1,column:1,offset:0}),end:Pt(F.length>0?F[F.length-2][1].end:{line:1,column:1,offset:0})},ge=-1;++ge<i.transforms.length;)te=i.transforms[ge](te)||te;return te}function a(F,te,ne){let fe,ge,ut,Rr,Wt=te-1,vr=-1,Nd=!1;for(;++Wt<=ne;){const Je=F[Wt];switch(Je[1].type){case"listUnordered":case"listOrdered":case"blockQuote":Je[0]==="enter"?vr++:vr--,Rr=void 0;break;case"lineEndingBlank":Je[0]==="enter"&&(!fe||Rr||vr||ut||(ut=Wt),Rr=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Rr=void 0}if(!vr&&Je[0]==="enter"&&Je[1].type==="listItemPrefix"||vr===-1&&Je[0]==="exit"&&(Je[1].type==="listUnordered"||Je[1].type==="listOrdered")){if(fe){let Vn=Wt;for(ge=void 0;Vn--;){const Ot=F[Vn];if(Ot[1].type==="lineEnding"||Ot[1].type==="lineEndingBlank"){if(Ot[0]==="exit")continue;ge&&(F[ge][1].type="lineEndingBlank",Nd=!0),Ot[1].type="lineEnding",ge=Vn}else if(Ot[1].type!=="linePrefix"&&Ot[1].type!=="blockQuotePrefix"&&Ot[1].type!=="blockQuotePrefixWhitespace"&&Ot[1].type!=="blockQuoteMarker"&&Ot[1].type!=="listItemIndent")break}ut&&(!ge||ut<ge)&&(fe._spread=!0),fe.end=Object.assign({},ge?F[ge][1].start:Je[1].end),F.splice(ge||Wt,0,["exit",fe,Je[2]]),Wt++,ne++}if(Je[1].type==="listItemPrefix"){const Vn={type:"listItem",_spread:!1,start:Object.assign({},Je[1].start),end:void 0};fe=Vn,F.splice(Wt,0,["enter",Vn,Je[2]]),Wt++,ne++,ut=void 0,Rr=!0}}}return F[te][1]._spread=Nd,ne}function l(F,te){return ne;function ne(fe){u.call(this,F(fe),fe),te&&te.call(this,fe)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(F,te,ne){this.stack[this.stack.length-1].children.push(F),this.stack.push(F),this.tokenStack.push([te,ne||void 0]),F.position={start:Pt(te.start),end:void 0}}function h(F){return te;function te(ne){F&&F.call(this,ne),p.call(this,ne)}}function p(F,te){const ne=this.stack.pop(),fe=this.tokenStack.pop();if(!fe)throw new Error("Cannot close `"+F.type+"` ("+Yn({start:F.start,end:F.end})+"): it\u2019s not open");fe[0].type!==F.type&&(te?te.call(this,F,fe[0]):(fe[1]||nl).call(this,F,fe[0])),ne.position.end=Pt(F.end)}function m(){return oo(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function T(F){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(F),10),this.data.expectingFirstListItemValue=void 0)}function g(){const F=this.resume();this.stack[this.stack.length-1].lang=F}function _(){const F=this.resume();this.stack[this.stack.length-1].meta=F}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const F=this.resume();this.stack[this.stack.length-1].value=F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const F=this.resume();this.stack[this.stack.length-1].value=F.replace(/(\r?\n|\r)$/g,"")}function w(F){const te=this.resume(),ne=this.stack[this.stack.length-1];ne.label=te,ne.identifier=at(this.sliceSerialize(F)).toLowerCase()}function N(){const F=this.resume();this.stack[this.stack.length-1].title=F}function O(){const F=this.resume();this.stack[this.stack.length-1].url=F}function S(F){const te=this.stack[this.stack.length-1];if(!te.depth){const ne=this.sliceSerialize(F).length;te.depth=ne}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function B(F){this.stack[this.stack.length-1].depth=this.sliceSerialize(F).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function R(F){const te=this.stack[this.stack.length-1].children;let ne=te[te.length-1];ne&&ne.type==="text"||(ne=Zk(),ne.position={start:Pt(F.start),end:void 0},te.push(ne)),this.stack.push(ne)}function q(F){const te=this.stack.pop();te.value+=this.sliceSerialize(F),te.position.end=Pt(F.end)}function W(F){const te=this.stack[this.stack.length-1];if(this.data.atHardBreak)return te.children[te.children.length-1].position.end=Pt(F.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&i.canContainEols.includes(te.type)&&(R.call(this,F),q.call(this,F))}function Y(){this.data.atHardBreak=!0}function z(){const F=this.resume();this.stack[this.stack.length-1].value=F}function Z(){const F=this.resume();this.stack[this.stack.length-1].value=F}function J(){const F=this.resume();this.stack[this.stack.length-1].value=F}function I(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=te,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function pe(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=te,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function D(F){const te=this.sliceSerialize(F),ne=this.stack[this.stack.length-2];ne.label=(function(fe){return fe.replace(Zm,Jm)})(te),ne.identifier=at(te).toLowerCase()}function ye(){const F=this.stack[this.stack.length-1],te=this.resume(),ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,ne.type==="link"){const fe=F.children;ne.children=fe}else ne.alt=te}function ke(){const F=this.resume();this.stack[this.stack.length-1].url=F}function Ue(){const F=this.resume();this.stack[this.stack.length-1].title=F}function Gn(){this.data.inReference=void 0}function Lt(){this.data.referenceType="collapsed"}function na(F){const te=this.resume(),ne=this.stack[this.stack.length-1];ne.label=te,ne.identifier=at(this.sliceSerialize(F)).toLowerCase(),this.data.referenceType="full"}function qi(F){this.data.characterReferenceType=F.type}function ra(F){const te=this.sliceSerialize(F),ne=this.data.characterReferenceType;let fe;ne?(fe=Ba(te,ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):fe=so(te),this.stack[this.stack.length-1].value+=fe}function $n(F){this.stack.pop().position.end=Pt(F.end)}function Wi(F){q.call(this,F),this.stack[this.stack.length-1].url=this.sliceSerialize(F)}function Vk(F){q.call(this,F),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(F)}function jk(){return{type:"blockquote",children:[]}}function yd(){return{type:"code",lang:null,meta:null,value:""}}function zk(){return{type:"inlineCode",value:""}}function qk(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Wk(){return{type:"emphasis",children:[]}}function xd(){return{type:"heading",depth:0,children:[]}}function Cd(){return{type:"break"}}function Id(){return{type:"html",value:""}}function Yk(){return{type:"image",title:null,url:"",alt:null}}function Sd(){return{type:"link",title:null,url:"",children:[]}}function Dd(F){return{type:"list",ordered:F.type==="listOrdered",start:null,spread:F._spread,children:[]}}function Qk(F){return{type:"listItem",spread:F._spread,checked:null,children:[]}}function Xk(){return{type:"paragraph",children:[]}}function Kk(){return{type:"strong",children:[]}}function Zk(){return{type:"text",value:""}}function Jk(){return{type:"thematicBreak"}}})(n)((function(r){for(;!za(r););return r})((function(r){const i={constructs:Ma([Xm,...(r||{}).extensions||[]]),content:o(dm),defined:[],document:o(mm),flow:o(Fm),lazy:{},string:o(Hm),text:o(Gm)};return i;function o(s){return function(a){return Km(i,s,a)}}})(n).document().write((function(){let r,i=1,o="",s=!0;return function(a,l,c){const u=[];let h,p,m,f,T;for(a=o+(typeof a=="string"?a.toString():new TextDecoder(l||void 0).decode(a)),m=0,o="",s&&(a.charCodeAt(0)===65279&&m++,s=void 0);m<a.length;){if(Ja.lastIndex=m,h=Ja.exec(a),f=h&&h.index!==void 0?h.index:a.length,T=a.charCodeAt(f),!h){o=a.slice(m);break}if(T===10&&m===f&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),m<f&&(u.push(a.slice(m,f)),i+=f-m),T){case 0:u.push(65533),i++;break;case 9:for(p=4*Math.ceil(i/4),u.push(-2);i++<p;)u.push(-1);break;case 10:u.push(-4),i=1;break;default:r=!0,i=1}m=f+1}return c&&(r&&u.push(-5),o&&u.push(o),u.push(null)),u}})()(e,t,!0))))}function Pt(e){return{line:e.line,column:e.column,offset:e.offset}}function tl(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?tl(e,r):tf(e,r)}}function tf(e,t){let n;for(n in t)if(el.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function nl(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Yn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Yn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Yn({start:t.start,end:t.end})+") is still open")}function nf(e){const t=this;t.parser=function(n){return ef(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function rl(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function il(e){const t=e.spread;return t??e.children.length>1}function rf(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(ol(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(ol(t.slice(i),i>0,!1)),o.join("")}function ol(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===9||o===32;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===9||o===32;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const of={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
5
+ `}]},code:function(e,t){const n=t.value?t.value+`
6
+ `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=gn(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return rl(e,t);const i={src:gn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:gn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return rl(e,t);const i={href:gn(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:gn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?(function(u){let h=!1;if(u.type==="list"){h=u.spread||!1;const p=u.children;let m=-1;for(;!h&&++m<p.length;)h=il(p[m])}return h})(n):il(t),o={},s=[];if(typeof t.checked=="boolean"){const u=r[0];let h;u&&u.type==="element"&&u.tagName==="p"?h=u:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const u=r[a];(i||a!==0||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
7
+ `}),u.type!=="element"||u.tagName!=="p"||i?s.push(u):s.push(...u.children)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
8
+ `});const c={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=ht(t.children[1]),l=Br(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let a=-1;const l=[];for(;++a<s;){const u=t.children[a],h={},p=o?o[a]:void 0;p&&(h.align=p);let m={type:"element",tagName:i,properties:h,children:[]};u&&(m.children=e.all(u),e.patch(u,m),m=e.applyData(u,m)),l.push(m)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:rf(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Vr,yaml:Vr,definition:Vr,footnoteDefinition:Vr};function Vr(){}const sl=typeof self=="object"?self:globalThis,al=e=>((t,n)=>{const r=(o,s)=>(t.set(s,o),o),i=o=>{if(t.has(o))return t.get(o);const[s,a]=n[o];switch(s){case 0:case-1:return r(a,o);case 1:{const l=r([],o);for(const c of a)l.push(i(c));return l}case 2:{const l=r({},o);for(const[c,u]of a)l[i(c)]=i(u);return l}case 3:return r(new Date(a),o);case 4:{const{source:l,flags:c}=a;return r(new RegExp(l,c),o)}case 5:{const l=r(new Map,o);for(const[c,u]of a)l.set(i(c),i(u));return l}case 6:{const l=r(new Set,o);for(const c of a)l.add(i(c));return l}case 7:{const{name:l,message:c}=a;return r(new sl[l](c),o)}case 8:return r(BigInt(a),o);case"BigInt":return r(Object(BigInt(a)),o);case"ArrayBuffer":return r(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:l}=new Uint8Array(a);return r(new DataView(l),a)}}return r(new sl[s](a),o)};return i})(new Map,e)(0),En="",{toString:sf}={},{keys:af}=Object,Jn=e=>{const t=typeof e;if(t!=="object"||!e)return[0,t];const n=sf.call(e).slice(8,-1);switch(n){case"Array":return[1,En];case"Object":return[2,En];case"Date":return[3,En];case"RegExp":return[4,En];case"Map":return[5,En];case"Set":return[6,En];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},jr=([e,t])=>e===0&&(t==="function"||t==="symbol"),ll=(e,{json:t,lossy:n}={})=>{const r=[];return((i,o,s,a)=>{const l=(u,h)=>{const p=a.push(u)-1;return s.set(h,p),p},c=u=>{if(s.has(u))return s.get(u);let[h,p]=Jn(u);switch(h){case 0:{let f=u;switch(p){case"bigint":h=8,f=u.toString();break;case"function":case"symbol":if(i)throw new TypeError("unable to serialize "+p);f=null;break;case"undefined":return l([-1],u)}return l([h,f],u)}case 1:{if(p){let g=u;return p==="DataView"?g=new Uint8Array(u.buffer):p==="ArrayBuffer"&&(g=new Uint8Array(u)),l([p,[...g]],u)}const f=[],T=l([h,f],u);for(const g of u)f.push(c(g));return T}case 2:{if(p)switch(p){case"BigInt":return l([p,u.toString()],u);case"Boolean":case"Number":case"String":return l([p,u.valueOf()],u)}if(o&&"toJSON"in u)return c(u.toJSON());const f=[],T=l([h,f],u);for(const g of af(u))!i&&jr(Jn(u[g]))||f.push([c(g),c(u[g])]);return T}case 3:return l([h,u.toISOString()],u);case 4:{const{source:f,flags:T}=u;return l([h,{source:f,flags:T}],u)}case 5:{const f=[],T=l([h,f],u);for(const[g,_]of u)(i||!jr(Jn(g))&&!jr(Jn(_)))&&f.push([c(g),c(_)]);return T}case 6:{const f=[],T=l([h,f],u);for(const g of u)!i&&jr(Jn(g))||f.push(c(g));return T}}const{message:m}=u;return l([h,{name:p,message:m}],u)};return c})(!(t||n),!!t,new Map,r)(e),r},er=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?al(ll(e,t)):structuredClone(e):(e,t)=>al(ll(e,t));function lf(e,t){const n=[{type:"text",value:"\u21A9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function cf(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const tr=function(e){if(e==null)return uf;if(typeof e=="function")return zr(e);if(typeof e=="object")return Array.isArray(e)?(function(t){const n=[];let r=-1;for(;++r<t.length;)n[r]=tr(t[r]);return zr(i);function i(...o){let s=-1;for(;++s<n.length;)if(n[s].apply(this,o))return!0;return!1}})(e):(function(t){const n=t;return zr(r);function r(i){const o=i;let s;for(s in t)if(o[s]!==n[s])return!1;return!0}})(e);if(typeof e=="string")return(function(t){return zr(n);function n(r){return r&&r.type===t}})(e);throw new Error("Expected function, string, or object as test")};function zr(e){return function(t,n,r){return!!((function(i){return i!==null&&typeof i=="object"&&"type"in i})(t)&&e.call(this,t,typeof n=="number"?n:void 0,r||void 0))}}function uf(){return!0}const cl=[],pf=!0,ho=!1,ul="skip";function mo(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=tr(i),s=r?-1:1;(function a(l,c,u){const h=l&&typeof l=="object"?l:{};if(typeof h.type=="string"){const m=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(p,"name",{value:"node ("+l.type+(m?"<"+m+">":"")+")"})}return p;function p(){let m,f,T,g=cl;if((!t||o(l,c,u[u.length-1]||void 0))&&(g=(function(_){return Array.isArray(_)?_:typeof _=="number"?[pf,_]:_==null?cl:[_]})(n(l,u)),g[0]===ho))return g;if("children"in l&&l.children){const _=l;if(_.children&&g[0]!==ul)for(f=(r?_.children.length:-1)+s,T=u.concat(_);f>-1&&f<_.children.length;){const x=_.children[f];if(m=a(x,f,T)(),m[0]===ho)return m;f=typeof m[1]=="number"?m[1]:f+s}}return g}})(e,void 0,[])()}function qr(e,t,n,r){let i,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,i=n):(o=t,s=n,i=r),mo(e,o,function(a,l){const c=l[l.length-1],u=c?c.children.indexOf(a):void 0;return s(a,u,c)},i)}const fo={}.hasOwnProperty,hf={};function df(e,t){e.position&&(t.position=(function(n){const r=ht(n),i=Br(n);if(r&&i)return{start:r,end:i}})(e))}function mf(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:"children"in n?n.children:[n]}),n.type==="element"&&o&&Object.assign(n.properties,er(o)),"children"in n&&n.children&&i!=null&&(n.children=i)}return n}function ff(e,t){const n=t.data||{},r=!("value"in t)||fo.call(n,"hProperties")||fo.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function gf(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
9
+ `});++r<e.length;)r&&n.push({type:"text",value:`
10
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
11
+ `}),n}function pl(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function hl(e,t){const n=(function(s,a){const l=a||hf,c=new Map,u=new Map,h=new Map,p={...of,...l.handlers},m={all:function(f){const T=[];if("children"in f){const g=f.children;let _=-1;for(;++_<g.length;){const x=m.one(g[_],f);if(x){if(_&&g[_-1].type==="break"&&(Array.isArray(x)||x.type!=="text"||(x.value=pl(x.value)),!Array.isArray(x)&&x.type==="element")){const E=x.children[0];E&&E.type==="text"&&(E.value=pl(E.value))}Array.isArray(x)?T.push(...x):T.push(x)}}}return T},applyData:mf,definitionById:c,footnoteById:u,footnoteCounts:h,footnoteOrder:[],handlers:p,one:function(f,T){const g=f.type,_=m.handlers[g];if(fo.call(m.handlers,g)&&_)return _(m,f,T);if(m.options.passThrough&&m.options.passThrough.includes(g)){if("children"in f){const{children:x,...E}=f,y=er(E);return y.children=m.all(f),y}return er(f)}return(m.options.unknownHandler||ff)(m,f,T)},options:l,patch:df,wrap:gf};return qr(s,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const T=f.type==="definition"?c:u,g=String(f.identifier).toUpperCase();T.has(g)||T.set(g,f)}}),m})(e,t),r=n.one(e,void 0),i=(function(s){const a=typeof s.options.clobberPrefix=="string"?s.options.clobberPrefix:"user-content-",l=s.options.footnoteBackContent||lf,c=s.options.footnoteBackLabel||cf,u=s.options.footnoteLabel||"Footnotes",h=s.options.footnoteLabelTagName||"h2",p=s.options.footnoteLabelProperties||{className:["sr-only"]},m=[];let f=-1;for(;++f<s.footnoteOrder.length;){const T=s.footnoteById.get(s.footnoteOrder[f]);if(!T)continue;const g=s.all(T),_=String(T.identifier).toUpperCase(),x=gn(_.toLowerCase());let E=0;const y=[],w=s.footnoteCounts.get(_);for(;w!==void 0&&++E<=w;){y.length>0&&y.push({type:"text",value:" "});let S=typeof l=="string"?l:l(f,E);typeof S=="string"&&(S={type:"text",value:S}),y.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+x+(E>1?"-"+E:""),dataFootnoteBackref:"",ariaLabel:typeof c=="string"?c:c(f,E),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const N=g[g.length-1];if(N&&N.type==="element"&&N.tagName==="p"){const S=N.children[N.children.length-1];S&&S.type==="text"?S.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(...y)}else g.push(...y);const O={type:"element",tagName:"li",properties:{id:a+"fn-"+x},children:s.wrap(g,!0)};s.patch(T,O),m.push(O)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:h,properties:{...er(p),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:`
12
+ `},{type:"element",tagName:"ol",properties:{},children:s.wrap(m,!0)},{type:"text",value:`
13
+ `}]}})(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
14
+ `},i),o}function _f(e,t){return e&&"run"in e?async function(n,r){const i=hl(n,{file:r,...t});await e.run(i,r)}:function(n,r){return hl(n,{file:r,...e||t})}}function dl(e){if(e)throw e}var go,ml,Ef=(function(){if(ml)return go;ml=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},o=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var c,u=e.call(l,"constructor"),h=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!u&&!h)return!1;for(c in l);return c===void 0||e.call(l,c)},s=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},a=function(l,c){if(c==="__proto__"){if(!e.call(l,c))return;if(r)return r(l,c).value}return l[c]};return go=function l(){var c,u,h,p,m,f,T=arguments[0],g=1,_=arguments.length,x=!1;for(typeof T=="boolean"&&(x=T,T=arguments[1]||{},g=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});g<_;++g)if((c=arguments[g])!=null)for(u in c)h=a(T,u),T!==(p=a(c,u))&&(x&&p&&(o(p)||(m=i(p)))?(m?(m=!1,f=h&&i(h)?h:[]):f=h&&o(h)?h:{},s(T,{name:u,newValue:l(x,f,p)})):p!==void 0&&s(T,{name:u,newValue:p}));return T},go})();const _o=sa(Ef);function Eo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return!(t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function Tf(){const e=[],t={run:function(...n){let r=-1;const i=n.pop();if(typeof i!="function")throw new TypeError("Expected function as last argument, not "+i);(function o(s,...a){const l=e[++r];let c=-1;if(s)i(s);else{for(;++c<n.length;)a[c]!==null&&a[c]!==void 0||(a[c]=n[c]);n=a,l?(function(u,h){let p;return m;function m(...g){const _=u.length>g.length;let x;_&&g.push(f);try{x=u.apply(this,g)}catch(E){if(_&&p)throw E;return f(E)}_||(x&&x.then&&typeof x.then=="function"?x.then(T,f):x instanceof Error?f(x):T(x))}function f(g,..._){p||(p=!0,h(g,..._))}function T(g){f(null,g)}})(l,o)(...a):i(null,...a)}})(null,...n)},use:function(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const dt={basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');nr(e);let n,r=0,i=-1,o=e.length;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(n){r=o+1;break}}else s<0&&(n=!0,s=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=s));return r===i?i=s:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){if(nr(e),e.length===0)return".";let t,n=-1,r=e.length;for(;--r;)if(e.codePointAt(r)===47){if(t){n=r;break}}else t||(t=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)},extname:function(e){nr(e);let t,n=e.length,r=-1,i=0,o=-1,s=0;for(;n--;){const a=e.codePointAt(n);if(a!==47)r<0&&(t=!0,r=n+1),a===46?o<0?o=n:s!==1&&(s=1):o>-1&&(s=-1);else if(t){i=n+1;break}}return o<0||r<0||s===0||s===1&&o===r-1&&o===i+1?"":e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)nr(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":(function(r){nr(r);const i=r.codePointAt(0)===47;let o=(function(s,a){let l,c,u="",h=0,p=-1,m=0,f=-1;for(;++f<=s.length;){if(f<s.length)l=s.codePointAt(f);else{if(l===47)break;l=47}if(l===47){if(!(p===f-1||m===1))if(p!==f-1&&m===2){if(u.length<2||h!==2||u.codePointAt(u.length-1)!==46||u.codePointAt(u.length-2)!==46){if(u.length>2){if(c=u.lastIndexOf("/"),c!==u.length-1){c<0?(u="",h=0):(u=u.slice(0,c),h=u.length-1-u.lastIndexOf("/")),p=f,m=0;continue}}else if(u.length>0){u="",h=0,p=f,m=0;continue}}a&&(u=u.length>0?u+"/..":"..",h=2)}else u.length>0?u+="/"+s.slice(p+1,f):u=s.slice(p+1,f),h=f-p-1;p=f,m=0}else l===46&&m>-1?m++:m=-1}return u})(r,!i);return o.length!==0||i||(o="."),o.length>0&&r.codePointAt(r.length-1)===47&&(o+="/"),i?"/"+o:o})(t)},sep:"/"};function nr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const bf={cwd:function(){return"/"}};function To(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kf(e){if(typeof e=="string")e=new URL(e);else if(!To(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return(function(t){if(t.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const n=t.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const i=n.codePointAt(r+2);if(i===70||i===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(n)})(e)}const bo=["history","path","basename","stem","extname","dirname"];class fl{constructor(t){let n;n=t?To(t)?{path:t}:typeof t=="string"||(function(o){return!!(o&&typeof o=="object"&&"byteLength"in o&&"byteOffset"in o)})(t)?{value:t}:t:{},this.cwd="cwd"in n?"":bf.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r,i=-1;for(;++i<bo.length;){const o=bo[i];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}for(r in n)bo.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?dt.basename(this.path):void 0}set basename(t){Ao(t,"basename"),ko(t,"basename"),this.path=dt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?dt.dirname(this.path):void 0}set dirname(t){gl(this.basename,"dirname"),this.path=dt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?dt.extname(this.path):void 0}set extname(t){if(ko(t,"extname"),gl(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=dt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){To(t)&&(t=kf(t)),Ao(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?dt.basename(this.path,this.extname):void 0}set stem(t){Ao(t,"stem"),ko(t,"stem"),this.path=dt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new He(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ko(e,t){if(e&&e.includes(dt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+dt.sep+"`")}function Ao(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function gl(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Af=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},yf={}.hasOwnProperty;class yo extends Af{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Tf()}copy(){const t=new yo;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(_o(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Io("data",this.frozen),this.namespace[t]=n,this):yf.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Io("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Wr(t),r=this.parser||this.Parser;return xo("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),xo("process",this.parser||this.Parser),Co("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const a=Wr(t),l=r.parse(a);function c(u,h){u||!h?s(u):o?o(h):n(void 0,h)}r.run(l,a,function(u,h,p){if(u||!h||!p)return c(u);const m=h,f=r.stringify(m,p);var T;typeof(T=f)=="string"||(function(g){return!!(g&&typeof g=="object"&&"byteLength"in g&&"byteOffset"in g)})(T)?p.value=f:p.result=f,c(u,p)})}}processSync(t){let n,r=!1;return this.freeze(),xo("processSync",this.parser||this.Parser),Co("processSync",this.compiler||this.Compiler),this.process(t,function(i,o){r=!0,dl(i),n=o}),El("processSync","process",r),n}run(t,n,r){_l(t),this.freeze();const i=this.transformers;return r||typeof n!="function"||(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,a){const l=Wr(n);i.run(t,l,function(c,u,h){const p=u||t;c?a(c):s?s(p):r(void 0,p,h)})}}runSync(t,n){let r,i=!1;return this.run(t,n,function(o,s){dl(o),r=s,i=!0}),El("runSync","run",i),r}stringify(t,n){this.freeze();const r=Wr(n),i=this.compiler||this.Compiler;return Co("stringify",i),_l(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Io("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else{if(typeof t!="object")throw new TypeError("Expected usable value, not `"+t+"`");Array.isArray(t)?a(t):s(t)}return this;function o(c){if(typeof c=="function")l(c,[]);else{if(typeof c!="object")throw new TypeError("Expected usable value, not `"+c+"`");if(Array.isArray(c)){const[u,...h]=c;l(u,h)}else s(c)}}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(c.plugins),c.settings&&(i.settings=_o(!0,i.settings,c.settings))}function a(c){let u=-1;if(c!=null){if(!Array.isArray(c))throw new TypeError("Expected a list of plugins, not `"+c+"`");for(;++u<c.length;)o(c[u])}}function l(c,u){let h=-1,p=-1;for(;++h<r.length;)if(r[h][0]===c){p=h;break}if(p===-1)r.push([c,...u]);else if(u.length>0){let[m,...f]=u;const T=r[p][1];Eo(T)&&Eo(m)&&(m=_o(!0,T,m)),r[p]=[c,m,...f]}}}}const xf=new yo().freeze();function xo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Co(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Io(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _l(e){if(!Eo(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function El(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Wr(e){return(function(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)})(e)?e:new fl(e)}const Tl=[],bl={allowDangerousHtml:!0},Cf=/^(https?|ircs?|mailto|xmpp)$/i,If=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Sf(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Cf.test(e.slice(0,t))?e:""}const kl=/[#.]/g;function Al(e,t,n){const r=n?(function(i){const o=new Map;for(const s of i)o.set(s.toLowerCase(),s);return o})(n):void 0;return function(i,o,...s){let a;if(i==null){a={type:"root",children:[]};const l=o;s.unshift(l)}else{a=(function(u,h){const p=u||"",m={};let f,T,g=0;for(;g<p.length;){kl.lastIndex=g;const _=kl.exec(p),x=p.slice(g,_?_.index:p.length);x&&(f?f==="#"?m.id=x:Array.isArray(m.className)?m.className.push(x):m.className=[x]:T=x,g+=x.length),_&&(f=_[0],g++)}return{type:"element",tagName:T||h||"div",properties:m,children:[]}})(i,t);const l=a.tagName.toLowerCase(),c=r?r.get(l):void 0;if(a.tagName=c||l,(function(u){if(u===null||typeof u!="object"||Array.isArray(u))return!0;if(typeof u.type!="string")return!1;const h=u,p=Object.keys(u);for(const m of p){const f=h[m];if(f&&typeof f=="object"){if(!Array.isArray(f))return!0;const T=f;for(const g of T)if(typeof g!="number"&&typeof g!="string")return!0}}return!!("children"in u&&Array.isArray(u.children))})(o))s.unshift(o);else for(const[u,h]of Object.entries(o))Df(e,a.properties,u,h)}for(const l of s)So(a.children,l);return a.type==="element"&&a.tagName==="template"&&(a.content={type:"root",children:a.children},a.children=[]),a}}function Df(e,t,n,r){const i=Mr(e,n);let o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else o=typeof r=="boolean"?r:typeof r=="string"?i.spaceSeparated?xa(r):i.commaSeparated?xe(r):i.commaOrSpaceSeparated?xa(xe(r).join(" ")):yl(i,i.property,r):Array.isArray(r)?[...r]:i.property==="style"?(function(s){const a=[];for(const[l,c]of Object.entries(s))a.push([l,c].join(": "));return a.join("; ")})(r):String(r);if(Array.isArray(o)){const s=[];for(const a of o)s.push(yl(i,i.property,a));o=s}i.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function So(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)So(e,n);else{if(typeof t!="object"||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");t.type==="root"?So(e,t.children):e.push(t)}}function yl(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||qn(n)===qn(t)))return!0}return n}const xl=Al(Wn,"div"),Cl=Al(Rt,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),mt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Il(e,t){const n=(function(r,i){switch(r.nodeType){case 1:return(function(o,s){const a=o.namespaceURI,l=a===mt.svg?Cl:xl,c=a===mt.html?o.tagName.toLowerCase():o.tagName,u=a===mt.html&&c==="template"?o.content:o,h=o.getAttributeNames(),p={};let m=-1;for(;++m<h.length;)p[h[m]]=o.getAttribute(h[m])||"";return l(c,p,Dl(u,s))})(r,i);case 3:return(function(o){return{type:"text",value:o.nodeValue||""}})(r);case 8:return(function(o){return{type:"comment",value:o.nodeValue||""}})(r);case 9:return Sl(r,i);case 10:return{type:"doctype"};case 11:return Sl(r,i);default:return}})(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function Sl(e,t){return{type:"root",children:Dl(e,t)}}function Dl(e,t){const n=e.childNodes,r=[];let i=-1;for(;++i<n.length;){const o=Il(n[i],t);o!==void 0&&r.push(o)}return r}function Nf(e,t){const n=(function(r){const i=document.createElement("template");return i.innerHTML=r,i.content})(e);return Il(n,{})||{type:"root",children:[]}}new DOMParser;const Nl=function(e,t,n){const r=tr(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},Xt=function(e){if(e==null)return wf;if(typeof e=="string")return(function(t){return Do(n);function n(r){return r.tagName===t}})(e);if(typeof e=="object")return(function(t){const n=[];let r=-1;for(;++r<t.length;)n[r]=Xt(t[r]);return Do(i);function i(...o){let s=-1;for(;++s<n.length;)if(n[s].apply(this,o))return!0;return!1}})(e);if(typeof e=="function")return Do(e);throw new Error("Expected function, string, or array as `test`")};function Do(e){return function(t,n,r){return!!((function(i){return i!==null&&typeof i=="object"&&"type"in i&&"tagName"in i})(t)&&e.call(this,t,typeof n=="number"?n:void 0,r||void 0))}}function wf(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}const wl=/\n/g,Ll=/[\t ]+/g,No=Xt("br"),Ol=Xt(function(e){return e.tagName==="td"||e.tagName==="th"}),Lf=Xt("p"),Rl=Xt("tr"),Of=Xt(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return!!(e.properties||{}).hidden},function(e){return e.tagName==="dialog"&&!(e.properties||{}).open}]),vl=Xt(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Pl(e,t,n){return e.type==="element"?(function(r,i,o){const s=Bl(r,o),a=r.children||[];let l,c,u=-1,h=[];if(Of(r))return h;for(No(r)||Rl(r)&&Nl(i,r,Rl)?c=`
15
+ `:Lf(r)?(l=2,c=2):vl(r)&&(l=1,c=1);++u<a.length;)h=h.concat(Pl(a[u],r,{whitespace:s,breakBefore:u?void 0:l,breakAfter:u<a.length-1?No(a[u+1]):c}));return Ol(r)&&Nl(i,r,Ol)&&h.push(" "),l&&h.unshift(l),c&&h.push(c),h})(e,t,n):e.type==="text"?n.whitespace==="normal"?Ml(e,n):(function(r){return[String(r.value)]})(e):[]}function Ml(e,t){const n=String(e.value),r=[],i=[];let o=0;for(;o<=n.length;){wl.lastIndex=o;const l=wl.exec(n),c=l&&"index"in l?l.index:n.length;r.push(Rf(n.slice(o,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),o!==0||t.breakBefore,c!==n.length||t.breakAfter)),o=c+1}let s,a=-1;for(;++a<r.length;)r[a].charCodeAt(r[a].length-1)===8203||a<r.length-1&&r[a+1].charCodeAt(0)===8203?(i.push(r[a]),s=void 0):r[a]?(typeof s=="number"&&i.push(s),i.push(r[a]),s=0):a!==0&&a!==r.length-1||i.push(0);return i}function Rf(e,t,n){const r=[];let i,o=0;for(;o<e.length;){Ll.lastIndex=o;const s=Ll.exec(e);i=s?s.index:e.length,o||i||!s||t||r.push(""),o!==i&&r.push(e.slice(o,i)),o=s?i+s[0].length:i}return o===i||n||r.push(""),r.join(" ")}function Bl(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}const vf={},Pf=[];function Mf(e){const t=e||vf;return function(n,r){mo(n,"element",function(i,o){const s=Array.isArray(i.properties.className)?i.properties.className:Pf,a=s.includes("language-math"),l=s.includes("math-display"),c=s.includes("math-inline");let u=l;if(!a&&!l&&!c)return;let h=o[o.length-1],p=i;if(i.tagName==="code"&&a&&h&&h.type==="element"&&h.tagName==="pre"&&(p=h,h=o[o.length-2],u=!0),!h)return;const m=(function(g,_){const x=_||{},E="children"in g?g.children:[],y=vl(g),w=Bl(g,{whitespace:x.whitespace||"normal"}),N=[];g.type!=="text"&&g.type!=="comment"||N.push(...Ml(g,{breakBefore:!0,breakAfter:!0}));let O=-1;for(;++O<E.length;)N.push(...Pl(E[O],g,{whitespace:w,breakBefore:O?void 0:y,breakAfter:O<E.length-1?No(E[O+1]):y}));const S=[];let M;for(O=-1;++O<N.length;){const B=N[O];typeof B=="number"?M!==void 0&&B>M&&(M=B):B&&(M!==void 0&&M>-1&&S.push(`
16
+ `.repeat(M)||" "),M=-1,S.push(B))}return S.join("")})(p,{whitespace:"pre"});let f;try{f=Md.renderToString(m,{...t,displayMode:u,throwOnError:!0})}catch(g){const _=g,x=_.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...o,i],cause:_,place:i.position,ruleId:x,source:"rehype-katex"});try{f=Md.renderToString(m,{...t,displayMode:u,strict:"ignore",throwOnError:!1})}catch{f=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(g)},children:[{type:"text",value:m}]}]}}typeof f=="string"&&(f=Nf(f).children);const T=h.children.indexOf(p);return h.children.splice(T,1,...f),ul})}}function Fl(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
17
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Ul={}.hasOwnProperty,Bf=Object.prototype;function wo(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Yr(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r&&(r.mode==="quirks"||r.mode==="limited-quirks");if(n={type:"root",children:Hl(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const o=String(e.file),s=(function(c){const u=String(c),h=[];return{toOffset:function(p){if(p&&typeof p.line=="number"&&typeof p.column=="number"&&!Number.isNaN(p.line)&&!Number.isNaN(p.column)){for(;h.length<p.line;){const f=h[h.length-1],T=Fl(u,f),g=T===-1?u.length+1:T+1;if(f===g)break;h.push(g)}const m=(p.line>1?h[p.line-2]:0)+p.column-1;if(m<h[p.line-1])return m}},toPoint:function(p){if(typeof p=="number"&&p>-1&&p<=u.length){let m=0;for(;;){let f=h[m];if(f===void 0){const T=Fl(u,h[m-1]);f=T===-1?u.length+1:T+1,h[m]=f}if(f>p)return{line:m+1,column:p-(m>0?h[m-1]:0)+1,offset:p};m++}}}}})(o),a=s.toPoint(0),l=s.toPoint(o.length);n.position={start:a,end:l}}return n}case"#documentType":return n={type:"doctype"},Yr(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},Yr(e,r,n),n}default:return n=(function(r,i){const o=r.schema;r.schema=i.namespaceURI===mt.svg?Rt:Wn;let s=-1;const a={};for(;++s<i.attrs.length;){const u=i.attrs[s],h=(u.prefix?u.prefix+":":"")+u.name;Ul.call(Bf,h)||(a[h]=u.value)}const l=r.schema.space==="svg"?Cl:xl,c=l(i.tagName,a,Hl(r,i.childNodes));if(Yr(r,i,c),c.tagName==="template"){const u=i,h=u.sourceCodeLocation,p=h&&h.startTag&&Tn(h.startTag),m=h&&h.endTag&&Tn(h.endTag),f=wo(r,u.content);p&&m&&r.file&&(f.position={start:p.end,end:m.start}),c.content=f}return r.schema=o,c})(e,t),n}}function Hl(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=wo(e,t[n]);r.push(i)}return r}function Yr(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Ff(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Ff(e,t,n){const r=Tn(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const o={};let s;if(n.attrs)for(s in n.attrs)Ul.call(n.attrs,s)&&(o[Mr(e.schema,s).property]=Tn(n.attrs[s]));n.startTag;const a=Tn(n.startTag),l=n.endTag?Tn(n.endTag):void 0,c={opening:a};l&&(c.closing=l),c.properties=o,t.data={position:c}}}return r}function Tn(e){const t=Gl({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Gl({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Gl(e){return e.line&&e.column?e:void 0}class rr{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}function $l(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new rr(n,r,t)}function Lo(e){return e.toLowerCase()}rr.prototype.property={},rr.prototype.normal={},rr.prototype.space=null;class tt{constructor(t,n){this.property=t,this.attribute=n}}tt.prototype.space=null,tt.prototype.boolean=!1,tt.prototype.booleanish=!1,tt.prototype.overloadedBoolean=!1,tt.prototype.number=!1,tt.prototype.commaSeparated=!1,tt.prototype.spaceSeparated=!1,tt.prototype.commaOrSpaceSeparated=!1,tt.prototype.mustUseProperty=!1,tt.prototype.defined=!1;let Uf=0;const ie=Kt(),De=Kt(),Vl=Kt(),j=Kt(),Te=Kt(),bn=Kt(),Ze=Kt();function Kt(){return 2**++Uf}const Oo=Object.freeze(Object.defineProperty({__proto__:null,boolean:ie,booleanish:De,commaOrSpaceSeparated:Ze,commaSeparated:bn,number:j,overloadedBoolean:Vl,spaceSeparated:Te},Symbol.toStringTag,{value:"Module"})),Ro=Object.keys(Oo);class vo extends tt{constructor(t,n,r,i){let o=-1;if(super(t,n),jl(this,"space",i),typeof r=="number")for(;++o<Ro.length;){const s=Ro[o];jl(this,Ro[o],(r&Oo[s])===Oo[s])}}}function jl(e,t,n){n&&(e[t]=n)}vo.prototype.defined=!0;const Hf={}.hasOwnProperty;function kn(e){const t={},n={};let r;for(r in e.properties)if(Hf.call(e.properties,r)){const i=e.properties[r],o=new vo(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Lo(r)]=r,n[Lo(o.attribute)]=r}return new rr(t,n,e.space)}const zl=kn({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ql=kn({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Wl(e,t){return t in e?e[t]:t}function Yl(e,t){return Wl(e,t.toLowerCase())}const Ql=kn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Yl,properties:{xmlns:null,xmlnsXLink:null}}),Xl=kn({transform:(e,t)=>t==="role"?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:De,ariaAutoComplete:null,ariaBusy:De,ariaChecked:De,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:Te,ariaCurrent:null,ariaDescribedBy:Te,ariaDetails:null,ariaDisabled:De,ariaDropEffect:Te,ariaErrorMessage:null,ariaExpanded:De,ariaFlowTo:Te,ariaGrabbed:De,ariaHasPopup:null,ariaHidden:De,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Te,ariaLevel:j,ariaLive:null,ariaModal:De,ariaMultiLine:De,ariaMultiSelectable:De,ariaOrientation:null,ariaOwns:Te,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:De,ariaReadOnly:De,ariaRelevant:null,ariaRequired:De,ariaRoleDescription:Te,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:De,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null}}),Gf=kn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Yl,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bn,acceptCharset:Te,accessKey:Te,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:Te,autoFocus:ie,autoPlay:ie,blocking:Te,capture:null,charSet:null,checked:ie,cite:null,className:Te,cols:j,colSpan:null,content:null,contentEditable:De,controls:ie,controlsList:Te,coords:j|bn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:Vl,draggable:De,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:Te,height:j,hidden:ie,high:j,href:null,hrefLang:null,htmlFor:Te,httpEquiv:Te,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:Te,itemRef:Te,itemScope:ie,itemType:Te,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ie,optimum:j,pattern:null,ping:Te,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:Te,required:ie,reversed:ie,rows:j,rowSpan:j,sandbox:Te,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:De,src:null,srcDoc:null,srcLang:null,srcSet:null,start:j,step:null,style:null,tabIndex:j,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:De,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Te,axis:null,background:null,bgColor:null,border:j,borderColor:null,bottomMargin:j,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:De,standby:null,summary:null,text:null,topMargin:j,valueType:null,version:null,vAlign:null,vLink:null,vSpace:j,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:j,security:null,unselectable:null}}),$f=kn({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Wl,properties:{about:Ze,accentHeight:j,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:j,amplitude:j,arabicForm:null,ascent:j,attributeName:null,attributeType:null,azimuth:j,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:j,by:null,calcMode:null,capHeight:j,className:Te,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:j,diffuseConstant:j,direction:null,display:null,dur:null,divisor:j,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:j,enableBackground:null,end:null,event:null,exponent:j,externalResourcesRequired:null,fill:null,fillOpacity:j,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:bn,g2:bn,glyphName:bn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:j,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:j,horizOriginX:j,horizOriginY:j,id:null,ideographic:j,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:j,k:j,k1:j,k2:j,k3:j,k4:j,kernelMatrix:Ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:j,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:j,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:j,overlineThickness:j,paintOrder:null,panose1:null,path:null,pathLength:j,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Te,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ze,rev:Ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ze,requiredFeatures:Ze,requiredFonts:Ze,requiredFormats:Ze,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:j,specularExponent:j,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:j,strikethroughThickness:j,string:null,stroke:null,strokeDashArray:Ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:j,strokeOpacity:j,strokeWidth:null,style:null,surfaceScale:j,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ze,tabIndex:j,tableValues:null,target:null,targetX:j,targetY:j,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:j,underlineThickness:j,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:j,values:null,vAlphabetic:j,vMathematical:j,vectorEffect:null,vHanging:j,vIdeographic:j,version:null,vertAdvY:j,vertOriginX:j,vertOriginY:j,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:j,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Vf=/^data[-\w.:]+$/i,Kl=/-[a-z]/g,jf=/[A-Z]/g;function zf(e){return"-"+e.toLowerCase()}function qf(e){return e.charAt(1).toUpperCase()}const Wf=$l([ql,zl,Ql,Xl,Gf],"html"),Zl=$l([ql,zl,Ql,Xl,$f],"svg"),Jl={}.hasOwnProperty;function Po(e,t){const n=t||{};function r(i,...o){let s=r.invalid;const a=r.handlers;if(i&&Jl.call(i,e)){const l=String(i[e]);s=Jl.call(a,l)?a[l]:r.unknown}if(s)return s.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Yf={},Qf={}.hasOwnProperty,ec=Po("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Mo(e.children,n,t),An(e,n),n},element:function(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Zl);const i=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&Qf.call(e.properties,o)){const l=Xf(r,o,e.properties[o]);l&&i.push(l)}}const s=r.space,a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:mt[s],childNodes:[],parentNode:null};return a.childNodes=Mo(e.children,a,r),An(e,a),e.tagName==="template"&&e.content&&(a.content=(function(l,c){const u={nodeName:"#document-fragment",childNodes:[]};return u.childNodes=Mo(l.children,u,c),An(l,u),u})(e.content,r)),a},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return An(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return An(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return An(e,t),t}}});function Xf(e,t,n){const r=(function(o,s){const a=Lo(s);let l=s,c=tt;if(a in o.normal)return o.property[o.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&Vf.test(s)){if(s.charAt(4)==="-"){const u=s.slice(5).replace(Kl,qf);l="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=s.slice(4);if(!Kl.test(u)){let h=u.replace(jf,zf);h.charAt(0)!=="-"&&(h="-"+h),s="data"+h}}c=vo}return new c(l,s)})(e,t);if(n===!1||n==null||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?dn(n):Ji(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const o=i.name.indexOf(":");o<0?i.prefix="":(i.name=i.name.slice(o+1),i.prefix=r.attribute.slice(0,o)),i.namespace=mt[r.space]}return i}function Mo(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=ec(e[r],n);o.parentNode=t,i.push(o)}return i}function An(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const tc=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Kf=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ae="\uFFFD";var b;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(b||(b={}));const nc="--",rc="[CDATA[",ic="doctype",yn="script",Zf="public",Jf="system";function oc(e){return e>=55296&&e<=57343}function sc(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ac(e){return e>=64976&&e<=65007||Kf.has(e)}var P;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(P||(P={}));class eg{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:o}=this,s=i+n,a=o+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:a,endOffset:a}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if((function(r){return r>=56320&&r<=57343})(n))return this.pos++,this._addGap(),1024*(t-55296)+9216+n}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,b.EOF;return this._err(P.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((32|this.html.charCodeAt(this.pos+r))!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,b.EOF;const r=this.html.charCodeAt(n);return r===b.CARRIAGE_RETURN?b.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,b.EOF;let t=this.html.charCodeAt(this.pos);return t===b.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,b.LINE_FEED):t===b.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,oc(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===b.LINE_FEED||t===b.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){sc(t)?this._err(P.controlCharacterInInputStream):ac(t)&&this._err(P.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var le;function lc(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(le||(le={}));const tg=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0))),ng=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var Pe;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Pe||(Pe={}));var Mt,Me,kt,H,Zt,nt,L,d;function Bo(e){return e>=Pe.ZERO&&e<=Pe.NINE}function rg(e){return e>=Pe.UPPER_A&&e<=Pe.UPPER_F||e>=Pe.LOWER_A&&e<=Pe.LOWER_F}function ig(e){return e===Pe.EQUALS||(function(t){return t>=Pe.UPPER_A&&t<=Pe.UPPER_Z||t>=Pe.LOWER_A&&t<=Pe.LOWER_Z||Bo(t)})(e)}(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Mt||(Mt={})),(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Me||(Me={})),(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(kt||(kt={}));class og{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Me.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=kt.Strict}startEntity(t){this.decodeMode=t,this.state=Me.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Me.EntityStart:return t.charCodeAt(n)===Pe.NUM?(this.state=Me.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Me.NamedEntity,this.stateNamedEntity(t,n));case Me.NumericStart:return this.stateNumericStart(t,n);case Me.NumericDecimal:return this.stateNumericDecimal(t,n);case Me.NumericHex:return this.stateNumericHex(t,n);case Me.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(32|t.charCodeAt(n))===Pe.LOWER_X?(this.state=Me.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Me.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+Number.parseInt(t.substr(n,o),i),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(!Bo(i)&&!rg(i))return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3);n+=1}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(!Bo(i))return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2);n+=1}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Pe.SEMI)this.consumed+=1;else if(this.decodeMode===kt.Strict)return 0;return this.emitCodePoint((function(i){var o;return i>=55296&&i<=57343||i>1114111?65533:(o=ng.get(i))!==null&&o!==void 0?o:i})(this.result),this.consumed),this.errors&&(t!==Pe.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],o=(i&Mt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=sg(r,i,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===kt.Attribute&&(o===0||ig(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],o=(i&Mt.VALUE_LENGTH)>>14,o!==0){if(s===Pe.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==kt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&Mt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~Mt.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Me.NamedEntity:return this.result===0||this.decodeMode===kt.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case Me.NumericDecimal:return this.emitNumericEntity(0,2);case Me.NumericHex:return this.emitNumericEntity(0,3);case Me.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Me.EntityStart:return 0}}}function sg(e,t,n,r){const i=(t&Mt.BRANCH_LENGTH)>>7,o=t&Mt.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=i?-1:e[n+l]-1}let s=n,a=s+i-1;for(;s<=a;){const l=s+a>>>1,c=e[l];if(c<r)s=l+1;else{if(!(c>r))return e[l+i];a=l-1}}return-1}(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(H||(H={})),(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Zt||(Zt={})),(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(nt||(nt={})),(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(L||(L={})),(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(d||(d={}));const ag=new Map([[L.A,d.A],[L.ADDRESS,d.ADDRESS],[L.ANNOTATION_XML,d.ANNOTATION_XML],[L.APPLET,d.APPLET],[L.AREA,d.AREA],[L.ARTICLE,d.ARTICLE],[L.ASIDE,d.ASIDE],[L.B,d.B],[L.BASE,d.BASE],[L.BASEFONT,d.BASEFONT],[L.BGSOUND,d.BGSOUND],[L.BIG,d.BIG],[L.BLOCKQUOTE,d.BLOCKQUOTE],[L.BODY,d.BODY],[L.BR,d.BR],[L.BUTTON,d.BUTTON],[L.CAPTION,d.CAPTION],[L.CENTER,d.CENTER],[L.CODE,d.CODE],[L.COL,d.COL],[L.COLGROUP,d.COLGROUP],[L.DD,d.DD],[L.DESC,d.DESC],[L.DETAILS,d.DETAILS],[L.DIALOG,d.DIALOG],[L.DIR,d.DIR],[L.DIV,d.DIV],[L.DL,d.DL],[L.DT,d.DT],[L.EM,d.EM],[L.EMBED,d.EMBED],[L.FIELDSET,d.FIELDSET],[L.FIGCAPTION,d.FIGCAPTION],[L.FIGURE,d.FIGURE],[L.FONT,d.FONT],[L.FOOTER,d.FOOTER],[L.FOREIGN_OBJECT,d.FOREIGN_OBJECT],[L.FORM,d.FORM],[L.FRAME,d.FRAME],[L.FRAMESET,d.FRAMESET],[L.H1,d.H1],[L.H2,d.H2],[L.H3,d.H3],[L.H4,d.H4],[L.H5,d.H5],[L.H6,d.H6],[L.HEAD,d.HEAD],[L.HEADER,d.HEADER],[L.HGROUP,d.HGROUP],[L.HR,d.HR],[L.HTML,d.HTML],[L.I,d.I],[L.IMG,d.IMG],[L.IMAGE,d.IMAGE],[L.INPUT,d.INPUT],[L.IFRAME,d.IFRAME],[L.KEYGEN,d.KEYGEN],[L.LABEL,d.LABEL],[L.LI,d.LI],[L.LINK,d.LINK],[L.LISTING,d.LISTING],[L.MAIN,d.MAIN],[L.MALIGNMARK,d.MALIGNMARK],[L.MARQUEE,d.MARQUEE],[L.MATH,d.MATH],[L.MENU,d.MENU],[L.META,d.META],[L.MGLYPH,d.MGLYPH],[L.MI,d.MI],[L.MO,d.MO],[L.MN,d.MN],[L.MS,d.MS],[L.MTEXT,d.MTEXT],[L.NAV,d.NAV],[L.NOBR,d.NOBR],[L.NOFRAMES,d.NOFRAMES],[L.NOEMBED,d.NOEMBED],[L.NOSCRIPT,d.NOSCRIPT],[L.OBJECT,d.OBJECT],[L.OL,d.OL],[L.OPTGROUP,d.OPTGROUP],[L.OPTION,d.OPTION],[L.P,d.P],[L.PARAM,d.PARAM],[L.PLAINTEXT,d.PLAINTEXT],[L.PRE,d.PRE],[L.RB,d.RB],[L.RP,d.RP],[L.RT,d.RT],[L.RTC,d.RTC],[L.RUBY,d.RUBY],[L.S,d.S],[L.SCRIPT,d.SCRIPT],[L.SEARCH,d.SEARCH],[L.SECTION,d.SECTION],[L.SELECT,d.SELECT],[L.SOURCE,d.SOURCE],[L.SMALL,d.SMALL],[L.SPAN,d.SPAN],[L.STRIKE,d.STRIKE],[L.STRONG,d.STRONG],[L.STYLE,d.STYLE],[L.SUB,d.SUB],[L.SUMMARY,d.SUMMARY],[L.SUP,d.SUP],[L.TABLE,d.TABLE],[L.TBODY,d.TBODY],[L.TEMPLATE,d.TEMPLATE],[L.TEXTAREA,d.TEXTAREA],[L.TFOOT,d.TFOOT],[L.TD,d.TD],[L.TH,d.TH],[L.THEAD,d.THEAD],[L.TITLE,d.TITLE],[L.TR,d.TR],[L.TRACK,d.TRACK],[L.TT,d.TT],[L.U,d.U],[L.UL,d.UL],[L.SVG,d.SVG],[L.VAR,d.VAR],[L.WBR,d.WBR],[L.XMP,d.XMP]]);function xn(e){var t;return(t=ag.get(e))!==null&&t!==void 0?t:d.UNKNOWN}const $=d,lg={[H.HTML]:new Set([$.ADDRESS,$.APPLET,$.AREA,$.ARTICLE,$.ASIDE,$.BASE,$.BASEFONT,$.BGSOUND,$.BLOCKQUOTE,$.BODY,$.BR,$.BUTTON,$.CAPTION,$.CENTER,$.COL,$.COLGROUP,$.DD,$.DETAILS,$.DIR,$.DIV,$.DL,$.DT,$.EMBED,$.FIELDSET,$.FIGCAPTION,$.FIGURE,$.FOOTER,$.FORM,$.FRAME,$.FRAMESET,$.H1,$.H2,$.H3,$.H4,$.H5,$.H6,$.HEAD,$.HEADER,$.HGROUP,$.HR,$.HTML,$.IFRAME,$.IMG,$.INPUT,$.LI,$.LINK,$.LISTING,$.MAIN,$.MARQUEE,$.MENU,$.META,$.NAV,$.NOEMBED,$.NOFRAMES,$.NOSCRIPT,$.OBJECT,$.OL,$.P,$.PARAM,$.PLAINTEXT,$.PRE,$.SCRIPT,$.SECTION,$.SELECT,$.SOURCE,$.STYLE,$.SUMMARY,$.TABLE,$.TBODY,$.TD,$.TEMPLATE,$.TEXTAREA,$.TFOOT,$.TH,$.THEAD,$.TITLE,$.TR,$.TRACK,$.UL,$.WBR,$.XMP]),[H.MATHML]:new Set([$.MI,$.MO,$.MN,$.MS,$.MTEXT,$.ANNOTATION_XML]),[H.SVG]:new Set([$.TITLE,$.FOREIGN_OBJECT,$.DESC]),[H.XLINK]:new Set,[H.XML]:new Set,[H.XMLNS]:new Set},Fo=new Set([$.H1,$.H2,$.H3,$.H4,$.H5,$.H6]);var A;L.STYLE,L.SCRIPT,L.XMP,L.IFRAME,L.NOEMBED,L.NOFRAMES,L.PLAINTEXT,(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(A||(A={}));const Ce={DATA:A.DATA,RCDATA:A.RCDATA,RAWTEXT:A.RAWTEXT,SCRIPT_DATA:A.SCRIPT_DATA,PLAINTEXT:A.PLAINTEXT,CDATA_SECTION:A.CDATA_SECTION};function ir(e){return e>=b.LATIN_CAPITAL_A&&e<=b.LATIN_CAPITAL_Z}function Bt(e){return(function(t){return t>=b.LATIN_SMALL_A&&t<=b.LATIN_SMALL_Z})(e)||ir(e)}function cc(e){return Bt(e)||(function(t){return t>=b.DIGIT_0&&t<=b.DIGIT_9})(e)}function Qr(e){return e+32}function uc(e){return e===b.SPACE||e===b.LINE_FEED||e===b.TABULATION||e===b.FORM_FEED}function pc(e){return uc(e)||e===b.SOLIDUS||e===b.GREATER_THAN_SIGN}class cg{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=A.DATA,this.returnState=A.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new eg(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new og(tg,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(P.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(P.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=(function(o){return o===b.NULL?P.nullCharacterReference:o>1114111?P.characterReferenceOutsideUnicodeRange:oc(o)?P.surrogateCharacterReference:ac(o)?P.noncharacterCharacterReference:sc(o)||o===b.CARRIAGE_RETURN?P.controlCharacterReference:null})(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return!!this.preprocessor.startsWith(t,n)&&(this._advanceBy(t.length-1),!0)}_createStartTagToken(){this.currentToken={type:le.START_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:le.END_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:le.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:le.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;lc(r,this.currentAttr.name)===null?(r.attrs.push(this.currentAttr),r.location&&this.currentLocation&&(((t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(P.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=xn(t.tagName),t.type===le.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(P.endTagWithAttributes),t.selfClosing&&this._err(P.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case le.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case le.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case le.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:le.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken){if(this.currentCharacterToken.type===t)return void(this.currentCharacterToken.chars+=n);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(t,n)}_emitCodePoint(t){const n=uc(t)?le.WHITESPACE_CHARACTER:t===b.NULL?le.NULL_CHARACTER:le.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(le.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=A.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?kt.Attribute:kt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===A.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===A.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case A.DATA:this._stateData(t);break;case A.RCDATA:this._stateRcdata(t);break;case A.RAWTEXT:this._stateRawtext(t);break;case A.SCRIPT_DATA:this._stateScriptData(t);break;case A.PLAINTEXT:this._statePlaintext(t);break;case A.TAG_OPEN:this._stateTagOpen(t);break;case A.END_TAG_OPEN:this._stateEndTagOpen(t);break;case A.TAG_NAME:this._stateTagName(t);break;case A.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(t);break;case A.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(t);break;case A.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(t);break;case A.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(t);break;case A.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(t);break;case A.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(t);break;case A.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(t);break;case A.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(t);break;case A.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(t);break;case A.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(t);break;case A.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(t);break;case A.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(t);break;case A.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(t);break;case A.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(t);break;case A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(t);break;case A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(t);break;case A.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(t);break;case A.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(t);break;case A.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(t);break;case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(t);break;case A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(t);break;case A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(t);break;case A.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(t);break;case A.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(t);break;case A.ATTRIBUTE_NAME:this._stateAttributeName(t);break;case A.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(t);break;case A.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(t);break;case A.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(t);break;case A.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(t);break;case A.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(t);break;case A.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(t);break;case A.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(t);break;case A.BOGUS_COMMENT:this._stateBogusComment(t);break;case A.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(t);break;case A.COMMENT_START:this._stateCommentStart(t);break;case A.COMMENT_START_DASH:this._stateCommentStartDash(t);break;case A.COMMENT:this._stateComment(t);break;case A.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(t);break;case A.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(t);break;case A.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(t);break;case A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(t);break;case A.COMMENT_END_DASH:this._stateCommentEndDash(t);break;case A.COMMENT_END:this._stateCommentEnd(t);break;case A.COMMENT_END_BANG:this._stateCommentEndBang(t);break;case A.DOCTYPE:this._stateDoctype(t);break;case A.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(t);break;case A.DOCTYPE_NAME:this._stateDoctypeName(t);break;case A.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(t);break;case A.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(t);break;case A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(t);break;case A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(t);break;case A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(t);break;case A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(t);break;case A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break;case A.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(t);break;case A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(t);break;case A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(t);break;case A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(t);break;case A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(t);break;case A.BOGUS_DOCTYPE:this._stateBogusDoctype(t);break;case A.CDATA_SECTION:this._stateCdataSection(t);break;case A.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(t);break;case A.CDATA_SECTION_END:this._stateCdataSectionEnd(t);break;case A.CHARACTER_REFERENCE:this._stateCharacterReference();break;case A.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(t);break;default:throw new Error("Unknown state")}}_stateData(t){switch(t){case b.LESS_THAN_SIGN:this.state=A.TAG_OPEN;break;case b.AMPERSAND:this._startCharacterReference();break;case b.NULL:this._err(P.unexpectedNullCharacter),this._emitCodePoint(t);break;case b.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case b.AMPERSAND:this._startCharacterReference();break;case b.LESS_THAN_SIGN:this.state=A.RCDATA_LESS_THAN_SIGN;break;case b.NULL:this._err(P.unexpectedNullCharacter),this._emitChars(Ae);break;case b.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case b.LESS_THAN_SIGN:this.state=A.RAWTEXT_LESS_THAN_SIGN;break;case b.NULL:this._err(P.unexpectedNullCharacter),this._emitChars(Ae);break;case b.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case b.LESS_THAN_SIGN:this.state=A.SCRIPT_DATA_LESS_THAN_SIGN;break;case b.NULL:this._err(P.unexpectedNullCharacter),this._emitChars(Ae);break;case b.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case b.NULL:this._err(P.unexpectedNullCharacter),this._emitChars(Ae);break;case b.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Bt(t))this._createStartTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case b.EXCLAMATION_MARK:this.state=A.MARKUP_DECLARATION_OPEN;break;case b.SOLIDUS:this.state=A.END_TAG_OPEN;break;case b.QUESTION_MARK:this._err(P.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t);break;case b.EOF:this._err(P.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(P.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=A.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Bt(t))this._createEndTagToken(),this.state=A.TAG_NAME,this._stateTagName(t);else switch(t){case b.GREATER_THAN_SIGN:this._err(P.missingEndTagName),this.state=A.DATA;break;case b.EOF:this._err(P.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(P.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:this.state=A.BEFORE_ATTRIBUTE_NAME;break;case b.SOLIDUS:this.state=A.SELF_CLOSING_START_TAG;break;case b.GREATER_THAN_SIGN:this.state=A.DATA,this.emitCurrentTagToken();break;case b.NULL:this._err(P.unexpectedNullCharacter),n.tagName+=Ae;break;case b.EOF:this._err(P.eofInTag),this._emitEOFToken();break;default:n.tagName+=String.fromCodePoint(ir(t)?Qr(t):t)}}_stateRcdataLessThanSign(t){t===b.SOLIDUS?this.state=A.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Bt(t)?(this.state=A.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=A.BEFORE_ATTRIBUTE_NAME,!1;case b.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=A.SELF_CLOSING_START_TAG,!1;case b.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=A.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===b.SOLIDUS?this.state=A.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Bt(t)?(this.state=A.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case b.SOLIDUS:this.state=A.SCRIPT_DATA_END_TAG_OPEN;break;case b.EXCLAMATION_MARK:this.state=A.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=A.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Bt(t)?(this.state=A.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===b.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===b.HYPHEN_MINUS?(this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=A.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case b.HYPHEN_MINUS:this.state=A.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case b.LESS_THAN_SIGN:this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case b.NULL:this._err(P.unexpectedNullCharacter),this._emitChars(Ae);break;case b.EOF:this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case b.HYPHEN_MINUS:this.state=A.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case b.LESS_THAN_SIGN:this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case b.NULL:this._err(P.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(Ae);break;case b.EOF:this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case b.HYPHEN_MINUS:this._emitChars("-");break;case b.LESS_THAN_SIGN:this.state=A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case b.GREATER_THAN_SIGN:this.state=A.SCRIPT_DATA,this._emitChars(">");break;case b.NULL:this._err(P.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_ESCAPED,this._emitChars(Ae);break;case b.EOF:this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=A.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===b.SOLIDUS?this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Bt(t)?(this._emitChars("<"),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Bt(t)?(this.state=A.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(yn,!1)&&pc(this.preprocessor.peek(yn.length))){this._emitCodePoint(t);for(let n=0;n<yn.length;n++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case b.HYPHEN_MINUS:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case b.LESS_THAN_SIGN:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case b.NULL:this._err(P.unexpectedNullCharacter),this._emitChars(Ae);break;case b.EOF:this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case b.HYPHEN_MINUS:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case b.LESS_THAN_SIGN:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case b.NULL:this._err(P.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ae);break;case b.EOF:this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case b.HYPHEN_MINUS:this._emitChars("-");break;case b.LESS_THAN_SIGN:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case b.GREATER_THAN_SIGN:this.state=A.SCRIPT_DATA,this._emitChars(">");break;case b.NULL:this._err(P.unexpectedNullCharacter),this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ae);break;case b.EOF:this._err(P.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===b.SOLIDUS?(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(yn,!1)&&pc(this.preprocessor.peek(yn.length))){this._emitCodePoint(t);for(let n=0;n<yn.length;n++)this._emitCodePoint(this._consume());this.state=A.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=A.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.SOLIDUS:case b.GREATER_THAN_SIGN:case b.EOF:this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break;case b.EQUALS_SIGN:this._err(P.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=A.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:case b.SOLIDUS:case b.GREATER_THAN_SIGN:case b.EOF:this._leaveAttrName(),this.state=A.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break;case b.EQUALS_SIGN:this._leaveAttrName(),this.state=A.BEFORE_ATTRIBUTE_VALUE;break;case b.QUOTATION_MARK:case b.APOSTROPHE:case b.LESS_THAN_SIGN:this._err(P.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break;case b.NULL:this._err(P.unexpectedNullCharacter),this.currentAttr.name+=Ae;break;default:this.currentAttr.name+=String.fromCodePoint(ir(t)?Qr(t):t)}}_stateAfterAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.SOLIDUS:this.state=A.SELF_CLOSING_START_TAG;break;case b.EQUALS_SIGN:this.state=A.BEFORE_ATTRIBUTE_VALUE;break;case b.GREATER_THAN_SIGN:this.state=A.DATA,this.emitCurrentTagToken();break;case b.EOF:this._err(P.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=A.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:this.state=A.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case b.APOSTROPHE:this.state=A.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case b.GREATER_THAN_SIGN:this._err(P.missingAttributeValue),this.state=A.DATA,this.emitCurrentTagToken();break;default:this.state=A.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case b.QUOTATION_MARK:this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case b.AMPERSAND:this._startCharacterReference();break;case b.NULL:this._err(P.unexpectedNullCharacter),this.currentAttr.value+=Ae;break;case b.EOF:this._err(P.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case b.APOSTROPHE:this.state=A.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case b.AMPERSAND:this._startCharacterReference();break;case b.NULL:this._err(P.unexpectedNullCharacter),this.currentAttr.value+=Ae;break;case b.EOF:this._err(P.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break;case b.AMPERSAND:this._startCharacterReference();break;case b.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break;case b.NULL:this._err(P.unexpectedNullCharacter),this.currentAttr.value+=Ae;break;case b.QUOTATION_MARK:case b.APOSTROPHE:case b.LESS_THAN_SIGN:case b.EQUALS_SIGN:case b.GRAVE_ACCENT:this._err(P.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break;case b.EOF:this._err(P.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:this._leaveAttrValue(),this.state=A.BEFORE_ATTRIBUTE_NAME;break;case b.SOLIDUS:this._leaveAttrValue(),this.state=A.SELF_CLOSING_START_TAG;break;case b.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=A.DATA,this.emitCurrentTagToken();break;case b.EOF:this._err(P.eofInTag),this._emitEOFToken();break;default:this._err(P.missingWhitespaceBetweenAttributes),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case b.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=A.DATA,this.emitCurrentTagToken();break;case b.EOF:this._err(P.eofInTag),this._emitEOFToken();break;default:this._err(P.unexpectedSolidusInTag),this.state=A.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:this.state=A.DATA,this.emitCurrentComment(n);break;case b.EOF:this.emitCurrentComment(n),this._emitEOFToken();break;case b.NULL:this._err(P.unexpectedNullCharacter),n.data+=Ae;break;default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(nc,!0)?(this._createCommentToken(nc.length+1),this.state=A.COMMENT_START):this._consumeSequenceIfMatch(ic,!1)?(this.currentLocation=this.getCurrentLocation(ic.length+1),this.state=A.DOCTYPE):this._consumeSequenceIfMatch(rc,!0)?this.inForeignNode?this.state=A.CDATA_SECTION:(this._err(P.cdataInHtmlContent),this._createCommentToken(rc.length+1),this.currentToken.data="[CDATA[",this.state=A.BOGUS_COMMENT):this._ensureHibernation()||(this._err(P.incorrectlyOpenedComment),this._createCommentToken(2),this.state=A.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case b.HYPHEN_MINUS:this.state=A.COMMENT_START_DASH;break;case b.GREATER_THAN_SIGN:{this._err(P.abruptClosingOfEmptyComment),this.state=A.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:this.state=A.COMMENT_END;break;case b.GREATER_THAN_SIGN:this._err(P.abruptClosingOfEmptyComment),this.state=A.DATA,this.emitCurrentComment(n);break;case b.EOF:this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break;default:n.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:this.state=A.COMMENT_END_DASH;break;case b.LESS_THAN_SIGN:n.data+="<",this.state=A.COMMENT_LESS_THAN_SIGN;break;case b.NULL:this._err(P.unexpectedNullCharacter),n.data+=Ae;break;case b.EOF:this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break;default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case b.EXCLAMATION_MARK:n.data+="!",this.state=A.COMMENT_LESS_THAN_SIGN_BANG;break;case b.LESS_THAN_SIGN:n.data+="<";break;default:this.state=A.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===b.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=A.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===b.HYPHEN_MINUS?this.state=A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=A.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==b.GREATER_THAN_SIGN&&t!==b.EOF&&this._err(P.nestedComment),this.state=A.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:this.state=A.COMMENT_END;break;case b.EOF:this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break;default:n.data+="-",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:this.state=A.DATA,this.emitCurrentComment(n);break;case b.EXCLAMATION_MARK:this.state=A.COMMENT_END_BANG;break;case b.HYPHEN_MINUS:n.data+="-";break;case b.EOF:this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break;default:n.data+="--",this.state=A.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:n.data+="--!",this.state=A.COMMENT_END_DASH;break;case b.GREATER_THAN_SIGN:this._err(P.incorrectlyClosedComment),this.state=A.DATA,this.emitCurrentComment(n);break;case b.EOF:this._err(P.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break;default:n.data+="--!",this.state=A.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:this.state=A.BEFORE_DOCTYPE_NAME;break;case b.GREATER_THAN_SIGN:this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break;case b.EOF:{this._err(P.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(P.missingWhitespaceBeforeDoctypeName),this.state=A.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ir(t))this._createDoctypeToken(String.fromCharCode(Qr(t))),this.state=A.DOCTYPE_NAME;else switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.NULL:this._err(P.unexpectedNullCharacter),this._createDoctypeToken(Ae),this.state=A.DOCTYPE_NAME;break;case b.GREATER_THAN_SIGN:{this._err(P.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break}case b.EOF:{this._err(P.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=A.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:this.state=A.AFTER_DOCTYPE_NAME;break;case b.GREATER_THAN_SIGN:this.state=A.DATA,this.emitCurrentDoctype(n);break;case b.NULL:this._err(P.unexpectedNullCharacter),n.name+=Ae;break;case b.EOF:this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break;default:n.name+=String.fromCodePoint(ir(t)?Qr(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:this.state=A.DATA,this.emitCurrentDoctype(n);break;case b.EOF:this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(Zf,!1)?this.state=A.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Jf,!1)?this.state=A.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(P.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:this.state=A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case b.QUOTATION_MARK:this._err(P.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case b.APOSTROPHE:this._err(P.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case b.GREATER_THAN_SIGN:this._err(P.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break;case b.EOF:this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break;default:this._err(P.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case b.APOSTROPHE:n.publicId="",this.state=A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case b.GREATER_THAN_SIGN:this._err(P.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break;case b.EOF:this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break;default:this._err(P.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case b.QUOTATION_MARK:this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case b.NULL:this._err(P.unexpectedNullCharacter),n.publicId+=Ae;break;case b.GREATER_THAN_SIGN:this._err(P.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break;case b.EOF:this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break;default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case b.APOSTROPHE:this.state=A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case b.NULL:this._err(P.unexpectedNullCharacter),n.publicId+=Ae;break;case b.GREATER_THAN_SIGN:this._err(P.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break;case b.EOF:this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break;default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:this.state=A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case b.GREATER_THAN_SIGN:this.state=A.DATA,this.emitCurrentDoctype(n);break;case b.QUOTATION_MARK:this._err(P.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case b.APOSTROPHE:this._err(P.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case b.EOF:this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break;default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:this.emitCurrentDoctype(n),this.state=A.DATA;break;case b.QUOTATION_MARK:n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case b.APOSTROPHE:n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case b.EOF:this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break;default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:this.state=A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case b.QUOTATION_MARK:this._err(P.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case b.APOSTROPHE:this._err(P.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case b.GREATER_THAN_SIGN:this._err(P.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break;case b.EOF:this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break;default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case b.APOSTROPHE:n.systemId="",this.state=A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case b.GREATER_THAN_SIGN:this._err(P.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.DATA,this.emitCurrentDoctype(n);break;case b.EOF:this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break;default:this._err(P.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case b.QUOTATION_MARK:this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case b.NULL:this._err(P.unexpectedNullCharacter),n.systemId+=Ae;break;case b.GREATER_THAN_SIGN:this._err(P.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break;case b.EOF:this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break;default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case b.APOSTROPHE:this.state=A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case b.NULL:this._err(P.unexpectedNullCharacter),n.systemId+=Ae;break;case b.GREATER_THAN_SIGN:this._err(P.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=A.DATA;break;case b.EOF:this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break;default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:this.emitCurrentDoctype(n),this.state=A.DATA;break;case b.EOF:this._err(P.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break;default:this._err(P.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=A.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:this.emitCurrentDoctype(n),this.state=A.DATA;break;case b.NULL:this._err(P.unexpectedNullCharacter);break;case b.EOF:this.emitCurrentDoctype(n),this._emitEOFToken()}}_stateCdataSection(t){switch(t){case b.RIGHT_SQUARE_BRACKET:this.state=A.CDATA_SECTION_BRACKET;break;case b.EOF:this._err(P.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===b.RIGHT_SQUARE_BRACKET?this.state=A.CDATA_SECTION_END:(this._emitChars("]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case b.GREATER_THAN_SIGN:this.state=A.DATA;break;case b.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=A.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);t=this.entityDecoder.end()}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(b.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&cc(this.preprocessor.peek(1))?A.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){cc(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===b.SEMICOLON&&this._err(P.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const hc=new Set([d.DD,d.DT,d.LI,d.OPTGROUP,d.OPTION,d.P,d.RB,d.RP,d.RT,d.RTC]),dc=new Set([...hc,d.CAPTION,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]),Xr=new Set([d.APPLET,d.CAPTION,d.HTML,d.MARQUEE,d.OBJECT,d.TABLE,d.TD,d.TEMPLATE,d.TH]),ug=new Set([...Xr,d.OL,d.UL]),pg=new Set([...Xr,d.BUTTON]),mc=new Set([d.ANNOTATION_XML,d.MI,d.MN,d.MO,d.MS,d.MTEXT]),fc=new Set([d.DESC,d.FOREIGN_OBJECT,d.TITLE]),hg=new Set([d.TR,d.TEMPLATE,d.HTML]),dg=new Set([d.TBODY,d.TFOOT,d.THEAD,d.TEMPLATE,d.HTML]),mg=new Set([d.TABLE,d.TEMPLATE,d.HTML]),fg=new Set([d.TD,d.TH]);class gg{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=d.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===d.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===H.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==H.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Fo,H.HTML)}popUntilTableCellPopped(){this.popUntilPopped(fg,H.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(mg,H.HTML)}clearBackToTableBodyContext(){this.clearBackTo(dg,H.HTML)}clearBackToTableRowContext(){this.clearBackTo(hg,H.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===d.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===d.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case H.HTML:if(i===t)return!0;if(n.has(i))return!1;break;case H.SVG:if(fc.has(i))return!1;break;case H.MATHML:if(mc.has(i))return!1}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Xr)}hasInListItemScope(t){return this.hasInDynamicScope(t,ug)}hasInButtonScope(t){return this.hasInDynamicScope(t,pg)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case H.HTML:if(Fo.has(n))return!0;if(Xr.has(n))return!1;break;case H.SVG:if(fc.has(n))return!1;break;case H.MATHML:if(mc.has(n))return!1}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===H.HTML)switch(this.tagIDs[n]){case t:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===H.HTML)switch(this.tagIDs[t]){case d.TBODY:case d.THEAD:case d.TFOOT:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===H.HTML)switch(this.tagIDs[n]){case t:return!0;case d.OPTION:case d.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&hc.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&dc.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&dc.has(this.currentTagId);)this.pop()}}var ft;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ft||(ft={}));const gc={type:ft.Marker};class _g{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,o=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let a=0;a<this.entries.length;a++){const l=this.entries[a];if(l.type===ft.Marker)break;const{element:c}=l;if(this.treeAdapter.getTagName(c)===o&&this.treeAdapter.getNamespaceURI(c)===s){const u=this.treeAdapter.getAttrList(c);u.length===i&&r.push({idx:a,attrs:u})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<3)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<3)return;const i=new Map(n.map(s=>[s.name,s.value]));let o=0;for(let s=0;s<r.length;s++){const a=r[s];a.attrs.every(l=>i.get(l.name)===l.value)&&(o+=1,o>=3&&this.entries.splice(a.idx,1))}}insertMarker(){this.entries.unshift(gc)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ft.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ft.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(gc);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ft.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ft.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ft.Element&&n.element===t)}}const Ft={createDocument:()=>({nodeName:"#document",mode:nt.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const i=e.childNodes.find(o=>o.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Ft.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Ft.isTextNode(n))return void(n.value+=t)}Ft.appendChild(e,Ft.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ft.isTextNode(r)?r.value+=t:Ft.insertBefore(e,Ft.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>e.nodeName==="#text",isCommentNode:e=>e.nodeName==="#comment",isDocumentTypeNode:e=>e.nodeName==="#documentType",isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},_c="html",Ec=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Eg=[...Ec,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Tg=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Tc=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],bg=[...Tc,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function bc(e,t){return t.some(n=>e.startsWith(n))}const kg="text/html",Ag="application/xhtml+xml",yg=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),xg=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:H.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:H.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:H.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:H.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:H.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:H.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:H.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:H.XML}],["xml:space",{prefix:"xml",name:"space",namespace:H.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:H.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:H.XMLNS}]]),Cg=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Ig=new Set([d.B,d.BIG,d.BLOCKQUOTE,d.BODY,d.BR,d.CENTER,d.CODE,d.DD,d.DIV,d.DL,d.DT,d.EM,d.EMBED,d.H1,d.H2,d.H3,d.H4,d.H5,d.H6,d.HEAD,d.HR,d.I,d.IMG,d.LI,d.LISTING,d.MENU,d.META,d.NOBR,d.OL,d.P,d.PRE,d.RUBY,d.S,d.SMALL,d.SPAN,d.STRONG,d.STRIKE,d.SUB,d.SUP,d.TABLE,d.TT,d.U,d.UL,d.VAR]);function kc(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name==="definitionurl"){e.attrs[t].name="definitionURL";break}}function Ac(e){for(let t=0;t<e.attrs.length;t++){const n=yg.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Uo(e){for(let t=0;t<e.attrs.length;t++){const n=xg.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Sg(e,t,n,r){return(!r||r===H.HTML)&&(function(i,o,s){if(o===H.MATHML&&i===d.ANNOTATION_XML){for(let a=0;a<s.length;a++)if(s[a].name===Zt.ENCODING){const l=s[a].value.toLowerCase();return l===kg||l===Ag}}return o===H.SVG&&(i===d.FOREIGN_OBJECT||i===d.DESC||i===d.TITLE)})(e,t,n)||(!r||r===H.MATHML)&&(function(i,o){return o===H.MATHML&&(i===d.MI||i===d.MO||i===d.MN||i===d.MS||i===d.MTEXT)})(e,t)}var C;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(C||(C={}));const Dg={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},yc=new Set([d.TABLE,d.TBODY,d.TFOOT,d.THEAD,d.TR]),xc={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ft,onParseError:null};class Cc{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=C.INITIAL,this.originalInsertionMode=C.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...xc,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new cg(this.options,this),this.activeFormattingElements=new _g(this.treeAdapter),this.fragmentContextID=r?xn(this.treeAdapter.getTagName(r)):d.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new gg(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...xc,...n};t!=null||(t=r.treeAdapter.createElement(L.TEMPLATE,H.HTML,[]));const i=r.treeAdapter.createElement("documentmock",H.HTML,[]),o=new this(r,i,t);return o.fragmentContextID===d.TEMPLATE&&o.tmplInsertionModeStack.unshift(C.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const o=(i=t.location)!==null&&i!==void 0?i:Dg,s={code:n,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:r?o.startLine:o.endLine,endCol:r?o.startCol:o.endCol,endOffset:r?o.startOffset:o.endOffset};this.onParseError(s)}onItemPush(t,n,r){var i,o;(o=(i=this.treeAdapter).onItemPush)===null||o===void 0||o.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let o,s;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,s=this.fragmentContextID):{current:o,currentTagId:s}=this.openElements,this._setContextModes(o,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===H.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,H.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=C.TEXT}switchToPlaintextParsing(){this.insertionMode=C.TEXT,this.originalInsertionMode=C.IN_BODY,this.tokenizer.state=Ce.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===L.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===H.HTML)switch(this.fragmentContextID){case d.TITLE:case d.TEXTAREA:this.tokenizer.state=Ce.RCDATA;break;case d.STYLE:case d.XMP:case d.IFRAME:case d.NOEMBED:case d.NOFRAMES:case d.NOSCRIPT:this.tokenizer.state=Ce.RAWTEXT;break;case d.SCRIPT:this.tokenizer.state=Ce.SCRIPT_DATA;break;case d.PLAINTEXT:this.tokenizer.state=Ce.PLAINTEXT}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,H.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,H.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(L.HTML,H.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,d.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),o=r?i.lastIndexOf(r):i.length,s=i[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:a,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:a,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),o=n.type===le.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,(t.tagID!==d.SVG||this.treeAdapter.getTagName(n)!==L.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(n)!==H.MATHML)&&(this.tokenizer.inForeignNode||(t.tagID===d.MGLYPH||t.tagID===d.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,H.HTML))}_processToken(t){switch(t.type){case le.CHARACTER:this.onCharacter(t);break;case le.NULL_CHARACTER:this.onNullCharacter(t);break;case le.COMMENT:this.onComment(t);break;case le.DOCTYPE:this.onDoctype(t);break;case le.START_TAG:this._processStartTag(t);break;case le.END_TAG:this.onEndTag(t);break;case le.EOF:this.onEof(t);break;case le.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(t)}}_isIntegrationPoint(t,n,r){return Sg(t,this.treeAdapter.getNamespaceURI(n),this.treeAdapter.getAttrList(n),r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(r=>r.type===ft.Marker||this.openElements.contains(r.element));for(let r=n===-1?t-1:n-1;r>=0;r--){const i=this.activeFormattingElements.entries[r];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=C.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(d.P),this.openElements.popUntilTagNamePopped(d.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case d.TR:return void(this.insertionMode=C.IN_ROW);case d.TBODY:case d.THEAD:case d.TFOOT:return void(this.insertionMode=C.IN_TABLE_BODY);case d.CAPTION:return void(this.insertionMode=C.IN_CAPTION);case d.COLGROUP:return void(this.insertionMode=C.IN_COLUMN_GROUP);case d.TABLE:return void(this.insertionMode=C.IN_TABLE);case d.BODY:return void(this.insertionMode=C.IN_BODY);case d.FRAMESET:return void(this.insertionMode=C.IN_FRAMESET);case d.SELECT:return void this._resetInsertionModeForSelect(t);case d.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case d.HTML:return void(this.insertionMode=this.headElement?C.AFTER_HEAD:C.BEFORE_HEAD);case d.TD:case d.TH:if(t>0)return void(this.insertionMode=C.IN_CELL);break;case d.HEAD:if(t>0)return void(this.insertionMode=C.IN_HEAD)}this.insertionMode=C.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===d.TEMPLATE)break;if(r===d.TABLE)return void(this.insertionMode=C.IN_SELECT_IN_TABLE)}this.insertionMode=C.IN_SELECT}_isElementCausesFosterParenting(t){return yc.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case d.TEMPLATE:if(this.treeAdapter.getNamespaceURI(n)===H.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break;case d.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return lg[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)(function(n,r){n._insertCharacters(r),n.framesetOk=!1})(this,t);else switch(this.insertionMode){case C.INITIAL:or(this,t);break;case C.BEFORE_HTML:sr(this,t);break;case C.BEFORE_HEAD:ar(this,t);break;case C.IN_HEAD:lr(this,t);break;case C.IN_HEAD_NO_SCRIPT:cr(this,t);break;case C.AFTER_HEAD:ur(this,t);break;case C.IN_BODY:case C.IN_CAPTION:case C.IN_CELL:case C.IN_TEMPLATE:Sc(this,t);break;case C.TEXT:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:this._insertCharacters(t);break;case C.IN_TABLE:case C.IN_TABLE_BODY:case C.IN_ROW:Vo(this,t);break;case C.IN_TABLE_TEXT:Pc(this,t);break;case C.IN_COLUMN_GROUP:Jr(this,t);break;case C.AFTER_BODY:ni(this,t);break;case C.AFTER_AFTER_BODY:ri(this,t)}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)(function(n,r){r.chars=Ae,n._insertCharacters(r)})(this,t);else switch(this.insertionMode){case C.INITIAL:or(this,t);break;case C.BEFORE_HTML:sr(this,t);break;case C.BEFORE_HEAD:ar(this,t);break;case C.IN_HEAD:lr(this,t);break;case C.IN_HEAD_NO_SCRIPT:cr(this,t);break;case C.AFTER_HEAD:ur(this,t);break;case C.TEXT:this._insertCharacters(t);break;case C.IN_TABLE:case C.IN_TABLE_BODY:case C.IN_ROW:Vo(this,t);break;case C.IN_COLUMN_GROUP:Jr(this,t);break;case C.AFTER_BODY:ni(this,t);break;case C.AFTER_AFTER_BODY:ri(this,t)}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML)Go(this,t);else switch(this.insertionMode){case C.INITIAL:case C.BEFORE_HTML:case C.BEFORE_HEAD:case C.IN_HEAD:case C.IN_HEAD_NO_SCRIPT:case C.AFTER_HEAD:case C.IN_BODY:case C.IN_TABLE:case C.IN_CAPTION:case C.IN_COLUMN_GROUP:case C.IN_TABLE_BODY:case C.IN_ROW:case C.IN_CELL:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:case C.IN_TEMPLATE:case C.IN_FRAMESET:case C.AFTER_FRAMESET:Go(this,t);break;case C.IN_TABLE_TEXT:dr(this,t);break;case C.AFTER_BODY:(function(n,r){n._appendCommentNode(r,n.openElements.items[0])})(this,t);break;case C.AFTER_AFTER_BODY:case C.AFTER_AFTER_FRAMESET:(function(n,r){n._appendCommentNode(r,n.document)})(this,t)}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case C.INITIAL:(function(n,r){n._setDocumentType(r);const i=r.forceQuirks?nt.QUIRKS:(function(o){if(o.name!==_c)return nt.QUIRKS;const{systemId:s}=o;if(s&&s.toLowerCase()==="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd")return nt.QUIRKS;let{publicId:a}=o;if(a!==null){if(a=a.toLowerCase(),Tg.has(a))return nt.QUIRKS;let l=s===null?Eg:Ec;if(bc(a,l))return nt.QUIRKS;if(l=s===null?Tc:bg,bc(a,l))return nt.LIMITED_QUIRKS}return nt.NO_QUIRKS})(r);(function(o){return o.name===_c&&o.publicId===null&&(o.systemId===null||o.systemId==="about:legacy-compat")})(r)||n._err(r,P.nonConformingDoctype),n.treeAdapter.setDocumentMode(n.document,i),n.insertionMode=C.BEFORE_HTML})(this,t);break;case C.BEFORE_HEAD:case C.IN_HEAD:case C.IN_HEAD_NO_SCRIPT:case C.AFTER_HEAD:this._err(t,P.misplacedDoctype);break;case C.IN_TABLE_TEXT:dr(this,t)}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,P.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?(function(n,r){if((function(i){const o=i.tagID;return o===d.FONT&&i.attrs.some(({name:a})=>a===Zt.COLOR||a===Zt.SIZE||a===Zt.FACE)||Ig.has(o)})(r))$c(n),n._startTagOutsideForeignContent(r);else{const i=n._getAdjustedCurrentElement(),o=n.treeAdapter.getNamespaceURI(i);o===H.MATHML?kc(r):o===H.SVG&&((function(s){const a=Cg.get(s.tagName);a!=null&&(s.tagName=a,s.tagID=xn(s.tagName))})(r),Ac(r)),Uo(r),r.selfClosing?n._appendElement(r,o):n._insertElement(r,o),r.ackSelfClosing=!0}})(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case C.INITIAL:or(this,t);break;case C.BEFORE_HTML:(function(n,r){r.tagID===d.HTML?(n._insertElement(r,H.HTML),n.insertionMode=C.BEFORE_HEAD):sr(n,r)})(this,t);break;case C.BEFORE_HEAD:(function(n,r){switch(r.tagID){case d.HTML:$e(n,r);break;case d.HEAD:n._insertElement(r,H.HTML),n.headElement=n.openElements.current,n.insertionMode=C.IN_HEAD;break;default:ar(n,r)}})(this,t);break;case C.IN_HEAD:lt(this,t);break;case C.IN_HEAD_NO_SCRIPT:(function(n,r){switch(r.tagID){case d.HTML:$e(n,r);break;case d.BASEFONT:case d.BGSOUND:case d.HEAD:case d.LINK:case d.META:case d.NOFRAMES:case d.STYLE:lt(n,r);break;case d.NOSCRIPT:n._err(r,P.nestedNoscriptInHead);break;default:cr(n,r)}})(this,t);break;case C.AFTER_HEAD:(function(n,r){switch(r.tagID){case d.HTML:$e(n,r);break;case d.BODY:n._insertElement(r,H.HTML),n.framesetOk=!1,n.insertionMode=C.IN_BODY;break;case d.FRAMESET:n._insertElement(r,H.HTML),n.insertionMode=C.IN_FRAMESET;break;case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:n._err(r,P.abandonedHeadElementChild),n.openElements.push(n.headElement,d.HEAD),lt(n,r),n.openElements.remove(n.headElement);break;case d.HEAD:n._err(r,P.misplacedStartTagForHeadElement);break;default:ur(n,r)}})(this,t);break;case C.IN_BODY:$e(this,t);break;case C.IN_TABLE:Cn(this,t);break;case C.IN_TABLE_TEXT:dr(this,t);break;case C.IN_CAPTION:(function(n,r){const i=r.tagID;Mc.has(i)?n.openElements.hasInTableScope(d.CAPTION)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(d.CAPTION),n.activeFormattingElements.clearToLastMarker(),n.insertionMode=C.IN_TABLE,Cn(n,r)):$e(n,r)})(this,t);break;case C.IN_COLUMN_GROUP:jo(this,t);break;case C.IN_TABLE_BODY:ei(this,t);break;case C.IN_ROW:ti(this,t);break;case C.IN_CELL:(function(n,r){const i=r.tagID;Mc.has(i)?(n.openElements.hasInTableScope(d.TD)||n.openElements.hasInTableScope(d.TH))&&(n._closeTableCell(),ti(n,r)):$e(n,r)})(this,t);break;case C.IN_SELECT:Fc(this,t);break;case C.IN_SELECT_IN_TABLE:(function(n,r){const i=r.tagID;i===d.CAPTION||i===d.TABLE||i===d.TBODY||i===d.TFOOT||i===d.THEAD||i===d.TR||i===d.TD||i===d.TH?(n.openElements.popUntilTagNamePopped(d.SELECT),n._resetInsertionMode(),n._processStartTag(r)):Fc(n,r)})(this,t);break;case C.IN_TEMPLATE:(function(n,r){switch(r.tagID){case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:lt(n,r);break;case d.CAPTION:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:n.tmplInsertionModeStack[0]=C.IN_TABLE,n.insertionMode=C.IN_TABLE,Cn(n,r);break;case d.COL:n.tmplInsertionModeStack[0]=C.IN_COLUMN_GROUP,n.insertionMode=C.IN_COLUMN_GROUP,jo(n,r);break;case d.TR:n.tmplInsertionModeStack[0]=C.IN_TABLE_BODY,n.insertionMode=C.IN_TABLE_BODY,ei(n,r);break;case d.TD:case d.TH:n.tmplInsertionModeStack[0]=C.IN_ROW,n.insertionMode=C.IN_ROW,ti(n,r);break;default:n.tmplInsertionModeStack[0]=C.IN_BODY,n.insertionMode=C.IN_BODY,$e(n,r)}})(this,t);break;case C.AFTER_BODY:(function(n,r){r.tagID===d.HTML?$e(n,r):ni(n,r)})(this,t);break;case C.IN_FRAMESET:(function(n,r){switch(r.tagID){case d.HTML:$e(n,r);break;case d.FRAMESET:n._insertElement(r,H.HTML);break;case d.FRAME:n._appendElement(r,H.HTML),r.ackSelfClosing=!0;break;case d.NOFRAMES:lt(n,r)}})(this,t);break;case C.AFTER_FRAMESET:(function(n,r){switch(r.tagID){case d.HTML:$e(n,r);break;case d.NOFRAMES:lt(n,r)}})(this,t);break;case C.AFTER_AFTER_BODY:(function(n,r){r.tagID===d.HTML?$e(n,r):ri(n,r)})(this,t);break;case C.AFTER_AFTER_FRAMESET:(function(n,r){switch(r.tagID){case d.HTML:$e(n,r);break;case d.NOFRAMES:lt(n,r)}})(this,t)}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?(function(n,r){if(r.tagID===d.P||r.tagID===d.BR)return $c(n),void n._endTagOutsideForeignContent(r);for(let i=n.openElements.stackTop;i>0;i--){const o=n.openElements.items[i];if(n.treeAdapter.getNamespaceURI(o)===H.HTML){n._endTagOutsideForeignContent(r);break}const s=n.treeAdapter.getTagName(o);if(s.toLowerCase()===r.tagName){r.tagName=s,n.openElements.shortenToLength(i);break}}})(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case C.INITIAL:or(this,t);break;case C.BEFORE_HTML:(function(n,r){const i=r.tagID;i!==d.HTML&&i!==d.HEAD&&i!==d.BODY&&i!==d.BR||sr(n,r)})(this,t);break;case C.BEFORE_HEAD:(function(n,r){const i=r.tagID;i===d.HEAD||i===d.BODY||i===d.HTML||i===d.BR?ar(n,r):n._err(r,P.endTagWithoutMatchingOpenElement)})(this,t);break;case C.IN_HEAD:(function(n,r){switch(r.tagID){case d.HEAD:n.openElements.pop(),n.insertionMode=C.AFTER_HEAD;break;case d.BODY:case d.BR:case d.HTML:lr(n,r);break;case d.TEMPLATE:Jt(n,r);break;default:n._err(r,P.endTagWithoutMatchingOpenElement)}})(this,t);break;case C.IN_HEAD_NO_SCRIPT:(function(n,r){switch(r.tagID){case d.NOSCRIPT:n.openElements.pop(),n.insertionMode=C.IN_HEAD;break;case d.BR:cr(n,r);break;default:n._err(r,P.endTagWithoutMatchingOpenElement)}})(this,t);break;case C.AFTER_HEAD:(function(n,r){switch(r.tagID){case d.BODY:case d.HTML:case d.BR:ur(n,r);break;case d.TEMPLATE:Jt(n,r);break;default:n._err(r,P.endTagWithoutMatchingOpenElement)}})(this,t);break;case C.IN_BODY:Zr(this,t);break;case C.TEXT:(function(n,r){var i;r.tagID===d.SCRIPT&&((i=n.scriptHandler)===null||i===void 0||i.call(n,n.openElements.current)),n.openElements.pop(),n.insertionMode=n.originalInsertionMode})(this,t);break;case C.IN_TABLE:pr(this,t);break;case C.IN_TABLE_TEXT:dr(this,t);break;case C.IN_CAPTION:(function(n,r){const i=r.tagID;switch(i){case d.CAPTION:case d.TABLE:n.openElements.hasInTableScope(d.CAPTION)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(d.CAPTION),n.activeFormattingElements.clearToLastMarker(),n.insertionMode=C.IN_TABLE,i===d.TABLE&&pr(n,r));break;case d.BODY:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:Zr(n,r)}})(this,t);break;case C.IN_COLUMN_GROUP:(function(n,r){switch(r.tagID){case d.COLGROUP:n.openElements.currentTagId===d.COLGROUP&&(n.openElements.pop(),n.insertionMode=C.IN_TABLE);break;case d.TEMPLATE:Jt(n,r);break;case d.COL:break;default:Jr(n,r)}})(this,t);break;case C.IN_TABLE_BODY:zo(this,t);break;case C.IN_ROW:Bc(this,t);break;case C.IN_CELL:(function(n,r){const i=r.tagID;switch(i){case d.TD:case d.TH:n.openElements.hasInTableScope(i)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(i),n.activeFormattingElements.clearToLastMarker(),n.insertionMode=C.IN_ROW);break;case d.TABLE:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:n.openElements.hasInTableScope(i)&&(n._closeTableCell(),Bc(n,r));break;case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:break;default:Zr(n,r)}})(this,t);break;case C.IN_SELECT:Uc(this,t);break;case C.IN_SELECT_IN_TABLE:(function(n,r){const i=r.tagID;i===d.CAPTION||i===d.TABLE||i===d.TBODY||i===d.TFOOT||i===d.THEAD||i===d.TR||i===d.TD||i===d.TH?n.openElements.hasInTableScope(i)&&(n.openElements.popUntilTagNamePopped(d.SELECT),n._resetInsertionMode(),n.onEndTag(r)):Uc(n,r)})(this,t);break;case C.IN_TEMPLATE:(function(n,r){r.tagID===d.TEMPLATE&&Jt(n,r)})(this,t);break;case C.AFTER_BODY:Gc(this,t);break;case C.IN_FRAMESET:(function(n,r){r.tagID!==d.FRAMESET||n.openElements.isRootHtmlElementCurrent()||(n.openElements.pop(),n.fragmentContext||n.openElements.currentTagId===d.FRAMESET||(n.insertionMode=C.AFTER_FRAMESET))})(this,t);break;case C.AFTER_FRAMESET:(function(n,r){r.tagID===d.HTML&&(n.insertionMode=C.AFTER_AFTER_FRAMESET)})(this,t);break;case C.AFTER_AFTER_BODY:ri(this,t)}}onEof(t){switch(this.insertionMode){case C.INITIAL:or(this,t);break;case C.BEFORE_HTML:sr(this,t);break;case C.BEFORE_HEAD:ar(this,t);break;case C.IN_HEAD:lr(this,t);break;case C.IN_HEAD_NO_SCRIPT:cr(this,t);break;case C.AFTER_HEAD:ur(this,t);break;case C.IN_BODY:case C.IN_TABLE:case C.IN_CAPTION:case C.IN_COLUMN_GROUP:case C.IN_TABLE_BODY:case C.IN_ROW:case C.IN_CELL:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:Rc(this,t);break;case C.TEXT:(function(n,r){n._err(r,P.eofInElementThatCanContainOnlyText),n.openElements.pop(),n.insertionMode=n.originalInsertionMode,n.onEof(r)})(this,t);break;case C.IN_TABLE_TEXT:dr(this,t);break;case C.IN_TEMPLATE:Hc(this,t);break;case C.AFTER_BODY:case C.IN_FRAMESET:case C.AFTER_FRAMESET:case C.AFTER_AFTER_BODY:case C.AFTER_AFTER_FRAMESET:$o(this,t)}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===b.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(t);else switch(this.insertionMode){case C.IN_HEAD:case C.IN_HEAD_NO_SCRIPT:case C.AFTER_HEAD:case C.TEXT:case C.IN_COLUMN_GROUP:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:case C.IN_FRAMESET:case C.AFTER_FRAMESET:this._insertCharacters(t);break;case C.IN_BODY:case C.IN_CAPTION:case C.IN_CELL:case C.IN_TEMPLATE:case C.AFTER_BODY:case C.AFTER_AFTER_BODY:case C.AFTER_AFTER_FRAMESET:Ic(this,t);break;case C.IN_TABLE:case C.IN_TABLE_BODY:case C.IN_ROW:Vo(this,t);break;case C.IN_TABLE_TEXT:vc(this,t)}}}function Ng(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Oc(e,t),n}function wg(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function Lg(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,s=i;s!==n;o++,s=i){i=e.openElements.getCommonAncestor(s);const a=e.activeFormattingElements.getElementEntry(s),l=a&&o>=3;!a||l?(l&&e.activeFormattingElements.removeEntry(a),e.openElements.remove(s)):(s=Og(e,a),r===t&&(e.activeFormattingElements.bookmark=a),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Og(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Rg(e,t,n){const r=xn(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);r===d.TEMPLATE&&i===H.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function vg(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function Ho(e,t){for(let n=0;n<8;n++){const r=Ng(e,t);if(!r)break;const i=wg(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const o=Lg(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(o),s&&Rg(e,s,o),vg(e,i,r)}}function Go(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function $o(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(o);s&&!s.endTag&&e._setEndLocation(o,t)}}}}function or(e,t){e._err(t,P.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,nt.QUIRKS),e.insertionMode=C.BEFORE_HTML,e._processToken(t)}function sr(e,t){e._insertFakeRootElement(),e.insertionMode=C.BEFORE_HEAD,e._processToken(t)}function ar(e,t){e._insertFakeElement(L.HEAD,d.HEAD),e.headElement=e.openElements.current,e.insertionMode=C.IN_HEAD,e._processToken(t)}function lt(e,t){switch(t.tagID){case d.HTML:$e(e,t);break;case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:e._appendElement(t,H.HTML),t.ackSelfClosing=!0;break;case d.TITLE:e._switchToTextParsing(t,Ce.RCDATA);break;case d.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Ce.RAWTEXT):(e._insertElement(t,H.HTML),e.insertionMode=C.IN_HEAD_NO_SCRIPT);break;case d.NOFRAMES:case d.STYLE:e._switchToTextParsing(t,Ce.RAWTEXT);break;case d.SCRIPT:e._switchToTextParsing(t,Ce.SCRIPT_DATA);break;case d.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=C.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(C.IN_TEMPLATE);break;case d.HEAD:e._err(t,P.misplacedStartTagForHeadElement);break;default:lr(e,t)}}function Jt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==d.TEMPLATE&&e._err(t,P.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,P.endTagWithoutMatchingOpenElement)}function lr(e,t){e.openElements.pop(),e.insertionMode=C.AFTER_HEAD,e._processToken(t)}function cr(e,t){const n=t.type===le.EOF?P.openElementsLeftAfterEof:P.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=C.IN_HEAD,e._processToken(t)}function ur(e,t){e._insertFakeElement(L.BODY,d.BODY),e.insertionMode=C.IN_BODY,Kr(e,t)}function Kr(e,t){switch(t.type){case le.CHARACTER:Sc(e,t);break;case le.WHITESPACE_CHARACTER:Ic(e,t);break;case le.COMMENT:Go(e,t);break;case le.START_TAG:$e(e,t);break;case le.END_TAG:Zr(e,t);break;case le.EOF:Rc(e,t)}}function Ic(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Sc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Dc(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,H.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Nc(e){const t=lc(e,Zt.TYPE);return t!=null&&t.toLowerCase()==="hidden"}function wc(e,t){e._switchToTextParsing(t,Ce.RAWTEXT)}function Lc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML)}function $e(e,t){switch(t.tagID){case d.I:case d.S:case d.B:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.SMALL:case d.STRIKE:case d.STRONG:(function(n,r){n._reconstructActiveFormattingElements(),n._insertElement(r,H.HTML),n.activeFormattingElements.pushElement(n.openElements.current,r)})(e,t);break;case d.A:(function(n,r){const i=n.activeFormattingElements.getElementEntryInScopeWithTagName(L.A);i&&(Ho(n,r),n.openElements.remove(i.element),n.activeFormattingElements.removeEntry(i)),n._reconstructActiveFormattingElements(),n._insertElement(r,H.HTML),n.activeFormattingElements.pushElement(n.openElements.current,r)})(e,t);break;case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:(function(n,r){n.openElements.hasInButtonScope(d.P)&&n._closePElement(),n.openElements.currentTagId!==void 0&&Fo.has(n.openElements.currentTagId)&&n.openElements.pop(),n._insertElement(r,H.HTML)})(e,t);break;case d.P:case d.DL:case d.OL:case d.UL:case d.DIV:case d.DIR:case d.NAV:case d.MAIN:case d.MENU:case d.ASIDE:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.DETAILS:case d.ADDRESS:case d.ARTICLE:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:(function(n,r){n.openElements.hasInButtonScope(d.P)&&n._closePElement(),n._insertElement(r,H.HTML)})(e,t);break;case d.LI:case d.DD:case d.DT:(function(n,r){n.framesetOk=!1;const i=r.tagID;for(let o=n.openElements.stackTop;o>=0;o--){const s=n.openElements.tagIDs[o];if(i===d.LI&&s===d.LI||(i===d.DD||i===d.DT)&&(s===d.DD||s===d.DT)){n.openElements.generateImpliedEndTagsWithExclusion(s),n.openElements.popUntilTagNamePopped(s);break}if(s!==d.ADDRESS&&s!==d.DIV&&s!==d.P&&n._isSpecialElement(n.openElements.items[o],s))break}n.openElements.hasInButtonScope(d.P)&&n._closePElement(),n._insertElement(r,H.HTML)})(e,t);break;case d.BR:case d.IMG:case d.WBR:case d.AREA:case d.EMBED:case d.KEYGEN:Dc(e,t);break;case d.HR:(function(n,r){n.openElements.hasInButtonScope(d.P)&&n._closePElement(),n._appendElement(r,H.HTML),n.framesetOk=!1,r.ackSelfClosing=!0})(e,t);break;case d.RB:case d.RTC:(function(n,r){n.openElements.hasInScope(d.RUBY)&&n.openElements.generateImpliedEndTags(),n._insertElement(r,H.HTML)})(e,t);break;case d.RT:case d.RP:(function(n,r){n.openElements.hasInScope(d.RUBY)&&n.openElements.generateImpliedEndTagsWithExclusion(d.RTC),n._insertElement(r,H.HTML)})(e,t);break;case d.PRE:case d.LISTING:(function(n,r){n.openElements.hasInButtonScope(d.P)&&n._closePElement(),n._insertElement(r,H.HTML),n.skipNextNewLine=!0,n.framesetOk=!1})(e,t);break;case d.XMP:(function(n,r){n.openElements.hasInButtonScope(d.P)&&n._closePElement(),n._reconstructActiveFormattingElements(),n.framesetOk=!1,n._switchToTextParsing(r,Ce.RAWTEXT)})(e,t);break;case d.SVG:(function(n,r){n._reconstructActiveFormattingElements(),Ac(r),Uo(r),r.selfClosing?n._appendElement(r,H.SVG):n._insertElement(r,H.SVG),r.ackSelfClosing=!0})(e,t);break;case d.HTML:(function(n,r){n.openElements.tmplCount===0&&n.treeAdapter.adoptAttributes(n.openElements.items[0],r.attrs)})(e,t);break;case d.BASE:case d.LINK:case d.META:case d.STYLE:case d.TITLE:case d.SCRIPT:case d.BGSOUND:case d.BASEFONT:case d.TEMPLATE:lt(e,t);break;case d.BODY:(function(n,r){const i=n.openElements.tryPeekProperlyNestedBodyElement();i&&n.openElements.tmplCount===0&&(n.framesetOk=!1,n.treeAdapter.adoptAttributes(i,r.attrs))})(e,t);break;case d.FORM:(function(n,r){const i=n.openElements.tmplCount>0;n.formElement&&!i||(n.openElements.hasInButtonScope(d.P)&&n._closePElement(),n._insertElement(r,H.HTML),i||(n.formElement=n.openElements.current))})(e,t);break;case d.NOBR:(function(n,r){n._reconstructActiveFormattingElements(),n.openElements.hasInScope(d.NOBR)&&(Ho(n,r),n._reconstructActiveFormattingElements()),n._insertElement(r,H.HTML),n.activeFormattingElements.pushElement(n.openElements.current,r)})(e,t);break;case d.MATH:(function(n,r){n._reconstructActiveFormattingElements(),kc(r),Uo(r),r.selfClosing?n._appendElement(r,H.MATHML):n._insertElement(r,H.MATHML),r.ackSelfClosing=!0})(e,t);break;case d.TABLE:(function(n,r){n.treeAdapter.getDocumentMode(n.document)!==nt.QUIRKS&&n.openElements.hasInButtonScope(d.P)&&n._closePElement(),n._insertElement(r,H.HTML),n.framesetOk=!1,n.insertionMode=C.IN_TABLE})(e,t);break;case d.INPUT:(function(n,r){n._reconstructActiveFormattingElements(),n._appendElement(r,H.HTML),Nc(r)||(n.framesetOk=!1),r.ackSelfClosing=!0})(e,t);break;case d.PARAM:case d.TRACK:case d.SOURCE:(function(n,r){n._appendElement(r,H.HTML),r.ackSelfClosing=!0})(e,t);break;case d.IMAGE:(function(n,r){r.tagName=L.IMG,r.tagID=d.IMG,Dc(n,r)})(e,t);break;case d.BUTTON:(function(n,r){n.openElements.hasInScope(d.BUTTON)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(d.BUTTON)),n._reconstructActiveFormattingElements(),n._insertElement(r,H.HTML),n.framesetOk=!1})(e,t);break;case d.APPLET:case d.OBJECT:case d.MARQUEE:(function(n,r){n._reconstructActiveFormattingElements(),n._insertElement(r,H.HTML),n.activeFormattingElements.insertMarker(),n.framesetOk=!1})(e,t);break;case d.IFRAME:(function(n,r){n.framesetOk=!1,n._switchToTextParsing(r,Ce.RAWTEXT)})(e,t);break;case d.SELECT:(function(n,r){n._reconstructActiveFormattingElements(),n._insertElement(r,H.HTML),n.framesetOk=!1,n.insertionMode=n.insertionMode===C.IN_TABLE||n.insertionMode===C.IN_CAPTION||n.insertionMode===C.IN_TABLE_BODY||n.insertionMode===C.IN_ROW||n.insertionMode===C.IN_CELL?C.IN_SELECT_IN_TABLE:C.IN_SELECT})(e,t);break;case d.OPTION:case d.OPTGROUP:(function(n,r){n.openElements.currentTagId===d.OPTION&&n.openElements.pop(),n._reconstructActiveFormattingElements(),n._insertElement(r,H.HTML)})(e,t);break;case d.NOEMBED:case d.NOFRAMES:wc(e,t);break;case d.FRAMESET:(function(n,r){const i=n.openElements.tryPeekProperlyNestedBodyElement();n.framesetOk&&i&&(n.treeAdapter.detachNode(i),n.openElements.popAllUpToHtmlElement(),n._insertElement(r,H.HTML),n.insertionMode=C.IN_FRAMESET)})(e,t);break;case d.TEXTAREA:(function(n,r){n._insertElement(r,H.HTML),n.skipNextNewLine=!0,n.tokenizer.state=Ce.RCDATA,n.originalInsertionMode=n.insertionMode,n.framesetOk=!1,n.insertionMode=C.TEXT})(e,t);break;case d.NOSCRIPT:e.options.scriptingEnabled?wc(e,t):Lc(e,t);break;case d.PLAINTEXT:(function(n,r){n.openElements.hasInButtonScope(d.P)&&n._closePElement(),n._insertElement(r,H.HTML),n.tokenizer.state=Ce.PLAINTEXT})(e,t);break;case d.COL:case d.TH:case d.TD:case d.TR:case d.HEAD:case d.FRAME:case d.TBODY:case d.TFOOT:case d.THEAD:case d.CAPTION:case d.COLGROUP:break;default:Lc(e,t)}}function Oc(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const o=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==d.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(o,s))break}}function Zr(e,t){switch(t.tagID){case d.A:case d.B:case d.I:case d.S:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.NOBR:case d.SMALL:case d.STRIKE:case d.STRONG:Ho(e,t);break;case d.P:(function(n){n.openElements.hasInButtonScope(d.P)||n._insertFakeElement(L.P,d.P),n._closePElement()})(e);break;case d.DL:case d.UL:case d.OL:case d.DIR:case d.DIV:case d.NAV:case d.PRE:case d.MAIN:case d.MENU:case d.ASIDE:case d.BUTTON:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.ADDRESS:case d.ARTICLE:case d.DETAILS:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.LISTING:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:(function(n,r){const i=r.tagID;n.openElements.hasInScope(i)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(i))})(e,t);break;case d.LI:(function(n){n.openElements.hasInListItemScope(d.LI)&&(n.openElements.generateImpliedEndTagsWithExclusion(d.LI),n.openElements.popUntilTagNamePopped(d.LI))})(e);break;case d.DD:case d.DT:(function(n,r){const i=r.tagID;n.openElements.hasInScope(i)&&(n.openElements.generateImpliedEndTagsWithExclusion(i),n.openElements.popUntilTagNamePopped(i))})(e,t);break;case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:(function(n){n.openElements.hasNumberedHeaderInScope()&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilNumberedHeaderPopped())})(e);break;case d.BR:(function(n){n._reconstructActiveFormattingElements(),n._insertFakeElement(L.BR,d.BR),n.openElements.pop(),n.framesetOk=!1})(e);break;case d.BODY:(function(n,r){if(n.openElements.hasInScope(d.BODY)&&(n.insertionMode=C.AFTER_BODY,n.options.sourceCodeLocationInfo)){const i=n.openElements.tryPeekProperlyNestedBodyElement();i&&n._setEndLocation(i,r)}})(e,t);break;case d.HTML:(function(n,r){n.openElements.hasInScope(d.BODY)&&(n.insertionMode=C.AFTER_BODY,Gc(n,r))})(e,t);break;case d.FORM:(function(n){const r=n.openElements.tmplCount>0,{formElement:i}=n;r||(n.formElement=null),(i||r)&&n.openElements.hasInScope(d.FORM)&&(n.openElements.generateImpliedEndTags(),r?n.openElements.popUntilTagNamePopped(d.FORM):i&&n.openElements.remove(i))})(e);break;case d.APPLET:case d.OBJECT:case d.MARQUEE:(function(n,r){const i=r.tagID;n.openElements.hasInScope(i)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(i),n.activeFormattingElements.clearToLastMarker())})(e,t);break;case d.TEMPLATE:Jt(e,t);break;default:Oc(e,t)}}function Rc(e,t){e.tmplInsertionModeStack.length>0?Hc(e,t):$o(e,t)}function Vo(e,t){if(e.openElements.currentTagId!==void 0&&yc.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=C.IN_TABLE_TEXT,t.type){case le.CHARACTER:Pc(e,t);break;case le.WHITESPACE_CHARACTER:vc(e,t)}else hr(e,t)}function Cn(e,t){switch(t.tagID){case d.TD:case d.TH:case d.TR:(function(n,r){n.openElements.clearBackToTableContext(),n._insertFakeElement(L.TBODY,d.TBODY),n.insertionMode=C.IN_TABLE_BODY,ei(n,r)})(e,t);break;case d.STYLE:case d.SCRIPT:case d.TEMPLATE:lt(e,t);break;case d.COL:(function(n,r){n.openElements.clearBackToTableContext(),n._insertFakeElement(L.COLGROUP,d.COLGROUP),n.insertionMode=C.IN_COLUMN_GROUP,jo(n,r)})(e,t);break;case d.FORM:(function(n,r){n.formElement||n.openElements.tmplCount!==0||(n._insertElement(r,H.HTML),n.formElement=n.openElements.current,n.openElements.pop())})(e,t);break;case d.TABLE:(function(n,r){n.openElements.hasInTableScope(d.TABLE)&&(n.openElements.popUntilTagNamePopped(d.TABLE),n._resetInsertionMode(),n._processStartTag(r))})(e,t);break;case d.TBODY:case d.TFOOT:case d.THEAD:(function(n,r){n.openElements.clearBackToTableContext(),n._insertElement(r,H.HTML),n.insertionMode=C.IN_TABLE_BODY})(e,t);break;case d.INPUT:(function(n,r){Nc(r)?n._appendElement(r,H.HTML):hr(n,r),r.ackSelfClosing=!0})(e,t);break;case d.CAPTION:(function(n,r){n.openElements.clearBackToTableContext(),n.activeFormattingElements.insertMarker(),n._insertElement(r,H.HTML),n.insertionMode=C.IN_CAPTION})(e,t);break;case d.COLGROUP:(function(n,r){n.openElements.clearBackToTableContext(),n._insertElement(r,H.HTML),n.insertionMode=C.IN_COLUMN_GROUP})(e,t);break;default:hr(e,t)}}function pr(e,t){switch(t.tagID){case d.TABLE:e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode());break;case d.TEMPLATE:Jt(e,t);break;case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:hr(e,t)}}function hr(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Kr(e,t),e.fosterParentingEnabled=n}function vc(e,t){e.pendingCharacterTokens.push(t)}function Pc(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function dr(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)hr(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Mc=new Set([d.CAPTION,d.COL,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]);function jo(e,t){switch(t.tagID){case d.HTML:$e(e,t);break;case d.COL:e._appendElement(t,H.HTML),t.ackSelfClosing=!0;break;case d.TEMPLATE:lt(e,t);break;default:Jr(e,t)}}function Jr(e,t){e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=C.IN_TABLE,e._processToken(t))}function ei(e,t){switch(t.tagID){case d.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,H.HTML),e.insertionMode=C.IN_ROW;break;case d.TH:case d.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(L.TR,d.TR),e.insertionMode=C.IN_ROW,ti(e,t);break;case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE,Cn(e,t));break;default:Cn(e,t)}}function zo(e,t){const n=t.tagID;switch(t.tagID){case d.TBODY:case d.TFOOT:case d.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE);break;case d.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE,pr(e,t));break;case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:case d.TR:break;default:pr(e,t)}}function ti(e,t){switch(t.tagID){case d.TH:case d.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,H.HTML),e.insertionMode=C.IN_CELL,e.activeFormattingElements.insertMarker();break;case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY,ei(e,t));break;default:Cn(e,t)}}function Bc(e,t){switch(t.tagID){case d.TR:e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY);break;case d.TABLE:e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY,zo(e,t));break;case d.TBODY:case d.TFOOT:case d.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(d.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY,zo(e,t));break;case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:break;default:pr(e,t)}}function Fc(e,t){switch(t.tagID){case d.HTML:$e(e,t);break;case d.OPTION:e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._insertElement(t,H.HTML);break;case d.OPTGROUP:e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._insertElement(t,H.HTML);break;case d.HR:e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._appendElement(t,H.HTML),t.ackSelfClosing=!0;break;case d.INPUT:case d.KEYGEN:case d.TEXTAREA:case d.SELECT:e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),t.tagID!==d.SELECT&&e._processStartTag(t));break;case d.SCRIPT:case d.TEMPLATE:lt(e,t)}}function Uc(e,t){switch(t.tagID){case d.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===d.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===d.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop();break;case d.OPTION:e.openElements.currentTagId===d.OPTION&&e.openElements.pop();break;case d.SELECT:e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode());break;case d.TEMPLATE:Jt(e,t)}}function Hc(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):$o(e,t)}function Gc(e,t){var n;if(t.tagID===d.HTML){if(e.fragmentContext||(e.insertionMode=C.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===d.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else ni(e,t)}function ni(e,t){e.insertionMode=C.IN_BODY,Kr(e,t)}function ri(e,t){e.insertionMode=C.IN_BODY,Kr(e,t)}function $c(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==H.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}L.AREA,L.BASE,L.BASEFONT,L.BGSOUND,L.BR,L.COL,L.EMBED,L.FRAME,L.HR,L.IMG,L.INPUT,L.KEYGEN,L.LINK,L.META,L.PARAM,L.SOURCE,L.TRACK,L.WBR;const Pg=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Mg=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Vc={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function jc(e,t){const n=(function(s){const a=s.type==="root"?s.children[0]:s;return!!(a&&(a.type==="doctype"||a.type==="element"&&a.tagName.toLowerCase()==="html"))})(e),r=Po("type",{handlers:{root:Bg,element:Fg,text:Ug,comment:qc,doctype:Hg,raw:$g},unknown:Vg}),i={parser:n?new Cc(Vc):Cc.getFragmentParser(void 0,Vc),handle(s){r(s,i)},stitches:!1,options:t||{}};r(e,i),In(i,ht());const o=(function(s,a){const l=a||{};return wo({file:l.file||void 0,location:!1,schema:l.space==="svg"?Rt:Wn,verbose:l.verbose||!1},s)})(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&qr(o,"comment",function(s,a,l){const c=s;if(c.value.stitch&&l&&a!==void 0)return l.children[a]=c.value.stitch,a}),o.type==="root"&&o.children.length===1&&o.children[0].type===e.type?o.children[0]:o}function zc(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Bg(e,t){zc(e.children,t)}function Fg(e,t){(function(n,r){const i=n.tagName.toLowerCase();if(r.parser.tokenizer.state===Ce.PLAINTEXT)return;In(r,ht(n));const o=r.parser.openElements.current;let s="namespaceURI"in o?o.namespaceURI:mt.html;s===mt.html&&i==="svg"&&(s=mt.svg);const a=(function(c,u){const h=(u||Yf).space;return ec(c,h==="svg"?Zl:Wf)})({...n,children:[]},{space:s===mt.svg?"svg":"html"}),l={type:le.START_TAG,tagName:i,tagID:xn(i),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:mr(n)};r.parser.currentToken=l,r.parser._processToken(r.parser.currentToken),r.parser.tokenizer.lastStartTagName=i})(e,t),zc(e.children,t),(function(n,r){const i=n.tagName.toLowerCase();if(!r.parser.tokenizer.inForeignNode&&tc.includes(i)||r.parser.tokenizer.state===Ce.PLAINTEXT)return;In(r,Br(n));const o={type:le.END_TAG,tagName:i,tagID:xn(i),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:mr(n)};r.parser.currentToken=o,r.parser._processToken(r.parser.currentToken),i!==r.parser.tokenizer.lastStartTagName||r.parser.tokenizer.state!==Ce.RCDATA&&r.parser.tokenizer.state!==Ce.RAWTEXT&&r.parser.tokenizer.state!==Ce.SCRIPT_DATA||(r.parser.tokenizer.state=Ce.DATA)})(e,t)}function Ug(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:le.CHARACTER,chars:e.value,location:mr(e)};In(t,ht(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Hg(e,t){const n={type:le.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:mr(e)};In(t,ht(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Gg(e,t){t.stitches=!0;const n=(function(r){return er("children"in r?{...r,children:[]}:r)})(e);if("children"in e&&"children"in n){const r=jc({type:"root",children:e.children},t.options);n.children=r.children}qc({type:"comment",value:{stitch:n}},t)}function qc(e,t){const n=e.value,r={type:le.COMMENT,data:n,location:mr(e)};In(t,ht(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function $g(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Wc(t,ht(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Pg,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Vg(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let r="";throw Mg.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}Gg(n,t)}function In(e,t){Wc(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Ce.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Wc(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function mr(e){const t=ht(e)||{line:void 0,column:void 0,offset:void 0},n=Br(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function jg(e){return function(t,n){return jc(t,{...e,file:n})}}function ii(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function zg(e,t,n){const r=tr((n||{}).ignore||[]),i=(function(a){const l=[];if(!Array.isArray(a))throw new TypeError("Expected find and replace tuple or list of tuples");const c=!a[0]||Array.isArray(a[0])?a:[a];let u=-1;for(;++u<c.length;){const h=c[u];l.push([qg(h[0]),Wg(h[1])])}return l})(t);let o=-1;for(;++o<i.length;)mo(e,"text",s);function s(a,l){let c,u=-1;for(;++u<l.length;){const h=l[u],p=c?c.children:void 0;if(r(h,p?p.indexOf(h):void 0,c))return;c=h}if(c)return(function(h,p){const m=p[p.length-1],f=i[o][0],T=i[o][1];let g=0;const _=m.children,x=_.indexOf(h);let E=!1,y=[];f.lastIndex=0;let w=f.exec(h.value);for(;w;){const N=w.index,O={index:w.index,input:w.input,stack:[...p,h]};let S=T(...w,O);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?f.lastIndex=N+1:(g!==N&&y.push({type:"text",value:h.value.slice(g,N)}),Array.isArray(S)?y.push(...S):S&&y.push(S),g=N+w[0].length,E=!0),!f.global)break;w=f.exec(h.value)}return E?(g<h.value.length&&y.push({type:"text",value:h.value.slice(g)}),m.children.splice(x,1,...y)):y=[h],x+y.length})(a,l)}}function qg(e){return typeof e=="string"?new RegExp((function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})(e),"g"):e}function Wg(e){return typeof e=="function"?e:function(){return e}}const qo="phrasing",Wo=["autolink","link","image","label"];function Yg(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Yo(e){this.config.enter.autolinkProtocol.call(this,e)}function Qg(e){this.config.exit.autolinkProtocol.call(this,e)}function Xg(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Kg(e){this.config.exit.autolinkEmail.call(this,e)}function Zg(e){this.exit(e)}function Jg(e){zg(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,e_],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),t_]],{ignore:["link","linkReference"]})}function e_(e,t,n,r,i){let o="";if(!Yc(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!(function(l){const c=l.split(".");return!(c.length<2||c[c.length-1]&&(/_/.test(c[c.length-1])||!/[a-zA-Z\d]/.test(c[c.length-1]))||c[c.length-2]&&(/_/.test(c[c.length-2])||!/[a-zA-Z\d]/.test(c[c.length-2])))})(n)))return!1;const s=(function(l){const c=/[!"&'),.:;<>?\]}]+$/.exec(l);if(!c)return[l,void 0];l=l.slice(0,c.index);let u=c[0],h=u.indexOf(")");const p=ii(l,"(");let m=ii(l,")");for(;h!==-1&&p>m;)l+=u.slice(0,h+1),u=u.slice(h+1),h=u.indexOf(")"),m++;return[l,u]})(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function t_(e,t,n,r){return!(!Yc(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Yc(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Qt(n)||Hr(n))&&(!t||n!==47)}function n_(){this.buffer()}function r_(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function i_(){this.buffer()}function o_(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function s_(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=at(this.sliceSerialize(e)).toLowerCase(),n.label=t}function a_(e){this.exit(e)}function l_(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=at(this.sliceSerialize(e)).toLowerCase(),n.label=t}function c_(e){this.exit(e)}function Qc(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),s(),o+=i.move("]"),o}function u_(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(n,r,i,o){const s=i.createTracker(o);let a=s.move("[^");const l=i.enter("footnoteDefinition"),c=i.enter("label");return a+=s.move(i.safe(i.associationId(n),{before:a,after:"]"})),c(),a+=s.move("]:"),n.children&&n.children.length>0&&(s.shift(4),a+=s.move((t?`
18
+ `:" ")+i.indentLines(i.containerFlow(n,s.current()),t?Xc:p_))),l(),a},footnoteReference:Qc},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function p_(e,t,n){return t===0?e:Xc(e,t,n)}function Xc(e,t,n){return(n?"":" ")+e}Qc.peek=function(){return"["};const h_=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function d_(e){this.enter({type:"delete",children:[]},e)}function m_(e){this.exit(e)}function Kc(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function f_(e){return e.length}function g_(e){return e==null?"":String(e)}function Zc(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function __(e,t,n){return">"+(n?"":" ")+e}function E_(e,t){return Jc(e,t.inConstruct,!0)&&!Jc(e,t.notInConstruct,!1)}function Jc(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function eu(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
19
+ `&&E_(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
20
+ `}function tu(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>s&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}function T_(e,t,n){return(n?"":" ")+e}function Qo(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function fr(e){return"&#x"+e.toString(16).toUpperCase()+";"}function oi(e,t,n){const r=_n(e),i=_n(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function nu(e,t,n,r){const i=(function(f){const T=f.options.emphasis||"*";if(T!=="*"&&T!=="_")throw new Error("Cannot serialize emphasis with `"+T+"` for `options.emphasis`, expected `*`, or `_`");return T})(n),o=n.enter("emphasis"),s=n.createTracker(r),a=s.move(i);let l=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const c=l.charCodeAt(0),u=oi(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=fr(c)+l.slice(1));const h=l.charCodeAt(l.length-1),p=oi(r.after.charCodeAt(0),h,i);p.inside&&(l=l.slice(0,-1)+fr(h));const m=s.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},a+l+m}function ru(e){return e.value||""}function iu(e,t,n,r){const i=Qo(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),c+=l.move(")"),s(),c}function ou(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const c=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),i!=="full"&&c&&c===h?i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(h+"]"),l}function su(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const s=n.unsafe[o],a=n.compilePattern(s);let l;if(s.atBreak)for(;l=a.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function au(e,t){const n=oo(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function lu(e,t,n,r){const i=Qo(n),o=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let a,l;if(au(e,n)){const u=n.stack;n.stack=[],a=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),a(),n.stack=u,h}a=n.enter("link"),l=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),a(),c}function cu(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),i!=="full"&&c&&c===h?i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(h+"]"),l}function Xo(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function uu(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}Kc.peek=function(){return"~"},nu.peek=function(e,t,n){return n.options.emphasis||"*"},ru.peek=function(){return"<"},iu.peek=function(){return"!"},ou.peek=function(){return"!"},su.peek=function(){return"`"},lu.peek=function(e,t,n){return au(e,n)?"<":"["},cu.peek=function(){return"["};const b_=tr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function pu(e,t,n,r){const i=(function(f){const T=f.options.strong||"*";if(T!=="*"&&T!=="_")throw new Error("Cannot serialize strong with `"+T+"` for `options.strong`, expected `*`, or `_`");return T})(n),o=n.enter("strong"),s=n.createTracker(r),a=s.move(i+i);let l=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const c=l.charCodeAt(0),u=oi(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=fr(c)+l.slice(1));const h=l.charCodeAt(l.length-1),p=oi(r.after.charCodeAt(0),h,i);p.inside&&(l=l.slice(0,-1)+fr(h));const m=s.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},a+l+m}pu.peek=function(e,t,n){return n.options.strong||"*"};const hu={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),__);return i(),s},break:eu,code:function(e,t,n,r){const i=(function(h){const p=h.options.fence||"`";if(p!=="`"&&p!=="~")throw new Error("Cannot serialize code with `"+p+"` for `options.fence`, expected `` ` `` or `~`");return p})(n),o=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if((function(h,p){return!!(p.options.fences===!1&&h.value&&!h.lang&&/[^ \r\n]/.test(h.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(h.value))})(e,n)){const h=n.enter("codeIndented"),p=n.indentLines(o,T_);return h(),p}const a=n.createTracker(r),l=i.repeat(Math.max(tu(o,i)+1,3)),c=n.enter("codeFenced");let u=a.move(l);if(e.lang){const h=n.enter(`codeFencedLang${s}`);u+=a.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${s}`);u+=a.move(" "),u+=a.move(n.safe(e.meta,{before:u,after:`
21
+ `,encode:["`"],...a.current()})),h()}return u+=a.move(`
22
+ `),o&&(u+=a.move(o+`
23
+ `)),u+=a.move(l),c(),u},definition:function(e,t,n,r){const i=Qo(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":`
24
+ `,...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),s(),c},emphasis:nu,hardBreak:eu,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if((function(u,h){let p=!1;return qr(u,function(m){if("value"in m&&/\r?\n|\r/.test(m.value)||m.type==="break")return p=!0,ho}),!!((!u.depth||u.depth<3)&&oo(u)&&(h.options.setext||p))})(e,n)){const u=n.enter("headingSetext"),h=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:`
25
+ `,after:`
26
+ `});return h(),u(),p+`
27
+ `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
28
+ `))+1))}const s="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");o.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
29
+ `,...o.current()});return/^[\t ]/.test(c)&&(c=fr(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),l(),a(),c},html:ru,image:iu,imageReference:ou,inlineCode:su,link:lu,linkReference:cu,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?(function(u){const h=u.options.bulletOrdered||".";if(h!=="."&&h!==")")throw new Error("Cannot serialize items with `"+h+"` for `options.bulletOrdered`, expected `.` or `)`");return h})(n):Xo(n);const a=e.ordered?s==="."?")":".":(function(u){const h=Xo(u),p=u.options.bulletOther;if(!p)return h==="*"?"-":"*";if(p!=="*"&&p!=="+"&&p!=="-")throw new Error("Cannot serialize items with `"+p+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(p===h)throw new Error("Expected `bullet` (`"+h+"`) and `bulletOther` (`"+p+"`) to be different");return p})(n);let l=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const u=e.children?e.children[0]:void 0;if(s!=="*"&&s!=="-"||!u||u.children&&u.children[0]||n.stack[n.stack.length-1]!=="list"||n.stack[n.stack.length-2]!=="listItem"||n.stack[n.stack.length-3]!=="list"||n.stack[n.stack.length-4]!=="listItem"||n.indexStack[n.indexStack.length-1]!==0||n.indexStack[n.indexStack.length-2]!==0||n.indexStack[n.indexStack.length-3]!==0||(l=!0),uu(n)===s&&u){let h=-1;for(;++h<e.children.length;){const p=e.children[h];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=a),n.bulletCurrent=s;const c=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),c},listItem:function(e,t,n,r){const i=(function(u){const h=u.options.listItemIndent||"one";if(h!=="tab"&&h!=="one"&&h!=="mixed")throw new Error("Cannot serialize items with `"+h+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return h})(n);let o=n.bulletCurrent||Xo(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),function(u,h,p){return h?(p?"":" ".repeat(s))+u:(p?o:o+" ".repeat(s-o.length))+u});return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s},root:function(e,t,n,r){return(e.children.some(function(o){return b_(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:pu,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(uu(n)+(n.options.ruleSpaces?" ":"")).repeat((function(i){const o=i.options.ruleRepetition||3;if(o<3)throw new Error("Cannot serialize rules with repetition `"+o+"` for `options.ruleRepetition`, expected `3` or more");return o})(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function k_(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function A_(e){this.exit(e),this.data.inTable=void 0}function y_(e){this.enter({type:"tableRow",children:[]},e)}function Ko(e){this.exit(e)}function du(e){this.enter({type:"tableCell",children:[]},e)}function x_(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,C_));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function C_(e,t){return t==="|"?t:e}function I_(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
30
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(c,u,h){let p=hu.inlineCode(c,u,h);return h.stack.includes("tableCell")&&(p=p.replace(/\|/g,"\\$&")),p},table:function(c,u,h,p){return a((function(m,f,T){const g=m.children;let _=-1;const x=[],E=f.enter("table");for(;++_<g.length;)x[_]=l(g[_],f,T);return E(),x})(c,h,p),c.align)},tableCell:s,tableRow:function(c,u,h,p){const m=l(c,h,p),f=a([m]);return f.slice(0,f.indexOf(`
31
+ `))}}};function s(c,u,h,p){const m=h.enter("tableCell"),f=h.enter("phrasing"),T=h.containerPhrasing(c,{...p,before:o,after:o});return f(),m(),T}function a(c,u){return(function(h,p){const m=p||{},f=(m.align||[]).concat(),T=m.stringLength||f_,g=[],_=[],x=[],E=[];let y=0,w=-1;for(;++w<h.length;){const B=[],G=[];let R=-1;for(h[w].length>y&&(y=h[w].length);++R<h[w].length;){const q=g_(h[w][R]);if(m.alignDelimiters!==!1){const W=T(q);G[R]=W,(E[R]===void 0||W>E[R])&&(E[R]=W)}B.push(q)}_[w]=B,x[w]=G}let N=-1;if(typeof f=="object"&&"length"in f)for(;++N<y;)g[N]=Zc(f[N]);else{const B=Zc(f);for(;++N<y;)g[N]=B}N=-1;const O=[],S=[];for(;++N<y;){const B=g[N];let G="",R="";B===99?(G=":",R=":"):B===108?G=":":B===114&&(R=":");let q=m.alignDelimiters===!1?1:Math.max(1,E[N]-G.length-R.length);const W=G+"-".repeat(q)+R;m.alignDelimiters!==!1&&(q=G.length+q+R.length,q>E[N]&&(E[N]=q),S[N]=q),O[N]=W}_.splice(1,0,O),x.splice(1,0,S),w=-1;const M=[];for(;++w<_.length;){const B=_[w],G=x[w];N=-1;const R=[];for(;++N<y;){const q=B[N]||"";let W="",Y="";if(m.alignDelimiters!==!1){const z=E[N]-(G[N]||0),Z=g[N];Z===114?W=" ".repeat(z):Z===99?z%2?(W=" ".repeat(z/2+.5),Y=" ".repeat(z/2-.5)):(W=" ".repeat(z/2),Y=W):Y=" ".repeat(z)}m.delimiterStart===!1||N||R.push("|"),m.padding===!1||m.alignDelimiters===!1&&q===""||m.delimiterStart===!1&&!N||R.push(" "),m.alignDelimiters!==!1&&R.push(W),R.push(q),m.alignDelimiters!==!1&&R.push(Y),m.padding!==!1&&R.push(" "),m.delimiterEnd===!1&&N===y-1||R.push("|")}M.push(m.delimiterEnd===!1?R.join("").replace(/ +$/,""):R.join(""))}return M.join(`
32
+ `)})(c,{align:u,alignDelimiters:r,padding:n,stringLength:i})}function l(c,u,h){const p=c.children;let m=-1;const f=[],T=u.enter("tableRow");for(;++m<p.length;)f[m]=s(p[m],0,u,h);return T(),f}}function mu(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function S_(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o,s=-1;for(;++s<i.length;){const a=i[s];if(a.type==="paragraph"){o=a;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function D_(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(s);let l=hu.listItem(e,t,n,{...r,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(c){return c+s})),l}const N_={tokenize:function(e,t,n){let r=0;return function o(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),o):s===46&&r===3?(e.consume(s),i):n(s)};function i(o){return o===null?n(o):t(o)}},partial:!0},fu={tokenize:function(e,t,n){let r,i,o;return s;function s(c){return c===46||c===95?e.check(_u,l,a)(c):c===null||me(c)||Qt(c)||c!==45&&Hr(c)?l(c):(o=!0,e.consume(c),s)}function a(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),s}function l(c){return i||r||!o?n(c):t(c)}},partial:!0},gu={tokenize:function(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(_u,t,o)(s):s===null||me(s)||Qt(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&r++,e.consume(s),i}},partial:!0},_u={tokenize:function(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||me(a)||Qt(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||me(a)||Qt(a)?t(a):r(a)}function o(a){return ze(a)?s(a):n(a)}function s(a){return a===59?(e.consume(a),r):ze(a)?(e.consume(a),s):n(a)}},partial:!0},w_={tokenize:function(e,t,n){return function(i){return e.consume(i),r};function r(i){return Ge(i)?n(i):t(i)}},partial:!0},Eu={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(o){return o!==87&&o!==119||!bu.call(r,r.previous)||Jo(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(N_,e.attempt(fu,e.attempt(gu,i),n),n)(o))};function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}},previous:bu},Tu={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let i="",o=!1;return function(u){return(u===72||u===104)&&ku.call(r,r.previous)&&!Jo(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(u),e.consume(u),s):n(u)};function s(u){if(ze(u)&&i.length<5)return i+=String.fromCodePoint(u),e.consume(u),s;if(u===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(u),a}return n(u)}function a(u){return u===47?(e.consume(u),o?l:(o=!0,a)):n(u)}function l(u){return u===null||Ur(u)||me(u)||Qt(u)||Hr(u)?n(u):e.attempt(fu,e.attempt(gu,c),n)(u)}function c(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(u)}},previous:ku},At={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let i,o;return function(u){return!Zo(u)||!Au.call(r,r.previous)||Jo(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(u))};function s(u){return Zo(u)?(e.consume(u),s):u===64?(e.consume(u),a):n(u)}function a(u){return u===46?e.check(w_,c,l)(u):u===45||u===95||Ge(u)?(o=!0,e.consume(u),a):c(u)}function l(u){return e.consume(u),i=!0,a}function c(u){return o&&i&&ze(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(u)):n(u)}},previous:Au},gt={};let en=48;for(;en<123;)gt[en]=At,en++,en===58?en=65:en===91&&(en=97);function bu(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||me(e)}function ku(e){return!ze(e)}function Au(e){return!(e===47||Zo(e))}function Zo(e){return e===43||e===45||e===46||e===95||Ge(e)}function Jo(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}gt[43]=At,gt[45]=At,gt[46]=At,gt[95]=At,gt[72]=[At,Tu],gt[104]=[At,Tu],gt[87]=[At,Eu],gt[119]=[At,Eu];const L_={tokenize:function(e,t,n){const r=this;return ae(e,function(i){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(i):n(i)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function O_(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){s=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return function(a){if(!s||!s._balanced)return n(a);const l=at(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!o.includes(l.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function R_(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function v_(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0;return function(u){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),a};function a(u){return u!==94?n(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(u){if(s>999||u===93&&!o||u===null||u===91||me(u))return n(u);if(u===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(at(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(u)}return me(u)||(o=!0),s++,e.consume(u),u===92?c:l}function c(u){return u===91||u===92||u===93?(e.consume(u),s++,l):l(u)}}function P_(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s,a=0;return function(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(m)}function c(m){if(a>999||m===93&&!s||m===null||m===91||me(m))return n(m);if(m===93){e.exit("chunkString");const f=e.exit("gfmFootnoteDefinitionLabelString");return o=at(r.sliceSerialize(f)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return me(m)||(s=!0),a++,e.consume(m),m===92?u:c}function u(m){return m===91||m===92||m===93?(e.consume(m),a++,c):c(m)}function h(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),ae(e,p,"gfmFootnoteDefinitionWhitespace")):n(m)}function p(m){return t(m)}}function M_(e,t,n){return e.check(Xn,t,e.attempt(L_,t,n))}function B_(e){e.exit("gfmFootnoteDefinition")}function F_(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(r,i,o){const s=this.previous,a=this.events;let l=0;return function(u){return s===126&&a[a.length-1][1].type!=="characterEscape"?o(u):(r.enter("strikethroughSequenceTemporary"),c(u))};function c(u){const h=_n(s);if(u===126)return l>1?o(u):(r.consume(u),l++,c);if(l<2&&!t)return o(u);const p=r.exit("strikethroughSequenceTemporary"),m=_n(u);return p._open=!m||m===2&&!!h,p._close=!h||h===2&&!!m,i(u)}},resolveAll:function(r,i){let o=-1;for(;++o<r.length;)if(r[o][0]==="enter"&&r[o][1].type==="strikethroughSequenceTemporary"&&r[o][1]._close){let s=o;for(;s--;)if(r[s][0]==="exit"&&r[s][1].type==="strikethroughSequenceTemporary"&&r[s][1]._open&&r[o][1].end.offset-r[o][1].start.offset===r[s][1].end.offset-r[s][1].start.offset){r[o][1].type="strikethroughSequence",r[s][1].type="strikethroughSequence";const a={type:"strikethrough",start:Object.assign({},r[s][1].start),end:Object.assign({},r[o][1].end)},l={type:"strikethroughText",start:Object.assign({},r[s][1].end),end:Object.assign({},r[o][1].start)},c=[["enter",a,i],["enter",r[s][1],i],["exit",r[s][1],i],["enter",l,i]],u=i.parser.constructs.insideSpan.null;u&&Ke(c,c.length,0,Gr(u,r.slice(s+1,o),i)),Ke(c,c.length,0,[["exit",l,i],["enter",r[o][1],i],["exit",r[o][1],i],["exit",a,i]]),Ke(r,s-1,o-s+3,c),o=s+c.length-2;break}}for(o=-1;++o<r.length;)r[o][1].type==="strikethroughSequenceTemporary"&&(r[o][1].type="data");return r}};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class U_{constructor(){this.map=[]}add(t,n,r){(function(i,o,s,a){let l=0;if(!(s===0&&a.length===0)){for(;l<i.map.length;){if(i.map[l][0]===o)return i.map[l][1]+=s,void i.map[l][2].push(...a);l+=1}i.map.push([o,s,a])}})(this,t,n,r)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function H_(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function G_(e,t,n){const r=this;let i,o=0,s=0;return function(S){let M=r.events.length-1;for(;M>-1;){const R=r.events[M][1].type;if(R!=="lineEnding"&&R!=="linePrefix")break;M--}const B=M>-1?r.events[M][1].type:null,G=B==="tableHead"||B==="tableRow"?y:a;return G===y&&r.parser.lazy[r.now().line]?n(S):G(S)};function a(S){return e.enter("tableHead"),e.enter("tableRow"),(function(M){return M===124||(i=!0,s+=1),l(M)})(S)}function l(S){return S===null?n(S):ee(S)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),h):n(S):ce(S)?ae(e,l,"whitespace")(S):(s+=1,i&&(i=!1,o+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(S)))}function c(S){return S===null||S===124||me(S)?(e.exit("data"),l(S)):(e.consume(S),S===92?u:c)}function u(S){return S===92||S===124?(e.consume(S),c):c(S)}function h(S){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(S):(e.enter("tableDelimiterRow"),i=!1,ce(S)?ae(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):p(S))}function p(S){return S===45||S===58?f(S):S===124?(i=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),m):E(S)}function m(S){return ce(S)?ae(e,f,"whitespace")(S):f(S)}function f(S){return S===58?(s+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),T):S===45?(s+=1,T(S)):S===null||ee(S)?x(S):E(S)}function T(S){return S===45?(e.enter("tableDelimiterFiller"),g(S)):E(S)}function g(S){return S===45?(e.consume(S),g):S===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(S))}function _(S){return ce(S)?ae(e,x,"whitespace")(S):x(S)}function x(S){return S===124?p(S):(S===null||ee(S))&&i&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(S)):E(S)}function E(S){return n(S)}function y(S){return e.enter("tableRow"),w(S)}function w(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),w):S===null||ee(S)?(e.exit("tableRow"),t(S)):ce(S)?ae(e,w,"whitespace")(S):(e.enter("data"),N(S))}function N(S){return S===null||S===124||me(S)?(e.exit("data"),w(S)):(e.consume(S),S===92?O:N)}function O(S){return S===92||S===124?(e.consume(S),N):N(S)}}function $_(e,t){let n,r,i,o=-1,s=!0,a=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0;const p=new U_;for(;++o<e.length;){const m=e[o],f=m[1];m[0]==="enter"?f.type==="tableHead"?(u=!1,h!==0&&(yu(p,t,h,n,r),r=void 0,h=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",n,t]])):f.type==="tableRow"||f.type==="tableDelimiterRow"?(s=!0,i=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",r,t]])),a=f.type==="tableDelimiterRow"?2:r?3:1):!a||f.type!=="data"&&f.type!=="tableDelimiterMarker"&&f.type!=="tableDelimiterFiller"?f.type==="tableCellDivider"&&(s?s=!1:(l[1]!==0&&(c[0]=c[1],i=si(p,t,l,a,void 0,i)),l=c,c=[l[1],o,0,0])):(s=!1,c[2]===0&&(l[1]!==0&&(c[0]=c[1],i=si(p,t,l,a,void 0,i),l=[0,0,0,0]),c[2]=o)):f.type==="tableHead"?(u=!0,h=o):f.type==="tableRow"||f.type==="tableDelimiterRow"?(h=o,l[1]!==0?(c[0]=c[1],i=si(p,t,l,a,o,i)):c[1]!==0&&(i=si(p,t,c,a,o,i)),a=0):!a||f.type!=="data"&&f.type!=="tableDelimiterMarker"&&f.type!=="tableDelimiterFiller"||(c[3]=o)}for(h!==0&&yu(p,t,h,n,r),p.consume(t.events),o=-1;++o<t.events.length;){const m=t.events[o];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=H_(t.events,o))}return e}function si(e,t,n,r,i,o){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData";n[0]!==0&&(o.end=Object.assign({},Sn(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=Sn(t.events,n[1]);if(o={type:s,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const l=Sn(t.events,n[2]),c=Sn(t.events,n[3]),u={type:"tableContent",start:Object.assign({},l),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",u,t]]),r!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,f=n[3]-n[2]-1;e.add(m,f,[])}}e.add(n[3]+1,0,[["exit",u,t]])}return i!==void 0&&(o.end=Object.assign({},Sn(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function yu(e,t,n,r,i){const o=[],s=Sn(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function Sn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const V_={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),i)};function i(a){return me(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),o):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),o):n(a)}function o(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(a)}function s(a){return ee(a)?t(a):ce(a)?e.check({tokenize:j_},t,n)(a):n(a)}}};function j_(e,t,n){return ae(e,function(r){return r===null?n(r):t(r)},"whitespace")}const z_={};function q_(e){const t=e||z_,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push((function(s){return Ma([{text:gt},{document:{91:{name:"gfmFootnoteDefinition",tokenize:P_,continuation:{tokenize:M_},exit:B_}},text:{91:{name:"gfmFootnoteCall",tokenize:v_},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:O_,resolveTo:R_}}},F_(s),{flow:{null:{name:"table",tokenize:G_,resolveAll:$_}}},{text:{91:V_}}])})(t)),i.push([{transforms:[Jg],enter:{literalAutolink:Yg,literalAutolinkEmail:Yo,literalAutolinkHttp:Yo,literalAutolinkWww:Yo},exit:{literalAutolink:Zg,literalAutolinkEmail:Kg,literalAutolinkHttp:Qg,literalAutolinkWww:Xg}},{enter:{gfmFootnoteCallString:n_,gfmFootnoteCall:r_,gfmFootnoteDefinitionLabelString:i_,gfmFootnoteDefinition:o_},exit:{gfmFootnoteCallString:s_,gfmFootnoteCall:a_,gfmFootnoteDefinitionLabelString:l_,gfmFootnoteDefinition:c_}},{canContainEols:["delete"],enter:{strikethrough:d_},exit:{strikethrough:m_}},{enter:{table:k_,tableData:du,tableHeader:du,tableRow:y_},exit:{codeText:x_,table:A_,tableData:Ko,tableHeader:Ko,tableRow:Ko}},{exit:{taskListCheckValueChecked:mu,taskListCheckValueUnchecked:mu,paragraph:S_}}]),o.push((function(s){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:qo,notInConstruct:Wo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:qo,notInConstruct:Wo},{character:":",before:"[ps]",after:"\\/",inConstruct:qo,notInConstruct:Wo}]},u_(s),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:h_}],handlers:{delete:Kc}},I_(s),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:D_}}]}})(t))}const W_={tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let s=0;return function(_){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),a(_)};function a(_){return _===36?(e.consume(_),s++,a):s<2?n(_):(e.exit("mathFlowFenceSequence"),ae(e,l,"whitespace")(_))}function l(_){return _===null||ee(_)?u(_):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(_))}function c(_){return _===null||ee(_)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),u(_)):_===36?n(_):(e.consume(_),c)}function u(_){return e.exit("mathFlowFence"),r.interrupt?t(_):e.attempt(xu,h,T)(_)}function h(_){return e.attempt({tokenize:g,partial:!0},T,p)(_)}function p(_){return(o?ae(e,m,"linePrefix",o+1):m)(_)}function m(_){return _===null?T(_):ee(_)?e.attempt(xu,h,T)(_):(e.enter("mathFlowValue"),f(_))}function f(_){return _===null||ee(_)?(e.exit("mathFlowValue"),m(_)):(e.consume(_),f)}function T(_){return e.exit("mathFlow"),t(_)}function g(_,x,E){let y=0;return ae(_,function(O){return _.enter("mathFlowFence"),_.enter("mathFlowFenceSequence"),w(O)},"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function w(O){return O===36?(y++,_.consume(O),w):y<s?E(O):(_.exit("mathFlowFenceSequence"),ae(_,N,"whitespace")(O))}function N(O){return O===null||ee(O)?(_.exit("mathFlowFence"),x(O)):E(O)}}},concrete:!0,name:"mathFlow"},xu={tokenize:function(e,t,n){const r=this;return function(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)};function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}},partial:!0};function Y_(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),{tokenize:function(n,r,i){let o,s,a=0;return function(p){return n.enter("mathText"),n.enter("mathTextSequence"),l(p)};function l(p){return p===36?(n.consume(p),a++,l):a<2&&!t?i(p):(n.exit("mathTextSequence"),c(p))}function c(p){return p===null?i(p):p===36?(s=n.enter("mathTextSequence"),o=0,h(p)):p===32?(n.enter("space"),n.consume(p),n.exit("space"),c):ee(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),c):(n.enter("mathTextData"),u(p))}function u(p){return p===null||p===32||p===36||ee(p)?(n.exit("mathTextData"),c(p)):(n.consume(p),u)}function h(p){return p===36?(n.consume(p),o++,h):o===a?(n.exit("mathTextSequence"),n.exit("mathText"),r(p)):(s.type="mathTextData",u(p))}},resolve:Q_,previous:X_,name:"mathText"}}function Q_(e){let t,n,r=e.length-4,i=3;if(!(e[i][1].type!=="lineEnding"&&e[i][1].type!=="space"||e[r][1].type!=="lineEnding"&&e[r][1].type!=="space")){for(t=i;++t<r;)if(e[t][1].type==="mathTextData"){e[r][1].type="mathTextPadding",e[i][1].type="mathTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)n===void 0?t!==r&&e[t][1].type!=="lineEnding"&&(n=t):t!==r&&e[t][1].type!=="lineEnding"||(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e}function X_(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}const K_={};function Z_(e){const t=e||K_,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push((function(s){return{flow:{36:W_},text:{36:Y_(s)}}})(t)),i.push((function(){return{enter:{mathFlow:function(a){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},a)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(a){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},a),this.buffer()}},exit:{mathFlow:function(a){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(a),c.value=l;const u=c.data.hChildren[0];u.type,u.tagName,u.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){const a=this.resume(),l=this.stack[this.stack.length-1];l.type,l.meta=a},mathFlowValue:s,mathText:function(a){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(a),c.value=l,c.data.hChildren.push({type:"text",value:l})},mathTextData:s}};function s(a){this.config.enter.data.call(this,a),this.config.exit.data.call(this,a)}})()),o.push((function(s){let a=(s||{}).singleDollarTextMath;return a==null&&(a=!0),l.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
33
+ `,inConstruct:"mathFlowMeta"},{character:"$",after:a?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(c,u,h,p){const m=c.value||"",f=h.createTracker(p),T="$".repeat(Math.max(tu(m,"$")+1,2)),g=h.enter("mathFlow");let _=f.move(T);if(c.meta){const x=h.enter("mathFlowMeta");_+=f.move(h.safe(c.meta,{after:`
34
+ `,before:_,encode:["$"],...f.current()})),x()}return _+=f.move(`
35
+ `),m&&(_+=f.move(m+`
36
+ `)),_+=f.move(T),g(),_},inlineMath:l}};function l(c,u,h){let p=c.value||"",m=1;for(a||m++;new RegExp("(^|[^$])"+"\\$".repeat(m)+"([^$]|$)").test(p);)m++;const f="$".repeat(m);/[^ \r\n]/.test(p)&&(/^[ \r\n]/.test(p)&&/[ \r\n]$/.test(p)||/^\$|\$$/.test(p))&&(p=" "+p+" ");let T=-1;for(;++T<h.unsafe.length;){const g=h.unsafe[T];if(!g.atBreak)continue;const _=h.compilePattern(g);let x;for(;x=_.exec(p);){let E=x.index;p.codePointAt(E)===10&&p.codePointAt(E-1)===13&&E--,p=p.slice(0,E)+" "+p.slice(x.index+1)}}return f+p+f}})(t))}var Cu,Ut={},J_=(function(){if(Cu)return Ut;Cu=1;var e=Ut&&Ut.__assign||function(){return e=Object.assign||function(i){for(var o,s=1,a=arguments.length;s<a;s++)for(var l in o=arguments[s])Object.prototype.hasOwnProperty.call(o,l)&&(i[l]=o[l]);return i},e.apply(this,arguments)},t=Ut&&Ut.__rest||function(i,o){var s={};for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&o.indexOf(a)<0&&(s[a]=i[a]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function"){var l=0;for(a=Object.getOwnPropertySymbols(i);l<a.length;l++)o.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(i,a[l])&&(s[a[l]]=i[a[l]])}return s};Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.default=function(i){return function(o){var s=o.defaultOrigin,a=s===void 0?"":s,l=o.allowedLinkPrefixes,c=l===void 0?[]:l,u=o.allowedImagePrefixes,h=u===void 0?[]:u,p=o.components,m=t(o,["defaultOrigin","allowedLinkPrefixes","allowedImagePrefixes","components"]),f=c.length&&!c.every(function(N){return N==="*"}),T=h.length&&!h.every(function(N){return N==="*"});if(!a&&(f||T))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");var g=function(N){if(typeof N!="string")return null;try{return new URL(N)}catch{if(a)try{return new URL(N,a)}catch{return null}return null}},_=function(N){return typeof N=="string"&&N.startsWith("/")},x=function(N,O){if(!N||!g(N))return null;if(O.includes("*")){var S=_(N),M=g(N);return M?S?M.pathname+M.search+M.hash:M.href:null}var B=_(N),G=g(N);return G&&O.some(function(R){var q=g(R);return!!q&&q.origin===G.origin&&G.href.startsWith(q.href)})?B?G.pathname+G.search+G.hash:G.href:null},E={a:function(N){var O=N.href,S=N.children,M=N.node,B=t(N,["href","children","node"]),G=x(O,c);return G!==null?p!=null&&p.a?(0,r.createElement)(p.a,e({href:G,children:S,node:M,target:"_blank",rel:"noopener noreferrer"},B)):(0,n.jsx)("a",e({href:G},B,{target:"_blank",rel:"noopener noreferrer",children:S})):(0,n.jsxs)("span",{className:"text-gray-500",title:"Blocked URL: ".concat(O),children:[S," [blocked]"]})},img:function(N){var O=N.src,S=N.alt,M=N.node,B=t(N,["src","alt","node"]),G=x(O,h);return G!==null?p!=null&&p.img?(0,r.createElement)(p.img,e({src:G,alt:S,node:M},B)):(0,n.jsx)("img",e({src:G,alt:S},B)):(0,n.jsxs)("span",{className:"inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",children:["[Image blocked: ",S||"No description","]"]})}},y=e(e({},p),E),w=e(e({},m),{components:y});return(0,r.createElement)(i,w)}};var n=lA(),r=cA();return Ut})();const Iu=sa(J_);let Ne=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function es(e){return Array.isArray(e)?(function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=es(t[r]);return n})(e):e instanceof RegExp?e:typeof e=="object"?(function(t){let n={};for(let r in t)n[r]=es(t[r]);return n})(e):e}function Su(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Du(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Du(e.substring(0,e.length-1)):e.substr(1+~t)}var ts=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ai=class{static hasCaptures(e){return e!==null&&(ts.lastIndex=0,ts.test(e))}static replaceCaptures(e,t,n){return e.replace(ts,(r,i,o,s)=>{let a=n[parseInt(i||o,10)];if(!a)return r;{let l=t.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(s){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}})}};function Nu(e,t){return e<t?-1:e>t?1:0}function wu(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 i=0;i<n;i++){let o=Nu(e[i],t[i]);if(o!==0)return o}return 0}return n-r}function Lu(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 Ou(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Ru=class{constructor(e){v(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},li=class{constructor(e,t,n){v(this,"_cachedMatchRoot",new Ru(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme((function(n){if(!n)return[];if(!n.settings||!Array.isArray(n.settings))return[];let r=n.settings,i=[],o=0;for(let s=0,a=r.length;s<a;s++){let l,c=r[s];if(!c.settings)continue;if(typeof c.scope=="string"){let m=c.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),l=m.split(",")}else l=Array.isArray(c.scope)?c.scope:[""];let u=-1;if(typeof c.settings.fontStyle=="string"){u=0;let m=c.settings.fontStyle.split(" ");for(let f=0,T=m.length;f<T;f++)switch(m[f]){case"italic":u|=1;break;case"bold":u|=2;break;case"underline":u|=4;break;case"strikethrough":u|=8}}let h=null;typeof c.settings.foreground=="string"&&Lu(c.settings.foreground)&&(h=c.settings.foreground);let p=null;typeof c.settings.background=="string"&&Lu(c.settings.background)&&(p=c.settings.background);for(let m=0,f=l.length;m<f;m++){let T=l[m].trim().split(" "),g=T[T.length-1],_=null;T.length>1&&(_=T.slice(0,T.length-1),_.reverse()),i[o++]=new tE(g,_,s,u,h,p)}}return i})(e),t)}static createFromParsedTheme(e,t){return(function(n,r){n.sort((u,h)=>{let p=Nu(u.scope,h.scope);return p!==0?p:(p=wu(u.parentScopes,h.parentScopes),p!==0?p:u.index-h.index)});let i=0,o="#000000",s="#ffffff";for(;n.length>=1&&n[0].scope==="";){let u=n.shift();u.fontStyle!==-1&&(i=u.fontStyle),u.foreground!==null&&(o=u.foreground),u.background!==null&&(s=u.background)}let a=new nE(r),l=new vu(i,a.getId(o),a.getId(s)),c=new iE(new rs(0,null,-1,0,0),[]);for(let u=0,h=n.length;u<h;u++){let p=n[u];c.insert(0,p.scope,p.parentScopes,p.fontStyle,a.getId(p.foreground),a.getId(p.background))}return new li(a,l,c)})(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find(r=>(function(i,o){if(o.length===0)return!0;for(let s=0;s<o.length;s++){let a=o[s],l=!1;if(a===">"){if(s===o.length-1)return!1;a=o[++s],l=!0}for(;i&&!eE(i.scopeName,a);){if(l)return!1;i=i.parent}if(!i)return!1;i=i.parent}return!0})(e.parent,r.parentScopes));return n?new vu(n.fontStyle,n.foreground,n.background):null}},ns=class Yi{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Yi(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Yi(n,t[r]);return n}push(t){return new Yi(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t||this.parent!==null&&this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function eE(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var vu=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},tE=class{constructor(e,t,n,r,i,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=o}},Ve=(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))(Ve||{}),nE=class{constructor(e){v(this,"_isFrozen");v(this,"_lastColorId");v(this,"_id2color");v(this,"_color2id");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 new 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)}},rE=Object.freeze([]),rs=class Ud{constructor(t,n,r,i,o){v(this,"scopeDepth");v(this,"parentScopes");v(this,"fontStyle");v(this,"foreground");v(this,"background");this.scopeDepth=t,this.parentScopes=n||rE,this.fontStyle=r,this.foreground=i,this.background=o}clone(){return new Ud(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},iE=class ca{constructor(t,n=[],r={}){v(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,i=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[i]===">"&&i++,!(r>=t.parentScopes.length||i>=n.parentScopes.length);){const o=n.parentScopes[i].length-t.parentScopes[r].length;if(o!==0)return o;r++,i++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r,i,o=t.indexOf(".");if(o===-1?(r=t,i=""):(r=t.substring(0,o),i=t.substring(o+1)),this._children.hasOwnProperty(r))return this._children[r].match(i)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(ca._cmpBySpecificity),n}insert(t,n,r,i,o,s){if(n==="")return void this._doInsertHere(t,r,i,o,s);let a,l,c,u=n.indexOf(".");u===-1?(a=n,l=""):(a=n.substring(0,u),l=n.substring(u+1)),this._children.hasOwnProperty(a)?c=this._children[a]:(c=new ca(this._mainRule.clone(),rs.cloneArr(this._rulesWithParentScopes)),this._children[a]=c),c.insert(t+1,l,r,i,o,s)}_doInsertHere(t,n,r,i,o){if(n!==null){for(let s=0,a=this._rulesWithParentScopes.length;s<a;s++){let l=this._rulesWithParentScopes[s];if(wu(l.parentScopes,n)===0)return void l.acceptOverwrite(t,r,i,o)}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new rs(t,n,r,i,o))}else this._mainRule.acceptOverwrite(t,r,i,o)}},Dn=class st{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=st.getLanguageId(t),r=st.getTokenType(t),i=st.getFontStyle(t),o=st.getForeground(t),s=st.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:o,background:s})}static getLanguageId(t){return(255&t)>>>0}static getTokenType(t){return(768&t)>>>8}static containsBalancedBrackets(t){return!!(1024&t)}static getFontStyle(t){return(30720&t)>>>11}static getForeground(t){return(16744448&t)>>>15}static getBackground(t){return(4278190080&t)>>>24}static set(t,n,r,i,o,s,a){let l=st.getLanguageId(t),c=st.getTokenType(t),u=st.containsBalancedBrackets(t)?1:0,h=st.getFontStyle(t),p=st.getForeground(t),m=st.getBackground(t);return n!==0&&(l=n),r!==8&&(c=r),i!==null&&(u=i?1:0),o!==-1&&(h=o),s!==0&&(p=s),a!==0&&(m=a),(l|c<<8|u<<10|h<<11|p<<15|m<<24)>>>0}};function SA(e){return e}function ci(e,t){const n=[],r=(function(a){let l=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,c=l.exec(a);return{next:()=>{if(!c)return null;const u=c[0];return c=l.exec(a),u}}})(e);let i=r.next();for(;i!==null;){let a=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let l=s();if(n.push({matcher:l,priority:a}),i!==",")break;i=r.next()}return n;function o(){if(i==="-"){i=r.next();const a=o();return l=>!!a&&!a(l)}if(i==="("){i=r.next();const a=(function(){const l=[];let c=s();for(;c&&(l.push(c),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");c=s()}return u=>l.some(h=>h(u))})();return i===")"&&(i=r.next()),a}if(Pu(i)){const a=[];do a.push(i),i=r.next();while(Pu(i));return l=>t(a,l)}return null}function s(){const a=[];let l=o();for(;l;)a.push(l),l=o();return c=>a.every(u=>u(c))}}function Pu(e){return!!e&&!!e.match(/[\w\.:]+/)}function Mu(e){typeof e.dispose=="function"&&e.dispose()}var gr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},oE=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},sE=class{constructor(){v(this,"_references",[]);v(this,"_seenReferenceKeys",new Set);v(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},aE=class{constructor(e,t){v(this,"seenFullScopeRequests",new Set);v(this,"seenPartialScopeRequests",new Set);v(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new gr(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new sE;for(const n of e)lE(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof gr){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function lE(e,t,n,r){const i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof gr?ui({baseGrammar:o,selfGrammar:i},r):is(e.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},r);const s=n.injections(e.scopeName);if(s)for(const a of s)r.add(new gr(a))}function is(e,t,n){t.repository&&t.repository[e]&&pi([t.repository[e]],t,n)}function ui(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&pi(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&pi(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function pi(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const i=r.repository?Su({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&pi(r.patterns,{...t,repository:i},n);const o=r.include;if(!o)continue;const s=Bu(o);switch(s.kind){case 0:ui({...t,selfGrammar:t.baseGrammar},n);break;case 1:ui(t,n);break;case 2:is(s.ruleName,{...t,repository:i},n);break;case 3:case 4:const a=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const l={baseGrammar:t.baseGrammar,selfGrammar:a,repository:i};s.kind===4?is(s.ruleName,l,n):ui(l,n)}else s.kind===4?n.add(new oE(s.scopeName,s.ruleName)):n.add(new gr(s.scopeName))}}}var cE=class{constructor(){v(this,"kind",0)}},uE=class{constructor(){v(this,"kind",1)}},pE=class{constructor(e){v(this,"kind",2);this.ruleName=e}},hE=class{constructor(e){v(this,"kind",3);this.scopeName=e}},dE=class{constructor(e,t){v(this,"kind",4);this.scopeName=e,this.ruleName=t}};function Bu(e){if(e==="$base")return new cE;if(e==="$self")return new uE;const t=e.indexOf("#");if(t===-1)return new hE(e);if(t===0)return new pE(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new dE(n,r)}}var mE=/\\(\d+)/,Fu=/\\(\d+)/g,_r=class{constructor(e,t,n,r){v(this,"$location");v(this,"id");v(this,"_nameIsCapturing");v(this,"_name");v(this,"_contentNameIsCapturing");v(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=ai.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ai.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Du(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?ai.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&this._contentName!==null?ai.replaceCaptures(this._contentName,e,t):this._contentName}},fE=class extends _r{constructor(t,n,r,i,o){super(t,n,r,i);v(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,i){throw new Error("Not supported!")}},gE=class extends _r{constructor(t,n,r,i,o){super(t,n,r,null);v(this,"_match");v(this,"captures");v(this,"_cachedCompiledPatterns");this._match=new Er(i,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t).compileAG(t,r,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Tr,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Uu=class extends _r{constructor(t,n,r,i,o){super(t,n,r,i);v(this,"hasMissingPatterns");v(this,"patterns");v(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t).compileAG(t,r,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Tr,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},os=class extends _r{constructor(t,n,r,i,o,s,a,l,c,u){super(t,n,r,i);v(this,"_begin");v(this,"beginCaptures");v(this,"_end");v(this,"endHasBackReferences");v(this,"endCaptures");v(this,"applyEndPatternLast");v(this,"hasMissingPatterns");v(this,"patterns");v(this,"_cachedCompiledPatterns");this._begin=new Er(o,this.id),this.beginCaptures=s,this._end=new Er(a||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=c||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,i)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Tr;for(const r of this.patterns)t.getRule(r).collectPatterns(t,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,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},hi=class extends _r{constructor(t,n,r,i,o,s,a,l,c){super(t,n,r,i);v(this,"_begin");v(this,"beginCaptures");v(this,"whileCaptures");v(this,"_while");v(this,"whileHasBackReferences");v(this,"hasMissingPatterns");v(this,"patterns");v(this,"_cachedCompiledPatterns");v(this,"_cachedCompiledWhilePatterns");this._begin=new Er(o,this.id),this.beginCaptures=s,this.whileCaptures=l,this._while=new Er(a,-2),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(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t).compileAG(t,r,i)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Tr;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,i){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,i)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Tr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"\uFFFF"),this._cachedCompiledWhilePatterns}},Hu=class je{static createCaptureRule(t,n,r,i,o){return t.registerRule(s=>new fE(n,s,r,i,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new gE(t.$vscodeTextmateLocation,t.id,t.name,t.match,je._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=Su({},r,t.repository));let o=t.patterns;return o===void 0&&t.include&&(o=[{include:t.include}]),new Uu(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,je._compilePatterns(o,n,r))}return t.while?new hi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,je._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,je._compileCaptures(t.whileCaptures||t.captures,n,r),je._compilePatterns(t.patterns,n,r)):new os(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,je._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,je._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,je._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let o=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);a>o&&(o=a)}for(let s=0;s<=o;s++)i[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);let l=0;t[s].patterns&&(l=je.getCompiledRuleId(t[s],n,r)),i[a]=je.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,l)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let o=0,s=t.length;o<s;o++){const a=t[o];let l=-1;if(a.include){const c=Bu(a.include);switch(c.kind){case 0:case 1:l=je.getCompiledRuleId(r[a.include],n,r);break;case 2:let u=r[c.ruleName];u&&(l=je.getCompiledRuleId(u,n,r));break;case 3:case 4:const h=c.scopeName,p=c.kind===4?c.ruleName:null,m=n.getExternalGrammar(h,r);if(m)if(p){let f=m.repository[p];f&&(l=je.getCompiledRuleId(f,n,m.repository))}else l=je.getCompiledRuleId(m.repository.$self,n,m.repository)}}else l=je.getCompiledRuleId(a,n,r);if(l!==-1){const c=n.getRule(l);let u=!1;if((c instanceof Uu||c instanceof os||c instanceof hi)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;i.push(l)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Er=class Hd{constructor(t,n){v(this,"source");v(this,"ruleId");v(this,"hasAnchor");v(this,"hasBackReferences");v(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let i=0,o=[],s=!1;for(let a=0;a<r;a++)if(t.charAt(a)==="\\"&&a+1<r){const l=t.charAt(a+1);l==="z"?(o.push(t.substring(i,a)),o.push("$(?!\\n)(?<!\\n)"),i=a+2):l!=="A"&&l!=="G"||(s=!0),a++}this.hasAnchor=s,i===0?this.source=t:(o.push(t.substring(i,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=mE.test(this.source):this.hasBackReferences=!1}clone(){return new Hd(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(i=>t.substring(i.start,i.end));return Fu.lastIndex=0,this.source.replace(Fu,(i,o)=>Ou(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t,n,r,i,o=[],s=[],a=[],l=[];for(t=0,n=this.source.length;t<n;t++)r=this.source.charAt(t),o[t]=r,s[t]=r,a[t]=r,l[t]=r,r==="\\"&&t+1<n&&(i=this.source.charAt(t+1),i==="A"?(o[t+1]="\uFFFF",s[t+1]="\uFFFF",a[t+1]="A",l[t+1]="A"):i==="G"?(o[t+1]="\uFFFF",s[t+1]="G",a[t+1]="\uFFFF",l[t+1]="G"):(o[t+1]=i,s[t+1]=i,a[t+1]=i,l[t+1]=i),t++);return{A0_G0:o.join(""),A0_G1:s.join(""),A1_G0:a.join(""),A1_G1:l.join("")}}resolveAnchors(t,n){return this.hasAnchor&&this._anchorCache&&typeof this.source=="string"?t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}},Tr=class{constructor(){v(this,"_items");v(this,"_hasAnchors");v(this,"_cached");v(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(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){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Gu(e,t,this._items.map(n=>n.ruleId))}return 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){let r=this._items.map(i=>i.resolveAnchors(t,n));return new Gu(e,r,this._items.map(i=>i.ruleId))}},Gu=class{constructor(e,t,n){v(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
37
+ `)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},ss=class{constructor(e,t){this.languageId=e,this.tokenType=t}},_E=(Nt=class{constructor(t,n){v(this,"_defaultAttributes");v(this,"_embeddedLanguagesMatcher");v(this,"_getBasicScopeAttributes",new Ru(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new ss(n,r)}));this._defaultAttributes=new ss(t,8),this._embeddedLanguagesMatcher=new EE(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Nt._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Nt.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 new Error("Unexpected match for standard token type!")}},v(Nt,"_NULL_SCOPE_METADATA",new ss(0,0)),v(Nt,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Nt),EE=class{constructor(e){v(this,"values");v(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>Ou(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}},$u=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Vu(e,t,n,r,i,o,s,a){const l=t.content.length;let c=!1,u=-1;if(s){const m=(function(f,T,g,_,x,E){let y=x.beginRuleCapturedEOL?0:-1;const w=[];for(let N=x;N;N=N.pop()){const O=N.getRule(f);O instanceof hi&&w.push({rule:O,stack:N})}for(let N=w.pop();N;N=w.pop()){const{ruleScanner:O,findOptions:S}=TE(N.rule,f,N.stack.endRule,g,_===y),M=O.findNextMatchSync(T,_,S);if(!M){x=N.stack.pop();break}if(M.ruleId!==-2){x=N.stack.pop();break}M.captureIndices&&M.captureIndices.length&&(E.produce(N.stack,M.captureIndices[0].start),br(f,T,g,N.stack,E,N.rule.whileCaptures,M.captureIndices),E.produce(N.stack,M.captureIndices[0].end),y=M.captureIndices[0].end,M.captureIndices[0].end>_&&(_=M.captureIndices[0].end,g=!1))}return{stack:x,linePos:_,anchorPosition:y,isFirstLine:g}})(e,t,n,r,i,o);i=m.stack,r=m.linePos,n=m.isFirstLine,u=m.anchorPosition}const h=Date.now();for(;!c;){if(a!==0&&Date.now()-h>a)return new $u(i,!0);p()}return new $u(i,!1);function p(){const m=(function(_,x,E,y,w,N){const O=(function(R,q,W,Y,z,Z){const J=z.getRule(R),{ruleScanner:I,findOptions:pe}=ju(J,R,z.endRule,W,Y===Z),D=I.findNextMatchSync(q,Y,pe);return D?{captureIndices:D.captureIndices,matchedRuleId:D.ruleId}:null})(_,x,E,y,w,N),S=_.getInjections();if(S.length===0)return O;const M=(function(R,q,W,Y,z,Z,J){let I,pe=Number.MAX_VALUE,D=null,ye=0;const ke=Z.contentNameScopesList.getScopeNames();for(let Ue=0,Gn=R.length;Ue<Gn;Ue++){const Lt=R[Ue];if(!Lt.matcher(ke))continue;const na=q.getRule(Lt.ruleId),{ruleScanner:qi,findOptions:ra}=ju(na,q,null,Y,z===J),$n=qi.findNextMatchSync(W,z,ra);if(!$n)continue;const Wi=$n.captureIndices[0].start;if(!(Wi>=pe)&&(pe=Wi,D=$n.captureIndices,I=$n.ruleId,ye=Lt.priority,pe===z))break}return D?{priorityMatch:ye===-1,captureIndices:D,matchedRuleId:I}:null})(S,_,x,E,y,w,N);if(!M)return O;if(!O)return M;const B=O.captureIndices[0].start,G=M.captureIndices[0].start;return G<B||M.priorityMatch&&G===B?M:O})(e,t,n,r,i,u);if(!m)return o.produce(i,l),void(c=!0);const f=m.captureIndices,T=m.matchedRuleId,g=!!(f&&f.length>0)&&f[0].end>r;if(T===-1){const _=i.getRule(e);o.produce(i,f[0].start),i=i.withContentNameScopesList(i.nameScopesList),br(e,t,n,i,o,_.endCaptures,f),o.produce(i,f[0].end);const x=i;if(i=i.parent,u=x.getAnchorPos(),!g&&x.getEnterPos()===r)return i=x,o.produce(i,l),void(c=!0)}else{const _=e.getRule(T);o.produce(i,f[0].start);const x=i,E=_.getName(t.content,f),y=i.contentNameScopesList.pushAttributed(E,e);if(i=i.push(T,r,u,f[0].end===l,null,y,y),_ instanceof os){const w=_;br(e,t,n,i,o,w.beginCaptures,f),o.produce(i,f[0].end),u=f[0].end;const N=w.getContentName(t.content,f),O=y.pushAttributed(N,e);if(i=i.withContentNameScopesList(O),w.endHasBackReferences&&(i=i.withEndRule(w.getEndWithResolvedBackReferences(t.content,f))),!g&&x.hasSameRuleAs(i))return i=i.pop(),o.produce(i,l),void(c=!0)}else if(_ instanceof hi){const w=_;br(e,t,n,i,o,w.beginCaptures,f),o.produce(i,f[0].end),u=f[0].end;const N=w.getContentName(t.content,f),O=y.pushAttributed(N,e);if(i=i.withContentNameScopesList(O),w.whileHasBackReferences&&(i=i.withEndRule(w.getWhileWithResolvedBackReferences(t.content,f))),!g&&x.hasSameRuleAs(i))return i=i.pop(),o.produce(i,l),void(c=!0)}else if(br(e,t,n,i,o,_.captures,f),o.produce(i,f[0].end),i=i.pop(),!g)return i=i.safePop(),o.produce(i,l),void(c=!0)}f[0].end>r&&(r=f[0].end,n=!1)}}function ju(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function TE(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function br(e,t,n,r,i,o,s){if(o.length===0)return;const a=t.content,l=Math.min(o.length,s.length),c=[],u=s[0].end;for(let h=0;h<l;h++){const p=o[h];if(p===null)continue;const m=s[h];if(m.length===0)continue;if(m.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=m.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,m.start):i.produce(r,m.start),p.retokenizeCapturedWithRuleId){const T=p.getName(a,s),g=r.contentNameScopesList.pushAttributed(T,e),_=p.getContentName(a,s),x=g.pushAttributed(_,e),E=r.push(p.retokenizeCapturedWithRuleId,m.start,-1,!1,null,g,x),y=e.createOnigString(a.substring(0,m.end));Vu(e,y,n&&m.start===0,m.start,E,i,!1,0),Mu(y);continue}const f=p.getName(a,s);if(f!==null){const T=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);c.push(new bE(T,m.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var bE=class{constructor(e,t){v(this,"scopes");v(this,"endPos");this.scopes=e,this.endPos=t}};function zu(e,t,n,r,i){const o=ci(t,di),s=Hu.getCompiledRuleId(n,r,i.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:s,grammar:i,priority:a.priority})}function di(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let i=n;i<t.length;i++)if(kE(t[i],r))return n=i+1,!0;return!1})}function kE(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var AE=class{constructor(e,t,n,r,i,o,s,a){v(this,"_rootId");v(this,"_lastRuleId");v(this,"_ruleId2desc");v(this,"_includedGrammars");v(this,"_grammarRepository");v(this,"_grammar");v(this,"_injections");v(this,"_basicScopeAttributesProvider");v(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new _E(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=qu(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const l of Object.keys(i)){const c=ci(l,di);for(const u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:i[l]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const 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(){const e=i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),t=[],n=this._rootScopeName,r=e(n);if(r){const i=r.injections;if(i)for(let s in i)zu(t,s,i[s],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(s=>{const a=this.getExternalGrammar(s);if(a){const l=a.injectionSelector;l&&zu(t,l,a,this,a)}})}return t.sort((i,o)=>i.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=qu(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const 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){const 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){let i;if(this._rootId===-1&&(this._rootId=Hu.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==as.NULL)i=!1,t.reset();else{i=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),h=Dn.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),p=this.getRule(this._rootId).getName(null,null);let m;m=p?kr.createRootAndLookUpScopeName(p,h,this):kr.createRoot("unknown",h),t=new as(null,this._rootId,-1,-1,!1,null,m,m)}e+=`
38
+ `;const o=this.createOnigString(e),s=o.content.length,a=new xE(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Vu(this,o,i,0,t,a,!0,r);return Mu(o),{lineLength:s,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function qu(e,t){return(e=es(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 kr=class Tt{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,i=(t==null?void 0:t.scopePath)??null;for(const o of n)i=ns.push(i,o.scopeNames),r=new Tt(r,i,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Tt(null,new ns(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const i=r.getMetadataForScope(t),o=new ns(null,t),s=r.themeProvider.themeMatch(o),a=Tt.mergeAttributes(n,i,s);return new Tt(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Tt.equals(this,t)}static equals(t,n){for(;;){if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}}static mergeAttributes(t,n,r){let i=-1,o=0,s=0;return r!==null&&(i=r.fontStyle,o=r.foregroundId,s=r.backgroundId),Dn.set(t,n.languageId,n.tokenType,null,i,o,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Tt._pushAttributed(this,t,n);const r=t.split(/ /g);let i=this;for(const o of r)i=Tt._pushAttributed(i,o,n);return i}static _pushAttributed(t,n,r){const i=r.getMetadataForScope(n),o=t.scopePath.push(n),s=r.themeProvider.themeMatch(o),a=Tt.mergeAttributes(t.tokenAttributes,i,s);return new Tt(t,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var i;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((i=r.parent)==null?void 0:i.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},as=(ot=class{constructor(t,n,r,i,o,s,a,l){v(this,"_stackElementBrand");v(this,"_enterPos");v(this,"_anchorPos");v(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}equals(t){return t!==null&&ot._equals(this,t)}static _equals(t,n){return t===n||!!this._structuralEquals(t,n)&&kr.equals(t.contentNameScopesList,n.contentNameScopesList)}static _structuralEquals(t,n){for(;;){if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){ot._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,o,s,a){return new ot(this,t,n,r,i,o,s,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){var r,i;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(i=this.contentNameScopesList)==null?void 0:i.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new ot(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const r=kr.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new ot(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,kr.fromExtension(r,n.contentNameScopesList))}},v(ot,"NULL",new ot(null,0,0,0,!1,null,null,null)),ot),yE=class{constructor(e,t){v(this,"balancedBracketScopes");v(this,"unbalancedBracketScopes");v(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):ci(n,di).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>ci(n,di).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},xE=class{constructor(e,t,n,r){v(this,"_emitBinaryTokens");v(this,"_lineText");v(this,"_tokens");v(this,"_binaryTokens");v(this,"_lastTokenEndIndex");v(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let i=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=(e==null?void 0:e.getScopeNames())??[];for(const a of this._tokenTypeOverrides)a.matcher(s)&&(i=Dn.set(i,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(s))}return o&&(i=Dn.set(i,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i?void(this._lastTokenEndIndex=t):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),void(this._lastTokenEndIndex=t))}const n=(e==null?void 0: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);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,i=this._binaryTokens.length;r<i;r++)n[r]=this._binaryTokens[r];return n}},CE=class{constructor(e,t){v(this,"_grammars",new Map);v(this,"_rawGrammars",new Map);v(this,"_injectionGrammars",new Map);v(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const 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 o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,(function(s,a,l,c,u,h,p,m){return new AE(s,a,l,c,u,h,p,m)})(e,o,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},IE=class{constructor(e){v(this,"_options");v(this,"_syncRegistry");v(this,"_ensureGrammarCache");this._options=e,this._syncRegistry=new CE(li.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(li.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 yE(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){const o=new aE(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(s=>this._loadSingleGrammar(s.scopeName)),o.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){const t=this._options.loadGrammar(e);if(t){const 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)}},ls=as.NULL;const SE=/["&'<>`]/g,DE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,NE=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,wE=/[|\\{}()[\]^$+*?.]/g,Wu=new WeakMap;function LE(e,t){return e=e.replace(t.subset?(function(r){let i=Wu.get(r);return i||(i=(function(o){const s=[];let a=-1;for(;++a<o.length;)s.push(o[a].replace(wE,"\\$&"));return new RegExp("(?:"+s.join("|")+")","g")})(r),Wu.set(r,i)),i})(t.subset):SE,n),t.subset||t.escapeOnly?e:e.replace(DE,function(r,i,o){return t.format(1024*(r.charCodeAt(0)-55296)+r.charCodeAt(1)-56320+65536,o.charCodeAt(i+2),t)}).replace(NE,n);function n(r,i,o){return t.format(r.charCodeAt(0),o.charCodeAt(i+1),t)}}const OE=/[\dA-Fa-f]/,RE=/\d/,vE=["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"],cs={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"},PE=["cent","copy","divide","gt","lt","not","para","times"],Yu={}.hasOwnProperty,us={};let mi;for(mi in cs)Yu.call(cs,mi)&&(us[cs[mi]]=mi);const ME=/[^\dA-Za-z]/;function BE(e,t,n){let r,i=(function(o,s,a){const l="&#x"+o.toString(16).toUpperCase();return a&&s&&!OE.test(String.fromCharCode(s))?l:l+";"})(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=(function(o,s,a,l){const c=String.fromCharCode(o);if(Yu.call(us,c)){const u=us[c],h="&"+u;return a&&vE.includes(u)&&!PE.includes(u)&&(!l||s&&s!==61&&ME.test(String.fromCharCode(s)))?h:h+";"}return""})(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const o=(function(s,a,l){const c="&#"+String(s);return l&&a&&!RE.test(String.fromCharCode(a))?c:c+";"})(e,t,n.omitOptionalSemicolons);o.length<i.length&&(i=o)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function Nn(e,t){return LE(e,Object.assign({format:BE},t))}const FE=/^>|^->|<!--|-->|--!>|<!-$/g,UE=[">"],HE=["<",">"],Le=Xu(1),Qu=Xu(-1),GE=[];function Xu(e){return function(t,n,r){const i=t?t.children:GE;let o=(n||0)+e,s=i[o];if(!r)for(;s&&Pr(s);)o+=e,s=i[o];return s}}const $E={}.hasOwnProperty;function Ku(e){return function(t,n,r){return $E.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const ps=Ku({body:function(e,t,n){const r=Le(n,t);return!r||r.type!=="comment"},caption:hs,colgroup:hs,dd:function(e,t,n){const r=Le(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")},dt:function(e,t,n){const r=Le(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))},head:hs,html:function(e,t,n){const r=Le(n,t);return!r||r.type!=="comment"},li:function(e,t,n){const r=Le(n,t);return!r||r.type==="element"&&r.tagName==="li"},optgroup:function(e,t,n){const r=Le(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"},option:function(e,t,n){const r=Le(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")},p:function(e,t,n){const r=Le(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"))},rp:Zu,rt:Zu,tbody:function(e,t,n){const r=Le(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")},td:Ju,tfoot:function(e,t,n){return!Le(n,t)},th:Ju,thead:function(e,t,n){const r=Le(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))},tr:function(e,t,n){const r=Le(n,t);return!r||r.type==="element"&&r.tagName==="tr"}});function hs(e,t,n){const r=Le(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Pr(r.value.charAt(0)))}function Zu(e,t,n){const r=Le(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Ju(e,t,n){const r=Le(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const VE=Ku({body:function(e){const t=Le(e,-1,!0);return!(t&&(t.type==="comment"||t.type==="text"&&Pr(t.value.charAt(0))||t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template")))},colgroup:function(e,t,n){const r=Qu(n,t),i=Le(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&ps(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")},head:function(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"},html:function(e){const t=Le(e,-1);return!t||t.type!=="comment"},tbody:function(e,t,n){const r=Qu(n,t),i=Le(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&ps(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}}),fi={name:[[`
39
+ \f\r &/=>`.split(""),`
40
+ \f\r "&'/=>\``.split("")],[`\0
41
+ \f\r "&'/<=>`.split(""),`\0
42
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
43
+ \f\r &>`.split(""),`\0
44
+ \f\r "&'<=>\``.split("")],[`\0
45
+ \f\r "&'<=>\``.split(""),`\0
46
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function jE(e,t,n){const r=Mr(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let s,a=e.quote;if(!r.overloadedBoolean||n!==r.attribute&&n!==""?!r.boolean&&!r.overloadedBoolean||typeof n=="string"&&n!==r.attribute&&n!==""||(n=!!n):n=!0,n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=Nn(r.attribute,Object.assign({},e.settings.characterReferences,{subset:fi.name[i][o]}));return n===!0?l:(n=Array.isArray(n)?(r.commaSeparated?dn:Ji)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n?l:(e.settings.preferUnquoted&&(s=Nn(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:fi.unquoted[i][o]}))),s!==n&&(e.settings.quoteSmart&&ii(n,a)>ii(n,e.alternative)&&(a=e.alternative),s=a+Nn(n,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?fi.single:fi.double)[i][o],attribute:!0}))+a),l+(s&&"="+s)))}const zE=["<","&"];function ep(e,t,n,r){return!n||n.type!=="element"||n.tagName!=="script"&&n.tagName!=="style"?Nn(e.value,Object.assign({},r.settings.characterReferences,{subset:zE})):e.value}const qE=Po("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+Nn(e.value,Object.assign({},r.settings.characterReferences,{subset:UE}))+">":"<!--"+e.value.replace(FE,function(i){return Nn(i,Object.assign({},r.settings.characterReferences,{subset:HE}))})+"-->"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){const i=r.schema,o=i.space!=="svg"&&r.settings.omitOptionalTags;let s=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let l;i.space==="html"&&e.tagName==="svg"&&(r.schema=Rt);const c=(function(h,p){const m=[];let f,T=-1;if(p){for(f in p)if(p[f]!==null&&p[f]!==void 0){const g=jE(h,f,p[f]);g&&m.push(g)}}for(;++T<m.length;){const g=h.settings.tightAttributes?m[T].charAt(m[T].length-1):void 0;T!==m.length-1&&g!=='"'&&g!=="'"&&(m[T]+=" ")}return m.join("")})(r,e.properties),u=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,u&&(s=!1),!c&&o&&VE(e,t,n)||(a.push("<",e.tagName,c?" "+c:""),s&&(i.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(u),s||o&&ps(e,t,n)||a.push("</"+e.tagName+">"),a.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:ep(e,0,n,r)},root:function(e,t,n,r){return r.all(e)},text:ep}}),WE={},YE={},QE=[];function XE(e,t,n){return qE(e,t,n,this)}function KE(e){const t=[],n=e&&e.children||QE;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function gi(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[i,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[i]=o:i===r&&Object.assign(n,o);return n}function Ht(e,t){return e&&(t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e}async function tp(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function ds(e){return!e||["plaintext","txt","text","plain"].includes(e)}function np(e){return e==="ansi"||ds(e)}function ms(e){return e==="none"}function rp(e){return ms(e)}function ip(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const i of n)i&&!e.properties.class.includes(i)&&e.properties.class.push(i);return e}function _i(e,t=!1){var o;const n=e.split(/(\r?\n)/g);let r=0;const i=[];for(let s=0;s<n.length;s+=2){const a=t?n[s]+(n[s+1]||""):n[s];i.push([a,r]),r+=n[s].length,r+=((o=n[s+1])==null?void 0:o.length)||0}return i}const fs="light-dark()",ZE=["color","background-color"];function Ei(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Ve.Italic&&(t["font-style"]="italic"),e.fontStyle&Ve.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&Ve.Underline&&n.push("underline"),e.fontStyle&Ve.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function gs(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const op=new WeakMap;function Ti(e,t){op.set(e,t)}function Ar(e){return op.get(e)}class wn{constructor(...t){v(this,"_stacks",{});v(this,"lang");if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,i]=t;this.lang=r,this._stacks={[i]:n}}}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 wn(Object.fromEntries((function(r){return Array.isArray(r)?r:[r]})(n).map(r=>[r,ls])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return(function(n){const r=[],i=new Set;function o(s){var l;if(i.has(s))return;i.add(s);const a=(l=s==null?void 0:s.nameScopesList)==null?void 0:l.scopeName;a&&r.push(a),s.parent&&o(s.parent)}return o(n),r})(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function JE(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(s){if(typeof s=="number"){if(s<0||s>n.source.length)throw new Ne(`Invalid decoration offset: ${s}. Code length: ${n.source.length}`);return{...i.indexToPos(s),offset:s}}{const a=i.lines[s.line];if(a===void 0)throw new Ne(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${i.lines.length}`);let l=s.character;if(l<0&&(l=a.length+l),l<0||l>a.length)throw new Ne(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${a.length}`);return{...s,character:l,offset:i.posToIndex(s.line,l)}}};const i=(function(s){const a=_i(s,!0).map(([l])=>l);return{lines:a,indexToPos:function(l){if(l===s.length)return{line:a.length-1,character:a[a.length-1].length};let c=l,u=0;for(const h of a){if(c<h.length)break;c-=h.length,u++}return{line:u,character:c}},posToIndex:function(l,c){let u=0;for(let h=0;h<l;h++)u+=a[h].length;return u+=c,u}}})(n.source),o=(n.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));(function(s){for(let a=0;a<s.length;a++){const l=s[a];if(l.start.offset>l.end.offset)throw new Ne(`Invalid decoration range: ${JSON.stringify(l.start)} - ${JSON.stringify(l.end)}`);for(let c=a+1;c<s.length;c++){const u=s[c],h=l.start.offset<=u.start.offset&&u.start.offset<l.end.offset,p=l.start.offset<u.end.offset&&u.end.offset<=l.end.offset,m=u.start.offset<=l.start.offset&&l.start.offset<u.end.offset,f=u.start.offset<l.end.offset&&l.end.offset<=u.end.offset;if(h||p||m||f){if(h&&p||m&&f||m&&l.start.offset===l.end.offset||p&&u.start.offset===u.end.offset)continue;throw new Ne(`Decorations ${JSON.stringify(l.start)} and ${JSON.stringify(u.start)} intersect.`)}}}})(o),e.set(n.meta,{decorations:o,converter:i,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var o;if(!((o=this.options.decorations)!=null&&o.length))return;const r=t(this).decorations.flatMap(s=>[s.start.offset,s.end.offset]);return(function(s,a){const l=Array.from(a instanceof Set?a:new Set(a)).sort((c,u)=>c-u);return l.length?s.map(c=>c.flatMap(u=>{const h=l.filter(p=>u.offset<p&&p<u.offset+u.content.length).map(p=>p-u.offset).sort((p,m)=>p-m);return h.length?(function(p,m){let f=0;const T=[];for(const g of m)g>f&&T.push({...p,content:p.content.slice(f,g),offset:p.offset+f}),f=g;return f<p.content.length&&T.push({...p,content:p.content.slice(f),offset:p.offset+f}),T})(u,h):u})):s})(n,r)},code(n){var u;if(!((u=this.options.decorations)!=null&&u.length))return;const r=t(this),i=Array.from(n.children).filter(h=>h.type==="element"&&h.tagName==="span");if(i.length!==r.converter.lines.length)throw new Ne(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(h,p,m,f){const T=i[h];let g="",_=-1,x=-1;if(p===0&&(_=0),m===0&&(x=0),m===Number.POSITIVE_INFINITY&&(x=T.children.length),_===-1||x===-1)for(let y=0;y<T.children.length;y++)g+=sp(T.children[y]),_===-1&&g.length===p&&(_=y+1),x===-1&&g.length===m&&(x=y+1);if(_===-1)throw new Ne(`Failed to find start index for decoration ${JSON.stringify(f.start)}`);if(x===-1)throw new Ne(`Failed to find end index for decoration ${JSON.stringify(f.end)}`);const E=T.children.slice(_,x);if(f.alwaysWrap||E.length!==T.children.length)if(f.alwaysWrap||E.length!==1||E[0].type!=="element"){const y={type:"element",tagName:"span",properties:{},children:E};a(y,f,"wrapper"),T.children.splice(_,E.length,y)}else a(E[0],f,"token");else a(T,f,"line")}function s(h,p){i[h]=a(i[h],p,"line")}function a(h,p,m){var g;const f=p.properties||{},T=p.transform||(_=>_);return h.tagName=p.tagName||"span",h.properties={...h.properties,...f,class:h.properties.class},(g=p.properties)!=null&&g.class&&ip(h,p.properties.class),h=T(h,m)||h}const l=[],c=r.decorations.sort((h,p)=>p.start.offset-h.start.offset||h.end.offset-p.end.offset);for(const h of c){const{start:p,end:m}=h;if(p.line===m.line)o(p.line,p.character,m.character,h);else if(p.line<m.line){o(p.line,p.character,Number.POSITIVE_INFINITY,h);for(let f=p.line+1;f<m.line;f++)l.unshift(()=>s(f,h));o(m.line,0,m.character,h)}}l.forEach(h=>h())}}}function sp(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(sp).join(""):""}const eT=[JE()];function bi(e){const t=(function(n){const r=[],i=[],o=[];for(const s of n)switch(s.enforce){case"pre":r.push(s);break;case"post":i.push(s);break;default:o.push(s)}return{pre:r,post:i,normal:o}})(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...eT]}var tn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],_s={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function tT(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function ap(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function nT(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)_s[r]&&t.push({type:"setDecoration",value:_s[r]});else if(r<=29){const i=_s[r-20];i&&(t.push({type:"resetDecoration",value:i}),i==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:tn[r-30]}});else if(r===38){const i=ap(e);i&&t.push({type:"setForegroundColor",value:i})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:tn[r-40]}});else if(r===48){const i=ap(e);i&&t.push({type:"setBackgroundColor",value:i})}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:tn[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:tn[r-100+8]}})}return t}var rT={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 iT(e=rT){function t(o){return e[o]}function n(o){return`#${o.map(s=>Math.max(0,Math.min(s,255)).toString(16).padStart(2,"0")).join("")}`}let r;function i(o){return(function(){if(r)return r;r=[];for(let l=0;l<tn.length;l++)r.push(t(tn[l]));let s=[0,95,135,175,215,255];for(let l=0;l<6;l++)for(let c=0;c<6;c++)for(let u=0;u<6;u++)r.push(n([s[l],s[c],s[u]]));let a=8;for(let l=0;l<24;l++,a+=10)r.push(n([a,a,a]));return r})()[o]}return{value:function(o){switch(o.type){case"named":return t(o.name);case"rgb":return n(o.rgb);case"table":return i(o.index)}}}}function oT(e,t,n){const r=gi(e,n),i=_i(t),o=iT(Object.fromEntries(tn.map(a=>{var l;return[a,(l=e.colors)==null?void 0:l[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]]}))),s=(function(){let a=null,l=null,c=new Set;return{parse(u){const h=[];let p=0;do{const m=tT(u,p),f=m.sequence?u.substring(p,m.startPosition):u.substring(p);if(f.length>0&&h.push({value:f,foreground:a,background:l,decorations:new Set(c)}),m.sequence){const T=nT(m.sequence);for(const g of T)g.type==="resetAll"?(a=null,l=null,c.clear()):g.type==="resetForegroundColor"?a=null:g.type==="resetBackgroundColor"?l=null:g.type==="resetDecoration"&&c.delete(g.value);for(const g of T)g.type==="setForegroundColor"?a=g.value:g.type==="setBackgroundColor"?l=g.value:g.type==="setDecoration"&&c.add(g.value)}p=m.position}while(p<u.length);return h}}})();return i.map(a=>s.parse(a[0]).map(l=>{let c,u;l.decorations.has("reverse")?(c=l.background?o.value(l.background):e.bg,u=l.foreground?o.value(l.foreground):e.fg):(c=l.foreground?o.value(l.foreground):e.fg,u=l.background?o.value(l.background):void 0),c=Ht(c,r),u=Ht(u,r),l.decorations.has("dim")&&(c=(function(p){const m=p.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(m){if(m[3]){const T=Math.round(Number.parseInt(m[3],16)/2).toString(16).padStart(2,"0");return`#${m[1]}${m[2]}${T}`}return m[2]?`#${m[1]}${m[2]}80`:`#${Array.from(m[1]).map(T=>`${T}${T}`).join("")}80`}const f=p.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return f?`var(${f[1]}-dim)`:p})(c));let h=Ve.None;return l.decorations.has("bold")&&(h|=Ve.Bold),l.decorations.has("italic")&&(h|=Ve.Italic),l.decorations.has("underline")&&(h|=Ve.Underline),l.decorations.has("strikethrough")&&(h|=Ve.Strikethrough),{content:l.value,offset:a[1],color:c,bgColor:u,fontStyle:h}}))}function Es(e,t,n={}){const{lang:r="text",theme:i=e.getLoadedThemes()[0]}=n;if(ds(r)||ms(i))return _i(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:s}=e.setTheme(i);if(r==="ansi")return oT(o,t,n);const a=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==a.name)throw new Ne(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Ne(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return(function(l,c,u,h,p){const m=ki(l,c,u,h,p),f=new wn(ki(l,c,u,h,p).stateStack,c.name,u.name);return Ti(m.tokens,f),m.tokens})(t,a,o,s,n)}function ki(e,t,n,r,i){const o=gi(n,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:a=500}=i,l=_i(e);let c=i.grammarState?(function(p,m){if(!(p instanceof wn))throw new Ne("Invalid grammar state");return p.getInternalStack(m)})(i.grammarState,n.name)??ls:i.grammarContextCode!=null?ki(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:ls,u=[];const h=[];for(let p=0,m=l.length;p<m;p++){const[f,T]=l[p];if(f===""){u=[],h.push([]);continue}if(s>0&&f.length>=s){u=[],h.push([{content:f,offset:T,color:"",fontStyle:0}]);continue}let g,_,x;i.includeExplanation&&(g=t.tokenizeLine(f,c,a),_=g.tokens,x=0);const E=t.tokenizeLine2(f,c,a),y=E.tokens.length/2;for(let w=0;w<y;w++){const N=E.tokens[2*w],O=w+1<y?E.tokens[2*w+2]:f.length;if(N===O)continue;const S=E.tokens[2*w+1],M=Ht(r[Dn.getForeground(S)],o),B=Dn.getFontStyle(S),G={content:f.substring(N,O),offset:T+N,color:M,fontStyle:B};if(i.includeExplanation){const R=[];if(i.includeExplanation!=="scopeName")for(const W of n.settings){let Y;switch(typeof W.scope){case"string":Y=W.scope.split(/,/).map(z=>z.trim());break;case"object":Y=W.scope;break;default:continue}R.push({settings:W,selectors:Y.map(z=>z.split(/ /))})}G.explanation=[];let q=0;for(;N+q<O;){const W=_[x],Y=f.substring(W.startIndex,W.endIndex);q+=Y.length,G.explanation.push({content:Y,scopes:i.includeExplanation==="scopeName"?sT(W.scopes):aT(R,W.scopes)}),x+=1}}u.push(G)}h.push(u),u=[],c=E.ruleStack}return{tokens:h,stateStack:c}}function sT(e){return e.map(t=>({scopeName:t}))}function aT(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const o=t[r];n[r]={scopeName:o,themeMatches:cT(e,o,t.slice(0,r))}}return n}function lp(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function lT(e,t,n){if(!lp(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)lp(e[r],n[i])&&(r-=1),i-=1;return r===-1}function cT(e,t,n){const r=[];for(const{selectors:i,settings:o}of e)for(const s of i)if(lT(s,t,n)){r.push(o);break}return r}function cp(e,t,n){const r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),i=r.map(l=>{const c=Es(e,t,{...n,theme:l.theme});return{tokens:c,state:Ar(c),theme:typeof l.theme=="string"?l.theme:l.theme.name}}),o=(function(...l){const c=l.map(()=>[]),u=l.length;for(let h=0;h<l[0].length;h++){const p=l.map(g=>g[h]),m=c.map(()=>[]);c.forEach((g,_)=>g.push(m[_]));const f=p.map(()=>0),T=p.map(g=>g[0]);for(;T.every(g=>g);){const g=Math.min(...T.map(_=>_.content.length));for(let _=0;_<u;_++){const x=T[_];x.content.length===g?(m[_].push(x),f[_]+=1,T[_]=p[_][f[_]]):(m[_].push({...x,content:x.content.slice(0,g)}),T[_]={...x,content:x.content.slice(g),offset:x.offset+g})}}}return c})(...i.map(l=>l.tokens)),s=o[0].map((l,c)=>l.map((u,h)=>{const p={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(p.explanation=u.explanation),o.forEach((m,f)=>{const{content:T,explanation:g,offset:_,...x}=m[c][h];p.variants[r[f].color]=x}),p})),a=i[0].state?new wn(Object.fromEntries(i.map(l=>{var c;return[l.theme,(c=l.state)==null?void 0:c.getInternalStack(l.theme)]})),i[0].state.lang):void 0;return a&&Ti(s,a),s}function Ai(e,t,n){let r,i,o,s,a,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=n,p=Object.entries(n.themes).filter(_=>_[1]).map(_=>({color:_[0],theme:_[1]})).sort((_,x)=>_.color===c?-1:x.color===c?1:0);if(p.length===0)throw new Ne("`themes` option must not be empty");const m=cp(e,t,n);if(l=Ar(m),c&&fs!==c&&!p.find(_=>_.color===c))throw new Ne(`\`themes\` option must contain the defaultColor key \`${c}\``);const f=p.map(_=>e.getTheme(_.theme)),T=p.map(_=>_.color);o=m.map(_=>_.map(x=>(function(E,y,w,N,O="css-vars"){const S={content:E.content,explanation:E.explanation,offset:E.offset},M=y.map(q=>Ei(E.variants[q])),B=new Set(M.flatMap(q=>Object.keys(q))),G={},R=(q,W)=>{const Y=W==="color"?"":W==="background-color"?"-bg":`-${W}`;return w+y[q]+(W==="color"?"":Y)};return M.forEach((q,W)=>{for(const Y of B){const z=q[Y]||"inherit";if(W===0&&N&&ZE.includes(Y))if(N===fs&&M.length>1){const Z=y.findIndex(D=>D==="light"),J=y.findIndex(D=>D==="dark");if(Z===-1||J===-1)throw new Ne('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const I=M[Z][Y]||"inherit",pe=M[J][Y]||"inherit";G[Y]=`light-dark(${I}, ${pe})`,O==="css-vars"&&(G[R(W,Y)]=z)}else G[Y]=z;else O==="css-vars"&&(G[R(W,Y)]=z)}}),S.htmlStyle=G,S})(x,T,u,c,h))),l&&Ti(o,l);const g=p.map(_=>gi(_.theme,n));i=up(p,f,g,u,c,"fg",h),r=up(p,f,g,u,c,"bg",h),s=`shiki-themes ${f.map(_=>_.name).join(" ")}`,a=c?void 0:[i,r].join(";")}else{if(!("theme"in n))throw new Ne("Invalid options, either `theme` or `themes` must be provided");{const c=gi(n.theme,n);o=Es(e,t,n);const u=e.getTheme(n.theme);r=Ht(u.bg,c),i=Ht(u.fg,c),s=u.name,l=Ar(o)}}return{tokens:o,fg:i,bg:r,themeName:s,rootStyle:a,grammarState:l}}function up(e,t,n,r,i,o,s){return e.map((a,l)=>{const c=Ht(t[l][o],n[l])||"inherit",u=`${r+a.color}${o==="bg"?"-bg":""}:${c}`;if(l===0&&i){if(i===fs&&e.length>1){const h=e.findIndex(m=>m.color==="light"),p=e.findIndex(m=>m.color==="dark");if(h===-1||p===-1)throw new Ne('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${Ht(t[h][o],n[h])||"inherit"}, ${Ht(t[p][o],n[p])||"inherit"});${u}`}return c}return s==="css-vars"?u:null}).filter(a=>!!a).join(";")}function yi(e,t,n,r={meta:{},options:n,codeToHast:(i,o)=>yi(e,i,o),codeToTokens:(i,o)=>Ai(e,i,o)}){var f,T;let i=t;for(const g of bi(n))i=((f=g.preprocess)==null?void 0:f.call(r,i,n))||i;let{tokens:o,fg:s,bg:a,themeName:l,rootStyle:c,grammarState:u}=Ai(e,i,n);const{mergeWhitespaces:h=!0,mergeSameStyleTokens:p=!1}=n;h===!0?o=(function(g){return g.map(_=>{const x=[];let E="",y=0;return _.forEach((w,N)=>{const O=!(w.fontStyle&&(w.fontStyle&Ve.Underline||w.fontStyle&Ve.Strikethrough));O&&w.content.match(/^\s+$/)&&_[N+1]?(y||(y=w.offset),E+=w.content):E?(O?x.push({...w,offset:y,content:E+w.content}):x.push({content:E,offset:y},w),y=0,E=""):x.push(w)}),x})})(o):h==="never"&&(o=(function(g){return g.map(_=>_.flatMap(x=>{if(x.content.match(/^\s+$/))return x;const E=x.content.match(/^(\s*)(.*?)(\s*)$/);if(!E)return x;const[,y,w,N]=E;if(!y&&!N)return x;const O=[{...x,offset:x.offset+y.length,content:w}];return y&&O.unshift({content:y,offset:x.offset}),N&&O.push({content:N,offset:x.offset+y.length+w.length}),O}))})(o)),p&&(o=(function(g){return g.map(_=>{const x=[];for(const E of _){if(x.length===0){x.push({...E});continue}const y=x[x.length-1],w=gs(y.htmlStyle||Ei(y)),N=gs(E.htmlStyle||Ei(E)),O=y.fontStyle&&(y.fontStyle&Ve.Underline||y.fontStyle&Ve.Strikethrough),S=E.fontStyle&&(E.fontStyle&Ve.Underline||E.fontStyle&Ve.Strikethrough);O||S||w!==N?x.push({...E}):y.content+=E.content}return x})})(o));const m={...r,get source(){return i}};for(const g of bi(n))o=((T=g.tokens)==null?void 0:T.call(m,o))||o;return(function(g,_,x,E=Ar(g)){var W,Y,z;const y=bi(_),w=[],N={type:"root",children:[]},{structure:O="classic",tabindex:S="0"}=_;let M={type:"element",tagName:"pre",properties:{class:`shiki ${_.themeName||""}`,style:_.rootStyle||`background-color:${_.bg};color:${_.fg}`,...S!==!1&&S!=null?{tabindex:S.toString()}:{},...Object.fromEntries(Array.from(Object.entries(_.meta||{})).filter(([Z])=>!Z.startsWith("_")))},children:[]},B={type:"element",tagName:"code",properties:{},children:w};const G=[],R={...x,structure:O,addClassToHast:ip,get source(){return x.source},get tokens(){return g},get options(){return _},get root(){return N},get pre(){return M},get code(){return B},get lines(){return G}};if(g.forEach((Z,J)=>{var D,ye;J&&(O==="inline"?N.children.push({type:"element",tagName:"br",properties:{},children:[]}):O==="classic"&&w.push({type:"text",value:`
47
+ `}));let I={type:"element",tagName:"span",properties:{class:"line"},children:[]},pe=0;for(const ke of Z){let Ue={type:"element",tagName:"span",properties:{...ke.htmlAttrs},children:[{type:"text",value:ke.content}]};const Gn=gs(ke.htmlStyle||Ei(ke));Gn&&(Ue.properties.style=Gn);for(const Lt of y)Ue=((D=Lt==null?void 0:Lt.span)==null?void 0:D.call(R,Ue,J+1,pe,I,ke))||Ue;O==="inline"?N.children.push(Ue):O==="classic"&&I.children.push(Ue),pe+=ke.content.length}if(O==="classic"){for(const ke of y)I=((ye=ke==null?void 0:ke.line)==null?void 0:ye.call(R,I,J+1))||I;G.push(I),w.push(I)}}),O==="classic"){for(const Z of y)B=((W=Z==null?void 0:Z.code)==null?void 0:W.call(R,B))||B;M.children.push(B);for(const Z of y)M=((Y=Z==null?void 0:Z.pre)==null?void 0:Y.call(R,M))||M;N.children.push(M)}let q=N;for(const Z of y)q=((z=Z==null?void 0:Z.root)==null?void 0:z.call(R,q))||q;return E&&Ti(q,E),q})(o,{...n,fg:s,bg:a,themeName:l,rootStyle:c},m,u)}const uT=function(e,t){const n=t||WE,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:XE,all:KE,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||tc,characterReferences:n.characterReferences||YE,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Rt:Wn,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)},pT="#333333",hT="#bbbbbb",dT="#fffffe",mT="#1e1e1e",pp="__shiki_resolved";function Ts(e){var a,l,c,u,h;if(e!=null&&e[pp])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const p=t.settings?t.settings.find(m=>!m.name&&!m.scope):void 0;(a=p==null?void 0:p.settings)!=null&&a.foreground&&(r=p.settings.foreground),(l=p==null?void 0:p.settings)!=null&&l.background&&(n=p.settings.background),!r&&((c=t==null?void 0:t.colors)!=null&&c["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((u=t==null?void 0:t.colors)!=null&&u["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?pT:hT),n||(n=t.type==="light"?dT:mT),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;const o=new Map;function s(p){var f;if(o.has(p))return o.get(p);i+=1;const m=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return(f=t.colorReplacements)!=null&&f[`#${m}`]?s(p):(o.set(p,m),m)}t.settings=t.settings.map(p=>{var g,_;const m=((g=p.settings)==null?void 0:g.foreground)&&!p.settings.foreground.startsWith("#"),f=((_=p.settings)==null?void 0:_.background)&&!p.settings.background.startsWith("#");if(!m&&!f)return p;const T={...p,settings:{...p.settings}};if(m){const x=s(p.settings.foreground);t.colorReplacements[x]=p.settings.foreground,T.settings.foreground=x}if(f){const x=s(p.settings.background);t.colorReplacements[x]=p.settings.background,T.settings.background=x}return T});for(const p of Object.keys(t.colors||{}))if((p==="editor.foreground"||p==="editor.background"||p.startsWith("terminal.ansi"))&&!((h=t.colors[p])!=null&&h.startsWith("#"))){const m=s(t.colors[p]);t.colorReplacements[m]=t.colors[p],t.colors[p]=m}return Object.defineProperty(t,pp,{enumerable:!1,writable:!1,value:!0}),t}async function hp(e){return Array.from(new Set((await Promise.all(e.filter(t=>!np(t)).map(async t=>await tp(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function dp(e){return(await Promise.all(e.map(async t=>rp(t)?null:Ts(await tp(t))))).filter(t=>!!t)}let Ln=class extends Error{constructor(e){super(e),this.name="ShikiError"}};class fT extends IE{constructor(n,r,i,o={}){super(n);v(this,"_resolvedThemes",new Map);v(this,"_resolvedGrammars",new Map);v(this,"_langMap",new Map);v(this,"_langGraph",new Map);v(this,"_textmateThemeCache",new WeakMap);v(this,"_loadedThemesCache",null);v(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=r,this._langs=i,this._alias=o,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const r=Ts(n);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=li.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){if(this._alias[n]){const r=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],r.has(n))throw new Ln(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var s,a,l,c;if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(u=>{var h;return(h=u.embeddedLangsLazy)==null?void 0:h.includes(n.name)}));this._resolver.addLanguage(n);const i={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,i);if(o.name=n.name,this._resolvedGrammars.set(n.name,o),n.aliases&&n.aliases.forEach(u=>{this._alias[u]=n.name}),this._loadedLanguagesCache=null,r.size)for(const u of r)this._resolvedGrammars.delete(u.name),this._loadedLanguagesCache=null,(a=(s=this._syncRegistry)==null?void 0:s._injectionGrammars)==null||a.delete(u.scopeName),(c=(l=this._syncRegistry)==null?void 0:l._grammars)==null||c.delete(u.scopeName),this.loadLanguage(this._langMap.get(u.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const o of n)this.resolveEmbeddedLanguages(o);const r=Array.from(this._langGraph.entries()),i=r.filter(([o,s])=>!s);if(i.length){const o=r.filter(([s,a])=>{var l;return a&&((l=a.embeddedLangs)==null?void 0:l.some(c=>i.map(([u])=>u).includes(c)))}).filter(s=>!i.includes(s));throw new Ln(`Missing languages ${i.map(([s])=>`\`${s}\``).join(", ")}, required by ${o.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[o,s]of r)this._resolver.addLanguage(s);for(const[o,s]of r)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){if(this._langMap.set(n.name,n),this._langGraph.set(n.name,n),n.embeddedLangs)for(const r of n.embeddedLangs)this._langGraph.set(r,this._langMap.get(r))}}class gT{constructor(t,n){v(this,"_langs",new Map);v(this,"_scopeToLang",new Map);v(this,"_injections",new Map);v(this,"_onigLib");this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let i=1;i<=n.length;i++){const o=n.slice(0,i).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let yr=0;async function _T(e){e.engine||(function(i,o=3){o>3||console.trace(`[SHIKI DEPRECATE]: ${i}`)})("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([dp(e.themes||[]),hp(e.langs||[]),e.engine]);return(function(i){yr+=1,i.warnings!==!1&&yr>=10&&yr%10==0&&console.warn(`[Shiki] ${yr} 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 o=!1;if(!i.engine)throw new Ln("`engine` option is required for synchronous mode");const s=(i.langs||[]).flat(1),a=(i.themes||[]).flat(1).map(Ts),l=new gT(i.engine,s),c=new fT(l,a,s,i.langAlias);let u;function h(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};f();const _=c.getTheme(g);if(!_)throw new Ln(`Theme \`${g}\` not found, you may need to load it first`);return _}function p(...g){f(),c.loadLanguages(g.flat(1))}function m(...g){f();for(const _ of g.flat(1))c.loadTheme(_)}function f(){if(o)throw new Ln("Shiki instance has been disposed")}function T(){o||(o=!0,c.dispose(),yr-=1)}return{setTheme:function(g){f();const _=h(g);return u!==g&&(c.setTheme(_),u=g),{theme:_,colorMap:c.getColorMap()}},getTheme:h,getLanguage:function(g){f();const _=c.getGrammar(typeof g=="string"?g:g.name);if(!_)throw new Ln(`Language \`${g}\` not found, you may need to load it first`);return _},getLoadedThemes:function(){return f(),c.getLoadedThemes()},getLoadedLanguages:function(){return f(),c.getLoadedLanguages()},loadLanguage:async function(...g){return p(await hp(g))},loadLanguageSync:p,loadTheme:async function(...g){return f(),m(await dp(g))},loadThemeSync:m,dispose:T,[Symbol.dispose]:T}})({...e,themes:t,langs:n,engine:r})}async function ET(e){const t=await _T(e);return{getLastGrammarState:(...n)=>(function(...r){if(r.length===2)return Ar(r[1]);const[i,o,s={}]=r,{lang:a="text",theme:l=i.getLoadedThemes()[0]}=s;if(ds(a)||ms(l))throw new Ne("Plain language does not have grammar state");if(a==="ansi")throw new Ne("ANSI language does not have grammar state");const{theme:c,colorMap:u}=i.setTheme(l),h=i.getLanguage(a);return new wn(ki(o,h,c,u,s).stateStack,h.name,c.name)})(t,...n),codeToTokensBase:(n,r)=>Es(t,n,r),codeToTokensWithThemes:(n,r)=>cp(t,n,r),codeToTokens:(n,r)=>Ai(t,n,r),codeToHast:(n,r)=>yi(t,n,r),codeToHtml:(n,r)=>(function(i,o,s){var c;const a={meta:{},options:s,codeToHast:(u,h)=>yi(i,u,h),codeToTokens:(u,h)=>Ai(i,u,h)};let l=uT(yi(i,o,s,a));for(const u of bi(s))l=((c=u.postprocess)==null?void 0:c.call(a,l,s))||l;return l})(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function TT(e){const t=e.langs,n=e.themes,r=e.engine;return async function(i){function o(u){var h;if(typeof u=="string"){if(np(u))return[];u=((h=i.langAlias)==null?void 0:h[u])||u;const p=t[u];if(!p)throw new Ne(`Language \`${u}\` is not included in this bundle. You may want to load it from external source.`);return p}return u}function s(u){if(rp(u))return"none";if(typeof u=="string"){const h=n[u];if(!h)throw new Ne(`Theme \`${u}\` is not included in this bundle. You may want to load it from external source.`);return h}return u}const a=(i.themes??[]).map(u=>s(u)),l=(i.langs??[]).map(u=>o(u)),c=await ET({engine:i.engine??r(),...i,themes:a,langs:l});return{...c,loadLanguage:(...u)=>c.loadLanguage(...u.map(o)),loadTheme:(...u)=>c.loadTheme(...u.map(s)),getBundledLanguages:()=>t,getBundledThemes:()=>n}}}const mp=[{id:"abap",name:"ABAP",import:()=>k(()=>import("./abap-DnJxzdy9.js"),[],import.meta.url)},{id:"actionscript-3",name:"ActionScript",import:()=>k(()=>import("./actionscript-3-CKUqbIUM.js"),[],import.meta.url)},{id:"ada",name:"Ada",import:()=>k(()=>import("./ada-iG1FnIvR.js"),[],import.meta.url)},{id:"angular-html",name:"Angular HTML",import:()=>k(()=>import("./angular-html-BZhSV2-l.js").then(e=>e.f),__vite__mapDeps([0,1,2,3]),import.meta.url)},{id:"angular-ts",name:"Angular TypeScript",import:()=>k(()=>import("./angular-ts-DRQ-j7PL.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url)},{id:"apache",name:"Apache Conf",import:()=>k(()=>import("./apache-CdTKWnKT.js"),[],import.meta.url)},{id:"apex",name:"Apex",import:()=>k(()=>import("./apex-3xxtq2mv.js"),[],import.meta.url)},{id:"apl",name:"APL",import:()=>k(()=>import("./apl-BnBkWLuz.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url)},{id:"applescript",name:"AppleScript",import:()=>k(()=>import("./applescript-BlLNmGTp.js"),[],import.meta.url)},{id:"ara",name:"Ara",import:()=>k(()=>import("./ara-Ba3fhlsS.js"),[],import.meta.url)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>k(()=>import("./asciidoc-XTVL4-GN.js"),[],import.meta.url)},{id:"asm",name:"Assembly",import:()=>k(()=>import("./asm-CHX6lpGW.js"),[],import.meta.url)},{id:"astro",name:"Astro",import:()=>k(()=>import("./astro-CXYfh229.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url)},{id:"awk",name:"AWK",import:()=>k(()=>import("./awk-XRrwoikR.js"),[],import.meta.url)},{id:"ballerina",name:"Ballerina",import:()=>k(()=>import("./ballerina-Dh0JsEtz.js"),[],import.meta.url)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>k(()=>import("./bat-BVu0TwaT.js"),[],import.meta.url)},{id:"beancount",name:"Beancount",import:()=>k(()=>import("./beancount-BuQJKJpV.js"),[],import.meta.url)},{id:"berry",name:"Berry",aliases:["be"],import:()=>k(()=>import("./berry-D4qT7XM1.js"),[],import.meta.url)},{id:"bibtex",name:"BibTeX",import:()=>k(()=>import("./bibtex-CGjxJ4Zd.js"),[],import.meta.url)},{id:"bicep",name:"Bicep",import:()=>k(()=>import("./bicep-DysT5qaJ.js"),[],import.meta.url)},{id:"blade",name:"Blade",import:()=>k(()=>import("./blade-CkGRa-l8.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url)},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>k(()=>import("./bsl-DGicdwC0.js"),__vite__mapDeps([17,18]),import.meta.url)},{id:"c",name:"C",import:()=>k(()=>import("./c-BmJt9k-y.js"),[],import.meta.url)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>k(()=>import("./cadence-CWn_mfEc.js"),[],import.meta.url)},{id:"cairo",name:"Cairo",import:()=>k(()=>import("./cairo-Dz8fl918.js"),__vite__mapDeps([19,20]),import.meta.url)},{id:"clarity",name:"Clarity",import:()=>k(()=>import("./clarity-DF5_RAtY.js"),[],import.meta.url)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>k(()=>import("./clojure-BjI0Knrv.js"),[],import.meta.url)},{id:"cmake",name:"CMake",import:()=>k(()=>import("./cmake-BYiqpiH1.js"),[],import.meta.url)},{id:"cobol",name:"COBOL",import:()=>k(()=>import("./cobol-Dt3m7Jkx.js"),__vite__mapDeps([21,1,2,3,8]),import.meta.url)},{id:"codeowners",name:"CODEOWNERS",import:()=>k(()=>import("./codeowners-L91meNbn.js"),[],import.meta.url)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>k(()=>import("./codeql-Cd-JFsJB.js"),[],import.meta.url)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>k(()=>import("./coffee-DgxxYT5L.js"),__vite__mapDeps([22,2]),import.meta.url)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>k(()=>import("./common-lisp-DOi1njVG.js"),[],import.meta.url)},{id:"coq",name:"Coq",import:()=>k(()=>import("./coq-BfbrVLCY.js"),[],import.meta.url)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>k(()=>import("./cpp-BmKY377x.js"),__vite__mapDeps([23,24,25,26,16]),import.meta.url)},{id:"crystal",name:"Crystal",import:()=>k(()=>import("./crystal-DB6V90z1.js"),__vite__mapDeps([27,1,2,3,16,26,28]),import.meta.url)},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>k(()=>import("./csharp-yFVQ185C.js"),[],import.meta.url)},{id:"css",name:"CSS",import:()=>k(()=>import("./css-l46fsARh.js"),[],import.meta.url)},{id:"csv",name:"CSV",import:()=>k(()=>import("./csv-DXKU4rRd.js"),[],import.meta.url)},{id:"cue",name:"CUE",import:()=>k(()=>import("./cue-zmT78Agv.js"),[],import.meta.url)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>k(()=>import("./cypher-bkHSskm3.js"),[],import.meta.url)},{id:"d",name:"D",import:()=>k(()=>import("./d-vs9xsbRV.js"),[],import.meta.url)},{id:"dart",name:"Dart",import:()=>k(()=>import("./dart-BMkYYGiN.js"),[],import.meta.url)},{id:"dax",name:"DAX",import:()=>k(()=>import("./dax-D135z3aS.js"),[],import.meta.url)},{id:"desktop",name:"Desktop",import:()=>k(()=>import("./desktop-CigPEpQ5.js"),[],import.meta.url)},{id:"diff",name:"Diff",import:()=>k(()=>import("./diff-Beq1YlA8.js"),[],import.meta.url)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>k(()=>import("./docker-V5Al5bpF.js"),[],import.meta.url)},{id:"dotenv",name:"dotEnv",import:()=>k(()=>import("./dotenv-D9G8sA2m.js"),[],import.meta.url)},{id:"dream-maker",name:"Dream Maker",import:()=>k(()=>import("./dream-maker-BsoKROiO.js"),[],import.meta.url)},{id:"edge",name:"Edge",import:()=>k(()=>import("./edge-Brl-y200.js"),__vite__mapDeps([29,11,1,2,3,15]),import.meta.url)},{id:"elixir",name:"Elixir",import:()=>k(()=>import("./elixir-CGzfkNtR.js"),__vite__mapDeps([30,1,2,3]),import.meta.url)},{id:"elm",name:"Elm",import:()=>k(()=>import("./elm-DmpuOW2E.js"),__vite__mapDeps([31,25,26]),import.meta.url)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>k(()=>import("./emacs-lisp-BcpYGiHp.js"),[],import.meta.url)},{id:"erb",name:"ERB",import:()=>k(()=>import("./erb-BNAqOH5i.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url)},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>k(()=>import("./erlang-DAw79KxH.js"),__vite__mapDeps([39,40]),import.meta.url)},{id:"fennel",name:"Fennel",import:()=>k(()=>import("./fennel-qzPJJAAI.js"),[],import.meta.url)},{id:"fish",name:"Fish",import:()=>k(()=>import("./fish-BTv9qkVe.js"),[],import.meta.url)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>k(()=>import("./fluent-BsukS3Co.js"),[],import.meta.url)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>k(()=>import("./fortran-fixed-form-D_2otJTs.js"),__vite__mapDeps([41,42]),import.meta.url)},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>k(()=>import("./fortran-free-form-Ix_0F1Zz.js"),[],import.meta.url)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>k(()=>import("./fsharp-DmSnwM-W.js"),__vite__mapDeps([43,40]),import.meta.url)},{id:"gdresource",name:"GDResource",import:()=>k(()=>import("./gdresource-BLuZCTp3.js"),__vite__mapDeps([44,45,46]),import.meta.url)},{id:"gdscript",name:"GDScript",import:()=>k(()=>import("./gdscript-fffAh1pn.js"),[],import.meta.url)},{id:"gdshader",name:"GDShader",import:()=>k(()=>import("./gdshader-BC7WJXp9.js"),[],import.meta.url)},{id:"genie",name:"Genie",import:()=>k(()=>import("./genie-IZOju1hG.js"),[],import.meta.url)},{id:"gherkin",name:"Gherkin",import:()=>k(()=>import("./gherkin-DUpgZfGr.js"),[],import.meta.url)},{id:"git-commit",name:"Git Commit Message",import:()=>k(()=>import("./git-commit-Bptnmh-c.js"),__vite__mapDeps([47,48]),import.meta.url)},{id:"git-rebase",name:"Git Rebase Message",import:()=>k(()=>import("./git-rebase-CqNhyBhE.js"),__vite__mapDeps([49,28]),import.meta.url)},{id:"gleam",name:"Gleam",import:()=>k(()=>import("./gleam-CCCEh_av.js"),[],import.meta.url)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>k(()=>import("./glimmer-js-CamsSOgS.js"),__vite__mapDeps([50,2,11,3,1]),import.meta.url)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>k(()=>import("./glimmer-ts-DpQMos9P.js"),__vite__mapDeps([51,11,3,2,1]),import.meta.url)},{id:"glsl",name:"GLSL",import:()=>k(()=>import("./glsl-BDbjGBhJ.js"),__vite__mapDeps([25,26]),import.meta.url)},{id:"gnuplot",name:"Gnuplot",import:()=>k(()=>import("./gnuplot-D0FoiB-W.js"),[],import.meta.url)},{id:"go",name:"Go",import:()=>k(()=>import("./go-BR7YH85S.js"),[],import.meta.url)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>k(()=>import("./graphql-DMns_A3G.js"),__vite__mapDeps([35,2,11,36,13]),import.meta.url)},{id:"groovy",name:"Groovy",import:()=>k(()=>import("./groovy-D9sPn4Z-.js"),[],import.meta.url)},{id:"hack",name:"Hack",import:()=>k(()=>import("./hack-CXH7pT2m.js"),__vite__mapDeps([52,1,2,3,16]),import.meta.url)},{id:"haml",name:"Ruby Haml",import:()=>k(()=>import("./haml-DiuhmbKg.js"),__vite__mapDeps([34,2,3]),import.meta.url)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>k(()=>import("./handlebars-PuluTGUb.js"),__vite__mapDeps([53,1,2,3,38]),import.meta.url)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>k(()=>import("./haskell-Cp0NQEkn.js"),[],import.meta.url)},{id:"haxe",name:"Haxe",import:()=>k(()=>import("./haxe-D-PmAGDa.js"),[],import.meta.url)},{id:"hcl",name:"HashiCorp HCL",import:()=>k(()=>import("./hcl-DRMo6eis.js"),[],import.meta.url)},{id:"hjson",name:"Hjson",import:()=>k(()=>import("./hjson-BPEpXUFQ.js"),[],import.meta.url)},{id:"hlsl",name:"HLSL",import:()=>k(()=>import("./hlsl-B-PjNM4a.js"),[],import.meta.url)},{id:"html",name:"HTML",import:()=>k(()=>import("./html-ReiWYoHo.js"),__vite__mapDeps([1,2,3]),import.meta.url)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>k(()=>import("./html-derivative-BEFkAAPd.js"),__vite__mapDeps([15,1,2,3]),import.meta.url)},{id:"http",name:"HTTP",import:()=>k(()=>import("./http-BPFbEDC3.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]),import.meta.url)},{id:"hxml",name:"HXML",import:()=>k(()=>import("./hxml-DB3_nACV.js"),__vite__mapDeps([55,56]),import.meta.url)},{id:"hy",name:"Hy",import:()=>k(()=>import("./hy-CLIvbAhW.js"),[],import.meta.url)},{id:"imba",name:"Imba",import:()=>k(()=>import("./imba-B-tO30Ge.js"),[],import.meta.url)},{id:"ini",name:"INI",aliases:["properties"],import:()=>k(()=>import("./ini-Bpxu4Zsc.js"),[],import.meta.url)},{id:"java",name:"Java",import:()=>k(()=>import("./java-DtRXFtDl.js"),[],import.meta.url)},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>k(()=>import("./javascript-CY0YvwoL.js"),[],import.meta.url)},{id:"jinja",name:"Jinja",import:()=>k(()=>import("./jinja-CXJbPSuL.js"),__vite__mapDeps([57,1,2,3]),import.meta.url)},{id:"jison",name:"Jison",import:()=>k(()=>import("./jison-iRP-Iv-P.js"),__vite__mapDeps([58,2]),import.meta.url)},{id:"json",name:"JSON",import:()=>k(()=>import("./json-LWN7Ml79.js"),[],import.meta.url)},{id:"json5",name:"JSON5",import:()=>k(()=>import("./json5-CgCB487x.js"),[],import.meta.url)},{id:"jsonc",name:"JSON with Comments",import:()=>k(()=>import("./jsonc-BXrjvC_e.js"),[],import.meta.url)},{id:"jsonl",name:"JSON Lines",import:()=>k(()=>import("./jsonl-D5dm1SHP.js"),[],import.meta.url)},{id:"jsonnet",name:"Jsonnet",import:()=>k(()=>import("./jsonnet-B60UklUs.js"),[],import.meta.url)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>k(()=>import("./jssm-CsqlGknB.js"),[],import.meta.url)},{id:"jsx",name:"JSX",import:()=>k(()=>import("./jsx-g2NrEQII.js"),[],import.meta.url)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>k(()=>import("./julia-BabrhEml.js"),__vite__mapDeps([59,23,24,25,26,16,20,2,60]),import.meta.url)},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>k(()=>import("./kotlin-DiV2Dt9D.js"),[],import.meta.url)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>k(()=>import("./kusto-KSLuQd98.js"),[],import.meta.url)},{id:"latex",name:"LaTeX",import:()=>k(()=>import("./latex-CCwiU5tQ.js"),__vite__mapDeps([61,62,60]),import.meta.url)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>k(()=>import("./lean-C20waPKk.js"),[],import.meta.url)},{id:"less",name:"Less",import:()=>k(()=>import("./less-DKKxO4Pm.js"),[],import.meta.url)},{id:"liquid",name:"Liquid",import:()=>k(()=>import("./liquid-QTP3a8yd.js"),__vite__mapDeps([63,1,2,3,9]),import.meta.url)},{id:"llvm",name:"LLVM IR",import:()=>k(()=>import("./llvm-CfjccL00.js"),[],import.meta.url)},{id:"log",name:"Log file",import:()=>k(()=>import("./log-CnKjEmrw.js"),[],import.meta.url)},{id:"logo",name:"Logo",import:()=>k(()=>import("./logo-BmG1tMr6.js"),[],import.meta.url)},{id:"lua",name:"Lua",import:()=>k(()=>import("./lua-B09NiSMa.js"),__vite__mapDeps([37,26]),import.meta.url)},{id:"luau",name:"Luau",import:()=>k(()=>import("./luau-C2pF66fA.js"),[],import.meta.url)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>k(()=>import("./make-Ccm3NI5i.js"),[],import.meta.url)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>k(()=>import("./markdown-DY93LJPj.js"),[],import.meta.url)},{id:"marko",name:"Marko",import:()=>k(()=>import("./marko-CgCapwG0.js"),__vite__mapDeps([64,3,65,5,11]),import.meta.url)},{id:"matlab",name:"MATLAB",import:()=>k(()=>import("./matlab-nYX3zffi.js"),[],import.meta.url)},{id:"mdc",name:"MDC",import:()=>k(()=>import("./mdc-CVidKc4b.js"),__vite__mapDeps([66,40,38,15,1,2,3]),import.meta.url)},{id:"mdx",name:"MDX",import:()=>k(()=>import("./mdx-C8C9IGe9.js"),[],import.meta.url)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>k(()=>import("./mermaid-ZuTRVWig.js"),[],import.meta.url)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>k(()=>import("./mipsasm-BjAqecqh.js"),[],import.meta.url)},{id:"mojo",name:"Mojo",import:()=>k(()=>import("./mojo-gr1MWCNv.js"),[],import.meta.url)},{id:"move",name:"Move",import:()=>k(()=>import("./move-BJN6DhLB.js"),[],import.meta.url)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>k(()=>import("./narrat-BTSicUR-.js"),[],import.meta.url)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>k(()=>import("./nextflow-CvZ2-N7x.js"),[],import.meta.url)},{id:"nginx",name:"Nginx",import:()=>k(()=>import("./nginx-CtwUG8yW.js"),__vite__mapDeps([67,37,26]),import.meta.url)},{id:"nim",name:"Nim",import:()=>k(()=>import("./nim-BCqJOqd2.js"),__vite__mapDeps([68,26,1,2,3,7,8,25,40]),import.meta.url)},{id:"nix",name:"Nix",import:()=>k(()=>import("./nix-DiXPdoNa.js"),[],import.meta.url)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>k(()=>import("./nushell-a9nsepcr.js"),[],import.meta.url)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>k(()=>import("./objective-c-DLT9zZoE.js"),[],import.meta.url)},{id:"objective-cpp",name:"Objective-C++",import:()=>k(()=>import("./objective-cpp-DKXr-AK_.js"),[],import.meta.url)},{id:"ocaml",name:"OCaml",import:()=>k(()=>import("./ocaml-DP9q6K5L.js"),[],import.meta.url)},{id:"pascal",name:"Pascal",import:()=>k(()=>import("./pascal-DjTTLVNS.js"),[],import.meta.url)},{id:"perl",name:"Perl",import:()=>k(()=>import("./perl-Da10OPbb.js"),__vite__mapDeps([69,1,2,3,7,8,16]),import.meta.url)},{id:"php",name:"PHP",import:()=>k(()=>import("./php-hSYFjEJr.js"),__vite__mapDeps([70,1,2,3,7,8,16,9]),import.meta.url)},{id:"plsql",name:"PL/SQL",import:()=>k(()=>import("./plsql-CJrHCTnj.js"),[],import.meta.url)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>k(()=>import("./po-y5MdiEbo.js"),[],import.meta.url)},{id:"polar",name:"Polar",import:()=>k(()=>import("./polar-Bsx6RkUC.js"),[],import.meta.url)},{id:"postcss",name:"PostCSS",import:()=>k(()=>import("./postcss-CeUBPB2S.js"),[],import.meta.url)},{id:"powerquery",name:"PowerQuery",import:()=>k(()=>import("./powerquery-CW27I574.js"),[],import.meta.url)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>k(()=>import("./powershell-DSYJ6xcj.js"),[],import.meta.url)},{id:"prisma",name:"Prisma",import:()=>k(()=>import("./prisma-CLoN-gBj.js"),[],import.meta.url)},{id:"prolog",name:"Prolog",import:()=>k(()=>import("./prolog-Bgt5DHUA.js"),[],import.meta.url)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>k(()=>import("./proto-BVbLr_ub.js"),[],import.meta.url)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>k(()=>import("./pug-DYUvS0f2.js"),__vite__mapDeps([71,2,3,1]),import.meta.url)},{id:"puppet",name:"Puppet",import:()=>k(()=>import("./puppet-TSkl_nn0.js"),[],import.meta.url)},{id:"purescript",name:"PureScript",import:()=>k(()=>import("./purescript-BrDje9qL.js"),[],import.meta.url)},{id:"python",name:"Python",aliases:["py"],import:()=>k(()=>import("./python-DlV7vnVD.js"),[],import.meta.url)},{id:"qml",name:"QML",import:()=>k(()=>import("./qml-DiX3J200.js"),__vite__mapDeps([72,2]),import.meta.url)},{id:"qmldir",name:"QML Directory",import:()=>k(()=>import("./qmldir-CSZk7E48.js"),[],import.meta.url)},{id:"qss",name:"Qt Style Sheets",import:()=>k(()=>import("./qss-DACx-k9g.js"),[],import.meta.url)},{id:"r",name:"R",import:()=>k(()=>import("./r-C1kzXVmM.js"),[],import.meta.url)},{id:"racket",name:"Racket",import:()=>k(()=>import("./racket-D1nq-KeH.js"),[],import.meta.url)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>k(()=>import("./raku-DocPDKZq.js"),[],import.meta.url)},{id:"razor",name:"ASP.NET Razor",import:()=>k(()=>import("./razor-7Qmv-3mF.js"),__vite__mapDeps([73,1,2,3,74]),import.meta.url)},{id:"reg",name:"Windows Registry Script",import:()=>k(()=>import("./reg-5ydmJHEw.js"),[],import.meta.url)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>k(()=>import("./regexp-CpyjTnFF.js"),[],import.meta.url)},{id:"rel",name:"Rel",import:()=>k(()=>import("./rel-D68lwU-3.js"),[],import.meta.url)},{id:"riscv",name:"RISC-V",import:()=>k(()=>import("./riscv-Cl4WfXj6.js"),[],import.meta.url)},{id:"rst",name:"reStructuredText",import:()=>k(()=>import("./rst-DU5WA_Li.js"),__vite__mapDeps([75,15,1,2,3,23,24,25,26,16,20,28,38,76,33,34,7,8,35,11,36,13,37]),import.meta.url)},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>k(()=>import("./ruby-DJftxM78.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url)},{id:"rust",name:"Rust",aliases:["rs"],import:()=>k(()=>import("./rust-DpWcZSqc.js"),[],import.meta.url)},{id:"sas",name:"SAS",import:()=>k(()=>import("./sas-BBCK0tAG.js"),__vite__mapDeps([77,16]),import.meta.url)},{id:"sass",name:"Sass",import:()=>k(()=>import("./sass-DY_rGA2-.js"),[],import.meta.url)},{id:"scala",name:"Scala",import:()=>k(()=>import("./scala-CYRsmRER.js"),[],import.meta.url)},{id:"scheme",name:"Scheme",import:()=>k(()=>import("./scheme-C45fPb3F.js"),[],import.meta.url)},{id:"scss",name:"SCSS",import:()=>k(()=>import("./scss-CHxzYwli.js"),__vite__mapDeps([5,3]),import.meta.url)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>k(()=>import("./sdbl-BpucmfEo.js"),[],import.meta.url)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>k(()=>import("./shaderlab-DNyPh2Q6.js"),__vite__mapDeps([78,79]),import.meta.url)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>k(()=>import("./shellscript-B8OHlvmy.js"),[],import.meta.url)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>k(()=>import("./shellsession-OATBsyRD.js"),__vite__mapDeps([80,28]),import.meta.url)},{id:"smalltalk",name:"Smalltalk",import:()=>k(()=>import("./smalltalk-CKvddXL8.js"),[],import.meta.url)},{id:"solidity",name:"Solidity",import:()=>k(()=>import("./solidity-NK5CeKHG.js"),[],import.meta.url)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>k(()=>import("./soy-BjzVbqVk.js"),__vite__mapDeps([81,1,2,3]),import.meta.url)},{id:"sparql",name:"SPARQL",import:()=>k(()=>import("./sparql-CLNNOQQI.js"),__vite__mapDeps([82,83]),import.meta.url)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>k(()=>import("./splunk-CFtInczE.js"),[],import.meta.url)},{id:"sql",name:"SQL",import:()=>k(()=>import("./sql-BhJCBb_s.js"),[],import.meta.url)},{id:"ssh-config",name:"SSH Config",import:()=>k(()=>import("./ssh-config-Dqsr-I88.js"),[],import.meta.url)},{id:"stata",name:"Stata",import:()=>k(()=>import("./stata-G4GYNNPE.js"),__vite__mapDeps([84,16]),import.meta.url)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>k(()=>import("./stylus-BeJftkpb.js"),[],import.meta.url)},{id:"svelte",name:"Svelte",import:()=>k(()=>import("./svelte-Dg-n8Id4.js"),__vite__mapDeps([85,2,11,3,12]),import.meta.url)},{id:"swift",name:"Swift",import:()=>k(()=>import("./swift-CvVgI3Em.js"),[],import.meta.url)},{id:"system-verilog",name:"SystemVerilog",import:()=>k(()=>import("./system-verilog-B3nElewZ.js"),[],import.meta.url)},{id:"systemd",name:"Systemd Units",import:()=>k(()=>import("./systemd-B7SlkmfE.js"),[],import.meta.url)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>k(()=>import("./talonscript-BrsbXmRy.js"),[],import.meta.url)},{id:"tasl",name:"Tasl",import:()=>k(()=>import("./tasl-CMkPZNj1.js"),[],import.meta.url)},{id:"tcl",name:"Tcl",import:()=>k(()=>import("./tcl-CiyEbZSK.js"),[],import.meta.url)},{id:"templ",name:"Templ",import:()=>k(()=>import("./templ-C0tOEwaA.js"),__vite__mapDeps([86,87,2,3]),import.meta.url)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>k(()=>import("./terraform-BUB-_BlF.js"),[],import.meta.url)},{id:"tex",name:"TeX",import:()=>k(()=>import("./tex-BGsfIjRo.js"),__vite__mapDeps([62,60]),import.meta.url)},{id:"toml",name:"TOML",import:()=>k(()=>import("./toml-VldhK7iW.js"),[],import.meta.url)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>k(()=>import("./ts-tags-DxCDHihD.js"),__vite__mapDeps([88,11,3,2,25,26,1,16,7,8]),import.meta.url)},{id:"tsv",name:"TSV",import:()=>k(()=>import("./tsv-BQ9ptESM.js"),[],import.meta.url)},{id:"tsx",name:"TSX",import:()=>k(()=>import("./tsx-DYwE5ssU.js"),[],import.meta.url)},{id:"turtle",name:"Turtle",import:()=>k(()=>import("./turtle-BVy4HXn4.js"),[],import.meta.url)},{id:"twig",name:"Twig",import:()=>k(()=>import("./twig-D8xgA4Ji.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url)},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>k(()=>import("./typescript-C6YI4KwS.js"),[],import.meta.url)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>k(()=>import("./typespec-DDqafzeT.js"),[],import.meta.url)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>k(()=>import("./typst-JIZTSUoJ.js"),[],import.meta.url)},{id:"v",name:"V",import:()=>k(()=>import("./v-CfE8ItaL.js"),[],import.meta.url)},{id:"vala",name:"Vala",import:()=>k(()=>import("./vala-p2PL1w-1.js"),[],import.meta.url)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>k(()=>import("./vb-Dv-GCw1m.js"),[],import.meta.url)},{id:"verilog",name:"Verilog",import:()=>k(()=>import("./verilog-DKP7kpC6.js"),[],import.meta.url)},{id:"vhdl",name:"VHDL",import:()=>k(()=>import("./vhdl-Cog-DhcW.js"),[],import.meta.url)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>k(()=>import("./viml-0AN1aqkP.js"),[],import.meta.url)},{id:"vue",name:"Vue",import:()=>k(()=>import("./vue-ChwqA4lT.js"),__vite__mapDeps([90,3,2,11,9,15,1]),import.meta.url)},{id:"vue-html",name:"Vue HTML",import:()=>k(()=>import("./vue-html-DP_EF96N.js"),__vite__mapDeps([91,90,3,2,11,9,15,1]),import.meta.url)},{id:"vue-vine",name:"Vue Vine",import:()=>k(()=>import("./vue-vine-K4R7Z1Ei.js"),__vite__mapDeps([92,3,5,65,93,12,90,2,11,9,15,1]),import.meta.url)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>k(()=>import("./vyper-sB2l1MOO.js"),[],import.meta.url)},{id:"wasm",name:"WebAssembly",import:()=>k(()=>import("./wasm-CSAWeJiV.js"),[],import.meta.url)},{id:"wenyan",name:"Wenyan",aliases:["\u6587\u8A00"],import:()=>k(()=>import("./wenyan-CLHHXU5e.js"),[],import.meta.url)},{id:"wgsl",name:"WGSL",import:()=>k(()=>import("./wgsl-DiTcYanS.js"),[],import.meta.url)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>k(()=>import("./wikitext-DT8E9qe0.js"),[],import.meta.url)},{id:"wit",name:"WebAssembly Interface Types",import:()=>k(()=>import("./wit-CtjT-RdY.js"),[],import.meta.url)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>k(()=>import("./wolfram-1xJNnwe2.js"),[],import.meta.url)},{id:"xml",name:"XML",import:()=>k(()=>import("./xml-BsgRw6d1.js"),__vite__mapDeps([7,8]),import.meta.url)},{id:"xsl",name:"XSL",import:()=>k(()=>import("./xsl-DCNnPbrB.js"),__vite__mapDeps([94,7,8]),import.meta.url)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>k(()=>import("./yaml-c2-Vhxho.js"),[],import.meta.url)},{id:"zenscript",name:"ZenScript",import:()=>k(()=>import("./zenscript-ChP1MlQf.js"),[],import.meta.url)},{id:"zig",name:"Zig",import:()=>k(()=>import("./zig-rivS3YQG.js"),[],import.meta.url)}],bT=Object.fromEntries(mp.map(e=>[e.id,e.import])),kT=Object.fromEntries(mp.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),fp={...bT,...kT},AT=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>k(()=>import("./andromeeda-C-Jbm3Hp.js"),[],import.meta.url)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>k(()=>import("./aurora-x-D-2ljcwZ.js"),[],import.meta.url)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>k(()=>import("./ayu-dark-Cv9koXgw.js"),[],import.meta.url)},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:()=>k(()=>import("./catppuccin-frappe-BBxmzUt6.js"),[],import.meta.url)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>k(()=>import("./catppuccin-latte-Jep7L2Wt.js"),[],import.meta.url)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>k(()=>import("./catppuccin-macchiato-CIUZ1G5V.js"),[],import.meta.url)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>k(()=>import("./catppuccin-mocha-NBseiqgx.js"),[],import.meta.url)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>k(()=>import("./dark-plus-C3mMm8J8.js"),[],import.meta.url)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>k(()=>import("./dracula-BzJJZx-M.js"),[],import.meta.url)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>k(()=>import("./dracula-soft-BXkSAIEj.js"),[],import.meta.url)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>k(()=>import("./everforest-dark-BgDCqdQA.js"),[],import.meta.url)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>k(()=>import("./everforest-light-C8M2exoo.js"),[],import.meta.url)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>k(()=>import("./github-dark-DHJKELXO.js"),[],import.meta.url)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>k(()=>import("./github-dark-default-Cuk6v7N8.js"),[],import.meta.url)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>k(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[],import.meta.url)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>k(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[],import.meta.url)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>k(()=>import("./github-light-DAi9KRSo.js"),[],import.meta.url)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>k(()=>import("./github-light-default-D7oLnXFd.js"),[],import.meta.url)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>k(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[],import.meta.url)},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>k(()=>import("./gruvbox-dark-hard-D1uDOp7C.js"),[],import.meta.url)},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>k(()=>import("./gruvbox-dark-medium-DkhsQLT2.js"),[],import.meta.url)},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>k(()=>import("./gruvbox-dark-soft-CcyOm34o.js"),[],import.meta.url)},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>k(()=>import("./gruvbox-light-hard-DKzvysjW.js"),[],import.meta.url)},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>k(()=>import("./gruvbox-light-medium-DPcUKYIF.js"),[],import.meta.url)},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>k(()=>import("./gruvbox-light-soft-CGqH5EJj.js"),[],import.meta.url)},{id:"houston",displayName:"Houston",type:"dark",import:()=>k(()=>import("./houston-DnULxvSX.js"),[],import.meta.url)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>k(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[],import.meta.url)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>k(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[],import.meta.url)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>k(()=>import("./kanagawa-wave-DWedfzmr.js"),[],import.meta.url)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>k(()=>import("./laserwave-DUszq2jm.js"),[],import.meta.url)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>k(()=>import("./light-plus-B7mTdjB0.js"),[],import.meta.url)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>k(()=>import("./material-theme-D5KoaKCx.js"),[],import.meta.url)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>k(()=>import("./material-theme-darker-BfHTSMKl.js"),[],import.meta.url)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>k(()=>import("./material-theme-lighter-B0m2ddpp.js"),[],import.meta.url)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>k(()=>import("./material-theme-ocean-CyktbL80.js"),[],import.meta.url)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>k(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[],import.meta.url)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>k(()=>import("./min-dark-CafNBF8u.js"),[],import.meta.url)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>k(()=>import("./min-light-CTRr51gU.js"),[],import.meta.url)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>k(()=>import("./monokai-D4h5O-jR.js"),[],import.meta.url)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>k(()=>import("./night-owl-C39BiMTA.js"),[],import.meta.url)},{id:"nord",displayName:"Nord",type:"dark",import:()=>k(()=>import("./nord-Ddv68eIx.js"),[],import.meta.url)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>k(()=>import("./one-dark-pro-DVMEJ2y_.js"),[],import.meta.url)},{id:"one-light",displayName:"One Light",type:"light",import:()=>k(()=>import("./one-light-PoHY5YXO.js"),[],import.meta.url)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>k(()=>import("./plastic-3e1v2bzS.js"),[],import.meta.url)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>k(()=>import("./poimandres-CS3Unz2-.js"),[],import.meta.url)},{id:"red",displayName:"Red",type:"dark",import:()=>k(()=>import("./red-bN70gL4F.js"),[],import.meta.url)},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:()=>k(()=>import("./rose-pine-BHrmToEH.js"),[],import.meta.url)},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:()=>k(()=>import("./rose-pine-dawn-CnK8MTSM.js"),[],import.meta.url)},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:()=>k(()=>import("./rose-pine-moon-NleAzG8P.js"),[],import.meta.url)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>k(()=>import("./slack-dark-BthQWCQV.js"),[],import.meta.url)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>k(()=>import("./slack-ochin-DqwNpetd.js"),[],import.meta.url)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>k(()=>import("./snazzy-light-Bw305WKR.js"),[],import.meta.url)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>k(()=>import("./solarized-dark-DXbdFlpD.js"),[],import.meta.url)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>k(()=>import("./solarized-light-L9t79GZl.js"),[],import.meta.url)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>k(()=>import("./synthwave-84-ChtBzv_y.js"),[],import.meta.url)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>k(()=>import("./tokyo-night-hegEt444.js"),[],import.meta.url)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>k(()=>import("./vesper-DU1UobuO.js"),[],import.meta.url)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>k(()=>import("./vitesse-black-Bkuqu6BP.js"),[],import.meta.url)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>k(()=>import("./vitesse-dark-D0r3Knsf.js"),[],import.meta.url)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>k(()=>import("./vitesse-light-CVO1_9PV.js"),[],import.meta.url)}],yT=Object.fromEntries(AT.map(e=>[e.id,e.import]));class bs extends Error{constructor(t){super(t),this.name="ShikiError"}}function xT(){return typeof performance<"u"?performance.now():Date.now()}const CT=(e,t)=>e+(t-e%t)%t;async function IT(e){let t,n;const r={};function i(c){n=c,r.HEAPU8=new Uint8Array(c),r.HEAPU32=new Uint32Array(c)}function o(c){try{return t.grow(c-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}const s=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function a(c,u){return c?(function(h,p,m=1024){const f=p+m;let T=p;for(;h[T]&&!(T>=f);)++T;if(T-p>16&&h.buffer&&s)return s.decode(h.subarray(p,T));let g="";for(;p<T;){let _=h[p++];if(!(128&_)){g+=String.fromCharCode(_);continue}const x=63&h[p++];if((224&_)==192){g+=String.fromCharCode((31&_)<<6|x);continue}const E=63&h[p++];if(_=(240&_)==224?(15&_)<<12|x<<6|E:(7&_)<<18|x<<12|E<<6|63&h[p++],_<65536)g+=String.fromCharCode(_);else{const y=_-65536;g+=String.fromCharCode(55296|y>>10,56320|1023&y)}}return g})(r.HEAPU8,c,u):""}const l={emscripten_get_now:xT,emscripten_memcpy_big:function(c,u,h){r.HEAPU8.copyWithin(c,u,u+h)},emscripten_resize_heap:function(c){const u=r.HEAPU8.length,h=2147483648;if((c>>>=0)>h)return!1;for(let p=1;p<=4;p*=2){let m=u*(1+.2/p);if(m=Math.min(m,c+100663296),o(Math.min(h,CT(Math.max(c,m),65536))))return!0}return!1},fd_write:()=>0};return await(async function(){const c={env:l,wasi_snapshot_preview1:l},u=await e(c);t=u.memory,i(t.buffer),Object.assign(r,u),r.UTF8ToString=a})(),r}var ST=Object.defineProperty,Oe=(e,t,n)=>((r,i,o)=>i in r?ST(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o)(e,typeof t!="symbol"?t+"":t,n);let Be=null;class xi{constructor(t){Oe(this,"utf16Length"),Oe(this,"utf8Length"),Oe(this,"utf16Value"),Oe(this,"utf8Value"),Oe(this,"utf16OffsetToUtf8"),Oe(this,"utf8OffsetToUtf16");const n=t.length,r=xi._utf8ByteLength(t),i=r!==n,o=i?new Uint32Array(n+1):null;i&&(o[n]=r);const s=i?new Uint32Array(r+1):null;i&&(s[r]=n);const a=new Uint8Array(r);let l=0;for(let c=0;c<n;c++){const u=t.charCodeAt(c);let h=u,p=!1;if(u>=55296&&u<=56319&&c+1<n){const m=t.charCodeAt(c+1);m>=56320&&m<=57343&&(h=65536+(u-55296<<10)|m-56320,p=!0)}i&&(o[c]=l,p&&(o[c+1]=l),h<=127?s[l+0]=c:h<=2047?(s[l+0]=c,s[l+1]=c):h<=65535?(s[l+0]=c,s[l+1]=c,s[l+2]=c):(s[l+0]=c,s[l+1]=c,s[l+2]=c,s[l+3]=c)),h<=127?a[l++]=h:h<=2047?(a[l++]=192|(1984&h)>>>6,a[l++]=128|(63&h)>>>0):h<=65535?(a[l++]=224|(61440&h)>>>12,a[l++]=128|(4032&h)>>>6,a[l++]=128|(63&h)>>>0):(a[l++]=240|(1835008&h)>>>18,a[l++]=128|(258048&h)>>>12,a[l++]=128|(4032&h)>>>6,a[l++]=128|(63&h)>>>0),p&&c++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=a,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let n=0;for(let r=0,i=t.length;r<i;r++){const o=t.charCodeAt(r);let s=o,a=!1;if(o>=55296&&o<=56319&&r+1<i){const l=t.charCodeAt(r+1);l>=56320&&l<=57343&&(s=65536+(o-55296<<10)|l-56320,a=!0)}n+=s<=127?1:s<=2047?2:s<=65535?3:4,a&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const Ci=class bt{constructor(t){if(Oe(this,"id",++bt.LAST_ID),Oe(this,"_onigBinding"),Oe(this,"content"),Oe(this,"utf16Length"),Oe(this,"utf8Length"),Oe(this,"utf16OffsetToUtf8"),Oe(this,"utf8OffsetToUtf16"),Oe(this,"ptr"),!Be)throw new bs("Must invoke loadWasm first.");this._onigBinding=Be,this.content=t;const n=new xi(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!bt._sharedPtrInUse?(bt._sharedPtr||(bt._sharedPtr=Be.omalloc(1e4)),bt._sharedPtrInUse=!0,Be.HEAPU8.set(n.utf8Value,bt._sharedPtr),this.ptr=bt._sharedPtr):this.ptr=n.createString(Be)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===bt._sharedPtr?bt._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Oe(Ci,"LAST_ID",0),Oe(Ci,"_sharedPtr",0),Oe(Ci,"_sharedPtrInUse",!1);let Ii,gp=Ci;class DT{constructor(t){if(Oe(this,"_onigBinding"),Oe(this,"_ptr"),!Be)throw new bs("Must invoke loadWasm first.");const n=[],r=[];for(let a=0,l=t.length;a<l;a++){const c=new xi(t[a]);n[a]=c.createString(Be),r[a]=c.utf8Length}const i=Be.omalloc(4*t.length);Be.HEAPU32.set(n,i/4);const o=Be.omalloc(4*t.length);Be.HEAPU32.set(r,o/4);const s=Be.createOnigScanner(i,o,t.length);for(let a=0,l=t.length;a<l;a++)Be.ofree(n[a]);Be.ofree(o),Be.ofree(i),s===0&&(function(a){throw new bs(a.UTF8ToString(a.getLastOnigError()))})(Be),this._onigBinding=Be,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let i=0;if(typeof r=="number"&&(i=r),typeof t=="string"){t=new gp(t);const o=this._findNextMatchSync(t,n,!1,i);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,i)}_findNextMatchSync(t,n,r,i){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),i);if(s===0)return null;const a=o.HEAPU32;let l=s/4;const c=a[l++],u=a[l++],h=[];for(let p=0;p<u;p++){const m=t.convertUtf8OffsetToUtf16(a[l++]),f=t.convertUtf8OffsetToUtf16(a[l++]);h[p]={start:m,end:f,length:f-m}}return{index:c,captureIndices:h}}}function NT(e){return Ii||(Ii=(async function(){Be=await IT(async t=>{let n=e;var r;return n=await n,typeof n=="function"&&(n=await n(t)),typeof n=="function"&&(n=await n(t)),typeof n.instantiator=="function"?n=await n.instantiator(t):(function(i){return typeof i.default=="function"})(n)?n=await n.default(t):((function(i){return i.data!==void 0})(n)&&(n=n.data),(function(i){return typeof Response<"u"&&i instanceof Response})(n)?n=typeof WebAssembly.instantiateStreaming=="function"?await(r=n,i=>WebAssembly.instantiateStreaming(r,i))(t):await(function(i){return async o=>{const s=await i.arrayBuffer();return WebAssembly.instantiate(s,o)}})(n)(t):(function(i){var o;return typeof ArrayBuffer<"u"&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||typeof Buffer<"u"&&((o=Buffer.isBuffer)==null?void 0:o.call(Buffer,i))||typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&i instanceof Uint32Array})(n)?n=await ks(n)(t):n instanceof WebAssembly.Module?n=await ks(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await ks(n.default)(t))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})})(),Ii)}function ks(e){return t=>WebAssembly.instantiate(e,t)}const _p=TT({langs:fp,themes:yT,engine:()=>(async function(e){return e&&await NT(e),{createScanner:t=>new DT(t.map(n=>typeof n=="string"?n:n.source)),createString:t=>new gp(t)}})(k(()=>import("./wasm--yL7jHw-.js"),[],import.meta.url))});function On(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}const As=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Fe=String.raw;function Rn(e,t){if(e==null)throw new Error(t??"Value expected");return e}const Ep=Fe`\[\^?`,Tp=`c.? | C(?:-.?)?|${Fe`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Fe`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Fe`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Fe`o\{[^\}]*\}?`}|${Fe`\d{1,3}`}`,ys=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Si=new RegExp(Fe`
48
+ \\ (?:
49
+ ${Tp}
50
+ | [gk]<[^>]*>?
51
+ | [gk]'[^']*'?
52
+ | .
53
+ )
54
+ | \( (?:
55
+ \? (?:
56
+ [:=!>({]
57
+ | <[=!]
58
+ | <[^>]*>
59
+ | '[^']*'
60
+ | ~\|?
61
+ | #(?:[^)\\]|\\.?)*
62
+ | [^:)]*[:)]
63
+ )?
64
+ | \*[^\)]*\)?
65
+ )?
66
+ | (?:${ys.source})+
67
+ | ${Ep}
68
+ | .
69
+ `.replace(/\s+/g,""),"gsu"),xs=new RegExp(Fe`
70
+ \\ (?:
71
+ ${Tp}
72
+ | .
73
+ )
74
+ | \[:(?:\^?\p{Alpha}+|\^):\]
75
+ | ${Ep}
76
+ | &&
77
+ | .
78
+ `.replace(/\s+/g,""),"gsu");function wT(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=(function(h){const p={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let m=0;m<h.length;m++){const f=h[m];if(!"imxDPSWy".includes(f))throw new Error(`Invalid flag "${f}"`);if(f!=="y")p[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[f]]=!0;else{if(!/^y{[gw]}/.test(h.slice(m)))throw new Error('Invalid or unspecified flag "y" mode');p.textSegmentMode=h[m+2]==="g"?"grapheme":"word",m+=3}}return p})(n.flags),i=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX:()=>i.at(-1),numOpenGroups:0,popModX(){i.pop()},pushModX(h){i.push(h)},replaceCurrentModX(h){i[i.length-1]=h},singleline:n.rules.singleline};let s,a=[];for(Si.lastIndex=0;s=Si.exec(e);){const h=LT(o,e,s[0],Si.lastIndex);h.tokens?a.push(...h.tokens):h.token&&a.push(h.token),h.lastIndex!==void 0&&(Si.lastIndex=h.lastIndex)}const l=[];let c=0;a.filter(h=>h.type==="GroupOpen").forEach(h=>{h.kind==="capturing"?h.number=++c:h.raw==="("&&l.push(h)}),c||l.forEach((h,p)=>{h.kind="capturing",h.number=p+1});const u=c||l.length;return{tokens:a.map(h=>h.type==="EscapedNumber"?(function(p,m){const{raw:f,inCharClass:T}=p,g=f.slice(1);if(!T&&(g!=="0"&&g.length===1||g[0]!=="0"&&+g<=m))return[Ap(f)];const _=[],x=g.match(/^[0-7]+|\d/g);for(let E=0;E<x.length;E++){const y=x[E];let w;if(E===0&&y!=="8"&&y!=="9"){if(w=parseInt(y,8),w>127)throw new Error(Fe`Octal encoded byte above 177 unsupported "${f}"`)}else w=On(y);_.push(yt(w,(E===0?"\\":"")+y))}return _})(h,u):h).flat(),flags:r}}function LT(e,t,n,r){const[i,o]=n;if(n==="["||n==="[^"){const s=(function(a,l,c){const u=[yp(l[1]==="^",l)];let h,p=1;for(xs.lastIndex=c;h=xs.exec(a);){const m=h[0];if(m[0]==="["&&m[1]!==":")p++,u.push(yp(m[1]==="^",m));else if(m==="]"){if(u.at(-1).type==="CharacterClassOpen")u.push(yt(93,m));else if(p--,u.push(vT(m)),!p)break}else{const f=OT(m);Array.isArray(f)?u.push(...f):u.push(f)}}return{tokens:u,lastIndex:xs.lastIndex||a.length}})(t,n,r);return{tokens:s.tokens,lastIndex:s.lastIndex}}if(i==="\\"){if("AbBGyYzZ".includes(o))return{token:kp(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:MT(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Ap(n)}}if(o==="K")return{token:xp("keep",n)};if(o==="N"||o==="R")return{token:nn("newline",n,{negate:o==="N"})};if(o==="O")return{token:nn("any",n)};if(o==="X")return{token:nn("text_segment",n)};const s=bp(n,{inCharClass:!1});return Array.isArray(s)?{tokens:s}:{token:s}}if(i==="("){if(o==="*")return{token:UT(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:FT(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:vn("group",n)};if(n==="(?>")return{token:vn("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:vn(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:vn("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:vn("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:PT(n)}}if(e.getCurrentModX()){if(n==="#"){const s=t.indexOf(`
79
+ `,r);return{lastIndex:s===-1?t.length:s}}if(/^\s$/.test(n)){const s=/\s+/y;return s.lastIndex=r,{lastIndex:s.exec(t)?s.lastIndex:r}}}return n==="."?{token:nn("dot",n)}:n==="^"||n==="$"?{token:kp(e.singleline?{"^":Fe`\A`,$:Fe`\Z`}[n]:n,n)}:n==="|"?{token:RT(n)}:ys.test(n)?{tokens:HT(n)}:{token:yt(On(n),n)}}function OT(e){if(e[0]==="\\")return bp(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!As.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return nn("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?(function(t){return{type:"CharacterClassHyphen",raw:t}})(e):e==="&&"?(function(t){return{type:"CharacterClassIntersector",raw:t}})(e):yt(On(e),e)}function bp(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return(function(r){const i=r[1]==="c"?r[2]:r[3];if(!i||!/[A-Za-z]/.test(i))throw new Error(`Unsupported control character "${r}"`);return yt(On(i.toUpperCase())-64,r)})(e);if("dDhHsSwW".includes(n))return(function(r){const i=r[1].toLowerCase();return nn({d:"digit",h:"hex",s:"space",w:"word"}[i],r,{negate:r[1]!==i})})(e);if(e.startsWith(Fe`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return(function(r){const{p:i,neg:o,value:s}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(r).groups;return nn("property",r,{value:s,negate:i==="P"&&!o||i==="p"&&!!o})})(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(s=>parseInt(s,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),o=new TextEncoder;return[...i].map(s=>{const a=[...o.encode(s)].map(l=>`\\x${l.toString(16)}`).join("");return yt(On(s),a)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return yt((function(r){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(r))throw new Error(`Incomplete or invalid escape "${r}"`);const i=r[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(r).groups.hex:r.slice(2);return parseInt(i,16)})(e),e);if(Cp.has(n))return yt(Cp.get(n),e);if(/\d/.test(n))return(function(r,i){return{type:"EscapedNumber",inCharClass:r,raw:i}})(t,e);if(e==="\\")throw new Error(Fe`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return yt(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function RT(e){return{type:"Alternator",raw:e}}function kp(e,t){return{type:"Assertion",kind:e,raw:t}}function Ap(e){return{type:"Backreference",raw:e}}function yt(e,t){return{type:"Character",value:e,raw:t}}function vT(e){return{type:"CharacterClassClose",raw:e}}function yp(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function nn(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function xp(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Rn(n.flags),raw:t}}function PT(e){return{type:"GroupClose",raw:e}}function vn(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function MT(e){return{type:"Subroutine",raw:e}}const BT=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Cp=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function FT(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??(r="");const i=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=Sp(n),s=Sp(r),a={};if(o&&(a.enable=o),s&&(a.disable=s),e.endsWith(")"))return t.replaceCurrentModX(i),xp("flags",e,{flags:a});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,vn("group",e,{...(o||s)&&{flags:a}});throw new Error(`Unexpected flag modifier "${e}"`)}function UT(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:i}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const o=i?i.split(",").filter(u=>u!=="").map(u=>/^[+-]?\d+$/.test(u)?+u:u):[],[s,a,l]=o,c=BT.has(n)?n.toLowerCase():"custom";switch(c){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof s=="string")throw new Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(o.length===2&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${a}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(typeof a=="number"||!/^(?:[<>!=]=|[<>])$/.test(a))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${a}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${c}"`)}return(function(u,h,p,m){return{type:"NamedCallout",kind:u,tag:h,arguments:p,raw:m}})(c,r??null,(i==null?void 0:i.split(","))??null,e)}function Ip(e){let t,n,r=null;if(e[0]==="{"){const{minStr:i,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,s=1e5;if(+i>s||o&&+o>s)throw new Error("Quantifier value unsupported in Oniguruma");if(t=+i,n=o===void 0?+i:o===""?1/0:+o,t>n&&(r="possessive",[t,n]=[n,t]),e.endsWith("?")){if(r==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');r="lazy"}else r||(r="greedy")}else t=e[0]==="+"?1:0,n=e[0]==="?"?1:1/0,r=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return(function(i,o,s,a){return{type:"Quantifier",kind:i,min:o,max:s,raw:a}})(r,t,n,e)}function Sp(e){const 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 HT(e){const t=[],n=new RegExp(ys,"gy");let r;for(;r=n.exec(e);){const i=r[0];if(i[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(i);if(o){const{min:s,max:a}=o.groups;if(+s>+a&&i.endsWith("?")){n.lastIndex--,t.push(Ip(i.slice(0,-1)));continue}}}t.push(Ip(i))}return t}function Dp(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}const GT=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Np(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=wT(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(p,m)=>{const f=r.tokens[o.nextIndex];switch(o.parent=p,o.nextIndex++,f.type){case"Alternator":return rn();case"Assertion":return $T(f);case"Backreference":return(function({raw:T},g){const _=/^\\k[<']/.test(T),x=_?T.slice(3,-1):T.slice(1),E=(y,w=!1)=>{const N=g.capturingGroups.length;let O=!1;if(y>N){if(!g.skipBackrefValidation)throw new Error(`Not enough capturing groups defined to the left "${T}"`);O=!0}return g.hasNumberedRef=!0,Is(w?N+1-y:y,{orphan:O})};if(_){const y=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(x);if(y)return E(+y.groups.num,!!y.groups.sign);if(/[-+]/.test(x))throw new Error(`Invalid backref name "${T}"`);if(!g.namedGroupsByName.has(x))throw new Error(`Group name not defined to the left "${T}"`);return Is(x)}return E(+x)})(f,o);case"Character":return Di(f.value,{useLastValid:!!m.isCheckingRangeEnd});case"CharacterClassHyphen":return(function(T,g,_){const{tokens:x,walk:E}=g,y=g.parent,w=y.body.at(-1),N=x[g.nextIndex];if(!_.isCheckingRangeEnd&&w&&w.type!=="CharacterClass"&&w.type!=="CharacterClassRange"&&N&&N.type!=="CharacterClassOpen"&&N.type!=="CharacterClassClose"&&N.type!=="CharacterClassIntersector"){const O=E(y,{..._,isCheckingRangeEnd:!0});if(w.type==="Character"&&O.type==="Character")return y.body.pop(),(function(S,M){if(M.value<S.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:S,max:M}})(w,O);throw new Error("Invalid character class range")}return Di(On("-"))})(0,o,m);case"CharacterClassOpen":return(function({negate:T},g,_){const{tokens:x,walk:E}=g,y=x[g.nextIndex],w=[Ni()];let N=Mp(y);for(;N.type!=="CharacterClassClose";){if(N.type==="CharacterClassIntersector")w.push(Ni()),g.nextIndex++;else{const S=w.at(-1);S.body.push(E(S,_))}N=Mp(x[g.nextIndex],y)}const O=Ni({negate:T});return w.length===1?O.body=w[0].body:(O.kind="intersection",O.body=w.map(S=>S.body.length===1?S.body[0]:S)),g.nextIndex++,O})(f,o,m);case"CharacterSet":return VT(f,o);case"Directive":return zT(f.kind,{flags:f.flags});case"GroupOpen":return(function(T,g,_){const{tokens:x,capturingGroups:E,namedGroupsByName:y,skipLookbehindValidation:w,walk:N}=g,O=(function({flags:R,kind:q,name:W,negate:Y,number:z}){switch(q){case"absence_repeater":return(function(Z,J){return{type:"AbsenceFunction",kind:Z,body:xr(J==null?void 0:J.body)}})("repeater");case"atomic":return ct({atomic:!0});case"capturing":return wp(z,{name:W});case"group":return ct({flags:R});case"lookahead":case"lookbehind":return on({behind:q==="lookbehind",negate:Y});default:throw new Error(`Unexpected group kind "${q}"`)}})(T),S=O.type==="AbsenceFunction",M=Pp(O),B=M&&O.negate;if(O.type==="CapturingGroup"&&(E.push(O),O.name&&(function(R,q,W){return R.has(q)||R.set(q,W),R.get(q)})(y,O.name,[]).push(O)),S&&_.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let G=Bp(x[g.nextIndex]);for(;G.type!=="GroupClose";){if(G.type==="Alternator")O.body.push(rn()),g.nextIndex++;else{const R=O.body.at(-1),q=N(R,{..._,isInAbsenceFunction:_.isInAbsenceFunction||S,isInLookbehind:_.isInLookbehind||M,isInNegLookbehind:_.isInNegLookbehind||B});if(R.body.push(q),(M||_.isInLookbehind)&&!w){const W="Lookbehind includes a pattern not allowed by Oniguruma";if(B||_.isInNegLookbehind){if(vp(q)||q.type==="CapturingGroup")throw new Error(W)}else if(vp(q)||Pp(q)&&q.negate)throw new Error(W)}}G=Bp(x[g.nextIndex])}return g.nextIndex++,O})(f,o,m);case"NamedCallout":return(function(T,g,_){return{type:"NamedCallout",kind:T,tag:g,arguments:_}})(f.kind,f.tag,f.arguments);case"Quantifier":return jT(f,o);case"Subroutine":return(function({raw:T},g){const{capturingGroups:_,subroutines:x}=g;let E=T.slice(3,-1);const y=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(E);if(y){const N=+y.groups.num,O=_.length;if(g.hasNumberedRef=!0,E={"":N,"+":O+N,"-":O+1-N}[y.groups.sign],E<1)throw new Error("Invalid subroutine number")}else E==="0"&&(E=0);const w=Op(E);return x.push(w),w})(f,o);default:throw new Error(`Unexpected token type "${f.type}"`)}},o={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},s=(function(p,m){return{type:"Regex",body:xr(m==null?void 0:m.body),flags:p}})((function(p){return{type:"Flags",...p}})(r.flags));let a=s.body[0];for(;o.nextIndex<r.tokens.length;){const p=i(a,{});p.type==="Alternative"?(s.body.push(p),a=p):a.body.push(p)}const{capturingGroups:l,hasNumberedRef:c,namedGroupsByName:u,subroutines:h}=o;if(c&&u.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:p}of h)if(typeof p=="number"){if(p>l.length)throw new Error("Subroutine uses a group number that's not defined");p&&(l[p-1].isSubroutined=!0)}else{if(!u.has(p))throw new Error(Fe`Subroutine uses a group name that's not defined "\g<${p}>"`);if(u.get(p).length>1)throw new Error(Fe`Subroutine uses a duplicate group name "\g<${p}>"`);u.get(p)[0].isSubroutined=!0}return s}function $T({kind:e}){return Cs(Rn({"^":"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===Fe`\B`||e===Fe`\Y`})}function VT({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:s}=r;if(e==="property"){const a=wi(n);if(!As.has(a)||s!=null&&s.has(a))return Pn(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:s});e="posix",n=a}return e==="posix"?(function(a,l){const c=!!(l!=null&&l.negate);if(!As.has(a))throw new Error(`Invalid POSIX class "${a}"`);return{type:"CharacterSet",kind:"posix",value:a,negate:c}})(n,{negate:t}):Ss(e,{negate:t})}function jT({kind:e,min:t,max:n},r){const i=r.parent,o=i.body.at(-1);if(!o||!(function(a){return GT.has(a.type)})(o))throw new Error("Quantifier requires a repeatable token");const s=Lp(e,t,n,o);return i.body.pop(),s}function rn(e){return{type:"Alternative",body:Rp(e==null?void 0:e.body)}}function Cs(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!(t!=null&&t.negate)),n}function Is(e,t){const n=!!(t!=null&&t.orphan);return{type:"Backreference",ref:e,...n&&{orphan:n}}}function wp(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!(function(r){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(r)})(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:xr(t==null?void 0:t.body)}}function Di(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(!n.useLastValid)throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`);e=1114111}return{type:"Character",value:e}}function Ni(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:Rp(e==null?void 0:e.body)}}function Ss(e,t){const n=!!(t!=null&&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 zT(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Rn(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function ct(e){const t=e==null?void 0:e.atomic,n=e==null?void 0:e.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:xr(e==null?void 0:e.body)}}function on(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:xr(e==null?void 0:e.body)}}function Lp(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function Op(e){return{type:"Subroutine",ref:e}}function Pn(e,t){var i;const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=(i=n.unicodePropertyMap)==null?void 0:i.get(wi(e));if(!r){if(n.normalizeUnknownPropertyNames)r=(function(o){return o.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,s=>s[0].toUpperCase()+s.slice(1).toLowerCase())})(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Fe`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function xr(e){if(e===void 0)e=[rn()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function Rp(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function vp(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function Pp(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function wi(e){return e.replace(/[- _]+/g,"").toLowerCase()}function Mp(e,t){return Rn(e,((t==null?void 0:t.type)==="Character"&&t.value===93?"Empty":"Unclosed")+" character class")}function Bp(e){return Rn(e,"Unclosed group")}function Cr(e,t,n=null){function r(o,s){for(let a=0;a<o.length;a++){const l=i(o[a],s,a,o);a=Math.max(-1,a+l)}}function i(o,s=null,a=null,l=null){var _,x;let c=0,u=!1;const h={node:o,parent:s,key:a,container:l,root:e,remove(){Li(l).splice(Math.max(0,Mn(a)+c),1),c--,u=!0},removeAllNextSiblings:()=>Li(l).splice(Mn(a)+1),removeAllPrevSiblings(){const E=Mn(a)+c;return c-=E,Li(l).splice(0,Math.max(0,E))},replaceWith(E,y={}){const w=!!y.traverse;l?l[Math.max(0,Mn(a)+c)]=E:Rn(s,"Can't replace root node")[a]=E,w&&i(E,s,a,l),u=!0},replaceWithMultiple(E,y={}){const w=!!y.traverse;if(Li(l).splice(Math.max(0,Mn(a)+c),1,...E),c+=E.length-1,w){let N=0;for(let O=0;O<E.length;O++)N+=i(E[O],s,Mn(a)+O+N,l)}u=!0},skip(){u=!0}},{type:p}=o,m=t["*"],f=t[p],T=typeof m=="function"?m:m==null?void 0:m.enter,g=typeof f=="function"?f:f==null?void 0:f.enter;if(T==null||T(h,n),g==null||g(h,n),!u)switch(p){case"AbsenceFunction":case"CapturingGroup":case"Group":case"Alternative":case"CharacterClass":case"LookaroundAssertion":r(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(o.min,o,"min"),i(o.max,o,"max");break;case"Quantifier":i(o.body,o,"body");break;case"Regex":r(o.body,o),i(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${p}"`)}return(_=f==null?void 0:f.exit)==null||_.call(f,h,n),(x=m==null?void 0:m.exit)==null||x.call(m,h,n),c}return i(e),e}function Li(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Mn(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const qT=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function WT(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function YT(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const rt=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Ds(e,t,n,r){const i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let s=0,a="";for(const l of e.matchAll(i)){const{0:c,groups:{$skip:u}}=l;u||r&&r===rt.DEFAULT!=!s?(c[0]==="["?(s++,o.push(c[1]==="^")):c==="]"&&s&&(s--,o.pop()),a+=c):a+=n instanceof Function?n(l,{context:s?rt.CHAR_CLASS:rt.DEFAULT,negated:o[o.length-1]}):n}return a}function Fp(e,t,n,r){Ds(e,t,n,r)}function Oi(e,t,n){return!!(function(r,i,o=0,s){if(!new RegExp(i,"su").test(r))return null;const a=new RegExp(`${i}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=o;let l,c=0;for(;l=a.exec(r);){const{0:u,groups:{$skip:h}}=l;if(!(h||s&&s===rt.DEFAULT!=!c))return l;u==="["?c++:u==="]"&&c&&c--,a.lastIndex==l.index&&a.lastIndex++}return null})(e,t,0,n)}function QT(e,t){const n=/\\?./gsu;n.lastIndex=t;let r,i=e.length,o=0,s=1;for(;r=n.exec(e);){const[a]=r;if(a==="[")o++;else if(o)a==="]"&&o--;else if(a==="(")s++;else if(a===")"&&(s--,!s)){i=r.index;break}}return e.slice(t,i)}const Up=new RegExp(String.raw`(?<noncapturingStart>${qT})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu"),Hp=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Ns=new RegExp(String.raw`
80
+ \\(?: \d+
81
+ | c[A-Za-z]
82
+ | [gk]<[^>]+>
83
+ | [pPu]\{[^\}]+\}
84
+ | u[A-Fa-f\d]{4}
85
+ | x[A-Fa-f\d]{2}
86
+ )
87
+ | \((?: \? (?: [:=!>]
88
+ | <(?:[=!]|[^>]+>)
89
+ | [A-Za-z\-]+:
90
+ | \(DEFINE\)
91
+ ))?
92
+ | (?<qBase>${Hp})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
93
+ | \\?.
94
+ `.replace(/\s+/g,""),"gsu"),it=String.raw,XT=it`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,ws=it`\(\?R=(?<rDepth>[^\)]+)\)|${XT}`,Ri=it`\(\?<(?![=!])(?<captureName>[^>]+)>`,Gp=it`${Ri}|(?<unnamed>\()(?!\?)`,sn=new RegExp(it`${Ri}|${ws}|\(\?|\\?.`,"gsu"),Ls="Cannot use multiple overlapping recursions";function $p(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if((e=+e)<2||e>100)throw new Error(t)}function Vp(e,t,n,r,i,o,s){const a=new Set;r&&Fp(e+t,Ri,({groups:{captureName:c}})=>{a.add(c)},rt.DEFAULT);const l=[n,r?a:null,i,o,s];return`${e}${jp(`(?:${e}`,"forward",...l)}(?:)${jp(`${t})`,"backward",...l)}${t}`}function jp(e,t,n,r,i,o,s){const a=c=>t==="forward"?c+2:n-c+2-1;let l="";for(let c=0;c<n;c++){const u=a(c);l+=Ds(e,it`${Gp}|\\k<(?<backref>[^>]+)>`,({0:h,groups:{captureName:p,unnamed:m,backref:f}})=>{if(f&&r&&!r.has(f))return h;const T=`_$${u}`;if(m||p){const g=s+o.length+1;return o.push(g),KT(i,g),m?h:`(?<${p}${T}>`}return it`\k<${f}${T}>`},rt.DEFAULT)}return l}function KT(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function zp(e,t,n,r,i,o){if(e.size&&r){let s=0;Fp(t,Gp,()=>s++,rt.DEFAULT);const a=o-s+i,l=new Map;return e.forEach((c,u)=>{const h=(r-s*n)/n,p=s*n,m=u>a+s?u+r:u,f=[];for(const T of c)if(T<=a)f.push(T);else if(T>a+s+h)f.push(T+r);else if(T<=a+s)for(let g=0;g<=n;g++)f.push(T+s*g);else for(let g=0;g<=n;g++)f.push(T+p+h*g);l.set(m,f)}),l}return e}var Re=String.fromCodePoint,re=String.raw,xt={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};function vi(e,{enable:t,disable:n}){return{dotAll:!(n!=null&&n.dotAll||!(t!=null&&t.dotAll)&&!e.dotAll),ignoreCase:!(n!=null&&n.ignoreCase||!(t!=null&&t.ignoreCase)&&!e.ignoreCase)}}function Ir(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Os(e,t){return qp[e]>=qp[t]}xt.bugFlagVLiteralHyphenIsRange=!!xt.unicodeSets&&(()=>{try{new RegExp(re`[\d\-a]`,"v")}catch{return!0}return!1})(),xt.bugNestedClassIgnoresNegation=xt.unicodeSets&&new RegExp("[[^a]]","v").test("a");var qp={ES2025:2025,ES2024:2024,ES2018:2018},ZT={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Wp(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!ZT[e.target])throw new Error(`Unexpected target "${e.target}"`);const 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=xt.flagGroups?"ES2025":xt.unicodeSets?"ES2024":"ES2018"),t}var JT=new Set([Re(304),Re(305)]),Ct=re`[\p{L}\p{M}\p{N}\p{Pc}]`;function Yp(e){if(JT.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=nb.get(n),o=eb.get(n),s=tb.get(n);return[...r].length===1&&t.add(r),s&&t.add(s),i&&t.add(i),t.add(n),o&&t.add(o),[...t]}var Rs=new Map(`C Other
95
+ Cc Control cntrl
96
+ Cf Format
97
+ Cn Unassigned
98
+ Co Private_Use
99
+ Cs Surrogate
100
+ L Letter
101
+ LC Cased_Letter
102
+ Ll Lowercase_Letter
103
+ Lm Modifier_Letter
104
+ Lo Other_Letter
105
+ Lt Titlecase_Letter
106
+ Lu Uppercase_Letter
107
+ M Mark Combining_Mark
108
+ Mc Spacing_Mark
109
+ Me Enclosing_Mark
110
+ Mn Nonspacing_Mark
111
+ N Number
112
+ Nd Decimal_Number digit
113
+ Nl Letter_Number
114
+ No Other_Number
115
+ P Punctuation punct
116
+ Pc Connector_Punctuation
117
+ Pd Dash_Punctuation
118
+ Pe Close_Punctuation
119
+ Pf Final_Punctuation
120
+ Pi Initial_Punctuation
121
+ Po Other_Punctuation
122
+ Ps Open_Punctuation
123
+ S Symbol
124
+ Sc Currency_Symbol
125
+ Sk Modifier_Symbol
126
+ Sm Math_Symbol
127
+ So Other_Symbol
128
+ Z Separator
129
+ Zl Line_Separator
130
+ Zp Paragraph_Separator
131
+ Zs Space_Separator
132
+ ASCII
133
+ ASCII_Hex_Digit AHex
134
+ Alphabetic Alpha
135
+ Any
136
+ Assigned
137
+ Bidi_Control Bidi_C
138
+ Bidi_Mirrored Bidi_M
139
+ Case_Ignorable CI
140
+ Cased
141
+ Changes_When_Casefolded CWCF
142
+ Changes_When_Casemapped CWCM
143
+ Changes_When_Lowercased CWL
144
+ Changes_When_NFKC_Casefolded CWKCF
145
+ Changes_When_Titlecased CWT
146
+ Changes_When_Uppercased CWU
147
+ Dash
148
+ Default_Ignorable_Code_Point DI
149
+ Deprecated Dep
150
+ Diacritic Dia
151
+ Emoji
152
+ Emoji_Component EComp
153
+ Emoji_Modifier EMod
154
+ Emoji_Modifier_Base EBase
155
+ Emoji_Presentation EPres
156
+ Extended_Pictographic ExtPict
157
+ Extender Ext
158
+ Grapheme_Base Gr_Base
159
+ Grapheme_Extend Gr_Ext
160
+ Hex_Digit Hex
161
+ IDS_Binary_Operator IDSB
162
+ IDS_Trinary_Operator IDST
163
+ ID_Continue IDC
164
+ ID_Start IDS
165
+ Ideographic Ideo
166
+ Join_Control Join_C
167
+ Logical_Order_Exception LOE
168
+ Lowercase Lower
169
+ Math
170
+ Noncharacter_Code_Point NChar
171
+ Pattern_Syntax Pat_Syn
172
+ Pattern_White_Space Pat_WS
173
+ Quotation_Mark QMark
174
+ Radical
175
+ Regional_Indicator RI
176
+ Sentence_Terminal STerm
177
+ Soft_Dotted SD
178
+ Terminal_Punctuation Term
179
+ Unified_Ideograph UIdeo
180
+ Uppercase Upper
181
+ Variation_Selector VS
182
+ White_Space space
183
+ XID_Continue XIDC
184
+ XID_Start XIDS`.split(/\s/).map(e=>[wi(e),e])),eb=new Map([["s",Re(383)],[Re(383),"s"]]),tb=new Map([[Re(223),Re(7838)],[Re(107),Re(8490)],[Re(229),Re(8491)],[Re(969),Re(8486)]]),nb=new Map([Gt(453),Gt(456),Gt(459),Gt(498),...vs(8072,8079),...vs(8088,8095),...vs(8104,8111),Gt(8124),Gt(8140),Gt(8188)]),rb=new Map([["alnum",re`[\p{Alpha}\p{Nd}]`],["alpha",re`\p{Alpha}`],["ascii",re`\p{ASCII}`],["blank",re`[\p{Zs}\t]`],["cntrl",re`\p{Cc}`],["digit",re`\p{Nd}`],["graph",re`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",re`\p{Lower}`],["print",re`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",re`[\p{P}\p{S}]`],["space",re`\p{space}`],["upper",re`\p{Upper}`],["word",re`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",re`\p{AHex}`]]);function Gt(e){const t=Re(e);return[t.toLowerCase(),t]}function vs(e,t){return(function(n,r){const i=[];for(let o=n;o<=r;o++)i.push(o);return i})(e,t).map(n=>Gt(n))}var Qp=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),ib={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:i}=e;if(i!=="repeater")throw new Error('Unsupported absence function "(?~|"');{const o=ct();o.body[0].body.push(on({negate:!0,body:r}),Pn("Any"));const s=ct();s.body[0].body.push(Lp("greedy",0,1/0,o)),n(Ie(s,t),{traverse:!0})}},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const i=e.body.filter(o=>o.kind==="flags");for(let o=n+1;o<t.body.length;o++)Ir(r,t.body[o],[]).push(...i)},exit({node:e},{flagDirectivesByAlt:t}){var n;if((n=t.get(e))!=null&&n.length){const r=Jp(t.get(e));if(r){const i=ct({flags:r});i.body[0].body=e.body,e.body=[Ie(i,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:o,replaceWith:s},a){const{kind:l,negate:c}=e,{asciiWordBoundaries:u,avoidSubclass:h,supportedGNodes:p,wordIsAscii:m}=a;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if(l==="line_end")s(Ie(on({body:[rn({body:[Cs("string_end")]}),rn({body:[Di(10)]})]}),t));else if(l==="line_start")s(Ie(It(re`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l==="search_start")if(p.has(e))i.flags.sticky=!0,o();else{const f=r[n-1];if(f&&(function(T){const g=["Character","CharacterClass","CharacterSet"];return g.includes(T.type)||T.type==="Quantifier"&&T.min&&g.includes(T.body.type)})(f))s(Ie(on({negate:!0}),t));else{if(h)throw new Error(re`Uses "\G" in a way that requires a subclass`);s($t(Cs("string_start"),t)),a.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")s(Ie(It(re`(?=\n?\z)`),t));else{if(l!=="word_boundary")throw new Error(`Unexpected assertion kind "${l}"`);!m&&!u&&s(Ie(It(c?`(?:(?<=${Ct})(?=${Ct})|(?<!${Ct})(?!${Ct}))`:`(?:(?<=${Ct})(?!${Ct})|(?<!${Ct})(?=${Ct}))`),t))}},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n!="string"||Ms(n)||(n=Ps(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Ms(r)&&(r=Ps(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(Ie(Ni({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:o,spaceIsAscii:s,wordIsAscii:a}){const{kind:l,negate:c,value:u}=e;if(!o||l!=="digit"&&u!=="digit")if(!s||l!=="space"&&u!=="space")if(!a||l!=="word"&&u!=="word"){if(l==="any")n($t(Pn("Any"),t));else if(l==="digit")n($t(Pn("Nd",{negate:c}),t));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(re`Use of "\X" requires non-strict accuracy`);const h="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",p=re`\p{RI}{2}|${h}(?:\u200D${h})*`;n(Ie(It(re`(?>\r\n|${i?re`\p{RGI_Emoji}`:p}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")n($t(Pn("AHex",{negate:c}),t));else if(l==="newline")n(Ie(It(c?`[^
185
+ ]`:`(?>\r
186
+ ?|[
187
+ \v\f\x85\u2028\u2029])`),t));else if(l==="posix")if(i||u!=="graph"&&u!=="print")n(Ie(Bs(It(rb.get(u)),c),t));else{if(r==="strict")throw new Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let h={graph:"!-~",print:" -~"}[u];c&&(h=`\0-${Re(h.codePointAt(0)-1)}${Re(h.codePointAt(2)+1)}-\u{10FFFF}`),n(Ie(It(`[${h}]`),t))}else if(l==="property")Rs.has(wi(u))||(e.key="sc");else if(l==="space")n($t(Pn("space",{negate:c}),t));else{if(l!=="word")throw new Error(`Unexpected character set kind "${l}"`);n(Ie(Bs(It(Ct),c),t))}}else n($t(Ss("word",{negate:c}),t));else n(Ie(Bs(It("[ -\r ]"),c),t));else n($t(Ss("digit",{negate:c}),t))},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:o,removeAllNextSiblings:s}){const{kind:a,flags:l}=e;if(a==="flags")if(l.enable||l.disable){const c=ct({flags:l});c.body[0].body=s(),i(Ie(c,t),{traverse:!0})}else r();else{if(a!=="keep")throw new Error(`Unexpected directive kind "${a}"`);{const c=n.body[0],u=n.body.length===1&&Dp(c,{type:"Group"})&&c.body[0].body.length===1?c.body[0]:n;if(t.parent!==u||u.body.length>1)throw new Error(re`Uses "\K" in a way that's unsupported`);const h=on({behind:!0});h.body[0].body=o(),i(Ie(h,t))}}},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete e[n]),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;const{enable:t,disable:n}=e.flags;t!=null&&t.extended&&delete t.extended,n!=null&&n.extended&&delete n.extended,t!=null&&t.dotAll&&(n!=null&&n.dotAll)&&delete t.dotAll,t!=null&&t.ignoreCase&&(n!=null&&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){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if(r!=="fail")throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`);n(Ie(on({negate:!0}),t))},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=ct();t.body[0].body.push(e.body),e.body=Ie(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,i=!1;for(const o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const s=th(o.body);s?(r=!0,Array.isArray(s)?n.push(...s):n.push(s)):i=!0}r&&!i&&n.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(re`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n!="string"||Ms(n)||(n=Ps(n,t),e.ref=n)}},ob={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:o,multiplexCapturesToLeftByRef:s,openRefs:a,reffedNodesByReferencer:l}){const c=i.get(e);if(c&&a.has(e.number)){const h=$t(Zp(e.number),t);return l.set(h,a.get(e.number)),void n(h)}a.set(e.number,e),s.set(e.number,[]),e.name&&Ir(s,e.name,[]);const u=s.get(e.name??e.number);for(let h=0;h<u.length;h++){const p=u[h];if(c===p.node||c&&c===p.origin||e===p.origin){u.splice(h,1);break}}if(s.get(e.number).push({node:e,origin:c}),e.name&&s.get(e.name).push({node:e,origin:c}),e.name){const h=Ir(o,e.name,new Map);let p=!1;if(c)p=!0;else for(const m of h.values())if(!m.hasDuplicateNameToRemove){p=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:p})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=vi(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:i,ref:o}=e;if(i){let u=t;for(;(u=u.parent)&&(u.type!=="CapturingGroup"||u.name!==o&&u.number!==o););return void r.reffedNodesByReferencer.set(e,u)}const s=r.subroutineRefMap.get(o),a=o===0,l=a?Zp(0):Kp(s,r.groupOriginByCopy,null);let c=l;if(!a){const u=Jp((function(p,m){const f=[];for(;p=p.parent;)m&&!m(p)||f.push(p);return f})(s,p=>p.type==="Group"&&!!p.flags)),h=u?vi(r.globalFlags,u):r.globalFlags;(function(p,m){return p.dotAll===m.dotAll&&p.ignoreCase===m.ignoreCase})(h,r.currentFlags)||(c=ct({flags:ab(h)}),c.body[0].body.push(l))}n(Ie(c,t),{traverse:!a})}},sb={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan)return void(r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref));const i=r.reffedNodesByReferencer.get(e).filter(o=>(function(s,a){let l=a;do{if(l.type==="Regex")return!1;if(l.type==="Alternative")continue;if(l===s)return!1;const c=eh(l.parent);for(const u of c){if(u===l)break;if(u===s||nh(u,s))return!0}}while(l=l.parent);throw new Error("Unexpected path")})(o,e));i.length?i.length>1?n(Ie(ct({atomic:!0,body:i.reverse().map(o=>rn({body:[Is(o.number)]}))}),t)):e.ref=i[0].number:n(Ie(on({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){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const i=wp();e.body.at(-1).body.push(i)}}},Subroutine({node:e},t){e.isRecursive&&e.ref!==0&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Xp(e){Cr(e,{"*"({node:t,parent:n}){t.parent=n}})}function Kp(e,t,n,r){const i=Array.isArray(e)?[]:{};for(const[o,s]of Object.entries(e))o==="parent"?i.parent=Array.isArray(n)?r:n:s&&typeof s=="object"?i[o]=Kp(s,t,i,n):(o==="type"&&s==="CapturingGroup"&&t.set(i,t.get(e)??e),i[o]=s);return i}function Zp(e){const t=Op(e);return t.isRecursive=!0,t}function Ps(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,"_")}`;return t.set(e,n),n}function Jp(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(i=>{var o,s;(o=r.enable)!=null&&o[i]&&(delete n.disable[i],n.enable[i]=!0),(s=r.disable)!=null&&s[i]&&(n.disable[i]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function ab({dotAll:e,ignoreCase:t}){const 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 eh(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function th(e){const t=e.find(n=>n.kind==="search_start"||(function(r,i){const o={negate:null,...i};return r.type==="LookaroundAssertion"&&(o.negate===null||r.negate===o.negate)&&r.body.length===1&&Dp(r.body[0],{type:"Assertion",kind:"search_start"})})(n,{negate:!1})||!(function({type:r}){return r==="Assertion"||r==="Directive"||r==="LookaroundAssertion"})(n));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"){const n=[];for(const r of t.body){const i=th(r.body);if(!i)return null;Array.isArray(i)?n.push(...i):n.push(i)}return n}return null}function nh(e,t){const n=eh(e)??[];for(const r of n)if(r===t||nh(r,t))return!0;return!1}function Ms(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function It(e,t){const n=Np(e,{...t,unicodePropertyMap:Rs}).body;return n.length>1||n[0].body.length>1?ct({body:n}):n[0].body[0]}function Bs(e,t){return e.negate=t,e}function $t(e,t){return e.parent=t,e}function Ie(e,t){return Xp(e),e.parent=t,e}function lb(e,t){const n=Wp(t),r=Os(n.target,"ES2024"),i=Os(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let s=null,a=null;if(!i){const m=[e.flags.ignoreCase];Cr(e,cb,{getCurrentModI:()=>m.at(-1),popModI(){m.pop()},pushModI(f){m.push(f)},setHasCasedChar(){m.at(-1)?s=!0:a=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!(!e.flags.ignoreCase&&!s||a)};let c=e;const u={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!(i||!s||!a),useFlagMods:i,useFlagV:r,verbose:n.verbose};function h(m){return u.lastNode=c,c=m,(function(f,T){if(f==null)throw new Error(T??"Value expected");return f})(ub[m.type],`Unexpected node type "${m.type}"`)(m,u,h)}const p={pattern:e.body.map(h).join("|"),flags:h(e.flags),options:{...e.options}};return r||(delete p.options.force.v,p.options.disable.v=!0,p.options.unicodeSetsPlugin=null),p._captureTransfers=new Map,p._hiddenCaptures=[],u.captureMap.forEach((m,f)=>{m.hidden&&p._hiddenCaptures.push(f),m.transferTo&&Ir(p._captureTransfers,m.transferTo,[]).push(f)}),p}var cb={"*":{enter({node:e},t){if(oh(e)){const n=t.getCurrentModI();t.pushModI(e.flags?vi({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){oh(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Fs(Re(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),ih(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&Qp.has(e.value)&&t.setHasCasedChar()}},ub={Alternative:({body:e},t,n)=>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?re`\B`:re`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:r,name:i,number:o}=e,s={ignoreCase:t.currentFlags.ignoreCase},a=t.originMap.get(e);return a&&(s.hidden=!0,o>a.number&&(s.transferTo=a.number)),t.captureMap.set(o,s),`(${i?`?<${i}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=Re(e),r=Bn(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Fs(n)){const i=Yp(n);return t.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:i,parent:o}=e;let{body:s}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of class intersection requires min target ES2024");xt.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&s.some(sh)&&(s=[Di(45),...s.filter(c=>!sh(c))]);const a=()=>`[${i?"^":""}${s.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||xt.bugNestedClassIgnoresNegation)&&!i){const u=s.filter(h=>h.type==="CharacterClass"&&h.kind==="union"&&h.negate);if(u.length){const h=ct(),p=h.body[0];return h.parent=o,p.parent=h,s=s.filter(m=>!u.includes(m)),e.body=s,s.length?(e.parent=p,p.body.push(e)):h.body.pop(),u.forEach(m=>{const f=rn({body:[m]});m.parent=f,f.parent=h,h.body.push(f)}),n(h)}}t.inCharClass=!0;const c=a();return t.inCharClass=!1,c}const l=s[0];if(r==="union"&&!i&&l&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&(!xt.bugFlagVLiteralHyphenIsRange||!t.useFlagV)||!t.verbose&&o.kind==="intersection"&&s.length===1&&l.type!=="CharacterClassRange"))return s.map(n).join("");if(!t.useFlagV&&o.type==="CharacterClass")throw new Error("Use of nested character class requires min target ES2024");return a()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=Bn(n,i),s=Bn(r,i),a=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&(function(c){const u=c.map(m=>m.codePointAt(0)).sort((m,f)=>m-f),h=[];let p=null;for(let m=0;m<u.length;m++)u[m+1]===u[m]+1?p??(p=u[m]):p===null?h.push(u[m]):(h.push([p,u[m]]),p=null);return h})(ih(e)).forEach(c=>{a.add(Array.isArray(c)?`${Bn(c[0],i)}-${Bn(c[1],i)}`:Bn(c,i))}),`${o}-${s}${[...a].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":re`[^\n]`;if(e==="digit")return t?re`\D`:re`\d`;if(e==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&Qp.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?re`\P`:re`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?re`\W`:re`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags:(e,t)=>(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":""),Group({atomic:e,body:t,flags:n,parent:r},i,o){const s=i.currentFlags;n&&(i.currentFlags=vi(s,n));const a=t.map(o).join("|"),l=i.verbose||t.length!==1||r.type==="Quantifier"||e||i.useFlagMods&&n?`(?${(function(c,u,h){if(c)return">";let p="";if(u&&h){const{enable:m,disable:f}=u;p=(m!=null&&m.ignoreCase?"i":"")+(m!=null&&m.dotAll?"s":"")+(f?"-":"")+(f!=null&&f.ignoreCase?"i":"")+(f!=null&&f.dotAll?"s":"")}return`${p}:`})(e,n,i.useFlagMods)}${a})`:a;return i.currentFlags=s,l},LookaroundAssertion:({body:e,kind:t,negate:n},r,i)=>`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(i).join("|")})`,Quantifier:(e,t,n)=>n(e.body)+(function({kind:r,max:i,min:o}){let s;return s=o||i!==1?o||i!==1/0?o===1&&i===1/0?"+":o===i?`{${o}}`:`{${o},${i===1/0?"":i}}`:"*":"?",s+{greedy:"",lazy:"?",possessive:"+"}[r]})(e),Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:re`\g<${t}&R=${r}>`}},pb=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),hb=new Set(["-","\\","]","^","["]),db=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),rh=new Map([[9,re`\t`],[10,re`\n`],[11,re`\v`],[12,re`\f`],[13,re`\r`],[8232,re`\u2028`],[8233,re`\u2029`],[65279,re`\uFEFF`]]),mb=new RegExp("^\\p{Cased}$","u");function Fs(e){return mb.test(e)}function ih(e,t){const n=!!(t!=null&&t.firstOnly),r=e.min.value,i=e.max.value,o=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return o;for(let s=r;s<=i;s++){const a=Re(s);if(!Fs(a))continue;const l=Yp(a).filter(c=>{const u=c.codePointAt(0);return u<r||u>i});if(l.length&&(o.push(...l),n))break}return o}function Bn(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(rh.has(e))return rh.get(e);if(e<32||e>126&&e<160||e>262143||t&&(i=e)>47&&i<58)return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;var i;const o=n?r?db:hb:pb,s=Re(e);return(o.has(s)?"\\":"")+s}function oh({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function sh({type:e,value:t}){return e==="Character"&&t===45}var fb=(qt=class extends RegExp{constructor(n,r,i){var t=(...DA)=>(super(...DA),hn(this,Or),hn(this,jt,new Map),hn(this,wt,null),hn(this,un),hn(this,zt,null),hn(this,pn,null),v(this,"rawOptions",{}),this);const o=!!(i!=null&&i.lazyCompile);if(n instanceof RegExp){if(i)throw new Error("Cannot provide options when copying a regexp");const s=n;t(s,r),pt(this,un,s.source),s instanceof qt&&(pt(this,jt,We(s,jt)),pt(this,zt,We(s,zt)),pt(this,pn,We(s,pn)),this.rawOptions=s.rawOptions)}else{const s={hiddenCaptures:[],strategy:null,transfers:[],...i};t(o?"":n,r),pt(this,un,n),pt(this,jt,(function(a,l){const c=new Map;for(const u of a)c.set(u,{hidden:!0});for(const[u,h]of l)for(const p of h)Ir(c,p,{}).transferTo=u;return c})(s.hiddenCaptures,s.transfers)),pt(this,pn,s.strategy),this.rawOptions=i??{}}o||pt(this,wt,this)}get source(){return We(this,un)||"(?:)"}exec(n){if(!We(this,wt)){const{lazyCompile:o,...s}=this.rawOptions;pt(this,wt,new qt(We(this,un),this.flags,s))}const r=this.global||this.sticky,i=this.lastIndex;if(We(this,pn)==="clip_search"&&r&&i){this.lastIndex=0;const o=oa(this,Or,ua).call(this,n.slice(i));return o&&((function(s,a,l,c){if(s.index+=a,s.input=l,c){const u=s.indices;for(let p=0;p<u.length;p++){const m=u[p];m&&(u[p]=[m[0]+a,m[1]+a])}const h=u.groups;h&&Object.keys(h).forEach(p=>{const m=h[p];m&&(h[p]=[m[0]+a,m[1]+a])})}})(o,i,n,this.hasIndices),this.lastIndex+=i),o}return oa(this,Or,ua).call(this,n)}},jt=new WeakMap,wt=new WeakMap,un=new WeakMap,zt=new WeakMap,pn=new WeakMap,Or=new WeakSet,ua=function(n){We(this,wt).lastIndex=this.lastIndex;const r=Ld(qt.prototype,this,"exec").call(We(this,wt),n);if(this.lastIndex=We(this,wt).lastIndex,!r||!We(this,jt).size)return r;const i=[...r];let o;r.length=1,this.hasIndices&&(o=[...r.indices],r.indices.length=1);const s=[0];for(let a=1;a<i.length;a++){const{hidden:l,transferTo:c}=We(this,jt).get(a)??{};if(l?s.push(null):(s.push(r.length),r.push(i[a]),this.hasIndices&&r.indices.push(o[a])),c&&i[a]!==void 0){const u=s[c];if(!u)throw new Error(`Invalid capture transfer to "${u}"`);if(r[u]=i[a],this.hasIndices&&(r.indices[u]=o[a]),r.groups){We(this,zt)||pt(this,zt,gb(this.source));const h=We(this,zt).get(c);h&&(r.groups[h]=i[a],this.hasIndices&&(r.indices.groups[h]=o[a]))}}}return r},qt);function gb(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r,i=0,o=0;for(;r=t.exec(e);){const{0:s,groups:{capture:a,name:l}}=r;s==="["?i++:i?s==="]"&&i--:a&&(o++,l&&n.set(o,l))}return n}function _b(e,t){const n=(function(r,i){const o=Wp(i),s=Np(r,{flags:o.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:o.rules.captureGroup,singleline:o.rules.singleline},skipBackrefValidation:o.rules.allowOrphanBackrefs,unicodePropertyMap:Rs}),a=(function(p,m){const f={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...m};Xp(p);const T={accuracy:f.accuracy,asciiWordBoundaries:f.asciiWordBoundaries,avoidSubclass:f.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Os(f.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:p.flags.digitIsAscii,spaceIsAscii:p.flags.spaceIsAscii,wordIsAscii:p.flags.wordIsAscii};Cr(p,ib,T);const g={dotAll:p.flags.dotAll,ignoreCase:p.flags.ignoreCase},_={currentFlags:g,prevFlags:null,globalFlags:g,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:T.subroutineRefMap};return Cr(p,ob,_),Cr(p,sb,{groupsByName:_.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:_.reffedNodesByReferencer}),p._originMap=_.groupOriginByCopy,p._strategy=T.strategy,p})(s,{accuracy:o.accuracy,asciiWordBoundaries:o.rules.asciiWordBoundaries,avoidSubclass:o.avoidSubclass,bestEffortTarget:o.target}),l=lb(a,o),c=(function(p,m){const{hiddenCaptures:f,mode:T}={hiddenCaptures:[],mode:"plugin",...m};let g=(m==null?void 0:m.captureTransfers)??new Map;if(!new RegExp(ws,"su").test(p))return{pattern:p,captureTransfers:g,hiddenCaptures:f};if(T==="plugin"&&Oi(p,it`\(\?\(DEFINE\)`,rt.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const _=[],x=Oi(p,it`\\[1-9]`,rt.DEFAULT),E=new Map,y=[];let w,N=!1,O=0,S=0;for(sn.lastIndex=0;w=sn.exec(p);){const{0:M,groups:{captureName:B,rDepth:G,gRNameOrNum:R,gRDepth:q}}=w;if(M==="[")O++;else if(O)M==="]"&&O--;else{if(G){if($p(G),N)throw new Error(Ls);if(x)throw new Error((T==="external"?"Backrefs":"Numbered backrefs")+" cannot be used with global recursion");const W=p.slice(0,w.index),Y=p.slice(sn.lastIndex);if(Oi(Y,ws,rt.DEFAULT))throw new Error(Ls);const z=+G-1;p=Vp(W,Y,z,!1,f,_,S),g=zp(g,W,z,_.length,0,S);break}if(R){$p(q);let W=!1;for(const Ue of y)if(Ue.name===R||Ue.num===+R){if(W=!0,Ue.hasRecursedWithin)throw new Error(Ls);break}if(!W)throw new Error(it`Recursive \g cannot be used outside the referenced group "${T==="external"?R:it`\g<${R}&R=${q}>`}"`);const Y=E.get(R),z=QT(p,Y);if(x&&Oi(z,it`${Ri}|\((?!\?)`,rt.DEFAULT))throw new Error((T==="external"?"Backrefs":"Numbered backrefs")+" cannot be used with recursion of capturing groups");const Z=p.slice(Y,w.index),J=z.slice(Z.length+M.length),I=_.length,pe=+q-1,D=Vp(Z,J,pe,!0,f,_,S);g=zp(g,Z,pe,_.length-I,I,S);const ye=p.slice(0,Y),ke=p.slice(Y+z.length);p=`${ye}${D}${ke}`,sn.lastIndex+=D.length-M.length-Z.length-J.length,y.forEach(Ue=>Ue.hasRecursedWithin=!0),N=!0}else if(B)S++,E.set(String(S),sn.lastIndex),E.set(B,sn.lastIndex),y.push({num:S,name:B});else if(M[0]==="("){const W=M==="(";W&&(S++,E.set(String(S),sn.lastIndex)),y.push(W?{num:S}:{})}else M===")"&&y.pop()}}return f.push(..._),{pattern:p,captureTransfers:g,hiddenCaptures:f}})(l.pattern,{captureTransfers:l._captureTransfers,hiddenCaptures:l._hiddenCaptures,mode:"external"}),u=(function(p,m){const f=(m==null?void 0:m.hiddenCaptures)??[];let T=(m==null?void 0:m.captureTransfers)??new Map;if(!/\(\?>/.test(p))return{pattern:p,captureTransfers:T,hiddenCaptures:f};const g="(?:(?=(",_=[0],x=[];let E,y=0,w=0,N=NaN;do{E=!1;let O,S=0,M=0,B=!1;for(Up.lastIndex=Number.isNaN(N)?0:N+7;O=Up.exec(p);){const{0:G,index:R,groups:{capturingStart:q,noncapturingStart:W}}=O;if(G==="[")S++;else if(S)G==="]"&&S--;else if(G!=="(?>"||B){if(B&&W)M++;else if(q)B?M++:(y++,_.push(y+w));else if(G===")"&&B){if(!M){w++;const Y=y+w;if(p=`${p.slice(0,N)}${g}${p.slice(N+3,R)}))<$$${Y}>)${p.slice(R+1)}`,E=!0,x.push(Y),WT(f,Y),T.size){const z=new Map;T.forEach((Z,J)=>{z.set(J>=Y?J+1:J,Z.map(I=>I>=Y?I+1:I))}),T=z}break}M--}}else N=R,B=!0}}while(E);return f.push(...x),p=Ds(p,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:O,groups:{backrefNum:S,wrappedBackrefNum:M}})=>{if(S){const B=+S;if(B>_.length-1)throw new Error(`Backref "${O}" greater than number of captures`);return`\\${_[B]}`}return`\\${M}`},rt.DEFAULT),{pattern:p,captureTransfers:T,hiddenCaptures:f}})((function(p){if(!new RegExp(`${Hp}\\+`).test(p))return{pattern:p};const m=[];let f,T=null,g=null,_="",x=0;for(Ns.lastIndex=0;f=Ns.exec(p);){const{0:E,index:y,groups:{qBase:w,qMod:N,invalidQ:O}}=f;if(E==="[")x||(g=y),x++;else if(E==="]")x?x--:g=null;else if(!x)if(N==="+"&&_&&!_.startsWith("(")){if(O)throw new Error(`Invalid quantifier "${E}"`);let S=-1;if(/^\{\d+\}$/.test(w))p=YT(p,y+w.length,N,"");else{if(_===")"||_==="]"){const M=_===")"?T:g;if(M===null)throw new Error(`Invalid unmatched "${_}"`);p=`${p.slice(0,M)}(?>${p.slice(M,y)}${w})${p.slice(y+E.length)}`}else p=`${p.slice(0,y-_.length)}(?>${_}${w})${p.slice(y+E.length)}`;S+=4}Ns.lastIndex+=S}else E[0]==="("?m.push(y):E===")"&&(T=m.length?m.pop():null);_=E}return{pattern:p}})(c.pattern).pattern,{captureTransfers:c.captureTransfers,hiddenCaptures:c.hiddenCaptures}),h={pattern:u.pattern,flags:`${o.hasIndices?"d":""}${o.global?"g":""}${l.flags}${l.options.disable.v?"u":"v"}`};if(o.avoidSubclass){if(o.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const p=u.hiddenCaptures.sort((g,_)=>g-_),m=Array.from(u.captureTransfers),f=a._strategy,T=h.pattern.length>=o.lazyCompileLength;(p.length||m.length||f||T)&&(h.options={...p.length&&{hiddenCaptures:p},...m.length&&{transfers:m},...f&&{strategy:f},...T&&{lazyCompile:T}})}return h})(e,t);return n.options?new fb(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}const ah=4294967295;class Eb{constructor(t,n={}){v(this,"regexps");this.patterns=t,this.options=n;const{forgiving:r=!1,cache:i,regexConstructor:o}=n;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(s=>{if(typeof s!="string")return s;const a=i==null?void 0:i.get(s);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{const l=o(s);return i==null||i.set(s,l),l}catch(l){if(i==null||i.set(s,l),r)return null;throw l}})}findNextMatchSync(t,n,r){const i=typeof t=="string"?t:t.content,o=[];function s(a,l,c=0){return{index:a,captureIndices:l.indices.map(u=>u==null?{start:ah,end:ah,length:0}:{start:u[0]+c,end:u[1]+c,length:u[1]-u[0]})}}for(let a=0;a<this.regexps.length;a++){const l=this.regexps[a];if(l)try{l.lastIndex=n;const c=l.exec(i);if(!c)continue;if(c.index===n)return s(a,c,0);o.push([a,c,0])}catch(c){if(this.options.forgiving)continue;throw c}}if(o.length){const a=Math.min(...o.map(l=>l[1].index));for(const[l,c,u]of o)if(c.index===a)return s(l,c,u)}return null}}function Tb(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||(t.regexConstructor=n=>(function(r,i){return _b(r,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...i})})(n,{target:t.target})),{createScanner:n=>new Eb(n,t),createString:n=>({content:n})}}const bb=e=>{const t=Ab(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const o=i.split("-");return o[0]===""&&o.length!==1&&o.shift(),lh(o,t)||kb(i)},getConflictingClassGroupIds:(i,o)=>{const s=n[i]||[];return o&&r[i]?[...s,...r[i]]:s}}},lh=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?lh(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join("-");return(s=t.validators.find(({validator:a})=>a(o)))==null?void 0:s.classGroupId},ch=/^\[(.+)\]$/,kb=e=>{if(ch.test(e)){const t=ch.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ab=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)Us(n[i],r,i,t);return r},Us=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string")return void((i===""?t:uh(t,i)).classGroupId=n);if(typeof i=="function")return yb(i)?void Us(i(r),t,n,r):void t.validators.push({validator:i,classGroupId:n});Object.entries(i).forEach(([o,s])=>{Us(s,uh(t,o),n,r)})})},uh=(e,t)=>{let n=e;return t.split("-").forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},yb=e=>e.isThemeGetter,xb=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let s=n.get(o);return s!==void 0?s:(s=r.get(o))!==void 0?(i(o,s),s):void 0},set(o,s){n.has(o)?n.set(o,s):i(o,s)}}},Cb=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let s,a=0,l=0,c=0;for(let p=0;p<i.length;p++){let m=i[p];if(a===0&&l===0){if(m===":"){o.push(i.slice(c,p)),c=p+1;continue}if(m==="/"){s=p;continue}}m==="["?a++:m==="]"?a--:m==="("?l++:m===")"&&l--}const u=o.length===0?i:i.substring(c),h=Ib(u);return{modifiers:o,hasImportantModifier:h!==u,baseClassName:h,maybePostfixModifierPosition:s&&s>c?s-c:void 0}};if(t){const i=t+":",o=r;r=s=>s.startsWith(i)?o(s.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},Ib=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,Sb=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const r=[];let i=[];return n.forEach(o=>{o[0]==="["||t[o]?(r.push(...i.sort(),o),i=[]):i.push(o)}),r.push(...i.sort()),r}},Db=/\s+/;function Nb(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=ph(e))&&(r&&(r+=" "),r+=t);return r}const ph=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ph(e[r]))&&(n&&(n+=" "),n+=t);return n};function wb(e,...t){let n,r,i,o=function(a){const l=t.reduce((c,u)=>u(c),e());return n=(c=>({cache:xb(c.cacheSize),parseClassName:Cb(c),sortModifiers:Sb(c),...bb(c)}))(l),r=n.cache.get,i=n.cache.set,o=s,s(a)};function s(a){const l=r(a);if(l)return l;const c=((u,h)=>{const{parseClassName:p,getClassGroupId:m,getConflictingClassGroupIds:f,sortModifiers:T}=h,g=[],_=u.trim().split(Db);let x="";for(let E=_.length-1;E>=0;E-=1){const y=_[E],{isExternal:w,modifiers:N,hasImportantModifier:O,baseClassName:S,maybePostfixModifierPosition:M}=p(y);if(w){x=y+(x.length>0?" "+x:x);continue}let B=!!M,G=m(B?S.substring(0,M):S);if(!G){if(!B){x=y+(x.length>0?" "+x:x);continue}if(G=m(S),!G){x=y+(x.length>0?" "+x:x);continue}B=!1}const R=T(N).join(":"),q=O?R+"!":R,W=q+G;if(g.includes(W))continue;g.push(W);const Y=f(G,B);for(let z=0;z<Y.length;++z){const Z=Y[z];g.push(q+Z)}x=y+(x.length>0?" "+x:x)}return x})(a,n);return i(a,c),c}return function(){return o(Nb.apply(null,arguments))}}const ve=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},hh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,dh=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lb=/^\d+\/\d+$/,Ob=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Pb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fn=e=>Lb.test(e),se=e=>!!e&&!Number.isNaN(Number(e)),Vt=e=>!!e&&Number.isInteger(Number(e)),Hs=e=>e.endsWith("%")&&se(e.slice(0,-1)),St=e=>Ob.test(e),Bb=()=>!0,Fb=e=>Rb.test(e)&&!vb.test(e),mh=()=>!1,Ub=e=>Pb.test(e),Hb=e=>Mb.test(e),Gb=e=>!Q(e)&&!X(e),$b=e=>Un(e,Th,mh),Q=e=>hh.test(e),an=e=>Un(e,bh,Fb),Gs=e=>Un(e,Wb,se),fh=e=>Un(e,_h,mh),Vb=e=>Un(e,Eh,Hb),Pi=e=>Un(e,kh,Ub),X=e=>dh.test(e),Sr=e=>Hn(e,bh),jb=e=>Hn(e,Yb),gh=e=>Hn(e,_h),zb=e=>Hn(e,Th),qb=e=>Hn(e,Eh),Mi=e=>Hn(e,kh,!0),Un=(e,t,n)=>{const r=hh.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},Hn=(e,t,n=!1)=>{const r=dh.exec(e);return!!r&&(r[1]?t(r[1]):n)},_h=e=>e==="position"||e==="percentage",Eh=e=>e==="image"||e==="url",Th=e=>e==="length"||e==="size"||e==="bg-size",bh=e=>e==="length",Wb=e=>e==="number",Yb=e=>e==="family-name",kh=e=>e==="shadow",Qb=wb(()=>{const e=ve("color"),t=ve("font"),n=ve("text"),r=ve("font-weight"),i=ve("tracking"),o=ve("leading"),s=ve("breakpoint"),a=ve("container"),l=ve("spacing"),c=ve("radius"),u=ve("shadow"),h=ve("inset-shadow"),p=ve("text-shadow"),m=ve("drop-shadow"),f=ve("blur"),T=ve("perspective"),g=ve("aspect"),_=ve("ease"),x=ve("animate"),E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",X,Q],y=()=>[X,Q,l],w=()=>[Fn,"full","auto",...y()],N=()=>[Vt,"none","subgrid",X,Q],O=()=>["auto",{span:["full",Vt,X,Q]},Vt,X,Q],S=()=>[Vt,"auto",X,Q],M=()=>["auto","min","max","fr",X,Q],B=()=>["auto",...y()],G=()=>[Fn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],R=()=>[e,X,Q],q=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",gh,fh,{position:[X,Q]}],W=()=>["auto","cover","contain",zb,$b,{size:[X,Q]}],Y=()=>[Hs,Sr,an],z=()=>["","none","full",c,X,Q],Z=()=>["",se,Sr,an],J=()=>[se,Hs,gh,fh],I=()=>["","none",f,X,Q],pe=()=>["none",se,X,Q],D=()=>["none",se,X,Q],ye=()=>[se,X,Q],ke=()=>[Fn,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[St],breakpoint:[St],color:[Bb],container:[St],"drop-shadow":[St],ease:["in","out","in-out"],font:[Gb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[St],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[St],shadow:[St],spacing:["px",se],text:[St],"text-shadow":[St],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Fn,Q,X,g]}],container:["container"],columns:[{columns:[se,Q,X,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[Vt,"auto",X,Q]}],basis:[{basis:[Fn,"full","auto",a,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[se,Fn,"auto","initial","none",Q]}],grow:[{grow:["",se,X,Q]}],shrink:[{shrink:["",se,X,Q]}],order:[{order:[Vt,"first","last","none",X,Q]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":M()}],"auto-rows":[{"auto-rows":M()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[a,"screen",...G()]}],"min-w":[{"min-w":[a,"screen","none",...G()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,Sr,an]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,X,Gs]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Hs,Q]}],"font-family":[{font:[jb,Q,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,X,Q]}],"line-clamp":[{"line-clamp":[se,"none",X,Gs]}],leading:[{leading:[o,...y()]}],"list-image":[{"list-image":["none",X,Q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",X,Q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[se,"from-font","auto",X,an]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[se,"auto",X,Q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X,Q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X,Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Vt,X,Q],radial:["",X,Q],conic:[Vt,X,Q]},qb,Vb]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[se,X,Q]}],"outline-w":[{outline:["",se,Sr,an]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",u,Mi,Pi]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",h,Mi,Pi]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[se,an]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",p,Mi,Pi]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[se,X,Q]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[se]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[X,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[se]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X,Q]}],filter:[{filter:["","none",X,Q]}],blur:[{blur:I()}],brightness:[{brightness:[se,X,Q]}],contrast:[{contrast:[se,X,Q]}],"drop-shadow":[{"drop-shadow":["","none",m,Mi,Pi]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",se,X,Q]}],"hue-rotate":[{"hue-rotate":[se,X,Q]}],invert:[{invert:["",se,X,Q]}],saturate:[{saturate:[se,X,Q]}],sepia:[{sepia:["",se,X,Q]}],"backdrop-filter":[{"backdrop-filter":["","none",X,Q]}],"backdrop-blur":[{"backdrop-blur":I()}],"backdrop-brightness":[{"backdrop-brightness":[se,X,Q]}],"backdrop-contrast":[{"backdrop-contrast":[se,X,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",se,X,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[se,X,Q]}],"backdrop-invert":[{"backdrop-invert":["",se,X,Q]}],"backdrop-opacity":[{"backdrop-opacity":[se,X,Q]}],"backdrop-saturate":[{"backdrop-saturate":[se,X,Q]}],"backdrop-sepia":[{"backdrop-sepia":["",se,X,Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",X,Q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[se,"initial",X,Q]}],ease:[{ease:["linear","initial",_,X,Q]}],delay:[{delay:[se,X,Q]}],animate:[{animate:["none",x,X,Q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,X,Q]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:D()}],"scale-x":[{"scale-x":D()}],"scale-y":[{"scale-y":D()}],"scale-z":[{"scale-z":D()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[X,Q,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ke()}],"translate-x":[{"translate-x":ke()}],"translate-y":[{"translate-y":ke()}],"translate-z":[{"translate-z":ke()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X,Q]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X,Q]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[se,Sr,an,Gs]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Xb(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ln={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function Ah(e){ln=e}var Dr={exec:()=>null};function he(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(i,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(qe.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,t)};return r}var qe={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Nr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,$s=/(?:[*+-]|\d{1,9}[.)])/,yh=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,xh=he(yh).replace(/bull/g,$s).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Kb=he(yh).replace(/bull/g,$s).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Vs=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,js=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Zb=he(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",js).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Jb=he(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,$s).getRegex(),Bi="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",zs=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ek=he("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",zs).replace("tag",Bi).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ch=he(Vs).replace("hr",Nr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Bi).getRegex(),qs={blockquote:he(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ch).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:Zb,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Nr,html:ek,lheading:xh,list:Jb,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:Ch,table:Dr,text:/^[^\n]+/},Ih=he("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Nr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Bi).getRegex(),tk={...qs,lheading:Kb,table:Ih,paragraph:he(Vs).replace("hr",Nr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ih).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Bi).getRegex()},nk={...qs,html:he(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",zs).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Dr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:he(Vs).replace("hr",Nr).replace("heading",` *#{1,6} *[^
188
+ ]`).replace("lheading",xh).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Sh=/^( {2,}|\\)\n(?!\s*$)/,Fi=/[\p{P}\p{S}]/u,Ws=/[\s\p{P}\p{S}]/u,Dh=/[^\s\p{P}\p{S}]/u,rk=he(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ws).getRegex(),Nh=/(?!~)[\p{P}\p{S}]/u,wh=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,ik=he(wh,"u").replace(/punct/g,Fi).getRegex(),ok=he(wh,"u").replace(/punct/g,Nh).getRegex(),Lh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",sk=he(Lh,"gu").replace(/notPunctSpace/g,Dh).replace(/punctSpace/g,Ws).replace(/punct/g,Fi).getRegex(),ak=he(Lh,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,Nh).getRegex(),lk=he("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Dh).replace(/punctSpace/g,Ws).replace(/punct/g,Fi).getRegex(),ck=he(/\\(punct)/,"gu").replace(/punct/g,Fi).getRegex(),uk=he(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),pk=he(zs).replace("(?:-->|$)","-->").getRegex(),hk=he("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",pk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ui=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,dk=he(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ui).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Oh=he(/^!?\[(label)\]\[(ref)\]/).replace("label",Ui).replace("ref",js).getRegex(),Rh=he(/^!?\[(ref)\](?:\[\])?/).replace("ref",js).getRegex(),Ys={_backpedal:Dr,anyPunctuation:ck,autolink:uk,blockSkip:/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,br:Sh,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Dr,emStrongLDelim:ik,emStrongRDelimAst:sk,emStrongRDelimUnd:lk,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:dk,nolink:Rh,punctuation:rk,reflink:Oh,reflinkSearch:he("reflink|nolink(?!\\()","g").replace("reflink",Oh).replace("nolink",Rh).getRegex(),tag:hk,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Dr},mk={...Ys,link:he(/^!?\[(label)\]\((.*?)\)/).replace("label",Ui).getRegex(),reflink:he(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ui).getRegex()},Qs={...Ys,emStrongRDelimAst:ak,emStrongLDelim:ok,url:he(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},fk={...Qs,br:he(Sh).replace("{2,}","*").getRegex(),text:he(Qs.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Hi={normal:qs,gfm:tk,pedantic:nk},wr={normal:Ys,gfm:Qs,breaks:fk,pedantic:mk},gk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},vh=e=>gk[e];function _t(e,t){if(t){if(qe.escapeTest.test(e))return e.replace(qe.escapeReplace,vh)}else if(qe.escapeTestNoEncode.test(e))return e.replace(qe.escapeReplaceNoEncode,vh);return e}function Ph(e){try{e=encodeURI(e).replace(qe.percentDecode,"%")}catch{return null}return e}function Mh(e,t){var o;let n=e.replace(qe.findPipe,(s,a,l)=>{let c=!1,u=a;for(;--u>=0&&l[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(qe.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!((o=r.at(-1))!=null&&o.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(qe.slashPipe,"|");return r}function Lr(e,t,n){let r=e.length;if(r===0)return"";let i=0;for(;i<r&&e.charAt(r-i-1)===t;)i++;return e.slice(0,r-i)}function Bh(e,t,n,r,i){let o=t.href,s=t.title||null,a=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:s,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}var Gi=class{constructor(e){v(this,"options");v(this,"rules");v(this,"lexer");this.options=e||ln}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Lr(n,`
189
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=(function(i,o,s){let a=i.match(s.other.indentCodeCompensation);if(a===null)return o;let l=a[1];return o.split(`
190
+ `).map(c=>{let u=c.match(s.other.beginningSpace);if(u===null)return c;let[h]=u;return h.length>=l.length?c.slice(l.length):c}).join(`
191
+ `)})(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=Lr(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Lr(t[0],`
192
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Lr(t[0],`
193
+ `).split(`
194
+ `),r="",i="",o=[];for(;n.length>0;){let s,a=!1,l=[];for(s=0;s<n.length;s++)if(this.rules.other.blockquoteStart.test(n[s]))l.push(n[s]),a=!0;else{if(a)break;l.push(n[s])}n=n.slice(s);let c=l.join(`
195
+ `),u=c.replace(this.rules.other.blockquoteSetextReplace,`
196
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
197
+ ${c}`:c,i=i?`${i}
198
+ ${u}`:u;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,o,!0),this.lexer.state.top=h,n.length===0)break;let p=o.at(-1);if((p==null?void 0:p.type)==="code")break;if((p==null?void 0:p.type)==="blockquote"){let m=p,f=m.raw+`
199
+ `+n.join(`
200
+ `),T=this.blockquote(f);o[o.length-1]=T,r=r.substring(0,r.length-m.raw.length)+T.raw,i=i.substring(0,i.length-m.text.length)+T.text;break}if((p==null?void 0:p.type)==="list"){let m=p,f=m.raw+`
201
+ `+n.join(`
202
+ `),T=this.list(f);o[o.length-1]=T,r=r.substring(0,r.length-p.raw.length)+T.raw,i=i.substring(0,i.length-m.raw.length)+T.raw,n=f.substring(o.at(-1).raw.length).split(`
203
+ `);continue}}return{type:"blockquote",raw:r,tokens:o,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let o=this.rules.other.listItemRegex(n),s=!1;for(;e;){let l=!1,c="",u="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let h=t[2].split(`
204
+ `,1)[0].replace(this.rules.other.listReplaceTabs,_=>" ".repeat(3*_.length)),p=e.split(`
205
+ `,1)[0],m=!h.trim(),f=0;if(this.options.pedantic?(f=2,u=h.trimStart()):m?f=t[1].length+1:(f=t[2].search(this.rules.other.nonSpaceChar),f=f>4?1:f,u=h.slice(f),f+=t[1].length),m&&this.rules.other.blankLine.test(p)&&(c+=p+`
206
+ `,e=e.substring(p.length+1),l=!0),!l){let _=this.rules.other.nextBulletRegex(f),x=this.rules.other.hrRegex(f),E=this.rules.other.fencesBeginRegex(f),y=this.rules.other.headingBeginRegex(f),w=this.rules.other.htmlBeginRegex(f);for(;e;){let N,O=e.split(`
207
+ `,1)[0];if(p=O,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),N=p):N=p.replace(this.rules.other.tabCharGlobal," "),E.test(p)||y.test(p)||w.test(p)||_.test(p)||x.test(p))break;if(N.search(this.rules.other.nonSpaceChar)>=f||!p.trim())u+=`
208
+ `+N.slice(f);else{if(m||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||E.test(h)||y.test(h)||x.test(h))break;u+=`
209
+ `+p}!m&&!p.trim()&&(m=!0),c+=O+`
210
+ `,e=e.substring(O.length+1),h=N.slice(f)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(s=!0));let T,g=null;this.options.gfm&&(g=this.rules.other.listIsTask.exec(u),g&&(T=g[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:c,task:!!g,checked:T,loose:!1,text:u,tokens:[]}),i.raw+=c}let a=i.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),i.raw=i.raw.trimEnd();for(let l=0;l<i.items.length;l++)if(this.lexer.state.top=!1,i.items[l].tokens=this.lexer.blockTokens(i.items[l].text,[]),!i.loose){let c=i.items[l].tokens.filter(h=>h.type==="space"),u=c.length>0&&c.some(h=>this.rules.other.anyLine.test(h.raw));i.loose=u}if(i.loose)for(let l=0;l<i.items.length;l++)i.items[l].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}}table(e){var s;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Mh(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(s=t[3])!=null&&s.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
211
+ `):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let a of r)this.rules.other.tableAlignRight.test(a)?o.align.push("right"):this.rules.other.tableAlignCenter.test(a)?o.align.push("center"):this.rules.other.tableAlignLeft.test(a)?o.align.push("left"):o.align.push(null);for(let a=0;a<n.length;a++)o.header.push({text:n[a],tokens:this.lexer.inline(n[a]),header:!0,align:o.align[a]});for(let a of i)o.rows.push(Mh(a,o.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[c]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
212
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let o=Lr(n.slice(0,-1),"\\");if((n.length-o.length)%2==0)return}else{let o=(function(s,a){if(s.indexOf(a[1])===-1)return-1;let l=0;for(let c=0;c<s.length;c++)if(s[c]==="\\")c++;else if(s[c]===a[0])l++;else if(s[c]===a[1]&&(l--,l<0))return c;return l>0?-2:-1})(t[2],"()");if(o===-2)return;if(o>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(r);o&&(r=o[1],i=o[3])}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r.slice(1):r.slice(1,-1)),Bh(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!r){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return Bh(n,r,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let i,o,s=[...r[0]].length-1,a=s,l=0,c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+s);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(o=[...i].length,r[3]||r[4]){a+=o;continue}if((r[5]||r[6])&&s%3&&!((s+o)%3)){l+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a+l);let u=[...r[0]][0].length,h=e.slice(0,s+r.index+u+o);if(Math.min(s,o)%2){let m=h.slice(1,-1);return{type:"em",raw:h,text:m,tokens:this.lexer.inlineTokens(m)}}let p=h.slice(2,-2);return{type:"strong",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,i;if(t[2]==="@")r=t[0],i="mailto:"+r;else{let o;do o=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(o!==t[0]);r=t[0],i=t[1]==="www."?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},Et=class pa{constructor(t){v(this,"tokens");v(this,"options");v(this,"state");v(this,"tokenizer");v(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ln,this.options.tokenizer=this.options.tokenizer||new Gi,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:qe,block:Hi.normal,inline:wr.normal};this.options.pedantic?(n.block=Hi.pedantic,n.inline=wr.pedantic):this.options.gfm&&(n.block=Hi.gfm,this.options.breaks?n.inline=wr.breaks:n.inline=wr.gfm),this.tokenizer.rules=n}static get rules(){return{block:Hi,inline:wr}}static lex(t,n){return new pa(n).lex(t)}static lexInline(t,n){return new pa(n).inlineTokens(t)}lex(t){t=t.replace(qe.carriageReturn,`
213
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var i,o,s;for(this.options.pedantic&&(t=t.replace(qe.tabCharGlobal," ").replace(qe.spaceLine,""));t;){let a;if((o=(i=this.options.extensions)==null?void 0:i.block)!=null&&o.some(c=>!!(a=c.call({lexer:this},t,n))&&(t=t.substring(a.raw.length),n.push(a),!0)))continue;if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length);let c=n.at(-1);a.raw.length===1&&c!==void 0?c.raw+=`
214
+ `:n.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
215
+ `)?"":`
216
+ `)+a.raw,c.text+=`
217
+ `+a.text,this.inlineQueue.at(-1).src=c.text):n.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
218
+ `)?"":`
219
+ `)+a.raw,c.text+=`
220
+ `+a.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},n.push(a));continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),n.push(a);continue}let l=t;if((s=this.options.extensions)!=null&&s.startBlock){let c,u=1/0,h=t.slice(1);this.options.extensions.startBlock.forEach(p=>{c=p.call({lexer:this},h),typeof c=="number"&&c>=0&&(u=Math.min(u,c))}),u<1/0&&u>=0&&(l=t.substring(0,u+1))}if(this.state.top&&(a=this.tokenizer.paragraph(l))){let c=n.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(`
221
+ `)?"":`
222
+ `)+a.raw,c.text+=`
223
+ `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(a),r=l.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
224
+ `)?"":`
225
+ `)+a.raw,c.text+=`
226
+ `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(a);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var a,l,c;let r=t,i=null;if(this.tokens.links){let u=Object.keys(this.tokens.links);if(u.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)u.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let o=!1,s="";for(;t;){let u;if(o||(s=""),o=!1,(l=(a=this.options.extensions)==null?void 0:a.inline)==null?void 0:l.some(p=>!!(u=p.call({lexer:this},t,n))&&(t=t.substring(u.raw.length),n.push(u),!0)))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);let p=n.at(-1);u.type==="text"&&(p==null?void 0:p.type)==="text"?(p.raw+=u.raw,p.text+=u.text):n.push(u);continue}if(u=this.tokenizer.emStrong(t,r,s)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.del(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),n.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),n.push(u);continue}let h=t;if((c=this.options.extensions)!=null&&c.startInline){let p,m=1/0,f=t.slice(1);this.options.extensions.startInline.forEach(T=>{p=T.call({lexer:this},f),typeof p=="number"&&p>=0&&(m=Math.min(m,p))}),m<1/0&&m>=0&&(h=t.substring(0,m+1))}if(u=this.tokenizer.inlineText(h)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(s=u.raw.slice(-1)),o=!0;let p=n.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=u.raw,p.text+=u.text):n.push(u);continue}if(t){let p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}throw new Error(p)}}return n}},$i=class{constructor(e){v(this,"options");v(this,"parser");this.options=e||ln}space(e){return""}code({text:e,lang:t,escaped:n}){var o;let r=(o=(t||"").match(qe.notSpaceStart))==null?void 0:o[0],i=e.replace(qe.endingNewline,"")+`
227
+ `;return r?'<pre><code class="language-'+_t(r)+'">'+(n?i:_t(i,!0))+`</code></pre>
228
+ `:"<pre><code>"+(n?i:_t(i,!0))+`</code></pre>
229
+ `}blockquote({tokens:e}){return`<blockquote>
230
+ ${this.parser.parse(e)}</blockquote>
231
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
232
+ `}hr(e){return`<hr>
233
+ `}list(e){let t=e.ordered,n=e.start,r="";for(let o=0;o<e.items.length;o++){let s=e.items[o];r+=this.listitem(s)}let i=t?"ol":"ul";return"<"+i+(t&&n!==1?' start="'+n+'"':"")+`>
234
+ `+r+"</"+i+`>
235
+ `}listitem(e){var n;let t="";if(e.task){let r=this.checkbox({checked:!!e.checked});e.loose?((n=e.tokens[0])==null?void 0:n.type)==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=r+" "+_t(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):t+=r+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
236
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
237
+ `}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let r="";for(let i=0;i<e.rows.length;i++){let o=e.rows[i];n="";for(let s=0;s<o.length;s++)n+=this.tablecell(o[s]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
238
+ <thead>
239
+ `+t+`</thead>
240
+ `+r+`</table>
241
+ `}tablerow({text:e}){return`<tr>
242
+ ${e}</tr>
243
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
244
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${_t(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Ph(e);if(i===null)return r;let o='<a href="'+(e=i)+'"';return t&&(o+=' title="'+_t(t)+'"'),o+=">"+r+"</a>",o}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Ph(e);if(i===null)return _t(n);let o=`<img src="${e=i}" alt="${n}"`;return t&&(o+=` title="${_t(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:_t(e.text)}},Xs=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Dt=class ha{constructor(t){v(this,"options");v(this,"renderer");v(this,"textRenderer");this.options=t||ln,this.options.renderer=this.options.renderer||new $i,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Xs}static parse(t,n){return new ha(n).parse(t)}static parseInline(t,n){return new ha(n).parseInline(t)}parse(t,n=!0){var i,o;let r="";for(let s=0;s<t.length;s++){let a=t[s];if((o=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&o[a.type]){let c=a,u=this.options.extensions.renderers[c.type].call({parser:this},c);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){r+=u||"";continue}}let l=a;switch(l.type){case"space":r+=this.renderer.space(l);continue;case"hr":r+=this.renderer.hr(l);continue;case"heading":r+=this.renderer.heading(l);continue;case"code":r+=this.renderer.code(l);continue;case"table":r+=this.renderer.table(l);continue;case"blockquote":r+=this.renderer.blockquote(l);continue;case"list":r+=this.renderer.list(l);continue;case"html":r+=this.renderer.html(l);continue;case"def":r+=this.renderer.def(l);continue;case"paragraph":r+=this.renderer.paragraph(l);continue;case"text":{let c=l,u=this.renderer.text(c);for(;s+1<t.length&&t[s+1].type==="text";)c=t[++s],u+=`
245
+ `+this.renderer.text(c);r+=n?this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):u;continue}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}parseInline(t,n=this.renderer){var i,o;let r="";for(let s=0;s<t.length;s++){let a=t[s];if((o=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&o[a.type]){let c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=c||"";continue}}let l=a;switch(l.type){case"escape":case"text":r+=n.text(l);break;case"html":r+=n.html(l);break;case"link":r+=n.link(l);break;case"image":r+=n.image(l);break;case"strong":r+=n.strong(l);break;case"em":r+=n.em(l);break;case"codespan":r+=n.codespan(l);break;case"br":r+=n.br(l);break;case"del":r+=n.del(l);break;default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}},Vi=(ta=class{constructor(e){v(this,"options");v(this,"block");this.options=e||ln}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Et.lex:Et.lexInline}provideParser(){return this.block?Dt.parse:Dt.parseInline}},v(ta,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),ta),cn=new class{constructor(...e){v(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null});v(this,"options",this.setOptions);v(this,"parse",this.parseMarkdown(!0));v(this,"parseInline",this.parseMarkdown(!1));v(this,"Parser",Dt);v(this,"Renderer",$i);v(this,"TextRenderer",Xs);v(this,"Lexer",Et);v(this,"Tokenizer",Gi);v(this,"Hooks",Vi);this.use(...e)}walkTokens(e,t){var r,i;let n=[];for(let o of e)switch(n=n.concat(t.call(this,o)),o.type){case"table":{let s=o;for(let a of s.header)n=n.concat(this.walkTokens(a.tokens,t));for(let a of s.rows)for(let l of a)n=n.concat(this.walkTokens(l.tokens,t));break}case"list":{let s=o;n=n.concat(this.walkTokens(s.items,t));break}default:{let s=o;(i=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&i[s.type]?this.defaults.extensions.childTokens[s.type].forEach(a=>{let l=s[a].flat(1/0);n=n.concat(this.walkTokens(l,t))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let o=t.renderers[i.name];t.renderers[i.name]=o?function(...s){let a=i.renderer.apply(this,s);return a===!1&&(a=o.apply(this,s)),a}:i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=t[i.level];o?o.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),n.renderer){let i=this.defaults.renderer||new $i(this.defaults);for(let o in n.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let s=o,a=n.renderer[s],l=i[s];i[s]=(...c)=>{let u=a.apply(i,c);return u===!1&&(u=l.apply(i,c)),u||""}}r.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new Gi(this.defaults);for(let o in n.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let s=o,a=n.tokenizer[s],l=i[s];i[s]=(...c)=>{let u=a.apply(i,c);return u===!1&&(u=l.apply(i,c)),u}}r.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new Vi;for(let o in n.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let s=o,a=n.hooks[s],l=i[s];Vi.passThroughHooks.has(o)?i[s]=c=>{if(this.defaults.async)return Promise.resolve(a.call(i,c)).then(h=>l.call(i,h));let u=a.call(i,c);return l.call(i,u)}:i[s]=(...c)=>{let u=a.apply(i,c);return u===!1&&(u=l.apply(i,c)),u}}r.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,o=n.walkTokens;r.walkTokens=function(s){let a=[];return a.push(o.call(this,s)),i&&(a=a.concat(i.call(this,s))),a}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Et.lex(e,t??this.defaults)}parser(e,t){return Dt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let s=i.hooks?i.hooks.provideLexer():e?Et.lex:Et.lexInline,a=i.hooks?i.hooks.provideParser():e?Dt.parse:Dt.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(l=>s(l,i)).then(l=>i.hooks?i.hooks.processAllTokens(l):l).then(l=>i.walkTokens?Promise.all(this.walkTokens(l,i.walkTokens)).then(()=>l):l).then(l=>a(l,i)).then(l=>i.hooks?i.hooks.postprocess(l):l).catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let l=s(t,i);i.hooks&&(l=i.hooks.processAllTokens(l)),i.walkTokens&&this.walkTokens(l,i.walkTokens);let c=a(l,i);return i.hooks&&(c=i.hooks.postprocess(c)),c}catch(l){return o(l)}}}onError(e,t){return n=>{if(n.message+=`
246
+ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+_t(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}};function de(e,t){return cn.parse(e,t)}de.options=de.setOptions=function(e){return cn.setOptions(e),de.defaults=cn.defaults,Ah(de.defaults),de},de.getDefaults=Xb,de.defaults=ln,de.use=function(...e){return cn.use(...e),de.defaults=cn.defaults,Ah(de.defaults),de},de.walkTokens=function(e,t){return cn.walkTokens(e,t)},de.parseInline=cn.parseInline,de.Parser=Dt,de.parser=Dt.parse,de.Renderer=$i,de.TextRenderer=Xs,de.Lexer=Et,de.lexer=Et.lex,de.Tokenizer=Gi,de.Hooks=Vi,de.parse=de,de.options,de.setOptions,de.use,de.walkTokens,de.parseInline,Dt.parse,Et.lex;var ue=(...e)=>Qb(uA(e)),Ks=(e,t,n)=>{let r=typeof t=="string"?new Blob([t],{type:n}):t,i=URL.createObjectURL(r),o=document.createElement("a");o.href=i,o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(i)},_k=/<pre(\s|>)/,Zs=K.createContext({code:""}),Ek=new class{constructor(){this.lightHighlighter=null,this.darkHighlighter=null,this.lightTheme=null,this.darkTheme=null,this.loadedLanguages=new Set,this.initializationPromise=null}isLanguageSupported(e){return Object.hasOwn(fp,e)}getFallbackLanguage(){return"text"}async ensureHighlightersInitialized(e,t){var n,r;let[i,o]=e,s=Tb({forgiving:!0}),a=!this.lightHighlighter||this.lightTheme!==i,l=!this.darkHighlighter||this.darkTheme!==o;(a||l)&&this.loadedLanguages.clear();let c=this.isLanguageSupported(t),u=!this.loadedLanguages.has(t)&&c;if(a?(this.lightHighlighter=await _p({themes:[i],langs:c?[t]:[],engine:s}),this.lightTheme=i,c&&this.loadedLanguages.add(t)):u&&await((n=this.lightHighlighter)==null?void 0:n.loadLanguage(t)),l){let h=u?[...this.loadedLanguages].concat(c?[t]:[]):Array.from(this.loadedLanguages);this.darkHighlighter=await _p({themes:[o],langs:h.length>0?h:c?[t]:[],engine:s}),this.darkTheme=o}else u&&await((r=this.darkHighlighter)==null?void 0:r.loadLanguage(t));u&&this.loadedLanguages.add(t)}async highlightCode(e,t,n,r){var i,o;this.initializationPromise&&await this.initializationPromise,this.initializationPromise=this.ensureHighlightersInitialized(n,t),await this.initializationPromise,this.initializationPromise=null;let[s,a]=n,l=this.isLanguageSupported(t)?t:this.getFallbackLanguage(),c=(i=this.lightHighlighter)==null?void 0:i.codeToHtml(e,{lang:l,theme:s}),u=(o=this.darkHighlighter)==null?void 0:o.codeToHtml(e,{lang:l,theme:a}),h=p=>r?p.replace(_k,`<pre class="${r}"$1`):p;return[Fh(h(c)),Fh(h(u))]}},Fh=e=>e.replace(/(<pre[^>]*)(style="[^"]*background[^";]*;?[^"]*")([^>]*>)/g,"$1$3"),Tk=({code:e,language:t,className:n,children:r,preClassName:i,...o})=>{let[s,a]=K.useState(""),[l,c]=K.useState(""),u=K.useRef(!1),[h,p]=K.useContext(fd);return K.useEffect(()=>(u.current=!0,Ek.highlightCode(e,t,[h,p],i).then(([m,f])=>{u.current&&(a(m),c(f))}),()=>{u.current=!1}),[e,t,h,p,i]),U.jsx(Zs.Provider,{value:{code:e},children:U.jsxs("div",{className:"my-4 w-full overflow-hidden rounded-xl border","data-code-block-container":!0,"data-language":t,children:[U.jsxs("div",{className:"flex items-center justify-between bg-muted/80 p-3 text-muted-foreground text-xs","data-code-block-header":!0,"data-language":t,children:[U.jsx("span",{className:"ml-1 font-mono lowercase",children:t}),U.jsx("div",{className:"flex items-center gap-2",children:r})]}),U.jsx("div",{className:"w-full",children:U.jsxs("div",{className:"min-w-full",children:[U.jsx("div",{className:ue("overflow-x-auto dark:hidden",n),dangerouslySetInnerHTML:{__html:s},"data-code-block":!0,"data-language":t,...o}),U.jsx("div",{className:ue("hidden overflow-x-auto dark:block",n),dangerouslySetInnerHTML:{__html:l},"data-code-block":!0,"data-language":t,...o})]})})]})})},Uh={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",\u6587\u8A00:"wy"},Hh=({onDownload:e,onError:t,language:n,children:r,className:i,code:o,...s})=>{let a=K.useContext(Zs).code,l=o??a,c=`file.${n&&n in Uh?Uh[n]:"txt"}`;return U.jsx("button",{className:ue("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",i),onClick:()=>{try{Ks(c,l,"text/plain"),e==null||e()}catch(u){t==null||t(u)}},title:"Download file",type:"button",...s,children:r??U.jsx(aa,{size:14})})},Gh=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:o,...s})=>{let[a,l]=K.useState(!1),c=K.useRef(0),u=K.useContext(Zs).code,h=o??u;K.useEffect(()=>()=>{window.clearTimeout(c.current)},[]);let p=a?Rd:vd;return U.jsx("button",{className:ue("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",i),onClick:async()=>{var m;if(typeof window<"u"&&(m=navigator==null?void 0:navigator.clipboard)!=null&&m.writeText)try{a||(await navigator.clipboard.writeText(h),l(!0),e==null||e(),c.current=window.setTimeout(()=>l(!1),n))}catch(f){t==null||t(f)}else t==null||t(new Error("Clipboard API not available"))},type:"button",...s,children:r??U.jsx(p,{size:14})})},bk=({chart:e,className:t,config:n})=>{let[r,i]=K.useState(null),[o,s]=K.useState(!0),[a,l]=K.useState(""),[c,u]=K.useState("");if(K.useEffect(()=>{(async()=>{try{i(null),s(!0);let p=await(async g=>{let _={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...g},x=(await k(async()=>{const{default:E}=await import("./mermaid.core-BFFCqfOn.js").then(async y=>(await y.__tla,y)).then(y=>y.ar);return{default:E}},__vite__mapDeps([95,96,97,98,99,100,101]),import.meta.url)).default;return x.initialize(_),x})(n),m=e.split("").reduce((g,_)=>(g<<5)-g+_.charCodeAt(0)|0,0),f=`mermaid-${Math.abs(m)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:T}=await p.render(f,e);l(T),u(T)}catch(p){if(!c&&!a){let m=p instanceof Error?p.message:"Failed to render Mermaid chart";i(m)}}finally{s(!1)}})()},[e,n]),o&&!a&&!c)return U.jsx("div",{className:ue("my-4 flex justify-center p-4",t),children:U.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[U.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),U.jsx("span",{className:"text-sm",children:"Loading diagram..."})]})});if(r&&!a&&!c)return U.jsxs("div",{className:ue("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[U.jsxs("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",r]}),U.jsxs("details",{className:"mt-2",children:[U.jsx("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),U.jsx("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let h=a||c;return U.jsx("div",{"aria-label":"Mermaid chart",className:ue("my-4 flex justify-center",t),dangerouslySetInnerHTML:{__html:h},role:"img"})};function $h(e){var t,n;let r=[],i=[],o=e.querySelectorAll("thead th");for(let a of o)r.push(((t=a.textContent)==null?void 0:t.trim())||"");let s=e.querySelectorAll("tbody tr");for(let a of s){let l=[],c=a.querySelectorAll("td");for(let u of c)l.push(((n=u.textContent)==null?void 0:n.trim())||"");i.push(l)}return{headers:r,rows:i}}function Vh(e){let{headers:t,rows:n}=e,r=o=>o.includes(",")||o.includes('"')||o.includes(`
247
+ `)?`"${o.replace(/"/g,'""')}"`:o,i=[];t.length>0&&i.push(t.map(r).join(","));for(let o of n)i.push(o.map(r).join(","));return i.join(`
248
+ `)}function jh(e){let{headers:t,rows:n}=e;if(t.length===0)return"";let r=[],i=t.map(o=>o.replace(/\|/g,"\\|"));r.push(`| ${i.join(" | ")} |`),r.push(`| ${t.map(()=>"---").join(" | ")} |`);for(let o of n){let s=[...o];for(;s.length<t.length;)s.push("");let a=s.map(l=>l.replace(/\|/g,"\\|"));r.push(`| ${a.join(" | ")} |`)}return r.join(`
249
+ `)}var kk=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3,format:o="markdown"})=>{let[s,a]=K.useState(!1),l=K.useRef(0);K.useEffect(()=>()=>{window.clearTimeout(l.current)},[]);let c=s?Rd:vd;return U.jsx("button",{className:ue("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",t),onClick:async u=>{var h;if(typeof window<"u"&&(h=navigator==null?void 0:navigator.clipboard)!=null&&h.write)try{if(!s){let p=u.currentTarget.closest('[data-streamdown="table-wrapper"]'),m=p==null?void 0:p.querySelector("table");if(!m)return void(r==null||r(new Error("Table not found")));let f=$h(m),T=new ClipboardItem({"text/plain":o==="markdown"?jh(f):Vh(f),"text/html":new Blob([m.outerHTML],{type:"text/html"})});await navigator.clipboard.write([T]),a(!0),n==null||n(),l.current=window.setTimeout(()=>a(!1),i)}}catch(p){r==null||r(p)}else r==null||r(new Error("Clipboard API not available"))},title:`Copy table as ${o}`,type:"button",children:e??U.jsx(c,{size:14})})},Ak=({children:e,className:t,onDownload:n,onError:r})=>{let[i,o]=K.useState(!1),s=K.useRef(null),a=l=>{var c;try{let u=(c=s.current)==null?void 0:c.closest('[data-streamdown="table-wrapper"]'),h=u==null?void 0:u.querySelector("table");if(!h)return void(r==null||r(new Error("Table not found")));let p=$h(h),m=l==="csv"?Vh(p):jh(p);Ks("table."+(l==="csv"?"csv":"md"),m,l==="csv"?"text/csv":"text/markdown"),o(!1),n==null||n(l)}catch(u){r==null||r(u)}};return K.useEffect(()=>{let l=c=>{s.current&&!s.current.contains(c.target)&&o(!1)};return document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[]),U.jsxs("div",{className:"relative",ref:s,children:[U.jsx("button",{className:ue("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground",t),onClick:()=>o(!i),title:"Download table",type:"button",children:e??U.jsx(aa,{size:14})}),i&&U.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] rounded-md border border-border bg-background shadow-lg",children:[U.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>a("csv"),type:"button",children:"CSV"}),U.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>a("markdown"),type:"button",children:"Markdown"})]})]})},yk=/language-([^\s]+)/;function ji(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(e==null||!e.position||t==null||!t.position)return!1;let n=e.position.start,r=t.position.start,i=e.position.end,o=t.position.end;return(n==null?void 0:n.line)===(r==null?void 0:r.line)&&(n==null?void 0:n.column)===(r==null?void 0:r.column)&&(i==null?void 0:i.line)===(o==null?void 0:o.line)&&(i==null?void 0:i.column)===(o==null?void 0:o.column)}function we(e,t){return e.className===t.className&&ji(e.node,t.node)}var Js=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,zh=K.memo(({children:e,className:t,...n})=>U.jsx("ol",{className:ue("ml-4 list-outside list-decimal whitespace-normal",t),"data-streamdown":"ordered-list",...n,children:e}),(e,t)=>we(e,t));zh.displayName="MarkdownOl";var qh=K.memo(({children:e,className:t,...n})=>U.jsx("li",{className:ue("py-1",t),"data-streamdown":"list-item",...n,children:e}),(e,t)=>e.className===t.className&&ji(e.node,t.node));qh.displayName="MarkdownLi";var Wh=K.memo(({children:e,className:t,...n})=>U.jsx("ul",{className:ue("ml-4 list-outside list-disc whitespace-normal",t),"data-streamdown":"unordered-list",...n,children:e}),(e,t)=>we(e,t));Wh.displayName="MarkdownUl";var Yh=K.memo(({className:e,...t})=>U.jsx("hr",{className:ue("my-6 border-border",e),"data-streamdown":"horizontal-rule",...t}),(e,t)=>we(e,t));Yh.displayName="MarkdownHr";var Qh=K.memo(({children:e,className:t,...n})=>U.jsx("span",{className:ue("font-semibold",t),"data-streamdown":"strong",...n,children:e}),(e,t)=>we(e,t));Qh.displayName="MarkdownStrong";var Xh=K.memo(({children:e,className:t,href:n,...r})=>{let i=n==="streamdown:incomplete-link";return U.jsx("a",{className:ue("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":i,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...r,children:e})},(e,t)=>we(e,t)&&e.href===t.href);Xh.displayName="MarkdownA";var Kh=K.memo(({children:e,className:t,...n})=>U.jsx("h1",{className:ue("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...n,children:e}),(e,t)=>we(e,t));Kh.displayName="MarkdownH1";var Zh=K.memo(({children:e,className:t,...n})=>U.jsx("h2",{className:ue("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...n,children:e}),(e,t)=>we(e,t));Zh.displayName="MarkdownH2";var Jh=K.memo(({children:e,className:t,...n})=>U.jsx("h3",{className:ue("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...n,children:e}),(e,t)=>we(e,t));Jh.displayName="MarkdownH3";var ed=K.memo(({children:e,className:t,...n})=>U.jsx("h4",{className:ue("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...n,children:e}),(e,t)=>we(e,t));ed.displayName="MarkdownH4";var td=K.memo(({children:e,className:t,...n})=>U.jsx("h5",{className:ue("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...n,children:e}),(e,t)=>we(e,t));td.displayName="MarkdownH5";var nd=K.memo(({children:e,className:t,...n})=>U.jsx("h6",{className:ue("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...n,children:e}),(e,t)=>we(e,t));nd.displayName="MarkdownH6";var rd=K.memo(({children:e,className:t,...n})=>{let r=K.useContext(ea),i=Js(r,"table");return U.jsxs("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[i&&U.jsxs("div",{className:"flex items-center justify-end gap-1",children:[U.jsx(kk,{}),U.jsx(Ak,{})]}),U.jsx("div",{className:"overflow-x-auto",children:U.jsx("table",{className:ue("w-full border-collapse border border-border",t),"data-streamdown":"table",...n,children:e})})]})},(e,t)=>we(e,t));rd.displayName="MarkdownTable";var id=K.memo(({children:e,className:t,...n})=>U.jsx("thead",{className:ue("bg-muted/80",t),"data-streamdown":"table-header",...n,children:e}),(e,t)=>we(e,t));id.displayName="MarkdownThead";var od=K.memo(({children:e,className:t,...n})=>U.jsx("tbody",{className:ue("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...n,children:e}),(e,t)=>we(e,t));od.displayName="MarkdownTbody";var sd=K.memo(({children:e,className:t,...n})=>U.jsx("tr",{className:ue("border-border border-b",t),"data-streamdown":"table-row",...n,children:e}),(e,t)=>we(e,t));sd.displayName="MarkdownTr";var ad=K.memo(({children:e,className:t,...n})=>U.jsx("th",{className:ue("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...n,children:e}),(e,t)=>we(e,t));ad.displayName="MarkdownTh";var ld=K.memo(({children:e,className:t,...n})=>U.jsx("td",{className:ue("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...n,children:e}),(e,t)=>we(e,t));ld.displayName="MarkdownTd";var cd=K.memo(({children:e,className:t,...n})=>U.jsx("blockquote",{className:ue("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...n,children:e}),(e,t)=>we(e,t));cd.displayName="MarkdownBlockquote";var ud=K.memo(({children:e,className:t,...n})=>U.jsx("sup",{className:ue("text-sm",t),"data-streamdown":"superscript",...n,children:e}),(e,t)=>we(e,t));ud.displayName="MarkdownSup";var pd=K.memo(({children:e,className:t,...n})=>U.jsx("sub",{className:ue("text-sm",t),"data-streamdown":"subscript",...n,children:e}),(e,t)=>we(e,t));pd.displayName="MarkdownSub";var hd=K.memo(({node:e,className:t,children:n,...r})=>{var i,o,s;let a=((i=e==null?void 0:e.position)==null?void 0:i.start.line)===((o=e==null?void 0:e.position)==null?void 0:o.end.line),l=K.useContext(gd),c=K.useContext(ea);if(a)return U.jsx("code",{className:ue("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let u=t==null?void 0:t.match(yk),h=(s=u==null?void 0:u.at(1))!=null?s:"",p="";if(K.isValidElement(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?p=n.props.children:typeof n=="string"&&(p=n),h==="mermaid"){let f=Js(c,"mermaid");return U.jsxs("div",{className:ue("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[f&&U.jsxs("div",{className:"flex items-center justify-end gap-2",children:[U.jsx(Hh,{code:p,language:h}),U.jsx(Gh,{code:p})]}),U.jsx(bk,{chart:p,config:l})]})}let m=Js(c,"code");return U.jsx(Tk,{className:ue("overflow-x-auto border-t",t),code:p,"data-language":h,"data-streamdown":"code-block",language:h,preClassName:"overflow-x-auto font-mono text-xs p-4 bg-muted/40",children:m&&U.jsxs(U.Fragment,{children:[U.jsx(Hh,{code:p,language:h}),U.jsx(Gh,{})]})})},(e,t)=>e.className===t.className&&ji(e.node,t.node));hd.displayName="MarkdownCode";var dd=K.memo(({node:e,className:t,src:n,alt:r,...i})=>n?U.jsxs("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[U.jsx("img",{alt:r,className:ue("max-w-full rounded-lg",t),"data-streamdown":"image",src:n,...i}),U.jsx("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),U.jsx("button",{className:ue("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:async()=>{var o;if(n)try{let s=await(await fetch(n)).blob(),a=new URL(n,window.location.origin).pathname.split("/").pop()||"",l=a.includes(".")&&((o=a.split(".").pop())==null?void 0:o.length)<=4,c="";if(l)c=a;else{let u=s.type,h="png";u.includes("jpeg")||u.includes("jpg")?h="jpg":u.includes("png")?h="png":u.includes("svg")?h="svg":u.includes("gif")?h="gif":u.includes("webp")&&(h="webp"),c=`${(r||a||"image").replace(/\.[^/.]+$/,"")}.${h}`}Ks(c,s,s.type)}catch(s){console.error("Failed to download image:",s)}},title:"Download image",type:"button",children:U.jsx(aa,{size:14})})]}):null,(e,t)=>e.className===t.className&&ji(e.node,t.node));dd.displayName="MarkdownImg";var xk={ol:zh,li:qh,ul:Wh,hr:Yh,strong:Qh,a:Xh,h1:Kh,h2:Zh,h3:Jh,h4:ed,h5:td,h6:nd,table:rd,thead:id,tbody:od,tr:sd,th:ad,td:ld,blockquote:cd,code:hd,img:dd,pre:({children:e})=>e,sup:ud,sub:pd},Ck=/(!?\[)([^\]]*?)$/,Ik=/(\*\*)([^*]*?)$/,Sk=/(__)([^_]*?)$/,Dk=/(\*\*\*)([^*]*?)$/,Nk=/(\*)([^*]*?)$/,wk=/(_)([^_]*?)$/,Lk=/(`)([^`]*?)$/,Ok=/(~~)([^~]*?)$/,zi=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2==0&&e.includes(`
250
+ `)},md=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i++)e[i]!=="\\"||e[i+1]!=="$"?e[i]==="$"&&(e[i+1]==="$"?(r=!r,i++,n=!1):r||(n=!n)):i++;return n||r},Rk=e=>{if(zi(e))return e;if(e.match(wk)){let t=-1;for(let r=0;r<e.length;r++)if(e[r]==="_"&&e[r-1]!=="_"&&e[r+1]!=="_"&&e[r-1]!=="\\"&&!md(e,r)){let i=r>0?e[r-1]:"",o=r<e.length-1?e[r+1]:"";if(i&&o&&/[\p{L}\p{N}_]/u.test(i)&&/[\p{L}\p{N}_]/u.test(o))continue;t=r;break}if(t===-1)return e;let n=e.substring(t+1);if(!n||/^[\s_~*`]*$/.test(n))return e;if((r=>r.split("").reduce((i,o,s)=>{if(o==="_"){let a=r[s-1],l=r[s+1];if(a==="\\"||md(r,s)||a&&l&&/[\p{L}\p{N}_]/u.test(a)&&/[\p{L}\p{N}_]/u.test(l))return i;if(a!=="_"&&l!=="_")return i+1}return i},0))(e)%2==1){let r=e.match(/\n+$/);return r?`${e.slice(0,-r[0].length)}_${r[0]}`:`${e}_`}}return e},vk=(e,t)=>{let n=e.substring(t,t+3)==="```",r=t>0&&e.substring(t-1,t+2)==="```",i=t>1&&e.substring(t-2,t+1)==="```";return n||r||i},Pk=e=>{if(e.match(/^```[^`\n]*```?$/)&&!e.includes(`
251
+ `))return e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e;let t=(e.match(/```/g)||[]).length,n=t%2==1;if(t>0&&t%2==0&&e.includes(`
252
+ `)||(e.endsWith("```\n")||e.endsWith("```"))&&t%2==0)return e;let r=e.match(Lk);if(r&&!n){let i=r[2];if(!i||/^[\s_~*`]*$/.test(i))return e;if((o=>{let s=0;for(let a=0;a<o.length;a++)o[a]==="`"&&!vk(o,a)&&s++;return s})(e)%2==1)return`${e}\``}return e},Mk=e=>{if(zi(e)||/^\*{4,}$/.test(e))return e;let t=e.match(Dk);if(t){let n=t[2];if(!n||/^[\s_~*`]*$/.test(n))return e;if((r=>{let i=0,o=r.match(/\*+/g)||[];for(let s of o){let a=s.length;a>=3&&(i+=Math.floor(a/3))}return i})(e)%2==1)return`${e}***`}return e},Bk=e=>{if(!e||typeof e!="string")return e;let t=e,n=(r=>{let i=r.match(Ck);if(i){if(i[1].startsWith("!")){let o=r.lastIndexOf(i[1]);return r.substring(0,o)}return`${r}](streamdown:incomplete-link)`}return r})(t);return n.endsWith("](streamdown:incomplete-link)")?n:(t=n,t=Mk(t),t=(r=>{if(zi(r))return r;let i=r.match(Ik);if(i){let o=i[2];if(!o||/^[\s_~*`]*$/.test(o))return r;let s=r.lastIndexOf(i[1]),a=r.substring(0,s).lastIndexOf(`
253
+ `),l=a===-1?0:a+1,c=r.substring(l,s);if(/^[\s]*[-*+][\s]+$/.test(c)&&o.includes(`
254
+ `))return r;if((r.match(/\*\*/g)||[]).length%2==1)return`${r}**`}return r})(t),t=(r=>{let i=r.match(Sk);if(i){let o=i[2];if(!o||/^[\s_~*`]*$/.test(o))return r;let s=r.lastIndexOf(i[1]),a=r.substring(0,s).lastIndexOf(`
255
+ `),l=a===-1?0:a+1,c=r.substring(l,s);if(/^[\s]*[-*+][\s]+$/.test(c)&&o.includes(`
256
+ `))return r;if((r.match(/__/g)||[]).length%2==1)return`${r}__`}return r})(t),t=(r=>{if(zi(r))return r;if(r.match(Nk)){let i=-1;for(let s=0;s<r.length;s++)if(r[s]==="*"&&r[s-1]!=="*"&&r[s+1]!=="*"){i=s;break}if(i===-1)return r;let o=r.substring(i+1);if(!o||/^[\s_~*`]*$/.test(o))return r;if((s=>s.split("").reduce((a,l,c)=>{if(l==="*"){let u=s[c-1],h=s[c+1];if(u==="\\")return a;let p=c;for(let m=c-1;m>=0;m--){if(s[m]===`
257
+ `){p=m+1;break}if(m===0){p=0;break}}if(s.substring(p,c).trim()===""&&(h===" "||h===" "))return a;if(u!=="*"&&h!=="*")return a+1}return a},0))(r)%2==1)return`${r}*`}return r})(t),t=Rk(t),t=Pk(t),t=(r=>{let i=r.match(Ok);if(i){let o=i[2];if(!o||/^[\s_~*`]*$/.test(o))return r;if((r.match(/~~/g)||[]).length%2==1)return`${r}~~`}return r})(t),t=(r=>{if((r.match(/\$\$/g)||[]).length%2==0)return r;let i=r.indexOf("$$");return i===-1||r.indexOf(`
258
+ `,i)===-1||r.endsWith(`
259
+ `)?`${r}$$`:`${r}
260
+ $$`})(t),t)},Fk=(Iu.default||Iu)(function(e){const t=(function(r){const i=r.rehypePlugins||Tl,o=r.remarkPlugins||Tl,s=r.remarkRehypeOptions?{...r.remarkRehypeOptions,...bl}:bl;return xf().use(nf).use(o).use(_f,s).use(i)})(e),n=(function(r){const i=r.children||"",o=new fl;return typeof i=="string"&&(o.value=i),o})(e);return(function(r,i){const o=i.allowedElements,s=i.allowElement,a=i.components,l=i.disallowedElements,c=i.skipHtml,u=i.unwrapDisallowed,h=i.urlTransform||Sf;for(const m of If)Object.hasOwn(i,m.from)&&(m.from,m.to&&m.to,m.id,void 0);return qr(r,p),im(r,{Fragment:U.Fragment,components:a,ignoreInvalidStyle:!0,jsx:U.jsx,jsxs:U.jsxs,passKeys:!0,passNode:!0});function p(m,f,T){if(m.type==="raw"&&T&&typeof f=="number")return c?T.children.splice(f,1):T.children[f]={type:"text",value:m.value},f;if(m.type==="element"){let g;for(g in io)if(Object.hasOwn(io,g)&&Object.hasOwn(m.properties,g)){const _=m.properties[g],x=io[g];(x===null||x.includes(m.tagName))&&(m.properties[g]=h(String(_||""),g,m))}}if(m.type==="element"){let g=o?!o.includes(m.tagName):!!l&&l.includes(m.tagName);if(!g&&s&&typeof f=="number"&&(g=!s(m,f,T)),g&&T&&typeof f=="number")return u&&m.children?T.children.splice(f,1,...m.children):T.children.splice(f,1),f}}})(t.runSync(t.parse(n),n),e)}),fd=K.createContext(["github-light","github-dark"]),gd=K.createContext(void 0),ea=K.createContext(!0),Uk={singleDollarTextMath:!1},Hk={},_d=K.memo(({content:e,shouldParseIncompleteMarkdown:t,...n})=>{let r=K.useMemo(()=>typeof e=="string"&&t?Bk(e.trim()):e,[e,t]);return U.jsx(Fk,{...n,children:r})},(e,t)=>e.content===t.content);_d.displayName="Block";var Ed=K.memo(({children:e,allowedImagePrefixes:t=["*"],allowedLinkPrefixes:n=["*"],defaultOrigin:r,parseIncompleteMarkdown:i=!0,components:o,rehypePlugins:s,remarkPlugins:a,className:l,shikiTheme:c=["github-light","github-dark"],mermaidConfig:u,controls:h=!0,...p})=>{let m=K.useId(),f=K.useMemo(()=>(g=>{let _=Et.lex(g,{gfm:!0}).map(E=>E.raw),x=[];for(let E of _){if(E.trim()==="$$"&&x.length>0){let y=x.at(-1);if(!y)continue;let w=y.trimStart().startsWith("$$"),N=(y.match(/\$\$/g)||[]).length;if(w&&N%2==1){x[x.length-1]=y+E;continue}}if(x.length>0&&E.trimEnd().endsWith("$$")){let y=x.at(-1);if(!y)continue;let w=y.trimStart().startsWith("$$"),N=(y.match(/\$\$/g)||[]).length,O=(E.match(/\$\$/g)||[]).length;if(w&&N%2==1&&!E.trimStart().startsWith("$$")&&O===1){x[x.length-1]=y+E;continue}}x.push(E)}return x})(typeof e=="string"?e:""),[e]),T=K.useMemo(()=>()=>Mf({errorColor:"var(--color-muted-foreground)"}),[]);return U.jsx(fd.Provider,{value:c,children:U.jsx(gd.Provider,{value:u,children:U.jsx(ea.Provider,{value:h,children:U.jsx("div",{className:ue("space-y-4",l),...p,children:f.map((g,_)=>U.jsx(_d,{allowedImagePrefixes:t,allowedLinkPrefixes:n,components:{...xk,...o},content:g,defaultOrigin:r,rehypePlugins:[jg,T,...s??[]],remarkPlugins:[[q_,Hk],[Z_,Uk],...a??[]],shouldParseIncompleteMarkdown:i},`${m}-block_${_}`))})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme);Ed.displayName="Streamdown";const Gk=[mA.lineWrapping],$k=new Set(["python","markdown","sql","json","yaml","toml","shell","javascript","typescript","jsx","tsx","css","html"]);let Td,bd,kd,Ad;Td=e=>{const t=jn.c(9),{code:n,language:r}=e,{createNewCell:i}=fA(),o=gA(),s=_A(EA);let a;t[0]!==s||t[1]!==n||t[2]!==i||t[3]!==r||t[4]!==o?(a=()=>{const h=(function(p,m){return p?p==="python"?{language:p,code:m}:p==="sql"?{language:"python",code:bA.fromQuery(m)}:p==="markdown"?{language:"python",code:kA.fromMarkdown(m)}:p==="shell"||p==="bash"?{language:"python",code:`import subprocess
261
+ subprocess.run("${m}")`}:{language:"python",code:`_${p} = """
262
+ ${m}
263
+ """`}:{language:"python",code:m}})(r,n);r==="sql"&&TA({autoInstantiate:s,createNewCell:i,fromCellId:o}),i({code:h.code,before:!1,cellId:o??"__end__"})},t[0]=s,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a):a=t[5];const l=a;let c,u;return t[6]===Symbol.for("react.memo_cache_sentinel")?(c=U.jsx(CA,{className:"ml-2 h-4 w-4"}),t[6]=c):c=t[6],t[7]!==l?(u=U.jsxs(Pd,{size:"xs",variant:"outline",onClick:l,children:["Add to Notebook",c]}),t[7]=l,t[8]=u):u=t[8],u},bd=e=>{const t=jn.c(17),{code:n,language:r}=e,{theme:i}=pA(),[o,s]=K.useState(n);let a;o!==n&&s(n),t[0]!==o?(a=async()=>{await hA(o)},t[0]=o,t[1]=a):a=t[1];const l=a,c=i==="dark"?"dark":"light",u=r&&$k.has(r)?r:void 0;let h,p,m,f,T;return t[2]!==c||t[3]!==u||t[4]!==o?(h=U.jsx(K.Suspense,{children:U.jsx(dA,{theme:c,language:u,className:"cm border rounded overflow-hidden",extensions:Gk,value:o,onChange:s})}),t[2]=c,t[3]=u,t[4]=o,t[5]=h):h=t[5],t[6]!==l?(p=U.jsx(kd,{size:"xs",variant:"outline",onClick:l,children:"Copy"}),t[6]=l,t[7]=p):p=t[7],t[8]!==r||t[9]!==o?(m=U.jsx(Td,{code:o,language:r}),t[8]=r,t[9]=o,t[10]=m):m=t[10],t[11]!==p||t[12]!==m?(f=U.jsxs("div",{className:"flex justify-end mt-2 space-x-2",children:[p,m]}),t[11]=p,t[12]=m,t[13]=f):f=t[13],t[14]!==h||t[15]!==f?(T=U.jsxs("div",{className:"relative",children:[h,f]}),t[14]=h,t[15]=f,t[16]=T):T=t[16],T},kd=e=>{const t=jn.c(9);let n,r;t[0]!==e?({onClick:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const[i,o]=K.useState(!1);let s;t[3]!==n?(s=c=>{n==null||n(c),o(!0),setTimeout(()=>o(!1),1e3)},t[3]=n,t[4]=s):s=t[4];const a=i?"Copied":"Copy";let l;return t[5]!==r||t[6]!==s||t[7]!==a?(l=U.jsx(Pd,{...r,onClick:s,children:a}),t[5]=r,t[6]=s,t[7]=a,t[8]=l):l=t[8],l},Ad={code:({children:e,className:t})=>{const n=t==null?void 0:t.replace("language-","");if(n&&typeof e=="string"){const r=e.trim();return U.jsxs("div",{children:[U.jsx("div",{className:"text-xs text-muted-foreground pl-1",children:n}),U.jsx(bd,{code:r,language:n})]})}return U.jsx("code",{className:t,children:e})}},la=K.memo(e=>{const t=jn.c(2),{content:n}=e;let r;return t[0]!==n?(r=U.jsx(Ed,{components:Ad,className:"mo-markdown-renderer",children:n}),t[0]=n,t[1]=r):r=t[1],r}),la.displayName="MarkdownRenderer"});export{Bd as A,Fd as F,la as M,IA as __tla};