pi2dsh 0.2.0 → 0.3.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.
Files changed (44) hide show
  1. package/README.md +29 -19
  2. package/README.zh.md +29 -19
  3. package/dist/build-DsGYAgiT.mjs +4416 -0
  4. package/dist/build-DsGYAgiT.mjs.map +1 -0
  5. package/dist/cli.mjs +2 -2
  6. package/dist/compat/pi-ai.d.mts +186 -2435
  7. package/dist/compat/pi-ai.d.mts.map +1 -1
  8. package/dist/compat/pi-ai.mjs +2771 -4520
  9. package/dist/compat/pi-ai.mjs.map +1 -1
  10. package/dist/compat/pi-coding-agent.d.mts +333 -14
  11. package/dist/compat/pi-coding-agent.d.mts.map +1 -1
  12. package/dist/compat/pi-coding-agent.mjs +2 -2
  13. package/dist/compat/pi-tui.mjs +1 -3620
  14. package/dist/host.mjs +2 -2
  15. package/dist/index.d.mts.map +1 -1
  16. package/dist/index.mjs +2 -2
  17. package/dist/{mcp-config-jL9w70It.mjs → mcp-config-gqg7GJEE.mjs} +115 -51
  18. package/dist/mcp-config-gqg7GJEE.mjs.map +1 -0
  19. package/dist/pi-coding-agent-Z1hTs61i.mjs +5203 -0
  20. package/dist/pi-coding-agent-Z1hTs61i.mjs.map +1 -0
  21. package/dist/pi-tui-5CYLcj-_.mjs +4512 -0
  22. package/dist/pi-tui-5CYLcj-_.mjs.map +1 -0
  23. package/dist/pi-types-BLt46jaf.d.mts +2494 -0
  24. package/dist/pi-types-BLt46jaf.d.mts.map +1 -0
  25. package/dist/{rolldown-runtime-C2Q2p085.mjs → rolldown-runtime-D-uZhY3_.mjs} +3 -2
  26. package/dist/{runtime-D84Hv_3m.mjs → runtime-oLd2EInK.mjs} +690 -25
  27. package/dist/runtime-oLd2EInK.mjs.map +1 -0
  28. package/dist/runtime.d.mts.map +1 -1
  29. package/dist/runtime.mjs +1 -1
  30. package/dist/{source-D7Ir-rPT.mjs → source-0sA5z08z.mjs} +6 -2
  31. package/dist/source-0sA5z08z.mjs.map +1 -0
  32. package/package.json +4 -1
  33. package/dist/compat/pi-tui.mjs.map +0 -1
  34. package/dist/mcp-config-jL9w70It.mjs.map +0 -1
  35. package/dist/pi-coding-agent-Dsg6_0ua.mjs +0 -2060
  36. package/dist/pi-coding-agent-Dsg6_0ua.mjs.map +0 -1
  37. package/dist/pi-tui-utils-CcaVtm-3.mjs +0 -895
  38. package/dist/pi-tui-utils-CcaVtm-3.mjs.map +0 -1
  39. package/dist/pi-types-KazmR2O5.d.mts +0 -62
  40. package/dist/pi-types-KazmR2O5.d.mts.map +0 -1
  41. package/dist/pi-uuid-Db8ShZsK.mjs +0 -47
  42. package/dist/pi-uuid-Db8ShZsK.mjs.map +0 -1
  43. package/dist/runtime-D84Hv_3m.mjs.map +0 -1
  44. package/dist/source-D7Ir-rPT.mjs.map +0 -1
