@milpa/comal 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -2
- package/backend/contracts/artifact-check-v1.schema.json +213 -0
- package/backend/verifier/transport.mjs +27 -0
- package/bin/comal.mjs +21 -0
- package/bin/harness.mjs +3 -0
- package/docs/investigation.md +3 -0
- package/governance/chrome-task-v1.json +13 -0
- package/node_modules/ajv/.runkit_example.js +23 -0
- package/node_modules/ajv/LICENSE +22 -0
- package/node_modules/ajv/README.md +207 -0
- package/node_modules/ajv/dist/2019.d.ts +19 -0
- package/node_modules/ajv/dist/2019.js +61 -0
- package/node_modules/ajv/dist/2019.js.map +1 -0
- package/node_modules/ajv/dist/2020.d.ts +19 -0
- package/node_modules/ajv/dist/2020.js +55 -0
- package/node_modules/ajv/dist/2020.js.map +1 -0
- package/node_modules/ajv/dist/ajv.d.ts +18 -0
- package/node_modules/ajv/dist/ajv.js +50 -0
- package/node_modules/ajv/dist/ajv.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
- package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/node_modules/ajv/dist/compile/errors.js +123 -0
- package/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/node_modules/ajv/dist/compile/index.js +242 -0
- package/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/node_modules/ajv/dist/compile/names.js +28 -0
- package/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
- package/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/node_modules/ajv/dist/compile/rules.js +26 -0
- package/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/node_modules/ajv/dist/compile/util.js +178 -0
- package/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/node_modules/ajv/dist/core.d.ts +174 -0
- package/node_modules/ajv/dist/core.js +618 -0
- package/node_modules/ajv/dist/core.js.map +1 -0
- package/node_modules/ajv/dist/jtd.d.ts +47 -0
- package/node_modules/ajv/dist/jtd.js +72 -0
- package/node_modules/ajv/dist/jtd.js.map +1 -0
- package/node_modules/ajv/dist/refs/data.json +13 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/node_modules/ajv/dist/standalone/index.js +90 -0
- package/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/node_modules/ajv/dist/types/index.d.ts +183 -0
- package/node_modules/ajv/dist/types/index.js +3 -0
- package/node_modules/ajv/dist/types/index.js.map +1 -0
- package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
- package/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
- package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/node_modules/ajv/lib/2019.ts +81 -0
- package/node_modules/ajv/lib/2020.ts +75 -0
- package/node_modules/ajv/lib/ajv.ts +70 -0
- package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/node_modules/ajv/lib/compile/index.ts +324 -0
- package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/node_modules/ajv/lib/compile/names.ts +27 -0
- package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/node_modules/ajv/lib/compile/util.ts +213 -0
- package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/node_modules/ajv/lib/core.ts +892 -0
- package/node_modules/ajv/lib/jtd.ts +132 -0
- package/node_modules/ajv/lib/refs/data.json +13 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/node_modules/ajv/lib/types/index.ts +244 -0
- package/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/node_modules/ajv/package.json +126 -0
- package/node_modules/ansi-regex/index.d.ts +33 -0
- package/node_modules/ansi-regex/index.js +15 -0
- package/node_modules/ansi-regex/license +9 -0
- package/node_modules/ansi-regex/package.json +61 -0
- package/node_modules/ansi-regex/readme.md +66 -0
- package/node_modules/boolbase/README.md +10 -0
- package/node_modules/boolbase/index.js +8 -0
- package/node_modules/boolbase/package.json +23 -0
- package/node_modules/cheerio/LICENSE +21 -0
- package/node_modules/cheerio/Readme.md +229 -0
- package/node_modules/cheerio/dist/browser/api/attributes.d.ts +385 -0
- package/node_modules/cheerio/dist/browser/api/attributes.d.ts.map +1 -0
- package/node_modules/cheerio/dist/browser/api/attributes.js +636 -0
- package/node_modules/cheerio/dist/browser/api/attributes.js.map +1 -0
- package/node_modules/cheerio/dist/browser/api/css.d.ts +42 -0
- package/node_modules/cheerio/dist/browser/api/css.d.ts.map +1 -0
- package/node_modules/cheerio/dist/browser/api/css.js +116 -0
- package/node_modules/cheerio/dist/browser/api/css.js.map +1 -0
- package/node_modules/cheerio/dist/browser/api/extract.d.ts +27 -0
- package/node_modules/cheerio/dist/browser/api/extract.d.ts.map +1 -0
- package/node_modules/cheerio/dist/browser/api/extract.js +42 -0
- package/node_modules/cheerio/dist/browser/api/extract.js.map +1 -0
- package/node_modules/cheerio/dist/browser/api/forms.d.ts +36 -0
- package/node_modules/cheerio/dist/browser/api/forms.d.ts.map +1 -0
- package/node_modules/cheerio/dist/browser/api/forms.js +81 -0
- package/node_modules/cheerio/dist/browser/api/forms.js.map +1 -0
- package/node_modules/cheerio/dist/browser/api/manipulation.d.ts +528 -0
- package/node_modules/cheerio/dist/browser/api/manipulation.d.ts.map +1 -0
- package/node_modules/cheerio/dist/browser/api/manipulation.js +831 -0
- package/node_modules/cheerio/dist/browser/api/manipulation.js.map +1 -0
- package/node_modules/cheerio/dist/browser/api/traversing.d.ts +657 -0
- package/node_modules/cheerio/dist/browser/api/traversing.d.ts.map +1 -0
- package/node_modules/cheerio/dist/browser/api/traversing.js +857 -0
- package/node_modules/cheerio/dist/browser/api/traversing.js.map +1 -0
- package/node_modules/cheerio/dist/browser/cheerio.d.ts +85 -0
- package/node_modules/cheerio/dist/browser/cheerio.d.ts.map +1 -0
- package/node_modules/cheerio/dist/browser/cheerio.js +58 -0
- package/node_modules/cheerio/dist/browser/cheerio.js.map +1 -0
- package/node_modules/cheerio/dist/browser/index-browser.d.mts.map +1 -0
- package/node_modules/cheerio/dist/browser/index-browser.mjs.map +1 -0
- package/node_modules/cheerio/dist/browser/index.d.ts +5 -0
- package/node_modules/cheerio/dist/browser/index.js +3 -0
- package/node_modules/cheerio/dist/browser/load-parse.d.ts +20 -0
- package/node_modules/cheerio/dist/browser/load-parse.d.ts.map +1 -0
- package/node_modules/cheerio/dist/browser/load-parse.js +28 -0
- package/node_modules/cheerio/dist/browser/load-parse.js.map +1 -0
- package/node_modules/cheerio/dist/browser/load.d.ts +91 -0
- package/node_modules/cheerio/dist/browser/load.d.ts.map +1 -0
- package/node_modules/cheerio/dist/browser/load.js +129 -0
- package/node_modules/cheerio/dist/browser/load.js.map +1 -0
- package/node_modules/cheerio/dist/browser/options.d.ts +98 -0
- package/node_modules/cheerio/dist/browser/options.d.ts.map +1 -0
- package/node_modules/cheerio/dist/browser/options.js +34 -0
- package/node_modules/cheerio/dist/browser/options.js.map +1 -0
- package/node_modules/cheerio/dist/browser/package.json +3 -0
- package/node_modules/cheerio/dist/browser/parse.d.ts +18 -0
- package/node_modules/cheerio/dist/browser/parse.d.ts.map +1 -0
- package/node_modules/cheerio/dist/browser/parse.js +73 -0
- package/node_modules/cheerio/dist/browser/parse.js.map +1 -0
- package/node_modules/cheerio/dist/browser/parsers/parse5-adapter.d.ts +20 -0
- package/node_modules/cheerio/dist/browser/parsers/parse5-adapter.d.ts.map +1 -0
- package/node_modules/cheerio/dist/browser/parsers/parse5-adapter.js +50 -0
- package/node_modules/cheerio/dist/browser/parsers/parse5-adapter.js.map +1 -0
- package/node_modules/cheerio/dist/browser/slim.d.ts +25 -0
- package/node_modules/cheerio/dist/browser/slim.d.ts.map +1 -0
- package/node_modules/cheerio/dist/browser/slim.js +22 -0
- package/node_modules/cheerio/dist/browser/slim.js.map +1 -0
- package/node_modules/cheerio/dist/browser/static.d.ts +112 -0
- package/node_modules/cheerio/dist/browser/static.d.ts.map +1 -0
- package/node_modules/cheerio/dist/browser/static.js +204 -0
- package/node_modules/cheerio/dist/browser/static.js.map +1 -0
- package/node_modules/cheerio/dist/browser/types.d.ts +21 -0
- package/node_modules/cheerio/dist/browser/types.d.ts.map +1 -0
- package/node_modules/cheerio/dist/browser/types.js +3 -0
- package/node_modules/cheerio/dist/browser/types.js.map +1 -0
- package/node_modules/cheerio/dist/browser/utils.d.ts +55 -0
- package/node_modules/cheerio/dist/browser/utils.d.ts.map +1 -0
- package/node_modules/cheerio/dist/browser/utils.js +84 -0
- package/node_modules/cheerio/dist/browser/utils.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/api/attributes.d.ts +385 -0
- package/node_modules/cheerio/dist/commonjs/api/attributes.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/api/attributes.js +647 -0
- package/node_modules/cheerio/dist/commonjs/api/attributes.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/api/css.d.ts +42 -0
- package/node_modules/cheerio/dist/commonjs/api/css.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/api/css.js +119 -0
- package/node_modules/cheerio/dist/commonjs/api/css.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/api/extract.d.ts +27 -0
- package/node_modules/cheerio/dist/commonjs/api/extract.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/api/extract.js +45 -0
- package/node_modules/cheerio/dist/commonjs/api/extract.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/api/forms.d.ts +36 -0
- package/node_modules/cheerio/dist/commonjs/api/forms.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/api/forms.js +85 -0
- package/node_modules/cheerio/dist/commonjs/api/forms.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/api/manipulation.d.ts +528 -0
- package/node_modules/cheerio/dist/commonjs/api/manipulation.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/api/manipulation.js +850 -0
- package/node_modules/cheerio/dist/commonjs/api/manipulation.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/api/traversing.d.ts +657 -0
- package/node_modules/cheerio/dist/commonjs/api/traversing.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/api/traversing.js +914 -0
- package/node_modules/cheerio/dist/commonjs/api/traversing.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/cheerio.d.ts +85 -0
- package/node_modules/cheerio/dist/commonjs/cheerio.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/cheerio.js +95 -0
- package/node_modules/cheerio/dist/commonjs/cheerio.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/index.d.ts +104 -0
- package/node_modules/cheerio/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/index.js +250 -0
- package/node_modules/cheerio/dist/commonjs/index.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/load-parse.d.ts +20 -0
- package/node_modules/cheerio/dist/commonjs/load-parse.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/load-parse.js +34 -0
- package/node_modules/cheerio/dist/commonjs/load-parse.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/load.d.ts +91 -0
- package/node_modules/cheerio/dist/commonjs/load.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/load.js +165 -0
- package/node_modules/cheerio/dist/commonjs/load.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/options.d.ts +98 -0
- package/node_modules/cheerio/dist/commonjs/options.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/options.js +37 -0
- package/node_modules/cheerio/dist/commonjs/options.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/package.json +3 -0
- package/node_modules/cheerio/dist/commonjs/parse.d.ts +18 -0
- package/node_modules/cheerio/dist/commonjs/parse.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/parse.js +77 -0
- package/node_modules/cheerio/dist/commonjs/parse.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.d.ts +20 -0
- package/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.js +54 -0
- package/node_modules/cheerio/dist/commonjs/parsers/parse5-adapter.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/slim.d.ts +25 -0
- package/node_modules/cheerio/dist/commonjs/slim.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/slim.js +30 -0
- package/node_modules/cheerio/dist/commonjs/slim.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/static.d.ts +112 -0
- package/node_modules/cheerio/dist/commonjs/static.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/static.js +214 -0
- package/node_modules/cheerio/dist/commonjs/static.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/types.d.ts +21 -0
- package/node_modules/cheerio/dist/commonjs/types.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/types.js +4 -0
- package/node_modules/cheerio/dist/commonjs/types.js.map +1 -0
- package/node_modules/cheerio/dist/commonjs/utils.d.ts +55 -0
- package/node_modules/cheerio/dist/commonjs/utils.d.ts.map +1 -0
- package/node_modules/cheerio/dist/commonjs/utils.js +91 -0
- package/node_modules/cheerio/dist/commonjs/utils.js.map +1 -0
- package/node_modules/cheerio/dist/esm/api/attributes.d.ts +385 -0
- package/node_modules/cheerio/dist/esm/api/attributes.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/api/attributes.js +636 -0
- package/node_modules/cheerio/dist/esm/api/attributes.js.map +1 -0
- package/node_modules/cheerio/dist/esm/api/css.d.ts +42 -0
- package/node_modules/cheerio/dist/esm/api/css.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/api/css.js +116 -0
- package/node_modules/cheerio/dist/esm/api/css.js.map +1 -0
- package/node_modules/cheerio/dist/esm/api/extract.d.ts +27 -0
- package/node_modules/cheerio/dist/esm/api/extract.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/api/extract.js +42 -0
- package/node_modules/cheerio/dist/esm/api/extract.js.map +1 -0
- package/node_modules/cheerio/dist/esm/api/forms.d.ts +36 -0
- package/node_modules/cheerio/dist/esm/api/forms.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/api/forms.js +81 -0
- package/node_modules/cheerio/dist/esm/api/forms.js.map +1 -0
- package/node_modules/cheerio/dist/esm/api/manipulation.d.ts +528 -0
- package/node_modules/cheerio/dist/esm/api/manipulation.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/api/manipulation.js +831 -0
- package/node_modules/cheerio/dist/esm/api/manipulation.js.map +1 -0
- package/node_modules/cheerio/dist/esm/api/traversing.d.ts +657 -0
- package/node_modules/cheerio/dist/esm/api/traversing.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/api/traversing.js +857 -0
- package/node_modules/cheerio/dist/esm/api/traversing.js.map +1 -0
- package/node_modules/cheerio/dist/esm/cheerio.d.ts +85 -0
- package/node_modules/cheerio/dist/esm/cheerio.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/cheerio.js +58 -0
- package/node_modules/cheerio/dist/esm/cheerio.js.map +1 -0
- package/node_modules/cheerio/dist/esm/index.d.ts +104 -0
- package/node_modules/cheerio/dist/esm/index.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/index.js +202 -0
- package/node_modules/cheerio/dist/esm/index.js.map +1 -0
- package/node_modules/cheerio/dist/esm/load-parse.d.ts +20 -0
- package/node_modules/cheerio/dist/esm/load-parse.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/load-parse.js +28 -0
- package/node_modules/cheerio/dist/esm/load-parse.js.map +1 -0
- package/node_modules/cheerio/dist/esm/load.d.ts +91 -0
- package/node_modules/cheerio/dist/esm/load.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/load.js +129 -0
- package/node_modules/cheerio/dist/esm/load.js.map +1 -0
- package/node_modules/cheerio/dist/esm/options.d.ts +98 -0
- package/node_modules/cheerio/dist/esm/options.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/options.js +34 -0
- package/node_modules/cheerio/dist/esm/options.js.map +1 -0
- package/node_modules/cheerio/dist/esm/package.json +3 -0
- package/node_modules/cheerio/dist/esm/parse.d.ts +18 -0
- package/node_modules/cheerio/dist/esm/parse.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/parse.js +73 -0
- package/node_modules/cheerio/dist/esm/parse.js.map +1 -0
- package/node_modules/cheerio/dist/esm/parsers/parse5-adapter.d.ts +20 -0
- package/node_modules/cheerio/dist/esm/parsers/parse5-adapter.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/parsers/parse5-adapter.js +50 -0
- package/node_modules/cheerio/dist/esm/parsers/parse5-adapter.js.map +1 -0
- package/node_modules/cheerio/dist/esm/slim.d.ts +25 -0
- package/node_modules/cheerio/dist/esm/slim.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/slim.js +22 -0
- package/node_modules/cheerio/dist/esm/slim.js.map +1 -0
- package/node_modules/cheerio/dist/esm/static.d.ts +112 -0
- package/node_modules/cheerio/dist/esm/static.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/static.js +204 -0
- package/node_modules/cheerio/dist/esm/static.js.map +1 -0
- package/node_modules/cheerio/dist/esm/types.d.ts +21 -0
- package/node_modules/cheerio/dist/esm/types.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/types.js +3 -0
- package/node_modules/cheerio/dist/esm/types.js.map +1 -0
- package/node_modules/cheerio/dist/esm/utils.d.ts +55 -0
- package/node_modules/cheerio/dist/esm/utils.d.ts.map +1 -0
- package/node_modules/cheerio/dist/esm/utils.js +84 -0
- package/node_modules/cheerio/dist/esm/utils.js.map +1 -0
- package/node_modules/cheerio/package.json +182 -0
- package/node_modules/cheerio/src/api/attributes.ts +1145 -0
- package/node_modules/cheerio/src/api/css.ts +224 -0
- package/node_modules/cheerio/src/api/extract.ts +92 -0
- package/node_modules/cheerio/src/api/forms.ts +103 -0
- package/node_modules/cheerio/src/api/manipulation.ts +1115 -0
- package/node_modules/cheerio/src/api/traversing.ts +1175 -0
- package/node_modules/cheerio/src/cheerio.ts +143 -0
- package/node_modules/cheerio/src/index-browser.mts +10 -0
- package/node_modules/cheerio/src/index.ts +294 -0
- package/node_modules/cheerio/src/load-parse.ts +39 -0
- package/node_modules/cheerio/src/load.ts +282 -0
- package/node_modules/cheerio/src/options.ts +136 -0
- package/node_modules/cheerio/src/parse.ts +105 -0
- package/node_modules/cheerio/src/parsers/parse5-adapter.ts +66 -0
- package/node_modules/cheerio/src/slim.ts +33 -0
- package/node_modules/cheerio/src/static.ts +312 -0
- package/node_modules/cheerio/src/types.ts +58 -0
- package/node_modules/cheerio/src/utils.ts +99 -0
- package/node_modules/cheerio-select/LICENSE +11 -0
- package/node_modules/cheerio-select/README.md +18 -0
- package/node_modules/cheerio-select/lib/esm/helpers.d.ts +5 -0
- package/node_modules/cheerio-select/lib/esm/helpers.d.ts.map +1 -0
- package/node_modules/cheerio-select/lib/esm/helpers.js +20 -0
- package/node_modules/cheerio-select/lib/esm/helpers.js.map +1 -0
- package/node_modules/cheerio-select/lib/esm/index.d.ts +12 -0
- package/node_modules/cheerio-select/lib/esm/index.d.ts.map +1 -0
- package/node_modules/cheerio-select/lib/esm/index.js +241 -0
- package/node_modules/cheerio-select/lib/esm/index.js.map +1 -0
- package/node_modules/cheerio-select/lib/esm/package.json +1 -0
- package/node_modules/cheerio-select/lib/esm/positionals.d.ts +10 -0
- package/node_modules/cheerio-select/lib/esm/positionals.d.ts.map +1 -0
- package/node_modules/cheerio-select/lib/esm/positionals.js +47 -0
- package/node_modules/cheerio-select/lib/esm/positionals.js.map +1 -0
- package/node_modules/cheerio-select/lib/helpers.d.ts +5 -0
- package/node_modules/cheerio-select/lib/helpers.d.ts.map +1 -0
- package/node_modules/cheerio-select/lib/helpers.js +26 -0
- package/node_modules/cheerio-select/lib/helpers.js.map +1 -0
- package/node_modules/cheerio-select/lib/index.d.ts +12 -0
- package/node_modules/cheerio-select/lib/index.d.ts.map +1 -0
- package/node_modules/cheerio-select/lib/index.js +302 -0
- package/node_modules/cheerio-select/lib/index.js.map +1 -0
- package/node_modules/cheerio-select/lib/positionals.d.ts +10 -0
- package/node_modules/cheerio-select/lib/positionals.d.ts.map +1 -0
- package/node_modules/cheerio-select/lib/positionals.js +52 -0
- package/node_modules/cheerio-select/lib/positionals.js.map +1 -0
- package/node_modules/cheerio-select/package.json +76 -0
- package/node_modules/css-select/LICENSE +11 -0
- package/node_modules/css-select/README.md +264 -0
- package/node_modules/css-select/lib/attributes.d.ts +7 -0
- package/node_modules/css-select/lib/attributes.d.ts.map +1 -0
- package/node_modules/css-select/lib/attributes.js +236 -0
- package/node_modules/css-select/lib/attributes.js.map +1 -0
- package/node_modules/css-select/lib/compile.d.ts +13 -0
- package/node_modules/css-select/lib/compile.d.ts.map +1 -0
- package/node_modules/css-select/lib/compile.js +151 -0
- package/node_modules/css-select/lib/compile.js.map +1 -0
- package/node_modules/css-select/lib/esm/attributes.d.ts +7 -0
- package/node_modules/css-select/lib/esm/attributes.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/attributes.js +222 -0
- package/node_modules/css-select/lib/esm/attributes.js.map +1 -0
- package/node_modules/css-select/lib/esm/compile.d.ts +13 -0
- package/node_modules/css-select/lib/esm/compile.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/compile.js +115 -0
- package/node_modules/css-select/lib/esm/compile.js.map +1 -0
- package/node_modules/css-select/lib/esm/general.d.ts +3 -0
- package/node_modules/css-select/lib/esm/general.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/general.js +144 -0
- package/node_modules/css-select/lib/esm/general.js.map +1 -0
- package/node_modules/css-select/lib/esm/helpers/cache.d.ts +12 -0
- package/node_modules/css-select/lib/esm/helpers/cache.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/helpers/cache.js +41 -0
- package/node_modules/css-select/lib/esm/helpers/cache.js.map +1 -0
- package/node_modules/css-select/lib/esm/helpers/querying.d.ts +24 -0
- package/node_modules/css-select/lib/esm/helpers/querying.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/helpers/querying.js +105 -0
- package/node_modules/css-select/lib/esm/helpers/querying.js.map +1 -0
- package/node_modules/css-select/lib/esm/helpers/selectors.d.ts +20 -0
- package/node_modules/css-select/lib/esm/helpers/selectors.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/helpers/selectors.js +103 -0
- package/node_modules/css-select/lib/esm/helpers/selectors.js.map +1 -0
- package/node_modules/css-select/lib/esm/index.d.ts +50 -0
- package/node_modules/css-select/lib/esm/index.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/index.js +115 -0
- package/node_modules/css-select/lib/esm/index.js.map +1 -0
- package/node_modules/css-select/lib/esm/package.json +1 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.d.ts +5 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js +35 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/aliases.js.map +1 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/filters.d.ts +4 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/filters.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/filters.js +143 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/filters.js.map +1 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/index.d.ts +8 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/index.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/index.js +40 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/index.js.map +1 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.d.ts +6 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js +79 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.js.map +1 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.d.ts +9 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js +94 -0
- package/node_modules/css-select/lib/esm/pseudo-selectors/subselects.js.map +1 -0
- package/node_modules/css-select/lib/esm/sort.d.ts +12 -0
- package/node_modules/css-select/lib/esm/sort.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/sort.js +79 -0
- package/node_modules/css-select/lib/esm/sort.js.map +1 -0
- package/node_modules/css-select/lib/esm/types.d.ts +167 -0
- package/node_modules/css-select/lib/esm/types.d.ts.map +1 -0
- package/node_modules/css-select/lib/esm/types.js +2 -0
- package/node_modules/css-select/lib/esm/types.js.map +1 -0
- package/node_modules/css-select/lib/general.d.ts +3 -0
- package/node_modules/css-select/lib/general.d.ts.map +1 -0
- package/node_modules/css-select/lib/general.js +148 -0
- package/node_modules/css-select/lib/general.js.map +1 -0
- package/node_modules/css-select/lib/helpers/cache.d.ts +12 -0
- package/node_modules/css-select/lib/helpers/cache.d.ts.map +1 -0
- package/node_modules/css-select/lib/helpers/cache.js +45 -0
- package/node_modules/css-select/lib/helpers/cache.js.map +1 -0
- package/node_modules/css-select/lib/helpers/querying.d.ts +24 -0
- package/node_modules/css-select/lib/helpers/querying.d.ts.map +1 -0
- package/node_modules/css-select/lib/helpers/querying.js +111 -0
- package/node_modules/css-select/lib/helpers/querying.js.map +1 -0
- package/node_modules/css-select/lib/helpers/selectors.d.ts +20 -0
- package/node_modules/css-select/lib/helpers/selectors.d.ts.map +1 -0
- package/node_modules/css-select/lib/helpers/selectors.js +111 -0
- package/node_modules/css-select/lib/helpers/selectors.js.map +1 -0
- package/node_modules/css-select/lib/index.d.ts +50 -0
- package/node_modules/css-select/lib/index.d.ts.map +1 -0
- package/node_modules/css-select/lib/index.js +154 -0
- package/node_modules/css-select/lib/index.js.map +1 -0
- package/node_modules/css-select/lib/pseudo-selectors/aliases.d.ts +5 -0
- package/node_modules/css-select/lib/pseudo-selectors/aliases.d.ts.map +1 -0
- package/node_modules/css-select/lib/pseudo-selectors/aliases.js +34 -0
- package/node_modules/css-select/lib/pseudo-selectors/aliases.js.map +1 -0
- package/node_modules/css-select/lib/pseudo-selectors/filters.d.ts +4 -0
- package/node_modules/css-select/lib/pseudo-selectors/filters.d.ts.map +1 -0
- package/node_modules/css-select/lib/pseudo-selectors/filters.js +157 -0
- package/node_modules/css-select/lib/pseudo-selectors/filters.js.map +1 -0
- package/node_modules/css-select/lib/pseudo-selectors/index.d.ts +8 -0
- package/node_modules/css-select/lib/pseudo-selectors/index.d.ts.map +1 -0
- package/node_modules/css-select/lib/pseudo-selectors/index.js +46 -0
- package/node_modules/css-select/lib/pseudo-selectors/index.js.map +1 -0
- package/node_modules/css-select/lib/pseudo-selectors/pseudos.d.ts +6 -0
- package/node_modules/css-select/lib/pseudo-selectors/pseudos.d.ts.map +1 -0
- package/node_modules/css-select/lib/pseudo-selectors/pseudos.js +93 -0
- package/node_modules/css-select/lib/pseudo-selectors/pseudos.js.map +1 -0
- package/node_modules/css-select/lib/pseudo-selectors/subselects.d.ts +9 -0
- package/node_modules/css-select/lib/pseudo-selectors/subselects.d.ts.map +1 -0
- package/node_modules/css-select/lib/pseudo-selectors/subselects.js +112 -0
- package/node_modules/css-select/lib/pseudo-selectors/subselects.js.map +1 -0
- package/node_modules/css-select/lib/sort.d.ts +12 -0
- package/node_modules/css-select/lib/sort.d.ts.map +1 -0
- package/node_modules/css-select/lib/sort.js +84 -0
- package/node_modules/css-select/lib/sort.js.map +1 -0
- package/node_modules/css-select/lib/types.d.ts +167 -0
- package/node_modules/css-select/lib/types.d.ts.map +1 -0
- package/node_modules/css-select/lib/types.js +3 -0
- package/node_modules/css-select/lib/types.js.map +1 -0
- package/node_modules/css-select/package.json +81 -0
- package/node_modules/css-what/LICENSE +11 -0
- package/node_modules/css-what/lib/commonjs/index.d.ts +4 -0
- package/node_modules/css-what/lib/commonjs/index.d.ts.map +1 -0
- package/node_modules/css-what/lib/commonjs/index.js +23 -0
- package/node_modules/css-what/lib/commonjs/parse.d.ts +20 -0
- package/node_modules/css-what/lib/commonjs/parse.d.ts.map +1 -0
- package/node_modules/css-what/lib/commonjs/parse.js +425 -0
- package/node_modules/css-what/lib/commonjs/stringify.d.ts +8 -0
- package/node_modules/css-what/lib/commonjs/stringify.d.ts.map +1 -0
- package/node_modules/css-what/lib/commonjs/stringify.js +138 -0
- package/node_modules/css-what/lib/commonjs/types.d.ts +70 -0
- package/node_modules/css-what/lib/commonjs/types.d.ts.map +1 -0
- package/node_modules/css-what/lib/commonjs/types.js +42 -0
- package/node_modules/css-what/lib/es/index.d.ts +4 -0
- package/node_modules/css-what/lib/es/index.d.ts.map +1 -0
- package/node_modules/css-what/lib/es/index.js +3 -0
- package/node_modules/css-what/lib/es/parse.d.ts +20 -0
- package/node_modules/css-what/lib/es/parse.d.ts.map +1 -0
- package/node_modules/css-what/lib/es/parse.js +420 -0
- package/node_modules/css-what/lib/es/stringify.d.ts +8 -0
- package/node_modules/css-what/lib/es/stringify.d.ts.map +1 -0
- package/node_modules/css-what/lib/es/stringify.js +126 -0
- package/node_modules/css-what/lib/es/types.d.ts +70 -0
- package/node_modules/css-what/lib/es/types.d.ts.map +1 -0
- package/node_modules/css-what/lib/es/types.js +39 -0
- package/node_modules/css-what/package.json +59 -0
- package/node_modules/css-what/readme.md +69 -0
- package/node_modules/dom-serializer/LICENSE +11 -0
- package/node_modules/dom-serializer/README.md +109 -0
- package/node_modules/dom-serializer/lib/esm/foreignNames.d.ts +3 -0
- package/node_modules/dom-serializer/lib/esm/foreignNames.d.ts.map +1 -0
- package/node_modules/dom-serializer/lib/esm/foreignNames.js +100 -0
- package/node_modules/dom-serializer/lib/esm/index.d.ts +52 -0
- package/node_modules/dom-serializer/lib/esm/index.d.ts.map +1 -0
- package/node_modules/dom-serializer/lib/esm/index.js +190 -0
- package/node_modules/dom-serializer/lib/esm/package.json +1 -0
- package/node_modules/dom-serializer/lib/foreignNames.d.ts +3 -0
- package/node_modules/dom-serializer/lib/foreignNames.d.ts.map +1 -0
- package/node_modules/dom-serializer/lib/foreignNames.js +103 -0
- package/node_modules/dom-serializer/lib/index.d.ts +52 -0
- package/node_modules/dom-serializer/lib/index.d.ts.map +1 -0
- package/node_modules/dom-serializer/lib/index.js +229 -0
- package/node_modules/dom-serializer/package.json +69 -0
- package/node_modules/domelementtype/LICENSE +11 -0
- package/node_modules/domelementtype/lib/esm/index.d.ts +48 -0
- package/node_modules/domelementtype/lib/esm/index.d.ts.map +1 -0
- package/node_modules/domelementtype/lib/esm/index.js +51 -0
- package/node_modules/domelementtype/lib/esm/package.json +1 -0
- package/node_modules/domelementtype/lib/index.d.ts +48 -0
- package/node_modules/domelementtype/lib/index.d.ts.map +1 -0
- package/node_modules/domelementtype/lib/index.js +55 -0
- package/node_modules/domelementtype/package.json +54 -0
- package/node_modules/domelementtype/readme.md +1 -0
- package/node_modules/domhandler/LICENSE +11 -0
- package/node_modules/domhandler/lib/esm/index.d.ts +76 -0
- package/node_modules/domhandler/lib/esm/index.d.ts.map +1 -0
- package/node_modules/domhandler/lib/esm/index.js +146 -0
- package/node_modules/domhandler/lib/esm/node.d.ts +245 -0
- package/node_modules/domhandler/lib/esm/node.d.ts.map +1 -0
- package/node_modules/domhandler/lib/esm/node.js +338 -0
- package/node_modules/domhandler/lib/esm/package.json +1 -0
- package/node_modules/domhandler/lib/index.d.ts +76 -0
- package/node_modules/domhandler/lib/index.d.ts.map +1 -0
- package/node_modules/domhandler/lib/index.js +165 -0
- package/node_modules/domhandler/lib/node.d.ts +245 -0
- package/node_modules/domhandler/lib/node.d.ts.map +1 -0
- package/node_modules/domhandler/lib/node.js +474 -0
- package/node_modules/domhandler/package.json +73 -0
- package/node_modules/domhandler/readme.md +92 -0
- package/node_modules/domutils/LICENSE +11 -0
- package/node_modules/domutils/lib/esm/feeds.d.ts +71 -0
- package/node_modules/domutils/lib/esm/feeds.d.ts.map +1 -0
- package/node_modules/domutils/lib/esm/feeds.js +183 -0
- package/node_modules/domutils/lib/esm/feeds.js.map +1 -0
- package/node_modules/domutils/lib/esm/helpers.d.ts +59 -0
- package/node_modules/domutils/lib/esm/helpers.d.ts.map +1 -0
- package/node_modules/domutils/lib/esm/helpers.js +136 -0
- package/node_modules/domutils/lib/esm/helpers.js.map +1 -0
- package/node_modules/domutils/lib/esm/index.d.ts +10 -0
- package/node_modules/domutils/lib/esm/index.d.ts.map +1 -0
- package/node_modules/domutils/lib/esm/index.js +10 -0
- package/node_modules/domutils/lib/esm/index.js.map +1 -0
- package/node_modules/domutils/lib/esm/legacy.d.ts +79 -0
- package/node_modules/domutils/lib/esm/legacy.d.ts.map +1 -0
- package/node_modules/domutils/lib/esm/legacy.js +152 -0
- package/node_modules/domutils/lib/esm/legacy.js.map +1 -0
- package/node_modules/domutils/lib/esm/manipulation.d.ts +49 -0
- package/node_modules/domutils/lib/esm/manipulation.d.ts.map +1 -0
- package/node_modules/domutils/lib/esm/manipulation.js +134 -0
- package/node_modules/domutils/lib/esm/manipulation.js.map +1 -0
- package/node_modules/domutils/lib/esm/package.json +1 -0
- package/node_modules/domutils/lib/esm/querying.d.ts +64 -0
- package/node_modules/domutils/lib/esm/querying.d.ts.map +1 -0
- package/node_modules/domutils/lib/esm/querying.js +142 -0
- package/node_modules/domutils/lib/esm/querying.js.map +1 -0
- package/node_modules/domutils/lib/esm/stringify.d.ts +46 -0
- package/node_modules/domutils/lib/esm/stringify.d.ts.map +1 -0
- package/node_modules/domutils/lib/esm/stringify.js +81 -0
- package/node_modules/domutils/lib/esm/stringify.js.map +1 -0
- package/node_modules/domutils/lib/esm/traversal.d.ts +67 -0
- package/node_modules/domutils/lib/esm/traversal.d.ts.map +1 -0
- package/node_modules/domutils/lib/esm/traversal.js +112 -0
- package/node_modules/domutils/lib/esm/traversal.js.map +1 -0
- package/node_modules/domutils/lib/feeds.d.ts +71 -0
- package/node_modules/domutils/lib/feeds.d.ts.map +1 -0
- package/node_modules/domutils/lib/feeds.js +190 -0
- package/node_modules/domutils/lib/feeds.js.map +1 -0
- package/node_modules/domutils/lib/helpers.d.ts +59 -0
- package/node_modules/domutils/lib/helpers.d.ts.map +1 -0
- package/node_modules/domutils/lib/helpers.js +142 -0
- package/node_modules/domutils/lib/helpers.js.map +1 -0
- package/node_modules/domutils/lib/index.d.ts +10 -0
- package/node_modules/domutils/lib/index.d.ts.map +1 -0
- package/node_modules/domutils/lib/index.js +33 -0
- package/node_modules/domutils/lib/index.js.map +1 -0
- package/node_modules/domutils/lib/legacy.d.ts +79 -0
- package/node_modules/domutils/lib/legacy.d.ts.map +1 -0
- package/node_modules/domutils/lib/legacy.js +168 -0
- package/node_modules/domutils/lib/legacy.js.map +1 -0
- package/node_modules/domutils/lib/manipulation.d.ts +49 -0
- package/node_modules/domutils/lib/manipulation.d.ts.map +1 -0
- package/node_modules/domutils/lib/manipulation.js +142 -0
- package/node_modules/domutils/lib/manipulation.js.map +1 -0
- package/node_modules/domutils/lib/querying.d.ts +64 -0
- package/node_modules/domutils/lib/querying.d.ts.map +1 -0
- package/node_modules/domutils/lib/querying.js +155 -0
- package/node_modules/domutils/lib/querying.js.map +1 -0
- package/node_modules/domutils/lib/stringify.d.ts +46 -0
- package/node_modules/domutils/lib/stringify.d.ts.map +1 -0
- package/node_modules/domutils/lib/stringify.js +91 -0
- package/node_modules/domutils/lib/stringify.js.map +1 -0
- package/node_modules/domutils/lib/traversal.d.ts +67 -0
- package/node_modules/domutils/lib/traversal.d.ts.map +1 -0
- package/node_modules/domutils/lib/traversal.js +125 -0
- package/node_modules/domutils/lib/traversal.js.map +1 -0
- package/node_modules/domutils/package.json +79 -0
- package/node_modules/domutils/readme.md +31 -0
- package/node_modules/encoding-sniffer/LICENSE +18 -0
- package/node_modules/encoding-sniffer/README.md +68 -0
- package/node_modules/encoding-sniffer/dist/commonjs/index.d.ts +31 -0
- package/node_modules/encoding-sniffer/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/encoding-sniffer/dist/commonjs/index.js +72 -0
- package/node_modules/encoding-sniffer/dist/commonjs/index.js.map +1 -0
- package/node_modules/encoding-sniffer/dist/commonjs/package.json +3 -0
- package/node_modules/encoding-sniffer/dist/commonjs/sniffer.d.ts +148 -0
- package/node_modules/encoding-sniffer/dist/commonjs/sniffer.d.ts.map +1 -0
- package/node_modules/encoding-sniffer/dist/commonjs/sniffer.js +990 -0
- package/node_modules/encoding-sniffer/dist/commonjs/sniffer.js.map +1 -0
- package/node_modules/encoding-sniffer/dist/esm/index.d.ts +31 -0
- package/node_modules/encoding-sniffer/dist/esm/index.d.ts.map +1 -0
- package/node_modules/encoding-sniffer/dist/esm/index.js +63 -0
- package/node_modules/encoding-sniffer/dist/esm/index.js.map +1 -0
- package/node_modules/encoding-sniffer/dist/esm/package.json +3 -0
- package/node_modules/encoding-sniffer/dist/esm/sniffer.d.ts +148 -0
- package/node_modules/encoding-sniffer/dist/esm/sniffer.d.ts.map +1 -0
- package/node_modules/encoding-sniffer/dist/esm/sniffer.js +985 -0
- package/node_modules/encoding-sniffer/dist/esm/sniffer.js.map +1 -0
- package/node_modules/encoding-sniffer/package.json +94 -0
- package/node_modules/encoding-sniffer/sniffer.d.ts +2 -0
- package/node_modules/encoding-sniffer/sniffer.js +3 -0
- package/node_modules/entities/LICENSE +11 -0
- package/node_modules/entities/lib/decode.d.ts +211 -0
- package/node_modules/entities/lib/decode.d.ts.map +1 -0
- package/node_modules/entities/lib/decode.js +536 -0
- package/node_modules/entities/lib/decode.js.map +1 -0
- package/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
- package/node_modules/entities/lib/decode_codepoint.d.ts.map +1 -0
- package/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/node_modules/entities/lib/decode_codepoint.js.map +1 -0
- package/node_modules/entities/lib/encode.d.ts +22 -0
- package/node_modules/entities/lib/encode.d.ts.map +1 -0
- package/node_modules/entities/lib/encode.js +77 -0
- package/node_modules/entities/lib/encode.js.map +1 -0
- package/node_modules/entities/lib/escape.d.ts +43 -0
- package/node_modules/entities/lib/escape.d.ts.map +1 -0
- package/node_modules/entities/lib/escape.js +122 -0
- package/node_modules/entities/lib/escape.js.map +1 -0
- package/node_modules/entities/lib/esm/decode.d.ts +211 -0
- package/node_modules/entities/lib/esm/decode.d.ts.map +1 -0
- package/node_modules/entities/lib/esm/decode.js +496 -0
- package/node_modules/entities/lib/esm/decode.js.map +1 -0
- package/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
- package/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +1 -0
- package/node_modules/entities/lib/esm/decode_codepoint.js +71 -0
- package/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
- package/node_modules/entities/lib/esm/encode.d.ts +22 -0
- package/node_modules/entities/lib/esm/encode.d.ts.map +1 -0
- package/node_modules/entities/lib/esm/encode.js +69 -0
- package/node_modules/entities/lib/esm/encode.js.map +1 -0
- package/node_modules/entities/lib/esm/escape.d.ts +43 -0
- package/node_modules/entities/lib/esm/escape.d.ts.map +1 -0
- package/node_modules/entities/lib/esm/escape.js +116 -0
- package/node_modules/entities/lib/esm/escape.js.map +1 -0
- package/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
- package/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
- package/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
- package/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
- package/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
- package/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
- package/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
- package/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +1 -0
- package/node_modules/entities/lib/esm/generated/encode-html.js +10 -0
- package/node_modules/entities/lib/esm/generated/encode-html.js.map +1 -0
- package/node_modules/entities/lib/esm/index.d.ts +96 -0
- package/node_modules/entities/lib/esm/index.d.ts.map +1 -0
- package/node_modules/entities/lib/esm/index.js +99 -0
- package/node_modules/entities/lib/esm/index.js.map +1 -0
- package/node_modules/entities/lib/esm/package.json +1 -0
- package/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
- package/node_modules/entities/lib/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
- package/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
- package/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
- package/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
- package/node_modules/entities/lib/generated/encode-html.d.ts.map +1 -0
- package/node_modules/entities/lib/generated/encode-html.js +12 -0
- package/node_modules/entities/lib/generated/encode-html.js.map +1 -0
- package/node_modules/entities/lib/index.d.ts +96 -0
- package/node_modules/entities/lib/index.d.ts.map +1 -0
- package/node_modules/entities/lib/index.js +126 -0
- package/node_modules/entities/lib/index.js.map +1 -0
- package/node_modules/entities/package.json +90 -0
- package/node_modules/entities/readme.md +122 -0
- package/node_modules/fast-deep-equal/LICENSE +21 -0
- package/node_modules/fast-deep-equal/README.md +96 -0
- package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/node_modules/fast-deep-equal/index.d.ts +4 -0
- package/node_modules/fast-deep-equal/index.js +46 -0
- package/node_modules/fast-deep-equal/package.json +61 -0
- package/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/react.js +53 -0
- package/node_modules/fast-uri/.gitattributes +2 -0
- package/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/node_modules/fast-uri/LICENSE +30 -0
- package/node_modules/fast-uri/README.md +152 -0
- package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/node_modules/fast-uri/benchmark/package.json +17 -0
- package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/node_modules/fast-uri/eslint.config.js +6 -0
- package/node_modules/fast-uri/index.js +631 -0
- package/node_modules/fast-uri/lib/schemes.js +272 -0
- package/node_modules/fast-uri/lib/utils.js +747 -0
- package/node_modules/fast-uri/package.json +68 -0
- package/node_modules/fast-uri/test/ajv.test.js +43 -0
- package/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
- package/node_modules/fast-uri/test/equal.test.js +145 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +503 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
- package/node_modules/fast-uri/test/ipv6-validation.test.js +124 -0
- package/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
- package/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
- package/node_modules/fast-uri/test/parse.test.js +327 -0
- package/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
- package/node_modules/fast-uri/test/reserved-path-normalization.test.js +109 -0
- package/node_modules/fast-uri/test/resolve.test.js +87 -0
- package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/node_modules/fast-uri/test/scheme-validation.test.js +124 -0
- package/node_modules/fast-uri/test/security-normalization.test.js +178 -0
- package/node_modules/fast-uri/test/security.test.js +431 -0
- package/node_modules/fast-uri/test/serialize.test.js +151 -0
- package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/node_modules/fast-uri/test/uri-js.test.js +912 -0
- package/node_modules/fast-uri/test/urn-full-input.test.js +29 -0
- package/node_modules/fast-uri/test/util.test.js +38 -0
- package/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
- package/node_modules/fast-uri/tsconfig.json +9 -0
- package/node_modules/fast-uri/types/index.d.ts +60 -0
- package/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/node_modules/get-east-asian-width/index.d.ts +60 -0
- package/node_modules/get-east-asian-width/index.js +35 -0
- package/node_modules/get-east-asian-width/license +9 -0
- package/node_modules/get-east-asian-width/lookup-data.js +21 -0
- package/node_modules/get-east-asian-width/lookup.js +138 -0
- package/node_modules/get-east-asian-width/package.json +71 -0
- package/node_modules/get-east-asian-width/readme.md +65 -0
- package/node_modules/get-east-asian-width/utilities.js +24 -0
- package/node_modules/htmlparser2/LICENSE +18 -0
- package/node_modules/htmlparser2/README.md +171 -0
- package/node_modules/htmlparser2/WritableStream.js +3 -0
- package/node_modules/htmlparser2/dist/commonjs/Parser.d.ts +198 -0
- package/node_modules/htmlparser2/dist/commonjs/Parser.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/commonjs/Parser.js +527 -0
- package/node_modules/htmlparser2/dist/commonjs/Parser.js.map +1 -0
- package/node_modules/htmlparser2/dist/commonjs/Tokenizer.d.ts +126 -0
- package/node_modules/htmlparser2/dist/commonjs/Tokenizer.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +805 -0
- package/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +1 -0
- package/node_modules/htmlparser2/dist/commonjs/WritableStream.d.ts +15 -0
- package/node_modules/htmlparser2/dist/commonjs/WritableStream.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/commonjs/WritableStream.js +36 -0
- package/node_modules/htmlparser2/dist/commonjs/WritableStream.js.map +1 -0
- package/node_modules/htmlparser2/dist/commonjs/index.d.ts +54 -0
- package/node_modules/htmlparser2/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/commonjs/index.js +123 -0
- package/node_modules/htmlparser2/dist/commonjs/index.js.map +1 -0
- package/node_modules/htmlparser2/dist/commonjs/package.json +3 -0
- package/node_modules/htmlparser2/dist/esm/Parser.d.ts +198 -0
- package/node_modules/htmlparser2/dist/esm/Parser.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/esm/Parser.js +490 -0
- package/node_modules/htmlparser2/dist/esm/Parser.js.map +1 -0
- package/node_modules/htmlparser2/dist/esm/Tokenizer.d.ts +126 -0
- package/node_modules/htmlparser2/dist/esm/Tokenizer.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/esm/Tokenizer.js +801 -0
- package/node_modules/htmlparser2/dist/esm/Tokenizer.js.map +1 -0
- package/node_modules/htmlparser2/dist/esm/WritableStream.d.ts +15 -0
- package/node_modules/htmlparser2/dist/esm/WritableStream.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/esm/WritableStream.js +32 -0
- package/node_modules/htmlparser2/dist/esm/WritableStream.js.map +1 -0
- package/node_modules/htmlparser2/dist/esm/index.d.ts +54 -0
- package/node_modules/htmlparser2/dist/esm/index.d.ts.map +1 -0
- package/node_modules/htmlparser2/dist/esm/index.js +74 -0
- package/node_modules/htmlparser2/dist/esm/index.js.map +1 -0
- package/node_modules/htmlparser2/dist/esm/package.json +3 -0
- package/node_modules/htmlparser2/node_modules/entities/LICENSE +11 -0
- package/node_modules/htmlparser2/node_modules/entities/decode.d.ts +3 -0
- package/node_modules/htmlparser2/node_modules/entities/decode.js +3 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.d.ts +205 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.js +92 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.d.ts +46 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.js +138 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +3 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.js +14 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.d.ts +96 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.js +131 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +17 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +2 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +32 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.js +94 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/package.json +3 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.d.ts +205 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.js +554 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.d.ts +22 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.js +88 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.d.ts +46 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.js +134 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.js +4 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.d.ts +3 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.js +11 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.d.ts +96 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.js +107 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +17 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.js +18 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.d.ts +2 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.js +28 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.d.ts +32 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.d.ts.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.js +91 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.js.map +1 -0
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/package.json +3 -0
- package/node_modules/htmlparser2/node_modules/entities/escape.d.ts +3 -0
- package/node_modules/htmlparser2/node_modules/entities/escape.js +3 -0
- package/node_modules/htmlparser2/node_modules/entities/package.json +120 -0
- package/node_modules/htmlparser2/node_modules/entities/readme.md +143 -0
- package/node_modules/htmlparser2/node_modules/entities/src/decode-codepoint.ts +81 -0
- package/node_modules/htmlparser2/node_modules/entities/src/decode.ts +685 -0
- package/node_modules/htmlparser2/node_modules/entities/src/encode.ts +93 -0
- package/node_modules/htmlparser2/node_modules/entities/src/escape.ts +161 -0
- package/node_modules/htmlparser2/node_modules/entities/src/generated/.eslintrc.json +10 -0
- package/node_modules/htmlparser2/node_modules/entities/src/generated/decode-data-html.ts +6 -0
- package/node_modules/htmlparser2/node_modules/entities/src/generated/decode-data-xml.ts +6 -0
- package/node_modules/htmlparser2/node_modules/entities/src/generated/encode-html.ts +17 -0
- package/node_modules/htmlparser2/node_modules/entities/src/index.ts +187 -0
- package/node_modules/htmlparser2/node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
- package/node_modules/htmlparser2/node_modules/entities/src/internal/decode-shared.ts +30 -0
- package/node_modules/htmlparser2/node_modules/entities/src/internal/encode-shared.ts +121 -0
- package/node_modules/htmlparser2/package.json +113 -0
- package/node_modules/htmlparser2/src/Parser.ts +663 -0
- package/node_modules/htmlparser2/src/Tokenizer.ts +877 -0
- package/node_modules/htmlparser2/src/WritableStream.ts +43 -0
- package/node_modules/htmlparser2/src/index.ts +115 -0
- package/node_modules/iconv-lite/.github/dependabot.yml +11 -0
- package/node_modules/iconv-lite/.idea/codeStyles/Project.xml +47 -0
- package/node_modules/iconv-lite/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/node_modules/iconv-lite/.idea/iconv-lite.iml +12 -0
- package/node_modules/iconv-lite/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/node_modules/iconv-lite/.idea/modules.xml +8 -0
- package/node_modules/iconv-lite/.idea/vcs.xml +6 -0
- package/node_modules/iconv-lite/Changelog.md +212 -0
- package/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/iconv-lite/README.md +130 -0
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +597 -0
- package/node_modules/iconv-lite/encodings/dbcs-data.js +188 -0
- package/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/iconv-lite/encodings/internal.js +198 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/iconv-lite/encodings/sbcs-data.js +179 -0
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/iconv-lite/encodings/utf16.js +197 -0
- package/node_modules/iconv-lite/encodings/utf32.js +319 -0
- package/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/node_modules/iconv-lite/lib/index.d.ts +41 -0
- package/node_modules/iconv-lite/lib/index.js +180 -0
- package/node_modules/iconv-lite/lib/streams.js +109 -0
- package/node_modules/iconv-lite/package.json +44 -0
- package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/node_modules/json-schema-traverse/LICENSE +21 -0
- package/node_modules/json-schema-traverse/README.md +95 -0
- package/node_modules/json-schema-traverse/index.d.ts +40 -0
- package/node_modules/json-schema-traverse/index.js +93 -0
- package/node_modules/json-schema-traverse/package.json +43 -0
- package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/node_modules/marked/LICENSE +44 -0
- package/node_modules/marked/README.md +117 -0
- package/node_modules/marked/bin/main.js +284 -0
- package/node_modules/marked/bin/marked.js +16 -0
- package/node_modules/marked/lib/marked.d.ts +841 -0
- package/node_modules/marked/lib/marked.esm.js +78 -0
- package/node_modules/marked/lib/marked.esm.js.map +7 -0
- package/node_modules/marked/lib/marked.umd.js +80 -0
- package/node_modules/marked/lib/marked.umd.js.map +7 -0
- package/node_modules/marked/man/marked.1 +113 -0
- package/node_modules/marked/man/marked.1.md +93 -0
- package/node_modules/marked/package.json +103 -0
- package/node_modules/nth-check/LICENSE +11 -0
- package/node_modules/nth-check/README.md +136 -0
- package/node_modules/nth-check/lib/compile.d.ts +55 -0
- package/node_modules/nth-check/lib/compile.d.ts.map +1 -0
- package/node_modules/nth-check/lib/compile.js +121 -0
- package/node_modules/nth-check/lib/compile.js.map +1 -0
- package/node_modules/nth-check/lib/esm/compile.d.ts +55 -0
- package/node_modules/nth-check/lib/esm/compile.d.ts.map +1 -0
- package/node_modules/nth-check/lib/esm/compile.js +113 -0
- package/node_modules/nth-check/lib/esm/compile.js.map +1 -0
- package/node_modules/nth-check/lib/esm/index.d.ts +59 -0
- package/node_modules/nth-check/lib/esm/index.d.ts.map +1 -0
- package/node_modules/nth-check/lib/esm/index.js +63 -0
- package/node_modules/nth-check/lib/esm/index.js.map +1 -0
- package/node_modules/nth-check/lib/esm/package.json +1 -0
- package/node_modules/nth-check/lib/esm/parse.d.ts +9 -0
- package/node_modules/nth-check/lib/esm/parse.d.ts.map +1 -0
- package/node_modules/nth-check/lib/esm/parse.js +73 -0
- package/node_modules/nth-check/lib/esm/parse.js.map +1 -0
- package/node_modules/nth-check/lib/index.d.ts +59 -0
- package/node_modules/nth-check/lib/index.d.ts.map +1 -0
- package/node_modules/nth-check/lib/index.js +70 -0
- package/node_modules/nth-check/lib/index.js.map +1 -0
- package/node_modules/nth-check/lib/parse.d.ts +9 -0
- package/node_modules/nth-check/lib/parse.d.ts.map +1 -0
- package/node_modules/nth-check/lib/parse.js +77 -0
- package/node_modules/nth-check/lib/parse.js.map +1 -0
- package/node_modules/nth-check/package.json +78 -0
- package/node_modules/parse5/LICENSE +19 -0
- package/node_modules/parse5/README.md +38 -0
- package/node_modules/parse5/dist/cjs/common/doctype.d.ts +4 -0
- package/node_modules/parse5/dist/cjs/common/doctype.js +118 -0
- package/node_modules/parse5/dist/cjs/common/error-codes.d.ts +67 -0
- package/node_modules/parse5/dist/cjs/common/error-codes.js +66 -0
- package/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +9 -0
- package/node_modules/parse5/dist/cjs/common/foreign-content.js +237 -0
- package/node_modules/parse5/dist/cjs/common/html.d.ts +289 -0
- package/node_modules/parse5/dist/cjs/common/html.js +528 -0
- package/node_modules/parse5/dist/cjs/common/token.d.ts +84 -0
- package/node_modules/parse5/dist/cjs/common/token.js +24 -0
- package/node_modules/parse5/dist/cjs/common/unicode.d.ts +42 -0
- package/node_modules/parse5/dist/cjs/common/unicode.js +70 -0
- package/node_modules/parse5/dist/cjs/index.d.ts +71 -0
- package/node_modules/parse5/dist/cjs/index.js +54 -0
- package/node_modules/parse5/dist/cjs/package.json +1 -0
- package/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +36 -0
- package/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +114 -0
- package/node_modules/parse5/dist/cjs/parser/index.d.ts +221 -0
- package/node_modules/parse5/dist/cjs/parser/index.js +3240 -0
- package/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +53 -0
- package/node_modules/parse5/dist/cjs/parser/open-element-stack.js +328 -0
- package/node_modules/parse5/dist/cjs/serializer/index.d.ts +60 -0
- package/node_modules/parse5/dist/cjs/serializer/index.js +172 -0
- package/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +247 -0
- package/node_modules/parse5/dist/cjs/tokenizer/index.js +2714 -0
- package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +36 -0
- package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +200 -0
- package/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +84 -0
- package/node_modules/parse5/dist/cjs/tree-adapters/default.js +176 -0
- package/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +255 -0
- package/node_modules/parse5/dist/cjs/tree-adapters/interface.js +2 -0
- package/node_modules/parse5/dist/common/doctype.d.ts +4 -0
- package/node_modules/parse5/dist/common/doctype.js +114 -0
- package/node_modules/parse5/dist/common/error-codes.d.ts +67 -0
- package/node_modules/parse5/dist/common/error-codes.js +63 -0
- package/node_modules/parse5/dist/common/foreign-content.d.ts +9 -0
- package/node_modules/parse5/dist/common/foreign-content.js +228 -0
- package/node_modules/parse5/dist/common/html.d.ts +289 -0
- package/node_modules/parse5/dist/common/html.js +523 -0
- package/node_modules/parse5/dist/common/token.d.ts +84 -0
- package/node_modules/parse5/dist/common/token.js +20 -0
- package/node_modules/parse5/dist/common/unicode.d.ts +42 -0
- package/node_modules/parse5/dist/common/unicode.js +62 -0
- package/node_modules/parse5/dist/index.d.ts +71 -0
- package/node_modules/parse5/dist/index.js +42 -0
- package/node_modules/parse5/dist/parser/formatting-element-list.d.ts +36 -0
- package/node_modules/parse5/dist/parser/formatting-element-list.js +110 -0
- package/node_modules/parse5/dist/parser/index.d.ts +221 -0
- package/node_modules/parse5/dist/parser/index.js +3245 -0
- package/node_modules/parse5/dist/parser/open-element-stack.d.ts +53 -0
- package/node_modules/parse5/dist/parser/open-element-stack.js +324 -0
- package/node_modules/parse5/dist/serializer/index.d.ts +60 -0
- package/node_modules/parse5/dist/serializer/index.js +168 -0
- package/node_modules/parse5/dist/tokenizer/index.d.ts +247 -0
- package/node_modules/parse5/dist/tokenizer/index.js +2710 -0
- package/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +36 -0
- package/node_modules/parse5/dist/tokenizer/preprocessor.js +196 -0
- package/node_modules/parse5/dist/tree-adapters/default.d.ts +84 -0
- package/node_modules/parse5/dist/tree-adapters/default.js +173 -0
- package/node_modules/parse5/dist/tree-adapters/interface.d.ts +255 -0
- package/node_modules/parse5/dist/tree-adapters/interface.js +1 -0
- package/node_modules/parse5/node_modules/entities/LICENSE +11 -0
- package/node_modules/parse5/node_modules/entities/decode.d.ts +1 -0
- package/node_modules/parse5/node_modules/entities/decode.js +3 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.d.ts +209 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.js +511 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js +73 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.d.ts +43 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js +121 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.js +10 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +10 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +8 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.js +13 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/index.d.ts +96 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/index.js +131 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/index.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/package.json +3 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode.d.ts +209 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode.js +497 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/encode.d.ts +22 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/encode.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/encode.js +69 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/encode.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/escape.d.ts +43 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/escape.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/escape.js +117 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/escape.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +7 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.js +7 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.d.ts +8 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.js +10 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/index.d.ts +96 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/index.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/index.js +107 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/index.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/package.json +3 -0
- package/node_modules/parse5/node_modules/entities/escape.d.ts +1 -0
- package/node_modules/parse5/node_modules/entities/escape.js +3 -0
- package/node_modules/parse5/node_modules/entities/package.json +118 -0
- package/node_modules/parse5/node_modules/entities/readme.md +122 -0
- package/node_modules/parse5/node_modules/entities/src/decode-codepoint.ts +81 -0
- package/node_modules/parse5/node_modules/entities/src/decode.spec.ts +320 -0
- package/node_modules/parse5/node_modules/entities/src/decode.ts +620 -0
- package/node_modules/parse5/node_modules/entities/src/encode.spec.ts +78 -0
- package/node_modules/parse5/node_modules/entities/src/encode.ts +77 -0
- package/node_modules/parse5/node_modules/entities/src/escape.spec.ts +14 -0
- package/node_modules/parse5/node_modules/entities/src/escape.ts +148 -0
- package/node_modules/parse5/node_modules/entities/src/generated/.eslintrc.json +10 -0
- package/node_modules/parse5/node_modules/entities/src/generated/decode-data-html.ts +8 -0
- package/node_modules/parse5/node_modules/entities/src/generated/decode-data-xml.ts +8 -0
- package/node_modules/parse5/node_modules/entities/src/generated/encode-html.ts +17 -0
- package/node_modules/parse5/node_modules/entities/src/index.spec.ts +125 -0
- package/node_modules/parse5/node_modules/entities/src/index.ts +188 -0
- package/node_modules/parse5/package.json +50 -0
- package/node_modules/parse5-htmlparser2-tree-adapter/LICENSE +19 -0
- package/node_modules/parse5-htmlparser2-tree-adapter/README.md +34 -0
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.d.ts +6 -0
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.js +214 -0
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/package.json +1 -0
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.d.ts +6 -0
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js +213 -0
- package/node_modules/parse5-htmlparser2-tree-adapter/package.json +40 -0
- package/node_modules/parse5-parser-stream/LICENSE +19 -0
- package/node_modules/parse5-parser-stream/README.md +34 -0
- package/node_modules/parse5-parser-stream/dist/cjs/index.d.ts +85 -0
- package/node_modules/parse5-parser-stream/dist/cjs/index.js +90 -0
- package/node_modules/parse5-parser-stream/dist/cjs/package.json +1 -0
- package/node_modules/parse5-parser-stream/dist/index.d.ts +85 -0
- package/node_modules/parse5-parser-stream/dist/index.js +86 -0
- package/node_modules/parse5-parser-stream/package.json +39 -0
- package/node_modules/require-from-string/index.js +34 -0
- package/node_modules/require-from-string/license +21 -0
- package/node_modules/require-from-string/package.json +28 -0
- package/node_modules/require-from-string/readme.md +56 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/Readme.md +156 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/string-width/index.d.ts +39 -0
- package/node_modules/string-width/index.js +203 -0
- package/node_modules/string-width/license +9 -0
- package/node_modules/string-width/package.json +65 -0
- package/node_modules/string-width/readme.md +66 -0
- package/node_modules/strip-ansi/index.d.ts +15 -0
- package/node_modules/strip-ansi/index.js +19 -0
- package/node_modules/strip-ansi/license +9 -0
- package/node_modules/strip-ansi/package.json +59 -0
- package/node_modules/strip-ansi/readme.md +37 -0
- package/node_modules/undici/LICENSE +21 -0
- package/node_modules/undici/README.md +741 -0
- package/node_modules/undici/docs/docs/api/Agent.md +84 -0
- package/node_modules/undici/docs/docs/api/BalancedPool.md +99 -0
- package/node_modules/undici/docs/docs/api/CacheStorage.md +30 -0
- package/node_modules/undici/docs/docs/api/CacheStore.md +164 -0
- package/node_modules/undici/docs/docs/api/Client.md +288 -0
- package/node_modules/undici/docs/docs/api/ClientStats.md +27 -0
- package/node_modules/undici/docs/docs/api/Connector.md +115 -0
- package/node_modules/undici/docs/docs/api/ContentType.md +57 -0
- package/node_modules/undici/docs/docs/api/Cookies.md +128 -0
- package/node_modules/undici/docs/docs/api/Debug.md +62 -0
- package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +317 -0
- package/node_modules/undici/docs/docs/api/Dispatcher.md +1393 -0
- package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +159 -0
- package/node_modules/undici/docs/docs/api/Errors.md +49 -0
- package/node_modules/undici/docs/docs/api/EventSource.md +45 -0
- package/node_modules/undici/docs/docs/api/Fetch.md +60 -0
- package/node_modules/undici/docs/docs/api/GlobalInstallation.md +139 -0
- package/node_modules/undici/docs/docs/api/H2CClient.md +263 -0
- package/node_modules/undici/docs/docs/api/MockAgent.md +603 -0
- package/node_modules/undici/docs/docs/api/MockCallHistory.md +197 -0
- package/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +43 -0
- package/node_modules/undici/docs/docs/api/MockClient.md +81 -0
- package/node_modules/undici/docs/docs/api/MockErrors.md +12 -0
- package/node_modules/undici/docs/docs/api/MockPool.md +555 -0
- package/node_modules/undici/docs/docs/api/Pool.md +84 -0
- package/node_modules/undici/docs/docs/api/PoolStats.md +35 -0
- package/node_modules/undici/docs/docs/api/ProxyAgent.md +229 -0
- package/node_modules/undici/docs/docs/api/RedirectHandler.md +93 -0
- package/node_modules/undici/docs/docs/api/RetryAgent.md +50 -0
- package/node_modules/undici/docs/docs/api/RetryHandler.md +118 -0
- package/node_modules/undici/docs/docs/api/RoundRobinPool.md +145 -0
- package/node_modules/undici/docs/docs/api/SnapshotAgent.md +616 -0
- package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +275 -0
- package/node_modules/undici/docs/docs/api/Util.md +25 -0
- package/node_modules/undici/docs/docs/api/WebSocket.md +141 -0
- package/node_modules/undici/docs/docs/api/api-lifecycle.md +91 -0
- package/node_modules/undici/docs/docs/best-practices/client-certificate.md +64 -0
- package/node_modules/undici/docs/docs/best-practices/crawling.md +58 -0
- package/node_modules/undici/docs/docs/best-practices/mocking-request.md +190 -0
- package/node_modules/undici/docs/docs/best-practices/proxy.md +127 -0
- package/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +224 -0
- package/node_modules/undici/docs/docs/best-practices/writing-tests.md +63 -0
- package/node_modules/undici/index-fetch.js +65 -0
- package/node_modules/undici/index.d.ts +3 -0
- package/node_modules/undici/index.js +234 -0
- package/node_modules/undici/lib/api/abort-signal.js +59 -0
- package/node_modules/undici/lib/api/api-connect.js +110 -0
- package/node_modules/undici/lib/api/api-pipeline.js +252 -0
- package/node_modules/undici/lib/api/api-request.js +214 -0
- package/node_modules/undici/lib/api/api-stream.js +209 -0
- package/node_modules/undici/lib/api/api-upgrade.js +111 -0
- package/node_modules/undici/lib/api/index.js +7 -0
- package/node_modules/undici/lib/api/readable.js +580 -0
- package/node_modules/undici/lib/cache/memory-cache-store.js +279 -0
- package/node_modules/undici/lib/cache/sqlite-cache-store.js +467 -0
- package/node_modules/undici/lib/core/connect.js +153 -0
- package/node_modules/undici/lib/core/constants.js +143 -0
- package/node_modules/undici/lib/core/diagnostics.js +227 -0
- package/node_modules/undici/lib/core/errors.js +477 -0
- package/node_modules/undici/lib/core/request.js +485 -0
- package/node_modules/undici/lib/core/socks5-client.js +422 -0
- package/node_modules/undici/lib/core/socks5-utils.js +212 -0
- package/node_modules/undici/lib/core/symbols.js +75 -0
- package/node_modules/undici/lib/core/tree.js +160 -0
- package/node_modules/undici/lib/core/util.js +992 -0
- package/node_modules/undici/lib/dispatcher/agent.js +158 -0
- package/node_modules/undici/lib/dispatcher/balanced-pool.js +221 -0
- package/node_modules/undici/lib/dispatcher/client-h1.js +1746 -0
- package/node_modules/undici/lib/dispatcher/client-h2.js +1060 -0
- package/node_modules/undici/lib/dispatcher/client.js +668 -0
- package/node_modules/undici/lib/dispatcher/dispatcher-base.js +184 -0
- package/node_modules/undici/lib/dispatcher/dispatcher.js +48 -0
- package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +146 -0
- package/node_modules/undici/lib/dispatcher/fixed-queue.js +135 -0
- package/node_modules/undici/lib/dispatcher/h2c-client.js +51 -0
- package/node_modules/undici/lib/dispatcher/pool-base.js +214 -0
- package/node_modules/undici/lib/dispatcher/pool.js +118 -0
- package/node_modules/undici/lib/dispatcher/proxy-agent.js +319 -0
- package/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
- package/node_modules/undici/lib/dispatcher/round-robin-pool.js +137 -0
- package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +260 -0
- package/node_modules/undici/lib/encoding/index.js +33 -0
- package/node_modules/undici/lib/global.js +59 -0
- package/node_modules/undici/lib/handler/cache-handler.js +776 -0
- package/node_modules/undici/lib/handler/cache-revalidation-handler.js +124 -0
- package/node_modules/undici/lib/handler/decorator-handler.js +67 -0
- package/node_modules/undici/lib/handler/deduplication-handler.js +460 -0
- package/node_modules/undici/lib/handler/redirect-handler.js +238 -0
- package/node_modules/undici/lib/handler/retry-handler.js +504 -0
- package/node_modules/undici/lib/handler/unwrap-handler.js +106 -0
- package/node_modules/undici/lib/handler/wrap-handler.js +105 -0
- package/node_modules/undici/lib/interceptor/cache.js +621 -0
- package/node_modules/undici/lib/interceptor/decompress.js +551 -0
- package/node_modules/undici/lib/interceptor/deduplicate.js +117 -0
- package/node_modules/undici/lib/interceptor/dns.js +571 -0
- package/node_modules/undici/lib/interceptor/dump.js +99 -0
- package/node_modules/undici/lib/interceptor/redirect.js +21 -0
- package/node_modules/undici/lib/interceptor/response-error.js +95 -0
- package/node_modules/undici/lib/interceptor/retry.js +19 -0
- package/node_modules/undici/lib/llhttp/.gitkeep +0 -0
- package/node_modules/undici/lib/llhttp/constants.d.ts +195 -0
- package/node_modules/undici/lib/llhttp/constants.js +531 -0
- package/node_modules/undici/lib/llhttp/llhttp-wasm.js +15 -0
- package/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +15 -0
- package/node_modules/undici/lib/llhttp/utils.d.ts +2 -0
- package/node_modules/undici/lib/llhttp/utils.js +12 -0
- package/node_modules/undici/lib/mock/mock-agent.js +232 -0
- package/node_modules/undici/lib/mock/mock-call-history.js +248 -0
- package/node_modules/undici/lib/mock/mock-client.js +68 -0
- package/node_modules/undici/lib/mock/mock-errors.js +29 -0
- package/node_modules/undici/lib/mock/mock-interceptor.js +209 -0
- package/node_modules/undici/lib/mock/mock-pool.js +68 -0
- package/node_modules/undici/lib/mock/mock-symbols.js +32 -0
- package/node_modules/undici/lib/mock/mock-utils.js +486 -0
- package/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
- package/node_modules/undici/lib/mock/snapshot-agent.js +353 -0
- package/node_modules/undici/lib/mock/snapshot-recorder.js +588 -0
- package/node_modules/undici/lib/mock/snapshot-utils.js +158 -0
- package/node_modules/undici/lib/util/cache.js +676 -0
- package/node_modules/undici/lib/util/date.js +670 -0
- package/node_modules/undici/lib/util/promise.js +28 -0
- package/node_modules/undici/lib/util/runtime-features.js +124 -0
- package/node_modules/undici/lib/util/stats.js +32 -0
- package/node_modules/undici/lib/util/timers.js +425 -0
- package/node_modules/undici/lib/web/cache/cache.js +864 -0
- package/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
- package/node_modules/undici/lib/web/cache/util.js +45 -0
- package/node_modules/undici/lib/web/cookies/constants.js +12 -0
- package/node_modules/undici/lib/web/cookies/index.js +199 -0
- package/node_modules/undici/lib/web/cookies/parse.js +314 -0
- package/node_modules/undici/lib/web/cookies/util.js +352 -0
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +494 -0
- package/node_modules/undici/lib/web/eventsource/eventsource.js +501 -0
- package/node_modules/undici/lib/web/eventsource/util.js +29 -0
- package/node_modules/undici/lib/web/fetch/LICENSE +21 -0
- package/node_modules/undici/lib/web/fetch/body.js +509 -0
- package/node_modules/undici/lib/web/fetch/constants.js +131 -0
- package/node_modules/undici/lib/web/fetch/data-url.js +596 -0
- package/node_modules/undici/lib/web/fetch/formdata-parser.js +586 -0
- package/node_modules/undici/lib/web/fetch/formdata.js +259 -0
- package/node_modules/undici/lib/web/fetch/global.js +40 -0
- package/node_modules/undici/lib/web/fetch/headers.js +719 -0
- package/node_modules/undici/lib/web/fetch/index.js +2413 -0
- package/node_modules/undici/lib/web/fetch/request.js +1115 -0
- package/node_modules/undici/lib/web/fetch/response.js +641 -0
- package/node_modules/undici/lib/web/fetch/util.js +1522 -0
- package/node_modules/undici/lib/web/infra/index.js +229 -0
- package/node_modules/undici/lib/web/subresource-integrity/Readme.md +9 -0
- package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +307 -0
- package/node_modules/undici/lib/web/webidl/index.js +1006 -0
- package/node_modules/undici/lib/web/websocket/connection.js +339 -0
- package/node_modules/undici/lib/web/websocket/constants.js +126 -0
- package/node_modules/undici/lib/web/websocket/events.js +331 -0
- package/node_modules/undici/lib/web/websocket/frame.js +133 -0
- package/node_modules/undici/lib/web/websocket/permessage-deflate.js +105 -0
- package/node_modules/undici/lib/web/websocket/receiver.js +507 -0
- package/node_modules/undici/lib/web/websocket/sender.js +109 -0
- package/node_modules/undici/lib/web/websocket/stream/websocketerror.js +104 -0
- package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +496 -0
- package/node_modules/undici/lib/web/websocket/util.js +347 -0
- package/node_modules/undici/lib/web/websocket/websocket.js +758 -0
- package/node_modules/undici/package.json +152 -0
- package/node_modules/undici/scripts/strip-comments.js +10 -0
- package/node_modules/undici/types/README.md +6 -0
- package/node_modules/undici/types/agent.d.ts +32 -0
- package/node_modules/undici/types/api.d.ts +43 -0
- package/node_modules/undici/types/balanced-pool.d.ts +30 -0
- package/node_modules/undici/types/cache-interceptor.d.ts +179 -0
- package/node_modules/undici/types/cache.d.ts +36 -0
- package/node_modules/undici/types/client-stats.d.ts +15 -0
- package/node_modules/undici/types/client.d.ts +139 -0
- package/node_modules/undici/types/connector.d.ts +36 -0
- package/node_modules/undici/types/content-type.d.ts +21 -0
- package/node_modules/undici/types/cookies.d.ts +30 -0
- package/node_modules/undici/types/diagnostics-channel.d.ts +74 -0
- package/node_modules/undici/types/dispatcher.d.ts +275 -0
- package/node_modules/undici/types/env-http-proxy-agent.d.ts +22 -0
- package/node_modules/undici/types/errors.d.ts +177 -0
- package/node_modules/undici/types/eventsource.d.ts +66 -0
- package/node_modules/undici/types/fetch.d.ts +231 -0
- package/node_modules/undici/types/formdata.d.ts +114 -0
- package/node_modules/undici/types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici/types/global-origin.d.ts +7 -0
- package/node_modules/undici/types/h2c-client.d.ts +73 -0
- package/node_modules/undici/types/handlers.d.ts +14 -0
- package/node_modules/undici/types/header.d.ts +160 -0
- package/node_modules/undici/types/index.d.ts +91 -0
- package/node_modules/undici/types/interceptors.d.ts +82 -0
- package/node_modules/undici/types/mock-agent.d.ts +68 -0
- package/node_modules/undici/types/mock-call-history.d.ts +111 -0
- package/node_modules/undici/types/mock-client.d.ts +27 -0
- package/node_modules/undici/types/mock-errors.d.ts +12 -0
- package/node_modules/undici/types/mock-interceptor.d.ts +94 -0
- package/node_modules/undici/types/mock-pool.d.ts +27 -0
- package/node_modules/undici/types/patch.d.ts +29 -0
- package/node_modules/undici/types/pool-stats.d.ts +19 -0
- package/node_modules/undici/types/pool.d.ts +41 -0
- package/node_modules/undici/types/proxy-agent.d.ts +29 -0
- package/node_modules/undici/types/readable.d.ts +68 -0
- package/node_modules/undici/types/retry-agent.d.ts +8 -0
- package/node_modules/undici/types/retry-handler.d.ts +125 -0
- package/node_modules/undici/types/round-robin-pool.d.ts +41 -0
- package/node_modules/undici/types/snapshot-agent.d.ts +109 -0
- package/node_modules/undici/types/socks5-proxy-agent.d.ts +25 -0
- package/node_modules/undici/types/util.d.ts +18 -0
- package/node_modules/undici/types/utility.d.ts +7 -0
- package/node_modules/undici/types/webidl.d.ts +347 -0
- package/node_modules/undici/types/websocket.d.ts +188 -0
- package/node_modules/whatwg-encoding/LICENSE.txt +7 -0
- package/node_modules/whatwg-encoding/README.md +50 -0
- package/node_modules/whatwg-encoding/lib/labels-to-names.json +217 -0
- package/node_modules/whatwg-encoding/lib/supported-names.json +38 -0
- package/node_modules/whatwg-encoding/lib/whatwg-encoding.js +60 -0
- package/node_modules/whatwg-encoding/package.json +32 -0
- package/node_modules/whatwg-mimetype/LICENSE.txt +7 -0
- package/node_modules/whatwg-mimetype/README.md +101 -0
- package/node_modules/whatwg-mimetype/lib/mime-type-parameters.js +70 -0
- package/node_modules/whatwg-mimetype/lib/mime-type.js +127 -0
- package/node_modules/whatwg-mimetype/lib/parser.js +105 -0
- package/node_modules/whatwg-mimetype/lib/serializer.js +25 -0
- package/node_modules/whatwg-mimetype/lib/utils.js +60 -0
- package/node_modules/whatwg-mimetype/package.json +45 -0
- package/package.json +38 -4
- package/src/agent-recovery-proof.mjs +63 -0
- package/src/agent.mjs +363 -0
- package/src/artifact-tools.mjs +22 -0
- package/src/audit.mjs +73 -0
- package/src/auto-guard.mjs +85 -0
- package/src/browser-currency.mjs +20 -0
- package/src/chrome-recovery-proof.mjs +43 -0
- package/src/cli.mjs +798 -0
- package/src/cloud-client.mjs +24 -0
- package/src/codex-provider.mjs +219 -0
- package/src/compaction.mjs +233 -0
- package/src/compat.mjs +13 -0
- package/src/context-pressure.mjs +66 -0
- package/src/context.mjs +47 -0
- package/src/durable-agent-runs.mjs +40 -0
- package/src/execution-metrics.mjs +17 -0
- package/src/file-recovery-proof.mjs +45 -0
- package/src/file-recovery.mjs +95 -0
- package/src/gemini-provider.mjs +150 -0
- package/src/goals.mjs +169 -0
- package/src/governance.mjs +81 -0
- package/src/house.mjs +184 -0
- package/src/judges.mjs +72 -0
- package/src/mcp-http.mjs +190 -0
- package/src/mcp-rpc.mjs +84 -0
- package/src/mcp-runtime.mjs +219 -0
- package/src/mcp-sse.mjs +27 -0
- package/src/mcp.mjs +79 -0
- package/src/model-controls.mjs +173 -0
- package/src/model-deadline.mjs +35 -0
- package/src/model-output.mjs +23 -0
- package/src/openai-provider.mjs +249 -0
- package/src/operations.mjs +74 -0
- package/src/peer-message-context.mjs +17 -0
- package/src/peer-tools.mjs +164 -0
- package/src/permissions.mjs +63 -0
- package/src/plugin-config.mjs +95 -0
- package/src/plugins/chrome-lab/bridge.mjs +206 -0
- package/src/plugins/chrome-lab/client.mjs +123 -0
- package/src/plugins/chrome-lab/index.mjs +141 -0
- package/src/plugins/chrome-lab/project.mjs +45 -0
- package/src/plugins.mjs +272 -0
- package/src/process-lock.mjs +70 -0
- package/src/provider-auth.mjs +207 -0
- package/src/provider-profiles.mjs +113 -0
- package/src/provider-scheduler.mjs +18 -0
- package/src/provider.mjs +174 -0
- package/src/read-only-check.mjs +38 -0
- package/src/session-bus.mjs +367 -0
- package/src/session-provider-settings.mjs +39 -0
- package/src/session-read-cache.mjs +20 -0
- package/src/session.mjs +71 -0
- package/src/sessions.mjs +140 -0
- package/src/skill-runtime.mjs +130 -0
- package/src/subagents.mjs +480 -0
- package/src/tool-call-stream.mjs +39 -0
- package/src/tool-catalog.mjs +19 -0
- package/src/tool-input.mjs +20 -0
- package/src/tool-packs.mjs +163 -0
- package/src/tool-scheduler.mjs +21 -0
- package/src/tool-schema.mjs +51 -0
- package/src/tools.mjs +260 -0
- package/src/trusted-context.mjs +23 -0
- package/src/tui/brand.mjs +50 -0
- package/src/tui/clipboard.mjs +28 -0
- package/src/tui/composer.mjs +77 -0
- package/src/tui/controller.mjs +149 -0
- package/src/tui/discovery.mjs +217 -0
- package/src/tui/input.mjs +60 -0
- package/src/tui/markdown.mjs +126 -0
- package/src/tui/message-queue.mjs +56 -0
- package/src/tui/screen.mjs +586 -0
- package/src/tui/text.mjs +113 -0
- package/src/usage-accounting.mjs +43 -0
- package/src/vision.mjs +136 -0
- package/src/web-tools.mjs +120 -0
- package/src/work-assertions.mjs +29 -0
- package/src/work-check-contracts.mjs +95 -0
- package/src/work-intent.mjs +6 -0
- package/src/work-plan.mjs +419 -0
- package/src/work-recovery-proof.mjs +69 -0
- package/src/work-state.mjs +201 -0
- package/src/workflows/chrome-task.mjs +275 -0
|
@@ -0,0 +1,1145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Methods for getting and modifying attributes.
|
|
3
|
+
*
|
|
4
|
+
* @module cheerio/attributes
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { text } from '../static.js';
|
|
8
|
+
import { domEach, camelCase, cssCase } from '../utils.js';
|
|
9
|
+
import { isTag, type AnyNode, type Element } from 'domhandler';
|
|
10
|
+
import type { Cheerio } from '../cheerio.js';
|
|
11
|
+
import { innerText, textContent } from 'domutils';
|
|
12
|
+
import { ElementType } from 'htmlparser2';
|
|
13
|
+
const hasOwn =
|
|
14
|
+
// @ts-expect-error `hasOwn` is a standard object method
|
|
15
|
+
(Object.hasOwn as (object: unknown, prop: string) => boolean) ??
|
|
16
|
+
((object: unknown, prop: string) =>
|
|
17
|
+
Object.prototype.hasOwnProperty.call(object, prop));
|
|
18
|
+
const rspace = /\s+/;
|
|
19
|
+
const dataAttrPrefix = 'data-';
|
|
20
|
+
|
|
21
|
+
// Attributes that are booleans
|
|
22
|
+
const rboolean =
|
|
23
|
+
/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i;
|
|
24
|
+
// Matches strings that look like JSON objects or arrays
|
|
25
|
+
const rbrace = /^{[^]*}$|^\[[^]*]$/;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Gets a node's attribute. For boolean attributes, it will return the value's
|
|
29
|
+
* name should it be set.
|
|
30
|
+
*
|
|
31
|
+
* Also supports getting the `value` of several form elements.
|
|
32
|
+
*
|
|
33
|
+
* @private
|
|
34
|
+
* @category Attributes
|
|
35
|
+
* @param elem - Element to get the attribute of.
|
|
36
|
+
* @param name - Name of the attribute.
|
|
37
|
+
* @param xmlMode - Disable handling of special HTML attributes.
|
|
38
|
+
* @returns The attribute's value.
|
|
39
|
+
*/
|
|
40
|
+
function getAttr(
|
|
41
|
+
elem: AnyNode,
|
|
42
|
+
name: undefined,
|
|
43
|
+
xmlMode?: boolean,
|
|
44
|
+
): Record<string, string> | undefined;
|
|
45
|
+
function getAttr(
|
|
46
|
+
elem: AnyNode,
|
|
47
|
+
name: string,
|
|
48
|
+
xmlMode?: boolean,
|
|
49
|
+
): string | undefined;
|
|
50
|
+
function getAttr(
|
|
51
|
+
elem: AnyNode,
|
|
52
|
+
name: string | undefined,
|
|
53
|
+
xmlMode?: boolean,
|
|
54
|
+
): Record<string, string> | string | undefined {
|
|
55
|
+
if (!elem || !isTag(elem)) return undefined;
|
|
56
|
+
|
|
57
|
+
elem.attribs ??= {};
|
|
58
|
+
|
|
59
|
+
// Return the entire attribs object if no attribute specified
|
|
60
|
+
if (!name) {
|
|
61
|
+
return elem.attribs;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (hasOwn(elem.attribs, name)) {
|
|
65
|
+
// Get the (decoded) attribute
|
|
66
|
+
return !xmlMode && rboolean.test(name) ? name : elem.attribs[name];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Mimic the DOM and return text content as value for `option's`
|
|
70
|
+
if (elem.name === 'option' && name === 'value') {
|
|
71
|
+
return text(elem.children);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Mimic DOM with default value for radios/checkboxes
|
|
75
|
+
if (
|
|
76
|
+
elem.name === 'input' &&
|
|
77
|
+
(elem.attribs['type'] === 'radio' || elem.attribs['type'] === 'checkbox') &&
|
|
78
|
+
name === 'value'
|
|
79
|
+
) {
|
|
80
|
+
return 'on';
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return undefined;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Sets the value of an attribute. The attribute will be deleted if the value is
|
|
88
|
+
* `null`.
|
|
89
|
+
*
|
|
90
|
+
* @private
|
|
91
|
+
* @param el - The element to set the attribute on.
|
|
92
|
+
* @param name - The attribute's name.
|
|
93
|
+
* @param value - The attribute's value.
|
|
94
|
+
*/
|
|
95
|
+
function setAttr(el: Element, name: string, value: string | null) {
|
|
96
|
+
if (value === null) {
|
|
97
|
+
removeAttribute(el, name);
|
|
98
|
+
} else {
|
|
99
|
+
el.attribs[name] = `${value}`;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Method for getting attributes. Gets the attribute value for only the first
|
|
105
|
+
* element in the matched set.
|
|
106
|
+
*
|
|
107
|
+
* @category Attributes
|
|
108
|
+
* @example
|
|
109
|
+
*
|
|
110
|
+
* ```js
|
|
111
|
+
* $('ul').attr('id');
|
|
112
|
+
* //=> fruits
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* @param name - Name of the attribute.
|
|
116
|
+
* @returns The attribute's value.
|
|
117
|
+
* @see {@link https://api.jquery.com/attr/}
|
|
118
|
+
*/
|
|
119
|
+
export function attr<T extends AnyNode>(
|
|
120
|
+
this: Cheerio<T>,
|
|
121
|
+
name: string,
|
|
122
|
+
): string | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* Method for getting all attributes and their values of the first element in
|
|
125
|
+
* the matched set.
|
|
126
|
+
*
|
|
127
|
+
* @category Attributes
|
|
128
|
+
* @example
|
|
129
|
+
*
|
|
130
|
+
* ```js
|
|
131
|
+
* $('ul').attr();
|
|
132
|
+
* //=> { id: 'fruits' }
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
135
|
+
* @returns The attribute's values.
|
|
136
|
+
* @see {@link https://api.jquery.com/attr/}
|
|
137
|
+
*/
|
|
138
|
+
export function attr<T extends AnyNode>(
|
|
139
|
+
this: Cheerio<T>,
|
|
140
|
+
): Record<string, string> | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* Method for setting attributes. Sets the attribute value for all elements in
|
|
143
|
+
* the matched set. If you set an attribute's value to `null`, you remove that
|
|
144
|
+
* attribute. You may also pass a `map` and `function`.
|
|
145
|
+
*
|
|
146
|
+
* @category Attributes
|
|
147
|
+
* @example
|
|
148
|
+
*
|
|
149
|
+
* ```js
|
|
150
|
+
* $('.apple').attr('id', 'favorite').prop('outerHTML');
|
|
151
|
+
* //=> <li class="apple" id="favorite">Apple</li>
|
|
152
|
+
* ```
|
|
153
|
+
*
|
|
154
|
+
* @param name - Name of the attribute.
|
|
155
|
+
* @param value - The new value of the attribute.
|
|
156
|
+
* @returns The instance itself.
|
|
157
|
+
* @see {@link https://api.jquery.com/attr/}
|
|
158
|
+
*/
|
|
159
|
+
export function attr<T extends AnyNode>(
|
|
160
|
+
this: Cheerio<T>,
|
|
161
|
+
name: string,
|
|
162
|
+
value?:
|
|
163
|
+
| string
|
|
164
|
+
| null
|
|
165
|
+
| ((this: Element, i: number, attrib: string) => string | null),
|
|
166
|
+
): Cheerio<T>;
|
|
167
|
+
/**
|
|
168
|
+
* Method for setting multiple attributes at once. Sets the attribute value for
|
|
169
|
+
* all elements in the matched set. If you set an attribute's value to `null`,
|
|
170
|
+
* you remove that attribute.
|
|
171
|
+
*
|
|
172
|
+
* @category Attributes
|
|
173
|
+
* @example
|
|
174
|
+
*
|
|
175
|
+
* ```js
|
|
176
|
+
* $('.apple').attr({ id: 'favorite' }).prop('outerHTML');
|
|
177
|
+
* //=> <li class="apple" id="favorite">Apple</li>
|
|
178
|
+
* ```
|
|
179
|
+
*
|
|
180
|
+
* @param values - Map of attribute names and values.
|
|
181
|
+
* @returns The instance itself.
|
|
182
|
+
* @see {@link https://api.jquery.com/attr/}
|
|
183
|
+
*/
|
|
184
|
+
export function attr<T extends AnyNode>(
|
|
185
|
+
this: Cheerio<T>,
|
|
186
|
+
values: Record<string, string | null>,
|
|
187
|
+
): Cheerio<T>;
|
|
188
|
+
export function attr<T extends AnyNode>(
|
|
189
|
+
this: Cheerio<T>,
|
|
190
|
+
name?: string | Record<string, string | null>,
|
|
191
|
+
value?:
|
|
192
|
+
| string
|
|
193
|
+
| null
|
|
194
|
+
| ((this: Element, i: number, attrib: string) => string | null),
|
|
195
|
+
): string | Cheerio<T> | undefined | Record<string, string> {
|
|
196
|
+
// Set the value (with attr map support)
|
|
197
|
+
if (typeof name === 'object' || value !== undefined) {
|
|
198
|
+
if (typeof value === 'function') {
|
|
199
|
+
if (typeof name !== 'string') {
|
|
200
|
+
{
|
|
201
|
+
throw new Error('Bad combination of arguments.');
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
return domEach(this, (el, i) => {
|
|
205
|
+
if (isTag(el)) setAttr(el, name, value.call(el, i, el.attribs[name]));
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
return domEach(this, (el) => {
|
|
209
|
+
if (!isTag(el)) return;
|
|
210
|
+
|
|
211
|
+
if (typeof name === 'object') {
|
|
212
|
+
for (const objName of Object.keys(name)) {
|
|
213
|
+
const objValue = name[objName];
|
|
214
|
+
setAttr(el, objName, objValue);
|
|
215
|
+
}
|
|
216
|
+
} else {
|
|
217
|
+
setAttr(el, name!, value!);
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
return arguments.length > 1
|
|
223
|
+
? this
|
|
224
|
+
: getAttr(this[0], name!, this.options.xmlMode);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Gets a node's prop.
|
|
229
|
+
*
|
|
230
|
+
* @private
|
|
231
|
+
* @category Attributes
|
|
232
|
+
* @param el - Element to get the prop of.
|
|
233
|
+
* @param name - Name of the prop.
|
|
234
|
+
* @param xmlMode - Disable handling of special HTML attributes.
|
|
235
|
+
* @returns The prop's value.
|
|
236
|
+
*/
|
|
237
|
+
function getProp(
|
|
238
|
+
el: Element,
|
|
239
|
+
name: string,
|
|
240
|
+
xmlMode?: boolean,
|
|
241
|
+
): string | undefined | boolean | Element[keyof Element] {
|
|
242
|
+
return name in el
|
|
243
|
+
? // @ts-expect-error TS doesn't like us accessing the value directly here.
|
|
244
|
+
(el[name] as string | undefined)
|
|
245
|
+
: !xmlMode && rboolean.test(name)
|
|
246
|
+
? getAttr(el, name, false) !== undefined
|
|
247
|
+
: getAttr(el, name, xmlMode);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Sets the value of a prop.
|
|
252
|
+
*
|
|
253
|
+
* @private
|
|
254
|
+
* @param el - The element to set the prop on.
|
|
255
|
+
* @param name - The prop's name.
|
|
256
|
+
* @param value - The prop's value.
|
|
257
|
+
* @param xmlMode - Disable handling of special HTML attributes.
|
|
258
|
+
*/
|
|
259
|
+
function setProp(el: Element, name: string, value: unknown, xmlMode?: boolean) {
|
|
260
|
+
if (name in el) {
|
|
261
|
+
// @ts-expect-error Overriding value
|
|
262
|
+
el[name] = value;
|
|
263
|
+
} else {
|
|
264
|
+
setAttr(
|
|
265
|
+
el,
|
|
266
|
+
name,
|
|
267
|
+
!xmlMode && rboolean.test(name)
|
|
268
|
+
? value
|
|
269
|
+
? ''
|
|
270
|
+
: null
|
|
271
|
+
: `${value as string}`,
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
interface StyleProp {
|
|
277
|
+
length: number;
|
|
278
|
+
[key: string]: string | number;
|
|
279
|
+
[index: number]: string;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Method for getting and setting properties. Gets the property value for only
|
|
284
|
+
* the first element in the matched set.
|
|
285
|
+
*
|
|
286
|
+
* @category Attributes
|
|
287
|
+
* @example
|
|
288
|
+
*
|
|
289
|
+
* ```js
|
|
290
|
+
* $('input[type="checkbox"]').prop('checked');
|
|
291
|
+
* //=> false
|
|
292
|
+
*
|
|
293
|
+
* $('input[type="checkbox"]').prop('checked', true).val();
|
|
294
|
+
* //=> ok
|
|
295
|
+
* ```
|
|
296
|
+
*
|
|
297
|
+
* @param name - Name of the property.
|
|
298
|
+
* @returns If `value` is specified the instance itself, otherwise the prop's
|
|
299
|
+
* value.
|
|
300
|
+
* @see {@link https://api.jquery.com/prop/}
|
|
301
|
+
*/
|
|
302
|
+
export function prop<T extends AnyNode>(
|
|
303
|
+
this: Cheerio<T>,
|
|
304
|
+
name: 'tagName' | 'nodeName',
|
|
305
|
+
): string | undefined;
|
|
306
|
+
export function prop<T extends AnyNode>(
|
|
307
|
+
this: Cheerio<T>,
|
|
308
|
+
name: 'innerHTML' | 'outerHTML' | 'innerText' | 'textContent',
|
|
309
|
+
): string | null;
|
|
310
|
+
/**
|
|
311
|
+
* Get a parsed CSS style object.
|
|
312
|
+
*
|
|
313
|
+
* @param name - Name of the property.
|
|
314
|
+
* @returns The style object, or `undefined` if the element has no `style`
|
|
315
|
+
* attribute.
|
|
316
|
+
*/
|
|
317
|
+
export function prop<T extends AnyNode>(
|
|
318
|
+
this: Cheerio<T>,
|
|
319
|
+
name: 'style',
|
|
320
|
+
): StyleProp | undefined;
|
|
321
|
+
/**
|
|
322
|
+
* Resolve `href` or `src` of supported elements. Requires the `baseURI` option
|
|
323
|
+
* to be set, and a global `URL` object to be part of the environment.
|
|
324
|
+
*
|
|
325
|
+
* @example With `baseURI` set to `'https://example.com'`:
|
|
326
|
+
*
|
|
327
|
+
* ```js
|
|
328
|
+
* $('<img src="image.png">').prop('src');
|
|
329
|
+
* //=> 'https://example.com/image.png'
|
|
330
|
+
* ```
|
|
331
|
+
*
|
|
332
|
+
* @param name - Name of the property.
|
|
333
|
+
* @returns The resolved URL, or `undefined` if the element is not supported.
|
|
334
|
+
*/
|
|
335
|
+
export function prop<T extends AnyNode>(
|
|
336
|
+
this: Cheerio<T>,
|
|
337
|
+
name: 'href' | 'src',
|
|
338
|
+
): string | undefined;
|
|
339
|
+
/**
|
|
340
|
+
* Get a property of an element.
|
|
341
|
+
*
|
|
342
|
+
* @param name - Name of the property.
|
|
343
|
+
* @returns The property's value.
|
|
344
|
+
*/
|
|
345
|
+
export function prop<T extends AnyNode, K extends keyof Element>(
|
|
346
|
+
this: Cheerio<T>,
|
|
347
|
+
name: K,
|
|
348
|
+
): Element[K];
|
|
349
|
+
/**
|
|
350
|
+
* Set a property of an element.
|
|
351
|
+
*
|
|
352
|
+
* @param name - Name of the property.
|
|
353
|
+
* @param value - Value to set the property to.
|
|
354
|
+
* @returns The instance itself.
|
|
355
|
+
*/
|
|
356
|
+
export function prop<T extends AnyNode, K extends keyof Element>(
|
|
357
|
+
this: Cheerio<T>,
|
|
358
|
+
name: K,
|
|
359
|
+
value:
|
|
360
|
+
| Element[K]
|
|
361
|
+
| ((this: Element, i: number, prop: K) => Element[keyof Element]),
|
|
362
|
+
): Cheerio<T>;
|
|
363
|
+
/**
|
|
364
|
+
* Set multiple properties of an element.
|
|
365
|
+
*
|
|
366
|
+
* @example
|
|
367
|
+
*
|
|
368
|
+
* ```js
|
|
369
|
+
* $('input[type="checkbox"]').prop({
|
|
370
|
+
* checked: true,
|
|
371
|
+
* disabled: false,
|
|
372
|
+
* });
|
|
373
|
+
* ```
|
|
374
|
+
*
|
|
375
|
+
* @param map - Object of properties to set.
|
|
376
|
+
* @returns The instance itself.
|
|
377
|
+
*/
|
|
378
|
+
export function prop<T extends AnyNode>(
|
|
379
|
+
this: Cheerio<T>,
|
|
380
|
+
map: Record<string, string | Element[keyof Element] | boolean>,
|
|
381
|
+
): Cheerio<T>;
|
|
382
|
+
/**
|
|
383
|
+
* Set a property of an element.
|
|
384
|
+
*
|
|
385
|
+
* @param name - Name of the property.
|
|
386
|
+
* @param value - Value to set the property to.
|
|
387
|
+
* @returns The instance itself.
|
|
388
|
+
*/
|
|
389
|
+
export function prop<T extends AnyNode>(
|
|
390
|
+
this: Cheerio<T>,
|
|
391
|
+
name: string,
|
|
392
|
+
value:
|
|
393
|
+
| string
|
|
394
|
+
| boolean
|
|
395
|
+
| null
|
|
396
|
+
| ((this: Element, i: number, prop: string) => string | boolean),
|
|
397
|
+
): Cheerio<T>;
|
|
398
|
+
/**
|
|
399
|
+
* Get a property of an element.
|
|
400
|
+
*
|
|
401
|
+
* @param name - The property's name.
|
|
402
|
+
* @returns The property's value.
|
|
403
|
+
*/
|
|
404
|
+
export function prop<T extends AnyNode>(this: Cheerio<T>, name: string): string;
|
|
405
|
+
export function prop<T extends AnyNode>(
|
|
406
|
+
this: Cheerio<T>,
|
|
407
|
+
name: string | Record<string, string | Element[keyof Element] | boolean>,
|
|
408
|
+
value?: unknown,
|
|
409
|
+
):
|
|
410
|
+
| Cheerio<T>
|
|
411
|
+
| string
|
|
412
|
+
| boolean
|
|
413
|
+
| undefined
|
|
414
|
+
| null
|
|
415
|
+
| Element[keyof Element]
|
|
416
|
+
| StyleProp {
|
|
417
|
+
if (typeof name === 'string' && value === undefined) {
|
|
418
|
+
const el = this[0];
|
|
419
|
+
|
|
420
|
+
if (!el) return undefined;
|
|
421
|
+
|
|
422
|
+
switch (name) {
|
|
423
|
+
case 'style': {
|
|
424
|
+
const property = this.css() as StyleProp;
|
|
425
|
+
const keys = Object.keys(property);
|
|
426
|
+
for (let i = 0; i < keys.length; i++) {
|
|
427
|
+
property[i] = keys[i];
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
property.length = keys.length;
|
|
431
|
+
|
|
432
|
+
return property;
|
|
433
|
+
}
|
|
434
|
+
case 'tagName':
|
|
435
|
+
case 'nodeName': {
|
|
436
|
+
if (!isTag(el)) return undefined;
|
|
437
|
+
return el.name.toUpperCase();
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
case 'href':
|
|
441
|
+
case 'src': {
|
|
442
|
+
if (!isTag(el)) return undefined;
|
|
443
|
+
const prop = el.attribs?.[name];
|
|
444
|
+
|
|
445
|
+
if (
|
|
446
|
+
typeof URL !== 'undefined' &&
|
|
447
|
+
((name === 'href' && (el.tagName === 'a' || el.tagName === 'link')) ||
|
|
448
|
+
(name === 'src' &&
|
|
449
|
+
(el.tagName === 'img' ||
|
|
450
|
+
el.tagName === 'iframe' ||
|
|
451
|
+
el.tagName === 'audio' ||
|
|
452
|
+
el.tagName === 'video' ||
|
|
453
|
+
el.tagName === 'source'))) &&
|
|
454
|
+
prop !== undefined &&
|
|
455
|
+
this.options.baseURI
|
|
456
|
+
) {
|
|
457
|
+
return new URL(prop, this.options.baseURI).href;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
return prop;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
case 'innerText': {
|
|
464
|
+
return innerText(el);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
case 'textContent': {
|
|
468
|
+
return textContent(el);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
case 'outerHTML': {
|
|
472
|
+
if (el.type === ElementType.Root) return this.html();
|
|
473
|
+
return this.clone().wrap('<container />').parent().html();
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
case 'innerHTML': {
|
|
477
|
+
return this.html();
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
default: {
|
|
481
|
+
if (!isTag(el)) return undefined;
|
|
482
|
+
return getProp(el, name, this.options.xmlMode);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
if (typeof name === 'object' || value !== undefined) {
|
|
488
|
+
if (typeof value === 'function') {
|
|
489
|
+
if (typeof name === 'object') {
|
|
490
|
+
throw new TypeError('Bad combination of arguments.');
|
|
491
|
+
}
|
|
492
|
+
return domEach(this, (el, i) => {
|
|
493
|
+
if (isTag(el)) {
|
|
494
|
+
setProp(
|
|
495
|
+
el,
|
|
496
|
+
name,
|
|
497
|
+
value.call(el, i, getProp(el, name, this.options.xmlMode)),
|
|
498
|
+
this.options.xmlMode,
|
|
499
|
+
);
|
|
500
|
+
}
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
return domEach(this, (el) => {
|
|
505
|
+
if (!isTag(el)) return;
|
|
506
|
+
|
|
507
|
+
if (typeof name === 'object') {
|
|
508
|
+
for (const key of Object.keys(name)) {
|
|
509
|
+
const val = name[key];
|
|
510
|
+
setProp(el, key, val, this.options.xmlMode);
|
|
511
|
+
}
|
|
512
|
+
} else {
|
|
513
|
+
setProp(el, name, value, this.options.xmlMode);
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
return undefined;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* An element with a data attribute.
|
|
523
|
+
*
|
|
524
|
+
* @private
|
|
525
|
+
*/
|
|
526
|
+
interface DataElement extends Element {
|
|
527
|
+
/** The data attribute. */
|
|
528
|
+
data?: Record<string, unknown>;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Sets the value of a data attribute.
|
|
533
|
+
*
|
|
534
|
+
* @private
|
|
535
|
+
* @param elem - The element to set the data attribute on.
|
|
536
|
+
* @param name - The data attribute's name.
|
|
537
|
+
* @param value - The data attribute's value.
|
|
538
|
+
*/
|
|
539
|
+
function setData(
|
|
540
|
+
elem: DataElement,
|
|
541
|
+
name: string | Record<string, unknown>,
|
|
542
|
+
value?: unknown,
|
|
543
|
+
) {
|
|
544
|
+
elem.data ??= {};
|
|
545
|
+
|
|
546
|
+
if (typeof name === 'object') Object.assign(elem.data, name);
|
|
547
|
+
else if (typeof name === 'string' && value !== undefined) {
|
|
548
|
+
elem.data[name] = value;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Read _all_ HTML5 `data-*` attributes from the equivalent HTML5 `data-*`
|
|
554
|
+
* attribute, and cache the value in the node's internal data store.
|
|
555
|
+
*
|
|
556
|
+
* @private
|
|
557
|
+
* @category Attributes
|
|
558
|
+
* @param el - Element to get the data attribute of.
|
|
559
|
+
* @returns A map with all of the data attributes.
|
|
560
|
+
*/
|
|
561
|
+
function readAllData(el: DataElement): unknown {
|
|
562
|
+
for (const domName of Object.keys(el.attribs)) {
|
|
563
|
+
if (!domName.startsWith(dataAttrPrefix)) {
|
|
564
|
+
continue;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
const jsName = camelCase(domName.slice(dataAttrPrefix.length));
|
|
568
|
+
|
|
569
|
+
if (!hasOwn(el.data, jsName)) {
|
|
570
|
+
el.data![jsName] = parseDataValue(el.attribs[domName]);
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
return el.data;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Read the specified attribute from the equivalent HTML5 `data-*` attribute,
|
|
579
|
+
* and (if present) cache the value in the node's internal data store.
|
|
580
|
+
*
|
|
581
|
+
* @private
|
|
582
|
+
* @category Attributes
|
|
583
|
+
* @param el - Element to get the data attribute of.
|
|
584
|
+
* @param name - Name of the data attribute.
|
|
585
|
+
* @returns The data attribute's value.
|
|
586
|
+
*/
|
|
587
|
+
function readData(el: DataElement, name: string): unknown {
|
|
588
|
+
const domName = dataAttrPrefix + cssCase(name);
|
|
589
|
+
const data = el.data!;
|
|
590
|
+
|
|
591
|
+
if (hasOwn(data, name)) {
|
|
592
|
+
return data[name];
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
if (hasOwn(el.attribs, domName)) {
|
|
596
|
+
return (data[name] = parseDataValue(el.attribs[domName]));
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
return undefined;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Coerce string data-* attributes to their corresponding JavaScript primitives.
|
|
604
|
+
*
|
|
605
|
+
* @private
|
|
606
|
+
* @category Attributes
|
|
607
|
+
* @param value - The value to parse.
|
|
608
|
+
* @returns The parsed value.
|
|
609
|
+
*/
|
|
610
|
+
function parseDataValue(value: string): unknown {
|
|
611
|
+
if (value === 'null') return null;
|
|
612
|
+
if (value === 'true') return true;
|
|
613
|
+
if (value === 'false') return false;
|
|
614
|
+
const num = Number(value);
|
|
615
|
+
if (value === String(num)) return num;
|
|
616
|
+
if (rbrace.test(value)) {
|
|
617
|
+
try {
|
|
618
|
+
return JSON.parse(value);
|
|
619
|
+
} catch {
|
|
620
|
+
/* Ignore */
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
return value;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Method for getting data attributes, for only the first element in the matched
|
|
628
|
+
* set.
|
|
629
|
+
*
|
|
630
|
+
* @category Attributes
|
|
631
|
+
* @example
|
|
632
|
+
*
|
|
633
|
+
* ```js
|
|
634
|
+
* $('<div data-apple-color="red"></div>').data('apple-color');
|
|
635
|
+
* //=> 'red'
|
|
636
|
+
* ```
|
|
637
|
+
*
|
|
638
|
+
* @param name - Name of the data attribute.
|
|
639
|
+
* @returns The data attribute's value, or `undefined` if the attribute does not
|
|
640
|
+
* exist.
|
|
641
|
+
* @see {@link https://api.jquery.com/data/}
|
|
642
|
+
*/
|
|
643
|
+
export function data<T extends AnyNode>(
|
|
644
|
+
this: Cheerio<T>,
|
|
645
|
+
name: string,
|
|
646
|
+
): unknown;
|
|
647
|
+
/**
|
|
648
|
+
* Method for getting all of an element's data attributes, for only the first
|
|
649
|
+
* element in the matched set.
|
|
650
|
+
*
|
|
651
|
+
* @category Attributes
|
|
652
|
+
* @example
|
|
653
|
+
*
|
|
654
|
+
* ```js
|
|
655
|
+
* $('<div data-apple-color="red"></div>').data();
|
|
656
|
+
* //=> { appleColor: 'red' }
|
|
657
|
+
* ```
|
|
658
|
+
*
|
|
659
|
+
* @returns A map with all of the data attributes.
|
|
660
|
+
* @see {@link https://api.jquery.com/data/}
|
|
661
|
+
*/
|
|
662
|
+
export function data<T extends AnyNode>(
|
|
663
|
+
this: Cheerio<T>,
|
|
664
|
+
): Record<string, unknown>;
|
|
665
|
+
/**
|
|
666
|
+
* Method for setting data attributes, for only the first element in the matched
|
|
667
|
+
* set.
|
|
668
|
+
*
|
|
669
|
+
* @category Attributes
|
|
670
|
+
* @example
|
|
671
|
+
*
|
|
672
|
+
* ```js
|
|
673
|
+
* const apple = $('.apple').data('kind', 'mac');
|
|
674
|
+
*
|
|
675
|
+
* apple.data('kind');
|
|
676
|
+
* //=> 'mac'
|
|
677
|
+
* ```
|
|
678
|
+
*
|
|
679
|
+
* @param name - Name of the data attribute.
|
|
680
|
+
* @param value - The new value.
|
|
681
|
+
* @returns The instance itself.
|
|
682
|
+
* @see {@link https://api.jquery.com/data/}
|
|
683
|
+
*/
|
|
684
|
+
export function data<T extends AnyNode>(
|
|
685
|
+
this: Cheerio<T>,
|
|
686
|
+
name: string,
|
|
687
|
+
value: unknown,
|
|
688
|
+
): Cheerio<T>;
|
|
689
|
+
/**
|
|
690
|
+
* Method for setting multiple data attributes at once, for only the first
|
|
691
|
+
* element in the matched set.
|
|
692
|
+
*
|
|
693
|
+
* @category Attributes
|
|
694
|
+
* @example
|
|
695
|
+
*
|
|
696
|
+
* ```js
|
|
697
|
+
* const apple = $('.apple').data({ kind: 'mac' });
|
|
698
|
+
*
|
|
699
|
+
* apple.data('kind');
|
|
700
|
+
* //=> 'mac'
|
|
701
|
+
* ```
|
|
702
|
+
*
|
|
703
|
+
* @param values - Map of names to values.
|
|
704
|
+
* @returns The instance itself.
|
|
705
|
+
* @see {@link https://api.jquery.com/data/}
|
|
706
|
+
*/
|
|
707
|
+
export function data<T extends AnyNode>(
|
|
708
|
+
this: Cheerio<T>,
|
|
709
|
+
values: Record<string, unknown>,
|
|
710
|
+
): Cheerio<T>;
|
|
711
|
+
export function data<T extends AnyNode>(
|
|
712
|
+
this: Cheerio<T>,
|
|
713
|
+
name?: string | Record<string, unknown>,
|
|
714
|
+
value?: unknown,
|
|
715
|
+
): unknown {
|
|
716
|
+
const elem = this[0];
|
|
717
|
+
|
|
718
|
+
if (!elem || !isTag(elem)) return;
|
|
719
|
+
|
|
720
|
+
const dataEl: DataElement = elem;
|
|
721
|
+
dataEl.data ??= {};
|
|
722
|
+
|
|
723
|
+
// Return the entire data object if no data specified
|
|
724
|
+
if (name == null) {
|
|
725
|
+
return readAllData(dataEl);
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
// Set the value (with attr map support)
|
|
729
|
+
if (typeof name === 'object' || value !== undefined) {
|
|
730
|
+
domEach(this, (el) => {
|
|
731
|
+
if (isTag(el)) {
|
|
732
|
+
if (typeof name === 'object') setData(el, name);
|
|
733
|
+
else setData(el, name, value);
|
|
734
|
+
}
|
|
735
|
+
});
|
|
736
|
+
return this;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
return readData(dataEl, name);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Method for getting the value of input, select, and textarea. Note: Support
|
|
744
|
+
* for `map`, and `function` has not been added yet.
|
|
745
|
+
*
|
|
746
|
+
* @category Attributes
|
|
747
|
+
* @example
|
|
748
|
+
*
|
|
749
|
+
* ```js
|
|
750
|
+
* $('input[type="text"]').val();
|
|
751
|
+
* //=> input_text
|
|
752
|
+
* ```
|
|
753
|
+
*
|
|
754
|
+
* @returns The value.
|
|
755
|
+
* @see {@link https://api.jquery.com/val/}
|
|
756
|
+
*/
|
|
757
|
+
export function val<T extends AnyNode>(
|
|
758
|
+
this: Cheerio<T>,
|
|
759
|
+
): string | undefined | string[];
|
|
760
|
+
/**
|
|
761
|
+
* Method for setting the value of input, select, and textarea. Note: Support
|
|
762
|
+
* for `map`, and `function` has not been added yet.
|
|
763
|
+
*
|
|
764
|
+
* @category Attributes
|
|
765
|
+
* @example
|
|
766
|
+
*
|
|
767
|
+
* ```js
|
|
768
|
+
* $('input[type="text"]').val('test').prop('outerHTML');
|
|
769
|
+
* //=> <input type="text" value="test"/>
|
|
770
|
+
* ```
|
|
771
|
+
*
|
|
772
|
+
* @param value - The new value.
|
|
773
|
+
* @returns The instance itself.
|
|
774
|
+
* @see {@link https://api.jquery.com/val/}
|
|
775
|
+
*/
|
|
776
|
+
export function val<T extends AnyNode>(
|
|
777
|
+
this: Cheerio<T>,
|
|
778
|
+
value: string | string[],
|
|
779
|
+
): Cheerio<T>;
|
|
780
|
+
export function val<T extends AnyNode>(
|
|
781
|
+
this: Cheerio<T>,
|
|
782
|
+
value?: string | string[],
|
|
783
|
+
): string | string[] | Cheerio<T> | undefined {
|
|
784
|
+
const querying = arguments.length === 0;
|
|
785
|
+
const element = this[0];
|
|
786
|
+
|
|
787
|
+
if (!element || !isTag(element)) return querying ? undefined : this;
|
|
788
|
+
|
|
789
|
+
switch (element.name) {
|
|
790
|
+
case 'textarea': {
|
|
791
|
+
return this.text(value as string);
|
|
792
|
+
}
|
|
793
|
+
case 'select': {
|
|
794
|
+
const option = this.find('option:selected');
|
|
795
|
+
if (!querying) {
|
|
796
|
+
if (this.attr('multiple') == null && typeof value === 'object') {
|
|
797
|
+
return this;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
this.find('option').removeAttr('selected');
|
|
801
|
+
|
|
802
|
+
const values = typeof value === 'object' ? value : [value];
|
|
803
|
+
for (const val of values) {
|
|
804
|
+
this.find(`option[value="${val}"]`).attr('selected', '');
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
return this;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
return this.attr('multiple')
|
|
811
|
+
? option.toArray().map((el) => text(el.children))
|
|
812
|
+
: option.attr('value');
|
|
813
|
+
}
|
|
814
|
+
case 'button':
|
|
815
|
+
case 'input':
|
|
816
|
+
case 'option': {
|
|
817
|
+
return querying
|
|
818
|
+
? this.attr('value')
|
|
819
|
+
: this.attr('value', value as string);
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
return undefined;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* Remove an attribute.
|
|
828
|
+
*
|
|
829
|
+
* @private
|
|
830
|
+
* @param elem - Node to remove attribute from.
|
|
831
|
+
* @param name - Name of the attribute to remove.
|
|
832
|
+
*/
|
|
833
|
+
function removeAttribute(elem: Element, name: string) {
|
|
834
|
+
if (!elem.attribs || !hasOwn(elem.attribs, name)) return;
|
|
835
|
+
|
|
836
|
+
delete elem.attribs[name];
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Splits a space-separated list of names to individual names.
|
|
841
|
+
*
|
|
842
|
+
* @category Attributes
|
|
843
|
+
* @param names - Names to split.
|
|
844
|
+
* @returns - Split names.
|
|
845
|
+
*/
|
|
846
|
+
function splitNames(names?: string): string[] {
|
|
847
|
+
return names ? names.trim().split(rspace) : [];
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Method for removing attributes by `name`.
|
|
852
|
+
*
|
|
853
|
+
* @category Attributes
|
|
854
|
+
* @example
|
|
855
|
+
*
|
|
856
|
+
* ```js
|
|
857
|
+
* $('.pear').removeAttr('class').prop('outerHTML');
|
|
858
|
+
* //=> <li>Pear</li>
|
|
859
|
+
*
|
|
860
|
+
* $('.apple').attr('id', 'favorite');
|
|
861
|
+
* $('.apple').removeAttr('id class').prop('outerHTML');
|
|
862
|
+
* //=> <li>Apple</li>
|
|
863
|
+
* ```
|
|
864
|
+
*
|
|
865
|
+
* @param name - Name of the attribute.
|
|
866
|
+
* @returns The instance itself.
|
|
867
|
+
* @see {@link https://api.jquery.com/removeAttr/}
|
|
868
|
+
*/
|
|
869
|
+
export function removeAttr<T extends AnyNode>(
|
|
870
|
+
this: Cheerio<T>,
|
|
871
|
+
name: string,
|
|
872
|
+
): Cheerio<T> {
|
|
873
|
+
const attrNames = splitNames(name);
|
|
874
|
+
|
|
875
|
+
for (const attrName of attrNames) {
|
|
876
|
+
domEach(this, (elem) => {
|
|
877
|
+
if (isTag(elem)) removeAttribute(elem, attrName);
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
return this;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Check to see if _any_ of the matched elements have the given `className`.
|
|
886
|
+
*
|
|
887
|
+
* @category Attributes
|
|
888
|
+
* @example
|
|
889
|
+
*
|
|
890
|
+
* ```js
|
|
891
|
+
* $('.pear').hasClass('pear');
|
|
892
|
+
* //=> true
|
|
893
|
+
*
|
|
894
|
+
* $('apple').hasClass('fruit');
|
|
895
|
+
* //=> false
|
|
896
|
+
*
|
|
897
|
+
* $('li').hasClass('pear');
|
|
898
|
+
* //=> true
|
|
899
|
+
* ```
|
|
900
|
+
*
|
|
901
|
+
* @param className - Name of the class.
|
|
902
|
+
* @returns Indicates if an element has the given `className`.
|
|
903
|
+
* @see {@link https://api.jquery.com/hasClass/}
|
|
904
|
+
*/
|
|
905
|
+
export function hasClass<T extends AnyNode>(
|
|
906
|
+
this: Cheerio<T>,
|
|
907
|
+
className: string,
|
|
908
|
+
): boolean {
|
|
909
|
+
return this.toArray().some((elem) => {
|
|
910
|
+
const clazz = isTag(elem) && elem.attribs['class'];
|
|
911
|
+
let idx = -1;
|
|
912
|
+
|
|
913
|
+
if (clazz && className.length > 0) {
|
|
914
|
+
while ((idx = clazz.indexOf(className, idx + 1)) > -1) {
|
|
915
|
+
const end = idx + className.length;
|
|
916
|
+
|
|
917
|
+
if (
|
|
918
|
+
(idx === 0 || rspace.test(clazz[idx - 1])) &&
|
|
919
|
+
(end === clazz.length || rspace.test(clazz[end]))
|
|
920
|
+
) {
|
|
921
|
+
return true;
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
return false;
|
|
927
|
+
});
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Adds class(es) to all of the matched elements. Also accepts a `function`.
|
|
932
|
+
*
|
|
933
|
+
* @category Attributes
|
|
934
|
+
* @example
|
|
935
|
+
*
|
|
936
|
+
* ```js
|
|
937
|
+
* $('.pear').addClass('fruit').prop('outerHTML');
|
|
938
|
+
* //=> <li class="pear fruit">Pear</li>
|
|
939
|
+
*
|
|
940
|
+
* $('.apple').addClass('fruit red').prop('outerHTML');
|
|
941
|
+
* //=> <li class="apple fruit red">Apple</li>
|
|
942
|
+
* ```
|
|
943
|
+
*
|
|
944
|
+
* @param value - Name of new class.
|
|
945
|
+
* @returns The instance itself.
|
|
946
|
+
* @see {@link https://api.jquery.com/addClass/}
|
|
947
|
+
*/
|
|
948
|
+
export function addClass<T extends AnyNode, R extends ArrayLike<T>>(
|
|
949
|
+
this: R,
|
|
950
|
+
value?:
|
|
951
|
+
| string
|
|
952
|
+
| ((this: Element, i: number, className: string) => string | undefined),
|
|
953
|
+
): R {
|
|
954
|
+
// Support functions
|
|
955
|
+
if (typeof value === 'function') {
|
|
956
|
+
return domEach(this, (el, i) => {
|
|
957
|
+
if (isTag(el)) {
|
|
958
|
+
const className = el.attribs['class'] || '';
|
|
959
|
+
addClass.call([el], value.call(el, i, className));
|
|
960
|
+
}
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
// Return if no value or not a string or function
|
|
965
|
+
if (!value || typeof value !== 'string') return this;
|
|
966
|
+
|
|
967
|
+
const classNames = value.split(rspace);
|
|
968
|
+
const numElements = this.length;
|
|
969
|
+
|
|
970
|
+
for (let i = 0; i < numElements; i++) {
|
|
971
|
+
const el = this[i];
|
|
972
|
+
// If selected element isn't a tag, move on
|
|
973
|
+
if (!isTag(el)) continue;
|
|
974
|
+
|
|
975
|
+
// If we don't already have classes — always set xmlMode to false here, as it doesn't matter for classes
|
|
976
|
+
const className = getAttr(el, 'class', false);
|
|
977
|
+
|
|
978
|
+
if (className) {
|
|
979
|
+
let setClass = ` ${className} `;
|
|
980
|
+
|
|
981
|
+
// Check if class already exists
|
|
982
|
+
for (const cn of classNames) {
|
|
983
|
+
const appendClass = `${cn} `;
|
|
984
|
+
if (!setClass.includes(` ${appendClass}`)) setClass += appendClass;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
setAttr(el, 'class', setClass.trim());
|
|
988
|
+
} else {
|
|
989
|
+
setAttr(el, 'class', classNames.join(' ').trim());
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
return this;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Removes one or more space-separated classes from the selected elements. If no
|
|
998
|
+
* `className` is defined, all classes will be removed. Also accepts a
|
|
999
|
+
* `function`.
|
|
1000
|
+
*
|
|
1001
|
+
* @category Attributes
|
|
1002
|
+
* @example
|
|
1003
|
+
*
|
|
1004
|
+
* ```js
|
|
1005
|
+
* $('.pear').removeClass('pear').prop('outerHTML');
|
|
1006
|
+
* //=> <li class="">Pear</li>
|
|
1007
|
+
*
|
|
1008
|
+
* $('.apple').addClass('red').removeClass().prop('outerHTML');
|
|
1009
|
+
* //=> <li class="">Apple</li>
|
|
1010
|
+
* ```
|
|
1011
|
+
*
|
|
1012
|
+
* @param name - Name of the class. If not specified, removes all elements.
|
|
1013
|
+
* @returns The instance itself.
|
|
1014
|
+
* @see {@link https://api.jquery.com/removeClass/}
|
|
1015
|
+
*/
|
|
1016
|
+
export function removeClass<T extends AnyNode, R extends ArrayLike<T>>(
|
|
1017
|
+
this: R,
|
|
1018
|
+
name?:
|
|
1019
|
+
| string
|
|
1020
|
+
| ((this: Element, i: number, className: string) => string | undefined),
|
|
1021
|
+
): R {
|
|
1022
|
+
// Handle if value is a function
|
|
1023
|
+
if (typeof name === 'function') {
|
|
1024
|
+
return domEach(this, (el, i) => {
|
|
1025
|
+
if (isTag(el)) {
|
|
1026
|
+
removeClass.call([el], name.call(el, i, el.attribs['class'] || ''));
|
|
1027
|
+
}
|
|
1028
|
+
});
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
const classes = splitNames(name);
|
|
1032
|
+
const numClasses = classes.length;
|
|
1033
|
+
const removeAll = arguments.length === 0;
|
|
1034
|
+
|
|
1035
|
+
return domEach(this, (el) => {
|
|
1036
|
+
if (!isTag(el)) return;
|
|
1037
|
+
|
|
1038
|
+
if (removeAll) {
|
|
1039
|
+
// Short circuit the remove all case as this is the nice one
|
|
1040
|
+
el.attribs['class'] = '';
|
|
1041
|
+
} else {
|
|
1042
|
+
const elClasses = splitNames(el.attribs['class']);
|
|
1043
|
+
let changed = false;
|
|
1044
|
+
|
|
1045
|
+
for (let j = 0; j < numClasses; j++) {
|
|
1046
|
+
const index = elClasses.indexOf(classes[j]);
|
|
1047
|
+
|
|
1048
|
+
if (index !== -1) {
|
|
1049
|
+
elClasses.splice(index, 1);
|
|
1050
|
+
changed = true;
|
|
1051
|
+
|
|
1052
|
+
/*
|
|
1053
|
+
* We have to do another pass to ensure that there are not duplicate
|
|
1054
|
+
* classes listed
|
|
1055
|
+
*/
|
|
1056
|
+
j--;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
if (changed) {
|
|
1060
|
+
el.attribs['class'] = elClasses.join(' ');
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Add or remove class(es) from the matched elements, depending on either the
|
|
1068
|
+
* class's presence or the value of the switch argument. Also accepts a
|
|
1069
|
+
* `function`.
|
|
1070
|
+
*
|
|
1071
|
+
* @category Attributes
|
|
1072
|
+
* @example
|
|
1073
|
+
*
|
|
1074
|
+
* ```js
|
|
1075
|
+
* $('.apple.green').toggleClass('fruit green red').prop('outerHTML');
|
|
1076
|
+
* //=> <li class="apple fruit red">Apple</li>
|
|
1077
|
+
*
|
|
1078
|
+
* $('.apple.green').toggleClass('fruit green red', true).prop('outerHTML');
|
|
1079
|
+
* //=> <li class="apple green fruit red">Apple</li>
|
|
1080
|
+
* ```
|
|
1081
|
+
*
|
|
1082
|
+
* @param value - Name of the class. Can also be a function.
|
|
1083
|
+
* @param stateVal - If specified the state of the class.
|
|
1084
|
+
* @returns The instance itself.
|
|
1085
|
+
* @see {@link https://api.jquery.com/toggleClass/}
|
|
1086
|
+
*/
|
|
1087
|
+
export function toggleClass<T extends AnyNode, R extends ArrayLike<T>>(
|
|
1088
|
+
this: R,
|
|
1089
|
+
value?:
|
|
1090
|
+
| string
|
|
1091
|
+
| ((
|
|
1092
|
+
this: Element,
|
|
1093
|
+
i: number,
|
|
1094
|
+
className: string,
|
|
1095
|
+
stateVal?: boolean,
|
|
1096
|
+
) => string),
|
|
1097
|
+
stateVal?: boolean,
|
|
1098
|
+
): R {
|
|
1099
|
+
// Support functions
|
|
1100
|
+
if (typeof value === 'function') {
|
|
1101
|
+
return domEach(this, (el, i) => {
|
|
1102
|
+
if (isTag(el)) {
|
|
1103
|
+
toggleClass.call(
|
|
1104
|
+
[el],
|
|
1105
|
+
value.call(el, i, el.attribs['class'] || '', stateVal),
|
|
1106
|
+
stateVal,
|
|
1107
|
+
);
|
|
1108
|
+
}
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
// Return if no value or not a string or function
|
|
1113
|
+
if (!value || typeof value !== 'string') return this;
|
|
1114
|
+
|
|
1115
|
+
const classNames = value.split(rspace);
|
|
1116
|
+
const numClasses = classNames.length;
|
|
1117
|
+
const state = typeof stateVal === 'boolean' ? (stateVal ? 1 : -1) : 0;
|
|
1118
|
+
const numElements = this.length;
|
|
1119
|
+
|
|
1120
|
+
for (let i = 0; i < numElements; i++) {
|
|
1121
|
+
const el = this[i];
|
|
1122
|
+
// If selected element isn't a tag, move on
|
|
1123
|
+
if (!isTag(el)) continue;
|
|
1124
|
+
|
|
1125
|
+
const elementClasses = splitNames(el.attribs['class']);
|
|
1126
|
+
|
|
1127
|
+
// Check if class already exists
|
|
1128
|
+
for (let j = 0; j < numClasses; j++) {
|
|
1129
|
+
// Check if the class name is currently defined
|
|
1130
|
+
const index = elementClasses.indexOf(classNames[j]);
|
|
1131
|
+
|
|
1132
|
+
// Add if stateValue === true or we are toggling and there is no value
|
|
1133
|
+
if (state >= 0 && index === -1) {
|
|
1134
|
+
elementClasses.push(classNames[j]);
|
|
1135
|
+
} else if (state <= 0 && index !== -1) {
|
|
1136
|
+
// Otherwise remove but only if the item exists
|
|
1137
|
+
elementClasses.splice(index, 1);
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
el.attribs['class'] = elementClasses.join(' ');
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
return this;
|
|
1145
|
+
}
|