@coderminer/vue-markdown 0.0.0-stage → 1.0.0

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 (291) hide show
  1. package/CHANGELOG.md +110 -0
  2. package/LICENSE +21 -0
  3. package/README.md +579 -3
  4. package/README.zh-CN.md +547 -0
  5. package/dist/chunks/MarkdownBlockquote-DVXziX2t.js +18 -0
  6. package/dist/chunks/MarkdownBlockquote-DVXziX2t.js.map +1 -0
  7. package/dist/chunks/MarkdownBreak-BwCi2Itt.js +18 -0
  8. package/dist/chunks/MarkdownBreak-BwCi2Itt.js.map +1 -0
  9. package/dist/chunks/MarkdownCode-B1k9tmW5.js +65 -0
  10. package/dist/chunks/MarkdownCode-B1k9tmW5.js.map +1 -0
  11. package/dist/chunks/MarkdownConfigProvider-5N3ylrIu.js +51 -0
  12. package/dist/chunks/MarkdownConfigProvider-5N3ylrIu.js.map +1 -0
  13. package/dist/chunks/MarkdownContent-BAK6dqo7.js +15 -0
  14. package/dist/chunks/MarkdownContent-BAK6dqo7.js.map +1 -0
  15. package/dist/chunks/MarkdownCustomTag-BBdn3-WO.js +42 -0
  16. package/dist/chunks/MarkdownCustomTag-BBdn3-WO.js.map +1 -0
  17. package/dist/chunks/MarkdownEmphasis-CppivOEu.js +18 -0
  18. package/dist/chunks/MarkdownEmphasis-CppivOEu.js.map +1 -0
  19. package/dist/chunks/MarkdownEmpty-Av5k6bqa.js +16 -0
  20. package/dist/chunks/MarkdownEmpty-Av5k6bqa.js.map +1 -0
  21. package/dist/chunks/MarkdownError-C0sPs5W0.js +19 -0
  22. package/dist/chunks/MarkdownError-C0sPs5W0.js.map +1 -0
  23. package/dist/chunks/MarkdownFootnoteReference-Dy3Khwyj.js +24 -0
  24. package/dist/chunks/MarkdownFootnoteReference-Dy3Khwyj.js.map +1 -0
  25. package/dist/chunks/MarkdownFootnotes-BRPzkbXv.js +23 -0
  26. package/dist/chunks/MarkdownFootnotes-BRPzkbXv.js.map +1 -0
  27. package/dist/chunks/MarkdownHeading-DaNcP0_6.js +31 -0
  28. package/dist/chunks/MarkdownHeading-DaNcP0_6.js.map +1 -0
  29. package/dist/chunks/MarkdownHorizontalRule-QNe_cuUI.js +18 -0
  30. package/dist/chunks/MarkdownHorizontalRule-QNe_cuUI.js.map +1 -0
  31. package/dist/chunks/MarkdownHtml-66lYkvwM.js +15 -0
  32. package/dist/chunks/MarkdownHtml-66lYkvwM.js.map +1 -0
  33. package/dist/chunks/MarkdownImage-BRy76svs.js +53 -0
  34. package/dist/chunks/MarkdownImage-BRy76svs.js.map +1 -0
  35. package/dist/chunks/MarkdownInlineCode-MXZYFwex.js +18 -0
  36. package/dist/chunks/MarkdownInlineCode-MXZYFwex.js.map +1 -0
  37. package/dist/chunks/MarkdownLink-Dbx3NwgV.js +47 -0
  38. package/dist/chunks/MarkdownLink-Dbx3NwgV.js.map +1 -0
  39. package/dist/chunks/MarkdownList-BJ-_C71k.js +22 -0
  40. package/dist/chunks/MarkdownList-BJ-_C71k.js.map +1 -0
  41. package/dist/chunks/MarkdownListItem-Z1EHIY26.js +18 -0
  42. package/dist/chunks/MarkdownListItem-Z1EHIY26.js.map +1 -0
  43. package/dist/chunks/MarkdownLoading-D-RYtXxf.js +17 -0
  44. package/dist/chunks/MarkdownLoading-D-RYtXxf.js.map +1 -0
  45. package/dist/chunks/MarkdownParagraph-BxLSmSaG.js +18 -0
  46. package/dist/chunks/MarkdownParagraph-BxLSmSaG.js.map +1 -0
  47. package/dist/chunks/MarkdownRenderer-DLRRfsdI.js +416 -0
  48. package/dist/chunks/MarkdownRenderer-DLRRfsdI.js.map +1 -0
  49. package/dist/chunks/MarkdownRoot-DEE6iVfh.js +25 -0
  50. package/dist/chunks/MarkdownRoot-DEE6iVfh.js.map +1 -0
  51. package/dist/chunks/MarkdownStrikethrough-CblvbqDk.js +18 -0
  52. package/dist/chunks/MarkdownStrikethrough-CblvbqDk.js.map +1 -0
  53. package/dist/chunks/MarkdownStrong-uU5MzAoJ.js +18 -0
  54. package/dist/chunks/MarkdownStrong-uU5MzAoJ.js.map +1 -0
  55. package/dist/chunks/MarkdownTable-DmBTg_CR.js +18 -0
  56. package/dist/chunks/MarkdownTable-DmBTg_CR.js.map +1 -0
  57. package/dist/chunks/MarkdownTableCell-eiCJe847.js +33 -0
  58. package/dist/chunks/MarkdownTableCell-eiCJe847.js.map +1 -0
  59. package/dist/chunks/MarkdownTableRow-DuJaPntg.js +18 -0
  60. package/dist/chunks/MarkdownTableRow-DuJaPntg.js.map +1 -0
  61. package/dist/chunks/MarkdownTableSection-PFHz-R33.js +26 -0
  62. package/dist/chunks/MarkdownTableSection-PFHz-R33.js.map +1 -0
  63. package/dist/chunks/MarkdownTaskItem-BcmKo1lk.js +40 -0
  64. package/dist/chunks/MarkdownTaskItem-BcmKo1lk.js.map +1 -0
  65. package/dist/chunks/MarkdownToc-BdOHF-Yo.js +51 -0
  66. package/dist/chunks/MarkdownToc-BdOHF-Yo.js.map +1 -0
  67. package/dist/chunks/MarkdownTocItem-DT9mR3vL.js +27 -0
  68. package/dist/chunks/MarkdownTocItem-DT9mR3vL.js.map +1 -0
  69. package/dist/chunks/MermaidLiveEditor-W-qf3G-5.js +416 -0
  70. package/dist/chunks/MermaidLiveEditor-W-qf3G-5.js.map +1 -0
  71. package/dist/chunks/VueSyntaxHighlighter-DyLsYMwy.js +262 -0
  72. package/dist/chunks/VueSyntaxHighlighter-DyLsYMwy.js.map +1 -0
  73. package/dist/chunks/adapters-CMwX_NEI.js +28 -0
  74. package/dist/chunks/adapters-CMwX_NEI.js.map +1 -0
  75. package/dist/chunks/asyncToGenerator-ChigusFD.js +26 -0
  76. package/dist/chunks/blank-line-Cb-JBP_5.js +90 -0
  77. package/dist/chunks/blank-line-Cb-JBP_5.js.map +1 -0
  78. package/dist/chunks/codemirror-DyphMAEg.js +84 -0
  79. package/dist/chunks/codemirror-DyphMAEg.js.map +1 -0
  80. package/dist/chunks/config-aRYo2R8_.js +12 -0
  81. package/dist/chunks/config-aRYo2R8_.js.map +1 -0
  82. package/dist/chunks/context-8NfW6fxI.js +32 -0
  83. package/dist/chunks/context-8NfW6fxI.js.map +1 -0
  84. package/dist/chunks/default-DWVS-I_8.js +23 -0
  85. package/dist/chunks/default-DWVS-I_8.js.map +1 -0
  86. package/dist/chunks/diagnostics-CtHoJyiX.js +25 -0
  87. package/dist/chunks/diagnostics-CtHoJyiX.js.map +1 -0
  88. package/dist/chunks/export-DZQ3cUry.js +1575 -0
  89. package/dist/chunks/export-DZQ3cUry.js.map +1 -0
  90. package/dist/chunks/hast-nodes-C0bX3M5Z.js +35 -0
  91. package/dist/chunks/hast-nodes-C0bX3M5Z.js.map +1 -0
  92. package/dist/chunks/highlightjs-BEh-YwEG.js +6041 -0
  93. package/dist/chunks/highlightjs-BEh-YwEG.js.map +1 -0
  94. package/dist/chunks/identity-jZEhX2d5.js +6244 -0
  95. package/dist/chunks/identity-jZEhX2d5.js.map +1 -0
  96. package/dist/chunks/labels-BtHiUTQI.js +49 -0
  97. package/dist/chunks/labels-BtHiUTQI.js.map +1 -0
  98. package/dist/chunks/lib-BQiWGWpu.js +5087 -0
  99. package/dist/chunks/lib-BQiWGWpu.js.map +1 -0
  100. package/dist/chunks/lib-LwqA_W3J.js +127 -0
  101. package/dist/chunks/lib-LwqA_W3J.js.map +1 -0
  102. package/dist/chunks/longest-streak-DZE_EqsU.js +10 -0
  103. package/dist/chunks/longest-streak-DZE_EqsU.js.map +1 -0
  104. package/dist/chunks/micromark-factory-space-Db040TnW.js +139 -0
  105. package/dist/chunks/micromark-factory-space-Db040TnW.js.map +1 -0
  106. package/dist/chunks/normalize-CRYv3Wqt.js +220 -0
  107. package/dist/chunks/normalize-CRYv3Wqt.js.map +1 -0
  108. package/dist/chunks/objectSpread2-CtBNx0TF.js +57 -0
  109. package/dist/chunks/plugin-DqkFHyny.js +28 -0
  110. package/dist/chunks/plugin-DqkFHyny.js.map +1 -0
  111. package/dist/chunks/preset-BjaOuJUL.js +46 -0
  112. package/dist/chunks/preset-BjaOuJUL.js.map +1 -0
  113. package/dist/chunks/registry-DLjr93-V.js +6144 -0
  114. package/dist/chunks/registry-DLjr93-V.js.map +1 -0
  115. package/dist/chunks/render-Cs8iKrgz.js +1724 -0
  116. package/dist/chunks/render-Cs8iKrgz.js.map +1 -0
  117. package/dist/chunks/runtime-DJMnzjah.js +546 -0
  118. package/dist/chunks/runtime-DJMnzjah.js.map +1 -0
  119. package/dist/chunks/security-y4EwUyAs.js +214 -0
  120. package/dist/chunks/security-y4EwUyAs.js.map +1 -0
  121. package/dist/chunks/shared-DNAvZ-UY.js +76 -0
  122. package/dist/chunks/shared-DNAvZ-UY.js.map +1 -0
  123. package/dist/chunks/space-separated-tokens-CmBjEPdR.js +1099 -0
  124. package/dist/chunks/space-separated-tokens-CmBjEPdR.js.map +1 -0
  125. package/dist/chunks/url-D2BoivaE.js +26 -0
  126. package/dist/chunks/url-D2BoivaE.js.map +1 -0
  127. package/dist/chunks/useActiveHeading-BaGVMJnB.js +316 -0
  128. package/dist/chunks/useActiveHeading-BaGVMJnB.js.map +1 -0
  129. package/dist/components/CodeBlock.d.ts +73 -0
  130. package/dist/components/CodeBlock.js +1 -0
  131. package/dist/components/Icon.d.ts +6 -0
  132. package/dist/components/MarkdownBlockquote.d.ts +18 -0
  133. package/dist/components/MarkdownBlockquote.js +1 -0
  134. package/dist/components/MarkdownBreak.d.ts +8 -0
  135. package/dist/components/MarkdownBreak.js +1 -0
  136. package/dist/components/MarkdownChildren.d.ts +17 -0
  137. package/dist/components/MarkdownCode.d.ts +29 -0
  138. package/dist/components/MarkdownCode.js +1 -0
  139. package/dist/components/MarkdownConfigProvider.d.ts +33 -0
  140. package/dist/components/MarkdownConfigProvider.js +1 -0
  141. package/dist/components/MarkdownContent.d.ts +16 -0
  142. package/dist/components/MarkdownContent.js +1 -0
  143. package/dist/components/MarkdownCustomTag.d.ts +20 -0
  144. package/dist/components/MarkdownCustomTag.js +1 -0
  145. package/dist/components/MarkdownEmphasis.d.ts +18 -0
  146. package/dist/components/MarkdownEmphasis.js +1 -0
  147. package/dist/components/MarkdownEmpty.d.ts +8 -0
  148. package/dist/components/MarkdownEmpty.js +1 -0
  149. package/dist/components/MarkdownError.d.ts +11 -0
  150. package/dist/components/MarkdownError.js +1 -0
  151. package/dist/components/MarkdownFootnoteReference.d.ts +19 -0
  152. package/dist/components/MarkdownFootnoteReference.js +1 -0
  153. package/dist/components/MarkdownFootnotes.d.ts +17 -0
  154. package/dist/components/MarkdownFootnotes.js +1 -0
  155. package/dist/components/MarkdownHeading.d.ts +18 -0
  156. package/dist/components/MarkdownHeading.js +1 -0
  157. package/dist/components/MarkdownHorizontalRule.d.ts +8 -0
  158. package/dist/components/MarkdownHorizontalRule.js +1 -0
  159. package/dist/components/MarkdownHtml.d.ts +8 -0
  160. package/dist/components/MarkdownHtml.js +1 -0
  161. package/dist/components/MarkdownImage.d.ts +15 -0
  162. package/dist/components/MarkdownImage.js +1 -0
  163. package/dist/components/MarkdownInlineCode.d.ts +18 -0
  164. package/dist/components/MarkdownInlineCode.js +1 -0
  165. package/dist/components/MarkdownLink.d.ts +22 -0
  166. package/dist/components/MarkdownLink.js +1 -0
  167. package/dist/components/MarkdownList.d.ts +18 -0
  168. package/dist/components/MarkdownList.js +1 -0
  169. package/dist/components/MarkdownListItem.d.ts +18 -0
  170. package/dist/components/MarkdownListItem.js +1 -0
  171. package/dist/components/MarkdownLoading.d.ts +8 -0
  172. package/dist/components/MarkdownLoading.js +1 -0
  173. package/dist/components/MarkdownMath.d.ts +12 -0
  174. package/dist/components/MarkdownMath.js +1 -0
  175. package/dist/components/MarkdownMermaid.d.ts +78 -0
  176. package/dist/components/MarkdownMermaid.js +1 -0
  177. package/dist/components/MarkdownParagraph.d.ts +18 -0
  178. package/dist/components/MarkdownParagraph.js +1 -0
  179. package/dist/components/MarkdownRenderer.d.ts +170 -0
  180. package/dist/components/MarkdownRenderer.js +1 -0
  181. package/dist/components/MarkdownRoot.d.ts +24 -0
  182. package/dist/components/MarkdownRoot.js +1 -0
  183. package/dist/components/MarkdownStrikethrough.d.ts +18 -0
  184. package/dist/components/MarkdownStrikethrough.js +1 -0
  185. package/dist/components/MarkdownStrong.d.ts +18 -0
  186. package/dist/components/MarkdownStrong.js +1 -0
  187. package/dist/components/MarkdownTable.d.ts +18 -0
  188. package/dist/components/MarkdownTable.js +1 -0
  189. package/dist/components/MarkdownTableCell.d.ts +20 -0
  190. package/dist/components/MarkdownTableCell.js +1 -0
  191. package/dist/components/MarkdownTableRow.d.ts +18 -0
  192. package/dist/components/MarkdownTableRow.js +1 -0
  193. package/dist/components/MarkdownTableSection.d.ts +18 -0
  194. package/dist/components/MarkdownTableSection.js +1 -0
  195. package/dist/components/MarkdownTaskItem.d.ts +20 -0
  196. package/dist/components/MarkdownTaskItem.js +1 -0
  197. package/dist/components/MarkdownToc.d.ts +36 -0
  198. package/dist/components/MarkdownToc.js +1 -0
  199. package/dist/components/MarkdownTocItem.d.ts +14 -0
  200. package/dist/components/MarkdownTocItem.js +1 -0
  201. package/dist/components/MermaidBlock.d.ts +50 -0
  202. package/dist/components/MermaidBlock.js +1 -0
  203. package/dist/components/MermaidLiveEditor.d.ts +44 -0
  204. package/dist/components/MermaidLiveEditor.js +1 -0
  205. package/dist/components/VueSyntaxHighlighter.d.ts +39 -0
  206. package/dist/components/VueSyntaxHighlighter.js +1 -0
  207. package/dist/components/codeRegion.d.ts +14 -0
  208. package/dist/components/config.d.ts +7 -0
  209. package/dist/components/context.d.ts +45 -0
  210. package/dist/components/index.d.ts +42 -0
  211. package/dist/components/index.js +38 -0
  212. package/dist/components/render.d.ts +9 -0
  213. package/dist/components/scroll-lock.d.ts +7 -0
  214. package/dist/components/types.d.ts +29 -0
  215. package/dist/composables/useActiveHeading.d.ts +12 -0
  216. package/dist/composables/useCodeHighlighter.d.ts +30 -0
  217. package/dist/composables/useLineWindow.d.ts +38 -0
  218. package/dist/composables/useMarkdownDocument.d.ts +23 -0
  219. package/dist/core/adapters.d.ts +7 -0
  220. package/dist/core/config.d.ts +5 -0
  221. package/dist/core/diagnostics.d.ts +9 -0
  222. package/dist/core/finalize.d.ts +18 -0
  223. package/dist/core/hast-nodes.d.ts +6 -0
  224. package/dist/core/highlight-lines.d.ts +8 -0
  225. package/dist/core/identity.d.ts +4 -0
  226. package/dist/core/labels.d.ts +4 -0
  227. package/dist/core/manifest.d.ts +38 -0
  228. package/dist/core/memo.d.ts +5 -0
  229. package/dist/core/model-hast.d.ts +8 -0
  230. package/dist/core/model.d.ts +10 -0
  231. package/dist/core/normalize.d.ts +27 -0
  232. package/dist/core/parts.d.ts +135 -0
  233. package/dist/core/preset.d.ts +10 -0
  234. package/dist/core/run.d.ts +16 -0
  235. package/dist/core/search.d.ts +5 -0
  236. package/dist/core/security.d.ts +21 -0
  237. package/dist/core/slugger.d.ts +6 -0
  238. package/dist/core/types.d.ts +390 -0
  239. package/dist/core/url.d.ts +10 -0
  240. package/dist/editor/codemirror.d.ts +14 -0
  241. package/dist/editor/index.d.ts +2 -0
  242. package/dist/editor/index.js +1 -0
  243. package/dist/export/index.d.ts +6 -0
  244. package/dist/headless.d.ts +21 -0
  245. package/dist/headless.js +12 -0
  246. package/dist/highlight/highlightjs.d.ts +7 -0
  247. package/dist/highlight/index.d.ts +3 -0
  248. package/dist/highlight/index.js +3 -0
  249. package/dist/highlight/shared.d.ts +16 -0
  250. package/dist/highlight/shiki.d.ts +7 -0
  251. package/dist/highlight/shiki.js +76 -0
  252. package/dist/highlight/shiki.js.map +1 -0
  253. package/dist/html/index.d.ts +17 -0
  254. package/dist/html/index.js +13 -0
  255. package/dist/html/index.js.map +1 -0
  256. package/dist/index.d.ts +24 -0
  257. package/dist/index.js +55 -0
  258. package/dist/index.js.map +1 -0
  259. package/dist/math/index.d.ts +4 -0
  260. package/dist/math/index.js +583 -0
  261. package/dist/math/index.js.map +1 -0
  262. package/dist/math/katex.d.ts +4 -0
  263. package/dist/math/plugin.d.ts +20 -0
  264. package/dist/mermaid/index.d.ts +5 -0
  265. package/dist/mermaid/index.js +3 -0
  266. package/dist/mermaid/plugin.d.ts +14 -0
  267. package/dist/mermaid/runtime.d.ts +12 -0
  268. package/dist/mermaid/sanitize.d.ts +12 -0
  269. package/dist/node-components.d.ts +1 -0
  270. package/dist/node-components.js +39 -0
  271. package/dist/pipeline/custom.d.ts +8 -0
  272. package/dist/pipeline/identity.d.ts +12 -0
  273. package/dist/pipeline/index.d.ts +5 -0
  274. package/dist/pipeline/official.d.ts +6 -0
  275. package/dist/pipeline.d.ts +1 -0
  276. package/dist/pipeline.js +1 -0
  277. package/dist/plugins/builtin.d.ts +15 -0
  278. package/dist/plugins/define.d.ts +7 -0
  279. package/dist/plugins/registry.d.ts +16 -0
  280. package/dist/plugins/source.d.ts +7 -0
  281. package/dist/plugins.d.ts +3 -0
  282. package/dist/plugins.js +1 -0
  283. package/dist/presets.d.ts +3 -0
  284. package/dist/presets.js +1 -0
  285. package/dist/style.css +2 -0
  286. package/dist/styles/components.css +712 -0
  287. package/dist/styles/index.d.ts +1 -0
  288. package/dist/styles/math-full.css +3 -0
  289. package/dist/styles/math.css +18 -0
  290. package/dist/styles/tokens.css +96 -0
  291. package/package.json +211 -6
