notesoup 0.54.1 → 0.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/plugins/pi/budget.js +1 -1
- package/dist/plugins/pi/marker.d.ts +1 -1
- package/dist/plugins/pi/marker.js +11 -7
- package/dist/plugins/pi/notes/tools.js +5 -1
- package/dist/plugins/pi/render.d.ts +4 -1
- package/dist/plugins/pi/render.js +3 -7
- package/dist/plugins/pi/runtime.js +4 -2
- package/dist/plugins/pi/tool-result.d.ts +4 -2
- package/dist/plugins/pi/tool-result.js +4 -3
- package/dist/src/history/history.d.ts +1 -1
- package/dist/src/history/history.js +1 -1
- package/dist/src/tools/history.js +4 -7
- package/dist/src/tools/notes.d.ts +2 -7
- package/dist/src/tools/notes.js +5 -26
- package/dist/test/budget-settings.integration.test.js +2 -2
- package/dist/test/claude-history.test.js +4 -6
- package/dist/test/codex-history.test.js +3 -2
- package/dist/test/dependencies.test.js +3 -4
- package/dist/test/dream-tools.test.js +3 -3
- package/dist/test/history-corpus.test.js +1 -1
- package/dist/test/history.integration.test.js +9 -9
- package/dist/test/host-neutral.test.js +7 -9
- package/dist/test/marker.test.js +34 -27
- package/dist/test/notes.integration.test.js +8 -10
- package/dist/test/notes.test.js +9 -7
- package/dist/test/pi-render.test.js +7 -7
- package/dist/test/project-namespace.test.js +4 -4
- package/docs/tool-results.md +1 -1
- package/package.json +3 -4
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/dist/claude/helper.js +493 -514
- package/plugins/codex/dist/codex/notesoup.js +667 -688
- package/plugins/paseo/OVERVIEW.md +2 -2
- package/plugins/paseo/client/brain-empty-card.tsx +1 -1
- package/plugins/paseo/client/notes-op-card.tsx +2 -2
- package/plugins/paseo/client/notes-op-transformer.ts +16 -1
- package/plugins/paseo/client/paper-palette.ts +18 -18
- package/plugins/paseo/test/fixtures/claude-tool-calls.ts +1 -1
- package/plugins/paseo/test/notes-op.test.ts +4 -4
- package/plugins/paseo/test/paper-palette.test.ts +3 -3
- package/plugins/pi/budget.ts +1 -1
- package/plugins/pi/marker.ts +11 -6
- package/plugins/pi/notes/tools.ts +5 -1
- package/plugins/pi/render.ts +7 -8
- package/plugins/pi/runtime.ts +3 -1
- package/plugins/pi/tool-result.ts +9 -8
- package/src/history/history.ts +1 -1
- package/src/tools/history.ts +4 -7
- package/src/tools/notes.ts +5 -27
|
@@ -8,7 +8,7 @@ var __export = (target, all) => {
|
|
|
8
8
|
import { realpathSync as realpathSync2 } from "node:fs";
|
|
9
9
|
import { pathToFileURL } from "node:url";
|
|
10
10
|
|
|
11
|
-
//
|
|
11
|
+
// node_modules/typebox/build/system/arguments/arguments.mjs
|
|
12
12
|
var arguments_exports = {};
|
|
13
13
|
__export(arguments_exports, {
|
|
14
14
|
Match: () => Match
|
|
@@ -19,7 +19,7 @@ function Match(args, match) {
|
|
|
19
19
|
})();
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
//
|
|
22
|
+
// node_modules/typebox/build/system/settings/settings.mjs
|
|
23
23
|
var settings_exports = {};
|
|
24
24
|
__export(settings_exports, {
|
|
25
25
|
Get: () => Get,
|
|
@@ -27,7 +27,7 @@ __export(settings_exports, {
|
|
|
27
27
|
Set: () => Set2
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
-
//
|
|
30
|
+
// node_modules/typebox/build/guard/guard.mjs
|
|
31
31
|
var guard_exports = {};
|
|
32
32
|
__export(guard_exports, {
|
|
33
33
|
Counted: () => Counted,
|
|
@@ -70,7 +70,7 @@ __export(guard_exports, {
|
|
|
70
70
|
Values: () => Values
|
|
71
71
|
});
|
|
72
72
|
|
|
73
|
-
//
|
|
73
|
+
// node_modules/typebox/build/guard/string.mjs
|
|
74
74
|
function IsBetween(value, min, max) {
|
|
75
75
|
return value >= min && value <= max;
|
|
76
76
|
}
|
|
@@ -177,7 +177,7 @@ function IsMaxLength(value, maxLength) {
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
//
|
|
180
|
+
// node_modules/typebox/build/guard/guard.mjs
|
|
181
181
|
function IsArray(value) {
|
|
182
182
|
return Array.isArray(value);
|
|
183
183
|
}
|
|
@@ -333,7 +333,7 @@ function IsDeepEqual(left, right) {
|
|
|
333
333
|
return IsArray(left) ? DeepEqualArray(left, right) : IsObject(left) ? DeepEqualObject(left, right) : IsEqual(left, right);
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
//
|
|
336
|
+
// node_modules/typebox/build/guard/globals.mjs
|
|
337
337
|
var globals_exports = {};
|
|
338
338
|
__export(globals_exports, {
|
|
339
339
|
IsBigInt64Array: () => IsBigInt64Array,
|
|
@@ -414,10 +414,10 @@ function IsMap(value) {
|
|
|
414
414
|
return value instanceof globalThis.Map;
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
-
//
|
|
417
|
+
// node_modules/typebox/build/guard/index.mjs
|
|
418
418
|
var guard_default = guard_exports;
|
|
419
419
|
|
|
420
|
-
//
|
|
420
|
+
// node_modules/typebox/build/system/settings/settings.mjs
|
|
421
421
|
var settings = {
|
|
422
422
|
immutableTypes: false,
|
|
423
423
|
maxErrors: 8,
|
|
@@ -450,12 +450,12 @@ function Get() {
|
|
|
450
450
|
return settings;
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
-
//
|
|
453
|
+
// node_modules/typebox/build/schema/types/_refine.mjs
|
|
454
454
|
function IsRefine(value) {
|
|
455
455
|
return guard_exports.HasPropertyKey(value, "~refine") && guard_exports.IsArray(value["~refine"]) && guard_exports.Every(value["~refine"], 0, (value2) => guard_exports.IsObject(value2) && guard_exports.HasPropertyKey(value2, "check") && guard_exports.HasPropertyKey(value2, "error") && guard_exports.IsFunction(value2.check) && guard_exports.IsFunction(value2.error));
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
-
//
|
|
458
|
+
// node_modules/typebox/build/schema/types/schema.mjs
|
|
459
459
|
function IsSchemaObject(value) {
|
|
460
460
|
return guard_exports.IsObject(value) && !guard_exports.IsArray(value);
|
|
461
461
|
}
|
|
@@ -466,107 +466,107 @@ function IsSchema(value) {
|
|
|
466
466
|
return IsSchemaObject(value) || IsSchemaBoolean(value);
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
-
//
|
|
469
|
+
// node_modules/typebox/build/schema/types/additionalItems.mjs
|
|
470
470
|
function IsAdditionalItems(schema) {
|
|
471
471
|
return guard_exports.HasPropertyKey(schema, "additionalItems") && IsSchema(schema.additionalItems);
|
|
472
472
|
}
|
|
473
473
|
|
|
474
|
-
//
|
|
474
|
+
// node_modules/typebox/build/schema/types/additionalProperties.mjs
|
|
475
475
|
function IsAdditionalProperties(schema) {
|
|
476
476
|
return guard_exports.HasPropertyKey(schema, "additionalProperties") && IsSchema(schema.additionalProperties);
|
|
477
477
|
}
|
|
478
478
|
|
|
479
|
-
//
|
|
479
|
+
// node_modules/typebox/build/schema/types/allOf.mjs
|
|
480
480
|
function IsAllOf(schema) {
|
|
481
481
|
return guard_exports.HasPropertyKey(schema, "allOf") && guard_exports.IsArray(schema.allOf) && schema.allOf.every((value) => IsSchema(value));
|
|
482
482
|
}
|
|
483
483
|
|
|
484
|
-
//
|
|
484
|
+
// node_modules/typebox/build/schema/types/anchor.mjs
|
|
485
485
|
function IsAnchor(schema) {
|
|
486
486
|
return guard_exports.HasPropertyKey(schema, "$anchor") && guard_exports.IsString(schema.$anchor);
|
|
487
487
|
}
|
|
488
488
|
|
|
489
|
-
//
|
|
489
|
+
// node_modules/typebox/build/schema/types/anyOf.mjs
|
|
490
490
|
function IsAnyOf(schema) {
|
|
491
491
|
return guard_exports.HasPropertyKey(schema, "anyOf") && guard_exports.IsArray(schema.anyOf) && schema.anyOf.every((value) => IsSchema(value));
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
//
|
|
494
|
+
// node_modules/typebox/build/schema/types/const.mjs
|
|
495
495
|
function IsConst(value) {
|
|
496
496
|
return guard_exports.HasPropertyKey(value, "const");
|
|
497
497
|
}
|
|
498
498
|
|
|
499
|
-
//
|
|
499
|
+
// node_modules/typebox/build/schema/types/contains.mjs
|
|
500
500
|
function IsContains(schema) {
|
|
501
501
|
return guard_exports.HasPropertyKey(schema, "contains") && IsSchema(schema.contains);
|
|
502
502
|
}
|
|
503
503
|
|
|
504
|
-
//
|
|
504
|
+
// node_modules/typebox/build/schema/types/default.mjs
|
|
505
505
|
function IsDefault(schema) {
|
|
506
506
|
return guard_exports.HasPropertyKey(schema, "default");
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
-
//
|
|
509
|
+
// node_modules/typebox/build/schema/types/dependencies.mjs
|
|
510
510
|
function IsDependencies(schema) {
|
|
511
511
|
return guard_exports.HasPropertyKey(schema, "dependencies") && guard_exports.IsObject(schema.dependencies) && Object.values(schema.dependencies).every((value) => IsSchema(value) || guard_exports.IsArray(value) && value.every((value2) => guard_exports.IsString(value2)));
|
|
512
512
|
}
|
|
513
513
|
|
|
514
|
-
//
|
|
514
|
+
// node_modules/typebox/build/schema/types/dependentRequired.mjs
|
|
515
515
|
function IsDependentRequired(schema) {
|
|
516
516
|
return guard_exports.HasPropertyKey(schema, "dependentRequired") && guard_exports.IsObject(schema.dependentRequired) && Object.values(schema.dependentRequired).every((value) => guard_exports.IsArray(value) && value.every((value2) => guard_exports.IsString(value2)));
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
-
//
|
|
519
|
+
// node_modules/typebox/build/schema/types/dependentSchemas.mjs
|
|
520
520
|
function IsDependentSchemas(schema) {
|
|
521
521
|
return guard_exports.HasPropertyKey(schema, "dependentSchemas") && guard_exports.IsObject(schema.dependentSchemas) && Object.values(schema.dependentSchemas).every((value) => IsSchema(value));
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
-
//
|
|
524
|
+
// node_modules/typebox/build/schema/types/dynamicAnchor.mjs
|
|
525
525
|
function IsDynamicAnchor(schema) {
|
|
526
526
|
return guard_exports.HasPropertyKey(schema, "$dynamicAnchor") && guard_exports.IsString(schema.$dynamicAnchor);
|
|
527
527
|
}
|
|
528
528
|
|
|
529
|
-
//
|
|
529
|
+
// node_modules/typebox/build/schema/types/dynamicRef.mjs
|
|
530
530
|
function IsDynamicRef(schema) {
|
|
531
531
|
return guard_exports.HasPropertyKey(schema, "$dynamicRef") && guard_exports.IsString(schema.$dynamicRef);
|
|
532
532
|
}
|
|
533
533
|
|
|
534
|
-
//
|
|
534
|
+
// node_modules/typebox/build/schema/types/else.mjs
|
|
535
535
|
function IsElse(schema) {
|
|
536
536
|
return guard_exports.HasPropertyKey(schema, "else") && IsSchema(schema.else);
|
|
537
537
|
}
|
|
538
538
|
|
|
539
|
-
//
|
|
539
|
+
// node_modules/typebox/build/schema/types/enum.mjs
|
|
540
540
|
function IsEnum(schema) {
|
|
541
541
|
return guard_exports.HasPropertyKey(schema, "enum") && guard_exports.IsArray(schema.enum);
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
-
//
|
|
544
|
+
// node_modules/typebox/build/schema/types/exclusiveMaximum.mjs
|
|
545
545
|
function IsExclusiveMaximum(schema) {
|
|
546
546
|
return guard_exports.HasPropertyKey(schema, "exclusiveMaximum") && (guard_exports.IsNumber(schema.exclusiveMaximum) || guard_exports.IsBigInt(schema.exclusiveMaximum));
|
|
547
547
|
}
|
|
548
548
|
|
|
549
|
-
//
|
|
549
|
+
// node_modules/typebox/build/schema/types/exclusiveMinimum.mjs
|
|
550
550
|
function IsExclusiveMinimum(schema) {
|
|
551
551
|
return guard_exports.HasPropertyKey(schema, "exclusiveMinimum") && (guard_exports.IsNumber(schema.exclusiveMinimum) || guard_exports.IsBigInt(schema.exclusiveMinimum));
|
|
552
552
|
}
|
|
553
553
|
|
|
554
|
-
//
|
|
554
|
+
// node_modules/typebox/build/schema/types/format.mjs
|
|
555
555
|
function IsFormat(schema) {
|
|
556
556
|
return guard_exports.HasPropertyKey(schema, "format") && guard_exports.IsString(schema.format);
|
|
557
557
|
}
|
|
558
558
|
|
|
559
|
-
//
|
|
559
|
+
// node_modules/typebox/build/schema/types/id.mjs
|
|
560
560
|
function IsId(schema) {
|
|
561
561
|
return guard_exports.HasPropertyKey(schema, "$id") && guard_exports.IsString(schema.$id);
|
|
562
562
|
}
|
|
563
563
|
|
|
564
|
-
//
|
|
564
|
+
// node_modules/typebox/build/schema/types/if.mjs
|
|
565
565
|
function IsIf(schema) {
|
|
566
566
|
return guard_exports.HasPropertyKey(schema, "if") && IsSchema(schema.if);
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
//
|
|
569
|
+
// node_modules/typebox/build/schema/types/items.mjs
|
|
570
570
|
function IsItems(schema) {
|
|
571
571
|
return guard_exports.HasPropertyKey(schema, "items") && (IsSchema(schema.items) || guard_exports.IsArray(schema.items) && schema.items.every((value) => {
|
|
572
572
|
return IsSchema(value);
|
|
@@ -576,97 +576,97 @@ function IsItemsSized(schema) {
|
|
|
576
576
|
return IsItems(schema) && guard_exports.IsArray(schema.items);
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
-
//
|
|
579
|
+
// node_modules/typebox/build/schema/types/maximum.mjs
|
|
580
580
|
function IsMaximum(schema) {
|
|
581
581
|
return guard_exports.HasPropertyKey(schema, "maximum") && (guard_exports.IsNumber(schema.maximum) || guard_exports.IsBigInt(schema.maximum));
|
|
582
582
|
}
|
|
583
583
|
|
|
584
|
-
//
|
|
584
|
+
// node_modules/typebox/build/schema/types/maxContains.mjs
|
|
585
585
|
function IsMaxContains(schema) {
|
|
586
586
|
return guard_exports.HasPropertyKey(schema, "maxContains") && guard_exports.IsNumber(schema.maxContains);
|
|
587
587
|
}
|
|
588
588
|
|
|
589
|
-
//
|
|
589
|
+
// node_modules/typebox/build/schema/types/maxItems.mjs
|
|
590
590
|
function IsMaxItems(schema) {
|
|
591
591
|
return guard_exports.HasPropertyKey(schema, "maxItems") && guard_exports.IsNumber(schema.maxItems);
|
|
592
592
|
}
|
|
593
593
|
|
|
594
|
-
//
|
|
594
|
+
// node_modules/typebox/build/schema/types/maxLength.mjs
|
|
595
595
|
function IsMaxLength3(schema) {
|
|
596
596
|
return guard_exports.HasPropertyKey(schema, "maxLength") && guard_exports.IsNumber(schema.maxLength);
|
|
597
597
|
}
|
|
598
598
|
|
|
599
|
-
//
|
|
599
|
+
// node_modules/typebox/build/schema/types/maxProperties.mjs
|
|
600
600
|
function IsMaxProperties(schema) {
|
|
601
601
|
return guard_exports.HasPropertyKey(schema, "maxProperties") && guard_exports.IsNumber(schema.maxProperties);
|
|
602
602
|
}
|
|
603
603
|
|
|
604
|
-
//
|
|
604
|
+
// node_modules/typebox/build/schema/types/minimum.mjs
|
|
605
605
|
function IsMinimum(schema) {
|
|
606
606
|
return guard_exports.HasPropertyKey(schema, "minimum") && (guard_exports.IsNumber(schema.minimum) || guard_exports.IsBigInt(schema.minimum));
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
-
//
|
|
609
|
+
// node_modules/typebox/build/schema/types/minContains.mjs
|
|
610
610
|
function IsMinContains(schema) {
|
|
611
611
|
return guard_exports.HasPropertyKey(schema, "minContains") && guard_exports.IsNumber(schema.minContains);
|
|
612
612
|
}
|
|
613
613
|
|
|
614
|
-
//
|
|
614
|
+
// node_modules/typebox/build/schema/types/minItems.mjs
|
|
615
615
|
function IsMinItems(schema) {
|
|
616
616
|
return guard_exports.HasPropertyKey(schema, "minItems") && guard_exports.IsNumber(schema.minItems);
|
|
617
617
|
}
|
|
618
618
|
|
|
619
|
-
//
|
|
619
|
+
// node_modules/typebox/build/schema/types/minLength.mjs
|
|
620
620
|
function IsMinLength3(schema) {
|
|
621
621
|
return guard_exports.HasPropertyKey(schema, "minLength") && guard_exports.IsNumber(schema.minLength);
|
|
622
622
|
}
|
|
623
623
|
|
|
624
|
-
//
|
|
624
|
+
// node_modules/typebox/build/schema/types/minProperties.mjs
|
|
625
625
|
function IsMinProperties(schema) {
|
|
626
626
|
return guard_exports.HasPropertyKey(schema, "minProperties") && guard_exports.IsNumber(schema.minProperties);
|
|
627
627
|
}
|
|
628
628
|
|
|
629
|
-
//
|
|
629
|
+
// node_modules/typebox/build/schema/types/multipleOf.mjs
|
|
630
630
|
function IsMultipleOf2(schema) {
|
|
631
631
|
return guard_exports.HasPropertyKey(schema, "multipleOf") && (guard_exports.IsNumber(schema.multipleOf) || guard_exports.IsBigInt(schema.multipleOf));
|
|
632
632
|
}
|
|
633
633
|
|
|
634
|
-
//
|
|
634
|
+
// node_modules/typebox/build/schema/types/not.mjs
|
|
635
635
|
function IsNot(schema) {
|
|
636
636
|
return guard_exports.HasPropertyKey(schema, "not") && IsSchema(schema.not);
|
|
637
637
|
}
|
|
638
638
|
|
|
639
|
-
//
|
|
639
|
+
// node_modules/typebox/build/schema/types/oneOf.mjs
|
|
640
640
|
function IsOneOf(schema) {
|
|
641
641
|
return guard_exports.HasPropertyKey(schema, "oneOf") && guard_exports.IsArray(schema.oneOf) && schema.oneOf.every((value) => IsSchema(value));
|
|
642
642
|
}
|
|
643
643
|
|
|
644
|
-
//
|
|
644
|
+
// node_modules/typebox/build/schema/types/pattern.mjs
|
|
645
645
|
function IsPattern(schema) {
|
|
646
646
|
return guard_exports.HasPropertyKey(schema, "pattern") && (guard_exports.IsString(schema.pattern) || schema.pattern instanceof RegExp);
|
|
647
647
|
}
|
|
648
648
|
|
|
649
|
-
//
|
|
649
|
+
// node_modules/typebox/build/schema/types/patternProperties.mjs
|
|
650
650
|
function IsPatternProperties(schema) {
|
|
651
651
|
return guard_exports.HasPropertyKey(schema, "patternProperties") && guard_exports.IsObject(schema.patternProperties) && Object.values(schema.patternProperties).every((value) => IsSchema(value));
|
|
652
652
|
}
|
|
653
653
|
|
|
654
|
-
//
|
|
654
|
+
// node_modules/typebox/build/schema/types/prefixItems.mjs
|
|
655
655
|
function IsPrefixItems(schema) {
|
|
656
656
|
return guard_exports.HasPropertyKey(schema, "prefixItems") && guard_exports.IsArray(schema.prefixItems) && schema.prefixItems.every((schema2) => IsSchema(schema2));
|
|
657
657
|
}
|
|
658
658
|
|
|
659
|
-
//
|
|
659
|
+
// node_modules/typebox/build/schema/types/properties.mjs
|
|
660
660
|
function IsProperties(schema) {
|
|
661
661
|
return guard_exports.HasPropertyKey(schema, "properties") && guard_exports.IsObject(schema.properties) && Object.values(schema.properties).every((value) => IsSchema(value));
|
|
662
662
|
}
|
|
663
663
|
|
|
664
|
-
//
|
|
664
|
+
// node_modules/typebox/build/schema/types/propertyNames.mjs
|
|
665
665
|
function IsPropertyNames(schema) {
|
|
666
666
|
return guard_exports.HasPropertyKey(schema, "propertyNames") && (guard_exports.IsObject(schema.propertyNames) || IsSchema(schema.propertyNames));
|
|
667
667
|
}
|
|
668
668
|
|
|
669
|
-
//
|
|
669
|
+
// node_modules/typebox/build/schema/types/recursiveAnchor.mjs
|
|
670
670
|
function IsRecursiveAnchor(schema) {
|
|
671
671
|
return guard_exports.HasPropertyKey(schema, "$recursiveAnchor") && guard_exports.IsBoolean(schema.$recursiveAnchor);
|
|
672
672
|
}
|
|
@@ -674,47 +674,47 @@ function IsRecursiveAnchorTrue(schema) {
|
|
|
674
674
|
return IsRecursiveAnchor(schema) && guard_exports.IsEqual(schema.$recursiveAnchor, true);
|
|
675
675
|
}
|
|
676
676
|
|
|
677
|
-
//
|
|
677
|
+
// node_modules/typebox/build/schema/types/recursiveRef.mjs
|
|
678
678
|
function IsRecursiveRef(schema) {
|
|
679
679
|
return guard_exports.HasPropertyKey(schema, "$recursiveRef") && guard_exports.IsString(schema.$recursiveRef);
|
|
680
680
|
}
|
|
681
681
|
|
|
682
|
-
//
|
|
682
|
+
// node_modules/typebox/build/schema/types/ref.mjs
|
|
683
683
|
function IsRef(schema) {
|
|
684
684
|
return guard_exports.HasPropertyKey(schema, "$ref") && guard_exports.IsString(schema.$ref);
|
|
685
685
|
}
|
|
686
686
|
|
|
687
|
-
//
|
|
687
|
+
// node_modules/typebox/build/schema/types/required.mjs
|
|
688
688
|
function IsRequired(schema) {
|
|
689
689
|
return guard_exports.HasPropertyKey(schema, "required") && guard_exports.IsArray(schema.required) && schema.required.every((value) => guard_exports.IsString(value));
|
|
690
690
|
}
|
|
691
691
|
|
|
692
|
-
//
|
|
692
|
+
// node_modules/typebox/build/schema/types/then.mjs
|
|
693
693
|
function IsThen(schema) {
|
|
694
694
|
return guard_exports.HasPropertyKey(schema, "then") && IsSchema(schema.then);
|
|
695
695
|
}
|
|
696
696
|
|
|
697
|
-
//
|
|
697
|
+
// node_modules/typebox/build/schema/types/type.mjs
|
|
698
698
|
function IsType(schema) {
|
|
699
699
|
return guard_exports.HasPropertyKey(schema, "type") && (guard_exports.IsString(schema.type) || guard_exports.IsArray(schema.type) && schema.type.every((value) => guard_exports.IsString(value)));
|
|
700
700
|
}
|
|
701
701
|
|
|
702
|
-
//
|
|
702
|
+
// node_modules/typebox/build/schema/types/uniqueItems.mjs
|
|
703
703
|
function IsUniqueItems(schema) {
|
|
704
704
|
return guard_exports.HasPropertyKey(schema, "uniqueItems") && guard_exports.IsBoolean(schema.uniqueItems);
|
|
705
705
|
}
|
|
706
706
|
|
|
707
|
-
//
|
|
707
|
+
// node_modules/typebox/build/schema/types/unevaluatedItems.mjs
|
|
708
708
|
function IsUnevaluatedItems(schema) {
|
|
709
709
|
return guard_exports.HasPropertyKey(schema, "unevaluatedItems") && IsSchema(schema.unevaluatedItems);
|
|
710
710
|
}
|
|
711
711
|
|
|
712
|
-
//
|
|
712
|
+
// node_modules/typebox/build/schema/types/unevaluatedProperties.mjs
|
|
713
713
|
function IsUnevaluatedProperties(schema) {
|
|
714
714
|
return guard_exports.HasPropertyKey(schema, "unevaluatedProperties") && IsSchema(schema.unevaluatedProperties);
|
|
715
715
|
}
|
|
716
716
|
|
|
717
|
-
//
|
|
717
|
+
// node_modules/typebox/build/schema/engine/_context.mjs
|
|
718
718
|
var CheckContext = class {
|
|
719
719
|
constructor() {
|
|
720
720
|
const indices = /* @__PURE__ */ new Set();
|
|
@@ -779,7 +779,7 @@ var ErrorContext = class extends CheckContext {
|
|
|
779
779
|
}
|
|
780
780
|
};
|
|
781
781
|
|
|
782
|
-
//
|
|
782
|
+
// node_modules/typebox/build/schema/engine/_refine.mjs
|
|
783
783
|
function CheckRefine(_stack, _context, schema, value) {
|
|
784
784
|
return guard_exports.Every(schema["~refine"], 0, (refinement, _) => refinement.check(value));
|
|
785
785
|
}
|
|
@@ -794,7 +794,7 @@ function ErrorRefine(_stack, context2, schemaPath, instancePath, schema, value)
|
|
|
794
794
|
});
|
|
795
795
|
}
|
|
796
796
|
|
|
797
|
-
//
|
|
797
|
+
// node_modules/typebox/build/schema/engine/additionalItems.mjs
|
|
798
798
|
function IsValid(schema) {
|
|
799
799
|
return IsItems(schema) && guard_exports.IsArray(schema.items);
|
|
800
800
|
}
|
|
@@ -817,12 +817,12 @@ function ErrorAdditionalItems(stack, context2, schemaPath, instancePath, schema,
|
|
|
817
817
|
return isAdditionalItems;
|
|
818
818
|
}
|
|
819
819
|
|
|
820
|
-
//
|
|
820
|
+
// node_modules/typebox/build/schema/engine/_regexp.mjs
|
|
821
821
|
function UnicodeRegExp(pattern) {
|
|
822
822
|
return new RegExp(pattern, "u");
|
|
823
823
|
}
|
|
824
824
|
|
|
825
|
-
//
|
|
825
|
+
// node_modules/typebox/build/schema/engine/additionalProperties.mjs
|
|
826
826
|
function GetPropertyKeyAsPattern(key) {
|
|
827
827
|
const escaped = key.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
828
828
|
return `^${escaped}$`;
|
|
@@ -861,7 +861,7 @@ function ErrorAdditionalProperties(stack, context2, schemaPath, instancePath, sc
|
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
863
|
|
|
864
|
-
//
|
|
864
|
+
// node_modules/typebox/build/schema/engine/allOf.mjs
|
|
865
865
|
function CheckAllOf(stack, context2, schema, value) {
|
|
866
866
|
const results = schema.allOf.reduce((result, schema2) => {
|
|
867
867
|
const nextContext = new CheckContext();
|
|
@@ -885,7 +885,7 @@ function ErrorAllOf(stack, context2, schemaPath, instancePath, schema, value) {
|
|
|
885
885
|
return isAllOf;
|
|
886
886
|
}
|
|
887
887
|
|
|
888
|
-
//
|
|
888
|
+
// node_modules/typebox/build/schema/engine/anyOf.mjs
|
|
889
889
|
function CheckAnyOf(stack, context2, schema, value) {
|
|
890
890
|
const results = schema.anyOf.reduce((result, schema2) => {
|
|
891
891
|
const nextContext = new CheckContext();
|
|
@@ -914,7 +914,7 @@ function ErrorAnyOf(stack, context2, schemaPath, instancePath, schema, value) {
|
|
|
914
914
|
});
|
|
915
915
|
}
|
|
916
916
|
|
|
917
|
-
//
|
|
917
|
+
// node_modules/typebox/build/schema/engine/boolean.mjs
|
|
918
918
|
function CheckSchemaBoolean(_stack, _context, schema, _value) {
|
|
919
919
|
return schema;
|
|
920
920
|
}
|
|
@@ -927,7 +927,7 @@ function ErrorSchemaBoolean(stack, context2, schemaPath, instancePath, schema, v
|
|
|
927
927
|
});
|
|
928
928
|
}
|
|
929
929
|
|
|
930
|
-
//
|
|
930
|
+
// node_modules/typebox/build/schema/engine/const.mjs
|
|
931
931
|
function CheckConst(_stack, _context, schema, value) {
|
|
932
932
|
return guard_exports.IsValueLike(schema.const) ? guard_exports.IsEqual(value, schema.const) : guard_exports.IsDeepEqual(value, schema.const);
|
|
933
933
|
}
|
|
@@ -940,7 +940,7 @@ function ErrorConst(stack, context2, schemaPath, instancePath, schema, value) {
|
|
|
940
940
|
});
|
|
941
941
|
}
|
|
942
942
|
|
|
943
|
-
//
|
|
943
|
+
// node_modules/typebox/build/schema/engine/contains.mjs
|
|
944
944
|
function IsValid2(schema) {
|
|
945
945
|
return !(IsMinContains(schema) && guard_exports.IsEqual(schema.minContains, 0));
|
|
946
946
|
}
|
|
@@ -960,7 +960,7 @@ function ErrorContains(stack, context2, schemaPath, instancePath, schema, value)
|
|
|
960
960
|
});
|
|
961
961
|
}
|
|
962
962
|
|
|
963
|
-
//
|
|
963
|
+
// node_modules/typebox/build/schema/engine/dependencies.mjs
|
|
964
964
|
function CheckDependencies(stack, context2, schema, value) {
|
|
965
965
|
const isLength = guard_exports.IsEqual(guard_exports.Keys(value).length, 0);
|
|
966
966
|
const isEvery = guard_exports.Every(guard_exports.Entries(schema.dependencies), 0, ([key, schema2]) => {
|
|
@@ -982,7 +982,7 @@ function ErrorDependencies(stack, context2, schemaPath, instancePath, schema, va
|
|
|
982
982
|
return isLength || isEvery;
|
|
983
983
|
}
|
|
984
984
|
|
|
985
|
-
//
|
|
985
|
+
// node_modules/typebox/build/schema/engine/dependentRequired.mjs
|
|
986
986
|
function CheckDependentRequired(_stack, _context, schema, value) {
|
|
987
987
|
const isLength = guard_exports.IsEqual(guard_exports.Keys(value).length, 0);
|
|
988
988
|
const isEvery = guard_exports.Every(guard_exports.Entries(schema.dependentRequired), 0, ([key, keys]) => {
|
|
@@ -1003,7 +1003,7 @@ function ErrorDependentRequired(_stack, context2, schemaPath, instancePath, sche
|
|
|
1003
1003
|
return isLength || isEveryEntry;
|
|
1004
1004
|
}
|
|
1005
1005
|
|
|
1006
|
-
//
|
|
1006
|
+
// node_modules/typebox/build/schema/engine/dependentSchemas.mjs
|
|
1007
1007
|
function CheckDependentSchemas(stack, context2, schema, value) {
|
|
1008
1008
|
const isLength = guard_exports.IsEqual(guard_exports.Keys(value).length, 0);
|
|
1009
1009
|
const isEvery = guard_exports.Every(guard_exports.Entries(schema.dependentSchemas), 0, ([key, schema2]) => {
|
|
@@ -1020,7 +1020,7 @@ function ErrorDependentSchemas(stack, context2, schemaPath, instancePath, schema
|
|
|
1020
1020
|
return isLength || isEvery;
|
|
1021
1021
|
}
|
|
1022
1022
|
|
|
1023
|
-
//
|
|
1023
|
+
// node_modules/typebox/build/schema/engine/dynamicRef.mjs
|
|
1024
1024
|
function CheckDynamicRef(stack, context2, schema, value) {
|
|
1025
1025
|
const target = stack.DynamicRef(schema) ?? false;
|
|
1026
1026
|
return IsSchema(target) && CheckSchema(stack, context2, target, value);
|
|
@@ -1030,7 +1030,7 @@ function ErrorDynamicRef(stack, context2, _schemaPath, instancePath, schema, val
|
|
|
1030
1030
|
return IsSchema(target) && ErrorSchema(stack, context2, "#", instancePath, target, value);
|
|
1031
1031
|
}
|
|
1032
1032
|
|
|
1033
|
-
//
|
|
1033
|
+
// node_modules/typebox/build/schema/engine/enum.mjs
|
|
1034
1034
|
function CheckEnum(_stack, _context, schema, value) {
|
|
1035
1035
|
return guard_exports.Some(schema.enum, (option) => guard_exports.IsValueLike(option) ? guard_exports.IsEqual(value, option) : guard_exports.IsDeepEqual(value, option));
|
|
1036
1036
|
}
|
|
@@ -1043,7 +1043,7 @@ function ErrorEnum(stack, context2, schemaPath, instancePath, schema, value) {
|
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
1045
1045
|
|
|
1046
|
-
//
|
|
1046
|
+
// node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs
|
|
1047
1047
|
function CheckExclusiveMaximum(_stack, _context, schema, value) {
|
|
1048
1048
|
return guard_exports.IsLessThan(value, schema.exclusiveMaximum);
|
|
1049
1049
|
}
|
|
@@ -1056,7 +1056,7 @@ function ErrorExclusiveMaximum(stack, context2, schemaPath, instancePath, schema
|
|
|
1056
1056
|
});
|
|
1057
1057
|
}
|
|
1058
1058
|
|
|
1059
|
-
//
|
|
1059
|
+
// node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs
|
|
1060
1060
|
function CheckExclusiveMinimum(_stack, _context, schema, value) {
|
|
1061
1061
|
return guard_exports.IsGreaterThan(value, schema.exclusiveMinimum);
|
|
1062
1062
|
}
|
|
@@ -1069,7 +1069,7 @@ function ErrorExclusiveMinimum(stack, context2, schemaPath, instancePath, schema
|
|
|
1069
1069
|
});
|
|
1070
1070
|
}
|
|
1071
1071
|
|
|
1072
|
-
//
|
|
1072
|
+
// node_modules/typebox/build/format/format.mjs
|
|
1073
1073
|
var format_exports = {};
|
|
1074
1074
|
__export(format_exports, {
|
|
1075
1075
|
Clear: () => Clear,
|
|
@@ -1102,7 +1102,7 @@ __export(format_exports, {
|
|
|
1102
1102
|
Test: () => Test
|
|
1103
1103
|
});
|
|
1104
1104
|
|
|
1105
|
-
//
|
|
1105
|
+
// node_modules/typebox/build/format/date.mjs
|
|
1106
1106
|
var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1107
1107
|
var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
|
|
1108
1108
|
function IsLeapYear(year) {
|
|
@@ -1118,7 +1118,7 @@ function IsDate2(value) {
|
|
|
1118
1118
|
return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && IsLeapYear(year) ? 29 : DAYS[month]);
|
|
1119
1119
|
}
|
|
1120
1120
|
|
|
1121
|
-
//
|
|
1121
|
+
// node_modules/typebox/build/format/time.mjs
|
|
1122
1122
|
var TIME = /^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:([Zz])|([+-])(\d\d):(\d\d))?$/;
|
|
1123
1123
|
function IsTime(value, strictTimeZone = true) {
|
|
1124
1124
|
const matches = TIME.exec(value);
|
|
@@ -1146,25 +1146,25 @@ function IsTime(value, strictTimeZone = true) {
|
|
|
1146
1146
|
return (totalUtcMin % 1440 + 1440) % 1440 === 1439;
|
|
1147
1147
|
}
|
|
1148
1148
|
|
|
1149
|
-
//
|
|
1149
|
+
// node_modules/typebox/build/format/date_time.mjs
|
|
1150
1150
|
function IsDateTime(value) {
|
|
1151
1151
|
const dateTime = value.split(/T/i);
|
|
1152
1152
|
return dateTime.length === 2 && IsDate2(dateTime[0]) && IsTime(dateTime[1]);
|
|
1153
1153
|
}
|
|
1154
1154
|
|
|
1155
|
-
//
|
|
1155
|
+
// node_modules/typebox/build/format/duration.mjs
|
|
1156
1156
|
var Duration = /^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;
|
|
1157
1157
|
function IsDuration(value) {
|
|
1158
1158
|
return Duration.test(value);
|
|
1159
1159
|
}
|
|
1160
1160
|
|
|
1161
|
-
//
|
|
1161
|
+
// node_modules/typebox/build/format/email.mjs
|
|
1162
1162
|
var Email = /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[^"\\]|\\[\x20-\x7e])*")@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*|\[(?:IPv6:[a-f0-9:]+|(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\])$/i;
|
|
1163
1163
|
function IsEmail(value) {
|
|
1164
1164
|
return Email.test(value);
|
|
1165
1165
|
}
|
|
1166
1166
|
|
|
1167
|
-
//
|
|
1167
|
+
// node_modules/typebox/build/format/idna/pattern/pattern.mjs
|
|
1168
1168
|
var RE_RULE_HYPHEN_PLACEMENT = /^(?!-).*(?<!-)$/;
|
|
1169
1169
|
var RE_RULE_NOT_RESERVED_ACE = /^(?!..--)/;
|
|
1170
1170
|
var RE_ASCII_LDH = /^[a-zA-Z0-9-]*$/;
|
|
@@ -1204,12 +1204,12 @@ var RE_PERMITTED_CATEGORY = new RegExp([
|
|
|
1204
1204
|
RE_PVALID_EXCEPTIONS
|
|
1205
1205
|
].map((regexp) => regexp.source).join("|"), "u");
|
|
1206
1206
|
|
|
1207
|
-
//
|
|
1207
|
+
// node_modules/typebox/build/format/idna/label/ascii.mjs
|
|
1208
1208
|
function IsAsciiLabel(value) {
|
|
1209
1209
|
return RE_RULE_HYPHEN_PLACEMENT.test(value) && RE_RULE_NOT_RESERVED_ACE.test(value) && RE_ASCII_LDH.test(value);
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
1212
|
-
//
|
|
1212
|
+
// node_modules/typebox/build/format/idna/format/puny.mjs
|
|
1213
1213
|
var PUNYCODE_BASE = 36;
|
|
1214
1214
|
var PUNYCODE_TMIN = 1;
|
|
1215
1215
|
var PUNYCODE_TMAX = 26;
|
|
@@ -1325,7 +1325,7 @@ function Encode(input) {
|
|
|
1325
1325
|
return result.join("");
|
|
1326
1326
|
}
|
|
1327
1327
|
|
|
1328
|
-
//
|
|
1328
|
+
// node_modules/typebox/build/format/idna/format/bidi.mjs
|
|
1329
1329
|
var RE_RTL_ALLOWED = /^(?:R|AL|AN|EN|ES|CS|ET|ON|BN|NSM)$/;
|
|
1330
1330
|
var RE_LTR_ALLOWED = /^(?:L|EN|ES|CS|ET|ON|BN|NSM)$/;
|
|
1331
1331
|
var RE_RTL_CLASSES = /^(?:R|AL|AN)$/;
|
|
@@ -1380,7 +1380,7 @@ function SatisfiesBidiRule(value) {
|
|
|
1380
1380
|
return true;
|
|
1381
1381
|
}
|
|
1382
1382
|
|
|
1383
|
-
//
|
|
1383
|
+
// node_modules/typebox/build/format/idna/label/unicode.mjs
|
|
1384
1384
|
function ExceedsMaxALabelLength(value) {
|
|
1385
1385
|
return RE_NON_ASCII.test(value) && Encode(value).length + 4 > 63;
|
|
1386
1386
|
}
|
|
@@ -1446,7 +1446,7 @@ function IsUnicodeLabel(value) {
|
|
|
1446
1446
|
return true;
|
|
1447
1447
|
}
|
|
1448
1448
|
|
|
1449
|
-
//
|
|
1449
|
+
// node_modules/typebox/build/format/idna/label/puny.mjs
|
|
1450
1450
|
function IsPunyLabel(value) {
|
|
1451
1451
|
if (!IsAcePrefixed(value))
|
|
1452
1452
|
return false;
|
|
@@ -1463,7 +1463,7 @@ function IsPunyLabel(value) {
|
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
1465
1465
|
|
|
1466
|
-
//
|
|
1466
|
+
// node_modules/typebox/build/format/idna/hostname.mjs
|
|
1467
1467
|
function IsValidLabelLength(value) {
|
|
1468
1468
|
return value.length > 0 && value.length <= 63;
|
|
1469
1469
|
}
|
|
@@ -1478,7 +1478,7 @@ function IsHostname(value) {
|
|
|
1478
1478
|
return value.split(".").every((label) => IsLabel(label));
|
|
1479
1479
|
}
|
|
1480
1480
|
|
|
1481
|
-
//
|
|
1481
|
+
// node_modules/typebox/build/format/idna/idn-hostname.mjs
|
|
1482
1482
|
function IsValidLabelLength2(value) {
|
|
1483
1483
|
return value.length > 0 && value.length <= 63;
|
|
1484
1484
|
}
|
|
@@ -1499,42 +1499,42 @@ function IsIdnHostname(value) {
|
|
|
1499
1499
|
return labels.every((label) => IsLabel2(label) && (!hasBidiChars || SatisfiesBidiRule(label)));
|
|
1500
1500
|
}
|
|
1501
1501
|
|
|
1502
|
-
//
|
|
1502
|
+
// node_modules/typebox/build/format/hostname.mjs
|
|
1503
1503
|
function IsHostname2(value) {
|
|
1504
1504
|
return IsHostname(value);
|
|
1505
1505
|
}
|
|
1506
1506
|
|
|
1507
|
-
//
|
|
1507
|
+
// node_modules/typebox/build/format/idn_email.mjs
|
|
1508
1508
|
var IdnEmail = /^(?:[A-Za-z0-9!#$%&'*+\/=?^_`{|}~\u{0080}-\u{10FFFF}-]+(?:\.[A-Za-z0-9!#$%&'*+\/=?^_`{|}~\u{0080}-\u{10FFFF}-]+)*|"(?:[^"\\]|\\.)*")@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,62})(?<!-)(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,62})(?<!-))*$/iu;
|
|
1509
1509
|
function IsIdnEmail(value) {
|
|
1510
1510
|
return IdnEmail.test(value.normalize("NFC"));
|
|
1511
1511
|
}
|
|
1512
1512
|
|
|
1513
|
-
//
|
|
1513
|
+
// node_modules/typebox/build/format/idn_hostname.mjs
|
|
1514
1514
|
function IsIdnHostname2(value) {
|
|
1515
1515
|
return IsIdnHostname(value);
|
|
1516
1516
|
}
|
|
1517
1517
|
|
|
1518
|
-
//
|
|
1518
|
+
// node_modules/typebox/build/format/ipv4.mjs
|
|
1519
1519
|
var IPv4 = /^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/;
|
|
1520
1520
|
function IsIPv4(value) {
|
|
1521
1521
|
return IPv4.test(value);
|
|
1522
1522
|
}
|
|
1523
1523
|
|
|
1524
|
-
//
|
|
1524
|
+
// node_modules/typebox/build/format/ipv6.mjs
|
|
1525
1525
|
var IPv6 = /^(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:)?[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)$/i;
|
|
1526
1526
|
function IsIPv6(value) {
|
|
1527
1527
|
return IPv6.test(value);
|
|
1528
1528
|
}
|
|
1529
1529
|
|
|
1530
|
-
//
|
|
1530
|
+
// node_modules/typebox/build/format/iri_reference.mjs
|
|
1531
1531
|
var InvalidIriChars = /[\x00-\x20\x7F\\]|%(?![0-9a-fA-F]{2})/;
|
|
1532
1532
|
var MalformedScheme = /^[a-zA-Z][a-zA-Z0-9+\-.]*\/\//;
|
|
1533
1533
|
function IsIriReference(value) {
|
|
1534
1534
|
return !InvalidIriChars.test(value) && !MalformedScheme.test(value) && URL.canParse(value, "http://example.com");
|
|
1535
1535
|
}
|
|
1536
1536
|
|
|
1537
|
-
//
|
|
1537
|
+
// node_modules/typebox/build/format/iri.mjs
|
|
1538
1538
|
var IpvFutureMatchMaxLength = 2048;
|
|
1539
1539
|
var IpvFutureMatch = /\[[vV][0-9a-fA-F]+\.[^\]]+\]/;
|
|
1540
1540
|
var InvalidIriChars2 = /[\x00-\x20<>\^`{|}\\]/;
|
|
@@ -1550,19 +1550,19 @@ function IsIri(value) {
|
|
|
1550
1550
|
return URL.canParse(NarrowIpvFuture(value));
|
|
1551
1551
|
}
|
|
1552
1552
|
|
|
1553
|
-
//
|
|
1553
|
+
// node_modules/typebox/build/format/json_pointer_uri_fragment.mjs
|
|
1554
1554
|
var JsonPointerUriFragment = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;
|
|
1555
1555
|
function IsJsonPointerUriFragment(value) {
|
|
1556
1556
|
return JsonPointerUriFragment.test(value);
|
|
1557
1557
|
}
|
|
1558
1558
|
|
|
1559
|
-
//
|
|
1559
|
+
// node_modules/typebox/build/format/json_pointer.mjs
|
|
1560
1560
|
var JsonPointer = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
|
|
1561
1561
|
function IsJsonPointer(value) {
|
|
1562
1562
|
return JsonPointer.test(value);
|
|
1563
1563
|
}
|
|
1564
1564
|
|
|
1565
|
-
//
|
|
1565
|
+
// node_modules/typebox/build/format/regex.mjs
|
|
1566
1566
|
function IsRegex(value) {
|
|
1567
1567
|
try {
|
|
1568
1568
|
new RegExp(value, "u");
|
|
@@ -1572,42 +1572,42 @@ function IsRegex(value) {
|
|
|
1572
1572
|
}
|
|
1573
1573
|
}
|
|
1574
1574
|
|
|
1575
|
-
//
|
|
1575
|
+
// node_modules/typebox/build/format/relative_json_pointer.mjs
|
|
1576
1576
|
var RelativeJsonPointer = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
|
|
1577
1577
|
function IsRelativeJsonPointer(value) {
|
|
1578
1578
|
return RelativeJsonPointer.test(value);
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
1581
|
-
//
|
|
1581
|
+
// node_modules/typebox/build/format/uri_reference.mjs
|
|
1582
1582
|
var UriReference = /^(?:[a-z][a-z0-9+\-.]*:(?:\/\/(?:(?:[-a-z0-9._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:[\da-f]{1,4}:){6}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|::(?:[\da-f]{1,4}:){5}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:[\da-f]{1,4})?::(?:[\da-f]{1,4}:){4}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,1}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){3}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){2}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4})?::[\da-f]{1,4}:(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4})?::(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4})?::[\da-f]{1,4}|(?:(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4})?::)|v[0-9a-f]+\.[-a-z0-9._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)|(?:[-a-z0-9._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:\/\/(?:(?:[-a-z0-9._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:[\da-f]{1,4}:){6}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|::(?:[\da-f]{1,4}:){5}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:[\da-f]{1,4})?::(?:[\da-f]{1,4}:){4}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,1}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){3}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){2}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4})?::[\da-f]{1,4}:(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4})?::(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4})?::[\da-f]{1,4}|(?:(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4})?::)|v[0-9a-f]+\.[-a-z0-9._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)|(?:[-a-z0-9._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[-a-z0-9._~!$&'()*+,;=@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?)(?:\?(?:[-a-z0-9._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[-a-z0-9._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
|
|
1583
1583
|
function IsUriReference(value) {
|
|
1584
1584
|
return UriReference.test(value);
|
|
1585
1585
|
}
|
|
1586
1586
|
|
|
1587
|
-
//
|
|
1587
|
+
// node_modules/typebox/build/format/uri_template.mjs
|
|
1588
1588
|
var UriTemplate = /^(?:(?:[^\x00-\x20"<>%\\^`{|}\x7f]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?:\.(?:[a-z0-9_]|%[0-9a-f]{2})+)*(?::[1-9]\d{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?:\.(?:[a-z0-9_]|%[0-9a-f]{2})+)*(?::[1-9]\d{0,3}|\*)?)*\})*$/i;
|
|
1589
1589
|
function IsUriTemplate(value) {
|
|
1590
1590
|
return UriTemplate.test(value);
|
|
1591
1591
|
}
|
|
1592
1592
|
|
|
1593
|
-
//
|
|
1593
|
+
// node_modules/typebox/build/format/uri.mjs
|
|
1594
1594
|
var Uri = /^[a-z][a-z0-9+\-.]*:(?:\/\/(?:(?:[-a-z0-9._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:[\da-f]{1,4}:){6}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|::(?:[\da-f]{1,4}:){5}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:[\da-f]{1,4})?::(?:[\da-f]{1,4}:){4}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,1}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){3}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){2}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4})?::[\da-f]{1,4}:(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4})?::(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4})?::[\da-f]{1,4}|(?:(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4})?::)|v[0-9a-f]+\.[-a-z0-9._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)|(?:[-a-z0-9._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[-a-z0-9._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[-a-z0-9._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
|
|
1595
1595
|
function IsUri(value) {
|
|
1596
1596
|
return Uri.test(value);
|
|
1597
1597
|
}
|
|
1598
1598
|
|
|
1599
|
-
//
|
|
1599
|
+
// node_modules/typebox/build/format/url.mjs
|
|
1600
1600
|
function IsUrl(value) {
|
|
1601
1601
|
return URL.canParse(value);
|
|
1602
1602
|
}
|
|
1603
1603
|
|
|
1604
|
-
//
|
|
1604
|
+
// node_modules/typebox/build/format/uuid.mjs
|
|
1605
1605
|
var Uuid = /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
|
|
1606
1606
|
function IsUuid(value) {
|
|
1607
1607
|
return Uuid.test(value);
|
|
1608
1608
|
}
|
|
1609
1609
|
|
|
1610
|
-
//
|
|
1610
|
+
// node_modules/typebox/build/format/_registry.mjs
|
|
1611
1611
|
var formats = /* @__PURE__ */ new Map();
|
|
1612
1612
|
function Clear() {
|
|
1613
1613
|
formats.clear();
|
|
@@ -1653,7 +1653,7 @@ function Reset2() {
|
|
|
1653
1653
|
}
|
|
1654
1654
|
Reset2();
|
|
1655
1655
|
|
|
1656
|
-
//
|
|
1656
|
+
// node_modules/typebox/build/schema/engine/format.mjs
|
|
1657
1657
|
function CheckFormat(_stack, _context, schema, value) {
|
|
1658
1658
|
return format_exports.Test(schema.format, value);
|
|
1659
1659
|
}
|
|
@@ -1666,7 +1666,7 @@ function ErrorFormat(stack, context2, schemaPath, instancePath, schema, value) {
|
|
|
1666
1666
|
});
|
|
1667
1667
|
}
|
|
1668
1668
|
|
|
1669
|
-
//
|
|
1669
|
+
// node_modules/typebox/build/schema/engine/if.mjs
|
|
1670
1670
|
function CheckIf(stack, context2, schema, value) {
|
|
1671
1671
|
const thenSchema = IsThen(schema) ? schema.then : true;
|
|
1672
1672
|
const elseSchema = IsElse(schema) ? schema.else : true;
|
|
@@ -1692,7 +1692,7 @@ function ErrorIf(stack, context2, schemaPath, instancePath, schema, value) {
|
|
|
1692
1692
|
return isIf;
|
|
1693
1693
|
}
|
|
1694
1694
|
|
|
1695
|
-
//
|
|
1695
|
+
// node_modules/typebox/build/schema/engine/items.mjs
|
|
1696
1696
|
function CheckItemsSized(stack, context2, schema, value) {
|
|
1697
1697
|
return guard_exports.Every(schema.items, 0, (schema2, index) => {
|
|
1698
1698
|
return guard_exports.IsLessEqualThan(value.length, index) || CheckSchemaPushStack(stack, context2, schema2, value[index]) && context2.AddIndex(index);
|
|
@@ -1726,7 +1726,7 @@ function ErrorItems(stack, context2, schemaPath, instancePath, schema, value) {
|
|
|
1726
1726
|
return IsItemsSized(schema) ? ErrorItemsSized(stack, context2, schemaPath, instancePath, schema, value) : ErrorItemsUnsized(stack, context2, schemaPath, instancePath, schema, value);
|
|
1727
1727
|
}
|
|
1728
1728
|
|
|
1729
|
-
//
|
|
1729
|
+
// node_modules/typebox/build/schema/engine/maxContains.mjs
|
|
1730
1730
|
function IsValid3(schema) {
|
|
1731
1731
|
return IsContains(schema);
|
|
1732
1732
|
}
|
|
@@ -1746,7 +1746,7 @@ function ErrorMaxContains(stack, context2, schemaPath, instancePath, schema, val
|
|
|
1746
1746
|
});
|
|
1747
1747
|
}
|
|
1748
1748
|
|
|
1749
|
-
//
|
|
1749
|
+
// node_modules/typebox/build/schema/engine/maximum.mjs
|
|
1750
1750
|
function CheckMaximum(_stack, _context, schema, value) {
|
|
1751
1751
|
return guard_exports.IsLessEqualThan(value, schema.maximum);
|
|
1752
1752
|
}
|
|
@@ -1759,7 +1759,7 @@ function ErrorMaximum(stack, context2, schemaPath, instancePath, schema, value)
|
|
|
1759
1759
|
});
|
|
1760
1760
|
}
|
|
1761
1761
|
|
|
1762
|
-
//
|
|
1762
|
+
// node_modules/typebox/build/schema/engine/maxItems.mjs
|
|
1763
1763
|
function CheckMaxItems(_stack, _context, schema, value) {
|
|
1764
1764
|
return guard_exports.IsLessEqualThan(value.length, schema.maxItems);
|
|
1765
1765
|
}
|
|
@@ -1772,7 +1772,7 @@ function ErrorMaxItems(stack, context2, schemaPath, instancePath, schema, value)
|
|
|
1772
1772
|
});
|
|
1773
1773
|
}
|
|
1774
1774
|
|
|
1775
|
-
//
|
|
1775
|
+
// node_modules/typebox/build/schema/engine/maxLength.mjs
|
|
1776
1776
|
function CheckMaxLength(_stack, _context, schema, value) {
|
|
1777
1777
|
return guard_exports.IsMaxLength(value, schema.maxLength);
|
|
1778
1778
|
}
|
|
@@ -1785,7 +1785,7 @@ function ErrorMaxLength(stack, context2, schemaPath, instancePath, schema, value
|
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
1787
1787
|
|
|
1788
|
-
//
|
|
1788
|
+
// node_modules/typebox/build/schema/engine/maxProperties.mjs
|
|
1789
1789
|
function CheckMaxProperties(_stack, _context, schema, value) {
|
|
1790
1790
|
return guard_exports.IsLessEqualThan(guard_exports.Keys(value).length, schema.maxProperties);
|
|
1791
1791
|
}
|
|
@@ -1798,7 +1798,7 @@ function ErrorMaxProperties(stack, context2, schemaPath, instancePath, schema, v
|
|
|
1798
1798
|
});
|
|
1799
1799
|
}
|
|
1800
1800
|
|
|
1801
|
-
//
|
|
1801
|
+
// node_modules/typebox/build/schema/engine/minContains.mjs
|
|
1802
1802
|
function IsValid4(schema) {
|
|
1803
1803
|
return IsContains(schema);
|
|
1804
1804
|
}
|
|
@@ -1817,7 +1817,7 @@ function ErrorMinContains(stack, context2, schemaPath, instancePath, schema, val
|
|
|
1817
1817
|
});
|
|
1818
1818
|
}
|
|
1819
1819
|
|
|
1820
|
-
//
|
|
1820
|
+
// node_modules/typebox/build/schema/engine/minimum.mjs
|
|
1821
1821
|
function CheckMinimum(_stack, _context, schema, value) {
|
|
1822
1822
|
return guard_exports.IsGreaterEqualThan(value, schema.minimum);
|
|
1823
1823
|
}
|
|
@@ -1830,7 +1830,7 @@ function ErrorMinimum(stack, context2, schemaPath, instancePath, schema, value)
|
|
|
1830
1830
|
});
|
|
1831
1831
|
}
|
|
1832
1832
|
|
|
1833
|
-
//
|
|
1833
|
+
// node_modules/typebox/build/schema/engine/minItems.mjs
|
|
1834
1834
|
function CheckMinItems(_stack, _context, schema, value) {
|
|
1835
1835
|
return guard_exports.IsGreaterEqualThan(value.length, schema.minItems);
|
|
1836
1836
|
}
|
|
@@ -1843,7 +1843,7 @@ function ErrorMinItems(stack, context2, schemaPath, instancePath, schema, value)
|
|
|
1843
1843
|
});
|
|
1844
1844
|
}
|
|
1845
1845
|
|
|
1846
|
-
//
|
|
1846
|
+
// node_modules/typebox/build/schema/engine/minLength.mjs
|
|
1847
1847
|
function CheckMinLength(_stack, _context, schema, value) {
|
|
1848
1848
|
return guard_exports.IsMinLength(value, schema.minLength);
|
|
1849
1849
|
}
|
|
@@ -1856,7 +1856,7 @@ function ErrorMinLength(stack, context2, schemaPath, instancePath, schema, value
|
|
|
1856
1856
|
});
|
|
1857
1857
|
}
|
|
1858
1858
|
|
|
1859
|
-
//
|
|
1859
|
+
// node_modules/typebox/build/schema/engine/minProperties.mjs
|
|
1860
1860
|
function CheckMinProperties(_stack, _context, schema, value) {
|
|
1861
1861
|
return guard_exports.IsGreaterEqualThan(guard_exports.Keys(value).length, schema.minProperties);
|
|
1862
1862
|
}
|
|
@@ -1869,7 +1869,7 @@ function ErrorMinProperties(stack, context2, schemaPath, instancePath, schema, v
|
|
|
1869
1869
|
});
|
|
1870
1870
|
}
|
|
1871
1871
|
|
|
1872
|
-
//
|
|
1872
|
+
// node_modules/typebox/build/schema/engine/multipleOf.mjs
|
|
1873
1873
|
function CheckMultipleOf(_stack, _context, schema, value) {
|
|
1874
1874
|
return guard_exports.IsMultipleOf(value, schema.multipleOf);
|
|
1875
1875
|
}
|
|
@@ -1882,7 +1882,7 @@ function ErrorMultipleOf(stack, context2, schemaPath, instancePath, schema, valu
|
|
|
1882
1882
|
});
|
|
1883
1883
|
}
|
|
1884
1884
|
|
|
1885
|
-
//
|
|
1885
|
+
// node_modules/typebox/build/schema/engine/not.mjs
|
|
1886
1886
|
function CheckNot(stack, context2, schema, value) {
|
|
1887
1887
|
const nextContext = new CheckContext();
|
|
1888
1888
|
const isSchema = !CheckSchema(stack, nextContext, schema.not, value);
|
|
@@ -1898,7 +1898,7 @@ function ErrorNot(stack, context2, schemaPath, instancePath, schema, value) {
|
|
|
1898
1898
|
});
|
|
1899
1899
|
}
|
|
1900
1900
|
|
|
1901
|
-
//
|
|
1901
|
+
// node_modules/typebox/build/schema/engine/oneOf.mjs
|
|
1902
1902
|
function CheckOneOf(stack, context2, schema, value) {
|
|
1903
1903
|
const passedContexts = schema.oneOf.reduce((result, schema2) => {
|
|
1904
1904
|
const nextContext = new CheckContext();
|
|
@@ -1930,7 +1930,7 @@ function ErrorOneOf(stack, context2, schemaPath, instancePath, schema, value) {
|
|
|
1930
1930
|
});
|
|
1931
1931
|
}
|
|
1932
1932
|
|
|
1933
|
-
//
|
|
1933
|
+
// node_modules/typebox/build/schema/engine/pattern.mjs
|
|
1934
1934
|
function CheckPattern(_stack, _context, schema, value) {
|
|
1935
1935
|
const regexp = guard_exports.IsString(schema.pattern) ? UnicodeRegExp(schema.pattern) : schema.pattern;
|
|
1936
1936
|
return regexp.test(value);
|
|
@@ -1944,7 +1944,7 @@ function ErrorPattern(stack, context2, schemaPath, instancePath, schema, value)
|
|
|
1944
1944
|
});
|
|
1945
1945
|
}
|
|
1946
1946
|
|
|
1947
|
-
//
|
|
1947
|
+
// node_modules/typebox/build/schema/engine/patternProperties.mjs
|
|
1948
1948
|
function CheckPatternProperties(stack, context2, schema, value) {
|
|
1949
1949
|
return guard_exports.Every(guard_exports.Entries(schema.patternProperties), 0, ([pattern, schema2]) => {
|
|
1950
1950
|
const regexp = UnicodeRegExp(pattern);
|
|
@@ -1965,7 +1965,7 @@ function ErrorPatternProperties(stack, context2, schemaPath, instancePath, schem
|
|
|
1965
1965
|
});
|
|
1966
1966
|
}
|
|
1967
1967
|
|
|
1968
|
-
//
|
|
1968
|
+
// node_modules/typebox/build/schema/engine/prefixItems.mjs
|
|
1969
1969
|
function CheckPrefixItems(stack, context2, schema, value) {
|
|
1970
1970
|
return guard_exports.IsEqual(value.length, 0) || guard_exports.Every(schema.prefixItems, 0, (schema2, index) => {
|
|
1971
1971
|
return guard_exports.IsLessEqualThan(value.length, index) || CheckSchemaPushStack(stack, context2, schema2, value[index]) && context2.AddIndex(index);
|
|
@@ -1979,7 +1979,7 @@ function ErrorPrefixItems(stack, context2, schemaPath, instancePath, schema, val
|
|
|
1979
1979
|
});
|
|
1980
1980
|
}
|
|
1981
1981
|
|
|
1982
|
-
//
|
|
1982
|
+
// node_modules/typebox/build/schema/engine/_exact_optional.mjs
|
|
1983
1983
|
function IsExactOptional(required, key) {
|
|
1984
1984
|
return required.includes(key) || settings_exports.Get().exactOptionalPropertyTypes;
|
|
1985
1985
|
}
|
|
@@ -1987,7 +1987,7 @@ function InexactOptionalCheck(value, key) {
|
|
|
1987
1987
|
return guard_exports.IsUndefined(value[key]);
|
|
1988
1988
|
}
|
|
1989
1989
|
|
|
1990
|
-
//
|
|
1990
|
+
// node_modules/typebox/build/schema/engine/properties.mjs
|
|
1991
1991
|
function CheckProperties(stack, context2, schema, value) {
|
|
1992
1992
|
const required = IsRequired(schema) ? schema.required : [];
|
|
1993
1993
|
const isProperties = guard_exports.Every(guard_exports.Entries(schema.properties), 0, ([key, schema2]) => {
|
|
@@ -2007,7 +2007,7 @@ function ErrorProperties(stack, context2, schemaPath, instancePath, schema, valu
|
|
|
2007
2007
|
return isProperties;
|
|
2008
2008
|
}
|
|
2009
2009
|
|
|
2010
|
-
//
|
|
2010
|
+
// node_modules/typebox/build/schema/engine/propertyNames.mjs
|
|
2011
2011
|
function CheckPropertyNames(stack, context2, schema, value) {
|
|
2012
2012
|
return guard_exports.Every(guard_exports.Keys(value), 0, (key, _index) => CheckSchema(stack, context2, schema.propertyNames, key));
|
|
2013
2013
|
}
|
|
@@ -2029,7 +2029,7 @@ function ErrorPropertyNames(stack, context2, schemaPath, instancePath, schema, v
|
|
|
2029
2029
|
});
|
|
2030
2030
|
}
|
|
2031
2031
|
|
|
2032
|
-
//
|
|
2032
|
+
// node_modules/typebox/build/schema/engine/recursiveRef.mjs
|
|
2033
2033
|
function CheckRecursiveRef(stack, context2, schema, value) {
|
|
2034
2034
|
const target = stack.RecursiveRef(schema) ?? false;
|
|
2035
2035
|
return IsSchema(target) && CheckSchema(stack, context2, target, value);
|
|
@@ -2039,7 +2039,7 @@ function ErrorRecursiveRef(stack, context2, _schemaPath, instancePath, schema, v
|
|
|
2039
2039
|
return IsSchema(target) && ErrorSchema(stack, context2, "#", instancePath, target, value);
|
|
2040
2040
|
}
|
|
2041
2041
|
|
|
2042
|
-
//
|
|
2042
|
+
// node_modules/typebox/build/schema/engine/ref.mjs
|
|
2043
2043
|
function CheckRef(stack, context2, schema, value) {
|
|
2044
2044
|
const target = stack.Ref(schema) ?? false;
|
|
2045
2045
|
const nextContext = new CheckContext();
|
|
@@ -2059,7 +2059,7 @@ function ErrorRef(stack, context2, _schemaPath, instancePath, schema, value) {
|
|
|
2059
2059
|
return result;
|
|
2060
2060
|
}
|
|
2061
2061
|
|
|
2062
|
-
//
|
|
2062
|
+
// node_modules/typebox/build/schema/engine/required.mjs
|
|
2063
2063
|
function CheckRequired(_stack, _context, schema, value) {
|
|
2064
2064
|
return guard_exports.Every(schema.required, 0, (key) => guard_exports.HasPropertyKey(value, key));
|
|
2065
2065
|
}
|
|
@@ -2079,7 +2079,7 @@ function ErrorRequired(_stack, context2, schemaPath, instancePath, schema, value
|
|
|
2079
2079
|
});
|
|
2080
2080
|
}
|
|
2081
2081
|
|
|
2082
|
-
//
|
|
2082
|
+
// node_modules/typebox/build/schema/engine/type.mjs
|
|
2083
2083
|
function CheckTypeName(_stack, _context, type, _schema, value) {
|
|
2084
2084
|
return (
|
|
2085
2085
|
// jsonschema
|
|
@@ -2105,7 +2105,7 @@ function ErrorType(stack, context2, schemaPath, instancePath, schema, value) {
|
|
|
2105
2105
|
});
|
|
2106
2106
|
}
|
|
2107
2107
|
|
|
2108
|
-
//
|
|
2108
|
+
// node_modules/typebox/build/schema/engine/unevaluatedItems.mjs
|
|
2109
2109
|
function CheckUnevaluatedItems(stack, context2, schema, value) {
|
|
2110
2110
|
const indices = context2.GetIndices();
|
|
2111
2111
|
return guard_exports.Every(value, 0, (item, index) => {
|
|
@@ -2130,7 +2130,7 @@ function ErrorUnevaluatedItems(stack, context2, schemaPath, instancePath, schema
|
|
|
2130
2130
|
});
|
|
2131
2131
|
}
|
|
2132
2132
|
|
|
2133
|
-
//
|
|
2133
|
+
// node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs
|
|
2134
2134
|
function CheckUnevaluatedProperties(stack, context2, schema, value) {
|
|
2135
2135
|
const keys = context2.GetKeys();
|
|
2136
2136
|
return guard_exports.Every(guard_exports.Entries(value), 0, ([key, prop]) => {
|
|
@@ -2155,19 +2155,19 @@ function ErrorUnevaluatedProperties(stack, context2, schemaPath, instancePath, s
|
|
|
2155
2155
|
});
|
|
2156
2156
|
}
|
|
2157
2157
|
|
|
2158
|
-
//
|
|
2158
|
+
// node_modules/typebox/build/system/hashing/hash.mjs
|
|
2159
2159
|
var hash_exports = {};
|
|
2160
2160
|
__export(hash_exports, {
|
|
2161
2161
|
Hash: () => Hash,
|
|
2162
2162
|
HashCode: () => HashCode
|
|
2163
2163
|
});
|
|
2164
2164
|
|
|
2165
|
-
//
|
|
2165
|
+
// node_modules/typebox/build/system/unreachable/unreachable.mjs
|
|
2166
2166
|
function Unreachable() {
|
|
2167
2167
|
throw new Error("Unreachable");
|
|
2168
2168
|
}
|
|
2169
2169
|
|
|
2170
|
-
//
|
|
2170
|
+
// node_modules/typebox/build/system/hashing/hash.mjs
|
|
2171
2171
|
function InstanceKeys(value) {
|
|
2172
2172
|
const propertyKeys = /* @__PURE__ */ new Set();
|
|
2173
2173
|
let current = value;
|
|
@@ -2301,7 +2301,7 @@ function Hash(value) {
|
|
|
2301
2301
|
return HashCode(value).toString(16).padStart(16, "0");
|
|
2302
2302
|
}
|
|
2303
2303
|
|
|
2304
|
-
//
|
|
2304
|
+
// node_modules/typebox/build/schema/engine/uniqueItems.mjs
|
|
2305
2305
|
function IsValid5(schema) {
|
|
2306
2306
|
return !guard_exports.IsEqual(schema.uniqueItems, false);
|
|
2307
2307
|
}
|
|
@@ -2332,7 +2332,7 @@ function ErrorUniqueItems(_stack, context2, schemaPath, instancePath, schema, va
|
|
|
2332
2332
|
});
|
|
2333
2333
|
}
|
|
2334
2334
|
|
|
2335
|
-
//
|
|
2335
|
+
// node_modules/typebox/build/schema/engine/schema.mjs
|
|
2336
2336
|
function CheckSchemaPushStack(stack, context2, schema, value) {
|
|
2337
2337
|
return context2.Push() && CheckSchema(stack, context2, schema, value) && context2.Pop();
|
|
2338
2338
|
}
|
|
@@ -2354,7 +2354,7 @@ function ErrorSchema(stack, context2, schemaPath, instancePath, schema, value) {
|
|
|
2354
2354
|
return result;
|
|
2355
2355
|
}
|
|
2356
2356
|
|
|
2357
|
-
//
|
|
2357
|
+
// node_modules/typebox/build/schema/resolve/resolve.mjs
|
|
2358
2358
|
var resolve_exports = {};
|
|
2359
2359
|
__export(resolve_exports, {
|
|
2360
2360
|
Base: () => Base,
|
|
@@ -2367,7 +2367,7 @@ __export(resolve_exports, {
|
|
|
2367
2367
|
Resource: () => Resource
|
|
2368
2368
|
});
|
|
2369
2369
|
|
|
2370
|
-
//
|
|
2370
|
+
// node_modules/typebox/build/schema/pointer/pointer.mjs
|
|
2371
2371
|
var pointer_exports = {};
|
|
2372
2372
|
__export(pointer_exports, {
|
|
2373
2373
|
Delete: () => Delete,
|
|
@@ -2454,7 +2454,7 @@ function Delete(value, pointer) {
|
|
|
2454
2454
|
return value;
|
|
2455
2455
|
}
|
|
2456
2456
|
|
|
2457
|
-
//
|
|
2457
|
+
// node_modules/typebox/build/schema/resolve/resolve.mjs
|
|
2458
2458
|
var DefaultBase = "https://json-schema.org";
|
|
2459
2459
|
function FindDynamicAnchor(schema, name) {
|
|
2460
2460
|
if (guard_exports.IsObject(schema) && IsDynamicAnchor(schema) && guard_exports.IsEqual(schema.$dynamicAnchor, name)) {
|
|
@@ -2670,7 +2670,7 @@ function ResolveDynamicRef(stackframe, dynamicRef) {
|
|
|
2670
2670
|
return DynamicRef(stackframe.context, stackframe.root, stackframe.lexicalBase, stackframe.lexicalSchema, dynamicRef, stackframe.dynamicAnchors);
|
|
2671
2671
|
}
|
|
2672
2672
|
|
|
2673
|
-
//
|
|
2673
|
+
// node_modules/typebox/build/schema/engine/_stack.mjs
|
|
2674
2674
|
var __classPrivateFieldGet = function(receiver, state, kind, f) {
|
|
2675
2675
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
2676
2676
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
@@ -2884,7 +2884,7 @@ _Stack_instances = /* @__PURE__ */ new WeakSet(), _Stack_StackFrame = function _
|
|
|
2884
2884
|
this.resolvedResources.delete(target);
|
|
2885
2885
|
};
|
|
2886
2886
|
|
|
2887
|
-
//
|
|
2887
|
+
// node_modules/typebox/build/system/locale/en_US.mjs
|
|
2888
2888
|
function en_US(error) {
|
|
2889
2889
|
switch (error.keyword) {
|
|
2890
2890
|
case "additionalProperties":
|
|
@@ -2955,13 +2955,13 @@ function en_US(error) {
|
|
|
2955
2955
|
}
|
|
2956
2956
|
}
|
|
2957
2957
|
|
|
2958
|
-
//
|
|
2958
|
+
// node_modules/typebox/build/system/locale/_config.mjs
|
|
2959
2959
|
var locale = en_US;
|
|
2960
2960
|
function Get4() {
|
|
2961
2961
|
return locale;
|
|
2962
2962
|
}
|
|
2963
2963
|
|
|
2964
|
-
//
|
|
2964
|
+
// node_modules/typebox/build/system/memory/memory.mjs
|
|
2965
2965
|
var memory_exports = {};
|
|
2966
2966
|
__export(memory_exports, {
|
|
2967
2967
|
Assign: () => Assign,
|
|
@@ -2972,7 +2972,7 @@ __export(memory_exports, {
|
|
|
2972
2972
|
Update: () => Update
|
|
2973
2973
|
});
|
|
2974
2974
|
|
|
2975
|
-
//
|
|
2975
|
+
// node_modules/typebox/build/system/memory/metrics.mjs
|
|
2976
2976
|
var Metrics = {
|
|
2977
2977
|
assign: 0,
|
|
2978
2978
|
create: 0,
|
|
@@ -2981,18 +2981,18 @@ var Metrics = {
|
|
|
2981
2981
|
update: 0
|
|
2982
2982
|
};
|
|
2983
2983
|
|
|
2984
|
-
//
|
|
2984
|
+
// node_modules/typebox/build/system/memory/freeze.mjs
|
|
2985
2985
|
function Freeze(value) {
|
|
2986
2986
|
return settings_exports.Get().immutableTypes ? Object.freeze(value) : value;
|
|
2987
2987
|
}
|
|
2988
2988
|
|
|
2989
|
-
//
|
|
2989
|
+
// node_modules/typebox/build/system/memory/assign.mjs
|
|
2990
2990
|
function Assign(left, right) {
|
|
2991
2991
|
Metrics.assign += 1;
|
|
2992
2992
|
return Freeze({ ...left, ...right });
|
|
2993
2993
|
}
|
|
2994
2994
|
|
|
2995
|
-
//
|
|
2995
|
+
// node_modules/typebox/build/system/memory/clone.mjs
|
|
2996
2996
|
function FromClassInstance(value) {
|
|
2997
2997
|
return value;
|
|
2998
2998
|
}
|
|
@@ -3052,7 +3052,7 @@ function Clone(value) {
|
|
|
3052
3052
|
return FromValue3(value);
|
|
3053
3053
|
}
|
|
3054
3054
|
|
|
3055
|
-
//
|
|
3055
|
+
// node_modules/typebox/build/system/memory/create.mjs
|
|
3056
3056
|
function MergeHidden(left, right) {
|
|
3057
3057
|
for (const key of Object.keys(right)) {
|
|
3058
3058
|
Object.defineProperty(left, key, {
|
|
@@ -3074,7 +3074,7 @@ function Create(hidden, enumerable, options = {}) {
|
|
|
3074
3074
|
return Freeze(withHidden);
|
|
3075
3075
|
}
|
|
3076
3076
|
|
|
3077
|
-
//
|
|
3077
|
+
// node_modules/typebox/build/system/memory/discard.mjs
|
|
3078
3078
|
function Discard(value, propertyKeys) {
|
|
3079
3079
|
Metrics.discard += 1;
|
|
3080
3080
|
const result = {};
|
|
@@ -3088,7 +3088,7 @@ function Discard(value, propertyKeys) {
|
|
|
3088
3088
|
return Freeze(result);
|
|
3089
3089
|
}
|
|
3090
3090
|
|
|
3091
|
-
//
|
|
3091
|
+
// node_modules/typebox/build/system/memory/update.mjs
|
|
3092
3092
|
function Update(current, hidden, enumerable) {
|
|
3093
3093
|
Metrics.update += 1;
|
|
3094
3094
|
const settings2 = settings_exports.Get();
|
|
@@ -3112,7 +3112,7 @@ function Update(current, hidden, enumerable) {
|
|
|
3112
3112
|
return Freeze(result);
|
|
3113
3113
|
}
|
|
3114
3114
|
|
|
3115
|
-
//
|
|
3115
|
+
// node_modules/typebox/build/schema/errors.mjs
|
|
3116
3116
|
function Errors(...args) {
|
|
3117
3117
|
const [context2, schema, value] = arguments_exports.Match(args, {
|
|
3118
3118
|
3: (context3, schema2, value2) => [context3, schema2, value2],
|
|
@@ -3127,7 +3127,7 @@ function Errors(...args) {
|
|
|
3127
3127
|
return [result, localized];
|
|
3128
3128
|
}
|
|
3129
3129
|
|
|
3130
|
-
//
|
|
3130
|
+
// node_modules/typebox/build/schema/check.mjs
|
|
3131
3131
|
function Check(...args) {
|
|
3132
3132
|
const [context2, schema, value] = arguments_exports.Match(args, {
|
|
3133
3133
|
3: (context3, schema2, value2) => [context3, schema2, value2],
|
|
@@ -3138,7 +3138,7 @@ function Check(...args) {
|
|
|
3138
3138
|
return CheckSchema(stack, checkContext, schema, value);
|
|
3139
3139
|
}
|
|
3140
3140
|
|
|
3141
|
-
//
|
|
3141
|
+
// node_modules/typebox/build/value/check/check.mjs
|
|
3142
3142
|
function Check2(...args) {
|
|
3143
3143
|
const [context2, type, value] = arguments_exports.Match(args, {
|
|
3144
3144
|
3: (context3, type2, value2) => [context3, type2, value2],
|
|
@@ -3147,7 +3147,7 @@ function Check2(...args) {
|
|
|
3147
3147
|
return Check(context2, type, value);
|
|
3148
3148
|
}
|
|
3149
3149
|
|
|
3150
|
-
//
|
|
3150
|
+
// node_modules/typebox/build/value/errors/errors.mjs
|
|
3151
3151
|
function Errors2(...args) {
|
|
3152
3152
|
const [context2, type, value] = arguments_exports.Match(args, {
|
|
3153
3153
|
3: (context3, type2, value2) => [context3, type2, value2],
|
|
@@ -3157,7 +3157,7 @@ function Errors2(...args) {
|
|
|
3157
3157
|
return errors;
|
|
3158
3158
|
}
|
|
3159
3159
|
|
|
3160
|
-
//
|
|
3160
|
+
// node_modules/typebox/build/value/assert/assert.mjs
|
|
3161
3161
|
var AssertError = class extends Error {
|
|
3162
3162
|
constructor(source, value, errors) {
|
|
3163
3163
|
super(source);
|
|
@@ -3170,7 +3170,7 @@ var AssertError = class extends Error {
|
|
|
3170
3170
|
}
|
|
3171
3171
|
};
|
|
3172
3172
|
|
|
3173
|
-
//
|
|
3173
|
+
// node_modules/typebox/build/type/types/schema.mjs
|
|
3174
3174
|
function IsKind(value, kind) {
|
|
3175
3175
|
return guard_exports.IsObject(value) && guard_exports.HasPropertyKey(value, "~kind") && guard_exports.IsEqual(value["~kind"], kind);
|
|
3176
3176
|
}
|
|
@@ -3178,7 +3178,7 @@ function IsSchema2(value) {
|
|
|
3178
3178
|
return guard_exports.IsObject(value);
|
|
3179
3179
|
}
|
|
3180
3180
|
|
|
3181
|
-
//
|
|
3181
|
+
// node_modules/typebox/build/type/types/deferred.mjs
|
|
3182
3182
|
function Deferred(action, parameters, options) {
|
|
3183
3183
|
return memory_exports.Create({ "~kind": "Deferred" }, { type: "deferred", action, parameters, options }, {});
|
|
3184
3184
|
}
|
|
@@ -3186,7 +3186,7 @@ function IsDeferred(value) {
|
|
|
3186
3186
|
return IsKind(value, "Deferred");
|
|
3187
3187
|
}
|
|
3188
3188
|
|
|
3189
|
-
//
|
|
3189
|
+
// node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs
|
|
3190
3190
|
function AddReadonlyOperation(type) {
|
|
3191
3191
|
return memory_exports.Update(type, { "~readonly": true }, {});
|
|
3192
3192
|
}
|
|
@@ -3199,7 +3199,7 @@ function AddReadonlyInstantiate(context2, state, type, options) {
|
|
|
3199
3199
|
return AddReadonlyAction(instantiatedType, options);
|
|
3200
3200
|
}
|
|
3201
3201
|
|
|
3202
|
-
//
|
|
3202
|
+
// node_modules/typebox/build/type/engine/optional/instantiate_add.mjs
|
|
3203
3203
|
function AddOptionalOperation(type) {
|
|
3204
3204
|
return memory_exports.Update(type, { "~optional": true }, {});
|
|
3205
3205
|
}
|
|
@@ -3212,7 +3212,7 @@ function AddOptionalInstantiate(context2, state, type, options) {
|
|
|
3212
3212
|
return AddOptionalAction(instantiatedType, options);
|
|
3213
3213
|
}
|
|
3214
3214
|
|
|
3215
|
-
//
|
|
3215
|
+
// node_modules/typebox/build/type/types/array.mjs
|
|
3216
3216
|
function _Array_(items, options) {
|
|
3217
3217
|
return memory_exports.Create({ "~kind": "Array" }, { type: "array", items }, options);
|
|
3218
3218
|
}
|
|
@@ -3223,7 +3223,7 @@ function ArrayOptions(type) {
|
|
|
3223
3223
|
return memory_exports.Discard(type, ["~kind", "type", "items"]);
|
|
3224
3224
|
}
|
|
3225
3225
|
|
|
3226
|
-
//
|
|
3226
|
+
// node_modules/typebox/build/type/types/constructor.mjs
|
|
3227
3227
|
function Constructor(parameters, instanceType, options = {}) {
|
|
3228
3228
|
return memory_exports.Create({ "~kind": "Constructor" }, { type: "constructor", parameters, instanceType }, options);
|
|
3229
3229
|
}
|
|
@@ -3234,7 +3234,7 @@ function ConstructorOptions(type) {
|
|
|
3234
3234
|
return memory_exports.Discard(type, ["~kind", "type", "parameters", "instanceType"]);
|
|
3235
3235
|
}
|
|
3236
3236
|
|
|
3237
|
-
//
|
|
3237
|
+
// node_modules/typebox/build/type/types/function.mjs
|
|
3238
3238
|
function _Function_(parameters, returnType, options = {}) {
|
|
3239
3239
|
return memory_exports.Create({ ["~kind"]: "Function" }, { type: "function", parameters, returnType }, options);
|
|
3240
3240
|
}
|
|
@@ -3245,7 +3245,7 @@ function FunctionOptions(type) {
|
|
|
3245
3245
|
return memory_exports.Discard(type, ["~kind", "type", "parameters", "returnType"]);
|
|
3246
3246
|
}
|
|
3247
3247
|
|
|
3248
|
-
//
|
|
3248
|
+
// node_modules/typebox/build/type/types/ref.mjs
|
|
3249
3249
|
function Ref2(ref, options) {
|
|
3250
3250
|
return memory_exports.Create({ ["~kind"]: "Ref" }, { $ref: ref }, options);
|
|
3251
3251
|
}
|
|
@@ -3253,7 +3253,7 @@ function IsRef2(value) {
|
|
|
3253
3253
|
return IsKind(value, "Ref");
|
|
3254
3254
|
}
|
|
3255
3255
|
|
|
3256
|
-
//
|
|
3256
|
+
// node_modules/typebox/build/type/types/generic.mjs
|
|
3257
3257
|
function Generic(parameters, expression) {
|
|
3258
3258
|
return memory_exports.Create({ "~kind": "Generic" }, { type: "generic", parameters, expression });
|
|
3259
3259
|
}
|
|
@@ -3261,7 +3261,7 @@ function IsGeneric(value) {
|
|
|
3261
3261
|
return IsKind(value, "Generic");
|
|
3262
3262
|
}
|
|
3263
3263
|
|
|
3264
|
-
//
|
|
3264
|
+
// node_modules/typebox/build/type/types/any.mjs
|
|
3265
3265
|
function Any(options) {
|
|
3266
3266
|
return memory_exports.Create({ ["~kind"]: "Any" }, {}, options);
|
|
3267
3267
|
}
|
|
@@ -3269,7 +3269,7 @@ function IsAny(value) {
|
|
|
3269
3269
|
return IsKind(value, "Any");
|
|
3270
3270
|
}
|
|
3271
3271
|
|
|
3272
|
-
//
|
|
3272
|
+
// node_modules/typebox/build/type/types/never.mjs
|
|
3273
3273
|
var NeverPattern = "(?!)";
|
|
3274
3274
|
function Never(options) {
|
|
3275
3275
|
return memory_exports.Create({ "~kind": "Never" }, { not: {} }, options);
|
|
@@ -3278,7 +3278,7 @@ function IsNever(value) {
|
|
|
3278
3278
|
return IsKind(value, "Never");
|
|
3279
3279
|
}
|
|
3280
3280
|
|
|
3281
|
-
//
|
|
3281
|
+
// node_modules/typebox/build/type/action/_add_optional.mjs
|
|
3282
3282
|
function AddOptionalDeferred(type, options = {}) {
|
|
3283
3283
|
return Deferred("AddOptional", [type], options);
|
|
3284
3284
|
}
|
|
@@ -3286,7 +3286,7 @@ function AddOptional(type, options = {}) {
|
|
|
3286
3286
|
return AddOptionalAction(type, options);
|
|
3287
3287
|
}
|
|
3288
3288
|
|
|
3289
|
-
//
|
|
3289
|
+
// node_modules/typebox/build/type/types/_optional.mjs
|
|
3290
3290
|
function Optional(type) {
|
|
3291
3291
|
return AddOptional(type);
|
|
3292
3292
|
}
|
|
@@ -3294,7 +3294,7 @@ function IsOptional(value) {
|
|
|
3294
3294
|
return IsSchema2(value) && guard_exports.HasPropertyKey(value, "~optional");
|
|
3295
3295
|
}
|
|
3296
3296
|
|
|
3297
|
-
//
|
|
3297
|
+
// node_modules/typebox/build/type/types/properties.mjs
|
|
3298
3298
|
function RequiredArray(properties) {
|
|
3299
3299
|
return guard_exports.Keys(properties).filter((key) => !IsOptional(properties[key]));
|
|
3300
3300
|
}
|
|
@@ -3305,7 +3305,7 @@ function PropertyValues(properties) {
|
|
|
3305
3305
|
return guard_exports.Values(properties);
|
|
3306
3306
|
}
|
|
3307
3307
|
|
|
3308
|
-
//
|
|
3308
|
+
// node_modules/typebox/build/type/types/object.mjs
|
|
3309
3309
|
function _Object_(properties, options = {}) {
|
|
3310
3310
|
const requiredKeys = RequiredArray(properties);
|
|
3311
3311
|
const required = requiredKeys.length > 0 ? { required: requiredKeys } : {};
|
|
@@ -3318,7 +3318,7 @@ function ObjectOptions(type) {
|
|
|
3318
3318
|
return memory_exports.Discard(type, ["~kind", "type", "properties", "required"]);
|
|
3319
3319
|
}
|
|
3320
3320
|
|
|
3321
|
-
//
|
|
3321
|
+
// node_modules/typebox/build/type/types/unknown.mjs
|
|
3322
3322
|
function Unknown(options) {
|
|
3323
3323
|
return memory_exports.Create({ ["~kind"]: "Unknown" }, {}, options);
|
|
3324
3324
|
}
|
|
@@ -3326,7 +3326,7 @@ function IsUnknown(value) {
|
|
|
3326
3326
|
return IsKind(value, "Unknown");
|
|
3327
3327
|
}
|
|
3328
3328
|
|
|
3329
|
-
//
|
|
3329
|
+
// node_modules/typebox/build/type/types/cyclic.mjs
|
|
3330
3330
|
function Cyclic($defs, $ref, options) {
|
|
3331
3331
|
const defs = guard_exports.Keys($defs).reduce((result, key) => {
|
|
3332
3332
|
return { ...result, [key]: memory_exports.Update($defs[key], {}, { $id: key }) };
|
|
@@ -3337,7 +3337,7 @@ function IsCyclic(value) {
|
|
|
3337
3337
|
return IsKind(value, "Cyclic");
|
|
3338
3338
|
}
|
|
3339
3339
|
|
|
3340
|
-
//
|
|
3340
|
+
// node_modules/typebox/build/type/types/unsafe.mjs
|
|
3341
3341
|
function Unsafe(schema) {
|
|
3342
3342
|
return memory_exports.Update(schema, { ["~unsafe"]: null }, {});
|
|
3343
3343
|
}
|
|
@@ -3345,7 +3345,7 @@ function IsUnsafe(value) {
|
|
|
3345
3345
|
return guard_exports.IsObjectNotArray(value) && guard_exports.HasPropertyKey(value, "~unsafe") && guard_exports.IsNull(value["~unsafe"]);
|
|
3346
3346
|
}
|
|
3347
3347
|
|
|
3348
|
-
//
|
|
3348
|
+
// node_modules/typebox/build/type/types/infer.mjs
|
|
3349
3349
|
function Infer(...args) {
|
|
3350
3350
|
const [name, extends_] = arguments_exports.Match(args, {
|
|
3351
3351
|
2: (name2, extends_2) => [name2, extends_2, extends_2],
|
|
@@ -3357,7 +3357,7 @@ function IsInfer(value) {
|
|
|
3357
3357
|
return IsKind(value, "Infer");
|
|
3358
3358
|
}
|
|
3359
3359
|
|
|
3360
|
-
//
|
|
3360
|
+
// node_modules/typebox/build/type/types/dependent.mjs
|
|
3361
3361
|
function Dependent(if_, then_, else_, options = {}) {
|
|
3362
3362
|
return memory_exports.Create({ "~kind": "Dependent" }, { if: if_, then: then_, else: else_ }, options);
|
|
3363
3363
|
}
|
|
@@ -3368,7 +3368,7 @@ function DependentOptions(type) {
|
|
|
3368
3368
|
return memory_exports.Discard(type, ["~kind", "if", "then", "else"]);
|
|
3369
3369
|
}
|
|
3370
3370
|
|
|
3371
|
-
//
|
|
3371
|
+
// node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs
|
|
3372
3372
|
function IsTypeScriptEnumLike(value) {
|
|
3373
3373
|
return guard_exports.IsObjectNotArray(value);
|
|
3374
3374
|
}
|
|
@@ -3377,7 +3377,7 @@ function TypeScriptEnumToEnumValues(type) {
|
|
|
3377
3377
|
return keys.reduce((result, key) => [...result, type[key]], []);
|
|
3378
3378
|
}
|
|
3379
3379
|
|
|
3380
|
-
//
|
|
3380
|
+
// node_modules/typebox/build/type/types/enum.mjs
|
|
3381
3381
|
function IsEnumValue(value) {
|
|
3382
3382
|
return guard_exports.IsString(value) || guard_exports.IsNumber(value);
|
|
3383
3383
|
}
|
|
@@ -3389,7 +3389,7 @@ function IsEnum2(value) {
|
|
|
3389
3389
|
return IsKind(value, "Enum");
|
|
3390
3390
|
}
|
|
3391
3391
|
|
|
3392
|
-
//
|
|
3392
|
+
// node_modules/typebox/build/type/types/intersect.mjs
|
|
3393
3393
|
function Intersect(types, options = {}) {
|
|
3394
3394
|
return memory_exports.Create({ "~kind": "Intersect" }, { allOf: types }, options);
|
|
3395
3395
|
}
|
|
@@ -3400,7 +3400,7 @@ function IntersectOptions(type) {
|
|
|
3400
3400
|
return memory_exports.Discard(type, ["~kind", "allOf"]);
|
|
3401
3401
|
}
|
|
3402
3402
|
|
|
3403
|
-
//
|
|
3403
|
+
// node_modules/typebox/build/type/types/_codec.mjs
|
|
3404
3404
|
var EncodeBuilder = class {
|
|
3405
3405
|
constructor(type, decode2) {
|
|
3406
3406
|
this.type = type;
|
|
@@ -3439,7 +3439,7 @@ function IsCodec(value) {
|
|
|
3439
3439
|
return IsSchema2(value) && guard_exports.HasPropertyKey(value, "~codec") && guard_exports.IsObject(value["~codec"]) && guard_exports.HasPropertyKey(value["~codec"], "encode") && guard_exports.HasPropertyKey(value["~codec"], "decode");
|
|
3440
3440
|
}
|
|
3441
3441
|
|
|
3442
|
-
//
|
|
3442
|
+
// node_modules/typebox/build/type/types/_immutable.mjs
|
|
3443
3443
|
function Immutable(type) {
|
|
3444
3444
|
return AddImmutable(type);
|
|
3445
3445
|
}
|
|
@@ -3447,7 +3447,7 @@ function IsImmutable(value) {
|
|
|
3447
3447
|
return IsSchema2(value) && guard_exports.HasPropertyKey(value, "~immutable");
|
|
3448
3448
|
}
|
|
3449
3449
|
|
|
3450
|
-
//
|
|
3450
|
+
// node_modules/typebox/build/type/action/_add_readonly.mjs
|
|
3451
3451
|
function AddReadonlyDeferred(type, options = {}) {
|
|
3452
3452
|
return Deferred("AddReadonly", [type], options);
|
|
3453
3453
|
}
|
|
@@ -3455,7 +3455,7 @@ function AddReadonly(type, options = {}) {
|
|
|
3455
3455
|
return AddReadonlyAction(type, options);
|
|
3456
3456
|
}
|
|
3457
3457
|
|
|
3458
|
-
//
|
|
3458
|
+
// node_modules/typebox/build/type/types/_readonly.mjs
|
|
3459
3459
|
function Readonly(type) {
|
|
3460
3460
|
return AddReadonly(type);
|
|
3461
3461
|
}
|
|
@@ -3463,7 +3463,7 @@ function IsReadonly(value) {
|
|
|
3463
3463
|
return IsSchema2(value) && guard_exports.HasPropertyKey(value, "~readonly");
|
|
3464
3464
|
}
|
|
3465
3465
|
|
|
3466
|
-
//
|
|
3466
|
+
// node_modules/typebox/build/type/types/_refine.mjs
|
|
3467
3467
|
function RefineAdd(type, refinement) {
|
|
3468
3468
|
const refinements = IsRefine2(type) ? [...type["~refine"], refinement] : [refinement];
|
|
3469
3469
|
return memory_exports.Update(type, { "~refine": refinements }, {});
|
|
@@ -3482,7 +3482,7 @@ function IsRefine2(value) {
|
|
|
3482
3482
|
return IsSchema2(value) && guard_exports.HasPropertyKey(value, "~refine") && guard_exports.IsArray(value["~refine"]) && guard_exports.Every(value["~refine"], 0, (value2) => IsRefinement(value2));
|
|
3483
3483
|
}
|
|
3484
3484
|
|
|
3485
|
-
//
|
|
3485
|
+
// node_modules/typebox/build/type/types/bigint.mjs
|
|
3486
3486
|
var BigIntPattern = "-?(?:0|[1-9][0-9]*)n";
|
|
3487
3487
|
function BigInt2(options) {
|
|
3488
3488
|
return memory_exports.Create({ "~kind": "BigInt" }, { type: "bigint" }, options);
|
|
@@ -3491,7 +3491,7 @@ function IsBigInt2(value) {
|
|
|
3491
3491
|
return IsKind(value, "BigInt");
|
|
3492
3492
|
}
|
|
3493
3493
|
|
|
3494
|
-
//
|
|
3494
|
+
// node_modules/typebox/build/type/types/boolean.mjs
|
|
3495
3495
|
function Boolean2(options) {
|
|
3496
3496
|
return memory_exports.Create({ "~kind": "Boolean" }, { type: "boolean" }, options);
|
|
3497
3497
|
}
|
|
@@ -3499,7 +3499,7 @@ function IsBoolean3(value) {
|
|
|
3499
3499
|
return IsKind(value, "Boolean");
|
|
3500
3500
|
}
|
|
3501
3501
|
|
|
3502
|
-
//
|
|
3502
|
+
// node_modules/typebox/build/type/types/identifier.mjs
|
|
3503
3503
|
function Identifier(name) {
|
|
3504
3504
|
return memory_exports.Create({ "~kind": "Identifier" }, { name });
|
|
3505
3505
|
}
|
|
@@ -3507,7 +3507,7 @@ function IsIdentifier(value) {
|
|
|
3507
3507
|
return IsKind(value, "Identifier");
|
|
3508
3508
|
}
|
|
3509
3509
|
|
|
3510
|
-
//
|
|
3510
|
+
// node_modules/typebox/build/type/types/integer.mjs
|
|
3511
3511
|
var IntegerPattern = "-?(?:0|[1-9][0-9]*)";
|
|
3512
3512
|
function Integer(options) {
|
|
3513
3513
|
return memory_exports.Create({ "~kind": "Integer" }, { type: "integer" }, options);
|
|
@@ -3516,7 +3516,7 @@ function IsInteger2(value) {
|
|
|
3516
3516
|
return IsKind(value, "Integer");
|
|
3517
3517
|
}
|
|
3518
3518
|
|
|
3519
|
-
//
|
|
3519
|
+
// node_modules/typebox/build/type/types/literal.mjs
|
|
3520
3520
|
var InvalidLiteralValue = class extends Error {
|
|
3521
3521
|
constructor(value) {
|
|
3522
3522
|
super(`Invalid Literal value`);
|
|
@@ -3555,7 +3555,7 @@ function IsLiteral(value) {
|
|
|
3555
3555
|
return IsKind(value, "Literal");
|
|
3556
3556
|
}
|
|
3557
3557
|
|
|
3558
|
-
//
|
|
3558
|
+
// node_modules/typebox/build/type/types/null.mjs
|
|
3559
3559
|
function Null(options) {
|
|
3560
3560
|
return memory_exports.Create({ "~kind": "Null" }, { type: "null" }, options);
|
|
3561
3561
|
}
|
|
@@ -3563,7 +3563,7 @@ function IsNull2(value) {
|
|
|
3563
3563
|
return IsKind(value, "Null");
|
|
3564
3564
|
}
|
|
3565
3565
|
|
|
3566
|
-
//
|
|
3566
|
+
// node_modules/typebox/build/type/types/number.mjs
|
|
3567
3567
|
var NumberPattern = "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?";
|
|
3568
3568
|
function Number2(options) {
|
|
3569
3569
|
return memory_exports.Create({ "~kind": "Number" }, { type: "number" }, options);
|
|
@@ -3572,7 +3572,7 @@ function IsNumber3(value) {
|
|
|
3572
3572
|
return IsKind(value, "Number");
|
|
3573
3573
|
}
|
|
3574
3574
|
|
|
3575
|
-
//
|
|
3575
|
+
// node_modules/typebox/build/type/types/symbol.mjs
|
|
3576
3576
|
function Symbol2(options) {
|
|
3577
3577
|
return memory_exports.Create({ "~kind": "Symbol" }, { type: "symbol" }, options);
|
|
3578
3578
|
}
|
|
@@ -3580,7 +3580,7 @@ function IsSymbol2(value) {
|
|
|
3580
3580
|
return IsKind(value, "Symbol");
|
|
3581
3581
|
}
|
|
3582
3582
|
|
|
3583
|
-
//
|
|
3583
|
+
// node_modules/typebox/build/type/types/parameter.mjs
|
|
3584
3584
|
function Parameter(...args) {
|
|
3585
3585
|
const [name, extends_, equals] = arguments_exports.Match(args, {
|
|
3586
3586
|
3: (name2, extends_2, equals2) => [name2, extends_2, equals2],
|
|
@@ -3593,7 +3593,7 @@ function IsParameter(value) {
|
|
|
3593
3593
|
return IsKind(value, "Parameter");
|
|
3594
3594
|
}
|
|
3595
3595
|
|
|
3596
|
-
//
|
|
3596
|
+
// node_modules/typebox/build/type/types/string.mjs
|
|
3597
3597
|
var StringPattern = ".*";
|
|
3598
3598
|
function String2(options) {
|
|
3599
3599
|
return memory_exports.Create({ "~kind": "String" }, { type: "string" }, options);
|
|
@@ -3602,7 +3602,7 @@ function IsString3(value) {
|
|
|
3602
3602
|
return IsKind(value, "String");
|
|
3603
3603
|
}
|
|
3604
3604
|
|
|
3605
|
-
//
|
|
3605
|
+
// node_modules/typebox/build/type/types/union.mjs
|
|
3606
3606
|
function Union(anyOf, options = {}) {
|
|
3607
3607
|
return memory_exports.Create({ "~kind": "Union" }, { anyOf }, options);
|
|
3608
3608
|
}
|
|
@@ -3613,14 +3613,14 @@ function UnionOptions(type) {
|
|
|
3613
3613
|
return memory_exports.Discard(type, ["~kind", "anyOf"]);
|
|
3614
3614
|
}
|
|
3615
3615
|
|
|
3616
|
-
//
|
|
3616
|
+
// node_modules/typebox/build/type/engine/patterns/pattern.mjs
|
|
3617
3617
|
function ParsePatternIntoTypes(pattern) {
|
|
3618
3618
|
const parsed = Pattern(pattern);
|
|
3619
3619
|
const result = guard_exports.IsEqual(parsed.length, 2) ? parsed[0] : [];
|
|
3620
3620
|
return result;
|
|
3621
3621
|
}
|
|
3622
3622
|
|
|
3623
|
-
//
|
|
3623
|
+
// node_modules/typebox/build/type/engine/template_literal/is_finite.mjs
|
|
3624
3624
|
function FromLiteral(_value) {
|
|
3625
3625
|
return true;
|
|
3626
3626
|
}
|
|
@@ -3639,12 +3639,12 @@ function IsTemplateLiteralFinite(types) {
|
|
|
3639
3639
|
return result;
|
|
3640
3640
|
}
|
|
3641
3641
|
|
|
3642
|
-
//
|
|
3642
|
+
// node_modules/typebox/build/type/engine/template_literal/create.mjs
|
|
3643
3643
|
function TemplateLiteralCreate(pattern) {
|
|
3644
3644
|
return memory_exports.Create({ ["~kind"]: "TemplateLiteral" }, { type: "string", pattern }, {});
|
|
3645
3645
|
}
|
|
3646
3646
|
|
|
3647
|
-
//
|
|
3647
|
+
// node_modules/typebox/build/type/engine/template_literal/decode.mjs
|
|
3648
3648
|
function FromLiteralPush(variants, value, result = []) {
|
|
3649
3649
|
return guard_exports.ShiftLeft(variants, (left, right) => FromLiteralPush(right, value, [...result, `${left}${value}`]), () => result);
|
|
3650
3650
|
}
|
|
@@ -3687,24 +3687,24 @@ function TemplateLiteralDecode(pattern) {
|
|
|
3687
3687
|
return result;
|
|
3688
3688
|
}
|
|
3689
3689
|
|
|
3690
|
-
//
|
|
3690
|
+
// node_modules/typebox/build/type/engine/record/record_create.mjs
|
|
3691
3691
|
function CreateRecord(key, value) {
|
|
3692
3692
|
const type = "object";
|
|
3693
3693
|
const patternProperties = { [key]: value };
|
|
3694
3694
|
return memory_exports.Create({ ["~kind"]: "Record" }, { type, patternProperties });
|
|
3695
3695
|
}
|
|
3696
3696
|
|
|
3697
|
-
//
|
|
3697
|
+
// node_modules/typebox/build/type/engine/record/from_key_any.mjs
|
|
3698
3698
|
function FromAnyKey(value) {
|
|
3699
3699
|
return CreateRecord(StringKey, value);
|
|
3700
3700
|
}
|
|
3701
3701
|
|
|
3702
|
-
//
|
|
3702
|
+
// node_modules/typebox/build/type/engine/record/from_key_boolean.mjs
|
|
3703
3703
|
function FromBooleanKey(value) {
|
|
3704
3704
|
return _Object_({ true: value, false: value });
|
|
3705
3705
|
}
|
|
3706
3706
|
|
|
3707
|
-
//
|
|
3707
|
+
// node_modules/typebox/build/type/types/tuple.mjs
|
|
3708
3708
|
function Tuple(types, options = {}) {
|
|
3709
3709
|
const [items, minItems, additionalItems] = [types, types.length, false];
|
|
3710
3710
|
return memory_exports.Create({ ["~kind"]: "Tuple" }, { type: "array", additionalItems, items, minItems }, options);
|
|
@@ -3716,7 +3716,7 @@ function TupleOptions(type) {
|
|
|
3716
3716
|
return memory_exports.Discard(type, ["~kind", "type", "items", "minItems", "additionalItems"]);
|
|
3717
3717
|
}
|
|
3718
3718
|
|
|
3719
|
-
//
|
|
3719
|
+
// node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs
|
|
3720
3720
|
function RemoveReadonlyOperation(type) {
|
|
3721
3721
|
return memory_exports.Discard(type, ["~readonly"]);
|
|
3722
3722
|
}
|
|
@@ -3729,7 +3729,7 @@ function RemoveReadonlyInstantiate(context2, state, type, options) {
|
|
|
3729
3729
|
return RemoveReadonlyAction(instantiatedType, options);
|
|
3730
3730
|
}
|
|
3731
3731
|
|
|
3732
|
-
//
|
|
3732
|
+
// node_modules/typebox/build/type/action/_remove_readonly.mjs
|
|
3733
3733
|
function RemoveReadonlyDeferred(type, options = {}) {
|
|
3734
3734
|
return Deferred("RemoveReadonly", [type], options);
|
|
3735
3735
|
}
|
|
@@ -3737,7 +3737,7 @@ function RemoveReadonly(type, options = {}) {
|
|
|
3737
3737
|
return RemoveReadonlyAction(type, options);
|
|
3738
3738
|
}
|
|
3739
3739
|
|
|
3740
|
-
//
|
|
3740
|
+
// node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs
|
|
3741
3741
|
function RemoveOptionalOperation(type) {
|
|
3742
3742
|
return memory_exports.Discard(type, ["~optional"]);
|
|
3743
3743
|
}
|
|
@@ -3750,7 +3750,7 @@ function RemoveOptionalInstantiate(context2, state, type, options) {
|
|
|
3750
3750
|
return RemoveOptionalAction(instantiatedType, options);
|
|
3751
3751
|
}
|
|
3752
3752
|
|
|
3753
|
-
//
|
|
3753
|
+
// node_modules/typebox/build/type/action/_remove_optional.mjs
|
|
3754
3754
|
function RemoveOptionalDeferred(type, options = {}) {
|
|
3755
3755
|
return Deferred("RemoveOptional", [type], options);
|
|
3756
3756
|
}
|
|
@@ -3758,7 +3758,7 @@ function RemoveOptional(type, options = {}) {
|
|
|
3758
3758
|
return RemoveOptionalAction(type, options);
|
|
3759
3759
|
}
|
|
3760
3760
|
|
|
3761
|
-
//
|
|
3761
|
+
// node_modules/typebox/build/type/engine/tuple/to_object.mjs
|
|
3762
3762
|
function TupleElementsToProperties(types) {
|
|
3763
3763
|
const result = types.reduceRight((result2, right, index) => {
|
|
3764
3764
|
return { [index]: right, ...result2 };
|
|
@@ -3771,7 +3771,7 @@ function TupleToObject(type) {
|
|
|
3771
3771
|
return result;
|
|
3772
3772
|
}
|
|
3773
3773
|
|
|
3774
|
-
//
|
|
3774
|
+
// node_modules/typebox/build/type/engine/evaluate/composite.mjs
|
|
3775
3775
|
function CanComposite(type) {
|
|
3776
3776
|
return IsObject2(type) || IsTuple(type);
|
|
3777
3777
|
}
|
|
@@ -3810,7 +3810,7 @@ function Composite(left, right) {
|
|
|
3810
3810
|
return result;
|
|
3811
3811
|
}
|
|
3812
3812
|
|
|
3813
|
-
//
|
|
3813
|
+
// node_modules/typebox/build/type/engine/evaluate/narrow.mjs
|
|
3814
3814
|
function NarrowCompareRule(left, right) {
|
|
3815
3815
|
const result = Compare(left, right);
|
|
3816
3816
|
return guard_exports.IsEqual(result, CompareResultLeftInside) ? left : guard_exports.IsEqual(result, CompareResultRightInside) ? right : guard_exports.IsEqual(result, CompareResultEqual) ? right : Never();
|
|
@@ -3824,7 +3824,7 @@ function Narrow(left, right) {
|
|
|
3824
3824
|
return IsNever(left) ? left : IsAny(left) ? left : IsUnknown(left) ? right : IsNever(right) ? right : IsAny(right) ? right : IsUnknown(right) ? left : NarrowCompositeRule(left, right);
|
|
3825
3825
|
}
|
|
3826
3826
|
|
|
3827
|
-
//
|
|
3827
|
+
// node_modules/typebox/build/type/engine/evaluate/distribute.mjs
|
|
3828
3828
|
function ShouldEvaluate(left, right) {
|
|
3829
3829
|
const result = IsUnion(left) || IsUnion(right);
|
|
3830
3830
|
return result;
|
|
@@ -3846,7 +3846,7 @@ function Distribute(types, result = []) {
|
|
|
3846
3846
|
return guard_exports.ShiftLeft(types, (left, right) => IsUnion(left) ? Distribute(right, DistributeUnion(left.anyOf, result)) : Distribute(right, DistributeType(left, result)), () => result);
|
|
3847
3847
|
}
|
|
3848
3848
|
|
|
3849
|
-
//
|
|
3849
|
+
// node_modules/typebox/build/type/engine/exclude/operation.mjs
|
|
3850
3850
|
function ExcludeType(left, right) {
|
|
3851
3851
|
const check = Extends({}, left, right);
|
|
3852
3852
|
const result = result_exports.IsExtendsTrueLike(check) ? [] : [left];
|
|
@@ -3863,7 +3863,7 @@ function ExcludeOperation(left, right) {
|
|
|
3863
3863
|
return result;
|
|
3864
3864
|
}
|
|
3865
3865
|
|
|
3866
|
-
//
|
|
3866
|
+
// node_modules/typebox/build/type/engine/evaluate/evaluate.mjs
|
|
3867
3867
|
function EvaluateDependent(if_, then_, else_) {
|
|
3868
3868
|
const intersected = EvaluateIntersect([if_, then_]);
|
|
3869
3869
|
const excluded = ExcludeOperation(else_, if_);
|
|
@@ -3898,43 +3898,43 @@ function EvaluateUnionFast(types) {
|
|
|
3898
3898
|
return result;
|
|
3899
3899
|
}
|
|
3900
3900
|
|
|
3901
|
-
//
|
|
3901
|
+
// node_modules/typebox/build/type/engine/record/from_key_enum.mjs
|
|
3902
3902
|
function FromEnumKey(values, value) {
|
|
3903
3903
|
const unionKey = EvaluateEnum(values);
|
|
3904
3904
|
const result = FromKey(unionKey, value);
|
|
3905
3905
|
return result;
|
|
3906
3906
|
}
|
|
3907
3907
|
|
|
3908
|
-
//
|
|
3908
|
+
// node_modules/typebox/build/type/engine/record/from_key_integer.mjs
|
|
3909
3909
|
function FromIntegerKey(_key, value) {
|
|
3910
3910
|
const result = CreateRecord(IntegerKey, value);
|
|
3911
3911
|
return result;
|
|
3912
3912
|
}
|
|
3913
3913
|
|
|
3914
|
-
//
|
|
3914
|
+
// node_modules/typebox/build/type/engine/record/from_key_intersect.mjs
|
|
3915
3915
|
function FromIntersectKey(types, value) {
|
|
3916
3916
|
const evaluatedKey = EvaluateIntersect(types);
|
|
3917
3917
|
const result = FromKey(evaluatedKey, value);
|
|
3918
3918
|
return result;
|
|
3919
3919
|
}
|
|
3920
3920
|
|
|
3921
|
-
//
|
|
3921
|
+
// node_modules/typebox/build/type/engine/record/from_key_literal.mjs
|
|
3922
3922
|
function FromLiteralKey(key, value) {
|
|
3923
3923
|
return guard_exports.IsString(key) || guard_exports.IsNumber(key) ? _Object_({ [key]: value }) : guard_exports.IsEqual(key, false) ? _Object_({ false: value }) : guard_exports.IsEqual(key, true) ? _Object_({ true: value }) : _Object_({});
|
|
3924
3924
|
}
|
|
3925
3925
|
|
|
3926
|
-
//
|
|
3926
|
+
// node_modules/typebox/build/type/engine/record/from_key_number.mjs
|
|
3927
3927
|
function FromNumberKey(_key, value) {
|
|
3928
3928
|
const result = CreateRecord(NumberKey, value);
|
|
3929
3929
|
return result;
|
|
3930
3930
|
}
|
|
3931
3931
|
|
|
3932
|
-
//
|
|
3932
|
+
// node_modules/typebox/build/type/engine/record/from_key_string.mjs
|
|
3933
3933
|
function FromStringKey(key, value) {
|
|
3934
3934
|
return guard_exports.HasPropertyKey(key, "pattern") && (guard_exports.IsString(key.pattern) || key.pattern instanceof RegExp) ? CreateRecord(key.pattern.toString(), value) : CreateRecord(StringKey, value);
|
|
3935
3935
|
}
|
|
3936
3936
|
|
|
3937
|
-
//
|
|
3937
|
+
// node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs
|
|
3938
3938
|
function FromTemplateKey(pattern, value) {
|
|
3939
3939
|
const types = ParsePatternIntoTypes(pattern);
|
|
3940
3940
|
const finite = IsTemplateLiteralFinite(types);
|
|
@@ -3942,7 +3942,7 @@ function FromTemplateKey(pattern, value) {
|
|
|
3942
3942
|
return result;
|
|
3943
3943
|
}
|
|
3944
3944
|
|
|
3945
|
-
//
|
|
3945
|
+
// node_modules/typebox/build/type/engine/evaluate/flatten.mjs
|
|
3946
3946
|
function FlattenType(type) {
|
|
3947
3947
|
const result = IsUnion(type) ? Flatten(type.anyOf) : [type];
|
|
3948
3948
|
return result;
|
|
@@ -3951,7 +3951,7 @@ function Flatten(types, result = []) {
|
|
|
3951
3951
|
return guard_exports.ShiftLeft(types, (left, right) => Flatten(right, [...result, ...FlattenType(left)]), () => result);
|
|
3952
3952
|
}
|
|
3953
3953
|
|
|
3954
|
-
//
|
|
3954
|
+
// node_modules/typebox/build/type/engine/record/from_key_union.mjs
|
|
3955
3955
|
function StringOrNumberCheck(types) {
|
|
3956
3956
|
return types.some((type) => IsString3(type) || IsNumber3(type) || IsInteger2(type));
|
|
3957
3957
|
}
|
|
@@ -3974,13 +3974,13 @@ function FromUnionKey(types, value) {
|
|
|
3974
3974
|
return IsSchema2(record) ? record : CreateObject(flattened, value);
|
|
3975
3975
|
}
|
|
3976
3976
|
|
|
3977
|
-
//
|
|
3977
|
+
// node_modules/typebox/build/type/engine/record/from_key.mjs
|
|
3978
3978
|
function FromKey(key, value) {
|
|
3979
3979
|
const result = IsAny(key) ? FromAnyKey(value) : IsBoolean3(key) ? FromBooleanKey(value) : IsEnum2(key) ? FromEnumKey(key.enum, value) : IsInteger2(key) ? FromIntegerKey(key, value) : IsIntersect(key) ? FromIntersectKey(key.allOf, value) : IsLiteral(key) ? FromLiteralKey(key.const, value) : IsNumber3(key) ? FromNumberKey(key, value) : IsUnion(key) ? FromUnionKey(key.anyOf, value) : IsString3(key) ? FromStringKey(key, value) : IsTemplateLiteral(key) ? FromTemplateKey(key.pattern, value) : _Object_({});
|
|
3980
3980
|
return result;
|
|
3981
3981
|
}
|
|
3982
3982
|
|
|
3983
|
-
//
|
|
3983
|
+
// node_modules/typebox/build/type/engine/record/instantiate.mjs
|
|
3984
3984
|
function RecordAction(key, value, options) {
|
|
3985
3985
|
const result = CanInstantiate([key]) ? memory_exports.Update(FromKey(key, value), {}, options) : RecordDeferred(key, value, options);
|
|
3986
3986
|
return result;
|
|
@@ -3991,7 +3991,7 @@ function RecordInstantiate(context2, state, key, value, options) {
|
|
|
3991
3991
|
return RecordAction(instantiatedKey, instantiatedValue, options);
|
|
3992
3992
|
}
|
|
3993
3993
|
|
|
3994
|
-
//
|
|
3994
|
+
// node_modules/typebox/build/type/types/record.mjs
|
|
3995
3995
|
var IntegerKey = `^${IntegerPattern}$`;
|
|
3996
3996
|
var NumberKey = `^${NumberPattern}$`;
|
|
3997
3997
|
var StringKey = `^${StringPattern}$`;
|
|
@@ -4023,7 +4023,7 @@ function IsRecord(value) {
|
|
|
4023
4023
|
return IsKind(value, "Record");
|
|
4024
4024
|
}
|
|
4025
4025
|
|
|
4026
|
-
//
|
|
4026
|
+
// node_modules/typebox/build/type/types/rest.mjs
|
|
4027
4027
|
function Rest(type) {
|
|
4028
4028
|
return memory_exports.Create({ "~kind": "Rest" }, { type: "rest", items: type }, {});
|
|
4029
4029
|
}
|
|
@@ -4031,7 +4031,7 @@ function IsRest(value) {
|
|
|
4031
4031
|
return IsKind(value, "Rest");
|
|
4032
4032
|
}
|
|
4033
4033
|
|
|
4034
|
-
//
|
|
4034
|
+
// node_modules/typebox/build/type/types/this.mjs
|
|
4035
4035
|
function This(options) {
|
|
4036
4036
|
return memory_exports.Create({ ["~kind"]: "This" }, { $ref: "#" }, options);
|
|
4037
4037
|
}
|
|
@@ -4039,7 +4039,7 @@ function IsThis(value) {
|
|
|
4039
4039
|
return IsKind(value, "This");
|
|
4040
4040
|
}
|
|
4041
4041
|
|
|
4042
|
-
//
|
|
4042
|
+
// node_modules/typebox/build/type/types/undefined.mjs
|
|
4043
4043
|
function Undefined(options) {
|
|
4044
4044
|
return memory_exports.Create({ "~kind": "Undefined" }, { type: "undefined" }, options);
|
|
4045
4045
|
}
|
|
@@ -4047,7 +4047,7 @@ function IsUndefined2(value) {
|
|
|
4047
4047
|
return IsKind(value, "Undefined");
|
|
4048
4048
|
}
|
|
4049
4049
|
|
|
4050
|
-
//
|
|
4050
|
+
// node_modules/typebox/build/type/types/void.mjs
|
|
4051
4051
|
function Void(options) {
|
|
4052
4052
|
return memory_exports.Create({ "~kind": "Void" }, { type: "void" }, options);
|
|
4053
4053
|
}
|
|
@@ -4055,7 +4055,7 @@ function IsVoid(value) {
|
|
|
4055
4055
|
return IsKind(value, "Void");
|
|
4056
4056
|
}
|
|
4057
4057
|
|
|
4058
|
-
//
|
|
4058
|
+
// node_modules/typebox/build/type/script/mapping.mjs
|
|
4059
4059
|
function IntrinsicOrCall(ref, parameters) {
|
|
4060
4060
|
return guard_exports.IsEqual(ref, "Array") ? _Array_(parameters[0]) : guard_exports.IsEqual(ref, "Capitalize") ? CapitalizeDeferred(parameters[0]) : guard_exports.IsEqual(ref, "ConstructorParameters") ? ConstructorParametersDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Evaluate") ? EvaluateDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Exclude") ? ExcludeDeferred(parameters[0], parameters[1]) : guard_exports.IsEqual(ref, "Extract") ? ExtractDeferred(parameters[0], parameters[1]) : guard_exports.IsEqual(ref, "Index") ? IndexDeferred(parameters[0], parameters[1]) : guard_exports.IsEqual(ref, "InstanceType") ? InstanceTypeDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Lowercase") ? LowercaseDeferred(parameters[0]) : guard_exports.IsEqual(ref, "NonNullable") ? NonNullableDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Omit") ? OmitDeferred(parameters[0], parameters[1]) : guard_exports.IsEqual(ref, "Parameters") ? ParametersDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Partial") ? PartialDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Pick") ? PickDeferred(parameters[0], parameters[1]) : guard_exports.IsEqual(ref, "Readonly") ? ReadonlyObjectDeferred(parameters[0]) : guard_exports.IsEqual(ref, "KeyOf") ? KeyOfDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Record") ? RecordDeferred(parameters[0], parameters[1]) : guard_exports.IsEqual(ref, "Required") ? RequiredDeferred(parameters[0]) : guard_exports.IsEqual(ref, "ReturnType") ? ReturnTypeDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Uncapitalize") ? UncapitalizeDeferred(parameters[0]) : guard_exports.IsEqual(ref, "Uppercase") ? UppercaseDeferred(parameters[0]) : CallConstruct(Ref2(ref), parameters);
|
|
4061
4061
|
}
|
|
@@ -4483,7 +4483,7 @@ function ScriptMapping(input) {
|
|
|
4483
4483
|
return input;
|
|
4484
4484
|
}
|
|
4485
4485
|
|
|
4486
|
-
//
|
|
4486
|
+
// node_modules/typebox/build/type/script/token/internal/match.mjs
|
|
4487
4487
|
function IsMatch(value) {
|
|
4488
4488
|
return IsEqual(value.length, 2);
|
|
4489
4489
|
}
|
|
@@ -4491,7 +4491,7 @@ function Match3(input, ok, fail) {
|
|
|
4491
4491
|
return IsMatch(input) ? ok(input[0], input[1]) : fail();
|
|
4492
4492
|
}
|
|
4493
4493
|
|
|
4494
|
-
//
|
|
4494
|
+
// node_modules/typebox/build/type/script/token/internal/take.mjs
|
|
4495
4495
|
function TakeVariant(variant, input) {
|
|
4496
4496
|
return IsEqual(input.indexOf(variant), 0) ? [variant, input.slice(variant.length)] : [];
|
|
4497
4497
|
}
|
|
@@ -4504,7 +4504,7 @@ function Take(variants, input) {
|
|
|
4504
4504
|
return [];
|
|
4505
4505
|
}
|
|
4506
4506
|
|
|
4507
|
-
//
|
|
4507
|
+
// node_modules/typebox/build/type/script/token/internal/char.mjs
|
|
4508
4508
|
function Range(start, end) {
|
|
4509
4509
|
return Array.from({ length: end - start + 1 }, (_, i) => String.fromCharCode(start + i));
|
|
4510
4510
|
}
|
|
@@ -4524,7 +4524,7 @@ var Dot = ".";
|
|
|
4524
4524
|
var DollarSign = "$";
|
|
4525
4525
|
var Hyphen = "-";
|
|
4526
4526
|
|
|
4527
|
-
//
|
|
4527
|
+
// node_modules/typebox/build/type/script/token/internal/trim.mjs
|
|
4528
4528
|
var LineComment = "//";
|
|
4529
4529
|
var OpenComment = "/*";
|
|
4530
4530
|
var CloseComment = "*/";
|
|
@@ -4550,12 +4550,12 @@ function Trim(input) {
|
|
|
4550
4550
|
return trimmed.startsWith(OpenComment) ? Trim(DiscardMultilineComment(trimmed.slice(2))) : trimmed.startsWith(LineComment) ? Trim(DiscardLineComment(trimmed.slice(2))) : trimmed;
|
|
4551
4551
|
}
|
|
4552
4552
|
|
|
4553
|
-
//
|
|
4553
|
+
// node_modules/typebox/build/type/script/token/internal/optional.mjs
|
|
4554
4554
|
function Optional2(value, input) {
|
|
4555
4555
|
return Match3(Take([value], input), (Optional4, Rest2) => [Optional4, Rest2], () => ["", input]);
|
|
4556
4556
|
}
|
|
4557
4557
|
|
|
4558
|
-
//
|
|
4558
|
+
// node_modules/typebox/build/type/script/token/internal/many.mjs
|
|
4559
4559
|
function IsDiscard(discard, input) {
|
|
4560
4560
|
return discard.includes(input);
|
|
4561
4561
|
}
|
|
@@ -4563,7 +4563,7 @@ function Many(allowed, discard, input, result = "") {
|
|
|
4563
4563
|
return Match3(Take(allowed, input), (Char, Rest2) => IsDiscard(discard, Char) ? Many(allowed, discard, Rest2, result) : Many(allowed, discard, Rest2, `${result}${Char}`), () => [result, input]);
|
|
4564
4564
|
}
|
|
4565
4565
|
|
|
4566
|
-
//
|
|
4566
|
+
// node_modules/typebox/build/type/script/token/unsigned_integer.mjs
|
|
4567
4567
|
function TakeNonZero(input) {
|
|
4568
4568
|
return Take(NonZero, input);
|
|
4569
4569
|
}
|
|
@@ -4583,7 +4583,7 @@ function UnsignedInteger(input) {
|
|
|
4583
4583
|
return TakeUnsignedInteger(Trim(input));
|
|
4584
4584
|
}
|
|
4585
4585
|
|
|
4586
|
-
//
|
|
4586
|
+
// node_modules/typebox/build/type/script/token/integer.mjs
|
|
4587
4587
|
function TakeSign(input) {
|
|
4588
4588
|
return Optional2(Hyphen, input);
|
|
4589
4589
|
}
|
|
@@ -4599,7 +4599,7 @@ function Integer2(input) {
|
|
|
4599
4599
|
return TakeSignedInteger(Trim(input));
|
|
4600
4600
|
}
|
|
4601
4601
|
|
|
4602
|
-
//
|
|
4602
|
+
// node_modules/typebox/build/type/script/token/bigint.mjs
|
|
4603
4603
|
function TakeBigInt(input) {
|
|
4604
4604
|
return Match3(
|
|
4605
4605
|
Integer2(input),
|
|
@@ -4612,7 +4612,7 @@ function BigInt3(input) {
|
|
|
4612
4612
|
return TakeBigInt(input);
|
|
4613
4613
|
}
|
|
4614
4614
|
|
|
4615
|
-
//
|
|
4615
|
+
// node_modules/typebox/build/type/script/token/const.mjs
|
|
4616
4616
|
function TakeConst(const_, input) {
|
|
4617
4617
|
return Take([const_], input);
|
|
4618
4618
|
}
|
|
@@ -4620,7 +4620,7 @@ function Const(const_, input) {
|
|
|
4620
4620
|
return IsEqual(const_, "") ? ["", input] : const_.startsWith(NewLine) ? TakeConst(const_, TrimWhitespace(input)) : const_.startsWith(WhiteSpace) ? TakeConst(const_, input) : TakeConst(const_, Trim(input));
|
|
4621
4621
|
}
|
|
4622
4622
|
|
|
4623
|
-
//
|
|
4623
|
+
// node_modules/typebox/build/type/script/token/ident.mjs
|
|
4624
4624
|
var Initial = [...Alpha, UnderScore, DollarSign];
|
|
4625
4625
|
function TakeInitial(input) {
|
|
4626
4626
|
return Take(Initial, input);
|
|
@@ -4641,7 +4641,7 @@ function Ident(input) {
|
|
|
4641
4641
|
return TakeIdent(Trim(input));
|
|
4642
4642
|
}
|
|
4643
4643
|
|
|
4644
|
-
//
|
|
4644
|
+
// node_modules/typebox/build/type/script/token/unsigned_number.mjs
|
|
4645
4645
|
var AllowedDigits2 = [...Digit, UnderScore];
|
|
4646
4646
|
function IsLeadingDot(input) {
|
|
4647
4647
|
return IsMatch(Take([Dot], input));
|
|
@@ -4677,7 +4677,7 @@ function UnsignedNumber(input) {
|
|
|
4677
4677
|
return TakeUnsignedNumber(Trim(input));
|
|
4678
4678
|
}
|
|
4679
4679
|
|
|
4680
|
-
//
|
|
4680
|
+
// node_modules/typebox/build/type/script/token/number.mjs
|
|
4681
4681
|
function TakeSign2(input) {
|
|
4682
4682
|
return Optional2(Hyphen, input);
|
|
4683
4683
|
}
|
|
@@ -4693,7 +4693,7 @@ function Number3(input) {
|
|
|
4693
4693
|
return TakeSignedNumber(Trim(input));
|
|
4694
4694
|
}
|
|
4695
4695
|
|
|
4696
|
-
//
|
|
4696
|
+
// node_modules/typebox/build/type/script/token/until.mjs
|
|
4697
4697
|
function TakeOne(input) {
|
|
4698
4698
|
const result = IsEqual(input, "") ? [] : [input.slice(0, 1), input.slice(1)];
|
|
4699
4699
|
return result;
|
|
@@ -4709,7 +4709,7 @@ function Until(end, input, result = "") {
|
|
|
4709
4709
|
);
|
|
4710
4710
|
}
|
|
4711
4711
|
|
|
4712
|
-
//
|
|
4712
|
+
// node_modules/typebox/build/type/script/token/span.mjs
|
|
4713
4713
|
function MultiLine(start, end, input) {
|
|
4714
4714
|
return Match3(
|
|
4715
4715
|
Take([start], input),
|
|
@@ -4740,7 +4740,7 @@ function Span(start, end, multiLine, input) {
|
|
|
4740
4740
|
return multiLine ? MultiLine(start, end, Trim(input)) : SingleLine(start, end, Trim(input));
|
|
4741
4741
|
}
|
|
4742
4742
|
|
|
4743
|
-
//
|
|
4743
|
+
// node_modules/typebox/build/type/script/token/string.mjs
|
|
4744
4744
|
function TakeInitial2(quotes, input) {
|
|
4745
4745
|
return Take(quotes, input);
|
|
4746
4746
|
}
|
|
@@ -4754,12 +4754,12 @@ function String3(quotes, input) {
|
|
|
4754
4754
|
return TakeString(quotes, Trim(input));
|
|
4755
4755
|
}
|
|
4756
4756
|
|
|
4757
|
-
//
|
|
4757
|
+
// node_modules/typebox/build/type/script/token/until_1.mjs
|
|
4758
4758
|
function Until_1(end, input) {
|
|
4759
4759
|
return Match3(Until(end, input), (Until2, UntilRest) => IsEqual(Until2, "") ? [] : [Until2, UntilRest], () => []);
|
|
4760
4760
|
}
|
|
4761
4761
|
|
|
4762
|
-
//
|
|
4762
|
+
// node_modules/typebox/build/type/script/parser.mjs
|
|
4763
4763
|
var If = (result, left, right = () => []) => result.length === 2 ? left(result) : right();
|
|
4764
4764
|
var GenericParameterExtendsEquals = (input) => If(If(Ident(input), ([_0, input2]) => If(Const("extends", input2), ([_1, input3]) => If(Type(input3), ([_2, input4]) => If(Const("=", input4), ([_3, input5]) => If(Type(input5), ([_4, input6]) => [[_0, _1, _2, _3, _4], input6]))))), ([_0, input2]) => [GenericParameterExtendsEqualsMapping(_0), input2]);
|
|
4765
4765
|
var GenericParameterExtends = (input) => If(If(Ident(input), ([_0, input2]) => If(Const("extends", input2), ([_1, input3]) => If(Type(input3), ([_2, input4]) => [[_0, _1, _2], input4]))), ([_0, input2]) => [GenericParameterExtendsMapping(_0), input2]);
|
|
@@ -4889,14 +4889,14 @@ var ModuleDeclaration = (input) => If(If(ExportKeyword(input), ([_0, input2]) =>
|
|
|
4889
4889
|
var Module = (input) => If(If(ModuleDeclaration(input), ([_0, input2]) => If(ModuleDeclarationList(input2), ([_1, input3]) => [[_0, _1], input3])), ([_0, input2]) => [ModuleMapping(_0), input2]);
|
|
4890
4890
|
var Script = (input) => If(If(Module(input), ([_0, input2]) => [_0, input2], () => If(GenericType(input), ([_0, input2]) => [_0, input2], () => If(Type(input), ([_0, input2]) => [_0, input2], () => []))), ([_0, input2]) => [ScriptMapping(_0), input2]);
|
|
4891
4891
|
|
|
4892
|
-
//
|
|
4892
|
+
// node_modules/typebox/build/type/engine/patterns/template.mjs
|
|
4893
4893
|
function ParseTemplateIntoTypes(template) {
|
|
4894
4894
|
const parsed = TemplateLiteralTypes(`\`${template}\``);
|
|
4895
4895
|
const result = guard_exports.IsEqual(parsed.length, 2) ? parsed[0] : Unreachable();
|
|
4896
4896
|
return result;
|
|
4897
4897
|
}
|
|
4898
4898
|
|
|
4899
|
-
//
|
|
4899
|
+
// node_modules/typebox/build/type/engine/template_literal/encode.mjs
|
|
4900
4900
|
function JoinString(input) {
|
|
4901
4901
|
return input.join("|");
|
|
4902
4902
|
}
|
|
@@ -4953,7 +4953,7 @@ function TemplateLiteralEncode(types) {
|
|
|
4953
4953
|
return result;
|
|
4954
4954
|
}
|
|
4955
4955
|
|
|
4956
|
-
//
|
|
4956
|
+
// node_modules/typebox/build/type/engine/template_literal/instantiate.mjs
|
|
4957
4957
|
function TemplateLiteralAction(types, options) {
|
|
4958
4958
|
const result = CanInstantiate(types) ? memory_exports.Update(TemplateLiteralEncode(types), {}, options) : TemplateLiteralDeferred(types, options);
|
|
4959
4959
|
return result;
|
|
@@ -4963,7 +4963,7 @@ function TemplateLiteralInstantiate(context2, state, types, options) {
|
|
|
4963
4963
|
return TemplateLiteralAction(instantiatedTypes, options);
|
|
4964
4964
|
}
|
|
4965
4965
|
|
|
4966
|
-
//
|
|
4966
|
+
// node_modules/typebox/build/type/types/template_literal.mjs
|
|
4967
4967
|
function TemplateLiteralDeferred(types, options = {}) {
|
|
4968
4968
|
return Deferred("TemplateLiteral", [types], options);
|
|
4969
4969
|
}
|
|
@@ -4985,7 +4985,7 @@ function IsTemplateLiteral(value) {
|
|
|
4985
4985
|
return IsKind(value, "TemplateLiteral");
|
|
4986
4986
|
}
|
|
4987
4987
|
|
|
4988
|
-
//
|
|
4988
|
+
// node_modules/typebox/build/type/extends/result.mjs
|
|
4989
4989
|
var result_exports = {};
|
|
4990
4990
|
__export(result_exports, {
|
|
4991
4991
|
ExtendsFalse: () => ExtendsFalse,
|
|
@@ -5022,7 +5022,7 @@ function Match4(result, true_, false_) {
|
|
|
5022
5022
|
return IsExtendsTrueLike(result) ? true_(result.inferred) : false_();
|
|
5023
5023
|
}
|
|
5024
5024
|
|
|
5025
|
-
//
|
|
5025
|
+
// node_modules/typebox/build/type/extends/extends_right.mjs
|
|
5026
5026
|
function ExtendsRightInfer(inferred, name, left, right) {
|
|
5027
5027
|
return Match4(ExtendsLeft(inferred, left, right), (checkInferred) => ExtendsTrue(memory_exports.Assign(memory_exports.Assign(inferred, checkInferred), { [name]: left })), () => ExtendsFalse());
|
|
5028
5028
|
}
|
|
@@ -5050,12 +5050,12 @@ function ExtendsRight(inferred, left, right) {
|
|
|
5050
5050
|
return IsAny(right) ? ExtendsRightAny(inferred, left) : IsDependent(right) ? ExtendsRightDependent(inferred, left, right.if, right.then, right.else) : IsEnum2(right) ? ExtendsRightEnum(inferred, left, right.enum) : IsInfer(right) ? ExtendsRightInfer(inferred, right.name, left, right.extends) : IsIntersect(right) ? ExtendsRightIntersect(inferred, left, right.allOf) : IsTemplateLiteral(right) ? ExtendsRightTemplateLiteral(inferred, left, right.pattern) : IsUnion(right) ? ExtendsRightUnion(inferred, left, right.anyOf) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
5051
5051
|
}
|
|
5052
5052
|
|
|
5053
|
-
//
|
|
5053
|
+
// node_modules/typebox/build/type/extends/any.mjs
|
|
5054
5054
|
function ExtendsAny(inferred, left, right) {
|
|
5055
5055
|
return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsUnion(inferred);
|
|
5056
5056
|
}
|
|
5057
5057
|
|
|
5058
|
-
//
|
|
5058
|
+
// node_modules/typebox/build/type/extends/array.mjs
|
|
5059
5059
|
function ExtendsImmutable(left, right) {
|
|
5060
5060
|
const isImmutableLeft = IsImmutable(left);
|
|
5061
5061
|
const isImmutableRight = IsImmutable(right);
|
|
@@ -5065,17 +5065,17 @@ function ExtendsArray(inferred, arrayLeft, left, right) {
|
|
|
5065
5065
|
return IsArray2(right) ? ExtendsImmutable(arrayLeft, right) ? ExtendsLeft(inferred, left, right.items) : ExtendsFalse() : ExtendsRight(inferred, arrayLeft, right);
|
|
5066
5066
|
}
|
|
5067
5067
|
|
|
5068
|
-
//
|
|
5068
|
+
// node_modules/typebox/build/type/extends/bigint.mjs
|
|
5069
5069
|
function ExtendsBigInt(inferred, left, right) {
|
|
5070
5070
|
return IsBigInt2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
5071
5071
|
}
|
|
5072
5072
|
|
|
5073
|
-
//
|
|
5073
|
+
// node_modules/typebox/build/type/extends/boolean.mjs
|
|
5074
5074
|
function ExtendsBoolean(inferred, left, right) {
|
|
5075
5075
|
return IsBoolean3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
5076
5076
|
}
|
|
5077
5077
|
|
|
5078
|
-
//
|
|
5078
|
+
// node_modules/typebox/build/type/extends/parameters.mjs
|
|
5079
5079
|
function ParameterCompare(inferred, left, leftRest, right, rightRest) {
|
|
5080
5080
|
const checkLeft = IsInfer(right) ? left : right;
|
|
5081
5081
|
const checkRight = IsInfer(right) ? right : left;
|
|
@@ -5093,44 +5093,44 @@ function ExtendsParameters(inferred, left, right) {
|
|
|
5093
5093
|
return ParametersLeft(inferred, left, right);
|
|
5094
5094
|
}
|
|
5095
5095
|
|
|
5096
|
-
//
|
|
5096
|
+
// node_modules/typebox/build/type/extends/return_type.mjs
|
|
5097
5097
|
function ExtendsReturnType(inferred, left, right) {
|
|
5098
5098
|
return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsLeft(inferred, left, right);
|
|
5099
5099
|
}
|
|
5100
5100
|
|
|
5101
|
-
//
|
|
5101
|
+
// node_modules/typebox/build/type/extends/constructor.mjs
|
|
5102
5102
|
function ExtendsConstructor(inferred, parameters, returnType, right) {
|
|
5103
5103
|
return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsConstructor2(right) ? Match4(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred2) => ExtendsReturnType(inferred2, returnType, right["instanceType"]), () => ExtendsFalse()) : ExtendsFalse();
|
|
5104
5104
|
}
|
|
5105
5105
|
|
|
5106
|
-
//
|
|
5106
|
+
// node_modules/typebox/build/type/extends/dependent.mjs
|
|
5107
5107
|
function ExtendsDependent(inferred, if_, then_, else_, right) {
|
|
5108
5108
|
return Match4(ExtendsLeft(inferred, if_, right), () => ExtendsLeft(inferred, then_, right), () => ExtendsLeft(inferred, else_, right));
|
|
5109
5109
|
}
|
|
5110
5110
|
|
|
5111
|
-
//
|
|
5111
|
+
// node_modules/typebox/build/type/extends/enum.mjs
|
|
5112
5112
|
function ExtendsEnum(inferred, left, right) {
|
|
5113
5113
|
const evaluated = EvaluateEnum(left);
|
|
5114
5114
|
return ExtendsLeft(inferred, evaluated, right);
|
|
5115
5115
|
}
|
|
5116
5116
|
|
|
5117
|
-
//
|
|
5117
|
+
// node_modules/typebox/build/type/extends/function.mjs
|
|
5118
5118
|
function ExtendsFunction(inferred, parameters, returnType, right) {
|
|
5119
5119
|
return IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : IsFunction2(right) ? Match4(ExtendsParameters(inferred, parameters, right["parameters"]), (inferred2) => ExtendsReturnType(inferred2, returnType, right["returnType"]), () => ExtendsFalse()) : ExtendsFalse();
|
|
5120
5120
|
}
|
|
5121
5121
|
|
|
5122
|
-
//
|
|
5122
|
+
// node_modules/typebox/build/type/extends/integer.mjs
|
|
5123
5123
|
function ExtendsInteger(inferred, left, right) {
|
|
5124
5124
|
return IsInteger2(right) ? ExtendsTrue(inferred) : IsNumber3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
5125
5125
|
}
|
|
5126
5126
|
|
|
5127
|
-
//
|
|
5127
|
+
// node_modules/typebox/build/type/extends/intersect.mjs
|
|
5128
5128
|
function ExtendsIntersect(inferred, left, right) {
|
|
5129
5129
|
const evaluated = EvaluateIntersect(left);
|
|
5130
5130
|
return ExtendsLeft(inferred, evaluated, right);
|
|
5131
5131
|
}
|
|
5132
5132
|
|
|
5133
|
-
//
|
|
5133
|
+
// node_modules/typebox/build/type/extends/literal.mjs
|
|
5134
5134
|
function ExtendsLiteralValue(inferred, left, right) {
|
|
5135
5135
|
return left === right ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
5136
5136
|
}
|
|
@@ -5150,22 +5150,22 @@ function ExtendsLiteral(inferred, left, right) {
|
|
|
5150
5150
|
return guard_exports.IsBigInt(left.const) ? ExtendsLiteralBigInt(inferred, left.const, right) : guard_exports.IsBoolean(left.const) ? ExtendsLiteralBoolean(inferred, left.const, right) : guard_exports.IsNumber(left.const) ? ExtendsLiteralNumber(inferred, left.const, right) : guard_exports.IsString(left.const) ? ExtendsLiteralString(inferred, left.const, right) : Unreachable();
|
|
5151
5151
|
}
|
|
5152
5152
|
|
|
5153
|
-
//
|
|
5153
|
+
// node_modules/typebox/build/type/extends/never.mjs
|
|
5154
5154
|
function ExtendsNever(inferred, left, right) {
|
|
5155
5155
|
return IsInfer(right) ? ExtendsRight(inferred, left, right) : ExtendsTrue(inferred);
|
|
5156
5156
|
}
|
|
5157
5157
|
|
|
5158
|
-
//
|
|
5158
|
+
// node_modules/typebox/build/type/extends/null.mjs
|
|
5159
5159
|
function ExtendsNull(inferred, left, right) {
|
|
5160
5160
|
return IsNull2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
5161
5161
|
}
|
|
5162
5162
|
|
|
5163
|
-
//
|
|
5163
|
+
// node_modules/typebox/build/type/extends/number.mjs
|
|
5164
5164
|
function ExtendsNumber(inferred, left, right) {
|
|
5165
5165
|
return IsNumber3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
5166
5166
|
}
|
|
5167
5167
|
|
|
5168
|
-
//
|
|
5168
|
+
// node_modules/typebox/build/type/extends/object.mjs
|
|
5169
5169
|
function ExtendsPropertyOptional(inferred, left, right) {
|
|
5170
5170
|
return IsOptional(left) ? IsOptional(right) ? ExtendsTrue(inferred) : ExtendsFalse() : ExtendsTrue(inferred);
|
|
5171
5171
|
}
|
|
@@ -5216,7 +5216,7 @@ function ExtendsObject(inferred, left, right) {
|
|
|
5216
5216
|
return IsRecord(right) ? ExtendsObjectToRecord(inferred, left, RecordPattern(right), RecordValue(right)) : IsObject2(right) ? ExtendsObjectToObject(inferred, left, right.properties) : ExtendsRight(inferred, _Object_(left), right);
|
|
5217
5217
|
}
|
|
5218
5218
|
|
|
5219
|
-
//
|
|
5219
|
+
// node_modules/typebox/build/type/extends/record.mjs
|
|
5220
5220
|
function FromObject4(inferred, properties) {
|
|
5221
5221
|
return guard_exports.IsEqual(guard_exports.Keys(properties).length, 0) ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
5222
5222
|
}
|
|
@@ -5227,23 +5227,23 @@ function ExtendsRecord(inferred, leftPattern, leftValue, right) {
|
|
|
5227
5227
|
return IsRecord(right) ? FromRecord(inferred, RecordPatternToType(leftPattern), leftValue, RecordPatternToType(RecordPattern(right)), RecordValue(right)) : IsObject2(right) ? FromObject4(inferred, right.properties) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
5228
5228
|
}
|
|
5229
5229
|
|
|
5230
|
-
//
|
|
5230
|
+
// node_modules/typebox/build/type/extends/string.mjs
|
|
5231
5231
|
function ExtendsString(inferred, left, right) {
|
|
5232
5232
|
return IsString3(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
5233
5233
|
}
|
|
5234
5234
|
|
|
5235
|
-
//
|
|
5235
|
+
// node_modules/typebox/build/type/extends/symbol.mjs
|
|
5236
5236
|
function ExtendsSymbol(inferred, left, right) {
|
|
5237
5237
|
return IsSymbol2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
5238
5238
|
}
|
|
5239
5239
|
|
|
5240
|
-
//
|
|
5240
|
+
// node_modules/typebox/build/type/extends/template_literal.mjs
|
|
5241
5241
|
function ExtendsTemplateLiteral(inferred, left, right) {
|
|
5242
5242
|
const evaluated = EvaluateTemplateLiteral(left);
|
|
5243
5243
|
return ExtendsLeft(inferred, evaluated, right);
|
|
5244
5244
|
}
|
|
5245
5245
|
|
|
5246
|
-
//
|
|
5246
|
+
// node_modules/typebox/build/type/extends/inference.mjs
|
|
5247
5247
|
function Inferrable(name, type) {
|
|
5248
5248
|
return memory_exports.Create({ "~kind": "Inferrable" }, { name, type }, {});
|
|
5249
5249
|
}
|
|
@@ -5268,7 +5268,7 @@ function InferUnionResult(inferred, name, left, right) {
|
|
|
5268
5268
|
return guard_exports.IsArray(results) ? ExtendsTrue(memory_exports.Assign(inferred, { [name]: Union(results) })) : ExtendsFalse();
|
|
5269
5269
|
}
|
|
5270
5270
|
|
|
5271
|
-
//
|
|
5271
|
+
// node_modules/typebox/build/type/extends/tuple.mjs
|
|
5272
5272
|
function Reverse(types) {
|
|
5273
5273
|
return [...types].reverse();
|
|
5274
5274
|
}
|
|
@@ -5310,12 +5310,12 @@ function ExtendsTuple(inferred, left, right) {
|
|
|
5310
5310
|
return IsTuple(right) ? ExtendsTupleToTuple(inferred, instantiatedLeft, right.items) : IsArray2(right) ? ExtendsTupleToArray(inferred, instantiatedLeft, right.items) : ExtendsRight(inferred, Tuple(instantiatedLeft), right);
|
|
5311
5311
|
}
|
|
5312
5312
|
|
|
5313
|
-
//
|
|
5313
|
+
// node_modules/typebox/build/type/extends/undefined.mjs
|
|
5314
5314
|
function ExtendsUndefined(inferred, left, right) {
|
|
5315
5315
|
return IsVoid(right) ? ExtendsTrue(inferred) : IsUndefined2(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
5316
5316
|
}
|
|
5317
5317
|
|
|
5318
|
-
//
|
|
5318
|
+
// node_modules/typebox/build/type/extends/union.mjs
|
|
5319
5319
|
function ExtendsUnionSome(inferred, type, unionTypes) {
|
|
5320
5320
|
return guard_exports.ShiftLeft(unionTypes, (head, tail) => Match4(ExtendsLeft(inferred, type, head), (inferred2) => ExtendsTrue(inferred2), () => ExtendsUnionSome(inferred, type, tail)), () => ExtendsFalse());
|
|
5321
5321
|
}
|
|
@@ -5327,22 +5327,22 @@ function ExtendsUnion2(inferred, left, right) {
|
|
|
5327
5327
|
return IsInferable(inferrable) ? InferUnionResult(inferred, inferrable.name, left, inferrable.type) : IsUnion(right) ? ExtendsUnionLeft(inferred, left, right.anyOf) : ExtendsUnionLeft(inferred, left, [right]);
|
|
5328
5328
|
}
|
|
5329
5329
|
|
|
5330
|
-
//
|
|
5330
|
+
// node_modules/typebox/build/type/extends/unknown.mjs
|
|
5331
5331
|
function ExtendsUnknown(inferred, left, right) {
|
|
5332
5332
|
return IsInfer(right) ? ExtendsRight(inferred, left, right) : IsAny(right) ? ExtendsTrue(inferred) : IsUnknown(right) ? ExtendsTrue(inferred) : ExtendsFalse();
|
|
5333
5333
|
}
|
|
5334
5334
|
|
|
5335
|
-
//
|
|
5335
|
+
// node_modules/typebox/build/type/extends/void.mjs
|
|
5336
5336
|
function ExtendsVoid(inferred, left, right) {
|
|
5337
5337
|
return IsVoid(right) ? ExtendsTrue(inferred) : ExtendsRight(inferred, left, right);
|
|
5338
5338
|
}
|
|
5339
5339
|
|
|
5340
|
-
//
|
|
5340
|
+
// node_modules/typebox/build/type/extends/extends_left.mjs
|
|
5341
5341
|
function ExtendsLeft(inferred, left, right) {
|
|
5342
5342
|
return IsAny(left) ? ExtendsAny(inferred, left, right) : IsArray2(left) ? ExtendsArray(inferred, left, left.items, right) : IsBigInt2(left) ? ExtendsBigInt(inferred, left, right) : IsBoolean3(left) ? ExtendsBoolean(inferred, left, right) : IsConstructor2(left) ? ExtendsConstructor(inferred, left.parameters, left.instanceType, right) : IsDependent(left) ? ExtendsDependent(inferred, left.if, left.then, left.else, right) : IsEnum2(left) ? ExtendsEnum(inferred, left.enum, right) : IsFunction2(left) ? ExtendsFunction(inferred, left.parameters, left.returnType, right) : IsInteger2(left) ? ExtendsInteger(inferred, left, right) : IsIntersect(left) ? ExtendsIntersect(inferred, left.allOf, right) : IsLiteral(left) ? ExtendsLiteral(inferred, left, right) : IsNever(left) ? ExtendsNever(inferred, left, right) : IsNull2(left) ? ExtendsNull(inferred, left, right) : IsNumber3(left) ? ExtendsNumber(inferred, left, right) : IsObject2(left) ? ExtendsObject(inferred, left.properties, right) : IsRecord(left) ? ExtendsRecord(inferred, RecordPattern(left), RecordValue(left), right) : IsString3(left) ? ExtendsString(inferred, left, right) : IsSymbol2(left) ? ExtendsSymbol(inferred, left, right) : IsTemplateLiteral(left) ? ExtendsTemplateLiteral(inferred, left.pattern, right) : IsTuple(left) ? ExtendsTuple(inferred, left.items, right) : IsUndefined2(left) ? ExtendsUndefined(inferred, left, right) : IsUnion(left) ? ExtendsUnion2(inferred, left.anyOf, right) : IsUnknown(left) ? ExtendsUnknown(inferred, left, right) : IsVoid(left) ? ExtendsVoid(inferred, left, right) : ExtendsFalse();
|
|
5343
5343
|
}
|
|
5344
5344
|
|
|
5345
|
-
//
|
|
5345
|
+
// node_modules/typebox/build/type/engine/interface/instantiate.mjs
|
|
5346
5346
|
function InterfaceOperation(heritage, properties) {
|
|
5347
5347
|
const result = EvaluateIntersect([...heritage, _Object_(properties)]);
|
|
5348
5348
|
return result;
|
|
@@ -5357,7 +5357,7 @@ function InterfaceInstantiate(context2, state, heritage, properties, options) {
|
|
|
5357
5357
|
return InterfaceAction(instantiatedHeritage, instantiatedProperties, options);
|
|
5358
5358
|
}
|
|
5359
5359
|
|
|
5360
|
-
//
|
|
5360
|
+
// node_modules/typebox/build/type/action/interface.mjs
|
|
5361
5361
|
function InterfaceDeferred(heritage, properties, options = {}) {
|
|
5362
5362
|
return Deferred("Interface", [heritage, properties], options);
|
|
5363
5363
|
}
|
|
@@ -5368,7 +5368,7 @@ function Interface(heritage, properties, options = {}) {
|
|
|
5368
5368
|
return InterfaceAction(heritage, properties, options);
|
|
5369
5369
|
}
|
|
5370
5370
|
|
|
5371
|
-
//
|
|
5371
|
+
// node_modules/typebox/build/type/engine/cyclic/check.mjs
|
|
5372
5372
|
function FromRef(stack, context2, ref) {
|
|
5373
5373
|
return stack.includes(ref) ? true : FromType3([...stack, ref], context2, context2[ref]);
|
|
5374
5374
|
}
|
|
@@ -5387,7 +5387,7 @@ function CyclicCheck(stack, context2, type) {
|
|
|
5387
5387
|
return result;
|
|
5388
5388
|
}
|
|
5389
5389
|
|
|
5390
|
-
//
|
|
5390
|
+
// node_modules/typebox/build/type/engine/cyclic/candidates.mjs
|
|
5391
5391
|
function ResolveCandidateKeys(context2, keys) {
|
|
5392
5392
|
return keys.reduce((result, left) => {
|
|
5393
5393
|
return CyclicCheck([left], context2, context2[left]) ? [...result, left] : result;
|
|
@@ -5399,7 +5399,7 @@ function CyclicCandidates(context2) {
|
|
|
5399
5399
|
return result;
|
|
5400
5400
|
}
|
|
5401
5401
|
|
|
5402
|
-
//
|
|
5402
|
+
// node_modules/typebox/build/type/engine/cyclic/dependencies.mjs
|
|
5403
5403
|
function FromRef2(context2, ref, result) {
|
|
5404
5404
|
return result.includes(ref) ? result : ref in context2 ? FromType4(context2, context2[ref], [...result, ref]) : Unreachable();
|
|
5405
5405
|
}
|
|
@@ -5420,7 +5420,7 @@ function CyclicDependencies(context2, key, type) {
|
|
|
5420
5420
|
return result;
|
|
5421
5421
|
}
|
|
5422
5422
|
|
|
5423
|
-
//
|
|
5423
|
+
// node_modules/typebox/build/type/engine/cyclic/extends.mjs
|
|
5424
5424
|
function FromRef3(_ref) {
|
|
5425
5425
|
return Any();
|
|
5426
5426
|
}
|
|
@@ -5444,7 +5444,7 @@ function CyclicExtends(type) {
|
|
|
5444
5444
|
return CyclicAnyFromParameters(type.$defs, type.$ref);
|
|
5445
5445
|
}
|
|
5446
5446
|
|
|
5447
|
-
//
|
|
5447
|
+
// node_modules/typebox/build/type/engine/cyclic/instantiate.mjs
|
|
5448
5448
|
function CyclicInterface(context2, heritage, properties) {
|
|
5449
5449
|
const instantiatedHeritage = InstantiateTypes(context2, State([], []), heritage);
|
|
5450
5450
|
const instantiatedProperties = InstantiateProperties({}, State([], []), properties);
|
|
@@ -5466,7 +5466,7 @@ function InstantiateCyclic(context2, ref, type) {
|
|
|
5466
5466
|
return result;
|
|
5467
5467
|
}
|
|
5468
5468
|
|
|
5469
|
-
//
|
|
5469
|
+
// node_modules/typebox/build/type/engine/cyclic/target.mjs
|
|
5470
5470
|
function Resolve(defs, ref) {
|
|
5471
5471
|
return ref in defs ? IsRef2(defs[ref]) ? Resolve(defs, defs[ref].$ref) : defs[ref] : Never();
|
|
5472
5472
|
}
|
|
@@ -5475,7 +5475,7 @@ function CyclicTarget(defs, ref) {
|
|
|
5475
5475
|
return result;
|
|
5476
5476
|
}
|
|
5477
5477
|
|
|
5478
|
-
//
|
|
5478
|
+
// node_modules/typebox/build/type/extends/extends.mjs
|
|
5479
5479
|
function Canonical(type) {
|
|
5480
5480
|
return IsCyclic(type) ? CyclicExtends(type) : IsUnsafe(type) ? Unknown() : type;
|
|
5481
5481
|
}
|
|
@@ -5485,7 +5485,7 @@ function Extends(inferred, left, right) {
|
|
|
5485
5485
|
return ExtendsLeft(inferred, canonicalLeft, canonicalRight);
|
|
5486
5486
|
}
|
|
5487
5487
|
|
|
5488
|
-
//
|
|
5488
|
+
// node_modules/typebox/build/type/engine/evaluate/compare.mjs
|
|
5489
5489
|
var CompareResultEqual = 0;
|
|
5490
5490
|
var CompareResultDisjoint = 1;
|
|
5491
5491
|
var CompareResultLeftInside = 2;
|
|
@@ -5495,7 +5495,7 @@ function Compare(left, right) {
|
|
|
5495
5495
|
return result_exports.IsExtendsTrueLike(extendsCheck[0]) && result_exports.IsExtendsTrueLike(extendsCheck[1]) ? CompareResultEqual : result_exports.IsExtendsTrueLike(extendsCheck[0]) && result_exports.IsExtendsFalse(extendsCheck[1]) ? CompareResultLeftInside : result_exports.IsExtendsFalse(extendsCheck[0]) && result_exports.IsExtendsTrueLike(extendsCheck[1]) ? CompareResultRightInside : CompareResultDisjoint;
|
|
5496
5496
|
}
|
|
5497
5497
|
|
|
5498
|
-
//
|
|
5498
|
+
// node_modules/typebox/build/type/engine/evaluate/broaden.mjs
|
|
5499
5499
|
function BroadenFilter(type, types, result = [], all = types) {
|
|
5500
5500
|
return guard_exports.ShiftLeft(types, (left, right) => {
|
|
5501
5501
|
const compare = Compare(type, left);
|
|
@@ -5527,7 +5527,7 @@ function Broaden(types) {
|
|
|
5527
5527
|
return flattened;
|
|
5528
5528
|
}
|
|
5529
5529
|
|
|
5530
|
-
//
|
|
5530
|
+
// node_modules/typebox/build/type/engine/evaluate/instantiate.mjs
|
|
5531
5531
|
function EvaluateAction(type, options) {
|
|
5532
5532
|
const result = memory_exports.Update(EvaluateType(type), {}, options);
|
|
5533
5533
|
return result;
|
|
@@ -5537,7 +5537,7 @@ function EvaluateInstantiate(context2, state, type, options) {
|
|
|
5537
5537
|
return EvaluateAction(instantiatedType, options);
|
|
5538
5538
|
}
|
|
5539
5539
|
|
|
5540
|
-
//
|
|
5540
|
+
// node_modules/typebox/build/type/engine/call/distribute_arguments.mjs
|
|
5541
5541
|
function CollectDistributionNames(expression, result = []) {
|
|
5542
5542
|
return (
|
|
5543
5543
|
// Conditional
|
|
@@ -5577,7 +5577,7 @@ function DistributeArguments(parameters, arguments_, expression) {
|
|
|
5577
5577
|
return IsDeferred(expression) && guard_exports.IsEqual(expression.action, "Conditional") ? Distribute2(zippedArguments) : IsDeferred(expression) && guard_exports.IsEqual(expression.action, "Mapped") ? Distribute2(zippedArguments) : [arguments_];
|
|
5578
5578
|
}
|
|
5579
5579
|
|
|
5580
|
-
//
|
|
5580
|
+
// node_modules/typebox/build/type/engine/call/resolve_target.mjs
|
|
5581
5581
|
function FromNotResolvable() {
|
|
5582
5582
|
return ["(not-resolvable)", Never()];
|
|
5583
5583
|
}
|
|
@@ -5597,7 +5597,7 @@ function ResolveTarget(context2, target, arguments_) {
|
|
|
5597
5597
|
return FromType6(context2, "(anonymous)", target, arguments_);
|
|
5598
5598
|
}
|
|
5599
5599
|
|
|
5600
|
-
//
|
|
5600
|
+
// node_modules/typebox/build/type/engine/call/resolve_arguments.mjs
|
|
5601
5601
|
function AssertArgumentExtends(name, type, extends_) {
|
|
5602
5602
|
if (IsInfer(type) || IsCall(type) || result_exports.IsExtendsTrueLike(Extends({}, type, extends_)))
|
|
5603
5603
|
return;
|
|
@@ -5621,7 +5621,7 @@ function ResolveArgumentsContext(context2, state, parameters, arguments_) {
|
|
|
5621
5621
|
return BindParameters(context2, state, parameters, arguments_);
|
|
5622
5622
|
}
|
|
5623
5623
|
|
|
5624
|
-
//
|
|
5624
|
+
// node_modules/typebox/build/type/engine/call/instantiate.mjs
|
|
5625
5625
|
var instantiationDepth = 0;
|
|
5626
5626
|
var instantiationCount = 0;
|
|
5627
5627
|
function InstantiationAssert() {
|
|
@@ -5678,7 +5678,7 @@ function CallInstantiate(context2, state, target, arguments_) {
|
|
|
5678
5678
|
return result;
|
|
5679
5679
|
}
|
|
5680
5680
|
|
|
5681
|
-
//
|
|
5681
|
+
// node_modules/typebox/build/type/types/call.mjs
|
|
5682
5682
|
function CallConstruct(target, arguments_) {
|
|
5683
5683
|
return memory_exports.Create({ ["~kind"]: "Call" }, { type: "call", target, arguments: arguments_ }, {});
|
|
5684
5684
|
}
|
|
@@ -5689,7 +5689,7 @@ function IsCall(value) {
|
|
|
5689
5689
|
return IsKind(value, "Call");
|
|
5690
5690
|
}
|
|
5691
5691
|
|
|
5692
|
-
//
|
|
5692
|
+
// node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs
|
|
5693
5693
|
function RemoveImmutableOperation(type) {
|
|
5694
5694
|
return memory_exports.Discard(type, ["~immutable"]);
|
|
5695
5695
|
}
|
|
@@ -5702,35 +5702,35 @@ function RemoveImmutableInstantiate(context2, state, type, options) {
|
|
|
5702
5702
|
return RemoveImmutableAction(instantiatedType, options);
|
|
5703
5703
|
}
|
|
5704
5704
|
|
|
5705
|
-
//
|
|
5705
|
+
// node_modules/typebox/build/type/engine/intrinsics/mapping.mjs
|
|
5706
5706
|
function ApplyMapping(mapping, value) {
|
|
5707
5707
|
return mapping(value);
|
|
5708
5708
|
}
|
|
5709
5709
|
|
|
5710
|
-
//
|
|
5710
|
+
// node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs
|
|
5711
5711
|
function FromLiteral3(mapping, value) {
|
|
5712
5712
|
return guard_exports.IsString(value) ? Literal(ApplyMapping(mapping, value)) : Literal(value);
|
|
5713
5713
|
}
|
|
5714
5714
|
|
|
5715
|
-
//
|
|
5715
|
+
// node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs
|
|
5716
5716
|
function FromTemplateLiteral(mapping, pattern) {
|
|
5717
5717
|
const evaluated = EvaluateTemplateLiteral(pattern);
|
|
5718
5718
|
const result = FromType7(mapping, evaluated);
|
|
5719
5719
|
return result;
|
|
5720
5720
|
}
|
|
5721
5721
|
|
|
5722
|
-
//
|
|
5722
|
+
// node_modules/typebox/build/type/engine/intrinsics/from_union.mjs
|
|
5723
5723
|
function FromUnion2(mapping, types) {
|
|
5724
5724
|
const result = types.map((type) => FromType7(mapping, type));
|
|
5725
5725
|
return Union(result);
|
|
5726
5726
|
}
|
|
5727
5727
|
|
|
5728
|
-
//
|
|
5728
|
+
// node_modules/typebox/build/type/engine/intrinsics/from_type.mjs
|
|
5729
5729
|
function FromType7(mapping, type) {
|
|
5730
5730
|
return IsLiteral(type) ? FromLiteral3(mapping, type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral(mapping, type.pattern) : IsUnion(type) ? FromUnion2(mapping, type.anyOf) : type;
|
|
5731
5731
|
}
|
|
5732
5732
|
|
|
5733
|
-
//
|
|
5733
|
+
// node_modules/typebox/build/type/action/capitalize.mjs
|
|
5734
5734
|
function CapitalizeDeferred(type, options = {}) {
|
|
5735
5735
|
return Deferred("Capitalize", [type], options);
|
|
5736
5736
|
}
|
|
@@ -5738,7 +5738,7 @@ function Capitalize(type, options = {}) {
|
|
|
5738
5738
|
return CapitalizeAction(type, options);
|
|
5739
5739
|
}
|
|
5740
5740
|
|
|
5741
|
-
//
|
|
5741
|
+
// node_modules/typebox/build/type/action/lowercase.mjs
|
|
5742
5742
|
function LowercaseDeferred(type, options = {}) {
|
|
5743
5743
|
return Deferred("Lowercase", [type], options);
|
|
5744
5744
|
}
|
|
@@ -5746,7 +5746,7 @@ function Lowercase(type, options = {}) {
|
|
|
5746
5746
|
return LowercaseAction(type, options);
|
|
5747
5747
|
}
|
|
5748
5748
|
|
|
5749
|
-
//
|
|
5749
|
+
// node_modules/typebox/build/type/action/uncapitalize.mjs
|
|
5750
5750
|
function UncapitalizeDeferred(type, options = {}) {
|
|
5751
5751
|
return Deferred("Uncapitalize", [type], options);
|
|
5752
5752
|
}
|
|
@@ -5754,7 +5754,7 @@ function Uncapitalize(type, options = {}) {
|
|
|
5754
5754
|
return UncapitalizeAction(type, options);
|
|
5755
5755
|
}
|
|
5756
5756
|
|
|
5757
|
-
//
|
|
5757
|
+
// node_modules/typebox/build/type/action/uppercase.mjs
|
|
5758
5758
|
function UppercaseDeferred(type, options = {}) {
|
|
5759
5759
|
return Deferred("Uppercase", [type], options);
|
|
5760
5760
|
}
|
|
@@ -5762,7 +5762,7 @@ function Uppercase(type, options = {}) {
|
|
|
5762
5762
|
return UppercaseAction(type, options);
|
|
5763
5763
|
}
|
|
5764
5764
|
|
|
5765
|
-
//
|
|
5765
|
+
// node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs
|
|
5766
5766
|
var CapitalizeMapping = (input) => input[0].toUpperCase() + input.slice(1);
|
|
5767
5767
|
var LowercaseMapping = (input) => input.toLowerCase();
|
|
5768
5768
|
var UncapitalizeMapping = (input) => input[0].toLowerCase() + input.slice(1);
|
|
@@ -5800,7 +5800,7 @@ function UppercaseInstantiate(context2, state, type, options) {
|
|
|
5800
5800
|
return UppercaseAction(instantiatedType, options);
|
|
5801
5801
|
}
|
|
5802
5802
|
|
|
5803
|
-
//
|
|
5803
|
+
// node_modules/typebox/build/type/action/conditional.mjs
|
|
5804
5804
|
function ConditionalDeferred(left, right, true_, false_, options = {}) {
|
|
5805
5805
|
return Deferred("Conditional", [left, right, true_, false_], options);
|
|
5806
5806
|
}
|
|
@@ -5808,7 +5808,7 @@ function Conditional(left, right, true_, false_, options = {}) {
|
|
|
5808
5808
|
return ConditionalAction({}, State([], []), left, right, true_, false_, options);
|
|
5809
5809
|
}
|
|
5810
5810
|
|
|
5811
|
-
//
|
|
5811
|
+
// node_modules/typebox/build/type/engine/conditional/instantiate.mjs
|
|
5812
5812
|
function ConditionalOperation(context2, state, left, right, true_, false_) {
|
|
5813
5813
|
const extendsResult = Extends(context2, left, right);
|
|
5814
5814
|
return result_exports.IsExtendsUnion(extendsResult) ? Union([InstantiateType(extendsResult.inferred, state, true_), InstantiateType(context2, state, false_)]) : result_exports.IsExtendsTrue(extendsResult) ? InstantiateType(extendsResult.inferred, state, true_) : InstantiateType(context2, state, false_);
|
|
@@ -5823,7 +5823,7 @@ function ConditionalInstantiate(context2, state, left, right, true_, false_, opt
|
|
|
5823
5823
|
return ConditionalAction(context2, state, instantiatedLeft, instantiatedRight, true_, false_, options);
|
|
5824
5824
|
}
|
|
5825
5825
|
|
|
5826
|
-
//
|
|
5826
|
+
// node_modules/typebox/build/type/action/constructor_parameters.mjs
|
|
5827
5827
|
function ConstructorParametersDeferred(type, options = {}) {
|
|
5828
5828
|
return Deferred("ConstructorParameters", [type], options);
|
|
5829
5829
|
}
|
|
@@ -5831,7 +5831,7 @@ function ConstructorParameters(type, options = {}) {
|
|
|
5831
5831
|
return ConstructorParametersAction(type, options);
|
|
5832
5832
|
}
|
|
5833
5833
|
|
|
5834
|
-
//
|
|
5834
|
+
// node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs
|
|
5835
5835
|
function ConstructorParametersOperation(type) {
|
|
5836
5836
|
const parameters = IsConstructor2(type) ? type["parameters"] : [];
|
|
5837
5837
|
const instantiatedParameters = InstantiateElements({}, State([], []), parameters);
|
|
@@ -5847,7 +5847,7 @@ function ConstructorParametersInstantiate(context2, state, type, options) {
|
|
|
5847
5847
|
return ConstructorParametersAction(instantiatedType, options);
|
|
5848
5848
|
}
|
|
5849
5849
|
|
|
5850
|
-
//
|
|
5850
|
+
// node_modules/typebox/build/type/action/exclude.mjs
|
|
5851
5851
|
function ExcludeDeferred(left, right, options = {}) {
|
|
5852
5852
|
return Deferred("Exclude", [left, right], options);
|
|
5853
5853
|
}
|
|
@@ -5855,7 +5855,7 @@ function Exclude(left, right, options = {}) {
|
|
|
5855
5855
|
return ExcludeAction(left, right, options);
|
|
5856
5856
|
}
|
|
5857
5857
|
|
|
5858
|
-
//
|
|
5858
|
+
// node_modules/typebox/build/type/engine/exclude/instantiate.mjs
|
|
5859
5859
|
function ExcludeAction(left, right, options) {
|
|
5860
5860
|
const result = CanInstantiate([left, right]) ? memory_exports.Update(ExcludeOperation(left, right), {}, options) : ExcludeDeferred(left, right, options);
|
|
5861
5861
|
return result;
|
|
@@ -5866,7 +5866,7 @@ function ExcludeInstantiate(context2, state, left, right, options) {
|
|
|
5866
5866
|
return ExcludeAction(instantiatedLeft, instantiatedRight, options);
|
|
5867
5867
|
}
|
|
5868
5868
|
|
|
5869
|
-
//
|
|
5869
|
+
// node_modules/typebox/build/type/action/extract.mjs
|
|
5870
5870
|
function ExtractDeferred(left, right, options = {}) {
|
|
5871
5871
|
return Deferred("Extract", [left, right], options);
|
|
5872
5872
|
}
|
|
@@ -5874,7 +5874,7 @@ function Extract(left, right, options = {}) {
|
|
|
5874
5874
|
return ExtractAction(left, right, options);
|
|
5875
5875
|
}
|
|
5876
5876
|
|
|
5877
|
-
//
|
|
5877
|
+
// node_modules/typebox/build/type/engine/extract/operation.mjs
|
|
5878
5878
|
function ExtractType(left, right) {
|
|
5879
5879
|
const check = Extends({}, left, right);
|
|
5880
5880
|
const result = result_exports.IsExtendsTrueLike(check) ? [left] : [];
|
|
@@ -5891,7 +5891,7 @@ function ExtractOperation(left, right) {
|
|
|
5891
5891
|
return result;
|
|
5892
5892
|
}
|
|
5893
5893
|
|
|
5894
|
-
//
|
|
5894
|
+
// node_modules/typebox/build/type/engine/extract/instantiate.mjs
|
|
5895
5895
|
function ExtractAction(left, right, options) {
|
|
5896
5896
|
const result = CanInstantiate([left, right]) ? memory_exports.Update(ExtractOperation(left, right), {}, options) : ExtractDeferred(left, right, options);
|
|
5897
5897
|
return result;
|
|
@@ -5902,7 +5902,7 @@ function ExtractInstantiate(context2, state, left, right, options) {
|
|
|
5902
5902
|
return ExtractAction(instantiatedLeft, instantiatedRight, options);
|
|
5903
5903
|
}
|
|
5904
5904
|
|
|
5905
|
-
//
|
|
5905
|
+
// node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs
|
|
5906
5906
|
function KeysToLiterals(keys) {
|
|
5907
5907
|
return keys.reduce((result, left) => {
|
|
5908
5908
|
return IsLiteralValue(left) ? [...result, Literal(left)] : result;
|
|
@@ -5914,7 +5914,7 @@ function KeysToIndexer(keys) {
|
|
|
5914
5914
|
return result;
|
|
5915
5915
|
}
|
|
5916
5916
|
|
|
5917
|
-
//
|
|
5917
|
+
// node_modules/typebox/build/type/action/indexed.mjs
|
|
5918
5918
|
function IndexDeferred(type, indexer, options = {}) {
|
|
5919
5919
|
return Deferred("Index", [type, indexer], options);
|
|
5920
5920
|
}
|
|
@@ -5923,21 +5923,21 @@ function Index(type, indexer_or_keys, options = {}) {
|
|
|
5923
5923
|
return IndexAction(type, indexer, options);
|
|
5924
5924
|
}
|
|
5925
5925
|
|
|
5926
|
-
//
|
|
5926
|
+
// node_modules/typebox/build/type/engine/object/from_cyclic.mjs
|
|
5927
5927
|
function FromCyclic(defs, ref) {
|
|
5928
5928
|
const target = CyclicTarget(defs, ref);
|
|
5929
5929
|
const result = FromType8(target);
|
|
5930
5930
|
return result;
|
|
5931
5931
|
}
|
|
5932
5932
|
|
|
5933
|
-
//
|
|
5933
|
+
// node_modules/typebox/build/type/engine/object/from_dependent.mjs
|
|
5934
5934
|
function FromDependent(if_, then_, else_) {
|
|
5935
5935
|
const evaluated = EvaluateDependent(if_, then_, else_);
|
|
5936
5936
|
const result = FromType8(evaluated);
|
|
5937
5937
|
return result;
|
|
5938
5938
|
}
|
|
5939
5939
|
|
|
5940
|
-
//
|
|
5940
|
+
// node_modules/typebox/build/type/engine/object/from_intersect.mjs
|
|
5941
5941
|
function CollapseIntersectProperties(left, right) {
|
|
5942
5942
|
const leftKeys = guard_exports.Keys(left).filter((key) => !guard_exports.HasPropertyKey(right, key));
|
|
5943
5943
|
const rightKeys = guard_exports.Keys(right).filter((key) => !guard_exports.HasPropertyKey(left, key));
|
|
@@ -5955,19 +5955,19 @@ function FromIntersect(types) {
|
|
|
5955
5955
|
}, {});
|
|
5956
5956
|
}
|
|
5957
5957
|
|
|
5958
|
-
//
|
|
5958
|
+
// node_modules/typebox/build/type/engine/object/from_object.mjs
|
|
5959
5959
|
function FromObject5(properties) {
|
|
5960
5960
|
return properties;
|
|
5961
5961
|
}
|
|
5962
5962
|
|
|
5963
|
-
//
|
|
5963
|
+
// node_modules/typebox/build/type/engine/object/from_tuple.mjs
|
|
5964
5964
|
function FromTuple(types) {
|
|
5965
5965
|
const object2 = TupleToObject(Tuple(types));
|
|
5966
5966
|
const result = FromType8(object2);
|
|
5967
5967
|
return result;
|
|
5968
5968
|
}
|
|
5969
5969
|
|
|
5970
|
-
//
|
|
5970
|
+
// node_modules/typebox/build/type/engine/object/from_union.mjs
|
|
5971
5971
|
function CollapseUnionProperties(left, right) {
|
|
5972
5972
|
const sharedKeys = guard_exports.Keys(left).filter((key) => key in right);
|
|
5973
5973
|
const result = sharedKeys.reduce((result2, key) => {
|
|
@@ -5982,26 +5982,26 @@ function FromUnion3(types) {
|
|
|
5982
5982
|
return guard_exports.ShiftLeft(types, (left, right) => ReduceVariants(right, FromType8(left)), () => Unreachable());
|
|
5983
5983
|
}
|
|
5984
5984
|
|
|
5985
|
-
//
|
|
5985
|
+
// node_modules/typebox/build/type/engine/object/from_type.mjs
|
|
5986
5986
|
function FromType8(type) {
|
|
5987
5987
|
return IsCyclic(type) ? FromCyclic(type.$defs, type.$ref) : IsDependent(type) ? FromDependent(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect(type.allOf) : IsUnion(type) ? FromUnion3(type.anyOf) : IsTuple(type) ? FromTuple(type.items) : IsObject2(type) ? FromObject5(type.properties) : {};
|
|
5988
5988
|
}
|
|
5989
5989
|
|
|
5990
|
-
//
|
|
5990
|
+
// node_modules/typebox/build/type/engine/object/collapse.mjs
|
|
5991
5991
|
function CollapseToObject(type) {
|
|
5992
5992
|
const properties = FromType8(type);
|
|
5993
5993
|
const result = _Object_(properties);
|
|
5994
5994
|
return result;
|
|
5995
5995
|
}
|
|
5996
5996
|
|
|
5997
|
-
//
|
|
5997
|
+
// node_modules/typebox/build/type/engine/helpers/keys.mjs
|
|
5998
5998
|
var integerKeyPattern = new RegExp("^(?:0|[1-9][0-9]*)$");
|
|
5999
5999
|
function ConvertToIntegerKey(value) {
|
|
6000
6000
|
const normal = `${value}`;
|
|
6001
6001
|
return integerKeyPattern.test(normal) ? parseInt(normal) : value;
|
|
6002
6002
|
}
|
|
6003
6003
|
|
|
6004
|
-
//
|
|
6004
|
+
// node_modules/typebox/build/type/engine/indexed/from_array.mjs
|
|
6005
6005
|
function NormalizeLiteral(value) {
|
|
6006
6006
|
return Literal(ConvertToIntegerKey(value));
|
|
6007
6007
|
}
|
|
@@ -6021,66 +6021,66 @@ function FromArray4(type, indexer) {
|
|
|
6021
6021
|
return result;
|
|
6022
6022
|
}
|
|
6023
6023
|
|
|
6024
|
-
//
|
|
6024
|
+
// node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs
|
|
6025
6025
|
function FromCyclic2(defs, ref) {
|
|
6026
6026
|
const target = CyclicTarget(defs, ref);
|
|
6027
6027
|
const result = FromType9(target);
|
|
6028
6028
|
return result;
|
|
6029
6029
|
}
|
|
6030
6030
|
|
|
6031
|
-
//
|
|
6031
|
+
// node_modules/typebox/build/type/engine/indexable/from_dependent.mjs
|
|
6032
6032
|
function FromDependent2(if_, then_, else_) {
|
|
6033
6033
|
const evaluated = EvaluateDependent(if_, then_, else_);
|
|
6034
6034
|
const result = FromType9(evaluated);
|
|
6035
6035
|
return result;
|
|
6036
6036
|
}
|
|
6037
6037
|
|
|
6038
|
-
//
|
|
6038
|
+
// node_modules/typebox/build/type/engine/indexable/from_enum.mjs
|
|
6039
6039
|
function FromEnum(values) {
|
|
6040
6040
|
const evaluated = EvaluateEnum(values);
|
|
6041
6041
|
const result = FromType9(evaluated);
|
|
6042
6042
|
return result;
|
|
6043
6043
|
}
|
|
6044
6044
|
|
|
6045
|
-
//
|
|
6045
|
+
// node_modules/typebox/build/type/engine/indexable/from_intersect.mjs
|
|
6046
6046
|
function FromIntersect2(types) {
|
|
6047
6047
|
const evaluated = EvaluateIntersect(types);
|
|
6048
6048
|
const result = FromType9(evaluated);
|
|
6049
6049
|
return result;
|
|
6050
6050
|
}
|
|
6051
6051
|
|
|
6052
|
-
//
|
|
6052
|
+
// node_modules/typebox/build/type/engine/indexable/from_literal.mjs
|
|
6053
6053
|
function FromLiteral4(value) {
|
|
6054
6054
|
const result = [`${value}`];
|
|
6055
6055
|
return result;
|
|
6056
6056
|
}
|
|
6057
6057
|
|
|
6058
|
-
//
|
|
6058
|
+
// node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs
|
|
6059
6059
|
function FromTemplateLiteral2(pattern) {
|
|
6060
6060
|
const evaluated = EvaluateTemplateLiteral(pattern);
|
|
6061
6061
|
const result = FromType9(evaluated);
|
|
6062
6062
|
return result;
|
|
6063
6063
|
}
|
|
6064
6064
|
|
|
6065
|
-
//
|
|
6065
|
+
// node_modules/typebox/build/type/engine/indexable/from_union.mjs
|
|
6066
6066
|
function FromUnion4(types) {
|
|
6067
6067
|
return types.reduce((result, left) => {
|
|
6068
6068
|
return [...result, ...FromType9(left)];
|
|
6069
6069
|
}, []);
|
|
6070
6070
|
}
|
|
6071
6071
|
|
|
6072
|
-
//
|
|
6072
|
+
// node_modules/typebox/build/type/engine/indexable/from_type.mjs
|
|
6073
6073
|
function FromType9(type) {
|
|
6074
6074
|
return IsCyclic(type) ? FromCyclic2(type.$defs, type.$ref) : IsDependent(type) ? FromDependent2(type.if, type.then, type.else) : IsEnum2(type) ? FromEnum(type.enum) : IsIntersect(type) ? FromIntersect2(type.allOf) : IsLiteral(type) ? FromLiteral4(type.const) : IsTemplateLiteral(type) ? FromTemplateLiteral2(type.pattern) : IsUnion(type) ? FromUnion4(type.anyOf) : [];
|
|
6075
6075
|
}
|
|
6076
6076
|
|
|
6077
|
-
//
|
|
6077
|
+
// node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs
|
|
6078
6078
|
function ToIndexableKeys(type) {
|
|
6079
6079
|
const result = FromType9(type);
|
|
6080
6080
|
return result;
|
|
6081
6081
|
}
|
|
6082
6082
|
|
|
6083
|
-
//
|
|
6083
|
+
// node_modules/typebox/build/type/engine/this/expand_this.mjs
|
|
6084
6084
|
function FromTypes5(properties, types) {
|
|
6085
6085
|
return types.map((type) => FromType10(properties, type));
|
|
6086
6086
|
}
|
|
@@ -6092,7 +6092,7 @@ function ExpandThis(properties, type) {
|
|
|
6092
6092
|
return result;
|
|
6093
6093
|
}
|
|
6094
6094
|
|
|
6095
|
-
//
|
|
6095
|
+
// node_modules/typebox/build/type/engine/indexed/from_object.mjs
|
|
6096
6096
|
function IndexProperty(properties, key) {
|
|
6097
6097
|
const selectedType = key in properties ? properties[key] : Never();
|
|
6098
6098
|
const result = ExpandThis(properties, selectedType);
|
|
@@ -6126,7 +6126,7 @@ function FromObject6(properties, indexer) {
|
|
|
6126
6126
|
return result;
|
|
6127
6127
|
}
|
|
6128
6128
|
|
|
6129
|
-
//
|
|
6129
|
+
// node_modules/typebox/build/type/engine/indexed/array_indexer.mjs
|
|
6130
6130
|
function ConvertLiteral(value) {
|
|
6131
6131
|
return Literal(ConvertToIntegerKey(value));
|
|
6132
6132
|
}
|
|
@@ -6137,7 +6137,7 @@ function FormatArrayIndexer(type) {
|
|
|
6137
6137
|
return IsIntersect(type) ? Intersect(ArrayIndexerTypes(type.allOf)) : IsUnion(type) ? Union(ArrayIndexerTypes(type.anyOf)) : IsLiteral(type) ? ConvertLiteral(type.const) : type;
|
|
6138
6138
|
}
|
|
6139
6139
|
|
|
6140
|
-
//
|
|
6140
|
+
// node_modules/typebox/build/type/engine/indexed/from_tuple.mjs
|
|
6141
6141
|
function IndexElementsWithIndexer(types, indexer) {
|
|
6142
6142
|
return types.reduceRight((result, right, index) => {
|
|
6143
6143
|
const check = Extends({}, Literal(index), indexer);
|
|
@@ -6159,12 +6159,12 @@ function FromTuple2(types, indexer) {
|
|
|
6159
6159
|
);
|
|
6160
6160
|
}
|
|
6161
6161
|
|
|
6162
|
-
//
|
|
6162
|
+
// node_modules/typebox/build/type/engine/indexed/from_type.mjs
|
|
6163
6163
|
function FromType11(type, indexer) {
|
|
6164
6164
|
return IsArray2(type) ? FromArray4(type.items, indexer) : IsObject2(type) ? FromObject6(type.properties, indexer) : IsTuple(type) ? FromTuple2(type.items, indexer) : Never();
|
|
6165
6165
|
}
|
|
6166
6166
|
|
|
6167
|
-
//
|
|
6167
|
+
// node_modules/typebox/build/type/engine/indexed/instantiate.mjs
|
|
6168
6168
|
function NormalizeType(type) {
|
|
6169
6169
|
const result = IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type;
|
|
6170
6170
|
return result;
|
|
@@ -6179,7 +6179,7 @@ function IndexInstantiate(context2, state, type, indexer, options) {
|
|
|
6179
6179
|
return IndexAction(instantiatedType, instantiatedIndexer, options);
|
|
6180
6180
|
}
|
|
6181
6181
|
|
|
6182
|
-
//
|
|
6182
|
+
// node_modules/typebox/build/type/action/instance_type.mjs
|
|
6183
6183
|
function InstanceTypeDeferred(type, options = {}) {
|
|
6184
6184
|
return Deferred("InstanceType", [type], options);
|
|
6185
6185
|
}
|
|
@@ -6187,7 +6187,7 @@ function InstanceType(type, options = {}) {
|
|
|
6187
6187
|
return InstanceTypeAction(type, options);
|
|
6188
6188
|
}
|
|
6189
6189
|
|
|
6190
|
-
//
|
|
6190
|
+
// node_modules/typebox/build/type/engine/instance_type/instantiate.mjs
|
|
6191
6191
|
function InstanceTypeOperation(type) {
|
|
6192
6192
|
return IsConstructor2(type) ? type["instanceType"] : Never();
|
|
6193
6193
|
}
|
|
@@ -6200,7 +6200,7 @@ function InstanceTypeInstantiate(context2, state, type, options = {}) {
|
|
|
6200
6200
|
return InstanceTypeAction(instantiatedType, options);
|
|
6201
6201
|
}
|
|
6202
6202
|
|
|
6203
|
-
//
|
|
6203
|
+
// node_modules/typebox/build/type/action/keyof.mjs
|
|
6204
6204
|
function KeyOfDeferred(type, options = {}) {
|
|
6205
6205
|
return Deferred("KeyOf", [type], options);
|
|
6206
6206
|
}
|
|
@@ -6208,17 +6208,17 @@ function KeyOf2(type, options = {}) {
|
|
|
6208
6208
|
return KeyOfAction(type, options);
|
|
6209
6209
|
}
|
|
6210
6210
|
|
|
6211
|
-
//
|
|
6211
|
+
// node_modules/typebox/build/type/engine/keyof/from_any.mjs
|
|
6212
6212
|
function FromAny() {
|
|
6213
6213
|
return Union([Number2(), String2(), Symbol2()]);
|
|
6214
6214
|
}
|
|
6215
6215
|
|
|
6216
|
-
//
|
|
6216
|
+
// node_modules/typebox/build/type/engine/keyof/from_array.mjs
|
|
6217
6217
|
function FromArray5(_type) {
|
|
6218
6218
|
return Number2();
|
|
6219
6219
|
}
|
|
6220
6220
|
|
|
6221
|
-
//
|
|
6221
|
+
// node_modules/typebox/build/type/engine/keyof/from_object.mjs
|
|
6222
6222
|
function FromPropertyKeys(keys) {
|
|
6223
6223
|
const result = keys.reduce((result2, left) => {
|
|
6224
6224
|
return IsLiteralValue(left) ? [...result2, Literal(ConvertToIntegerKey(left))] : Unreachable();
|
|
@@ -6232,23 +6232,23 @@ function FromObject7(properties) {
|
|
|
6232
6232
|
return result;
|
|
6233
6233
|
}
|
|
6234
6234
|
|
|
6235
|
-
//
|
|
6235
|
+
// node_modules/typebox/build/type/engine/keyof/from_record.mjs
|
|
6236
6236
|
function FromRecord2(type) {
|
|
6237
6237
|
return RecordKey(type);
|
|
6238
6238
|
}
|
|
6239
6239
|
|
|
6240
|
-
//
|
|
6240
|
+
// node_modules/typebox/build/type/engine/keyof/from_tuple.mjs
|
|
6241
6241
|
function FromTuple3(types) {
|
|
6242
6242
|
const result = types.map((_, index) => Literal(index));
|
|
6243
6243
|
return EvaluateUnionFast(result);
|
|
6244
6244
|
}
|
|
6245
6245
|
|
|
6246
|
-
//
|
|
6246
|
+
// node_modules/typebox/build/type/engine/keyof/from_type.mjs
|
|
6247
6247
|
function FromType12(type) {
|
|
6248
6248
|
return IsAny(type) ? FromAny() : IsArray2(type) ? FromArray5(type.items) : IsObject2(type) ? FromObject7(type.properties) : IsRecord(type) ? FromRecord2(type) : IsTuple(type) ? FromTuple3(type.items) : Never();
|
|
6249
6249
|
}
|
|
6250
6250
|
|
|
6251
|
-
//
|
|
6251
|
+
// node_modules/typebox/build/type/engine/keyof/instantiate.mjs
|
|
6252
6252
|
function NormalizeType2(type) {
|
|
6253
6253
|
const result = IsCyclic(type) || IsDependent(type) || IsIntersect(type) || IsUnion(type) ? CollapseToObject(type) : type;
|
|
6254
6254
|
return result;
|
|
@@ -6261,7 +6261,7 @@ function KeyOfInstantiate(context2, state, type, options) {
|
|
|
6261
6261
|
return KeyOfAction(instantiatedType, options);
|
|
6262
6262
|
}
|
|
6263
6263
|
|
|
6264
|
-
//
|
|
6264
|
+
// node_modules/typebox/build/type/action/mapped.mjs
|
|
6265
6265
|
function MappedDeferred(identifier, type, as, property, options = {}) {
|
|
6266
6266
|
return Deferred("Mapped", [identifier, type, as, property], options);
|
|
6267
6267
|
}
|
|
@@ -6269,7 +6269,7 @@ function Mapped(identifier, type, as, property, options = {}) {
|
|
|
6269
6269
|
return MappedAction({}, State([], []), identifier, type, as, property, options);
|
|
6270
6270
|
}
|
|
6271
6271
|
|
|
6272
|
-
//
|
|
6272
|
+
// node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs
|
|
6273
6273
|
function FromTemplateLiteral3(pattern) {
|
|
6274
6274
|
const evaluated = EvaluateTemplateLiteral(pattern);
|
|
6275
6275
|
const result = FromType13(evaluated);
|
|
@@ -6298,7 +6298,7 @@ function MappedVariants(type) {
|
|
|
6298
6298
|
return result;
|
|
6299
6299
|
}
|
|
6300
6300
|
|
|
6301
|
-
//
|
|
6301
|
+
// node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs
|
|
6302
6302
|
function CanonicalAs(instantiatedAs) {
|
|
6303
6303
|
const result = IsTemplateLiteral(instantiatedAs) ? EvaluateTemplateLiteral(instantiatedAs.pattern) : instantiatedAs;
|
|
6304
6304
|
return result;
|
|
@@ -6328,7 +6328,7 @@ function MappedOperation(context2, state, identifier, type, as, property) {
|
|
|
6328
6328
|
return result;
|
|
6329
6329
|
}
|
|
6330
6330
|
|
|
6331
|
-
//
|
|
6331
|
+
// node_modules/typebox/build/type/engine/mapped/instantiate.mjs
|
|
6332
6332
|
function MappedAction(context2, state, identifier, type, as, property, options) {
|
|
6333
6333
|
const result = CanInstantiate([type]) ? memory_exports.Update(MappedOperation(context2, state, identifier, type, as, property), {}, options) : MappedDeferred(identifier, type, as, property, options);
|
|
6334
6334
|
return result;
|
|
@@ -6338,7 +6338,7 @@ function MappedInstantiate(context2, state, identifier, type, as, property, opti
|
|
|
6338
6338
|
return MappedAction(context2, state, identifier, instantiatedType, as, property, options);
|
|
6339
6339
|
}
|
|
6340
6340
|
|
|
6341
|
-
//
|
|
6341
|
+
// node_modules/typebox/build/type/engine/module/instantiate.mjs
|
|
6342
6342
|
function InstantiateCyclics(context2, declarations, cyclicKeys) {
|
|
6343
6343
|
const declarationContext = memory_exports.Assign(context2, declarations);
|
|
6344
6344
|
const declarationKeys = guard_exports.Keys(declarations).filter((key) => cyclicKeys.includes(key));
|
|
@@ -6365,7 +6365,7 @@ function ModuleInstantiate(context2, _state, declarations, options) {
|
|
|
6365
6365
|
return instantiatedModule;
|
|
6366
6366
|
}
|
|
6367
6367
|
|
|
6368
|
-
//
|
|
6368
|
+
// node_modules/typebox/build/type/action/non_nullable.mjs
|
|
6369
6369
|
function NonNullableDeferred(type, options = {}) {
|
|
6370
6370
|
return Deferred("NonNullable", [type], options);
|
|
6371
6371
|
}
|
|
@@ -6373,7 +6373,7 @@ function NonNullable(type, options = {}) {
|
|
|
6373
6373
|
return NonNullableAction(type, options);
|
|
6374
6374
|
}
|
|
6375
6375
|
|
|
6376
|
-
//
|
|
6376
|
+
// node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs
|
|
6377
6377
|
function NonNullableOperation(type) {
|
|
6378
6378
|
const excluded = Union([Null(), Undefined()]);
|
|
6379
6379
|
return ExcludeAction(type, excluded, {});
|
|
@@ -6387,7 +6387,7 @@ function NonNullableInstantiate(context2, state, type, options) {
|
|
|
6387
6387
|
return NonNullableAction(instantiatedType, options);
|
|
6388
6388
|
}
|
|
6389
6389
|
|
|
6390
|
-
//
|
|
6390
|
+
// node_modules/typebox/build/type/action/omit.mjs
|
|
6391
6391
|
function OmitDeferred(type, indexer, options = {}) {
|
|
6392
6392
|
return Deferred("Omit", [type, indexer], options);
|
|
6393
6393
|
}
|
|
@@ -6396,14 +6396,14 @@ function Omit(type, indexer_or_keys, options = {}) {
|
|
|
6396
6396
|
return OmitAction(type, indexer, options);
|
|
6397
6397
|
}
|
|
6398
6398
|
|
|
6399
|
-
//
|
|
6399
|
+
// node_modules/typebox/build/type/engine/indexable/to_indexable.mjs
|
|
6400
6400
|
function ToIndexable(type) {
|
|
6401
6401
|
const collapsed = CollapseToObject(type);
|
|
6402
6402
|
const result = IsObject2(collapsed) ? collapsed.properties : Unreachable();
|
|
6403
6403
|
return result;
|
|
6404
6404
|
}
|
|
6405
6405
|
|
|
6406
|
-
//
|
|
6406
|
+
// node_modules/typebox/build/type/engine/omit/from_type.mjs
|
|
6407
6407
|
function FromKeys(properties, keys) {
|
|
6408
6408
|
const result = guard_exports.Keys(properties).reduce((result2, key) => {
|
|
6409
6409
|
return keys.includes(key) ? result2 : { ...result2, [key]: properties[key] };
|
|
@@ -6418,7 +6418,7 @@ function FromType14(type, indexer) {
|
|
|
6418
6418
|
return result;
|
|
6419
6419
|
}
|
|
6420
6420
|
|
|
6421
|
-
//
|
|
6421
|
+
// node_modules/typebox/build/type/engine/omit/instantiate.mjs
|
|
6422
6422
|
function OmitAction(type, indexer, options) {
|
|
6423
6423
|
const result = CanInstantiate([type, indexer]) ? memory_exports.Update(FromType14(type, indexer), {}, options) : OmitDeferred(type, indexer, options);
|
|
6424
6424
|
return result;
|
|
@@ -6429,7 +6429,7 @@ function OmitInstantiate(context2, state, type, indexer, options) {
|
|
|
6429
6429
|
return OmitAction(instantiatedType, instantiatedIndexer, options);
|
|
6430
6430
|
}
|
|
6431
6431
|
|
|
6432
|
-
//
|
|
6432
|
+
// node_modules/typebox/build/type/action/parameters.mjs
|
|
6433
6433
|
function ParametersDeferred(type, options = {}) {
|
|
6434
6434
|
return Deferred("Parameters", [type], options);
|
|
6435
6435
|
}
|
|
@@ -6437,7 +6437,7 @@ function Parameters(type, options = {}) {
|
|
|
6437
6437
|
return ParametersAction(type, options);
|
|
6438
6438
|
}
|
|
6439
6439
|
|
|
6440
|
-
//
|
|
6440
|
+
// node_modules/typebox/build/type/engine/parameters/instantiate.mjs
|
|
6441
6441
|
function ParametersOperation(type) {
|
|
6442
6442
|
const parameters = IsFunction2(type) ? type["parameters"] : [];
|
|
6443
6443
|
const instantiatedParameters = InstantiateElements({}, State([], []), parameters);
|
|
@@ -6453,7 +6453,7 @@ function ParametersInstantiate(context2, state, type, options) {
|
|
|
6453
6453
|
return ParametersAction(instantiatedType, options);
|
|
6454
6454
|
}
|
|
6455
6455
|
|
|
6456
|
-
//
|
|
6456
|
+
// node_modules/typebox/build/type/action/partial.mjs
|
|
6457
6457
|
function PartialDeferred(type, options = {}) {
|
|
6458
6458
|
return Deferred("Partial", [type], options);
|
|
6459
6459
|
}
|
|
@@ -6461,7 +6461,7 @@ function Partial(type, options = {}) {
|
|
|
6461
6461
|
return PartialAction(type, options);
|
|
6462
6462
|
}
|
|
6463
6463
|
|
|
6464
|
-
//
|
|
6464
|
+
// node_modules/typebox/build/type/engine/partial/from_cyclic.mjs
|
|
6465
6465
|
function FromCyclic3(defs, ref) {
|
|
6466
6466
|
const target = CyclicTarget(defs, ref);
|
|
6467
6467
|
const partial = FromType15(target);
|
|
@@ -6469,27 +6469,27 @@ function FromCyclic3(defs, ref) {
|
|
|
6469
6469
|
return result;
|
|
6470
6470
|
}
|
|
6471
6471
|
|
|
6472
|
-
//
|
|
6472
|
+
// node_modules/typebox/build/type/engine/partial/from_dependent.mjs
|
|
6473
6473
|
function FromDependent3(if_, then_, else_) {
|
|
6474
6474
|
const evaluated = EvaluateDependent(if_, then_, else_);
|
|
6475
6475
|
const result = FromType15(evaluated);
|
|
6476
6476
|
return result;
|
|
6477
6477
|
}
|
|
6478
6478
|
|
|
6479
|
-
//
|
|
6479
|
+
// node_modules/typebox/build/type/engine/partial/from_intersect.mjs
|
|
6480
6480
|
function FromIntersect3(types) {
|
|
6481
6481
|
const evaluated = EvaluateIntersect(types);
|
|
6482
6482
|
const result = FromType15(evaluated);
|
|
6483
6483
|
return result;
|
|
6484
6484
|
}
|
|
6485
6485
|
|
|
6486
|
-
//
|
|
6486
|
+
// node_modules/typebox/build/type/engine/partial/from_union.mjs
|
|
6487
6487
|
function FromUnion6(types) {
|
|
6488
6488
|
const result = types.map((type) => FromType15(type));
|
|
6489
6489
|
return Union(result);
|
|
6490
6490
|
}
|
|
6491
6491
|
|
|
6492
|
-
//
|
|
6492
|
+
// node_modules/typebox/build/type/engine/partial/from_object.mjs
|
|
6493
6493
|
function FromObject8(properties) {
|
|
6494
6494
|
const mapped = guard_exports.Keys(properties).reduce((result2, left) => {
|
|
6495
6495
|
return { ...result2, [left]: AddOptional(properties[left]) };
|
|
@@ -6498,12 +6498,12 @@ function FromObject8(properties) {
|
|
|
6498
6498
|
return result;
|
|
6499
6499
|
}
|
|
6500
6500
|
|
|
6501
|
-
//
|
|
6501
|
+
// node_modules/typebox/build/type/engine/partial/from_type.mjs
|
|
6502
6502
|
function FromType15(type) {
|
|
6503
6503
|
return IsCyclic(type) ? FromCyclic3(type.$defs, type.$ref) : IsDependent(type) ? FromDependent3(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect3(type.allOf) : IsUnion(type) ? FromUnion6(type.anyOf) : IsObject2(type) ? FromObject8(type.properties) : _Object_({});
|
|
6504
6504
|
}
|
|
6505
6505
|
|
|
6506
|
-
//
|
|
6506
|
+
// node_modules/typebox/build/type/engine/partial/instantiate.mjs
|
|
6507
6507
|
function PartialAction(type, options) {
|
|
6508
6508
|
const result = CanInstantiate([type]) ? memory_exports.Update(FromType15(type), {}, options) : PartialDeferred(type, options);
|
|
6509
6509
|
return result;
|
|
@@ -6513,7 +6513,7 @@ function PartialInstantiate(context2, state, type, options) {
|
|
|
6513
6513
|
return PartialAction(instantiatedType, options);
|
|
6514
6514
|
}
|
|
6515
6515
|
|
|
6516
|
-
//
|
|
6516
|
+
// node_modules/typebox/build/type/action/pick.mjs
|
|
6517
6517
|
function PickDeferred(type, indexer, options = {}) {
|
|
6518
6518
|
return Deferred("Pick", [type, indexer], options);
|
|
6519
6519
|
}
|
|
@@ -6522,7 +6522,7 @@ function Pick(type, indexer_or_keys, options = {}) {
|
|
|
6522
6522
|
return PickAction(type, indexer, options);
|
|
6523
6523
|
}
|
|
6524
6524
|
|
|
6525
|
-
//
|
|
6525
|
+
// node_modules/typebox/build/type/engine/pick/from_type.mjs
|
|
6526
6526
|
function FromKeys2(properties, keys) {
|
|
6527
6527
|
const result = guard_exports.Keys(properties).reduce((result2, key) => {
|
|
6528
6528
|
return keys.includes(key) ? memory_exports.Assign(result2, { [key]: properties[key] }) : result2;
|
|
@@ -6537,7 +6537,7 @@ function FromType16(type, indexer) {
|
|
|
6537
6537
|
return result;
|
|
6538
6538
|
}
|
|
6539
6539
|
|
|
6540
|
-
//
|
|
6540
|
+
// node_modules/typebox/build/type/engine/pick/instantiate.mjs
|
|
6541
6541
|
function PickAction(type, indexer, options) {
|
|
6542
6542
|
const result = CanInstantiate([type, indexer]) ? memory_exports.Update(FromType16(type, indexer), {}, options) : PickDeferred(type, indexer, options);
|
|
6543
6543
|
return result;
|
|
@@ -6548,7 +6548,7 @@ function PickInstantiate(context2, state, type, indexer, options) {
|
|
|
6548
6548
|
return PickAction(instantiatedType, instantiatedIndexer, options);
|
|
6549
6549
|
}
|
|
6550
6550
|
|
|
6551
|
-
//
|
|
6551
|
+
// node_modules/typebox/build/type/action/readonly_object.mjs
|
|
6552
6552
|
function ReadonlyObjectDeferred(type, options = {}) {
|
|
6553
6553
|
return Deferred("ReadonlyObject", [type], options);
|
|
6554
6554
|
}
|
|
@@ -6557,13 +6557,13 @@ function ReadonlyObject(type, options = {}) {
|
|
|
6557
6557
|
}
|
|
6558
6558
|
var ReadonlyType = ReadonlyObject;
|
|
6559
6559
|
|
|
6560
|
-
//
|
|
6560
|
+
// node_modules/typebox/build/type/engine/readonly_object/from_array.mjs
|
|
6561
6561
|
function FromArray6(type) {
|
|
6562
6562
|
const result = AddImmutable(_Array_(type));
|
|
6563
6563
|
return result;
|
|
6564
6564
|
}
|
|
6565
6565
|
|
|
6566
|
-
//
|
|
6566
|
+
// node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs
|
|
6567
6567
|
function FromCyclic4(defs, ref) {
|
|
6568
6568
|
const target = CyclicTarget(defs, ref);
|
|
6569
6569
|
const partial = FromType17(target);
|
|
@@ -6571,21 +6571,21 @@ function FromCyclic4(defs, ref) {
|
|
|
6571
6571
|
return result;
|
|
6572
6572
|
}
|
|
6573
6573
|
|
|
6574
|
-
//
|
|
6574
|
+
// node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs
|
|
6575
6575
|
function FromDependent4(if_, then_, else_) {
|
|
6576
6576
|
const evaluated = EvaluateDependent(if_, then_, else_);
|
|
6577
6577
|
const result = FromType17(evaluated);
|
|
6578
6578
|
return result;
|
|
6579
6579
|
}
|
|
6580
6580
|
|
|
6581
|
-
//
|
|
6581
|
+
// node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs
|
|
6582
6582
|
function FromIntersect4(types) {
|
|
6583
6583
|
const evaluated = EvaluateIntersect(types);
|
|
6584
6584
|
const result = FromType17(evaluated);
|
|
6585
6585
|
return result;
|
|
6586
6586
|
}
|
|
6587
6587
|
|
|
6588
|
-
//
|
|
6588
|
+
// node_modules/typebox/build/type/engine/readonly_object/from_object.mjs
|
|
6589
6589
|
function FromObject9(properties) {
|
|
6590
6590
|
const mapped = guard_exports.Keys(properties).reduce((result2, left) => {
|
|
6591
6591
|
return { ...result2, [left]: AddReadonly(properties[left]) };
|
|
@@ -6594,24 +6594,24 @@ function FromObject9(properties) {
|
|
|
6594
6594
|
return result;
|
|
6595
6595
|
}
|
|
6596
6596
|
|
|
6597
|
-
//
|
|
6597
|
+
// node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs
|
|
6598
6598
|
function FromTuple4(types) {
|
|
6599
6599
|
const result = AddImmutable(Tuple(types));
|
|
6600
6600
|
return result;
|
|
6601
6601
|
}
|
|
6602
6602
|
|
|
6603
|
-
//
|
|
6603
|
+
// node_modules/typebox/build/type/engine/readonly_object/from_union.mjs
|
|
6604
6604
|
function FromUnion7(types) {
|
|
6605
6605
|
const result = types.map((type) => FromType17(type));
|
|
6606
6606
|
return Union(result);
|
|
6607
6607
|
}
|
|
6608
6608
|
|
|
6609
|
-
//
|
|
6609
|
+
// node_modules/typebox/build/type/engine/readonly_object/from_type.mjs
|
|
6610
6610
|
function FromType17(type) {
|
|
6611
6611
|
return IsArray2(type) ? FromArray6(type.items) : IsCyclic(type) ? FromCyclic4(type.$defs, type.$ref) : IsDependent(type) ? FromDependent4(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect4(type.allOf) : IsObject2(type) ? FromObject9(type.properties) : IsTuple(type) ? FromTuple4(type.items) : IsUnion(type) ? FromUnion7(type.anyOf) : type;
|
|
6612
6612
|
}
|
|
6613
6613
|
|
|
6614
|
-
//
|
|
6614
|
+
// node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs
|
|
6615
6615
|
function ReadonlyObjectAction(type, options) {
|
|
6616
6616
|
const result = CanInstantiate([type]) ? memory_exports.Update(FromType17(type), {}, options) : ReadonlyObjectDeferred(type);
|
|
6617
6617
|
return result;
|
|
@@ -6621,12 +6621,12 @@ function ReadonlyObjectInstantiate(context2, state, type, options) {
|
|
|
6621
6621
|
return ReadonlyObjectAction(instantiatedType, options);
|
|
6622
6622
|
}
|
|
6623
6623
|
|
|
6624
|
-
//
|
|
6624
|
+
// node_modules/typebox/build/type/engine/ref/instantiate.mjs
|
|
6625
6625
|
function RefInstantiate(context2, state, type, ref) {
|
|
6626
6626
|
return state.visited.includes(ref) ? type : ref in context2 ? InstantiateType(context2, State(state["callstack"], [...state["visited"], ref]), context2[ref]) : type;
|
|
6627
6627
|
}
|
|
6628
6628
|
|
|
6629
|
-
//
|
|
6629
|
+
// node_modules/typebox/build/type/engine/required/from_cyclic.mjs
|
|
6630
6630
|
function FromCyclic5(defs, ref) {
|
|
6631
6631
|
const target = CyclicTarget(defs, ref);
|
|
6632
6632
|
const partial = FromType18(target);
|
|
@@ -6634,27 +6634,27 @@ function FromCyclic5(defs, ref) {
|
|
|
6634
6634
|
return result;
|
|
6635
6635
|
}
|
|
6636
6636
|
|
|
6637
|
-
//
|
|
6637
|
+
// node_modules/typebox/build/type/engine/required/from_dependent.mjs
|
|
6638
6638
|
function FromDependent5(if_, then_, else_) {
|
|
6639
6639
|
const evaluated = EvaluateDependent(if_, then_, else_);
|
|
6640
6640
|
const result = FromType18(evaluated);
|
|
6641
6641
|
return result;
|
|
6642
6642
|
}
|
|
6643
6643
|
|
|
6644
|
-
//
|
|
6644
|
+
// node_modules/typebox/build/type/engine/required/from_intersect.mjs
|
|
6645
6645
|
function FromIntersect5(types) {
|
|
6646
6646
|
const evaluated = EvaluateIntersect(types);
|
|
6647
6647
|
const result = FromType18(evaluated);
|
|
6648
6648
|
return result;
|
|
6649
6649
|
}
|
|
6650
6650
|
|
|
6651
|
-
//
|
|
6651
|
+
// node_modules/typebox/build/type/engine/required/from_union.mjs
|
|
6652
6652
|
function FromUnion8(types) {
|
|
6653
6653
|
const result = types.map((type) => FromType18(type));
|
|
6654
6654
|
return Union(result);
|
|
6655
6655
|
}
|
|
6656
6656
|
|
|
6657
|
-
//
|
|
6657
|
+
// node_modules/typebox/build/type/engine/required/from_object.mjs
|
|
6658
6658
|
function FromObject10(properties) {
|
|
6659
6659
|
const mapped = guard_exports.Keys(properties).reduce((result2, left) => {
|
|
6660
6660
|
return { ...result2, [left]: RemoveOptional(properties[left]) };
|
|
@@ -6663,12 +6663,12 @@ function FromObject10(properties) {
|
|
|
6663
6663
|
return result;
|
|
6664
6664
|
}
|
|
6665
6665
|
|
|
6666
|
-
//
|
|
6666
|
+
// node_modules/typebox/build/type/engine/required/from_type.mjs
|
|
6667
6667
|
function FromType18(type) {
|
|
6668
6668
|
return IsCyclic(type) ? FromCyclic5(type.$defs, type.$ref) : IsDependent(type) ? FromDependent5(type.if, type.then, type.else) : IsIntersect(type) ? FromIntersect5(type.allOf) : IsUnion(type) ? FromUnion8(type.anyOf) : IsObject2(type) ? FromObject10(type.properties) : _Object_({});
|
|
6669
6669
|
}
|
|
6670
6670
|
|
|
6671
|
-
//
|
|
6671
|
+
// node_modules/typebox/build/type/action/required.mjs
|
|
6672
6672
|
function RequiredDeferred(type, options = {}) {
|
|
6673
6673
|
return Deferred("Required", [type], options);
|
|
6674
6674
|
}
|
|
@@ -6676,7 +6676,7 @@ function Required(type, options = {}) {
|
|
|
6676
6676
|
return RequiredAction(type, options);
|
|
6677
6677
|
}
|
|
6678
6678
|
|
|
6679
|
-
//
|
|
6679
|
+
// node_modules/typebox/build/type/engine/required/instantiate.mjs
|
|
6680
6680
|
function RequiredAction(type, options) {
|
|
6681
6681
|
const result = CanInstantiate([type]) ? memory_exports.Update(FromType18(type), {}, options) : RequiredDeferred(type, options);
|
|
6682
6682
|
return result;
|
|
@@ -6686,7 +6686,7 @@ function RequiredInstantiate(context2, state, type, options) {
|
|
|
6686
6686
|
return RequiredAction(instaniatedType, options);
|
|
6687
6687
|
}
|
|
6688
6688
|
|
|
6689
|
-
//
|
|
6689
|
+
// node_modules/typebox/build/type/action/return_type.mjs
|
|
6690
6690
|
function ReturnTypeDeferred(type, options = {}) {
|
|
6691
6691
|
return Deferred("ReturnType", [type], options);
|
|
6692
6692
|
}
|
|
@@ -6694,7 +6694,7 @@ function ReturnType(type, options = {}) {
|
|
|
6694
6694
|
return ReturnTypeAction(type, options);
|
|
6695
6695
|
}
|
|
6696
6696
|
|
|
6697
|
-
//
|
|
6697
|
+
// node_modules/typebox/build/type/engine/return_type/instantiate.mjs
|
|
6698
6698
|
function ReturnTypeOperation(type) {
|
|
6699
6699
|
return IsFunction2(type) ? type["returnType"] : Never();
|
|
6700
6700
|
}
|
|
@@ -6707,7 +6707,7 @@ function ReturnTypeInstantiate(context2, state, type, options = {}) {
|
|
|
6707
6707
|
return ReturnTypeAction(instantiatedType, options);
|
|
6708
6708
|
}
|
|
6709
6709
|
|
|
6710
|
-
//
|
|
6710
|
+
// node_modules/typebox/build/type/action/with.mjs
|
|
6711
6711
|
function WithDeferred(type, options) {
|
|
6712
6712
|
return Deferred("With", [type, options], {});
|
|
6713
6713
|
}
|
|
@@ -6715,7 +6715,7 @@ function With2(type, options) {
|
|
|
6715
6715
|
return WithAction(type, options);
|
|
6716
6716
|
}
|
|
6717
6717
|
|
|
6718
|
-
//
|
|
6718
|
+
// node_modules/typebox/build/type/engine/with/instantiate.mjs
|
|
6719
6719
|
function WithAction(type, options) {
|
|
6720
6720
|
const result = CanInstantiate([type]) ? memory_exports.Update(type, {}, options) : WithDeferred(type, options);
|
|
6721
6721
|
return result;
|
|
@@ -6725,7 +6725,7 @@ function WithInstantiate(context2, state, type, options) {
|
|
|
6725
6725
|
return WithAction(instaniatedType, options);
|
|
6726
6726
|
}
|
|
6727
6727
|
|
|
6728
|
-
//
|
|
6728
|
+
// node_modules/typebox/build/type/engine/rest/spread.mjs
|
|
6729
6729
|
function SpreadElement(type) {
|
|
6730
6730
|
const result = IsRest(type) ? IsTuple(type.items) ? RestSpread(type.items.items) : IsInfer(type.items) ? [type] : IsRef2(type.items) ? [type] : [Never()] : [type];
|
|
6731
6731
|
return result;
|
|
@@ -6737,7 +6737,7 @@ function RestSpread(types) {
|
|
|
6737
6737
|
return result;
|
|
6738
6738
|
}
|
|
6739
6739
|
|
|
6740
|
-
//
|
|
6740
|
+
// node_modules/typebox/build/type/engine/instantiate.mjs
|
|
6741
6741
|
function State(callstack, visited) {
|
|
6742
6742
|
return { callstack, visited };
|
|
6743
6743
|
}
|
|
@@ -6785,7 +6785,7 @@ function Instantiate(context2, type) {
|
|
|
6785
6785
|
return InstantiateType(context2, State([], []), type);
|
|
6786
6786
|
}
|
|
6787
6787
|
|
|
6788
|
-
//
|
|
6788
|
+
// node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs
|
|
6789
6789
|
function AddImmutableOperation(type) {
|
|
6790
6790
|
return memory_exports.Update(type, { "~immutable": true }, {});
|
|
6791
6791
|
}
|
|
@@ -6798,7 +6798,7 @@ function AddImmutableInstantiate(context2, state, type, options) {
|
|
|
6798
6798
|
return AddImmutableAction(instantiatedType, options);
|
|
6799
6799
|
}
|
|
6800
6800
|
|
|
6801
|
-
//
|
|
6801
|
+
// node_modules/typebox/build/type/action/_add_immutable.mjs
|
|
6802
6802
|
function AddImmutableDeferred(type, options = {}) {
|
|
6803
6803
|
return Deferred("AddImmutable", [type], options);
|
|
6804
6804
|
}
|
|
@@ -6806,7 +6806,7 @@ function AddImmutable(type, options = {}) {
|
|
|
6806
6806
|
return AddImmutableAction(type, options);
|
|
6807
6807
|
}
|
|
6808
6808
|
|
|
6809
|
-
//
|
|
6809
|
+
// node_modules/typebox/build/type/action/evaluate.mjs
|
|
6810
6810
|
function EvaluateDeferred(type, options = {}) {
|
|
6811
6811
|
return Deferred("Evaluate", [type], options);
|
|
6812
6812
|
}
|
|
@@ -6814,7 +6814,7 @@ function Evaluate(type, options = {}) {
|
|
|
6814
6814
|
return EvaluateAction(type, options);
|
|
6815
6815
|
}
|
|
6816
6816
|
|
|
6817
|
-
//
|
|
6817
|
+
// node_modules/typebox/build/type/action/module.mjs
|
|
6818
6818
|
function ModuleDeferred(declarations, options = {}) {
|
|
6819
6819
|
return Deferred("Module", [declarations], options);
|
|
6820
6820
|
}
|
|
@@ -6822,7 +6822,7 @@ function Module2(declarations, options = {}) {
|
|
|
6822
6822
|
return ModuleInstantiate({}, State([], []), declarations, options);
|
|
6823
6823
|
}
|
|
6824
6824
|
|
|
6825
|
-
//
|
|
6825
|
+
// node_modules/typebox/build/type/engine/priority/priority.mjs
|
|
6826
6826
|
function Comparer(left, right) {
|
|
6827
6827
|
const compareResult = Compare(left, right);
|
|
6828
6828
|
return guard_exports.IsEqual(compareResult, CompareResultRightInside) ? 1 : guard_exports.IsEqual(compareResult, CompareResultDisjoint) ? 1 : 0;
|
|
@@ -6838,7 +6838,7 @@ function Priority(types) {
|
|
|
6838
6838
|
return result;
|
|
6839
6839
|
}
|
|
6840
6840
|
|
|
6841
|
-
//
|
|
6841
|
+
// node_modules/typebox/build/type/script/script.mjs
|
|
6842
6842
|
function Script2(...args) {
|
|
6843
6843
|
const [context2, input, options] = arguments_exports.Match(args, {
|
|
6844
6844
|
2: (script, options2) => guard_exports.IsString(script) ? [{}, script, options2] : [script, options2, {}],
|
|
@@ -6850,19 +6850,19 @@ function Script2(...args) {
|
|
|
6850
6850
|
return memory_exports.Update(parsed, {}, options);
|
|
6851
6851
|
}
|
|
6852
6852
|
|
|
6853
|
-
//
|
|
6853
|
+
// node_modules/typebox/build/value/clean/from_array.mjs
|
|
6854
6854
|
function FromArray7(context2, type, value) {
|
|
6855
6855
|
if (!guard_exports.IsArray(value))
|
|
6856
6856
|
return value;
|
|
6857
6857
|
return value.map((value2) => FromType19(context2, type.items, value2));
|
|
6858
6858
|
}
|
|
6859
6859
|
|
|
6860
|
-
//
|
|
6860
|
+
// node_modules/typebox/build/value/clean/from_cyclic.mjs
|
|
6861
6861
|
function FromCyclic6(context2, type, value) {
|
|
6862
6862
|
return FromType19({ ...context2, ...type.$defs }, Ref2(type.$ref), value);
|
|
6863
6863
|
}
|
|
6864
6864
|
|
|
6865
|
-
//
|
|
6865
|
+
// node_modules/typebox/build/value/clean/from_intersect.mjs
|
|
6866
6866
|
function EvaluateIntersection(context2, type) {
|
|
6867
6867
|
const additionalProperties = guard_exports.HasPropertyKey(type, "unevaluatedProperties") ? { additionalProperties: type.unevaluatedProperties } : {};
|
|
6868
6868
|
const instantiated = Instantiate(context2, type);
|
|
@@ -6874,13 +6874,13 @@ function FromIntersect6(context2, type, value) {
|
|
|
6874
6874
|
return FromType19(context2, evaluated, value);
|
|
6875
6875
|
}
|
|
6876
6876
|
|
|
6877
|
-
//
|
|
6877
|
+
// node_modules/typebox/build/value/clean/additional.mjs
|
|
6878
6878
|
function GetAdditionalProperties(type) {
|
|
6879
6879
|
const additionalProperties = guard_exports.HasPropertyKey(type, "additionalProperties") ? type.additionalProperties : void 0;
|
|
6880
6880
|
return additionalProperties;
|
|
6881
6881
|
}
|
|
6882
6882
|
|
|
6883
|
-
//
|
|
6883
|
+
// node_modules/typebox/build/value/clean/from_object.mjs
|
|
6884
6884
|
function FromObject11(context2, type, value) {
|
|
6885
6885
|
if (!guard_exports.IsObject(value) || guard_exports.IsArray(value))
|
|
6886
6886
|
return value;
|
|
@@ -6903,7 +6903,7 @@ function FromObject11(context2, type, value) {
|
|
|
6903
6903
|
return value;
|
|
6904
6904
|
}
|
|
6905
6905
|
|
|
6906
|
-
//
|
|
6906
|
+
// node_modules/typebox/build/value/clean/from_record.mjs
|
|
6907
6907
|
function FromRecord3(context2, type, value) {
|
|
6908
6908
|
if (!guard_exports.IsObject(value))
|
|
6909
6909
|
return value;
|
|
@@ -6927,12 +6927,12 @@ function FromRecord3(context2, type, value) {
|
|
|
6927
6927
|
return value;
|
|
6928
6928
|
}
|
|
6929
6929
|
|
|
6930
|
-
//
|
|
6930
|
+
// node_modules/typebox/build/value/clean/from_ref.mjs
|
|
6931
6931
|
function FromRef5(context2, type, value) {
|
|
6932
6932
|
return guard_exports.HasPropertyKey(context2, type.$ref) ? FromType19(context2, context2[type.$ref], value) : value;
|
|
6933
6933
|
}
|
|
6934
6934
|
|
|
6935
|
-
//
|
|
6935
|
+
// node_modules/typebox/build/value/clean/from_tuple.mjs
|
|
6936
6936
|
function FromTuple5(context2, schema, value) {
|
|
6937
6937
|
if (!guard_exports.IsArray(value))
|
|
6938
6938
|
return value;
|
|
@@ -6943,12 +6943,12 @@ function FromTuple5(context2, schema, value) {
|
|
|
6943
6943
|
return guard_exports.IsGreaterThan(value.length, length) ? value.slice(0, length) : value;
|
|
6944
6944
|
}
|
|
6945
6945
|
|
|
6946
|
-
//
|
|
6946
|
+
// node_modules/typebox/build/value/clone/clone.mjs
|
|
6947
6947
|
function Clone2(value) {
|
|
6948
6948
|
return Clone(value);
|
|
6949
6949
|
}
|
|
6950
6950
|
|
|
6951
|
-
//
|
|
6951
|
+
// node_modules/typebox/build/value/clean/from_union.mjs
|
|
6952
6952
|
function FromUnion9(context2, type, value) {
|
|
6953
6953
|
for (const schema of type.anyOf) {
|
|
6954
6954
|
const clean = FromType19(context2, schema, Clone2(value));
|
|
@@ -6958,12 +6958,12 @@ function FromUnion9(context2, type, value) {
|
|
|
6958
6958
|
return value;
|
|
6959
6959
|
}
|
|
6960
6960
|
|
|
6961
|
-
//
|
|
6961
|
+
// node_modules/typebox/build/value/clean/from_type.mjs
|
|
6962
6962
|
function FromType19(context2, type, value) {
|
|
6963
6963
|
return IsArray2(type) ? FromArray7(context2, type, value) : IsCyclic(type) ? FromCyclic6(context2, type, value) : IsIntersect(type) ? FromIntersect6(context2, type, value) : IsObject2(type) ? FromObject11(context2, type, value) : IsRecord(type) ? FromRecord3(context2, type, value) : IsRef2(type) ? FromRef5(context2, type, value) : IsTuple(type) ? FromTuple5(context2, type, value) : IsUnion(type) ? FromUnion9(context2, type, value) : value;
|
|
6964
6964
|
}
|
|
6965
6965
|
|
|
6966
|
-
//
|
|
6966
|
+
// node_modules/typebox/build/value/shared/union_priority_sort.mjs
|
|
6967
6967
|
function Modifiers(type, next) {
|
|
6968
6968
|
for (const key of guard_default.Keys(type)) {
|
|
6969
6969
|
if (guard_default.HasPropertyKey(next, key))
|
|
@@ -6993,7 +6993,7 @@ function UnionPrioritySort(type) {
|
|
|
6993
6993
|
return result;
|
|
6994
6994
|
}
|
|
6995
6995
|
|
|
6996
|
-
//
|
|
6996
|
+
// node_modules/typebox/build/value/clean/clean.mjs
|
|
6997
6997
|
function Clean(...args) {
|
|
6998
6998
|
const [context2, type, value] = arguments_exports.Match(args, {
|
|
6999
6999
|
3: (context3, type2, value2) => [context3, type2, value2],
|
|
@@ -7003,7 +7003,7 @@ function Clean(...args) {
|
|
|
7003
7003
|
return FromType19(context2, sorted, value);
|
|
7004
7004
|
}
|
|
7005
7005
|
|
|
7006
|
-
//
|
|
7006
|
+
// node_modules/typebox/build/value/convert/try/try.mjs
|
|
7007
7007
|
var try_exports = {};
|
|
7008
7008
|
__export(try_exports, {
|
|
7009
7009
|
Fail: () => Fail,
|
|
@@ -7018,7 +7018,7 @@ __export(try_exports, {
|
|
|
7018
7018
|
TryUndefined: () => TryUndefined
|
|
7019
7019
|
});
|
|
7020
7020
|
|
|
7021
|
-
//
|
|
7021
|
+
// node_modules/typebox/build/value/convert/try/try_result.mjs
|
|
7022
7022
|
function IsOk(value) {
|
|
7023
7023
|
return guard_exports.IsObject(value) && guard_exports.HasPropertyKey(value, "value");
|
|
7024
7024
|
}
|
|
@@ -7029,12 +7029,12 @@ function Fail() {
|
|
|
7029
7029
|
return void 0;
|
|
7030
7030
|
}
|
|
7031
7031
|
|
|
7032
|
-
//
|
|
7032
|
+
// node_modules/typebox/build/value/convert/try/try_array.mjs
|
|
7033
7033
|
function TryArray(value) {
|
|
7034
7034
|
return guard_exports.IsArray(value) ? Ok(value) : Ok([value]);
|
|
7035
7035
|
}
|
|
7036
7036
|
|
|
7037
|
-
//
|
|
7037
|
+
// node_modules/typebox/build/value/convert/try/try_bigint.mjs
|
|
7038
7038
|
function FromBoolean2(value) {
|
|
7039
7039
|
return guard_exports.IsEqual(value, true) ? Ok(BigInt(1)) : Ok(BigInt(0));
|
|
7040
7040
|
}
|
|
@@ -7058,7 +7058,7 @@ function TryBigInt(value) {
|
|
|
7058
7058
|
return guard_exports.IsBigInt(value) ? Ok(value) : guard_exports.IsBoolean(value) ? FromBoolean2(value) : guard_exports.IsNumber(value) ? Ok(BigInt(Math.trunc(value))) : guard_exports.IsNull(value) ? Ok(BigInt(0)) : guard_exports.IsString(value) ? FromString2(value) : guard_exports.IsUndefined(value) ? Ok(BigInt(0)) : Fail();
|
|
7059
7059
|
}
|
|
7060
7060
|
|
|
7061
|
-
//
|
|
7061
|
+
// node_modules/typebox/build/value/convert/try/try_boolean.mjs
|
|
7062
7062
|
function FromBigInt2(value) {
|
|
7063
7063
|
return guard_exports.IsEqual(value, BigInt(0)) ? Ok(false) : guard_exports.IsEqual(value, BigInt(1)) ? Ok(true) : Fail();
|
|
7064
7064
|
}
|
|
@@ -7072,7 +7072,7 @@ function TryBoolean(value) {
|
|
|
7072
7072
|
return guard_exports.IsBigInt(value) ? FromBigInt2(value) : guard_exports.IsBoolean(value) ? Ok(value) : guard_exports.IsNumber(value) ? FromNumber2(value) : guard_exports.IsNull(value) ? Ok(false) : guard_exports.IsString(value) ? FromString3(value) : guard_exports.IsUndefined(value) ? Ok(false) : Fail();
|
|
7073
7073
|
}
|
|
7074
7074
|
|
|
7075
|
-
//
|
|
7075
|
+
// node_modules/typebox/build/value/convert/try/try_null.mjs
|
|
7076
7076
|
function FromBigInt3(value) {
|
|
7077
7077
|
return guard_exports.IsEqual(value, BigInt(0)) ? Ok(null) : Fail();
|
|
7078
7078
|
}
|
|
@@ -7091,7 +7091,7 @@ function TryNull(value) {
|
|
|
7091
7091
|
return guard_exports.IsBigInt(value) ? FromBigInt3(value) : guard_exports.IsBoolean(value) ? FromBoolean3(value) : guard_exports.IsNumber(value) ? FromNumber3(value) : guard_exports.IsNull(value) ? Ok(null) : guard_exports.IsString(value) ? FromString4(value) : guard_exports.IsUndefined(value) ? Ok(null) : Fail();
|
|
7092
7092
|
}
|
|
7093
7093
|
|
|
7094
|
-
//
|
|
7094
|
+
// node_modules/typebox/build/value/convert/try/try_number.mjs
|
|
7095
7095
|
var maxBigInt = BigInt(Number.MAX_SAFE_INTEGER);
|
|
7096
7096
|
var minBigInt = BigInt(Number.MIN_SAFE_INTEGER);
|
|
7097
7097
|
function FromBigInt4(value) {
|
|
@@ -7118,12 +7118,12 @@ function TryNumber(value) {
|
|
|
7118
7118
|
return guard_exports.IsBigInt(value) ? FromBigInt4(value) : guard_exports.IsBoolean(value) ? FromBoolean4(value) : guard_exports.IsNumber(value) ? Ok(value) : guard_exports.IsNull(value) ? Ok(0) : guard_exports.IsString(value) ? FromString5(value) : guard_exports.IsUndefined(value) ? Ok(0) : Fail();
|
|
7119
7119
|
}
|
|
7120
7120
|
|
|
7121
|
-
//
|
|
7121
|
+
// node_modules/typebox/build/value/convert/try/try_string.mjs
|
|
7122
7122
|
function TryString(value) {
|
|
7123
7123
|
return guard_exports.IsBigInt(value) ? Ok(value.toString()) : guard_exports.IsBoolean(value) ? Ok(value.toString()) : guard_exports.IsNumber(value) ? Ok(value.toString()) : guard_exports.IsNull(value) ? Ok("null") : guard_exports.IsString(value) ? Ok(value) : guard_exports.IsUndefined(value) ? Ok("") : Fail();
|
|
7124
7124
|
}
|
|
7125
7125
|
|
|
7126
|
-
//
|
|
7126
|
+
// node_modules/typebox/build/value/convert/try/try_undefined.mjs
|
|
7127
7127
|
function FromBigInt5(value) {
|
|
7128
7128
|
return guard_exports.IsEqual(value, BigInt(0)) ? Ok(void 0) : Fail();
|
|
7129
7129
|
}
|
|
@@ -7142,48 +7142,48 @@ function TryUndefined(value) {
|
|
|
7142
7142
|
return guard_exports.IsBigInt(value) ? FromBigInt5(value) : guard_exports.IsBoolean(value) ? FromBoolean5(value) : guard_exports.IsNumber(value) ? FromNumber4(value) : guard_exports.IsNull(value) ? Ok(void 0) : guard_exports.IsString(value) ? FromString6(value) : guard_exports.IsUndefined(value) ? Ok(value) : Fail();
|
|
7143
7143
|
}
|
|
7144
7144
|
|
|
7145
|
-
//
|
|
7145
|
+
// node_modules/typebox/build/value/convert/from_array.mjs
|
|
7146
7146
|
function FromArray8(context2, type, value) {
|
|
7147
7147
|
const result = try_exports.TryArray(value);
|
|
7148
7148
|
return result.value.map((value2) => FromType21(context2, type.items, value2));
|
|
7149
7149
|
}
|
|
7150
7150
|
|
|
7151
|
-
//
|
|
7151
|
+
// node_modules/typebox/build/value/convert/from_bigint.mjs
|
|
7152
7152
|
function FromBigInt6(_context, _type, value) {
|
|
7153
7153
|
const result = try_exports.TryBigInt(value);
|
|
7154
7154
|
return try_exports.IsOk(result) ? result.value : value;
|
|
7155
7155
|
}
|
|
7156
7156
|
|
|
7157
|
-
//
|
|
7157
|
+
// node_modules/typebox/build/value/convert/from_boolean.mjs
|
|
7158
7158
|
function FromBoolean6(_context, _type, value) {
|
|
7159
7159
|
const result = try_exports.TryBoolean(value);
|
|
7160
7160
|
return try_exports.IsOk(result) ? result.value : value;
|
|
7161
7161
|
}
|
|
7162
7162
|
|
|
7163
|
-
//
|
|
7163
|
+
// node_modules/typebox/build/value/convert/from_cyclic.mjs
|
|
7164
7164
|
function FromCyclic7(context2, type, value) {
|
|
7165
7165
|
return FromType21({ ...context2, ...type.$defs }, Ref2(type.$ref), value);
|
|
7166
7166
|
}
|
|
7167
7167
|
|
|
7168
|
-
//
|
|
7168
|
+
// node_modules/typebox/build/value/convert/from_enum.mjs
|
|
7169
7169
|
function FromEnum3(context2, type, value) {
|
|
7170
7170
|
return FromType21(context2, Evaluate(type), value);
|
|
7171
7171
|
}
|
|
7172
7172
|
|
|
7173
|
-
//
|
|
7173
|
+
// node_modules/typebox/build/value/convert/from_integer.mjs
|
|
7174
7174
|
function FromInteger(_context, _type, value) {
|
|
7175
7175
|
const result = try_exports.TryNumber(value);
|
|
7176
7176
|
return try_exports.IsOk(result) ? Math.trunc(result.value) : value;
|
|
7177
7177
|
}
|
|
7178
7178
|
|
|
7179
|
-
//
|
|
7179
|
+
// node_modules/typebox/build/value/convert/from_intersect.mjs
|
|
7180
7180
|
function FromIntersect7(context2, type, value) {
|
|
7181
7181
|
const instantiated = Instantiate(context2, type);
|
|
7182
7182
|
const evaluated = Evaluate(instantiated);
|
|
7183
7183
|
return FromType21(context2, evaluated, value);
|
|
7184
7184
|
}
|
|
7185
7185
|
|
|
7186
|
-
//
|
|
7186
|
+
// node_modules/typebox/build/value/convert/from_literal.mjs
|
|
7187
7187
|
function FromLiteralBigInt(_context, type, value) {
|
|
7188
7188
|
const result = try_exports.TryBigInt(value);
|
|
7189
7189
|
return try_exports.IsOk(result) && guard_exports.IsEqual(type.const, result.value) ? result.value : value;
|
|
@@ -7206,19 +7206,19 @@ function FromLiteral6(context2, type, value) {
|
|
|
7206
7206
|
return IsLiteralBigInt(type) ? FromLiteralBigInt(context2, type, value) : IsLiteralBoolean(type) ? FromLiteralBoolean(context2, type, value) : IsLiteralNumber(type) ? FromLiteralNumber(context2, type, value) : IsLiteralString(type) ? FromLiteralString(context2, type, value) : Unreachable();
|
|
7207
7207
|
}
|
|
7208
7208
|
|
|
7209
|
-
//
|
|
7209
|
+
// node_modules/typebox/build/value/convert/from_null.mjs
|
|
7210
7210
|
function FromNull2(_context, _type, value) {
|
|
7211
7211
|
const result = try_exports.TryNull(value);
|
|
7212
7212
|
return try_exports.IsOk(result) ? result.value : value;
|
|
7213
7213
|
}
|
|
7214
7214
|
|
|
7215
|
-
//
|
|
7215
|
+
// node_modules/typebox/build/value/convert/from_number.mjs
|
|
7216
7216
|
function FromNumber5(_context, _type, value) {
|
|
7217
7217
|
const result = try_exports.TryNumber(value);
|
|
7218
7218
|
return try_exports.IsOk(result) ? result.value : value;
|
|
7219
7219
|
}
|
|
7220
7220
|
|
|
7221
|
-
//
|
|
7221
|
+
// node_modules/typebox/build/value/convert/from_additional.mjs
|
|
7222
7222
|
function FromAdditionalProperties(context2, entries, additionalProperties, value) {
|
|
7223
7223
|
const keys = guard_exports.Keys(value);
|
|
7224
7224
|
for (const [regexp, _] of entries) {
|
|
@@ -7231,12 +7231,12 @@ function FromAdditionalProperties(context2, entries, additionalProperties, value
|
|
|
7231
7231
|
return value;
|
|
7232
7232
|
}
|
|
7233
7233
|
|
|
7234
|
-
//
|
|
7234
|
+
// node_modules/typebox/build/value/shared/optional_undefined.mjs
|
|
7235
7235
|
function IsOptionalUndefined(property, key, value) {
|
|
7236
7236
|
return IsOptional(property) && guard_exports.IsUndefined(value[key]);
|
|
7237
7237
|
}
|
|
7238
7238
|
|
|
7239
|
-
//
|
|
7239
|
+
// node_modules/typebox/build/value/convert/from_object.mjs
|
|
7240
7240
|
function FromProperties5(context2, type, value) {
|
|
7241
7241
|
const entries = guard_exports.EntriesRegExp(type.properties);
|
|
7242
7242
|
const keys = guard_exports.Keys(value);
|
|
@@ -7253,7 +7253,7 @@ function FromObject12(context2, type, value) {
|
|
|
7253
7253
|
return guard_exports.IsObjectNotArray(value) ? FromProperties5(context2, type, value) : value;
|
|
7254
7254
|
}
|
|
7255
7255
|
|
|
7256
|
-
//
|
|
7256
|
+
// node_modules/typebox/build/value/convert/from_record.mjs
|
|
7257
7257
|
function FromPatternProperties(context2, type, value) {
|
|
7258
7258
|
const entries = guard_exports.EntriesRegExp(type.patternProperties);
|
|
7259
7259
|
const keys = guard_exports.Keys(value);
|
|
@@ -7270,23 +7270,23 @@ function FromRecord4(context2, type, value) {
|
|
|
7270
7270
|
return guard_exports.IsObjectNotArray(value) ? FromPatternProperties(context2, type, value) : value;
|
|
7271
7271
|
}
|
|
7272
7272
|
|
|
7273
|
-
//
|
|
7273
|
+
// node_modules/typebox/build/value/convert/from_ref.mjs
|
|
7274
7274
|
function FromRef6(context2, type, value) {
|
|
7275
7275
|
return guard_exports.HasPropertyKey(context2, type.$ref) ? FromType21(context2, context2[type.$ref], value) : value;
|
|
7276
7276
|
}
|
|
7277
7277
|
|
|
7278
|
-
//
|
|
7278
|
+
// node_modules/typebox/build/value/convert/from_string.mjs
|
|
7279
7279
|
function FromString7(_context, _type, value) {
|
|
7280
7280
|
const result = try_exports.TryString(value);
|
|
7281
7281
|
return try_exports.IsOk(result) ? result.value : value;
|
|
7282
7282
|
}
|
|
7283
7283
|
|
|
7284
|
-
//
|
|
7284
|
+
// node_modules/typebox/build/value/convert/from_template_literal.mjs
|
|
7285
7285
|
function FromTemplateLiteral4(context2, type, value) {
|
|
7286
7286
|
return FromType21(context2, Evaluate(type), value);
|
|
7287
7287
|
}
|
|
7288
7288
|
|
|
7289
|
-
//
|
|
7289
|
+
// node_modules/typebox/build/value/convert/from_tuple.mjs
|
|
7290
7290
|
function FromTuple6(context2, type, value) {
|
|
7291
7291
|
if (!guard_exports.IsArray(value))
|
|
7292
7292
|
return value;
|
|
@@ -7296,13 +7296,13 @@ function FromTuple6(context2, type, value) {
|
|
|
7296
7296
|
return value;
|
|
7297
7297
|
}
|
|
7298
7298
|
|
|
7299
|
-
//
|
|
7299
|
+
// node_modules/typebox/build/value/convert/from_undefined.mjs
|
|
7300
7300
|
function FromUndefined2(_context, _type, value) {
|
|
7301
7301
|
const result = try_exports.TryUndefined(value);
|
|
7302
7302
|
return try_exports.IsOk(result) ? result.value : value;
|
|
7303
7303
|
}
|
|
7304
7304
|
|
|
7305
|
-
//
|
|
7305
|
+
// node_modules/typebox/build/value/convert/from_union.mjs
|
|
7306
7306
|
function FromUnion10(context2, type, value) {
|
|
7307
7307
|
const matched = type.anyOf.some((type2) => Check2(context2, type2, value));
|
|
7308
7308
|
if (matched)
|
|
@@ -7312,18 +7312,18 @@ function FromUnion10(context2, type, value) {
|
|
|
7312
7312
|
return guard_exports.IsUndefined(selected) ? value : selected;
|
|
7313
7313
|
}
|
|
7314
7314
|
|
|
7315
|
-
//
|
|
7315
|
+
// node_modules/typebox/build/value/convert/from_void.mjs
|
|
7316
7316
|
function FromVoid(_context, _type, value) {
|
|
7317
7317
|
const result = try_exports.TryUndefined(value);
|
|
7318
7318
|
return try_exports.IsOk(result) ? void 0 : value;
|
|
7319
7319
|
}
|
|
7320
7320
|
|
|
7321
|
-
//
|
|
7321
|
+
// node_modules/typebox/build/value/convert/from_type.mjs
|
|
7322
7322
|
function FromType21(context2, type, value) {
|
|
7323
7323
|
return IsArray2(type) ? FromArray8(context2, type, value) : IsBigInt2(type) ? FromBigInt6(context2, type, value) : IsBoolean3(type) ? FromBoolean6(context2, type, value) : IsCyclic(type) ? FromCyclic7(context2, type, value) : IsEnum2(type) ? FromEnum3(context2, type, value) : IsInteger2(type) ? FromInteger(context2, type, value) : IsIntersect(type) ? FromIntersect7(context2, type, value) : IsLiteral(type) ? FromLiteral6(context2, type, value) : IsNull2(type) ? FromNull2(context2, type, value) : IsNumber3(type) ? FromNumber5(context2, type, value) : IsObject2(type) ? FromObject12(context2, type, value) : IsRecord(type) ? FromRecord4(context2, type, value) : IsRef2(type) ? FromRef6(context2, type, value) : IsString3(type) ? FromString7(context2, type, value) : IsTemplateLiteral(type) ? FromTemplateLiteral4(context2, type, value) : IsTuple(type) ? FromTuple6(context2, type, value) : IsUndefined2(type) ? FromUndefined2(context2, type, value) : IsUnion(type) ? FromUnion10(context2, type, value) : IsVoid(type) ? FromVoid(context2, type, value) : value;
|
|
7324
7324
|
}
|
|
7325
7325
|
|
|
7326
|
-
//
|
|
7326
|
+
// node_modules/typebox/build/value/convert/convert.mjs
|
|
7327
7327
|
function Convert(...args) {
|
|
7328
7328
|
const [context2, type, value] = arguments_exports.Match(args, {
|
|
7329
7329
|
3: (context3, type2, value2) => [context3, type2, value2],
|
|
@@ -7332,7 +7332,7 @@ function Convert(...args) {
|
|
|
7332
7332
|
return FromType21(context2, type, value);
|
|
7333
7333
|
}
|
|
7334
7334
|
|
|
7335
|
-
//
|
|
7335
|
+
// node_modules/typebox/build/value/default/from_array.mjs
|
|
7336
7336
|
function FromArray9(context2, type, value) {
|
|
7337
7337
|
if (!guard_exports.IsArray(value))
|
|
7338
7338
|
return value;
|
|
@@ -7342,26 +7342,26 @@ function FromArray9(context2, type, value) {
|
|
|
7342
7342
|
return value;
|
|
7343
7343
|
}
|
|
7344
7344
|
|
|
7345
|
-
//
|
|
7345
|
+
// node_modules/typebox/build/value/default/from_cyclic.mjs
|
|
7346
7346
|
function FromCyclic8(context2, type, value) {
|
|
7347
7347
|
return FromType22({ ...context2, ...type.$defs }, Ref2(type.$ref), value);
|
|
7348
7348
|
}
|
|
7349
7349
|
|
|
7350
|
-
//
|
|
7350
|
+
// node_modules/typebox/build/value/default/from_default.mjs
|
|
7351
7351
|
function FromDefault(type, value) {
|
|
7352
7352
|
if (!guard_exports.IsUndefined(value))
|
|
7353
7353
|
return value;
|
|
7354
7354
|
return guard_exports.IsFunction(type.default) ? type.default() : Clone2(type.default);
|
|
7355
7355
|
}
|
|
7356
7356
|
|
|
7357
|
-
//
|
|
7357
|
+
// node_modules/typebox/build/value/default/from_intersect.mjs
|
|
7358
7358
|
function FromIntersect8(context2, type, value) {
|
|
7359
7359
|
const instantiated = Instantiate(context2, type);
|
|
7360
7360
|
const evaluated = Evaluate(instantiated);
|
|
7361
7361
|
return FromType22(context2, evaluated, value);
|
|
7362
7362
|
}
|
|
7363
7363
|
|
|
7364
|
-
//
|
|
7364
|
+
// node_modules/typebox/build/value/default/from_object.mjs
|
|
7365
7365
|
function FromObject13(context2, type, value) {
|
|
7366
7366
|
if (!guard_exports.IsObject(value))
|
|
7367
7367
|
return value;
|
|
@@ -7383,7 +7383,7 @@ function FromObject13(context2, type, value) {
|
|
|
7383
7383
|
return value;
|
|
7384
7384
|
}
|
|
7385
7385
|
|
|
7386
|
-
//
|
|
7386
|
+
// node_modules/typebox/build/value/default/from_record.mjs
|
|
7387
7387
|
function FromRecord5(context2, type, value) {
|
|
7388
7388
|
if (!guard_exports.IsObject(value))
|
|
7389
7389
|
return value;
|
|
@@ -7403,12 +7403,12 @@ function FromRecord5(context2, type, value) {
|
|
|
7403
7403
|
return value;
|
|
7404
7404
|
}
|
|
7405
7405
|
|
|
7406
|
-
//
|
|
7406
|
+
// node_modules/typebox/build/value/default/from_ref.mjs
|
|
7407
7407
|
function FromRef7(context2, type, value) {
|
|
7408
7408
|
return guard_exports.HasPropertyKey(context2, type.$ref) ? FromType22(context2, context2[type.$ref], value) : value;
|
|
7409
7409
|
}
|
|
7410
7410
|
|
|
7411
|
-
//
|
|
7411
|
+
// node_modules/typebox/build/value/default/from_tuple.mjs
|
|
7412
7412
|
function FromTuple7(context2, schema, value) {
|
|
7413
7413
|
if (!guard_exports.IsArray(value))
|
|
7414
7414
|
return value;
|
|
@@ -7420,7 +7420,7 @@ function FromTuple7(context2, schema, value) {
|
|
|
7420
7420
|
return value;
|
|
7421
7421
|
}
|
|
7422
7422
|
|
|
7423
|
-
//
|
|
7423
|
+
// node_modules/typebox/build/value/default/from_union.mjs
|
|
7424
7424
|
function FromUnion11(context2, schema, value) {
|
|
7425
7425
|
for (const inner of schema.anyOf) {
|
|
7426
7426
|
const result = FromType22(context2, inner, Clone2(value));
|
|
@@ -7431,13 +7431,13 @@ function FromUnion11(context2, schema, value) {
|
|
|
7431
7431
|
return value;
|
|
7432
7432
|
}
|
|
7433
7433
|
|
|
7434
|
-
//
|
|
7434
|
+
// node_modules/typebox/build/value/default/from_type.mjs
|
|
7435
7435
|
function FromType22(context2, type, value) {
|
|
7436
7436
|
const defaulted = IsDefault(type) ? FromDefault(type, value) : value;
|
|
7437
7437
|
return IsArray2(type) ? FromArray9(context2, type, defaulted) : IsCyclic(type) ? FromCyclic8(context2, type, defaulted) : IsIntersect(type) ? FromIntersect8(context2, type, defaulted) : IsObject2(type) ? FromObject13(context2, type, defaulted) : IsRecord(type) ? FromRecord5(context2, type, defaulted) : IsRef2(type) ? FromRef7(context2, type, defaulted) : IsTuple(type) ? FromTuple7(context2, type, defaulted) : IsUnion(type) ? FromUnion11(context2, type, defaulted) : defaulted;
|
|
7438
7438
|
}
|
|
7439
7439
|
|
|
7440
|
-
//
|
|
7440
|
+
// node_modules/typebox/build/value/default/default.mjs
|
|
7441
7441
|
function Default(...args) {
|
|
7442
7442
|
const [context2, type, value] = arguments_exports.Match(args, {
|
|
7443
7443
|
3: (context3, type2, value2) => [context3, type2, value2],
|
|
@@ -7446,7 +7446,7 @@ function Default(...args) {
|
|
|
7446
7446
|
return FromType22(context2, type, value);
|
|
7447
7447
|
}
|
|
7448
7448
|
|
|
7449
|
-
//
|
|
7449
|
+
// node_modules/typebox/build/value/pipeline/pipeline.mjs
|
|
7450
7450
|
function Pipeline(pipeline) {
|
|
7451
7451
|
return (...args) => {
|
|
7452
7452
|
const [context2, type, value] = arguments_exports.Match(args, {
|
|
@@ -7457,7 +7457,7 @@ function Pipeline(pipeline) {
|
|
|
7457
7457
|
};
|
|
7458
7458
|
}
|
|
7459
7459
|
|
|
7460
|
-
//
|
|
7460
|
+
// node_modules/typebox/build/value/codec/callback.mjs
|
|
7461
7461
|
function Decode3(_context, type, value) {
|
|
7462
7462
|
return type["~codec"].decode(value);
|
|
7463
7463
|
}
|
|
@@ -7470,7 +7470,7 @@ function Callback(direction, context2, type, value) {
|
|
|
7470
7470
|
return guard_exports.IsEqual(direction, "Decode") ? Decode3(context2, type, value) : Encode3(context2, type, value);
|
|
7471
7471
|
}
|
|
7472
7472
|
|
|
7473
|
-
//
|
|
7473
|
+
// node_modules/typebox/build/value/codec/from_array.mjs
|
|
7474
7474
|
function Decode4(direction, context2, type, value) {
|
|
7475
7475
|
if (!guard_exports.IsArray(value))
|
|
7476
7476
|
return value;
|
|
@@ -7492,13 +7492,13 @@ function FromArray10(direction, context2, type, value) {
|
|
|
7492
7492
|
return guard_exports.IsEqual(direction, "Decode") ? Decode4(direction, context2, type, value) : Encode4(direction, context2, type, value);
|
|
7493
7493
|
}
|
|
7494
7494
|
|
|
7495
|
-
//
|
|
7495
|
+
// node_modules/typebox/build/value/codec/from_cyclic.mjs
|
|
7496
7496
|
function FromCyclic9(direction, context2, type, value) {
|
|
7497
7497
|
value = FromType23(direction, { ...context2, ...type.$defs }, Ref2(type.$ref), value);
|
|
7498
7498
|
return Callback(direction, context2, type, value);
|
|
7499
7499
|
}
|
|
7500
7500
|
|
|
7501
|
-
//
|
|
7501
|
+
// node_modules/typebox/build/value/codec/from_intersect.mjs
|
|
7502
7502
|
function MergeInteriors(interiors) {
|
|
7503
7503
|
return interiors.reduce((results, interior) => ({ ...results, ...interior }), {});
|
|
7504
7504
|
}
|
|
@@ -7530,7 +7530,7 @@ function FromIntersect9(direction, context2, type, value) {
|
|
|
7530
7530
|
return guard_exports.IsEqual(direction, "Decode") ? Decode5(direction, context2, type, value) : Encode5(direction, context2, type, value);
|
|
7531
7531
|
}
|
|
7532
7532
|
|
|
7533
|
-
//
|
|
7533
|
+
// node_modules/typebox/build/value/codec/from_object.mjs
|
|
7534
7534
|
function Decode6(direction, context2, type, value) {
|
|
7535
7535
|
if (!guard_exports.IsObjectNotArray(value))
|
|
7536
7536
|
return value;
|
|
@@ -7556,7 +7556,7 @@ function FromObject14(direction, context2, type, value) {
|
|
|
7556
7556
|
return guard_exports.IsEqual(direction, "Decode") ? Decode6(direction, context2, type, value) : Encode6(direction, context2, type, value);
|
|
7557
7557
|
}
|
|
7558
7558
|
|
|
7559
|
-
//
|
|
7559
|
+
// node_modules/typebox/build/value/codec/from_record.mjs
|
|
7560
7560
|
function Decode7(direction, context2, type, value) {
|
|
7561
7561
|
if (!guard_exports.IsObjectNotArray(value))
|
|
7562
7562
|
return value;
|
|
@@ -7584,7 +7584,7 @@ function FromRecord6(direction, context2, type, value) {
|
|
|
7584
7584
|
return guard_exports.IsEqual(direction, "Decode") ? Decode7(direction, context2, type, value) : Encode7(direction, context2, type, value);
|
|
7585
7585
|
}
|
|
7586
7586
|
|
|
7587
|
-
//
|
|
7587
|
+
// node_modules/typebox/build/value/codec/from_ref.mjs
|
|
7588
7588
|
function ResolveRef2(direction, context2, type, value) {
|
|
7589
7589
|
return guard_exports.HasPropertyKey(context2, type.$ref) ? FromType23(direction, context2, context2[type.$ref], value) : value;
|
|
7590
7590
|
}
|
|
@@ -7592,7 +7592,7 @@ function FromRef8(direction, context2, type, value) {
|
|
|
7592
7592
|
return guard_exports.IsEqual(direction, "Decode") ? Callback(direction, context2, type, ResolveRef2(direction, context2, type, value)) : ResolveRef2(direction, context2, type, Callback(direction, context2, type, value));
|
|
7593
7593
|
}
|
|
7594
7594
|
|
|
7595
|
-
//
|
|
7595
|
+
// node_modules/typebox/build/value/codec/from_tuple.mjs
|
|
7596
7596
|
function Decode8(direction, context2, type, value) {
|
|
7597
7597
|
if (!guard_exports.IsArray(value))
|
|
7598
7598
|
return value;
|
|
@@ -7614,7 +7614,7 @@ function FromTuple8(direction, context2, type, value) {
|
|
|
7614
7614
|
return guard_exports.IsEqual(direction, "Decode") ? Decode8(direction, context2, type, value) : Encode8(direction, context2, type, value);
|
|
7615
7615
|
}
|
|
7616
7616
|
|
|
7617
|
-
//
|
|
7617
|
+
// node_modules/typebox/build/value/codec/from_union.mjs
|
|
7618
7618
|
function Decode9(direction, context2, type, value) {
|
|
7619
7619
|
for (const schema of type.anyOf) {
|
|
7620
7620
|
if (!Check2(context2, schema, value))
|
|
@@ -7638,12 +7638,12 @@ function FromUnion12(direction, context2, type, value) {
|
|
|
7638
7638
|
return guard_exports.IsEqual(direction, "Decode") ? Decode9(direction, context2, type, value) : Encode9(direction, context2, type, value);
|
|
7639
7639
|
}
|
|
7640
7640
|
|
|
7641
|
-
//
|
|
7641
|
+
// node_modules/typebox/build/value/codec/from_type.mjs
|
|
7642
7642
|
function FromType23(direction, context2, type, value) {
|
|
7643
7643
|
return IsArray2(type) ? FromArray10(direction, context2, type, value) : IsCyclic(type) ? FromCyclic9(direction, context2, type, value) : IsIntersect(type) ? FromIntersect9(direction, context2, type, value) : IsObject2(type) ? FromObject14(direction, context2, type, value) : IsRecord(type) ? FromRecord6(direction, context2, type, value) : IsRef2(type) ? FromRef8(direction, context2, type, value) : IsTuple(type) ? FromTuple8(direction, context2, type, value) : IsUnion(type) ? FromUnion12(direction, context2, type, value) : Callback(direction, context2, type, value);
|
|
7644
7644
|
}
|
|
7645
7645
|
|
|
7646
|
-
//
|
|
7646
|
+
// node_modules/typebox/build/value/codec/decode.mjs
|
|
7647
7647
|
var DecodeError = class extends AssertError {
|
|
7648
7648
|
constructor(value, errors) {
|
|
7649
7649
|
super("Decode", value, errors);
|
|
@@ -7667,7 +7667,7 @@ var Decoder = Pipeline([
|
|
|
7667
7667
|
(context2, type, value) => DecodeUnsafe(context2, type, value)
|
|
7668
7668
|
]);
|
|
7669
7669
|
|
|
7670
|
-
//
|
|
7670
|
+
// node_modules/typebox/build/value/codec/encode.mjs
|
|
7671
7671
|
var EncodeError = class extends AssertError {
|
|
7672
7672
|
constructor(value, errors) {
|
|
7673
7673
|
super("Encode", value, errors);
|
|
@@ -7691,7 +7691,7 @@ var Encoder = Pipeline([
|
|
|
7691
7691
|
(context2, type, value) => Assert2(context2, type, value)
|
|
7692
7692
|
]);
|
|
7693
7693
|
|
|
7694
|
-
//
|
|
7694
|
+
// node_modules/typebox/build/value/parse/parse.mjs
|
|
7695
7695
|
var ParseError = class extends AssertError {
|
|
7696
7696
|
constructor(value, errors) {
|
|
7697
7697
|
super("Parse", value, errors);
|
|
@@ -7710,7 +7710,7 @@ var Parser = Pipeline([
|
|
|
7710
7710
|
(context2, type, value) => Assert3(context2, type, value)
|
|
7711
7711
|
]);
|
|
7712
7712
|
|
|
7713
|
-
//
|
|
7713
|
+
// node_modules/typebox/build/value/delta/edit.mjs
|
|
7714
7714
|
var Insert2 = _Object_({
|
|
7715
7715
|
type: Literal("insert"),
|
|
7716
7716
|
path: String2(),
|
|
@@ -7727,7 +7727,7 @@ var Delete2 = _Object_({
|
|
|
7727
7727
|
});
|
|
7728
7728
|
var Edit = Union([Insert2, Update2, Delete2]);
|
|
7729
7729
|
|
|
7730
|
-
//
|
|
7730
|
+
// node_modules/typebox/build/typebox.mjs
|
|
7731
7731
|
var typebox_exports = {};
|
|
7732
7732
|
__export(typebox_exports, {
|
|
7733
7733
|
Any: () => Any,
|
|
@@ -9189,7 +9189,6 @@ var NotesWriteDataSchema = typebox_exports.Object({
|
|
|
9189
9189
|
var NotesUpdateDataSchema = typebox_exports.Object({
|
|
9190
9190
|
...NoteIdentitySchema,
|
|
9191
9191
|
change_kind: typebox_exports.Union([typebox_exports.Literal("none"), typebox_exports.Literal("body"), typebox_exports.Literal("metadata"), typebox_exports.Literal("moved")]),
|
|
9192
|
-
diff: typebox_exports.String(),
|
|
9193
9192
|
rename_from: typebox_exports.Optional(typebox_exports.String())
|
|
9194
9193
|
}, { additionalProperties: false });
|
|
9195
9194
|
var NotesReadDataSchema = typebox_exports.Object({
|
|
@@ -9260,24 +9259,7 @@ var notesUpdateParameters = typebox_exports.Object({
|
|
|
9260
9259
|
cwd: CWD_PARAMETER
|
|
9261
9260
|
}, { additionalProperties: false });
|
|
9262
9261
|
function renderUpdateData(data) {
|
|
9263
|
-
|
|
9264
|
-
const lines = [head];
|
|
9265
|
-
if (data.diff.length > 0) lines.push("diff:", data.diff);
|
|
9266
|
-
return lines.join("\n");
|
|
9267
|
-
}
|
|
9268
|
-
function renderUpdate(result) {
|
|
9269
|
-
return renderOutcome(result, renderUpdateData);
|
|
9270
|
-
}
|
|
9271
|
-
var DIFF_SHORTENED_MARKER = "[diff truncated; update applied]";
|
|
9272
|
-
var RECEIPT_TOO_LONG = `Saved, but the receipt is too long to hand back (${TOOL_OUTPUT_LIMIT} per call). Check the note with \`notes_read\`.`;
|
|
9273
|
-
function boundedUpdate(data) {
|
|
9274
|
-
if (fitsResult(success(data), renderUpdate)) return success(data);
|
|
9275
|
-
if (data.diff === "") return failure("output_too_large", RECEIPT_TOO_LONG);
|
|
9276
|
-
const diff = prefixFit(data.diff, (candidate) => fitsResult(success({ ...data, diff: `${candidate}
|
|
9277
|
-
${DIFF_SHORTENED_MARKER}` }), renderUpdate));
|
|
9278
|
-
const result = success({ ...data, diff: `${diff}
|
|
9279
|
-
${DIFF_SHORTENED_MARKER}` });
|
|
9280
|
-
return fitsResult(result, renderUpdate) ? result : failure("output_too_large", RECEIPT_TOO_LONG);
|
|
9262
|
+
return data.rename_from === void 0 ? `${data.change_kind === "none" ? "unchanged" : "updated"} ${renderIdentity(data)}` : `moved ${data.rename_from} -> ${data.address}`;
|
|
9281
9263
|
}
|
|
9282
9264
|
var notesUpdate = {
|
|
9283
9265
|
name: "notes_update",
|
|
@@ -9286,21 +9268,21 @@ var notesUpdate = {
|
|
|
9286
9268
|
parameters: notesUpdateParameters,
|
|
9287
9269
|
outputSchema: resultSchema(NotesUpdateDataSchema),
|
|
9288
9270
|
executionMode: "sequential",
|
|
9289
|
-
async execute(params, context2,
|
|
9271
|
+
async execute(params, context2, onChange) {
|
|
9290
9272
|
try {
|
|
9291
9273
|
const identity2 = notesIdentityForCall(context2, params.cwd);
|
|
9292
9274
|
const store = createNotesStore(identity2);
|
|
9293
9275
|
const renameTo = params.rename_to === "" ? void 0 : params.rename_to;
|
|
9294
9276
|
const { change, moved } = await store.update(params.address, params.edits, { origin: params.origin, crumpled: params.crumpled, replaceAll: params.replace_all, renameTo });
|
|
9277
|
+
onChange?.(change);
|
|
9295
9278
|
const from = noteIdentity(identity2, params.address).address;
|
|
9296
9279
|
const to = noteIdentity(identity2, renameTo ?? params.address);
|
|
9297
|
-
|
|
9298
|
-
return boundedUpdate({ ...to, ...moved ? { rename_from: from } : {}, change_kind: moved ? "moved" : change.kind, diff: moved ? [`rename ${from} -> ${to.address}`, diff].filter(Boolean).join("\n") : diff });
|
|
9280
|
+
return success({ ...to, ...moved ? { rename_from: from } : {}, change_kind: moved ? "moved" : change.kind });
|
|
9299
9281
|
} catch (error) {
|
|
9300
9282
|
return failureOf(error);
|
|
9301
9283
|
}
|
|
9302
9284
|
},
|
|
9303
|
-
render:
|
|
9285
|
+
render: (result) => renderOutcome(result, renderUpdateData)
|
|
9304
9286
|
};
|
|
9305
9287
|
var notesReadParameters = typebox_exports.Object({ address: typebox_exports.String(), ...TextWindowRequestSchema, cwd: CWD_PARAMETER }, { additionalProperties: false });
|
|
9306
9288
|
function renderReadData(data) {
|
|
@@ -9732,19 +9714,16 @@ var historyRead = {
|
|
|
9732
9714
|
projection = loaded.data.projection;
|
|
9733
9715
|
identity2 = { session: sessionIdentity(target.data), ...loaded.data.notice === void 0 ? {} : { notice: loaded.data.notice } };
|
|
9734
9716
|
}
|
|
9735
|
-
|
|
9736
|
-
if (item === void 0 && params.seq > projection.highestSeq) {
|
|
9717
|
+
if (params.seq > projection.highestSeq) {
|
|
9737
9718
|
return failure("unknown_seq", `There is no seq ${params.seq}; this session runs from seq 1 to ${projection.highestSeq}.`);
|
|
9738
9719
|
}
|
|
9739
9720
|
if (!projection.branchSeqs.has(params.seq)) {
|
|
9740
9721
|
if (identity2.notice) return failure("unconfirmed_seq", `Seq ${params.seq} is outside the confirmed selected history; it may be on another branch or beyond an unresolved ancestry gap.`);
|
|
9741
9722
|
return failure("not_on_branch", `Seq ${params.seq} is on another branch of this session; it can't be read from here.`);
|
|
9742
9723
|
}
|
|
9724
|
+
const targetSeq = projection.pairedResults.get(params.seq) ?? params.seq;
|
|
9725
|
+
const item = allItems(projection).find((event) => event.seq === targetSeq);
|
|
9743
9726
|
if (item === void 0) {
|
|
9744
|
-
const callSeq = projection.pairedResults.get(params.seq);
|
|
9745
|
-
if (callSeq !== void 0) {
|
|
9746
|
-
return failure("not_an_event", `Seq ${params.seq} is a tool result, shown together with its call; read seq ${callSeq} instead.`);
|
|
9747
|
-
}
|
|
9748
9727
|
return failure("unknown_seq", `Seq ${params.seq} holds nothing to read.`);
|
|
9749
9728
|
}
|
|
9750
9729
|
const document = eventDocument(item);
|