@burdenoff/microfe-store 2026.720.3 → 2026.721.1

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 (281) 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/generated/global-operations.d.ts +18 -0
  5. package/dist/generated/global-operations.js +16 -0
  6. package/dist/generated/global-operations.js.map +1 -1
  7. package/dist/generated/global-types.d.ts +2 -0
  8. package/dist/generated/global-types.js.map +1 -1
  9. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +63 -0
  10. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js.map +1 -0
  11. package/dist/node_modules/@ungap/structured-clone/esm/index.js +8 -0
  12. package/dist/node_modules/@ungap/structured-clone/esm/index.js.map +1 -0
  13. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +93 -0
  14. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js.map +1 -0
  15. package/dist/node_modules/bail/index.js +8 -0
  16. package/dist/node_modules/bail/index.js.map +1 -0
  17. package/dist/node_modules/comma-separated-tokens/index.js +9 -0
  18. package/dist/node_modules/comma-separated-tokens/index.js.map +1 -0
  19. package/dist/node_modules/decode-named-character-reference/index.dom.js +12 -0
  20. package/dist/node_modules/decode-named-character-reference/index.dom.js.map +1 -0
  21. package/dist/node_modules/devlop/lib/default.js +7 -0
  22. package/dist/node_modules/devlop/lib/default.js.map +1 -0
  23. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +9 -0
  24. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js.map +1 -0
  25. package/dist/node_modules/extend/index.js +42 -0
  26. package/dist/node_modules/extend/index.js.map +1 -0
  27. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +255 -0
  28. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js.map +1 -0
  29. package/dist/node_modules/hast-util-whitespace/lib/index.js +12 -0
  30. package/dist/node_modules/hast-util-whitespace/lib/index.js.map +1 -0
  31. package/dist/node_modules/html-url-attributes/lib/index.js +38 -0
  32. package/dist/node_modules/html-url-attributes/lib/index.js.map +1 -0
  33. package/dist/node_modules/inline-style-parser/cjs/index.js +92 -0
  34. package/dist/node_modules/inline-style-parser/cjs/index.js.map +1 -0
  35. package/dist/node_modules/is-plain-obj/index.js +10 -0
  36. package/dist/node_modules/is-plain-obj/index.js.map +1 -0
  37. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +559 -0
  38. package/dist/node_modules/mdast-util-from-markdown/lib/index.js.map +1 -0
  39. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +105 -0
  40. package/dist/node_modules/mdast-util-to-hast/lib/footer.js.map +1 -0
  41. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +14 -0
  42. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +1 -0
  43. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +17 -0
  44. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js.map +1 -0
  45. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +24 -0
  46. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js.map +1 -0
  47. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +14 -0
  48. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +1 -0
  49. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +14 -0
  50. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +1 -0
  51. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +32 -0
  52. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +1 -0
  53. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +14 -0
  54. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +1 -0
  55. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +14 -0
  56. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js.map +1 -0
  57. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +23 -0
  58. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +1 -0
  59. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +17 -0
  60. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js.map +1 -0
  61. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
  62. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js.map +1 -0
  63. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +19 -0
  64. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +1 -0
  65. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +20 -0
  66. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +1 -0
  67. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +17 -0
  68. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js.map +1 -0
  69. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +61 -0
  70. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +1 -0
  71. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +22 -0
  72. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js.map +1 -0
  73. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +14 -0
  74. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +1 -0
  75. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +12 -0
  76. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js.map +1 -0
  77. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +14 -0
  78. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +1 -0
  79. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +14 -0
  80. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +1 -0
  81. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +26 -0
  82. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +1 -0
  83. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +37 -0
  84. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js.map +1 -0
  85. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +13 -0
  86. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js.map +1 -0
  87. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +14 -0
  88. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +1 -0
  89. package/dist/node_modules/mdast-util-to-hast/lib/index.js +21 -0
  90. package/dist/node_modules/mdast-util-to-hast/lib/index.js.map +1 -0
  91. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +22 -0
  92. package/dist/node_modules/mdast-util-to-hast/lib/revert.js.map +1 -0
  93. package/dist/node_modules/mdast-util-to-hast/lib/state.js +110 -0
  94. package/dist/node_modules/mdast-util-to-hast/lib/state.js.map +1 -0
  95. package/dist/node_modules/mdast-util-to-string/lib/index.js +26 -0
  96. package/dist/node_modules/mdast-util-to-string/lib/index.js.map +1 -0
  97. package/dist/node_modules/micromark/lib/constructs.js +82 -0
  98. package/dist/node_modules/micromark/lib/constructs.js.map +1 -0
  99. package/dist/node_modules/micromark/lib/create-tokenizer.js +179 -0
  100. package/dist/node_modules/micromark/lib/create-tokenizer.js.map +1 -0
  101. package/dist/node_modules/micromark/lib/initialize/content.js +36 -0
  102. package/dist/node_modules/micromark/lib/initialize/content.js.map +1 -0
  103. package/dist/node_modules/micromark/lib/initialize/document.js +104 -0
  104. package/dist/node_modules/micromark/lib/initialize/document.js.map +1 -0
  105. package/dist/node_modules/micromark/lib/initialize/flow.js +27 -0
  106. package/dist/node_modules/micromark/lib/initialize/flow.js.map +1 -0
  107. package/dist/node_modules/micromark/lib/initialize/text.js +88 -0
  108. package/dist/node_modules/micromark/lib/initialize/text.js.map +1 -0
  109. package/dist/node_modules/micromark/lib/parse.js +31 -0
  110. package/dist/node_modules/micromark/lib/parse.js.map +1 -0
  111. package/dist/node_modules/micromark/lib/postprocess.js +10 -0
  112. package/dist/node_modules/micromark/lib/postprocess.js.map +1 -0
  113. package/dist/node_modules/micromark/lib/preprocess.js +34 -0
  114. package/dist/node_modules/micromark/lib/preprocess.js.map +1 -0
  115. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +116 -0
  116. package/dist/node_modules/micromark-core-commonmark/lib/attention.js.map +1 -0
  117. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +45 -0
  118. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js.map +1 -0
  119. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +20 -0
  120. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -0
  121. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +40 -0
  122. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js.map +1 -0
  123. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +19 -0
  124. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js.map +1 -0
  125. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +31 -0
  126. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js.map +1 -0
  127. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +91 -0
  128. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js.map +1 -0
  129. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +45 -0
  130. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js.map +1 -0
  131. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
  132. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js.map +1 -0
  133. package/dist/node_modules/micromark-core-commonmark/lib/content.js +49 -0
  134. package/dist/node_modules/micromark-core-commonmark/lib/content.js.map +1 -0
  135. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +62 -0
  136. package/dist/node_modules/micromark-core-commonmark/lib/definition.js.map +1 -0
  137. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +19 -0
  138. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +1 -0
  139. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +69 -0
  140. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js.map +1 -0
  141. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +143 -0
  142. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js.map +1 -0
  143. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
  144. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js.map +1 -0
  145. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +160 -0
  146. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js.map +1 -0
  147. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +25 -0
  148. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js.map +1 -0
  149. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +22 -0
  150. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js.map +1 -0
  151. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +16 -0
  152. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js.map +1 -0
  153. package/dist/node_modules/micromark-core-commonmark/lib/list.js +80 -0
  154. package/dist/node_modules/micromark-core-commonmark/lib/list.js.map +1 -0
  155. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +61 -0
  156. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js.map +1 -0
  157. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +27 -0
  158. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js.map +1 -0
  159. package/dist/node_modules/micromark-factory-destination/index.js +28 -0
  160. package/dist/node_modules/micromark-factory-destination/index.js.map +1 -0
  161. package/dist/node_modules/micromark-factory-label/index.js +22 -0
  162. package/dist/node_modules/micromark-factory-label/index.js.map +1 -0
  163. package/dist/node_modules/micromark-factory-space/index.js +16 -0
  164. package/dist/node_modules/micromark-factory-space/index.js.map +1 -0
  165. package/dist/node_modules/micromark-factory-title/index.js +26 -0
  166. package/dist/node_modules/micromark-factory-title/index.js.map +1 -0
  167. package/dist/node_modules/micromark-factory-whitespace/index.js +14 -0
  168. package/dist/node_modules/micromark-factory-whitespace/index.js.map +1 -0
  169. package/dist/node_modules/micromark-util-character/index.js +26 -0
  170. package/dist/node_modules/micromark-util-character/index.js.map +1 -0
  171. package/dist/node_modules/micromark-util-chunked/index.js +13 -0
  172. package/dist/node_modules/micromark-util-chunked/index.js.map +1 -0
  173. package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
  174. package/dist/node_modules/micromark-util-classify-character/index.js.map +1 -0
  175. package/dist/node_modules/micromark-util-combine-extensions/index.js +28 -0
  176. package/dist/node_modules/micromark-util-combine-extensions/index.js.map +1 -0
  177. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +9 -0
  178. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js.map +1 -0
  179. package/dist/node_modules/micromark-util-decode-string/index.js +19 -0
  180. package/dist/node_modules/micromark-util-decode-string/index.js.map +1 -0
  181. package/dist/node_modules/micromark-util-html-tag-name/index.js +11 -0
  182. package/dist/node_modules/micromark-util-html-tag-name/index.js.map +1 -0
  183. package/dist/node_modules/micromark-util-normalize-identifier/index.js +8 -0
  184. package/dist/node_modules/micromark-util-normalize-identifier/index.js.map +1 -0
  185. package/dist/node_modules/micromark-util-resolve-all/index.js +13 -0
  186. package/dist/node_modules/micromark-util-resolve-all/index.js.map +1 -0
  187. package/dist/node_modules/micromark-util-sanitize-uri/index.js +20 -0
  188. package/dist/node_modules/micromark-util-sanitize-uri/index.js.map +1 -0
  189. package/dist/node_modules/micromark-util-subtokenize/index.js +37 -0
  190. package/dist/node_modules/micromark-util-subtokenize/index.js.map +1 -0
  191. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +59 -0
  192. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +1 -0
  193. package/dist/node_modules/property-information/index.js +28 -0
  194. package/dist/node_modules/property-information/index.js.map +1 -0
  195. package/dist/node_modules/property-information/lib/aria.js +63 -0
  196. package/dist/node_modules/property-information/lib/aria.js.map +1 -0
  197. package/dist/node_modules/property-information/lib/find.js +33 -0
  198. package/dist/node_modules/property-information/lib/find.js.map +1 -0
  199. package/dist/node_modules/property-information/lib/hast-to-react.js +24 -0
  200. package/dist/node_modules/property-information/lib/hast-to-react.js.map +1 -0
  201. package/dist/node_modules/property-information/lib/html.js +328 -0
  202. package/dist/node_modules/property-information/lib/html.js.map +1 -0
  203. package/dist/node_modules/property-information/lib/normalize.js +8 -0
  204. package/dist/node_modules/property-information/lib/normalize.js.map +1 -0
  205. package/dist/node_modules/property-information/lib/svg.js +566 -0
  206. package/dist/node_modules/property-information/lib/svg.js.map +1 -0
  207. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +9 -0
  208. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js.map +1 -0
  209. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +8 -0
  210. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js.map +1 -0
  211. package/dist/node_modules/property-information/lib/util/create.js +16 -0
  212. package/dist/node_modules/property-information/lib/util/create.js.map +1 -0
  213. package/dist/node_modules/property-information/lib/util/defined-info.js +20 -0
  214. package/dist/node_modules/property-information/lib/util/defined-info.js.map +1 -0
  215. package/dist/node_modules/property-information/lib/util/info.js +11 -0
  216. package/dist/node_modules/property-information/lib/util/info.js.map +1 -0
  217. package/dist/node_modules/property-information/lib/util/merge.js +11 -0
  218. package/dist/node_modules/property-information/lib/util/merge.js.map +1 -0
  219. package/dist/node_modules/property-information/lib/util/schema.js +11 -0
  220. package/dist/node_modules/property-information/lib/util/schema.js.map +1 -0
  221. package/dist/node_modules/property-information/lib/util/types.js +18 -0
  222. package/dist/node_modules/property-information/lib/util/types.js.map +1 -0
  223. package/dist/node_modules/property-information/lib/xlink.js +21 -0
  224. package/dist/node_modules/property-information/lib/xlink.js.map +1 -0
  225. package/dist/node_modules/property-information/lib/xml.js +17 -0
  226. package/dist/node_modules/property-information/lib/xml.js.map +1 -0
  227. package/dist/node_modules/property-information/lib/xmlns.js +16 -0
  228. package/dist/node_modules/property-information/lib/xmlns.js.map +1 -0
  229. package/dist/node_modules/react-markdown/lib/index.js +142 -0
  230. package/dist/node_modules/react-markdown/lib/index.js.map +1 -0
  231. package/dist/node_modules/remark-parse/lib/index.js +18 -0
  232. package/dist/node_modules/remark-parse/lib/index.js.map +1 -0
  233. package/dist/node_modules/remark-rehype/lib/index.js +20 -0
  234. package/dist/node_modules/remark-rehype/lib/index.js.map +1 -0
  235. package/dist/node_modules/space-separated-tokens/index.js +8 -0
  236. package/dist/node_modules/space-separated-tokens/index.js.map +1 -0
  237. package/dist/node_modules/style-to-js/cjs/index.js +21 -0
  238. package/dist/node_modules/style-to-js/cjs/index.js.map +1 -0
  239. package/dist/node_modules/style-to-js/cjs/utilities.js +20 -0
  240. package/dist/node_modules/style-to-js/cjs/utilities.js.map +1 -0
  241. package/dist/node_modules/style-to-object/cjs/index.js +25 -0
  242. package/dist/node_modules/style-to-object/cjs/index.js.map +1 -0
  243. package/dist/node_modules/trim-lines/index.js +23 -0
  244. package/dist/node_modules/trim-lines/index.js.map +1 -0
  245. package/dist/node_modules/trough/lib/index.js +52 -0
  246. package/dist/node_modules/trough/lib/index.js.map +1 -0
  247. package/dist/node_modules/unified/lib/callable-instance.js +11 -0
  248. package/dist/node_modules/unified/lib/callable-instance.js.map +1 -0
  249. package/dist/node_modules/unified/lib/index.js +163 -0
  250. package/dist/node_modules/unified/lib/index.js.map +1 -0
  251. package/dist/node_modules/unist-util-is/lib/index.js +49 -0
  252. package/dist/node_modules/unist-util-is/lib/index.js.map +1 -0
  253. package/dist/node_modules/unist-util-position/lib/index.js +24 -0
  254. package/dist/node_modules/unist-util-position/lib/index.js.map +1 -0
  255. package/dist/node_modules/unist-util-stringify-position/lib/index.js +17 -0
  256. package/dist/node_modules/unist-util-stringify-position/lib/index.js.map +1 -0
  257. package/dist/node_modules/unist-util-visit/lib/index.js +14 -0
  258. package/dist/node_modules/unist-util-visit/lib/index.js.map +1 -0
  259. package/dist/node_modules/unist-util-visit-parents/lib/color.js +8 -0
  260. package/dist/node_modules/unist-util-visit-parents/lib/color.js.map +1 -0
  261. package/dist/node_modules/unist-util-visit-parents/lib/index.js +38 -0
  262. package/dist/node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
  263. package/dist/node_modules/vfile/lib/index.js +91 -0
  264. package/dist/node_modules/vfile/lib/index.js.map +1 -0
  265. package/dist/node_modules/vfile/lib/minpath.browser.js +101 -0
  266. package/dist/node_modules/vfile/lib/minpath.browser.js.map +1 -0
  267. package/dist/node_modules/vfile/lib/minproc.browser.js +9 -0
  268. package/dist/node_modules/vfile/lib/minproc.browser.js.map +1 -0
  269. package/dist/node_modules/vfile/lib/minurl.browser.js +33 -0
  270. package/dist/node_modules/vfile/lib/minurl.browser.js.map +1 -0
  271. package/dist/node_modules/vfile/lib/minurl.shared.js +8 -0
  272. package/dist/node_modules/vfile/lib/minurl.shared.js.map +1 -0
  273. package/dist/node_modules/vfile-message/lib/index.js +26 -0
  274. package/dist/node_modules/vfile-message/lib/index.js.map +1 -0
  275. package/dist/pages/AdminSubmissionsQueuePage.js +174 -174
  276. package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
  277. package/dist/pages/MarketplaceHomePage.js +472 -422
  278. package/dist/pages/MarketplaceHomePage.js.map +1 -1
  279. package/dist/pages/ProductDetailPage.js +469 -440
  280. package/dist/pages/ProductDetailPage.js.map +1 -1
  281. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["commas","spaces","name","isIdentifierName"],"sources":["../../../../node_modules/hast-util-to-jsx-runtime/lib/index.js"],"sourcesContent":["/**\n * @import {Identifier, Literal, MemberExpression} from 'estree'\n * @import {Jsx, JsxDev, Options, Props} from 'hast-util-to-jsx-runtime'\n * @import {Element, Nodes, Parents, Root, Text} from 'hast'\n * @import {MdxFlowExpressionHast, MdxTextExpressionHast} from 'mdast-util-mdx-expression'\n * @import {MdxJsxFlowElementHast, MdxJsxTextElementHast} from 'mdast-util-mdx-jsx'\n * @import {MdxjsEsmHast} from 'mdast-util-mdxjs-esm'\n * @import {Position} from 'unist'\n * @import {Child, Create, Field, JsxElement, State, Style} from './types.js'\n */\n\nimport {stringify as commas} from 'comma-separated-tokens'\nimport {ok as assert} from 'devlop'\nimport {name as isIdentifierName} from 'estree-util-is-identifier-name'\nimport {whitespace} from 'hast-util-whitespace'\nimport {find, hastToReact, html, svg} from 'property-information'\nimport {stringify as spaces} from 'space-separated-tokens'\nimport styleToJs from 'style-to-js'\nimport {pointStart} from 'unist-util-position'\nimport {VFileMessage} from 'vfile-message'\n\n// To do: next major: `Object.hasOwn`.\nconst own = {}.hasOwnProperty\n\n/** @type {Map<string, number>} */\nconst emptyMap = new Map()\n\nconst cap = /[A-Z]/g\n\n// `react-dom` triggers a warning for *any* white space in tables.\n// To follow GFM, `mdast-util-to-hast` injects line endings between elements.\n// Other tools might do so too, but they don’t do here, so we remove all of\n// that.\n\n// See: <https://github.com/facebook/react/pull/7081>.\n// See: <https://github.com/facebook/react/pull/7515>.\n// See: <https://github.com/remarkjs/remark-react/issues/64>.\n// See: <https://github.com/rehypejs/rehype-react/pull/29>.\n// See: <https://github.com/rehypejs/rehype-react/pull/32>.\n// See: <https://github.com/rehypejs/rehype-react/pull/45>.\nconst tableElements = new Set(['table', 'tbody', 'thead', 'tfoot', 'tr'])\n\nconst tableCellElement = new Set(['td', 'th'])\n\nconst docs = 'https://github.com/syntax-tree/hast-util-to-jsx-runtime'\n\n/**\n * Transform a hast tree to preact, react, solid, svelte, vue, etc.,\n * with an automatic JSX runtime.\n *\n * @param {Nodes} tree\n * Tree to transform.\n * @param {Options} options\n * Configuration (required).\n * @returns {JsxElement}\n * JSX element.\n */\n\nexport function toJsxRuntime(tree, options) {\n if (!options || options.Fragment === undefined) {\n throw new TypeError('Expected `Fragment` in options')\n }\n\n const filePath = options.filePath || undefined\n /** @type {Create} */\n let create\n\n if (options.development) {\n if (typeof options.jsxDEV !== 'function') {\n throw new TypeError(\n 'Expected `jsxDEV` in options when `development: true`'\n )\n }\n\n create = developmentCreate(filePath, options.jsxDEV)\n } else {\n if (typeof options.jsx !== 'function') {\n throw new TypeError('Expected `jsx` in production options')\n }\n\n if (typeof options.jsxs !== 'function') {\n throw new TypeError('Expected `jsxs` in production options')\n }\n\n create = productionCreate(filePath, options.jsx, options.jsxs)\n }\n\n /** @type {State} */\n const state = {\n Fragment: options.Fragment,\n ancestors: [],\n components: options.components || {},\n create,\n elementAttributeNameCase: options.elementAttributeNameCase || 'react',\n evaluater: options.createEvaluater ? options.createEvaluater() : undefined,\n filePath,\n ignoreInvalidStyle: options.ignoreInvalidStyle || false,\n passKeys: options.passKeys !== false,\n passNode: options.passNode || false,\n schema: options.space === 'svg' ? svg : html,\n stylePropertyNameCase: options.stylePropertyNameCase || 'dom',\n tableCellAlignToStyle: options.tableCellAlignToStyle !== false\n }\n\n const result = one(state, tree, undefined)\n\n // JSX element.\n if (result && typeof result !== 'string') {\n return result\n }\n\n // Text node or something that turned into nothing.\n return state.create(\n tree,\n state.Fragment,\n {children: result || undefined},\n undefined\n )\n}\n\n/**\n * Transform a node.\n *\n * @param {State} state\n * Info passed around.\n * @param {Nodes} node\n * Current node.\n * @param {string | undefined} key\n * Key.\n * @returns {Child | undefined}\n * Child, optional.\n */\nfunction one(state, node, key) {\n if (node.type === 'element') {\n return element(state, node, key)\n }\n\n if (node.type === 'mdxFlowExpression' || node.type === 'mdxTextExpression') {\n return mdxExpression(state, node)\n }\n\n if (node.type === 'mdxJsxFlowElement' || node.type === 'mdxJsxTextElement') {\n return mdxJsxElement(state, node, key)\n }\n\n if (node.type === 'mdxjsEsm') {\n return mdxEsm(state, node)\n }\n\n if (node.type === 'root') {\n return root(state, node, key)\n }\n\n if (node.type === 'text') {\n return text(state, node)\n }\n}\n\n/**\n * Handle element.\n *\n * @param {State} state\n * Info passed around.\n * @param {Element} node\n * Current node.\n * @param {string | undefined} key\n * Key.\n * @returns {Child | undefined}\n * Child, optional.\n */\nfunction element(state, node, key) {\n const parentSchema = state.schema\n let schema = parentSchema\n\n if (node.tagName.toLowerCase() === 'svg' && parentSchema.space === 'html') {\n schema = svg\n state.schema = schema\n }\n\n state.ancestors.push(node)\n\n const type = findComponentFromName(state, node.tagName, false)\n const props = createElementProps(state, node)\n let children = createChildren(state, node)\n\n if (tableElements.has(node.tagName)) {\n children = children.filter(function (child) {\n return typeof child === 'string' ? !whitespace(child) : true\n })\n }\n\n addNode(state, props, type, node)\n addChildren(props, children)\n\n // Restore.\n state.ancestors.pop()\n state.schema = parentSchema\n\n return state.create(node, type, props, key)\n}\n\n/**\n * Handle MDX expression.\n *\n * @param {State} state\n * Info passed around.\n * @param {MdxFlowExpressionHast | MdxTextExpressionHast} node\n * Current node.\n * @returns {Child | undefined}\n * Child, optional.\n */\nfunction mdxExpression(state, node) {\n if (node.data && node.data.estree && state.evaluater) {\n const program = node.data.estree\n const expression = program.body[0]\n assert(expression.type === 'ExpressionStatement')\n\n // Assume result is a child.\n return /** @type {Child | undefined} */ (\n state.evaluater.evaluateExpression(expression.expression)\n )\n }\n\n crashEstree(state, node.position)\n}\n\n/**\n * Handle MDX ESM.\n *\n * @param {State} state\n * Info passed around.\n * @param {MdxjsEsmHast} node\n * Current node.\n * @returns {Child | undefined}\n * Child, optional.\n */\nfunction mdxEsm(state, node) {\n if (node.data && node.data.estree && state.evaluater) {\n // Assume result is a child.\n return /** @type {Child | undefined} */ (\n state.evaluater.evaluateProgram(node.data.estree)\n )\n }\n\n crashEstree(state, node.position)\n}\n\n/**\n * Handle MDX JSX.\n *\n * @param {State} state\n * Info passed around.\n * @param {MdxJsxFlowElementHast | MdxJsxTextElementHast} node\n * Current node.\n * @param {string | undefined} key\n * Key.\n * @returns {Child | undefined}\n * Child, optional.\n */\nfunction mdxJsxElement(state, node, key) {\n const parentSchema = state.schema\n let schema = parentSchema\n\n if (node.name === 'svg' && parentSchema.space === 'html') {\n schema = svg\n state.schema = schema\n }\n\n state.ancestors.push(node)\n\n const type =\n node.name === null\n ? state.Fragment\n : findComponentFromName(state, node.name, true)\n const props = createJsxElementProps(state, node)\n const children = createChildren(state, node)\n\n addNode(state, props, type, node)\n addChildren(props, children)\n\n // Restore.\n state.ancestors.pop()\n state.schema = parentSchema\n\n return state.create(node, type, props, key)\n}\n\n/**\n * Handle root.\n *\n * @param {State} state\n * Info passed around.\n * @param {Root} node\n * Current node.\n * @param {string | undefined} key\n * Key.\n * @returns {Child | undefined}\n * Child, optional.\n */\nfunction root(state, node, key) {\n /** @type {Props} */\n const props = {}\n\n addChildren(props, createChildren(state, node))\n\n return state.create(node, state.Fragment, props, key)\n}\n\n/**\n * Handle text.\n *\n * @param {State} _\n * Info passed around.\n * @param {Text} node\n * Current node.\n * @returns {Child | undefined}\n * Child, optional.\n */\nfunction text(_, node) {\n return node.value\n}\n\n/**\n * Add `node` to props.\n *\n * @param {State} state\n * Info passed around.\n * @param {Props} props\n * Props.\n * @param {unknown} type\n * Type.\n * @param {Element | MdxJsxFlowElementHast | MdxJsxTextElementHast} node\n * Node.\n * @returns {undefined}\n * Nothing.\n */\nfunction addNode(state, props, type, node) {\n // If this is swapped out for a component:\n if (typeof type !== 'string' && type !== state.Fragment && state.passNode) {\n props.node = node\n }\n}\n\n/**\n * Add children to props.\n *\n * @param {Props} props\n * Props.\n * @param {Array<Child>} children\n * Children.\n * @returns {undefined}\n * Nothing.\n */\nfunction addChildren(props, children) {\n if (children.length > 0) {\n const value = children.length > 1 ? children : children[0]\n\n if (value) {\n props.children = value\n }\n }\n}\n\n/**\n * @param {string | undefined} _\n * Path to file.\n * @param {Jsx} jsx\n * Dynamic.\n * @param {Jsx} jsxs\n * Static.\n * @returns {Create}\n * Create a production element.\n */\nfunction productionCreate(_, jsx, jsxs) {\n return create\n /** @type {Create} */\n function create(_, type, props, key) {\n // Only an array when there are 2 or more children.\n const isStaticChildren = Array.isArray(props.children)\n const fn = isStaticChildren ? jsxs : jsx\n return key ? fn(type, props, key) : fn(type, props)\n }\n}\n\n/**\n * @param {string | undefined} filePath\n * Path to file.\n * @param {JsxDev} jsxDEV\n * Development.\n * @returns {Create}\n * Create a development element.\n */\nfunction developmentCreate(filePath, jsxDEV) {\n return create\n /** @type {Create} */\n function create(node, type, props, key) {\n // Only an array when there are 2 or more children.\n const isStaticChildren = Array.isArray(props.children)\n const point = pointStart(node)\n return jsxDEV(\n type,\n props,\n key,\n isStaticChildren,\n {\n columnNumber: point ? point.column - 1 : undefined,\n fileName: filePath,\n lineNumber: point ? point.line : undefined\n },\n undefined\n )\n }\n}\n\n/**\n * Create props from an element.\n *\n * @param {State} state\n * Info passed around.\n * @param {Element} node\n * Current element.\n * @returns {Props}\n * Props.\n */\nfunction createElementProps(state, node) {\n /** @type {Props} */\n const props = {}\n /** @type {string | undefined} */\n let alignValue\n /** @type {string} */\n let prop\n\n for (prop in node.properties) {\n if (prop !== 'children' && own.call(node.properties, prop)) {\n const result = createProperty(state, prop, node.properties[prop])\n\n if (result) {\n const [key, value] = result\n\n if (\n state.tableCellAlignToStyle &&\n key === 'align' &&\n typeof value === 'string' &&\n tableCellElement.has(node.tagName)\n ) {\n alignValue = value\n } else {\n props[key] = value\n }\n }\n }\n }\n\n if (alignValue) {\n // Assume style is an object.\n const style = /** @type {Style} */ (props.style || (props.style = {}))\n style[state.stylePropertyNameCase === 'css' ? 'text-align' : 'textAlign'] =\n alignValue\n }\n\n return props\n}\n\n/**\n * Create props from a JSX element.\n *\n * @param {State} state\n * Info passed around.\n * @param {MdxJsxFlowElementHast | MdxJsxTextElementHast} node\n * Current JSX element.\n * @returns {Props}\n * Props.\n */\nfunction createJsxElementProps(state, node) {\n /** @type {Props} */\n const props = {}\n\n for (const attribute of node.attributes) {\n if (attribute.type === 'mdxJsxExpressionAttribute') {\n if (attribute.data && attribute.data.estree && state.evaluater) {\n const program = attribute.data.estree\n const expression = program.body[0]\n assert(expression.type === 'ExpressionStatement')\n const objectExpression = expression.expression\n assert(objectExpression.type === 'ObjectExpression')\n const property = objectExpression.properties[0]\n assert(property.type === 'SpreadElement')\n\n Object.assign(\n props,\n state.evaluater.evaluateExpression(property.argument)\n )\n } else {\n crashEstree(state, node.position)\n }\n } else {\n // For JSX, the author is responsible of passing in the correct values.\n const name = attribute.name\n /** @type {unknown} */\n let value\n\n if (attribute.value && typeof attribute.value === 'object') {\n if (\n attribute.value.data &&\n attribute.value.data.estree &&\n state.evaluater\n ) {\n const program = attribute.value.data.estree\n const expression = program.body[0]\n assert(expression.type === 'ExpressionStatement')\n value = state.evaluater.evaluateExpression(expression.expression)\n } else {\n crashEstree(state, node.position)\n }\n } else {\n value = attribute.value === null ? true : attribute.value\n }\n\n // Assume a prop.\n props[name] = /** @type {Props[keyof Props]} */ (value)\n }\n }\n\n return props\n}\n\n/**\n * Create children.\n *\n * @param {State} state\n * Info passed around.\n * @param {Parents} node\n * Current element.\n * @returns {Array<Child>}\n * Children.\n */\nfunction createChildren(state, node) {\n /** @type {Array<Child>} */\n const children = []\n let index = -1\n /** @type {Map<string, number>} */\n // Note: test this when Solid doesn’t want to merge my upcoming PR.\n /* c8 ignore next */\n const countsByName = state.passKeys ? new Map() : emptyMap\n\n while (++index < node.children.length) {\n const child = node.children[index]\n /** @type {string | undefined} */\n let key\n\n if (state.passKeys) {\n const name =\n child.type === 'element'\n ? child.tagName\n : child.type === 'mdxJsxFlowElement' ||\n child.type === 'mdxJsxTextElement'\n ? child.name\n : undefined\n\n if (name) {\n const count = countsByName.get(name) || 0\n key = name + '-' + count\n countsByName.set(name, count + 1)\n }\n }\n\n const result = one(state, child, key)\n if (result !== undefined) children.push(result)\n }\n\n return children\n}\n\n/**\n * Handle a property.\n *\n * @param {State} state\n * Info passed around.\n * @param {string} prop\n * Key.\n * @param {Array<number | string> | boolean | number | string | null | undefined} value\n * hast property value.\n * @returns {Field | undefined}\n * Field for runtime, optional.\n */\nfunction createProperty(state, prop, value) {\n const info = find(state.schema, prop)\n\n // Ignore nullish and `NaN` values.\n if (\n value === null ||\n value === undefined ||\n (typeof value === 'number' && Number.isNaN(value))\n ) {\n return\n }\n\n if (Array.isArray(value)) {\n // Accept `array`.\n // Most props are space-separated.\n value = info.commaSeparated ? commas(value) : spaces(value)\n }\n\n // React only accepts `style` as object.\n if (info.property === 'style') {\n let styleObject =\n typeof value === 'object' ? value : parseStyle(state, String(value))\n\n if (state.stylePropertyNameCase === 'css') {\n styleObject = transformStylesToCssCasing(styleObject)\n }\n\n return ['style', styleObject]\n }\n\n return [\n state.elementAttributeNameCase === 'react' && info.space\n ? hastToReact[info.property] || info.property\n : info.attribute,\n value\n ]\n}\n\n/**\n * Parse a CSS declaration to an object.\n *\n * @param {State} state\n * Info passed around.\n * @param {string} value\n * CSS declarations.\n * @returns {Style}\n * Properties.\n * @throws\n * Throws `VFileMessage` when CSS cannot be parsed.\n */\nfunction parseStyle(state, value) {\n try {\n return styleToJs(value, {reactCompat: true})\n } catch (error) {\n if (state.ignoreInvalidStyle) {\n return {}\n }\n\n const cause = /** @type {Error} */ (error)\n const message = new VFileMessage('Cannot parse `style` attribute', {\n ancestors: state.ancestors,\n cause,\n ruleId: 'style',\n source: 'hast-util-to-jsx-runtime'\n })\n message.file = state.filePath || undefined\n message.url = docs + '#cannot-parse-style-attribute'\n\n throw message\n }\n}\n\n/**\n * Create a JSX name from a string.\n *\n * @param {State} state\n * To do.\n * @param {string} name\n * Name.\n * @param {boolean} allowExpression\n * Allow member expressions and identifiers.\n * @returns {unknown}\n * To do.\n */\nfunction findComponentFromName(state, name, allowExpression) {\n /** @type {Identifier | Literal | MemberExpression} */\n let result\n\n if (!allowExpression) {\n result = {type: 'Literal', value: name}\n } else if (name.includes('.')) {\n const identifiers = name.split('.')\n let index = -1\n /** @type {Identifier | Literal | MemberExpression | undefined} */\n let node\n\n while (++index < identifiers.length) {\n /** @type {Identifier | Literal} */\n const prop = isIdentifierName(identifiers[index])\n ? {type: 'Identifier', name: identifiers[index]}\n : {type: 'Literal', value: identifiers[index]}\n node = node\n ? {\n type: 'MemberExpression',\n object: node,\n property: prop,\n computed: Boolean(index && prop.type === 'Literal'),\n optional: false\n }\n : prop\n }\n\n assert(node, 'always a result')\n result = node\n } else {\n result =\n isIdentifierName(name) && !/^[a-z]/.test(name)\n ? {type: 'Identifier', name}\n : {type: 'Literal', value: name}\n }\n\n // Only literals can be passed in `components` currently.\n // No identifiers / member expressions.\n if (result.type === 'Literal') {\n const name = /** @type {string | number} */ (result.value)\n return own.call(state.components, name) ? state.components[name] : name\n }\n\n // Assume component.\n if (state.evaluater) {\n return state.evaluater.evaluateExpression(result)\n }\n\n crashEstree(state)\n}\n\n/**\n * @param {State} state\n * @param {Position | undefined} [place]\n * @returns {never}\n */\nfunction crashEstree(state, place) {\n const message = new VFileMessage(\n 'Cannot handle MDX estrees without `createEvaluater`',\n {\n ancestors: state.ancestors,\n place,\n ruleId: 'mdx-estree',\n source: 'hast-util-to-jsx-runtime'\n }\n )\n message.file = state.filePath || undefined\n message.url = docs + '#cannot-handle-mdx-estrees-without-createevaluater'\n\n throw message\n}\n\n/**\n * Transform a DOM casing style object to a CSS casing style object.\n *\n * @param {Style} domCasing\n * @returns {Style}\n */\nfunction transformStylesToCssCasing(domCasing) {\n /** @type {Style} */\n const cssCasing = {}\n /** @type {string} */\n let from\n\n for (from in domCasing) {\n if (own.call(domCasing, from)) {\n cssCasing[transformStyleToCssCasing(from)] = domCasing[from]\n }\n }\n\n return cssCasing\n}\n\n/**\n * Transform a DOM casing style field to a CSS casing style field.\n *\n * @param {string} from\n * @returns {string}\n */\nfunction transformStyleToCssCasing(from) {\n let to = from.replace(cap, toDash)\n // Handle `ms-xxx` -> `-ms-xxx`.\n if (to.slice(0, 3) === 'ms-') to = '-' + to\n return to\n}\n\n/**\n * Make `$0` dash cased.\n *\n * @param {string} $0\n * Capitalized ASCII leter.\n * @returns {string}\n * Dash and lower letter.\n */\nfunction toDash($0) {\n return '-' + $0.toLowerCase()\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;mCAsBM,IAAM,EAAE,CAAC,gBAGT,oBAAW,IAAI,KAAK,EAEpB,IAAM,UAaN,IAAgB,IAAI,IAAI;CAAC;CAAS;CAAS;CAAS;CAAS;CAAK,CAAC,EAEnE,IAAmB,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAExC,IAAO;AAcb,SAAgB,EAAa,GAAM,GAAS;AAC1C,KAAI,CAAC,KAAW,EAAQ,aAAa,KAAA,EACnC,OAAU,UAAU,iCAAiC;CAGvD,IAAM,IAAW,EAAQ,YAAY,KAAA,GAEjC;AAEJ,KAAI,EAAQ,aAAa;AACvB,MAAI,OAAO,EAAQ,UAAW,WAC5B,OAAU,UACR,wDACD;AAGH,MAAS,EAAkB,GAAU,EAAQ,OAAO;QAC/C;AACL,MAAI,OAAO,EAAQ,OAAQ,WACzB,OAAU,UAAU,uCAAuC;AAG7D,MAAI,OAAO,EAAQ,QAAS,WAC1B,OAAU,UAAU,wCAAwC;AAG9D,MAAS,EAAiB,GAAU,EAAQ,KAAK,EAAQ,KAAK;;CAIhE,IAAM,IAAQ;EACZ,UAAU,EAAQ;EAClB,WAAW,EAAE;EACb,YAAY,EAAQ,cAAc,EAAE;EACpC;EACA,0BAA0B,EAAQ,4BAA4B;EAC9D,WAAW,EAAQ,kBAAkB,EAAQ,iBAAiB,GAAG,KAAA;EACjE;EACA,oBAAoB,EAAQ,sBAAsB;EAClD,UAAU,EAAQ,aAAa;EAC/B,UAAU,EAAQ,YAAY;EAC9B,QAAQ,EAAQ,UAAU,QAAQ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O;AAChD,OAAO,IACH;IACE,MAAM;IACN,QAAQ;IACR,UAAU;IACV,UAAU,GAAQ,KAAS,EAAK,SAAS;IACzC,UAAU;IACX,GACD;;AAIN,MAAS;OAET,KACEA,EAAiBD,EAAK,IAAI,CAAC,SAAS,KAAKA,EAAK,GAC1C;EAAC,MAAM;EAAc,MAAA;EAAK,GAC1B;EAAC,MAAM;EAAW,OAAOA;EAAK;AAKtC,KAAI,EAAO,SAAS,WAAW;EAC7B,IAAM,IAAuC,EAAO;AACpD,SAAO,EAAI,KAAK,EAAM,YAAY,EAAK,GAAG,EAAM,WAAW,KAAQ;;AAIrE,KAAI,EAAM,UACR,QAAO,EAAM,UAAU,mBAAmB,EAAO;AAGnD,GAAY,EAAM;;AAQpB,SAAS,EAAY,GAAO,GAAO;CACjC,IAAM,IAAU,IAAI,EAClB,uDACA;EACE,WAAW,EAAM;EACjB;EACA,QAAQ;EACR,QAAQ;EACT,CACF;AAID,OAHA,EAAQ,OAAO,EAAM,YAAY,KAAA,GACjC,EAAQ,MAAM,IAAO,sDAEf;;AASR,SAAS,EAA2B,GAAW;CAE7C,IAAM,IAAY,EAAE,EAEhB;AAEJ,MAAK,KAAQ,EACX,CAAI,EAAI,KAAK,GAAW,EAAK,KAC3B,EAAU,EAA0B,EAAK,IAAI,EAAU;AAI3D,QAAO;;AAST,SAAS,EAA0B,GAAM;CACvC,IAAI,IAAK,EAAK,QAAQ,GAAK,EAAO;AAGlC,QADI,EAAG,MAAM,GAAG,EAAE,KAAK,UAAO,IAAK,MAAM,IAClC;;AAWT,SAAS,EAAO,GAAI;AAClB,QAAO,MAAM,EAAG,aAAa"}
