ece-docs-components 1.0.39 → 1.0.41
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/cjs/_virtual/Parser.js +6 -0
- package/dist/cjs/_virtual/Parser.js.map +1 -0
- package/dist/cjs/_virtual/Tokenizer.js +6 -0
- package/dist/cjs/_virtual/Tokenizer.js.map +1 -0
- package/dist/cjs/_virtual/attributes-to-props.js +6 -0
- package/dist/cjs/_virtual/attributes-to-props.js.map +1 -0
- package/dist/cjs/_virtual/decode-codepoint.js +6 -0
- package/dist/cjs/_virtual/decode-codepoint.js.map +1 -0
- package/dist/cjs/_virtual/decode-data-html.js +6 -0
- package/dist/cjs/_virtual/decode-data-html.js.map +1 -0
- package/dist/cjs/_virtual/decode-data-html2.js +6 -0
- package/dist/cjs/_virtual/decode-data-html2.js.map +1 -0
- package/dist/cjs/_virtual/decode-data-xml.js +6 -0
- package/dist/cjs/_virtual/decode-data-xml.js.map +1 -0
- package/dist/cjs/_virtual/decode-data-xml2.js +6 -0
- package/dist/cjs/_virtual/decode-data-xml2.js.map +1 -0
- package/dist/cjs/_virtual/decode.js +6 -0
- package/dist/cjs/_virtual/decode.js.map +1 -0
- package/dist/cjs/_virtual/decode2.js +6 -0
- package/dist/cjs/_virtual/decode2.js.map +1 -0
- package/dist/cjs/_virtual/decode_codepoint.js +6 -0
- package/dist/cjs/_virtual/decode_codepoint.js.map +1 -0
- package/dist/cjs/_virtual/dom-to-react.js +6 -0
- package/dist/cjs/_virtual/dom-to-react.js.map +1 -0
- package/dist/cjs/_virtual/encode-html.js +6 -0
- package/dist/cjs/_virtual/encode-html.js.map +1 -0
- package/dist/cjs/_virtual/encode.js +6 -0
- package/dist/cjs/_virtual/encode.js.map +1 -0
- package/dist/cjs/_virtual/escape.js +6 -0
- package/dist/cjs/_virtual/escape.js.map +1 -0
- package/dist/cjs/_virtual/feeds.js +6 -0
- package/dist/cjs/_virtual/feeds.js.map +1 -0
- package/dist/cjs/_virtual/foreignNames.js +6 -0
- package/dist/cjs/_virtual/foreignNames.js.map +1 -0
- package/dist/cjs/_virtual/helpers.js +6 -0
- package/dist/cjs/_virtual/helpers.js.map +1 -0
- package/dist/cjs/_virtual/html-to-dom.js +6 -0
- package/dist/cjs/_virtual/html-to-dom.js.map +1 -0
- package/dist/cjs/_virtual/index.js +4 -4
- package/dist/cjs/_virtual/index10.js +6 -0
- package/dist/cjs/_virtual/index10.js.map +1 -0
- package/dist/cjs/_virtual/index11.js +6 -0
- package/dist/cjs/_virtual/index11.js.map +1 -0
- package/dist/cjs/_virtual/index2.js +2 -4
- package/dist/cjs/_virtual/index2.js.map +1 -1
- package/dist/cjs/_virtual/index3.js +2 -2
- package/dist/cjs/_virtual/index4.js +2 -2
- package/dist/cjs/_virtual/index5.js +2 -2
- package/dist/cjs/_virtual/index6.js +2 -2
- package/dist/cjs/_virtual/index7.js +6 -0
- package/dist/cjs/_virtual/index7.js.map +1 -0
- package/dist/cjs/_virtual/index8.js +6 -0
- package/dist/cjs/_virtual/index8.js.map +1 -0
- package/dist/cjs/_virtual/index9.js +6 -0
- package/dist/cjs/_virtual/index9.js.map +1 -0
- package/dist/cjs/_virtual/legacy.js +6 -0
- package/dist/cjs/_virtual/legacy.js.map +1 -0
- package/dist/cjs/_virtual/manipulation.js +6 -0
- package/dist/cjs/_virtual/manipulation.js.map +1 -0
- package/dist/cjs/_virtual/node.js +6 -0
- package/dist/cjs/_virtual/node.js.map +1 -0
- package/dist/cjs/_virtual/possibleStandardNamesOptimized.js +6 -0
- package/dist/cjs/_virtual/possibleStandardNamesOptimized.js.map +1 -0
- package/dist/cjs/_virtual/querying.js +6 -0
- package/dist/cjs/_virtual/querying.js.map +1 -0
- package/dist/cjs/_virtual/stringify.js +6 -0
- package/dist/cjs/_virtual/stringify.js.map +1 -0
- package/dist/cjs/_virtual/traversal.js +6 -0
- package/dist/cjs/_virtual/traversal.js.map +1 -0
- package/dist/cjs/_virtual/types.js +6 -0
- package/dist/cjs/_virtual/types.js.map +1 -0
- package/dist/cjs/_virtual/utilities.js +6 -0
- package/dist/cjs/_virtual/utilities.js.map +1 -0
- package/dist/cjs/_virtual/utilities2.js +6 -0
- package/dist/cjs/_virtual/utilities2.js.map +1 -0
- package/dist/cjs/_virtual/utilities3.js +6 -0
- package/dist/cjs/_virtual/utilities3.js.map +1 -0
- package/dist/cjs/components/Alert.js +2 -0
- package/dist/cjs/components/Alert.js.map +1 -1
- package/dist/cjs/components/Breadcrumb.js +4 -0
- package/dist/cjs/components/Breadcrumb.js.map +1 -1
- package/dist/cjs/components/Modal.js +7 -4
- package/dist/cjs/components/Modal.js.map +1 -1
- package/dist/cjs/components/Progress.js +9 -5
- package/dist/cjs/components/Progress.js.map +1 -1
- package/dist/cjs/components/Sidebar.js +1 -1
- package/dist/cjs/components/Sidebar.js.map +1 -1
- package/dist/cjs/components/StatusBar.js +7 -1
- package/dist/cjs/components/StatusBar.js.map +1 -1
- package/dist/cjs/node_modules/dom-serializer/lib/foreignNames.js +116 -0
- package/dist/cjs/node_modules/dom-serializer/lib/foreignNames.js.map +1 -0
- package/dist/cjs/node_modules/dom-serializer/lib/index.js +245 -0
- package/dist/cjs/node_modules/dom-serializer/lib/index.js.map +1 -0
- package/dist/cjs/node_modules/domelementtype/lib/index.js +70 -0
- package/dist/cjs/node_modules/domelementtype/lib/index.js.map +1 -0
- package/dist/cjs/node_modules/domhandler/lib/index.js +182 -0
- package/dist/cjs/node_modules/domhandler/lib/index.js.map +1 -0
- package/dist/cjs/node_modules/domhandler/lib/node.js +488 -0
- package/dist/cjs/node_modules/domhandler/lib/node.js.map +1 -0
- package/dist/cjs/node_modules/domutils/lib/feeds.js +205 -0
- package/dist/cjs/node_modules/domutils/lib/feeds.js.map +1 -0
- package/dist/cjs/node_modules/domutils/lib/helpers.js +156 -0
- package/dist/cjs/node_modules/domutils/lib/helpers.js.map +1 -0
- package/dist/cjs/node_modules/domutils/lib/index.js +56 -0
- package/dist/cjs/node_modules/domutils/lib/index.js.map +1 -0
- package/dist/cjs/node_modules/domutils/lib/legacy.js +183 -0
- package/dist/cjs/node_modules/domutils/lib/legacy.js.map +1 -0
- package/dist/cjs/node_modules/domutils/lib/manipulation.js +155 -0
- package/dist/cjs/node_modules/domutils/lib/manipulation.js.map +1 -0
- package/dist/cjs/node_modules/domutils/lib/querying.js +169 -0
- package/dist/cjs/node_modules/domutils/lib/querying.js.map +1 -0
- package/dist/cjs/node_modules/domutils/lib/stringify.js +107 -0
- package/dist/cjs/node_modules/domutils/lib/stringify.js.map +1 -0
- package/dist/cjs/node_modules/domutils/lib/traversal.js +139 -0
- package/dist/cjs/node_modules/domutils/lib/traversal.js.map +1 -0
- package/dist/cjs/node_modules/entities/lib/decode.js +554 -0
- package/dist/cjs/node_modules/entities/lib/decode.js.map +1 -0
- package/dist/cjs/node_modules/entities/lib/decode_codepoint.js +91 -0
- package/dist/cjs/node_modules/entities/lib/decode_codepoint.js.map +1 -0
- package/dist/cjs/node_modules/entities/lib/encode.js +92 -0
- package/dist/cjs/node_modules/entities/lib/encode.js.map +1 -0
- package/dist/cjs/node_modules/entities/lib/escape.js +137 -0
- package/dist/cjs/node_modules/entities/lib/escape.js.map +1 -0
- package/dist/cjs/node_modules/entities/lib/generated/decode-data-html.js +22 -0
- package/dist/cjs/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
- package/dist/cjs/node_modules/entities/lib/generated/decode-data-xml.js +22 -0
- package/dist/cjs/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
- package/dist/cjs/node_modules/entities/lib/generated/encode-html.js +25 -0
- package/dist/cjs/node_modules/entities/lib/generated/encode-html.js.map +1 -0
- package/dist/cjs/node_modules/entities/lib/index.js +144 -0
- package/dist/cjs/node_modules/entities/lib/index.js.map +1 -0
- package/dist/cjs/node_modules/html-dom-parser/lib/index.js +47 -0
- package/dist/cjs/node_modules/html-dom-parser/lib/index.js.map +1 -0
- package/dist/cjs/node_modules/html-dom-parser/lib/server/html-to-dom.js +46 -0
- package/dist/cjs/node_modules/html-dom-parser/lib/server/html-to-dom.js.map +1 -0
- package/dist/cjs/node_modules/html-dom-parser/lib/server/utilities.js +32 -0
- package/dist/cjs/node_modules/html-dom-parser/lib/server/utilities.js.map +1 -0
- package/dist/cjs/node_modules/html-dom-parser/lib/types.js +16 -0
- package/dist/cjs/node_modules/html-dom-parser/lib/types.js.map +1 -0
- package/dist/cjs/node_modules/html-react-parser/esm/index.js +10 -0
- package/dist/cjs/node_modules/html-react-parser/esm/index.js.map +1 -0
- package/dist/cjs/node_modules/html-react-parser/lib/attributes-to-props.js +89 -0
- package/dist/cjs/node_modules/html-react-parser/lib/attributes-to-props.js.map +1 -0
- package/dist/cjs/node_modules/html-react-parser/lib/dom-to-react.js +138 -0
- package/dist/cjs/node_modules/html-react-parser/lib/dom-to-react.js.map +1 -0
- package/dist/cjs/node_modules/html-react-parser/lib/index.js +55 -0
- package/dist/cjs/node_modules/html-react-parser/lib/index.js.map +1 -0
- package/dist/cjs/node_modules/html-react-parser/lib/utilities.js +121 -0
- package/dist/cjs/node_modules/html-react-parser/lib/utilities.js.map +1 -0
- package/dist/cjs/node_modules/htmlparser2/dist/commonjs/Parser.js +542 -0
- package/dist/cjs/node_modules/htmlparser2/dist/commonjs/Parser.js.map +1 -0
- package/dist/cjs/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +805 -0
- package/dist/cjs/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +1 -0
- package/dist/cjs/node_modules/htmlparser2/dist/commonjs/index.js +143 -0
- package/dist/cjs/node_modules/htmlparser2/dist/commonjs/index.js.map +1 -0
- package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +92 -0
- package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
- package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +529 -0
- package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +1 -0
- package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +23 -0
- package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
- package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +23 -0
- package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
- package/dist/cjs/node_modules/inline-style-parser/cjs/index.js +274 -0
- package/dist/cjs/node_modules/inline-style-parser/cjs/index.js.map +1 -0
- package/dist/cjs/node_modules/react-property/lib/index.js +534 -0
- package/dist/cjs/node_modules/react-property/lib/index.js.map +1 -0
- package/dist/cjs/node_modules/react-property/lib/possibleStandardNamesOptimized.js +507 -0
- package/dist/cjs/node_modules/react-property/lib/possibleStandardNamesOptimized.js.map +1 -0
- package/dist/cjs/node_modules/style-to-js/cjs/index.js +40 -0
- package/dist/cjs/node_modules/style-to-js/cjs/index.js.map +1 -0
- package/dist/cjs/node_modules/style-to-js/cjs/utilities.js +60 -0
- package/dist/cjs/node_modules/style-to-js/cjs/utilities.js.map +1 -0
- package/dist/cjs/node_modules/style-to-object/cjs/index.js +58 -0
- package/dist/cjs/node_modules/style-to-object/cjs/index.js.map +1 -0
- package/dist/esm/_virtual/Parser.js +4 -0
- package/dist/esm/_virtual/Parser.js.map +1 -0
- package/dist/esm/_virtual/Tokenizer.js +4 -0
- package/dist/esm/_virtual/Tokenizer.js.map +1 -0
- package/dist/esm/_virtual/_commonjsHelpers.js +6 -0
- package/dist/esm/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/esm/_virtual/attributes-to-props.js +4 -0
- package/dist/esm/_virtual/attributes-to-props.js.map +1 -0
- package/dist/esm/_virtual/decode-codepoint.js +4 -0
- package/dist/esm/_virtual/decode-codepoint.js.map +1 -0
- package/dist/esm/_virtual/decode-data-html.js +4 -0
- package/dist/esm/_virtual/decode-data-html.js.map +1 -0
- package/dist/esm/_virtual/decode-data-html2.js +4 -0
- package/dist/esm/_virtual/decode-data-html2.js.map +1 -0
- package/dist/esm/_virtual/decode-data-xml.js +4 -0
- package/dist/esm/_virtual/decode-data-xml.js.map +1 -0
- package/dist/esm/_virtual/decode-data-xml2.js +4 -0
- package/dist/esm/_virtual/decode-data-xml2.js.map +1 -0
- package/dist/esm/_virtual/decode.js +4 -0
- package/dist/esm/_virtual/decode.js.map +1 -0
- package/dist/esm/_virtual/decode2.js +4 -0
- package/dist/esm/_virtual/decode2.js.map +1 -0
- package/dist/esm/_virtual/decode_codepoint.js +4 -0
- package/dist/esm/_virtual/decode_codepoint.js.map +1 -0
- package/dist/esm/_virtual/dom-to-react.js +4 -0
- package/dist/esm/_virtual/dom-to-react.js.map +1 -0
- package/dist/esm/_virtual/encode-html.js +4 -0
- package/dist/esm/_virtual/encode-html.js.map +1 -0
- package/dist/esm/_virtual/encode.js +4 -0
- package/dist/esm/_virtual/encode.js.map +1 -0
- package/dist/esm/_virtual/escape.js +4 -0
- package/dist/esm/_virtual/escape.js.map +1 -0
- package/dist/esm/_virtual/feeds.js +4 -0
- package/dist/esm/_virtual/feeds.js.map +1 -0
- package/dist/esm/_virtual/foreignNames.js +4 -0
- package/dist/esm/_virtual/foreignNames.js.map +1 -0
- package/dist/esm/_virtual/helpers.js +4 -0
- package/dist/esm/_virtual/helpers.js.map +1 -0
- package/dist/esm/_virtual/html-to-dom.js +4 -0
- package/dist/esm/_virtual/html-to-dom.js.map +1 -0
- package/dist/esm/_virtual/index.js +8 -0
- package/dist/esm/_virtual/index.js.map +1 -0
- package/dist/esm/_virtual/index10.js +4 -0
- package/dist/esm/_virtual/index10.js.map +1 -0
- package/dist/esm/_virtual/index11.js +4 -0
- package/dist/esm/_virtual/index11.js.map +1 -0
- package/dist/esm/_virtual/index2.js +4 -0
- package/dist/esm/_virtual/index2.js.map +1 -0
- package/dist/esm/_virtual/index3.js +4 -0
- package/dist/esm/_virtual/index3.js.map +1 -0
- package/dist/esm/_virtual/index4.js +4 -0
- package/dist/esm/_virtual/index4.js.map +1 -0
- package/dist/esm/_virtual/index5.js +4 -0
- package/dist/esm/_virtual/index5.js.map +1 -0
- package/dist/esm/_virtual/index6.js +4 -0
- package/dist/esm/_virtual/index6.js.map +1 -0
- package/dist/esm/_virtual/index7.js +4 -0
- package/dist/esm/_virtual/index7.js.map +1 -0
- package/dist/esm/_virtual/index8.js +4 -0
- package/dist/esm/_virtual/index8.js.map +1 -0
- package/dist/esm/_virtual/index9.js +4 -0
- package/dist/esm/_virtual/index9.js.map +1 -0
- package/dist/esm/_virtual/legacy.js +4 -0
- package/dist/esm/_virtual/legacy.js.map +1 -0
- package/dist/esm/_virtual/manipulation.js +4 -0
- package/dist/esm/_virtual/manipulation.js.map +1 -0
- package/dist/esm/_virtual/node.js +4 -0
- package/dist/esm/_virtual/node.js.map +1 -0
- package/dist/esm/_virtual/possibleStandardNamesOptimized.js +4 -0
- package/dist/esm/_virtual/possibleStandardNamesOptimized.js.map +1 -0
- package/dist/esm/_virtual/querying.js +4 -0
- package/dist/esm/_virtual/querying.js.map +1 -0
- package/dist/esm/_virtual/stringify.js +4 -0
- package/dist/esm/_virtual/stringify.js.map +1 -0
- package/dist/esm/_virtual/traversal.js +4 -0
- package/dist/esm/_virtual/traversal.js.map +1 -0
- package/dist/esm/_virtual/types.js +4 -0
- package/dist/esm/_virtual/types.js.map +1 -0
- package/dist/esm/_virtual/utilities.js +4 -0
- package/dist/esm/_virtual/utilities.js.map +1 -0
- package/dist/esm/_virtual/utilities2.js +4 -0
- package/dist/esm/_virtual/utilities2.js.map +1 -0
- package/dist/esm/_virtual/utilities3.js +4 -0
- package/dist/esm/_virtual/utilities3.js.map +1 -0
- package/dist/esm/components/Alert.js +2 -0
- package/dist/esm/components/Alert.js.map +1 -1
- package/dist/esm/components/Breadcrumb.js +4 -0
- package/dist/esm/components/Breadcrumb.js.map +1 -1
- package/dist/esm/components/Modal.js +7 -4
- package/dist/esm/components/Modal.js.map +1 -1
- package/dist/esm/components/Progress.d.ts +1 -0
- package/dist/esm/components/Progress.js +9 -5
- package/dist/esm/components/Progress.js.map +1 -1
- package/dist/esm/components/Sidebar.js +1 -1
- package/dist/esm/components/Sidebar.js.map +1 -1
- package/dist/esm/components/StatusBar.js +7 -1
- package/dist/esm/components/StatusBar.js.map +1 -1
- package/dist/esm/node_modules/dom-serializer/lib/foreignNames.js +114 -0
- package/dist/esm/node_modules/dom-serializer/lib/foreignNames.js.map +1 -0
- package/dist/esm/node_modules/dom-serializer/lib/index.js +243 -0
- package/dist/esm/node_modules/dom-serializer/lib/index.js.map +1 -0
- package/dist/esm/node_modules/domelementtype/lib/index.js +68 -0
- package/dist/esm/node_modules/domelementtype/lib/index.js.map +1 -0
- package/dist/esm/node_modules/domhandler/lib/index.js +180 -0
- package/dist/esm/node_modules/domhandler/lib/index.js.map +1 -0
- package/dist/esm/node_modules/domhandler/lib/node.js +486 -0
- package/dist/esm/node_modules/domhandler/lib/node.js.map +1 -0
- package/dist/esm/node_modules/domutils/lib/feeds.js +203 -0
- package/dist/esm/node_modules/domutils/lib/feeds.js.map +1 -0
- package/dist/esm/node_modules/domutils/lib/helpers.js +154 -0
- package/dist/esm/node_modules/domutils/lib/helpers.js.map +1 -0
- package/dist/esm/node_modules/domutils/lib/index.js +54 -0
- package/dist/esm/node_modules/domutils/lib/index.js.map +1 -0
- package/dist/esm/node_modules/domutils/lib/legacy.js +181 -0
- package/dist/esm/node_modules/domutils/lib/legacy.js.map +1 -0
- package/dist/esm/node_modules/domutils/lib/manipulation.js +153 -0
- package/dist/esm/node_modules/domutils/lib/manipulation.js.map +1 -0
- package/dist/esm/node_modules/domutils/lib/querying.js +167 -0
- package/dist/esm/node_modules/domutils/lib/querying.js.map +1 -0
- package/dist/esm/node_modules/domutils/lib/stringify.js +105 -0
- package/dist/esm/node_modules/domutils/lib/stringify.js.map +1 -0
- package/dist/esm/node_modules/domutils/lib/traversal.js +137 -0
- package/dist/esm/node_modules/domutils/lib/traversal.js.map +1 -0
- package/dist/esm/node_modules/entities/lib/decode.js +552 -0
- package/dist/esm/node_modules/entities/lib/decode.js.map +1 -0
- package/dist/esm/node_modules/entities/lib/decode_codepoint.js +89 -0
- package/dist/esm/node_modules/entities/lib/decode_codepoint.js.map +1 -0
- package/dist/esm/node_modules/entities/lib/encode.js +90 -0
- package/dist/esm/node_modules/entities/lib/encode.js.map +1 -0
- package/dist/esm/node_modules/entities/lib/escape.js +135 -0
- package/dist/esm/node_modules/entities/lib/escape.js.map +1 -0
- package/dist/esm/node_modules/entities/lib/generated/decode-data-html.js +20 -0
- package/dist/esm/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
- package/dist/esm/node_modules/entities/lib/generated/decode-data-xml.js +20 -0
- package/dist/esm/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
- package/dist/esm/node_modules/entities/lib/generated/encode-html.js +23 -0
- package/dist/esm/node_modules/entities/lib/generated/encode-html.js.map +1 -0
- package/dist/esm/node_modules/entities/lib/index.js +142 -0
- package/dist/esm/node_modules/entities/lib/index.js.map +1 -0
- package/dist/esm/node_modules/html-dom-parser/lib/index.js +45 -0
- package/dist/esm/node_modules/html-dom-parser/lib/index.js.map +1 -0
- package/dist/esm/node_modules/html-dom-parser/lib/server/html-to-dom.js +44 -0
- package/dist/esm/node_modules/html-dom-parser/lib/server/html-to-dom.js.map +1 -0
- package/dist/esm/node_modules/html-dom-parser/lib/server/utilities.js +30 -0
- package/dist/esm/node_modules/html-dom-parser/lib/server/utilities.js.map +1 -0
- package/dist/esm/node_modules/html-dom-parser/lib/types.js +14 -0
- package/dist/esm/node_modules/html-dom-parser/lib/types.js.map +1 -0
- package/dist/esm/node_modules/html-react-parser/esm/index.js +6 -0
- package/dist/esm/node_modules/html-react-parser/esm/index.js.map +1 -0
- package/dist/esm/node_modules/html-react-parser/lib/attributes-to-props.js +87 -0
- package/dist/esm/node_modules/html-react-parser/lib/attributes-to-props.js.map +1 -0
- package/dist/esm/node_modules/html-react-parser/lib/dom-to-react.js +136 -0
- package/dist/esm/node_modules/html-react-parser/lib/dom-to-react.js.map +1 -0
- package/dist/esm/node_modules/html-react-parser/lib/index.js +53 -0
- package/dist/esm/node_modules/html-react-parser/lib/index.js.map +1 -0
- package/dist/esm/node_modules/html-react-parser/lib/utilities.js +119 -0
- package/dist/esm/node_modules/html-react-parser/lib/utilities.js.map +1 -0
- package/dist/esm/node_modules/htmlparser2/dist/commonjs/Parser.js +540 -0
- package/dist/esm/node_modules/htmlparser2/dist/commonjs/Parser.js.map +1 -0
- package/dist/esm/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +803 -0
- package/dist/esm/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +1 -0
- package/dist/esm/node_modules/htmlparser2/dist/commonjs/index.js +141 -0
- package/dist/esm/node_modules/htmlparser2/dist/commonjs/index.js.map +1 -0
- package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +90 -0
- package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
- package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +527 -0
- package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +1 -0
- package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +21 -0
- package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
- package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +21 -0
- package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
- package/dist/esm/node_modules/inline-style-parser/cjs/index.js +272 -0
- package/dist/esm/node_modules/inline-style-parser/cjs/index.js.map +1 -0
- package/dist/esm/node_modules/react-property/lib/index.js +532 -0
- package/dist/esm/node_modules/react-property/lib/index.js.map +1 -0
- package/dist/esm/node_modules/react-property/lib/possibleStandardNamesOptimized.js +505 -0
- package/dist/esm/node_modules/react-property/lib/possibleStandardNamesOptimized.js.map +1 -0
- package/dist/esm/node_modules/style-to-js/cjs/index.js +38 -0
- package/dist/esm/node_modules/style-to-js/cjs/index.js.map +1 -0
- package/dist/esm/node_modules/style-to-js/cjs/utilities.js +58 -0
- package/dist/esm/node_modules/style-to-js/cjs/utilities.js.map +1 -0
- package/dist/esm/node_modules/style-to-object/cjs/index.js +56 -0
- package/dist/esm/node_modules/style-to-object/cjs/index.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tokenizer.js","sources":["../../../../../../node_modules/htmlparser2/dist/commonjs/Tokenizer.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.QuoteType = void 0;\nconst decode_1 = require(\"entities/decode\");\nvar CharCodes;\n(function (CharCodes) {\n CharCodes[CharCodes[\"Tab\"] = 9] = \"Tab\";\n CharCodes[CharCodes[\"NewLine\"] = 10] = \"NewLine\";\n CharCodes[CharCodes[\"FormFeed\"] = 12] = \"FormFeed\";\n CharCodes[CharCodes[\"CarriageReturn\"] = 13] = \"CarriageReturn\";\n CharCodes[CharCodes[\"Space\"] = 32] = \"Space\";\n CharCodes[CharCodes[\"ExclamationMark\"] = 33] = \"ExclamationMark\";\n CharCodes[CharCodes[\"Number\"] = 35] = \"Number\";\n CharCodes[CharCodes[\"Amp\"] = 38] = \"Amp\";\n CharCodes[CharCodes[\"SingleQuote\"] = 39] = \"SingleQuote\";\n CharCodes[CharCodes[\"DoubleQuote\"] = 34] = \"DoubleQuote\";\n CharCodes[CharCodes[\"Dash\"] = 45] = \"Dash\";\n CharCodes[CharCodes[\"Slash\"] = 47] = \"Slash\";\n CharCodes[CharCodes[\"Zero\"] = 48] = \"Zero\";\n CharCodes[CharCodes[\"Nine\"] = 57] = \"Nine\";\n CharCodes[CharCodes[\"Semi\"] = 59] = \"Semi\";\n CharCodes[CharCodes[\"Lt\"] = 60] = \"Lt\";\n CharCodes[CharCodes[\"Eq\"] = 61] = \"Eq\";\n CharCodes[CharCodes[\"Gt\"] = 62] = \"Gt\";\n CharCodes[CharCodes[\"Questionmark\"] = 63] = \"Questionmark\";\n CharCodes[CharCodes[\"UpperA\"] = 65] = \"UpperA\";\n CharCodes[CharCodes[\"LowerA\"] = 97] = \"LowerA\";\n CharCodes[CharCodes[\"UpperF\"] = 70] = \"UpperF\";\n CharCodes[CharCodes[\"LowerF\"] = 102] = \"LowerF\";\n CharCodes[CharCodes[\"UpperZ\"] = 90] = \"UpperZ\";\n CharCodes[CharCodes[\"LowerZ\"] = 122] = \"LowerZ\";\n CharCodes[CharCodes[\"LowerX\"] = 120] = \"LowerX\";\n CharCodes[CharCodes[\"OpeningSquareBracket\"] = 91] = \"OpeningSquareBracket\";\n})(CharCodes || (CharCodes = {}));\n/** All the states the tokenizer can be in. */\nvar State;\n(function (State) {\n State[State[\"Text\"] = 1] = \"Text\";\n State[State[\"BeforeTagName\"] = 2] = \"BeforeTagName\";\n State[State[\"InTagName\"] = 3] = \"InTagName\";\n State[State[\"InSelfClosingTag\"] = 4] = \"InSelfClosingTag\";\n State[State[\"BeforeClosingTagName\"] = 5] = \"BeforeClosingTagName\";\n State[State[\"InClosingTagName\"] = 6] = \"InClosingTagName\";\n State[State[\"AfterClosingTagName\"] = 7] = \"AfterClosingTagName\";\n // Attributes\n State[State[\"BeforeAttributeName\"] = 8] = \"BeforeAttributeName\";\n State[State[\"InAttributeName\"] = 9] = \"InAttributeName\";\n State[State[\"AfterAttributeName\"] = 10] = \"AfterAttributeName\";\n State[State[\"BeforeAttributeValue\"] = 11] = \"BeforeAttributeValue\";\n State[State[\"InAttributeValueDq\"] = 12] = \"InAttributeValueDq\";\n State[State[\"InAttributeValueSq\"] = 13] = \"InAttributeValueSq\";\n State[State[\"InAttributeValueNq\"] = 14] = \"InAttributeValueNq\";\n // Declarations\n State[State[\"BeforeDeclaration\"] = 15] = \"BeforeDeclaration\";\n State[State[\"InDeclaration\"] = 16] = \"InDeclaration\";\n // Processing instructions\n State[State[\"InProcessingInstruction\"] = 17] = \"InProcessingInstruction\";\n // Comments & CDATA\n State[State[\"BeforeComment\"] = 18] = \"BeforeComment\";\n State[State[\"CDATASequence\"] = 19] = \"CDATASequence\";\n State[State[\"InSpecialComment\"] = 20] = \"InSpecialComment\";\n State[State[\"InCommentLike\"] = 21] = \"InCommentLike\";\n // Special tags\n State[State[\"BeforeSpecialS\"] = 22] = \"BeforeSpecialS\";\n State[State[\"BeforeSpecialT\"] = 23] = \"BeforeSpecialT\";\n State[State[\"SpecialStartSequence\"] = 24] = \"SpecialStartSequence\";\n State[State[\"InSpecialTag\"] = 25] = \"InSpecialTag\";\n State[State[\"InEntity\"] = 26] = \"InEntity\";\n})(State || (State = {}));\nfunction isWhitespace(c) {\n return (c === CharCodes.Space ||\n c === CharCodes.NewLine ||\n c === CharCodes.Tab ||\n c === CharCodes.FormFeed ||\n c === CharCodes.CarriageReturn);\n}\nfunction isEndOfTagSection(c) {\n return c === CharCodes.Slash || c === CharCodes.Gt || isWhitespace(c);\n}\nfunction isASCIIAlpha(c) {\n return ((c >= CharCodes.LowerA && c <= CharCodes.LowerZ) ||\n (c >= CharCodes.UpperA && c <= CharCodes.UpperZ));\n}\nvar QuoteType;\n(function (QuoteType) {\n QuoteType[QuoteType[\"NoValue\"] = 0] = \"NoValue\";\n QuoteType[QuoteType[\"Unquoted\"] = 1] = \"Unquoted\";\n QuoteType[QuoteType[\"Single\"] = 2] = \"Single\";\n QuoteType[QuoteType[\"Double\"] = 3] = \"Double\";\n})(QuoteType || (exports.QuoteType = QuoteType = {}));\n/**\n * Sequences used to match longer strings.\n *\n * We don't have `Script`, `Style`, or `Title` here. Instead, we re-use the *End\n * sequences with an increased offset.\n */\nconst Sequences = {\n Cdata: new Uint8Array([0x43, 0x44, 0x41, 0x54, 0x41, 0x5b]), // CDATA[\n CdataEnd: new Uint8Array([0x5d, 0x5d, 0x3e]), // ]]>\n CommentEnd: new Uint8Array([0x2d, 0x2d, 0x3e]), // `-->`\n ScriptEnd: new Uint8Array([0x3c, 0x2f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74]), // `</script`\n StyleEnd: new Uint8Array([0x3c, 0x2f, 0x73, 0x74, 0x79, 0x6c, 0x65]), // `</style`\n TitleEnd: new Uint8Array([0x3c, 0x2f, 0x74, 0x69, 0x74, 0x6c, 0x65]), // `</title`\n TextareaEnd: new Uint8Array([\n 0x3c, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x61, 0x72, 0x65, 0x61,\n ]), // `</textarea`\n XmpEnd: new Uint8Array([0x3c, 0x2f, 0x78, 0x6d, 0x70]), // `</xmp`\n};\nclass Tokenizer {\n constructor({ xmlMode = false, decodeEntities = true, }, cbs) {\n this.cbs = cbs;\n /** The current state the tokenizer is in. */\n this.state = State.Text;\n /** The read buffer. */\n this.buffer = \"\";\n /** The beginning of the section that is currently being read. */\n this.sectionStart = 0;\n /** The index within the buffer that we are currently looking at. */\n this.index = 0;\n /** The start of the last entity. */\n this.entityStart = 0;\n /** Some behavior, eg. when decoding entities, is done while we are in another state. This keeps track of the other state type. */\n this.baseState = State.Text;\n /** For special parsing behavior inside of script and style tags. */\n this.isSpecial = false;\n /** Indicates whether the tokenizer has been paused. */\n this.running = true;\n /** The offset of the current buffer. */\n this.offset = 0;\n this.currentSequence = undefined;\n this.sequenceIndex = 0;\n this.xmlMode = xmlMode;\n this.decodeEntities = decodeEntities;\n this.entityDecoder = new decode_1.EntityDecoder(xmlMode ? decode_1.xmlDecodeTree : decode_1.htmlDecodeTree, (cp, consumed) => this.emitCodePoint(cp, consumed));\n }\n reset() {\n this.state = State.Text;\n this.buffer = \"\";\n this.sectionStart = 0;\n this.index = 0;\n this.baseState = State.Text;\n this.currentSequence = undefined;\n this.running = true;\n this.offset = 0;\n }\n write(chunk) {\n this.offset += this.buffer.length;\n this.buffer = chunk;\n this.parse();\n }\n end() {\n if (this.running)\n this.finish();\n }\n pause() {\n this.running = false;\n }\n resume() {\n this.running = true;\n if (this.index < this.buffer.length + this.offset) {\n this.parse();\n }\n }\n stateText(c) {\n if (c === CharCodes.Lt ||\n (!this.decodeEntities && this.fastForwardTo(CharCodes.Lt))) {\n if (this.index > this.sectionStart) {\n this.cbs.ontext(this.sectionStart, this.index);\n }\n this.state = State.BeforeTagName;\n this.sectionStart = this.index;\n }\n else if (this.decodeEntities && c === CharCodes.Amp) {\n this.startEntity();\n }\n }\n stateSpecialStartSequence(c) {\n const isEnd = this.sequenceIndex === this.currentSequence.length;\n const isMatch = isEnd\n ? // If we are at the end of the sequence, make sure the tag name has ended\n isEndOfTagSection(c)\n : // Otherwise, do a case-insensitive comparison\n (c | 0x20) === this.currentSequence[this.sequenceIndex];\n if (!isMatch) {\n this.isSpecial = false;\n }\n else if (!isEnd) {\n this.sequenceIndex++;\n return;\n }\n this.sequenceIndex = 0;\n this.state = State.InTagName;\n this.stateInTagName(c);\n }\n /** Look for an end tag. For <title> tags, also decode entities. */\n stateInSpecialTag(c) {\n if (this.sequenceIndex === this.currentSequence.length) {\n if (c === CharCodes.Gt || isWhitespace(c)) {\n const endOfText = this.index - this.currentSequence.length;\n if (this.sectionStart < endOfText) {\n // Spoof the index so that reported locations match up.\n const actualIndex = this.index;\n this.index = endOfText;\n this.cbs.ontext(this.sectionStart, endOfText);\n this.index = actualIndex;\n }\n this.isSpecial = false;\n this.sectionStart = endOfText + 2; // Skip over the `</`\n this.stateInClosingTagName(c);\n return; // We are done; skip the rest of the function.\n }\n this.sequenceIndex = 0;\n }\n if ((c | 0x20) === this.currentSequence[this.sequenceIndex]) {\n this.sequenceIndex += 1;\n }\n else if (this.sequenceIndex === 0) {\n if (this.currentSequence === Sequences.TitleEnd) {\n // We have to parse entities in <title> tags.\n if (this.decodeEntities && c === CharCodes.Amp) {\n this.startEntity();\n }\n }\n else if (this.fastForwardTo(CharCodes.Lt)) {\n // Outside of <title> tags, we can fast-forward.\n this.sequenceIndex = 1;\n }\n }\n else {\n // If we see a `<`, set the sequence index to 1; useful for eg. `<</script>`.\n this.sequenceIndex = Number(c === CharCodes.Lt);\n }\n }\n stateCDATASequence(c) {\n if (c === Sequences.Cdata[this.sequenceIndex]) {\n if (++this.sequenceIndex === Sequences.Cdata.length) {\n this.state = State.InCommentLike;\n this.currentSequence = Sequences.CdataEnd;\n this.sequenceIndex = 0;\n this.sectionStart = this.index + 1;\n }\n }\n else {\n this.sequenceIndex = 0;\n this.state = State.InDeclaration;\n this.stateInDeclaration(c); // Reconsume the character\n }\n }\n /**\n * When we wait for one specific character, we can speed things up\n * by skipping through the buffer until we find it.\n *\n * @returns Whether the character was found.\n */\n fastForwardTo(c) {\n while (++this.index < this.buffer.length + this.offset) {\n if (this.buffer.charCodeAt(this.index - this.offset) === c) {\n return true;\n }\n }\n /*\n * We increment the index at the end of the `parse` loop,\n * so set it to `buffer.length - 1` here.\n *\n * TODO: Refactor `parse` to increment index before calling states.\n */\n this.index = this.buffer.length + this.offset - 1;\n return false;\n }\n /**\n * Comments and CDATA end with `-->` and `]]>`.\n *\n * Their common qualities are:\n * - Their end sequences have a distinct character they start with.\n * - That character is then repeated, so we have to check multiple repeats.\n * - All characters but the start character of the sequence can be skipped.\n */\n stateInCommentLike(c) {\n if (c === this.currentSequence[this.sequenceIndex]) {\n if (++this.sequenceIndex === this.currentSequence.length) {\n if (this.currentSequence === Sequences.CdataEnd) {\n this.cbs.oncdata(this.sectionStart, this.index, 2);\n }\n else {\n this.cbs.oncomment(this.sectionStart, this.index, 2);\n }\n this.sequenceIndex = 0;\n this.sectionStart = this.index + 1;\n this.state = State.Text;\n }\n }\n else if (this.sequenceIndex === 0) {\n // Fast-forward to the first character of the sequence\n if (this.fastForwardTo(this.currentSequence[0])) {\n this.sequenceIndex = 1;\n }\n }\n else if (c !== this.currentSequence[this.sequenceIndex - 1]) {\n // Allow long sequences, eg. --->, ]]]>\n this.sequenceIndex = 0;\n }\n }\n /**\n * HTML only allows ASCII alpha characters (a-z and A-Z) at the beginning of a tag name.\n *\n * XML allows a lot more characters here (@see https://www.w3.org/TR/REC-xml/#NT-NameStartChar).\n * We allow anything that wouldn't end the tag.\n */\n isTagStartChar(c) {\n return this.xmlMode ? !isEndOfTagSection(c) : isASCIIAlpha(c);\n }\n startSpecial(sequence, offset) {\n this.isSpecial = true;\n this.currentSequence = sequence;\n this.sequenceIndex = offset;\n this.state = State.SpecialStartSequence;\n }\n stateBeforeTagName(c) {\n if (c === CharCodes.ExclamationMark) {\n this.state = State.BeforeDeclaration;\n this.sectionStart = this.index + 1;\n }\n else if (c === CharCodes.Questionmark) {\n this.state = State.InProcessingInstruction;\n this.sectionStart = this.index + 1;\n }\n else if (this.isTagStartChar(c)) {\n const lower = c | 0x20;\n this.sectionStart = this.index;\n if (this.xmlMode) {\n this.state = State.InTagName;\n }\n else if (lower === Sequences.ScriptEnd[2]) {\n this.state = State.BeforeSpecialS;\n }\n else if (lower === Sequences.TitleEnd[2] ||\n lower === Sequences.XmpEnd[2]) {\n this.state = State.BeforeSpecialT;\n }\n else {\n this.state = State.InTagName;\n }\n }\n else if (c === CharCodes.Slash) {\n this.state = State.BeforeClosingTagName;\n }\n else {\n this.state = State.Text;\n this.stateText(c);\n }\n }\n stateInTagName(c) {\n if (isEndOfTagSection(c)) {\n this.cbs.onopentagname(this.sectionStart, this.index);\n this.sectionStart = -1;\n this.state = State.BeforeAttributeName;\n this.stateBeforeAttributeName(c);\n }\n }\n stateBeforeClosingTagName(c) {\n if (isWhitespace(c)) {\n // Ignore\n }\n else if (c === CharCodes.Gt) {\n this.state = State.Text;\n }\n else {\n this.state = this.isTagStartChar(c)\n ? State.InClosingTagName\n : State.InSpecialComment;\n this.sectionStart = this.index;\n }\n }\n stateInClosingTagName(c) {\n if (c === CharCodes.Gt || isWhitespace(c)) {\n this.cbs.onclosetag(this.sectionStart, this.index);\n this.sectionStart = -1;\n this.state = State.AfterClosingTagName;\n this.stateAfterClosingTagName(c);\n }\n }\n stateAfterClosingTagName(c) {\n // Skip everything until \">\"\n if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {\n this.state = State.Text;\n this.sectionStart = this.index + 1;\n }\n }\n stateBeforeAttributeName(c) {\n if (c === CharCodes.Gt) {\n this.cbs.onopentagend(this.index);\n if (this.isSpecial) {\n this.state = State.InSpecialTag;\n this.sequenceIndex = 0;\n }\n else {\n this.state = State.Text;\n }\n this.sectionStart = this.index + 1;\n }\n else if (c === CharCodes.Slash) {\n this.state = State.InSelfClosingTag;\n }\n else if (!isWhitespace(c)) {\n this.state = State.InAttributeName;\n this.sectionStart = this.index;\n }\n }\n stateInSelfClosingTag(c) {\n if (c === CharCodes.Gt) {\n this.cbs.onselfclosingtag(this.index);\n this.state = State.Text;\n this.sectionStart = this.index + 1;\n this.isSpecial = false; // Reset special state, in case of self-closing special tags\n }\n else if (!isWhitespace(c)) {\n this.state = State.BeforeAttributeName;\n this.stateBeforeAttributeName(c);\n }\n }\n stateInAttributeName(c) {\n if (c === CharCodes.Eq || isEndOfTagSection(c)) {\n this.cbs.onattribname(this.sectionStart, this.index);\n this.sectionStart = this.index;\n this.state = State.AfterAttributeName;\n this.stateAfterAttributeName(c);\n }\n }\n stateAfterAttributeName(c) {\n if (c === CharCodes.Eq) {\n this.state = State.BeforeAttributeValue;\n }\n else if (c === CharCodes.Slash || c === CharCodes.Gt) {\n this.cbs.onattribend(QuoteType.NoValue, this.sectionStart);\n this.sectionStart = -1;\n this.state = State.BeforeAttributeName;\n this.stateBeforeAttributeName(c);\n }\n else if (!isWhitespace(c)) {\n this.cbs.onattribend(QuoteType.NoValue, this.sectionStart);\n this.state = State.InAttributeName;\n this.sectionStart = this.index;\n }\n }\n stateBeforeAttributeValue(c) {\n if (c === CharCodes.DoubleQuote) {\n this.state = State.InAttributeValueDq;\n this.sectionStart = this.index + 1;\n }\n else if (c === CharCodes.SingleQuote) {\n this.state = State.InAttributeValueSq;\n this.sectionStart = this.index + 1;\n }\n else if (!isWhitespace(c)) {\n this.sectionStart = this.index;\n this.state = State.InAttributeValueNq;\n this.stateInAttributeValueNoQuotes(c); // Reconsume token\n }\n }\n handleInAttributeValue(c, quote) {\n if (c === quote ||\n (!this.decodeEntities && this.fastForwardTo(quote))) {\n this.cbs.onattribdata(this.sectionStart, this.index);\n this.sectionStart = -1;\n this.cbs.onattribend(quote === CharCodes.DoubleQuote\n ? QuoteType.Double\n : QuoteType.Single, this.index + 1);\n this.state = State.BeforeAttributeName;\n }\n else if (this.decodeEntities && c === CharCodes.Amp) {\n this.startEntity();\n }\n }\n stateInAttributeValueDoubleQuotes(c) {\n this.handleInAttributeValue(c, CharCodes.DoubleQuote);\n }\n stateInAttributeValueSingleQuotes(c) {\n this.handleInAttributeValue(c, CharCodes.SingleQuote);\n }\n stateInAttributeValueNoQuotes(c) {\n if (isWhitespace(c) || c === CharCodes.Gt) {\n this.cbs.onattribdata(this.sectionStart, this.index);\n this.sectionStart = -1;\n this.cbs.onattribend(QuoteType.Unquoted, this.index);\n this.state = State.BeforeAttributeName;\n this.stateBeforeAttributeName(c);\n }\n else if (this.decodeEntities && c === CharCodes.Amp) {\n this.startEntity();\n }\n }\n stateBeforeDeclaration(c) {\n if (c === CharCodes.OpeningSquareBracket) {\n this.state = State.CDATASequence;\n this.sequenceIndex = 0;\n }\n else {\n this.state =\n c === CharCodes.Dash\n ? State.BeforeComment\n : State.InDeclaration;\n }\n }\n stateInDeclaration(c) {\n if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {\n this.cbs.ondeclaration(this.sectionStart, this.index);\n this.state = State.Text;\n this.sectionStart = this.index + 1;\n }\n }\n stateInProcessingInstruction(c) {\n if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {\n this.cbs.onprocessinginstruction(this.sectionStart, this.index);\n this.state = State.Text;\n this.sectionStart = this.index + 1;\n }\n }\n stateBeforeComment(c) {\n if (c === CharCodes.Dash) {\n this.state = State.InCommentLike;\n this.currentSequence = Sequences.CommentEnd;\n // Allow short comments (eg. <!-->)\n this.sequenceIndex = 2;\n this.sectionStart = this.index + 1;\n }\n else {\n this.state = State.InDeclaration;\n }\n }\n stateInSpecialComment(c) {\n if (c === CharCodes.Gt || this.fastForwardTo(CharCodes.Gt)) {\n this.cbs.oncomment(this.sectionStart, this.index, 0);\n this.state = State.Text;\n this.sectionStart = this.index + 1;\n }\n }\n stateBeforeSpecialS(c) {\n const lower = c | 0x20;\n if (lower === Sequences.ScriptEnd[3]) {\n this.startSpecial(Sequences.ScriptEnd, 4);\n }\n else if (lower === Sequences.StyleEnd[3]) {\n this.startSpecial(Sequences.StyleEnd, 4);\n }\n else {\n this.state = State.InTagName;\n this.stateInTagName(c); // Consume the token again\n }\n }\n stateBeforeSpecialT(c) {\n const lower = c | 0x20;\n switch (lower) {\n case Sequences.TitleEnd[3]: {\n this.startSpecial(Sequences.TitleEnd, 4);\n break;\n }\n case Sequences.TextareaEnd[3]: {\n this.startSpecial(Sequences.TextareaEnd, 4);\n break;\n }\n case Sequences.XmpEnd[3]: {\n this.startSpecial(Sequences.XmpEnd, 4);\n break;\n }\n default: {\n this.state = State.InTagName;\n this.stateInTagName(c); // Consume the token again\n }\n }\n }\n startEntity() {\n this.baseState = this.state;\n this.state = State.InEntity;\n this.entityStart = this.index;\n this.entityDecoder.startEntity(this.xmlMode\n ? decode_1.DecodingMode.Strict\n : this.baseState === State.Text ||\n this.baseState === State.InSpecialTag\n ? decode_1.DecodingMode.Legacy\n : decode_1.DecodingMode.Attribute);\n }\n stateInEntity() {\n const length = this.entityDecoder.write(this.buffer, this.index - this.offset);\n // If `length` is positive, we are done with the entity.\n if (length >= 0) {\n this.state = this.baseState;\n if (length === 0) {\n this.index = this.entityStart;\n }\n }\n else {\n // Mark buffer as consumed.\n this.index = this.offset + this.buffer.length - 1;\n }\n }\n /**\n * Remove data that has already been consumed from the buffer.\n */\n cleanup() {\n // If we are inside of text or attributes, emit what we already have.\n if (this.running && this.sectionStart !== this.index) {\n if (this.state === State.Text ||\n (this.state === State.InSpecialTag && this.sequenceIndex === 0)) {\n this.cbs.ontext(this.sectionStart, this.index);\n this.sectionStart = this.index;\n }\n else if (this.state === State.InAttributeValueDq ||\n this.state === State.InAttributeValueSq ||\n this.state === State.InAttributeValueNq) {\n this.cbs.onattribdata(this.sectionStart, this.index);\n this.sectionStart = this.index;\n }\n }\n }\n shouldContinue() {\n return this.index < this.buffer.length + this.offset && this.running;\n }\n /**\n * Iterates through the buffer, calling the function corresponding to the current state.\n *\n * States that are more likely to be hit are higher up, as a performance improvement.\n */\n parse() {\n while (this.shouldContinue()) {\n const c = this.buffer.charCodeAt(this.index - this.offset);\n switch (this.state) {\n case State.Text: {\n this.stateText(c);\n break;\n }\n case State.SpecialStartSequence: {\n this.stateSpecialStartSequence(c);\n break;\n }\n case State.InSpecialTag: {\n this.stateInSpecialTag(c);\n break;\n }\n case State.CDATASequence: {\n this.stateCDATASequence(c);\n break;\n }\n case State.InAttributeValueDq: {\n this.stateInAttributeValueDoubleQuotes(c);\n break;\n }\n case State.InAttributeName: {\n this.stateInAttributeName(c);\n break;\n }\n case State.InCommentLike: {\n this.stateInCommentLike(c);\n break;\n }\n case State.InSpecialComment: {\n this.stateInSpecialComment(c);\n break;\n }\n case State.BeforeAttributeName: {\n this.stateBeforeAttributeName(c);\n break;\n }\n case State.InTagName: {\n this.stateInTagName(c);\n break;\n }\n case State.InClosingTagName: {\n this.stateInClosingTagName(c);\n break;\n }\n case State.BeforeTagName: {\n this.stateBeforeTagName(c);\n break;\n }\n case State.AfterAttributeName: {\n this.stateAfterAttributeName(c);\n break;\n }\n case State.InAttributeValueSq: {\n this.stateInAttributeValueSingleQuotes(c);\n break;\n }\n case State.BeforeAttributeValue: {\n this.stateBeforeAttributeValue(c);\n break;\n }\n case State.BeforeClosingTagName: {\n this.stateBeforeClosingTagName(c);\n break;\n }\n case State.AfterClosingTagName: {\n this.stateAfterClosingTagName(c);\n break;\n }\n case State.BeforeSpecialS: {\n this.stateBeforeSpecialS(c);\n break;\n }\n case State.BeforeSpecialT: {\n this.stateBeforeSpecialT(c);\n break;\n }\n case State.InAttributeValueNq: {\n this.stateInAttributeValueNoQuotes(c);\n break;\n }\n case State.InSelfClosingTag: {\n this.stateInSelfClosingTag(c);\n break;\n }\n case State.InDeclaration: {\n this.stateInDeclaration(c);\n break;\n }\n case State.BeforeDeclaration: {\n this.stateBeforeDeclaration(c);\n break;\n }\n case State.BeforeComment: {\n this.stateBeforeComment(c);\n break;\n }\n case State.InProcessingInstruction: {\n this.stateInProcessingInstruction(c);\n break;\n }\n case State.InEntity: {\n this.stateInEntity();\n break;\n }\n }\n this.index++;\n }\n this.cleanup();\n }\n finish() {\n if (this.state === State.InEntity) {\n this.entityDecoder.end();\n this.state = this.baseState;\n }\n this.handleTrailingData();\n this.cbs.onend();\n }\n /** Handle any trailing data. */\n handleTrailingData() {\n const endIndex = this.buffer.length + this.offset;\n // If there is no remaining data, we are done.\n if (this.sectionStart >= endIndex) {\n return;\n }\n if (this.state === State.InCommentLike) {\n if (this.currentSequence === Sequences.CdataEnd) {\n this.cbs.oncdata(this.sectionStart, endIndex, 0);\n }\n else {\n this.cbs.oncomment(this.sectionStart, endIndex, 0);\n }\n }\n else if (this.state === State.InTagName ||\n this.state === State.BeforeAttributeName ||\n this.state === State.BeforeAttributeValue ||\n this.state === State.AfterAttributeName ||\n this.state === State.InAttributeName ||\n this.state === State.InAttributeValueSq ||\n this.state === State.InAttributeValueDq ||\n this.state === State.InAttributeValueNq ||\n this.state === State.InClosingTagName) {\n /*\n * If we are currently in an opening or closing tag, us not calling the\n * respective callback signals that the tag should be ignored.\n */\n }\n else {\n this.cbs.ontext(this.sectionStart, endIndex);\n }\n }\n emitCodePoint(cp, consumed) {\n if (this.baseState !== State.Text &&\n this.baseState !== State.InSpecialTag) {\n if (this.sectionStart < this.entityStart) {\n this.cbs.onattribdata(this.sectionStart, this.entityStart);\n }\n this.sectionStart = this.entityStart + consumed;\n this.index = this.sectionStart - 1;\n this.cbs.onattribentity(cp);\n }\n else {\n if (this.sectionStart < this.entityStart) {\n this.cbs.ontext(this.sectionStart, this.entityStart);\n }\n this.sectionStart = this.entityStart + consumed;\n this.index = this.sectionStart - 1;\n this.cbs.ontextentity(cp, this.sectionStart);\n }\n }\n}\nexports.default = Tokenizer;\n//# sourceMappingURL=Tokenizer.js.map"],"names":["Tokenizer_1","require$$0","Tokenizer"],"mappings":";;;;;;;;;;AACA,CAAA,MAAM,CAAC,cAAc,CAACA,mBAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAAA,mBAAA,CAAA,SAAiB,GAAG,MAAM;CAC1B,MAAM,QAAQ,iBAAGC,gBAAA,EAA0B;AAC3C,CAAA,IAAI,SAAS;CACb,CAAC,UAAU,SAAS,EAAE;KAClB,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK;KACvC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,GAAG,SAAS;KAChD,SAAS,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,GAAG,UAAU;KAClD,SAAS,CAAC,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,CAAC,GAAG,gBAAgB;KAC9D,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO;KAC5C,SAAS,CAAC,SAAS,CAAC,iBAAiB,CAAC,GAAG,EAAE,CAAC,GAAG,iBAAiB;KAChE,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,GAAG,QAAQ;KAC9C,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,GAAG,KAAK;KACxC,SAAS,CAAC,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC,GAAG,aAAa;KACxD,SAAS,CAAC,SAAS,CAAC,aAAa,CAAC,GAA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,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC;AACvC,SAAA;cACa;aACD,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,WAAW,EAAE;AACtD,iBAAgB,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,WAAW,CAAC;AACpE,aAAA;aACY,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,WAAW,GAAG,QAAQ;aAC/C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,GAAG,CAAC;aAClC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,CAAC,YAAY,CAAC;AACxD,SAAA;AACA,KAAA;AACA;AACA,CAAAA,mBAAA,CAAA,OAAe,GAAGE,WAAS;AAC3B;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('../../../../_virtual/index7.js');
|
|
4
|
+
var Parser = require('./Parser.js');
|
|
5
|
+
var index$1 = require('../../../domhandler/lib/index.js');
|
|
6
|
+
var Tokenizer = require('./Tokenizer.js');
|
|
7
|
+
var index$2 = require('../../../domelementtype/lib/index.js');
|
|
8
|
+
var index$3 = require('../../../domutils/lib/index.js');
|
|
9
|
+
|
|
10
|
+
var hasRequiredCommonjs;
|
|
11
|
+
|
|
12
|
+
function requireCommonjs () {
|
|
13
|
+
if (hasRequiredCommonjs) return index.__exports;
|
|
14
|
+
hasRequiredCommonjs = 1;
|
|
15
|
+
(function (exports) {
|
|
16
|
+
var __createBinding = (index.__exports && index.__exports.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
19
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
20
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
21
|
+
}
|
|
22
|
+
Object.defineProperty(o, k2, desc);
|
|
23
|
+
}) : (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
o[k2] = m[k];
|
|
26
|
+
}));
|
|
27
|
+
var __setModuleDefault = (index.__exports && index.__exports.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
28
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
29
|
+
}) : function(o, v) {
|
|
30
|
+
o["default"] = v;
|
|
31
|
+
});
|
|
32
|
+
var __importStar = (index.__exports && index.__exports.__importStar) || (function () {
|
|
33
|
+
var ownKeys = function(o) {
|
|
34
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
35
|
+
var ar = [];
|
|
36
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
37
|
+
return ar;
|
|
38
|
+
};
|
|
39
|
+
return ownKeys(o);
|
|
40
|
+
};
|
|
41
|
+
return function (mod) {
|
|
42
|
+
if (mod && mod.__esModule) return mod;
|
|
43
|
+
var result = {};
|
|
44
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
45
|
+
__setModuleDefault(result, mod);
|
|
46
|
+
return result;
|
|
47
|
+
};
|
|
48
|
+
})();
|
|
49
|
+
var __importDefault = (index.__exports && index.__exports.__importDefault) || function (mod) {
|
|
50
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
|
+
};
|
|
52
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
exports.DomUtils = exports.getFeed = exports.ElementType = exports.QuoteType = exports.Tokenizer = exports.DefaultHandler = exports.DomHandler = exports.Parser = void 0;
|
|
54
|
+
exports.parseDocument = parseDocument;
|
|
55
|
+
exports.parseDOM = parseDOM;
|
|
56
|
+
exports.createDocumentStream = createDocumentStream;
|
|
57
|
+
exports.createDomStream = createDomStream;
|
|
58
|
+
exports.parseFeed = parseFeed;
|
|
59
|
+
const Parser_js_1 = Parser.__require();
|
|
60
|
+
var Parser_js_2 = Parser.__require();
|
|
61
|
+
Object.defineProperty(exports, "Parser", { enumerable: true, get: function () { return Parser_js_2.Parser; } });
|
|
62
|
+
const domhandler_1 = /*@__PURE__*/ index$1.__require();
|
|
63
|
+
var domhandler_2 = /*@__PURE__*/ index$1.__require();
|
|
64
|
+
Object.defineProperty(exports, "DomHandler", { enumerable: true, get: function () { return domhandler_2.DomHandler; } });
|
|
65
|
+
// Old name for DomHandler
|
|
66
|
+
Object.defineProperty(exports, "DefaultHandler", { enumerable: true, get: function () { return domhandler_2.DomHandler; } });
|
|
67
|
+
// Helper methods
|
|
68
|
+
/**
|
|
69
|
+
* Parses the data, returns the resulting document.
|
|
70
|
+
*
|
|
71
|
+
* @param data The data that should be parsed.
|
|
72
|
+
* @param options Optional options for the parser and DOM handler.
|
|
73
|
+
*/
|
|
74
|
+
function parseDocument(data, options) {
|
|
75
|
+
const handler = new domhandler_1.DomHandler(undefined, options);
|
|
76
|
+
new Parser_js_1.Parser(handler, options).end(data);
|
|
77
|
+
return handler.root;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Parses data, returns an array of the root nodes.
|
|
81
|
+
*
|
|
82
|
+
* Note that the root nodes still have a `Document` node as their parent.
|
|
83
|
+
* Use `parseDocument` to get the `Document` node instead.
|
|
84
|
+
*
|
|
85
|
+
* @param data The data that should be parsed.
|
|
86
|
+
* @param options Optional options for the parser and DOM handler.
|
|
87
|
+
* @deprecated Use `parseDocument` instead.
|
|
88
|
+
*/
|
|
89
|
+
function parseDOM(data, options) {
|
|
90
|
+
return parseDocument(data, options).children;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Creates a parser instance, with an attached DOM handler.
|
|
94
|
+
*
|
|
95
|
+
* @param callback A callback that will be called once parsing has been completed, with the resulting document.
|
|
96
|
+
* @param options Optional options for the parser and DOM handler.
|
|
97
|
+
* @param elementCallback An optional callback that will be called every time a tag has been completed inside of the DOM.
|
|
98
|
+
*/
|
|
99
|
+
function createDocumentStream(callback, options, elementCallback) {
|
|
100
|
+
const handler = new domhandler_1.DomHandler((error) => callback(error, handler.root), options, elementCallback);
|
|
101
|
+
return new Parser_js_1.Parser(handler, options);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Creates a parser instance, with an attached DOM handler.
|
|
105
|
+
*
|
|
106
|
+
* @param callback A callback that will be called once parsing has been completed, with an array of root nodes.
|
|
107
|
+
* @param options Optional options for the parser and DOM handler.
|
|
108
|
+
* @param elementCallback An optional callback that will be called every time a tag has been completed inside of the DOM.
|
|
109
|
+
* @deprecated Use `createDocumentStream` instead.
|
|
110
|
+
*/
|
|
111
|
+
function createDomStream(callback, options, elementCallback) {
|
|
112
|
+
const handler = new domhandler_1.DomHandler(callback, options, elementCallback);
|
|
113
|
+
return new Parser_js_1.Parser(handler, options);
|
|
114
|
+
}
|
|
115
|
+
var Tokenizer_js_1 = Tokenizer.__require();
|
|
116
|
+
Object.defineProperty(exports, "Tokenizer", { enumerable: true, get: function () { return __importDefault(Tokenizer_js_1).default; } });
|
|
117
|
+
Object.defineProperty(exports, "QuoteType", { enumerable: true, get: function () { return Tokenizer_js_1.QuoteType; } });
|
|
118
|
+
/*
|
|
119
|
+
* All of the following exports exist for backwards-compatibility.
|
|
120
|
+
* They should probably be removed eventually.
|
|
121
|
+
*/
|
|
122
|
+
exports.ElementType = __importStar(/*@__PURE__*/ index$2.__require());
|
|
123
|
+
const domutils_1 = /*@__PURE__*/ index$3.__require();
|
|
124
|
+
var domutils_2 = /*@__PURE__*/ index$3.__require();
|
|
125
|
+
Object.defineProperty(exports, "getFeed", { enumerable: true, get: function () { return domutils_2.getFeed; } });
|
|
126
|
+
const parseFeedDefaultOptions = { xmlMode: true };
|
|
127
|
+
/**
|
|
128
|
+
* Parse a feed.
|
|
129
|
+
*
|
|
130
|
+
* @param feed The feed that should be parsed, as a string.
|
|
131
|
+
* @param options Optionally, options for parsing. When using this, you should set `xmlMode` to `true`.
|
|
132
|
+
*/
|
|
133
|
+
function parseFeed(feed, options = parseFeedDefaultOptions) {
|
|
134
|
+
return (0, domutils_1.getFeed)(parseDOM(feed, options));
|
|
135
|
+
}
|
|
136
|
+
exports.DomUtils = __importStar(/*@__PURE__*/ index$3.__require());
|
|
137
|
+
|
|
138
|
+
} (index.__exports));
|
|
139
|
+
return index.__exports;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
exports.__require = requireCommonjs;
|
|
143
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/htmlparser2/dist/commonjs/index.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DomUtils = exports.getFeed = exports.ElementType = exports.QuoteType = exports.Tokenizer = exports.DefaultHandler = exports.DomHandler = exports.Parser = void 0;\nexports.parseDocument = parseDocument;\nexports.parseDOM = parseDOM;\nexports.createDocumentStream = createDocumentStream;\nexports.createDomStream = createDomStream;\nexports.parseFeed = parseFeed;\nconst Parser_js_1 = require(\"./Parser.js\");\nvar Parser_js_2 = require(\"./Parser.js\");\nObject.defineProperty(exports, \"Parser\", { enumerable: true, get: function () { return Parser_js_2.Parser; } });\nconst domhandler_1 = require(\"domhandler\");\nvar domhandler_2 = require(\"domhandler\");\nObject.defineProperty(exports, \"DomHandler\", { enumerable: true, get: function () { return domhandler_2.DomHandler; } });\n// Old name for DomHandler\nObject.defineProperty(exports, \"DefaultHandler\", { enumerable: true, get: function () { return domhandler_2.DomHandler; } });\n// Helper methods\n/**\n * Parses the data, returns the resulting document.\n *\n * @param data The data that should be parsed.\n * @param options Optional options for the parser and DOM handler.\n */\nfunction parseDocument(data, options) {\n const handler = new domhandler_1.DomHandler(undefined, options);\n new Parser_js_1.Parser(handler, options).end(data);\n return handler.root;\n}\n/**\n * Parses data, returns an array of the root nodes.\n *\n * Note that the root nodes still have a `Document` node as their parent.\n * Use `parseDocument` to get the `Document` node instead.\n *\n * @param data The data that should be parsed.\n * @param options Optional options for the parser and DOM handler.\n * @deprecated Use `parseDocument` instead.\n */\nfunction parseDOM(data, options) {\n return parseDocument(data, options).children;\n}\n/**\n * Creates a parser instance, with an attached DOM handler.\n *\n * @param callback A callback that will be called once parsing has been completed, with the resulting document.\n * @param options Optional options for the parser and DOM handler.\n * @param elementCallback An optional callback that will be called every time a tag has been completed inside of the DOM.\n */\nfunction createDocumentStream(callback, options, elementCallback) {\n const handler = new domhandler_1.DomHandler((error) => callback(error, handler.root), options, elementCallback);\n return new Parser_js_1.Parser(handler, options);\n}\n/**\n * Creates a parser instance, with an attached DOM handler.\n *\n * @param callback A callback that will be called once parsing has been completed, with an array of root nodes.\n * @param options Optional options for the parser and DOM handler.\n * @param elementCallback An optional callback that will be called every time a tag has been completed inside of the DOM.\n * @deprecated Use `createDocumentStream` instead.\n */\nfunction createDomStream(callback, options, elementCallback) {\n const handler = new domhandler_1.DomHandler(callback, options, elementCallback);\n return new Parser_js_1.Parser(handler, options);\n}\nvar Tokenizer_js_1 = require(\"./Tokenizer.js\");\nObject.defineProperty(exports, \"Tokenizer\", { enumerable: true, get: function () { return __importDefault(Tokenizer_js_1).default; } });\nObject.defineProperty(exports, \"QuoteType\", { enumerable: true, get: function () { return Tokenizer_js_1.QuoteType; } });\n/*\n * All of the following exports exist for backwards-compatibility.\n * They should probably be removed eventually.\n */\nexports.ElementType = __importStar(require(\"domelementtype\"));\nconst domutils_1 = require(\"domutils\");\nvar domutils_2 = require(\"domutils\");\nObject.defineProperty(exports, \"getFeed\", { enumerable: true, get: function () { return domutils_2.getFeed; } });\nconst parseFeedDefaultOptions = { xmlMode: true };\n/**\n * Parse a feed.\n *\n * @param feed The feed that should be parsed, as a string.\n * @param options Optionally, options for parsing. When using this, you should set `xmlMode` to `true`.\n */\nfunction parseFeed(feed, options = parseFeedDefaultOptions) {\n return (0, domutils_1.getFeed)(parseDOM(feed, options));\n}\nexports.DomUtils = __importStar(require(\"domutils\"));\n//# sourceMappingURL=index.js.map"],"names":["this","require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":";;;;;;;;;;;;;;;EACA,IAAI,eAAe,GAAG,CAACA,eAAI,IAAIA,eAAI,CAAC,eAAe,MAAM,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE;AAChG,MAAI,IAAI,EAAE,KAAK,SAAS,EAAE,EAAE,GAAG,CAAC;MAC5B,IAAI,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC;M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AGA,iBAAA,EAAmB;EACpC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,OAAO,CAAC,CAAA,CAAE,EAAE,CAAC;AAChH,EAAA,MAAM,uBAAuB,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE;AACjD;AACA;AACA;AACA;AACA;AACA;AACA,EAAA,SAAS,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,uBAAuB,EAAE;AAC5D,MAAI,OAAO,IAAI,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC3D,EAAA;EACA,OAAA,CAAA,QAAA,GAAmB,YAAY,eAACA,iBAAA,EAAmB,CAAC;AACpD;;;;;;;","x_google_ignoreList":[0]}
|
package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var decodeCodepoint = require('../../../../../../_virtual/decode-codepoint.js');
|
|
4
|
+
|
|
5
|
+
var hasRequiredDecodeCodepoint;
|
|
6
|
+
|
|
7
|
+
function requireDecodeCodepoint () {
|
|
8
|
+
if (hasRequiredDecodeCodepoint) return decodeCodepoint.__exports;
|
|
9
|
+
hasRequiredDecodeCodepoint = 1;
|
|
10
|
+
(function (exports) {
|
|
11
|
+
// Adapted from https://github.com/mathiasbynens/he/blob/36afe179392226cf1b6ccdb16ebbb7a5a844d93a/src/he.js#L106-L134
|
|
12
|
+
var _a;
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.fromCodePoint = void 0;
|
|
15
|
+
exports.replaceCodePoint = replaceCodePoint;
|
|
16
|
+
exports.decodeCodePoint = decodeCodePoint;
|
|
17
|
+
const decodeMap = new Map([
|
|
18
|
+
[0, 65533],
|
|
19
|
+
// C1 Unicode control character reference replacements
|
|
20
|
+
[128, 8364],
|
|
21
|
+
[130, 8218],
|
|
22
|
+
[131, 402],
|
|
23
|
+
[132, 8222],
|
|
24
|
+
[133, 8230],
|
|
25
|
+
[134, 8224],
|
|
26
|
+
[135, 8225],
|
|
27
|
+
[136, 710],
|
|
28
|
+
[137, 8240],
|
|
29
|
+
[138, 352],
|
|
30
|
+
[139, 8249],
|
|
31
|
+
[140, 338],
|
|
32
|
+
[142, 381],
|
|
33
|
+
[145, 8216],
|
|
34
|
+
[146, 8217],
|
|
35
|
+
[147, 8220],
|
|
36
|
+
[148, 8221],
|
|
37
|
+
[149, 8226],
|
|
38
|
+
[150, 8211],
|
|
39
|
+
[151, 8212],
|
|
40
|
+
[152, 732],
|
|
41
|
+
[153, 8482],
|
|
42
|
+
[154, 353],
|
|
43
|
+
[155, 8250],
|
|
44
|
+
[156, 339],
|
|
45
|
+
[158, 382],
|
|
46
|
+
[159, 376],
|
|
47
|
+
]);
|
|
48
|
+
/**
|
|
49
|
+
* Polyfill for `String.fromCodePoint`. It is used to create a string from a Unicode code point.
|
|
50
|
+
*/
|
|
51
|
+
exports.fromCodePoint =
|
|
52
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, n/no-unsupported-features/es-builtins
|
|
53
|
+
(_a = String.fromCodePoint) !== null && _a !== void 0 ? _a : function (codePoint) {
|
|
54
|
+
let output = "";
|
|
55
|
+
if (codePoint > 65535) {
|
|
56
|
+
codePoint -= 65536;
|
|
57
|
+
output += String.fromCharCode(((codePoint >>> 10) & 1023) | 55296);
|
|
58
|
+
codePoint = 56320 | (codePoint & 1023);
|
|
59
|
+
}
|
|
60
|
+
output += String.fromCharCode(codePoint);
|
|
61
|
+
return output;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Replace the given code point with a replacement character if it is a
|
|
65
|
+
* surrogate or is outside the valid range. Otherwise return the code
|
|
66
|
+
* point unchanged.
|
|
67
|
+
*/
|
|
68
|
+
function replaceCodePoint(codePoint) {
|
|
69
|
+
var _a;
|
|
70
|
+
if ((codePoint >= 55296 && codePoint <= 57343) ||
|
|
71
|
+
codePoint > 1114111) {
|
|
72
|
+
return 65533;
|
|
73
|
+
}
|
|
74
|
+
return (_a = decodeMap.get(codePoint)) !== null && _a !== void 0 ? _a : codePoint;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Replace the code point if relevant, then convert it to a string.
|
|
78
|
+
*
|
|
79
|
+
* @deprecated Use `fromCodePoint(replaceCodePoint(codePoint))` instead.
|
|
80
|
+
* @param codePoint The code point to decode.
|
|
81
|
+
* @returns The decoded code point.
|
|
82
|
+
*/
|
|
83
|
+
function decodeCodePoint(codePoint) {
|
|
84
|
+
return (0, exports.fromCodePoint)(replaceCodePoint(codePoint));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
} (decodeCodepoint.__exports));
|
|
88
|
+
return decodeCodepoint.__exports;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
exports.__require = requireDecodeCodepoint;
|
|
92
|
+
//# sourceMappingURL=decode-codepoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decode-codepoint.js","sources":["../../../../../../../../node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js"],"sourcesContent":["\"use strict\";\n// Adapted from https://github.com/mathiasbynens/he/blob/36afe179392226cf1b6ccdb16ebbb7a5a844d93a/src/he.js#L106-L134\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.fromCodePoint = void 0;\nexports.replaceCodePoint = replaceCodePoint;\nexports.decodeCodePoint = decodeCodePoint;\nconst decodeMap = new Map([\n [0, 65533],\n // C1 Unicode control character reference replacements\n [128, 8364],\n [130, 8218],\n [131, 402],\n [132, 8222],\n [133, 8230],\n [134, 8224],\n [135, 8225],\n [136, 710],\n [137, 8240],\n [138, 352],\n [139, 8249],\n [140, 338],\n [142, 381],\n [145, 8216],\n [146, 8217],\n [147, 8220],\n [148, 8221],\n [149, 8226],\n [150, 8211],\n [151, 8212],\n [152, 732],\n [153, 8482],\n [154, 353],\n [155, 8250],\n [156, 339],\n [158, 382],\n [159, 376],\n]);\n/**\n * Polyfill for `String.fromCodePoint`. It is used to create a string from a Unicode code point.\n */\nexports.fromCodePoint = \n// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, n/no-unsupported-features/es-builtins\n(_a = String.fromCodePoint) !== null && _a !== void 0 ? _a : function (codePoint) {\n let output = \"\";\n if (codePoint > 65535) {\n codePoint -= 65536;\n output += String.fromCharCode(((codePoint >>> 10) & 1023) | 55296);\n codePoint = 56320 | (codePoint & 1023);\n }\n output += String.fromCharCode(codePoint);\n return output;\n};\n/**\n * Replace the given code point with a replacement character if it is a\n * surrogate or is outside the valid range. Otherwise return the code\n * point unchanged.\n */\nfunction replaceCodePoint(codePoint) {\n var _a;\n if ((codePoint >= 55296 && codePoint <= 57343) ||\n codePoint > 1114111) {\n return 65533;\n }\n return (_a = decodeMap.get(codePoint)) !== null && _a !== void 0 ? _a : codePoint;\n}\n/**\n * Replace the code point if relevant, then convert it to a string.\n *\n * @deprecated Use `fromCodePoint(replaceCodePoint(codePoint))` instead.\n * @param codePoint The code point to decode.\n * @returns The decoded code point.\n */\nfunction decodeCodePoint(codePoint) {\n return (0, exports.fromCodePoint)(replaceCodePoint(codePoint));\n}\n//# sourceMappingURL=decode-codepoint.js.map"],"names":[],"mappings":";;;;;;;;;;AACA;AACA,EAAA,IAAI,EAAE;EACN,MAAM,CAAC,cAAc,CAAA,OAAA,EAAU,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,EAAA,OAAA,CAAA,aAAA,GAAwB,MAAM;AAC9B,EAAA,OAAA,CAAA,gBAAA,GAA2B,gBAAgB;AAC3C,EAAA,OAAA,CAAA,eAAA,GAA0B,eAAe;AACzC,EAAA,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC;AAC1B,MAAI,CAAC,CAAC,E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