@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,160 @@
1
+ import { push as e, splice as t } from "../../micromark-util-chunked/index.js";
2
+ import { normalizeIdentifier as n } from "../../micromark-util-normalize-identifier/index.js";
3
+ import { markdownLineEndingOrSpace as r } from "../../micromark-util-character/index.js";
4
+ import { resolveAll as i } from "../../micromark-util-resolve-all/index.js";
5
+ import { factoryDestination as a } from "../../micromark-factory-destination/index.js";
6
+ import { factoryLabel as o } from "../../micromark-factory-label/index.js";
7
+ import { factoryTitle as s } from "../../micromark-factory-title/index.js";
8
+ import { factoryWhitespace as c } from "../../micromark-factory-whitespace/index.js";
9
+ //#region node_modules/micromark-core-commonmark/lib/label-end.js
10
+ var l = {
11
+ name: "labelEnd",
12
+ resolveAll: p,
13
+ resolveTo: m,
14
+ tokenize: h
15
+ }, u = { tokenize: g }, d = { tokenize: _ }, f = { tokenize: v };
16
+ function p(e) {
17
+ let n = -1, r = [];
18
+ for (; ++n < e.length;) {
19
+ let t = e[n][1];
20
+ if (r.push(e[n]), t.type === "labelImage" || t.type === "labelLink" || t.type === "labelEnd") {
21
+ let e = t.type === "labelImage" ? 4 : 2;
22
+ t.type = "data", n += e;
23
+ }
24
+ }
25
+ return e.length !== r.length && t(e, 0, e.length, r), e;
26
+ }
27
+ function m(n, r) {
28
+ let a = n.length, o = 0, s, c, l, u;
29
+ for (; a--;) if (s = n[a][1], c) {
30
+ if (s.type === "link" || s.type === "labelLink" && s._inactive) break;
31
+ n[a][0] === "enter" && s.type === "labelLink" && (s._inactive = !0);
32
+ } else if (l) {
33
+ if (n[a][0] === "enter" && (s.type === "labelImage" || s.type === "labelLink") && !s._balanced && (c = a, s.type !== "labelLink")) {
34
+ o = 2;
35
+ break;
36
+ }
37
+ } else s.type === "labelEnd" && (l = a);
38
+ let d = {
39
+ type: n[c][1].type === "labelLink" ? "link" : "image",
40
+ start: { ...n[c][1].start },
41
+ end: { ...n[n.length - 1][1].end }
42
+ }, f = {
43
+ type: "label",
44
+ start: { ...n[c][1].start },
45
+ end: { ...n[l][1].end }
46
+ }, p = {
47
+ type: "labelText",
48
+ start: { ...n[c + o + 2][1].end },
49
+ end: { ...n[l - 2][1].start }
50
+ };
51
+ return u = [[
52
+ "enter",
53
+ d,
54
+ r
55
+ ], [
56
+ "enter",
57
+ f,
58
+ r
59
+ ]], u = e(u, n.slice(c + 1, c + o + 3)), u = e(u, [[
60
+ "enter",
61
+ p,
62
+ r
63
+ ]]), u = e(u, i(r.parser.constructs.insideSpan.null, n.slice(c + o + 4, l - 3), r)), u = e(u, [
64
+ [
65
+ "exit",
66
+ p,
67
+ r
68
+ ],
69
+ n[l - 2],
70
+ n[l - 1],
71
+ [
72
+ "exit",
73
+ f,
74
+ r
75
+ ]
76
+ ]), u = e(u, n.slice(l + 1)), u = e(u, [[
77
+ "exit",
78
+ d,
79
+ r
80
+ ]]), t(n, c, n.length, u), n;
81
+ }
82
+ function h(e, t, r) {
83
+ let i = this, a = i.events.length, o, s;
84
+ for (; a--;) if ((i.events[a][1].type === "labelImage" || i.events[a][1].type === "labelLink") && !i.events[a][1]._balanced) {
85
+ o = i.events[a][1];
86
+ break;
87
+ }
88
+ return c;
89
+ function c(t) {
90
+ return o ? o._inactive ? h(t) : (s = i.parser.defined.includes(n(i.sliceSerialize({
91
+ start: o.end,
92
+ end: i.now()
93
+ }))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(t), e.exit("labelMarker"), e.exit("labelEnd"), l) : r(t);
94
+ }
95
+ function l(t) {
96
+ return t === 40 ? e.attempt(u, m, s ? m : h)(t) : t === 91 ? e.attempt(d, m, s ? p : h)(t) : s ? m(t) : h(t);
97
+ }
98
+ function p(t) {
99
+ return e.attempt(f, m, h)(t);
100
+ }
101
+ function m(e) {
102
+ return t(e);
103
+ }
104
+ function h(e) {
105
+ return o._balanced = !0, r(e);
106
+ }
107
+ }
108
+ function g(e, t, n) {
109
+ return i;
110
+ function i(t) {
111
+ return e.enter("resource"), e.enter("resourceMarker"), e.consume(t), e.exit("resourceMarker"), o;
112
+ }
113
+ function o(t) {
114
+ return r(t) ? c(e, l)(t) : l(t);
115
+ }
116
+ function l(t) {
117
+ return t === 41 ? m(t) : a(e, u, d, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(t);
118
+ }
119
+ function u(t) {
120
+ return r(t) ? c(e, f)(t) : m(t);
121
+ }
122
+ function d(e) {
123
+ return n(e);
124
+ }
125
+ function f(t) {
126
+ return t === 34 || t === 39 || t === 40 ? s(e, p, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(t) : m(t);
127
+ }
128
+ function p(t) {
129
+ return r(t) ? c(e, m)(t) : m(t);
130
+ }
131
+ function m(r) {
132
+ return r === 41 ? (e.enter("resourceMarker"), e.consume(r), e.exit("resourceMarker"), e.exit("resource"), t) : n(r);
133
+ }
134
+ }
135
+ function _(e, t, r) {
136
+ let i = this;
137
+ return a;
138
+ function a(t) {
139
+ return o.call(i, e, s, c, "reference", "referenceMarker", "referenceString")(t);
140
+ }
141
+ function s(e) {
142
+ return i.parser.defined.includes(n(i.sliceSerialize(i.events[i.events.length - 1][1]).slice(1, -1))) ? t(e) : r(e);
143
+ }
144
+ function c(e) {
145
+ return r(e);
146
+ }
147
+ }
148
+ function v(e, t, n) {
149
+ return r;
150
+ function r(t) {
151
+ return e.enter("reference"), e.enter("referenceMarker"), e.consume(t), e.exit("referenceMarker"), i;
152
+ }
153
+ function i(r) {
154
+ return r === 93 ? (e.enter("referenceMarker"), e.consume(r), e.exit("referenceMarker"), e.exit("reference"), t) : n(r);
155
+ }
156
+ }
157
+ //#endregion
158
+ export { l as labelEnd };
159
+
160
+ //# sourceMappingURL=label-end.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label-end.js","names":[],"sources":["../../../../node_modules/micromark-core-commonmark/lib/label-end.js"],"sourcesContent":["/**\n * @import {\n * Construct,\n * Event,\n * Resolver,\n * State,\n * TokenizeContext,\n * Tokenizer,\n * Token\n * } from 'micromark-util-types'\n */\n\nimport { factoryDestination } from 'micromark-factory-destination';\nimport { factoryLabel } from 'micromark-factory-label';\nimport { factoryTitle } from 'micromark-factory-title';\nimport { factoryWhitespace } from 'micromark-factory-whitespace';\nimport { markdownLineEndingOrSpace } from 'micromark-util-character';\nimport { push, splice } from 'micromark-util-chunked';\nimport { normalizeIdentifier } from 'micromark-util-normalize-identifier';\nimport { resolveAll } from 'micromark-util-resolve-all';\n/** @type {Construct} */\nexport const labelEnd = {\n name: 'labelEnd',\n resolveAll: resolveAllLabelEnd,\n resolveTo: resolveToLabelEnd,\n tokenize: tokenizeLabelEnd\n};\n\n/** @type {Construct} */\nconst resourceConstruct = {\n tokenize: tokenizeResource\n};\n/** @type {Construct} */\nconst referenceFullConstruct = {\n tokenize: tokenizeReferenceFull\n};\n/** @type {Construct} */\nconst referenceCollapsedConstruct = {\n tokenize: tokenizeReferenceCollapsed\n};\n\n/** @type {Resolver} */\nfunction resolveAllLabelEnd(events) {\n let index = -1;\n /** @type {Array<Event>} */\n const newEvents = [];\n while (++index < events.length) {\n const token = events[index][1];\n newEvents.push(events[index]);\n if (token.type === \"labelImage\" || token.type === \"labelLink\" || token.type === \"labelEnd\") {\n // Remove the marker.\n const offset = token.type === \"labelImage\" ? 4 : 2;\n token.type = \"data\";\n index += offset;\n }\n }\n\n // If the events are equal, we don't have to copy newEvents to events\n if (events.length !== newEvents.length) {\n splice(events, 0, events.length, newEvents);\n }\n return events;\n}\n\n/** @type {Resolver} */\nfunction resolveToLabelEnd(events, context) {\n let index = events.length;\n let offset = 0;\n /** @type {Token} */\n let token;\n /** @type {number | undefined} */\n let open;\n /** @type {number | undefined} */\n let close;\n /** @type {Array<Event>} */\n let media;\n\n // Find an opening.\n while (index--) {\n token = events[index][1];\n if (open) {\n // If we see another link, or inactive link label, we’ve been here before.\n if (token.type === \"link\" || token.type === \"labelLink\" && token._inactive) {\n break;\n }\n\n // Mark other link openings as inactive, as we can’t have links in\n // links.\n if (events[index][0] === 'enter' && token.type === \"labelLink\") {\n token._inactive = true;\n }\n } else if (close) {\n if (events[index][0] === 'enter' && (token.type === \"labelImage\" || token.type === \"labelLink\") && !token._balanced) {\n open = index;\n if (token.type !== \"labelLink\") {\n offset = 2;\n break;\n }\n }\n } else if (token.type === \"labelEnd\") {\n close = index;\n }\n }\n const group = {\n type: events[open][1].type === \"labelLink\" ? \"link\" : \"image\",\n start: {\n ...events[open][1].start\n },\n end: {\n ...events[events.length - 1][1].end\n }\n };\n const label = {\n type: \"label\",\n start: {\n ...events[open][1].start\n },\n end: {\n ...events[close][1].end\n }\n };\n const text = {\n type: \"labelText\",\n start: {\n ...events[open + offset + 2][1].end\n },\n end: {\n ...events[close - 2][1].start\n }\n };\n media = [['enter', group, context], ['enter', label, context]];\n\n // Opening marker.\n media = push(media, events.slice(open + 1, open + offset + 3));\n\n // Text open.\n media = push(media, [['enter', text, context]]);\n\n // Always populated by defaults.\n\n // Between.\n media = push(media, resolveAll(context.parser.constructs.insideSpan.null, events.slice(open + offset + 4, close - 3), context));\n\n // Text close, marker close, label close.\n media = push(media, [['exit', text, context], events[close - 2], events[close - 1], ['exit', label, context]]);\n\n // Reference, resource, or so.\n media = push(media, events.slice(close + 1));\n\n // Media close.\n media = push(media, [['exit', group, context]]);\n splice(events, open, events.length, media);\n return events;\n}\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Tokenizer}\n */\nfunction tokenizeLabelEnd(effects, ok, nok) {\n const self = this;\n let index = self.events.length;\n /** @type {Token} */\n let labelStart;\n /** @type {boolean} */\n let defined;\n\n // Find an opening.\n while (index--) {\n if ((self.events[index][1].type === \"labelImage\" || self.events[index][1].type === \"labelLink\") && !self.events[index][1]._balanced) {\n labelStart = self.events[index][1];\n break;\n }\n }\n return start;\n\n /**\n * Start of label end.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * > | [a][b] c\n * ^\n * > | [a][] b\n * ^\n * > | [a] b\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // If there is not an okay opening.\n if (!labelStart) {\n return nok(code);\n }\n\n // If the corresponding label (link) start is marked as inactive,\n // it means we’d be wrapping a link, like this:\n //\n // ```markdown\n // > | a [b [c](d) e](f) g.\n // ^\n // ```\n //\n // We can’t have that, so it’s just balanced brackets.\n if (labelStart._inactive) {\n return labelEndNok(code);\n }\n defined = self.parser.defined.includes(normalizeIdentifier(self.sliceSerialize({\n start: labelStart.end,\n end: self.now()\n })));\n effects.enter(\"labelEnd\");\n effects.enter(\"labelMarker\");\n effects.consume(code);\n effects.exit(\"labelMarker\");\n effects.exit(\"labelEnd\");\n return after;\n }\n\n /**\n * After `]`.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * > | [a][b] c\n * ^\n * > | [a][] b\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n // Note: `markdown-rs` also parses GFM footnotes here, which for us is in\n // an extension.\n\n // Resource (`[asd](fgh)`)?\n if (code === 40) {\n return effects.attempt(resourceConstruct, labelEndOk, defined ? labelEndOk : labelEndNok)(code);\n }\n\n // Full (`[asd][fgh]`) or collapsed (`[asd][]`) reference?\n if (code === 91) {\n return effects.attempt(referenceFullConstruct, labelEndOk, defined ? referenceNotFull : labelEndNok)(code);\n }\n\n // Shortcut (`[asd]`) reference?\n return defined ? labelEndOk(code) : labelEndNok(code);\n }\n\n /**\n * After `]`, at `[`, but not at a full reference.\n *\n * > 👉 **Note**: we only get here if the label is defined.\n *\n * ```markdown\n * > | [a][] b\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceNotFull(code) {\n return effects.attempt(referenceCollapsedConstruct, labelEndOk, labelEndNok)(code);\n }\n\n /**\n * Done, we found something.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * > | [a][b] c\n * ^\n * > | [a][] b\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function labelEndOk(code) {\n // Note: `markdown-rs` does a bunch of stuff here.\n return ok(code);\n }\n\n /**\n * Done, it’s nothing.\n *\n * There was an okay opening, but we didn’t match anything.\n *\n * ```markdown\n * > | [a](b c\n * ^\n * > | [a][b c\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function labelEndNok(code) {\n labelStart._balanced = true;\n return nok(code);\n }\n}\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Tokenizer}\n */\nfunction tokenizeResource(effects, ok, nok) {\n return resourceStart;\n\n /**\n * At a resource.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceStart(code) {\n effects.enter(\"resource\");\n effects.enter(\"resourceMarker\");\n effects.consume(code);\n effects.exit(\"resourceMarker\");\n return resourceBefore;\n }\n\n /**\n * In resource, after `(`, at optional whitespace.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceBefore(code) {\n return markdownLineEndingOrSpace(code) ? factoryWhitespace(effects, resourceOpen)(code) : resourceOpen(code);\n }\n\n /**\n * In resource, after optional whitespace, at `)` or a destination.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceOpen(code) {\n if (code === 41) {\n return resourceEnd(code);\n }\n return factoryDestination(effects, resourceDestinationAfter, resourceDestinationMissing, \"resourceDestination\", \"resourceDestinationLiteral\", \"resourceDestinationLiteralMarker\", \"resourceDestinationRaw\", \"resourceDestinationString\", 32)(code);\n }\n\n /**\n * In resource, after destination, at optional whitespace.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceDestinationAfter(code) {\n return markdownLineEndingOrSpace(code) ? factoryWhitespace(effects, resourceBetween)(code) : resourceEnd(code);\n }\n\n /**\n * At invalid destination.\n *\n * ```markdown\n * > | [a](<<) b\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceDestinationMissing(code) {\n return nok(code);\n }\n\n /**\n * In resource, after destination and whitespace, at `(` or title.\n *\n * ```markdown\n * > | [a](b ) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceBetween(code) {\n if (code === 34 || code === 39 || code === 40) {\n return factoryTitle(effects, resourceTitleAfter, nok, \"resourceTitle\", \"resourceTitleMarker\", \"resourceTitleString\")(code);\n }\n return resourceEnd(code);\n }\n\n /**\n * In resource, after title, at optional whitespace.\n *\n * ```markdown\n * > | [a](b \"c\") d\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceTitleAfter(code) {\n return markdownLineEndingOrSpace(code) ? factoryWhitespace(effects, resourceEnd)(code) : resourceEnd(code);\n }\n\n /**\n * In resource, at `)`.\n *\n * ```markdown\n * > | [a](b) d\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceEnd(code) {\n if (code === 41) {\n effects.enter(\"resourceMarker\");\n effects.consume(code);\n effects.exit(\"resourceMarker\");\n effects.exit(\"resource\");\n return ok;\n }\n return nok(code);\n }\n}\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Tokenizer}\n */\nfunction tokenizeReferenceFull(effects, ok, nok) {\n const self = this;\n return referenceFull;\n\n /**\n * In a reference (full), at the `[`.\n *\n * ```markdown\n * > | [a][b] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceFull(code) {\n return factoryLabel.call(self, effects, referenceFullAfter, referenceFullMissing, \"reference\", \"referenceMarker\", \"referenceString\")(code);\n }\n\n /**\n * In a reference (full), after `]`.\n *\n * ```markdown\n * > | [a][b] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceFullAfter(code) {\n return self.parser.defined.includes(normalizeIdentifier(self.sliceSerialize(self.events[self.events.length - 1][1]).slice(1, -1))) ? ok(code) : nok(code);\n }\n\n /**\n * In reference (full) that was missing.\n *\n * ```markdown\n * > | [a][b d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceFullMissing(code) {\n return nok(code);\n }\n}\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Tokenizer}\n */\nfunction tokenizeReferenceCollapsed(effects, ok, nok) {\n return referenceCollapsedStart;\n\n /**\n * In reference (collapsed), at `[`.\n *\n * > 👉 **Note**: we only get here if the label is defined.\n *\n * ```markdown\n * > | [a][] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceCollapsedStart(code) {\n // We only attempt a collapsed label if there’s a `[`.\n\n effects.enter(\"reference\");\n effects.enter(\"referenceMarker\");\n effects.consume(code);\n effects.exit(\"referenceMarker\");\n return referenceCollapsedOpen;\n }\n\n /**\n * In reference (collapsed), at `]`.\n *\n * > 👉 **Note**: we only get here if the label is defined.\n *\n * ```markdown\n * > | [a][] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceCollapsedOpen(code) {\n if (code === 93) {\n effects.enter(\"referenceMarker\");\n effects.consume(code);\n effects.exit(\"referenceMarker\");\n effects.exit(\"reference\");\n return ok;\n }\n return nok(code);\n }\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AAqBA,IAAa,IAAW;CACtB,MAAM;CACN,YAAY;CACZ,WAAW;CACX,UAAU;CACX,EAGK,IAAoB,EACxB,UAAU,GACX,EAEK,IAAyB,EAC7B,UAAU,GACX,EAEK,IAA8B,EAClC,UAAU,GACX;AAGD,SAAS,EAAmB,GAAQ;CAClC,IAAI,IAAQ,IAEN,IAAY,EAAE;AACpB,QAAO,EAAE,IAAQ,EAAO,SAAQ;EAC9B,IAAM,IAAQ,EAAO,GAAO;AAE5B,MADA,EAAU,KAAK,EAAO,GAAO,EACzB,EAAM,SAAS,gBAAgB,EAAM,SAAS,eAAe,EAAM,SAAS,YAAY;GAE1F,IAAM,IAAS,EAAM,SAAS,eAAe,IAAI;AAEjD,GADA,EAAM,OAAO,QACb,KAAS;;;AAQb,QAHI,EAAO,WAAW,EAAU,UAC9B,EAAO,GAAQ,GAAG,EAAO,QAAQ,EAAU,EAEtC;;AAIT,SAAS,EAAkB,GAAQ,GAAS;CAC1C,IAAI,IAAQ,EAAO,QACf,IAAS,GAET,GAEA,GAEA,GAEA;AAGJ,QAAO,KAEL,KADA,IAAQ,EAAO,GAAO,IAClB,GAAM;AAER,MAAI,EAAM,SAAS,UAAU,EAAM,SAAS,eAAe,EAAM,UAC/D;AAKF,EAAI,EAAO,GAAO,OAAO,WAAW,EAAM,SAAS,gBACjD,EAAM,YAAY;YAEX;MACL,EAAO,GAAO,OAAO,YAAY,EAAM,SA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AAC,MAAM,GAAG,GAAG,CAAC,CAAC,GAAG,EAAG,EAAK,GAAG,EAAI,EAAK;;CAa3J,SAAS,EAAqB,GAAM;AAClC,SAAO,EAAI,EAAK;;;AASpB,SAAS,EAA2B,GAAS,GAAI,GAAK;AACpD,QAAO;CAcP,SAAS,EAAwB,GAAM;AAOrC,SAJA,EAAQ,MAAM,YAAY,EAC1B,EAAQ,MAAM,kBAAkB,EAChC,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,kBAAkB,EACxB;;CAeT,SAAS,EAAuB,GAAM;AAQpC,SAPI,MAAS,MACX,EAAQ,MAAM,kBAAkB,EAChC,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,kBAAkB,EAC/B,EAAQ,KAAK,YAAY,EAClB,KAEF,EAAI,EAAK"}
@@ -0,0 +1,25 @@
1
+ import { labelEnd as e } from "./label-end.js";
2
+ //#region node_modules/micromark-core-commonmark/lib/label-start-image.js
3
+ var t = {
4
+ name: "labelStartImage",
5
+ resolveAll: e.resolveAll,
6
+ tokenize: n
7
+ };
8
+ function n(e, t, n) {
9
+ let r = this;
10
+ return i;
11
+ function i(t) {
12
+ return e.enter("labelImage"), e.enter("labelImageMarker"), e.consume(t), e.exit("labelImageMarker"), a;
13
+ }
14
+ function a(t) {
15
+ return t === 91 ? (e.enter("labelMarker"), e.consume(t), e.exit("labelMarker"), e.exit("labelImage"), o) : n(t);
16
+ }
17
+ function o(e) {
18
+ /* c8 ignore next 3 */
19
+ return e === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(e) : t(e);
20
+ }
21
+ }
22
+ //#endregion
23
+ export { t as labelStartImage };
24
+
25
+ //# sourceMappingURL=label-start-image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label-start-image.js","names":[],"sources":["../../../../node_modules/micromark-core-commonmark/lib/label-start-image.js"],"sourcesContent":["/**\n * @import {\n * Construct,\n * State,\n * TokenizeContext,\n * Tokenizer\n * } from 'micromark-util-types'\n */\n\nimport { labelEnd } from './label-end.js';\n\n/** @type {Construct} */\nexport const labelStartImage = {\n name: 'labelStartImage',\n resolveAll: labelEnd.resolveAll,\n tokenize: tokenizeLabelStartImage\n};\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Tokenizer}\n */\nfunction tokenizeLabelStartImage(effects, ok, nok) {\n const self = this;\n return start;\n\n /**\n * Start of label (image) start.\n *\n * ```markdown\n * > | a ![b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter(\"labelImage\");\n effects.enter(\"labelImageMarker\");\n effects.consume(code);\n effects.exit(\"labelImageMarker\");\n return open;\n }\n\n /**\n * After `!`, at `[`.\n *\n * ```markdown\n * > | a ![b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (code === 91) {\n effects.enter(\"labelMarker\");\n effects.consume(code);\n effects.exit(\"labelMarker\");\n effects.exit(\"labelImage\");\n return after;\n }\n return nok(code);\n }\n\n /**\n * After `![`.\n *\n * ```markdown\n * > | a ![b] c\n * ^\n * ```\n *\n * This is needed in because, when GFM footnotes are enabled, images never\n * form when started with a `^`.\n * Instead, links form:\n *\n * ```markdown\n * ![^a](b)\n *\n * ![^a][b]\n *\n * [b]: c\n * ```\n *\n * ```html\n * <p>!<a href=\\\"b\\\">^a</a></p>\n * <p>!<a href=\\\"c\\\">^a</a></p>\n * ```\n *\n * @type {State}\n */\n function after(code) {\n // To do: use a new field to do this, this is still needed for\n // `micromark-extension-gfm-footnote`, but the `label-start-link`\n // behavior isn’t.\n // Hidden footnotes hook.\n /* c8 ignore next 3 */\n return code === 94 && '_hiddenFootnoteSupport' in self.parser.constructs ? nok(code) : ok(code);\n }\n}"],"x_google_ignoreList":[0],"mappings":";;AAYA,IAAa,IAAkB;CAC7B,MAAM;CACN,YAAY,EAAS;CACrB,UAAU;CACX;AAOD,SAAS,EAAwB,GAAS,GAAI,GAAK;CACjD,IAAM,IAAO;AACb,QAAO;CAYP,SAAS,EAAM,GAAM;AAKnB,SAJA,EAAQ,MAAM,aAAa,EAC3B,EAAQ,MAAM,mBAAmB,EACjC,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,mBAAmB,EACzB;;CAaT,SAAS,EAAK,GAAM;AAQlB,SAPI,MAAS,MACX,EAAQ,MAAM,cAAc,EAC5B,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,cAAc,EAC3B,EAAQ,KAAK,aAAa,EACnB,KAEF,EAAI,EAAK;;CA8BlB,SAAS,EAAM,GAAM;;AAMnB,SAAO,MAAS,MAAM,4BAA4B,EAAK,OAAO,aAAa,EAAI,EAAK,GAAG,EAAG,EAAK"}
@@ -0,0 +1,22 @@
1
+ import { labelEnd as e } from "./label-end.js";
2
+ //#region node_modules/micromark-core-commonmark/lib/label-start-link.js
3
+ var t = {
4
+ name: "labelStartLink",
5
+ resolveAll: e.resolveAll,
6
+ tokenize: n
7
+ };
8
+ function n(e, t, n) {
9
+ let r = this;
10
+ return i;
11
+ function i(t) {
12
+ return e.enter("labelLink"), e.enter("labelMarker"), e.consume(t), e.exit("labelMarker"), e.exit("labelLink"), a;
13
+ }
14
+ function a(e) {
15
+ /* c8 ignore next 3 */
16
+ return e === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(e) : t(e);
17
+ }
18
+ }
19
+ //#endregion
20
+ export { t as labelStartLink };
21
+
22
+ //# sourceMappingURL=label-start-link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label-start-link.js","names":[],"sources":["../../../../node_modules/micromark-core-commonmark/lib/label-start-link.js"],"sourcesContent":["/**\n * @import {\n * Construct,\n * State,\n * TokenizeContext,\n * Tokenizer\n * } from 'micromark-util-types'\n */\n\nimport { labelEnd } from './label-end.js';\n\n/** @type {Construct} */\nexport const labelStartLink = {\n name: 'labelStartLink',\n resolveAll: labelEnd.resolveAll,\n tokenize: tokenizeLabelStartLink\n};\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Tokenizer}\n */\nfunction tokenizeLabelStartLink(effects, ok, nok) {\n const self = this;\n return start;\n\n /**\n * Start of label (link) start.\n *\n * ```markdown\n * > | a [b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter(\"labelLink\");\n effects.enter(\"labelMarker\");\n effects.consume(code);\n effects.exit(\"labelMarker\");\n effects.exit(\"labelLink\");\n return after;\n }\n\n /** @type {State} */\n function after(code) {\n // To do: this isn’t needed in `micromark-extension-gfm-footnote`,\n // remove.\n // Hidden footnotes hook.\n /* c8 ignore next 3 */\n return code === 94 && '_hiddenFootnoteSupport' in self.parser.constructs ? nok(code) : ok(code);\n }\n}"],"x_google_ignoreList":[0],"mappings":";;AAYA,IAAa,IAAiB;CAC5B,MAAM;CACN,YAAY,EAAS;CACrB,UAAU;CACX;AAOD,SAAS,EAAuB,GAAS,GAAI,GAAK;CAChD,IAAM,IAAO;AACb,QAAO;CAYP,SAAS,EAAM,GAAM;AAMnB,SALA,EAAQ,MAAM,YAAY,EAC1B,EAAQ,MAAM,cAAc,EAC5B,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,cAAc,EAC3B,EAAQ,KAAK,YAAY,EAClB;;CAIT,SAAS,EAAM,GAAM;;AAKnB,SAAO,MAAS,MAAM,4BAA4B,EAAK,OAAO,aAAa,EAAI,EAAK,GAAG,EAAG,EAAK"}
@@ -0,0 +1,16 @@
1
+ import { factorySpace as e } from "../../micromark-factory-space/index.js";
2
+ //#region node_modules/micromark-core-commonmark/lib/line-ending.js
3
+ var t = {
4
+ name: "lineEnding",
5
+ tokenize: n
6
+ };
7
+ function n(t, n) {
8
+ return r;
9
+ function r(r) {
10
+ return t.enter("lineEnding"), t.consume(r), t.exit("lineEnding"), e(t, n, "linePrefix");
11
+ }
12
+ }
13
+ //#endregion
14
+ export { t as lineEnding };
15
+
16
+ //# sourceMappingURL=line-ending.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line-ending.js","names":[],"sources":["../../../../node_modules/micromark-core-commonmark/lib/line-ending.js"],"sourcesContent":["/**\n * @import {\n * Construct,\n * State,\n * TokenizeContext,\n * Tokenizer\n * } from 'micromark-util-types'\n */\n\nimport { factorySpace } from 'micromark-factory-space';\nimport { markdownLineEnding } from 'micromark-util-character';\n/** @type {Construct} */\nexport const lineEnding = {\n name: 'lineEnding',\n tokenize: tokenizeLineEnding\n};\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Tokenizer}\n */\nfunction tokenizeLineEnding(effects, ok) {\n return start;\n\n /** @type {State} */\n function start(code) {\n effects.enter(\"lineEnding\");\n effects.consume(code);\n effects.exit(\"lineEnding\");\n return factorySpace(effects, ok, \"linePrefix\");\n }\n}"],"x_google_ignoreList":[0],"mappings":";;AAYA,IAAa,IAAa;CACxB,MAAM;CACN,UAAU;CACX;AAOD,SAAS,EAAmB,GAAS,GAAI;AACvC,QAAO;CAGP,SAAS,EAAM,GAAM;AAInB,SAHA,EAAQ,MAAM,aAAa,EAC3B,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,aAAa,EACnB,EAAa,GAAS,GAAI,aAAa"}
@@ -0,0 +1,80 @@
1
+ import { asciiDigit as e, markdownSpace as t } from "../../micromark-util-character/index.js";
2
+ import { factorySpace as n } from "../../micromark-factory-space/index.js";
3
+ import { blankLine as r } from "./blank-line.js";
4
+ import { thematicBreak as i } from "./thematic-break.js";
5
+ //#region node_modules/micromark-core-commonmark/lib/list.js
6
+ var a = {
7
+ continuation: { tokenize: l },
8
+ exit: d,
9
+ name: "list",
10
+ tokenize: c
11
+ }, o = {
12
+ partial: !0,
13
+ tokenize: f
14
+ }, s = {
15
+ partial: !0,
16
+ tokenize: u
17
+ };
18
+ function c(n, a, s) {
19
+ let c = this, l = c.events[c.events.length - 1], u = l && l[1].type === "linePrefix" ? l[2].sliceSerialize(l[1], !0).length : 0, d = 0;
20
+ return f;
21
+ function f(t) {
22
+ let r = c.containerState.type || (t === 42 || t === 43 || t === 45 ? "listUnordered" : "listOrdered");
23
+ if (r === "listUnordered" ? !c.containerState.marker || t === c.containerState.marker : e(t)) {
24
+ if (c.containerState.type || (c.containerState.type = r, n.enter(r, { _container: !0 })), r === "listUnordered") return n.enter("listItemPrefix"), t === 42 || t === 45 ? n.check(i, s, m)(t) : m(t);
25
+ if (!c.interrupt || t === 49) return n.enter("listItemPrefix"), n.enter("listItemValue"), p(t);
26
+ }
27
+ return s(t);
28
+ }
29
+ function p(t) {
30
+ return e(t) && ++d < 10 ? (n.consume(t), p) : (!c.interrupt || d < 2) && (c.containerState.marker ? t === c.containerState.marker : t === 41 || t === 46) ? (n.exit("listItemValue"), m(t)) : s(t);
31
+ }
32
+ function m(e) {
33
+ return n.enter("listItemMarker"), n.consume(e), n.exit("listItemMarker"), c.containerState.marker = c.containerState.marker || e, n.check(r, c.interrupt ? s : h, n.attempt(o, _, g));
34
+ }
35
+ function h(e) {
36
+ return c.containerState.initialBlankLine = !0, u++, _(e);
37
+ }
38
+ function g(e) {
39
+ return t(e) ? (n.enter("listItemPrefixWhitespace"), n.consume(e), n.exit("listItemPrefixWhitespace"), _) : s(e);
40
+ }
41
+ function _(e) {
42
+ return c.containerState.size = u + c.sliceSerialize(n.exit("listItemPrefix"), !0).length, a(e);
43
+ }
44
+ }
45
+ function l(e, i, o) {
46
+ let c = this;
47
+ return c.containerState._closeFlow = void 0, e.check(r, l, u);
48
+ function l(t) {
49
+ return c.containerState.furtherBlankLines = c.containerState.furtherBlankLines || c.containerState.initialBlankLine, n(e, i, "listItemIndent", c.containerState.size + 1)(t);
50
+ }
51
+ function u(n) {
52
+ return c.containerState.furtherBlankLines || !t(n) ? (c.containerState.furtherBlankLines = void 0, c.containerState.initialBlankLine = void 0, d(n)) : (c.containerState.furtherBlankLines = void 0, c.containerState.initialBlankLine = void 0, e.attempt(s, i, d)(n));
53
+ }
54
+ function d(t) {
55
+ return c.containerState._closeFlow = !0, c.interrupt = void 0, n(e, e.attempt(a, i, o), "linePrefix", c.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(t);
56
+ }
57
+ }
58
+ function u(e, t, r) {
59
+ let i = this;
60
+ return n(e, a, "listItemIndent", i.containerState.size + 1);
61
+ function a(e) {
62
+ let n = i.events[i.events.length - 1];
63
+ return n && n[1].type === "listItemIndent" && n[2].sliceSerialize(n[1], !0).length === i.containerState.size ? t(e) : r(e);
64
+ }
65
+ }
66
+ function d(e) {
67
+ e.exit(this.containerState.type);
68
+ }
69
+ function f(e, r, i) {
70
+ let a = this;
71
+ return n(e, o, "listItemPrefixWhitespace", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
72
+ function o(e) {
73
+ let n = a.events[a.events.length - 1];
74
+ return !t(e) && n && n[1].type === "listItemPrefixWhitespace" ? r(e) : i(e);
75
+ }
76
+ }
77
+ //#endregion
78
+ export { a as list };
79
+
80
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","names":[],"sources":["../../../../node_modules/micromark-core-commonmark/lib/list.js"],"sourcesContent":["/**\n * @import {\n * Code,\n * Construct,\n * Exiter,\n * State,\n * TokenizeContext,\n * Tokenizer\n * } from 'micromark-util-types'\n */\n\nimport { factorySpace } from 'micromark-factory-space';\nimport { asciiDigit, markdownSpace } from 'micromark-util-character';\nimport { blankLine } from './blank-line.js';\nimport { thematicBreak } from './thematic-break.js';\n\n/** @type {Construct} */\nexport const list = {\n continuation: {\n tokenize: tokenizeListContinuation\n },\n exit: tokenizeListEnd,\n name: 'list',\n tokenize: tokenizeListStart\n};\n\n/** @type {Construct} */\nconst listItemPrefixWhitespaceConstruct = {\n partial: true,\n tokenize: tokenizeListItemPrefixWhitespace\n};\n\n/** @type {Construct} */\nconst indentConstruct = {\n partial: true,\n tokenize: tokenizeIndent\n};\n\n// To do: `markdown-rs` parses list items on their own and later stitches them\n// together.\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Tokenizer}\n */\nfunction tokenizeListStart(effects, ok, nok) {\n const self = this;\n const tail = self.events[self.events.length - 1];\n let initialSize = tail && tail[1].type === \"linePrefix\" ? tail[2].sliceSerialize(tail[1], true).length : 0;\n let size = 0;\n return start;\n\n /** @type {State} */\n function start(code) {\n const kind = self.containerState.type || (code === 42 || code === 43 || code === 45 ? \"listUnordered\" : \"listOrdered\");\n if (kind === \"listUnordered\" ? !self.containerState.marker || code === self.containerState.marker : asciiDigit(code)) {\n if (!self.containerState.type) {\n self.containerState.type = kind;\n effects.enter(kind, {\n _container: true\n });\n }\n if (kind === \"listUnordered\") {\n effects.enter(\"listItemPrefix\");\n return code === 42 || code === 45 ? effects.check(thematicBreak, nok, atMarker)(code) : atMarker(code);\n }\n if (!self.interrupt || code === 49) {\n effects.enter(\"listItemPrefix\");\n effects.enter(\"listItemValue\");\n return inside(code);\n }\n }\n return nok(code);\n }\n\n /** @type {State} */\n function inside(code) {\n if (asciiDigit(code) && ++size < 10) {\n effects.consume(code);\n return inside;\n }\n if ((!self.interrupt || size < 2) && (self.containerState.marker ? code === self.containerState.marker : code === 41 || code === 46)) {\n effects.exit(\"listItemValue\");\n return atMarker(code);\n }\n return nok(code);\n }\n\n /**\n * @type {State}\n **/\n function atMarker(code) {\n effects.enter(\"listItemMarker\");\n effects.consume(code);\n effects.exit(\"listItemMarker\");\n self.containerState.marker = self.containerState.marker || code;\n return effects.check(blankLine,\n // Can’t be empty when interrupting.\n self.interrupt ? nok : onBlank, effects.attempt(listItemPrefixWhitespaceConstruct, endOfPrefix, otherPrefix));\n }\n\n /** @type {State} */\n function onBlank(code) {\n self.containerState.initialBlankLine = true;\n initialSize++;\n return endOfPrefix(code);\n }\n\n /** @type {State} */\n function otherPrefix(code) {\n if (markdownSpace(code)) {\n effects.enter(\"listItemPrefixWhitespace\");\n effects.consume(code);\n effects.exit(\"listItemPrefixWhitespace\");\n return endOfPrefix;\n }\n return nok(code);\n }\n\n /** @type {State} */\n function endOfPrefix(code) {\n self.containerState.size = initialSize + self.sliceSerialize(effects.exit(\"listItemPrefix\"), true).length;\n return ok(code);\n }\n}\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Tokenizer}\n */\nfunction tokenizeListContinuation(effects, ok, nok) {\n const self = this;\n self.containerState._closeFlow = undefined;\n return effects.check(blankLine, onBlank, notBlank);\n\n /** @type {State} */\n function onBlank(code) {\n self.containerState.furtherBlankLines = self.containerState.furtherBlankLines || self.containerState.initialBlankLine;\n\n // We have a blank line.\n // Still, try to consume at most the items size.\n return factorySpace(effects, ok, \"listItemIndent\", self.containerState.size + 1)(code);\n }\n\n /** @type {State} */\n function notBlank(code) {\n if (self.containerState.furtherBlankLines || !markdownSpace(code)) {\n self.containerState.furtherBlankLines = undefined;\n self.containerState.initialBlankLine = undefined;\n return notInCurrentItem(code);\n }\n self.containerState.furtherBlankLines = undefined;\n self.containerState.initialBlankLine = undefined;\n return effects.attempt(indentConstruct, ok, notInCurrentItem)(code);\n }\n\n /** @type {State} */\n function notInCurrentItem(code) {\n // While we do continue, we signal that the flow should be closed.\n self.containerState._closeFlow = true;\n // As we’re closing flow, we’re no longer interrupting.\n self.interrupt = undefined;\n // Always populated by defaults.\n\n return factorySpace(effects, effects.attempt(list, ok, nok), \"linePrefix\", self.parser.constructs.disable.null.includes('codeIndented') ? undefined : 4)(code);\n }\n}\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Tokenizer}\n */\nfunction tokenizeIndent(effects, ok, nok) {\n const self = this;\n return factorySpace(effects, afterPrefix, \"listItemIndent\", self.containerState.size + 1);\n\n /** @type {State} */\n function afterPrefix(code) {\n const tail = self.events[self.events.length - 1];\n return tail && tail[1].type === \"listItemIndent\" && tail[2].sliceSerialize(tail[1], true).length === self.containerState.size ? ok(code) : nok(code);\n }\n}\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Exiter}\n */\nfunction tokenizeListEnd(effects) {\n effects.exit(this.containerState.type);\n}\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Tokenizer}\n */\nfunction tokenizeListItemPrefixWhitespace(effects, ok, nok) {\n const self = this;\n\n // Always populated by defaults.\n\n return factorySpace(effects, afterPrefix, \"listItemPrefixWhitespace\", self.parser.constructs.disable.null.includes('codeIndented') ? undefined : 4 + 1);\n\n /** @type {State} */\n function afterPrefix(code) {\n const tail = self.events[self.events.length - 1];\n return !markdownSpace(code) && tail && tail[1].type === \"listItemPrefixWhitespace\" ? ok(code) : nok(code);\n }\n}"],"x_google_ignoreList":[0],"mappings":";;;;;AAiBA,IAAa,IAAO;CAClB,cAAc,EACZ,UAAU,GACX;CACD,MAAM;CACN,MAAM;CACN,UAAU;CACX,EAGK,IAAoC;CACxC,SAAS;CACT,UAAU;CACX,EAGK,IAAkB;CACtB,SAAS;CACT,UAAU;CACX;AAUD,SAAS,EAAkB,GAAS,GAAI,GAAK;CAC3C,IAAM,IAAO,MACP,IAAO,EAAK,OAAO,EAAK,OAAO,SAAS,IAC1C,IAAc,KAAQ,EAAK,GAAG,SAAS,eAAe,EAAK,GAAG,eAAe,EAAK,IAAI,GAAK,CAAC,SAAS,GACrG,IAAO;AACX,QAAO;CAGP,SAAS,EAAM,GAAM;EACnB,IAAM,IAAO,EAAK,eAAe,SAAS,MAAS,MAAM,MAAS,MAAM,MAAS,KAAK,kBAAkB;AACxG,MAAI,MAAS,kBAAkB,CAAC,EAAK,eAAe,UAAU,MAAS,EAAK,eAAe,SAAS,EAAW,EAAK,EAAE;AAOpH,OANK,EAAK,eAAe,SACvB,EAAK,eAAe,OAAO,GAC3B,EAAQ,MAAM,GAAM,EAClB,YAAY,IACb,CAAC,GAEA,MAAS,gBAEX,QADA,EAAQ,MAAM,iBAAiB,EACxB,MAAS,MAAM,MAAS,KAAK,EAAQ,MAAM,GAAe,GAAK,EAAS,CAAC,EAAK,GAAG,EAAS,EAAK;AAExG,OAAI,CAAC,EAAK,aAAa,MAAS,GAG9B,QAFA,EAAQ,MAAM,iBAAiB,EAC/B,EAAQ,MAAM,gBAAgB,EACvB,EAAO,EAAK;;AAGvB,SAAO,EAAI,EAAK;;CAIlB,SAAS,EAAO,GAAM;AASpB,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/index.js";
2
+ import { factorySpace as n } from "../../micromark-factory-space/index.js";
3
+ //#region node_modules/micromark-core-commonmark/lib/setext-underline.js
4
+ var r = {
5
+ name: "setextUnderline",
6
+ resolveTo: i,
7
+ tokenize: a
8
+ };
9
+ function i(e, t) {
10
+ let n = e.length, r, i, a;
11
+ for (; n--;) if (e[n][0] === "enter") {
12
+ if (e[n][1].type === "content") {
13
+ r = n;
14
+ break;
15
+ }
16
+ e[n][1].type === "paragraph" && (i = n);
17
+ } else e[n][1].type === "content" && e.splice(n, 1), !a && e[n][1].type === "definition" && (a = n);
18
+ let o = {
19
+ type: "setextHeading",
20
+ start: { ...e[r][1].start },
21
+ end: { ...e[e.length - 1][1].end }
22
+ };
23
+ return e[i][1].type = "setextHeadingText", a ? (e.splice(i, 0, [
24
+ "enter",
25
+ o,
26
+ t
27
+ ]), e.splice(a + 1, 0, [
28
+ "exit",
29
+ e[r][1],
30
+ t
31
+ ]), e[r][1].end = { ...e[a][1].end }) : e[r][1] = o, e.push([
32
+ "exit",
33
+ o,
34
+ t
35
+ ]), e;
36
+ }
37
+ function a(r, i, a) {
38
+ let o = this, s;
39
+ return c;
40
+ function c(e) {
41
+ let t = o.events.length, n;
42
+ for (; t--;) if (o.events[t][1].type !== "lineEnding" && o.events[t][1].type !== "linePrefix" && o.events[t][1].type !== "content") {
43
+ n = o.events[t][1].type === "paragraph";
44
+ break;
45
+ }
46
+ return !o.parser.lazy[o.now().line] && (o.interrupt || n) ? (r.enter("setextHeadingLine"), s = e, l(e)) : a(e);
47
+ }
48
+ function l(e) {
49
+ return r.enter("setextHeadingLineSequence"), u(e);
50
+ }
51
+ function u(e) {
52
+ return e === s ? (r.consume(e), u) : (r.exit("setextHeadingLineSequence"), t(e) ? n(r, d, "lineSuffix")(e) : d(e));
53
+ }
54
+ function d(t) {
55
+ return t === null || e(t) ? (r.exit("setextHeadingLine"), i(t)) : a(t);
56
+ }
57
+ }
58
+ //#endregion
59
+ export { r as setextUnderline };
60
+
61
+ //# sourceMappingURL=setext-underline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setext-underline.js","names":[],"sources":["../../../../node_modules/micromark-core-commonmark/lib/setext-underline.js"],"sourcesContent":["/**\n * @import {\n * Code,\n * Construct,\n * Resolver,\n * State,\n * TokenizeContext,\n * Tokenizer\n * } from 'micromark-util-types'\n */\n\nimport { factorySpace } from 'micromark-factory-space';\nimport { markdownLineEnding, markdownSpace } from 'micromark-util-character';\n/** @type {Construct} */\nexport const setextUnderline = {\n name: 'setextUnderline',\n resolveTo: resolveToSetextUnderline,\n tokenize: tokenizeSetextUnderline\n};\n\n/** @type {Resolver} */\nfunction resolveToSetextUnderline(events, context) {\n // To do: resolve like `markdown-rs`.\n let index = events.length;\n /** @type {number | undefined} */\n let content;\n /** @type {number | undefined} */\n let text;\n /** @type {number | undefined} */\n let definition;\n\n // Find the opening of the content.\n // It’ll always exist: we don’t tokenize if it isn’t there.\n while (index--) {\n if (events[index][0] === 'enter') {\n if (events[index][1].type === \"content\") {\n content = index;\n break;\n }\n if (events[index][1].type === \"paragraph\") {\n text = index;\n }\n }\n // Exit\n else {\n if (events[index][1].type === \"content\") {\n // Remove the content end (if needed we’ll add it later)\n events.splice(index, 1);\n }\n if (!definition && events[index][1].type === \"definition\") {\n definition = index;\n }\n }\n }\n const heading = {\n type: \"setextHeading\",\n start: {\n ...events[content][1].start\n },\n end: {\n ...events[events.length - 1][1].end\n }\n };\n\n // Change the paragraph to setext heading text.\n events[text][1].type = \"setextHeadingText\";\n\n // If we have definitions in the content, we’ll keep on having content,\n // but we need move it.\n if (definition) {\n events.splice(text, 0, ['enter', heading, context]);\n events.splice(definition + 1, 0, ['exit', events[content][1], context]);\n events[content][1].end = {\n ...events[definition][1].end\n };\n } else {\n events[content][1] = heading;\n }\n\n // Add the heading exit at the end.\n events.push(['exit', heading, context]);\n return events;\n}\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Tokenizer}\n */\nfunction tokenizeSetextUnderline(effects, ok, nok) {\n const self = this;\n /** @type {NonNullable<Code>} */\n let marker;\n return start;\n\n /**\n * At start of heading (setext) underline.\n *\n * ```markdown\n * | aa\n * > | ==\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n let index = self.events.length;\n /** @type {boolean | undefined} */\n let paragraph;\n // Find an opening.\n while (index--) {\n // Skip enter/exit of line ending, line prefix, and content.\n // We can now either have a definition or a paragraph.\n if (self.events[index][1].type !== \"lineEnding\" && self.events[index][1].type !== \"linePrefix\" && self.events[index][1].type !== \"content\") {\n paragraph = self.events[index][1].type === \"paragraph\";\n break;\n }\n }\n\n // To do: handle lazy/pierce like `markdown-rs`.\n // To do: parse indent like `markdown-rs`.\n if (!self.parser.lazy[self.now().line] && (self.interrupt || paragraph)) {\n effects.enter(\"setextHeadingLine\");\n marker = code;\n return before(code);\n }\n return nok(code);\n }\n\n /**\n * After optional whitespace, at `-` or `=`.\n *\n * ```markdown\n * | aa\n * > | ==\n * ^\n * ```\n *\n * @type {State}\n */\n function before(code) {\n effects.enter(\"setextHeadingLineSequence\");\n return inside(code);\n }\n\n /**\n * In sequence.\n *\n * ```markdown\n * | aa\n * > | ==\n * ^\n * ```\n *\n * @type {State}\n */\n function inside(code) {\n if (code === marker) {\n effects.consume(code);\n return inside;\n }\n effects.exit(\"setextHeadingLineSequence\");\n return markdownSpace(code) ? factorySpace(effects, after, \"lineSuffix\")(code) : after(code);\n }\n\n /**\n * After sequence, after optional whitespace.\n *\n * ```markdown\n * | aa\n * > | ==\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit(\"setextHeadingLine\");\n return ok(code);\n }\n return nok(code);\n }\n}"],"x_google_ignoreList":[0],"mappings":";;;AAcA,IAAa,IAAkB;CAC7B,MAAM;CACN,WAAW;CACX,UAAU;CACX;AAGD,SAAS,EAAyB,GAAQ,GAAS;CAEjD,IAAI,IAAQ,EAAO,QAEf,GAEA,GAEA;AAIJ,QAAO,KACL,KAA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AEpB,SADA,EAAQ,MAAM,4BAA4B,EACnC,EAAO,EAAK;;CAcrB,SAAS,EAAO,GAAM;AAMpB,SALI,MAAS,KACX,EAAQ,QAAQ,EAAK,EACd,MAET,EAAQ,KAAK,4BAA4B,EAClC,EAAc,EAAK,GAAG,EAAa,GAAS,GAAO,aAAa,CAAC,EAAK,GAAG,EAAM,EAAK;;CAc7F,SAAS,EAAM,GAAM;AAKnB,SAJI,MAAS,QAAQ,EAAmB,EAAK,IAC3C,EAAQ,KAAK,oBAAoB,EAC1B,EAAG,EAAK,IAEV,EAAI,EAAK"}
@@ -0,0 +1,27 @@
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-core-commonmark/lib/thematic-break.js
4
+ var r = {
5
+ name: "thematicBreak",
6
+ tokenize: i
7
+ };
8
+ function i(r, i, a) {
9
+ let o = 0, s;
10
+ return c;
11
+ function c(e) {
12
+ return r.enter("thematicBreak"), l(e);
13
+ }
14
+ function l(e) {
15
+ return s = e, u(e);
16
+ }
17
+ function u(t) {
18
+ return t === s ? (r.enter("thematicBreakSequence"), d(t)) : o >= 3 && (t === null || e(t)) ? (r.exit("thematicBreak"), i(t)) : a(t);
19
+ }
20
+ function d(e) {
21
+ return e === s ? (r.consume(e), o++, d) : (r.exit("thematicBreakSequence"), t(e) ? n(r, u, "whitespace")(e) : u(e));
22
+ }
23
+ }
24
+ //#endregion
25
+ export { r as thematicBreak };
26
+
27
+ //# sourceMappingURL=thematic-break.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thematic-break.js","names":[],"sources":["../../../../node_modules/micromark-core-commonmark/lib/thematic-break.js"],"sourcesContent":["/**\n * @import {\n * Code,\n * Construct,\n * State,\n * TokenizeContext,\n * Tokenizer\n * } from 'micromark-util-types'\n */\n\nimport { factorySpace } from 'micromark-factory-space';\nimport { markdownLineEnding, markdownSpace } from 'micromark-util-character';\n/** @type {Construct} */\nexport const thematicBreak = {\n name: 'thematicBreak',\n tokenize: tokenizeThematicBreak\n};\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Tokenizer}\n */\nfunction tokenizeThematicBreak(effects, ok, nok) {\n let size = 0;\n /** @type {NonNullable<Code>} */\n let marker;\n return start;\n\n /**\n * Start of thematic break.\n *\n * ```markdown\n * > | ***\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter(\"thematicBreak\");\n // To do: parse indent like `markdown-rs`.\n return before(code);\n }\n\n /**\n * After optional whitespace, at marker.\n *\n * ```markdown\n * > | ***\n * ^\n * ```\n *\n * @type {State}\n */\n function before(code) {\n marker = code;\n return atBreak(code);\n }\n\n /**\n * After something, before something else.\n *\n * ```markdown\n * > | ***\n * ^\n * ```\n *\n * @type {State}\n */\n function atBreak(code) {\n if (code === marker) {\n effects.enter(\"thematicBreakSequence\");\n return sequence(code);\n }\n if (size >= 3 && (code === null || markdownLineEnding(code))) {\n effects.exit(\"thematicBreak\");\n return ok(code);\n }\n return nok(code);\n }\n\n /**\n * In sequence.\n *\n * ```markdown\n * > | ***\n * ^\n * ```\n *\n * @type {State}\n */\n function sequence(code) {\n if (code === marker) {\n effects.consume(code);\n size++;\n return sequence;\n }\n effects.exit(\"thematicBreakSequence\");\n return markdownSpace(code) ? factorySpace(effects, atBreak, \"whitespace\")(code) : atBreak(code);\n }\n}"],"x_google_ignoreList":[0],"mappings":";;;AAaA,IAAa,IAAgB;CAC3B,MAAM;CACN,UAAU;CACX;AAOD,SAAS,EAAsB,GAAS,GAAI,GAAK;CAC/C,IAAI,IAAO,GAEP;AACJ,QAAO;CAYP,SAAS,EAAM,GAAM;AAGnB,SAFA,EAAQ,MAAM,gBAAgB,EAEvB,EAAO,EAAK;;CAarB,SAAS,EAAO,GAAM;AAEpB,SADA,IAAS,GACF,EAAQ,EAAK;;CAatB,SAAS,EAAQ,GAAM;AASrB,SARI,MAAS,KACX,EAAQ,MAAM,wBAAwB,EAC/B,EAAS,EAAK,IAEnB,KAAQ,MAAM,MAAS,QAAQ,EAAmB,EAAK,KACzD,EAAQ,KAAK,gBAAgB,EACtB,EAAG,EAAK,IAEV,EAAI,EAAK;;CAalB,SAAS,EAAS,GAAM;AAOtB,SANI,MAAS,KACX,EAAQ,QAAQ,EAAK,EACrB,KACO,MAET,EAAQ,KAAK,wBAAwB,EAC9B,EAAc,EAAK,GAAG,EAAa,GAAS,GAAS,aAAa,CAAC,EAAK,GAAG,EAAQ,EAAK"}
@@ -0,0 +1,28 @@
1
+ import { asciiControl as e, markdownLineEnding as t, markdownLineEndingOrSpace as n } from "../micromark-util-character/index.js";
2
+ //#region node_modules/micromark-factory-destination/index.js
3
+ function r(r, i, a, o, s, c, l, u, d) {
4
+ let f = d || Infinity, p = 0;
5
+ return m;
6
+ function m(t) {
7
+ return t === 60 ? (r.enter(o), r.enter(s), r.enter(c), r.consume(t), r.exit(c), h) : t === null || t === 32 || t === 41 || e(t) ? a(t) : (r.enter(o), r.enter(l), r.enter(u), r.enter("chunkString", { contentType: "string" }), v(t));
8
+ }
9
+ function h(e) {
10
+ return e === 62 ? (r.enter(c), r.consume(e), r.exit(c), r.exit(s), r.exit(o), i) : (r.enter(u), r.enter("chunkString", { contentType: "string" }), g(e));
11
+ }
12
+ function g(e) {
13
+ return e === 62 ? (r.exit("chunkString"), r.exit(u), h(e)) : e === null || e === 60 || t(e) ? a(e) : (r.consume(e), e === 92 ? _ : g);
14
+ }
15
+ function _(e) {
16
+ return e === 60 || e === 62 || e === 92 ? (r.consume(e), g) : g(e);
17
+ }
18
+ function v(t) {
19
+ return !p && (t === null || t === 41 || n(t)) ? (r.exit("chunkString"), r.exit(u), r.exit(l), r.exit(o), i(t)) : p < f && t === 40 ? (r.consume(t), p++, v) : t === 41 ? (r.consume(t), p--, v) : t === null || t === 32 || t === 40 || e(t) ? a(t) : (r.consume(t), t === 92 ? y : v);
20
+ }
21
+ function y(e) {
22
+ return e === 40 || e === 41 || e === 92 ? (r.consume(e), v) : v(e);
23
+ }
24
+ }
25
+ //#endregion
26
+ export { r as factoryDestination };
27
+
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/micromark-factory-destination/index.js"],"sourcesContent":["/**\n * @import {Effects, State, TokenType} from 'micromark-util-types'\n */\n\nimport { asciiControl, markdownLineEndingOrSpace, markdownLineEnding } from 'micromark-util-character';\n/**\n * Parse destinations.\n *\n * ###### Examples\n *\n * ```markdown\n * <a>\n * <a\\>b>\n * <a b>\n * <a)>\n * a\n * a\\)b\n * a(b)c\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 for whole (`<a>` or `b`).\n * @param {TokenType} literalType\n * Type when enclosed (`<a>`).\n * @param {TokenType} literalMarkerType\n * Type for enclosing (`<` and `>`).\n * @param {TokenType} rawType\n * Type when not enclosed (`b`).\n * @param {TokenType} stringType\n * Type for the value (`a` or `b`).\n * @param {number | undefined} [max=Infinity]\n * Depth of nested parens (inclusive).\n * @returns {State}\n * Start state.\n */\nexport function factoryDestination(effects, ok, nok, type, literalType, literalMarkerType, rawType, stringType, max) {\n const limit = max || Number.POSITIVE_INFINITY;\n let balance = 0;\n return start;\n\n /**\n * Start of destination.\n *\n * ```markdown\n * > | <aa>\n * ^\n * > | aa\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n if (code === 60) {\n effects.enter(type);\n effects.enter(literalType);\n effects.enter(literalMarkerType);\n effects.consume(code);\n effects.exit(literalMarkerType);\n return enclosedBefore;\n }\n\n // ASCII control, space, closing paren.\n if (code === null || code === 32 || code === 41 || asciiControl(code)) {\n return nok(code);\n }\n effects.enter(type);\n effects.enter(rawType);\n effects.enter(stringType);\n effects.enter(\"chunkString\", {\n contentType: \"string\"\n });\n return raw(code);\n }\n\n /**\n * After `<`, at an enclosed destination.\n *\n * ```markdown\n * > | <aa>\n * ^\n * ```\n *\n * @type {State}\n */\n function enclosedBefore(code) {\n if (code === 62) {\n effects.enter(literalMarkerType);\n effects.consume(code);\n effects.exit(literalMarkerType);\n effects.exit(literalType);\n effects.exit(type);\n return ok;\n }\n effects.enter(stringType);\n effects.enter(\"chunkString\", {\n contentType: \"string\"\n });\n return enclosed(code);\n }\n\n /**\n * In enclosed destination.\n *\n * ```markdown\n * > | <aa>\n * ^\n * ```\n *\n * @type {State}\n */\n function enclosed(code) {\n if (code === 62) {\n effects.exit(\"chunkString\");\n effects.exit(stringType);\n return enclosedBefore(code);\n }\n if (code === null || code === 60 || markdownLineEnding(code)) {\n return nok(code);\n }\n effects.consume(code);\n return code === 92 ? enclosedEscape : enclosed;\n }\n\n /**\n * After `\\`, at a special character.\n *\n * ```markdown\n * > | <a\\*a>\n * ^\n * ```\n *\n * @type {State}\n */\n function enclosedEscape(code) {\n if (code === 60 || code === 62 || code === 92) {\n effects.consume(code);\n return enclosed;\n }\n return enclosed(code);\n }\n\n /**\n * In raw destination.\n *\n * ```markdown\n * > | aa\n * ^\n * ```\n *\n * @type {State}\n */\n function raw(code) {\n if (!balance && (code === null || code === 41 || markdownLineEndingOrSpace(code))) {\n effects.exit(\"chunkString\");\n effects.exit(stringType);\n effects.exit(rawType);\n effects.exit(type);\n return ok(code);\n }\n if (balance < limit && code === 40) {\n effects.consume(code);\n balance++;\n return raw;\n }\n if (code === 41) {\n effects.consume(code);\n balance--;\n return raw;\n }\n\n // ASCII control (but *not* `\\0`) and space and `(`.\n // Note: in `markdown-rs`, `\\0` exists in codes, in `micromark-js` it\n // doesn’t.\n if (code === null || code === 32 || code === 40 || asciiControl(code)) {\n return nok(code);\n }\n effects.consume(code);\n return code === 92 ? rawEscape : raw;\n }\n\n /**\n * After `\\`, at special character.\n *\n * ```markdown\n * > | a\\*a\n * ^\n * ```\n *\n * @type {State}\n */\n function rawEscape(code) {\n if (code === 40 || code === 41 || code === 92) {\n effects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jB,SAzBI,CAAC,MAAY,MAAS,QAAQ,MAAS,MAAM,EAA0B,EAAK,KAC9E,EAAQ,KAAK,cAAc,EAC3B,EAAQ,KAAK,EAAW,EACxB,EAAQ,KAAK,EAAQ,EACrB,EAAQ,KAAK,EAAK,EACX,EAAG,EAAK,IAEb,IAAU,KAAS,MAAS,MAC9B,EAAQ,QAAQ,EAAK,EACrB,KACO,KAEL,MAAS,MACX,EAAQ,QAAQ,EAAK,EACrB,KACO,KAML,MAAS,QAAQ,MAAS,MAAM,MAAS,MAAM,EAAa,EAAK,GAC5D,EAAI,EAAK,IAElB,EAAQ,QAAQ,EAAK,EACd,MAAS,KAAK,IAAY;;CAanC,SAAS,EAAU,GAAM;AAKvB,SAJI,MAAS,MAAM,MAAS,MAAM,MAAS,MACzC,EAAQ,QAAQ,EAAK,EACd,KAEF,EAAI,EAAK"}
@@ -0,0 +1,22 @@
1
+ import { markdownLineEnding as e, markdownSpace as t } from "../micromark-util-character/index.js";
2
+ //#region node_modules/micromark-factory-label/index.js
3
+ function n(n, r, i, a, o, s) {
4
+ let c = this, l = 0, u;
5
+ return d;
6
+ function d(e) {
7
+ return n.enter(a), n.enter(o), n.consume(e), n.exit(o), n.enter(s), f;
8
+ }
9
+ function f(t) {
10
+ return l > 999 || t === null || t === 91 || t === 93 && !u || t === 94 && !l && "_hiddenFootnoteSupport" in c.parser.constructs ? i(t) : t === 93 ? (n.exit(s), n.enter(o), n.consume(t), n.exit(o), n.exit(a), r) : e(t) ? (n.enter("lineEnding"), n.consume(t), n.exit("lineEnding"), f) : (n.enter("chunkString", { contentType: "string" }), p(t));
11
+ }
12
+ function p(r) {
13
+ return r === null || r === 91 || r === 93 || e(r) || l++ > 999 ? (n.exit("chunkString"), f(r)) : (n.consume(r), u ||= !t(r), r === 92 ? m : p);
14
+ }
15
+ function m(e) {
16
+ return e === 91 || e === 92 || e === 93 ? (n.consume(e), l++, p) : p(e);
17
+ }
18
+ }
19
+ //#endregion
20
+ export { n as factoryLabel };
21
+
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/micromark-factory-label/index.js"],"sourcesContent":["/**\n * @import {\n * Effects,\n * State,\n * TokenizeContext,\n * TokenType\n * } from 'micromark-util-types'\n */\n\nimport { markdownLineEnding, markdownSpace } from 'micromark-util-character';\n/**\n * Parse labels.\n *\n * > 👉 **Note**: labels in markdown are capped at 999 characters in the string.\n *\n * ###### Examples\n *\n * ```markdown\n * [a]\n * [a\n * b]\n * [a\\]b]\n * ```\n *\n * @this {TokenizeContext}\n * Tokenize context.\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 label (`[a]`).\n * @param {TokenType} markerType\n * Type for the markers (`[` and `]`).\n * @param {TokenType} stringType\n * Type for the identifier (`a`).\n * @returns {State}\n * Start state.\n */\nexport function factoryLabel(effects, ok, nok, type, markerType, stringType) {\n const self = this;\n let size = 0;\n /** @type {boolean} */\n let seen;\n return start;\n\n /**\n * Start of label.\n *\n * ```markdown\n * > | [a]\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter(type);\n effects.enter(markerType);\n effects.consume(code);\n effects.exit(markerType);\n effects.enter(stringType);\n return atBreak;\n }\n\n /**\n * In label, at something, before something else.\n *\n * ```markdown\n * > | [a]\n * ^\n * ```\n *\n * @type {State}\n */\n function atBreak(code) {\n if (size > 999 || code === null || code === 91 || code === 93 && !seen ||\n // To do: remove in the future once we’ve switched from\n // `micromark-extension-footnote` to `micromark-extension-gfm-footnote`,\n // which doesn’t need this.\n // Hidden footnotes hook.\n /* c8 ignore next 3 */\n code === 94 && !size && '_hiddenFootnoteSupport' in self.parser.constructs) {\n return nok(code);\n }\n if (code === 93) {\n effects.exit(stringType);\n effects.enter(markerType);\n effects.consume(code);\n effects.exit(markerType);\n effects.exit(type);\n return ok;\n }\n\n // To do: indent? Link chunks and EOLs together?\n if (markdownLineEnding(code)) {\n effects.enter(\"lineEnding\");\n effects.consume(code);\n effects.exit(\"lineEnding\");\n return atBreak;\n }\n effects.enter(\"chunkString\", {\n contentType: \"string\"\n });\n return labelInside(code);\n }\n\n /**\n * In label, in text.\n *\n * ```markdown\n * > | [a]\n * ^\n * ```\n *\n * @type {State}\n */\n function labelInside(code) {\n if (code === null || code === 91 || code === 93 || markdownLineEnding(code) || size++ > 999) {\n effects.exit(\"chunkString\");\n return atBreak(code);\n }\n effects.consume(code);\n if (!seen) seen = !markdownSpace(code);\n return code === 92 ? labelEscape : labelInside;\n }\n\n /**\n * After `\\`, at a special character.\n *\n * ```markdown\n * > | [a\\*a]\n * ^\n * ```\n *\n * @type {State}\n */\n function labelEscape(code) {\n if (code === 91 || code === 92 || code === 93) {\n effects.consume(code);\n size++;\n return labelInside;\n }\n return labelInside(code);\n }\n}"],"x_google_ignoreList":[0],"mappings":";;AAyCA,SAAgB,EAAa,GAAS,GAAI,GAAK,GAAM,GAAY,GAAY;CAC3E,IAAM,IAAO,MACT,IAAO,GAEP;AACJ,QAAO;CAYP,SAAS,EAAM,GAAM;AAMnB,SALA,EAAQ,MAAM,EAAK,EACnB,EAAQ,MAAM,EAAW,EACzB,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,EAAW,EACxB,EAAQ,MAAM,EAAW,EAClB;;CAaT,SAAS,EAAQ,GAAM;AA6BrB,SA5BI,IAAO,OAAO,MAAS,QAAQ,MAAS,MAAM,MAAS,MAAM,CAAC,KAMlE,MAAS,MAAM,CAAC,KAAQ,4BAA4B,EAAK,OAAO,aACvD,EAAI,EAAK,GAEd,MAAS,MACX,EAAQ,KAAK,EAAW,EACxB,EAAQ,MAAM,EAAW,EACzB,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,EAAW,EACxB,EAAQ,KAAK,EAAK,EACX,KAIL,EAAmB,EAAK,IAC1B,EAAQ,MAAM,aAAa,EAC3B,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,aAAa,EACnB,MAET,EAAQ,MAAM,eAAe,EAC3B,aAAa,UACd,CAAC,EACK,EAAY,EAAK;;CAa1B,SAAS,EAAY,GAAM;AAOzB,SANI,MAAS,QAAQ,MAAS,MAAM,MAAS,MAAM,EAAmB,EAAK,IAAI,MAAS,OACtF,EAAQ,KAAK,cAAc,EACpB,EAAQ,EAAK,KAEtB,EAAQ,QAAQ,EAAK,EACrB,AAAW,MAAO,CAAC,EAAc,EAAK,EAC/B,MAAS,KAAK,IAAc;;CAarC,SAAS,EAAY,GAAM;AAMzB,SALI,MAAS,MAAM,MAAS,MAAM,MAAS,MACzC,EAAQ,QAAQ,EAAK,EACrB,KACO,KAEF,EAAY,EAAK"}
@@ -0,0 +1,16 @@
1
+ import { markdownSpace as e } from "../micromark-util-character/index.js";
2
+ //#region node_modules/micromark-factory-space/index.js
3
+ function t(t, n, r, i) {
4
+ let a = i ? i - 1 : Infinity, o = 0;
5
+ return s;
6
+ function s(i) {
7
+ return e(i) ? (t.enter(r), c(i)) : n(i);
8
+ }
9
+ function c(i) {
10
+ return e(i) && o++ < a ? (t.consume(i), c) : (t.exit(r), n(i));
11
+ }
12
+ }
13
+ //#endregion
14
+ export { t as factorySpace };
15
+
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/micromark-factory-space/index.js"],"sourcesContent":["/**\n * @import {Effects, State, TokenType} from 'micromark-util-types'\n */\n\nimport { markdownSpace } from 'micromark-util-character';\n\n// To do: implement `spaceOrTab`, `spaceOrTabMinMax`, `spaceOrTabWithOptions`.\n\n/**\n * Parse spaces and tabs.\n *\n * There is no `nok` parameter:\n *\n * * spaces in markdown are often optional, in which case this factory can be\n * used and `ok` will be switched to whether spaces were found or not\n * * one line ending or space can be detected with `markdownSpace(code)` right\n * before using `factorySpace`\n *\n * ###### Examples\n *\n * Where `␉` represents a tab (plus how much it expands) and `␠` represents a\n * single space.\n *\n * ```markdown\n * ␉\n * ␠␠␠␠\n * ␉␠\n * ```\n *\n * @param {Effects} effects\n * Context.\n * @param {State} ok\n * State switched to when successful.\n * @param {TokenType} type\n * Type (`' \\t'`).\n * @param {number | undefined} [max=Infinity]\n * Max (exclusive).\n * @returns {State}\n * Start state.\n */\nexport function factorySpace(effects, ok, type, max) {\n const limit = max ? max - 1 : Number.POSITIVE_INFINITY;\n let size = 0;\n return start;\n\n /** @type {State} */\n function start(code) {\n if (markdownSpace(code)) {\n effects.enter(type);\n return prefix(code);\n }\n return ok(code);\n }\n\n /** @type {State} */\n function prefix(code) {\n if (markdownSpace(code) && size++ < limit) {\n effects.consume(code);\n return prefix;\n }\n effects.exit(type);\n return ok(code);\n }\n}"],"x_google_ignoreList":[0],"mappings":";;AAwCA,SAAgB,EAAa,GAAS,GAAI,GAAM,GAAK;CACnD,IAAM,IAAQ,IAAM,IAAM,IAAI,UAC1B,IAAO;AACX,QAAO;CAGP,SAAS,EAAM,GAAM;AAKnB,SAJI,EAAc,EAAK,IACrB,EAAQ,MAAM,EAAK,EACZ,EAAO,EAAK,IAEd,EAAG,EAAK;;CAIjB,SAAS,EAAO,GAAM;AAMpB,SALI,EAAc,EAAK,IAAI,MAAS,KAClC,EAAQ,QAAQ,EAAK,EACd,MAET,EAAQ,KAAK,EAAK,EACX,EAAG,EAAK"}