@testmuai/playwright-bindings 0.1.42 → 0.1.43-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers/assertion.d.ts +1 -0
- package/dist/helpers/assertion.d.ts.map +1 -1
- package/dist/helpers/assertion.js +2 -1
- package/dist/helpers/assertion.js.map +1 -1
- package/dist/helpers/assertionV3.d.ts +3 -0
- package/dist/helpers/assertionV3.d.ts.map +1 -1
- package/dist/helpers/assertionV3.js +16 -0
- package/dist/helpers/assertionV3.js.map +1 -1
- package/dist/helpers/evaluation/evaluate.d.ts +2 -0
- package/dist/helpers/evaluation/evaluate.d.ts.map +1 -1
- package/dist/helpers/evaluation/evaluate.js +189 -3
- package/dist/helpers/evaluation/evaluate.js.map +1 -1
- package/dist/helpers/executeApi.d.ts +2 -1
- package/dist/helpers/executeApi.d.ts.map +1 -1
- package/dist/helpers/executeApi.js +35 -0
- package/dist/helpers/executeApi.js.map +1 -1
- package/dist/helpers/schemaAssertion.d.ts +12 -0
- package/dist/helpers/schemaAssertion.d.ts.map +1 -0
- package/dist/helpers/schemaAssertion.js +117 -0
- package/dist/helpers/schemaAssertion.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- 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/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/json-p3/LICENCE +21 -0
- package/node_modules/json-p3/README.md +78 -0
- package/node_modules/json-p3/dist/json-p3.browser.js +5235 -0
- package/node_modules/json-p3/dist/json-p3.browser.min.js +2 -0
- package/node_modules/json-p3/dist/json-p3.browser.min.js.map +1 -0
- package/node_modules/json-p3/dist/json-p3.cjs.js +5266 -0
- package/node_modules/json-p3/dist/json-p3.esm.js +5235 -0
- package/node_modules/json-p3/dist/json-p3.iife.min.js +2 -0
- package/node_modules/json-p3/dist/json-p3.iife.min.js.map +1 -0
- package/node_modules/json-p3/dist/path/segments.d.ts +39 -0
- package/node_modules/json-p3/package.json +71 -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/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/package.json +8 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
class e extends Error{constructor(e,n){super(e),this.message=e,this.token=n,Object.setPrototypeOf(this,new.target.prototype),this.name="JSONPathError",this.message=t(e,n)}}function t(e,t){return t.input.length<=9?`${e} ('${t.input}':${t.index})`:t.index>t.input.length-5?`${e} ('${t.input.slice(t.input.length-9)}':${t.index})`:t.index-4<0?`${e} ('${t.input.slice(0,9)}':${t.index})`:`${e} ('${t.input.slice(t.index-4,t.index+5)}':${t.index})`}class n extends e{constructor(e,n){super(e,n),this.message=e,this.token=n,Object.setPrototypeOf(this,new.target.prototype),this.name="JSONPathLexerError",this.message=t(e,n)}}class r extends e{constructor(e,n){super(e,n),this.message=e,this.token=n,Object.setPrototypeOf(this,new.target.prototype),this.name="JSONPathTypeError",this.message=t(e,n)}}class s extends e{constructor(e,n){super(e,n),this.message=e,this.token=n,Object.setPrototypeOf(this,new.target.prototype),this.name="JSONPathIndexError",this.message=t(e,n)}}class i extends e{constructor(e,n){super(e,n),this.message=e,this.token=n,Object.setPrototypeOf(this,new.target.prototype),this.name="UndefinedFilterFunctionError",this.message=t(e,n)}}class o extends e{constructor(e,n){super(e,n),this.message=e,this.token=n,Object.setPrototypeOf(this,new.target.prototype),this.name="JSONPathSyntaxError",this.message=t(e,n)}}class a extends e{constructor(e,n){super(e,n),this.message=e,this.token=n,Object.setPrototypeOf(this,new.target.prototype),this.name="JSONPathRecursionLimitError",this.message=t(e,n)}}class c extends Error{constructor(e){super(e),this.message=e,Object.setPrototypeOf(this,new.target.prototype),this.name="IRegexpError"}}function u(e){return Array.isArray(e)}function h(e){const t=typeof e;return null!==e&&"object"===t||"function"===t}function l(e){return"string"==typeof e}function p(e){return"number"==typeof e}function f(e,t){if(e===t)return!0;if(Array.isArray(e)){if(Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!f(e[n],t[n]))return!1;return!0}return!1}if(h(e)&&h(t)){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const r of n)if(!f(e[r],t[r]))return!1;return!0}return!1}let d=function(e){return e.ValueType="ValueType",e.LogicalType="LogicalType",e.NodesType="NodesType",e}({});class g extends Error{constructor(e){super(e),this.message=e,Object.setPrototypeOf(this,new.target.prototype),this.name="JSONPointerError"}}class m extends g{constructor(e){super(e),this.message=e,Object.setPrototypeOf(this,new.target.prototype),this.name="JSONPointerResolutionError"}}class v extends m{constructor(e){super(e),this.message=e,Object.setPrototypeOf(this,new.target.prototype),this.name="JSONPointerIndexError"}}class w extends m{constructor(e){super(e),this.message=e,Object.setPrototypeOf(this,new.target.prototype),this.name="JSONPointerKeyError"}}class x extends g{constructor(e){super(e),this.message=e,Object.setPrototypeOf(this,new.target.prototype),this.name="JSONPointerSyntaxError"}}class y extends m{constructor(e){super(e),this.message=e,Object.setPrototypeOf(this,new.target.prototype),this.name="JSONPointerTypeError"}}const k=Symbol.for("jsonpointer.undefined");class E{#e;constructor(e){this.tokens=this.parse(e),this.#e=E.encode(this.tokens)}static encode(e){return e.length?"/"+e.map(e=>e.replaceAll("~","~0").replaceAll("/","~1")).join("/"):""}resolve(e,t=k){try{return this.tokens.reduce(this.getItem.bind(this),e)}catch(e){if(e instanceof m&&t!==k)return t;throw e}}resolveWithParent(e){if(!this.tokens.length)return[k,this.resolve(e)];const t=this.tokens.slice(0,this.tokens.length-1).reduce(this.getItem.bind(this),e);try{return[t,this.getItem(t,this.tokens[this.tokens.length-1],this.tokens.length-1)]}catch(e){if(e instanceof v||e instanceof w)return[t,k];throw e}}toString(){return this.#e}isRelativeTo(e){return e.tokens.length<this.tokens.length&&this.tokens.slice(0,e.tokens.length).every((t,n)=>t===e.tokens[n])}parse(e){if(e.length&&!e.startsWith("/"))throw new x(`"${e}" pointers must start with a slash or be the empty string`);return e.split("/").map(e=>e.replaceAll("~1","/").replaceAll("~0","~")).slice(1)}getItem(e,t,n){if(u(e)){if("length"!==t&&Object.hasOwn(e,t))return e[Number(t)];if(t.startsWith("#")){const r=t.slice(1);if(S.test(r)&&Object.hasOwn(e,r))return Number(r);throw new v(`index out of range '${E.encode(this.tokens.slice(0,n+1))}'`)}throw new v(`index out of range '${E.encode(this.tokens.slice(0,n+1))}'`)}if(h(e)){if(Object.hasOwn(e,t))return e[t];if(t.startsWith("#")&&Object.hasOwn(e,t.slice(1)))return t.slice(1);throw new w(`no such property '${E.encode(this.tokens.slice(0,n+1))}'`)}throw new y(`found primitive value, expected an object '${E.encode(this.tokens.slice(0,n+1))}'`)}_join(e){if(!l(e))throw new y("join() requires string arguments, found "+typeof e);if(e.startsWith("/"))return new E(e);const t=this.tokens.concat(e.split("/").map(e=>e.replaceAll("~1","/").replaceAll("~0","~")));return new E(E.encode(t))}join(...e){if(!e.length)return this;let t=this;for(const n of e)t=t._join(n);return t}exists(e){try{this.resolve(e)}catch(e){if(e instanceof m)return!1;throw e}return!0}parent(){return this.tokens.length?new E(E.encode(this.tokens.slice(0,this.tokens.length-1))):this}to(e){return(l(e)?new N(e):e).to(this)}}const O=/(?<ORIGIN>\d+)(?<INDEX_G>(?<SIGN>[+-])(?<INDEX>\d))?(?<POINTER>.*)/s,S=/(0|[1-9]\d*)/;class N{constructor(e){[this.origin,this.index,this.pointer]=this.parse(e)}toString(){const e=this.index>0?"+":"",t=0===this.index?"":`${e}${this.index}`;return`${this.origin}${t}${this.pointer}`}to(e){const t=l(e)?new E(e):e;if(this.origin>t.tokens.length)throw new v(`origin (${this.origin}) exceeds root (${t.tokens.length})`);const n=this.origin<1?t.tokens.slice():t.tokens.slice(0,-this.origin);if(this.index&&n.length&&this.isIntLike(n.at(-1))){const e=Number(n.at(-1))+this.index;if(e<0)throw new v(`index offset out of range (${e})`);n[n.length-1]=String(e)}return this.pointer instanceof E?n.push(...this.pointer.tokens):n[n.length-1]=`#${n[n.length-1]}`,new E(E.encode(n))}parse(e){const t=O.exec(e);if(!t||!t.groups)throw new x("failed to parse relative pointer");const n=this.parseInt(t.groups.ORIGIN);let r=0;if(t.groups.INDEX_G){if(r=this.parseInt(t.groups.INDEX),0===r)throw new x("index offset can't be zero");"-"===t.groups.SIGN&&(r=-r)}return"#"===t.groups.POINTER?[n,r,"#"]:[n,r,new E(t.groups.POINTER)]}parseInt(e){if(e.startsWith("0")&&e.length>1)throw new x("unexpected leading zero");if(S.test(e))return Number(e);throw new x(`expected an integer, found '${e}'`)}isIntLike(e){return!(void 0!==e&&!p(e))||S.test(e)}}function R(e,t,n=k){return new E(e).resolve(t,n)}var T=Object.freeze({__proto__:null,JSONPointer:E,JSONPointerError:g,JSONPointerIndexError:v,JSONPointerKeyError:w,JSONPointerResolutionError:m,JSONPointerSyntaxError:x,JSONPointerTypeError:y,RelativeJSONPointer:N,UNDEFINED:k,resolve:R});const b=/^[\p{ID_Start}_]\p{ID_Continue}*$/u;function $(e){return e.includes("'")&&!e.includes('"')?JSON.stringify(e):_(e)}function _(e){return`'${JSON.stringify(e).slice(1,-1).replaceAll('\\"','"').replaceAll("'","\\'")}'`}function I(e){return b.test(e)?e:null}const P=Symbol.for("jsonpath.nothing");function A(e,t){return h(e)&&Object.hasOwn(e,t)}const L="",C={form:"pretty"};class K{constructor(e,t,n){this.value=e,this.location=t,this.root=n}get path(){return this.getPath({form:"canonical"})}getPath(e){const t={...C,...e};return"$"+this.location.map(e=>l(e)?this.decodeNameLocation(e,t):`[${e}]`).join("")}toPointer(){return this.location.length?new E(E.encode(this.location.map(String))):new E("")}decodeNameLocation(e,t){const n="canonical"===t.form,r=n?_:$,s=e.startsWith(L);s&&(e=e.slice(1));const i=I(e);return s?n||null==i?`[~${r(e)}]`:`.~${i}`:n||null==i?`[${r(e)}]`:`.${i}`}}class F{constructor(e){this.nodes=e}[Symbol.iterator](){return this.nodes[Symbol.iterator]()}empty(){return 0===this.nodes.length}values(){return this.nodes.map(e=>e.value)}valuesOrSingular(){return 1===this.nodes.length?this.nodes[0].value:this.nodes.map(e=>e.value)}locations(){return this.nodes.map(e=>e.location)}paths(e){return this.nodes.map(t=>t.getPath(e))}pointers(){return this.nodes.map(e=>e.toPointer())}get length(){return this.nodes.length}}class z{constructor(e){this.token=e}}class M extends z{}class j extends M{evaluate(){return null}toString(){return"null"}}class U extends M{constructor(e,t){super(e),this.token=e,this.value=t}evaluate(){return this.value}toString(){return String(this.value)}}class D extends M{constructor(e,t){super(e),this.token=e,this.value=t}evaluate(){return this.value}toString(){return _(this.value)}}class G extends M{constructor(e,t){super(e),this.token=e,this.value=t}evaluate(){return this.value}toString(){return String(this.value)}}class Q extends z{constructor(e,t,n){super(e),this.token=e,this.operator=t,this.right=n}evaluate(e){if("!"===this.operator){const t=this.right.evaluate(e);return t instanceof F?0===t.nodes.length:!X(t)}throw new r(`unknown operator '${this.operator}'`,this.token)}toString(e){return`${this.operator}${this.right.toString(e)}`}}class J extends z{constructor(e,t,n,r){super(e),this.token=e,this.left=t,this.operator=n,this.right=r,this.logical="&&"===n||"||"===n}evaluate(e){let t=this.left.evaluate(e);!this.logical&&t instanceof F&&1===t.nodes.length&&(t=t.nodes[0].value);let n=this.right.evaluate(e);return!this.logical&&n instanceof F&&1===n.nodes.length&&(n=n.nodes[0].value),"&&"===this.operator?X(t)&&X(n):"||"===this.operator?X(t)||X(n):Z(t,this.operator,n)}toString(e){return this.logical?`(${this.left.toString(e)} ${this.operator} ${this.right.toString(e)})`:`${this.left.toString(e)} ${this.operator} ${this.right.toString(e)}`}}class V extends z{constructor(e,t){super(e),this.token=e,this.expression=t}evaluate(e){const t=this.expression.evaluate(e);return t instanceof F?t.nodes.length>0:X(t)}toString(e){return function t(n,r){if(n instanceof J){let s,i,o,a;if("&&"===n.operator)s=5,i="&&",o=t(n.left,s),a=t(n.right,s);else{if("||"!==n.operator)return n.toString(e);s=4,i="||",o=t(n.left,s),a=t(n.right,s)}const c=`${o} ${i} ${a}`;return s<r?`(${c})`:c}if(n instanceof Q){const e=`!${t(n.right,7)}`;return r>7?`(${e})`:e}return n.toString(e)}(this.expression,0)}}class B extends z{constructor(e,t){super(e),this.token=e,this.path=t}}class W extends B{evaluate(e){return e.lazy?new F(Array.from(this.path.lazyQuery(e.currentValue))):this.path.query(e.currentValue)}toString(e){return`@${this.path.toString(e).slice(1)}`}}class Y extends B{evaluate(e){return e.lazy?new F(Array.from(this.path.lazyQuery(e.rootValue))):this.path.query(e.rootValue)}toString(e){return this.path.toString(e)}}class q extends z{constructor(e,t,n){super(e),this.token=e,this.name=t,this.args=n}evaluate(e){const t=e.environment.functionRegister.get(this.name);if(!t)throw new i(`filter function '${this.name}' is undefined`,this.token);const n=this.args.map(t=>t.evaluate(e)).map((e,n)=>t.argTypes[n]!==d.NodesType&&e instanceof F?this.unpack_node_list(e):e);return t.call(...n)}toString(e){return`${this.name}(${this.args.map(t=>t.toString(e)).join(", ")})`}unpack_node_list(e){switch(e.length){case 0:return P;case 1:return e.nodes[0].value;default:return e}}}function X(e){return!(e instanceof F&&e.empty())&&!("boolean"==typeof e&&!1===e)}function Z(e,t,n){switch(t){case"==":return H(e,n);case"!=":return!H(e,n);case"<":return ee(e,n);case">":return ee(n,e);case">=":return ee(n,e)||H(e,n);case"<=":return ee(e,n)||H(e,n);default:return!1}}function H(e,t){if(t instanceof F&&([e,t]=[t,e]),e instanceof F){if(t instanceof F){if(e.empty()&&t.empty())return!0;if(1===e.nodes.length&&1===t.nodes.length)return f(e.nodes[0].value,t.nodes[0].value)}return e.empty()?t===P:1===e.nodes.length&&f(e.nodes[0].value,t)}return e===P&&t===P||f(e,t)}function ee(e,t){return!!(l(e)&&l(t)||p(e)&&p(t))&&e<t}var te=Object.freeze({__proto__:null,BooleanLiteral:U,FilterExpression:z,FilterExpressionLiteral:M,FilterQuery:B,FunctionExtension:q,InfixExpression:J,LogicalExpression:V,NullLiteral:j,NumberLiteral:G,PrefixExpression:Q,RelativeQuery:W,RootQuery:Y,StringLiteral:D,compare:Z});class ne{argTypes=[d.NodesType];returnType=d.ValueType;call(e){return e.length}}class re{argTypes=[d.ValueType];returnType=d.ValueType;call(e){return u(e)||l(e)?e.length:h(e)?Object.keys(e).length:P}}class se extends Map{constructor(e=128,t){void 0!==t?super(t):super(),this.maxSize=e}get(e){const t=super.get(e);return this.has(e)&&(this.delete(e),this.set(e,t)),t}set(e,t){if(this.has(e))this.delete(e);else if(this.size>=this.maxSize){const e=this.first();void 0!==e&&this.delete(e)}return super.set(e,t)}first(){return this.keys().next().value}}function ie(e){let t=!1,n=!1;const r=[];for(const s of e)if(t)r.push(s),t=!1;else switch(s){case".":n?r.push(s):r.push("(?:(?![\r\n])\\P{Cs}|\\p{Cs}\\p{Cs})");break;case"\\":t=!0,r.push(s);break;case"[":n=!0,r.push(s);break;case"]":n=!1,r.push(s);break;default:r.push(s)}return r.join("")}function oe(e){const t=[],n=e.startsWith("^"),r=e.endsWith("$");return n||r||t.push("^(?:"),t.push(ie(e)),n||r||t.push(")$"),t.join("")}function ae(e,t,n,r){var s=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(s,ae.prototype),s.expected=t,s.found=n,s.location=r,s.name="SyntaxError",s}function ce(e,t,n){return n=n||" ",e.length>t?e:(t-=e.length,e+(n+=n.repeat(t)).slice(0,t))}!function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(ae,Error),ae.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){r=e[n].text.split(/\r\n|\n|\r/g);break}var s=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(s):s,o=this.location.source+":"+i.line+":"+i.column;if(r){var a=this.location.end,c=ce("",i.line.toString().length," "),u=r[s.line-1],h=(s.line===a.line?a.column:u.length+1)-s.column||1;t+="\n --\x3e "+o+"\n"+c+" |\n"+i.line+" | "+u+"\n"+c+" | "+ce("",s.column-1," ")+ce("",h,"^")}else t+="\n at "+o}return t},ae.buildMessage=function(e,t){var n={literal:function(e){return'"'+s(e.text)+'"'},class:function(e){var t=e.parts.map(function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)});return"["+(e.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function s(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function o(e){return n[e.type](e)}return"Expected "+function(e){var t,n,r=e.map(o);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+function(e){return e?'"'+s(e)+'"':"end of input"}(t)+" found."};const ue={StartRules:["start"],SyntaxError:ae,parse:function(e,t){var n,r,s,i,o={},a=(t=void 0!==t?t:{}).grammarSource,c={start:Pe},u=Pe,h="|",l="{",p=",",f="}",d="(",g=")",m=".",v="\\",w="[",x="^",y="-",k="]",E="\\p{",O="\\P{",S="L",N="M",R="N",T="P",b="Z",$="S",_="C",I=/^[*-+?]/,P=/^[0-9]/,A=/^[(-+\--.?[-\^nrt{-}]/,L=/^[l-mot-u]/,C=/^[cen]/,K=/^[dlo]/,F=/^[c-fios]/,z=/^[lps]/,M=/^[ckmo]/,j=/^[cfn-o]/,U=Te("|",!1),D=be([["*","+"],"?"],!1,!1),G=Te("{",!1),Q=be([["0","9"]],!1,!1),J=Te(",",!1),V=Te("}",!1),B=Te("(",!1),W=Te(")",!1),Y={type:"any"},q=Te(".",!1),X=Te("\\",!1),Z=be([["(","+"],["-","."],"?",["[","^"],"n","r","t",["{","}"]],!1,!1),H=Te("[",!1),ee=Te("^",!1),te=Te("-",!1),ne=Te("]",!1),re=Te("\\p{",!1),se=Te("\\P{",!1),ie=Te("L",!1),oe=be([["l","m"],"o",["t","u"]],!1,!1),ce=Te("M",!1),ue=be(["c","e","n"],!1,!1),he=Te("N",!1),le=be(["d","l","o"],!1,!1),pe=Te("P",!1),fe=be([["c","f"],"i","o","s"],!1,!1),de=Te("Z",!1),ge=be(["l","p","s"],!1,!1),me=Te("S",!1),ve=be(["c","k","m","o"],!1,!1),we=Te("C",!1),xe=be(["c","f",["n","o"]],!1,!1),ye=function(e){return function(e){return e<"'"||","===e||"-"===e||e>="/"&&e<=">"||e>="@"&&e<="Z"||e>="^"&&e<="z"||e>="~"&&e<=""||e>=""}(e)},ke=function(e){return function(e){return e<","||e>="."&&e<="Z"||e>="^"&&e<=""||e>=""}(e)},Ee=0|t.peg$currPos,Oe=[{line:1,column:1}],Se=Ee,Ne=t.peg$maxFailExpected||[],Re=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in c))throw new Error("Can't start parsing from rule \""+t.startRule+'".');u=c[t.startRule]}function Te(e,t){return{type:"literal",text:e,ignoreCase:t}}function be(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function $e(t){var n,r=Oe[t];if(r)return r;if(t>=Oe.length)n=Oe.length-1;else for(n=t;!Oe[--n];);for(r={line:(r=Oe[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return Oe[t]=r,r}function _e(e,t,n){var r=$e(e),s=$e(t);return{source:a,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:s.line,column:s.column}}}function Ie(e){Ee<Se||(Ee>Se&&(Se=Ee,Ne=[]),Ne.push(e))}function Pe(){return Ae()}function Ae(){var t,n,r,s;for(t=Le(),n=[],r=Ee,124===e.charCodeAt(Ee)?(s=h,Ee++):(s=o,0===Re&&Ie(U)),s!==o?r=s=[s,Le()]:(Ee=r,r=o);r!==o;)n.push(r),r=Ee,124===e.charCodeAt(Ee)?(s=h,Ee++):(s=o,0===Re&&Ie(U)),s!==o?r=s=[s,Le()]:(Ee=r,r=o);return t=[t,n]}function Le(){var e,t;for(e=[],t=Ce();t!==o;)e.push(t),t=Ce();return e}function Ce(){var t,n,r;return t=Ee,n=function(){var t,n,r,s;t=function(){var t,n;t=Ee,e.length>Ee?(n=e.charAt(Ee),Ee++):(n=o,0===Re&&Ie(Y));n!==o&&(ye(n)?void 0:o)!==o?t=n:(Ee=t,t=o);return t}(),t===o&&(t=function(){var t;46===e.charCodeAt(Ee)?(t=m,Ee++):(t=o,0===Re&&Ie(q));t===o&&(t=Ke())===o&&(t=Fe())===o&&(t=function(){var t,n,r,s,i,a,c;t=Ee,91===e.charCodeAt(Ee)?(n=w,Ee++):(n=o,0===Re&&Ie(H));if(n!==o)if(94===e.charCodeAt(Ee)?(r=x,Ee++):(r=o,0===Re&&Ie(ee)),r===o&&(r=null),45===e.charCodeAt(Ee)?(s=y,Ee++):(s=o,0===Re&&Ie(te)),s===o&&(s=ze()),s!==o){for(i=[],a=ze();a!==o;)i.push(a),a=ze();45===e.charCodeAt(Ee)?(a=y,Ee++):(a=o,0===Re&&Ie(te)),a===o&&(a=null),93===e.charCodeAt(Ee)?(c=k,Ee++):(c=o,0===Re&&Ie(ne)),c!==o?t=n=[n,r,s,i,a,c]:(Ee=t,t=o)}else Ee=t,t=o;else Ee=t,t=o;return t}());return t}(),t===o&&(t=Ee,40===e.charCodeAt(Ee)?(n=d,Ee++):(n=o,0===Re&&Ie(B)),n!==o&&(r=Ae())!==o?(41===e.charCodeAt(Ee)?(s=g,Ee++):(s=o,0===Re&&Ie(W)),s!==o?t=n=[n,r,s]:(Ee=t,t=o)):(Ee=t,t=o)));return t}(),n!==o?(r=function(){var t;t=e.charAt(Ee),I.test(t)?Ee++:(t=o,0===Re&&Ie(D));t===o&&(t=function(){var t,n,r,s,i,a,c;t=Ee,123===e.charCodeAt(Ee)?(n=l,Ee++):(n=o,0===Re&&Ie(G));if(n!==o){if(r=[],s=e.charAt(Ee),P.test(s)?Ee++:(s=o,0===Re&&Ie(Q)),s!==o)for(;s!==o;)r.push(s),s=e.charAt(Ee),P.test(s)?Ee++:(s=o,0===Re&&Ie(Q));else r=o;if(r!==o){if(s=Ee,44===e.charCodeAt(Ee)?(i=p,Ee++):(i=o,0===Re&&Ie(J)),i!==o){for(a=[],c=e.charAt(Ee),P.test(c)?Ee++:(c=o,0===Re&&Ie(Q));c!==o;)a.push(c),c=e.charAt(Ee),P.test(c)?Ee++:(c=o,0===Re&&Ie(Q));s=i=[i,a]}else Ee=s,s=o;s===o&&(s=null),125===e.charCodeAt(Ee)?(i=f,Ee++):(i=o,0===Re&&Ie(V)),i!==o?t=n=[n,r,s,i]:(Ee=t,t=o)}else Ee=t,t=o}else Ee=t,t=o;return t}());return t}(),r===o&&(r=null),t=n=[n,r]):(Ee=t,t=o),t}function Ke(){var t,n,r;return t=Ee,92===e.charCodeAt(Ee)?(n=v,Ee++):(n=o,0===Re&&Ie(X)),n!==o?(r=e.charAt(Ee),A.test(r)?Ee++:(r=o,0===Re&&Ie(Z)),r!==o?t=n=[n,r]:(Ee=t,t=o)):(Ee=t,t=o),t}function Fe(){var t;return(t=function(){var t,n,r,s;t=Ee,e.substr(Ee,3)===E?(n=E,Ee+=3):(n=o,0===Re&&Ie(re));n!==o&&(r=je())!==o?(125===e.charCodeAt(Ee)?(s=f,Ee++):(s=o,0===Re&&Ie(V)),s!==o?t=n=[n,r,s]:(Ee=t,t=o)):(Ee=t,t=o);return t}())===o&&(t=function(){var t,n,r,s;t=Ee,e.substr(Ee,3)===O?(n=O,Ee+=3):(n=o,0===Re&&Ie(se));n!==o&&(r=je())!==o?(125===e.charCodeAt(Ee)?(s=f,Ee++):(s=o,0===Re&&Ie(V)),s!==o?t=n=[n,r,s]:(Ee=t,t=o)):(Ee=t,t=o);return t}()),t}function ze(){var t,n,r,s,i;return t=Ee,(n=Me())!==o?(r=Ee,45===e.charCodeAt(Ee)?(s=y,Ee++):(s=o,0===Re&&Ie(te)),s!==o&&(i=Me())!==o?r=s=[s,i]:(Ee=r,r=o),r===o&&(r=null),t=n=[n,r]):(Ee=t,t=o),t===o&&(t=Fe()),t}function Me(){var t,n;return t=Ee,e.length>Ee?(n=e.charAt(Ee),Ee++):(n=o,0===Re&&Ie(Y)),n!==o&&(ke(n)?void 0:o)!==o?t=n:(Ee=t,t=o),t===o&&(t=Ke()),t}function je(){var t;return(t=function(){var t,n,r;t=Ee,76===e.charCodeAt(Ee)?(n=S,Ee++):(n=o,0===Re&&Ie(ie));n!==o?(r=e.charAt(Ee),L.test(r)?Ee++:(r=o,0===Re&&Ie(oe)),r===o&&(r=null),t=n=[n,r]):(Ee=t,t=o);return t}())===o&&(t=function(){var t,n,r;t=Ee,77===e.charCodeAt(Ee)?(n=N,Ee++):(n=o,0===Re&&Ie(ce));n!==o?(r=e.charAt(Ee),C.test(r)?Ee++:(r=o,0===Re&&Ie(ue)),r===o&&(r=null),t=n=[n,r]):(Ee=t,t=o);return t}())===o&&(t=function(){var t,n,r;t=Ee,78===e.charCodeAt(Ee)?(n=R,Ee++):(n=o,0===Re&&Ie(he));n!==o?(r=e.charAt(Ee),K.test(r)?Ee++:(r=o,0===Re&&Ie(le)),r===o&&(r=null),t=n=[n,r]):(Ee=t,t=o);return t}())===o&&(t=function(){var t,n,r;t=Ee,80===e.charCodeAt(Ee)?(n=T,Ee++):(n=o,0===Re&&Ie(pe));n!==o?(r=e.charAt(Ee),F.test(r)?Ee++:(r=o,0===Re&&Ie(fe)),r===o&&(r=null),t=n=[n,r]):(Ee=t,t=o);return t}())===o&&(t=function(){var t,n,r;t=Ee,90===e.charCodeAt(Ee)?(n=b,Ee++):(n=o,0===Re&&Ie(de));n!==o?(r=e.charAt(Ee),z.test(r)?Ee++:(r=o,0===Re&&Ie(ge)),r===o&&(r=null),t=n=[n,r]):(Ee=t,t=o);return t}())===o&&(t=function(){var t,n,r;t=Ee,83===e.charCodeAt(Ee)?(n=$,Ee++):(n=o,0===Re&&Ie(me));n!==o?(r=e.charAt(Ee),M.test(r)?Ee++:(r=o,0===Re&&Ie(ve)),r===o&&(r=null),t=n=[n,r]):(Ee=t,t=o);return t}())===o&&(t=function(){var t,n,r;t=Ee,67===e.charCodeAt(Ee)?(n=_,Ee++):(n=o,0===Re&&Ie(we));n!==o?(r=e.charAt(Ee),j.test(r)?Ee++:(r=o,0===Re&&Ie(xe)),r===o&&(r=null),t=n=[n,r]):(Ee=t,t=o);return t}()),t}if(n=u(),t.peg$library)return{peg$result:n,peg$currPos:Ee,peg$FAILED:o,peg$maxFailExpected:Ne,peg$maxFailPos:Se};if(n!==o&&Ee===e.length)return n;throw n!==o&&Ee<e.length&&Ie({type:"end"}),r=Ne,s=Se<e.length?e.charAt(Se):null,i=Se<e.length?_e(Se,Se+1):_e(Se,Se),new ae(ae.buildMessage(r,s),r,s,i)}};var he=function(e){try{ue.parse(e,{})}catch(e){if(e instanceof ue.SyntaxError)return!1;throw e}return!0};class le{argTypes=[d.ValueType,d.ValueType];returnType=d.LogicalType;#t;constructor(e={}){this.options=e,this.cacheSize=e.cacheSize??10,this.throwErrors=e.throwErrors??!1,this.iRegexpCheck=e.iRegexpCheck??!0,this.#t=new se(this.cacheSize)}call(e,t){if(this.cacheSize>0){const n=this.#t.get(t);if(n)try{return n.test(e)}catch(e){if(this.throwErrors)throw e;return!1}}if(!l(t)){if(this.throwErrors)throw new c(`match() expected a string pattern, found ${t}`);return!1}if(this.iRegexpCheck&&!he(t)){if(this.throwErrors)throw new c(`pattern ${t} is not a valid I-Regexp pattern`);return!1}try{const n=new RegExp(oe(t),"u");return this.cacheSize>0&&this.#t.set(t,n),n.test(e)}catch(e){if(this.throwErrors)throw e;return!1}}}class pe{argTypes=[d.ValueType,d.ValueType];returnType=d.LogicalType;#t;constructor(e={}){this.options=e,this.cacheSize=e.cacheSize??10,this.throwErrors=e.throwErrors??!1,this.iRegexpCheck=e.iRegexpCheck??!0,this.#t=new se(this.cacheSize)}call(e,t){if(this.cacheSize>0){const n=this.#t.get(t);if(n)try{return!!e.match(n)}catch(e){if(this.throwErrors)throw e;return!1}}if(!l(t)){if(this.throwErrors)throw new c(`match() expected a string pattern, found ${t}`);return!1}if(this.iRegexpCheck&&!he(t)){if(this.throwErrors)throw new c(`pattern ${t} is not a valid I-Regexp pattern`);return!1}try{const n=new RegExp(ie(t),"u");return this.cacheSize>0&&this.#t.set(t,n),!!e.match(n)}catch(e){if(this.throwErrors)throw e;return!1}}}class fe{argTypes=[d.NodesType];returnType=d.ValueType;call(e){return 1===e.length?e.nodes[0].value:P}}let de=function(e){return e.AND="TOKEN_AND",e.COLON="TOKEN_COLON",e.COMMA="TOKEN_COMMA",e.CURRENT="TOKEN_CURRENT_VALUE",e.CURRENT_KEY="TOKEN_CURRENT_KEY",e.DDOT="TOKEN_DDOT",e.DOT="TOKEN_DOT",e.DOUBLE_QUOTE_STRING="TOKEN_DOUBLE_QUOTE_STRING",e.EOF="TOKEN_EOF",e.EQ="TOKEN_EQ",e.ERROR="TOKEN_ERROR",e.FALSE="TOKEN_FALSE",e.FILTER="TOKEN_FILTER_START",e.FUNCTION="TOKEN_FUNCTION",e.GE="TOKEN_GE",e.GT="TOKEN_GT",e.INDEX="TOKEN_INDEX",e.KEY="TOKEN_KEY",e.KEY_DOUBLE_QUOTE_STRING="TOKEN_KEY_DOUBLE_QUOTE_STRING",e.KEY_SINGLE_QUOTE_STRING="TOKEN_KEY_SINGLE_QUOTE_STRING",e.KEYS="TOKEN_KEYS",e.KEYS_FILTER="TOKEN_KEYS_FILTER",e.LBRACKET="TOKEN_LBRACKET",e.LE="TOKEN_LE",e.LG="TOKEN_LG",e.LPAREN="TOKEN_LPAREN",e.LT="TOKEN_LT",e.NAME="TOKEN_NAME",e.NE="TOKEN_NE",e.NOT="TOKEN_NOT",e.NULL="TOKEN_NULL",e.NUMBER="NUMBER",e.OR="TOKEN_OR",e.RBRACKET="TOKEN_RBRACKET",e.ROOT="TOKEN_ROOT",e.RPAREN="TOKEN_RPAREN",e.SINGLE_QUOTE_STRING="TOKEN_SINGLE_QUOTE_STRING",e.TRUE="TOKEN_TRUE",e.WILD="TOKEN_WILD",e}({});class ge{constructor(e,t,n,r){this.kind=e,this.value=t,this.index=n,this.input=r}}new ge(de.EOF,"",-1,"");class me{#n=0;constructor(e){this.tokens=e}get current(){return this.tokens[this.#n]}get peek(){return this.#n>=this.tokens.length-1?this.tokens[this.tokens.length-1]:this.tokens[this.#n+1]}next(){const e=this.current;return this.#n+=1,e}backup(){this.#n>0&&(this.#n-=1)}expect(e){if(this.current.kind!==e)throw new o(`expected token '${e}', found '${this.current.kind}'`,this.current)}expectPeek(e){const t=this.peek;if(t.kind!==e)throw new o(`expected token '${e}', found '${t.kind}'`,t)}expectPeekNot(e,t){const n=this.peek;if(n.kind===e)throw new o(t,n)}}const ve=/[eE][+-]?\d+/y,we=/[a-z][a-z_0-9]*/y,xe=/-?\d+/y,ye=/-?\d+/y,ke=/[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*/y,Ee=new Set([" ","\n","\t","\r"]),Oe=/[\u0080-\uFFFFa-zA-Z_]/;class Se{filterLevel=0;funcCallStack=[];bracketStack=[];tokens=[];#r=0;#n=0;constructor(e,t){this.environment=e,this.path=t}get pos(){return this.#n}get start(){return this.#r}run(){let e=Re;for(;e;)e=e(this)}emit(e){this.tokens.push(new ge(e,this.path.slice(this.#r,this.#n),this.#r,this.path)),this.#r=this.#n}next(){if(this.#n>=this.path.length)return"";const e=this.path[this.#n];return this.#n+=1,e}ignore(){this.#r=this.#n}backup(){if(this.#n<=this.#r){const e="can't backup beyond start";throw new n(e,new ge(de.ERROR,e,this.#n,this.path))}this.#n-=1}peek(){const e=this.next();return e&&this.backup(),e}peekMatch(e){const t=this.next();return t&&this.backup(),e.test(t)}accept(e){const t=this.next();return!!e.has(t)||(t&&this.backup(),!1)}acceptMatch(e){const t=this.next();return!!e.test(t)||(t&&this.backup(),!1)}acceptRun(e){let t=!1,n=this.next();for(;e.has(n);)n=this.next(),t=!0;return n&&this.backup(),t}acceptMatchRun(e){e.lastIndex=this.#n;const t=e.exec(this.path);return e.lastIndex=0,!!t&&(this.#n+=t[0].length,!0)}ignoreWhitespace(){if(this.#n!==this.#r){const e=`must emit or ignore before consuming whitespace ('${this.path.slice(this.#r,this.#n)}':${this.pos})`;throw new n(e,new ge(de.ERROR,e,this.pos,this.path))}return!!this.acceptRun(Ee)&&(this.ignore(),!0)}error(e){this.tokens.push(new ge(de.ERROR,e,this.#n,this.path))}}function Ne(e,t){const[n,r]=function(e,t){const n=new Se(e,t);return[n,n.tokens]}(e,t);if(n.run(),r.length&&r[r.length-1].kind===de.ERROR)throw new o(r[r.length-1].value,r[r.length-1]);if(0!==n.bracketStack.length){const[e,r]=n.bracketStack[n.bracketStack.length-1];throw new o("unbalanced brackets",new ge(de.ERROR,e,r,t))}return r}function Re(e){const t=e.next();return"$"!==t?(e.backup(),e.error(`expected '$', found '${t}'`),null):(e.emit(de.ROOT),Te)}function Te(e){e.ignoreWhitespace()&&!e.peek()&&e.error("trailing whitespace");const t=e.next();switch(t){case"":return e.emit(de.EOF),null;case".":return"."===e.peek()?(e.next(),e.emit(de.DDOT),be):$e;case"[":return e.bracketStack.push(["[",e.start]),e.emit(de.LBRACKET),_e;default:return e.backup(),e.filterLevel?Ie:(e.error(`expected '.', '..' or a bracketed selection, found '${t}'`),null)}}function be(e){if(e.acceptMatchRun(ke))return e.emit(de.NAME),Te;if(!e.environment.strict){if("~"===e.environment.keysPattern.source&&"~"===e.peek())return e.next(),e.peekMatch(Oe)?(e.ignore(),e.acceptMatchRun(ke),e.emit(de.KEY),Te):(e.emit(de.KEYS),Te);if(e.acceptMatchRun(e.environment.keysPattern))return e.emit(de.KEYS),Te}const t=e.next();switch(t){case"":return e.error("bald descendant segment"),null;case"*":return e.emit(de.WILD),Te;case"[":return e.bracketStack.push(["[",e.start]),e.emit(de.LBRACKET),_e;default:return e.backup(),e.error(`unexpected descendent selection token '${t}'`),null}}function $e(e){if(e.ignore(),e.ignoreWhitespace())return e.error("unexpected whitespace after dot"),null;if(!e.environment.strict){if("~"===e.environment.keysPattern.source&&"~"===e.peek())return e.next(),e.peekMatch(Oe)?(e.ignore(),e.acceptMatchRun(ke),e.emit(de.KEY),Te):(e.emit(de.KEYS),Te);if(e.acceptMatchRun(e.environment.keysPattern))return e.emit(de.KEYS),Te}if(e.acceptMatchRun(ke))return e.emit(de.NAME),Te;const t=e.next();return"*"===t?(e.emit(de.WILD),Te):(e.backup(),e.error(`unexpected shorthand selector '${t}'`),null)}function _e(e){for(;;){if(e.ignoreWhitespace(),e.acceptMatchRun(xe)){e.emit(de.INDEX);continue}if(!e.environment.strict&&e.acceptMatchRun(e.environment.keysPattern))switch(e.peek()){case"'":return e.ignore(),e.next(),Fe(e);case'"':return e.ignore(),e.next(),ze(e);case"?":return e.next(),e.emit(de.KEYS_FILTER),e.filterLevel+=1,Ie;default:e.emit(de.KEYS);continue}const t=e.next();switch(t){case"]":return 0===e.bracketStack.length||"["!==e.bracketStack[e.bracketStack.length-1][0]?(e.backup(),e.error("unbalanced brackets"),null):(e.bracketStack.pop(),e.emit(de.RBRACKET),Te);case"":return e.error("unclosed bracketed selection"),null;case"*":e.emit(de.WILD);continue;case"?":return e.emit(de.FILTER),e.filterLevel+=1,Ie;case",":e.emit(de.COMMA);continue;case":":e.emit(de.COLON);continue;case"'":return Ae;case'"':return Le;default:return e.backup(),e.error(`unexpected token '${t}' in bracketed selection`),null}}}function Ie(e){for(;;){e.ignoreWhitespace();const t=e.next();switch(t){case"":return e.error("unclosed bracketed selection"),null;case"]":return e.filterLevel-=1,e.backup(),_e;case",":if(e.emit(de.COMMA),e.funcCallStack.length)continue;return e.filterLevel-=1,_e;case"'":return Ce;case'"':return Ke;case"(":e.bracketStack.push(["(",e.start]),e.emit(de.LPAREN),e.funcCallStack.length&&(e.funcCallStack[e.funcCallStack.length-1]+=1);continue;case")":if(0===e.bracketStack.length||"("!==e.bracketStack[e.bracketStack.length-1][0])return e.backup(),e.error("unbalanced brackets"),null;e.bracketStack.pop(),e.emit(de.RPAREN),e.funcCallStack.length&&(1===e.funcCallStack[e.funcCallStack.length-1]?e.funcCallStack.pop():e.funcCallStack[e.funcCallStack.length-1]-=1);continue;case"$":return e.emit(de.ROOT),Te;case"@":return e.emit(de.CURRENT),Te;case"#":return e.environment.strict?(e.backup(),e.error(`unexpected filter selector token '${t}'`),null):(e.emit(de.CURRENT_KEY),Te);case".":return e.backup(),Te;case"!":"="===e.peek()?(e.next(),e.emit(de.NE)):e.emit(de.NOT);continue;case"=":if("="===e.peek()){e.next(),e.emit(de.EQ);continue}return e.backup(),e.error(`unexpected filter selector token '${t}'`),null;case"<":"="===e.peek()?(e.next(),e.emit(de.LE)):e.emit(de.LT);continue;case">":"="===e.peek()?(e.next(),e.emit(de.GE)):e.emit(de.GT);continue;default:if(e.backup(),e.acceptMatchRun(ye)){if("."===e.peek()&&(e.next(),!e.acceptMatchRun(ye)))return e.error("a fractional digit is required after a decimal point"),null;e.acceptMatchRun(ve),e.emit(de.NUMBER);continue}if(e.acceptMatchRun(/&&/y)){e.emit(de.AND);continue}if(e.acceptMatchRun(/\|\|/y)){e.emit(de.OR);continue}if(e.acceptMatchRun(/true/y)){e.emit(de.TRUE);continue}if(e.acceptMatchRun(/false/y)){e.emit(de.FALSE);continue}if(e.acceptMatchRun(/null/y)){e.emit(de.NULL);continue}if(e.acceptMatchRun(we)&&"("===e.peek()){e.funcCallStack.push(1),e.emit(de.FUNCTION),e.bracketStack.push(["(",e.start]),e.next(),e.ignore();continue}}return e.error(`unexpected filter selector token '${t}'`),null}}function Pe(e,t,n){return function(r){if(r.ignore(),r.peek()===e)return r.emit("'"===e?de.SINGLE_QUOTE_STRING:de.DOUBLE_QUOTE_STRING),r.next(),r.ignore(),t;for(;;){const s=r.path.slice(r.pos,r.pos+2),i=r.next();if("\\\\"!==s&&s!==`\\${e}`){if("\\"===i&&!s.match(/\\[bfnrtu/]/))return r.error("invalid escape"),null;if(!i)return r.error(`unclosed string starting at index ${r.start}`),null;if(i===e)return r.backup(),r.emit(n),r.next(),r.ignore(),t}else r.next()}}}const Ae=Pe("'",_e,de.SINGLE_QUOTE_STRING),Le=Pe('"',_e,de.DOUBLE_QUOTE_STRING),Ce=Pe("'",Ie,de.SINGLE_QUOTE_STRING),Ke=Pe('"',Ie,de.DOUBLE_QUOTE_STRING),Fe=Pe("'",_e,de.KEY_SINGLE_QUOTE_STRING),ze=Pe('"',_e,de.KEY_DOUBLE_QUOTE_STRING);class Me{constructor(e,t){this.environment=e,this.token=t}}class je extends Me{constructor(e,t,n){super(e,t),this.environment=e,this.token=t,this.name=n}resolve(e){const t=[];return!u(e.value)&&A(e.value,this.name)&&t.push(new K(e.value[this.name],e.location.concat(this.name),e.root)),t}*lazyResolve(e){!u(e.value)&&A(e.value,this.name)&&(yield new K(e.value[this.name],e.location.concat(this.name),e.root))}toString(e){const{form:t}={...C,...e};return"canonical"===t?_(this.name):$(this.name)}shorthand(){return I(this.name)}}class Ue extends Me{constructor(e,t,n){if(super(e,t),this.environment=e,this.token=t,this.index=n,n<this.environment.minIntIndex||n>this.environment.maxIntIndex)throw new s("index out of range",this.token)}resolve(e){const t=[];if(u(e.value)){const n=this.normalizedIndex(e.value.length);n in e.value&&t.push(new K(e.value[n],e.location.concat(n),e.root))}return t}*lazyResolve(e){if(u(e.value)){const t=this.normalizedIndex(e.value.length);t in e.value&&(yield new K(e.value[t],e.location.concat(t),e.root))}}toString(){return String(this.index)}normalizedIndex(e){return this.index<0&&e>=Math.abs(this.index)?e+this.index:this.index}}class De extends Me{constructor(e,t,n,r,s){super(e,t),this.environment=e,this.token=t,this.start=n,this.stop=r,this.step=s,this.checkRange(n,r,s)}resolve(e){const t=[];if(!u(e.value))return t;for(const[n,r]of this.slice(e.value,this.start,this.stop,this.step))t.push(new K(r,e.location.concat(n),e.root));return t}*lazyResolve(e){if(u(e.value))for(const[t,n]of this.lazySlice(e.value,this.start,this.stop,this.step))yield new K(n,e.location.concat(t),e.root)}toString(){return`${this.start?this.start:""}:${this.stop?this.stop:""}:${this.step?this.step:"1"}`}checkRange(...e){for(const t of e)if(void 0!==t&&(t<this.environment.minIntIndex||t>this.environment.maxIntIndex))throw new s("index out of range",this.token)}slice(e,t,n,r){const s=e.length;if(0===(r=r??1)||!s)return[];const i=[];let o;if(r>0){o=this.normalizeIndex(t,0,s,r);const a=this.normalizeIndex(n,s,s,r);for(;o<a;o+=r)i.push([o,e[o]])}else{o=this.normalizeIndex(t,s-1,s,r);const a=this.normalizeIndex(n,-1,s,r);for(;o>a;o+=r)i.push([o,e[o]])}return i}*lazySlice(e,t,n,r){const s=e.length;if(0===(r=r??1)||!s)return[];let i;if(r>0){i=this.normalizeIndex(t,0,s,r);const o=this.normalizeIndex(n,s,s,r);for(;i<o;i+=r)yield[i,e[i]]}else{i=this.normalizeIndex(t,s-1,s,r);const o=this.normalizeIndex(n,-1,s,r);for(;i>o;i+=r)yield[i,e[i]]}}normalizeIndex(e,t,n,r){return void 0===e?t:e<0?r<0?Math.max(e+n,-1):Math.max(e+n,0):r<0?Math.min(e,n-1):Math.min(e,n)}}class Ge extends Me{constructor(e,t){super(e,t),this.environment=e,this.token=t}resolve(e){const t=[];if(e.value instanceof String)return t;if(u(e.value))for(let n=0;n<e.value.length;n++)t.push(new K(e.value[n],e.location.concat(n),e.root));else if(h(e.value))for(const[n,r]of this.environment.entries(e.value))t.push(new K(r,e.location.concat(n),e.root));return t}*lazyResolve(e){if(u(e.value))for(let t=0;t<e.value.length;t++)yield new K(e.value[t],e.location.concat(t),e.root);else if(h(e.value)&&!l(e.value))for(const[t,n]of this.environment.entries(e.value))yield new K(n,e.location.concat(t),e.root)}toString(){return"*"}}class Qe extends Me{constructor(e,t,n){super(e,t),this.environment=e,this.token=t,this.expression=n}resolve(e){const t=[];if(e.value instanceof String)return t;if(u(e.value))for(let n=0;n<e.value.length;n++){const r=e.value[n],s={environment:this.environment,currentValue:r,rootValue:e.root,currentKey:n};this.expression.evaluate(s)&&t.push(new K(r,e.location.concat(n),e.root))}else if(h(e.value))for(const[n,r]of this.environment.entries(e.value)){const s={environment:this.environment,currentValue:r,rootValue:e.root,currentKey:n};this.expression.evaluate(s)&&t.push(new K(r,e.location.concat(n),e.root))}return t}*lazyResolve(e){if(u(e.value))for(let t=0;t<e.value.length;t++){const n=e.value[t],r={environment:this.environment,currentValue:n,rootValue:e.root,lazy:!0,currentKey:t};this.expression.evaluate(r)&&(yield new K(n,e.location.concat(t),e.root))}else if(h(e.value)&&!l(e.value))for(const[t,n]of this.environment.entries(e.value)){const r={environment:this.environment,currentValue:n,rootValue:e.root,lazy:!0,currentKey:t};this.expression.evaluate(r)&&(yield new K(n,e.location.concat(t),e.root))}}toString(e){return`?${this.expression.toString(e)}`}}var Je=Object.freeze({__proto__:null,FilterSelector:Qe,IndexSelector:Ue,JSONPathSelector:Me,NameSelector:je,SliceSelector:De,WildcardSelector:Ge});class Ve{constructor(e,t,n){this.environment=e,this.token=t,this.selectors=n}}class Be extends Ve{resolve(e){const t=[];for(const n of e)for(const e of this.selectors)for(const r of e.resolve(n))t.push(r);return t}*lazyResolve(e){for(const t of e)for(const e of this.selectors)yield*e.resolve(t)}toString(e){const{form:t}={...C,...e};if("pretty"===t&&1===this.selectors.length&&this.selectors[0]instanceof je){const e=this.selectors[0].shorthand();if(null!=e)return`.${e}`}return`[${this.selectors.map(t=>t.toString(e)).join(", ")}]`}}class We extends Ve{resolve(e){const t=[],n=(this.environment.nondeterministic?this.nondeterministicVisit:this.visit).bind(this);for(const r of e)for(const e of n(r))for(const n of this.selectors)for(const r of n.resolve(e))t.push(r);return t}*lazyResolve(e){for(const t of e)for(const e of this.visit(t))for(const t of this.selectors)yield*t.resolve(e)}toString(e){return`..[${this.selectors.map(t=>t.toString(e)).join(", ")}]`}*visit(e,t=1){if(t>=this.environment.maxRecursionDepth)throw new a("recursion limit reached",this.token);if(yield e,u(e.value))for(let n=0;n<e.value.length;n++){const r=new K(e.value[n],e.location.concat(n),e.root);yield*this.visit(r,t+1)}else if(h(e.value))for(const[n,r]of this.environment.entries(e.value)){const s=new K(r,e.location.concat(n),e.root);yield*this.visit(s,t+1)}}*nondeterministicVisit(e,t=1){let n=Array.from(this.nondeterministicChildren(e)).map(e=>[e,t]);for(yield e;n.length;){const[e,t]=n.shift();if(yield e,t>=this.environment.maxRecursionDepth)throw new a("recursion limit reached",this.token);const r=Math.random()<.5;for(const s of this.nondeterministicChildren(e))if(r){yield s;n=Ye(n,Array.from(this.nondeterministicChildren(s)).map(e=>[e,t+2]))}else n.push([s,t+1])}}*nondeterministicChildren(e){if(!l(e.value))if(u(e.value))for(let t=0;t<e.value.length;t++)yield new K(e.value[t],e.location.concat(t),e.root);else if(h(e.value))for(const[t,n]of this.environment.entries(e.value))yield new K(n,e.location.concat(t),e.root)}}function Ye(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=[],r=e[Symbol.iterator](),s=t[Symbol.iterator]();for(let t=0;t<e.length;t++)n.push(r);for(let e=0;e<t.length;e++)n.push(s);return function(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}}(n),n.map(e=>e.next().value)}class qe{constructor(e,t){this.environment=e,this.segments=t}query(e){let t=[new K(e,[],e)];for(const e of this.segments)t=e.resolve(t);return new F(t)}lazyQuery(e){let t=[new K(e,[],e)][Symbol.iterator]();for(const e of this.segments)t=e.lazyResolve(t);return t}match(e){const t=this.lazyQuery(e).next();if(!t.done)return t.value}toString(e){return`$${this.segments.map(t=>t.toString(e)).join("")}`}singularQuery(){for(const e of this.segments){if(e instanceof We)return!1;if(1!==e.selectors.length||!(e.selectors[0]instanceof je||e.selectors[0]instanceof Ue))return!1}return!0}}class Xe extends z{evaluate(e){return e.currentKey??P}toString(){return"#"}}class Ze extends Me{constructor(e,t,n){super(e,t),this.environment=e,this.token=t,this.key=n}resolve(e){const t=[];return e.value instanceof String||u(e.value)||h(e.value)&&A(e.value,this.key)&&t.push(new K(this.key,e.location.concat(`${L}${this.key}`),e.root)),t}*lazyResolve(e){!l(e.value)&&h(e.value)&&A(e.value,this.key)&&(yield new K(this.key,e.location.concat(`${L}${this.key}`),e.root))}toString(e){const{form:t}={...C,...e};return`~${("canonical"===t?_:$)(this.key)}`}}class He extends Me{constructor(e,t){super(e,t),this.environment=e,this.token=t}resolve(e){const t=[];if(e.value instanceof String||u(e.value))return t;if(h(e.value))for(const[n,r]of this.environment.entries(e.value))t.push(new K(n,e.location.concat(`${L}${n}`),e.root));return t}*lazyResolve(e){if(h(e.value)&&!l(e.value)&&!u(e.value))for(const[t,n]of this.environment.entries(e.value))yield new K(t,e.location.concat(`${L}${t}`),e.root)}toString(){return"~"}}class et extends Me{constructor(e,t,n){super(e,t),this.environment=e,this.token=t,this.expression=n}resolve(e){const t=[];if(e.value instanceof String||u(e.value))return t;if(h(e.value))for(const[n,r]of this.environment.entries(e.value)){const s={environment:this.environment,currentValue:r,rootValue:e.root,currentKey:n};this.expression.evaluate(s)&&t.push(new K(n,e.location.concat(`${L}${n}`),e.root))}return t}*lazyResolve(e){if(!(e.value instanceof String||u(e.value))&&h(e.value))for(const[t,n]of this.environment.entries(e.value)){const r={environment:this.environment,currentValue:n,rootValue:e.root,lazy:!0,currentKey:t};this.expression.evaluate(r)&&(yield new K(t,e.location.concat(`${L}${t}`),e.root))}}toString(e){return`~?${this.expression.toString(e)}`}}const tt=new Map([[de.AND,5],[de.EQ,6],[de.GE,6],[de.GT,6],[de.LE,6],[de.LT,6],[de.NE,6],[de.NOT,7],[de.OR,4],[de.RPAREN,1]]),nt=new Map([[de.AND,"&&"],[de.EQ,"=="],[de.GE,">="],[de.GT,">"],[de.LE,"<="],[de.LT,"<"],[de.NE,"!="],[de.OR,"||"]]),rt=new Set(["==",">=",">","<=","<","!="]);class st{constructor(e){this.environment=e,this.tokenMap=new Map([[de.FALSE,this.parseBoolean],[de.NUMBER,this.parseNumber],[de.LPAREN,this.parseGroupedExpression],[de.NOT,this.parsePrefixExpression],[de.NULL,this.parseNull],[de.ROOT,this.parseRootQuery],[de.CURRENT,this.parseRelativeQuery],[de.SINGLE_QUOTE_STRING,this.parseString],[de.DOUBLE_QUOTE_STRING,this.parseString],[de.TRUE,this.parseBoolean],[de.FUNCTION,this.parseFunction],[de.CURRENT_KEY,this.parseCurrentKey]])}parse(e){e.current.kind===de.ROOT&&e.next();const t=this.parseQuery(e);if(e.current.kind!==de.EOF)throw new o(`unexpected token '${e.current.kind}'`,e.current);return t}parseQuery(e,t=!1){const n=[];e:for(;;){switch(e.current.kind){case de.DDOT:{const t=e.next(),r=this.parseSelectors(e);n.push(new We(this.environment,t,r));break}case de.LBRACKET:case de.KEY:case de.KEYS:case de.NAME:case de.WILD:{const t=e.current,r=this.parseSelectors(e);n.push(new Be(this.environment,t,r));break}default:t&&e.backup();break e}e.next()}return n}parseSelectors(e){switch(e.current.kind){case de.NAME:return[new je(this.environment,e.current,e.current.value)];case de.WILD:return[new Ge(this.environment,e.current)];case de.KEY:return[new Ze(this.environment,e.current,e.current.value)];case de.KEYS:return[new He(this.environment,e.current)];case de.LBRACKET:return this.parseBracketedSelection(e);default:return[]}}parseIndex(e){if(e.current.value.length>1&&e.current.value.startsWith("0")||e.current.value.startsWith("-0"))throw new o("leading zero in index selector",e.current);return new Ue(this.environment,e.current,Number(e.current.value))}parseSlice(e){const t=e.current,n=[];function r(e){if(e.kind===de.INDEX){if(e.value.length>1&&e.value.startsWith("0")||e.value.startsWith("-0"))throw new o("leading zero in index selector",e);return!0}return!1}return r(e.current)?(n.push(Number(e.current.value)),e.next(),e.expect(de.COLON),e.next()):(n.push(void 0),e.expect(de.COLON),e.next()),r(e.current)?(n.push(Number(e.current.value)),e.next(),e.current.kind===de.COLON&&e.next()):e.current.kind===de.COLON&&(n.push(void 0),e.expect(de.COLON),e.next()),r(e.current)&&(n.push(Number(e.current.value)),e.next()),e.backup(),new De(this.environment,t,...n)}parseBracketedSelection(e){const t=e.next(),n=[];for(;e.current.kind!==de.RBRACKET;){switch(e.current.kind){case de.SINGLE_QUOTE_STRING:case de.DOUBLE_QUOTE_STRING:n.push(new je(this.environment,e.current,this.decodeString(e.current)));break;case de.FILTER:n.push(this.parseFilter(e));break;case de.INDEX:e.peek.kind===de.COLON?n.push(this.parseSlice(e)):n.push(this.parseIndex(e));break;case de.COLON:n.push(this.parseSlice(e));break;case de.WILD:n.push(new Ge(this.environment,e.current));break;case de.KEY_SINGLE_QUOTE_STRING:case de.KEY_DOUBLE_QUOTE_STRING:n.push(new Ze(this.environment,e.current,this.decodeString(e.current)));break;case de.KEYS_FILTER:n.push(this.parseFilter(e,!0));break;case de.KEYS:n.push(new He(this.environment,e.current));break;case de.EOF:throw new o("unexpected end of query",e.current);default:throw new o(`unexpected token in bracketed selection '${e.current.kind}'`,e.current)}e.peek.kind!==de.RBRACKET&&(e.expectPeek(de.COMMA),e.next(),e.expectPeekNot(de.RBRACKET,"unexpected trailing comma")),e.next()}if(!n.length)throw new o("empty bracketed segment",t);return n}parseFilter(e,t=!1){const n=e.next(),s=this.parseFilterExpression(e);if(s instanceof q){const e=this.environment.functionRegister.get(s.name);if(e&&e.returnType===d.ValueType)throw new r(`result of ${s.name}() must be compared`,s.token)}return this.throwForLiteral(s),t?new et(this.environment,n,new V(n,s)):new Qe(this.environment,n,new V(n,s))}parseBoolean(e){return e.current.kind===de.FALSE?new U(e.current,!1):new U(e.current,!0)}parseNull(e){return new j(e.current)}parseString(e){return new D(e.current,this.decodeString(e.current))}parseNumber(e){const t=e.current.value;if(t.startsWith("0")&&t.length>1)throw new o(`invalid number literal '${t}'`,e.current);const n=Number(e.current.value);if(isNaN(n))throw new o(`invalid number literal '${t}'`,e.current);return new G(e.current,n)}parsePrefixExpression(e){return e.expect(de.NOT),e.next(),new Q(e.current,"!",this.parseFilterExpression(e,7))}parseInfixExpression(e,t){const n=e.next(),r=tt.get(n.kind)||1,s=this.parseFilterExpression(e,r),i=nt.get(n.kind);if(!i)throw new o(`unknown operator '${n.kind}'`,n);return rt.has(i)?(this.throwForNonComparable(t),this.throwForNonComparable(s)):(this.throwForLiteral(t),this.throwForLiteral(s)),new J(n,t,i,s)}parseGroupedExpression(e){if(e.peek.kind===de.RPAREN)throw new o("empty paren expression",e.current);e.next();let t=this.parseFilterExpression(e);for(e.next();e.current.kind!==de.RPAREN;){if(e.current.kind===de.EOF)throw new o("unbalanced parentheses",e.current);if(!nt.has(e.current.kind))throw new o(`expected an expression, found '${e.current.value}'`,e.current);t=this.parseInfixExpression(e,t)}return e.expect(de.RPAREN),t}parseRootQuery(e){const t=e.next();return new Y(t,new qe(this.environment,this.parseQuery(e,!0)))}parseRelativeQuery(e){const t=e.next();return new W(t,new qe(this.environment,this.parseQuery(e,!0)))}parseCurrentKey(e){return new Xe(e.current)}parseFunction(e){const t=[],n=e.next();for(;e.current.kind!==de.RPAREN;){const n=this.tokenMap.get(e.current.kind);if(!n)throw new o(`unexpected '${e.current.value}'`,e.current);let r=n.bind(this)(e),s=e.peek.kind;for(;nt.has(s);)e.next(),r=this.parseInfixExpression(e,r),s=e.peek.kind;if(t.push(r),e.peek.kind!==de.RPAREN){if(e.peek.kind===de.RBRACKET)break;e.expectPeek(de.COMMA),e.next()}e.next()}return e.expect(de.RPAREN),new q(n,n.value,this.environment.checkWellTypedness(n,t))}parseFilterExpression(e,t=1){const n=this.tokenMap.get(e.current.kind);if(!n){let t;switch(e.current.kind){case de.EOF:case de.RBRACKET:t="end of expression";break;default:t=`'${e.current.value}'`}throw new o(`unexpected ${t}`,e.current)}let r=n.bind(this)(e);for(;;){const n=e.peek.kind;if(n===de.EOF||n===de.RBRACKET||(tt.get(n)||1)<t)break;if(!nt.has(n))return r;e.next(),r=this.parseInfixExpression(e,r)}return r}decodeString(e){return this.unescapeString(e.kind===de.SINGLE_QUOTE_STRING?e.value.replaceAll('"','\\"').replaceAll("\\'","'"):e.value,e)}unescapeString(e,t){const n=[],r=e.length;let s,i=0;for(;i<r;){const r=e[i];if("\\"===r)switch(i+=1,e[i]){case'"':n.push('"');break;case"\\":n.push("\\");break;case"/":n.push("/");break;case"b":n.push("\b");break;case"f":n.push("\f");break;case"n":n.push("\n");break;case"r":n.push("\r");break;case"t":n.push("\t");break;case"u":[s,i]=this.decodeHexChar(e,i,t),n.push(this.stringFromCodePoint(s,t));break;default:throw new o("unknown escape sequence at index "+(t.index+i-1),t)}else this.stringFromCodePoint(r.codePointAt(0),t),n.push(r);i+=1}return n.join("")}decodeHexChar(e,t,n){const r=e.length;if(t+4>=r)throw new o("incomplete escape sequence at index "+(n.index+t-1),n);t+=1;let s=this.parseHexDigits(e.slice(t,t+4),n);if(it(s))throw new o("unexpected low surrogate codepoint at index "+(n.index+t-2),n);if(function(e){return e>=55296&&e<=56319}(s)){if(!(t+9<r&&"\\"===e[t+4]&&"u"===e[t+5]))throw new o("incomplete escape sequence at index "+(n.index+t-2),n);const i=this.parseHexDigits(e.slice(t+6,t+10),n);if(!it(i))throw new o(`unexpected codepoint at index ${n.index+t+4}`,n);return s=65536+((1023&s)<<10|1023&i),[s,t+9]}return[s,t+3]}parseHexDigits(e,t){const n=new TextEncoder;let r=0;for(const s of n.encode(e))switch(r<<=4,s){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:r|=s-48;break;case 97:case 98:case 99:case 100:case 101:case 102:r|=s-97+10;break;case 65:case 66:case 67:case 68:case 69:case 70:r|=s-65+10;break;default:throw new o("invalid \\uXXXX escape sequence",t)}return r}stringFromCodePoint(e,t){if(void 0===e||e<=31)throw new o("invalid character",t);try{return String.fromCodePoint(e)}catch{throw new o("invalid escape sequence",t)}}throwForNonComparable(e){if((e instanceof Y||e instanceof W)&&!e.path.singularQuery())throw new r("non-singular query is not comparable",e.token);if(e instanceof q){const t=this.environment.functionRegister.get(e.name);if(t&&t.returnType!==d.ValueType)throw new r(`result of ${e.name}() is not comparable`,e.token)}}throwForLiteral(e){if(e instanceof M)throw new o(`filter expression literals (${e.toString()}) must be compared`,e.token)}}function it(e){return e>=56320&&e<=57343}class ot{functionRegister=new Map;constructor(e={}){this.strict=e.strict??!0,this.maxIntIndex=e.maxIntIndex??Math.pow(2,53)-1,this.minIntIndex=e.maxIntIndex??1-Math.pow(2,53),this.maxRecursionDepth=e.maxRecursionDepth??50,this.nondeterministic=e.nondeterministic??!1,this.keysPattern=e.keysPattern??/~/y,this.parser=new st(this),this.setupFilterFunctions()}compile(e){return new qe(this,this.parser.parse(new me(Ne(this,e))))}query(e,t){return this.compile(e).query(t)}lazyQuery(e,t){return this.compile(e).lazyQuery(t)}match(e,t){return this.compile(e).match(t)}setupFilterFunctions(){this.functionRegister.set("count",new ne),this.functionRegister.set("length",new re),this.functionRegister.set("search",new pe),this.functionRegister.set("match",new le),this.functionRegister.set("value",new fe)}checkWellTypedness(e,t){const n=this.functionRegister.get(e.value);if(!n)throw new i(`no such function '${e.value}'`,e);if(t.length!==n.argTypes.length)throw new r(`${e.value}() takes ${n.argTypes.length} argument${1===n.argTypes.length?"":"s"}, ${t.length} given`,e);for(const[s,i,o]of n.argTypes.map((e,n)=>[e,t[n],n]))switch(s){case d.ValueType:if(!(i instanceof M||i instanceof Xe||i instanceof B&&i.path.singularQuery()||i instanceof q&&this.functionRegister.get(i.name)?.returnType===d.ValueType))throw new r(`${e.value}() argument ${o} must be of ValueType`,i.token);break;case d.LogicalType:if(!(i instanceof B||i instanceof J))throw new r(`${e.value}() argument ${o} must be of LogicalType`,i.token);break;case d.NodesType:if(!(i instanceof B||i instanceof q&&this.functionRegister.get(i.name)?.returnType===d.NodesType))throw new r(`${e.value}() argument ${o} must be of NodesType`,i.token)}return t}entries(e){return this.nondeterministic?function(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}(Object.entries(e)):Object.entries(e)}}var at=Object.freeze({__proto__:null,Count:ne,FunctionExpressionType:d,Has:class{argTypes=[d.ValueType,d.ValueType];returnType=d.LogicalType;#t;constructor(e={}){this.options=e,this.cacheSize=e.cacheSize??10,this.throwErrors=e.throwErrors??!1,this.iRegexpCheck=e.iRegexpCheck??!0,this.search=e.search??!0,this.#t=new se(this.cacheSize)}call(e,t){if(this.cacheSize>0){const n=this.#t.get(t);if(n)try{return!!h(e)&&Object.keys(e).some(e=>!!e.match(n))}catch(e){if(this.throwErrors)throw e;return!1}}if(!l(t)){if(this.throwErrors)throw new c(`match() expected a string pattern, found ${t}`);return!1}if(this.iRegexpCheck&&!he(t)){if(this.throwErrors)throw new c(`pattern ${t} is not a valid I-Regexp pattern`);return!1}try{const n=this.search?new RegExp(ie(t),"u"):new RegExp(ie(oe(t)),"u");return this.cacheSize>0&&this.#t.set(t,n),!!h(e)&&Object.keys(e).some(e=>!!e.match(n))}catch(e){if(this.throwErrors)throw e;return!1}}},Length:re,Match:le,Search:pe,Value:fe});const ct=new ot;function ut(e,t){return ct.query(e,t)}function ht(e,t){return ct.lazyQuery(e,t)}function lt(e){return ct.compile(e)}var pt=Object.freeze({__proto__:null,DEFAULT_ENVIRONMENT:ct,FunctionExpressionType:d,JSONPathEnvironment:ot,JSONPathError:e,JSONPathIndexError:s,JSONPathLexerError:n,JSONPathNode:K,JSONPathNodeList:F,JSONPathQuery:qe,JSONPathRecursionLimitError:a,JSONPathSegment:Ve,JSONPathSelector:Me,JSONPathSyntaxError:o,JSONPathTypeError:r,KEY_MARK:L,Nothing:P,Token:ge,TokenKind:de,compile:lt,expressions:te,functions:at,lazyQuery:ht,match:function(e,t){return ct.match(e,t)},query:ut,selectors:Je});class ft extends Error{constructor(e){super(e),this.message=e,Object.setPrototypeOf(this,new.target.prototype),this.name="JSONPatchError"}}class dt extends ft{constructor(e){super(e),this.message=e,Object.setPrototypeOf(this,new.target.prototype),this.name="JSONPatchTestFailure"}}class gt{name="add";constructor(e,t){this.path=e,this.value=t}apply(e,t){return kt(e,this.path,this.value,this.name,t)}toObject(){return{op:this.name,path:this.path.toString(),value:this.value}}}class mt{name="remove";constructor(e){this.path=e}apply(e,t){return Et(e,this.path,this.name,t),e}toObject(){return{op:this.name,path:this.path.toString()}}}class vt{name="replace";constructor(e,t){this.path=e,this.value=t}apply(e,t){const[n,r]=this.path.resolveWithParent(e);if(n===k)return this.value;const s=this.path.tokens.at(-1);if(void 0===s)throw new ft(`unexpected operation on 'undefined' (${this.name}:${t})`);if(u(n)){if(r===k)throw new ft(`can't replace nonexistent item (${this.name}:${t})`);return n.splice(Number(s),1,this.value),e}if(h(n)){if(r===k)throw new ft(`can't replace nonexistent property (${this.name}:${t})`);return n[s]=this.value,e}throw new ft(`unexpected operation on '${typeof n}' (${this.name}:${t})`)}toObject(){return{op:this.name,path:this.path.toString(),value:this.value}}}class wt{name="move";constructor(e,t){this.from=e,this.path=t}apply(e,t){if(this.path.isRelativeTo(this.from))throw new ft(`can't move object to one of its own children (${this.name}:${t})`);const n=Et(e,this.from,this.name,t);return kt(e,this.path,n,this.name,t)}toObject(){return{op:this.name,from:this.from.toString(),path:this.path.toString()}}}class xt{name="copy";constructor(e,t){this.from=e,this.path=t}apply(e,t){const[n,r]=this.from.resolveWithParent(e);if(r===k)throw new ft(`source object does not exist (${this.name}:${t})`);return kt(e,this.path,r,this.name,t)}toObject(){return{op:this.name,from:this.from.toString(),path:this.path.toString()}}deepCopy(e){return JSON.parse(JSON.stringify(e))}}class yt{name="test";constructor(e,t){this.path=e,this.value=t}apply(e,t){const[n,r]=this.path.resolveWithParent(e);if(!f(r,this.value))throw new dt(`test failed (${this.name}:${t})`);return e}toObject(){return{op:this.name,path:this.path.toString(),value:this.value}}}function kt(e,t,n,r,s){const[i,o]=t.resolveWithParent(e);if(i===k)return n;const a=t.tokens.at(-1);if(void 0===a)throw new ft(`unexpected operation on 'undefined' (${r}:${s})`);if(u(i)){if(o===k){if("-"!==a&&Number(a)!==i.length)throw new ft(`index out of range (${r}:${s})`);return i.push(n),e}return i.splice(Number(a),0,n),e}if(h(i))return i[a]=n,e;throw new ft(`unexpected operation on '${typeof i}' (${r}:${s})`)}function Et(e,t,n,r){const[s,i]=t.resolveWithParent(e);if(s===k)throw new ft(`can't remove root (${n}:${r})`);const o=t.tokens.at(-1);if(void 0===o)throw new ft(`unexpected operation on 'undefined' (${n}:${r})`);if(u(s)){if(i===k)throw new ft(`can't ${n} nonexistent item (${n}:${r})`);return s.splice(Number(o),1),i}if(h(s)){if(i===k)throw new ft(`can't ${n} nonexistent property (${n}:${r})`);return delete s[o],i}throw new ft(`unexpected operation on '${typeof s}' (${n}:${r})`)}class Ot{ops=[];constructor(e){e&&this.build(e)}*[Symbol.iterator](){for(const e of this.ops)yield e.toObject()}add(e,t){return this.ops.push(new gt(this.ensurePointer(e,"add",this.ops.length),t)),this}remove(e){return this.ops.push(new mt(this.ensurePointer(e,"remove",this.ops.length))),this}replace(e,t){return this.ops.push(new vt(this.ensurePointer(e,"replace",this.ops.length),t)),this}move(e,t){return this.ops.push(new wt(this.ensurePointer(e,"move",this.ops.length),this.ensurePointer(t,"move",this.ops.length))),this}copy(e,t){return this.ops.push(new xt(this.ensurePointer(e,"copy",this.ops.length),this.ensurePointer(t,"copy",this.ops.length))),this}test(e,t){return this.ops.push(new yt(this.ensurePointer(e,"test",this.ops.length),t)),this}apply(e){let t=e;for(let e=0;e<this.ops.length;e++){const n=this.ops[e];try{t=n.apply(t,e)}catch(t){if(t instanceof m)throw new ft(`${t.message} (${n.name}:${e})`);throw t}}return t}toArray(){return this.ops.map(e=>e.toObject())}build(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.op){case"add":this.add(this.opPointer(n,"path","add",t),this.opValue(n,"value","add",t));break;case"remove":this.remove(this.opPointer(n,"path","remove",t));break;case"replace":this.replace(this.opPointer(n,"path","replace",t),this.opValue(n,"value","replace",t));break;case"move":this.move(this.opPointer(n,"from","move",t),this.opPointer(n,"path","move",t));break;case"copy":this.copy(this.opPointer(n,"from","copy",t),this.opPointer(n,"path","copy",t));break;case"test":this.test(this.opPointer(n,"path","test",t),this.opValue(n,"value","test",t));break;default:throw new ft(`expected 'op' to be one of 'add', 'remove', 'replace', 'move', 'copy' or 'test' (${n.op}:${t})`)}}}opPointer(e,t,n,r){if(!Object.hasOwn(e,t))throw new ft(`missing property '${t}' (${n}:${r})`);const s=e[t];if(!l(s))throw new ft(`expected a JSON Pointer string for '${t}', found ${typeof s} (${n}:${r})`);try{return new E(s)}catch(e){if(e instanceof g)throw new ft(`${e.message} (${n}:${r})`);throw e}}opValue(e,t,n,r){if(!Object.hasOwn(e,t))throw new ft(`missing property '${t}' (${n}:${r})`);return e[t]}ensurePointer(e,t,n){if(e instanceof E)return e;if(!l(e))throw new ft(`expected a JSON Pointer string, found ${typeof e} (${t}:${n})`);try{return new E(e)}catch(e){if(e instanceof g)throw new ft(`${e.message} (${t}:${n})`);throw e}}}function St(e,t){return new Ot(e).apply(t)}var Nt=Object.freeze({__proto__:null,JSONPatch:Ot,JSONPatchError:ft,JSONPatchTestFailure:dt,apply:St});const Rt="2.3.2";export{ct as DEFAULT_ENVIRONMENT,d as FunctionExpressionType,Ot as JSONPatch,ft as JSONPatchError,dt as JSONPatchTestFailure,ot as JSONPathEnvironment,e as JSONPathError,s as JSONPathIndexError,n as JSONPathLexerError,K as JSONPathNode,F as JSONPathNodeList,qe as JSONPathQuery,a as JSONPathRecursionLimitError,o as JSONPathSyntaxError,r as JSONPathTypeError,E as JSONPointer,P as Nothing,N as RelativeJSONPointer,ge as Token,de as TokenKind,k as UNDEFINED,St as apply,lt as compile,Nt as jsonpatch,pt as jsonpath,T as jsonpointer,ht as lazyQuery,ut as query,R as resolve,Rt as version};
|
|
2
|
+
//# sourceMappingURL=json-p3.browser.min.js.map
|