@burdenoff/microfe-store 2026.720.2 → 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 (280) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +20 -0
  2. package/dist/components/MarkdownEditor.d.ts +12 -0
  3. package/dist/components/MarkdownEditor.js +117 -0
  4. package/dist/components/MarkdownEditor.js.map +1 -0
  5. package/dist/components/index.d.ts +2 -0
  6. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +63 -0
  7. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js.map +1 -0
  8. package/dist/node_modules/@ungap/structured-clone/esm/index.js +8 -0
  9. package/dist/node_modules/@ungap/structured-clone/esm/index.js.map +1 -0
  10. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +93 -0
  11. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js.map +1 -0
  12. package/dist/node_modules/bail/index.js +8 -0
  13. package/dist/node_modules/bail/index.js.map +1 -0
  14. package/dist/node_modules/comma-separated-tokens/index.js +9 -0
  15. package/dist/node_modules/comma-separated-tokens/index.js.map +1 -0
  16. package/dist/node_modules/decode-named-character-reference/index.dom.js +12 -0
  17. package/dist/node_modules/decode-named-character-reference/index.dom.js.map +1 -0
  18. package/dist/node_modules/devlop/lib/default.js +7 -0
  19. package/dist/node_modules/devlop/lib/default.js.map +1 -0
  20. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +9 -0
  21. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js.map +1 -0
  22. package/dist/node_modules/extend/index.js +42 -0
  23. package/dist/node_modules/extend/index.js.map +1 -0
  24. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +255 -0
  25. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js.map +1 -0
  26. package/dist/node_modules/hast-util-whitespace/lib/index.js +12 -0
  27. package/dist/node_modules/hast-util-whitespace/lib/index.js.map +1 -0
  28. package/dist/node_modules/html-url-attributes/lib/index.js +38 -0
  29. package/dist/node_modules/html-url-attributes/lib/index.js.map +1 -0
  30. package/dist/node_modules/inline-style-parser/cjs/index.js +92 -0
  31. package/dist/node_modules/inline-style-parser/cjs/index.js.map +1 -0
  32. package/dist/node_modules/is-plain-obj/index.js +10 -0
  33. package/dist/node_modules/is-plain-obj/index.js.map +1 -0
  34. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +559 -0
  35. package/dist/node_modules/mdast-util-from-markdown/lib/index.js.map +1 -0
  36. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +105 -0
  37. package/dist/node_modules/mdast-util-to-hast/lib/footer.js.map +1 -0
  38. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +14 -0
  39. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +1 -0
  40. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +17 -0
  41. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js.map +1 -0
  42. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +24 -0
  43. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js.map +1 -0
  44. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +14 -0
  45. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +1 -0
  46. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +14 -0
  47. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +1 -0
  48. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +32 -0
  49. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +1 -0
  50. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +14 -0
  51. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +1 -0
  52. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +14 -0
  53. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js.map +1 -0
  54. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +23 -0
  55. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +1 -0
  56. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +17 -0
  57. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js.map +1 -0
  58. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
  59. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js.map +1 -0
  60. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +19 -0
  61. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +1 -0
  62. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +20 -0
  63. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +1 -0
  64. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +17 -0
  65. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js.map +1 -0
  66. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +61 -0
  67. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +1 -0
  68. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +22 -0
  69. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js.map +1 -0
  70. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +14 -0
  71. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +1 -0
  72. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +12 -0
  73. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js.map +1 -0
  74. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +14 -0
  75. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +1 -0
  76. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +14 -0
  77. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +1 -0
  78. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +26 -0
  79. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +1 -0
  80. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +37 -0
  81. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js.map +1 -0
  82. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +13 -0
  83. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js.map +1 -0
  84. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +14 -0
  85. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +1 -0
  86. package/dist/node_modules/mdast-util-to-hast/lib/index.js +21 -0
  87. package/dist/node_modules/mdast-util-to-hast/lib/index.js.map +1 -0
  88. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +22 -0
  89. package/dist/node_modules/mdast-util-to-hast/lib/revert.js.map +1 -0
  90. package/dist/node_modules/mdast-util-to-hast/lib/state.js +110 -0
  91. package/dist/node_modules/mdast-util-to-hast/lib/state.js.map +1 -0
  92. package/dist/node_modules/mdast-util-to-string/lib/index.js +26 -0
  93. package/dist/node_modules/mdast-util-to-string/lib/index.js.map +1 -0
  94. package/dist/node_modules/micromark/lib/constructs.js +82 -0
  95. package/dist/node_modules/micromark/lib/constructs.js.map +1 -0
  96. package/dist/node_modules/micromark/lib/create-tokenizer.js +179 -0
  97. package/dist/node_modules/micromark/lib/create-tokenizer.js.map +1 -0
  98. package/dist/node_modules/micromark/lib/initialize/content.js +36 -0
  99. package/dist/node_modules/micromark/lib/initialize/content.js.map +1 -0
  100. package/dist/node_modules/micromark/lib/initialize/document.js +104 -0
  101. package/dist/node_modules/micromark/lib/initialize/document.js.map +1 -0
  102. package/dist/node_modules/micromark/lib/initialize/flow.js +27 -0
  103. package/dist/node_modules/micromark/lib/initialize/flow.js.map +1 -0
  104. package/dist/node_modules/micromark/lib/initialize/text.js +88 -0
  105. package/dist/node_modules/micromark/lib/initialize/text.js.map +1 -0
  106. package/dist/node_modules/micromark/lib/parse.js +31 -0
  107. package/dist/node_modules/micromark/lib/parse.js.map +1 -0
  108. package/dist/node_modules/micromark/lib/postprocess.js +10 -0
  109. package/dist/node_modules/micromark/lib/postprocess.js.map +1 -0
  110. package/dist/node_modules/micromark/lib/preprocess.js +34 -0
  111. package/dist/node_modules/micromark/lib/preprocess.js.map +1 -0
  112. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +116 -0
  113. package/dist/node_modules/micromark-core-commonmark/lib/attention.js.map +1 -0
  114. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +45 -0
  115. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js.map +1 -0
  116. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +20 -0
  117. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -0
  118. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +40 -0
  119. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js.map +1 -0
  120. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +19 -0
  121. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js.map +1 -0
  122. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +31 -0
  123. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js.map +1 -0
  124. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +91 -0
  125. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js.map +1 -0
  126. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +45 -0
  127. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js.map +1 -0
  128. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
  129. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js.map +1 -0
  130. package/dist/node_modules/micromark-core-commonmark/lib/content.js +49 -0
  131. package/dist/node_modules/micromark-core-commonmark/lib/content.js.map +1 -0
  132. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +62 -0
  133. package/dist/node_modules/micromark-core-commonmark/lib/definition.js.map +1 -0
  134. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +19 -0
  135. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +1 -0
  136. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +69 -0
  137. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js.map +1 -0
  138. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +143 -0
  139. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js.map +1 -0
  140. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
  141. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js.map +1 -0
  142. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +160 -0
  143. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js.map +1 -0
  144. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +25 -0
  145. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js.map +1 -0
  146. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +22 -0
  147. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js.map +1 -0
  148. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +16 -0
  149. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js.map +1 -0
  150. package/dist/node_modules/micromark-core-commonmark/lib/list.js +80 -0
  151. package/dist/node_modules/micromark-core-commonmark/lib/list.js.map +1 -0
  152. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +61 -0
  153. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js.map +1 -0
  154. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +27 -0
  155. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js.map +1 -0
  156. package/dist/node_modules/micromark-factory-destination/index.js +28 -0
  157. package/dist/node_modules/micromark-factory-destination/index.js.map +1 -0
  158. package/dist/node_modules/micromark-factory-label/index.js +22 -0
  159. package/dist/node_modules/micromark-factory-label/index.js.map +1 -0
  160. package/dist/node_modules/micromark-factory-space/index.js +16 -0
  161. package/dist/node_modules/micromark-factory-space/index.js.map +1 -0
  162. package/dist/node_modules/micromark-factory-title/index.js +26 -0
  163. package/dist/node_modules/micromark-factory-title/index.js.map +1 -0
  164. package/dist/node_modules/micromark-factory-whitespace/index.js +14 -0
  165. package/dist/node_modules/micromark-factory-whitespace/index.js.map +1 -0
  166. package/dist/node_modules/micromark-util-character/index.js +26 -0
  167. package/dist/node_modules/micromark-util-character/index.js.map +1 -0
  168. package/dist/node_modules/micromark-util-chunked/index.js +13 -0
  169. package/dist/node_modules/micromark-util-chunked/index.js.map +1 -0
  170. package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
  171. package/dist/node_modules/micromark-util-classify-character/index.js.map +1 -0
  172. package/dist/node_modules/micromark-util-combine-extensions/index.js +28 -0
  173. package/dist/node_modules/micromark-util-combine-extensions/index.js.map +1 -0
  174. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +9 -0
  175. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js.map +1 -0
  176. package/dist/node_modules/micromark-util-decode-string/index.js +19 -0
  177. package/dist/node_modules/micromark-util-decode-string/index.js.map +1 -0
  178. package/dist/node_modules/micromark-util-html-tag-name/index.js +11 -0
  179. package/dist/node_modules/micromark-util-html-tag-name/index.js.map +1 -0
  180. package/dist/node_modules/micromark-util-normalize-identifier/index.js +8 -0
  181. package/dist/node_modules/micromark-util-normalize-identifier/index.js.map +1 -0
  182. package/dist/node_modules/micromark-util-resolve-all/index.js +13 -0
  183. package/dist/node_modules/micromark-util-resolve-all/index.js.map +1 -0
  184. package/dist/node_modules/micromark-util-sanitize-uri/index.js +20 -0
  185. package/dist/node_modules/micromark-util-sanitize-uri/index.js.map +1 -0
  186. package/dist/node_modules/micromark-util-subtokenize/index.js +37 -0
  187. package/dist/node_modules/micromark-util-subtokenize/index.js.map +1 -0
  188. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +59 -0
  189. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +1 -0
  190. package/dist/node_modules/property-information/index.js +28 -0
  191. package/dist/node_modules/property-information/index.js.map +1 -0
  192. package/dist/node_modules/property-information/lib/aria.js +63 -0
  193. package/dist/node_modules/property-information/lib/aria.js.map +1 -0
  194. package/dist/node_modules/property-information/lib/find.js +33 -0
  195. package/dist/node_modules/property-information/lib/find.js.map +1 -0
  196. package/dist/node_modules/property-information/lib/hast-to-react.js +24 -0
  197. package/dist/node_modules/property-information/lib/hast-to-react.js.map +1 -0
  198. package/dist/node_modules/property-information/lib/html.js +328 -0
  199. package/dist/node_modules/property-information/lib/html.js.map +1 -0
  200. package/dist/node_modules/property-information/lib/normalize.js +8 -0
  201. package/dist/node_modules/property-information/lib/normalize.js.map +1 -0
  202. package/dist/node_modules/property-information/lib/svg.js +566 -0
  203. package/dist/node_modules/property-information/lib/svg.js.map +1 -0
  204. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +9 -0
  205. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js.map +1 -0
  206. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +8 -0
  207. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js.map +1 -0
  208. package/dist/node_modules/property-information/lib/util/create.js +16 -0
  209. package/dist/node_modules/property-information/lib/util/create.js.map +1 -0
  210. package/dist/node_modules/property-information/lib/util/defined-info.js +20 -0
  211. package/dist/node_modules/property-information/lib/util/defined-info.js.map +1 -0
  212. package/dist/node_modules/property-information/lib/util/info.js +11 -0
  213. package/dist/node_modules/property-information/lib/util/info.js.map +1 -0
  214. package/dist/node_modules/property-information/lib/util/merge.js +11 -0
  215. package/dist/node_modules/property-information/lib/util/merge.js.map +1 -0
  216. package/dist/node_modules/property-information/lib/util/schema.js +11 -0
  217. package/dist/node_modules/property-information/lib/util/schema.js.map +1 -0
  218. package/dist/node_modules/property-information/lib/util/types.js +18 -0
  219. package/dist/node_modules/property-information/lib/util/types.js.map +1 -0
  220. package/dist/node_modules/property-information/lib/xlink.js +21 -0
  221. package/dist/node_modules/property-information/lib/xlink.js.map +1 -0
  222. package/dist/node_modules/property-information/lib/xml.js +17 -0
  223. package/dist/node_modules/property-information/lib/xml.js.map +1 -0
  224. package/dist/node_modules/property-information/lib/xmlns.js +16 -0
  225. package/dist/node_modules/property-information/lib/xmlns.js.map +1 -0
  226. package/dist/node_modules/react-markdown/lib/index.js +142 -0
  227. package/dist/node_modules/react-markdown/lib/index.js.map +1 -0
  228. package/dist/node_modules/remark-parse/lib/index.js +18 -0
  229. package/dist/node_modules/remark-parse/lib/index.js.map +1 -0
  230. package/dist/node_modules/remark-rehype/lib/index.js +20 -0
  231. package/dist/node_modules/remark-rehype/lib/index.js.map +1 -0
  232. package/dist/node_modules/space-separated-tokens/index.js +8 -0
  233. package/dist/node_modules/space-separated-tokens/index.js.map +1 -0
  234. package/dist/node_modules/style-to-js/cjs/index.js +21 -0
  235. package/dist/node_modules/style-to-js/cjs/index.js.map +1 -0
  236. package/dist/node_modules/style-to-js/cjs/utilities.js +20 -0
  237. package/dist/node_modules/style-to-js/cjs/utilities.js.map +1 -0
  238. package/dist/node_modules/style-to-object/cjs/index.js +25 -0
  239. package/dist/node_modules/style-to-object/cjs/index.js.map +1 -0
  240. package/dist/node_modules/trim-lines/index.js +23 -0
  241. package/dist/node_modules/trim-lines/index.js.map +1 -0
  242. package/dist/node_modules/trough/lib/index.js +52 -0
  243. package/dist/node_modules/trough/lib/index.js.map +1 -0
  244. package/dist/node_modules/unified/lib/callable-instance.js +11 -0
  245. package/dist/node_modules/unified/lib/callable-instance.js.map +1 -0
  246. package/dist/node_modules/unified/lib/index.js +163 -0
  247. package/dist/node_modules/unified/lib/index.js.map +1 -0
  248. package/dist/node_modules/unist-util-is/lib/index.js +49 -0
  249. package/dist/node_modules/unist-util-is/lib/index.js.map +1 -0
  250. package/dist/node_modules/unist-util-position/lib/index.js +24 -0
  251. package/dist/node_modules/unist-util-position/lib/index.js.map +1 -0
  252. package/dist/node_modules/unist-util-stringify-position/lib/index.js +17 -0
  253. package/dist/node_modules/unist-util-stringify-position/lib/index.js.map +1 -0
  254. package/dist/node_modules/unist-util-visit/lib/index.js +14 -0
  255. package/dist/node_modules/unist-util-visit/lib/index.js.map +1 -0
  256. package/dist/node_modules/unist-util-visit-parents/lib/color.js +8 -0
  257. package/dist/node_modules/unist-util-visit-parents/lib/color.js.map +1 -0
  258. package/dist/node_modules/unist-util-visit-parents/lib/index.js +38 -0
  259. package/dist/node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
  260. package/dist/node_modules/vfile/lib/index.js +91 -0
  261. package/dist/node_modules/vfile/lib/index.js.map +1 -0
  262. package/dist/node_modules/vfile/lib/minpath.browser.js +101 -0
  263. package/dist/node_modules/vfile/lib/minpath.browser.js.map +1 -0
  264. package/dist/node_modules/vfile/lib/minproc.browser.js +9 -0
  265. package/dist/node_modules/vfile/lib/minproc.browser.js.map +1 -0
  266. package/dist/node_modules/vfile/lib/minurl.browser.js +33 -0
  267. package/dist/node_modules/vfile/lib/minurl.browser.js.map +1 -0
  268. package/dist/node_modules/vfile/lib/minurl.shared.js +8 -0
  269. package/dist/node_modules/vfile/lib/minurl.shared.js.map +1 -0
  270. package/dist/node_modules/vfile-message/lib/index.js +26 -0
  271. package/dist/node_modules/vfile-message/lib/index.js.map +1 -0
  272. package/dist/pages/AdminStoresPage.js +203 -207
  273. package/dist/pages/AdminStoresPage.js.map +1 -1
  274. package/dist/pages/AdminSubmissionsQueuePage.js +173 -172
  275. package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
  276. package/dist/pages/MarketplaceHomePage.js +472 -422
  277. package/dist/pages/MarketplaceHomePage.js.map +1 -1
  278. package/dist/pages/ProductDetailPage.js +104 -103
  279. package/dist/pages/ProductDetailPage.js.map +1 -1
  280. package/package.json +2 -2
