@axdspub/axiom-ui-forms 0.2.7 → 0.2.9
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/library/axiom-ui-forms.d.ts +55 -6
- package/library/esm/_virtual/formats.js +4 -0
- package/library/esm/_virtual/formats.js.map +1 -0
- package/library/esm/_virtual/index.js +6 -2
- package/library/esm/_virtual/index.js.map +1 -1
- package/library/esm/_virtual/index10.js +2 -2
- package/library/esm/_virtual/index11.js +2 -2
- package/library/esm/_virtual/index12.js +6 -2
- package/library/esm/_virtual/index12.js.map +1 -1
- package/library/esm/_virtual/index13.js +8 -0
- package/library/esm/_virtual/index13.js.map +1 -0
- package/library/esm/_virtual/index14.js +4 -0
- package/library/esm/_virtual/index14.js.map +1 -0
- package/library/esm/_virtual/index15.js +4 -0
- package/library/esm/_virtual/index15.js.map +1 -0
- package/library/esm/_virtual/index16.js +4 -0
- package/library/esm/_virtual/index16.js.map +1 -0
- package/library/esm/_virtual/index17.js +4 -0
- package/library/esm/_virtual/index17.js.map +1 -0
- package/library/esm/_virtual/index2.js +2 -2
- package/library/esm/_virtual/index4.js +2 -2
- package/library/esm/_virtual/index4.js.map +1 -1
- package/library/esm/_virtual/index5.js +2 -2
- package/library/esm/_virtual/index6.js +2 -2
- package/library/esm/_virtual/index6.js.map +1 -1
- package/library/esm/_virtual/index7.js +2 -2
- package/library/esm/_virtual/index8.js +2 -2
- package/library/esm/_virtual/limit.js +4 -0
- package/library/esm/_virtual/limit.js.map +1 -0
- package/library/esm/_virtual/utilities.js +4 -0
- package/library/esm/_virtual/utilities.js.map +1 -0
- package/library/esm/node_modules/@axdspub/axiom-ui-utilities/library/index.js +241 -9
- package/library/esm/node_modules/@axdspub/axiom-ui-utilities/library/index.js.map +1 -1
- package/library/esm/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
- package/library/esm/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
- package/library/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
- package/library/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
- package/library/esm/node_modules/@codemirror/autocomplete/dist/index.js +1652 -0
- package/library/esm/node_modules/@codemirror/autocomplete/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/commands/dist/index.js +1444 -0
- package/library/esm/node_modules/@codemirror/commands/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/lang-json/dist/index.js +33 -0
- package/library/esm/node_modules/@codemirror/lang-json/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/lang-yaml/dist/index.js +59 -0
- package/library/esm/node_modules/@codemirror/lang-yaml/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/language/dist/index.js +1821 -0
- package/library/esm/node_modules/@codemirror/language/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/lint/dist/index.js +589 -0
- package/library/esm/node_modules/@codemirror/lint/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/search/dist/index.js +1227 -0
- package/library/esm/node_modules/@codemirror/search/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/state/dist/index.js +3882 -0
- package/library/esm/node_modules/@codemirror/state/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/theme-one-dark/dist/index.js +114 -0
- package/library/esm/node_modules/@codemirror/theme-one-dark/dist/index.js.map +1 -0
- package/library/esm/node_modules/@codemirror/view/dist/index.js +11052 -0
- package/library/esm/node_modules/@codemirror/view/dist/index.js.map +1 -0
- package/library/esm/node_modules/@lezer/common/dist/index.js +1704 -0
- package/library/esm/node_modules/@lezer/common/dist/index.js.map +1 -0
- package/library/esm/node_modules/@lezer/highlight/dist/index.js +876 -0
- package/library/esm/node_modules/@lezer/highlight/dist/index.js.map +1 -0
- package/library/esm/node_modules/@lezer/json/dist/index.js +38 -0
- package/library/esm/node_modules/@lezer/json/dist/index.js.map +1 -0
- package/library/esm/node_modules/@lezer/lr/dist/index.js +1855 -0
- package/library/esm/node_modules/@lezer/lr/dist/index.js.map +1 -0
- package/library/esm/node_modules/@lezer/yaml/dist/index.js +392 -0
- package/library/esm/node_modules/@lezer/yaml/dist/index.js.map +1 -0
- package/library/esm/node_modules/@marijn/find-cluster-break/src/index.js +83 -0
- package/library/esm/node_modules/@marijn/find-cluster-break/src/index.js.map +1 -0
- package/library/esm/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js +67 -1
- package/library/esm/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js.map +1 -1
- package/library/esm/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.js +100 -0
- package/library/esm/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.js.map +1 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.js +58 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.js.map +1 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/index.js +89 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/index.js.map +1 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/theme/light.js +12 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/theme/light.js.map +1 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/useCodeMirror.js +151 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/useCodeMirror.js.map +1 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/utils.js +19 -0
- package/library/esm/node_modules/@uiw/react-codemirror/esm/utils.js.map +1 -0
- package/library/esm/node_modules/@ungap/structured-clone/esm/deserialize.js +77 -0
- package/library/esm/node_modules/@ungap/structured-clone/esm/deserialize.js.map +1 -0
- package/library/esm/node_modules/@ungap/structured-clone/esm/index.js +25 -0
- package/library/esm/node_modules/@ungap/structured-clone/esm/index.js.map +1 -0
- package/library/esm/node_modules/@ungap/structured-clone/esm/serialize.js +159 -0
- package/library/esm/node_modules/@ungap/structured-clone/esm/serialize.js.map +1 -0
- package/library/esm/node_modules/@ungap/structured-clone/esm/types.js +14 -0
- package/library/esm/node_modules/@ungap/structured-clone/esm/types.js.map +1 -0
- package/library/esm/node_modules/ajv/dist/compile/codegen/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/compile/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/vocabularies/applicator/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/vocabularies/core/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/vocabularies/discriminator/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/vocabularies/validation/index.js +1 -1
- package/library/esm/node_modules/ajv-formats/dist/formats.js +221 -0
- package/library/esm/node_modules/ajv-formats/dist/formats.js.map +1 -0
- package/library/esm/node_modules/ajv-formats/dist/index.js +53 -0
- package/library/esm/node_modules/ajv-formats/dist/index.js.map +1 -0
- package/library/esm/node_modules/ajv-formats/dist/limit.js +84 -0
- package/library/esm/node_modules/ajv-formats/dist/limit.js.map +1 -0
- package/library/esm/node_modules/bail/index.js +15 -0
- package/library/esm/node_modules/bail/index.js.map +1 -0
- package/library/esm/node_modules/comma-separated-tokens/index.js +37 -0
- package/library/esm/node_modules/comma-separated-tokens/index.js.map +1 -0
- package/library/esm/node_modules/crelt/index.js +30 -0
- package/library/esm/node_modules/crelt/index.js.map +1 -0
- package/library/esm/node_modules/decode-named-character-reference/index.dom.js +39 -0
- package/library/esm/node_modules/decode-named-character-reference/index.dom.js.map +1 -0
- package/library/esm/node_modules/devlop/lib/default.js +6 -0
- package/library/esm/node_modules/devlop/lib/default.js.map +1 -0
- package/library/esm/node_modules/estree-util-is-identifier-name/lib/index.js +31 -0
- package/library/esm/node_modules/estree-util-is-identifier-name/lib/index.js.map +1 -0
- package/library/esm/node_modules/extend/index.js +127 -0
- package/library/esm/node_modules/extend/index.js.map +1 -0
- package/library/esm/node_modules/fast-uri/index.js +1 -1
- package/library/esm/node_modules/hast-util-to-jsx-runtime/lib/index.js +791 -0
- package/library/esm/node_modules/hast-util-to-jsx-runtime/lib/index.js.map +1 -0
- package/library/esm/node_modules/hast-util-whitespace/lib/index.js +37 -0
- package/library/esm/node_modules/hast-util-whitespace/lib/index.js.map +1 -0
- package/library/esm/node_modules/html-url-attributes/lib/index.js +34 -0
- package/library/esm/node_modules/html-url-attributes/lib/index.js.map +1 -0
- package/library/esm/node_modules/inline-style-parser/index.js +268 -0
- package/library/esm/node_modules/inline-style-parser/index.js.map +1 -0
- package/library/esm/node_modules/js-yaml/dist/js-yaml.js +3850 -0
- package/library/esm/node_modules/js-yaml/dist/js-yaml.js.map +1 -0
- package/library/esm/node_modules/json-schema-traverse/index.js +1 -1
- package/library/esm/node_modules/mdast-util-from-markdown/lib/index.js +1181 -0
- package/library/esm/node_modules/mdast-util-from-markdown/lib/index.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/footer.js +197 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/footer.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +31 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/break.js +27 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/break.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/code.js +51 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/code.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/delete.js +31 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +31 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +74 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/heading.js +31 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/html.js +32 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/html.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +45 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/image.js +40 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/image.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/index.js +67 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/index.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +36 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +50 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/link.js +41 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/link.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +126 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/list.js +57 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/list.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +31 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/root.js +27 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/root.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/strong.js +31 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +33 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +70 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table.js +65 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/table.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/text.js +29 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/text.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +31 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/index.js +105 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/index.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/revert.js +56 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/revert.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/state.js +322 -0
- package/library/esm/node_modules/mdast-util-to-hast/lib/state.js.map +1 -0
- package/library/esm/node_modules/mdast-util-to-string/lib/index.js +111 -0
- package/library/esm/node_modules/mdast-util-to-string/lib/index.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/constructs.js +108 -0
- package/library/esm/node_modules/micromark/lib/constructs.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/create-tokenizer.js +576 -0
- package/library/esm/node_modules/micromark/lib/create-tokenizer.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/initialize/content.js +83 -0
- package/library/esm/node_modules/micromark/lib/initialize/content.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/initialize/document.js +361 -0
- package/library/esm/node_modules/micromark/lib/initialize/document.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/initialize/flow.js +62 -0
- package/library/esm/node_modules/micromark/lib/initialize/flow.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/initialize/text.js +213 -0
- package/library/esm/node_modules/micromark/lib/initialize/text.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/parse.js +60 -0
- package/library/esm/node_modules/micromark/lib/parse.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/postprocess.js +22 -0
- package/library/esm/node_modules/micromark/lib/postprocess.js.map +1 -0
- package/library/esm/node_modules/micromark/lib/preprocess.js +118 -0
- package/library/esm/node_modules/micromark/lib/preprocess.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/attention.js +245 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/attention.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/autolink.js +237 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/autolink.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/blank-line.js +65 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/block-quote.js +147 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/block-quote.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/character-escape.js +68 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/character-escape.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/character-reference.js +153 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/character-reference.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/code-fenced.js +464 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/code-fenced.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/code-indented.js +181 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/code-indented.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/code-text.js +228 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/code-text.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/content.js +167 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/content.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/definition.js +258 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/definition.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +64 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/heading-atx.js +199 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/heading-atx.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/html-flow.js +880 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/html-flow.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/html-text.js +682 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/html-text.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/label-end.js +564 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/label-end.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/label-start-image.js +106 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/label-start-image.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/label-start-link.js +59 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/label-start-link.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/line-ending.js +36 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/line-ending.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/list.js +217 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/list.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/setext-underline.js +189 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/setext-underline.js.map +1 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/thematic-break.js +106 -0
- package/library/esm/node_modules/micromark-core-commonmark/lib/thematic-break.js.map +1 -0
- package/library/esm/node_modules/micromark-factory-destination/index.js +210 -0
- package/library/esm/node_modules/micromark-factory-destination/index.js.map +1 -0
- package/library/esm/node_modules/micromark-factory-label/index.js +152 -0
- package/library/esm/node_modules/micromark-factory-label/index.js.map +1 -0
- package/library/esm/node_modules/micromark-factory-space/index.js +68 -0
- package/library/esm/node_modules/micromark-factory-space/index.js.map +1 -0
- package/library/esm/node_modules/micromark-factory-title/index.js +162 -0
- package/library/esm/node_modules/micromark-factory-title/index.js.map +1 -0
- package/library/esm/node_modules/micromark-factory-whitespace/index.js +48 -0
- package/library/esm/node_modules/micromark-factory-whitespace/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-character/index.js +249 -0
- package/library/esm/node_modules/micromark-util-character/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-chunked/index.js +84 -0
- package/library/esm/node_modules/micromark-util-chunked/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-classify-character/index.js +31 -0
- package/library/esm/node_modules/micromark-util-classify-character/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-combine-extensions/index.js +96 -0
- package/library/esm/node_modules/micromark-util-combine-extensions/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-decode-numeric-character-reference/index.js +35 -0
- package/library/esm/node_modules/micromark-util-decode-numeric-character-reference/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-decode-string/index.js +49 -0
- package/library/esm/node_modules/micromark-util-decode-string/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-html-tag-name/index.js +96 -0
- package/library/esm/node_modules/micromark-util-html-tag-name/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-normalize-identifier/index.js +36 -0
- package/library/esm/node_modules/micromark-util-normalize-identifier/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-resolve-all/index.js +35 -0
- package/library/esm/node_modules/micromark-util-resolve-all/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-sanitize-uri/index.js +67 -0
- package/library/esm/node_modules/micromark-util-sanitize-uri/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-subtokenize/index.js +227 -0
- package/library/esm/node_modules/micromark-util-subtokenize/index.js.map +1 -0
- package/library/esm/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +254 -0
- package/library/esm/node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +1 -0
- package/library/esm/node_modules/property-information/index.js +16 -0
- package/library/esm/node_modules/property-information/index.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/aria.js +64 -0
- package/library/esm/node_modules/property-information/lib/aria.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/find.js +101 -0
- package/library/esm/node_modules/property-information/lib/find.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/hast-to-react.js +33 -0
- package/library/esm/node_modules/property-information/lib/hast-to-react.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/html.js +318 -0
- package/library/esm/node_modules/property-information/lib/html.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/normalize.js +15 -0
- package/library/esm/node_modules/property-information/lib/normalize.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/svg.js +564 -0
- package/library/esm/node_modules/property-information/lib/svg.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/util/case-insensitive-transform.js +16 -0
- package/library/esm/node_modules/property-information/lib/util/case-insensitive-transform.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/util/case-sensitive-transform.js +14 -0
- package/library/esm/node_modules/property-information/lib/util/case-sensitive-transform.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/util/create.js +47 -0
- package/library/esm/node_modules/property-information/lib/util/create.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/util/defined-info.js +64 -0
- package/library/esm/node_modules/property-information/lib/util/defined-info.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/util/info.js +35 -0
- package/library/esm/node_modules/property-information/lib/util/info.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/util/merge.js +31 -0
- package/library/esm/node_modules/property-information/lib/util/merge.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/util/schema.js +32 -0
- package/library/esm/node_modules/property-information/lib/util/schema.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/util/types.js +16 -0
- package/library/esm/node_modules/property-information/lib/util/types.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/xlink.js +20 -0
- package/library/esm/node_modules/property-information/lib/xlink.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/xml.js +12 -0
- package/library/esm/node_modules/property-information/lib/xml.js.map +1 -0
- package/library/esm/node_modules/property-information/lib/xmlns.js +12 -0
- package/library/esm/node_modules/property-information/lib/xmlns.js.map +1 -0
- package/library/esm/node_modules/react-markdown/lib/index.js +267 -0
- package/library/esm/node_modules/react-markdown/lib/index.js.map +1 -0
- package/library/esm/node_modules/react-router/dist/development/chunk-HA7DTUK3.js +1 -1
- package/library/esm/node_modules/react-router/node_modules/cookie/dist/index.js +1 -1
- package/library/esm/node_modules/remark-parse/lib/index.js +43 -0
- package/library/esm/node_modules/remark-parse/lib/index.js.map +1 -0
- package/library/esm/node_modules/remark-rehype/lib/index.js +132 -0
- package/library/esm/node_modules/remark-rehype/lib/index.js.map +1 -0
- package/library/esm/node_modules/space-separated-tokens/index.js +23 -0
- package/library/esm/node_modules/space-separated-tokens/index.js.map +1 -0
- package/library/esm/node_modules/style-mod/src/style-mod.js +175 -0
- package/library/esm/node_modules/style-mod/src/style-mod.js.map +1 -0
- package/library/esm/node_modules/style-to-js/cjs/index.js +38 -0
- package/library/esm/node_modules/style-to-js/cjs/index.js.map +1 -0
- package/library/esm/node_modules/style-to-js/cjs/utilities.js +58 -0
- package/library/esm/node_modules/style-to-js/cjs/utilities.js.map +1 -0
- package/library/esm/node_modules/style-to-object/cjs/index.js +56 -0
- package/library/esm/node_modules/style-to-object/cjs/index.js.map +1 -0
- package/library/esm/node_modules/trim-lines/index.js +72 -0
- package/library/esm/node_modules/trim-lines/index.js.map +1 -0
- package/library/esm/node_modules/trough/lib/index.js +209 -0
- package/library/esm/node_modules/trough/lib/index.js.map +1 -0
- package/library/esm/node_modules/unified/lib/callable-instance.js +47 -0
- package/library/esm/node_modules/unified/lib/callable-instance.js.map +1 -0
- package/library/esm/node_modules/unified/lib/index.js +979 -0
- package/library/esm/node_modules/unified/lib/index.js.map +1 -0
- package/library/esm/node_modules/unified/node_modules/is-plain-obj/index.js +11 -0
- package/library/esm/node_modules/unified/node_modules/is-plain-obj/index.js.map +1 -0
- package/library/esm/node_modules/unist-util-is/lib/index.js +179 -0
- package/library/esm/node_modules/unist-util-is/lib/index.js.map +1 -0
- package/library/esm/node_modules/unist-util-position/lib/index.js +98 -0
- package/library/esm/node_modules/unist-util-position/lib/index.js.map +1 -0
- package/library/esm/node_modules/unist-util-stringify-position/lib/index.js +87 -0
- package/library/esm/node_modules/unist-util-stringify-position/lib/index.js.map +1 -0
- package/library/esm/node_modules/unist-util-visit/lib/index.js +95 -0
- package/library/esm/node_modules/unist-util-visit/lib/index.js.map +1 -0
- package/library/esm/node_modules/unist-util-visit-parents/lib/color.js +10 -0
- package/library/esm/node_modules/unist-util-visit-parents/lib/color.js.map +1 -0
- package/library/esm/node_modules/unist-util-visit-parents/lib/index.js +188 -0
- package/library/esm/node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
- package/library/esm/node_modules/vfile/lib/index.js +644 -0
- package/library/esm/node_modules/vfile/lib/index.js.map +1 -0
- package/library/esm/node_modules/vfile/lib/minpath.browser.js +427 -0
- package/library/esm/node_modules/vfile/lib/minpath.browser.js.map +1 -0
- package/library/esm/node_modules/vfile/lib/minproc.browser.js +11 -0
- package/library/esm/node_modules/vfile/lib/minproc.browser.js.map +1 -0
- package/library/esm/node_modules/vfile/lib/minurl.browser.js +77 -0
- package/library/esm/node_modules/vfile/lib/minurl.browser.js.map +1 -0
- package/library/esm/node_modules/vfile/lib/minurl.shared.js +34 -0
- package/library/esm/node_modules/vfile/lib/minurl.shared.js.map +1 -0
- package/library/esm/node_modules/vfile-message/lib/index.js +305 -0
- package/library/esm/node_modules/vfile-message/lib/index.js.map +1 -0
- package/library/esm/node_modules/w3c-keyname/index.js +122 -0
- package/library/esm/node_modules/w3c-keyname/index.js.map +1 -0
- package/library/esm/src/Form/Components/FieldCreator.js +0 -1
- package/library/esm/src/Form/Components/FieldCreator.js.map +1 -1
- package/library/esm/src/Form/Components/FieldLabel.js +13 -3
- package/library/esm/src/Form/Components/FieldLabel.js.map +1 -1
- package/library/esm/src/Form/Components/InlineMarkdown.js +15 -0
- package/library/esm/src/Form/Components/InlineMarkdown.js.map +1 -0
- package/library/esm/src/Form/Components/Inputs/Boolean.js +5 -2
- package/library/esm/src/Form/Components/Inputs/Boolean.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/Constant.js +18 -0
- package/library/esm/src/Form/Components/Inputs/Constant.js.map +1 -0
- package/library/esm/src/Form/Components/Inputs/GeoJSONInputLoader.js +1 -1
- package/library/esm/src/Form/Components/Inputs/Geometry.js +290 -329
- package/library/esm/src/Form/Components/Inputs/Geometry.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/JSON.js +132 -0
- package/library/esm/src/Form/Components/Inputs/JSON.js.map +1 -0
- package/library/esm/src/Form/Components/Inputs/JSONInputLoader.js +19 -0
- package/library/esm/src/Form/Components/Inputs/JSONInputLoader.js.map +1 -0
- package/library/esm/src/Form/Components/Inputs/Number.js +78 -8
- package/library/esm/src/Form/Components/Inputs/Number.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/OneOfInput.js +9 -0
- package/library/esm/src/Form/Components/Inputs/OneOfInput.js.map +1 -0
- package/library/esm/src/Form/Components/Inputs/String.js +9 -3
- package/library/esm/src/Form/Components/Inputs/String.js.map +1 -1
- package/library/esm/src/Form/Components/Inputs/inputMap.js +7 -3
- package/library/esm/src/Form/Components/Inputs/inputMap.js.map +1 -1
- package/library/esm/src/Form/Creator/FormCreator.js +42 -49
- package/library/esm/src/Form/Creator/FormCreator.js.map +1 -1
- package/library/esm/src/Form/Creator/FormHeader.js +7 -5
- package/library/esm/src/Form/Creator/FormHeader.js.map +1 -1
- package/library/esm/src/Form/Creator/Page.js +4 -3
- package/library/esm/src/Form/Creator/Page.js.map +1 -1
- package/library/esm/src/Form/Manage/CopyableJSONOutput.js +41 -0
- package/library/esm/src/Form/Manage/CopyableJSONOutput.js.map +1 -0
- package/library/esm/src/Form/helpers.js +12 -2
- package/library/esm/src/Form/helpers.js.map +1 -1
- package/library/esm/src/Form/schemaToFormHelpers.js +209 -18
- package/library/esm/src/Form/schemaToFormHelpers.js.map +1 -1
- package/library/esm/src/library.js +2 -2
- package/package.json +8 -1
- package/library/esm/src/Form/Components/Inputs/JSONString.js +0 -34
- package/library/esm/src/Form/Components/Inputs/JSONString.js.map +0 -1
@@ -0,0 +1,576 @@
|
|
1
|
+
import { markdownLineEnding } from '../../micromark-util-character/index.js';
|
2
|
+
import { push, splice } from '../../micromark-util-chunked/index.js';
|
3
|
+
import { resolveAll } from '../../micromark-util-resolve-all/index.js';
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @import {
|
7
|
+
* Chunk,
|
8
|
+
* Code,
|
9
|
+
* ConstructRecord,
|
10
|
+
* Construct,
|
11
|
+
* Effects,
|
12
|
+
* InitialConstruct,
|
13
|
+
* ParseContext,
|
14
|
+
* Point,
|
15
|
+
* State,
|
16
|
+
* TokenizeContext,
|
17
|
+
* Token
|
18
|
+
* } from 'micromark-util-types'
|
19
|
+
*/
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Create a tokenizer.
|
23
|
+
* Tokenizers deal with one type of data (e.g., containers, flow, text).
|
24
|
+
* The parser is the object dealing with it all.
|
25
|
+
* `initialize` works like other constructs, except that only its `tokenize`
|
26
|
+
* function is used, in which case it doesn’t receive an `ok` or `nok`.
|
27
|
+
* `from` can be given to set the point before the first character, although
|
28
|
+
* when further lines are indented, they must be set with `defineSkip`.
|
29
|
+
*
|
30
|
+
* @param {ParseContext} parser
|
31
|
+
* Parser.
|
32
|
+
* @param {InitialConstruct} initialize
|
33
|
+
* Construct.
|
34
|
+
* @param {Omit<Point, '_bufferIndex' | '_index'> | undefined} [from]
|
35
|
+
* Point (optional).
|
36
|
+
* @returns {TokenizeContext}
|
37
|
+
* Context.
|
38
|
+
*/
|
39
|
+
function createTokenizer(parser, initialize, from) {
|
40
|
+
/** @type {Point} */
|
41
|
+
let point = {
|
42
|
+
_bufferIndex: -1,
|
43
|
+
_index: 0,
|
44
|
+
line: from && from.line || 1,
|
45
|
+
column: from && from.column || 1,
|
46
|
+
offset: from && from.offset || 0
|
47
|
+
};
|
48
|
+
/** @type {Record<string, number>} */
|
49
|
+
const columnStart = {};
|
50
|
+
/** @type {Array<Construct>} */
|
51
|
+
const resolveAllConstructs = [];
|
52
|
+
/** @type {Array<Chunk>} */
|
53
|
+
let chunks = [];
|
54
|
+
/** @type {Array<Token>} */
|
55
|
+
let stack = [];
|
56
|
+
|
57
|
+
/**
|
58
|
+
* Tools used for tokenizing.
|
59
|
+
*
|
60
|
+
* @type {Effects}
|
61
|
+
*/
|
62
|
+
const effects = {
|
63
|
+
attempt: constructFactory(onsuccessfulconstruct),
|
64
|
+
check: constructFactory(onsuccessfulcheck),
|
65
|
+
consume,
|
66
|
+
enter,
|
67
|
+
exit,
|
68
|
+
interrupt: constructFactory(onsuccessfulcheck, {
|
69
|
+
interrupt: true
|
70
|
+
})
|
71
|
+
};
|
72
|
+
|
73
|
+
/**
|
74
|
+
* State and tools for resolving and serializing.
|
75
|
+
*
|
76
|
+
* @type {TokenizeContext}
|
77
|
+
*/
|
78
|
+
const context = {
|
79
|
+
code: null,
|
80
|
+
containerState: {},
|
81
|
+
defineSkip,
|
82
|
+
events: [],
|
83
|
+
now,
|
84
|
+
parser,
|
85
|
+
previous: null,
|
86
|
+
sliceSerialize,
|
87
|
+
sliceStream,
|
88
|
+
write
|
89
|
+
};
|
90
|
+
|
91
|
+
/**
|
92
|
+
* The state function.
|
93
|
+
*
|
94
|
+
* @type {State | undefined}
|
95
|
+
*/
|
96
|
+
let state = initialize.tokenize.call(context, effects);
|
97
|
+
if (initialize.resolveAll) {
|
98
|
+
resolveAllConstructs.push(initialize);
|
99
|
+
}
|
100
|
+
return context;
|
101
|
+
|
102
|
+
/** @type {TokenizeContext['write']} */
|
103
|
+
function write(slice) {
|
104
|
+
chunks = push(chunks, slice);
|
105
|
+
main();
|
106
|
+
|
107
|
+
// Exit if we’re not done, resolve might change stuff.
|
108
|
+
if (chunks[chunks.length - 1] !== null) {
|
109
|
+
return [];
|
110
|
+
}
|
111
|
+
addResult(initialize, 0);
|
112
|
+
|
113
|
+
// Otherwise, resolve, and exit.
|
114
|
+
context.events = resolveAll(resolveAllConstructs, context.events, context);
|
115
|
+
return context.events;
|
116
|
+
}
|
117
|
+
|
118
|
+
//
|
119
|
+
// Tools.
|
120
|
+
//
|
121
|
+
|
122
|
+
/** @type {TokenizeContext['sliceSerialize']} */
|
123
|
+
function sliceSerialize(token, expandTabs) {
|
124
|
+
return serializeChunks(sliceStream(token), expandTabs);
|
125
|
+
}
|
126
|
+
|
127
|
+
/** @type {TokenizeContext['sliceStream']} */
|
128
|
+
function sliceStream(token) {
|
129
|
+
return sliceChunks(chunks, token);
|
130
|
+
}
|
131
|
+
|
132
|
+
/** @type {TokenizeContext['now']} */
|
133
|
+
function now() {
|
134
|
+
// This is a hot path, so we clone manually instead of `Object.assign({}, point)`
|
135
|
+
const {
|
136
|
+
_bufferIndex,
|
137
|
+
_index,
|
138
|
+
line,
|
139
|
+
column,
|
140
|
+
offset
|
141
|
+
} = point;
|
142
|
+
return {
|
143
|
+
_bufferIndex,
|
144
|
+
_index,
|
145
|
+
line,
|
146
|
+
column,
|
147
|
+
offset
|
148
|
+
};
|
149
|
+
}
|
150
|
+
|
151
|
+
/** @type {TokenizeContext['defineSkip']} */
|
152
|
+
function defineSkip(value) {
|
153
|
+
columnStart[value.line] = value.column;
|
154
|
+
accountForPotentialSkip();
|
155
|
+
}
|
156
|
+
|
157
|
+
//
|
158
|
+
// State management.
|
159
|
+
//
|
160
|
+
|
161
|
+
/**
|
162
|
+
* Main loop (note that `_index` and `_bufferIndex` in `point` are modified by
|
163
|
+
* `consume`).
|
164
|
+
* Here is where we walk through the chunks, which either include strings of
|
165
|
+
* several characters, or numerical character codes.
|
166
|
+
* The reason to do this in a loop instead of a call is so the stack can
|
167
|
+
* drain.
|
168
|
+
*
|
169
|
+
* @returns {undefined}
|
170
|
+
* Nothing.
|
171
|
+
*/
|
172
|
+
function main() {
|
173
|
+
/** @type {number} */
|
174
|
+
let chunkIndex;
|
175
|
+
while (point._index < chunks.length) {
|
176
|
+
const chunk = chunks[point._index];
|
177
|
+
|
178
|
+
// If we’re in a buffer chunk, loop through it.
|
179
|
+
if (typeof chunk === 'string') {
|
180
|
+
chunkIndex = point._index;
|
181
|
+
if (point._bufferIndex < 0) {
|
182
|
+
point._bufferIndex = 0;
|
183
|
+
}
|
184
|
+
while (point._index === chunkIndex && point._bufferIndex < chunk.length) {
|
185
|
+
go(chunk.charCodeAt(point._bufferIndex));
|
186
|
+
}
|
187
|
+
} else {
|
188
|
+
go(chunk);
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
/**
|
194
|
+
* Deal with one code.
|
195
|
+
*
|
196
|
+
* @param {Code} code
|
197
|
+
* Code.
|
198
|
+
* @returns {undefined}
|
199
|
+
* Nothing.
|
200
|
+
*/
|
201
|
+
function go(code) {
|
202
|
+
state = state(code);
|
203
|
+
}
|
204
|
+
|
205
|
+
/** @type {Effects['consume']} */
|
206
|
+
function consume(code) {
|
207
|
+
if (markdownLineEnding(code)) {
|
208
|
+
point.line++;
|
209
|
+
point.column = 1;
|
210
|
+
point.offset += code === -3 ? 2 : 1;
|
211
|
+
accountForPotentialSkip();
|
212
|
+
} else if (code !== -1) {
|
213
|
+
point.column++;
|
214
|
+
point.offset++;
|
215
|
+
}
|
216
|
+
|
217
|
+
// Not in a string chunk.
|
218
|
+
if (point._bufferIndex < 0) {
|
219
|
+
point._index++;
|
220
|
+
} else {
|
221
|
+
point._bufferIndex++;
|
222
|
+
|
223
|
+
// At end of string chunk.
|
224
|
+
if (point._bufferIndex ===
|
225
|
+
// Points w/ non-negative `_bufferIndex` reference
|
226
|
+
// strings.
|
227
|
+
/** @type {string} */
|
228
|
+
chunks[point._index].length) {
|
229
|
+
point._bufferIndex = -1;
|
230
|
+
point._index++;
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
// Expose the previous character.
|
235
|
+
context.previous = code;
|
236
|
+
}
|
237
|
+
|
238
|
+
/** @type {Effects['enter']} */
|
239
|
+
function enter(type, fields) {
|
240
|
+
/** @type {Token} */
|
241
|
+
// @ts-expect-error Patch instead of assign required fields to help GC.
|
242
|
+
const token = fields || {};
|
243
|
+
token.type = type;
|
244
|
+
token.start = now();
|
245
|
+
context.events.push(['enter', token, context]);
|
246
|
+
stack.push(token);
|
247
|
+
return token;
|
248
|
+
}
|
249
|
+
|
250
|
+
/** @type {Effects['exit']} */
|
251
|
+
function exit(type) {
|
252
|
+
const token = stack.pop();
|
253
|
+
token.end = now();
|
254
|
+
context.events.push(['exit', token, context]);
|
255
|
+
return token;
|
256
|
+
}
|
257
|
+
|
258
|
+
/**
|
259
|
+
* Use results.
|
260
|
+
*
|
261
|
+
* @type {ReturnHandle}
|
262
|
+
*/
|
263
|
+
function onsuccessfulconstruct(construct, info) {
|
264
|
+
addResult(construct, info.from);
|
265
|
+
}
|
266
|
+
|
267
|
+
/**
|
268
|
+
* Discard results.
|
269
|
+
*
|
270
|
+
* @type {ReturnHandle}
|
271
|
+
*/
|
272
|
+
function onsuccessfulcheck(_, info) {
|
273
|
+
info.restore();
|
274
|
+
}
|
275
|
+
|
276
|
+
/**
|
277
|
+
* Factory to attempt/check/interrupt.
|
278
|
+
*
|
279
|
+
* @param {ReturnHandle} onreturn
|
280
|
+
* Callback.
|
281
|
+
* @param {{interrupt?: boolean | undefined} | undefined} [fields]
|
282
|
+
* Fields.
|
283
|
+
*/
|
284
|
+
function constructFactory(onreturn, fields) {
|
285
|
+
return hook;
|
286
|
+
|
287
|
+
/**
|
288
|
+
* Handle either an object mapping codes to constructs, a list of
|
289
|
+
* constructs, or a single construct.
|
290
|
+
*
|
291
|
+
* @param {Array<Construct> | ConstructRecord | Construct} constructs
|
292
|
+
* Constructs.
|
293
|
+
* @param {State} returnState
|
294
|
+
* State.
|
295
|
+
* @param {State | undefined} [bogusState]
|
296
|
+
* State.
|
297
|
+
* @returns {State}
|
298
|
+
* State.
|
299
|
+
*/
|
300
|
+
function hook(constructs, returnState, bogusState) {
|
301
|
+
/** @type {ReadonlyArray<Construct>} */
|
302
|
+
let listOfConstructs;
|
303
|
+
/** @type {number} */
|
304
|
+
let constructIndex;
|
305
|
+
/** @type {Construct} */
|
306
|
+
let currentConstruct;
|
307
|
+
/** @type {Info} */
|
308
|
+
let info;
|
309
|
+
return Array.isArray(constructs) ? /* c8 ignore next 1 */
|
310
|
+
handleListOfConstructs(constructs) : 'tokenize' in constructs ?
|
311
|
+
// Looks like a construct.
|
312
|
+
handleListOfConstructs([(/** @type {Construct} */constructs)]) : handleMapOfConstructs(constructs);
|
313
|
+
|
314
|
+
/**
|
315
|
+
* Handle a list of construct.
|
316
|
+
*
|
317
|
+
* @param {ConstructRecord} map
|
318
|
+
* Constructs.
|
319
|
+
* @returns {State}
|
320
|
+
* State.
|
321
|
+
*/
|
322
|
+
function handleMapOfConstructs(map) {
|
323
|
+
return start;
|
324
|
+
|
325
|
+
/** @type {State} */
|
326
|
+
function start(code) {
|
327
|
+
const left = code !== null && map[code];
|
328
|
+
const all = code !== null && map.null;
|
329
|
+
const list = [
|
330
|
+
// To do: add more extension tests.
|
331
|
+
/* c8 ignore next 2 */
|
332
|
+
...(Array.isArray(left) ? left : left ? [left] : []), ...(Array.isArray(all) ? all : all ? [all] : [])];
|
333
|
+
return handleListOfConstructs(list)(code);
|
334
|
+
}
|
335
|
+
}
|
336
|
+
|
337
|
+
/**
|
338
|
+
* Handle a list of construct.
|
339
|
+
*
|
340
|
+
* @param {ReadonlyArray<Construct>} list
|
341
|
+
* Constructs.
|
342
|
+
* @returns {State}
|
343
|
+
* State.
|
344
|
+
*/
|
345
|
+
function handleListOfConstructs(list) {
|
346
|
+
listOfConstructs = list;
|
347
|
+
constructIndex = 0;
|
348
|
+
if (list.length === 0) {
|
349
|
+
return bogusState;
|
350
|
+
}
|
351
|
+
return handleConstruct(list[constructIndex]);
|
352
|
+
}
|
353
|
+
|
354
|
+
/**
|
355
|
+
* Handle a single construct.
|
356
|
+
*
|
357
|
+
* @param {Construct} construct
|
358
|
+
* Construct.
|
359
|
+
* @returns {State}
|
360
|
+
* State.
|
361
|
+
*/
|
362
|
+
function handleConstruct(construct) {
|
363
|
+
return start;
|
364
|
+
|
365
|
+
/** @type {State} */
|
366
|
+
function start(code) {
|
367
|
+
// To do: not needed to store if there is no bogus state, probably?
|
368
|
+
// Currently doesn’t work because `inspect` in document does a check
|
369
|
+
// w/o a bogus, which doesn’t make sense. But it does seem to help perf
|
370
|
+
// by not storing.
|
371
|
+
info = store();
|
372
|
+
currentConstruct = construct;
|
373
|
+
if (!construct.partial) {
|
374
|
+
context.currentConstruct = construct;
|
375
|
+
}
|
376
|
+
|
377
|
+
// Always populated by defaults.
|
378
|
+
|
379
|
+
if (construct.name && context.parser.constructs.disable.null.includes(construct.name)) {
|
380
|
+
return nok();
|
381
|
+
}
|
382
|
+
return construct.tokenize.call(
|
383
|
+
// If we do have fields, create an object w/ `context` as its
|
384
|
+
// prototype.
|
385
|
+
// This allows a “live binding”, which is needed for `interrupt`.
|
386
|
+
fields ? Object.assign(Object.create(context), fields) : context, effects, ok, nok)(code);
|
387
|
+
}
|
388
|
+
}
|
389
|
+
|
390
|
+
/** @type {State} */
|
391
|
+
function ok(code) {
|
392
|
+
onreturn(currentConstruct, info);
|
393
|
+
return returnState;
|
394
|
+
}
|
395
|
+
|
396
|
+
/** @type {State} */
|
397
|
+
function nok(code) {
|
398
|
+
info.restore();
|
399
|
+
if (++constructIndex < listOfConstructs.length) {
|
400
|
+
return handleConstruct(listOfConstructs[constructIndex]);
|
401
|
+
}
|
402
|
+
return bogusState;
|
403
|
+
}
|
404
|
+
}
|
405
|
+
}
|
406
|
+
|
407
|
+
/**
|
408
|
+
* @param {Construct} construct
|
409
|
+
* Construct.
|
410
|
+
* @param {number} from
|
411
|
+
* From.
|
412
|
+
* @returns {undefined}
|
413
|
+
* Nothing.
|
414
|
+
*/
|
415
|
+
function addResult(construct, from) {
|
416
|
+
if (construct.resolveAll && !resolveAllConstructs.includes(construct)) {
|
417
|
+
resolveAllConstructs.push(construct);
|
418
|
+
}
|
419
|
+
if (construct.resolve) {
|
420
|
+
splice(context.events, from, context.events.length - from, construct.resolve(context.events.slice(from), context));
|
421
|
+
}
|
422
|
+
if (construct.resolveTo) {
|
423
|
+
context.events = construct.resolveTo(context.events, context);
|
424
|
+
}
|
425
|
+
}
|
426
|
+
|
427
|
+
/**
|
428
|
+
* Store state.
|
429
|
+
*
|
430
|
+
* @returns {Info}
|
431
|
+
* Info.
|
432
|
+
*/
|
433
|
+
function store() {
|
434
|
+
const startPoint = now();
|
435
|
+
const startPrevious = context.previous;
|
436
|
+
const startCurrentConstruct = context.currentConstruct;
|
437
|
+
const startEventsIndex = context.events.length;
|
438
|
+
const startStack = Array.from(stack);
|
439
|
+
return {
|
440
|
+
from: startEventsIndex,
|
441
|
+
restore
|
442
|
+
};
|
443
|
+
|
444
|
+
/**
|
445
|
+
* Restore state.
|
446
|
+
*
|
447
|
+
* @returns {undefined}
|
448
|
+
* Nothing.
|
449
|
+
*/
|
450
|
+
function restore() {
|
451
|
+
point = startPoint;
|
452
|
+
context.previous = startPrevious;
|
453
|
+
context.currentConstruct = startCurrentConstruct;
|
454
|
+
context.events.length = startEventsIndex;
|
455
|
+
stack = startStack;
|
456
|
+
accountForPotentialSkip();
|
457
|
+
}
|
458
|
+
}
|
459
|
+
|
460
|
+
/**
|
461
|
+
* Move the current point a bit forward in the line when it’s on a column
|
462
|
+
* skip.
|
463
|
+
*
|
464
|
+
* @returns {undefined}
|
465
|
+
* Nothing.
|
466
|
+
*/
|
467
|
+
function accountForPotentialSkip() {
|
468
|
+
if (point.line in columnStart && point.column < 2) {
|
469
|
+
point.column = columnStart[point.line];
|
470
|
+
point.offset += columnStart[point.line] - 1;
|
471
|
+
}
|
472
|
+
}
|
473
|
+
}
|
474
|
+
|
475
|
+
/**
|
476
|
+
* Get the chunks from a slice of chunks in the range of a token.
|
477
|
+
*
|
478
|
+
* @param {ReadonlyArray<Chunk>} chunks
|
479
|
+
* Chunks.
|
480
|
+
* @param {Pick<Token, 'end' | 'start'>} token
|
481
|
+
* Token.
|
482
|
+
* @returns {Array<Chunk>}
|
483
|
+
* Chunks.
|
484
|
+
*/
|
485
|
+
function sliceChunks(chunks, token) {
|
486
|
+
const startIndex = token.start._index;
|
487
|
+
const startBufferIndex = token.start._bufferIndex;
|
488
|
+
const endIndex = token.end._index;
|
489
|
+
const endBufferIndex = token.end._bufferIndex;
|
490
|
+
/** @type {Array<Chunk>} */
|
491
|
+
let view;
|
492
|
+
if (startIndex === endIndex) {
|
493
|
+
// @ts-expect-error `_bufferIndex` is used on string chunks.
|
494
|
+
view = [chunks[startIndex].slice(startBufferIndex, endBufferIndex)];
|
495
|
+
} else {
|
496
|
+
view = chunks.slice(startIndex, endIndex);
|
497
|
+
if (startBufferIndex > -1) {
|
498
|
+
const head = view[0];
|
499
|
+
if (typeof head === 'string') {
|
500
|
+
view[0] = head.slice(startBufferIndex);
|
501
|
+
/* c8 ignore next 4 -- used to be used, no longer */
|
502
|
+
} else {
|
503
|
+
view.shift();
|
504
|
+
}
|
505
|
+
}
|
506
|
+
if (endBufferIndex > 0) {
|
507
|
+
// @ts-expect-error `_bufferIndex` is used on string chunks.
|
508
|
+
view.push(chunks[endIndex].slice(0, endBufferIndex));
|
509
|
+
}
|
510
|
+
}
|
511
|
+
return view;
|
512
|
+
}
|
513
|
+
|
514
|
+
/**
|
515
|
+
* Get the string value of a slice of chunks.
|
516
|
+
*
|
517
|
+
* @param {ReadonlyArray<Chunk>} chunks
|
518
|
+
* Chunks.
|
519
|
+
* @param {boolean | undefined} [expandTabs=false]
|
520
|
+
* Whether to expand tabs (default: `false`).
|
521
|
+
* @returns {string}
|
522
|
+
* Result.
|
523
|
+
*/
|
524
|
+
function serializeChunks(chunks, expandTabs) {
|
525
|
+
let index = -1;
|
526
|
+
/** @type {Array<string>} */
|
527
|
+
const result = [];
|
528
|
+
/** @type {boolean | undefined} */
|
529
|
+
let atTab;
|
530
|
+
while (++index < chunks.length) {
|
531
|
+
const chunk = chunks[index];
|
532
|
+
/** @type {string} */
|
533
|
+
let value;
|
534
|
+
if (typeof chunk === 'string') {
|
535
|
+
value = chunk;
|
536
|
+
} else switch (chunk) {
|
537
|
+
case -5:
|
538
|
+
{
|
539
|
+
value = "\r";
|
540
|
+
break;
|
541
|
+
}
|
542
|
+
case -4:
|
543
|
+
{
|
544
|
+
value = "\n";
|
545
|
+
break;
|
546
|
+
}
|
547
|
+
case -3:
|
548
|
+
{
|
549
|
+
value = "\r" + "\n";
|
550
|
+
break;
|
551
|
+
}
|
552
|
+
case -2:
|
553
|
+
{
|
554
|
+
value = expandTabs ? " " : "\t";
|
555
|
+
break;
|
556
|
+
}
|
557
|
+
case -1:
|
558
|
+
{
|
559
|
+
if (!expandTabs && atTab) continue;
|
560
|
+
value = " ";
|
561
|
+
break;
|
562
|
+
}
|
563
|
+
default:
|
564
|
+
{
|
565
|
+
// Currently only replacement character.
|
566
|
+
value = String.fromCharCode(chunk);
|
567
|
+
}
|
568
|
+
}
|
569
|
+
atTab = chunk === -2;
|
570
|
+
result.push(value);
|
571
|
+
}
|
572
|
+
return result.join('');
|
573
|
+
}
|
574
|
+
|
575
|
+
export { createTokenizer };
|
576
|
+
//# sourceMappingURL=create-tokenizer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"create-tokenizer.js","sources":["../../../../../node_modules/micromark/lib/create-tokenizer.js"],"sourcesContent":["/**\n * @import {\n * Chunk,\n * Code,\n * ConstructRecord,\n * Construct,\n * Effects,\n * InitialConstruct,\n * ParseContext,\n * Point,\n * State,\n * TokenizeContext,\n * Token\n * } from 'micromark-util-types'\n */\n\n/**\n * @callback Restore\n * Restore the state.\n * @returns {undefined}\n * Nothing.\n *\n * @typedef Info\n * Info.\n * @property {Restore} restore\n * Restore.\n * @property {number} from\n * From.\n *\n * @callback ReturnHandle\n * Handle a successful run.\n * @param {Construct} construct\n * Construct.\n * @param {Info} info\n * Info.\n * @returns {undefined}\n * Nothing.\n */\n\nimport { markdownLineEnding } from 'micromark-util-character';\nimport { push, splice } from 'micromark-util-chunked';\nimport { resolveAll } from 'micromark-util-resolve-all';\n/**\n * Create a tokenizer.\n * Tokenizers deal with one type of data (e.g., containers, flow, text).\n * The parser is the object dealing with it all.\n * `initialize` works like other constructs, except that only its `tokenize`\n * function is used, in which case it doesn’t receive an `ok` or `nok`.\n * `from` can be given to set the point before the first character, although\n * when further lines are indented, they must be set with `defineSkip`.\n *\n * @param {ParseContext} parser\n * Parser.\n * @param {InitialConstruct} initialize\n * Construct.\n * @param {Omit<Point, '_bufferIndex' | '_index'> | undefined} [from]\n * Point (optional).\n * @returns {TokenizeContext}\n * Context.\n */\nexport function createTokenizer(parser, initialize, from) {\n /** @type {Point} */\n let point = {\n _bufferIndex: -1,\n _index: 0,\n line: from && from.line || 1,\n column: from && from.column || 1,\n offset: from && from.offset || 0\n };\n /** @type {Record<string, number>} */\n const columnStart = {};\n /** @type {Array<Construct>} */\n const resolveAllConstructs = [];\n /** @type {Array<Chunk>} */\n let chunks = [];\n /** @type {Array<Token>} */\n let stack = [];\n /** @type {boolean | undefined} */\n let consumed = true;\n\n /**\n * Tools used for tokenizing.\n *\n * @type {Effects}\n */\n const effects = {\n attempt: constructFactory(onsuccessfulconstruct),\n check: constructFactory(onsuccessfulcheck),\n consume,\n enter,\n exit,\n interrupt: constructFactory(onsuccessfulcheck, {\n interrupt: true\n })\n };\n\n /**\n * State and tools for resolving and serializing.\n *\n * @type {TokenizeContext}\n */\n const context = {\n code: null,\n containerState: {},\n defineSkip,\n events: [],\n now,\n parser,\n previous: null,\n sliceSerialize,\n sliceStream,\n write\n };\n\n /**\n * The state function.\n *\n * @type {State | undefined}\n */\n let state = initialize.tokenize.call(context, effects);\n\n /**\n * Track which character we expect to be consumed, to catch bugs.\n *\n * @type {Code}\n */\n let expectedCode;\n if (initialize.resolveAll) {\n resolveAllConstructs.push(initialize);\n }\n return context;\n\n /** @type {TokenizeContext['write']} */\n function write(slice) {\n chunks = push(chunks, slice);\n main();\n\n // Exit if we’re not done, resolve might change stuff.\n if (chunks[chunks.length - 1] !== null) {\n return [];\n }\n addResult(initialize, 0);\n\n // Otherwise, resolve, and exit.\n context.events = resolveAll(resolveAllConstructs, context.events, context);\n return context.events;\n }\n\n //\n // Tools.\n //\n\n /** @type {TokenizeContext['sliceSerialize']} */\n function sliceSerialize(token, expandTabs) {\n return serializeChunks(sliceStream(token), expandTabs);\n }\n\n /** @type {TokenizeContext['sliceStream']} */\n function sliceStream(token) {\n return sliceChunks(chunks, token);\n }\n\n /** @type {TokenizeContext['now']} */\n function now() {\n // This is a hot path, so we clone manually instead of `Object.assign({}, point)`\n const {\n _bufferIndex,\n _index,\n line,\n column,\n offset\n } = point;\n return {\n _bufferIndex,\n _index,\n line,\n column,\n offset\n };\n }\n\n /** @type {TokenizeContext['defineSkip']} */\n function defineSkip(value) {\n columnStart[value.line] = value.column;\n accountForPotentialSkip();\n }\n\n //\n // State management.\n //\n\n /**\n * Main loop (note that `_index` and `_bufferIndex` in `point` are modified by\n * `consume`).\n * Here is where we walk through the chunks, which either include strings of\n * several characters, or numerical character codes.\n * The reason to do this in a loop instead of a call is so the stack can\n * drain.\n *\n * @returns {undefined}\n * Nothing.\n */\n function main() {\n /** @type {number} */\n let chunkIndex;\n while (point._index < chunks.length) {\n const chunk = chunks[point._index];\n\n // If we’re in a buffer chunk, loop through it.\n if (typeof chunk === 'string') {\n chunkIndex = point._index;\n if (point._bufferIndex < 0) {\n point._bufferIndex = 0;\n }\n while (point._index === chunkIndex && point._bufferIndex < chunk.length) {\n go(chunk.charCodeAt(point._bufferIndex));\n }\n } else {\n go(chunk);\n }\n }\n }\n\n /**\n * Deal with one code.\n *\n * @param {Code} code\n * Code.\n * @returns {undefined}\n * Nothing.\n */\n function go(code) {\n consumed = undefined;\n expectedCode = code;\n state = state(code);\n }\n\n /** @type {Effects['consume']} */\n function consume(code) {\n if (markdownLineEnding(code)) {\n point.line++;\n point.column = 1;\n point.offset += code === -3 ? 2 : 1;\n accountForPotentialSkip();\n } else if (code !== -1) {\n point.column++;\n point.offset++;\n }\n\n // Not in a string chunk.\n if (point._bufferIndex < 0) {\n point._index++;\n } else {\n point._bufferIndex++;\n\n // At end of string chunk.\n if (point._bufferIndex ===\n // Points w/ non-negative `_bufferIndex` reference\n // strings.\n /** @type {string} */\n chunks[point._index].length) {\n point._bufferIndex = -1;\n point._index++;\n }\n }\n\n // Expose the previous character.\n context.previous = code;\n\n // Mark as consumed.\n consumed = true;\n }\n\n /** @type {Effects['enter']} */\n function enter(type, fields) {\n /** @type {Token} */\n // @ts-expect-error Patch instead of assign required fields to help GC.\n const token = fields || {};\n token.type = type;\n token.start = now();\n context.events.push(['enter', token, context]);\n stack.push(token);\n return token;\n }\n\n /** @type {Effects['exit']} */\n function exit(type) {\n const token = stack.pop();\n token.end = now();\n context.events.push(['exit', token, context]);\n return token;\n }\n\n /**\n * Use results.\n *\n * @type {ReturnHandle}\n */\n function onsuccessfulconstruct(construct, info) {\n addResult(construct, info.from);\n }\n\n /**\n * Discard results.\n *\n * @type {ReturnHandle}\n */\n function onsuccessfulcheck(_, info) {\n info.restore();\n }\n\n /**\n * Factory to attempt/check/interrupt.\n *\n * @param {ReturnHandle} onreturn\n * Callback.\n * @param {{interrupt?: boolean | undefined} | undefined} [fields]\n * Fields.\n */\n function constructFactory(onreturn, fields) {\n return hook;\n\n /**\n * Handle either an object mapping codes to constructs, a list of\n * constructs, or a single construct.\n *\n * @param {Array<Construct> | ConstructRecord | Construct} constructs\n * Constructs.\n * @param {State} returnState\n * State.\n * @param {State | undefined} [bogusState]\n * State.\n * @returns {State}\n * State.\n */\n function hook(constructs, returnState, bogusState) {\n /** @type {ReadonlyArray<Construct>} */\n let listOfConstructs;\n /** @type {number} */\n let constructIndex;\n /** @type {Construct} */\n let currentConstruct;\n /** @type {Info} */\n let info;\n return Array.isArray(constructs) ? /* c8 ignore next 1 */\n handleListOfConstructs(constructs) : 'tokenize' in constructs ?\n // Looks like a construct.\n handleListOfConstructs([(/** @type {Construct} */constructs)]) : handleMapOfConstructs(constructs);\n\n /**\n * Handle a list of construct.\n *\n * @param {ConstructRecord} map\n * Constructs.\n * @returns {State}\n * State.\n */\n function handleMapOfConstructs(map) {\n return start;\n\n /** @type {State} */\n function start(code) {\n const left = code !== null && map[code];\n const all = code !== null && map.null;\n const list = [\n // To do: add more extension tests.\n /* c8 ignore next 2 */\n ...(Array.isArray(left) ? left : left ? [left] : []), ...(Array.isArray(all) ? all : all ? [all] : [])];\n return handleListOfConstructs(list)(code);\n }\n }\n\n /**\n * Handle a list of construct.\n *\n * @param {ReadonlyArray<Construct>} list\n * Constructs.\n * @returns {State}\n * State.\n */\n function handleListOfConstructs(list) {\n listOfConstructs = list;\n constructIndex = 0;\n if (list.length === 0) {\n return bogusState;\n }\n return handleConstruct(list[constructIndex]);\n }\n\n /**\n * Handle a single construct.\n *\n * @param {Construct} construct\n * Construct.\n * @returns {State}\n * State.\n */\n function handleConstruct(construct) {\n return start;\n\n /** @type {State} */\n function start(code) {\n // To do: not needed to store if there is no bogus state, probably?\n // Currently doesn’t work because `inspect` in document does a check\n // w/o a bogus, which doesn’t make sense. But it does seem to help perf\n // by not storing.\n info = store();\n currentConstruct = construct;\n if (!construct.partial) {\n context.currentConstruct = construct;\n }\n\n // Always populated by defaults.\n\n if (construct.name && context.parser.constructs.disable.null.includes(construct.name)) {\n return nok(code);\n }\n return construct.tokenize.call(\n // If we do have fields, create an object w/ `context` as its\n // prototype.\n // This allows a “live binding”, which is needed for `interrupt`.\n fields ? Object.assign(Object.create(context), fields) : context, effects, ok, nok)(code);\n }\n }\n\n /** @type {State} */\n function ok(code) {\n consumed = true;\n onreturn(currentConstruct, info);\n return returnState;\n }\n\n /** @type {State} */\n function nok(code) {\n consumed = true;\n info.restore();\n if (++constructIndex < listOfConstructs.length) {\n return handleConstruct(listOfConstructs[constructIndex]);\n }\n return bogusState;\n }\n }\n }\n\n /**\n * @param {Construct} construct\n * Construct.\n * @param {number} from\n * From.\n * @returns {undefined}\n * Nothing.\n */\n function addResult(construct, from) {\n if (construct.resolveAll && !resolveAllConstructs.includes(construct)) {\n resolveAllConstructs.push(construct);\n }\n if (construct.resolve) {\n splice(context.events, from, context.events.length - from, construct.resolve(context.events.slice(from), context));\n }\n if (construct.resolveTo) {\n context.events = construct.resolveTo(context.events, context);\n }\n }\n\n /**\n * Store state.\n *\n * @returns {Info}\n * Info.\n */\n function store() {\n const startPoint = now();\n const startPrevious = context.previous;\n const startCurrentConstruct = context.currentConstruct;\n const startEventsIndex = context.events.length;\n const startStack = Array.from(stack);\n return {\n from: startEventsIndex,\n restore\n };\n\n /**\n * Restore state.\n *\n * @returns {undefined}\n * Nothing.\n */\n function restore() {\n point = startPoint;\n context.previous = startPrevious;\n context.currentConstruct = startCurrentConstruct;\n context.events.length = startEventsIndex;\n stack = startStack;\n accountForPotentialSkip();\n }\n }\n\n /**\n * Move the current point a bit forward in the line when it’s on a column\n * skip.\n *\n * @returns {undefined}\n * Nothing.\n */\n function accountForPotentialSkip() {\n if (point.line in columnStart && point.column < 2) {\n point.column = columnStart[point.line];\n point.offset += columnStart[point.line] - 1;\n }\n }\n}\n\n/**\n * Get the chunks from a slice of chunks in the range of a token.\n *\n * @param {ReadonlyArray<Chunk>} chunks\n * Chunks.\n * @param {Pick<Token, 'end' | 'start'>} token\n * Token.\n * @returns {Array<Chunk>}\n * Chunks.\n */\nfunction sliceChunks(chunks, token) {\n const startIndex = token.start._index;\n const startBufferIndex = token.start._bufferIndex;\n const endIndex = token.end._index;\n const endBufferIndex = token.end._bufferIndex;\n /** @type {Array<Chunk>} */\n let view;\n if (startIndex === endIndex) {\n // @ts-expect-error `_bufferIndex` is used on string chunks.\n view = [chunks[startIndex].slice(startBufferIndex, endBufferIndex)];\n } else {\n view = chunks.slice(startIndex, endIndex);\n if (startBufferIndex > -1) {\n const head = view[0];\n if (typeof head === 'string') {\n view[0] = head.slice(startBufferIndex);\n /* c8 ignore next 4 -- used to be used, no longer */\n } else {\n view.shift();\n }\n }\n if (endBufferIndex > 0) {\n // @ts-expect-error `_bufferIndex` is used on string chunks.\n view.push(chunks[endIndex].slice(0, endBufferIndex));\n }\n }\n return view;\n}\n\n/**\n * Get the string value of a slice of chunks.\n *\n * @param {ReadonlyArray<Chunk>} chunks\n * Chunks.\n * @param {boolean | undefined} [expandTabs=false]\n * Whether to expand tabs (default: `false`).\n * @returns {string}\n * Result.\n */\nfunction serializeChunks(chunks, expandTabs) {\n let index = -1;\n /** @type {Array<string>} */\n const result = [];\n /** @type {boolean | undefined} */\n let atTab;\n while (++index < chunks.length) {\n const chunk = chunks[index];\n /** @type {string} */\n let value;\n if (typeof chunk === 'string') {\n value = chunk;\n } else switch (chunk) {\n case -5:\n {\n value = \"\\r\";\n break;\n }\n case -4:\n {\n value = \"\\n\";\n break;\n }\n case -3:\n {\n value = \"\\r\" + \"\\n\";\n break;\n }\n case -2:\n {\n value = expandTabs ? \" \" : \"\\t\";\n break;\n }\n case -1:\n {\n if (!expandTabs && atTab) continue;\n value = \" \";\n break;\n }\n default:\n {\n // Currently only replacement character.\n value = String.fromCharCode(chunk);\n }\n }\n atTab = chunk === -2;\n result.push(value);\n }\n return result.join('');\n}"],"names":[],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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