@burdenoff/microfe-store 2026.720.3 → 2026.720.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +20 -0
  2. package/dist/components/MarkdownEditor.js +5 -5
  3. package/dist/components/MarkdownEditor.js.map +1 -1
  4. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +63 -0
  5. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js.map +1 -0
  6. package/dist/node_modules/@ungap/structured-clone/esm/index.js +8 -0
  7. package/dist/node_modules/@ungap/structured-clone/esm/index.js.map +1 -0
  8. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +93 -0
  9. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js.map +1 -0
  10. package/dist/node_modules/bail/index.js +8 -0
  11. package/dist/node_modules/bail/index.js.map +1 -0
  12. package/dist/node_modules/comma-separated-tokens/index.js +9 -0
  13. package/dist/node_modules/comma-separated-tokens/index.js.map +1 -0
  14. package/dist/node_modules/decode-named-character-reference/index.dom.js +12 -0
  15. package/dist/node_modules/decode-named-character-reference/index.dom.js.map +1 -0
  16. package/dist/node_modules/devlop/lib/default.js +7 -0
  17. package/dist/node_modules/devlop/lib/default.js.map +1 -0
  18. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +9 -0
  19. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js.map +1 -0
  20. package/dist/node_modules/extend/index.js +42 -0
  21. package/dist/node_modules/extend/index.js.map +1 -0
  22. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +255 -0
  23. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js.map +1 -0
  24. package/dist/node_modules/hast-util-whitespace/lib/index.js +12 -0
  25. package/dist/node_modules/hast-util-whitespace/lib/index.js.map +1 -0
  26. package/dist/node_modules/html-url-attributes/lib/index.js +38 -0
  27. package/dist/node_modules/html-url-attributes/lib/index.js.map +1 -0
  28. package/dist/node_modules/inline-style-parser/cjs/index.js +92 -0
  29. package/dist/node_modules/inline-style-parser/cjs/index.js.map +1 -0
  30. package/dist/node_modules/is-plain-obj/index.js +10 -0
  31. package/dist/node_modules/is-plain-obj/index.js.map +1 -0
  32. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +559 -0
  33. package/dist/node_modules/mdast-util-from-markdown/lib/index.js.map +1 -0
  34. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +105 -0
  35. package/dist/node_modules/mdast-util-to-hast/lib/footer.js.map +1 -0
  36. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +14 -0
  37. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +1 -0
  38. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +17 -0
  39. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js.map +1 -0
  40. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +24 -0
  41. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js.map +1 -0
  42. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +14 -0
  43. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +1 -0
  44. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +14 -0
  45. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +1 -0
  46. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +32 -0
  47. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +1 -0
  48. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +14 -0
  49. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +1 -0
  50. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +14 -0
  51. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js.map +1 -0
  52. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +23 -0
  53. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +1 -0
  54. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +17 -0
  55. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js.map +1 -0
  56. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
  57. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js.map +1 -0
  58. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +19 -0
  59. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +1 -0
  60. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +20 -0
  61. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +1 -0
  62. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +17 -0
  63. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js.map +1 -0
  64. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +61 -0
  65. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +1 -0
  66. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +22 -0
  67. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js.map +1 -0
  68. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +14 -0
  69. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +1 -0
  70. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +12 -0
  71. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js.map +1 -0
  72. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +14 -0
  73. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +1 -0
  74. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +14 -0
  75. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +1 -0
  76. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +26 -0
  77. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +1 -0
  78. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +37 -0
  79. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js.map +1 -0
  80. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +13 -0
  81. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js.map +1 -0
  82. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +14 -0
  83. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +1 -0
  84. package/dist/node_modules/mdast-util-to-hast/lib/index.js +21 -0
  85. package/dist/node_modules/mdast-util-to-hast/lib/index.js.map +1 -0
  86. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +22 -0
  87. package/dist/node_modules/mdast-util-to-hast/lib/revert.js.map +1 -0
  88. package/dist/node_modules/mdast-util-to-hast/lib/state.js +110 -0
  89. package/dist/node_modules/mdast-util-to-hast/lib/state.js.map +1 -0
  90. package/dist/node_modules/mdast-util-to-string/lib/index.js +26 -0
  91. package/dist/node_modules/mdast-util-to-string/lib/index.js.map +1 -0
  92. package/dist/node_modules/micromark/lib/constructs.js +82 -0
  93. package/dist/node_modules/micromark/lib/constructs.js.map +1 -0
  94. package/dist/node_modules/micromark/lib/create-tokenizer.js +179 -0
  95. package/dist/node_modules/micromark/lib/create-tokenizer.js.map +1 -0
  96. package/dist/node_modules/micromark/lib/initialize/content.js +36 -0
  97. package/dist/node_modules/micromark/lib/initialize/content.js.map +1 -0
  98. package/dist/node_modules/micromark/lib/initialize/document.js +104 -0
  99. package/dist/node_modules/micromark/lib/initialize/document.js.map +1 -0
  100. package/dist/node_modules/micromark/lib/initialize/flow.js +27 -0
  101. package/dist/node_modules/micromark/lib/initialize/flow.js.map +1 -0
  102. package/dist/node_modules/micromark/lib/initialize/text.js +88 -0
  103. package/dist/node_modules/micromark/lib/initialize/text.js.map +1 -0
  104. package/dist/node_modules/micromark/lib/parse.js +31 -0
  105. package/dist/node_modules/micromark/lib/parse.js.map +1 -0
  106. package/dist/node_modules/micromark/lib/postprocess.js +10 -0
  107. package/dist/node_modules/micromark/lib/postprocess.js.map +1 -0
  108. package/dist/node_modules/micromark/lib/preprocess.js +34 -0
  109. package/dist/node_modules/micromark/lib/preprocess.js.map +1 -0
  110. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +116 -0
  111. package/dist/node_modules/micromark-core-commonmark/lib/attention.js.map +1 -0
  112. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +45 -0
  113. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js.map +1 -0
  114. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +20 -0
  115. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -0
  116. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +40 -0
  117. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js.map +1 -0
  118. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +19 -0
  119. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js.map +1 -0
  120. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +31 -0
  121. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js.map +1 -0
  122. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +91 -0
  123. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js.map +1 -0
  124. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +45 -0
  125. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js.map +1 -0
  126. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
  127. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js.map +1 -0
  128. package/dist/node_modules/micromark-core-commonmark/lib/content.js +49 -0
  129. package/dist/node_modules/micromark-core-commonmark/lib/content.js.map +1 -0
  130. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +62 -0
  131. package/dist/node_modules/micromark-core-commonmark/lib/definition.js.map +1 -0
  132. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +19 -0
  133. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +1 -0
  134. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +69 -0
  135. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js.map +1 -0
  136. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +143 -0
  137. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js.map +1 -0
  138. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
  139. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js.map +1 -0
  140. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +160 -0
  141. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js.map +1 -0
  142. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +25 -0
  143. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js.map +1 -0
  144. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +22 -0
  145. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js.map +1 -0
  146. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +16 -0
  147. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js.map +1 -0
  148. package/dist/node_modules/micromark-core-commonmark/lib/list.js +80 -0
  149. package/dist/node_modules/micromark-core-commonmark/lib/list.js.map +1 -0
  150. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +61 -0
  151. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js.map +1 -0
  152. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +27 -0
  153. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js.map +1 -0
  154. package/dist/node_modules/micromark-factory-destination/index.js +28 -0
  155. package/dist/node_modules/micromark-factory-destination/index.js.map +1 -0
  156. package/dist/node_modules/micromark-factory-label/index.js +22 -0
  157. package/dist/node_modules/micromark-factory-label/index.js.map +1 -0
  158. package/dist/node_modules/micromark-factory-space/index.js +16 -0
  159. package/dist/node_modules/micromark-factory-space/index.js.map +1 -0
  160. package/dist/node_modules/micromark-factory-title/index.js +26 -0
  161. package/dist/node_modules/micromark-factory-title/index.js.map +1 -0
  162. package/dist/node_modules/micromark-factory-whitespace/index.js +14 -0
  163. package/dist/node_modules/micromark-factory-whitespace/index.js.map +1 -0
  164. package/dist/node_modules/micromark-util-character/index.js +26 -0
  165. package/dist/node_modules/micromark-util-character/index.js.map +1 -0
  166. package/dist/node_modules/micromark-util-chunked/index.js +13 -0
  167. package/dist/node_modules/micromark-util-chunked/index.js.map +1 -0
  168. package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
  169. package/dist/node_modules/micromark-util-classify-character/index.js.map +1 -0
  170. package/dist/node_modules/micromark-util-combine-extensions/index.js +28 -0
  171. package/dist/node_modules/micromark-util-combine-extensions/index.js.map +1 -0
  172. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +9 -0
  173. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js.map +1 -0
  174. package/dist/node_modules/micromark-util-decode-string/index.js +19 -0
  175. package/dist/node_modules/micromark-util-decode-string/index.js.map +1 -0
  176. package/dist/node_modules/micromark-util-html-tag-name/index.js +11 -0
  177. package/dist/node_modules/micromark-util-html-tag-name/index.js.map +1 -0
  178. package/dist/node_modules/micromark-util-normalize-identifier/index.js +8 -0
  179. package/dist/node_modules/micromark-util-normalize-identifier/index.js.map +1 -0
  180. package/dist/node_modules/micromark-util-resolve-all/index.js +13 -0
  181. package/dist/node_modules/micromark-util-resolve-all/index.js.map +1 -0
  182. package/dist/node_modules/micromark-util-sanitize-uri/index.js +20 -0
  183. package/dist/node_modules/micromark-util-sanitize-uri/index.js.map +1 -0
  184. package/dist/node_modules/micromark-util-subtokenize/index.js +37 -0
  185. package/dist/node_modules/micromark-util-subtokenize/index.js.map +1 -0
  186. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +59 -0
  187. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +1 -0
  188. package/dist/node_modules/property-information/index.js +28 -0
  189. package/dist/node_modules/property-information/index.js.map +1 -0
  190. package/dist/node_modules/property-information/lib/aria.js +63 -0
  191. package/dist/node_modules/property-information/lib/aria.js.map +1 -0
  192. package/dist/node_modules/property-information/lib/find.js +33 -0
  193. package/dist/node_modules/property-information/lib/find.js.map +1 -0
  194. package/dist/node_modules/property-information/lib/hast-to-react.js +24 -0
  195. package/dist/node_modules/property-information/lib/hast-to-react.js.map +1 -0
  196. package/dist/node_modules/property-information/lib/html.js +328 -0
  197. package/dist/node_modules/property-information/lib/html.js.map +1 -0
  198. package/dist/node_modules/property-information/lib/normalize.js +8 -0
  199. package/dist/node_modules/property-information/lib/normalize.js.map +1 -0
  200. package/dist/node_modules/property-information/lib/svg.js +566 -0
  201. package/dist/node_modules/property-information/lib/svg.js.map +1 -0
  202. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +9 -0
  203. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js.map +1 -0
  204. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +8 -0
  205. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js.map +1 -0
  206. package/dist/node_modules/property-information/lib/util/create.js +16 -0
  207. package/dist/node_modules/property-information/lib/util/create.js.map +1 -0
  208. package/dist/node_modules/property-information/lib/util/defined-info.js +20 -0
  209. package/dist/node_modules/property-information/lib/util/defined-info.js.map +1 -0
  210. package/dist/node_modules/property-information/lib/util/info.js +11 -0
  211. package/dist/node_modules/property-information/lib/util/info.js.map +1 -0
  212. package/dist/node_modules/property-information/lib/util/merge.js +11 -0
  213. package/dist/node_modules/property-information/lib/util/merge.js.map +1 -0
  214. package/dist/node_modules/property-information/lib/util/schema.js +11 -0
  215. package/dist/node_modules/property-information/lib/util/schema.js.map +1 -0
  216. package/dist/node_modules/property-information/lib/util/types.js +18 -0
  217. package/dist/node_modules/property-information/lib/util/types.js.map +1 -0
  218. package/dist/node_modules/property-information/lib/xlink.js +21 -0
  219. package/dist/node_modules/property-information/lib/xlink.js.map +1 -0
  220. package/dist/node_modules/property-information/lib/xml.js +17 -0
  221. package/dist/node_modules/property-information/lib/xml.js.map +1 -0
  222. package/dist/node_modules/property-information/lib/xmlns.js +16 -0
  223. package/dist/node_modules/property-information/lib/xmlns.js.map +1 -0
  224. package/dist/node_modules/react-markdown/lib/index.js +142 -0
  225. package/dist/node_modules/react-markdown/lib/index.js.map +1 -0
  226. package/dist/node_modules/remark-parse/lib/index.js +18 -0
  227. package/dist/node_modules/remark-parse/lib/index.js.map +1 -0
  228. package/dist/node_modules/remark-rehype/lib/index.js +20 -0
  229. package/dist/node_modules/remark-rehype/lib/index.js.map +1 -0
  230. package/dist/node_modules/space-separated-tokens/index.js +8 -0
  231. package/dist/node_modules/space-separated-tokens/index.js.map +1 -0
  232. package/dist/node_modules/style-to-js/cjs/index.js +21 -0
  233. package/dist/node_modules/style-to-js/cjs/index.js.map +1 -0
  234. package/dist/node_modules/style-to-js/cjs/utilities.js +20 -0
  235. package/dist/node_modules/style-to-js/cjs/utilities.js.map +1 -0
  236. package/dist/node_modules/style-to-object/cjs/index.js +25 -0
  237. package/dist/node_modules/style-to-object/cjs/index.js.map +1 -0
  238. package/dist/node_modules/trim-lines/index.js +23 -0
  239. package/dist/node_modules/trim-lines/index.js.map +1 -0
  240. package/dist/node_modules/trough/lib/index.js +52 -0
  241. package/dist/node_modules/trough/lib/index.js.map +1 -0
  242. package/dist/node_modules/unified/lib/callable-instance.js +11 -0
  243. package/dist/node_modules/unified/lib/callable-instance.js.map +1 -0
  244. package/dist/node_modules/unified/lib/index.js +163 -0
  245. package/dist/node_modules/unified/lib/index.js.map +1 -0
  246. package/dist/node_modules/unist-util-is/lib/index.js +49 -0
  247. package/dist/node_modules/unist-util-is/lib/index.js.map +1 -0
  248. package/dist/node_modules/unist-util-position/lib/index.js +24 -0
  249. package/dist/node_modules/unist-util-position/lib/index.js.map +1 -0
  250. package/dist/node_modules/unist-util-stringify-position/lib/index.js +17 -0
  251. package/dist/node_modules/unist-util-stringify-position/lib/index.js.map +1 -0
  252. package/dist/node_modules/unist-util-visit/lib/index.js +14 -0
  253. package/dist/node_modules/unist-util-visit/lib/index.js.map +1 -0
  254. package/dist/node_modules/unist-util-visit-parents/lib/color.js +8 -0
  255. package/dist/node_modules/unist-util-visit-parents/lib/color.js.map +1 -0
  256. package/dist/node_modules/unist-util-visit-parents/lib/index.js +38 -0
  257. package/dist/node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
  258. package/dist/node_modules/vfile/lib/index.js +91 -0
  259. package/dist/node_modules/vfile/lib/index.js.map +1 -0
  260. package/dist/node_modules/vfile/lib/minpath.browser.js +101 -0
  261. package/dist/node_modules/vfile/lib/minpath.browser.js.map +1 -0
  262. package/dist/node_modules/vfile/lib/minproc.browser.js +9 -0
  263. package/dist/node_modules/vfile/lib/minproc.browser.js.map +1 -0
  264. package/dist/node_modules/vfile/lib/minurl.browser.js +33 -0
  265. package/dist/node_modules/vfile/lib/minurl.browser.js.map +1 -0
  266. package/dist/node_modules/vfile/lib/minurl.shared.js +8 -0
  267. package/dist/node_modules/vfile/lib/minurl.shared.js.map +1 -0
  268. package/dist/node_modules/vfile-message/lib/index.js +26 -0
  269. package/dist/node_modules/vfile-message/lib/index.js.map +1 -0
  270. package/dist/pages/AdminSubmissionsQueuePage.js +174 -174
  271. package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
  272. package/dist/pages/MarketplaceHomePage.js +472 -422
  273. package/dist/pages/MarketplaceHomePage.js.map +1 -1
  274. package/dist/pages/ProductDetailPage.js +16 -16
  275. package/dist/pages/ProductDetailPage.js.map +1 -1
  276. package/package.json +1 -1
