@brytdesigns/shopify-ajax-client 1.0.2 → 1.0.4
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/esm/index.js +542 -474
- package/dist/esm/index.js.map +1 -1
- package/dist/main/AjaxClientResponse.js.map +1 -1
- package/dist/main/LoggerUtils.js.map +1 -1
- package/dist/main/errors.js +3 -0
- package/dist/main/errors.js.map +1 -1
- package/dist/main/index.d.ts +38 -0
- package/dist/main/index.js.map +1 -1
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __export = (target, all5) => {
|
|
|
4
4
|
__defProp(target, name, { get: all5[name], enumerable: true });
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Function.js
|
|
8
8
|
var isFunction = (input) => typeof input === "function";
|
|
9
9
|
var dual = function(arity, body) {
|
|
10
10
|
if (typeof arity === "function") {
|
|
@@ -103,7 +103,7 @@ function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
106
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Equivalence.js
|
|
107
107
|
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
108
108
|
var mapInput = /* @__PURE__ */ dual(2, (self, f) => make((x, y) => self(f(x), f(y))));
|
|
109
109
|
var array = (item) => make((self, that) => {
|
|
@@ -119,7 +119,7 @@ var array = (item) => make((self, that) => {
|
|
|
119
119
|
return true;
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
122
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/GlobalValue.js
|
|
123
123
|
var globalStoreId = `effect/GlobalValue`;
|
|
124
124
|
var globalStore;
|
|
125
125
|
var globalValue = (id2, compute) => {
|
|
@@ -133,7 +133,7 @@ var globalValue = (id2, compute) => {
|
|
|
133
133
|
return globalStore.get(id2);
|
|
134
134
|
};
|
|
135
135
|
|
|
136
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
136
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Predicate.js
|
|
137
137
|
var isString = (input) => typeof input === "string";
|
|
138
138
|
var isNumber = (input) => typeof input === "number";
|
|
139
139
|
var isBoolean = (input) => typeof input === "boolean";
|
|
@@ -149,11 +149,11 @@ var isTagged = /* @__PURE__ */ dual(2, (self, tag2) => hasProperty(self, "_tag")
|
|
|
149
149
|
var isNullable = (input) => input === null || input === void 0;
|
|
150
150
|
var isNotNullable = (input) => input !== null && input !== void 0;
|
|
151
151
|
var isDate = (input) => input instanceof Date;
|
|
152
|
-
var isIterable = (input) => hasProperty(input, Symbol.iterator);
|
|
152
|
+
var isIterable = (input) => typeof input === "string" || hasProperty(input, Symbol.iterator);
|
|
153
153
|
var isRecord = (input) => isRecordOrArray(input) && !Array.isArray(input);
|
|
154
154
|
var isPromiseLike = (input) => hasProperty(input, "then") && isFunction2(input.then);
|
|
155
155
|
|
|
156
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
156
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/errors.js
|
|
157
157
|
var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
|
|
158
158
|
var SingleShotGen = class _SingleShotGen {
|
|
159
159
|
self;
|
|
@@ -353,7 +353,7 @@ var forced = {
|
|
|
353
353
|
var isNotOptimizedAway = /* @__PURE__ */ standard.effect_internal_function(() => new Error().stack)?.includes("effect_internal_function") === true;
|
|
354
354
|
var internalCall = isNotOptimizedAway ? standard.effect_internal_function : forced.effect_internal_function;
|
|
355
355
|
|
|
356
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
356
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Hash.js
|
|
357
357
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
358
358
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
359
359
|
var hash = (self) => {
|
|
@@ -459,7 +459,7 @@ var cached = function() {
|
|
|
459
459
|
return hash2;
|
|
460
460
|
};
|
|
461
461
|
|
|
462
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
462
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Equal.js
|
|
463
463
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
464
464
|
function equals() {
|
|
465
465
|
if (arguments.length === 1) {
|
|
@@ -513,7 +513,7 @@ function compareBoth(self, that) {
|
|
|
513
513
|
var isEqual = (u) => hasProperty(u, symbol2);
|
|
514
514
|
var equivalence = () => equals;
|
|
515
515
|
|
|
516
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
516
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Inspectable.js
|
|
517
517
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
518
518
|
var toJSON = (x) => {
|
|
519
519
|
try {
|
|
@@ -527,6 +527,73 @@ var toJSON = (x) => {
|
|
|
527
527
|
}
|
|
528
528
|
return redact(x);
|
|
529
529
|
};
|
|
530
|
+
var CIRCULAR = "[Circular]";
|
|
531
|
+
function formatDate(date) {
|
|
532
|
+
try {
|
|
533
|
+
return date.toISOString();
|
|
534
|
+
} catch {
|
|
535
|
+
return "Invalid Date";
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
function safeToString(input) {
|
|
539
|
+
try {
|
|
540
|
+
const s = input.toString();
|
|
541
|
+
return typeof s === "string" ? s : String(s);
|
|
542
|
+
} catch {
|
|
543
|
+
return "[toString threw]";
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
function formatPropertyKey(name) {
|
|
547
|
+
return isString(name) ? JSON.stringify(name) : String(name);
|
|
548
|
+
}
|
|
549
|
+
function formatUnknown(input, options3) {
|
|
550
|
+
const seen = /* @__PURE__ */ new WeakSet();
|
|
551
|
+
const wrap = (v, body) => {
|
|
552
|
+
const ctor = v?.constructor;
|
|
553
|
+
return ctor && ctor !== Object.prototype.constructor && ctor.name ? `${ctor.name}(${body})` : body;
|
|
554
|
+
};
|
|
555
|
+
const ownKeys = (o) => {
|
|
556
|
+
try {
|
|
557
|
+
return Reflect.ownKeys(o);
|
|
558
|
+
} catch {
|
|
559
|
+
return ["[ownKeys threw]"];
|
|
560
|
+
}
|
|
561
|
+
};
|
|
562
|
+
function go2(v, d = 0) {
|
|
563
|
+
if (Array.isArray(v)) {
|
|
564
|
+
if (seen.has(v)) return CIRCULAR;
|
|
565
|
+
seen.add(v);
|
|
566
|
+
return `[${v.map((x) => go2(x, d)).join(",")}]`;
|
|
567
|
+
}
|
|
568
|
+
if (isDate(v)) return formatDate(v);
|
|
569
|
+
if (hasProperty(v, "toString") && isFunction2(v["toString"]) && v["toString"] !== Object.prototype.toString && v["toString"] !== Array.prototype.toString) {
|
|
570
|
+
const s = safeToString(v);
|
|
571
|
+
if (v instanceof Error && v.cause) {
|
|
572
|
+
return `${s} (cause: ${go2(v.cause, d)})`;
|
|
573
|
+
}
|
|
574
|
+
return s;
|
|
575
|
+
}
|
|
576
|
+
if (isString(v)) return JSON.stringify(v);
|
|
577
|
+
if (isNumber(v) || v == null || isBoolean(v) || isSymbol(v)) return String(v);
|
|
578
|
+
if (isBigInt(v)) return String(v) + "n";
|
|
579
|
+
if (v instanceof Set || v instanceof Map) {
|
|
580
|
+
if (seen.has(v)) return CIRCULAR;
|
|
581
|
+
seen.add(v);
|
|
582
|
+
return `${v.constructor.name}(${go2(Array.from(v), d)})`;
|
|
583
|
+
}
|
|
584
|
+
if (isObject(v)) {
|
|
585
|
+
if (seen.has(v)) return CIRCULAR;
|
|
586
|
+
seen.add(v);
|
|
587
|
+
const keys6 = ownKeys(v);
|
|
588
|
+
{
|
|
589
|
+
const body2 = `{${keys6.map((k) => `${formatPropertyKey(k)}:${go2(v[k], d)}`).join(",")}}`;
|
|
590
|
+
return wrap(v, body2);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
return String(v);
|
|
594
|
+
}
|
|
595
|
+
return go2(input, 0);
|
|
596
|
+
}
|
|
530
597
|
var format = (x) => JSON.stringify(x, null, 2);
|
|
531
598
|
var BaseProto = {
|
|
532
599
|
toJSON() {
|
|
@@ -590,7 +657,7 @@ var redact = (u) => {
|
|
|
590
657
|
return u;
|
|
591
658
|
};
|
|
592
659
|
|
|
593
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
660
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Pipeable.js
|
|
594
661
|
var pipeArguments = (self, args2) => {
|
|
595
662
|
switch (args2.length) {
|
|
596
663
|
case 0:
|
|
@@ -623,7 +690,7 @@ var pipeArguments = (self, args2) => {
|
|
|
623
690
|
}
|
|
624
691
|
};
|
|
625
692
|
|
|
626
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
693
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/effect.js
|
|
627
694
|
var OP_ASYNC = "Async";
|
|
628
695
|
var OP_COMMIT = "Commit";
|
|
629
696
|
var OP_FAILURE = "Failure";
|
|
@@ -640,11 +707,11 @@ var OP_WITH_RUNTIME = "WithRuntime";
|
|
|
640
707
|
var OP_YIELD = "Yield";
|
|
641
708
|
var OP_REVERT_FLAGS = "RevertFlags";
|
|
642
709
|
|
|
643
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
644
|
-
var moduleVersion = "3.
|
|
710
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/version.js
|
|
711
|
+
var moduleVersion = "3.19.6";
|
|
645
712
|
var getCurrentVersion = () => moduleVersion;
|
|
646
713
|
|
|
647
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
714
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/effectable.js
|
|
648
715
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
649
716
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
650
717
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -737,7 +804,7 @@ var Base = /* @__PURE__ */ function() {
|
|
|
737
804
|
return Base3;
|
|
738
805
|
}();
|
|
739
806
|
|
|
740
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
807
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/option.js
|
|
741
808
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
742
809
|
var CommonProto = {
|
|
743
810
|
...EffectPrototype,
|
|
@@ -795,7 +862,7 @@ var some = (value2) => {
|
|
|
795
862
|
return a;
|
|
796
863
|
};
|
|
797
864
|
|
|
798
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
865
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/either.js
|
|
799
866
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
800
867
|
var CommonProto2 = {
|
|
801
868
|
...EffectPrototype,
|
|
@@ -858,7 +925,7 @@ var right = (right3) => {
|
|
|
858
925
|
};
|
|
859
926
|
var fromOption = /* @__PURE__ */ dual(2, (self, onNone) => isNone(self) ? left(onNone()) : right(self.value));
|
|
860
927
|
|
|
861
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
928
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Either.js
|
|
862
929
|
var right2 = right;
|
|
863
930
|
var left2 = left;
|
|
864
931
|
var fromOption2 = fromOption;
|
|
@@ -883,16 +950,16 @@ var getOrThrowWith = /* @__PURE__ */ dual(2, (self, onLeft) => {
|
|
|
883
950
|
});
|
|
884
951
|
var getOrThrow = /* @__PURE__ */ getOrThrowWith(() => new Error("getOrThrow called on a Left"));
|
|
885
952
|
|
|
886
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
953
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/array.js
|
|
887
954
|
var isNonEmptyArray = (self) => self.length > 0;
|
|
888
955
|
|
|
889
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
956
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Order.js
|
|
890
957
|
var make2 = (compare2) => (self, that) => self === that ? 0 : compare2(self, that);
|
|
891
958
|
var number3 = /* @__PURE__ */ make2((self, that) => self < that ? -1 : 1);
|
|
892
959
|
var mapInput2 = /* @__PURE__ */ dual(2, (self, f) => make2((b1, b2) => self(f(b1), f(b2))));
|
|
893
960
|
var greaterThan = (O) => dual(2, (self, that) => O(self, that) === 1);
|
|
894
961
|
|
|
895
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
962
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Option.js
|
|
896
963
|
var none2 = () => none;
|
|
897
964
|
var some2 = some;
|
|
898
965
|
var isNone2 = isNone;
|
|
@@ -921,10 +988,10 @@ var _equivalence = /* @__PURE__ */ equivalence();
|
|
|
921
988
|
var contains = /* @__PURE__ */ containsWith(_equivalence);
|
|
922
989
|
var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false : refinement(self.value));
|
|
923
990
|
|
|
924
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
991
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Tuple.js
|
|
925
992
|
var make3 = (...elements) => elements;
|
|
926
993
|
|
|
927
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
994
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Record.js
|
|
928
995
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
929
996
|
const out = {
|
|
930
997
|
...self
|
|
@@ -936,7 +1003,7 @@ var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
936
1003
|
});
|
|
937
1004
|
var keys = (self) => Object.keys(self);
|
|
938
1005
|
|
|
939
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1006
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Array.js
|
|
940
1007
|
var allocate = (n) => new Array(n);
|
|
941
1008
|
var makeBy = /* @__PURE__ */ dual(2, (n, f) => {
|
|
942
1009
|
const max5 = Math.max(1, Math.floor(n));
|
|
@@ -1111,7 +1178,7 @@ var dedupeWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => {
|
|
|
1111
1178
|
var dedupe = (self) => dedupeWith(self, equivalence());
|
|
1112
1179
|
var join = /* @__PURE__ */ dual(2, (self, sep) => fromIterable(self).join(sep));
|
|
1113
1180
|
|
|
1114
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1181
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Chunk.js
|
|
1115
1182
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Chunk");
|
|
1116
1183
|
function copy2(src, srcPos, dest, destPos, len) {
|
|
1117
1184
|
for (let i = srcPos; i < Math.min(src.length, srcPos + len); i++) {
|
|
@@ -1450,14 +1517,14 @@ var map5 = /* @__PURE__ */ dual(2, (self, f) => self.backing._tag === "ISingleto
|
|
|
1450
1517
|
var tailNonEmpty2 = (self) => drop2(self, 1);
|
|
1451
1518
|
var reduce2 = reduce;
|
|
1452
1519
|
|
|
1453
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1520
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashMap/config.js
|
|
1454
1521
|
var SIZE = 5;
|
|
1455
1522
|
var BUCKET_SIZE = /* @__PURE__ */ Math.pow(2, SIZE);
|
|
1456
1523
|
var MASK = BUCKET_SIZE - 1;
|
|
1457
1524
|
var MAX_INDEX_NODE = BUCKET_SIZE / 2;
|
|
1458
1525
|
var MIN_ARRAY_NODE = BUCKET_SIZE / 4;
|
|
1459
1526
|
|
|
1460
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1527
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashMap/bitwise.js
|
|
1461
1528
|
function popcount(x) {
|
|
1462
1529
|
x -= x >> 1 & 1431655765;
|
|
1463
1530
|
x = (x & 858993459) + (x >> 2 & 858993459);
|
|
@@ -1476,13 +1543,13 @@ function fromBitmap(bitmap, bit) {
|
|
|
1476
1543
|
return popcount(bitmap & bit - 1);
|
|
1477
1544
|
}
|
|
1478
1545
|
|
|
1479
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1546
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/stack.js
|
|
1480
1547
|
var make5 = (value2, previous) => ({
|
|
1481
1548
|
value: value2,
|
|
1482
1549
|
previous
|
|
1483
1550
|
});
|
|
1484
1551
|
|
|
1485
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1552
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashMap/array.js
|
|
1486
1553
|
function arrayUpdate(mutate4, at, v, arr) {
|
|
1487
1554
|
let out = arr;
|
|
1488
1555
|
if (!mutate4) {
|
|
@@ -1527,7 +1594,7 @@ function arraySpliceIn(mutate4, at, v, arr) {
|
|
|
1527
1594
|
return out;
|
|
1528
1595
|
}
|
|
1529
1596
|
|
|
1530
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1597
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashMap/node.js
|
|
1531
1598
|
var EmptyNode = class _EmptyNode {
|
|
1532
1599
|
_tag = "EmptyNode";
|
|
1533
1600
|
modify(edit, _shift, f, hash2, key, size11) {
|
|
@@ -1762,7 +1829,7 @@ function mergeLeaves(edit, shift2, h1, n1, h2, n2) {
|
|
|
1762
1829
|
}
|
|
1763
1830
|
}
|
|
1764
1831
|
|
|
1765
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1832
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashMap.js
|
|
1766
1833
|
var HashMapSymbolKey = "effect/HashMap";
|
|
1767
1834
|
var HashMapTypeId = /* @__PURE__ */ Symbol.for(HashMapSymbolKey);
|
|
1768
1835
|
var HashMapProto = {
|
|
@@ -1994,7 +2061,7 @@ var reduce3 = /* @__PURE__ */ dual(3, (self, zero2, f) => {
|
|
|
1994
2061
|
return zero2;
|
|
1995
2062
|
});
|
|
1996
2063
|
|
|
1997
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2064
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashSet.js
|
|
1998
2065
|
var HashSetSymbolKey = "effect/HashSet";
|
|
1999
2066
|
var HashSetTypeId = /* @__PURE__ */ Symbol.for(HashSetSymbolKey);
|
|
2000
2067
|
var HashSetProto = {
|
|
@@ -2077,7 +2144,7 @@ var union2 = /* @__PURE__ */ dual(2, (self, that) => mutate2(empty4(), (set10) =
|
|
|
2077
2144
|
var forEach2 = /* @__PURE__ */ dual(2, (self, f) => forEach(self._keyMap, (_, k) => f(k)));
|
|
2078
2145
|
var reduce4 = /* @__PURE__ */ dual(3, (self, zero2, f) => reduce3(self._keyMap, zero2, (z, _, a) => f(z, a)));
|
|
2079
2146
|
|
|
2080
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2147
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/HashSet.js
|
|
2081
2148
|
var empty5 = empty4;
|
|
2082
2149
|
var fromIterable5 = fromIterable4;
|
|
2083
2150
|
var make7 = make6;
|
|
@@ -2089,7 +2156,7 @@ var difference3 = difference2;
|
|
|
2089
2156
|
var union3 = union2;
|
|
2090
2157
|
var reduce5 = reduce4;
|
|
2091
2158
|
|
|
2092
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2159
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/cause.js
|
|
2093
2160
|
var OP_DIE = "Die";
|
|
2094
2161
|
var OP_EMPTY = "Empty";
|
|
2095
2162
|
var OP_FAIL = "Fail";
|
|
@@ -2097,7 +2164,7 @@ var OP_INTERRUPT = "Interrupt";
|
|
|
2097
2164
|
var OP_PARALLEL = "Parallel";
|
|
2098
2165
|
var OP_SEQUENTIAL = "Sequential";
|
|
2099
2166
|
|
|
2100
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2167
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/cause.js
|
|
2101
2168
|
var CauseSymbolKey = "effect/Cause";
|
|
2102
2169
|
var CauseTypeId = /* @__PURE__ */ Symbol.for(CauseSymbolKey);
|
|
2103
2170
|
var variance = {
|
|
@@ -2652,7 +2719,7 @@ var prettyErrors = (cause2) => reduceWithContext(cause2, void 0, {
|
|
|
2652
2719
|
sequentialCase: (_, l, r) => [...l, ...r]
|
|
2653
2720
|
});
|
|
2654
2721
|
|
|
2655
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2722
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/context.js
|
|
2656
2723
|
var TagTypeId = /* @__PURE__ */ Symbol.for("effect/Context/Tag");
|
|
2657
2724
|
var ReferenceTypeId = /* @__PURE__ */ Symbol.for("effect/Context/Reference");
|
|
2658
2725
|
var STMSymbolKey = "effect/STM";
|
|
@@ -2824,8 +2891,17 @@ var merge2 = /* @__PURE__ */ dual(2, (self, that) => {
|
|
|
2824
2891
|
}
|
|
2825
2892
|
return makeContext(map22);
|
|
2826
2893
|
});
|
|
2894
|
+
var mergeAll = (...ctxs) => {
|
|
2895
|
+
const map22 = /* @__PURE__ */ new Map();
|
|
2896
|
+
for (let i = 0; i < ctxs.length; i++) {
|
|
2897
|
+
ctxs[i].unsafeMap.forEach((value2, key) => {
|
|
2898
|
+
map22.set(key, value2);
|
|
2899
|
+
});
|
|
2900
|
+
}
|
|
2901
|
+
return makeContext(map22);
|
|
2902
|
+
};
|
|
2827
2903
|
|
|
2828
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2904
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Context.js
|
|
2829
2905
|
var GenericTag = makeGenericTag;
|
|
2830
2906
|
var isContext2 = isContext;
|
|
2831
2907
|
var isTag2 = isTag;
|
|
@@ -2836,9 +2912,10 @@ var get5 = get4;
|
|
|
2836
2912
|
var unsafeGet4 = unsafeGet3;
|
|
2837
2913
|
var getOption2 = getOption;
|
|
2838
2914
|
var merge3 = merge2;
|
|
2915
|
+
var mergeAll2 = mergeAll;
|
|
2839
2916
|
var Reference2 = Reference;
|
|
2840
2917
|
|
|
2841
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2918
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Duration.js
|
|
2842
2919
|
var TypeId5 = /* @__PURE__ */ Symbol.for("effect/Duration");
|
|
2843
2920
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
2844
2921
|
var bigint24 = /* @__PURE__ */ BigInt(24);
|
|
@@ -3115,7 +3192,7 @@ var format2 = (self) => {
|
|
|
3115
3192
|
return pieces.join(" ");
|
|
3116
3193
|
};
|
|
3117
3194
|
|
|
3118
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3195
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/MutableRef.js
|
|
3119
3196
|
var TypeId6 = /* @__PURE__ */ Symbol.for("effect/MutableRef");
|
|
3120
3197
|
var MutableRefProto = {
|
|
3121
3198
|
[TypeId6]: TypeId6,
|
|
@@ -3153,7 +3230,7 @@ var set2 = /* @__PURE__ */ dual(2, (self, value2) => {
|
|
|
3153
3230
|
return self;
|
|
3154
3231
|
});
|
|
3155
3232
|
|
|
3156
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3233
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberId.js
|
|
3157
3234
|
var FiberIdSymbolKey = "effect/FiberId";
|
|
3158
3235
|
var FiberIdTypeId = /* @__PURE__ */ Symbol.for(FiberIdSymbolKey);
|
|
3159
3236
|
var OP_NONE = "None";
|
|
@@ -3283,7 +3360,7 @@ var unsafeMake = () => {
|
|
|
3283
3360
|
return new Runtime(id2, Date.now());
|
|
3284
3361
|
};
|
|
3285
3362
|
|
|
3286
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3363
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/FiberId.js
|
|
3287
3364
|
var none4 = none3;
|
|
3288
3365
|
var combine3 = combine2;
|
|
3289
3366
|
var combineAll2 = combineAll;
|
|
@@ -3291,7 +3368,7 @@ var ids2 = ids;
|
|
|
3291
3368
|
var threadName2 = threadName;
|
|
3292
3369
|
var unsafeMake2 = unsafeMake;
|
|
3293
3370
|
|
|
3294
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3371
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/HashMap.js
|
|
3295
3372
|
var empty9 = empty3;
|
|
3296
3373
|
var fromIterable6 = fromIterable3;
|
|
3297
3374
|
var isEmpty4 = isEmpty2;
|
|
@@ -3304,7 +3381,7 @@ var map10 = map6;
|
|
|
3304
3381
|
var forEach3 = forEach;
|
|
3305
3382
|
var reduce7 = reduce3;
|
|
3306
3383
|
|
|
3307
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3384
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/List.js
|
|
3308
3385
|
var TypeId7 = /* @__PURE__ */ Symbol.for("effect/List");
|
|
3309
3386
|
var toArray2 = (self) => fromIterable(self);
|
|
3310
3387
|
var getEquivalence3 = (isEquivalent) => mapInput(getEquivalence(isEquivalent), toArray2);
|
|
@@ -3464,7 +3541,7 @@ var Structural = /* @__PURE__ */ function() {
|
|
|
3464
3541
|
}();
|
|
3465
3542
|
var struct = (as6) => Object.assign(Object.create(StructuralPrototype), as6);
|
|
3466
3543
|
|
|
3467
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3544
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/differ/contextPatch.js
|
|
3468
3545
|
var ContextPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferContextPatch");
|
|
3469
3546
|
function variance2(a) {
|
|
3470
3547
|
return a;
|
|
@@ -3590,7 +3667,7 @@ var patch = /* @__PURE__ */ dual(2, (self, context5) => {
|
|
|
3590
3667
|
return makeContext(map22);
|
|
3591
3668
|
});
|
|
3592
3669
|
|
|
3593
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3670
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/differ/hashSetPatch.js
|
|
3594
3671
|
var HashSetPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferHashSetPatch");
|
|
3595
3672
|
function variance3(a) {
|
|
3596
3673
|
return a;
|
|
@@ -3675,7 +3752,7 @@ var patch2 = /* @__PURE__ */ dual(2, (self, oldValue) => {
|
|
|
3675
3752
|
return set10;
|
|
3676
3753
|
});
|
|
3677
3754
|
|
|
3678
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3755
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/differ/readonlyArrayPatch.js
|
|
3679
3756
|
var ReadonlyArrayPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferReadonlyArrayPatch");
|
|
3680
3757
|
function variance4(a) {
|
|
3681
3758
|
return a;
|
|
@@ -3789,7 +3866,7 @@ var patch3 = /* @__PURE__ */ dual(3, (self, oldValue, differ3) => {
|
|
|
3789
3866
|
return readonlyArray2;
|
|
3790
3867
|
});
|
|
3791
3868
|
|
|
3792
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3869
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/differ.js
|
|
3793
3870
|
var DifferTypeId = /* @__PURE__ */ Symbol.for("effect/Differ");
|
|
3794
3871
|
var DifferProto = {
|
|
3795
3872
|
[DifferTypeId]: {
|
|
@@ -3851,7 +3928,7 @@ var updateWith = (f) => make14({
|
|
|
3851
3928
|
patch: (patch11, oldValue) => f(oldValue, patch11(oldValue))
|
|
3852
3929
|
});
|
|
3853
3930
|
|
|
3854
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3931
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/runtimeFlagsPatch.js
|
|
3855
3932
|
var BIT_MASK = 255;
|
|
3856
3933
|
var BIT_SHIFT = 8;
|
|
3857
3934
|
var active = (patch11) => patch11 & BIT_MASK;
|
|
@@ -3864,7 +3941,7 @@ var exclude = /* @__PURE__ */ dual(2, (self, flag) => make15(active(self) & ~fla
|
|
|
3864
3941
|
var andThen = /* @__PURE__ */ dual(2, (self, that) => self | that);
|
|
3865
3942
|
var invert = (n) => ~n >>> 0 & BIT_MASK;
|
|
3866
3943
|
|
|
3867
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3944
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/runtimeFlags.js
|
|
3868
3945
|
var None2 = 0;
|
|
3869
3946
|
var Interruption = 1 << 0;
|
|
3870
3947
|
var OpSupervision = 1 << 1;
|
|
@@ -3890,12 +3967,12 @@ var differ = /* @__PURE__ */ make14({
|
|
|
3890
3967
|
patch: (_patch, oldValue) => patch4(oldValue, _patch)
|
|
3891
3968
|
});
|
|
3892
3969
|
|
|
3893
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3970
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/RuntimeFlagsPatch.js
|
|
3894
3971
|
var enable3 = enable;
|
|
3895
3972
|
var disable3 = disable;
|
|
3896
3973
|
var exclude2 = exclude;
|
|
3897
3974
|
|
|
3898
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3975
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/blockedRequests.js
|
|
3899
3976
|
var par = (self, that) => ({
|
|
3900
3977
|
_tag: "Par",
|
|
3901
3978
|
left: self,
|
|
@@ -4038,11 +4115,11 @@ var sequentialCollectionCombine = (self, that) => new SequentialImpl(reduce7(tha
|
|
|
4038
4115
|
var sequentialCollectionKeys = (self) => Array.from(keys3(self.map));
|
|
4039
4116
|
var sequentialCollectionToChunk = (self) => Array.from(self.map);
|
|
4040
4117
|
|
|
4041
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
4118
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/deferred.js
|
|
4042
4119
|
var OP_STATE_PENDING = "Pending";
|
|
4043
4120
|
var OP_STATE_DONE = "Done";
|
|
4044
4121
|
|
|
4045
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
4122
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/deferred.js
|
|
4046
4123
|
var DeferredSymbolKey = "effect/Deferred";
|
|
4047
4124
|
var DeferredTypeId = /* @__PURE__ */ Symbol.for(DeferredSymbolKey);
|
|
4048
4125
|
var deferredVariance = {
|
|
@@ -4064,7 +4141,7 @@ var done = (effect3) => {
|
|
|
4064
4141
|
};
|
|
4065
4142
|
};
|
|
4066
4143
|
|
|
4067
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
4144
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/singleShotGen.js
|
|
4068
4145
|
var SingleShotGen2 = class _SingleShotGen {
|
|
4069
4146
|
self;
|
|
4070
4147
|
called = false;
|
|
@@ -4094,7 +4171,7 @@ var SingleShotGen2 = class _SingleShotGen {
|
|
|
4094
4171
|
}
|
|
4095
4172
|
};
|
|
4096
4173
|
|
|
4097
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
4174
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/core.js
|
|
4098
4175
|
var blocked = (blockedRequests, _continue3) => {
|
|
4099
4176
|
const effect3 = new EffectPrimitive("Blocked");
|
|
4100
4177
|
effect3.effect_instruction_i0 = blockedRequests;
|
|
@@ -4574,6 +4651,18 @@ var gen = function() {
|
|
|
4574
4651
|
const f = arguments.length === 1 ? arguments[0] : arguments[1].bind(arguments[0]);
|
|
4575
4652
|
return fromIterator(() => f(pipe));
|
|
4576
4653
|
};
|
|
4654
|
+
var fnUntraced = (body, ...pipeables) => Object.defineProperty(pipeables.length === 0 ? function(...args2) {
|
|
4655
|
+
return fromIterator(() => body.apply(this, args2));
|
|
4656
|
+
} : function(...args2) {
|
|
4657
|
+
let effect3 = fromIterator(() => body.apply(this, args2));
|
|
4658
|
+
for (const x of pipeables) {
|
|
4659
|
+
effect3 = x(effect3, ...args2);
|
|
4660
|
+
}
|
|
4661
|
+
return effect3;
|
|
4662
|
+
}, "length", {
|
|
4663
|
+
value: body.length,
|
|
4664
|
+
configurable: true
|
|
4665
|
+
});
|
|
4577
4666
|
var withRuntimeFlags = /* @__PURE__ */ dual(2, (self, update5) => {
|
|
4578
4667
|
const effect3 = new EffectPrimitive(OP_UPDATE_RUNTIME_FLAGS);
|
|
4579
4668
|
effect3.effect_instruction_i0 = update5;
|
|
@@ -4844,14 +4933,6 @@ var UnknownException = /* @__PURE__ */ function() {
|
|
|
4844
4933
|
var exitIsExit = (u) => isEffect(u) && "_tag" in u && (u._tag === "Success" || u._tag === "Failure");
|
|
4845
4934
|
var exitIsFailure = (self) => self._tag === "Failure";
|
|
4846
4935
|
var exitIsSuccess = (self) => self._tag === "Success";
|
|
4847
|
-
var exitIsInterrupted = (self) => {
|
|
4848
|
-
switch (self._tag) {
|
|
4849
|
-
case OP_FAILURE:
|
|
4850
|
-
return isInterrupted(self.effect_instruction_i0);
|
|
4851
|
-
case OP_SUCCESS:
|
|
4852
|
-
return false;
|
|
4853
|
-
}
|
|
4854
|
-
};
|
|
4855
4936
|
var exitAs = /* @__PURE__ */ dual(2, (self, value2) => {
|
|
4856
4937
|
switch (self._tag) {
|
|
4857
4938
|
case OP_FAILURE: {
|
|
@@ -5049,7 +5130,7 @@ var NoopSpanProto = {
|
|
|
5049
5130
|
};
|
|
5050
5131
|
var noopSpan = (options3) => Object.assign(Object.create(NoopSpanProto), options3);
|
|
5051
5132
|
|
|
5052
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5133
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/clock.js
|
|
5053
5134
|
var ClockSymbolKey = "effect/Clock";
|
|
5054
5135
|
var ClockTypeId = /* @__PURE__ */ Symbol.for(ClockSymbolKey);
|
|
5055
5136
|
var clockTag = /* @__PURE__ */ GenericTag("effect/Clock");
|
|
@@ -5114,7 +5195,7 @@ var ClockImpl = class {
|
|
|
5114
5195
|
};
|
|
5115
5196
|
var make18 = () => new ClockImpl();
|
|
5116
5197
|
|
|
5117
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5198
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Number.js
|
|
5118
5199
|
var Order = number3;
|
|
5119
5200
|
var parse = (s) => {
|
|
5120
5201
|
if (s === "NaN") {
|
|
@@ -5133,10 +5214,10 @@ var parse = (s) => {
|
|
|
5133
5214
|
return Number.isNaN(n) ? none : some(n);
|
|
5134
5215
|
};
|
|
5135
5216
|
|
|
5136
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5217
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/RegExp.js
|
|
5137
5218
|
var escape = (string2) => string2.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
5138
5219
|
|
|
5139
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5220
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/configError.js
|
|
5140
5221
|
var OP_AND = "And";
|
|
5141
5222
|
var OP_OR = "Or";
|
|
5142
5223
|
var OP_INVALID_DATA = "InvalidData";
|
|
@@ -5144,7 +5225,7 @@ var OP_MISSING_DATA = "MissingData";
|
|
|
5144
5225
|
var OP_SOURCE_UNAVAILABLE = "SourceUnavailable";
|
|
5145
5226
|
var OP_UNSUPPORTED = "Unsupported";
|
|
5146
5227
|
|
|
5147
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5228
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/configError.js
|
|
5148
5229
|
var ConfigErrorSymbolKey = "effect/ConfigError";
|
|
5149
5230
|
var ConfigErrorTypeId = /* @__PURE__ */ Symbol.for(ConfigErrorSymbolKey);
|
|
5150
5231
|
var proto2 = {
|
|
@@ -5277,7 +5358,7 @@ var prefixed = /* @__PURE__ */ dual(2, (self, prefix) => {
|
|
|
5277
5358
|
}
|
|
5278
5359
|
});
|
|
5279
5360
|
|
|
5280
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5361
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/configProvider/pathPatch.js
|
|
5281
5362
|
var empty15 = {
|
|
5282
5363
|
_tag: "Empty"
|
|
5283
5364
|
};
|
|
@@ -5320,7 +5401,7 @@ var patch5 = /* @__PURE__ */ dual(2, (path, patch11) => {
|
|
|
5320
5401
|
return right2(output);
|
|
5321
5402
|
});
|
|
5322
5403
|
|
|
5323
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5404
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/config.js
|
|
5324
5405
|
var OP_CONSTANT = "Constant";
|
|
5325
5406
|
var OP_FAIL2 = "Fail";
|
|
5326
5407
|
var OP_FALLBACK = "Fallback";
|
|
@@ -5333,7 +5414,7 @@ var OP_SEQUENCE = "Sequence";
|
|
|
5333
5414
|
var OP_HASHMAP = "HashMap";
|
|
5334
5415
|
var OP_ZIP_WITH = "ZipWith";
|
|
5335
5416
|
|
|
5336
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5417
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/configProvider.js
|
|
5337
5418
|
var concat = (l, r) => [...l, ...r];
|
|
5338
5419
|
var ConfigProviderSymbolKey = "effect/ConfigProvider";
|
|
5339
5420
|
var ConfigProviderTypeId = /* @__PURE__ */ Symbol.for(ConfigProviderSymbolKey);
|
|
@@ -5537,7 +5618,7 @@ var parseInteger = (str) => {
|
|
|
5537
5618
|
return Number.isNaN(parsedIndex) ? none2() : some2(parsedIndex);
|
|
5538
5619
|
};
|
|
5539
5620
|
|
|
5540
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5621
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/defaultServices/console.js
|
|
5541
5622
|
var TypeId8 = /* @__PURE__ */ Symbol.for("effect/Console");
|
|
5542
5623
|
var consoleTag = /* @__PURE__ */ GenericTag("effect/Console");
|
|
5543
5624
|
var defaultConsole = {
|
|
@@ -5625,7 +5706,7 @@ var defaultConsole = {
|
|
|
5625
5706
|
unsafe: console
|
|
5626
5707
|
};
|
|
5627
5708
|
|
|
5628
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5709
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/random.js
|
|
5629
5710
|
var RandomSymbolKey = "effect/Random";
|
|
5630
5711
|
var RandomTypeId = /* @__PURE__ */ Symbol.for(RandomSymbolKey);
|
|
5631
5712
|
var randomTag = /* @__PURE__ */ GenericTag("effect/Random");
|
|
@@ -5673,7 +5754,7 @@ var swap = (buffer2, index1, index2) => {
|
|
|
5673
5754
|
};
|
|
5674
5755
|
var make21 = (seed) => new RandomImpl(hash(seed));
|
|
5675
5756
|
|
|
5676
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5757
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/tracer.js
|
|
5677
5758
|
var TracerTypeId = /* @__PURE__ */ Symbol.for("effect/Tracer");
|
|
5678
5759
|
var make22 = (options3) => ({
|
|
5679
5760
|
[TracerTypeId]: TracerTypeId,
|
|
@@ -5774,7 +5855,7 @@ var DisablePropagation = /* @__PURE__ */ Reference2()("effect/Tracer/DisableProp
|
|
|
5774
5855
|
defaultValue: constFalse
|
|
5775
5856
|
});
|
|
5776
5857
|
|
|
5777
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5858
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/defaultServices.js
|
|
5778
5859
|
var liveServices = /* @__PURE__ */ pipe(/* @__PURE__ */ empty8(), /* @__PURE__ */ add4(clockTag, /* @__PURE__ */ make18()), /* @__PURE__ */ add4(consoleTag, defaultConsole), /* @__PURE__ */ add4(randomTag, /* @__PURE__ */ make21(/* @__PURE__ */ Math.random())), /* @__PURE__ */ add4(configProviderTag, /* @__PURE__ */ fromEnv()), /* @__PURE__ */ add4(tracerTag, nativeTracer));
|
|
5779
5860
|
var currentServices = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/DefaultServices/currentServices"), () => fiberRefUnsafeMakeContext(liveServices));
|
|
5780
5861
|
var sleep = (duration) => {
|
|
@@ -5785,20 +5866,13 @@ var defaultServicesWith = (f) => withFiberRuntime((fiber) => f(fiber.currentDefa
|
|
|
5785
5866
|
var clockWith = (f) => defaultServicesWith((services) => f(services.unsafeMap.get(clockTag.key)));
|
|
5786
5867
|
var currentTimeMillis = /* @__PURE__ */ clockWith((clock3) => clock3.currentTimeMillis);
|
|
5787
5868
|
|
|
5788
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5789
|
-
var make23 = deferredMake;
|
|
5790
|
-
var _await = deferredAwait;
|
|
5791
|
-
var failCause2 = deferredFailCause;
|
|
5792
|
-
var isDone = deferredIsDone;
|
|
5793
|
-
var succeed2 = deferredSucceed;
|
|
5794
|
-
|
|
5795
|
-
// ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Effectable.js
|
|
5869
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Effectable.js
|
|
5796
5870
|
var EffectPrototype2 = EffectPrototype;
|
|
5797
5871
|
var Base2 = Base;
|
|
5798
5872
|
var Class2 = class extends Base2 {
|
|
5799
5873
|
};
|
|
5800
5874
|
|
|
5801
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5875
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/executionStrategy.js
|
|
5802
5876
|
var OP_SEQUENTIAL2 = "Sequential";
|
|
5803
5877
|
var OP_PARALLEL2 = "Parallel";
|
|
5804
5878
|
var OP_PARALLEL_N = "ParallelN";
|
|
@@ -5815,12 +5889,12 @@ var parallelN = (parallelism) => ({
|
|
|
5815
5889
|
var isSequential = (self) => self._tag === OP_SEQUENTIAL2;
|
|
5816
5890
|
var isParallel = (self) => self._tag === OP_PARALLEL2;
|
|
5817
5891
|
|
|
5818
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5892
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/ExecutionStrategy.js
|
|
5819
5893
|
var sequential3 = sequential2;
|
|
5820
5894
|
var parallel3 = parallel2;
|
|
5821
5895
|
var parallelN2 = parallelN;
|
|
5822
5896
|
|
|
5823
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5897
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberRefs.js
|
|
5824
5898
|
function unsafeMake3(fiberRefLocals) {
|
|
5825
5899
|
return new FiberRefsImpl(fiberRefLocals);
|
|
5826
5900
|
}
|
|
@@ -5987,13 +6061,13 @@ var updateManyAs = /* @__PURE__ */ dual(2, (self, {
|
|
|
5987
6061
|
return new FiberRefsImpl(locals);
|
|
5988
6062
|
});
|
|
5989
6063
|
|
|
5990
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6064
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/FiberRefs.js
|
|
5991
6065
|
var get9 = get8;
|
|
5992
6066
|
var getOrDefault2 = getOrDefault;
|
|
5993
6067
|
var updateManyAs2 = updateManyAs;
|
|
5994
6068
|
var empty17 = empty16;
|
|
5995
6069
|
|
|
5996
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6070
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberRefs/patch.js
|
|
5997
6071
|
var OP_EMPTY2 = "Empty";
|
|
5998
6072
|
var OP_ADD = "Add";
|
|
5999
6073
|
var OP_REMOVE = "Remove";
|
|
@@ -6083,11 +6157,11 @@ var patch6 = /* @__PURE__ */ dual(3, (self, fiberId2, oldValue) => {
|
|
|
6083
6157
|
return fiberRefs3;
|
|
6084
6158
|
});
|
|
6085
6159
|
|
|
6086
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6160
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/FiberRefsPatch.js
|
|
6087
6161
|
var diff6 = diff5;
|
|
6088
6162
|
var patch7 = patch6;
|
|
6089
6163
|
|
|
6090
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6164
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberStatus.js
|
|
6091
6165
|
var FiberStatusSymbolKey = "effect/FiberStatus";
|
|
6092
6166
|
var FiberStatusTypeId = /* @__PURE__ */ Symbol.for(FiberStatusSymbolKey);
|
|
6093
6167
|
var OP_DONE = "Done";
|
|
@@ -6138,15 +6212,15 @@ var done2 = /* @__PURE__ */ new Done();
|
|
|
6138
6212
|
var running = (runtimeFlags2) => new Running(runtimeFlags2);
|
|
6139
6213
|
var suspended = (runtimeFlags2, blockingOn) => new Suspended(runtimeFlags2, blockingOn);
|
|
6140
6214
|
var isFiberStatus = (u) => hasProperty(u, FiberStatusTypeId);
|
|
6141
|
-
var
|
|
6215
|
+
var isDone = (self) => self._tag === OP_DONE;
|
|
6142
6216
|
|
|
6143
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6217
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/FiberStatus.js
|
|
6144
6218
|
var done3 = done2;
|
|
6145
6219
|
var running2 = running;
|
|
6146
6220
|
var suspended2 = suspended;
|
|
6147
|
-
var
|
|
6221
|
+
var isDone2 = isDone;
|
|
6148
6222
|
|
|
6149
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6223
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/LogLevel.js
|
|
6150
6224
|
var All = logLevelAll;
|
|
6151
6225
|
var Fatal = logLevelFatal;
|
|
6152
6226
|
var Error2 = logLevelError;
|
|
@@ -6178,7 +6252,7 @@ var fromLiteral = (literal) => {
|
|
|
6178
6252
|
}
|
|
6179
6253
|
};
|
|
6180
6254
|
|
|
6181
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6255
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Micro.js
|
|
6182
6256
|
var TypeId9 = /* @__PURE__ */ Symbol.for("effect/Micro");
|
|
6183
6257
|
var MicroExitTypeId = /* @__PURE__ */ Symbol.for("effect/Micro/MicroExit");
|
|
6184
6258
|
var MicroCauseTypeId = /* @__PURE__ */ Symbol.for("effect/Micro/MicroCause");
|
|
@@ -6451,7 +6525,7 @@ var makeExit = (options3) => {
|
|
|
6451
6525
|
return self;
|
|
6452
6526
|
};
|
|
6453
6527
|
};
|
|
6454
|
-
var
|
|
6528
|
+
var succeed2 = /* @__PURE__ */ makeExit({
|
|
6455
6529
|
op: "Success",
|
|
6456
6530
|
prop: "value",
|
|
6457
6531
|
eval(fiber) {
|
|
@@ -6459,7 +6533,7 @@ var succeed3 = /* @__PURE__ */ makeExit({
|
|
|
6459
6533
|
return cont ? cont[successCont](this[args], fiber) : fiber.yieldWith(this);
|
|
6460
6534
|
}
|
|
6461
6535
|
});
|
|
6462
|
-
var
|
|
6536
|
+
var failCause2 = /* @__PURE__ */ makeExit({
|
|
6463
6537
|
op: "Failure",
|
|
6464
6538
|
prop: "cause",
|
|
6465
6539
|
eval(fiber) {
|
|
@@ -6484,7 +6558,7 @@ var yieldNowWith = /* @__PURE__ */ makePrimitive({
|
|
|
6484
6558
|
}
|
|
6485
6559
|
});
|
|
6486
6560
|
var yieldNow2 = /* @__PURE__ */ yieldNowWith(0);
|
|
6487
|
-
var void_2 = /* @__PURE__ */
|
|
6561
|
+
var void_2 = /* @__PURE__ */ succeed2(void 0);
|
|
6488
6562
|
var withMicroFiber = /* @__PURE__ */ makePrimitive({
|
|
6489
6563
|
op: "WithMicroFiber",
|
|
6490
6564
|
eval(fiber) {
|
|
@@ -6505,8 +6579,8 @@ var OnSuccessProto = /* @__PURE__ */ makePrimitiveProto({
|
|
|
6505
6579
|
}
|
|
6506
6580
|
});
|
|
6507
6581
|
var isMicroExit = (u) => hasProperty(u, MicroExitTypeId);
|
|
6508
|
-
var exitSucceed2 =
|
|
6509
|
-
var exitFailCause2 =
|
|
6582
|
+
var exitSucceed2 = succeed2;
|
|
6583
|
+
var exitFailCause2 = failCause2;
|
|
6510
6584
|
var exitInterrupt2 = /* @__PURE__ */ exitFailCause2(/* @__PURE__ */ causeInterrupt());
|
|
6511
6585
|
var exitDie2 = (defect) => exitFailCause2(causeDie(defect));
|
|
6512
6586
|
var exitVoid2 = /* @__PURE__ */ exitSucceed2(void 0);
|
|
@@ -6588,8 +6662,8 @@ var OnSuccessAndFailureProto = /* @__PURE__ */ makePrimitiveProto({
|
|
|
6588
6662
|
}
|
|
6589
6663
|
});
|
|
6590
6664
|
var onExit2 = /* @__PURE__ */ dual(2, (self, f) => uninterruptibleMask2((restore) => matchCauseEffect2(restore(self), {
|
|
6591
|
-
onFailure: (cause2) => flatMap8(f(exitFailCause2(cause2)), () =>
|
|
6592
|
-
onSuccess: (a) => flatMap8(f(exitSucceed2(a)), () =>
|
|
6665
|
+
onFailure: (cause2) => flatMap8(f(exitFailCause2(cause2)), () => failCause2(cause2)),
|
|
6666
|
+
onSuccess: (a) => flatMap8(f(exitSucceed2(a)), () => succeed2(a))
|
|
6593
6667
|
})));
|
|
6594
6668
|
var setInterruptible = /* @__PURE__ */ makePrimitive({
|
|
6595
6669
|
op: "SetInterruptible",
|
|
@@ -6619,10 +6693,10 @@ var runFork = (effect3, options3) => {
|
|
|
6619
6693
|
return fiber;
|
|
6620
6694
|
};
|
|
6621
6695
|
|
|
6622
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6696
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Readable.js
|
|
6623
6697
|
var TypeId10 = /* @__PURE__ */ Symbol.for("effect/Readable");
|
|
6624
6698
|
|
|
6625
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6699
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/ref.js
|
|
6626
6700
|
var RefTypeId = /* @__PURE__ */ Symbol.for("effect/Ref");
|
|
6627
6701
|
var refVariance = {
|
|
6628
6702
|
/* c8 ignore next */
|
|
@@ -6653,21 +6727,21 @@ var RefImpl = class extends Class2 {
|
|
|
6653
6727
|
}
|
|
6654
6728
|
};
|
|
6655
6729
|
var unsafeMake4 = (value2) => new RefImpl(make11(value2));
|
|
6656
|
-
var
|
|
6730
|
+
var make23 = (value2) => sync(() => unsafeMake4(value2));
|
|
6657
6731
|
var get10 = (self) => self.get;
|
|
6658
6732
|
var set4 = /* @__PURE__ */ dual(2, (self, value2) => self.modify(() => [void 0, value2]));
|
|
6659
6733
|
var getAndSet = /* @__PURE__ */ dual(2, (self, value2) => self.modify((a) => [a, value2]));
|
|
6660
6734
|
var modify3 = /* @__PURE__ */ dual(2, (self, f) => self.modify(f));
|
|
6661
6735
|
var update2 = /* @__PURE__ */ dual(2, (self, f) => self.modify((a) => [void 0, f(a)]));
|
|
6662
6736
|
|
|
6663
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6664
|
-
var
|
|
6737
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Ref.js
|
|
6738
|
+
var make24 = make23;
|
|
6665
6739
|
var get11 = get10;
|
|
6666
6740
|
var getAndSet2 = getAndSet;
|
|
6667
6741
|
var modify4 = modify3;
|
|
6668
6742
|
var update3 = update2;
|
|
6669
6743
|
|
|
6670
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6744
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Scheduler.js
|
|
6671
6745
|
var PriorityBuckets = class {
|
|
6672
6746
|
/**
|
|
6673
6747
|
* @since 2.0.0
|
|
@@ -6797,10 +6871,10 @@ var SyncScheduler = class {
|
|
|
6797
6871
|
};
|
|
6798
6872
|
var currentScheduler = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentScheduler"), () => fiberRefUnsafeMake(defaultScheduler));
|
|
6799
6873
|
|
|
6800
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6874
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/completedRequestMap.js
|
|
6801
6875
|
var currentRequestMap = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentRequestMap"), () => fiberRefUnsafeMake(/* @__PURE__ */ new Map()));
|
|
6802
6876
|
|
|
6803
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6877
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/concurrency.js
|
|
6804
6878
|
var match7 = (concurrency, sequential4, unbounded4, bounded4) => {
|
|
6805
6879
|
switch (concurrency) {
|
|
6806
6880
|
case void 0:
|
|
@@ -6814,13 +6888,13 @@ var match7 = (concurrency, sequential4, unbounded4, bounded4) => {
|
|
|
6814
6888
|
}
|
|
6815
6889
|
};
|
|
6816
6890
|
|
|
6817
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6891
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Clock.js
|
|
6818
6892
|
var sleep2 = sleep;
|
|
6819
6893
|
var currentTimeMillis2 = currentTimeMillis;
|
|
6820
6894
|
var Clock = clockTag;
|
|
6821
6895
|
|
|
6822
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6823
|
-
var
|
|
6896
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/logSpan.js
|
|
6897
|
+
var make25 = (label, startTime) => ({
|
|
6824
6898
|
label,
|
|
6825
6899
|
startTime
|
|
6826
6900
|
});
|
|
@@ -6830,10 +6904,10 @@ var render = (now) => (self) => {
|
|
|
6830
6904
|
return `${label}=${now - self.startTime}ms`;
|
|
6831
6905
|
};
|
|
6832
6906
|
|
|
6833
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6834
|
-
var
|
|
6907
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/LogSpan.js
|
|
6908
|
+
var make26 = make25;
|
|
6835
6909
|
|
|
6836
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6910
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/label.js
|
|
6837
6911
|
var MetricLabelSymbolKey = "effect/MetricLabel";
|
|
6838
6912
|
var MetricLabelTypeId = /* @__PURE__ */ Symbol.for(MetricLabelSymbolKey);
|
|
6839
6913
|
var MetricLabelImpl = class {
|
|
@@ -6856,12 +6930,12 @@ var MetricLabelImpl = class {
|
|
|
6856
6930
|
return pipeArguments(this, arguments);
|
|
6857
6931
|
}
|
|
6858
6932
|
};
|
|
6859
|
-
var
|
|
6933
|
+
var make27 = (key, value2) => {
|
|
6860
6934
|
return new MetricLabelImpl(key, value2);
|
|
6861
6935
|
};
|
|
6862
6936
|
var isMetricLabel = (u) => hasProperty(u, MetricLabelTypeId);
|
|
6863
6937
|
|
|
6864
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6938
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/core-effect.js
|
|
6865
6939
|
var asSome = (self) => map11(self, some2);
|
|
6866
6940
|
var try_ = (arg) => {
|
|
6867
6941
|
let evaluate2;
|
|
@@ -6915,27 +6989,27 @@ var logWithLevel = (level) => (...message) => {
|
|
|
6915
6989
|
});
|
|
6916
6990
|
};
|
|
6917
6991
|
var logInfo = /* @__PURE__ */ logWithLevel(Info);
|
|
6918
|
-
var withLogSpan = /* @__PURE__ */ dual(2, (effect3, label) => flatMap7(currentTimeMillis2, (now) => fiberRefLocallyWith(effect3, currentLogSpan, prepend3(
|
|
6992
|
+
var withLogSpan = /* @__PURE__ */ dual(2, (effect3, label) => flatMap7(currentTimeMillis2, (now) => fiberRefLocallyWith(effect3, currentLogSpan, prepend3(make26(label, now)))));
|
|
6919
6993
|
var mapErrorCause = /* @__PURE__ */ dual(2, (self, f) => matchCauseEffect(self, {
|
|
6920
6994
|
onFailure: (c) => failCauseSync(() => f(c)),
|
|
6921
6995
|
onSuccess: succeed
|
|
6922
6996
|
}));
|
|
6923
6997
|
var memoize = (self) => pipe(deferredMake(), flatMap7((deferred) => pipe(diffFiberRefsAndRuntimeFlags(self), intoDeferred(deferred), once, map11((complete2) => zipRight(complete2, pipe(deferredAwait(deferred), flatMap7(([patch11, a]) => as(zip2(patchFiberRefs(patch11[0]), updateRuntimeFlags(patch11[1])), a))))))));
|
|
6924
6998
|
var negate = (self) => map11(self, (b) => !b);
|
|
6925
|
-
var once = (self) => map11(
|
|
6999
|
+
var once = (self) => map11(make24(true), (ref) => asVoid(whenEffect(self, getAndSet2(ref, false))));
|
|
6926
7000
|
var patchFiberRefs = (patch11) => updateFiberRefs((fiberId2, fiberRefs3) => pipe(patch11, patch6(fiberId2, fiberRefs3)));
|
|
6927
7001
|
var promise = (evaluate2) => evaluate2.length >= 1 ? async_((resolve, signal) => {
|
|
6928
7002
|
try {
|
|
6929
|
-
evaluate2(signal).then((a) => resolve(
|
|
7003
|
+
evaluate2(signal).then((a) => resolve(succeed(a)), (e) => resolve(die2(e)));
|
|
6930
7004
|
} catch (e) {
|
|
6931
|
-
resolve(
|
|
7005
|
+
resolve(die2(e));
|
|
6932
7006
|
}
|
|
6933
7007
|
}) : async_((resolve) => {
|
|
6934
7008
|
try {
|
|
6935
7009
|
;
|
|
6936
|
-
evaluate2().then((a) => resolve(
|
|
7010
|
+
evaluate2().then((a) => resolve(succeed(a)), (e) => resolve(die2(e)));
|
|
6937
7011
|
} catch (e) {
|
|
6938
|
-
resolve(
|
|
7012
|
+
resolve(die2(e));
|
|
6939
7013
|
}
|
|
6940
7014
|
});
|
|
6941
7015
|
var provideService = /* @__PURE__ */ dual(3, (self, tag2, service2) => contextWithEffect((env) => provideContext(self, add4(env, tag2, service2))));
|
|
@@ -6960,7 +7034,7 @@ var tryPromise = (arg) => {
|
|
|
6960
7034
|
if (evaluate2.length >= 1) {
|
|
6961
7035
|
return async_((resolve, signal) => {
|
|
6962
7036
|
try {
|
|
6963
|
-
evaluate2(signal).then((a) => resolve(
|
|
7037
|
+
evaluate2(signal).then((a) => resolve(succeed(a)), (e) => resolve(fail13(e)));
|
|
6964
7038
|
} catch (e) {
|
|
6965
7039
|
resolve(fail13(e));
|
|
6966
7040
|
}
|
|
@@ -6968,7 +7042,7 @@ var tryPromise = (arg) => {
|
|
|
6968
7042
|
}
|
|
6969
7043
|
return async_((resolve) => {
|
|
6970
7044
|
try {
|
|
6971
|
-
evaluate2().then((a) => resolve(
|
|
7045
|
+
evaluate2().then((a) => resolve(succeed(a)), (e) => resolve(fail13(e)));
|
|
6972
7046
|
} catch (e) {
|
|
6973
7047
|
resolve(fail13(e));
|
|
6974
7048
|
}
|
|
@@ -7010,7 +7084,7 @@ var unsafeMakeSpan = (fiber, name, options3) => {
|
|
|
7010
7084
|
const annotationsFromEnv = get9(fiberRefs3, currentTracerSpanAnnotations);
|
|
7011
7085
|
const linksFromEnv = get9(fiberRefs3, currentTracerSpanLinks);
|
|
7012
7086
|
const links = linksFromEnv._tag === "Some" ? options3.links !== void 0 ? [...toReadonlyArray(linksFromEnv.value), ...options3.links ?? []] : toReadonlyArray(linksFromEnv.value) : options3.links ?? empty();
|
|
7013
|
-
span2 = tracer2.span(name, parent, options3.context ?? empty8(), links, timingEnabled ? clock3.unsafeCurrentTimeNanos() : bigint02, options3.kind ?? "internal");
|
|
7087
|
+
span2 = tracer2.span(name, parent, options3.context ?? empty8(), links, timingEnabled ? clock3.unsafeCurrentTimeNanos() : bigint02, options3.kind ?? "internal", options3);
|
|
7014
7088
|
if (annotationsFromEnv._tag === "Some") {
|
|
7015
7089
|
forEach3(annotationsFromEnv.value, (value2, key) => span2.attribute(key, value2));
|
|
7016
7090
|
}
|
|
@@ -7044,22 +7118,21 @@ var useSpan = (name, ...args2) => {
|
|
|
7044
7118
|
};
|
|
7045
7119
|
var withParentSpan = /* @__PURE__ */ dual(2, (self, span2) => provideService(self, spanTag, span2));
|
|
7046
7120
|
|
|
7047
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7121
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Exit.js
|
|
7048
7122
|
var isFailure = exitIsFailure;
|
|
7049
7123
|
var isSuccess = exitIsSuccess;
|
|
7050
|
-
var isInterrupted2 = exitIsInterrupted;
|
|
7051
7124
|
var all2 = exitCollectAll;
|
|
7052
7125
|
var die3 = exitDie;
|
|
7053
7126
|
var fail3 = exitFail;
|
|
7054
|
-
var
|
|
7127
|
+
var failCause3 = exitFailCause;
|
|
7055
7128
|
var map13 = exitMap;
|
|
7056
7129
|
var match9 = exitMatch;
|
|
7057
|
-
var
|
|
7130
|
+
var succeed3 = exitSucceed;
|
|
7058
7131
|
var void_3 = exitVoid;
|
|
7059
7132
|
var zip3 = exitZip;
|
|
7060
7133
|
var zipRight2 = exitZipRight;
|
|
7061
7134
|
|
|
7062
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7135
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberMessage.js
|
|
7063
7136
|
var OP_INTERRUPT_SIGNAL = "InterruptSignal";
|
|
7064
7137
|
var OP_STATEFUL = "Stateful";
|
|
7065
7138
|
var OP_RESUME = "Resume";
|
|
@@ -7080,7 +7153,7 @@ var yieldNow3 = () => ({
|
|
|
7080
7153
|
_tag: OP_YIELD_NOW
|
|
7081
7154
|
});
|
|
7082
7155
|
|
|
7083
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7156
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberScope.js
|
|
7084
7157
|
var FiberScopeSymbolKey = "effect/FiberScope";
|
|
7085
7158
|
var FiberScopeTypeId = /* @__PURE__ */ Symbol.for(FiberScopeSymbolKey);
|
|
7086
7159
|
var Global = class {
|
|
@@ -7116,7 +7189,7 @@ var unsafeMake5 = (fiber) => {
|
|
|
7116
7189
|
};
|
|
7117
7190
|
var globalScope = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberScope/Global"), () => new Global());
|
|
7118
7191
|
|
|
7119
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7192
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiber.js
|
|
7120
7193
|
var FiberSymbolKey = "effect/Fiber";
|
|
7121
7194
|
var FiberTypeId = /* @__PURE__ */ Symbol.for(FiberSymbolKey);
|
|
7122
7195
|
var fiberVariance2 = {
|
|
@@ -7127,14 +7200,14 @@ var fiberVariance2 = {
|
|
|
7127
7200
|
};
|
|
7128
7201
|
var RuntimeFiberSymbolKey = "effect/Fiber";
|
|
7129
7202
|
var RuntimeFiberTypeId = /* @__PURE__ */ Symbol.for(RuntimeFiberSymbolKey);
|
|
7130
|
-
var
|
|
7203
|
+
var _await = (self) => self.await;
|
|
7131
7204
|
var inheritAll = (self) => self.inheritAll;
|
|
7132
7205
|
var join2 = (self) => zipLeft(flatten3(self.await), self.inheritAll);
|
|
7133
7206
|
({
|
|
7134
7207
|
...CommitPrototype});
|
|
7135
7208
|
var currentFiberURI = "effect/FiberCurrent";
|
|
7136
7209
|
|
|
7137
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7210
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/logger.js
|
|
7138
7211
|
var LoggerSymbolKey = "effect/Logger";
|
|
7139
7212
|
var LoggerTypeId = /* @__PURE__ */ Symbol.for(LoggerSymbolKey);
|
|
7140
7213
|
var loggerVariance = {
|
|
@@ -7188,7 +7261,7 @@ var stringLogger = /* @__PURE__ */ makeLogger(/* @__PURE__ */ format3(escapeDoub
|
|
|
7188
7261
|
var hasProcessStdout = typeof process === "object" && process !== null && typeof process.stdout === "object" && process.stdout !== null;
|
|
7189
7262
|
hasProcessStdout && process.stdout.isTTY === true;
|
|
7190
7263
|
|
|
7191
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7264
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/boundaries.js
|
|
7192
7265
|
var MetricBoundariesSymbolKey = "effect/MetricBoundaries";
|
|
7193
7266
|
var MetricBoundariesTypeId = /* @__PURE__ */ Symbol.for(MetricBoundariesSymbolKey);
|
|
7194
7267
|
var MetricBoundariesImpl = class {
|
|
@@ -7216,7 +7289,7 @@ var fromIterable7 = (iterable) => {
|
|
|
7216
7289
|
};
|
|
7217
7290
|
var exponential = (options3) => pipe(makeBy(options3.count - 1, (i) => options3.start * Math.pow(options3.factor, i)), unsafeFromArray, fromIterable7);
|
|
7218
7291
|
|
|
7219
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7292
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/keyType.js
|
|
7220
7293
|
var MetricKeyTypeSymbolKey = "effect/MetricKeyType";
|
|
7221
7294
|
var MetricKeyTypeTypeId = /* @__PURE__ */ Symbol.for(MetricKeyTypeSymbolKey);
|
|
7222
7295
|
var CounterKeyTypeSymbolKey = "effect/MetricKeyType/Counter";
|
|
@@ -7285,7 +7358,7 @@ var isGaugeKey = (u) => hasProperty(u, GaugeKeyTypeTypeId);
|
|
|
7285
7358
|
var isHistogramKey = (u) => hasProperty(u, HistogramKeyTypeTypeId);
|
|
7286
7359
|
var isSummaryKey = (u) => hasProperty(u, SummaryKeyTypeTypeId);
|
|
7287
7360
|
|
|
7288
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7361
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/key.js
|
|
7289
7362
|
var MetricKeySymbolKey = "effect/MetricKey";
|
|
7290
7363
|
var MetricKeyTypeId = /* @__PURE__ */ Symbol.for(MetricKeySymbolKey);
|
|
7291
7364
|
var metricKeyVariance = {
|
|
@@ -7322,7 +7395,7 @@ var counter2 = (name, options3) => new MetricKeyImpl(name, counter(options3), fr
|
|
|
7322
7395
|
var histogram2 = (name, boundaries, description) => new MetricKeyImpl(name, histogram(boundaries), fromNullable(description));
|
|
7323
7396
|
var taggedWithLabels = /* @__PURE__ */ dual(2, (self, extraTags) => extraTags.length === 0 ? self : new MetricKeyImpl(self.name, self.keyType, self.description, union(self.tags, extraTags)));
|
|
7324
7397
|
|
|
7325
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7398
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/MutableHashMap.js
|
|
7326
7399
|
var TypeId11 = /* @__PURE__ */ Symbol.for("effect/MutableHashMap");
|
|
7327
7400
|
var MutableHashMapProto = {
|
|
7328
7401
|
[TypeId11]: TypeId11,
|
|
@@ -7449,7 +7522,7 @@ var removeFromBucket = (self, bucket, key) => {
|
|
|
7449
7522
|
}
|
|
7450
7523
|
};
|
|
7451
7524
|
|
|
7452
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7525
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/state.js
|
|
7453
7526
|
var MetricStateSymbolKey = "effect/MetricState";
|
|
7454
7527
|
var MetricStateTypeId = /* @__PURE__ */ Symbol.for(MetricStateSymbolKey);
|
|
7455
7528
|
var CounterStateSymbolKey = "effect/MetricState/Counter";
|
|
@@ -7584,7 +7657,7 @@ var isGaugeState = (u) => hasProperty(u, GaugeStateTypeId);
|
|
|
7584
7657
|
var isHistogramState = (u) => hasProperty(u, HistogramStateTypeId);
|
|
7585
7658
|
var isSummaryState = (u) => hasProperty(u, SummaryStateTypeId);
|
|
7586
7659
|
|
|
7587
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7660
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/hook.js
|
|
7588
7661
|
var MetricHookSymbolKey = "effect/MetricHook";
|
|
7589
7662
|
var MetricHookTypeId = /* @__PURE__ */ Symbol.for(MetricHookSymbolKey);
|
|
7590
7663
|
var metricHookVariance = {
|
|
@@ -7593,7 +7666,7 @@ var metricHookVariance = {
|
|
|
7593
7666
|
/* c8 ignore next */
|
|
7594
7667
|
_Out: (_) => _
|
|
7595
7668
|
};
|
|
7596
|
-
var
|
|
7669
|
+
var make28 = (options3) => ({
|
|
7597
7670
|
[MetricHookTypeId]: metricHookVariance,
|
|
7598
7671
|
pipe() {
|
|
7599
7672
|
return pipeArguments(this, arguments);
|
|
@@ -7609,7 +7682,7 @@ var counter4 = (key) => {
|
|
|
7609
7682
|
sum3 = sum3 + value2;
|
|
7610
7683
|
}
|
|
7611
7684
|
};
|
|
7612
|
-
return
|
|
7685
|
+
return make28({
|
|
7613
7686
|
get: () => counter3(sum3),
|
|
7614
7687
|
update: update5,
|
|
7615
7688
|
modify: update5
|
|
@@ -7624,7 +7697,7 @@ var frequency3 = (key) => {
|
|
|
7624
7697
|
const slotCount = values3.get(word) ?? 0;
|
|
7625
7698
|
values3.set(word, slotCount + 1);
|
|
7626
7699
|
};
|
|
7627
|
-
return
|
|
7700
|
+
return make28({
|
|
7628
7701
|
get: () => frequency2(values3),
|
|
7629
7702
|
update: update5,
|
|
7630
7703
|
modify: update5
|
|
@@ -7632,7 +7705,7 @@ var frequency3 = (key) => {
|
|
|
7632
7705
|
};
|
|
7633
7706
|
var gauge3 = (_key, startAt) => {
|
|
7634
7707
|
let value2 = startAt;
|
|
7635
|
-
return
|
|
7708
|
+
return make28({
|
|
7636
7709
|
get: () => gauge2(value2),
|
|
7637
7710
|
update: (v) => {
|
|
7638
7711
|
value2 = v;
|
|
@@ -7646,7 +7719,7 @@ var histogram4 = (key) => {
|
|
|
7646
7719
|
const bounds = key.keyType.boundaries.values;
|
|
7647
7720
|
const size11 = bounds.length;
|
|
7648
7721
|
const values3 = new Uint32Array(size11 + 1);
|
|
7649
|
-
const boundaries = new
|
|
7722
|
+
const boundaries = new Float64Array(size11);
|
|
7650
7723
|
let count2 = 0;
|
|
7651
7724
|
let sum3 = 0;
|
|
7652
7725
|
let min3 = Number.MAX_VALUE;
|
|
@@ -7694,7 +7767,7 @@ var histogram4 = (key) => {
|
|
|
7694
7767
|
}
|
|
7695
7768
|
return builder;
|
|
7696
7769
|
};
|
|
7697
|
-
return
|
|
7770
|
+
return make28({
|
|
7698
7771
|
get: () => histogram3({
|
|
7699
7772
|
buckets: getBuckets(),
|
|
7700
7773
|
count: count2,
|
|
@@ -7747,7 +7820,7 @@ var summary3 = (key) => {
|
|
|
7747
7820
|
count2 = count2 + 1;
|
|
7748
7821
|
sum3 = sum3 + value2;
|
|
7749
7822
|
};
|
|
7750
|
-
return
|
|
7823
|
+
return make28({
|
|
7751
7824
|
get: () => summary2({
|
|
7752
7825
|
error,
|
|
7753
7826
|
quantiles: snapshot(Date.now()),
|
|
@@ -7879,7 +7952,7 @@ var resolveQuantile = (error, sampleCount, current, consumed, quantile, rest) =>
|
|
|
7879
7952
|
throw new Error("BUG: MetricHook.resolveQuantiles - please report an issue at https://github.com/Effect-TS/effect/issues");
|
|
7880
7953
|
};
|
|
7881
7954
|
|
|
7882
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7955
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/pair.js
|
|
7883
7956
|
var MetricPairSymbolKey = "effect/MetricPair";
|
|
7884
7957
|
var MetricPairTypeId = /* @__PURE__ */ Symbol.for(MetricPairSymbolKey);
|
|
7885
7958
|
var metricPairVariance = {
|
|
@@ -7897,7 +7970,7 @@ var unsafeMake6 = (metricKey, metricState) => {
|
|
|
7897
7970
|
};
|
|
7898
7971
|
};
|
|
7899
7972
|
|
|
7900
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7973
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/registry.js
|
|
7901
7974
|
var MetricRegistrySymbolKey = "effect/MetricRegistry";
|
|
7902
7975
|
var MetricRegistryTypeId = /* @__PURE__ */ Symbol.for(MetricRegistrySymbolKey);
|
|
7903
7976
|
var MetricRegistryImpl = class {
|
|
@@ -7989,11 +8062,11 @@ var MetricRegistryImpl = class {
|
|
|
7989
8062
|
return value2;
|
|
7990
8063
|
}
|
|
7991
8064
|
};
|
|
7992
|
-
var
|
|
8065
|
+
var make29 = () => {
|
|
7993
8066
|
return new MetricRegistryImpl();
|
|
7994
8067
|
};
|
|
7995
8068
|
|
|
7996
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8069
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric.js
|
|
7997
8070
|
var MetricSymbolKey = "effect/Metric";
|
|
7998
8071
|
var MetricTypeId = /* @__PURE__ */ Symbol.for(MetricSymbolKey);
|
|
7999
8072
|
var metricVariance = {
|
|
@@ -8004,8 +8077,8 @@ var metricVariance = {
|
|
|
8004
8077
|
/* c8 ignore next */
|
|
8005
8078
|
_Out: (_) => _
|
|
8006
8079
|
};
|
|
8007
|
-
var globalMetricRegistry = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Metric/globalMetricRegistry"), () =>
|
|
8008
|
-
var
|
|
8080
|
+
var globalMetricRegistry = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Metric/globalMetricRegistry"), () => make29());
|
|
8081
|
+
var make30 = function(keyType, unsafeUpdate, unsafeValue, unsafeModify) {
|
|
8009
8082
|
const metric = Object.assign((effect3) => tap(effect3, (a) => update4(metric, a)), {
|
|
8010
8083
|
[MetricTypeId]: metricVariance,
|
|
8011
8084
|
keyType,
|
|
@@ -8042,12 +8115,12 @@ var fromMetricKey = (key) => {
|
|
|
8042
8115
|
hookCache.set(extraTags, hook2);
|
|
8043
8116
|
return hook2;
|
|
8044
8117
|
};
|
|
8045
|
-
return
|
|
8118
|
+
return make30(key.keyType, (input, extraTags) => hook(extraTags).update(input), (extraTags) => hook(extraTags).get(), (input, extraTags) => hook(extraTags).modify(input));
|
|
8046
8119
|
};
|
|
8047
8120
|
var histogram5 = (name, boundaries, description) => fromMetricKey(histogram2(name, boundaries, description));
|
|
8048
|
-
var tagged = /* @__PURE__ */ dual(3, (self, key, value2) => taggedWithLabels2(self, [
|
|
8121
|
+
var tagged = /* @__PURE__ */ dual(3, (self, key, value2) => taggedWithLabels2(self, [make27(key, value2)]));
|
|
8049
8122
|
var taggedWithLabels2 = /* @__PURE__ */ dual(2, (self, extraTags) => {
|
|
8050
|
-
return
|
|
8123
|
+
return make30(self.keyType, (input, extraTags1) => self.unsafeUpdate(input, union(extraTags, extraTags1)), (extraTags1) => self.unsafeValue(union(extraTags, extraTags1)), (input, extraTags1) => self.unsafeModify(input, union(extraTags, extraTags1)));
|
|
8051
8124
|
});
|
|
8052
8125
|
var update4 = /* @__PURE__ */ dual(2, (self, input) => fiberRefGetWith(currentMetricLabels, (tags) => sync(() => self.unsafeUpdate(input, tags))));
|
|
8053
8126
|
({
|
|
@@ -8062,7 +8135,7 @@ var complete = /* @__PURE__ */ dual(2, (self, result) => fiberRefGetWith(current
|
|
|
8062
8135
|
}
|
|
8063
8136
|
})));
|
|
8064
8137
|
|
|
8065
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8138
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/supervisor.js
|
|
8066
8139
|
var SupervisorSymbolKey = "effect/Supervisor";
|
|
8067
8140
|
var SupervisorTypeId = /* @__PURE__ */ Symbol.for(SupervisorSymbolKey);
|
|
8068
8141
|
var supervisorVariance = {
|
|
@@ -8176,10 +8249,10 @@ var fromEffect = (effect3) => {
|
|
|
8176
8249
|
};
|
|
8177
8250
|
var none7 = /* @__PURE__ */ globalValue("effect/Supervisor/none", () => fromEffect(void_));
|
|
8178
8251
|
|
|
8179
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8180
|
-
var
|
|
8252
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Differ.js
|
|
8253
|
+
var make32 = make14;
|
|
8181
8254
|
|
|
8182
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8255
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/supervisor/patch.js
|
|
8183
8256
|
var OP_EMPTY3 = "Empty";
|
|
8184
8257
|
var OP_ADD_SUPERVISOR = "AddSupervisor";
|
|
8185
8258
|
var OP_REMOVE_SUPERVISOR = "RemoveSupervisor";
|
|
@@ -8263,14 +8336,14 @@ var diff7 = (oldValue, newValue) => {
|
|
|
8263
8336
|
})));
|
|
8264
8337
|
return combine8(added, removed);
|
|
8265
8338
|
};
|
|
8266
|
-
var differ2 = /* @__PURE__ */
|
|
8339
|
+
var differ2 = /* @__PURE__ */ make32({
|
|
8267
8340
|
empty: empty22,
|
|
8268
8341
|
patch: patch8,
|
|
8269
8342
|
combine: combine8,
|
|
8270
8343
|
diff: diff7
|
|
8271
8344
|
});
|
|
8272
8345
|
|
|
8273
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8346
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberRuntime.js
|
|
8274
8347
|
var fiberStarted = /* @__PURE__ */ counter5("effect_fiber_started", {
|
|
8275
8348
|
incremental: true
|
|
8276
8349
|
});
|
|
@@ -8330,10 +8403,20 @@ var contOpSuccess = {
|
|
|
8330
8403
|
}
|
|
8331
8404
|
},
|
|
8332
8405
|
[OP_ITERATOR]: (self, cont, value2) => {
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8406
|
+
while (true) {
|
|
8407
|
+
const state = internalCall(() => cont.effect_instruction_i0.next(value2));
|
|
8408
|
+
if (state.done) {
|
|
8409
|
+
return exitSucceed(state.value);
|
|
8410
|
+
}
|
|
8411
|
+
const primitive = yieldWrapGet(state.value);
|
|
8412
|
+
if (!exitIsExit(primitive)) {
|
|
8413
|
+
self.pushStack(cont);
|
|
8414
|
+
return primitive;
|
|
8415
|
+
} else if (primitive._tag === "Failure") {
|
|
8416
|
+
return primitive;
|
|
8417
|
+
}
|
|
8418
|
+
value2 = primitive.value;
|
|
8419
|
+
}
|
|
8337
8420
|
}
|
|
8338
8421
|
};
|
|
8339
8422
|
var drainQueueWhileRunningTable = {
|
|
@@ -8430,7 +8513,7 @@ var FiberRuntime = class extends Class2 {
|
|
|
8430
8513
|
*/
|
|
8431
8514
|
get runtimeFlags() {
|
|
8432
8515
|
return this.ask((state, status2) => {
|
|
8433
|
-
if (
|
|
8516
|
+
if (isDone2(status2)) {
|
|
8434
8517
|
return state.currentRuntimeFlags;
|
|
8435
8518
|
}
|
|
8436
8519
|
return status2.runtimeFlags;
|
|
@@ -9358,7 +9441,7 @@ var tracerLogger = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effec
|
|
|
9358
9441
|
renderErrorCause: true
|
|
9359
9442
|
});
|
|
9360
9443
|
}
|
|
9361
|
-
span2.value.event(toStringUnknown(Array.isArray(message) ? message[0] : message), clockService.unsafeCurrentTimeNanos(), attributes);
|
|
9444
|
+
span2.value.event(toStringUnknown(Array.isArray(message) && message.length === 1 ? message[0] : message), clockService.unsafeCurrentTimeNanos(), attributes);
|
|
9362
9445
|
}));
|
|
9363
9446
|
var currentLoggers = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentLoggers"), () => fiberRefUnsafeMakeHashSet(make7(defaultLogger, tracerLogger)));
|
|
9364
9447
|
var annotateLogsScoped = function() {
|
|
@@ -9919,20 +10002,20 @@ var invokeWithInterrupt = (self, entries2, onInterrupt3) => fiberIdWith((id2) =>
|
|
|
9919
10002
|
return forEachSequentialDiscard(residual, (entry) => complete(entry.request, exitInterrupt(id2)));
|
|
9920
10003
|
})));
|
|
9921
10004
|
|
|
9922
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10005
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Cause.js
|
|
9923
10006
|
var fail4 = fail;
|
|
9924
10007
|
var die4 = die;
|
|
9925
10008
|
var interrupt3 = interrupt;
|
|
9926
10009
|
var isFailType2 = isFailType;
|
|
9927
10010
|
var isDieType2 = isDieType;
|
|
9928
|
-
var
|
|
10011
|
+
var isInterrupted2 = isInterrupted;
|
|
9929
10012
|
var interruptors2 = interruptors;
|
|
9930
10013
|
var failureOrCause2 = failureOrCause;
|
|
9931
10014
|
var map14 = map9;
|
|
9932
10015
|
var squash = causeSquash;
|
|
9933
10016
|
var pretty2 = pretty;
|
|
9934
10017
|
|
|
9935
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10018
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schedule/interval.js
|
|
9936
10019
|
var IntervalSymbolKey = "effect/ScheduleInterval";
|
|
9937
10020
|
var IntervalTypeId = /* @__PURE__ */ Symbol.for(IntervalSymbolKey);
|
|
9938
10021
|
var empty24 = {
|
|
@@ -9940,7 +10023,7 @@ var empty24 = {
|
|
|
9940
10023
|
startMillis: 0,
|
|
9941
10024
|
endMillis: 0
|
|
9942
10025
|
};
|
|
9943
|
-
var
|
|
10026
|
+
var make33 = (startMillis, endMillis) => {
|
|
9944
10027
|
if (startMillis > endMillis) {
|
|
9945
10028
|
return empty24;
|
|
9946
10029
|
}
|
|
@@ -9965,23 +10048,23 @@ var isEmpty6 = (self) => {
|
|
|
9965
10048
|
var intersect = /* @__PURE__ */ dual(2, (self, that) => {
|
|
9966
10049
|
const start3 = Math.max(self.startMillis, that.startMillis);
|
|
9967
10050
|
const end3 = Math.min(self.endMillis, that.endMillis);
|
|
9968
|
-
return
|
|
10051
|
+
return make33(start3, end3);
|
|
9969
10052
|
});
|
|
9970
10053
|
var after = (startMilliseconds) => {
|
|
9971
|
-
return
|
|
10054
|
+
return make33(startMilliseconds, Number.POSITIVE_INFINITY);
|
|
9972
10055
|
};
|
|
9973
10056
|
|
|
9974
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10057
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/ScheduleInterval.js
|
|
9975
10058
|
var empty25 = empty24;
|
|
9976
10059
|
var lessThan3 = lessThan2;
|
|
9977
10060
|
var isEmpty7 = isEmpty6;
|
|
9978
10061
|
var intersect2 = intersect;
|
|
9979
10062
|
var after2 = after;
|
|
9980
10063
|
|
|
9981
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10064
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schedule/intervals.js
|
|
9982
10065
|
var IntervalsSymbolKey = "effect/ScheduleIntervals";
|
|
9983
10066
|
var IntervalsTypeId = /* @__PURE__ */ Symbol.for(IntervalsSymbolKey);
|
|
9984
|
-
var
|
|
10067
|
+
var make35 = (intervals) => {
|
|
9985
10068
|
return {
|
|
9986
10069
|
[IntervalsTypeId]: IntervalsTypeId,
|
|
9987
10070
|
intervals
|
|
@@ -10002,7 +10085,7 @@ var intersectLoop = (_left, _right, _acc) => {
|
|
|
10002
10085
|
}
|
|
10003
10086
|
acc = intervals;
|
|
10004
10087
|
}
|
|
10005
|
-
return
|
|
10088
|
+
return make35(reverse2(acc));
|
|
10006
10089
|
};
|
|
10007
10090
|
var start = (self) => {
|
|
10008
10091
|
return pipe(self.intervals, head2, getOrElse(() => empty25)).startMillis;
|
|
@@ -10015,15 +10098,15 @@ var isNonEmpty3 = (self) => {
|
|
|
10015
10098
|
return isNonEmpty(self.intervals);
|
|
10016
10099
|
};
|
|
10017
10100
|
|
|
10018
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10019
|
-
var
|
|
10101
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/ScheduleIntervals.js
|
|
10102
|
+
var make36 = make35;
|
|
10020
10103
|
var intersect4 = intersect3;
|
|
10021
10104
|
var start2 = start;
|
|
10022
10105
|
var end2 = end;
|
|
10023
10106
|
var lessThan5 = lessThan4;
|
|
10024
10107
|
var isNonEmpty4 = isNonEmpty3;
|
|
10025
10108
|
|
|
10026
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10109
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schedule/decision.js
|
|
10027
10110
|
var OP_CONTINUE = "Continue";
|
|
10028
10111
|
var OP_DONE2 = "Done";
|
|
10029
10112
|
var _continue = (intervals) => {
|
|
@@ -10035,7 +10118,7 @@ var _continue = (intervals) => {
|
|
|
10035
10118
|
var continueWith = (interval) => {
|
|
10036
10119
|
return {
|
|
10037
10120
|
_tag: OP_CONTINUE,
|
|
10038
|
-
intervals:
|
|
10121
|
+
intervals: make36(of2(interval))
|
|
10039
10122
|
};
|
|
10040
10123
|
};
|
|
10041
10124
|
var done4 = {
|
|
@@ -10044,26 +10127,26 @@ var done4 = {
|
|
|
10044
10127
|
var isContinue = (self) => {
|
|
10045
10128
|
return self._tag === OP_CONTINUE;
|
|
10046
10129
|
};
|
|
10047
|
-
var
|
|
10130
|
+
var isDone3 = (self) => {
|
|
10048
10131
|
return self._tag === OP_DONE2;
|
|
10049
10132
|
};
|
|
10050
10133
|
|
|
10051
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10134
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/ScheduleDecision.js
|
|
10052
10135
|
var _continue2 = _continue;
|
|
10053
10136
|
var continueWith2 = continueWith;
|
|
10054
10137
|
var done5 = done4;
|
|
10055
10138
|
var isContinue2 = isContinue;
|
|
10056
|
-
var
|
|
10139
|
+
var isDone4 = isDone3;
|
|
10057
10140
|
|
|
10058
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10141
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Scope.js
|
|
10059
10142
|
var addFinalizer2 = scopeAddFinalizer;
|
|
10060
10143
|
var addFinalizerExit = scopeAddFinalizerExit;
|
|
10061
10144
|
var close = scopeClose;
|
|
10062
10145
|
var extend2 = scopeExtend;
|
|
10063
10146
|
var fork = scopeFork;
|
|
10064
|
-
var
|
|
10147
|
+
var make37 = scopeMake;
|
|
10065
10148
|
|
|
10066
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10149
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/effect/circular.js
|
|
10067
10150
|
var Semaphore = class {
|
|
10068
10151
|
permits;
|
|
10069
10152
|
waiters = /* @__PURE__ */ new Set();
|
|
@@ -10092,7 +10175,7 @@ var Semaphore = class {
|
|
|
10092
10175
|
this.taken += n;
|
|
10093
10176
|
return resume2(succeed(n));
|
|
10094
10177
|
});
|
|
10095
|
-
|
|
10178
|
+
updateTakenUnsafe(fiber, f) {
|
|
10096
10179
|
this.taken = f(this.taken);
|
|
10097
10180
|
if (this.waiters.size > 0) {
|
|
10098
10181
|
fiber.getFiberRef(currentScheduler).scheduleTask(() => {
|
|
@@ -10105,7 +10188,17 @@ var Semaphore = class {
|
|
|
10105
10188
|
}, fiber.getFiberRef(currentSchedulingPriority));
|
|
10106
10189
|
}
|
|
10107
10190
|
return succeed(this.free);
|
|
10108
|
-
}
|
|
10191
|
+
}
|
|
10192
|
+
updateTaken(f) {
|
|
10193
|
+
return withFiberRuntime((fiber) => this.updateTakenUnsafe(fiber, f));
|
|
10194
|
+
}
|
|
10195
|
+
resize = (permits) => asVoid(withFiberRuntime((fiber) => {
|
|
10196
|
+
this.permits = permits;
|
|
10197
|
+
if (this.free < 0) {
|
|
10198
|
+
return void_;
|
|
10199
|
+
}
|
|
10200
|
+
return this.updateTakenUnsafe(fiber, (taken) => taken);
|
|
10201
|
+
}));
|
|
10109
10202
|
release = (n) => this.updateTaken((taken) => taken - n);
|
|
10110
10203
|
releaseAll = /* @__PURE__ */ this.updateTaken((_) => 0);
|
|
10111
10204
|
withPermits = (n) => (self) => uninterruptibleMask((restore) => flatMap7(restore(this.take(n)), (permits) => ensuring(restore(self), this.release(permits))));
|
|
@@ -10239,23 +10332,22 @@ var unsafeMakeSynchronized = (value2) => {
|
|
|
10239
10332
|
return new SynchronizedImpl(ref, sem.withPermits(1));
|
|
10240
10333
|
};
|
|
10241
10334
|
|
|
10242
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10335
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/managedRuntime/circular.js
|
|
10243
10336
|
var TypeId13 = /* @__PURE__ */ Symbol.for("effect/ManagedRuntime");
|
|
10244
10337
|
|
|
10245
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10338
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/layer.js
|
|
10246
10339
|
var OP_FRESH = "Fresh";
|
|
10247
10340
|
var OP_FROM_EFFECT = "FromEffect";
|
|
10248
|
-
var
|
|
10249
|
-
var OP_ZIP_WITH2 = "ZipWith";
|
|
10341
|
+
var OP_MERGE_ALL = "MergeAll";
|
|
10250
10342
|
|
|
10251
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10252
|
-
var
|
|
10343
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Fiber.js
|
|
10344
|
+
var _await2 = _await;
|
|
10253
10345
|
var inheritAll2 = inheritAll;
|
|
10254
10346
|
var interrupt4 = interruptFiber;
|
|
10255
10347
|
var interruptAs = interruptAsFiber;
|
|
10256
10348
|
var join3 = join2;
|
|
10257
10349
|
|
|
10258
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10350
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/runtime.js
|
|
10259
10351
|
var makeDual = (f) => function() {
|
|
10260
10352
|
if (arguments.length === 1) {
|
|
10261
10353
|
const runtime4 = arguments[0];
|
|
@@ -10436,10 +10528,10 @@ var RuntimeImpl = class {
|
|
|
10436
10528
|
return pipeArguments(this, arguments);
|
|
10437
10529
|
}
|
|
10438
10530
|
};
|
|
10439
|
-
var
|
|
10531
|
+
var make38 = (options3) => new RuntimeImpl(options3.context, options3.runtimeFlags, options3.fiberRefs);
|
|
10440
10532
|
var runtime2 = () => withFiberRuntime((state, status2) => succeed(new RuntimeImpl(state.getFiberRef(currentContext), status2.runtimeFlags, state.getFiberRefs())));
|
|
10441
10533
|
var defaultRuntimeFlags = /* @__PURE__ */ make16(Interruption, CooperativeYielding, RuntimeMetrics);
|
|
10442
|
-
var defaultRuntime = /* @__PURE__ */
|
|
10534
|
+
var defaultRuntime = /* @__PURE__ */ make38({
|
|
10443
10535
|
context: /* @__PURE__ */ empty8(),
|
|
10444
10536
|
runtimeFlags: defaultRuntimeFlags,
|
|
10445
10537
|
fiberRefs: /* @__PURE__ */ empty17()
|
|
@@ -10448,10 +10540,10 @@ var unsafeForkEffect = /* @__PURE__ */ unsafeFork3(defaultRuntime);
|
|
|
10448
10540
|
var unsafeRunPromiseEffect = /* @__PURE__ */ unsafeRunPromise(defaultRuntime);
|
|
10449
10541
|
var unsafeRunSyncEffect = /* @__PURE__ */ unsafeRunSync(defaultRuntime);
|
|
10450
10542
|
|
|
10451
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10543
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/synchronizedRef.js
|
|
10452
10544
|
var modifyEffect = /* @__PURE__ */ dual(2, (self, f) => self.modifyEffect(f));
|
|
10453
10545
|
|
|
10454
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10546
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/layer.js
|
|
10455
10547
|
var LayerSymbolKey = "effect/Layer";
|
|
10456
10548
|
var LayerTypeId = /* @__PURE__ */ Symbol.for(LayerSymbolKey);
|
|
10457
10549
|
var layerVariance = {
|
|
@@ -10500,7 +10592,7 @@ var MemoMapImpl = class {
|
|
|
10500
10592
|
})));
|
|
10501
10593
|
return succeed([cached4, map22]);
|
|
10502
10594
|
}
|
|
10503
|
-
return pipe(
|
|
10595
|
+
return pipe(make23(0), flatMap7((observers) => pipe(deferredMake(), flatMap7((deferred) => pipe(make23(() => void_), map11((finalizerRef) => {
|
|
10504
10596
|
const resource = uninterruptibleMask((restore) => pipe(scopeMake(), flatMap7((innerScope) => pipe(restore(flatMap7(makeBuilder(layer3, innerScope, true), (f) => diffFiberRefs(f(this)))), exit, flatMap7((exit4) => {
|
|
10505
10597
|
switch (exit4._tag) {
|
|
10506
10598
|
case OP_FAILURE: {
|
|
@@ -10558,9 +10650,25 @@ var makeBuilder = (self, scope4, inMemoMap = false) => {
|
|
|
10558
10650
|
return sync(() => (memoMap) => pipe(memoMap.getOrElseMemoize(op.first, scope4), zipWith2(memoMap.getOrElseMemoize(op.second, scope4), op.zipK)));
|
|
10559
10651
|
}
|
|
10560
10652
|
case "ZipWith": {
|
|
10561
|
-
return
|
|
10562
|
-
|
|
10563
|
-
|
|
10653
|
+
return gen(function* () {
|
|
10654
|
+
const parallelScope = yield* scopeFork(scope4, parallel2);
|
|
10655
|
+
const firstScope = yield* scopeFork(parallelScope, sequential2);
|
|
10656
|
+
const secondScope = yield* scopeFork(parallelScope, sequential2);
|
|
10657
|
+
return (memoMap) => pipe(memoMap.getOrElseMemoize(op.first, firstScope), zipWithOptions(memoMap.getOrElseMemoize(op.second, secondScope), op.zipK, {
|
|
10658
|
+
concurrent: true
|
|
10659
|
+
}));
|
|
10660
|
+
});
|
|
10661
|
+
}
|
|
10662
|
+
case "MergeAll": {
|
|
10663
|
+
const layers = op.layers;
|
|
10664
|
+
return map11(scopeFork(scope4, parallel2), (parallelScope) => (memoMap) => {
|
|
10665
|
+
const contexts = new Array(layers.length);
|
|
10666
|
+
return map11(forEachConcurrentDiscard(layers, fnUntraced(function* (layer3, i) {
|
|
10667
|
+
const scope5 = yield* scopeFork(parallelScope, sequential2);
|
|
10668
|
+
const context5 = yield* memoMap.getOrElseMemoize(layer3, scope5);
|
|
10669
|
+
contexts[i] = context5;
|
|
10670
|
+
}), false, false), () => mergeAll2(...contexts));
|
|
10671
|
+
});
|
|
10564
10672
|
}
|
|
10565
10673
|
}
|
|
10566
10674
|
};
|
|
@@ -10576,28 +10684,12 @@ function fromEffectContext(effect3) {
|
|
|
10576
10684
|
fromEffect8.effect = effect3;
|
|
10577
10685
|
return fromEffect8;
|
|
10578
10686
|
}
|
|
10579
|
-
var
|
|
10580
|
-
|
|
10581
|
-
|
|
10582
|
-
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
return final;
|
|
10586
|
-
};
|
|
10587
|
-
var suspend3 = (evaluate2) => {
|
|
10588
|
-
const suspend8 = Object.create(proto3);
|
|
10589
|
-
suspend8._op_layer = OP_SUSPEND;
|
|
10590
|
-
suspend8.evaluate = evaluate2;
|
|
10591
|
-
return suspend8;
|
|
10592
|
-
};
|
|
10593
|
-
var zipWith3 = /* @__PURE__ */ dual(3, (self, that, f) => suspend3(() => {
|
|
10594
|
-
const zipWith7 = Object.create(proto3);
|
|
10595
|
-
zipWith7._op_layer = OP_ZIP_WITH2;
|
|
10596
|
-
zipWith7.first = self;
|
|
10597
|
-
zipWith7.second = that;
|
|
10598
|
-
zipWith7.zipK = f;
|
|
10599
|
-
return zipWith7;
|
|
10600
|
-
}));
|
|
10687
|
+
var mergeAll3 = (...layers) => {
|
|
10688
|
+
const mergeAll7 = Object.create(proto3);
|
|
10689
|
+
mergeAll7._op_layer = OP_MERGE_ALL;
|
|
10690
|
+
mergeAll7.layers = layers;
|
|
10691
|
+
return mergeAll7;
|
|
10692
|
+
};
|
|
10601
10693
|
var provideSomeLayer = /* @__PURE__ */ dual(2, (self, layer3) => scopedWith((scope4) => flatMap7(buildWithScope(layer3, scope4), (context5) => provideSomeContext(self, context5))));
|
|
10602
10694
|
var provideSomeRuntime = /* @__PURE__ */ dual(2, (self, rt) => {
|
|
10603
10695
|
const patchRefs = diff6(defaultRuntime.fiberRefs, rt.fiberRefs);
|
|
@@ -10621,7 +10713,7 @@ var provideSomeRuntime = /* @__PURE__ */ dual(2, (self, rt) => {
|
|
|
10621
10713
|
});
|
|
10622
10714
|
var effect_provide = /* @__PURE__ */ dual(2, (self, source) => {
|
|
10623
10715
|
if (Array.isArray(source)) {
|
|
10624
|
-
return provideSomeLayer(self,
|
|
10716
|
+
return provideSomeLayer(self, mergeAll3(...source));
|
|
10625
10717
|
} else if (isLayer(source)) {
|
|
10626
10718
|
return provideSomeLayer(self, source);
|
|
10627
10719
|
} else if (isContext2(source)) {
|
|
@@ -10633,7 +10725,7 @@ var effect_provide = /* @__PURE__ */ dual(2, (self, source) => {
|
|
|
10633
10725
|
}
|
|
10634
10726
|
});
|
|
10635
10727
|
|
|
10636
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10728
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Data.js
|
|
10637
10729
|
var struct2 = struct;
|
|
10638
10730
|
var _case = () => (args2) => args2 === void 0 ? Object.create(StructuralPrototype) : struct2(args2);
|
|
10639
10731
|
var tagged2 = (tag2) => (args2) => {
|
|
@@ -10678,7 +10770,7 @@ var TaggedError = (tag2) => {
|
|
|
10678
10770
|
return O.BaseEffectError;
|
|
10679
10771
|
};
|
|
10680
10772
|
|
|
10681
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10773
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schedule.js
|
|
10682
10774
|
var ScheduleSymbolKey = "effect/Schedule";
|
|
10683
10775
|
var ScheduleTypeId = /* @__PURE__ */ Symbol.for(ScheduleSymbolKey);
|
|
10684
10776
|
var isSchedule = (u) => hasProperty(u, ScheduleTypeId);
|
|
@@ -10771,7 +10863,7 @@ var ScheduleDriverImpl = class {
|
|
|
10771
10863
|
next(input) {
|
|
10772
10864
|
return pipe(map11(get10(this.ref), (tuple) => tuple[1]), flatMap7((state) => pipe(currentTimeMillis2, flatMap7((now) => pipe(suspend(() => this.schedule.step(now, input, state)), flatMap7(([state2, out, decision]) => {
|
|
10773
10865
|
const setState = set4(this.ref, [some2(out), state2]);
|
|
10774
|
-
if (
|
|
10866
|
+
if (isDone4(decision)) {
|
|
10775
10867
|
return setState.pipe(zipRight(fail2(none2())));
|
|
10776
10868
|
}
|
|
10777
10869
|
const millis2 = start2(decision.intervals) - now;
|
|
@@ -10786,12 +10878,12 @@ var ScheduleDriverImpl = class {
|
|
|
10786
10878
|
var makeWithState = (initial, step3) => new ScheduleImpl(initial, step3);
|
|
10787
10879
|
var check = /* @__PURE__ */ dual(2, (self, test) => checkEffect(self, (input, out) => sync(() => test(input, out))));
|
|
10788
10880
|
var checkEffect = /* @__PURE__ */ dual(2, (self, test) => makeWithState(self.initial, (now, input, state) => flatMap7(self.step(now, input, state), ([state2, out, decision]) => {
|
|
10789
|
-
if (
|
|
10881
|
+
if (isDone4(decision)) {
|
|
10790
10882
|
return succeed([state2, out, done5]);
|
|
10791
10883
|
}
|
|
10792
10884
|
return map11(test(input, out), (cont) => cont ? [state2, out, decision] : [state2, out, done5]);
|
|
10793
10885
|
})));
|
|
10794
|
-
var driver = (self) => pipe(
|
|
10886
|
+
var driver = (self) => pipe(make23([none2(), self.initial]), map11((ref) => new ScheduleDriverImpl(self, ref)));
|
|
10795
10887
|
var intersect5 = /* @__PURE__ */ dual(2, (self, that) => intersectWith(self, that, intersect4));
|
|
10796
10888
|
var intersectWith = /* @__PURE__ */ dual(3, (self, that, f) => makeWithState([self.initial, that.initial], (now, input, state) => pipe(zipWith2(self.step(now, input, state[0]), that.step(now, input, state[1]), (a, b) => [a, b]), flatMap7(([[lState, out, lDecision], [rState, out2, rDecision]]) => {
|
|
10797
10889
|
if (isContinue2(lDecision) && isContinue2(rDecision)) {
|
|
@@ -10806,14 +10898,14 @@ var intersectWithLoop = (self, that, input, lState, out, lInterval, rState, out2
|
|
|
10806
10898
|
}
|
|
10807
10899
|
if (pipe(lInterval, lessThan5(rInterval))) {
|
|
10808
10900
|
return flatMap7(self.step(end2(lInterval), input, lState), ([lState2, out3, decision]) => {
|
|
10809
|
-
if (
|
|
10901
|
+
if (isDone4(decision)) {
|
|
10810
10902
|
return succeed([[lState2, rState], [out3, out2], done5]);
|
|
10811
10903
|
}
|
|
10812
10904
|
return intersectWithLoop(self, that, input, lState2, out3, decision.intervals, rState, out2, rInterval, f);
|
|
10813
10905
|
});
|
|
10814
10906
|
}
|
|
10815
10907
|
return flatMap7(that.step(end2(rInterval), input, rState), ([rState2, out22, decision]) => {
|
|
10816
|
-
if (
|
|
10908
|
+
if (isDone4(decision)) {
|
|
10817
10909
|
return succeed([[lState, rState2], [out, out22], done5]);
|
|
10818
10910
|
}
|
|
10819
10911
|
return intersectWithLoop(self, that, input, lState, out, lInterval, rState2, out22, decision.intervals, f);
|
|
@@ -10879,7 +10971,14 @@ var repeatOrElseEffectLoop = (self, driver2, orElse9, value2) => matchEffect(dri
|
|
|
10879
10971
|
});
|
|
10880
10972
|
var forever2 = /* @__PURE__ */ unfold2(0, (n) => n + 1);
|
|
10881
10973
|
|
|
10882
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10974
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Deferred.js
|
|
10975
|
+
var make39 = deferredMake;
|
|
10976
|
+
var _await3 = deferredAwait;
|
|
10977
|
+
var failCause5 = deferredFailCause;
|
|
10978
|
+
var isDone5 = deferredIsDone;
|
|
10979
|
+
var succeed5 = deferredSucceed;
|
|
10980
|
+
|
|
10981
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/MutableList.js
|
|
10883
10982
|
var TypeId14 = /* @__PURE__ */ Symbol.for("effect/MutableList");
|
|
10884
10983
|
var MutableListProto = {
|
|
10885
10984
|
[TypeId14]: TypeId14,
|
|
@@ -10990,7 +11089,7 @@ var remove6 = (self, node) => {
|
|
|
10990
11089
|
}
|
|
10991
11090
|
};
|
|
10992
11091
|
|
|
10993
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11092
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/MutableQueue.js
|
|
10994
11093
|
var TypeId15 = /* @__PURE__ */ Symbol.for("effect/MutableQueue");
|
|
10995
11094
|
var EmptyMutableQueue = /* @__PURE__ */ Symbol.for("effect/mutable/MutableQueue/Empty");
|
|
10996
11095
|
var MutableQueueProto = {
|
|
@@ -11067,7 +11166,7 @@ var pollUpTo = /* @__PURE__ */ dual(2, (self, n) => {
|
|
|
11067
11166
|
return reverse2(result);
|
|
11068
11167
|
});
|
|
11069
11168
|
|
|
11070
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11169
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Effect.js
|
|
11071
11170
|
var isEffect2 = isEffect;
|
|
11072
11171
|
var cached3 = memoize;
|
|
11073
11172
|
var all4 = all3;
|
|
@@ -11079,7 +11178,7 @@ var dieMessage2 = dieMessage;
|
|
|
11079
11178
|
var gen2 = gen;
|
|
11080
11179
|
var promise2 = promise;
|
|
11081
11180
|
var succeed7 = succeed;
|
|
11082
|
-
var
|
|
11181
|
+
var suspend3 = suspend;
|
|
11083
11182
|
var sync4 = sync;
|
|
11084
11183
|
var _void = void_;
|
|
11085
11184
|
var catchAll2 = catchAll;
|
|
@@ -11136,11 +11235,11 @@ var runSync = unsafeRunSyncEffect;
|
|
|
11136
11235
|
var zip5 = zipOptions;
|
|
11137
11236
|
var zipLeft2 = zipLeftOptions;
|
|
11138
11237
|
var zipRight3 = zipRightOptions;
|
|
11139
|
-
var
|
|
11238
|
+
var zipWith3 = zipWithOptions;
|
|
11140
11239
|
var useSpan2 = useSpan;
|
|
11141
11240
|
var withParentSpan2 = withParentSpan;
|
|
11142
11241
|
|
|
11143
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11242
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/redacted.js
|
|
11144
11243
|
var RedactedSymbolKey = "effect/Redacted";
|
|
11145
11244
|
var redactedRegistry = /* @__PURE__ */ globalValue("effect/Redacted/redactedRegistry", () => /* @__PURE__ */ new WeakMap());
|
|
11146
11245
|
var RedactedTypeId = /* @__PURE__ */ Symbol.for(RedactedSymbolKey);
|
|
@@ -11174,10 +11273,10 @@ var make41 = (value2) => {
|
|
|
11174
11273
|
return redacted;
|
|
11175
11274
|
};
|
|
11176
11275
|
|
|
11177
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11276
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Layer.js
|
|
11178
11277
|
var effect = fromEffect3;
|
|
11179
11278
|
|
|
11180
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11279
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schema/util.js
|
|
11181
11280
|
var getKeysForIndexSignature = (input, parameter) => {
|
|
11182
11281
|
switch (parameter._tag) {
|
|
11183
11282
|
case "StringKeyword":
|
|
@@ -11189,7 +11288,6 @@ var getKeysForIndexSignature = (input, parameter) => {
|
|
|
11189
11288
|
return getKeysForIndexSignature(input, parameter.from);
|
|
11190
11289
|
}
|
|
11191
11290
|
};
|
|
11192
|
-
var ownKeys = (o) => Object.keys(o).concat(Object.getOwnPropertySymbols(o));
|
|
11193
11291
|
var memoizeThunk = (f) => {
|
|
11194
11292
|
let done7 = false;
|
|
11195
11293
|
let a;
|
|
@@ -11202,53 +11300,12 @@ var memoizeThunk = (f) => {
|
|
|
11202
11300
|
return a;
|
|
11203
11301
|
};
|
|
11204
11302
|
};
|
|
11205
|
-
var formatDate = (date) => {
|
|
11206
|
-
try {
|
|
11207
|
-
return date.toISOString();
|
|
11208
|
-
} catch {
|
|
11209
|
-
return String(date);
|
|
11210
|
-
}
|
|
11211
|
-
};
|
|
11212
|
-
var formatUnknown = (u, checkCircular = true) => {
|
|
11213
|
-
if (Array.isArray(u)) {
|
|
11214
|
-
return `[${u.map((i) => formatUnknown(i, checkCircular)).join(",")}]`;
|
|
11215
|
-
}
|
|
11216
|
-
if (isDate(u)) {
|
|
11217
|
-
return formatDate(u);
|
|
11218
|
-
}
|
|
11219
|
-
if (hasProperty(u, "toString") && isFunction2(u["toString"]) && u["toString"] !== Object.prototype.toString) {
|
|
11220
|
-
return u["toString"]();
|
|
11221
|
-
}
|
|
11222
|
-
if (isString(u)) {
|
|
11223
|
-
return JSON.stringify(u);
|
|
11224
|
-
}
|
|
11225
|
-
if (isNumber(u) || u == null || isBoolean(u) || isSymbol(u)) {
|
|
11226
|
-
return String(u);
|
|
11227
|
-
}
|
|
11228
|
-
if (isBigInt(u)) {
|
|
11229
|
-
return String(u) + "n";
|
|
11230
|
-
}
|
|
11231
|
-
if (isIterable(u)) {
|
|
11232
|
-
return `${u.constructor.name}(${formatUnknown(Array.from(u), checkCircular)})`;
|
|
11233
|
-
}
|
|
11234
|
-
try {
|
|
11235
|
-
if (checkCircular) {
|
|
11236
|
-
JSON.stringify(u);
|
|
11237
|
-
}
|
|
11238
|
-
const pojo = `{${ownKeys(u).map((k) => `${isString(k) ? JSON.stringify(k) : String(k)}:${formatUnknown(u[k], false)}`).join(",")}}`;
|
|
11239
|
-
const name = u.constructor.name;
|
|
11240
|
-
return u.constructor !== Object.prototype.constructor ? `${name}(${pojo})` : pojo;
|
|
11241
|
-
} catch {
|
|
11242
|
-
return "<circular structure>";
|
|
11243
|
-
}
|
|
11244
|
-
};
|
|
11245
|
-
var formatPropertyKey = (name) => typeof name === "string" ? JSON.stringify(name) : String(name);
|
|
11246
11303
|
var isNonEmpty5 = (x) => Array.isArray(x);
|
|
11247
11304
|
var isSingle = (x) => !Array.isArray(x);
|
|
11248
11305
|
var formatPathKey = (key) => `[${formatPropertyKey(key)}]`;
|
|
11249
11306
|
var formatPath = (path) => isNonEmpty5(path) ? path.map(formatPathKey).join("") : formatPathKey(path);
|
|
11250
11307
|
|
|
11251
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11308
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schema/errors.js
|
|
11252
11309
|
var getErrorMessage = (reason, details, path, ast) => {
|
|
11253
11310
|
let out = reason;
|
|
11254
11311
|
if (path && isNonEmptyReadonlyArray(path)) {
|
|
@@ -11274,7 +11331,7 @@ var getASTRequiredElementFollowinAnOptionalElementErrorMessage = /* @__PURE__ */
|
|
|
11274
11331
|
var getASTDuplicatePropertySignatureTransformationErrorMessage = (key) => getErrorMessage("Duplicate property signature transformation", `Duplicate key ${formatUnknown(key)}`);
|
|
11275
11332
|
var getASTDuplicatePropertySignatureErrorMessage = (key) => getErrorMessage("Duplicate property signature", `Duplicate key ${formatUnknown(key)}`);
|
|
11276
11333
|
|
|
11277
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11334
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/SchemaAST.js
|
|
11278
11335
|
var BrandAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/Brand");
|
|
11279
11336
|
var SchemaIdAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/SchemaId");
|
|
11280
11337
|
var MessageAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/Message");
|
|
@@ -12193,8 +12250,12 @@ var TypeLiteralTransformation = class {
|
|
|
12193
12250
|
var isTypeLiteralTransformation = /* @__PURE__ */ createTransformationGuard("TypeLiteralTransformation");
|
|
12194
12251
|
var annotations = (ast, overrides) => {
|
|
12195
12252
|
const d = Object.getOwnPropertyDescriptors(ast);
|
|
12253
|
+
const base = {
|
|
12254
|
+
...ast.annotations
|
|
12255
|
+
};
|
|
12256
|
+
delete base[IdentifierAnnotationId];
|
|
12196
12257
|
const value2 = {
|
|
12197
|
-
...
|
|
12258
|
+
...base,
|
|
12198
12259
|
...overrides
|
|
12199
12260
|
};
|
|
12200
12261
|
const surrogate = getSurrogateAnnotation(ast);
|
|
@@ -12204,7 +12265,7 @@ var annotations = (ast, overrides) => {
|
|
|
12204
12265
|
d.annotations.value = value2;
|
|
12205
12266
|
return Object.create(Object.getPrototypeOf(ast), d);
|
|
12206
12267
|
};
|
|
12207
|
-
var STRING_KEYWORD_PATTERN = "[\\s\\S]
|
|
12268
|
+
var STRING_KEYWORD_PATTERN = "[\\s\\S]*?";
|
|
12208
12269
|
var NUMBER_KEYWORD_PATTERN = "[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?";
|
|
12209
12270
|
var getTemplateLiteralSpanTypePattern = (type, capture2) => {
|
|
12210
12271
|
switch (type._tag) {
|
|
@@ -12350,12 +12411,6 @@ var typeAST = (ast) => {
|
|
|
12350
12411
|
}
|
|
12351
12412
|
return ast;
|
|
12352
12413
|
};
|
|
12353
|
-
var createJSONIdentifierAnnotation = (annotated) => match2(getJSONIdentifier(annotated), {
|
|
12354
|
-
onNone: () => void 0,
|
|
12355
|
-
onSome: (identifier2) => ({
|
|
12356
|
-
[JSONIdentifierAnnotationId]: identifier2
|
|
12357
|
-
})
|
|
12358
|
-
});
|
|
12359
12414
|
function changeMap(as6, f) {
|
|
12360
12415
|
let changed = false;
|
|
12361
12416
|
const out = allocate(as6.length);
|
|
@@ -12373,7 +12428,7 @@ var encodedAST_ = (ast, isBound) => {
|
|
|
12373
12428
|
switch (ast._tag) {
|
|
12374
12429
|
case "Declaration": {
|
|
12375
12430
|
const typeParameters = changeMap(ast.typeParameters, (ast2) => encodedAST_(ast2));
|
|
12376
|
-
return typeParameters === ast.typeParameters ? ast : new Declaration(typeParameters, ast.decodeUnknown, ast.encodeUnknown
|
|
12431
|
+
return typeParameters === ast.typeParameters ? ast : new Declaration(typeParameters, ast.decodeUnknown, ast.encodeUnknown);
|
|
12377
12432
|
}
|
|
12378
12433
|
case "TupleType": {
|
|
12379
12434
|
const elements = changeMap(ast.elements, (e) => {
|
|
@@ -12382,7 +12437,7 @@ var encodedAST_ = (ast, isBound) => {
|
|
|
12382
12437
|
});
|
|
12383
12438
|
const restASTs = getRestASTs(ast.rest);
|
|
12384
12439
|
const rest = changeMap(restASTs, (ast2) => encodedAST_(ast2));
|
|
12385
|
-
return elements === ast.elements && rest === restASTs ? ast : new TupleType(elements, rest.map((ast2) => new Type(ast2)), ast.isReadonly
|
|
12440
|
+
return elements === ast.elements && rest === restASTs ? ast : new TupleType(elements, rest.map((ast2) => new Type(ast2)), ast.isReadonly);
|
|
12386
12441
|
}
|
|
12387
12442
|
case "TypeLiteral": {
|
|
12388
12443
|
const propertySignatures = changeMap(ast.propertySignatures, (ps) => {
|
|
@@ -12393,23 +12448,31 @@ var encodedAST_ = (ast, isBound) => {
|
|
|
12393
12448
|
const type = encodedAST_(is2.type);
|
|
12394
12449
|
return type === is2.type ? is2 : new IndexSignature(is2.parameter, type, is2.isReadonly);
|
|
12395
12450
|
});
|
|
12396
|
-
return propertySignatures === ast.propertySignatures && indexSignatures === ast.indexSignatures ? ast : new TypeLiteral(propertySignatures, indexSignatures
|
|
12451
|
+
return propertySignatures === ast.propertySignatures && indexSignatures === ast.indexSignatures ? ast : new TypeLiteral(propertySignatures, indexSignatures);
|
|
12397
12452
|
}
|
|
12398
12453
|
case "Union": {
|
|
12399
12454
|
const types = changeMap(ast.types, (ast2) => encodedAST_(ast2));
|
|
12400
|
-
return types === ast.types ? ast : Union.make(types
|
|
12455
|
+
return types === ast.types ? ast : Union.make(types);
|
|
12456
|
+
}
|
|
12457
|
+
case "Suspend": {
|
|
12458
|
+
let borrowedAnnotations = void 0;
|
|
12459
|
+
const identifier2 = getJSONIdentifier(ast);
|
|
12460
|
+
if (isSome2(identifier2)) {
|
|
12461
|
+
const suffix = "";
|
|
12462
|
+
borrowedAnnotations = {
|
|
12463
|
+
[JSONIdentifierAnnotationId]: `${identifier2.value}Encoded${suffix}`
|
|
12464
|
+
};
|
|
12465
|
+
}
|
|
12466
|
+
return new Suspend(() => encodedAST_(ast.f()), borrowedAnnotations);
|
|
12401
12467
|
}
|
|
12402
|
-
case "Suspend":
|
|
12403
|
-
return new Suspend(() => encodedAST_(ast.f()), createJSONIdentifierAnnotation(ast));
|
|
12404
12468
|
case "Refinement": {
|
|
12405
12469
|
const from = encodedAST_(ast.from);
|
|
12406
|
-
|
|
12407
|
-
|
|
12408
|
-
|
|
12409
|
-
case "Transformation": {
|
|
12410
|
-
const identifier2 = createJSONIdentifierAnnotation(ast);
|
|
12411
|
-
return encodedAST_(identifier2 ? annotations(ast.from, identifier2) : ast.from);
|
|
12470
|
+
{
|
|
12471
|
+
return from;
|
|
12472
|
+
}
|
|
12412
12473
|
}
|
|
12474
|
+
case "Transformation":
|
|
12475
|
+
return encodedAST_(ast.from);
|
|
12413
12476
|
}
|
|
12414
12477
|
return ast;
|
|
12415
12478
|
};
|
|
@@ -12441,7 +12504,7 @@ function getBrands(ast) {
|
|
|
12441
12504
|
var getOrElseExpected = (ast) => getTitleAnnotation(ast).pipe(orElse(() => getDescriptionAnnotation(ast)), orElse(() => getAutoTitleAnnotation(ast)), map2((s) => s + getBrands(ast)));
|
|
12442
12505
|
var getExpected = (ast) => orElse(getIdentifierAnnotation(ast), () => getOrElseExpected(ast));
|
|
12443
12506
|
|
|
12444
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
12507
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/ParseResult.js
|
|
12445
12508
|
var Pointer = class {
|
|
12446
12509
|
path;
|
|
12447
12510
|
actual;
|
|
@@ -12903,7 +12966,7 @@ var go = (ast, isDecoding) => {
|
|
|
12903
12966
|
}) => isNonEmptyArray2(es2) ? left2(new Composite2(ast, input, sortByIndex(es2), sortByIndex(output2))) : right2(sortByIndex(output2));
|
|
12904
12967
|
if (queue && queue.length > 0) {
|
|
12905
12968
|
const cqueue = queue;
|
|
12906
|
-
return
|
|
12969
|
+
return suspend3(() => {
|
|
12907
12970
|
const state = {
|
|
12908
12971
|
es: copy(es),
|
|
12909
12972
|
output: copy(output)
|
|
@@ -12950,7 +13013,7 @@ var go = (ast, isDecoding) => {
|
|
|
12950
13013
|
const output = {};
|
|
12951
13014
|
let inputKeys;
|
|
12952
13015
|
if (onExcessPropertyError || onExcessPropertyPreserve) {
|
|
12953
|
-
inputKeys = ownKeys(input);
|
|
13016
|
+
inputKeys = Reflect.ownKeys(input);
|
|
12954
13017
|
for (const key of inputKeys) {
|
|
12955
13018
|
const te = expected(key, options3);
|
|
12956
13019
|
if (isEither3(te) && isLeft2(te)) {
|
|
@@ -13084,7 +13147,7 @@ var go = (ast, isDecoding) => {
|
|
|
13084
13147
|
return left2(new Composite2(ast, input, sortByIndex(es2), output2));
|
|
13085
13148
|
}
|
|
13086
13149
|
if (options3?.propertyOrder === "original") {
|
|
13087
|
-
const keys6 = inputKeys || ownKeys(input);
|
|
13150
|
+
const keys6 = inputKeys || Reflect.ownKeys(input);
|
|
13088
13151
|
for (const name of expectedKeys) {
|
|
13089
13152
|
if (keys6.indexOf(name) === -1) {
|
|
13090
13153
|
keys6.push(name);
|
|
@@ -13102,7 +13165,7 @@ var go = (ast, isDecoding) => {
|
|
|
13102
13165
|
};
|
|
13103
13166
|
if (queue && queue.length > 0) {
|
|
13104
13167
|
const cqueue = queue;
|
|
13105
|
-
return
|
|
13168
|
+
return suspend3(() => {
|
|
13106
13169
|
const state = {
|
|
13107
13170
|
es: copy(es),
|
|
13108
13171
|
output: Object.assign({}, output)
|
|
@@ -13122,8 +13185,8 @@ var go = (ast, isDecoding) => {
|
|
|
13122
13185
|
}
|
|
13123
13186
|
case "Union": {
|
|
13124
13187
|
const searchTree = getSearchTree(ast.types);
|
|
13125
|
-
const
|
|
13126
|
-
const ownKeysLen =
|
|
13188
|
+
const ownKeys = Reflect.ownKeys(searchTree.keys);
|
|
13189
|
+
const ownKeysLen = ownKeys.length;
|
|
13127
13190
|
const astTypesLen = ast.types.length;
|
|
13128
13191
|
const map22 = /* @__PURE__ */ new Map();
|
|
13129
13192
|
for (let i = 0; i < astTypesLen; i++) {
|
|
@@ -13138,7 +13201,7 @@ var go = (ast, isDecoding) => {
|
|
|
13138
13201
|
if (ownKeysLen > 0) {
|
|
13139
13202
|
if (isRecordOrArray(input)) {
|
|
13140
13203
|
for (let i = 0; i < ownKeysLen; i++) {
|
|
13141
|
-
const name =
|
|
13204
|
+
const name = ownKeys[i];
|
|
13142
13205
|
const buckets = searchTree.keys[name].buckets;
|
|
13143
13206
|
if (Object.prototype.hasOwnProperty.call(input, name)) {
|
|
13144
13207
|
const literal = String(input[name]);
|
|
@@ -13186,7 +13249,7 @@ var go = (ast, isDecoding) => {
|
|
|
13186
13249
|
if (!queue) {
|
|
13187
13250
|
queue = [];
|
|
13188
13251
|
}
|
|
13189
|
-
queue.push((state) =>
|
|
13252
|
+
queue.push((state) => suspend3(() => {
|
|
13190
13253
|
if ("finalResult" in state) {
|
|
13191
13254
|
return _void;
|
|
13192
13255
|
} else {
|
|
@@ -13208,7 +13271,7 @@ var go = (ast, isDecoding) => {
|
|
|
13208
13271
|
);
|
|
13209
13272
|
if (queue && queue.length > 0) {
|
|
13210
13273
|
const cqueue = queue;
|
|
13211
|
-
return
|
|
13274
|
+
return suspend3(() => {
|
|
13212
13275
|
const state = {
|
|
13213
13276
|
es: copy(es)
|
|
13214
13277
|
};
|
|
@@ -13228,7 +13291,7 @@ var go = (ast, isDecoding) => {
|
|
|
13228
13291
|
};
|
|
13229
13292
|
}
|
|
13230
13293
|
case "Suspend": {
|
|
13231
|
-
const get18 = memoizeThunk(() => goMemo(
|
|
13294
|
+
const get18 = memoizeThunk(() => goMemo(ast.f()));
|
|
13232
13295
|
return (a, options3) => get18()(a, options3);
|
|
13233
13296
|
}
|
|
13234
13297
|
}
|
|
@@ -13516,10 +13579,10 @@ var formatTree = (issue) => {
|
|
|
13516
13579
|
}
|
|
13517
13580
|
};
|
|
13518
13581
|
|
|
13519
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
13582
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Redacted.js
|
|
13520
13583
|
var make42 = make41;
|
|
13521
13584
|
|
|
13522
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
13585
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Struct.js
|
|
13523
13586
|
var pick2 = /* @__PURE__ */ dual((args2) => isObject(args2[0]), (s, ...keys6) => {
|
|
13524
13587
|
const out = {};
|
|
13525
13588
|
for (const k of keys6) {
|
|
@@ -13539,7 +13602,7 @@ var omit2 = /* @__PURE__ */ dual((args2) => isObject(args2[0]), (s, ...keys6) =>
|
|
|
13539
13602
|
return out;
|
|
13540
13603
|
});
|
|
13541
13604
|
|
|
13542
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
13605
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Schema.js
|
|
13543
13606
|
var TypeId16 = /* @__PURE__ */ Symbol.for("effect/Schema");
|
|
13544
13607
|
function make43(ast) {
|
|
13545
13608
|
return class SchemaClass {
|
|
@@ -13820,14 +13883,14 @@ var optional = (self) => {
|
|
|
13820
13883
|
};
|
|
13821
13884
|
var preserveMissingMessageAnnotation = /* @__PURE__ */ pickAnnotations([MissingMessageAnnotationId]);
|
|
13822
13885
|
var getDefaultTypeLiteralAST = (fields, records) => {
|
|
13823
|
-
const
|
|
13886
|
+
const ownKeys = Reflect.ownKeys(fields);
|
|
13824
13887
|
const pss = [];
|
|
13825
|
-
if (
|
|
13888
|
+
if (ownKeys.length > 0) {
|
|
13826
13889
|
const from = [];
|
|
13827
13890
|
const to = [];
|
|
13828
13891
|
const transformations = [];
|
|
13829
|
-
for (let i = 0; i <
|
|
13830
|
-
const key =
|
|
13892
|
+
for (let i = 0; i < ownKeys.length; i++) {
|
|
13893
|
+
const key = ownKeys[i];
|
|
13831
13894
|
const field = fields[key];
|
|
13832
13895
|
if (isPropertySignature(field)) {
|
|
13833
13896
|
const ast = field.ast;
|
|
@@ -13891,8 +13954,8 @@ var getDefaultTypeLiteralAST = (fields, records) => {
|
|
|
13891
13954
|
return new TypeLiteral(pss, iss);
|
|
13892
13955
|
};
|
|
13893
13956
|
var lazilyMergeDefaults = (fields, out) => {
|
|
13894
|
-
const
|
|
13895
|
-
for (const key of
|
|
13957
|
+
const ownKeys = Reflect.ownKeys(fields);
|
|
13958
|
+
for (const key of ownKeys) {
|
|
13896
13959
|
const field = fields[key];
|
|
13897
13960
|
if (out[key] === void 0 && isPropertySignature(field)) {
|
|
13898
13961
|
const ast = field.ast;
|
|
@@ -14162,26 +14225,14 @@ function getDisableValidationMakeOption(options3) {
|
|
|
14162
14225
|
return isBoolean(options3) ? options3 : options3?.disableValidation ?? false;
|
|
14163
14226
|
}
|
|
14164
14227
|
|
|
14165
|
-
// ../../../node_modules/.pnpm
|
|
14166
|
-
var ATTR_HTTP_REQUEST_HEADER = (key) => `http.request.header.${key}`;
|
|
14167
|
-
var ATTR_HTTP_REQUEST_METHOD = "http.request.method";
|
|
14168
|
-
var ATTR_HTTP_RESPONSE_HEADER = (key) => `http.response.header.${key}`;
|
|
14169
|
-
var ATTR_HTTP_RESPONSE_STATUS_CODE = "http.response.status_code";
|
|
14170
|
-
var ATTR_SERVER_ADDRESS = "server.address";
|
|
14171
|
-
var ATTR_SERVER_PORT = "server.port";
|
|
14172
|
-
var ATTR_URL_FULL = "url.full";
|
|
14173
|
-
var ATTR_URL_PATH = "url.path";
|
|
14174
|
-
var ATTR_URL_QUERY = "url.query";
|
|
14175
|
-
var ATTR_URL_SCHEME = "url.scheme";
|
|
14176
|
-
|
|
14177
|
-
// ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/FiberRef.js
|
|
14228
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/FiberRef.js
|
|
14178
14229
|
var unsafeMake7 = fiberRefUnsafeMake;
|
|
14179
14230
|
var get13 = fiberRefGet;
|
|
14180
14231
|
var currentContext2 = currentContext;
|
|
14181
14232
|
var currentMinimumLogLevel2 = currentMinimumLogLevel;
|
|
14182
14233
|
var currentTracerEnabled2 = currentTracerEnabled;
|
|
14183
14234
|
|
|
14184
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14235
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/queue.js
|
|
14185
14236
|
var EnqueueSymbolKey = "effect/QueueEnqueue";
|
|
14186
14237
|
var EnqueueTypeId = /* @__PURE__ */ Symbol.for(EnqueueSymbolKey);
|
|
14187
14238
|
var DequeueSymbolKey = "effect/QueueDequeue";
|
|
@@ -14540,7 +14591,7 @@ var unsafeCompleteTakers = (strategy, queue, takers) => {
|
|
|
14540
14591
|
}
|
|
14541
14592
|
};
|
|
14542
14593
|
|
|
14543
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14594
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Queue.js
|
|
14544
14595
|
var bounded3 = bounded2;
|
|
14545
14596
|
var unbounded3 = unbounded2;
|
|
14546
14597
|
var size10 = size9;
|
|
@@ -14548,12 +14599,12 @@ var shutdown2 = shutdown;
|
|
|
14548
14599
|
var offer3 = offer2;
|
|
14549
14600
|
var take2 = take;
|
|
14550
14601
|
|
|
14551
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14602
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelChildExecutorDecision.js
|
|
14552
14603
|
var OP_CONTINUE2 = "Continue";
|
|
14553
14604
|
var OP_CLOSE = "Close";
|
|
14554
14605
|
var OP_YIELD2 = "Yield";
|
|
14555
14606
|
|
|
14556
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14607
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/childExecutorDecision.js
|
|
14557
14608
|
var ChildExecutorDecisionSymbolKey = "effect/ChannelChildExecutorDecision";
|
|
14558
14609
|
var ChildExecutorDecisionTypeId = /* @__PURE__ */ Symbol.for(ChildExecutorDecisionSymbolKey);
|
|
14559
14610
|
var proto5 = {
|
|
@@ -14565,11 +14616,11 @@ var Continue = (_) => {
|
|
|
14565
14616
|
return op;
|
|
14566
14617
|
};
|
|
14567
14618
|
|
|
14568
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14619
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/continuation.js
|
|
14569
14620
|
var OP_CONTINUATION_K = "ContinuationK";
|
|
14570
14621
|
var OP_CONTINUATION_FINALIZER = "ContinuationFinalizer";
|
|
14571
14622
|
|
|
14572
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14623
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/continuation.js
|
|
14573
14624
|
var ContinuationTypeId = /* @__PURE__ */ Symbol.for("effect/ChannelContinuation");
|
|
14574
14625
|
var continuationVariance = {
|
|
14575
14626
|
/* c8 ignore next */
|
|
@@ -14613,11 +14664,11 @@ var ContinuationFinalizerImpl = class {
|
|
|
14613
14664
|
}
|
|
14614
14665
|
};
|
|
14615
14666
|
|
|
14616
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14667
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelUpstreamPullStrategy.js
|
|
14617
14668
|
var OP_PULL_AFTER_NEXT = "PullAfterNext";
|
|
14618
14669
|
var OP_PULL_AFTER_ALL_ENQUEUED = "PullAfterAllEnqueued";
|
|
14619
14670
|
|
|
14620
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14671
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/upstreamPullStrategy.js
|
|
14621
14672
|
var UpstreamPullStrategySymbolKey = "effect/ChannelUpstreamPullStrategy";
|
|
14622
14673
|
var UpstreamPullStrategyTypeId = /* @__PURE__ */ Symbol.for(UpstreamPullStrategySymbolKey);
|
|
14623
14674
|
var upstreamPullStrategyVariance = {
|
|
@@ -14634,7 +14685,7 @@ var PullAfterNext = (emitSeparator) => {
|
|
|
14634
14685
|
return op;
|
|
14635
14686
|
};
|
|
14636
14687
|
|
|
14637
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14688
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channel.js
|
|
14638
14689
|
var OP_BRACKET_OUT = "BracketOut";
|
|
14639
14690
|
var OP_BRIDGE = "Bridge";
|
|
14640
14691
|
var OP_CONCAT_ALL = "ConcatAll";
|
|
@@ -14650,7 +14701,7 @@ var OP_SUCCEED = "Succeed";
|
|
|
14650
14701
|
var OP_SUCCEED_NOW = "SucceedNow";
|
|
14651
14702
|
var OP_SUSPEND2 = "Suspend";
|
|
14652
14703
|
|
|
14653
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14704
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/core-stream.js
|
|
14654
14705
|
var ChannelSymbolKey = "effect/Channel";
|
|
14655
14706
|
var ChannelTypeId2 = /* @__PURE__ */ Symbol.for(ChannelSymbolKey);
|
|
14656
14707
|
var channelVariance2 = {
|
|
@@ -14789,13 +14840,13 @@ var write = (out) => {
|
|
|
14789
14840
|
return op;
|
|
14790
14841
|
};
|
|
14791
14842
|
|
|
14792
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14843
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelState.js
|
|
14793
14844
|
var OP_DONE3 = "Done";
|
|
14794
14845
|
var OP_EMIT2 = "Emit";
|
|
14795
14846
|
var OP_FROM_EFFECT3 = "FromEffect";
|
|
14796
14847
|
var OP_READ2 = "Read";
|
|
14797
14848
|
|
|
14798
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14849
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/channelState.js
|
|
14799
14850
|
var ChannelStateTypeId = /* @__PURE__ */ Symbol.for("effect/ChannelState");
|
|
14800
14851
|
var channelStateVariance = {
|
|
14801
14852
|
/* c8 ignore next */
|
|
@@ -14835,7 +14886,7 @@ var isFromEffect = (self) => self._tag === OP_FROM_EFFECT3;
|
|
|
14835
14886
|
var effect2 = (self) => isFromEffect(self) ? self.effect : _void;
|
|
14836
14887
|
var effectOrUndefinedIgnored = (self) => isFromEffect(self) ? ignore2(self.effect) : void 0;
|
|
14837
14888
|
|
|
14838
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14889
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/subexecutor.js
|
|
14839
14890
|
var OP_PULL_FROM_CHILD = "PullFromChild";
|
|
14840
14891
|
var OP_PULL_FROM_UPSTREAM = "PullFromUpstream";
|
|
14841
14892
|
var OP_DRAIN_CHILD_EXECUTORS = "DrainChildExecutors";
|
|
@@ -14854,7 +14905,7 @@ var PullFromChild = class {
|
|
|
14854
14905
|
const fin1 = this.childExecutor.close(exit4);
|
|
14855
14906
|
const fin2 = this.parentSubexecutor.close(exit4);
|
|
14856
14907
|
if (fin1 !== void 0 && fin2 !== void 0) {
|
|
14857
|
-
return
|
|
14908
|
+
return zipWith3(exit3(fin1), exit3(fin2), (exit1, exit22) => pipe(exit1, zipRight2(exit22)));
|
|
14858
14909
|
} else if (fin1 !== void 0) {
|
|
14859
14910
|
return fin1;
|
|
14860
14911
|
} else if (fin2 !== void 0) {
|
|
@@ -14892,7 +14943,7 @@ var PullFromUpstream = class _PullFromUpstream {
|
|
|
14892
14943
|
const fins = [...this.activeChildExecutors.map((child) => child !== void 0 ? child.childExecutor.close(exit4) : void 0), fin1];
|
|
14893
14944
|
const result = fins.reduce((acc, next) => {
|
|
14894
14945
|
if (acc !== void 0 && next !== void 0) {
|
|
14895
|
-
return
|
|
14946
|
+
return zipWith3(acc, exit3(next), (exit1, exit22) => zipRight2(exit1, exit22));
|
|
14896
14947
|
} else if (acc !== void 0) {
|
|
14897
14948
|
return acc;
|
|
14898
14949
|
} else if (next !== void 0) {
|
|
@@ -14930,7 +14981,7 @@ var DrainChildExecutors = class _DrainChildExecutors {
|
|
|
14930
14981
|
const fins = [...this.activeChildExecutors.map((child) => child !== void 0 ? child.childExecutor.close(exit4) : void 0), fin1];
|
|
14931
14982
|
const result = fins.reduce((acc, next) => {
|
|
14932
14983
|
if (acc !== void 0 && next !== void 0) {
|
|
14933
|
-
return
|
|
14984
|
+
return zipWith3(acc, exit3(next), (exit1, exit22) => zipRight2(exit1, exit22));
|
|
14934
14985
|
} else if (acc !== void 0) {
|
|
14935
14986
|
return acc;
|
|
14936
14987
|
} else if (next !== void 0) {
|
|
@@ -14962,11 +15013,11 @@ var Emit2 = class {
|
|
|
14962
15013
|
}
|
|
14963
15014
|
};
|
|
14964
15015
|
|
|
14965
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15016
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelUpstreamPullRequest.js
|
|
14966
15017
|
var OP_PULLED = "Pulled";
|
|
14967
15018
|
var OP_NO_UPSTREAM = "NoUpstream";
|
|
14968
15019
|
|
|
14969
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15020
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/upstreamPullRequest.js
|
|
14970
15021
|
var UpstreamPullRequestSymbolKey = "effect/ChannelUpstreamPullRequest";
|
|
14971
15022
|
var UpstreamPullRequestTypeId = /* @__PURE__ */ Symbol.for(UpstreamPullRequestSymbolKey);
|
|
14972
15023
|
var upstreamPullRequestVariance = {
|
|
@@ -14989,7 +15040,7 @@ var NoUpstream = (activeDownstreamCount) => {
|
|
|
14989
15040
|
return op;
|
|
14990
15041
|
};
|
|
14991
15042
|
|
|
14992
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15043
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/channelExecutor.js
|
|
14993
15044
|
var ChannelExecutor = class _ChannelExecutor {
|
|
14994
15045
|
_activeSubexecutor = void 0;
|
|
14995
15046
|
_cancelled = void 0;
|
|
@@ -15033,7 +15084,7 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15033
15084
|
if (this._input !== void 0) {
|
|
15034
15085
|
const inputExecutor = this._input;
|
|
15035
15086
|
this._input = void 0;
|
|
15036
|
-
const drainer = () => flatMap9(bridgeInput.awaitRead(), () =>
|
|
15087
|
+
const drainer = () => flatMap9(bridgeInput.awaitRead(), () => suspend3(() => {
|
|
15037
15088
|
const state = inputExecutor.run();
|
|
15038
15089
|
switch (state._tag) {
|
|
15039
15090
|
case OP_DONE3: {
|
|
@@ -15056,7 +15107,7 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15056
15107
|
}
|
|
15057
15108
|
}
|
|
15058
15109
|
}));
|
|
15059
|
-
result = fromEffect5(flatMap9(forkDaemon2(interruptible4(drainer())), (fiber) => sync4(() => this.addFinalizer((exit4) => flatMap9(interrupt4(fiber), () =>
|
|
15110
|
+
result = fromEffect5(flatMap9(forkDaemon2(interruptible4(drainer())), (fiber) => sync4(() => this.addFinalizer((exit4) => flatMap9(interrupt4(fiber), () => suspend3(() => {
|
|
15060
15111
|
const effect3 = this.restorePipe(exit4, inputExecutor);
|
|
15061
15112
|
return effect3 !== void 0 ? effect3 : _void;
|
|
15062
15113
|
}))))));
|
|
@@ -15239,12 +15290,12 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15239
15290
|
map17(([[exit1, exit22], exit32]) => pipe(exit1, zipRight2(exit22), zipRight2(exit32))),
|
|
15240
15291
|
uninterruptible2,
|
|
15241
15292
|
// TODO: remove
|
|
15242
|
-
flatMap9((exit5) =>
|
|
15293
|
+
flatMap9((exit5) => suspend3(() => exit5))
|
|
15243
15294
|
);
|
|
15244
15295
|
}
|
|
15245
15296
|
doneSucceed(value2) {
|
|
15246
15297
|
if (this._doneStack.length === 0) {
|
|
15247
|
-
this._done =
|
|
15298
|
+
this._done = succeed3(value2);
|
|
15248
15299
|
this._currentChannel = void 0;
|
|
15249
15300
|
return Done2();
|
|
15250
15301
|
}
|
|
@@ -15257,18 +15308,18 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15257
15308
|
const finalizers = this.popNextFinalizers();
|
|
15258
15309
|
if (this._doneStack.length === 0) {
|
|
15259
15310
|
this._doneStack = finalizers.reverse();
|
|
15260
|
-
this._done =
|
|
15311
|
+
this._done = succeed3(value2);
|
|
15261
15312
|
this._currentChannel = void 0;
|
|
15262
15313
|
return Done2();
|
|
15263
15314
|
}
|
|
15264
|
-
const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer),
|
|
15315
|
+
const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer), succeed3(value2));
|
|
15265
15316
|
this.storeInProgressFinalizer(finalizerEffect);
|
|
15266
15317
|
const effect3 = pipe(finalizerEffect, ensuring2(sync4(() => this.clearInProgressFinalizer())), uninterruptible2, flatMap9(() => sync4(() => this.doneSucceed(value2))));
|
|
15267
15318
|
return fromEffect5(effect3);
|
|
15268
15319
|
}
|
|
15269
15320
|
doneHalt(cause2) {
|
|
15270
15321
|
if (this._doneStack.length === 0) {
|
|
15271
|
-
this._done =
|
|
15322
|
+
this._done = failCause3(cause2);
|
|
15272
15323
|
this._currentChannel = void 0;
|
|
15273
15324
|
return Done2();
|
|
15274
15325
|
}
|
|
@@ -15285,11 +15336,11 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15285
15336
|
const finalizers = this.popNextFinalizers();
|
|
15286
15337
|
if (this._doneStack.length === 0) {
|
|
15287
15338
|
this._doneStack = finalizers.reverse();
|
|
15288
|
-
this._done =
|
|
15339
|
+
this._done = failCause3(cause2);
|
|
15289
15340
|
this._currentChannel = void 0;
|
|
15290
15341
|
return Done2();
|
|
15291
15342
|
}
|
|
15292
|
-
const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer),
|
|
15343
|
+
const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer), failCause3(cause2));
|
|
15293
15344
|
this.storeInProgressFinalizer(finalizerEffect);
|
|
15294
15345
|
const effect3 = pipe(finalizerEffect, ensuring2(sync4(() => this.clearInProgressFinalizer())), uninterruptible2, flatMap9(() => sync4(() => this.doneHalt(cause2))));
|
|
15295
15346
|
return fromEffect5(effect3);
|
|
@@ -15318,9 +15369,9 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15318
15369
|
}
|
|
15319
15370
|
return pipe(effect3, provide2(this._providedEnv));
|
|
15320
15371
|
}
|
|
15321
|
-
runEnsuring(
|
|
15322
|
-
this.addFinalizer(
|
|
15323
|
-
this._currentChannel =
|
|
15372
|
+
runEnsuring(ensuring6) {
|
|
15373
|
+
this.addFinalizer(ensuring6.finalizer);
|
|
15374
|
+
this._currentChannel = ensuring6.channel;
|
|
15324
15375
|
}
|
|
15325
15376
|
addFinalizer(f) {
|
|
15326
15377
|
this._doneStack.push(new ContinuationFinalizerImpl(f));
|
|
@@ -15414,20 +15465,20 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15414
15465
|
switch (subexecutor._tag) {
|
|
15415
15466
|
case OP_PULL_FROM_UPSTREAM: {
|
|
15416
15467
|
const modifiedParent = new PullFromUpstream(subexecutor.upstreamExecutor, subexecutor.createChild, subexecutor.lastDone !== void 0 ? subexecutor.combineChildResults(subexecutor.lastDone, doneValue) : doneValue, subexecutor.activeChildExecutors, subexecutor.combineChildResults, subexecutor.combineWithChildResult, subexecutor.onPull, subexecutor.onEmit);
|
|
15417
|
-
this._closeLastSubstream = childExecutor.close(
|
|
15468
|
+
this._closeLastSubstream = childExecutor.close(succeed3(doneValue));
|
|
15418
15469
|
this.replaceSubexecutor(modifiedParent);
|
|
15419
15470
|
break;
|
|
15420
15471
|
}
|
|
15421
15472
|
case OP_DRAIN_CHILD_EXECUTORS: {
|
|
15422
15473
|
const modifiedParent = new DrainChildExecutors(subexecutor.upstreamExecutor, subexecutor.lastDone !== void 0 ? subexecutor.combineChildResults(subexecutor.lastDone, doneValue) : doneValue, subexecutor.activeChildExecutors, subexecutor.upstreamDone, subexecutor.combineChildResults, subexecutor.combineWithChildResult, subexecutor.onPull);
|
|
15423
|
-
this._closeLastSubstream = childExecutor.close(
|
|
15474
|
+
this._closeLastSubstream = childExecutor.close(succeed3(doneValue));
|
|
15424
15475
|
this.replaceSubexecutor(modifiedParent);
|
|
15425
15476
|
break;
|
|
15426
15477
|
}
|
|
15427
15478
|
}
|
|
15428
15479
|
}
|
|
15429
15480
|
handleSubexecutorFailure(childExecutor, parentSubexecutor, cause2) {
|
|
15430
|
-
return this.finishSubexecutorWithCloseEffect(
|
|
15481
|
+
return this.finishSubexecutorWithCloseEffect(failCause3(cause2), (exit4) => parentSubexecutor.close(exit4), (exit4) => childExecutor.close(exit4));
|
|
15431
15482
|
}
|
|
15432
15483
|
pullFromUpstream(subexecutor) {
|
|
15433
15484
|
if (subexecutor.activeChildExecutors.length === 0) {
|
|
@@ -15514,7 +15565,7 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15514
15565
|
};
|
|
15515
15566
|
var ifNotNull = (effect3) => effect3 !== void 0 ? effect3 : _void;
|
|
15516
15567
|
var runFinalizers = (finalizers, exit4) => {
|
|
15517
|
-
return pipe(forEach8(finalizers, (fin) => exit3(fin(exit4))), map17((exits) => pipe(all2(exits), getOrElse(() => void_3))), flatMap9((exit5) =>
|
|
15568
|
+
return pipe(forEach8(finalizers, (fin) => exit3(fin(exit4))), map17((exits) => pipe(all2(exits), getOrElse(() => void_3))), flatMap9((exit5) => suspend3(() => exit5)));
|
|
15518
15569
|
};
|
|
15519
15570
|
var readUpstream = (r, onSuccess, onFailure) => {
|
|
15520
15571
|
const readStack = [r];
|
|
@@ -15529,7 +15580,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
15529
15580
|
const emitEffect = current.onEmit(current.upstream.getEmit());
|
|
15530
15581
|
if (readStack.length === 0) {
|
|
15531
15582
|
if (emitEffect === void 0) {
|
|
15532
|
-
return
|
|
15583
|
+
return suspend3(onSuccess);
|
|
15533
15584
|
}
|
|
15534
15585
|
return pipe(emitEffect, matchCauseEffect3({
|
|
15535
15586
|
onFailure,
|
|
@@ -15537,7 +15588,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
15537
15588
|
}));
|
|
15538
15589
|
}
|
|
15539
15590
|
if (emitEffect === void 0) {
|
|
15540
|
-
return
|
|
15591
|
+
return suspend3(() => read());
|
|
15541
15592
|
}
|
|
15542
15593
|
return pipe(emitEffect, matchCauseEffect3({
|
|
15543
15594
|
onFailure,
|
|
@@ -15548,7 +15599,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
15548
15599
|
const doneEffect = current.onDone(current.upstream.getDone());
|
|
15549
15600
|
if (readStack.length === 0) {
|
|
15550
15601
|
if (doneEffect === void 0) {
|
|
15551
|
-
return
|
|
15602
|
+
return suspend3(onSuccess);
|
|
15552
15603
|
}
|
|
15553
15604
|
return pipe(doneEffect, matchCauseEffect3({
|
|
15554
15605
|
onFailure,
|
|
@@ -15556,7 +15607,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
15556
15607
|
}));
|
|
15557
15608
|
}
|
|
15558
15609
|
if (doneEffect === void 0) {
|
|
15559
|
-
return
|
|
15610
|
+
return suspend3(() => read());
|
|
15560
15611
|
}
|
|
15561
15612
|
return pipe(doneEffect, matchCauseEffect3({
|
|
15562
15613
|
onFailure,
|
|
@@ -15565,8 +15616,8 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
15565
15616
|
}
|
|
15566
15617
|
case OP_FROM_EFFECT3: {
|
|
15567
15618
|
readStack.push(current);
|
|
15568
|
-
return pipe(current.onEffect(state.effect), catchAllCause2((cause2) =>
|
|
15569
|
-
const doneEffect = current.onDone(
|
|
15619
|
+
return pipe(current.onEffect(state.effect), catchAllCause2((cause2) => suspend3(() => {
|
|
15620
|
+
const doneEffect = current.onDone(failCause3(cause2));
|
|
15570
15621
|
return doneEffect === void 0 ? _void : doneEffect;
|
|
15571
15622
|
})), matchCauseEffect3({
|
|
15572
15623
|
onFailure,
|
|
@@ -15576,24 +15627,24 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
15576
15627
|
case OP_READ2: {
|
|
15577
15628
|
readStack.push(current);
|
|
15578
15629
|
readStack.push(state);
|
|
15579
|
-
return
|
|
15630
|
+
return suspend3(() => read());
|
|
15580
15631
|
}
|
|
15581
15632
|
}
|
|
15582
15633
|
};
|
|
15583
15634
|
return read();
|
|
15584
15635
|
};
|
|
15585
15636
|
var runIn = /* @__PURE__ */ dual(2, (self, scope4) => {
|
|
15586
|
-
const run3 = (channelDeferred, scopeDeferred, scope5) => acquireUseRelease2(sync4(() => new ChannelExecutor(self, void 0, identity)), (exec) =>
|
|
15637
|
+
const run3 = (channelDeferred, scopeDeferred, scope5) => acquireUseRelease2(sync4(() => new ChannelExecutor(self, void 0, identity)), (exec) => suspend3(() => runScopedInterpret(exec.run(), exec).pipe(intoDeferred2(channelDeferred), zipRight3(_await3(channelDeferred)), zipLeft2(_await3(scopeDeferred)))), (exec, exit4) => {
|
|
15587
15638
|
const finalize = exec.close(exit4);
|
|
15588
15639
|
if (finalize === void 0) {
|
|
15589
15640
|
return _void;
|
|
15590
15641
|
}
|
|
15591
15642
|
return tapErrorCause2(finalize, (cause2) => addFinalizer2(scope5, failCause6(cause2)));
|
|
15592
15643
|
});
|
|
15593
|
-
return uninterruptibleMask3((restore) => all4([fork(scope4, sequential3),
|
|
15644
|
+
return uninterruptibleMask3((restore) => all4([fork(scope4, sequential3), make39(), make39()]).pipe(flatMap9(([child, channelDeferred, scopeDeferred]) => restore(run3(channelDeferred, scopeDeferred, child)).pipe(forkIn2(scope4), flatMap9((fiber) => scope4.addFinalizer((exit4) => {
|
|
15594
15645
|
const interruptors3 = isFailure(exit4) ? interruptors2(exit4.cause) : void 0;
|
|
15595
|
-
return
|
|
15596
|
-
}).pipe(zipRight3(restore(
|
|
15646
|
+
return isDone5(channelDeferred).pipe(flatMap9((isDone6) => isDone6 ? succeed5(scopeDeferred, void 0).pipe(zipRight3(_await2(fiber)), zipRight3(inheritAll2(fiber))) : succeed5(scopeDeferred, void 0).pipe(zipRight3(interruptors3 && size3(interruptors3) > 0 ? interruptAs(fiber, combineAll2(interruptors3)) : interrupt4(fiber)), zipRight3(inheritAll2(fiber)))));
|
|
15647
|
+
}).pipe(zipRight3(restore(_await3(channelDeferred)))))))));
|
|
15597
15648
|
});
|
|
15598
15649
|
var runScopedInterpret = (channelState, exec) => {
|
|
15599
15650
|
const op = channelState;
|
|
@@ -15605,7 +15656,7 @@ var runScopedInterpret = (channelState, exec) => {
|
|
|
15605
15656
|
return runScopedInterpret(exec.run(), exec);
|
|
15606
15657
|
}
|
|
15607
15658
|
case OP_DONE3: {
|
|
15608
|
-
return
|
|
15659
|
+
return suspend3(() => exec.getDone());
|
|
15609
15660
|
}
|
|
15610
15661
|
case OP_READ2: {
|
|
15611
15662
|
return readUpstream(op, () => runScopedInterpret(exec.run(), exec), failCause6);
|
|
@@ -15613,11 +15664,11 @@ var runScopedInterpret = (channelState, exec) => {
|
|
|
15613
15664
|
}
|
|
15614
15665
|
};
|
|
15615
15666
|
|
|
15616
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15667
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelMergeDecision.js
|
|
15617
15668
|
var OP_DONE4 = "Done";
|
|
15618
15669
|
var OP_AWAIT = "Await";
|
|
15619
15670
|
|
|
15620
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15671
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/mergeDecision.js
|
|
15621
15672
|
var MergeDecisionSymbolKey = "effect/ChannelMergeDecision";
|
|
15622
15673
|
var MergeDecisionTypeId = /* @__PURE__ */ Symbol.for(MergeDecisionSymbolKey);
|
|
15623
15674
|
var proto10 = {
|
|
@@ -15636,12 +15687,12 @@ var Await = (f) => {
|
|
|
15636
15687
|
return op;
|
|
15637
15688
|
};
|
|
15638
15689
|
|
|
15639
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15690
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelMergeState.js
|
|
15640
15691
|
var OP_BOTH_RUNNING = "BothRunning";
|
|
15641
15692
|
var OP_LEFT_DONE = "LeftDone";
|
|
15642
15693
|
var OP_RIGHT_DONE = "RightDone";
|
|
15643
15694
|
|
|
15644
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15695
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/mergeState.js
|
|
15645
15696
|
var MergeStateSymbolKey = "effect/ChannelMergeState";
|
|
15646
15697
|
var MergeStateTypeId = /* @__PURE__ */ Symbol.for(MergeStateSymbolKey);
|
|
15647
15698
|
var proto11 = {
|
|
@@ -15667,11 +15718,11 @@ var RightDone = (f) => {
|
|
|
15667
15718
|
return op;
|
|
15668
15719
|
};
|
|
15669
15720
|
|
|
15670
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15721
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelMergeStrategy.js
|
|
15671
15722
|
var OP_BACK_PRESSURE = "BackPressure";
|
|
15672
15723
|
var OP_BUFFER_SLIDING = "BufferSliding";
|
|
15673
15724
|
|
|
15674
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15725
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/mergeStrategy.js
|
|
15675
15726
|
var MergeStrategySymbolKey = "effect/ChannelMergeStrategy";
|
|
15676
15727
|
var MergeStrategyTypeId = /* @__PURE__ */ Symbol.for(MergeStrategySymbolKey);
|
|
15677
15728
|
var proto12 = {
|
|
@@ -15701,7 +15752,7 @@ var match13 = /* @__PURE__ */ dual(2, (self, {
|
|
|
15701
15752
|
}
|
|
15702
15753
|
});
|
|
15703
15754
|
|
|
15704
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15755
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/singleProducerAsyncInput.js
|
|
15705
15756
|
var OP_STATE_EMPTY = "Empty";
|
|
15706
15757
|
var OP_STATE_EMIT = "Emit";
|
|
15707
15758
|
var OP_STATE_ERROR = "Error";
|
|
@@ -15728,7 +15779,7 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
15728
15779
|
this.ref = ref;
|
|
15729
15780
|
}
|
|
15730
15781
|
awaitRead() {
|
|
15731
|
-
return flatten5(modify4(this.ref, (state) => state._tag === OP_STATE_EMPTY ? [
|
|
15782
|
+
return flatten5(modify4(this.ref, (state) => state._tag === OP_STATE_EMPTY ? [_await3(state.notifyProducer), state] : [_void, state]));
|
|
15732
15783
|
}
|
|
15733
15784
|
get close() {
|
|
15734
15785
|
return fiberIdWith2((fiberId2) => this.error(interrupt3(fiberId2)));
|
|
@@ -15737,10 +15788,10 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
15737
15788
|
return flatten5(modify4(this.ref, (state) => {
|
|
15738
15789
|
switch (state._tag) {
|
|
15739
15790
|
case OP_STATE_EMPTY: {
|
|
15740
|
-
return [
|
|
15791
|
+
return [_await3(state.notifyProducer), state];
|
|
15741
15792
|
}
|
|
15742
15793
|
case OP_STATE_EMIT: {
|
|
15743
|
-
return [forEach8(state.notifyConsumers, (deferred) =>
|
|
15794
|
+
return [forEach8(state.notifyConsumers, (deferred) => succeed5(deferred, left2(value2)), {
|
|
15744
15795
|
discard: true
|
|
15745
15796
|
}), stateDone(value2)];
|
|
15746
15797
|
}
|
|
@@ -15754,16 +15805,16 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
15754
15805
|
}));
|
|
15755
15806
|
}
|
|
15756
15807
|
emit(element) {
|
|
15757
|
-
return flatMap9(
|
|
15808
|
+
return flatMap9(make39(), (deferred) => flatten5(modify4(this.ref, (state) => {
|
|
15758
15809
|
switch (state._tag) {
|
|
15759
15810
|
case OP_STATE_EMPTY: {
|
|
15760
|
-
return [
|
|
15811
|
+
return [_await3(state.notifyProducer), state];
|
|
15761
15812
|
}
|
|
15762
15813
|
case OP_STATE_EMIT: {
|
|
15763
15814
|
const notifyConsumer = state.notifyConsumers[0];
|
|
15764
15815
|
const notifyConsumers = state.notifyConsumers.slice(1);
|
|
15765
15816
|
if (notifyConsumer !== void 0) {
|
|
15766
|
-
return [
|
|
15817
|
+
return [succeed5(notifyConsumer, right2(element)), notifyConsumers.length === 0 ? stateEmpty(deferred) : stateEmit(notifyConsumers)];
|
|
15767
15818
|
}
|
|
15768
15819
|
throw new Error("Bug: Channel.SingleProducerAsyncInput.emit - Queue was empty! please report an issue at https://github.com/Effect-TS/effect/issues");
|
|
15769
15820
|
}
|
|
@@ -15780,10 +15831,10 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
15780
15831
|
return flatten5(modify4(this.ref, (state) => {
|
|
15781
15832
|
switch (state._tag) {
|
|
15782
15833
|
case OP_STATE_EMPTY: {
|
|
15783
|
-
return [
|
|
15834
|
+
return [_await3(state.notifyProducer), state];
|
|
15784
15835
|
}
|
|
15785
15836
|
case OP_STATE_EMIT: {
|
|
15786
|
-
return [forEach8(state.notifyConsumers, (deferred) =>
|
|
15837
|
+
return [forEach8(state.notifyConsumers, (deferred) => failCause5(deferred, cause2), {
|
|
15787
15838
|
discard: true
|
|
15788
15839
|
}), stateError(cause2)];
|
|
15789
15840
|
}
|
|
@@ -15797,13 +15848,13 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
15797
15848
|
}));
|
|
15798
15849
|
}
|
|
15799
15850
|
get take() {
|
|
15800
|
-
return this.takeWith((cause2) =>
|
|
15851
|
+
return this.takeWith((cause2) => failCause3(map14(cause2, left2)), (elem) => succeed3(elem), (done7) => fail3(right2(done7)));
|
|
15801
15852
|
}
|
|
15802
15853
|
takeWith(onError4, onElement, onDone2) {
|
|
15803
|
-
return flatMap9(
|
|
15854
|
+
return flatMap9(make39(), (deferred) => flatten5(modify4(this.ref, (state) => {
|
|
15804
15855
|
switch (state._tag) {
|
|
15805
15856
|
case OP_STATE_EMPTY: {
|
|
15806
|
-
return [zipRight3(
|
|
15857
|
+
return [zipRight3(succeed5(state.notifyProducer, void 0), matchCause3(_await3(deferred), {
|
|
15807
15858
|
onFailure: onError4,
|
|
15808
15859
|
onSuccess: match({
|
|
15809
15860
|
onLeft: onDone2,
|
|
@@ -15812,7 +15863,7 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
15812
15863
|
})), stateEmit([deferred])];
|
|
15813
15864
|
}
|
|
15814
15865
|
case OP_STATE_EMIT: {
|
|
15815
|
-
return [matchCause3(
|
|
15866
|
+
return [matchCause3(_await3(deferred), {
|
|
15816
15867
|
onFailure: onError4,
|
|
15817
15868
|
onSuccess: match({
|
|
15818
15869
|
onLeft: onDone2,
|
|
@@ -15830,9 +15881,9 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
15830
15881
|
})));
|
|
15831
15882
|
}
|
|
15832
15883
|
};
|
|
15833
|
-
var make45 = () => pipe(
|
|
15884
|
+
var make45 = () => pipe(make39(), flatMap9((deferred) => make24(stateEmpty(deferred))), map17((ref) => new SingleProducerAsyncInputImpl(ref)));
|
|
15834
15885
|
|
|
15835
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15886
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel.js
|
|
15836
15887
|
var concatMap = /* @__PURE__ */ dual(2, (self, f) => concatMapWith(self, f, () => void 0, () => void 0));
|
|
15837
15888
|
var drain = (self) => {
|
|
15838
15889
|
const drainer = readWithCause({
|
|
@@ -15854,7 +15905,7 @@ var mapOut = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
15854
15905
|
});
|
|
15855
15906
|
return pipeTo(self, reader);
|
|
15856
15907
|
});
|
|
15857
|
-
var
|
|
15908
|
+
var mergeAll5 = (options3) => {
|
|
15858
15909
|
return (channels) => mergeAllWith(options3)(channels, constVoid);
|
|
15859
15910
|
};
|
|
15860
15911
|
var mergeAllWith = ({
|
|
@@ -15869,8 +15920,8 @@ var mergeAllWith = ({
|
|
|
15869
15920
|
yield* addFinalizer2(scope4, shutdown2(queue));
|
|
15870
15921
|
const cancelers = yield* unbounded3();
|
|
15871
15922
|
yield* addFinalizer2(scope4, shutdown2(cancelers));
|
|
15872
|
-
const lastDone = yield*
|
|
15873
|
-
const errorSignal = yield*
|
|
15923
|
+
const lastDone = yield* make24(none2());
|
|
15924
|
+
const errorSignal = yield* make39();
|
|
15874
15925
|
const withPermits = (yield* makeSemaphore2(concurrencyN)).withPermits;
|
|
15875
15926
|
const pull = yield* toPullIn(pipeTo(queueReader, channels), scope4);
|
|
15876
15927
|
function evaluatePull(pull2) {
|
|
@@ -15882,12 +15933,12 @@ var mergeAllWith = ({
|
|
|
15882
15933
|
}), flatMap9((outDone) => update3(lastDone, match2({
|
|
15883
15934
|
onNone: () => some2(outDone.value),
|
|
15884
15935
|
onSome: (lastDone2) => some2(f(lastDone2, outDone.value))
|
|
15885
|
-
}))), catchAllCause2((cause2) =>
|
|
15936
|
+
}))), catchAllCause2((cause2) => isInterrupted2(cause2) ? failCause6(cause2) : offer3(queue, failCause6(cause2)).pipe(zipRight3(succeed5(errorSignal, void 0)), asVoid2)));
|
|
15886
15937
|
}
|
|
15887
15938
|
yield* pull.pipe(matchCauseEffect3({
|
|
15888
15939
|
onFailure: (cause2) => offer3(queue, failCause6(cause2)).pipe(zipRight3(succeed7(false))),
|
|
15889
15940
|
onSuccess: match({
|
|
15890
|
-
onLeft: (outDone) => raceWith2(interruptible4(
|
|
15941
|
+
onLeft: (outDone) => raceWith2(interruptible4(_await3(errorSignal)), interruptible4(withPermits(concurrencyN)(_void)), {
|
|
15891
15942
|
onSelfDone: (_, permitAcquisition) => as4(interrupt4(permitAcquisition), false),
|
|
15892
15943
|
onOtherDone: (_, failureAwait) => zipRight3(interrupt4(failureAwait), get11(lastDone).pipe(flatMap9(match2({
|
|
15893
15944
|
onNone: () => offer3(queue, succeed7(left2(outDone))),
|
|
@@ -15896,23 +15947,23 @@ var mergeAllWith = ({
|
|
|
15896
15947
|
}),
|
|
15897
15948
|
onRight: (channel) => match13(mergeStrategy, {
|
|
15898
15949
|
onBackPressure: () => gen2(function* () {
|
|
15899
|
-
const latch = yield*
|
|
15900
|
-
const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap9((pull2) => race2(exit3(evaluatePull(pull2)), exit3(interruptible4(
|
|
15901
|
-
yield*
|
|
15902
|
-
yield*
|
|
15903
|
-
const errored = yield*
|
|
15950
|
+
const latch = yield* make39();
|
|
15951
|
+
const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap9((pull2) => race2(exit3(evaluatePull(pull2)), exit3(interruptible4(_await3(errorSignal))))), flatMap9(identity)));
|
|
15952
|
+
yield* succeed5(latch, void 0).pipe(zipRight3(raceEffects), withPermits(1), forkIn2(scope4));
|
|
15953
|
+
yield* _await3(latch);
|
|
15954
|
+
const errored = yield* isDone5(errorSignal);
|
|
15904
15955
|
return !errored;
|
|
15905
15956
|
}),
|
|
15906
15957
|
onBufferSliding: () => gen2(function* () {
|
|
15907
|
-
const canceler = yield*
|
|
15908
|
-
const latch = yield*
|
|
15958
|
+
const canceler = yield* make39();
|
|
15959
|
+
const latch = yield* make39();
|
|
15909
15960
|
const size11 = yield* size10(cancelers);
|
|
15910
|
-
yield* take2(cancelers).pipe(flatMap9((canceler2) =>
|
|
15961
|
+
yield* take2(cancelers).pipe(flatMap9((canceler2) => succeed5(canceler2, void 0)), when2(() => size11 >= concurrencyN));
|
|
15911
15962
|
yield* offer3(cancelers, canceler);
|
|
15912
|
-
const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap9((pull2) => exit3(evaluatePull(pull2)).pipe(race2(exit3(interruptible4(
|
|
15913
|
-
yield*
|
|
15914
|
-
yield*
|
|
15915
|
-
const errored = yield*
|
|
15963
|
+
const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap9((pull2) => exit3(evaluatePull(pull2)).pipe(race2(exit3(interruptible4(_await3(errorSignal)))), race2(exit3(interruptible4(_await3(canceler)))))), flatMap9(identity)));
|
|
15964
|
+
yield* succeed5(latch, void 0).pipe(zipRight3(raceEffects), withPermits(1), forkIn2(scope4));
|
|
15965
|
+
yield* _await3(latch);
|
|
15966
|
+
const errored = yield* isDone5(errorSignal);
|
|
15916
15967
|
return !errored;
|
|
15917
15968
|
})
|
|
15918
15969
|
})
|
|
@@ -15929,7 +15980,7 @@ var mergeAllWith = ({
|
|
|
15929
15980
|
}), unwrap);
|
|
15930
15981
|
return embedInput(consumer, input);
|
|
15931
15982
|
}));
|
|
15932
|
-
var mergeMap = /* @__PURE__ */ dual(3, (self, f, options3) =>
|
|
15983
|
+
var mergeMap = /* @__PURE__ */ dual(3, (self, f, options3) => mergeAll5(options3)(mapOut(self, f)));
|
|
15933
15984
|
var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
|
|
15934
15985
|
function merge9(scope4) {
|
|
15935
15986
|
return gen2(function* () {
|
|
@@ -15944,18 +15995,18 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
|
|
|
15944
15995
|
if (op._tag === OP_DONE4) {
|
|
15945
15996
|
return succeed7(fromEffect4(zipRight3(interrupt4(fiber), op.effect)));
|
|
15946
15997
|
}
|
|
15947
|
-
return map17(
|
|
15948
|
-
onFailure: (cause2) => fromEffect4(op.f(
|
|
15998
|
+
return map17(_await2(fiber), match9({
|
|
15999
|
+
onFailure: (cause2) => fromEffect4(op.f(failCause3(cause2))),
|
|
15949
16000
|
onSuccess: match({
|
|
15950
|
-
onLeft: (done8) => fromEffect4(op.f(
|
|
16001
|
+
onLeft: (done8) => fromEffect4(op.f(succeed3(done8))),
|
|
15951
16002
|
onRight: (elem) => zipRight4(write(elem), go2(single(op.f)))
|
|
15952
16003
|
})
|
|
15953
16004
|
}));
|
|
15954
16005
|
}
|
|
15955
16006
|
return match9(exit4, {
|
|
15956
|
-
onFailure: (cause2) => onDecision(done7(
|
|
16007
|
+
onFailure: (cause2) => onDecision(done7(failCause3(cause2))),
|
|
15957
16008
|
onSuccess: match({
|
|
15958
|
-
onLeft: (z) => onDecision(done7(
|
|
16009
|
+
onLeft: (z) => onDecision(done7(succeed3(z))),
|
|
15959
16010
|
onRight: (elem) => succeed7(flatMap12(write(elem), () => flatMap12(fromEffect4(forkIn2(interruptible4(pull), scope4)), (leftFiber) => go2(both2(leftFiber, fiber)))))
|
|
15960
16011
|
})
|
|
15961
16012
|
});
|
|
@@ -15973,18 +16024,18 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
|
|
|
15973
16024
|
}
|
|
15974
16025
|
case OP_LEFT_DONE: {
|
|
15975
16026
|
return unwrap(map17(exit3(pullR), match9({
|
|
15976
|
-
onFailure: (cause2) => fromEffect4(state.f(
|
|
16027
|
+
onFailure: (cause2) => fromEffect4(state.f(failCause3(cause2))),
|
|
15977
16028
|
onSuccess: match({
|
|
15978
|
-
onLeft: (done7) => fromEffect4(state.f(
|
|
16029
|
+
onLeft: (done7) => fromEffect4(state.f(succeed3(done7))),
|
|
15979
16030
|
onRight: (elem) => flatMap12(write(elem), () => go2(LeftDone(state.f)))
|
|
15980
16031
|
})
|
|
15981
16032
|
})));
|
|
15982
16033
|
}
|
|
15983
16034
|
case OP_RIGHT_DONE: {
|
|
15984
16035
|
return unwrap(map17(exit3(pullL), match9({
|
|
15985
|
-
onFailure: (cause2) => fromEffect4(state.f(
|
|
16036
|
+
onFailure: (cause2) => fromEffect4(state.f(failCause3(cause2))),
|
|
15986
16037
|
onSuccess: match({
|
|
15987
|
-
onLeft: (done7) => fromEffect4(state.f(
|
|
16038
|
+
onLeft: (done7) => fromEffect4(state.f(succeed3(done7))),
|
|
15988
16039
|
onRight: (elem) => flatMap12(write(elem), () => go2(RightDone(state.f)))
|
|
15989
16040
|
})
|
|
15990
16041
|
})));
|
|
@@ -15998,7 +16049,7 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
|
|
|
15998
16049
|
});
|
|
15999
16050
|
const leftFiber = interruptible4(pullL).pipe(ensuring2(inherit), forkIn2(scope4));
|
|
16000
16051
|
const rightFiber = interruptible4(pullR).pipe(ensuring2(inherit), forkIn2(scope4));
|
|
16001
|
-
return
|
|
16052
|
+
return zipWith3(leftFiber, rightFiber, (left3, right3) => BothRunning(left3, right3));
|
|
16002
16053
|
})).pipe(flatMap12(go2), embedInput(input));
|
|
16003
16054
|
});
|
|
16004
16055
|
}
|
|
@@ -16023,12 +16074,12 @@ var pipeToOrFail = /* @__PURE__ */ dual(2, (self, that) => suspend5(() => {
|
|
|
16023
16074
|
}));
|
|
16024
16075
|
var run = (self) => scopedWith2((scope4) => runIn(self, scope4));
|
|
16025
16076
|
var runDrain = (self) => run(drain(self));
|
|
16026
|
-
var scoped3 = (effect3) => unwrap(uninterruptibleMask3((restore) => map17(
|
|
16077
|
+
var scoped3 = (effect3) => unwrap(uninterruptibleMask3((restore) => map17(make37(), (scope4) => acquireReleaseOut(tapErrorCause2(restore(extend2(effect3, scope4)), (cause2) => close(scope4, failCause3(cause2))), (_, exit4) => close(scope4, exit4)))));
|
|
16027
16078
|
var scopedWith3 = (f) => unwrapScoped2(map17(scope2, (scope4) => flatMap12(fromEffect4(f(scope4)), write)));
|
|
16028
16079
|
var toPullIn = /* @__PURE__ */ dual(2, (self, scope4) => zip5(sync4(() => new ChannelExecutor(self, void 0, identity)), runtime3()).pipe(tap2(([executor, runtime4]) => addFinalizerExit(scope4, (exit4) => {
|
|
16029
16080
|
const finalizer2 = executor.close(exit4);
|
|
16030
16081
|
return finalizer2 !== void 0 ? provide2(finalizer2, runtime4) : _void;
|
|
16031
|
-
})), uninterruptible2, map17(([executor]) =>
|
|
16082
|
+
})), uninterruptible2, map17(([executor]) => suspend3(() => interpretToPull(executor.run(), executor)))));
|
|
16032
16083
|
var interpretToPull = (channelState, exec) => {
|
|
16033
16084
|
const state = channelState;
|
|
16034
16085
|
switch (state._tag) {
|
|
@@ -16058,8 +16109,8 @@ var writeChunkWriter = (idx, len, chunk2) => {
|
|
|
16058
16109
|
};
|
|
16059
16110
|
var zip6 = /* @__PURE__ */ dual((args2) => isChannel(args2[1]), (self, that, options3) => options3?.concurrent ? mergeWith2(self, {
|
|
16060
16111
|
other: that,
|
|
16061
|
-
onSelfDone: (exit1) => Await((exit22) =>
|
|
16062
|
-
onOtherDone: (exit22) => Await((exit1) =>
|
|
16112
|
+
onSelfDone: (exit1) => Await((exit22) => suspend3(() => zip3(exit1, exit22))),
|
|
16113
|
+
onOtherDone: (exit22) => Await((exit1) => suspend3(() => zip3(exit1, exit22)))
|
|
16063
16114
|
}) : flatMap12(self, (a) => map20(that, (b) => [a, b])));
|
|
16064
16115
|
var zipRight4 = /* @__PURE__ */ dual((args2) => isChannel(args2[1]), (self, that, options3) => options3?.concurrent ? map20(zip6(self, that, {
|
|
16065
16116
|
concurrent: true
|
|
@@ -16072,10 +16123,10 @@ var ChannelException = (error) => ({
|
|
|
16072
16123
|
});
|
|
16073
16124
|
var isChannelException = (u) => hasProperty(u, ChannelExceptionTypeId);
|
|
16074
16125
|
|
|
16075
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16126
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Runtime.js
|
|
16076
16127
|
var runFork3 = unsafeFork3;
|
|
16077
16128
|
|
|
16078
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16129
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/sink.js
|
|
16079
16130
|
var SinkTypeId2 = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
16080
16131
|
var sinkVariance2 = {
|
|
16081
16132
|
/* c8 ignore next */
|
|
@@ -16110,7 +16161,7 @@ var forEachChunk = (f) => {
|
|
|
16110
16161
|
var fromEffect6 = (effect3) => new SinkImpl(fromEffect4(effect3));
|
|
16111
16162
|
var toChannel = (self) => isEffect2(self) ? toChannel(fromEffect6(self)) : self.channel;
|
|
16112
16163
|
|
|
16113
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16164
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/stream.js
|
|
16114
16165
|
var StreamSymbolKey = "effect/Stream";
|
|
16115
16166
|
var StreamTypeId2 = /* @__PURE__ */ Symbol.for(StreamSymbolKey);
|
|
16116
16167
|
var streamVariance = {
|
|
@@ -16129,7 +16180,7 @@ var StreamImpl = class {
|
|
|
16129
16180
|
}
|
|
16130
16181
|
};
|
|
16131
16182
|
var isStream = (u) => hasProperty(u, StreamTypeId2) || isEffect2(u);
|
|
16132
|
-
var
|
|
16183
|
+
var ensuring4 = /* @__PURE__ */ dual(2, (self, finalizer2) => new StreamImpl(pipe(toChannel2(self), ensuring3(finalizer2))));
|
|
16133
16184
|
var fail11 = (error) => fromEffectOption(fail6(some2(error)));
|
|
16134
16185
|
var flatMap14 = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, f, options3) => {
|
|
16135
16186
|
const bufferSize = options3?.bufferSize ?? 16;
|
|
@@ -16243,8 +16294,8 @@ var unfoldChunkEffect = (s, f) => suspend6(() => {
|
|
|
16243
16294
|
});
|
|
16244
16295
|
var unwrapScoped3 = (effect3) => flatten10(scoped4(effect3));
|
|
16245
16296
|
|
|
16246
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16247
|
-
var
|
|
16297
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Stream.js
|
|
16298
|
+
var ensuring5 = ensuring4;
|
|
16248
16299
|
var fail12 = fail11;
|
|
16249
16300
|
var fromReadableStream2 = fromReadableStream;
|
|
16250
16301
|
var suspend7 = suspend6;
|
|
@@ -16258,7 +16309,7 @@ var TypeIdError = (typeId, tag2) => {
|
|
|
16258
16309
|
return Base3;
|
|
16259
16310
|
};
|
|
16260
16311
|
|
|
16261
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16312
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/Cookies.js
|
|
16262
16313
|
var TypeId18 = /* @__PURE__ */ Symbol.for("@effect/platform/Cookies");
|
|
16263
16314
|
var CookieTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Cookies/Cookie");
|
|
16264
16315
|
var Proto2 = {
|
|
@@ -16441,7 +16492,7 @@ var tryDecodeURIComponent = (str) => {
|
|
|
16441
16492
|
}
|
|
16442
16493
|
};
|
|
16443
16494
|
|
|
16444
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16495
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/Headers.js
|
|
16445
16496
|
var HeadersTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Headers");
|
|
16446
16497
|
var Proto3 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
16447
16498
|
[HeadersTypeId]: HeadersTypeId,
|
|
@@ -16540,10 +16591,10 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
16540
16591
|
});
|
|
16541
16592
|
var currentRedactedNames = /* @__PURE__ */ globalValue("@effect/platform/Headers/currentRedactedNames", () => unsafeMake7(["authorization", "cookie", "set-cookie", "x-api-key"]));
|
|
16542
16593
|
|
|
16543
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16594
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/httpClientError.js
|
|
16544
16595
|
var TypeId19 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientError");
|
|
16545
16596
|
|
|
16546
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16597
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/HttpClientError.js
|
|
16547
16598
|
var TypeId20 = TypeId19;
|
|
16548
16599
|
var RequestError = class extends (/* @__PURE__ */ TypeIdError(TypeId20, "RequestError")) {
|
|
16549
16600
|
get methodAndUrl() {
|
|
@@ -16563,7 +16614,7 @@ var ResponseError = class extends (/* @__PURE__ */ TypeIdError(TypeId20, "Respon
|
|
|
16563
16614
|
}
|
|
16564
16615
|
};
|
|
16565
16616
|
|
|
16566
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16617
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/UrlParams.js
|
|
16567
16618
|
var fromInput3 = (input) => {
|
|
16568
16619
|
const parsed = fromInputNested(input);
|
|
16569
16620
|
const out = [];
|
|
@@ -16600,9 +16651,16 @@ var fromInputNested = (input) => {
|
|
|
16600
16651
|
};
|
|
16601
16652
|
var empty31 = [];
|
|
16602
16653
|
var setAll4 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
16603
|
-
const
|
|
16604
|
-
const keys6 =
|
|
16605
|
-
|
|
16654
|
+
const out = fromInput3(input);
|
|
16655
|
+
const keys6 = /* @__PURE__ */ new Set();
|
|
16656
|
+
for (let i = 0; i < out.length; i++) {
|
|
16657
|
+
keys6.add(out[i][0]);
|
|
16658
|
+
}
|
|
16659
|
+
for (let i = 0; i < self.length; i++) {
|
|
16660
|
+
if (keys6.has(self[i][0])) continue;
|
|
16661
|
+
out.push(self[i]);
|
|
16662
|
+
}
|
|
16663
|
+
return out;
|
|
16606
16664
|
});
|
|
16607
16665
|
var makeUrl = (url, params, hash2) => {
|
|
16608
16666
|
try {
|
|
@@ -16628,7 +16686,7 @@ var baseUrl = () => {
|
|
|
16628
16686
|
return void 0;
|
|
16629
16687
|
};
|
|
16630
16688
|
|
|
16631
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16689
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/HttpIncomingMessage.js
|
|
16632
16690
|
var TypeId21 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpIncomingMessage");
|
|
16633
16691
|
var schemaBodyJson = (schema, options3) => {
|
|
16634
16692
|
const parse2 = decodeUnknown2(schema, options3);
|
|
@@ -16659,13 +16717,13 @@ var inspect = (self, that) => {
|
|
|
16659
16717
|
return obj;
|
|
16660
16718
|
};
|
|
16661
16719
|
|
|
16662
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16720
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/HttpTraceContext.js
|
|
16663
16721
|
var toHeaders = (span2) => unsafeFromRecord({
|
|
16664
16722
|
b3: `${span2.traceId}-${span2.spanId}-${span2.sampled ? "1" : "0"}${span2.parent._tag === "Some" ? `-${span2.parent.value.spanId}` : ""}`,
|
|
16665
16723
|
traceparent: `00-${span2.traceId}-${span2.spanId}-${span2.sampled ? "01" : "00"}`
|
|
16666
16724
|
});
|
|
16667
16725
|
|
|
16668
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16726
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/httpBody.js
|
|
16669
16727
|
var TypeId22 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpBody");
|
|
16670
16728
|
var ErrorTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/HttpBody/HttpBodyError");
|
|
16671
16729
|
var bodyError = /* @__PURE__ */ tagged2("HttpBodyError");
|
|
@@ -16730,7 +16788,7 @@ var json = (body) => try_2({
|
|
|
16730
16788
|
})
|
|
16731
16789
|
});
|
|
16732
16790
|
|
|
16733
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16791
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/httpClientRequest.js
|
|
16734
16792
|
var TypeId23 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientRequest");
|
|
16735
16793
|
var Proto4 = {
|
|
16736
16794
|
[TypeId23]: TypeId23,
|
|
@@ -16837,7 +16895,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
|
|
|
16837
16895
|
});
|
|
16838
16896
|
var bodyJson = /* @__PURE__ */ dual(2, (self, body) => map17(json(body), (body2) => setBody(self, body2)));
|
|
16839
16897
|
|
|
16840
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16898
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/httpClientResponse.js
|
|
16841
16899
|
var TypeId24 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientResponse");
|
|
16842
16900
|
var fromWeb = (request, source) => new ClientResponseImpl(request, source);
|
|
16843
16901
|
var ClientResponseImpl = class extends Class {
|
|
@@ -16948,7 +17006,17 @@ var ClientResponseImpl = class extends Class {
|
|
|
16948
17006
|
}
|
|
16949
17007
|
};
|
|
16950
17008
|
|
|
16951
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17009
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/httpClient.js
|
|
17010
|
+
var ATTR_HTTP_REQUEST_HEADER = (key) => `http.request.header.${key}`;
|
|
17011
|
+
var ATTR_HTTP_REQUEST_METHOD = "http.request.method";
|
|
17012
|
+
var ATTR_HTTP_RESPONSE_HEADER = (key) => `http.response.header.${key}`;
|
|
17013
|
+
var ATTR_HTTP_RESPONSE_STATUS_CODE = "http.response.status_code";
|
|
17014
|
+
var ATTR_SERVER_ADDRESS = "server.address";
|
|
17015
|
+
var ATTR_SERVER_PORT = "server.port";
|
|
17016
|
+
var ATTR_URL_FULL = "url.full";
|
|
17017
|
+
var ATTR_URL_PATH = "url.path";
|
|
17018
|
+
var ATTR_URL_SCHEME = "url.scheme";
|
|
17019
|
+
var ATTR_URL_QUERY = "url.query";
|
|
16952
17020
|
var TypeId25 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClient");
|
|
16953
17021
|
var tag = /* @__PURE__ */ GenericTag("@effect/platform/HttpClient");
|
|
16954
17022
|
var currentTracerDisabledWhen = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("@effect/platform/HttpClient/tracerDisabledWhen"), () => unsafeMake7(constFalse));
|
|
@@ -17048,7 +17116,7 @@ var make49 = (f) => makeWith((effect3) => flatMap9(effect3, (request) => withFib
|
|
|
17048
17116
|
return succeed7(new InterruptibleResponse(response, controller));
|
|
17049
17117
|
},
|
|
17050
17118
|
onFailure(cause2) {
|
|
17051
|
-
if (
|
|
17119
|
+
if (isInterrupted2(cause2)) {
|
|
17052
17120
|
controller.abort();
|
|
17053
17121
|
}
|
|
17054
17122
|
return failCause6(cause2);
|
|
@@ -17090,7 +17158,7 @@ var make49 = (f) => makeWith((effect3) => flatMap9(effect3, (request) => withFib
|
|
|
17090
17158
|
return succeed7(new InterruptibleResponse(response, controller));
|
|
17091
17159
|
},
|
|
17092
17160
|
onFailure(cause2) {
|
|
17093
|
-
if (!scopedController &&
|
|
17161
|
+
if (!scopedController && isInterrupted2(cause2)) {
|
|
17094
17162
|
controller.abort();
|
|
17095
17163
|
}
|
|
17096
17164
|
return failCause6(cause2);
|
|
@@ -17108,7 +17176,7 @@ var InterruptibleResponse = class {
|
|
|
17108
17176
|
[TypeId24] = TypeId24;
|
|
17109
17177
|
[TypeId21] = TypeId21;
|
|
17110
17178
|
applyInterrupt(effect3) {
|
|
17111
|
-
return
|
|
17179
|
+
return suspend3(() => {
|
|
17112
17180
|
responseRegistry.unregister(this.original);
|
|
17113
17181
|
return onInterrupt2(effect3, () => sync4(() => {
|
|
17114
17182
|
this.controller.abort();
|
|
@@ -17148,12 +17216,9 @@ var InterruptibleResponse = class {
|
|
|
17148
17216
|
get stream() {
|
|
17149
17217
|
return suspend7(() => {
|
|
17150
17218
|
responseRegistry.unregister(this.original);
|
|
17151
|
-
return
|
|
17152
|
-
|
|
17153
|
-
|
|
17154
|
-
}
|
|
17155
|
-
return _void;
|
|
17156
|
-
});
|
|
17219
|
+
return ensuring5(this.original.stream, sync4(() => {
|
|
17220
|
+
this.controller.abort();
|
|
17221
|
+
}));
|
|
17157
17222
|
});
|
|
17158
17223
|
}
|
|
17159
17224
|
toJSON() {
|
|
@@ -17187,16 +17252,16 @@ var transformResponse = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
17187
17252
|
});
|
|
17188
17253
|
var layerMergedContext = (effect3) => effect(tag, flatMap9(context2(), (context5) => map17(effect3, (client) => transformResponse(client, mapInputContext2((input) => merge3(context5, input))))));
|
|
17189
17254
|
|
|
17190
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17255
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/HttpClient.js
|
|
17191
17256
|
var HttpClient = tag;
|
|
17192
17257
|
|
|
17193
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17258
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/HttpClientRequest.js
|
|
17194
17259
|
var get17 = get15;
|
|
17195
17260
|
var post3 = post;
|
|
17196
17261
|
var setUrlParams2 = setUrlParams;
|
|
17197
17262
|
var bodyJson2 = bodyJson;
|
|
17198
17263
|
|
|
17199
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17264
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/fetchHttpClient.js
|
|
17200
17265
|
var fetchTagKey = "@effect/platform/FetchHttpClient/Fetch";
|
|
17201
17266
|
var requestInitTagKey = "@effect/platform/FetchHttpClient/FetchOptions";
|
|
17202
17267
|
var fetch = /* @__PURE__ */ make49((request, url, signal, fiber) => {
|
|
@@ -17232,7 +17297,7 @@ var fetch = /* @__PURE__ */ make49((request, url, signal, fiber) => {
|
|
|
17232
17297
|
});
|
|
17233
17298
|
var layer = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed7(fetch));
|
|
17234
17299
|
|
|
17235
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17300
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/FetchHttpClient.js
|
|
17236
17301
|
var layer2 = layer;
|
|
17237
17302
|
|
|
17238
17303
|
// ../../utils/dist/effect/Resource/schema.js
|
|
@@ -17420,6 +17485,9 @@ Logging_exports.filterLevelOrNever;
|
|
|
17420
17485
|
var InvalidAjaxMethodError = class extends TaggedError(
|
|
17421
17486
|
"@brytdesigns/ajax-client/InvalidAjaxMethodError"
|
|
17422
17487
|
) {
|
|
17488
|
+
/**
|
|
17489
|
+
* Constructs a new instance of InvalidAjaxMethodError with a default error message.
|
|
17490
|
+
*/
|
|
17423
17491
|
constructor() {
|
|
17424
17492
|
super({ message: "Invalid HTTP method | Allowed: 'get' or 'post'" });
|
|
17425
17493
|
}
|