@burdenoff/microfe-store 2026.720.3 → 2026.720.4

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 (276) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +20 -0
  2. package/dist/components/MarkdownEditor.js +5 -5
  3. package/dist/components/MarkdownEditor.js.map +1 -1
  4. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +63 -0
  5. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js.map +1 -0
  6. package/dist/node_modules/@ungap/structured-clone/esm/index.js +8 -0
  7. package/dist/node_modules/@ungap/structured-clone/esm/index.js.map +1 -0
  8. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +93 -0
  9. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js.map +1 -0
  10. package/dist/node_modules/bail/index.js +8 -0
  11. package/dist/node_modules/bail/index.js.map +1 -0
  12. package/dist/node_modules/comma-separated-tokens/index.js +9 -0
  13. package/dist/node_modules/comma-separated-tokens/index.js.map +1 -0
  14. package/dist/node_modules/decode-named-character-reference/index.dom.js +12 -0
  15. package/dist/node_modules/decode-named-character-reference/index.dom.js.map +1 -0
  16. package/dist/node_modules/devlop/lib/default.js +7 -0
  17. package/dist/node_modules/devlop/lib/default.js.map +1 -0
  18. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +9 -0
  19. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js.map +1 -0
  20. package/dist/node_modules/extend/index.js +42 -0
  21. package/dist/node_modules/extend/index.js.map +1 -0
  22. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +255 -0
  23. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js.map +1 -0
  24. package/dist/node_modules/hast-util-whitespace/lib/index.js +12 -0
  25. package/dist/node_modules/hast-util-whitespace/lib/index.js.map +1 -0
  26. package/dist/node_modules/html-url-attributes/lib/index.js +38 -0
  27. package/dist/node_modules/html-url-attributes/lib/index.js.map +1 -0
  28. package/dist/node_modules/inline-style-parser/cjs/index.js +92 -0
  29. package/dist/node_modules/inline-style-parser/cjs/index.js.map +1 -0
  30. package/dist/node_modules/is-plain-obj/index.js +10 -0
  31. package/dist/node_modules/is-plain-obj/index.js.map +1 -0
  32. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +559 -0
  33. package/dist/node_modules/mdast-util-from-markdown/lib/index.js.map +1 -0
  34. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +105 -0
  35. package/dist/node_modules/mdast-util-to-hast/lib/footer.js.map +1 -0
  36. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +14 -0
  37. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +1 -0
  38. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +17 -0
  39. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js.map +1 -0
  40. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +24 -0
  41. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js.map +1 -0
  42. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +14 -0
  43. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +1 -0
  44. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +14 -0
  45. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +1 -0
  46. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +32 -0
  47. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +1 -0
  48. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +14 -0
  49. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +1 -0
  50. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +14 -0
  51. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js.map +1 -0
  52. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +23 -0
  53. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +1 -0
  54. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +17 -0
  55. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js.map +1 -0
  56. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
  57. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js.map +1 -0
  58. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +19 -0
  59. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +1 -0
  60. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +20 -0
  61. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +1 -0
  62. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +17 -0
  63. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js.map +1 -0
  64. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +61 -0
  65. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +1 -0
  66. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +22 -0
  67. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js.map +1 -0
  68. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +14 -0
  69. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +1 -0
  70. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +12 -0
  71. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js.map +1 -0
  72. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +14 -0
  73. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +1 -0
  74. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +14 -0
  75. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +1 -0
  76. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +26 -0
  77. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +1 -0
  78. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +37 -0
  79. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js.map +1 -0
  80. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +13 -0
  81. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js.map +1 -0
  82. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +14 -0
  83. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +1 -0
  84. package/dist/node_modules/mdast-util-to-hast/lib/index.js +21 -0
  85. package/dist/node_modules/mdast-util-to-hast/lib/index.js.map +1 -0
  86. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +22 -0
  87. package/dist/node_modules/mdast-util-to-hast/lib/revert.js.map +1 -0
  88. package/dist/node_modules/mdast-util-to-hast/lib/state.js +110 -0
  89. package/dist/node_modules/mdast-util-to-hast/lib/state.js.map +1 -0
  90. package/dist/node_modules/mdast-util-to-string/lib/index.js +26 -0
  91. package/dist/node_modules/mdast-util-to-string/lib/index.js.map +1 -0
  92. package/dist/node_modules/micromark/lib/constructs.js +82 -0
  93. package/dist/node_modules/micromark/lib/constructs.js.map +1 -0
  94. package/dist/node_modules/micromark/lib/create-tokenizer.js +179 -0
  95. package/dist/node_modules/micromark/lib/create-tokenizer.js.map +1 -0
  96. package/dist/node_modules/micromark/lib/initialize/content.js +36 -0
  97. package/dist/node_modules/micromark/lib/initialize/content.js.map +1 -0
  98. package/dist/node_modules/micromark/lib/initialize/document.js +104 -0
  99. package/dist/node_modules/micromark/lib/initialize/document.js.map +1 -0
  100. package/dist/node_modules/micromark/lib/initialize/flow.js +27 -0
  101. package/dist/node_modules/micromark/lib/initialize/flow.js.map +1 -0
  102. package/dist/node_modules/micromark/lib/initialize/text.js +88 -0
  103. package/dist/node_modules/micromark/lib/initialize/text.js.map +1 -0
  104. package/dist/node_modules/micromark/lib/parse.js +31 -0
  105. package/dist/node_modules/micromark/lib/parse.js.map +1 -0
  106. package/dist/node_modules/micromark/lib/postprocess.js +10 -0
  107. package/dist/node_modules/micromark/lib/postprocess.js.map +1 -0
  108. package/dist/node_modules/micromark/lib/preprocess.js +34 -0
  109. package/dist/node_modules/micromark/lib/preprocess.js.map +1 -0
  110. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +116 -0
  111. package/dist/node_modules/micromark-core-commonmark/lib/attention.js.map +1 -0
  112. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +45 -0
  113. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js.map +1 -0
  114. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +20 -0
  115. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -0
  116. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +40 -0
  117. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js.map +1 -0
  118. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +19 -0
  119. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js.map +1 -0
  120. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +31 -0
  121. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js.map +1 -0
  122. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +91 -0
  123. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js.map +1 -0
  124. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +45 -0
  125. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js.map +1 -0
  126. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
  127. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js.map +1 -0
  128. package/dist/node_modules/micromark-core-commonmark/lib/content.js +49 -0
  129. package/dist/node_modules/micromark-core-commonmark/lib/content.js.map +1 -0
  130. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +62 -0
  131. package/dist/node_modules/micromark-core-commonmark/lib/definition.js.map +1 -0
  132. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +19 -0
  133. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +1 -0
  134. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +69 -0
  135. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js.map +1 -0
  136. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +143 -0
  137. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js.map +1 -0
  138. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
  139. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js.map +1 -0
  140. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +160 -0
  141. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js.map +1 -0
  142. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +25 -0
  143. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js.map +1 -0
  144. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +22 -0
  145. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js.map +1 -0
  146. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +16 -0
  147. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js.map +1 -0
  148. package/dist/node_modules/micromark-core-commonmark/lib/list.js +80 -0
  149. package/dist/node_modules/micromark-core-commonmark/lib/list.js.map +1 -0
  150. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +61 -0
  151. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js.map +1 -0
  152. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +27 -0
  153. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js.map +1 -0
  154. package/dist/node_modules/micromark-factory-destination/index.js +28 -0
  155. package/dist/node_modules/micromark-factory-destination/index.js.map +1 -0
  156. package/dist/node_modules/micromark-factory-label/index.js +22 -0
  157. package/dist/node_modules/micromark-factory-label/index.js.map +1 -0
  158. package/dist/node_modules/micromark-factory-space/index.js +16 -0
  159. package/dist/node_modules/micromark-factory-space/index.js.map +1 -0
  160. package/dist/node_modules/micromark-factory-title/index.js +26 -0
  161. package/dist/node_modules/micromark-factory-title/index.js.map +1 -0
  162. package/dist/node_modules/micromark-factory-whitespace/index.js +14 -0
  163. package/dist/node_modules/micromark-factory-whitespace/index.js.map +1 -0
  164. package/dist/node_modules/micromark-util-character/index.js +26 -0
  165. package/dist/node_modules/micromark-util-character/index.js.map +1 -0
  166. package/dist/node_modules/micromark-util-chunked/index.js +13 -0
  167. package/dist/node_modules/micromark-util-chunked/index.js.map +1 -0
  168. package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
  169. package/dist/node_modules/micromark-util-classify-character/index.js.map +1 -0
  170. package/dist/node_modules/micromark-util-combine-extensions/index.js +28 -0
  171. package/dist/node_modules/micromark-util-combine-extensions/index.js.map +1 -0
  172. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +9 -0
  173. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js.map +1 -0
  174. package/dist/node_modules/micromark-util-decode-string/index.js +19 -0
  175. package/dist/node_modules/micromark-util-decode-string/index.js.map +1 -0
  176. package/dist/node_modules/micromark-util-html-tag-name/index.js +11 -0
  177. package/dist/node_modules/micromark-util-html-tag-name/index.js.map +1 -0
  178. package/dist/node_modules/micromark-util-normalize-identifier/index.js +8 -0
  179. package/dist/node_modules/micromark-util-normalize-identifier/index.js.map +1 -0
  180. package/dist/node_modules/micromark-util-resolve-all/index.js +13 -0
  181. package/dist/node_modules/micromark-util-resolve-all/index.js.map +1 -0
  182. package/dist/node_modules/micromark-util-sanitize-uri/index.js +20 -0
  183. package/dist/node_modules/micromark-util-sanitize-uri/index.js.map +1 -0
  184. package/dist/node_modules/micromark-util-subtokenize/index.js +37 -0
  185. package/dist/node_modules/micromark-util-subtokenize/index.js.map +1 -0
  186. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +59 -0
  187. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +1 -0
  188. package/dist/node_modules/property-information/index.js +28 -0
  189. package/dist/node_modules/property-information/index.js.map +1 -0
  190. package/dist/node_modules/property-information/lib/aria.js +63 -0
  191. package/dist/node_modules/property-information/lib/aria.js.map +1 -0
  192. package/dist/node_modules/property-information/lib/find.js +33 -0
  193. package/dist/node_modules/property-information/lib/find.js.map +1 -0
  194. package/dist/node_modules/property-information/lib/hast-to-react.js +24 -0
  195. package/dist/node_modules/property-information/lib/hast-to-react.js.map +1 -0
  196. package/dist/node_modules/property-information/lib/html.js +328 -0
  197. package/dist/node_modules/property-information/lib/html.js.map +1 -0
  198. package/dist/node_modules/property-information/lib/normalize.js +8 -0
  199. package/dist/node_modules/property-information/lib/normalize.js.map +1 -0
  200. package/dist/node_modules/property-information/lib/svg.js +566 -0
  201. package/dist/node_modules/property-information/lib/svg.js.map +1 -0
  202. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +9 -0
  203. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js.map +1 -0
  204. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +8 -0
  205. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js.map +1 -0
  206. package/dist/node_modules/property-information/lib/util/create.js +16 -0
  207. package/dist/node_modules/property-information/lib/util/create.js.map +1 -0
  208. package/dist/node_modules/property-information/lib/util/defined-info.js +20 -0
  209. package/dist/node_modules/property-information/lib/util/defined-info.js.map +1 -0
  210. package/dist/node_modules/property-information/lib/util/info.js +11 -0
  211. package/dist/node_modules/property-information/lib/util/info.js.map +1 -0
  212. package/dist/node_modules/property-information/lib/util/merge.js +11 -0
  213. package/dist/node_modules/property-information/lib/util/merge.js.map +1 -0
  214. package/dist/node_modules/property-information/lib/util/schema.js +11 -0
  215. package/dist/node_modules/property-information/lib/util/schema.js.map +1 -0
  216. package/dist/node_modules/property-information/lib/util/types.js +18 -0
  217. package/dist/node_modules/property-information/lib/util/types.js.map +1 -0
  218. package/dist/node_modules/property-information/lib/xlink.js +21 -0
  219. package/dist/node_modules/property-information/lib/xlink.js.map +1 -0
  220. package/dist/node_modules/property-information/lib/xml.js +17 -0
  221. package/dist/node_modules/property-information/lib/xml.js.map +1 -0
  222. package/dist/node_modules/property-information/lib/xmlns.js +16 -0
  223. package/dist/node_modules/property-information/lib/xmlns.js.map +1 -0
  224. package/dist/node_modules/react-markdown/lib/index.js +142 -0
  225. package/dist/node_modules/react-markdown/lib/index.js.map +1 -0
  226. package/dist/node_modules/remark-parse/lib/index.js +18 -0
  227. package/dist/node_modules/remark-parse/lib/index.js.map +1 -0
  228. package/dist/node_modules/remark-rehype/lib/index.js +20 -0
  229. package/dist/node_modules/remark-rehype/lib/index.js.map +1 -0
  230. package/dist/node_modules/space-separated-tokens/index.js +8 -0
  231. package/dist/node_modules/space-separated-tokens/index.js.map +1 -0
  232. package/dist/node_modules/style-to-js/cjs/index.js +21 -0
  233. package/dist/node_modules/style-to-js/cjs/index.js.map +1 -0
  234. package/dist/node_modules/style-to-js/cjs/utilities.js +20 -0
  235. package/dist/node_modules/style-to-js/cjs/utilities.js.map +1 -0
  236. package/dist/node_modules/style-to-object/cjs/index.js +25 -0
  237. package/dist/node_modules/style-to-object/cjs/index.js.map +1 -0
  238. package/dist/node_modules/trim-lines/index.js +23 -0
  239. package/dist/node_modules/trim-lines/index.js.map +1 -0
  240. package/dist/node_modules/trough/lib/index.js +52 -0
  241. package/dist/node_modules/trough/lib/index.js.map +1 -0
  242. package/dist/node_modules/unified/lib/callable-instance.js +11 -0
  243. package/dist/node_modules/unified/lib/callable-instance.js.map +1 -0
  244. package/dist/node_modules/unified/lib/index.js +163 -0
  245. package/dist/node_modules/unified/lib/index.js.map +1 -0
  246. package/dist/node_modules/unist-util-is/lib/index.js +49 -0
  247. package/dist/node_modules/unist-util-is/lib/index.js.map +1 -0
  248. package/dist/node_modules/unist-util-position/lib/index.js +24 -0
  249. package/dist/node_modules/unist-util-position/lib/index.js.map +1 -0
  250. package/dist/node_modules/unist-util-stringify-position/lib/index.js +17 -0
  251. package/dist/node_modules/unist-util-stringify-position/lib/index.js.map +1 -0
  252. package/dist/node_modules/unist-util-visit/lib/index.js +14 -0
  253. package/dist/node_modules/unist-util-visit/lib/index.js.map +1 -0
  254. package/dist/node_modules/unist-util-visit-parents/lib/color.js +8 -0
  255. package/dist/node_modules/unist-util-visit-parents/lib/color.js.map +1 -0
  256. package/dist/node_modules/unist-util-visit-parents/lib/index.js +38 -0
  257. package/dist/node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
  258. package/dist/node_modules/vfile/lib/index.js +91 -0
  259. package/dist/node_modules/vfile/lib/index.js.map +1 -0
  260. package/dist/node_modules/vfile/lib/minpath.browser.js +101 -0
  261. package/dist/node_modules/vfile/lib/minpath.browser.js.map +1 -0
  262. package/dist/node_modules/vfile/lib/minproc.browser.js +9 -0
  263. package/dist/node_modules/vfile/lib/minproc.browser.js.map +1 -0
  264. package/dist/node_modules/vfile/lib/minurl.browser.js +33 -0
  265. package/dist/node_modules/vfile/lib/minurl.browser.js.map +1 -0
  266. package/dist/node_modules/vfile/lib/minurl.shared.js +8 -0
  267. package/dist/node_modules/vfile/lib/minurl.shared.js.map +1 -0
  268. package/dist/node_modules/vfile-message/lib/index.js +26 -0
  269. package/dist/node_modules/vfile-message/lib/index.js.map +1 -0
  270. package/dist/pages/AdminSubmissionsQueuePage.js +174 -174
  271. package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
  272. package/dist/pages/MarketplaceHomePage.js +472 -422
  273. package/dist/pages/MarketplaceHomePage.js.map +1 -1
  274. package/dist/pages/ProductDetailPage.js +16 -16
  275. package/dist/pages/ProductDetailPage.js.map +1 -1
  276. package/package.json +1 -1