@@ -0,0 +1,1575 @@
1
+ import { t as e } from "./objectSpread2-CtBNx0TF.js";
2
+ import { c as t, d as n, l as r, u as i } from "./useActiveHeading-BaGVMJnB.js";
3
+ import { i as a, m as o, t as s } from "./registry-DLjr93-V.js";
4
+ import { a as c, l, r as u } from "./identity-jZEhX2d5.js";
5
+ import { a as d, i as f, n as p, o as m, s as h } from "./space-separated-tokens-CmBjEPdR.js";
6
+ import { t as g } from "./asyncToGenerator-ChigusFD.js";
7
+ // src/core/parts.ts
8
+ var _ = "vmd-", v = {
9
+ root: "root",
10
+ body: "body",
11
+ tocColumn: "toc-column",
12
+ content: "content",
13
+ toc: "toc",
14
+ tocNav: "toc-nav",
15
+ tocItem: "toc-item",
16
+ paragraph: "paragraph",
17
+ heading: "heading",
18
+ headingAnchor: "heading-anchor",
19
+ emphasis: "emphasis",
20
+ strong: "strong",
21
+ strikethrough: "strikethrough",
22
+ link: "link",
23
+ image: "image",
24
+ list: "list",
25
+ listItem: "list-item",
26
+ blockquote: "blockquote",
27
+ hr: "hr",
28
+ break: "break",
29
+ table: "table",
30
+ tableSection: "table-section",
31
+ tableRow: "table-row",
32
+ tableCell: "table-cell",
33
+ inlineCode: "inline-code",
34
+ code: "code",
35
+ codeHeader: "code-header",
36
+ codeTitle: "code-title",
37
+ codeFileName: "code-file-name",
38
+ codeHeading: "code-heading",
39
+ codeLang: "code-lang",
40
+ codeToolbar: "code-toolbar",
41
+ codeActions: "code-actions",
42
+ codeAction: "code-action",
43
+ codeBody: "code-body",
44
+ codeFeedback: "code-feedback",
45
+ highlighter: "highlighter",
46
+ highlighterHeader: "highlighter-header",
47
+ highlighterActions: "highlighter-actions",
48
+ highlighterFooter: "highlighter-footer",
49
+ highlighterBody: "highlighter-body",
50
+ highlighterGutter: "highlighter-gutter",
51
+ highlighterLine: "highlighter-line",
52
+ highlighterHidden: "highlighter-hidden",
53
+ highlighterEmpty: "highlighter-empty",
54
+ highlighterToggle: "highlighter-toggle",
55
+ math: "math",
56
+ mathError: "math-error",
57
+ mermaid: "mermaid",
58
+ mermaidHeader: "mermaid-header",
59
+ mermaidTabs: "mermaid-tabs",
60
+ mermaidActions: "mermaid-actions",
61
+ mermaidAction: "mermaid-action",
62
+ mermaidPreview: "mermaid-preview",
63
+ mermaidSource: "mermaid-source",
64
+ mermaidPending: "mermaid-pending",
65
+ mermaidError: "mermaid-error",
66
+ mermaidFallback: "mermaid-fallback",
67
+ mermaidFullscreen: "mermaid-fullscreen",
68
+ editor: "editor",
69
+ editorPane: "editor-pane",
70
+ editorDivider: "editor-divider",
71
+ editorPreview: "editor-preview",
72
+ editorDiagnostics: "editor-diagnostics",
73
+ editorEmpty: "editor-empty",
74
+ editorToolbar: "editor-toolbar",
75
+ editorFullscreen: "editor-fullscreen",
76
+ html: "html",
77
+ customTag: "custom-tag",
78
+ taskItem: "task-item",
79
+ taskCheckbox: "task-checkbox",
80
+ footnoteReference: "footnote-reference",
81
+ footnotes: "footnotes",
82
+ searchMatch: "search-match",
83
+ error: "error",
84
+ empty: "empty",
85
+ loading: "loading"
86
+ }, y = {
87
+ fontFamily: "--vmd-font-family",
88
+ fontMono: "--vmd-font-mono",
89
+ fontSize: "--vmd-font-size",
90
+ lineHeight: "--vmd-line-height",
91
+ colorText: "--vmd-color-text",
92
+ colorMuted: "--vmd-color-muted",
93
+ colorBg: "--vmd-color-bg",
94
+ colorSurface: "--vmd-color-surface",
95
+ colorBorder: "--vmd-color-border",
96
+ colorAccent: "--vmd-color-accent",
97
+ colorAccentContrast: "--vmd-color-accent-contrast",
98
+ colorDanger: "--vmd-color-danger",
99
+ colorSuccess: "--vmd-color-success",
100
+ space1: "--vmd-space-1",
101
+ space2: "--vmd-space-2",
102
+ space3: "--vmd-space-3",
103
+ space4: "--vmd-space-4",
104
+ space5: "--vmd-space-5",
105
+ space6: "--vmd-space-6",
106
+ radiusSm: "--vmd-radius-sm",
107
+ radiusMd: "--vmd-radius-md",
108
+ radiusLg: "--vmd-radius-lg",
109
+ shadowSm: "--vmd-shadow-sm",
110
+ shadowMd: "--vmd-shadow-md",
111
+ motionDuration: "--vmd-motion-duration",
112
+ motionEasing: "--vmd-motion-easing",
113
+ codeBg: "--vmd-code-bg",
114
+ codeText: "--vmd-code-text",
115
+ codeBorder: "--vmd-code-border",
116
+ codeToolbarBg: "--vmd-code-toolbar-bg",
117
+ mathColor: "--vmd-math-color",
118
+ mathBg: "--vmd-math-bg",
119
+ mermaidBg: "--vmd-mermaid-bg",
120
+ mermaidBorder: "--vmd-mermaid-border",
121
+ zFullscreen: "--vmd-z-fullscreen"
122
+ };
123
+ function b(e) {
124
+ return {
125
+ class: `${_}${e}`,
126
+ "data-vmd-part": e
127
+ };
128
+ }
129
+ function x(e, t) {
130
+ return t ? `${_}${e} ${t}` : `${_}${e}`;
131
+ }
132
+ var S = Object.keys(v).map((e) => v[e]), C = Object.keys(y).map((e) => y[e]), w = C, T = (e, t) => {
133
+ var n, r, i, a, o;
134
+ return {
135
+ name: e,
136
+ parts: (n = t.parts) == null ? [] : n,
137
+ tokens: (r = t.tokens) == null ? [] : r,
138
+ slots: (i = t.slots) == null ? [] : i,
139
+ labels: (a = t.labels) == null ? [] : a,
140
+ overrideKeys: (o = t.overrideKeys) == null ? [] : o,
141
+ tags: t.tags,
142
+ behaviors: t.behaviors
143
+ };
144
+ }, E = {
145
+ MarkdownRenderer: T("MarkdownRenderer", {
146
+ parts: Object.values(v),
147
+ tokens: w,
148
+ slots: [
149
+ "root",
150
+ "toc",
151
+ "toc-item",
152
+ "content",
153
+ "error",
154
+ "empty",
155
+ "loading",
156
+ "code",
157
+ "code-actions",
158
+ "header",
159
+ "toolbar",
160
+ "tabs",
161
+ "actions",
162
+ "footer",
163
+ "highlighter",
164
+ "math",
165
+ "math-error",
166
+ "mermaid",
167
+ "mermaid-error",
168
+ "editor",
169
+ "editor-diagnostics",
170
+ "preview",
171
+ "fullscreen"
172
+ ],
173
+ labels: [
174
+ "toc",
175
+ "error",
176
+ "empty",
177
+ "loading",
178
+ "headingAnchor"
179
+ ],
180
+ overrideKeys: [
181
+ "components",
182
+ "regions",
183
+ "nodeComponents",
184
+ "labels",
185
+ "theme",
186
+ "tokens"
187
+ ],
188
+ behaviors: [
189
+ "pipeline",
190
+ "slugger",
191
+ "urlTransform",
192
+ "highlighter",
193
+ "mathEngine",
194
+ "mermaidRenderer",
195
+ "diagnosticsFormatter"
196
+ ]
197
+ }),
198
+ MarkdownRoot: T("MarkdownRoot", {
199
+ parts: ["root"],
200
+ tokens: w,
201
+ slots: ["default"],
202
+ overrideKeys: [
203
+ "as",
204
+ "tokens",
205
+ "theme"
206
+ ]
207
+ }),
208
+ MarkdownContent: T("MarkdownContent", {
209
+ parts: ["content"],
210
+ slots: ["default"],
211
+ overrideKeys: ["regions.content"]
212
+ }),
213
+ MarkdownToc: T("MarkdownToc", {
214
+ parts: [
215
+ "toc",
216
+ "toc-nav",
217
+ "toc-item"
218
+ ],
219
+ tokens: [
220
+ "--vmd-color-accent",
221
+ "--vmd-color-muted",
222
+ "--vmd-space-1",
223
+ "--vmd-space-3",
224
+ "--vmd-space-4"
225
+ ],
226
+ labels: ["toc"],
227
+ overrideKeys: [
228
+ "regions.toc",
229
+ "regions.tocItem",
230
+ "tocItem"
231
+ ]
232
+ }),
233
+ MarkdownTocItem: T("MarkdownTocItem", {
234
+ parts: ["toc-item"],
235
+ tokens: ["--vmd-color-accent", "--vmd-color-muted"],
236
+ labels: ["toc"],
237
+ overrideKeys: ["regions.tocItem"]
238
+ }),
239
+ MarkdownError: T("MarkdownError", {
240
+ parts: ["error"],
241
+ tokens: [
242
+ "--vmd-color-danger",
243
+ "--vmd-space-3",
244
+ "--vmd-space-4",
245
+ "--vmd-radius-md"
246
+ ],
247
+ labels: ["error"],
248
+ overrideKeys: ["regions.error"]
249
+ }),
250
+ MarkdownEmpty: T("MarkdownEmpty", {
251
+ parts: ["empty"],
252
+ tokens: ["--vmd-color-muted"],
253
+ labels: ["empty"],
254
+ overrideKeys: ["regions.empty"]
255
+ }),
256
+ MarkdownLoading: T("MarkdownLoading", {
257
+ parts: ["loading"],
258
+ tokens: ["--vmd-color-muted"],
259
+ labels: ["loading"],
260
+ overrideKeys: ["regions.loading"]
261
+ }),
262
+ MarkdownParagraph: T("MarkdownParagraph", {
263
+ parts: ["paragraph"],
264
+ tokens: ["--vmd-space-4"],
265
+ slots: ["default"],
266
+ overrideKeys: ["p", "paragraph"],
267
+ tags: ["p"]
268
+ }),
269
+ MarkdownHeading: T("MarkdownHeading", {
270
+ parts: ["heading", "heading-anchor"],
271
+ tokens: [
272
+ "--vmd-space-2",
273
+ "--vmd-space-3",
274
+ "--vmd-space-5",
275
+ "--vmd-color-muted"
276
+ ],
277
+ slots: ["default"],
278
+ labels: ["headingAnchor"],
279
+ overrideKeys: [
280
+ "h1",
281
+ "h2",
282
+ "h3",
283
+ "h4",
284
+ "h5",
285
+ "h6",
286
+ "heading"
287
+ ],
288
+ tags: [
289
+ "h1",
290
+ "h2",
291
+ "h3",
292
+ "h4",
293
+ "h5",
294
+ "h6"
295
+ ]
296
+ }),
297
+ MarkdownEmphasis: T("MarkdownEmphasis", {
298
+ parts: ["emphasis"],
299
+ slots: ["default"],
300
+ overrideKeys: ["em", "emphasis"],
301
+ tags: ["em"]
302
+ }),
303
+ MarkdownStrong: T("MarkdownStrong", {
304
+ parts: ["strong"],
305
+ slots: ["default"],
306
+ overrideKeys: ["strong"],
307
+ tags: ["strong"]
308
+ }),
309
+ MarkdownStrikethrough: T("MarkdownStrikethrough", {
310
+ parts: ["strikethrough"],
311
+ slots: ["default"],
312
+ overrideKeys: ["del", "strikethrough"],
313
+ tags: ["del"]
314
+ }),
315
+ MarkdownLink: T("MarkdownLink", {
316
+ parts: ["link"],
317
+ tokens: ["--vmd-color-accent"],
318
+ slots: ["default"],
319
+ labels: ["externalLink"],
320
+ overrideKeys: ["a", "link"],
321
+ tags: ["a"]
322
+ }),
323
+ MarkdownImage: T("MarkdownImage", {
324
+ parts: ["image"],
325
+ slots: ["fallback"],
326
+ overrideKeys: ["img", "image"],
327
+ tags: ["img"]
328
+ }),
329
+ MarkdownList: T("MarkdownList", {
330
+ parts: ["list"],
331
+ tokens: ["--vmd-space-4", "--vmd-space-5"],
332
+ slots: ["default"],
333
+ overrideKeys: [
334
+ "ul",
335
+ "ol",
336
+ "list"
337
+ ],
338
+ tags: ["ul", "ol"]
339
+ }),
340
+ MarkdownListItem: T("MarkdownListItem", {
341
+ parts: ["list-item"],
342
+ tokens: ["--vmd-space-1"],
343
+ slots: ["default"],
344
+ overrideKeys: ["li", "listItem"],
345
+ tags: ["li"]
346
+ }),
347
+ MarkdownBlockquote: T("MarkdownBlockquote", {
348
+ parts: ["blockquote"],
349
+ tokens: [
350
+ "--vmd-space-4",
351
+ "--vmd-color-border",
352
+ "--vmd-color-muted"
353
+ ],
354
+ slots: ["default"],
355
+ overrideKeys: ["blockquote"],
356
+ tags: ["blockquote"]
357
+ }),
358
+ MarkdownHorizontalRule: T("MarkdownHorizontalRule", {
359
+ parts: ["hr"],
360
+ tokens: ["--vmd-space-5", "--vmd-color-border"],
361
+ overrideKeys: ["hr", "horizontalRule"],
362
+ tags: ["hr"]
363
+ }),
364
+ MarkdownTable: T("MarkdownTable", {
365
+ parts: ["table"],
366
+ tokens: ["--vmd-space-4"],
367
+ slots: ["default"],
368
+ overrideKeys: ["table"],
369
+ tags: ["table"]
370
+ }),
371
+ MarkdownTableSection: T("MarkdownTableSection", {
372
+ parts: ["table-section"],
373
+ tokens: ["--vmd-color-surface"],
374
+ slots: ["default"],
375
+ overrideKeys: [
376
+ "thead",
377
+ "tbody",
378
+ "tfoot",
379
+ "tableSection"
380
+ ],
381
+ tags: [
382
+ "thead",
383
+ "tbody",
384
+ "tfoot"
385
+ ]
386
+ }),
387
+ MarkdownTableRow: T("MarkdownTableRow", {
388
+ parts: ["table-row"],
389
+ slots: ["default"],
390
+ overrideKeys: ["tr", "tableRow"],
391
+ tags: ["tr"]
392
+ }),
393
+ MarkdownTableCell: T("MarkdownTableCell", {
394
+ parts: ["table-cell"],
395
+ tokens: [
396
+ "--vmd-space-2",
397
+ "--vmd-space-3",
398
+ "--vmd-color-border"
399
+ ],
400
+ slots: ["default"],
401
+ overrideKeys: [
402
+ "th",
403
+ "td",
404
+ "tableCell"
405
+ ],
406
+ tags: ["th", "td"]
407
+ }),
408
+ MarkdownInlineCode: T("MarkdownInlineCode", {
409
+ parts: ["inline-code"],
410
+ tokens: [
411
+ "--vmd-code-bg",
412
+ "--vmd-code-text",
413
+ "--vmd-font-mono",
414
+ "--vmd-radius-sm"
415
+ ],
416
+ slots: ["default"],
417
+ overrideKeys: ["code", "inlineCode"],
418
+ tags: ["code"]
419
+ }),
420
+ MarkdownCode: T("MarkdownCode", {
421
+ parts: ["code"],
422
+ tokens: [
423
+ "--vmd-code-bg",
424
+ "--vmd-code-text",
425
+ "--vmd-code-border",
426
+ "--vmd-code-toolbar-bg",
427
+ "--vmd-font-mono"
428
+ ],
429
+ slots: [
430
+ "default",
431
+ "code",
432
+ "code-actions"
433
+ ],
434
+ labels: [
435
+ "copy",
436
+ "copied",
437
+ "download"
438
+ ],
439
+ overrideKeys: ["pre", "code"],
440
+ tags: ["pre", "code"],
441
+ behaviors: ["highlighter"]
442
+ }),
443
+ CodeBlock: T("CodeBlock", {
444
+ parts: [
445
+ "code",
446
+ "code-header",
447
+ "code-heading",
448
+ "code-title",
449
+ "code-file-name",
450
+ "code-lang",
451
+ "code-toolbar",
452
+ "code-body",
453
+ "code-action",
454
+ "code-feedback",
455
+ "highlighter-line",
456
+ "highlighter-gutter",
457
+ "highlighter-toggle"
458
+ ],
459
+ tokens: [
460
+ "--vmd-code-bg",
461
+ "--vmd-code-text",
462
+ "--vmd-code-border",
463
+ "--vmd-code-toolbar-bg",
464
+ "--vmd-font-mono"
465
+ ],
466
+ slots: [
467
+ "code",
468
+ "code-actions",
469
+ "header",
470
+ "toolbar"
471
+ ],
472
+ labels: [
473
+ "copy",
474
+ "copied",
475
+ "copyFailed",
476
+ "download",
477
+ "showAll",
478
+ "showLess"
479
+ ],
480
+ overrideKeys: [
481
+ "pre",
482
+ "code",
483
+ "codeBlock"
484
+ ],
485
+ tags: ["pre", "code"],
486
+ behaviors: ["highlighter"]
487
+ }),
488
+ VueSyntaxHighlighter: T("VueSyntaxHighlighter", {
489
+ parts: [
490
+ "highlighter",
491
+ "highlighter-header",
492
+ "highlighter-actions",
493
+ "highlighter-footer",
494
+ "highlighter-body",
495
+ "highlighter-line",
496
+ "highlighter-gutter",
497
+ "highlighter-empty",
498
+ "highlighter-toggle"
499
+ ],
500
+ tokens: [
501
+ "--vmd-code-bg",
502
+ "--vmd-code-text",
503
+ "--vmd-font-mono"
504
+ ],
505
+ slots: [
506
+ "header",
507
+ "footer",
508
+ "empty",
509
+ "actions",
510
+ "highlighter"
511
+ ],
512
+ labels: [
513
+ "empty",
514
+ "showAll",
515
+ "showLess",
516
+ "copyFailed"
517
+ ],
518
+ overrideKeys: ["highlighter"],
519
+ behaviors: ["highlighter"]
520
+ }),
521
+ MarkdownTaskItem: T("MarkdownTaskItem", {
522
+ parts: ["task-item", "task-checkbox"],
523
+ tokens: w,
524
+ slots: ["default"],
525
+ labels: [],
526
+ overrideKeys: ["li", "taskItem"],
527
+ tags: ["li"],
528
+ behaviors: ["task-change"]
529
+ }),
530
+ MarkdownFootnoteReference: T("MarkdownFootnoteReference", {
531
+ parts: ["footnote-reference"],
532
+ labels: ["footnoteReference"],
533
+ overrideKeys: ["sup", "footnoteReference"],
534
+ tags: ["sup"]
535
+ }),
536
+ MarkdownFootnotes: T("MarkdownFootnotes", {
537
+ parts: ["footnotes"],
538
+ labels: ["footnotes"],
539
+ slots: ["default"],
540
+ overrideKeys: ["section", "footnotes"],
541
+ tags: ["section"]
542
+ }),
543
+ MarkdownMath: T("MarkdownMath", {
544
+ parts: ["math"],
545
+ tokens: ["--vmd-math-color", "--vmd-math-bg"],
546
+ slots: ["math", "math-error"],
547
+ labels: ["math"],
548
+ overrideKeys: ["math"],
549
+ behaviors: ["mathEngine"]
550
+ }),
551
+ MermaidBlock: T("MermaidBlock", {
552
+ parts: [
553
+ "mermaid",
554
+ "mermaid-header",
555
+ "mermaid-tabs",
556
+ "mermaid-actions",
557
+ "mermaid-action",
558
+ "mermaid-preview",
559
+ "mermaid-source",
560
+ "mermaid-pending",
561
+ "mermaid-error",
562
+ "mermaid-fallback",
563
+ "mermaid-fullscreen"
564
+ ],
565
+ tokens: ["--vmd-mermaid-bg", "--vmd-mermaid-border"],
566
+ slots: [
567
+ "mermaid",
568
+ "mermaid-error",
569
+ "header",
570
+ "tabs",
571
+ "actions"
572
+ ],
573
+ labels: [
574
+ "mermaid",
575
+ "mermaidFallback",
576
+ "preview",
577
+ "source",
578
+ "retry",
579
+ "exportPng",
580
+ "download",
581
+ "fullscreen",
582
+ "exitFullscreen",
583
+ "zoomIn",
584
+ "zoomOut",
585
+ "reset",
586
+ "copy",
587
+ "copied"
588
+ ],
589
+ overrideKeys: ["mermaid", "mermaidBlock"],
590
+ behaviors: ["mermaidRenderer"]
591
+ }),
592
+ MermaidLiveEditor: T("MermaidLiveEditor", {
593
+ parts: [
594
+ "editor",
595
+ "editor-toolbar",
596
+ "editor-pane",
597
+ "editor-divider",
598
+ "editor-preview",
599
+ "editor-diagnostics",
600
+ "editor-empty",
601
+ "editor-fullscreen",
602
+ "mermaid",
603
+ "mermaid-header",
604
+ "mermaid-tabs",
605
+ "mermaid-actions",
606
+ "mermaid-action",
607
+ "mermaid-preview",
608
+ "mermaid-source",
609
+ "mermaid-pending",
610
+ "mermaid-error",
611
+ "mermaid-fallback",
612
+ "mermaid-fullscreen"
613
+ ],
614
+ tokens: w,
615
+ slots: [
616
+ "toolbar",
617
+ "editor",
618
+ "preview",
619
+ "editor-diagnostics",
620
+ "empty",
621
+ "fullscreen"
622
+ ],
623
+ labels: [
624
+ "editor",
625
+ "editorEmpty",
626
+ "editorLine",
627
+ "editorSplitter",
628
+ "editorDiagnostics",
629
+ "editorReset",
630
+ "editorSyntaxError",
631
+ "editorParseError",
632
+ "fullscreen",
633
+ "exitFullscreen",
634
+ "reset",
635
+ "mermaid",
636
+ "mermaidFallback"
637
+ ],
638
+ overrideKeys: ["editor", "diagnosticsFormatter"],
639
+ behaviors: ["mermaidRenderer", "diagnosticsFormatter"]
640
+ }),
641
+ MarkdownMermaid: T("MarkdownMermaid", {
642
+ parts: [
643
+ "mermaid",
644
+ "mermaid-header",
645
+ "mermaid-tabs",
646
+ "mermaid-actions",
647
+ "mermaid-action",
648
+ "mermaid-preview",
649
+ "mermaid-source",
650
+ "mermaid-pending",
651
+ "mermaid-error",
652
+ "mermaid-fallback",
653
+ "mermaid-fullscreen"
654
+ ],
655
+ tokens: ["--vmd-mermaid-bg", "--vmd-mermaid-border"],
656
+ slots: [
657
+ "mermaid",
658
+ "mermaid-error",
659
+ "header",
660
+ "tabs",
661
+ "actions"
662
+ ],
663
+ labels: [
664
+ "mermaid",
665
+ "mermaidFallback",
666
+ "preview",
667
+ "source",
668
+ "retry",
669
+ "exportPng",
670
+ "download",
671
+ "fullscreen",
672
+ "exitFullscreen",
673
+ "zoomIn",
674
+ "zoomOut",
675
+ "reset",
676
+ "copy",
677
+ "copied"
678
+ ],
679
+ overrideKeys: ["mermaid", "mermaidBlock"],
680
+ behaviors: ["mermaidRenderer"]
681
+ }),
682
+ MarkdownBreak: T("MarkdownBreak", {
683
+ parts: ["break"],
684
+ overrideKeys: ["br", "break"],
685
+ tags: ["br"]
686
+ }),
687
+ MarkdownHtml: T("MarkdownHtml", {
688
+ parts: ["html"],
689
+ overrideKeys: ["html"]
690
+ }),
691
+ MarkdownCustomTag: T("MarkdownCustomTag", {
692
+ parts: ["custom-tag"],
693
+ slots: ["default"],
694
+ overrideKeys: ["customTag", "x-*"]
695
+ }),
696
+ MarkdownChildren: T("MarkdownChildren", {
697
+ parts: [],
698
+ overrideKeys: []
699
+ })
700
+ };
701
+ function ee(e) {
702
+ return E[e];
703
+ }
704
+ function te(e, t) {
705
+ let n = [];
706
+ if (t.parts) {
707
+ let r = new Set(e.parts), i = new Set(t.parts);
708
+ for (let t of i) r.has(t) || n.push({
709
+ code: "undeclared-part",
710
+ component: e.name,
711
+ message: `Rendered part "${t}" is not declared by ${e.name}.`
712
+ });
713
+ for (let a of r) !i.has(a) && t.mode !== "observed" && n.push({
714
+ code: "missing-part",
715
+ component: e.name,
716
+ message: `Declared part "${a}" was not rendered by ${e.name}.`
717
+ });
718
+ }
719
+ if (t.labels) {
720
+ let r = new Set(e.labels);
721
+ for (let i of t.labels) r.has(i) || n.push({
722
+ code: "undeclared-label",
723
+ component: e.name,
724
+ message: `Label "${i}" is not declared by ${e.name}.`
725
+ });
726
+ }
727
+ if (t.slots) {
728
+ let r = new Set(e.slots);
729
+ for (let i of t.slots) r.has(i) || n.push({
730
+ code: "missing-slot",
731
+ component: e.name,
732
+ message: `Slot "${i}" is not declared by ${e.name}.`
733
+ });
734
+ }
735
+ return n;
736
+ }
737
+ function ne(e = E) {
738
+ let t = [], n = /* @__PURE__ */ new Set();
739
+ for (let r of Object.values(e)) n.has(r.name) && t.push({
740
+ code: "duplicate-manifest",
741
+ component: r.name,
742
+ message: `Duplicate manifest name "${r.name}".`
743
+ }), n.add(r.name);
744
+ return t;
745
+ }
746
+ // node_modules/html-void-elements/index.js
747
+ var re = [
748
+ "area",
749
+ "base",
750
+ "basefont",
751
+ "bgsound",
752
+ "br",
753
+ "col",
754
+ "command",
755
+ "embed",
756
+ "frame",
757
+ "hr",
758
+ "image",
759
+ "img",
760
+ "input",
761
+ "keygen",
762
+ "link",
763
+ "meta",
764
+ "param",
765
+ "source",
766
+ "track",
767
+ "wbr"
768
+ ], D = {}.hasOwnProperty;
769
+ function ie(e, t) {
770
+ let n = t || {};
771
+ function r(t, ...n) {
772
+ let i = r.invalid, a = r.handlers;
773
+ if (t && D.call(t, e)) {
774
+ let n = String(t[e]);
775
+ i = D.call(a, n) ? a[n] : r.unknown;
776
+ }
777
+ if (i) return i.call(this, t, ...n);
778
+ }
779
+ return r.handlers = n.handlers || {}, r.invalid = n.invalid, r.unknown = n.unknown, r;
780
+ }
781
+ // node_modules/stringify-entities/lib/core.js
782
+ var ae = /["&'<>`]/g, oe = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, se = /[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g, ce = /[|\\{}()[\]^$+*?.]/g, O = /* @__PURE__ */ new WeakMap();
783
+ function le(e, t) {
784
+ return e = e.replace(t.subset ? ue(t.subset) : ae, r), t.subset || t.escapeOnly ? e : e.replace(oe, n).replace(se, r);
785
+ function n(e, n, r) {
786
+ return t.format((e.charCodeAt(0) - 55296) * 1024 + e.charCodeAt(1) - 56320 + 65536, r.charCodeAt(n + 2), t);
787
+ }
788
+ function r(e, n, r) {
789
+ return t.format(e.charCodeAt(0), r.charCodeAt(n + 1), t);
790
+ }
791
+ }
792
+ function ue(e) {
793
+ let t = O.get(e);
794
+ return t || (t = de(e), O.set(e, t)), t;
795
+ }
796
+ function de(e) {
797
+ let t = [], n = -1;
798
+ for (; ++n < e.length;) t.push(e[n].replace(ce, "\\$&"));
799
+ return RegExp("(?:" + t.join("|") + ")", "g");
800
+ }
801
+ // node_modules/stringify-entities/lib/util/to-hexadecimal.js
802
+ var fe = /[\dA-Fa-f]/;
803
+ function pe(e, t, n) {
804
+ let r = "&#x" + e.toString(16).toUpperCase();
805
+ return n && t && !fe.test(String.fromCharCode(t)) ? r : r + ";";
806
+ }
807
+ // node_modules/stringify-entities/lib/util/to-decimal.js
808
+ var me = /\d/;
809
+ function he(e, t, n) {
810
+ let r = "&#" + String(e);
811
+ return n && t && !me.test(String.fromCharCode(t)) ? r : r + ";";
812
+ }
813
+ // node_modules/character-entities-legacy/index.js
814
+ var ge = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml".split("."), k = {
815
+ nbsp: "\xA0",
816
+ iexcl: "¡",
817
+ cent: "¢",
818
+ pound: "£",
819
+ curren: "¤",
820
+ yen: "¥",
821
+ brvbar: "¦",
822
+ sect: "§",
823
+ uml: "¨",
824
+ copy: "©",
825
+ ordf: "ª",
826
+ laquo: "«",
827
+ not: "¬",
828
+ shy: "­",
829
+ reg: "®",
830
+ macr: "¯",
831
+ deg: "°",
832
+ plusmn: "±",
833
+ sup2: "²",
834
+ sup3: "³",
835
+ acute: "´",
836
+ micro: "µ",
837
+ para: "¶",
838
+ middot: "·",
839
+ cedil: "¸",
840
+ sup1: "¹",
841
+ ordm: "º",
842
+ raquo: "»",
843
+ frac14: "¼",
844
+ frac12: "½",
845
+ frac34: "¾",
846
+ iquest: "¿",
847
+ Agrave: "À",
848
+ Aacute: "Á",
849
+ Acirc: "Â",
850
+ Atilde: "Ã",
851
+ Auml: "Ä",
852
+ Aring: "Å",
853
+ AElig: "Æ",
854
+ Ccedil: "Ç",
855
+ Egrave: "È",
856
+ Eacute: "É",
857
+ Ecirc: "Ê",
858
+ Euml: "Ë",
859
+ Igrave: "Ì",
860
+ Iacute: "Í",
861
+ Icirc: "Î",
862
+ Iuml: "Ï",
863
+ ETH: "Ð",
864
+ Ntilde: "Ñ",
865
+ Ograve: "Ò",
866
+ Oacute: "Ó",
867
+ Ocirc: "Ô",
868
+ Otilde: "Õ",
869
+ Ouml: "Ö",
870
+ times: "×",
871
+ Oslash: "Ø",
872
+ Ugrave: "Ù",
873
+ Uacute: "Ú",
874
+ Ucirc: "Û",
875
+ Uuml: "Ü",
876
+ Yacute: "Ý",
877
+ THORN: "Þ",
878
+ szlig: "ß",
879
+ agrave: "à",
880
+ aacute: "á",
881
+ acirc: "â",
882
+ atilde: "ã",
883
+ auml: "ä",
884
+ aring: "å",
885
+ aelig: "æ",
886
+ ccedil: "ç",
887
+ egrave: "è",
888
+ eacute: "é",
889
+ ecirc: "ê",
890
+ euml: "ë",
891
+ igrave: "ì",
892
+ iacute: "í",
893
+ icirc: "î",
894
+ iuml: "ï",
895
+ eth: "ð",
896
+ ntilde: "ñ",
897
+ ograve: "ò",
898
+ oacute: "ó",
899
+ ocirc: "ô",
900
+ otilde: "õ",
901
+ ouml: "ö",
902
+ divide: "÷",
903
+ oslash: "ø",
904
+ ugrave: "ù",
905
+ uacute: "ú",
906
+ ucirc: "û",
907
+ uuml: "ü",
908
+ yacute: "ý",
909
+ thorn: "þ",
910
+ yuml: "ÿ",
911
+ fnof: "ƒ",
912
+ Alpha: "Α",
913
+ Beta: "Β",
914
+ Gamma: "Γ",
915
+ Delta: "Δ",
916
+ Epsilon: "Ε",
917
+ Zeta: "Ζ",
918
+ Eta: "Η",
919
+ Theta: "Θ",
920
+ Iota: "Ι",
921
+ Kappa: "Κ",
922
+ Lambda: "Λ",
923
+ Mu: "Μ",
924
+ Nu: "Ν",
925
+ Xi: "Ξ",
926
+ Omicron: "Ο",
927
+ Pi: "Π",
928
+ Rho: "Ρ",
929
+ Sigma: "Σ",
930
+ Tau: "Τ",
931
+ Upsilon: "Υ",
932
+ Phi: "Φ",
933
+ Chi: "Χ",
934
+ Psi: "Ψ",
935
+ Omega: "Ω",
936
+ alpha: "α",
937
+ beta: "β",
938
+ gamma: "γ",
939
+ delta: "δ",
940
+ epsilon: "ε",
941
+ zeta: "ζ",
942
+ eta: "η",
943
+ theta: "θ",
944
+ iota: "ι",
945
+ kappa: "κ",
946
+ lambda: "λ",
947
+ mu: "μ",
948
+ nu: "ν",
949
+ xi: "ξ",
950
+ omicron: "ο",
951
+ pi: "π",
952
+ rho: "ρ",
953
+ sigmaf: "ς",
954
+ sigma: "σ",
955
+ tau: "τ",
956
+ upsilon: "υ",
957
+ phi: "φ",
958
+ chi: "χ",
959
+ psi: "ψ",
960
+ omega: "ω",
961
+ thetasym: "ϑ",
962
+ upsih: "ϒ",
963
+ piv: "ϖ",
964
+ bull: "•",
965
+ hellip: "…",
966
+ prime: "′",
967
+ Prime: "″",
968
+ oline: "‾",
969
+ frasl: "⁄",
970
+ weierp: "℘",
971
+ image: "ℑ",
972
+ real: "ℜ",
973
+ trade: "™",
974
+ alefsym: "ℵ",
975
+ larr: "←",
976
+ uarr: "↑",
977
+ rarr: "→",
978
+ darr: "↓",
979
+ harr: "↔",
980
+ crarr: "↵",
981
+ lArr: "⇐",
982
+ uArr: "⇑",
983
+ rArr: "⇒",
984
+ dArr: "⇓",
985
+ hArr: "⇔",
986
+ forall: "∀",
987
+ part: "∂",
988
+ exist: "∃",
989
+ empty: "∅",
990
+ nabla: "∇",
991
+ isin: "∈",
992
+ notin: "∉",
993
+ ni: "∋",
994
+ prod: "∏",
995
+ sum: "∑",
996
+ minus: "−",
997
+ lowast: "∗",
998
+ radic: "√",
999
+ prop: "∝",
1000
+ infin: "∞",
1001
+ ang: "∠",
1002
+ and: "∧",
1003
+ or: "∨",
1004
+ cap: "∩",
1005
+ cup: "∪",
1006
+ int: "∫",
1007
+ there4: "∴",
1008
+ sim: "∼",
1009
+ cong: "≅",
1010
+ asymp: "≈",
1011
+ ne: "≠",
1012
+ equiv: "≡",
1013
+ le: "≤",
1014
+ ge: "≥",
1015
+ sub: "⊂",
1016
+ sup: "⊃",
1017
+ nsub: "⊄",
1018
+ sube: "⊆",
1019
+ supe: "⊇",
1020
+ oplus: "⊕",
1021
+ otimes: "⊗",
1022
+ perp: "⊥",
1023
+ sdot: "⋅",
1024
+ lceil: "⌈",
1025
+ rceil: "⌉",
1026
+ lfloor: "⌊",
1027
+ rfloor: "⌋",
1028
+ lang: "〈",
1029
+ rang: "〉",
1030
+ loz: "◊",
1031
+ spades: "♠",
1032
+ clubs: "♣",
1033
+ hearts: "♥",
1034
+ diams: "♦",
1035
+ quot: "\"",
1036
+ amp: "&",
1037
+ lt: "<",
1038
+ gt: ">",
1039
+ OElig: "Œ",
1040
+ oelig: "œ",
1041
+ Scaron: "Š",
1042
+ scaron: "š",
1043
+ Yuml: "Ÿ",
1044
+ circ: "ˆ",
1045
+ tilde: "˜",
1046
+ ensp: " ",
1047
+ emsp: " ",
1048
+ thinsp: " ",
1049
+ zwnj: "‌",
1050
+ zwj: "‍",
1051
+ lrm: "‎",
1052
+ rlm: "‏",
1053
+ ndash: "–",
1054
+ mdash: "—",
1055
+ lsquo: "‘",
1056
+ rsquo: "’",
1057
+ sbquo: "‚",
1058
+ ldquo: "“",
1059
+ rdquo: "”",
1060
+ bdquo: "„",
1061
+ dagger: "†",
1062
+ Dagger: "‡",
1063
+ permil: "‰",
1064
+ lsaquo: "‹",
1065
+ rsaquo: "›",
1066
+ euro: "€"
1067
+ }, _e = [
1068
+ "cent",
1069
+ "copy",
1070
+ "divide",
1071
+ "gt",
1072
+ "lt",
1073
+ "not",
1074
+ "para",
1075
+ "times"
1076
+ ], A = {}.hasOwnProperty, j = {}, M;
1077
+ for (M in k) A.call(k, M) && (j[k[M]] = M);
1078
+ var ve = /[^\dA-Za-z]/;
1079
+ function ye(e, t, n, r) {
1080
+ let i = String.fromCharCode(e);
1081
+ if (A.call(j, i)) {
1082
+ let e = j[i], a = "&" + e;
1083
+ return n && ge.includes(e) && !_e.includes(e) && (!r || t && t !== 61 && ve.test(String.fromCharCode(t))) ? a : a + ";";
1084
+ }
1085
+ return "";
1086
+ }
1087
+ // node_modules/stringify-entities/lib/util/format-smart.js
1088
+ function be(e, t, n) {
1089
+ let r = pe(e, t, n.omitOptionalSemicolons), i;
1090
+ if ((n.useNamedReferences || n.useShortestReferences) && (i = ye(e, t, n.omitOptionalSemicolons, n.attribute)), (n.useShortestReferences || !i) && n.useShortestReferences) {
1091
+ let i = he(e, t, n.omitOptionalSemicolons);
1092
+ i.length < r.length && (r = i);
1093
+ }
1094
+ return i && (!n.useShortestReferences || i.length < r.length) ? i : r;
1095
+ }
1096
+ // node_modules/stringify-entities/lib/index.js
1097
+ function N(e, t) {
1098
+ return le(e, Object.assign({ format: be }, t));
1099
+ }
1100
+ // node_modules/hast-util-to-html/lib/handle/comment.js
1101
+ var xe = /^>|^->|<!--|-->|--!>|<!-$/g, Se = [">"], Ce = ["<", ">"];
1102
+ function we(e, t, n, r) {
1103
+ return r.settings.bogusComments ? "<?" + N(e.value, Object.assign({}, r.settings.characterReferences, { subset: Se })) + ">" : "<!--" + e.value.replace(xe, i) + "-->";
1104
+ function i(e) {
1105
+ return N(e, Object.assign({}, r.settings.characterReferences, { subset: Ce }));
1106
+ }
1107
+ }
1108
+ // node_modules/hast-util-to-html/lib/handle/doctype.js
1109
+ function Te(e, t, n, r) {
1110
+ return "<!" + (r.settings.upperDoctype ? "DOCTYPE" : "doctype") + (r.settings.tightDoctype ? "" : " ") + "html>";
1111
+ }
1112
+ // node_modules/hast-util-whitespace/lib/index.js
1113
+ var Ee = /[ \t\n\f\r]/g;
1114
+ function P(e) {
1115
+ return typeof e == "object" ? e.type === "text" && F(e.value) : F(e);
1116
+ }
1117
+ function F(e) {
1118
+ return e.replace(Ee, "") === "";
1119
+ }
1120
+ // node_modules/hast-util-to-html/lib/omission/util/siblings.js
1121
+ var I = R(1), L = R(-1), De = [];
1122
+ function R(e) {
1123
+ return t;
1124
+ function t(t, n, r) {
1125
+ let i = t ? t.children : De, a = (n || 0) + e, o = i[a];
1126
+ if (!r) for (; o && P(o);) a += e, o = i[a];
1127
+ return o;
1128
+ }
1129
+ }
1130
+ // node_modules/hast-util-to-html/lib/omission/omission.js
1131
+ var Oe = {}.hasOwnProperty;
1132
+ function z(e) {
1133
+ return t;
1134
+ function t(t, n, r) {
1135
+ return Oe.call(e, t.tagName) && e[t.tagName](t, n, r);
1136
+ }
1137
+ }
1138
+ // node_modules/hast-util-to-html/lib/omission/closing.js
1139
+ var B = z({
1140
+ body: Ae,
1141
+ caption: V,
1142
+ colgroup: V,
1143
+ dd: Pe,
1144
+ dt: Ne,
1145
+ head: V,
1146
+ html: ke,
1147
+ li: Me,
1148
+ optgroup: Fe,
1149
+ option: Ie,
1150
+ p: je,
1151
+ rp: H,
1152
+ rt: H,
1153
+ tbody: Re,
1154
+ td: U,
1155
+ tfoot: ze,
1156
+ th: U,
1157
+ thead: Le,
1158
+ tr: Be
1159
+ });
1160
+ function V(e, t, n) {
1161
+ let r = I(n, t, !0);
1162
+ return !r || r.type !== "comment" && !(r.type === "text" && P(r.value.charAt(0)));
1163
+ }
1164
+ function ke(e, t, n) {
1165
+ let r = I(n, t);
1166
+ return !r || r.type !== "comment";
1167
+ }
1168
+ function Ae(e, t, n) {
1169
+ let r = I(n, t);
1170
+ return !r || r.type !== "comment";
1171
+ }
1172
+ function je(e, t, n) {
1173
+ let r = I(n, t);
1174
+ 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";
1175
+ }
1176
+ function Me(e, t, n) {
1177
+ let r = I(n, t);
1178
+ return !r || r.type === "element" && r.tagName === "li";
1179
+ }
1180
+ function Ne(e, t, n) {
1181
+ let r = I(n, t);
1182
+ return !(!r || r.type !== "element" || r.tagName !== "dt" && r.tagName !== "dd");
1183
+ }
1184
+ function Pe(e, t, n) {
1185
+ let r = I(n, t);
1186
+ return !r || r.type === "element" && (r.tagName === "dt" || r.tagName === "dd");
1187
+ }
1188
+ function H(e, t, n) {
1189
+ let r = I(n, t);
1190
+ return !r || r.type === "element" && (r.tagName === "rp" || r.tagName === "rt");
1191
+ }
1192
+ function Fe(e, t, n) {
1193
+ let r = I(n, t);
1194
+ return !r || r.type === "element" && r.tagName === "optgroup";
1195
+ }
1196
+ function Ie(e, t, n) {
1197
+ let r = I(n, t);
1198
+ return !r || r.type === "element" && (r.tagName === "option" || r.tagName === "optgroup");
1199
+ }
1200
+ function Le(e, t, n) {
1201
+ let r = I(n, t);
1202
+ return !(!r || r.type !== "element" || r.tagName !== "tbody" && r.tagName !== "tfoot");
1203
+ }
1204
+ function Re(e, t, n) {
1205
+ let r = I(n, t);
1206
+ return !r || r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot");
1207
+ }
1208
+ function ze(e, t, n) {
1209
+ return !I(n, t);
1210
+ }
1211
+ function Be(e, t, n) {
1212
+ let r = I(n, t);
1213
+ return !r || r.type === "element" && r.tagName === "tr";
1214
+ }
1215
+ function U(e, t, n) {
1216
+ let r = I(n, t);
1217
+ return !r || r.type === "element" && (r.tagName === "td" || r.tagName === "th");
1218
+ }
1219
+ // node_modules/hast-util-to-html/lib/omission/opening.js
1220
+ var Ve = z({
1221
+ body: We,
1222
+ colgroup: Ge,
1223
+ head: Ue,
1224
+ html: He,
1225
+ tbody: Ke
1226
+ });
1227
+ function He(e) {
1228
+ let t = I(e, -1);
1229
+ return !t || t.type !== "comment";
1230
+ }
1231
+ function Ue(e) {
1232
+ let t = /* @__PURE__ */ new Set();
1233
+ for (let n of e.children) if (n.type === "element" && (n.tagName === "base" || n.tagName === "title")) {
1234
+ if (t.has(n.tagName)) return !1;
1235
+ t.add(n.tagName);
1236
+ }
1237
+ let n = e.children[0];
1238
+ return !n || n.type === "element";
1239
+ }
1240
+ function We(e) {
1241
+ let t = I(e, -1, !0);
1242
+ return !t || t.type !== "comment" && !(t.type === "text" && P(t.value.charAt(0))) && (t.type !== "element" || t.tagName !== "meta" && t.tagName !== "link" && t.tagName !== "script" && t.tagName !== "style" && t.tagName !== "template");
1243
+ }
1244
+ function Ge(e, t, n) {
1245
+ let r = L(n, t), i = I(e, -1, !0);
1246
+ return n && r && r.type === "element" && r.tagName === "colgroup" && B(r, n.children.indexOf(r), n) ? !1 : !!(i && i.type === "element" && i.tagName === "col");
1247
+ }
1248
+ function Ke(e, t, n) {
1249
+ let r = L(n, t), i = I(e, -1);
1250
+ return n && r && r.type === "element" && (r.tagName === "thead" || r.tagName === "tbody") && B(r, n.children.indexOf(r), n) ? !1 : !!(i && i.type === "element" && i.tagName === "tr");
1251
+ }
1252
+ // node_modules/hast-util-to-html/lib/handle/element.js
1253
+ var W = {
1254
+ name: [[" \n\f\r &/=>".split(""), " \n\f\r \"&'/=>`".split("")], ["\0 \n\f\r \"&'/<=>".split(""), "\0 \n\f\r \"&'/<=>`".split("")]],
1255
+ unquoted: [[" \n\f\r &>".split(""), "\0 \n\f\r \"&'<=>`".split("")], ["\0 \n\f\r \"&'<=>`".split(""), "\0 \n\f\r \"&'<=>`".split("")]],
1256
+ single: [["&'".split(""), "\"&'`".split("")], ["\0&'".split(""), "\0\"&'`".split("")]],
1257
+ double: [["\"&".split(""), "\"&'`".split("")], ["\0\"&".split(""), "\0\"&'`".split("")]]
1258
+ };
1259
+ function qe(e, t, n, r) {
1260
+ let i = r.schema, a = i.space !== "svg" && r.settings.omitOptionalTags, o = i.space === "svg" ? r.settings.closeEmptyElements : r.settings.voids.includes(e.tagName.toLowerCase()), s = [], c;
1261
+ i.space === "html" && e.tagName === "svg" && (r.schema = m);
1262
+ let l = Je(r, e.properties), u = r.all(i.space === "html" && e.tagName === "template" ? e.content : e);
1263
+ return r.schema = i, u && (o = !1), !l && a && Ve(e, t, n) || (s.push("<", e.tagName, l ? " " + l : ""), o && (i.space === "svg" || r.settings.closeSelfClosing) && (c = l.charAt(l.length - 1), (!r.settings.tightSelfClosing || c === "/" || c && c !== "\"" && c !== "'") && s.push(" "), s.push("/")), s.push(">")), s.push(u), o || a && B(e, t, n) || s.push("</" + e.tagName + ">"), s.join("");
1264
+ }
1265
+ function Je(e, t) {
1266
+ let n = [], r = -1, i;
1267
+ if (t) {
1268
+ for (i in t) if (t[i] !== null && t[i] !== void 0) {
1269
+ let r = Ye(e, i, t[i]);
1270
+ r && n.push(r);
1271
+ }
1272
+ }
1273
+ for (; ++r < n.length;) {
1274
+ let t = e.settings.tightAttributes ? n[r].charAt(n[r].length - 1) : void 0;
1275
+ r !== n.length - 1 && t !== "\"" && t !== "'" && (n[r] += " ");
1276
+ }
1277
+ return n.join("");
1278
+ }
1279
+ function Ye(e, t, n) {
1280
+ let r = h(e.schema, t), i = e.settings.allowParseErrors && e.schema.space === "html" ? 0 : 1, a = +!e.settings.allowDangerousCharacters, s = e.quote, c;
1281
+ if (r.overloadedBoolean && (n === r.attribute || n === "") ? n = !0 : (r.boolean || r.overloadedBoolean) && (typeof n != "string" || n === r.attribute || n === "") && (n = !!n), n == null || n === !1 || typeof n == "number" && Number.isNaN(n)) return "";
1282
+ let l = N(r.attribute, Object.assign({}, e.settings.characterReferences, { subset: W.name[i][a] }));
1283
+ return n === !0 || (n = Array.isArray(n) ? (r.commaSeparated ? f : p)(n, { padLeft: !e.settings.tightCommaSeparatedLists }) : String(n), e.settings.collapseEmptyAttributes && !n) ? l : (e.settings.preferUnquoted && (c = N(n, Object.assign({}, e.settings.characterReferences, {
1284
+ attribute: !0,
1285
+ subset: W.unquoted[i][a]
1286
+ }))), c !== n && (e.settings.quoteSmart && o(n, s) > o(n, e.alternative) && (s = e.alternative), c = s + N(n, Object.assign({}, e.settings.characterReferences, {
1287
+ subset: (s === "'" ? W.single : W.double)[i][a],
1288
+ attribute: !0
1289
+ })) + s), l + (c && "=" + c));
1290
+ }
1291
+ // node_modules/hast-util-to-html/lib/handle/text.js
1292
+ var Xe = ["<", "&"];
1293
+ function G(e, t, n, r) {
1294
+ return n && n.type === "element" && (n.tagName === "script" || n.tagName === "style") ? e.value : N(e.value, Object.assign({}, r.settings.characterReferences, { subset: Xe }));
1295
+ }
1296
+ // node_modules/hast-util-to-html/lib/handle/raw.js
1297
+ function Ze(e, t, n, r) {
1298
+ return r.settings.allowDangerousHtml ? e.value : G(e, t, n, r);
1299
+ }
1300
+ // node_modules/hast-util-to-html/lib/handle/root.js
1301
+ function Qe(e, t, n, r) {
1302
+ return r.all(e);
1303
+ }
1304
+ // node_modules/hast-util-to-html/lib/handle/index.js
1305
+ var $e = ie("type", {
1306
+ invalid: et,
1307
+ unknown: tt,
1308
+ handlers: {
1309
+ comment: we,
1310
+ doctype: Te,
1311
+ element: qe,
1312
+ raw: Ze,
1313
+ root: Qe,
1314
+ text: G
1315
+ }
1316
+ });
1317
+ function et(e) {
1318
+ throw Error("Expected node, not `" + e + "`");
1319
+ }
1320
+ function tt(e) {
1321
+ throw Error("Cannot compile unknown node `" + e.type + "`");
1322
+ }
1323
+ // node_modules/hast-util-to-html/lib/index.js
1324
+ var nt = {}, rt = {}, it = [];
1325
+ function at(e, t) {
1326
+ let n = t || nt, r = n.quote || "\"", i = r === "\"" ? "'" : "\"";
1327
+ if (r !== "\"" && r !== "'") throw Error("Invalid quote `" + r + "`, expected `'` or `\"`");
1328
+ return {
1329
+ one: ot,
1330
+ all: st,
1331
+ settings: {
1332
+ omitOptionalTags: n.omitOptionalTags || !1,
1333
+ allowParseErrors: n.allowParseErrors || !1,
1334
+ allowDangerousCharacters: n.allowDangerousCharacters || !1,
1335
+ quoteSmart: n.quoteSmart || !1,
1336
+ preferUnquoted: n.preferUnquoted || !1,
1337
+ tightAttributes: n.tightAttributes || !1,
1338
+ upperDoctype: n.upperDoctype || !1,
1339
+ tightDoctype: n.tightDoctype || !1,
1340
+ bogusComments: n.bogusComments || !1,
1341
+ tightCommaSeparatedLists: n.tightCommaSeparatedLists || !1,
1342
+ tightSelfClosing: n.tightSelfClosing || !1,
1343
+ collapseEmptyAttributes: n.collapseEmptyAttributes || !1,
1344
+ allowDangerousHtml: n.allowDangerousHtml || !1,
1345
+ voids: n.voids || re,
1346
+ characterReferences: n.characterReferences || rt,
1347
+ closeSelfClosing: n.closeSelfClosing || !1,
1348
+ closeEmptyElements: n.closeEmptyElements || !1
1349
+ },
1350
+ schema: n.space === "svg" ? m : d,
1351
+ quote: r,
1352
+ alternative: i
1353
+ }.one(Array.isArray(e) ? {
1354
+ type: "root",
1355
+ children: e
1356
+ } : e, void 0, void 0);
1357
+ }
1358
+ function ot(e, t, n) {
1359
+ return $e(e, t, n, this);
1360
+ }
1361
+ function st(e) {
1362
+ let t = [], n = e && e.children || it, r = -1;
1363
+ for (; ++r < n.length;) t[r] = this.one(n[r], r, e);
1364
+ return t.join("");
1365
+ }
1366
+ // node_modules/rehype-stringify/lib/index.js
1367
+ function ct(t) {
1368
+ let n = this, r = e(e({}, n.data("settings")), t);
1369
+ n.compiler = i;
1370
+ function i(e) {
1371
+ return at(e, r);
1372
+ }
1373
+ }
1374
+ // src/core/model-hast.ts
1375
+ var lt = /* @__PURE__ */ new Set([
1376
+ "checked",
1377
+ "disabled",
1378
+ "hidden",
1379
+ "open",
1380
+ "reversed",
1381
+ "multiple",
1382
+ "required",
1383
+ "selected"
1384
+ ]), ut = {
1385
+ class: "className",
1386
+ for: "htmlFor",
1387
+ tabindex: "tabIndex",
1388
+ colspan: "colSpan",
1389
+ rowspan: "rowSpan",
1390
+ readonly: "readOnly",
1391
+ maxlength: "maxLength",
1392
+ minlength: "minLength",
1393
+ referrerpolicy: "referrerPolicy",
1394
+ crossorigin: "crossOrigin",
1395
+ srcset: "srcSet",
1396
+ datetime: "dateTime",
1397
+ "http-equiv": "httpEquiv"
1398
+ };
1399
+ function K(e) {
1400
+ let t = {};
1401
+ for (let i of Object.keys(e)) {
1402
+ var n, r;
1403
+ let a = (n = e[i]) == null ? "" : n, o = (r = ut[i]) == null ? i : r;
1404
+ lt.has(i) ? t[o] = a !== "false" : i === "class" ? t.className = a.split(/\s+/).filter(Boolean) : t[o] = a;
1405
+ }
1406
+ return t;
1407
+ }
1408
+ var dt = /* @__PURE__ */ new Set(/* @__PURE__ */ "p.h1.h2.h3.h4.h5.h6.ul.ol.li.blockquote.pre.table.thead.tbody.tfoot.tr.th.td.hr.div.section.figure.figcaption.dl.dt.dd.details.summary".split("."));
1409
+ function q(e, t, n) {
1410
+ return {
1411
+ type: "element",
1412
+ tagName: e,
1413
+ properties: t,
1414
+ children: J(n)
1415
+ };
1416
+ }
1417
+ function ft(e) {
1418
+ return e.type === "element" && dt.has(e.tagName);
1419
+ }
1420
+ function J(e) {
1421
+ let t = [];
1422
+ for (let n of e) {
1423
+ let e = t[t.length - 1], r = (e == null ? void 0 : e.type) === "text" && /\n\s*$/.test(e.value);
1424
+ t.length > 0 && ft(n) && !r && t.push({
1425
+ type: "text",
1426
+ value: "\n"
1427
+ }), t.push(n);
1428
+ }
1429
+ return t;
1430
+ }
1431
+ function pt(e, t) {
1432
+ return q("pre", {}, [q("code", t ? { className: [`language-${t}`] } : {}, [{
1433
+ type: "text",
1434
+ value: e
1435
+ }])]);
1436
+ }
1437
+ function mt(e) {
1438
+ switch (e.kind) {
1439
+ case "text": return !e.segments || e.segments.length === 0 ? {
1440
+ type: "text",
1441
+ value: e.value
1442
+ } : e.segments.map((e) => e.match ? q("mark", {
1443
+ className: ["vmd-search-match"],
1444
+ "data-vmd-part": "search-match"
1445
+ }, [{
1446
+ type: "text",
1447
+ value: e.value
1448
+ }]) : {
1449
+ type: "text",
1450
+ value: e.value
1451
+ });
1452
+ case "element": return q(e.tag, K(e.attrs), Y(e.children));
1453
+ case "code": return pt(e.code, e.language);
1454
+ case "math": {
1455
+ var t;
1456
+ let n = Y((t = e.rendered) == null ? [] : t);
1457
+ return q("span", {
1458
+ "data-vmd-part": "math",
1459
+ "data-vmd-math": "",
1460
+ "data-tex": e.tex,
1461
+ "data-display": e.displayMode ? "true" : "false"
1462
+ }, n.length > 0 ? n : [{
1463
+ type: "text",
1464
+ value: e.tex
1465
+ }]);
1466
+ }
1467
+ case "mermaid": return q("pre", {
1468
+ "data-vmd-part": "mermaid",
1469
+ "data-vmd-mermaid": ""
1470
+ }, [q("code", { className: ["language-mermaid"] }, [{
1471
+ type: "text",
1472
+ value: e.code
1473
+ }])]);
1474
+ case "custom": return q(e.tag, K(e.attrs), Y(e.children));
1475
+ case "plugin": {
1476
+ var n;
1477
+ let t = Y((n = e.children) == null ? [] : n), r = {
1478
+ "data-vmd-part": "plugin",
1479
+ "data-plugin-type": e.type,
1480
+ "data-plugin-key": e.key
1481
+ };
1482
+ return t.length === 0 && (r["data-plugin-unrendered"] = ""), q("span", r, t);
1483
+ }
1484
+ default: return;
1485
+ }
1486
+ }
1487
+ function Y(e) {
1488
+ let t = [];
1489
+ for (let n of e) {
1490
+ let e = mt(n);
1491
+ e && (Array.isArray(e) ? t.push(...e) : t.push(e));
1492
+ }
1493
+ return t;
1494
+ }
1495
+ function ht(e) {
1496
+ return {
1497
+ type: "root",
1498
+ children: J(Y(e.nodes))
1499
+ };
1500
+ }
1501
+ // src/core/run.ts
1502
+ function X(i, o = {}, l = []) {
1503
+ var u, d, f, p, m, h, g;
1504
+ let _ = s((u = o.plugins) == null ? a : u, (d = o.disablePlugins) == null ? [] : d);
1505
+ l.push(..._.diagnostics);
1506
+ let v = c(o.pipeline);
1507
+ l.push(...v.diagnostics);
1508
+ let y = [..._.remarkPlugins, ...(f = o.remarkPlugins) == null ? [] : f], b = [..._.rehypePlugins, ...(p = o.rehypePlugins) == null ? [] : p], x = t(i, _.plugins, o, l), S = (m = o.slugger) == null ? new r() : m, C = n(S), w = {
1509
+ source: x,
1510
+ options: o,
1511
+ plugins: _.plugins,
1512
+ remarkPlugins: y,
1513
+ rehypePlugins: b,
1514
+ remarkRehypeOptions: e(e({}, _.remarkRehypeOptions), (h = o.remarkRehypeOptions) == null ? {} : h),
1515
+ slugger: C,
1516
+ idPrefix: (g = o.idPrefix) == null ? "" : g,
1517
+ diagnostics: l
1518
+ };
1519
+ return {
1520
+ pipeline: v.pipeline,
1521
+ plugins: _,
1522
+ source: x,
1523
+ context: w,
1524
+ slugger: C,
1525
+ diagnostics: l
1526
+ };
1527
+ }
1528
+ // src/export/index.ts
1529
+ function Z(e) {
1530
+ return l().use(ct).stringify(ht(e));
1531
+ }
1532
+ function Q(e) {
1533
+ if (e.some((e) => e.severity === "error")) throw Error(e.map((e) => e.message).join(" "));
1534
+ }
1535
+ function gt(e) {
1536
+ return $.apply(this, arguments);
1537
+ }
1538
+ function $() {
1539
+ return $ = g(function* (e, t = {}) {
1540
+ var n, r, a;
1541
+ let o = [], s = X(e, t, o);
1542
+ (n = (r = s.slugger).reset) == null || n.call(r);
1543
+ let c = u(yield s.pipeline.process(s.source, s.context)), l = i({
1544
+ source: s.source,
1545
+ result: c,
1546
+ options: t,
1547
+ plugins: s.plugins,
1548
+ pipelineName: s.pipeline.name,
1549
+ slugger: s.slugger,
1550
+ idPrefix: (a = t.idPrefix) == null ? "" : a,
1551
+ diagnostics: o
1552
+ });
1553
+ return Q(o), Z(l);
1554
+ }), $.apply(this, arguments);
1555
+ }
1556
+ function _t(e, t = {}) {
1557
+ var n, r, a;
1558
+ let o = [], s = X(e, t, o);
1559
+ if (!s.pipeline.processSync) throw Error("The configured pipeline does not support synchronous export.");
1560
+ (n = (r = s.slugger).reset) == null || n.call(r);
1561
+ let c = u(s.pipeline.processSync(s.source, s.context)), l = i({
1562
+ source: s.source,
1563
+ result: c,
1564
+ options: t,
1565
+ plugins: s.plugins,
1566
+ pipelineName: s.pipeline.name,
1567
+ slugger: s.slugger,
1568
+ idPrefix: (a = t.idPrefix) == null ? "" : a,
1569
+ diagnostics: o
1570
+ });
1571
+ return Q(o), Z(l);
1572
+ }
1573
+ export { te as a, S as c, _ as d, b as f, ee as i, y as l, _t as n, ne as o, x as p, E as r, v as s, gt as t, C as u };
1574
+
1575
+ //# sourceMappingURL=export-DZQ3cUry.js.map