@easyv/biz-components 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/___vite-browser-external.es.js +4 -4
- package/dist/_virtual/__vite-browser-external.es.js +2 -2
- package/dist/_virtual/__vite-browser-external.es.js.map +1 -1
- package/dist/_virtual/_commonjs-dynamic-modules.es.js +3 -3
- package/dist/_virtual/_commonjsHelpers.es.js +25 -20
- package/dist/_virtual/_commonjsHelpers.es.js.map +1 -1
- package/dist/_virtual/aes.es.js +2 -2
- package/dist/_virtual/blowfish.es.js +2 -2
- package/dist/_virtual/cipher-core.es.js +2 -2
- package/dist/_virtual/core.es.js +2 -2
- package/dist/_virtual/enc-base64.es.js +2 -2
- package/dist/_virtual/enc-base64url.es.js +2 -2
- package/dist/_virtual/enc-utf16.es.js +2 -2
- package/dist/_virtual/evpkdf.es.js +2 -2
- package/dist/_virtual/format-hex.es.js +2 -2
- package/dist/_virtual/hmac.es.js +2 -2
- package/dist/_virtual/index.es.js +2 -2
- package/dist/_virtual/index.es2.js +2 -2
- package/dist/_virtual/index.es3.js +2 -2
- package/dist/_virtual/index.es4.js +2 -2
- package/dist/_virtual/index.es5.js +2 -2
- package/dist/_virtual/index.es6.js +2 -2
- package/dist/_virtual/index.es7.js +2 -2
- package/dist/_virtual/jsx-runtime.es.js +2 -2
- package/dist/_virtual/lib-typedarrays.es.js +2 -2
- package/dist/_virtual/md5.es.js +2 -2
- package/dist/_virtual/mode-cfb.es.js +2 -2
- package/dist/_virtual/mode-ctr-gladman.es.js +2 -2
- package/dist/_virtual/mode-ctr.es.js +2 -2
- package/dist/_virtual/mode-ecb.es.js +2 -2
- package/dist/_virtual/mode-ofb.es.js +2 -2
- package/dist/_virtual/pad-ansix923.es.js +2 -2
- package/dist/_virtual/pad-iso10126.es.js +2 -2
- package/dist/_virtual/pad-iso97971.es.js +2 -2
- package/dist/_virtual/pad-nopadding.es.js +2 -2
- package/dist/_virtual/pad-zeropadding.es.js +2 -2
- package/dist/_virtual/pbkdf2.es.js +2 -2
- package/dist/_virtual/rabbit-legacy.es.js +2 -2
- package/dist/_virtual/rabbit.es.js +2 -2
- package/dist/_virtual/rc4.es.js +2 -2
- package/dist/_virtual/react-is.development.es.js +2 -2
- package/dist/_virtual/react-is.production.min.es.js +2 -2
- package/dist/_virtual/react-jsx-runtime.development.es.js +2 -2
- package/dist/_virtual/react-jsx-runtime.production.min.es.js +2 -2
- package/dist/_virtual/ripemd160.es.js +2 -2
- package/dist/_virtual/sha1.es.js +2 -2
- package/dist/_virtual/sha224.es.js +2 -2
- package/dist/_virtual/sha256.es.js +2 -2
- package/dist/_virtual/sha3.es.js +2 -2
- package/dist/_virtual/sha384.es.js +2 -2
- package/dist/_virtual/sha512.es.js +2 -2
- package/dist/_virtual/tripledes.es.js +2 -2
- package/dist/_virtual/utilities.es.js +2 -2
- package/dist/_virtual/x64-core.es.js +2 -2
- package/dist/components/AiMessageRender/AiMessageRender.es.js +62 -46
- package/dist/components/AiMessageRender/AiMessageRender.es.js.map +1 -1
- package/dist/components/AiMessageRender/index.less.es.js +2 -191
- package/dist/components/AiMessageRender/index.less.es.js.map +1 -1
- package/dist/components/ScrollController/ScrollController.es.js +57 -34
- package/dist/components/ScrollController/ScrollController.es.js.map +1 -1
- package/dist/components/ShadowDom/ShadowDom.es.js +28 -20
- package/dist/components/ShadowDom/ShadowDom.es.js.map +1 -1
- package/dist/components/VoiceAnimation/VoiceAnimation.es.js +22 -15
- package/dist/components/VoiceAnimation/VoiceAnimation.es.js.map +1 -1
- package/dist/hooks/useDivAutoScroll.es.js +47 -24
- package/dist/hooks/useDivAutoScroll.es.js.map +1 -1
- package/dist/hooks/useXunFeiSteamVoiceManager.es.js +12 -10
- package/dist/hooks/useXunFeiSteamVoiceManager.es.js.map +1 -1
- package/dist/index.es.js +19 -19
- package/dist/node_modules/.pnpm/@easyv_react-icons@6.3.0/node_modules/@easyv/react-icons/dist/index.esm.es.js +5117 -1099
- package/dist/node_modules/.pnpm/@easyv_react-icons@6.3.0/node_modules/@easyv/react-icons/dist/index.esm.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.es.js +54 -48
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/index.es.js +8 -8
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.es.js +103 -74
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/types.es.js +20 -11
- package/dist/node_modules/.pnpm/@ungap_structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/types.es.js.map +1 -1
- package/dist/node_modules/.pnpm/bail@2.0.2/node_modules/bail/index.es.js +5 -4
- package/dist/node_modules/.pnpm/bail@2.0.2/node_modules/bail/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.es.js +12 -8
- package/dist/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.es.js +37 -27
- package/dist/node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.es.js +49 -28
- package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/co-web-worker@1.0.1/node_modules/co-web-worker/index.es.js +11 -11
- package/dist/node_modules/.pnpm/co-web-worker@1.0.1/node_modules/co-web-worker/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.es.js +6 -5
- package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.es.js +145 -53
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.es.js +125 -60
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.es.js +244 -140
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.es.js +232 -127
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.es.js +74 -43
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.es.js +80 -45
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.es.js +58 -36
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.es.js +55 -29
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.es.js +32 -21
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.es.js +56 -29
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.es.js +48 -46
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.es.js +44 -23
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.es.js +158 -47
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.es.js +49 -29
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.es.js +72 -33
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.es.js +39 -23
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.es.js +30 -22
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.es.js +37 -21
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.es.js +31 -20
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.es.js +27 -20
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.es.js +26 -18
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.es.js +20 -14
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.es.js +31 -21
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.es.js +61 -32
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.es.js +119 -59
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.es.js +122 -61
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.es.js +67 -40
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.es.js +135 -49
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.es.js +75 -30
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.es.js +32 -19
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.es.js +107 -40
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.es.js +167 -77
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.es.js +42 -28
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.es.js +268 -129
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.es.js +122 -63
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.es.js.map +1 -1
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.es.js +52 -27
- package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.es.js.map +1 -1
- package/dist/node_modules/.pnpm/decode-named-character-reference@1.1.0/node_modules/decode-named-character-reference/index.dom.es.js +12 -9
- package/dist/node_modules/.pnpm/decode-named-character-reference@1.1.0/node_modules/decode-named-character-reference/index.dom.es.js.map +1 -1
- package/dist/node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.es.js +4 -4
- package/dist/node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.es.js.map +1 -1
- package/dist/node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.es.js +5 -4
- package/dist/node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/estree-util-is-identifier-name@3.0.0/node_modules/estree-util-is-identifier-name/lib/index.es.js +8 -4
- package/dist/node_modules/.pnpm/estree-util-is-identifier-name@3.0.0/node_modules/estree-util-is-identifier-name/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.es.js +86 -36
- package/dist/node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +314 -226
- package/dist/node_modules/.pnpm/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.es.js +6 -6
- package/dist/node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/html-url-attributes@3.0.1/node_modules/html-url-attributes/lib/index.es.js +2 -2
- package/dist/node_modules/.pnpm/html-url-attributes@3.0.1/node_modules/html-url-attributes/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/inline-style-parser@0.2.4/node_modules/inline-style-parser/index.es.js +115 -67
- package/dist/node_modules/.pnpm/inline-style-parser@0.2.4/node_modules/inline-style-parser/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.es.js +7 -6
- package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.es.js +21 -8
- package/dist/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/markdown-table@3.0.4/node_modules/markdown-table/index.es.js +124 -57
- package/dist/node_modules/.pnpm/markdown-table@3.0.4/node_modules/markdown-table/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.es.js +93 -54
- package/dist/node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-from-markdown@2.0.2/node_modules/mdast-util-from-markdown/lib/index.es.js +509 -371
- package/dist/node_modules/.pnpm/mdast-util-from-markdown@2.0.2/node_modules/mdast-util-from-markdown/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.es.js +107 -81
- package/dist/node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.es.js +85 -63
- package/dist/node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js +26 -22
- package/dist/node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.es.js +104 -82
- package/dist/node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.es.js +57 -38
- package/dist/node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.es.js +19 -19
- package/dist/node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.es.js +4 -4
- package/dist/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/footer.es.js +94 -69
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/footer.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/blockquote.es.js +6 -5
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/blockquote.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/break.es.js +5 -5
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/break.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/code.es.js +18 -9
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/code.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/delete.es.js +6 -5
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/delete.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/emphasis.es.js +6 -5
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/emphasis.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.es.js +28 -15
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/heading.es.js +7 -6
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/heading.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/html.es.js +7 -5
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/html.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/image-reference.es.js +16 -11
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/image-reference.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/image.es.js +13 -7
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/image.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/index.es.js +54 -53
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/inline-code.es.js +8 -7
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/inline-code.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/link-reference.es.js +18 -13
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/link-reference.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/link.es.js +12 -9
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/link.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list-item.es.js +53 -31
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list-item.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list.es.js +18 -13
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/list.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/paragraph.es.js +6 -5
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/paragraph.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/root.es.js +5 -4
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/root.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/strong.es.js +6 -5
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/strong.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-cell.es.js +6 -5
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-cell.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-row.es.js +27 -13
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table-row.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table.es.js +23 -16
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/table.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/text.es.js +6 -5
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/text.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.es.js +5 -4
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/index.es.js +12 -7
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/revert.es.js +26 -10
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/revert.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/state.es.js +123 -79
- package/dist/node_modules/.pnpm/mdast-util-to-hast@13.2.0/node_modules/mdast-util-to-hast/lib/state.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.es.js +13 -10
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.es.js +10 -10
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.es.js +44 -32
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.es.js +53 -29
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js +37 -26
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js +35 -24
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.es.js +5 -5
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js +31 -18
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.es.js +54 -28
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.es.js +41 -41
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js +25 -15
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js +31 -18
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.es.js +74 -41
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.es.js +27 -17
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.es.js +34 -24
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.es.js +8 -4
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.es.js +8 -6
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js +37 -26
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.es.js +3 -3
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.es.js +6 -6
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.es.js +7 -6
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.es.js +15 -11
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.es.js +7 -6
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.es.js +7 -6
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.es.js +7 -6
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.es.js +7 -6
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.es.js +7 -6
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.es.js +7 -6
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.es.js +7 -6
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.es.js +7 -6
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.es.js +3 -3
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.es.js +36 -29
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js +8 -6
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.es.js +15 -10
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js +14 -12
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.es.js +17 -11
- package/dist/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.es.js.map +1 -1
- package/dist/node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.es.js +31 -22
- package/dist/node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/attention.es.js +109 -57
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/attention.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/autolink.es.js +88 -28
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/autolink.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.es.js +12 -12
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/block-quote.es.js +47 -28
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/block-quote.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-escape.es.js +21 -10
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-escape.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-reference.es.js +58 -20
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-reference.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-fenced.es.js +162 -70
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-fenced.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-indented.es.js +54 -30
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-indented.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-text.es.js +101 -30
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-text.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/content.es.js +61 -36
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/content.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/definition.es.js +66 -52
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/definition.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/hard-break-escape.es.js +16 -10
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/hard-break-escape.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/heading-atx.es.js +83 -34
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/heading-atx.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-flow.es.js +344 -105
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-flow.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-text.es.js +275 -68
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-text.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-end.es.js +191 -108
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-end.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-image.es.js +25 -14
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-image.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-link.es.js +17 -12
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-link.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/line-ending.es.js +11 -8
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/line-ending.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/list.es.js +110 -65
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/list.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/setext-underline.es.js +75 -37
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/setext-underline.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/thematic-break.es.js +33 -16
- package/dist/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/thematic-break.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.es.js +295 -144
- package/dist/node_modules/.pnpm/micromark-extension-gfm-autolink-literal@2.1.0/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.es.js +216 -129
- package/dist/node_modules/.pnpm/micromark-extension-gfm-footnote@2.1.0/node_modules/micromark-extension-gfm-footnote/lib/syntax.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.es.js +76 -45
- package/dist/node_modules/.pnpm/micromark-extension-gfm-strikethrough@2.1.0/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/edit-map.es.js +37 -28
- package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/edit-map.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/infer.es.js +22 -17
- package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/infer.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/syntax.es.js +350 -104
- package/dist/node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/syntax.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.es.js +59 -27
- package/dist/node_modules/.pnpm/micromark-extension-gfm-task-list-item@2.1.0/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.es.js +14 -14
- package/dist/node_modules/.pnpm/micromark-extension-gfm@3.0.0/node_modules/micromark-extension-gfm/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.es.js +83 -20
- package/dist/node_modules/.pnpm/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.es.js +51 -16
- package/dist/node_modules/.pnpm/micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.es.js +19 -10
- package/dist/node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-factory-title@2.0.1/node_modules/micromark-factory-title/index.es.js +56 -17
- package/dist/node_modules/.pnpm/micromark-factory-title@2.0.1/node_modules/micromark-factory-title/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.es.js +18 -8
- package/dist/node_modules/.pnpm/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.es.js +32 -27
- package/dist/node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.es.js +32 -12
- package/dist/node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.es.js +7 -5
- package/dist/node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.es.js +32 -27
- package/dist/node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-util-decode-numeric-character-reference@2.0.2/node_modules/micromark-util-decode-numeric-character-reference/index.es.js +14 -11
- package/dist/node_modules/.pnpm/micromark-util-decode-numeric-character-reference@2.0.2/node_modules/micromark-util-decode-numeric-character-reference/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.es.js +16 -13
- package/dist/node_modules/.pnpm/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-util-html-tag-name@2.0.1/node_modules/micromark-util-html-tag-name/index.es.js +5 -4
- package/dist/node_modules/.pnpm/micromark-util-html-tag-name@2.0.1/node_modules/micromark-util-html-tag-name/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.es.js +3 -3
- package/dist/node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.es.js +11 -8
- package/dist/node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-util-sanitize-uri@2.0.1/node_modules/micromark-util-sanitize-uri/index.es.js +37 -19
- package/dist/node_modules/.pnpm/micromark-util-sanitize-uri@2.0.1/node_modules/micromark-util-sanitize-uri/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/index.es.js +149 -47
- package/dist/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/lib/splice-buffer.es.js +61 -42
- package/dist/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/lib/splice-buffer.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/constructs.es.js +88 -80
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/constructs.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.es.js +247 -150
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/content.es.js +39 -23
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/content.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/document.es.js +151 -91
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/document.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/flow.es.js +29 -20
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/flow.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/text.es.js +116 -69
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/text.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/parse.es.js +26 -24
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/parse.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/postprocess.es.js +6 -6
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/postprocess.es.js.map +1 -1
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/preprocess.es.js +63 -22
- package/dist/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/preprocess.es.js.map +1 -1
- package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.es.js +62 -38
- package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.es.js +49 -35
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.es.js.map +1 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.es.js +49 -43
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.es.js.map +1 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.es.js +363 -241
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.es.js.map +1 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.es.js +14 -12
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.es.js +9 -7
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.es.js.map +1 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.es.js +8 -4
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/index.es.js +11 -10
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/aria.es.js +39 -39
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/aria.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/find.es.js +31 -24
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/find.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/hast-to-react.es.js +2 -2
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/hast-to-react.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/html.es.js +94 -94
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/html.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/normalize.es.js +3 -3
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/normalize.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/svg.es.js +77 -77
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/svg.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/case-insensitive-transform.es.js +4 -4
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/case-insensitive-transform.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/case-sensitive-transform.es.js +3 -3
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/case-sensitive-transform.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/create.es.js +20 -14
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/create.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/defined-info.es.js +20 -15
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/defined-info.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/info.es.js +17 -16
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/info.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/merge.es.js +10 -7
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/merge.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/schema.es.js +11 -7
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/schema.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/types.es.js +17 -11
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/util/types.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xlink.es.js +5 -5
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xlink.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xml.es.js +5 -5
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xml.es.js.map +1 -1
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xmlns.es.js +5 -5
- package/dist/node_modules/.pnpm/property-information@7.0.0/node_modules/property-information/lib/xmlns.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.es.js +152 -82
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.es.js +86 -58
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.es.js +14 -7
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-markdown@10.1.0_@types_react@18.2.0_react@18.2.0/node_modules/react-markdown/lib/index.es.js +102 -55
- package/dist/node_modules/.pnpm/react-markdown@10.1.0_@types_react@18.2.0_react@18.2.0/node_modules/react-markdown/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.es.js +825 -539
- package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.es.js +20 -15
- package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.es.js +10 -6
- package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.es.js.map +1 -1
- package/dist/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.es.js +15 -8
- package/dist/node_modules/.pnpm/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.es.js +11 -11
- package/dist/node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/remark-rehype@11.1.2/node_modules/remark-rehype/lib/index.es.js +14 -11
- package/dist/node_modules/.pnpm/remark-rehype@11.1.2/node_modules/remark-rehype/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.es.js +3 -3
- package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/style-to-js@1.1.16/node_modules/style-to-js/cjs/index.es.js +23 -15
- package/dist/node_modules/.pnpm/style-to-js@1.1.16/node_modules/style-to-js/cjs/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/style-to-js@1.1.16/node_modules/style-to-js/cjs/utilities.es.js +33 -13
- package/dist/node_modules/.pnpm/style-to-js@1.1.16/node_modules/style-to-js/cjs/utilities.es.js.map +1 -1
- package/dist/node_modules/.pnpm/style-to-object@1.0.8/node_modules/style-to-object/cjs/index.es.js +27 -18
- package/dist/node_modules/.pnpm/style-to-object@1.0.8/node_modules/style-to-object/cjs/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/trim-lines@3.0.1/node_modules/trim-lines/index.es.js +35 -22
- package/dist/node_modules/.pnpm/trim-lines@3.0.1/node_modules/trim-lines/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/trough@2.2.0/node_modules/trough/lib/index.es.js +68 -42
- package/dist/node_modules/.pnpm/trough@2.2.0/node_modules/trough/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/callable-instance.es.js +13 -8
- package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/callable-instance.es.js.map +1 -1
- package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.es.js +246 -139
- package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/unist-util-is@6.0.0/node_modules/unist-util-is/lib/index.es.js +59 -50
- package/dist/node_modules/.pnpm/unist-util-is@6.0.0/node_modules/unist-util-is/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.es.js +20 -16
- package/dist/node_modules/.pnpm/unist-util-position@5.0.0/node_modules/unist-util-position/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.es.js +21 -9
- package/dist/node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/color.es.js +3 -3
- package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/color.es.js.map +1 -1
- package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/index.es.js +65 -38
- package/dist/node_modules/.pnpm/unist-util-visit-parents@6.0.1/node_modules/unist-util-visit-parents/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/unist-util-visit@5.0.0/node_modules/unist-util-visit/lib/index.es.js +24 -12
- package/dist/node_modules/.pnpm/unist-util-visit@5.0.0/node_modules/unist-util-visit/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/vfile-message@4.0.2/node_modules/vfile-message/lib/index.es.js +77 -30
- package/dist/node_modules/.pnpm/vfile-message@4.0.2/node_modules/vfile-message/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/index.es.js +116 -60
- package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minpath.browser.es.js +181 -79
- package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minpath.browser.es.js.map +1 -1
- package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minproc.browser.es.js +3 -3
- package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minproc.browser.es.js.map +1 -1
- package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.browser.es.js +32 -27
- package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.browser.es.js.map +1 -1
- package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.shared.es.js +6 -4
- package/dist/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.shared.es.js.map +1 -1
- package/dist/utils/funASR/funASRManager.es.js +109 -68
- package/dist/utils/funASR/funASRManager.es.js.map +1 -1
- package/dist/utils/funASR/pcm.es.js +51 -36
- package/dist/utils/funASR/pcm.es.js.map +1 -1
- package/dist/utils/funASR/recorder.es.js +1048 -542
- package/dist/utils/funASR/recorder.es.js.map +1 -1
- package/dist/utils/funASR/wav.es.js +46 -20
- package/dist/utils/funASR/wav.es.js.map +1 -1
- package/dist/utils/funASR/wsConnecter.es.js +79 -44
- package/dist/utils/funASR/wsConnecter.es.js.map +1 -1
- package/dist/utils/xunFeiVoice/RecorderManager/RecorderManager.es.js +126 -78
- package/dist/utils/xunFeiVoice/RecorderManager/RecorderManager.es.js.map +1 -1
- package/dist/utils/xunFeiVoice/RecorderManager/processorSource/processor.worker.es.js +2 -207
- package/dist/utils/xunFeiVoice/RecorderManager/processorSource/processor.worker.es.js.map +1 -1
- package/dist/utils/xunFeiVoice/RecorderManager/processorSource/processor.worklet.es.js +2 -2
- package/dist/utils/xunFeiVoice/RecorderManager/processorSource/processor.worklet.es.js.map +1 -1
- package/dist/utils/xunFeiVoice/XFStreamVoiceManager.d.ts +4 -0
- package/dist/utils/xunFeiVoice/XFStreamVoiceManager.es.js +207 -131
- package/dist/utils/xunFeiVoice/XFStreamVoiceManager.es.js.map +1 -1
- package/dist/utils/xunFeiVoice/utils.es.js +9 -7
- package/dist/utils/xunFeiVoice/utils.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,103 +1,144 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { pcmEnhanceRecorder
|
|
5
|
-
import { Recorder
|
|
6
|
-
import { wavEnhanceRecorder
|
|
7
|
-
import { WebSocketConnectMethod
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
this
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
+
import { pcmEnhanceRecorder } from "./pcm.es.js";
|
|
5
|
+
import { Recorder } from "./recorder.es.js";
|
|
6
|
+
import { wavEnhanceRecorder } from "./wav.es.js";
|
|
7
|
+
import { WebSocketConnectMethod } from "./wsConnecter.es.js";
|
|
8
|
+
const getWebSocketConnectForFunASR = (config) => {
|
|
9
|
+
return new WebSocketConnectMethod(config);
|
|
10
|
+
};
|
|
11
|
+
class FunASRManager {
|
|
12
|
+
constructor(params) {
|
|
13
|
+
__publicField(this, "wsInstance", null);
|
|
14
|
+
__publicField(this, "recorderInstance", null);
|
|
15
|
+
__publicField(this, "sampleBuf", new Int16Array());
|
|
16
|
+
__publicField(this, "isRec", false);
|
|
17
|
+
__publicField(this, "Recorder", Recorder);
|
|
18
|
+
__publicField(this, "status", "stop");
|
|
19
|
+
__publicField(this, "timer", 0);
|
|
20
|
+
__publicField(this, "propsOnError");
|
|
21
|
+
__publicField(this, "socketConfig");
|
|
22
|
+
__publicField(this, "recorderConfig", { type: "pcm" });
|
|
23
|
+
const { socketConfig, recorderConfig = { type: "pcm" }, onError } = params;
|
|
24
|
+
this.socketConfig = socketConfig;
|
|
25
|
+
if (recorderConfig) {
|
|
26
|
+
this.recorderConfig = recorderConfig;
|
|
27
|
+
}
|
|
28
|
+
this.init();
|
|
29
|
+
this.wsInstance = getWebSocketConnectForFunASR({
|
|
30
|
+
...socketConfig,
|
|
31
|
+
onError: (errMsg) => {
|
|
25
32
|
this.onError({
|
|
26
33
|
type: "webSocketError",
|
|
27
|
-
msg:
|
|
34
|
+
msg: errMsg
|
|
28
35
|
});
|
|
29
36
|
}
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
37
|
+
});
|
|
38
|
+
this.recorderInstance = this.Recorder({
|
|
39
|
+
...recorderConfig,
|
|
40
|
+
onProcess: (...args) => {
|
|
41
|
+
if (recorderConfig.onProcess) {
|
|
42
|
+
return recorderConfig.onProcess(...args);
|
|
43
|
+
}
|
|
44
|
+
return this.recordProcess(args[0], args[1], args[2], args[3], args[4], args[5]);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
this.propsOnError = onError;
|
|
34
48
|
}
|
|
35
49
|
init() {
|
|
36
|
-
|
|
50
|
+
pcmEnhanceRecorder(this.Recorder);
|
|
51
|
+
wavEnhanceRecorder(this.Recorder);
|
|
52
|
+
this.status = "live";
|
|
37
53
|
}
|
|
38
54
|
destroy() {
|
|
39
|
-
var
|
|
40
|
-
(
|
|
55
|
+
var _a;
|
|
56
|
+
(_a = this.wsInstance) == null ? void 0 : _a.wsStop();
|
|
57
|
+
this.Recorder.Destroy();
|
|
58
|
+
this.status = "stop";
|
|
41
59
|
}
|
|
42
|
-
onError(
|
|
43
|
-
var
|
|
44
|
-
console.error("FunASRManager error:",
|
|
60
|
+
onError(errorObj) {
|
|
61
|
+
var _a;
|
|
62
|
+
console.error("FunASRManager error:", errorObj);
|
|
63
|
+
(_a = this.propsOnError) == null ? void 0 : _a.call(this, errorObj);
|
|
45
64
|
}
|
|
46
65
|
startRecord() {
|
|
47
|
-
var
|
|
48
|
-
this.status
|
|
66
|
+
var _a, _b, _c, _d;
|
|
67
|
+
if (this.status === "stop") {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
if (((_b = (_a = this.wsInstance) == null ? void 0 : _a.getSocket()) == null ? void 0 : _b.readyState) !== WebSocket.OPEN) {
|
|
71
|
+
(_c = this.wsInstance) == null ? void 0 : _c.wsStart();
|
|
72
|
+
}
|
|
73
|
+
(_d = this.recorderInstance) == null ? void 0 : _d.open(
|
|
49
74
|
() => {
|
|
50
|
-
var
|
|
51
|
-
(
|
|
75
|
+
var _a2;
|
|
76
|
+
(_a2 = this.recorderInstance) == null ? void 0 : _a2.start();
|
|
77
|
+
this.isRec = true;
|
|
52
78
|
},
|
|
53
|
-
(
|
|
79
|
+
(errMsg, isUserNotAllowed) => {
|
|
54
80
|
this.onError({
|
|
55
81
|
type: "startRecord",
|
|
56
|
-
msg:
|
|
57
|
-
isUserNotAllowed
|
|
82
|
+
msg: errMsg,
|
|
83
|
+
isUserNotAllowed
|
|
58
84
|
});
|
|
59
85
|
}
|
|
60
|
-
)
|
|
86
|
+
);
|
|
61
87
|
}
|
|
62
88
|
stopRecord() {
|
|
63
|
-
var
|
|
64
|
-
if (this.status === "stop" || ((
|
|
89
|
+
var _a;
|
|
90
|
+
if (this.status === "stop" || ((_a = this.recorderInstance) == null ? void 0 : _a.state) === 0) {
|
|
65
91
|
return;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
92
|
+
}
|
|
93
|
+
const that = this;
|
|
94
|
+
if (this.timer) {
|
|
95
|
+
clearTimeout(this.timer);
|
|
96
|
+
}
|
|
97
|
+
const stopFn = () => {
|
|
98
|
+
var _a2;
|
|
99
|
+
(_a2 = this.recorderInstance) == null ? void 0 : _a2.stop(() => {
|
|
100
|
+
var _a3, _b;
|
|
101
|
+
const chunk_size = [5, 10, 5];
|
|
102
|
+
const request = {
|
|
103
|
+
chunk_size,
|
|
74
104
|
wav_name: "h5",
|
|
75
|
-
is_speaking:
|
|
105
|
+
is_speaking: false,
|
|
76
106
|
chunk_interval: 10,
|
|
77
|
-
mode:
|
|
107
|
+
mode: that.socketConfig.mode
|
|
78
108
|
};
|
|
79
|
-
|
|
109
|
+
if (that.sampleBuf.length > 0) {
|
|
110
|
+
(_a3 = that.wsInstance) == null ? void 0 : _a3.wsSend(that.sampleBuf);
|
|
111
|
+
that.sampleBuf = new Int16Array();
|
|
112
|
+
}
|
|
113
|
+
(_b = that.wsInstance) == null ? void 0 : _b.wsSend(JSON.stringify(request));
|
|
114
|
+
this.isRec = false;
|
|
80
115
|
});
|
|
81
116
|
};
|
|
82
117
|
this.timer = setTimeout(() => {
|
|
83
|
-
|
|
118
|
+
stopFn();
|
|
84
119
|
}, 1e3);
|
|
85
120
|
}
|
|
86
|
-
recordProcess(
|
|
87
|
-
var
|
|
88
|
-
if (this.status
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
121
|
+
recordProcess(buffer, _powerLevel, _bufferDuration, bufferSampleRate, _newBufferIdx, _asyncEnd) {
|
|
122
|
+
var _a, _b;
|
|
123
|
+
if (this.status === "stop") {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
if (this.isRec === true) {
|
|
127
|
+
const data_48k = buffer[buffer.length - 1];
|
|
128
|
+
const array_48k = new Array(data_48k);
|
|
129
|
+
const data_16k = ((_a = this.Recorder) == null ? void 0 : _a.SampleData(array_48k, bufferSampleRate, 16e3).data) || [];
|
|
130
|
+
this.sampleBuf = Int16Array.from([...this.sampleBuf, ...data_16k]);
|
|
131
|
+
const chunk_size = 960;
|
|
132
|
+
while (this.sampleBuf.length >= chunk_size) {
|
|
133
|
+
const sendBuf = this.sampleBuf.slice(0, chunk_size);
|
|
134
|
+
this.sampleBuf = this.sampleBuf.slice(chunk_size, this.sampleBuf.length);
|
|
135
|
+
(_b = this.wsInstance) == null ? void 0 : _b.wsSend(sendBuf);
|
|
95
136
|
}
|
|
96
137
|
}
|
|
97
138
|
}
|
|
98
139
|
}
|
|
99
140
|
export {
|
|
100
|
-
|
|
101
|
-
|
|
141
|
+
FunASRManager,
|
|
142
|
+
getWebSocketConnectForFunASR
|
|
102
143
|
};
|
|
103
144
|
//# sourceMappingURL=funASRManager.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funASRManager.es.js","sources":["../../../src/utils/funASR/funASRManager.ts"],"sourcesContent":["import { pcmEnhanceRecorder } from './pcm';\nimport { Recorder as OriginRecorder } from './recorder';\nimport { wavEnhanceRecorder } from './wav';\nimport { WebSocketConnectMethod } from './wsConnecter';\n\nexport interface WebSocketConnectMethodInstance {\n wsSend: (msg: string | Int16Array<ArrayBuffer>) => void;\n wsStop: () => void;\n /** 1 is ok, 0 is error */\n wsStart: () => 0 | 1;\n getSocket: () => WebSocket | undefined;\n}\n\nexport interface JsonMsg {\n data: string;\n}\nexport interface WebSocketConnectMethodConfig {\n msgHandle: (jsonMsg: JsonMsg) => void;\n /**\n * 0: 成功\n * 1: 关闭\n * 2: 连接失败\n */\n stateHandle: (state: number) => void;\n uri: string;\n /**\n * 逆文本标准化, 默认 true\n * 标准化文本恢复成符合自然语言表达习惯的形式。\n * 如: “一百二十三元五角” 这样的表述,经过 ITN 处理后,会变成 “123.5 元”\n */\n itn?: boolean;\n /**\n * 默认 2pass\n * 2pass 模式:该模式也叫两步解码模式,通常包含两个步骤。第一步进行快速的初步解码,利用较为简单的语言模型和声学模型快速生成一个大致的识别结果;第二步基于第一步的结果,使用更复杂、更精确的语言模型进行重新解码和优化,从而得到最终更准确的识别结果。\n * online 模式:采用流式处理方式,在语音数据输入的过程中,系统会逐块对语音进行实时识别。只要有新的语音数据块到达,就立即对其进行处理并输出部分识别结果,而无需等待整个语音输入结束。\n * offline 模式:需要等待完整的语音数据全部输入后,才开始进行识别处理。在处理过程中,系统会对整个语音数据进行全面的分析和处理,以得出最终的识别结果。\n */\n mode?: '2pass' | 'online' | 'offline';\n /** 是否是文件上传模式,当前模式暂不支持 */\n isFileMode?: boolean;\n /** 热词设置,key 是热词,value 是权重 */\n hotWords?: Record<string, number>;\n}\nexport interface RecorderConfig {\n /**\n * 输出类型:mp3,wav,wav输出文件尺寸超大不推荐使用,但mp3编码支持会导致js文件超大,如果不需支持mp3可以使js文件大幅减小\n * pcm 文件无法直接播放,转成wav文件来播放,已提供转换函数 Recorder.pcm2wav\n */\n type?: 'mp3' | 'wav' | 'pcm';\n /**\n * 比特率 wav:16或8位,MP3:8kbps 1k/s,8kbps 2k/s 录音文件很小\n */\n bitRate?: number;\n /**\n * 采样率,wav格式大小=sampleRate*时间;mp3此项对低比特率有影响,高比特率几乎无影响。\n * wav任意值,mp3取值范围:48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000\n * 采样率参考https://www.cnblogs.com/devin87/p/mp3-recorder.html\n */\n sampleRate?: number;\n /**\n * 有默认值,可以不传 \\n\n * fn(buffers,powerLevel,bufferDuration,bufferSampleRate,newBufferIdx,asyncEnd)\n * buffers=[[Int16,...],...]:缓冲的PCM数据,为从开始录音到现在的所有pcm片段;\n * powerLevel:当前缓冲的音量级别0-100,\n * bufferDuration:已缓冲时长,\n * bufferSampleRate:缓冲使用的采样率(当type支持边录边转码(Worker)时,此采样率和设置的采样率相同,否则不一定相同);\n * newBufferIdx:本次回调新增的buffer起始索引;\n * asyncEnd:fn() 如果onProcess是异步的(返回值为true时),处理完成时需要调用此回调,如果不是异步的请忽略此参数,此方法回调时必须是真异步(不能真异步时需用setTimeout包裹)。\n * onProcess返回值:如果返回true代表开启异步模式,在某些大量运算的场合异步是必须的,必须在异步处理完成时调用asyncEnd(不能真异步时需用setTimeout包裹),\n * 在onProcess执行后新增的buffer会全部替换成空数组,因此本回调开头应立即将newBufferIdx到本次回调结尾位置的buffer全部保存到另外一个数组内,\n * 处理完成后写回buffers中本次回调的结尾位置。\n */\n onProcess?: (...arg: any[]) => void;\n}\nexport interface ErrorInfo {\n type: 'webSocketError' | 'startRecord';\n msg: string;\n isUserNotAllowed?: boolean;\n}\nexport interface RecorderResult {\n open: (fn: () => void, errFn?: (errMsg: string, isUserNotAllowed?: boolean) => void) => void;\n close: (fn?: () => void) => void;\n stop: (fn?: (blob: Blob, duration?: number) => void, errFn?: (errMsg: string) => void) => void;\n start: () => void;\n pcm2wav: (...params: any) => void;\n /** 0未录音 1录音中 2暂停 3等待ctx激活 */\n state: 0 | 1 | 2;\n SampleData: (\n array: Array<any>,\n sampleRate: number,\n targetSampleRate: number,\n ) => { data: Int16Array<ArrayBuffer> };\n}\n\nexport const getWebSocketConnectForFunASR = (\n config: WebSocketConnectMethodConfig & {\n onError: (errMsg: string) => void;\n },\n) => {\n return new WebSocketConnectMethod(config) as unknown as WebSocketConnectMethodInstance;\n};\n\ninterface RecorderFn {\n (config: RecorderConfig): RecorderResult;\n Destroy: () => void;\n}\n\nexport class FunASRManager {\n wsInstance: WebSocketConnectMethodInstance | null = null;\n recorderInstance: RecorderResult | null = null;\n sampleBuf = new Int16Array();\n isRec = false;\n Recorder = OriginRecorder as RecorderFn;\n status: 'live' | 'stop' = 'stop';\n timer: NodeJS.Timeout | number = 0;\n propsOnError: undefined | ((errorInfo: ErrorInfo) => void);\n socketConfig: WebSocketConnectMethodConfig;\n recorderConfig: RecorderConfig = { type: 'pcm' };\n\n constructor(params: {\n socketConfig: WebSocketConnectMethodConfig;\n recorderConfig?: RecorderConfig;\n onError?: (errorInfo: ErrorInfo) => void;\n }) {\n const { socketConfig, recorderConfig = { type: 'pcm' }, onError } = params;\n this.socketConfig = socketConfig;\n if (recorderConfig) {\n this.recorderConfig = recorderConfig;\n }\n this.init();\n this.wsInstance = getWebSocketConnectForFunASR({\n ...socketConfig,\n onError: (errMsg) => {\n this.onError({\n type: 'webSocketError',\n msg: errMsg,\n });\n },\n });\n this.recorderInstance = this.Recorder({\n ...recorderConfig,\n onProcess: (...args) => {\n if (recorderConfig.onProcess) {\n return recorderConfig.onProcess(...args);\n }\n return this.recordProcess(args[0], args[1], args[2], args[3], args[4], args[5]);\n },\n }) as unknown as RecorderResult;\n this.propsOnError = onError;\n }\n\n init() {\n pcmEnhanceRecorder(this.Recorder);\n wavEnhanceRecorder(this.Recorder);\n this.status = 'live';\n }\n\n destroy() {\n this.wsInstance?.wsStop();\n this.Recorder.Destroy();\n this.status = 'stop';\n }\n\n onError(errorObj: ErrorInfo) {\n console.error('FunASRManager error:', errorObj);\n this.propsOnError?.(errorObj);\n }\n\n public startRecord() {\n if (this.status === 'stop') {\n return;\n }\n if (this.wsInstance?.getSocket()?.readyState !== WebSocket.OPEN) {\n this.wsInstance?.wsStart();\n }\n this.recorderInstance?.open(\n () => {\n this.recorderInstance?.start();\n this.isRec = true;\n },\n (errMsg, isUserNotAllowed) => {\n this.onError({\n type: 'startRecord',\n msg: errMsg,\n isUserNotAllowed,\n });\n },\n );\n }\n public stopRecord() {\n if (this.status === 'stop' || this.recorderInstance?.state === 0) {\n return;\n }\n const that = this;\n if (this.timer) {\n clearTimeout(this.timer);\n }\n const stopFn = () => {\n this.recorderInstance?.stop(() => {\n const chunk_size = [5, 10, 5];\n const request = {\n chunk_size: chunk_size,\n wav_name: 'h5',\n is_speaking: false,\n chunk_interval: 10,\n mode: that.socketConfig.mode,\n };\n if (that.sampleBuf.length > 0) {\n that.wsInstance?.wsSend(that.sampleBuf);\n that.sampleBuf = new Int16Array();\n }\n that.wsInstance?.wsSend(JSON.stringify(request));\n this.isRec = false;\n });\n };\n // 延迟 1s 等待录音结束\n this.timer = setTimeout(() => {\n stopFn();\n }, 1000);\n }\n\n private recordProcess(\n buffer: string | any[],\n _powerLevel: any,\n _bufferDuration: any,\n bufferSampleRate: number,\n _newBufferIdx: any,\n _asyncEnd: any,\n ) {\n if (this.status === 'stop') {\n return;\n }\n if (this.isRec === true) {\n const data_48k = buffer[buffer.length - 1];\n\n const array_48k = new Array(data_48k);\n const data_16k =\n (this.Recorder as any)?.SampleData(array_48k, bufferSampleRate, 16000).data || [];\n\n this.sampleBuf = Int16Array.from([...this.sampleBuf, ...data_16k]);\n const chunk_size = 960; // for asr chunk_size [5, 10, 5]\n while (this.sampleBuf.length >= chunk_size) {\n const sendBuf = this.sampleBuf.slice(0, chunk_size);\n this.sampleBuf = this.sampleBuf.slice(chunk_size, this.sampleBuf.length);\n this.wsInstance?.wsSend(sendBuf);\n }\n }\n }\n}\n"],"names":["getWebSocketConnectForFunASR","config","WebSocketConnectMethod","FunASRManager","params","__publicField","OriginRecorder","socketConfig","recorderConfig","onError","errMsg","args","pcmEnhanceRecorder","wavEnhanceRecorder","_a","errorObj","_b","_c","_d","isUserNotAllowed","that","stopFn","request","buffer","_powerLevel","_bufferDuration","bufferSampleRate","_newBufferIdx","_asyncEnd","data_48k","array_48k","data_16k","chunk_size","sendBuf"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"funASRManager.es.js","sources":["../../../src/utils/funASR/funASRManager.ts"],"sourcesContent":["import { pcmEnhanceRecorder } from './pcm';\nimport { Recorder as OriginRecorder } from './recorder';\nimport { wavEnhanceRecorder } from './wav';\nimport { WebSocketConnectMethod } from './wsConnecter';\n\nexport interface WebSocketConnectMethodInstance {\n wsSend: (msg: string | Int16Array<ArrayBuffer>) => void;\n wsStop: () => void;\n /** 1 is ok, 0 is error */\n wsStart: () => 0 | 1;\n getSocket: () => WebSocket | undefined;\n}\n\nexport interface JsonMsg {\n data: string;\n}\nexport interface WebSocketConnectMethodConfig {\n msgHandle: (jsonMsg: JsonMsg) => void;\n /**\n * 0: 成功\n * 1: 关闭\n * 2: 连接失败\n */\n stateHandle: (state: number) => void;\n uri: string;\n /**\n * 逆文本标准化, 默认 true\n * 标准化文本恢复成符合自然语言表达习惯的形式。\n * 如: “一百二十三元五角” 这样的表述,经过 ITN 处理后,会变成 “123.5 元”\n */\n itn?: boolean;\n /**\n * 默认 2pass\n * 2pass 模式:该模式也叫两步解码模式,通常包含两个步骤。第一步进行快速的初步解码,利用较为简单的语言模型和声学模型快速生成一个大致的识别结果;第二步基于第一步的结果,使用更复杂、更精确的语言模型进行重新解码和优化,从而得到最终更准确的识别结果。\n * online 模式:采用流式处理方式,在语音数据输入的过程中,系统会逐块对语音进行实时识别。只要有新的语音数据块到达,就立即对其进行处理并输出部分识别结果,而无需等待整个语音输入结束。\n * offline 模式:需要等待完整的语音数据全部输入后,才开始进行识别处理。在处理过程中,系统会对整个语音数据进行全面的分析和处理,以得出最终的识别结果。\n */\n mode?: '2pass' | 'online' | 'offline';\n /** 是否是文件上传模式,当前模式暂不支持 */\n isFileMode?: boolean;\n /** 热词设置,key 是热词,value 是权重 */\n hotWords?: Record<string, number>;\n}\nexport interface RecorderConfig {\n /**\n * 输出类型:mp3,wav,wav输出文件尺寸超大不推荐使用,但mp3编码支持会导致js文件超大,如果不需支持mp3可以使js文件大幅减小\n * pcm 文件无法直接播放,转成wav文件来播放,已提供转换函数 Recorder.pcm2wav\n */\n type?: 'mp3' | 'wav' | 'pcm';\n /**\n * 比特率 wav:16或8位,MP3:8kbps 1k/s,8kbps 2k/s 录音文件很小\n */\n bitRate?: number;\n /**\n * 采样率,wav格式大小=sampleRate*时间;mp3此项对低比特率有影响,高比特率几乎无影响。\n * wav任意值,mp3取值范围:48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000\n * 采样率参考https://www.cnblogs.com/devin87/p/mp3-recorder.html\n */\n sampleRate?: number;\n /**\n * 有默认值,可以不传 \\n\n * fn(buffers,powerLevel,bufferDuration,bufferSampleRate,newBufferIdx,asyncEnd)\n * buffers=[[Int16,...],...]:缓冲的PCM数据,为从开始录音到现在的所有pcm片段;\n * powerLevel:当前缓冲的音量级别0-100,\n * bufferDuration:已缓冲时长,\n * bufferSampleRate:缓冲使用的采样率(当type支持边录边转码(Worker)时,此采样率和设置的采样率相同,否则不一定相同);\n * newBufferIdx:本次回调新增的buffer起始索引;\n * asyncEnd:fn() 如果onProcess是异步的(返回值为true时),处理完成时需要调用此回调,如果不是异步的请忽略此参数,此方法回调时必须是真异步(不能真异步时需用setTimeout包裹)。\n * onProcess返回值:如果返回true代表开启异步模式,在某些大量运算的场合异步是必须的,必须在异步处理完成时调用asyncEnd(不能真异步时需用setTimeout包裹),\n * 在onProcess执行后新增的buffer会全部替换成空数组,因此本回调开头应立即将newBufferIdx到本次回调结尾位置的buffer全部保存到另外一个数组内,\n * 处理完成后写回buffers中本次回调的结尾位置。\n */\n onProcess?: (...arg: any[]) => void;\n}\nexport interface ErrorInfo {\n type: 'webSocketError' | 'startRecord';\n msg: string;\n isUserNotAllowed?: boolean;\n}\nexport interface RecorderResult {\n open: (fn: () => void, errFn?: (errMsg: string, isUserNotAllowed?: boolean) => void) => void;\n close: (fn?: () => void) => void;\n stop: (fn?: (blob: Blob, duration?: number) => void, errFn?: (errMsg: string) => void) => void;\n start: () => void;\n pcm2wav: (...params: any) => void;\n /** 0未录音 1录音中 2暂停 3等待ctx激活 */\n state: 0 | 1 | 2;\n SampleData: (\n array: Array<any>,\n sampleRate: number,\n targetSampleRate: number,\n ) => { data: Int16Array<ArrayBuffer> };\n}\n\nexport const getWebSocketConnectForFunASR = (\n config: WebSocketConnectMethodConfig & {\n onError: (errMsg: string) => void;\n },\n) => {\n return new WebSocketConnectMethod(config) as unknown as WebSocketConnectMethodInstance;\n};\n\ninterface RecorderFn {\n (config: RecorderConfig): RecorderResult;\n Destroy: () => void;\n}\n\nexport class FunASRManager {\n wsInstance: WebSocketConnectMethodInstance | null = null;\n recorderInstance: RecorderResult | null = null;\n sampleBuf = new Int16Array();\n isRec = false;\n Recorder = OriginRecorder as RecorderFn;\n status: 'live' | 'stop' = 'stop';\n timer: NodeJS.Timeout | number = 0;\n propsOnError: undefined | ((errorInfo: ErrorInfo) => void);\n socketConfig: WebSocketConnectMethodConfig;\n recorderConfig: RecorderConfig = { type: 'pcm' };\n\n constructor(params: {\n socketConfig: WebSocketConnectMethodConfig;\n recorderConfig?: RecorderConfig;\n onError?: (errorInfo: ErrorInfo) => void;\n }) {\n const { socketConfig, recorderConfig = { type: 'pcm' }, onError } = params;\n this.socketConfig = socketConfig;\n if (recorderConfig) {\n this.recorderConfig = recorderConfig;\n }\n this.init();\n this.wsInstance = getWebSocketConnectForFunASR({\n ...socketConfig,\n onError: (errMsg) => {\n this.onError({\n type: 'webSocketError',\n msg: errMsg,\n });\n },\n });\n this.recorderInstance = this.Recorder({\n ...recorderConfig,\n onProcess: (...args) => {\n if (recorderConfig.onProcess) {\n return recorderConfig.onProcess(...args);\n }\n return this.recordProcess(args[0], args[1], args[2], args[3], args[4], args[5]);\n },\n }) as unknown as RecorderResult;\n this.propsOnError = onError;\n }\n\n init() {\n pcmEnhanceRecorder(this.Recorder);\n wavEnhanceRecorder(this.Recorder);\n this.status = 'live';\n }\n\n destroy() {\n this.wsInstance?.wsStop();\n this.Recorder.Destroy();\n this.status = 'stop';\n }\n\n onError(errorObj: ErrorInfo) {\n console.error('FunASRManager error:', errorObj);\n this.propsOnError?.(errorObj);\n }\n\n public startRecord() {\n if (this.status === 'stop') {\n return;\n }\n if (this.wsInstance?.getSocket()?.readyState !== WebSocket.OPEN) {\n this.wsInstance?.wsStart();\n }\n this.recorderInstance?.open(\n () => {\n this.recorderInstance?.start();\n this.isRec = true;\n },\n (errMsg, isUserNotAllowed) => {\n this.onError({\n type: 'startRecord',\n msg: errMsg,\n isUserNotAllowed,\n });\n },\n );\n }\n public stopRecord() {\n if (this.status === 'stop' || this.recorderInstance?.state === 0) {\n return;\n }\n const that = this;\n if (this.timer) {\n clearTimeout(this.timer);\n }\n const stopFn = () => {\n this.recorderInstance?.stop(() => {\n const chunk_size = [5, 10, 5];\n const request = {\n chunk_size: chunk_size,\n wav_name: 'h5',\n is_speaking: false,\n chunk_interval: 10,\n mode: that.socketConfig.mode,\n };\n if (that.sampleBuf.length > 0) {\n that.wsInstance?.wsSend(that.sampleBuf);\n that.sampleBuf = new Int16Array();\n }\n that.wsInstance?.wsSend(JSON.stringify(request));\n this.isRec = false;\n });\n };\n // 延迟 1s 等待录音结束\n this.timer = setTimeout(() => {\n stopFn();\n }, 1000);\n }\n\n private recordProcess(\n buffer: string | any[],\n _powerLevel: any,\n _bufferDuration: any,\n bufferSampleRate: number,\n _newBufferIdx: any,\n _asyncEnd: any,\n ) {\n if (this.status === 'stop') {\n return;\n }\n if (this.isRec === true) {\n const data_48k = buffer[buffer.length - 1];\n\n const array_48k = new Array(data_48k);\n const data_16k =\n (this.Recorder as any)?.SampleData(array_48k, bufferSampleRate, 16000).data || [];\n\n this.sampleBuf = Int16Array.from([...this.sampleBuf, ...data_16k]);\n const chunk_size = 960; // for asr chunk_size [5, 10, 5]\n while (this.sampleBuf.length >= chunk_size) {\n const sendBuf = this.sampleBuf.slice(0, chunk_size);\n this.sampleBuf = this.sampleBuf.slice(chunk_size, this.sampleBuf.length);\n this.wsInstance?.wsSend(sendBuf);\n }\n }\n }\n}\n"],"names":["OriginRecorder","_a"],"mappings":"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"}
|
|
@@ -1,46 +1,61 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
stable:
|
|
1
|
+
function pcmEnhanceRecorder(Recorder) {
|
|
2
|
+
Recorder.prototype.enc_pcm = {
|
|
3
|
+
stable: true,
|
|
4
4
|
testmsg: "pcm为未封装的原始音频数据,pcm数据文件无法直接播放;支持位数8位、16位(填在比特率里面),采样率取值无限制"
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
};
|
|
6
|
+
Recorder.prototype.pcm = function(res, True, False) {
|
|
7
|
+
var This = this, set = This.set, size = res.length, bitRate = set.bitRate == 8 ? 8 : 16;
|
|
8
|
+
var buffer = new ArrayBuffer(size * (bitRate / 8));
|
|
9
|
+
var data = new DataView(buffer);
|
|
10
|
+
var offset = 0;
|
|
11
|
+
if (bitRate == 8) {
|
|
12
|
+
for (var i = 0; i < size; i++, offset++) {
|
|
13
|
+
var val = (res[i] >> 8) + 128;
|
|
14
|
+
data.setInt8(offset, val, true);
|
|
15
|
+
}
|
|
16
|
+
} else {
|
|
17
|
+
for (var i = 0; i < size; i++, offset += 2) {
|
|
18
|
+
data.setInt16(offset, res[i], true);
|
|
11
19
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
}
|
|
21
|
+
True(new Blob([data.buffer], { type: "audio/pcm" }));
|
|
22
|
+
};
|
|
23
|
+
Recorder.pcm2wav = function(data, True, False) {
|
|
24
|
+
if (data.slice && data.type != null) {
|
|
25
|
+
data = { blob: data };
|
|
26
|
+
}
|
|
27
|
+
var sampleRate = data.sampleRate || 16e3, bitRate = data.bitRate || 16;
|
|
28
|
+
if (!data.sampleRate || !data.bitRate) {
|
|
29
|
+
console.warn("pcm2wav必须提供sampleRate和bitRate");
|
|
30
|
+
}
|
|
31
|
+
if (!Recorder.prototype.wav) {
|
|
32
|
+
False("pcm2wav必须先加载wav编码器wav.js");
|
|
21
33
|
return;
|
|
22
34
|
}
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
if (
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
for (var
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
var reader = new FileReader();
|
|
36
|
+
reader.onloadend = function() {
|
|
37
|
+
var pcm;
|
|
38
|
+
if (bitRate == 8) {
|
|
39
|
+
var u8arr = new Uint8Array(reader.result);
|
|
40
|
+
pcm = new Int16Array(u8arr.length);
|
|
41
|
+
for (var j = 0; j < u8arr.length; j++) {
|
|
42
|
+
pcm[j] = u8arr[j] - 128 << 8;
|
|
43
|
+
}
|
|
44
|
+
} else {
|
|
45
|
+
pcm = new Int16Array(reader.result);
|
|
46
|
+
}
|
|
47
|
+
Recorder({
|
|
34
48
|
type: "wav",
|
|
35
|
-
sampleRate
|
|
36
|
-
bitRate
|
|
37
|
-
}).mock(
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
}
|
|
49
|
+
sampleRate,
|
|
50
|
+
bitRate
|
|
51
|
+
}).mock(pcm, sampleRate).stop(function(wavBlob, duration) {
|
|
52
|
+
True(wavBlob, duration);
|
|
53
|
+
}, False);
|
|
54
|
+
};
|
|
55
|
+
reader.readAsArrayBuffer(data.blob);
|
|
41
56
|
};
|
|
42
57
|
}
|
|
43
58
|
export {
|
|
44
|
-
|
|
59
|
+
pcmEnhanceRecorder
|
|
45
60
|
};
|
|
46
61
|
//# sourceMappingURL=pcm.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pcm.es.js","sources":["../../../src/utils/funASR/pcm.js"],"sourcesContent":["/*\npcm编码器+编码引擎\nhttps://github.com/xiangyuecn/Recorder\n\n编码原理:本编码器输出的pcm格式数据其实就是Recorder中的buffers原始数据(经过了重新采样),16位时为LE小端模式(Little Endian),并未经过任何编码处理\n\n编码的代码和wav.js区别不大,pcm加上一个44字节wav头即成wav文件;所以要播放pcm就很简单了,直接转成wav文件来播放,已提供转换函数 Recorder.pcm2wav\n*/\nexport function pcmEnhanceRecorder(Recorder) {\n 'use strict';\n\n Recorder.prototype.enc_pcm = {\n stable: true,\n testmsg:\n 'pcm为未封装的原始音频数据,pcm数据文件无法直接播放;支持位数8位、16位(填在比特率里面),采样率取值无限制',\n };\n Recorder.prototype.pcm = function (res, True, False) {\n var This = this,\n set = This.set,\n size = res.length,\n bitRate = set.bitRate == 8 ? 8 : 16;\n\n var buffer = new ArrayBuffer(size * (bitRate / 8));\n var data = new DataView(buffer);\n var offset = 0;\n\n // 写入采样数据\n if (bitRate == 8) {\n for (var i = 0; i < size; i++, offset++) {\n //16转8据说是雷霄骅的 https://blog.csdn.net/sevennight1989/article/details/85376149 细节比blqw的按比例的算法清晰点,虽然都有明显杂音\n var val = (res[i] >> 8) + 128;\n data.setInt8(offset, val, true);\n }\n } else {\n for (var i = 0; i < size; i++, offset += 2) {\n data.setInt16(offset, res[i], true);\n }\n }\n\n True(new Blob([data.buffer], { type: 'audio/pcm' }));\n };\n\n /**pcm直接转码成wav,可以直接用来播放;需同时引入wav.js\n\tdata: {\n\t\t\tsampleRate:16000 pcm的采样率\n\t\t\tbitRate:16 pcm的位数 取值:8 或 16\n\t\t\tblob:blob对象\n\t\t}\n\t\tdata如果直接提供的blob将默认使用16位16khz的配置,仅用于测试\n\tTrue(wavBlob,duration)\n\tFalse(msg)\n\t**/\n Recorder.pcm2wav = function (data, True, False) {\n if (data.slice && data.type != null) {\n //Blob 测试用\n data = { blob: data };\n }\n var sampleRate = data.sampleRate || 16000,\n bitRate = data.bitRate || 16;\n if (!data.sampleRate || !data.bitRate) {\n console.warn('pcm2wav必须提供sampleRate和bitRate');\n }\n if (!Recorder.prototype.wav) {\n False('pcm2wav必须先加载wav编码器wav.js');\n return;\n }\n\n var reader = new FileReader();\n reader.onloadend = function () {\n var pcm;\n if (bitRate == 8) {\n //8位转成16位\n var u8arr = new Uint8Array(reader.result);\n pcm = new Int16Array(u8arr.length);\n for (var j = 0; j < u8arr.length; j++) {\n pcm[j] = (u8arr[j] - 128) << 8;\n }\n } else {\n pcm = new Int16Array(reader.result);\n }\n\n Recorder({\n type: 'wav',\n sampleRate: sampleRate,\n bitRate: bitRate,\n })\n .mock(pcm, sampleRate)\n .stop(function (wavBlob, duration) {\n True(wavBlob, duration);\n }, False);\n };\n reader.readAsArrayBuffer(data.blob);\n };\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"pcm.es.js","sources":["../../../src/utils/funASR/pcm.js"],"sourcesContent":["/*\npcm编码器+编码引擎\nhttps://github.com/xiangyuecn/Recorder\n\n编码原理:本编码器输出的pcm格式数据其实就是Recorder中的buffers原始数据(经过了重新采样),16位时为LE小端模式(Little Endian),并未经过任何编码处理\n\n编码的代码和wav.js区别不大,pcm加上一个44字节wav头即成wav文件;所以要播放pcm就很简单了,直接转成wav文件来播放,已提供转换函数 Recorder.pcm2wav\n*/\nexport function pcmEnhanceRecorder(Recorder) {\n 'use strict';\n\n Recorder.prototype.enc_pcm = {\n stable: true,\n testmsg:\n 'pcm为未封装的原始音频数据,pcm数据文件无法直接播放;支持位数8位、16位(填在比特率里面),采样率取值无限制',\n };\n Recorder.prototype.pcm = function (res, True, False) {\n var This = this,\n set = This.set,\n size = res.length,\n bitRate = set.bitRate == 8 ? 8 : 16;\n\n var buffer = new ArrayBuffer(size * (bitRate / 8));\n var data = new DataView(buffer);\n var offset = 0;\n\n // 写入采样数据\n if (bitRate == 8) {\n for (var i = 0; i < size; i++, offset++) {\n //16转8据说是雷霄骅的 https://blog.csdn.net/sevennight1989/article/details/85376149 细节比blqw的按比例的算法清晰点,虽然都有明显杂音\n var val = (res[i] >> 8) + 128;\n data.setInt8(offset, val, true);\n }\n } else {\n for (var i = 0; i < size; i++, offset += 2) {\n data.setInt16(offset, res[i], true);\n }\n }\n\n True(new Blob([data.buffer], { type: 'audio/pcm' }));\n };\n\n /**pcm直接转码成wav,可以直接用来播放;需同时引入wav.js\n\tdata: {\n\t\t\tsampleRate:16000 pcm的采样率\n\t\t\tbitRate:16 pcm的位数 取值:8 或 16\n\t\t\tblob:blob对象\n\t\t}\n\t\tdata如果直接提供的blob将默认使用16位16khz的配置,仅用于测试\n\tTrue(wavBlob,duration)\n\tFalse(msg)\n\t**/\n Recorder.pcm2wav = function (data, True, False) {\n if (data.slice && data.type != null) {\n //Blob 测试用\n data = { blob: data };\n }\n var sampleRate = data.sampleRate || 16000,\n bitRate = data.bitRate || 16;\n if (!data.sampleRate || !data.bitRate) {\n console.warn('pcm2wav必须提供sampleRate和bitRate');\n }\n if (!Recorder.prototype.wav) {\n False('pcm2wav必须先加载wav编码器wav.js');\n return;\n }\n\n var reader = new FileReader();\n reader.onloadend = function () {\n var pcm;\n if (bitRate == 8) {\n //8位转成16位\n var u8arr = new Uint8Array(reader.result);\n pcm = new Int16Array(u8arr.length);\n for (var j = 0; j < u8arr.length; j++) {\n pcm[j] = (u8arr[j] - 128) << 8;\n }\n } else {\n pcm = new Int16Array(reader.result);\n }\n\n Recorder({\n type: 'wav',\n sampleRate: sampleRate,\n bitRate: bitRate,\n })\n .mock(pcm, sampleRate)\n .stop(function (wavBlob, duration) {\n True(wavBlob, duration);\n }, False);\n };\n reader.readAsArrayBuffer(data.blob);\n };\n}\n"],"names":[],"mappings":"AAQO,SAAS,mBAAmB,UAAU;AAG3C,WAAS,UAAU,UAAU;AAAA,IAC3B,QAAQ;AAAA,IACR,SACE;AAAA,EACH;AACD,WAAS,UAAU,MAAM,SAAU,KAAK,MAAM,OAAO;AACnD,QAAI,OAAO,MACT,MAAM,KAAK,KACX,OAAO,IAAI,QACX,UAAU,IAAI,WAAW,IAAI,IAAI;AAEnC,QAAI,SAAS,IAAI,YAAY,QAAQ,UAAU,EAAE;AACjD,QAAI,OAAO,IAAI,SAAS,MAAM;AAC9B,QAAI,SAAS;AAGb,QAAI,WAAW,GAAG;AAChB,eAAS,IAAI,GAAG,IAAI,MAAM,KAAK,UAAU;AAEvC,YAAI,OAAO,IAAI,CAAC,KAAK,KAAK;AAC1B,aAAK,QAAQ,QAAQ,KAAK,IAAI;AAAA,MACtC;AAAA,IACA,OAAW;AACL,eAAS,IAAI,GAAG,IAAI,MAAM,KAAK,UAAU,GAAG;AAC1C,aAAK,SAAS,QAAQ,IAAI,CAAC,GAAG,IAAI;AAAA,MAC1C;AAAA,IACA;AAEI,SAAK,IAAI,KAAK,CAAC,KAAK,MAAM,GAAG,EAAE,MAAM,YAAW,CAAE,CAAC;AAAA,EACpD;AAYD,WAAS,UAAU,SAAU,MAAM,MAAM,OAAO;AAC9C,QAAI,KAAK,SAAS,KAAK,QAAQ,MAAM;AAEnC,aAAO,EAAE,MAAM,KAAM;AAAA,IAC3B;AACI,QAAI,aAAa,KAAK,cAAc,MAClC,UAAU,KAAK,WAAW;AAC5B,QAAI,CAAC,KAAK,cAAc,CAAC,KAAK,SAAS;AACrC,cAAQ,KAAK,+BAA+B;AAAA,IAClD;AACI,QAAI,CAAC,SAAS,UAAU,KAAK;AAC3B,YAAM,0BAA0B;AAChC;AAAA,IACN;AAEI,QAAI,SAAS,IAAI,WAAY;AAC7B,WAAO,YAAY,WAAY;AAC7B,UAAI;AACJ,UAAI,WAAW,GAAG;AAEhB,YAAI,QAAQ,IAAI,WAAW,OAAO,MAAM;AACxC,cAAM,IAAI,WAAW,MAAM,MAAM;AACjC,iBAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACrC,cAAI,CAAC,IAAK,MAAM,CAAC,IAAI,OAAQ;AAAA,QACvC;AAAA,MACA,OAAa;AACL,cAAM,IAAI,WAAW,OAAO,MAAM;AAAA,MAC1C;AAEM,eAAS;AAAA,QACP,MAAM;AAAA,QACN;AAAA,QACA;AAAA,MACD,CAAA,EACE,KAAK,KAAK,UAAU,EACpB,KAAK,SAAU,SAAS,UAAU;AACjC,aAAK,SAAS,QAAQ;AAAA,MACvB,GAAE,KAAK;AAAA,IACX;AACD,WAAO,kBAAkB,KAAK,IAAI;AAAA,EACnC;AACH;"}
|