arktype 1.1.0-dev-1 → 2.0.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__tests__/array.test.ts +272 -0
- package/__tests__/astUtils.test.ts +17 -0
- package/__tests__/badDefinitionType.test.ts +51 -0
- package/__tests__/basis.test.ts +46 -0
- package/__tests__/bounds.test.ts +388 -0
- package/__tests__/cast.test.ts +32 -0
- package/__tests__/completions.test.ts +46 -0
- package/__tests__/config.test.ts +168 -0
- package/__tests__/cyclic.test.ts +144 -0
- package/__tests__/dateLiteral.test.ts +32 -0
- package/__tests__/declared.test.ts +123 -0
- package/__tests__/discrimination.test.ts +74 -0
- package/__tests__/divisor.test.ts +90 -0
- package/__tests__/enclosed.test.ts +93 -0
- package/__tests__/examples.test.ts +56 -0
- package/__tests__/expressions.test.ts +138 -0
- package/__tests__/generateBenchData.ts +89 -0
- package/__tests__/generated/cyclic.ts +3058 -0
- package/__tests__/generic.test.ts +294 -0
- package/__tests__/group.test.ts +72 -0
- package/__tests__/hkt.test.ts +22 -0
- package/__tests__/imports.test.ts +113 -0
- package/__tests__/instanceof.test.ts +102 -0
- package/__tests__/intersection.test.ts +104 -0
- package/__tests__/jsdoc.test.ts +64 -0
- package/__tests__/keyTraversal.test.ts +73 -0
- package/__tests__/keyof.test.ts +134 -0
- package/__tests__/keywords.test.ts +188 -0
- package/__tests__/literal.test.ts +51 -0
- package/__tests__/match.test.ts +34 -0
- package/__tests__/methods.bench.ts +22 -0
- package/__tests__/morph.test.ts +409 -0
- package/__tests__/narrow.test.ts +102 -0
- package/__tests__/nodeDefinitions.test.ts +190 -0
- package/__tests__/object.bench.ts +28 -0
- package/__tests__/objectLiteral.test.ts +300 -0
- package/__tests__/operand.bench.ts +45 -0
- package/__tests__/operator.bench.ts +130 -0
- package/__tests__/regex.test.ts +58 -0
- package/__tests__/scope.bench.ts +39 -0
- package/__tests__/scope.test.ts +140 -0
- package/__tests__/string.test.ts +48 -0
- package/__tests__/submodule.test.ts +99 -0
- package/__tests__/this.test.ts +57 -0
- package/__tests__/thunk.test.ts +80 -0
- package/__tests__/traverse.test.ts +119 -0
- package/__tests__/tsGenerics.test.ts +12 -0
- package/__tests__/typeMethods.test.ts +69 -0
- package/__tests__/typeReference.test.ts +39 -0
- package/__tests__/unenclosed.test.ts +120 -0
- package/__tests__/union.test.ts +147 -0
- package/ark.ts +91 -0
- package/main.ts +18 -0
- package/match.ts +116 -0
- package/out/ark.d.ts +52 -0
- package/out/ark.d.ts.map +1 -0
- package/out/ark.js +19 -0
- package/out/ark.js.map +1 -0
- package/out/arkConfig.d.ts +2 -0
- package/out/arkConfig.d.ts.map +1 -0
- package/out/arkConfig.js +10 -0
- package/out/arkConfig.js.map +1 -0
- package/out/main.d.ts +7 -0
- package/out/main.d.ts.map +1 -0
- package/out/main.js +4 -0
- package/out/main.js.map +1 -0
- package/out/match.d.ts +48 -0
- package/out/match.d.ts.map +1 -0
- package/out/match.js +18 -0
- package/out/match.js.map +1 -0
- package/out/parser/definition.d.ts +32 -0
- package/out/parser/definition.d.ts.map +1 -0
- package/out/parser/definition.js +32 -0
- package/out/parser/definition.js.map +1 -0
- package/out/parser/generic.d.ts +18 -0
- package/out/parser/generic.d.ts.map +1 -0
- package/out/parser/generic.js +19 -0
- package/out/parser/generic.js.map +1 -0
- package/out/parser/objectLiteral.d.ts +33 -0
- package/out/parser/objectLiteral.d.ts.map +1 -0
- package/out/parser/objectLiteral.js +66 -0
- package/out/parser/objectLiteral.js.map +1 -0
- package/out/parser/semantic/bounds.d.ts +13 -0
- package/out/parser/semantic/bounds.d.ts.map +1 -0
- package/out/parser/semantic/bounds.js +2 -0
- package/out/parser/semantic/bounds.js.map +1 -0
- package/out/parser/semantic/divisor.d.ts +9 -0
- package/out/parser/semantic/divisor.d.ts.map +1 -0
- package/out/parser/semantic/divisor.js +2 -0
- package/out/parser/semantic/divisor.js.map +1 -0
- package/out/parser/semantic/intersections.d.ts +14 -0
- package/out/parser/semantic/intersections.d.ts.map +1 -0
- package/out/parser/semantic/intersections.js +2 -0
- package/out/parser/semantic/intersections.js.map +1 -0
- package/out/parser/semantic/semantic.d.ts +33 -0
- package/out/parser/semantic/semantic.d.ts.map +1 -0
- package/out/parser/semantic/semantic.js +2 -0
- package/out/parser/semantic/semantic.js.map +1 -0
- package/out/parser/semantic/utils.d.ts +8 -0
- package/out/parser/semantic/utils.d.ts.map +1 -0
- package/out/parser/semantic/utils.js +2 -0
- package/out/parser/semantic/utils.js.map +1 -0
- package/out/parser/semantic/validate.d.ts +24 -0
- package/out/parser/semantic/validate.d.ts.map +1 -0
- package/out/parser/semantic/validate.js +2 -0
- package/out/parser/semantic/validate.js.map +1 -0
- package/out/parser/shared.d.ts +54 -0
- package/out/parser/shared.d.ts.map +1 -0
- package/out/parser/shared.js +47 -0
- package/out/parser/shared.js.map +1 -0
- package/out/parser/string/reduce/dynamic.d.ts +42 -0
- package/out/parser/string/reduce/dynamic.d.ts.map +1 -0
- package/out/parser/string/reduce/dynamic.js +133 -0
- package/out/parser/string/reduce/dynamic.js.map +1 -0
- package/out/parser/string/reduce/shared.d.ts +56 -0
- package/out/parser/string/reduce/shared.d.ts.map +1 -0
- package/out/parser/string/reduce/shared.js +26 -0
- package/out/parser/string/reduce/shared.js.map +1 -0
- package/out/parser/string/reduce/static.d.ts +176 -0
- package/out/parser/string/reduce/static.d.ts.map +1 -0
- package/out/parser/string/reduce/static.js +2 -0
- package/out/parser/string/reduce/static.js.map +1 -0
- package/out/parser/string/shift/operand/date.d.ts +11 -0
- package/out/parser/string/shift/operand/date.d.ts.map +1 -0
- package/out/parser/string/shift/operand/date.js +26 -0
- package/out/parser/string/shift/operand/date.js.map +1 -0
- package/out/parser/string/shift/operand/enclosed.d.ts +49 -0
- package/out/parser/string/shift/operand/enclosed.d.ts.map +1 -0
- package/out/parser/string/shift/operand/enclosed.js +50 -0
- package/out/parser/string/shift/operand/enclosed.js.map +1 -0
- package/out/parser/string/shift/operand/genericArgs.d.ts +29 -0
- package/out/parser/string/shift/operand/genericArgs.d.ts.map +1 -0
- package/out/parser/string/shift/operand/genericArgs.js +25 -0
- package/out/parser/string/shift/operand/genericArgs.js.map +1 -0
- package/out/parser/string/shift/operand/operand.d.ts +9 -0
- package/out/parser/string/shift/operand/operand.d.ts.map +1 -0
- package/out/parser/string/shift/operand/operand.js +17 -0
- package/out/parser/string/shift/operand/operand.js.map +1 -0
- package/out/parser/string/shift/operand/unenclosed.d.ts +34 -0
- package/out/parser/string/shift/operand/unenclosed.d.ts.map +1 -0
- package/out/parser/string/shift/operand/unenclosed.js +68 -0
- package/out/parser/string/shift/operand/unenclosed.js.map +1 -0
- package/out/parser/string/shift/operator/bounds.d.ts +33 -0
- package/out/parser/string/shift/operator/bounds.d.ts.map +1 -0
- package/out/parser/string/shift/operator/bounds.js +106 -0
- package/out/parser/string/shift/operator/bounds.js.map +1 -0
- package/out/parser/string/shift/operator/divisor.d.ts +9 -0
- package/out/parser/string/shift/operator/divisor.d.ts.map +1 -0
- package/out/parser/string/shift/operator/divisor.js +13 -0
- package/out/parser/string/shift/operator/divisor.js.map +1 -0
- package/out/parser/string/shift/operator/operator.d.ts +13 -0
- package/out/parser/string/shift/operator/operator.d.ts.map +1 -0
- package/out/parser/string/shift/operator/operator.js +29 -0
- package/out/parser/string/shift/operator/operator.js.map +1 -0
- package/out/parser/string/shift/scanner.d.ts +71 -0
- package/out/parser/string/shift/scanner.d.ts.map +1 -0
- package/out/parser/string/shift/scanner.js +99 -0
- package/out/parser/string/shift/scanner.js.map +1 -0
- package/out/parser/string/string.d.ts +24 -0
- package/out/parser/string/string.d.ts.map +1 -0
- package/out/parser/string/string.js +23 -0
- package/out/parser/string/string.js.map +1 -0
- package/out/parser/tuple.d.ts +71 -0
- package/out/parser/tuple.d.ts.map +1 -0
- package/out/parser/tuple.js +137 -0
- package/out/parser/tuple.js.map +1 -0
- package/out/scope.d.ts +159 -0
- package/out/scope.d.ts.map +1 -0
- package/out/scope.js +253 -0
- package/out/scope.js.map +1 -0
- package/out/test.d.ts +2 -0
- package/out/test.d.ts.map +1 -0
- package/out/test.js +7 -0
- package/out/test.js.map +1 -0
- package/out/tsconfig.build.tsbuildinfo +1 -0
- package/out/type.d.ts +77 -0
- package/out/type.d.ts.map +1 -0
- package/out/type.js +134 -0
- package/out/type.js.map +1 -0
- package/out/util.d.ts +19 -0
- package/out/util.d.ts.map +1 -0
- package/out/util.js +7 -0
- package/out/util.js.map +1 -0
- package/package.json +13 -10
- package/parser/definition.ts +159 -0
- package/parser/generic.ts +68 -0
- package/parser/objectLiteral.ts +197 -0
- package/parser/semantic/bounds.ts +61 -0
- package/parser/semantic/divisor.ts +13 -0
- package/parser/semantic/intersections.ts +46 -0
- package/parser/semantic/semantic.ts +144 -0
- package/parser/semantic/utils.ts +26 -0
- package/parser/semantic/validate.ts +109 -0
- package/parser/shared.ts +152 -0
- package/parser/string/reduce/dynamic.ts +196 -0
- package/parser/string/reduce/shared.ts +101 -0
- package/parser/string/reduce/static.ts +298 -0
- package/parser/string/shift/operand/date.ts +54 -0
- package/parser/string/shift/operand/enclosed.ts +118 -0
- package/parser/string/shift/operand/genericArgs.ts +127 -0
- package/parser/string/shift/operand/operand.ts +48 -0
- package/parser/string/shift/operand/unenclosed.ts +268 -0
- package/parser/string/shift/operator/bounds.ts +264 -0
- package/parser/string/shift/operator/divisor.ts +36 -0
- package/parser/string/shift/operator/operator.ts +82 -0
- package/parser/string/shift/scanner.ts +209 -0
- package/parser/string/string.ts +90 -0
- package/parser/tuple.ts +474 -0
- package/scope.ts +574 -0
- package/type.ts +347 -0
- package/util.ts +36 -0
- package/dist/main.d.ts +0 -1018
- package/dist/main.js +0 -1450
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../util/out/errors.d.ts","../../util/out/functions.d.ts","../../util/out/lists.d.ts","../../util/out/unionToTuple.d.ts","../../util/out/generics.d.ts","../../util/out/domain.d.ts","../../util/out/hkt.d.ts","../../util/out/records.d.ts","../../util/out/intersections.d.ts","../../util/out/lazily.d.ts","../../util/out/map.d.ts","../../util/out/numericLiterals.d.ts","../../util/out/objectKinds.d.ts","../../util/out/serialize.d.ts","../../util/out/main.d.ts","../../schema/out/shared/intersect.d.ts","../../schema/out/types/domain.d.ts","../../schema/out/types/basis.d.ts","../../schema/out/types/intersection.d.ts","../../schema/out/shared/context.d.ts","../../schema/out/shared/problems.d.ts","../../schema/out/types/morph.d.ts","../../schema/out/types/discriminate.d.ts","../../schema/out/types/union.d.ts","../../schema/out/types/type.d.ts","../../schema/out/types/unit.d.ts","../../schema/out/shared/disjoint.d.ts","../../schema/out/shared/declare.d.ts","../../schema/out/types/proto.d.ts","../../schema/out/refinements/shared.d.ts","../../schema/out/refinements/sequence.d.ts","../../schema/out/keywords/keywords.d.ts","../../schema/out/inference.d.ts","../../schema/out/scope.d.ts","../../schema/out/parse.d.ts","../../schema/out/shared/define.d.ts","../../schema/out/refinements/bounds.d.ts","../../schema/out/refinements/divisor.d.ts","../../schema/out/refinements/index.d.ts","../../schema/out/refinements/optional.d.ts","../../schema/out/refinements/pattern.d.ts","../../schema/out/refinements/predicate.d.ts","../../schema/out/refinements/required.d.ts","../../schema/out/refinements/refinement.d.ts","../../schema/out/kinds.d.ts","../../schema/out/base.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/globals.global.d.ts","../../../node_modules/.pnpm/@types+node@20.10.2/node_modules/@types/node/index.d.ts","../../schema/out/keywords/parsing.d.ts","../../schema/out/refinements/prop.d.ts","../../schema/out/shared/registry.d.ts","../../schema/out/main.d.ts","../parser/string/reduce/shared.ts","../parser/string/shift/scanner.ts","../parser/string/reduce/static.ts","../parser/string/shift/operand/date.ts","../parser/string/shift/operand/enclosed.ts","../parser/semantic/intersections.ts","../parser/semantic/semantic.ts","../parser/string/string.ts","../util.ts","../parser/string/shift/operand/genericArgs.ts","../parser/string/shift/operand/unenclosed.ts","../parser/string/shift/operand/operand.ts","../parser/string/reduce/dynamic.ts","../parser/semantic/utils.ts","../parser/string/shift/operator/bounds.ts","../parser/string/shift/operator/divisor.ts","../parser/string/shift/operator/operator.ts","../parser/generic.ts","../parser/semantic/bounds.ts","../parser/semantic/divisor.ts","../parser/semantic/validate.ts","../parser/shared.ts","../parser/tuple.ts","../type.ts","../parser/objectLiteral.ts","../parser/definition.ts","../scope.ts","../match.ts","../ark.ts","../main.ts","../../../node_modules/.pnpm/@types+mocha@10.0.6/node_modules/@types/mocha/index.d.ts"],"fileInfos":[{"version":"f33e5332b24c3773e930e212cbb8b6867c8ba3ec4492064ea78e55a524d57450","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"26f2f787e82c4222710f3b676b4d83eb5ad0a72fa7b746f03449e7a026ce5073","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","impliedFormat":1},{"version":"1c0cdb8dc619bc549c3e5020643e7cf7ae7940058e8c7e5aefa5871b6d86f44b","impliedFormat":1},{"version":"bed7b7ba0eb5a160b69af72814b4dde371968e40b6c5e73d3a9f7bee407d158c","impliedFormat":1},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true,"impliedFormat":1},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true,"impliedFormat":1},{"version":"e0275cd0e42990dc3a16f0b7c8bca3efe87f1c8ad404f80c6db1c7c0b828c59f","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true,"impliedFormat":1},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true,"impliedFormat":1},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true,"impliedFormat":1},{"version":"acae90d417bee324b1372813b5a00829d31c7eb670d299cd7f8f9a648ac05688","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true,"impliedFormat":1},{"version":"62a4966981264d1f04c44eb0f4b5bdc3d81c1a54725608861e44755aa24ad6a5","affectsGlobalScope":true,"impliedFormat":1},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true,"impliedFormat":1},{"version":"86a34c7a13de9cabc43161348f663624b56871ed80986e41d214932ddd8d6719","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true,"impliedFormat":1},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true,"impliedFormat":1},{"version":"4350e5922fecd4bedda2964d69c213a1436349d0b8d260dd902795f5b94dc74b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"72bd65e9a204cef158954ec39085f2a792ef4eb0c10ab194801d7481f5d1e878","impliedFormat":99},{"version":"7ddcb29cf0c2c80ad39ebd75f3ad68e6d4c2768881f932f50e83e5c4a8be6d53","impliedFormat":99},{"version":"ced3c3b4d96d0b8660b42da2be584fd86ebd421c13d1af8df2e6208bb581ead7","impliedFormat":99},{"version":"0a2c06e189f6e73560b1dccf47686b4b1081372d4285fc7c69b65817736ca73f","impliedFormat":99},{"version":"9168d625c650811212f725859cb3935d95177060dbbf19a709650b7e995cac84","impliedFormat":99},{"version":"c13c673590aa8bd2f8708e77ad90c07831530d4c89e19c2d9bf6872e4b5c470a","impliedFormat":99},{"version":"4447cd09936ebec5b0e42a23b1e05176cc6b18f182f9331dc553bc5b5f55614e","impliedFormat":99},{"version":"97f0c5a2a2c5a160ab8ffed56b8872e3797dfdfd992e9e8f81f9bc6715454a52","impliedFormat":99},{"version":"a8559abb6623b89dae07a9d0e49463f6d05e9b193286ed1d4c0ee9c45865d26e","impliedFormat":99},{"version":"95b1b0e297c1e55a9c6f5cfb429d756c8a1fed7896b768255f1396aa3ae64295","impliedFormat":99},{"version":"939334ae15f063a18a9605b7c2bbf53c84647c463ac933aa730b7c54e8424ce9","impliedFormat":99},{"version":"4347f3f435cf5f940ef13bba8af0a2b10be6b9c0cc1bb846eee481cfe7fc5384","impliedFormat":99},{"version":"bbed5fc0a4d83958c75f66cce9115a2c2e4e7e35a562801d7ddfdb77e2a5ee39","impliedFormat":99},{"version":"384d8bc0592b9758f794bd62f136c4a3e156dbce4c4a7230fbad39408613bd2d","impliedFormat":99},{"version":"48057b5c597f77de8af12d971ea83e263137822462aa04cbfe494e20561db3e4","impliedFormat":99},{"version":"63f8aebd97063cf8099fa09b81d9860068596893ac8b9ba470025dd3e59c428b","impliedFormat":99},{"version":"cf32e13c35c96ed4f7cefb9ab8a05f6584fcdcac175c374041285bb532ae6e2a","impliedFormat":99},{"version":"13a5f7ab16c36f3f6b099668a91a8649b8bcb69f06eaa26625dfa76079b223eb","impliedFormat":99},{"version":"f926f9db65f275e2151e3d87e13610bea412bf73b153d0e247e122540c83d2b6","impliedFormat":99},{"version":"79ac0986cb20948b6fcf600f65ea934ec9ac9d6517cc01abbd3917e29c137606","impliedFormat":99},{"version":"f12cce822dc120a8060456c176faa502f1ca2a6c34072f7db15db4f8e678dd9f","impliedFormat":99},{"version":"5d4aaff6bbeab2f381e3240afd3634c8bd84f60e0cfb28398bc5c136b25e0a47","impliedFormat":99},{"version":"988ead1351fd4ada340d41edbe5e5889b38063b9a16c5511571b2a3e5297af24","impliedFormat":99},{"version":"adb1b85409f93a61ab3bd56b7d669b5bf48a65b5dd25e12f71a7b566fe3ab7ca","impliedFormat":99},{"version":"640126109cc61d278d7677af89bc8593c8920403dcbced7b8823a878f4595221","impliedFormat":99},{"version":"b65f1fe965604c8af50279b01f8a53c27fb950f340775191f7032566635d7f62","impliedFormat":99},{"version":"b5619fb08e0b47bc70a93ed1adf703948b3136f94eca3b0df7b1f1a460bd0764","impliedFormat":99},{"version":"7edb61b2bdb83fc0ebbd4646655d8fc26b30312d9fca79f3300e2b50336ba191","impliedFormat":99},{"version":"52ba9cad0d128cf9d1f207c01d882dd7ed3a9a650c59cb9c26c4f9c4cbf25e5d","impliedFormat":99},{"version":"678b44bd5f78cc1229a1a15e48dfc472459eaa5e1bf29d920d60d8c9f16f15f2","impliedFormat":99},{"version":"20ea72a563eb12b457684655dba6abfb4d45c3269ff58e7c5d60fe73c5c222dd","impliedFormat":99},{"version":"699b93720a38b74fa87cde48a336c32e7e1de5668bf82cb2f7b3eae2e735483b","impliedFormat":99},{"version":"72f6d11dae15f93af408f39e0dbe65697841ba67dc03039744910befa4cb3552","impliedFormat":99},{"version":"3e7e94118dff057af00d9ec0a52e641acda7cb49cbf929779b7d45beeeff49b6","impliedFormat":99},{"version":"4deebdcb8b78e3d93ad0cd54655c0a8de35fca98fab6d869853bd0d2528dbc19","impliedFormat":99},{"version":"5e5df1799e35eaf86faad00a35af802cc5e244ef9b9ddce8ac7c2ee6c37efb5d","impliedFormat":99},{"version":"18dd4bcc487c1185c1767f3b13390b2d2ae65a30a0d460b83c2164ba53a52cbc","impliedFormat":99},{"version":"019ad29e53be0ecb961418afa2becc7280153b45a15490023fe83c9a24296242","impliedFormat":99},{"version":"04416f2bc50c538694c32c72462bb1a212cd73678f98f69f8170b98ee869843e","impliedFormat":99},{"version":"daf5fffb1ea2df4ec624ea24f6f7e96f6f215a139c7ad1ee1e1651dda95f0d29","impliedFormat":99},{"version":"197b42dfb0e7fcf8a0ac1b7717c34102b49c96eda9b5538f841803d603e71981","impliedFormat":99},{"version":"5367d2f6ebca1617d3529cb7dd1d07636c4b774bbc4256abaee615ba6fbddad3","impliedFormat":99},{"version":"1632679ea56a8f7fc242391452baccef6f30da57a9b827e4ad1f31bcc3d56417","impliedFormat":99},{"version":"8ea48c4e0b132597c4433e361e309beeccd9664117a0b6a84724223bb8d243eb","impliedFormat":99},{"version":"e44900d286e1a0e0d9d5f0d5c7cab27e9bc89970e29dec8f83ce2d3e8e1f9cbd","impliedFormat":99},{"version":"9f183773fe7aac41aa728980593fe411616a3fa07fb79c55a66028f7a1ec0cbf","impliedFormat":99},{"version":"efc7d584a33fe3422847783d228f315c4cd1afe74bd7cf8e3f0e4c1125129fef","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","impliedFormat":1},{"version":"3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","impliedFormat":1},{"version":"e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","impliedFormat":1},{"version":"471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","impliedFormat":1},{"version":"c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","impliedFormat":1},{"version":"40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","impliedFormat":1},{"version":"339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","impliedFormat":1},{"version":"9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","impliedFormat":1},{"version":"8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","impliedFormat":1},{"version":"4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1","impliedFormat":1},{"version":"cc5e65fb1729463665074b9d7163e78a4225b7af7f3a6b3c74492f415166612f","affectsGlobalScope":true,"impliedFormat":1},{"version":"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c","impliedFormat":1},{"version":"185282b122cbca820c297a02a57b89cf5967ab43e220e3e174d872d3f9a94d2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"16d74fe4d8e183344d3beb15d48b123c5980ff32ff0cc8c3b96614ddcdf9b239","impliedFormat":1},{"version":"7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba","impliedFormat":1},{"version":"41fb2a1c108fbf46609ce5a451b7ec78eb9b5ada95fd5b94643e4b26397de0b3","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"e8968b394e4365588f8f89cfff86435258cf10062585c1d2224627ab92acda22","impliedFormat":1},{"version":"285e512c7a0db217a0599e18c462d565fa35be4a5153dd7b80bee88c83e83ddf","impliedFormat":1},{"version":"b5b719a47968cd61a6f83f437236bb6fe22a39223b6620da81ef89f5d7a78fb7","impliedFormat":1},{"version":"8806ae97308ef26363bd7ec8071bca4d07fb575f905ee3d8a91aff226df6d618","impliedFormat":1},{"version":"af5bf1db6f1804fb0069039ae77a05d60133c77a2158d9635ea27b6bb2828a8f","impliedFormat":1},{"version":"b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e","impliedFormat":1},{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ae9dc7dbb58cd843065639707815df85c044babaa0947116f97bdb824d07204","affectsGlobalScope":true,"impliedFormat":1},{"version":"7aae1df2053572c2cfc2089a77847aadbb38eedbaa837a846c6a49fb37c6e5bd","impliedFormat":1},{"version":"313a0b063f5188037db113509de1b934a0e286f14e9479af24fada241435e707","impliedFormat":1},{"version":"1f758340b027b18ae8773ac3d33a60648a2af49eaae9e4fde18d0a0dd608642c","impliedFormat":1},{"version":"87ef1a23caa071b07157c72077fa42b86d30568f9dc9e31eed24d5d14fc30ba8","impliedFormat":1},{"version":"396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","impliedFormat":1},{"version":"21773f5ac69ddf5a05636ba1f50b5239f4f2d27e4420db147fc2f76a5ae598ac","impliedFormat":1},{"version":"dea4c00820d4fac5e530d4842aed2fb20d6744d75a674b95502cbd433f88bcb0","affectsGlobalScope":true,"impliedFormat":1},{"version":"a5fe4cc622c3bf8e09ababde5f4096ceac53163eefcd95e9cd53f062ff9bb67a","impliedFormat":1},{"version":"45b1053e691c5af9bfe85060a3e1542835f8d84a7e6e2e77ca305251eda0cb3c","impliedFormat":1},{"version":"0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7","impliedFormat":1},{"version":"0d832a0650a74aafc276cb3f7bb26bde2e2270a6f87e6c871a64122e9203079b","affectsGlobalScope":true,"impliedFormat":1},{"version":"c6f3869f12bb5c3bb8ecd0b050ea20342b89b944eae18d313cde6b0ccc0925d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8abd0566d2854c4bd1c5e48e05df5c74927187f1541e6770001d9637ac41542e","impliedFormat":1},{"version":"d742ed2db6d5425b3b6ac5fb1f2e4b1ed2ae74fbeee8d0030d852121a4b05d2f","impliedFormat":1},{"version":"d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","impliedFormat":1},{"version":"8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","impliedFormat":1},{"version":"01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","impliedFormat":1},{"version":"458b216959c231df388a5de9dcbcafd4b4ca563bc3784d706d0455467d7d4942","impliedFormat":1},{"version":"269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"f8c87b19eae111f8720b0345ab301af8d81add39621b63614dfc2d15fd6f140a","impliedFormat":1},{"version":"831c22d257717bf2cbb03afe9c4bcffc5ccb8a2074344d4238bf16d3a857bb12","impliedFormat":1},{"version":"2225100373ca3d63bcc7f206e1177152d2e2161285a0bd83c8374db1503a0d1f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7052b7b0c3829df3b4985bab2fd74531074b4835d5a7b263b75c82f0916ad62f","affectsGlobalScope":true,"impliedFormat":1},{"version":"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","impliedFormat":1},{"version":"eefcdf86cefff36e5d87de36a3638ab5f7d16c2b68932be4a72c14bb924e43c1","impliedFormat":1},{"version":"7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","impliedFormat":1},{"version":"7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df","impliedFormat":1},{"version":"4d0405568cf6e0ff36a4861c4a77e641366feaefa751600b0a4d12a5e8f730a8","affectsGlobalScope":true,"impliedFormat":1},{"version":"0ed13c80faeb2b7160bffb4926ff299c468e67a37a645b3ae0917ba0db633c1b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e393915d3dc385e69c0e2390739c87b2d296a610662eb0b1cb85224e55992250","impliedFormat":1},{"version":"79bad8541d5779c85e82a9fb119c1fe06af77a71cc40f869d62ad379473d4b75","impliedFormat":1},{"version":"4a34b074b11c3597fb2ff890bc8f1484375b3b80793ab01f974534808d5777c7","impliedFormat":1},{"version":"629d20681ca284d9e38c0a019f647108f5fe02f9c59ac164d56f5694fc3faf4d","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795","impliedFormat":1},{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},{"version":"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","impliedFormat":1},{"version":"fea2c1202eca0ebbda92e0d005a8113d7c4861de75e9176863241069c5539e66","impliedFormat":99},{"version":"779e51f1672e422a56c2400c427a8aa55ede49029f5ed98b97e13df71597484a","impliedFormat":99},{"version":"046b0da9d0354eae28c974f90478e5dd255bd99fb3a179f41efa058fcf322f95","affectsGlobalScope":true,"impliedFormat":99},{"version":"095c7d689c626531c22aa5c45e5663ec61226654b75ae35011ba4651e830752e","impliedFormat":99},{"version":"c9c716454449f4bb2d2ba13919275641b16dd41c633e4d356e169dc9d197c2aa","signature":"401546fa910c6f56513d934b489d91fa668050cb5ebbce76df3ca4c0fad3909d","impliedFormat":99},{"version":"46743737fe10052a016da622885df89487df1be0a7350a8cd72f0a15eae2af0b","signature":"b9378ab1720e0fb425556d722e906d118d7b334e8c35f37b20e87c39c24f08c1","impliedFormat":99},{"version":"c2941a5af4ffcf280352c01d9faeab84d4dffa95e105b5559698986006fb5645","signature":"ab2e496d9f95ed3be635bdcd0db6e07f05575b1e7a93c6de8049b639ea5db3dc","impliedFormat":99},{"version":"b64226674deade45cbb2da86535c6c8a54816582bb6b8b12a182a20f4382c7d7","signature":"ab25312c73c1abe21e8bedafa5a6dcfcf0a474b55562bcbb44c5098fc9288fcc","impliedFormat":99},{"version":"bed3be456facc8eb60e67b0d0f83fe5ad008a8c704cb38159da55e27829fef0b","signature":"5ab6b3a0c0aeda1b7fa0a4568bba605dfa94c896cfc697c4f10c6bdad2a7745c","impliedFormat":99},{"version":"6985b0795f0a262a34342d90e59777a0bca626f5551b64a6276ba86fc24bb3c6","signature":"205b97f43676e9d666f4fbc8b16bd97f0d87f01a94c9c647df2935e9b85fd37e","impliedFormat":99},{"version":"66cdf7103b3636c42ed6f45aec1738f5e09070ca61a404aad09f8fded85b5012","signature":"78ba6c40e7ae58b2906ee33b71a0990ce8303efcdff16e4ba7238258c529ada6","impliedFormat":99},{"version":"8012436cb8814a7dcc334ed3bcee14fe8b7bf214bacf01232a73689dd9a89733","signature":"9234f7148bf9c8eb6a3f7a4be5e0630813f4353da6ea43690c993610bf0ada02","impliedFormat":99},{"version":"faaf5a418e260f8e703634798d93cf99bcf8485b45bfbe4d71ae19751cbcfbd7","signature":"882ec0504cdd21f6b81f03b9da8ab0c3242eb494a004dba7ad8fd9ce663cab47","impliedFormat":99},{"version":"834e42fefcb1648dbccb62fe4a3e1fffad07bc1b3788b97cd5cc31b9ca9d389e","signature":"7f7448cd91b9400df76e2d374598347ee1b9c5e777bc08e0a25ebdf2c56f047a","impliedFormat":99},{"version":"06ac56881dc1278eb89bddcd57b517c6dafd0519b0cba0aa50144e2ad24eac91","signature":"26ae99a6a02e2fd56ddf591ed90e42176493fe3afb9015320fec565de7491836","impliedFormat":99},{"version":"f5b6512314dc873a1c6634c5578f1474da905093264e7af62215979c7ca96c9b","signature":"80df1d19d4a866c8a3fd9da42bb2b83b500a695d88d5ef2b5d43bdda6a88d637","impliedFormat":99},{"version":"17a67e39b7904be4b52530901dbfa99ac9a8248d27daa66f45d9adec177687aa","signature":"b3db98e2e43e96c297e61c81348eb419bd22caf16ad5dd06522eddb26ae836bb","impliedFormat":99},{"version":"356e47d97ffab89a2d58821fa996f584dfad408fa57a2df284c1abead3690109","signature":"c94cc71e7c6befef357e4f91310ede32f54561e0e026b2637fa02bc6ed407902","impliedFormat":99},{"version":"8e0e79c908bd6f8781a860b73247939d8fb05639d842958be3323f11a205cb35","signature":"29aa3708d134e4c84960ea9ba9d1666fb4f861560cbb0fa3d90acd5cac701aae","impliedFormat":99},{"version":"b3401bcb9b895001080a4f47815ae59c18f675315be67e11a561d9fe1f0590b7","signature":"cf085c213364fa5f5b7eba50904840c5bf7cd2937fd53bc57a3dd92d42781651","impliedFormat":99},{"version":"ce598ed1d9df538146e31bcd4b60b6fabe83bee42793dfe23ff60e7e216375ed","signature":"469c1e33bd91254017e1da2bba70f8b0ec5a3f5c923452d53cb282c2c347658c","impliedFormat":99},{"version":"1ce5dd0bdf42949380c01da7da55e97307e91fe04aa6c6eda665be1a53e9b99a","signature":"0d1f7a2d2e462e9612c988377b20ca7885705406abadd88832c04d4a316db626","impliedFormat":99},{"version":"6dffe88616c4ddc8ff012a2a90d6f31d3f740c874a17a2db479bb50b56e1bc3b","signature":"71a1187b3ad081f6952b1a1083b39f36500f3204db6ad3dfcd9bbe47d8268c75","impliedFormat":99},{"version":"83ffd22d57318dd751df540a1c7479cb5c4e166accb2fea979da4756fa07cf15","signature":"f2b24434f0b1b149c54375bf09a6c2ffcfe69ef9e33e9b519a70f009ca256db1","impliedFormat":99},{"version":"3d042cd316f0a09bd65c78296aa70d4a12d41ef5a113e60d580670740379a264","signature":"556e78ee5fd251cd4b47b6855fe9f5d04bb57e13133988bbc5553f8f53d58e5c","impliedFormat":99},{"version":"4c90126578e8a5c490e203d17af0939f39a421b481d67dc8a2b812426cb71b68","signature":"ccc759d5b39130c9a2f5621a253b2f4f32d5393558b4918813a1d57b1ca15920","impliedFormat":99},{"version":"2efb46c788337df60e8b1ff47598c85690b3ab80804c0fcfee076099574ea061","signature":"23118a588e97fbaa28c1e619d123d104e194a0f82f89857aa3613e4c0b1d3be4","impliedFormat":99},{"version":"771a693238c13b9f65160ad21de3966fdc6457ea0e1cf6fcf5ff798b166982cf","signature":"d35165b628941e9dedc02e060ce59acf1f1df85672b6e18426f51c854fb7565c","impliedFormat":99},{"version":"c226f160a4a053ce4175bcfe9e6e4c436fc364ff9e803c4025f9763b33174afe","signature":"30414379b748a8aaf30c0f5ae52b4b38ec0aa834680c42e0ebe4d970f87bde33","impliedFormat":99},{"version":"7fa06b4bc07383281956f3bee91c62855fd5423bab54a9b0afc54ee8585560e6","signature":"d574755e7f51693a71cdb1fb5b1babd1488c4c09011cb4475b1d47c608003eb2","impliedFormat":99},{"version":"cc492b1cb4fc40db7917334c3d7d18b0ce717c0e3a7f65a5f69d274b2df3627b","signature":"f1d24bca16bc0d591f33bb25ad4936ae6f5af318da40e79ad70d107751ba4b87","impliedFormat":99},{"version":"a6b99f99b1450d3e0c64f9feff4c8b96d3a683bc828125031aff4fb0c8731bf4","signature":"4ec1dbf133dd94d37872b6f39e88dcc3ff965d6fa9c786360cfef1f6a1ad2c64","impliedFormat":99},{"version":"ac09a15019a3303bb52000bc03658a3325ae98fd5c62066a1416e8ffd7ba4406","signature":"e2c92123c0b1674eaafad1245e09324f10eeb851953d334e16025551efbff021","impliedFormat":99},{"version":"289c7c04868d75370c994a504062458755f9894fee575eed714985cae8db4011","signature":"e06399314a5816026afaa0096db9f0827c55c61ca38200dfe833ebeb57307f6c","impliedFormat":99},{"version":"0ea93d01083b3d5863cc98cb589b5d0eac55d14417487f9e5e455dfa0b17c660","affectsGlobalScope":true,"impliedFormat":1}],"root":[[201,230]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"jsx":2,"module":199,"noErrorTruncation":true,"noFallthroughCasesInSwitch":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":9},"fileIdsList":[[78,79,80,81,82,84,85,87,89,90,91,92,94,97,99,100,101,102,103,104,105,106,108,189],[78,80,81,82,85,87,95,99,108,109,189],[78,80,89,92,94,96,97,99,108,109,189,200],[85,97,109,189,196],[78,80,81,82,85,87,89,91,92,94,99,102,103,106,107,189,200],[82,84,85,86,87,88,90,91,95,97,99,100,101,104,105,107,108,109,189,197,198,199],[78,97,99,108,109,189],[78,79,90,91,93,97,99,108,109,189],[79,91,93,97,99,189],[79,90,91,93,97,99,109,189],[79,91,93,97,99,109,189],[78,79,91,93,97,99,189],[79,83,84,91,93,97,99,189],[94,102,103,106,189],[78,94,99,100,101,102,103,104,105,106,108,189],[81,91,97,109,189],[78,80,83,84,86,87,89,92,94,95,96,98,99,108,109,189,200],[84,189],[78,79,90,99,108,109,189],[78,91,97,98,109,189],[78,79,80,89,92,99,109,189,200],[91,99,108,109,189],[78,83,189],[189],[78,80,89,92,99,108,189],[78,87,189],[79,88,90,91,97,99,189],[78,79,81,88,90,91,97,98,99,107,108,109,189],[78,79,81,84,88,90,91,97,99,107,108,109,189],[78,79,88,90,91,97,99,189],[78,79,82,85,87,90,91,99,108,109,189],[79,85,86,88,90,91,97,99,108,109,189],[189,200,224,227,228],[189,200,224,227,229],[78,189,200,224,227],[78,189,200,208,221,223,224,225,227,229],[78,189,202,217],[78,189,200,221,222,226,227],[78,189,200,201,207,214,215,221],[78,189,200,207,214,221],[78,189,200],[78,189,200,201,205,206,224,226,227],[78,189,201,207],[78,189,200,201,207,208,210,211,214,219,220,224,227],[78,189,202,226],[78,189,200,201,202,208,212,217,227],[189,200],[78,189,201,202],[78,189,200,202,203,204,213],[78,189,200,201,203,208,213],[189,202,203,205,208,211,213],[78,189,200,202,203,207,208,209,210,213,224,227],[78,189,200,201,202,203,204,212,213,214],[78,189,202,203,213],[78,189,202,203,213,215,216],[78,189,201],[78,189,201,203,207,212,213,217],[78,189,200,206,207,208,211,221,222,226,227],[78,189,200,208,209,211,213,218,224,226,228,229],[78,189,200,206,209,218,223,226,227],[189,224,227],[68,189],[64,67,189],[65,68,189],[68,69,70,71,189],[64,65,66,67,68,69,70,71,72,73,74,75,76,77,189],[66,67,68,71,189],[65,68,69,189],[66,69,75,189],[65,66,68,189],[110,189],[146,189],[147,152,180,189],[148,159,160,167,177,188,189],[148,149,159,167,189],[150,189],[151,152,160,168,189],[152,177,185,189],[153,155,159,167,189],[154,189],[155,156,189],[159,189],[157,159,189],[146,159,189],[159,160,161,177,188,189],[159,160,161,174,177,180,189],[144,147,189,193],[155,159,162,167,177,188,189],[159,160,162,163,167,177,185,188,189],[162,164,177,185,188,189],[110,111,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195],[159,165,189],[166,188,189,193],[155,159,167,177,189],[168,189],[169,189],[146,170,189],[171,187,189,193],[172,189],[173,189],[159,174,175,189],[174,176,189,191],[147,159,177,178,179,180,189],[147,177,179,189],[177,178,189],[180,189],[181,189],[146,177,189],[159,183,184,189],[183,184,189],[152,167,177,185,189],[186,189],[167,187,189],[147,162,173,188,189],[152,189],[177,189,190],[166,189,191],[189,192],[147,152,159,161,170,177,188,189,191,193],[177,189,194],[121,125,188,189],[121,177,188,189],[116,189],[118,121,185,188,189],[167,185,189],[189,196],[116,189,196],[118,121,167,188,189],[113,114,117,120,147,159,177,188,189],[113,119,189],[117,121,147,180,188,189,196],[147,189,196],[137,147,189,196],[115,116,189,196],[121,189],[115,116,117,118,119,120,121,122,123,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,189],[121,128,129,189],[119,121,129,130,189],[120,189],[113,116,121,189],[121,125,129,130,189],[125,189],[119,121,124,188,189],[113,118,119,121,125,128,189],[147,177,189],[116,121,137,147,189,193,196],[200,224,227,228],[200,224,227,229],[78,224,227],[78,200,208,221,223,225,227,229],[78,202,217],[78,200,221,222,226,227],[78,200,201,207,214,215,221],[78,200,207,214,221],[78,200],[78,200,201,205,206,224,226,227],[78,201,207],[78,201,207,208,210,211,214,219,220,224,227],[78,202,226],[78,200,201,202,227],[200],[78,201,202],[202,203,213],[78,200,201,203,208,213],[202,203,205,208,211,213],[78,200,202,203,207,208,210,213,224,227],[78,200,201,202,203,212,213,214],[78,202,203,213],[202,203,213,215,216],[78,201],[78,80,89,92,200,201,203,207,212,213,217],[78,200,206,207,208,211,222,226,227],[78,200,209,218,224,226,228,229],[78,200,206,209,218,223,226,227],[224,227]],"referencedMap":[[109,1],[96,2],[95,3],[197,4],[108,5],[200,6],[98,7],[100,8],[101,9],[102,10],[103,11],[104,12],[105,13],[198,14],[107,15],[106,10],[94,10],[93,16],[97,17],[83,18],[91,19],[99,20],[90,21],[79,22],[84,23],[199,24],[81,25],[86,26],[80,27],[82,28],[85,29],[92,30],[88,31],[87,32],[89,30],[229,33],[230,34],[228,35],[226,36],[218,37],[225,38],[219,39],[220,40],[206,41],[207,42],[214,43],[221,44],[222,45],[213,46],[201,47],[203,48],[204,41],[205,49],[210,50],[212,51],[211,52],[215,53],[216,54],[217,55],[202,56],[208,57],[223,58],[227,59],[224,60],[209,61],[69,62],[64,24],[65,24],[68,63],[70,64],[72,65],[73,24],[66,24],[78,66],[74,67],[75,24],[76,68],[71,64],[77,69],[67,70],[231,24],[110,71],[111,71],[146,72],[147,73],[148,74],[149,75],[150,76],[151,77],[152,78],[153,79],[154,80],[155,81],[156,81],[158,82],[157,83],[159,84],[160,85],[161,86],[145,87],[195,24],[162,88],[163,89],[164,90],[196,91],[165,92],[166,93],[167,94],[168,95],[169,96],[170,97],[171,98],[172,99],[173,100],[174,101],[175,101],[176,102],[177,103],[179,104],[178,105],[180,106],[181,107],[182,108],[183,109],[184,110],[185,111],[186,112],[187,113],[188,114],[189,115],[190,116],[191,117],[192,118],[193,119],[194,120],[112,24],[62,24],[63,24],[13,24],[12,24],[2,24],[14,24],[15,24],[16,24],[17,24],[18,24],[19,24],[20,24],[21,24],[3,24],[4,24],[22,24],[26,24],[23,24],[24,24],[25,24],[27,24],[28,24],[29,24],[5,24],[30,24],[31,24],[32,24],[33,24],[6,24],[37,24],[34,24],[35,24],[36,24],[38,24],[7,24],[39,24],[44,24],[45,24],[40,24],[41,24],[42,24],[43,24],[8,24],[49,24],[46,24],[47,24],[48,24],[50,24],[9,24],[51,24],[52,24],[53,24],[56,24],[54,24],[55,24],[57,24],[58,24],[10,24],[1,24],[11,24],[61,24],[60,24],[59,24],[128,121],[135,122],[127,121],[142,123],[119,124],[118,125],[141,126],[136,127],[139,128],[121,129],[120,130],[116,131],[115,132],[138,133],[117,134],[122,135],[123,24],[126,135],[113,24],[144,136],[143,135],[130,137],[131,138],[133,139],[129,140],[132,141],[137,126],[124,142],[125,143],[134,144],[114,145],[140,146]],"exportedModulesMap":[[109,1],[96,2],[95,3],[197,4],[108,5],[200,6],[98,7],[100,8],[101,9],[102,10],[103,11],[104,12],[105,13],[198,14],[107,15],[106,10],[94,10],[93,16],[97,17],[83,18],[91,19],[99,20],[90,21],[79,22],[84,23],[199,24],[81,25],[86,26],[80,27],[82,28],[85,29],[92,30],[88,31],[87,32],[89,30],[229,147],[230,148],[228,149],[226,150],[218,151],[225,152],[219,153],[220,154],[206,155],[207,156],[214,157],[221,158],[222,159],[213,160],[201,161],[203,162],[204,161],[205,163],[210,164],[212,165],[211,166],[215,167],[216,168],[217,169],[202,170],[208,171],[223,172],[227,173],[224,174],[209,175],[69,62],[64,24],[65,24],[68,63],[70,64],[72,65],[73,24],[66,24],[78,66],[74,67],[75,24],[76,68],[71,64],[77,69],[67,70],[231,24],[110,71],[111,71],[146,72],[147,73],[148,74],[149,75],[150,76],[151,77],[152,78],[153,79],[154,80],[155,81],[156,81],[158,82],[157,83],[159,84],[160,85],[161,86],[145,87],[195,24],[162,88],[163,89],[164,90],[196,91],[165,92],[166,93],[167,94],[168,95],[169,96],[170,97],[171,98],[172,99],[173,100],[174,101],[175,101],[176,102],[177,103],[179,104],[178,105],[180,106],[181,107],[182,108],[183,109],[184,110],[185,111],[186,112],[187,113],[188,114],[189,115],[190,116],[191,117],[192,118],[193,119],[194,120],[112,24],[62,24],[63,24],[13,24],[12,24],[2,24],[14,24],[15,24],[16,24],[17,24],[18,24],[19,24],[20,24],[21,24],[3,24],[4,24],[22,24],[26,24],[23,24],[24,24],[25,24],[27,24],[28,24],[29,24],[5,24],[30,24],[31,24],[32,24],[33,24],[6,24],[37,24],[34,24],[35,24],[36,24],[38,24],[7,24],[39,24],[44,24],[45,24],[40,24],[41,24],[42,24],[43,24],[8,24],[49,24],[46,24],[47,24],[48,24],[50,24],[9,24],[51,24],[52,24],[53,24],[56,24],[54,24],[55,24],[57,24],[58,24],[10,24],[1,24],[11,24],[61,24],[60,24],[59,24],[128,121],[135,122],[127,121],[142,123],[119,124],[118,125],[141,126],[136,127],[139,128],[121,129],[120,130],[116,131],[115,132],[138,133],[117,134],[122,135],[123,24],[126,135],[113,24],[144,136],[143,135],[130,137],[131,138],[133,139],[129,140],[132,141],[137,126],[124,142],[125,143],[134,144],[114,145],[140,146]],"semanticDiagnosticsPerFile":[109,96,95,197,108,200,98,100,101,102,103,104,105,198,107,106,94,93,97,83,91,99,90,79,84,199,81,86,80,82,85,92,88,87,89,[229,[{"file":"../ark.ts","start":10,"length":9,"messageText":"Module '\"@arktype/schema\"' has no exported member 'JsObjects'.","category":1,"code":2305},{"file":"../ark.ts","start":32,"length":10,"messageText":"'\"@arktype/schema\"' has no exported member named 'TsKeywords'. Did you mean 'keywords'?","category":1,"code":2724,"relatedInformation":[{"file":"../../schema/out/keywords/keywords.d.ts","start":362,"length":8,"messageText":"'keywords' is declared here.","category":3,"code":2728}]},{"file":"../ark.ts","start":45,"length":10,"messageText":"Module '\"@arktype/schema\"' has no exported member 'Validation'.","category":1,"code":2305},{"file":"../ark.ts","start":63,"length":8,"messageText":"Module '\"@arktype/schema\"' has no exported member 'inferred'.","category":1,"code":2305},{"file":"../ark.ts","start":2084,"length":10,"messageText":"A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.","category":1,"code":1170}]],230,228,226,218,225,219,220,206,207,214,221,222,213,201,203,204,205,210,212,211,[215,[{"file":"../parser/string/shift/operator/bounds.ts","start":3373,"length":6,"code":2339,"category":1,"messageText":"Property 'number' does not exist on type 'ArkResolutions'."},{"file":"../parser/string/shift/operator/bounds.ts","start":3636,"length":6,"code":2339,"category":1,"messageText":"Property 'string' does not exist on type 'ArkResolutions'."},{"file":"../parser/string/shift/operator/bounds.ts","start":3669,"length":5,"code":2339,"category":1,"messageText":"Property 'Array' does not exist on type 'ArkResolutions'."},{"file":"../parser/string/shift/operator/bounds.ts","start":3955,"length":4,"code":2339,"category":1,"messageText":"Property 'Date' does not exist on type 'ArkResolutions'."}]],216,217,202,208,[223,[{"file":"../parser/tuple.ts","start":1840,"length":5,"code":2339,"category":1,"messageText":"Property 'Array' does not exist on type 'ArkResolutions'."},{"file":"../parser/tuple.ts","start":2149,"length":6,"code":2339,"category":1,"messageText":"Property 'number' does not exist on type 'ArkResolutions'."}]],[227,[{"file":"../scope.ts","start":12267,"length":7,"code":2339,"category":1,"messageText":"Property 'unknown' does not exist on type 'ArkResolutions'."}]],[224,[{"file":"../type.ts","start":10,"length":8,"messageText":"Module '\"@arktype/schema\"' has no exported member 'inferred'.","category":1,"code":2305},{"file":"../type.ts","start":3677,"length":10,"messageText":"A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type.","category":1,"code":1166},{"file":"../type.ts","start":7563,"length":4,"code":2322,"category":1,"messageText":{"messageText":"Type 'any[]' is not assignable to type 'Record<string, TypeNode>'.","category":1,"code":2322,"next":[{"messageText":"Index signature for type 'string' is missing in type 'any[]'.","category":1,"code":2329}]},"relatedInformation":[{"file":"../scope.ts","start":6239,"length":4,"messageText":"The expected type comes from property 'args' which is declared here on type 'ParseContextInput'","category":3,"code":6500}]},{"file":"../type.ts","start":7616,"length":7,"code":2339,"category":1,"messageText":"Property 'unknown' does not exist on type 'ArkResolutions'."}]],209,69,64,65,68,70,72,73,66,78,74,75,76,71,77,67,231,110,111,146,147,148,149,150,151,152,153,154,155,156,158,157,159,160,161,145,195,162,163,164,196,165,166,167,168,169,170,171,172,173,174,175,176,177,179,178,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,112,62,63,13,12,2,14,15,16,17,18,19,20,21,3,4,22,26,23,24,25,27,28,29,5,30,31,32,33,6,37,34,35,36,38,7,39,44,45,40,41,42,43,8,49,46,47,48,50,9,51,52,53,56,54,55,57,58,10,1,11,61,60,59,128,135,127,142,119,118,141,136,139,121,120,116,115,138,117,122,123,126,113,144,143,130,131,133,129,132,137,124,125,134,114,140],"latestChangedDtsFile":"./ark.d.ts"},"version":"5.3.2"}
|
package/out/type.d.ts
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { inferred, type ArkResult, type BaseMeta, type KeyCheckKind, type Morph, type Out, type Predicate, type TypeNode, type distill, type extractIn, type extractOut, type includesMorphs, type inferMorphOut, type inferNarrow } from "@arktype/schema";
|
|
2
|
+
import { Callable, type Constructor, type Json, type conform } from "@arktype/util";
|
|
3
|
+
import type { inferDefinition, validateDeclared, validateDefinition } from "./parser/definition.js";
|
|
4
|
+
import { parseGenericParams, type GenericParamsParseError } from "./parser/generic.js";
|
|
5
|
+
import type { inferIntersection } from "./parser/semantic/intersections.js";
|
|
6
|
+
import type { IndexOneOperator, IndexZeroOperator, TupleInfixOperator } from "./parser/tuple.js";
|
|
7
|
+
import type { Scope, bindThis } from "./scope.js";
|
|
8
|
+
import { arkKind } from "./util.js";
|
|
9
|
+
export type TypeParser<$> = {
|
|
10
|
+
<const def>(def: validateTypeRoot<def, $>): Type<inferTypeRoot<def, $>, $>;
|
|
11
|
+
<const zero, const one, const rest extends readonly unknown[]>(_0: zero extends IndexZeroOperator ? zero : validateTypeRoot<zero, $>, _1: zero extends "keyof" ? validateTypeRoot<one, $> : zero extends "instanceof" ? conform<one, Constructor> : zero extends "===" ? conform<one, unknown> : conform<one, IndexOneOperator>, ..._2: zero extends "===" ? rest : zero extends "instanceof" ? conform<rest, readonly Constructor[]> : one extends TupleInfixOperator ? one extends ":" ? [Predicate<extractIn<inferTypeRoot<zero, $>>>] : one extends "=>" ? [
|
|
12
|
+
Morph<extractOut<inferTypeRoot<zero, $>>, unknown>
|
|
13
|
+
] : one extends "@" ? [string | BaseMeta] : [validateTypeRoot<rest[0], $>] : []): Type<inferTypeRoot<[zero, one, ...rest], $>, $>;
|
|
14
|
+
<params extends string, const def>(params: `<${validateParameterString<params>}>`, def: validateDefinition<def, $, {
|
|
15
|
+
[param in parseGenericParams<params>[number]]: unknown;
|
|
16
|
+
}>): Generic<parseGenericParams<params>, def, $>;
|
|
17
|
+
};
|
|
18
|
+
export type DeclarationParser<$> = <preinferred>() => {
|
|
19
|
+
type: <def>(def: validateDeclared<preinferred, def, $, bindThis<def>>) => Type<preinferred, $>;
|
|
20
|
+
};
|
|
21
|
+
export declare const createTypeParser: <$>(scope: Scope) => TypeParser<$>;
|
|
22
|
+
export type DefinitionParser<$> = <def>(def: validateDefinition<def, $, bindThis<def>>) => def;
|
|
23
|
+
export type TypeConfig = {
|
|
24
|
+
keys?: KeyCheckKind;
|
|
25
|
+
mustBe?: string;
|
|
26
|
+
};
|
|
27
|
+
export declare class Type<t = unknown, $ = any> extends Callable<(data: unknown) => ArkResult<distill<extractOut<t>>>> {
|
|
28
|
+
definition: unknown;
|
|
29
|
+
scope: Scope;
|
|
30
|
+
[inferred]: t;
|
|
31
|
+
infer: distill<extractOut<t>>;
|
|
32
|
+
config: TypeConfig;
|
|
33
|
+
root: TypeNode<t>;
|
|
34
|
+
allows: this["root"]["allows"];
|
|
35
|
+
expected: string;
|
|
36
|
+
json: Json;
|
|
37
|
+
constructor(definition: unknown, scope: Scope);
|
|
38
|
+
configure(config: TypeConfig): this;
|
|
39
|
+
from(literal: this["in"]["infer"]): this["in"]["infer"];
|
|
40
|
+
and<def>(def: validateTypeRoot<def, $>): Type<inferIntersection<t, inferTypeRoot<def, $>>, $>;
|
|
41
|
+
or<def>(def: validateTypeRoot<def, $>): Type<t | inferTypeRoot<def, $>, $>;
|
|
42
|
+
morph<morph extends Morph<this["infer"]>>(morph: morph): Type<(In: this["in"]["infer"]) => Out<inferMorphOut<ReturnType<morph>>>, $>;
|
|
43
|
+
morph<morph extends Morph<this["infer"]>, def>(morph: morph, outValidator: validateTypeRoot<def, $>): Type<(In: this["in"]["infer"]) => Out<extractOut<inferTypeRoot<def, $>>>, $>;
|
|
44
|
+
narrow<def extends Predicate<extractOut<t>>>(def: def): Type<includesMorphs<t> extends true ? (In: this["in"]["infer"]) => Out<inferNarrow<this["infer"], def>> : inferNarrow<this["infer"], def>, $>;
|
|
45
|
+
array(): Type<t[], $>;
|
|
46
|
+
keyof(): Type<keyof this["in"]["infer"], $>;
|
|
47
|
+
assert(data: unknown): this["infer"];
|
|
48
|
+
equals<def>(other: validateTypeRoot<def, $>): this is Type<inferTypeRoot<def, $>, $>;
|
|
49
|
+
extends<def>(other: validateTypeRoot<def, $>): this is Type<inferTypeRoot<def, $>, $>;
|
|
50
|
+
private inCache?;
|
|
51
|
+
get in(): Type<extractIn<t>, $>;
|
|
52
|
+
outCache?: Type<extractOut<t>, $>;
|
|
53
|
+
get out(): Type<extractOut<t>, $>;
|
|
54
|
+
}
|
|
55
|
+
export type validateTypeRoot<def, $> = validateDefinition<def, $, bindThis<def>>;
|
|
56
|
+
export type inferTypeRoot<def, $> = inferDefinition<def, $, bindThis<def>>;
|
|
57
|
+
type validateParameterString<params extends string> = parseGenericParams<params> extends GenericParamsParseError<infer message> ? message : params;
|
|
58
|
+
export declare const validateUninstantiatedGeneric: (g: Generic) => Generic<string[], unknown, any>;
|
|
59
|
+
export declare const generic: (parameters: string[], definition: unknown, scope: Scope) => Generic<string[], unknown, any>;
|
|
60
|
+
export type GenericProps<params extends string[] = string[], def = unknown, $ = any> = {
|
|
61
|
+
[arkKind]: "generic";
|
|
62
|
+
$: $;
|
|
63
|
+
parameters: params;
|
|
64
|
+
definition: def;
|
|
65
|
+
scope: Scope;
|
|
66
|
+
};
|
|
67
|
+
export type BoundArgs = Record<string, TypeNode>;
|
|
68
|
+
export type Generic<params extends string[] = string[], def = unknown, $ = any> = {
|
|
69
|
+
<args>(...args: conform<args, {
|
|
70
|
+
[i in keyof params]: validateTypeRoot<args[i & keyof args], $>;
|
|
71
|
+
}>): Type<inferDefinition<def, $, bindGenericInstantiation<params, $, args>>, $>;
|
|
72
|
+
} & GenericProps<params, def, $>;
|
|
73
|
+
type bindGenericInstantiation<params extends string[], $, args> = {
|
|
74
|
+
[i in keyof params & `${number}` as params[i]]: inferTypeRoot<args[i & keyof args], $>;
|
|
75
|
+
};
|
|
76
|
+
export {};
|
|
77
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../type.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,QAAQ,EAER,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,KAAK,EACV,KAAK,GAAG,EACR,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACN,QAAQ,EAGR,KAAK,WAAW,EAChB,KAAK,IAAI,EACT,KA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OAAO,CAAC,EAAE,SAAS,CAAA;IACpB,CAAC,EAAE,CAAC,CAAA;IACJ,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,GAAG,CAAA;IACf,KAAK,EAAE,KAAK,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;AAGhD,MAAM,MAAM,OAAO,CAClB,MAAM,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,EAClC,GAAG,GAAG,OAAO,EACb,CAAC,GAAG,GAAG,IACJ;IACH,CAAC,IAAI,EACJ,GAAG,IAAI,EAAE,OAAO,CACf,IAAI,EACJ;SACE,CAAC,IAAI,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,CAAC;KAC9D,CACD,GACC,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,EAAE,wBAAwB,CAAC,MAAM,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;CAC9E,GAAG,YAAY,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAA;AAEhC,KAAK,wBAAwB,CAAC,MAAM,SAAS,MAAM,EAAE,EAAE,CAAC,EAAE,IAAI,IAAI;KAChE,CAAC,IAAI,MAAM,MAAM,GAAG,GAAG,MAAM,EAAE,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,aAAa,CAC5D,IAAI,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,EACpB,CAAC,CACD;CACD,CAAA"}
|
package/out/type.js
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { inferred, keywords } from "@arktype/schema";
|
|
2
|
+
import { Callable, CastableBase, map } from "@arktype/util";
|
|
3
|
+
import { parseGenericParams } from "./parser/generic.js";
|
|
4
|
+
import { arkKind } from "./util.js";
|
|
5
|
+
export const createTypeParser = (scope) => {
|
|
6
|
+
const parser = (...args) => {
|
|
7
|
+
if (args.length === 1) {
|
|
8
|
+
// treat as a simple definition
|
|
9
|
+
return new Type(args[0], scope);
|
|
10
|
+
}
|
|
11
|
+
if (args.length === 2 &&
|
|
12
|
+
typeof args[0] === "string" &&
|
|
13
|
+
args[0][0] === "<" &&
|
|
14
|
+
args[0].at(-1) === ">") {
|
|
15
|
+
// if there are exactly two args, the first of which looks like <${string}>,
|
|
16
|
+
// treat as a generic
|
|
17
|
+
const params = parseGenericParams(args[0].slice(1, -1));
|
|
18
|
+
const def = args[1];
|
|
19
|
+
return validateUninstantiatedGeneric(generic(params, def, scope));
|
|
20
|
+
}
|
|
21
|
+
// otherwise, treat as a tuple expression. technically, this also allows
|
|
22
|
+
// non-expression tuple definitions to be parsed, but it's not a supported
|
|
23
|
+
// part of the API as specified by the associated types
|
|
24
|
+
return new Type(args, scope);
|
|
25
|
+
};
|
|
26
|
+
return parser;
|
|
27
|
+
};
|
|
28
|
+
export class Type extends Callable {
|
|
29
|
+
definition;
|
|
30
|
+
scope;
|
|
31
|
+
config;
|
|
32
|
+
root;
|
|
33
|
+
allows;
|
|
34
|
+
expected;
|
|
35
|
+
json;
|
|
36
|
+
constructor(definition, scope) {
|
|
37
|
+
const root = parseTypeRoot(definition, scope);
|
|
38
|
+
super(root.apply, root);
|
|
39
|
+
this.definition = definition;
|
|
40
|
+
this.scope = scope;
|
|
41
|
+
this.root = root;
|
|
42
|
+
this.allows = root.allows;
|
|
43
|
+
this.config = scope.config;
|
|
44
|
+
this.json = root.json;
|
|
45
|
+
this.expected = this.root.description;
|
|
46
|
+
}
|
|
47
|
+
configure(config) {
|
|
48
|
+
this.config = { ...this.config, ...config };
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
// TODO: should return out
|
|
52
|
+
from(literal) {
|
|
53
|
+
return literal;
|
|
54
|
+
}
|
|
55
|
+
// TODO: Morph intersections, ordering
|
|
56
|
+
and(def) {
|
|
57
|
+
return new Type(this.root.and(parseTypeRoot(def, this.scope)), this.scope);
|
|
58
|
+
}
|
|
59
|
+
or(def) {
|
|
60
|
+
return new Type(this.root.or(parseTypeRoot(def, this.scope)), this.scope);
|
|
61
|
+
}
|
|
62
|
+
morph(morph, outValidator) {
|
|
63
|
+
// TODO: tuple expression for out validator
|
|
64
|
+
outValidator;
|
|
65
|
+
return this;
|
|
66
|
+
// return new Type(
|
|
67
|
+
// this.root.constrain("morph", morph),
|
|
68
|
+
// this.scope
|
|
69
|
+
// ) as never
|
|
70
|
+
}
|
|
71
|
+
// TODO: based on below, should maybe narrow morph output if used after
|
|
72
|
+
narrow(def) {
|
|
73
|
+
return new Type(this.root.constrain("predicate", def), this.scope);
|
|
74
|
+
}
|
|
75
|
+
array() {
|
|
76
|
+
return new Type(this.root.array(), this.scope);
|
|
77
|
+
}
|
|
78
|
+
keyof() {
|
|
79
|
+
return new Type(this.root.keyof(), this.scope);
|
|
80
|
+
}
|
|
81
|
+
assert(data) {
|
|
82
|
+
const result = this.call(null, data);
|
|
83
|
+
return result.errors ? result.errors.throw() : result.out;
|
|
84
|
+
}
|
|
85
|
+
equals(other) {
|
|
86
|
+
return this.root.equals(parseTypeRoot(other, this.scope));
|
|
87
|
+
}
|
|
88
|
+
extends(other) {
|
|
89
|
+
return this.root.extends(parseTypeRoot(other, this.scope));
|
|
90
|
+
}
|
|
91
|
+
inCache;
|
|
92
|
+
get in() {
|
|
93
|
+
this.inCache ??= new Type(this.root.in, this.scope);
|
|
94
|
+
return this.inCache;
|
|
95
|
+
}
|
|
96
|
+
outCache;
|
|
97
|
+
get out() {
|
|
98
|
+
this.outCache ??= new Type(this.root.out, this.scope);
|
|
99
|
+
return this.outCache;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
const parseTypeRoot = (def, scope, args) => scope.parseDefinition(def, {
|
|
103
|
+
args: args ?? scope.bindThis(),
|
|
104
|
+
baseName: "type"
|
|
105
|
+
});
|
|
106
|
+
export const validateUninstantiatedGeneric = (g) => {
|
|
107
|
+
// the unconstrained instantiation of the generic is not used for now
|
|
108
|
+
// other than to eagerly validate that the def does not contain any errors
|
|
109
|
+
g.scope.parseDefinition(g.definition,
|
|
110
|
+
// once we support constraints on generic parameters, we'd use
|
|
111
|
+
// the base type here: https://github.com/arktypeio/arktype/issues/796
|
|
112
|
+
{
|
|
113
|
+
baseName: "generic",
|
|
114
|
+
args: map(g.parameters, (_, name) => [name, keywords.unknown])
|
|
115
|
+
});
|
|
116
|
+
return g;
|
|
117
|
+
};
|
|
118
|
+
export const generic = (parameters, definition, scope) => {
|
|
119
|
+
return Object.assign((...args) => {
|
|
120
|
+
const argNodes = map(parameters, (i, param) => [
|
|
121
|
+
param,
|
|
122
|
+
parseTypeRoot(args[i], scope)
|
|
123
|
+
]);
|
|
124
|
+
const root = parseTypeRoot(definition, scope, argNodes);
|
|
125
|
+
return new Type(root, scope);
|
|
126
|
+
}, {
|
|
127
|
+
[arkKind]: "generic",
|
|
128
|
+
parameters,
|
|
129
|
+
definition,
|
|
130
|
+
scope
|
|
131
|
+
// $ is only needed at compile-time
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
//# sourceMappingURL=type.js.map
|
package/out/type.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../type.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,QAAQ,EACR,QAAQ,EAcR,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACN,QAAQ,EACR,YAAY,EACZ,GAAG,EAIH,MAAM,eAAe,CAAA;AAMtB,OAAO,EACN,kBAAkB,EAElB,MAAM,qBAAqB,CAAA;AAQ5B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAoDnC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAI,KAAY,EAAiB,EAAE;IAClE,MAAM,MAAM,GAAG,CAAC,GAAG,IAAe,EAAkB,EAAE;QACrD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,E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import type { Module, Scope } from "./scope.js";
|
|
2
|
+
import type { Generic, Type } from "./type.js";
|
|
3
|
+
export declare const arkKind: unique symbol;
|
|
4
|
+
export type ArkKinds = {
|
|
5
|
+
type: Type;
|
|
6
|
+
scope: Scope;
|
|
7
|
+
generic: Generic;
|
|
8
|
+
module: Module;
|
|
9
|
+
};
|
|
10
|
+
export type ArkKind = keyof ArkKinds;
|
|
11
|
+
export declare const addArkKind: <kind extends keyof ArkKinds>(value: Omit<ArkKinds[kind], typeof arkKind> & {
|
|
12
|
+
[arkKind]?: kind;
|
|
13
|
+
}, kind: kind) => ArkKinds[kind];
|
|
14
|
+
export type addArkKind<kind extends ArkKind, t extends Omit<ArkKinds[kind], arkKind>> = t & {
|
|
15
|
+
[arkKind]: kind;
|
|
16
|
+
};
|
|
17
|
+
export type arkKind = typeof arkKind;
|
|
18
|
+
export declare const hasArkKind: <kind extends keyof ArkKinds>(value: unknown, kind: kind) => value is ArkKinds[kind];
|
|
19
|
+
//# sourceMappingURL=util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAE9C,eAAO,MAAM,OAAO,eAAgC,CAAA;AAEpD,MAAM,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,IAAI,CAAA;IACV,KAAK,EAAE,KAAK,CAAA;IACZ,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAA;AAEpC,eAAO,MAAM,UAAU;;gCASX,CAAA;AAEZ,MAAM,MAAM,UAAU,CACrB,IAAI,SAAS,OAAO,EACpB,CAAC,SAAS,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,IACpC,CAAC,GAAG;IAAE,CAAC,OAAO,CAAC,EAAE,IAAI,CAAA;CAAE,CAAA;AAE3B,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAA;AAEpC,eAAO,MAAM,UAAU,uCACf,OAAO,wCAEiD,CAAA"}
|
package/out/util.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const arkKind = Symbol("ArkTypeInternalKind");
|
|
2
|
+
export const addArkKind = (value, kind) => Object.defineProperty(value, arkKind, {
|
|
3
|
+
value: kind,
|
|
4
|
+
enumerable: false
|
|
5
|
+
});
|
|
6
|
+
export const hasArkKind = (value, kind) => value?.[arkKind] === kind;
|
|
7
|
+
//# sourceMappingURL=util.js.map
|
package/out/util.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../util.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAA;AAWpD,MAAM,CAAC,MAAM,UAAU,GAAG,CACzB,KAEC,EACD,IAAU,EACO,EAAE,CACnB,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE;IACrC,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,KAAK;CACjB,CAAU,CAAA;AASZ,MAAM,CAAC,MAAM,UAAU,GAAG,CACzB,KAAc,EACd,IAAU,EACgB,EAAE,CAAE,KAAa,EAAE,CAAC,OAAO,CAAC,KAAK,IAAI,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arktype",
|
|
3
3
|
"description": "TypeScript's 1:1 validator, optimized from editor to runtime",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0-dev.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "David Blass",
|
|
@@ -13,25 +13,28 @@
|
|
|
13
13
|
"url": "https://github.com/arktypeio/arktype.git"
|
|
14
14
|
},
|
|
15
15
|
"type": "module",
|
|
16
|
+
"main": "./out/main.js",
|
|
17
|
+
"types": "./out/main.d.ts",
|
|
16
18
|
"exports": {
|
|
17
19
|
".": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
+
"types": "./out/main.d.ts",
|
|
21
|
+
"default": "./out/main.js"
|
|
20
22
|
},
|
|
21
23
|
"./internal/*": {
|
|
22
|
-
"
|
|
23
|
-
"import": "./dist/*"
|
|
24
|
+
"default": "./out/*"
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
27
|
"files": [
|
|
27
|
-
"
|
|
28
|
+
"out",
|
|
29
|
+
"!__tests__",
|
|
30
|
+
"**/*.ts"
|
|
28
31
|
],
|
|
29
32
|
"scripts": {
|
|
30
|
-
"build": "
|
|
31
|
-
"test": "
|
|
33
|
+
"build": "tsx ../repo/build.ts",
|
|
34
|
+
"test": "tsx ../repo/testPackage.ts"
|
|
32
35
|
},
|
|
33
36
|
"dependencies": {
|
|
34
|
-
"@arktype/util": "0.0.
|
|
35
|
-
"@arktype/schema": "0.0.
|
|
37
|
+
"@arktype/util": "0.0.17",
|
|
38
|
+
"@arktype/schema": "0.0.3"
|
|
36
39
|
}
|
|
37
40
|
}
|