@@ -0,0 +1,255 @@
1
+ import { __toESM as e } from "../../../_virtual/_rolldown/runtime.js";
2
+ import "../../devlop/lib/default.js";
3
+ import { stringify as t } from "../../comma-separated-tokens/index.js";
4
+ import { name as n } from "../../estree-util-is-identifier-name/lib/index.js";
5
+ import { whitespace as r } from "../../hast-util-whitespace/lib/index.js";
6
+ import { hastToReact as i } from "../../property-information/lib/hast-to-react.js";
7
+ import { find as a } from "../../property-information/lib/find.js";
8
+ import { html as o, svg as s } from "../../property-information/index.js";
9
+ import { stringify as c } from "../../space-separated-tokens/index.js";
10
+ import { require_cjs as l } from "../../style-to-js/cjs/index.js";
11
+ import { pointStart as u } from "../../unist-util-position/lib/index.js";
12
+ import { VFileMessage as d } from "../../vfile-message/lib/index.js";
13
+ //#region node_modules/hast-util-to-jsx-runtime/lib/index.js
14
+ var f = /* @__PURE__ */ e(l(), 1), p = {}.hasOwnProperty, m = /* @__PURE__ */ new Map(), h = /[A-Z]/g, g = new Set([
15
+ "table",
16
+ "tbody",
17
+ "thead",
18
+ "tfoot",
19
+ "tr"
20
+ ]), _ = new Set(["td", "th"]), v = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
21
+ function y(e, t) {
22
+ if (!t || t.Fragment === void 0) throw TypeError("Expected `Fragment` in options");
23
+ let n = t.filePath || void 0, r;
24
+ if (t.development) {
25
+ if (typeof t.jsxDEV != "function") throw TypeError("Expected `jsxDEV` in options when `development: true`");
26
+ r = A(n, t.jsxDEV);
27
+ } else {
28
+ if (typeof t.jsx != "function") throw TypeError("Expected `jsx` in production options");
29
+ if (typeof t.jsxs != "function") throw TypeError("Expected `jsxs` in production options");
30
+ r = k(n, t.jsx, t.jsxs);
31
+ }
32
+ let i = {
33
+ Fragment: t.Fragment,
34
+ ancestors: [],
35
+ components: t.components || {},
36
+ create: r,
37
+ elementAttributeNameCase: t.elementAttributeNameCase || "react",
38
+ evaluater: t.createEvaluater ? t.createEvaluater() : void 0,
39
+ filePath: n,
40
+ ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
41
+ passKeys: t.passKeys !== !1,
42
+ passNode: t.passNode || !1,
43
+ schema: t.space === "svg" ? s : o,
44
+ stylePropertyNameCase: t.stylePropertyNameCase || "dom",
45
+ tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
46
+ }, a = b(i, e, void 0);
47
+ return a && typeof a != "string" ? a : i.create(e, i.Fragment, { children: a || void 0 }, void 0);
48
+ }
49
+ function b(e, t, n) {
50
+ if (t.type === "element") return x(e, t, n);
51
+ if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression") return S(e, t);
52
+ if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement") return w(e, t, n);
53
+ if (t.type === "mdxjsEsm") return C(e, t);
54
+ if (t.type === "root") return T(e, t, n);
55
+ if (t.type === "text") return E(e, t);
56
+ }
57
+ function x(e, t, n) {
58
+ let i = e.schema, a = i;
59
+ t.tagName.toLowerCase() === "svg" && i.space === "html" && (a = s, e.schema = a), e.ancestors.push(t);
60
+ let o = I(e, t.tagName, !1), c = j(e, t), l = N(e, t);
61
+ return g.has(t.tagName) && (l = l.filter(function(e) {
62
+ return typeof e == "string" ? !r(e) : !0;
63
+ })), D(e, c, o, t), O(c, l), e.ancestors.pop(), e.schema = i, e.create(t, o, c, n);
64
+ }
65
+ function S(e, t) {
66
+ if (t.data && t.data.estree && e.evaluater) {
67
+ let n = t.data.estree.body[0];
68
+ return n.type, e.evaluater.evaluateExpression(n.expression);
69
+ }
70
+ L(e, t.position);
71
+ }
72
+ function C(e, t) {
73
+ if (t.data && t.data.estree && e.evaluater) return e.evaluater.evaluateProgram(t.data.estree);
74
+ L(e, t.position);
75
+ }
76
+ function w(e, t, n) {
77
+ let r = e.schema, i = r;
78
+ t.name === "svg" && r.space === "html" && (i = s, e.schema = i), e.ancestors.push(t);
79
+ let a = t.name === null ? e.Fragment : I(e, t.name, !0), o = M(e, t), c = N(e, t);
80
+ return D(e, o, a, t), O(o, c), e.ancestors.pop(), e.schema = r, e.create(t, a, o, n);
81
+ }
82
+ function T(e, t, n) {
83
+ let r = {};
84
+ return O(r, N(e, t)), e.create(t, e.Fragment, r, n);
85
+ }
86
+ function E(e, t) {
87
+ return t.value;
88
+ }
89
+ function D(e, t, n, r) {
90
+ typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
91
+ }
92
+ function O(e, t) {
93
+ if (t.length > 0) {
94
+ let n = t.length > 1 ? t : t[0];
95
+ n && (e.children = n);
96
+ }
97
+ }
98
+ function k(e, t, n) {
99
+ return r;
100
+ function r(e, r, i, a) {
101
+ let o = Array.isArray(i.children) ? n : t;
102
+ return a ? o(r, i, a) : o(r, i);
103
+ }
104
+ }
105
+ function A(e, t) {
106
+ return n;
107
+ function n(n, r, i, a) {
108
+ let o = Array.isArray(i.children), s = u(n);
109
+ return t(r, i, a, o, {
110
+ columnNumber: s ? s.column - 1 : void 0,
111
+ fileName: e,
112
+ lineNumber: s ? s.line : void 0
113
+ }, void 0);
114
+ }
115
+ }
116
+ function j(e, t) {
117
+ let n = {}, r, i;
118
+ for (i in t.properties) if (i !== "children" && p.call(t.properties, i)) {
119
+ let a = P(e, i, t.properties[i]);
120
+ if (a) {
121
+ let [i, o] = a;
122
+ e.tableCellAlignToStyle && i === "align" && typeof o == "string" && _.has(t.tagName) ? r = o : n[i] = o;
123
+ }
124
+ }
125
+ if (r) {
126
+ let t = n.style ||= {};
127
+ t[e.stylePropertyNameCase === "css" ? "text-align" : "textAlign"] = r;
128
+ }
129
+ return n;
130
+ }
131
+ function M(e, t) {
132
+ let n = {};
133
+ for (let r of t.attributes) if (r.type === "mdxJsxExpressionAttribute") if (r.data && r.data.estree && e.evaluater) {
134
+ let t = r.data.estree.body[0];
135
+ t.type;
136
+ let i = t.expression;
137
+ i.type;
138
+ let a = i.properties[0];
139
+ a.type, Object.assign(n, e.evaluater.evaluateExpression(a.argument));
140
+ } else L(e, t.position);
141
+ else {
142
+ let i = r.name, a;
143
+ if (r.value && typeof r.value == "object") if (r.value.data && r.value.data.estree && e.evaluater) {
144
+ let t = r.value.data.estree.body[0];
145
+ t.type, a = e.evaluater.evaluateExpression(t.expression);
146
+ } else L(e, t.position);
147
+ else a = r.value === null ? !0 : r.value;
148
+ n[i] = a;
149
+ }
150
+ return n;
151
+ }
152
+ function N(e, t) {
153
+ let n = [], r = -1, i = e.passKeys ? /* @__PURE__ */ new Map() : m;
154
+ for (; ++r < t.children.length;) {
155
+ let a = t.children[r], o;
156
+ if (e.passKeys) {
157
+ let e = a.type === "element" ? a.tagName : a.type === "mdxJsxFlowElement" || a.type === "mdxJsxTextElement" ? a.name : void 0;
158
+ if (e) {
159
+ let t = i.get(e) || 0;
160
+ o = e + "-" + t, i.set(e, t + 1);
161
+ }
162
+ }
163
+ let s = b(e, a, o);
164
+ s !== void 0 && n.push(s);
165
+ }
166
+ return n;
167
+ }
168
+ function P(e, n, r) {
169
+ let o = a(e.schema, n);
170
+ if (!(r == null || typeof r == "number" && Number.isNaN(r))) {
171
+ if (Array.isArray(r) && (r = o.commaSeparated ? t(r) : c(r)), o.property === "style") {
172
+ let t = typeof r == "object" ? r : F(e, String(r));
173
+ return e.stylePropertyNameCase === "css" && (t = R(t)), ["style", t];
174
+ }
175
+ return [e.elementAttributeNameCase === "react" && o.space ? i[o.property] || o.property : o.attribute, r];
176
+ }
177
+ }
178
+ function F(e, t) {
179
+ try {
180
+ return (0, f.default)(t, { reactCompat: !0 });
181
+ } catch (t) {
182
+ if (e.ignoreInvalidStyle) return {};
183
+ let n = t, r = new d("Cannot parse `style` attribute", {
184
+ ancestors: e.ancestors,
185
+ cause: n,
186
+ ruleId: "style",
187
+ source: "hast-util-to-jsx-runtime"
188
+ });
189
+ throw r.file = e.filePath || void 0, r.url = v + "#cannot-parse-style-attribute", r;
190
+ }
191
+ }
192
+ function I(e, t, r) {
193
+ let i;
194
+ if (!r) i = {
195
+ type: "Literal",
196
+ value: t
197
+ };
198
+ else if (t.includes(".")) {
199
+ let e = t.split("."), r = -1, a;
200
+ for (; ++r < e.length;) {
201
+ let t = n(e[r]) ? {
202
+ type: "Identifier",
203
+ name: e[r]
204
+ } : {
205
+ type: "Literal",
206
+ value: e[r]
207
+ };
208
+ a = a ? {
209
+ type: "MemberExpression",
210
+ object: a,
211
+ property: t,
212
+ computed: !!(r && t.type === "Literal"),
213
+ optional: !1
214
+ } : t;
215
+ }
216
+ i = a;
217
+ } else i = n(t) && !/^[a-z]/.test(t) ? {
218
+ type: "Identifier",
219
+ name: t
220
+ } : {
221
+ type: "Literal",
222
+ value: t
223
+ };
224
+ if (i.type === "Literal") {
225
+ let t = i.value;
226
+ return p.call(e.components, t) ? e.components[t] : t;
227
+ }
228
+ if (e.evaluater) return e.evaluater.evaluateExpression(i);
229
+ L(e);
230
+ }
231
+ function L(e, t) {
232
+ let n = new d("Cannot handle MDX estrees without `createEvaluater`", {
233
+ ancestors: e.ancestors,
234
+ place: t,
235
+ ruleId: "mdx-estree",
236
+ source: "hast-util-to-jsx-runtime"
237
+ });
238
+ throw n.file = e.filePath || void 0, n.url = v + "#cannot-handle-mdx-estrees-without-createevaluater", n;
239
+ }
240
+ function R(e) {
241
+ let t = {}, n;
242
+ for (n in e) p.call(e, n) && (t[z(n)] = e[n]);
243
+ return t;
244
+ }
245
+ function z(e) {
246
+ let t = e.replace(h, B);
247
+ return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
248
+ }
249
+ function B(e) {
250
+ return "-" + e.toLowerCase();
251
+ }
252
+ //#endregion
253
+ export { y as toJsxRuntime };
254
+
255
+ //# sourceMappingURL=index.js.map
@@ -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,C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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,OAAO,KAAU,SACnB,OAAU,UAAU,kCAAkC;AAGxD,MAAI,CAAC,EAAO,QAAO,EAAE;AAErB,QAAqB,EAAE;EAKvB,IAAI,IAAS,GACT,IAAS;EAOb,SAAS,EAAe,GAAK;GAC3B,IAAI,IAAQ,EAAI,MAAM,EAAc;AACpC,GAAI,MAAO,KAAU,EAAM;GAC3B,IAAI,IAAI,EAAI,YAAY,EAAQ;AAChC,OAAS,CAAC,IAAI,EAAI,SAAS,IAAI,IAAS,EAAI;;EAQ9C,SAAS,IAAW;GAClB,IAAI,IAAQ;IAAE,MAAM;IAAgB;IAAQ;AAC5C,UAAO,SAAU,GAAM;AAGrB,WAFA,E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,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"}