@@ -0,0 +1,12 @@
1
+ //#region node_modules/hast-util-whitespace/lib/index.js
2
+ var e = /[ \t\n\f\r]/g;
3
+ function t(e) {
4
+ return typeof e == "object" ? e.type === "text" ? n(e.value) : !1 : n(e);
5
+ }
6
+ function n(t) {
7
+ return t.replace(e, "") === "";
8
+ }
9
+ //#endregion
10
+ export { t as whitespace };
11
+
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../node_modules/hast-util-whitespace/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('hast').Nodes} Nodes\n */\n\n// HTML whitespace expression.\n// See <https://infra.spec.whatwg.org/#ascii-whitespace>.\nconst re = /[ \\t\\n\\f\\r]/g\n\n/**\n * Check if the given value is *inter-element whitespace*.\n *\n * @param {Nodes | string} thing\n * Thing to check (`Node` or `string`).\n * @returns {boolean}\n * Whether the `value` is inter-element whitespace (`boolean`): consisting of\n * zero or more of space, tab (`\\t`), line feed (`\\n`), carriage return\n * (`\\r`), or form feed (`\\f`); if a node is passed it must be a `Text` node,\n * whose `value` field is checked.\n */\nexport function whitespace(thing) {\n return typeof thing === 'object'\n ? thing.type === 'text'\n ? empty(thing.value)\n : false\n : empty(thing)\n}\n\n/**\n * @param {string} value\n * @returns {boolean}\n */\nfunction empty(value) {\n return value.replace(re, '') === ''\n}\n"],"x_google_ignoreList":[0],"mappings":";AAMA,IAAM,IAAK;AAaX,SAAgB,EAAW,GAAO;AAChC,QAAO,OAAO,KAAU,WACpB,EAAM,SAAS,SACb,EAAM,EAAM,MAAM,GAClB,KACF,EAAM,EAAM;;AAOlB,SAAS,EAAM,GAAO;AACpB,QAAO,EAAM,QAAQ,GAAI,GAAG,KAAK"}
@@ -0,0 +1,38 @@
1
+ //#region node_modules/html-url-attributes/lib/index.js
2
+ var e = {
3
+ action: ["form"],
4
+ cite: [
5
+ "blockquote",
6
+ "del",
7
+ "ins",
8
+ "q"
9
+ ],
10
+ data: ["object"],
11
+ formAction: ["button", "input"],
12
+ href: [
13
+ "a",
14
+ "area",
15
+ "base",
16
+ "link"
17
+ ],
18
+ icon: ["menuitem"],
19
+ itemId: null,
20
+ manifest: ["html"],
21
+ ping: ["a", "area"],
22
+ poster: ["video"],
23
+ src: [
24
+ "audio",
25
+ "embed",
26
+ "iframe",
27
+ "img",
28
+ "input",
29
+ "script",
30
+ "source",
31
+ "track",
32
+ "video"
33
+ ]
34
+ };
35
+ //#endregion
36
+ export { e as urlAttributes };
37
+
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../node_modules/html-url-attributes/lib/index.js"],"sourcesContent":["/**\n * HTML URL properties.\n *\n * Each key is a property name and each value is a list of tag names it applies\n * to or `null` if it applies to all elements.\n *\n * @type {Record<string, Array<string> | null>}\n */\nexport const urlAttributes = {\n action: ['form'],\n cite: ['blockquote', 'del', 'ins', 'q'],\n data: ['object'],\n formAction: ['button', 'input'],\n href: ['a', 'area', 'base', 'link'],\n icon: ['menuitem'],\n itemId: null,\n manifest: ['html'],\n ping: ['a', 'area'],\n poster: ['video'],\n src: [\n 'audio',\n 'embed',\n 'iframe',\n 'img',\n 'input',\n 'script',\n 'source',\n 'track',\n 'video'\n ]\n}\n"],"x_google_ignoreList":[0],"mappings":";AAQA,IAAa,IAAgB;CAC3B,QAAQ,CAAC,OAAO;CAChB,MAAM;EAAC;EAAc;EAAO;EAAO;EAAI;CACvC,MAAM,CAAC,SAAS;CAChB,YAAY,CAAC,UAAU,QAAQ;CAC/B,MAAM;EAAC;EAAK;EAAQ;EAAQ;EAAO;CACnC,MAAM,CAAC,WAAW;CAClB,QAAQ;CACR,UAAU,CAAC,OAAO;CAClB,MAAM,CAAC,KAAK,OAAO;CACnB,QAAQ,CAAC,QAAQ;CACjB,KAAK;EACH;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;CACF"}
@@ -0,0 +1,92 @@
1
+ import { __commonJSMin as e } from "../../../_virtual/_rolldown/runtime.js";
2
+ //#region node_modules/inline-style-parser/cjs/index.js
3
+ var t = /* @__PURE__ */ e(((e, t) => {
4
+ var n = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, r = /\n/g, i = /^\s*/, a = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, o = /^:\s*/, s = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, c = /^[;\s]*/, l = /^\s+|\s+$/g, u = "\n", d = "/", f = "*", p = "", m = "comment", h = "declaration";
5
+ function g(e, t) {
6
+ if (typeof e != "string") throw TypeError("First argument must be a string");
7
+ if (!e) return [];
8
+ t ||= {};
9
+ var l = 1, g = 1;
10
+ function v(e) {
11
+ var t = e.match(r);
12
+ t && (l += t.length);
13
+ var n = e.lastIndexOf(u);
14
+ g = ~n ? e.length - n : g + e.length;
15
+ }
16
+ function y() {
17
+ var e = {
18
+ line: l,
19
+ column: g
20
+ };
21
+ return function(t) {
22
+ return t.position = new b(e), C(), t;
23
+ };
24
+ }
25
+ function b(e) {
26
+ this.start = e, this.end = {
27
+ line: l,
28
+ column: g
29
+ }, this.source = t.source;
30
+ }
31
+ b.prototype.content = e;
32
+ function x(n) {
33
+ var r = /* @__PURE__ */ Error(t.source + ":" + l + ":" + g + ": " + n);
34
+ if (r.reason = n, r.filename = t.source, r.line = l, r.column = g, r.source = e, !t.silent) throw r;
35
+ }
36
+ function S(t) {
37
+ var n = t.exec(e);
38
+ if (n) {
39
+ var r = n[0];
40
+ return v(r), e = e.slice(r.length), n;
41
+ }
42
+ }
43
+ function C() {
44
+ S(i);
45
+ }
46
+ function w(e) {
47
+ var t;
48
+ for (e ||= []; t = T();) t !== !1 && e.push(t);
49
+ return e;
50
+ }
51
+ function T() {
52
+ var t = y();
53
+ if (!(d != e.charAt(0) || f != e.charAt(1))) {
54
+ for (var n = 2; p != e.charAt(n) && (f != e.charAt(n) || d != e.charAt(n + 1));) ++n;
55
+ if (n += 2, p === e.charAt(n - 1)) return x("End of comment missing");
56
+ var r = e.slice(2, n - 2);
57
+ return g += 2, v(r), e = e.slice(n), g += 2, t({
58
+ type: m,
59
+ comment: r
60
+ });
61
+ }
62
+ }
63
+ function E() {
64
+ var e = y(), t = S(a);
65
+ if (t) {
66
+ if (T(), !S(o)) return x("property missing ':'");
67
+ var r = S(s), i = e({
68
+ type: h,
69
+ property: _(t[0].replace(n, p)),
70
+ value: r ? _(r[0].replace(n, p)) : p
71
+ });
72
+ return S(c), i;
73
+ }
74
+ }
75
+ function D() {
76
+ var e = [];
77
+ w(e);
78
+ for (var t; t = E();) t !== !1 && (e.push(t), w(e));
79
+ return e;
80
+ }
81
+ return C(), D();
82
+ }
83
+ function _(e) {
84
+ return e ? e.replace(l, p) : p;
85
+ }
86
+ t.exports = g;
87
+ }));
88
+ //#endregion
89
+ export default t();
90
+ export { t as require_cjs };
91
+
92
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../node_modules/inline-style-parser/cjs/index.js"],"sourcesContent":["'use strict';\n\n// http://www.w3.org/TR/CSS21/grammar.html\n// https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027\nvar COMMENT_REGEX = /\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\//g;\n\nvar NEWLINE_REGEX = /\\n/g;\nvar WHITESPACE_REGEX = /^\\s*/;\n\n// declaration\nvar PROPERTY_REGEX = /^(\\*?[-#/*\\\\\\w]+(\\[[0-9a-z_-]+\\])?)\\s*/;\nvar COLON_REGEX = /^:\\s*/;\nvar VALUE_REGEX = /^((?:'(?:\\\\'|.)*?'|\"(?:\\\\\"|.)*?\"|\\([^)]*?\\)|[^};])+)/;\nvar SEMICOLON_REGEX = /^[;\\s]*/;\n\n// https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Polyfill\nvar TRIM_REGEX = /^\\s+|\\s+$/g;\n\n// strings\nvar NEWLINE = '\\n';\nvar FORWARD_SLASH = '/';\nvar ASTERISK = '*';\nvar EMPTY_STRING = '';\n\n// types\nvar TYPE_COMMENT = 'comment';\nvar TYPE_DECLARATION = 'declaration';\n\n/**\n * @param {String} style\n * @param {Object} [options]\n * @return {Object[]}\n * @throws {TypeError}\n * @throws {Error}\n */\nfunction index (style, options) {\n if (typeof style !== 'string') {\n throw new TypeError('First argument must be a string');\n }\n\n if (!style) return [];\n\n options = options || {};\n\n /**\n * Positional.\n */\n var lineno = 1;\n var column = 1;\n\n /**\n * Update lineno and column based on `str`.\n *\n * @param {String} str\n */\n function updatePosition(str) {\n var lines = str.match(NEWLINE_REGEX);\n if (lines) lineno += lines.length;\n var i = str.lastIndexOf(NEWLINE);\n column = ~i ? str.length - i : column + str.length;\n }\n\n /**\n * Mark position and patch `node.position`.\n *\n * @return {Function}\n */\n function position() {\n var start = { line: lineno, column: column };\n return function (node) {\n node.position = new Position(start);\n whitespace();\n return node;\n };\n }\n\n /**\n * Store position information for a node.\n *\n * @constructor\n * @property {Object} start\n * @property {Object} end\n * @property {undefined|String} source\n */\n function Position(start) {\n this.start = start;\n this.end = { line: lineno, column: column };\n this.source = options.source;\n }\n\n /**\n * Non-enumerable source string.\n */\n Position.prototype.content = style;\n\n /**\n * Error `msg`.\n *\n * @param {String} msg\n * @throws {Error}\n */\n function error(msg) {\n var err = new Error(\n options.source + ':' + lineno + ':' + column + ': ' + msg\n );\n err.reason = msg;\n err.filename = options.source;\n err.line = lineno;\n err.column = column;\n err.source = style;\n\n if (options.silent) ; else {\n throw err;\n }\n }\n\n /**\n * Match `re` and return captures.\n *\n * @param {RegExp} re\n * @return {undefined|Array}\n */\n function match(re) {\n var m = re.exec(style);\n if (!m) return;\n var str = m[0];\n updatePosition(str);\n style = style.slice(str.length);\n return m;\n }\n\n /**\n * Parse whitespace.\n */\n function whitespace() {\n match(WHITESPACE_REGEX);\n }\n\n /**\n * Parse comments.\n *\n * @param {Object[]} [rules]\n * @return {Object[]}\n */\n function comments(rules) {\n var c;\n rules = rules || [];\n while ((c = comment())) {\n if (c !== false) {\n rules.push(c);\n }\n }\n return rules;\n }\n\n /**\n * Parse comment.\n *\n * @return {Object}\n * @throws {Error}\n */\n function comment() {\n var pos = position();\n if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;\n\n var i = 2;\n while (\n EMPTY_STRING != style.charAt(i) &&\n (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))\n ) {\n ++i;\n }\n i += 2;\n\n if (EMPTY_STRING === style.charAt(i - 1)) {\n return error('End of comment missing');\n }\n\n var str = style.slice(2, i - 2);\n column += 2;\n updatePosition(str);\n style = style.slice(i);\n column += 2;\n\n return pos({\n type: TYPE_COMMENT,\n comment: str\n });\n }\n\n /**\n * Parse declaration.\n *\n * @return {Object}\n * @throws {Error}\n */\n function declaration() {\n var pos = position();\n\n // prop\n var prop = match(PROPERTY_REGEX);\n if (!prop) return;\n comment();\n\n // :\n if (!match(COLON_REGEX)) return error(\"property missing ':'\");\n\n // val\n var val = match(VALUE_REGEX);\n\n var ret = pos({\n type: TYPE_DECLARATION,\n property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),\n value: val\n ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING))\n : EMPTY_STRING\n });\n\n // ;\n match(SEMICOLON_REGEX);\n\n return ret;\n }\n\n /**\n * Parse declarations.\n *\n * @return {Object[]}\n */\n function declarations() {\n var decls = [];\n\n comments(decls);\n\n // declarations\n var decl;\n while ((decl = declaration())) {\n if (decl !== false) {\n decls.push(decl);\n comments(decls);\n }\n }\n\n return decls;\n }\n\n whitespace();\n return declarations();\n}\n\n/**\n * Trim `str`.\n *\n * @param {String} str\n * @return {String}\n */\nfunction trim(str) {\n return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;\n}\n\nmodule.exports = index;\n//# sourceMappingURL=index.js.map\n"],"x_google_ignoreList":[0],"mappings":";;;CAIA,IAAI,IAAgB,mCAEhB,IAAgB,OAChB,IAAmB,QAGnB,IAAiB,0CACjB,IAAc,SACd,IAAc,wDACd,IAAkB,WAGlB,IAAa,cAGb,IAAU,MACV,IAAgB,KAChB,IAAW,KACX,IAAe,IAGf,IAAe,WACf,IAAmB;CASvB,SAAS,EAAO,GAAO,GAAS;AAC9B,MAAI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AM,OAAO,EAAE,IAAI,KAAY,EAAM,OAAO,EAAE,GAGnE;SADA,IAAI,IAAI,GAEN,KAAgB,EAAM,OAAO,EAAE,KAC9B,KAAY,EAAM,OAAO,EAAE,IAAI,KAAiB,EAAM,OAAO,IAAI,EAAE,GAEpE,GAAE;AAIJ,QAFA,KAAK,GAED,MAAiB,EAAM,OAAO,IAAI,EAAE,CACtC,QAAO,EAAM,yBAAyB;IAGxC,IAAI,IAAM,EAAM,MAAM,GAAG,IAAI,EAAE;AAM/B,WALA,KAAU,GACV,EAAe,EAAI,EACnB,IAAQ,EAAM,MAAM,EAAE,EACtB,KAAU,GAEH,EAAI;KACT,MAAM;KACN,SAAS;KACV,CAAC;;;EASJ,SAAS,IAAc;GACrB,IAAI,IAAM,GAAU,EAGhB,IAAO,EAAM,EAAe;AAC3B,UAIL;QAHA,GAAS,EAGL,CAAC,EAAM,EAAY,CAAE,QAAO,EAAM,uBAAuB;IAG7D,IAAI,IAAM,EAAM,EAAY,EAExB,IAAM,EAAI;KACZ,MAAM;KACN,UAAU,EAAK,EAAK,GAAG,QAAQ,GAAe,EAAa,CAAC;KAC5D,OAAO,IACH,EAAK,EAAI,GAAG,QAAQ,GAAe,EAAa,CAAC,GACjD;KACL,CAAC;AAKF,WAFA,EAAM,EAAgB,EAEf;;;EAQT,SAAS,IAAe;GACtB,IAAI,IAAQ,EAAE;AAEd,KAAS,EAAM;AAIf,QADA,IAAI,GACI,IAAO,GAAa,EAC1B,CAAI,MAAS,OACX,EAAM,KAAK,EAAK,EAChB,EAAS,EAAM;AAInB,UAAO;;AAIT,SADA,GAAY,EACL,GAAc;;CASvB,SAAS,EAAK,GAAK;AACjB,SAAO,IAAM,EAAI,QAAQ,GAAY,EAAa,GAAG;;AAGvD,GAAO,UAAU"}
@@ -0,0 +1,10 @@
1
+ //#region node_modules/is-plain-obj/index.js
2
+ function e(e) {
3
+ if (typeof e != "object" || !e) return !1;
4
+ let t = Object.getPrototypeOf(e);
5
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
6
+ }
7
+ //#endregion
8
+ export { e as default };
9
+
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/is-plain-obj/index.js"],"sourcesContent":["export default function isPlainObject(value) {\n\tif (typeof value !== 'object' || value === null) {\n\t\treturn false;\n\t}\n\n\tconst prototype = Object.getPrototypeOf(value);\n\treturn (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);\n}\n"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAwB,EAAc,GAAO;AAC5C,KAAI,OAAO,KAAU,aAAY,EAChC,QAAO;CAGR,IAAM,IAAY,OAAO,eAAe,EAAM;AAC9C,SAAQ,MAAc,QAAQ,MAAc,OAAO,aAAa,OAAO,eAAe,EAAU,KAAK,SAAS,EAAE,OAAO,eAAe,MAAU,EAAE,OAAO,YAAY"}