@burdenoff/microfe-store 2026.720.2 → 2026.720.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.js +20 -0
- package/dist/components/MarkdownEditor.d.ts +12 -0
- package/dist/components/MarkdownEditor.js +117 -0
- package/dist/components/MarkdownEditor.js.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +63 -0
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js.map +1 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +8 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js.map +1 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +93 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js.map +1 -0
- package/dist/node_modules/bail/index.js +8 -0
- package/dist/node_modules/bail/index.js.map +1 -0
- package/dist/node_modules/comma-separated-tokens/index.js +9 -0
- package/dist/node_modules/comma-separated-tokens/index.js.map +1 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +12 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js.map +1 -0
- package/dist/node_modules/devlop/lib/default.js +7 -0
- package/dist/node_modules/devlop/lib/default.js.map +1 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +9 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js.map +1 -0
- package/dist/node_modules/extend/index.js +42 -0
- package/dist/node_modules/extend/index.js.map +1 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +255 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js.map +1 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js +12 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js.map +1 -0
- package/dist/node_modules/html-url-attributes/lib/index.js +38 -0
- package/dist/node_modules/html-url-attributes/lib/index.js.map +1 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js +92 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js.map +1 -0
- package/dist/node_modules/is-plain-obj/index.js +10 -0
- package/dist/node_modules/is-plain-obj/index.js.map +1 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +559 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +105 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +17 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +24 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +32 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +23 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +17 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +19 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +20 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +17 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +61 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +22 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +26 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +37 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +22 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js.map +1 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +110 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js.map +1 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +26 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js.map +1 -0
- package/dist/node_modules/micromark/lib/constructs.js +82 -0
- package/dist/node_modules/micromark/lib/constructs.js.map +1 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +179 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +36 -0
- package/dist/node_modules/micromark/lib/initialize/content.js.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +104 -0
- package/dist/node_modules/micromark/lib/initialize/document.js.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +27 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +88 -0
- package/dist/node_modules/micromark/lib/initialize/text.js.map +1 -0
- package/dist/node_modules/micromark/lib/parse.js +31 -0
- package/dist/node_modules/micromark/lib/parse.js.map +1 -0
- package/dist/node_modules/micromark/lib/postprocess.js +10 -0
- package/dist/node_modules/micromark/lib/postprocess.js.map +1 -0
- package/dist/node_modules/micromark/lib/preprocess.js +34 -0
- package/dist/node_modules/micromark/lib/preprocess.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +116 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +20 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +40 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +19 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +31 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +91 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +49 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +62 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +19 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +69 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +143 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +160 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +25 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +22 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +16 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +80 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +61 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +27 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js.map +1 -0
- package/dist/node_modules/micromark-factory-destination/index.js +28 -0
- package/dist/node_modules/micromark-factory-destination/index.js.map +1 -0
- package/dist/node_modules/micromark-factory-label/index.js +22 -0
- package/dist/node_modules/micromark-factory-label/index.js.map +1 -0
- package/dist/node_modules/micromark-factory-space/index.js +16 -0
- package/dist/node_modules/micromark-factory-space/index.js.map +1 -0
- package/dist/node_modules/micromark-factory-title/index.js +26 -0
- package/dist/node_modules/micromark-factory-title/index.js.map +1 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +14 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js.map +1 -0
- package/dist/node_modules/micromark-util-character/index.js +26 -0
- package/dist/node_modules/micromark-util-character/index.js.map +1 -0
- package/dist/node_modules/micromark-util-chunked/index.js +13 -0
- package/dist/node_modules/micromark-util-chunked/index.js.map +1 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
- package/dist/node_modules/micromark-util-classify-character/index.js.map +1 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +28 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js.map +1 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +9 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js.map +1 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +19 -0
- package/dist/node_modules/micromark-util-decode-string/index.js.map +1 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +11 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js.map +1 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +8 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js.map +1 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +13 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js.map +1 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +20 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js.map +1 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +37 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js.map +1 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +59 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +1 -0
- package/dist/node_modules/property-information/index.js +28 -0
- package/dist/node_modules/property-information/index.js.map +1 -0
- package/dist/node_modules/property-information/lib/aria.js +63 -0
- package/dist/node_modules/property-information/lib/aria.js.map +1 -0
- package/dist/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/property-information/lib/find.js.map +1 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js +24 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js.map +1 -0
- package/dist/node_modules/property-information/lib/html.js +328 -0
- package/dist/node_modules/property-information/lib/html.js.map +1 -0
- package/dist/node_modules/property-information/lib/normalize.js +8 -0
- package/dist/node_modules/property-information/lib/normalize.js.map +1 -0
- package/dist/node_modules/property-information/lib/svg.js +566 -0
- package/dist/node_modules/property-information/lib/svg.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +9 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +8 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/create.js +16 -0
- package/dist/node_modules/property-information/lib/util/create.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +20 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/info.js +11 -0
- package/dist/node_modules/property-information/lib/util/info.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/merge.js +11 -0
- package/dist/node_modules/property-information/lib/util/merge.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/schema.js +11 -0
- package/dist/node_modules/property-information/lib/util/schema.js.map +1 -0
- package/dist/node_modules/property-information/lib/util/types.js +18 -0
- package/dist/node_modules/property-information/lib/util/types.js.map +1 -0
- package/dist/node_modules/property-information/lib/xlink.js +21 -0
- package/dist/node_modules/property-information/lib/xlink.js.map +1 -0
- package/dist/node_modules/property-information/lib/xml.js +17 -0
- package/dist/node_modules/property-information/lib/xml.js.map +1 -0
- package/dist/node_modules/property-information/lib/xmlns.js +16 -0
- package/dist/node_modules/property-information/lib/xmlns.js.map +1 -0
- package/dist/node_modules/react-markdown/lib/index.js +142 -0
- package/dist/node_modules/react-markdown/lib/index.js.map +1 -0
- package/dist/node_modules/remark-parse/lib/index.js +18 -0
- package/dist/node_modules/remark-parse/lib/index.js.map +1 -0
- package/dist/node_modules/remark-rehype/lib/index.js +20 -0
- package/dist/node_modules/remark-rehype/lib/index.js.map +1 -0
- package/dist/node_modules/space-separated-tokens/index.js +8 -0
- package/dist/node_modules/space-separated-tokens/index.js.map +1 -0
- package/dist/node_modules/style-to-js/cjs/index.js +21 -0
- package/dist/node_modules/style-to-js/cjs/index.js.map +1 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +20 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js.map +1 -0
- package/dist/node_modules/style-to-object/cjs/index.js +25 -0
- package/dist/node_modules/style-to-object/cjs/index.js.map +1 -0
- package/dist/node_modules/trim-lines/index.js +23 -0
- package/dist/node_modules/trim-lines/index.js.map +1 -0
- package/dist/node_modules/trough/lib/index.js +52 -0
- package/dist/node_modules/trough/lib/index.js.map +1 -0
- package/dist/node_modules/unified/lib/callable-instance.js +11 -0
- package/dist/node_modules/unified/lib/callable-instance.js.map +1 -0
- package/dist/node_modules/unified/lib/index.js +163 -0
- package/dist/node_modules/unified/lib/index.js.map +1 -0
- package/dist/node_modules/unist-util-is/lib/index.js +49 -0
- package/dist/node_modules/unist-util-is/lib/index.js.map +1 -0
- package/dist/node_modules/unist-util-position/lib/index.js +24 -0
- package/dist/node_modules/unist-util-position/lib/index.js.map +1 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +17 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js.map +1 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +14 -0
- package/dist/node_modules/unist-util-visit/lib/index.js.map +1 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +8 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js.map +1 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +38 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
- package/dist/node_modules/vfile/lib/index.js +91 -0
- package/dist/node_modules/vfile/lib/index.js.map +1 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js +101 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js.map +1 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js +9 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js.map +1 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js +33 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js.map +1 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js +8 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js.map +1 -0
- package/dist/node_modules/vfile-message/lib/index.js +26 -0
- package/dist/node_modules/vfile-message/lib/index.js.map +1 -0
- package/dist/pages/AdminStoresPage.js +203 -207
- package/dist/pages/AdminStoresPage.js.map +1 -1
- package/dist/pages/AdminSubmissionsQueuePage.js +173 -172
- package/dist/pages/AdminSubmissionsQueuePage.js.map +1 -1
- package/dist/pages/MarketplaceHomePage.js +472 -422
- package/dist/pages/MarketplaceHomePage.js.map +1 -1
- package/dist/pages/ProductDetailPage.js +104 -103
- package/dist/pages/ProductDetailPage.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), s = (e, n) => {
|
|
3
|
+
let r = {};
|
|
4
|
+
for (var i in e) t(r, i, {
|
|
5
|
+
get: e[i],
|
|
6
|
+
enumerable: !0
|
|
7
|
+
});
|
|
8
|
+
return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
+
}, c = (e, i, o, s) => {
|
|
10
|
+
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
11
|
+
get: ((e) => i[e]).bind(null, d),
|
|
12
|
+
enumerable: !(s = n(i, d)) || s.enumerable
|
|
13
|
+
});
|
|
14
|
+
return e;
|
|
15
|
+
}, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
|
|
16
|
+
value: n,
|
|
17
|
+
enumerable: !0
|
|
18
|
+
}) : a, n));
|
|
19
|
+
//#endregion
|
|
20
|
+
export { o as __commonJSMin, s as __exportAll, l as __toESM };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface MarkdownEditorProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
label?: ReactNode;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
rows?: number;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const MarkdownEditor: FC<MarkdownEditorProps>;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Markdown as e } from "../node_modules/react-markdown/lib/index.js";
|
|
2
|
+
import { useMemo as t, useRef as n, useState as r } from "react";
|
|
3
|
+
import { Bold as i, Code as a, Italic as o, Link as s, List as c } from "lucide-react";
|
|
4
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/MarkdownEditor.tsx
|
|
6
|
+
var d = (e, t, n = t) => {
|
|
7
|
+
let r = e.current;
|
|
8
|
+
if (!r) return;
|
|
9
|
+
let { selectionStart: i, selectionEnd: a, value: o } = r, s = o.slice(0, i), c = o.slice(i, a), l = o.slice(a);
|
|
10
|
+
r.value = `${s}${`${t}${c}${n}`}${l}`, r.focus();
|
|
11
|
+
let u = i + (c.length === 0 ? t.length : c.length + t.length);
|
|
12
|
+
r.setSelectionRange(u, u), r.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
13
|
+
}, f = (e, t) => {
|
|
14
|
+
let n = e.current;
|
|
15
|
+
if (!n) return;
|
|
16
|
+
let { selectionStart: r, selectionEnd: i, value: a } = n, o = a.slice(0, r), s = a.slice(r, i), c = a.slice(i), l = s.split("\n"), u = l.every((e) => e === "" || e.startsWith(t)) ? l.map((e) => e.startsWith(t) ? e.slice(t.length) : e).join("\n") : l.map((e) => `${t}${e}`).join("\n");
|
|
17
|
+
n.value = `${o}${u}${c}`, n.focus();
|
|
18
|
+
let d = r, f = r + u.length;
|
|
19
|
+
n.setSelectionRange(d, f), n.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
20
|
+
}, p = ({ id: p, value: m, onChange: h, label: g, placeholder: _, rows: v = 5, className: y = "" }) => {
|
|
21
|
+
let b = n(null), [x, S] = r("write"), C = (e) => `rounded-md px-2.5 py-1 text-xs font-medium transition-colors ${x === e ? "bg-surface-accent text-text-on-accent" : "text-text-secondary hover:bg-surface-hover hover:text-text-primary"}`, w = "inline-flex items-center justify-center rounded-md p-1.5 text-text-secondary transition-colors hover:bg-surface-hover hover:text-text-primary", T = t(() => m, [m]);
|
|
22
|
+
return /* @__PURE__ */ u("div", {
|
|
23
|
+
className: `space-y-2 ${y}`,
|
|
24
|
+
children: [g && /* @__PURE__ */ l("label", {
|
|
25
|
+
htmlFor: p,
|
|
26
|
+
className: "block text-xs text-text-secondary",
|
|
27
|
+
children: g
|
|
28
|
+
}), /* @__PURE__ */ u("div", {
|
|
29
|
+
className: "overflow-hidden rounded-lg border border-border-default bg-surface-default",
|
|
30
|
+
children: [/* @__PURE__ */ u("div", {
|
|
31
|
+
className: "flex items-center justify-between border-b border-border-default px-2 py-1.5",
|
|
32
|
+
children: [/* @__PURE__ */ u("div", {
|
|
33
|
+
className: "flex items-center gap-1",
|
|
34
|
+
children: [/* @__PURE__ */ l("button", {
|
|
35
|
+
type: "button",
|
|
36
|
+
onClick: () => S("write"),
|
|
37
|
+
className: C("write"),
|
|
38
|
+
"aria-pressed": x === "write",
|
|
39
|
+
children: "Write"
|
|
40
|
+
}), /* @__PURE__ */ l("button", {
|
|
41
|
+
type: "button",
|
|
42
|
+
onClick: () => S("preview"),
|
|
43
|
+
className: C("preview"),
|
|
44
|
+
"aria-pressed": x === "preview",
|
|
45
|
+
children: "Preview"
|
|
46
|
+
})]
|
|
47
|
+
}), /* @__PURE__ */ u("div", {
|
|
48
|
+
className: "flex items-center gap-0.5",
|
|
49
|
+
"aria-label": "Markdown formatting",
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ l("button", {
|
|
52
|
+
type: "button",
|
|
53
|
+
onClick: () => d(b, "**"),
|
|
54
|
+
className: w,
|
|
55
|
+
title: "Bold",
|
|
56
|
+
"aria-label": "Bold",
|
|
57
|
+
children: /* @__PURE__ */ l(i, { className: "size-3.5" })
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ l("button", {
|
|
60
|
+
type: "button",
|
|
61
|
+
onClick: () => d(b, "_"),
|
|
62
|
+
className: w,
|
|
63
|
+
title: "Italic",
|
|
64
|
+
"aria-label": "Italic",
|
|
65
|
+
children: /* @__PURE__ */ l(o, { className: "size-3.5" })
|
|
66
|
+
}),
|
|
67
|
+
/* @__PURE__ */ l("button", {
|
|
68
|
+
type: "button",
|
|
69
|
+
onClick: () => d(b, "[", "](url)"),
|
|
70
|
+
className: w,
|
|
71
|
+
title: "Link",
|
|
72
|
+
"aria-label": "Link",
|
|
73
|
+
children: /* @__PURE__ */ l(s, { className: "size-3.5" })
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ l("button", {
|
|
76
|
+
type: "button",
|
|
77
|
+
onClick: () => d(b, "`"),
|
|
78
|
+
className: w,
|
|
79
|
+
title: "Inline code",
|
|
80
|
+
"aria-label": "Inline code",
|
|
81
|
+
children: /* @__PURE__ */ l(a, { className: "size-3.5" })
|
|
82
|
+
}),
|
|
83
|
+
/* @__PURE__ */ l("button", {
|
|
84
|
+
type: "button",
|
|
85
|
+
onClick: () => f(b, "- "),
|
|
86
|
+
className: w,
|
|
87
|
+
title: "Bullet list",
|
|
88
|
+
"aria-label": "Bullet list",
|
|
89
|
+
children: /* @__PURE__ */ l(c, { className: "size-3.5" })
|
|
90
|
+
})
|
|
91
|
+
]
|
|
92
|
+
})]
|
|
93
|
+
}), x === "write" ? /* @__PURE__ */ l("textarea", {
|
|
94
|
+
ref: b,
|
|
95
|
+
id: p,
|
|
96
|
+
value: m,
|
|
97
|
+
onChange: (e) => h(e.target.value),
|
|
98
|
+
placeholder: _,
|
|
99
|
+
rows: v,
|
|
100
|
+
className: "w-full resize-y bg-surface-default px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]"
|
|
101
|
+
}) : /* @__PURE__ */ l("div", {
|
|
102
|
+
className: "min-h-[theme(spacing.32)] bg-surface-default px-3 py-2",
|
|
103
|
+
children: m.trim() ? /* @__PURE__ */ l("div", {
|
|
104
|
+
className: "text-sm text-text-primary",
|
|
105
|
+
children: /* @__PURE__ */ l(e, { children: T })
|
|
106
|
+
}) : /* @__PURE__ */ l("p", {
|
|
107
|
+
className: "text-sm text-text-muted italic",
|
|
108
|
+
children: "Nothing to preview."
|
|
109
|
+
})
|
|
110
|
+
})]
|
|
111
|
+
})]
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
//#endregion
|
|
115
|
+
export { p as MarkdownEditor };
|
|
116
|
+
|
|
117
|
+
//# sourceMappingURL=MarkdownEditor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkdownEditor.js","names":[],"sources":["../../src/components/MarkdownEditor.tsx"],"sourcesContent":["import type { FC, ReactNode, RefObject } from 'react';\nimport { useMemo, useRef, useState } from 'react';\nimport { Bold, Italic, Link, Code, List } from 'lucide-react';\nimport Markdown from 'react-markdown';\n\nexport interface MarkdownEditorProps {\n id?: string;\n value: string;\n onChange: (value: string) => void;\n label?: ReactNode;\n placeholder?: string;\n rows?: number;\n className?: string;\n}\n\ntype Tab = 'write' | 'preview';\n\nconst applyWrap = (\n textareaRef: RefObject<HTMLTextAreaElement | null>,\n prefix: string,\n suffix: string = prefix\n) => {\n const el = textareaRef.current;\n if (!el) return;\n\n const { selectionStart, selectionEnd, value } = el;\n const before = value.slice(0, selectionStart);\n const selected = value.slice(selectionStart, selectionEnd);\n const after = value.slice(selectionEnd);\n\n const replacement = `${prefix}${selected}${suffix}`;\n const nextValue = `${before}${replacement}${after}`;\n\n el.value = nextValue;\n el.focus();\n\n const cursorOffset = selected.length === 0 ? prefix.length : selected.length + prefix.length;\n const nextCursor = selectionStart + cursorOffset;\n el.setSelectionRange(nextCursor, nextCursor);\n\n // Dispatch an input event so parent onChange handlers are notified.\n el.dispatchEvent(new Event('input', { bubbles: true }));\n};\n\nconst applyLinePrefix = (textareaRef: RefObject<HTMLTextAreaElement | null>, prefix: string) => {\n const el = textareaRef.current;\n if (!el) return;\n\n const { selectionStart, selectionEnd, value } = el;\n const before = value.slice(0, selectionStart);\n const selected = value.slice(selectionStart, selectionEnd);\n const after = value.slice(selectionEnd);\n\n const lines = selected.split('\\n');\n const prefixedLines = lines.every((line) => line === '' || line.startsWith(prefix))\n ? lines.map((line) => (line.startsWith(prefix) ? line.slice(prefix.length) : line)).join('\\n')\n : lines.map((line) => `${prefix}${line}`).join('\\n');\n\n const replacement = prefixedLines;\n const nextValue = `${before}${replacement}${after}`;\n\n el.value = nextValue;\n el.focus();\n\n const nextCursorStart = selectionStart;\n const nextCursorEnd = selectionStart + replacement.length;\n el.setSelectionRange(nextCursorStart, nextCursorEnd);\n\n el.dispatchEvent(new Event('input', { bubbles: true }));\n};\n\nexport const MarkdownEditor: FC<MarkdownEditorProps> = ({\n id,\n value,\n onChange,\n label,\n placeholder,\n rows = 5,\n className = '',\n}) => {\n const textareaRef = useRef<HTMLTextAreaElement>(null);\n const [activeTab, setActiveTab] = useState<Tab>('write');\n\n const tabButtonClass = (tab: Tab) =>\n `rounded-md px-2.5 py-1 text-xs font-medium transition-colors ${\n activeTab === tab\n ? 'bg-surface-accent text-text-on-accent'\n : 'text-text-secondary hover:bg-surface-hover hover:text-text-primary'\n }`;\n\n const toolbarButtonClass =\n 'inline-flex items-center justify-center rounded-md p-1.5 text-text-secondary transition-colors hover:bg-surface-hover hover:text-text-primary';\n\n const memoizedValue = useMemo(() => value, [value]);\n\n return (\n <div className={`space-y-2 ${className}`}>\n {label && (\n <label htmlFor={id} className=\"block text-xs text-text-secondary\">\n {label}\n </label>\n )}\n\n <div className=\"overflow-hidden rounded-lg border border-border-default bg-surface-default\">\n <div className=\"flex items-center justify-between border-b border-border-default px-2 py-1.5\">\n <div className=\"flex items-center gap-1\">\n <button\n type=\"button\"\n onClick={() => setActiveTab('write')}\n className={tabButtonClass('write')}\n aria-pressed={activeTab === 'write'}\n >\n Write\n </button>\n <button\n type=\"button\"\n onClick={() => setActiveTab('preview')}\n className={tabButtonClass('preview')}\n aria-pressed={activeTab === 'preview'}\n >\n Preview\n </button>\n </div>\n\n <div className=\"flex items-center gap-0.5\" aria-label=\"Markdown formatting\">\n <button\n type=\"button\"\n onClick={() => applyWrap(textareaRef, '**')}\n className={toolbarButtonClass}\n title=\"Bold\"\n aria-label=\"Bold\"\n >\n <Bold className=\"size-3.5\" />\n </button>\n <button\n type=\"button\"\n onClick={() => applyWrap(textareaRef, '_')}\n className={toolbarButtonClass}\n title=\"Italic\"\n aria-label=\"Italic\"\n >\n <Italic className=\"size-3.5\" />\n </button>\n <button\n type=\"button\"\n onClick={() => applyWrap(textareaRef, '[', '](url)')}\n className={toolbarButtonClass}\n title=\"Link\"\n aria-label=\"Link\"\n >\n <Link className=\"size-3.5\" />\n </button>\n <button\n type=\"button\"\n onClick={() => applyWrap(textareaRef, '`')}\n className={toolbarButtonClass}\n title=\"Inline code\"\n aria-label=\"Inline code\"\n >\n <Code className=\"size-3.5\" />\n </button>\n <button\n type=\"button\"\n onClick={() => applyLinePrefix(textareaRef, '- ')}\n className={toolbarButtonClass}\n title=\"Bullet list\"\n aria-label=\"Bullet list\"\n >\n <List className=\"size-3.5\" />\n </button>\n </div>\n </div>\n\n {activeTab === 'write' ? (\n <textarea\n ref={textareaRef}\n id={id}\n value={value}\n onChange={(e) => onChange(e.target.value)}\n placeholder={placeholder}\n rows={rows}\n className=\"w-full resize-y bg-surface-default px-3 py-2 text-sm text-text-primary placeholder:text-text-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]\"\n />\n ) : (\n <div className=\"min-h-[theme(spacing.32)] bg-surface-default px-3 py-2\">\n {value.trim() ? (\n <div className=\"text-sm text-text-primary\">\n <Markdown>{memoizedValue}</Markdown>\n </div>\n ) : (\n <p className=\"text-sm text-text-muted italic\">Nothing to preview.</p>\n )}\n </div>\n )}\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;AAiBA,IAAM,KACJ,GACA,GACA,IAAiB,MACd;CACH,IAAM,IAAK,EAAY;AACvB,KAAI,CAAC,EAAI;CAET,IAAM,EAAE,mBAAgB,iBAAc,aAAU,GAC1C,IAAS,EAAM,MAAM,GAAG,EAAe,EACvC,IAAW,EAAM,MAAM,GAAgB,EAAa,EACpD,IAAQ,EAAM,MAAM,EAAa;AAMvC,CADA,EAAG,QAFe,GAAG,IADD,GAAG,IAAS,IAAW,MACC,KAG5C,EAAG,OAAO;CAGV,IAAM,IAAa,KADE,EAAS,WAAW,IAAI,EAAO,SAAS,EAAS,SAAS,EAAO;AAKtF,CAHA,EAAG,kBAAkB,GAAY,EAAW,EAG5C,EAAG,cAAc,IAAI,MAAM,SAAS,EAAE,SAAS,IAAM,CAAC,CAAC;GAGnD,KAAmB,GAAoD,MAAmB;CAC9F,IAAM,IAAK,EAAY;AACvB,KAAI,CAAC,EAAI;CAET,IAAM,EAAE,mBAAgB,iBAAc,aAAU,GAC1C,IAAS,EAAM,MAAM,GAAG,EAAe,EACvC,IAAW,EAAM,MAAM,GAAgB,EAAa,EACpD,IAAQ,EAAM,MAAM,EAAa,EAEjC,IAAQ,EAAS,MAAM,KAAK,EAK5B,IAJgB,EAAM,OAAO,MAAS,MAAS,MAAM,EAAK,WAAW,EAAO,CAAC,GAC/E,EAAM,KAAK,MAAU,EAAK,WAAW,EAAO,GAAG,EAAK,MAAM,EAAO,OAAO,GAAG,EAAM,CAAC,KAAK,KAAK,GAC5F,EAAM,KAAK,MAAS,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OAAM;OACN,cAAW;iBAEX,kBAAC,GAAD,EAAQ,WAAU,YAAa,CAAA;OACxB,CAAA;MACT,kBAAC,UAAD;OACE,MAAK;OACL,eAAe,EAAU,GAAa,KAAK,SAAS;OACpD,WAAW;OACX,OAAM;OACN,cAAW;iBAEX,kBAAC,GAAD,EAAM,WAAU,YAAa,CAAA;OACtB,CAAA;MACT,kBAAC,UAAD;OACE,MAAK;OACL,eAAe,EAAU,GAAa,IAAI;OAC1C,WAAW;OACX,OAAM;OACN,cAAW;iBAEX,kBAAC,GAAD,EAAM,WAAU,YAAa,CAAA;OACtB,CAAA;MACT,kBAAC,UAAD;OACE,MAAK;OACL,eAAe,EAAgB,GAAa,KAAK;OACjD,WAAW;OACX,OAAM;OACN,cAAW;iBAEX,kBAAC,GAAD,EAAM,WAAU,YAAa,CAAA;OACtB,CAAA;MACL;OACF;OAEL,MAAc,UACb,kBAAC,YAAD;IACE,KAAK;IACD;IACG;IACP,WAAW,MAAM,EAAS,EAAE,OAAO,MAAM;IAC5B;IACP;IACN,WAAU;IACV,CAAA,GAEF,kBAAC,OAAD;IAAK,WAAU;cACZ,EAAM,MAAM,GACX,kBAAC,OAAD;KAAK,WAAU;eACb,kBAAC,GAAD,EAAA,UAAW,GAAyB,CAAA;KAChC,CAAA,GAEN,kBAAC,KAAD;KAAG,WAAU;eAAiC;KAAuB,CAAA;IAEnE,CAAA,CAEJ;KACF"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
//#region node_modules/@ungap/structured-clone/esm/deserialize.js
|
|
2
|
+
var e = typeof self == "object" ? self : globalThis, t = (t, n) => {
|
|
3
|
+
switch (t) {
|
|
4
|
+
case "Function":
|
|
5
|
+
case "SharedWorker":
|
|
6
|
+
case "Worker":
|
|
7
|
+
case "eval":
|
|
8
|
+
case "setInterval":
|
|
9
|
+
case "setTimeout": throw TypeError("unable to deserialize " + t);
|
|
10
|
+
}
|
|
11
|
+
return new e[t](n);
|
|
12
|
+
}, n = (e, n) => {
|
|
13
|
+
let r = (t, n) => (e.set(n, t), t), i = (a) => {
|
|
14
|
+
if (e.has(a)) return e.get(a);
|
|
15
|
+
let [o, s] = n[a];
|
|
16
|
+
switch (o) {
|
|
17
|
+
case 0:
|
|
18
|
+
case -1: return r(s, a);
|
|
19
|
+
case 1: {
|
|
20
|
+
let e = r([], a);
|
|
21
|
+
for (let t of s) e.push(i(t));
|
|
22
|
+
return e;
|
|
23
|
+
}
|
|
24
|
+
case 2: {
|
|
25
|
+
let e = r({}, a);
|
|
26
|
+
for (let [t, n] of s) e[i(t)] = i(n);
|
|
27
|
+
return e;
|
|
28
|
+
}
|
|
29
|
+
case 3: return r(new Date(s), a);
|
|
30
|
+
case 4: {
|
|
31
|
+
let { source: e, flags: t } = s;
|
|
32
|
+
return r(new RegExp(e, t), a);
|
|
33
|
+
}
|
|
34
|
+
case 5: {
|
|
35
|
+
let e = r(/* @__PURE__ */ new Map(), a);
|
|
36
|
+
for (let [t, n] of s) e.set(i(t), i(n));
|
|
37
|
+
return e;
|
|
38
|
+
}
|
|
39
|
+
case 6: {
|
|
40
|
+
let e = r(/* @__PURE__ */ new Set(), a);
|
|
41
|
+
for (let t of s) e.add(i(t));
|
|
42
|
+
return e;
|
|
43
|
+
}
|
|
44
|
+
case 7: {
|
|
45
|
+
let { name: e, message: n } = s;
|
|
46
|
+
return r(t(e, n), a);
|
|
47
|
+
}
|
|
48
|
+
case 8: return r(BigInt(s), a);
|
|
49
|
+
case "BigInt": return r(Object(BigInt(s)), a);
|
|
50
|
+
case "ArrayBuffer": return r(new Uint8Array(s).buffer, s);
|
|
51
|
+
case "DataView": {
|
|
52
|
+
let { buffer: e } = new Uint8Array(s);
|
|
53
|
+
return r(new DataView(e), s);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return r(t(o, s), a);
|
|
57
|
+
};
|
|
58
|
+
return i;
|
|
59
|
+
}, r = (e) => n(/* @__PURE__ */ new Map(), e)(0);
|
|
60
|
+
//#endregion
|
|
61
|
+
export { r as deserialize };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=deserialize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deserialize.js","names":[],"sources":["../../../../../node_modules/@ungap/structured-clone/esm/deserialize.js"],"sourcesContent":["import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst env = typeof self === 'object' ? self : globalThis;\n\nconst guard = (name, init) => {\n switch (name) {\n case 'Function':\n case 'SharedWorker':\n case 'Worker':\n case 'eval':\n case 'setInterval':\n case 'setTimeout':\n throw new TypeError('unable to deserialize ' + name);\n }\n return new env[name](init);\n};\n\nconst deserializer = ($, _) => {\n const as = (out, index) => {\n $.set(index, out);\n return out;\n };\n\n const unpair = index => {\n if ($.has(index))\n return $.get(index);\n\n const [type, value] = _[index];\n switch (type) {\n case PRIMITIVE:\n case VOID:\n return as(value, index);\n case ARRAY: {\n const arr = as([], index);\n for (const index of value)\n arr.push(unpair(index));\n return arr;\n }\n case OBJECT: {\n const object = as({}, index);\n for (const [key, index] of value)\n object[unpair(key)] = unpair(index);\n return object;\n }\n case DATE:\n return as(new Date(value), index);\n case REGEXP: {\n const {source, flags} = value;\n return as(new RegExp(source, flags), index);\n }\n case MAP: {\n const map = as(new Map, index);\n for (const [key, index] of value)\n map.set(unpair(key), unpair(index));\n return map;\n }\n case SET: {\n const set = as(new Set, index);\n for (const index of value)\n set.add(unpair(index));\n return set;\n }\n case ERROR: {\n const {name, message} = value;\n return as(guard(name, message), index);\n }\n case BIGINT:\n return as(BigInt(value), index);\n case 'BigInt':\n return as(Object(BigInt(value)), index);\n case 'ArrayBuffer':\n return as(new Uint8Array(value).buffer, value);\n case 'DataView': {\n const { buffer } = new Uint8Array(value);\n return as(new DataView(buffer), value);\n }\n }\n return as(guard(type, value), index);\n };\n\n return unpair;\n};\n\n/**\n * @typedef {Array<string,any>} Record a type representation\n */\n\n/**\n * Returns a deserialized value from a serialized array of Records.\n * @param {Record[]} serialized a previously serialized value.\n * @returns {any}\n */\nexport const deserialize = serialized => deserializer(new Map, serialized)(0);\n"],"x_google_ignoreList":[0],"mappings":";AAOA,IAAM,IAAM,OAAO,QAAS,WAAW,OAAO,YAExC,KAAS,GAAM,MAAS;AAC5B,SAAQ,GAAR;EACE,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK,aACH,OAAU,UAAU,2BAA2B,EAAK;;AAExD,QAAO,IAAI,EAAI,GAAM,EAAK;GAGtB,KAAgB,GAAG,MAAM;CAC7B,IAAM,KAAM,GAAK,OACf,EAAE,IAAI,GAAO,EAAI,EACV,IAGH,KAAS,MAAS;AACtB,MAAI,EAAE,IAAI,EAAM,CACd,QAAO,EAAE,IAAI,EAAM;EAErB,IAAM,CAAC,GAAM,KAAS,EAAE;AACxB,UAAQ,GAAR;GACE,KAAA;GACA,KAAA,GACE,QAAO,EAAG,GAAO,EAAM;GACzB,KAAA,GAAY;IACV,IAAM,IAAM,EAAG,EAAE,EAAE,EAAM;AACzB,SAAK,IAAM,KAAS,EAClB,GAAI,KAAK,EAAO,EAAM,CAAC;AACzB,WAAO;;GAET,KAAA,GAAa;IACX,IAAM,IAAS,EAAG,EAAE,EAAE,EAAM;AAC5B,SAAK,IAAM,CAAC,GAAK,MAAU,EACzB,GAAO,EAAO,EAAI,IAAI,EAAO,EAAM;AACrC,WAAO;;GAET,KAAA,EACE,QAAO,EAAG,IAAI,KAAK,EAAM,EAAE,EAAM;GACnC,KAAA,GAAa;IACX,IAAM,EAAC,WAAQ,aAAS;AACxB,WAAO,EAAG,IAAI,OAAO,GAAQ,EAAM,EAAE,EAAM;;GAE7C,KAAA,GAAU;IACR,IAAM,IAAM,kBAAG,IAAI,KAAG,EAAE,EAAM;AAC9B,SAAK,IAAM,CAAC,GAAK,MAAU,EACzB,GAAI,IAAI,EAAO,EAAI,EAAE,EAAO,EAAM,CAAC;AACrC,WAAO;;GAET,KAAA,GAAU;IACR,IAAM,IAAM,kBAAG,IAAI,KAAG,EAAE,EAAM;AAC9B,SAAK,IAAM,KAAS,EAClB,GAAI,IAAI,EAAO,EAAM,CAAC;AACxB,WAAO;;GAET,KAAA,GAAY;IACV,IAAM,EAAC,SAAM,eAAW;AACxB,WAAO,EAAG,EAAM,GAAM,EAAQ,EAAE,EAAM;;GAExC,KAAA,EACE,QAAO,EAAG,OAAO,EAAM,EAAE,EAAM;GACjC,KAAK,SACH,QAAO,EAAG,OAAO,OAAO,EAAM,CAAC,EAAE,EAAM;GACzC,KAAK,cACH,QAAO,EAAG,IAAI,WAAW,EAAM,CAAC,QAAQ,EAAM;GAChD,KAAK,YAAY;IACf,IAAM,EAAE,cAAW,IAAI,WAAW,EAAM;AACxC,WAAO,EAAG,IAAI,SAAS,EAAO,EAAE,EAAM;;;AAG1C,SAAO,EAAG,EAAM,GAAM,EAAM,EAAE,EAAM;;AAGtC,QAAO;GAYI,KAAc,MAAc,kBAAa,IAAI,KAAG,EAAE,EAAW,CAAC,EAAE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { deserialize as e } from "./deserialize.js";
|
|
2
|
+
import { serialize as t } from "./serialize.js";
|
|
3
|
+
//#region node_modules/@ungap/structured-clone/esm/index.js
|
|
4
|
+
var n = typeof structuredClone == "function" ? (n, r) => r && ("json" in r || "lossy" in r) ? e(t(n, r)) : structuredClone(n) : (n, r) => e(t(n, r));
|
|
5
|
+
//#endregion
|
|
6
|
+
export { n as default };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../node_modules/@ungap/structured-clone/esm/index.js"],"sourcesContent":["import {deserialize} from './deserialize.js';\nimport {serialize} from './serialize.js';\n\n/**\n * @typedef {Array<string,any>} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} any a serializable value.\n * @param {{transfer?: any[], json?: boolean, lossy?: boolean}?} options an object with\n * a transfer option (ignored when polyfilled) and/or non standard fields that\n * fallback to the polyfill if present.\n * @returns {Record[]}\n */\nexport default typeof structuredClone === \"function\" ?\n /* c8 ignore start */\n (any, options) => (\n options && ('json' in options || 'lossy' in options) ?\n deserialize(serialize(any, options)) : structuredClone(any)\n ) :\n (any, options) => deserialize(serialize(any, options));\n /* c8 ignore stop */\n\nexport {deserialize, serialize};\n"],"x_google_ignoreList":[0],"mappings":";;;AAeA,IAAA,IAAe,OAAO,mBAAoB,cAEvC,GAAK,MACJ,MAAY,UAAU,KAAW,WAAW,KAC1C,EAAY,EAAU,GAAK,EAAQ,CAAC,GAAG,gBAAgB,EAAI,IAE9D,GAAK,MAAY,EAAY,EAAU,GAAK,EAAQ,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
//#region node_modules/@ungap/structured-clone/esm/serialize.js
|
|
2
|
+
var e = "", { toString: t } = {}, { keys: n } = Object, r = (n) => {
|
|
3
|
+
let r = typeof n;
|
|
4
|
+
if (r !== "object" || !n) return [0, r];
|
|
5
|
+
let i = t.call(n).slice(8, -1);
|
|
6
|
+
switch (i) {
|
|
7
|
+
case "Array": return [1, e];
|
|
8
|
+
case "Object": return [2, e];
|
|
9
|
+
case "Date": return [3, e];
|
|
10
|
+
case "RegExp": return [4, e];
|
|
11
|
+
case "Map": return [5, e];
|
|
12
|
+
case "Set": return [6, e];
|
|
13
|
+
case "DataView": return [1, i];
|
|
14
|
+
}
|
|
15
|
+
return i.includes("Array") ? [1, i] : i.includes("Error") ? [7, i] : [2, i];
|
|
16
|
+
}, i = ([e, t]) => e === 0 && (t === "function" || t === "symbol"), a = (t, a, o, s) => {
|
|
17
|
+
let c = (e, t) => {
|
|
18
|
+
let n = s.push(e) - 1;
|
|
19
|
+
return o.set(t, n), n;
|
|
20
|
+
}, l = (s) => {
|
|
21
|
+
if (o.has(s)) return o.get(s);
|
|
22
|
+
let [u, d] = r(s);
|
|
23
|
+
switch (u) {
|
|
24
|
+
case 0: {
|
|
25
|
+
let e = s;
|
|
26
|
+
switch (d) {
|
|
27
|
+
case "bigint":
|
|
28
|
+
u = 8, e = s.toString();
|
|
29
|
+
break;
|
|
30
|
+
case "function":
|
|
31
|
+
case "symbol":
|
|
32
|
+
if (t) throw TypeError("unable to serialize " + d);
|
|
33
|
+
e = null;
|
|
34
|
+
break;
|
|
35
|
+
case "undefined": return c([-1], s);
|
|
36
|
+
}
|
|
37
|
+
return c([u, e], s);
|
|
38
|
+
}
|
|
39
|
+
case 1: {
|
|
40
|
+
if (d) {
|
|
41
|
+
let e = s;
|
|
42
|
+
return d === "DataView" ? e = new Uint8Array(s.buffer) : d === "ArrayBuffer" && (e = new Uint8Array(s)), c([d, [...e]], s);
|
|
43
|
+
}
|
|
44
|
+
let e = [], t = c([u, e], s);
|
|
45
|
+
for (let t of s) e.push(l(t));
|
|
46
|
+
return t;
|
|
47
|
+
}
|
|
48
|
+
case 2: {
|
|
49
|
+
if (d) switch (d) {
|
|
50
|
+
case "BigInt": return c([d, s.toString()], s);
|
|
51
|
+
case "Boolean":
|
|
52
|
+
case "Number":
|
|
53
|
+
case "String": return c([d, s.valueOf()], s);
|
|
54
|
+
}
|
|
55
|
+
if (a && "toJSON" in s) return l(s.toJSON());
|
|
56
|
+
let e = [], o = c([u, e], s);
|
|
57
|
+
for (let a of n(s)) (t || !i(r(s[a]))) && e.push([l(a), l(s[a])]);
|
|
58
|
+
return o;
|
|
59
|
+
}
|
|
60
|
+
case 3: return c([u, isNaN(s.getTime()) ? e : s.toISOString()], s);
|
|
61
|
+
case 4: {
|
|
62
|
+
let { source: e, flags: t } = s;
|
|
63
|
+
return c([u, {
|
|
64
|
+
source: e,
|
|
65
|
+
flags: t
|
|
66
|
+
}], s);
|
|
67
|
+
}
|
|
68
|
+
case 5: {
|
|
69
|
+
let e = [], n = c([u, e], s);
|
|
70
|
+
for (let [n, a] of s) (t || !(i(r(n)) || i(r(a)))) && e.push([l(n), l(a)]);
|
|
71
|
+
return n;
|
|
72
|
+
}
|
|
73
|
+
case 6: {
|
|
74
|
+
let e = [], n = c([u, e], s);
|
|
75
|
+
for (let n of s) (t || !i(r(n))) && e.push(l(n));
|
|
76
|
+
return n;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
let { message: f } = s;
|
|
80
|
+
return c([u, {
|
|
81
|
+
name: d,
|
|
82
|
+
message: f
|
|
83
|
+
}], s);
|
|
84
|
+
};
|
|
85
|
+
return l;
|
|
86
|
+
}, o = (e, { json: t, lossy: n } = {}) => {
|
|
87
|
+
let r = [];
|
|
88
|
+
return a(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
89
|
+
};
|
|
90
|
+
//#endregion
|
|
91
|
+
export { o as serialize };
|
|
92
|
+
|
|
93
|
+
//# sourceMappingURL=serialize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialize.js","names":[],"sources":["../../../../../node_modules/@ungap/structured-clone/esm/serialize.js"],"sourcesContent":["import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst EMPTY = '';\n\nconst {toString} = {};\nconst {keys} = Object;\n\nconst typeOf = value => {\n const type = typeof value;\n if (type !== 'object' || !value)\n return [PRIMITIVE, type];\n\n const asString = toString.call(value).slice(8, -1);\n switch (asString) {\n case 'Array':\n return [ARRAY, EMPTY];\n case 'Object':\n return [OBJECT, EMPTY];\n case 'Date':\n return [DATE, EMPTY];\n case 'RegExp':\n return [REGEXP, EMPTY];\n case 'Map':\n return [MAP, EMPTY];\n case 'Set':\n return [SET, EMPTY];\n case 'DataView':\n return [ARRAY, asString];\n }\n\n if (asString.includes('Array'))\n return [ARRAY, asString];\n\n if (asString.includes('Error'))\n return [ERROR, asString];\n\n return [OBJECT, asString];\n};\n\nconst shouldSkip = ([TYPE, type]) => (\n TYPE === PRIMITIVE &&\n (type === 'function' || type === 'symbol')\n);\n\nconst serializer = (strict, json, $, _) => {\n\n const as = (out, value) => {\n const index = _.push(out) - 1;\n $.set(value, index);\n return index;\n };\n\n const pair = value => {\n if ($.has(value))\n return $.get(value);\n\n let [TYPE, type] = typeOf(value);\n switch (TYPE) {\n case PRIMITIVE: {\n let entry = value;\n switch (type) {\n case 'bigint':\n TYPE = BIGINT;\n entry = value.toString();\n break;\n case 'function':\n case 'symbol':\n if (strict)\n throw new TypeError('unable to serialize ' + type);\n entry = null;\n break;\n case 'undefined':\n return as([VOID], value);\n }\n return as([TYPE, entry], value);\n }\n case ARRAY: {\n if (type) {\n let spread = value;\n if (type === 'DataView') {\n spread = new Uint8Array(value.buffer);\n }\n else if (type === 'ArrayBuffer') {\n spread = new Uint8Array(value);\n }\n return as([type, [...spread]], value);\n }\n\n const arr = [];\n const index = as([TYPE, arr], value);\n for (const entry of value)\n arr.push(pair(entry));\n return index;\n }\n case OBJECT: {\n if (type) {\n switch (type) {\n case 'BigInt':\n return as([type, value.toString()], value);\n case 'Boolean':\n case 'Number':\n case 'String':\n return as([type, value.valueOf()], value);\n }\n }\n\n if (json && ('toJSON' in value))\n return pair(value.toJSON());\n\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const key of keys(value)) {\n if (strict || !shouldSkip(typeOf(value[key])))\n entries.push([pair(key), pair(value[key])]);\n }\n return index;\n }\n case DATE:\n return as([TYPE, isNaN(value.getTime()) ? EMPTY : value.toISOString()], value);\n case REGEXP: {\n const {source, flags} = value;\n return as([TYPE, {source, flags}], value);\n }\n case MAP: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const [key, entry] of value) {\n if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))\n entries.push([pair(key), pair(entry)]);\n }\n return index;\n }\n case SET: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const entry of value) {\n if (strict || !shouldSkip(typeOf(entry)))\n entries.push(pair(entry));\n }\n return index;\n }\n }\n\n const {message} = value;\n return as([TYPE, {name: type, message}], value);\n };\n\n return pair;\n};\n\n/**\n * @typedef {Array<string,any>} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} value a serializable value.\n * @param {{json?: boolean, lossy?: boolean}?} options an object with a `lossy` or `json` property that,\n * if `true`, will not throw errors on incompatible types, and behave more\n * like JSON stringify would behave. Symbol and Function will be discarded.\n * @returns {Record[]}\n */\n export const serialize = (value, {json, lossy} = {}) => {\n const _ = [];\n return serializer(!(json || lossy), !!json, new Map, _)(value), _;\n};\n"],"x_google_ignoreList":[0],"mappings":";AAOA,IAAM,IAAQ,IAER,EAAC,gBAAY,EAAE,EACf,EAAC,YAAQ,QAET,KAAS,MAAS;CACtB,IAAM,IAAO,OAAO;AACpB,KAAI,MAAS,YAAY,CAAC,EACxB,QAAO,CAAA,GAAY,EAAK;CAE1B,IAAM,IAAW,EAAS,KAAK,EAAM,CAAC,MAAM,GAAG,GAAG;AAClD,SAAQ,GAAR;EACE,KAAK,QACH,QAAO,CAAA,GAAQ,EAAM;EACvB,KAAK,SACH,QAAO,CAAA,GAAS,EAAM;EACxB,KAAK,OACH,QAAO,CAAA,GAAO,EAAM;EACtB,KAAK,SACH,QAAO,CAAA,GAAS,EAAM;EACxB,KAAK,MACH,QAAO,CAAA,GAAM,EAAM;EACrB,KAAK,MACH,QAAO,CAAA,GAAM,EAAM;EACrB,KAAK,WACH,QAAO,CAAA,GAAQ,EAAS;;AAS5B,QANI,EAAS,SAAS,QAAQ,GACrB,CAAA,GAAQ,EAAS,GAEtB,EAAS,SAAS,QAAQ,GACrB,CAAA,GAAQ,EAAS,GAEnB,CAAA,GAAS,EAAS;GAGrB,KAAc,CAAC,GAAM,OACzB,MAAA,MACC,MAAS,cAAc,MAAS,WAG7B,KAAc,GAAQ,GAAM,GAAG,MAAM;CAEzC,IAAM,KAAM,GAAK,MAAU;EACzB,IAAM,IAAQ,EAAE,KAAK,EAAI,GAAG;AAE5B,SADA,EAAE,IAAI,GAAO,EAAM,EACZ;I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undefined} [error]\n * Maybe error.\n * @returns {asserts error is null|undefined}\n */\nexport function bail(error) {\n if (error) {\n throw error\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";AAOA,SAAgB,EAAK,GAAO;AAC1B,KAAI,EACF,OAAM"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/comma-separated-tokens/index.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = t || {};
|
|
4
|
+
return (e[e.length - 1] === "" ? [...e, ""] : e).join((n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")).trim();
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as stringify };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/comma-separated-tokens/index.js"],"sourcesContent":["/**\n * @typedef Options\n * Configuration for `stringify`.\n * @property {boolean} [padLeft=true]\n * Whether to pad a space before a token.\n * @property {boolean} [padRight=false]\n * Whether to pad a space after a token.\n */\n\n/**\n * @typedef {Options} StringifyOptions\n * Please use `StringifyOptions` instead.\n */\n\n/**\n * Parse comma-separated tokens to an array.\n *\n * @param {string} value\n * Comma-separated tokens.\n * @returns {Array<string>}\n * List of tokens.\n */\nexport function parse(value) {\n /** @type {Array<string>} */\n const tokens = []\n const input = String(value || '')\n let index = input.indexOf(',')\n let start = 0\n /** @type {boolean} */\n let end = false\n\n while (!end) {\n if (index === -1) {\n index = input.length\n end = true\n }\n\n const token = input.slice(start, index).trim()\n\n if (token || !end) {\n tokens.push(token)\n }\n\n start = index + 1\n index = input.indexOf(',', start)\n }\n\n return tokens\n}\n\n/**\n * Serialize an array of strings or numbers to comma-separated tokens.\n *\n * @param {Array<string|number>} values\n * List of tokens.\n * @param {Options} [options]\n * Configuration for `stringify` (optional).\n * @returns {string}\n * Comma-separated tokens.\n */\nexport function stringify(values, options) {\n const settings = options || {}\n\n // Ensure the last empty entry is seen.\n const input = values[values.length - 1] === '' ? [...values, ''] : values\n\n return input\n .join(\n (settings.padRight ? ' ' : '') +\n ',' +\n (settings.padLeft === false ? '' : ' ')\n )\n .trim()\n}\n"],"x_google_ignoreList":[0],"mappings":";AA4DA,SAAgB,EAAU,GAAQ,GAAS;CACzC,IAAM,IAAW,KAAW,EAAE;AAK9B,SAFc,EAAO,EAAO,SAAS,OAAO,KAAK,CAAC,GAAG,GAAQ,GAAG,GAAG,GAGhE,MACE,EAAS,WAAW,MAAM,MACzB,OACC,EAAS,YAAY,KAAQ,KAAK,KACtC,CACA,MAAM"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region node_modules/decode-named-character-reference/index.dom.js
|
|
2
|
+
var e = document.createElement("i");
|
|
3
|
+
function t(t) {
|
|
4
|
+
let n = "&" + t + ";";
|
|
5
|
+
e.innerHTML = n;
|
|
6
|
+
let r = e.textContent;
|
|
7
|
+
return r.charCodeAt(r.length - 1) === 59 && t !== "semi" || r === n ? !1 : r;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t as decodeNamedCharacterReference };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=index.dom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.dom.js","names":[],"sources":["../../../node_modules/decode-named-character-reference/index.dom.js"],"sourcesContent":["/// <reference lib=\"dom\" />\n\n/* global document */\n\nconst element = document.createElement('i')\n\n/**\n * @param {string} value\n * @returns {string | false}\n */\nexport function decodeNamedCharacterReference(value) {\n const characterReference = '&' + value + ';'\n element.innerHTML = characterReference\n const character = element.textContent\n\n // Some named character references do not require the closing semicolon\n // (`¬`, for instance), which leads to situations where parsing the assumed\n // named reference of `¬it;` will result in the string `¬it;`.\n // When we encounter a trailing semicolon after parsing, and the character\n // reference to decode was not a semicolon (`;`), we can assume that the\n // matching was not complete.\n if (\n character.charCodeAt(character.length - 1) === 59 /* `;` */ &&\n value !== 'semi'\n ) {\n return false\n }\n\n // If the decoded string is equal to the input, the character reference was\n // not valid.\n return character === characterReference ? false : character\n}\n"],"x_google_ignoreList":[0],"mappings":";AAIA,IAAM,IAAU,SAAS,cAAc,IAAI;AAM3C,SAAgB,EAA8B,GAAO;CACnD,IAAM,IAAqB,MAAM,IAAQ;AACzC,GAAQ,YAAY;CACpB,IAAM,IAAY,EAAQ;AAiB1B,QARE,EAAU,WAAW,EAAU,SAAS,EAAE,KAAK,MAC/C,MAAU,UAOL,MAAc,IALZ,KAKyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.js","names":[],"sources":["../../../../node_modules/devlop/lib/default.js"],"sourcesContent":["export function deprecate(fn) {\n return fn\n}\n\nexport function equal() {}\n\nexport function ok() {}\n\nexport function unreachable() {}\n"],"x_google_ignoreList":[0],"mappings":";AAMA,SAAgB,IAAK;AAErB,SAAgB,IAAc"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/estree-util-is-identifier-name/lib/index.js
|
|
2
|
+
var e = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, t = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, n = {};
|
|
3
|
+
function r(r, i) {
|
|
4
|
+
return ((i || n).jsx ? t : e).test(r);
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { r as name };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../node_modules/estree-util-is-identifier-name/lib/index.js"],"sourcesContent":["/**\n * @typedef Options\n * Configuration.\n * @property {boolean | null | undefined} [jsx=false]\n * Support JSX identifiers (default: `false`).\n */\n\nconst startRe = /[$_\\p{ID_Start}]/u\nconst contRe = /[$_\\u{200C}\\u{200D}\\p{ID_Continue}]/u\nconst contReJsx = /[-$_\\u{200C}\\u{200D}\\p{ID_Continue}]/u\nconst nameRe = /^[$_\\p{ID_Start}][$_\\u{200C}\\u{200D}\\p{ID_Continue}]*$/u\nconst nameReJsx = /^[$_\\p{ID_Start}][-$_\\u{200C}\\u{200D}\\p{ID_Continue}]*$/u\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Checks if the given code point can start an identifier.\n *\n * @param {number | undefined} code\n * Code point to check.\n * @returns {boolean}\n * Whether `code` can start an identifier.\n */\n// Note: `undefined` is supported so you can pass the result from `''.codePointAt`.\nexport function start(code) {\n return code ? startRe.test(String.fromCodePoint(code)) : false\n}\n\n/**\n * Checks if the given code point can continue an identifier.\n *\n * @param {number | undefined} code\n * Code point to check.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {boolean}\n * Whether `code` can continue an identifier.\n */\n// Note: `undefined` is supported so you can pass the result from `''.codePointAt`.\nexport function cont(code, options) {\n const settings = options || emptyOptions\n const re = settings.jsx ? contReJsx : contRe\n return code ? re.test(String.fromCodePoint(code)) : false\n}\n\n/**\n * Checks if the given value is a valid identifier name.\n *\n * @param {string} name\n * Identifier to check.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {boolean}\n * Whether `name` can be an identifier.\n */\nexport function name(name, options) {\n const settings = options || emptyOptions\n const re = settings.jsx ? nameReJsx : nameRe\n return re.test(name)\n}\n"],"x_google_ignoreList":[0],"mappings":";AAUA,IAAM,IAAS,2DACT,IAAY,4DAGZ,IAAe,EAAE;AA0CvB,SAAgB,EAAK,GAAM,GAAS;AAGlC,UAFiB,KAAW,GACR,MAAM,IAAY,GAC5B,KAAK,EAAK"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { __commonJSMin as e } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region node_modules/extend/index.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
+
var n = Object.prototype.hasOwnProperty, r = Object.prototype.toString, i = Object.defineProperty, a = Object.getOwnPropertyDescriptor, o = function(e) {
|
|
5
|
+
return typeof Array.isArray == "function" ? Array.isArray(e) : r.call(e) === "[object Array]";
|
|
6
|
+
}, s = function(e) {
|
|
7
|
+
if (!e || r.call(e) !== "[object Object]") return !1;
|
|
8
|
+
var t = n.call(e, "constructor"), i = e.constructor && e.constructor.prototype && n.call(e.constructor.prototype, "isPrototypeOf");
|
|
9
|
+
if (e.constructor && !t && !i) return !1;
|
|
10
|
+
for (var a in e);
|
|
11
|
+
return a === void 0 || n.call(e, a);
|
|
12
|
+
}, c = function(e, t) {
|
|
13
|
+
i && t.name === "__proto__" ? i(e, t.name, {
|
|
14
|
+
enumerable: !0,
|
|
15
|
+
configurable: !0,
|
|
16
|
+
value: t.newValue,
|
|
17
|
+
writable: !0
|
|
18
|
+
}) : e[t.name] = t.newValue;
|
|
19
|
+
}, l = function(e, t) {
|
|
20
|
+
if (t === "__proto__") {
|
|
21
|
+
if (!n.call(e, t)) return;
|
|
22
|
+
if (a) return a(e, t).value;
|
|
23
|
+
}
|
|
24
|
+
return e[t];
|
|
25
|
+
};
|
|
26
|
+
t.exports = function e() {
|
|
27
|
+
var t, n, r, i, a, u, d = arguments[0], f = 1, p = arguments.length, m = !1;
|
|
28
|
+
for (typeof d == "boolean" && (m = d, d = arguments[1] || {}, f = 2), (d == null || typeof d != "object" && typeof d != "function") && (d = {}); f < p; ++f) if (t = arguments[f], t != null) for (n in t) r = l(d, n), i = l(t, n), d !== i && (m && i && (s(i) || (a = o(i))) ? (a ? (a = !1, u = r && o(r) ? r : []) : u = r && s(r) ? r : {}, c(d, {
|
|
29
|
+
name: n,
|
|
30
|
+
newValue: e(m, u, i)
|
|
31
|
+
})) : i !== void 0 && c(d, {
|
|
32
|
+
name: n,
|
|
33
|
+
newValue: i
|
|
34
|
+
}));
|
|
35
|
+
return d;
|
|
36
|
+
};
|
|
37
|
+
}));
|
|
38
|
+
//#endregion
|
|
39
|
+
export default t();
|
|
40
|
+
export { t as require_extend };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/extend/index.js"],"sourcesContent":["'use strict';\n\nvar hasOwn = Object.prototype.hasOwnProperty;\nvar toStr = Object.prototype.toString;\nvar defineProperty = Object.defineProperty;\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nvar isArray = function isArray(arr) {\n\tif (typeof Array.isArray === 'function') {\n\t\treturn Array.isArray(arr);\n\t}\n\n\treturn toStr.call(arr) === '[object Array]';\n};\n\nvar isPlainObject = function isPlainObject(obj) {\n\tif (!obj || toStr.call(obj) !== '[object Object]') {\n\t\treturn false;\n\t}\n\n\tvar hasOwnConstructor = hasOwn.call(obj, 'constructor');\n\tvar hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');\n\t// Not own constructor property must be Object\n\tif (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {\n\t\treturn false;\n\t}\n\n\t// Own properties are enumerated firstly, so to speed up,\n\t// if last one is own, then all properties are own.\n\tvar key;\n\tfor (key in obj) { /**/ }\n\n\treturn typeof key === 'undefined' || hasOwn.call(obj, key);\n};\n\n// If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target\nvar setProperty = function setProperty(target, options) {\n\tif (defineProperty && options.name === '__proto__') {\n\t\tdefineProperty(target, options.name, {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\t\t\tvalue: options.newValue,\n\t\t\twritable: true\n\t\t});\n\t} else {\n\t\ttarget[options.name] = options.newValue;\n\t}\n};\n\n// Return undefined instead of __proto__ if '__proto__' is not an own property\nvar getProperty = function getProperty(obj, name) {\n\tif (name === '__proto__') {\n\t\tif (!hasOwn.call(obj, name)) {\n\t\t\treturn void 0;\n\t\t} else if (gOPD) {\n\t\t\t// In early versions of node, obj['__proto__'] is buggy when obj has\n\t\t\t// __proto__ as an own property. Object.getOwnPropertyDescriptor() works.\n\t\t\treturn gOPD(obj, name).value;\n\t\t}\n\t}\n\n\treturn obj[name];\n};\n\nmodule.exports = function extend() {\n\tvar options, name, src, copy, copyIsArray, clone;\n\tvar target = arguments[0];\n\tvar i = 1;\n\tvar length = arguments.length;\n\tvar deep = false;\n\n\t// Handle a deep copy situation\n\tif (typeof target === 'boolean') {\n\t\tdeep = target;\n\t\ttarget = arguments[1] || {};\n\t\t// skip the boolean and the target\n\t\ti = 2;\n\t}\n\tif (target == null || (typeof target !== 'object' && typeof target !== 'function')) {\n\t\ttarget = {};\n\t}\n\n\tfor (; i < length; ++i) {\n\t\toptions = arguments[i];\n\t\t// Only deal with non-null/undefined values\n\t\tif (options != null) {\n\t\t\t// Extend the base object\n\t\t\tfor (name in options) {\n\t\t\t\tsrc = getProperty(target, name);\n\t\t\t\tcopy = getProperty(options, name);\n\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif (target !== copy) {\n\t\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\t\tif (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {\n\t\t\t\t\t\tif (copyIsArray) {\n\t\t\t\t\t\t\tcopyIsArray = false;\n\t\t\t\t\t\t\tclone = src && isArray(src) ? src : [];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tclone = src && isPlainObject(src) ? src : {};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\t\tsetProperty(target, { name: name, newValue: extend(deep, clone, copy) });\n\n\t\t\t\t\t// Don't bring in undefined values\n\t\t\t\t\t} else if (typeof copy !== 'undefined') {\n\t\t\t\t\t\tsetProperty(target, { name: name, newValue: copy });\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n"],"x_google_ignoreList":[0],"mappings":";;;CAEA,IAAI,IAAS,OAAO,UAAU,gBAC1B,IAAQ,OAAO,U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