@@ -0,0 +1,2494 @@
1
+
2
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/schema.d.mts
3
+ interface TSchema {}
4
+ declare function IsKind<Kind extends string>(value: unknown, kind: Kind): value is {
5
+ ['~kind']: Kind;
6
+ };
7
+ declare function IsSchema(value: unknown): value is TSchema;
8
+ interface TSchemaOptions {
9
+ /**
10
+ * Allows for additional, unlisted properties to be included, typically for extensibility.
11
+ */
12
+ [key: PropertyKey]: unknown;
13
+ /**
14
+ * Specifies the URI of a JSON Schema that the current schema adheres to.
15
+ */
16
+ $schema?: string;
17
+ /**
18
+ * A URI that serves as a unique identifier for the schema.
19
+ */
20
+ $id?: string;
21
+ /**
22
+ * A short explanation about the purpose of the data described by the schema.
23
+ */
24
+ title?: string;
25
+ /**
26
+ * A detailed explanation of the data described by the schema.
27
+ */
28
+ description?: string;
29
+ /**
30
+ * A default value for the data, used when no value is provided.
31
+ */
32
+ default?: unknown;
33
+ /**
34
+ * Provides one or more examples of valid data conforming to the schema.
35
+ */
36
+ examples?: unknown;
37
+ /**
38
+ * Indicates that the data should only be readable and not modified.
39
+ */
40
+ readOnly?: boolean;
41
+ /**
42
+ * Indicates that the data should only be writable and not read back.
43
+ */
44
+ writeOnly?: boolean;
45
+ /**
46
+ * A schema to apply conditionally: if the data validates against this schema, 'then' applies.
47
+ */
48
+ if?: TSchema;
49
+ /**
50
+ * A schema to apply if the data validates against the 'if' schema.
51
+ */
52
+ then?: TSchema;
53
+ /**
54
+ * A schema to apply if the data does not validate against the 'if' schema.
55
+ */
56
+ else?: TSchema;
57
+ }
58
+ interface TObjectOptions extends TSchemaOptions {
59
+ /**
60
+ * Defines whether additional properties are allowed beyond those explicitly defined in `properties`.
61
+ */
62
+ additionalProperties?: TSchema | boolean;
63
+ /**
64
+ * The minimum number of properties required in the object.
65
+ */
66
+ minProperties?: number;
67
+ /**
68
+ * The maximum number of properties allowed in the object.
69
+ */
70
+ maxProperties?: number;
71
+ /**
72
+ * Defines conditional requirements for properties.
73
+ */
74
+ dependencies?: Record<string, boolean | TSchema | string[]>;
75
+ /**
76
+ * Specifies properties that *must* be present if a given property is present.
77
+ */
78
+ dependentRequired?: Record<string, string[]>;
79
+ /**
80
+ * Defines schemas that apply if a specific property is present.
81
+ */
82
+ dependentSchemas?: Record<string, TSchema>;
83
+ /**
84
+ * Maps regular expressions to schemas properties matching a pattern must validate against the schema.
85
+ */
86
+ patternProperties?: Record<string, TSchema>;
87
+ /**
88
+ * A schema that all property names within the object must validate against.
89
+ */
90
+ propertyNames?: TSchema;
91
+ }
92
+ interface TArrayOptions extends TSchemaOptions {
93
+ /**
94
+ * The minimum number of items allowed in the array.
95
+ */
96
+ minItems?: number;
97
+ /**
98
+ * The maximum number of items allowed in the array.
99
+ */
100
+ maxItems?: number;
101
+ /**
102
+ * A schema that at least one item in the array must validate against.
103
+ */
104
+ contains?: TSchema;
105
+ /**
106
+ * The minimum number of array items that must validate against the `contains` schema.
107
+ */
108
+ minContains?: number;
109
+ /**
110
+ * The maximum number of array items that may validate against the `contains` schema.
111
+ */
112
+ maxContains?: number;
113
+ /**
114
+ * An array of schemas, where each schema in `prefixItems` validates against items at corresponding positions from the beginning of the array.
115
+ */
116
+ prefixItems?: TSchema[];
117
+ /**
118
+ * If `true`, all items in the array must be unique.
119
+ */
120
+ uniqueItems?: boolean;
121
+ }
122
+ interface TTupleOptions extends TArrayOptions {
123
+ /**
124
+ * A schema to apply to any items in the array that were not validated by `prefixItems` or `items`. If `false`, no additional items are allowed.
125
+ */
126
+ unevaluatedItems?: TSchema | boolean;
127
+ }
128
+ interface TIntersectOptions extends TSchemaOptions {
129
+ /**
130
+ * A schema to apply to any properties in the object that were not validated by other keywords like `properties`, `patternProperties`, or `additionalProperties`. If `false`, no additional properties are allowed.
131
+ */
132
+ unevaluatedProperties?: TSchema | boolean;
133
+ }
134
+ interface TNumberOptions extends TSchemaOptions {
135
+ /**
136
+ * Specifies an exclusive upper limit for the number (number must be less than this value).
137
+ */
138
+ exclusiveMaximum?: number | bigint;
139
+ /**
140
+ * Specifies an exclusive lower limit for the number (number must be greater than this value).
141
+ */
142
+ exclusiveMinimum?: number | bigint;
143
+ /**
144
+ * Specifies an inclusive upper limit for the number (number must be less than or equal to this value).
145
+ */
146
+ maximum?: number | bigint;
147
+ /**
148
+ * Specifies an inclusive lower limit for the number (number must be greater than or equal to this value).
149
+ */
150
+ minimum?: number | bigint;
151
+ /**
152
+ * Specifies that the number must be a multiple of this value.
153
+ */
154
+ multipleOf?: number | bigint;
155
+ }
156
+ type TFormat = 'date-time' | 'date' | 'duration' | 'email' | 'hostname' | 'idn-email' | 'idn-hostname' | 'ipv4' | 'ipv6' | 'iri-reference' | 'iri' | 'json-pointer-uri-fragment' | 'json-pointer' | 'json-string' | 'regex' | 'relative-json-pointer' | 'time' | 'uri-reference' | 'uri-template' | 'uri' | 'url' | 'uuid' | ({} & string);
157
+ interface TStringOptions extends TSchemaOptions {
158
+ /**
159
+ * Specifies the expected string format. May also be a custom format string.
160
+ */
161
+ format?: TFormat;
162
+ /**
163
+ * Specifies the minimum number of characters allowed in the string.
164
+ * Must be a non-negative integer.
165
+ */
166
+ minLength?: number;
167
+ /**
168
+ * Specifies the maximum number of characters allowed in the string.
169
+ * Must be a non-negative integer.
170
+ */
171
+ maxLength?: number;
172
+ /**
173
+ * Specifies a regular expression pattern that the string value must match.
174
+ * Can be provided as a string (ECMA-262 regex syntax) or a `RegExp` object.
175
+ */
176
+ pattern?: string | RegExp;
177
+ }
178
+ //#endregion
179
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/deferred.d.mts
180
+ /** Represents a deferred action. */
181
+ interface TDeferred<Action extends string = string, Types extends TSchema[] = TSchema[]> extends TSchema {
182
+ '~kind': 'Deferred';
183
+ type: 'deferred';
184
+ action: Action;
185
+ parameters: Types;
186
+ options: TSchemaOptions;
187
+ }
188
+ //#endregion
189
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/_codec.d.mts
190
+ type StaticCodec<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema, Decoded extends unknown> = (Direction extends 'Decode' ? Decoded : StaticType<Stack, Direction, Context, This, Omit<Type, '~codec'>>);
191
+ type TDecodeCallback<Encoded extends unknown, Decoded = unknown> = (input: Encoded) => Decoded;
192
+ type TEncodeCallback<Encoded extends unknown, Decoded = unknown> = (input: Decoded) => Encoded;
193
+ type TCodec<Type extends TSchema = TSchema, Decoded extends unknown = unknown> = Type & {
194
+ '~codec': {
195
+ encode: TDecodeCallback<unknown, Decoded>;
196
+ decode: TEncodeCallback<unknown, Decoded>;
197
+ };
198
+ };
199
+ declare class EncodeBuilder<Type extends TSchema, Encoded extends unknown, Decoded extends unknown> {
200
+ private readonly type;
201
+ private readonly decode;
202
+ constructor(type: Type, decode: globalThis.Function);
203
+ Encode(callback: TEncodeCallback<Encoded, Decoded>): TCodec<Type, Decoded>;
204
+ }
205
+ declare class DecodeBuilder<Type extends TSchema, Encoded extends unknown> {
206
+ private readonly type;
207
+ constructor(type: Type);
208
+ Decode<Callback extends TDecodeCallback<Encoded, unknown>>(callback: Callback): EncodeBuilder<Type, Encoded, ReturnType<Callback>>;
209
+ }
210
+ /** Creates a bi-directional Codec. Codec functions are called on Value.Decode and Value.Encode. */
211
+ declare function Codec<Type extends TSchema>(type: Type): DecodeBuilder<Type, StaticDecode<Type>>;
212
+ /** Createsa uni-directional Codec with Decode only. The Decode function is called on Value.Decode */
213
+ declare function Decode<Type extends TSchema, Callback extends TDecodeCallback<StaticDecode<Type>, unknown>>(type: Type, callback: Callback): TCodec<Type, ReturnType<Callback>>;
214
+ /** Creates a uni-directional Codec with Encode only. The Encode function is called on Value.Encode */
215
+ declare function Encode<Type extends TSchema>(type: Type, callback: TEncodeCallback<StaticDecode<Type>, unknown>): TCodec<Type, unknown>;
216
+ declare function IsCodec(value: unknown): value is TCodec;
217
+ //#endregion
218
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/any.d.mts
219
+ type StaticAny = any;
220
+ /** Represents a Any type. */
221
+ interface TAny extends TSchema {
222
+ '~kind': 'Any';
223
+ }
224
+ /** Creates a Any type. */
225
+ declare function Any(options?: TSchemaOptions): TAny;
226
+ /** Returns true if the given value is a TAny. */
227
+ declare function IsAny(value: unknown): value is TAny;
228
+ //#endregion
229
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/_immutable.d.mts
230
+ type TImmutable<Type extends TSchema = TSchema> = (Type & {
231
+ '~immutable': true;
232
+ });
233
+ /** Applies an Immutable modifier to the given type. */
234
+ declare function Immutable<Type extends TSchema>(type: Type): TAddImmutable<Type>;
235
+ /** Returns true if the given value is a TImmutable */
236
+ declare function IsImmutable(value: unknown): value is TImmutable<TSchema>;
237
+ //#endregion
238
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/array.d.mts
239
+ type StaticArray<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Array extends TSchema, Item extends TSchema, Result extends readonly unknown[] = Array extends TImmutable ? readonly StaticType<Stack, Direction, Context, This, Item>[] : StaticType<Stack, Direction, Context, This, Item>[]> = Result;
240
+ /** Represents an Array type. */
241
+ interface TArray<Type extends TSchema = TSchema> extends TSchema {
242
+ '~kind': 'Array';
243
+ type: 'array';
244
+ items: Type;
245
+ }
246
+ /** Creates an Array type. */
247
+ declare function _Array_<Type extends TSchema>(items: Type, options?: TArrayOptions): TArray<Type>;
248
+ /** Returns true if the given value is a TArray. */
249
+ declare function IsArray(value: unknown): value is TArray;
250
+ //#endregion
251
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/bigint.d.mts
252
+ declare const BigIntPattern = "-?(?:0|[1-9][0-9]*)n";
253
+ type StaticBigInt = bigint;
254
+ /** Represents a BigInt type. */
255
+ interface TBigInt$1 extends TSchema {
256
+ '~kind': 'BigInt';
257
+ type: 'bigint';
258
+ }
259
+ /** Creates a BigInt type. */
260
+ declare function BigInt(options?: TNumberOptions): TBigInt$1;
261
+ /** Returns true if the given value is a TBigInt. */
262
+ declare function IsBigInt(value: unknown): value is TBigInt$1;
263
+ //#endregion
264
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/boolean.d.mts
265
+ type StaticBoolean = boolean;
266
+ /** Represents a Boolean type. */
267
+ interface TBoolean extends TSchema {
268
+ '~kind': 'Boolean';
269
+ type: 'boolean';
270
+ }
271
+ /** Creates a Boolean type. */
272
+ declare function Boolean(options?: TSchemaOptions): TBoolean;
273
+ /** Returns true if the given value is a TBoolean. */
274
+ declare function IsBoolean(value: unknown): value is TBoolean;
275
+ //#endregion
276
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/_add_readonly.d.mts
277
+ /** Creates a deferred AddReadonly action. */
278
+ type TAddReadonlyDeferred<Type extends TSchema> = (TDeferred<'AddReadonly', [Type]>);
279
+ /** Applies an AddReadonly action to a type. */
280
+ type TAddReadonly<Type extends TSchema> = (TAddReadonlyAction<Type>);
281
+ //#endregion
282
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/_readonly.d.mts
283
+ type TReadonly$1<Type extends TSchema = TSchema> = (Type & {
284
+ '~readonly': true;
285
+ });
286
+ /** Applies an Readonly property modifier to the given type. */
287
+ declare function Readonly$1<Type extends TSchema>(type: Type): TAddReadonly<Type>;
288
+ /** Returns true if the given value is a TReadonly */
289
+ declare function IsReadonly$1(value: unknown): value is TReadonly$1<TSchema>;
290
+ //#endregion
291
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts
292
+ type TAddReadonlyOperation<Type extends TSchema, Result extends TSchema = `~readonly` extends keyof Type ? Type : TReadonly$1<Type>> = Result;
293
+ type TAddReadonlyAction<Type extends TSchema, Result extends TSchema = TAddReadonlyOperation<Type>> = Result;
294
+ type TAddReadonlyInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TAddReadonlyAction<InstantiateType>;
295
+ //#endregion
296
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/unknown.d.mts
297
+ type StaticUnknown = unknown;
298
+ /** Represents an Unknown type. */
299
+ interface TUnknown extends TSchema {
300
+ '~kind': 'Unknown';
301
+ }
302
+ /** Creates an Unknown type. */
303
+ declare function Unknown(options?: TSchemaOptions): TUnknown;
304
+ /** Returns true if the given value is TUnknown. */
305
+ declare function IsUnknown(value: unknown): value is TUnknown;
306
+ //#endregion
307
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/parameter.d.mts
308
+ /** Represents a Generic parameter. */
309
+ interface TParameter$1<Name extends string = string, Extends extends TSchema = TSchema, Equals extends TSchema = TSchema> extends TSchema {
310
+ '~kind': 'Parameter';
311
+ name: Name;
312
+ extends: Extends;
313
+ equals: Equals;
314
+ }
315
+ /** Creates a Parameter type. */
316
+ declare function Parameter<Name extends string, Extends extends TSchema, Equals extends TSchema>(name: Name, extends_: Extends, equals: Equals): TParameter$1<Name, Extends, Equals>;
317
+ /** Creates a Parameter type. */
318
+ declare function Parameter<Name extends string, Extends extends TSchema, Equals extends TSchema>(name: Name, extends_: Extends): TParameter$1<Name, Extends, Extends>;
319
+ /** Creates a Parameter type. */
320
+ declare function Parameter<Name extends string>(name: Name): TParameter$1<Name, TUnknown, TUnknown>;
321
+ /** Returns true if the given value is TParameter. */
322
+ declare function IsParameter(value: unknown): value is TParameter$1;
323
+ //#endregion
324
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/object.d.mts
325
+ type StaticObject<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, _This extends TProperties, Properties extends TProperties, Result = keyof Properties extends never ? object : StaticProperties<Stack, Direction, Context, Properties, Properties>> = Result;
326
+ /** Represents an Object type. */
327
+ interface TObject<Properties extends TProperties = TProperties> extends TSchema {
328
+ '~kind': 'Object';
329
+ type: 'object';
330
+ properties: Properties;
331
+ required: TRequiredArray<Properties>;
332
+ }
333
+ /** Creates an Object type. */
334
+ declare function _Object_<Properties extends TProperties>(properties: Properties, options?: TObjectOptions): TObject<Properties>;
335
+ /** Returns true if the given value is TObject. */
336
+ declare function IsObject(value: unknown): value is TObject;
337
+ //#endregion
338
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/ref.d.mts
339
+ type CyclicStackLength<Stack extends unknown[], MaxLength extends number, Buffer extends unknown[] = []> = (Stack extends [infer Left, ...infer Right] ? Buffer['length'] extends MaxLength ? false : CyclicStackLength<Right, MaxLength, [...Buffer, Left]> : true);
340
+ type CyclicGuard<Stack extends unknown[], Ref extends string> = (Ref extends Stack[number] ? CyclicStackLength<Stack, 2> : true);
341
+ type StaticGuardedRef<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Ref extends string, Type extends TSchema> = (CyclicGuard<Stack, Ref> extends true ? StaticType<[...Stack, Ref], Direction, Context, This, Type> : any);
342
+ type StaticRef<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Ref extends string, Target extends TSchema = Ref extends keyof Context ? Context[Ref] : TUnknown, Result extends unknown = Target extends TObject ? StaticType<[], Direction, Context, This, Target> : StaticGuardedRef<Stack, Direction, Context, This, Ref, Target>> = Result;
343
+ /** Represents a type reference. */
344
+ interface TRef<Ref extends string = string> extends TSchema {
345
+ '~kind': 'Ref';
346
+ $ref: Ref;
347
+ }
348
+ /** Creates a Ref type. */
349
+ declare function Ref$1<Ref extends string>(ref: Ref, options?: TSchemaOptions): TRef<Ref>;
350
+ /** Returns true if the given value is TRef. */
351
+ declare function IsRef(value: unknown): value is TRef;
352
+ //#endregion
353
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/generic.d.mts
354
+ /** Represents a callable Generic type. */
355
+ interface TGeneric<Parameters extends TParameter$1[] = TParameter$1[], Expression extends TSchema = TSchema> extends TSchema {
356
+ '~kind': 'Generic';
357
+ type: 'generic';
358
+ parameters: Parameters;
359
+ expression: Expression;
360
+ }
361
+ /** Creates a Generic type. */
362
+ declare function Generic<Parameters extends TParameter$1[], Expression extends TSchema>(parameters: [...Parameters], expression: Expression): TGeneric<Parameters, Expression>;
363
+ /** Returns true if the given value is a TGeneric. */
364
+ declare function IsGeneric(value: unknown): value is TGeneric;
365
+ //#endregion
366
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/never.d.mts
367
+ declare const NeverPattern = "(?!)";
368
+ type StaticNever = never;
369
+ /** Represents a Never type. */
370
+ interface TNever extends TSchema {
371
+ '~kind': 'Never';
372
+ not: {};
373
+ }
374
+ /** Creates a Never type. */
375
+ declare function Never(options?: TSchemaOptions): TNever;
376
+ /** Returns true if the given value is TNever. */
377
+ declare function IsNever(value: unknown): value is TNever;
378
+ //#endregion
379
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/cyclic.d.mts
380
+ type StaticCyclic<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Defs extends TProperties, Ref extends string, Result extends unknown = (Ref extends keyof Defs ? StaticType<[...Stack, Ref], Direction, Defs, This, Defs[Ref]> : never)> = Result;
381
+ /** Represents a Cyclic type. */
382
+ interface TCyclic<Defs extends TProperties = TProperties, Ref extends string = string> extends TSchema {
383
+ '~kind': 'Cyclic';
384
+ $defs: Defs;
385
+ $ref: Ref;
386
+ }
387
+ /** Creates a Cyclic type. */
388
+ declare function Cyclic<Defs extends TProperties, Ref extends string>($defs: Defs, $ref: Ref, options?: TSchemaOptions): TCyclic<Defs, Ref>;
389
+ /** Returns true if the given value is a TCyclic. */
390
+ declare function IsCyclic(value: unknown): value is TCyclic;
391
+ //#endregion
392
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/helpers/union.d.mts
393
+ type TUnionToIntersect<U> = (U extends unknown ? (arg: U) => 0 : never) extends ((arg: infer I) => 0) ? I : never;
394
+ type TUnionLast<U> = TUnionToIntersect<U extends unknown ? (x: U) => 0 : never> extends ((x: infer L) => 0) ? L : never;
395
+ type TUnionToTuple<U, Result extends unknown[] = [], R = TUnionLast<U>> = [U] extends [never] ? Result : TUnionToTuple<Exclude<U, R>, [Extract<U, R>, ...Result]>;
396
+ //#endregion
397
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.d.mts
398
+ type TTypeScriptEnumLike = Record<PropertyKey, TEnumValue>;
399
+ type TReduceEnumValues<Keys extends string[], Type extends TTypeScriptEnumLike, Result extends TEnumValue[] = []> = (Keys extends [infer Left extends string, ...infer Right extends string[]] ? TReduceEnumValues<Right, Type, [...Result, Type[Left]]> : Result);
400
+ type TTypeScriptEnumToEnumValues<Type extends TTypeScriptEnumLike, EnumKeys extends string[] = TUnionToTuple<Extract<keyof Type, string>>, Elements extends TEnumValue[] = TReduceEnumValues<EnumKeys, Type>> = Elements;
401
+ //#endregion
402
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/enum.d.mts
403
+ type StaticEnum<Values extends TEnumValue[]> = (Values[number]);
404
+ type TEnumValue = string | number;
405
+ /** Returns true if the given value is a EnumValue */
406
+ declare function IsEnumValue(value: unknown): value is TEnumValue;
407
+ /** Represents an Enum type. */
408
+ interface TEnum<Values extends TEnumValue[] = TEnumValue[]> extends TSchema {
409
+ '~kind': 'Enum';
410
+ enum: Values;
411
+ }
412
+ /** Creates an Enum type. */
413
+ declare function Enum<Values extends TEnumValue[]>(values: readonly [...Values], options?: TSchemaOptions): TEnum<Values>;
414
+ /** Creates an Enum type from a TypeScript enum declaration. */
415
+ declare function Enum<Enum extends TTypeScriptEnumLike>(value: Enum, options?: TSchemaOptions): TEnum<TTypeScriptEnumToEnumValues<Enum>>;
416
+ /** Returns true if the given value is a TEnum. */
417
+ declare function IsEnum(value: unknown): value is TEnum;
418
+ //#endregion
419
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/identifier.d.mts
420
+ /** Represents a Identifier. */
421
+ interface TIdentifier<Name extends string = string> extends TSchema {
422
+ '~kind': 'Identifier';
423
+ type: 'identifier';
424
+ name: Name;
425
+ }
426
+ /** Creates an Identifier. */
427
+ declare function Identifier<Name extends string>(name: Name): TIdentifier<Name>;
428
+ /** Returns true if the given value is a TIdentifier. */
429
+ declare function IsIdentifier(value: unknown): value is TIdentifier;
430
+ //#endregion
431
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/dependent.d.mts
432
+ type StaticDependent<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, If extends TSchema, Then extends TSchema, Else extends TSchema, StaticIf extends unknown = StaticType<Stack, Direction, Context, This, If>, StaticThen extends unknown = StaticType<Stack, Direction, Context, This, Then>, StaticElse extends unknown = StaticType<Stack, Direction, Context, This, Else>, Result extends unknown = (StaticIf & StaticThen) | Exclude<StaticElse, StaticIf>> = Result;
433
+ /** Represents a Dependent Type */
434
+ interface TDependent$1<If extends TSchema = TSchema, Then extends TSchema = TSchema, Else extends TSchema = TSchema> extends TSchema {
435
+ '~kind': 'Dependent';
436
+ if: If;
437
+ then: Then;
438
+ else: Else;
439
+ }
440
+ /** Creates a Dependent type */
441
+ declare function Dependent<If extends TSchema, Then extends TSchema, Else extends TSchema>(if_: If, then_: Then, else_: Else, options?: TSchemaOptions): TDependent$1<If, Then, Else>;
442
+ /** Returns true if the given value is TDependent. */
443
+ declare function IsDependent(value: unknown): value is TDependent$1;
444
+ //#endregion
445
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/infer.d.mts
446
+ /** Represents an Infer instruction. */
447
+ interface TInfer<Name extends string = string, Extends extends TSchema = TSchema> extends TSchema {
448
+ '~kind': 'Infer';
449
+ type: 'infer';
450
+ name: Name;
451
+ extends: Extends;
452
+ }
453
+ /** Creates an Infer instruction. */
454
+ declare function Infer<Name extends string, Extends extends TSchema>(name: Name, extends_: Extends): TInfer<Name, Extends>;
455
+ /** Creates an Infer instruction. */
456
+ declare function Infer<Name extends string>(name: Name): TInfer<Name, TUnknown>;
457
+ /** Returns true if the given value is TInfer. */
458
+ declare function IsInfer(value: unknown): value is TInfer;
459
+ //#endregion
460
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/integer.d.mts
461
+ declare const IntegerPattern = "-?(?:0|[1-9][0-9]*)";
462
+ type StaticInteger = number;
463
+ /** Represents an integer type. */
464
+ interface TInteger$1 extends TSchema {
465
+ '~kind': 'Integer';
466
+ type: 'integer';
467
+ }
468
+ /** Creates a Integer type. */
469
+ declare function Integer$1(options?: TNumberOptions): TInteger$1;
470
+ /** Returns true if the given value is TInteger. */
471
+ declare function IsInteger(value: unknown): value is TInteger$1;
472
+ //#endregion
473
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/intersect.d.mts
474
+ type StaticIntersect<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Types extends TSchema[], Result extends unknown = unknown> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? StaticIntersect<Stack, Direction, Context, This, Right, Result & StaticType<Stack, Direction, Context, This, Left>> : Result);
475
+ /** Represents a logical Intersect type. */
476
+ interface TIntersect<Types extends TSchema[] = TSchema[]> extends TSchema {
477
+ '~kind': 'Intersect';
478
+ allOf: Types;
479
+ }
480
+ /** Creates a Intersect type. */
481
+ declare function Intersect<Types extends TSchema[]>(types: [...Types], options?: TIntersectOptions): TIntersect<Types>;
482
+ /** Returns true if the given value is TIntersect. */
483
+ declare function IsIntersect(value: unknown): value is TIntersect;
484
+ //#endregion
485
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/literal.d.mts
486
+ type StaticLiteral<Value extends TLiteralValue> = (Value);
487
+ type TLiteralTypeName<Value extends TLiteralValue> = (Value extends bigint ? 'bigint' : Value extends boolean ? 'boolean' : Value extends number ? 'number' : Value extends string ? 'string' : never);
488
+ type TLiteralValue = string | number | boolean | bigint;
489
+ /** Represents a Literal type. */
490
+ interface TLiteral<Value extends TLiteralValue = TLiteralValue> extends TSchema {
491
+ '~kind': 'Literal';
492
+ type: TLiteralTypeName<Value>;
493
+ const: Value;
494
+ }
495
+ /** Creates a Literal type. */
496
+ declare function Literal<Value extends TLiteralValue>(value: Value, options?: TSchemaOptions): TLiteral<Value>;
497
+ /** Returns true if the given value is TLiteral. */
498
+ declare function IsLiteral(value: unknown): value is TLiteral;
499
+ //#endregion
500
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/null.d.mts
501
+ type StaticNull = null;
502
+ /** Represents a Null type. */
503
+ interface TNull extends TSchema {
504
+ '~kind': 'Null';
505
+ type: 'null';
506
+ }
507
+ /** Creates a Null type. */
508
+ declare function Null(options?: TSchemaOptions): TNull;
509
+ /** Returns true if the given value is TNull. */
510
+ declare function IsNull(value: unknown): value is TNull;
511
+ //#endregion
512
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/number.d.mts
513
+ declare const NumberPattern = "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?";
514
+ type StaticNumber = number;
515
+ /** Represents a Number type. */
516
+ interface TNumber$1 extends TSchema {
517
+ '~kind': 'Number';
518
+ type: 'number';
519
+ }
520
+ /** Creates a Number type. */
521
+ declare function Number(options?: TNumberOptions): TNumber$1;
522
+ /** Returns true if the given value is a TNumber. */
523
+ declare function IsNumber(value: unknown): value is TNumber$1;
524
+ //#endregion
525
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/symbol.d.mts
526
+ type StaticSymbol = symbol;
527
+ /** Represents a Symbol type. */
528
+ interface TSymbol extends TSchema {
529
+ '~kind': 'Symbol';
530
+ type: 'symbol';
531
+ }
532
+ /** Creates a Symbol type. */
533
+ declare function Symbol(options?: TSchemaOptions): TSymbol;
534
+ /** Returns true if the given value is TSymbol. */
535
+ declare function IsSymbol(value: unknown): value is TSymbol;
536
+ //#endregion
537
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/string.d.mts
538
+ declare const StringPattern = ".*";
539
+ type StaticString = string;
540
+ /** Represents a String type. */
541
+ interface TString$1 extends TSchema {
542
+ '~kind': 'String';
543
+ type: 'string';
544
+ }
545
+ /** Creates a String type. */
546
+ declare function String(options?: TStringOptions): TString$1;
547
+ /** Returns true if the given value is TString. */
548
+ declare function IsString(value: unknown): value is TString$1;
549
+ //#endregion
550
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/system/unreachable/unreachable.d.mts
551
+ type TUnreachable = never;
552
+ //#endregion
553
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/system/memory/assign.d.mts
554
+ type ObjectLike = Record<PropertyKey, any>;
555
+ /**
556
+ * Performs an Object assign using the Left and Right object types. We track this operation as it
557
+ * creates a new GC handle per assignment.
558
+ */
559
+ type TAssign<Left extends ObjectLike, Right extends ObjectLike, Assigned extends ObjectLike = Omit<Left, keyof Right> & Right> = { [Key in keyof Assigned]: Assigned[Key]; } & {};
560
+ //#endregion
561
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/mapping.d.mts
562
+ type TIntrinsicOrCall<Target extends string, Parameters extends TSchema[]> = ([Target, Parameters] extends ['Array', [infer Type extends TSchema]] ? TArray<Type> : [Target, Parameters] extends ['Capitalize', [infer Type extends TSchema]] ? TCapitalizeDeferred<Type> : [Target, Parameters] extends ['ConstructorParameters', [infer Type extends TSchema]] ? TConstructorParametersDeferred<Type> : [Target, Parameters] extends ['Evaluate', [infer Type extends TSchema]] ? TEvaluateDeferred<Type> : [Target, Parameters] extends ['Exclude', [infer Left extends TSchema, infer Right extends TSchema]] ? TExcludeDeferred<Left, Right> : [Target, Parameters] extends ['Extract', [infer Left extends TSchema, infer Right extends TSchema]] ? TExtractDeferred<Left, Right> : [Target, Parameters] extends ['Index', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TIndexDeferred<Type, Indexer> : [Target, Parameters] extends ['InstanceType', [infer Type extends TSchema]] ? TInstanceTypeDeferred<Type> : [Target, Parameters] extends ['KeyOf', [infer Type extends TSchema]] ? TKeyOfDeferred<Type> : [Target, Parameters] extends ['Lowercase', [infer Type extends TSchema]] ? TLowercaseDeferred<Type> : [Target, Parameters] extends ['NonNullable', [infer Type extends TSchema]] ? TNonNullableDeferred<Type> : [Target, Parameters] extends ['Omit', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TOmitDeferred<Type, Indexer> : [Target, Parameters] extends ['Parameters', [infer Type extends TSchema]] ? TParametersDeferred<Type> : [Target, Parameters] extends ['Partial', [infer Type extends TSchema]] ? TPartialDeferred<Type> : [Target, Parameters] extends ['Pick', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TPickDeferred<Type, Indexer> : [Target, Parameters] extends ['Readonly', [infer Type extends TSchema]] ? TReadonlyObjectDeferred<Type> : [Target, Parameters] extends ['Record', [infer Key extends TSchema, infer Value extends TSchema]] ? TRecordDeferred<Key, Value> : [Target, Parameters] extends ['Required', [infer Type extends TSchema]] ? TRequiredDeferred<Type> : [Target, Parameters] extends ['ReturnType', [infer Type extends TSchema]] ? TReturnTypeDeferred<Type> : [Target, Parameters] extends ['Uncapitalize', [infer Type extends TSchema]] ? TUncapitalizeDeferred<Type> : [Target, Parameters] extends ['Uppercase', [infer Type extends TSchema]] ? TUppercaseDeferred<Type> : TCallConstruct<TRef<Target>, Parameters>);
563
+ type TDelimitedDecode<Input extends [unknown, unknown][], Result extends unknown[] = []> = (Input extends [infer Left extends [unknown, unknown], ...infer Right extends [unknown, unknown][]] ? TDelimitedDecode<Right, [...Result, Left[1]]> : Result);
564
+ type TDelimited<Input extends [unknown, unknown, unknown] | []> = (Input extends [infer Left extends unknown, infer Right extends [unknown, unknown][], infer _ extends unknown[]] ? [Left, ...TDelimitedDecode<Right>] : []);
565
+ type TGenericParameterExtendsEqualsMapping<Input extends [unknown, unknown, unknown, unknown, unknown]> = (Input extends [infer Name extends string, 'extends', infer Extends extends TSchema, '=', infer Equals extends TSchema] ? TParameter$1<Name, Extends, Equals> : never);
566
+ type TGenericParameterExtendsMapping<Input extends [unknown, unknown, unknown]> = (Input extends [infer Name extends string, 'extends', infer Extends extends TSchema] ? TParameter$1<Name, Extends, Extends> : never);
567
+ type TGenericParameterEqualsMapping<Input extends [unknown, unknown, unknown]> = (Input extends [infer Name extends string, '=', infer Equals extends TSchema] ? TParameter$1<Name, TUnknown, Equals> : never);
568
+ type TGenericParameterIdentifierMapping<Input extends string, Result extends TSchema = TParameter$1<Input, TUnknown, TUnknown>> = Result;
569
+ type TGenericParameterMapping<Input extends unknown> = (Input);
570
+ type TGenericParameterListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
571
+ type TGenericParametersMapping<Input extends [unknown, unknown, unknown]> = (Input extends ['<', infer Parameters extends TParameter$1[], '>'] ? Parameters : never);
572
+ type TGenericCallArgumentListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
573
+ type TGenericCallArgumentsMapping<Input extends [unknown, unknown, unknown]> = (Input extends ['<', infer Arguments extends TSchema[], '>'] ? Arguments : never);
574
+ type TGenericCallMapping<Input extends [unknown, unknown], Result = Input extends [infer Ref extends string, infer Arguments extends TSchema[]] ? TIntrinsicOrCall<Ref, Arguments> : never> = Result;
575
+ type TOptionalSemiColonMapping<Input extends [unknown] | []> = null;
576
+ type TKeywordStringMapping<Input extends 'string'> = (TString$1);
577
+ type TKeywordNumberMapping<Input extends 'number'> = (TNumber$1);
578
+ type TKeywordBooleanMapping<Input extends 'boolean'> = (TBoolean);
579
+ type TKeywordUndefinedMapping<Input extends 'undefined'> = (TUndefined);
580
+ type TKeywordNullMapping<Input extends 'null'> = (TNull);
581
+ type TKeywordIntegerMapping<Input extends 'integer'> = (TInteger$1);
582
+ type TKeywordBigIntMapping<Input extends 'bigint'> = (TBigInt$1);
583
+ type TKeywordUnknownMapping<Input extends 'unknown'> = (TUnknown);
584
+ type TKeywordAnyMapping<Input extends 'any'> = (TAny);
585
+ type TKeywordObjectMapping<Input extends 'object'> = (TObject<{}>);
586
+ type TKeywordNeverMapping<Input extends 'never'> = (TNever);
587
+ type TKeywordSymbolMapping<Input extends 'symbol'> = (TSymbol);
588
+ type TKeywordVoidMapping<Input extends 'void'> = (TVoid);
589
+ type TKeywordThisMapping<Input extends 'this'> = (TThis);
590
+ type TLiteralBigIntMapping<Input extends string> = (Input extends `${infer Value extends bigint}` ? TLiteral<Value> : never);
591
+ type TLiteralBooleanMapping<Input extends 'true' | 'false'> = (Input extends 'true' ? TLiteral<true> : TLiteral<false>);
592
+ type TLiteralNumberMapping<Input extends string> = (Input extends `${infer Value extends number}` ? TLiteral<Value> : never);
593
+ type TLiteralStringMapping<Input extends string> = (Input extends TLiteralValue ? TLiteral<Input> : never);
594
+ type TTemplateInterpolateMapping<Input extends [unknown, unknown, unknown]> = Input extends ['${', infer Type extends TSchema, '}'] ? Type : never;
595
+ type TTemplateSpanMapping<Input extends string, Result extends TSchema = TLiteral<Input>> = Result;
596
+ type TTemplateBodyMapping<Input extends [unknown, unknown, unknown] | [unknown]> = (Input extends [infer Text extends TSchema, infer Type extends TSchema, infer Rest extends TSchema[]] ? [Text, Type, ...Rest] : Input extends [infer Text extends TSchema] ? [Text] : []);
597
+ type TTemplateLiteralTypesMapping<Input extends [unknown, unknown, unknown], Result extends TSchema = Input extends ['`', infer Types extends TSchema[], '`'] ? Types : []> = Result;
598
+ type TTemplateLiteralMapping<Input extends unknown> = (Input extends (infer Types extends TSchema[]) ? TTemplateLiteralDeferred<Types> : never);
599
+ type TDependentMapping<Input extends [unknown, unknown, unknown, unknown, unknown, unknown] | [unknown, unknown, unknown, unknown]> = (Input extends ['if', infer If extends TSchema, 'then', infer Then extends TSchema, 'else', infer Else extends TSchema] ? TDependent$1<If, Then, Else> : Input extends ['if', infer If extends TSchema, 'then', infer Then extends TSchema] ? TDependent$1<If, Then, TUnknown> : never);
600
+ type TKeyOfMapping<Input extends [unknown] | []> = (Input extends [unknown] ? true : false);
601
+ type TIndexArrayMappingReduce<Input extends unknown[], Result extends unknown[] = []> = (Input extends [infer Left extends unknown, ...infer Right extends unknown[]] ? Left extends ['[', infer Type extends TSchema, ']'] ? TIndexArrayMappingReduce<Right, [...Result, [Type]]> : TIndexArrayMappingReduce<Right, [...Result, []]> : Result);
602
+ type TIndexArrayMapping<Input extends ([unknown, unknown, unknown] | [unknown, unknown])[]> = (Input extends unknown[] ? TIndexArrayMappingReduce<Input> : []);
603
+ type TExtendsMapping<Input extends [unknown, unknown, unknown, unknown, unknown, unknown] | []> = (Input extends ['extends', infer Type extends TSchema, '?', infer True extends TSchema, ':', infer False extends TSchema] ? [Type, True, False] : []);
604
+ type TBaseMapping<Input extends [unknown, unknown, unknown] | unknown> = (Input extends ['(', infer Type extends TSchema, ')'] ? Type : Input extends (infer Type extends TSchema) ? Type : never);
605
+ type TWithMapping<Input extends [unknown, unknown] | []> = (Input extends ['with', infer WithObject extends Record<PropertyKey, unknown>] ? WithObject : []);
606
+ type TFactorIndexArray<Type extends TSchema, IndexArray extends unknown[]> = (IndexArray extends [infer Left extends TSchema[], ...infer Right extends unknown[]] ? (Left extends [infer Indexer extends TSchema] ? TFactorIndexArray<TIndexDeferred<Type, Indexer>, Right> : Left extends [] ? TFactorIndexArray<TArray<Type>, Right> : TNever) : Type);
607
+ type TFactorExtends<Type extends TSchema, Extends extends unknown[]> = (Extends extends [infer Right extends TSchema, infer True extends TSchema, infer False extends TSchema] ? TConditionalDeferred<Type, Right, True, False> : Type);
608
+ type TFactorWith<Type extends TSchema, With extends unknown> = (With extends Record<PropertyKey, unknown> ? TWithDeferred<Type, With> : Type);
609
+ type TFactorMapping<Input extends [unknown, unknown, unknown, unknown, unknown]> = (Input extends [infer KeyOf extends boolean, infer Type extends TSchema, infer IndexArray extends unknown[], infer Extend extends unknown[], infer WithClause extends unknown] ? TFactorWith<KeyOf extends true ? TFactorExtends<TKeyOfDeferred<TFactorIndexArray<Type, IndexArray>>, Extend> : TFactorExtends<TFactorIndexArray<Type, IndexArray>, Extend>, WithClause> : never);
610
+ type TExprBinaryMapping<Left extends TSchema, Rest extends unknown[]> = (Rest extends [infer Operator extends unknown, infer Right extends TSchema, infer Next extends unknown[]] ? (TExprBinaryMapping<Right, Next> extends (infer Schema extends TSchema) ? (Operator extends '&' ? (Schema extends TIntersect<infer Types extends TSchema[]> ? TIntersect<[Left, ...Types]> : TIntersect<[Left, Schema]>) : Operator extends '|' ? (Schema extends TUnion<infer Types extends TSchema[]> ? TUnion<[Left, ...Types]> : TUnion<[Left, Schema]>) : never) : never) : Left);
611
+ type TExprTermTailMapping<Input extends [unknown, unknown, unknown] | []> = (Input);
612
+ type TExprTermMapping<Input extends [unknown, unknown]> = (Input extends [infer Left extends TSchema, infer Rest extends unknown[]] ? TExprBinaryMapping<Left, Rest> : []);
613
+ type TExprTailMapping<Input extends [unknown, unknown, unknown] | []> = (Input);
614
+ type TExprMapping<Input extends [unknown, unknown]> = (Input extends [infer Left extends TSchema, infer Rest extends unknown[]] ? TExprBinaryMapping<Left, Rest> : []);
615
+ type TExprReadonlyMapping<Input extends [unknown, unknown]> = (Input extends ['readonly', infer Type extends TSchema] ? TAddImmutableDeferred<Type> : never);
616
+ type TExprPipeMapping<Input extends [unknown, unknown]> = (Input extends ['|', infer Type extends TSchema] ? Type : never);
617
+ type TGenericTypeMapping<Input extends [unknown, unknown, unknown]> = (Input extends [infer Arguments extends TParameter$1[], '=', infer Type extends TSchema] ? TGeneric<Arguments, Type> : never);
618
+ type TInferTypeMapping<Input extends [unknown, unknown, unknown, unknown] | [unknown, unknown]> = (Input extends ['infer', infer Name extends string, 'extends', infer Type extends TSchema] ? TInfer<Name, Type> : Input extends ['infer', infer Name extends string] ? TInfer<Name, TUnknown> : never);
619
+ type TTypeMapping<Input extends unknown> = (Input);
620
+ type TPropertyKeyNumberMapping<Input extends string> = (`${Input}`);
621
+ type TPropertyKeyIdentMapping<Input extends string> = (Input);
622
+ type TPropertyKeyQuotedMapping<Input extends string> = (Input);
623
+ type TPropertyKeyIndexMapping<Input extends [unknown, unknown, unknown, unknown, unknown]> = (Input extends ['[', string, ':', TInteger$1, ']'] ? TIntegerKey : Input extends ['[', string, ':', TNumber$1, ']'] ? TNumberKey : Input extends ['[', string, ':', TString$1, ']'] ? TStringKey : Input extends ['[', string, ':', TSymbol, ']'] ? TStringKey : never);
624
+ type TPropertyKeyMapping<Input extends unknown> = (Input);
625
+ type TReadonlyMapping<Input extends [unknown] | []> = (Input extends [unknown] ? true : false);
626
+ type TOptionalMapping<Input extends [unknown] | []> = (Input extends [unknown] ? true : false);
627
+ type TPropertyMapping<Input extends [unknown, unknown, unknown, unknown, unknown]> = (Input extends [infer IsReadonly extends boolean, infer Key extends string, infer IsOptional extends boolean, string, infer Type extends TSchema] ? { [_ in Key]: ([IsReadonly, IsOptional] extends [true, true] ? TAddReadonlyDeferred<TAddOptionalDeferred<Type>> : [IsReadonly, IsOptional] extends [true, false] ? TAddReadonlyDeferred<Type> : [IsReadonly, IsOptional] extends [false, true] ? TAddOptionalDeferred<Type> : Type); } : never);
628
+ type TPropertyDelimiterMapping<Input extends [unknown, unknown] | [unknown]> = (Input);
629
+ type TPropertyListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
630
+ type TPropertiesReduce<PropertiesList extends TProperties[], Result extends [properties: TProperties, patternProperties: TProperties] = [{}, {}]> = (PropertiesList extends [infer Left extends TProperties, ...infer Right extends TProperties[]] ? (Left extends { [_ in TIntegerKey]: TSchema; } ? TPropertiesReduce<Right, [Result[0], TAssign<Result[1], Left>]> : Left extends { [_ in TNumberKey]: TSchema; } ? TPropertiesReduce<Right, [Result[0], TAssign<Result[1], Left>]> : Left extends { [_ in TStringKey]: TSchema; } ? TPropertiesReduce<Right, [Result[0], TAssign<Result[1], Left>]> : TPropertiesReduce<Right, [TAssign<Result[0], Left>, Result[1]]>) : { [Key in keyof Result]: Result[Key]; });
631
+ type TPropertiesMapping<Input extends [unknown, unknown, unknown], Result extends [TProperties, TProperties] = Input extends ['{', infer PropertyList extends TProperties[], '}'] ? TPropertiesReduce<PropertyList> : [{}, {}]> = Result;
632
+ type T_Object_Mapping<Input extends unknown> = (Input extends [infer Properties extends TProperties, infer _PatternProperties extends TProperties] ? TObject<Properties> : never);
633
+ type TElementNamedMapping<Input extends [unknown, unknown, unknown, unknown, unknown] | [unknown, unknown, unknown, unknown] | [unknown, unknown, unknown]> = (Input extends [string, '?', ':', 'readonly', infer Type extends TSchema] ? TAddReadonlyDeferred<TAddOptionalDeferred<Type>> : Input extends [string, /**/ ':', 'readonly', infer Type extends TSchema] ? TAddReadonlyDeferred<Type> : Input extends [string, '?', ':', /* */ infer Type extends TSchema] ? TAddOptionalDeferred<Type> : Input extends [string, /**/ ':', /* */ infer Type extends TSchema] ? Type : never);
634
+ type TElementBaseMapping<Input extends unknown | [unknown, unknown, unknown]> = (Input extends [infer IsReadonly extends boolean, infer Type extends TSchema, infer IsOptional extends boolean] ? ([IsReadonly, IsOptional] extends [true, true] ? TAddReadonlyDeferred<TAddOptionalDeferred<Type>> : [IsReadonly, IsOptional] extends [true, false] ? TAddReadonlyDeferred<Type> : [IsReadonly, IsOptional] extends [false, true] ? TAddOptionalDeferred<Type> : Type) : Input);
635
+ type TElementMapping<Input extends [unknown, unknown] | [unknown]> = (Input extends ['...', infer Type extends TSchema] ? TRest<Type> : Input extends [infer Type extends TSchema] ? Type : never);
636
+ type TElementListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
637
+ type T_Tuple_Mapping<Input extends [unknown, unknown, unknown]> = (Input extends ['[', infer Types extends TSchema[], ']'] ? TTuple<Types> : never);
638
+ type TParameterReadonlyOptionalMapping<Input extends [unknown, unknown, unknown, unknown, unknown]> = (Input extends [string, '?', ':', 'readonly', infer Type extends TSchema] ? TAddReadonlyDeferred<TAddOptionalDeferred<Type>> : never);
639
+ type TParameterReadonlyMapping<Input extends [unknown, unknown, unknown, unknown]> = (Input extends [string, ':', 'readonly', infer Type extends TSchema] ? TAddReadonlyDeferred<Type> : never);
640
+ type TParameterOptionalMapping<Input extends [unknown, unknown, unknown, unknown]> = (Input extends [string, '?', ':', infer Type extends TSchema] ? TAddOptionalDeferred<Type> : never);
641
+ type TParameterTypeMapping<Input extends [unknown, unknown, unknown]> = (Input extends [string, ':', infer Type extends TSchema] ? Type : never);
642
+ type TParameterBaseMapping<Input extends unknown> = (Input);
643
+ type TParameterMapping<Input extends [unknown, unknown] | [unknown]> = (Input extends ['...', infer Type extends TSchema] ? TRest<Type> : Input extends [infer Type extends TSchema] ? Type : never);
644
+ type TParameterListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
645
+ type T_Function_Mapping<Input extends [unknown, unknown, unknown, unknown, unknown]> = (Input extends ['(', infer ParameterList extends TSchema[], ')', '=>', infer ReturnType extends TSchema] ? TFunction<ParameterList, ReturnType> : never);
646
+ type T_Constructor_Mapping<Input extends [unknown, unknown, unknown, unknown, unknown, unknown]> = (Input extends ['new', '(', infer ParameterList extends TSchema[], ')', '=>', infer InstanceType extends TSchema] ? TConstructor<ParameterList, InstanceType> : never);
647
+ type TModifierOperation = 'add' | 'remove' | 'none';
648
+ type TApplyReadonly<Readonly extends TModifierOperation, Type extends TSchema> = (Readonly extends 'remove' ? TRemoveReadonlyDeferred<Type> : Readonly extends 'add' ? TAddReadonlyDeferred<Type> : Type);
649
+ type TMappedReadonlyMapping<Input extends [unknown, unknown] | [unknown] | []> = (Input extends ['-', 'readonly'] ? 'remove' : Input extends ['+', 'readonly'] ? 'add' : Input extends ['readonly'] ? 'add' : 'none');
650
+ type TApplyOptional<Optional extends TModifierOperation, Type extends TSchema> = (Optional extends 'remove' ? TRemoveOptionalDeferred<Type> : Optional extends 'add' ? TAddOptionalDeferred<Type> : Type);
651
+ type TMappedOptionalMapping<Input extends [unknown, unknown] | [unknown] | []> = (Input extends ['-', '?'] ? 'remove' : Input extends ['+', '?'] ? 'add' : Input extends ['?'] ? 'add' : 'none');
652
+ type TMappedAsMapping<Input extends [unknown, unknown] | []> = (Input extends ['as', infer Type extends TSchema] ? [Type] : []);
653
+ type T_Mapped_Mapping<Input extends [unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown]> = (Input extends ['{', infer Readonly extends TModifierOperation, '[', infer Key extends string, 'in', infer Type extends TSchema, infer As extends TSchema[], ']', infer Optional extends TModifierOperation, ':', infer Property extends TSchema, null, '}'] ? (As extends [infer As extends TSchema] ? TMappedDeferred<TIdentifier<Key>, Type, As, TApplyReadonly<Readonly, TApplyOptional<Optional, Property>>> : TMappedDeferred<TIdentifier<Key>, Type, TRef<Key>, TApplyReadonly<Readonly, TApplyOptional<Optional, Property>>>) : never);
654
+ type TReferenceMapping<Input extends string, Result extends TSchema = TRef<Input>> = Result;
655
+ type TWithBigIntMapping<Input extends string> = (Input extends `${infer Value extends bigint}` ? Value : never);
656
+ type TWithNumberMapping<Input extends string> = (Input extends `${infer Value extends number}` ? Value : never);
657
+ type TWithBooleanMapping<Input extends 'true' | 'false'> = (Input extends 'true' ? true : false);
658
+ type TWithStringMapping<Input extends string> = (Input);
659
+ type TWithNullMapping<Input extends 'null'> = (null);
660
+ type TWithUndefinedMapping<Input extends 'undefined'> = undefined;
661
+ type TWithPropertyMapping<Input extends [unknown, unknown, unknown]> = (Input extends [infer Key extends string, ':', infer Value extends unknown] ? { [_ in Key]: Value; } : never);
662
+ type TWithPropertyListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
663
+ type TWithObjectMappingReduce<PropertyList extends Record<PropertyKey, unknown>[], Result extends Record<PropertyKey, unknown> = {}> = (PropertyList extends [infer Left extends Record<PropertyKey, unknown>, ...infer Right extends Record<PropertyKey, unknown>[]] ? TWithObjectMappingReduce<Right, TAssign<Result, Left>> : { [Key in keyof Result]: Result[Key]; });
664
+ type TWithObjectMapping<Input extends [unknown, unknown, unknown]> = (Input extends ['{', infer PropertyList extends Record<PropertyKey, unknown>[], '}'] ? TWithObjectMappingReduce<PropertyList> : {});
665
+ type TWithElementListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
666
+ type TWithArrayMapping<Input extends [unknown, unknown, unknown]> = (Input extends ['[', infer Elements extends unknown[], ']'] ? Elements : never);
667
+ type TWithValueMapping<Input extends unknown> = (Input);
668
+ type TPatternBigIntMapping<Input extends '-?(?:0|[1-9][0-9]*)n'> = (TBigInt$1);
669
+ type TPatternStringMapping<Input extends '.*'> = (TString$1);
670
+ type TPatternNumberMapping<Input extends '-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?'> = (TNumber$1);
671
+ type TPatternIntegerMapping<Input extends '-?(?:0|[1-9][0-9]*)'> = (TInteger$1);
672
+ type TPatternNeverMapping<Input extends '(?!)'> = (TNever);
673
+ type TPatternTextMapping<Input extends string, Result extends TSchema = TLiteral<Input>> = Result;
674
+ type TPatternBaseMapping<Input extends unknown> = (Input);
675
+ type TPatternGroupMapping<Input extends [unknown, unknown, unknown]> = (Input extends ['(', infer Body extends TSchema[], ')'] ? TUnion<Body> : never);
676
+ type TPatternUnionMapping<Input extends [unknown, unknown, unknown] | [unknown] | []> = (Input extends [infer Term extends TSchema[], '|', infer Union extends TSchema[]] ? [...Term, ...Union] : Input extends [infer Term extends TSchema[]] ? [...Term] : []);
677
+ type TPatternTermMapping<Input extends [unknown, unknown]> = (Input extends [infer Left extends TSchema, infer Right extends TSchema[]] ? [Left, ...Right] : never);
678
+ type TPatternBodyMapping<Input extends unknown> = (Input);
679
+ type TPatternMapping<Input extends [unknown, unknown, unknown]> = (Input extends ['^', infer Body extends TSchema[], '$'] ? Body : never);
680
+ type TInterfaceDeclarationHeritageListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
681
+ type TInterfaceDeclarationHeritageMapping<Input extends [unknown, unknown] | []> = (Input extends ['extends', infer Heritage extends TSchema[]] ? Heritage : []);
682
+ type TInterfaceDeclarationGenericMapping<Input extends [unknown, unknown, unknown, unknown, unknown]> = (Input extends ['interface', infer Name extends string, infer Parameters extends TParameter$1[], infer Heritage extends TSchema[], infer Properties extends [TProperties, TProperties]] ? { [_ in Name]: TGeneric<Parameters, TInterfaceDeferred<Heritage, Properties[0]>>; } : never);
683
+ type TInterfaceDeclarationMapping<Input extends [unknown, unknown, unknown, unknown]> = (Input extends ['interface', infer Name extends string, infer Heritage extends TSchema[], infer Properties extends [TProperties, TProperties]] ? { [_ in Name]: TInterfaceDeferred<Heritage, Properties[0]>; } : never);
684
+ type TTypeAliasDeclarationGenericMapping<Input extends [unknown, unknown, unknown, unknown, unknown]> = (Input extends ['type', infer Name extends string, infer Parameters extends TParameter$1[], '=', infer Type extends TSchema] ? { [_ in Name]: TGeneric<Parameters, Type>; } : never);
685
+ type TTypeAliasDeclarationMapping<Input extends [unknown, unknown, unknown, unknown]> = (Input extends ['type', infer Name extends string, '=', infer Type extends TSchema] ? { [_ in Name]: Type; } : never);
686
+ type TExportKeywordMapping<Input extends [unknown] | []> = (null);
687
+ type TModuleDeclarationDelimiterMapping<Input extends [unknown, unknown] | [unknown]> = (Input);
688
+ type TModuleDeclarationListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
689
+ type TModuleDeclarationMapping<Input extends [unknown, unknown, unknown]> = (Input extends [null, infer ModuleDeclaration extends TProperties, null] ? ModuleDeclaration : never);
690
+ type TModuleMapping<Input extends [unknown, unknown]> = (Input extends [infer ModuleDeclaration extends TProperties, infer ModuleDeclarationList extends TProperties[]] ? TModuleDeferred<TAssign<ModuleDeclaration, TPropertiesReduce<ModuleDeclarationList>[0]>> : never);
691
+ type TScriptMapping<Input extends unknown> = (Input);
692
+ //#endregion
693
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/internal/take.d.mts
694
+ type TTakeVariant<Variant extends string, Input extends string> = (Input extends `${Variant}${infer Rest extends string}` ? [Variant, Rest] : []);
695
+ /** Takes one of the given variants or fail */
696
+ type TTake<Variants extends string[], Input extends string> = (Variants extends [infer ValueLeft extends string, ...infer ValueRight extends string[]] ? TTakeVariant<ValueLeft, Input> extends [infer Take extends string, infer Rest extends string] ? [Take, Rest] : TTake<ValueRight, Input> : []);
697
+ /** Takes one of the given variants or fail */
698
+ declare function Take<Variants extends string[], Input extends string>(variants: [...Variants], input: Input): TTake<Variants, Input>;
699
+ //#endregion
700
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/internal/char.d.mts
701
+ type TAlpha = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'];
702
+ type TZero = typeof Zero$1;
703
+ type TNonZero = ['1', '2', '3', '4', '5', '6', '7', '8', '9'];
704
+ type TDigit = [TZero, ...TNonZero];
705
+ declare const Zero$1 = "0";
706
+ declare const WhiteSpace = " ";
707
+ declare const NewLine = "\n";
708
+ declare const TabSpace = "\t";
709
+ declare const UnderScore = "_";
710
+ declare const Dot$1 = ".";
711
+ declare const DollarSign = "$";
712
+ declare const Hyphen = "-";
713
+ type TWhiteSpace = typeof WhiteSpace;
714
+ type TNewLine = typeof NewLine;
715
+ type TTabSpace = typeof TabSpace;
716
+ type TUnderScore = typeof UnderScore;
717
+ type TDot = typeof Dot$1;
718
+ type TDollarSign = typeof DollarSign;
719
+ type THyphen = typeof Hyphen;
720
+ //#endregion
721
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/internal/trim.d.mts
722
+ type LineComment = typeof LineComment;
723
+ type OpenComment = typeof OpenComment;
724
+ type CloseComment = typeof CloseComment;
725
+ declare const LineComment = "//";
726
+ declare const OpenComment = "/*";
727
+ declare const CloseComment = "*/";
728
+ type TDiscardMultiLineComment<Input extends string> = (Input extends `${string}${CloseComment}${infer Rest extends string}` ? Rest : '');
729
+ type TDiscardLineComment<Input extends string> = (Input extends `${string}${TNewLine}${infer Rest extends string}` ? TTrimWhitespace<`${TNewLine}${Rest}`> : '');
730
+ type W4 = `${W3}${W3}`;
731
+ type W3 = `${W2}${W2}`;
732
+ type W2 = `${W1}${W1}`;
733
+ type W1 = `${W0}${W0}`;
734
+ type W0 = ` `;
735
+ type TTrimWhitespace<Input extends string> = (Input extends `${OpenComment}${infer Rest extends string}` ? TTrimWhitespace<TDiscardMultiLineComment<Rest>> : Input extends `${LineComment}${infer Rest extends string}` ? TTrimWhitespace<TDiscardLineComment<Rest>> : Input extends `${W4}${infer Rest extends string}` ? TTrimWhitespace<Rest> : Input extends `${W3}${infer Rest extends string}` ? TTrimWhitespace<Rest> : Input extends `${W1}${infer Rest extends string}` ? TTrimWhitespace<Rest> : Input extends `${W0}${infer Rest extends string}` ? TTrimWhitespace<Rest> : Input);
736
+ type TTrim<Input extends string> = (Input extends `${OpenComment}${infer Rest extends string}` ? TTrim<TDiscardMultiLineComment<Rest>> : Input extends `${LineComment}${infer Rest extends string}` ? TTrim<TDiscardLineComment<Rest>> : Input extends `${TNewLine}${infer Rest extends string}` ? TTrim<Rest> : Input extends `${TTabSpace}${infer Rest extends string}` ? TTrim<Rest> : Input extends `${W4}${infer Rest extends string}` ? TTrim<Rest> : Input extends `${W3}${infer Rest extends string}` ? TTrim<Rest> : Input extends `${W1}${infer Rest extends string}` ? TTrim<Rest> : Input extends `${W0}${infer Rest extends string}` ? TTrim<Rest> : Input);
737
+ //#endregion
738
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/internal/optional.d.mts
739
+ /** Matches the given Value or empty string if no match. This function never fails */
740
+ type TOptional$2<Value extends string, Input extends string> = (TTake<[Value], Input> extends [infer Optional extends string, infer Rest extends string] ? [Optional$2, Rest] : ['', Input]);
741
+ /** Matches the given Value or empty string if no match. This function never fails */
742
+ declare function Optional$2<Value extends string, Input extends string>(value: Value, input: Input): TOptional$2<Value, Value>;
743
+ //#endregion
744
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/internal/many.d.mts
745
+ type TIsDiscard<Discard extends string[], Input extends string> = (Discard extends [infer Left extends string, ...infer Right extends string[]] ? Input extends Left ? true : TIsDiscard<Right, Input> : false);
746
+ /** Takes characters from the Input until no-match. The Discard set is used to omit characters from the match */
747
+ type TMany<Allowed extends string[], Discard extends string[], Input extends string, Result extends string = ''> = (TTake<Allowed, Input> extends [infer Char extends string, infer Rest extends string] ? TIsDiscard<Discard, Char> extends true ? TMany<Allowed, Discard, Rest, Result> : TMany<Allowed, Discard, Rest, `${Result}${Char}`> : [Result, Input]);
748
+ //#endregion
749
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/unsigned_integer.d.mts
750
+ type TTakeNonZero<Input extends string> = (TTake<TNonZero, Input>);
751
+ type TAllowedDigits$1 = [...TDigit, TUnderScore];
752
+ type TTakeDigits<Input extends string> = (TMany<TAllowedDigits$1, [TUnderScore], Input>);
753
+ type TTakeUnsignedInteger<Input extends string> = (TTake<[TZero], Input> extends [infer Zero extends string, infer ZeroRest extends string] ? [Zero, ZeroRest] : TTakeNonZero<Input> extends [infer NonZero extends string, infer NonZeroRest extends string] ? TTakeDigits<NonZeroRest> extends [infer Digits extends string, infer DigitsRest extends string] ? [`${NonZero}${Digits}`, DigitsRest] : [] : []);
754
+ /** Matches if next is a UnsignedInteger */
755
+ type TUnsignedInteger<Input extends string> = (TTakeUnsignedInteger<TTrim<Input>>);
756
+ //#endregion
757
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/integer.d.mts
758
+ type TTakeSign$1<Input extends string> = (TOptional$2<THyphen, Input>);
759
+ type TTakeSignedInteger<Input extends string> = (TTakeSign$1<Input> extends [infer Sign extends string, infer SignRest extends string] ? TUnsignedInteger<SignRest> extends [infer UnsignedInteger extends string, infer UnsignedIntegerRest extends string] ? [`${Sign}${UnsignedInteger}`, UnsignedIntegerRest] : [] : []);
760
+ /** Matches if next is a signed or unsigned Integer */
761
+ type TInteger<Input extends string> = (TTakeSignedInteger<TTrim<Input>>);
762
+ //#endregion
763
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/bigint.d.mts
764
+ type TTakeBigInt<Input extends string> = (TInteger<Input> extends [infer Integer extends string, infer IntegerRest extends string] ? TTake<['n'], IntegerRest> extends [infer _N extends string, infer NRest extends string] ? [`${Integer}`, NRest] : [] : []);
765
+ /** Matches if next is a Integer literal with trailing 'n'. Trailing 'n' is omitted in result. */
766
+ type TBigInt<Input extends string> = (TTakeBigInt<Input>);
767
+ //#endregion
768
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/const.d.mts
769
+ type TTakeConst<Const extends string, Input extends string> = (TTake<[Const], Input>);
770
+ /** Matches if next is the given Const value */
771
+ type TConst<Const extends string, Input extends string> = (Const extends '' ? ['', Input] : Const extends `${infer First extends string}${string}` ? (First extends TNewLine ? TTakeConst<Const, TTrimWhitespace<Input>> : First extends TWhiteSpace ? TTakeConst<Const, Input> : TTakeConst<Const, TTrim<Input>>) : never);
772
+ //#endregion
773
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/ident.d.mts
774
+ type TInitial = [...TAlpha, TUnderScore, TDollarSign];
775
+ type TTakeInitial$1<Input extends string> = (TTake<TInitial, Input>);
776
+ type TRemaining = [...TInitial, ...TDigit];
777
+ type TTakeRemaining<Input extends string, Result extends string = ''> = (TTake<TRemaining, Input> extends [infer Remaining extends string, infer RemainingRest extends string] ? TTakeRemaining<RemainingRest, `${Result}${Remaining}`> : [Result, Input]);
778
+ type TTakeIdent<Input extends string> = (TTakeInitial$1<Input> extends [infer Initial extends string, infer InitialRest extends string] ? TTakeRemaining<InitialRest> extends [infer Remaining extends string, infer RemainingRest extends string] ? [`${Initial}${Remaining}`, RemainingRest] : [] : []);
779
+ /** Matches if next is an Ident */
780
+ type TIdent<Input extends string> = (TTakeIdent<TTrim<Input>>);
781
+ //#endregion
782
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/unsigned_number.d.mts
783
+ type TAllowedDigits = [...TDigit, TUnderScore];
784
+ type TIsLeadingDot<Input extends string> = (TTake<[TDot], Input> extends [string, string] ? true : false);
785
+ type TTakeFractional<Input extends string> = (TMany<TAllowedDigits, [TUnderScore], Input> extends [infer Digits extends string, infer DigitsRest extends string] ? Digits extends '' ? [] : [Digits, DigitsRest] : []);
786
+ type TLeadingDot<Input extends string> = (TTake<[TDot], Input> extends [infer Dot extends string, infer DotRest extends string] ? TTakeFractional<DotRest> extends [infer Fractional extends string, infer FractionalRest extends string] ? [`0${Dot}${Fractional}`, FractionalRest] : [] : []);
787
+ type TLeadingInteger<Input extends string> = (TUnsignedInteger<Input> extends [infer Integer extends string, infer IntegerRest extends string] ? TTake<[TDot], IntegerRest> extends [infer Dot extends string, infer DotRest extends string] ? TTakeFractional<DotRest> extends [infer Fractional extends string, infer FractionalRest extends string] ? [`${Integer}${Dot}${Fractional}`, FractionalRest] : [`${Integer}`, DotRest] : [`${Integer}`, IntegerRest] : []);
788
+ type TTakeUnsignedNumber<Input extends string> = (TIsLeadingDot<Input> extends true ? TLeadingDot<Input> : TLeadingInteger<Input>);
789
+ /** Matches if next is a UnsignedNumber */
790
+ type TUnsignedNumber<Input extends string> = (TTakeUnsignedNumber<TTrim<Input>>);
791
+ //#endregion
792
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/number.d.mts
793
+ type TTakeSign<Input extends string> = (TOptional$2<THyphen, Input>);
794
+ type TTakeSignedNumber<Input extends string> = (TTakeSign<Input> extends [infer Sign extends string, infer SignRest extends string] ? TUnsignedNumber<SignRest> extends [infer UnsignedInteger extends string, infer UnsignedIntegerRest extends string] ? [`${Sign}${UnsignedInteger}`, UnsignedIntegerRest] : [] : []);
795
+ /** Matches if next is a signed or unsigned Number */
796
+ type TNumber<Input extends string> = (TTakeSignedNumber<TTrim<Input>>);
797
+ //#endregion
798
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/until.d.mts
799
+ type TTakeOne<Input extends string> = (Input extends `${infer Left extends string}${infer Right extends string}` ? [Left, Right] : []);
800
+ type TIsInputMatchSentinal<End extends string[], Input extends string> = (End extends [infer Left extends string, ...infer Right extends string[]] ? Input extends `${Left}${string}` ? true : TIsInputMatchSentinal<Right, Input> : false);
801
+ /** Match Input until but not including End. No match if End not found. */
802
+ type TUntil<End extends string[], Input extends string, Result extends string = ''> = (TTakeOne<Input> extends [infer One extends string, infer Rest extends string] ? TIsInputMatchSentinal<End, Input> extends true ? [Result, Input] : TUntil<End, Rest, `${Result}${One}`> : []);
803
+ //#endregion
804
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/span.d.mts
805
+ type TMultiLine<Start extends string, End extends string, Input extends string> = (TTake<[Start], Input> extends [infer _, infer Rest extends string] ? TUntil<[End], Rest> extends [infer Until extends string, infer UntilRest extends string] ? TTake<[End], UntilRest> extends [infer _ extends string, infer Rest extends string] ? [`${Until}`, Rest] : [] : [] : []);
806
+ type TSingleLine<Start extends string, End extends string, Input extends string> = (TTake<[Start], Input> extends [infer _ extends string, infer Rest extends string] ? TUntil<[TNewLine, End], Rest> extends [infer Until extends string, infer UntilRest extends string] ? TTake<[End], UntilRest> extends [infer _ extends string, infer EndRest extends string] ? [`${Until}`, EndRest] : [] : [] : []);
807
+ /** Matches from Start and End capturing everything in-between. Start and End are consumed. */
808
+ type TSpan<Start extends string, End extends string, MultiLine extends boolean, Input extends string> = (MultiLine extends true ? TMultiLine<Start, End, TTrim<Input>> : TSingleLine<Start, End, TTrim<Input>>);
809
+ //#endregion
810
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/string.d.mts
811
+ type TTakeInitial<Quotes extends string[], Input extends string> = (TTake<Quotes, Input>);
812
+ type TTakeSpan<Quote extends string, Input extends string> = (TSpan<Quote, Quote, false, Input>);
813
+ type TTakeString<Quotes extends string[], Input extends string> = (TTakeInitial<Quotes, Input> extends [infer Initial extends string, infer InitialRest extends string] ? TTakeSpan<Initial, `${Initial}${InitialRest}`> : []);
814
+ /** Matches a literal String with the given quotes */
815
+ type TString<Quotes extends string[], Input extends string> = (TTakeString<Quotes, TTrim<Input>>);
816
+ //#endregion
817
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/until_1.d.mts
818
+ /** Match Input until but not including End. No match if End not found or match is zero-length. */
819
+ type TUntil_1<End extends string[], Input extends string> = (TUntil<End, Input> extends [infer Until extends string, infer UntilRest extends string] ? Until extends '' ? [] : [Until, UntilRest] : []);
820
+ //#endregion
821
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/parser.d.mts
822
+ type TGenericParameterExtendsEquals<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<'extends', Input> extends [infer _1, infer Input extends string] ? (TType<Input> extends [infer _2, infer Input extends string] ? (TConst<'=', Input> extends [infer _3, infer Input extends string] ? (TType<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TGenericParameterExtendsEqualsMapping<_0>, Input] : [];
823
+ type TGenericParameterExtends<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<'extends', Input> extends [infer _1, infer Input extends string] ? (TType<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TGenericParameterExtendsMapping<_0>, Input] : [];
824
+ type TGenericParameterEquals<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<'=', Input> extends [infer _1, infer Input extends string] ? (TType<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TGenericParameterEqualsMapping<_0>, Input] : [];
825
+ type TGenericParameterIdentifier<Input extends string> = TIdent<Input> extends [infer _0 extends string, infer Input extends string] ? [TGenericParameterIdentifierMapping<_0>, Input] : [];
826
+ type TGenericParameter<Input extends string> = (TGenericParameterExtendsEquals<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TGenericParameterExtends<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TGenericParameterEquals<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TGenericParameterIdentifier<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TGenericParameterMapping<_0>, Input] : [];
827
+ type TGenericParameterList_0<Input extends string, Result extends unknown[] = []> = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TGenericParameter<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TGenericParameterList_0<Input, [...Result, _0]> : [Result, Input];
828
+ type TGenericParameterList<Input extends string> = ((TGenericParameter<Input> extends [infer _0, infer Input extends string] ? (TGenericParameterList_0<Input> extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TGenericParameterListMapping<_0>, Input] : [];
829
+ type TGenericParameters<Input extends string> = (TConst<'<', Input> extends [infer _0, infer Input extends string] ? (TGenericParameterList<Input> extends [infer _1, infer Input extends string] ? (TConst<'>', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TGenericParametersMapping<_0>, Input] : [];
830
+ type TGenericCallArgumentList_0<Input extends string, Result extends unknown[] = []> = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TGenericCallArgumentList_0<Input, [...Result, _0]> : [Result, Input];
831
+ type TGenericCallArgumentList<Input extends string> = ((TType<Input> extends [infer _0, infer Input extends string] ? (TGenericCallArgumentList_0<Input> extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TGenericCallArgumentListMapping<_0>, Input] : [];
832
+ type TGenericCallArguments<Input extends string> = (TConst<'<', Input> extends [infer _0, infer Input extends string] ? (TGenericCallArgumentList<Input> extends [infer _1, infer Input extends string] ? (TConst<'>', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TGenericCallArgumentsMapping<_0>, Input] : [];
833
+ type TGenericCall<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TGenericCallArguments<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TGenericCallMapping<_0>, Input] : [];
834
+ type TOptionalSemiColon<Input extends string> = ((TConst<';', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown] | [], infer Input extends string] ? [TOptionalSemiColonMapping<_0>, Input] : [];
835
+ type TKeywordString<Input extends string> = TConst<'string', Input> extends [infer _0 extends 'string', infer Input extends string] ? [TKeywordStringMapping<_0>, Input] : [];
836
+ type TKeywordNumber<Input extends string> = TConst<'number', Input> extends [infer _0 extends 'number', infer Input extends string] ? [TKeywordNumberMapping<_0>, Input] : [];
837
+ type TKeywordBoolean<Input extends string> = TConst<'boolean', Input> extends [infer _0 extends 'boolean', infer Input extends string] ? [TKeywordBooleanMapping<_0>, Input] : [];
838
+ type TKeywordUndefined<Input extends string> = TConst<'undefined', Input> extends [infer _0 extends 'undefined', infer Input extends string] ? [TKeywordUndefinedMapping<_0>, Input] : [];
839
+ type TKeywordNull<Input extends string> = TConst<'null', Input> extends [infer _0 extends 'null', infer Input extends string] ? [TKeywordNullMapping<_0>, Input] : [];
840
+ type TKeywordInteger<Input extends string> = TConst<'integer', Input> extends [infer _0 extends 'integer', infer Input extends string] ? [TKeywordIntegerMapping<_0>, Input] : [];
841
+ type TKeywordBigInt<Input extends string> = TConst<'bigint', Input> extends [infer _0 extends 'bigint', infer Input extends string] ? [TKeywordBigIntMapping<_0>, Input] : [];
842
+ type TKeywordUnknown<Input extends string> = TConst<'unknown', Input> extends [infer _0 extends 'unknown', infer Input extends string] ? [TKeywordUnknownMapping<_0>, Input] : [];
843
+ type TKeywordAny<Input extends string> = TConst<'any', Input> extends [infer _0 extends 'any', infer Input extends string] ? [TKeywordAnyMapping<_0>, Input] : [];
844
+ type TKeywordObject<Input extends string> = TConst<'object', Input> extends [infer _0 extends 'object', infer Input extends string] ? [TKeywordObjectMapping<_0>, Input] : [];
845
+ type TKeywordNever<Input extends string> = TConst<'never', Input> extends [infer _0 extends 'never', infer Input extends string] ? [TKeywordNeverMapping<_0>, Input] : [];
846
+ type TKeywordSymbol<Input extends string> = TConst<'symbol', Input> extends [infer _0 extends 'symbol', infer Input extends string] ? [TKeywordSymbolMapping<_0>, Input] : [];
847
+ type TKeywordVoid<Input extends string> = TConst<'void', Input> extends [infer _0 extends 'void', infer Input extends string] ? [TKeywordVoidMapping<_0>, Input] : [];
848
+ type TKeywordThis<Input extends string> = TConst<'this', Input> extends [infer _0 extends 'this', infer Input extends string] ? [TKeywordThisMapping<_0>, Input] : [];
849
+ type TTemplateInterpolate<Input extends string> = (TConst<'${', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? (TConst<'}', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TTemplateInterpolateMapping<_0>, Input] : [];
850
+ type TTemplateSpan<Input extends string> = TUntil<['${', '`'], Input> extends [infer _0 extends string, infer Input extends string] ? [TTemplateSpanMapping<_0>, Input] : [];
851
+ type TTemplateBody<Input extends string> = ((TTemplateSpan<Input> extends [infer _0, infer Input extends string] ? (TTemplateInterpolate<Input> extends [infer _1, infer Input extends string] ? (TTemplateBody<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TTemplateSpan<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TTemplateSpan<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [unknown], infer Input extends string] ? [TTemplateBodyMapping<_0>, Input] : [];
852
+ type TTemplateLiteralTypes<Input extends string> = (TConst<'`', Input> extends [infer _0, infer Input extends string] ? (TTemplateBody<Input> extends [infer _1, infer Input extends string] ? (TConst<'`', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TTemplateLiteralTypesMapping<_0>, Input] : [];
853
+ type TTemplateLiteral$1<Input extends string> = TTemplateLiteralTypes<Input> extends [infer _0 extends unknown, infer Input extends string] ? [TTemplateLiteralMapping<_0>, Input] : [];
854
+ type TDependent<Input extends string> = ((TConst<'if', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? (TConst<'then', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? (TConst<'else', Input> extends [infer _4, infer Input extends string] ? (TType<Input> extends [infer _5, infer Input extends string] ? [[_0, _1, _2, _3, _4, _5], Input] : []) : []) : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'if', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? (TConst<'then', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown, unknown] | [unknown, unknown, unknown, unknown], infer Input extends string] ? [TDependentMapping<_0>, Input] : [];
855
+ type TLiteralBigInt<Input extends string> = TBigInt<Input> extends [infer _0 extends string, infer Input extends string] ? [TLiteralBigIntMapping<_0>, Input] : [];
856
+ type TLiteralBoolean<Input extends string> = (TConst<'true', Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TConst<'false', Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends 'true' | 'false', infer Input extends string] ? [TLiteralBooleanMapping<_0>, Input] : [];
857
+ type TLiteralNumber<Input extends string> = TNumber<Input> extends [infer _0 extends string, infer Input extends string] ? [TLiteralNumberMapping<_0>, Input] : [];
858
+ type TLiteralString<Input extends string> = TString<['\'', '"'], Input> extends [infer _0 extends string, infer Input extends string] ? [TLiteralStringMapping<_0>, Input] : [];
859
+ type TKeyOf$1<Input extends string> = ((TConst<'keyof', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown] | [], infer Input extends string] ? [TKeyOfMapping<_0>, Input] : [];
860
+ type TIndexArray_0<Input extends string, Result extends unknown[] = []> = ((TConst<'[', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? (TConst<']', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'[', Input> extends [infer _0, infer Input extends string] ? (TConst<']', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0, infer Input extends string] ? TIndexArray_0<Input, [...Result, _0]> : [Result, Input];
861
+ type TIndexArray<Input extends string> = TIndexArray_0<Input> extends [infer _0 extends ([unknown, unknown, unknown] | [unknown, unknown])[], infer Input extends string] ? [TIndexArrayMapping<_0>, Input] : [];
862
+ type TExtends$1<Input extends string> = ((TConst<'extends', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? (TConst<'?', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? (TConst<':', Input> extends [infer _4, infer Input extends string] ? (TType<Input> extends [infer _5, infer Input extends string] ? [[_0, _1, _2, _3, _4, _5], Input] : []) : []) : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown, unknown] | [], infer Input extends string] ? [TExtendsMapping<_0>, Input] : [];
863
+ type TBase<Input extends string> = ((TConst<'(', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? (TConst<')', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordString<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordNumber<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordBoolean<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordUndefined<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordNull<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordInteger<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordBigInt<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordUnknown<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordAny<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordObject<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordNever<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordSymbol<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordVoid<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordThis<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TLiteralBigInt<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TLiteralBoolean<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TLiteralNumber<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TLiteralString<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TTemplateLiteral$1<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TDependent<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : T_Object_<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : T_Tuple_<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : T_Constructor_<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : T_Function_<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : T_Mapped_<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TGenericCall<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TReference<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | unknown, infer Input extends string] ? [TBaseMapping<_0>, Input] : [];
864
+ type TWith$1<Input extends string> = ((TConst<'with', Input> extends [infer _0, infer Input extends string] ? (TWithObject<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [], infer Input extends string] ? [TWithMapping<_0>, Input] : [];
865
+ type TFactor<Input extends string> = (TKeyOf$1<Input> extends [infer _0, infer Input extends string] ? (TBase<Input> extends [infer _1, infer Input extends string] ? (TIndexArray<Input> extends [infer _2, infer Input extends string] ? (TExtends$1<Input> extends [infer _3, infer Input extends string] ? (TWith$1<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TFactorMapping<_0>, Input] : [];
866
+ type TExprTermTail<Input extends string> = ((TConst<'&', Input> extends [infer _0, infer Input extends string] ? (TFactor<Input> extends [infer _1, infer Input extends string] ? (TExprTermTail<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TExprTermTailMapping<_0>, Input] : [];
867
+ type TExprTerm<Input extends string> = (TFactor<Input> extends [infer _0, infer Input extends string] ? (TExprTermTail<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TExprTermMapping<_0>, Input] : [];
868
+ type TExprTail<Input extends string> = ((TConst<'|', Input> extends [infer _0, infer Input extends string] ? (TExprTerm<Input> extends [infer _1, infer Input extends string] ? (TExprTail<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TExprTailMapping<_0>, Input] : [];
869
+ type TExpr<Input extends string> = (TExprTerm<Input> extends [infer _0, infer Input extends string] ? (TExprTail<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TExprMapping<_0>, Input] : [];
870
+ type TExprReadonly<Input extends string> = (TConst<'readonly', Input> extends [infer _0, infer Input extends string] ? (TExpr<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TExprReadonlyMapping<_0>, Input] : [];
871
+ type TExprPipe<Input extends string> = (TConst<'|', Input> extends [infer _0, infer Input extends string] ? (TExpr<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TExprPipeMapping<_0>, Input] : [];
872
+ type TGenericType<Input extends string> = (TGenericParameters<Input> extends [infer _0, infer Input extends string] ? (TConst<'=', Input> extends [infer _1, infer Input extends string] ? (TType<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TGenericTypeMapping<_0>, Input] : [];
873
+ type TInferType<Input extends string> = ((TConst<'infer', Input> extends [infer _0, infer Input extends string] ? (TIdent<Input> extends [infer _1, infer Input extends string] ? (TConst<'extends', Input> extends [infer _2, infer Input extends string] ? (TExpr<Input> extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'infer', Input> extends [infer _0, infer Input extends string] ? (TIdent<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown, unknown] | [unknown, unknown], infer Input extends string] ? [TInferTypeMapping<_0>, Input] : [];
874
+ type TType<Input extends string> = (TInferType<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TExprPipe<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TExprReadonly<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TExpr<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TTypeMapping<_0>, Input] : [];
875
+ type TPropertyKeyNumber<Input extends string> = TNumber<Input> extends [infer _0 extends string, infer Input extends string] ? [TPropertyKeyNumberMapping<_0>, Input] : [];
876
+ type TPropertyKeyIdent<Input extends string> = TIdent<Input> extends [infer _0 extends string, infer Input extends string] ? [TPropertyKeyIdentMapping<_0>, Input] : [];
877
+ type TPropertyKeyQuoted<Input extends string> = TString<['\'', '"'], Input> extends [infer _0 extends string, infer Input extends string] ? [TPropertyKeyQuotedMapping<_0>, Input] : [];
878
+ type TPropertyKeyIndex<Input extends string> = (TConst<'[', Input> extends [infer _0, infer Input extends string] ? (TIdent<Input> extends [infer _1, infer Input extends string] ? (TConst<':', Input> extends [infer _2, infer Input extends string] ? ((TKeywordInteger<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordNumber<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordString<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordSymbol<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _3, infer Input extends string] ? (TConst<']', Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TPropertyKeyIndexMapping<_0>, Input] : [];
879
+ type TPropertyKey<Input extends string> = (TPropertyKeyNumber<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPropertyKeyIdent<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPropertyKeyQuoted<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPropertyKeyIndex<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TPropertyKeyMapping<_0>, Input] : [];
880
+ type TReadonly<Input extends string> = ((TConst<'readonly', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown] | [], infer Input extends string] ? [TReadonlyMapping<_0>, Input] : [];
881
+ type TOptional$1<Input extends string> = ((TConst<'?', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown] | [], infer Input extends string] ? [TOptionalMapping<_0>, Input] : [];
882
+ type TProperty<Input extends string> = (TReadonly<Input> extends [infer _0, infer Input extends string] ? (TPropertyKey<Input> extends [infer _1, infer Input extends string] ? (TOptional$1<Input> extends [infer _2, infer Input extends string] ? (TConst<':', Input> extends [infer _3, infer Input extends string] ? (TType<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TPropertyMapping<_0>, Input] : [];
883
+ type TPropertyDelimiter<Input extends string> = ((TConst<',', Input> extends [infer _0, infer Input extends string] ? (TConst<'\n', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<';', Input> extends [infer _0, infer Input extends string] ? (TConst<'\n', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<';', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'\n', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [unknown], infer Input extends string] ? [TPropertyDelimiterMapping<_0>, Input] : [];
884
+ type TPropertyList_0<Input extends string, Result extends unknown[] = []> = (TPropertyDelimiter<Input> extends [infer _0, infer Input extends string] ? (TProperty<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TPropertyList_0<Input, [...Result, _0]> : [Result, Input];
885
+ type TPropertyList<Input extends string> = ((TProperty<Input> extends [infer _0, infer Input extends string] ? (TPropertyList_0<Input> extends [infer _1, infer Input extends string] ? ((TPropertyDelimiter<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TPropertyListMapping<_0>, Input] : [];
886
+ type TProperties$1<Input extends string> = (TConst<'{', Input> extends [infer _0, infer Input extends string] ? (TPropertyList<Input> extends [infer _1, infer Input extends string] ? (TConst<'}', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TPropertiesMapping<_0>, Input] : [];
887
+ type T_Object_<Input extends string> = TProperties$1<Input> extends [infer _0 extends unknown, infer Input extends string] ? [T_Object_Mapping<_0>, Input] : [];
888
+ type TElementNamed<Input extends string> = ((TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? (TConst<':', Input> extends [infer _2, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _3, infer Input extends string] ? (TType<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<':', Input> extends [infer _1, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? (TConst<':', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<':', Input> extends [infer _1, infer Input extends string] ? (TType<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown] | [unknown, unknown, unknown, unknown] | [unknown, unknown, unknown], infer Input extends string] ? [TElementNamedMapping<_0>, Input] : [];
889
+ type TElementBase<Input extends string> = (TElementNamed<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : (TReadonly<Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? (TOptional$1<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown | [unknown, unknown, unknown], infer Input extends string] ? [TElementBaseMapping<_0>, Input] : [];
890
+ type TElement<Input extends string> = ((TConst<'...', Input> extends [infer _0, infer Input extends string] ? (TElementBase<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TElementBase<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [unknown], infer Input extends string] ? [TElementMapping<_0>, Input] : [];
891
+ type TElementList_0<Input extends string, Result extends unknown[] = []> = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TElement<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TElementList_0<Input, [...Result, _0]> : [Result, Input];
892
+ type TElementList<Input extends string> = ((TElement<Input> extends [infer _0, infer Input extends string] ? (TElementList_0<Input> extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TElementListMapping<_0>, Input] : [];
893
+ type T_Tuple_<Input extends string> = (TConst<'[', Input> extends [infer _0, infer Input extends string] ? (TElementList<Input> extends [infer _1, infer Input extends string] ? (TConst<']', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [T_Tuple_Mapping<_0>, Input] : [];
894
+ type TParameterReadonlyOptional<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? (TConst<':', Input> extends [infer _2, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _3, infer Input extends string] ? (TType<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TParameterReadonlyOptionalMapping<_0>, Input] : [];
895
+ type TParameterReadonly<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<':', Input> extends [infer _1, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown], infer Input extends string] ? [TParameterReadonlyMapping<_0>, Input] : [];
896
+ type TParameterOptional<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? (TConst<':', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown], infer Input extends string] ? [TParameterOptionalMapping<_0>, Input] : [];
897
+ type TParameterType<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<':', Input> extends [infer _1, infer Input extends string] ? (TType<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TParameterTypeMapping<_0>, Input] : [];
898
+ type TParameterBase<Input extends string> = (TParameterReadonlyOptional<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TParameterReadonly<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TParameterOptional<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TParameterType<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TParameterBaseMapping<_0>, Input] : [];
899
+ type TParameter<Input extends string> = ((TConst<'...', Input> extends [infer _0, infer Input extends string] ? (TParameterBase<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TParameterBase<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [unknown], infer Input extends string] ? [TParameterMapping<_0>, Input] : [];
900
+ type TParameterList_0<Input extends string, Result extends unknown[] = []> = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TParameter<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TParameterList_0<Input, [...Result, _0]> : [Result, Input];
901
+ type TParameterList<Input extends string> = ((TParameter<Input> extends [infer _0, infer Input extends string] ? (TParameterList_0<Input> extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TParameterListMapping<_0>, Input] : [];
902
+ type T_Function_<Input extends string> = (TConst<'(', Input> extends [infer _0, infer Input extends string] ? (TParameterList<Input> extends [infer _1, infer Input extends string] ? (TConst<')', Input> extends [infer _2, infer Input extends string] ? (TConst<'=>', Input> extends [infer _3, infer Input extends string] ? (TType<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [T_Function_Mapping<_0>, Input] : [];
903
+ type T_Constructor_<Input extends string> = (TConst<'new', Input> extends [infer _0, infer Input extends string] ? (TConst<'(', Input> extends [infer _1, infer Input extends string] ? (TParameterList<Input> extends [infer _2, infer Input extends string] ? (TConst<')', Input> extends [infer _3, infer Input extends string] ? (TConst<'=>', Input> extends [infer _4, infer Input extends string] ? (TType<Input> extends [infer _5, infer Input extends string] ? [[_0, _1, _2, _3, _4, _5], Input] : []) : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [T_Constructor_Mapping<_0>, Input] : [];
904
+ type TMappedReadonly<Input extends string> = ((TConst<'+', Input> extends [infer _0, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'-', Input> extends [infer _0, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'readonly', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [unknown] | [], infer Input extends string] ? [TMappedReadonlyMapping<_0>, Input] : [];
905
+ type TMappedOptional<Input extends string> = ((TConst<'+', Input> extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'-', Input> extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'?', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [unknown] | [], infer Input extends string] ? [TMappedOptionalMapping<_0>, Input] : [];
906
+ type TMappedAs<Input extends string> = ((TConst<'as', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [], infer Input extends string] ? [TMappedAsMapping<_0>, Input] : [];
907
+ type T_Mapped_<Input extends string> = (TConst<'{', Input> extends [infer _0, infer Input extends string] ? (TMappedReadonly<Input> extends [infer _1, infer Input extends string] ? (TConst<'[', Input> extends [infer _2, infer Input extends string] ? (TIdent<Input> extends [infer _3, infer Input extends string] ? (TConst<'in', Input> extends [infer _4, infer Input extends string] ? (TType<Input> extends [infer _5, infer Input extends string] ? (TMappedAs<Input> extends [infer _6, infer Input extends string] ? (TConst<']', Input> extends [infer _7, infer Input extends string] ? (TMappedOptional<Input> extends [infer _8, infer Input extends string] ? (TConst<':', Input> extends [infer _9, infer Input extends string] ? (TType<Input> extends [infer _10, infer Input extends string] ? (TOptionalSemiColon<Input> extends [infer _11, infer Input extends string] ? (TConst<'}', Input> extends [infer _12, infer Input extends string] ? [[_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12], Input] : []) : []) : []) : []) : []) : []) : []) : []) : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [T_Mapped_Mapping<_0>, Input] : [];
908
+ type TReference<Input extends string> = TIdent<Input> extends [infer _0 extends string, infer Input extends string] ? [TReferenceMapping<_0>, Input] : [];
909
+ type TWithBigInt<Input extends string> = TBigInt<Input> extends [infer _0 extends string, infer Input extends string] ? [TWithBigIntMapping<_0>, Input] : [];
910
+ type TWithNumber<Input extends string> = TNumber<Input> extends [infer _0 extends string, infer Input extends string] ? [TWithNumberMapping<_0>, Input] : [];
911
+ type TWithBoolean<Input extends string> = (TConst<'true', Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TConst<'false', Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends 'true' | 'false', infer Input extends string] ? [TWithBooleanMapping<_0>, Input] : [];
912
+ type TWithString<Input extends string> = TString<['"', '\''], Input> extends [infer _0 extends string, infer Input extends string] ? [TWithStringMapping<_0>, Input] : [];
913
+ type TWithNull<Input extends string> = TConst<'null', Input> extends [infer _0 extends 'null', infer Input extends string] ? [TWithNullMapping<_0>, Input] : [];
914
+ type TWithUndefined<Input extends string> = TConst<'undefined', Input> extends [infer _0 extends 'undefined', infer Input extends string] ? [TWithUndefinedMapping<_0>, Input] : [];
915
+ type TWithProperty<Input extends string> = (TPropertyKey<Input> extends [infer _0, infer Input extends string] ? (TConst<':', Input> extends [infer _1, infer Input extends string] ? (TWithValue<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TWithPropertyMapping<_0>, Input] : [];
916
+ type TWithPropertyList_0<Input extends string, Result extends unknown[] = []> = (TPropertyDelimiter<Input> extends [infer _0, infer Input extends string] ? (TWithProperty<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TWithPropertyList_0<Input, [...Result, _0]> : [Result, Input];
917
+ type TWithPropertyList<Input extends string> = ((TWithProperty<Input> extends [infer _0, infer Input extends string] ? (TWithPropertyList_0<Input> extends [infer _1, infer Input extends string] ? ((TPropertyDelimiter<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TWithPropertyListMapping<_0>, Input] : [];
918
+ type TWithObject<Input extends string> = (TConst<'{', Input> extends [infer _0, infer Input extends string] ? (TWithPropertyList<Input> extends [infer _1, infer Input extends string] ? (TConst<'}', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TWithObjectMapping<_0>, Input] : [];
919
+ type TWithElementList_0<Input extends string, Result extends unknown[] = []> = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TWithValue<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TWithElementList_0<Input, [...Result, _0]> : [Result, Input];
920
+ type TWithElementList<Input extends string> = ((TWithValue<Input> extends [infer _0, infer Input extends string] ? (TWithElementList_0<Input> extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TWithElementListMapping<_0>, Input] : [];
921
+ type TWithArray<Input extends string> = (TConst<'[', Input> extends [infer _0, infer Input extends string] ? (TWithElementList<Input> extends [infer _1, infer Input extends string] ? (TConst<']', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TWithArrayMapping<_0>, Input] : [];
922
+ type TWithValue<Input extends string> = (TWithBigInt<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithNumber<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithBoolean<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithString<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithNull<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithUndefined<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithObject<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithArray<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TWithValueMapping<_0>, Input] : [];
923
+ type TPatternBigInt<Input extends string> = TConst<'-?(?:0|[1-9][0-9]*)n', Input> extends [infer _0 extends '-?(?:0|[1-9][0-9]*)n', infer Input extends string] ? [TPatternBigIntMapping<_0>, Input] : [];
924
+ type TPatternString<Input extends string> = TConst<'.*', Input> extends [infer _0 extends '.*', infer Input extends string] ? [TPatternStringMapping<_0>, Input] : [];
925
+ type TPatternNumber<Input extends string> = TConst<'-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?', Input> extends [infer _0 extends '-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?', infer Input extends string] ? [TPatternNumberMapping<_0>, Input] : [];
926
+ type TPatternInteger<Input extends string> = TConst<'-?(?:0|[1-9][0-9]*)', Input> extends [infer _0 extends '-?(?:0|[1-9][0-9]*)', infer Input extends string] ? [TPatternIntegerMapping<_0>, Input] : [];
927
+ type TPatternNever<Input extends string> = TConst<'(?!)', Input> extends [infer _0 extends '(?!)', infer Input extends string] ? [TPatternNeverMapping<_0>, Input] : [];
928
+ type TPatternText<Input extends string> = TUntil_1<['-?(?:0|[1-9][0-9]*)n', '.*', '-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?', '-?(?:0|[1-9][0-9]*)', '(?!)', '(', ')', '$', '|'], Input> extends [infer _0 extends string, infer Input extends string] ? [TPatternTextMapping<_0>, Input] : [];
929
+ type TPatternBase<Input extends string> = (TPatternBigInt<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternString<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternNumber<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternInteger<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternNever<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternGroup<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternText<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TPatternBaseMapping<_0>, Input] : [];
930
+ type TPatternGroup<Input extends string> = (TConst<'(', Input> extends [infer _0, infer Input extends string] ? (TPatternBody<Input> extends [infer _1, infer Input extends string] ? (TConst<')', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TPatternGroupMapping<_0>, Input] : [];
931
+ type TPatternUnion<Input extends string> = ((TPatternTerm<Input> extends [infer _0, infer Input extends string] ? (TConst<'|', Input> extends [infer _1, infer Input extends string] ? (TPatternUnion<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TPatternTerm<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [unknown] | [], infer Input extends string] ? [TPatternUnionMapping<_0>, Input] : [];
932
+ type TPatternTerm<Input extends string> = (TPatternBase<Input> extends [infer _0, infer Input extends string] ? (TPatternBody<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TPatternTermMapping<_0>, Input] : [];
933
+ type TPatternBody<Input extends string> = (TPatternUnion<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternTerm<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TPatternBodyMapping<_0>, Input] : [];
934
+ type TPattern<Input extends string> = (TConst<'^', Input> extends [infer _0, infer Input extends string] ? (TPatternBody<Input> extends [infer _1, infer Input extends string] ? (TConst<'$', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TPatternMapping<_0>, Input] : [];
935
+ type TInterfaceDeclarationHeritageList_0<Input extends string, Result extends unknown[] = []> = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TInterfaceDeclarationHeritageList_0<Input, [...Result, _0]> : [Result, Input];
936
+ type TInterfaceDeclarationHeritageList<Input extends string> = ((TType<Input> extends [infer _0, infer Input extends string] ? (TInterfaceDeclarationHeritageList_0<Input> extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TInterfaceDeclarationHeritageListMapping<_0>, Input] : [];
937
+ type TInterfaceDeclarationHeritage<Input extends string> = ((TConst<'extends', Input> extends [infer _0, infer Input extends string] ? (TInterfaceDeclarationHeritageList<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [], infer Input extends string] ? [TInterfaceDeclarationHeritageMapping<_0>, Input] : [];
938
+ type TInterfaceDeclarationGeneric<Input extends string> = (TConst<'interface', Input> extends [infer _0, infer Input extends string] ? (TIdent<Input> extends [infer _1, infer Input extends string] ? (TGenericParameters<Input> extends [infer _2, infer Input extends string] ? (TInterfaceDeclarationHeritage<Input> extends [infer _3, infer Input extends string] ? (TProperties$1<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TInterfaceDeclarationGenericMapping<_0>, Input] : [];
939
+ type TInterfaceDeclaration<Input extends string> = (TConst<'interface', Input> extends [infer _0, infer Input extends string] ? (TIdent<Input> extends [infer _1, infer Input extends string] ? (TInterfaceDeclarationHeritage<Input> extends [infer _2, infer Input extends string] ? (TProperties$1<Input> extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown], infer Input extends string] ? [TInterfaceDeclarationMapping<_0>, Input] : [];
940
+ type TTypeAliasDeclarationGeneric<Input extends string> = (TConst<'type', Input> extends [infer _0, infer Input extends string] ? (TIdent<Input> extends [infer _1, infer Input extends string] ? (TGenericParameters<Input> extends [infer _2, infer Input extends string] ? (TConst<'=', Input> extends [infer _3, infer Input extends string] ? (TType<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TTypeAliasDeclarationGenericMapping<_0>, Input] : [];
941
+ type TTypeAliasDeclaration<Input extends string> = (TConst<'type', Input> extends [infer _0, infer Input extends string] ? (TIdent<Input> extends [infer _1, infer Input extends string] ? (TConst<'=', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown], infer Input extends string] ? [TTypeAliasDeclarationMapping<_0>, Input] : [];
942
+ type TExportKeyword<Input extends string> = ((TConst<'export', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown] | [], infer Input extends string] ? [TExportKeywordMapping<_0>, Input] : [];
943
+ type TModuleDeclarationDelimiter<Input extends string> = ((TConst<';', Input> extends [infer _0, infer Input extends string] ? (TConst<'\n', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<';', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'\n', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [unknown], infer Input extends string] ? [TModuleDeclarationDelimiterMapping<_0>, Input] : [];
944
+ type TModuleDeclarationList_0<Input extends string, Result extends unknown[] = []> = (TModuleDeclarationDelimiter<Input> extends [infer _0, infer Input extends string] ? (TModuleDeclaration<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TModuleDeclarationList_0<Input, [...Result, _0]> : [Result, Input];
945
+ type TModuleDeclarationList<Input extends string> = ((TModuleDeclaration<Input> extends [infer _0, infer Input extends string] ? (TModuleDeclarationList_0<Input> extends [infer _1, infer Input extends string] ? ((TModuleDeclarationDelimiter<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [], infer Input extends string] ? [TModuleDeclarationListMapping<_0>, Input] : [];
946
+ type TModuleDeclaration<Input extends string> = (TExportKeyword<Input> extends [infer _0, infer Input extends string] ? ((TInterfaceDeclarationGeneric<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TInterfaceDeclaration<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TTypeAliasDeclarationGeneric<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TTypeAliasDeclaration<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _1, infer Input extends string] ? (TOptionalSemiColon<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TModuleDeclarationMapping<_0>, Input] : [];
947
+ type TModule$1<Input extends string> = (TModuleDeclaration<Input> extends [infer _0, infer Input extends string] ? (TModuleDeclarationList<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TModuleMapping<_0>, Input] : [];
948
+ type TScript<Input extends string> = (TModule$1<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TGenericType<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TType<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TScriptMapping<_0>, Input] : [];
949
+ //#endregion
950
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/patterns/template.d.mts
951
+ /** Parses a Template into TemplateLiteral types */
952
+ type TParseTemplateIntoTypes<Template extends string, Parsed extends [TSchema[], string] | [] = TTemplateLiteralTypes<`\`${Template}\``>, Result extends TSchema = Parsed extends [infer Types extends TSchema[], string] ? Types : TUnreachable> = Result;
953
+ //#endregion
954
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/union.d.mts
955
+ type StaticUnion<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Types extends TSchema[], Result extends unknown = never> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? StaticUnion<Stack, Direction, Context, This, Right, Result | StaticType<Stack, Direction, Context, This, Left>> : Result);
956
+ /** Represents a logical Union type. */
957
+ interface TUnion<Types extends TSchema[] = TSchema[]> extends TSchema {
958
+ '~kind': 'Union';
959
+ anyOf: Types;
960
+ }
961
+ /** Creates a Union type. */
962
+ declare function Union$1<Types extends TSchema[]>(anyOf: [...Types], options?: TSchemaOptions): TUnion<Types>;
963
+ /** Returns true if the given value is TUnion. */
964
+ declare function IsUnion(value: unknown): value is TUnion;
965
+ //#endregion
966
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/patterns/pattern.d.mts
967
+ /** Parses a Pattern into a sequence of TemplateLiteral types. A result of [] indicates failure to parse. */
968
+ type TParsePatternIntoTypes<Pattern extends string, Parsed extends [TSchema[], string] | [] = TPattern<Pattern>, Result extends TSchema[] = Parsed extends [infer Types extends TSchema[], string] ? Types : []> = Result;
969
+ //#endregion
970
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/template_literal/static.d.mts
971
+ type TFromLiteral$5<Template extends string, Value extends TLiteralValue> = `${Template}${Value}`;
972
+ type TFromBigInt<Template extends string> = `${Template}${bigint}`;
973
+ type TFromString<Template extends string> = `${Template}${string}`;
974
+ type TFromNumber<Template extends string> = `${Template}${number}`;
975
+ type TFromInteger<Template extends string> = `${Template}${number}`;
976
+ type TFromUnion$8<Template extends string, Types extends TSchema[], Result extends string = never> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion$8<Template, Right, Result | TFromType$18<'', Left>> : `${Template}${Result}`);
977
+ type TFromType$18<Template extends string, Type extends TSchema, Result extends string = (Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion$8<Template, Types> : Type extends TLiteral<infer Value extends TLiteralValue> ? TFromLiteral$5<Template, Value> : Type extends TBigInt$1 ? TFromBigInt<Template> : Type extends TString$1 ? TFromString<Template> : Type extends TNumber$1 ? TFromNumber<Template> : Type extends TInteger$1 ? TFromInteger<Template> : never)> = Result;
978
+ type TFromSpan<Template extends string, Types extends TSchema[]> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromSpan<TFromType$18<Template, Left>, Right> : Template);
979
+ type TTemplateLiteralStatic<Pattern extends string, Types extends TSchema[] = TParsePatternIntoTypes<Pattern>> = TFromSpan<'', Types>;
980
+ //#endregion
981
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts
982
+ type TRemoveReadonlyOperation<Type extends TSchema, Result extends TSchema = Type extends TReadonly$1<infer Type extends TSchema> ? TRemoveReadonlyOperation<Type> : Type> = Result;
983
+ type TRemoveReadonlyAction<Type extends TSchema, Result extends TSchema = TRemoveReadonlyOperation<Type>> = Result;
984
+ type TRemoveReadonlyInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TRemoveReadonlyAction<InstantiateType>;
985
+ //#endregion
986
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/_remove_readonly.d.mts
987
+ /** Creates a deferred RemoveReadonly action. */
988
+ type TRemoveReadonlyDeferred<Type extends TSchema> = (TDeferred<'RemoveReadonly', [Type]>);
989
+ /** Applies an RemoveReadonly action to a type. */
990
+ type TRemoveReadonly<Type extends TSchema> = (TRemoveReadonlyAction<Type>);
991
+ //#endregion
992
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts
993
+ type TRemoveOptionalOperation<Type extends TSchema, Result extends TSchema = Type extends TOptional<infer Type extends TSchema> ? TRemoveOptionalOperation<Type> : Type> = Result;
994
+ type TRemoveOptionalAction<Type extends TSchema, Result extends TSchema = TRemoveOptionalOperation<Type>> = Result;
995
+ type TRemoveOptionalInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TRemoveOptionalAction<InstantiateType>;
996
+ //#endregion
997
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/_remove_optional.d.mts
998
+ /** Creates a deferred RemoveOptional action. */
999
+ type TRemoveOptionalDeferred<Type extends TSchema> = (TDeferred<'RemoveOptional', [Type]>);
1000
+ /** Applies an RemoveOptional action to a type. */
1001
+ type TRemoveOptional<Type extends TSchema> = (TRemoveOptionalAction<Type>);
1002
+ //#endregion
1003
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/tuple/to_object.d.mts
1004
+ type TTupleElementsToProperties<Types extends TSchema[], Result extends TProperties = {}> = (Types extends [...infer Left extends TSchema[], infer Right extends TSchema] ? TTupleElementsToProperties<Left, { [_ in Left['length']]: Right; } & Result> : { [Key in keyof Result]: Result[Key]; });
1005
+ type TTupleToObject<Type extends TTuple, Properties extends TProperties = TTupleElementsToProperties<Type['items']>, Result extends TSchema = TObject<Properties>> = Result;
1006
+ //#endregion
1007
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/evaluate/composite.d.mts
1008
+ /** Returns true if the type is a valid operand to Composite. */
1009
+ type TCanComposite<Type extends TSchema> = (Type extends TObject<infer _ extends TProperties> ? true : Type extends TTuple<infer _ extends TSchema[]> ? true : false);
1010
+ type TIsReadonlyProperty<Left extends TSchema, Right extends TSchema> = (Left extends TReadonly$1<Left> ? Right extends TReadonly$1<Right> ? true : false : false);
1011
+ type TIsOptionalProperty<Left extends TSchema, Right extends TSchema> = (Left extends TOptional<Left> ? Right extends TOptional<Right> ? true : false : false);
1012
+ type TCompositeProperty<Left extends TSchema, Right extends TSchema, IsReadonly extends boolean = TIsReadonlyProperty<Left, Right>, IsOptional extends boolean = TIsOptionalProperty<Left, Right>, Evaluated extends TSchema = TEvaluateIntersect<[Left, Right]>, Property extends TSchema = TRemoveReadonly<TRemoveOptional<Evaluated>>> = ([IsReadonly, IsOptional] extends [true, true] ? TAddReadonly<TAddOptional<Property>> : [IsReadonly, IsOptional] extends [true, false] ? TAddReadonly<Property> : [IsReadonly, IsOptional] extends [false, true] ? TAddOptional<Property> : Property);
1013
+ type TCompositePropertyKey<Left extends TProperties, Right extends TProperties, Key extends PropertyKey, Result extends TSchema = (Key extends keyof Left ? Key extends keyof Right ? TCompositeProperty<Left[Key], Right[Key]> : Left[Key] : Key extends keyof Right ? Right[Key] : TNever)> = Result;
1014
+ type TCompositeProperties<Left extends TProperties, Right extends TProperties, Keys extends PropertyKey = keyof (Left & Right), Result extends TProperties = { [Key in Keys]: TCompositePropertyKey<Left, Right, Key>; }> = Result;
1015
+ type TGetProperties<Type extends TSchema, Result extends TProperties = (Type extends TObject<infer Properties extends TProperties> ? Properties : Type extends TTuple<infer Types extends TSchema[]> ? TTupleElementsToProperties<Types> : {})> = Result;
1016
+ type TComposite<Left extends TSchema, Right extends TSchema, LeftProperties extends TProperties = TGetProperties<Left>, RightProperties extends TProperties = TGetProperties<Right>, Properties extends TProperties = TCompositeProperties<LeftProperties, RightProperties>, Result extends TSchema = TObject<Properties>> = Result;
1017
+ //#endregion
1018
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts
1019
+ type TNarrowCompareRule<Left extends TSchema, Right extends TSchema, Result extends TCompareResult = TCompare<Left, Right>> = (Result extends typeof CompareResultLeftInside ? Left : Result extends typeof CompareResultRightInside ? Right : Result extends typeof CompareResultEqual ? Right : TNever);
1020
+ type TNarrowCompositeRule<Left extends TSchema, Right extends TSchema, CanCompositeLeft extends boolean = TCanComposite<Left>, CanCompositeRight extends boolean = TCanComposite<Right>> = ([CanCompositeLeft, CanCompositeRight] extends [true, true] ? TComposite<Left, Right> : [CanCompositeLeft, CanCompositeRight] extends [true, false] ? Left : [CanCompositeLeft, CanCompositeRight] extends [false, true] ? Right : TNarrowCompareRule<Left, Right>);
1021
+ type TNarrow<Left extends TSchema, Right extends TSchema> = (Left extends TNever ? TNever : Left extends TAny ? TAny : Left extends TUnknown ? Right : Right extends TNever ? TNever : Right extends TAny ? TAny : Right extends TUnknown ? Left : TNarrowCompositeRule<Left, Right>);
1022
+ //#endregion
1023
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts
1024
+ type TShouldEvaluate<Left extends TSchema, Right extends TSchema, IsUnionLeft extends boolean = Left extends TUnion ? true : false, IsUnionRight extends boolean = Right extends TUnion ? true : false, Result extends boolean = IsUnionLeft extends true ? true : IsUnionRight extends true ? true : false> = Result;
1025
+ type TDistributeOperation<Left extends TSchema, Right extends TSchema, EvaluatedLeft extends TSchema = TEvaluateType<Left>, EvaluatedRight extends TSchema = TEvaluateType<Right>, ShouldEvaluate extends boolean = TShouldEvaluate<EvaluatedLeft, EvaluatedRight>, Result extends TSchema = [ShouldEvaluate] extends [true] ? TEvaluateIntersect<[EvaluatedLeft, EvaluatedRight]> : TNarrow<EvaluatedLeft, EvaluatedRight>> = Result;
1026
+ type TDistributeType<Type extends TSchema, Distribution extends TSchema[], Result extends TSchema[] = []> = (Distribution extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TDistributeType<Type, Right, [...Result, TDistributeOperation<Left, Type>]> : Result extends [] ? [Type] : Result);
1027
+ type TDistributeUnion<Types extends TSchema[], Distribution extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TDistributeUnion<Right, Distribution, [...Result, ...TDistribute$1<[Left], Distribution>]> : Result);
1028
+ type TDistribute$1<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? Left extends TUnion<infer UnionTypes extends TSchema[]> ? TDistribute$1<Right, TDistributeUnion<UnionTypes, Result>> : TDistribute$1<Right, TDistributeType<Left, Result>> : Result);
1029
+ //#endregion
1030
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/unsafe.d.mts
1031
+ type StaticUnsafe<Type extends unknown> = Type;
1032
+ /** Represents an Unsafe type. */
1033
+ interface TUnsafe<Type extends unknown = unknown> extends TSchema {
1034
+ '~unsafe': Type;
1035
+ }
1036
+ /** Creates a Unsafe type. */
1037
+ declare function Unsafe<Type extends unknown>(schema: TSchema): TUnsafe<Type>;
1038
+ /** Returns true if the given value is TUnsafe. */
1039
+ declare function IsUnsafe(value: unknown): value is TUnsafe;
1040
+ declare namespace result_d_exports {
1041
+ export { ExtendsFalse, ExtendsTrue, ExtendsUnion, IsExtendsFalse, IsExtendsTrue, IsExtendsTrueLike, IsExtendsUnion, Match, MatchFalse, MatchTrueLike, TExtendsFalse, TExtendsTrue, TExtendsTrueLike, TExtendsUnion$1 as TExtendsUnion, TResult };
1042
+ }
1043
+ type TResult = TExtendsUnion$1 | TExtendsTrue | TExtendsFalse;
1044
+ interface TExtendsUnion$1<Inferred extends TProperties = TProperties> {
1045
+ '~kind': 'ExtendsUnion';
1046
+ inferred: Inferred;
1047
+ }
1048
+ declare function ExtendsUnion<Inferred extends TProperties>(inferred: TProperties): TExtendsUnion$1<Inferred>;
1049
+ declare function IsExtendsUnion(value: unknown): value is TExtendsUnion$1;
1050
+ interface TExtendsTrue<Inferred extends TProperties = TProperties> {
1051
+ '~kind': 'ExtendsTrue';
1052
+ inferred: Inferred;
1053
+ }
1054
+ declare function ExtendsTrue<Inferred extends TProperties>(inferred: TProperties): TExtendsTrue<Inferred>;
1055
+ declare function IsExtendsTrue(value: unknown): value is TExtendsTrue;
1056
+ interface TExtendsFalse {
1057
+ type: 'ExtendsFalse';
1058
+ }
1059
+ declare function ExtendsFalse(): TExtendsFalse;
1060
+ declare function IsExtendsFalse(value: unknown): value is TExtendsFalse;
1061
+ type TExtendsTrueLike<Inferred extends TProperties = TProperties> = TExtendsUnion$1<Inferred> | TExtendsTrue<Inferred>;
1062
+ declare function IsExtendsTrueLike(value: unknown): value is TExtendsTrueLike;
1063
+ type MatchTrueLike = (inferred: TProperties) => unknown;
1064
+ type MatchFalse = () => unknown;
1065
+ declare function Match(result: TResult, true_: MatchTrueLike, false_: MatchFalse): unknown;
1066
+ //#endregion
1067
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/extends_right.d.mts
1068
+ type TExtendsRightInfer<Inferred extends TProperties, Name extends string, Left extends TSchema, Right extends TSchema, Result extends Result.TResult = (TExtendsLeft<Inferred, Left, Right> extends Result.TExtendsTrueLike<infer CheckInferred extends TProperties> ? Result.TExtendsTrue<TAssign<TAssign<Inferred, CheckInferred>, { [_ in Name]: Left; }>> : Result.TExtendsFalse)> = Result;
1069
+ type TExtendsRightAny<Inferred extends TProperties, _Left extends TSchema, Result extends Result.TResult = Result.TExtendsTrue<Inferred>> = Result;
1070
+ type TExtendsRightDependent<Inferred extends TProperties, Left extends TSchema, If extends TSchema, Then extends TSchema, Else extends TSchema, Result extends Result.TResult = TExtendsLeft<Inferred, Left, If> extends Result.TExtendsTrueLike<infer Inferred extends TProperties> ? (TExtendsLeft<Inferred, Left, Then> extends Result.TExtendsTrueLike<infer Inferred extends TProperties> ? Result.TExtendsTrue<Inferred> : Result.TExtendsFalse) : (TExtendsLeft<Inferred, Left, Else> extends Result.TExtendsTrueLike<infer Inferred extends TProperties> ? Result.TExtendsTrue<Inferred> : Result.TExtendsFalse)> = Result;
1071
+ type TExtendsRightEnum<Inferred extends TProperties, Left extends TSchema, Right extends TEnumValue[], Evaluated extends TSchema = TEvaluateEnum<Right>> = TExtendsLeft<Inferred, Left, Evaluated>;
1072
+ type TExtendsRightIntersect<Inferred extends TProperties, Left extends TSchema, Right extends TSchema[]> = (Right extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtendsLeft<Inferred, Left, Head> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsRightIntersect<Inferred, Left, Tail> : TExtendsFalse : TExtendsTrue<Inferred>);
1073
+ type TExtendsRightTemplateLiteral<Inferred extends TProperties, Left extends TSchema, Right extends string, Evaluated extends TSchema = TEvaluateTemplateLiteral<Right>> = TExtendsLeft<Inferred, Left, Evaluated>;
1074
+ type TExtendsRightUnion<Inferred extends TProperties, Left extends TSchema, Right extends TSchema[]> = (Right extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtendsLeft<Inferred, Left, Head> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsTrue<Inferred> : TExtendsRightUnion<Inferred, Left, Tail> : TExtendsFalse);
1075
+ type TExtendsRight<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Right extends TAny ? TExtendsRightAny<Inferred, Left> : Right extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TExtendsRightDependent<Inferred, Left, If, Then, Else> : Right extends TEnum<infer Values extends TEnumValue[]> ? TExtendsRightEnum<Inferred, Left, Values> : Right extends TInfer<infer Name extends string, infer Type extends TSchema> ? TExtendsRightInfer<Inferred, Name, Left, Type> : Right extends TTemplateLiteral<infer Pattern extends string> ? TExtendsRightTemplateLiteral<Inferred, Left, Pattern> : Right extends TIntersect<infer Types extends TSchema[]> ? TExtendsRightIntersect<Inferred, Left, Types> : Right extends TUnion<infer Types extends TSchema[]> ? TExtendsRightUnion<Inferred, Left, Types> : Right extends TUnknown ? TExtendsTrue<Inferred> : TExtendsFalse);
1076
+ //#endregion
1077
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/any.d.mts
1078
+ type TExtendsAny<Inferred extends TProperties, Left extends TAny, Right extends TSchema> = (Right extends TInfer ? TExtendsRight<Inferred, Left, Right> : Right extends TAny ? TExtendsTrue<Inferred> : Right extends TUnknown ? TExtendsTrue<Inferred> : TExtendsUnion$1<Inferred>);
1079
+ //#endregion
1080
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/array.d.mts
1081
+ type TExtendsImmutable<Left extends TSchema, Right extends TSchema, IsImmutableLeft extends boolean = Left extends TImmutable ? true : false, IsImmutableRight extends boolean = Right extends TImmutable ? true : false, Result extends boolean = [IsImmutableLeft, IsImmutableRight] extends [true, true] ? true : [IsImmutableLeft, IsImmutableRight] extends [false, true] ? true : [IsImmutableLeft, IsImmutableRight] extends [true, false] ? false : true> = Result;
1082
+ type TExtendsArray<Inferred extends TProperties, ArrayLeft extends TSchema, Left extends TSchema, Right extends TSchema> = (Right extends TArray<infer Type extends TSchema> ? TExtendsImmutable<ArrayLeft, Right> extends true ? TExtendsLeft<Inferred, Left, Type> : TExtendsFalse : TExtendsRight<Inferred, ArrayLeft, Right>);
1083
+ //#endregion
1084
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/bigint.d.mts
1085
+ type TExtendsBigInt<Inferred extends TProperties, Left extends TBigInt$1, Right extends TSchema> = (Right extends TBigInt$1 ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
1086
+ //#endregion
1087
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/boolean.d.mts
1088
+ type TExtendsBoolean<Inferred extends TProperties, Left extends TBoolean, Right extends TSchema> = (Right extends TBoolean ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
1089
+ //#endregion
1090
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/parameters.d.mts
1091
+ type TParameterCompare<Inferred extends TProperties, Left extends TSchema, LeftRest extends TSchema[], Right extends TSchema, RightRest extends TSchema[], CheckLeft extends TSchema = Right extends TInfer ? Left : Right, CheckRight extends TSchema = Right extends TInfer ? Right : Left, IsLeftOptional extends boolean = Left extends TOptional ? true : false, IsRightOptional extends boolean = Right extends TOptional ? true : false> = ([IsLeftOptional, IsRightOptional] extends [false, true] ? TExtendsFalse : TExtendsLeft<Inferred, CheckLeft, CheckRight> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsParameters<Inferred, LeftRest, RightRest> : TExtendsFalse);
1092
+ type TParameterRight<Inferred extends TProperties, Left extends TSchema, LeftRest extends TSchema[], RightRest extends TSchema[]> = (RightRest extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TParameterCompare<Inferred, Left, LeftRest, Head, Tail> : Left extends TOptional ? TExtendsTrue<Inferred> : TExtendsFalse);
1093
+ type TParameterLeft<Inferred extends TProperties, LeftRest extends TSchema[], RightRest extends TSchema[]> = (LeftRest extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TParameterRight<Inferred, Head, Tail, RightRest> : TExtendsTrue<Inferred>);
1094
+ type TExtendsParameters<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema[]> = TParameterLeft<Inferred, Left, Right>;
1095
+ //#endregion
1096
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/void.d.mts
1097
+ type StaticVoid = void;
1098
+ /** Represents a Void type. */
1099
+ interface TVoid extends TSchema {
1100
+ '~kind': 'Void';
1101
+ type: 'void';
1102
+ }
1103
+ /** Creates a Void type. */
1104
+ declare function Void(options?: TSchemaOptions): TVoid;
1105
+ /** Returns true if the given value is TVoid. */
1106
+ declare function IsVoid(value: unknown): value is TVoid;
1107
+ //#endregion
1108
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/return_type.d.mts
1109
+ type TExtendsReturnType<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Right extends TVoid ? TExtendsTrue<Inferred> : TExtendsLeft<Inferred, Left, Right>);
1110
+ //#endregion
1111
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/constructor.d.mts
1112
+ type TExtendsConstructor<Inferred extends TProperties, Parameters extends TSchema[], InstanceType extends TSchema, Right extends TSchema> = (Right extends TAny ? TExtendsTrue<Inferred> : Right extends TUnknown ? TExtendsTrue<Inferred> : Right extends TConstructor ? TExtendsParameters<Inferred, Parameters, Right['parameters']> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsReturnType<Inferred, InstanceType, Right['instanceType']> : TExtendsFalse : TExtendsFalse);
1113
+ //#endregion
1114
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/dependent.d.mts
1115
+ type TExtendsDependent<Inferred extends TProperties, If extends TSchema, Then extends TSchema, Else extends TSchema, Right extends TSchema> = (TExtendsLeft<Inferred, If, Right> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsLeft<Inferred, Then, Right> : TExtendsLeft<Inferred, Else, Right>);
1116
+ //#endregion
1117
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/enum.d.mts
1118
+ type TExtendsEnum<Inferred extends TProperties, Left extends TEnumValue[], Right extends TSchema, Evaluated extends TSchema = TEvaluateEnum<Left>> = TExtendsLeft<Inferred, Evaluated, Right>;
1119
+ //#endregion
1120
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/function.d.mts
1121
+ type TExtendsFunction<Inferred extends TProperties, Parameters extends TSchema[], ReturnType extends TSchema, Right extends TSchema> = (Right extends TAny ? TExtendsTrue<Inferred> : Right extends TUnknown ? TExtendsTrue<Inferred> : Right extends TFunction ? TExtendsParameters<Inferred, Parameters, Right['parameters']> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsReturnType<Inferred, ReturnType, Right['returnType']> : TExtendsFalse : TExtendsFalse);
1122
+ //#endregion
1123
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/integer.d.mts
1124
+ type TExtendsInteger<Inferred extends TProperties, Left extends TInteger$1, Right extends TSchema> = (Right extends TInteger$1 ? TExtendsTrue<Inferred> : Right extends TNumber$1 ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
1125
+ //#endregion
1126
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/intersect.d.mts
1127
+ type TExtendsIntersect<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema, Evaluated extends TSchema = TEvaluateIntersect<Left>> = TExtendsLeft<Inferred, Evaluated, Right>;
1128
+ //#endregion
1129
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/literal.d.mts
1130
+ type TExtendsLiteralValue<Inferred extends TProperties, Left extends TLiteralValue, Right extends TLiteralValue> = (Left extends Right ? TExtendsTrue<Inferred> : TExtendsFalse);
1131
+ type TExtendsLiteralBigInt<Inferred extends TProperties, Left extends bigint, Right extends TSchema> = (Right extends TLiteral<infer Value extends bigint> ? TExtendsLiteralValue<Inferred, Left, Value> : Right extends TBigInt$1 ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, TLiteral<Left>, Right>);
1132
+ type TExtendsLiteralBoolean<Inferred extends TProperties, Left extends boolean, Right extends TSchema> = (Right extends TLiteral<infer Value extends boolean> ? TExtendsLiteralValue<Inferred, Left, Value> : Right extends TBoolean ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, TLiteral<Left>, Right>);
1133
+ type TExtendsLiteralNumber<Inferred extends TProperties, Left extends number, Right extends TSchema> = (Right extends TLiteral<infer Value extends number> ? TExtendsLiteralValue<Inferred, Left, Value> : Right extends TNumber$1 ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, TLiteral<Left>, Right>);
1134
+ type TExtendsLiteralString<Inferred extends TProperties, Left extends string, Right extends TSchema> = (Right extends TLiteral<infer Value extends string> ? TExtendsLiteralValue<Inferred, Left, Value> : Right extends TString$1 ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, TLiteral<Left>, Right>);
1135
+ type TExtendsLiteral<Inferred extends TProperties, Left extends TLiteral, Right extends TSchema> = (Left extends TLiteral<infer Value extends bigint> ? TExtendsLiteralBigInt<Inferred, Value, Right> : Left extends TLiteral<infer Value extends boolean> ? TExtendsLiteralBoolean<Inferred, Value, Right> : Left extends TLiteral<infer Value extends number> ? TExtendsLiteralNumber<Inferred, Value, Right> : Left extends TLiteral<infer Value extends string> ? TExtendsLiteralString<Inferred, Value, Right> : TUnreachable);
1136
+ //#endregion
1137
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/never.d.mts
1138
+ type TExtendsNever<Inferred extends TProperties, Left extends TNever, Right extends TSchema> = (Right extends TInfer ? TExtendsRight<Inferred, Left, Right> : TExtendsTrue<Inferred>);
1139
+ //#endregion
1140
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/null.d.mts
1141
+ type TExtendsNull<Inferred extends TProperties, Left extends TNull, Right extends TSchema> = (Right extends TNull ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
1142
+ //#endregion
1143
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/number.d.mts
1144
+ type TExtendsNumber<Inferred extends TProperties, Left extends TNumber$1, Right extends TSchema> = (Right extends TNumber$1 ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
1145
+ //#endregion
1146
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/object.d.mts
1147
+ type TExtendsPropertyOptional<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Left extends TOptional<Left> ? Right extends TOptional<Right> ? TExtendsTrue<Inferred> : TExtendsFalse : TExtendsTrue<Inferred>);
1148
+ type TExtendsProperty<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Right extends TInfer<string, TNever> ? TExtendsFalse : TExtendsLeft<Inferred, Left, Right> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsPropertyOptional<Inferred, Left, Right> : TExtendsFalse);
1149
+ type TExtractInferredProperties<Keys extends PropertyKey[], Properties extends Record<PropertyKey, Result.TResult>, Result extends TProperties = {}> = (Keys extends [infer Left extends PropertyKey, ...infer Right extends PropertyKey[]] ? Left extends keyof Properties ? Properties[Left] extends Result.TExtendsTrueLike<infer Inferred extends TProperties> ? TExtractInferredProperties<Right, Properties, Result & Inferred> : TExtractInferredProperties<Right, Properties, Result> : TUnreachable : Result);
1150
+ type TExtendsPropertiesComparer<Inferred extends TProperties, Left extends TProperties, Right extends TProperties, Properties extends Record<PropertyKey, TExtendsTrue | TExtendsFalse> = { [RightKey in keyof Right]: (RightKey extends keyof Left ? TExtendsProperty<{}, Left[RightKey], Right[RightKey]> : Right[RightKey] extends TOptional<Right[RightKey]> ? Right[RightKey] extends TInfer ? TExtendsTrue<TAssign<Inferred, { [_ in Right[RightKey]['name']]: Right[RightKey]['extends']; }>> : TExtendsTrue<Inferred> : TExtendsFalse); }, Checked extends boolean = Properties[keyof Right] extends TExtendsTrueLike ? true : false, Extracted extends TProperties = Checked extends true ? TExtractInferredProperties<TUnionToTuple<keyof Properties>, Properties> : {}> = (Checked extends true ? TExtendsTrue<Extracted> : TExtendsFalse);
1151
+ type TExtendsProperties<Inferred extends TProperties, Left extends TProperties, Right extends TProperties, Compared extends TResult = TExtendsPropertiesComparer<Inferred, Left, Right>> = (Compared extends TExtendsTrueLike<infer ComparedInferred extends TProperties> ? TExtendsTrue<TAssign<Inferred, ComparedInferred>> : TExtendsFalse);
1152
+ type TExtendsObjectToObject<Inferred extends TProperties, Left extends TProperties, Right extends TProperties> = (TExtendsProperties<Inferred, Left, Right>);
1153
+ type TRecordMergeInferred<Left extends TProperties, Right extends TProperties, Result extends TProperties = { [Key in keyof Right]: Key extends keyof Left ? Left[Key] extends TUnion<infer Types extends TSchema[]> ? TUnion<[...Types, Right[Key]]> : TUnion<[Left[Key], Right[Key]]> : Right[Key]; }> = Result;
1154
+ type TExtendsRecordComparer<Properties extends TProperties, Keys extends (keyof Properties)[], Type extends TSchema, Result extends TProperties> = (Keys extends [infer Left extends (keyof Properties), ...infer Right extends (keyof Properties)[]] ? TExtendsLeft<{}, Properties[Left], Type> extends Result.TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsRecordComparer<Properties, Right, Type, TRecordMergeInferred<Result, Inferred>> : Result.TExtendsFalse : Result.TExtendsTrue<Result>);
1155
+ type TExtendsObjectToRecord<Inferred extends TProperties, Properties extends TProperties, _Pattern extends string, Value extends TSchema, Keys extends (keyof Properties)[] = TUnionToTuple<keyof Properties>, Result extends Result.TResult = TExtendsRecordComparer<Properties, Keys, Value, Inferred>> = Result;
1156
+ type TExtendsObject<Inferred extends TProperties, Left extends TProperties, Right extends TSchema> = (Right extends TRecord<infer Pattern extends string, infer Value extends TSchema> ? TExtendsObjectToRecord<Inferred, Left, Pattern, Value> : Right extends TObject<infer Properties extends TProperties> ? TExtendsObjectToObject<Inferred, Left, Properties> : TExtendsRight<Inferred, TObject<Left>, Right>);
1157
+ //#endregion
1158
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/record.d.mts
1159
+ type TFromObject$6<Inferred extends TProperties, Properties extends TProperties> = keyof Properties extends never ? TExtendsTrue<Inferred> : TExtendsFalse;
1160
+ type TFromRecord$1<Inferred extends TProperties, _LeftKey extends TSchema, LeftValue extends TSchema, _RightKey extends TSchema, RightValue extends TSchema> = (TExtendsLeft<Inferred, LeftValue, RightValue>);
1161
+ type TExtendsRecord<Inferred extends TProperties, LeftPattern extends string, LeftValue extends TSchema, Right extends TSchema> = (Right extends TRecord<infer Pattern extends string, infer Value extends TSchema> ? TFromRecord$1<Inferred, TRecordPatternToType<LeftPattern>, LeftValue, TRecordPatternToType<Pattern>, Value> : Right extends TObject<infer Properties extends TProperties> ? TFromObject$6<Inferred, Properties> : Right extends TAny ? TExtendsTrue<Inferred> : Right extends TUnknown ? TExtendsTrue<Inferred> : TExtendsFalse);
1162
+ //#endregion
1163
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/string.d.mts
1164
+ type TExtendsString<Inferred extends TProperties, Left extends TString$1, Right extends TSchema> = (Right extends TString$1 ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
1165
+ //#endregion
1166
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/symbol.d.mts
1167
+ type TExtendsSymbol<Inferred extends TProperties, Left extends TSymbol, Right extends TSchema> = (Right extends TSymbol ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
1168
+ //#endregion
1169
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/template_literal.d.mts
1170
+ type TExtendsTemplateLiteral<Inferred extends TProperties, Pattern extends string, Right extends TSchema, Evaluated extends TSchema = TEvaluateTemplateLiteral<Pattern>> = TExtendsLeft<Inferred, Evaluated, Right>;
1171
+ //#endregion
1172
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/rest.d.mts
1173
+ /** Represents a Rest instruction. */
1174
+ interface TRest<Type extends TSchema = TSchema> extends TSchema {
1175
+ '~kind': 'Rest';
1176
+ type: 'rest';
1177
+ items: Type;
1178
+ }
1179
+ /** Creates a Rest instruction type. */
1180
+ declare function Rest$1<Type extends TSchema>(type: Type): TRest<Type>;
1181
+ /** Returns true if the given value is TRest. */
1182
+ declare function IsRest(value: unknown): value is TRest;
1183
+ //#endregion
1184
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/inference.d.mts
1185
+ interface TInferable<Name extends string = string, Type extends TSchema = TSchema> {
1186
+ '~kind': 'Inferrable';
1187
+ name: Name;
1188
+ type: Type;
1189
+ }
1190
+ type TTryRestInferable<Type extends TSchema, Result extends TInferable | undefined = (Type extends TRest<infer RestType extends TSchema> ? RestType extends TInfer<infer Name extends string, infer Type extends TSchema> ? Type extends TArray<infer Type extends TSchema> ? TInferable<Name, Type> : Type extends TUnknown ? TInferable<Name, Type> : undefined : TUnreachable : undefined)> = Result;
1191
+ type TTryInferable<Type extends TSchema, Result extends TInferable | undefined = (Type extends TInfer<infer Name extends string, infer Type extends TSchema> ? TInferable<Name, Type> : undefined)> = Result;
1192
+ type TryInferResults<Rest extends TSchema[], Right extends TSchema, Result extends TSchema[] = []> = (Rest extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtendsLeft<{}, Head, Right> extends Result.TExtendsTrueLike ? TryInferResults<Tail, Right, [...Result, Head]> : undefined : Result);
1193
+ declare function TryInferResults<Rest extends TSchema[], Right extends TSchema>(rest: [...Rest], right: Right, result?: TSchema[]): TryInferResults<Rest, Right>;
1194
+ type TInferTupleResult<Inferred extends TProperties, Name extends string, Left extends TSchema[], Right extends TSchema, Results extends TSchema[] | undefined = TryInferResults<Left, Right>> = (Results extends [...infer Results extends TSchema[]] ? TExtendsTrue<TAssign<Inferred, { [_ in Name]: TTuple<Results>; }>> : TExtendsFalse);
1195
+ type TInferUnionResult<Inferred extends TProperties, Name extends string, Left extends TSchema[], Right extends TSchema, Results extends TSchema[] | undefined = TryInferResults<Left, Right>> = (Results extends [...infer Results extends TSchema[]] ? TExtendsTrue<TAssign<Inferred, { [_ in Name]: TUnion<Results>; }>> : TExtendsFalse);
1196
+ //#endregion
1197
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/tuple.d.mts
1198
+ type TReverse<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TReverse<Right, [Left, ...Result]> : Result);
1199
+ type TApplyReverse<Types extends TSchema[], Reversed extends boolean> = Reversed extends true ? TReverse<Types> : Types;
1200
+ type TReversed<Types extends TSchema[], First extends TSchema | undefined = Types extends [infer Left extends TSchema, ...infer _ extends TSchema[]] ? Left : undefined, Inferable extends TSchema | undefined = First extends TSchema ? TTryRestInferable<First> : undefined, Result extends boolean = Inferable extends TSchema ? true : false> = Result;
1201
+ type TElementsCompare<Inferred extends TProperties, Reversed extends boolean, Left extends TSchema, LeftRest extends TSchema[], Right extends TSchema, RightRest extends TSchema[]> = (TExtendsLeft<Inferred, Left, Right> extends TExtendsTrueLike<infer CheckInferred extends TProperties> ? TElements<CheckInferred, Reversed, LeftRest, RightRest> : TExtendsFalse);
1202
+ type TElementsLeft<Inferred extends TProperties, Reversed extends boolean, LeftRest extends TSchema[], Right extends TSchema, RightRest extends TSchema[], Inferable extends TInferable | undefined = TTryRestInferable<Right>> = (Inferable extends TInferable ? TInferTupleResult<Inferred, Inferable['name'], TApplyReverse<LeftRest, Reversed>, Inferable['type']> : LeftRest extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TElementsCompare<Inferred, Reversed, Head, Tail, Right, RightRest> : TExtendsFalse);
1203
+ type TElementsRight<Inferred extends TProperties, Reversed extends boolean, LeftRest extends TSchema[], RightRest extends TSchema[]> = (RightRest extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TElementsLeft<Inferred, Reversed, LeftRest, Head, Tail> : LeftRest['length'] extends 0 ? TExtendsTrue<Inferred> : TExtendsFalse);
1204
+ type TElements<Inferred extends TProperties, Reversed extends boolean, LeftRest extends TSchema[], RightRest extends TSchema[]> = TElementsRight<Inferred, Reversed, LeftRest, RightRest>;
1205
+ type TExtendsTupleToTuple<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema[], InstantiatedRight extends TSchema[] = TInstantiateElements<Inferred, TState<[], []>, Right>, Reversed extends boolean = TReversed<InstantiatedRight>> = TElements<Inferred, Reversed, TApplyReverse<Left, Reversed>, TApplyReverse<InstantiatedRight, Reversed>>;
1206
+ type TExtendsTupleToArray<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema, Inferrable extends TInferable | undefined = TTryInferable<Right>> = (Inferrable extends TInferable ? TInferUnionResult<Inferred, Inferrable['name'], Left, Inferrable['type']> : Left extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtendsLeft<Inferred, Head, Right> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsTupleToArray<Inferred, Tail, Right> : TExtendsFalse : TExtendsTrue<Inferred>);
1207
+ type TExtendsTuple<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema, InstantiatedLeft extends TSchema[] = TInstantiateElements<Inferred, TState<[], []>, Left>> = (Right extends TTuple<infer Types extends TSchema[]> ? TExtendsTupleToTuple<Inferred, InstantiatedLeft, Types> : Right extends TArray<infer Type extends TSchema> ? TExtendsTupleToArray<Inferred, InstantiatedLeft, Type> : TExtendsRight<Inferred, TTuple<InstantiatedLeft>, Right>);
1208
+ //#endregion
1209
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/undefined.d.mts
1210
+ type StaticUndefined = undefined;
1211
+ /** Represents a Undefined type. */
1212
+ interface TUndefined extends TSchema {
1213
+ '~kind': 'Undefined';
1214
+ type: 'undefined';
1215
+ }
1216
+ /** Creates a Undefined type. */
1217
+ declare function Undefined(options?: TSchemaOptions): TUndefined;
1218
+ /** Returns true if the given value is TUndefined. */
1219
+ declare function IsUndefined(value: unknown): value is TUndefined;
1220
+ //#endregion
1221
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/undefined.d.mts
1222
+ type TExtendsUndefined<Inferred extends TProperties, Left extends TUndefined, Right extends TSchema> = (Right extends TVoid ? TExtendsTrue<Inferred> : Right extends TUndefined ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
1223
+ //#endregion
1224
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/union.d.mts
1225
+ type TExtendsUnionSome<Inferred extends TProperties, Type extends TSchema, UnionTypes extends TSchema[]> = (UnionTypes extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtendsLeft<Inferred, Type, Head> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsTrue<Inferred> : TExtendsUnionSome<Inferred, Type, Tail> : TExtendsFalse);
1226
+ type TExtendsUnionLeft<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema[]> = (Left extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtendsUnionSome<Inferred, Head, Right> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsUnionLeft<Inferred, Tail, Right> : TExtendsFalse : TExtendsTrue<Inferred>);
1227
+ type TExtendsUnion<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema, Inferrable extends TInferable | undefined = TTryInferable<Right>> = (Inferrable extends TInferable<infer Name extends string, infer Type extends TSchema> ? TInferUnionResult<Inferred, Name, Left, Type> : Right extends TUnion<infer Types extends TSchema[]> ? TExtendsUnionLeft<Inferred, Left, Types> : TExtendsUnionLeft<Inferred, Left, [Right]>);
1228
+ //#endregion
1229
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/unknown.d.mts
1230
+ type TExtendsUnknown<Inferred extends TProperties, Left extends TUnknown, Right extends TSchema> = (Right extends TInfer ? TExtendsRight<Inferred, Left, Right> : Right extends TAny ? TExtendsTrue<Inferred> : Right extends TUnknown ? TExtendsTrue<Inferred> : TExtendsFalse);
1231
+ //#endregion
1232
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/void.d.mts
1233
+ type TExtendsVoid<Inferred extends TProperties, Left extends TVoid, Right extends TSchema> = (Right extends TVoid ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
1234
+ //#endregion
1235
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/extends_left.d.mts
1236
+ type TExtendsLeft<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Left extends TAny ? TExtendsAny<Inferred, Left, Right> : Left extends TArray<infer Items extends TSchema> ? TExtendsArray<Inferred, Left, Items, Right> : Left extends TBigInt$1 ? TExtendsBigInt<Inferred, Left, Right> : Left extends TBoolean ? TExtendsBoolean<Inferred, Left, Right> : Left extends TConstructor<infer Parameters extends TSchema[], infer InstanceType extends TSchema> ? TExtendsConstructor<Inferred, Parameters, InstanceType, Right> : Left extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TExtendsDependent<Inferred, If, Then, Else, Right> : Left extends TEnum<infer Values extends TEnumValue[]> ? TExtendsEnum<Inferred, Values, Right> : Left extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TExtendsFunction<Inferred, Parameters, ReturnType, Right> : Left extends TInteger$1 ? TExtendsInteger<Inferred, Left, Right> : Left extends TIntersect<infer Types extends TSchema[]> ? TExtendsIntersect<Inferred, Types, Right> : Left extends TLiteral ? TExtendsLiteral<Inferred, Left, Right> : Left extends TNever ? TExtendsNever<Inferred, Left, Right> : Left extends TNull ? TExtendsNull<Inferred, Left, Right> : Left extends TNumber$1 ? TExtendsNumber<Inferred, Left, Right> : Left extends TObject<infer Properties extends TProperties> ? TExtendsObject<Inferred, Properties, Right> : Left extends TRecord<infer Pattern extends string, infer Value extends TSchema> ? TExtendsRecord<Inferred, Pattern, Value, Right> : Left extends TString$1 ? TExtendsString<Inferred, Left, Right> : Left extends TSymbol ? TExtendsSymbol<Inferred, Left, Right> : Left extends TTemplateLiteral<infer Pattern extends string> ? TExtendsTemplateLiteral<Inferred, Pattern, Right> : Left extends TTuple<infer Types extends TSchema[]> ? TExtendsTuple<Inferred, Types, Right> : Left extends TUndefined ? TExtendsUndefined<Inferred, Left, Right> : Left extends TUnion<infer Types extends TSchema[]> ? TExtendsUnion<Inferred, Types, Right> : Left extends TUnknown ? TExtendsUnknown<Inferred, Left, Right> : Left extends TVoid ? TExtendsVoid<Inferred, Left, Right> : TExtendsFalse);
1237
+ //#endregion
1238
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/interface/instantiate.d.mts
1239
+ type TInterfaceOperation<Heritage extends TSchema[], Properties extends TProperties, Result extends TSchema = TEvaluateIntersect<[...Heritage, TObject<Properties>]>> = Result;
1240
+ type TInterfaceAction<Heritage extends TSchema[], Properties extends TProperties, Result extends TSchema = TCanInstantiate<Heritage> extends true ? TInterfaceOperation<Heritage, Properties> : TInterfaceDeferred<Heritage, Properties>> = Result;
1241
+ type TInterfaceInstantiate<Context extends TProperties, State extends TState, Heritage extends TSchema[], Properties extends TProperties, InstantiatedHeritage extends TSchema[] = TInstantiateTypes<Context, State, Heritage>, InstantiatedProperties extends TProperties = TInstantiateProperties<Context, State, Properties>> = TInterfaceAction<InstantiatedHeritage, InstantiatedProperties>;
1242
+ //#endregion
1243
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/interface.d.mts
1244
+ /** Creates a deferred Interface action. */
1245
+ type TInterfaceDeferred<Heritage extends TSchema[] = TSchema[], Properties extends TProperties = TProperties> = (TDeferred<'Interface', [Heritage, Properties]>);
1246
+ /** Creates an Interface using the given heritage and properties. */
1247
+ type TInterface<Heritage extends TSchema[], Properties extends TProperties> = (TInterfaceAction<Heritage, Properties>);
1248
+ /** Creates an Interface using the given heritage and properties. */
1249
+ declare function Interface<Heritage extends TSchema[], Properties extends TProperties>(heritage: [...Heritage], properties: Properties, options?: TSchemaOptions): TInterface<Heritage, Properties>;
1250
+ //#endregion
1251
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/cyclic/check.d.mts
1252
+ type TFromRef$3<Stack extends (keyof Context)[], Context extends TProperties, Ref extends (keyof Context)> = Ref extends Stack[number] ? true : TFromType$17<[...Stack, Ref], Context, Context[Ref]>;
1253
+ type TFromProperties$2<Stack extends (keyof Context)[], Context extends TProperties, Properties extends TProperties, Types extends TSchema[] = TPropertyValues<Properties>> = TFromTypes$4<Stack, Context, Types>;
1254
+ type TFromTypes$4<Stack extends (keyof Context)[], Context extends TProperties, Types extends TSchema[]> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromType$17<Stack, Context, Left> extends true ? true : TFromTypes$4<Stack, Context, Right> : false;
1255
+ type TFromType$17<Stack extends (keyof Context)[], Context extends TProperties, Type extends TSchema> = (Type extends TRef<infer Ref extends string> ? TFromRef$3<Stack, Context, Ref> : Type extends TArray<infer Type extends TSchema> ? TFromType$17<Stack, Context, Type> : Type extends TConstructor<infer Parameters extends TSchema[], infer InstanceType extends TSchema> ? TFromTypes$4<Stack, Context, [...Parameters, InstanceType]> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TFromTypes$4<Stack, Context, [...Parameters, ReturnType]> : Type extends TInterfaceDeferred<TSchema[], infer Properties extends TProperties> ? TFromProperties$2<Stack, Context, Properties> : Type extends TIntersect<infer Types extends TSchema[]> ? TFromTypes$4<Stack, Context, Types> : Type extends TObject<infer Properties extends TProperties> ? TFromProperties$2<Stack, Context, Properties> : Type extends TUnion<infer Types extends TSchema[]> ? TFromTypes$4<Stack, Context, Types> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTypes$4<Stack, Context, Types> : Type extends TRecord<string, infer Type extends TSchema> ? TFromType$17<Stack, Context, Type> : false);
1256
+ /** Performs a cyclic check on the given type. Initial key stack can be empty, but faster if specified */
1257
+ type TCyclicCheck<Stack extends (keyof Context)[], Context extends TProperties, Type extends TSchema, Result extends boolean = TFromType$17<Stack, Context, Type>> = Result;
1258
+ //#endregion
1259
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts
1260
+ type TResolveCandidateKeys<Context extends TProperties, Keys extends (keyof Context)[], Result extends (keyof Context)[] = []> = (Keys extends [infer Left extends keyof Context, ...infer Right extends (keyof Context)[]] ? TCyclicCheck<[Left], Context, Context[Left]> extends true ? TResolveCandidateKeys<Context, Right, [...Result, Left]> : TResolveCandidateKeys<Context, Right, Result> : Result);
1261
+ /** Returns keys for context types that need to be transformed to TCyclic. */
1262
+ type TCyclicCandidates<Context extends TProperties, Keys extends (keyof Context)[] = TPropertyKeys<Context>, Result extends (keyof Context)[] = TResolveCandidateKeys<Context, Keys>> = Result;
1263
+ //#endregion
1264
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts
1265
+ type TFromRef$2<Context extends TProperties, Ref extends string, Dependencies extends string[]> = Ref extends Dependencies[number] ? Dependencies : Ref extends keyof Context ? TFromType$16<Context, Context[Ref], [...Dependencies, Ref]> : TUnreachable;
1266
+ type TFromProperties$1<Context extends TProperties, Properties extends TProperties, Dependencies extends string[], Types extends TSchema[] = TPropertyValues<Properties>> = TFromTypes$3<Context, Types, Dependencies>;
1267
+ type TFromTypes$3<Context extends TProperties, Types extends TSchema[], Dependencies extends string[]> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromTypes$3<Context, Right, TFromType$16<Context, Left, Dependencies>> : Dependencies;
1268
+ type TFromType$16<Context extends TProperties, Type extends TSchema, Result extends string[]> = (Type extends TRef<infer Ref extends string> ? TFromRef$2<Context, Ref, Result> : Type extends TArray<infer Type extends TSchema> ? TFromType$16<Context, Type, Result> : Type extends TConstructor<infer Parameters extends TSchema[], infer InstanceType extends TSchema> ? TFromTypes$3<Context, [...Parameters, InstanceType], Result> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TFromTypes$3<Context, [...Parameters, ReturnType], Result> : Type extends TInterfaceDeferred<TSchema[], infer Properties extends TProperties> ? TFromProperties$1<Context, Properties, Result> : Type extends TIntersect<infer Types extends TSchema[]> ? TFromTypes$3<Context, Types, Result> : Type extends TObject<infer Properties extends TProperties> ? TFromProperties$1<Context, Properties, Result> : Type extends TUnion<infer Types extends TSchema[]> ? TFromTypes$3<Context, Types, Result> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTypes$3<Context, Types, Result> : Type extends TRecord<string, infer Type extends TSchema> ? TFromType$16<Context, Type, Result> : Result);
1269
+ /** Returns dependent cyclic keys for the given type. This function is used to dead-type-eliminate (DTE) for initializing TCyclic types. */
1270
+ type TCyclicDependencies<Context extends TProperties, Key extends string, Type extends TSchema, Result extends string[] = TFromType$16<Context, Type, [Key]>> = Result;
1271
+ //#endregion
1272
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/cyclic/extends.d.mts
1273
+ type TFromRef$1<_Ref extends string> = (TAny);
1274
+ type TFromProperties<Properties extends TProperties, Result extends TProperties = { [Key in keyof Properties]: TFromType$15<Properties[Key]>; }> = { [Key in keyof Result]: Result[Key]; };
1275
+ type TFromTypes$2<Types extends TSchema[], Result extends TSchema[] = []> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromTypes$2<Right, [...Result, TFromType$15<Left>]> : Result;
1276
+ type TFromType$15<Type extends TSchema> = (Type extends TRef<infer Ref extends string> ? TFromRef$1<Ref> : Type extends TArray<infer Type extends TSchema> ? TArray<TFromType$15<Type>> : Type extends TConstructor<infer Parameters extends TSchema[], infer InstanceType extends TSchema> ? TFunction<TFromTypes$2<Parameters>, TFromType$15<InstanceType>> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TFunction<TFromTypes$2<Parameters>, TFromType$15<ReturnType>> : Type extends TIntersect<infer Types extends TSchema[]> ? TIntersect<TFromTypes$2<Types>> : Type extends TObject<infer Properties extends TProperties> ? TObject<TFromProperties<Properties>> : Type extends TRecord<infer Pattern extends string, infer Value extends TSchema> ? TRecord<Pattern, TFromType$15<Value>> : Type extends TUnion<infer Types extends TSchema[]> ? TUnion<TFromTypes$2<Types>> : Type extends TTuple<infer Types extends TSchema[]> ? TTuple<TFromTypes$2<Types>> : Type);
1277
+ type TCyclicAnyFromParameters<Defs extends TProperties, Ref extends string> = (Ref extends keyof Defs ? TFromType$15<Defs[Ref]> : TUnknown);
1278
+ /** Transforms TCyclic TRef's into TAny's. This function is used prior to TExtends checks to enable cyclics to be structurally checked and terminated (with TAny) at first point of recursion, what would otherwise be a recursive TRef.*/
1279
+ type TCyclicExtends<Type extends TCyclic, Result extends TSchema = TCyclicAnyFromParameters<Type['$defs'], Type['$ref']>> = Result;
1280
+ //#endregion
1281
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts
1282
+ type TCyclicInterface<Context extends TProperties, Heritage extends TSchema[], Properties extends TProperties, InstantiatedHeritage extends TSchema[] = TInstantiateTypes<Context, TState<[], []>, Heritage>, instantiatedProperties extends TProperties = TInstantiateProperties<{}, TState<[], []>, Properties>, EvaluatedInterface extends TSchema = TEvaluateIntersect<[...InstantiatedHeritage, TObject<instantiatedProperties>]>> = EvaluatedInterface;
1283
+ type TCyclicDefinitions<Context extends TProperties, Dependencies extends string[], Result extends TProperties = { [Key in Extract<keyof Context, Dependencies[number]>]: Context[Key] extends TInterfaceDeferred<infer Heritage extends TSchema[], infer Properties extends TProperties> ? TCyclicInterface<Context, Heritage, Properties> : Context[Key]; }> = Result;
1284
+ type TInstantiateCyclic<Context extends TProperties, Ref extends string, Type extends TSchema, Dependencies extends string[] = TCyclicDependencies<Context, Ref, Type>, Definitions extends TProperties = TCyclicDefinitions<Context, Dependencies>, Result extends TSchema = TCyclic<Definitions, Ref>> = Result;
1285
+ //#endregion
1286
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/cyclic/target.d.mts
1287
+ type TResolve$1<Defs extends TProperties, Ref extends string> = (Ref extends keyof Defs ? Defs[Ref] extends TRef<infer Ref extends string> ? TResolve$1<Defs, Ref> : Defs[Ref] : TNever);
1288
+ /** Returns the target Type from the Defs or Never if target is non-resolvable */
1289
+ type TCyclicTarget<Defs extends TProperties, Ref extends string, Result extends TSchema = TResolve$1<Defs, Ref>> = Result;
1290
+ //#endregion
1291
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/extends.d.mts
1292
+ type TCanonical<Type extends TSchema> = (Type extends TCyclic ? TCyclicExtends<Type> : Type extends TUnsafe ? TUnknown : Type);
1293
+ /** Performs a structural extends check on left and right types and yields inferred types on right if specified. */
1294
+ type TExtends<Inferred extends TProperties, Left extends TSchema, Right extends TSchema, CanonicalLeft extends TSchema = TCanonical<Left>, CanonicalRight extends TSchema = TCanonical<Right>> = TExtendsLeft<Inferred, CanonicalLeft, CanonicalRight>;
1295
+ /** Performs a structural extends check on left and right types and yields inferred types on right if specified. */
1296
+ declare function Extends$1<Inferred extends TProperties, Left extends TSchema, Right extends TSchema>(inferred: Inferred, left: Left, right: Right): TExtends<Inferred, Left, Right>;
1297
+ //#endregion
1298
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/exclude/operation.d.mts
1299
+ type TExcludeType<Left extends TSchema, Right extends TSchema, Check extends TResult = TExtends<{}, Left, Right>, Result extends TSchema[] = Check extends TExtendsTrueLike ? [] : [Left]> = Result;
1300
+ type TExcludeUnion<Left extends TSchema[], Right extends TSchema, Result extends TSchema[] = []> = (Left extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExcludeUnion<Tail, Right, [...Result, ...TExcludeType<Head, Right>]> : Result);
1301
+ type TExcludeOperation<Left extends TSchema, Right extends TSchema, Evaluated extends TSchema = TEvaluateType<Left>, Canonical extends TSchema[] = Evaluated extends TUnion<infer Types extends TSchema[]> ? Types : [Evaluated], Remaining extends TSchema[] = TExcludeUnion<Canonical, Right>, Result extends TSchema = TEvaluateUnion<Remaining>> = Result;
1302
+ //#endregion
1303
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts
1304
+ type TEvaluateDependent<If extends TSchema, Then extends TSchema, Else extends TSchema, Intersected extends TSchema = TEvaluateIntersect<[If, Then]>, Excluded extends TSchema = TExcludeOperation<Else, If>, Result extends TSchema = TEvaluateUnion<[Intersected, Excluded]>> = Result;
1305
+ type TEvaluateEnum<Values extends TEnumValue[], Result extends TSchema[] = []> = (Values extends [infer Left extends TEnumValue, ...infer Right extends TEnumValue[]] ? TEvaluateEnum<Right, [...Result, TLiteral<Left>]> : TEvaluateUnion<Result>);
1306
+ type TEvaluateIntersect<Types extends TSchema[], Distribution extends TSchema[] = TDistribute$1<Types>, Broadend extends TSchema[] = TBroaden<Distribution>, Result extends TSchema = TEvaluateUnion<Broadend>> = Result;
1307
+ type TEvaluateTemplateLiteral<Pattern extends string, Evaluated extends TSchema = TTemplateLiteralDecode<Pattern>, Result extends TSchema = TEvaluateType<Evaluated>> = Result;
1308
+ type TEvaluateUnion<Types extends TSchema[], Broadend extends TSchema[] = TBroaden<Types>, Result extends TSchema = TEvaluateUnionFast<Broadend>> = Result;
1309
+ type TEvaluateType<Type extends TSchema, Result extends TSchema = (Type extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TEvaluateDependent<If, Then, Else> : Type extends TEnum<infer Values extends TEnumValue[]> ? TEvaluateEnum<Values> : Type extends TIntersect<infer Types extends TSchema[]> ? TEvaluateIntersect<Types> : Type extends TTemplateLiteral<infer Pattern extends string> ? TEvaluateTemplateLiteral<Pattern> : Type extends TUnion<infer Types extends TSchema[]> ? TEvaluateUnion<Types> : Type)> = Result;
1310
+ type TEvaluateUnionFast<Types extends TSchema[], Result extends TSchema = (Types extends [infer Type extends TSchema] ? Type : Types extends [] ? TNever : TUnion<Types>)> = Result;
1311
+ //#endregion
1312
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/template_literal/encode.d.mts
1313
+ type TJoinString<Input extends string[], Result extends string = ''> = (Input extends [infer Left extends string, ...infer Right extends string[]] ? Result extends '' ? TJoinString<Right, Left> : TJoinString<Right, `${Result}|${Left}`> : Result);
1314
+ type TUnwrapTemplateLiteralPattern<Pattern extends string> = (Pattern extends `^${infer Pattern extends string}$` ? Pattern : never);
1315
+ type TEncodeLiteral<Value extends TLiteralValue, Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${Value}`>);
1316
+ type TEncodeBigInt<Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${typeof BigIntPattern}`>);
1317
+ type TEncodeInteger<Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${typeof IntegerPattern}`>);
1318
+ type TEncodeNumber<Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${typeof NumberPattern}`>);
1319
+ type TEncodeBoolean<Right extends TSchema[], Pattern extends string> = (TEncodeType<TUnion<[TLiteral<'false'>, TLiteral<'true'>]>, Right, Pattern>);
1320
+ type TEncodeString<Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${typeof StringPattern}`>);
1321
+ type TEncodeTemplateLiteral<TemplatePattern extends string, Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${TUnwrapTemplateLiteralPattern<TemplatePattern>}`>);
1322
+ type TEncodeTemplateLiteralDeferred<Types extends TSchema[], Right extends TSchema[], Pattern extends string, TemplateLiteral extends TSchema = TTemplateLiteralAction<Types>, Result extends TSchema = TEncodeType<TemplateLiteral, Right, Pattern>> = Result;
1323
+ type TEncodeEnum<Values extends TEnumValue[], Right extends TSchema[], Pattern extends string, Evaluated extends TSchema = TEvaluateEnum<Values>> = TEncodeType<Evaluated, Right, Pattern>;
1324
+ type TEncodeUnion<Types extends TSchema[], Right extends TSchema[], Pattern extends string, Result extends string[] = []> = Types extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TEncodeUnion<Tail, Right, Pattern, [...Result, TEncodeType<Head, [], ''>]> : TEncodeTypes<Right, `${Pattern}(${TJoinString<Result>})`>;
1325
+ type TEncodeType<Type extends TSchema, Right extends TSchema[], Pattern extends string> = (Type extends TEnum<infer Values extends TEnumValue[]> ? TEncodeEnum<Values, Right, Pattern> : Type extends TInteger$1 ? TEncodeInteger<Right, Pattern> : Type extends TLiteral<infer Value extends TLiteralValue> ? TEncodeLiteral<Value, Right, Pattern> : Type extends TBigInt$1 ? TEncodeBigInt<Right, Pattern> : Type extends TBoolean ? TEncodeBoolean<Right, Pattern> : Type extends TNumber$1 ? TEncodeNumber<Right, Pattern> : Type extends TString$1 ? TEncodeString<Right, Pattern> : Type extends TTemplateLiteral<infer TemplatePattern extends string> ? TEncodeTemplateLiteral<TemplatePattern, Right, Pattern> : Type extends TTemplateLiteralDeferred<infer Types extends TSchema[]> ? TEncodeTemplateLiteralDeferred<Types, Right, Pattern> : Type extends TUnion<infer Types extends TSchema[]> ? TEncodeUnion<Types, Right, Pattern> : typeof NeverPattern);
1326
+ type TEncodeTypes<Types extends TSchema[], Pattern extends string> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TEncodeType<Left, Right, Pattern> : Pattern);
1327
+ type TEncodePattern<Types extends TSchema[], Encoded extends string = TEncodeTypes<Types, ''>, Result extends string = `^${Encoded}$`> = Result;
1328
+ /** Encodes a TemplateLiteral type sequence into a TemplateLiteral */
1329
+ type TTemplateLiteralEncode<Types extends TSchema[], Pattern extends string = TEncodePattern<Types>, Result extends TSchema = TTemplateLiteral<Pattern>> = Result;
1330
+ //#endregion
1331
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/template_literal/instantiate.d.mts
1332
+ type TTemplateLiteralAction<Types extends TSchema[], Result extends TSchema = TCanInstantiate<Types> extends true ? TTemplateLiteralEncode<Types> : TTemplateLiteralDeferred<Types>> = Result;
1333
+ type TTemplateLiteralInstantiate<Context extends TProperties, State extends TState, Types extends TSchema[], InstantiatedTypes extends TSchema[] = TInstantiateTypes<Context, State, Types>> = TTemplateLiteralAction<InstantiatedTypes>;
1334
+ //#endregion
1335
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/template_literal.d.mts
1336
+ type StaticTemplateLiteral<Pattern extends string> = (TTemplateLiteralStatic<Pattern>);
1337
+ /** Represents a TemplateLiteral type. */
1338
+ interface TTemplateLiteral<Pattern extends string = string> extends TSchema {
1339
+ '~kind': 'TemplateLiteral';
1340
+ type: 'string';
1341
+ pattern: Pattern;
1342
+ }
1343
+ /** Creates a deferred TemplateLiteral action. */
1344
+ type TTemplateLiteralDeferred<Types extends TSchema[] = TSchema[]> = (TDeferred<'TemplateLiteral', [Types]>);
1345
+ type TTemplateLiteralFromTypes<Types extends TSchema[], Result extends TSchema = TTemplateLiteralAction<Types>> = Result;
1346
+ type TTemplateLiteralFromString<Template extends string, Types extends TSchema[] = TParseTemplateIntoTypes<Template>, Result extends TSchema = TTemplateLiteralFromTypes<Types>> = Result;
1347
+ /** Creates a TemplateLiteral type. */
1348
+ declare function TemplateLiteral<Template extends string>(template: Template, options?: TSchemaOptions): TTemplateLiteralFromString<Template>;
1349
+ /** Creates a TemplateLiteral type. */
1350
+ declare function TemplateLiteral<Types extends TSchema[]>(types: [...Types], options?: TSchemaOptions): TTemplateLiteralFromTypes<Types>;
1351
+ /** Returns true if the given value is TTemplateLiteral. */
1352
+ declare function IsTemplateLiteral(value: unknown): value is TTemplateLiteral;
1353
+ //#endregion
1354
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/template_literal/is_finite.d.mts
1355
+ type TFromLiteral$4<_Value extends TLiteralValue> = true;
1356
+ type TFromTypesReduce<Types extends TSchema[]> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromType$14<Left> extends true ? TFromTypesReduce<Right> : false : true);
1357
+ type TFromTypes$1<Types extends TSchema[], Result extends boolean = Types extends [] ? false : TFromTypesReduce<Types>> = Result;
1358
+ type TFromType$14<Type extends TSchema> = Type extends TUnion<infer Types extends TSchema[]> ? TFromTypes$1<Types> : Type extends TLiteral<infer Value extends TLiteralValue> ? TFromLiteral$4<Value> : false;
1359
+ /** Returns true if the given TemplateLiteral types yields a finite variant set */
1360
+ type TIsTemplateLiteralFinite<Types extends TSchema[], Result extends boolean = TFromTypes$1<Types>> = Result;
1361
+ //#endregion
1362
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/template_literal/decode.d.mts
1363
+ type TFromLiteralPush<Variants extends string[], Value extends TLiteralValue, Result extends string[] = []> = Variants extends [infer Left extends string, ...infer Right extends string[]] ? TFromLiteralPush<Right, Value, [...Result, `${Left}${Value}`]> : Result;
1364
+ type TFromLiteral$3<Variants extends string[], Value extends TLiteralValue> = Variants extends [] ? [`${Value}`] : TFromLiteralPush<Variants, Value>;
1365
+ type TFromUnion$7<Variants extends string[], Types extends TSchema[], Result extends string[] = []> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion$7<Variants, Right, [...Result, ...TFromType$13<Variants, Left>]> : Result;
1366
+ type TFromType$13<Variants extends string[], Type extends TSchema, Result extends string[] = (Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion$7<Variants, Types> : Type extends TLiteral<infer Value extends TLiteralValue> ? TFromLiteral$3<Variants, Value> : TUnreachable)> = Result;
1367
+ type TDecodeFromSpan<Variants extends string[], Types extends TSchema[]> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TDecodeFromSpan<TFromType$13<Variants, Left>, Right> : Variants;
1368
+ type TVariantsToLiterals<Variants extends string[], Result extends TSchema[] = []> = Variants extends [infer Left extends string, ...infer Right extends string[]] ? TVariantsToLiterals<Right, [...Result, TLiteral<Left>]> : Result;
1369
+ type TDecodeTypesAsUnion<Types extends TSchema[], Variants extends string[] = TDecodeFromSpan<[], Types>, Literals extends TSchema[] = TVariantsToLiterals<Variants>, Result extends TSchema = TUnion<Literals>> = Result;
1370
+ type TDecodeTypes<Types extends TSchema[], Result extends TSchema = (Types extends [] ? TUnreachable : Types extends [infer Type extends TLiteral] ? Type : TDecodeTypesAsUnion<Types>)> = Result;
1371
+ /** Decodes a TemplateLiteral into a Type. */
1372
+ type TTemplateLiteralDecodeUnsafe<Pattern extends string, Types extends TSchema[] = TParsePatternIntoTypes<Pattern>, Result extends TSchema = (Types extends [] ? TString$1 : TIsTemplateLiteralFinite<Types> extends true ? TDecodeTypes<Types> : TTemplateLiteral<Pattern>)> = Result;
1373
+ /** Decodes a TemplateLiteral pattern but returns TString if the pattern in non-finite. */
1374
+ type TTemplateLiteralDecode<Pattern extends string, Decoded extends TSchema = TTemplateLiteralDecodeUnsafe<Pattern>, Result extends TSchema = Decoded extends TTemplateLiteral ? TString$1 : Decoded> = Result;
1375
+ //#endregion
1376
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_any.d.mts
1377
+ type TFromAnyKey<Value extends TSchema, Result extends TSchema = TRecord<typeof StringKey, Value>> = Result;
1378
+ //#endregion
1379
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_boolean.d.mts
1380
+ type TFromBooleanKey<Value extends TSchema, Result extends TSchema = TObject<{
1381
+ true: Value;
1382
+ false: Value;
1383
+ }>> = Result;
1384
+ //#endregion
1385
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts
1386
+ type TFromEnumKey<Values extends TEnumValue[], Value extends TSchema, UnionKey extends TSchema = TEvaluateEnum<Values>, Result extends TSchema = TFromKey<UnionKey, Value>> = Result;
1387
+ //#endregion
1388
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_integer.d.mts
1389
+ type TFromIntegerKey<_Key extends TInteger$1, Value extends TSchema, Result extends TSchema = TRecord<typeof IntegerKey, Value>> = Result;
1390
+ //#endregion
1391
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_intersect.d.mts
1392
+ type TFromIntersectKey<Types extends TSchema[], Value extends TSchema, EvaluatedKey extends TSchema = TEvaluateIntersect<Types>, Result extends TSchema = TFromKey<EvaluatedKey, Value>> = Result;
1393
+ //#endregion
1394
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_literal.d.mts
1395
+ type TFromLiteralKey<Key extends TLiteralValue, Value extends TSchema, Result extends TSchema = (Key extends string | number ? TObject<{ [_ in Key]: Value; }> : Key extends false ? TObject<{
1396
+ false: Value;
1397
+ }> : Key extends true ? TObject<{
1398
+ true: Value;
1399
+ }> : TObject<{}>)> = Result;
1400
+ //#endregion
1401
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_number.d.mts
1402
+ type TFromNumberKey<Key extends TNumber$1, Value extends TSchema, Result extends TSchema = TRecord<typeof NumberKey, Value>> = Result;
1403
+ //#endregion
1404
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_string.d.mts
1405
+ type TFromStringKey<_Key extends TSchema, Value extends TSchema, Result extends TSchema = TRecord<typeof StringKey, Value>> = Result;
1406
+ //#endregion
1407
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts
1408
+ type TFromTemplateKey<Pattern extends string, Value extends TSchema, Types extends TSchema[] = TParsePatternIntoTypes<Pattern>, Finite extends boolean = TIsTemplateLiteralFinite<Types>, Result extends TSchema = Finite extends true ? TFromKey<TEvaluateTemplateLiteral<Pattern>, Value> : TRecord<Pattern, Value>> = Result;
1409
+ //#endregion
1410
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts
1411
+ type TFlattenType<Type extends TSchema, Result extends TSchema[] = Type extends TUnion<infer Types extends TSchema[]> ? TFlatten<Types> : [Type]> = Result;
1412
+ type TFlatten<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFlatten<Right, [...Result, ...TFlattenType<Left>]> : Result);
1413
+ //#endregion
1414
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_union.d.mts
1415
+ type TStringOrNumberCheck<Types extends TSchema[]> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? Left extends TString$1 | TNumber$1 | TInteger$1 ? true : TStringOrNumberCheck<Right> : false);
1416
+ type TTryBuildRecord<Types extends TSchema[], Value extends TSchema, Result extends TSchema | undefined = (TStringOrNumberCheck<Types> extends true ? TRecord<typeof StringKey, Value> : undefined)> = Result;
1417
+ type TCreateProperties<Variants extends TSchema[], Value extends TSchema, Result extends TProperties = {}> = (Variants extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? Left extends TLiteral<string | number> ? TCreateProperties<Right, Value, Result & { [_ in Left['const']]: Value; }> : TCreateProperties<Right, Value, Result> : { [Key in keyof Result]: Result[Key]; });
1418
+ type TCreateObject<Variants extends TSchema[], Value extends TSchema, Properties extends TProperties = TCreateProperties<Variants, Value>, Result extends TSchema = TObject<Properties>> = Result;
1419
+ type TFromUnionKey<Types extends TSchema[], Value extends TSchema, Flattened extends TSchema[] = TFlatten<Types>, Record extends TSchema | undefined = TTryBuildRecord<Flattened, Value>, Result extends TSchema = (Record extends TSchema ? Record : TCreateObject<Flattened, Value>)> = Result;
1420
+ //#endregion
1421
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key.d.mts
1422
+ type TFromKey<Key extends TSchema, Value extends TSchema, Result extends TSchema = (Key extends TAny ? TFromAnyKey<Value> : Key extends TBoolean ? TFromBooleanKey<Value> : Key extends TEnum<infer Values extends TEnumValue[]> ? TFromEnumKey<Values, Value> : Key extends TInteger$1 ? TFromIntegerKey<Key, Value> : Key extends TIntersect<infer Types extends TSchema[]> ? TFromIntersectKey<Types, Value> : Key extends TLiteral<infer LiteralValue extends TLiteralValue> ? TFromLiteralKey<LiteralValue, Value> : Key extends TNumber$1 ? TFromNumberKey<Key, Value> : Key extends TString$1 ? TFromStringKey<Key, Value> : Key extends TTemplateLiteral<infer Pattern extends string> ? TFromTemplateKey<Pattern, Value> : Key extends TUnion<infer Types extends TSchema[]> ? TFromUnionKey<Types, Value> : TObject<{}>)> = Result;
1423
+ //#endregion
1424
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/instantiate.d.mts
1425
+ type TRecordAction<Key extends TSchema, Value extends TSchema, Result extends TSchema = TCanInstantiate<[Key]> extends true ? TFromKey<Key, Value> : TRecordDeferred<Key, Value>> = Result;
1426
+ type TRecordInstantiate<Context extends TProperties, State extends TState, Key extends TSchema, Value extends TSchema, InstantiatedKey extends TSchema = TInstantiateType<Context, State, Key>, InstantiatedValue extends TSchema = TInstantiateType<Context, State, Value>> = TRecordAction<InstantiatedKey, InstantiatedValue>;
1427
+ //#endregion
1428
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/record.d.mts
1429
+ type StaticPropertyKey<Key extends string, Result extends PropertyKey = (Key extends TStringKey ? string : Key extends TIntegerKey ? number : Key extends TNumberKey ? number : Key extends `^${string}$` ? TTemplateLiteralStatic<Key> : string)> = Result;
1430
+ type StaticRecord<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Key extends string, Value extends TSchema, StaticKey extends PropertyKey = StaticPropertyKey<Key>, StaticValue extends unknown = StaticType<Stack, Direction, Context, This, Value>, Result extends Record$1<PropertyKey, unknown> = Record$1<StaticKey, StaticValue>> = Result;
1431
+ type TStringKey = typeof StringKey;
1432
+ type TIntegerKey = typeof IntegerKey;
1433
+ type TNumberKey = typeof NumberKey;
1434
+ declare const IntegerKey = "^-?(?:0|[1-9][0-9]*)$";
1435
+ declare const NumberKey = "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$";
1436
+ declare const StringKey = "^.*$";
1437
+ interface TRecord<Key extends string = string, Value extends TSchema = TSchema> extends TSchema {
1438
+ '~kind': 'Record';
1439
+ type: 'object';
1440
+ patternProperties: { [_ in Key]: Value; };
1441
+ }
1442
+ /** Represents a deferred Record action. */
1443
+ type TRecordDeferred<Key extends TSchema = TSchema, Value extends TSchema = TSchema> = (TDeferred<'Record', [Key, Value]>);
1444
+ /** Creates a Record type. */
1445
+ declare function Record$1<Key extends TSchema, Value extends TSchema>(key: Key, value: Value, options?: TObjectOptions): TRecordAction<Key, Value>;
1446
+ /** Transforms a Record Pattern to a Type */
1447
+ type TRecordPatternToType<Pattern extends string, Result extends TSchema = (Pattern extends typeof StringKey ? TString$1 : Pattern extends typeof IntegerKey ? TInteger$1 : Pattern extends typeof NumberKey ? TNumber$1 : TTemplateLiteralDecodeUnsafe<Pattern>)> = Result;
1448
+ /** Extracts the Pattern from a Record type */
1449
+ type TRecordPattern<Type extends TRecord, Result extends string = Extract<keyof Type['patternProperties'], string>> = Result;
1450
+ /** Extracts the Pattern from a Record type */
1451
+ declare function RecordPattern<Type extends TRecord>(type: Type): TRecordPattern<Type>;
1452
+ /** Extracts the Key from a Record type */
1453
+ type TRecordKey<Type extends TRecord, Pattern extends string = TRecordPattern<Type>, Result extends TSchema = TRecordPatternToType<Pattern>> = Result;
1454
+ /** Extracts the Key from a Record type */
1455
+ declare function RecordKey<Type extends TRecord>(type: Type): TRecordKey<Type>;
1456
+ /** Extracts the Value from a Record type */
1457
+ type TRecordValue<Type extends TRecord, Result extends TSchema = Type['patternProperties'][TRecordPattern<Type>]> = Result;
1458
+ /** Extracts the Value from a Record type */
1459
+ declare function RecordValue<Type extends TRecord>(type: Type): TRecordValue<Type>;
1460
+ declare function IsRecord(value: unknown): value is TRecord;
1461
+ //#endregion
1462
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/this.d.mts
1463
+ type StaticThis<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties> = (StaticType<Stack, Direction, Context, This, TObject<This>>);
1464
+ /** Represents a This type. */
1465
+ interface TThis extends TSchema {
1466
+ '~kind': 'This';
1467
+ $ref: '#';
1468
+ }
1469
+ /** Creates a This type. */
1470
+ declare function This(options?: TSchemaOptions): TThis;
1471
+ /** Returns true if the given value is TThis. */
1472
+ declare function IsThis(value: unknown): value is TThis;
1473
+ //#endregion
1474
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/evaluate/compare.d.mts
1475
+ declare const CompareResultEqual = 0;
1476
+ declare const CompareResultDisjoint = 1;
1477
+ declare const CompareResultLeftInside = 2;
1478
+ declare const CompareResultRightInside = 3;
1479
+ type TCompareResult = (typeof CompareResultEqual | typeof CompareResultDisjoint | typeof CompareResultLeftInside | typeof CompareResultRightInside);
1480
+ /** Compares left and right types and determines their set relationship */
1481
+ type TCompare<Left extends TSchema, Right extends TSchema, Extends extends [TResult, TResult] = [TExtends<{}, Left, Right>, TExtends<{}, Right, Left>]> = (Extends extends [TExtendsTrueLike, TExtendsTrueLike] ? typeof CompareResultEqual : Extends extends [TExtendsTrueLike, TExtendsFalse] ? typeof CompareResultLeftInside : Extends extends [TExtendsFalse, TExtendsTrueLike] ? typeof CompareResultRightInside : typeof CompareResultDisjoint);
1482
+ //#endregion
1483
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts
1484
+ type TBroadenFilter<Type extends TSchema, Types extends TSchema[], Result extends TSchema[] = [], All extends TSchema[] = Types> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TCompare<Type, Left> extends typeof CompareResultLeftInside | typeof CompareResultEqual ? All : TCompare<Type, Left> extends typeof CompareResultDisjoint ? TBroadenFilter<Type, Right, [...Result, Left], All> : TBroadenFilter<Type, Right, Result, All> : [...Result, Type]);
1485
+ type TBroadenType<Type extends TSchema, Types extends TSchema[], Result extends TSchema[], Evaluated extends TSchema = TEvaluateType<Type>> = (Evaluated extends TAny ? [Evaluated] : Evaluated extends TUnknown ? [Evaluated] : Evaluated extends TNever ? TBroadenTypes<Types, Result> : Evaluated extends TObject ? TBroadenTypes<Types, [...Result, Evaluated]> : TBroadenTypes<Types, TBroadenFilter<Evaluated, Result>>);
1486
+ type TBroadenTypes<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TBroadenType<Left, Right, Result> : Result);
1487
+ type TBroaden<Types extends TSchema[], Broadened extends TSchema[] = TBroadenTypes<Types>, Flattened extends TSchema[] = TFlatten<Broadened>> = Flattened;
1488
+ //#endregion
1489
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts
1490
+ type TEvaluateAction<Type extends TSchema, Result extends TSchema = TEvaluateType<Type>> = Result;
1491
+ type TEvaluateInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TEvaluateAction<InstantiatedType>;
1492
+ //#endregion
1493
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts
1494
+ type TCollectDistributionNames<Expression extends TSchema, Result extends string[] = []> = (Expression extends TDeferred<'Conditional', [infer Left extends TSchema, infer _Right extends TSchema, infer True extends TSchema, infer False extends TSchema]> ? Left extends TRef ? TCollectDistributionNames<True, TCollectDistributionNames<False, [...Result, Left['$ref']]>> : TCollectDistributionNames<True, TCollectDistributionNames<False, Result>> : Expression extends TDeferred<'Mapped', [infer _Identifier extends TSchema, infer Type extends TSchema, infer _As extends TSchema, infer _Property extends TSchema]> ? (Type extends TDeferred<'KeyOf', [infer Ref extends TRef]> ? [...Result, Ref['$ref']] : Result) : Result);
1495
+ type TBuildDistributionArray<Parameters extends TParameter$1[], Names extends string[], Result extends boolean[] = []> = (Parameters extends [infer Left extends TParameter$1, ...infer Right extends TParameter$1[]] ? Left['name'] extends Names[number] ? TBuildDistributionArray<Right, Names, [...Result, true]> : TBuildDistributionArray<Right, Names, [...Result, false]> : Result);
1496
+ type TZipDistributionArray<Arguments extends TSchema[], DistributionArray extends boolean[], Result extends [boolean, TSchema][] = []> = (Arguments extends [infer ArgumentLeft extends TSchema, ...infer ArgumentRight extends TSchema[]] ? DistributionArray extends [infer BooleanLeft extends boolean, ...infer BooleanRight extends boolean[]] ? TZipDistributionArray<ArgumentRight, BooleanRight, [...Result, [BooleanLeft, ArgumentLeft]]> : Result : Result);
1497
+ type TCanonicalArgument<Type extends TSchema> = (Type extends TTemplateLiteral<infer Pattern extends string> ? TEvaluateTemplateLiteral<Pattern> : Type extends TEnum<infer Values extends TEnumValue[]> ? TEvaluateEnum<Values> : Type);
1498
+ type TExpand<Argument extends TSchema, CanonicalArgument extends TSchema = TCanonicalArgument<Argument>> = (CanonicalArgument extends TUnion<infer Types extends TSchema[]> ? [...Types] : [CanonicalArgument]);
1499
+ type TAppend<Current extends TSchema[][], Type extends TSchema, Result extends TSchema[][] = []> = (Current extends [infer Left extends TSchema[], ...infer Right extends TSchema[][]] ? TAppend<Right, Type, [...Result, [...Left, Type]]> : Result);
1500
+ type TCross<Current extends TSchema[][], Variants extends TSchema[], Result extends TSchema[][] = []> = (Variants extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TCross<Current, Right, [...Result, ...TAppend<Current, Left>]> : Result);
1501
+ type TDistribute<ZippedArguments extends [boolean, TSchema][], Result extends TSchema[][] = [[]]> = (ZippedArguments extends [infer Left extends [boolean, TSchema], ...infer Right extends [boolean, TSchema][]] ? Left[0] extends true ? TDistribute<Right, TCross<Result, TExpand<Left[1]>>> : TDistribute<Right, TCross<Result, [Left[1]]>> : Result);
1502
+ type TDistributeArguments<Parameters extends TParameter$1[], Arguments extends TSchema[], Expression extends TSchema, DistributionNames extends string[] = TCollectDistributionNames<Expression>, DistributionArray extends boolean[] = TBuildDistributionArray<Parameters, DistributionNames>, ZippedArguments extends [boolean, TSchema][] = TZipDistributionArray<Arguments, DistributionArray>, Result extends TSchema[][] = (Expression extends TDeferred<'Conditional', TSchema[]> ? TDistribute<ZippedArguments> : Expression extends TDeferred<'Mapped', TSchema[]> ? TDistribute<ZippedArguments> : [Arguments])> = Result;
1503
+ //#endregion
1504
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/call/resolve_target.d.mts
1505
+ type TFromNotResolvable = (['(not-resolvable)', TNever]);
1506
+ type TFromNotGeneric = (['(not-generic)', TNever]);
1507
+ type TFromGeneric<Name extends string, Parameters extends TParameter$1[], Expression extends TSchema> = ([Name, TGeneric<Parameters, Expression>]);
1508
+ type TFromRef<Context extends TProperties, Ref extends string, Arguments extends TSchema[]> = (Ref extends keyof Context ? TFromType$12<Context, Ref, Context[Ref], Arguments> : TFromNotResolvable);
1509
+ type TFromType$12<Context extends TProperties, Name extends string, Type extends TSchema, Arguments extends TSchema[]> = (Type extends TGeneric<infer Parameters extends TParameter$1[], infer Expression extends TSchema> ? TFromGeneric<Name, Parameters, Expression> : Type extends TRef<infer Ref extends string> ? TFromRef<Context, Ref, Arguments> : TFromNotGeneric);
1510
+ /** Resolves a named generic target from the context, or returns TNever if it cannot be resolved or is not generic. */
1511
+ type TResolveTarget<Context extends TProperties, Target extends TSchema, Arguments extends TSchema[], Result extends [string, TSchema] = TFromType$12<Context, '(anonymous)', Target, Arguments>> = Result;
1512
+ //#endregion
1513
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/call/resolve_arguments.d.mts
1514
+ type TBindArgument<Context extends TProperties, State extends TState, Name extends string, Extends extends TSchema, Type extends TSchema, InstantiatedArgument extends TSchema = TInstantiateType<Context, State, Type>> = TAssign<Context, { [_ in Name]: InstantiatedArgument; }>;
1515
+ type TBindArguments<Context extends TProperties, State extends TState, ParameterLeft extends TParameter$1, ParameterRight extends TParameter$1[], Arguments extends TSchema[], InstantiatedExtends extends TSchema = TInstantiateType<Context, State, ParameterLeft['extends']>, InstantiatedEquals extends TSchema = TInstantiateType<Context, State, ParameterLeft['equals']>> = (Arguments extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TBindParameters<TBindArgument<Context, State, ParameterLeft['name'], InstantiatedExtends, Left>, State, ParameterRight, Right> : TBindParameters<TBindArgument<Context, State, ParameterLeft['name'], InstantiatedExtends, InstantiatedEquals>, State, ParameterRight, []>);
1516
+ type TBindParameters<Context extends TProperties, State extends TState, Parameters extends TParameter$1[], Arguments extends TSchema[]> = (Parameters extends [infer Left extends TParameter$1, ...infer Right extends TParameter$1[]] ? TBindArguments<Context, State, Left, Right, Arguments> : Context);
1517
+ type TResolveArgumentsContext<Context extends TProperties, State extends TState, Parameters extends TParameter$1[], Arguments extends TSchema[], Result extends TProperties = TBindParameters<Context, State, Parameters, Arguments>> = Result;
1518
+ //#endregion
1519
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/call/instantiate.d.mts
1520
+ type TPeek<State extends TState, Result extends string = State['callstack'] extends [...infer _ extends string[], infer Top extends string] ? Top : ''> = Result;
1521
+ type TIsTailCall<State extends TState, Name extends string, Result extends boolean = TPeek<State> extends Name ? true : false> = Result;
1522
+ type TCallDispatch<Context extends TProperties, State extends TState, Target extends TRef, Parameters extends TParameter$1[], Expression extends TSchema, Arguments extends TSchema[], ArgumentsContext extends TProperties = TResolveArgumentsContext<Context, State, Parameters, Arguments>, ReturnType extends TSchema = TInstantiateType<ArgumentsContext, TState<[...State['callstack'], Target['$ref']], State['visited']>, Expression>> = TInstantiateType<ArgumentsContext, TState<[], []>, ReturnType>;
1523
+ type TCallDistributed<Context extends TProperties, State extends TState, Target extends TRef, Parameters extends TParameter$1[], Expression extends TSchema, DistributedArguments extends TSchema[][], Result extends TSchema[] = []> = (DistributedArguments extends [infer Arguments extends TSchema[], ...infer DistributedArguments extends TSchema[][]] ? TCallDispatch<Context, State, Target, Parameters, Expression, Arguments> extends (infer ReturnType extends TSchema) ? TCallDistributed<Context, State, Target, Parameters, Expression, DistributedArguments, [...Result, ReturnType]> : never : Result);
1524
+ type TCallImmediate<Context extends TProperties, State extends TState, Target extends TRef, Parameters extends TParameter$1[], Expression extends TSchema, InstantiatedArguments extends TSchema[], DistributedArguments extends TSchema[][] = TDistributeArguments<Parameters, InstantiatedArguments, Expression>, ReturnTypes extends TSchema[] = TCallDistributed<Context, State, Target, Parameters, Expression, DistributedArguments>, Result extends TSchema = ReturnTypes['length'] extends 1 ? ReturnTypes[0] : TEvaluateUnion<ReturnTypes>> = Result;
1525
+ type TCallInstantiate<Context extends TProperties, State extends TState, Target extends TSchema, Arguments extends TSchema[], InstantiatedArguments extends TSchema[] = TInstantiateTypes<Context, State, Arguments>, Resolved extends [string, TSchema] = TResolveTarget<Context, Target, Arguments>, Name extends string = Resolved[0], Type extends TSchema = Resolved[1], Result extends TSchema = (Type extends TGeneric<infer Parameters extends TParameter$1[], infer Expression extends TSchema> ? TIsTailCall<State, Name> extends true ? TCallConstruct<TRef<Name>, InstantiatedArguments> : TCallImmediate<Context, State, TRef<Name>, Parameters, Expression, InstantiatedArguments> : TCallConstruct<Target, InstantiatedArguments>)> = Result;
1526
+ //#endregion
1527
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/call.d.mts
1528
+ /** Represents a deferred generic Call */
1529
+ interface TCall<Target extends TSchema = TSchema, Arguments extends TSchema[] = TSchema[]> extends TSchema {
1530
+ '~kind': 'Call';
1531
+ type: 'call';
1532
+ target: Target;
1533
+ arguments: Arguments;
1534
+ }
1535
+ type TCallConstruct<Target extends TSchema, Arguments extends TSchema[], Result extends TSchema = TCall<Target, Arguments>> = Result;
1536
+ /** Creates a Call type. */
1537
+ declare function Call<Target extends TSchema, Arguments extends TSchema[]>(target: Target, arguments_: [...Arguments]): TCallInstantiate<{}, TState<[], []>, Target, Arguments>;
1538
+ /** Returns true if the given type is a TCall. */
1539
+ declare function IsCall(value: unknown): value is TCall;
1540
+ //#endregion
1541
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts
1542
+ type TRemoveImmutableOperation<Type extends TSchema, Result extends TSchema = Type extends TImmutable<infer Type extends TSchema> ? TRemoveImmutableOperation<Type> : Type> = Result;
1543
+ type TRemoveImmutableAction<Type extends TSchema, Result extends TSchema = TRemoveImmutableOperation<Type>> = Result;
1544
+ type TRemoveImmutableInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TRemoveImmutableAction<InstantiateType>;
1545
+ //#endregion
1546
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts
1547
+ interface TMappingType {
1548
+ input: string;
1549
+ output: string;
1550
+ }
1551
+ type TApplyMapping<Mapping extends TMappingType, Value extends string> = ((Mapping & {
1552
+ input: Value;
1553
+ })['output']);
1554
+ //#endregion
1555
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/intrinsics/from_literal.d.mts
1556
+ type TFromLiteral$2<Mapping extends TMappingType, Value extends TLiteralValue> = (Value extends string ? TLiteral<TApplyMapping<Mapping, Value>> : TLiteral<Value>);
1557
+ //#endregion
1558
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts
1559
+ type TFromTemplateLiteral$2<Mapping extends TMappingType, Pattern extends string, Evaluated extends TSchema = TEvaluateTemplateLiteral<Pattern>, Result extends TSchema = TFromType$11<Mapping, Evaluated>> = Result;
1560
+ //#endregion
1561
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/intrinsics/from_union.d.mts
1562
+ type TFromUnion$6<Mapping extends TMappingType, Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion$6<Mapping, Right, [...Result, TFromType$11<Mapping, Left>]> : TUnion<Result>);
1563
+ //#endregion
1564
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/intrinsics/from_type.d.mts
1565
+ type TFromType$11<Mapping extends TMappingType, Type extends TSchema> = (Type extends TLiteral<infer Value extends TLiteralValue> ? TFromLiteral$2<Mapping, Value> : Type extends TTemplateLiteral<infer Pattern extends string> ? TFromTemplateLiteral$2<Mapping, Pattern> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion$6<Mapping, Types> : Type);
1566
+ //#endregion
1567
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/capitalize.d.mts
1568
+ /** Creates a deferred Capitalize action. */
1569
+ type TCapitalizeDeferred<Type extends TSchema> = (TDeferred<'Capitalize', [Type]>);
1570
+ /** Applies a Capitalize action to the given type. */
1571
+ type TCapitalize<Type extends TSchema> = (TCapitalizeAction<Type>);
1572
+ /** Applies a Capitalize action to the given type. */
1573
+ declare function Capitalize$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TCapitalize<Type>;
1574
+ //#endregion
1575
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/lowercase.d.mts
1576
+ /** Creates a deferred Lowercase action. */
1577
+ type TLowercaseDeferred<Type extends TSchema> = (TDeferred<'Lowercase', [Type]>);
1578
+ /** Applies a Lowercase action to the given type. */
1579
+ type TLowercase<Type extends TSchema> = (TLowercaseAction<Type>);
1580
+ /** Applies a Lowercase action to the given type. */
1581
+ declare function Lowercase$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TLowercase<Type>;
1582
+ //#endregion
1583
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/uncapitalize.d.mts
1584
+ /** Creates a deferred Uncapitalize action. */
1585
+ type TUncapitalizeDeferred<Type extends TSchema> = (TDeferred<'Uncapitalize', [Type]>);
1586
+ /** Applies a Uncapitalize action to the given type. */
1587
+ type TUncapitalize<Type extends TSchema> = (TUncapitalizeAction<Type>);
1588
+ /** Applies a Uncapitalize action to the given type. */
1589
+ declare function Uncapitalize$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TUncapitalize<Type>;
1590
+ //#endregion
1591
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/uppercase.d.mts
1592
+ /** Creates a deferred Uppercase action. */
1593
+ type TUppercaseDeferred<Type extends TSchema> = (TDeferred<'Uppercase', [Type]>);
1594
+ /** Applies a Uppercase action to the given type. */
1595
+ type TUppercase<Type extends TSchema> = (TUppercaseAction<Type>);
1596
+ /** Applies a Uppercase action to the given type. */
1597
+ declare function Uppercase$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TUppercase<Type>;
1598
+ //#endregion
1599
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts
1600
+ interface TCapitalizeMapping extends TMappingType {
1601
+ output: Capitalize<this['input']>;
1602
+ }
1603
+ interface TLowercaseMapping extends TMappingType {
1604
+ output: Lowercase<this['input']>;
1605
+ }
1606
+ interface TUncapitalizeMapping extends TMappingType {
1607
+ output: Uncapitalize<this['input']>;
1608
+ }
1609
+ interface TUppercaseMapping extends TMappingType {
1610
+ output: Uppercase<this['input']>;
1611
+ }
1612
+ type TCapitalizeAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType$11<TCapitalizeMapping, Type> : TCapitalizeDeferred<Type>> = Result;
1613
+ type TLowercaseAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType$11<TLowercaseMapping, Type> : TLowercaseDeferred<Type>> = Result;
1614
+ type TUncapitalizeAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType$11<TUncapitalizeMapping, Type> : TUncapitalizeDeferred<Type>> = Result;
1615
+ type TUppercaseAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType$11<TUppercaseMapping, Type> : TUppercaseDeferred<Type>> = Result;
1616
+ type TCapitalizeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TCapitalizeAction<InstantiatedType>;
1617
+ type TLowercaseInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TLowercaseAction<InstantiatedType>;
1618
+ type TUncapitalizeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TUncapitalizeAction<InstantiatedType>;
1619
+ type TUppercaseInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TUppercaseAction<InstantiatedType>;
1620
+ //#endregion
1621
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/conditional.d.mts
1622
+ /** Creates a deferred Conditional action. */
1623
+ type TConditionalDeferred<Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema> = (TDeferred<'Conditional', [Left, Right, True, False]>);
1624
+ /** Applies a Conditional action to the given types. */
1625
+ type TConditional<Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema> = (TConditionalAction<{}, TState<[], []>, Left, Right, True, False>);
1626
+ /** Applies a Conditional action to the given types. */
1627
+ declare function Conditional<Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema>(left: Left, right: Right, true_: True, false_: False, options?: TSchemaOptions): TConditional<Left, Right, True, False>;
1628
+ //#endregion
1629
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts
1630
+ type TConditionalOperation<Context extends TProperties, State extends TState, Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema, ExtendsResult extends ExtendsResult.TResult = TExtends<Context, Left, Right>> = (ExtendsResult extends ExtendsResult.TExtendsUnion<infer InferredContext extends TProperties> ? TUnion<[TInstantiateType<InferredContext, State, True>, TInstantiateType<Context, State, False>]> : ExtendsResult extends ExtendsResult.TExtendsTrue<infer InferredContext extends TProperties> ? TInstantiateType<InferredContext, State, True> : TInstantiateType<Context, State, False>);
1631
+ type TConditionalAction<Context extends TProperties, State extends TState, Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema, Result extends TSchema = TCanInstantiate<[Left, Right]> extends true ? TConditionalOperation<Context, State, Left, Right, True, False> : TConditionalDeferred<Left, Right, True, False>> = Result;
1632
+ type TConditionalInstantiate<Context extends TProperties, State extends TState, Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema, InstaniatedLeft extends TSchema = TInstantiateType<Context, State, Left>, InstaniatedRight extends TSchema = TInstantiateType<Context, State, Right>> = TConditionalAction<Context, State, InstaniatedLeft, InstaniatedRight, True, False>;
1633
+ //#endregion
1634
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/constructor_parameters.d.mts
1635
+ /** Creates a deferred ConstructorParameters action. */
1636
+ type TConstructorParametersDeferred<Type extends TSchema> = (TDeferred<'ConstructorParameters', [Type]>);
1637
+ /** Applies a ConstructorParameters action to a type. */
1638
+ type TConstructorParameters<Type extends TSchema> = (TConstructorParametersAction<Type>);
1639
+ /** Applies a ConstructorParameters action to a type. */
1640
+ declare function ConstructorParameters<Type extends TSchema>(type: Type, options?: TSchemaOptions): TConstructorParameters<Type>;
1641
+ //#endregion
1642
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts
1643
+ type TConstructorParametersOperation<Type extends TSchema, Parameters extends TSchema[] = Type extends TConstructor ? Type['parameters'] : [], InstantiatedParameters extends TSchema[] = TInstantiateElements<{}, TState<[], []>, Parameters>, Result extends TSchema = TTuple<InstantiatedParameters>> = Result;
1644
+ type TConstructorParametersAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TConstructorParametersOperation<Type> : TConstructorParametersDeferred<Type>> = Result;
1645
+ type TConstructorParametersInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TConstructorParametersAction<InstantiatedType>;
1646
+ //#endregion
1647
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/exclude.d.mts
1648
+ /** Creates a deferred Exclude action. */
1649
+ type TExcludeDeferred<Left extends TSchema, Right extends TSchema> = (TDeferred<'Exclude', [Left, Right]>);
1650
+ /** Applies a Exclude action using the given types */
1651
+ type TExclude<Left extends TSchema, Right extends TSchema> = (TExcludeAction<Left, Right>);
1652
+ /** Applies a Exclude action using the given types */
1653
+ declare function Exclude$1<Left extends TSchema, Right extends TSchema>(left: Left, right: Right, options?: TSchemaOptions): TExclude<Left, Right>;
1654
+ //#endregion
1655
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts
1656
+ type TExcludeAction<Left extends TSchema, Right extends TSchema, Result extends TSchema = TCanInstantiate<[Left, Right]> extends true ? TExcludeOperation<Left, Right> : TExcludeDeferred<Left, Right>> = Result;
1657
+ type TExcludeInstantiate<Context extends TProperties, State extends TState, Left extends TSchema, Right extends TSchema, InstantiatedLeft extends TSchema = TInstantiateType<Context, State, Left>, InstantiatedRight extends TSchema = TInstantiateType<Context, State, Right>> = TExcludeAction<InstantiatedLeft, InstantiatedRight>;
1658
+ //#endregion
1659
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/extract.d.mts
1660
+ /** Creates a deferred Extract action. */
1661
+ type TExtractDeferred<Left extends TSchema, Right extends TSchema> = (TDeferred<'Extract', [Left, Right]>);
1662
+ /** Applies an Extract action using the given types. */
1663
+ type TExtract<Left extends TSchema, Right extends TSchema> = (TExtractAction<Left, Right>);
1664
+ /** Applies an Extract action using the given types. */
1665
+ declare function Extract$1<Left extends TSchema, Right extends TSchema>(left: Left, right: Right, options?: TSchemaOptions): TExtract<Left, Right>;
1666
+ //#endregion
1667
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/extract/operation.d.mts
1668
+ type TExtractType<Left extends TSchema, Right extends TSchema, Check extends TResult = TExtends<{}, Left, Right>, Result extends TSchema[] = Check extends TExtendsTrueLike ? [Left] : []> = Result;
1669
+ type TExtractUnion<Left extends TSchema[], Right extends TSchema, Result extends TSchema[] = []> = (Left extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtractUnion<Tail, Right, [...Result, ...TExtractType<Head, Right>]> : Result);
1670
+ type TExtractOperation<Left extends TSchema, Right extends TSchema, Evaluated extends TSchema = TEvaluateType<Left>, Canonical extends TSchema[] = Evaluated extends TUnion<infer Types extends TSchema[]> ? Types : [Evaluated], Remaining extends TSchema[] = TExtractUnion<Canonical, Right>, Result extends TSchema = TEvaluateUnion<Remaining>> = Result;
1671
+ //#endregion
1672
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/extract/instantiate.d.mts
1673
+ type TExtractAction<Left extends TSchema, Right extends TSchema, Result extends TSchema = TCanInstantiate<[Left, Right]> extends true ? TExtractOperation<Left, Right> : TExtractDeferred<Left, Right>> = Result;
1674
+ type TExtractInstantiate<Context extends TProperties, State extends TState, Left extends TSchema, Right extends TSchema, InstantiatedLeft extends TSchema = TInstantiateType<Context, State, Left>, InstantiatedRight extends TSchema = TInstantiateType<Context, State, Right>> = TExtractAction<InstantiatedLeft, InstantiatedRight>;
1675
+ //#endregion
1676
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.d.mts
1677
+ type TKeysToLiterals<Keys extends PropertyKey[], Result extends TLiteral[] = []> = (Keys extends [infer Left extends PropertyKey, ...infer Right extends PropertyKey[]] ? (Left extends TLiteralValue ? TKeysToLiterals<Right, [...Result, TLiteral<Left>]> : TKeysToLiterals<Right, Result>) : Result);
1678
+ type TKeysToIndexer<Keys extends PropertyKey[], Literals extends TLiteral[] = TKeysToLiterals<Keys>, Result extends TSchema = TUnion<Literals>> = Result;
1679
+ //#endregion
1680
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/indexed.d.mts
1681
+ /** Creates a deferred Index action. */
1682
+ type TIndexDeferred<Type extends TSchema, Indexer extends TSchema> = (TDeferred<'Index', [Type, Indexer]>);
1683
+ /** Applies a Index action using the given types. */
1684
+ type TIndex<Type extends TSchema, Indexer extends TSchema> = (TIndexAction<Type, Indexer>);
1685
+ /** Applies a Index action using the given types. */
1686
+ declare function Index<Type extends TSchema, Indexer extends PropertyKey[]>(type: Type, indexer: readonly [...Indexer], options?: TSchemaOptions): TIndex<Type, TKeysToIndexer<Indexer>>;
1687
+ /** Applies a Index action using the given types. */
1688
+ declare function Index<Type extends TSchema, Indexer extends TSchema>(type: Type, indexer: Indexer, options?: TSchemaOptions): TIndex<Type, Indexer>;
1689
+ //#endregion
1690
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/object/from_cyclic.d.mts
1691
+ type TFromCyclic$4<Defs extends TProperties, Ref extends string, Target extends TSchema = TCyclicTarget<Defs, Ref>, Result extends TProperties = TFromType$10<Target>> = Result;
1692
+ //#endregion
1693
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/object/from_dependent.d.mts
1694
+ type TFromDependent$4<If extends TSchema, Then extends TSchema, Else extends TSchema, Evaluated extends TSchema = TEvaluateDependent<If, Then, Else>, Result extends TSchema = TFromType$10<Evaluated>> = Result;
1695
+ //#endregion
1696
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/object/from_intersect.d.mts
1697
+ type TCollapseIntersectProperties<Left extends TProperties, Right extends TProperties, LeftKeys extends keyof Left = Exclude<keyof Left, keyof Right>, RightKeys extends keyof Right = Exclude<keyof Right, keyof Left>, SharedKeys extends keyof Left & keyof Right = Extract<keyof Left, keyof Right>, LeftProperties extends TProperties = { [Key in LeftKeys]: Left[Key]; }, RightProperties extends TProperties = { [Key in RightKeys]: Right[Key]; }, SharedProperties extends TProperties = { [Key in SharedKeys]: TEvaluateIntersect<[Left[Key], Right[Key]]>; }, Unique extends TProperties = TAssign<LeftProperties, RightProperties>, Shared extends TProperties = TAssign<Unique, SharedProperties>> = Shared;
1698
+ type TFromIntersect$4<Types extends TSchema[], Result extends TProperties = {}> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromIntersect$4<Right, TCollapseIntersectProperties<Result, TFromType$10<Left>>> : { [Key in keyof Result]: Result[Key]; });
1699
+ //#endregion
1700
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/object/from_object.d.mts
1701
+ type TFromObject$5<Properties extends TProperties> = (Properties);
1702
+ //#endregion
1703
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/object/from_tuple.d.mts
1704
+ type TFromTuple$3<Types extends TSchema[], Object extends TSchema = TTupleToObject<TTuple<Types>>, Result extends TSchema = TFromType$10<Object>> = Result;
1705
+ //#endregion
1706
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/object/from_union.d.mts
1707
+ type TCollapseUnionProperties<Left extends TProperties, Right extends TProperties, SharedKeys extends PropertyKey = keyof Left & keyof Right, Result extends TProperties = { [Key in SharedKeys]: TEvaluateUnion<[Left[Key], Right[Key]]>; }> = Result;
1708
+ type TReduceVariants<Types extends TSchema[], Result extends TProperties> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TReduceVariants<Right, TCollapseUnionProperties<Result, TFromType$10<Left>>> : Result);
1709
+ type TFromUnion$5<Types extends TSchema[]> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TReduceVariants<Right, TFromType$10<Left>> : TUnreachable);
1710
+ //#endregion
1711
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/object/from_type.d.mts
1712
+ type TFromType$10<Type extends TSchema, Result extends TProperties = (Type extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? TFromCyclic$4<Defs, Ref> : Type extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TFromDependent$4<If, Then, Else> : Type extends TIntersect<infer Types extends TSchema[]> ? TFromIntersect$4<Types> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion$5<Types> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTuple$3<Types> : Type extends TObject<infer Properties extends TProperties> ? TFromObject$5<Properties> : {})> = Result;
1713
+ //#endregion
1714
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/object/collapse.d.mts
1715
+ type TCollapseToObject<Type extends TSchema, Properties extends TProperties = TFromType$10<Type>, Result extends TSchema = TObject<Properties>> = Result;
1716
+ //#endregion
1717
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/helpers/keys.d.mts
1718
+ type TConvertToIntegerKey<Value extends TLiteralValue, Normal extends string = `${Value}`, Result extends TLiteralValue = (Normal extends ` ${infer _ extends number}` ? Normal : Normal extends `${infer _ extends number} ` ? Normal : Normal extends `0${infer _ extends number}` ? Normal : Normal extends `-${infer _ extends number}` ? Normal : Normal extends `${infer Value extends number}` ? Value : Value)> = Result;
1719
+ //#endregion
1720
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexed/from_array.d.mts
1721
+ type TNormalizeLiteral<Value extends TLiteralValue, Result extends TSchema = TLiteral<TConvertToIntegerKey<Value>>> = Result;
1722
+ type TNormalizeIndexerTypes<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TNormalizeIndexerTypes<Right, [...Result, TNormalizeIndexer<Left>]> : Result);
1723
+ type TNormalizeIndexer<Type extends TSchema, Result extends TSchema = (Type extends TIntersect<infer Types extends TSchema[]> ? TIntersect<TNormalizeIndexerTypes<Types>> : Type extends TUnion<infer Types extends TSchema[]> ? TUnion<TNormalizeIndexerTypes<Types>> : Type extends TLiteral<infer Value extends TLiteralValue> ? TNormalizeLiteral<Value> : Type)> = Result;
1724
+ type TFromArray$2<Type extends TSchema, Indexer extends TSchema, NormalizedIndexer extends TSchema = TNormalizeIndexer<Indexer>, Check extends TResult = TExtends<{}, NormalizedIndexer, TNumber$1>, Result extends TSchema = (Check extends TExtendsTrueLike ? Type : Indexer extends TLiteral<infer _ extends 'length'> ? TNumber$1 : TNever)> = Result;
1725
+ //#endregion
1726
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/from_cyclic.d.mts
1727
+ type TFromCyclic$3<Defs extends TProperties, Ref extends string, Target extends TSchema = TCyclicTarget<Defs, Ref>, Result extends string[] = TFromType$9<Target>> = Result;
1728
+ //#endregion
1729
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts
1730
+ type TFromDependent$3<If extends TSchema, Then extends TSchema, Else extends TSchema, Evaluated extends TSchema = TEvaluateDependent<If, Then, Else>, Result extends string[] = TFromType$9<Evaluated>> = Result;
1731
+ //#endregion
1732
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts
1733
+ type TFromEnum$1<Values extends TEnumValue[], Evaluated extends TSchema = TEvaluateEnum<Values>, Result extends string[] = TFromType$9<Evaluated>> = Result;
1734
+ //#endregion
1735
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/from_intersect.d.mts
1736
+ type TFromIntersect$3<Types extends TSchema[], Evaluated extends TSchema = TEvaluateIntersect<Types>, Result extends string[] = TFromType$9<Evaluated>> = Result;
1737
+ //#endregion
1738
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/from_literal.d.mts
1739
+ type TFromLiteral$1<Value extends TLiteralValue, Result extends string[] = [`${Value}`]> = Result;
1740
+ //#endregion
1741
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts
1742
+ type TFromTemplateLiteral$1<Pattern extends string, Evaluated extends TSchema = TEvaluateTemplateLiteral<Pattern>, Result extends string[] = TFromType$9<Evaluated>> = Result;
1743
+ //#endregion
1744
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/from_union.d.mts
1745
+ type TFromUnion$4<Types extends TSchema[], Result extends string[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion$4<Right, [...Result, ...TFromType$9<Left>]> : Result);
1746
+ //#endregion
1747
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/from_type.d.mts
1748
+ type TFromType$9<Indexer extends TSchema, Result extends string[] = (Indexer extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? TFromCyclic$3<Defs, Ref> : Indexer extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TFromDependent$3<If, Then, Else> : Indexer extends TEnum<infer Values extends TEnumValue[]> ? TFromEnum$1<Values> : Indexer extends TIntersect<infer Types extends TSchema[]> ? TFromIntersect$3<Types> : Indexer extends TLiteral<infer Value extends TLiteralValue> ? TFromLiteral$1<Value> : Indexer extends TTemplateLiteral<infer Pattern extends string> ? TFromTemplateLiteral$1<Pattern> : Indexer extends TUnion<infer Types extends TSchema[]> ? TFromUnion$4<Types> : [])> = Result;
1749
+ //#endregion
1750
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.d.mts
1751
+ type TToIndexableKeys<Indexer extends TSchema, Result extends string[] = TFromType$9<Indexer>> = Result;
1752
+ //#endregion
1753
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/this/expand_this.d.mts
1754
+ type TFromTypes<Properties extends TProperties, Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromTypes<Properties, Right, [...Result, TFromType$8<Properties, Left>]> : Result);
1755
+ type TFromType$8<Properties extends TProperties, Type extends TSchema> = (Type extends TArray<infer Type extends TSchema> ? TArray<TFromType$8<Properties, Type>> : Type extends TConstructor<infer Parameters extends TSchema[], infer InstanceType extends TSchema> ? TConstructor<TFromTypes<Properties, Parameters>, TFromType$8<Properties, InstanceType>> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TFunction<TFromTypes<Properties, Parameters>, TFromType$8<Properties, ReturnType>> : Type extends TTuple<infer Types extends TSchema[]> ? TTuple<TFromTypes<Properties, Types>> : Type extends TUnion<infer Types extends TSchema[]> ? TUnion<TFromTypes<Properties, Types>> : Type extends TIntersect<infer Types extends TSchema[]> ? TIntersect<TFromTypes<Properties, Types>> : Type extends TThis ? TObject<Properties> : Type);
1756
+ type TExpandThis<Properties extends TProperties, Type extends TSchema, Result extends TSchema = TFromType$8<Properties, Type>> = Result;
1757
+ //#endregion
1758
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexed/from_object.d.mts
1759
+ type TIndexProperty<Properties extends TProperties, Key extends string, CanonicalKey extends string = keyof Properties extends string | number ? `${keyof Properties}` : never, SelectedType extends TSchema = Key extends CanonicalKey ? Properties[Key] : TNever, Result extends TSchema = TExpandThis<Properties, SelectedType>> = Result;
1760
+ type TIndexProperties<Properties extends TProperties, Keys extends string[], Result extends TSchema[] = []> = (Keys extends [infer Left extends string, ...infer Right extends string[]] ? TIndexProperties<Properties, Right, [...Result, TIndexProperty<Properties, Left>]> : Result);
1761
+ type TFromIndexer<Properties extends TProperties, Indexer extends TSchema, Keys extends string[] = TToIndexableKeys<Indexer>, Variants extends TSchema[] = TIndexProperties<Properties, Keys>, Result extends TSchema = TEvaluateUnion<Variants>> = Result;
1762
+ type TNumericKeys<Keys extends string[], Result extends string[] = []> = (Keys extends [infer Left extends string, ...infer Right extends string[]] ? Left extends `${infer _ extends number}` ? TNumericKeys<Right, [...Result, Left]> : TNumericKeys<Right, Result> : Result);
1763
+ type TFromIndexerNumber<Properties extends TProperties, Keys extends string[] = TPropertyKeys<Properties>, NumericKeys extends string[] = TNumericKeys<Keys>, Variants extends TSchema[] = TIndexProperties<Properties, NumericKeys>, Result extends TSchema = TEvaluateUnion<Variants>> = Result;
1764
+ type TFromObject$4<Properties extends TProperties, Indexer extends TSchema, Result extends TSchema = Indexer extends TNumber$1 ? TFromIndexerNumber<Properties> : TFromIndexer<Properties, Indexer>> = Result;
1765
+ //#endregion
1766
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexed/array_indexer.d.mts
1767
+ type TConvertLiteral<Value extends TLiteralValue, Result extends TSchema = TLiteral<TConvertToIntegerKey<Value>>> = Result;
1768
+ type TArrayIndexerTypes<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TArrayIndexerTypes<Right, [...Result, TFormatArrayIndexer<Left>]> : Result);
1769
+ /** Formats embedded integer-like strings on an Indexer to be number values inline with TS indexing | coercion behaviors. */
1770
+ type TFormatArrayIndexer<Type extends TSchema, Result extends TSchema = (Type extends TIntersect<infer Types extends TSchema[]> ? TIntersect<TArrayIndexerTypes<Types>> : Type extends TUnion<infer Types extends TSchema[]> ? TUnion<TArrayIndexerTypes<Types>> : Type extends TLiteral<infer Value extends TLiteralValue> ? TConvertLiteral<Value> : Type)> = Result;
1771
+ //#endregion
1772
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexed/from_tuple.d.mts
1773
+ type TIndexElementsWithIndexer<Types extends TSchema[], Indexer extends TSchema, Result extends TSchema[] = []> = (Types extends [...infer Left extends TSchema[], infer Right extends TSchema] ? TExtends<{}, TLiteral<Left['length']>, Indexer> extends TExtendsTrueLike ? TIndexElementsWithIndexer<Left, Indexer, [Right, ...Result]> : TIndexElementsWithIndexer<Left, Indexer, Result> : Result);
1774
+ type TFromTupleWithIndexer<Types extends TSchema[], Indexer extends TSchema, ArrayIndexer extends TSchema = TFormatArrayIndexer<Indexer>, Elements extends TSchema[] = TIndexElementsWithIndexer<Types, ArrayIndexer>, Result extends TSchema = TEvaluateUnionFast<Elements>> = Result;
1775
+ type TFromTupleWithoutIndexer<Types extends TSchema[], Result extends TSchema = TEvaluateUnionFast<Types>> = Result;
1776
+ type TFromTuple$2<Types extends TSchema[], Indexer extends TSchema, Result extends TSchema = (Indexer extends TLiteral<infer _ extends 'length'> ? TLiteral<Types['length']> : Indexer extends TNumber$1 | TInteger$1 ? TFromTupleWithoutIndexer<Types> : TFromTupleWithIndexer<Types, Indexer>)> = Result;
1777
+ //#endregion
1778
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexed/from_type.d.mts
1779
+ type TFromType$7<Type extends TSchema, Indexer extends TSchema> = (Type extends TArray<infer Type extends TSchema> ? TFromArray$2<Type, Indexer> : Type extends TObject<infer Properties extends TProperties> ? TFromObject$4<Properties, Indexer> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTuple$2<Types, Indexer> : TNever);
1780
+ //#endregion
1781
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts
1782
+ type TNormalizeType$1<Type extends TSchema, Result extends TSchema = (Type extends TCyclic ? TCollapseToObject<Type> : Type extends TDependent$1 ? TCollapseToObject<Type> : Type extends TIntersect ? TCollapseToObject<Type> : Type extends TUnion ? TCollapseToObject<Type> : Type)> = Result;
1783
+ type TIndexAction<Type extends TSchema, Indexer extends TSchema, Result extends TSchema = TCanInstantiate<[Type, Indexer]> extends true ? TFromType$7<TNormalizeType$1<Type>, Indexer> : TIndexDeferred<Type, Indexer>> = Result;
1784
+ type TIndexInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, Indexer extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>, InstantiatedIndexer extends TSchema = TInstantiateType<Context, State, Indexer>> = TIndexAction<InstantiatedType, InstantiatedIndexer>;
1785
+ //#endregion
1786
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/instance_type.d.mts
1787
+ /** Creates a deferred InstanceType action. */
1788
+ type TInstanceTypeDeferred<Type extends TSchema> = (TDeferred<'InstanceType', [Type]>);
1789
+ /** Applies a InstanceType action to the given type. */
1790
+ type TInstanceType<Type extends TSchema> = (TInstanceTypeAction<Type>);
1791
+ /** Applies a InstanceType action to the given type. */
1792
+ declare function InstanceType$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TInstanceType<Type>;
1793
+ //#endregion
1794
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/instance_type/instantiate.d.mts
1795
+ type TInstanceTypeOperation<Type extends TSchema> = (Type extends TConstructor ? Type['instanceType'] : TNever);
1796
+ type TInstanceTypeAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TInstanceTypeOperation<Type> : TInstanceTypeDeferred<Type>> = Result;
1797
+ type TInstanceTypeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TInstanceTypeAction<InstantiatedType>;
1798
+ //#endregion
1799
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/keyof.d.mts
1800
+ /** Creates a deferred KeyOf action. */
1801
+ type TKeyOfDeferred<Type extends TSchema> = (TDeferred<'KeyOf', [Type]>);
1802
+ /** Applies a KeyOf action to the given type. */
1803
+ type TKeyOf<Type extends TSchema> = (TKeyOfAction<Type>);
1804
+ /** Applies a KeyOf action to the given type. */
1805
+ declare function KeyOf<Type extends TSchema>(type: Type, options?: TSchemaOptions): TKeyOf<Type>;
1806
+ //#endregion
1807
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/keyof/from_any.d.mts
1808
+ type TFromAny<Result = TUnion<[TNumber$1, TString$1, TSymbol]>> = Result;
1809
+ //#endregion
1810
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/keyof/from_array.d.mts
1811
+ type TFromArray$1<_Type extends TSchema> = TNumber$1;
1812
+ //#endregion
1813
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/keyof/from_object.d.mts
1814
+ type TFromPropertyKeys<Keys extends PropertyKey[], Result extends TSchema[] = []> = (Keys extends [infer Left extends PropertyKey, ...infer Right extends PropertyKey[]] ? Left extends TLiteralValue ? TFromPropertyKeys<Right, [...Result, TLiteral<Left>]> : TUnreachable : Result);
1815
+ type TFromObject$3<Properties extends TProperties, PropertyKeys extends PropertyKey[] = TUnionToTuple<keyof Properties>, Variants extends TSchema[] = TFromPropertyKeys<PropertyKeys>, Result extends TSchema = TEvaluateUnionFast<Variants>> = Result;
1816
+ //#endregion
1817
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/keyof/from_record.d.mts
1818
+ type TFromRecord<Type extends TRecord, Result extends TSchema = TRecordKey<Type>> = Result;
1819
+ //#endregion
1820
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/keyof/from_tuple.d.mts
1821
+ type TFromTuple$1<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [...infer Left extends TSchema[], infer _ extends TSchema] ? TFromTuple$1<Left, [TLiteral<Left['length']>, ...Result]> : TEvaluateUnionFast<Result>);
1822
+ //#endregion
1823
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/keyof/from_type.d.mts
1824
+ type TFromType$6<Type extends TSchema> = (Type extends TAny ? TFromAny : Type extends TArray<infer Type extends TSchema> ? TFromArray$1<Type> : Type extends TObject<infer Properties extends TProperties> ? TFromObject$3<Properties> : Type extends TRecord ? TFromRecord<Type> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTuple$1<Types> : TNever);
1825
+ //#endregion
1826
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts
1827
+ type TNormalizeType<Type extends TSchema, Result extends TSchema = (Type extends TCyclic ? TCollapseToObject<Type> : Type extends TDependent$1 ? TCollapseToObject<Type> : Type extends TIntersect ? TCollapseToObject<Type> : Type extends TUnion ? TCollapseToObject<Type> : Type)> = Result;
1828
+ type TKeyOfAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType$6<TNormalizeType<Type>> : TKeyOfDeferred<Type>> = Result;
1829
+ type TKeyOfInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TKeyOfAction<InstantiatedType>;
1830
+ //#endregion
1831
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/mapped.d.mts
1832
+ /** Creates a deferred Mapped action. */
1833
+ type TMappedDeferred<Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema> = (TDeferred<'Mapped', [Identifier, Type, As, Property]>);
1834
+ /** Applies a Mapped action using the given types. */
1835
+ type TMapped<Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema> = (TMappedAction<{}, TState<[], []>, Identifier, Type, As, Property>);
1836
+ /** Applies a Mapped action using the given types. */
1837
+ declare function Mapped<Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema>(identifier: Identifier, type: Type, as: As, property: Property, options?: TSchemaOptions): TMapped<Identifier, Type, As, Property>;
1838
+ //#endregion
1839
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts
1840
+ type TFromTemplateLiteral<Pattern extends string, Evaluated extends TSchema = TEvaluateTemplateLiteral<Pattern>, Result extends TSchema[] = TFromType$5<Evaluated>> = Result;
1841
+ type TFromUnion$3<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion$3<Right, [...Result, ...TFromType$5<Left>]> : Result);
1842
+ type TFromEnum<Values extends TEnumValue[], Evaluated extends TSchema = TEvaluateEnum<Values>, Result extends TSchema[] = TFromType$5<Evaluated>> = Result;
1843
+ type TFromLiteral<Value extends TLiteralValue, Result extends TSchema[] = Value extends number ? [TLiteral<`${Value}`>] : [TLiteral<Value>]> = Result;
1844
+ type TFromType$5<Type extends TSchema, Result extends TSchema[] = (Type extends TEnum<infer Values extends TEnumValue[]> ? TFromEnum<Values> : Type extends TLiteral<infer Value extends number> ? TFromLiteral<Value> : Type extends TTemplateLiteral<infer Pattern extends string> ? TFromTemplateLiteral<Pattern> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion$3<Types> : [Type])> = Result;
1845
+ type TMappedVariants<Type extends TSchema, Result extends TSchema[] = TFromType$5<Type>> = Result;
1846
+ //#endregion
1847
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts
1848
+ type TCanonicalAs<InstantiatedAs extends TSchema, Result extends TSchema = InstantiatedAs extends TTemplateLiteral<infer Pattern extends string> ? TEvaluateTemplateLiteral<Pattern> : InstantiatedAs> = Result;
1849
+ type TMappedVariant<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Variant extends TSchema, As extends TSchema, Property extends TSchema, VariantContext extends TProperties = TAssign<Context, { [_ in Identifier['name']]: Variant; }>, InstantiatedAs extends TSchema = TInstantiateType<VariantContext, State, As>, CanonicalAs extends TSchema = TCanonicalAs<InstantiatedAs>, InstantiatedProperty extends TSchema = TInstantiateType<VariantContext, State, Property>, Result extends TProperties = CanonicalAs extends TLiteral<string | number> ? { [_ in CanonicalAs['const']]: InstantiatedProperty; } : {}> = Result;
1850
+ type TMappedProperties<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Variants extends TSchema[], As extends TSchema, Property extends TSchema, Result extends TProperties[] = []> = (Variants extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TMappedProperties<Context, State, Identifier, Right, As, Property, [...Result, TMappedVariant<Context, State, Identifier, Left, As, Property>]> : Result);
1851
+ type TReduceProperties<Properties extends TProperties[], Result extends TSchema[] = []> = (Properties extends [infer Left extends TProperties, ...infer Right extends TProperties[]] ? TReduceProperties<Right, [...Result, TObject<Left>]> : Result);
1852
+ type TMappedOperation<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema, Variants extends TSchema[] = TMappedVariants<Type>, MappedProperties extends TProperties[] = TMappedProperties<Context, State, Identifier, Variants, As, Property>, MappedObjects extends TSchema[] = TReduceProperties<MappedProperties>, Result extends TSchema = TEvaluateIntersect<MappedObjects>> = Result;
1853
+ //#endregion
1854
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts
1855
+ type TMappedAction<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TMappedOperation<Context, State, Identifier, Type, As, Property> : TMappedDeferred<Identifier, Type, As, Property>> = Result;
1856
+ type TMappedInstantiate<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema, InstaniatedType extends TSchema = TInstantiateType<Context, State, Type>> = TMappedAction<Context, State, Identifier, InstaniatedType, As, Property>;
1857
+ //#endregion
1858
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/module/instantiate.d.mts
1859
+ type TInstantiateCyclics<Context extends TProperties, Declarations extends TProperties, CyclicKeys extends string[], DeclarationContext extends TProperties = TAssign<Context, Declarations>, Result extends TProperties = { [Key in Extract<keyof Declarations, CyclicKeys[number]>]: TInstantiateCyclic<DeclarationContext, Key, Declarations[Key]>; }> = Result;
1860
+ type TInstantiateNonCyclics<Context extends TProperties, Declarations extends TProperties, CyclicKeys extends string[], DeclarationContext extends TProperties = TAssign<Context, Declarations>, Result extends TProperties = { [Key in Exclude<keyof Declarations, CyclicKeys[number]>]: TInstantiateType<DeclarationContext, TState<[], []>, Declarations[Key]>; }> = Result;
1861
+ type TInstantiateModule<Context extends TProperties, Declarations extends TProperties, CyclicCandidates extends string[] = TCyclicCandidates<Declarations>, InstantiatedCyclics extends TProperties = TInstantiateCyclics<Context, Declarations, CyclicCandidates>, InstantiatedNonCyclics extends TProperties = TInstantiateNonCyclics<Context, Declarations, CyclicCandidates>, InstantiatedModule extends TProperties = InstantiatedCyclics & InstantiatedNonCyclics> = { [Key in keyof InstantiatedModule]: InstantiatedModule[Key]; } & {};
1862
+ type TModuleInstantiate<Context extends TProperties, _State extends TState, Declarations extends TProperties, InstantiatedModule extends TProperties = TInstantiateModule<Context, Declarations>> = InstantiatedModule;
1863
+ //#endregion
1864
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/non_nullable.d.mts
1865
+ /** Creates a deferred NonNullable action. */
1866
+ type TNonNullableDeferred<Type extends TSchema> = (TDeferred<'NonNullable', [Type]>);
1867
+ /** Applies a NonNullable action to the given type. */
1868
+ type TNonNullable<Type extends TSchema> = (TNonNullableAction<Type>);
1869
+ /** Applies a NonNullable action to the given type. */
1870
+ declare function NonNullable<Type extends TSchema>(type: Type, options?: TSchemaOptions): TNonNullable<Type>;
1871
+ //#endregion
1872
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/non_nullable/instantiate.d.mts
1873
+ type TNonNullableOperation<Type extends TSchema, Excluded extends TSchema = TUnion<[TNull, TUndefined]>> = TExcludeAction<Type, Excluded>;
1874
+ type TNonNullableAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TNonNullableOperation<Type> : TNonNullableDeferred<Type>> = Result;
1875
+ type TNonNullableInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TNonNullableAction<InstantiatedType>;
1876
+ //#endregion
1877
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/omit.d.mts
1878
+ /** Creates a deferred Omit action. */
1879
+ type TOmitDeferred<Type extends TSchema, Indexer extends TSchema> = (TDeferred<'Omit', [Type, Indexer]>);
1880
+ /** Applies a Omit action using the given types. */
1881
+ type TOmit<Type extends TSchema, Indexer extends TSchema> = (TOmitAction<Type, Indexer>);
1882
+ /** Applies a Omit action using the given types. */
1883
+ declare function Omit$1<Type extends TSchema, Indexer extends PropertyKey[]>(type: Type, indexer: readonly [...Indexer], options?: TSchemaOptions): TOmit<Type, TKeysToIndexer<Indexer>>;
1884
+ /** Applies a Omit action using the given types. */
1885
+ declare function Omit$1<Type extends TSchema, Indexer extends TSchema>(type: Type, indexer: Indexer, options?: TSchemaOptions): TOmit<Type, Indexer>;
1886
+ //#endregion
1887
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/to_indexable.d.mts
1888
+ /** Transforms a type into a TProperties used for indexing operations */
1889
+ type TToIndexable<Type extends TSchema, Collapsed extends TSchema = TCollapseToObject<Type>, Result extends TProperties = (Collapsed extends TObject<infer Properties extends TProperties> ? Properties : TUnreachable)> = Result;
1890
+ //#endregion
1891
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/omit/from_type.d.mts
1892
+ type TNormalKeys<Keys extends string[], UnionKeys extends string = Keys[number], Result extends string | number = (UnionKeys extends `${infer Value extends number}` ? UnionKeys | Value : UnionKeys)> = Result;
1893
+ type TFromKeys$1<Properties extends TProperties, Keys extends string[], Omitted extends TProperties = Omit<Properties, TNormalKeys<Keys>>, Result extends TProperties = { [Key in keyof Omitted]: Omitted[Key]; }> = Result;
1894
+ type TFromType$4<Type extends TSchema, Indexer extends TSchema, Indexable extends TProperties = TToIndexable<Type>, IndexableKeys extends string[] = TToIndexableKeys<Indexer>, Omitted extends TProperties = TFromKeys$1<Indexable, IndexableKeys>, Result extends TSchema = TObject<Omitted>> = Result;
1895
+ //#endregion
1896
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/omit/instantiate.d.mts
1897
+ type TOmitAction<Type extends TSchema, Indexer extends TSchema, Result extends TSchema = TCanInstantiate<[Type, Indexer]> extends true ? TFromType$4<Type, Indexer> : TOmitDeferred<Type, Indexer>> = Result;
1898
+ type TOmitInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, Indexer extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>, InstantiatedIndexer extends TSchema = TInstantiateType<Context, State, Indexer>> = TOmitAction<InstantiatedType, InstantiatedIndexer>;
1899
+ //#endregion
1900
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/parameters.d.mts
1901
+ /** Creates a deferred Parameters action. */
1902
+ type TParametersDeferred<Type extends TSchema> = (TDeferred<'Parameters', [Type]>);
1903
+ /** Applies a Parameters action to the given type. */
1904
+ type TParameters<Type extends TSchema> = (TParametersAction<Type>);
1905
+ /** Applies a Parameters action to the given type. */
1906
+ declare function Parameters$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TParameters<Type>;
1907
+ //#endregion
1908
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts
1909
+ type TParametersOperation<Type extends TSchema, Parameters extends TSchema[] = Type extends TFunction ? Type['parameters'] : [], InstantiatedParameters extends TSchema[] = TInstantiateElements<{}, TState<[], []>, Parameters>, Result extends TSchema = TTuple<InstantiatedParameters>> = Result;
1910
+ type TParametersAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TParametersOperation<Type> : TParametersDeferred<Type>> = Result;
1911
+ type TParametersInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TParametersAction<InstantiatedType>;
1912
+ //#endregion
1913
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/partial.d.mts
1914
+ /** Creates a deferred Partial action. */
1915
+ type TPartialDeferred<Type extends TSchema> = (TDeferred<'Partial', [Type]>);
1916
+ /** Applies a Partial action to the given type. */
1917
+ type TPartial<Type extends TSchema> = (TPartialAction<Type>);
1918
+ /** Applies a Partial action to the given type. */
1919
+ declare function Partial$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TPartial<Type>;
1920
+ //#endregion
1921
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/partial/from_cyclic.d.mts
1922
+ type TFromCyclic$2<Defs extends TProperties, Ref extends string, Target extends TSchema = TCyclicTarget<Defs, Ref>, Partial extends TSchema = TFromType$3<Target>, Result extends TSchema = TCyclic<TAssign<Defs, { [_ in Ref]: Partial; }>, Ref>> = Result;
1923
+ //#endregion
1924
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts
1925
+ type TFromDependent$2<If extends TSchema, Then extends TSchema, Else extends TSchema, Evaluated extends TSchema = TEvaluateDependent<If, Then, Else>, Result extends TSchema = TFromType$3<Evaluated>> = Result;
1926
+ //#endregion
1927
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts
1928
+ type TFromIntersect$2<Types extends TSchema[], Evaluated extends TSchema = TEvaluateIntersect<Types>, Result extends TSchema = TFromType$3<Evaluated>> = Result;
1929
+ //#endregion
1930
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/partial/from_union.d.mts
1931
+ type TFromUnion$2<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion$2<Right, [...Result, TFromType$3<Left>]> : TUnion<Result>);
1932
+ //#endregion
1933
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/partial/from_object.d.mts
1934
+ type TFromObject$2<Properties extends TProperties, Mapped extends TProperties = { [Key in keyof Properties]: TAddOptional<Properties[Key]>; }, Result extends TSchema = TObject<Mapped>> = Result;
1935
+ //#endregion
1936
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/partial/from_type.d.mts
1937
+ type TFromType$3<Type extends TSchema> = (Type extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? TFromCyclic$2<Defs, Ref> : Type extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TFromDependent$2<If, Then, Else> : Type extends TIntersect<infer Types extends TSchema[]> ? TFromIntersect$2<Types> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion$2<Types> : Type extends TObject<infer Properties extends TProperties> ? TFromObject$2<Properties> : TObject<{}>);
1938
+ //#endregion
1939
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/partial/instantiate.d.mts
1940
+ type TPartialAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType$3<Type> : TPartialDeferred<Type>> = Result;
1941
+ type TPartialInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TPartialAction<InstantiatedType>;
1942
+ //#endregion
1943
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/pick.d.mts
1944
+ /** Creates a deferred Pick action. */
1945
+ type TPickDeferred<Type extends TSchema, Indexer extends TSchema> = (TDeferred<'Pick', [Type, Indexer]>);
1946
+ /** Applies a Pick action using the given types. */
1947
+ type TPick<Type extends TSchema, Indexer extends TSchema> = (TPickAction<Type, Indexer>);
1948
+ /** Applies a Pick action using the given types. */
1949
+ declare function Pick$1<Type extends TSchema, Indexer extends PropertyKey[]>(type: Type, indexer: readonly [...Indexer], options?: TSchemaOptions): TPick<Type, TKeysToIndexer<Indexer>>;
1950
+ /** Applies a Pick action using the given types. */
1951
+ declare function Pick$1<Type extends TSchema, Indexer extends TSchema>(type: Type, indexer: Indexer, options?: TSchemaOptions): TPick<Type, Indexer>;
1952
+ //#endregion
1953
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/pick/from_type.d.mts
1954
+ type TComparable<Indexable extends TProperties> = (keyof Indexable extends string | number ? `${keyof Indexable}` : never);
1955
+ type TFromKeys<Indexable extends TProperties, Keys extends string[], Result extends TProperties = {}> = (Keys extends [infer Left extends string, ...infer Right extends string[]] ? Left extends TComparable<Indexable> ? TFromKeys<Indexable, Right, TAssign<Result, { [_ in Left]: Indexable[Left]; }>> : TFromKeys<Indexable, Right, Result> : Result);
1956
+ type TFromType$2<Type extends TSchema, Indexer extends TSchema, Indexable extends TProperties = TToIndexable<Type>, Keys extends string[] = TToIndexableKeys<Indexer>, Applied extends TProperties = TFromKeys<Indexable, Keys>, Result extends TSchema = TObject<Applied>> = Result;
1957
+ //#endregion
1958
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/pick/instantiate.d.mts
1959
+ type TPickAction<Type extends TSchema, Indexer extends TSchema, Result extends TSchema = TCanInstantiate<[Type, Indexer]> extends true ? TFromType$2<Type, Indexer> : TPickDeferred<Type, Indexer>> = Result;
1960
+ type TPickInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, Indexer extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>, InstantiatedIndexer extends TSchema = TInstantiateType<Context, State, Indexer>> = TPickAction<InstantiatedType, InstantiatedIndexer>;
1961
+ //#endregion
1962
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/readonly_object.d.mts
1963
+ /** Creates a deferred ReadonlyType action. */
1964
+ type TReadonlyObjectDeferred<Type extends TSchema> = (TDeferred<'ReadonlyObject', [Type]>);
1965
+ /** This type is an alias for TypeScript's `Readonly<T>` utility type. It will make all properties of a TObject readonly or marks an TArray or TTuple as immutable `readonly T[]`. */
1966
+ type TReadonlyObject<Type extends TSchema> = (TReadonlyObjectAction<Type>);
1967
+ /** This type is an alias for TypeScript's `Readonly<T>` utility type. It will make all properties of a TObject readonly or marks an TArray or TTuple as immutable `readonly T[]`. */
1968
+ declare function ReadonlyObject<Type extends TSchema>(type: Type, options?: TSchemaOptions): TReadonlyObject<Type>;
1969
+ /**
1970
+ * This type has been renamed to ReadonlyObject.
1971
+ * @deprecated
1972
+ */
1973
+ declare const ReadonlyType: typeof ReadonlyObject;
1974
+ //#endregion
1975
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts
1976
+ type TFromArray<Type extends TSchema, Result extends TSchema = TAddImmutable<TArray<Type>>> = Result;
1977
+ //#endregion
1978
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.d.mts
1979
+ type TFromCyclic$1<Defs extends TProperties, Ref extends string, Target extends TSchema = TCyclicTarget<Defs, Ref>, Partial extends TSchema = TFromType$1<Target>, Result extends TSchema = TCyclic<TAssign<Defs, { [_ in Ref]: Partial; }>, Ref>> = Result;
1980
+ //#endregion
1981
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts
1982
+ type TFromDependent$1<If extends TSchema, Then extends TSchema, Else extends TSchema, Evaluated extends TSchema = TEvaluateDependent<If, Then, Else>, Result extends TSchema = TFromType$1<Evaluated>> = Result;
1983
+ //#endregion
1984
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts
1985
+ type TFromIntersect$1<Types extends TSchema[], Evaluated extends TSchema = TEvaluateIntersect<Types>, Result extends TSchema = TFromType$1<Evaluated>> = Result;
1986
+ //#endregion
1987
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts
1988
+ type TFromObject$1<Properties extends TProperties, Mapped extends TProperties = { [Key in keyof Properties]: TAddReadonly<Properties[Key]>; }, Result extends TSchema = TObject<Mapped>> = Result;
1989
+ //#endregion
1990
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts
1991
+ type TFromTuple<Types extends TSchema[], Result extends TSchema = TAddImmutable<TTuple<Types>>> = Result;
1992
+ //#endregion
1993
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/from_union.d.mts
1994
+ type TFromUnion$1<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion$1<Right, [...Result, TFromType$1<Left>]> : TUnion<Result>);
1995
+ //#endregion
1996
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts
1997
+ type TFromType$1<Type extends TSchema> = (Type extends TArray<infer Type extends TSchema> ? TFromArray<Type> : Type extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? TFromCyclic$1<Defs, Ref> : Type extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TFromDependent$1<If, Then, Else> : Type extends TIntersect<infer Types extends TSchema[]> ? TFromIntersect$1<Types> : Type extends TObject<infer Properties extends TProperties> ? TFromObject$1<Properties> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTuple<Types> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion$1<Types> : Type);
1998
+ //#endregion
1999
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/instantiate.d.mts
2000
+ type TReadonlyObjectAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType$1<Type> : TReadonlyObjectDeferred<Type>> = Result;
2001
+ type TReadonlyObjectInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TReadonlyObjectAction<InstantiateType>;
2002
+ //#endregion
2003
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/ref/instantiate.d.mts
2004
+ type TRefInstantiate<Context extends TProperties, State extends TState, Type extends TRef, Ref extends string> = (Ref extends State['visited'][number] ? Type : Ref extends keyof Context ? TInstantiateType<Context, TState<State['callstack'], [...State['visited'], Ref]>, Context[Ref]> : Type);
2005
+ //#endregion
2006
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/required/from_cyclic.d.mts
2007
+ type TFromCyclic<Defs extends TProperties, Ref extends string, Target extends TSchema = TCyclicTarget<Defs, Ref>, Partial extends TSchema = TFromType<Target>, Result extends TSchema = TCyclic<TAssign<Defs, { [_ in Ref]: Partial; }>, Ref>> = Result;
2008
+ //#endregion
2009
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/required/from_dependent.d.mts
2010
+ type TFromDependent<If extends TSchema, Then extends TSchema, Else extends TSchema, Evaluated extends TSchema = TEvaluateDependent<If, Then, Else>, Result extends TSchema = TFromType<Evaluated>> = Result;
2011
+ //#endregion
2012
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/required/from_intersect.d.mts
2013
+ type TFromIntersect<Types extends TSchema[], Evaluated extends TSchema = TEvaluateIntersect<Types>, Result extends TSchema = TFromType<Evaluated>> = Result;
2014
+ //#endregion
2015
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/required/from_union.d.mts
2016
+ type TFromUnion<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion<Right, [...Result, TFromType<Left>]> : TUnion<Result>);
2017
+ //#endregion
2018
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/required/from_object.d.mts
2019
+ type TFromObject<Properties extends TProperties, Mapped extends TProperties = { [Key in keyof Properties]: TRemoveOptional<Properties[Key]>; }, Result extends TSchema = TObject<Mapped>> = Result;
2020
+ //#endregion
2021
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/required/from_type.d.mts
2022
+ type TFromType<Type extends TSchema> = (Type extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? TFromCyclic<Defs, Ref> : Type extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TFromDependent<If, Then, Else> : Type extends TIntersect<infer Types extends TSchema[]> ? TFromIntersect<Types> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion<Types> : Type extends TObject<infer Properties extends TProperties> ? TFromObject<Properties> : TObject<{}>);
2023
+ //#endregion
2024
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/required.d.mts
2025
+ /** Creates a deferred Required action. */
2026
+ type TRequiredDeferred<Type extends TSchema> = (TDeferred<'Required', [Type]>);
2027
+ /** Applies a Required action to the given type. */
2028
+ type TRequired<Type extends TSchema> = (TRequiredAction<Type>);
2029
+ /** Applies a Required action to the given type. */
2030
+ declare function Required$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TRequired<Type>;
2031
+ //#endregion
2032
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/required/instantiate.d.mts
2033
+ type TRequiredAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType<Type> : TRequiredDeferred<Type>> = Result;
2034
+ type TRequiredInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TRequiredAction<InstantiatedType>;
2035
+ //#endregion
2036
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/return_type.d.mts
2037
+ /** Creates a deferred ReturnType action. */
2038
+ type TReturnTypeDeferred<Type extends TSchema> = (TDeferred<'ReturnType', [Type]>);
2039
+ /** Applies a ReturnType action to the given type. */
2040
+ type TReturnType<Type extends TSchema> = (TReturnTypeAction<Type>);
2041
+ /** Applies a ReturnType action to the given type. */
2042
+ declare function ReturnType$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TReturnType<Type>;
2043
+ //#endregion
2044
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/return_type/instantiate.d.mts
2045
+ type TReturnTypeOperation<Type extends TSchema> = (Type extends TFunction ? Type['returnType'] : TNever);
2046
+ type TReturnTypeAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TReturnTypeOperation<Type> : TReturnTypeDeferred<Type>> = Result;
2047
+ type TReturnTypeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TReturnTypeAction<InstantiatedType>;
2048
+ //#endregion
2049
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/with.d.mts
2050
+ /** Creates a deferred With action. */
2051
+ type TWithDeferred<Type extends TSchema, Options extends TSchema> = (TDeferred<'With', [Type, Options]>);
2052
+ /** Applies annotation options to the given type. */
2053
+ type TWith<Type extends TSchema, Options extends TSchema> = (Type & Options);
2054
+ /** Applies annotation options to the given type. */
2055
+ declare function With<Type extends TSchema, const Options extends TSchema>(type: Type, options: Options): TWithAction<Type, Options>;
2056
+ //#endregion
2057
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/with/instantiate.d.mts
2058
+ type TWithAction<Type extends TSchema, Options extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TWith<Type, Options> : TWithDeferred<Type, Options>> = Result;
2059
+ type TWithInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, Options extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TWithAction<InstantiatedType, Options>;
2060
+ //#endregion
2061
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/rest/spread.d.mts
2062
+ type TSpreadElement<Type extends TSchema, Result extends TSchema[] = (Type extends TRest<infer Rest extends TSchema> ? (Rest extends TTuple<infer Elements extends TSchema[]> ? TRestSpread<Elements> : Rest extends TInfer<string, TSchema> ? [Type] : Rest extends TRef<string> ? [Type] : [TNever]) : [Type])> = Result;
2063
+ type TRestSpread<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TRestSpread<Right, [...Result, ...TSpreadElement<Left>]> : Result);
2064
+ //#endregion
2065
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/instantiate.d.mts
2066
+ interface TState<CallStack extends string[] = string[], Visited extends string[] = string[]> {
2067
+ callstack: CallStack;
2068
+ visited: Visited;
2069
+ }
2070
+ type TCanInstantiate<Types extends TSchema[]> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? Left extends TRef ? false : TCanInstantiate<Right> : true;
2071
+ type TInstantiateProperties<Context extends TProperties, State extends TState, Properties extends TProperties, Result extends TProperties = { [Key in keyof Properties]: TInstantiateType<Context, State, Properties[Key]>; }> = Result;
2072
+ type TInstantiateElements<Context extends TProperties, State extends TState, Types extends TSchema[], Elements extends TSchema[] = TInstantiateTypes<Context, State, Types>, Result extends TSchema[] = TRestSpread<Elements>> = Result;
2073
+ type TInstantiateTypes<Context extends TProperties, State extends TState, Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TInstantiateTypes<Context, State, Right, [...Result, TInstantiateType<Context, State, Left>]> : Result);
2074
+ type TWithModifiers<Type extends TSchema, InstantiatedType extends TSchema, WithOptional extends TSchema = Type extends TOptional ? TAddOptionalAction<InstantiatedType> : InstantiatedType, WithReadonly extends TSchema = Type extends TReadonly$1 ? TAddReadonlyAction<WithOptional> : WithOptional, WithImmutable extends TSchema = Type extends TImmutable ? TAddImmutableAction<WithReadonly> : WithReadonly> = WithImmutable;
2075
+ type TInstantiateDeferred<Context extends TProperties, State extends TState, Action extends string, Parameters extends TSchema[]> = ([Action, Parameters] extends ['AddImmutable', [infer Type extends TSchema]] ? TAddImmutableInstantiate<Context, State, Type> : [Action, Parameters] extends ['RemoveImmutable', [infer Type extends TSchema]] ? TRemoveImmutableInstantiate<Context, State, Type> : [Action, Parameters] extends ['AddReadonly', [infer Type extends TSchema]] ? TAddReadonlyInstantiate<Context, State, Type> : [Action, Parameters] extends ['RemoveReadonly', [infer Type extends TSchema]] ? TRemoveReadonlyInstantiate<Context, State, Type> : [Action, Parameters] extends ['AddOptional', [infer Type extends TSchema]] ? TAddOptionalInstantiate<Context, State, Type> : [Action, Parameters] extends ['RemoveOptional', [infer Type extends TSchema]] ? TRemoveOptionalInstantiate<Context, State, Type> : [Action, Parameters] extends ['Capitalize', [infer Type extends TSchema]] ? TCapitalizeInstantiate<Context, State, Type> : [Action, Parameters] extends ['Conditional', [infer Left extends TSchema, infer Right extends TSchema, infer True extends TSchema, infer False extends TSchema]] ? TConditionalInstantiate<Context, State, Left, Right, True, False> : [Action, Parameters] extends ['ConstructorParameters', [infer Type extends TSchema]] ? TConstructorParametersInstantiate<Context, State, Type> : [Action, Parameters] extends ['Evaluate', [infer Type extends TSchema]] ? TEvaluateInstantiate<Context, State, Type> : [Action, Parameters] extends ['Exclude', [infer Left extends TSchema, infer Right extends TSchema]] ? TExcludeInstantiate<Context, State, Left, Right> : [Action, Parameters] extends ['Extract', [infer Left extends TSchema, infer Right extends TSchema]] ? TExtractInstantiate<Context, State, Left, Right> : [Action, Parameters] extends ['Index', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TIndexInstantiate<Context, State, Type, Indexer> : [Action, Parameters] extends ['InstanceType', [infer Type extends TSchema]] ? TInstanceTypeInstantiate<Context, State, Type> : [Action, Parameters] extends ['Interface', [infer Heritage extends TSchema[], infer Properties extends TProperties]] ? TInterfaceInstantiate<Context, State, Heritage, Properties> : [Action, Parameters] extends ['KeyOf', [infer Type extends TSchema]] ? TKeyOfInstantiate<Context, State, Type> : [Action, Parameters] extends ['Lowercase', [infer Type extends TSchema]] ? TLowercaseInstantiate<Context, State, Type> : [Action, Parameters] extends ['Mapped', [infer Name extends TIdentifier, infer Key extends TSchema, infer As extends TSchema, infer Property extends TSchema]] ? TMappedInstantiate<Context, State, Name, Key, As, Property> : [Action, Parameters] extends ['Module', [infer Declarations extends TProperties]] ? TModuleInstantiate<Context, State, Declarations> : [Action, Parameters] extends ['NonNullable', [infer Type extends TSchema]] ? TNonNullableInstantiate<Context, State, Type> : [Action, Parameters] extends ['Pick', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TPickInstantiate<Context, State, Type, Indexer> : [Action, Parameters] extends ['Parameters', [infer Type extends TSchema]] ? TParametersInstantiate<Context, State, Type> : [Action, Parameters] extends ['Partial', [infer Type extends TSchema]] ? TPartialInstantiate<Context, State, Type> : [Action, Parameters] extends ['Omit', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TOmitInstantiate<Context, State, Type, Indexer> : [Action, Parameters] extends ['ReadonlyObject', [infer Type extends TSchema]] ? TReadonlyObjectInstantiate<Context, State, Type> : [Action, Parameters] extends ['Record', [infer Key extends TSchema, infer Value extends TSchema]] ? TRecordInstantiate<Context, State, Key, Value> : [Action, Parameters] extends ['Required', [infer Type extends TSchema]] ? TRequiredInstantiate<Context, State, Type> : [Action, Parameters] extends ['ReturnType', [infer Type extends TSchema]] ? TReturnTypeInstantiate<Context, State, Type> : [Action, Parameters] extends ['TemplateLiteral', [infer Types extends TSchema[]]] ? TTemplateLiteralInstantiate<Context, State, Types> : [Action, Parameters] extends ['Uncapitalize', [infer Type extends TSchema]] ? TUncapitalizeInstantiate<Context, State, Type> : [Action, Parameters] extends ['Uppercase', [infer Type extends TSchema]] ? TUppercaseInstantiate<Context, State, Type> : [Action, Parameters] extends ['With', [infer Type extends TSchema, infer Options extends TSchema]] ? TWithInstantiate<Context, State, Type, Options> : TDeferred<Action, Parameters>);
2076
+ type TInstantiateImmediate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = (Type extends TRef<infer Ref extends string> ? TRefInstantiate<Context, State, Type, Ref> : Type extends TArray<infer Type extends TSchema> ? TArray<TInstantiateType<Context, State, Type>> : Type extends TCall<infer Target extends TSchema, infer Parameters extends TSchema[]> ? TCallInstantiate<Context, State, Target, Parameters> : Type extends TConstructor<infer Parameters extends TSchema[], infer InstanceType extends TSchema> ? TConstructor<TInstantiateTypes<Context, State, Parameters>, TInstantiateType<Context, State, InstanceType>> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TFunction<TInstantiateTypes<Context, State, Parameters>, TInstantiateType<Context, State, ReturnType>> : Type extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TDependent$1<TInstantiateType<Context, State, If>, TInstantiateType<Context, State, Then>, TInstantiateType<Context, State, Else>> : Type extends TIntersect<infer Types extends TSchema[]> ? TIntersect<TInstantiateTypes<Context, State, Types>> : Type extends TObject<infer Properties extends TProperties> ? TObject<TInstantiateProperties<Context, State, Properties>> : Type extends TRecord<infer Key extends string, infer Type extends TSchema> ? TRecord<Key, TInstantiateType<Context, State, Type>> : Type extends TRest<infer Type extends TSchema> ? TRest<TInstantiateType<Context, State, Type>> : Type extends TTuple<infer Types extends TSchema[]> ? TTuple<TInstantiateElements<Context, State, Types>> : Type extends TUnion<infer Types extends TSchema[]> ? TUnion<TInstantiateTypes<Context, State, Types>> : Type), WithModifiers extends TSchema = TWithModifiers<Type, InstantiatedType>> = WithModifiers;
2077
+ type TInstantiateType<Context extends TProperties, State extends TState, Type extends TSchema, Result extends TSchema = Type extends TDeferred<infer Action extends string, infer Types extends TSchema[]> ? TInstantiateDeferred<Context, State, Action, Types> : TInstantiateImmediate<Context, State, Type>> = Result;
2078
+ /** Instantiates computed schematics using the given context and type. */
2079
+ type TInstantiate<Context extends TProperties, Type extends TSchema> = (TInstantiateType<Context, TState<[], []>, Type>);
2080
+ /** Instantiates computed schematics using the given context and type. */
2081
+ declare function Instantiate<Context extends TProperties, Type extends TSchema>(context: Context, type: Type): TInstantiate<Context, Type>;
2082
+ //#endregion
2083
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts
2084
+ type TAddOptionalOperation<Type extends TSchema, Result extends TSchema = `~optional` extends keyof Type ? Type : TOptional<Type>> = Result;
2085
+ type TAddOptionalAction<Type extends TSchema, Result extends TSchema = TAddOptionalOperation<Type>> = Result;
2086
+ type TAddOptionalInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TAddOptionalAction<InstantiateType>;
2087
+ //#endregion
2088
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/_add_optional.d.mts
2089
+ /** Creates a deferred AddOptional action. */
2090
+ type TAddOptionalDeferred<Type extends TSchema> = (TDeferred<'AddOptional', [Type]>);
2091
+ /** Applies an AddOptional action to a type. */
2092
+ type TAddOptional<Type extends TSchema> = (TAddOptionalAction<Type>);
2093
+ //#endregion
2094
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/_optional.d.mts
2095
+ type TOptional<Type extends TSchema = TSchema> = (Type & {
2096
+ '~optional': true;
2097
+ });
2098
+ /** Applies an Optional modifier to the given type. */
2099
+ declare function Optional$1<Type extends TSchema>(type: Type): TAddOptional<Type>;
2100
+ /** Returns true if the given value is TOptional */
2101
+ declare function IsOptional$1(value: unknown): value is TOptional<TSchema>;
2102
+ //#endregion
2103
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/tuple.d.mts
2104
+ type StaticLast<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema, Result extends unknown[]> = (Type extends TRest<infer RestType extends TSchema> ? RestType extends TArray<infer ArrayType extends TSchema> ? [...Result, ...TStaticElement<Stack, Direction, Context, This, ArrayType>[0][]] : [...Result, never] : [...Result, ...TStaticElement<Stack, Direction, Context, This, Type>]);
2105
+ type TStaticElement<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema, IsReadonly extends boolean = Type extends TReadonly$1 ? true : false, IsOptional extends boolean = Type extends TOptional ? true : false, Inferred extends unknown = StaticType<Stack, Direction, Context, This, Type>, Result extends [unknown?] = ([IsReadonly, IsOptional] extends [true, true] ? [Readonly<Inferred>?] : [IsReadonly, IsOptional] extends [false, true] ? [Inferred?] : [IsReadonly, IsOptional] extends [true, false] ? [Readonly<Inferred>] : [Inferred])> = Result;
2106
+ type TStaticElements<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Types extends TSchema[], Result extends unknown[] = []> = (Types extends [infer Last extends TSchema] ? StaticLast<Stack, Direction, Context, This, Last, Result> : Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TStaticElements<Stack, Direction, Context, This, Right, [...Result, ...TStaticElement<Stack, Direction, Context, This, Left>]> : Result);
2107
+ type StaticTuple<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Tuple extends TSchema, Items extends TSchema[], Elements extends unknown[] = TStaticElements<Stack, Direction, Context, This, Items>, Result extends readonly unknown[] = (Tuple extends TImmutable ? readonly [...Elements] : Elements)> = Result;
2108
+ /** Represents a Tuple type. */
2109
+ interface TTuple<Types extends TSchema[] = TSchema[]> extends TSchema {
2110
+ '~kind': 'Tuple';
2111
+ type: 'array';
2112
+ additionalItems: false;
2113
+ items: Types;
2114
+ minItems: Types['length'];
2115
+ }
2116
+ /** Creates a Tuple type. */
2117
+ declare function Tuple<Types extends TSchema[]>(types: [...Types], options?: TTupleOptions): TTuple<Types>;
2118
+ /** Returns true if the given value is TTuple. */
2119
+ declare function IsTuple(value: unknown): value is TTuple;
2120
+ //#endregion
2121
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/function.d.mts
2122
+ type StaticInstantiatedParameters<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Parameters extends TSchema[], Evaluated extends TSchema = TInstantiate<Context, TTuple<Parameters>>, Static extends unknown = StaticType<Stack, Direction, Context, This, Evaluated>, Result extends unknown[] = Static extends unknown[] ? Static : []> = Result;
2123
+ type StaticFunction<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Parameters extends TSchema[], ReturnType extends TSchema, StaticParameters extends unknown[] = StaticInstantiatedParameters<Stack, Direction, Context, This, Parameters>, StaticReturnType extends unknown = StaticType<Stack, Direction, Context, This, ReturnType>, Result = (...args: StaticParameters) => StaticReturnType> = Result;
2124
+ /** Represents a Function type. */
2125
+ interface TFunction<Parameters extends TSchema[] = TSchema[], ReturnType extends TSchema = TSchema> extends TSchema {
2126
+ '~kind': 'Function';
2127
+ type: 'function';
2128
+ parameters: Parameters;
2129
+ returnType: ReturnType;
2130
+ }
2131
+ /** Creates a Function type. */
2132
+ declare function _Function_<Parameters extends TSchema[], ReturnType extends TSchema>(parameters: [...Parameters], returnType: ReturnType, options?: TSchemaOptions): TFunction<Parameters, ReturnType>;
2133
+ /** Returns true if the given value is TFunction. */
2134
+ declare function IsFunction(value: unknown): value is TFunction;
2135
+ //#endregion
2136
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/constructor.d.mts
2137
+ type StaticConstructor<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Parameters extends TSchema[], InstanceType extends TSchema, StaticParameters extends unknown[] = StaticInstantiatedParameters<Stack, Direction, Context, This, Parameters>, StaticReturnType extends unknown = StaticType<Stack, Direction, Context, This, InstanceType>, Result = new (...args: StaticParameters) => StaticReturnType> = Result;
2138
+ /** Represents a Constructor type. */
2139
+ interface TConstructor<Parameters extends TSchema[] = TSchema[], InstanceType extends TSchema = TSchema> extends TSchema {
2140
+ '~kind': 'Constructor';
2141
+ type: 'constructor';
2142
+ parameters: Parameters;
2143
+ instanceType: InstanceType;
2144
+ }
2145
+ /** Creates a Constructor type. */
2146
+ declare function Constructor<Parameters extends TSchema[], InstanceType extends TSchema>(parameters: [...Parameters], instanceType: InstanceType, options?: TSchemaOptions): TConstructor<Parameters, InstanceType>;
2147
+ /** Returns true if the given value is a TConstructor. */
2148
+ declare function IsConstructor(value: unknown): value is TConstructor;
2149
+ //#endregion
2150
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/schema.d.mts
2151
+ type XSchemaObject = object;
2152
+ type XSchemaBoolean = boolean;
2153
+ type XSchema = XSchemaObject | XSchemaBoolean;
2154
+ //#endregion
2155
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/_canonical.d.mts
2156
+ type XCanonicalTuple<Value extends readonly unknown[]> = (Value extends [infer Left, ...infer Right extends unknown[]] ? [XCanonical<Left>, ...XCanonicalTuple<Right>] : []);
2157
+ type XCanonicalArray<Value extends unknown, Result extends unknown[] = XCanonical<Value>[]> = Result;
2158
+ type XCanonicalObject<Value extends object, Result extends Record<PropertyKey, unknown> = { -readonly [Key in keyof Value]: XCanonical<Value[Key]>; }> = Result;
2159
+ type XCanonical<Schema extends unknown> = (Schema extends readonly [...infer Schemas extends unknown[]] ? XCanonicalTuple<Schemas> : Schema extends readonly (infer Schema)[] ? XCanonicalArray<Schema> : Schema extends object ? XCanonicalObject<Schema> : Schema);
2160
+ //#endregion
2161
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/additionalProperties.d.mts
2162
+ interface XAdditionalProperties<AdditionalProperties extends XSchema = XSchema> {
2163
+ additionalProperties: AdditionalProperties;
2164
+ }
2165
+ //#endregion
2166
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/anyOf.d.mts
2167
+ interface XAnyOf<AnyOf extends XSchema[] = XSchema[]> {
2168
+ anyOf: AnyOf;
2169
+ }
2170
+ //#endregion
2171
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/allOf.d.mts
2172
+ interface XAllOf<AllOf extends XSchema[] = XSchema[]> {
2173
+ allOf: AllOf;
2174
+ }
2175
+ //#endregion
2176
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/const.d.mts
2177
+ interface XConst<Const extends unknown = unknown> {
2178
+ const: Const;
2179
+ }
2180
+ //#endregion
2181
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/enum.d.mts
2182
+ interface XEnum<Enum extends unknown[] = unknown[]> {
2183
+ enum: Enum;
2184
+ }
2185
+ //#endregion
2186
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/if.d.mts
2187
+ interface XIf<If extends XSchema = XSchema> {
2188
+ if: If;
2189
+ }
2190
+ //#endregion
2191
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/items.d.mts
2192
+ interface XItems<Items extends (XSchema | XSchema[]) = (XSchema | XSchema[])> {
2193
+ items: Items;
2194
+ }
2195
+ //#endregion
2196
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/oneOf.d.mts
2197
+ interface XOneOf<OneOf extends XSchema[] = XSchema[]> {
2198
+ oneOf: OneOf;
2199
+ }
2200
+ //#endregion
2201
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/patternProperties.d.mts
2202
+ interface XPatternProperties<PatternProperties extends Record<PropertyKey, XSchema> = Record<PropertyKey, XSchema>> {
2203
+ patternProperties: PatternProperties;
2204
+ }
2205
+ //#endregion
2206
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/prefixItems.d.mts
2207
+ interface XPrefixItems<PrefixItems extends XSchema[] = XSchema[]> {
2208
+ prefixItems: PrefixItems;
2209
+ }
2210
+ //#endregion
2211
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/properties.d.mts
2212
+ interface XProperties<Properties extends Record<PropertyKey, XSchema> = Record<PropertyKey, XSchema>> {
2213
+ properties: Properties;
2214
+ }
2215
+ //#endregion
2216
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/ref.d.mts
2217
+ interface XRef<Ref extends string = string> {
2218
+ $ref: Ref;
2219
+ }
2220
+ //#endregion
2221
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/required.d.mts
2222
+ interface XRequired<Required extends string[] = string[]> {
2223
+ required: Required;
2224
+ }
2225
+ //#endregion
2226
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/type.d.mts
2227
+ interface XType<Type extends string | string[] = string | string[]> {
2228
+ type: Type;
2229
+ }
2230
+ //#endregion
2231
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts
2232
+ interface XUnevaluatedProperties<UnevaluatedProperties extends XSchema = XSchema> {
2233
+ unevaluatedProperties: UnevaluatedProperties;
2234
+ }
2235
+ //#endregion
2236
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/additionalProperties.d.mts
2237
+ type XStaticAdditionalProperties<Stack extends string[], Root extends XSchema, Schema extends XSchema, Result extends Record<PropertyKey, unknown> = (Schema extends true ? {
2238
+ [key: string]: unknown;
2239
+ } : Schema extends false ? {} : {
2240
+ [key: string]: XStaticSchema<Stack, Root, Schema>;
2241
+ })> = Result;
2242
+ //#endregion
2243
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/allOf.d.mts
2244
+ type XStaticAllOf<Stack extends string[], Root extends XSchema, Schemas extends XSchema[], Result extends unknown = unknown> = (Schemas extends readonly [infer Left extends XSchema, ...infer Right extends XSchema[]] ? XStaticAllOf<Stack, Root, Right, Result & XStaticSchema<Stack, Root, Left>> : Result);
2245
+ //#endregion
2246
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/anyOf.d.mts
2247
+ type XStaticAnyOf<Stack extends string[], Root extends XSchema, Schemas extends XSchema[], Result extends unknown = never> = (Schemas extends [infer Left extends XSchema, ...infer Right extends XSchema[]] ? XStaticAnyOf<Stack, Root, Right, XStaticSchema<Stack, Root, Left> | Result> : Result);
2248
+ //#endregion
2249
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/const.d.mts
2250
+ type XStaticConst<Value extends unknown> = Value;
2251
+ //#endregion
2252
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/enum.d.mts
2253
+ type XStaticEnum<Values extends unknown[], Result extends unknown = never> = (Values extends [infer Left extends unknown, ...infer Right extends unknown[]] ? XStaticEnum<Right, Left | Result> : Result);
2254
+ //#endregion
2255
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/else.d.mts
2256
+ interface XElse<Else extends XSchema = XSchema> {
2257
+ else: Else;
2258
+ }
2259
+ //#endregion
2260
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/then.d.mts
2261
+ interface XThen<Then extends XSchema = XSchema> {
2262
+ then: Then;
2263
+ }
2264
+ //#endregion
2265
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/if.d.mts
2266
+ type XStaticIf<Stack extends string[], Root extends XSchema, Schema extends XIf, IfSchema extends XSchema, If extends unknown = XStaticSchema<Stack, Root, IfSchema>, Then extends unknown = Schema extends XThen<infer ThenSchema extends XSchema> ? XStaticSchema<Stack, Root, ThenSchema> : never, Else extends unknown = Schema extends XElse<infer ElseSchema extends XSchema> ? XStaticSchema<Stack, Root, ElseSchema> : never, IsThen extends boolean = Schema extends XThen ? true : false, IsElse extends boolean = Schema extends XElse ? true : false, Result extends unknown = ([IsThen, IsElse] extends [true, true] ? (If & Then) | Exclude<Else, If> : [IsThen, IsElse] extends [true, false] ? (If & Then) : [IsThen, IsElse] extends [false, true] ? Exclude<Else, If> : unknown)> = Result;
2267
+ //#endregion
2268
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/minItems.d.mts
2269
+ interface XMinItems<MinItems extends number = number> {
2270
+ minItems: MinItems;
2271
+ }
2272
+ //#endregion
2273
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/maxItems.d.mts
2274
+ interface XMaxItems<MaxItems extends number = number> {
2275
+ maxItems: MaxItems;
2276
+ }
2277
+ //#endregion
2278
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/additionalItems.d.mts
2279
+ interface XAdditionalItems<AdditionalItems extends XSchema = XSchema> {
2280
+ additionalItems: AdditionalItems;
2281
+ }
2282
+ //#endregion
2283
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/_comparer.d.mts
2284
+ type XBuildTuple<Size extends number, Tuple extends unknown[] = []> = (Tuple['length'] extends Size ? Tuple : XBuildTuple<Size, [...Tuple, unknown]>);
2285
+ type XLessThan<Left extends number, Right extends number> = Left extends Right ? false : XBuildTuple<Left> extends [...XBuildTuple<Right>, ...infer _Rest] ? false : true;
2286
+ //#endregion
2287
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/_elements.d.mts
2288
+ type XWithElements<Stack extends string[], Root extends XSchema, Schemas extends XSchema[], Result extends unknown[] = []> = (Schemas extends [infer Left extends XSchema, ...infer Right extends XSchema[]] ? XWithElements<Stack, Root, Right, [...Result, XStaticSchema<Stack, Root, Left>]> : Result);
2289
+ type XWithMaxItemsRemap<Elements extends unknown[], MaxItems extends number, Result extends unknown[] = []> = (Elements extends [infer Left extends unknown, ...infer Right extends unknown[]] ? XLessThan<Result['length'], MaxItems> extends true ? XWithMaxItemsRemap<Right, MaxItems, [...Result, Left]> : Result : Result);
2290
+ type XWithMaxItems<Schema extends XSchema, Elements extends unknown[], Result extends unknown[] = Schema extends XMaxItems<infer MaxItems extends number> ? XWithMaxItemsRemap<Elements, MaxItems> : Elements> = Result;
2291
+ type XNeedsAdditionalItems<Schema extends XSchema, Elements extends unknown[], Result extends boolean = (Schema extends XMaxItems<infer MaxItems extends number> ? XLessThan<Elements['length'], MaxItems> : true)> = Result;
2292
+ type XWithMinItemsRemap<Elements extends unknown[], MinItems extends number, Result extends unknown[] = []> = (Elements extends [infer Left, ...infer Right] ? XLessThan<Result['length'], MinItems> extends true ? XWithMinItemsRemap<Right, MinItems, [...Result, Left]> : XWithMinItemsRemap<Right, MinItems, [...Result, Left?]> : Result);
2293
+ type XWithMinItems<Schema extends XSchema, Values extends unknown[], MinItems extends number = Schema extends XMinItems<infer MinItems extends number> ? MinItems : 0, Result extends unknown[] = XWithMinItemsRemap<Values, MinItems>> = Result;
2294
+ type XWithAdditionalItems<Stack extends string[], Root extends XSchema, Schema extends XSchema, Elements extends unknown[], Result extends unknown[] = Schema extends XAdditionalItems<infer Schema extends XSchema> ? (Schema extends true ? [...Elements, ...unknown[]] : Schema extends false ? [...Elements] : [...Elements, ...XStaticSchema<Stack, Root, Schema>[]]) : [...Elements, ...unknown[]]> = Result;
2295
+ type XStaticElements<Stack extends string[], Root extends XSchema, Schema extends XSchema, PrefixItems extends XSchema[], WithElements extends unknown[] = XWithElements<Stack, Root, PrefixItems>, WithMaxItems extends unknown[] = XWithMaxItems<Schema, WithElements>, NeedsAdditional extends boolean = XNeedsAdditionalItems<Schema, WithMaxItems>, WithMinItems extends unknown[] = XWithMinItems<Schema, WithMaxItems>, WithAdditionalItems extends unknown[] = NeedsAdditional extends true ? XWithAdditionalItems<Stack, Root, Schema, WithMinItems> : WithMinItems> = WithAdditionalItems;
2296
+ //#endregion
2297
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/items.d.mts
2298
+ type XFromSized<Stack extends string[], Root extends XSchema, Schema extends XSchema, Items extends XSchema[]> = (XStaticElements<Stack, Root, Schema, Items>);
2299
+ type XFromUnsized<Stack extends string[], Root extends XSchema, Schema extends XSchema> = (XStaticSchema<Stack, Root, Schema>[]);
2300
+ type XStaticItems<Stack extends string[], Root extends XSchema, Schema extends XSchema, Items extends XSchema[] | XSchema, Result extends unknown = (Items extends XSchema[] ? XFromSized<Stack, Root, Schema, [...Items]> : Items extends XSchema ? XFromUnsized<Stack, Root, Items> : never)> = Result;
2301
+ //#endregion
2302
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/oneOf.d.mts
2303
+ type XStaticOneOf<Stack extends string[], Root extends XSchema, Schemas extends XSchema[], Result extends unknown = never> = (Schemas extends [infer Left extends XSchema, ...infer Right extends XSchema[]] ? XStaticOneOf<Stack, Root, Right, XStaticSchema<Stack, Root, Left> | Result> : Result);
2304
+ //#endregion
2305
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/patternProperties.d.mts
2306
+ type XStaticPatternProperties<Stack extends string[], Root extends XSchema, Properties extends Record<PropertyKey, XSchema> = Record<PropertyKey, XSchema>, InferredProperties extends Record<PropertyKey, unknown> = { [Key in keyof Properties]: XStaticSchema<Stack, Root, Properties[Key]>; }, EvaluatedProperties extends unknown = {
2307
+ [key: string]: InferredProperties[keyof InferredProperties];
2308
+ }> = EvaluatedProperties;
2309
+ //#endregion
2310
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/prefixItems.d.mts
2311
+ type XStaticPrefixItems<Stack extends string[], Root extends XSchema, Schema extends XSchema, PrefixItems extends XSchema[], Result extends unknown[] = XStaticElements<Stack, Root, Schema, PrefixItems>> = Result;
2312
+ //#endregion
2313
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/properties.d.mts
2314
+ type XIsReadonly<Schema extends XSchema> = (Schema extends {
2315
+ readOnly: true;
2316
+ } ? true : Schema extends {
2317
+ '~readonly': true;
2318
+ } ? true : false);
2319
+ type XRequiredArray<Schema extends XSchema, Result extends PropertyKey[] = Schema extends XRequired<infer Keys extends string[]> ? Keys : []> = Result;
2320
+ type XReadonlyKeys<Properties extends Record<PropertyKey, XSchema>, ReadonlyProperties extends Record<PropertyKey, unknown> = { [Key in keyof Properties as XIsReadonly<Properties[Key]> extends true ? Key : never]: unknown; }, Result extends PropertyKey = keyof ReadonlyProperties> = Result;
2321
+ type XRequiredKeys<Properties extends Record<PropertyKey, XSchema>, RequiredArray extends string[], Result extends PropertyKey = RequiredArray extends [] ? never : Extract<keyof Properties, RequiredArray[number]>> = Result;
2322
+ type XUnknownKeys<Properties extends Record<PropertyKey, XSchema>, RequiredArray extends string[], Result extends PropertyKey = Exclude<RequiredArray[number], keyof Properties>> = Result;
2323
+ type XOptionalKeys<Properties extends Record<PropertyKey, XSchema>, RequiredArray extends string[], Result extends PropertyKey = RequiredArray extends [] ? keyof Properties : Exclude<keyof Properties, RequiredArray[number]>> = Result;
2324
+ type XReadonlyOptionalProperties<Stack extends string[], Root extends XSchema, OptionalKeys extends PropertyKey, Properties extends Record<PropertyKey, XSchema>> = { readonly [Key in Extract<keyof Properties, OptionalKeys>]?: XStaticSchema<Stack, Root, Properties[Key]>; };
2325
+ type XReadonlyRequiredProperties<Stack extends string[], Root extends XSchema, RequiredKeys extends PropertyKey, Properties extends Record<PropertyKey, XSchema>> = { readonly [Key in Extract<keyof Properties, RequiredKeys>]: XStaticSchema<Stack, Root, Properties[Key]>; };
2326
+ type XOptionalProperties<Stack extends string[], Root extends XSchema, OptionalKeys extends PropertyKey, Properties extends Record<PropertyKey, XSchema>> = { [Key in Extract<keyof Properties, OptionalKeys>]?: XStaticSchema<Stack, Root, Properties[Key]>; };
2327
+ type XRequiredProperties<Stack extends string[], Root extends XSchema, RequiredKeys extends PropertyKey, Properties extends Record<PropertyKey, XSchema>> = { [Key in Extract<keyof Properties, RequiredKeys>]: XStaticSchema<Stack, Root, Properties[Key]>; };
2328
+ type XUnknownProperties<UnknownKeys extends PropertyKey> = { [Key in UnknownKeys]: unknown; };
2329
+ type XStaticProperties<Stack extends string[], Root extends XSchema, Schema extends XSchema, Properties extends Record<PropertyKey, XSchema>, RequiredArray extends string[] = XRequiredArray<Schema>, ReadonlyKeys extends PropertyKey = XReadonlyKeys<Properties>, OptionalKeys extends PropertyKey = XOptionalKeys<Properties, RequiredArray>, RequiredKeys extends PropertyKey = XRequiredKeys<Properties, RequiredArray>, UnknownKeys extends PropertyKey = XUnknownKeys<Properties, RequiredArray>, ReadonlyOptionalProperties extends Record<PropertyKey, unknown> = XReadonlyOptionalProperties<Stack, Root, Extract<OptionalKeys, ReadonlyKeys>, Properties>, ReadonlyRequiredProperties extends Record<PropertyKey, unknown> = XReadonlyRequiredProperties<Stack, Root, Extract<RequiredKeys, ReadonlyKeys>, Properties>, OptionalProperties extends Record<PropertyKey, unknown> = XOptionalProperties<Stack, Root, Exclude<OptionalKeys, ReadonlyKeys>, Properties>, RequiredProperties extends Record<PropertyKey, unknown> = XRequiredProperties<Stack, Root, Exclude<RequiredKeys, ReadonlyKeys>, Properties>, UnknownProperties extends Record<PropertyKey, unknown> = XUnknownProperties<UnknownKeys>, Result extends Record<PropertyKey, unknown> = (ReadonlyOptionalProperties & ReadonlyRequiredProperties & OptionalProperties & RequiredProperties & UnknownProperties)> = Result;
2330
+ //#endregion
2331
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/pointer/pointer_get.d.mts
2332
+ type TEscape0<Index extends string> = Index extends `${infer Left}~0${infer Right}` ? `${Left}~${TEscape<Right>}` : Index;
2333
+ type TEscape1<Index extends string> = Index extends `${infer Left}~1${infer Right}` ? `${Left}/${TEscape<Right>}` : Index;
2334
+ type TEscape<Index extends string, Escaped0 extends string = TEscape0<Index>, Escaped1 extends string = TEscape1<Escaped0>> = Escaped1;
2335
+ type IndicesReduce<Pointer extends string, Result extends string[] = []> = (Pointer extends `${infer Left extends string}/${infer Right extends string}` ? Left extends '' ? IndicesReduce<Right, Result> : IndicesReduce<Right, [...Result, TEscape<Left>]> : [...Result, TEscape<Pointer>]);
2336
+ type TIndices<Pointer extends string, Result extends string[] = Pointer extends '' ? [] : IndicesReduce<Pointer>> = Result;
2337
+ type TResolve<Value extends unknown, Indices extends string[]> = (Indices extends [infer Left extends string, ...infer Right extends string[]] ? Left extends keyof Value ? TResolve<Value[Left], Right> : undefined : Value);
2338
+ /** Type Level RFC 6901 Json Pointer Resolver */
2339
+ type XPointerGet<Value extends unknown, Pointer extends string, Indices extends string[] = TIndices<Pointer>, Result extends unknown = TResolve<Value, Indices>> = Result;
2340
+ //#endregion
2341
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/ref.d.mts
2342
+ type XCyclicCheck<Stack extends unknown[], MaxLength extends number, Buffer extends unknown[] = []> = (Stack extends [infer Left, ...infer Right] ? Buffer['length'] extends MaxLength ? false : XCyclicCheck<Right, MaxLength, [...Buffer, Left]> : true);
2343
+ type XCyclicGuard<Stack extends unknown[], Ref extends string> = (Ref extends Stack[number] ? XCyclicCheck<Stack, 2> : true);
2344
+ type XNormal<Pointer extends string, Result extends string = (Pointer extends `#${infer Rest extends string}` ? Rest : Pointer)> = Result;
2345
+ type XStaticRef<Stack extends string[], Root extends XSchema, Ref extends string, Normal extends string = XNormal<Ref>, Target extends unknown = XPointerGet<Root, Normal>, Schema extends XSchema = Target extends XSchema ? Target : {}, Result extends unknown = (XCyclicGuard<Stack, Ref> extends true ? XStaticSchema<[...Stack, Ref], Root, Schema> : any)> = Result;
2346
+ //#endregion
2347
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/required.d.mts
2348
+ type XStaticRequired<_Stack extends string[], _Root extends XSchema, Schema extends XSchema, Keys extends string[], Result extends Record<PropertyKey, unknown> = Schema extends XProperties ? {} : Record<Keys[number], unknown>> = Result;
2349
+ //#endregion
2350
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/type.d.mts
2351
+ type XFromTypeNames<TypeNames extends string[], Result extends unknown = never> = (TypeNames extends readonly [infer Left extends string, ...infer Right extends string[]] ? XFromTypeNames<Right, Result | XFromTypeName<Left>> : Result);
2352
+ type XFromTypeName<TypeName extends string> = (TypeName extends 'object' ? object : TypeName extends 'array' ? {} : TypeName extends 'boolean' ? boolean : TypeName extends 'integer' ? number : TypeName extends 'number' ? number : TypeName extends 'null' ? null : TypeName extends 'string' ? string : TypeName extends 'bigint' ? bigint : TypeName extends 'symbol' ? symbol : TypeName extends 'undefined' ? undefined : TypeName extends 'void' ? void : TypeName extends 'asyncIterator' ? {} : TypeName extends 'constructor' ? {} : TypeName extends 'function' ? {} : TypeName extends 'iterator' ? {} : unknown);
2353
+ type XStaticType<TypeName extends string[] | string> = (TypeName extends string[] ? XFromTypeNames<TypeName> : TypeName extends string ? XFromTypeName<TypeName> : unknown);
2354
+ //#endregion
2355
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts
2356
+ type XStaticUnevaluatedProperties<Stack extends string[], Root extends XSchema, Schema extends XSchema, Result extends Record<PropertyKey, unknown> = (Schema extends true ? {
2357
+ [key: string]: unknown;
2358
+ } : Schema extends false ? {} : {
2359
+ [key: string]: XStaticSchema<Stack, Root, Schema>;
2360
+ })> = Result;
2361
+ //#endregion
2362
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/schema.d.mts
2363
+ type XFromKeywords<Stack extends string[], Root extends XSchema, Schema extends XSchema, Result extends unknown[] = [Schema extends XAdditionalProperties<infer Type extends XSchema> ? XStaticAdditionalProperties<Stack, Root, Type> : unknown, Schema extends XAllOf<infer Types extends XSchema[]> ? XStaticAllOf<Stack, Root, Types> : unknown, Schema extends XAnyOf<infer Types extends XSchema[]> ? XStaticAnyOf<Stack, Root, Types> : unknown, Schema extends XConst<infer Value extends unknown> ? XStaticConst<Value> : unknown, Schema extends XIf<infer Type extends XSchema> ? XStaticIf<Stack, Root, Schema, Type> : unknown, Schema extends XEnum<infer Values extends unknown[]> ? XStaticEnum<Values> : unknown, Schema extends XItems<infer Types extends XSchema[] | XSchema> ? XStaticItems<Stack, Root, Schema, Types> : unknown, Schema extends XOneOf<infer Types extends XSchema[]> ? XStaticOneOf<Stack, Root, Types> : unknown, Schema extends XPatternProperties<infer Properties extends Record<PropertyKey, XSchema>> ? XStaticPatternProperties<Stack, Root, Properties> : unknown, Schema extends XPrefixItems<infer Types extends XSchema[]> ? XStaticPrefixItems<Stack, Root, Schema, Types> : unknown, Schema extends XProperties<infer Properties extends Record<PropertyKey, XSchema>> ? XStaticProperties<Stack, Root, Schema, Properties> : unknown, Schema extends XRef<infer Ref extends string> ? XStaticRef<Stack, Root, Ref> : unknown, Schema extends XRequired<infer Keys extends string[]> ? XStaticRequired<Stack, Root, Schema, Keys> : unknown, Schema extends XType<infer TypeName extends string[] | string> ? XStaticType<TypeName> : unknown, Schema extends XUnevaluatedProperties<infer Type extends XSchema> ? XStaticUnevaluatedProperties<Stack, Root, Type> : unknown]> = Result;
2364
+ type XKeywordsIntersected<Schemas extends unknown[], Result extends unknown = unknown> = (Schemas extends [infer Left extends unknown, ...infer Right extends unknown[]] ? XKeywordsIntersected<Right, Result & Left> : Result);
2365
+ type XKeywordsEvaluated<Schema extends unknown, Result extends unknown = Schema extends object ? { [Key in keyof Schema]: Schema[Key]; } : Schema> = Result;
2366
+ type XStaticObject<Stack extends string[], Root extends XSchema, Schema extends XSchema, Keywords extends unknown[] = XFromKeywords<Stack, Root, Schema>, Intersected extends unknown = XKeywordsIntersected<Keywords>, Evaluated extends unknown = XKeywordsEvaluated<Intersected>> = Evaluated;
2367
+ type XStaticBoolean<Schema extends boolean, Result extends unknown = Schema extends false ? never : unknown> = Result;
2368
+ type XStaticSchema<Stack extends string[], Root extends XSchema, Schema extends XSchema, Result extends unknown = Schema extends boolean ? XStaticBoolean<Schema> : XStaticObject<Stack, Root, Schema>> = Result;
2369
+ //#endregion
2370
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/static.d.mts
2371
+ type XStatic<Value extends unknown, Schema extends XSchema = Value extends XSchema ? Value : {}, Canonical extends XSchema = XCanonical<Schema>, Result extends unknown = XStaticSchema<[], Canonical, Canonical>> = Result;
2372
+ //#endregion
2373
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/static.d.mts
2374
+ type StaticEvaluate<T> = { [K in keyof T]: T[K]; } & {};
2375
+ type StaticDirection = 'Encode' | 'Decode';
2376
+ type StaticType<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema> = (Type extends TCodec<infer Type extends TSchema, infer Decoded extends unknown> ? StaticCodec<Stack, Direction, Context, This, Type, Decoded> : Type extends TAny ? StaticAny : Type extends TArray<infer Items extends TSchema> ? StaticArray<Stack, Direction, Context, This, Type, Items> : Type extends TBigInt$1 ? StaticBigInt : Type extends TBoolean ? StaticBoolean : Type extends TConstructor<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? StaticConstructor<Stack, Direction, Context, This, Parameters, ReturnType> : Type extends TEnum<infer Values extends TEnumValue[]> ? StaticEnum<Values> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? StaticFunction<Stack, Direction, Context, This, Parameters, ReturnType> : Type extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? StaticDependent<Stack, Direction, Context, This, If, Then, Else> : Type extends TInteger$1 ? StaticInteger : Type extends TIntersect<infer Types extends TSchema[]> ? StaticIntersect<Stack, Direction, Context, This, Types> : Type extends TLiteral<infer Value extends TLiteralValue> ? StaticLiteral<Value> : Type extends TNever ? StaticNever : Type extends TNull ? StaticNull : Type extends TNumber$1 ? StaticNumber : Type extends TObject<infer Properties extends TProperties> ? StaticObject<Stack, Direction, Context, This, Properties> : Type extends TRecord<infer Key extends string, infer Value extends TSchema> ? StaticRecord<Stack, Direction, Context, This, Key, Value> : Type extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? StaticCyclic<Stack, Direction, Context, This, Defs, Ref> : Type extends TRef<infer Ref extends string> ? StaticRef<Stack, Direction, Context, This, Ref> : Type extends TString$1 ? StaticString : Type extends TSymbol ? StaticSymbol : Type extends TTemplateLiteral<infer Pattern extends string> ? StaticTemplateLiteral<Pattern> : Type extends TThis ? StaticThis<Stack, Direction, Context, This> : Type extends TTuple<infer Items extends TSchema[]> ? StaticTuple<Stack, Direction, Context, This, Type, Items> : Type extends TUndefined ? StaticUndefined : Type extends TUnion<infer Types extends TSchema[]> ? StaticUnion<Stack, Direction, Context, This, Types> : Type extends TUnknown ? StaticUnknown : Type extends TUnsafe<infer Type extends unknown> ? StaticUnsafe<Type> : Type extends TVoid ? StaticVoid : XStatic<Type>);
2377
+ /** Infers a static type from a TypeBox type using Parse logic. */
2378
+ type StaticParse<Type extends TSchema, Context extends TProperties = {}, Result extends unknown = StaticType<[], 'Encode', Context, {}, Type>> = Result;
2379
+ /** Infers a static type from a TypeBox type using Decode logic. */
2380
+ type StaticDecode<Type extends TSchema, Context extends TProperties = {}, Result extends unknown = StaticType<[], 'Decode', Context, {}, Type>> = Result;
2381
+ /** Infers a static type from a TypeBox type using Encode logic. */
2382
+ type StaticEncode<Type extends TSchema, Context extends TProperties = {}, Result extends unknown = StaticType<[], 'Encode', Context, {}, Type>> = Result;
2383
+ /** Infers a static type from a TypeBox type. */
2384
+ type Static<Type extends TSchema, Context extends TProperties = {}, Result extends unknown = StaticType<[], 'Encode', Context, {}, Type>> = Result;
2385
+ //#endregion
2386
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/properties.d.mts
2387
+ type ReadonlyOptionalKeys<Properties extends TProperties, Result extends PropertyKey = { [Key in keyof Properties]: Properties[Key] extends TReadonly$1<TSchema> ? (Properties[Key] extends TOptional<Properties[Key]> ? Key : never) : never; }[keyof Properties]> = Result;
2388
+ type ReadonlyKeys<Properties extends TProperties, Result extends PropertyKey = { [Key in keyof Properties]: Properties[Key] extends TReadonly$1<TSchema> ? (Properties[Key] extends TOptional<Properties[Key]> ? never : Key) : never; }[keyof Properties]> = Result;
2389
+ type OptionalKeys<Properties extends TProperties, Result extends PropertyKey = { [Key in keyof Properties]: Properties[Key] extends TOptional<TSchema> ? (Properties[Key] extends TReadonly$1<Properties[Key]> ? never : Key) : never; }[keyof Properties]> = Result;
2390
+ type RequiredKeys<Properties extends TProperties, Result extends PropertyKey = keyof Omit<Properties, ReadonlyOptionalKeys<Properties> | ReadonlyKeys<Properties> | OptionalKeys<Properties>>> = Result;
2391
+ type StaticPropertiesWithModifiers<Properties extends TProperties, PropertiesWithoutModifiers extends Record<PropertyKey, unknown>> = StaticEvaluate<Readonly<Partial<Pick<PropertiesWithoutModifiers, ReadonlyOptionalKeys<Properties>>>> & Readonly<Pick<PropertiesWithoutModifiers, ReadonlyKeys<Properties>>> & Partial<Pick<PropertiesWithoutModifiers, OptionalKeys<Properties>>> & Required<Pick<PropertiesWithoutModifiers, RequiredKeys<Properties>>>>;
2392
+ type StaticPropertiesWithoutModifiers<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Properties extends TProperties, Result extends Record<PropertyKey, unknown> = { [Key in keyof Properties]: StaticType<Stack, Direction, Context, This, Properties[Key]>; }> = Result;
2393
+ type StaticProperties<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Properties extends TProperties, PropertiesWithoutModifiers extends Record<PropertyKey, unknown> = StaticPropertiesWithoutModifiers<Stack, Direction, Context, This, Properties>, PropertiesWithModifiers extends Record<PropertyKey, unknown> = StaticPropertiesWithModifiers<Properties, PropertiesWithoutModifiers>, Result extends Record<PropertyKey, unknown> = { [Key in keyof PropertiesWithModifiers]: PropertiesWithModifiers[Key]; }> = Result;
2394
+ /** Represents a Record<PropertyKey, TSchema> structure. */
2395
+ interface TProperties extends TSchema {
2396
+ [key: PropertyKey]: TSchema;
2397
+ }
2398
+ /** Creates a RequiredArray derived from the given TProperties value. */
2399
+ type TRequiredArray<Properties extends TProperties, RequiredProperties extends TProperties = { [Key in keyof Properties as Properties[Key] extends TOptional<Properties[Key]> ? never : Key]: Properties[Key]; }, RequiredKeys extends string[] = TUnionToTuple<Extract<keyof RequiredProperties, string>>, Result extends string[] | undefined = RequiredKeys extends [] ? undefined : RequiredKeys> = Result;
2400
+ type TKeyToString<Key extends number | string> = `${Key}`;
2401
+ /** Extracts a tuple of keys from a TProperties value. */
2402
+ type TPropertyKeys<Properties extends TProperties, ExtractKey extends number | string = Extract<keyof Properties, number | string>, StringKey extends string = TKeyToString<ExtractKey>, Result extends string[] = TUnionToTuple<StringKey>> = Result;
2403
+ type TPropertyValuesReduce<Properties extends TProperties, Keys extends string[], Result extends TSchema[] = []> = Keys extends [infer Left extends string, ...infer Right extends string[]] ? Left extends keyof Properties ? TPropertyValuesReduce<Properties, Right, [...Result, Properties[Left]]> : TPropertyValuesReduce<Properties, Right, Result> : Result;
2404
+ /** Extracts a tuple of property values from a TProperties value. */
2405
+ type TPropertyValues<Properties extends TProperties, Keys extends string[] = TPropertyKeys<Properties>, Result extends TSchema[] = TPropertyValuesReduce<Properties, Keys>> = Result;
2406
+ //#endregion
2407
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts
2408
+ type TAddImmutableOperation<Type extends TSchema, Result extends TSchema = '~immutable' extends keyof Type ? Type : TImmutable<Type>> = Result;
2409
+ type TAddImmutableAction<Type extends TSchema, Result extends TSchema = TAddImmutableOperation<Type>> = Result;
2410
+ type TAddImmutableInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TAddImmutableAction<InstantiateType>;
2411
+ //#endregion
2412
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/_add_immutable.d.mts
2413
+ /** Creates a deferred AddImmutable action. */
2414
+ type TAddImmutableDeferred<Type extends TSchema> = (TDeferred<'AddImmutable', [Type]>);
2415
+ /** Applies an AddImmutable action to a type. */
2416
+ type TAddImmutable<Type extends TSchema> = (TAddImmutableAction<Type>);
2417
+ //#endregion
2418
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/evaluate.d.mts
2419
+ /** Creates a deferred Evaluate action. */
2420
+ type TEvaluateDeferred<Type extends TSchema> = (TDeferred<'Evaluate', [Type]>);
2421
+ /** Applies an Evaluate action to a type. */
2422
+ type TEvaluate<Type extends TSchema> = (TEvaluateAction<Type>);
2423
+ /** Applies an Evaluate action to a type. */
2424
+ declare function Evaluate<Type extends TSchema>(type: Type, options?: TSchemaOptions): TEvaluate<Type>;
2425
+ //#endregion
2426
+ //#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/module.d.mts
2427
+ /** Creates a deferred Module action. */
2428
+ type TModuleDeferred<Declarations extends TProperties> = (TDeferred<'Module', [Declarations]>);
2429
+ /** Creates a Module with the given declarations */
2430
+ type TModule<Declarations extends TProperties> = (TModuleInstantiate<{}, TState<[], []>, Declarations>);
2431
+ /** Creates a Module with the given declarations */
2432
+ declare function Module<Declarations extends TProperties>(declarations: Declarations, options?: TSchemaOptions): TModule<Declarations>;
2433
+ //#endregion
2434
+ //#region src/compat/vendor/pi-types.d.ts
2435
+ interface TextContent {
2436
+ type: 'text';
2437
+ text: string;
2438
+ [key: string]: unknown;
2439
+ }
2440
+ interface ImageContent {
2441
+ type: 'image';
2442
+ data: string;
2443
+ mimeType: string;
2444
+ [key: string]: unknown;
2445
+ }
2446
+ interface ThinkingContent {
2447
+ type: 'thinking';
2448
+ thinking: string;
2449
+ [key: string]: unknown;
2450
+ }
2451
+ interface ToolCallContent {
2452
+ type: 'toolCall';
2453
+ id: string;
2454
+ name: string;
2455
+ arguments: unknown;
2456
+ [key: string]: unknown;
2457
+ }
2458
+ interface Usage {
2459
+ input?: number;
2460
+ output?: number;
2461
+ cacheRead?: number;
2462
+ cacheWrite?: number;
2463
+ [key: string]: unknown;
2464
+ }
2465
+ interface UserMessage {
2466
+ role: 'user';
2467
+ content: string | (TextContent | ImageContent)[];
2468
+ timestamp?: number;
2469
+ [key: string]: unknown;
2470
+ }
2471
+ interface AssistantMessage {
2472
+ role: 'assistant';
2473
+ content: (TextContent | ThinkingContent | ToolCallContent)[];
2474
+ usage?: Usage;
2475
+ timestamp?: number;
2476
+ [key: string]: unknown;
2477
+ }
2478
+ interface ToolResultMessage {
2479
+ role: 'toolResult';
2480
+ toolCallId?: string;
2481
+ content: (TextContent | ImageContent)[];
2482
+ isError?: boolean;
2483
+ timestamp?: number;
2484
+ [key: string]: unknown;
2485
+ }
2486
+ type Message = UserMessage | AssistantMessage | ToolResultMessage;
2487
+ type AgentMessage = Message | {
2488
+ role: string;
2489
+ timestamp?: number;
2490
+ [key: string]: unknown;
2491
+ };
2492
+ //#endregion
2493
+ export { TPickDeferred as $, Integer$1 as $n, IsAny as $r, This as $t, TTuple as A, IsUnion as An, _Object_ as Ar, ConstructorParameters as At, With as B, IsNumber as Bn, Boolean as Br, TUncapitalizeDeferred as Bt, Constructor as C, IsVoid as Cn, IsGeneric as Cr, TIndexDeferred as Ct, TFunction as D, IsUnsafe as Dn, TRef as Dr, Exclude$1 as Dt, IsFunction as E, result_d_exports as En, Ref$1 as Er, TExtractDeferred as Et, Instantiate as F, String as Fn, TUnknown as Fr, TConditionalDeferred as Ft, TRequired as G, TNull as Gn, TBigInt$1 as Gr, Capitalize$1 as Gt, TReturnType as H, TNumber$1 as Hn, TBoolean as Hr, Lowercase$1 as Ht, TInstantiate as I, TString$1 as In, Unknown as Ir, TUppercase as It, ReadonlyType as J, TLiteral as Jn, _Array_ as Jr, Call as Jt, TRequiredDeferred as K, IsLiteral as Kn, IsArray as Kr, TCapitalize as Kt, TInstantiateType as L, IsSymbol as Ln, IsReadonly$1 as Lr, TUppercaseDeferred as Lt, IsOptional$1 as M, Union$1 as Mn, Parameter as Mr, TConstructorParametersDeferred as Mt, Optional$1 as N, TScript as Nn, TParameter$1 as Nr, Conditional as Nt, _Function_ as O, TUnsafe as On, IsObject as Or, TExclude as Ot, TOptional as P, IsString as Pn, IsUnknown as Pr, TConditional as Pt, TPick as Q, TIntersect as Qn, Any as Qr, TThis as Qt, TState as R, Symbol as Rn, Readonly$1 as Rr, Uppercase$1 as Rt, StaticParse as S, TRest as Sn, Generic as Sr, TIndex as St, TConstructor as T, Void as Tn, IsRef as Tr, TExtract as Tt, TReturnTypeDeferred as U, IsNull as Un, BigInt as Ur, TLowercase as Ut, ReturnType$1 as V, Number as Vn, IsBoolean as Vr, Uncapitalize$1 as Vt, Required$1 as W, Null as Wn, IsBigInt as Wr, TLowercaseDeferred as Wt, TReadonlyObjectDeferred as X, Intersect as Xn, IsImmutable as Xr, TCall as Xt, TReadonlyObject as Y, TLiteralValue as Yn, Immutable as Yr, IsCall as Yt, Pick$1 as Z, IsIntersect as Zn, TImmutable as Zr, IsThis as Zt, TProperties as _, TStringOptions as _i, IsUndefined as _n, IsCyclic as _r, TKeyOfDeferred as _t, TextContent as a, EncodeBuilder as ai, TRecord as an, Dependent as ar, TParametersDeferred as at, StaticDecode as b, IsRest as bn, Never as br, TInstanceTypeDeferred as bt, ToolResultMessage as c, IsKind as ci, TRecordValue as cn, Identifier as cr, TOmitDeferred as ct, Module as d, TFormat as di, TemplateLiteral as dn, Enum as dr, TNonNullableDeferred as dt, TAny as ei, IsRecord as en, IsInteger as er, Partial$1 as et, TModule as f, TIntersectOptions as fi, Extends$1 as fn, IsEnum as fr, Mapped as ft, TEvaluateDeferred as g, TSchemaOptions as gi, TInterfaceDeferred as gn, Cyclic as gr, TKeyOf as gt, TEvaluate as h, TSchema as hi, TInterface as hn, TEnumValue as hr, KeyOf as ht, Message as i, Encode as ii, RecordValue as in, TInfer as ir, TParameters as it, Tuple as j, TUnion as jn, IsParameter as jr, TConstructorParameters as jt, IsTuple as k, Unsafe as kn, TObject as kr, TExcludeDeferred as kt, Usage as l, IsSchema as li, IsTemplateLiteral as ln, IsIdentifier as lr, NonNullable as lt, Evaluate as m, TObjectOptions as mi, Interface as mn, TEnum as mr, TMappedDeferred as mt, AssistantMessage as n, Decode as ni, RecordKey as nn, Infer as nr, TPartialDeferred as nt, ThinkingContent as o, IsCodec as oi, TRecordKey as on, IsDependent as or, Omit$1 as ot, TModuleDeferred as p, TNumberOptions as pi, TExtends as pn, IsEnumValue as pr, TMapped as pt, ReadonlyObject as q, Literal as qn, TArray as qr, TCapitalizeDeferred as qt, ImageContent as r, DecodeBuilder as ri, RecordPattern as rn, IsInfer as rr, Parameters$1 as rt, ToolCallContent as s, TCodec as si, TRecordPattern as sn, TDependent$1 as sr, TOmit as st, AgentMessage as t, Codec as ti, Record$1 as tn, TInteger$1 as tr, TPartial as tt, UserMessage as u, TArrayOptions as ui, TTemplateLiteral as un, TIdentifier as ur, TNonNullable as ut, TRequiredArray as v, TTupleOptions as vi, TUndefined as vn, TCyclic as vr, InstanceType$1 as vt, IsConstructor as w, TVoid as wn, TGeneric as wr, Extract$1 as wt, StaticEncode as x, Rest$1 as xn, TNever as xr, Index as xt, Static as y, Undefined as yn, IsNever as yr, TInstanceType as yt, TWith as z, TSymbol as zn, TReadonly$1 as zr, TUncapitalize as zt };
2494
+ //# sourceMappingURL=pi-types-BLt46jaf.d.mts.map