aizryu.js 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.cache/replit/__replit_disk_meta.json +1 -0
- package/.cache/replit/modules.stamp +0 -0
- package/.cache/replit/nix/env.json +1 -0
- package/.cache/typescript/5.0/node_modules/.package-lock.json +156 -0
- package/.cache/typescript/5.0/node_modules/@types/body-parser/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/body-parser/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/body-parser/index.d.ts +95 -0
- package/.cache/typescript/5.0/node_modules/@types/body-parser/package.json +58 -0
- package/.cache/typescript/5.0/node_modules/@types/connect/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/connect/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/connect/index.d.ts +91 -0
- package/.cache/typescript/5.0/node_modules/@types/connect/package.json +32 -0
- package/.cache/typescript/5.0/node_modules/@types/express/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/express/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/express/index.d.ts +128 -0
- package/.cache/typescript/5.0/node_modules/@types/express/package.json +45 -0
- package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/index.d.ts +1261 -0
- package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/package.json +55 -0
- package/.cache/typescript/5.0/node_modules/@types/http-errors/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/http-errors/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/http-errors/index.d.ts +77 -0
- package/.cache/typescript/5.0/node_modules/@types/http-errors/package.json +30 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/base.d.ts +456 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/index.d.ts +18 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/package.json +45 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/Mime.d.ts +10 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/index.d.ts +31 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/lite.d.ts +7 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/package.json +30 -0
- package/.cache/typescript/5.0/node_modules/@types/node/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/node/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.0/node_modules/@types/node/assert.d.ts +996 -0
- package/.cache/typescript/5.0/node_modules/@types/node/async_hooks.d.ts +539 -0
- package/.cache/typescript/5.0/node_modules/@types/node/buffer.d.ts +2362 -0
- package/.cache/typescript/5.0/node_modules/@types/node/child_process.d.ts +1540 -0
- package/.cache/typescript/5.0/node_modules/@types/node/cluster.d.ts +432 -0
- package/.cache/typescript/5.0/node_modules/@types/node/console.d.ts +415 -0
- package/.cache/typescript/5.0/node_modules/@types/node/constants.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/@types/node/crypto.d.ts +4456 -0
- package/.cache/typescript/5.0/node_modules/@types/node/dgram.d.ts +586 -0
- package/.cache/typescript/5.0/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
- package/.cache/typescript/5.0/node_modules/@types/node/dns/promises.d.ts +425 -0
- package/.cache/typescript/5.0/node_modules/@types/node/dns.d.ts +809 -0
- package/.cache/typescript/5.0/node_modules/@types/node/dom-events.d.ts +122 -0
- package/.cache/typescript/5.0/node_modules/@types/node/domain.d.ts +170 -0
- package/.cache/typescript/5.0/node_modules/@types/node/events.d.ts +879 -0
- package/.cache/typescript/5.0/node_modules/@types/node/fs/promises.d.ts +1239 -0
- package/.cache/typescript/5.0/node_modules/@types/node/fs.d.ts +4291 -0
- package/.cache/typescript/5.0/node_modules/@types/node/globals.d.ts +381 -0
- package/.cache/typescript/5.0/node_modules/@types/node/globals.global.d.ts +1 -0
- package/.cache/typescript/5.0/node_modules/@types/node/http.d.ts +1888 -0
- package/.cache/typescript/5.0/node_modules/@types/node/http2.d.ts +2382 -0
- package/.cache/typescript/5.0/node_modules/@types/node/https.d.ts +550 -0
- package/.cache/typescript/5.0/node_modules/@types/node/index.d.ts +88 -0
- package/.cache/typescript/5.0/node_modules/@types/node/inspector.d.ts +2747 -0
- package/.cache/typescript/5.0/node_modules/@types/node/module.d.ts +301 -0
- package/.cache/typescript/5.0/node_modules/@types/node/net.d.ts +949 -0
- package/.cache/typescript/5.0/node_modules/@types/node/os.d.ts +478 -0
- package/.cache/typescript/5.0/node_modules/@types/node/package.json +230 -0
- package/.cache/typescript/5.0/node_modules/@types/node/path.d.ts +191 -0
- package/.cache/typescript/5.0/node_modules/@types/node/perf_hooks.d.ts +639 -0
- package/.cache/typescript/5.0/node_modules/@types/node/process.d.ts +1532 -0
- package/.cache/typescript/5.0/node_modules/@types/node/punycode.d.ts +117 -0
- package/.cache/typescript/5.0/node_modules/@types/node/querystring.d.ts +141 -0
- package/.cache/typescript/5.0/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.0/node_modules/@types/node/readline.d.ts +539 -0
- package/.cache/typescript/5.0/node_modules/@types/node/repl.d.ts +430 -0
- package/.cache/typescript/5.0/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.0/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.0/node_modules/@types/node/stream/web.d.ts +350 -0
- package/.cache/typescript/5.0/node_modules/@types/node/stream.d.ts +1701 -0
- package/.cache/typescript/5.0/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.0/node_modules/@types/node/test.d.ts +1382 -0
- package/.cache/typescript/5.0/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/.cache/typescript/5.0/node_modules/@types/node/timers.d.ts +240 -0
- package/.cache/typescript/5.0/node_modules/@types/node/tls.d.ts +1210 -0
- package/.cache/typescript/5.0/node_modules/@types/node/trace_events.d.ts +182 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/assert.d.ts +996 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/async_hooks.d.ts +539 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/buffer.d.ts +2362 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/child_process.d.ts +1540 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/console.d.ts +415 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/crypto.d.ts +4455 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dgram.d.ts +586 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dns/promises.d.ts +425 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/events.d.ts +879 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/fs/promises.d.ts +1239 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/fs.d.ts +4291 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/globals.d.ts +381 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/http.d.ts +1888 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/http2.d.ts +2382 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/https.d.ts +550 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/inspector.d.ts +2747 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/module.d.ts +301 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/net.d.ts +949 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/os.d.ts +478 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/perf_hooks.d.ts +639 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/process.d.ts +1532 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/readline.d.ts +539 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream/web.d.ts +350 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream.d.ts +1701 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/test.d.ts +1382 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/timers.d.ts +240 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/tls.d.ts +1210 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/url.d.ts +927 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/util.d.ts +2186 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/vm.d.ts +903 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/.cache/typescript/5.0/node_modules/@types/node/tty.d.ts +208 -0
- package/.cache/typescript/5.0/node_modules/@types/node/url.d.ts +927 -0
- package/.cache/typescript/5.0/node_modules/@types/node/util.d.ts +2186 -0
- package/.cache/typescript/5.0/node_modules/@types/node/v8.d.ts +635 -0
- package/.cache/typescript/5.0/node_modules/@types/node/vm.d.ts +903 -0
- package/.cache/typescript/5.0/node_modules/@types/node/wasi.d.ts +158 -0
- package/.cache/typescript/5.0/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.0/node_modules/@types/node/zlib.d.ts +517 -0
- package/.cache/typescript/5.0/node_modules/@types/qs/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/qs/README.md +75 -0
- package/.cache/typescript/5.0/node_modules/@types/qs/index.d.ts +56 -0
- package/.cache/typescript/5.0/node_modules/@types/qs/package.json +65 -0
- package/.cache/typescript/5.0/node_modules/@types/range-parser/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/range-parser/README.md +53 -0
- package/.cache/typescript/5.0/node_modules/@types/range-parser/index.d.ts +34 -0
- package/.cache/typescript/5.0/node_modules/@types/range-parser/package.json +25 -0
- package/.cache/typescript/5.0/node_modules/@types/send/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/send/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/send/index.d.ts +225 -0
- package/.cache/typescript/5.0/node_modules/@types/send/package.json +33 -0
- package/.cache/typescript/5.0/node_modules/@types/serve-static/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/serve-static/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/serve-static/index.d.ts +107 -0
- package/.cache/typescript/5.0/node_modules/@types/serve-static/package.json +39 -0
- package/.cache/typescript/5.0/node_modules/@types/tough-cookie/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/tough-cookie/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/tough-cookie/index.d.ts +321 -0
- package/.cache/typescript/5.0/node_modules/@types/tough-cookie/package.json +35 -0
- package/.cache/typescript/5.0/node_modules/entities/LICENSE +11 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode.d.ts +211 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode.js +536 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/encode.d.ts +22 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/encode.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/encode.js +77 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/encode.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/escape.d.ts +43 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/escape.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/escape.js +122 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/escape.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.d.ts +211 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.js +496 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.js +71 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.d.ts +22 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.js +69 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.d.ts +43 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.js +116 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.js +10 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.d.ts +96 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.js +99 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/package.json +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.js +12 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/index.d.ts +96 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/index.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/index.js +126 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/index.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/package.json +90 -0
- package/.cache/typescript/5.0/node_modules/entities/readme.md +122 -0
- package/.cache/typescript/5.0/node_modules/parse5/LICENSE +19 -0
- package/.cache/typescript/5.0/node_modules/parse5/README.md +38 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/doctype.d.ts +5 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/doctype.js +120 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/error-codes.d.ts +68 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/error-codes.js +67 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +10 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/foreign-content.js +239 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/html.d.ts +288 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/html.js +529 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/token.d.ts +85 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/token.js +25 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/unicode.d.ts +49 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/unicode.js +77 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/index.d.ts +60 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/index.js +57 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/package.json +1 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +37 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +115 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/index.d.ts +157 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/index.js +3163 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +53 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/open-element-stack.js +316 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/serializer/index.d.ts +61 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/serializer/index.js +173 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +248 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/index.js +2908 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +37 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +199 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +85 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/default.js +177 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +250 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/interface.js +3 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/doctype.d.ts +5 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/doctype.js +115 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/error-codes.d.ts +68 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/error-codes.js +64 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/foreign-content.d.ts +10 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/foreign-content.js +230 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/html.d.ts +288 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/html.js +523 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/token.d.ts +85 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/token.js +21 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/unicode.d.ts +49 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/unicode.js +69 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/index.d.ts +60 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/index.js +45 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/formatting-element-list.d.ts +37 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/formatting-element-list.js +111 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/index.d.ts +157 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/index.js +3168 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/open-element-stack.d.ts +53 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/open-element-stack.js +312 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/serializer/index.d.ts +61 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/serializer/index.js +168 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/index.d.ts +248 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/index.js +2904 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +37 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/preprocessor.js +195 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/default.d.ts +85 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/default.js +174 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/interface.d.ts +250 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/interface.js +2 -0
- package/.cache/typescript/5.0/node_modules/parse5/package.json +50 -0
- package/.cache/typescript/5.0/node_modules/types-registry/README.md +2 -0
- package/.cache/typescript/5.0/node_modules/types-registry/index.json +1 -0
- package/.cache/typescript/5.0/node_modules/types-registry/package.json +20 -0
- package/.cache/typescript/5.0/node_modules/undici-types/README.md +6 -0
- package/.cache/typescript/5.0/node_modules/undici-types/agent.d.ts +31 -0
- package/.cache/typescript/5.0/node_modules/undici-types/api.d.ts +43 -0
- package/.cache/typescript/5.0/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/.cache/typescript/5.0/node_modules/undici-types/cache.d.ts +36 -0
- package/.cache/typescript/5.0/node_modules/undici-types/client.d.ts +97 -0
- package/.cache/typescript/5.0/node_modules/undici-types/connector.d.ts +34 -0
- package/.cache/typescript/5.0/node_modules/undici-types/content-type.d.ts +21 -0
- package/.cache/typescript/5.0/node_modules/undici-types/cookies.d.ts +28 -0
- package/.cache/typescript/5.0/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/.cache/typescript/5.0/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/.cache/typescript/5.0/node_modules/undici-types/errors.d.ts +128 -0
- package/.cache/typescript/5.0/node_modules/undici-types/fetch.d.ts +209 -0
- package/.cache/typescript/5.0/node_modules/undici-types/file.d.ts +39 -0
- package/.cache/typescript/5.0/node_modules/undici-types/filereader.d.ts +54 -0
- package/.cache/typescript/5.0/node_modules/undici-types/formdata.d.ts +108 -0
- package/.cache/typescript/5.0/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/.cache/typescript/5.0/node_modules/undici-types/global-origin.d.ts +7 -0
- package/.cache/typescript/5.0/node_modules/undici-types/handlers.d.ts +9 -0
- package/.cache/typescript/5.0/node_modules/undici-types/header.d.ts +4 -0
- package/.cache/typescript/5.0/node_modules/undici-types/index.d.ts +63 -0
- package/.cache/typescript/5.0/node_modules/undici-types/interceptors.d.ts +5 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-client.d.ts +25 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/.cache/typescript/5.0/node_modules/undici-types/package.json +55 -0
- package/.cache/typescript/5.0/node_modules/undici-types/patch.d.ts +71 -0
- package/.cache/typescript/5.0/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/undici-types/pool.d.ts +28 -0
- package/.cache/typescript/5.0/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/.cache/typescript/5.0/node_modules/undici-types/readable.d.ts +61 -0
- package/.cache/typescript/5.0/node_modules/undici-types/webidl.d.ts +220 -0
- package/.cache/typescript/5.0/node_modules/undici-types/websocket.d.ts +131 -0
- package/.cache/typescript/5.0/package-lock.json +166 -0
- package/.cache/typescript/5.0/package.json +1 -0
- package/.replit +14 -0
- package/.upm/store.json +1 -0
- package/README.md +24 -0
- package/index.js +1 -0
- package/package.json +21 -0
@@ -0,0 +1,523 @@
|
|
1
|
+
/** All valid namespaces in HTML. */
|
2
|
+
export var NS;
|
3
|
+
(function (NS) {
|
4
|
+
NS["HTML"] = "http://www.w3.org/1999/xhtml";
|
5
|
+
NS["MATHML"] = "http://www.w3.org/1998/Math/MathML";
|
6
|
+
NS["SVG"] = "http://www.w3.org/2000/svg";
|
7
|
+
NS["XLINK"] = "http://www.w3.org/1999/xlink";
|
8
|
+
NS["XML"] = "http://www.w3.org/XML/1998/namespace";
|
9
|
+
NS["XMLNS"] = "http://www.w3.org/2000/xmlns/";
|
10
|
+
})(NS = NS || (NS = {}));
|
11
|
+
export var ATTRS;
|
12
|
+
(function (ATTRS) {
|
13
|
+
ATTRS["TYPE"] = "type";
|
14
|
+
ATTRS["ACTION"] = "action";
|
15
|
+
ATTRS["ENCODING"] = "encoding";
|
16
|
+
ATTRS["PROMPT"] = "prompt";
|
17
|
+
ATTRS["NAME"] = "name";
|
18
|
+
ATTRS["COLOR"] = "color";
|
19
|
+
ATTRS["FACE"] = "face";
|
20
|
+
ATTRS["SIZE"] = "size";
|
21
|
+
})(ATTRS = ATTRS || (ATTRS = {}));
|
22
|
+
/**
|
23
|
+
* The mode of the document.
|
24
|
+
*
|
25
|
+
* @see {@link https://dom.spec.whatwg.org/#concept-document-limited-quirks}
|
26
|
+
*/
|
27
|
+
export var DOCUMENT_MODE;
|
28
|
+
(function (DOCUMENT_MODE) {
|
29
|
+
DOCUMENT_MODE["NO_QUIRKS"] = "no-quirks";
|
30
|
+
DOCUMENT_MODE["QUIRKS"] = "quirks";
|
31
|
+
DOCUMENT_MODE["LIMITED_QUIRKS"] = "limited-quirks";
|
32
|
+
})(DOCUMENT_MODE = DOCUMENT_MODE || (DOCUMENT_MODE = {}));
|
33
|
+
export var TAG_NAMES;
|
34
|
+
(function (TAG_NAMES) {
|
35
|
+
TAG_NAMES["A"] = "a";
|
36
|
+
TAG_NAMES["ADDRESS"] = "address";
|
37
|
+
TAG_NAMES["ANNOTATION_XML"] = "annotation-xml";
|
38
|
+
TAG_NAMES["APPLET"] = "applet";
|
39
|
+
TAG_NAMES["AREA"] = "area";
|
40
|
+
TAG_NAMES["ARTICLE"] = "article";
|
41
|
+
TAG_NAMES["ASIDE"] = "aside";
|
42
|
+
TAG_NAMES["B"] = "b";
|
43
|
+
TAG_NAMES["BASE"] = "base";
|
44
|
+
TAG_NAMES["BASEFONT"] = "basefont";
|
45
|
+
TAG_NAMES["BGSOUND"] = "bgsound";
|
46
|
+
TAG_NAMES["BIG"] = "big";
|
47
|
+
TAG_NAMES["BLOCKQUOTE"] = "blockquote";
|
48
|
+
TAG_NAMES["BODY"] = "body";
|
49
|
+
TAG_NAMES["BR"] = "br";
|
50
|
+
TAG_NAMES["BUTTON"] = "button";
|
51
|
+
TAG_NAMES["CAPTION"] = "caption";
|
52
|
+
TAG_NAMES["CENTER"] = "center";
|
53
|
+
TAG_NAMES["CODE"] = "code";
|
54
|
+
TAG_NAMES["COL"] = "col";
|
55
|
+
TAG_NAMES["COLGROUP"] = "colgroup";
|
56
|
+
TAG_NAMES["DD"] = "dd";
|
57
|
+
TAG_NAMES["DESC"] = "desc";
|
58
|
+
TAG_NAMES["DETAILS"] = "details";
|
59
|
+
TAG_NAMES["DIALOG"] = "dialog";
|
60
|
+
TAG_NAMES["DIR"] = "dir";
|
61
|
+
TAG_NAMES["DIV"] = "div";
|
62
|
+
TAG_NAMES["DL"] = "dl";
|
63
|
+
TAG_NAMES["DT"] = "dt";
|
64
|
+
TAG_NAMES["EM"] = "em";
|
65
|
+
TAG_NAMES["EMBED"] = "embed";
|
66
|
+
TAG_NAMES["FIELDSET"] = "fieldset";
|
67
|
+
TAG_NAMES["FIGCAPTION"] = "figcaption";
|
68
|
+
TAG_NAMES["FIGURE"] = "figure";
|
69
|
+
TAG_NAMES["FONT"] = "font";
|
70
|
+
TAG_NAMES["FOOTER"] = "footer";
|
71
|
+
TAG_NAMES["FOREIGN_OBJECT"] = "foreignObject";
|
72
|
+
TAG_NAMES["FORM"] = "form";
|
73
|
+
TAG_NAMES["FRAME"] = "frame";
|
74
|
+
TAG_NAMES["FRAMESET"] = "frameset";
|
75
|
+
TAG_NAMES["H1"] = "h1";
|
76
|
+
TAG_NAMES["H2"] = "h2";
|
77
|
+
TAG_NAMES["H3"] = "h3";
|
78
|
+
TAG_NAMES["H4"] = "h4";
|
79
|
+
TAG_NAMES["H5"] = "h5";
|
80
|
+
TAG_NAMES["H6"] = "h6";
|
81
|
+
TAG_NAMES["HEAD"] = "head";
|
82
|
+
TAG_NAMES["HEADER"] = "header";
|
83
|
+
TAG_NAMES["HGROUP"] = "hgroup";
|
84
|
+
TAG_NAMES["HR"] = "hr";
|
85
|
+
TAG_NAMES["HTML"] = "html";
|
86
|
+
TAG_NAMES["I"] = "i";
|
87
|
+
TAG_NAMES["IMG"] = "img";
|
88
|
+
TAG_NAMES["IMAGE"] = "image";
|
89
|
+
TAG_NAMES["INPUT"] = "input";
|
90
|
+
TAG_NAMES["IFRAME"] = "iframe";
|
91
|
+
TAG_NAMES["KEYGEN"] = "keygen";
|
92
|
+
TAG_NAMES["LABEL"] = "label";
|
93
|
+
TAG_NAMES["LI"] = "li";
|
94
|
+
TAG_NAMES["LINK"] = "link";
|
95
|
+
TAG_NAMES["LISTING"] = "listing";
|
96
|
+
TAG_NAMES["MAIN"] = "main";
|
97
|
+
TAG_NAMES["MALIGNMARK"] = "malignmark";
|
98
|
+
TAG_NAMES["MARQUEE"] = "marquee";
|
99
|
+
TAG_NAMES["MATH"] = "math";
|
100
|
+
TAG_NAMES["MENU"] = "menu";
|
101
|
+
TAG_NAMES["META"] = "meta";
|
102
|
+
TAG_NAMES["MGLYPH"] = "mglyph";
|
103
|
+
TAG_NAMES["MI"] = "mi";
|
104
|
+
TAG_NAMES["MO"] = "mo";
|
105
|
+
TAG_NAMES["MN"] = "mn";
|
106
|
+
TAG_NAMES["MS"] = "ms";
|
107
|
+
TAG_NAMES["MTEXT"] = "mtext";
|
108
|
+
TAG_NAMES["NAV"] = "nav";
|
109
|
+
TAG_NAMES["NOBR"] = "nobr";
|
110
|
+
TAG_NAMES["NOFRAMES"] = "noframes";
|
111
|
+
TAG_NAMES["NOEMBED"] = "noembed";
|
112
|
+
TAG_NAMES["NOSCRIPT"] = "noscript";
|
113
|
+
TAG_NAMES["OBJECT"] = "object";
|
114
|
+
TAG_NAMES["OL"] = "ol";
|
115
|
+
TAG_NAMES["OPTGROUP"] = "optgroup";
|
116
|
+
TAG_NAMES["OPTION"] = "option";
|
117
|
+
TAG_NAMES["P"] = "p";
|
118
|
+
TAG_NAMES["PARAM"] = "param";
|
119
|
+
TAG_NAMES["PLAINTEXT"] = "plaintext";
|
120
|
+
TAG_NAMES["PRE"] = "pre";
|
121
|
+
TAG_NAMES["RB"] = "rb";
|
122
|
+
TAG_NAMES["RP"] = "rp";
|
123
|
+
TAG_NAMES["RT"] = "rt";
|
124
|
+
TAG_NAMES["RTC"] = "rtc";
|
125
|
+
TAG_NAMES["RUBY"] = "ruby";
|
126
|
+
TAG_NAMES["S"] = "s";
|
127
|
+
TAG_NAMES["SCRIPT"] = "script";
|
128
|
+
TAG_NAMES["SECTION"] = "section";
|
129
|
+
TAG_NAMES["SELECT"] = "select";
|
130
|
+
TAG_NAMES["SOURCE"] = "source";
|
131
|
+
TAG_NAMES["SMALL"] = "small";
|
132
|
+
TAG_NAMES["SPAN"] = "span";
|
133
|
+
TAG_NAMES["STRIKE"] = "strike";
|
134
|
+
TAG_NAMES["STRONG"] = "strong";
|
135
|
+
TAG_NAMES["STYLE"] = "style";
|
136
|
+
TAG_NAMES["SUB"] = "sub";
|
137
|
+
TAG_NAMES["SUMMARY"] = "summary";
|
138
|
+
TAG_NAMES["SUP"] = "sup";
|
139
|
+
TAG_NAMES["TABLE"] = "table";
|
140
|
+
TAG_NAMES["TBODY"] = "tbody";
|
141
|
+
TAG_NAMES["TEMPLATE"] = "template";
|
142
|
+
TAG_NAMES["TEXTAREA"] = "textarea";
|
143
|
+
TAG_NAMES["TFOOT"] = "tfoot";
|
144
|
+
TAG_NAMES["TD"] = "td";
|
145
|
+
TAG_NAMES["TH"] = "th";
|
146
|
+
TAG_NAMES["THEAD"] = "thead";
|
147
|
+
TAG_NAMES["TITLE"] = "title";
|
148
|
+
TAG_NAMES["TR"] = "tr";
|
149
|
+
TAG_NAMES["TRACK"] = "track";
|
150
|
+
TAG_NAMES["TT"] = "tt";
|
151
|
+
TAG_NAMES["U"] = "u";
|
152
|
+
TAG_NAMES["UL"] = "ul";
|
153
|
+
TAG_NAMES["SVG"] = "svg";
|
154
|
+
TAG_NAMES["VAR"] = "var";
|
155
|
+
TAG_NAMES["WBR"] = "wbr";
|
156
|
+
TAG_NAMES["XMP"] = "xmp";
|
157
|
+
})(TAG_NAMES = TAG_NAMES || (TAG_NAMES = {}));
|
158
|
+
/**
|
159
|
+
* Tag IDs are numeric IDs for known tag names.
|
160
|
+
*
|
161
|
+
* We use tag IDs to improve the performance of tag name comparisons.
|
162
|
+
*/
|
163
|
+
export var TAG_ID;
|
164
|
+
(function (TAG_ID) {
|
165
|
+
TAG_ID[TAG_ID["UNKNOWN"] = 0] = "UNKNOWN";
|
166
|
+
TAG_ID[TAG_ID["A"] = 1] = "A";
|
167
|
+
TAG_ID[TAG_ID["ADDRESS"] = 2] = "ADDRESS";
|
168
|
+
TAG_ID[TAG_ID["ANNOTATION_XML"] = 3] = "ANNOTATION_XML";
|
169
|
+
TAG_ID[TAG_ID["APPLET"] = 4] = "APPLET";
|
170
|
+
TAG_ID[TAG_ID["AREA"] = 5] = "AREA";
|
171
|
+
TAG_ID[TAG_ID["ARTICLE"] = 6] = "ARTICLE";
|
172
|
+
TAG_ID[TAG_ID["ASIDE"] = 7] = "ASIDE";
|
173
|
+
TAG_ID[TAG_ID["B"] = 8] = "B";
|
174
|
+
TAG_ID[TAG_ID["BASE"] = 9] = "BASE";
|
175
|
+
TAG_ID[TAG_ID["BASEFONT"] = 10] = "BASEFONT";
|
176
|
+
TAG_ID[TAG_ID["BGSOUND"] = 11] = "BGSOUND";
|
177
|
+
TAG_ID[TAG_ID["BIG"] = 12] = "BIG";
|
178
|
+
TAG_ID[TAG_ID["BLOCKQUOTE"] = 13] = "BLOCKQUOTE";
|
179
|
+
TAG_ID[TAG_ID["BODY"] = 14] = "BODY";
|
180
|
+
TAG_ID[TAG_ID["BR"] = 15] = "BR";
|
181
|
+
TAG_ID[TAG_ID["BUTTON"] = 16] = "BUTTON";
|
182
|
+
TAG_ID[TAG_ID["CAPTION"] = 17] = "CAPTION";
|
183
|
+
TAG_ID[TAG_ID["CENTER"] = 18] = "CENTER";
|
184
|
+
TAG_ID[TAG_ID["CODE"] = 19] = "CODE";
|
185
|
+
TAG_ID[TAG_ID["COL"] = 20] = "COL";
|
186
|
+
TAG_ID[TAG_ID["COLGROUP"] = 21] = "COLGROUP";
|
187
|
+
TAG_ID[TAG_ID["DD"] = 22] = "DD";
|
188
|
+
TAG_ID[TAG_ID["DESC"] = 23] = "DESC";
|
189
|
+
TAG_ID[TAG_ID["DETAILS"] = 24] = "DETAILS";
|
190
|
+
TAG_ID[TAG_ID["DIALOG"] = 25] = "DIALOG";
|
191
|
+
TAG_ID[TAG_ID["DIR"] = 26] = "DIR";
|
192
|
+
TAG_ID[TAG_ID["DIV"] = 27] = "DIV";
|
193
|
+
TAG_ID[TAG_ID["DL"] = 28] = "DL";
|
194
|
+
TAG_ID[TAG_ID["DT"] = 29] = "DT";
|
195
|
+
TAG_ID[TAG_ID["EM"] = 30] = "EM";
|
196
|
+
TAG_ID[TAG_ID["EMBED"] = 31] = "EMBED";
|
197
|
+
TAG_ID[TAG_ID["FIELDSET"] = 32] = "FIELDSET";
|
198
|
+
TAG_ID[TAG_ID["FIGCAPTION"] = 33] = "FIGCAPTION";
|
199
|
+
TAG_ID[TAG_ID["FIGURE"] = 34] = "FIGURE";
|
200
|
+
TAG_ID[TAG_ID["FONT"] = 35] = "FONT";
|
201
|
+
TAG_ID[TAG_ID["FOOTER"] = 36] = "FOOTER";
|
202
|
+
TAG_ID[TAG_ID["FOREIGN_OBJECT"] = 37] = "FOREIGN_OBJECT";
|
203
|
+
TAG_ID[TAG_ID["FORM"] = 38] = "FORM";
|
204
|
+
TAG_ID[TAG_ID["FRAME"] = 39] = "FRAME";
|
205
|
+
TAG_ID[TAG_ID["FRAMESET"] = 40] = "FRAMESET";
|
206
|
+
TAG_ID[TAG_ID["H1"] = 41] = "H1";
|
207
|
+
TAG_ID[TAG_ID["H2"] = 42] = "H2";
|
208
|
+
TAG_ID[TAG_ID["H3"] = 43] = "H3";
|
209
|
+
TAG_ID[TAG_ID["H4"] = 44] = "H4";
|
210
|
+
TAG_ID[TAG_ID["H5"] = 45] = "H5";
|
211
|
+
TAG_ID[TAG_ID["H6"] = 46] = "H6";
|
212
|
+
TAG_ID[TAG_ID["HEAD"] = 47] = "HEAD";
|
213
|
+
TAG_ID[TAG_ID["HEADER"] = 48] = "HEADER";
|
214
|
+
TAG_ID[TAG_ID["HGROUP"] = 49] = "HGROUP";
|
215
|
+
TAG_ID[TAG_ID["HR"] = 50] = "HR";
|
216
|
+
TAG_ID[TAG_ID["HTML"] = 51] = "HTML";
|
217
|
+
TAG_ID[TAG_ID["I"] = 52] = "I";
|
218
|
+
TAG_ID[TAG_ID["IMG"] = 53] = "IMG";
|
219
|
+
TAG_ID[TAG_ID["IMAGE"] = 54] = "IMAGE";
|
220
|
+
TAG_ID[TAG_ID["INPUT"] = 55] = "INPUT";
|
221
|
+
TAG_ID[TAG_ID["IFRAME"] = 56] = "IFRAME";
|
222
|
+
TAG_ID[TAG_ID["KEYGEN"] = 57] = "KEYGEN";
|
223
|
+
TAG_ID[TAG_ID["LABEL"] = 58] = "LABEL";
|
224
|
+
TAG_ID[TAG_ID["LI"] = 59] = "LI";
|
225
|
+
TAG_ID[TAG_ID["LINK"] = 60] = "LINK";
|
226
|
+
TAG_ID[TAG_ID["LISTING"] = 61] = "LISTING";
|
227
|
+
TAG_ID[TAG_ID["MAIN"] = 62] = "MAIN";
|
228
|
+
TAG_ID[TAG_ID["MALIGNMARK"] = 63] = "MALIGNMARK";
|
229
|
+
TAG_ID[TAG_ID["MARQUEE"] = 64] = "MARQUEE";
|
230
|
+
TAG_ID[TAG_ID["MATH"] = 65] = "MATH";
|
231
|
+
TAG_ID[TAG_ID["MENU"] = 66] = "MENU";
|
232
|
+
TAG_ID[TAG_ID["META"] = 67] = "META";
|
233
|
+
TAG_ID[TAG_ID["MGLYPH"] = 68] = "MGLYPH";
|
234
|
+
TAG_ID[TAG_ID["MI"] = 69] = "MI";
|
235
|
+
TAG_ID[TAG_ID["MO"] = 70] = "MO";
|
236
|
+
TAG_ID[TAG_ID["MN"] = 71] = "MN";
|
237
|
+
TAG_ID[TAG_ID["MS"] = 72] = "MS";
|
238
|
+
TAG_ID[TAG_ID["MTEXT"] = 73] = "MTEXT";
|
239
|
+
TAG_ID[TAG_ID["NAV"] = 74] = "NAV";
|
240
|
+
TAG_ID[TAG_ID["NOBR"] = 75] = "NOBR";
|
241
|
+
TAG_ID[TAG_ID["NOFRAMES"] = 76] = "NOFRAMES";
|
242
|
+
TAG_ID[TAG_ID["NOEMBED"] = 77] = "NOEMBED";
|
243
|
+
TAG_ID[TAG_ID["NOSCRIPT"] = 78] = "NOSCRIPT";
|
244
|
+
TAG_ID[TAG_ID["OBJECT"] = 79] = "OBJECT";
|
245
|
+
TAG_ID[TAG_ID["OL"] = 80] = "OL";
|
246
|
+
TAG_ID[TAG_ID["OPTGROUP"] = 81] = "OPTGROUP";
|
247
|
+
TAG_ID[TAG_ID["OPTION"] = 82] = "OPTION";
|
248
|
+
TAG_ID[TAG_ID["P"] = 83] = "P";
|
249
|
+
TAG_ID[TAG_ID["PARAM"] = 84] = "PARAM";
|
250
|
+
TAG_ID[TAG_ID["PLAINTEXT"] = 85] = "PLAINTEXT";
|
251
|
+
TAG_ID[TAG_ID["PRE"] = 86] = "PRE";
|
252
|
+
TAG_ID[TAG_ID["RB"] = 87] = "RB";
|
253
|
+
TAG_ID[TAG_ID["RP"] = 88] = "RP";
|
254
|
+
TAG_ID[TAG_ID["RT"] = 89] = "RT";
|
255
|
+
TAG_ID[TAG_ID["RTC"] = 90] = "RTC";
|
256
|
+
TAG_ID[TAG_ID["RUBY"] = 91] = "RUBY";
|
257
|
+
TAG_ID[TAG_ID["S"] = 92] = "S";
|
258
|
+
TAG_ID[TAG_ID["SCRIPT"] = 93] = "SCRIPT";
|
259
|
+
TAG_ID[TAG_ID["SECTION"] = 94] = "SECTION";
|
260
|
+
TAG_ID[TAG_ID["SELECT"] = 95] = "SELECT";
|
261
|
+
TAG_ID[TAG_ID["SOURCE"] = 96] = "SOURCE";
|
262
|
+
TAG_ID[TAG_ID["SMALL"] = 97] = "SMALL";
|
263
|
+
TAG_ID[TAG_ID["SPAN"] = 98] = "SPAN";
|
264
|
+
TAG_ID[TAG_ID["STRIKE"] = 99] = "STRIKE";
|
265
|
+
TAG_ID[TAG_ID["STRONG"] = 100] = "STRONG";
|
266
|
+
TAG_ID[TAG_ID["STYLE"] = 101] = "STYLE";
|
267
|
+
TAG_ID[TAG_ID["SUB"] = 102] = "SUB";
|
268
|
+
TAG_ID[TAG_ID["SUMMARY"] = 103] = "SUMMARY";
|
269
|
+
TAG_ID[TAG_ID["SUP"] = 104] = "SUP";
|
270
|
+
TAG_ID[TAG_ID["TABLE"] = 105] = "TABLE";
|
271
|
+
TAG_ID[TAG_ID["TBODY"] = 106] = "TBODY";
|
272
|
+
TAG_ID[TAG_ID["TEMPLATE"] = 107] = "TEMPLATE";
|
273
|
+
TAG_ID[TAG_ID["TEXTAREA"] = 108] = "TEXTAREA";
|
274
|
+
TAG_ID[TAG_ID["TFOOT"] = 109] = "TFOOT";
|
275
|
+
TAG_ID[TAG_ID["TD"] = 110] = "TD";
|
276
|
+
TAG_ID[TAG_ID["TH"] = 111] = "TH";
|
277
|
+
TAG_ID[TAG_ID["THEAD"] = 112] = "THEAD";
|
278
|
+
TAG_ID[TAG_ID["TITLE"] = 113] = "TITLE";
|
279
|
+
TAG_ID[TAG_ID["TR"] = 114] = "TR";
|
280
|
+
TAG_ID[TAG_ID["TRACK"] = 115] = "TRACK";
|
281
|
+
TAG_ID[TAG_ID["TT"] = 116] = "TT";
|
282
|
+
TAG_ID[TAG_ID["U"] = 117] = "U";
|
283
|
+
TAG_ID[TAG_ID["UL"] = 118] = "UL";
|
284
|
+
TAG_ID[TAG_ID["SVG"] = 119] = "SVG";
|
285
|
+
TAG_ID[TAG_ID["VAR"] = 120] = "VAR";
|
286
|
+
TAG_ID[TAG_ID["WBR"] = 121] = "WBR";
|
287
|
+
TAG_ID[TAG_ID["XMP"] = 122] = "XMP";
|
288
|
+
})(TAG_ID = TAG_ID || (TAG_ID = {}));
|
289
|
+
const TAG_NAME_TO_ID = new Map([
|
290
|
+
[TAG_NAMES.A, TAG_ID.A],
|
291
|
+
[TAG_NAMES.ADDRESS, TAG_ID.ADDRESS],
|
292
|
+
[TAG_NAMES.ANNOTATION_XML, TAG_ID.ANNOTATION_XML],
|
293
|
+
[TAG_NAMES.APPLET, TAG_ID.APPLET],
|
294
|
+
[TAG_NAMES.AREA, TAG_ID.AREA],
|
295
|
+
[TAG_NAMES.ARTICLE, TAG_ID.ARTICLE],
|
296
|
+
[TAG_NAMES.ASIDE, TAG_ID.ASIDE],
|
297
|
+
[TAG_NAMES.B, TAG_ID.B],
|
298
|
+
[TAG_NAMES.BASE, TAG_ID.BASE],
|
299
|
+
[TAG_NAMES.BASEFONT, TAG_ID.BASEFONT],
|
300
|
+
[TAG_NAMES.BGSOUND, TAG_ID.BGSOUND],
|
301
|
+
[TAG_NAMES.BIG, TAG_ID.BIG],
|
302
|
+
[TAG_NAMES.BLOCKQUOTE, TAG_ID.BLOCKQUOTE],
|
303
|
+
[TAG_NAMES.BODY, TAG_ID.BODY],
|
304
|
+
[TAG_NAMES.BR, TAG_ID.BR],
|
305
|
+
[TAG_NAMES.BUTTON, TAG_ID.BUTTON],
|
306
|
+
[TAG_NAMES.CAPTION, TAG_ID.CAPTION],
|
307
|
+
[TAG_NAMES.CENTER, TAG_ID.CENTER],
|
308
|
+
[TAG_NAMES.CODE, TAG_ID.CODE],
|
309
|
+
[TAG_NAMES.COL, TAG_ID.COL],
|
310
|
+
[TAG_NAMES.COLGROUP, TAG_ID.COLGROUP],
|
311
|
+
[TAG_NAMES.DD, TAG_ID.DD],
|
312
|
+
[TAG_NAMES.DESC, TAG_ID.DESC],
|
313
|
+
[TAG_NAMES.DETAILS, TAG_ID.DETAILS],
|
314
|
+
[TAG_NAMES.DIALOG, TAG_ID.DIALOG],
|
315
|
+
[TAG_NAMES.DIR, TAG_ID.DIR],
|
316
|
+
[TAG_NAMES.DIV, TAG_ID.DIV],
|
317
|
+
[TAG_NAMES.DL, TAG_ID.DL],
|
318
|
+
[TAG_NAMES.DT, TAG_ID.DT],
|
319
|
+
[TAG_NAMES.EM, TAG_ID.EM],
|
320
|
+
[TAG_NAMES.EMBED, TAG_ID.EMBED],
|
321
|
+
[TAG_NAMES.FIELDSET, TAG_ID.FIELDSET],
|
322
|
+
[TAG_NAMES.FIGCAPTION, TAG_ID.FIGCAPTION],
|
323
|
+
[TAG_NAMES.FIGURE, TAG_ID.FIGURE],
|
324
|
+
[TAG_NAMES.FONT, TAG_ID.FONT],
|
325
|
+
[TAG_NAMES.FOOTER, TAG_ID.FOOTER],
|
326
|
+
[TAG_NAMES.FOREIGN_OBJECT, TAG_ID.FOREIGN_OBJECT],
|
327
|
+
[TAG_NAMES.FORM, TAG_ID.FORM],
|
328
|
+
[TAG_NAMES.FRAME, TAG_ID.FRAME],
|
329
|
+
[TAG_NAMES.FRAMESET, TAG_ID.FRAMESET],
|
330
|
+
[TAG_NAMES.H1, TAG_ID.H1],
|
331
|
+
[TAG_NAMES.H2, TAG_ID.H2],
|
332
|
+
[TAG_NAMES.H3, TAG_ID.H3],
|
333
|
+
[TAG_NAMES.H4, TAG_ID.H4],
|
334
|
+
[TAG_NAMES.H5, TAG_ID.H5],
|
335
|
+
[TAG_NAMES.H6, TAG_ID.H6],
|
336
|
+
[TAG_NAMES.HEAD, TAG_ID.HEAD],
|
337
|
+
[TAG_NAMES.HEADER, TAG_ID.HEADER],
|
338
|
+
[TAG_NAMES.HGROUP, TAG_ID.HGROUP],
|
339
|
+
[TAG_NAMES.HR, TAG_ID.HR],
|
340
|
+
[TAG_NAMES.HTML, TAG_ID.HTML],
|
341
|
+
[TAG_NAMES.I, TAG_ID.I],
|
342
|
+
[TAG_NAMES.IMG, TAG_ID.IMG],
|
343
|
+
[TAG_NAMES.IMAGE, TAG_ID.IMAGE],
|
344
|
+
[TAG_NAMES.INPUT, TAG_ID.INPUT],
|
345
|
+
[TAG_NAMES.IFRAME, TAG_ID.IFRAME],
|
346
|
+
[TAG_NAMES.KEYGEN, TAG_ID.KEYGEN],
|
347
|
+
[TAG_NAMES.LABEL, TAG_ID.LABEL],
|
348
|
+
[TAG_NAMES.LI, TAG_ID.LI],
|
349
|
+
[TAG_NAMES.LINK, TAG_ID.LINK],
|
350
|
+
[TAG_NAMES.LISTING, TAG_ID.LISTING],
|
351
|
+
[TAG_NAMES.MAIN, TAG_ID.MAIN],
|
352
|
+
[TAG_NAMES.MALIGNMARK, TAG_ID.MALIGNMARK],
|
353
|
+
[TAG_NAMES.MARQUEE, TAG_ID.MARQUEE],
|
354
|
+
[TAG_NAMES.MATH, TAG_ID.MATH],
|
355
|
+
[TAG_NAMES.MENU, TAG_ID.MENU],
|
356
|
+
[TAG_NAMES.META, TAG_ID.META],
|
357
|
+
[TAG_NAMES.MGLYPH, TAG_ID.MGLYPH],
|
358
|
+
[TAG_NAMES.MI, TAG_ID.MI],
|
359
|
+
[TAG_NAMES.MO, TAG_ID.MO],
|
360
|
+
[TAG_NAMES.MN, TAG_ID.MN],
|
361
|
+
[TAG_NAMES.MS, TAG_ID.MS],
|
362
|
+
[TAG_NAMES.MTEXT, TAG_ID.MTEXT],
|
363
|
+
[TAG_NAMES.NAV, TAG_ID.NAV],
|
364
|
+
[TAG_NAMES.NOBR, TAG_ID.NOBR],
|
365
|
+
[TAG_NAMES.NOFRAMES, TAG_ID.NOFRAMES],
|
366
|
+
[TAG_NAMES.NOEMBED, TAG_ID.NOEMBED],
|
367
|
+
[TAG_NAMES.NOSCRIPT, TAG_ID.NOSCRIPT],
|
368
|
+
[TAG_NAMES.OBJECT, TAG_ID.OBJECT],
|
369
|
+
[TAG_NAMES.OL, TAG_ID.OL],
|
370
|
+
[TAG_NAMES.OPTGROUP, TAG_ID.OPTGROUP],
|
371
|
+
[TAG_NAMES.OPTION, TAG_ID.OPTION],
|
372
|
+
[TAG_NAMES.P, TAG_ID.P],
|
373
|
+
[TAG_NAMES.PARAM, TAG_ID.PARAM],
|
374
|
+
[TAG_NAMES.PLAINTEXT, TAG_ID.PLAINTEXT],
|
375
|
+
[TAG_NAMES.PRE, TAG_ID.PRE],
|
376
|
+
[TAG_NAMES.RB, TAG_ID.RB],
|
377
|
+
[TAG_NAMES.RP, TAG_ID.RP],
|
378
|
+
[TAG_NAMES.RT, TAG_ID.RT],
|
379
|
+
[TAG_NAMES.RTC, TAG_ID.RTC],
|
380
|
+
[TAG_NAMES.RUBY, TAG_ID.RUBY],
|
381
|
+
[TAG_NAMES.S, TAG_ID.S],
|
382
|
+
[TAG_NAMES.SCRIPT, TAG_ID.SCRIPT],
|
383
|
+
[TAG_NAMES.SECTION, TAG_ID.SECTION],
|
384
|
+
[TAG_NAMES.SELECT, TAG_ID.SELECT],
|
385
|
+
[TAG_NAMES.SOURCE, TAG_ID.SOURCE],
|
386
|
+
[TAG_NAMES.SMALL, TAG_ID.SMALL],
|
387
|
+
[TAG_NAMES.SPAN, TAG_ID.SPAN],
|
388
|
+
[TAG_NAMES.STRIKE, TAG_ID.STRIKE],
|
389
|
+
[TAG_NAMES.STRONG, TAG_ID.STRONG],
|
390
|
+
[TAG_NAMES.STYLE, TAG_ID.STYLE],
|
391
|
+
[TAG_NAMES.SUB, TAG_ID.SUB],
|
392
|
+
[TAG_NAMES.SUMMARY, TAG_ID.SUMMARY],
|
393
|
+
[TAG_NAMES.SUP, TAG_ID.SUP],
|
394
|
+
[TAG_NAMES.TABLE, TAG_ID.TABLE],
|
395
|
+
[TAG_NAMES.TBODY, TAG_ID.TBODY],
|
396
|
+
[TAG_NAMES.TEMPLATE, TAG_ID.TEMPLATE],
|
397
|
+
[TAG_NAMES.TEXTAREA, TAG_ID.TEXTAREA],
|
398
|
+
[TAG_NAMES.TFOOT, TAG_ID.TFOOT],
|
399
|
+
[TAG_NAMES.TD, TAG_ID.TD],
|
400
|
+
[TAG_NAMES.TH, TAG_ID.TH],
|
401
|
+
[TAG_NAMES.THEAD, TAG_ID.THEAD],
|
402
|
+
[TAG_NAMES.TITLE, TAG_ID.TITLE],
|
403
|
+
[TAG_NAMES.TR, TAG_ID.TR],
|
404
|
+
[TAG_NAMES.TRACK, TAG_ID.TRACK],
|
405
|
+
[TAG_NAMES.TT, TAG_ID.TT],
|
406
|
+
[TAG_NAMES.U, TAG_ID.U],
|
407
|
+
[TAG_NAMES.UL, TAG_ID.UL],
|
408
|
+
[TAG_NAMES.SVG, TAG_ID.SVG],
|
409
|
+
[TAG_NAMES.VAR, TAG_ID.VAR],
|
410
|
+
[TAG_NAMES.WBR, TAG_ID.WBR],
|
411
|
+
[TAG_NAMES.XMP, TAG_ID.XMP],
|
412
|
+
]);
|
413
|
+
export function getTagID(tagName) {
|
414
|
+
var _a;
|
415
|
+
return (_a = TAG_NAME_TO_ID.get(tagName)) !== null && _a !== void 0 ? _a : TAG_ID.UNKNOWN;
|
416
|
+
}
|
417
|
+
const $ = TAG_ID;
|
418
|
+
export const SPECIAL_ELEMENTS = {
|
419
|
+
[NS.HTML]: new Set([
|
420
|
+
$.ADDRESS,
|
421
|
+
$.APPLET,
|
422
|
+
$.AREA,
|
423
|
+
$.ARTICLE,
|
424
|
+
$.ASIDE,
|
425
|
+
$.BASE,
|
426
|
+
$.BASEFONT,
|
427
|
+
$.BGSOUND,
|
428
|
+
$.BLOCKQUOTE,
|
429
|
+
$.BODY,
|
430
|
+
$.BR,
|
431
|
+
$.BUTTON,
|
432
|
+
$.CAPTION,
|
433
|
+
$.CENTER,
|
434
|
+
$.COL,
|
435
|
+
$.COLGROUP,
|
436
|
+
$.DD,
|
437
|
+
$.DETAILS,
|
438
|
+
$.DIR,
|
439
|
+
$.DIV,
|
440
|
+
$.DL,
|
441
|
+
$.DT,
|
442
|
+
$.EMBED,
|
443
|
+
$.FIELDSET,
|
444
|
+
$.FIGCAPTION,
|
445
|
+
$.FIGURE,
|
446
|
+
$.FOOTER,
|
447
|
+
$.FORM,
|
448
|
+
$.FRAME,
|
449
|
+
$.FRAMESET,
|
450
|
+
$.H1,
|
451
|
+
$.H2,
|
452
|
+
$.H3,
|
453
|
+
$.H4,
|
454
|
+
$.H5,
|
455
|
+
$.H6,
|
456
|
+
$.HEAD,
|
457
|
+
$.HEADER,
|
458
|
+
$.HGROUP,
|
459
|
+
$.HR,
|
460
|
+
$.HTML,
|
461
|
+
$.IFRAME,
|
462
|
+
$.IMG,
|
463
|
+
$.INPUT,
|
464
|
+
$.LI,
|
465
|
+
$.LINK,
|
466
|
+
$.LISTING,
|
467
|
+
$.MAIN,
|
468
|
+
$.MARQUEE,
|
469
|
+
$.MENU,
|
470
|
+
$.META,
|
471
|
+
$.NAV,
|
472
|
+
$.NOEMBED,
|
473
|
+
$.NOFRAMES,
|
474
|
+
$.NOSCRIPT,
|
475
|
+
$.OBJECT,
|
476
|
+
$.OL,
|
477
|
+
$.P,
|
478
|
+
$.PARAM,
|
479
|
+
$.PLAINTEXT,
|
480
|
+
$.PRE,
|
481
|
+
$.SCRIPT,
|
482
|
+
$.SECTION,
|
483
|
+
$.SELECT,
|
484
|
+
$.SOURCE,
|
485
|
+
$.STYLE,
|
486
|
+
$.SUMMARY,
|
487
|
+
$.TABLE,
|
488
|
+
$.TBODY,
|
489
|
+
$.TD,
|
490
|
+
$.TEMPLATE,
|
491
|
+
$.TEXTAREA,
|
492
|
+
$.TFOOT,
|
493
|
+
$.TH,
|
494
|
+
$.THEAD,
|
495
|
+
$.TITLE,
|
496
|
+
$.TR,
|
497
|
+
$.TRACK,
|
498
|
+
$.UL,
|
499
|
+
$.WBR,
|
500
|
+
$.XMP,
|
501
|
+
]),
|
502
|
+
[NS.MATHML]: new Set([$.MI, $.MO, $.MN, $.MS, $.MTEXT, $.ANNOTATION_XML]),
|
503
|
+
[NS.SVG]: new Set([$.TITLE, $.FOREIGN_OBJECT, $.DESC]),
|
504
|
+
[NS.XLINK]: new Set(),
|
505
|
+
[NS.XML]: new Set(),
|
506
|
+
[NS.XMLNS]: new Set(),
|
507
|
+
};
|
508
|
+
export function isNumberedHeader(tn) {
|
509
|
+
return tn === $.H1 || tn === $.H2 || tn === $.H3 || tn === $.H4 || tn === $.H5 || tn === $.H6;
|
510
|
+
}
|
511
|
+
const UNESCAPED_TEXT = new Set([
|
512
|
+
TAG_NAMES.STYLE,
|
513
|
+
TAG_NAMES.SCRIPT,
|
514
|
+
TAG_NAMES.XMP,
|
515
|
+
TAG_NAMES.IFRAME,
|
516
|
+
TAG_NAMES.NOEMBED,
|
517
|
+
TAG_NAMES.NOFRAMES,
|
518
|
+
TAG_NAMES.PLAINTEXT,
|
519
|
+
]);
|
520
|
+
export function hasUnescapedText(tn, scriptingEnabled) {
|
521
|
+
return UNESCAPED_TEXT.has(tn) || (scriptingEnabled && tn === TAG_NAMES.NOSCRIPT);
|
522
|
+
}
|
523
|
+
//# sourceMappingURL=html.js.map
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import type { TAG_ID } from './html.js';
|
2
|
+
export declare enum TokenType {
|
3
|
+
CHARACTER = 0,
|
4
|
+
NULL_CHARACTER = 1,
|
5
|
+
WHITESPACE_CHARACTER = 2,
|
6
|
+
START_TAG = 3,
|
7
|
+
END_TAG = 4,
|
8
|
+
COMMENT = 5,
|
9
|
+
DOCTYPE = 6,
|
10
|
+
EOF = 7,
|
11
|
+
HIBERNATION = 8
|
12
|
+
}
|
13
|
+
export interface Location {
|
14
|
+
/** One-based line index of the first character. */
|
15
|
+
startLine: number;
|
16
|
+
/** One-based column index of the first character. */
|
17
|
+
startCol: number;
|
18
|
+
/** Zero-based first character index. */
|
19
|
+
startOffset: number;
|
20
|
+
/** One-based line index of the last character. */
|
21
|
+
endLine: number;
|
22
|
+
/** One-based column index of the last character. Points directly *after* the last character. */
|
23
|
+
endCol: number;
|
24
|
+
/** Zero-based last character index. Points directly *after* the last character. */
|
25
|
+
endOffset: number;
|
26
|
+
}
|
27
|
+
export interface LocationWithAttributes extends Location {
|
28
|
+
/** Start tag attributes' location info. */
|
29
|
+
attrs?: Record<string, Location>;
|
30
|
+
}
|
31
|
+
export interface ElementLocation extends LocationWithAttributes {
|
32
|
+
/** Element's start tag location info. */
|
33
|
+
startTag?: Location;
|
34
|
+
/**
|
35
|
+
* Element's end tag location info.
|
36
|
+
* This property is undefined, if the element has no closing tag.
|
37
|
+
*/
|
38
|
+
endTag?: Location;
|
39
|
+
}
|
40
|
+
interface TokenBase {
|
41
|
+
readonly type: TokenType;
|
42
|
+
location: Location | null;
|
43
|
+
}
|
44
|
+
export interface DoctypeToken extends TokenBase {
|
45
|
+
readonly type: TokenType.DOCTYPE;
|
46
|
+
name: string | null;
|
47
|
+
forceQuirks: boolean;
|
48
|
+
publicId: string | null;
|
49
|
+
systemId: string | null;
|
50
|
+
}
|
51
|
+
export interface Attribute {
|
52
|
+
/** The name of the attribute. */
|
53
|
+
name: string;
|
54
|
+
/** The namespace of the attribute. */
|
55
|
+
namespace?: string;
|
56
|
+
/** The namespace-related prefix of the attribute. */
|
57
|
+
prefix?: string;
|
58
|
+
/** The value of the attribute. */
|
59
|
+
value: string;
|
60
|
+
}
|
61
|
+
export interface TagToken extends TokenBase {
|
62
|
+
readonly type: TokenType.START_TAG | TokenType.END_TAG;
|
63
|
+
tagName: string;
|
64
|
+
/** Used to cache the ID of the tag name. */
|
65
|
+
tagID: TAG_ID;
|
66
|
+
selfClosing: boolean;
|
67
|
+
ackSelfClosing: boolean;
|
68
|
+
attrs: Attribute[];
|
69
|
+
location: LocationWithAttributes | null;
|
70
|
+
}
|
71
|
+
export declare function getTokenAttr(token: TagToken, attrName: string): string | null;
|
72
|
+
export interface CommentToken extends TokenBase {
|
73
|
+
readonly type: TokenType.COMMENT;
|
74
|
+
data: string;
|
75
|
+
}
|
76
|
+
export interface EOFToken extends TokenBase {
|
77
|
+
readonly type: TokenType.EOF;
|
78
|
+
}
|
79
|
+
export interface CharacterToken extends TokenBase {
|
80
|
+
type: TokenType.CHARACTER | TokenType.NULL_CHARACTER | TokenType.WHITESPACE_CHARACTER;
|
81
|
+
chars: string;
|
82
|
+
}
|
83
|
+
export type Token = DoctypeToken | TagToken | CommentToken | EOFToken | CharacterToken;
|
84
|
+
export {};
|
85
|
+
//# sourceMappingURL=token.d.ts.map
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export var TokenType;
|
2
|
+
(function (TokenType) {
|
3
|
+
TokenType[TokenType["CHARACTER"] = 0] = "CHARACTER";
|
4
|
+
TokenType[TokenType["NULL_CHARACTER"] = 1] = "NULL_CHARACTER";
|
5
|
+
TokenType[TokenType["WHITESPACE_CHARACTER"] = 2] = "WHITESPACE_CHARACTER";
|
6
|
+
TokenType[TokenType["START_TAG"] = 3] = "START_TAG";
|
7
|
+
TokenType[TokenType["END_TAG"] = 4] = "END_TAG";
|
8
|
+
TokenType[TokenType["COMMENT"] = 5] = "COMMENT";
|
9
|
+
TokenType[TokenType["DOCTYPE"] = 6] = "DOCTYPE";
|
10
|
+
TokenType[TokenType["EOF"] = 7] = "EOF";
|
11
|
+
TokenType[TokenType["HIBERNATION"] = 8] = "HIBERNATION";
|
12
|
+
})(TokenType = TokenType || (TokenType = {}));
|
13
|
+
export function getTokenAttr(token, attrName) {
|
14
|
+
for (let i = token.attrs.length - 1; i >= 0; i--) {
|
15
|
+
if (token.attrs[i].name === attrName) {
|
16
|
+
return token.attrs[i].value;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
return null;
|
20
|
+
}
|
21
|
+
//# sourceMappingURL=token.js.map
|
@@ -0,0 +1,49 @@
|
|
1
|
+
export declare const REPLACEMENT_CHARACTER = "\uFFFD";
|
2
|
+
export declare enum CODE_POINTS {
|
3
|
+
EOF = -1,
|
4
|
+
NULL = 0,
|
5
|
+
TABULATION = 9,
|
6
|
+
CARRIAGE_RETURN = 13,
|
7
|
+
LINE_FEED = 10,
|
8
|
+
FORM_FEED = 12,
|
9
|
+
SPACE = 32,
|
10
|
+
EXCLAMATION_MARK = 33,
|
11
|
+
QUOTATION_MARK = 34,
|
12
|
+
NUMBER_SIGN = 35,
|
13
|
+
AMPERSAND = 38,
|
14
|
+
APOSTROPHE = 39,
|
15
|
+
HYPHEN_MINUS = 45,
|
16
|
+
SOLIDUS = 47,
|
17
|
+
DIGIT_0 = 48,
|
18
|
+
DIGIT_9 = 57,
|
19
|
+
SEMICOLON = 59,
|
20
|
+
LESS_THAN_SIGN = 60,
|
21
|
+
EQUALS_SIGN = 61,
|
22
|
+
GREATER_THAN_SIGN = 62,
|
23
|
+
QUESTION_MARK = 63,
|
24
|
+
LATIN_CAPITAL_A = 65,
|
25
|
+
LATIN_CAPITAL_F = 70,
|
26
|
+
LATIN_CAPITAL_X = 88,
|
27
|
+
LATIN_CAPITAL_Z = 90,
|
28
|
+
RIGHT_SQUARE_BRACKET = 93,
|
29
|
+
GRAVE_ACCENT = 96,
|
30
|
+
LATIN_SMALL_A = 97,
|
31
|
+
LATIN_SMALL_F = 102,
|
32
|
+
LATIN_SMALL_X = 120,
|
33
|
+
LATIN_SMALL_Z = 122,
|
34
|
+
REPLACEMENT_CHARACTER = 65533
|
35
|
+
}
|
36
|
+
export declare const SEQUENCES: {
|
37
|
+
DASH_DASH: string;
|
38
|
+
CDATA_START: string;
|
39
|
+
DOCTYPE: string;
|
40
|
+
SCRIPT: string;
|
41
|
+
PUBLIC: string;
|
42
|
+
SYSTEM: string;
|
43
|
+
};
|
44
|
+
export declare function isSurrogate(cp: number): boolean;
|
45
|
+
export declare function isSurrogatePair(cp: number): boolean;
|
46
|
+
export declare function getSurrogatePairCodePoint(cp1: number, cp2: number): number;
|
47
|
+
export declare function isControlCodePoint(cp: number): boolean;
|
48
|
+
export declare function isUndefinedCodePoint(cp: number): boolean;
|
49
|
+
//# sourceMappingURL=unicode.d.ts.map
|