@@ -0,0 +1,26 @@
1
+ import { markdownLineEnding as e } from "../micromark-util-character/index.js";
2
+ import { factorySpace as t } from "../micromark-factory-space/index.js";
3
+ //#region node_modules/micromark-factory-title/index.js
4
+ function n(n, r, i, a, o, s) {
5
+ let c;
6
+ return l;
7
+ function l(e) {
8
+ return e === 34 || e === 39 || e === 40 ? (n.enter(a), n.enter(o), n.consume(e), n.exit(o), c = e === 40 ? 41 : e, u) : i(e);
9
+ }
10
+ function u(e) {
11
+ return e === c ? (n.enter(o), n.consume(e), n.exit(o), n.exit(a), r) : (n.enter(s), d(e));
12
+ }
13
+ function d(r) {
14
+ return r === c ? (n.exit(s), u(c)) : r === null ? i(r) : e(r) ? (n.enter("lineEnding"), n.consume(r), n.exit("lineEnding"), t(n, d, "linePrefix")) : (n.enter("chunkString", { contentType: "string" }), f(r));
15
+ }
16
+ function f(t) {
17
+ return t === c || t === null || e(t) ? (n.exit("chunkString"), d(t)) : (n.consume(t), t === 92 ? p : f);
18
+ }
19
+ function p(e) {
20
+ return e === c || e === 92 ? (n.consume(e), f) : f(e);
21
+ }
22
+ }
23
+ //#endregion
24
+ export { n as factoryTitle };
25
+
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/micromark-factory-title/index.js"],"sourcesContent":["/**\n * @import {\n * Code,\n * Effects,\n * State,\n * TokenType\n * } from 'micromark-util-types'\n */\n\nimport { factorySpace } from 'micromark-factory-space';\nimport { markdownLineEnding } from 'micromark-util-character';\n/**\n * Parse titles.\n *\n * ###### Examples\n *\n * ```markdown\n * \"a\"\n * 'b'\n * (c)\n * \"a\n * b\"\n * 'a\n * b'\n * (a\\)b)\n * ```\n *\n * @param {Effects} effects\n * Context.\n * @param {State} ok\n * State switched to when successful.\n * @param {State} nok\n * State switched to when unsuccessful.\n * @param {TokenType} type\n * Type of the whole title (`\"a\"`, `'b'`, `(c)`).\n * @param {TokenType} markerType\n * Type for the markers (`\"`, `'`, `(`, and `)`).\n * @param {TokenType} stringType\n * Type for the value (`a`).\n * @returns {State}\n * Start state.\n */\nexport function factoryTitle(effects, ok, nok, type, markerType, stringType) {\n /** @type {NonNullable<Code>} */\n let marker;\n return start;\n\n /**\n * Start of title.\n *\n * ```markdown\n * > | \"a\"\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n if (code === 34 || code === 39 || code === 40) {\n effects.enter(type);\n effects.enter(markerType);\n effects.consume(code);\n effects.exit(markerType);\n marker = code === 40 ? 41 : code;\n return begin;\n }\n return nok(code);\n }\n\n /**\n * After opening marker.\n *\n * This is also used at the closing marker.\n *\n * ```markdown\n * > | \"a\"\n * ^\n * ```\n *\n * @type {State}\n */\n function begin(code) {\n if (code === marker) {\n effects.enter(markerType);\n effects.consume(code);\n effects.exit(markerType);\n effects.exit(type);\n return ok;\n }\n effects.enter(stringType);\n return atBreak(code);\n }\n\n /**\n * At something, before something else.\n *\n * ```markdown\n * > | \"a\"\n * ^\n * ```\n *\n * @type {State}\n */\n function atBreak(code) {\n if (code === marker) {\n effects.exit(stringType);\n return begin(marker);\n }\n if (code === null) {\n return nok(code);\n }\n\n // Note: blank lines can’t exist in content.\n if (markdownLineEnding(code)) {\n // To do: use `space_or_tab_eol_with_options`, connect.\n effects.enter(\"lineEnding\");\n effects.consume(code);\n effects.exit(\"lineEnding\");\n return factorySpace(effects, atBreak, \"linePrefix\");\n }\n effects.enter(\"chunkString\", {\n contentType: \"string\"\n });\n return inside(code);\n }\n\n /**\n *\n *\n * @type {State}\n */\n function inside(code) {\n if (code === marker || code === null || markdownLineEnding(code)) {\n effects.exit(\"chunkString\");\n return atBreak(code);\n }\n effects.consume(code);\n return code === 92 ? escape : inside;\n }\n\n /**\n * After `\\`, at a special character.\n *\n * ```markdown\n * > | \"a\\*b\"\n * ^\n * ```\n *\n * @type {State}\n */\n function escape(code) {\n if (code === marker || code === 92) {\n effects.consume(code);\n return inside;\n }\n return inside(code);\n }\n}"],"x_google_ignoreList":[0],"mappings":";;;AA0CA,SAAgB,EAAa,GAAS,GAAI,GAAK,GAAM,GAAY,GAAY;CAE3E,IAAI;AACJ,QAAO;CAYP,SAAS,EAAM,GAAM;AASnB,SARI,MAAS,MAAM,MAAS,MAAM,MAAS,MACzC,EAAQ,MAAM,EAAK,EACnB,EAAQ,MAAM,EAAW,EACzB,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,EAAW,EACxB,IAAS,MAAS,KAAK,KAAK,GACrB,KAEF,EAAI,EAAK;;CAelB,SAAS,EAAM,GAAM;AASnB,SARI,MAAS,KACX,EAAQ,MAAM,EAAW,EACzB,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,EAAW,EACxB,EAAQ,KAAK,EAAK,EACX,MAET,EAAQ,MAAM,EAAW,EAClB,EAAQ,EAAK;;CAatB,SAAS,EAAQ,GAAM;AAoBrB,SAnBI,MAAS,KACX,EAAQ,KAAK,EAAW,EACjB,EAAM,EAAO,IAElB,MAAS,OACJ,EAAI,EAAK,GAId,EAAmB,EAAK,IAE1B,EAAQ,MAAM,aAAa,EAC3B,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,aAAa,EACnB,EAAa,GAAS,GAAS,aAAa,KAErD,EAAQ,MAAM,eAAe,EAC3B,aAAa,UACd,CAAC,EACK,EAAO,EAAK;;CAQrB,SAAS,EAAO,GAAM;AAMpB,SALI,MAAS,KAAU,MAAS,QAAQ,EAAmB,EAAK,IAC9D,EAAQ,KAAK,cAAc,EACpB,EAAQ,EAAK,KAEtB,EAAQ,QAAQ,EAAK,EACd,MAAS,KAAK,IAAS;;CAahC,SAAS,EAAO,GAAM;AAKpB,SAJI,MAAS,KAAU,MAAS,MAC9B,EAAQ,QAAQ,EAAK,EACd,KAEF,EAAO,EAAK"}
@@ -0,0 +1,14 @@
1
+ import { markdownLineEnding as e, markdownSpace as t } from "../micromark-util-character/index.js";
2
+ import { factorySpace as n } from "../micromark-factory-space/index.js";
3
+ //#region node_modules/micromark-factory-whitespace/index.js
4
+ function r(r, i) {
5
+ let a;
6
+ return o;
7
+ function o(s) {
8
+ return e(s) ? (r.enter("lineEnding"), r.consume(s), r.exit("lineEnding"), a = !0, o) : t(s) ? n(r, o, a ? "linePrefix" : "lineSuffix")(s) : i(s);
9
+ }
10
+ }
11
+ //#endregion
12
+ export { r as factoryWhitespace };
13
+
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/micromark-factory-whitespace/index.js"],"sourcesContent":["/**\n * @import {Effects, State} from 'micromark-util-types'\n */\n\nimport { factorySpace } from 'micromark-factory-space';\nimport { markdownLineEnding, markdownSpace } from 'micromark-util-character';\n/**\n * Parse spaces and tabs.\n *\n * There is no `nok` parameter:\n *\n * * line endings or spaces in markdown are often optional, in which case this\n * factory can be used and `ok` will be switched to whether spaces were found\n * or not\n * * one line ending or space can be detected with\n * `markdownLineEndingOrSpace(code)` right before using `factoryWhitespace`\n *\n * @param {Effects} effects\n * Context.\n * @param {State} ok\n * State switched to when successful.\n * @returns {State}\n * Start state.\n */\nexport function factoryWhitespace(effects, ok) {\n /** @type {boolean} */\n let seen;\n return start;\n\n /** @type {State} */\n function start(code) {\n if (markdownLineEnding(code)) {\n effects.enter(\"lineEnding\");\n effects.consume(code);\n effects.exit(\"lineEnding\");\n seen = true;\n return start;\n }\n if (markdownSpace(code)) {\n return factorySpace(effects, start, seen ? \"linePrefix\" : \"lineSuffix\")(code);\n }\n return ok(code);\n }\n}"],"x_google_ignoreList":[0],"mappings":";;;AAwBA,SAAgB,EAAkB,GAAS,GAAI;CAE7C,IAAI;AACJ,QAAO;CAGP,SAAS,EAAM,GAAM;AAWnB,SAVI,EAAmB,EAAK,IAC1B,EAAQ,MAAM,aAAa,EAC3B,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,aAAa,EAC1B,IAAO,IACA,KAEL,EAAc,EAAK,GACd,EAAa,GAAS,GAAO,IAAO,eAAe,aAAa,CAAC,EAAK,GAExE,EAAG,EAAK"}
@@ -0,0 +1,26 @@
1
+ //#region node_modules/micromark-util-character/index.js
2
+ var e = f(/[A-Za-z]/), t = f(/[\dA-Za-z]/), n = f(/[#-'*+\--9=?A-Z^-~]/);
3
+ function r(e) {
4
+ return e !== null && (e < 32 || e === 127);
5
+ }
6
+ var i = f(/\d/), a = f(/[\dA-Fa-f]/), o = f(/[!-/:-@[-`{-~]/);
7
+ function s(e) {
8
+ return e !== null && e < -2;
9
+ }
10
+ function c(e) {
11
+ return e !== null && (e < 0 || e === 32);
12
+ }
13
+ function l(e) {
14
+ return e === -2 || e === -1 || e === 32;
15
+ }
16
+ var u = f(/\p{P}|\p{S}/u), d = f(/\s/);
17
+ function f(e) {
18
+ return t;
19
+ function t(t) {
20
+ return t !== null && t > -1 && e.test(String.fromCharCode(t));
21
+ }
22
+ }
23
+ //#endregion
24
+ export { e as asciiAlpha, t as asciiAlphanumeric, n as asciiAtext, r as asciiControl, i as asciiDigit, a as asciiHexDigit, o as asciiPunctuation, s as markdownLineEnding, c as markdownLineEndingOrSpace, l as markdownSpace, u as unicodePunctuation, d as unicodeWhitespace };
25
+
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/micromark-util-character/index.js"],"sourcesContent":["/**\n * @import {Code} from 'micromark-util-types'\n */\n\n/**\n * Check whether the character code represents an ASCII alpha (`a` through `z`,\n * case insensitive).\n *\n * An **ASCII alpha** is an ASCII upper alpha or ASCII lower alpha.\n *\n * An **ASCII upper alpha** is a character in the inclusive range U+0041 (`A`)\n * to U+005A (`Z`).\n *\n * An **ASCII lower alpha** is a character in the inclusive range U+0061 (`a`)\n * to U+007A (`z`).\n *\n * @param code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport const asciiAlpha = regexCheck(/[A-Za-z]/);\n\n/**\n * Check whether the character code represents an ASCII alphanumeric (`a`\n * through `z`, case insensitive, or `0` through `9`).\n *\n * An **ASCII alphanumeric** is an ASCII digit (see `asciiDigit`) or ASCII alpha\n * (see `asciiAlpha`).\n *\n * @param code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport const asciiAlphanumeric = regexCheck(/[\\dA-Za-z]/);\n\n/**\n * Check whether the character code represents an ASCII atext.\n *\n * atext is an ASCII alphanumeric (see `asciiAlphanumeric`), or a character in\n * the inclusive ranges U+0023 NUMBER SIGN (`#`) to U+0027 APOSTROPHE (`'`),\n * U+002A ASTERISK (`*`), U+002B PLUS SIGN (`+`), U+002D DASH (`-`), U+002F\n * SLASH (`/`), U+003D EQUALS TO (`=`), U+003F QUESTION MARK (`?`), U+005E\n * CARET (`^`) to U+0060 GRAVE ACCENT (`` ` ``), or U+007B LEFT CURLY BRACE\n * (`{`) to U+007E TILDE (`~`).\n *\n * See:\n * **\\[RFC5322]**:\n * [Internet Message Format](https://tools.ietf.org/html/rfc5322).\n * P. Resnick.\n * IETF.\n *\n * @param code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport const asciiAtext = regexCheck(/[#-'*+\\--9=?A-Z^-~]/);\n\n/**\n * Check whether a character code is an ASCII control character.\n *\n * An **ASCII control** is a character in the inclusive range U+0000 NULL (NUL)\n * to U+001F (US), or U+007F (DEL).\n *\n * @param {Code} code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport function asciiControl(code) {\n return (\n // Special whitespace codes (which have negative values), C0 and Control\n // character DEL\n code !== null && (code < 32 || code === 127)\n );\n}\n\n/**\n * Check whether the character code represents an ASCII digit (`0` through `9`).\n *\n * An **ASCII digit** is a character in the inclusive range U+0030 (`0`) to\n * U+0039 (`9`).\n *\n * @param code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport const asciiDigit = regexCheck(/\\d/);\n\n/**\n * Check whether the character code represents an ASCII hex digit (`a` through\n * `f`, case insensitive, or `0` through `9`).\n *\n * An **ASCII hex digit** is an ASCII digit (see `asciiDigit`), ASCII upper hex\n * digit, or an ASCII lower hex digit.\n *\n * An **ASCII upper hex digit** is a character in the inclusive range U+0041\n * (`A`) to U+0046 (`F`).\n *\n * An **ASCII lower hex digit** is a character in the inclusive range U+0061\n * (`a`) to U+0066 (`f`).\n *\n * @param code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport const asciiHexDigit = regexCheck(/[\\dA-Fa-f]/);\n\n/**\n * Check whether the character code represents ASCII punctuation.\n *\n * An **ASCII punctuation** is a character in the inclusive ranges U+0021\n * EXCLAMATION MARK (`!`) to U+002F SLASH (`/`), U+003A COLON (`:`) to U+0040 AT\n * SIGN (`@`), U+005B LEFT SQUARE BRACKET (`[`) to U+0060 GRAVE ACCENT\n * (`` ` ``), or U+007B LEFT CURLY BRACE (`{`) to U+007E TILDE (`~`).\n *\n * @param code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport const asciiPunctuation = regexCheck(/[!-/:-@[-`{-~]/);\n\n/**\n * Check whether a character code is a markdown line ending.\n *\n * A **markdown line ending** is the virtual characters M-0003 CARRIAGE RETURN\n * LINE FEED (CRLF), M-0004 LINE FEED (LF) and M-0005 CARRIAGE RETURN (CR).\n *\n * In micromark, the actual character U+000A LINE FEED (LF) and U+000D CARRIAGE\n * RETURN (CR) are replaced by these virtual characters depending on whether\n * they occurred together.\n *\n * @param {Code} code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport function markdownLineEnding(code) {\n return code !== null && code < -2;\n}\n\n/**\n * Check whether a character code is a markdown line ending (see\n * `markdownLineEnding`) or markdown space (see `markdownSpace`).\n *\n * @param {Code} code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport function markdownLineEndingOrSpace(code) {\n return code !== null && (code < 0 || code === 32);\n}\n\n/**\n * Check whether a character code is a markdown space.\n *\n * A **markdown space** is the concrete character U+0020 SPACE (SP) and the\n * virtual characters M-0001 VIRTUAL SPACE (VS) and M-0002 HORIZONTAL TAB (HT).\n *\n * In micromark, the actual character U+0009 CHARACTER TABULATION (HT) is\n * replaced by one M-0002 HORIZONTAL TAB (HT) and between 0 and 3 M-0001 VIRTUAL\n * SPACE (VS) characters, depending on the column at which the tab occurred.\n *\n * @param {Code} code\n * Code.\n * @returns {boolean}\n * Whether it matches.\n */\nexport function markdownSpace(code) {\n return code === -2 || code === -1 || code === 32;\n}\n\n// Size note: removing ASCII from the regex and using `asciiPunctuation` here\n// In fact adds to the bundle size.\n/**\n * Check whether the character code represents Unicode punctuation.\n *\n * A **Unicode punctuation** is a character in the Unicode `Pc` (Punctuation,\n * Connector), `Pd` (Punctuation, Dash), `Pe` (Punctuation, Close), `Pf`\n * (Punctuation, Final quote), `Pi` (Punctuation, Initial quote), `Po`\n * (Punctuation, Other), or `Ps` (Punctuation, Open) categories, or an ASCII\n * punctuation (see `asciiPunctuation`).\n *\n * See:\n * **\\[UNICODE]**:\n * [The Unicode Standard](https://www.unicode.org/versions/).\n * Unicode Consortium.\n *\n * @param code\n * Code.\n * @returns\n * Whether it matches.\n */\nexport const unicodePunctuation = regexCheck(/\\p{P}|\\p{S}/u);\n\n/**\n * Check whether the character code represents Unicode whitespace.\n *\n * Note that this does handle micromark specific markdown whitespace characters.\n * See `markdownLineEndingOrSpace` to check that.\n *\n * A **Unicode whitespace** is a character in the Unicode `Zs` (Separator,\n * Space) category, or U+0009 CHARACTER TABULATION (HT), U+000A LINE FEED (LF),\n * U+000C (FF), or U+000D CARRIAGE RETURN (CR) (**\\[UNICODE]**).\n *\n * See:\n * **\\[UNICODE]**:\n * [The Unicode Standard](https://www.unicode.org/versions/).\n * Unicode Consortium.\n *\n * @param code\n * Code.\n * @returns\n * Whether it matches.\n */\nexport const unicodeWhitespace = regexCheck(/\\s/);\n\n/**\n * Create a code check from a regex.\n *\n * @param {RegExp} regex\n * Expression.\n * @returns {(code: Code) => boolean}\n * Check.\n */\nfunction regexCheck(regex) {\n return check;\n\n /**\n * Check whether a code matches the bound regex.\n *\n * @param {Code} code\n * Character code.\n * @returns {boolean}\n * Whether the character code matches the bound regex.\n */\n function check(code) {\n return code !== null && code > -1 && regex.test(String.fromCharCode(code));\n }\n}"],"x_google_ignoreList":[0],"mappings":";AAqBA,IAAa,IAAa,EAAW,WAAW,EAcnC,IAAoB,EAAW,aAAa,EAuB5C,IAAa,EAAW,sBAAsB;AAa3D,SAAgB,EAAa,GAAM;AACjC,QAGE,MAAS,SAAS,IAAO,MAAM,MAAS;;AAe5C,IAAa,IAAa,EAAW,KAAK,EAoB7B,IAAgB,EAAW,aAAa,EAexC,IAAmB,EAAW,iBAAiB;AAiB5D,SAAgB,EAAmB,GAAM;AACvC,QAAO,MAAS,QAAQ,IAAO;;AAYjC,SAAgB,EAA0B,GAAM;AAC9C,QAAO,MAAS,SAAS,IAAO,KAAK,MAAS;;AAkBhD,SAAgB,EAAc,GAAM;AAClC,QAAO,MAAS,MAAM,MAAS,MAAM,MAAS;;AAwBhD,IAAa,IAAqB,EAAW,eAAe,EAsB/C,IAAoB,EAAW,KAAK;AAUjD,SAAS,EAAW,GAAO;AACzB,QAAO;CAUP,SAAS,EAAM,GAAM;AACnB,SAAO,MAAS,QAAQ,IAAO,MAAM,EAAM,KAAK,OAAO,aAAa,EAAK,CAAC"}
@@ -0,0 +1,13 @@
1
+ //#region node_modules/micromark-util-chunked/index.js
2
+ function e(e, t, n, r) {
3
+ let i = e.length, a = 0, o;
4
+ 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);
5
+ else for (n && e.splice(t, n); a < r.length;) o = r.slice(a, a + 1e4), o.unshift(t, 0), e.splice(...o), a += 1e4, t += 1e4;
6
+ }
7
+ function t(t, n) {
8
+ return t.length > 0 ? (e(t, t.length, 0, n), t) : n;
9
+ }
10
+ //#endregion
11
+ export { t as push, e as splice };
12
+
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/micromark-util-chunked/index.js"],"sourcesContent":["/**\n * Like `Array#splice`, but smarter for giant arrays.\n *\n * `Array#splice` takes all items to be inserted as individual argument which\n * causes a stack overflow in V8 when trying to insert 100k items for instance.\n *\n * Otherwise, this does not return the removed items, and takes `items` as an\n * array instead of rest parameters.\n *\n * @template {unknown} T\n * Item type.\n * @param {Array<T>} list\n * List to operate on.\n * @param {number} start\n * Index to remove/insert at (can be negative).\n * @param {number} remove\n * Number of items to remove.\n * @param {Array<T>} items\n * Items to inject into `list`.\n * @returns {undefined}\n * Nothing.\n */\nexport function splice(list, start, remove, items) {\n const end = list.length;\n let chunkStart = 0;\n /** @type {Array<unknown>} */\n let parameters;\n\n // Make start between zero and `end` (included).\n if (start < 0) {\n start = -start > end ? 0 : end + start;\n } else {\n start = start > end ? end : start;\n }\n remove = remove > 0 ? remove : 0;\n\n // No need to chunk the items if there’s only a couple (10k) items.\n if (items.length < 10000) {\n parameters = Array.from(items);\n parameters.unshift(start, remove);\n // @ts-expect-error Hush, it’s fine.\n list.splice(...parameters);\n } else {\n // Delete `remove` items starting from `start`\n if (remove) list.splice(start, remove);\n\n // Insert the items in chunks to not cause stack overflows.\n while (chunkStart < items.length) {\n parameters = items.slice(chunkStart, chunkStart + 10000);\n parameters.unshift(start, 0);\n // @ts-expect-error Hush, it’s fine.\n list.splice(...parameters);\n chunkStart += 10000;\n start += 10000;\n }\n }\n}\n\n/**\n * Append `items` (an array) at the end of `list` (another array).\n * When `list` was empty, returns `items` instead.\n *\n * This prevents a potentially expensive operation when `list` is empty,\n * and adds items in batches to prevent V8 from hanging.\n *\n * @template {unknown} T\n * Item type.\n * @param {Array<T>} list\n * List to operate on.\n * @param {Array<T>} items\n * Items to add to `list`.\n * @returns {Array<T>}\n * Either `list` or `items`.\n */\nexport function push(list, items) {\n if (list.length > 0) {\n splice(list, list.length, 0, items);\n return list;\n }\n return items;\n}"],"x_google_ignoreList":[0],"mappings":";AAsBA,SAAgB,EAAO,GAAM,GAAO,GAAQ,GAAO;CACjD,IAAM,IAAM,EAAK,QACb,IAAa,GAEb;AAWJ,KARA,AAGE,IAHE,IAAQ,IACF,CAAC,IAAQ,IAAM,IAAI,IAAM,IAEzB,IAAQ,IAAM,IAAM,GAE9B,IAAS,IAAS,IAAI,IAAS,GAG3B,EAAM,SAAS,IAIjB,CAHA,IAAa,MAAM,KAAK,EAAM,EAC9B,EAAW,QAAQ,GAAO,EAAO,EAEjC,EAAK,OAAO,GAAG,EAAW;KAM1B,MAHI,KAAQ,EAAK,OAAO,GAAO,EAAO,EAG/B,IAAa,EAAM,QAMxB,CALA,IAAa,EAAM,MAAM,GAAY,IAAa,IAAM,EACxD,EAAW,QAAQ,GAAO,EAAE,EAE5B,EAAK,OAAO,GAAG,EAAW,EAC1B,KAAc,KACd,KAAS;;AAqBf,SAAgB,EAAK,GAAM,GAAO;AAKhC,QAJI,EAAK,SAAS,KAChB,EAAO,GAAM,EAAK,QAAQ,GAAG,EAAM,EAC5B,KAEF"}
@@ -0,0 +1,10 @@
1
+ import { markdownLineEndingOrSpace as e, unicodePunctuation as t, unicodeWhitespace as n } from "../micromark-util-character/index.js";
2
+ //#region node_modules/micromark-util-classify-character/index.js
3
+ function r(r) {
4
+ if (r === null || e(r) || n(r)) return 1;
5
+ if (t(r)) return 2;
6
+ }
7
+ //#endregion
8
+ export { r as classifyCharacter };
9
+
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/micromark-util-classify-character/index.js"],"sourcesContent":["/**\n * @import {Code} from 'micromark-util-types'\n */\n\nimport { markdownLineEndingOrSpace, unicodePunctuation, unicodeWhitespace } from 'micromark-util-character';\n/**\n * Classify whether a code represents whitespace, punctuation, or something\n * else.\n *\n * Used for attention (emphasis, strong), whose sequences can open or close\n * based on the class of surrounding characters.\n *\n * > 👉 **Note**: eof (`null`) is seen as whitespace.\n *\n * @param {Code} code\n * Code.\n * @returns {typeof constants.characterGroupWhitespace | typeof constants.characterGroupPunctuation | undefined}\n * Group.\n */\nexport function classifyCharacter(code) {\n if (code === null || markdownLineEndingOrSpace(code) || unicodeWhitespace(code)) {\n return 1;\n }\n if (unicodePunctuation(code)) {\n return 2;\n }\n}"],"x_google_ignoreList":[0],"mappings":";;AAmBA,SAAgB,EAAkB,GAAM;AACtC,KAAI,MAAS,QAAQ,EAA0B,EAAK,IAAI,EAAkB,EAAK,CAC7E,QAAO;AAET,KAAI,EAAmB,EAAK,CAC1B,QAAO"}
@@ -0,0 +1,28 @@
1
+ import { splice as e } from "../micromark-util-chunked/index.js";
2
+ //#region node_modules/micromark-util-combine-extensions/index.js
3
+ var t = {}.hasOwnProperty;
4
+ function n(e) {
5
+ let t = {}, n = -1;
6
+ for (; ++n < e.length;) r(t, e[n]);
7
+ return t;
8
+ }
9
+ function r(e, n) {
10
+ let r;
11
+ for (r in n) {
12
+ let a = (t.call(e, r) ? e[r] : void 0) || (e[r] = {}), o = n[r], s;
13
+ if (o) for (s in o) {
14
+ t.call(a, s) || (a[s] = []);
15
+ let e = o[s];
16
+ i(a[s], Array.isArray(e) ? e : e ? [e] : []);
17
+ }
18
+ }
19
+ }
20
+ function i(t, n) {
21
+ let r = -1, i = [];
22
+ for (; ++r < n.length;) (n[r].add === "after" ? t : i).push(n[r]);
23
+ e(t, 0, 0, i);
24
+ }
25
+ //#endregion
26
+ export { n as combineExtensions };
27
+
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/micromark-util-combine-extensions/index.js"],"sourcesContent":["/**\n * @import {\n * Extension,\n * Handles,\n * HtmlExtension,\n * NormalizedExtension\n * } from 'micromark-util-types'\n */\n\nimport {splice} from 'micromark-util-chunked'\n\nconst hasOwnProperty = {}.hasOwnProperty\n\n/**\n * Combine multiple syntax extensions into one.\n *\n * @param {ReadonlyArray<Extension>} extensions\n * List of syntax extensions.\n * @returns {NormalizedExtension}\n * A single combined extension.\n */\nexport function combineExtensions(extensions) {\n /** @type {NormalizedExtension} */\n const all = {}\n let index = -1\n\n while (++index < extensions.length) {\n syntaxExtension(all, extensions[index])\n }\n\n return all\n}\n\n/**\n * Merge `extension` into `all`.\n *\n * @param {NormalizedExtension} all\n * Extension to merge into.\n * @param {Extension} extension\n * Extension to merge.\n * @returns {undefined}\n * Nothing.\n */\nfunction syntaxExtension(all, extension) {\n /** @type {keyof Extension} */\n let hook\n\n for (hook in extension) {\n const maybe = hasOwnProperty.call(all, hook) ? all[hook] : undefined\n /** @type {Record<string, unknown>} */\n const left = maybe || (all[hook] = {})\n /** @type {Record<string, unknown> | undefined} */\n const right = extension[hook]\n /** @type {string} */\n let code\n\n if (right) {\n for (code in right) {\n if (!hasOwnProperty.call(left, code)) left[code] = []\n const value = right[code]\n constructs(\n // @ts-expect-error Looks like a list.\n left[code],\n Array.isArray(value) ? value : value ? [value] : []\n )\n }\n }\n }\n}\n\n/**\n * Merge `list` into `existing` (both lists of constructs).\n * Mutates `existing`.\n *\n * @param {Array<unknown>} existing\n * List of constructs to merge into.\n * @param {Array<unknown>} list\n * List of constructs to merge.\n * @returns {undefined}\n * Nothing.\n */\nfunction constructs(existing, list) {\n let index = -1\n /** @type {Array<unknown>} */\n const before = []\n\n while (++index < list.length) {\n // @ts-expect-error Looks like an object.\n ;(list[index].add === 'after' ? existing : before).push(list[index])\n }\n\n splice(existing, 0, 0, before)\n}\n\n/**\n * Combine multiple HTML extensions into one.\n *\n * @param {ReadonlyArray<HtmlExtension>} htmlExtensions\n * List of HTML extensions.\n * @returns {HtmlExtension}\n * Single combined HTML extension.\n */\nexport function combineHtmlExtensions(htmlExtensions) {\n /** @type {HtmlExtension} */\n const handlers = {}\n let index = -1\n\n while (++index < htmlExtensions.length) {\n htmlExtension(handlers, htmlExtensions[index])\n }\n\n return handlers\n}\n\n/**\n * Merge `extension` into `all`.\n *\n * @param {HtmlExtension} all\n * Extension to merge into.\n * @param {HtmlExtension} extension\n * Extension to merge.\n * @returns {undefined}\n * Nothing.\n */\nfunction htmlExtension(all, extension) {\n /** @type {keyof HtmlExtension} */\n let hook\n\n for (hook in extension) {\n const maybe = hasOwnProperty.call(all, hook) ? all[hook] : undefined\n const left = maybe || (all[hook] = {})\n const right = extension[hook]\n /** @type {keyof Handles} */\n let type\n\n if (right) {\n for (type in right) {\n // @ts-expect-error assume document vs regular handler are managed correctly.\n left[type] = right[type]\n }\n }\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAWA,IAAM,IAAiB,EAAE,CAAC;AAU1B,SAAgB,EAAkB,GAAY;CAE5C,IAAM,IAAM,EAAE,EACV,IAAQ;AAEZ,QAAO,EAAE,IAAQ,EAAW,QAC1B,GAAgB,GAAK,EAAW,GAAO;AAGzC,QAAO;;AAaT,SAAS,EAAgB,GAAK,GAAW;CAEvC,IAAI;AAEJ,MAAK,KAAQ,GAAW;EAGtB,IAAM,KAFQ,EAAe,KAAK,GAAK,EAAK,GAAG,EAAI,KAAQ,KAAA,OAEpC,EAAI,KAAQ,EAAE,GAE/B,IAAQ,EAAU,IAEpB;AAEJ,MAAI,EACF,MAAK,KAAQ,GAAO;AAClB,GAAK,EAAe,KAAK,GAAM,EAAK,KAAE,EAAK,KAAQ,EAAE;GACrD,IAAM,IAAQ,EAAM;AACpB,KAEE,EAAK,IACL,MAAM,QAAQ,EAAM,GAAG,IAAQ,IAAQ,CAAC,EAAM,GAAG,EAAE,CACpD;;;;AAiBT,SAAS,EAAW,GAAU,GAAM;CAClC,IAAI,IAAQ,IAEN,IAAS,EAAE;AAEjB,QAAO,EAAE,IAAQ,EAAK,QAEnB,EAAC,EAAK,GAAO,QAAQ,UAAU,IAAW,GAAQ,KAAK,EAAK,GAAO;AAGtE,GAAO,GAAU,GAAG,GAAG,EAAO"}
@@ -0,0 +1,9 @@
1
+ //#region node_modules/micromark-util-decode-numeric-character-reference/index.js
2
+ function e(e, t) {
3
+ let n = Number.parseInt(e, t);
4
+ return n < 9 || n === 11 || n > 13 && n < 32 || n > 126 && n < 160 || n > 55295 && n < 57344 || n > 64975 && n < 65008 || (n & 65535) == 65535 || (n & 65535) == 65534 || n > 1114111 ? "�" : String.fromCodePoint(n);
5
+ }
6
+ //#endregion
7
+ export { e as decodeNumericCharacterReference };
8
+
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/micromark-util-decode-numeric-character-reference/index.js"],"sourcesContent":["/**\n * Turn the number (in string form as either hexa- or plain decimal) coming from\n * a numeric character reference into a character.\n *\n * Sort of like `String.fromCodePoint(Number.parseInt(value, base))`, but makes\n * non-characters and control characters safe.\n *\n * @param {string} value\n * Value to decode.\n * @param {number} base\n * Numeric base.\n * @returns {string}\n * Character.\n */\nexport function decodeNumericCharacterReference(value, base) {\n const code = Number.parseInt(value, base);\n if (\n // C0 except for HT, LF, FF, CR, space.\n code < 9 || code === 11 || code > 13 && code < 32 ||\n // Control character (DEL) of C0, and C1 controls.\n code > 126 && code < 160 ||\n // Lone high surrogates and low surrogates.\n code > 55_295 && code < 57_344 ||\n // Noncharacters.\n code > 64_975 && code < 65_008 || /* eslint-disable no-bitwise */\n (code & 65_535) === 65_535 || (code & 65_535) === 65_534 || /* eslint-enable no-bitwise */\n // Out of range\n code > 1_114_111) {\n return \"\\uFFFD\";\n }\n return String.fromCodePoint(code);\n}"],"x_google_ignoreList":[0],"mappings":";AAcA,SAAgB,EAAgC,GAAO,GAAM;CAC3D,IAAM,IAAO,OAAO,SAAS,GAAO,EAAK;AAezC,QAZA,IAAO,KAAK,MAAS,MAAM,IAAO,MAAM,IAAO,MAE/C,IAAO,OAAO,IAAO,OAErB,IAAO,SAAU,IAAO,SAExB,IAAO,SAAU,IAAO,UACvB,IAAO,UAAY,UAAW,IAAO,UAAY,SAElD,IAAO,UACE,MAEF,OAAO,cAAc,EAAK"}
@@ -0,0 +1,19 @@
1
+ import { decodeNamedCharacterReference as e } from "../decode-named-character-reference/index.dom.js";
2
+ import { decodeNumericCharacterReference as t } from "../micromark-util-decode-numeric-character-reference/index.js";
3
+ //#region node_modules/micromark-util-decode-string/index.js
4
+ var n = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
5
+ function r(e) {
6
+ return e.replace(n, i);
7
+ }
8
+ function i(n, r, i) {
9
+ if (r) return r;
10
+ if (i.charCodeAt(0) === 35) {
11
+ let e = i.charCodeAt(1), n = e === 120 || e === 88;
12
+ return t(i.slice(n ? 2 : 1), n ? 16 : 10);
13
+ }
14
+ return e(i) || n;
15
+ }
16
+ //#endregion
17
+ export { r as decodeString };
18
+
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/micromark-util-decode-string/index.js"],"sourcesContent":["import { decodeNamedCharacterReference } from 'decode-named-character-reference';\nimport { decodeNumericCharacterReference } from 'micromark-util-decode-numeric-character-reference';\nconst characterEscapeOrReference = /\\\\([!-/:-@[-`{-~])|&(#(?:\\d{1,7}|x[\\da-f]{1,6})|[\\da-z]{1,31});/gi;\n\n/**\n * Decode markdown strings (which occur in places such as fenced code info\n * strings, destinations, labels, and titles).\n *\n * The “string” content type allows character escapes and -references.\n * This decodes those.\n *\n * @param {string} value\n * Value to decode.\n * @returns {string}\n * Decoded value.\n */\nexport function decodeString(value) {\n return value.replace(characterEscapeOrReference, decode);\n}\n\n/**\n * @param {string} $0\n * Match.\n * @param {string} $1\n * Character escape.\n * @param {string} $2\n * Character reference.\n * @returns {string}\n * Decoded value\n */\nfunction decode($0, $1, $2) {\n if ($1) {\n // Escape.\n return $1;\n }\n\n // Reference.\n const head = $2.charCodeAt(0);\n if (head === 35) {\n const head = $2.charCodeAt(1);\n const hex = head === 120 || head === 88;\n return decodeNumericCharacterReference($2.slice(hex ? 2 : 1), hex ? 16 : 10);\n }\n return decodeNamedCharacterReference($2) || $0;\n}"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAM,IAA6B;AAcnC,SAAgB,EAAa,GAAO;AAClC,QAAO,EAAM,QAAQ,GAA4B,EAAO;;AAa1D,SAAS,EAAO,GAAI,GAAI,GAAI;AAC1B,KAAI,EAEF,QAAO;AAKT,KADa,EAAG,WAAW,EAAE,KAChB,IAAI;EACf,IAAM,IAAO,EAAG,WAAW,EAAE,EACvB,IAAM,MAAS,OAAO,MAAS;AACrC,SAAO,EAAgC,EAAG,MAAM,IAAM,IAAI,EAAE,EAAE,IAAM,KAAK,GAAG;;AAE9E,QAAO,EAA8B,EAAG,IAAI"}
@@ -0,0 +1,11 @@
1
+ //#region node_modules/micromark-util-html-tag-name/index.js
2
+ var e = /* @__PURE__ */ "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".split("."), t = [
3
+ "pre",
4
+ "script",
5
+ "style",
6
+ "textarea"
7
+ ];
8
+ //#endregion
9
+ export { e as htmlBlockNames, t as htmlRawNames };
10
+
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/micromark-util-html-tag-name/index.js"],"sourcesContent":["/**\n * List of lowercase HTML “block” tag names.\n *\n * The list, when parsing HTML (flow), results in more relaxed rules (condition\n * 6).\n * Because they are known blocks, the HTML-like syntax doesn’t have to be\n * strictly parsed.\n * For tag names not in this list, a more strict algorithm (condition 7) is used\n * to detect whether the HTML-like syntax is seen as HTML (flow) or not.\n *\n * This is copied from:\n * <https://spec.commonmark.org/0.30/#html-blocks>.\n *\n * > 👉 **Note**: `search` was added in `CommonMark@0.31`.\n */\nexport const htmlBlockNames = [\n 'address',\n 'article',\n 'aside',\n 'base',\n 'basefont',\n 'blockquote',\n 'body',\n 'caption',\n 'center',\n 'col',\n 'colgroup',\n 'dd',\n 'details',\n 'dialog',\n 'dir',\n 'div',\n 'dl',\n 'dt',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'footer',\n 'form',\n 'frame',\n 'frameset',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'head',\n 'header',\n 'hr',\n 'html',\n 'iframe',\n 'legend',\n 'li',\n 'link',\n 'main',\n 'menu',\n 'menuitem',\n 'nav',\n 'noframes',\n 'ol',\n 'optgroup',\n 'option',\n 'p',\n 'param',\n 'search',\n 'section',\n 'summary',\n 'table',\n 'tbody',\n 'td',\n 'tfoot',\n 'th',\n 'thead',\n 'title',\n 'tr',\n 'track',\n 'ul'\n]\n\n/**\n * List of lowercase HTML “raw” tag names.\n *\n * The list, when parsing HTML (flow), results in HTML that can include lines\n * without exiting, until a closing tag also in this list is found (condition\n * 1).\n *\n * This module is copied from:\n * <https://spec.commonmark.org/0.30/#html-blocks>.\n *\n * > 👉 **Note**: `textarea` was added in `CommonMark@0.30`.\n */\nexport const htmlRawNames = ['pre', 'script', 'style', 'textarea']\n"],"x_google_ignoreList":[0],"mappings":";AAeA,IAAa,IAAiB,gYA+D7B,EAcY,IAAe;CAAC;CAAO;CAAU;CAAS;CAAW"}
@@ -0,0 +1,8 @@
1
+ //#region node_modules/micromark-util-normalize-identifier/index.js
2
+ function e(e) {
3
+ return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
4
+ }
5
+ //#endregion
6
+ export { e as normalizeIdentifier };
7
+
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/micromark-util-normalize-identifier/index.js"],"sourcesContent":["/**\n * Normalize an identifier (as found in references, definitions).\n *\n * Collapses markdown whitespace, trim, and then lower- and uppercase.\n *\n * Some characters are considered “uppercase”, such as U+03F4 (`ϴ`), but if their\n * lowercase counterpart (U+03B8 (`θ`)) is uppercased will result in a different\n * uppercase character (U+0398 (`Θ`)).\n * So, to get a canonical form, we perform both lower- and uppercase.\n *\n * Using uppercase last makes sure keys will never interact with default\n * prototypal values (such as `constructor`): nothing in the prototype of\n * `Object` is uppercase.\n *\n * @param {string} value\n * Identifier to normalize.\n * @returns {string}\n * Normalized identifier.\n */\nexport function normalizeIdentifier(value) {\n return value\n // Collapse markdown whitespace.\n .replace(/[\\t\\n\\r ]+/g, \" \")\n // Trim.\n .replace(/^ | $/g, '')\n // Some characters are considered “uppercase”, but if their lowercase\n // counterpart is uppercased will result in a different uppercase\n // character.\n // Hence, to get that form, we perform both lower- and uppercase.\n // Upper case makes sure keys will not interact with default prototypal\n // methods: no method is uppercase.\n .toLowerCase().toUpperCase();\n}"],"x_google_ignoreList":[0],"mappings":";AAmBA,SAAgB,EAAoB,GAAO;AACzC,QAAO,EAEN,QAAQ,eAAe,IAAI,CAE3B,QAAQ,UAAU,GAAG,CAOrB,aAAa,CAAC,aAAa"}
@@ -0,0 +1,13 @@
1
+ //#region node_modules/micromark-util-resolve-all/index.js
2
+ function e(e, t, n) {
3
+ let r = [], i = -1;
4
+ for (; ++i < e.length;) {
5
+ let a = e[i].resolveAll;
6
+ a && !r.includes(a) && (t = a(t, n), r.push(a));
7
+ }
8
+ return t;
9
+ }
10
+ //#endregion
11
+ export { e as resolveAll };
12
+
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/micromark-util-resolve-all/index.js"],"sourcesContent":["/**\n * @import {Event, Resolver, TokenizeContext} from 'micromark-util-types'\n */\n\n/**\n * Call all `resolveAll`s.\n *\n * @param {ReadonlyArray<{resolveAll?: Resolver | undefined}>} constructs\n * List of constructs, optionally with `resolveAll`s.\n * @param {Array<Event>} events\n * List of events.\n * @param {TokenizeContext} context\n * Context used by `tokenize`.\n * @returns {Array<Event>}\n * Changed events.\n */\nexport function resolveAll(constructs, events, context) {\n /** @type {Array<Resolver>} */\n const called = []\n let index = -1\n\n while (++index < constructs.length) {\n const resolve = constructs[index].resolveAll\n\n if (resolve && !called.includes(resolve)) {\n events = resolve(events, context)\n called.push(resolve)\n }\n }\n\n return events\n}\n"],"x_google_ignoreList":[0],"mappings":";AAgBA,SAAgB,EAAW,GAAY,GAAQ,GAAS;CAEtD,IAAM,IAAS,EAAE,EACb,IAAQ;AAEZ,QAAO,EAAE,IAAQ,EAAW,SAAQ;EAClC,IAAM,IAAU,EAAW,GAAO;AAElC,EAAI,KAAW,CAAC,EAAO,SAAS,EAAQ,KACtC,IAAS,EAAQ,GAAQ,EAAQ,EACjC,EAAO,KAAK,EAAQ;;AAIxB,QAAO"}
@@ -0,0 +1,20 @@
1
+ import { asciiAlphanumeric as e } from "../micromark-util-character/index.js";
2
+ //#region node_modules/micromark-util-sanitize-uri/index.js
3
+ function t(t) {
4
+ let n = [], r = -1, i = 0, a = 0;
5
+ for (; ++r < t.length;) {
6
+ let o = t.charCodeAt(r), s = "";
7
+ if (o === 37 && e(t.charCodeAt(r + 1)) && e(t.charCodeAt(r + 2))) a = 2;
8
+ else if (o < 128) /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o)) || (s = String.fromCharCode(o));
9
+ else if (o > 55295 && o < 57344) {
10
+ let e = t.charCodeAt(r + 1);
11
+ o < 56320 && e > 56319 && e < 57344 ? (s = String.fromCharCode(o, e), a = 1) : s = "�";
12
+ } else s = String.fromCharCode(o);
13
+ s &&= (n.push(t.slice(i, r), encodeURIComponent(s)), i = r + a + 1, ""), a &&= (r += a, 0);
14
+ }
15
+ return n.join("") + t.slice(i);
16
+ }
17
+ //#endregion
18
+ export { t as normalizeUri };
19
+
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/micromark-util-sanitize-uri/index.js"],"sourcesContent":["import { asciiAlphanumeric } from 'micromark-util-character';\nimport { encode } from 'micromark-util-encode';\n/**\n * Make a value safe for injection as a URL.\n *\n * This encodes unsafe characters with percent-encoding and skips already\n * encoded sequences (see `normalizeUri`).\n * Further unsafe characters are encoded as character references (see\n * `micromark-util-encode`).\n *\n * A regex of allowed protocols can be given, in which case the URL is\n * sanitized.\n * For example, `/^(https?|ircs?|mailto|xmpp)$/i` can be used for `a[href]`, or\n * `/^https?$/i` for `img[src]` (this is what `github.com` allows).\n * If the URL includes an unknown protocol (one not matched by `protocol`, such\n * as a dangerous example, `javascript:`), the value is ignored.\n *\n * @param {string | null | undefined} url\n * URI to sanitize.\n * @param {RegExp | null | undefined} [protocol]\n * Allowed protocols.\n * @returns {string}\n * Sanitized URI.\n */\nexport function sanitizeUri(url, protocol) {\n const value = encode(normalizeUri(url || ''));\n if (!protocol) {\n return value;\n }\n const colon = value.indexOf(':');\n const questionMark = value.indexOf('?');\n const numberSign = value.indexOf('#');\n const slash = value.indexOf('/');\n if (\n // If there is no protocol, it’s relative.\n colon < 0 ||\n // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.\n slash > -1 && colon > slash || questionMark > -1 && colon > questionMark || numberSign > -1 && colon > numberSign ||\n // It is a protocol, it should be allowed.\n protocol.test(value.slice(0, colon))) {\n return value;\n }\n return '';\n}\n\n/**\n * Normalize a URL.\n *\n * Encode unsafe characters with percent-encoding, skipping already encoded\n * sequences.\n *\n * @param {string} value\n * URI to normalize.\n * @returns {string}\n * Normalized URI.\n */\nexport function normalizeUri(value) {\n /** @type {Array<string>} */\n const result = [];\n let index = -1;\n let start = 0;\n let skip = 0;\n while (++index < value.length) {\n const code = value.charCodeAt(index);\n /** @type {string} */\n let replace = '';\n\n // A correct percent encoded value.\n if (code === 37 && asciiAlphanumeric(value.charCodeAt(index + 1)) && asciiAlphanumeric(value.charCodeAt(index + 2))) {\n skip = 2;\n }\n // ASCII.\n else if (code < 128) {\n if (!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(code))) {\n replace = String.fromCharCode(code);\n }\n }\n // Astral.\n else if (code > 55_295 && code < 57_344) {\n const next = value.charCodeAt(index + 1);\n\n // A correct surrogate pair.\n if (code < 56_320 && next > 56_319 && next < 57_344) {\n replace = String.fromCharCode(code, next);\n skip = 1;\n }\n // Lone surrogate.\n else {\n replace = \"\\uFFFD\";\n }\n }\n // Unicode.\n else {\n replace = String.fromCharCode(code);\n }\n if (replace) {\n result.push(value.slice(start, index), encodeURIComponent(replace));\n start = index + skip + 1;\n replace = '';\n }\n if (skip) {\n index += skip;\n skip = 0;\n }\n }\n return result.join('') + value.slice(start);\n}"],"x_google_ignoreList":[0],"mappings":";;AAwDA,SAAgB,EAAa,GAAO;CAElC,IAAM,IAAS,EAAE,EACb,IAAQ,IACR,IAAQ,GACR,IAAO;AACX,QAAO,EAAE,IAAQ,EAAM,SAAQ;EAC7B,IAAM,IAAO,EAAM,WAAW,EAAM,EAEhC,IAAU;AAGd,MAAI,MAAS,MAAM,EAAkB,EAAM,WAAW,IAAQ,EAAE,CAAC,IAAI,EAAkB,EAAM,WAAW,IAAQ,EAAE,CAAC,CACjH,KAAO;WAGA,IAAO,KACT,oBAAoB,KAAK,OAAO,aAAa,EAAK,CAAC,KACtD,IAAU,OAAO,aAAa,EAAK;WAI9B,IAAO,SAAU,IAAO,OAAQ;GACvC,IAAM,IAAO,EAAM,WAAW,IAAQ,EAAE;AAGxC,GAAI,IAAO,SAAU,IAAO,SAAU,IAAO,SAC3C,IAAU,OAAO,aAAa,GAAM,EAAK,EACzC,IAAO,KAIP,IAAU;QAKZ,KAAU,OAAO,aAAa,EAAK;AAOrC,EALA,AAGE,OAFA,EAAO,KAAK,EAAM,MAAM,GAAO,EAAM,EAAE,mBAAmB,EAAQ,CAAC,EACnE,IAAQ,IAAQ,IAAO,GACb,KAEZ,AAEE,OADA,KAAS,GACF;;AAGX,QAAO,EAAO,KAAK,GAAG,GAAG,EAAM,MAAM,EAAM"}
@@ -0,0 +1,37 @@
1
+ import { splice as e } from "../micromark-util-chunked/index.js";
2
+ import { SpliceBuffer as t } from "./lib/splice-buffer.js";
3
+ //#region node_modules/micromark-util-subtokenize/index.js
4
+ function n(n) {
5
+ let i = {}, a = -1, o, s, c, l, u, d, f, p = new t(n);
6
+ for (; ++a < p.length;) {
7
+ for (; a in i;) a = i[a];
8
+ if (o = p.get(a), a && o[1].type === "chunkFlow" && p.get(a - 1)[1].type === "listItemPrefix" && (d = o[1]._tokenizer.events, c = 0, c < d.length && d[c][1].type === "lineEndingBlank" && (c += 2), c < d.length && d[c][1].type === "content")) for (; ++c < d.length && d[c][1].type !== "content";) d[c][1].type === "chunkText" && (d[c][1]._isInFirstContentOfListItem = !0, c++);
9
+ if (o[0] === "enter") o[1].contentType && (Object.assign(i, r(p, a)), a = i[a], f = !0);
10
+ else if (o[1]._container) {
11
+ for (c = a, s = void 0; c--;) if (l = p.get(c), l[1].type === "lineEnding" || l[1].type === "lineEndingBlank") l[0] === "enter" && (s && (p.get(s)[1].type = "lineEndingBlank"), l[1].type = "lineEnding", s = c);
12
+ else if (!(l[1].type === "linePrefix" || l[1].type === "listItemIndent")) break;
13
+ s && (o[1].end = { ...p.get(s)[1].start }, u = p.slice(s, a), u.unshift(o), p.splice(s, a - s + 1, u));
14
+ }
15
+ }
16
+ return e(n, 0, Infinity, p.slice(0)), !f;
17
+ }
18
+ function r(e, t) {
19
+ let n = e.get(t)[1], r = e.get(t)[2], i = t - 1, a = [], o = n._tokenizer;
20
+ o || (o = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (o._contentTypeTextTrailing = !0));
21
+ let s = o.events, c = [], l = {}, u, d, f = -1, p = n, m = 0, h = 0, g = [h];
22
+ for (; p;) {
23
+ for (; e.get(++i)[1] !== p;);
24
+ a.push(i), p._tokenizer || (u = r.sliceStream(p), p.next || u.push(null), d && o.defineSkip(p.start), p._isInFirstContentOfListItem && (o._gfmTasklistFirstContentOfListItem = !0), o.write(u), p._isInFirstContentOfListItem && (o._gfmTasklistFirstContentOfListItem = void 0)), d = p, p = p.next;
25
+ }
26
+ for (p = n; ++f < s.length;) s[f][0] === "exit" && s[f - 1][0] === "enter" && s[f][1].type === s[f - 1][1].type && s[f][1].start.line !== s[f][1].end.line && (h = f + 1, g.push(h), p._tokenizer = void 0, p.previous = void 0, p = p.next);
27
+ for (o.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : g.pop(), f = g.length; f--;) {
28
+ let t = s.slice(g[f], g[f + 1]), n = a.pop();
29
+ c.push([n, n + t.length - 1]), e.splice(n, 2, t);
30
+ }
31
+ for (c.reverse(), f = -1; ++f < c.length;) l[m + c[f][0]] = m + c[f][1], m += c[f][1] - c[f][0] - 1;
32
+ return l;
33
+ }
34
+ //#endregion
35
+ export { n as subtokenize };
36
+
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/micromark-util-subtokenize/index.js"],"sourcesContent":["/**\n * @import {Chunk, Event, Token} from 'micromark-util-types'\n */\n\nimport { splice } from 'micromark-util-chunked';\nimport { SpliceBuffer } from './lib/splice-buffer.js';\n\n// Hidden API exposed for testing.\nexport { SpliceBuffer } from './lib/splice-buffer.js';\n\n/**\n * Tokenize subcontent.\n *\n * @param {Array<Event>} eventsArray\n * List of events.\n * @returns {boolean}\n * Whether subtokens were found.\n */\n// eslint-disable-next-line complexity\nexport function subtokenize(eventsArray) {\n /** @type {Record<string, number>} */\n const jumps = {};\n let index = -1;\n /** @type {Event} */\n let event;\n /** @type {number | undefined} */\n let lineIndex;\n /** @type {number} */\n let otherIndex;\n /** @type {Event} */\n let otherEvent;\n /** @type {Array<Event>} */\n let parameters;\n /** @type {Array<Event>} */\n let subevents;\n /** @type {boolean | undefined} */\n let more;\n const events = new SpliceBuffer(eventsArray);\n while (++index < events.length) {\n while (index in jumps) {\n index = jumps[index];\n }\n event = events.get(index);\n\n // Add a hook for the GFM tasklist extension, which needs to know if text\n // is in the first content of a list item.\n if (index && event[1].type === \"chunkFlow\" && events.get(index - 1)[1].type === \"listItemPrefix\") {\n subevents = event[1]._tokenizer.events;\n otherIndex = 0;\n if (otherIndex < subevents.length && subevents[otherIndex][1].type === \"lineEndingBlank\") {\n otherIndex += 2;\n }\n if (otherIndex < subevents.length && subevents[otherIndex][1].type === \"content\") {\n while (++otherIndex < subevents.length) {\n if (subevents[otherIndex][1].type === \"content\") {\n break;\n }\n if (subevents[otherIndex][1].type === \"chunkText\") {\n subevents[otherIndex][1]._isInFirstContentOfListItem = true;\n otherIndex++;\n }\n }\n }\n }\n\n // Enter.\n if (event[0] === 'enter') {\n if (event[1].contentType) {\n Object.assign(jumps, subcontent(events, index));\n index = jumps[index];\n more = true;\n }\n }\n // Exit.\n else if (event[1]._container) {\n otherIndex = index;\n lineIndex = undefined;\n while (otherIndex--) {\n otherEvent = events.get(otherIndex);\n if (otherEvent[1].type === \"lineEnding\" || otherEvent[1].type === \"lineEndingBlank\") {\n if (otherEvent[0] === 'enter') {\n if (lineIndex) {\n events.get(lineIndex)[1].type = \"lineEndingBlank\";\n }\n otherEvent[1].type = \"lineEnding\";\n lineIndex = otherIndex;\n }\n } else if (otherEvent[1].type === \"linePrefix\" || otherEvent[1].type === \"listItemIndent\") {\n // Move past.\n } else {\n break;\n }\n }\n if (lineIndex) {\n // Fix position.\n event[1].end = {\n ...events.get(lineIndex)[1].start\n };\n\n // Switch container exit w/ line endings.\n parameters = events.slice(lineIndex, index);\n parameters.unshift(event);\n events.splice(lineIndex, index - lineIndex + 1, parameters);\n }\n }\n }\n\n // The changes to the `events` buffer must be copied back into the eventsArray\n splice(eventsArray, 0, Number.POSITIVE_INFINITY, events.slice(0));\n return !more;\n}\n\n/**\n * Tokenize embedded tokens.\n *\n * @param {SpliceBuffer<Event>} events\n * Events.\n * @param {number} eventIndex\n * Index.\n * @returns {Record<string, number>}\n * Gaps.\n */\nfunction subcontent(events, eventIndex) {\n const token = events.get(eventIndex)[1];\n const context = events.get(eventIndex)[2];\n let startPosition = eventIndex - 1;\n /** @type {Array<number>} */\n const startPositions = [];\n let tokenizer = token._tokenizer;\n if (!tokenizer) {\n tokenizer = context.parser[token.contentType](token.start);\n if (token._contentTypeTextTrailing) {\n tokenizer._contentTypeTextTrailing = true;\n }\n }\n const childEvents = tokenizer.events;\n /** @type {Array<[number, number]>} */\n const jumps = [];\n /** @type {Record<string, number>} */\n const gaps = {};\n /** @type {Array<Chunk>} */\n let stream;\n /** @type {Token | undefined} */\n let previous;\n let index = -1;\n /** @type {Token | undefined} */\n let current = token;\n let adjust = 0;\n let start = 0;\n const breaks = [start];\n\n // Loop forward through the linked tokens to pass them in order to the\n // subtokenizer.\n while (current) {\n // Find the position of the event for this token.\n while (events.get(++startPosition)[1] !== current) {\n // Empty.\n }\n startPositions.push(startPosition);\n if (!current._tokenizer) {\n stream = context.sliceStream(current);\n if (!current.next) {\n stream.push(null);\n }\n if (previous) {\n tokenizer.defineSkip(current.start);\n }\n if (current._isInFirstContentOfListItem) {\n tokenizer._gfmTasklistFirstContentOfListItem = true;\n }\n tokenizer.write(stream);\n if (current._isInFirstContentOfListItem) {\n tokenizer._gfmTasklistFirstContentOfListItem = undefined;\n }\n }\n\n // Unravel the next token.\n previous = current;\n current = current.next;\n }\n\n // Now, loop back through all events (and linked tokens), to figure out which\n // parts belong where.\n current = token;\n while (++index < childEvents.length) {\n if (\n // Find a void token that includes a break.\n childEvents[index][0] === 'exit' && childEvents[index - 1][0] === 'enter' && childEvents[index][1].type === childEvents[index - 1][1].type && childEvents[index][1].start.line !== childEvents[index][1].end.line) {\n start = index + 1;\n breaks.push(start);\n // Help GC.\n current._tokenizer = undefined;\n current.previous = undefined;\n current = current.next;\n }\n }\n\n // Help GC.\n tokenizer.events = [];\n\n // If there’s one more token (which is the cases for lines that end in an\n // EOF), that’s perfect: the last point we found starts it.\n // If there isn’t then make sure any remaining content is added to it.\n if (current) {\n // Help GC.\n current._tokenizer = undefined;\n current.previous = undefined;\n } else {\n breaks.pop();\n }\n\n // Now splice the events from the subtokenizer into the current events,\n // moving back to front so that splice indices aren’t affected.\n index = breaks.length;\n while (index--) {\n const slice = childEvents.slice(breaks[index], breaks[index + 1]);\n const start = startPositions.pop();\n jumps.push([start, start + slice.length - 1]);\n events.splice(start, 2, slice);\n }\n jumps.reverse();\n index = -1;\n while (++index < jumps.length) {\n gaps[adjust + jumps[index][0]] = adjust + jumps[index][1];\n adjust += jumps[index][1] - jumps[index][0] - 1;\n }\n return gaps;\n}"],"x_google_ignoreList":[0],"mappings":";;;AAmBA,SAAgB,EAAY,GAAa;CAEvC,IAAM,IAAQ,EAAE,EACZ,IAAQ,IAER,GAEA,GAEA,GAEA,GAEA,GAEA,GAEA,GACE,IAAS,IAAI,EAAa,EAAY;AAC5C,QAAO,EAAE,IAAQ,EAAO,SAAQ;AAC9B,SAAO,KAAS,GACd,KAAQ,EAAM;AAMhB,MAJA,IAAQ,EAAO,IAAI,EAAM,EAIrB,KAAS,EAAM,GAAG,SAAS,eAAe,EAAO,IAAI,IAAQ,EAAE,CAAC,GAAG,SAAS,qBAC9E,IAAY,EAAM,GAAG,WAAW,QAChC,IAAa,GACT,IAAa,EAAU,UAAU,EAAU,GAAY,GAAG,SAAS,sBACrE,KAAc,IAEZ,IAAa,EAAU,UAAU,EAAU,GAAY,GAAG,SAAS,WACrE,QAAO,EAAE,IAAa,EAAU,UAC1B,EAAU,GAAY,GAAG,SAAS,WAGtC,CAAI,EAAU,GAAY,GAAG,SAAS,gBACpC,EAAU,GAAY,GAAG,8BAA8B,IACvD;AAOR,MAAI,EAAM,OAAO,SACX,EAAM,GAAG,gBACX,OAAO,OAAO,GAAO,EAAW,GAAQ,EAAM,CAAC,EAC/C,IAAQ,EAAM,IACd,IAAO;WAIF,EAAM,GAAG,YAAY;AAG5B,QAFA,IAAa,GACb,IAAY,KAAA,GACL,KAEL,KADA,IAAa,EAAO,IAAI,EAAW,EAC/B,EAAW,GAAG,SAAS,gBAAgB,EAAW,GAAG,SAAS,mBAC5D,EAAW,OAAO,YAChB,MACF,EAAO,IAAI,EAAU,CAAC,GAAG,OAAO,oBAElC,EAAW,GAAG,OAAO,cACrB,IAAY;YAEL,IAAW,GAAG,SAAS,gBAAgB,EAAW,GAAG,SAAS,kBAGvE;AAGJ,GAAI,MAEF,EAAM,GAAG,MAAM,EACb,GAAG,EAAO,IAAI,EAAU,CAAC,GAAG,OAC7B,EAGD,IAAa,EAAO,MAAM,GAAW,EAAM,EAC3C,EAAW,QAAQ,EAAM,EACzB,EAAO,OAAO,GAAW,IAAQ,IAAY,GAAG,EAAW;;;AAOjE,QADA,EAAO,GAAa,GAAG,UAA0B,EAAO,MAAM,EAAE,CAAC,EAC1D,CAAC;;AAaV,SAAS,EAAW,GAAQ,GAAY;CACtC,IAAM,IAAQ,EAAO,IAAI,EAAW,CAAC,IAC/B,IAAU,EAAO,IAAI,EAAW,CAAC,IACnC,IAAgB,IAAa,GAE3B,IAAiB,EAAE,EACrB,IAAY,EAAM;AACtB,CAAK,MACH,IAAY,EAAQ,OAAO,EAAM,aAAa,EAAM,MAAM,EACtD,EAAM,6BACR,EAAU,2BAA2B;CAGzC,IAAM,IAAc,EAAU,QAExB,IAAQ,EAAE,EAEV,IAAO,EAAE,EAEX,GAEA,GACA,IAAQ,IAER,IAAU,GACV,IAAS,GACT,IAAQ,GACN,IAAS,CAAC,EAAM;AAItB,QAAO,IAAS;AAEd,SAAO,EAAO,IAAI,EAAE,EAAc,CAAC,OAAO;AAuB1C,EApBA,EAAe,KAAK,EAAc,EAC7B,EAAQ,eACX,IAAS,EAAQ,YAAY,EAAQ,EAChC,EAAQ,QACX,EAAO,KAAK,KAAK,EAEf,KACF,EAAU,WAAW,EAAQ,MAAM,EAEjC,EAAQ,gCACV,EAAU,qCAAqC,KAEjD,EAAU,MAAM,EAAO,EACnB,EAAQ,gCACV,EAAU,qCAAqC,KAAA,KAKnD,IAAW,GACX,IAAU,EAAQ;;AAMpB,MADA,IAAU,GACH,EAAE,IAAQ,EAAY,QAC3B,CAEA,EAAY,GAAO,OAAO,UAAU,EAAY,IAAQ,GAAG,OAAO,WAAW,EAAY,GAAO,GAAG,SAAS,EAAY,IAAQ,GAAG,GAAG,QAAQ,EAAY,GAAO,GAAG,MAAM,SAAS,EAAY,GAAO,GAAG,IAAI,SAC3M,IAAQ,IAAQ,GAChB,EAAO,KAAK,EAAM,EAElB,EAAQ,aAAa,KAAA,GACrB,EAAQ,WAAW,KAAA,GACnB,IAAU,EAAQ;AAqBtB,MAhBA,EAAU,SAAS,EAAE,EAKjB,KAEF,EAAQ,aAAa,KAAA,GACrB,EAAQ,WAAW,KAAA,KAEnB,EAAO,KAAK,EAKd,IAAQ,EAAO,QACR,MAAS;EACd,IAAM,IAAQ,EAAY,MAAM,EAAO,IAAQ,EAAO,IAAQ,GAAG,EAC3D,IAAQ,EAAe,KAAK;AAElC,EADA,EAAM,KAAK,CAAC,GAAO,IAAQ,EAAM,SAAS,EAAE,CAAC,EAC7C,EAAO,OAAO,GAAO,GAAG,EAAM;;AAIhC,MAFA,EAAM,SAAS,EACf,IAAQ,IACD,EAAE,IAAQ,EAAM,QAErB,CADA,EAAK,IAAS,EAAM,GAAO,MAAM,IAAS,EAAM,GAAO,IACvD,KAAU,EAAM,GAAO,KAAK,EAAM,GAAO,KAAK;AAEhD,QAAO"}
@@ -0,0 +1,59 @@
1
+ //#region node_modules/micromark-util-subtokenize/lib/splice-buffer.js
2
+ var e = class {
3
+ constructor(e) {
4
+ this.left = e ? [...e] : [], this.right = [];
5
+ }
6
+ get(e) {
7
+ if (e < 0 || e >= this.left.length + this.right.length) throw RangeError("Cannot access index `" + e + "` in a splice buffer of size `" + (this.left.length + this.right.length) + "`");
8
+ return e < this.left.length ? this.left[e] : this.right[this.right.length - e + this.left.length - 1];
9
+ }
10
+ get length() {
11
+ return this.left.length + this.right.length;
12
+ }
13
+ shift() {
14
+ return this.setCursor(0), this.right.pop();
15
+ }
16
+ slice(e, t) {
17
+ let n = t ?? Infinity;
18
+ return n < this.left.length ? this.left.slice(e, n) : e > this.left.length ? this.right.slice(this.right.length - n + this.left.length, this.right.length - e + this.left.length).reverse() : this.left.slice(e).concat(this.right.slice(this.right.length - n + this.left.length).reverse());
19
+ }
20
+ splice(e, n, r) {
21
+ let i = n || 0;
22
+ this.setCursor(Math.trunc(e));
23
+ let a = this.right.splice(this.right.length - i, Infinity);
24
+ return r && t(this.left, r), a.reverse();
25
+ }
26
+ pop() {
27
+ return this.setCursor(Infinity), this.left.pop();
28
+ }
29
+ push(e) {
30
+ this.setCursor(Infinity), this.left.push(e);
31
+ }
32
+ pushMany(e) {
33
+ this.setCursor(Infinity), t(this.left, e);
34
+ }
35
+ unshift(e) {
36
+ this.setCursor(0), this.right.push(e);
37
+ }
38
+ unshiftMany(e) {
39
+ this.setCursor(0), t(this.right, e.reverse());
40
+ }
41
+ setCursor(e) {
42
+ if (!(e === this.left.length || e > this.left.length && this.right.length === 0 || e < 0 && this.left.length === 0)) if (e < this.left.length) {
43
+ let n = this.left.splice(e, Infinity);
44
+ t(this.right, n.reverse());
45
+ } else {
46
+ let n = this.right.splice(this.left.length + this.right.length - e, Infinity);
47
+ t(this.left, n.reverse());
48
+ }
49
+ }
50
+ };
51
+ function t(e, t) {
52
+ let n = 0;
53
+ if (t.length < 1e4) e.push(...t);
54
+ else for (; n < t.length;) e.push(...t.slice(n, n + 1e4)), n += 1e4;
55
+ }
56
+ //#endregion
57
+ export { e as SpliceBuffer };
58
+
59
+ //# sourceMappingURL=splice-buffer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"splice-buffer.js","names":[],"sources":["../../../../node_modules/micromark-util-subtokenize/lib/splice-buffer.js"],"sourcesContent":["/**\n * Some of the internal operations of micromark do lots of editing\n * operations on very large arrays. This runs into problems with two\n * properties of most circa-2020 JavaScript interpreters:\n *\n * - Array-length modifications at the high end of an array (push/pop) are\n * expected to be common and are implemented in (amortized) time\n * proportional to the number of elements added or removed, whereas\n * other operations (shift/unshift and splice) are much less efficient.\n * - Function arguments are passed on the stack, so adding tens of thousands\n * of elements to an array with `arr.push(...newElements)` will frequently\n * cause stack overflows. (see <https://stackoverflow.com/questions/22123769/rangeerror-maximum-call-stack-size-exceeded-why>)\n *\n * SpliceBuffers are an implementation of gap buffers, which are a\n * generalization of the \"queue made of two stacks\" idea. The splice buffer\n * maintains a cursor, and moving the cursor has cost proportional to the\n * distance the cursor moves, but inserting, deleting, or splicing in\n * new information at the cursor is as efficient as the push/pop operation.\n * This allows for an efficient sequence of splices (or pushes, pops, shifts,\n * or unshifts) as long such edits happen at the same part of the array or\n * generally sweep through the array from the beginning to the end.\n *\n * The interface for splice buffers also supports large numbers of inputs by\n * passing a single array argument rather passing multiple arguments on the\n * function call stack.\n *\n * @template T\n * Item type.\n */\nexport class SpliceBuffer {\n /**\n * @param {ReadonlyArray<T> | null | undefined} [initial]\n * Initial items (optional).\n * @returns\n * Splice buffer.\n */\n constructor(initial) {\n /** @type {Array<T>} */\n this.left = initial ? [...initial] : [];\n /** @type {Array<T>} */\n this.right = [];\n }\n\n /**\n * Array access;\n * does not move the cursor.\n *\n * @param {number} index\n * Index.\n * @return {T}\n * Item.\n */\n get(index) {\n if (index < 0 || index >= this.left.length + this.right.length) {\n throw new RangeError('Cannot access index `' + index + '` in a splice buffer of size `' + (this.left.length + this.right.length) + '`');\n }\n if (index < this.left.length) return this.left[index];\n return this.right[this.right.length - index + this.left.length - 1];\n }\n\n /**\n * The length of the splice buffer, one greater than the largest index in the\n * array.\n */\n get length() {\n return this.left.length + this.right.length;\n }\n\n /**\n * Remove and return `list[0]`;\n * moves the cursor to `0`.\n *\n * @returns {T | undefined}\n * Item, optional.\n */\n shift() {\n this.setCursor(0);\n return this.right.pop();\n }\n\n /**\n * Slice the buffer to get an array;\n * does not move the cursor.\n *\n * @param {number} start\n * Start.\n * @param {number | null | undefined} [end]\n * End (optional).\n * @returns {Array<T>}\n * Array of items.\n */\n slice(start, end) {\n /** @type {number} */\n const stop = end === null || end === undefined ? Number.POSITIVE_INFINITY : end;\n if (stop < this.left.length) {\n return this.left.slice(start, stop);\n }\n if (start > this.left.length) {\n return this.right.slice(this.right.length - stop + this.left.length, this.right.length - start + this.left.length).reverse();\n }\n return this.left.slice(start).concat(this.right.slice(this.right.length - stop + this.left.length).reverse());\n }\n\n /**\n * Mimics the behavior of Array.prototype.splice() except for the change of\n * interface necessary to avoid segfaults when patching in very large arrays.\n *\n * This operation moves cursor is moved to `start` and results in the cursor\n * placed after any inserted items.\n *\n * @param {number} start\n * Start;\n * zero-based index at which to start changing the array;\n * negative numbers count backwards from the end of the array and values\n * that are out-of bounds are clamped to the appropriate end of the array.\n * @param {number | null | undefined} [deleteCount=0]\n * Delete count (default: `0`);\n * maximum number of elements to delete, starting from start.\n * @param {Array<T> | null | undefined} [items=[]]\n * Items to include in place of the deleted items (default: `[]`).\n * @return {Array<T>}\n * Any removed items.\n */\n splice(start, deleteCount, items) {\n /** @type {number} */\n const count = deleteCount || 0;\n this.setCursor(Math.trunc(start));\n const removed = this.right.splice(this.right.length - count, Number.POSITIVE_INFINITY);\n if (items) chunkedPush(this.left, items);\n return removed.reverse();\n }\n\n /**\n * Remove and return the highest-numbered item in the array, so\n * `list[list.length - 1]`;\n * Moves the cursor to `length`.\n *\n * @returns {T | undefined}\n * Item, optional.\n */\n pop() {\n this.setCursor(Number.POSITIVE_INFINITY);\n return this.left.pop();\n }\n\n /**\n * Inserts a single item to the high-numbered side of the array;\n * moves the cursor to `length`.\n *\n * @param {T} item\n * Item.\n * @returns {undefined}\n * Nothing.\n */\n push(item) {\n this.setCursor(Number.POSITIVE_INFINITY);\n this.left.push(item);\n }\n\n /**\n * Inserts many items to the high-numbered side of the array.\n * Moves the cursor to `length`.\n *\n * @param {Array<T>} items\n * Items.\n * @returns {undefined}\n * Nothing.\n */\n pushMany(items) {\n this.setCursor(Number.POSITIVE_INFINITY);\n chunkedPush(this.left, items);\n }\n\n /**\n * Inserts a single item to the low-numbered side of the array;\n * Moves the cursor to `0`.\n *\n * @param {T} item\n * Item.\n * @returns {undefined}\n * Nothing.\n */\n unshift(item) {\n this.setCursor(0);\n this.right.push(item);\n }\n\n /**\n * Inserts many items to the low-numbered side of the array;\n * moves the cursor to `0`.\n *\n * @param {Array<T>} items\n * Items.\n * @returns {undefined}\n * Nothing.\n */\n unshiftMany(items) {\n this.setCursor(0);\n chunkedPush(this.right, items.reverse());\n }\n\n /**\n * Move the cursor to a specific position in the array. Requires\n * time proportional to the distance moved.\n *\n * If `n < 0`, the cursor will end up at the beginning.\n * If `n > length`, the cursor will end up at the end.\n *\n * @param {number} n\n * Position.\n * @return {undefined}\n * Nothing.\n */\n setCursor(n) {\n if (n === this.left.length || n > this.left.length && this.right.length === 0 || n < 0 && this.left.length === 0) return;\n if (n < this.left.length) {\n // Move cursor to the this.left\n const removed = this.left.splice(n, Number.POSITIVE_INFINITY);\n chunkedPush(this.right, removed.reverse());\n } else {\n // Move cursor to the this.right\n const removed = this.right.splice(this.left.length + this.right.length - n, Number.POSITIVE_INFINITY);\n chunkedPush(this.left, removed.reverse());\n }\n }\n}\n\n/**\n * Avoid stack overflow by pushing items onto the stack in segments\n *\n * @template T\n * Item type.\n * @param {Array<T>} list\n * List to inject into.\n * @param {ReadonlyArray<T>} right\n * Items to inject.\n * @return {undefined}\n * Nothing.\n */\nfunction chunkedPush(list, right) {\n /** @type {number} */\n let chunkStart = 0;\n if (right.length < 10000) {\n list.push(...right);\n } else {\n while (chunkStart < right.length) {\n list.push(...right.slice(chunkStart, chunkStart + 10000));\n chunkStart += 10000;\n }\n }\n}"],"x_google_ignoreList":[0],"mappings":";AA6BA,IAAa,IAAb,MAA0B;CAOxB,YAAY,GAAS;AAInB,EAFA,KAAK,OAAO,IAAU,CAAC,GAAG,EAAQ,GAAG,EAAE,EAEvC,KAAK,QAAQ,EAAE;;CAYjB,IAAI,GAAO;AACT,MAAI,IAAQ,KAAK,KAAS,KAAK,KAAK,SAAS,KAAK,MAAM,OACtD,OAAU,WAAW,0BAA0B,IAAQ,oCAAoC,KAAK,KAAK,SAAS,KAAK,MAAM,UAAU,IAAI;AAGzI,SADI,IAAQ,KAAK,KAAK,SAAe,KAAK,KAAK,KACxC,KAAK,MAAM,KAAK,MAAM,SAAS,IAAQ,KAAK,KAAK,SAAS;;CAOnE,IAAI,SAAS;AACX,SAAO,KAAK,KAAK,SAAS,KAAK,MAAM;;CAUvC,QAAQ;AAEN,SADA,KAAK,UAAU,EAAE,EACV,KAAK,MAAM,KAAK;;CAczB,MAAM,GAAO,GAAK;EAEhB,IAAM,IAAO,KAAoC;AAOjD,SANI,IAAO,KAAK,KAAK,SACZ,KAAK,KAAK,MAAM,GAAO,EAAK,GAEjC,IAAQ,KAAK,KAAK,SACb,KAAK,MAAM,MAAM,KAAK,MAAM,SAAS,IAAO,KAAK,KAAK,QAAQ,KAAK,MAAM,SAAS,IAAQ,KAAK,KAAK,OAAO,CAAC,SAAS,GAEvH,KAAK,KAAK,MAAM,EAAM,CAAC,OAAO,KAAK,MAAM,MAAM,KAAK,MAAM,SAAS,IAAO,KAAK,KAAK,OAAO,CAAC,SAAS,CAAC;;CAuB/G,OAAO,GAAO,GAAa,GAAO;EAEhC,IAAM,IAAQ,KAAe;AAC7B,OAAK,UAAU,KAAK,MAAM,EAAM,CAAC;EACjC,IAAM,IAAU,KAAK,MAAM,OAAO,KAAK,MAAM,SAAS,GAAO,SAAyB;AAEtF,SADI,KAAO,EAAY,KAAK,MAAM,EAAM,EACjC,EAAQ,SAAS;;CAW1B,MAAM;AAEJ,SADA,KAAK,UAAU,SAAyB,EACjC,KAAK,KAAK,KAAK;;CAYxB,KAAK,GAAM;AAET,EADA,KAAK,UAAU,SAAyB,EACxC,KAAK,KAAK,KAAK,EAAK;;CAYtB,SAAS,GAAO;AAEd,EADA,KAAK,UAAU,SAAyB,EACxC,EAAY,KAAK,MAAM,EAAM;;CAY/B,QAAQ,GAAM;AAEZ,EADA,KAAK,UAAU,EAAE,EACjB,KAAK,MAAM,KAAK,EAAK;;CAYvB,YAAY,GAAO;AAEjB,EADA,KAAK,UAAU,EAAE,EACjB,EAAY,KAAK,OAAO,EAAM,SAAS,CAAC;;CAe1C,UAAU,GAAG;AACP,cAAM,KAAK,KAAK,UAAU,IAAI,KAAK,KAAK,UAAU,KAAK,MAAM,WAAW,KAAK,IAAI,KAAK,KAAK,KAAK,WAAW,GAC/G,KAAI,IAAI,KAAK,KAAK,QAAQ;GAExB,IAAM,IAAU,KAAK,KAAK,OAAO,GAAG,SAAyB;AAC7D,KAAY,KAAK,OAAO,EAAQ,SAAS,CAAC;SACrC;GAEL,IAAM,IAAU,KAAK,MAAM,OAAO,KAAK,KAAK,SAAS,KAAK,MAAM,SAAS,GAAG,SAAyB;AACrG,KAAY,KAAK,MAAM,EAAQ,SAAS,CAAC;;;;AAiB/C,SAAS,EAAY,GAAM,GAAO;CAEhC,IAAI,IAAa;AACjB,KAAI,EAAM,SAAS,IACjB,GAAK,KAAK,GAAG,EAAM;KAEnB,QAAO,IAAa,EAAM,QAExB,CADA,EAAK,KAAK,GAAG,EAAM,MAAM,GAAY,IAAa,IAAM,CAAC,EACzD,KAAc"}
@@ -0,0 +1,28 @@
1
+ import { merge as e } from "./lib/util/merge.js";
2
+ import "./lib/normalize.js";
3
+ import { aria as t } from "./lib/aria.js";
4
+ import { html as n } from "./lib/html.js";
5
+ import { svg as r } from "./lib/svg.js";
6
+ import { xlink as i } from "./lib/xlink.js";
7
+ import { xmlns as a } from "./lib/xmlns.js";
8
+ import { xml as o } from "./lib/xml.js";
9
+ import "./lib/hast-to-react.js";
10
+ import "./lib/find.js";
11
+ //#region node_modules/property-information/index.js
12
+ var s = e([
13
+ t,
14
+ n,
15
+ i,
16
+ a,
17
+ o
18
+ ], "html"), c = e([
19
+ t,
20
+ r,
21
+ i,
22
+ a,
23
+ o
24
+ ], "svg");
25
+ //#endregion
26
+ export { s as html, c as svg };
27
+
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["htmlBase","svgBase"],"sources":["../../../node_modules/property-information/index.js"],"sourcesContent":["// Note: types exposed from `index.d.ts`.\nimport {merge} from './lib/util/merge.js'\nimport {aria} from './lib/aria.js'\nimport {html as htmlBase} from './lib/html.js'\nimport {svg as svgBase} from './lib/svg.js'\nimport {xlink} from './lib/xlink.js'\nimport {xmlns} from './lib/xmlns.js'\nimport {xml} from './lib/xml.js'\n\nexport {hastToReact} from './lib/hast-to-react.js'\n\nexport const html = merge([aria, htmlBase, xlink, xmlns, xml], 'html')\n\nexport {find} from './lib/find.js'\nexport {normalize} from './lib/normalize.js'\n\nexport const svg = merge([aria, svgBase, xlink, xmlns, xml], 'svg')\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;AAWA,IAAa,IAAO,EAAM;CAAC;CAAMA;CAAU;CAAO;CAAO;CAAI,EAAE,OAAO,EAKzD,IAAM,EAAM;CAAC;CAAMC;CAAS;CAAO;CAAO;CAAI,EAAE,MAAM"}
@@ -0,0 +1,63 @@
1
+ import { booleanish as e, number as t, spaceSeparated as n } from "./util/types.js";
2
+ import { create as r } from "./util/create.js";
3
+ //#region node_modules/property-information/lib/aria.js
4
+ var i = r({
5
+ properties: {
6
+ ariaActiveDescendant: null,
7
+ ariaAtomic: e,
8
+ ariaAutoComplete: null,
9
+ ariaBusy: e,
10
+ ariaChecked: e,
11
+ ariaColCount: t,
12
+ ariaColIndex: t,
13
+ ariaColSpan: t,
14
+ ariaControls: n,
15
+ ariaCurrent: null,
16
+ ariaDescribedBy: n,
17
+ ariaDetails: null,
18
+ ariaDisabled: e,
19
+ ariaDropEffect: n,
20
+ ariaErrorMessage: null,
21
+ ariaExpanded: e,
22
+ ariaFlowTo: n,
23
+ ariaGrabbed: e,
24
+ ariaHasPopup: null,
25
+ ariaHidden: e,
26
+ ariaInvalid: null,
27
+ ariaKeyShortcuts: null,
28
+ ariaLabel: null,
29
+ ariaLabelledBy: n,
30
+ ariaLevel: t,
31
+ ariaLive: null,
32
+ ariaModal: e,
33
+ ariaMultiLine: e,
34
+ ariaMultiSelectable: e,
35
+ ariaOrientation: null,
36
+ ariaOwns: n,
37
+ ariaPlaceholder: null,
38
+ ariaPosInSet: t,
39
+ ariaPressed: e,
40
+ ariaReadOnly: e,
41
+ ariaRelevant: null,
42
+ ariaRequired: e,
43
+ ariaRoleDescription: n,
44
+ ariaRowCount: t,
45
+ ariaRowIndex: t,
46
+ ariaRowSpan: t,
47
+ ariaSelected: e,
48
+ ariaSetSize: t,
49
+ ariaSort: null,
50
+ ariaValueMax: t,
51
+ ariaValueMin: t,
52
+ ariaValueNow: t,
53
+ ariaValueText: null,
54
+ role: null
55
+ },
56
+ transform(e, t) {
57
+ return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
58
+ }
59
+ });
60
+ //#endregion
61
+ export { i as aria };
62
+
63
+ //# sourceMappingURL=aria.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aria.js","names":[],"sources":["../../../../node_modules/property-information/lib/aria.js"],"sourcesContent":["import {create} from './util/create.js'\nimport {booleanish, number, spaceSeparated} from './util/types.js'\n\nexport const aria = create({\n properties: {\n ariaActiveDescendant: null,\n ariaAtomic: booleanish,\n ariaAutoComplete: null,\n ariaBusy: booleanish,\n ariaChecked: booleanish,\n ariaColCount: number,\n ariaColIndex: number,\n ariaColSpan: number,\n ariaControls: spaceSeparated,\n ariaCurrent: null,\n ariaDescribedBy: spaceSeparated,\n ariaDetails: null,\n ariaDisabled: booleanish,\n ariaDropEffect: spaceSeparated,\n ariaErrorMessage: null,\n ariaExpanded: booleanish,\n ariaFlowTo: spaceSeparated,\n ariaGrabbed: booleanish,\n ariaHasPopup: null,\n ariaHidden: booleanish,\n ariaInvalid: null,\n ariaKeyShortcuts: null,\n ariaLabel: null,\n ariaLabelledBy: spaceSeparated,\n ariaLevel: number,\n ariaLive: null,\n ariaModal: booleanish,\n ariaMultiLine: booleanish,\n ariaMultiSelectable: booleanish,\n ariaOrientation: null,\n ariaOwns: spaceSeparated,\n ariaPlaceholder: null,\n ariaPosInSet: number,\n ariaPressed: booleanish,\n ariaReadOnly: booleanish,\n ariaRelevant: null,\n ariaRequired: booleanish,\n ariaRoleDescription: spaceSeparated,\n ariaRowCount: number,\n ariaRowIndex: number,\n ariaRowSpan: number,\n ariaSelected: booleanish,\n ariaSetSize: number,\n ariaSort: null,\n ariaValueMax: number,\n ariaValueMin: number,\n ariaValueNow: number,\n ariaValueText: null,\n role: null\n },\n transform(_, property) {\n return property === 'role'\n ? property\n : 'aria-' + property.slice(4).toLowerCase()\n }\n})\n"],"x_google_ignoreList":[0],"mappings":";;;AAGA,IAAa,IAAO,EAAO;CACzB,YAAY;EACV,sBAAsB;EACtB,YAAY;EACZ,kBAAkB;EAClB,UAAU;EACV,aAAa;EACb,cAAc;EACd,cAAc;EACd,aAAa;EACb,cAAc;EACd,aAAa;EACb,iBAAiB;EACjB,aAAa;EACb,cAAc;EACd,gBAAgB;EAChB,kBAAkB;EAClB,cAAc;EACd,YAAY;EACZ,aAAa;EACb,cAAc;EACd,YAAY;EACZ,aAAa;EACb,kBAAkB;EAClB,WAAW;EACX,gBAAgB;EAChB,WAAW;EACX,UAAU;EACV,WAAW;EACX,eAAe;EACf,qBAAqB;EACrB,iBAAiB;EACjB,UAAU;EACV,iBAAiB;EACjB,cAAc;EACd,aAAa;EACb,cAAc;EACd,cAAc;EACd,cAAc;EACd,qBAAqB;EACrB,cAAc;EACd,cAAc;EACd,aAAa;EACb,cAAc;EACd,aAAa;EACb,UAAU;EACV,cAAc;EACd,cAAc;EACd,cAAc;EACd,eAAe;EACf,MAAM;EACP;CACD,UAAU,GAAG,GAAU;AACrB,SAAO,MAAa,SAChB,IACA,UAAU,EAAS,MAAM,EAAE,CAAC,aAAa;;CAEhD,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { normalize as e } from "./normalize.js";
2
+ import { Info as t } from "./util/info.js";
3
+ import { DefinedInfo as n } from "./util/defined-info.js";
4
+ //#region node_modules/property-information/lib/find.js
5
+ var r = /[A-Z]/g, i = /-[a-z]/g, a = /^data[-\w.:]+$/i;
6
+ function o(o, l) {
7
+ let u = e(l), d = l, f = t;
8
+ if (u in o.normal) return o.property[o.normal[u]];
9
+ if (u.length > 4 && u.slice(0, 4) === "data" && a.test(l)) {
10
+ if (l.charAt(4) === "-") {
11
+ let e = l.slice(5).replace(i, c);
12
+ d = "data" + e.charAt(0).toUpperCase() + e.slice(1);
13
+ } else {
14
+ let e = l.slice(4);
15
+ if (!i.test(e)) {
16
+ let t = e.replace(r, s);
17
+ t.charAt(0) !== "-" && (t = "-" + t), l = "data" + t;
18
+ }
19
+ }
20
+ f = n;
21
+ }
22
+ return new f(d, l);
23
+ }
24
+ function s(e) {
25
+ return "-" + e.toLowerCase();
26
+ }
27
+ function c(e) {
28
+ return e.charAt(1).toUpperCase();
29
+ }
30
+ //#endregion
31
+ export { o as find };
32
+
33
+ //# sourceMappingURL=find.js.map