merong-docs 0.0.0-stage → 1.0.0
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/OVERVIEW.md +19 -0
- package/OVERVIEW.zh-CN.md +19 -0
- package/README.md +76 -2
- package/README.zh-CN.md +81 -0
- package/assets/cover-en.png +0 -0
- package/assets/documents-en.png +0 -0
- package/assets/icon.png +0 -0
- package/assets/markdown-en.png +0 -0
- package/client/android-file-share.ts +25 -0
- package/client/controls.tsx +163 -0
- package/client/document-panel.tsx +166 -0
- package/client/external-file.tsx +78 -0
- package/client/file-reader.tsx +43 -0
- package/client/markdown-panel.tsx +737 -0
- package/client/markdown-scroll.ts +122 -0
- package/client/messages.ts +224 -0
- package/client/native-contacts.ts +145 -0
- package/client/page-render-queue.ts +12 -0
- package/client/page-selection.tsx +227 -0
- package/client/page-tools.tsx +72 -0
- package/client/pdf-geometry.ts +96 -0
- package/client/pdf-panel.tsx +477 -0
- package/client/reader-find.tsx +190 -0
- package/client/reader-notice.tsx +46 -0
- package/client/settings.tsx +143 -0
- package/client/syntax.tsx +55 -0
- package/client/viewport-geometry.ts +61 -0
- package/client/web.ts +462 -0
- package/client/worksheet-panel.tsx +631 -0
- package/client/zoom-controls.tsx +140 -0
- package/index.client.tsx +36 -0
- package/index.server.ts +73 -0
- package/node_modules/@types/debug/LICENSE +21 -0
- package/node_modules/@types/debug/README.md +69 -0
- package/node_modules/@types/debug/index.d.ts +50 -0
- package/node_modules/@types/debug/package.json +58 -0
- package/node_modules/@types/hast/LICENSE +21 -0
- package/node_modules/@types/hast/README.md +15 -0
- package/node_modules/@types/hast/index.d.ts +924 -0
- package/node_modules/@types/hast/package.json +48 -0
- package/node_modules/@types/ms/LICENSE +21 -0
- package/node_modules/@types/ms/README.md +82 -0
- package/node_modules/@types/ms/index.d.ts +63 -0
- package/node_modules/@types/ms/package.json +26 -0
- package/node_modules/@types/prismjs/LICENSE +21 -0
- package/node_modules/@types/prismjs/README.md +15 -0
- package/node_modules/@types/prismjs/components/index.d.ts +19 -0
- package/node_modules/@types/prismjs/components.d.ts +4 -0
- package/node_modules/@types/prismjs/dependencies.d.ts +35 -0
- package/node_modules/@types/prismjs/index.d.ts +402 -0
- package/node_modules/@types/prismjs/package.json +46 -0
- package/node_modules/@types/unist/LICENSE +21 -0
- package/node_modules/@types/unist/README.md +15 -0
- package/node_modules/@types/unist/index.d.ts +119 -0
- package/node_modules/@types/unist/package.json +60 -0
- package/node_modules/@xmldom/xmldom/CHANGELOG.md +1132 -0
- package/node_modules/@xmldom/xmldom/LICENSE +8 -0
- package/node_modules/@xmldom/xmldom/SECURITY.md +50 -0
- package/node_modules/@xmldom/xmldom/index.d.ts +1843 -0
- package/node_modules/@xmldom/xmldom/lib/.eslintrc.yml +3 -0
- package/node_modules/@xmldom/xmldom/lib/conventions.js +429 -0
- package/node_modules/@xmldom/xmldom/lib/dom-parser.js +591 -0
- package/node_modules/@xmldom/xmldom/lib/dom.js +3759 -0
- package/node_modules/@xmldom/xmldom/lib/entities.js +2171 -0
- package/node_modules/@xmldom/xmldom/lib/errors.js +205 -0
- package/node_modules/@xmldom/xmldom/lib/grammar.js +559 -0
- package/node_modules/@xmldom/xmldom/lib/index.js +41 -0
- package/node_modules/@xmldom/xmldom/lib/sax.js +983 -0
- package/node_modules/@xmldom/xmldom/package.json +77 -0
- package/node_modules/@xmldom/xmldom/readme.md +366 -0
- package/node_modules/argparse/LICENSE +47 -0
- package/node_modules/argparse/README.md +89 -0
- package/node_modules/argparse/lib/_colorize.js +72 -0
- package/node_modules/argparse/lib/argparse.d.ts +292 -0
- package/node_modules/argparse/lib/argparse.js +3820 -0
- package/node_modules/argparse/lib/difflib.js +190 -0
- package/node_modules/argparse/lib/sub.js +67 -0
- package/node_modules/argparse/lib/textwrap.js +451 -0
- package/node_modules/argparse/package.json +38 -0
- package/node_modules/character-entities/index.d.ts +6 -0
- package/node_modules/character-entities/index.js +2132 -0
- package/node_modules/character-entities/license +22 -0
- package/node_modules/character-entities/package.json +78 -0
- package/node_modules/character-entities/readme.md +152 -0
- package/node_modules/character-entities-legacy/index.d.ts +6 -0
- package/node_modules/character-entities-legacy/index.js +113 -0
- package/node_modules/character-entities-legacy/license +22 -0
- package/node_modules/character-entities-legacy/package.json +77 -0
- package/node_modules/character-entities-legacy/readme.md +157 -0
- package/node_modules/character-reference-invalid/index.d.ts +6 -0
- package/node_modules/character-reference-invalid/index.js +35 -0
- package/node_modules/character-reference-invalid/license +22 -0
- package/node_modules/character-reference-invalid/package.json +83 -0
- package/node_modules/character-reference-invalid/readme.md +156 -0
- package/node_modules/comma-separated-tokens/index.d.ts +52 -0
- package/node_modules/comma-separated-tokens/index.js +74 -0
- package/node_modules/comma-separated-tokens/license +22 -0
- package/node_modules/comma-separated-tokens/package.json +72 -0
- package/node_modules/comma-separated-tokens/readme.md +167 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/decode-named-character-reference/index.d.ts +13 -0
- package/node_modules/decode-named-character-reference/index.d.ts.map +1 -0
- package/node_modules/decode-named-character-reference/index.dom.d.ts +6 -0
- package/node_modules/decode-named-character-reference/index.dom.d.ts.map +1 -0
- package/node_modules/decode-named-character-reference/index.dom.js +32 -0
- package/node_modules/decode-named-character-reference/index.js +19 -0
- package/node_modules/decode-named-character-reference/license +22 -0
- package/node_modules/decode-named-character-reference/package.json +90 -0
- package/node_modules/decode-named-character-reference/readme.md +136 -0
- package/node_modules/dequal/dist/index.js +86 -0
- package/node_modules/dequal/dist/index.min.js +1 -0
- package/node_modules/dequal/dist/index.mjs +84 -0
- package/node_modules/dequal/index.d.ts +1 -0
- package/node_modules/dequal/license +21 -0
- package/node_modules/dequal/lite/index.d.ts +1 -0
- package/node_modules/dequal/lite/index.js +31 -0
- package/node_modules/dequal/lite/index.min.js +1 -0
- package/node_modules/dequal/lite/index.mjs +29 -0
- package/node_modules/dequal/package.json +57 -0
- package/node_modules/dequal/readme.md +112 -0
- package/node_modules/devlop/lib/default.js +9 -0
- package/node_modules/devlop/lib/development.d.ts +84 -0
- package/node_modules/devlop/lib/development.js +238 -0
- package/node_modules/devlop/license +22 -0
- package/node_modules/devlop/package.json +80 -0
- package/node_modules/devlop/readme.md +360 -0
- package/node_modules/entities/LICENSE +11 -0
- package/node_modules/entities/dist/decode-codepoint.d.ts +28 -0
- package/node_modules/entities/dist/decode-codepoint.d.ts.map +1 -0
- package/node_modules/entities/dist/decode-codepoint.js +61 -0
- package/node_modules/entities/dist/decode-codepoint.js.map +1 -0
- package/node_modules/entities/dist/decode.d.ts +227 -0
- package/node_modules/entities/dist/decode.d.ts.map +1 -0
- package/node_modules/entities/dist/decode.js +1132 -0
- package/node_modules/entities/dist/decode.js.map +1 -0
- package/node_modules/entities/dist/encode.d.ts +26 -0
- package/node_modules/entities/dist/encode.d.ts.map +1 -0
- package/node_modules/entities/dist/encode.js +295 -0
- package/node_modules/entities/dist/encode.js.map +1 -0
- package/node_modules/entities/dist/escape.d.ts +60 -0
- package/node_modules/entities/dist/escape.d.ts.map +1 -0
- package/node_modules/entities/dist/escape.js +172 -0
- package/node_modules/entities/dist/escape.js.map +1 -0
- package/node_modules/entities/dist/generated/decode-data-html.d.ts +3 -0
- package/node_modules/entities/dist/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/entities/dist/generated/decode-data-html.js +5 -0
- package/node_modules/entities/dist/generated/decode-data-html.js.map +1 -0
- package/node_modules/entities/dist/generated/decode-data-xml.d.ts +3 -0
- package/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/entities/dist/generated/decode-data-xml.js +7 -0
- package/node_modules/entities/dist/generated/decode-data-xml.js.map +1 -0
- package/node_modules/entities/dist/generated/encode-html.d.ts +3 -0
- package/node_modules/entities/dist/generated/encode-html.d.ts.map +1 -0
- package/node_modules/entities/dist/generated/encode-html.js +3 -0
- package/node_modules/entities/dist/generated/encode-html.js.map +1 -0
- package/node_modules/entities/dist/index.d.ts +89 -0
- package/node_modules/entities/dist/index.d.ts.map +1 -0
- package/node_modules/entities/dist/index.js +87 -0
- package/node_modules/entities/dist/index.js.map +1 -0
- package/node_modules/entities/dist/internal/bin-trie-flags.d.ts +48 -0
- package/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +1 -0
- package/node_modules/entities/dist/internal/bin-trie-flags.js +49 -0
- package/node_modules/entities/dist/internal/bin-trie-flags.js.map +1 -0
- package/node_modules/entities/dist/internal/decode-shared.d.ts +38 -0
- package/node_modules/entities/dist/internal/decode-shared.d.ts.map +1 -0
- package/node_modules/entities/dist/internal/decode-shared.js +195 -0
- package/node_modules/entities/dist/internal/decode-shared.js.map +1 -0
- package/node_modules/entities/package.json +83 -0
- package/node_modules/entities/readme.md +131 -0
- package/node_modules/entities/src/decode-codepoint.ts +69 -0
- package/node_modules/entities/src/decode.ts +1368 -0
- package/node_modules/entities/src/encode.ts +337 -0
- package/node_modules/entities/src/escape.ts +187 -0
- package/node_modules/entities/src/generated/decode-data-html.ts +12 -0
- package/node_modules/entities/src/generated/decode-data-xml.ts +7 -0
- package/node_modules/entities/src/generated/encode-html.ts +3 -0
- package/node_modules/entities/src/index.ts +160 -0
- package/node_modules/entities/src/internal/bin-trie-flags.ts +47 -0
- package/node_modules/entities/src/internal/decode-shared.ts +209 -0
- package/node_modules/hast-util-parse-selector/index.d.ts +1 -0
- package/node_modules/hast-util-parse-selector/index.js +1 -0
- package/node_modules/hast-util-parse-selector/lib/index.d.ts +27 -0
- package/node_modules/hast-util-parse-selector/lib/index.js +87 -0
- package/node_modules/hast-util-parse-selector/license +22 -0
- package/node_modules/hast-util-parse-selector/package.json +79 -0
- package/node_modules/hast-util-parse-selector/readme.md +203 -0
- package/node_modules/hastscript/index.d.ts +5 -0
- package/node_modules/hastscript/index.d.ts.map +1 -0
- package/node_modules/hastscript/index.js +7 -0
- package/node_modules/hastscript/lib/automatic-runtime-html.d.ts +34 -0
- package/node_modules/hastscript/lib/automatic-runtime-html.js +9 -0
- package/node_modules/hastscript/lib/automatic-runtime-svg.d.ts +34 -0
- package/node_modules/hastscript/lib/automatic-runtime-svg.js +7 -0
- package/node_modules/hastscript/lib/create-automatic-runtime.d.ts +217 -0
- package/node_modules/hastscript/lib/create-automatic-runtime.d.ts.map +1 -0
- package/node_modules/hastscript/lib/create-automatic-runtime.js +62 -0
- package/node_modules/hastscript/lib/create-h.d.ts +125 -0
- package/node_modules/hastscript/lib/create-h.d.ts.map +1 -0
- package/node_modules/hastscript/lib/create-h.js +376 -0
- package/node_modules/hastscript/lib/index.d.ts +22 -0
- package/node_modules/hastscript/lib/index.d.ts.map +1 -0
- package/node_modules/hastscript/lib/index.js +27 -0
- package/node_modules/hastscript/lib/jsx-automatic.d.ts +43 -0
- package/node_modules/hastscript/lib/jsx-automatic.js +2 -0
- package/node_modules/hastscript/lib/jsx-classic.d.ts +47 -0
- package/node_modules/hastscript/lib/jsx-classic.js +2 -0
- package/node_modules/hastscript/lib/svg-case-sensitive-tag-names.d.ts +7 -0
- package/node_modules/hastscript/lib/svg-case-sensitive-tag-names.d.ts.map +1 -0
- package/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +46 -0
- package/node_modules/hastscript/license +22 -0
- package/node_modules/hastscript/package.json +93 -0
- package/node_modules/hastscript/readme.md +471 -0
- package/node_modules/is-alphabetical/index.d.ts +8 -0
- package/node_modules/is-alphabetical/index.js +16 -0
- package/node_modules/is-alphabetical/license +22 -0
- package/node_modules/is-alphabetical/package.json +73 -0
- package/node_modules/is-alphabetical/readme.md +141 -0
- package/node_modules/is-alphanumerical/index.d.ts +8 -0
- package/node_modules/is-alphanumerical/index.js +13 -0
- package/node_modules/is-alphanumerical/license +22 -0
- package/node_modules/is-alphanumerical/package.json +79 -0
- package/node_modules/is-alphanumerical/readme.md +142 -0
- package/node_modules/is-decimal/index.d.ts +8 -0
- package/node_modules/is-decimal/index.js +13 -0
- package/node_modules/is-decimal/license +22 -0
- package/node_modules/is-decimal/package.json +73 -0
- package/node_modules/is-decimal/readme.md +139 -0
- package/node_modules/is-hexadecimal/index.d.ts +8 -0
- package/node_modules/is-hexadecimal/index.js +17 -0
- package/node_modules/is-hexadecimal/license +22 -0
- package/node_modules/is-hexadecimal/package.json +73 -0
- package/node_modules/is-hexadecimal/readme.md +141 -0
- package/node_modules/linkify-it/LICENSE +22 -0
- package/node_modules/linkify-it/README.md +158 -0
- package/node_modules/linkify-it/build/index.cjs.js +651 -0
- package/node_modules/linkify-it/build/index.cjs.js.map +1 -0
- package/node_modules/linkify-it/build/index.d.ts +236 -0
- package/node_modules/linkify-it/build/index.mjs +538 -0
- package/node_modules/linkify-it/build/index.mjs.map +1 -0
- package/node_modules/linkify-it/package.json +66 -0
- package/node_modules/markdown-it/LICENSE +22 -0
- package/node_modules/markdown-it/README.md +44 -0
- package/node_modules/markdown-it/bin/markdown-it.mjs +107 -0
- package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs +3064 -0
- package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs.map +1 -0
- package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js +14 -0
- package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js.map +1 -0
- package/node_modules/markdown-it/dist/markdown-it.cjs.js +4562 -0
- package/node_modules/markdown-it/dist/markdown-it.cjs.js.map +1 -0
- package/node_modules/markdown-it/dist/markdown-it.d.cts +19 -0
- package/node_modules/markdown-it/dist/markdown-it.d.mts +951 -0
- package/node_modules/markdown-it/dist/markdown-it.mjs +3935 -0
- package/node_modules/markdown-it/dist/markdown-it.mjs.map +1 -0
- package/node_modules/markdown-it/package.json +111 -0
- package/node_modules/mdurl/LICENSE +45 -0
- package/node_modules/mdurl/README.md +102 -0
- package/node_modules/mdurl/build/index.cjs.js +534 -0
- package/node_modules/mdurl/index.mjs +11 -0
- package/node_modules/mdurl/lib/decode.mjs +112 -0
- package/node_modules/mdurl/lib/encode.mjs +89 -0
- package/node_modules/mdurl/lib/format.mjs +21 -0
- package/node_modules/mdurl/lib/index.d.ts +28 -0
- package/node_modules/mdurl/lib/parse.mjs +308 -0
- package/node_modules/mdurl/package.json +43 -0
- package/node_modules/micromark/dev/index.d.ts +82 -0
- package/node_modules/micromark/dev/index.d.ts.map +1 -0
- package/node_modules/micromark/dev/index.js +68 -0
- package/node_modules/micromark/dev/lib/compile.d.ts +16 -0
- package/node_modules/micromark/dev/lib/compile.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/compile.js +1162 -0
- package/node_modules/micromark/dev/lib/constructs.d.ts +73 -0
- package/node_modules/micromark/dev/lib/constructs.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/constructs.js +101 -0
- package/node_modules/micromark/dev/lib/create-tokenizer.d.ts +46 -0
- package/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/create-tokenizer.js +718 -0
- package/node_modules/micromark/dev/lib/initialize/content.d.ts +4 -0
- package/node_modules/micromark/dev/lib/initialize/content.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/initialize/content.js +99 -0
- package/node_modules/micromark/dev/lib/initialize/document.d.ts +10 -0
- package/node_modules/micromark/dev/lib/initialize/document.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/initialize/document.js +449 -0
- package/node_modules/micromark/dev/lib/initialize/flow.d.ts +4 -0
- package/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/initialize/flow.js +86 -0
- package/node_modules/micromark/dev/lib/initialize/text.d.ts +8 -0
- package/node_modules/micromark/dev/lib/initialize/text.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/initialize/text.js +248 -0
- package/node_modules/micromark/dev/lib/parse.d.ts +10 -0
- package/node_modules/micromark/dev/lib/parse.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/parse.js +58 -0
- package/node_modules/micromark/dev/lib/postprocess.d.ts +9 -0
- package/node_modules/micromark/dev/lib/postprocess.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/postprocess.js +19 -0
- package/node_modules/micromark/dev/lib/preprocess.d.ts +13 -0
- package/node_modules/micromark/dev/lib/preprocess.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/preprocess.js +139 -0
- package/node_modules/micromark/dev/stream.d.ts +35 -0
- package/node_modules/micromark/dev/stream.d.ts.map +1 -0
- package/node_modules/micromark/dev/stream.js +270 -0
- package/node_modules/micromark/index.d.ts +82 -0
- package/node_modules/micromark/index.d.ts.map +1 -0
- package/node_modules/micromark/index.js +60 -0
- package/node_modules/micromark/lib/compile.d.ts +16 -0
- package/node_modules/micromark/lib/compile.d.ts.map +1 -0
- package/node_modules/micromark/lib/compile.js +1068 -0
- package/node_modules/micromark/lib/constructs.d.ts +73 -0
- package/node_modules/micromark/lib/constructs.d.ts.map +1 -0
- package/node_modules/micromark/lib/constructs.js +85 -0
- package/node_modules/micromark/lib/create-tokenizer.d.ts +46 -0
- package/node_modules/micromark/lib/create-tokenizer.d.ts.map +1 -0
- package/node_modules/micromark/lib/create-tokenizer.js +613 -0
- package/node_modules/micromark/lib/initialize/content.d.ts +4 -0
- package/node_modules/micromark/lib/initialize/content.d.ts.map +1 -0
- package/node_modules/micromark/lib/initialize/content.js +79 -0
- package/node_modules/micromark/lib/initialize/document.d.ts +10 -0
- package/node_modules/micromark/lib/initialize/document.d.ts.map +1 -0
- package/node_modules/micromark/lib/initialize/document.js +370 -0
- package/node_modules/micromark/lib/initialize/flow.d.ts +4 -0
- package/node_modules/micromark/lib/initialize/flow.d.ts.map +1 -0
- package/node_modules/micromark/lib/initialize/flow.js +58 -0
- package/node_modules/micromark/lib/initialize/text.d.ts +8 -0
- package/node_modules/micromark/lib/initialize/text.d.ts.map +1 -0
- package/node_modules/micromark/lib/initialize/text.js +216 -0
- package/node_modules/micromark/lib/parse.d.ts +10 -0
- package/node_modules/micromark/lib/parse.d.ts.map +1 -0
- package/node_modules/micromark/lib/parse.js +56 -0
- package/node_modules/micromark/lib/postprocess.d.ts +9 -0
- package/node_modules/micromark/lib/postprocess.d.ts.map +1 -0
- package/node_modules/micromark/lib/postprocess.js +18 -0
- package/node_modules/micromark/lib/preprocess.d.ts +13 -0
- package/node_modules/micromark/lib/preprocess.d.ts.map +1 -0
- package/node_modules/micromark/lib/preprocess.js +112 -0
- package/node_modules/micromark/license +22 -0
- package/node_modules/micromark/package.json +87 -0
- package/node_modules/micromark/readme.md +488 -0
- package/node_modules/micromark/stream.d.ts +35 -0
- package/node_modules/micromark/stream.d.ts.map +1 -0
- package/node_modules/micromark/stream.js +256 -0
- package/node_modules/micromark-core-commonmark/dev/index.d.ts +23 -0
- package/node_modules/micromark-core-commonmark/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/index.js +22 -0
- package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/attention.js +294 -0
- package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/autolink.js +269 -0
- package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +62 -0
- package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +162 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +69 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +166 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +472 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +178 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-text.js +257 -0
- package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +7 -0
- package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/content.js +185 -0
- package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/definition.js +295 -0
- package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +65 -0
- package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +229 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +938 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-text.js +783 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-end.js +658 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +119 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +71 -0
- package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +34 -0
- package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/list.js +306 -0
- package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.js +67 -0
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +213 -0
- package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +120 -0
- package/node_modules/micromark-core-commonmark/index.d.ts +23 -0
- package/node_modules/micromark-core-commonmark/index.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/index.js +22 -0
- package/node_modules/micromark-core-commonmark/lib/attention.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/attention.js +231 -0
- package/node_modules/micromark-core-commonmark/lib/autolink.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/autolink.js +233 -0
- package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/blank-line.js +61 -0
- package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/block-quote.js +143 -0
- package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/character-escape.js +64 -0
- package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/character-reference.js +149 -0
- package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/code-fenced.js +422 -0
- package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/code-indented.js +159 -0
- package/node_modules/micromark-core-commonmark/lib/code-text.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/code-text.js +225 -0
- package/node_modules/micromark-core-commonmark/lib/content.d.ts +7 -0
- package/node_modules/micromark-core-commonmark/lib/content.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/content.js +163 -0
- package/node_modules/micromark-core-commonmark/lib/definition.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/definition.js +254 -0
- package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
- package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/heading-atx.js +191 -0
- package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/html-flow.js +827 -0
- package/node_modules/micromark-core-commonmark/lib/html-text.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/html-text.js +678 -0
- package/node_modules/micromark-core-commonmark/lib/label-end.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/label-end.js +561 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-image.js +110 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-link.js +63 -0
- package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/line-ending.js +33 -0
- package/node_modules/micromark-core-commonmark/lib/list.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/list.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/list.js +213 -0
- package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +61 -0
- package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/setext-underline.js +187 -0
- package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/thematic-break.js +102 -0
- package/node_modules/micromark-core-commonmark/license +22 -0
- package/node_modules/micromark-core-commonmark/package.json +62 -0
- package/node_modules/micromark-core-commonmark/readme.md +171 -0
- package/node_modules/micromark-factory-destination/dev/index.d.ts +42 -0
- package/node_modules/micromark-factory-destination/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-destination/dev/index.js +255 -0
- package/node_modules/micromark-factory-destination/index.d.ts +42 -0
- package/node_modules/micromark-factory-destination/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-destination/index.js +206 -0
- package/node_modules/micromark-factory-destination/license +22 -0
- package/node_modules/micromark-factory-destination/package.json +57 -0
- package/node_modules/micromark-factory-destination/readme.md +234 -0
- package/node_modules/micromark-factory-label/dev/index.d.ts +37 -0
- package/node_modules/micromark-factory-label/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-label/dev/index.js +172 -0
- package/node_modules/micromark-factory-label/index.d.ts +37 -0
- package/node_modules/micromark-factory-label/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-label/index.js +148 -0
- package/node_modules/micromark-factory-label/license +22 -0
- package/node_modules/micromark-factory-label/package.json +60 -0
- package/node_modules/micromark-factory-label/readme.md +224 -0
- package/node_modules/micromark-factory-space/dev/index.d.ts +60 -0
- package/node_modules/micromark-factory-space/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-space/dev/index.js +122 -0
- package/node_modules/micromark-factory-space/index.d.ts +60 -0
- package/node_modules/micromark-factory-space/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-space/index.js +116 -0
- package/node_modules/micromark-factory-space/license +22 -0
- package/node_modules/micromark-factory-space/package.json +46 -0
- package/node_modules/micromark-factory-space/readme.md +225 -0
- package/node_modules/micromark-factory-title/dev/index.d.ts +36 -0
- package/node_modules/micromark-factory-title/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-title/dev/index.js +169 -0
- package/node_modules/micromark-factory-title/index.d.ts +36 -0
- package/node_modules/micromark-factory-title/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-title/index.js +158 -0
- package/node_modules/micromark-factory-title/license +22 -0
- package/node_modules/micromark-factory-title/package.json +58 -0
- package/node_modules/micromark-factory-title/readme.md +229 -0
- package/node_modules/micromark-factory-whitespace/dev/index.d.ts +22 -0
- package/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-whitespace/dev/index.js +53 -0
- package/node_modules/micromark-factory-whitespace/index.d.ts +22 -0
- package/node_modules/micromark-factory-whitespace/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-whitespace/index.js +44 -0
- package/node_modules/micromark-factory-whitespace/license +22 -0
- package/node_modules/micromark-factory-whitespace/package.json +57 -0
- package/node_modules/micromark-factory-whitespace/readme.md +205 -0
- package/node_modules/micromark-util-character/dev/index.d.ts +195 -0
- package/node_modules/micromark-util-character/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-character/dev/index.js +252 -0
- package/node_modules/micromark-util-character/index.d.ts +195 -0
- package/node_modules/micromark-util-character/index.d.ts.map +1 -0
- package/node_modules/micromark-util-character/index.js +246 -0
- package/node_modules/micromark-util-character/license +22 -0
- package/node_modules/micromark-util-character/package.json +57 -0
- package/node_modules/micromark-util-character/readme.md +446 -0
- package/node_modules/micromark-util-chunked/dev/index.d.ts +41 -0
- package/node_modules/micromark-util-chunked/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-chunked/dev/index.js +89 -0
- package/node_modules/micromark-util-chunked/index.d.ts +41 -0
- package/node_modules/micromark-util-chunked/index.d.ts.map +1 -0
- package/node_modules/micromark-util-chunked/index.js +81 -0
- package/node_modules/micromark-util-chunked/license +22 -0
- package/node_modules/micromark-util-chunked/package.json +57 -0
- package/node_modules/micromark-util-chunked/readme.md +219 -0
- package/node_modules/micromark-util-classify-character/dev/index.d.ts +18 -0
- package/node_modules/micromark-util-classify-character/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-classify-character/dev/index.js +38 -0
- package/node_modules/micromark-util-classify-character/index.d.ts +18 -0
- package/node_modules/micromark-util-classify-character/index.d.ts.map +1 -0
- package/node_modules/micromark-util-classify-character/index.js +27 -0
- package/node_modules/micromark-util-classify-character/license +22 -0
- package/node_modules/micromark-util-classify-character/package.json +59 -0
- package/node_modules/micromark-util-classify-character/readme.md +205 -0
- package/node_modules/micromark-util-combine-extensions/index.d.ts +22 -0
- package/node_modules/micromark-util-combine-extensions/index.d.ts.map +1 -0
- package/node_modules/micromark-util-combine-extensions/index.js +143 -0
- package/node_modules/micromark-util-combine-extensions/license +22 -0
- package/node_modules/micromark-util-combine-extensions/package.json +52 -0
- package/node_modules/micromark-util-combine-extensions/readme.md +201 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +16 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +42 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +16 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +1 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/index.js +32 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/license +22 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/package.json +59 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/readme.md +184 -0
- package/node_modules/micromark-util-decode-string/dev/index.d.ts +14 -0
- package/node_modules/micromark-util-decode-string/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-decode-string/dev/index.js +53 -0
- package/node_modules/micromark-util-decode-string/index.d.ts +14 -0
- package/node_modules/micromark-util-decode-string/index.d.ts.map +1 -0
- package/node_modules/micromark-util-decode-string/index.js +45 -0
- package/node_modules/micromark-util-decode-string/license +22 -0
- package/node_modules/micromark-util-decode-string/package.json +63 -0
- package/node_modules/micromark-util-decode-string/readme.md +179 -0
- package/node_modules/micromark-util-edit-map/dev/index.d.ts +78 -0
- package/node_modules/micromark-util-edit-map/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-edit-map/dev/index.js +237 -0
- package/node_modules/micromark-util-edit-map/index.d.ts +78 -0
- package/node_modules/micromark-util-edit-map/index.d.ts.map +1 -0
- package/node_modules/micromark-util-edit-map/index.js +225 -0
- package/node_modules/micromark-util-edit-map/license +22 -0
- package/node_modules/micromark-util-edit-map/package.json +48 -0
- package/node_modules/micromark-util-edit-map/readme.md +234 -0
- package/node_modules/micromark-util-encode/index.d.ts +14 -0
- package/node_modules/micromark-util-encode/index.d.ts.map +1 -0
- package/node_modules/micromark-util-encode/index.js +33 -0
- package/node_modules/micromark-util-encode/license +22 -0
- package/node_modules/micromark-util-encode/package.json +47 -0
- package/node_modules/micromark-util-encode/readme.md +176 -0
- package/node_modules/micromark-util-html-tag-name/index.d.ts +30 -0
- package/node_modules/micromark-util-html-tag-name/index.d.ts.map +1 -0
- package/node_modules/micromark-util-html-tag-name/index.js +93 -0
- package/node_modules/micromark-util-html-tag-name/license +22 -0
- package/node_modules/micromark-util-html-tag-name/package.json +47 -0
- package/node_modules/micromark-util-html-tag-name/readme.md +193 -0
- package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +21 -0
- package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-normalize-identifier/dev/index.js +38 -0
- package/node_modules/micromark-util-normalize-identifier/index.d.ts +21 -0
- package/node_modules/micromark-util-normalize-identifier/index.d.ts.map +1 -0
- package/node_modules/micromark-util-normalize-identifier/index.js +33 -0
- package/node_modules/micromark-util-normalize-identifier/license +22 -0
- package/node_modules/micromark-util-normalize-identifier/package.json +58 -0
- package/node_modules/micromark-util-normalize-identifier/readme.md +187 -0
- package/node_modules/micromark-util-resolve-all/index.d.ts +22 -0
- package/node_modules/micromark-util-resolve-all/index.d.ts.map +1 -0
- package/node_modules/micromark-util-resolve-all/index.js +32 -0
- package/node_modules/micromark-util-resolve-all/license +22 -0
- package/node_modules/micromark-util-resolve-all/package.json +48 -0
- package/node_modules/micromark-util-resolve-all/readme.md +238 -0
- package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +36 -0
- package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-sanitize-uri/dev/index.js +124 -0
- package/node_modules/micromark-util-sanitize-uri/index.d.ts +36 -0
- package/node_modules/micromark-util-sanitize-uri/index.d.ts.map +1 -0
- package/node_modules/micromark-util-sanitize-uri/index.js +107 -0
- package/node_modules/micromark-util-sanitize-uri/license +22 -0
- package/node_modules/micromark-util-sanitize-uri/package.json +59 -0
- package/node_modules/micromark-util-sanitize-uri/readme.md +214 -0
- package/node_modules/micromark-util-subtokenize/dev/index.d.ts +12 -0
- package/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-subtokenize/dev/index.js +284 -0
- package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +161 -0
- package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +1 -0
- package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +288 -0
- package/node_modules/micromark-util-subtokenize/index.d.ts +12 -0
- package/node_modules/micromark-util-subtokenize/index.d.ts.map +1 -0
- package/node_modules/micromark-util-subtokenize/index.js +228 -0
- package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +161 -0
- package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +1 -0
- package/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
- package/node_modules/micromark-util-subtokenize/license +22 -0
- package/node_modules/micromark-util-subtokenize/package.json +60 -0
- package/node_modules/micromark-util-subtokenize/readme.md +181 -0
- package/node_modules/micromark-util-symbol/lib/codes.d.ts +139 -0
- package/node_modules/micromark-util-symbol/lib/codes.d.ts.map +1 -0
- package/node_modules/micromark-util-symbol/lib/codes.js +158 -0
- package/node_modules/micromark-util-symbol/lib/constants.d.ts +37 -0
- package/node_modules/micromark-util-symbol/lib/constants.d.ts.map +1 -0
- package/node_modules/micromark-util-symbol/lib/constants.js +44 -0
- package/node_modules/micromark-util-symbol/lib/default.d.ts +5 -0
- package/node_modules/micromark-util-symbol/lib/default.d.ts.map +1 -0
- package/node_modules/micromark-util-symbol/lib/default.js +4 -0
- package/node_modules/micromark-util-symbol/lib/types.d.ts +106 -0
- package/node_modules/micromark-util-symbol/lib/types.d.ts.map +1 -0
- package/node_modules/micromark-util-symbol/lib/types.js +453 -0
- package/node_modules/micromark-util-symbol/lib/values.d.ts +102 -0
- package/node_modules/micromark-util-symbol/lib/values.d.ts.map +1 -0
- package/node_modules/micromark-util-symbol/lib/values.js +109 -0
- package/node_modules/micromark-util-symbol/license +22 -0
- package/node_modules/micromark-util-symbol/package.json +43 -0
- package/node_modules/micromark-util-symbol/readme.md +168 -0
- package/node_modules/micromark-util-types/index.d.ts +1315 -0
- package/node_modules/micromark-util-types/index.js +2 -0
- package/node_modules/micromark-util-types/license +22 -0
- package/node_modules/micromark-util-types/package.json +37 -0
- package/node_modules/micromark-util-types/readme.md +151 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/parse-entities/index.d.ts +126 -0
- package/node_modules/parse-entities/index.js +3 -0
- package/node_modules/parse-entities/lib/index.d.ts +9 -0
- package/node_modules/parse-entities/lib/index.d.ts.map +1 -0
- package/node_modules/parse-entities/lib/index.js +407 -0
- package/node_modules/parse-entities/license +22 -0
- package/node_modules/parse-entities/node_modules/@types/unist/LICENSE +21 -0
- package/node_modules/parse-entities/node_modules/@types/unist/README.md +122 -0
- package/node_modules/parse-entities/node_modules/@types/unist/index.d.ts +103 -0
- package/node_modules/parse-entities/node_modules/@types/unist/package.json +55 -0
- package/node_modules/parse-entities/package.json +91 -0
- package/node_modules/parse-entities/readme.md +266 -0
- package/node_modules/pend/LICENSE +23 -0
- package/node_modules/pend/README.md +41 -0
- package/node_modules/pend/index.js +55 -0
- package/node_modules/pend/package.json +18 -0
- package/node_modules/pend/test.js +137 -0
- package/node_modules/property-information/index.d.ts +121 -0
- package/node_modules/property-information/index.js +17 -0
- package/node_modules/property-information/lib/aria.d.ts +2 -0
- package/node_modules/property-information/lib/aria.d.ts.map +1 -0
- package/node_modules/property-information/lib/aria.js +61 -0
- package/node_modules/property-information/lib/find.d.ts +34 -0
- package/node_modules/property-information/lib/find.d.ts.map +1 -0
- package/node_modules/property-information/lib/find.js +97 -0
- package/node_modules/property-information/lib/hast-to-react.d.ts +13 -0
- package/node_modules/property-information/lib/hast-to-react.d.ts.map +1 -0
- package/node_modules/property-information/lib/hast-to-react.js +30 -0
- package/node_modules/property-information/lib/html.d.ts +2 -0
- package/node_modules/property-information/lib/html.d.ts.map +1 -0
- package/node_modules/property-information/lib/html.js +332 -0
- package/node_modules/property-information/lib/normalize.d.ts +11 -0
- package/node_modules/property-information/lib/normalize.d.ts.map +1 -0
- package/node_modules/property-information/lib/normalize.js +12 -0
- package/node_modules/property-information/lib/svg.d.ts +2 -0
- package/node_modules/property-information/lib/svg.d.ts.map +1 -0
- package/node_modules/property-information/lib/svg.js +569 -0
- package/node_modules/property-information/lib/util/case-insensitive-transform.d.ts +10 -0
- package/node_modules/property-information/lib/util/case-insensitive-transform.d.ts.map +1 -0
- package/node_modules/property-information/lib/util/case-insensitive-transform.js +13 -0
- package/node_modules/property-information/lib/util/case-sensitive-transform.d.ts +10 -0
- package/node_modules/property-information/lib/util/case-sensitive-transform.d.ts.map +1 -0
- package/node_modules/property-information/lib/util/case-sensitive-transform.js +11 -0
- package/node_modules/property-information/lib/util/create.d.ts +39 -0
- package/node_modules/property-information/lib/util/create.d.ts.map +1 -0
- package/node_modules/property-information/lib/util/create.js +69 -0
- package/node_modules/property-information/lib/util/defined-info.d.ts +19 -0
- package/node_modules/property-information/lib/util/defined-info.d.ts.map +1 -0
- package/node_modules/property-information/lib/util/defined-info.js +60 -0
- package/node_modules/property-information/lib/util/info.d.ts +28 -0
- package/node_modules/property-information/lib/util/info.d.ts.map +1 -0
- package/node_modules/property-information/lib/util/info.js +32 -0
- package/node_modules/property-information/lib/util/merge.d.ts +12 -0
- package/node_modules/property-information/lib/util/merge.d.ts.map +1 -0
- package/node_modules/property-information/lib/util/merge.js +27 -0
- package/node_modules/property-information/lib/util/schema.d.ts +23 -0
- package/node_modules/property-information/lib/util/schema.d.ts.map +1 -0
- package/node_modules/property-information/lib/util/schema.js +29 -0
- package/node_modules/property-information/lib/util/types.d.ts +8 -0
- package/node_modules/property-information/lib/util/types.d.ts.map +1 -0
- package/node_modules/property-information/lib/util/types.js +13 -0
- package/node_modules/property-information/lib/xlink.d.ts +2 -0
- package/node_modules/property-information/lib/xlink.d.ts.map +1 -0
- package/node_modules/property-information/lib/xlink.js +17 -0
- package/node_modules/property-information/lib/xml.d.ts +2 -0
- package/node_modules/property-information/lib/xml.d.ts.map +1 -0
- package/node_modules/property-information/lib/xml.js +9 -0
- package/node_modules/property-information/lib/xmlns.d.ts +2 -0
- package/node_modules/property-information/lib/xmlns.d.ts.map +1 -0
- package/node_modules/property-information/lib/xmlns.js +9 -0
- package/node_modules/property-information/license +22 -0
- package/node_modules/property-information/package.json +84 -0
- package/node_modules/property-information/readme.md +1073 -0
- package/node_modules/punycode.js/LICENSE-MIT.txt +20 -0
- package/node_modules/punycode.js/README.md +148 -0
- package/node_modules/punycode.js/package.json +58 -0
- package/node_modules/punycode.js/punycode.es6.js +444 -0
- package/node_modules/punycode.js/punycode.js +443 -0
- package/node_modules/refractor/lang/abap.d.ts +7 -0
- package/node_modules/refractor/lang/abap.js +62 -0
- package/node_modules/refractor/lang/abnf.d.ts +7 -0
- package/node_modules/refractor/lang/abnf.js +66 -0
- package/node_modules/refractor/lang/actionscript.d.ts +7 -0
- package/node_modules/refractor/lang/actionscript.js +32 -0
- package/node_modules/refractor/lang/ada.d.ts +7 -0
- package/node_modules/refractor/lang/ada.js +34 -0
- package/node_modules/refractor/lang/agda.d.ts +7 -0
- package/node_modules/refractor/lang/agda.js +34 -0
- package/node_modules/refractor/lang/al.d.ts +7 -0
- package/node_modules/refractor/lang/al.js +38 -0
- package/node_modules/refractor/lang/antlr4.d.ts +7 -0
- package/node_modules/refractor/lang/antlr4.js +77 -0
- package/node_modules/refractor/lang/apacheconf.d.ts +7 -0
- package/node_modules/refractor/lang/apacheconf.js +59 -0
- package/node_modules/refractor/lang/apex.d.ts +7 -0
- package/node_modules/refractor/lang/apex.js +88 -0
- package/node_modules/refractor/lang/apl.d.ts +7 -0
- package/node_modules/refractor/lang/apl.js +44 -0
- package/node_modules/refractor/lang/applescript.d.ts +7 -0
- package/node_modules/refractor/lang/applescript.js +29 -0
- package/node_modules/refractor/lang/aql.d.ts +7 -0
- package/node_modules/refractor/lang/aql.js +60 -0
- package/node_modules/refractor/lang/arduino.d.ts +7 -0
- package/node_modules/refractor/lang/arduino.js +21 -0
- package/node_modules/refractor/lang/arff.d.ts +7 -0
- package/node_modules/refractor/lang/arff.js +20 -0
- package/node_modules/refractor/lang/armasm.d.ts +7 -0
- package/node_modules/refractor/lang/armasm.js +57 -0
- package/node_modules/refractor/lang/arturo.d.ts +7 -0
- package/node_modules/refractor/lang/arturo.js +102 -0
- package/node_modules/refractor/lang/asciidoc.d.ts +7 -0
- package/node_modules/refractor/lang/asciidoc.js +241 -0
- package/node_modules/refractor/lang/asm6502.d.ts +7 -0
- package/node_modules/refractor/lang/asm6502.js +40 -0
- package/node_modules/refractor/lang/asmatmel.d.ts +7 -0
- package/node_modules/refractor/lang/asmatmel.js +52 -0
- package/node_modules/refractor/lang/aspnet.d.ts +7 -0
- package/node_modules/refractor/lang/aspnet.js +73 -0
- package/node_modules/refractor/lang/autohotkey.d.ts +7 -0
- package/node_modules/refractor/lang/autohotkey.js +55 -0
- package/node_modules/refractor/lang/autoit.d.ts +7 -0
- package/node_modules/refractor/lang/autoit.js +46 -0
- package/node_modules/refractor/lang/avisynth.d.ts +7 -0
- package/node_modules/refractor/lang/avisynth.js +200 -0
- package/node_modules/refractor/lang/avro-idl.d.ts +7 -0
- package/node_modules/refractor/lang/avro-idl.js +57 -0
- package/node_modules/refractor/lang/awk.d.ts +7 -0
- package/node_modules/refractor/lang/awk.js +39 -0
- package/node_modules/refractor/lang/bash.d.ts +7 -0
- package/node_modules/refractor/lang/bash.js +250 -0
- package/node_modules/refractor/lang/basic.d.ts +7 -0
- package/node_modules/refractor/lang/basic.js +29 -0
- package/node_modules/refractor/lang/batch.d.ts +7 -0
- package/node_modules/refractor/lang/batch.js +110 -0
- package/node_modules/refractor/lang/bbcode.d.ts +7 -0
- package/node_modules/refractor/lang/bbcode.js +39 -0
- package/node_modules/refractor/lang/bbj.d.ts +7 -0
- package/node_modules/refractor/lang/bbj.js +30 -0
- package/node_modules/refractor/lang/bicep.d.ts +7 -0
- package/node_modules/refractor/lang/bicep.js +85 -0
- package/node_modules/refractor/lang/birb.d.ts +7 -0
- package/node_modules/refractor/lang/birb.js +34 -0
- package/node_modules/refractor/lang/bison.d.ts +7 -0
- package/node_modules/refractor/lang/bison.js +50 -0
- package/node_modules/refractor/lang/bnf.d.ts +7 -0
- package/node_modules/refractor/lang/bnf.js +30 -0
- package/node_modules/refractor/lang/bqn.d.ts +7 -0
- package/node_modules/refractor/lang/bqn.js +74 -0
- package/node_modules/refractor/lang/brainfuck.d.ts +7 -0
- package/node_modules/refractor/lang/brainfuck.js +30 -0
- package/node_modules/refractor/lang/brightscript.d.ts +7 -0
- package/node_modules/refractor/lang/brightscript.js +57 -0
- package/node_modules/refractor/lang/bro.d.ts +7 -0
- package/node_modules/refractor/lang/bro.js +39 -0
- package/node_modules/refractor/lang/bsl.d.ts +7 -0
- package/node_modules/refractor/lang/bsl.js +88 -0
- package/node_modules/refractor/lang/c.d.ts +7 -0
- package/node_modules/refractor/lang/c.js +94 -0
- package/node_modules/refractor/lang/cfscript.d.ts +7 -0
- package/node_modules/refractor/lang/cfscript.js +58 -0
- package/node_modules/refractor/lang/chaiscript.d.ts +7 -0
- package/node_modules/refractor/lang/chaiscript.js +73 -0
- package/node_modules/refractor/lang/cil.d.ts +7 -0
- package/node_modules/refractor/lang/cil.js +31 -0
- package/node_modules/refractor/lang/cilkc.d.ts +7 -0
- package/node_modules/refractor/lang/cilkc.js +19 -0
- package/node_modules/refractor/lang/cilkcpp.d.ts +7 -0
- package/node_modules/refractor/lang/cilkcpp.js +20 -0
- package/node_modules/refractor/lang/clike.d.ts +7 -0
- package/node_modules/refractor/lang/clike.js +43 -0
- package/node_modules/refractor/lang/clojure.d.ts +7 -0
- package/node_modules/refractor/lang/clojure.js +43 -0
- package/node_modules/refractor/lang/cmake.d.ts +7 -0
- package/node_modules/refractor/lang/cmake.js +44 -0
- package/node_modules/refractor/lang/cobol.d.ts +7 -0
- package/node_modules/refractor/lang/cobol.js +62 -0
- package/node_modules/refractor/lang/coffeescript.d.ts +7 -0
- package/node_modules/refractor/lang/coffeescript.js +97 -0
- package/node_modules/refractor/lang/concurnas.d.ts +7 -0
- package/node_modules/refractor/lang/concurnas.js +74 -0
- package/node_modules/refractor/lang/cooklang.d.ts +7 -0
- package/node_modules/refractor/lang/cooklang.js +148 -0
- package/node_modules/refractor/lang/coq.d.ts +7 -0
- package/node_modules/refractor/lang/coq.js +67 -0
- package/node_modules/refractor/lang/cpp.d.ts +7 -0
- package/node_modules/refractor/lang/cpp.js +128 -0
- package/node_modules/refractor/lang/crystal.d.ts +7 -0
- package/node_modules/refractor/lang/crystal.js +66 -0
- package/node_modules/refractor/lang/csharp.d.ts +7 -0
- package/node_modules/refractor/lang/csharp.js +486 -0
- package/node_modules/refractor/lang/cshtml.d.ts +7 -0
- package/node_modules/refractor/lang/cshtml.js +268 -0
- package/node_modules/refractor/lang/csp.d.ts +7 -0
- package/node_modules/refractor/lang/csp.js +87 -0
- package/node_modules/refractor/lang/css-extras.d.ts +7 -0
- package/node_modules/refractor/lang/css-extras.js +129 -0
- package/node_modules/refractor/lang/css.d.ts +7 -0
- package/node_modules/refractor/lang/css.js +90 -0
- package/node_modules/refractor/lang/csv.d.ts +7 -0
- package/node_modules/refractor/lang/csv.js +16 -0
- package/node_modules/refractor/lang/cue.d.ts +7 -0
- package/node_modules/refractor/lang/cue.js +98 -0
- package/node_modules/refractor/lang/cypher.d.ts +7 -0
- package/node_modules/refractor/lang/cypher.js +44 -0
- package/node_modules/refractor/lang/d.d.ts +7 -0
- package/node_modules/refractor/lang/d.js +98 -0
- package/node_modules/refractor/lang/dart.d.ts +7 -0
- package/node_modules/refractor/lang/dart.js +94 -0
- package/node_modules/refractor/lang/dataweave.d.ts +7 -0
- package/node_modules/refractor/lang/dataweave.js +52 -0
- package/node_modules/refractor/lang/dax.d.ts +7 -0
- package/node_modules/refractor/lang/dax.js +40 -0
- package/node_modules/refractor/lang/dhall.d.ts +7 -0
- package/node_modules/refractor/lang/dhall.js +81 -0
- package/node_modules/refractor/lang/diff.d.ts +7 -0
- package/node_modules/refractor/lang/diff.js +73 -0
- package/node_modules/refractor/lang/django.d.ts +7 -0
- package/node_modules/refractor/lang/django.js +68 -0
- package/node_modules/refractor/lang/dns-zone-file.d.ts +7 -0
- package/node_modules/refractor/lang/dns-zone-file.js +43 -0
- package/node_modules/refractor/lang/docker.d.ts +7 -0
- package/node_modules/refractor/lang/docker.js +129 -0
- package/node_modules/refractor/lang/dot.d.ts +7 -0
- package/node_modules/refractor/lang/dot.js +93 -0
- package/node_modules/refractor/lang/ebnf.d.ts +7 -0
- package/node_modules/refractor/lang/ebnf.js +30 -0
- package/node_modules/refractor/lang/editorconfig.d.ts +7 -0
- package/node_modules/refractor/lang/editorconfig.js +37 -0
- package/node_modules/refractor/lang/eiffel.d.ts +7 -0
- package/node_modules/refractor/lang/eiffel.js +45 -0
- package/node_modules/refractor/lang/ejs.d.ts +7 -0
- package/node_modules/refractor/lang/ejs.js +39 -0
- package/node_modules/refractor/lang/elixir.d.ts +7 -0
- package/node_modules/refractor/lang/elixir.js +111 -0
- package/node_modules/refractor/lang/elm.d.ts +7 -0
- package/node_modules/refractor/lang/elm.js +59 -0
- package/node_modules/refractor/lang/erb.d.ts +7 -0
- package/node_modules/refractor/lang/erb.js +40 -0
- package/node_modules/refractor/lang/erlang.d.ts +7 -0
- package/node_modules/refractor/lang/erlang.js +53 -0
- package/node_modules/refractor/lang/etlua.d.ts +7 -0
- package/node_modules/refractor/lang/etlua.js +37 -0
- package/node_modules/refractor/lang/excel-formula.d.ts +7 -0
- package/node_modules/refractor/lang/excel-formula.js +78 -0
- package/node_modules/refractor/lang/factor.d.ts +7 -0
- package/node_modules/refractor/lang/factor.js +937 -0
- package/node_modules/refractor/lang/false.d.ts +7 -0
- package/node_modules/refractor/lang/false.js +42 -0
- package/node_modules/refractor/lang/firestore-security-rules.d.ts +7 -0
- package/node_modules/refractor/lang/firestore-security-rules.js +50 -0
- package/node_modules/refractor/lang/flow.d.ts +7 -0
- package/node_modules/refractor/lang/flow.js +47 -0
- package/node_modules/refractor/lang/fortran.d.ts +7 -0
- package/node_modules/refractor/lang/fortran.js +51 -0
- package/node_modules/refractor/lang/fsharp.d.ts +7 -0
- package/node_modules/refractor/lang/fsharp.js +91 -0
- package/node_modules/refractor/lang/ftl.d.ts +7 -0
- package/node_modules/refractor/lang/ftl.js +134 -0
- package/node_modules/refractor/lang/gap.d.ts +7 -0
- package/node_modules/refractor/lang/gap.js +61 -0
- package/node_modules/refractor/lang/gcode.d.ts +7 -0
- package/node_modules/refractor/lang/gcode.js +26 -0
- package/node_modules/refractor/lang/gdscript.d.ts +7 -0
- package/node_modules/refractor/lang/gdscript.js +40 -0
- package/node_modules/refractor/lang/gedcom.d.ts +7 -0
- package/node_modules/refractor/lang/gedcom.js +40 -0
- package/node_modules/refractor/lang/gettext.d.ts +7 -0
- package/node_modules/refractor/lang/gettext.js +52 -0
- package/node_modules/refractor/lang/gherkin.d.ts +7 -0
- package/node_modules/refractor/lang/gherkin.js +95 -0
- package/node_modules/refractor/lang/git.d.ts +7 -0
- package/node_modules/refractor/lang/git.js +73 -0
- package/node_modules/refractor/lang/glsl.d.ts +7 -0
- package/node_modules/refractor/lang/glsl.js +16 -0
- package/node_modules/refractor/lang/gml.d.ts +7 -0
- package/node_modules/refractor/lang/gml.js +25 -0
- package/node_modules/refractor/lang/gn.d.ts +7 -0
- package/node_modules/refractor/lang/gn.js +61 -0
- package/node_modules/refractor/lang/go-module.d.ts +7 -0
- package/node_modules/refractor/lang/go-module.js +34 -0
- package/node_modules/refractor/lang/go.d.ts +7 -0
- package/node_modules/refractor/lang/go.js +41 -0
- package/node_modules/refractor/lang/gradle.d.ts +7 -0
- package/node_modules/refractor/lang/gradle.js +71 -0
- package/node_modules/refractor/lang/graphql.d.ts +7 -0
- package/node_modules/refractor/lang/graphql.js +226 -0
- package/node_modules/refractor/lang/groovy.d.ts +7 -0
- package/node_modules/refractor/lang/groovy.js +74 -0
- package/node_modules/refractor/lang/haml.d.ts +7 -0
- package/node_modules/refractor/lang/haml.js +173 -0
- package/node_modules/refractor/lang/handlebars.d.ts +7 -0
- package/node_modules/refractor/lang/handlebars.js +54 -0
- package/node_modules/refractor/lang/haskell.d.ts +7 -0
- package/node_modules/refractor/lang/haskell.js +80 -0
- package/node_modules/refractor/lang/haxe.d.ts +7 -0
- package/node_modules/refractor/lang/haxe.js +89 -0
- package/node_modules/refractor/lang/hcl.d.ts +7 -0
- package/node_modules/refractor/lang/hcl.js +75 -0
- package/node_modules/refractor/lang/hlsl.d.ts +7 -0
- package/node_modules/refractor/lang/hlsl.js +32 -0
- package/node_modules/refractor/lang/hoon.d.ts +7 -0
- package/node_modules/refractor/lang/hoon.js +25 -0
- package/node_modules/refractor/lang/hpkp.d.ts +7 -0
- package/node_modules/refractor/lang/hpkp.js +25 -0
- package/node_modules/refractor/lang/hsts.d.ts +7 -0
- package/node_modules/refractor/lang/hsts.js +24 -0
- package/node_modules/refractor/lang/http.d.ts +7 -0
- package/node_modules/refractor/lang/http.js +164 -0
- package/node_modules/refractor/lang/ichigojam.d.ts +7 -0
- package/node_modules/refractor/lang/ichigojam.js +27 -0
- package/node_modules/refractor/lang/icon.d.ts +7 -0
- package/node_modules/refractor/lang/icon.js +33 -0
- package/node_modules/refractor/lang/icu-message-format.d.ts +7 -0
- package/node_modules/refractor/lang/icu-message-format.js +164 -0
- package/node_modules/refractor/lang/idris.d.ts +7 -0
- package/node_modules/refractor/lang/idris.js +30 -0
- package/node_modules/refractor/lang/iecst.d.ts +7 -0
- package/node_modules/refractor/lang/iecst.js +46 -0
- package/node_modules/refractor/lang/ignore.d.ts +7 -0
- package/node_modules/refractor/lang/ignore.js +31 -0
- package/node_modules/refractor/lang/inform7.d.ts +7 -0
- package/node_modules/refractor/lang/inform7.js +77 -0
- package/node_modules/refractor/lang/ini.d.ts +7 -0
- package/node_modules/refractor/lang/ini.js +52 -0
- package/node_modules/refractor/lang/io.d.ts +7 -0
- package/node_modules/refractor/lang/io.js +35 -0
- package/node_modules/refractor/lang/j.d.ts +7 -0
- package/node_modules/refractor/lang/j.js +41 -0
- package/node_modules/refractor/lang/java.d.ts +7 -0
- package/node_modules/refractor/lang/java.js +163 -0
- package/node_modules/refractor/lang/javadoc.d.ts +7 -0
- package/node_modules/refractor/lang/javadoc.js +108 -0
- package/node_modules/refractor/lang/javadoclike.d.ts +7 -0
- package/node_modules/refractor/lang/javadoclike.js +94 -0
- package/node_modules/refractor/lang/javascript.d.ts +7 -0
- package/node_modules/refractor/lang/javascript.js +195 -0
- package/node_modules/refractor/lang/javastacktrace.d.ts +7 -0
- package/node_modules/refractor/lang/javastacktrace.js +149 -0
- package/node_modules/refractor/lang/jexl.d.ts +7 -0
- package/node_modules/refractor/lang/jexl.js +26 -0
- package/node_modules/refractor/lang/jolie.d.ts +7 -0
- package/node_modules/refractor/lang/jolie.js +58 -0
- package/node_modules/refractor/lang/jq.d.ts +7 -0
- package/node_modules/refractor/lang/jq.js +80 -0
- package/node_modules/refractor/lang/js-extras.d.ts +7 -0
- package/node_modules/refractor/lang/js-extras.js +160 -0
- package/node_modules/refractor/lang/js-templates.d.ts +7 -0
- package/node_modules/refractor/lang/js-templates.js +366 -0
- package/node_modules/refractor/lang/jsdoc.d.ts +7 -0
- package/node_modules/refractor/lang/jsdoc.js +102 -0
- package/node_modules/refractor/lang/json.d.ts +7 -0
- package/node_modules/refractor/lang/json.js +36 -0
- package/node_modules/refractor/lang/json5.d.ts +7 -0
- package/node_modules/refractor/lang/json5.js +34 -0
- package/node_modules/refractor/lang/jsonp.d.ts +7 -0
- package/node_modules/refractor/lang/jsonp.js +18 -0
- package/node_modules/refractor/lang/jsstacktrace.d.ts +7 -0
- package/node_modules/refractor/lang/jsstacktrace.js +53 -0
- package/node_modules/refractor/lang/jsx.d.ts +7 -0
- package/node_modules/refractor/lang/jsx.js +193 -0
- package/node_modules/refractor/lang/julia.d.ts +7 -0
- package/node_modules/refractor/lang/julia.js +50 -0
- package/node_modules/refractor/lang/keepalived.d.ts +7 -0
- package/node_modules/refractor/lang/keepalived.js +63 -0
- package/node_modules/refractor/lang/keyman.d.ts +7 -0
- package/node_modules/refractor/lang/keyman.js +54 -0
- package/node_modules/refractor/lang/kotlin.d.ts +7 -0
- package/node_modules/refractor/lang/kotlin.js +96 -0
- package/node_modules/refractor/lang/kumir.d.ts +7 -0
- package/node_modules/refractor/lang/kumir.js +116 -0
- package/node_modules/refractor/lang/kusto.d.ts +7 -0
- package/node_modules/refractor/lang/kusto.js +54 -0
- package/node_modules/refractor/lang/latex.d.ts +7 -0
- package/node_modules/refractor/lang/latex.js +77 -0
- package/node_modules/refractor/lang/latte.d.ts +7 -0
- package/node_modules/refractor/lang/latte.js +85 -0
- package/node_modules/refractor/lang/less.d.ts +7 -0
- package/node_modules/refractor/lang/less.js +65 -0
- package/node_modules/refractor/lang/lilypond.d.ts +7 -0
- package/node_modules/refractor/lang/lilypond.js +90 -0
- package/node_modules/refractor/lang/linker-script.d.ts +7 -0
- package/node_modules/refractor/lang/linker-script.js +35 -0
- package/node_modules/refractor/lang/liquid.d.ts +7 -0
- package/node_modules/refractor/lang/liquid.js +82 -0
- package/node_modules/refractor/lang/lisp.d.ts +7 -0
- package/node_modules/refractor/lang/lisp.js +223 -0
- package/node_modules/refractor/lang/livescript.d.ts +7 -0
- package/node_modules/refractor/lang/livescript.js +132 -0
- package/node_modules/refractor/lang/llvm.d.ts +7 -0
- package/node_modules/refractor/lang/llvm.js +31 -0
- package/node_modules/refractor/lang/log.d.ts +7 -0
- package/node_modules/refractor/lang/log.js +129 -0
- package/node_modules/refractor/lang/lolcode.d.ts +7 -0
- package/node_modules/refractor/lang/lolcode.js +60 -0
- package/node_modules/refractor/lang/lua.d.ts +7 -0
- package/node_modules/refractor/lang/lua.js +33 -0
- package/node_modules/refractor/lang/magma.d.ts +7 -0
- package/node_modules/refractor/lang/magma.js +43 -0
- package/node_modules/refractor/lang/makefile.d.ts +7 -0
- package/node_modules/refractor/lang/makefile.js +42 -0
- package/node_modules/refractor/lang/markdown.d.ts +7 -0
- package/node_modules/refractor/lang/markdown.js +449 -0
- package/node_modules/refractor/lang/markup-templating.d.ts +7 -0
- package/node_modules/refractor/lang/markup-templating.js +134 -0
- package/node_modules/refractor/lang/markup.d.ts +7 -0
- package/node_modules/refractor/lang/markup.js +202 -0
- package/node_modules/refractor/lang/mata.d.ts +7 -0
- package/node_modules/refractor/lang/mata.js +59 -0
- package/node_modules/refractor/lang/matlab.d.ts +7 -0
- package/node_modules/refractor/lang/matlab.js +24 -0
- package/node_modules/refractor/lang/maxscript.d.ts +7 -0
- package/node_modules/refractor/lang/maxscript.js +98 -0
- package/node_modules/refractor/lang/mel.d.ts +7 -0
- package/node_modules/refractor/lang/mel.js +56 -0
- package/node_modules/refractor/lang/mermaid.d.ts +7 -0
- package/node_modules/refractor/lang/mermaid.js +122 -0
- package/node_modules/refractor/lang/metafont.d.ts +7 -0
- package/node_modules/refractor/lang/metafont.js +102 -0
- package/node_modules/refractor/lang/mizar.d.ts +7 -0
- package/node_modules/refractor/lang/mizar.js +23 -0
- package/node_modules/refractor/lang/mongodb.d.ts +7 -0
- package/node_modules/refractor/lang/mongodb.js +307 -0
- package/node_modules/refractor/lang/monkey.d.ts +7 -0
- package/node_modules/refractor/lang/monkey.js +41 -0
- package/node_modules/refractor/lang/moonscript.d.ts +7 -0
- package/node_modules/refractor/lang/moonscript.js +70 -0
- package/node_modules/refractor/lang/n1ql.d.ts +7 -0
- package/node_modules/refractor/lang/n1ql.js +36 -0
- package/node_modules/refractor/lang/n4js.d.ts +7 -0
- package/node_modules/refractor/lang/n4js.js +25 -0
- package/node_modules/refractor/lang/nand2tetris-hdl.d.ts +7 -0
- package/node_modules/refractor/lang/nand2tetris-hdl.js +19 -0
- package/node_modules/refractor/lang/naniscript.d.ts +7 -0
- package/node_modules/refractor/lang/naniscript.js +176 -0
- package/node_modules/refractor/lang/nasm.d.ts +7 -0
- package/node_modules/refractor/lang/nasm.js +36 -0
- package/node_modules/refractor/lang/neon.d.ts +7 -0
- package/node_modules/refractor/lang/neon.js +54 -0
- package/node_modules/refractor/lang/nevod.d.ts +7 -0
- package/node_modules/refractor/lang/nevod.js +139 -0
- package/node_modules/refractor/lang/nginx.d.ts +7 -0
- package/node_modules/refractor/lang/nginx.js +63 -0
- package/node_modules/refractor/lang/nim.d.ts +7 -0
- package/node_modules/refractor/lang/nim.js +57 -0
- package/node_modules/refractor/lang/nix.d.ts +7 -0
- package/node_modules/refractor/lang/nix.js +48 -0
- package/node_modules/refractor/lang/nsis.d.ts +7 -0
- package/node_modules/refractor/lang/nsis.js +43 -0
- package/node_modules/refractor/lang/objectivec.d.ts +7 -0
- package/node_modules/refractor/lang/objectivec.js +23 -0
- package/node_modules/refractor/lang/ocaml.d.ts +7 -0
- package/node_modules/refractor/lang/ocaml.js +69 -0
- package/node_modules/refractor/lang/odin.d.ts +7 -0
- package/node_modules/refractor/lang/odin.js +98 -0
- package/node_modules/refractor/lang/opencl.d.ts +7 -0
- package/node_modules/refractor/lang/opencl.js +78 -0
- package/node_modules/refractor/lang/openqasm.d.ts +7 -0
- package/node_modules/refractor/lang/openqasm.js +33 -0
- package/node_modules/refractor/lang/oz.d.ts +7 -0
- package/node_modules/refractor/lang/oz.js +41 -0
- package/node_modules/refractor/lang/parigp.d.ts +7 -0
- package/node_modules/refractor/lang/parigp.js +63 -0
- package/node_modules/refractor/lang/parser.d.ts +7 -0
- package/node_modules/refractor/lang/parser.js +88 -0
- package/node_modules/refractor/lang/pascal.d.ts +7 -0
- package/node_modules/refractor/lang/pascal.js +83 -0
- package/node_modules/refractor/lang/pascaligo.d.ts +7 -0
- package/node_modules/refractor/lang/pascaligo.js +97 -0
- package/node_modules/refractor/lang/pcaxis.d.ts +7 -0
- package/node_modules/refractor/lang/pcaxis.js +64 -0
- package/node_modules/refractor/lang/peoplecode.d.ts +7 -0
- package/node_modules/refractor/lang/peoplecode.js +54 -0
- package/node_modules/refractor/lang/perl.d.ts +7 -0
- package/node_modules/refractor/lang/perl.js +160 -0
- package/node_modules/refractor/lang/php-extras.d.ts +7 -0
- package/node_modules/refractor/lang/php-extras.js +27 -0
- package/node_modules/refractor/lang/php.d.ts +7 -0
- package/node_modules/refractor/lang/php.js +361 -0
- package/node_modules/refractor/lang/phpdoc.d.ts +7 -0
- package/node_modules/refractor/lang/phpdoc.js +44 -0
- package/node_modules/refractor/lang/plant-uml.d.ts +7 -0
- package/node_modules/refractor/lang/plant-uml.js +123 -0
- package/node_modules/refractor/lang/plsql.d.ts +7 -0
- package/node_modules/refractor/lang/plsql.js +29 -0
- package/node_modules/refractor/lang/powerquery.d.ts +7 -0
- package/node_modules/refractor/lang/powerquery.js +67 -0
- package/node_modules/refractor/lang/powershell.d.ts +7 -0
- package/node_modules/refractor/lang/powershell.js +68 -0
- package/node_modules/refractor/lang/processing.d.ts +7 -0
- package/node_modules/refractor/lang/processing.js +27 -0
- package/node_modules/refractor/lang/prolog.d.ts +7 -0
- package/node_modules/refractor/lang/prolog.js +29 -0
- package/node_modules/refractor/lang/promql.d.ts +7 -0
- package/node_modules/refractor/lang/promql.js +112 -0
- package/node_modules/refractor/lang/properties.d.ts +7 -0
- package/node_modules/refractor/lang/properties.js +24 -0
- package/node_modules/refractor/lang/protobuf.d.ts +7 -0
- package/node_modules/refractor/lang/protobuf.js +55 -0
- package/node_modules/refractor/lang/psl.d.ts +7 -0
- package/node_modules/refractor/lang/psl.js +49 -0
- package/node_modules/refractor/lang/pug.d.ts +7 -0
- package/node_modules/refractor/lang/pug.js +220 -0
- package/node_modules/refractor/lang/puppet.d.ts +7 -0
- package/node_modules/refractor/lang/puppet.js +155 -0
- package/node_modules/refractor/lang/pure.d.ts +7 -0
- package/node_modules/refractor/lang/pure.js +106 -0
- package/node_modules/refractor/lang/purebasic.d.ts +7 -0
- package/node_modules/refractor/lang/purebasic.js +82 -0
- package/node_modules/refractor/lang/purescript.d.ts +7 -0
- package/node_modules/refractor/lang/purescript.js +42 -0
- package/node_modules/refractor/lang/python.d.ts +7 -0
- package/node_modules/refractor/lang/python.js +80 -0
- package/node_modules/refractor/lang/q.d.ts +7 -0
- package/node_modules/refractor/lang/q.js +64 -0
- package/node_modules/refractor/lang/qml.d.ts +7 -0
- package/node_modules/refractor/lang/qml.js +93 -0
- package/node_modules/refractor/lang/qore.d.ts +7 -0
- package/node_modules/refractor/lang/qore.js +35 -0
- package/node_modules/refractor/lang/qsharp.d.ts +7 -0
- package/node_modules/refractor/lang/qsharp.js +151 -0
- package/node_modules/refractor/lang/r.d.ts +7 -0
- package/node_modules/refractor/lang/r.js +33 -0
- package/node_modules/refractor/lang/racket.d.ts +7 -0
- package/node_modules/refractor/lang/racket.js +28 -0
- package/node_modules/refractor/lang/reason.d.ts +7 -0
- package/node_modules/refractor/lang/reason.js +39 -0
- package/node_modules/refractor/lang/regex.d.ts +7 -0
- package/node_modules/refractor/lang/regex.js +112 -0
- package/node_modules/refractor/lang/rego.d.ts +7 -0
- package/node_modules/refractor/lang/rego.js +39 -0
- package/node_modules/refractor/lang/renpy.d.ts +7 -0
- package/node_modules/refractor/lang/renpy.js +34 -0
- package/node_modules/refractor/lang/rescript.d.ts +7 -0
- package/node_modules/refractor/lang/rescript.js +76 -0
- package/node_modules/refractor/lang/rest.d.ts +7 -0
- package/node_modules/refractor/lang/rest.js +221 -0
- package/node_modules/refractor/lang/rip.d.ts +7 -0
- package/node_modules/refractor/lang/rip.js +41 -0
- package/node_modules/refractor/lang/roboconf.d.ts +7 -0
- package/node_modules/refractor/lang/roboconf.js +38 -0
- package/node_modules/refractor/lang/robotframework.d.ts +7 -0
- package/node_modules/refractor/lang/robotframework.js +111 -0
- package/node_modules/refractor/lang/ruby.d.ts +7 -0
- package/node_modules/refractor/lang/ruby.js +206 -0
- package/node_modules/refractor/lang/rust.d.ts +7 -0
- package/node_modules/refractor/lang/rust.js +134 -0
- package/node_modules/refractor/lang/sas.d.ts +7 -0
- package/node_modules/refractor/lang/sas.js +368 -0
- package/node_modules/refractor/lang/sass.d.ts +7 -0
- package/node_modules/refractor/lang/sass.js +85 -0
- package/node_modules/refractor/lang/scala.d.ts +7 -0
- package/node_modules/refractor/lang/scala.js +64 -0
- package/node_modules/refractor/lang/scheme.d.ts +7 -0
- package/node_modules/refractor/lang/scheme.js +143 -0
- package/node_modules/refractor/lang/scss.d.ts +7 -0
- package/node_modules/refractor/lang/scss.js +90 -0
- package/node_modules/refractor/lang/shell-session.d.ts +7 -0
- package/node_modules/refractor/lang/shell-session.js +82 -0
- package/node_modules/refractor/lang/smali.d.ts +7 -0
- package/node_modules/refractor/lang/smali.js +95 -0
- package/node_modules/refractor/lang/smalltalk.d.ts +7 -0
- package/node_modules/refractor/lang/smalltalk.js +48 -0
- package/node_modules/refractor/lang/smarty.d.ts +7 -0
- package/node_modules/refractor/lang/smarty.js +147 -0
- package/node_modules/refractor/lang/sml.d.ts +7 -0
- package/node_modules/refractor/lang/sml.js +79 -0
- package/node_modules/refractor/lang/solidity.d.ts +7 -0
- package/node_modules/refractor/lang/solidity.js +34 -0
- package/node_modules/refractor/lang/solution-file.d.ts +7 -0
- package/node_modules/refractor/lang/solution-file.js +58 -0
- package/node_modules/refractor/lang/soy.d.ts +7 -0
- package/node_modules/refractor/lang/soy.js +110 -0
- package/node_modules/refractor/lang/sparql.d.ts +7 -0
- package/node_modules/refractor/lang/sparql.js +27 -0
- package/node_modules/refractor/lang/splunk-spl.d.ts +7 -0
- package/node_modules/refractor/lang/splunk-spl.js +35 -0
- package/node_modules/refractor/lang/sqf.d.ts +7 -0
- package/node_modules/refractor/lang/sqf.js +48 -0
- package/node_modules/refractor/lang/sql.d.ts +7 -0
- package/node_modules/refractor/lang/sql.js +46 -0
- package/node_modules/refractor/lang/squirrel.d.ts +7 -0
- package/node_modules/refractor/lang/squirrel.js +56 -0
- package/node_modules/refractor/lang/stan.d.ts +7 -0
- package/node_modules/refractor/lang/stan.js +73 -0
- package/node_modules/refractor/lang/stata.d.ts +7 -0
- package/node_modules/refractor/lang/stata.js +89 -0
- package/node_modules/refractor/lang/stylus.d.ts +7 -0
- package/node_modules/refractor/lang/stylus.js +150 -0
- package/node_modules/refractor/lang/supercollider.d.ts +7 -0
- package/node_modules/refractor/lang/supercollider.js +44 -0
- package/node_modules/refractor/lang/swift.d.ts +7 -0
- package/node_modules/refractor/lang/swift.js +157 -0
- package/node_modules/refractor/lang/systemd.d.ts +7 -0
- package/node_modules/refractor/lang/systemd.js +81 -0
- package/node_modules/refractor/lang/t4-cs.d.ts +7 -0
- package/node_modules/refractor/lang/t4-cs.js +16 -0
- package/node_modules/refractor/lang/t4-templating.d.ts +7 -0
- package/node_modules/refractor/lang/t4-templating.js +56 -0
- package/node_modules/refractor/lang/t4-vb.d.ts +7 -0
- package/node_modules/refractor/lang/t4-vb.js +15 -0
- package/node_modules/refractor/lang/tap.d.ts +7 -0
- package/node_modules/refractor/lang/tap.js +34 -0
- package/node_modules/refractor/lang/tcl.d.ts +7 -0
- package/node_modules/refractor/lang/tcl.js +59 -0
- package/node_modules/refractor/lang/textile.d.ts +7 -0
- package/node_modules/refractor/lang/textile.js +304 -0
- package/node_modules/refractor/lang/toml.d.ts +7 -0
- package/node_modules/refractor/lang/toml.js +70 -0
- package/node_modules/refractor/lang/tremor.d.ts +7 -0
- package/node_modules/refractor/lang/tremor.js +86 -0
- package/node_modules/refractor/lang/tsx.d.ts +7 -0
- package/node_modules/refractor/lang/tsx.js +32 -0
- package/node_modules/refractor/lang/tt2.d.ts +7 -0
- package/node_modules/refractor/lang/tt2.js +65 -0
- package/node_modules/refractor/lang/turtle.d.ts +7 -0
- package/node_modules/refractor/lang/turtle.js +64 -0
- package/node_modules/refractor/lang/twig.d.ts +7 -0
- package/node_modules/refractor/lang/twig.js +52 -0
- package/node_modules/refractor/lang/typescript.d.ts +7 -0
- package/node_modules/refractor/lang/typescript.js +71 -0
- package/node_modules/refractor/lang/typoscript.d.ts +7 -0
- package/node_modules/refractor/lang/typoscript.js +89 -0
- package/node_modules/refractor/lang/unrealscript.d.ts +7 -0
- package/node_modules/refractor/lang/unrealscript.js +53 -0
- package/node_modules/refractor/lang/uorazor.d.ts +7 -0
- package/node_modules/refractor/lang/uorazor.js +63 -0
- package/node_modules/refractor/lang/uri.d.ts +7 -0
- package/node_modules/refractor/lang/uri.js +105 -0
- package/node_modules/refractor/lang/v.d.ts +7 -0
- package/node_modules/refractor/lang/v.js +95 -0
- package/node_modules/refractor/lang/vala.d.ts +7 -0
- package/node_modules/refractor/lang/vala.js +100 -0
- package/node_modules/refractor/lang/vbnet.d.ts +7 -0
- package/node_modules/refractor/lang/vbnet.js +35 -0
- package/node_modules/refractor/lang/velocity.d.ts +7 -0
- package/node_modules/refractor/lang/velocity.js +83 -0
- package/node_modules/refractor/lang/verilog.d.ts +7 -0
- package/node_modules/refractor/lang/verilog.js +38 -0
- package/node_modules/refractor/lang/vhdl.d.ts +7 -0
- package/node_modules/refractor/lang/vhdl.js +38 -0
- package/node_modules/refractor/lang/vim.d.ts +7 -0
- package/node_modules/refractor/lang/vim.js +23 -0
- package/node_modules/refractor/lang/visual-basic.d.ts +7 -0
- package/node_modules/refractor/lang/visual-basic.js +42 -0
- package/node_modules/refractor/lang/warpscript.d.ts +7 -0
- package/node_modules/refractor/lang/warpscript.js +35 -0
- package/node_modules/refractor/lang/wasm.d.ts +7 -0
- package/node_modules/refractor/lang/wasm.js +43 -0
- package/node_modules/refractor/lang/web-idl.d.ts +7 -0
- package/node_modules/refractor/lang/web-idl.js +120 -0
- package/node_modules/refractor/lang/wgsl.d.ts +7 -0
- package/node_modules/refractor/lang/wgsl.js +112 -0
- package/node_modules/refractor/lang/wiki.d.ts +7 -0
- package/node_modules/refractor/lang/wiki.js +90 -0
- package/node_modules/refractor/lang/wolfram.d.ts +7 -0
- package/node_modules/refractor/lang/wolfram.js +42 -0
- package/node_modules/refractor/lang/wren.d.ts +7 -0
- package/node_modules/refractor/lang/wren.js +105 -0
- package/node_modules/refractor/lang/xeora.d.ts +7 -0
- package/node_modules/refractor/lang/xeora.js +131 -0
- package/node_modules/refractor/lang/xml-doc.d.ts +7 -0
- package/node_modules/refractor/lang/xml-doc.js +47 -0
- package/node_modules/refractor/lang/xojo.d.ts +7 -0
- package/node_modules/refractor/lang/xojo.js +30 -0
- package/node_modules/refractor/lang/xquery.d.ts +7 -0
- package/node_modules/refractor/lang/xquery.js +205 -0
- package/node_modules/refractor/lang/yaml.d.ts +7 -0
- package/node_modules/refractor/lang/yaml.js +129 -0
- package/node_modules/refractor/lang/yang.d.ts +7 -0
- package/node_modules/refractor/lang/yang.js +30 -0
- package/node_modules/refractor/lang/zig.d.ts +7 -0
- package/node_modules/refractor/lang/zig.js +131 -0
- package/node_modules/refractor/lib/all.d.ts +3 -0
- package/node_modules/refractor/lib/all.d.ts.map +1 -0
- package/node_modules/refractor/lib/all.js +602 -0
- package/node_modules/refractor/lib/common.d.ts +3 -0
- package/node_modules/refractor/lib/common.d.ts.map +1 -0
- package/node_modules/refractor/lib/common.js +80 -0
- package/node_modules/refractor/lib/core.d.ts +125 -0
- package/node_modules/refractor/lib/core.d.ts.map +1 -0
- package/node_modules/refractor/lib/core.js +316 -0
- package/node_modules/refractor/lib/prism-core.d.ts +113 -0
- package/node_modules/refractor/lib/prism-core.d.ts.map +1 -0
- package/node_modules/refractor/lib/prism-core.js +768 -0
- package/node_modules/refractor/license +23 -0
- package/node_modules/refractor/package.json +140 -0
- package/node_modules/refractor/readme.md +828 -0
- package/node_modules/space-separated-tokens/index.d.ts +18 -0
- package/node_modules/space-separated-tokens/index.js +24 -0
- package/node_modules/space-separated-tokens/license +22 -0
- package/node_modules/space-separated-tokens/package.json +67 -0
- package/node_modules/space-separated-tokens/readme.md +156 -0
- package/node_modules/uc.micro/LICENSE.txt +20 -0
- package/node_modules/uc.micro/README.md +31 -0
- package/node_modules/uc.micro/build/index.cjs.js +15 -0
- package/node_modules/uc.micro/build/index.d.ts +6 -0
- package/node_modules/uc.micro/build/index.mjs +8 -0
- package/node_modules/uc.micro/package.json +32 -0
- package/node_modules/yaml/LICENSE +13 -0
- package/node_modules/yaml/README.md +172 -0
- package/node_modules/yaml/bin.mjs +11 -0
- package/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
- package/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/node_modules/yaml/browser/dist/compose/composer.js +219 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +226 -0
- package/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
- package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
- package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
- package/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/node_modules/yaml/browser/dist/errors.js +57 -0
- package/node_modules/yaml/browser/dist/index.js +17 -0
- package/node_modules/yaml/browser/dist/log.js +11 -0
- package/node_modules/yaml/browser/dist/nodes/Alias.js +118 -0
- package/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
- package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/node_modules/yaml/browser/dist/parse/parser.js +975 -0
- package/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/node_modules/yaml/browser/dist/schema/tags.js +96 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/node_modules/yaml/browser/dist/util.js +11 -0
- package/node_modules/yaml/browser/dist/visit.js +233 -0
- package/node_modules/yaml/browser/index.js +5 -0
- package/node_modules/yaml/browser/package.json +3 -0
- package/node_modules/yaml/dist/cli.d.ts +8 -0
- package/node_modules/yaml/dist/cli.mjs +201 -0
- package/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
- package/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
- package/node_modules/yaml/dist/compose/compose-node.js +112 -0
- package/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/node_modules/yaml/dist/compose/composer.d.ts +63 -0
- package/node_modules/yaml/dist/compose/composer.js +224 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +228 -0
- package/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
- package/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/node_modules/yaml/dist/doc/Document.js +337 -0
- package/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/node_modules/yaml/dist/doc/directives.js +178 -0
- package/node_modules/yaml/dist/errors.d.ts +21 -0
- package/node_modules/yaml/dist/errors.js +62 -0
- package/node_modules/yaml/dist/index.d.ts +25 -0
- package/node_modules/yaml/dist/index.js +50 -0
- package/node_modules/yaml/dist/log.d.ts +3 -0
- package/node_modules/yaml/dist/log.js +19 -0
- package/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/Alias.js +120 -0
- package/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
- package/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
- package/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/node_modules/yaml/dist/options.d.ts +350 -0
- package/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/node_modules/yaml/dist/parse/cst.d.ts +109 -0
- package/node_modules/yaml/dist/parse/cst.js +112 -0
- package/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/node_modules/yaml/dist/parse/lexer.js +723 -0
- package/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/node_modules/yaml/dist/parse/parser.js +980 -0
- package/node_modules/yaml/dist/public-api.d.ts +44 -0
- package/node_modules/yaml/dist/public-api.js +107 -0
- package/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
- package/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/node_modules/yaml/dist/schema/tags.d.ts +48 -0
- package/node_modules/yaml/dist/schema/tags.js +99 -0
- package/node_modules/yaml/dist/schema/types.d.ts +92 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/node_modules/yaml/dist/stringify/stringify.js +132 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/node_modules/yaml/dist/test-events.js +134 -0
- package/node_modules/yaml/dist/util.d.ts +16 -0
- package/node_modules/yaml/dist/util.js +28 -0
- package/node_modules/yaml/dist/visit.d.ts +102 -0
- package/node_modules/yaml/dist/visit.js +236 -0
- package/node_modules/yaml/package.json +97 -0
- package/node_modules/yaml/util.js +2 -0
- package/node_modules/yauzl/LICENSE +21 -0
- package/node_modules/yauzl/README.md +1015 -0
- package/node_modules/yauzl/crc32.js +45 -0
- package/node_modules/yauzl/fd-slicer.js +188 -0
- package/node_modules/yauzl/index.js +1096 -0
- package/node_modules/yauzl/package.json +40 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +218 -0
- package/node_modules/zod/compile.cjs +96 -0
- package/node_modules/zod/compile.d.cts +1 -0
- package/node_modules/zod/compile.d.ts +1 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +52 -0
- package/node_modules/zod/index.d.cts +3 -0
- package/node_modules/zod/index.d.ts +3 -0
- package/node_modules/zod/index.js +7 -0
- package/node_modules/zod/locales/index.cjs +36 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +51 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +147 -0
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +7 -0
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +340 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +586 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +431 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +922 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/zod/src/v4/classic/checks.ts +33 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +78 -0
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +97 -0
- package/node_modules/zod/src/v4/classic/external.ts +57 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
- package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +20 -0
- package/node_modules/zod/src/v4/classic/parse.ts +88 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +291 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +349 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +196 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1875 -0
- package/node_modules/zod/src/v4/core/checks.ts +1266 -0
- package/node_modules/zod/src/v4/core/compile.ts +2322 -0
- package/node_modules/zod/src/v4/core/core.ts +230 -0
- package/node_modules/zod/src/v4/core/doc.ts +52 -0
- package/node_modules/zod/src/v4/core/errors.ts +543 -0
- package/node_modules/zod/src/v4/core/index.ts +19 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
- package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/node_modules/zod/src/v4/core/parse.ts +309 -0
- package/node_modules/zod/src/v4/core/regexes.ts +217 -0
- package/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/zod/src/v4/core/schemas.ts +5226 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
- package/node_modules/zod/src/v4/core/util.ts +1293 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +120 -0
- package/node_modules/zod/src/v4/locales/az.ts +116 -0
- package/node_modules/zod/src/v4/locales/be.ts +188 -0
- package/node_modules/zod/src/v4/locales/bg.ts +133 -0
- package/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/node_modules/zod/src/v4/locales/ca.ts +121 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/node_modules/zod/src/v4/locales/cs.ts +123 -0
- package/node_modules/zod/src/v4/locales/da.ts +128 -0
- package/node_modules/zod/src/v4/locales/de.ts +121 -0
- package/node_modules/zod/src/v4/locales/el.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +136 -0
- package/node_modules/zod/src/v4/locales/eo.ts +123 -0
- package/node_modules/zod/src/v4/locales/es.ts +145 -0
- package/node_modules/zod/src/v4/locales/fa.ts +131 -0
- package/node_modules/zod/src/v4/locales/fi.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
- package/node_modules/zod/src/v4/locales/fr.ts +139 -0
- package/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/node_modules/zod/src/v4/locales/he.ts +253 -0
- package/node_modules/zod/src/v4/locales/hi.ts +126 -0
- package/node_modules/zod/src/v4/locales/hr.ts +135 -0
- package/node_modules/zod/src/v4/locales/hu.ts +122 -0
- package/node_modules/zod/src/v4/locales/hy.ts +175 -0
- package/node_modules/zod/src/v4/locales/id.ts +120 -0
- package/node_modules/zod/src/v4/locales/index.ts +63 -0
- package/node_modules/zod/src/v4/locales/is.ts +124 -0
- package/node_modules/zod/src/v4/locales/it.ts +121 -0
- package/node_modules/zod/src/v4/locales/ja.ts +119 -0
- package/node_modules/zod/src/v4/locales/ka.ts +128 -0
- package/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/zod/src/v4/locales/km.ts +124 -0
- package/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +126 -0
- package/node_modules/zod/src/v4/locales/lt.ts +243 -0
- package/node_modules/zod/src/v4/locales/mk.ts +123 -0
- package/node_modules/zod/src/v4/locales/ms.ts +120 -0
- package/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +121 -0
- package/node_modules/zod/src/v4/locales/ota.ts +122 -0
- package/node_modules/zod/src/v4/locales/pl.ts +123 -0
- package/node_modules/zod/src/v4/locales/ps.ts +131 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/node_modules/zod/src/v4/locales/pt.ts +159 -0
- package/node_modules/zod/src/v4/locales/ro.ts +132 -0
- package/node_modules/zod/src/v4/locales/ru.ts +188 -0
- package/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/node_modules/zod/src/v4/locales/sl.ts +123 -0
- package/node_modules/zod/src/v4/locales/sv.ts +124 -0
- package/node_modules/zod/src/v4/locales/ta.ts +123 -0
- package/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/node_modules/zod/src/v4/locales/th.ts +124 -0
- package/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/node_modules/zod/src/v4/locales/tr.ts +116 -0
- package/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/zod/src/v4/locales/uk.ts +122 -0
- package/node_modules/zod/src/v4/locales/ur.ts +124 -0
- package/node_modules/zod/src/v4/locales/uz.ts +120 -0
- package/node_modules/zod/src/v4/locales/vi.ts +122 -0
- package/node_modules/zod/src/v4/locales/yo.ts +129 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
- package/node_modules/zod/src/v4/mini/checks.ts +33 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +52 -0
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/zod/src/v4/mini/parse.ts +16 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
- package/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/zod/v3/ZodError.cjs +167 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +143 -0
- package/node_modules/zod/v3/errors.cjs +36 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +41 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +156 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +52 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +21 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3798 -0
- package/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/zod/v3/types.js +3697 -0
- package/node_modules/zod/v4/classic/checks.cjs +53 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +66 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +80 -0
- package/node_modules/zod/v4/classic/compat.d.cts +48 -0
- package/node_modules/zod/v4/classic/compat.d.ts +48 -0
- package/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +102 -0
- package/node_modules/zod/v4/classic/errors.d.cts +29 -0
- package/node_modules/zod/v4/classic/errors.d.ts +29 -0
- package/node_modules/zod/v4/classic/errors.js +57 -0
- package/node_modules/zod/v4/classic/external.cjs +97 -0
- package/node_modules/zod/v4/classic/external.d.cts +19 -0
- package/node_modules/zod/v4/classic/external.d.ts +19 -0
- package/node_modules/zod/v4/classic/external.js +17 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
- package/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +52 -0
- package/node_modules/zod/v4/classic/index.d.cts +3 -0
- package/node_modules/zod/v4/classic/index.d.ts +3 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +68 -0
- package/node_modules/zod/v4/classic/iso.d.cts +7 -0
- package/node_modules/zod/v4/classic/iso.d.ts +7 -0
- package/node_modules/zod/v4/classic/iso.js +15 -0
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +63 -0
- package/node_modules/zod/v4/classic/parse.d.cts +44 -0
- package/node_modules/zod/v4/classic/parse.d.ts +44 -0
- package/node_modules/zod/v4/classic/parse.js +16 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +816 -0
- package/node_modules/zod/v4/classic/schemas.js +1535 -0
- package/node_modules/zod/v4/core/api.cjs +1269 -0
- package/node_modules/zod/v4/core/api.d.cts +335 -0
- package/node_modules/zod/v4/core/api.d.ts +335 -0
- package/node_modules/zod/v4/core/api.js +1107 -0
- package/node_modules/zod/v4/core/checks.cjs +561 -0
- package/node_modules/zod/v4/core/checks.d.cts +294 -0
- package/node_modules/zod/v4/core/checks.d.ts +294 -0
- package/node_modules/zod/v4/core/checks.js +516 -0
- package/node_modules/zod/v4/core/compile.cjs +1916 -0
- package/node_modules/zod/v4/core/compile.d.cts +65 -0
- package/node_modules/zod/v4/core/compile.d.ts +65 -0
- package/node_modules/zod/v4/core/compile.js +1866 -0
- package/node_modules/zod/v4/core/core.cjs +167 -0
- package/node_modules/zod/v4/core/core.d.cts +82 -0
- package/node_modules/zod/v4/core/core.d.ts +82 -0
- package/node_modules/zod/v4/core/core.js +141 -0
- package/node_modules/zod/v4/core/doc.cjs +61 -0
- package/node_modules/zod/v4/core/doc.d.cts +16 -0
- package/node_modules/zod/v4/core/doc.d.ts +16 -0
- package/node_modules/zod/v4/core/doc.js +38 -0
- package/node_modules/zod/v4/core/errors.cjs +317 -0
- package/node_modules/zod/v4/core/errors.d.cts +225 -0
- package/node_modules/zod/v4/core/errors.d.ts +225 -0
- package/node_modules/zod/v4/core/errors.js +267 -0
- package/node_modules/zod/v4/core/index.cjs +70 -0
- package/node_modules/zod/v4/core/index.d.cts +19 -0
- package/node_modules/zod/v4/core/index.d.ts +19 -0
- package/node_modules/zod/v4/core/index.js +19 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
- package/node_modules/zod/v4/core/json-schema.cjs +21 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/memoizer.cjs +360 -0
- package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/node_modules/zod/v4/core/memoizer.js +311 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +233 -0
- package/node_modules/zod/v4/core/parse.d.cts +52 -0
- package/node_modules/zod/v4/core/parse.d.ts +52 -0
- package/node_modules/zod/v4/core/parse.js +175 -0
- package/node_modules/zod/v4/core/regexes.cjs +209 -0
- package/node_modules/zod/v4/core/regexes.d.cts +90 -0
- package/node_modules/zod/v4/core/regexes.d.ts +90 -0
- package/node_modules/zod/v4/core/regexes.js +156 -0
- package/node_modules/zod/v4/core/registries.cjs +75 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +2699 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1275 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1275 -0
- package/node_modules/zod/v4/core/schemas.js +2636 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
- package/node_modules/zod/v4/core/to-json-schema.js +651 -0
- package/node_modules/zod/v4/core/util.cjs +964 -0
- package/node_modules/zod/v4/core/util.d.cts +280 -0
- package/node_modules/zod/v4/core/util.d.ts +280 -0
- package/node_modules/zod/v4/core/util.js +873 -0
- package/node_modules/zod/v4/core/versions.cjs +27 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/core/visit.cjs +214 -0
- package/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +51 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +4 -0
- package/node_modules/zod/v4/locales/ar.cjs +138 -0
- package/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +111 -0
- package/node_modules/zod/v4/locales/az.cjs +137 -0
- package/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +110 -0
- package/node_modules/zod/v4/locales/be.cjs +195 -0
- package/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +168 -0
- package/node_modules/zod/v4/locales/bg.cjs +152 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +125 -0
- package/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/node_modules/zod/v4/locales/bn.js +113 -0
- package/node_modules/zod/v4/locales/ca.cjs +139 -0
- package/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +112 -0
- package/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/node_modules/zod/v4/locales/ckb.js +133 -0
- package/node_modules/zod/v4/locales/cs.cjs +143 -0
- package/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +116 -0
- package/node_modules/zod/v4/locales/da.cjs +147 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +120 -0
- package/node_modules/zod/v4/locales/de.cjs +140 -0
- package/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +113 -0
- package/node_modules/zod/v4/locales/el.cjs +139 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +112 -0
- package/node_modules/zod/v4/locales/en.cjs +152 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/zod/v4/locales/en.js +125 -0
- package/node_modules/zod/v4/locales/eo.cjs +141 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/zod/v4/locales/eo.js +114 -0
- package/node_modules/zod/v4/locales/es.cjs +163 -0
- package/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +136 -0
- package/node_modules/zod/v4/locales/fa.cjs +146 -0
- package/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +119 -0
- package/node_modules/zod/v4/locales/fi.cjs +144 -0
- package/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +117 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +112 -0
- package/node_modules/zod/v4/locales/fr.cjs +156 -0
- package/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +129 -0
- package/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/node_modules/zod/v4/locales/gu.js +113 -0
- package/node_modules/zod/v4/locales/he.cjs +248 -0
- package/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +221 -0
- package/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/node_modules/zod/v4/locales/hi.js +111 -0
- package/node_modules/zod/v4/locales/hr.cjs +153 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +126 -0
- package/node_modules/zod/v4/locales/hu.cjs +140 -0
- package/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +113 -0
- package/node_modules/zod/v4/locales/hy.cjs +185 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +158 -0
- package/node_modules/zod/v4/locales/id.cjs +138 -0
- package/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +111 -0
- package/node_modules/zod/v4/locales/index.cjs +152 -0
- package/node_modules/zod/v4/locales/index.d.cts +63 -0
- package/node_modules/zod/v4/locales/index.d.ts +63 -0
- package/node_modules/zod/v4/locales/index.js +63 -0
- package/node_modules/zod/v4/locales/is.cjs +141 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +114 -0
- package/node_modules/zod/v4/locales/it.cjs +140 -0
- package/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +113 -0
- package/node_modules/zod/v4/locales/ja.cjs +139 -0
- package/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +112 -0
- package/node_modules/zod/v4/locales/ka.cjs +144 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +117 -0
- package/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +142 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +115 -0
- package/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/node_modules/zod/v4/locales/kn.js +116 -0
- package/node_modules/zod/v4/locales/ko.cjs +143 -0
- package/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +116 -0
- package/node_modules/zod/v4/locales/lt.cjs +234 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +207 -0
- package/node_modules/zod/v4/locales/mk.cjs +141 -0
- package/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +114 -0
- package/node_modules/zod/v4/locales/ms.cjs +139 -0
- package/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +112 -0
- package/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/node_modules/zod/v4/locales/ne.js +111 -0
- package/node_modules/zod/v4/locales/nl.cjs +142 -0
- package/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +115 -0
- package/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/node_modules/zod/v4/locales/nn.js +113 -0
- package/node_modules/zod/v4/locales/no.cjs +140 -0
- package/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +113 -0
- package/node_modules/zod/v4/locales/ota.cjs +141 -0
- package/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +114 -0
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +141 -0
- package/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +114 -0
- package/node_modules/zod/v4/locales/ps.cjs +146 -0
- package/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +119 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/node_modules/zod/v4/locales/pt.cjs +169 -0
- package/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +142 -0
- package/node_modules/zod/v4/locales/ro.cjs +149 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +122 -0
- package/node_modules/zod/v4/locales/ru.cjs +195 -0
- package/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +168 -0
- package/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/node_modules/zod/v4/locales/sk.js +116 -0
- package/node_modules/zod/v4/locales/sl.cjs +141 -0
- package/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +114 -0
- package/node_modules/zod/v4/locales/sv.cjs +142 -0
- package/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +115 -0
- package/node_modules/zod/v4/locales/ta.cjs +142 -0
- package/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +115 -0
- package/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/zod/v4/locales/tg.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +142 -0
- package/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +115 -0
- package/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/node_modules/zod/v4/locales/tk.js +107 -0
- package/node_modules/zod/v4/locales/tr.cjs +137 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/zod/v4/locales/tr.js +110 -0
- package/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +140 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +113 -0
- package/node_modules/zod/v4/locales/ur.cjs +142 -0
- package/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +115 -0
- package/node_modules/zod/v4/locales/uz.cjs +140 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +113 -0
- package/node_modules/zod/v4/locales/vi.cjs +140 -0
- package/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +113 -0
- package/node_modules/zod/v4/locales/yo.cjs +139 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +112 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +114 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +112 -0
- package/node_modules/zod/v4/mini/checks.cjs +54 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +71 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +95 -0
- package/node_modules/zod/v4/mini/external.d.cts +16 -0
- package/node_modules/zod/v4/mini/external.d.ts +16 -0
- package/node_modules/zod/v4/mini/external.js +16 -0
- package/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/index.cjs +51 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +83 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +37 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +1147 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +480 -0
- package/node_modules/zod/v4/mini/schemas.js +1002 -0
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +51 -0
- package/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/npm-shrinkwrap.json +972 -0
- package/package.json +51 -4
- package/paseo-plugin.json +21 -0
- package/scripts/prepare-office.mjs +20 -0
- package/server/engine.ts +89 -0
- package/server/external-file.ts +42 -0
- package/server/generated/NotoSansSC-OFL.txt +195 -0
- package/server/generated/NotoSansSC-Regular.otf +0 -0
- package/server/generated/document-worker.ts +1 -0
- package/server/generated/jpeg-encoder-LICENSE-APACHE.txt +201 -0
- package/server/generated/jpeg-encoder-LICENSE-IJG.txt +69 -0
- package/server/generated/jpeg-encoder-LICENSE-MIT.txt +25 -0
- package/server/generated/markdown-rs-LICENSE.txt +22 -0
- package/server/generated/rust-reader.cjs +273 -0
- package/server/generated/rust-reader_bg.wasm +0 -0
- package/server/markdown-index.ts +305 -0
- package/server/markdown-links.ts +51 -0
- package/server/markdown-page.ts +120 -0
- package/server/office-fonts.cjs +824 -0
- package/server/office-location.ts +41 -0
- package/server/office-preview.ts +186 -0
- package/server/office-worker.cjs +49 -0
- package/server/office-xml.ts +79 -0
- package/server/pdf-engine.ts +168 -0
- package/server/pdf-text-geometry.ts +60 -0
- package/server/rust-reader.ts +40 -0
- package/server/structured-document.ts +69 -0
- package/server/text-search.ts +15 -0
- package/server/worker-entry.ts +42 -0
- package/server/worker-protocol.ts +38 -0
- package/server/worksheet.ts +67 -0
- package/server/workspace-file.ts +63 -0
- package/shared/contracts.ts +187 -0
- package/shared/file-limits.ts +5 -0
- package/shared/markdown-constants.ts +4 -0
- package/shared/markdown-math.ts +198 -0
- package/shared/markdown-references.ts +83 -0
- package/shared/markdown-source-location.ts +8 -0
- package/shared/reader-settings.ts +15 -0
- package/shared/reader-shortcuts.ts +132 -0
- package/vendor/office2pdf/DrawingML-LICENSE.txt +202 -0
- package/vendor/office2pdf/LICENSE +190 -0
- package/vendor/office2pdf/OFL-1.1.txt +92 -0
- package/vendor/office2pdf/Selawik-LICENSE.txt +91 -0
- package/vendor/office2pdf/office2pdf.cjs +826 -0
- package/vendor/office2pdf/office2pdf_bg.wasm +4 -0
|
@@ -0,0 +1,4562 @@
|
|
|
1
|
+
/*! markdown-it 15.0.3 https://github.com/markdown-it/markdown-it @license MIT */
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __exportAll = (all, no_symbols) => {
|
|
10
|
+
let target = {};
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
15
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
20
|
+
key = keys[i];
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
22
|
+
get: ((k) => from[k]).bind(null, key),
|
|
23
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
29
|
+
value: mod,
|
|
30
|
+
enumerable: true
|
|
31
|
+
}) : target, mod));
|
|
32
|
+
//#endregion
|
|
33
|
+
let mdurl = require("mdurl");
|
|
34
|
+
mdurl = __toESM(mdurl, 1);
|
|
35
|
+
let uc_micro = require("uc.micro");
|
|
36
|
+
uc_micro = __toESM(uc_micro, 1);
|
|
37
|
+
let linkify_it = require("linkify-it");
|
|
38
|
+
let punycode_js = require("punycode.js");
|
|
39
|
+
punycode_js = __toESM(punycode_js, 1);
|
|
40
|
+
//#region node_modules/entities/dist/decode-codepoint.js
|
|
41
|
+
/**
|
|
42
|
+
* C1 Unicode control character reference replacements (code points 128–159).
|
|
43
|
+
* Index i gives the replacement for code point 128+i; 0 means "no replacement".
|
|
44
|
+
*/
|
|
45
|
+
var c1 = [
|
|
46
|
+
8364,
|
|
47
|
+
0,
|
|
48
|
+
8218,
|
|
49
|
+
402,
|
|
50
|
+
8222,
|
|
51
|
+
8230,
|
|
52
|
+
8224,
|
|
53
|
+
8225,
|
|
54
|
+
710,
|
|
55
|
+
8240,
|
|
56
|
+
352,
|
|
57
|
+
8249,
|
|
58
|
+
338,
|
|
59
|
+
0,
|
|
60
|
+
381,
|
|
61
|
+
0,
|
|
62
|
+
0,
|
|
63
|
+
8216,
|
|
64
|
+
8217,
|
|
65
|
+
8220,
|
|
66
|
+
8221,
|
|
67
|
+
8226,
|
|
68
|
+
8211,
|
|
69
|
+
8212,
|
|
70
|
+
732,
|
|
71
|
+
8482,
|
|
72
|
+
353,
|
|
73
|
+
8250,
|
|
74
|
+
339,
|
|
75
|
+
0,
|
|
76
|
+
382,
|
|
77
|
+
376
|
|
78
|
+
];
|
|
79
|
+
/**
|
|
80
|
+
* True for NUL, UTF-16 surrogates, and values past U+10FFFF.
|
|
81
|
+
* @param codePoint Unicode code point to check.
|
|
82
|
+
*/
|
|
83
|
+
function isInvalidCodePoint(codePoint) {
|
|
84
|
+
return codePoint === 0 || codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Replace the given code point with U+FFFD if it is NUL (0), a surrogate, or
|
|
88
|
+
* outside the valid Unicode range. Code points in the C1 controls range
|
|
89
|
+
* (128–159) are remapped to their Windows-1252 equivalents, following the
|
|
90
|
+
* HTML spec. All other code points are returned unchanged.
|
|
91
|
+
* @param codePoint Unicode code point to convert.
|
|
92
|
+
*/
|
|
93
|
+
function replaceCodePoint(codePoint) {
|
|
94
|
+
if (isInvalidCodePoint(codePoint)) return 65533;
|
|
95
|
+
if (codePoint >= 128 && codePoint <= 159) return c1[codePoint - 128] || codePoint;
|
|
96
|
+
return codePoint;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Convert the code point of a decoded numeric entity to a string, replacing
|
|
100
|
+
* invalid values.
|
|
101
|
+
*
|
|
102
|
+
* Fast path for plain BMP code points: [1..0x7F] and [0xA0..0xD7FF] pass
|
|
103
|
+
* `replaceCodePoint` unchanged (no NUL, C1 remap, surrogate, or out-of-range
|
|
104
|
+
* handling) and fit a single charCode. 0xd760 = 0xD800 (the first surrogate)
|
|
105
|
+
* - 0xA0.
|
|
106
|
+
* @param codePoint Unicode code point to convert.
|
|
107
|
+
*/
|
|
108
|
+
function codePointToString(codePoint) {
|
|
109
|
+
return codePoint - 1 >>> 0 < 127 || codePoint - 160 >>> 0 < 55136 ? String.fromCharCode(codePoint) : String.fromCodePoint(replaceCodePoint(codePoint));
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region node_modules/entities/dist/internal/decode-shared.js
|
|
113
|
+
var BASE91_INVERSE = /* #__PURE__ */ (() => {
|
|
114
|
+
const table = /* @__PURE__ */ new Uint8Array(127);
|
|
115
|
+
let code = 0;
|
|
116
|
+
for (let char = 33; char <= 126; char++) if (char !== 34 && char !== 36 && char !== 92) table[char] = code++;
|
|
117
|
+
return table;
|
|
118
|
+
})();
|
|
119
|
+
/**
|
|
120
|
+
* Decode a dictionary-encoded trie string back into its Uint16Array.
|
|
121
|
+
*
|
|
122
|
+
* Stream layout (consumed in this order):
|
|
123
|
+
* 1. dict1 atoms — `dict1AtomCount` uint16 values, delta+RLE encoded.
|
|
124
|
+
* 2. dict2 atoms — `atomCount - dict1AtomCount` values, delta+RLE.
|
|
125
|
+
* 3. dict2 ngrams — `ngramCount - (dictSize - dict1AtomCount)` entries,
|
|
126
|
+
* each a pair of slot codes that resolve to earlier slots.
|
|
127
|
+
* 4. dict1 ngrams — `dictSize - dict1AtomCount` entries, same shape.
|
|
128
|
+
* 5. data — slot codes, each expanding to one or more uint16 values.
|
|
129
|
+
*
|
|
130
|
+
* Codes use a 91-char base (printable ASCII minus `"`, `$`, `\`):
|
|
131
|
+
* - char1 < dictSize → 1-char code, slot = char1
|
|
132
|
+
* - char1 ≥ dictSize → 2-char code, slot = dictSize + (char1 - dictSize)*91 + char2
|
|
133
|
+
*
|
|
134
|
+
* Slot index → token kind:
|
|
135
|
+
* [0, A) dict1 atoms (1-char codes)
|
|
136
|
+
* [A, dictSize) dict1 ngrams (1-char codes)
|
|
137
|
+
* [dictSize, dictSize+D) dict2 atoms (2-char codes)
|
|
138
|
+
* [dictSize+D, end) dict2 ngrams (2-char codes)
|
|
139
|
+
*
|
|
140
|
+
* Both atom dicts decode before any ngram, and dict2 ngrams decode before
|
|
141
|
+
* dict1 ngrams. So every ngram entry references slots whose contents are
|
|
142
|
+
* already filled — no forward references to handle.
|
|
143
|
+
*
|
|
144
|
+
* This runs on library import. Flat typed arrays store each slot as either
|
|
145
|
+
* a plain value (`single`, covering every atom) or a range in a shared
|
|
146
|
+
* `pool` (ngrams).
|
|
147
|
+
* @param input Packed trie string.
|
|
148
|
+
* @param resultLength Expected number of uint16 values in the output.
|
|
149
|
+
* @param atomCount Total number of distinct uint16 values in the trie.
|
|
150
|
+
* @param dict1AtomCount Atoms in the 1-char range (`A` above).
|
|
151
|
+
* @param ngramCount Total number of ngram entries (dict1 + dict2).
|
|
152
|
+
* @param dictSize Number of 1-char code slots; the rest of `BASE - dictSize`
|
|
153
|
+
* first-byte values are 2-char codes.
|
|
154
|
+
*/
|
|
155
|
+
function decodeTrieDict(input, resultLength, atomCount, dict1AtomCount, ngramCount, dictSize) {
|
|
156
|
+
const base = 91;
|
|
157
|
+
const inputLength = input.length;
|
|
158
|
+
const twoCharBias = dictSize * 90;
|
|
159
|
+
let pos = 0;
|
|
160
|
+
/** Read one slot code at `pos` and return its slot index, advancing pos. */
|
|
161
|
+
const readSlotCode = () => {
|
|
162
|
+
const c1 = BASE91_INVERSE[input.charCodeAt(pos++)];
|
|
163
|
+
return c1 < dictSize ? c1 : c1 * base - twoCharBias + BASE91_INVERSE[input.charCodeAt(pos++)];
|
|
164
|
+
};
|
|
165
|
+
const dict2AtomCount = atomCount - dict1AtomCount;
|
|
166
|
+
const slotCount = atomCount + ngramCount;
|
|
167
|
+
const single = new Int32Array(slotCount);
|
|
168
|
+
single.fill(-1, dict1AtomCount, dictSize);
|
|
169
|
+
single.fill(-1, dictSize + dict2AtomCount, slotCount);
|
|
170
|
+
const start = new Int32Array(slotCount);
|
|
171
|
+
const length = new Int32Array(slotCount);
|
|
172
|
+
/**
|
|
173
|
+
* Decode `count` ascending uint16 values from a delta+RLE stream into
|
|
174
|
+
* `single[off..off+count)`.
|
|
175
|
+
*
|
|
176
|
+
* code < 89 → delta = code
|
|
177
|
+
* code == 89 → run-length: next char encodes runLength-2; emit `runLength` consecutive +1 values
|
|
178
|
+
* code == 90, next < 90 → escape: delta = 89 + next * BASE + after-next
|
|
179
|
+
* code == 90, next == 90 → double-escape: extra char for very large deltas
|
|
180
|
+
* @param count
|
|
181
|
+
* @param off
|
|
182
|
+
*/
|
|
183
|
+
function decodeDelta(count, off) {
|
|
184
|
+
let previous = 0;
|
|
185
|
+
let slot = off;
|
|
186
|
+
const end = off + count;
|
|
187
|
+
while (slot < end) {
|
|
188
|
+
const code = BASE91_INVERSE[input.charCodeAt(pos++)];
|
|
189
|
+
if (code < 89) {
|
|
190
|
+
previous += code;
|
|
191
|
+
single[slot++] = previous;
|
|
192
|
+
} else if (code === 89) {
|
|
193
|
+
let runLength = BASE91_INVERSE[input.charCodeAt(pos++)] + 2;
|
|
194
|
+
while (runLength--) single[slot++] = ++previous;
|
|
195
|
+
} else {
|
|
196
|
+
const next = BASE91_INVERSE[input.charCodeAt(pos++)];
|
|
197
|
+
previous += 89 + (next < 90 ? next * base + BASE91_INVERSE[input.charCodeAt(pos++)] : BASE91_INVERSE[input.charCodeAt(pos++)] * 8281 + BASE91_INVERSE[input.charCodeAt(pos++)] * base + BASE91_INVERSE[input.charCodeAt(pos++)]);
|
|
198
|
+
single[slot++] = previous;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
decodeDelta(dict1AtomCount, 0);
|
|
203
|
+
decodeDelta(dict2AtomCount, dictSize);
|
|
204
|
+
const references = new Int32Array(ngramCount * 2);
|
|
205
|
+
let poolSize = 0;
|
|
206
|
+
let ngramIndex = 0;
|
|
207
|
+
/**
|
|
208
|
+
* Read `count` ngram entries (each = 2 slot-code references) for the slots
|
|
209
|
+
* starting at `startSlot`, recording references and assigning pool ranges.
|
|
210
|
+
* @param count
|
|
211
|
+
* @param startSlot
|
|
212
|
+
*/
|
|
213
|
+
function readNgramReferences(count, startSlot) {
|
|
214
|
+
for (let index = 0; index < count; index++) {
|
|
215
|
+
const slot = startSlot + index;
|
|
216
|
+
const a = readSlotCode();
|
|
217
|
+
const b = readSlotCode();
|
|
218
|
+
references[ngramIndex * 2] = a;
|
|
219
|
+
references[ngramIndex * 2 + 1] = b;
|
|
220
|
+
ngramIndex += 1;
|
|
221
|
+
start[slot] = poolSize;
|
|
222
|
+
const entryLength = (single[a] < 0 ? length[a] : 1) + (single[b] < 0 ? length[b] : 1);
|
|
223
|
+
length[slot] = entryLength;
|
|
224
|
+
poolSize += entryLength;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
readNgramReferences(ngramCount - dictSize + dict1AtomCount, dictSize + dict2AtomCount);
|
|
228
|
+
readNgramReferences(dictSize - dict1AtomCount, dict1AtomCount);
|
|
229
|
+
const pool = new Uint16Array(poolSize);
|
|
230
|
+
let write = 0;
|
|
231
|
+
for (let index = 0; index < ngramIndex; index++) for (let half = 0; half < 2; half++) {
|
|
232
|
+
const source = references[index * 2 + half];
|
|
233
|
+
const value = single[source];
|
|
234
|
+
if (value < 0) {
|
|
235
|
+
let read = start[source];
|
|
236
|
+
const readEnd = read + length[source];
|
|
237
|
+
while (read < readEnd) pool[write++] = pool[read++];
|
|
238
|
+
} else pool[write++] = value;
|
|
239
|
+
}
|
|
240
|
+
const out = new Uint16Array(resultLength);
|
|
241
|
+
let outIndex = 0;
|
|
242
|
+
while (pos < inputLength) {
|
|
243
|
+
let slot = BASE91_INVERSE[input.charCodeAt(pos++)];
|
|
244
|
+
if (slot >= dictSize) slot = slot * base - twoCharBias + BASE91_INVERSE[input.charCodeAt(pos++)];
|
|
245
|
+
const value = single[slot];
|
|
246
|
+
if (value < 0) {
|
|
247
|
+
let read = start[slot];
|
|
248
|
+
const readEnd = read + length[slot];
|
|
249
|
+
while (read < readEnd) out[outIndex++] = pool[read++];
|
|
250
|
+
} else out[outIndex++] = value;
|
|
251
|
+
}
|
|
252
|
+
return out;
|
|
253
|
+
}
|
|
254
|
+
//#endregion
|
|
255
|
+
//#region node_modules/entities/dist/generated/decode-data-html.js
|
|
256
|
+
/** Packed HTML decode trie data. */
|
|
257
|
+
var htmlDecodeTree = /* #__PURE__ */ decodeTrieDict("!}.&u%}'&}*'~!6*)%&,~!J~!J~%L~y<~!R,~~%Lu~~#GD~~#|)1#%}^%}2%+#.##%##%}&%##%'#%##&%#%#'%#&#%#&#'#%%#&#%##%#)%''%&%#%#'%#%%#%%}%%%#%#&(23#%%#&-%0%('1#(##%#'##+%'*.:1}#%#6-+(%'%%#%%%}#L'2351&('%}&/N'(0(/*-%(%%}#'+&T%7.2}#&%&#%#36/5##%&%%#&#%%#))2%%##%&&'0~!#*+&'%1~!%).'3q?&%'1~!.##%6(~!+%%%(Gw'rT~!E#<nA%#jZ~!H%(~!42##~!*31&~!G%U~#)5~#`3~!J~!Z~%]~%Y~%C~!q~!u~#kz~%#~!6'~!D~!U~!?~#T~!c%~!G#'~%7|~!G~!J~!G&~#pb~(Df}#%}*&}#%##%##%##&#-}&'#'&%#.++}%mI,#,@&(}*%}*'%&##&#%##%}&0}#.},U},%}+%}&%}#%##&}B%(}(%}+%)})%##%#&}&%##%&}<%}>%#%&}*%}(%}9%}/%})%}*%}*%}?&}&%}3%}&*#%})%#%#)}#&#-#+*%E%%'%'#%}#*V##&##I}#&&##%&%#&&Qf%%))w/0+&%#(#.%-''''++++7}>%4'',##1,#%#&%##&#'##&#*#9)%&%}#*}%,#+P(%A&%#'&##wSD',9E00#y#@}(+}&%&>~!#~!X}#*}(&&}(&}(,%}%&#+&}#&}I%#%}%)#(},'%#*}4%%#%}(''}#/##(##),%-##%%)#&}(.}&%#&}%%}*&#%},&&}&%}#%*'#%})%}D&}&%}-&}6&#&}-,%}#%})-(~+`~,=?~I9'9%~!,#%})%})%}@%}?%}(~!?~#<~#pP~#BG~#=1#%K+~#?#~%;)~#A~#mF1~#A'~'X%'~#lR~#N~'N~#r~#m#-~#i'?%#'%~#B%##%,%#~#_%#0%~#]732~,w~2+#:&#%&'0%&>%}#>##F+)#%&&#(+_}4&}-%}(&}@&}O7Fdf0@+/v4}&WU##&/0#&'('B#%}.%}'+#%}#%%&#&%#%##+#&#)#6#'#.},%}c%},%#%##%&#&%#&~#>'*-.%##%##%}#%%}%'~#)D1}#%*&~#_%%'(~#S2%'.}#~#=##*'*-%}&'%'##&&~'E%.#&~#M4}%%##&'%#~#O1##%&#'+~#<B%##%%'%+~#;#@%}#&%#&&%#(~#H1}'%'##&&~#?A}&'~#D#%32}'&&&&~#[}'(#%}'~#;C})&}%%#%~#=&%,3}%'(#%%~#^'#&&)#%'~#Y%-~#d-%'~#^%%&#&&&}#~#b~2t*&'~&(~&@~0%~e~3}%*''0})&}+~!9##-}#%-hD*)1fC#%/&/fB#40~!+#)*4~!+~!K'&:~!/*7~!.#~!H~!L':~%x&~!H#~!*~%1~!I#~!+A~#p'~!F~~#-#~,,(~.Z~!V~%;'B'mq-W~!N~%I%#&&#&}#%},%%}'%}+X#%}#&}(%}'%}<%}#%}%%'}'%}:~![)9@~%>~#UA%-%##&~!C%~!-.9:~!1~!-^2/:a~!y,D*J#-5)/4~%23,~#G~!L1~!0X3`~!2+~!!0-~&E~!W~!o,>Y&]~%cZx_&~#O*9#A#'#+I'%#)~!0B*-5A+-((F&*M#)(-7-5+'-3a5Vi~!Y~!?+[)%3),ERHm~!+:D,VG.+)?fB%%*(%)'(#&80%1'8`K8?`+'Z#&O&'H5#*9)A%%5&3))0%39+.*7#()&&*=4@**L)<'_&*+..;(#*+)./&0#3)%')-8(4ixD(&.}%,('aI:,)%,k2231T)I'#/-W7,/'Q#.'Y24+h')37</31&83##&0#),H(?'&?/1##%#&&#%''-%&&&#(&''&#.-'%#%%(,')*'&#&#'##%(%(#%('#&##%%%%('%#%#%%#%#&%##h>w+v<ayvyvcg.uuhKr}g/v|g>u9i[~>g5uI~=RvdwEg;v/g;uk!!TTSx]@RT!U!#!@VBRUU!'UTe-d0c`e&gSdicedFcrdTaqb.kYcAohdYd@a3e+d}dMdtd.aJ#bqcK`dle/e.e'dwdPdodddjbEb}ogd^ofdpduc6j?l%d{drdqc)d7bacOdQ%T#Y)X.sR[yH>6Vyv3[xwLu>vo'!*.[yBacahoj>6Rew3[xqdZa#!a&#^(X-[yG>6Vyu3[xvg3sEr|g.u/Ri9db0T#^(Xa)!-[y;>6Vylg4wKs{JwNZt3@3r=c4Z([xlg;wKt!cpq's@v7A'*a(a+!-a#[y<3Dt?3Dt'>6Vym3[xmg9rxsNJwLZt4~?r?db1T#`-!(Xa,!0[yS>6Vz%NuQs.g4wKtnJwNZtS@3r>c4Z([y%g;wKtrdga8!a(!#&T*Y-Xa#!a0<or[yc3Dtq>6Vz43[y3JwNZtf@3s!Ju}!%Dti:pm3c_%X#tjB5pkd6q!r]u?voC'*-a.a2!0a&a+[yI3DtI3Ds~3DtH>6Vyw3[xx;:s#~<5pKJwNZtE@3r~d`a)!a2T#a.(!+U.X1[yT3Dt`3Dtv>6Vz&3[y&g9rxwzcxstPu.<rAJwLZtT~?r@dZa%!a.&^*Za(/Reu[ya>6Vz23[y1g3sEr}wkg{NuQRg{ci(U#5@b`~,cg#U(2WnH5wugcRh7dX#T(Y,a'Ta!!a,[yZ<]mj>6Vz,3[y+Pv#5ReZKu+=,%!H}7ABwkaS?Rh:BcW(X#<]mrj:ubv/ARekdg%!(!a.*Ta(Y.X1!#sP>Rl*Dt6[y>>6Vyo3Wf*jOvuumvuRgRJuq*!:9<B@bX~3jVv&v@s@5Re[d/rQt{uAvo&a&a*)a2!,0Wf!3Dt0=Bs'>6Re}3[xy~<5s%JwJZt1~Gs)c;&!#2sJkNuXvzq7rxu,Re8dka4!a8(aEZ+a@Y.X1Xa)[yd=Bs(3DtP>6Vz53[y4cX#X&Re:avRe9~<5s&JwJZtQ~Gs*i^rzvdRg+Jv{%!2sbB@bX}kdga,!Za?&^*T1/!a'Dt+[y6>6Vyf3Wf%g/u;s4hGu6?Rh-JvZ,!c%#&RoX54Rivj7uyvf8RgTKvZB%*!2sGh<vu5Rgq<=C::9bb~#dZ#T&Ta6Y.X*Dt>[y93Wf)coZ(T,6VyifluvRgC@95@B@bX~/hFu34cC#T,k/unq8w8Q5RkUklwQuzunq8w8Q5Rk8d/rJu?v8w9)-&!a0a;a&aIWejg3sEr/h1s<DtDJvyZqY5aws3Jvy!&Wei~Hr1:au5@Bag>23E~5c:Z&bX};kKv?w&unuVu5Rjc;>bs)#~@:Rh.=ay<a]C;b`}Vd6s/t{uAvoaxa()!a,a7%-a#a2Dt,[yF2Wo[>6Vyt3[xuNuPRi&NuPwpi#RoWh?vf8Ri%Jv]!%Ri:KvxD!.'2WeAjZu`q9rxu,Re7woeAg-unLq(qA_/*2Wg_g3u5q^9:4E}/jTrxrzv=Wkkd~0UX#^^Xa-a1a5T&a=U1a'*aEa]!a*aPaA-adok[y54Rn>;:p3~Dp5g9rpsFNvZqjg3uJp4~<5p0Pw;5qlJwNZt*@3p1Pw:5p/Ou!5p2JvG'!6Vye=<qnJvh_[xhg3v,Rh3kOwOw-sDuev/Re^dha[a%!%!a+#Ta7)-5TaCaO!aka!a)sf[yb2>Rl!9ARiq5E}Qg=ucRkBE|oJrJ_@Wk~@Wk{JrJ_@Wk|@WkyJrJ_@Wk}@WkzJvO_[y2g-vMRmiKuYC!)&>Ri;>Ri<@3RkNc](X#@9Rk=g5vuRmhKvDB!+'=]meg3u4Rmgd)#Y'Vz3CARmfd`a+!%T'!+#Ta1Ta6TaM-sTDt9[yA9sYd'%Y#s[[xpj:ueunaXRgEjRq,v-vuqdd2'`#6Rev<32@5>:2<E}5xIo9a*X#Y(;5RePJvD_g>vyRgNj8w)v8<wggs:RgXiZt|vjx,hSq3ah!-(~@:Ro/Ou!5RhWj^v(pyw8unRhUdx-UY#^Ua.a3a70!)%UX1TaDa)'omRiRRhE[y:3Dsz=Br,>6Vyj3[xkg6ruwjcqsrPw;5r*Ku]D'Zt-@3r(~?r.i[vwv]dU1a--U#`a4(g/vsRhPOu!5RhLj:rmu9Wo!~@:wdh@g/vsRiTjXuvvNr}:RhBj^v(pyw8unRn]dz1UYa'a+^Y(!aETZalaRY.Ta?a4[yDJw1!#qLsW>6Vyrfzq-pLflpwRe|Js>%!Dt@3Dt&Jvy_[xs~HrnjMuwpsw'RecKu+D#'!t<~Grl~?rjg5u-x,gwp{ah!-(~@:Rg~Ou!5Rh'jXuvvNr}:Rh#cW#X/c;&!#2sLi[v7u7RgpJv)(!iLrxu,Re6j7v@s@5Se[e7d`aW!Za(a`T.a#!a3!&aDa-!9)Dt_=6s+3[x~~DR|h~DS6avhGun5RkZj3w)v-]mkKunB!&*]kb97R|i<ARk<c:Z(6Vy}Juh'!wziMRoS:F|vkLuauJv5vtvQRh1d='T+Y#VyO~DR|jcF#T'7R|g97R|kJv3'!ay<Rj,Jvh&!:ReXcsa6*a+#a#_aIRf9aLRf?c,Z&Rf5Rf7c.Z&Rf;Rf>cQ#%T'p-Rf8Rf=ct#%'(*!,p,Rf4p+Rf6Rf:Rf<d~'Ua%U*^UYa(!a,-!#a4YaTalaEX0a8a<Weo3Dt/3Dsx=Br93Wen~Dr;~<5p<JwNZt2@3p=Pw:5p;Ou!5r3c7&!#:p>3Ds}KvGB)_6Vyk2sM=<r7x'eovA(!hFu1ARf}cV#X&@r5j6rvwQa^Rf3c=Za'wkghJv__g;unRggA53B9=b^}%j6uduo5Jq;!(hIv%2Re`Ou4ARe_e%a#^^^Xa&!a*a2!&a6YaP!*ad!#a:aE/5Rn?[y@>6Vyp;:pE~DrY~<5pBJwNZt8@3pCh=rt3rWPw:5pAJup_[xoNuPpF9c!#'45pD5ARn)d8#X'X*3@rU72s]h>v<<sSjJpqvewOJq/(!hNw'5ReBk0s2u3w/w'5ReE5@Jq.!a+JQ!&WeU23d(#Y&RjG5]jBk!u7w&u0udARjEe#+^^^Ub#!a2/a`Z(agT1!a-a;|@TaG!aS[yV=Re~fow'RguNuPRe?bz#'>RoUWeL>:Cbb|?JwPZtVg6ruRmzJvD'!6Vz(g/vmRh~Jvy_[y(g9voRgyx*cy(#2>Ri2B9b]~9kIw9u7rluJu3Rg]dI#a%UY'@=p%CAx.gQZ&RhwwygtRm{x5g_Z'+ABqR9Woa=Bp&dV#^*Xa'!&@o{g4v]Rk;Jv{!%Rk[wkkiA5RkiwwfUB=x,fUuqC&*!>RfTg8v0RfV~ARfSd;rJsAuAv9wR'ae+/aO!a@aza/a#[yQ@Wg!2Wemg3sEr0JvB_g>uvReWg2v+Re=KupB_+[y!2AbY~-~Hr2AJwD!(h<~El>h<~El?Kun@+_:9b`}Kg-v/Ri3g;vtwyk_9]k_d=&T#*U.6qh@Ab`|K9:H|CJv[!&3Dtex'fDwC%!Rf[9WlMd[(^X,!a%Z06Vz!@WgBg=v~Rgvg,QRe@awd,#Y+jTv|Q~EfWj]uNr|~FRfXdy#Y&^Ua%!aO.!(a)Ua;=!a@aKap!a-,a!Ta]a[rSa]p?[y82sK=Bq~;:p:~<5p8Pw:5p7d'#Y'Wf(;RnRi[u4w&RgJJvG'!6Vyh=<r#ijuuv/sIKuYD'ZtG@3p9~Gr&d2#`(g<vtRgFj`u5w&rqpxRf2CJuY!+:wfnTOu!5Rg}jNs1ucv&RfwJvA!&3@q|BDcC#T,k/unq8w8Q5RkTklwQuzunq8w8Q5Rk9dga#!a'!a=#a0!:+Tb*b@aO.a4!aba8aFJv^}?!VyR~Dr<g;u%Rn.~<5p[x'e`wNZtR@3p]Pw:5pZhNvjBp.woe_g5u-r4JwF!%DtO3:ooc7&!#:p^3DtpLuGw(!+%)Dtk6Vz#2sd=<r8d'#Y([y#<x3gJt`w@!)%}MRiowzikRij=]ilxAf3,U(#B2Rf#g0v-Rm[ck{`U#]giKv3>)!&6Ri154s,KuGB_%@r68r:dJ|t`#X(9<E|u2@H|rx3gJu?w'!+'1Nu7Reg4=H~+9<wxgY95Rm]xLggZ-`(X}U2:Ri4h<uOawRmsJv__5@bb{jbV~3dka#a'a]!,#a+U=a>b6a3b%!/aKa/)!arwve^VyJ;:pR~DpTg3uJpS~<5pOPw;5qmPw:5pNOu!5pQJvG'!6Vyx=<qoJvA!{~Jup!%@qk7Rn/KvyD!}''[xz;>wkh'?Rh,x8gyt`w5D!&),(SgyccRgztJ@3pPB5p#d'(Y#<]mmifubw&RgoJvE&!82s^JvF&!8Rf,ADb]~;x=h'rNu]vK!,%'*0RnORh)4Rh*AqQg-vaRnNg;wHwkh'ba~4cE#Ta*x3gctyw@'!+%RnFRnD<4Rn@hFvK5RnCxWg[#`&a0Ua()`1Rm75Rg[c]%X#qi8Rg^NvdRj>BwzgZauwji7Rm6A4wgg]d1#&(*,.0a#Rm;Rm<Rm=Rm>Rm?Rm@RmARmBe%#^^^Xaea?aC/b+(,!a+a#!a/!>a&Ta<aKbD!2wphBRnk[yPw}hE|.=Br-3Dtm>6Vy~g6urRf.x,hPrNav!%'RnqRo%Ro#Nu;q[Pw;5r+JwNZtM@3r)d'#Y'Weh;xChL#`&RnmRnoKu}>%(!Rne~Bs-;2wjcussJv+'!aYSO}6@B<5?ba~8LrNvj!.%*ROwungw~ng~:9;Ri^>wtnig;wHRnixDh@|(UZ.x1h@|)!#:2<H|*xHn]#-UX'3Ro)z=iT}6ARns=Bwsn_wpnaRncw]aR(#UXa&Ua*a/=]iPd'#Y&Ro'WnXf{QRm2hNvj]nZd`'T~&1`{|`#9b]{}c:'!#Wl{>@=be}]?cl{{U#:5Abb}Jds#^YaF!a*b4a#a3aPa>&Tb!bH!*a_!Eau?/a&RjY<]gj>6Vz*;:pe~DrZg,QRj1JwNZtX@wihspcJvZ&!VyX9WmOJu|!|N2WmHJvh&!]ht~Bpbcn&T(!#RmQ<s7Nu;padH#X'`+WmJ@>RmKCARhnKup=!)&Wf+:RhqNuPpf9c!#'45pd5AwghpARn(Ls@w!%,)!RmP@Wfe<E|IJva!&WmNg8vsRmLd`*.`#Y'Xa!axRn*]hrA8Rhug5s@rXg8u!RmMd8#X'X*3@rV72smdI*#UY&RmICARho~GsgxVgd)Ta'U-Y&Xa!T#RnEWnA@Wffg1uDRi0hFvK5RnBxGnG&#`%owp)@wsf+bX}Ze-*1!a*^^^Ua|!#a.aq&Ya2!a>.a6!a:aO`aJDtL[y`@Wg#>6Vz12@wzoYRoZNuPRi!NuPRhzg=ucRi,@=b`{Yg=ucRi-ACJvB!&Sh[ebSh]ebi`wUuFRm4Jw2_[y0JvB!.<Ju(!&SoG}6Shd}6<Ju(!&SoH}6She}6Kur@._g5vHRieJvx!{L2G{Kx6gd'T#?Rh82Wi5cZ#X(g1w)Rm5dW-Y(Ta#!a)!#aYa=wnfE=su2>>bU{0j9udv:<svj8uQv-7RgHdE%#^'sq9sp=>Bb_{TJv`!&g/r|snj6v(us5d,#Y(56H}[978H}]Jw5!&g1rushJvB!+j;v{u5?zDhd}6}bj;v{u5?zDhe}6}ce*#`(^^^a[aea!=!a6a*aoXb1a.!aAbL!b>,b'aL!aV@Wf|2Wlg3[y/JwNZt^@3piPw:5pgJunZou3@rsJva&!Vy_g<v~Rm#JvG'!6Vz0=<r{Ju{%!:pj@WfsiXuJu3Rm:JvZ&!WfA~Bph@c4Z&Dtwax5rubx(#:awRk1@d,#Y&RfjRfid1#,Y(@Wfp2Wlrg5s@ryKu[@!,'=]ig9wlk?Rk>g5u-rqJvy'!@9RkQcH(T#=>Ri~@<wkj(Wj(KuZB*!&<7rw@9RkRcH(T#=>Ri}@<wkj)Wj)dg(Ta2Xa9X#`-!a*CARhg@@=I}d9x;c~#X%so=<sj>2@@=aybb}XjWv0Q~EfEj3vLv;<d,#Y(56H}`978H}_dgaPaFa'a/!#a3Y0a_a;a|!1(a7-[yE3[xt;:pJNvZrrg3uJrvJwNZt=@3pIh=rt3rxPw:5pGOu!5rpJvG'!6Vys=<rz@c4Z&Dt(ax5rtJvZ!&~BpH@wsfNg-vaRlNci*U#=<wei<F}a5@Jq.!a*JQ!%@qZ23d(#Y&RjH5]jCk!u7w&u0udARjFd/prq=tyvpaEa(a:.!a1aZ(@@=I}:9wpd%=<sX55w_h}@@=I{t=ay<aU@@=I}T=ay<2@@=I})?C9:9au@9Cb]}DP~=x-fAZ(2Wl1=ay<aU@@=I}>5@d##Y+jTv|vV~EfFj]uNpn~FRfGdgaK!Z2&!a8a-Tb({E!acTbM*!a(DtY[yYd'%Y#sl[y*hHvh>Re5x2c{Z}.j4uCvcawRiMd+#X+_x&d!},<5RkX;2Hzw@x,gavfB-!{CcF&T#Roe;RodwWbBg5urRgaKvHC*_6Vz+<4opieuew&Rmq@d]&Y)X,T#X0Rh}<BqP=4qS9:ReMg/ujReNJw0!/<Jui%!bd{kawwnemRelAxUa?a3#*.&UX(Ya+a/RhvRnQ<o}9Wmtd-#Y&RgSRmw9;Rmxay=Rmyg-vaRmuxEhSrNu,v-voC!%(aR.a(a7+1Ro1>Ro5CE{A9b]{@;5x#eO{:g;urRi+KrNA!%(Ro3>Ro79;Ri_Ku@>{;&!x%gX|{KunA_+g5QRj/g3u5Rj#g>uERj%wio/xRhS&!,!#^1U}wba{8>>@=be}qC@:D5ba{7Ku+A&!}x?ba}t>>@=be}se(aA^^^Uat!b0#{pa+awUazbGa#aLb9bgaWac'a5TbS=Br!d1#`%scp_Jvl!#rT>Re0JvX&!VyN=H{Fcm#U&:pY=ReaJv2&!]h0=]nUJvG'!6Vy|=<r%JrM_=]h2@Wlud'#)U'Wf'b]{i=]h/Jvh!&~BpWg=v]RnMx+ny#'Nu;pVwjnu=]nwxJnx,T#`&Reqwjnt=]nvieu9vrRjLLuYwP(#+!th@wih5pX~Gr'g5v/Rh4KunA'!-CARnP@wwiN:Rm_9x'cvw>!|l=<saKvAA!0&3@q}>w^e1bp#&Re2Re3BDx7gH#T|f5H|eKuZ>!%(:qNAH{]Jv6!+3B2B9=b^{X<5<B92:E{ZLvhwA(a;a%!igQuyRmad+#Y}m@3Rh5d8#X'X*:AqUAHzmaxwbh<aXRnVcF}RT#Nw&cj#U(BWnug/vsRntdka)(a3+.Zb7aYYan1!bVa@Xa}[y^@b[{G=H{+hFu73Rj&Pv#5ReQcK%T#sig1v{Rj'Ku+D#'!t]~Grm~?rkKuMB!01d5#`'Vy.ta3Dtu~Hroc8#'{^45s85AwZbP&!#Rn!wghxWn#KvEA!)&2RlA2RlBx:h|#(T,=]j09Wobz>x]z/@awRoTd+#Y(az]hFhCrm4d,#Y+jTv|Q~EfMj]uNr|~FRfOdCa!Xa9_X#@<plJvf!%b`{(9;Rgwc;.!#2x7cw#T|UDb]|T5Ju={(!=@E{&Jv)&!Ab`{'awJvf!~*>>@=be{#KuY>!+&4Ezyi[ugv&RjIdea+T)#UXa&T-T&a!Rh9auRmW=]kLg5vuRn+g3u4Rn-Ow6ARn,hHus5xNk?#UX(U~)/g8v0RkD~AwkkF?Ri.OuNBwkkA?Ri/d|a2`a*^UYa.!aBTZaTa'Xa;!(!2!-a#b2[yC>6Vyq3[xr2Wi?g1rusVh%s?DtF~<5rbJs;%!DtBfswKtCj[uvuSsEu3RgVx3o:u+wN'*Zt;@3rd~Grh~?rfg8w)Lq)qE&-a%!>bI|`jWv0vV~EfCjTv|vV~Ef@j]uNpn~FRfBcK#T']gWNu7x,k7q4ai(0!hHv8<RhmkMu9vrsBuev/RhlCJvB!,g<v{wchh~@:Rhji[vrv{wchi~@:RhkdS&a5UY#Ta!RgPwwiI5BwciI~@:Rh`x'iJvj'!5]iJPu8Bwch]~@:Rhach)U#h3rp]gLh@t|Ax,hTq3ah!-(~@:Ro0Ou!5RhXj^v(pyw8unRhVd|)`,^UYas!a?/a2Z'a^Ta{Tb7Ta(a#!a,Wf&9sZ3DtAadamov=Bqt3[xig8vsRm~>waiL2b`{QJv*_Ouv2qgj<v]v2BqfdR'X*X#Y-@3qr~Gqv~?p6hHv-]glPup5Lq+q?_%*b_{qF{n9b^{rOu4ARhpKvCD!+&~Bqp:5Dbb}nwoiKl&unuTuBv]v+ueunaXRf0=Jvh!0nKufu8v1w&w7q%w&uHrz:Rgnj5w,uxDJq/(!hNw'5ReCk0s2u3w/w'5ReFd>Za&!*UaA=<wkgsRnSJv^!%Refifw3vyRgOKu_B'!,<]gkiiu:w&Rh<=C@a^<B57@2F{[<B5@aW:=3away9A5aW=<B=C@a^<B57@2F{Ie-#`(^^^bCara.b8aza6!/bZ,!adTbnTbOb+aFaS!aAT9@Wf~2Wli3Dtl2@d,#Y&RfnRfmJwJZtN~GqyJva&!VyMg<v~Rm%iXuJu3Rm9Jv[_=]ih9wlkDRkCd1#`(@Wg>2Wls3cH#T(@<Rj*=>Ri|b~'#23s9h<~El.d'#Y&Dtxi^rzvdRl#d*#U%(o|B2s`hJwSaxRmDKv4B&!1:Rmdd5#`'Vx}to~Hq{x'f1v3(!BA5ba|bJv_&!Wfug1v]ReIdO+U/Y#&G}-8wze=Rh{g1v]ReHg/uQRf/by#)ibQwERl/cH#T(@<Rj+=>Ri{cNu+vlax-!(#a0qa9<Rii2;;bU{H;x<i=&X#Rk`<4wwi=C9H~8xAI(Y#<azRi@45wXI<B9;5bb~7dL(X#Xa(+!aL6Vy{g5QqOau:5au2@ay547EzbxOcU(UX-T#Ta#:Cbb|A?wjh/b_|SOw6ARgtihr}u7Rhy<d1#T)X1@@=I|~=ay<2@@=aybb}Sj3vLv;<d,#Y(56H}A978H}@dGpvs@uAu`vcw9*!aFa+ai%(b!aXa8.a?a[ozWey=sU2@G}Nch&U#Rf_WexKu+D#'!t:~Gr`~?r^j]uNr|~FRg*j^psurwJt|RmcKv)@&!)7Rkv~Br[@wxfO:Rl3co#U'6Rezj_q#vIuavjRltwzeyh@vr5JqD0!>aY?C9:9au@9Cb]}9cl#U*5;5<H||jbuus1ucv&Rfvg1v~d/pppzqFr^a--a~!aMat1(hFv;Wiz@@=Izoj5uuv-7Rix~Cw`fk2WlVcZ#X,k)u3vWs@u2]ktg;wEx'fBq(_2Wg/jTv|vV~EfoJv]!15x'hzqG!(P~EfU~CRl_j6v(us5x4i-#T(2WmZ?C2F|d>Kq<aj1!*jTqIsBv=Wl`~Cw`fi2WlWj`v0u*~>RlR=c>Z,k#u3vWs@u2]kr<c1Z+jTqIsBv=Wla~Cw`fm2WlXdmb3!a{(arZa`bkTa%TbQTa-a9+c'!aM!/[yL=Bqug.w'RifhFvyDRj.g>vgwyk^9]k^Jv3_@WfbAARkhJw2_[x|JvB_wkoIRoKwkoJRoLd'(Y#<]gm=<9<H|yd'%_X#skDtb3awwqkgNulRkgdB#^',9:p'hJwSaxRmEBwVb8@4=H|qLu+w50&!)@3qs~?pU>Awwn;;Rn=c:Z'ARn<=<qwKvC@!/&~BqqJv6!&]eVb^z^xRge'/a%+^`#Sge}6<4Rn3=]n0Pw2>Rn8Jw0!&>Rn:>Rn6cY#a7+!a&=<wkaNw~h3z_c5Z{=wjh#=]nLKv^D!&)Vyz=bW|swYb<WetcG#T(2wxa@qVx@gD#Y&b^|V5JwG&!5bb|pg/w&RgD@x=kHs=uAvn!a%%/'+RmSRh694Ro`g-vaRmRhHv-]mlxCcS#`&ba~.5cD#Ta)P~=d,#Y(56H{>978H{Dd_#{2^Y%_+qbbb{6g3sERhsbU{?dfa.,`a(Xa<!aiX#(55RiG54RiHcI#T'WiU3RiVNvdwtfcRlKNvdd,#Y&RlHRlExQgf.1*^T'X#Sgf}6Wn4=]hfPrk>Rn7Jw0!&>Rn5>Rn9Lunw?&a2!,5<oq@@wqfdRlJj5Q~=d,#Y(~ARfcOuN]fdDKw;ay(}i!547E}j?cI#T(@5bV}iCbV}hdv(^^Tb?a40,b##Tbo!a*bR!a<b|a/!aKai!aU[yK=]o^g:v>ReGJwPZtK<7Rh+h<~El,Pv#5ReR@awwxjCg,ulRjDJv6&!]j!z?aQeeg>w=Sh<eeJw;!&axEzOg,Qosc!#*:wkeJ]eJ>x'h-u(!%Ro.w~h.zPdNZ(X,Ya![x{;9ReY;wkgxRiF:x?ap#Y&RmUg<s2Rkod]+UY0TZ'!a&A9sw<=bczLNvuw{gqzNhJwSaxRmCKuLay!#&s_Rf-55b^{uJvZa!!c%#(55Ri654wmiu5RiuawLu,vp!+}^%b_}Y9;wkgxba}o>A9:=b^}zKuh=a''!3awRk3c*'!#aHRk6c+Z&Rk5Rk4Jv)&!awRjSawd9*`#0?C2@EzMj8u<uJ5RmbjQrquJu3x,k>uq@_+=ayb^|W~ARkEOuN]k@7dhzV^X/X&a-#zRzSb`zXcJzTT#2WkVKvDBzW!%FzY9;5bbzWjQrquJu3Jw3%!b`zU=ayb^zQd:#X(T-a!6Vyywxh}=b]{Jg=u1RiAdGp~qHtzv!w(wA+a+a;<!aJaYai'anasb(=azRmV:Cbb{MLq2vb!%')RjuRjrRjtRjqx3jnqCw3!%')Rk(Rk+Rk&Rk)Lq2vb!%')Rj{RjxRjzRjwLq2vb!%')RjsRjpRjfRjex3jcqCw3!%')Rk'Rk*RjkRjl9<CbbzfOu4ARhxLq2vb!%')RjyRjvRjhRjgx=joq*uKvb!%')+-Rk.Rk%Rj~Rk-Rk#Rj}x=jdq*uKvb!%')+-Rk,Rk!Rj|RjmRjjRjidAq&qKs@uAv8Aa.'*-a@a&0!aM@a5[y73Dsy3Ds|3Dt):wxgI2sHJwJZt.~Gqxwsf0ikrzt}Rl0Jvy_[xj~HqzKv_A|D!&WfP8axRoVcf,U#k(v]v+ueunaXRf1Ju}'!g8u#Ri=jQw!sCunLprq>!,')~<5qeGzq9F{W=c##%s5au:5aU3CBE|;d4#X(D!a&6Vygx(b;#(=]ed?C2F{N<capoq2r[a&!aPa9,'Pw;5s:@@=I|,55w_h|@@=IzcP~=x'fCqB_2Wl2>aU@@=I|1OuNBc1Z+jTqIsBv=Wlc~Cw`fl2WlZ~AcTa%!Z+jTqIsBv=Wlb~Cw`fh2WlYk+uNqJsBv=WlSg,u3dca3#UXaMYa)TaB-=cM|7T#<bI}l5@B932:aV2G{BOuNBJq:|M!5Ezt=<B=C@a^<B57@2F{v>cB{/T#=ay<bI{3Jv6!a.6BKq0ah&+!5E}HP~Ef{978BaU@@=Iza<7d#.Y#978BaU@@=IzH~AJq0!(@@=IzG978BaU@@=IzFe,aU*Y&^^^bvJb,b:bFad!a,c2Ta>aL.bo6!a#CbTa'T#Re{2Wlh2@G{yg6t~Ro_NvdRfticuRQRllJv3&!x&c|zs@Jw3!%RflwpfkRlpKuL;%(!Re<@G|C2GzdhIvuBwgjAg-u0RjAKQB%!(GzZ@G|5NuuRl7d='T+Y#Vy[g<v~Rm!==G|>JvA!)@wma=]m1ifuaw&RmnLs@vT'!|/+[y,g:v>ReTJw1!#qX=x!eC{bLu+wT&)ZtZauq_~Graci&U#F|89:r_Lupvq!.)&2RlG8RfaC=x!eF{_h?rpWlmd&'!#X|&]k::xJey#`'T|+<E|&2@H|%dE#(^,g;u.RiEg6vjRiC9xCkA{O|zY#g=ucRmXKs0@!&*@G|m@awRknJuh!,3d(}gY}eJvj!%Rm):Jw3!%Rm+Rm-Ls0w(&!a(a#@b[|6cZ#X'7RkxWgAOu4ARn'dH'U#Y*Vz-Wm'CARm}d]*#a%^a*T'aK!a<9bV{PC=p*Jw4!&SgxcbB5r]idw(wBRmF7xFkt#&`(Rm/Rm8E|!JuY_9:Rl5=wrgr2:bbxd@xXfB(a*#T+!.X0X1Ta/a'T&RlDRfL>RlyARl9b[z[>RfZ:RlL:RfRwlg/ARl;9;RlxKv,A/!%7s69<74=BA5ba{-8Bde#`a<XaKYa1,a'P~=wxfB2bZ}}?C972@@=I}r8@55B9;5bb}G978B2@@=aybb}3j3vLv;<Jw3&!>Rfk=ayb^}4~Ad1#`*@@=aybb{w2@>==<bbz]dx+UY#^UaF!a9!bB'Ya1.!ajXa#%olRhD[y=3Dt#Ov5BrHKuMB%!(Rf^Wep~HrJwkiQjKr|~FRg)Ku+D#'!t5~GrF~?rDdV)UY,Z/_7RkuG{<~BrBg,rlsO:235B@bX}|d?a1!#`(6Vyn5@d##Y+jTv|vV~EfIj]uNpn~FRfH7Lq2vb1!a9-978BaU@@=Iz9978BbU}#~AJq0!(@@=Iz8978BaU@@=Iz7~AJQ|}!978BbU}!JvkaK!AdUa21-U#`a+(g/vsRn~Ou!5RPj:rmu9WhOjXuvvNr}:RhAj^v(pyw8unRn[kPr}p|u7vwv]RiSBd;pppzq@qHQa?(b.!a.a`@.|xa(hFv;Wiyj5uuv-7Riw~Cw`fg2WlU978BbU|wOuNBJqG!(P~EfD~CRlQcZ#X,k)u3vWs@u2]ksg;wEx'f@q1_2Wg.j]uNpn~FRfqJv]!15x'h{qG!(@@=IzK~CRl^j6v(us5x4i,#T(2WmY?C2F{1>Kq<aj1!*jTqIsBv=Wld~Cw`fj2Wl[j`v0u*~>RlT=c>Z,k#u3vWs@u2]kq<c1Z+jTqIsBv=Wle~Cw`fn2Wl]dn1#c(a(b^a2!b/bAT(bj!aDa7bu,a_a{c0!2T0g:v>ReD2@G{42@G{5~DpM~<5rc=Bx6i>{RT#RnI@zCx]y]z:2Jv[!zr5Awyk]9]k]dD(Y+X#6Vz.g=wKtgwhaCwgmTWj2Lu,w%_+/[y-B;b^xeg3u3Rj-2@bX{*KrJ<!+'@Wg(g?QRlC@Jv`!%b[zIwsfII}8JQ_@w|kW|=Jv(%!AqcOuNBJvEzh!bYzjLs@wP#(0!oy@>RkdJwMZtc3Dtd@BcG#T'9bWxg2@2Fznd*#Y+;2x'c}w<zizixNgwa#Z'U+!/!a'!a+w~g~z6wcn{Rn}wcnzRn|5Rh%=]nJg5vuRmvNvdRlvcprJu}w*az*a#!%.a.'Bot9qT]kj@Wg'ay2Gzv@Jv`!%b[zEwsfHI}1;ck#Ux`<Cbbx_Lu+w!a&0*!wko*wwo,So,}6Juqxf!E}PigQuyRm`d3(`#8>Rn%:A5B;bZ~%KvhCa!a2!x>k7#Uxb@b{#xaRk7Jw0!)>wwhlShl}6>wwhmShm}6CJvB!.x'hhvj{!!5Bwkhhbaz}x'hivjz~!5Bwkhibaz|xEhTrNu,v-vpD!a%&/)a3a.,%Ro2t[CE{)@3re9b]{%wjo09:rgc:Z&Ro6=<riifuaw&RmoKrNA!%(Ro4>Ro89;Ri`dSaL'UYzxZb)7Rka3xRhT&!,!#^1U}vbaz{>>@=be}yC@:D5bazzKu+A&!}{?ba}y>>@=be}wxBh[t`u~vJvr!%a!a()a,a0a4RoC=]o;Ju(!%RoGRhdwjh`=]oAg>w#Ro?g5vuRo=NvdRl|Ku]C.!&;RoEJvB!%RoORoMBx'h[v+_?w~h`}~5?w~hd~!xKh]oiptu-utv.vp!#%&a30a@a'a+(a/aOp(o~p!RoDJu(!%RoHRhewjha=]oBNvdRl}g>w#Ro@g5vuRo>c[#X']o<CauRoRAd-#Y':RkpauRoQKu]C.!&;RoFJvB!%RoNRoPBx'h]v+_?w~ha}t5?w~he}ue!/UbhYacXaW^Tc&a;b:a-c/#b&aja1(!cL+!bKbt!bmcRc9aIc?8[yW3Dtt94Rg`Jv}!&SiRMzBhEebShEMNuPRe>x7gL#TzuwjirRipc<Z&>on;>z=h-MSh.Mwqczx'a7vj&!>Re4@=ResJt__NuPRi*NuPRi)j]uNr|~FRfzKrJ>_+@Wfy@Wf]2WocKrJ<!+'@Wg%g/QRl@@Jv`!&awRl<wsfFIzgLu(w*!.*&ShBMwvhIRhI9;RhNx1hK'!#Sn]Mx1hK~0!#:2<H~7cNu+w7D*'1ZtW>Rn1~?rOc:Z&Rn2=<rQ<7wjh&=BSnLMc]#X(6Vz)w[b=a!U#9wzgMc3#&(RgMRitRis<x,gKt`ax!&+SioM=BSilMc3#&(RgKRinRimKurB,!&SiQMzBhDebShDM6BJQ!(P~Efx978B2@@=I}WLrJw!!,a*&@G}O@9wkibRid@@x'fKwC!&SlDMSfLMjUv~Q~EfKKv3@a+!(hFv-]mpx/hYZ(C5RiWz<o/MwkhY?So/M@x,gbvfB*&!SgEM:SoeeehFu3:Rgbda(,^TZa)X/7Sg[eb:2RgI~BrMC@wgkc:wwkcRerx3h(uUvK!&*,SnOM4Sh*MArRg;wHRh(x=h;rJvPwI!a4',a'0@Wg&=BSh/Mg>w=Rh=g3w*wwgGRgGcW(X#;Sg}M2Gzk@Jv`!&awRl=wsfGIz`dKZ*T'Y-:RhR7RhQg5u-p`j6v(us5d,#Y+~Awkia?RicOuNBwkibba}Ld6p~tyu_vbAa'a+!a/'a3aEa8a!>Sh,ebJv{!&Sh@ebSaReb9;SgwebNuPRi(NvdRl)NuPRi'hHu^<Rm^Jvv_@Wl(g;u1Si/ebKu'B&!*Sh?eb@Wl'z@aPeb95Si.ebcpputyvjB)!,&a+0a%ShAMWeK@G}C@WfJ9;RhMwvhH9w{ia}ix,hJvRA1(!zAn[MRhHx1hJ~*!#hFv(BSn[MBJQ!(@@=I~'978B2@@=I}2db.Ua<'X}+T#a0XaG2G}E;wkg|wuh!Rh!x,hZu,@)!&So0MVy)C5RiXACJvB!&5RiY5RiZg8w)cG}*T#2@bU}=KsA>(!a.3wkhZba~(x,h^u(A!&(SoCMRhb5Bz=h[eb?w~hb~6x,h_u(A!&(SoDMRhc5Bz=h]eb?w~hc~6e)aA1T#T,^^^c-bMb&blcPaP(a/!0!bA=b5c@a(!bfbrc#2afwmhARnjwchORnp2Wlf3DtsNvdRl-2@wpa<]m0bx(#:awRk2@Jw3!%RfhwpfgRlnKQB%!(G{V@G|'NuuRl6d='T+Y#VyUg<v~Rl~==G|<Jv+'!aYShC}6@B<5?ba~8@Jw3'!g2QRljhLrpWlOd+#Y'g.w'rIg>w*wgj@g-u0Rj@Lu+wT&)ZtUauq]~GrGci&U#F|39:rELrNvj!.%*RhCwunfw~nf~:9;Ri]>wtnhg;wHRnhx3hDs@v~!/+'@Wfr@9RkSNu&Rlo=@<5GzoKs0@_+@Wl+@awRkmJuh!-3d(}pY#qWJvj!%Rm(:Jw3!%Rm,Rm*de&!1U-U#`)Re;@G|.@9Ri82@wjfvRlq=@<5GzpLvOvr!).&2RlF8Rf`C=x!eE{.Jw3_g2QRlkhLrpWlPde(!#U{s,UXa*Ta'[y'g:v>ReS;x0PZ&RnlRnn~HrKJw1}f!=x!eB|2w]aP(#Xa&a*Ta.Ua2a7=]iOd'#Y&Ro&WnWg;u.RiDg6vjRiBNvdRlzhNvj]nYJuW_2Wm3x)kFze{9d])!a.!,Y01!#&aC!a3RndC=ox~BrC@2b^{pg,rlse7x'ksuq!%Rm.E{xidw(wBRmGx9o+)X#wwo-So-}69:Rl4@xSf@a#XZ'X)X,Ta(/ARl8b[xc>RfY:RlI:RfQwlg.ARl:9;Rlwdn'#^XafaQa1X1TaHTa)@b[{zcZ#X'7RkwWg@Ou4ARn&x)kG#{,g7u/RkGdH'U#Y*Vz'Wm&CARm|bx#(A]gUbUzJj9Q~=d,#Y(56H}l978H{U7d,0#U*2>ABb_xZ978BbU{e~AJQ{g!978BbU{hxMh?ad{oUYZ.x1h?{l!#:2<H{mx3n[t{vl!,&a%3Ro(z=iS}6ARnr=Bwsn^wvn`Rnbd`*T}B0!#^X'BG{c9b]{a>>@=be}F?JvS!&BG{d7BG}(Bde#`a1X,Ya@!a'P~=wxf@2bZ}I56B2@@=aybb}08@55B9;5bb}<j3vLv;<Jw3&!>Rfg=ayb^}&OuNBKuLA!)a!P~=x#fD{f2@>==<bbzl?C972@@=Ix^d6rSu,v7w*C(0a)a6#B+a%!sQ[y?3Dt%3[xn~<5rLOu!5p@Ku+D#'!t7~GrP~?rNKvlaya7'!h+v-5qMg=t|cd,U#5AAaa5Abb{S@52B5@a[@52B5Gx[iXueu;d<#`a(!/549C;ag>23ExY5@Dah89b^~689Jv)!~2b[~1Lv'w(%*!a#bX|aPrmawRe]keu7uhv-q6rxu,q`xTo]/a5aU!bNaDXbi!b-!ao!b<bwA!#5@B932:aV2G|:d-)Y#hJrL>RhG<7@C5<H|_=Cau:5aj5@B932:bJ|ng>vIbs)#?C2F|9jPv0w.vISh-MKvUaz(.!9ABbb|[5;5<H|Eg>unwfh;9:4E|YjQsBt|vjx'hYq3!(?C2F|J:2<BaY?C2F|GOu!5x,g|p{ah!-(?C2F|c9:4E|OjXuvvNr}:Rh&i[w*t|cd+U#jJvsu)vsSn~Mkfrmu9p}u7vwv]So!McW#Xa!ax5@A5aY:5;5<H|>kJv~vYrquJu3x4ib#T)2@SmZM?C2F|Bj:rmu9@xPhI(a*a#U#`a3-5Abb|L~@:RhK9:4E|0@52B5G|#C::aY?C2F|-:2<BaY?C2F|.5Jvk!a)javYrquJu3x4ia#T)2@SmYM?C2F|HAxPhH(!a#U#`a*-5Abb|4~@:RhJ9:4E|R@52B5G|F:2<BaY?C2F|Sc^#Xa2j=Qq5CJvB!-g<v{z;hhM?C2F|Zi[vrv{z;hiM?C2F|XKsA>!a)-g<v{z;h[eb?C2F|]i[vrv{z;h]eb?C2F|^iZu.vix,hZq3ah!.(?C2F|QOu!5ShXM:2<BaY?C2F|P", 13494, 2713, 49, 25, 61);
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region node_modules/entities/dist/internal/bin-trie-flags.js
|
|
260
|
+
/**
|
|
261
|
+
* Bit flags & masks for the binary trie encoding used for entity decoding.
|
|
262
|
+
*
|
|
263
|
+
* The trie is a flat `Uint16Array`. Every node starts with one header word:
|
|
264
|
+
*
|
|
265
|
+
* 15..14 VALUE_LENGTH Number of words the value occupies, +1.
|
|
266
|
+
* 0 = no value; 1 = value inline in bits 12..0;
|
|
267
|
+
* 2/3 = value in the 1/2 words after the header.
|
|
268
|
+
* 13 FLAG13 If VALUE_LENGTH > 0: semicolon required ("strict"
|
|
269
|
+
* entity; `;` is never stored as a branch).
|
|
270
|
+
* If VALUE_LENGTH == 0: this node is a compact run.
|
|
271
|
+
* 12..7 BRANCH_LENGTH Number of branches (or run length for runs).
|
|
272
|
+
* 6..0 JUMP_TABLE Jump-table offset / single-branch char / first
|
|
273
|
+
* run char (see below).
|
|
274
|
+
*
|
|
275
|
+
* Branch data follows the header and any value words. Its shape is selected
|
|
276
|
+
* by (JUMP_TABLE, BRANCH_LENGTH) in the header:
|
|
277
|
+
*
|
|
278
|
+
* Single branch JUMP_TABLE = the only child's char, BRANCH_LENGTH = 0.
|
|
279
|
+
* No branch words; the child node follows immediately.
|
|
280
|
+
* Jump table JUMP_TABLE = first covered char (> 0), BRANCH_LENGTH =
|
|
281
|
+
* table length. One word per covered char: 0 = no branch,
|
|
282
|
+
* otherwise the child's offset from the END of the table,
|
|
283
|
+
* +1 (so 0 stays the no-branch sentinel).
|
|
284
|
+
* Dictionary JUMP_TABLE = 0, BRANCH_LENGTH = number of branches.
|
|
285
|
+
* ceil(n/2) words of sorted keys packed two per word
|
|
286
|
+
* (low byte first), then n pointer words storing the
|
|
287
|
+
* child's offset from the END of the branch data.
|
|
288
|
+
* Compact run VALUE_LENGTH = 0, FLAG13 set. BRANCH_LENGTH = run
|
|
289
|
+
* length (3..63), JUMP_TABLE = first char; remaining run
|
|
290
|
+
* chars packed two per word after the header. The target
|
|
291
|
+
* node follows the packed words immediately.
|
|
292
|
+
*
|
|
293
|
+
* Pointers are end-relative (rather than relative to the pointer's own
|
|
294
|
+
* position) because that makes the common "child encoded right after the
|
|
295
|
+
* branch data" case a small constant, which compresses far better. Offsets
|
|
296
|
+
* to already-encoded (shared) nodes wrap via uint16 modulo arithmetic; the
|
|
297
|
+
* decoder masks navigation results with `& 0xff_ff` to match.
|
|
298
|
+
*/
|
|
299
|
+
var BinTrieFlags;
|
|
300
|
+
(function(BinTrieFlags) {
|
|
301
|
+
BinTrieFlags[BinTrieFlags["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH";
|
|
302
|
+
BinTrieFlags[BinTrieFlags["FLAG13"] = 8192] = "FLAG13";
|
|
303
|
+
BinTrieFlags[BinTrieFlags["BRANCH_LENGTH"] = 8064] = "BRANCH_LENGTH";
|
|
304
|
+
BinTrieFlags[BinTrieFlags["JUMP_TABLE"] = 127] = "JUMP_TABLE";
|
|
305
|
+
/** Bits 12..0: the inline value of a VALUE_LENGTH = 1 header word. */
|
|
306
|
+
BinTrieFlags[BinTrieFlags["VALUE_MASK"] = 8191] = "VALUE_MASK";
|
|
307
|
+
})(BinTrieFlags || (BinTrieFlags = {}));
|
|
308
|
+
//#endregion
|
|
309
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
|
|
310
|
+
function _typeof(o) {
|
|
311
|
+
"@babel/helpers - typeof";
|
|
312
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
313
|
+
return typeof o;
|
|
314
|
+
} : function(o) {
|
|
315
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
316
|
+
}, _typeof(o);
|
|
317
|
+
}
|
|
318
|
+
//#endregion
|
|
319
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
|
|
320
|
+
function toPrimitive(t, r) {
|
|
321
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
322
|
+
var e = t[Symbol.toPrimitive];
|
|
323
|
+
if (void 0 !== e) {
|
|
324
|
+
var i = e.call(t, r || "default");
|
|
325
|
+
if ("object" != _typeof(i)) return i;
|
|
326
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
327
|
+
}
|
|
328
|
+
return ("string" === r ? String : Number)(t);
|
|
329
|
+
}
|
|
330
|
+
//#endregion
|
|
331
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
|
|
332
|
+
function toPropertyKey(t) {
|
|
333
|
+
var i = toPrimitive(t, "string");
|
|
334
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
335
|
+
}
|
|
336
|
+
//#endregion
|
|
337
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
|
|
338
|
+
function _defineProperty(e, r, t) {
|
|
339
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
340
|
+
value: t,
|
|
341
|
+
enumerable: !0,
|
|
342
|
+
configurable: !0,
|
|
343
|
+
writable: !0
|
|
344
|
+
}) : e[r] = t, e;
|
|
345
|
+
}
|
|
346
|
+
//#endregion
|
|
347
|
+
//#region node_modules/entities/dist/decode.js
|
|
348
|
+
var CharCodes;
|
|
349
|
+
(function(CharCodes) {
|
|
350
|
+
CharCodes[CharCodes["AMP"] = 38] = "AMP";
|
|
351
|
+
CharCodes[CharCodes["NUM"] = 35] = "NUM";
|
|
352
|
+
CharCodes[CharCodes["SEMI"] = 59] = "SEMI";
|
|
353
|
+
CharCodes[CharCodes["EQUALS"] = 61] = "EQUALS";
|
|
354
|
+
CharCodes[CharCodes["ZERO"] = 48] = "ZERO";
|
|
355
|
+
CharCodes[CharCodes["NINE"] = 57] = "NINE";
|
|
356
|
+
CharCodes[CharCodes["LOWER_A"] = 97] = "LOWER_A";
|
|
357
|
+
CharCodes[CharCodes["LOWER_X"] = 120] = "LOWER_X";
|
|
358
|
+
})(CharCodes || (CharCodes = {}));
|
|
359
|
+
/** Bit that needs to be set to convert an upper case ASCII character to lower case */
|
|
360
|
+
var TO_LOWER_BIT = 32;
|
|
361
|
+
var CONSUMED_SHIFT = 21;
|
|
362
|
+
var CODE_POINT_MASK = 2097151;
|
|
363
|
+
/**
|
|
364
|
+
* Reserved consumed field for counts of at least 2047 characters after `&`.
|
|
365
|
+
* The true count is in `longNumericConsumed`.
|
|
366
|
+
*/
|
|
367
|
+
var CONSUMED_OVERFLOW = 2047;
|
|
368
|
+
/**
|
|
369
|
+
* Side channel for numeric entities of at least 2048 characters including
|
|
370
|
+
* `&`. Set by `parseNumericEntity` when its consumed count reaches the
|
|
371
|
+
* reserved value `CONSUMED_OVERFLOW`; callers read the true count from here.
|
|
372
|
+
* A module-level slot avoids a tuple allocation on the hot path.
|
|
373
|
+
*/
|
|
374
|
+
var longNumericConsumed = 0;
|
|
375
|
+
/**
|
|
376
|
+
* Extract the consumed count from a `parseNumericEntity` packed result,
|
|
377
|
+
* recovering the true length from `longNumericConsumed` when the packed
|
|
378
|
+
* field contains the sentinel. Read it before the next `parseNumericEntity`
|
|
379
|
+
* call, which may overwrite the side channel. This helper owns that protocol.
|
|
380
|
+
* @param packed Packed result of `parseNumericEntity`.
|
|
381
|
+
*/
|
|
382
|
+
function unpackConsumed(packed) {
|
|
383
|
+
const consumed = packed >>> CONSUMED_SHIFT;
|
|
384
|
+
return consumed === CONSUMED_OVERFLOW ? longNumericConsumed : consumed;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Unsigned subtraction trick: (code - lo) >>> 0 wraps negatives to large
|
|
388
|
+
* values, so a single `<=` covers the entire [lo..hi] range check.
|
|
389
|
+
* @param code Code point to check.
|
|
390
|
+
*/
|
|
391
|
+
function isNumber(code) {
|
|
392
|
+
return code - CharCodes.ZERO >>> 0 <= 9;
|
|
393
|
+
}
|
|
394
|
+
function isHexadecimalCharacter(code) {
|
|
395
|
+
return (code | TO_LOWER_BIT) - CharCodes.LOWER_A >>> 0 <= 5;
|
|
396
|
+
}
|
|
397
|
+
function isAlpha(code) {
|
|
398
|
+
return (code | TO_LOWER_BIT) - CharCodes.LOWER_A >>> 0 <= 25;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Checks if the given character is a valid end character for an entity in an attribute.
|
|
402
|
+
*
|
|
403
|
+
* Attribute values that aren't terminated properly aren't parsed, and shouldn't lead to a parser error.
|
|
404
|
+
* See the example in https://html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state
|
|
405
|
+
* @param code Code point to check.
|
|
406
|
+
*/
|
|
407
|
+
function isEntityInAttributeInvalidEnd(code) {
|
|
408
|
+
return code === CharCodes.EQUALS || isAlpha(code) || isNumber(code);
|
|
409
|
+
}
|
|
410
|
+
var EntityDecoderState;
|
|
411
|
+
(function(EntityDecoderState) {
|
|
412
|
+
EntityDecoderState[EntityDecoderState["EntityStart"] = 0] = "EntityStart";
|
|
413
|
+
EntityDecoderState[EntityDecoderState["NumericStart"] = 1] = "NumericStart";
|
|
414
|
+
EntityDecoderState[EntityDecoderState["NumericDecimal"] = 2] = "NumericDecimal";
|
|
415
|
+
EntityDecoderState[EntityDecoderState["NumericHex"] = 3] = "NumericHex";
|
|
416
|
+
EntityDecoderState[EntityDecoderState["NamedEntity"] = 4] = "NamedEntity";
|
|
417
|
+
})(EntityDecoderState || (EntityDecoderState = {}));
|
|
418
|
+
/**
|
|
419
|
+
* Decoding mode for named entities.
|
|
420
|
+
*/
|
|
421
|
+
var DecodingMode;
|
|
422
|
+
(function(DecodingMode) {
|
|
423
|
+
/** Entities in text nodes that can end with any character. */
|
|
424
|
+
DecodingMode[DecodingMode["Legacy"] = 0] = "Legacy";
|
|
425
|
+
/** Only allow entities terminated with a semicolon. */
|
|
426
|
+
DecodingMode[DecodingMode["Strict"] = 1] = "Strict";
|
|
427
|
+
/** Entities in attributes have limitations on ending characters. */
|
|
428
|
+
DecodingMode[DecodingMode["Attribute"] = 2] = "Attribute";
|
|
429
|
+
})(DecodingMode || (DecodingMode = {}));
|
|
430
|
+
/**
|
|
431
|
+
* Determines the branch of the current node that is taken given the current
|
|
432
|
+
* character. This function is used to traverse the trie.
|
|
433
|
+
*
|
|
434
|
+
* See `BinTrieFlags` for the branch-data layouts handled here.
|
|
435
|
+
* @param decodeTree The trie.
|
|
436
|
+
* @param current The current node's header word.
|
|
437
|
+
* @param nodeIndex Index of the node's first branch-data word (the header
|
|
438
|
+
* plus any value words have been skipped by the caller).
|
|
439
|
+
* @param char The current character.
|
|
440
|
+
* @returns The index of the next node, or -1 if no branch is taken.
|
|
441
|
+
*/
|
|
442
|
+
function determineBranch(decodeTree, current, nodeIndex, char) {
|
|
443
|
+
const branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
|
|
444
|
+
const jumpOffset = current & BinTrieFlags.JUMP_TABLE;
|
|
445
|
+
if (jumpOffset) {
|
|
446
|
+
if (branchCount === 0) return char === jumpOffset ? nodeIndex : -1;
|
|
447
|
+
const slot = char - jumpOffset;
|
|
448
|
+
if (slot >>> 0 >= branchCount) return -1;
|
|
449
|
+
const stored = decodeTree[nodeIndex + slot];
|
|
450
|
+
return stored === 0 ? -1 : nodeIndex + branchCount + stored - 1 & 65535;
|
|
451
|
+
}
|
|
452
|
+
if (branchCount === 0) return -1;
|
|
453
|
+
const packedKeySlots = branchCount + 1 >> 1;
|
|
454
|
+
const branchEnd = nodeIndex + packedKeySlots + branchCount;
|
|
455
|
+
for (let index = 0; index < branchCount; index++) {
|
|
456
|
+
const key = decodeTree[nodeIndex + (index >> 1)] >> ((index & 1) << 3) & 255;
|
|
457
|
+
if (key === char) return branchEnd + decodeTree[nodeIndex + packedKeySlots + index] & 65535;
|
|
458
|
+
if (key > char) return -1;
|
|
459
|
+
}
|
|
460
|
+
return -1;
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Read the decoded value from a trie node.
|
|
464
|
+
* @param decodeTree The trie.
|
|
465
|
+
* @param nodeIndex The index of the node.
|
|
466
|
+
* @param valueLength The length of the value (1, 2, or 3).
|
|
467
|
+
* @returns The decoded string.
|
|
468
|
+
*/
|
|
469
|
+
function readTrieValue(decodeTree, nodeIndex, valueLength) {
|
|
470
|
+
if (valueLength === 1) return String.fromCharCode(decodeTree[nodeIndex] & BinTrieFlags.VALUE_MASK);
|
|
471
|
+
if (valueLength === 2) return String.fromCharCode(decodeTree[nodeIndex + 1]);
|
|
472
|
+
return String.fromCharCode(decodeTree[nodeIndex + 1], decodeTree[nodeIndex + 2]);
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* Parse a numeric entity (`&#DDD;` or `&#xHHH;`).
|
|
476
|
+
*
|
|
477
|
+
* Encodes the result as `(consumed << CONSUMED_SHIFT) | codepoint` (see
|
|
478
|
+
* the packing comment at the top of the file; overlong entities spill
|
|
479
|
+
* their length into `longNumericConsumed`). Returns 0 when no digits were
|
|
480
|
+
* found.
|
|
481
|
+
*
|
|
482
|
+
* This is the sync counterpart of the streaming
|
|
483
|
+
* `EntityDecoder#stateNumericDecimal` / `#stateNumericHex`. Digit parsing
|
|
484
|
+
* matches those methods; only this packed result needs a value clamp.
|
|
485
|
+
* @param input The input string.
|
|
486
|
+
* @param numberStart Index of the `#` character.
|
|
487
|
+
* @param inputLength Cached `input.length`.
|
|
488
|
+
*/
|
|
489
|
+
function parseNumericEntity(input, numberStart, inputLength) {
|
|
490
|
+
let offset = numberStart + 1;
|
|
491
|
+
let cp = 0;
|
|
492
|
+
let digitStart = offset;
|
|
493
|
+
if (offset < inputLength && (input.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {
|
|
494
|
+
offset += 1;
|
|
495
|
+
digitStart = offset;
|
|
496
|
+
while (offset < inputLength) {
|
|
497
|
+
const char = input.charCodeAt(offset);
|
|
498
|
+
if (isNumber(char)) cp = cp * 16 + (char - CharCodes.ZERO);
|
|
499
|
+
else if (isHexadecimalCharacter(char)) cp = cp * 16 + ((char | TO_LOWER_BIT) - CharCodes.LOWER_A + 10);
|
|
500
|
+
else break;
|
|
501
|
+
offset += 1;
|
|
502
|
+
}
|
|
503
|
+
} else while (offset < inputLength) {
|
|
504
|
+
const digit = input.charCodeAt(offset) - CharCodes.ZERO;
|
|
505
|
+
if (digit >>> 0 > 9) break;
|
|
506
|
+
cp = cp * 10 + digit;
|
|
507
|
+
offset += 1;
|
|
508
|
+
}
|
|
509
|
+
if (offset === digitStart) return 0;
|
|
510
|
+
if (offset < inputLength && input.charCodeAt(offset) === CharCodes.SEMI) offset += 1;
|
|
511
|
+
if (cp > 1114111) cp = 1114112;
|
|
512
|
+
let consumed = offset - numberStart;
|
|
513
|
+
if (consumed >= CONSUMED_OVERFLOW) {
|
|
514
|
+
longNumericConsumed = consumed;
|
|
515
|
+
consumed = CONSUMED_OVERFLOW;
|
|
516
|
+
}
|
|
517
|
+
return consumed << CONSUMED_SHIFT | cp;
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Decode all entities in `input` using the HTML trie.
|
|
521
|
+
*
|
|
522
|
+
* Hard-wired to `htmlDecodeTree`: the inline root navigation below assumes
|
|
523
|
+
* the HTML root's jump-table shape, so this must not be generalized to
|
|
524
|
+
* other tries (the XML trie's dictionary root would silently match no
|
|
525
|
+
* entities — `decodeXML` has its own hand-coded fast path instead).
|
|
526
|
+
* @param input The string to decode.
|
|
527
|
+
* @param isStrict Only match semicolon-terminated entities.
|
|
528
|
+
* @param isAttribute Whether to apply attribute-specific parsing rules (disallowing certain non-semicolon terminators).
|
|
529
|
+
* @returns The decoded string.
|
|
530
|
+
*/
|
|
531
|
+
function decodeWithTrie(input, isStrict, isAttribute) {
|
|
532
|
+
const decodeTree = htmlDecodeTree;
|
|
533
|
+
let offset = input.indexOf("&");
|
|
534
|
+
if (offset < 0) return input;
|
|
535
|
+
const inputLength = input.length;
|
|
536
|
+
let chunkStart = 0;
|
|
537
|
+
let result = "";
|
|
538
|
+
const root = decodeTree[0];
|
|
539
|
+
const rootJumpOffset = root & BinTrieFlags.JUMP_TABLE;
|
|
540
|
+
const rootBranchCount = (root & BinTrieFlags.BRANCH_LENGTH) >> 7;
|
|
541
|
+
do {
|
|
542
|
+
const entityStart = offset + 1;
|
|
543
|
+
const firstChar = input.charCodeAt(entityStart);
|
|
544
|
+
let consumed;
|
|
545
|
+
let value;
|
|
546
|
+
if (firstChar === CharCodes.NUM) {
|
|
547
|
+
const packed = parseNumericEntity(input, entityStart, inputLength);
|
|
548
|
+
consumed = unpackConsumed(packed);
|
|
549
|
+
if (isStrict && consumed > 0 && input.charCodeAt(entityStart + consumed - 1) !== CharCodes.SEMI) consumed = 0;
|
|
550
|
+
value = consumed === 0 ? "" : codePointToString(packed & CODE_POINT_MASK);
|
|
551
|
+
} else if (isAlpha(firstChar)) {
|
|
552
|
+
consumed = 0;
|
|
553
|
+
value = "";
|
|
554
|
+
const rootSlotIndex = firstChar - rootJumpOffset;
|
|
555
|
+
let nodeIndex;
|
|
556
|
+
if (rootSlotIndex >>> 0 < rootBranchCount) {
|
|
557
|
+
const stored = decodeTree[1 + rootSlotIndex];
|
|
558
|
+
nodeIndex = stored === 0 ? -1 : rootBranchCount + stored & 65535;
|
|
559
|
+
} else nodeIndex = -1;
|
|
560
|
+
let bestNodeIndex = 0;
|
|
561
|
+
let bestValueLength = 0;
|
|
562
|
+
let current = nodeIndex < 0 ? 0 : decodeTree[nodeIndex];
|
|
563
|
+
let index = entityStart + 1;
|
|
564
|
+
trie: while (index < inputLength) {
|
|
565
|
+
while ((current & (BinTrieFlags.VALUE_LENGTH | BinTrieFlags.FLAG13)) === 0 && (current & BinTrieFlags.JUMP_TABLE) !== 0) {
|
|
566
|
+
const jumpOffset = current & BinTrieFlags.JUMP_TABLE;
|
|
567
|
+
const branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
|
|
568
|
+
if (branchCount === 0) {
|
|
569
|
+
if (input.charCodeAt(index) !== jumpOffset) break trie;
|
|
570
|
+
nodeIndex += 1;
|
|
571
|
+
} else {
|
|
572
|
+
const slot = input.charCodeAt(index) - jumpOffset;
|
|
573
|
+
if (slot >>> 0 >= branchCount) break trie;
|
|
574
|
+
const stored = decodeTree[nodeIndex + 1 + slot];
|
|
575
|
+
if (stored === 0) break trie;
|
|
576
|
+
nodeIndex = nodeIndex + branchCount + stored & 65535;
|
|
577
|
+
}
|
|
578
|
+
current = decodeTree[nodeIndex];
|
|
579
|
+
index += 1;
|
|
580
|
+
if (index >= inputLength) break trie;
|
|
581
|
+
}
|
|
582
|
+
if ((current & (BinTrieFlags.VALUE_LENGTH | BinTrieFlags.FLAG13)) === BinTrieFlags.FLAG13) {
|
|
583
|
+
const runLength = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
|
|
584
|
+
if (input.charCodeAt(index) !== (current & BinTrieFlags.JUMP_TABLE)) break;
|
|
585
|
+
index += 1;
|
|
586
|
+
const remaining = runLength - 1;
|
|
587
|
+
let wordIndex = nodeIndex + 1;
|
|
588
|
+
let charIndexInPacked = 0;
|
|
589
|
+
for (; charIndexInPacked + 1 < remaining; charIndexInPacked += 2) {
|
|
590
|
+
const packed = decodeTree[wordIndex];
|
|
591
|
+
if (input.charCodeAt(index) !== (packed & 255)) break trie;
|
|
592
|
+
index += 1;
|
|
593
|
+
if (input.charCodeAt(index) !== (packed >> 8 & 255)) break trie;
|
|
594
|
+
index += 1;
|
|
595
|
+
wordIndex += 1;
|
|
596
|
+
}
|
|
597
|
+
if (charIndexInPacked < remaining) {
|
|
598
|
+
if (input.charCodeAt(index) !== (decodeTree[wordIndex] & 255)) break;
|
|
599
|
+
index += 1;
|
|
600
|
+
}
|
|
601
|
+
nodeIndex += 1 + (runLength >> 1);
|
|
602
|
+
current = decodeTree[nodeIndex];
|
|
603
|
+
continue;
|
|
604
|
+
}
|
|
605
|
+
const valueLength = current >>> 14;
|
|
606
|
+
const char = input.charCodeAt(index);
|
|
607
|
+
if (valueLength !== 0) {
|
|
608
|
+
if (char === CharCodes.SEMI) {
|
|
609
|
+
consumed = index - entityStart + 1;
|
|
610
|
+
value = valueLength === 1 ? String.fromCharCode(current & BinTrieFlags.VALUE_MASK) : readTrieValue(decodeTree, nodeIndex, valueLength);
|
|
611
|
+
break;
|
|
612
|
+
}
|
|
613
|
+
if (!isStrict && (current & BinTrieFlags.FLAG13) === 0) {
|
|
614
|
+
consumed = index - entityStart;
|
|
615
|
+
bestNodeIndex = nodeIndex;
|
|
616
|
+
bestValueLength = valueLength;
|
|
617
|
+
}
|
|
618
|
+
if (valueLength === 1) break;
|
|
619
|
+
}
|
|
620
|
+
const next = determineBranch(decodeTree, current, nodeIndex + (valueLength || 1), char);
|
|
621
|
+
if (next < 0) break;
|
|
622
|
+
nodeIndex = next;
|
|
623
|
+
current = decodeTree[nodeIndex];
|
|
624
|
+
index += 1;
|
|
625
|
+
}
|
|
626
|
+
if (value === "") {
|
|
627
|
+
const finalVL = current >>> 14;
|
|
628
|
+
if (finalVL !== 0 && !isStrict && (current & BinTrieFlags.FLAG13) === 0) {
|
|
629
|
+
consumed = index - entityStart;
|
|
630
|
+
bestNodeIndex = nodeIndex;
|
|
631
|
+
bestValueLength = finalVL;
|
|
632
|
+
}
|
|
633
|
+
if (consumed > 0) value = readTrieValue(decodeTree, bestNodeIndex, bestValueLength);
|
|
634
|
+
}
|
|
635
|
+
} else {
|
|
636
|
+
consumed = 0;
|
|
637
|
+
value = "";
|
|
638
|
+
}
|
|
639
|
+
if (consumed === 0 || isAttribute && firstChar !== CharCodes.NUM && input.charCodeAt(entityStart + consumed - 1) !== CharCodes.SEMI && entityStart + consumed < inputLength && isEntityInAttributeInvalidEnd(input.charCodeAt(entityStart + consumed))) offset = entityStart;
|
|
640
|
+
else {
|
|
641
|
+
if (chunkStart < offset) result += input.slice(chunkStart, offset);
|
|
642
|
+
result += value;
|
|
643
|
+
offset = chunkStart = entityStart + consumed;
|
|
644
|
+
}
|
|
645
|
+
if (input.charCodeAt(offset) !== CharCodes.AMP) offset = input.indexOf("&", offset);
|
|
646
|
+
} while (offset >= 0);
|
|
647
|
+
return result + input.slice(chunkStart);
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* Decodes an HTML string, requiring all entities to be terminated by a semicolon.
|
|
651
|
+
* @param htmlString The string to decode.
|
|
652
|
+
* @returns The decoded string.
|
|
653
|
+
*/
|
|
654
|
+
function decodeHTMLStrict(htmlString) {
|
|
655
|
+
return decodeWithTrie(htmlString, true, false);
|
|
656
|
+
}
|
|
657
|
+
//#endregion
|
|
658
|
+
//#region src/common/utils.ts
|
|
659
|
+
/**
|
|
660
|
+
* Common utility functions exposed through `md.utils` for use by plugins.
|
|
661
|
+
*
|
|
662
|
+
* @module md.utils
|
|
663
|
+
*/
|
|
664
|
+
var utils_exports = /* @__PURE__ */ __exportAll({
|
|
665
|
+
arrayReplaceAt: () => arrayReplaceAt,
|
|
666
|
+
asciiTrim: () => asciiTrim,
|
|
667
|
+
callable: () => callable,
|
|
668
|
+
escapeHtml: () => escapeHtml,
|
|
669
|
+
escapeRE: () => escapeRE,
|
|
670
|
+
fromCodePoint: () => fromCodePoint,
|
|
671
|
+
isMdAsciiPunct: () => isMdAsciiPunct,
|
|
672
|
+
isPunctChar: () => isPunctChar,
|
|
673
|
+
isPunctCharCode: () => isPunctCharCode,
|
|
674
|
+
isSpace: () => isSpace,
|
|
675
|
+
isValidEntityCode: () => isValidEntityCode,
|
|
676
|
+
isWhiteSpace: () => isWhiteSpace,
|
|
677
|
+
lib: () => lib,
|
|
678
|
+
normalizeReference: () => normalizeReference,
|
|
679
|
+
unescapeAll: () => unescapeAll,
|
|
680
|
+
unescapeMd: () => unescapeMd
|
|
681
|
+
});
|
|
682
|
+
function callable(cls) {
|
|
683
|
+
const wrapper = function(...args) {
|
|
684
|
+
return Reflect.construct(cls, args, new.target && new.target !== wrapper ? new.target : cls);
|
|
685
|
+
};
|
|
686
|
+
Object.defineProperty(wrapper, "name", { value: cls.name });
|
|
687
|
+
Object.setPrototypeOf(wrapper, cls);
|
|
688
|
+
wrapper.prototype = cls.prototype;
|
|
689
|
+
return wrapper;
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* Returns a copy of a token array with the token at `pos` replaced by
|
|
693
|
+
* `newElements`. Used to transform token streams without modifying the
|
|
694
|
+
* original array.
|
|
695
|
+
*/
|
|
696
|
+
function arrayReplaceAt(src, pos, newElements) {
|
|
697
|
+
return [].concat(src.slice(0, pos), newElements, src.slice(pos + 1));
|
|
698
|
+
}
|
|
699
|
+
/** Checks whether a code point can be decoded from a numeric HTML entity. */
|
|
700
|
+
function isValidEntityCode(c) {
|
|
701
|
+
if (c >= 55296 && c <= 57343) return false;
|
|
702
|
+
if (c >= 64976 && c <= 65007) return false;
|
|
703
|
+
if ((c & 65535) === 65535 || (c & 65535) === 65534) return false;
|
|
704
|
+
if (c >= 0 && c <= 8) return false;
|
|
705
|
+
if (c === 11) return false;
|
|
706
|
+
if (c >= 14 && c <= 31) return false;
|
|
707
|
+
if (c >= 127 && c <= 159) return false;
|
|
708
|
+
if (c > 1114111) return false;
|
|
709
|
+
return true;
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Converts a Unicode code point to a string, like `String.fromCodePoint()`,
|
|
713
|
+
* but does not throw for invalid input.
|
|
714
|
+
*/
|
|
715
|
+
function fromCodePoint(c) {
|
|
716
|
+
if (c > 65535) {
|
|
717
|
+
c -= 65536;
|
|
718
|
+
const surrogate1 = 55296 + (c >> 10);
|
|
719
|
+
const surrogate2 = 56320 + (c & 1023);
|
|
720
|
+
return String.fromCharCode(surrogate1, surrogate2);
|
|
721
|
+
}
|
|
722
|
+
return String.fromCharCode(c);
|
|
723
|
+
}
|
|
724
|
+
var UNESCAPE_MD_RE = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g;
|
|
725
|
+
var UNESCAPE_ALL_RE = new RegExp(`${UNESCAPE_MD_RE.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`, "gi");
|
|
726
|
+
var DIGITAL_ENTITY_TEST_RE = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
727
|
+
function replaceEntityPattern(match, name) {
|
|
728
|
+
if (name.charCodeAt(0) === 35 && DIGITAL_ENTITY_TEST_RE.test(name)) {
|
|
729
|
+
const code = name[1].toLowerCase() === "x" ? parseInt(name.slice(2), 16) : parseInt(name.slice(1), 10);
|
|
730
|
+
if (isValidEntityCode(code)) return fromCodePoint(code);
|
|
731
|
+
return match;
|
|
732
|
+
}
|
|
733
|
+
const decoded = decodeHTMLStrict(match);
|
|
734
|
+
if (decoded !== match) return decoded;
|
|
735
|
+
return match;
|
|
736
|
+
}
|
|
737
|
+
/** Decodes Markdown backslash escapes. */
|
|
738
|
+
function unescapeMd(str) {
|
|
739
|
+
if (str.indexOf("\\") < 0) return str;
|
|
740
|
+
return str.replace(UNESCAPE_MD_RE, "$1");
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* Decodes Markdown backslash escapes and HTML character references in link
|
|
744
|
+
* destinations, link titles, and fenced code info strings.
|
|
745
|
+
*/
|
|
746
|
+
function unescapeAll(str) {
|
|
747
|
+
if (str.indexOf("\\") < 0 && str.indexOf("&") < 0) return str;
|
|
748
|
+
return str.replace(UNESCAPE_ALL_RE, function(match, escaped, entity) {
|
|
749
|
+
if (escaped) return escaped;
|
|
750
|
+
return replaceEntityPattern(match, entity);
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
var HTML_ESCAPE_TEST_RE = /[&<>"]/;
|
|
754
|
+
var HTML_ESCAPE_REPLACE_RE = /[&<>"]/g;
|
|
755
|
+
var HTML_REPLACEMENTS = {
|
|
756
|
+
"&": "&",
|
|
757
|
+
"<": "<",
|
|
758
|
+
">": ">",
|
|
759
|
+
"\"": """
|
|
760
|
+
};
|
|
761
|
+
function replaceUnsafeChar(ch) {
|
|
762
|
+
return HTML_REPLACEMENTS[ch];
|
|
763
|
+
}
|
|
764
|
+
/** Escapes HTML special characters in a string. */
|
|
765
|
+
function escapeHtml(str) {
|
|
766
|
+
if (HTML_ESCAPE_TEST_RE.test(str)) return str.replace(HTML_ESCAPE_REPLACE_RE, replaceUnsafeChar);
|
|
767
|
+
return str;
|
|
768
|
+
}
|
|
769
|
+
var REGEXP_ESCAPE_RE = /[.?*+^$[\]\\(){}|-]/g;
|
|
770
|
+
/** Escapes regular expression metacharacters in a string. */
|
|
771
|
+
function escapeRE(str) {
|
|
772
|
+
return str.replace(REGEXP_ESCAPE_RE, "\\$&");
|
|
773
|
+
}
|
|
774
|
+
/** Checks whether a character code is an ASCII space or tab. */
|
|
775
|
+
function isSpace(code) {
|
|
776
|
+
switch (code) {
|
|
777
|
+
case 9:
|
|
778
|
+
case 32: return true;
|
|
779
|
+
}
|
|
780
|
+
return false;
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* Checks whether a character code is whitespace recognized by Markdown.
|
|
784
|
+
*
|
|
785
|
+
* Matches the Unicode `Zs` category or `\t`, `\f`, `\v`, `\r`, `\n`.
|
|
786
|
+
*/
|
|
787
|
+
function isWhiteSpace(code) {
|
|
788
|
+
if (code >= 8192 && code <= 8202) return true;
|
|
789
|
+
switch (code) {
|
|
790
|
+
case 9:
|
|
791
|
+
case 10:
|
|
792
|
+
case 11:
|
|
793
|
+
case 12:
|
|
794
|
+
case 13:
|
|
795
|
+
case 32:
|
|
796
|
+
case 160:
|
|
797
|
+
case 5760:
|
|
798
|
+
case 8239:
|
|
799
|
+
case 8287:
|
|
800
|
+
case 12288: return true;
|
|
801
|
+
}
|
|
802
|
+
return false;
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Checks whether a character is Unicode punctuation or a symbol.
|
|
806
|
+
*
|
|
807
|
+
* Does not support astral characters.
|
|
808
|
+
*/
|
|
809
|
+
function isPunctChar(ch) {
|
|
810
|
+
return uc_micro.P.test(ch) || uc_micro.S.test(ch);
|
|
811
|
+
}
|
|
812
|
+
/** Checks whether a Unicode code point is punctuation or a symbol. */
|
|
813
|
+
function isPunctCharCode(code) {
|
|
814
|
+
return isPunctChar(fromCodePoint(code));
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* Markdown ASCII punctuation characters.
|
|
818
|
+
*
|
|
819
|
+
* !, ", #, $, %, &, ', (, ), *, +, ,, -, ., /, :, ;, <, =, >, ?, @,
|
|
820
|
+
* [, \, ], ^, _, `, {, |, }, or ~
|
|
821
|
+
*
|
|
822
|
+
* http://spec.commonmark.org/0.15/#ascii-punctuation-character
|
|
823
|
+
*
|
|
824
|
+
* Don't confuse with Unicode punctuation. It lacks some characters in the
|
|
825
|
+
* ASCII range.
|
|
826
|
+
*/
|
|
827
|
+
function isMdAsciiPunct(ch) {
|
|
828
|
+
switch (ch) {
|
|
829
|
+
case 33:
|
|
830
|
+
case 34:
|
|
831
|
+
case 35:
|
|
832
|
+
case 36:
|
|
833
|
+
case 37:
|
|
834
|
+
case 38:
|
|
835
|
+
case 39:
|
|
836
|
+
case 40:
|
|
837
|
+
case 41:
|
|
838
|
+
case 42:
|
|
839
|
+
case 43:
|
|
840
|
+
case 44:
|
|
841
|
+
case 45:
|
|
842
|
+
case 46:
|
|
843
|
+
case 47:
|
|
844
|
+
case 58:
|
|
845
|
+
case 59:
|
|
846
|
+
case 60:
|
|
847
|
+
case 61:
|
|
848
|
+
case 62:
|
|
849
|
+
case 63:
|
|
850
|
+
case 64:
|
|
851
|
+
case 91:
|
|
852
|
+
case 92:
|
|
853
|
+
case 93:
|
|
854
|
+
case 94:
|
|
855
|
+
case 95:
|
|
856
|
+
case 96:
|
|
857
|
+
case 123:
|
|
858
|
+
case 124:
|
|
859
|
+
case 125:
|
|
860
|
+
case 126: return true;
|
|
861
|
+
default: return false;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
/** Normalizes `[reference labels]` for case-insensitive lookup. */
|
|
865
|
+
function normalizeReference(str) {
|
|
866
|
+
str = str.trim().replace(/\s+/g, " ");
|
|
867
|
+
return str.toLowerCase().toUpperCase();
|
|
868
|
+
}
|
|
869
|
+
function isAsciiTrimmable(c) {
|
|
870
|
+
return c === 32 || c === 9 || c === 10 || c === 13;
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* "Light" `.trim()` for blocks (headings, paragraphs), where Unicode spaces
|
|
874
|
+
* should be preserved.
|
|
875
|
+
*/
|
|
876
|
+
function asciiTrim(str) {
|
|
877
|
+
let start = 0;
|
|
878
|
+
for (; start < str.length; start++) if (!isAsciiTrimmable(str.charCodeAt(start))) break;
|
|
879
|
+
let end = str.length - 1;
|
|
880
|
+
for (; end >= start; end--) if (!isAsciiTrimmable(str.charCodeAt(end))) break;
|
|
881
|
+
return str.slice(start, end + 1);
|
|
882
|
+
}
|
|
883
|
+
/**
|
|
884
|
+
* Libraries commonly used by markdown-it and its plugins, re-exported to
|
|
885
|
+
* reduce duplicate dependencies in browser bundles.
|
|
886
|
+
*/
|
|
887
|
+
var lib = {
|
|
888
|
+
mdurl,
|
|
889
|
+
ucmicro: uc_micro
|
|
890
|
+
};
|
|
891
|
+
//#endregion
|
|
892
|
+
//#region src/helpers/parse_link_label.ts
|
|
893
|
+
/** Finds the end of a link or image label (`[label]`). */
|
|
894
|
+
function parseLinkLabel(state, start, disableNested) {
|
|
895
|
+
let level, found, marker, prevPos;
|
|
896
|
+
const max = state.posMax;
|
|
897
|
+
const oldPos = state.pos;
|
|
898
|
+
state.pos = start + 1;
|
|
899
|
+
level = 1;
|
|
900
|
+
while (state.pos < max) {
|
|
901
|
+
marker = state.src.charCodeAt(state.pos);
|
|
902
|
+
if (marker === 93) {
|
|
903
|
+
level--;
|
|
904
|
+
if (level === 0) {
|
|
905
|
+
found = true;
|
|
906
|
+
break;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
prevPos = state.pos;
|
|
910
|
+
state.md.inline.skipToken(state);
|
|
911
|
+
if (marker === 91) {
|
|
912
|
+
if (prevPos === state.pos - 1) level++;
|
|
913
|
+
else if (disableNested) {
|
|
914
|
+
state.pos = oldPos;
|
|
915
|
+
return -1;
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
let labelEnd = -1;
|
|
920
|
+
if (found) labelEnd = state.pos;
|
|
921
|
+
state.pos = oldPos;
|
|
922
|
+
return labelEnd;
|
|
923
|
+
}
|
|
924
|
+
//#endregion
|
|
925
|
+
//#region src/helpers/parse_link_destination.ts
|
|
926
|
+
/** Parses the destination in `[label](destination "title")`. */
|
|
927
|
+
function parseLinkDestination(str, start, max) {
|
|
928
|
+
let code;
|
|
929
|
+
let pos = start;
|
|
930
|
+
const result = {
|
|
931
|
+
ok: false,
|
|
932
|
+
pos: 0,
|
|
933
|
+
str: ""
|
|
934
|
+
};
|
|
935
|
+
if (str.charCodeAt(pos) === 60) {
|
|
936
|
+
pos++;
|
|
937
|
+
while (pos < max) {
|
|
938
|
+
code = str.charCodeAt(pos);
|
|
939
|
+
if (code === 10) return result;
|
|
940
|
+
if (code === 60) return result;
|
|
941
|
+
if (code === 62) {
|
|
942
|
+
result.pos = pos + 1;
|
|
943
|
+
result.str = unescapeAll(str.slice(start + 1, pos));
|
|
944
|
+
result.ok = true;
|
|
945
|
+
return result;
|
|
946
|
+
}
|
|
947
|
+
if (code === 92 && pos + 1 < max) {
|
|
948
|
+
pos += 2;
|
|
949
|
+
continue;
|
|
950
|
+
}
|
|
951
|
+
pos++;
|
|
952
|
+
}
|
|
953
|
+
return result;
|
|
954
|
+
}
|
|
955
|
+
let level = 0;
|
|
956
|
+
while (pos < max) {
|
|
957
|
+
code = str.charCodeAt(pos);
|
|
958
|
+
if (code === 32) break;
|
|
959
|
+
if (code < 32 || code === 127) break;
|
|
960
|
+
if (code === 92 && pos + 1 < max) {
|
|
961
|
+
if (str.charCodeAt(pos + 1) === 32) {
|
|
962
|
+
pos++;
|
|
963
|
+
continue;
|
|
964
|
+
}
|
|
965
|
+
pos += 2;
|
|
966
|
+
continue;
|
|
967
|
+
}
|
|
968
|
+
if (code === 40) {
|
|
969
|
+
level++;
|
|
970
|
+
if (level > 32) return result;
|
|
971
|
+
}
|
|
972
|
+
if (code === 41) {
|
|
973
|
+
if (level === 0) break;
|
|
974
|
+
level--;
|
|
975
|
+
}
|
|
976
|
+
pos++;
|
|
977
|
+
}
|
|
978
|
+
if (start === pos) return result;
|
|
979
|
+
if (level !== 0) return result;
|
|
980
|
+
result.str = unescapeAll(str.slice(start, pos));
|
|
981
|
+
result.pos = pos;
|
|
982
|
+
result.ok = true;
|
|
983
|
+
return result;
|
|
984
|
+
}
|
|
985
|
+
//#endregion
|
|
986
|
+
//#region src/helpers/parse_link_title.ts
|
|
987
|
+
/**
|
|
988
|
+
* Parses the optional title in `[label](destination "title")` or
|
|
989
|
+
* `[label]: destination "title"`.
|
|
990
|
+
*
|
|
991
|
+
* `prev_state` continues a reference title on the next source line.
|
|
992
|
+
*/
|
|
993
|
+
function parseLinkTitle(str, start, max, prev_state) {
|
|
994
|
+
let code;
|
|
995
|
+
let pos = start;
|
|
996
|
+
const state = {
|
|
997
|
+
ok: false,
|
|
998
|
+
can_continue: false,
|
|
999
|
+
pos: 0,
|
|
1000
|
+
str: "",
|
|
1001
|
+
marker: 0
|
|
1002
|
+
};
|
|
1003
|
+
if (prev_state) {
|
|
1004
|
+
state.str = prev_state.str;
|
|
1005
|
+
state.marker = prev_state.marker;
|
|
1006
|
+
} else {
|
|
1007
|
+
if (pos >= max) return state;
|
|
1008
|
+
let marker = str.charCodeAt(pos);
|
|
1009
|
+
if (marker !== 34 && marker !== 39 && marker !== 40) return state;
|
|
1010
|
+
start++;
|
|
1011
|
+
pos++;
|
|
1012
|
+
if (marker === 40) marker = 41;
|
|
1013
|
+
state.marker = marker;
|
|
1014
|
+
}
|
|
1015
|
+
while (pos < max) {
|
|
1016
|
+
code = str.charCodeAt(pos);
|
|
1017
|
+
if (code === state.marker) {
|
|
1018
|
+
state.pos = pos + 1;
|
|
1019
|
+
state.str += unescapeAll(str.slice(start, pos));
|
|
1020
|
+
state.ok = true;
|
|
1021
|
+
return state;
|
|
1022
|
+
} else if (code === 40 && state.marker === 41) return state;
|
|
1023
|
+
else if (code === 92 && pos + 1 < max) pos++;
|
|
1024
|
+
pos++;
|
|
1025
|
+
}
|
|
1026
|
+
state.can_continue = true;
|
|
1027
|
+
state.str += unescapeAll(str.slice(start, pos));
|
|
1028
|
+
return state;
|
|
1029
|
+
}
|
|
1030
|
+
//#endregion
|
|
1031
|
+
//#region src/helpers/index.ts
|
|
1032
|
+
/**
|
|
1033
|
+
* Functions used to parse links and images, split out of parser rules because
|
|
1034
|
+
* of their size.
|
|
1035
|
+
*
|
|
1036
|
+
* @module md.helpers
|
|
1037
|
+
*/
|
|
1038
|
+
var helpers_exports = /* @__PURE__ */ __exportAll({
|
|
1039
|
+
parseLinkDestination: () => parseLinkDestination,
|
|
1040
|
+
parseLinkLabel: () => parseLinkLabel,
|
|
1041
|
+
parseLinkTitle: () => parseLinkTitle
|
|
1042
|
+
});
|
|
1043
|
+
//#endregion
|
|
1044
|
+
//#region src/token.ts
|
|
1045
|
+
/**
|
|
1046
|
+
* Represents one item in the parsed token stream, storing parsed data and
|
|
1047
|
+
* providing helpers for managing HTML attributes.
|
|
1048
|
+
*/
|
|
1049
|
+
var Token = class {
|
|
1050
|
+
constructor(type, tag, nesting) {
|
|
1051
|
+
_defineProperty(
|
|
1052
|
+
this,
|
|
1053
|
+
/**
|
|
1054
|
+
* Source map info. Format: `[ line_begin, line_end ]`
|
|
1055
|
+
*/
|
|
1056
|
+
"map",
|
|
1057
|
+
null
|
|
1058
|
+
);
|
|
1059
|
+
_defineProperty(
|
|
1060
|
+
this,
|
|
1061
|
+
/**
|
|
1062
|
+
* nesting level, the same as `state.level`
|
|
1063
|
+
*/
|
|
1064
|
+
"level",
|
|
1065
|
+
0
|
|
1066
|
+
);
|
|
1067
|
+
_defineProperty(
|
|
1068
|
+
this,
|
|
1069
|
+
/**
|
|
1070
|
+
* An array of child nodes (inline and img tokens)
|
|
1071
|
+
*/
|
|
1072
|
+
"children",
|
|
1073
|
+
null
|
|
1074
|
+
);
|
|
1075
|
+
_defineProperty(
|
|
1076
|
+
this,
|
|
1077
|
+
/**
|
|
1078
|
+
* In a case of self-closing tag (code, html, fence, etc.),
|
|
1079
|
+
* it has contents of this tag.
|
|
1080
|
+
*/
|
|
1081
|
+
"content",
|
|
1082
|
+
""
|
|
1083
|
+
);
|
|
1084
|
+
_defineProperty(
|
|
1085
|
+
this,
|
|
1086
|
+
/**
|
|
1087
|
+
* '*' or '_' for emphasis, fence string for fence, etc.
|
|
1088
|
+
*/
|
|
1089
|
+
"markup",
|
|
1090
|
+
""
|
|
1091
|
+
);
|
|
1092
|
+
_defineProperty(
|
|
1093
|
+
this,
|
|
1094
|
+
/**
|
|
1095
|
+
* Additional information:
|
|
1096
|
+
*
|
|
1097
|
+
* - Info string for "fence" tokens
|
|
1098
|
+
* - The value "auto" for autolink "link_open" and "link_close" tokens
|
|
1099
|
+
* - The string value of the item marker for ordered-list "list_item_open" tokens
|
|
1100
|
+
*/
|
|
1101
|
+
"info",
|
|
1102
|
+
""
|
|
1103
|
+
);
|
|
1104
|
+
_defineProperty(
|
|
1105
|
+
this,
|
|
1106
|
+
/**
|
|
1107
|
+
* True for block-level tokens, false for inline tokens.
|
|
1108
|
+
* Used in renderer to calculate line breaks
|
|
1109
|
+
*/
|
|
1110
|
+
"block",
|
|
1111
|
+
false
|
|
1112
|
+
);
|
|
1113
|
+
_defineProperty(
|
|
1114
|
+
this,
|
|
1115
|
+
/**
|
|
1116
|
+
* If it's true, ignore this element when rendering. Used for tight lists
|
|
1117
|
+
* to hide paragraphs.
|
|
1118
|
+
*/
|
|
1119
|
+
"hidden",
|
|
1120
|
+
false
|
|
1121
|
+
);
|
|
1122
|
+
this.type = type;
|
|
1123
|
+
this.tag = tag;
|
|
1124
|
+
this.attrs = null;
|
|
1125
|
+
this.nesting = nesting;
|
|
1126
|
+
this.meta = null;
|
|
1127
|
+
}
|
|
1128
|
+
/**
|
|
1129
|
+
* Search attribute index by name.
|
|
1130
|
+
*/
|
|
1131
|
+
attrIndex(name) {
|
|
1132
|
+
if (!this.attrs) return -1;
|
|
1133
|
+
const attrs = this.attrs;
|
|
1134
|
+
for (let i = 0, len = attrs.length; i < len; i++) if (attrs[i][0] === name) return i;
|
|
1135
|
+
return -1;
|
|
1136
|
+
}
|
|
1137
|
+
/**
|
|
1138
|
+
* Add `[ name, value ]` attribute to list. Init attrs if necessary
|
|
1139
|
+
*/
|
|
1140
|
+
attrPush(attrData) {
|
|
1141
|
+
if (this.attrs) this.attrs.push(attrData);
|
|
1142
|
+
else this.attrs = [attrData];
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* Set `name` attribute to `value`. Override old value if exists.
|
|
1146
|
+
*/
|
|
1147
|
+
attrSet(name, value) {
|
|
1148
|
+
const idx = this.attrIndex(name);
|
|
1149
|
+
const attrData = [name, value];
|
|
1150
|
+
if (idx < 0) this.attrPush(attrData);
|
|
1151
|
+
else this.attrs[idx] = attrData;
|
|
1152
|
+
}
|
|
1153
|
+
/**
|
|
1154
|
+
* Get the value of attribute `name`, or null if it does not exist.
|
|
1155
|
+
*/
|
|
1156
|
+
attrGet(name) {
|
|
1157
|
+
const idx = this.attrIndex(name);
|
|
1158
|
+
let value = null;
|
|
1159
|
+
if (idx >= 0) value = this.attrs[idx][1];
|
|
1160
|
+
return value;
|
|
1161
|
+
}
|
|
1162
|
+
/**
|
|
1163
|
+
* Join value to existing attribute via space. Or create new attribute if not
|
|
1164
|
+
* exists. Useful to operate with token classes.
|
|
1165
|
+
*/
|
|
1166
|
+
attrJoin(name, value) {
|
|
1167
|
+
const idx = this.attrIndex(name);
|
|
1168
|
+
if (idx < 0) this.attrPush([name, value]);
|
|
1169
|
+
else this.attrs[idx][1] = `${this.attrs[idx][1]} ${value}`;
|
|
1170
|
+
}
|
|
1171
|
+
};
|
|
1172
|
+
//#endregion
|
|
1173
|
+
//#region src/ruler.ts
|
|
1174
|
+
/**
|
|
1175
|
+
* Helper class, used by {@link MarkdownIt.core}, {@link MarkdownIt.block} and
|
|
1176
|
+
* {@link MarkdownIt.inline} to manage sequences of functions (rules):
|
|
1177
|
+
*
|
|
1178
|
+
* - keep rules in defined order
|
|
1179
|
+
* - assign the name to each rule
|
|
1180
|
+
* - enable/disable rules
|
|
1181
|
+
* - add/replace rules
|
|
1182
|
+
* - allow assign rules to additional named chains (in the same)
|
|
1183
|
+
* - cacheing lists of active rules
|
|
1184
|
+
*
|
|
1185
|
+
* You will not need use this class directly until write plugins. For simple
|
|
1186
|
+
* rules control use {@link MarkdownIt.disable}, {@link MarkdownIt.enable} and
|
|
1187
|
+
* {@link MarkdownIt.use}.
|
|
1188
|
+
*/
|
|
1189
|
+
var Ruler = class {
|
|
1190
|
+
constructor() {
|
|
1191
|
+
_defineProperty(
|
|
1192
|
+
this,
|
|
1193
|
+
/** @internal */
|
|
1194
|
+
"__rules__",
|
|
1195
|
+
[]
|
|
1196
|
+
);
|
|
1197
|
+
_defineProperty(
|
|
1198
|
+
this,
|
|
1199
|
+
/** @internal */
|
|
1200
|
+
"__cache__",
|
|
1201
|
+
null
|
|
1202
|
+
);
|
|
1203
|
+
}
|
|
1204
|
+
/** @internal */
|
|
1205
|
+
__find__(name) {
|
|
1206
|
+
for (let i = 0; i < this.__rules__.length; i++) if (this.__rules__[i].name === name) return i;
|
|
1207
|
+
return -1;
|
|
1208
|
+
}
|
|
1209
|
+
/** @internal */
|
|
1210
|
+
__compile__() {
|
|
1211
|
+
const chains = /* @__PURE__ */ new Set();
|
|
1212
|
+
this.__rules__.forEach((rule) => {
|
|
1213
|
+
if (!rule.enabled) return;
|
|
1214
|
+
rule.alt.forEach((altName) => {
|
|
1215
|
+
if (altName) chains.add(altName);
|
|
1216
|
+
});
|
|
1217
|
+
});
|
|
1218
|
+
this.__cache__ = Object.create(null);
|
|
1219
|
+
this.__cache__[""] = [];
|
|
1220
|
+
this.__rules__.forEach((rule) => {
|
|
1221
|
+
if (rule.enabled) this.__cache__[""].push(rule.fn);
|
|
1222
|
+
});
|
|
1223
|
+
chains.forEach((chain) => {
|
|
1224
|
+
this.__cache__[chain] = [];
|
|
1225
|
+
this.__rules__.forEach((rule) => {
|
|
1226
|
+
if (rule.enabled && rule.alt.indexOf(chain) >= 0) this.__cache__[chain].push(rule.fn);
|
|
1227
|
+
});
|
|
1228
|
+
});
|
|
1229
|
+
}
|
|
1230
|
+
/**
|
|
1231
|
+
* Replace rule by name with new function & options. Throws error if name not
|
|
1232
|
+
* found.
|
|
1233
|
+
*
|
|
1234
|
+
* @example Replace existing typographer replacement rule with new one
|
|
1235
|
+
* ```javascript
|
|
1236
|
+
* import MarkdownIt from 'markdown-it'
|
|
1237
|
+
* const md = new MarkdownIt()
|
|
1238
|
+
*
|
|
1239
|
+
* md.core.ruler.at('replacements', function replace(state) {
|
|
1240
|
+
* //...
|
|
1241
|
+
* });
|
|
1242
|
+
* ```
|
|
1243
|
+
*/
|
|
1244
|
+
at(name, fn, options = {}) {
|
|
1245
|
+
const index = this.__find__(name);
|
|
1246
|
+
if (index === -1) throw new Error(`Parser rule not found: ${name}`);
|
|
1247
|
+
this.__rules__[index].fn = fn;
|
|
1248
|
+
this.__rules__[index].alt = options.alt || [];
|
|
1249
|
+
this.__cache__ = null;
|
|
1250
|
+
}
|
|
1251
|
+
/**
|
|
1252
|
+
* Add new rule to chain before one with given name. See also
|
|
1253
|
+
* {@link Ruler.after}, {@link Ruler.push}.
|
|
1254
|
+
*
|
|
1255
|
+
* @example
|
|
1256
|
+
* ```javascript
|
|
1257
|
+
* import MarkdownIt from 'markdown-it'
|
|
1258
|
+
* const md = new MarkdownIt()
|
|
1259
|
+
*
|
|
1260
|
+
* md.block.ruler.before('paragraph', 'my_rule', function replace(state) {
|
|
1261
|
+
* //...
|
|
1262
|
+
* });
|
|
1263
|
+
* ```
|
|
1264
|
+
*/
|
|
1265
|
+
before(beforeName, ruleName, fn, options = {}) {
|
|
1266
|
+
const index = this.__find__(beforeName);
|
|
1267
|
+
if (index === -1) throw new Error(`Parser rule not found: ${beforeName}`);
|
|
1268
|
+
this.__rules__.splice(index, 0, {
|
|
1269
|
+
name: ruleName,
|
|
1270
|
+
enabled: true,
|
|
1271
|
+
fn,
|
|
1272
|
+
alt: options.alt || []
|
|
1273
|
+
});
|
|
1274
|
+
this.__cache__ = null;
|
|
1275
|
+
}
|
|
1276
|
+
/**
|
|
1277
|
+
* Add new rule to chain after one with given name. See also
|
|
1278
|
+
* {@link Ruler.before}, {@link Ruler.push}.
|
|
1279
|
+
*
|
|
1280
|
+
* @example
|
|
1281
|
+
* ```javascript
|
|
1282
|
+
* import MarkdownIt from 'markdown-it'
|
|
1283
|
+
* const md = new MarkdownIt()
|
|
1284
|
+
*
|
|
1285
|
+
* md.inline.ruler.after('text', 'my_rule', function replace(state) {
|
|
1286
|
+
* //...
|
|
1287
|
+
* });
|
|
1288
|
+
* ```
|
|
1289
|
+
*/
|
|
1290
|
+
after(afterName, ruleName, fn, options = {}) {
|
|
1291
|
+
const index = this.__find__(afterName);
|
|
1292
|
+
if (index === -1) throw new Error(`Parser rule not found: ${afterName}`);
|
|
1293
|
+
this.__rules__.splice(index + 1, 0, {
|
|
1294
|
+
name: ruleName,
|
|
1295
|
+
enabled: true,
|
|
1296
|
+
fn,
|
|
1297
|
+
alt: options.alt || []
|
|
1298
|
+
});
|
|
1299
|
+
this.__cache__ = null;
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* Push new rule to the end of chain. See also
|
|
1303
|
+
* {@link Ruler.before}, {@link Ruler.after}.
|
|
1304
|
+
*
|
|
1305
|
+
* @example
|
|
1306
|
+
* ```javascript
|
|
1307
|
+
* import MarkdownIt from 'markdown-it'
|
|
1308
|
+
* const md = new MarkdownIt()
|
|
1309
|
+
*
|
|
1310
|
+
* md.core.ruler.push('my_rule', function replace(state) {
|
|
1311
|
+
* //...
|
|
1312
|
+
* });
|
|
1313
|
+
* ```
|
|
1314
|
+
*/
|
|
1315
|
+
push(ruleName, fn, options = {}) {
|
|
1316
|
+
this.__rules__.push({
|
|
1317
|
+
name: ruleName,
|
|
1318
|
+
enabled: true,
|
|
1319
|
+
fn,
|
|
1320
|
+
alt: options.alt || []
|
|
1321
|
+
});
|
|
1322
|
+
this.__cache__ = null;
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* Enable rules with given names. If any rule name not found - throw Error.
|
|
1326
|
+
* Errors can be disabled by second param.
|
|
1327
|
+
*
|
|
1328
|
+
* See also {@link Ruler.disable}, {@link Ruler.enableOnly}.
|
|
1329
|
+
*
|
|
1330
|
+
* Returns list of found rule names (if no exception happened).
|
|
1331
|
+
*/
|
|
1332
|
+
enable(list, ignoreInvalid = false) {
|
|
1333
|
+
if (!Array.isArray(list)) list = [list];
|
|
1334
|
+
const result = [];
|
|
1335
|
+
list.forEach((name) => {
|
|
1336
|
+
const idx = this.__find__(name);
|
|
1337
|
+
if (idx < 0) {
|
|
1338
|
+
if (ignoreInvalid) return;
|
|
1339
|
+
throw new Error(`Rules manager: invalid rule name ${name}`);
|
|
1340
|
+
}
|
|
1341
|
+
this.__rules__[idx].enabled = true;
|
|
1342
|
+
result.push(name);
|
|
1343
|
+
});
|
|
1344
|
+
this.__cache__ = null;
|
|
1345
|
+
return result;
|
|
1346
|
+
}
|
|
1347
|
+
/**
|
|
1348
|
+
* Enable rules with given names, and disable everything else. If any rule name
|
|
1349
|
+
* not found - throw Error. Errors can be disabled by second param.
|
|
1350
|
+
*
|
|
1351
|
+
* See also {@link Ruler.disable}, {@link Ruler.enable}.
|
|
1352
|
+
*/
|
|
1353
|
+
enableOnly(list, ignoreInvalid = false) {
|
|
1354
|
+
if (!Array.isArray(list)) list = [list];
|
|
1355
|
+
this.__rules__.forEach((rule) => {
|
|
1356
|
+
rule.enabled = false;
|
|
1357
|
+
});
|
|
1358
|
+
this.enable(list, ignoreInvalid);
|
|
1359
|
+
}
|
|
1360
|
+
/**
|
|
1361
|
+
* Disable rules with given names. If any rule name not found - throw Error.
|
|
1362
|
+
* Errors can be disabled by second param.
|
|
1363
|
+
*
|
|
1364
|
+
* See also {@link Ruler.enable}, {@link Ruler.enableOnly}.
|
|
1365
|
+
*
|
|
1366
|
+
* Returns list of found rule names (if no exception happened).
|
|
1367
|
+
*/
|
|
1368
|
+
disable(list, ignoreInvalid = false) {
|
|
1369
|
+
if (!Array.isArray(list)) list = [list];
|
|
1370
|
+
const result = [];
|
|
1371
|
+
list.forEach((name) => {
|
|
1372
|
+
const idx = this.__find__(name);
|
|
1373
|
+
if (idx < 0) {
|
|
1374
|
+
if (ignoreInvalid) return;
|
|
1375
|
+
throw new Error(`Rules manager: invalid rule name ${name}`);
|
|
1376
|
+
}
|
|
1377
|
+
this.__rules__[idx].enabled = false;
|
|
1378
|
+
result.push(name);
|
|
1379
|
+
});
|
|
1380
|
+
this.__cache__ = null;
|
|
1381
|
+
return result;
|
|
1382
|
+
}
|
|
1383
|
+
/**
|
|
1384
|
+
* Return array of active functions (rules) for given chain name. It analyzes
|
|
1385
|
+
* rules configuration, compiles caches if not exists and returns result.
|
|
1386
|
+
*
|
|
1387
|
+
* Default chain name is `''` (empty string). It can't be skipped. That's
|
|
1388
|
+
* done intentionally, to keep signature monomorphic for high speed.
|
|
1389
|
+
*/
|
|
1390
|
+
getRules(chainName) {
|
|
1391
|
+
if (!this.__cache__) this.__compile__();
|
|
1392
|
+
return this.__cache__[chainName] || [];
|
|
1393
|
+
}
|
|
1394
|
+
};
|
|
1395
|
+
//#endregion
|
|
1396
|
+
//#region src/renderer.ts
|
|
1397
|
+
var default_rules = {};
|
|
1398
|
+
default_rules.code_inline = function(tokens, idx, options, env, slf) {
|
|
1399
|
+
const token = tokens[idx];
|
|
1400
|
+
return `<code${slf.renderAttrs(token)}>${escapeHtml(token.content)}</code>`;
|
|
1401
|
+
};
|
|
1402
|
+
default_rules.code_block = function(tokens, idx, options, env, slf) {
|
|
1403
|
+
const token = tokens[idx];
|
|
1404
|
+
return `<pre${slf.renderAttrs(token)}><code>${escapeHtml(tokens[idx].content)}</code></pre>\n`;
|
|
1405
|
+
};
|
|
1406
|
+
default_rules.fence = function(tokens, idx, options, env, slf) {
|
|
1407
|
+
const token = tokens[idx];
|
|
1408
|
+
const info = token.info ? unescapeAll(token.info).trim() : "";
|
|
1409
|
+
let langName = "";
|
|
1410
|
+
let langAttrs = "";
|
|
1411
|
+
if (info) {
|
|
1412
|
+
const arr = info.split(/(\s+)/g);
|
|
1413
|
+
langName = arr[0];
|
|
1414
|
+
langAttrs = arr.slice(2).join("");
|
|
1415
|
+
}
|
|
1416
|
+
let highlighted;
|
|
1417
|
+
if (options.highlight) highlighted = options.highlight(token.content, langName, langAttrs) || escapeHtml(token.content);
|
|
1418
|
+
else highlighted = escapeHtml(token.content);
|
|
1419
|
+
if (highlighted.indexOf("<pre") === 0) return highlighted + "\n";
|
|
1420
|
+
if (info) {
|
|
1421
|
+
const i = token.attrIndex("class");
|
|
1422
|
+
const tmpAttrs = token.attrs ? token.attrs.slice() : [];
|
|
1423
|
+
if (i < 0) tmpAttrs.push(["class", `${options.langPrefix}${langName}`]);
|
|
1424
|
+
else {
|
|
1425
|
+
tmpAttrs[i] = [tmpAttrs[i][0], tmpAttrs[i][1]];
|
|
1426
|
+
tmpAttrs[i][1] += ` ${options.langPrefix}${langName}`;
|
|
1427
|
+
}
|
|
1428
|
+
const tmpToken = { attrs: tmpAttrs };
|
|
1429
|
+
return `<pre><code${slf.renderAttrs(tmpToken)}>${highlighted}</code></pre>\n`;
|
|
1430
|
+
}
|
|
1431
|
+
return `<pre><code${slf.renderAttrs(token)}>${highlighted}</code></pre>\n`;
|
|
1432
|
+
};
|
|
1433
|
+
default_rules.image = function(tokens, idx, options, env, slf) {
|
|
1434
|
+
const token = tokens[idx];
|
|
1435
|
+
token.attrs[token.attrIndex("alt")][1] = slf.renderInlineAsText(token.children, options, env);
|
|
1436
|
+
return slf.renderToken(tokens, idx, options);
|
|
1437
|
+
};
|
|
1438
|
+
default_rules.hardbreak = function(tokens, idx, options) {
|
|
1439
|
+
return options.xhtmlOut ? "<br />\n" : "<br>\n";
|
|
1440
|
+
};
|
|
1441
|
+
default_rules.softbreak = function(tokens, idx, options) {
|
|
1442
|
+
return options.breaks ? options.xhtmlOut ? "<br />\n" : "<br>\n" : "\n";
|
|
1443
|
+
};
|
|
1444
|
+
default_rules.text = function(tokens, idx) {
|
|
1445
|
+
return escapeHtml(tokens[idx].content);
|
|
1446
|
+
};
|
|
1447
|
+
default_rules.html_block = function(tokens, idx) {
|
|
1448
|
+
return tokens[idx].content;
|
|
1449
|
+
};
|
|
1450
|
+
default_rules.html_inline = function(tokens, idx) {
|
|
1451
|
+
return tokens[idx].content;
|
|
1452
|
+
};
|
|
1453
|
+
/**
|
|
1454
|
+
* Generates HTML from parsed token stream. Each instance has independent
|
|
1455
|
+
* copy of rules. Those can be rewritten with ease. Also, you can add new
|
|
1456
|
+
* rules if you create plugin and adds new token types.
|
|
1457
|
+
*
|
|
1458
|
+
* Creates new renderer instance and fills {@link Renderer.rules} with defaults.
|
|
1459
|
+
*/
|
|
1460
|
+
var Renderer = class {
|
|
1461
|
+
constructor() {
|
|
1462
|
+
_defineProperty(
|
|
1463
|
+
this,
|
|
1464
|
+
/**
|
|
1465
|
+
* Contains render rules for tokens. Can be updated and extended.
|
|
1466
|
+
*
|
|
1467
|
+
* See [source code](https://github.com/markdown-it/markdown-it/blob/master/src/renderer.ts)
|
|
1468
|
+
* for more details and examples.
|
|
1469
|
+
*
|
|
1470
|
+
* @example Custom render rules
|
|
1471
|
+
* ```javascript
|
|
1472
|
+
* import MarkdownIt from 'markdown-it'
|
|
1473
|
+
* const md = new MarkdownIt()
|
|
1474
|
+
*
|
|
1475
|
+
* md.renderer.rules.strong_open = function () { return '<b>'; };
|
|
1476
|
+
* md.renderer.rules.strong_close = function () { return '</b>'; };
|
|
1477
|
+
*
|
|
1478
|
+
* const result = md.renderInline(...);
|
|
1479
|
+
* ```
|
|
1480
|
+
*
|
|
1481
|
+
* @example Each rule is called as independent static function with fixed signature
|
|
1482
|
+
* ```javascript
|
|
1483
|
+
* function my_token_render(tokens, idx, options, env, renderer) {
|
|
1484
|
+
* // ...
|
|
1485
|
+
* return renderedHTML;
|
|
1486
|
+
* }
|
|
1487
|
+
* ```
|
|
1488
|
+
*/
|
|
1489
|
+
"rules",
|
|
1490
|
+
Object.assign({}, default_rules)
|
|
1491
|
+
);
|
|
1492
|
+
}
|
|
1493
|
+
/**
|
|
1494
|
+
* Render token attributes to string.
|
|
1495
|
+
*/
|
|
1496
|
+
renderAttrs(token) {
|
|
1497
|
+
let i, l, result;
|
|
1498
|
+
if (!token.attrs) return "";
|
|
1499
|
+
result = "";
|
|
1500
|
+
for (i = 0, l = token.attrs.length; i < l; i++) result += ` ${escapeHtml(token.attrs[i][0])}="${escapeHtml(String(token.attrs[i][1]))}"`;
|
|
1501
|
+
return result;
|
|
1502
|
+
}
|
|
1503
|
+
/**
|
|
1504
|
+
* Default token renderer. Can be overriden by custom function
|
|
1505
|
+
* in {@link Renderer.rules}.
|
|
1506
|
+
*/
|
|
1507
|
+
renderToken(tokens, idx, options) {
|
|
1508
|
+
const token = tokens[idx];
|
|
1509
|
+
let result = "";
|
|
1510
|
+
if (token.hidden) return "";
|
|
1511
|
+
let prev = idx - 1;
|
|
1512
|
+
while (prev >= 0 && tokens[prev].hidden && tokens[prev].nesting === 0) prev--;
|
|
1513
|
+
if (token.block && token.nesting !== -1 && prev >= 0 && tokens[prev].hidden && tokens[prev].nesting === -1) result += "\n";
|
|
1514
|
+
result += (token.nesting === -1 ? "</" : "<") + token.tag;
|
|
1515
|
+
result += this.renderAttrs(token);
|
|
1516
|
+
if (token.nesting === 0 && options.xhtmlOut) result += " /";
|
|
1517
|
+
let needLf = false;
|
|
1518
|
+
if (token.block) {
|
|
1519
|
+
needLf = true;
|
|
1520
|
+
if (token.nesting === 1) {
|
|
1521
|
+
let next = idx + 1;
|
|
1522
|
+
while (next < tokens.length && tokens[next].hidden && tokens[next].nesting === 0) next++;
|
|
1523
|
+
if (next < tokens.length) {
|
|
1524
|
+
const nextToken = tokens[next];
|
|
1525
|
+
if (nextToken.type === "inline" || nextToken.hidden) needLf = false;
|
|
1526
|
+
else if (nextToken.nesting === -1 && nextToken.tag === token.tag) needLf = false;
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
result += needLf ? ">\n" : ">";
|
|
1531
|
+
return result;
|
|
1532
|
+
}
|
|
1533
|
+
/**
|
|
1534
|
+
* The same as {@link Renderer.render}, but for single token of `inline` type.
|
|
1535
|
+
*/
|
|
1536
|
+
renderInline(tokens, options, env) {
|
|
1537
|
+
let result = "";
|
|
1538
|
+
const rules = this.rules;
|
|
1539
|
+
for (let i = 0, len = tokens.length; i < len; i++) {
|
|
1540
|
+
const type = tokens[i].type;
|
|
1541
|
+
if (typeof rules[type] !== "undefined") result += rules[type](tokens, i, options, env, this);
|
|
1542
|
+
else result += this.renderToken(tokens, i, options);
|
|
1543
|
+
}
|
|
1544
|
+
return result;
|
|
1545
|
+
}
|
|
1546
|
+
/**
|
|
1547
|
+
* Special kludge for image `alt` attributes to conform CommonMark spec.
|
|
1548
|
+
* Don't try to use it! Spec requires to show `alt` content with stripped markup,
|
|
1549
|
+
* instead of simple escaping.
|
|
1550
|
+
*/
|
|
1551
|
+
renderInlineAsText(tokens, options, env) {
|
|
1552
|
+
let result = "";
|
|
1553
|
+
for (let i = 0, len = tokens.length; i < len; i++) switch (tokens[i].type) {
|
|
1554
|
+
case "text":
|
|
1555
|
+
case "code_inline":
|
|
1556
|
+
result += tokens[i].content;
|
|
1557
|
+
break;
|
|
1558
|
+
case "image":
|
|
1559
|
+
result += this.renderInlineAsText(tokens[i].children, options, env);
|
|
1560
|
+
break;
|
|
1561
|
+
case "html_inline":
|
|
1562
|
+
case "html_block":
|
|
1563
|
+
result += tokens[i].content;
|
|
1564
|
+
break;
|
|
1565
|
+
case "softbreak":
|
|
1566
|
+
case "hardbreak": result += "\n";
|
|
1567
|
+
}
|
|
1568
|
+
return result;
|
|
1569
|
+
}
|
|
1570
|
+
/**
|
|
1571
|
+
* Takes token stream and generates HTML. Probably, you will never need to call
|
|
1572
|
+
* this method directly.
|
|
1573
|
+
*/
|
|
1574
|
+
render(tokens, options, env) {
|
|
1575
|
+
let result = "";
|
|
1576
|
+
const rules = this.rules;
|
|
1577
|
+
for (let i = 0, len = tokens.length; i < len; i++) {
|
|
1578
|
+
const type = tokens[i].type;
|
|
1579
|
+
if (type === "inline") result += this.renderInline(tokens[i].children, options, env);
|
|
1580
|
+
else if (typeof rules[type] !== "undefined") result += rules[type](tokens, i, options, env, this);
|
|
1581
|
+
else result += this.renderToken(tokens, i, options);
|
|
1582
|
+
}
|
|
1583
|
+
return result;
|
|
1584
|
+
}
|
|
1585
|
+
};
|
|
1586
|
+
//#endregion
|
|
1587
|
+
//#region src/rules_core/state_core.ts
|
|
1588
|
+
/** Mutable state passed through the core rules chain. */
|
|
1589
|
+
var StateCore = class {
|
|
1590
|
+
constructor(src, md, env) {
|
|
1591
|
+
_defineProperty(this, "tokens", []);
|
|
1592
|
+
_defineProperty(this, "inlineMode", false);
|
|
1593
|
+
_defineProperty(this, "Token", Token);
|
|
1594
|
+
this.src = src;
|
|
1595
|
+
this.env = env;
|
|
1596
|
+
this.md = md;
|
|
1597
|
+
}
|
|
1598
|
+
};
|
|
1599
|
+
//#endregion
|
|
1600
|
+
//#region src/rules_core/normalize.ts
|
|
1601
|
+
var UNNORMALIZED_NEWLINE_RE = /\r\n?/g;
|
|
1602
|
+
var NULL_RE = /\0/g;
|
|
1603
|
+
function normalize(state) {
|
|
1604
|
+
let str;
|
|
1605
|
+
str = state.src.replace(UNNORMALIZED_NEWLINE_RE, "\n");
|
|
1606
|
+
str = str.replace(NULL_RE, "�");
|
|
1607
|
+
state.src = str;
|
|
1608
|
+
}
|
|
1609
|
+
//#endregion
|
|
1610
|
+
//#region src/rules_core/block.ts
|
|
1611
|
+
function block(state) {
|
|
1612
|
+
let token;
|
|
1613
|
+
if (state.inlineMode) {
|
|
1614
|
+
token = new state.Token("inline", "", 0);
|
|
1615
|
+
token.content = state.src;
|
|
1616
|
+
token.map = [0, 1];
|
|
1617
|
+
token.children = [];
|
|
1618
|
+
state.tokens.push(token);
|
|
1619
|
+
} else state.md.block.parse(state.src, state.md, state.env, state.tokens);
|
|
1620
|
+
}
|
|
1621
|
+
//#endregion
|
|
1622
|
+
//#region src/rules_core/strip_references.ts
|
|
1623
|
+
function strip_references(state) {
|
|
1624
|
+
const tokens = state.tokens;
|
|
1625
|
+
let last = 0;
|
|
1626
|
+
for (let curr = 0; curr < tokens.length; curr++) {
|
|
1627
|
+
if (tokens[curr].type === "reference_definition") continue;
|
|
1628
|
+
if (curr !== last) tokens[last] = tokens[curr];
|
|
1629
|
+
last++;
|
|
1630
|
+
}
|
|
1631
|
+
if (tokens.length !== last) tokens.length = last;
|
|
1632
|
+
}
|
|
1633
|
+
//#endregion
|
|
1634
|
+
//#region src/rules_core/inline.ts
|
|
1635
|
+
function inline(state) {
|
|
1636
|
+
const tokens = state.tokens;
|
|
1637
|
+
for (let i = 0, l = tokens.length; i < l; i++) {
|
|
1638
|
+
const tok = tokens[i];
|
|
1639
|
+
if (tok.type === "inline") state.md.inline.parse(tok.content, state.md, state.env, tok.children);
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
//#endregion
|
|
1643
|
+
//#region src/rules_core/linkify.ts
|
|
1644
|
+
function isLinkOpen$1(str) {
|
|
1645
|
+
return /^<a[>\s]/i.test(str);
|
|
1646
|
+
}
|
|
1647
|
+
function isLinkClose$1(str) {
|
|
1648
|
+
return /^<\/a\s*>/i.test(str);
|
|
1649
|
+
}
|
|
1650
|
+
function linkify$1(state) {
|
|
1651
|
+
const blockTokens = state.tokens;
|
|
1652
|
+
if (!state.md.options.linkify) return;
|
|
1653
|
+
for (let j = 0, l = blockTokens.length; j < l; j++) {
|
|
1654
|
+
if (blockTokens[j].type !== "inline" || !state.md.linkify.test(blockTokens[j].content)) continue;
|
|
1655
|
+
const tokens = blockTokens[j].children;
|
|
1656
|
+
const replacements = [];
|
|
1657
|
+
let htmlLinkLevel = 0;
|
|
1658
|
+
for (let i = tokens.length - 1; i >= 0; i--) {
|
|
1659
|
+
const currentToken = tokens[i];
|
|
1660
|
+
if (currentToken.type === "link_close") {
|
|
1661
|
+
i--;
|
|
1662
|
+
while (tokens[i].level !== currentToken.level && tokens[i].type !== "link_open") i--;
|
|
1663
|
+
continue;
|
|
1664
|
+
}
|
|
1665
|
+
if (currentToken.type === "html_inline") {
|
|
1666
|
+
if (isLinkOpen$1(currentToken.content) && htmlLinkLevel > 0) htmlLinkLevel--;
|
|
1667
|
+
if (isLinkClose$1(currentToken.content)) htmlLinkLevel++;
|
|
1668
|
+
}
|
|
1669
|
+
if (htmlLinkLevel > 0) continue;
|
|
1670
|
+
if (currentToken.type === "text" && state.md.linkify.test(currentToken.content)) {
|
|
1671
|
+
const text = currentToken.content;
|
|
1672
|
+
let links = state.md.linkify.match(text);
|
|
1673
|
+
const nodes = [];
|
|
1674
|
+
let level = currentToken.level;
|
|
1675
|
+
let lastPos = 0;
|
|
1676
|
+
if (links.length > 0 && links[0].index === 0 && i > 0 && tokens[i - 1].type === "text_special") links = links.slice(1);
|
|
1677
|
+
for (let ln = 0; ln < links.length; ln++) {
|
|
1678
|
+
const url = links[ln].url;
|
|
1679
|
+
const fullUrl = state.md.normalizeLink(url);
|
|
1680
|
+
if (!state.md.validateLink(fullUrl)) continue;
|
|
1681
|
+
let urlText = links[ln].text;
|
|
1682
|
+
if (!links[ln].schema) urlText = state.md.normalizeLinkText(`http://${urlText}`).replace(/^http:\/\//, "");
|
|
1683
|
+
else if (links[ln].schema === "mailto:" && !/^mailto:/i.test(urlText)) urlText = state.md.normalizeLinkText(`mailto:${urlText}`).replace(/^mailto:/, "");
|
|
1684
|
+
else urlText = state.md.normalizeLinkText(urlText);
|
|
1685
|
+
const pos = links[ln].index;
|
|
1686
|
+
if (pos > lastPos) {
|
|
1687
|
+
const token = new state.Token("text", "", 0);
|
|
1688
|
+
token.content = text.slice(lastPos, pos);
|
|
1689
|
+
token.level = level;
|
|
1690
|
+
nodes.push(token);
|
|
1691
|
+
}
|
|
1692
|
+
const token_o = new state.Token("link_open", "a", 1);
|
|
1693
|
+
token_o.attrs = [["href", fullUrl]];
|
|
1694
|
+
token_o.level = level++;
|
|
1695
|
+
token_o.markup = "linkify";
|
|
1696
|
+
token_o.info = "auto";
|
|
1697
|
+
nodes.push(token_o);
|
|
1698
|
+
const token_t = new state.Token("text", "", 0);
|
|
1699
|
+
token_t.content = urlText;
|
|
1700
|
+
token_t.level = level;
|
|
1701
|
+
nodes.push(token_t);
|
|
1702
|
+
const token_c = new state.Token("link_close", "a", -1);
|
|
1703
|
+
token_c.level = --level;
|
|
1704
|
+
token_c.markup = "linkify";
|
|
1705
|
+
token_c.info = "auto";
|
|
1706
|
+
nodes.push(token_c);
|
|
1707
|
+
lastPos = links[ln].lastIndex;
|
|
1708
|
+
}
|
|
1709
|
+
if (lastPos < text.length) {
|
|
1710
|
+
const token = new state.Token("text", "", 0);
|
|
1711
|
+
token.content = text.slice(lastPos);
|
|
1712
|
+
token.level = level;
|
|
1713
|
+
nodes.push(token);
|
|
1714
|
+
}
|
|
1715
|
+
replacements.push({
|
|
1716
|
+
index: i,
|
|
1717
|
+
nodes
|
|
1718
|
+
});
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
if (replacements.length > 0) {
|
|
1722
|
+
let newTokensLength = tokens.length;
|
|
1723
|
+
for (const replacement of replacements) newTokensLength += replacement.nodes.length - 1;
|
|
1724
|
+
const newTokens = new Array(newTokensLength);
|
|
1725
|
+
let replacementIndex = 0;
|
|
1726
|
+
let newTokenIndex = 0;
|
|
1727
|
+
replacements.reverse();
|
|
1728
|
+
for (let i = 0; i < tokens.length; i++) {
|
|
1729
|
+
const replacement = replacements[replacementIndex];
|
|
1730
|
+
if ((replacement === null || replacement === void 0 ? void 0 : replacement.index) === i) {
|
|
1731
|
+
for (const node of replacement.nodes) newTokens[newTokenIndex++] = node;
|
|
1732
|
+
replacementIndex++;
|
|
1733
|
+
} else newTokens[newTokenIndex++] = tokens[i];
|
|
1734
|
+
}
|
|
1735
|
+
blockTokens[j].children = newTokens;
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
//#endregion
|
|
1740
|
+
//#region src/rules_core/replacements.ts
|
|
1741
|
+
var RARE_RE = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/;
|
|
1742
|
+
var SCOPED_ABBR_TEST_RE = /\((c|tm|r)\)/i;
|
|
1743
|
+
var SCOPED_ABBR_RE = /\((c|tm|r)\)/gi;
|
|
1744
|
+
var SCOPED_ABBR = {
|
|
1745
|
+
c: "©",
|
|
1746
|
+
r: "®",
|
|
1747
|
+
tm: "™"
|
|
1748
|
+
};
|
|
1749
|
+
function replaceFn(match, name) {
|
|
1750
|
+
return SCOPED_ABBR[name.toLowerCase()];
|
|
1751
|
+
}
|
|
1752
|
+
function replace_scoped(inlineTokens) {
|
|
1753
|
+
let inside_autolink = 0;
|
|
1754
|
+
for (let i = inlineTokens.length - 1; i >= 0; i--) {
|
|
1755
|
+
const token = inlineTokens[i];
|
|
1756
|
+
if (token.type === "text" && !inside_autolink) token.content = token.content.replace(SCOPED_ABBR_RE, replaceFn);
|
|
1757
|
+
if (token.type === "link_open" && token.info === "auto") inside_autolink--;
|
|
1758
|
+
if (token.type === "link_close" && token.info === "auto") inside_autolink++;
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
function replace_rare(inlineTokens) {
|
|
1762
|
+
let inside_autolink = 0;
|
|
1763
|
+
for (let i = inlineTokens.length - 1; i >= 0; i--) {
|
|
1764
|
+
const token = inlineTokens[i];
|
|
1765
|
+
if (token.type === "text" && !inside_autolink) {
|
|
1766
|
+
if (RARE_RE.test(token.content)) token.content = token.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/gm, "$1—").replace(/(^|\s)--(?=\s|$)/gm, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm, "$1–");
|
|
1767
|
+
}
|
|
1768
|
+
if (token.type === "link_open" && token.info === "auto") inside_autolink--;
|
|
1769
|
+
if (token.type === "link_close" && token.info === "auto") inside_autolink++;
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
function replace(state) {
|
|
1773
|
+
let blkIdx;
|
|
1774
|
+
if (!state.md.options.typographer) return;
|
|
1775
|
+
for (blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {
|
|
1776
|
+
if (state.tokens[blkIdx].type !== "inline") continue;
|
|
1777
|
+
if (SCOPED_ABBR_TEST_RE.test(state.tokens[blkIdx].content)) replace_scoped(state.tokens[blkIdx].children);
|
|
1778
|
+
if (RARE_RE.test(state.tokens[blkIdx].content)) replace_rare(state.tokens[blkIdx].children);
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1781
|
+
//#endregion
|
|
1782
|
+
//#region src/rules_core/smartquotes.ts
|
|
1783
|
+
var QUOTE_TEST_RE = /['"]/;
|
|
1784
|
+
var QUOTE_RE = /['"]/g;
|
|
1785
|
+
var APOSTROPHE = "’";
|
|
1786
|
+
var MAX_OPENERS = 1e3;
|
|
1787
|
+
function truncateStack(stack, heads, length) {
|
|
1788
|
+
while (stack.length > length) {
|
|
1789
|
+
const item = stack.pop();
|
|
1790
|
+
if (item.isSingleQuote) heads.single = item.prevSameQuoteIdx;
|
|
1791
|
+
else heads.double = item.prevSameQuoteIdx;
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
function addReplacement(replacements, tokenIdx, pos, ch) {
|
|
1795
|
+
if (!replacements[tokenIdx]) replacements[tokenIdx] = [];
|
|
1796
|
+
replacements[tokenIdx].push({
|
|
1797
|
+
pos,
|
|
1798
|
+
ch
|
|
1799
|
+
});
|
|
1800
|
+
}
|
|
1801
|
+
function applyReplacements(str, replacements) {
|
|
1802
|
+
let result = "";
|
|
1803
|
+
let lastPos = 0;
|
|
1804
|
+
replacements.sort((a, b) => a.pos - b.pos);
|
|
1805
|
+
for (let i = 0; i < replacements.length; i++) {
|
|
1806
|
+
const replacement = replacements[i];
|
|
1807
|
+
result += str.slice(lastPos, replacement.pos) + replacement.ch;
|
|
1808
|
+
lastPos = replacement.pos + 1;
|
|
1809
|
+
}
|
|
1810
|
+
return result + str.slice(lastPos);
|
|
1811
|
+
}
|
|
1812
|
+
function process_inlines(tokens, state) {
|
|
1813
|
+
let j;
|
|
1814
|
+
const stack = [];
|
|
1815
|
+
const heads = {
|
|
1816
|
+
single: -1,
|
|
1817
|
+
double: -1
|
|
1818
|
+
};
|
|
1819
|
+
const replacements = {};
|
|
1820
|
+
for (let i = 0; i < tokens.length; i++) {
|
|
1821
|
+
const token = tokens[i];
|
|
1822
|
+
const thisLevel = tokens[i].level;
|
|
1823
|
+
for (j = stack.length - 1; j >= 0; j--) if (stack[j].level <= thisLevel) break;
|
|
1824
|
+
truncateStack(stack, heads, j + 1);
|
|
1825
|
+
if (token.type !== "text") continue;
|
|
1826
|
+
const text = token.content;
|
|
1827
|
+
let pos = 0;
|
|
1828
|
+
const max = text.length;
|
|
1829
|
+
OUTER: while (pos < max) {
|
|
1830
|
+
QUOTE_RE.lastIndex = pos;
|
|
1831
|
+
const t = QUOTE_RE.exec(text);
|
|
1832
|
+
if (!t) break;
|
|
1833
|
+
let canOpen = true;
|
|
1834
|
+
let canClose = true;
|
|
1835
|
+
pos = t.index + 1;
|
|
1836
|
+
const isSingle = t[0] === "'";
|
|
1837
|
+
let lastChar = 32;
|
|
1838
|
+
if (t.index - 1 >= 0) lastChar = text.charCodeAt(t.index - 1);
|
|
1839
|
+
else for (j = i - 1; j >= 0; j--) {
|
|
1840
|
+
if (tokens[j].type === "softbreak" || tokens[j].type === "hardbreak") break;
|
|
1841
|
+
if (!tokens[j].content) continue;
|
|
1842
|
+
lastChar = tokens[j].content.charCodeAt(tokens[j].content.length - 1);
|
|
1843
|
+
break;
|
|
1844
|
+
}
|
|
1845
|
+
let nextChar = 32;
|
|
1846
|
+
if (pos < max) nextChar = text.charCodeAt(pos);
|
|
1847
|
+
else for (j = i + 1; j < tokens.length; j++) {
|
|
1848
|
+
if (tokens[j].type === "softbreak" || tokens[j].type === "hardbreak") break;
|
|
1849
|
+
if (!tokens[j].content) continue;
|
|
1850
|
+
nextChar = tokens[j].content.charCodeAt(0);
|
|
1851
|
+
break;
|
|
1852
|
+
}
|
|
1853
|
+
const isLastPunctChar = isMdAsciiPunct(lastChar) || isPunctCharCode(lastChar);
|
|
1854
|
+
const isNextPunctChar = isMdAsciiPunct(nextChar) || isPunctCharCode(nextChar);
|
|
1855
|
+
const isLastWhiteSpace = isWhiteSpace(lastChar);
|
|
1856
|
+
const isNextWhiteSpace = isWhiteSpace(nextChar);
|
|
1857
|
+
if (isNextWhiteSpace) canOpen = false;
|
|
1858
|
+
else if (isNextPunctChar) {
|
|
1859
|
+
if (!(isLastWhiteSpace || isLastPunctChar)) canOpen = false;
|
|
1860
|
+
}
|
|
1861
|
+
if (isLastWhiteSpace) canClose = false;
|
|
1862
|
+
else if (isLastPunctChar) {
|
|
1863
|
+
if (!(isNextWhiteSpace || isNextPunctChar)) canClose = false;
|
|
1864
|
+
}
|
|
1865
|
+
if (nextChar === 34 && t[0] === "\"") {
|
|
1866
|
+
if (lastChar >= 48 && lastChar <= 57) canClose = canOpen = false;
|
|
1867
|
+
}
|
|
1868
|
+
if (canOpen && canClose) {
|
|
1869
|
+
canOpen = isLastPunctChar;
|
|
1870
|
+
canClose = isNextPunctChar;
|
|
1871
|
+
}
|
|
1872
|
+
if (!canOpen && !canClose) {
|
|
1873
|
+
if (isSingle) addReplacement(replacements, i, t.index, APOSTROPHE);
|
|
1874
|
+
continue;
|
|
1875
|
+
}
|
|
1876
|
+
if (canClose) {
|
|
1877
|
+
j = isSingle ? heads.single : heads.double;
|
|
1878
|
+
if (j >= 0 && stack[j].level === thisLevel) {
|
|
1879
|
+
const item = stack[j];
|
|
1880
|
+
let openQuote;
|
|
1881
|
+
let closeQuote;
|
|
1882
|
+
if (isSingle) {
|
|
1883
|
+
openQuote = state.md.options.quotes[2];
|
|
1884
|
+
closeQuote = state.md.options.quotes[3];
|
|
1885
|
+
} else {
|
|
1886
|
+
openQuote = state.md.options.quotes[0];
|
|
1887
|
+
closeQuote = state.md.options.quotes[1];
|
|
1888
|
+
}
|
|
1889
|
+
addReplacement(replacements, i, t.index, closeQuote);
|
|
1890
|
+
addReplacement(replacements, item.tokenIdx, item.contentPos, openQuote);
|
|
1891
|
+
truncateStack(stack, heads, j);
|
|
1892
|
+
continue OUTER;
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
if (canOpen) {
|
|
1896
|
+
if (stack.length >= MAX_OPENERS) return;
|
|
1897
|
+
stack.push({
|
|
1898
|
+
tokenIdx: i,
|
|
1899
|
+
contentPos: t.index,
|
|
1900
|
+
isSingleQuote: isSingle,
|
|
1901
|
+
level: thisLevel,
|
|
1902
|
+
prevSameQuoteIdx: isSingle ? heads.single : heads.double
|
|
1903
|
+
});
|
|
1904
|
+
if (isSingle) heads.single = stack.length - 1;
|
|
1905
|
+
else heads.double = stack.length - 1;
|
|
1906
|
+
} else if (canClose && isSingle) addReplacement(replacements, i, t.index, APOSTROPHE);
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
Object.keys(replacements).forEach(function(tokenIdx) {
|
|
1910
|
+
const idx = Number(tokenIdx);
|
|
1911
|
+
tokens[idx].content = applyReplacements(tokens[idx].content, replacements[tokenIdx]);
|
|
1912
|
+
});
|
|
1913
|
+
}
|
|
1914
|
+
function smartquotes(state) {
|
|
1915
|
+
if (!state.md.options.typographer) return;
|
|
1916
|
+
for (let blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {
|
|
1917
|
+
if (state.tokens[blkIdx].type !== "inline" || !QUOTE_TEST_RE.test(state.tokens[blkIdx].content)) continue;
|
|
1918
|
+
process_inlines(state.tokens[blkIdx].children, state);
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
//#endregion
|
|
1922
|
+
//#region src/rules_core/text_join.ts
|
|
1923
|
+
function join_alt(tokens) {
|
|
1924
|
+
let curr, last;
|
|
1925
|
+
const max = tokens.length;
|
|
1926
|
+
for (curr = 0; curr < max; curr++) if (tokens[curr].type === "text_special") tokens[curr].type = "text";
|
|
1927
|
+
for (curr = last = 0; curr < max; curr++) if (tokens[curr].type === "text" && curr + 1 < max && tokens[curr + 1].type === "text") tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;
|
|
1928
|
+
else {
|
|
1929
|
+
if (curr !== last) tokens[last] = tokens[curr];
|
|
1930
|
+
last++;
|
|
1931
|
+
}
|
|
1932
|
+
if (curr !== last) tokens.length = last;
|
|
1933
|
+
}
|
|
1934
|
+
function text_join(state) {
|
|
1935
|
+
let curr, last;
|
|
1936
|
+
const blockTokens = state.tokens;
|
|
1937
|
+
const l = blockTokens.length;
|
|
1938
|
+
for (let j = 0; j < l; j++) {
|
|
1939
|
+
if (blockTokens[j].type !== "inline") continue;
|
|
1940
|
+
const tokens = blockTokens[j].children;
|
|
1941
|
+
const max = tokens.length;
|
|
1942
|
+
for (curr = 0; curr < max; curr++) {
|
|
1943
|
+
if (tokens[curr].type === "text_special") tokens[curr].type = "text";
|
|
1944
|
+
if (tokens[curr].children) join_alt(tokens[curr].children);
|
|
1945
|
+
}
|
|
1946
|
+
for (curr = last = 0; curr < max; curr++) if (tokens[curr].type === "text" && curr + 1 < max && tokens[curr + 1].type === "text") tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;
|
|
1947
|
+
else {
|
|
1948
|
+
if (curr !== last) tokens[last] = tokens[curr];
|
|
1949
|
+
last++;
|
|
1950
|
+
}
|
|
1951
|
+
if (curr !== last) tokens.length = last;
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
//#endregion
|
|
1955
|
+
//#region src/parser_core.ts
|
|
1956
|
+
var _rules$2 = [
|
|
1957
|
+
["normalize", normalize],
|
|
1958
|
+
["block", block],
|
|
1959
|
+
["strip_references", strip_references],
|
|
1960
|
+
["inline", inline],
|
|
1961
|
+
["linkify", linkify$1],
|
|
1962
|
+
["replacements", replace],
|
|
1963
|
+
["smartquotes", smartquotes],
|
|
1964
|
+
["text_join", text_join]
|
|
1965
|
+
];
|
|
1966
|
+
/**
|
|
1967
|
+
* Top-level rules executor. Glues block/inline parsers and does intermediate
|
|
1968
|
+
* transformations.
|
|
1969
|
+
*/
|
|
1970
|
+
var ParserCore = class {
|
|
1971
|
+
constructor() {
|
|
1972
|
+
_defineProperty(
|
|
1973
|
+
this,
|
|
1974
|
+
/**
|
|
1975
|
+
* {@link Ruler} instance. Keep configuration of core rules.
|
|
1976
|
+
*/
|
|
1977
|
+
"ruler",
|
|
1978
|
+
new Ruler()
|
|
1979
|
+
);
|
|
1980
|
+
_defineProperty(this, "State", StateCore);
|
|
1981
|
+
for (let i = 0; i < _rules$2.length; i++) this.ruler.push(_rules$2[i][0], _rules$2[i][1]);
|
|
1982
|
+
}
|
|
1983
|
+
/**
|
|
1984
|
+
* Executes core chain rules.
|
|
1985
|
+
*/
|
|
1986
|
+
process(state) {
|
|
1987
|
+
const rules = this.ruler.getRules("");
|
|
1988
|
+
for (let i = 0, l = rules.length; i < l; i++) rules[i](state);
|
|
1989
|
+
}
|
|
1990
|
+
};
|
|
1991
|
+
//#endregion
|
|
1992
|
+
//#region src/rules_block/state_block.ts
|
|
1993
|
+
/** Mutable state passed to block rules while tokenizing a source document. */
|
|
1994
|
+
var StateBlock = class {
|
|
1995
|
+
constructor(src, md, env, tokens) {
|
|
1996
|
+
_defineProperty(this, "bMarks", []);
|
|
1997
|
+
_defineProperty(this, "eMarks", []);
|
|
1998
|
+
_defineProperty(this, "tShift", []);
|
|
1999
|
+
_defineProperty(this, "sCount", []);
|
|
2000
|
+
_defineProperty(this, "bsCount", []);
|
|
2001
|
+
_defineProperty(this, "blkIndent", 0);
|
|
2002
|
+
_defineProperty(this, "line", 0);
|
|
2003
|
+
_defineProperty(this, "lineMax", 0);
|
|
2004
|
+
_defineProperty(this, "tight", false);
|
|
2005
|
+
_defineProperty(this, "listIndent", -1);
|
|
2006
|
+
_defineProperty(this, "parentType", "root");
|
|
2007
|
+
_defineProperty(this, "level", 0);
|
|
2008
|
+
_defineProperty(this, "Token", Token);
|
|
2009
|
+
this.src = src;
|
|
2010
|
+
this.md = md;
|
|
2011
|
+
this.env = env;
|
|
2012
|
+
this.tokens = tokens;
|
|
2013
|
+
const s = this.src;
|
|
2014
|
+
for (let start = 0, pos = 0, indent = 0, offset = 0, len = s.length, indent_found = false; pos < len; pos++) {
|
|
2015
|
+
const ch = s.charCodeAt(pos);
|
|
2016
|
+
if (!indent_found) {
|
|
2017
|
+
if (isSpace(ch)) {
|
|
2018
|
+
indent++;
|
|
2019
|
+
if (ch === 9) offset += 4 - offset % 4;
|
|
2020
|
+
else offset++;
|
|
2021
|
+
continue;
|
|
2022
|
+
} else indent_found = true;
|
|
2023
|
+
}
|
|
2024
|
+
if (ch === 10 || pos === len - 1) {
|
|
2025
|
+
if (ch !== 10) pos++;
|
|
2026
|
+
this.bMarks.push(start);
|
|
2027
|
+
this.eMarks.push(pos);
|
|
2028
|
+
this.tShift.push(indent);
|
|
2029
|
+
this.sCount.push(offset);
|
|
2030
|
+
this.bsCount.push(0);
|
|
2031
|
+
indent_found = false;
|
|
2032
|
+
indent = 0;
|
|
2033
|
+
offset = 0;
|
|
2034
|
+
start = pos + 1;
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
this.bMarks.push(s.length);
|
|
2038
|
+
this.eMarks.push(s.length);
|
|
2039
|
+
this.tShift.push(0);
|
|
2040
|
+
this.sCount.push(0);
|
|
2041
|
+
this.bsCount.push(0);
|
|
2042
|
+
this.lineMax = this.bMarks.length - 1;
|
|
2043
|
+
}
|
|
2044
|
+
push(type, tag, nesting) {
|
|
2045
|
+
const token = new Token(type, tag, nesting);
|
|
2046
|
+
token.block = true;
|
|
2047
|
+
if (nesting < 0) this.level--;
|
|
2048
|
+
token.level = this.level;
|
|
2049
|
+
if (nesting > 0) this.level++;
|
|
2050
|
+
this.tokens.push(token);
|
|
2051
|
+
return token;
|
|
2052
|
+
}
|
|
2053
|
+
isEmpty(line) {
|
|
2054
|
+
return this.bMarks[line] + this.tShift[line] >= this.eMarks[line];
|
|
2055
|
+
}
|
|
2056
|
+
skipEmptyLines(from) {
|
|
2057
|
+
for (let max = this.lineMax; from < max; from++) if (this.bMarks[from] + this.tShift[from] < this.eMarks[from]) break;
|
|
2058
|
+
return from;
|
|
2059
|
+
}
|
|
2060
|
+
skipSpaces(pos) {
|
|
2061
|
+
for (let max = this.src.length; pos < max; pos++) if (!isSpace(this.src.charCodeAt(pos))) break;
|
|
2062
|
+
return pos;
|
|
2063
|
+
}
|
|
2064
|
+
skipSpacesBack(pos, min) {
|
|
2065
|
+
if (pos <= min) return pos;
|
|
2066
|
+
while (pos > min) if (!isSpace(this.src.charCodeAt(--pos))) return pos + 1;
|
|
2067
|
+
return pos;
|
|
2068
|
+
}
|
|
2069
|
+
skipChars(pos, code) {
|
|
2070
|
+
for (let max = this.src.length; pos < max; pos++) if (this.src.charCodeAt(pos) !== code) break;
|
|
2071
|
+
return pos;
|
|
2072
|
+
}
|
|
2073
|
+
skipCharsBack(pos, code, min) {
|
|
2074
|
+
if (pos <= min) return pos;
|
|
2075
|
+
while (pos > min) if (code !== this.src.charCodeAt(--pos)) return pos + 1;
|
|
2076
|
+
return pos;
|
|
2077
|
+
}
|
|
2078
|
+
getLines(begin, end, indent, keepLastLF) {
|
|
2079
|
+
if (begin >= end) return "";
|
|
2080
|
+
const queue = new Array(end - begin);
|
|
2081
|
+
for (let i = 0, line = begin; line < end; line++, i++) {
|
|
2082
|
+
let lineIndent = 0;
|
|
2083
|
+
const lineStart = this.bMarks[line];
|
|
2084
|
+
let first = lineStart;
|
|
2085
|
+
let last;
|
|
2086
|
+
if (line + 1 < end || keepLastLF) last = this.eMarks[line] + 1;
|
|
2087
|
+
else last = this.eMarks[line];
|
|
2088
|
+
while (first < last && lineIndent < indent) {
|
|
2089
|
+
const ch = this.src.charCodeAt(first);
|
|
2090
|
+
if (isSpace(ch)) {
|
|
2091
|
+
if (ch === 9) lineIndent += 4 - (lineIndent + this.bsCount[line]) % 4;
|
|
2092
|
+
else lineIndent++;
|
|
2093
|
+
} else if (first - lineStart < this.tShift[line]) lineIndent++;
|
|
2094
|
+
else break;
|
|
2095
|
+
first++;
|
|
2096
|
+
}
|
|
2097
|
+
if (lineIndent > indent) queue[i] = new Array(lineIndent - indent + 1).join(" ") + this.src.slice(first, last);
|
|
2098
|
+
else queue[i] = this.src.slice(first, last);
|
|
2099
|
+
}
|
|
2100
|
+
return queue.join("");
|
|
2101
|
+
}
|
|
2102
|
+
};
|
|
2103
|
+
//#endregion
|
|
2104
|
+
//#region src/rules_block/table.ts
|
|
2105
|
+
var MAX_AUTOCOMPLETED_CELLS = 65536;
|
|
2106
|
+
function getLine(state, line) {
|
|
2107
|
+
const pos = state.bMarks[line] + state.tShift[line];
|
|
2108
|
+
const max = state.eMarks[line];
|
|
2109
|
+
return state.src.slice(pos, max);
|
|
2110
|
+
}
|
|
2111
|
+
function escapedSplit(str) {
|
|
2112
|
+
const result = [];
|
|
2113
|
+
const max = str.length;
|
|
2114
|
+
let pos = 0;
|
|
2115
|
+
let ch = str.charCodeAt(pos);
|
|
2116
|
+
let isEscaped = false;
|
|
2117
|
+
let lastPos = 0;
|
|
2118
|
+
let current = "";
|
|
2119
|
+
while (pos < max) {
|
|
2120
|
+
if (ch === 124) {
|
|
2121
|
+
if (!isEscaped) {
|
|
2122
|
+
result.push(current + str.substring(lastPos, pos));
|
|
2123
|
+
current = "";
|
|
2124
|
+
lastPos = pos + 1;
|
|
2125
|
+
} else {
|
|
2126
|
+
current += str.substring(lastPos, pos - 1);
|
|
2127
|
+
lastPos = pos;
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
isEscaped = ch === 92;
|
|
2131
|
+
pos++;
|
|
2132
|
+
ch = str.charCodeAt(pos);
|
|
2133
|
+
}
|
|
2134
|
+
result.push(current + str.substring(lastPos));
|
|
2135
|
+
return result;
|
|
2136
|
+
}
|
|
2137
|
+
function table(state, startLine, endLine, silent) {
|
|
2138
|
+
if (startLine + 2 > endLine) return false;
|
|
2139
|
+
let nextLine = startLine + 1;
|
|
2140
|
+
if (state.sCount[nextLine] < state.blkIndent) return false;
|
|
2141
|
+
if (state.sCount[nextLine] - state.blkIndent >= 4) return false;
|
|
2142
|
+
let pos = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
2143
|
+
if (pos >= state.eMarks[nextLine]) return false;
|
|
2144
|
+
const firstCh = state.src.charCodeAt(pos++);
|
|
2145
|
+
if (firstCh !== 124 && firstCh !== 45 && firstCh !== 58) return false;
|
|
2146
|
+
if (pos >= state.eMarks[nextLine]) return false;
|
|
2147
|
+
const secondCh = state.src.charCodeAt(pos++);
|
|
2148
|
+
if (secondCh !== 124 && secondCh !== 45 && secondCh !== 58 && !isSpace(secondCh)) return false;
|
|
2149
|
+
if (firstCh === 45 && isSpace(secondCh)) return false;
|
|
2150
|
+
while (pos < state.eMarks[nextLine]) {
|
|
2151
|
+
const ch = state.src.charCodeAt(pos);
|
|
2152
|
+
if (ch !== 124 && ch !== 45 && ch !== 58 && !isSpace(ch)) return false;
|
|
2153
|
+
pos++;
|
|
2154
|
+
}
|
|
2155
|
+
let lineText = getLine(state, startLine + 1);
|
|
2156
|
+
let columns = lineText.split("|");
|
|
2157
|
+
const aligns = [];
|
|
2158
|
+
for (let i = 0; i < columns.length; i++) {
|
|
2159
|
+
const t = columns[i].trim();
|
|
2160
|
+
if (!t) {
|
|
2161
|
+
if (i === 0 || i === columns.length - 1) continue;
|
|
2162
|
+
else return false;
|
|
2163
|
+
}
|
|
2164
|
+
if (!/^:?-+:?$/.test(t)) return false;
|
|
2165
|
+
if (t.charCodeAt(t.length - 1) === 58) aligns.push(t.charCodeAt(0) === 58 ? "center" : "right");
|
|
2166
|
+
else if (t.charCodeAt(0) === 58) aligns.push("left");
|
|
2167
|
+
else aligns.push("");
|
|
2168
|
+
}
|
|
2169
|
+
lineText = getLine(state, startLine).trim();
|
|
2170
|
+
if (lineText.indexOf("|") === -1) return false;
|
|
2171
|
+
if (state.sCount[startLine] - state.blkIndent >= 4) return false;
|
|
2172
|
+
columns = escapedSplit(lineText);
|
|
2173
|
+
if (columns.length && columns[0] === "") columns.shift();
|
|
2174
|
+
if (columns.length && columns[columns.length - 1] === "") columns.pop();
|
|
2175
|
+
const columnCount = columns.length;
|
|
2176
|
+
if (columnCount === 0 || columnCount !== aligns.length) return false;
|
|
2177
|
+
if (silent) return true;
|
|
2178
|
+
const oldParentType = state.parentType;
|
|
2179
|
+
state.parentType = "table";
|
|
2180
|
+
const terminatorRules = state.md.block.ruler.getRules("blockquote");
|
|
2181
|
+
const token_to = state.push("table_open", "table", 1);
|
|
2182
|
+
const tableLines = [startLine, 0];
|
|
2183
|
+
token_to.map = tableLines;
|
|
2184
|
+
const token_tho = state.push("thead_open", "thead", 1);
|
|
2185
|
+
token_tho.map = [startLine, startLine + 1];
|
|
2186
|
+
const token_htro = state.push("tr_open", "tr", 1);
|
|
2187
|
+
token_htro.map = [startLine, startLine + 1];
|
|
2188
|
+
for (let i = 0; i < columns.length; i++) {
|
|
2189
|
+
const token_ho = state.push("th_open", "th", 1);
|
|
2190
|
+
if (aligns[i]) token_ho.attrs = [["style", `text-align:${aligns[i]}`]];
|
|
2191
|
+
const token_il = state.push("inline", "", 0);
|
|
2192
|
+
token_il.content = columns[i].trim();
|
|
2193
|
+
token_il.children = [];
|
|
2194
|
+
state.push("th_close", "th", -1);
|
|
2195
|
+
}
|
|
2196
|
+
state.push("tr_close", "tr", -1);
|
|
2197
|
+
state.push("thead_close", "thead", -1);
|
|
2198
|
+
let tbodyLines;
|
|
2199
|
+
let autocompletedCells = 0;
|
|
2200
|
+
for (nextLine = startLine + 2; nextLine < endLine; nextLine++) {
|
|
2201
|
+
if (state.sCount[nextLine] < state.blkIndent) break;
|
|
2202
|
+
let terminate = false;
|
|
2203
|
+
for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
2204
|
+
terminate = true;
|
|
2205
|
+
break;
|
|
2206
|
+
}
|
|
2207
|
+
if (terminate) break;
|
|
2208
|
+
lineText = getLine(state, nextLine).trim();
|
|
2209
|
+
if (!lineText) break;
|
|
2210
|
+
if (state.sCount[nextLine] - state.blkIndent >= 4) break;
|
|
2211
|
+
columns = escapedSplit(lineText);
|
|
2212
|
+
if (columns.length && columns[0] === "") columns.shift();
|
|
2213
|
+
if (columns.length && columns[columns.length - 1] === "") columns.pop();
|
|
2214
|
+
autocompletedCells += columnCount - columns.length;
|
|
2215
|
+
if (autocompletedCells > MAX_AUTOCOMPLETED_CELLS) break;
|
|
2216
|
+
if (nextLine === startLine + 2) {
|
|
2217
|
+
const token_tbo = state.push("tbody_open", "tbody", 1);
|
|
2218
|
+
token_tbo.map = tbodyLines = [startLine + 2, 0];
|
|
2219
|
+
}
|
|
2220
|
+
const token_tro = state.push("tr_open", "tr", 1);
|
|
2221
|
+
token_tro.map = [nextLine, nextLine + 1];
|
|
2222
|
+
for (let i = 0; i < columnCount; i++) {
|
|
2223
|
+
const token_tdo = state.push("td_open", "td", 1);
|
|
2224
|
+
if (aligns[i]) token_tdo.attrs = [["style", `text-align:${aligns[i]}`]];
|
|
2225
|
+
const token_il = state.push("inline", "", 0);
|
|
2226
|
+
token_il.content = columns[i] ? columns[i].trim() : "";
|
|
2227
|
+
token_il.children = [];
|
|
2228
|
+
state.push("td_close", "td", -1);
|
|
2229
|
+
}
|
|
2230
|
+
state.push("tr_close", "tr", -1);
|
|
2231
|
+
}
|
|
2232
|
+
if (tbodyLines) {
|
|
2233
|
+
state.push("tbody_close", "tbody", -1);
|
|
2234
|
+
tbodyLines[1] = nextLine;
|
|
2235
|
+
}
|
|
2236
|
+
state.push("table_close", "table", -1);
|
|
2237
|
+
tableLines[1] = nextLine;
|
|
2238
|
+
state.parentType = oldParentType;
|
|
2239
|
+
state.line = nextLine;
|
|
2240
|
+
return true;
|
|
2241
|
+
}
|
|
2242
|
+
//#endregion
|
|
2243
|
+
//#region src/rules_block/code.ts
|
|
2244
|
+
function code(state, startLine, endLine) {
|
|
2245
|
+
if (state.sCount[startLine] - state.blkIndent < 4) return false;
|
|
2246
|
+
let nextLine = startLine + 1;
|
|
2247
|
+
let last = nextLine;
|
|
2248
|
+
while (nextLine < endLine) {
|
|
2249
|
+
if (state.isEmpty(nextLine)) {
|
|
2250
|
+
nextLine++;
|
|
2251
|
+
continue;
|
|
2252
|
+
}
|
|
2253
|
+
if (state.sCount[nextLine] - state.blkIndent >= 4) {
|
|
2254
|
+
nextLine++;
|
|
2255
|
+
last = nextLine;
|
|
2256
|
+
continue;
|
|
2257
|
+
}
|
|
2258
|
+
break;
|
|
2259
|
+
}
|
|
2260
|
+
state.line = last;
|
|
2261
|
+
const token = state.push("code_block", "code", 0);
|
|
2262
|
+
token.content = state.getLines(startLine, last, 4 + state.blkIndent, false) + "\n";
|
|
2263
|
+
token.map = [startLine, state.line];
|
|
2264
|
+
return true;
|
|
2265
|
+
}
|
|
2266
|
+
//#endregion
|
|
2267
|
+
//#region src/rules_block/fence.ts
|
|
2268
|
+
function fence(state, startLine, endLine, silent) {
|
|
2269
|
+
let pos = state.bMarks[startLine] + state.tShift[startLine];
|
|
2270
|
+
let max = state.eMarks[startLine];
|
|
2271
|
+
if (state.sCount[startLine] - state.blkIndent >= 4) return false;
|
|
2272
|
+
if (pos + 3 > max) return false;
|
|
2273
|
+
const marker = state.src.charCodeAt(pos);
|
|
2274
|
+
if (marker !== 126 && marker !== 96) return false;
|
|
2275
|
+
let mem = pos;
|
|
2276
|
+
pos = state.skipChars(pos, marker);
|
|
2277
|
+
let len = pos - mem;
|
|
2278
|
+
if (len < 3) return false;
|
|
2279
|
+
const markup = state.src.slice(mem, pos);
|
|
2280
|
+
const params = state.src.slice(pos, max);
|
|
2281
|
+
if (marker === 96) {
|
|
2282
|
+
if (params.indexOf(String.fromCharCode(marker)) >= 0) return false;
|
|
2283
|
+
}
|
|
2284
|
+
if (silent) return true;
|
|
2285
|
+
let nextLine = startLine;
|
|
2286
|
+
let haveEndMarker = false;
|
|
2287
|
+
for (;;) {
|
|
2288
|
+
nextLine++;
|
|
2289
|
+
if (nextLine >= endLine) break;
|
|
2290
|
+
pos = mem = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
2291
|
+
max = state.eMarks[nextLine];
|
|
2292
|
+
if (pos < max && state.sCount[nextLine] < state.blkIndent) break;
|
|
2293
|
+
if (state.src.charCodeAt(pos) !== marker) continue;
|
|
2294
|
+
if (state.sCount[nextLine] - state.blkIndent >= 4) continue;
|
|
2295
|
+
pos = state.skipChars(pos, marker);
|
|
2296
|
+
if (pos - mem < len) continue;
|
|
2297
|
+
pos = state.skipSpaces(pos);
|
|
2298
|
+
if (pos < max) continue;
|
|
2299
|
+
haveEndMarker = true;
|
|
2300
|
+
break;
|
|
2301
|
+
}
|
|
2302
|
+
len = state.sCount[startLine];
|
|
2303
|
+
state.line = nextLine + (haveEndMarker ? 1 : 0);
|
|
2304
|
+
const token = state.push("fence", "code", 0);
|
|
2305
|
+
token.info = params;
|
|
2306
|
+
token.content = state.getLines(startLine + 1, nextLine, len, true);
|
|
2307
|
+
token.markup = markup;
|
|
2308
|
+
token.map = [startLine, state.line];
|
|
2309
|
+
return true;
|
|
2310
|
+
}
|
|
2311
|
+
//#endregion
|
|
2312
|
+
//#region src/rules_block/blockquote.ts
|
|
2313
|
+
function blockquote(state, startLine, endLine, silent) {
|
|
2314
|
+
let pos = state.bMarks[startLine] + state.tShift[startLine];
|
|
2315
|
+
let max = state.eMarks[startLine];
|
|
2316
|
+
const oldLineMax = state.lineMax;
|
|
2317
|
+
if (state.sCount[startLine] - state.blkIndent >= 4) return false;
|
|
2318
|
+
if (state.src.charCodeAt(pos) !== 62) return false;
|
|
2319
|
+
if (silent) return true;
|
|
2320
|
+
const oldBMarks = [];
|
|
2321
|
+
const oldBSCount = [];
|
|
2322
|
+
const oldSCount = [];
|
|
2323
|
+
const oldTShift = [];
|
|
2324
|
+
const terminatorRules = state.md.block.ruler.getRules("blockquote");
|
|
2325
|
+
const oldParentType = state.parentType;
|
|
2326
|
+
state.parentType = "blockquote";
|
|
2327
|
+
let lastLineEmpty = false;
|
|
2328
|
+
let nextLine;
|
|
2329
|
+
for (nextLine = startLine; nextLine < endLine; nextLine++) {
|
|
2330
|
+
const isOutdented = state.sCount[nextLine] < state.blkIndent;
|
|
2331
|
+
pos = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
2332
|
+
max = state.eMarks[nextLine];
|
|
2333
|
+
if (pos >= max) break;
|
|
2334
|
+
if (state.src.charCodeAt(pos++) === 62 && !isOutdented) {
|
|
2335
|
+
let initial = state.sCount[nextLine] + 1;
|
|
2336
|
+
let spaceAfterMarker;
|
|
2337
|
+
let adjustTab;
|
|
2338
|
+
if (state.src.charCodeAt(pos) === 32) {
|
|
2339
|
+
pos++;
|
|
2340
|
+
initial++;
|
|
2341
|
+
adjustTab = false;
|
|
2342
|
+
spaceAfterMarker = true;
|
|
2343
|
+
} else if (state.src.charCodeAt(pos) === 9) {
|
|
2344
|
+
spaceAfterMarker = true;
|
|
2345
|
+
if ((state.bsCount[nextLine] + initial) % 4 === 3) {
|
|
2346
|
+
pos++;
|
|
2347
|
+
initial++;
|
|
2348
|
+
adjustTab = false;
|
|
2349
|
+
} else adjustTab = true;
|
|
2350
|
+
} else spaceAfterMarker = false;
|
|
2351
|
+
let offset = initial;
|
|
2352
|
+
oldBMarks.push(state.bMarks[nextLine]);
|
|
2353
|
+
state.bMarks[nextLine] = pos;
|
|
2354
|
+
while (pos < max) {
|
|
2355
|
+
const ch = state.src.charCodeAt(pos);
|
|
2356
|
+
if (isSpace(ch)) {
|
|
2357
|
+
if (ch === 9) offset += 4 - (offset + state.bsCount[nextLine] + (adjustTab ? 1 : 0)) % 4;
|
|
2358
|
+
else offset++;
|
|
2359
|
+
} else break;
|
|
2360
|
+
pos++;
|
|
2361
|
+
}
|
|
2362
|
+
lastLineEmpty = pos >= max;
|
|
2363
|
+
oldBSCount.push(state.bsCount[nextLine]);
|
|
2364
|
+
state.bsCount[nextLine] = state.sCount[nextLine] + 1 + (spaceAfterMarker ? 1 : 0);
|
|
2365
|
+
oldSCount.push(state.sCount[nextLine]);
|
|
2366
|
+
state.sCount[nextLine] = offset - initial;
|
|
2367
|
+
oldTShift.push(state.tShift[nextLine]);
|
|
2368
|
+
state.tShift[nextLine] = pos - state.bMarks[nextLine];
|
|
2369
|
+
continue;
|
|
2370
|
+
}
|
|
2371
|
+
if (lastLineEmpty) break;
|
|
2372
|
+
let terminate = false;
|
|
2373
|
+
for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
2374
|
+
terminate = true;
|
|
2375
|
+
break;
|
|
2376
|
+
}
|
|
2377
|
+
if (terminate) {
|
|
2378
|
+
state.lineMax = nextLine;
|
|
2379
|
+
if (state.blkIndent !== 0) {
|
|
2380
|
+
oldBMarks.push(state.bMarks[nextLine]);
|
|
2381
|
+
oldBSCount.push(state.bsCount[nextLine]);
|
|
2382
|
+
oldTShift.push(state.tShift[nextLine]);
|
|
2383
|
+
oldSCount.push(state.sCount[nextLine]);
|
|
2384
|
+
state.sCount[nextLine] -= state.blkIndent;
|
|
2385
|
+
}
|
|
2386
|
+
break;
|
|
2387
|
+
}
|
|
2388
|
+
oldBMarks.push(state.bMarks[nextLine]);
|
|
2389
|
+
oldBSCount.push(state.bsCount[nextLine]);
|
|
2390
|
+
oldTShift.push(state.tShift[nextLine]);
|
|
2391
|
+
oldSCount.push(state.sCount[nextLine]);
|
|
2392
|
+
state.sCount[nextLine] = -1;
|
|
2393
|
+
}
|
|
2394
|
+
const oldIndent = state.blkIndent;
|
|
2395
|
+
state.blkIndent = 0;
|
|
2396
|
+
const token_o = state.push("blockquote_open", "blockquote", 1);
|
|
2397
|
+
token_o.markup = ">";
|
|
2398
|
+
const lines = [startLine, 0];
|
|
2399
|
+
token_o.map = lines;
|
|
2400
|
+
state.md.block.tokenize(state, startLine, nextLine);
|
|
2401
|
+
const token_c = state.push("blockquote_close", "blockquote", -1);
|
|
2402
|
+
token_c.markup = ">";
|
|
2403
|
+
state.lineMax = oldLineMax;
|
|
2404
|
+
state.parentType = oldParentType;
|
|
2405
|
+
lines[1] = state.line;
|
|
2406
|
+
for (let i = 0; i < oldTShift.length; i++) {
|
|
2407
|
+
state.bMarks[i + startLine] = oldBMarks[i];
|
|
2408
|
+
state.tShift[i + startLine] = oldTShift[i];
|
|
2409
|
+
state.sCount[i + startLine] = oldSCount[i];
|
|
2410
|
+
state.bsCount[i + startLine] = oldBSCount[i];
|
|
2411
|
+
}
|
|
2412
|
+
state.blkIndent = oldIndent;
|
|
2413
|
+
return true;
|
|
2414
|
+
}
|
|
2415
|
+
//#endregion
|
|
2416
|
+
//#region src/rules_block/hr.ts
|
|
2417
|
+
function hr(state, startLine, endLine, silent) {
|
|
2418
|
+
const max = state.eMarks[startLine];
|
|
2419
|
+
if (state.sCount[startLine] - state.blkIndent >= 4) return false;
|
|
2420
|
+
let pos = state.bMarks[startLine] + state.tShift[startLine];
|
|
2421
|
+
const marker = state.src.charCodeAt(pos++);
|
|
2422
|
+
if (marker !== 42 && marker !== 45 && marker !== 95) return false;
|
|
2423
|
+
let cnt = 1;
|
|
2424
|
+
while (pos < max) {
|
|
2425
|
+
const ch = state.src.charCodeAt(pos++);
|
|
2426
|
+
if (ch !== marker && !isSpace(ch)) return false;
|
|
2427
|
+
if (ch === marker) cnt++;
|
|
2428
|
+
}
|
|
2429
|
+
if (cnt < 3) return false;
|
|
2430
|
+
if (silent) return true;
|
|
2431
|
+
state.line = startLine + 1;
|
|
2432
|
+
const token = state.push("hr", "hr", 0);
|
|
2433
|
+
token.map = [startLine, state.line];
|
|
2434
|
+
token.markup = Array(cnt + 1).join(String.fromCharCode(marker));
|
|
2435
|
+
return true;
|
|
2436
|
+
}
|
|
2437
|
+
//#endregion
|
|
2438
|
+
//#region src/rules_block/list.ts
|
|
2439
|
+
function skipBulletListMarker(state, startLine) {
|
|
2440
|
+
const max = state.eMarks[startLine];
|
|
2441
|
+
let pos = state.bMarks[startLine] + state.tShift[startLine];
|
|
2442
|
+
const marker = state.src.charCodeAt(pos++);
|
|
2443
|
+
if (marker !== 42 && marker !== 45 && marker !== 43) return -1;
|
|
2444
|
+
if (pos < max) {
|
|
2445
|
+
if (!isSpace(state.src.charCodeAt(pos))) return -1;
|
|
2446
|
+
}
|
|
2447
|
+
return pos;
|
|
2448
|
+
}
|
|
2449
|
+
function skipOrderedListMarker(state, startLine) {
|
|
2450
|
+
const start = state.bMarks[startLine] + state.tShift[startLine];
|
|
2451
|
+
const max = state.eMarks[startLine];
|
|
2452
|
+
let pos = start;
|
|
2453
|
+
if (pos + 1 >= max) return -1;
|
|
2454
|
+
let ch = state.src.charCodeAt(pos++);
|
|
2455
|
+
if (ch < 48 || ch > 57) return -1;
|
|
2456
|
+
for (;;) {
|
|
2457
|
+
if (pos >= max) return -1;
|
|
2458
|
+
ch = state.src.charCodeAt(pos++);
|
|
2459
|
+
if (ch >= 48 && ch <= 57) {
|
|
2460
|
+
if (pos - start >= 10) return -1;
|
|
2461
|
+
continue;
|
|
2462
|
+
}
|
|
2463
|
+
if (ch === 41 || ch === 46) break;
|
|
2464
|
+
return -1;
|
|
2465
|
+
}
|
|
2466
|
+
if (pos < max) {
|
|
2467
|
+
ch = state.src.charCodeAt(pos);
|
|
2468
|
+
if (!isSpace(ch)) return -1;
|
|
2469
|
+
}
|
|
2470
|
+
return pos;
|
|
2471
|
+
}
|
|
2472
|
+
function markTightParagraphs(state, idx) {
|
|
2473
|
+
const level = state.level + 2;
|
|
2474
|
+
for (let i = idx + 2, l = state.tokens.length - 2; i < l; i++) if (state.tokens[i].level === level && state.tokens[i].type === "paragraph_open") {
|
|
2475
|
+
state.tokens[i + 2].hidden = true;
|
|
2476
|
+
state.tokens[i].hidden = true;
|
|
2477
|
+
i += 2;
|
|
2478
|
+
}
|
|
2479
|
+
}
|
|
2480
|
+
function list(state, startLine, endLine, silent) {
|
|
2481
|
+
let max, pos, start, token;
|
|
2482
|
+
let nextLine = startLine;
|
|
2483
|
+
let tight = true;
|
|
2484
|
+
if (state.sCount[nextLine] - state.blkIndent >= 4) return false;
|
|
2485
|
+
if (state.listIndent >= 0 && state.sCount[nextLine] - state.listIndent >= 4 && state.sCount[nextLine] < state.blkIndent) return false;
|
|
2486
|
+
let isTerminatingParagraph = false;
|
|
2487
|
+
if (silent && state.parentType === "paragraph") {
|
|
2488
|
+
if (state.sCount[nextLine] >= state.blkIndent) isTerminatingParagraph = true;
|
|
2489
|
+
}
|
|
2490
|
+
let isOrdered;
|
|
2491
|
+
let markerValue;
|
|
2492
|
+
let posAfterMarker;
|
|
2493
|
+
if ((posAfterMarker = skipOrderedListMarker(state, nextLine)) >= 0) {
|
|
2494
|
+
isOrdered = true;
|
|
2495
|
+
start = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
2496
|
+
markerValue = Number(state.src.slice(start, posAfterMarker - 1));
|
|
2497
|
+
if (isTerminatingParagraph && markerValue !== 1) return false;
|
|
2498
|
+
} else if ((posAfterMarker = skipBulletListMarker(state, nextLine)) >= 0) isOrdered = false;
|
|
2499
|
+
else return false;
|
|
2500
|
+
if (isTerminatingParagraph) {
|
|
2501
|
+
if (state.skipSpaces(posAfterMarker) >= state.eMarks[nextLine]) return false;
|
|
2502
|
+
}
|
|
2503
|
+
if (silent) return true;
|
|
2504
|
+
const markerCharCode = state.src.charCodeAt(posAfterMarker - 1);
|
|
2505
|
+
const listTokIdx = state.tokens.length;
|
|
2506
|
+
if (isOrdered) {
|
|
2507
|
+
token = state.push("ordered_list_open", "ol", 1);
|
|
2508
|
+
if (markerValue !== 1) token.attrs = [["start", markerValue]];
|
|
2509
|
+
} else token = state.push("bullet_list_open", "ul", 1);
|
|
2510
|
+
const listLines = [nextLine, 0];
|
|
2511
|
+
token.map = listLines;
|
|
2512
|
+
token.markup = String.fromCharCode(markerCharCode);
|
|
2513
|
+
let prevEmptyEnd = false;
|
|
2514
|
+
const terminatorRules = state.md.block.ruler.getRules("list");
|
|
2515
|
+
const oldParentType = state.parentType;
|
|
2516
|
+
state.parentType = "list";
|
|
2517
|
+
while (nextLine < endLine) {
|
|
2518
|
+
pos = posAfterMarker;
|
|
2519
|
+
max = state.eMarks[nextLine];
|
|
2520
|
+
const initial = state.sCount[nextLine] + posAfterMarker - (state.bMarks[nextLine] + state.tShift[nextLine]);
|
|
2521
|
+
let offset = initial;
|
|
2522
|
+
while (pos < max) {
|
|
2523
|
+
const ch = state.src.charCodeAt(pos);
|
|
2524
|
+
if (ch === 9) offset += 4 - (offset + state.bsCount[nextLine]) % 4;
|
|
2525
|
+
else if (ch === 32) offset++;
|
|
2526
|
+
else break;
|
|
2527
|
+
pos++;
|
|
2528
|
+
}
|
|
2529
|
+
const contentStart = pos;
|
|
2530
|
+
let indentAfterMarker;
|
|
2531
|
+
if (contentStart >= max) indentAfterMarker = 1;
|
|
2532
|
+
else indentAfterMarker = offset - initial;
|
|
2533
|
+
if (indentAfterMarker > 4) indentAfterMarker = 1;
|
|
2534
|
+
const indent = initial + indentAfterMarker;
|
|
2535
|
+
token = state.push("list_item_open", "li", 1);
|
|
2536
|
+
token.markup = String.fromCharCode(markerCharCode);
|
|
2537
|
+
const itemLines = [nextLine, 0];
|
|
2538
|
+
token.map = itemLines;
|
|
2539
|
+
if (isOrdered) token.info = state.src.slice(start, posAfterMarker - 1);
|
|
2540
|
+
const oldTight = state.tight;
|
|
2541
|
+
const oldTShift = state.tShift[nextLine];
|
|
2542
|
+
const oldSCount = state.sCount[nextLine];
|
|
2543
|
+
const oldListIndent = state.listIndent;
|
|
2544
|
+
state.listIndent = state.blkIndent;
|
|
2545
|
+
state.blkIndent = indent;
|
|
2546
|
+
state.tight = true;
|
|
2547
|
+
state.tShift[nextLine] = contentStart - state.bMarks[nextLine];
|
|
2548
|
+
state.sCount[nextLine] = offset;
|
|
2549
|
+
if (contentStart >= max && state.isEmpty(nextLine + 1)) state.line = Math.min(state.line + 2, endLine);
|
|
2550
|
+
else state.md.block.tokenize(state, nextLine, endLine);
|
|
2551
|
+
if (!state.tight || prevEmptyEnd) tight = false;
|
|
2552
|
+
prevEmptyEnd = state.line - nextLine > 1 && state.isEmpty(state.line - 1);
|
|
2553
|
+
state.blkIndent = state.listIndent;
|
|
2554
|
+
state.listIndent = oldListIndent;
|
|
2555
|
+
state.tShift[nextLine] = oldTShift;
|
|
2556
|
+
state.sCount[nextLine] = oldSCount;
|
|
2557
|
+
state.tight = oldTight;
|
|
2558
|
+
token = state.push("list_item_close", "li", -1);
|
|
2559
|
+
token.markup = String.fromCharCode(markerCharCode);
|
|
2560
|
+
nextLine = state.line;
|
|
2561
|
+
itemLines[1] = nextLine;
|
|
2562
|
+
if (nextLine >= endLine) break;
|
|
2563
|
+
if (state.sCount[nextLine] < state.blkIndent) break;
|
|
2564
|
+
if (state.sCount[nextLine] - state.blkIndent >= 4) break;
|
|
2565
|
+
let terminate = false;
|
|
2566
|
+
for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
2567
|
+
terminate = true;
|
|
2568
|
+
break;
|
|
2569
|
+
}
|
|
2570
|
+
if (terminate) break;
|
|
2571
|
+
if (isOrdered) {
|
|
2572
|
+
posAfterMarker = skipOrderedListMarker(state, nextLine);
|
|
2573
|
+
if (posAfterMarker < 0) break;
|
|
2574
|
+
start = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
2575
|
+
} else {
|
|
2576
|
+
posAfterMarker = skipBulletListMarker(state, nextLine);
|
|
2577
|
+
if (posAfterMarker < 0) break;
|
|
2578
|
+
}
|
|
2579
|
+
if (markerCharCode !== state.src.charCodeAt(posAfterMarker - 1)) break;
|
|
2580
|
+
}
|
|
2581
|
+
if (isOrdered) token = state.push("ordered_list_close", "ol", -1);
|
|
2582
|
+
else token = state.push("bullet_list_close", "ul", -1);
|
|
2583
|
+
token.markup = String.fromCharCode(markerCharCode);
|
|
2584
|
+
listLines[1] = nextLine;
|
|
2585
|
+
state.line = nextLine;
|
|
2586
|
+
state.parentType = oldParentType;
|
|
2587
|
+
if (tight) markTightParagraphs(state, listTokIdx);
|
|
2588
|
+
return true;
|
|
2589
|
+
}
|
|
2590
|
+
//#endregion
|
|
2591
|
+
//#region src/rules_block/reference.ts
|
|
2592
|
+
var MAX_LABEL_LENGTH = 999;
|
|
2593
|
+
function countCodePoints(str) {
|
|
2594
|
+
let length = str.length;
|
|
2595
|
+
for (let i = 0; i < str.length - 1; i++) {
|
|
2596
|
+
const high = str.charCodeAt(i);
|
|
2597
|
+
if (high < 55296 || high > 56319) continue;
|
|
2598
|
+
const low = str.charCodeAt(i + 1);
|
|
2599
|
+
if (low >= 56320 && low <= 57343) {
|
|
2600
|
+
length--;
|
|
2601
|
+
i++;
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
return length;
|
|
2605
|
+
}
|
|
2606
|
+
function lineEnd(state, line) {
|
|
2607
|
+
return Math.min(state.eMarks[line] + 1, state.src.length);
|
|
2608
|
+
}
|
|
2609
|
+
function getNextLinePos(state, nextLine) {
|
|
2610
|
+
const endLine = state.lineMax;
|
|
2611
|
+
if (nextLine >= endLine || state.isEmpty(nextLine)) return -1;
|
|
2612
|
+
let isContinuation = false;
|
|
2613
|
+
if (state.sCount[nextLine] - state.blkIndent > 3) isContinuation = true;
|
|
2614
|
+
if (state.sCount[nextLine] < 0) isContinuation = true;
|
|
2615
|
+
if (!isContinuation) {
|
|
2616
|
+
const terminatorRules = state.md.block.ruler.getRules("reference");
|
|
2617
|
+
const oldParentType = state.parentType;
|
|
2618
|
+
state.parentType = "reference";
|
|
2619
|
+
let terminate = false;
|
|
2620
|
+
for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
2621
|
+
terminate = true;
|
|
2622
|
+
break;
|
|
2623
|
+
}
|
|
2624
|
+
state.parentType = oldParentType;
|
|
2625
|
+
if (terminate) return -1;
|
|
2626
|
+
}
|
|
2627
|
+
return state.bMarks[nextLine] + state.tShift[nextLine];
|
|
2628
|
+
}
|
|
2629
|
+
function reference(state, startLine, _endLine, silent) {
|
|
2630
|
+
const src = state.src;
|
|
2631
|
+
let pos = state.bMarks[startLine] + state.tShift[startLine];
|
|
2632
|
+
let nextLine = startLine + 1;
|
|
2633
|
+
if (state.sCount[startLine] - state.blkIndent >= 4) return false;
|
|
2634
|
+
if (src.charCodeAt(pos) !== 91) return false;
|
|
2635
|
+
let max = lineEnd(state, startLine);
|
|
2636
|
+
let rawLabel = "";
|
|
2637
|
+
let labelEnd = -1;
|
|
2638
|
+
let segmentStart = ++pos;
|
|
2639
|
+
while (pos < max) {
|
|
2640
|
+
if (rawLabel.length + pos - segmentStart > MAX_LABEL_LENGTH * 2) return false;
|
|
2641
|
+
let ch = src.charCodeAt(pos);
|
|
2642
|
+
if (ch === 91) return false;
|
|
2643
|
+
if (ch === 93) {
|
|
2644
|
+
labelEnd = pos;
|
|
2645
|
+
break;
|
|
2646
|
+
}
|
|
2647
|
+
if (ch === 92) ch = src.charCodeAt(++pos);
|
|
2648
|
+
if (ch === 10 && pos < max) {
|
|
2649
|
+
const nextPos = getNextLinePos(state, nextLine);
|
|
2650
|
+
if (nextPos < 0) return false;
|
|
2651
|
+
rawLabel += src.slice(segmentStart, max);
|
|
2652
|
+
pos = segmentStart = nextPos;
|
|
2653
|
+
max = lineEnd(state, nextLine++);
|
|
2654
|
+
continue;
|
|
2655
|
+
}
|
|
2656
|
+
pos++;
|
|
2657
|
+
}
|
|
2658
|
+
if (labelEnd < 0 || src.charCodeAt(labelEnd + 1) !== 58) return false;
|
|
2659
|
+
rawLabel += src.slice(segmentStart, labelEnd);
|
|
2660
|
+
if (rawLabel.length > MAX_LABEL_LENGTH && countCodePoints(rawLabel) > MAX_LABEL_LENGTH) return false;
|
|
2661
|
+
pos = labelEnd + 2;
|
|
2662
|
+
while (pos < max) {
|
|
2663
|
+
const ch = src.charCodeAt(pos);
|
|
2664
|
+
if (ch === 10) {
|
|
2665
|
+
const nextPos = getNextLinePos(state, nextLine);
|
|
2666
|
+
if (nextPos < 0) break;
|
|
2667
|
+
pos = nextPos;
|
|
2668
|
+
max = lineEnd(state, nextLine++);
|
|
2669
|
+
} else if (isSpace(ch)) pos++;
|
|
2670
|
+
else break;
|
|
2671
|
+
}
|
|
2672
|
+
const destRes = state.md.helpers.parseLinkDestination(src, pos, max);
|
|
2673
|
+
if (!destRes.ok) return false;
|
|
2674
|
+
const href = state.md.normalizeLink(destRes.str);
|
|
2675
|
+
if (!state.md.validateLink(href)) return false;
|
|
2676
|
+
pos = destRes.pos;
|
|
2677
|
+
const destEndPos = pos;
|
|
2678
|
+
const destEndMax = max;
|
|
2679
|
+
const destEndLineNo = nextLine;
|
|
2680
|
+
while (pos < max) {
|
|
2681
|
+
const ch = src.charCodeAt(pos);
|
|
2682
|
+
if (ch === 10) {
|
|
2683
|
+
const nextPos = getNextLinePos(state, nextLine);
|
|
2684
|
+
if (nextPos < 0) break;
|
|
2685
|
+
pos = nextPos;
|
|
2686
|
+
max = lineEnd(state, nextLine++);
|
|
2687
|
+
} else if (isSpace(ch)) pos++;
|
|
2688
|
+
else break;
|
|
2689
|
+
}
|
|
2690
|
+
const titleStart = pos;
|
|
2691
|
+
let titleRes = state.md.helpers.parseLinkTitle(src, pos, max);
|
|
2692
|
+
while (titleRes.can_continue) {
|
|
2693
|
+
const nextPos = getNextLinePos(state, nextLine);
|
|
2694
|
+
if (nextPos < 0) break;
|
|
2695
|
+
pos = nextPos;
|
|
2696
|
+
max = lineEnd(state, nextLine++);
|
|
2697
|
+
titleRes = state.md.helpers.parseLinkTitle(src, pos, max, titleRes);
|
|
2698
|
+
}
|
|
2699
|
+
let title;
|
|
2700
|
+
if (titleStart !== destEndPos && titleRes.ok) {
|
|
2701
|
+
title = titleRes.str;
|
|
2702
|
+
pos = titleRes.pos;
|
|
2703
|
+
} else {
|
|
2704
|
+
title = "";
|
|
2705
|
+
pos = destEndPos;
|
|
2706
|
+
max = destEndMax;
|
|
2707
|
+
nextLine = destEndLineNo;
|
|
2708
|
+
}
|
|
2709
|
+
while (pos < max) {
|
|
2710
|
+
if (!isSpace(src.charCodeAt(pos))) break;
|
|
2711
|
+
pos++;
|
|
2712
|
+
}
|
|
2713
|
+
if (pos < max && src.charCodeAt(pos) !== 10) {
|
|
2714
|
+
if (title) {
|
|
2715
|
+
title = "";
|
|
2716
|
+
pos = destEndPos;
|
|
2717
|
+
max = destEndMax;
|
|
2718
|
+
nextLine = destEndLineNo;
|
|
2719
|
+
while (pos < max) {
|
|
2720
|
+
if (!isSpace(src.charCodeAt(pos))) break;
|
|
2721
|
+
pos++;
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2724
|
+
}
|
|
2725
|
+
if (pos < max && src.charCodeAt(pos) !== 10) return false;
|
|
2726
|
+
const label = normalizeReference(rawLabel);
|
|
2727
|
+
if (!label) return false;
|
|
2728
|
+
/* istanbul ignore if */
|
|
2729
|
+
if (silent) return true;
|
|
2730
|
+
if (typeof state.env.references === "undefined") state.env.references = {};
|
|
2731
|
+
if (typeof state.env.references[label] === "undefined") state.env.references[label] = {
|
|
2732
|
+
title,
|
|
2733
|
+
href
|
|
2734
|
+
};
|
|
2735
|
+
const token = state.push("reference_definition", "", 0);
|
|
2736
|
+
token.map = [startLine, nextLine];
|
|
2737
|
+
token.hidden = true;
|
|
2738
|
+
const meta = Object.create(null);
|
|
2739
|
+
meta.label = label;
|
|
2740
|
+
token.meta = meta;
|
|
2741
|
+
state.line = nextLine;
|
|
2742
|
+
return true;
|
|
2743
|
+
}
|
|
2744
|
+
//#endregion
|
|
2745
|
+
//#region src/common/html_blocks.ts
|
|
2746
|
+
var html_blocks_default = [
|
|
2747
|
+
"address",
|
|
2748
|
+
"article",
|
|
2749
|
+
"aside",
|
|
2750
|
+
"base",
|
|
2751
|
+
"basefont",
|
|
2752
|
+
"blockquote",
|
|
2753
|
+
"body",
|
|
2754
|
+
"caption",
|
|
2755
|
+
"center",
|
|
2756
|
+
"col",
|
|
2757
|
+
"colgroup",
|
|
2758
|
+
"dd",
|
|
2759
|
+
"details",
|
|
2760
|
+
"dialog",
|
|
2761
|
+
"dir",
|
|
2762
|
+
"div",
|
|
2763
|
+
"dl",
|
|
2764
|
+
"dt",
|
|
2765
|
+
"fieldset",
|
|
2766
|
+
"figcaption",
|
|
2767
|
+
"figure",
|
|
2768
|
+
"footer",
|
|
2769
|
+
"form",
|
|
2770
|
+
"frame",
|
|
2771
|
+
"frameset",
|
|
2772
|
+
"h1",
|
|
2773
|
+
"h2",
|
|
2774
|
+
"h3",
|
|
2775
|
+
"h4",
|
|
2776
|
+
"h5",
|
|
2777
|
+
"h6",
|
|
2778
|
+
"head",
|
|
2779
|
+
"header",
|
|
2780
|
+
"hr",
|
|
2781
|
+
"html",
|
|
2782
|
+
"iframe",
|
|
2783
|
+
"legend",
|
|
2784
|
+
"li",
|
|
2785
|
+
"link",
|
|
2786
|
+
"main",
|
|
2787
|
+
"menu",
|
|
2788
|
+
"menuitem",
|
|
2789
|
+
"nav",
|
|
2790
|
+
"noframes",
|
|
2791
|
+
"ol",
|
|
2792
|
+
"optgroup",
|
|
2793
|
+
"option",
|
|
2794
|
+
"p",
|
|
2795
|
+
"param",
|
|
2796
|
+
"search",
|
|
2797
|
+
"section",
|
|
2798
|
+
"summary",
|
|
2799
|
+
"table",
|
|
2800
|
+
"tbody",
|
|
2801
|
+
"td",
|
|
2802
|
+
"tfoot",
|
|
2803
|
+
"th",
|
|
2804
|
+
"thead",
|
|
2805
|
+
"title",
|
|
2806
|
+
"tr",
|
|
2807
|
+
"track",
|
|
2808
|
+
"ul"
|
|
2809
|
+
];
|
|
2810
|
+
//#endregion
|
|
2811
|
+
//#region src/common/html_re.ts
|
|
2812
|
+
var open_tag = `<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`;
|
|
2813
|
+
var close_tag = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";
|
|
2814
|
+
new RegExp(`^(?:${open_tag}|${close_tag}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`);
|
|
2815
|
+
var HTML_OPEN_CLOSE_TAG_RE = new RegExp(`^(?:${open_tag}|${close_tag})`);
|
|
2816
|
+
//#endregion
|
|
2817
|
+
//#region src/rules_block/html_block.ts
|
|
2818
|
+
var HTML_SEQUENCES = [
|
|
2819
|
+
[
|
|
2820
|
+
/^<(script|pre|style|textarea)(?=(\s|>|$))/i,
|
|
2821
|
+
/<\/(script|pre|style|textarea)>/i,
|
|
2822
|
+
true
|
|
2823
|
+
],
|
|
2824
|
+
[
|
|
2825
|
+
/^<!--/,
|
|
2826
|
+
/-->/,
|
|
2827
|
+
true
|
|
2828
|
+
],
|
|
2829
|
+
[
|
|
2830
|
+
/^<\?/,
|
|
2831
|
+
/\?>/,
|
|
2832
|
+
true
|
|
2833
|
+
],
|
|
2834
|
+
[
|
|
2835
|
+
/^<![A-Za-z]/,
|
|
2836
|
+
/>/,
|
|
2837
|
+
true
|
|
2838
|
+
],
|
|
2839
|
+
[
|
|
2840
|
+
/^<!\[CDATA\[/,
|
|
2841
|
+
/\]\]>/,
|
|
2842
|
+
true
|
|
2843
|
+
],
|
|
2844
|
+
[
|
|
2845
|
+
new RegExp(`^</?(${html_blocks_default.join("|")})(?=(\\s|/?>|$))`, "i"),
|
|
2846
|
+
/^$/,
|
|
2847
|
+
true
|
|
2848
|
+
],
|
|
2849
|
+
[
|
|
2850
|
+
new RegExp(`${HTML_OPEN_CLOSE_TAG_RE.source}\\s*$`),
|
|
2851
|
+
/^$/,
|
|
2852
|
+
false
|
|
2853
|
+
]
|
|
2854
|
+
];
|
|
2855
|
+
function html_block(state, startLine, endLine, silent) {
|
|
2856
|
+
let pos = state.bMarks[startLine] + state.tShift[startLine];
|
|
2857
|
+
let max = state.eMarks[startLine];
|
|
2858
|
+
if (state.sCount[startLine] - state.blkIndent >= 4) return false;
|
|
2859
|
+
if (!state.md.options.html) return false;
|
|
2860
|
+
if (state.src.charCodeAt(pos) !== 60) return false;
|
|
2861
|
+
let lineText = state.src.slice(pos, max);
|
|
2862
|
+
let i = 0;
|
|
2863
|
+
for (; i < HTML_SEQUENCES.length; i++) if (HTML_SEQUENCES[i][0].test(lineText)) break;
|
|
2864
|
+
if (i === HTML_SEQUENCES.length) return false;
|
|
2865
|
+
if (silent) return HTML_SEQUENCES[i][2];
|
|
2866
|
+
let nextLine = startLine + 1;
|
|
2867
|
+
const endsOnBlankLine = HTML_SEQUENCES[i][1].test("");
|
|
2868
|
+
if (!HTML_SEQUENCES[i][1].test(lineText)) for (; nextLine < endLine; nextLine++) {
|
|
2869
|
+
if (state.sCount[nextLine] < state.blkIndent) {
|
|
2870
|
+
if (endsOnBlankLine || !state.isEmpty(nextLine)) break;
|
|
2871
|
+
}
|
|
2872
|
+
pos = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
2873
|
+
max = state.eMarks[nextLine];
|
|
2874
|
+
lineText = state.src.slice(pos, max);
|
|
2875
|
+
if (HTML_SEQUENCES[i][1].test(lineText)) {
|
|
2876
|
+
if (lineText.length !== 0) nextLine++;
|
|
2877
|
+
break;
|
|
2878
|
+
}
|
|
2879
|
+
}
|
|
2880
|
+
state.line = nextLine;
|
|
2881
|
+
const token = state.push("html_block", "", 0);
|
|
2882
|
+
token.map = [startLine, nextLine];
|
|
2883
|
+
token.content = state.getLines(startLine, nextLine, state.blkIndent, true);
|
|
2884
|
+
return true;
|
|
2885
|
+
}
|
|
2886
|
+
//#endregion
|
|
2887
|
+
//#region src/rules_block/heading.ts
|
|
2888
|
+
function heading(state, startLine, endLine, silent) {
|
|
2889
|
+
let pos = state.bMarks[startLine] + state.tShift[startLine];
|
|
2890
|
+
let max = state.eMarks[startLine];
|
|
2891
|
+
if (state.sCount[startLine] - state.blkIndent >= 4) return false;
|
|
2892
|
+
let ch = state.src.charCodeAt(pos);
|
|
2893
|
+
if (ch !== 35 || pos >= max) return false;
|
|
2894
|
+
let level = 1;
|
|
2895
|
+
ch = state.src.charCodeAt(++pos);
|
|
2896
|
+
while (ch === 35 && pos < max && level <= 6) {
|
|
2897
|
+
level++;
|
|
2898
|
+
ch = state.src.charCodeAt(++pos);
|
|
2899
|
+
}
|
|
2900
|
+
if (level > 6 || pos < max && !isSpace(ch)) return false;
|
|
2901
|
+
if (silent) return true;
|
|
2902
|
+
max = state.skipSpacesBack(max, pos);
|
|
2903
|
+
const tmp = state.skipCharsBack(max, 35, pos);
|
|
2904
|
+
if (tmp > pos && isSpace(state.src.charCodeAt(tmp - 1))) max = tmp;
|
|
2905
|
+
state.line = startLine + 1;
|
|
2906
|
+
const token_o = state.push("heading_open", `h${level}`, 1);
|
|
2907
|
+
token_o.markup = "########".slice(0, level);
|
|
2908
|
+
token_o.map = [startLine, state.line];
|
|
2909
|
+
const token_i = state.push("inline", "", 0);
|
|
2910
|
+
token_i.content = asciiTrim(state.src.slice(pos, max));
|
|
2911
|
+
token_i.map = [startLine, state.line];
|
|
2912
|
+
token_i.children = [];
|
|
2913
|
+
const token_c = state.push("heading_close", `h${level}`, -1);
|
|
2914
|
+
token_c.markup = "########".slice(0, level);
|
|
2915
|
+
return true;
|
|
2916
|
+
}
|
|
2917
|
+
//#endregion
|
|
2918
|
+
//#region src/rules_block/lheading.ts
|
|
2919
|
+
function lheading(state, startLine, endLine) {
|
|
2920
|
+
const terminatorRules = state.md.block.ruler.getRules("paragraph");
|
|
2921
|
+
if (state.sCount[startLine] - state.blkIndent >= 4) return false;
|
|
2922
|
+
const oldParentType = state.parentType;
|
|
2923
|
+
state.parentType = "paragraph";
|
|
2924
|
+
let level = 0;
|
|
2925
|
+
let marker;
|
|
2926
|
+
let nextLine = startLine + 1;
|
|
2927
|
+
for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {
|
|
2928
|
+
if (state.sCount[nextLine] - state.blkIndent > 3) continue;
|
|
2929
|
+
if (state.sCount[nextLine] >= state.blkIndent) {
|
|
2930
|
+
let pos = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
2931
|
+
const max = state.eMarks[nextLine];
|
|
2932
|
+
if (pos < max) {
|
|
2933
|
+
marker = state.src.charCodeAt(pos);
|
|
2934
|
+
if (marker === 45 || marker === 61) {
|
|
2935
|
+
pos = state.skipChars(pos, marker);
|
|
2936
|
+
pos = state.skipSpaces(pos);
|
|
2937
|
+
if (pos >= max) {
|
|
2938
|
+
level = marker === 61 ? 1 : 2;
|
|
2939
|
+
break;
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
}
|
|
2943
|
+
}
|
|
2944
|
+
if (state.sCount[nextLine] < 0) continue;
|
|
2945
|
+
let terminate = false;
|
|
2946
|
+
for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
2947
|
+
terminate = true;
|
|
2948
|
+
break;
|
|
2949
|
+
}
|
|
2950
|
+
if (terminate) break;
|
|
2951
|
+
}
|
|
2952
|
+
if (!level) {
|
|
2953
|
+
state.parentType = oldParentType;
|
|
2954
|
+
return false;
|
|
2955
|
+
}
|
|
2956
|
+
const content = asciiTrim(state.getLines(startLine, nextLine, state.blkIndent, false));
|
|
2957
|
+
state.line = nextLine + 1;
|
|
2958
|
+
const token_o = state.push("heading_open", `h${level}`, 1);
|
|
2959
|
+
token_o.markup = String.fromCharCode(marker);
|
|
2960
|
+
token_o.map = [startLine, state.line];
|
|
2961
|
+
const token_i = state.push("inline", "", 0);
|
|
2962
|
+
token_i.content = content;
|
|
2963
|
+
token_i.map = [startLine, state.line - 1];
|
|
2964
|
+
token_i.children = [];
|
|
2965
|
+
const token_c = state.push("heading_close", `h${level}`, -1);
|
|
2966
|
+
token_c.markup = String.fromCharCode(marker);
|
|
2967
|
+
state.parentType = oldParentType;
|
|
2968
|
+
return true;
|
|
2969
|
+
}
|
|
2970
|
+
//#endregion
|
|
2971
|
+
//#region src/rules_block/paragraph.ts
|
|
2972
|
+
function paragraph(state, startLine, endLine) {
|
|
2973
|
+
const terminatorRules = state.md.block.ruler.getRules("paragraph");
|
|
2974
|
+
const oldParentType = state.parentType;
|
|
2975
|
+
let nextLine = startLine + 1;
|
|
2976
|
+
state.parentType = "paragraph";
|
|
2977
|
+
for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {
|
|
2978
|
+
if (state.sCount[nextLine] - state.blkIndent > 3) continue;
|
|
2979
|
+
if (state.sCount[nextLine] < 0) continue;
|
|
2980
|
+
let terminate = false;
|
|
2981
|
+
for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
2982
|
+
terminate = true;
|
|
2983
|
+
break;
|
|
2984
|
+
}
|
|
2985
|
+
if (terminate) break;
|
|
2986
|
+
}
|
|
2987
|
+
const content = asciiTrim(state.getLines(startLine, nextLine, state.blkIndent, false));
|
|
2988
|
+
state.line = nextLine;
|
|
2989
|
+
const token_o = state.push("paragraph_open", "p", 1);
|
|
2990
|
+
token_o.map = [startLine, state.line];
|
|
2991
|
+
const token_i = state.push("inline", "", 0);
|
|
2992
|
+
token_i.content = content;
|
|
2993
|
+
token_i.map = [startLine, state.line];
|
|
2994
|
+
token_i.children = [];
|
|
2995
|
+
state.push("paragraph_close", "p", -1);
|
|
2996
|
+
state.parentType = oldParentType;
|
|
2997
|
+
return true;
|
|
2998
|
+
}
|
|
2999
|
+
//#endregion
|
|
3000
|
+
//#region src/parser_block.ts
|
|
3001
|
+
var _rules$1 = [
|
|
3002
|
+
[
|
|
3003
|
+
"table",
|
|
3004
|
+
table,
|
|
3005
|
+
["paragraph", "reference"]
|
|
3006
|
+
],
|
|
3007
|
+
["code", code],
|
|
3008
|
+
[
|
|
3009
|
+
"fence",
|
|
3010
|
+
fence,
|
|
3011
|
+
[
|
|
3012
|
+
"paragraph",
|
|
3013
|
+
"reference",
|
|
3014
|
+
"blockquote",
|
|
3015
|
+
"list"
|
|
3016
|
+
]
|
|
3017
|
+
],
|
|
3018
|
+
[
|
|
3019
|
+
"blockquote",
|
|
3020
|
+
blockquote,
|
|
3021
|
+
[
|
|
3022
|
+
"paragraph",
|
|
3023
|
+
"reference",
|
|
3024
|
+
"blockquote",
|
|
3025
|
+
"list"
|
|
3026
|
+
]
|
|
3027
|
+
],
|
|
3028
|
+
[
|
|
3029
|
+
"hr",
|
|
3030
|
+
hr,
|
|
3031
|
+
[
|
|
3032
|
+
"paragraph",
|
|
3033
|
+
"reference",
|
|
3034
|
+
"blockquote",
|
|
3035
|
+
"list"
|
|
3036
|
+
]
|
|
3037
|
+
],
|
|
3038
|
+
[
|
|
3039
|
+
"list",
|
|
3040
|
+
list,
|
|
3041
|
+
[
|
|
3042
|
+
"paragraph",
|
|
3043
|
+
"reference",
|
|
3044
|
+
"blockquote"
|
|
3045
|
+
]
|
|
3046
|
+
],
|
|
3047
|
+
["reference", reference],
|
|
3048
|
+
[
|
|
3049
|
+
"html_block",
|
|
3050
|
+
html_block,
|
|
3051
|
+
[
|
|
3052
|
+
"paragraph",
|
|
3053
|
+
"reference",
|
|
3054
|
+
"blockquote"
|
|
3055
|
+
]
|
|
3056
|
+
],
|
|
3057
|
+
[
|
|
3058
|
+
"heading",
|
|
3059
|
+
heading,
|
|
3060
|
+
[
|
|
3061
|
+
"paragraph",
|
|
3062
|
+
"reference",
|
|
3063
|
+
"blockquote"
|
|
3064
|
+
]
|
|
3065
|
+
],
|
|
3066
|
+
["lheading", lheading],
|
|
3067
|
+
["paragraph", paragraph]
|
|
3068
|
+
];
|
|
3069
|
+
/**
|
|
3070
|
+
* Block-level tokenizer.
|
|
3071
|
+
*/
|
|
3072
|
+
var ParserBlock = class {
|
|
3073
|
+
constructor() {
|
|
3074
|
+
_defineProperty(
|
|
3075
|
+
this,
|
|
3076
|
+
/**
|
|
3077
|
+
* {@link Ruler} instance. Keep configuration of block rules.
|
|
3078
|
+
*/
|
|
3079
|
+
"ruler",
|
|
3080
|
+
new Ruler()
|
|
3081
|
+
);
|
|
3082
|
+
_defineProperty(this, "State", StateBlock);
|
|
3083
|
+
for (let i = 0; i < _rules$1.length; i++) this.ruler.push(_rules$1[i][0], _rules$1[i][1], { alt: (_rules$1[i][2] || []).slice() });
|
|
3084
|
+
}
|
|
3085
|
+
tokenize(state, startLine, endLine) {
|
|
3086
|
+
const rules = this.ruler.getRules("");
|
|
3087
|
+
const len = rules.length;
|
|
3088
|
+
const maxNesting = state.md.options.maxNesting;
|
|
3089
|
+
let line = startLine;
|
|
3090
|
+
let hasEmptyLines = false;
|
|
3091
|
+
while (line < endLine) {
|
|
3092
|
+
state.line = line = state.skipEmptyLines(line);
|
|
3093
|
+
if (line >= endLine) break;
|
|
3094
|
+
if (state.sCount[line] < state.blkIndent) break;
|
|
3095
|
+
if (state.level >= maxNesting) {
|
|
3096
|
+
state.line = endLine;
|
|
3097
|
+
break;
|
|
3098
|
+
}
|
|
3099
|
+
const prevLine = state.line;
|
|
3100
|
+
let ok = false;
|
|
3101
|
+
for (let i = 0; i < len; i++) {
|
|
3102
|
+
ok = rules[i](state, line, endLine, false);
|
|
3103
|
+
if (ok) {
|
|
3104
|
+
if (prevLine >= state.line) throw new Error("block rule didn't increment state.line");
|
|
3105
|
+
break;
|
|
3106
|
+
}
|
|
3107
|
+
}
|
|
3108
|
+
if (!ok) throw new Error("none of the block rules matched");
|
|
3109
|
+
state.tight = !hasEmptyLines;
|
|
3110
|
+
if (state.isEmpty(state.line - 1)) hasEmptyLines = true;
|
|
3111
|
+
line = state.line;
|
|
3112
|
+
if (line < endLine && state.isEmpty(line)) {
|
|
3113
|
+
hasEmptyLines = true;
|
|
3114
|
+
line++;
|
|
3115
|
+
state.line = line;
|
|
3116
|
+
}
|
|
3117
|
+
}
|
|
3118
|
+
}
|
|
3119
|
+
/**
|
|
3120
|
+
* Process input string and push block tokens into `outTokens`
|
|
3121
|
+
*/
|
|
3122
|
+
parse(src, md, env, outTokens) {
|
|
3123
|
+
if (!src) return;
|
|
3124
|
+
const state = new this.State(src, md, env, outTokens);
|
|
3125
|
+
this.tokenize(state, state.line, state.lineMax);
|
|
3126
|
+
}
|
|
3127
|
+
};
|
|
3128
|
+
//#endregion
|
|
3129
|
+
//#region src/rules_inline/state_inline.ts
|
|
3130
|
+
/** Mutable state passed to inline rules while tokenizing inline content. */
|
|
3131
|
+
var StateInline = class {
|
|
3132
|
+
constructor(src, md, env, outTokens) {
|
|
3133
|
+
_defineProperty(this, "pos", 0);
|
|
3134
|
+
_defineProperty(this, "level", 0);
|
|
3135
|
+
_defineProperty(this, "pending", "");
|
|
3136
|
+
_defineProperty(this, "pendingLevel", 0);
|
|
3137
|
+
_defineProperty(this, "cache", {});
|
|
3138
|
+
_defineProperty(this, "backticks", {});
|
|
3139
|
+
_defineProperty(this, "backticksScanned", false);
|
|
3140
|
+
_defineProperty(this, "skipHtmlSpecial", false);
|
|
3141
|
+
_defineProperty(this, "linkLevel", 0);
|
|
3142
|
+
_defineProperty(this, "delimiters", []);
|
|
3143
|
+
_defineProperty(this, "_prev_delimiters", []);
|
|
3144
|
+
_defineProperty(this, "Token", Token);
|
|
3145
|
+
this.src = src;
|
|
3146
|
+
this.env = env;
|
|
3147
|
+
this.md = md;
|
|
3148
|
+
this.tokens = outTokens;
|
|
3149
|
+
this.tokens_meta = Array(outTokens.length);
|
|
3150
|
+
this.posMax = this.src.length;
|
|
3151
|
+
}
|
|
3152
|
+
pushPending() {
|
|
3153
|
+
const token = new Token("text", "", 0);
|
|
3154
|
+
token.content = this.pending;
|
|
3155
|
+
token.level = this.pendingLevel;
|
|
3156
|
+
this.tokens.push(token);
|
|
3157
|
+
this.pending = "";
|
|
3158
|
+
return token;
|
|
3159
|
+
}
|
|
3160
|
+
push(type, tag, nesting) {
|
|
3161
|
+
if (this.pending) this.pushPending();
|
|
3162
|
+
const token = new Token(type, tag, nesting);
|
|
3163
|
+
let token_meta = void 0;
|
|
3164
|
+
if (nesting < 0) {
|
|
3165
|
+
this.level--;
|
|
3166
|
+
this.delimiters = this._prev_delimiters.pop();
|
|
3167
|
+
}
|
|
3168
|
+
token.level = this.level;
|
|
3169
|
+
if (nesting > 0) {
|
|
3170
|
+
this.level++;
|
|
3171
|
+
this._prev_delimiters.push(this.delimiters);
|
|
3172
|
+
this.delimiters = [];
|
|
3173
|
+
token_meta = { delimiters: this.delimiters };
|
|
3174
|
+
}
|
|
3175
|
+
this.pendingLevel = this.level;
|
|
3176
|
+
this.tokens.push(token);
|
|
3177
|
+
this.tokens_meta.push(token_meta);
|
|
3178
|
+
return token;
|
|
3179
|
+
}
|
|
3180
|
+
scanDelims(start, canSplitWord) {
|
|
3181
|
+
const max = this.posMax;
|
|
3182
|
+
const marker = this.src.charCodeAt(start);
|
|
3183
|
+
let lastChar;
|
|
3184
|
+
if (start === 0) lastChar = 32;
|
|
3185
|
+
else if (start === 1) {
|
|
3186
|
+
lastChar = this.src.charCodeAt(0);
|
|
3187
|
+
if ((lastChar & 63488) === 55296) lastChar = 65533;
|
|
3188
|
+
} else {
|
|
3189
|
+
lastChar = this.src.charCodeAt(start - 1);
|
|
3190
|
+
if ((lastChar & 64512) === 56320) {
|
|
3191
|
+
const highSurr = this.src.charCodeAt(start - 2);
|
|
3192
|
+
lastChar = (highSurr & 64512) === 55296 ? 65536 + (highSurr - 55296 << 10) + (lastChar - 56320) : 65533;
|
|
3193
|
+
} else if ((lastChar & 64512) === 55296) lastChar = 65533;
|
|
3194
|
+
}
|
|
3195
|
+
let pos = start;
|
|
3196
|
+
while (pos < max && this.src.charCodeAt(pos) === marker) pos++;
|
|
3197
|
+
const count = pos - start;
|
|
3198
|
+
let nextChar = pos < max ? this.src.charCodeAt(pos) : 32;
|
|
3199
|
+
if ((nextChar & 64512) === 55296) {
|
|
3200
|
+
const lowSurr = this.src.charCodeAt(pos + 1);
|
|
3201
|
+
nextChar = (lowSurr & 64512) === 56320 ? 65536 + (nextChar - 55296 << 10) + (lowSurr - 56320) : 65533;
|
|
3202
|
+
} else if ((nextChar & 64512) === 56320) nextChar = 65533;
|
|
3203
|
+
const isLastPunctChar = isMdAsciiPunct(lastChar) || isPunctCharCode(lastChar);
|
|
3204
|
+
const isNextPunctChar = isMdAsciiPunct(nextChar) || isPunctCharCode(nextChar);
|
|
3205
|
+
const isLastWhiteSpace = isWhiteSpace(lastChar);
|
|
3206
|
+
const isNextWhiteSpace = isWhiteSpace(nextChar);
|
|
3207
|
+
const left_flanking = !isNextWhiteSpace && (!isNextPunctChar || isLastWhiteSpace || isLastPunctChar);
|
|
3208
|
+
const right_flanking = !isLastWhiteSpace && (!isLastPunctChar || isNextWhiteSpace || isNextPunctChar);
|
|
3209
|
+
return {
|
|
3210
|
+
can_open: left_flanking && (canSplitWord || !right_flanking || isLastPunctChar),
|
|
3211
|
+
can_close: right_flanking && (canSplitWord || !left_flanking || isNextPunctChar),
|
|
3212
|
+
length: count
|
|
3213
|
+
};
|
|
3214
|
+
}
|
|
3215
|
+
};
|
|
3216
|
+
//#endregion
|
|
3217
|
+
//#region src/rules_inline/text.ts
|
|
3218
|
+
function isTerminatorChar(ch) {
|
|
3219
|
+
switch (ch) {
|
|
3220
|
+
case 10:
|
|
3221
|
+
case 33:
|
|
3222
|
+
case 35:
|
|
3223
|
+
case 36:
|
|
3224
|
+
case 37:
|
|
3225
|
+
case 38:
|
|
3226
|
+
case 42:
|
|
3227
|
+
case 43:
|
|
3228
|
+
case 45:
|
|
3229
|
+
case 58:
|
|
3230
|
+
case 60:
|
|
3231
|
+
case 61:
|
|
3232
|
+
case 62:
|
|
3233
|
+
case 64:
|
|
3234
|
+
case 91:
|
|
3235
|
+
case 92:
|
|
3236
|
+
case 93:
|
|
3237
|
+
case 94:
|
|
3238
|
+
case 95:
|
|
3239
|
+
case 96:
|
|
3240
|
+
case 123:
|
|
3241
|
+
case 125:
|
|
3242
|
+
case 126: return true;
|
|
3243
|
+
default: return false;
|
|
3244
|
+
}
|
|
3245
|
+
}
|
|
3246
|
+
function text(state, silent) {
|
|
3247
|
+
let pos = state.pos;
|
|
3248
|
+
while (pos < state.posMax && !isTerminatorChar(state.src.charCodeAt(pos))) pos++;
|
|
3249
|
+
if (pos === state.pos) return false;
|
|
3250
|
+
if (!silent) state.pending += state.src.slice(state.pos, pos);
|
|
3251
|
+
state.pos = pos;
|
|
3252
|
+
return true;
|
|
3253
|
+
}
|
|
3254
|
+
//#endregion
|
|
3255
|
+
//#region src/rules_inline/linkify.ts
|
|
3256
|
+
function isAsciiAlpha(code) {
|
|
3257
|
+
return code >= 65 && code <= 90 || code >= 97 && code <= 122;
|
|
3258
|
+
}
|
|
3259
|
+
function isSchemeChar(code) {
|
|
3260
|
+
return code >= 65 && code <= 90 || code >= 97 && code <= 122 || code >= 48 && code <= 57 || code === 43 || code === 45 || code === 46;
|
|
3261
|
+
}
|
|
3262
|
+
function linkify(state, silent) {
|
|
3263
|
+
if (!state.md.options.linkify) return false;
|
|
3264
|
+
if (state.linkLevel > 0) return false;
|
|
3265
|
+
const pos = state.pos;
|
|
3266
|
+
const max = state.posMax;
|
|
3267
|
+
if (pos + 3 > max) return false;
|
|
3268
|
+
if (state.src.charCodeAt(pos) !== 58) return false;
|
|
3269
|
+
if (state.src.charCodeAt(pos + 1) !== 47) return false;
|
|
3270
|
+
if (state.src.charCodeAt(pos + 2) !== 47) return false;
|
|
3271
|
+
const protoMin = pos - Math.min(10, state.pending.length, pos);
|
|
3272
|
+
let protoStart = pos;
|
|
3273
|
+
while (protoStart > protoMin && isSchemeChar(state.src.charCodeAt(protoStart - 1))) protoStart--;
|
|
3274
|
+
if (protoStart === pos || !isAsciiAlpha(state.src.charCodeAt(protoStart))) return false;
|
|
3275
|
+
const protoLength = pos - protoStart;
|
|
3276
|
+
const link = state.md.linkify.matchAtStart(state.src.slice(protoStart));
|
|
3277
|
+
if (!link) return false;
|
|
3278
|
+
let url = link.url;
|
|
3279
|
+
if (url.length <= protoLength) return false;
|
|
3280
|
+
let urlEnd = url.length;
|
|
3281
|
+
while (urlEnd > 0 && url.charCodeAt(urlEnd - 1) === 42) urlEnd--;
|
|
3282
|
+
if (urlEnd !== url.length) url = url.slice(0, urlEnd);
|
|
3283
|
+
const fullUrl = state.md.normalizeLink(url);
|
|
3284
|
+
if (!state.md.validateLink(fullUrl)) return false;
|
|
3285
|
+
if (!silent) {
|
|
3286
|
+
state.pending = state.pending.slice(0, -protoLength);
|
|
3287
|
+
const token_o = state.push("link_open", "a", 1);
|
|
3288
|
+
token_o.attrs = [["href", fullUrl]];
|
|
3289
|
+
token_o.markup = "linkify";
|
|
3290
|
+
token_o.info = "auto";
|
|
3291
|
+
const token_t = state.push("text", "", 0);
|
|
3292
|
+
token_t.content = state.md.normalizeLinkText(url);
|
|
3293
|
+
const token_c = state.push("link_close", "a", -1);
|
|
3294
|
+
token_c.markup = "linkify";
|
|
3295
|
+
token_c.info = "auto";
|
|
3296
|
+
}
|
|
3297
|
+
state.pos += url.length - protoLength;
|
|
3298
|
+
return true;
|
|
3299
|
+
}
|
|
3300
|
+
//#endregion
|
|
3301
|
+
//#region src/rules_inline/newline.ts
|
|
3302
|
+
function newline(state, silent) {
|
|
3303
|
+
let pos = state.pos;
|
|
3304
|
+
if (state.src.charCodeAt(pos) !== 10) return false;
|
|
3305
|
+
const pmax = state.pending.length - 1;
|
|
3306
|
+
const max = state.posMax;
|
|
3307
|
+
if (!silent) {
|
|
3308
|
+
if (pmax >= 0 && state.pending.charCodeAt(pmax) === 32) {
|
|
3309
|
+
if (pmax >= 1 && state.pending.charCodeAt(pmax - 1) === 32) {
|
|
3310
|
+
let ws = pmax - 1;
|
|
3311
|
+
while (ws >= 1 && state.pending.charCodeAt(ws - 1) === 32) ws--;
|
|
3312
|
+
state.pending = state.pending.slice(0, ws);
|
|
3313
|
+
state.push("hardbreak", "br", 0);
|
|
3314
|
+
} else {
|
|
3315
|
+
state.pending = state.pending.slice(0, -1);
|
|
3316
|
+
state.push("softbreak", "br", 0);
|
|
3317
|
+
}
|
|
3318
|
+
} else state.push("softbreak", "br", 0);
|
|
3319
|
+
}
|
|
3320
|
+
pos++;
|
|
3321
|
+
while (pos < max && isSpace(state.src.charCodeAt(pos))) pos++;
|
|
3322
|
+
state.pos = pos;
|
|
3323
|
+
return true;
|
|
3324
|
+
}
|
|
3325
|
+
//#endregion
|
|
3326
|
+
//#region src/rules_inline/escape.ts
|
|
3327
|
+
var ESCAPED = [];
|
|
3328
|
+
for (let i = 0; i < 256; i++) ESCAPED.push(0);
|
|
3329
|
+
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(ch) {
|
|
3330
|
+
ESCAPED[ch.charCodeAt(0)] = 1;
|
|
3331
|
+
});
|
|
3332
|
+
function escape(state, silent) {
|
|
3333
|
+
let pos = state.pos;
|
|
3334
|
+
const max = state.posMax;
|
|
3335
|
+
if (state.src.charCodeAt(pos) !== 92) return false;
|
|
3336
|
+
pos++;
|
|
3337
|
+
if (pos >= max) return false;
|
|
3338
|
+
let ch1 = state.src.charCodeAt(pos);
|
|
3339
|
+
if (ch1 === 10) {
|
|
3340
|
+
if (!silent) state.push("hardbreak", "br", 0);
|
|
3341
|
+
pos++;
|
|
3342
|
+
while (pos < max) {
|
|
3343
|
+
ch1 = state.src.charCodeAt(pos);
|
|
3344
|
+
if (!isSpace(ch1)) break;
|
|
3345
|
+
pos++;
|
|
3346
|
+
}
|
|
3347
|
+
state.pos = pos;
|
|
3348
|
+
return true;
|
|
3349
|
+
}
|
|
3350
|
+
if (ch1 === 32) {
|
|
3351
|
+
if (!silent) {
|
|
3352
|
+
const token = state.push("text_special", "", 0);
|
|
3353
|
+
token.content = "\\";
|
|
3354
|
+
token.markup = "\\";
|
|
3355
|
+
token.info = "escape";
|
|
3356
|
+
}
|
|
3357
|
+
state.pos = pos;
|
|
3358
|
+
return true;
|
|
3359
|
+
}
|
|
3360
|
+
let escapedStr = state.src[pos];
|
|
3361
|
+
if (ch1 >= 55296 && ch1 <= 56319 && pos + 1 < max) {
|
|
3362
|
+
const ch2 = state.src.charCodeAt(pos + 1);
|
|
3363
|
+
if (ch2 >= 56320 && ch2 <= 57343) {
|
|
3364
|
+
escapedStr += state.src[pos + 1];
|
|
3365
|
+
pos++;
|
|
3366
|
+
}
|
|
3367
|
+
}
|
|
3368
|
+
const origStr = "\\" + escapedStr;
|
|
3369
|
+
if (!silent) {
|
|
3370
|
+
const token = state.push("text_special", "", 0);
|
|
3371
|
+
if (ch1 < 256 && ESCAPED[ch1] !== 0) token.content = escapedStr;
|
|
3372
|
+
else token.content = origStr;
|
|
3373
|
+
token.markup = origStr;
|
|
3374
|
+
token.info = "escape";
|
|
3375
|
+
}
|
|
3376
|
+
state.pos = pos + 1;
|
|
3377
|
+
return true;
|
|
3378
|
+
}
|
|
3379
|
+
//#endregion
|
|
3380
|
+
//#region src/rules_inline/backticks.ts
|
|
3381
|
+
function buildLastRuns(src) {
|
|
3382
|
+
const lastRuns = {};
|
|
3383
|
+
let pos = 0;
|
|
3384
|
+
while ((pos = src.indexOf("`", pos)) !== -1) {
|
|
3385
|
+
const start = pos;
|
|
3386
|
+
while (src.charCodeAt(++pos) === 96);
|
|
3387
|
+
lastRuns[pos - start] = start;
|
|
3388
|
+
}
|
|
3389
|
+
return lastRuns;
|
|
3390
|
+
}
|
|
3391
|
+
function backtick(state, silent) {
|
|
3392
|
+
var _state$backticks$open;
|
|
3393
|
+
const start = state.pos;
|
|
3394
|
+
if (state.src.charCodeAt(start) !== 96) return false;
|
|
3395
|
+
const max = state.posMax;
|
|
3396
|
+
let pos = start + 1;
|
|
3397
|
+
while (pos < max && state.src.charCodeAt(pos) === 96) pos++;
|
|
3398
|
+
const marker = state.src.slice(start, pos);
|
|
3399
|
+
const openerLength = marker.length;
|
|
3400
|
+
if (!state.backticksScanned) {
|
|
3401
|
+
state.backticks = buildLastRuns(state.src);
|
|
3402
|
+
state.backticksScanned = true;
|
|
3403
|
+
}
|
|
3404
|
+
if (((_state$backticks$open = state.backticks[openerLength]) !== null && _state$backticks$open !== void 0 ? _state$backticks$open : -1) >= pos) {
|
|
3405
|
+
let matchEnd = pos;
|
|
3406
|
+
let matchStart;
|
|
3407
|
+
while ((matchStart = state.src.indexOf("`", matchEnd)) !== -1 && matchStart < max) {
|
|
3408
|
+
matchEnd = matchStart + 1;
|
|
3409
|
+
while (state.src.charCodeAt(matchEnd) === 96) matchEnd++;
|
|
3410
|
+
if (matchEnd > max) break;
|
|
3411
|
+
if (matchEnd - matchStart === openerLength) {
|
|
3412
|
+
if (!silent) {
|
|
3413
|
+
const token = state.push("code_inline", "code", 0);
|
|
3414
|
+
token.markup = marker;
|
|
3415
|
+
let content = state.src.slice(pos, matchStart).replace(/\n/g, " ");
|
|
3416
|
+
if (content.startsWith(" ") && content.endsWith(" ") && /[^ ]/.test(content)) content = content.slice(1, -1);
|
|
3417
|
+
token.content = content;
|
|
3418
|
+
}
|
|
3419
|
+
state.pos = matchEnd;
|
|
3420
|
+
return true;
|
|
3421
|
+
}
|
|
3422
|
+
}
|
|
3423
|
+
}
|
|
3424
|
+
if (!silent) state.pending += marker;
|
|
3425
|
+
state.pos = pos;
|
|
3426
|
+
return true;
|
|
3427
|
+
}
|
|
3428
|
+
//#endregion
|
|
3429
|
+
//#region src/rules_inline/strikethrough.ts
|
|
3430
|
+
function strikethrough_tokenize(state, silent) {
|
|
3431
|
+
const start = state.pos;
|
|
3432
|
+
const marker = state.src.charCodeAt(start);
|
|
3433
|
+
if (silent) return false;
|
|
3434
|
+
if (marker !== 126) return false;
|
|
3435
|
+
const scanned = state.scanDelims(state.pos, true);
|
|
3436
|
+
let len = scanned.length;
|
|
3437
|
+
const ch = String.fromCharCode(marker);
|
|
3438
|
+
if (len < 2) return false;
|
|
3439
|
+
let token;
|
|
3440
|
+
if (len % 2) {
|
|
3441
|
+
token = state.push("text", "", 0);
|
|
3442
|
+
token.content = ch;
|
|
3443
|
+
len--;
|
|
3444
|
+
}
|
|
3445
|
+
for (let i = 0; i < len; i += 2) {
|
|
3446
|
+
token = state.push("text", "", 0);
|
|
3447
|
+
token.content = ch + ch;
|
|
3448
|
+
state.delimiters.push({
|
|
3449
|
+
marker,
|
|
3450
|
+
length: 0,
|
|
3451
|
+
token: state.tokens.length - 1,
|
|
3452
|
+
end: -1,
|
|
3453
|
+
open: scanned.can_open,
|
|
3454
|
+
close: scanned.can_close
|
|
3455
|
+
});
|
|
3456
|
+
}
|
|
3457
|
+
state.pos += scanned.length;
|
|
3458
|
+
return true;
|
|
3459
|
+
}
|
|
3460
|
+
function postProcess$1(state, delimiters) {
|
|
3461
|
+
let token;
|
|
3462
|
+
const loneMarkers = [];
|
|
3463
|
+
const max = delimiters.length;
|
|
3464
|
+
for (let i = 0; i < max; i++) {
|
|
3465
|
+
const startDelim = delimiters[i];
|
|
3466
|
+
if (startDelim.marker !== 126) continue;
|
|
3467
|
+
if (startDelim.end === -1) continue;
|
|
3468
|
+
const endDelim = delimiters[startDelim.end];
|
|
3469
|
+
token = state.tokens[startDelim.token];
|
|
3470
|
+
token.type = "s_open";
|
|
3471
|
+
token.tag = "s";
|
|
3472
|
+
token.nesting = 1;
|
|
3473
|
+
token.markup = "~~";
|
|
3474
|
+
token.content = "";
|
|
3475
|
+
token = state.tokens[endDelim.token];
|
|
3476
|
+
token.type = "s_close";
|
|
3477
|
+
token.tag = "s";
|
|
3478
|
+
token.nesting = -1;
|
|
3479
|
+
token.markup = "~~";
|
|
3480
|
+
token.content = "";
|
|
3481
|
+
if (state.tokens[endDelim.token - 1].type === "text" && state.tokens[endDelim.token - 1].content === "~") loneMarkers.push(endDelim.token - 1);
|
|
3482
|
+
}
|
|
3483
|
+
while (loneMarkers.length) {
|
|
3484
|
+
const i = loneMarkers.pop();
|
|
3485
|
+
let j = i + 1;
|
|
3486
|
+
while (j < state.tokens.length && state.tokens[j].type === "s_close") j++;
|
|
3487
|
+
j--;
|
|
3488
|
+
if (i !== j) {
|
|
3489
|
+
token = state.tokens[j];
|
|
3490
|
+
state.tokens[j] = state.tokens[i];
|
|
3491
|
+
state.tokens[i] = token;
|
|
3492
|
+
}
|
|
3493
|
+
}
|
|
3494
|
+
}
|
|
3495
|
+
function strikethrough_postProcess(state) {
|
|
3496
|
+
const tokens_meta = state.tokens_meta;
|
|
3497
|
+
const max = state.tokens_meta.length;
|
|
3498
|
+
postProcess$1(state, state.delimiters);
|
|
3499
|
+
for (let curr = 0; curr < max; curr++) {
|
|
3500
|
+
var _tokens_meta$curr;
|
|
3501
|
+
const delimiters = (_tokens_meta$curr = tokens_meta[curr]) === null || _tokens_meta$curr === void 0 ? void 0 : _tokens_meta$curr.delimiters;
|
|
3502
|
+
if (delimiters) postProcess$1(state, delimiters);
|
|
3503
|
+
}
|
|
3504
|
+
}
|
|
3505
|
+
var strikethrough_default = {
|
|
3506
|
+
tokenize: strikethrough_tokenize,
|
|
3507
|
+
postProcess: strikethrough_postProcess
|
|
3508
|
+
};
|
|
3509
|
+
//#endregion
|
|
3510
|
+
//#region src/rules_inline/emphasis.ts
|
|
3511
|
+
function emphasis_tokenize(state, silent) {
|
|
3512
|
+
const start = state.pos;
|
|
3513
|
+
const marker = state.src.charCodeAt(start);
|
|
3514
|
+
if (silent) return false;
|
|
3515
|
+
if (marker !== 95 && marker !== 42) return false;
|
|
3516
|
+
const scanned = state.scanDelims(state.pos, marker === 42);
|
|
3517
|
+
for (let i = 0; i < scanned.length; i++) {
|
|
3518
|
+
const token = state.push("text", "", 0);
|
|
3519
|
+
token.content = String.fromCharCode(marker);
|
|
3520
|
+
state.delimiters.push({
|
|
3521
|
+
marker,
|
|
3522
|
+
length: scanned.length,
|
|
3523
|
+
token: state.tokens.length - 1,
|
|
3524
|
+
end: -1,
|
|
3525
|
+
open: scanned.can_open,
|
|
3526
|
+
close: scanned.can_close
|
|
3527
|
+
});
|
|
3528
|
+
}
|
|
3529
|
+
state.pos += scanned.length;
|
|
3530
|
+
return true;
|
|
3531
|
+
}
|
|
3532
|
+
function postProcess(state, delimiters) {
|
|
3533
|
+
const max = delimiters.length;
|
|
3534
|
+
for (let i = max - 1; i >= 0; i--) {
|
|
3535
|
+
const startDelim = delimiters[i];
|
|
3536
|
+
if (startDelim.marker !== 95 && startDelim.marker !== 42) continue;
|
|
3537
|
+
if (startDelim.end === -1) continue;
|
|
3538
|
+
const endDelim = delimiters[startDelim.end];
|
|
3539
|
+
const isStrong = i > 0 && delimiters[i - 1].end === startDelim.end + 1 && delimiters[i - 1].marker === startDelim.marker && delimiters[i - 1].token === startDelim.token - 1 && delimiters[startDelim.end + 1].token === endDelim.token + 1;
|
|
3540
|
+
const ch = String.fromCharCode(startDelim.marker);
|
|
3541
|
+
const token_o = state.tokens[startDelim.token];
|
|
3542
|
+
token_o.type = isStrong ? "strong_open" : "em_open";
|
|
3543
|
+
token_o.tag = isStrong ? "strong" : "em";
|
|
3544
|
+
token_o.nesting = 1;
|
|
3545
|
+
token_o.markup = isStrong ? ch + ch : ch;
|
|
3546
|
+
token_o.content = "";
|
|
3547
|
+
const token_c = state.tokens[endDelim.token];
|
|
3548
|
+
token_c.type = isStrong ? "strong_close" : "em_close";
|
|
3549
|
+
token_c.tag = isStrong ? "strong" : "em";
|
|
3550
|
+
token_c.nesting = -1;
|
|
3551
|
+
token_c.markup = isStrong ? ch + ch : ch;
|
|
3552
|
+
token_c.content = "";
|
|
3553
|
+
if (isStrong) {
|
|
3554
|
+
state.tokens[delimiters[i - 1].token].content = "";
|
|
3555
|
+
state.tokens[delimiters[startDelim.end + 1].token].content = "";
|
|
3556
|
+
i--;
|
|
3557
|
+
}
|
|
3558
|
+
}
|
|
3559
|
+
}
|
|
3560
|
+
function emphasis_post_process(state) {
|
|
3561
|
+
const tokens_meta = state.tokens_meta;
|
|
3562
|
+
const max = state.tokens_meta.length;
|
|
3563
|
+
postProcess(state, state.delimiters);
|
|
3564
|
+
for (let curr = 0; curr < max; curr++) {
|
|
3565
|
+
var _tokens_meta$curr;
|
|
3566
|
+
const delimiters = (_tokens_meta$curr = tokens_meta[curr]) === null || _tokens_meta$curr === void 0 ? void 0 : _tokens_meta$curr.delimiters;
|
|
3567
|
+
if (delimiters) postProcess(state, delimiters);
|
|
3568
|
+
}
|
|
3569
|
+
}
|
|
3570
|
+
var emphasis_default = {
|
|
3571
|
+
tokenize: emphasis_tokenize,
|
|
3572
|
+
postProcess: emphasis_post_process
|
|
3573
|
+
};
|
|
3574
|
+
//#endregion
|
|
3575
|
+
//#region src/rules_inline/link.ts
|
|
3576
|
+
function link(state, silent) {
|
|
3577
|
+
let code, label, res, ref;
|
|
3578
|
+
let href = "";
|
|
3579
|
+
let title = "";
|
|
3580
|
+
let start = state.pos;
|
|
3581
|
+
let parseReference = true;
|
|
3582
|
+
if (state.src.charCodeAt(state.pos) !== 91) return false;
|
|
3583
|
+
const oldPos = state.pos;
|
|
3584
|
+
const max = state.posMax;
|
|
3585
|
+
const labelStart = state.pos + 1;
|
|
3586
|
+
const labelEnd = state.md.helpers.parseLinkLabel(state, state.pos, true);
|
|
3587
|
+
if (labelEnd < 0) return false;
|
|
3588
|
+
let pos = labelEnd + 1;
|
|
3589
|
+
if (pos < max && state.src.charCodeAt(pos) === 40) {
|
|
3590
|
+
parseReference = false;
|
|
3591
|
+
pos++;
|
|
3592
|
+
for (; pos < max; pos++) {
|
|
3593
|
+
code = state.src.charCodeAt(pos);
|
|
3594
|
+
if (!isSpace(code) && code !== 10) break;
|
|
3595
|
+
}
|
|
3596
|
+
if (pos >= max) return false;
|
|
3597
|
+
start = pos;
|
|
3598
|
+
res = state.md.helpers.parseLinkDestination(state.src, pos, state.posMax);
|
|
3599
|
+
if (res.ok) {
|
|
3600
|
+
href = state.md.normalizeLink(res.str);
|
|
3601
|
+
if (state.md.validateLink(href)) pos = res.pos;
|
|
3602
|
+
else href = "";
|
|
3603
|
+
start = pos;
|
|
3604
|
+
for (; pos < max; pos++) {
|
|
3605
|
+
code = state.src.charCodeAt(pos);
|
|
3606
|
+
if (!isSpace(code) && code !== 10) break;
|
|
3607
|
+
}
|
|
3608
|
+
res = state.md.helpers.parseLinkTitle(state.src, pos, state.posMax);
|
|
3609
|
+
if (pos < max && start !== pos && res.ok) {
|
|
3610
|
+
title = res.str;
|
|
3611
|
+
pos = res.pos;
|
|
3612
|
+
for (; pos < max; pos++) {
|
|
3613
|
+
code = state.src.charCodeAt(pos);
|
|
3614
|
+
if (!isSpace(code) && code !== 10) break;
|
|
3615
|
+
}
|
|
3616
|
+
}
|
|
3617
|
+
}
|
|
3618
|
+
if (pos >= max || state.src.charCodeAt(pos) !== 41) parseReference = true;
|
|
3619
|
+
pos++;
|
|
3620
|
+
}
|
|
3621
|
+
if (parseReference) {
|
|
3622
|
+
if (typeof state.env.references === "undefined") return false;
|
|
3623
|
+
if (pos < max && state.src.charCodeAt(pos) === 91) {
|
|
3624
|
+
start = pos + 1;
|
|
3625
|
+
pos = state.md.helpers.parseLinkLabel(state, pos);
|
|
3626
|
+
if (pos >= 0) label = state.src.slice(start, pos++);
|
|
3627
|
+
else pos = labelEnd + 1;
|
|
3628
|
+
} else pos = labelEnd + 1;
|
|
3629
|
+
if (!label) label = state.src.slice(labelStart, labelEnd);
|
|
3630
|
+
label = normalizeReference(label);
|
|
3631
|
+
ref = state.env.references[label];
|
|
3632
|
+
if (!ref) {
|
|
3633
|
+
state.pos = oldPos;
|
|
3634
|
+
return false;
|
|
3635
|
+
}
|
|
3636
|
+
href = ref.href;
|
|
3637
|
+
title = ref.title;
|
|
3638
|
+
}
|
|
3639
|
+
if (!silent) {
|
|
3640
|
+
state.pos = labelStart;
|
|
3641
|
+
state.posMax = labelEnd;
|
|
3642
|
+
const token_o = state.push("link_open", "a", 1);
|
|
3643
|
+
const attrs = [["href", href]];
|
|
3644
|
+
token_o.attrs = attrs;
|
|
3645
|
+
if (title) attrs.push(["title", title]);
|
|
3646
|
+
if (label) {
|
|
3647
|
+
const meta = Object.create(null);
|
|
3648
|
+
meta.label = label;
|
|
3649
|
+
token_o.meta = meta;
|
|
3650
|
+
}
|
|
3651
|
+
state.linkLevel++;
|
|
3652
|
+
state.md.inline.tokenize(state);
|
|
3653
|
+
state.linkLevel--;
|
|
3654
|
+
state.push("link_close", "a", -1);
|
|
3655
|
+
}
|
|
3656
|
+
state.pos = pos;
|
|
3657
|
+
state.posMax = max;
|
|
3658
|
+
return true;
|
|
3659
|
+
}
|
|
3660
|
+
//#endregion
|
|
3661
|
+
//#region src/rules_inline/image.ts
|
|
3662
|
+
function image(state, silent) {
|
|
3663
|
+
let code, content, label, pos, ref, res, title, start;
|
|
3664
|
+
let href = "";
|
|
3665
|
+
const oldPos = state.pos;
|
|
3666
|
+
const max = state.posMax;
|
|
3667
|
+
if (state.src.charCodeAt(state.pos) !== 33) return false;
|
|
3668
|
+
if (state.src.charCodeAt(state.pos + 1) !== 91) return false;
|
|
3669
|
+
const labelStart = state.pos + 2;
|
|
3670
|
+
const labelEnd = state.md.helpers.parseLinkLabel(state, state.pos + 1, false);
|
|
3671
|
+
if (labelEnd < 0) return false;
|
|
3672
|
+
pos = labelEnd + 1;
|
|
3673
|
+
if (pos < max && state.src.charCodeAt(pos) === 40) {
|
|
3674
|
+
pos++;
|
|
3675
|
+
for (; pos < max; pos++) {
|
|
3676
|
+
code = state.src.charCodeAt(pos);
|
|
3677
|
+
if (!isSpace(code) && code !== 10) break;
|
|
3678
|
+
}
|
|
3679
|
+
if (pos >= max) return false;
|
|
3680
|
+
start = pos;
|
|
3681
|
+
res = state.md.helpers.parseLinkDestination(state.src, pos, state.posMax);
|
|
3682
|
+
if (res.ok) {
|
|
3683
|
+
href = state.md.normalizeLink(res.str);
|
|
3684
|
+
if (state.md.validateLink(href)) pos = res.pos;
|
|
3685
|
+
else href = "";
|
|
3686
|
+
}
|
|
3687
|
+
start = pos;
|
|
3688
|
+
for (; pos < max; pos++) {
|
|
3689
|
+
code = state.src.charCodeAt(pos);
|
|
3690
|
+
if (!isSpace(code) && code !== 10) break;
|
|
3691
|
+
}
|
|
3692
|
+
res = state.md.helpers.parseLinkTitle(state.src, pos, state.posMax);
|
|
3693
|
+
if (pos < max && start !== pos && res.ok) {
|
|
3694
|
+
title = res.str;
|
|
3695
|
+
pos = res.pos;
|
|
3696
|
+
for (; pos < max; pos++) {
|
|
3697
|
+
code = state.src.charCodeAt(pos);
|
|
3698
|
+
if (!isSpace(code) && code !== 10) break;
|
|
3699
|
+
}
|
|
3700
|
+
} else title = "";
|
|
3701
|
+
if (pos >= max || state.src.charCodeAt(pos) !== 41) {
|
|
3702
|
+
state.pos = oldPos;
|
|
3703
|
+
return false;
|
|
3704
|
+
}
|
|
3705
|
+
pos++;
|
|
3706
|
+
} else {
|
|
3707
|
+
if (typeof state.env.references === "undefined") return false;
|
|
3708
|
+
if (pos < max && state.src.charCodeAt(pos) === 91) {
|
|
3709
|
+
start = pos + 1;
|
|
3710
|
+
pos = state.md.helpers.parseLinkLabel(state, pos);
|
|
3711
|
+
if (pos >= 0) label = state.src.slice(start, pos++);
|
|
3712
|
+
else pos = labelEnd + 1;
|
|
3713
|
+
} else pos = labelEnd + 1;
|
|
3714
|
+
if (!label) label = state.src.slice(labelStart, labelEnd);
|
|
3715
|
+
label = normalizeReference(label);
|
|
3716
|
+
ref = state.env.references[label];
|
|
3717
|
+
if (!ref) {
|
|
3718
|
+
state.pos = oldPos;
|
|
3719
|
+
return false;
|
|
3720
|
+
}
|
|
3721
|
+
href = ref.href;
|
|
3722
|
+
title = ref.title;
|
|
3723
|
+
}
|
|
3724
|
+
if (!silent) {
|
|
3725
|
+
content = state.src.slice(labelStart, labelEnd);
|
|
3726
|
+
const tokens = [];
|
|
3727
|
+
state.md.inline.parse(content, state.md, state.env, tokens);
|
|
3728
|
+
const token = state.push("image", "img", 0);
|
|
3729
|
+
const attrs = [["src", href], ["alt", ""]];
|
|
3730
|
+
token.attrs = attrs;
|
|
3731
|
+
token.children = tokens;
|
|
3732
|
+
token.content = content;
|
|
3733
|
+
if (title) attrs.push(["title", title]);
|
|
3734
|
+
if (label) {
|
|
3735
|
+
const meta = Object.create(null);
|
|
3736
|
+
meta.label = label;
|
|
3737
|
+
token.meta = meta;
|
|
3738
|
+
}
|
|
3739
|
+
}
|
|
3740
|
+
state.pos = pos;
|
|
3741
|
+
state.posMax = max;
|
|
3742
|
+
return true;
|
|
3743
|
+
}
|
|
3744
|
+
//#endregion
|
|
3745
|
+
//#region src/rules_inline/autolink.ts
|
|
3746
|
+
var EMAIL_RE = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/;
|
|
3747
|
+
var AUTOLINK_RE = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
3748
|
+
function autolink(state, silent) {
|
|
3749
|
+
let pos = state.pos;
|
|
3750
|
+
if (state.src.charCodeAt(pos) !== 60) return false;
|
|
3751
|
+
const start = state.pos;
|
|
3752
|
+
const max = state.posMax;
|
|
3753
|
+
for (;;) {
|
|
3754
|
+
if (++pos >= max) return false;
|
|
3755
|
+
const ch = state.src.charCodeAt(pos);
|
|
3756
|
+
if (ch === 60) return false;
|
|
3757
|
+
if (ch === 62) break;
|
|
3758
|
+
}
|
|
3759
|
+
const url = state.src.slice(start + 1, pos);
|
|
3760
|
+
if (AUTOLINK_RE.test(url)) {
|
|
3761
|
+
const fullUrl = state.md.normalizeLink(url);
|
|
3762
|
+
if (!state.md.validateLink(fullUrl)) return false;
|
|
3763
|
+
if (!silent) {
|
|
3764
|
+
const token_o = state.push("link_open", "a", 1);
|
|
3765
|
+
token_o.attrs = [["href", fullUrl]];
|
|
3766
|
+
token_o.markup = "autolink";
|
|
3767
|
+
token_o.info = "auto";
|
|
3768
|
+
const token_t = state.push("text", "", 0);
|
|
3769
|
+
token_t.content = state.md.normalizeLinkText(url);
|
|
3770
|
+
const token_c = state.push("link_close", "a", -1);
|
|
3771
|
+
token_c.markup = "autolink";
|
|
3772
|
+
token_c.info = "auto";
|
|
3773
|
+
}
|
|
3774
|
+
state.pos += url.length + 2;
|
|
3775
|
+
return true;
|
|
3776
|
+
}
|
|
3777
|
+
if (EMAIL_RE.test(url)) {
|
|
3778
|
+
const fullUrl = state.md.normalizeLink(`mailto:${url}`);
|
|
3779
|
+
if (!state.md.validateLink(fullUrl)) return false;
|
|
3780
|
+
if (!silent) {
|
|
3781
|
+
const token_o = state.push("link_open", "a", 1);
|
|
3782
|
+
token_o.attrs = [["href", fullUrl]];
|
|
3783
|
+
token_o.markup = "autolink";
|
|
3784
|
+
token_o.info = "auto";
|
|
3785
|
+
const token_t = state.push("text", "", 0);
|
|
3786
|
+
token_t.content = state.md.normalizeLinkText(url);
|
|
3787
|
+
const token_c = state.push("link_close", "a", -1);
|
|
3788
|
+
token_c.markup = "autolink";
|
|
3789
|
+
token_c.info = "auto";
|
|
3790
|
+
}
|
|
3791
|
+
state.pos += url.length + 2;
|
|
3792
|
+
return true;
|
|
3793
|
+
}
|
|
3794
|
+
return false;
|
|
3795
|
+
}
|
|
3796
|
+
//#endregion
|
|
3797
|
+
//#region src/rules_inline/html_inline.ts
|
|
3798
|
+
function isLinkOpen(str) {
|
|
3799
|
+
return /^<a[>\s]/i.test(str);
|
|
3800
|
+
}
|
|
3801
|
+
function isLinkClose(str) {
|
|
3802
|
+
return /^<\/a\s*>/i.test(str);
|
|
3803
|
+
}
|
|
3804
|
+
function isLetter(ch) {
|
|
3805
|
+
const lc = ch | 32;
|
|
3806
|
+
return lc >= 97 && lc <= 122;
|
|
3807
|
+
}
|
|
3808
|
+
function scanSpecial(state, pos) {
|
|
3809
|
+
const src = state.src;
|
|
3810
|
+
let start;
|
|
3811
|
+
let terminator;
|
|
3812
|
+
if (src.startsWith("<!--", pos)) {
|
|
3813
|
+
if (src.startsWith(">", pos + 4)) return pos + 5;
|
|
3814
|
+
if (src.startsWith("->", pos + 4)) return pos + 6;
|
|
3815
|
+
start = pos + 4;
|
|
3816
|
+
terminator = "-->";
|
|
3817
|
+
} else if (src.startsWith("<![CDATA[", pos)) {
|
|
3818
|
+
start = pos + 9;
|
|
3819
|
+
terminator = "]]>";
|
|
3820
|
+
} else if (src.charCodeAt(pos + 1) === 63) {
|
|
3821
|
+
start = pos + 2;
|
|
3822
|
+
terminator = "?>";
|
|
3823
|
+
} else if (isLetter(src.charCodeAt(pos + 2))) {
|
|
3824
|
+
start = pos + 3;
|
|
3825
|
+
terminator = ">";
|
|
3826
|
+
} else return -1;
|
|
3827
|
+
if (state.skipHtmlSpecial) return -1;
|
|
3828
|
+
const end = src.indexOf(terminator, start);
|
|
3829
|
+
if (end < 0) {
|
|
3830
|
+
state.skipHtmlSpecial = true;
|
|
3831
|
+
return -1;
|
|
3832
|
+
}
|
|
3833
|
+
return end + terminator.length;
|
|
3834
|
+
}
|
|
3835
|
+
function html_inline(state, silent) {
|
|
3836
|
+
if (!state.md.options.html) return false;
|
|
3837
|
+
const max = state.posMax;
|
|
3838
|
+
const pos = state.pos;
|
|
3839
|
+
if (state.src.charCodeAt(pos) !== 60 || pos + 2 >= max) return false;
|
|
3840
|
+
let end;
|
|
3841
|
+
const ch = state.src.charCodeAt(pos + 1);
|
|
3842
|
+
if (ch === 33 || ch === 63) end = scanSpecial(state, pos);
|
|
3843
|
+
else if (ch === 47 || isLetter(ch)) {
|
|
3844
|
+
const match = state.src.slice(pos).match(HTML_OPEN_CLOSE_TAG_RE);
|
|
3845
|
+
end = match ? pos + match[0].length : -1;
|
|
3846
|
+
} else return false;
|
|
3847
|
+
if (end < 0) return false;
|
|
3848
|
+
if (!silent) {
|
|
3849
|
+
const token = state.push("html_inline", "", 0);
|
|
3850
|
+
token.content = state.src.slice(pos, end);
|
|
3851
|
+
if (isLinkOpen(token.content)) state.linkLevel++;
|
|
3852
|
+
if (isLinkClose(token.content)) state.linkLevel--;
|
|
3853
|
+
}
|
|
3854
|
+
state.pos = end;
|
|
3855
|
+
return true;
|
|
3856
|
+
}
|
|
3857
|
+
//#endregion
|
|
3858
|
+
//#region src/rules_inline/entity.ts
|
|
3859
|
+
var DIGITAL_RE = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i;
|
|
3860
|
+
var NAMED_RE = /^&([a-z][a-z0-9]{1,31});/i;
|
|
3861
|
+
function entity(state, silent) {
|
|
3862
|
+
const pos = state.pos;
|
|
3863
|
+
const max = state.posMax;
|
|
3864
|
+
if (state.src.charCodeAt(pos) !== 38) return false;
|
|
3865
|
+
if (pos + 1 >= max) return false;
|
|
3866
|
+
if (state.src.charCodeAt(pos + 1) === 35) {
|
|
3867
|
+
const match = state.src.slice(pos).match(DIGITAL_RE);
|
|
3868
|
+
if (match) {
|
|
3869
|
+
if (!silent) {
|
|
3870
|
+
const code = match[1][0].toLowerCase() === "x" ? parseInt(match[1].slice(1), 16) : parseInt(match[1], 10);
|
|
3871
|
+
const token = state.push("text_special", "", 0);
|
|
3872
|
+
token.content = isValidEntityCode(code) ? fromCodePoint(code) : fromCodePoint(65533);
|
|
3873
|
+
token.markup = match[0];
|
|
3874
|
+
token.info = "entity";
|
|
3875
|
+
}
|
|
3876
|
+
state.pos += match[0].length;
|
|
3877
|
+
return true;
|
|
3878
|
+
}
|
|
3879
|
+
} else {
|
|
3880
|
+
const match = state.src.slice(pos).match(NAMED_RE);
|
|
3881
|
+
if (match) {
|
|
3882
|
+
const decoded = decodeHTMLStrict(match[0]);
|
|
3883
|
+
if (decoded !== match[0]) {
|
|
3884
|
+
if (!silent) {
|
|
3885
|
+
const token = state.push("text_special", "", 0);
|
|
3886
|
+
token.content = decoded;
|
|
3887
|
+
token.markup = match[0];
|
|
3888
|
+
token.info = "entity";
|
|
3889
|
+
}
|
|
3890
|
+
state.pos += match[0].length;
|
|
3891
|
+
return true;
|
|
3892
|
+
}
|
|
3893
|
+
}
|
|
3894
|
+
}
|
|
3895
|
+
return false;
|
|
3896
|
+
}
|
|
3897
|
+
//#endregion
|
|
3898
|
+
//#region src/rules_inline/balance_pairs.ts
|
|
3899
|
+
function processDelimiters(delimiters) {
|
|
3900
|
+
const openersBottom = {};
|
|
3901
|
+
const max = delimiters.length;
|
|
3902
|
+
if (!max) return;
|
|
3903
|
+
let headerIdx = 0;
|
|
3904
|
+
let lastTokenIdx = -2;
|
|
3905
|
+
const jumps = [];
|
|
3906
|
+
for (let closerIdx = 0; closerIdx < max; closerIdx++) {
|
|
3907
|
+
const closer = delimiters[closerIdx];
|
|
3908
|
+
jumps.push(0);
|
|
3909
|
+
if (delimiters[headerIdx].marker !== closer.marker || lastTokenIdx !== closer.token - 1) headerIdx = closerIdx;
|
|
3910
|
+
lastTokenIdx = closer.token;
|
|
3911
|
+
closer.length = closer.length || 0;
|
|
3912
|
+
if (!closer.close) continue;
|
|
3913
|
+
if (!openersBottom.hasOwnProperty(closer.marker)) openersBottom[closer.marker] = [
|
|
3914
|
+
-1,
|
|
3915
|
+
-1,
|
|
3916
|
+
-1,
|
|
3917
|
+
-1,
|
|
3918
|
+
-1,
|
|
3919
|
+
-1
|
|
3920
|
+
];
|
|
3921
|
+
const minOpenerIdx = openersBottom[closer.marker][(closer.open ? 3 : 0) + closer.length % 3];
|
|
3922
|
+
let openerIdx = headerIdx - jumps[headerIdx] - 1;
|
|
3923
|
+
let newMinOpenerIdx = openerIdx;
|
|
3924
|
+
for (; openerIdx > minOpenerIdx; openerIdx -= jumps[openerIdx] + 1) {
|
|
3925
|
+
const opener = delimiters[openerIdx];
|
|
3926
|
+
if (opener.marker !== closer.marker) continue;
|
|
3927
|
+
if (opener.open && opener.end < 0) {
|
|
3928
|
+
let isOddMatch = false;
|
|
3929
|
+
if (opener.close || closer.open) {
|
|
3930
|
+
if ((opener.length + closer.length) % 3 === 0) {
|
|
3931
|
+
if (opener.length % 3 !== 0 || closer.length % 3 !== 0) isOddMatch = true;
|
|
3932
|
+
}
|
|
3933
|
+
}
|
|
3934
|
+
if (!isOddMatch) {
|
|
3935
|
+
const lastJump = openerIdx > 0 && !delimiters[openerIdx - 1].open ? jumps[openerIdx - 1] + 1 : 0;
|
|
3936
|
+
jumps[closerIdx] = closerIdx - openerIdx + lastJump;
|
|
3937
|
+
jumps[openerIdx] = lastJump;
|
|
3938
|
+
closer.open = false;
|
|
3939
|
+
opener.end = closerIdx;
|
|
3940
|
+
opener.close = false;
|
|
3941
|
+
newMinOpenerIdx = -1;
|
|
3942
|
+
lastTokenIdx = -2;
|
|
3943
|
+
break;
|
|
3944
|
+
}
|
|
3945
|
+
}
|
|
3946
|
+
}
|
|
3947
|
+
if (newMinOpenerIdx !== -1) openersBottom[closer.marker][(closer.open ? 3 : 0) + (closer.length || 0) % 3] = newMinOpenerIdx;
|
|
3948
|
+
}
|
|
3949
|
+
}
|
|
3950
|
+
function link_pairs(state) {
|
|
3951
|
+
const tokens_meta = state.tokens_meta;
|
|
3952
|
+
const max = state.tokens_meta.length;
|
|
3953
|
+
processDelimiters(state.delimiters);
|
|
3954
|
+
for (let curr = 0; curr < max; curr++) {
|
|
3955
|
+
var _tokens_meta$curr;
|
|
3956
|
+
const delimiters = (_tokens_meta$curr = tokens_meta[curr]) === null || _tokens_meta$curr === void 0 ? void 0 : _tokens_meta$curr.delimiters;
|
|
3957
|
+
if (delimiters) processDelimiters(delimiters);
|
|
3958
|
+
}
|
|
3959
|
+
}
|
|
3960
|
+
//#endregion
|
|
3961
|
+
//#region src/rules_inline/fragments_join.ts
|
|
3962
|
+
function fragments_join(state) {
|
|
3963
|
+
let curr, last;
|
|
3964
|
+
let level = 0;
|
|
3965
|
+
const tokens = state.tokens;
|
|
3966
|
+
const max = state.tokens.length;
|
|
3967
|
+
for (curr = last = 0; curr < max; curr++) {
|
|
3968
|
+
if (tokens[curr].nesting < 0) level--;
|
|
3969
|
+
tokens[curr].level = level;
|
|
3970
|
+
if (tokens[curr].nesting > 0) level++;
|
|
3971
|
+
if (tokens[curr].type === "text" && curr + 1 < max && tokens[curr + 1].type === "text") tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;
|
|
3972
|
+
else {
|
|
3973
|
+
if (curr !== last) tokens[last] = tokens[curr];
|
|
3974
|
+
last++;
|
|
3975
|
+
}
|
|
3976
|
+
}
|
|
3977
|
+
if (curr !== last) tokens.length = last;
|
|
3978
|
+
}
|
|
3979
|
+
//#endregion
|
|
3980
|
+
//#region src/parser_inline.ts
|
|
3981
|
+
var _rules = [
|
|
3982
|
+
["text", text],
|
|
3983
|
+
["linkify", linkify],
|
|
3984
|
+
["newline", newline],
|
|
3985
|
+
["escape", escape],
|
|
3986
|
+
["backticks", backtick],
|
|
3987
|
+
["strikethrough", strikethrough_default.tokenize],
|
|
3988
|
+
["emphasis", emphasis_default.tokenize],
|
|
3989
|
+
["link", link],
|
|
3990
|
+
["image", image],
|
|
3991
|
+
["autolink", autolink],
|
|
3992
|
+
["html_inline", html_inline],
|
|
3993
|
+
["entity", entity]
|
|
3994
|
+
];
|
|
3995
|
+
var _rules2 = [
|
|
3996
|
+
["balance_pairs", link_pairs],
|
|
3997
|
+
["strikethrough", strikethrough_default.postProcess],
|
|
3998
|
+
["emphasis", emphasis_default.postProcess],
|
|
3999
|
+
["fragments_join", fragments_join]
|
|
4000
|
+
];
|
|
4001
|
+
/**
|
|
4002
|
+
* Tokenizes paragraph content.
|
|
4003
|
+
*/
|
|
4004
|
+
var ParserInline = class {
|
|
4005
|
+
constructor() {
|
|
4006
|
+
_defineProperty(
|
|
4007
|
+
this,
|
|
4008
|
+
/**
|
|
4009
|
+
* {@link Ruler} instance. Keep configuration of inline rules.
|
|
4010
|
+
*/
|
|
4011
|
+
"ruler",
|
|
4012
|
+
new Ruler()
|
|
4013
|
+
);
|
|
4014
|
+
_defineProperty(
|
|
4015
|
+
this,
|
|
4016
|
+
/**
|
|
4017
|
+
* {@link Ruler} instance. Second ruler used for post-processing
|
|
4018
|
+
* (e.g. in emphasis-like rules).
|
|
4019
|
+
*/
|
|
4020
|
+
"ruler2",
|
|
4021
|
+
new Ruler()
|
|
4022
|
+
);
|
|
4023
|
+
_defineProperty(this, "State", StateInline);
|
|
4024
|
+
for (let i = 0; i < _rules.length; i++) this.ruler.push(_rules[i][0], _rules[i][1]);
|
|
4025
|
+
for (let i = 0; i < _rules2.length; i++) this.ruler2.push(_rules2[i][0], _rules2[i][1]);
|
|
4026
|
+
}
|
|
4027
|
+
skipToken(state) {
|
|
4028
|
+
const pos = state.pos;
|
|
4029
|
+
const rules = this.ruler.getRules("");
|
|
4030
|
+
const len = rules.length;
|
|
4031
|
+
const maxNesting = state.md.options.maxNesting;
|
|
4032
|
+
const cache = state.cache;
|
|
4033
|
+
if (typeof cache[pos] !== "undefined") {
|
|
4034
|
+
state.pos = cache[pos];
|
|
4035
|
+
return;
|
|
4036
|
+
}
|
|
4037
|
+
let ok = false;
|
|
4038
|
+
if (state.level < maxNesting) for (let i = 0; i < len; i++) {
|
|
4039
|
+
state.level++;
|
|
4040
|
+
ok = rules[i](state, true);
|
|
4041
|
+
state.level--;
|
|
4042
|
+
if (ok) {
|
|
4043
|
+
if (pos >= state.pos) throw new Error("inline rule didn't increment state.pos");
|
|
4044
|
+
break;
|
|
4045
|
+
}
|
|
4046
|
+
}
|
|
4047
|
+
else state.pos = state.posMax;
|
|
4048
|
+
if (!ok) state.pos++;
|
|
4049
|
+
cache[pos] = state.pos;
|
|
4050
|
+
}
|
|
4051
|
+
tokenize(state) {
|
|
4052
|
+
const rules = this.ruler.getRules("");
|
|
4053
|
+
const len = rules.length;
|
|
4054
|
+
const end = state.posMax;
|
|
4055
|
+
const maxNesting = state.md.options.maxNesting;
|
|
4056
|
+
while (state.pos < end) {
|
|
4057
|
+
const prevPos = state.pos;
|
|
4058
|
+
let ok = false;
|
|
4059
|
+
if (state.level < maxNesting) for (let i = 0; i < len; i++) {
|
|
4060
|
+
ok = rules[i](state, false);
|
|
4061
|
+
if (ok) {
|
|
4062
|
+
if (prevPos >= state.pos) throw new Error("inline rule didn't increment state.pos");
|
|
4063
|
+
break;
|
|
4064
|
+
}
|
|
4065
|
+
}
|
|
4066
|
+
if (ok) {
|
|
4067
|
+
if (state.pos >= end) break;
|
|
4068
|
+
continue;
|
|
4069
|
+
}
|
|
4070
|
+
state.pending += state.src[state.pos++];
|
|
4071
|
+
}
|
|
4072
|
+
if (state.pending) state.pushPending();
|
|
4073
|
+
}
|
|
4074
|
+
/**
|
|
4075
|
+
* Process input string and push inline tokens into `outTokens`
|
|
4076
|
+
*/
|
|
4077
|
+
parse(str, md, env, outTokens) {
|
|
4078
|
+
const state = new this.State(str, md, env, outTokens);
|
|
4079
|
+
this.tokenize(state);
|
|
4080
|
+
const rules = this.ruler2.getRules("");
|
|
4081
|
+
const len = rules.length;
|
|
4082
|
+
for (let i = 0; i < len; i++) rules[i](state);
|
|
4083
|
+
}
|
|
4084
|
+
};
|
|
4085
|
+
var default_default = {
|
|
4086
|
+
options: {
|
|
4087
|
+
html: false,
|
|
4088
|
+
xhtmlOut: false,
|
|
4089
|
+
breaks: false,
|
|
4090
|
+
langPrefix: "language-",
|
|
4091
|
+
linkify: false,
|
|
4092
|
+
typographer: false,
|
|
4093
|
+
quotes: "“”‘’",
|
|
4094
|
+
highlight: null,
|
|
4095
|
+
maxNesting: 100
|
|
4096
|
+
},
|
|
4097
|
+
components: {
|
|
4098
|
+
core: {},
|
|
4099
|
+
block: {},
|
|
4100
|
+
inline: {}
|
|
4101
|
+
}
|
|
4102
|
+
};
|
|
4103
|
+
var zero_default = {
|
|
4104
|
+
options: {
|
|
4105
|
+
html: false,
|
|
4106
|
+
xhtmlOut: false,
|
|
4107
|
+
breaks: false,
|
|
4108
|
+
langPrefix: "language-",
|
|
4109
|
+
linkify: false,
|
|
4110
|
+
typographer: false,
|
|
4111
|
+
quotes: "“”‘’",
|
|
4112
|
+
highlight: null,
|
|
4113
|
+
maxNesting: 20
|
|
4114
|
+
},
|
|
4115
|
+
components: {
|
|
4116
|
+
core: { rules: [
|
|
4117
|
+
"normalize",
|
|
4118
|
+
"block",
|
|
4119
|
+
"strip_references",
|
|
4120
|
+
"inline",
|
|
4121
|
+
"text_join"
|
|
4122
|
+
] },
|
|
4123
|
+
block: { rules: ["paragraph"] },
|
|
4124
|
+
inline: {
|
|
4125
|
+
rules: ["text"],
|
|
4126
|
+
rules2: ["balance_pairs", "fragments_join"]
|
|
4127
|
+
}
|
|
4128
|
+
}
|
|
4129
|
+
};
|
|
4130
|
+
var commonmark_default = {
|
|
4131
|
+
options: {
|
|
4132
|
+
html: true,
|
|
4133
|
+
xhtmlOut: true,
|
|
4134
|
+
breaks: false,
|
|
4135
|
+
langPrefix: "language-",
|
|
4136
|
+
linkify: false,
|
|
4137
|
+
typographer: false,
|
|
4138
|
+
quotes: "“”‘’",
|
|
4139
|
+
highlight: null,
|
|
4140
|
+
maxNesting: 20
|
|
4141
|
+
},
|
|
4142
|
+
components: {
|
|
4143
|
+
core: { rules: [
|
|
4144
|
+
"normalize",
|
|
4145
|
+
"block",
|
|
4146
|
+
"strip_references",
|
|
4147
|
+
"inline",
|
|
4148
|
+
"text_join"
|
|
4149
|
+
] },
|
|
4150
|
+
block: { rules: [
|
|
4151
|
+
"blockquote",
|
|
4152
|
+
"code",
|
|
4153
|
+
"fence",
|
|
4154
|
+
"heading",
|
|
4155
|
+
"hr",
|
|
4156
|
+
"html_block",
|
|
4157
|
+
"lheading",
|
|
4158
|
+
"list",
|
|
4159
|
+
"reference",
|
|
4160
|
+
"paragraph"
|
|
4161
|
+
] },
|
|
4162
|
+
inline: {
|
|
4163
|
+
rules: [
|
|
4164
|
+
"autolink",
|
|
4165
|
+
"backticks",
|
|
4166
|
+
"emphasis",
|
|
4167
|
+
"entity",
|
|
4168
|
+
"escape",
|
|
4169
|
+
"html_inline",
|
|
4170
|
+
"image",
|
|
4171
|
+
"link",
|
|
4172
|
+
"newline",
|
|
4173
|
+
"text"
|
|
4174
|
+
],
|
|
4175
|
+
rules2: [
|
|
4176
|
+
"balance_pairs",
|
|
4177
|
+
"emphasis",
|
|
4178
|
+
"fragments_join"
|
|
4179
|
+
]
|
|
4180
|
+
}
|
|
4181
|
+
}
|
|
4182
|
+
};
|
|
4183
|
+
//#endregion
|
|
4184
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/objectSpread2.js
|
|
4185
|
+
function ownKeys(e, r) {
|
|
4186
|
+
var t = Object.keys(e);
|
|
4187
|
+
if (Object.getOwnPropertySymbols) {
|
|
4188
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
4189
|
+
r && (o = o.filter(function(r) {
|
|
4190
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
4191
|
+
})), t.push.apply(t, o);
|
|
4192
|
+
}
|
|
4193
|
+
return t;
|
|
4194
|
+
}
|
|
4195
|
+
function _objectSpread2(e) {
|
|
4196
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
4197
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
4198
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
|
|
4199
|
+
_defineProperty(e, r, t[r]);
|
|
4200
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
|
|
4201
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
4202
|
+
});
|
|
4203
|
+
}
|
|
4204
|
+
return e;
|
|
4205
|
+
}
|
|
4206
|
+
//#endregion
|
|
4207
|
+
//#region src/markdownit.ts
|
|
4208
|
+
var config = {
|
|
4209
|
+
default: default_default,
|
|
4210
|
+
zero: zero_default,
|
|
4211
|
+
commonmark: commonmark_default
|
|
4212
|
+
};
|
|
4213
|
+
var BAD_PROTO_RE = /^(vbscript|javascript|file|data):/;
|
|
4214
|
+
var GOOD_DATA_RE = /^data:image\/(gif|png|jpeg|webp);/;
|
|
4215
|
+
var RECODE_HOSTNAME_FOR = [
|
|
4216
|
+
"http:",
|
|
4217
|
+
"https:",
|
|
4218
|
+
"mailto:"
|
|
4219
|
+
];
|
|
4220
|
+
/**
|
|
4221
|
+
* Parses Markdown into tokens and renders them to HTML.
|
|
4222
|
+
*
|
|
4223
|
+
* @category Main
|
|
4224
|
+
*/
|
|
4225
|
+
var MarkdownIt = class {
|
|
4226
|
+
/**
|
|
4227
|
+
* Link validation function. CommonMark allows too much in links. By default
|
|
4228
|
+
* we disable `javascript:`, `vbscript:`, `file:` schemas, and almost all `data:...` schemas
|
|
4229
|
+
* except some embedded image types.
|
|
4230
|
+
*
|
|
4231
|
+
* You can change this behaviour:
|
|
4232
|
+
*
|
|
4233
|
+
* @example
|
|
4234
|
+
* ```javascript
|
|
4235
|
+
* import MarkdownIt from 'markdown-it'
|
|
4236
|
+
* const md = new MarkdownIt()
|
|
4237
|
+
*
|
|
4238
|
+
* // enable everything
|
|
4239
|
+
* md.validateLink = function () { return true; }
|
|
4240
|
+
* ```
|
|
4241
|
+
*/
|
|
4242
|
+
validateLink(url) {
|
|
4243
|
+
const str = url.trim().toLowerCase();
|
|
4244
|
+
return BAD_PROTO_RE.test(str) ? GOOD_DATA_RE.test(str) : true;
|
|
4245
|
+
}
|
|
4246
|
+
/**
|
|
4247
|
+
* Function used to encode link url to a machine-readable format,
|
|
4248
|
+
* which includes url-encoding, punycode, etc.
|
|
4249
|
+
*/
|
|
4250
|
+
normalizeLink(url) {
|
|
4251
|
+
const parsed = mdurl.parse(url, true);
|
|
4252
|
+
if (parsed.hostname) {
|
|
4253
|
+
if (!parsed.protocol || RECODE_HOSTNAME_FOR.indexOf(parsed.protocol) >= 0) try {
|
|
4254
|
+
parsed.hostname = punycode_js.default.toASCII(parsed.hostname);
|
|
4255
|
+
} catch (er) {}
|
|
4256
|
+
}
|
|
4257
|
+
if (parsed.auth) parsed.auth = mdurl.encode(parsed.auth);
|
|
4258
|
+
if (parsed.hostname) parsed.hostname = mdurl.encode(parsed.hostname);
|
|
4259
|
+
if (parsed.pathname) parsed.pathname = mdurl.encode(parsed.pathname);
|
|
4260
|
+
if (parsed.search) parsed.search = mdurl.encode(parsed.search);
|
|
4261
|
+
if (parsed.hash) parsed.hash = mdurl.encode(parsed.hash);
|
|
4262
|
+
return mdurl.format(parsed);
|
|
4263
|
+
}
|
|
4264
|
+
/**
|
|
4265
|
+
* Function used to decode link url to a human-readable format`
|
|
4266
|
+
*/
|
|
4267
|
+
normalizeLinkText(url) {
|
|
4268
|
+
const parsed = mdurl.parse(url, true);
|
|
4269
|
+
if (parsed.hostname) {
|
|
4270
|
+
if (!parsed.protocol || RECODE_HOSTNAME_FOR.indexOf(parsed.protocol) >= 0) try {
|
|
4271
|
+
parsed.hostname = punycode_js.default.toUnicode(parsed.hostname);
|
|
4272
|
+
} catch (er) {}
|
|
4273
|
+
}
|
|
4274
|
+
return mdurl.decode(mdurl.format(parsed), mdurl.decode.defaultChars + "%");
|
|
4275
|
+
}
|
|
4276
|
+
constructor(...args) {
|
|
4277
|
+
_defineProperty(
|
|
4278
|
+
this,
|
|
4279
|
+
/**
|
|
4280
|
+
* Instance of {@link ParserInline}. You may need it to add new rules when
|
|
4281
|
+
* writing plugins. For simple rules control use {@link MarkdownIt.disable}
|
|
4282
|
+
* and {@link MarkdownIt.enable}.
|
|
4283
|
+
*/
|
|
4284
|
+
"inline",
|
|
4285
|
+
new ParserInline()
|
|
4286
|
+
);
|
|
4287
|
+
_defineProperty(
|
|
4288
|
+
this,
|
|
4289
|
+
/**
|
|
4290
|
+
* Instance of {@link ParserBlock}. You may need it to add new rules when
|
|
4291
|
+
* writing plugins. For simple rules control use {@link MarkdownIt.disable}
|
|
4292
|
+
* and {@link MarkdownIt.enable}.
|
|
4293
|
+
*/
|
|
4294
|
+
"block",
|
|
4295
|
+
new ParserBlock()
|
|
4296
|
+
);
|
|
4297
|
+
_defineProperty(
|
|
4298
|
+
this,
|
|
4299
|
+
/**
|
|
4300
|
+
* Instance of {@link ParserCore} chain executor. You may need it to add new
|
|
4301
|
+
* rules when writing plugins. For simple rules control use
|
|
4302
|
+
* {@link MarkdownIt.disable} and {@link MarkdownIt.enable}.
|
|
4303
|
+
*/
|
|
4304
|
+
"core",
|
|
4305
|
+
new ParserCore()
|
|
4306
|
+
);
|
|
4307
|
+
_defineProperty(
|
|
4308
|
+
this,
|
|
4309
|
+
/**
|
|
4310
|
+
* Instance of {@link Renderer}. Use it to modify output look. Or to add rendering
|
|
4311
|
+
* rules for new token types, generated by plugins.
|
|
4312
|
+
*
|
|
4313
|
+
* See {@link Renderer} docs and
|
|
4314
|
+
* [source code](https://github.com/markdown-it/markdown-it/blob/master/src/renderer.ts).
|
|
4315
|
+
*
|
|
4316
|
+
* @example
|
|
4317
|
+
* ```javascript
|
|
4318
|
+
* import MarkdownIt from 'markdown-it'
|
|
4319
|
+
* const md = new MarkdownIt()
|
|
4320
|
+
*
|
|
4321
|
+
* function myToken(tokens, idx, options, env, self) {
|
|
4322
|
+
* //...
|
|
4323
|
+
* return result;
|
|
4324
|
+
* };
|
|
4325
|
+
*
|
|
4326
|
+
* md.renderer.rules['my_token'] = myToken
|
|
4327
|
+
* ```
|
|
4328
|
+
*/
|
|
4329
|
+
"renderer",
|
|
4330
|
+
new Renderer()
|
|
4331
|
+
);
|
|
4332
|
+
_defineProperty(
|
|
4333
|
+
this,
|
|
4334
|
+
/**
|
|
4335
|
+
* [linkify-it](https://github.com/markdown-it/linkify-it) instance.
|
|
4336
|
+
* Used by [linkify](https://github.com/markdown-it/markdown-it/blob/master/src/rules_core/linkify.ts)
|
|
4337
|
+
* rule.
|
|
4338
|
+
*/
|
|
4339
|
+
"linkify",
|
|
4340
|
+
new linkify_it.LinkifyIt()
|
|
4341
|
+
);
|
|
4342
|
+
_defineProperty(
|
|
4343
|
+
this,
|
|
4344
|
+
/**
|
|
4345
|
+
* Assorted utility functions, useful to write plugins. See details
|
|
4346
|
+
* [here](https://github.com/markdown-it/markdown-it/blob/master/src/common/utils.ts).
|
|
4347
|
+
*/
|
|
4348
|
+
"utils",
|
|
4349
|
+
utils_exports
|
|
4350
|
+
);
|
|
4351
|
+
_defineProperty(
|
|
4352
|
+
this,
|
|
4353
|
+
/**
|
|
4354
|
+
* Link components parser functions, useful to write plugins. See details
|
|
4355
|
+
* [here](https://github.com/markdown-it/markdown-it/blob/master/src/helpers).
|
|
4356
|
+
*/
|
|
4357
|
+
"helpers",
|
|
4358
|
+
Object.assign({}, helpers_exports)
|
|
4359
|
+
);
|
|
4360
|
+
const [presetNameOrOptions, options] = args;
|
|
4361
|
+
if (typeof presetNameOrOptions === "string") {
|
|
4362
|
+
this.configure(presetNameOrOptions);
|
|
4363
|
+
if (options) this.set(options);
|
|
4364
|
+
} else {
|
|
4365
|
+
this.configure("default");
|
|
4366
|
+
this.set(presetNameOrOptions || {});
|
|
4367
|
+
}
|
|
4368
|
+
}
|
|
4369
|
+
/**
|
|
4370
|
+
* Set parser options (in the same format as in constructor). Probably, you
|
|
4371
|
+
* will never need it, but you can change options after constructor call.
|
|
4372
|
+
*
|
|
4373
|
+
* __Note:__ To achieve the best possible performance, don't modify a
|
|
4374
|
+
* `markdown-it` instance options on the fly. If you need multiple configurations
|
|
4375
|
+
* it's best to create multiple instances and initialize each with separate
|
|
4376
|
+
* config.
|
|
4377
|
+
*
|
|
4378
|
+
* @example
|
|
4379
|
+
* ```javascript
|
|
4380
|
+
* import MarkdownIt from 'markdown-it'
|
|
4381
|
+
*
|
|
4382
|
+
* const md = new MarkdownIt()
|
|
4383
|
+
* .set({ html: true, breaks: true })
|
|
4384
|
+
* .set({ typographer: true })
|
|
4385
|
+
* ```
|
|
4386
|
+
*/
|
|
4387
|
+
set(options) {
|
|
4388
|
+
Object.assign(this.options, options);
|
|
4389
|
+
return this;
|
|
4390
|
+
}
|
|
4391
|
+
/**
|
|
4392
|
+
* Batch load of all options and compenent settings. This is internal method,
|
|
4393
|
+
* and you probably will not need it. But if you will - see available presets
|
|
4394
|
+
* and data structure [here](https://github.com/markdown-it/markdown-it/tree/master/src/presets)
|
|
4395
|
+
*
|
|
4396
|
+
* We strongly recommend to use presets instead of direct config loads. That
|
|
4397
|
+
* will give better compatibility with next versions.
|
|
4398
|
+
*/
|
|
4399
|
+
configure(presets) {
|
|
4400
|
+
let p;
|
|
4401
|
+
if (typeof presets === "string") {
|
|
4402
|
+
const presetName = presets;
|
|
4403
|
+
p = config[presetName];
|
|
4404
|
+
if (!p) throw new Error(`Wrong 'markdown-it' preset "${presetName}", check name`);
|
|
4405
|
+
} else p = presets;
|
|
4406
|
+
if (!p) throw new Error("Wrong `markdown-it` preset, can't be empty");
|
|
4407
|
+
if (p.options) this.options = _objectSpread2({}, p.options);
|
|
4408
|
+
const components = p.components;
|
|
4409
|
+
if (components) {
|
|
4410
|
+
var _components$inline;
|
|
4411
|
+
[
|
|
4412
|
+
"core",
|
|
4413
|
+
"block",
|
|
4414
|
+
"inline"
|
|
4415
|
+
].forEach((name) => {
|
|
4416
|
+
var _components$name;
|
|
4417
|
+
const rules = (_components$name = components[name]) === null || _components$name === void 0 ? void 0 : _components$name.rules;
|
|
4418
|
+
if (rules) this[name].ruler.enableOnly(rules);
|
|
4419
|
+
});
|
|
4420
|
+
const rules2 = (_components$inline = components.inline) === null || _components$inline === void 0 ? void 0 : _components$inline.rules2;
|
|
4421
|
+
if (rules2) this.inline.ruler2.enableOnly(rules2);
|
|
4422
|
+
}
|
|
4423
|
+
return this;
|
|
4424
|
+
}
|
|
4425
|
+
/**
|
|
4426
|
+
* Enable list or rules. It will automatically find appropriate components,
|
|
4427
|
+
* containing rules with given names. If rule not found, and `ignoreInvalid`
|
|
4428
|
+
* not set - throws exception.
|
|
4429
|
+
*
|
|
4430
|
+
* @example
|
|
4431
|
+
* ```javascript
|
|
4432
|
+
* import MarkdownIt from 'markdown-it'
|
|
4433
|
+
*
|
|
4434
|
+
* const md = new MarkdownIt()
|
|
4435
|
+
* .enable(['sub', 'sup'])
|
|
4436
|
+
* .disable('smartquotes')
|
|
4437
|
+
* ```
|
|
4438
|
+
*/
|
|
4439
|
+
enable(list, ignoreInvalid = false) {
|
|
4440
|
+
let result = [];
|
|
4441
|
+
if (!Array.isArray(list)) list = [list];
|
|
4442
|
+
[
|
|
4443
|
+
"core",
|
|
4444
|
+
"block",
|
|
4445
|
+
"inline"
|
|
4446
|
+
].forEach((chain) => {
|
|
4447
|
+
result = result.concat(this[chain].ruler.enable(list, true));
|
|
4448
|
+
});
|
|
4449
|
+
result = result.concat(this.inline.ruler2.enable(list, true));
|
|
4450
|
+
const missed = list.filter((name) => result.indexOf(name) < 0);
|
|
4451
|
+
if (missed.length && !ignoreInvalid) throw new Error(`MarkdownIt. Failed to enable unknown rule(s): ${missed}`);
|
|
4452
|
+
return this;
|
|
4453
|
+
}
|
|
4454
|
+
/**
|
|
4455
|
+
* The same as {@link MarkdownIt.enable}, but turn specified rules off.
|
|
4456
|
+
*/
|
|
4457
|
+
disable(list, ignoreInvalid = false) {
|
|
4458
|
+
let result = [];
|
|
4459
|
+
if (!Array.isArray(list)) list = [list];
|
|
4460
|
+
[
|
|
4461
|
+
"core",
|
|
4462
|
+
"block",
|
|
4463
|
+
"inline"
|
|
4464
|
+
].forEach((chain) => {
|
|
4465
|
+
result = result.concat(this[chain].ruler.disable(list, true));
|
|
4466
|
+
});
|
|
4467
|
+
result = result.concat(this.inline.ruler2.disable(list, true));
|
|
4468
|
+
const missed = list.filter((name) => result.indexOf(name) < 0);
|
|
4469
|
+
if (missed.length && !ignoreInvalid) throw new Error(`MarkdownIt. Failed to disable unknown rule(s): ${missed}`);
|
|
4470
|
+
return this;
|
|
4471
|
+
}
|
|
4472
|
+
/**
|
|
4473
|
+
* Load specified plugin with given params into current parser instance.
|
|
4474
|
+
* It's just a sugar to call `plugin(md, params)` with curring.
|
|
4475
|
+
*
|
|
4476
|
+
* @example
|
|
4477
|
+
* ```javascript
|
|
4478
|
+
* import MarkdownIt from 'markdown-it'
|
|
4479
|
+
* import iterator from 'markdown-it-for-inline'
|
|
4480
|
+
*
|
|
4481
|
+
* const md = new MarkdownIt()
|
|
4482
|
+
* .use(iterator, 'foo_replace', 'text', function (tokens, idx) {
|
|
4483
|
+
* tokens[idx].content = tokens[idx].content.replace(/foo/g, 'bar')
|
|
4484
|
+
* })
|
|
4485
|
+
* ```
|
|
4486
|
+
*/
|
|
4487
|
+
use(plugin, ...params) {
|
|
4488
|
+
plugin.apply(plugin, [this, ...params]);
|
|
4489
|
+
return this;
|
|
4490
|
+
}
|
|
4491
|
+
/**
|
|
4492
|
+
* Parse input string and return list of block tokens (special token type
|
|
4493
|
+
* "inline" will contain list of inline tokens). You should not call this
|
|
4494
|
+
* method directly, until you write custom renderer (for example, to produce
|
|
4495
|
+
* AST).
|
|
4496
|
+
*
|
|
4497
|
+
* `env` is used to pass data between "distributed" rules and return additional
|
|
4498
|
+
* metadata like reference info, needed for the renderer. It also can be used to
|
|
4499
|
+
* inject data in specific cases. Usually, you will be ok to pass `{}`,
|
|
4500
|
+
* and then pass updated object to renderer.
|
|
4501
|
+
*/
|
|
4502
|
+
parse(src, env) {
|
|
4503
|
+
if (typeof src !== "string") throw new Error("Input data should be a String");
|
|
4504
|
+
const state = new this.core.State(src, this, env);
|
|
4505
|
+
this.core.process(state);
|
|
4506
|
+
return state.tokens;
|
|
4507
|
+
}
|
|
4508
|
+
/**
|
|
4509
|
+
* Render markdown string into html. It does all magic for you :).
|
|
4510
|
+
*
|
|
4511
|
+
* `env` can be used to inject additional metadata (`{}` by default).
|
|
4512
|
+
* But you will not need it with high probability. See also comment
|
|
4513
|
+
* in {@link MarkdownIt.parse}.
|
|
4514
|
+
*/
|
|
4515
|
+
render(src, env = {}) {
|
|
4516
|
+
return this.renderer.render(this.parse(src, env), this.options, env);
|
|
4517
|
+
}
|
|
4518
|
+
/**
|
|
4519
|
+
* The same as {@link MarkdownIt.parse} but skip all block rules. It returns
|
|
4520
|
+
* the block tokens list with the single `inline` element, containing parsed
|
|
4521
|
+
* inline tokens in `children` property. Also updates `env` object.
|
|
4522
|
+
*/
|
|
4523
|
+
parseInline(src, env) {
|
|
4524
|
+
const state = new this.core.State(src, this, env);
|
|
4525
|
+
state.inlineMode = true;
|
|
4526
|
+
this.core.process(state);
|
|
4527
|
+
return state.tokens;
|
|
4528
|
+
}
|
|
4529
|
+
/**
|
|
4530
|
+
* Similar to {@link MarkdownIt.render} but for single paragraph content.
|
|
4531
|
+
* Result will NOT be wrapped into `<p>` tags.
|
|
4532
|
+
*/
|
|
4533
|
+
renderInline(src, env = {}) {
|
|
4534
|
+
return this.renderer.render(this.parseInline(src, env), this.options, env);
|
|
4535
|
+
}
|
|
4536
|
+
};
|
|
4537
|
+
_defineProperty(MarkdownIt, "Token", Token);
|
|
4538
|
+
_defineProperty(MarkdownIt, "Ruler", Ruler);
|
|
4539
|
+
_defineProperty(MarkdownIt, "Renderer", Renderer);
|
|
4540
|
+
_defineProperty(MarkdownIt, "ParserCore", ParserCore);
|
|
4541
|
+
_defineProperty(MarkdownIt, "StateCore", StateCore);
|
|
4542
|
+
_defineProperty(MarkdownIt, "ParserBlock", ParserBlock);
|
|
4543
|
+
_defineProperty(MarkdownIt, "StateBlock", StateBlock);
|
|
4544
|
+
_defineProperty(MarkdownIt, "ParserInline", ParserInline);
|
|
4545
|
+
_defineProperty(MarkdownIt, "StateInline", StateInline);
|
|
4546
|
+
//#endregion
|
|
4547
|
+
//#region src/index.ts
|
|
4548
|
+
/**
|
|
4549
|
+
* Default package export.
|
|
4550
|
+
*
|
|
4551
|
+
* For backward compatibility, the {@link MarkdownIt} class is wrapped so
|
|
4552
|
+
* legacy code can call it without `new`. New code should instantiate it as a
|
|
4553
|
+
* regular class with `new`. The compatibility wrapper may be removed in a
|
|
4554
|
+
* future release.
|
|
4555
|
+
*
|
|
4556
|
+
* @category Main
|
|
4557
|
+
*/
|
|
4558
|
+
var MarkdownItCallable = callable(MarkdownIt);
|
|
4559
|
+
//#endregion
|
|
4560
|
+
module.exports = MarkdownItCallable;
|
|
4561
|
+
|
|
4562
|
+
//# sourceMappingURL=markdown-it.cjs.js.map
|