@pickaxeproject/react 4.5.0 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/common/fernet.js +1 -1
- package/dist/cjs/components/Pickaxe/common/SmitheryConnectView.js +1 -1
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js +1 -0
- package/dist/cjs/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.24.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.20.2}/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js +1 -1
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +1 -0
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/ajv.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/cache.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/async.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/error_classes.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/formats.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/resolve.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/rules.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/schema_obj.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/ucs2length.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/util.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/data.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/definition_schema.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/_limit.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/_limitItems.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/_limitLength.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/_limitProperties.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/allOf.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/anyOf.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/comment.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/const.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/contains.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/custom.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/dependencies.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/enum.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/format.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/if.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/items.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/multipleOf.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/not.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/oneOf.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/pattern.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/properties.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/propertyNames.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/ref.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/required.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/uniqueItems.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/validate.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/keyword.js +1 -0
- package/dist/cjs/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/refs/data.json.js +1 -0
- package/dist/cjs/node_modules/.pnpm/fast-json-stable-stringify@2.1.0/node_modules/fast-json-stable-stringify/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/json-schema-traverse@0.4.1/node_modules/json-schema-traverse/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/uri-js@4.4.1/node_modules/uri-js/dist/es5/uri.all.js +3 -0
- package/dist/cjs/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js +1 -0
- package/dist/cjs/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js +1 -0
- package/dist/cjs/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js +1 -0
- package/dist/cjs/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js +1 -0
- package/dist/cjs/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js +1 -0
- package/dist/cjs/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js +1 -0
- package/dist/cjs/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js +1 -0
- package/dist/cjs/src/common/fernet.d.ts +1 -3
- package/dist/esm/common/fernet.js +1 -1
- package/dist/esm/components/Pickaxe/common/SmitheryConnectView.js +1 -1
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js +1 -0
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js +1 -0
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js +1 -0
- package/dist/esm/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.24.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.20.2}/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js +1 -1
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js +1 -0
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +1 -0
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.20.2/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/ajv.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/cache.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/async.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/error_classes.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/formats.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/index.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/resolve.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/rules.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/schema_obj.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/ucs2length.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/compile/util.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/data.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/definition_schema.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/_limit.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/_limitItems.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/_limitLength.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/_limitProperties.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/allOf.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/anyOf.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/comment.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/const.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/contains.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/custom.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/dependencies.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/enum.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/format.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/if.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/index.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/items.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/multipleOf.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/not.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/oneOf.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/pattern.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/properties.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/propertyNames.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/ref.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/required.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/uniqueItems.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/dotjs/validate.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/keyword.js +1 -0
- package/dist/esm/node_modules/.pnpm/ajv@6.12.6/node_modules/ajv/lib/refs/data.json.js +1 -0
- package/dist/esm/node_modules/.pnpm/fast-json-stable-stringify@2.1.0/node_modules/fast-json-stable-stringify/index.js +1 -0
- package/dist/esm/node_modules/.pnpm/json-schema-traverse@0.4.1/node_modules/json-schema-traverse/index.js +1 -0
- package/dist/esm/node_modules/.pnpm/uri-js@4.4.1/node_modules/uri-js/dist/es5/uri.all.js +2 -0
- package/dist/esm/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js +1 -0
- package/dist/esm/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js +1 -0
- package/dist/esm/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js +1 -0
- package/dist/esm/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js +1 -0
- package/dist/esm/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js +1 -0
- package/dist/esm/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js +1 -0
- package/dist/esm/node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js +1 -0
- package/dist/esm/src/common/fernet.d.ts +1 -3
- package/package.json +5 -3
- package/dist/cjs/_virtual/additionalItems.js +0 -1
- package/dist/cjs/_virtual/additionalProperties.js +0 -1
- package/dist/cjs/_virtual/allOf.js +0 -1
- package/dist/cjs/_virtual/anyOf.js +0 -1
- package/dist/cjs/_virtual/applicability.js +0 -1
- package/dist/cjs/_virtual/boolSchema.js +0 -1
- package/dist/cjs/_virtual/code.js +0 -1
- package/dist/cjs/_virtual/code2.js +0 -1
- package/dist/cjs/_virtual/const.js +0 -1
- package/dist/cjs/_virtual/contains.js +0 -1
- package/dist/cjs/_virtual/core.js +0 -1
- package/dist/cjs/_virtual/dataType.js +0 -1
- package/dist/cjs/_virtual/defaults.js +0 -1
- package/dist/cjs/_virtual/dependencies.js +0 -1
- package/dist/cjs/_virtual/draft7.js +0 -1
- package/dist/cjs/_virtual/enum.js +0 -1
- package/dist/cjs/_virtual/equal.js +0 -1
- package/dist/cjs/_virtual/errors.js +0 -1
- package/dist/cjs/_virtual/format.js +0 -1
- package/dist/cjs/_virtual/formats.js +0 -1
- package/dist/cjs/_virtual/id.js +0 -1
- package/dist/cjs/_virtual/if.js +0 -1
- package/dist/cjs/_virtual/index10.js +0 -1
- package/dist/cjs/_virtual/index12.js +0 -1
- package/dist/cjs/_virtual/index3.js +0 -1
- package/dist/cjs/_virtual/index4.js +0 -1
- package/dist/cjs/_virtual/index5.js +0 -1
- package/dist/cjs/_virtual/index6.js +0 -1
- package/dist/cjs/_virtual/index7.js +0 -1
- package/dist/cjs/_virtual/index8.js +0 -1
- package/dist/cjs/_virtual/index9.js +0 -1
- package/dist/cjs/_virtual/items.js +0 -1
- package/dist/cjs/_virtual/items2020.js +0 -1
- package/dist/cjs/_virtual/keyword.js +0 -1
- package/dist/cjs/_virtual/limit.js +0 -1
- package/dist/cjs/_virtual/limitItems.js +0 -1
- package/dist/cjs/_virtual/limitLength.js +0 -1
- package/dist/cjs/_virtual/limitNumber.js +0 -1
- package/dist/cjs/_virtual/limitProperties.js +0 -1
- package/dist/cjs/_virtual/metadata.js +0 -1
- package/dist/cjs/_virtual/multipleOf.js +0 -1
- package/dist/cjs/_virtual/names.js +0 -1
- package/dist/cjs/_virtual/not.js +0 -1
- package/dist/cjs/_virtual/oneOf.js +0 -1
- package/dist/cjs/_virtual/pattern.js +0 -1
- package/dist/cjs/_virtual/patternProperties.js +0 -1
- package/dist/cjs/_virtual/prefixItems.js +0 -1
- package/dist/cjs/_virtual/properties.js +0 -1
- package/dist/cjs/_virtual/propertyNames.js +0 -1
- package/dist/cjs/_virtual/ref.js +0 -1
- package/dist/cjs/_virtual/ref_error.js +0 -1
- package/dist/cjs/_virtual/required.js +0 -1
- package/dist/cjs/_virtual/resolve.js +0 -1
- package/dist/cjs/_virtual/rules.js +0 -1
- package/dist/cjs/_virtual/scope.js +0 -1
- package/dist/cjs/_virtual/subschema.js +0 -1
- package/dist/cjs/_virtual/thenElse.js +0 -1
- package/dist/cjs/_virtual/types.js +0 -1
- package/dist/cjs/_virtual/ucs2length.js +0 -1
- package/dist/cjs/_virtual/uniqueItems.js +0 -1
- package/dist/cjs/_virtual/uri.js +0 -1
- package/dist/cjs/_virtual/util.js +0 -1
- package/dist/cjs/_virtual/validation_error.js +0 -1
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js +0 -1
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js +0 -1
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js +0 -1
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js +0 -1
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js +0 -1
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +0 -1
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +0 -1
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js +0 -1
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +0 -1
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js +0 -1
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +0 -1
- package/dist/cjs/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/formats.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/limit.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/ajv.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/code.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/scope.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/errors.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/names.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/ref_error.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/resolve.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/rules.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/util.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/applicability.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/dataType.js +0 -4
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/defaults.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/keyword.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/subschema.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/core.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/data.json.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/equal.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/ucs2length.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/uri.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/validation_error.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -4
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/code.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/id.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/ref.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/draft7.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/format.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/metadata.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/const.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/required.js +0 -1
- package/dist/cjs/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -1
- package/dist/cjs/node_modules/.pnpm/fast-uri@3.0.5/node_modules/fast-uri/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/fast-uri@3.0.5/node_modules/fast-uri/lib/schemes.js +0 -1
- package/dist/cjs/node_modules/.pnpm/fast-uri@3.0.5/node_modules/fast-uri/lib/scopedChars.js +0 -1
- package/dist/cjs/node_modules/.pnpm/fast-uri@3.0.5/node_modules/fast-uri/lib/utils.js +0 -1
- package/dist/cjs/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/coerce.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/compat.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/errors.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/iso.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/parse.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/schemas.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/api.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/checks.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/core.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/doc.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/errors.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/parse.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/regexes.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/registries.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/schemas.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/versions.js +0 -1
- package/dist/esm/_virtual/additionalItems.js +0 -1
- package/dist/esm/_virtual/additionalProperties.js +0 -1
- package/dist/esm/_virtual/allOf.js +0 -1
- package/dist/esm/_virtual/anyOf.js +0 -1
- package/dist/esm/_virtual/applicability.js +0 -1
- package/dist/esm/_virtual/boolSchema.js +0 -1
- package/dist/esm/_virtual/code.js +0 -1
- package/dist/esm/_virtual/code2.js +0 -1
- package/dist/esm/_virtual/const.js +0 -1
- package/dist/esm/_virtual/contains.js +0 -1
- package/dist/esm/_virtual/core.js +0 -1
- package/dist/esm/_virtual/dataType.js +0 -1
- package/dist/esm/_virtual/defaults.js +0 -1
- package/dist/esm/_virtual/dependencies.js +0 -1
- package/dist/esm/_virtual/draft7.js +0 -1
- package/dist/esm/_virtual/enum.js +0 -1
- package/dist/esm/_virtual/equal.js +0 -1
- package/dist/esm/_virtual/errors.js +0 -1
- package/dist/esm/_virtual/format.js +0 -1
- package/dist/esm/_virtual/formats.js +0 -1
- package/dist/esm/_virtual/id.js +0 -1
- package/dist/esm/_virtual/if.js +0 -1
- package/dist/esm/_virtual/index10.js +0 -1
- package/dist/esm/_virtual/index12.js +0 -1
- package/dist/esm/_virtual/index3.js +0 -1
- package/dist/esm/_virtual/index4.js +0 -1
- package/dist/esm/_virtual/index5.js +0 -1
- package/dist/esm/_virtual/index6.js +0 -1
- package/dist/esm/_virtual/index7.js +0 -1
- package/dist/esm/_virtual/index8.js +0 -1
- package/dist/esm/_virtual/index9.js +0 -1
- package/dist/esm/_virtual/items.js +0 -1
- package/dist/esm/_virtual/items2020.js +0 -1
- package/dist/esm/_virtual/keyword.js +0 -1
- package/dist/esm/_virtual/limit.js +0 -1
- package/dist/esm/_virtual/limitItems.js +0 -1
- package/dist/esm/_virtual/limitLength.js +0 -1
- package/dist/esm/_virtual/limitNumber.js +0 -1
- package/dist/esm/_virtual/limitProperties.js +0 -1
- package/dist/esm/_virtual/metadata.js +0 -1
- package/dist/esm/_virtual/multipleOf.js +0 -1
- package/dist/esm/_virtual/names.js +0 -1
- package/dist/esm/_virtual/not.js +0 -1
- package/dist/esm/_virtual/oneOf.js +0 -1
- package/dist/esm/_virtual/pattern.js +0 -1
- package/dist/esm/_virtual/patternProperties.js +0 -1
- package/dist/esm/_virtual/prefixItems.js +0 -1
- package/dist/esm/_virtual/properties.js +0 -1
- package/dist/esm/_virtual/propertyNames.js +0 -1
- package/dist/esm/_virtual/ref.js +0 -1
- package/dist/esm/_virtual/ref_error.js +0 -1
- package/dist/esm/_virtual/required.js +0 -1
- package/dist/esm/_virtual/resolve.js +0 -1
- package/dist/esm/_virtual/rules.js +0 -1
- package/dist/esm/_virtual/scope.js +0 -1
- package/dist/esm/_virtual/subschema.js +0 -1
- package/dist/esm/_virtual/thenElse.js +0 -1
- package/dist/esm/_virtual/types.js +0 -1
- package/dist/esm/_virtual/ucs2length.js +0 -1
- package/dist/esm/_virtual/uniqueItems.js +0 -1
- package/dist/esm/_virtual/uri.js +0 -1
- package/dist/esm/_virtual/util.js +0 -1
- package/dist/esm/_virtual/validation_error.js +0 -1
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js +0 -1
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js +0 -1
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js +0 -1
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js +0 -1
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js +0 -1
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js +0 -1
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +0 -1
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +0 -1
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js +0 -1
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +0 -1
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js +0 -1
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +0 -1
- package/dist/esm/node_modules/.pnpm/@modelcontextprotocol_sdk@1.24.3_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/formats.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/index.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/limit.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/ajv.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/code.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/index.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/scope.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/errors.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/index.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/names.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/ref_error.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/resolve.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/rules.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/util.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/applicability.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/dataType.js +0 -4
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/defaults.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/index.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/keyword.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/subschema.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/core.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/data.json.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/equal.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/ucs2length.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/uri.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/validation_error.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -4
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/code.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/id.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/index.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/ref.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/draft7.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/format.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/index.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/metadata.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/const.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/index.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/required.js +0 -1
- package/dist/esm/node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -1
- package/dist/esm/node_modules/.pnpm/fast-uri@3.0.5/node_modules/fast-uri/index.js +0 -1
- package/dist/esm/node_modules/.pnpm/fast-uri@3.0.5/node_modules/fast-uri/lib/schemes.js +0 -1
- package/dist/esm/node_modules/.pnpm/fast-uri@3.0.5/node_modules/fast-uri/lib/scopedChars.js +0 -1
- package/dist/esm/node_modules/.pnpm/fast-uri@3.0.5/node_modules/fast-uri/lib/utils.js +0 -1
- package/dist/esm/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/coerce.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/compat.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/errors.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/iso.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/parse.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/schemas.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/api.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/checks.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/core.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/doc.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/errors.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/parse.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/regexes.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/registries.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/schemas.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js +0 -1
- package/dist/esm/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/versions.js +0 -1
- /package/dist/cjs/_virtual/{ajv.js → cache.js} +0 -0
- /package/dist/cjs/_virtual/{index11.js → uri.all.js} +0 -0
- /package/dist/cjs/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.24.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.20.2}/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js +0 -0
- /package/dist/cjs/node_modules/.pnpm/{ajv@8.17.1/node_modules/ajv/dist → ajv@6.12.6/node_modules/ajv/lib}/refs/json-schema-draft-07.json.js +0 -0
- /package/dist/esm/_virtual/{ajv.js → cache.js} +0 -0
- /package/dist/esm/_virtual/{index11.js → uri.all.js} +0 -0
- /package/dist/esm/node_modules/.pnpm/{@modelcontextprotocol_sdk@1.24.3_zod@4.1.13 → @modelcontextprotocol_sdk@1.20.2}/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js +0 -0
- /package/dist/esm/node_modules/.pnpm/{ajv@8.17.1/node_modules/ajv/dist → ajv@6.12.6/node_modules/ajv/lib}/refs/json-schema-draft-07.json.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./resolve.js";import{u as r}from"./util.js";import{e as t}from"./error_classes.js";import{f as o}from"../../../../../fast-json-stable-stringify@2.1.0/node_modules/fast-json-stable-stringify/index.js";import{v as a}from"../dotjs/validate.js";import{f as i}from"../../../../../fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js";var n=e,s=r,l=t,c=o,f=a,u=s.ucs2length,d=i,m=l.Validation,v=function e(r,t,o,a){var i=this,v=this._opts,g=[void 0],_={},b=[],S={},E=[],x={},$=[];t=t||{schema:r,refVal:g,refs:_};var k=h.call(this,r,t,a),C=this._compilations[k.index];if(k.compiling)return C.callValidate=function e(){var r=C.validate,t=r.apply(this,arguments);return e.errors=r.errors,t};var P=this._formats,q=this.RULES;try{var I=U(r,t,o,a);C.validate=I;var L=C.callValidate;return L&&(L.schema=I.schema,L.errors=null,L.refs=I.refs,L.refVal=I.refVal,L.root=I.root,L.$async=I.$async,v.sourceCode&&(L.source=I.source)),I}finally{p.call(this,r,t,a)}function U(r,o,a,c){var h=!o||o&&o.schema==r;if(o.schema!=t.schema)return e.call(i,r,o,a,c);var p,S=!0===r.$async,x=f({isTop:!0,schema:r,isRoot:h,baseId:c,root:o,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:l.MissingRef,RULES:q,validate:f,util:s,resolve:n,resolveRef:M,usePattern:T,useDefault:D,useCustomRule:F,opts:v,formats:P,logger:i.logger,self:i});x=j(g,R)+j(b,y)+j(E,w)+j($,V)+x,v.processCode&&(x=v.processCode(x,r));try{p=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",x)(i,q,P,t,g,E,$,d,u,m),g[0]=p}catch(e){throw i.logger.error("Error compiling schema, function code:",x),e}return p.schema=r,p.errors=null,p.refs=_,p.refVal=g,p.root=h?p:o,S&&(p.$async=!0),!0===v.sourceCode&&(p.source={code:x,patterns:b,defaults:E}),p}function M(r,a,s){a=n.url(r,a);var l,c,f=_[a];if(void 0!==f)return Q(l=g[f],c="refVal["+f+"]");if(!s&&t.refs){var u=t.refs[a];if(void 0!==u)return Q(l=t.refVal[u],c=O(a,l))}c=O(a);var d=n.call(i,U,t,a);if(void 0===d){var m=o&&o[a];m&&(d=n.inlineRef(m,v.inlineRefs)?m:e.call(i,m,t,o,r))}if(void 0!==d)return function(e,r){var t=_[e];g[t]=r}(a,d),Q(d,c);!function(e){delete _[e]}(a)}function O(e,r){var t=g.length;return g[t]=r,_[e]=t,"refVal"+t}function Q(e,r){return"object"==typeof e||"boolean"==typeof e?{code:r,schema:e,inline:!0}:{code:r,$async:e&&!!e.$async}}function T(e){var r=S[e];return void 0===r&&(r=S[e]=b.length,b[r]=e),"pattern"+r}function D(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return s.toQuotedString(e);case"object":if(null===e)return"null";var r=c(e),t=x[r];return void 0===t&&(t=x[r]=E.length,E[t]=e),"default"+t}}function F(e,r,t,o){if(!1!==i._opts.validateSchema){var a=e.definition.dependencies;if(a&&!a.every((function(e){return Object.prototype.hasOwnProperty.call(t,e)})))throw new Error("parent schema must have all required keywords: "+a.join(","));var n=e.definition.validateSchema;if(n)if(!n(r)){var s="keyword schema is invalid: "+i.errorsText(n.errors);if("log"!=i._opts.validateSchema)throw new Error(s);i.logger.error(s)}}var l,c=e.definition.compile,f=e.definition.inline,u=e.definition.macro;if(c)l=c.call(i,r,t,o);else if(u)l=u.call(i,r,t,o),!1!==v.validateSchema&&i.validateSchema(l,!0);else if(f)l=f.call(i,o,e.keyword,r,t);else if(!(l=e.definition.validate))return;if(void 0===l)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var d=$.length;return $[d]=l,{code:"customRule"+d,validate:l}}};function h(e,r,t){var o=g.call(this,e,r,t);return o>=0?{index:o,compiling:!0}:(o=this._compilations.length,this._compilations[o]={schema:e,root:r,baseId:t},{index:o,compiling:!1})}function p(e,r,t){var o=g.call(this,e,r,t);o>=0&&this._compilations.splice(o,1)}function g(e,r,t){for(var o=0;o<this._compilations.length;o++){var a=this._compilations[o];if(a.schema==e&&a.root==r&&a.baseId==t)return o}return-1}function y(e,r){return"var pattern"+e+" = new RegExp("+s.toQuotedString(r[e])+");"}function w(e){return"var default"+e+" = defaults["+e+"];"}function R(e,r){return void 0===r[e]?"":"var refVal"+e+" = refVal["+e+"];"}function V(e){return"var customRule"+e+" = customRules["+e+"];"}function j(e,r){if(!e.length)return"";for(var t="",o=0;o<e.length;o++)t+=r(o,e);return t}export{v as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as e}from"../../../../../uri-js@4.4.1/node_modules/uri-js/dist/es5/uri.all.js";import{f as r}from"../../../../../fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js";import{u as t}from"./util.js";import{s as i}from"./schema_obj.js";import{j as s}from"../../../../../json-schema-traverse@0.4.1/node_modules/json-schema-traverse/index.js";var a=e,n=r,o=t,f=i,m=s,c=h;function h(e,r,t){var i=this._refs[t];if("string"==typeof i){if(!this._refs[i])return h.call(this,e,r,i);i=this._refs[i]}if((i=i||this._schemas[t])instanceof f)return _(i.schema,this._opts.inlineRefs)?i.schema:i.validate||this._compile(i);var s,a,n,o=l.call(this,r,t);return o&&(s=o.schema,r=o.root,n=o.baseId),s instanceof f?a=s.validate||e.call(this,s.schema,r,void 0,n):void 0!==s&&(a=_(s,this._opts.inlineRefs)?s:e.call(this,s,r,void 0,n)),a}function l(e,r){var t=a.parse(r),i=I(t),s=y(this._getId(e.schema));if(0===Object.keys(e.schema).length||i!==s){var n=x(i),o=this._refs[n];if("string"==typeof o)return u.call(this,e,o,t);if(o instanceof f)o.validate||this._compile(o),e=o;else{if(!((o=this._schemas[n])instanceof f))return;if(o.validate||this._compile(o),n==x(r))return{schema:o,root:e,baseId:s};e=o}if(!e.schema)return;s=y(this._getId(e.schema))}return v.call(this,t,s,e.schema,e)}function u(e,r,t){var i=l.call(this,e,r);if(i){var s=i.schema,a=i.baseId;e=i.root;var n=this._getId(s);return n&&(a=$(a,n)),v.call(this,t,a,s,e)}}h.normalizeId=x,h.fullPath=y,h.url=$,h.ids=function(e){var r=x(this._getId(e)),t={"":r},i={"":y(r,!1)},s={},f=this;return m(e,{allKeys:!0},(function(e,r,m,c,h,l,u){if(""!==r){var d=f._getId(e),v=t[c],p=i[c]+"/"+h;if(void 0!==u&&(p+="/"+("number"==typeof u?u:o.escapeFragment(u))),"string"==typeof d){d=v=x(v?a.resolve(v,d):d);var _=f._refs[d];if("string"==typeof _&&(_=f._refs[_]),_&&_.schema){if(!n(e,_.schema))throw new Error('id "'+d+'" resolves to more than one schema')}else if(d!=x(p))if("#"==d[0]){if(s[d]&&!n(e,s[d]))throw new Error('id "'+d+'" resolves to more than one schema');s[d]=e}else f._refs[d]=p}t[r]=v,i[r]=p}})),s},h.inlineRef=_,h.schema=l;var d=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function v(e,r,t,i){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var s=e.fragment.split("/"),a=1;a<s.length;a++){var n=s[a];if(n){if(void 0===(t=t[n=o.unescapeFragment(n)]))break;var f;if(!d[n]&&((f=this._getId(t))&&(r=$(r,f)),t.$ref)){var m=$(r,t.$ref),c=l.call(this,i,m);c&&(t=c.schema,i=c.root,r=c.baseId)}}}return void 0!==t&&t!==i.schema?{schema:t,root:i,baseId:r}:void 0}}var p=o.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function _(e,r){return!1!==r&&(void 0===r||!0===r?g(e):r?j(e)<=r:void 0)}function g(e){var r;if(Array.isArray(e)){for(var t=0;t<e.length;t++)if("object"==typeof(r=e[t])&&!g(r))return!1}else for(var i in e){if("$ref"==i)return!1;if("object"==typeof(r=e[i])&&!g(r))return!1}return!0}function j(e){var r,t=0;if(Array.isArray(e)){for(var i=0;i<e.length;i++)if("object"==typeof(r=e[i])&&(t+=j(r)),t==1/0)return 1/0}else for(var s in e){if("$ref"==s)return 1/0;if(p[s])t++;else if("object"==typeof(r=e[s])&&(t+=j(r)+1),t==1/0)return 1/0}return t}function y(e,r){return!1!==r&&(e=x(e)),I(a.parse(e))}function I(e){return a.serialize(e).split("#")[0]+"#"}var b=/#\/?$/;function x(e){return e?e.replace(b,""):""}function $(e,r){return r=x(r),a.resolve(e,r)}export{c as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as e}from"../dotjs/index.js";import{u as t}from"./util.js";var n=e,r=t.toHash,i=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=r(t),e.types=r(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var i;if("object"==typeof r){var o=Object.keys(r)[0];i=r[o],r=o,i.forEach((function(n){t.push(n),e.all[n]=!0}))}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:i}})),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=r(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e};export{i as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as o}from"./util.js";var s=o,t=function(o){s.copy(o,this)};export{t as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=function(r){for(var t,a=0,e=r.length,o=0;o<e;)a++,(t=r.charCodeAt(o++))>=55296&&t<=56319&&o<e&&56320==(64512&(t=r.charCodeAt(o)))&&o++;return a};export{r as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as e}from"../../../../../fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js";import{u as r}from"./ucs2length.js";var n={copy:function(e,r){for(var n in r=r||{},e)r[n]=e[n];return r},checkDataType:t,checkDataTypes:function(e,r,n){if(1===e.length)return t(e[0],r,n,!0);var a="",u=o(e);for(var c in u.array&&u.object&&(a=u.null?"(":"(!"+r+" || ",a+="typeof "+r+' !== "object")',delete u.null,delete u.array,delete u.object),u.number&&delete u.integer,u)a+=(a?" && ":"")+t(c,r,n,!0);return a},coerceToTypes:function(e,r){if(Array.isArray(r)){for(var n=[],t=0;t<r.length;t++){var o=r[t];(a[o]||"array"===e&&"array"===o)&&(n[n.length]=o)}if(n.length)return n}else{if(a[r])return[r];if("array"===e&&"array"===r)return["array"]}},toHash:o,getProperty:i,escapeQuotes:f,equal:e,ucs2length:r,varOccurences:function(e,r){r+="[^0-9]";var n=e.match(new RegExp(r,"g"));return n?n.length:0},varReplace:function(e,r,n){return r+="([^0-9])",n=n.replace(/\$/g,"$$$$"),e.replace(new RegExp(r,"g"),n+"$1")},schemaHasRules:function(e,r){if("boolean"==typeof e)return!e;for(var n in e)if(r[n])return!0},schemaHasRulesExcept:function(e,r,n){if("boolean"==typeof e)return!e&&"not"!=n;for(var t in e)if(t!=n&&r[t])return!0},schemaUnknownRules:function(e,r){if("boolean"==typeof e)return;for(var n in e)if(!r[n])return n},toQuotedString:l,getPathExpr:function(e,r,n,t){return g(e,n?"'/' + "+r+(t?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):t?"'[' + "+r+" + ']'":"'[\\'' + "+r+" + '\\']'")},getPath:function(e,r,n){var t=l(n?"/"+y(r):i(r));return g(e,t)},getData:function(e,r,n){var t,a,o,u;if(""===e)return"rootData";if("/"==e[0]){if(!s.test(e))throw new Error("Invalid JSON-pointer: "+e);a=e,o="rootData"}else{if(!(u=e.match(p)))throw new Error("Invalid JSON-pointer: "+e);if(t=+u[1],"#"==(a=u[2])){if(t>=r)throw new Error("Cannot access property/index "+t+" levels up, current level is "+r);return n[r-t]}if(t>r)throw new Error("Cannot access data "+t+" levels up, current level is "+r);if(o="data"+(r-t||""),!a)return o}for(var c=o,f=a.split("/"),l=0;l<f.length;l++){var g=f[l];g&&(c+=" && "+(o+=i(v(g))))}return c},unescapeFragment:function(e){return v(decodeURIComponent(e))},unescapeJsonPointer:v,escapeFragment:function(e){return encodeURIComponent(y(e))},escapeJsonPointer:y};function t(e,r,n,t){var a=t?" !== ":" === ",o=t?" || ":" && ",u=t?"!":"",c=t?"":"!";switch(e){case"null":return r+a+"null";case"array":return u+"Array.isArray("+r+")";case"object":return"("+u+r+o+"typeof "+r+a+'"object"'+o+c+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+a+'"number"'+o+c+"("+r+" % 1)"+o+r+a+r+(n?o+u+"isFinite("+r+")":"")+")";case"number":return"(typeof "+r+a+'"'+e+'"'+(n?o+u+"isFinite("+r+")":"")+")";default:return"typeof "+r+a+'"'+e+'"'}}var a=o(["string","number","integer","boolean","null"]);function o(e){for(var r={},n=0;n<e.length;n++)r[e[n]]=!0;return r}var u=/^[a-z$_][a-z$_0-9]*$/i,c=/'|\\/g;function i(e){return"number"==typeof e?"["+e+"]":u.test(e)?"."+e:"['"+f(e)+"']"}function f(e){return e.replace(c,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function l(e){return"'"+f(e)+"'"}var s=/^\/(?:[^~]|~0|~1)*$/,p=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function g(e,r){return'""'==e?r:(e+" + "+r).replace(/([^\\])' \+ '/g,"$1")}function y(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function v(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}export{n as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"],t=function(t,i){for(var r=0;r<i.length;r++){t=JSON.parse(JSON.stringify(t));var a,m=i[r].split("/"),n=t;for(a=1;a<m.length;a++)n=n[m[a]];for(a=0;a<e.length;a++){var s=e[a],o=n[s];o&&(n[s]={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t};export{t as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./refs/json-schema-draft-07.json.js";var t=e,a={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:t.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:t.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}};export{a as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e,r,a){var t,s=" ",o=e.level,i=e.dataLevel,m=e.schema[r],h=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,n="data"+(i||""),d=e.opts.$data&&m&&m.$data;d?(s+=" var schema"+o+" = "+e.util.getData(m.$data,i,e.dataPathArr)+"; ",t="schema"+o):t=m;var c="maximum"==r,v=c?"exclusiveMaximum":"exclusiveMinimum",p=e.schema[v],f=e.opts.$data&&p&&p.$data,b=c?"<":">",P=c?">":"<",E=void 0;if(!d&&"number"!=typeof m&&void 0!==m)throw new Error(r+" must be number");if(!f&&void 0!==p&&"number"!=typeof p&&"boolean"!=typeof p)throw new Error(v+" must be number or boolean");if(f){var y=e.util.getData(p.$data,i,e.dataPathArr),x="exclusive"+o,w="exclType"+o,g="exclIsNumber"+o,S="' + "+(_="op"+o)+" + '";s+=" var schemaExcl"+o+" = "+y+"; ",s+=" var "+x+"; var "+w+" = typeof "+(y="schemaExcl"+o)+"; if ("+w+" != 'boolean' && "+w+" != 'undefined' && "+w+" != 'number') { ";var $;E=v;($=$||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(E||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(s+=" , message: '"+v+" should be boolean' "),e.opts.verbose&&(s+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+n+" "),s+=" } "):s+=" {} ";var M=s;s=$.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+M+"]); ":s+=" validate.errors = ["+M+"]; return false; ":s+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else if ( ",d&&(s+=" ("+t+" !== undefined && typeof "+t+" != 'number') || "),s+=" "+w+" == 'number' ? ( ("+x+" = "+t+" === undefined || "+y+" "+b+"= "+t+") ? "+n+" "+P+"= "+y+" : "+n+" "+P+" "+t+" ) : ( ("+x+" = "+y+" === true) ? "+n+" "+P+"= "+t+" : "+n+" "+P+" "+t+" ) || "+n+" !== "+n+") { var op"+o+" = "+x+" ? '"+b+"' : '"+b+"='; ",void 0===m&&(E=v,l=e.errSchemaPath+"/"+v,t=y,d=f)}else{S=b;if((g="number"==typeof p)&&d){var _="'"+S+"'";s+=" if ( ",d&&(s+=" ("+t+" !== undefined && typeof "+t+" != 'number') || "),s+=" ( "+t+" === undefined || "+p+" "+b+"= "+t+" ? "+n+" "+P+"= "+p+" : "+n+" "+P+" "+t+" ) || "+n+" !== "+n+") { "}else{g&&void 0===m?(x=!0,E=v,l=e.errSchemaPath+"/"+v,t=p,P+="="):(g&&(t=Math[c?"min":"max"](p,m)),p===(!g||t)?(x=!0,E=v,l=e.errSchemaPath+"/"+v,P+="="):(x=!1,S+="="));_="'"+S+"'";s+=" if ( ",d&&(s+=" ("+t+" !== undefined && typeof "+t+" != 'number') || "),s+=" "+n+" "+P+" "+t+" || "+n+" !== "+n+") { "}}E=E||r,($=$||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(E||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+_+", limit: "+t+", exclusive: "+x+" } ",!1!==e.opts.messages&&(s+=" , message: 'should be "+S+" ",s+=d?"' + "+t:t+"'"),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+h:""+m,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+n+" "),s+=" } "):s+=" {} ";M=s;return s=$.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+M+"]); ":s+=" validate.errors = ["+M+"]; return false; ":s+=" var err = "+M+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",u&&(s+=" else { "),s};export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e,a,r){var t,s=" ",o=e.level,m=e.dataLevel,h=e.schema[a],l=e.schemaPath+e.util.getProperty(a),i=e.errSchemaPath+"/"+a,d=!e.opts.allErrors,n="data"+(m||""),u=e.opts.$data&&h&&h.$data;if(u?(s+=" var schema"+o+" = "+e.util.getData(h.$data,m,e.dataPathArr)+"; ",t="schema"+o):t=h,!u&&"number"!=typeof h)throw new Error(a+" must be number");s+="if ( ",u&&(s+=" ("+t+" !== undefined && typeof "+t+" != 'number') || "),s+=" "+n+".length "+("maxItems"==a?">":"<")+" "+t+") { ";var v=a,c=c||[];c.push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(v||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(i)+" , params: { limit: "+t+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have ",s+="maxItems"==a?"more":"fewer",s+=" than ",s+=u?"' + "+t+" + '":""+h,s+=" items' "),e.opts.verbose&&(s+=" , schema: ",s+=u?"validate.schema"+l:""+h,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+n+" "),s+=" } "):s+=" {} ";var p=s;return s=c.pop(),!e.compositeRule&&d?e.async?s+=" throw new ValidationError(["+p+"]); ":s+=" validate.errors = ["+p+"]; return false; ":s+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",d&&(s+=" else { "),s};export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=function(r,a,e){var t,s=" ",o=r.level,h=r.dataLevel,l=r.schema[a],n=r.schemaPath+r.util.getProperty(a),m=r.errSchemaPath+"/"+a,i=!r.opts.allErrors,c="data"+(h||""),d=r.opts.$data&&l&&l.$data;if(d?(s+=" var schema"+o+" = "+r.util.getData(l.$data,h,r.dataPathArr)+"; ",t="schema"+o):t=l,!d&&"number"!=typeof l)throw new Error(a+" must be number");var u="maxLength"==a?">":"<";s+="if ( ",d&&(s+=" ("+t+" !== undefined && typeof "+t+" != 'number') || "),!1===r.opts.unicode?s+=" "+c+".length ":s+=" ucs2length("+c+") ",s+=" "+u+" "+t+") { ";var p=a,v=v||[];v.push(s),s="",!1!==r.createErrors?(s+=" { keyword: '"+(p||"_limitLength")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(m)+" , params: { limit: "+t+" } ",!1!==r.opts.messages&&(s+=" , message: 'should NOT be ",s+="maxLength"==a?"longer":"shorter",s+=" than ",s+=d?"' + "+t+" + '":""+l,s+=" characters' "),r.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+n:""+l,s+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+c+" "),s+=" } "):s+=" {} ";var g=s;return s=v.pop(),!r.compositeRule&&i?r.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",i&&(s+=" else { "),s};export{r as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e,r,a){var t,s=" ",o=e.level,h=e.dataLevel,m=e.schema[r],i=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,d="data"+(h||""),n=e.opts.$data&&m&&m.$data;if(n?(s+=" var schema"+o+" = "+e.util.getData(m.$data,h,e.dataPathArr)+"; ",t="schema"+o):t=m,!n&&"number"!=typeof m)throw new Error(r+" must be number");s+="if ( ",n&&(s+=" ("+t+" !== undefined && typeof "+t+" != 'number') || "),s+=" Object.keys("+d+").length "+("maxProperties"==r?">":"<")+" "+t+") { ";var u=r,c=c||[];c.push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(u||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+t+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have ",s+="maxProperties"==r?"more":"fewer",s+=" than ",s+=n?"' + "+t+" + '":""+m,s+=" properties' "),e.opts.verbose&&(s+=" , schema: ",s+=n?"validate.schema"+i:""+m,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),s+=" } "):s+=" {} ";var v=s;return s=c.pop(),!e.compositeRule&&p?e.async?s+=" throw new ValidationError(["+v+"]); ":s+=" validate.errors = ["+v+"]; return false; ":s+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",p&&(s+=" else { "),s};export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e,a,t){var r=" ",l=e.schema[a],s=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,h=!e.opts.allErrors,i=e.util.copy(e),o="";i.level++;var v="valid"+i.level,m=i.baseId,u=!0,f=l;if(f)for(var p,d=-1,n=f.length-1;d<n;)p=f[d+=1],(e.opts.strictKeywords?"object"==typeof p&&Object.keys(p).length>0||!1===p:e.util.schemaHasRules(p,e.RULES.all))&&(u=!1,i.schema=p,i.schemaPath=s+"["+d+"]",i.errSchemaPath=c+"/"+d,r+=" "+e.validate(i)+" ",i.baseId=m,h&&(r+=" if ("+v+") { ",o+="}"));return h&&(r+=u?" if (true) { ":" "+o.slice(0,-1)+" "),r};export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=function(r,e,a){var s=" ",t=r.level,o=r.dataLevel,l=r.schema[e],i=r.schemaPath+r.util.getProperty(e),h=r.errSchemaPath+"/"+e,v=!r.opts.allErrors,c="data"+(o||""),m="valid"+t,u="errs__"+t,n=r.util.copy(r),d="";n.level++;var p="valid"+n.level,f=l.every((function(e){return r.opts.strictKeywords?"object"==typeof e&&Object.keys(e).length>0||!1===e:r.util.schemaHasRules(e,r.RULES.all)}));if(f){var E=n.baseId;s+=" var "+u+" = errors; var "+m+" = false; ";var y=r.compositeRule;r.compositeRule=n.compositeRule=!0;var P=l;if(P)for(var R,g=-1,b=P.length-1;g<b;)R=P[g+=1],n.schema=R,n.schemaPath=i+"["+g+"]",n.errSchemaPath=h+"/"+g,s+=" "+r.validate(n)+" ",n.baseId=E,s+=" "+m+" = "+m+" || "+p+"; if (!"+m+") { ",d+="}";r.compositeRule=n.compositeRule=y,s+=" "+d+" if (!"+m+") { var err = ",!1!==r.createErrors?(s+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(h)+" , params: {} ",!1!==r.opts.messages&&(s+=" , message: 'should match some schema in anyOf' "),r.opts.verbose&&(s+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+c+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&v&&(r.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+=" } else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ",r.opts.allErrors&&(s+=" } ")}else v&&(s+=" if (true) { ");return s};export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=function(t,o,e){var r=" ",a=t.schema[o],n=t.errSchemaPath+"/"+o;t.opts.allErrors;var c=t.util.toQuotedString(a);return!0===t.opts.$comment?r+=" console.log("+c+");":"function"==typeof t.opts.$comment&&(r+=" self._opts.$comment("+c+", "+t.util.toQuotedString(n)+", validate.root.schema);"),r};export{t as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=function(a,e,r){var t=" ",s=a.level,o=a.dataLevel,h=a.schema[e],l=a.schemaPath+a.util.getProperty(e),c=a.errSchemaPath+"/"+e,d=!a.opts.allErrors,v="data"+(o||""),m="valid"+s,i=a.opts.$data&&h&&h.$data;i&&(t+=" var schema"+s+" = "+a.util.getData(h.$data,o,a.dataPathArr)+"; "),i||(t+=" var schema"+s+" = validate.schema"+l+";"),t+="var "+m+" = equal("+v+", schema"+s+"); if (!"+m+") { ";var u=u||[];u.push(t),t="",!1!==a.createErrors?(t+=" { keyword: 'const' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(c)+" , params: { allowedValue: schema"+s+" } ",!1!==a.opts.messages&&(t+=" , message: 'should be equal to constant' "),a.opts.verbose&&(t+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+v+" "),t+=" } "):t+=" {} ";var n=t;return t=u.pop(),!a.compositeRule&&d?a.async?t+=" throw new ValidationError(["+n+"]); ":t+=" validate.errors = ["+n+"]; return false; ":t+=" var err = "+n+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",d&&(t+=" else { "),t};export{a as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=function(r,e,a){var t=" ",s=r.level,l=r.dataLevel,o=r.schema[e],i=r.schemaPath+r.util.getProperty(e),v=r.errSchemaPath+"/"+e,h=!r.opts.allErrors,c="data"+(l||""),u="valid"+s,p="errs__"+s,d=r.util.copy(r);d.level++;var m="valid"+d.level,n="i"+s,P=d.dataLevel=r.dataLevel+1,f="data"+P,E=r.baseId,g=r.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:r.util.schemaHasRules(o,r.RULES.all);if(t+="var "+p+" = errors;var "+u+";",g){var R=r.compositeRule;r.compositeRule=d.compositeRule=!0,d.schema=o,d.schemaPath=i,d.errSchemaPath=v,t+=" var "+m+" = false; for (var "+n+" = 0; "+n+" < "+c+".length; "+n+"++) { ",d.errorPath=r.util.getPathExpr(r.errorPath,n,r.opts.jsonPointers,!0);var y=c+"["+n+"]";d.dataPathArr[P]=n;var b=r.validate(d);d.baseId=E,r.util.varOccurences(b,f)<2?t+=" "+r.util.varReplace(b,f,y)+" ":t+=" var "+f+" = "+y+"; "+b+" ",t+=" if ("+m+") break; } ",r.compositeRule=d.compositeRule=R,t+=" if (!"+m+") {"}else t+=" if ("+c+".length == 0) {";var S=S||[];S.push(t),t="",!1!==r.createErrors?(t+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(v)+" , params: {} ",!1!==r.opts.messages&&(t+=" , message: 'should contain a valid item' "),r.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var w=t;return t=S.pop(),!r.compositeRule&&h?r.async?t+=" throw new ValidationError(["+w+"]); ":t+=" validate.errors = ["+w+"]; return false; ":t+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { ",g&&(t+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),r.opts.allErrors&&(t+=" } "),t};export{r as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=function(a,r,e){var t,s,o=" ",i=a.level,d=a.dataLevel,l=a.schema[r],h=a.schemaPath+a.util.getProperty(r),v=a.errSchemaPath+"/"+r,c=!a.opts.allErrors,n="data"+(d||""),m="valid"+i,u="errs__"+i,p=a.opts.$data&&l&&l.$data;p?(o+=" var schema"+i+" = "+a.util.getData(l.$data,d,a.dataPathArr)+"; ",s="schema"+i):s=l;var f,P,y,E,w,k=this,g="definition"+i,R=k.definition,S="";if(p&&R.$data){w="keywordValidate"+i;var b=R.validateSchema;o+=" var "+g+" = RULES.custom['"+r+"'].definition; var "+w+" = "+g+".validate;"}else{if(!(E=a.useCustomRule(k,l,a.schema,a)))return;s="validate.schema"+h,w=E.code,f=R.compile,P=R.inline,y=R.macro}var $=w+".errors",A="i"+i,D="ruleErr"+i,V=R.async;if(V&&!a.async)throw new Error("async keyword in sync schema");if(P||y||(o+=$+" = null;"),o+="var "+u+" = errors;var "+m+";",p&&R.$data&&(S+="}",o+=" if ("+s+" === undefined) { "+m+" = true; } else { ",b&&(S+="}",o+=" "+m+" = "+g+".validateSchema("+s+"); if ("+m+") { ")),P)R.statements?o+=" "+E.validate+" ":o+=" "+m+" = "+E.validate+"; ";else if(y){var x=a.util.copy(a);S="";x.level++;var C="valid"+x.level;x.schema=E.validate,x.schemaPath="";var L=a.compositeRule;a.compositeRule=x.compositeRule=!0;var Q=a.validate(x).replace(/validate\.schema/g,w);a.compositeRule=x.compositeRule=L,o+=" "+Q}else{(q=q||[]).push(o),o="",o+=" "+w+".call( ",a.opts.passContext?o+="this":o+="self",f||!1===R.schema?o+=" , "+n+" ":o+=" , "+s+" , "+n+" , validate.schema"+a.schemaPath+" ",o+=" , (dataPath || '')",'""'!=a.errorPath&&(o+=" + "+a.errorPath);var _=d?"data"+(d-1||""):"parentData",U=d?a.dataPathArr[d]:"parentDataProperty",j=o+=" , "+_+" , "+U+" , rootData ) ";o=q.pop(),!1===R.errors?(o+=" "+m+" = ",V&&(o+="await "),o+=j+"; "):o+=V?" var "+($="customErrors"+i)+" = null; try { "+m+" = await "+j+"; } catch (e) { "+m+" = false; if (e instanceof ValidationError) "+$+" = e.errors; else throw e; } ":" "+$+" = null; "+m+" = "+j+"; "}if(R.modifying&&(o+=" if ("+_+") "+n+" = "+_+"["+U+"];"),o+=""+S,R.valid)c&&(o+=" if (true) { ");else{var q;o+=" if ( ",void 0===R.valid?(o+=" !",o+=y?""+C:""+m):o+=" "+!R.valid+" ",o+=") { ",t=k.keyword,(q=q||[]).push(o),o="",(q=q||[]).push(o),o="",!1!==a.createErrors?(o+=" { keyword: '"+(t||"custom")+"' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(v)+" , params: { keyword: '"+k.keyword+"' } ",!1!==a.opts.messages&&(o+=" , message: 'should pass \""+k.keyword+"\" keyword validation' "),a.opts.verbose&&(o+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+n+" "),o+=" } "):o+=" {} ";var z=o;o=q.pop(),!a.compositeRule&&c?a.async?o+=" throw new ValidationError(["+z+"]); ":o+=" validate.errors = ["+z+"]; return false; ":o+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var B=o;o=q.pop(),P?R.errors?"full"!=R.errors&&(o+=" for (var "+A+"="+u+"; "+A+"<errors; "+A+"++) { var "+D+" = vErrors["+A+"]; if ("+D+".dataPath === undefined) "+D+".dataPath = (dataPath || '') + "+a.errorPath+"; if ("+D+".schemaPath === undefined) { "+D+'.schemaPath = "'+v+'"; } ',a.opts.verbose&&(o+=" "+D+".schema = "+s+"; "+D+".data = "+n+"; "),o+=" } "):!1===R.errors?o+=" "+B+" ":(o+=" if ("+u+" == errors) { "+B+" } else { for (var "+A+"="+u+"; "+A+"<errors; "+A+"++) { var "+D+" = vErrors["+A+"]; if ("+D+".dataPath === undefined) "+D+".dataPath = (dataPath || '') + "+a.errorPath+"; if ("+D+".schemaPath === undefined) { "+D+'.schemaPath = "'+v+'"; } ',a.opts.verbose&&(o+=" "+D+".schema = "+s+"; "+D+".data = "+n+"; "),o+=" } } "):y?(o+=" var err = ",!1!==a.createErrors?(o+=" { keyword: '"+(t||"custom")+"' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(v)+" , params: { keyword: '"+k.keyword+"' } ",!1!==a.opts.messages&&(o+=" , message: 'should pass \""+k.keyword+"\" keyword validation' "),a.opts.verbose&&(o+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+n+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!a.compositeRule&&c&&(a.async?o+=" throw new ValidationError(vErrors); ":o+=" validate.errors = vErrors; return false; ")):!1===R.errors?o+=" "+B+" ":(o+=" if (Array.isArray("+$+")) { if (vErrors === null) vErrors = "+$+"; else vErrors = vErrors.concat("+$+"); errors = vErrors.length; for (var "+A+"="+u+"; "+A+"<errors; "+A+"++) { var "+D+" = vErrors["+A+"]; if ("+D+".dataPath === undefined) "+D+".dataPath = (dataPath || '') + "+a.errorPath+"; "+D+'.schemaPath = "'+v+'"; ',a.opts.verbose&&(o+=" "+D+".schema = "+s+"; "+D+".data = "+n+"; "),o+=" } } else { "+B+" } "),o+=" } ",c&&(o+=" else { ")}return o};export{a as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e,r,t){var a=" ",s=e.level,o=e.dataLevel,p=e.schema[r],i=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,n=!e.opts.allErrors,u="data"+(o||""),h="errs__"+s,c=e.util.copy(e),d="";c.level++;var v="valid"+c.level,P={},y={},m=e.opts.ownProperties;for(j in p)if("__proto__"!=j){var g=p[j],f=Array.isArray(g)?y:P;f[j]=g}a+="var "+h+" = errors;";var Q=e.errorPath;for(var j in a+="var missing"+s+";",y)if((f=y[j]).length){if(a+=" if ( "+u+e.util.getProperty(j)+" !== undefined ",m&&(a+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(j)+"') "),n){a+=" && ( ";var w=f;if(w)for(var E=-1,b=w.length-1;E<b;){x=w[E+=1],E&&(a+=" || "),a+=" ( ( "+(I=u+(D=e.util.getProperty(x)))+" === undefined ",m&&(a+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(x)+"') "),a+=") && (missing"+s+" = "+e.util.toQuotedString(e.opts.jsonPointers?x:D)+") ) "}a+=")) { ";var O="missing"+s,S="' + "+O+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(Q,O,!0):Q+" + "+O);var _=_||[];_.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(j)+"', missingProperty: '"+S+"', depsCount: "+f.length+", deps: '"+e.util.escapeQuotes(1==f.length?f[0]:f.join(", "))+"' } ",!1!==e.opts.messages&&(a+=" , message: 'should have ",1==f.length?a+="property "+e.util.escapeQuotes(f[0]):a+="properties "+e.util.escapeQuotes(f.join(", ")),a+=" when property "+e.util.escapeQuotes(j)+" is present' "),e.opts.verbose&&(a+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var k=a;a=_.pop(),!e.compositeRule&&n?e.async?a+=" throw new ValidationError(["+k+"]); ":a+=" validate.errors = ["+k+"]; return false; ":a+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{a+=" ) { ";var R=f;if(R)for(var x,A=-1,C=R.length-1;A<C;){x=R[A+=1];var D=e.util.getProperty(x),I=(S=e.util.escapeQuotes(x),u+D);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(Q,x,e.opts.jsonPointers)),a+=" if ( "+I+" === undefined ",m&&(a+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(x)+"') "),a+=") { var err = ",!1!==e.createErrors?(a+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(j)+"', missingProperty: '"+S+"', depsCount: "+f.length+", deps: '"+e.util.escapeQuotes(1==f.length?f[0]:f.join(", "))+"' } ",!1!==e.opts.messages&&(a+=" , message: 'should have ",1==f.length?a+="property "+e.util.escapeQuotes(f[0]):a+="properties "+e.util.escapeQuotes(f.join(", ")),a+=" when property "+e.util.escapeQuotes(j)+" is present' "),e.opts.verbose&&(a+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}a+=" } ",n&&(d+="}",a+=" else { ")}e.errorPath=Q;var L=c.baseId;for(var j in P){g=P[j];(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all))&&(a+=" "+v+" = true; if ( "+u+e.util.getProperty(j)+" !== undefined ",m&&(a+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(j)+"') "),a+=") { ",c.schema=g,c.schemaPath=i+e.util.getProperty(j),c.errSchemaPath=l+"/"+e.util.escapeFragment(j),a+=" "+e.validate(c)+" ",c.baseId=L,a+=" } ",n&&(a+=" if ("+v+") { ",d+="}"))}return n&&(a+=" "+d+" if ("+h+" == errors) {"),a};export{e as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=function(a,e,r){var t=" ",s=a.level,l=a.dataLevel,o=a.schema[e],h=a.schemaPath+a.util.getProperty(e),d=a.errSchemaPath+"/"+e,v=!a.opts.allErrors,i="data"+(l||""),m="valid"+s,u=a.opts.$data&&o&&o.$data;u&&(t+=" var schema"+s+" = "+a.util.getData(o.$data,l,a.dataPathArr)+"; ");var c="i"+s,n="schema"+s;u||(t+=" var "+n+" = validate.schema"+h+";"),t+="var "+m+";",u&&(t+=" if (schema"+s+" === undefined) "+m+" = true; else if (!Array.isArray(schema"+s+")) "+m+" = false; else {"),t+=m+" = false;for (var "+c+"=0; "+c+"<"+n+".length; "+c+"++) if (equal("+i+", "+n+"["+c+"])) { "+m+" = true; break; }",u&&(t+=" } "),t+=" if (!"+m+") { ";var p=p||[];p.push(t),t="",!1!==a.createErrors?(t+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(d)+" , params: { allowedValues: schema"+s+" } ",!1!==a.opts.messages&&(t+=" , message: 'should be equal to one of the allowed values' "),a.opts.verbose&&(t+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+i+" "),t+=" } "):t+=" {} ";var f=t;return t=p.pop(),!a.compositeRule&&v?a.async?t+=" throw new ValidationError(["+f+"]); ":t+=" validate.errors = ["+f+"]; return false; ":t+=" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",v&&(t+=" else { "),t};export{a as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=function(a,r,t){var e=" ",o=a.level,s=a.dataLevel,i=a.schema[r],n=a.schemaPath+a.util.getProperty(r),f=a.errSchemaPath+"/"+r,c=!a.opts.allErrors,m="data"+(s||"");if(!1===a.opts.format)return c&&(e+=" if (true) { "),e;var u,h=a.opts.$data&&i&&i.$data;h?(e+=" var schema"+o+" = "+a.util.getData(i.$data,s,a.dataPathArr)+"; ",u="schema"+o):u=i;var l=a.opts.unknownFormats,p=Array.isArray(l);if(h){e+=" var "+(v="format"+o)+" = formats["+u+"]; var "+(d="isObject"+o)+" = typeof "+v+" == 'object' && !("+v+" instanceof RegExp) && "+v+".validate; var "+(y="formatType"+o)+" = "+d+" && "+v+".type || 'string'; if ("+d+") { ",a.async&&(e+=" var async"+o+" = "+v+".async; "),e+=" "+v+" = "+v+".validate; } if ( ",h&&(e+=" ("+u+" !== undefined && typeof "+u+" != 'string') || "),e+=" (","ignore"!=l&&(e+=" ("+u+" && !"+v+" ",p&&(e+=" && self._opts.unknownFormats.indexOf("+u+") == -1 "),e+=") || "),e+=" ("+v+" && "+y+" == '"+t+"' && !(typeof "+v+" == 'function' ? ",a.async?e+=" (async"+o+" ? await "+v+"("+m+") : "+v+"("+m+")) ":e+=" "+v+"("+m+") ",e+=" : "+v+".test("+m+"))))) {"}else{var v;if(!(v=a.formats[i])){if("ignore"==l)return a.logger.warn('unknown format "'+i+'" ignored in schema at path "'+a.errSchemaPath+'"'),c&&(e+=" if (true) { "),e;if(p&&l.indexOf(i)>=0)return c&&(e+=" if (true) { "),e;throw new Error('unknown format "'+i+'" is used in schema at path "'+a.errSchemaPath+'"')}var d,y=(d="object"==typeof v&&!(v instanceof RegExp)&&v.validate)&&v.type||"string";if(d){var g=!0===v.async;v=v.validate}if(y!=t)return c&&(e+=" if (true) { "),e;if(g){if(!a.async)throw new Error("async format in sync schema");e+=" if (!(await "+(w="formats"+a.util.getProperty(i)+".validate")+"("+m+"))) { "}else{e+=" if (! ";var w="formats"+a.util.getProperty(i);d&&(w+=".validate"),e+="function"==typeof v?" "+w+"("+m+") ":" "+w+".test("+m+") ",e+=") { "}}var P=P||[];P.push(e),e="",!1!==a.createErrors?(e+=" { keyword: 'format' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(f)+" , params: { format: ",e+=h?""+u:""+a.util.toQuotedString(i),e+=" } ",!1!==a.opts.messages&&(e+=" , message: 'should match format \"",e+=h?"' + "+u+" + '":""+a.util.escapeQuotes(i),e+="\"' "),a.opts.verbose&&(e+=" , schema: ",e+=h?"validate.schema"+n:""+a.util.toQuotedString(i),e+=" , parentSchema: validate.schema"+a.schemaPath+" , data: "+m+" "),e+=" } "):e+=" {} ";var E=e;return e=P.pop(),!a.compositeRule&&c?a.async?e+=" throw new ValidationError(["+E+"]); ":e+=" validate.errors = ["+E+"]; return false; ":e+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",e+=" } ",c&&(e+=" else { "),e};export{a as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e,r,a){var s=" ",t=e.level,l=e.dataLevel,h=e.schema[r],o=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,i=!e.opts.allErrors,m="data"+(l||""),v="valid"+t,d="errs__"+t,u=e.util.copy(e);u.level++;var n="valid"+u.level,p=e.schema.then,P=e.schema.else,f=void 0!==p&&(e.opts.strictKeywords?"object"==typeof p&&Object.keys(p).length>0||!1===p:e.util.schemaHasRules(p,e.RULES.all)),E=void 0!==P&&(e.opts.strictKeywords?"object"==typeof P&&Object.keys(P).length>0||!1===P:e.util.schemaHasRules(P,e.RULES.all)),y=u.baseId;if(f||E){var R;u.createErrors=!1,u.schema=h,u.schemaPath=o,u.errSchemaPath=c,s+=" var "+d+" = errors; var "+v+" = true; ";var S=e.compositeRule;e.compositeRule=u.compositeRule=!0,s+=" "+e.validate(u)+" ",u.baseId=y,u.createErrors=!0,s+=" errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.compositeRule=u.compositeRule=S,f?(s+=" if ("+n+") { ",u.schema=e.schema.then,u.schemaPath=e.schemaPath+".then",u.errSchemaPath=e.errSchemaPath+"/then",s+=" "+e.validate(u)+" ",u.baseId=y,s+=" "+v+" = "+n+"; ",f&&E?s+=" var "+(R="ifClause"+t)+" = 'then'; ":R="'then'",s+=" } ",E&&(s+=" else { ")):s+=" if (!"+n+") { ",E&&(u.schema=e.schema.else,u.schemaPath=e.schemaPath+".else",u.errSchemaPath=e.errSchemaPath+"/else",s+=" "+e.validate(u)+" ",u.baseId=y,s+=" "+v+" = "+n+"; ",f&&E?s+=" var "+(R="ifClause"+t)+" = 'else'; ":R="'else'",s+=" } "),s+=" if (!"+v+") { var err = ",!1!==e.createErrors?(s+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+R+" } ",!1!==e.opts.messages&&(s+=" , message: 'should match \"' + "+R+" + '\" schema' "),e.opts.verbose&&(s+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&i&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+=" } ",i&&(s+=" else { ")}else i&&(s+=" if (true) { ");return s};export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as m}from"./ref.js";import{a as r}from"./allOf.js";import{a as o}from"./anyOf.js";import{c as s}from"./comment.js";import{_ as t}from"./const.js";import{c as i}from"./contains.js";import{d as e}from"./dependencies.js";import{_ as a}from"./enum.js";import{f as p}from"./format.js";import{_ as f}from"./if.js";import{i as n}from"./items.js";import{_ as j}from"./_limit.js";import{_ as l}from"./_limitItems.js";import{_ as u}from"./_limitLength.js";import{_}from"./_limitProperties.js";import{m as c}from"./multipleOf.js";import{n as d}from"./not.js";import{o as O}from"./oneOf.js";import{p as x}from"./pattern.js";import{p as I}from"./properties.js";import{p as q}from"./propertyNames.js";import{r as v}from"./required.js";import{u as y}from"./uniqueItems.js";import{v as g}from"./validate.js";var h={$ref:m,allOf:r,anyOf:o,$comment:s,const:t,contains:i,dependencies:e,enum:a,format:p,if:f,items:n,maximum:j,minimum:j,maxItems:l,minItems:l,maxLength:u,minLength:u,maxProperties:_,minProperties:_,multipleOf:c,not:d,oneOf:O,pattern:x,properties:I,propertyNames:q,required:v,uniqueItems:y,validate:g};export{h as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e,a,r){var t=" ",s=e.level,l=e.dataLevel,h=e.schema[a],o=e.schemaPath+e.util.getProperty(a),i=e.errSchemaPath+"/"+a,c=!e.opts.allErrors,v="data"+(l||""),d="valid"+s,n="errs__"+s,m=e.util.copy(e),u="";m.level++;var P="valid"+m.level,p="i"+s,f=m.dataLevel=e.dataLevel+1,g="data"+f,y=e.baseId;if(t+="var "+n+" = errors;var "+d+";",Array.isArray(h)){var b=e.schema.additionalItems;if(!1===b){t+=" "+d+" = "+v+".length <= "+h.length+"; ";var E=i;i=e.errSchemaPath+"/additionalItems",t+=" if (!"+d+") { ";var S=S||[];S.push(t),t="",!1!==e.createErrors?(t+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(i)+" , params: { limit: "+h.length+" } ",!1!==e.opts.messages&&(t+=" , message: 'should NOT have more than "+h.length+" items' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "),t+=" } "):t+=" {} ";var j=t;t=S.pop(),!e.compositeRule&&c?e.async?t+=" throw new ValidationError(["+j+"]); ":t+=" validate.errors = ["+j+"]; return false; ":t+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",i=E,c&&(u+="}",t+=" else { ")}var R=h;if(R)for(var I,O=-1,k=R.length-1;O<k;)if(I=R[O+=1],e.opts.strictKeywords?"object"==typeof I&&Object.keys(I).length>0||!1===I:e.util.schemaHasRules(I,e.RULES.all)){t+=" "+P+" = true; if ("+v+".length > "+O+") { ";var w=v+"["+O+"]";m.schema=I,m.schemaPath=o+"["+O+"]",m.errSchemaPath=i+"/"+O,m.errorPath=e.util.getPathExpr(e.errorPath,O,e.opts.jsonPointers,!0),m.dataPathArr[f]=O;var L=e.validate(m);m.baseId=y,e.util.varOccurences(L,g)<2?t+=" "+e.util.varReplace(L,g,w)+" ":t+=" var "+g+" = "+w+"; "+L+" ",t+=" } ",c&&(t+=" if ("+P+") { ",u+="}")}if("object"==typeof b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))){m.schema=b,m.schemaPath=e.schemaPath+".additionalItems",m.errSchemaPath=e.errSchemaPath+"/additionalItems",t+=" "+P+" = true; if ("+v+".length > "+h.length+") { for (var "+p+" = "+h.length+"; "+p+" < "+v+".length; "+p+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,p,e.opts.jsonPointers,!0);w=v+"["+p+"]";m.dataPathArr[f]=p;L=e.validate(m);m.baseId=y,e.util.varOccurences(L,g)<2?t+=" "+e.util.varReplace(L,g,w)+" ":t+=" var "+g+" = "+w+"; "+L+" ",c&&(t+=" if (!"+P+") break; "),t+=" } } ",c&&(t+=" if ("+P+") { ",u+="}")}}else if(e.opts.strictKeywords?"object"==typeof h&&Object.keys(h).length>0||!1===h:e.util.schemaHasRules(h,e.RULES.all)){m.schema=h,m.schemaPath=o,m.errSchemaPath=i,t+=" for (var "+p+" = 0; "+p+" < "+v+".length; "+p+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,p,e.opts.jsonPointers,!0);w=v+"["+p+"]";m.dataPathArr[f]=p;L=e.validate(m);m.baseId=y,e.util.varOccurences(L,g)<2?t+=" "+e.util.varReplace(L,g,w)+" ":t+=" var "+g+" = "+w+"; "+L+" ",c&&(t+=" if (!"+P+") break; "),t+=" }"}return c&&(t+=" "+u+" if ("+n+" == errors) {"),t};export{e as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e,r,a){var t,s=" ",i=e.level,o=e.dataLevel,l=e.schema[r],h=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,d=!e.opts.allErrors,m="data"+(o||""),p=e.opts.$data&&l&&l.$data;if(p?(s+=" var schema"+i+" = "+e.util.getData(l.$data,o,e.dataPathArr)+"; ",t="schema"+i):t=l,!p&&"number"!=typeof l)throw new Error(r+" must be number");s+="var division"+i+";if (",p&&(s+=" "+t+" !== undefined && ( typeof "+t+" != 'number' || "),s+=" (division"+i+" = "+m+" / "+t+", ",e.opts.multipleOfPrecision?s+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":s+=" division"+i+" !== parseInt(division"+i+") ",s+=" ) ",p&&(s+=" ) "),s+=" ) { ";var u=u||[];u.push(s),s="",!1!==e.createErrors?(s+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { multipleOf: "+t+" } ",!1!==e.opts.messages&&(s+=" , message: 'should be multiple of ",s+=p?"' + "+t:t+"'"),e.opts.verbose&&(s+=" , schema: ",s+=p?"validate.schema"+h:""+l,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),s+=" } "):s+=" {} ";var v=s;return s=u.pop(),!e.compositeRule&&d?e.async?s+=" throw new ValidationError(["+v+"]); ":s+=" validate.errors = ["+v+"]; return false; ":s+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",d&&(s+=" else { "),s};export{e as m};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=function(r,e,a){var s=" ",t=r.level,o=r.dataLevel,l=r.schema[e],h=r.schemaPath+r.util.getProperty(e),c=r.errSchemaPath+"/"+e,i=!r.opts.allErrors,v="data"+(o||""),m="errs__"+t,p=r.util.copy(r);p.level++;var u="valid"+p.level;if(r.opts.strictKeywords?"object"==typeof l&&Object.keys(l).length>0||!1===l:r.util.schemaHasRules(l,r.RULES.all)){p.schema=l,p.schemaPath=h,p.errSchemaPath=c,s+=" var "+m+" = errors; ";var d,E=r.compositeRule;r.compositeRule=p.compositeRule=!0,p.createErrors=!1,p.opts.allErrors&&(d=p.opts.allErrors,p.opts.allErrors=!1),s+=" "+r.validate(p)+" ",p.createErrors=!0,d&&(p.opts.allErrors=d),r.compositeRule=p.compositeRule=E,s+=" if ("+u+") { ";var n=n||[];n.push(s),s="",!1!==r.createErrors?(s+=" { keyword: 'not' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(c)+" , params: {} ",!1!==r.opts.messages&&(s+=" , message: 'should NOT be valid' "),r.opts.verbose&&(s+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+v+" "),s+=" } "):s+=" {} ";var P=s;s=n.pop(),!r.compositeRule&&i?r.async?s+=" throw new ValidationError(["+P+"]); ":s+=" validate.errors = ["+P+"]; return false; ":s+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else { errors = "+m+"; if (vErrors !== null) { if ("+m+") vErrors.length = "+m+"; else vErrors = null; } ",r.opts.allErrors&&(s+=" } ")}else s+=" var err = ",!1!==r.createErrors?(s+=" { keyword: 'not' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(c)+" , params: {} ",!1!==r.opts.messages&&(s+=" , message: 'should NOT be valid' "),r.opts.verbose&&(s+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+v+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i&&(s+=" if (false) { ");return s};export{r as n};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e,r,a){var s=" ",t=e.level,l=e.dataLevel,o=e.schema[r],h=e.schemaPath+e.util.getProperty(r),i=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,v="data"+(l||""),m="valid"+t,u="errs__"+t,n=e.util.copy(e),p="";n.level++;var d="valid"+n.level,f=n.baseId,E="prevValid"+t,P="passingSchemas"+t;s+="var "+u+" = errors , "+E+" = false , "+m+" = false , "+P+" = null; ";var g=e.compositeRule;e.compositeRule=n.compositeRule=!0;var y=o;if(y)for(var R,S=-1,b=y.length-1;S<b;)R=y[S+=1],(e.opts.strictKeywords?"object"==typeof R&&Object.keys(R).length>0||!1===R:e.util.schemaHasRules(R,e.RULES.all))?(n.schema=R,n.schemaPath=h+"["+S+"]",n.errSchemaPath=i+"/"+S,s+=" "+e.validate(n)+" ",n.baseId=f):s+=" var "+d+" = true; ",S&&(s+=" if ("+d+" && "+E+") { "+m+" = false; "+P+" = ["+P+", "+S+"]; } else { ",p+="}"),s+=" if ("+d+") { "+m+" = "+E+" = true; "+P+" = "+S+"; }";return e.compositeRule=n.compositeRule=g,s+=p+"if (!"+m+") { var err = ",!1!==e.createErrors?(s+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(i)+" , params: { passingSchemas: "+P+" } ",!1!==e.opts.messages&&(s+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(s+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?s+=" throw new ValidationError(vErrors); ":s+=" validate.errors = vErrors; return false; "),s+="} else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; }",e.opts.allErrors&&(s+=" } "),s};export{e as o};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=function(a,e,t){var r,s=" ",o=a.level,h=a.dataLevel,l=a.schema[e],d=a.schemaPath+a.util.getProperty(e),i=a.errSchemaPath+"/"+e,n=!a.opts.allErrors,p="data"+(h||""),u=a.opts.$data&&l&&l.$data;u?(s+=" var schema"+o+" = "+a.util.getData(l.$data,h,a.dataPathArr)+"; ",r="schema"+o):r=l,s+="if ( ",u&&(s+=" ("+r+" !== undefined && typeof "+r+" != 'string') || "),s+=" !"+(u?"(new RegExp("+r+"))":a.usePattern(l))+".test("+p+") ) { ";var c=c||[];c.push(s),s="",!1!==a.createErrors?(s+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(i)+" , params: { pattern: ",s+=u?""+r:""+a.util.toQuotedString(l),s+=" } ",!1!==a.opts.messages&&(s+=" , message: 'should match pattern \"",s+=u?"' + "+r+" + '":""+a.util.escapeQuotes(l),s+="\"' "),a.opts.verbose&&(s+=" , schema: ",s+=u?"validate.schema"+d:""+a.util.toQuotedString(l),s+=" , parentSchema: validate.schema"+a.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var m=s;return s=c.pop(),!a.compositeRule&&n?a.async?s+=" throw new ValidationError(["+m+"]); ":s+=" validate.errors = ["+m+"]; return false; ":s+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",n&&(s+=" else { "),s};export{a as p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e,r,t){var a=" ",o=e.level,s=e.dataLevel,i=e.schema[r],l=e.schemaPath+e.util.getProperty(r),h=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,n="data"+(s||""),d="errs__"+o,P=e.util.copy(e),c="";P.level++;var u="valid"+P.level,v="key"+o,f="idx"+o,m=P.dataLevel=e.dataLevel+1,g="data"+m,y="dataProperties"+o,b=Object.keys(i||{}).filter(x),j=e.schema.patternProperties||{},O=Object.keys(j).filter(x),S=e.schema.additionalProperties,E=b.length||O.length,R=!1===S,k="object"==typeof S&&Object.keys(S).length,w=e.opts.removeAdditional,_=R||k||w,Q=e.opts.ownProperties,A=e.baseId,D=e.schema.required;if(D&&(!e.opts.$data||!D.$data)&&D.length<e.opts.loopRequired)var q=e.util.toHash(D);function x(e){return"__proto__"!==e}if(a+="var "+d+" = errors;var "+u+" = true;",Q&&(a+=" var "+y+" = undefined;"),_){if(a+=Q?" "+y+" = "+y+" || Object.keys("+n+"); for (var "+f+"=0; "+f+"<"+y+".length; "+f+"++) { var "+v+" = "+y+"["+f+"]; ":" for (var "+v+" in "+n+") { ",E){if(a+=" var isAdditional"+o+" = !(false ",b.length)if(b.length>8)a+=" || validate.schema"+l+".hasOwnProperty("+v+") ";else{var I=b;if(I)for(var L=-1,H=I.length-1;L<H;)M=I[L+=1],a+=" || "+v+" == "+e.util.toQuotedString(M)+" "}if(O.length){var F=O;if(F)for(var K=-1,U=F.length-1;K<U;)se=F[K+=1],a+=" || "+e.usePattern(se)+".test("+v+") "}a+=" ); if (isAdditional"+o+") { "}if("all"==w)a+=" delete "+n+"["+v+"]; ";else{var V=e.errorPath,$="' + "+v+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers)),R)if(w)a+=" delete "+n+"["+v+"]; ";else{a+=" "+u+" = false; ";var N=h;h=e.errSchemaPath+"/additionalProperties",(te=te||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { additionalProperty: '"+$+"' } ",!1!==e.opts.messages&&(a+=" , message: '",e.opts._errorDataPathProperty?a+="is an invalid additional property":a+="should NOT have additional properties",a+="' "),e.opts.verbose&&(a+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+n+" "),a+=" } "):a+=" {} ";var T=a;a=te.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+T+"]); ":a+=" validate.errors = ["+T+"]; return false; ":a+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",h=N,p&&(a+=" break; ")}else if(k)if("failing"==w){a+=" var "+d+" = errors; ";var z=e.compositeRule;e.compositeRule=P.compositeRule=!0,P.schema=S,P.schemaPath=e.schemaPath+".additionalProperties",P.errSchemaPath=e.errSchemaPath+"/additionalProperties",P.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers);var B=n+"["+v+"]";P.dataPathArr[m]=v;var C=e.validate(P);P.baseId=A,e.util.varOccurences(C,g)<2?a+=" "+e.util.varReplace(C,g,B)+" ":a+=" var "+g+" = "+B+"; "+C+" ",a+=" if (!"+u+") { errors = "+d+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+n+"["+v+"]; } ",e.compositeRule=P.compositeRule=z}else{P.schema=S,P.schemaPath=e.schemaPath+".additionalProperties",P.errSchemaPath=e.errSchemaPath+"/additionalProperties",P.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers);B=n+"["+v+"]";P.dataPathArr[m]=v;C=e.validate(P);P.baseId=A,e.util.varOccurences(C,g)<2?a+=" "+e.util.varReplace(C,g,B)+" ":a+=" var "+g+" = "+B+"; "+C+" ",p&&(a+=" if (!"+u+") break; ")}e.errorPath=V}E&&(a+=" } "),a+=" } ",p&&(a+=" if ("+u+") { ",c+="}")}var G=e.opts.useDefaults&&!e.compositeRule;if(b.length){var J=b;if(J)for(var M,W=-1,X=J.length-1;W<X;){var Y=i[M=J[W+=1]];if(e.opts.strictKeywords?"object"==typeof Y&&Object.keys(Y).length>0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all)){var Z=e.util.getProperty(M),ee=(B=n+Z,G&&void 0!==Y.default);P.schema=Y,P.schemaPath=l+Z,P.errSchemaPath=h+"/"+e.util.escapeFragment(M),P.errorPath=e.util.getPath(e.errorPath,M,e.opts.jsonPointers),P.dataPathArr[m]=e.util.toQuotedString(M);C=e.validate(P);if(P.baseId=A,e.util.varOccurences(C,g)<2){C=e.util.varReplace(C,g,B);var re=B}else{re=g;a+=" var "+g+" = "+B+"; "}if(ee)a+=" "+C+" ";else{if(q&&q[M]){a+=" if ( "+re+" === undefined ",Q&&(a+=" || ! Object.prototype.hasOwnProperty.call("+n+", '"+e.util.escapeQuotes(M)+"') "),a+=") { "+u+" = false; ";V=e.errorPath,N=h;var te,ae=e.util.escapeQuotes(M);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(V,M,e.opts.jsonPointers)),h=e.errSchemaPath+"/required",(te=te||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { missingProperty: '"+ae+"' } ",!1!==e.opts.messages&&(a+=" , message: '",e.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+ae+"\\'",a+="' "),e.opts.verbose&&(a+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+n+" "),a+=" } "):a+=" {} ";T=a;a=te.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+T+"]); ":a+=" validate.errors = ["+T+"]; return false; ":a+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",h=N,e.errorPath=V,a+=" } else { "}else p?(a+=" if ( "+re+" === undefined ",Q&&(a+=" || ! Object.prototype.hasOwnProperty.call("+n+", '"+e.util.escapeQuotes(M)+"') "),a+=") { "+u+" = true; } else { "):(a+=" if ("+re+" !== undefined ",Q&&(a+=" && Object.prototype.hasOwnProperty.call("+n+", '"+e.util.escapeQuotes(M)+"') "),a+=" ) { ");a+=" "+C+" } "}}p&&(a+=" if ("+u+") { ",c+="}")}}if(O.length){var oe=O;if(oe)for(var se,ie=-1,le=oe.length-1;ie<le;){Y=j[se=oe[ie+=1]];if(e.opts.strictKeywords?"object"==typeof Y&&Object.keys(Y).length>0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all)){P.schema=Y,P.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(se),P.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(se),a+=Q?" "+y+" = "+y+" || Object.keys("+n+"); for (var "+f+"=0; "+f+"<"+y+".length; "+f+"++) { var "+v+" = "+y+"["+f+"]; ":" for (var "+v+" in "+n+") { ",a+=" if ("+e.usePattern(se)+".test("+v+")) { ",P.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers);B=n+"["+v+"]";P.dataPathArr[m]=v;C=e.validate(P);P.baseId=A,e.util.varOccurences(C,g)<2?a+=" "+e.util.varReplace(C,g,B)+" ":a+=" var "+g+" = "+B+"; "+C+" ",p&&(a+=" if (!"+u+") break; "),a+=" } ",p&&(a+=" else "+u+" = true; "),a+=" } ",p&&(a+=" if ("+u+") { ",c+="}")}}}return p&&(a+=" "+c+" if ("+d+" == errors) {"),a};export{e as p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=function(r,e,a){var t=" ",s=r.level,o=r.dataLevel,l=r.schema[e],v=r.schemaPath+r.util.getProperty(e),i=r.errSchemaPath+"/"+e,c=!r.opts.allErrors,p="data"+(o||""),h="errs__"+s,m=r.util.copy(r);m.level++;var d="valid"+m.level;if(t+="var "+h+" = errors;",r.opts.strictKeywords?"object"==typeof l&&Object.keys(l).length>0||!1===l:r.util.schemaHasRules(l,r.RULES.all)){m.schema=l,m.schemaPath=v,m.errSchemaPath=i;var u="key"+s,n="idx"+s,y="i"+s,E="' + "+u+" + '",P="data"+(m.dataLevel=r.dataLevel+1),f="dataProperties"+s,R=r.opts.ownProperties,b=r.baseId;R&&(t+=" var "+f+" = undefined; "),t+=R?" "+f+" = "+f+" || Object.keys("+p+"); for (var "+n+"=0; "+n+"<"+f+".length; "+n+"++) { var "+u+" = "+f+"["+n+"]; ":" for (var "+u+" in "+p+") { ",t+=" var startErrs"+s+" = errors; ";var g=u,k=r.compositeRule;r.compositeRule=m.compositeRule=!0;var w=r.validate(m);m.baseId=b,r.util.varOccurences(w,P)<2?t+=" "+r.util.varReplace(w,P,g)+" ":t+=" var "+P+" = "+g+"; "+w+" ",r.compositeRule=m.compositeRule=k,t+=" if (!"+d+") { for (var "+y+"=startErrs"+s+"; "+y+"<errors; "+y+"++) { vErrors["+y+"].propertyName = "+u+"; } var err = ",!1!==r.createErrors?(t+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(i)+" , params: { propertyName: '"+E+"' } ",!1!==r.opts.messages&&(t+=" , message: 'property name \\'"+E+"\\' is invalid' "),r.opts.verbose&&(t+=" , schema: validate.schema"+v+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+p+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&c&&(r.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),c&&(t+=" break; "),t+=" } }"}return c&&(t+=" if ("+h+" == errors) {"),t};export{r as p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=function(r,e,a){var s,o,t=" ",i=r.level,l=r.dataLevel,c=r.schema[e],n=r.errSchemaPath+"/"+e,v=!r.opts.allErrors,h="data"+(l||""),f="valid"+i;if("#"==c||"#/"==c)r.isRoot?(s=r.async,o="validate"):(s=!0===r.root.schema.$async,o="root.refVal[0]");else{var d=r.resolveRef(r.baseId,c,r.isRoot);if(void 0===d){var p=r.MissingRefError.message(r.baseId,c);if("fail"==r.opts.missingRefs){r.logger.error(p),(g=g||[]).push(t),t="",!1!==r.createErrors?(t+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(n)+" , params: { ref: '"+r.util.escapeQuotes(c)+"' } ",!1!==r.opts.messages&&(t+=" , message: 'can\\'t resolve reference "+r.util.escapeQuotes(c)+"' "),r.opts.verbose&&(t+=" , schema: "+r.util.toQuotedString(c)+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+h+" "),t+=" } "):t+=" {} ";var m=t;t=g.pop(),!r.compositeRule&&v?r.async?t+=" throw new ValidationError(["+m+"]); ":t+=" validate.errors = ["+m+"]; return false; ":t+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",v&&(t+=" if (false) { ")}else{if("ignore"!=r.opts.missingRefs)throw new r.MissingRefError(r.baseId,c,p);r.logger.warn(p),v&&(t+=" if (true) { ")}}else if(d.inline){var u=r.util.copy(r);u.level++;var E="valid"+u.level;u.schema=d.schema,u.schemaPath="",u.errSchemaPath=c,t+=" "+r.validate(u).replace(/validate\.schema/g,d.code)+" ",v&&(t+=" if ("+E+") { ")}else s=!0===d.$async||r.async&&!1!==d.$async,o=d.code}if(o){var g;(g=g||[]).push(t),t="",r.opts.passContext?t+=" "+o+".call(this, ":t+=" "+o+"( ",t+=" "+h+", (dataPath || '')",'""'!=r.errorPath&&(t+=" + "+r.errorPath);var y=t+=" , "+(l?"data"+(l-1||""):"parentData")+" , "+(l?r.dataPathArr[l]:"parentDataProperty")+", rootData) ";if(t=g.pop(),s){if(!r.async)throw new Error("async schema referenced by sync schema");v&&(t+=" var "+f+"; "),t+=" try { await "+y+"; ",v&&(t+=" "+f+" = true; "),t+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",v&&(t+=" "+f+" = false; "),t+=" } ",v&&(t+=" if ("+f+") { ")}else t+=" if (!"+y+") { if (vErrors === null) vErrors = "+o+".errors; else vErrors = vErrors.concat("+o+".errors); errors = vErrors.length; } ",v&&(t+=" else { ")}return t};export{r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=function(r,e,a){var t=" ",s=r.level,o=r.dataLevel,i=r.schema[e],h=r.schemaPath+r.util.getProperty(e),p=r.errSchemaPath+"/"+e,l=!r.opts.allErrors,d="data"+(o||""),u="valid"+s,P=r.opts.$data&&i&&i.$data;P&&(t+=" var schema"+s+" = "+r.util.getData(i.$data,o,r.dataPathArr)+"; ");var n="schema"+s;if(!P)if(i.length<r.opts.loopRequired&&r.schema.properties&&Object.keys(r.schema.properties).length){var c=[],m=i;if(m)for(var v,y=-1,g=m.length-1;y<g;){v=m[y+=1];var f=r.schema.properties[v];f&&(r.opts.strictKeywords?"object"==typeof f&&Object.keys(f).length>0||!1===f:r.util.schemaHasRules(f,r.RULES.all))||(c[c.length]=v)}}else c=i;if(P||c.length){var E=r.errorPath,q=P||c.length>=r.opts.loopRequired,w=r.opts.ownProperties;if(l)if(t+=" var missing"+s+"; ",q){P||(t+=" var "+n+" = validate.schema"+h+"; ");var b="' + "+(_="schema"+s+"["+(D="i"+s)+"]")+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPathExpr(E,_,r.opts.jsonPointers)),t+=" var "+u+" = true; ",P&&(t+=" if (schema"+s+" === undefined) "+u+" = true; else if (!Array.isArray(schema"+s+")) "+u+" = false; else {"),t+=" for (var "+D+" = 0; "+D+" < "+n+".length; "+D+"++) { "+u+" = "+d+"["+n+"["+D+"]] !== undefined ",w&&(t+=" && Object.prototype.hasOwnProperty.call("+d+", "+n+"["+D+"]) "),t+="; if (!"+u+") break; } ",P&&(t+=" } "),t+=" if (!"+u+") { ",(Q=Q||[]).push(t),t="",!1!==r.createErrors?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+b+"' } ",!1!==r.opts.messages&&(t+=" , message: '",r.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+b+"\\'",t+="' "),r.opts.verbose&&(t+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var S=t;t=Q.pop(),!r.compositeRule&&l?r.async?t+=" throw new ValidationError(["+S+"]); ":t+=" validate.errors = ["+S+"]; return false; ":t+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else{t+=" if ( ";var j=c;if(j)for(var D=-1,O=j.length-1;D<O;){R=j[D+=1],D&&(t+=" || "),t+=" ( ( "+(L=d+($=r.util.getProperty(R)))+" === undefined ",w&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+r.util.escapeQuotes(R)+"') "),t+=") && (missing"+s+" = "+r.util.toQuotedString(r.opts.jsonPointers?R:$)+") ) "}t+=") { ";var Q;b="' + "+(_="missing"+s)+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.opts.jsonPointers?r.util.getPathExpr(E,_,!0):E+" + "+_),(Q=Q||[]).push(t),t="",!1!==r.createErrors?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+b+"' } ",!1!==r.opts.messages&&(t+=" , message: '",r.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+b+"\\'",t+="' "),r.opts.verbose&&(t+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";S=t;t=Q.pop(),!r.compositeRule&&l?r.async?t+=" throw new ValidationError(["+S+"]); ":t+=" validate.errors = ["+S+"]; return false; ":t+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else if(q){P||(t+=" var "+n+" = validate.schema"+h+"; ");var _;b="' + "+(_="schema"+s+"["+(D="i"+s)+"]")+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPathExpr(E,_,r.opts.jsonPointers)),P&&(t+=" if ("+n+" && !Array.isArray("+n+")) { var err = ",!1!==r.createErrors?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+b+"' } ",!1!==r.opts.messages&&(t+=" , message: '",r.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+b+"\\'",t+="' "),r.opts.verbose&&(t+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+n+" !== undefined) { "),t+=" for (var "+D+" = 0; "+D+" < "+n+".length; "+D+"++) { if ("+d+"["+n+"["+D+"]] === undefined ",w&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", "+n+"["+D+"]) "),t+=") { var err = ",!1!==r.createErrors?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+b+"' } ",!1!==r.opts.messages&&(t+=" , message: '",r.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+b+"\\'",t+="' "),r.opts.verbose&&(t+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",P&&(t+=" } ")}else{var k=c;if(k)for(var R,A=-1,x=k.length-1;A<x;){R=k[A+=1];var $=r.util.getProperty(R),L=(b=r.util.escapeQuotes(R),d+$);r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPath(E,R,r.opts.jsonPointers)),t+=" if ( "+L+" === undefined ",w&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+r.util.escapeQuotes(R)+"') "),t+=") { var err = ",!1!==r.createErrors?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+b+"' } ",!1!==r.opts.messages&&(t+=" , message: '",r.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+b+"\\'",t+="' "),r.opts.verbose&&(t+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r.errorPath=E}else l&&(t+=" if (true) {");return t};export{r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e,a,r){var t,i=" ",s=e.level,o=e.dataLevel,m=e.schema[a],l=e.schemaPath+e.util.getProperty(a),c=e.errSchemaPath+"/"+a,u=!e.opts.allErrors,d="data"+(o||""),h="valid"+s,n=e.opts.$data&&m&&m.$data;if(n?(i+=" var schema"+s+" = "+e.util.getData(m.$data,o,e.dataPathArr)+"; ",t="schema"+s):t=m,(m||n)&&!1!==e.opts.uniqueItems){n&&(i+=" var "+h+"; if ("+t+" === false || "+t+" === undefined) "+h+" = true; else if (typeof "+t+" != 'boolean') "+h+" = false; else { "),i+=" var i = "+d+".length , "+h+" = true , j; if (i > 1) { ";var f=e.schema.items&&e.schema.items.type,v=Array.isArray(f);if(!f||"object"==f||"array"==f||v&&(f.indexOf("object")>=0||f.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+h+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var p="checkDataType"+(v?"s":"");i+=" if ("+e.util[p](f,"item",e.opts.strictNumbers,!0)+") continue; ",v&&(i+=" if (typeof item == 'string') item = '\"' + item; "),i+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",n&&(i+=" } "),i+=" if (!"+h+") { ";var y=y||[];y.push(i),i="",!1!==e.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",i+=n?"validate.schema"+l:""+m,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),i+=" } "):i+=" {} ";var j=i;i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+j+"]); ":i+=" validate.errors = ["+j+"]; return false; ":i+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { ")}else u&&(i+=" if (true) { ");return i};export{e as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e,r,a){var t="",s=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),l=e.self._getId(e.schema);if(e.opts.strictKeywords){var i=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(i){var n="unknown keyword: "+i;if("log"!==e.opts.strictKeywords)throw new Error(n);e.logger.warn(n)}}if(e.isTop&&(t+=" var validate = ",s&&(e.async=!0,t+="async "),t+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",l&&(e.opts.sourceCode||e.opts.processCode)&&(t+=" /*# sourceURL="+l+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){r="false schema";var f=e.level,h=e.dataLevel,c=e.schema[r],u=e.schemaPath+e.util.getProperty(r),p=e.errSchemaPath+"/"+r,d=!e.opts.allErrors,m="data"+(h||""),v="valid"+f;if(!1===e.schema){e.isTop?d=!0:t+=" var "+v+" = false; ",(W=W||[]).push(t),t="",!1!==e.createErrors?(t+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ",!1!==e.opts.messages&&(t+=" , message: 'boolean schema is false' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),t+=" } "):t+=" {} ";var y=t;t=W.pop(),!e.compositeRule&&d?e.async?t+=" throw new ValidationError(["+y+"]); ":t+=" validate.errors = ["+y+"]; return false; ":t+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?t+=s?" return data; ":" validate.errors = null; return true; ":t+=" var "+v+" = true; ";return e.isTop&&(t+=" }; return validate; "),t}if(e.isTop){var g=e.isTop;f=e.level=0,h=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var w="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(w);e.logger.warn(w)}t+=" var vErrors = null; ",t+=" var errors = 0; ",t+=" if (rootData === undefined) rootData = data; "}else{f=e.level,m="data"+((h=e.dataLevel)||"");if(l&&(e.baseId=e.resolve.url(e.baseId,l)),s&&!e.async)throw new Error("async schema in sync schema");t+=" var errs_"+f+" = errors;"}v="valid"+f,d=!e.opts.allErrors;var E="",P="",b=e.schema.type,D=Array.isArray(b);if(b&&e.opts.nullable&&!0===e.schema.nullable&&(D?-1==b.indexOf("null")&&(b=b.concat("null")):"null"!=b&&(b=[b,"null"],D=!0)),D&&1==b.length&&(b=b[0],D=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(t+=" "+e.RULES.all.$comment.code(e,"$comment")),b){if(e.opts.coerceTypes)var S=e.util.coerceToTypes(e.opts.coerceTypes,b);var R=e.RULES.types[b];if(S||D||!0===R||R&&!X(R)){u=e.schemaPath+".type",p=e.errSchemaPath+"/type",u=e.schemaPath+".type",p=e.errSchemaPath+"/type";var T=D?"checkDataTypes":"checkDataType";if(t+=" if ("+e.util[T](b,m,e.opts.strictNumbers,!0)+") { ",S){var k="dataType"+f,$="coerced"+f;t+=" var "+k+" = typeof "+m+"; var "+$+" = undefined; ","array"==e.opts.coerceTypes&&(t+=" if ("+k+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+k+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+$+" = "+m+"; } "),t+=" if ("+$+" !== undefined) ; ";var L=S;if(L)for(var j,A=-1,I=L.length-1;A<I;)"string"==(j=L[A+=1])?t+=" else if ("+k+" == 'number' || "+k+" == 'boolean') "+$+" = '' + "+m+"; else if ("+m+" === null) "+$+" = ''; ":"number"==j||"integer"==j?(t+=" else if ("+k+" == 'boolean' || "+m+" === null || ("+k+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==j&&(t+=" && !("+m+" % 1)"),t+=")) "+$+" = +"+m+"; "):"boolean"==j?t+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+$+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+$+" = true; ":"null"==j?t+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+$+" = null; ":"array"==e.opts.coerceTypes&&"array"==j&&(t+=" else if ("+k+" == 'string' || "+k+" == 'number' || "+k+" == 'boolean' || "+m+" == null) "+$+" = ["+m+"]; ");t+=" else { ",(W=W||[]).push(t),t="",!1!==e.createErrors?(t+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",t+=D?""+b.join(","):""+b,t+="' } ",!1!==e.opts.messages&&(t+=" , message: 'should be ",t+=D?""+b.join(","):""+b,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),t+=" } "):t+=" {} ";y=t;t=W.pop(),!e.compositeRule&&d?e.async?t+=" throw new ValidationError(["+y+"]); ":t+=" validate.errors = ["+y+"]; return false; ":t+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } if ("+$+" !== undefined) { ";var U=h?"data"+(h-1||""):"parentData";t+=" "+m+" = "+$+"; ",h||(t+="if ("+U+" !== undefined)"),t+=" "+U+"["+(h?e.dataPathArr[h]:"parentDataProperty")+"] = "+$+"; } "}else{(W=W||[]).push(t),t="",!1!==e.createErrors?(t+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",t+=D?""+b.join(","):""+b,t+="' } ",!1!==e.opts.messages&&(t+=" , message: 'should be ",t+=D?""+b.join(","):""+b,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),t+=" } "):t+=" {} ";y=t;t=W.pop(),!e.compositeRule&&d?e.async?t+=" throw new ValidationError(["+y+"]); ":t+=" validate.errors = ["+y+"]; return false; ":t+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } "}}if(e.schema.$ref&&!o)t+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",d&&(t+=" } if (errors === ",t+=g?"0":"errs_"+f,t+=") { ",P+="}");else{var x=e.RULES;if(x)for(var _=-1,N=x.length-1;_<N;)if(X(R=x[_+=1])){if(R.type&&(t+=" if ("+e.util.checkDataType(R.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==R.type&&e.schema.properties){c=e.schema.properties;var V=Object.keys(c);if(V)for(var O,Q=-1,C=V.length-1;Q<C;){if(void 0!==(H=c[O=V[Q+=1]]).default){var J=m+e.util.getProperty(O);if(e.compositeRule){if(e.opts.strictDefaults){w="default is ignored for: "+J;if("log"!==e.opts.strictDefaults)throw new Error(w);e.logger.warn(w)}}else t+=" if ("+J+" === undefined ","empty"==e.opts.useDefaults&&(t+=" || "+J+" === null || "+J+" === '' "),t+=" ) "+J+" = ","shared"==e.opts.useDefaults?t+=" "+e.useDefault(H.default)+" ":t+=" "+JSON.stringify(H.default)+" ",t+="; "}}}else if("array"==R.type&&Array.isArray(e.schema.items)){var K=e.schema.items;if(K){A=-1;for(var H,q=K.length-1;A<q;)if(void 0!==(H=K[A+=1]).default){J=m+"["+A+"]";if(e.compositeRule){if(e.opts.strictDefaults){w="default is ignored for: "+J;if("log"!==e.opts.strictDefaults)throw new Error(w);e.logger.warn(w)}}else t+=" if ("+J+" === undefined ","empty"==e.opts.useDefaults&&(t+=" || "+J+" === null || "+J+" === '' "),t+=" ) "+J+" = ","shared"==e.opts.useDefaults?t+=" "+e.useDefault(H.default)+" ":t+=" "+JSON.stringify(H.default)+" ",t+="; "}}}var z=R.rules;if(z)for(var B,F=-1,G=z.length-1;F<G;)if(Y(B=z[F+=1])){var M=B.code(e,B.keyword,R.type);M&&(t+=" "+M+" ",d&&(E+="}"))}if(d&&(t+=" "+E+" ",E=""),R.type&&(t+=" } ",b&&b===R.type&&!S)){t+=" else { ";var W;u=e.schemaPath+".type",p=e.errSchemaPath+"/type";(W=W||[]).push(t),t="",!1!==e.createErrors?(t+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",t+=D?""+b.join(","):""+b,t+="' } ",!1!==e.opts.messages&&(t+=" , message: 'should be ",t+=D?""+b.join(","):""+b,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),t+=" } "):t+=" {} ";y=t;t=W.pop(),!e.compositeRule&&d?e.async?t+=" throw new ValidationError(["+y+"]); ":t+=" validate.errors = ["+y+"]; return false; ":t+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } "}d&&(t+=" if (errors === ",t+=g?"0":"errs_"+f,t+=") { ",P+="}")}}function X(e){for(var r=e.rules,a=0;a<r.length;a++)if(Y(r[a]))return!0}function Y(r){return void 0!==e.schema[r.keyword]||r.implements&&function(r){for(var a=r.implements,t=0;t<a.length;t++)if(void 0!==e.schema[a[t]])return!0}(r)}return d&&(t+=" "+P+" "),g?(s?(t+=" if (errors === 0) return data; ",t+=" else throw new ValidationError(vErrors); "):(t+=" validate.errors = vErrors; ",t+=" return errors === 0; "),t+=" }; return validate;"):t+=" var "+v+" = errors === errs_"+f+";",t};export{e as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as r}from"./dotjs/custom.js";import{d as e}from"./definition_schema.js";var t=/^[a-z_$][a-z0-9_$-]*$/i,i=r,o=e,a={add:function(r,e){var o=this.RULES;if(o.keywords[r])throw new Error("Keyword "+r+" is already defined");if(!t.test(r))throw new Error("Keyword "+r+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var a=e.type;if(Array.isArray(a))for(var s=0;s<a.length;s++)d(r,a[s],e);else d(r,a,e);var n=e.metaSchema;n&&(e.$data&&this._opts.$data&&(n={anyOf:[n,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(n,!0))}function d(r,e,t){for(var a,s=0;s<o.length;s++){var n=o[s];if(n.type==e){a=n;break}}a||(a={type:e,rules:[]},o.push(a));var d={keyword:r,definition:t,custom:!0,code:i,implements:t.implements};a.rules.push(d),o.custom[r]=d}return o.keywords[r]=o.all[r]=!0,this},get:function(r){var e=this.RULES.custom[r];return e?e.definition:this.RULES.keywords[r]||!1},remove:function(r){var e=this.RULES;delete e.keywords[r],delete e.all[r],delete e.custom[r];for(var t=0;t<e.length;t++)for(var i=e[t].rules,o=0;o<i.length;o++)if(i[o].keyword==r){i.splice(o,1);break}return this},validate:function r(e,t){r.errors=null;var i=this._validateKeyword=this._validateKeyword||this.compile(o,!0);if(i(e))return!0;if(r.errors=i.errors,t)throw new Error("custom keyword definition is invalid: "+this.errorsText(i.errors));return!1}};export{a as k};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e="http://json-schema.org/draft-07/schema#",a="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",t="Meta-schema for $data reference (JSON Schema extension proposal)",r="object",o=["$data"],s={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},i=!1,n={$schema:e,$id:a,description:t,type:r,required:o,properties:s,additionalProperties:i};export{a as $id,e as $schema,i as additionalProperties,n as default,t as description,s as properties,o as required,r as type};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=function(r,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,e="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(r){return function(t,e){var i={key:t,value:r[t]},o={key:e,value:r[e]};return n(i,o)}}),o=[];return function r(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,u;if(Array.isArray(t)){for(u="[",n=0;n<t.length;n++)n&&(u+=","),u+=r(t[n])||"null";return u+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(e)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var f=o.push(t)-1,c=Object.keys(t).sort(i&&i(t));for(u="",n=0;n<c.length;n++){var l=c[n],y=r(t[l]);y&&(u&&(u+=","),u+=JSON.stringify(l)+":"+y)}return o.splice(f,1),"{"+u+"}"}}(r)};export{r as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__module as e}from"../../../../../_virtual/index2.js";var r=e.exports=function(e,r,o){"function"==typeof r&&(o=r,r={}),i(r,"function"==typeof(o=r.cb||o)?o:o.pre||function(){},o.post||function(){},e,"",e)};function i(e,o,t,n,s,a,p,m,f,y){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var u in o(n,s,a,p,m,f,y),n){var d=n[u];if(Array.isArray(d)){if(u in r.arrayKeywords)for(var l=0;l<d.length;l++)i(e,o,t,d[l],s+"/"+u+"/"+l,a,s,u,n,l)}else if(u in r.propsKeywords){if(d&&"object"==typeof d)for(var c in d)i(e,o,t,d[c],s+"/"+u+"/"+c.replace(/~/g,"~0").replace(/\//g,"~1"),a,s,u,n,c)}else(u in r.keywords||e.allKeys&&!(u in r.skipKeywords))&&i(e,o,t,d,s+"/"+u,a,s,u,n)}t(n,s,a,p,m,f,y)}}r.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},r.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},r.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},r.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var o=e.exports;export{o as j};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{commonjsGlobal as e}from"../../../../../../../_virtual/_commonjsHelpers.js";import{__module as r}from"../../../../../../../_virtual/uri.all.js";
|
|
2
|
+
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */r.exports,function(e){function r(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];if(r.length>1){r[0]=r[0].slice(0,-1);for(var o=r.length-1,n=1;n<o;++n)r[n]=r[n].slice(1,-1);return r[o]=r[o].slice(1),r.join("")}return r[0]}function t(e){return"(?:"+e+")"}function o(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function n(e){return e.toUpperCase()}function a(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function i(e,r){var t=e;if(r)for(var o in r)t[o]=r[o];return t}function s(e){var o="[A-Za-z]",n="[0-9]",a=r(n,"[A-Fa-f]"),i=t(t("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+t("%[89A-Fa-f]"+a+"%"+a+a)+"|"+t("%"+a+a)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",u=r("[\\:\\/\\?\\#\\[\\]\\@]",s),c=e?"[\\uE000-\\uF8FF]":"[]",p=r(o,n,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");t(o+r(o,n,"[\\+\\-\\.]")+"*"),t(t(i+"|"+r(p,s,"[\\:]"))+"*");var h=t(t("25[0-5]")+"|"+t("2[0-4]"+n)+"|"+t("1"+n+n)+"|"+t("0?[1-9]"+n)+"|0?0?"+n),f=t(h+"\\."+h+"\\."+h+"\\."+h),l=t(a+"{1,4}"),v=t(t(l+"\\:"+l)+"|"+f),d=t(t(l+"\\:")+"{6}"+v),m=t("\\:\\:"+t(l+"\\:")+"{5}"+v),g=t(t(l)+"?\\:\\:"+t(l+"\\:")+"{4}"+v),E=t(t(t(l+"\\:")+"{0,1}"+l)+"?\\:\\:"+t(l+"\\:")+"{3}"+v),C=t(t(t(l+"\\:")+"{0,2}"+l)+"?\\:\\:"+t(l+"\\:")+"{2}"+v),y=t(t(t(l+"\\:")+"{0,3}"+l)+"?\\:\\:"+l+"\\:"+v),S=t(t(t(l+"\\:")+"{0,4}"+l)+"?\\:\\:"+v),D=t(t(t(l+"\\:")+"{0,5}"+l)+"?\\:\\:"+l),w=t(t(t(l+"\\:")+"{0,6}"+l)+"?\\:\\:"),A=t([d,m,g,E,C,y,S,D,w].join("|")),b=t(t(p+"|"+i)+"+");t("[vV]"+a+"+\\."+r(p,s,"[\\:]")+"+"),t(t(i+"|"+r(p,s))+"*");var x=t(i+"|"+r(p,s,"[\\:\\@]"));return t(t(i+"|"+r(p,s,"[\\@]"))+"+"),t(t(x+"|"+r("[\\/\\?]",c))+"*"),{NOT_SCHEME:new RegExp(r("[^]",o,n,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",p,s),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",p,s),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",p,s),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",p,s),"g"),NOT_QUERY:new RegExp(r("[^\\%]",p,s,"[\\:\\@\\/\\?]",c),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",p,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",p,s),"g"),UNRESERVED:new RegExp(p,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",p,u),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+f+")$"),IPV6ADDRESS:new RegExp("^\\[?("+A+")"+t(t("\\%25|\\%(?!"+a+"{2})")+"("+b+")")+"?\\]?$")}}var u=s(!1),c=s(!0),p=function(){function e(e,r){var t=[],o=!0,n=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(o=(i=s.next()).done)&&(t.push(i.value),!r||t.length!==r);o=!0);}catch(e){n=!0,a=e}finally{try{!o&&s.return&&s.return()}finally{if(n)throw a}}return t}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(e){if(Array.isArray(e)){for(var r=0,t=Array(e.length);r<e.length;r++)t[r]=e[r];return t}return Array.from(e)},f=2147483647,l=36,v=1,d=26,m=38,g=700,E=72,C=128,y="-",S=/^xn--/,D=/[^\0-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=l-v,x=Math.floor,O=String.fromCharCode;function N(e){throw new RangeError(A[e])}function I(e,r){for(var t=[],o=e.length;o--;)t[o]=r(e[o]);return t}function F(e,r){var t=e.split("@"),o="";return t.length>1&&(o=t[0]+"@",e=t[1]),o+I((e=e.replace(w,".")).split("."),r).join(".")}function _(e){for(var r=[],t=0,o=e.length;t<o;){var n=e.charCodeAt(t++);if(n>=55296&&n<=56319&&t<o){var a=e.charCodeAt(t++);56320==(64512&a)?r.push(((1023&n)<<10)+(1023&a)+65536):(r.push(n),t--)}else r.push(n)}return r}var T=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:l},R=function(e,r){return e+22+75*(e<26)-((0!=r)<<5)},P=function(e,r,t){var o=0;for(e=t?x(e/g):e>>1,e+=x(e/r);e>b*d>>1;o+=l)e=x(e/b);return x(o+(b+1)*e/(e+m))},j=function(e){var r=[],t=e.length,o=0,n=C,a=E,i=e.lastIndexOf(y);i<0&&(i=0);for(var s=0;s<i;++s)e.charCodeAt(s)>=128&&N("not-basic"),r.push(e.charCodeAt(s));for(var u=i>0?i+1:0;u<t;){for(var c=o,p=1,h=l;;h+=l){u>=t&&N("invalid-input");var m=T(e.charCodeAt(u++));(m>=l||m>x((f-o)/p))&&N("overflow"),o+=m*p;var g=h<=a?v:h>=a+d?d:h-a;if(m<g)break;var S=l-g;p>x(f/S)&&N("overflow"),p*=S}var D=r.length+1;a=P(o-c,D,0==c),x(o/D)>f-n&&N("overflow"),n+=x(o/D),o%=D,r.splice(o++,0,n)}return String.fromCodePoint.apply(String,r)},q=function(e){var r=[],t=(e=_(e)).length,o=C,n=0,a=E,i=!0,s=!1,u=void 0;try{for(var c,p=e[Symbol.iterator]();!(i=(c=p.next()).done);i=!0){var h=c.value;h<128&&r.push(O(h))}}catch(e){s=!0,u=e}finally{try{!i&&p.return&&p.return()}finally{if(s)throw u}}var m=r.length,g=m;for(m&&r.push(y);g<t;){var S=f,D=!0,w=!1,A=void 0;try{for(var b,I=e[Symbol.iterator]();!(D=(b=I.next()).done);D=!0){var F=b.value;F>=o&&F<S&&(S=F)}}catch(e){w=!0,A=e}finally{try{!D&&I.return&&I.return()}finally{if(w)throw A}}var T=g+1;S-o>x((f-n)/T)&&N("overflow"),n+=(S-o)*T,o=S;var j=!0,q=!1,H=void 0;try{for(var U,z=e[Symbol.iterator]();!(j=(U=z.next()).done);j=!0){var L=U.value;if(L<o&&++n>f&&N("overflow"),L==o){for(var $=n,V=l;;V+=l){var M=V<=a?v:V>=a+d?d:V-a;if($<M)break;var k=$-M,Z=l-M;r.push(O(R(M+k%Z,0))),$=x(k/Z)}r.push(O(R($,0))),a=P(n,T,g==m),n=0,++g}}}catch(e){q=!0,H=e}finally{try{!j&&z.return&&z.return()}finally{if(q)throw H}}++n,++o}return r.join("")},H=function(e){return F(e,(function(e){return S.test(e)?j(e.slice(4).toLowerCase()):e}))},U=function(e){return F(e,(function(e){return D.test(e)?"xn--"+q(e):e}))},z={version:"2.1.0",ucs2:{decode:_,encode:function(e){return String.fromCodePoint.apply(String,h(e))}},decode:j,encode:q,toASCII:U,toUnicode:H},L={};function $(e){var r=e.charCodeAt(0);return r<16?"%0"+r.toString(16).toUpperCase():r<128?"%"+r.toString(16).toUpperCase():r<2048?"%"+(r>>6|192).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase():"%"+(r>>12|224).toString(16).toUpperCase()+"%"+(r>>6&63|128).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase()}function V(e){for(var r="",t=0,o=e.length;t<o;){var n=parseInt(e.substr(t+1,2),16);if(n<128)r+=String.fromCharCode(n),t+=3;else if(n>=194&&n<224){if(o-t>=6){var a=parseInt(e.substr(t+4,2),16);r+=String.fromCharCode((31&n)<<6|63&a)}else r+=e.substr(t,6);t+=6}else if(n>=224){if(o-t>=9){var i=parseInt(e.substr(t+4,2),16),s=parseInt(e.substr(t+7,2),16);r+=String.fromCharCode((15&n)<<12|(63&i)<<6|63&s)}else r+=e.substr(t,9);t+=9}else r+=e.substr(t,3),t+=3}return r}function M(e,r){function t(e){var t=V(e);return t.match(r.UNRESERVED)?t:e}return e.scheme&&(e.scheme=String(e.scheme).replace(r.PCT_ENCODED,t).toLowerCase().replace(r.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(r.PCT_ENCODED,t).replace(r.NOT_USERINFO,$).replace(r.PCT_ENCODED,n)),void 0!==e.host&&(e.host=String(e.host).replace(r.PCT_ENCODED,t).toLowerCase().replace(r.NOT_HOST,$).replace(r.PCT_ENCODED,n)),void 0!==e.path&&(e.path=String(e.path).replace(r.PCT_ENCODED,t).replace(e.scheme?r.NOT_PATH:r.NOT_PATH_NOSCHEME,$).replace(r.PCT_ENCODED,n)),void 0!==e.query&&(e.query=String(e.query).replace(r.PCT_ENCODED,t).replace(r.NOT_QUERY,$).replace(r.PCT_ENCODED,n)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(r.PCT_ENCODED,t).replace(r.NOT_FRAGMENT,$).replace(r.PCT_ENCODED,n)),e}function k(e){return e.replace(/^0*(.*)/,"$1")||"0"}function Z(e,r){var t=e.match(r.IPV4ADDRESS)||[],o=p(t,2)[1];return o?o.split(".").map(k).join("."):e}function G(e,r){var t=e.match(r.IPV6ADDRESS)||[],o=p(t,3),n=o[1],a=o[2];if(n){for(var i=n.toLowerCase().split("::").reverse(),s=p(i,2),u=s[0],c=s[1],h=c?c.split(":").map(k):[],f=u.split(":").map(k),l=r.IPV4ADDRESS.test(f[f.length-1]),v=l?7:8,d=f.length-v,m=Array(v),g=0;g<v;++g)m[g]=h[g]||f[d+g]||"";l&&(m[v-1]=Z(m[v-1],r));var E=m.reduce((function(e,r,t){if(!r||"0"===r){var o=e[e.length-1];o&&o.index+o.length===t?o.length++:e.push({index:t,length:1})}return e}),[]).sort((function(e,r){return r.length-e.length}))[0],C=void 0;if(E&&E.length>1){var y=m.slice(0,E.index),S=m.slice(E.index+E.length);C=y.join(":")+"::"+S.join(":")}else C=m.join(":");return a&&(C+="%"+a),C}return e}var Q=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Y=void 0==="".match(/(){0}/)[1];function B(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t={},o=!1!==r.iri?c:u;"suffix"===r.reference&&(e=(r.scheme?r.scheme+":":"")+"//"+e);var n=e.match(Q);if(n){Y?(t.scheme=n[1],t.userinfo=n[3],t.host=n[4],t.port=parseInt(n[5],10),t.path=n[6]||"",t.query=n[7],t.fragment=n[8],isNaN(t.port)&&(t.port=n[5])):(t.scheme=n[1]||void 0,t.userinfo=-1!==e.indexOf("@")?n[3]:void 0,t.host=-1!==e.indexOf("//")?n[4]:void 0,t.port=parseInt(n[5],10),t.path=n[6]||"",t.query=-1!==e.indexOf("?")?n[7]:void 0,t.fragment=-1!==e.indexOf("#")?n[8]:void 0,isNaN(t.port)&&(t.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?n[4]:void 0)),t.host&&(t.host=G(Z(t.host,o),o)),void 0!==t.scheme||void 0!==t.userinfo||void 0!==t.host||void 0!==t.port||t.path||void 0!==t.query?void 0===t.scheme?t.reference="relative":void 0===t.fragment?t.reference="absolute":t.reference="uri":t.reference="same-document",r.reference&&"suffix"!==r.reference&&r.reference!==t.reference&&(t.error=t.error||"URI is not a "+r.reference+" reference.");var a=L[(r.scheme||t.scheme||"").toLowerCase()];if(r.unicodeSupport||a&&a.unicodeSupport)M(t,o);else{if(t.host&&(r.domainHost||a&&a.domainHost))try{t.host=z.toASCII(t.host.replace(o.PCT_ENCODED,V).toLowerCase())}catch(e){t.error=t.error||"Host's domain name can not be converted to ASCII via punycode: "+e}M(t,u)}a&&a.parse&&a.parse(t,r)}else t.error=t.error||"URI can not be parsed.";return t}function J(e,r){var t=!1!==r.iri?c:u,o=[];return void 0!==e.userinfo&&(o.push(e.userinfo),o.push("@")),void 0!==e.host&&o.push(G(Z(String(e.host),t),t).replace(t.IPV6ADDRESS,(function(e,r,t){return"["+r+(t?"%25"+t:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(o.push(":"),o.push(String(e.port))),o.length?o.join(""):void 0}var K=/^\.\.?\//,W=/^\/\.(\/|$)/,X=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function re(e){for(var r=[];e.length;)if(e.match(K))e=e.replace(K,"");else if(e.match(W))e=e.replace(W,"/");else if(e.match(X))e=e.replace(X,"/"),r.pop();else if("."===e||".."===e)e="";else{var t=e.match(ee);if(!t)throw new Error("Unexpected dot segment condition");var o=t[0];e=e.slice(o.length),r.push(o)}return r.join("")}function te(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=r.iri?c:u,o=[],n=L[(r.scheme||e.scheme||"").toLowerCase()];if(n&&n.serialize&&n.serialize(e,r),e.host)if(t.IPV6ADDRESS.test(e.host));else if(r.domainHost||n&&n.domainHost)try{e.host=r.iri?z.toUnicode(e.host):z.toASCII(e.host.replace(t.PCT_ENCODED,V).toLowerCase())}catch(t){e.error=e.error||"Host's domain name can not be converted to "+(r.iri?"Unicode":"ASCII")+" via punycode: "+t}M(e,t),"suffix"!==r.reference&&e.scheme&&(o.push(e.scheme),o.push(":"));var a=J(e,r);if(void 0!==a&&("suffix"!==r.reference&&o.push("//"),o.push(a),e.path&&"/"!==e.path.charAt(0)&&o.push("/")),void 0!==e.path){var i=e.path;r.absolutePath||n&&n.absolutePath||(i=re(i)),void 0===a&&(i=i.replace(/^\/\//,"/%2F")),o.push(i)}return void 0!==e.query&&(o.push("?"),o.push(e.query)),void 0!==e.fragment&&(o.push("#"),o.push(e.fragment)),o.join("")}function oe(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={};return arguments[3]||(e=B(te(e,t),t),r=B(te(r,t),t)),!(t=t||{}).tolerant&&r.scheme?(o.scheme=r.scheme,o.userinfo=r.userinfo,o.host=r.host,o.port=r.port,o.path=re(r.path||""),o.query=r.query):(void 0!==r.userinfo||void 0!==r.host||void 0!==r.port?(o.userinfo=r.userinfo,o.host=r.host,o.port=r.port,o.path=re(r.path||""),o.query=r.query):(r.path?("/"===r.path.charAt(0)?o.path=re(r.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path:o.path=r.path:o.path="/"+r.path,o.path=re(o.path)),o.query=r.query):(o.path=e.path,void 0!==r.query?o.query=r.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=r.fragment,o}function ne(e,r,t){var o=i({scheme:"null"},t);return te(oe(B(e,o),B(r,o),o,!0),o)}function ae(e,r){return"string"==typeof e?e=te(B(e,r),r):"object"===o(e)&&(e=B(te(e,r),r)),e}function ie(e,r,t){return"string"==typeof e?e=te(B(e,t),t):"object"===o(e)&&(e=te(e,t)),"string"==typeof r?r=te(B(r,t),t):"object"===o(r)&&(r=te(r,t)),e===r}function se(e,r){return e&&e.toString().replace(r&&r.iri?c.ESCAPE:u.ESCAPE,$)}function ue(e,r){return e&&e.toString().replace(r&&r.iri?c.PCT_ENCODED:u.PCT_ENCODED,V)}var ce={scheme:"http",domainHost:!0,parse:function(e,r){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,r){var t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},pe={scheme:"https",domainHost:ce.domainHost,parse:ce.parse,serialize:ce.serialize};function he(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var fe={scheme:"ws",domainHost:!0,parse:function(e,r){var t=e;return t.secure=he(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t},serialize:function(e,r){if(e.port!==(he(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var t=e.resourceName.split("?"),o=p(t,2),n=o[0],a=o[1];e.path=n&&"/"!==n?n:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},le={scheme:"wss",domainHost:fe.domainHost,parse:fe.parse,serialize:fe.serialize},ve={},de="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",me="[0-9A-Fa-f]",ge=t(t("%[EFef]"+me+"%"+me+me+"%"+me+me)+"|"+t("%[89A-Fa-f]"+me+"%"+me+me)+"|"+t("%"+me+me)),Ee="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Ce=r("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),ye="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Se=new RegExp(de,"g"),De=new RegExp(ge,"g"),we=new RegExp(r("[^]",Ee,"[\\.]",'[\\"]',Ce),"g"),Ae=new RegExp(r("[^]",de,ye),"g"),be=Ae;function xe(e){var r=V(e);return r.match(Se)?r:e}var Oe={scheme:"mailto",parse:function(e,r){var t=e,o=t.to=t.path?t.path.split(","):[];if(t.path=void 0,t.query){for(var n=!1,a={},i=t.query.split("&"),s=0,u=i.length;s<u;++s){var c=i[s].split("=");switch(c[0]){case"to":for(var p=c[1].split(","),h=0,f=p.length;h<f;++h)o.push(p[h]);break;case"subject":t.subject=ue(c[1],r);break;case"body":t.body=ue(c[1],r);break;default:n=!0,a[ue(c[0],r)]=ue(c[1],r)}}n&&(t.headers=a)}t.query=void 0;for(var l=0,v=o.length;l<v;++l){var d=o[l].split("@");if(d[0]=ue(d[0]),r.unicodeSupport)d[1]=ue(d[1],r).toLowerCase();else try{d[1]=z.toASCII(ue(d[1],r).toLowerCase())}catch(e){t.error=t.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}o[l]=d.join("@")}return t},serialize:function(e,r){var t=e,o=a(e.to);if(o){for(var i=0,s=o.length;i<s;++i){var u=String(o[i]),c=u.lastIndexOf("@"),p=u.slice(0,c).replace(De,xe).replace(De,n).replace(we,$),h=u.slice(c+1);try{h=r.iri?z.toUnicode(h):z.toASCII(ue(h,r).toLowerCase())}catch(e){t.error=t.error||"Email address's domain name can not be converted to "+(r.iri?"Unicode":"ASCII")+" via punycode: "+e}o[i]=p+"@"+h}t.path=o.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var l=[];for(var v in f)f[v]!==ve[v]&&l.push(v.replace(De,xe).replace(De,n).replace(Ae,$)+"="+f[v].replace(De,xe).replace(De,n).replace(be,$));return l.length&&(t.query=l.join("&")),t}},Ne=/^([^\:]+)\:(.*)/,Ie={scheme:"urn",parse:function(e,r){var t=e.path&&e.path.match(Ne),o=e;if(t){var n=r.scheme||o.scheme||"urn",a=t[1].toLowerCase(),i=t[2],s=n+":"+(r.nid||a),u=L[s];o.nid=a,o.nss=i,o.path=void 0,u&&(o=u.parse(o,r))}else o.error=o.error||"URN can not be parsed.";return o},serialize:function(e,r){var t=r.scheme||e.scheme||"urn",o=e.nid,n=t+":"+(r.nid||o),a=L[n];a&&(e=a.serialize(e,r));var i=e,s=e.nss;return i.path=(o||r.nid)+":"+s,i}},Fe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,_e={scheme:"urn:uuid",parse:function(e,r){var t=e;return t.uuid=t.nss,t.nss=void 0,r.tolerant||t.uuid&&t.uuid.match(Fe)||(t.error=t.error||"UUID is not valid."),t},serialize:function(e,r){var t=e;return t.nss=(e.uuid||"").toLowerCase(),t}};L[ce.scheme]=ce,L[pe.scheme]=pe,L[fe.scheme]=fe,L[le.scheme]=le,L[Oe.scheme]=Oe,L[Ie.scheme]=Ie,L[_e.scheme]=_e,e.SCHEMES=L,e.pctEncChar=$,e.pctDecChars=V,e.parse=B,e.removeDotSegments=re,e.serialize=te,e.resolveComponents=oe,e.resolve=ne,e.normalize=ae,e.equal=ie,e.escapeComponent=se,e.unescapeComponent=ue,Object.defineProperty(e,"__esModule",{value:!0})}(r.exports);var t=r.exports;export{t as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{util as s}from"./helpers/util.js";const t=s.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class e extends Error{get errors(){return this.issues}constructor(s){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=s}format(s){const t=s||function(s){return s.message},e={_errors:[]},r=s=>{for(const i of s.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)e._errors.push(t(i));else{let s=e,r=0;for(;r<i.path.length;){const e=i.path[r];r===i.path.length-1?(s[e]=s[e]||{_errors:[]},s[e]._errors.push(t(i))):s[e]=s[e]||{_errors:[]},s=s[e],r++}}};return r(this),e}static assert(s){if(!(s instanceof e))throw new Error(`Not a ZodError: ${s}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,s.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(s=s=>s.message){const t={},e=[];for(const r of this.issues)if(r.path.length>0){const e=r.path[0];t[e]=t[e]||[],t[e].push(s(r))}else e.push(s(r));return{formErrors:e,fieldErrors:t}}get formErrors(){return this.flatten()}}e.create=s=>new e(s);export{e as ZodError,t as ZodIssueCode};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./locales/en.js";export{default as defaultErrorMap}from"./locales/en.js";let r=e;function o(){return r}export{o as getErrorMap};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(e||(e={}));export{e as errorUtil};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getErrorMap as t}from"../errors.js";import a from"../locales/en.js";const e=t=>{const{data:a,path:e,errorMaps:s,issueData:r}=t,o=[...e,...r.path||[]],u={...r,path:o};if(void 0!==r.message)return{...r,path:o,message:r.message};let i="";const n=s.filter((t=>!!t)).slice().reverse();for(const t of n)i=t(u,{data:a,defaultError:i}).message;return{...r,path:o,message:i}};function s(s,r){const o=t(),u=e({issueData:r,data:s.data,path:s.path,errorMaps:[s.common.contextualErrorMap,s.schemaErrorMap,o,o===a?void 0:a].filter((t=>!!t))});s.common.issues.push(u)}class r{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(t,a){const e=[];for(const s of a){if("aborted"===s.status)return o;"dirty"===s.status&&t.dirty(),e.push(s.value)}return{status:t.value,value:e}}static async mergeObjectAsync(t,a){const e=[];for(const t of a){const a=await t.key,s=await t.value;e.push({key:a,value:s})}return r.mergeObjectSync(t,e)}static mergeObjectSync(t,a){const e={};for(const s of a){const{key:a,value:r}=s;if("aborted"===a.status)return o;if("aborted"===r.status)return o;"dirty"===a.status&&t.dirty(),"dirty"===r.status&&t.dirty(),"__proto__"===a.value||void 0===r.value&&!s.alwaysSet||(e[a.value]=r.value)}return{status:t.value,value:e}}}const o=Object.freeze({status:"aborted"}),u=t=>({status:"dirty",value:t}),i=t=>({status:"valid",value:t}),n=t=>"aborted"===t.status,c=t=>"dirty"===t.status,l=t=>"valid"===t.status,d=t=>"undefined"!=typeof Promise&&t instanceof Promise;export{u as DIRTY,o as INVALID,i as OK,r as ParseStatus,s as addIssueToContext,n as isAborted,d as isAsync,c as isDirty,l as isValid,e as makeIssue};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,n;!function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const n={};for(const t of e)n[t]=t;return n},e.getValidEnumValues=n=>{const t=e.objectKeys(n).filter((e=>"number"!=typeof n[n[e]])),r={};for(const e of t)r[e]=n[e];return e.objectValues(r)},e.objectValues=n=>e.objectKeys(n).map((function(e){return n[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const n=[];for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n},e.find=(e,n)=>{for(const t of e)if(n(t))return t},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,n=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(n)},e.jsonStringifyReplacer=(e,n)=>"bigint"==typeof n?n.toString():n}(e||(e={})),function(e){e.mergeShapes=(e,n)=>({...e,...n})}(n||(n={}));const t=e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),r=e=>{switch(typeof e){case"undefined":return t.undefined;case"string":return t.string;case"number":return Number.isNaN(e)?t.nan:t.number;case"boolean":return t.boolean;case"function":return t.function;case"bigint":return t.bigint;case"symbol":return t.symbol;case"object":return Array.isArray(e)?t.array:null===e?t.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?t.promise:"undefined"!=typeof Map&&e instanceof Map?t.map:"undefined"!=typeof Set&&e instanceof Set?t.set:"undefined"!=typeof Date&&e instanceof Date?t.date:t.object;default:return t.unknown}};export{t as ZodParsedType,r as getParsedType,n as objectUtil,e as util};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ZodIssueCode as e}from"../ZodError.js";import{util as t,ZodParsedType as a}from"../helpers/util.js";var i=(i,n)=>{let r;switch(i.code){case e.invalid_type:r=i.received===a.undefined?"Required":`Expected ${i.expected}, received ${i.received}`;break;case e.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(i.expected,t.jsonStringifyReplacer)}`;break;case e.unrecognized_keys:r=`Unrecognized key(s) in object: ${t.joinValues(i.keys,", ")}`;break;case e.invalid_union:r="Invalid input";break;case e.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${t.joinValues(i.options)}`;break;case e.invalid_enum_value:r=`Invalid enum value. Expected ${t.joinValues(i.options)}, received '${i.received}'`;break;case e.invalid_arguments:r="Invalid function arguments";break;case e.invalid_return_type:r="Invalid function return type";break;case e.invalid_date:r="Invalid date";break;case e.invalid_string:"object"==typeof i.validation?"includes"in i.validation?(r=`Invalid input: must include "${i.validation.includes}"`,"number"==typeof i.validation.position&&(r=`${r} at one or more positions greater than or equal to ${i.validation.position}`)):"startsWith"in i.validation?r=`Invalid input: must start with "${i.validation.startsWith}"`:"endsWith"in i.validation?r=`Invalid input: must end with "${i.validation.endsWith}"`:t.assertNever(i.validation):r="regex"!==i.validation?`Invalid ${i.validation}`:"Invalid";break;case e.too_small:r="array"===i.type?`Array must contain ${i.exact?"exactly":i.inclusive?"at least":"more than"} ${i.minimum} element(s)`:"string"===i.type?`String must contain ${i.exact?"exactly":i.inclusive?"at least":"over"} ${i.minimum} character(s)`:"number"===i.type||"bigint"===i.type?`Number must be ${i.exact?"exactly equal to ":i.inclusive?"greater than or equal to ":"greater than "}${i.minimum}`:"date"===i.type?`Date must be ${i.exact?"exactly equal to ":i.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(i.minimum))}`:"Invalid input";break;case e.too_big:r="array"===i.type?`Array must contain ${i.exact?"exactly":i.inclusive?"at most":"less than"} ${i.maximum} element(s)`:"string"===i.type?`String must contain ${i.exact?"exactly":i.inclusive?"at most":"under"} ${i.maximum} character(s)`:"number"===i.type?`Number must be ${i.exact?"exactly":i.inclusive?"less than or equal to":"less than"} ${i.maximum}`:"bigint"===i.type?`BigInt must be ${i.exact?"exactly":i.inclusive?"less than or equal to":"less than"} ${i.maximum}`:"date"===i.type?`Date must be ${i.exact?"exactly":i.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(i.maximum))}`:"Invalid input";break;case e.custom:r="Invalid input";break;case e.invalid_intersection_types:r="Intersection results could not be merged";break;case e.not_multiple_of:r=`Number must be a multiple of ${i.multipleOf}`;break;case e.not_finite:r="Number must be finite";break;default:r=n.defaultError,t.assertNever(i)}return{message:r}};export{i as default};
|