@prisma/config 6.6.0-dev.9 → 6.6.0-dev.90
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/index.d.ts +42 -33
- package/dist/index.js +753 -866
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -5,10 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __typeError = (msg) => {
|
|
9
|
-
throw TypeError(msg);
|
|
10
|
-
};
|
|
11
|
-
var __defNormalProp = (obj, key, value3) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value3 }) : obj[key] = value3;
|
|
12
8
|
var __export = (target, all5) => {
|
|
13
9
|
for (var name in all5)
|
|
14
10
|
__defProp(target, name, { get: all5[name], enumerable: true });
|
|
@@ -30,11 +26,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
26
|
mod
|
|
31
27
|
));
|
|
32
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
-
var __publicField = (obj, key, value3) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value3);
|
|
34
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
35
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
36
|
-
var __privateAdd = (obj, member, value3) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value3);
|
|
37
|
-
var __privateSet = (obj, member, value3, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value3) : member.set(obj, value3), value3);
|
|
38
29
|
|
|
39
30
|
// src/index.ts
|
|
40
31
|
var index_exports = {};
|
|
@@ -453,14 +444,9 @@ var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue
|
|
|
453
444
|
// ../../node_modules/.pnpm/effect@3.12.10/node_modules/effect/dist/esm/Utils.js
|
|
454
445
|
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
455
446
|
var isGenKind = (u) => isObject(u) && GenKindTypeId in u;
|
|
456
|
-
var _a;
|
|
457
447
|
var GenKindImpl = class {
|
|
448
|
+
value;
|
|
458
449
|
constructor(value3) {
|
|
459
|
-
__publicField(this, "value");
|
|
460
|
-
/**
|
|
461
|
-
* @since 2.0.0
|
|
462
|
-
*/
|
|
463
|
-
__publicField(this, _a, GenKindTypeId);
|
|
464
450
|
this.value = value3;
|
|
465
451
|
}
|
|
466
452
|
/**
|
|
@@ -490,14 +476,18 @@ var GenKindImpl = class {
|
|
|
490
476
|
/**
|
|
491
477
|
* @since 2.0.0
|
|
492
478
|
*/
|
|
493
|
-
[
|
|
479
|
+
[GenKindTypeId] = GenKindTypeId;
|
|
480
|
+
/**
|
|
481
|
+
* @since 2.0.0
|
|
482
|
+
*/
|
|
483
|
+
[Symbol.iterator]() {
|
|
494
484
|
return new SingleShotGen(this);
|
|
495
485
|
}
|
|
496
486
|
};
|
|
497
487
|
var SingleShotGen = class _SingleShotGen {
|
|
488
|
+
self;
|
|
489
|
+
called = false;
|
|
498
490
|
constructor(self) {
|
|
499
|
-
__publicField(this, "self");
|
|
500
|
-
__publicField(this, "called", false);
|
|
501
491
|
this.self = self;
|
|
502
492
|
}
|
|
503
493
|
/**
|
|
@@ -548,8 +538,8 @@ var MUL_LO = 1284865837 >>> 0;
|
|
|
548
538
|
var BIT_53 = 9007199254740992;
|
|
549
539
|
var BIT_27 = 134217728;
|
|
550
540
|
var PCGRandom = class {
|
|
541
|
+
_state;
|
|
551
542
|
constructor(seedHi, seedLo, incHi, incLo) {
|
|
552
|
-
__publicField(this, "_state");
|
|
553
543
|
if (isNullable(seedLo) && isNullable(seedHi)) {
|
|
554
544
|
seedLo = Math.random() * 4294967295 >>> 0;
|
|
555
545
|
seedHi = 0;
|
|
@@ -658,23 +648,21 @@ function add64(out, aHi, aLo, bHi, bLo) {
|
|
|
658
648
|
out[1] = lo;
|
|
659
649
|
}
|
|
660
650
|
var YieldWrapTypeId = /* @__PURE__ */ Symbol.for("effect/Utils/YieldWrap");
|
|
661
|
-
var _value;
|
|
662
651
|
var YieldWrap = class {
|
|
652
|
+
/**
|
|
653
|
+
* @since 3.0.6
|
|
654
|
+
*/
|
|
655
|
+
#value;
|
|
663
656
|
constructor(value3) {
|
|
664
|
-
|
|
665
|
-
* @since 3.0.6
|
|
666
|
-
*/
|
|
667
|
-
__privateAdd(this, _value);
|
|
668
|
-
__privateSet(this, _value, value3);
|
|
657
|
+
this.#value = value3;
|
|
669
658
|
}
|
|
670
659
|
/**
|
|
671
660
|
* @since 3.0.6
|
|
672
661
|
*/
|
|
673
662
|
[YieldWrapTypeId]() {
|
|
674
|
-
return
|
|
663
|
+
return this.#value;
|
|
675
664
|
}
|
|
676
665
|
};
|
|
677
|
-
_value = new WeakMap();
|
|
678
666
|
function yieldWrapGet(self) {
|
|
679
667
|
if (typeof self === "object" && self !== null && YieldWrapTypeId in self) {
|
|
680
668
|
return self[YieldWrapTypeId]();
|
|
@@ -1910,7 +1898,7 @@ var NoShrinkArbitrary = class extends Arbitrary {
|
|
|
1910
1898
|
canShrinkWithoutContext(value3) {
|
|
1911
1899
|
return this.arb.canShrinkWithoutContext(value3);
|
|
1912
1900
|
}
|
|
1913
|
-
shrink(
|
|
1901
|
+
shrink(_value, _context) {
|
|
1914
1902
|
return Stream.nil();
|
|
1915
1903
|
}
|
|
1916
1904
|
noShrink() {
|
|
@@ -3309,7 +3297,7 @@ function stringifyInternal(value3, previousValues, getAsyncContent) {
|
|
|
3309
3297
|
}
|
|
3310
3298
|
try {
|
|
3311
3299
|
return value3.toString();
|
|
3312
|
-
} catch (
|
|
3300
|
+
} catch (_a) {
|
|
3313
3301
|
return safeToString(value3);
|
|
3314
3302
|
}
|
|
3315
3303
|
}
|
|
@@ -4642,15 +4630,15 @@ var getJSONIdentifierAnnotation = /* @__PURE__ */ getAnnotation(JSONIdentifierAn
|
|
|
4642
4630
|
var getJSONIdentifier = (annotated) => orElse2(getJSONIdentifierAnnotation(annotated), () => getIdentifierAnnotation(annotated));
|
|
4643
4631
|
var ParseJsonSchemaId = /* @__PURE__ */ Symbol.for("effect/schema/ParseJson");
|
|
4644
4632
|
var Declaration = class {
|
|
4633
|
+
typeParameters;
|
|
4634
|
+
decodeUnknown;
|
|
4635
|
+
encodeUnknown;
|
|
4636
|
+
annotations;
|
|
4637
|
+
/**
|
|
4638
|
+
* @since 3.10.0
|
|
4639
|
+
*/
|
|
4640
|
+
_tag = "Declaration";
|
|
4645
4641
|
constructor(typeParameters, decodeUnknown3, encodeUnknown3, annotations3 = {}) {
|
|
4646
|
-
__publicField(this, "typeParameters");
|
|
4647
|
-
__publicField(this, "decodeUnknown");
|
|
4648
|
-
__publicField(this, "encodeUnknown");
|
|
4649
|
-
__publicField(this, "annotations");
|
|
4650
|
-
/**
|
|
4651
|
-
* @since 3.10.0
|
|
4652
|
-
*/
|
|
4653
|
-
__publicField(this, "_tag", "Declaration");
|
|
4654
4642
|
this.typeParameters = typeParameters;
|
|
4655
4643
|
this.decodeUnknown = decodeUnknown3;
|
|
4656
4644
|
this.encodeUnknown = encodeUnknown3;
|
|
@@ -4675,13 +4663,13 @@ var Declaration = class {
|
|
|
4675
4663
|
};
|
|
4676
4664
|
var createASTGuard = (tag2) => (ast) => ast._tag === tag2;
|
|
4677
4665
|
var Literal = class {
|
|
4666
|
+
literal;
|
|
4667
|
+
annotations;
|
|
4668
|
+
/**
|
|
4669
|
+
* @since 3.10.0
|
|
4670
|
+
*/
|
|
4671
|
+
_tag = "Literal";
|
|
4678
4672
|
constructor(literal2, annotations3 = {}) {
|
|
4679
|
-
__publicField(this, "literal");
|
|
4680
|
-
__publicField(this, "annotations");
|
|
4681
|
-
/**
|
|
4682
|
-
* @since 3.10.0
|
|
4683
|
-
*/
|
|
4684
|
-
__publicField(this, "_tag", "Literal");
|
|
4685
4673
|
this.literal = literal2;
|
|
4686
4674
|
this.annotations = annotations3;
|
|
4687
4675
|
}
|
|
@@ -4705,13 +4693,13 @@ var Literal = class {
|
|
|
4705
4693
|
var isLiteral = /* @__PURE__ */ createASTGuard("Literal");
|
|
4706
4694
|
var $null = /* @__PURE__ */ new Literal(null);
|
|
4707
4695
|
var UniqueSymbol = class {
|
|
4696
|
+
symbol;
|
|
4697
|
+
annotations;
|
|
4698
|
+
/**
|
|
4699
|
+
* @since 3.10.0
|
|
4700
|
+
*/
|
|
4701
|
+
_tag = "UniqueSymbol";
|
|
4708
4702
|
constructor(symbol3, annotations3 = {}) {
|
|
4709
|
-
__publicField(this, "symbol");
|
|
4710
|
-
__publicField(this, "annotations");
|
|
4711
|
-
/**
|
|
4712
|
-
* @since 3.10.0
|
|
4713
|
-
*/
|
|
4714
|
-
__publicField(this, "_tag", "UniqueSymbol");
|
|
4715
4703
|
this.symbol = symbol3;
|
|
4716
4704
|
this.annotations = annotations3;
|
|
4717
4705
|
}
|
|
@@ -4734,12 +4722,12 @@ var UniqueSymbol = class {
|
|
|
4734
4722
|
};
|
|
4735
4723
|
var isUniqueSymbol = /* @__PURE__ */ createASTGuard("UniqueSymbol");
|
|
4736
4724
|
var UndefinedKeyword = class {
|
|
4725
|
+
annotations;
|
|
4726
|
+
/**
|
|
4727
|
+
* @since 3.10.0
|
|
4728
|
+
*/
|
|
4729
|
+
_tag = "UndefinedKeyword";
|
|
4737
4730
|
constructor(annotations3 = {}) {
|
|
4738
|
-
__publicField(this, "annotations");
|
|
4739
|
-
/**
|
|
4740
|
-
* @since 3.10.0
|
|
4741
|
-
*/
|
|
4742
|
-
__publicField(this, "_tag", "UndefinedKeyword");
|
|
4743
4731
|
this.annotations = annotations3;
|
|
4744
4732
|
}
|
|
4745
4733
|
/**
|
|
@@ -4762,12 +4750,12 @@ var undefinedKeyword = /* @__PURE__ */ new UndefinedKeyword({
|
|
|
4762
4750
|
[TitleAnnotationId]: "undefined"
|
|
4763
4751
|
});
|
|
4764
4752
|
var VoidKeyword = class {
|
|
4753
|
+
annotations;
|
|
4754
|
+
/**
|
|
4755
|
+
* @since 3.10.0
|
|
4756
|
+
*/
|
|
4757
|
+
_tag = "VoidKeyword";
|
|
4765
4758
|
constructor(annotations3 = {}) {
|
|
4766
|
-
__publicField(this, "annotations");
|
|
4767
|
-
/**
|
|
4768
|
-
* @since 3.10.0
|
|
4769
|
-
*/
|
|
4770
|
-
__publicField(this, "_tag", "VoidKeyword");
|
|
4771
4759
|
this.annotations = annotations3;
|
|
4772
4760
|
}
|
|
4773
4761
|
/**
|
|
@@ -4790,12 +4778,12 @@ var voidKeyword = /* @__PURE__ */ new VoidKeyword({
|
|
|
4790
4778
|
[TitleAnnotationId]: "void"
|
|
4791
4779
|
});
|
|
4792
4780
|
var NeverKeyword = class {
|
|
4781
|
+
annotations;
|
|
4782
|
+
/**
|
|
4783
|
+
* @since 3.10.0
|
|
4784
|
+
*/
|
|
4785
|
+
_tag = "NeverKeyword";
|
|
4793
4786
|
constructor(annotations3 = {}) {
|
|
4794
|
-
__publicField(this, "annotations");
|
|
4795
|
-
/**
|
|
4796
|
-
* @since 3.10.0
|
|
4797
|
-
*/
|
|
4798
|
-
__publicField(this, "_tag", "NeverKeyword");
|
|
4799
4787
|
this.annotations = annotations3;
|
|
4800
4788
|
}
|
|
4801
4789
|
/**
|
|
@@ -4819,12 +4807,12 @@ var neverKeyword = /* @__PURE__ */ new NeverKeyword({
|
|
|
4819
4807
|
});
|
|
4820
4808
|
var isNeverKeyword = /* @__PURE__ */ createASTGuard("NeverKeyword");
|
|
4821
4809
|
var UnknownKeyword = class {
|
|
4810
|
+
annotations;
|
|
4811
|
+
/**
|
|
4812
|
+
* @since 3.10.0
|
|
4813
|
+
*/
|
|
4814
|
+
_tag = "UnknownKeyword";
|
|
4822
4815
|
constructor(annotations3 = {}) {
|
|
4823
|
-
__publicField(this, "annotations");
|
|
4824
|
-
/**
|
|
4825
|
-
* @since 3.10.0
|
|
4826
|
-
*/
|
|
4827
|
-
__publicField(this, "_tag", "UnknownKeyword");
|
|
4828
4816
|
this.annotations = annotations3;
|
|
4829
4817
|
}
|
|
4830
4818
|
/**
|
|
@@ -4847,12 +4835,12 @@ var unknownKeyword = /* @__PURE__ */ new UnknownKeyword({
|
|
|
4847
4835
|
[TitleAnnotationId]: "unknown"
|
|
4848
4836
|
});
|
|
4849
4837
|
var AnyKeyword = class {
|
|
4838
|
+
annotations;
|
|
4839
|
+
/**
|
|
4840
|
+
* @since 3.10.0
|
|
4841
|
+
*/
|
|
4842
|
+
_tag = "AnyKeyword";
|
|
4850
4843
|
constructor(annotations3 = {}) {
|
|
4851
|
-
__publicField(this, "annotations");
|
|
4852
|
-
/**
|
|
4853
|
-
* @since 3.10.0
|
|
4854
|
-
*/
|
|
4855
|
-
__publicField(this, "_tag", "AnyKeyword");
|
|
4856
4844
|
this.annotations = annotations3;
|
|
4857
4845
|
}
|
|
4858
4846
|
/**
|
|
@@ -4875,12 +4863,12 @@ var anyKeyword = /* @__PURE__ */ new AnyKeyword({
|
|
|
4875
4863
|
[TitleAnnotationId]: "any"
|
|
4876
4864
|
});
|
|
4877
4865
|
var StringKeyword = class {
|
|
4866
|
+
annotations;
|
|
4867
|
+
/**
|
|
4868
|
+
* @since 3.10.0
|
|
4869
|
+
*/
|
|
4870
|
+
_tag = "StringKeyword";
|
|
4878
4871
|
constructor(annotations3 = {}) {
|
|
4879
|
-
__publicField(this, "annotations");
|
|
4880
|
-
/**
|
|
4881
|
-
* @since 3.10.0
|
|
4882
|
-
*/
|
|
4883
|
-
__publicField(this, "_tag", "StringKeyword");
|
|
4884
4872
|
this.annotations = annotations3;
|
|
4885
4873
|
}
|
|
4886
4874
|
/**
|
|
@@ -4905,12 +4893,12 @@ var stringKeyword = /* @__PURE__ */ new StringKeyword({
|
|
|
4905
4893
|
});
|
|
4906
4894
|
var isStringKeyword = /* @__PURE__ */ createASTGuard("StringKeyword");
|
|
4907
4895
|
var NumberKeyword = class {
|
|
4896
|
+
annotations;
|
|
4897
|
+
/**
|
|
4898
|
+
* @since 3.10.0
|
|
4899
|
+
*/
|
|
4900
|
+
_tag = "NumberKeyword";
|
|
4908
4901
|
constructor(annotations3 = {}) {
|
|
4909
|
-
__publicField(this, "annotations");
|
|
4910
|
-
/**
|
|
4911
|
-
* @since 3.10.0
|
|
4912
|
-
*/
|
|
4913
|
-
__publicField(this, "_tag", "NumberKeyword");
|
|
4914
4902
|
this.annotations = annotations3;
|
|
4915
4903
|
}
|
|
4916
4904
|
/**
|
|
@@ -4935,12 +4923,12 @@ var numberKeyword = /* @__PURE__ */ new NumberKeyword({
|
|
|
4935
4923
|
});
|
|
4936
4924
|
var isNumberKeyword = /* @__PURE__ */ createASTGuard("NumberKeyword");
|
|
4937
4925
|
var BooleanKeyword = class {
|
|
4926
|
+
annotations;
|
|
4927
|
+
/**
|
|
4928
|
+
* @since 3.10.0
|
|
4929
|
+
*/
|
|
4930
|
+
_tag = "BooleanKeyword";
|
|
4938
4931
|
constructor(annotations3 = {}) {
|
|
4939
|
-
__publicField(this, "annotations");
|
|
4940
|
-
/**
|
|
4941
|
-
* @since 3.10.0
|
|
4942
|
-
*/
|
|
4943
|
-
__publicField(this, "_tag", "BooleanKeyword");
|
|
4944
4932
|
this.annotations = annotations3;
|
|
4945
4933
|
}
|
|
4946
4934
|
/**
|
|
@@ -4965,12 +4953,12 @@ var booleanKeyword = /* @__PURE__ */ new BooleanKeyword({
|
|
|
4965
4953
|
});
|
|
4966
4954
|
var isBooleanKeyword = /* @__PURE__ */ createASTGuard("BooleanKeyword");
|
|
4967
4955
|
var BigIntKeyword = class {
|
|
4956
|
+
annotations;
|
|
4957
|
+
/**
|
|
4958
|
+
* @since 3.10.0
|
|
4959
|
+
*/
|
|
4960
|
+
_tag = "BigIntKeyword";
|
|
4968
4961
|
constructor(annotations3 = {}) {
|
|
4969
|
-
__publicField(this, "annotations");
|
|
4970
|
-
/**
|
|
4971
|
-
* @since 3.10.0
|
|
4972
|
-
*/
|
|
4973
|
-
__publicField(this, "_tag", "BigIntKeyword");
|
|
4974
4962
|
this.annotations = annotations3;
|
|
4975
4963
|
}
|
|
4976
4964
|
/**
|
|
@@ -4994,12 +4982,12 @@ var bigIntKeyword = /* @__PURE__ */ new BigIntKeyword({
|
|
|
4994
4982
|
[DescriptionAnnotationId]: "a bigint"
|
|
4995
4983
|
});
|
|
4996
4984
|
var SymbolKeyword = class {
|
|
4985
|
+
annotations;
|
|
4986
|
+
/**
|
|
4987
|
+
* @since 3.10.0
|
|
4988
|
+
*/
|
|
4989
|
+
_tag = "SymbolKeyword";
|
|
4997
4990
|
constructor(annotations3 = {}) {
|
|
4998
|
-
__publicField(this, "annotations");
|
|
4999
|
-
/**
|
|
5000
|
-
* @since 3.10.0
|
|
5001
|
-
*/
|
|
5002
|
-
__publicField(this, "_tag", "SymbolKeyword");
|
|
5003
4991
|
this.annotations = annotations3;
|
|
5004
4992
|
}
|
|
5005
4993
|
/**
|
|
@@ -5024,12 +5012,12 @@ var symbolKeyword = /* @__PURE__ */ new SymbolKeyword({
|
|
|
5024
5012
|
});
|
|
5025
5013
|
var isSymbolKeyword = /* @__PURE__ */ createASTGuard("SymbolKeyword");
|
|
5026
5014
|
var ObjectKeyword = class {
|
|
5015
|
+
annotations;
|
|
5016
|
+
/**
|
|
5017
|
+
* @since 3.10.0
|
|
5018
|
+
*/
|
|
5019
|
+
_tag = "ObjectKeyword";
|
|
5027
5020
|
constructor(annotations3 = {}) {
|
|
5028
|
-
__publicField(this, "annotations");
|
|
5029
|
-
/**
|
|
5030
|
-
* @since 3.10.0
|
|
5031
|
-
*/
|
|
5032
|
-
__publicField(this, "_tag", "ObjectKeyword");
|
|
5033
5021
|
this.annotations = annotations3;
|
|
5034
5022
|
}
|
|
5035
5023
|
/**
|
|
@@ -5053,13 +5041,13 @@ var objectKeyword = /* @__PURE__ */ new ObjectKeyword({
|
|
|
5053
5041
|
[DescriptionAnnotationId]: "an object in the TypeScript meaning, i.e. the `object` type"
|
|
5054
5042
|
});
|
|
5055
5043
|
var Enums = class {
|
|
5044
|
+
enums;
|
|
5045
|
+
annotations;
|
|
5046
|
+
/**
|
|
5047
|
+
* @since 3.10.0
|
|
5048
|
+
*/
|
|
5049
|
+
_tag = "Enums";
|
|
5056
5050
|
constructor(enums, annotations3 = {}) {
|
|
5057
|
-
__publicField(this, "enums");
|
|
5058
|
-
__publicField(this, "annotations");
|
|
5059
|
-
/**
|
|
5060
|
-
* @since 3.10.0
|
|
5061
|
-
*/
|
|
5062
|
-
__publicField(this, "_tag", "Enums");
|
|
5063
5051
|
this.enums = enums;
|
|
5064
5052
|
this.annotations = annotations3;
|
|
5065
5053
|
}
|
|
@@ -5122,12 +5110,12 @@ var templateLiteralSpanTypeToString = (type) => {
|
|
|
5122
5110
|
}
|
|
5123
5111
|
};
|
|
5124
5112
|
var TemplateLiteralSpan = class {
|
|
5113
|
+
literal;
|
|
5114
|
+
/**
|
|
5115
|
+
* @since 3.10.0
|
|
5116
|
+
*/
|
|
5117
|
+
type;
|
|
5125
5118
|
constructor(type, literal2) {
|
|
5126
|
-
__publicField(this, "literal");
|
|
5127
|
-
/**
|
|
5128
|
-
* @since 3.10.0
|
|
5129
|
-
*/
|
|
5130
|
-
__publicField(this, "type");
|
|
5131
5119
|
this.literal = literal2;
|
|
5132
5120
|
if (isTemplateLiteralSpanType(type)) {
|
|
5133
5121
|
this.type = type;
|
|
@@ -5152,14 +5140,14 @@ var TemplateLiteralSpan = class {
|
|
|
5152
5140
|
}
|
|
5153
5141
|
};
|
|
5154
5142
|
var TemplateLiteral = class {
|
|
5143
|
+
head;
|
|
5144
|
+
spans;
|
|
5145
|
+
annotations;
|
|
5146
|
+
/**
|
|
5147
|
+
* @since 3.10.0
|
|
5148
|
+
*/
|
|
5149
|
+
_tag = "TemplateLiteral";
|
|
5155
5150
|
constructor(head4, spans, annotations3 = {}) {
|
|
5156
|
-
__publicField(this, "head");
|
|
5157
|
-
__publicField(this, "spans");
|
|
5158
|
-
__publicField(this, "annotations");
|
|
5159
|
-
/**
|
|
5160
|
-
* @since 3.10.0
|
|
5161
|
-
*/
|
|
5162
|
-
__publicField(this, "_tag", "TemplateLiteral");
|
|
5163
5151
|
this.head = head4;
|
|
5164
5152
|
this.spans = spans;
|
|
5165
5153
|
this.annotations = annotations3;
|
|
@@ -5185,9 +5173,9 @@ var TemplateLiteral = class {
|
|
|
5185
5173
|
var formatTemplateLiteral = (ast) => "`" + ast.head + ast.spans.map(String).join("") + "`";
|
|
5186
5174
|
var isTemplateLiteral = /* @__PURE__ */ createASTGuard("TemplateLiteral");
|
|
5187
5175
|
var Type = class {
|
|
5176
|
+
type;
|
|
5177
|
+
annotations;
|
|
5188
5178
|
constructor(type, annotations3 = {}) {
|
|
5189
|
-
__publicField(this, "type");
|
|
5190
|
-
__publicField(this, "annotations");
|
|
5191
5179
|
this.type = type;
|
|
5192
5180
|
this.annotations = annotations3;
|
|
5193
5181
|
}
|
|
@@ -5208,9 +5196,9 @@ var Type = class {
|
|
|
5208
5196
|
}
|
|
5209
5197
|
};
|
|
5210
5198
|
var OptionalType = class extends Type {
|
|
5199
|
+
isOptional;
|
|
5211
5200
|
constructor(type, isOptional, annotations3 = {}) {
|
|
5212
5201
|
super(type, annotations3);
|
|
5213
|
-
__publicField(this, "isOptional");
|
|
5214
5202
|
this.isOptional = isOptional;
|
|
5215
5203
|
}
|
|
5216
5204
|
/**
|
|
@@ -5232,15 +5220,15 @@ var OptionalType = class extends Type {
|
|
|
5232
5220
|
};
|
|
5233
5221
|
var getRestASTs = (rest) => rest.map((annotatedAST) => annotatedAST.type);
|
|
5234
5222
|
var TupleType = class {
|
|
5223
|
+
elements;
|
|
5224
|
+
rest;
|
|
5225
|
+
isReadonly;
|
|
5226
|
+
annotations;
|
|
5227
|
+
/**
|
|
5228
|
+
* @since 3.10.0
|
|
5229
|
+
*/
|
|
5230
|
+
_tag = "TupleType";
|
|
5235
5231
|
constructor(elements, rest, isReadonly, annotations3 = {}) {
|
|
5236
|
-
__publicField(this, "elements");
|
|
5237
|
-
__publicField(this, "rest");
|
|
5238
|
-
__publicField(this, "isReadonly");
|
|
5239
|
-
__publicField(this, "annotations");
|
|
5240
|
-
/**
|
|
5241
|
-
* @since 3.10.0
|
|
5242
|
-
*/
|
|
5243
|
-
__publicField(this, "_tag", "TupleType");
|
|
5244
5232
|
this.elements = elements;
|
|
5245
5233
|
this.rest = rest;
|
|
5246
5234
|
this.isReadonly = isReadonly;
|
|
@@ -5303,10 +5291,10 @@ var formatTuple = (ast) => {
|
|
|
5303
5291
|
});
|
|
5304
5292
|
};
|
|
5305
5293
|
var PropertySignature = class extends OptionalType {
|
|
5294
|
+
name;
|
|
5295
|
+
isReadonly;
|
|
5306
5296
|
constructor(name, type, isOptional, isReadonly, annotations3) {
|
|
5307
5297
|
super(type, isOptional, annotations3);
|
|
5308
|
-
__publicField(this, "name");
|
|
5309
|
-
__publicField(this, "isReadonly");
|
|
5310
5298
|
this.name = name;
|
|
5311
5299
|
this.isReadonly = isReadonly;
|
|
5312
5300
|
}
|
|
@@ -5341,13 +5329,13 @@ var isParameter = (ast) => {
|
|
|
5341
5329
|
return false;
|
|
5342
5330
|
};
|
|
5343
5331
|
var IndexSignature = class {
|
|
5332
|
+
type;
|
|
5333
|
+
isReadonly;
|
|
5334
|
+
/**
|
|
5335
|
+
* @since 3.10.0
|
|
5336
|
+
*/
|
|
5337
|
+
parameter;
|
|
5344
5338
|
constructor(parameter, type, isReadonly) {
|
|
5345
|
-
__publicField(this, "type");
|
|
5346
|
-
__publicField(this, "isReadonly");
|
|
5347
|
-
/**
|
|
5348
|
-
* @since 3.10.0
|
|
5349
|
-
*/
|
|
5350
|
-
__publicField(this, "parameter");
|
|
5351
5339
|
this.type = type;
|
|
5352
5340
|
this.isReadonly = isReadonly;
|
|
5353
5341
|
if (isParameter(parameter)) {
|
|
@@ -5374,20 +5362,20 @@ var IndexSignature = class {
|
|
|
5374
5362
|
}
|
|
5375
5363
|
};
|
|
5376
5364
|
var TypeLiteral = class {
|
|
5365
|
+
annotations;
|
|
5366
|
+
/**
|
|
5367
|
+
* @since 3.10.0
|
|
5368
|
+
*/
|
|
5369
|
+
_tag = "TypeLiteral";
|
|
5370
|
+
/**
|
|
5371
|
+
* @since 3.10.0
|
|
5372
|
+
*/
|
|
5373
|
+
propertySignatures;
|
|
5374
|
+
/**
|
|
5375
|
+
* @since 3.10.0
|
|
5376
|
+
*/
|
|
5377
|
+
indexSignatures;
|
|
5377
5378
|
constructor(propertySignatures, indexSignatures, annotations3 = {}) {
|
|
5378
|
-
__publicField(this, "annotations");
|
|
5379
|
-
/**
|
|
5380
|
-
* @since 3.10.0
|
|
5381
|
-
*/
|
|
5382
|
-
__publicField(this, "_tag", "TypeLiteral");
|
|
5383
|
-
/**
|
|
5384
|
-
* @since 3.10.0
|
|
5385
|
-
*/
|
|
5386
|
-
__publicField(this, "propertySignatures");
|
|
5387
|
-
/**
|
|
5388
|
-
* @since 3.10.0
|
|
5389
|
-
*/
|
|
5390
|
-
__publicField(this, "indexSignatures");
|
|
5391
5379
|
this.annotations = annotations3;
|
|
5392
5380
|
const keys5 = {};
|
|
5393
5381
|
for (let i = 0; i < propertySignatures.length; i++) {
|
|
@@ -5561,14 +5549,21 @@ var unify = (candidates) => {
|
|
|
5561
5549
|
}
|
|
5562
5550
|
return out;
|
|
5563
5551
|
};
|
|
5564
|
-
var
|
|
5552
|
+
var Union = class _Union {
|
|
5553
|
+
types;
|
|
5554
|
+
annotations;
|
|
5555
|
+
static make = (types, annotations3) => {
|
|
5556
|
+
return isMembers(types) ? new _Union(types, annotations3) : types.length === 1 ? types[0] : neverKeyword;
|
|
5557
|
+
};
|
|
5558
|
+
/** @internal */
|
|
5559
|
+
static unify = (candidates, annotations3) => {
|
|
5560
|
+
return _Union.make(unify(flatten2(candidates)), annotations3);
|
|
5561
|
+
};
|
|
5562
|
+
/**
|
|
5563
|
+
* @since 3.10.0
|
|
5564
|
+
*/
|
|
5565
|
+
_tag = "Union";
|
|
5565
5566
|
constructor(types, annotations3 = {}) {
|
|
5566
|
-
__publicField(this, "types");
|
|
5567
|
-
__publicField(this, "annotations");
|
|
5568
|
-
/**
|
|
5569
|
-
* @since 3.10.0
|
|
5570
|
-
*/
|
|
5571
|
-
__publicField(this, "_tag", "Union");
|
|
5572
5567
|
this.types = types;
|
|
5573
5568
|
this.annotations = annotations3;
|
|
5574
5569
|
}
|
|
@@ -5589,26 +5584,18 @@ var _Union = class _Union {
|
|
|
5589
5584
|
};
|
|
5590
5585
|
}
|
|
5591
5586
|
};
|
|
5592
|
-
__publicField(_Union, "make", (types, annotations3) => {
|
|
5593
|
-
return isMembers(types) ? new _Union(types, annotations3) : types.length === 1 ? types[0] : neverKeyword;
|
|
5594
|
-
});
|
|
5595
|
-
/** @internal */
|
|
5596
|
-
__publicField(_Union, "unify", (candidates, annotations3) => {
|
|
5597
|
-
return _Union.make(unify(flatten2(candidates)), annotations3);
|
|
5598
|
-
});
|
|
5599
|
-
var Union = _Union;
|
|
5600
5587
|
var mapMembers = (members, f) => members.map(f);
|
|
5601
5588
|
var isMembers = (as4) => as4.length > 1;
|
|
5602
5589
|
var isUnion = /* @__PURE__ */ createASTGuard("Union");
|
|
5603
5590
|
var toJSONMemoMap = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Schema/AST/toJSONMemoMap"), () => /* @__PURE__ */ new WeakMap());
|
|
5604
5591
|
var Suspend = class {
|
|
5592
|
+
f;
|
|
5593
|
+
annotations;
|
|
5594
|
+
/**
|
|
5595
|
+
* @since 3.10.0
|
|
5596
|
+
*/
|
|
5597
|
+
_tag = "Suspend";
|
|
5605
5598
|
constructor(f, annotations3 = {}) {
|
|
5606
|
-
__publicField(this, "f");
|
|
5607
|
-
__publicField(this, "annotations");
|
|
5608
|
-
/**
|
|
5609
|
-
* @since 3.10.0
|
|
5610
|
-
*/
|
|
5611
|
-
__publicField(this, "_tag", "Suspend");
|
|
5612
5599
|
this.f = f;
|
|
5613
5600
|
this.annotations = annotations3;
|
|
5614
5601
|
this.f = memoizeThunk(f);
|
|
@@ -5641,14 +5628,14 @@ var Suspend = class {
|
|
|
5641
5628
|
}
|
|
5642
5629
|
};
|
|
5643
5630
|
var Refinement = class {
|
|
5631
|
+
from;
|
|
5632
|
+
filter;
|
|
5633
|
+
annotations;
|
|
5634
|
+
/**
|
|
5635
|
+
* @since 3.10.0
|
|
5636
|
+
*/
|
|
5637
|
+
_tag = "Refinement";
|
|
5644
5638
|
constructor(from, filter8, annotations3 = {}) {
|
|
5645
|
-
__publicField(this, "from");
|
|
5646
|
-
__publicField(this, "filter");
|
|
5647
|
-
__publicField(this, "annotations");
|
|
5648
|
-
/**
|
|
5649
|
-
* @since 3.10.0
|
|
5650
|
-
*/
|
|
5651
|
-
__publicField(this, "_tag", "Refinement");
|
|
5652
5639
|
this.from = from;
|
|
5653
5640
|
this.filter = filter8;
|
|
5654
5641
|
this.annotations = annotations3;
|
|
@@ -5676,15 +5663,15 @@ var Refinement = class {
|
|
|
5676
5663
|
var isRefinement = /* @__PURE__ */ createASTGuard("Refinement");
|
|
5677
5664
|
var defaultParseOption = {};
|
|
5678
5665
|
var Transformation = class {
|
|
5666
|
+
from;
|
|
5667
|
+
to;
|
|
5668
|
+
transformation;
|
|
5669
|
+
annotations;
|
|
5670
|
+
/**
|
|
5671
|
+
* @since 3.10.0
|
|
5672
|
+
*/
|
|
5673
|
+
_tag = "Transformation";
|
|
5679
5674
|
constructor(from, to, transformation, annotations3 = {}) {
|
|
5680
|
-
__publicField(this, "from");
|
|
5681
|
-
__publicField(this, "to");
|
|
5682
|
-
__publicField(this, "transformation");
|
|
5683
|
-
__publicField(this, "annotations");
|
|
5684
|
-
/**
|
|
5685
|
-
* @since 3.10.0
|
|
5686
|
-
*/
|
|
5687
|
-
__publicField(this, "_tag", "Transformation");
|
|
5688
5675
|
this.from = from;
|
|
5689
5676
|
this.to = to;
|
|
5690
5677
|
this.transformation = transformation;
|
|
@@ -5709,33 +5696,31 @@ var Transformation = class {
|
|
|
5709
5696
|
}
|
|
5710
5697
|
};
|
|
5711
5698
|
var FinalTransformation = class {
|
|
5699
|
+
decode;
|
|
5700
|
+
encode;
|
|
5701
|
+
/**
|
|
5702
|
+
* @since 3.10.0
|
|
5703
|
+
*/
|
|
5704
|
+
_tag = "FinalTransformation";
|
|
5712
5705
|
constructor(decode6, encode5) {
|
|
5713
|
-
__publicField(this, "decode");
|
|
5714
|
-
__publicField(this, "encode");
|
|
5715
|
-
/**
|
|
5716
|
-
* @since 3.10.0
|
|
5717
|
-
*/
|
|
5718
|
-
__publicField(this, "_tag", "FinalTransformation");
|
|
5719
5706
|
this.decode = decode6;
|
|
5720
5707
|
this.encode = encode5;
|
|
5721
5708
|
}
|
|
5722
5709
|
};
|
|
5723
5710
|
var createTransformationGuard = (tag2) => (ast) => ast._tag === tag2;
|
|
5724
5711
|
var ComposeTransformation = class {
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
__publicField(this, "_tag", "ComposeTransformation");
|
|
5730
|
-
}
|
|
5712
|
+
/**
|
|
5713
|
+
* @since 3.10.0
|
|
5714
|
+
*/
|
|
5715
|
+
_tag = "ComposeTransformation";
|
|
5731
5716
|
};
|
|
5732
5717
|
var composeTransformation = /* @__PURE__ */ new ComposeTransformation();
|
|
5733
5718
|
var PropertySignatureTransformation = class {
|
|
5719
|
+
from;
|
|
5720
|
+
to;
|
|
5721
|
+
decode;
|
|
5722
|
+
encode;
|
|
5734
5723
|
constructor(from, to, decode6, encode5) {
|
|
5735
|
-
__publicField(this, "from");
|
|
5736
|
-
__publicField(this, "to");
|
|
5737
|
-
__publicField(this, "decode");
|
|
5738
|
-
__publicField(this, "encode");
|
|
5739
5724
|
this.from = from;
|
|
5740
5725
|
this.to = to;
|
|
5741
5726
|
this.decode = decode6;
|
|
@@ -5744,12 +5729,12 @@ var PropertySignatureTransformation = class {
|
|
|
5744
5729
|
};
|
|
5745
5730
|
var isRenamingPropertySignatureTransformation = (t) => t.decode === identity && t.encode === identity;
|
|
5746
5731
|
var TypeLiteralTransformation = class {
|
|
5732
|
+
propertySignatureTransformations;
|
|
5733
|
+
/**
|
|
5734
|
+
* @since 3.10.0
|
|
5735
|
+
*/
|
|
5736
|
+
_tag = "TypeLiteralTransformation";
|
|
5747
5737
|
constructor(propertySignatureTransformations) {
|
|
5748
|
-
__publicField(this, "propertySignatureTransformations");
|
|
5749
|
-
/**
|
|
5750
|
-
* @since 3.10.0
|
|
5751
|
-
*/
|
|
5752
|
-
__publicField(this, "_tag", "TypeLiteralTransformation");
|
|
5753
5738
|
this.propertySignatureTransformations = propertySignatureTransformations;
|
|
5754
5739
|
const fromKeys = {};
|
|
5755
5740
|
const toKeys = {};
|
|
@@ -7530,9 +7515,7 @@ function arraySpliceIn(mutate4, at, v, arr) {
|
|
|
7530
7515
|
|
|
7531
7516
|
// ../../node_modules/.pnpm/effect@3.12.10/node_modules/effect/dist/esm/internal/hashMap/node.js
|
|
7532
7517
|
var EmptyNode = class _EmptyNode {
|
|
7533
|
-
|
|
7534
|
-
__publicField(this, "_tag", "EmptyNode");
|
|
7535
|
-
}
|
|
7518
|
+
_tag = "EmptyNode";
|
|
7536
7519
|
modify(edit, _shift, f, hash3, key, size7) {
|
|
7537
7520
|
const v = f(none2());
|
|
7538
7521
|
if (isNone2(v)) return new _EmptyNode();
|
|
@@ -7550,12 +7533,12 @@ function canEditNode(node, edit) {
|
|
|
7550
7533
|
return isEmptyNode(node) ? false : edit === node.edit;
|
|
7551
7534
|
}
|
|
7552
7535
|
var LeafNode = class _LeafNode {
|
|
7536
|
+
edit;
|
|
7537
|
+
hash;
|
|
7538
|
+
key;
|
|
7539
|
+
value;
|
|
7540
|
+
_tag = "LeafNode";
|
|
7553
7541
|
constructor(edit, hash3, key, value3) {
|
|
7554
|
-
__publicField(this, "edit");
|
|
7555
|
-
__publicField(this, "hash");
|
|
7556
|
-
__publicField(this, "key");
|
|
7557
|
-
__publicField(this, "value");
|
|
7558
|
-
__publicField(this, "_tag", "LeafNode");
|
|
7559
7542
|
this.edit = edit;
|
|
7560
7543
|
this.hash = hash3;
|
|
7561
7544
|
this.key = key;
|
|
@@ -7583,11 +7566,11 @@ var LeafNode = class _LeafNode {
|
|
|
7583
7566
|
}
|
|
7584
7567
|
};
|
|
7585
7568
|
var CollisionNode = class _CollisionNode {
|
|
7569
|
+
edit;
|
|
7570
|
+
hash;
|
|
7571
|
+
children;
|
|
7572
|
+
_tag = "CollisionNode";
|
|
7586
7573
|
constructor(edit, hash3, children) {
|
|
7587
|
-
__publicField(this, "edit");
|
|
7588
|
-
__publicField(this, "hash");
|
|
7589
|
-
__publicField(this, "children");
|
|
7590
|
-
__publicField(this, "_tag", "CollisionNode");
|
|
7591
7574
|
this.edit = edit;
|
|
7592
7575
|
this.hash = hash3;
|
|
7593
7576
|
this.children = children;
|
|
@@ -7627,11 +7610,11 @@ var CollisionNode = class _CollisionNode {
|
|
|
7627
7610
|
}
|
|
7628
7611
|
};
|
|
7629
7612
|
var IndexedNode = class _IndexedNode {
|
|
7613
|
+
edit;
|
|
7614
|
+
mask;
|
|
7615
|
+
children;
|
|
7616
|
+
_tag = "IndexedNode";
|
|
7630
7617
|
constructor(edit, mask, children) {
|
|
7631
|
-
__publicField(this, "edit");
|
|
7632
|
-
__publicField(this, "mask");
|
|
7633
|
-
__publicField(this, "children");
|
|
7634
|
-
__publicField(this, "_tag", "IndexedNode");
|
|
7635
7618
|
this.edit = edit;
|
|
7636
7619
|
this.mask = mask;
|
|
7637
7620
|
this.children = children;
|
|
@@ -7673,11 +7656,11 @@ var IndexedNode = class _IndexedNode {
|
|
|
7673
7656
|
}
|
|
7674
7657
|
};
|
|
7675
7658
|
var ArrayNode = class _ArrayNode {
|
|
7659
|
+
edit;
|
|
7660
|
+
size;
|
|
7661
|
+
children;
|
|
7662
|
+
_tag = "ArrayNode";
|
|
7676
7663
|
constructor(edit, size7, children) {
|
|
7677
|
-
__publicField(this, "edit");
|
|
7678
|
-
__publicField(this, "size");
|
|
7679
|
-
__publicField(this, "children");
|
|
7680
|
-
__publicField(this, "_tag", "ArrayNode");
|
|
7681
7664
|
this.edit = edit;
|
|
7682
7665
|
this.size = size7;
|
|
7683
7666
|
this.children = children;
|
|
@@ -7828,10 +7811,10 @@ var makeImpl = (editable, edit, root, size7) => {
|
|
|
7828
7811
|
return map15;
|
|
7829
7812
|
};
|
|
7830
7813
|
var HashMapIterator = class _HashMapIterator {
|
|
7814
|
+
map;
|
|
7815
|
+
f;
|
|
7816
|
+
v;
|
|
7831
7817
|
constructor(map15, f) {
|
|
7832
|
-
__publicField(this, "map");
|
|
7833
|
-
__publicField(this, "f");
|
|
7834
|
-
__publicField(this, "v");
|
|
7835
7818
|
this.map = map15;
|
|
7836
7819
|
this.f = f;
|
|
7837
7820
|
this.v = visitLazy(this.map._root, this.f, void 0);
|
|
@@ -8133,15 +8116,12 @@ var OP_NONE = "None";
|
|
|
8133
8116
|
var OP_RUNTIME = "Runtime";
|
|
8134
8117
|
var OP_COMPOSITE = "Composite";
|
|
8135
8118
|
var emptyHash = /* @__PURE__ */ string(`${FiberIdSymbolKey}-${OP_NONE}`);
|
|
8136
|
-
var _a2;
|
|
8137
8119
|
var None = class {
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
}
|
|
8144
|
-
[(_a2 = FiberIdTypeId, symbol)]() {
|
|
8120
|
+
[FiberIdTypeId] = FiberIdTypeId;
|
|
8121
|
+
_tag = OP_NONE;
|
|
8122
|
+
id = -1;
|
|
8123
|
+
startTimeMillis = -1;
|
|
8124
|
+
[symbol]() {
|
|
8145
8125
|
return emptyHash;
|
|
8146
8126
|
}
|
|
8147
8127
|
[symbol2](that) {
|
|
@@ -8160,17 +8140,16 @@ var None = class {
|
|
|
8160
8140
|
return this.toJSON();
|
|
8161
8141
|
}
|
|
8162
8142
|
};
|
|
8163
|
-
var _a3;
|
|
8164
8143
|
var Runtime = class {
|
|
8144
|
+
id;
|
|
8145
|
+
startTimeMillis;
|
|
8146
|
+
[FiberIdTypeId] = FiberIdTypeId;
|
|
8147
|
+
_tag = OP_RUNTIME;
|
|
8165
8148
|
constructor(id, startTimeMillis) {
|
|
8166
|
-
__publicField(this, "id");
|
|
8167
|
-
__publicField(this, "startTimeMillis");
|
|
8168
|
-
__publicField(this, _a3, FiberIdTypeId);
|
|
8169
|
-
__publicField(this, "_tag", OP_RUNTIME);
|
|
8170
8149
|
this.id = id;
|
|
8171
8150
|
this.startTimeMillis = startTimeMillis;
|
|
8172
8151
|
}
|
|
8173
|
-
[
|
|
8152
|
+
[symbol]() {
|
|
8174
8153
|
return cached(this, string(`${FiberIdSymbolKey}-${this._tag}-${this.id}-${this.startTimeMillis}`));
|
|
8175
8154
|
}
|
|
8176
8155
|
[symbol2](that) {
|
|
@@ -8191,18 +8170,17 @@ var Runtime = class {
|
|
|
8191
8170
|
return this.toJSON();
|
|
8192
8171
|
}
|
|
8193
8172
|
};
|
|
8194
|
-
var _a4;
|
|
8195
8173
|
var Composite = class {
|
|
8174
|
+
left;
|
|
8175
|
+
right;
|
|
8176
|
+
[FiberIdTypeId] = FiberIdTypeId;
|
|
8177
|
+
_tag = OP_COMPOSITE;
|
|
8196
8178
|
constructor(left3, right3) {
|
|
8197
|
-
__publicField(this, "left");
|
|
8198
|
-
__publicField(this, "right");
|
|
8199
|
-
__publicField(this, _a4, FiberIdTypeId);
|
|
8200
|
-
__publicField(this, "_tag", OP_COMPOSITE);
|
|
8201
|
-
__publicField(this, "_hash");
|
|
8202
8179
|
this.left = left3;
|
|
8203
8180
|
this.right = right3;
|
|
8204
8181
|
}
|
|
8205
|
-
|
|
8182
|
+
_hash;
|
|
8183
|
+
[symbol]() {
|
|
8206
8184
|
return pipe(string(`${FiberIdSymbolKey}-${this._tag}`), combine(hash(this.left)), combine(hash(this.right)), cached(this));
|
|
8207
8185
|
}
|
|
8208
8186
|
[symbol2](that) {
|
|
@@ -8995,16 +8973,14 @@ var merge4 = (sequential5, parallel5) => {
|
|
|
8995
8973
|
return cons(parallelCollectionToSequentialCollection(parallel5), sequential5);
|
|
8996
8974
|
};
|
|
8997
8975
|
var EntryTypeId = /* @__PURE__ */ Symbol.for("effect/RequestBlock/Entry");
|
|
8998
|
-
var _a5;
|
|
8999
|
-
_a5 = EntryTypeId;
|
|
9000
8976
|
var EntryImpl = class {
|
|
8977
|
+
request;
|
|
8978
|
+
result;
|
|
8979
|
+
listeners;
|
|
8980
|
+
ownerId;
|
|
8981
|
+
state;
|
|
8982
|
+
[EntryTypeId] = blockedRequestVariance;
|
|
9001
8983
|
constructor(request, result, listeners, ownerId, state) {
|
|
9002
|
-
__publicField(this, "request");
|
|
9003
|
-
__publicField(this, "result");
|
|
9004
|
-
__publicField(this, "listeners");
|
|
9005
|
-
__publicField(this, "ownerId");
|
|
9006
|
-
__publicField(this, "state");
|
|
9007
|
-
__publicField(this, _a5, blockedRequestVariance);
|
|
9008
8984
|
this.request = request;
|
|
9009
8985
|
this.result = result;
|
|
9010
8986
|
this.listeners = listeners;
|
|
@@ -9021,12 +8997,10 @@ var parallelVariance = {
|
|
|
9021
8997
|
/* c8 ignore next */
|
|
9022
8998
|
_R: (_) => _
|
|
9023
8999
|
};
|
|
9024
|
-
var _a6;
|
|
9025
|
-
_a6 = RequestBlockParallelTypeId;
|
|
9026
9000
|
var ParallelImpl = class {
|
|
9001
|
+
map;
|
|
9002
|
+
[RequestBlockParallelTypeId] = parallelVariance;
|
|
9027
9003
|
constructor(map15) {
|
|
9028
|
-
__publicField(this, "map");
|
|
9029
|
-
__publicField(this, _a6, parallelVariance);
|
|
9030
9004
|
this.map = map15;
|
|
9031
9005
|
}
|
|
9032
9006
|
};
|
|
@@ -9044,12 +9018,10 @@ var sequentialVariance = {
|
|
|
9044
9018
|
/* c8 ignore next */
|
|
9045
9019
|
_R: (_) => _
|
|
9046
9020
|
};
|
|
9047
|
-
var _a7;
|
|
9048
|
-
_a7 = SequentialCollectionTypeId;
|
|
9049
9021
|
var SequentialImpl = class {
|
|
9022
|
+
map;
|
|
9023
|
+
[SequentialCollectionTypeId] = sequentialVariance;
|
|
9050
9024
|
constructor(map15) {
|
|
9051
|
-
__publicField(this, "map");
|
|
9052
|
-
__publicField(this, _a7, sequentialVariance);
|
|
9053
9025
|
this.map = map15;
|
|
9054
9026
|
}
|
|
9055
9027
|
};
|
|
@@ -9512,6 +9484,7 @@ ${prefix}}`;
|
|
|
9512
9484
|
return stack;
|
|
9513
9485
|
};
|
|
9514
9486
|
var PrettyError = class _PrettyError extends globalThis.Error {
|
|
9487
|
+
span = void 0;
|
|
9515
9488
|
constructor(originalError) {
|
|
9516
9489
|
const originalErrorIsObject = typeof originalError === "object" && originalError !== null;
|
|
9517
9490
|
const prevLimit = Error.stackTraceLimit;
|
|
@@ -9519,7 +9492,6 @@ var PrettyError = class _PrettyError extends globalThis.Error {
|
|
|
9519
9492
|
super(prettyErrorMessage(originalError), originalErrorIsObject && "cause" in originalError && typeof originalError.cause !== "undefined" ? {
|
|
9520
9493
|
cause: new _PrettyError(originalError.cause)
|
|
9521
9494
|
} : void 0);
|
|
9522
|
-
__publicField(this, "span");
|
|
9523
9495
|
if (this.message === "") {
|
|
9524
9496
|
this.message = "An error has occurred";
|
|
9525
9497
|
}
|
|
@@ -9639,9 +9611,9 @@ var done = (effect) => {
|
|
|
9639
9611
|
|
|
9640
9612
|
// ../../node_modules/.pnpm/effect@3.12.10/node_modules/effect/dist/esm/internal/singleShotGen.js
|
|
9641
9613
|
var SingleShotGen2 = class _SingleShotGen {
|
|
9614
|
+
self;
|
|
9615
|
+
called = false;
|
|
9642
9616
|
constructor(self) {
|
|
9643
|
-
__publicField(this, "self");
|
|
9644
|
-
__publicField(this, "called", false);
|
|
9645
9617
|
this.self = self;
|
|
9646
9618
|
}
|
|
9647
9619
|
next(a) {
|
|
@@ -9681,26 +9653,25 @@ var runRequestBlock = (blockedRequests) => {
|
|
|
9681
9653
|
};
|
|
9682
9654
|
var EffectTypeId2 = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
9683
9655
|
var RevertFlags = class {
|
|
9656
|
+
patch;
|
|
9657
|
+
op;
|
|
9658
|
+
_op = OP_REVERT_FLAGS;
|
|
9684
9659
|
constructor(patch9, op) {
|
|
9685
|
-
__publicField(this, "patch");
|
|
9686
|
-
__publicField(this, "op");
|
|
9687
|
-
__publicField(this, "_op", OP_REVERT_FLAGS);
|
|
9688
9660
|
this.patch = patch9;
|
|
9689
9661
|
this.op = op;
|
|
9690
9662
|
}
|
|
9691
9663
|
};
|
|
9692
|
-
var _a8;
|
|
9693
9664
|
var EffectPrimitive = class {
|
|
9665
|
+
_op;
|
|
9666
|
+
effect_instruction_i0 = void 0;
|
|
9667
|
+
effect_instruction_i1 = void 0;
|
|
9668
|
+
effect_instruction_i2 = void 0;
|
|
9669
|
+
trace = void 0;
|
|
9670
|
+
[EffectTypeId2] = effectVariance;
|
|
9694
9671
|
constructor(_op) {
|
|
9695
|
-
__publicField(this, "_op");
|
|
9696
|
-
__publicField(this, "effect_instruction_i0");
|
|
9697
|
-
__publicField(this, "effect_instruction_i1");
|
|
9698
|
-
__publicField(this, "effect_instruction_i2");
|
|
9699
|
-
__publicField(this, "trace");
|
|
9700
|
-
__publicField(this, _a8, effectVariance);
|
|
9701
9672
|
this._op = _op;
|
|
9702
9673
|
}
|
|
9703
|
-
[
|
|
9674
|
+
[symbol2](that) {
|
|
9704
9675
|
return this === that;
|
|
9705
9676
|
}
|
|
9706
9677
|
[symbol]() {
|
|
@@ -9728,19 +9699,18 @@ var EffectPrimitive = class {
|
|
|
9728
9699
|
return new SingleShotGen2(new YieldWrap(this));
|
|
9729
9700
|
}
|
|
9730
9701
|
};
|
|
9731
|
-
var _a9;
|
|
9732
9702
|
var EffectPrimitiveFailure = class {
|
|
9703
|
+
_op;
|
|
9704
|
+
effect_instruction_i0 = void 0;
|
|
9705
|
+
effect_instruction_i1 = void 0;
|
|
9706
|
+
effect_instruction_i2 = void 0;
|
|
9707
|
+
trace = void 0;
|
|
9708
|
+
[EffectTypeId2] = effectVariance;
|
|
9733
9709
|
constructor(_op) {
|
|
9734
|
-
__publicField(this, "_op");
|
|
9735
|
-
__publicField(this, "effect_instruction_i0");
|
|
9736
|
-
__publicField(this, "effect_instruction_i1");
|
|
9737
|
-
__publicField(this, "effect_instruction_i2");
|
|
9738
|
-
__publicField(this, "trace");
|
|
9739
|
-
__publicField(this, _a9, effectVariance);
|
|
9740
9710
|
this._op = _op;
|
|
9741
9711
|
this._tag = _op;
|
|
9742
9712
|
}
|
|
9743
|
-
[
|
|
9713
|
+
[symbol2](that) {
|
|
9744
9714
|
return exitIsExit(that) && that._op === "Failure" && // @ts-expect-error
|
|
9745
9715
|
equals(this.effect_instruction_i0, that.effect_instruction_i0);
|
|
9746
9716
|
}
|
|
@@ -9776,19 +9746,18 @@ var EffectPrimitiveFailure = class {
|
|
|
9776
9746
|
return new SingleShotGen2(new YieldWrap(this));
|
|
9777
9747
|
}
|
|
9778
9748
|
};
|
|
9779
|
-
var _a10;
|
|
9780
9749
|
var EffectPrimitiveSuccess = class {
|
|
9750
|
+
_op;
|
|
9751
|
+
effect_instruction_i0 = void 0;
|
|
9752
|
+
effect_instruction_i1 = void 0;
|
|
9753
|
+
effect_instruction_i2 = void 0;
|
|
9754
|
+
trace = void 0;
|
|
9755
|
+
[EffectTypeId2] = effectVariance;
|
|
9781
9756
|
constructor(_op) {
|
|
9782
|
-
__publicField(this, "_op");
|
|
9783
|
-
__publicField(this, "effect_instruction_i0");
|
|
9784
|
-
__publicField(this, "effect_instruction_i1");
|
|
9785
|
-
__publicField(this, "effect_instruction_i2");
|
|
9786
|
-
__publicField(this, "trace");
|
|
9787
|
-
__publicField(this, _a10, effectVariance);
|
|
9788
9757
|
this._op = _op;
|
|
9789
9758
|
this._tag = _op;
|
|
9790
9759
|
}
|
|
9791
|
-
[
|
|
9760
|
+
[symbol2](that) {
|
|
9792
9761
|
return exitIsExit(that) && that._op === "Success" && // @ts-expect-error
|
|
9793
9762
|
equals(this.effect_instruction_i0, that.effect_instruction_i0);
|
|
9794
9763
|
}
|
|
@@ -10228,16 +10197,15 @@ var requestResolverVariance = {
|
|
|
10228
10197
|
/* c8 ignore next */
|
|
10229
10198
|
_R: (_) => _
|
|
10230
10199
|
};
|
|
10231
|
-
var _a11;
|
|
10232
10200
|
var RequestResolverImpl = class _RequestResolverImpl {
|
|
10201
|
+
runAll;
|
|
10202
|
+
target;
|
|
10203
|
+
[RequestResolverTypeId] = requestResolverVariance;
|
|
10233
10204
|
constructor(runAll, target) {
|
|
10234
|
-
__publicField(this, "runAll");
|
|
10235
|
-
__publicField(this, "target");
|
|
10236
|
-
__publicField(this, _a11, requestResolverVariance);
|
|
10237
10205
|
this.runAll = runAll;
|
|
10238
10206
|
this.target = target;
|
|
10239
10207
|
}
|
|
10240
|
-
[
|
|
10208
|
+
[symbol]() {
|
|
10241
10209
|
return cached(this, this.target ? hash(this.target) : random(this));
|
|
10242
10210
|
}
|
|
10243
10211
|
[symbol2](that) {
|
|
@@ -10352,10 +10320,7 @@ ${this.stack.split("\n").slice(1).join("\n")}` : this.toString();
|
|
|
10352
10320
|
}();
|
|
10353
10321
|
var makeException = (proto5, tag2) => {
|
|
10354
10322
|
class Base3 extends YieldableError {
|
|
10355
|
-
|
|
10356
|
-
super(...arguments);
|
|
10357
|
-
__publicField(this, "_tag", tag2);
|
|
10358
|
-
}
|
|
10323
|
+
_tag = tag2;
|
|
10359
10324
|
}
|
|
10360
10325
|
Object.assign(Base3.prototype, proto5);
|
|
10361
10326
|
Base3.prototype.name = tag2;
|
|
@@ -10393,12 +10358,12 @@ var TimeoutException = /* @__PURE__ */ makeException({
|
|
|
10393
10358
|
var UnknownExceptionTypeId = /* @__PURE__ */ Symbol.for("effect/Cause/errors/UnknownException");
|
|
10394
10359
|
var UnknownException = /* @__PURE__ */ function() {
|
|
10395
10360
|
class UnknownException2 extends YieldableError {
|
|
10361
|
+
_tag = "UnknownException";
|
|
10362
|
+
error;
|
|
10396
10363
|
constructor(cause, message) {
|
|
10397
10364
|
super(message ?? "An unknown error occurred", {
|
|
10398
10365
|
cause
|
|
10399
10366
|
});
|
|
10400
|
-
__publicField(this, "_tag", "UnknownException");
|
|
10401
|
-
__publicField(this, "error");
|
|
10402
10367
|
this.error = cause;
|
|
10403
10368
|
}
|
|
10404
10369
|
}
|
|
@@ -10572,10 +10537,10 @@ var MutableHashMapProto = {
|
|
|
10572
10537
|
}
|
|
10573
10538
|
};
|
|
10574
10539
|
var MutableHashMapIterator = class _MutableHashMapIterator {
|
|
10540
|
+
self;
|
|
10541
|
+
referentialIterator;
|
|
10542
|
+
bucketIterator;
|
|
10575
10543
|
constructor(self) {
|
|
10576
|
-
__publicField(this, "self");
|
|
10577
|
-
__publicField(this, "referentialIterator");
|
|
10578
|
-
__publicField(this, "bucketIterator");
|
|
10579
10544
|
this.self = self;
|
|
10580
10545
|
this.referentialIterator = self.referential[Symbol.iterator]();
|
|
10581
10546
|
}
|
|
@@ -10595,11 +10560,11 @@ var MutableHashMapIterator = class _MutableHashMapIterator {
|
|
|
10595
10560
|
}
|
|
10596
10561
|
};
|
|
10597
10562
|
var BucketIterator = class {
|
|
10563
|
+
backing;
|
|
10598
10564
|
constructor(backing) {
|
|
10599
|
-
__publicField(this, "backing");
|
|
10600
|
-
__publicField(this, "currentBucket");
|
|
10601
10565
|
this.backing = backing;
|
|
10602
10566
|
}
|
|
10567
|
+
currentBucket;
|
|
10603
10568
|
next() {
|
|
10604
10569
|
if (this.currentBucket === void 0) {
|
|
10605
10570
|
const result2 = this.backing.next();
|
|
@@ -10715,20 +10680,16 @@ var processOrPerformanceNow = /* @__PURE__ */ function() {
|
|
|
10715
10680
|
const origin = /* @__PURE__ */ performanceNowNanos() - /* @__PURE__ */ processHrtime.bigint();
|
|
10716
10681
|
return () => origin + processHrtime.bigint();
|
|
10717
10682
|
}();
|
|
10718
|
-
var _a12;
|
|
10719
|
-
_a12 = ClockTypeId;
|
|
10720
10683
|
var ClockImpl = class {
|
|
10721
|
-
|
|
10722
|
-
__publicField(this, _a12, ClockTypeId);
|
|
10723
|
-
__publicField(this, "currentTimeMillis", /* @__PURE__ */ sync(() => this.unsafeCurrentTimeMillis()));
|
|
10724
|
-
__publicField(this, "currentTimeNanos", /* @__PURE__ */ sync(() => this.unsafeCurrentTimeNanos()));
|
|
10725
|
-
}
|
|
10684
|
+
[ClockTypeId] = ClockTypeId;
|
|
10726
10685
|
unsafeCurrentTimeMillis() {
|
|
10727
10686
|
return Date.now();
|
|
10728
10687
|
}
|
|
10729
10688
|
unsafeCurrentTimeNanos() {
|
|
10730
10689
|
return processOrPerformanceNow();
|
|
10731
10690
|
}
|
|
10691
|
+
currentTimeMillis = /* @__PURE__ */ sync(() => this.unsafeCurrentTimeMillis());
|
|
10692
|
+
currentTimeNanos = /* @__PURE__ */ sync(() => this.unsafeCurrentTimeNanos());
|
|
10732
10693
|
scheduler() {
|
|
10733
10694
|
return succeed(globalClockScheduler);
|
|
10734
10695
|
}
|
|
@@ -11222,13 +11183,11 @@ var defaultConsole = {
|
|
|
11222
11183
|
var RandomSymbolKey = "effect/Random";
|
|
11223
11184
|
var RandomTypeId = /* @__PURE__ */ Symbol.for(RandomSymbolKey);
|
|
11224
11185
|
var randomTag = /* @__PURE__ */ GenericTag("effect/Random");
|
|
11225
|
-
var _a13;
|
|
11226
|
-
_a13 = RandomTypeId;
|
|
11227
11186
|
var RandomImpl = class {
|
|
11187
|
+
seed;
|
|
11188
|
+
[RandomTypeId] = RandomTypeId;
|
|
11189
|
+
PRNG;
|
|
11228
11190
|
constructor(seed) {
|
|
11229
|
-
__publicField(this, "seed");
|
|
11230
|
-
__publicField(this, _a13, RandomTypeId);
|
|
11231
|
-
__publicField(this, "PRNG");
|
|
11232
11191
|
this.seed = seed;
|
|
11233
11192
|
this.PRNG = new PCGRandom(seed);
|
|
11234
11193
|
}
|
|
@@ -11288,20 +11247,20 @@ var randomHexString = /* @__PURE__ */ function() {
|
|
|
11288
11247
|
};
|
|
11289
11248
|
}();
|
|
11290
11249
|
var NativeSpan = class {
|
|
11250
|
+
name;
|
|
11251
|
+
parent;
|
|
11252
|
+
context;
|
|
11253
|
+
links;
|
|
11254
|
+
startTime;
|
|
11255
|
+
kind;
|
|
11256
|
+
_tag = "Span";
|
|
11257
|
+
spanId;
|
|
11258
|
+
traceId = "native";
|
|
11259
|
+
sampled = true;
|
|
11260
|
+
status;
|
|
11261
|
+
attributes;
|
|
11262
|
+
events = [];
|
|
11291
11263
|
constructor(name, parent, context3, links, startTime, kind) {
|
|
11292
|
-
__publicField(this, "name");
|
|
11293
|
-
__publicField(this, "parent");
|
|
11294
|
-
__publicField(this, "context");
|
|
11295
|
-
__publicField(this, "links");
|
|
11296
|
-
__publicField(this, "startTime");
|
|
11297
|
-
__publicField(this, "kind");
|
|
11298
|
-
__publicField(this, "_tag", "Span");
|
|
11299
|
-
__publicField(this, "spanId");
|
|
11300
|
-
__publicField(this, "traceId", "native");
|
|
11301
|
-
__publicField(this, "sampled", true);
|
|
11302
|
-
__publicField(this, "status");
|
|
11303
|
-
__publicField(this, "attributes");
|
|
11304
|
-
__publicField(this, "events", []);
|
|
11305
11264
|
this.name = name;
|
|
11306
11265
|
this.parent = parent;
|
|
11307
11266
|
this.context = context3;
|
|
@@ -11351,12 +11310,10 @@ function empty17() {
|
|
|
11351
11310
|
return unsafeMake3(/* @__PURE__ */ new Map());
|
|
11352
11311
|
}
|
|
11353
11312
|
var FiberRefsSym = /* @__PURE__ */ Symbol.for("effect/FiberRefs");
|
|
11354
|
-
var _a14;
|
|
11355
|
-
_a14 = FiberRefsSym;
|
|
11356
11313
|
var FiberRefsImpl = class {
|
|
11314
|
+
locals;
|
|
11315
|
+
[FiberRefsSym] = FiberRefsSym;
|
|
11357
11316
|
constructor(locals) {
|
|
11358
|
-
__publicField(this, "locals");
|
|
11359
|
-
__publicField(this, _a14, FiberRefsSym);
|
|
11360
11317
|
this.locals = locals;
|
|
11361
11318
|
}
|
|
11362
11319
|
pipe() {
|
|
@@ -11655,18 +11612,17 @@ var patch6 = /* @__PURE__ */ dual(3, (self, fiberId2, oldValue) => {
|
|
|
11655
11612
|
// ../../node_modules/.pnpm/effect@3.12.10/node_modules/effect/dist/esm/internal/metric/label.js
|
|
11656
11613
|
var MetricLabelSymbolKey = "effect/MetricLabel";
|
|
11657
11614
|
var MetricLabelTypeId = /* @__PURE__ */ Symbol.for(MetricLabelSymbolKey);
|
|
11658
|
-
var _a15;
|
|
11659
11615
|
var MetricLabelImpl = class {
|
|
11616
|
+
key;
|
|
11617
|
+
value;
|
|
11618
|
+
[MetricLabelTypeId] = MetricLabelTypeId;
|
|
11619
|
+
_hash;
|
|
11660
11620
|
constructor(key, value3) {
|
|
11661
|
-
__publicField(this, "key");
|
|
11662
|
-
__publicField(this, "value");
|
|
11663
|
-
__publicField(this, _a15, MetricLabelTypeId);
|
|
11664
|
-
__publicField(this, "_hash");
|
|
11665
11621
|
this.key = key;
|
|
11666
11622
|
this.value = value3;
|
|
11667
11623
|
this._hash = string(MetricLabelSymbolKey + this.key + this.value);
|
|
11668
11624
|
}
|
|
11669
|
-
[
|
|
11625
|
+
[symbol]() {
|
|
11670
11626
|
return this._hash;
|
|
11671
11627
|
}
|
|
11672
11628
|
[symbol2](that) {
|
|
@@ -11714,45 +11670,40 @@ var OP_DONE = "Done";
|
|
|
11714
11670
|
var OP_RUNNING = "Running";
|
|
11715
11671
|
var OP_SUSPENDED = "Suspended";
|
|
11716
11672
|
var DoneHash = /* @__PURE__ */ string(`${FiberStatusSymbolKey}-${OP_DONE}`);
|
|
11717
|
-
var _a16;
|
|
11718
11673
|
var Done = class {
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
}
|
|
11723
|
-
[(_a16 = FiberStatusTypeId, symbol)]() {
|
|
11674
|
+
[FiberStatusTypeId] = FiberStatusTypeId;
|
|
11675
|
+
_tag = OP_DONE;
|
|
11676
|
+
[symbol]() {
|
|
11724
11677
|
return DoneHash;
|
|
11725
11678
|
}
|
|
11726
11679
|
[symbol2](that) {
|
|
11727
11680
|
return isFiberStatus(that) && that._tag === OP_DONE;
|
|
11728
11681
|
}
|
|
11729
11682
|
};
|
|
11730
|
-
var _a17;
|
|
11731
11683
|
var Running = class {
|
|
11684
|
+
runtimeFlags;
|
|
11685
|
+
[FiberStatusTypeId] = FiberStatusTypeId;
|
|
11686
|
+
_tag = OP_RUNNING;
|
|
11732
11687
|
constructor(runtimeFlags2) {
|
|
11733
|
-
__publicField(this, "runtimeFlags");
|
|
11734
|
-
__publicField(this, _a17, FiberStatusTypeId);
|
|
11735
|
-
__publicField(this, "_tag", OP_RUNNING);
|
|
11736
11688
|
this.runtimeFlags = runtimeFlags2;
|
|
11737
11689
|
}
|
|
11738
|
-
[
|
|
11690
|
+
[symbol]() {
|
|
11739
11691
|
return pipe(hash(FiberStatusSymbolKey), combine(hash(this._tag)), combine(hash(this.runtimeFlags)), cached(this));
|
|
11740
11692
|
}
|
|
11741
11693
|
[symbol2](that) {
|
|
11742
11694
|
return isFiberStatus(that) && that._tag === OP_RUNNING && this.runtimeFlags === that.runtimeFlags;
|
|
11743
11695
|
}
|
|
11744
11696
|
};
|
|
11745
|
-
var _a18;
|
|
11746
11697
|
var Suspended = class {
|
|
11698
|
+
runtimeFlags;
|
|
11699
|
+
blockingOn;
|
|
11700
|
+
[FiberStatusTypeId] = FiberStatusTypeId;
|
|
11701
|
+
_tag = OP_SUSPENDED;
|
|
11747
11702
|
constructor(runtimeFlags2, blockingOn) {
|
|
11748
|
-
__publicField(this, "runtimeFlags");
|
|
11749
|
-
__publicField(this, "blockingOn");
|
|
11750
|
-
__publicField(this, _a18, FiberStatusTypeId);
|
|
11751
|
-
__publicField(this, "_tag", OP_SUSPENDED);
|
|
11752
11703
|
this.runtimeFlags = runtimeFlags2;
|
|
11753
11704
|
this.blockingOn = blockingOn;
|
|
11754
11705
|
}
|
|
11755
|
-
[
|
|
11706
|
+
[symbol]() {
|
|
11756
11707
|
return pipe(hash(FiberStatusSymbolKey), combine(hash(this._tag)), combine(hash(this.runtimeFlags)), combine(hash(this.blockingOn)), cached(this));
|
|
11757
11708
|
}
|
|
11758
11709
|
[symbol2](that) {
|
|
@@ -11778,8 +11729,10 @@ var MicroCauseTypeId = /* @__PURE__ */ Symbol.for("effect/Micro/MicroCause");
|
|
|
11778
11729
|
var microCauseVariance = {
|
|
11779
11730
|
_E: identity
|
|
11780
11731
|
};
|
|
11781
|
-
var _a19;
|
|
11782
11732
|
var MicroCauseImpl = class extends globalThis.Error {
|
|
11733
|
+
_tag;
|
|
11734
|
+
traces;
|
|
11735
|
+
[MicroCauseTypeId];
|
|
11783
11736
|
constructor(_tag, originalError, traces) {
|
|
11784
11737
|
const causeName = `MicroCause.${_tag}`;
|
|
11785
11738
|
let name;
|
|
@@ -11800,9 +11753,6 @@ var MicroCauseImpl = class extends globalThis.Error {
|
|
|
11800
11753
|
${traces.join("\n ")}`;
|
|
11801
11754
|
}
|
|
11802
11755
|
super(message);
|
|
11803
|
-
__publicField(this, "_tag");
|
|
11804
|
-
__publicField(this, "traces");
|
|
11805
|
-
__publicField(this, _a19);
|
|
11806
11756
|
this._tag = _tag;
|
|
11807
11757
|
this.traces = traces;
|
|
11808
11758
|
this[MicroCauseTypeId] = microCauseVariance;
|
|
@@ -11815,14 +11765,14 @@ var MicroCauseImpl = class extends globalThis.Error {
|
|
|
11815
11765
|
toString() {
|
|
11816
11766
|
return this.stack;
|
|
11817
11767
|
}
|
|
11818
|
-
[
|
|
11768
|
+
[NodeInspectSymbol]() {
|
|
11819
11769
|
return this.stack;
|
|
11820
11770
|
}
|
|
11821
11771
|
};
|
|
11822
11772
|
var Die = class extends MicroCauseImpl {
|
|
11773
|
+
defect;
|
|
11823
11774
|
constructor(defect, traces = []) {
|
|
11824
11775
|
super("Die", defect, traces);
|
|
11825
|
-
__publicField(this, "defect");
|
|
11826
11776
|
this.defect = defect;
|
|
11827
11777
|
}
|
|
11828
11778
|
};
|
|
@@ -11839,21 +11789,16 @@ var fiberVariance = {
|
|
|
11839
11789
|
_A: identity,
|
|
11840
11790
|
_E: identity
|
|
11841
11791
|
};
|
|
11842
|
-
var _a20;
|
|
11843
|
-
_a20 = MicroFiberTypeId;
|
|
11844
11792
|
var MicroFiberImpl = class {
|
|
11793
|
+
context;
|
|
11794
|
+
interruptible;
|
|
11795
|
+
[MicroFiberTypeId];
|
|
11796
|
+
_stack = [];
|
|
11797
|
+
_observers = [];
|
|
11798
|
+
_exit;
|
|
11799
|
+
_children;
|
|
11800
|
+
currentOpCount = 0;
|
|
11845
11801
|
constructor(context3, interruptible4 = true) {
|
|
11846
|
-
__publicField(this, "context");
|
|
11847
|
-
__publicField(this, "interruptible");
|
|
11848
|
-
__publicField(this, _a20);
|
|
11849
|
-
__publicField(this, "_stack", []);
|
|
11850
|
-
__publicField(this, "_observers", []);
|
|
11851
|
-
__publicField(this, "_exit");
|
|
11852
|
-
__publicField(this, "_children");
|
|
11853
|
-
__publicField(this, "currentOpCount", 0);
|
|
11854
|
-
__publicField(this, "_interrupted", false);
|
|
11855
|
-
// cancel the yielded operation, or for the yielded exit value
|
|
11856
|
-
__publicField(this, "_yielded");
|
|
11857
11802
|
this.context = context3;
|
|
11858
11803
|
this.interruptible = interruptible4;
|
|
11859
11804
|
this[MicroFiberTypeId] = fiberVariance;
|
|
@@ -11874,6 +11819,7 @@ var MicroFiberImpl = class {
|
|
|
11874
11819
|
}
|
|
11875
11820
|
};
|
|
11876
11821
|
}
|
|
11822
|
+
_interrupted = false;
|
|
11877
11823
|
unsafeInterrupt() {
|
|
11878
11824
|
if (this._exit) {
|
|
11879
11825
|
return;
|
|
@@ -11948,6 +11894,8 @@ var MicroFiberImpl = class {
|
|
|
11948
11894
|
if (op[symbol3]) return op;
|
|
11949
11895
|
}
|
|
11950
11896
|
}
|
|
11897
|
+
// cancel the yielded operation, or for the yielded exit value
|
|
11898
|
+
_yielded = void 0;
|
|
11951
11899
|
yieldWith(value3) {
|
|
11952
11900
|
this._yielded = value3;
|
|
11953
11901
|
return Yield;
|
|
@@ -12203,17 +12151,8 @@ var exitVoidAll = (exits) => {
|
|
|
12203
12151
|
};
|
|
12204
12152
|
var setImmediate = "setImmediate" in globalThis ? globalThis.setImmediate : (f) => setTimeout(f, 0);
|
|
12205
12153
|
var MicroSchedulerDefault = class {
|
|
12206
|
-
|
|
12207
|
-
|
|
12208
|
-
__publicField(this, "running", false);
|
|
12209
|
-
/**
|
|
12210
|
-
* @since 3.5.9
|
|
12211
|
-
*/
|
|
12212
|
-
__publicField(this, "afterScheduled", () => {
|
|
12213
|
-
this.running = false;
|
|
12214
|
-
this.runTasks();
|
|
12215
|
-
});
|
|
12216
|
-
}
|
|
12154
|
+
tasks = [];
|
|
12155
|
+
running = false;
|
|
12217
12156
|
/**
|
|
12218
12157
|
* @since 3.5.9
|
|
12219
12158
|
*/
|
|
@@ -12224,6 +12163,13 @@ var MicroSchedulerDefault = class {
|
|
|
12224
12163
|
setImmediate(this.afterScheduled);
|
|
12225
12164
|
}
|
|
12226
12165
|
}
|
|
12166
|
+
/**
|
|
12167
|
+
* @since 3.5.9
|
|
12168
|
+
*/
|
|
12169
|
+
afterScheduled = () => {
|
|
12170
|
+
this.running = false;
|
|
12171
|
+
this.runTasks();
|
|
12172
|
+
};
|
|
12227
12173
|
/**
|
|
12228
12174
|
* @since 3.5.9
|
|
12229
12175
|
*/
|
|
@@ -12289,15 +12235,13 @@ var matchCause2 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect2(s
|
|
|
12289
12235
|
onSuccess: (value3) => sync2(() => options.onSuccess(value3))
|
|
12290
12236
|
}));
|
|
12291
12237
|
var MicroScopeTypeId = /* @__PURE__ */ Symbol.for("effect/Micro/MicroScope");
|
|
12292
|
-
var
|
|
12293
|
-
|
|
12294
|
-
|
|
12238
|
+
var MicroScopeImpl = class _MicroScopeImpl {
|
|
12239
|
+
[MicroScopeTypeId];
|
|
12240
|
+
state = {
|
|
12241
|
+
_tag: "Open",
|
|
12242
|
+
finalizers: /* @__PURE__ */ new Set()
|
|
12243
|
+
};
|
|
12295
12244
|
constructor() {
|
|
12296
|
-
__publicField(this, _a21);
|
|
12297
|
-
__publicField(this, "state", {
|
|
12298
|
-
_tag: "Open",
|
|
12299
|
-
finalizers: /* @__PURE__ */ new Set()
|
|
12300
|
-
});
|
|
12301
12245
|
this[MicroScopeTypeId] = MicroScopeTypeId;
|
|
12302
12246
|
}
|
|
12303
12247
|
unsafeAddFinalizer(finalizer) {
|
|
@@ -12348,7 +12292,6 @@ var _MicroScopeImpl = class _MicroScopeImpl {
|
|
|
12348
12292
|
});
|
|
12349
12293
|
}
|
|
12350
12294
|
};
|
|
12351
|
-
var MicroScopeImpl = _MicroScopeImpl;
|
|
12352
12295
|
var onExit2 = /* @__PURE__ */ dual(2, (self, f) => uninterruptibleMask2((restore) => matchCauseEffect2(restore(self), {
|
|
12353
12296
|
onFailure: (cause) => flatMap8(f(exitFailCause2(cause)), () => failCause3(cause)),
|
|
12354
12297
|
onSuccess: (a) => flatMap8(f(exitSucceed2(a)), () => succeed3(a))
|
|
@@ -12496,12 +12439,10 @@ var runFork = (effect, options) => {
|
|
|
12496
12439
|
|
|
12497
12440
|
// ../../node_modules/.pnpm/effect@3.12.10/node_modules/effect/dist/esm/Scheduler.js
|
|
12498
12441
|
var PriorityBuckets = class {
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
__publicField(this, "buckets", []);
|
|
12504
|
-
}
|
|
12442
|
+
/**
|
|
12443
|
+
* @since 2.0.0
|
|
12444
|
+
*/
|
|
12445
|
+
buckets = [];
|
|
12505
12446
|
/**
|
|
12506
12447
|
* @since 2.0.0
|
|
12507
12448
|
*/
|
|
@@ -12526,16 +12467,16 @@ var PriorityBuckets = class {
|
|
|
12526
12467
|
}
|
|
12527
12468
|
};
|
|
12528
12469
|
var MixedScheduler = class {
|
|
12470
|
+
maxNextTickBeforeTimer;
|
|
12471
|
+
/**
|
|
12472
|
+
* @since 2.0.0
|
|
12473
|
+
*/
|
|
12474
|
+
running = false;
|
|
12475
|
+
/**
|
|
12476
|
+
* @since 2.0.0
|
|
12477
|
+
*/
|
|
12478
|
+
tasks = /* @__PURE__ */ new PriorityBuckets();
|
|
12529
12479
|
constructor(maxNextTickBeforeTimer) {
|
|
12530
|
-
__publicField(this, "maxNextTickBeforeTimer");
|
|
12531
|
-
/**
|
|
12532
|
-
* @since 2.0.0
|
|
12533
|
-
*/
|
|
12534
|
-
__publicField(this, "running", false);
|
|
12535
|
-
/**
|
|
12536
|
-
* @since 2.0.0
|
|
12537
|
-
*/
|
|
12538
|
-
__publicField(this, "tasks", /* @__PURE__ */ new PriorityBuckets());
|
|
12539
12480
|
this.maxNextTickBeforeTimer = maxNextTickBeforeTimer;
|
|
12540
12481
|
}
|
|
12541
12482
|
/**
|
|
@@ -12584,16 +12525,14 @@ var MixedScheduler = class {
|
|
|
12584
12525
|
};
|
|
12585
12526
|
var defaultScheduler = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Scheduler/defaultScheduler"), () => new MixedScheduler(2048));
|
|
12586
12527
|
var SyncScheduler = class {
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
|
|
12592
|
-
|
|
12593
|
-
|
|
12594
|
-
|
|
12595
|
-
__publicField(this, "deferred", false);
|
|
12596
|
-
}
|
|
12528
|
+
/**
|
|
12529
|
+
* @since 2.0.0
|
|
12530
|
+
*/
|
|
12531
|
+
tasks = /* @__PURE__ */ new PriorityBuckets();
|
|
12532
|
+
/**
|
|
12533
|
+
* @since 2.0.0
|
|
12534
|
+
*/
|
|
12535
|
+
deferred = false;
|
|
12597
12536
|
/**
|
|
12598
12537
|
* @since 2.0.0
|
|
12599
12538
|
*/
|
|
@@ -12669,14 +12608,10 @@ var yieldNow3 = () => ({
|
|
|
12669
12608
|
// ../../node_modules/.pnpm/effect@3.12.10/node_modules/effect/dist/esm/internal/fiberScope.js
|
|
12670
12609
|
var FiberScopeSymbolKey = "effect/FiberScope";
|
|
12671
12610
|
var FiberScopeTypeId = /* @__PURE__ */ Symbol.for(FiberScopeSymbolKey);
|
|
12672
|
-
var _a22;
|
|
12673
|
-
_a22 = FiberScopeTypeId;
|
|
12674
12611
|
var Global = class {
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
__publicField(this, "roots", /* @__PURE__ */ new Set());
|
|
12679
|
-
}
|
|
12612
|
+
[FiberScopeTypeId] = FiberScopeTypeId;
|
|
12613
|
+
fiberId = none4;
|
|
12614
|
+
roots = /* @__PURE__ */ new Set();
|
|
12680
12615
|
add(_runtimeFlags, child) {
|
|
12681
12616
|
this.roots.add(child);
|
|
12682
12617
|
child.addObserver(() => {
|
|
@@ -12684,13 +12619,11 @@ var Global = class {
|
|
|
12684
12619
|
});
|
|
12685
12620
|
}
|
|
12686
12621
|
};
|
|
12687
|
-
var _a23;
|
|
12688
|
-
_a23 = FiberScopeTypeId;
|
|
12689
12622
|
var Local = class {
|
|
12623
|
+
fiberId;
|
|
12624
|
+
parent;
|
|
12625
|
+
[FiberScopeTypeId] = FiberScopeTypeId;
|
|
12690
12626
|
constructor(fiberId2, parent) {
|
|
12691
|
-
__publicField(this, "fiberId");
|
|
12692
|
-
__publicField(this, "parent");
|
|
12693
|
-
__publicField(this, _a23, FiberScopeTypeId);
|
|
12694
12627
|
this.fiberId = fiberId2;
|
|
12695
12628
|
this.parent = parent;
|
|
12696
12629
|
}
|
|
@@ -12828,16 +12761,15 @@ var hasProcessStdoutOrDeno = hasProcessStdout || "Deno" in globalThis;
|
|
|
12828
12761
|
// ../../node_modules/.pnpm/effect@3.12.10/node_modules/effect/dist/esm/internal/metric/boundaries.js
|
|
12829
12762
|
var MetricBoundariesSymbolKey = "effect/MetricBoundaries";
|
|
12830
12763
|
var MetricBoundariesTypeId = /* @__PURE__ */ Symbol.for(MetricBoundariesSymbolKey);
|
|
12831
|
-
var _a24;
|
|
12832
12764
|
var MetricBoundariesImpl = class {
|
|
12765
|
+
values;
|
|
12766
|
+
[MetricBoundariesTypeId] = MetricBoundariesTypeId;
|
|
12833
12767
|
constructor(values4) {
|
|
12834
|
-
__publicField(this, "values");
|
|
12835
|
-
__publicField(this, _a24, MetricBoundariesTypeId);
|
|
12836
|
-
__publicField(this, "_hash");
|
|
12837
12768
|
this.values = values4;
|
|
12838
12769
|
this._hash = pipe(string(MetricBoundariesSymbolKey), combine(array2(this.values)));
|
|
12839
12770
|
}
|
|
12840
|
-
|
|
12771
|
+
_hash;
|
|
12772
|
+
[symbol]() {
|
|
12841
12773
|
return this._hash;
|
|
12842
12774
|
}
|
|
12843
12775
|
[symbol2](u) {
|
|
@@ -12873,19 +12805,18 @@ var metricKeyTypeVariance = {
|
|
|
12873
12805
|
/* c8 ignore next */
|
|
12874
12806
|
_Out: (_) => _
|
|
12875
12807
|
};
|
|
12876
|
-
var _a25, _b;
|
|
12877
12808
|
var CounterKeyType = class {
|
|
12809
|
+
incremental;
|
|
12810
|
+
bigint;
|
|
12811
|
+
[MetricKeyTypeTypeId] = metricKeyTypeVariance;
|
|
12812
|
+
[CounterKeyTypeTypeId] = CounterKeyTypeTypeId;
|
|
12878
12813
|
constructor(incremental, bigint2) {
|
|
12879
|
-
__publicField(this, "incremental");
|
|
12880
|
-
__publicField(this, "bigint");
|
|
12881
|
-
__publicField(this, _b, metricKeyTypeVariance);
|
|
12882
|
-
__publicField(this, _a25, CounterKeyTypeTypeId);
|
|
12883
|
-
__publicField(this, "_hash");
|
|
12884
12814
|
this.incremental = incremental;
|
|
12885
12815
|
this.bigint = bigint2;
|
|
12886
12816
|
this._hash = string(CounterKeyTypeSymbolKey);
|
|
12887
12817
|
}
|
|
12888
|
-
|
|
12818
|
+
_hash;
|
|
12819
|
+
[symbol]() {
|
|
12889
12820
|
return this._hash;
|
|
12890
12821
|
}
|
|
12891
12822
|
[symbol2](that) {
|
|
@@ -12896,15 +12827,14 @@ var CounterKeyType = class {
|
|
|
12896
12827
|
}
|
|
12897
12828
|
};
|
|
12898
12829
|
var FrequencyKeyTypeHash = /* @__PURE__ */ string(FrequencyKeyTypeSymbolKey);
|
|
12899
|
-
var _a26, _b2;
|
|
12900
12830
|
var FrequencyKeyType = class {
|
|
12831
|
+
preregisteredWords;
|
|
12832
|
+
[MetricKeyTypeTypeId] = metricKeyTypeVariance;
|
|
12833
|
+
[FrequencyKeyTypeTypeId] = FrequencyKeyTypeTypeId;
|
|
12901
12834
|
constructor(preregisteredWords) {
|
|
12902
|
-
__publicField(this, "preregisteredWords");
|
|
12903
|
-
__publicField(this, _b2, metricKeyTypeVariance);
|
|
12904
|
-
__publicField(this, _a26, FrequencyKeyTypeTypeId);
|
|
12905
12835
|
this.preregisteredWords = preregisteredWords;
|
|
12906
12836
|
}
|
|
12907
|
-
[
|
|
12837
|
+
[symbol]() {
|
|
12908
12838
|
return FrequencyKeyTypeHash;
|
|
12909
12839
|
}
|
|
12910
12840
|
[symbol2](that) {
|
|
@@ -12915,15 +12845,14 @@ var FrequencyKeyType = class {
|
|
|
12915
12845
|
}
|
|
12916
12846
|
};
|
|
12917
12847
|
var GaugeKeyTypeHash = /* @__PURE__ */ string(GaugeKeyTypeSymbolKey);
|
|
12918
|
-
var _a27, _b3;
|
|
12919
12848
|
var GaugeKeyType = class {
|
|
12849
|
+
bigint;
|
|
12850
|
+
[MetricKeyTypeTypeId] = metricKeyTypeVariance;
|
|
12851
|
+
[GaugeKeyTypeTypeId] = GaugeKeyTypeTypeId;
|
|
12920
12852
|
constructor(bigint2) {
|
|
12921
|
-
__publicField(this, "bigint");
|
|
12922
|
-
__publicField(this, _b3, metricKeyTypeVariance);
|
|
12923
|
-
__publicField(this, _a27, GaugeKeyTypeTypeId);
|
|
12924
12853
|
this.bigint = bigint2;
|
|
12925
12854
|
}
|
|
12926
|
-
[
|
|
12855
|
+
[symbol]() {
|
|
12927
12856
|
return GaugeKeyTypeHash;
|
|
12928
12857
|
}
|
|
12929
12858
|
[symbol2](that) {
|
|
@@ -12933,17 +12862,16 @@ var GaugeKeyType = class {
|
|
|
12933
12862
|
return pipeArguments(this, arguments);
|
|
12934
12863
|
}
|
|
12935
12864
|
};
|
|
12936
|
-
var _a28, _b4;
|
|
12937
12865
|
var HistogramKeyType = class {
|
|
12866
|
+
boundaries;
|
|
12867
|
+
[MetricKeyTypeTypeId] = metricKeyTypeVariance;
|
|
12868
|
+
[HistogramKeyTypeTypeId] = HistogramKeyTypeTypeId;
|
|
12938
12869
|
constructor(boundaries) {
|
|
12939
|
-
__publicField(this, "boundaries");
|
|
12940
|
-
__publicField(this, _b4, metricKeyTypeVariance);
|
|
12941
|
-
__publicField(this, _a28, HistogramKeyTypeTypeId);
|
|
12942
|
-
__publicField(this, "_hash");
|
|
12943
12870
|
this.boundaries = boundaries;
|
|
12944
12871
|
this._hash = pipe(string(HistogramKeyTypeSymbolKey), combine(hash(this.boundaries)));
|
|
12945
12872
|
}
|
|
12946
|
-
|
|
12873
|
+
_hash;
|
|
12874
|
+
[symbol]() {
|
|
12947
12875
|
return this._hash;
|
|
12948
12876
|
}
|
|
12949
12877
|
[symbol2](that) {
|
|
@@ -12953,23 +12881,22 @@ var HistogramKeyType = class {
|
|
|
12953
12881
|
return pipeArguments(this, arguments);
|
|
12954
12882
|
}
|
|
12955
12883
|
};
|
|
12956
|
-
var _a29, _b5;
|
|
12957
12884
|
var SummaryKeyType = class {
|
|
12885
|
+
maxAge;
|
|
12886
|
+
maxSize;
|
|
12887
|
+
error;
|
|
12888
|
+
quantiles;
|
|
12889
|
+
[MetricKeyTypeTypeId] = metricKeyTypeVariance;
|
|
12890
|
+
[SummaryKeyTypeTypeId] = SummaryKeyTypeTypeId;
|
|
12958
12891
|
constructor(maxAge, maxSize, error, quantiles) {
|
|
12959
|
-
__publicField(this, "maxAge");
|
|
12960
|
-
__publicField(this, "maxSize");
|
|
12961
|
-
__publicField(this, "error");
|
|
12962
|
-
__publicField(this, "quantiles");
|
|
12963
|
-
__publicField(this, _b5, metricKeyTypeVariance);
|
|
12964
|
-
__publicField(this, _a29, SummaryKeyTypeTypeId);
|
|
12965
|
-
__publicField(this, "_hash");
|
|
12966
12892
|
this.maxAge = maxAge;
|
|
12967
12893
|
this.maxSize = maxSize;
|
|
12968
12894
|
this.error = error;
|
|
12969
12895
|
this.quantiles = quantiles;
|
|
12970
12896
|
this._hash = pipe(string(SummaryKeyTypeSymbolKey), combine(hash(this.maxAge)), combine(hash(this.maxSize)), combine(hash(this.error)), combine(array2(this.quantiles)));
|
|
12971
12897
|
}
|
|
12972
|
-
|
|
12898
|
+
_hash;
|
|
12899
|
+
[symbol]() {
|
|
12973
12900
|
return this._hash;
|
|
12974
12901
|
}
|
|
12975
12902
|
[symbol2](that) {
|
|
@@ -12997,22 +12924,21 @@ var metricKeyVariance = {
|
|
|
12997
12924
|
_Type: (_) => _
|
|
12998
12925
|
};
|
|
12999
12926
|
var arrayEquivilence = /* @__PURE__ */ getEquivalence3(equals);
|
|
13000
|
-
var _a30;
|
|
13001
12927
|
var MetricKeyImpl = class {
|
|
12928
|
+
name;
|
|
12929
|
+
keyType;
|
|
12930
|
+
description;
|
|
12931
|
+
tags;
|
|
12932
|
+
[MetricKeyTypeId] = metricKeyVariance;
|
|
13002
12933
|
constructor(name, keyType, description, tags = []) {
|
|
13003
|
-
__publicField(this, "name");
|
|
13004
|
-
__publicField(this, "keyType");
|
|
13005
|
-
__publicField(this, "description");
|
|
13006
|
-
__publicField(this, "tags");
|
|
13007
|
-
__publicField(this, _a30, metricKeyVariance);
|
|
13008
|
-
__publicField(this, "_hash");
|
|
13009
12934
|
this.name = name;
|
|
13010
12935
|
this.keyType = keyType;
|
|
13011
12936
|
this.description = description;
|
|
13012
12937
|
this.tags = tags;
|
|
13013
12938
|
this._hash = pipe(string(this.name + this.description), combine(hash(this.keyType)), combine(array2(this.tags)));
|
|
13014
12939
|
}
|
|
13015
|
-
|
|
12940
|
+
_hash;
|
|
12941
|
+
[symbol]() {
|
|
13016
12942
|
return this._hash;
|
|
13017
12943
|
}
|
|
13018
12944
|
[symbol2](u) {
|
|
@@ -13044,15 +12970,14 @@ var metricStateVariance = {
|
|
|
13044
12970
|
/* c8 ignore next */
|
|
13045
12971
|
_A: (_) => _
|
|
13046
12972
|
};
|
|
13047
|
-
var _a31, _b6;
|
|
13048
12973
|
var CounterState = class {
|
|
12974
|
+
count;
|
|
12975
|
+
[MetricStateTypeId] = metricStateVariance;
|
|
12976
|
+
[CounterStateTypeId] = CounterStateTypeId;
|
|
13049
12977
|
constructor(count) {
|
|
13050
|
-
__publicField(this, "count");
|
|
13051
|
-
__publicField(this, _b6, metricStateVariance);
|
|
13052
|
-
__publicField(this, _a31, CounterStateTypeId);
|
|
13053
12978
|
this.count = count;
|
|
13054
12979
|
}
|
|
13055
|
-
[
|
|
12980
|
+
[symbol]() {
|
|
13056
12981
|
return pipe(hash(CounterStateSymbolKey), combine(hash(this.count)), cached(this));
|
|
13057
12982
|
}
|
|
13058
12983
|
[symbol2](that) {
|
|
@@ -13063,16 +12988,15 @@ var CounterState = class {
|
|
|
13063
12988
|
}
|
|
13064
12989
|
};
|
|
13065
12990
|
var arrayEquals = /* @__PURE__ */ getEquivalence3(equals);
|
|
13066
|
-
var _a32, _b7;
|
|
13067
12991
|
var FrequencyState = class {
|
|
12992
|
+
occurrences;
|
|
12993
|
+
[MetricStateTypeId] = metricStateVariance;
|
|
12994
|
+
[FrequencyStateTypeId] = FrequencyStateTypeId;
|
|
13068
12995
|
constructor(occurrences) {
|
|
13069
|
-
__publicField(this, "occurrences");
|
|
13070
|
-
__publicField(this, _b7, metricStateVariance);
|
|
13071
|
-
__publicField(this, _a32, FrequencyStateTypeId);
|
|
13072
|
-
__publicField(this, "_hash");
|
|
13073
12996
|
this.occurrences = occurrences;
|
|
13074
12997
|
}
|
|
13075
|
-
|
|
12998
|
+
_hash;
|
|
12999
|
+
[symbol]() {
|
|
13076
13000
|
return pipe(string(FrequencyStateSymbolKey), combine(array2(fromIterable(this.occurrences.entries()))), cached(this));
|
|
13077
13001
|
}
|
|
13078
13002
|
[symbol2](that) {
|
|
@@ -13082,15 +13006,14 @@ var FrequencyState = class {
|
|
|
13082
13006
|
return pipeArguments(this, arguments);
|
|
13083
13007
|
}
|
|
13084
13008
|
};
|
|
13085
|
-
var _a33, _b8;
|
|
13086
13009
|
var GaugeState = class {
|
|
13010
|
+
value;
|
|
13011
|
+
[MetricStateTypeId] = metricStateVariance;
|
|
13012
|
+
[GaugeStateTypeId] = GaugeStateTypeId;
|
|
13087
13013
|
constructor(value3) {
|
|
13088
|
-
__publicField(this, "value");
|
|
13089
|
-
__publicField(this, _b8, metricStateVariance);
|
|
13090
|
-
__publicField(this, _a33, GaugeStateTypeId);
|
|
13091
13014
|
this.value = value3;
|
|
13092
13015
|
}
|
|
13093
|
-
[
|
|
13016
|
+
[symbol]() {
|
|
13094
13017
|
return pipe(hash(GaugeStateSymbolKey), combine(hash(this.value)), cached(this));
|
|
13095
13018
|
}
|
|
13096
13019
|
[symbol2](u) {
|
|
@@ -13100,23 +13023,22 @@ var GaugeState = class {
|
|
|
13100
13023
|
return pipeArguments(this, arguments);
|
|
13101
13024
|
}
|
|
13102
13025
|
};
|
|
13103
|
-
var _a34, _b9;
|
|
13104
13026
|
var HistogramState = class {
|
|
13027
|
+
buckets;
|
|
13028
|
+
count;
|
|
13029
|
+
min;
|
|
13030
|
+
max;
|
|
13031
|
+
sum;
|
|
13032
|
+
[MetricStateTypeId] = metricStateVariance;
|
|
13033
|
+
[HistogramStateTypeId] = HistogramStateTypeId;
|
|
13105
13034
|
constructor(buckets, count, min3, max3, sum) {
|
|
13106
|
-
__publicField(this, "buckets");
|
|
13107
|
-
__publicField(this, "count");
|
|
13108
|
-
__publicField(this, "min");
|
|
13109
|
-
__publicField(this, "max");
|
|
13110
|
-
__publicField(this, "sum");
|
|
13111
|
-
__publicField(this, _b9, metricStateVariance);
|
|
13112
|
-
__publicField(this, _a34, HistogramStateTypeId);
|
|
13113
13035
|
this.buckets = buckets;
|
|
13114
13036
|
this.count = count;
|
|
13115
13037
|
this.min = min3;
|
|
13116
13038
|
this.max = max3;
|
|
13117
13039
|
this.sum = sum;
|
|
13118
13040
|
}
|
|
13119
|
-
[
|
|
13041
|
+
[symbol]() {
|
|
13120
13042
|
return pipe(hash(HistogramStateSymbolKey), combine(hash(this.buckets)), combine(hash(this.count)), combine(hash(this.min)), combine(hash(this.max)), combine(hash(this.sum)), cached(this));
|
|
13121
13043
|
}
|
|
13122
13044
|
[symbol2](that) {
|
|
@@ -13126,17 +13048,16 @@ var HistogramState = class {
|
|
|
13126
13048
|
return pipeArguments(this, arguments);
|
|
13127
13049
|
}
|
|
13128
13050
|
};
|
|
13129
|
-
var _a35, _b10;
|
|
13130
13051
|
var SummaryState = class {
|
|
13052
|
+
error;
|
|
13053
|
+
quantiles;
|
|
13054
|
+
count;
|
|
13055
|
+
min;
|
|
13056
|
+
max;
|
|
13057
|
+
sum;
|
|
13058
|
+
[MetricStateTypeId] = metricStateVariance;
|
|
13059
|
+
[SummaryStateTypeId] = SummaryStateTypeId;
|
|
13131
13060
|
constructor(error, quantiles, count, min3, max3, sum) {
|
|
13132
|
-
__publicField(this, "error");
|
|
13133
|
-
__publicField(this, "quantiles");
|
|
13134
|
-
__publicField(this, "count");
|
|
13135
|
-
__publicField(this, "min");
|
|
13136
|
-
__publicField(this, "max");
|
|
13137
|
-
__publicField(this, "sum");
|
|
13138
|
-
__publicField(this, _b10, metricStateVariance);
|
|
13139
|
-
__publicField(this, _a35, SummaryStateTypeId);
|
|
13140
13061
|
this.error = error;
|
|
13141
13062
|
this.quantiles = quantiles;
|
|
13142
13063
|
this.count = count;
|
|
@@ -13144,7 +13065,7 @@ var SummaryState = class {
|
|
|
13144
13065
|
this.max = max3;
|
|
13145
13066
|
this.sum = sum;
|
|
13146
13067
|
}
|
|
13147
|
-
[
|
|
13068
|
+
[symbol]() {
|
|
13148
13069
|
return pipe(hash(SummaryStateSymbolKey), combine(hash(this.error)), combine(hash(this.quantiles)), combine(hash(this.count)), combine(hash(this.min)), combine(hash(this.max)), combine(hash(this.sum)), cached(this));
|
|
13149
13070
|
}
|
|
13150
13071
|
[symbol2](that) {
|
|
@@ -13186,7 +13107,7 @@ var make25 = (options) => ({
|
|
|
13186
13107
|
var bigint03 = /* @__PURE__ */ BigInt(0);
|
|
13187
13108
|
var counter4 = (key) => {
|
|
13188
13109
|
let sum = key.keyType.bigint ? bigint03 : 0;
|
|
13189
|
-
const canUpdate = key.keyType.incremental ? key.keyType.bigint ? (value3) => value3 >= bigint03 : (value3) => value3 >= 0 : (
|
|
13110
|
+
const canUpdate = key.keyType.incremental ? key.keyType.bigint ? (value3) => value3 >= bigint03 : (value3) => value3 >= 0 : (_value) => true;
|
|
13190
13111
|
const update3 = (value3) => {
|
|
13191
13112
|
if (canUpdate(value3)) {
|
|
13192
13113
|
sum = sum + value3;
|
|
@@ -13485,13 +13406,9 @@ var unsafeMake5 = (metricKey, metricState) => {
|
|
|
13485
13406
|
// ../../node_modules/.pnpm/effect@3.12.10/node_modules/effect/dist/esm/internal/metric/registry.js
|
|
13486
13407
|
var MetricRegistrySymbolKey = "effect/MetricRegistry";
|
|
13487
13408
|
var MetricRegistryTypeId = /* @__PURE__ */ Symbol.for(MetricRegistrySymbolKey);
|
|
13488
|
-
var _a36;
|
|
13489
|
-
_a36 = MetricRegistryTypeId;
|
|
13490
13409
|
var MetricRegistryImpl = class {
|
|
13491
|
-
|
|
13492
|
-
|
|
13493
|
-
__publicField(this, "map", /* @__PURE__ */ empty15());
|
|
13494
|
-
}
|
|
13410
|
+
[MetricRegistryTypeId] = MetricRegistryTypeId;
|
|
13411
|
+
map = /* @__PURE__ */ empty15();
|
|
13495
13412
|
snapshot() {
|
|
13496
13413
|
const result = [];
|
|
13497
13414
|
for (const [key, hook] of this.map) {
|
|
@@ -13678,11 +13595,11 @@ var Direction = {
|
|
|
13678
13595
|
Backward: 1 << 0
|
|
13679
13596
|
};
|
|
13680
13597
|
var RedBlackTreeIterator = class _RedBlackTreeIterator {
|
|
13598
|
+
self;
|
|
13599
|
+
stack;
|
|
13600
|
+
direction;
|
|
13601
|
+
count = 0;
|
|
13681
13602
|
constructor(self, stack, direction) {
|
|
13682
|
-
__publicField(this, "self");
|
|
13683
|
-
__publicField(this, "stack");
|
|
13684
|
-
__publicField(this, "direction");
|
|
13685
|
-
__publicField(this, "count", 0);
|
|
13686
13603
|
this.self = self;
|
|
13687
13604
|
this.stack = stack;
|
|
13688
13605
|
this.direction = direction;
|
|
@@ -14569,13 +14486,11 @@ var supervisorVariance = {
|
|
|
14569
14486
|
/* c8 ignore next */
|
|
14570
14487
|
_T: (_) => _
|
|
14571
14488
|
};
|
|
14572
|
-
var
|
|
14573
|
-
|
|
14574
|
-
|
|
14489
|
+
var ProxySupervisor = class _ProxySupervisor {
|
|
14490
|
+
underlying;
|
|
14491
|
+
value0;
|
|
14492
|
+
[SupervisorTypeId] = supervisorVariance;
|
|
14575
14493
|
constructor(underlying, value0) {
|
|
14576
|
-
__publicField(this, "underlying");
|
|
14577
|
-
__publicField(this, "value0");
|
|
14578
|
-
__publicField(this, _a37, supervisorVariance);
|
|
14579
14494
|
this.underlying = underlying;
|
|
14580
14495
|
this.value0 = value0;
|
|
14581
14496
|
}
|
|
@@ -14604,15 +14519,12 @@ var _ProxySupervisor = class _ProxySupervisor {
|
|
|
14604
14519
|
return new Zip(this, right3);
|
|
14605
14520
|
}
|
|
14606
14521
|
};
|
|
14607
|
-
var
|
|
14608
|
-
|
|
14609
|
-
|
|
14610
|
-
|
|
14522
|
+
var Zip = class _Zip {
|
|
14523
|
+
left;
|
|
14524
|
+
right;
|
|
14525
|
+
_tag = "Zip";
|
|
14526
|
+
[SupervisorTypeId] = supervisorVariance;
|
|
14611
14527
|
constructor(left3, right3) {
|
|
14612
|
-
__publicField(this, "left");
|
|
14613
|
-
__publicField(this, "right");
|
|
14614
|
-
__publicField(this, "_tag", "Zip");
|
|
14615
|
-
__publicField(this, _a38, supervisorVariance);
|
|
14616
14528
|
this.left = left3;
|
|
14617
14529
|
this.right = right3;
|
|
14618
14530
|
}
|
|
@@ -14646,22 +14558,17 @@ var _Zip = class _Zip {
|
|
|
14646
14558
|
return new _Zip(this, right3);
|
|
14647
14559
|
}
|
|
14648
14560
|
};
|
|
14649
|
-
var Zip = _Zip;
|
|
14650
14561
|
var isZip = (self) => hasProperty(self, SupervisorTypeId) && isTagged(self, "Zip");
|
|
14651
|
-
var _a39;
|
|
14652
|
-
_a39 = SupervisorTypeId;
|
|
14653
14562
|
var Track = class {
|
|
14654
|
-
|
|
14655
|
-
|
|
14656
|
-
__publicField(this, "fibers", /* @__PURE__ */ new Set());
|
|
14657
|
-
}
|
|
14563
|
+
[SupervisorTypeId] = supervisorVariance;
|
|
14564
|
+
fibers = /* @__PURE__ */ new Set();
|
|
14658
14565
|
get value() {
|
|
14659
14566
|
return sync(() => Array.from(this.fibers));
|
|
14660
14567
|
}
|
|
14661
14568
|
onStart(_context, _effect, _parent, fiber) {
|
|
14662
14569
|
this.fibers.add(fiber);
|
|
14663
14570
|
}
|
|
14664
|
-
onEnd(
|
|
14571
|
+
onEnd(_value, fiber) {
|
|
14665
14572
|
this.fibers.delete(fiber);
|
|
14666
14573
|
}
|
|
14667
14574
|
onEffect(_fiber, _effect) {
|
|
@@ -14680,12 +14587,10 @@ var Track = class {
|
|
|
14680
14587
|
return execution();
|
|
14681
14588
|
}
|
|
14682
14589
|
};
|
|
14683
|
-
var _a40;
|
|
14684
|
-
_a40 = SupervisorTypeId;
|
|
14685
14590
|
var Const = class {
|
|
14591
|
+
effect;
|
|
14592
|
+
[SupervisorTypeId] = supervisorVariance;
|
|
14686
14593
|
constructor(effect) {
|
|
14687
|
-
__publicField(this, "effect");
|
|
14688
|
-
__publicField(this, _a40, supervisorVariance);
|
|
14689
14594
|
this.effect = effect;
|
|
14690
14595
|
}
|
|
14691
14596
|
get value() {
|
|
@@ -14693,7 +14598,7 @@ var Const = class {
|
|
|
14693
14598
|
}
|
|
14694
14599
|
onStart(_context, _effect, _parent, _fiber) {
|
|
14695
14600
|
}
|
|
14696
|
-
onEnd(
|
|
14601
|
+
onEnd(_value, _fiber) {
|
|
14697
14602
|
}
|
|
14698
14603
|
onEffect(_fiber, _effect) {
|
|
14699
14604
|
}
|
|
@@ -14711,12 +14616,10 @@ var Const = class {
|
|
|
14711
14616
|
return execution();
|
|
14712
14617
|
}
|
|
14713
14618
|
};
|
|
14714
|
-
var _a41;
|
|
14715
|
-
_a41 = SupervisorTypeId;
|
|
14716
14619
|
var FibersIn = class {
|
|
14620
|
+
ref;
|
|
14621
|
+
[SupervisorTypeId] = supervisorVariance;
|
|
14717
14622
|
constructor(ref) {
|
|
14718
|
-
__publicField(this, "ref");
|
|
14719
|
-
__publicField(this, _a41, supervisorVariance);
|
|
14720
14623
|
this.ref = ref;
|
|
14721
14624
|
}
|
|
14722
14625
|
get value() {
|
|
@@ -14725,7 +14628,7 @@ var FibersIn = class {
|
|
|
14725
14628
|
onStart(_context, _effect, _parent, fiber) {
|
|
14726
14629
|
pipe(this.ref, set2(pipe(get5(this.ref), add5(fiber))));
|
|
14727
14630
|
}
|
|
14728
|
-
onEnd(
|
|
14631
|
+
onEnd(_value, fiber) {
|
|
14729
14632
|
pipe(this.ref, set2(pipe(get5(this.ref), remove5(fiber))));
|
|
14730
14633
|
}
|
|
14731
14634
|
onEffect(_fiber, _effect) {
|
|
@@ -14940,35 +14843,31 @@ var runBlockedRequests = (self) => forEachSequentialDiscard(flatten3(self), (req
|
|
|
14940
14843
|
})), currentRequestMap, map15);
|
|
14941
14844
|
}, false, false));
|
|
14942
14845
|
var _version = /* @__PURE__ */ getCurrentVersion();
|
|
14943
|
-
var _a42, _b11;
|
|
14944
14846
|
var FiberRuntime = class extends Class2 {
|
|
14847
|
+
[FiberTypeId] = fiberVariance2;
|
|
14848
|
+
[RuntimeFiberTypeId] = runtimeFiberVariance;
|
|
14849
|
+
_fiberRefs;
|
|
14850
|
+
_fiberId;
|
|
14851
|
+
_queue = /* @__PURE__ */ new Array();
|
|
14852
|
+
_children = null;
|
|
14853
|
+
_observers = /* @__PURE__ */ new Array();
|
|
14854
|
+
_running = false;
|
|
14855
|
+
_stack = [];
|
|
14856
|
+
_asyncInterruptor = null;
|
|
14857
|
+
_asyncBlockingOn = null;
|
|
14858
|
+
_exitValue = null;
|
|
14859
|
+
_steps = [];
|
|
14860
|
+
_isYielding = false;
|
|
14861
|
+
currentRuntimeFlags;
|
|
14862
|
+
currentOpCount = 0;
|
|
14863
|
+
currentSupervisor;
|
|
14864
|
+
currentScheduler;
|
|
14865
|
+
currentTracer;
|
|
14866
|
+
currentSpan;
|
|
14867
|
+
currentContext;
|
|
14868
|
+
currentDefaultServices;
|
|
14945
14869
|
constructor(fiberId2, fiberRefs0, runtimeFlags0) {
|
|
14946
14870
|
super();
|
|
14947
|
-
__publicField(this, _b11, fiberVariance2);
|
|
14948
|
-
__publicField(this, _a42, runtimeFiberVariance);
|
|
14949
|
-
__publicField(this, "_fiberRefs");
|
|
14950
|
-
__publicField(this, "_fiberId");
|
|
14951
|
-
__publicField(this, "_queue", /* @__PURE__ */ new Array());
|
|
14952
|
-
__publicField(this, "_children", null);
|
|
14953
|
-
__publicField(this, "_observers", /* @__PURE__ */ new Array());
|
|
14954
|
-
__publicField(this, "_running", false);
|
|
14955
|
-
__publicField(this, "_stack", []);
|
|
14956
|
-
__publicField(this, "_asyncInterruptor", null);
|
|
14957
|
-
__publicField(this, "_asyncBlockingOn", null);
|
|
14958
|
-
__publicField(this, "_exitValue", null);
|
|
14959
|
-
__publicField(this, "_steps", []);
|
|
14960
|
-
__publicField(this, "_isYielding", false);
|
|
14961
|
-
__publicField(this, "currentRuntimeFlags");
|
|
14962
|
-
__publicField(this, "currentOpCount", 0);
|
|
14963
|
-
__publicField(this, "currentSupervisor");
|
|
14964
|
-
__publicField(this, "currentScheduler");
|
|
14965
|
-
__publicField(this, "currentTracer");
|
|
14966
|
-
__publicField(this, "currentSpan");
|
|
14967
|
-
__publicField(this, "currentContext");
|
|
14968
|
-
__publicField(this, "currentDefaultServices");
|
|
14969
|
-
__publicField(this, "run", () => {
|
|
14970
|
-
this.drainQueueOnCurrentThread();
|
|
14971
|
-
});
|
|
14972
14871
|
this.currentRuntimeFlags = runtimeFlags0;
|
|
14973
14872
|
this._fiberId = fiberId2;
|
|
14974
14873
|
this._fiberRefs = fiberRefs0;
|
|
@@ -15646,7 +15545,7 @@ var FiberRuntime = class extends Class2 {
|
|
|
15646
15545
|
frame = this.popStack();
|
|
15647
15546
|
}
|
|
15648
15547
|
}
|
|
15649
|
-
[
|
|
15548
|
+
[OP_TAG](op) {
|
|
15650
15549
|
return sync(() => unsafeGet3(this.currentContext, op));
|
|
15651
15550
|
}
|
|
15652
15551
|
["Left"](op) {
|
|
@@ -15897,6 +15796,9 @@ var FiberRuntime = class extends Class2 {
|
|
|
15897
15796
|
}
|
|
15898
15797
|
}
|
|
15899
15798
|
}
|
|
15799
|
+
run = () => {
|
|
15800
|
+
this.drainQueueOnCurrentThread();
|
|
15801
|
+
};
|
|
15900
15802
|
};
|
|
15901
15803
|
var currentMinimumLogLevel = /* @__PURE__ */ globalValue("effect/FiberRef/currentMinimumLogLevel", () => fiberRefUnsafeMake(fromLiteral("Info")));
|
|
15902
15804
|
var loggerWithConsoleLog = (self) => makeLogger((opts) => {
|
|
@@ -16351,10 +16253,7 @@ var Error3 = /* @__PURE__ */ function() {
|
|
|
16351
16253
|
}();
|
|
16352
16254
|
var TaggedError = (tag2) => {
|
|
16353
16255
|
class Base3 extends Error3 {
|
|
16354
|
-
|
|
16355
|
-
super(...arguments);
|
|
16356
|
-
__publicField(this, "_tag", tag2);
|
|
16357
|
-
}
|
|
16256
|
+
_tag = tag2;
|
|
16358
16257
|
}
|
|
16359
16258
|
;
|
|
16360
16259
|
Base3.prototype.name = tag2;
|
|
@@ -16754,10 +16653,10 @@ var unsafeRunSync = (runtime4) => (effect) => {
|
|
|
16754
16653
|
}
|
|
16755
16654
|
};
|
|
16756
16655
|
var AsyncFiberExceptionImpl = class extends Error {
|
|
16656
|
+
fiber;
|
|
16657
|
+
_tag = "AsyncFiberException";
|
|
16757
16658
|
constructor(fiber) {
|
|
16758
16659
|
super(`Fiber #${fiber.id().id} cannot be resolved synchronously. This is caused by using runSync on an effect that performs async work`);
|
|
16759
|
-
__publicField(this, "fiber");
|
|
16760
|
-
__publicField(this, "_tag", "AsyncFiberException");
|
|
16761
16660
|
this.fiber = fiber;
|
|
16762
16661
|
this.name = this._tag;
|
|
16763
16662
|
this.stack = this.message;
|
|
@@ -16772,13 +16671,12 @@ var asyncFiberException = (fiber) => {
|
|
|
16772
16671
|
};
|
|
16773
16672
|
var FiberFailureId = /* @__PURE__ */ Symbol.for("effect/Runtime/FiberFailure");
|
|
16774
16673
|
var FiberFailureCauseId = /* @__PURE__ */ Symbol.for("effect/Runtime/FiberFailure/Cause");
|
|
16775
|
-
var _a43, _b12;
|
|
16776
16674
|
var FiberFailureImpl = class extends Error {
|
|
16675
|
+
[FiberFailureId];
|
|
16676
|
+
[FiberFailureCauseId];
|
|
16777
16677
|
constructor(cause) {
|
|
16778
16678
|
const head4 = prettyErrors(cause)[0];
|
|
16779
16679
|
super(head4?.message || "An error has occurred");
|
|
16780
|
-
__publicField(this, _b12);
|
|
16781
|
-
__publicField(this, _a43);
|
|
16782
16680
|
this[FiberFailureId] = FiberFailureId;
|
|
16783
16681
|
this[FiberFailureCauseId] = cause;
|
|
16784
16682
|
this.name = head4 ? `(FiberFailure) ${head4.name}` : "FiberFailure";
|
|
@@ -16797,7 +16695,7 @@ var FiberFailureImpl = class extends Error {
|
|
|
16797
16695
|
renderErrorCause: true
|
|
16798
16696
|
});
|
|
16799
16697
|
}
|
|
16800
|
-
[
|
|
16698
|
+
[NodeInspectSymbol]() {
|
|
16801
16699
|
return this.toString();
|
|
16802
16700
|
}
|
|
16803
16701
|
};
|
|
@@ -16877,10 +16775,10 @@ var unsafeRunPromiseExit = (runtime4) => (effect, options) => new Promise((resol
|
|
|
16877
16775
|
}
|
|
16878
16776
|
});
|
|
16879
16777
|
var RuntimeImpl = class {
|
|
16778
|
+
context;
|
|
16779
|
+
runtimeFlags;
|
|
16780
|
+
fiberRefs;
|
|
16880
16781
|
constructor(context3, runtimeFlags2, fiberRefs2) {
|
|
16881
|
-
__publicField(this, "context");
|
|
16882
|
-
__publicField(this, "runtimeFlags");
|
|
16883
|
-
__publicField(this, "fiberRefs");
|
|
16884
16782
|
this.context = context3;
|
|
16885
16783
|
this.runtimeFlags = runtimeFlags2;
|
|
16886
16784
|
this.fiberRefs = fiberRefs2;
|
|
@@ -17195,57 +17093,57 @@ var EncodeException2 = EncodeException;
|
|
|
17195
17093
|
|
|
17196
17094
|
// ../../node_modules/.pnpm/effect@3.12.10/node_modules/effect/dist/esm/ParseResult.js
|
|
17197
17095
|
var Pointer = class {
|
|
17096
|
+
path;
|
|
17097
|
+
actual;
|
|
17098
|
+
issue;
|
|
17099
|
+
/**
|
|
17100
|
+
* @since 3.10.0
|
|
17101
|
+
*/
|
|
17102
|
+
_tag = "Pointer";
|
|
17198
17103
|
constructor(path2, actual, issue) {
|
|
17199
|
-
__publicField(this, "path");
|
|
17200
|
-
__publicField(this, "actual");
|
|
17201
|
-
__publicField(this, "issue");
|
|
17202
|
-
/**
|
|
17203
|
-
* @since 3.10.0
|
|
17204
|
-
*/
|
|
17205
|
-
__publicField(this, "_tag", "Pointer");
|
|
17206
17104
|
this.path = path2;
|
|
17207
17105
|
this.actual = actual;
|
|
17208
17106
|
this.issue = issue;
|
|
17209
17107
|
}
|
|
17210
17108
|
};
|
|
17211
17109
|
var Unexpected = class {
|
|
17110
|
+
actual;
|
|
17111
|
+
message;
|
|
17112
|
+
/**
|
|
17113
|
+
* @since 3.10.0
|
|
17114
|
+
*/
|
|
17115
|
+
_tag = "Unexpected";
|
|
17212
17116
|
constructor(actual, message) {
|
|
17213
|
-
__publicField(this, "actual");
|
|
17214
|
-
__publicField(this, "message");
|
|
17215
|
-
/**
|
|
17216
|
-
* @since 3.10.0
|
|
17217
|
-
*/
|
|
17218
|
-
__publicField(this, "_tag", "Unexpected");
|
|
17219
17117
|
this.actual = actual;
|
|
17220
17118
|
this.message = message;
|
|
17221
17119
|
}
|
|
17222
17120
|
};
|
|
17223
17121
|
var Missing = class {
|
|
17122
|
+
ast;
|
|
17123
|
+
message;
|
|
17124
|
+
/**
|
|
17125
|
+
* @since 3.10.0
|
|
17126
|
+
*/
|
|
17127
|
+
_tag = "Missing";
|
|
17128
|
+
/**
|
|
17129
|
+
* @since 3.10.0
|
|
17130
|
+
*/
|
|
17131
|
+
actual = void 0;
|
|
17224
17132
|
constructor(ast, message) {
|
|
17225
|
-
__publicField(this, "ast");
|
|
17226
|
-
__publicField(this, "message");
|
|
17227
|
-
/**
|
|
17228
|
-
* @since 3.10.0
|
|
17229
|
-
*/
|
|
17230
|
-
__publicField(this, "_tag", "Missing");
|
|
17231
|
-
/**
|
|
17232
|
-
* @since 3.10.0
|
|
17233
|
-
*/
|
|
17234
|
-
__publicField(this, "actual");
|
|
17235
17133
|
this.ast = ast;
|
|
17236
17134
|
this.message = message;
|
|
17237
17135
|
}
|
|
17238
17136
|
};
|
|
17239
17137
|
var Composite2 = class {
|
|
17138
|
+
ast;
|
|
17139
|
+
actual;
|
|
17140
|
+
issues;
|
|
17141
|
+
output;
|
|
17142
|
+
/**
|
|
17143
|
+
* @since 3.10.0
|
|
17144
|
+
*/
|
|
17145
|
+
_tag = "Composite";
|
|
17240
17146
|
constructor(ast, actual, issues, output) {
|
|
17241
|
-
__publicField(this, "ast");
|
|
17242
|
-
__publicField(this, "actual");
|
|
17243
|
-
__publicField(this, "issues");
|
|
17244
|
-
__publicField(this, "output");
|
|
17245
|
-
/**
|
|
17246
|
-
* @since 3.10.0
|
|
17247
|
-
*/
|
|
17248
|
-
__publicField(this, "_tag", "Composite");
|
|
17249
17147
|
this.ast = ast;
|
|
17250
17148
|
this.actual = actual;
|
|
17251
17149
|
this.issues = issues;
|
|
@@ -17253,15 +17151,15 @@ var Composite2 = class {
|
|
|
17253
17151
|
}
|
|
17254
17152
|
};
|
|
17255
17153
|
var Refinement2 = class {
|
|
17154
|
+
ast;
|
|
17155
|
+
actual;
|
|
17156
|
+
kind;
|
|
17157
|
+
issue;
|
|
17158
|
+
/**
|
|
17159
|
+
* @since 3.10.0
|
|
17160
|
+
*/
|
|
17161
|
+
_tag = "Refinement";
|
|
17256
17162
|
constructor(ast, actual, kind, issue) {
|
|
17257
|
-
__publicField(this, "ast");
|
|
17258
|
-
__publicField(this, "actual");
|
|
17259
|
-
__publicField(this, "kind");
|
|
17260
|
-
__publicField(this, "issue");
|
|
17261
|
-
/**
|
|
17262
|
-
* @since 3.10.0
|
|
17263
|
-
*/
|
|
17264
|
-
__publicField(this, "_tag", "Refinement");
|
|
17265
17163
|
this.ast = ast;
|
|
17266
17164
|
this.actual = actual;
|
|
17267
17165
|
this.kind = kind;
|
|
@@ -17269,15 +17167,15 @@ var Refinement2 = class {
|
|
|
17269
17167
|
}
|
|
17270
17168
|
};
|
|
17271
17169
|
var Transformation2 = class {
|
|
17170
|
+
ast;
|
|
17171
|
+
actual;
|
|
17172
|
+
kind;
|
|
17173
|
+
issue;
|
|
17174
|
+
/**
|
|
17175
|
+
* @since 3.10.0
|
|
17176
|
+
*/
|
|
17177
|
+
_tag = "Transformation";
|
|
17272
17178
|
constructor(ast, actual, kind, issue) {
|
|
17273
|
-
__publicField(this, "ast");
|
|
17274
|
-
__publicField(this, "actual");
|
|
17275
|
-
__publicField(this, "kind");
|
|
17276
|
-
__publicField(this, "issue");
|
|
17277
|
-
/**
|
|
17278
|
-
* @since 3.10.0
|
|
17279
|
-
*/
|
|
17280
|
-
__publicField(this, "_tag", "Transformation");
|
|
17281
17179
|
this.ast = ast;
|
|
17282
17180
|
this.actual = actual;
|
|
17283
17181
|
this.kind = kind;
|
|
@@ -17285,43 +17183,39 @@ var Transformation2 = class {
|
|
|
17285
17183
|
}
|
|
17286
17184
|
};
|
|
17287
17185
|
var Type2 = class {
|
|
17186
|
+
ast;
|
|
17187
|
+
actual;
|
|
17188
|
+
message;
|
|
17189
|
+
/**
|
|
17190
|
+
* @since 3.10.0
|
|
17191
|
+
*/
|
|
17192
|
+
_tag = "Type";
|
|
17288
17193
|
constructor(ast, actual, message) {
|
|
17289
|
-
__publicField(this, "ast");
|
|
17290
|
-
__publicField(this, "actual");
|
|
17291
|
-
__publicField(this, "message");
|
|
17292
|
-
/**
|
|
17293
|
-
* @since 3.10.0
|
|
17294
|
-
*/
|
|
17295
|
-
__publicField(this, "_tag", "Type");
|
|
17296
17194
|
this.ast = ast;
|
|
17297
17195
|
this.actual = actual;
|
|
17298
17196
|
this.message = message;
|
|
17299
17197
|
}
|
|
17300
17198
|
};
|
|
17301
17199
|
var Forbidden = class {
|
|
17200
|
+
ast;
|
|
17201
|
+
actual;
|
|
17202
|
+
message;
|
|
17203
|
+
/**
|
|
17204
|
+
* @since 3.10.0
|
|
17205
|
+
*/
|
|
17206
|
+
_tag = "Forbidden";
|
|
17302
17207
|
constructor(ast, actual, message) {
|
|
17303
|
-
__publicField(this, "ast");
|
|
17304
|
-
__publicField(this, "actual");
|
|
17305
|
-
__publicField(this, "message");
|
|
17306
|
-
/**
|
|
17307
|
-
* @since 3.10.0
|
|
17308
|
-
*/
|
|
17309
|
-
__publicField(this, "_tag", "Forbidden");
|
|
17310
17208
|
this.ast = ast;
|
|
17311
17209
|
this.actual = actual;
|
|
17312
17210
|
this.message = message;
|
|
17313
17211
|
}
|
|
17314
17212
|
};
|
|
17315
17213
|
var ParseErrorTypeId = /* @__PURE__ */ Symbol.for("effect/Schema/ParseErrorTypeId");
|
|
17316
|
-
var _a44;
|
|
17317
17214
|
var ParseError = class extends (/* @__PURE__ */ TaggedError("ParseError")) {
|
|
17318
|
-
|
|
17319
|
-
|
|
17320
|
-
|
|
17321
|
-
|
|
17322
|
-
*/
|
|
17323
|
-
__publicField(this, _a44, ParseErrorTypeId);
|
|
17324
|
-
}
|
|
17215
|
+
/**
|
|
17216
|
+
* @since 3.10.0
|
|
17217
|
+
*/
|
|
17218
|
+
[ParseErrorTypeId] = ParseErrorTypeId;
|
|
17325
17219
|
get message() {
|
|
17326
17220
|
return this.toString();
|
|
17327
17221
|
}
|
|
@@ -17343,7 +17237,7 @@ var ParseError = class extends (/* @__PURE__ */ TaggedError("ParseError")) {
|
|
|
17343
17237
|
/**
|
|
17344
17238
|
* @since 3.10.0
|
|
17345
17239
|
*/
|
|
17346
|
-
[
|
|
17240
|
+
[NodeInspectSymbol]() {
|
|
17347
17241
|
return this.toJSON();
|
|
17348
17242
|
}
|
|
17349
17243
|
};
|
|
@@ -18736,22 +18630,22 @@ var omit3 = /* @__PURE__ */ dual((args2) => isObject(args2[0]), (s, ...keys5) =>
|
|
|
18736
18630
|
|
|
18737
18631
|
// ../../node_modules/.pnpm/effect@3.12.10/node_modules/effect/dist/esm/Schema.js
|
|
18738
18632
|
var TypeId15 = /* @__PURE__ */ Symbol.for("effect/Schema");
|
|
18739
|
-
var make34 = (ast) => {
|
|
18740
|
-
|
|
18741
|
-
|
|
18742
|
-
|
|
18743
|
-
|
|
18744
|
-
|
|
18745
|
-
|
|
18746
|
-
|
|
18747
|
-
|
|
18748
|
-
|
|
18749
|
-
|
|
18750
|
-
|
|
18751
|
-
|
|
18752
|
-
|
|
18753
|
-
|
|
18754
|
-
|
|
18633
|
+
var make34 = (ast) => class SchemaClass {
|
|
18634
|
+
[TypeId15] = variance5;
|
|
18635
|
+
static ast = ast;
|
|
18636
|
+
static annotations(annotations3) {
|
|
18637
|
+
return make34(mergeSchemaAnnotations(this.ast, annotations3));
|
|
18638
|
+
}
|
|
18639
|
+
static pipe() {
|
|
18640
|
+
return pipeArguments(this, arguments);
|
|
18641
|
+
}
|
|
18642
|
+
static toString() {
|
|
18643
|
+
return String(ast);
|
|
18644
|
+
}
|
|
18645
|
+
static Type;
|
|
18646
|
+
static Encoded;
|
|
18647
|
+
static Context;
|
|
18648
|
+
static [TypeId15] = variance5;
|
|
18755
18649
|
};
|
|
18756
18650
|
var variance5 = {
|
|
18757
18651
|
/* c8 ignore next */
|
|
@@ -18847,13 +18741,11 @@ var validatePromise = (schema, options) => {
|
|
|
18847
18741
|
};
|
|
18848
18742
|
var isSchema = (u) => hasProperty(u, TypeId15) && isObject(u[TypeId15]);
|
|
18849
18743
|
var getDefaultLiteralAST = (literals) => isMembers(literals) ? Union.make(mapMembers(literals, (literal2) => new Literal(literal2))) : new Literal(literals[0]);
|
|
18850
|
-
var makeLiteralClass = (literals, ast = getDefaultLiteralAST(literals)) => {
|
|
18851
|
-
|
|
18852
|
-
|
|
18853
|
-
|
|
18854
|
-
|
|
18855
|
-
}
|
|
18856
|
-
}, __publicField(_a47, "literals", [...literals]), _a47;
|
|
18744
|
+
var makeLiteralClass = (literals, ast = getDefaultLiteralAST(literals)) => class LiteralClass extends make34(ast) {
|
|
18745
|
+
static annotations(annotations3) {
|
|
18746
|
+
return makeLiteralClass(this.literals, mergeSchemaAnnotations(this.ast, annotations3));
|
|
18747
|
+
}
|
|
18748
|
+
static literals = [...literals];
|
|
18857
18749
|
};
|
|
18858
18750
|
function Literal2(...literals) {
|
|
18859
18751
|
return isNonEmptyReadonlyArray(literals) ? makeLiteralClass(literals) : Never;
|
|
@@ -18861,15 +18753,13 @@ function Literal2(...literals) {
|
|
|
18861
18753
|
var pickLiteral = (...literals) => (_schema) => Literal2(...literals);
|
|
18862
18754
|
var UniqueSymbolFromSelf = (symbol3) => make34(new UniqueSymbol(symbol3));
|
|
18863
18755
|
var getDefaultEnumsAST = (enums) => new Enums(Object.keys(enums).filter((key) => typeof enums[enums[key]] !== "number").map((key) => [key, enums[key]]));
|
|
18864
|
-
var makeEnumsClass = (enums, ast = getDefaultEnumsAST(enums)) => {
|
|
18865
|
-
|
|
18866
|
-
|
|
18867
|
-
|
|
18868
|
-
|
|
18869
|
-
}
|
|
18870
|
-
}, __publicField(_a47, "enums", {
|
|
18756
|
+
var makeEnumsClass = (enums, ast = getDefaultEnumsAST(enums)) => class EnumsClass extends make34(ast) {
|
|
18757
|
+
static annotations(annotations3) {
|
|
18758
|
+
return makeEnumsClass(this.enums, mergeSchemaAnnotations(this.ast, annotations3));
|
|
18759
|
+
}
|
|
18760
|
+
static enums = {
|
|
18871
18761
|
...enums
|
|
18872
|
-
}
|
|
18762
|
+
};
|
|
18873
18763
|
};
|
|
18874
18764
|
var Enums2 = (enums) => makeEnumsClass(enums);
|
|
18875
18765
|
var TemplateLiteral2 = (...[head4, ...tail]) => {
|
|
@@ -18947,7 +18837,6 @@ function getTemplateLiteralParserCoercedElement(encoded, schema) {
|
|
|
18947
18837
|
}
|
|
18948
18838
|
}
|
|
18949
18839
|
var TemplateLiteralParser = (...params) => {
|
|
18950
|
-
var _a47;
|
|
18951
18840
|
const encodedSchemas = [];
|
|
18952
18841
|
const elements = [];
|
|
18953
18842
|
const schemas = [];
|
|
@@ -18974,7 +18863,7 @@ var TemplateLiteralParser = (...params) => {
|
|
|
18974
18863
|
[AutoTitleAnnotationId]: format6(Tuple(...schemas))
|
|
18975
18864
|
});
|
|
18976
18865
|
}
|
|
18977
|
-
return
|
|
18866
|
+
return class TemplateLiteralParserClass extends transformOrFail(from, to, {
|
|
18978
18867
|
strict: false,
|
|
18979
18868
|
decode: (s, _, ast) => {
|
|
18980
18869
|
const match10 = re.exec(s);
|
|
@@ -18982,7 +18871,8 @@ var TemplateLiteralParser = (...params) => {
|
|
|
18982
18871
|
},
|
|
18983
18872
|
encode: (tuple2) => succeed6(tuple2.join(""))
|
|
18984
18873
|
}) {
|
|
18985
|
-
|
|
18874
|
+
static params = params.slice();
|
|
18875
|
+
};
|
|
18986
18876
|
};
|
|
18987
18877
|
var declareConstructor = (typeParameters, options, annotations3) => make34(new Declaration(typeParameters.map((tp) => tp.ast), (...typeParameters2) => options.decode(...typeParameters2.map(make34)), (...typeParameters2) => options.encode(...typeParameters2.map(make34)), toASTAnnotations(annotations3)));
|
|
18988
18878
|
var declarePrimitive = (is2, annotations3) => {
|
|
@@ -19048,13 +18938,11 @@ var Boolean$ = class extends (/* @__PURE__ */ make34(booleanKeyword)) {
|
|
|
19048
18938
|
var Object$ = class extends (/* @__PURE__ */ make34(objectKeyword)) {
|
|
19049
18939
|
};
|
|
19050
18940
|
var getDefaultUnionAST = (members) => Union.make(members.map((m) => m.ast));
|
|
19051
|
-
var makeUnionClass = (members, ast = getDefaultUnionAST(members)) => {
|
|
19052
|
-
|
|
19053
|
-
|
|
19054
|
-
|
|
19055
|
-
|
|
19056
|
-
}
|
|
19057
|
-
}, __publicField(_a47, "members", [...members]), _a47;
|
|
18941
|
+
var makeUnionClass = (members, ast = getDefaultUnionAST(members)) => class UnionClass extends make34(ast) {
|
|
18942
|
+
static annotations(annotations3) {
|
|
18943
|
+
return makeUnionClass(this.members, mergeSchemaAnnotations(this.ast, annotations3));
|
|
18944
|
+
}
|
|
18945
|
+
static members = [...members];
|
|
19058
18946
|
};
|
|
19059
18947
|
function Union2(...members) {
|
|
19060
18948
|
return isMembers(members) ? makeUnionClass(members) : isNonEmptyReadonlyArray(members) ? members[0] : Never;
|
|
@@ -19065,14 +18953,12 @@ var NullishOr = (self) => Union2(self, Null, Undefined);
|
|
|
19065
18953
|
var keyof2 = (self) => make34(keyof(self.ast));
|
|
19066
18954
|
var element = (self) => new ElementImpl(new OptionalType(self.ast, false), self);
|
|
19067
18955
|
var optionalElement = (self) => new ElementImpl(new OptionalType(self.ast, true), self);
|
|
19068
|
-
var
|
|
19069
|
-
|
|
19070
|
-
|
|
18956
|
+
var ElementImpl = class _ElementImpl {
|
|
18957
|
+
ast;
|
|
18958
|
+
from;
|
|
18959
|
+
[TypeId15];
|
|
18960
|
+
_Token;
|
|
19071
18961
|
constructor(ast, from) {
|
|
19072
|
-
__publicField(this, "ast");
|
|
19073
|
-
__publicField(this, "from");
|
|
19074
|
-
__publicField(this, _a45);
|
|
19075
|
-
__publicField(this, "_Token");
|
|
19076
18962
|
this.ast = ast;
|
|
19077
18963
|
this.from = from;
|
|
19078
18964
|
}
|
|
@@ -19086,35 +18972,29 @@ var _ElementImpl = class _ElementImpl {
|
|
|
19086
18972
|
return `${this.ast.type}${this.ast.isOptional ? "?" : ""}`;
|
|
19087
18973
|
}
|
|
19088
18974
|
};
|
|
19089
|
-
var ElementImpl = _ElementImpl;
|
|
19090
18975
|
var getDefaultTupleTypeAST = (elements, rest) => new TupleType(elements.map((el) => isSchema(el) ? new OptionalType(el.ast, false) : el.ast), rest.map((el) => isSchema(el) ? new Type(el.ast) : el.ast), true);
|
|
19091
|
-
var makeTupleTypeClass = (elements, rest, ast = getDefaultTupleTypeAST(elements, rest)) => {
|
|
19092
|
-
|
|
19093
|
-
|
|
19094
|
-
|
|
19095
|
-
|
|
19096
|
-
|
|
19097
|
-
}, __publicField(_a47, "elements", [...elements]), __publicField(_a47, "rest", [...rest]), _a47;
|
|
18976
|
+
var makeTupleTypeClass = (elements, rest, ast = getDefaultTupleTypeAST(elements, rest)) => class TupleTypeClass extends make34(ast) {
|
|
18977
|
+
static annotations(annotations3) {
|
|
18978
|
+
return makeTupleTypeClass(this.elements, this.rest, mergeSchemaAnnotations(this.ast, annotations3));
|
|
18979
|
+
}
|
|
18980
|
+
static elements = [...elements];
|
|
18981
|
+
static rest = [...rest];
|
|
19098
18982
|
};
|
|
19099
18983
|
function Tuple(...args2) {
|
|
19100
18984
|
return Array.isArray(args2[0]) ? makeTupleTypeClass(args2[0], args2.slice(1)) : makeTupleTypeClass(args2, []);
|
|
19101
18985
|
}
|
|
19102
|
-
var makeArrayClass = (value3, ast) => {
|
|
19103
|
-
|
|
19104
|
-
|
|
19105
|
-
|
|
19106
|
-
|
|
19107
|
-
}
|
|
19108
|
-
}, __publicField(_a47, "value", value3), _a47;
|
|
18986
|
+
var makeArrayClass = (value3, ast) => class ArrayClass extends makeTupleTypeClass([], [value3], ast) {
|
|
18987
|
+
static annotations(annotations3) {
|
|
18988
|
+
return makeArrayClass(this.value, mergeSchemaAnnotations(this.ast, annotations3));
|
|
18989
|
+
}
|
|
18990
|
+
static value = value3;
|
|
19109
18991
|
};
|
|
19110
18992
|
var Array$ = (value3) => makeArrayClass(value3);
|
|
19111
|
-
var makeNonEmptyArrayClass = (value3, ast) => {
|
|
19112
|
-
|
|
19113
|
-
|
|
19114
|
-
|
|
19115
|
-
|
|
19116
|
-
}
|
|
19117
|
-
}, __publicField(_a47, "value", value3), _a47;
|
|
18993
|
+
var makeNonEmptyArrayClass = (value3, ast) => class NonEmptyArrayClass extends makeTupleTypeClass([value3], [value3], ast) {
|
|
18994
|
+
static annotations(annotations3) {
|
|
18995
|
+
return makeNonEmptyArrayClass(this.value, mergeSchemaAnnotations(this.ast, annotations3));
|
|
18996
|
+
}
|
|
18997
|
+
static value = value3;
|
|
19118
18998
|
};
|
|
19119
18999
|
var NonEmptyArray = (value3) => makeNonEmptyArrayClass(value3);
|
|
19120
19000
|
var ArrayEnsure = (value3) => {
|
|
@@ -19137,14 +19017,14 @@ var NonEmptyArrayEnsure = (value3) => {
|
|
|
19137
19017
|
};
|
|
19138
19018
|
var formatPropertySignatureToken = (isOptional) => isOptional ? '"?:"' : '":"';
|
|
19139
19019
|
var PropertySignatureDeclaration = class extends OptionalType {
|
|
19020
|
+
isReadonly;
|
|
19021
|
+
defaultValue;
|
|
19022
|
+
/**
|
|
19023
|
+
* @since 3.10.0
|
|
19024
|
+
*/
|
|
19025
|
+
_tag = "PropertySignatureDeclaration";
|
|
19140
19026
|
constructor(type, isOptional, isReadonly, annotations3, defaultValue) {
|
|
19141
19027
|
super(type, isOptional, annotations3);
|
|
19142
|
-
__publicField(this, "isReadonly");
|
|
19143
|
-
__publicField(this, "defaultValue");
|
|
19144
|
-
/**
|
|
19145
|
-
* @since 3.10.0
|
|
19146
|
-
*/
|
|
19147
|
-
__publicField(this, "_tag", "PropertySignatureDeclaration");
|
|
19148
19028
|
this.isReadonly = isReadonly;
|
|
19149
19029
|
this.defaultValue = defaultValue;
|
|
19150
19030
|
}
|
|
@@ -19158,19 +19038,19 @@ var PropertySignatureDeclaration = class extends OptionalType {
|
|
|
19158
19038
|
}
|
|
19159
19039
|
};
|
|
19160
19040
|
var FromPropertySignature = class extends OptionalType {
|
|
19041
|
+
isReadonly;
|
|
19042
|
+
fromKey;
|
|
19161
19043
|
constructor(type, isOptional, isReadonly, annotations3, fromKey2) {
|
|
19162
19044
|
super(type, isOptional, annotations3);
|
|
19163
|
-
__publicField(this, "isReadonly");
|
|
19164
|
-
__publicField(this, "fromKey");
|
|
19165
19045
|
this.isReadonly = isReadonly;
|
|
19166
19046
|
this.fromKey = fromKey2;
|
|
19167
19047
|
}
|
|
19168
19048
|
};
|
|
19169
19049
|
var ToPropertySignature = class extends OptionalType {
|
|
19050
|
+
isReadonly;
|
|
19051
|
+
defaultValue;
|
|
19170
19052
|
constructor(type, isOptional, isReadonly, annotations3, defaultValue) {
|
|
19171
19053
|
super(type, isOptional, annotations3);
|
|
19172
|
-
__publicField(this, "isReadonly");
|
|
19173
|
-
__publicField(this, "defaultValue");
|
|
19174
19054
|
this.isReadonly = isReadonly;
|
|
19175
19055
|
this.defaultValue = defaultValue;
|
|
19176
19056
|
}
|
|
@@ -19185,15 +19065,15 @@ var formatPropertyKey2 = (p) => {
|
|
|
19185
19065
|
return String(p);
|
|
19186
19066
|
};
|
|
19187
19067
|
var PropertySignatureTransformation2 = class {
|
|
19068
|
+
from;
|
|
19069
|
+
to;
|
|
19070
|
+
decode;
|
|
19071
|
+
encode;
|
|
19072
|
+
/**
|
|
19073
|
+
* @since 3.10.0
|
|
19074
|
+
*/
|
|
19075
|
+
_tag = "PropertySignatureTransformation";
|
|
19188
19076
|
constructor(from, to, decode6, encode5) {
|
|
19189
|
-
__publicField(this, "from");
|
|
19190
|
-
__publicField(this, "to");
|
|
19191
|
-
__publicField(this, "decode");
|
|
19192
|
-
__publicField(this, "encode");
|
|
19193
|
-
/**
|
|
19194
|
-
* @since 3.10.0
|
|
19195
|
-
*/
|
|
19196
|
-
__publicField(this, "_tag", "PropertySignatureTransformation");
|
|
19197
19077
|
this.from = from;
|
|
19198
19078
|
this.to = to;
|
|
19199
19079
|
this.decode = decode6;
|
|
@@ -19224,17 +19104,15 @@ var mergeSignatureAnnotations = (ast, annotations3) => {
|
|
|
19224
19104
|
};
|
|
19225
19105
|
var PropertySignatureTypeId = /* @__PURE__ */ Symbol.for("effect/PropertySignature");
|
|
19226
19106
|
var isPropertySignature = (u) => hasProperty(u, PropertySignatureTypeId);
|
|
19227
|
-
var
|
|
19228
|
-
|
|
19229
|
-
|
|
19107
|
+
var PropertySignatureImpl = class _PropertySignatureImpl {
|
|
19108
|
+
ast;
|
|
19109
|
+
[TypeId15];
|
|
19110
|
+
[PropertySignatureTypeId] = null;
|
|
19111
|
+
_TypeToken;
|
|
19112
|
+
_Key;
|
|
19113
|
+
_EncodedToken;
|
|
19114
|
+
_HasDefault;
|
|
19230
19115
|
constructor(ast) {
|
|
19231
|
-
__publicField(this, "ast");
|
|
19232
|
-
__publicField(this, _b13);
|
|
19233
|
-
__publicField(this, _a46, null);
|
|
19234
|
-
__publicField(this, "_TypeToken");
|
|
19235
|
-
__publicField(this, "_Key");
|
|
19236
|
-
__publicField(this, "_EncodedToken");
|
|
19237
|
-
__publicField(this, "_HasDefault");
|
|
19238
19116
|
this.ast = ast;
|
|
19239
19117
|
}
|
|
19240
19118
|
pipe() {
|
|
@@ -19247,12 +19125,11 @@ var _PropertySignatureImpl = class _PropertySignatureImpl {
|
|
|
19247
19125
|
return String(this.ast);
|
|
19248
19126
|
}
|
|
19249
19127
|
};
|
|
19250
|
-
var PropertySignatureImpl = _PropertySignatureImpl;
|
|
19251
19128
|
var makePropertySignature = (ast) => new PropertySignatureImpl(ast);
|
|
19252
19129
|
var PropertySignatureWithFromImpl = class _PropertySignatureWithFromImpl extends PropertySignatureImpl {
|
|
19130
|
+
from;
|
|
19253
19131
|
constructor(ast, from) {
|
|
19254
19132
|
super(ast);
|
|
19255
|
-
__publicField(this, "from");
|
|
19256
19133
|
this.from = from;
|
|
19257
19134
|
}
|
|
19258
19135
|
annotations(annotations3) {
|
|
@@ -19490,25 +19367,27 @@ var lazilyMergeDefaults = (fields, out) => {
|
|
|
19490
19367
|
return out;
|
|
19491
19368
|
};
|
|
19492
19369
|
var makeTypeLiteralClass = (fields, records, ast = getDefaultTypeLiteralAST(fields, records)) => {
|
|
19493
|
-
|
|
19494
|
-
return _a47 = class extends make34(ast) {
|
|
19370
|
+
return class TypeLiteralClass extends make34(ast) {
|
|
19495
19371
|
static annotations(annotations3) {
|
|
19496
19372
|
return makeTypeLiteralClass(this.fields, this.records, mergeSchemaAnnotations(this.ast, annotations3));
|
|
19497
19373
|
}
|
|
19374
|
+
static fields = {
|
|
19375
|
+
...fields
|
|
19376
|
+
};
|
|
19377
|
+
static records = [...records];
|
|
19378
|
+
static make = (props, options) => {
|
|
19379
|
+
const propsWithDefaults = lazilyMergeDefaults(fields, {
|
|
19380
|
+
...props
|
|
19381
|
+
});
|
|
19382
|
+
return getDisableValidationMakeOption(options) ? propsWithDefaults : validateSync(this)(propsWithDefaults);
|
|
19383
|
+
};
|
|
19498
19384
|
static pick(...keys5) {
|
|
19499
19385
|
return Struct(pick3(fields, ...keys5));
|
|
19500
19386
|
}
|
|
19501
19387
|
static omit(...keys5) {
|
|
19502
19388
|
return Struct(omit3(fields, ...keys5));
|
|
19503
19389
|
}
|
|
19504
|
-
}
|
|
19505
|
-
...fields
|
|
19506
|
-
}), __publicField(_a47, "records", [...records]), __publicField(_a47, "make", (props, options) => {
|
|
19507
|
-
const propsWithDefaults = lazilyMergeDefaults(fields, {
|
|
19508
|
-
...props
|
|
19509
|
-
});
|
|
19510
|
-
return getDisableValidationMakeOption(options) ? propsWithDefaults : validateSync(_a47)(propsWithDefaults);
|
|
19511
|
-
}), _a47;
|
|
19390
|
+
};
|
|
19512
19391
|
};
|
|
19513
19392
|
function Struct(fields, ...records) {
|
|
19514
19393
|
return makeTypeLiteralClass(fields, records);
|
|
@@ -19518,16 +19397,15 @@ var TaggedStruct = (value3, fields) => Struct({
|
|
|
19518
19397
|
_tag: tag(value3),
|
|
19519
19398
|
...fields
|
|
19520
19399
|
});
|
|
19521
|
-
var makeRecordClass = (key, value3, ast) => {
|
|
19522
|
-
|
|
19523
|
-
|
|
19524
|
-
|
|
19525
|
-
|
|
19526
|
-
|
|
19527
|
-
|
|
19528
|
-
|
|
19529
|
-
|
|
19530
|
-
}, __publicField(_a47, "key", key), __publicField(_a47, "value", value3), _a47;
|
|
19400
|
+
var makeRecordClass = (key, value3, ast) => class RecordClass extends makeTypeLiteralClass({}, [{
|
|
19401
|
+
key,
|
|
19402
|
+
value: value3
|
|
19403
|
+
}], ast) {
|
|
19404
|
+
static annotations(annotations3) {
|
|
19405
|
+
return makeRecordClass(key, value3, mergeSchemaAnnotations(this.ast, annotations3));
|
|
19406
|
+
}
|
|
19407
|
+
static key = key;
|
|
19408
|
+
static value = value3;
|
|
19531
19409
|
};
|
|
19532
19410
|
var Record = (options) => makeRecordClass(options.key, options.value);
|
|
19533
19411
|
var pick4 = (...keys5) => (self) => make34(pick(self.ast, keys5));
|
|
@@ -19543,15 +19421,13 @@ var pluck = /* @__PURE__ */ dual(2, (schema, key) => {
|
|
|
19543
19421
|
}
|
|
19544
19422
|
});
|
|
19545
19423
|
});
|
|
19546
|
-
var makeBrandClass = (ast) => {
|
|
19547
|
-
|
|
19548
|
-
|
|
19549
|
-
|
|
19550
|
-
|
|
19551
|
-
|
|
19552
|
-
}
|
|
19553
|
-
return getDisableValidationMakeOption(options) ? a : validateSync(_a47)(a);
|
|
19554
|
-
}), _a47;
|
|
19424
|
+
var makeBrandClass = (ast) => class BrandClass extends make34(ast) {
|
|
19425
|
+
static annotations(annotations3) {
|
|
19426
|
+
return makeBrandClass(mergeSchemaAnnotations(this.ast, annotations3));
|
|
19427
|
+
}
|
|
19428
|
+
static make = (a, options) => {
|
|
19429
|
+
return getDisableValidationMakeOption(options) ? a : validateSync(this)(a);
|
|
19430
|
+
};
|
|
19555
19431
|
};
|
|
19556
19432
|
var brand = (brand2, annotations3) => (self) => {
|
|
19557
19433
|
const annotation = match2(getBrandAnnotation(self.ast), {
|
|
@@ -19690,15 +19566,16 @@ var extend2 = /* @__PURE__ */ dual(2, (self, that) => make34(extendAST(self.ast,
|
|
|
19690
19566
|
var compose2 = /* @__PURE__ */ dual((args2) => isSchema(args2[1]), (from, to) => make34(compose(from.ast, to.ast)));
|
|
19691
19567
|
var suspend5 = (f) => make34(new Suspend(() => f().ast));
|
|
19692
19568
|
var RefineSchemaId = /* @__PURE__ */ Symbol.for("effect/SchemaId/Refine");
|
|
19693
|
-
var makeRefineClass = (from, filter8, ast) => {
|
|
19694
|
-
|
|
19695
|
-
|
|
19696
|
-
|
|
19697
|
-
|
|
19698
|
-
|
|
19699
|
-
|
|
19700
|
-
|
|
19701
|
-
|
|
19569
|
+
var makeRefineClass = (from, filter8, ast) => class RefineClass extends make34(ast) {
|
|
19570
|
+
static annotations(annotations3) {
|
|
19571
|
+
return makeRefineClass(this.from, this.filter, mergeSchemaAnnotations(this.ast, annotations3));
|
|
19572
|
+
}
|
|
19573
|
+
static [RefineSchemaId] = from;
|
|
19574
|
+
static from = from;
|
|
19575
|
+
static filter = filter8;
|
|
19576
|
+
static make = (a, options) => {
|
|
19577
|
+
return getDisableValidationMakeOption(options) ? a : validateSync(this)(a);
|
|
19578
|
+
};
|
|
19702
19579
|
};
|
|
19703
19580
|
var fromFilterPredicateReturnTypeItem = (item, ast, input) => {
|
|
19704
19581
|
if (isBoolean(item)) {
|
|
@@ -19745,13 +19622,12 @@ var filterEffect = /* @__PURE__ */ dual(2, (self, f) => transformOrFail(self, ty
|
|
|
19745
19622
|
})),
|
|
19746
19623
|
encode: succeed6
|
|
19747
19624
|
}));
|
|
19748
|
-
var makeTransformationClass = (from, to, ast) => {
|
|
19749
|
-
|
|
19750
|
-
|
|
19751
|
-
|
|
19752
|
-
|
|
19753
|
-
|
|
19754
|
-
}, __publicField(_a47, "from", from), __publicField(_a47, "to", to), _a47;
|
|
19625
|
+
var makeTransformationClass = (from, to, ast) => class TransformationClass extends make34(ast) {
|
|
19626
|
+
static annotations(annotations3) {
|
|
19627
|
+
return makeTransformationClass(this.from, this.to, mergeSchemaAnnotations(this.ast, annotations3));
|
|
19628
|
+
}
|
|
19629
|
+
static from = from;
|
|
19630
|
+
static to = to;
|
|
19755
19631
|
};
|
|
19756
19632
|
var transformOrFail = /* @__PURE__ */ dual((args2) => isSchema(args2[0]) && isSchema(args2[1]), (from, to, options) => makeTransformationClass(from, to, new Transformation(from.ast, to.ast, new FinalTransformation(options.decode, options.encode))));
|
|
19757
19633
|
var transform2 = /* @__PURE__ */ dual((args2) => isSchema(args2[0]) && isSchema(args2[1]), (from, to, options) => transformOrFail(from, to, {
|
|
@@ -21498,14 +21374,13 @@ var Class6 = (identifier2) => (fieldsOr, annotations3) => makeClass({
|
|
|
21498
21374
|
});
|
|
21499
21375
|
var getClassTag = (tag2) => withConstructorDefault(propertySignature(Literal2(tag2)), () => tag2);
|
|
21500
21376
|
var TaggedClass2 = (identifier2) => (tag2, fieldsOr, annotations3) => {
|
|
21501
|
-
var _a47;
|
|
21502
21377
|
const fields = getFieldsFromFieldsOr(fieldsOr);
|
|
21503
21378
|
const schema = getSchemaFromFieldsOr(fieldsOr);
|
|
21504
21379
|
const newFields = {
|
|
21505
21380
|
_tag: getClassTag(tag2)
|
|
21506
21381
|
};
|
|
21507
21382
|
const taggedFields = extendFields(newFields, fields);
|
|
21508
|
-
return
|
|
21383
|
+
return class TaggedClass extends makeClass({
|
|
21509
21384
|
kind: "TaggedClass",
|
|
21510
21385
|
identifier: identifier2 ?? tag2,
|
|
21511
21386
|
schema: extend2(schema, Struct(newFields)),
|
|
@@ -21513,10 +21388,10 @@ var TaggedClass2 = (identifier2) => (tag2, fieldsOr, annotations3) => {
|
|
|
21513
21388
|
Base: Class4,
|
|
21514
21389
|
annotations: annotations3
|
|
21515
21390
|
}) {
|
|
21516
|
-
|
|
21391
|
+
static _tag = tag2;
|
|
21392
|
+
};
|
|
21517
21393
|
};
|
|
21518
21394
|
var TaggedError2 = (identifier2) => (tag2, fieldsOr, annotations3) => {
|
|
21519
|
-
var _a47;
|
|
21520
21395
|
class Base3 extends Error3 {
|
|
21521
21396
|
}
|
|
21522
21397
|
;
|
|
@@ -21527,7 +21402,7 @@ var TaggedError2 = (identifier2) => (tag2, fieldsOr, annotations3) => {
|
|
|
21527
21402
|
_tag: getClassTag(tag2)
|
|
21528
21403
|
};
|
|
21529
21404
|
const taggedFields = extendFields(newFields, fields);
|
|
21530
|
-
return
|
|
21405
|
+
return class TaggedErrorClass extends makeClass({
|
|
21531
21406
|
kind: "TaggedError",
|
|
21532
21407
|
identifier: identifier2 ?? tag2,
|
|
21533
21408
|
schema: extend2(schema, Struct(newFields)),
|
|
@@ -21536,10 +21411,11 @@ var TaggedError2 = (identifier2) => (tag2, fieldsOr, annotations3) => {
|
|
|
21536
21411
|
annotations: annotations3,
|
|
21537
21412
|
disableToString: true
|
|
21538
21413
|
}) {
|
|
21414
|
+
static _tag = tag2;
|
|
21539
21415
|
get message() {
|
|
21540
21416
|
return `{ ${ownKeys(fields).map((p) => `${formatPropertyKey(p)}: ${formatUnknown(this[p])}`).join(", ")} }`;
|
|
21541
21417
|
}
|
|
21542
|
-
}
|
|
21418
|
+
};
|
|
21543
21419
|
};
|
|
21544
21420
|
var extendFields = (a, b) => {
|
|
21545
21421
|
const out = {
|
|
@@ -21575,7 +21451,6 @@ var makeClass = ({
|
|
|
21575
21451
|
kind,
|
|
21576
21452
|
schema
|
|
21577
21453
|
}) => {
|
|
21578
|
-
var _a47, _b14;
|
|
21579
21454
|
const classSymbol = Symbol.for(`effect/Schema/${kind}/${identifier2}`);
|
|
21580
21455
|
const [typeAnnotations, transformationAnnotations, encodedAnnotations] = getClassAnnotations(annotations3);
|
|
21581
21456
|
const typeSchema_ = typeSchema(schema);
|
|
@@ -21602,7 +21477,7 @@ var makeClass = ({
|
|
|
21602
21477
|
...transformationAnnotations
|
|
21603
21478
|
});
|
|
21604
21479
|
const fallbackInstanceOf = (u) => hasProperty(u, classSymbol) && is(typeSide)(u);
|
|
21605
|
-
const klass =
|
|
21480
|
+
const klass = class extends Base3 {
|
|
21606
21481
|
constructor(props = {}, options = false) {
|
|
21607
21482
|
props = {
|
|
21608
21483
|
...props
|
|
@@ -21616,6 +21491,10 @@ var makeClass = ({
|
|
|
21616
21491
|
}
|
|
21617
21492
|
super(props, true);
|
|
21618
21493
|
}
|
|
21494
|
+
// ----------------
|
|
21495
|
+
// Schema interface
|
|
21496
|
+
// ----------------
|
|
21497
|
+
static [TypeId15] = variance5;
|
|
21619
21498
|
static get ast() {
|
|
21620
21499
|
let out = astCache.get(this);
|
|
21621
21500
|
if (out) {
|
|
@@ -21659,6 +21538,10 @@ var makeClass = ({
|
|
|
21659
21538
|
static make(...args2) {
|
|
21660
21539
|
return new this(...args2);
|
|
21661
21540
|
}
|
|
21541
|
+
static fields = {
|
|
21542
|
+
...fields
|
|
21543
|
+
};
|
|
21544
|
+
static identifier = identifier2;
|
|
21662
21545
|
static extend(identifier3) {
|
|
21663
21546
|
return (newFieldsOr, annotations4) => {
|
|
21664
21547
|
const newFields = getFieldsFromFieldsOr(newFieldsOr);
|
|
@@ -21703,15 +21586,10 @@ var makeClass = ({
|
|
|
21703
21586
|
// ----------------
|
|
21704
21587
|
// other
|
|
21705
21588
|
// ----------------
|
|
21706
|
-
get [
|
|
21589
|
+
get [classSymbol]() {
|
|
21707
21590
|
return classSymbol;
|
|
21708
21591
|
}
|
|
21709
|
-
}
|
|
21710
|
-
// Schema interface
|
|
21711
|
-
// ----------------
|
|
21712
|
-
__publicField(_b14, _a47, variance5), __publicField(_b14, "fields", {
|
|
21713
|
-
...fields
|
|
21714
|
-
}), __publicField(_b14, "identifier", identifier2), _b14);
|
|
21592
|
+
};
|
|
21715
21593
|
if (disableToString !== true) {
|
|
21716
21594
|
Object.defineProperty(klass.prototype, "toString", {
|
|
21717
21595
|
value() {
|
|
@@ -22255,11 +22133,10 @@ var serializeExit = /* @__PURE__ */ dual(2, (self, value3) => encode4(exitSchema
|
|
|
22255
22133
|
var deserializeExit = /* @__PURE__ */ dual(2, (self, value3) => decodeUnknown2(exitSchema(self))(value3));
|
|
22256
22134
|
var asSerializableWithResult = (procedure) => procedure;
|
|
22257
22135
|
var TaggedRequest = (identifier2) => (tag2, options, annotations3) => {
|
|
22258
|
-
var _a47;
|
|
22259
22136
|
const taggedFields = extendFields({
|
|
22260
22137
|
_tag: getClassTag(tag2)
|
|
22261
22138
|
}, options.payload);
|
|
22262
|
-
return
|
|
22139
|
+
return class TaggedRequestClass extends makeClass({
|
|
22263
22140
|
kind: "TaggedRequest",
|
|
22264
22141
|
identifier: identifier2 ?? tag2,
|
|
22265
22142
|
schema: Struct(taggedFields),
|
|
@@ -22267,6 +22144,9 @@ var TaggedRequest = (identifier2) => (tag2, options, annotations3) => {
|
|
|
22267
22144
|
Base: Class5,
|
|
22268
22145
|
annotations: annotations3
|
|
22269
22146
|
}) {
|
|
22147
|
+
static _tag = tag2;
|
|
22148
|
+
static success = options.success;
|
|
22149
|
+
static failure = options.failure;
|
|
22270
22150
|
get [symbolSerializable]() {
|
|
22271
22151
|
return this.constructor;
|
|
22272
22152
|
}
|
|
@@ -22276,7 +22156,7 @@ var TaggedRequest = (identifier2) => (tag2, options, annotations3) => {
|
|
|
22276
22156
|
success: options.success
|
|
22277
22157
|
};
|
|
22278
22158
|
}
|
|
22279
|
-
}
|
|
22159
|
+
};
|
|
22280
22160
|
};
|
|
22281
22161
|
var equivalence2 = (schema) => go2(schema.ast, []);
|
|
22282
22162
|
var getEquivalenceAnnotation = /* @__PURE__ */ getAnnotation(EquivalenceAnnotationId);
|
|
@@ -22473,6 +22353,7 @@ function defineConfig(configInput) {
|
|
|
22473
22353
|
debug("Prisma config [default]: %o", config2);
|
|
22474
22354
|
defineSchemaConfig(config2, configInput);
|
|
22475
22355
|
defineStudioConfig(config2, configInput);
|
|
22356
|
+
defineMigrateConfig(config2, configInput);
|
|
22476
22357
|
return config2;
|
|
22477
22358
|
}
|
|
22478
22359
|
function defineSchemaConfig(config2, configInput) {
|
|
@@ -22491,6 +22372,15 @@ function defineStudioConfig(config2, configInput) {
|
|
|
22491
22372
|
};
|
|
22492
22373
|
debug("Prisma config [studio]: %o", config2.studio);
|
|
22493
22374
|
}
|
|
22375
|
+
function defineMigrateConfig(config2, configInput) {
|
|
22376
|
+
if (!configInput.migrate) {
|
|
22377
|
+
return;
|
|
22378
|
+
}
|
|
22379
|
+
config2.migrate = {
|
|
22380
|
+
adapter: configInput.migrate.adapter
|
|
22381
|
+
};
|
|
22382
|
+
debug("Prisma config [migrate]: %o", config2.migrate);
|
|
22383
|
+
}
|
|
22494
22384
|
|
|
22495
22385
|
// src/PrismaConfig.ts
|
|
22496
22386
|
var debug2 = Debug("prisma:config:PrismaConfig");
|
|
@@ -22504,30 +22394,37 @@ var adapterShape = () => Schema_exports.declare(
|
|
|
22504
22394
|
decode: identity
|
|
22505
22395
|
}
|
|
22506
22396
|
);
|
|
22397
|
+
var migrationAwareAdapterShape = () => Schema_exports.declare(
|
|
22398
|
+
(input) => {
|
|
22399
|
+
return input instanceof Function;
|
|
22400
|
+
},
|
|
22401
|
+
{
|
|
22402
|
+
identifier: "MigrationAwareAdapter<Env>",
|
|
22403
|
+
encode: identity,
|
|
22404
|
+
decode: identity
|
|
22405
|
+
}
|
|
22406
|
+
);
|
|
22507
22407
|
var createPrismaStudioConfigInternalShape = () => Schema_exports.Struct({
|
|
22508
22408
|
/**
|
|
22509
22409
|
* Instantiates the Prisma driver adapter to use for Prisma Studio.
|
|
22510
22410
|
*/
|
|
22511
22411
|
adapter: adapterShape()
|
|
22512
22412
|
});
|
|
22513
|
-
var
|
|
22514
|
-
|
|
22515
|
-
|
|
22516
|
-
|
|
22517
|
-
|
|
22518
|
-
kind: Schema_exports.Literal("multi"),
|
|
22519
|
-
folderPath: Schema_exports.String
|
|
22413
|
+
var createPrismaMigrateConfigInternalShape = () => Schema_exports.Struct({
|
|
22414
|
+
/**
|
|
22415
|
+
* Instantiates the Prisma driver adapter to use for Prisma Migrate + Introspect.
|
|
22416
|
+
*/
|
|
22417
|
+
adapter: migrationAwareAdapterShape()
|
|
22520
22418
|
});
|
|
22521
|
-
var PrismaSchemaConfigShape = Schema_exports.Union(PrismaConfigSchemaSingleShape, PrismaConfigSchemaMultiShape);
|
|
22522
22419
|
if (false) {
|
|
22523
|
-
__testPrismaSchemaConfigShapeValueA;
|
|
22524
|
-
__testPrismaSchemaConfigShapeValueB;
|
|
22525
22420
|
__testPrismaStudioConfigShapeValueA;
|
|
22526
22421
|
__testPrismaStudioConfigShapeValueB;
|
|
22422
|
+
__testPrismaMigrateConfigShapeValueA;
|
|
22423
|
+
__testPrismaMigrateConfigShapeValueB;
|
|
22527
22424
|
}
|
|
22528
22425
|
var createPrismaConfigShape = () => Schema_exports.Struct({
|
|
22529
22426
|
earlyAccess: Schema_exports.Literal(true),
|
|
22530
|
-
schema: Schema_exports.optional(
|
|
22427
|
+
schema: Schema_exports.optional(Schema_exports.String)
|
|
22531
22428
|
});
|
|
22532
22429
|
if (false) {
|
|
22533
22430
|
__testPrismaConfigValueA;
|
|
@@ -22541,8 +22438,9 @@ function parsePrismaConfigShape(input) {
|
|
|
22541
22438
|
var PRISMA_CONFIG_INTERNAL_BRAND = Symbol.for("PrismaConfigInternal");
|
|
22542
22439
|
var createPrismaConfigInternalShape = () => Schema_exports.Struct({
|
|
22543
22440
|
earlyAccess: Schema_exports.Literal(true),
|
|
22544
|
-
schema: Schema_exports.optional(
|
|
22441
|
+
schema: Schema_exports.optional(Schema_exports.String),
|
|
22545
22442
|
studio: Schema_exports.optional(createPrismaStudioConfigInternalShape()),
|
|
22443
|
+
migrate: Schema_exports.optional(createPrismaMigrateConfigInternalShape()),
|
|
22546
22444
|
loadedFromFile: Schema_exports.NullOr(Schema_exports.String)
|
|
22547
22445
|
});
|
|
22548
22446
|
if (false) {
|
|
@@ -22698,21 +22596,10 @@ async function requireTypeScriptFile(resolvedPath) {
|
|
|
22698
22596
|
}
|
|
22699
22597
|
}
|
|
22700
22598
|
function transformPathsInConfigToAbsolute(prismaConfig, resolvedPath) {
|
|
22701
|
-
if (prismaConfig.schema
|
|
22599
|
+
if (prismaConfig.schema) {
|
|
22702
22600
|
return {
|
|
22703
22601
|
...prismaConfig,
|
|
22704
|
-
schema:
|
|
22705
|
-
...prismaConfig.schema,
|
|
22706
|
-
filePath: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.filePath)
|
|
22707
|
-
}
|
|
22708
|
-
};
|
|
22709
|
-
} else if (prismaConfig.schema?.kind === "multi") {
|
|
22710
|
-
return {
|
|
22711
|
-
...prismaConfig,
|
|
22712
|
-
schema: {
|
|
22713
|
-
...prismaConfig.schema,
|
|
22714
|
-
folderPath: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.folderPath)
|
|
22715
|
-
}
|
|
22602
|
+
schema: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema)
|
|
22716
22603
|
};
|
|
22717
22604
|
} else {
|
|
22718
22605
|
return prismaConfig;
|