@@ -0,0 +1,179 @@
1
+ import { push as e, splice as t } from "../../micromark-util-chunked/index.js";
2
+ import { markdownLineEnding as n } from "../../micromark-util-character/index.js";
3
+ import { resolveAll as r } from "../../micromark-util-resolve-all/index.js";
4
+ //#region node_modules/micromark/lib/create-tokenizer.js
5
+ function i(i, s, c) {
6
+ let l = {
7
+ _bufferIndex: -1,
8
+ _index: 0,
9
+ line: c && c.line || 1,
10
+ column: c && c.column || 1,
11
+ offset: c && c.offset || 0
12
+ }, u = {}, d = [], f = [], p = [], m = {
13
+ attempt: k(D),
14
+ check: k(O),
15
+ consume: w,
16
+ enter: T,
17
+ exit: E,
18
+ interrupt: k(O, { interrupt: !0 })
19
+ }, h = {
20
+ code: null,
21
+ containerState: {},
22
+ defineSkip: x,
23
+ events: [],
24
+ now: b,
25
+ parser: i,
26
+ previous: null,
27
+ sliceSerialize: v,
28
+ sliceStream: y,
29
+ write: _
30
+ }, g = s.tokenize.call(h, m);
31
+ return s.resolveAll && d.push(s), h;
32
+ function _(t) {
33
+ return f = e(f, t), S(), f[f.length - 1] === null ? (A(s, 0), h.events = r(d, h.events, h), h.events) : [];
34
+ }
35
+ function v(e, t) {
36
+ return o(y(e), t);
37
+ }
38
+ function y(e) {
39
+ return a(f, e);
40
+ }
41
+ function b() {
42
+ let { _bufferIndex: e, _index: t, line: n, column: r, offset: i } = l;
43
+ return {
44
+ _bufferIndex: e,
45
+ _index: t,
46
+ line: n,
47
+ column: r,
48
+ offset: i
49
+ };
50
+ }
51
+ function x(e) {
52
+ u[e.line] = e.column, M();
53
+ }
54
+ function S() {
55
+ let e;
56
+ for (; l._index < f.length;) {
57
+ let t = f[l._index];
58
+ if (typeof t == "string") for (e = l._index, l._bufferIndex < 0 && (l._bufferIndex = 0); l._index === e && l._bufferIndex < t.length;) C(t.charCodeAt(l._bufferIndex));
59
+ else C(t);
60
+ }
61
+ }
62
+ function C(e) {
63
+ g = g(e);
64
+ }
65
+ function w(e) {
66
+ n(e) ? (l.line++, l.column = 1, l.offset += e === -3 ? 2 : 1, M()) : e !== -1 && (l.column++, l.offset++), l._bufferIndex < 0 ? l._index++ : (l._bufferIndex++, l._bufferIndex === f[l._index].length && (l._bufferIndex = -1, l._index++)), h.previous = e;
67
+ }
68
+ function T(e, t) {
69
+ let n = t || {};
70
+ return n.type = e, n.start = b(), h.events.push([
71
+ "enter",
72
+ n,
73
+ h
74
+ ]), p.push(n), n;
75
+ }
76
+ function E(e) {
77
+ let t = p.pop();
78
+ return t.end = b(), h.events.push([
79
+ "exit",
80
+ t,
81
+ h
82
+ ]), t;
83
+ }
84
+ function D(e, t) {
85
+ A(e, t.from);
86
+ }
87
+ function O(e, t) {
88
+ t.restore();
89
+ }
90
+ function k(e, t) {
91
+ return n;
92
+ function n(n, r, i) {
93
+ let a, o, s, c;
94
+ return Array.isArray(n) ? u(n) : "tokenize" in n ? u([n]) : l(n);
95
+ function l(e) {
96
+ return t;
97
+ function t(t) {
98
+ let n = t !== null && e[t], r = t !== null && e.null;
99
+ return u([...Array.isArray(n) ? n : n ? [n] : [], ...Array.isArray(r) ? r : r ? [r] : []])(t);
100
+ }
101
+ }
102
+ function u(e) {
103
+ return a = e, o = 0, e.length === 0 ? i : d(e[o]);
104
+ }
105
+ function d(e) {
106
+ return n;
107
+ function n(n) {
108
+ return c = j(), s = e, e.partial || (h.currentConstruct = e), e.name && h.parser.constructs.disable.null.includes(e.name) ? p(n) : e.tokenize.call(t ? Object.assign(Object.create(h), t) : h, m, f, p)(n);
109
+ }
110
+ }
111
+ function f(t) {
112
+ return e(s, c), r;
113
+ }
114
+ function p(e) {
115
+ return c.restore(), ++o < a.length ? d(a[o]) : i;
116
+ }
117
+ }
118
+ }
119
+ function A(e, n) {
120
+ e.resolveAll && !d.includes(e) && d.push(e), e.resolve && t(h.events, n, h.events.length - n, e.resolve(h.events.slice(n), h)), e.resolveTo && (h.events = e.resolveTo(h.events, h));
121
+ }
122
+ function j() {
123
+ let e = b(), t = h.previous, n = h.currentConstruct, r = h.events.length, i = Array.from(p);
124
+ return {
125
+ from: r,
126
+ restore: a
127
+ };
128
+ function a() {
129
+ l = e, h.previous = t, h.currentConstruct = n, h.events.length = r, p = i, M();
130
+ }
131
+ }
132
+ function M() {
133
+ l.line in u && l.column < 2 && (l.column = u[l.line], l.offset += u[l.line] - 1);
134
+ }
135
+ }
136
+ function a(e, t) {
137
+ let n = t.start._index, r = t.start._bufferIndex, i = t.end._index, a = t.end._bufferIndex, o;
138
+ if (n === i) o = [e[n].slice(r, a)];
139
+ else {
140
+ if (o = e.slice(n, i), r > -1) {
141
+ let e = o[0];
142
+ typeof e == "string" ? o[0] = e.slice(r) : o.shift();
143
+ }
144
+ a > 0 && o.push(e[i].slice(0, a));
145
+ }
146
+ return o;
147
+ }
148
+ function o(e, t) {
149
+ let n = -1, r = [], i;
150
+ for (; ++n < e.length;) {
151
+ let a = e[n], o;
152
+ if (typeof a == "string") o = a;
153
+ else switch (a) {
154
+ case -5:
155
+ o = "\r";
156
+ break;
157
+ case -4:
158
+ o = "\n";
159
+ break;
160
+ case -3:
161
+ o = "\r\n";
162
+ break;
163
+ case -2:
164
+ o = t ? " " : " ";
165
+ break;
166
+ case -1:
167
+ if (!t && i) continue;
168
+ o = " ";
169
+ break;
170
+ default: o = String.fromCharCode(a);
171
+ }
172
+ i = a === -2, r.push(o);
173
+ }
174
+ return r.join("");
175
+ }
176
+ //#endregion
177
+ export { i as createTokenizer };
178
+
179
+ //# sourceMappingURL=create-tokenizer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-tokenizer.js","names":[],"sources":["../../../../node_modules/micromark/lib/create-tokenizer.js"],"sourcesContent":["/**\n * @import {\n * Chunk,\n * Code,\n * ConstructRecord,\n * Construct,\n * Effects,\n * InitialConstruct,\n * ParseContext,\n * Point,\n * State,\n * TokenizeContext,\n * Token\n * } from 'micromark-util-types'\n */\n\n/**\n * @callback Restore\n * Restore the state.\n * @returns {undefined}\n * Nothing.\n *\n * @typedef Info\n * Info.\n * @property {Restore} restore\n * Restore.\n * @property {number} from\n * From.\n *\n * @callback ReturnHandle\n * Handle a successful run.\n * @param {Construct} construct\n * Construct.\n * @param {Info} info\n * Info.\n * @returns {undefined}\n * Nothing.\n */\n\nimport { markdownLineEnding } from 'micromark-util-character';\nimport { push, splice } from 'micromark-util-chunked';\nimport { resolveAll } from 'micromark-util-resolve-all';\n/**\n * Create a tokenizer.\n * Tokenizers deal with one type of data (e.g., containers, flow, text).\n * The parser is the object dealing with it all.\n * `initialize` works like other constructs, except that only its `tokenize`\n * function is used, in which case it doesn’t receive an `ok` or `nok`.\n * `from` can be given to set the point before the first character, although\n * when further lines are indented, they must be set with `defineSkip`.\n *\n * @param {ParseContext} parser\n * Parser.\n * @param {InitialConstruct} initialize\n * Construct.\n * @param {Omit<Point, '_bufferIndex' | '_index'> | undefined} [from]\n * Point (optional).\n * @returns {TokenizeContext}\n * Context.\n */\nexport function createTokenizer(parser, initialize, from) {\n /** @type {Point} */\n let point = {\n _bufferIndex: -1,\n _index: 0,\n line: from && from.line || 1,\n column: from && from.column || 1,\n offset: from && from.offset || 0\n };\n /** @type {Record<string, number>} */\n const columnStart = {};\n /** @type {Array<Construct>} */\n const resolveAllConstructs = [];\n /** @type {Array<Chunk>} */\n let chunks = [];\n /** @type {Array<Token>} */\n let stack = [];\n /** @type {boolean | undefined} */\n let consumed = true;\n\n /**\n * Tools used for tokenizing.\n *\n * @type {Effects}\n */\n const effects = {\n attempt: constructFactory(onsuccessfulconstruct),\n check: constructFactory(onsuccessfulcheck),\n consume,\n enter,\n exit,\n interrupt: constructFactory(onsuccessfulcheck, {\n interrupt: true\n })\n };\n\n /**\n * State and tools for resolving and serializing.\n *\n * @type {TokenizeContext}\n */\n const context = {\n code: null,\n containerState: {},\n defineSkip,\n events: [],\n now,\n parser,\n previous: null,\n sliceSerialize,\n sliceStream,\n write\n };\n\n /**\n * The state function.\n *\n * @type {State | undefined}\n */\n let state = initialize.tokenize.call(context, effects);\n\n /**\n * Track which character we expect to be consumed, to catch bugs.\n *\n * @type {Code}\n */\n let expectedCode;\n if (initialize.resolveAll) {\n resolveAllConstructs.push(initialize);\n }\n return context;\n\n /** @type {TokenizeContext['write']} */\n function write(slice) {\n chunks = push(chunks, slice);\n main();\n\n // Exit if we’re not done, resolve might change stuff.\n if (chunks[chunks.length - 1] !== null) {\n return [];\n }\n addResult(initialize, 0);\n\n // Otherwise, resolve, and exit.\n context.events = resolveAll(resolveAllConstructs, context.events, context);\n return context.events;\n }\n\n //\n // Tools.\n //\n\n /** @type {TokenizeContext['sliceSerialize']} */\n function sliceSerialize(token, expandTabs) {\n return serializeChunks(sliceStream(token), expandTabs);\n }\n\n /** @type {TokenizeContext['sliceStream']} */\n function sliceStream(token) {\n return sliceChunks(chunks, token);\n }\n\n /** @type {TokenizeContext['now']} */\n function now() {\n // This is a hot path, so we clone manually instead of `Object.assign({}, point)`\n const {\n _bufferIndex,\n _index,\n line,\n column,\n offset\n } = point;\n return {\n _bufferIndex,\n _index,\n line,\n column,\n offset\n };\n }\n\n /** @type {TokenizeContext['defineSkip']} */\n function defineSkip(value) {\n columnStart[value.line] = value.column;\n accountForPotentialSkip();\n }\n\n //\n // State management.\n //\n\n /**\n * Main loop (note that `_index` and `_bufferIndex` in `point` are modified by\n * `consume`).\n * Here is where we walk through the chunks, which either include strings of\n * several characters, or numerical character codes.\n * The reason to do this in a loop instead of a call is so the stack can\n * drain.\n *\n * @returns {undefined}\n * Nothing.\n */\n function main() {\n /** @type {number} */\n let chunkIndex;\n while (point._index < chunks.length) {\n const chunk = chunks[point._index];\n\n // If we’re in a buffer chunk, loop through it.\n if (typeof chunk === 'string') {\n chunkIndex = point._index;\n if (point._bufferIndex < 0) {\n point._bufferIndex = 0;\n }\n while (point._index === chunkIndex && point._bufferIndex < chunk.length) {\n go(chunk.charCodeAt(point._bufferIndex));\n }\n } else {\n go(chunk);\n }\n }\n }\n\n /**\n * Deal with one code.\n *\n * @param {Code} code\n * Code.\n * @returns {undefined}\n * Nothing.\n */\n function go(code) {\n consumed = undefined;\n expectedCode = code;\n state = state(code);\n }\n\n /** @type {Effects['consume']} */\n function consume(code) {\n if (markdownLineEnding(code)) {\n point.line++;\n point.column = 1;\n point.offset += code === -3 ? 2 : 1;\n accountForPotentialSkip();\n } else if (code !== -1) {\n point.column++;\n point.offset++;\n }\n\n // Not in a string chunk.\n if (point._bufferIndex < 0) {\n point._index++;\n } else {\n point._bufferIndex++;\n\n // At end of string chunk.\n if (point._bufferIndex ===\n // Points w/ non-negative `_bufferIndex` reference\n // strings.\n /** @type {string} */\n chunks[point._index].length) {\n point._bufferIndex = -1;\n point._index++;\n }\n }\n\n // Expose the previous character.\n context.previous = code;\n\n // Mark as consumed.\n consumed = true;\n }\n\n /** @type {Effects['enter']} */\n function enter(type, fields) {\n /** @type {Token} */\n // @ts-expect-error Patch instead of assign required fields to help GC.\n const token = fields || {};\n token.type = type;\n token.start = now();\n context.events.push(['enter', token, context]);\n stack.push(token);\n return token;\n }\n\n /** @type {Effects['exit']} */\n function exit(type) {\n const token = stack.pop();\n token.end = now();\n context.events.push(['exit', token, context]);\n return token;\n }\n\n /**\n * Use results.\n *\n * @type {ReturnHandle}\n */\n function onsuccessfulconstruct(construct, info) {\n addResult(construct, info.from);\n }\n\n /**\n * Discard results.\n *\n * @type {ReturnHandle}\n */\n function onsuccessfulcheck(_, info) {\n info.restore();\n }\n\n /**\n * Factory to attempt/check/interrupt.\n *\n * @param {ReturnHandle} onreturn\n * Callback.\n * @param {{interrupt?: boolean | undefined} | undefined} [fields]\n * Fields.\n */\n function constructFactory(onreturn, fields) {\n return hook;\n\n /**\n * Handle either an object mapping codes to constructs, a list of\n * constructs, or a single construct.\n *\n * @param {Array<Construct> | ConstructRecord | Construct} constructs\n * Constructs.\n * @param {State} returnState\n * State.\n * @param {State | undefined} [bogusState]\n * State.\n * @returns {State}\n * State.\n */\n function hook(constructs, returnState, bogusState) {\n /** @type {ReadonlyArray<Construct>} */\n let listOfConstructs;\n /** @type {number} */\n let constructIndex;\n /** @type {Construct} */\n let currentConstruct;\n /** @type {Info} */\n let info;\n return Array.isArray(constructs) ? /* c8 ignore next 1 */\n handleListOfConstructs(constructs) : 'tokenize' in constructs ?\n // Looks like a construct.\n handleListOfConstructs([(/** @type {Construct} */constructs)]) : handleMapOfConstructs(constructs);\n\n /**\n * Handle a list of construct.\n *\n * @param {ConstructRecord} map\n * Constructs.\n * @returns {State}\n * State.\n */\n function handleMapOfConstructs(map) {\n return start;\n\n /** @type {State} */\n function start(code) {\n const left = code !== null && map[code];\n const all = code !== null && map.null;\n const list = [\n // To do: add more extension tests.\n /* c8 ignore next 2 */\n ...(Array.isArray(left) ? left : left ? [left] : []), ...(Array.isArray(all) ? all : all ? [all] : [])];\n return handleListOfConstructs(list)(code);\n }\n }\n\n /**\n * Handle a list of construct.\n *\n * @param {ReadonlyArray<Construct>} list\n * Constructs.\n * @returns {State}\n * State.\n */\n function handleListOfConstructs(list) {\n listOfConstructs = list;\n constructIndex = 0;\n if (list.length === 0) {\n return bogusState;\n }\n return handleConstruct(list[constructIndex]);\n }\n\n /**\n * Handle a single construct.\n *\n * @param {Construct} construct\n * Construct.\n * @returns {State}\n * State.\n */\n function handleConstruct(construct) {\n return start;\n\n /** @type {State} */\n function start(code) {\n // To do: not needed to store if there is no bogus state, probably?\n // Currently doesn’t work because `inspect` in document does a check\n // w/o a bogus, which doesn’t make sense. But it does seem to help perf\n // by not storing.\n info = store();\n currentConstruct = construct;\n if (!construct.partial) {\n context.currentConstruct = construct;\n }\n\n // Always populated by defaults.\n\n if (construct.name && context.parser.constructs.disable.null.includes(construct.name)) {\n return nok(code);\n }\n return construct.tokenize.call(\n // If we do have fields, create an object w/ `context` as its\n // prototype.\n // This allows a “live binding”, which is needed for `interrupt`.\n fields ? Object.assign(Object.create(context), fields) : context, effects, ok, nok)(code);\n }\n }\n\n /** @type {State} */\n function ok(code) {\n consumed = true;\n onreturn(currentConstruct, info);\n return returnState;\n }\n\n /** @type {State} */\n function nok(code) {\n consumed = true;\n info.restore();\n if (++constructIndex < listOfConstructs.length) {\n return handleConstruct(listOfConstructs[constructIndex]);\n }\n return bogusState;\n }\n }\n }\n\n /**\n * @param {Construct} construct\n * Construct.\n * @param {number} from\n * From.\n * @returns {undefined}\n * Nothing.\n */\n function addResult(construct, from) {\n if (construct.resolveAll && !resolveAllConstructs.includes(construct)) {\n resolveAllConstructs.push(construct);\n }\n if (construct.resolve) {\n splice(context.events, from, context.events.length - from, construct.resolve(context.events.slice(from), context));\n }\n if (construct.resolveTo) {\n context.events = construct.resolveTo(context.events, context);\n }\n }\n\n /**\n * Store state.\n *\n * @returns {Info}\n * Info.\n */\n function store() {\n const startPoint = now();\n const startPrevious = context.previous;\n const startCurrentConstruct = context.currentConstruct;\n const startEventsIndex = context.events.length;\n const startStack = Array.from(stack);\n return {\n from: startEventsIndex,\n restore\n };\n\n /**\n * Restore state.\n *\n * @returns {undefined}\n * Nothing.\n */\n function restore() {\n point = startPoint;\n context.previous = startPrevious;\n context.currentConstruct = startCurrentConstruct;\n context.events.length = startEventsIndex;\n stack = startStack;\n accountForPotentialSkip();\n }\n }\n\n /**\n * Move the current point a bit forward in the line when it’s on a column\n * skip.\n *\n * @returns {undefined}\n * Nothing.\n */\n function accountForPotentialSkip() {\n if (point.line in columnStart && point.column < 2) {\n point.column = columnStart[point.line];\n point.offset += columnStart[point.line] - 1;\n }\n }\n}\n\n/**\n * Get the chunks from a slice of chunks in the range of a token.\n *\n * @param {ReadonlyArray<Chunk>} chunks\n * Chunks.\n * @param {Pick<Token, 'end' | 'start'>} token\n * Token.\n * @returns {Array<Chunk>}\n * Chunks.\n */\nfunction sliceChunks(chunks, token) {\n const startIndex = token.start._index;\n const startBufferIndex = token.start._bufferIndex;\n const endIndex = token.end._index;\n const endBufferIndex = token.end._bufferIndex;\n /** @type {Array<Chunk>} */\n let view;\n if (startIndex === endIndex) {\n // @ts-expect-error `_bufferIndex` is used on string chunks.\n view = [chunks[startIndex].slice(startBufferIndex, endBufferIndex)];\n } else {\n view = chunks.slice(startIndex, endIndex);\n if (startBufferIndex > -1) {\n const head = view[0];\n if (typeof head === 'string') {\n view[0] = head.slice(startBufferIndex);\n /* c8 ignore next 4 -- used to be used, no longer */\n } else {\n view.shift();\n }\n }\n if (endBufferIndex > 0) {\n // @ts-expect-error `_bufferIndex` is used on string chunks.\n view.push(chunks[endIndex].slice(0, endBufferIndex));\n }\n }\n return view;\n}\n\n/**\n * Get the string value of a slice of chunks.\n *\n * @param {ReadonlyArray<Chunk>} chunks\n * Chunks.\n * @param {boolean | undefined} [expandTabs=false]\n * Whether to expand tabs (default: `false`).\n * @returns {string}\n * Result.\n */\nfunction serializeChunks(chunks, expandTabs) {\n let index = -1;\n /** @type {Array<string>} */\n const result = [];\n /** @type {boolean | undefined} */\n let atTab;\n while (++index < chunks.length) {\n const chunk = chunks[index];\n /** @type {string} */\n let value;\n if (typeof chunk === 'string') {\n value = chunk;\n } else switch (chunk) {\n case -5:\n {\n value = \"\\r\";\n break;\n }\n case -4:\n {\n value = \"\\n\";\n break;\n }\n case -3:\n {\n value = \"\\r\" + \"\\n\";\n break;\n }\n case -2:\n {\n value = expandTabs ? \" \" : \"\\t\";\n break;\n }\n case -1:\n {\n if (!expandTabs && atTab) continue;\n value = \" \";\n break;\n }\n default:\n {\n // Currently only replacement character.\n value = String.fromCharCode(chunk);\n }\n }\n atTab = chunk === -2;\n result.push(value);\n }\n return result.join('');\n}"],"x_google_ignoreList":[0],"mappings":";;;;AA4DA,SAAgB,EAAgB,GAAQ,GAAY,GAAM;CAExD,IAAI,IAAQ;EACV,cAAc;EACd,QAAQ;EACR,MAAM,KAAQ,EAAK,QAAQ;EAC3B,QAAQ,KAAQ,EAAK,UAAU;EAC/B,QAAQ,KAAQ,EAAK,UAAU;EAChC,EAEK,IAAc,EAAE,EAEhB,IAAuB,EAAE,EAE3B,IAAS,EAAE,EAEX,IAAQ,EAAE,EASR,IAAU;EACd,SAAS,EAAiB,EAAsB;EAChD,OAAO,EAAiB,EAAkB;EAC1C;EACA;EACA;EACA,WAAW,EAAi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EAAI,EAAM,QAAQ,KAAe,EAAM,SAAS,MAC9C,EAAM,SAAS,EAAY,EAAM,OACjC,EAAM,UAAU,EAAY,EAAM,QAAQ;;;AAehD,SAAS,EAAY,GAAQ,GAAO;CAClC,IAAM,IAAa,EAAM,MAAM,QACzB,IAAmB,EAAM,MAAM,cAC/B,IAAW,EAAM,IAAI,QACrB,IAAiB,EAAM,IAAI,cAE7B;AACJ,KAAI,MAAe,EAEjB,KAAO,CAAC,EAAO,GAAY,MAAM,GAAkB,EAAe,CAAC;MAC9D;AAEL,MADA,IAAO,EAAO,MAAM,GAAY,EAAS,EACrC,IAAmB,IAAI;GACzB,IAAM,IAAO,EAAK;AAClB,GAAI,OAAO,KAAS,WAClB,EAAK,KAAK,EAAK,MAAM,EAAiB,GAGtC,EAAK,OAAO;;AAGhB,EAAI,IAAiB,KAEnB,EAAK,KAAK,EAAO,GAAU,MAAM,GAAG,EAAe,CAAC;;AAGxD,QAAO;;AAaT,SAAS,EAAgB,GAAQ,GAAY;CAC3C,IAAI,IAAQ,IAEN,IAAS,EAAE,EAEb;AACJ,QAAO,EAAE,IAAQ,EAAO,SAAQ;EAC9B,IAAM,IAAQ,EAAO,IAEjB;AACJ,MAAI,OAAO,KAAU,SACnB,KAAQ;MACH,SAAQ,GAAR;GACL,KAAK;AAED,QAAQ;AACR;GAEJ,KAAK;AAED,QAAQ;AACR;GAEJ,KAAK;AAED,QAAQ;AACR;GAEJ,KAAK;AAED,QAAQ,IAAa,MAAM;AAC3B;GAEJ,KAAK;AAED,QAAI,CAAC,KAAc,EAAO;AAC1B,QAAQ;AACR;GAEJ,QAGI,KAAQ,OAAO,aAAa,EAAM;;AAIxC,EADA,IAAQ,MAAU,IAClB,EAAO,KAAK,EAAM;;AAEpB,QAAO,EAAO,KAAK,GAAG"}
@@ -0,0 +1,36 @@
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/lib/initialize/content.js
4
+ var n = { tokenize: r };
5
+ function r(n) {
6
+ let r = n.attempt(this.parser.constructs.contentInitial, a, o), i;
7
+ return r;
8
+ function a(e) {
9
+ if (e === null) {
10
+ n.consume(e);
11
+ return;
12
+ }
13
+ return n.enter("lineEnding"), n.consume(e), n.exit("lineEnding"), t(n, r, "linePrefix");
14
+ }
15
+ function o(e) {
16
+ return n.enter("paragraph"), s(e);
17
+ }
18
+ function s(e) {
19
+ let t = n.enter("chunkText", {
20
+ contentType: "text",
21
+ previous: i
22
+ });
23
+ return i && (i.next = t), i = t, c(e);
24
+ }
25
+ function c(t) {
26
+ if (t === null) {
27
+ n.exit("chunkText"), n.exit("paragraph"), n.consume(t);
28
+ return;
29
+ }
30
+ return e(t) ? (n.consume(t), n.exit("chunkText"), s) : (n.consume(t), c);
31
+ }
32
+ }
33
+ //#endregion
34
+ export { n as content };
35
+
36
+ //# sourceMappingURL=content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content.js","names":[],"sources":["../../../../../node_modules/micromark/lib/initialize/content.js"],"sourcesContent":["/**\n * @import {\n * InitialConstruct,\n * Initializer,\n * State,\n * TokenizeContext,\n * Token\n * } from 'micromark-util-types'\n */\n\nimport { factorySpace } from 'micromark-factory-space';\nimport { markdownLineEnding } from 'micromark-util-character';\n/** @type {InitialConstruct} */\nexport const content = {\n tokenize: initializeContent\n};\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Initializer}\n * Content.\n */\nfunction initializeContent(effects) {\n const contentStart = effects.attempt(this.parser.constructs.contentInitial, afterContentStartConstruct, paragraphInitial);\n /** @type {Token} */\n let previous;\n return contentStart;\n\n /** @type {State} */\n function afterContentStartConstruct(code) {\n if (code === null) {\n effects.consume(code);\n return;\n }\n effects.enter(\"lineEnding\");\n effects.consume(code);\n effects.exit(\"lineEnding\");\n return factorySpace(effects, contentStart, \"linePrefix\");\n }\n\n /** @type {State} */\n function paragraphInitial(code) {\n effects.enter(\"paragraph\");\n return lineStart(code);\n }\n\n /** @type {State} */\n function lineStart(code) {\n const token = effects.enter(\"chunkText\", {\n contentType: \"text\",\n previous\n });\n if (previous) {\n previous.next = token;\n }\n previous = token;\n return data(code);\n }\n\n /** @type {State} */\n function data(code) {\n if (code === null) {\n effects.exit(\"chunkText\");\n effects.exit(\"paragraph\");\n effects.consume(code);\n return;\n }\n if (markdownLineEnding(code)) {\n effects.consume(code);\n effects.exit(\"chunkText\");\n return lineStart;\n }\n\n // Data.\n effects.consume(code);\n return data;\n }\n}"],"x_google_ignoreList":[0],"mappings":";;;AAaA,IAAa,IAAU,EACrB,UAAU,GACX;AAQD,SAAS,EAAkB,GAAS;CAClC,IAAM,IAAe,EAAQ,QAAQ,KAAK,OAAO,WAAW,gBAAgB,GAA4B,EAAiB,EAErH;AACJ,QAAO;CAGP,SAAS,EAA2B,GAAM;AACxC,MAAI,MAAS,MAAM;AACjB,KAAQ,QAAQ,EAAK;AACrB;;AAKF,SAHA,EAAQ,MAAM,aAAa,EAC3B,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,aAAa,EACnB,EAAa,GAAS,GAAc,aAAa;;CAI1D,SAAS,EAAiB,GAAM;AAE9B,SADA,EAAQ,MAAM,YAAY,EACnB,EAAU,EAAK;;CAIxB,SAAS,EAAU,GAAM;EACvB,IAAM,IAAQ,EAAQ,MAAM,aAAa;GACvC,aAAa;GACb;GACD,CAAC;AAKF,SAJI,MACF,EAAS,OAAO,IAElB,IAAW,GACJ,EAAK,EAAK;;CAInB,SAAS,EAAK,GAAM;AAClB,MAAI,MAAS,MAAM;AAGjB,GAFA,EAAQ,KAAK,YAAY,EACzB,EAAQ,KAAK,YAAY,EACzB,EAAQ,QAAQ,EAAK;AACrB;;AAUF,SARI,EAAmB,EAAK,IAC1B,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,YAAY,EAClB,MAIT,EAAQ,QAAQ,EAAK,EACd"}
@@ -0,0 +1,104 @@
1
+ import { splice as e } from "../../../micromark-util-chunked/index.js";
2
+ import { markdownLineEnding as t } from "../../../micromark-util-character/index.js";
3
+ import { factorySpace as n } from "../../../micromark-factory-space/index.js";
4
+ //#region node_modules/micromark/lib/initialize/document.js
5
+ var r = { tokenize: a }, i = { tokenize: o };
6
+ function a(n) {
7
+ let r = this, a = [], o = 0, s, c, l;
8
+ return u;
9
+ function u(e) {
10
+ if (o < a.length) {
11
+ let t = a[o];
12
+ return r.containerState = t[1], n.attempt(t[0].continuation, d, f)(e);
13
+ }
14
+ return f(e);
15
+ }
16
+ function d(t) {
17
+ if (o++, r.containerState._closeFlow) {
18
+ r.containerState._closeFlow = void 0, s && x();
19
+ let n = r.events.length, i = n, a;
20
+ for (; i--;) if (r.events[i][0] === "exit" && r.events[i][1].type === "chunkFlow") {
21
+ a = r.events[i][1].end;
22
+ break;
23
+ }
24
+ b(o);
25
+ let c = n;
26
+ for (; c < r.events.length;) r.events[c][1].end = { ...a }, c++;
27
+ return e(r.events, i + 1, 0, r.events.slice(n)), r.events.length = c, f(t);
28
+ }
29
+ return u(t);
30
+ }
31
+ function f(e) {
32
+ if (o === a.length) {
33
+ if (!s) return h(e);
34
+ if (s.currentConstruct && s.currentConstruct.concrete) return _(e);
35
+ r.interrupt = !!(s.currentConstruct && !s._gfmTableDynamicInterruptHack);
36
+ }
37
+ return r.containerState = {}, n.check(i, p, m)(e);
38
+ }
39
+ function p(e) {
40
+ return s && x(), b(o), h(e);
41
+ }
42
+ function m(e) {
43
+ return r.parser.lazy[r.now().line] = o !== a.length, l = r.now().offset, _(e);
44
+ }
45
+ function h(e) {
46
+ return r.containerState = {}, n.attempt(i, g, _)(e);
47
+ }
48
+ function g(e) {
49
+ return o++, a.push([r.currentConstruct, r.containerState]), h(e);
50
+ }
51
+ function _(e) {
52
+ if (e === null) {
53
+ s && x(), b(0), n.consume(e);
54
+ return;
55
+ }
56
+ return s ||= r.parser.flow(r.now()), n.enter("chunkFlow", {
57
+ _tokenizer: s,
58
+ contentType: "flow",
59
+ previous: c
60
+ }), v(e);
61
+ }
62
+ function v(e) {
63
+ if (e === null) {
64
+ y(n.exit("chunkFlow"), !0), b(0), n.consume(e);
65
+ return;
66
+ }
67
+ return t(e) ? (n.consume(e), y(n.exit("chunkFlow")), o = 0, r.interrupt = void 0, u) : (n.consume(e), v);
68
+ }
69
+ function y(t, n) {
70
+ let i = r.sliceStream(t);
71
+ if (n && i.push(null), t.previous = c, c && (c.next = t), c = t, s.defineSkip(t.start), s.write(i), r.parser.lazy[t.start.line]) {
72
+ let t = s.events.length;
73
+ for (; t--;) if (s.events[t][1].start.offset < l && (!s.events[t][1].end || s.events[t][1].end.offset > l)) return;
74
+ let n = r.events.length, i = n, a, c;
75
+ for (; i--;) if (r.events[i][0] === "exit" && r.events[i][1].type === "chunkFlow") {
76
+ if (a) {
77
+ c = r.events[i][1].end;
78
+ break;
79
+ }
80
+ a = !0;
81
+ }
82
+ for (b(o), t = n; t < r.events.length;) r.events[t][1].end = { ...c }, t++;
83
+ e(r.events, i + 1, 0, r.events.slice(n)), r.events.length = t;
84
+ }
85
+ }
86
+ function b(e) {
87
+ let t = a.length;
88
+ for (; t-- > e;) {
89
+ let e = a[t];
90
+ r.containerState = e[1], e[0].exit.call(r, n);
91
+ }
92
+ a.length = e;
93
+ }
94
+ function x() {
95
+ s.write([null]), c = void 0, s = void 0, r.containerState._closeFlow = void 0;
96
+ }
97
+ }
98
+ function o(e, t, r) {
99
+ return n(e, e.attempt(this.parser.constructs.document, t, r), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
100
+ }
101
+ //#endregion
102
+ export { r as document };
103
+
104
+ //# sourceMappingURL=document.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document.js","names":[],"sources":["../../../../../node_modules/micromark/lib/initialize/document.js"],"sourcesContent":["/**\n * @import {\n * Construct,\n * ContainerState,\n * InitialConstruct,\n * Initializer,\n * Point,\n * State,\n * TokenizeContext,\n * Tokenizer,\n * Token\n * } from 'micromark-util-types'\n */\n\n/**\n * @typedef {[Construct, ContainerState]} StackItem\n * Construct and its state.\n */\n\nimport { factorySpace } from 'micromark-factory-space';\nimport { markdownLineEnding } from 'micromark-util-character';\nimport { splice } from 'micromark-util-chunked';\n/** @type {InitialConstruct} */\nexport const document = {\n tokenize: initializeDocument\n};\n\n/** @type {Construct} */\nconst containerConstruct = {\n tokenize: tokenizeContainer\n};\n\n/**\n * @this {TokenizeContext}\n * Self.\n * @type {Initializer}\n * Initializer.\n */\nfunction initializeDocument(effects) {\n const self = this;\n /** @type {Array<StackItem>} */\n const stack = [];\n let continued = 0;\n /** @type {TokenizeContext | undefined} */\n let childFlow;\n /** @type {Token | undefined} */\n let childToken;\n /** @type {number} */\n let lineStartOffset;\n return start;\n\n /** @type {State} */\n function start(code) {\n // First we iterate through the open blocks, starting with the root\n // document, and descending through last children down to the last open\n // block.\n // Each block imposes a condition that the line must satisfy if the block is\n // to remain open.\n // For example, a block quote requires a `>` character.\n // A paragraph requires a non-blank line.\n // In this phase we may match all or just some of the open blocks.\n // But we cannot close unmatched blocks yet, because we may have a lazy\n // continuation line.\n if (continued < stack.length) {\n const item = stack[continued];\n self.containerState = item[1];\n return effects.attempt(item[0].continuation, documentContinue, checkNewContainers)(code);\n }\n\n // Done.\n return checkNewContainers(code);\n }\n\n /** @type {State} */\n function documentContinue(code) {\n continued++;\n\n // Note: this field is called `_closeFlow` but it also closes containers.\n // Perhaps a good idea to rename it but it’s already used in the wild by\n // extensions.\n if (self.containerState._closeFlow) {\n self.containerState._closeFlow = undefined;\n if (childFlow) {\n closeFlow();\n }\n\n // Note: this algorithm for moving events around is similar to the\n // algorithm when dealing with lazy lines in `writeToChild`.\n const indexBeforeExits = self.events.length;\n let indexBeforeFlow = indexBeforeExits;\n /** @type {Point | undefined} */\n let point;\n\n // Find the flow chunk.\n while (indexBeforeFlow--) {\n if (self.events[indexBeforeFlow][0] === 'exit' && self.events[indexBeforeFlow][1].type === \"chunkFlow\") {\n point = self.events[indexBeforeFlow][1].end;\n break;\n }\n }\n exitContainers(continued);\n\n // Fix positions.\n let index = indexBeforeExits;\n while (index < self.events.length) {\n self.events[index][1].end = {\n ...point\n };\n index++;\n }\n\n // Inject the exits earlier (they’re still also at the end).\n splice(self.events, indexBeforeFlow + 1, 0, self.events.slice(indexBeforeExits));\n\n // Discard the duplicate exits.\n self.events.length = index;\n return checkNewContainers(code);\n }\n return start(code);\n }\n\n /** @type {State} */\n function checkNewContainers(code) {\n // Next, after consuming the continuation markers for existing blocks, we\n // look for new block starts (e.g. `>` for a block quote).\n // If we encounter a new block start, we close any blocks unmatched in\n // step 1 before creating the new block as a child of the last matched\n // block.\n if (continued === stack.length) {\n // No need to `check` whether there’s a container, of `exitContainers`\n // would be moot.\n // We can instead immediately `attempt` to parse one.\n if (!childFlow) {\n return documentContinued(code);\n }\n\n // If we have concrete content, such as block HTML or fenced code,\n // we can’t have containers “pierce” into them, so we can immediately\n // start.\n if (childFlow.currentConstruct && childFlow.currentConstruct.concrete) {\n return flowStart(code);\n }\n\n // If we do have flow, it could still be a blank line,\n // but we’d be interrupting it w/ a new container if there’s a current\n // construct.\n // To do: next major: remove `_gfmTableDynamicInterruptHack` (no longer\n // needed in micromark-extension-gfm-table@1.0.6).\n self.interrupt = Boolean(childFlow.currentConstruct && !childFlow._gfmTableDynamicInterruptHack);\n }\n\n // Check if there is a new container.\n self.containerState = {};\n return effects.check(containerConstruct, thereIsANewContainer, thereIsNoNewContainer)(code);\n }\n\n /** @type {State} */\n function thereIsANewContainer(code) {\n if (childFlow) closeFlow();\n exitContainers(continued);\n return documentContinued(code);\n }\n\n /** @type {State} */\n function thereIsNoNewContainer(code) {\n self.parser.lazy[self.now().line] = continued !== stack.length;\n lineStartOffset = self.now().offset;\n return flowStart(code);\n }\n\n /** @type {State} */\n function documentContinued(code) {\n // Try new containers.\n self.containerState = {};\n return effects.attempt(containerConstruct, containerContinue, flowStart)(code);\n }\n\n /** @type {State} */\n function containerContinue(code) {\n continued++;\n stack.push([self.currentConstruct, self.containerState]);\n // Try another.\n return documentContinued(code);\n }\n\n /** @type {State} */\n function flowStart(code) {\n if (code === null) {\n if (childFlow) closeFlow();\n exitContainers(0);\n effects.consume(code);\n return;\n }\n childFlow = childFlow || self.parser.flow(self.now());\n effects.enter(\"chunkFlow\", {\n _tokenizer: childFlow,\n contentType: \"flow\",\n previous: childToken\n });\n return flowContinue(code);\n }\n\n /** @type {State} */\n function flowContinue(code) {\n if (code === null) {\n writeToChild(effects.exit(\"chunkFlow\"), true);\n exitContainers(0);\n effects.consume(code);\n return;\n }\n if (markdownLineEnding(code)) {\n effects.consume(code);\n writeToChild(effects.exit(\"chunkFlow\"));\n // Get ready for the next line.\n continued = 0;\n self.interrupt = undefined;\n return start;\n }\n effects.consume(code);\n return flowContinue;\n }\n\n /**\n * @param {Token} token\n * Token.\n * @param {boolean | undefined} [endOfFile]\n * Whether the token is at the end of the file (default: `false`).\n * @returns {undefined}\n * Nothing.\n */\n function writeToChild(token, endOfFile) {\n const stream = self.sliceStream(token);\n if (endOfFile) stream.push(null);\n token.previous = childToken;\n if (childToken) childToken.next = token;\n childToken = token;\n childFlow.defineSkip(token.start);\n childFlow.write(stream);\n\n // Alright, so we just added a lazy line:\n //\n // ```markdown\n // > a\n // b.\n //\n // Or:\n //\n // > ~~~c\n // d\n //\n // Or:\n //\n // > | e |\n // f\n // ```\n //\n // The construct in the second example (fenced code) does not accept lazy\n // lines, so it marked itself as done at the end of its first line, and\n // then the content construct parses `d`.\n // Most constructs in markdown match on the first line: if the first line\n // forms a construct, a non-lazy line can’t “unmake” it.\n //\n // The construct in the third example is potentially a GFM table, and\n // those are *weird*.\n // It *could* be a table, from the first line, if the following line\n // matches a condition.\n // In this case, that second line is lazy, which “unmakes” the first line\n // and turns the whole into one content block.\n //\n // We’ve now parsed the non-lazy and the lazy line, and can figure out\n // whether the lazy line started a new flow block.\n // If it did, we exit the current containers between the two flow blocks.\n if (self.parser.lazy[token.start.line]) {\n let index = childFlow.events.length;\n while (index--) {\n if (\n // The token starts before the line ending…\n childFlow.events[index][1].start.offset < lineStartOffset && (\n // …and either is not ended yet…\n !childFlow.events[index][1].end ||\n // …or ends after it.\n childFlow.events[index][1].end.offset > lineStartOffset)) {\n // Exit: there’s still something open, which means it’s a lazy line\n // part of something.\n return;\n }\n }\n\n // Note: this algorithm for moving events around is similar to the\n // algorithm when closing flow in `documentContinue`.\n const indexBeforeExits = self.events.length;\n let indexBeforeFlow = indexBeforeExits;\n /** @type {boolean | undefined} */\n let seen;\n /** @type {Point | undefined} */\n let point;\n\n // Find the previous chunk (the one before the lazy line).\n while (indexBeforeFlow--) {\n if (self.events[indexBeforeFlow][0] === 'exit' && self.events[indexBeforeFlow][1].type === \"chunkFlow\") {\n if (seen) {\n point = self.events[indexBeforeFlow][1].end;\n break;\n }\n seen = true;\n }\n }\n exitContainers(continued);\n\n // Fix positions.\n index = indexBeforeExits;\n while (index < self.events.length) {\n self.events[index][1].end = {\n ...point\n };\n index++;\n }\n\n // Inject the exits earlier (they’re still also at the end).\n splice(self.events, indexBeforeFlow + 1, 0, self.events.slice(indexBeforeExits));\n\n // Discard the duplicate exits.\n self.events.length = index;\n }\n }\n\n /**\n * @param {number} size\n * Size.\n * @returns {undefined}\n * Nothing.\n */\n function exitContainers(size) {\n let index = stack.length;\n\n // Exit open containers.\n while (index-- > size) {\n const entry = stack[index];\n self.containerState = entry[1];\n entry[0].exit.call(self, effects);\n }\n stack.length = size;\n }\n function closeFlow() {\n childFlow.write([null]);\n childToken = undefined;\n childFlow = undefined;\n self.containerState._closeFlow = undefined;\n }\n}\n\n/**\n * @this {TokenizeContext}\n * Context.\n * @type {Tokenizer}\n * Tokenizer.\n */\nfunction tokenizeContainer(effects, ok, nok) {\n // Always populated by defaults.\n\n return factorySpace(effects, effects.attempt(this.parser.constructs.document, ok, nok), \"linePrefix\", this.parser.constructs.disable.null.includes('codeIndented') ? undefined : 4);\n}"],"x_google_ignoreList":[0],"mappings":";;;;AAuBA,IAAa,IAAW,EACtB,U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KAAK,SAAS,eAAe,GAAG,KAAA,IAAY,EAAE"}
@@ -0,0 +1,27 @@
1
+ import { factorySpace as e } from "../../../micromark-factory-space/index.js";
2
+ import { blankLine as t } from "../../../micromark-core-commonmark/lib/blank-line.js";
3
+ import { content as n } from "../../../micromark-core-commonmark/lib/content.js";
4
+ //#region node_modules/micromark/lib/initialize/flow.js
5
+ var r = { tokenize: i };
6
+ function i(r) {
7
+ let i = this, a = r.attempt(t, o, r.attempt(this.parser.constructs.flowInitial, s, e(r, r.attempt(this.parser.constructs.flow, s, r.attempt(n, s)), "linePrefix")));
8
+ return a;
9
+ function o(e) {
10
+ if (e === null) {
11
+ r.consume(e);
12
+ return;
13
+ }
14
+ return r.enter("lineEndingBlank"), r.consume(e), r.exit("lineEndingBlank"), i.currentConstruct = void 0, a;
15
+ }
16
+ function s(e) {
17
+ if (e === null) {
18
+ r.consume(e);
19
+ return;
20
+ }
21
+ return r.enter("lineEnding"), r.consume(e), r.exit("lineEnding"), i.currentConstruct = void 0, a;
22
+ }
23
+ }
24
+ //#endregion
25
+ export { r as flow };
26
+
27
+ //# sourceMappingURL=flow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.js","names":[],"sources":["../../../../../node_modules/micromark/lib/initialize/flow.js"],"sourcesContent":["/**\n * @import {\n * InitialConstruct,\n * Initializer,\n * State,\n * TokenizeContext\n * } from 'micromark-util-types'\n */\n\nimport { blankLine, content } from 'micromark-core-commonmark';\nimport { factorySpace } from 'micromark-factory-space';\nimport { markdownLineEnding } from 'micromark-util-character';\n/** @type {InitialConstruct} */\nexport const flow = {\n tokenize: initializeFlow\n};\n\n/**\n * @this {TokenizeContext}\n * Self.\n * @type {Initializer}\n * Initializer.\n */\nfunction initializeFlow(effects) {\n const self = this;\n const initial = effects.attempt(\n // Try to parse a blank line.\n blankLine, atBlankEnding,\n // Try to parse initial flow (essentially, only code).\n effects.attempt(this.parser.constructs.flowInitial, afterConstruct, factorySpace(effects, effects.attempt(this.parser.constructs.flow, afterConstruct, effects.attempt(content, afterConstruct)), \"linePrefix\")));\n return initial;\n\n /** @type {State} */\n function atBlankEnding(code) {\n if (code === null) {\n effects.consume(code);\n return;\n }\n effects.enter(\"lineEndingBlank\");\n effects.consume(code);\n effects.exit(\"lineEndingBlank\");\n self.currentConstruct = undefined;\n return initial;\n }\n\n /** @type {State} */\n function afterConstruct(code) {\n if (code === null) {\n effects.consume(code);\n return;\n }\n effects.enter(\"lineEnding\");\n effects.consume(code);\n effects.exit(\"lineEnding\");\n self.currentConstruct = undefined;\n return initial;\n }\n}"],"x_google_ignoreList":[0],"mappings":";;;;AAaA,IAAa,IAAO,EAClB,UAAU,GACX;AAQD,SAAS,EAAe,GAAS;CAC/B,IAAM,IAAO,MACP,IAAU,EAAQ,QAExB,GAAW,GAEX,EAAQ,QAAQ,KAAK,OAAO,WAAW,aAAa,GAAgB,EAAa,GAAS,EAAQ,QAAQ,KAAK,OAAO,WAAW,MAAM,GAAgB,EAAQ,QAAQ,GAAS,EAAe,CAAC,EAAE,aAAa,CAAC,CAAC;AACjN,QAAO;CAGP,SAAS,EAAc,GAAM;AAC3B,MAAI,MAAS,MAAM;AACjB,KAAQ,QAAQ,EAAK;AACrB;;AAMF,SAJA,EAAQ,MAAM,kBAAkB,EAChC,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,kBAAkB,EAC/B,EAAK,mBAAmB,KAAA,GACjB;;CAIT,SAAS,EAAe,GAAM;AAC5B,MAAI,MAAS,MAAM;AACjB,KAAQ,QAAQ,EAAK;AACrB;;AAMF,SAJA,EAAQ,MAAM,aAAa,EAC3B,EAAQ,QAAQ,EAAK,EACrB,EAAQ,KAAK,aAAa,EAC1B,EAAK,mBAAmB,KAAA,GACjB"}
@@ -0,0 +1,88 @@
1
+ //#region node_modules/micromark/lib/initialize/text.js
2
+ var e = { resolveAll: i() }, t = r("string"), n = r("text");
3
+ function r(e) {
4
+ return {
5
+ resolveAll: i(e === "text" ? a : void 0),
6
+ tokenize: t
7
+ };
8
+ function t(t) {
9
+ let n = this, r = this.parser.constructs[e], i = t.attempt(r, a, o);
10
+ return a;
11
+ function a(e) {
12
+ return c(e) ? i(e) : o(e);
13
+ }
14
+ function o(e) {
15
+ if (e === null) {
16
+ t.consume(e);
17
+ return;
18
+ }
19
+ return t.enter("data"), t.consume(e), s;
20
+ }
21
+ function s(e) {
22
+ return c(e) ? (t.exit("data"), i(e)) : (t.consume(e), s);
23
+ }
24
+ function c(e) {
25
+ if (e === null) return !0;
26
+ let t = r[e], i = -1;
27
+ if (t) for (; ++i < t.length;) {
28
+ let e = t[i];
29
+ if (!e.previous || e.previous.call(n, n.previous)) return !0;
30
+ }
31
+ return !1;
32
+ }
33
+ }
34
+ }
35
+ function i(e) {
36
+ return t;
37
+ function t(t, n) {
38
+ let r = -1, i;
39
+ for (; ++r <= t.length;) i === void 0 ? t[r] && t[r][1].type === "data" && (i = r, r++) : (!t[r] || t[r][1].type !== "data") && (r !== i + 2 && (t[i][1].end = t[r - 1][1].end, t.splice(i + 2, r - i - 2), r = i + 2), i = void 0);
40
+ return e ? e(t, n) : t;
41
+ }
42
+ }
43
+ function a(e, t) {
44
+ let n = 0;
45
+ for (; ++n <= e.length;) if ((n === e.length || e[n][1].type === "lineEnding") && e[n - 1][1].type === "data") {
46
+ let r = e[n - 1][1], i = t.sliceStream(r), a = i.length, o = -1, s = 0, c;
47
+ for (; a--;) {
48
+ let e = i[a];
49
+ if (typeof e == "string") {
50
+ for (o = e.length; e.charCodeAt(o - 1) === 32;) s++, o--;
51
+ if (o) break;
52
+ o = -1;
53
+ } else if (e === -2) c = !0, s++;
54
+ else if (e !== -1) {
55
+ a++;
56
+ break;
57
+ }
58
+ }
59
+ if (t._contentTypeTextTrailing && n === e.length && (s = 0), s) {
60
+ let i = {
61
+ type: n === e.length || c || s < 2 ? "lineSuffix" : "hardBreakTrailing",
62
+ start: {
63
+ _bufferIndex: a ? o : r.start._bufferIndex + o,
64
+ _index: r.start._index + a,
65
+ line: r.end.line,
66
+ column: r.end.column - s,
67
+ offset: r.end.offset - s
68
+ },
69
+ end: { ...r.end }
70
+ };
71
+ r.end = { ...i.start }, r.start.offset === r.end.offset ? Object.assign(r, i) : (e.splice(n, 0, [
72
+ "enter",
73
+ i,
74
+ t
75
+ ], [
76
+ "exit",
77
+ i,
78
+ t
79
+ ]), n += 2);
80
+ }
81
+ n++;
82
+ }
83
+ return e;
84
+ }
85
+ //#endregion
86
+ export { e as resolver, t as string, n as text };
87
+
88
+ //# sourceMappingURL=text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.js","names":[],"sources":["../../../../../node_modules/micromark/lib/initialize/text.js"],"sourcesContent":["/**\n * @import {\n * Code,\n * InitialConstruct,\n * Initializer,\n * Resolver,\n * State,\n * TokenizeContext\n * } from 'micromark-util-types'\n */\n\nexport const resolver = {\n resolveAll: createResolver()\n};\nexport const string = initializeFactory('string');\nexport const text = initializeFactory('text');\n\n/**\n * @param {'string' | 'text'} field\n * Field.\n * @returns {InitialConstruct}\n * Construct.\n */\nfunction initializeFactory(field) {\n return {\n resolveAll: createResolver(field === 'text' ? resolveAllLineSuffixes : undefined),\n tokenize: initializeText\n };\n\n /**\n * @this {TokenizeContext}\n * Context.\n * @type {Initializer}\n */\n function initializeText(effects) {\n const self = this;\n const constructs = this.parser.constructs[field];\n const text = effects.attempt(constructs, start, notText);\n return start;\n\n /** @type {State} */\n function start(code) {\n return atBreak(code) ? text(code) : notText(code);\n }\n\n /** @type {State} */\n function notText(code) {\n if (code === null) {\n effects.consume(code);\n return;\n }\n effects.enter(\"data\");\n effects.consume(code);\n return data;\n }\n\n /** @type {State} */\n function data(code) {\n if (atBreak(code)) {\n effects.exit(\"data\");\n return text(code);\n }\n\n // Data.\n effects.consume(code);\n return data;\n }\n\n /**\n * @param {Code} code\n * Code.\n * @returns {boolean}\n * Whether the code is a break.\n */\n function atBreak(code) {\n if (code === null) {\n return true;\n }\n const list = constructs[code];\n let index = -1;\n if (list) {\n // Always populated by defaults.\n\n while (++index < list.length) {\n const item = list[index];\n if (!item.previous || item.previous.call(self, self.previous)) {\n return true;\n }\n }\n }\n return false;\n }\n }\n}\n\n/**\n * @param {Resolver | undefined} [extraResolver]\n * Resolver.\n * @returns {Resolver}\n * Resolver.\n */\nfunction createResolver(extraResolver) {\n return resolveAllText;\n\n /** @type {Resolver} */\n function resolveAllText(events, context) {\n let index = -1;\n /** @type {number | undefined} */\n let enter;\n\n // A rather boring computation (to merge adjacent `data` events) which\n // improves mm performance by 29%.\n while (++index <= events.length) {\n if (enter === undefined) {\n if (events[index] && events[index][1].type === \"data\") {\n enter = index;\n index++;\n }\n } else if (!events[index] || events[index][1].type !== \"data\") {\n // Don’t do anything if there is one data token.\n if (index !== enter + 2) {\n events[enter][1].end = events[index - 1][1].end;\n events.splice(enter + 2, index - enter - 2);\n index = enter + 2;\n }\n enter = undefined;\n }\n }\n return extraResolver ? extraResolver(events, context) : events;\n }\n}\n\n/**\n * A rather ugly set of instructions which again looks at chunks in the input\n * stream.\n * The reason to do this here is that it is *much* faster to parse in reverse.\n * And that we can’t hook into `null` to split the line suffix before an EOF.\n * To do: figure out if we can make this into a clean utility, or even in core.\n * As it will be useful for GFMs literal autolink extension (and maybe even\n * tables?)\n *\n * @type {Resolver}\n */\nfunction resolveAllLineSuffixes(events, context) {\n let eventIndex = 0; // Skip first.\n\n while (++eventIndex <= events.length) {\n if ((eventIndex === events.length || events[eventIndex][1].type === \"lineEnding\") && events[eventIndex - 1][1].type === \"data\") {\n const data = events[eventIndex - 1][1];\n const chunks = context.sliceStream(data);\n let index = chunks.length;\n let bufferIndex = -1;\n let size = 0;\n /** @type {boolean | undefined} */\n let tabs;\n while (index--) {\n const chunk = chunks[index];\n if (typeof chunk === 'string') {\n bufferIndex = chunk.length;\n while (chunk.charCodeAt(bufferIndex - 1) === 32) {\n size++;\n bufferIndex--;\n }\n if (bufferIndex) break;\n bufferIndex = -1;\n }\n // Number\n else if (chunk === -2) {\n tabs = true;\n size++;\n } else if (chunk === -1) {\n // Empty\n } else {\n // Replacement character, exit.\n index++;\n break;\n }\n }\n\n // Allow final trailing whitespace.\n if (context._contentTypeTextTrailing && eventIndex === events.length) {\n size = 0;\n }\n if (size) {\n const token = {\n type: eventIndex === events.length || tabs || size < 2 ? \"lineSuffix\" : \"hardBreakTrailing\",\n start: {\n _bufferIndex: index ? bufferIndex : data.start._bufferIndex + bufferIndex,\n _index: data.start._index + index,\n line: data.end.line,\n column: data.end.column - size,\n offset: data.end.offset - size\n },\n end: {\n ...data.end\n }\n };\n data.end = {\n ...token.start\n };\n if (data.start.offset === data.end.offset) {\n Object.assign(data, token);\n } else {\n events.splice(eventIndex, 0, ['enter', token, context], ['exit', token, context]);\n eventIndex += 2;\n }\n }\n eventIndex++;\n }\n }\n return events;\n}"],"x_google_ignoreList":[0],"mappings":";AAWA,IAAa,IAAW,EACtB,YAAY,GAAgB,EAC7B,EACY,IAAS,EAAkB,SAAS,EACpC,IAAO,EAAkB,OAAO;AAQ7C,SAAS,EAAkB,GAAO;AAChC,QAAO;EACL,YAAY,EAAe,MAAU,SAAS,IAAyB,KAAA,EAAU;EACjF,UAAU;EACX;CAOD,SAAS,EAAe,GAAS;EAC/B,IAAM,IAAO,MACP,IAAa,KAAK,OAAO,WAAW,IACpC,IAAO,EAAQ,QAAQ,GAAY,GAAO,EAAQ;AACxD,SAAO;EAGP,SAAS,EAAM,GAAM;AACnB,UAAO,EAAQ,EAAK,GAAG,EAAK,EAAK,GAAG,EAAQ,EAAK;;EAInD,SAAS,EAAQ,GAAM;AACrB,OAAI,MAAS,MAAM;AACjB,MAAQ,QAAQ,EAAK;AACrB;;AAIF,UAFA,EAAQ,MAAM,OAAO,EACrB,EAAQ,QAAQ,EAAK,EACd;;EAIT,SAAS,EAAK,GAAM;AAQlB,UAPI,EAAQ,EAAK,IACf,EAAQ,KAAK,OAAO,EACb,EAAK,EAAK,KAInB,EAAQ,QAAQ,EAAK,EACd;;EAST,SAAS,EAAQ,GAAM;AAC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U,IAEd;AAEL;AACA;;;AAQJ,MAHI,EAAQ,4BAA4B,MAAe,EAAO,WAC5D,IAAO,IAEL,GAAM;GACR,IAAM,IAAQ;IACZ,MAAM,MAAe,EAAO,UAAU,KAAQ,IAAO,IAAI,eAAe;IACxE,OAAO;KACL,cAAc,IAAQ,IAAc,EAAK,MAAM,eAAe;KAC9D,QAAQ,EAAK,MAAM,SAAS;KAC5B,MAAM,EAAK,IAAI;KACf,QAAQ,EAAK,IAAI,SAAS;KAC1B,QAAQ,EAAK,IAAI,SAAS;KAC3B;IACD,KAAK,EACH,GAAG,EAAK,KACT;IACF;AAID,GAHA,EAAK,MAAM,EACT,GAAG,EAAM,OACV,EACG,EAAK,MAAM,WAAW,EAAK,IAAI,SACjC,OAAO,OAAO,GAAM,EAAM,IAE1B,EAAO,OAAO,GAAY,GAAG;IAAC;IAAS;IAAO;IAAQ,EAAE;IAAC;IAAQ;IAAO;IAAQ,CAAC,EACjF,KAAc;;AAGlB;;AAGJ,QAAO"}
@@ -0,0 +1,31 @@
1
+ import { combineExtensions as e } from "../../micromark-util-combine-extensions/index.js";
2
+ import { content as t } from "./initialize/content.js";
3
+ import { document as n } from "./initialize/document.js";
4
+ import { flow as r } from "./initialize/flow.js";
5
+ import { string as i, text as a } from "./initialize/text.js";
6
+ import { constructs_exports as o } from "./constructs.js";
7
+ import { createTokenizer as s } from "./create-tokenizer.js";
8
+ //#region node_modules/micromark/lib/parse.js
9
+ function c(c) {
10
+ let l = {
11
+ constructs: e([o, ...(c || {}).extensions || []]),
12
+ content: u(t),
13
+ defined: [],
14
+ document: u(n),
15
+ flow: u(r),
16
+ lazy: {},
17
+ string: u(i),
18
+ text: u(a)
19
+ };
20
+ return l;
21
+ function u(e) {
22
+ return t;
23
+ function t(t) {
24
+ return s(l, e, t);
25
+ }
26
+ }
27
+ }
28
+ //#endregion
29
+ export { c as parse };
30
+
31
+ //# sourceMappingURL=parse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse.js","names":["defaultConstructs"],"sources":["../../../../node_modules/micromark/lib/parse.js"],"sourcesContent":["/**\n * @import {\n * Create,\n * FullNormalizedExtension,\n * InitialConstruct,\n * ParseContext,\n * ParseOptions\n * } from 'micromark-util-types'\n */\n\nimport { combineExtensions } from 'micromark-util-combine-extensions';\nimport { content } from './initialize/content.js';\nimport { document } from './initialize/document.js';\nimport { flow } from './initialize/flow.js';\nimport { string, text } from './initialize/text.js';\nimport * as defaultConstructs from './constructs.js';\nimport { createTokenizer } from './create-tokenizer.js';\n\n/**\n * @param {ParseOptions | null | undefined} [options]\n * Configuration (optional).\n * @returns {ParseContext}\n * Parser.\n */\nexport function parse(options) {\n const settings = options || {};\n const constructs = /** @type {FullNormalizedExtension} */\n combineExtensions([defaultConstructs, ...(settings.extensions || [])]);\n\n /** @type {ParseContext} */\n const parser = {\n constructs,\n content: create(content),\n defined: [],\n document: create(document),\n flow: create(flow),\n lazy: {},\n string: create(string),\n text: create(text)\n };\n return parser;\n\n /**\n * @param {InitialConstruct} initial\n * Construct to start with.\n * @returns {Create}\n * Create a tokenizer.\n */\n function create(initial) {\n return creator;\n /** @type {Create} */\n function creator(from) {\n return createTokenizer(parser, initial, from);\n }\n }\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAwBA,SAAgB,EAAM,GAAS;CAM7B,IAAM,IAAS;EACb,YAJF,EAAkB,CAACA,GAAmB,IAFrB,KAAW,EAAE,EAEqB,cAAc,EAAE,CAAE,CAAC;EAKpE,SAAS,EAAO,EAAQ;EACxB,SAAS,EAAE;EACX,UAAU,EAAO,EAAS;EAC1B,MAAM,EAAO,EAAK;EAClB,MAAM,EAAE;EACR,QAAQ,EAAO,EAAO;EACtB,MAAM,EAAO,EAAK;EACnB;AACD,QAAO;CAQP,SAAS,EAAO,GAAS;AACvB,SAAO;EAEP,SAAS,EAAQ,GAAM;AACrB,UAAO,EAAgB,GAAQ,GAAS,EAAK"}
@@ -0,0 +1,10 @@
1
+ import { subtokenize as e } from "../../micromark-util-subtokenize/index.js";
2
+ //#region node_modules/micromark/lib/postprocess.js
3
+ function t(t) {
4
+ for (; !e(t););
5
+ return t;
6
+ }
7
+ //#endregion
8
+ export { t as postprocess };
9
+
10
+ //# sourceMappingURL=postprocess.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postprocess.js","names":[],"sources":["../../../../node_modules/micromark/lib/postprocess.js"],"sourcesContent":["/**\n * @import {Event} from 'micromark-util-types'\n */\n\nimport { subtokenize } from 'micromark-util-subtokenize';\n\n/**\n * @param {Array<Event>} events\n * Events.\n * @returns {Array<Event>}\n * Events.\n */\nexport function postprocess(events) {\n while (!subtokenize(events)) {\n // Empty\n }\n return events;\n}"],"x_google_ignoreList":[0],"mappings":";;AAYA,SAAgB,EAAY,GAAQ;AAClC,QAAO,CAAC,EAAY,EAAO;AAG3B,QAAO"}
@@ -0,0 +1,34 @@
1
+ //#region node_modules/micromark/lib/preprocess.js
2
+ var e = /[\0\t\n\r]/g;
3
+ function t() {
4
+ let t = 1, n = "", r = !0, i;
5
+ return a;
6
+ function a(a, o, s) {
7
+ let c = [], l, u, d, f, p;
8
+ for (a = n + (typeof a == "string" ? a.toString() : new TextDecoder(o || void 0).decode(a)), d = 0, n = "", r &&= (a.charCodeAt(0) === 65279 && d++, void 0); d < a.length;) {
9
+ if (e.lastIndex = d, l = e.exec(a), f = l && l.index !== void 0 ? l.index : a.length, p = a.charCodeAt(f), !l) {
10
+ n = a.slice(d);
11
+ break;
12
+ }
13
+ if (p === 10 && d === f && i) c.push(-3), i = void 0;
14
+ else switch (i &&= (c.push(-5), void 0), d < f && (c.push(a.slice(d, f)), t += f - d), p) {
15
+ case 0:
16
+ c.push(65533), t++;
17
+ break;
18
+ case 9:
19
+ for (u = Math.ceil(t / 4) * 4, c.push(-2); t++ < u;) c.push(-1);
20
+ break;
21
+ case 10:
22
+ c.push(-4), t = 1;
23
+ break;
24
+ default: i = !0, t = 1;
25
+ }
26
+ d = f + 1;
27
+ }
28
+ return s && (i && c.push(-5), n && c.push(n), c.push(null)), c;
29
+ }
30
+ }
31
+ //#endregion
32
+ export { t as preprocess };
33
+
34
+ //# sourceMappingURL=preprocess.js.map