@brytdesigns/shopify-ajax-predictive-search-api 1.0.0 → 1.0.2
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/effect/schema.js.map +1 -1
- package/dist/esm/index.js +567 -499
- package/dist/esm/index.js.map +1 -1
- package/dist/main/effect/schema.js.map +1 -1
- package/dist/main/index.d.ts +1 -1
- package/dist/main/index.js +3 -2
- package/dist/main/index.js.map +1 -1
- package/package.json +5 -5
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 isStrictEquivalent = (x, y) => x === y;
|
|
109
109
|
var strict = () => isStrictEquivalent;
|
|
@@ -123,7 +123,7 @@ var array = (item) => make((self, that) => {
|
|
|
123
123
|
return true;
|
|
124
124
|
});
|
|
125
125
|
|
|
126
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
126
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/GlobalValue.js
|
|
127
127
|
var globalStoreId = `effect/GlobalValue`;
|
|
128
128
|
var globalStore;
|
|
129
129
|
var globalValue = (id2, compute) => {
|
|
@@ -137,7 +137,7 @@ var globalValue = (id2, compute) => {
|
|
|
137
137
|
return globalStore.get(id2);
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
140
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Predicate.js
|
|
141
141
|
var isString = (input) => typeof input === "string";
|
|
142
142
|
var isNumber = (input) => typeof input === "number";
|
|
143
143
|
var isBoolean = (input) => typeof input === "boolean";
|
|
@@ -155,11 +155,11 @@ var isTagged = /* @__PURE__ */ dual(2, (self, tag2) => hasProperty(self, "_tag")
|
|
|
155
155
|
var isNullable = (input) => input === null || input === void 0;
|
|
156
156
|
var isNotNullable = (input) => input !== null && input !== void 0;
|
|
157
157
|
var isDate = (input) => input instanceof Date;
|
|
158
|
-
var isIterable = (input) => hasProperty(input, Symbol.iterator);
|
|
158
|
+
var isIterable = (input) => typeof input === "string" || hasProperty(input, Symbol.iterator);
|
|
159
159
|
var isRecord = (input) => isRecordOrArray(input) && !Array.isArray(input);
|
|
160
160
|
var isPromiseLike = (input) => hasProperty(input, "then") && isFunction2(input.then);
|
|
161
161
|
|
|
162
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
162
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/errors.js
|
|
163
163
|
var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
|
|
164
164
|
var SingleShotGen = class _SingleShotGen {
|
|
165
165
|
self;
|
|
@@ -359,7 +359,7 @@ var forced = {
|
|
|
359
359
|
var isNotOptimizedAway = /* @__PURE__ */ standard.effect_internal_function(() => new Error().stack)?.includes("effect_internal_function") === true;
|
|
360
360
|
var internalCall = isNotOptimizedAway ? standard.effect_internal_function : forced.effect_internal_function;
|
|
361
361
|
|
|
362
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
362
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Hash.js
|
|
363
363
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
364
364
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
365
365
|
var hash = (self) => {
|
|
@@ -465,7 +465,7 @@ var cached = function() {
|
|
|
465
465
|
return hash2;
|
|
466
466
|
};
|
|
467
467
|
|
|
468
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
468
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Equal.js
|
|
469
469
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
470
470
|
function equals() {
|
|
471
471
|
if (arguments.length === 1) {
|
|
@@ -519,7 +519,7 @@ function compareBoth(self, that) {
|
|
|
519
519
|
var isEqual = (u) => hasProperty(u, symbol2);
|
|
520
520
|
var equivalence = () => equals;
|
|
521
521
|
|
|
522
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
522
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Inspectable.js
|
|
523
523
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
524
524
|
var toJSON = (x) => {
|
|
525
525
|
try {
|
|
@@ -533,6 +533,73 @@ var toJSON = (x) => {
|
|
|
533
533
|
}
|
|
534
534
|
return redact(x);
|
|
535
535
|
};
|
|
536
|
+
var CIRCULAR = "[Circular]";
|
|
537
|
+
function formatDate(date) {
|
|
538
|
+
try {
|
|
539
|
+
return date.toISOString();
|
|
540
|
+
} catch {
|
|
541
|
+
return "Invalid Date";
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
function safeToString(input) {
|
|
545
|
+
try {
|
|
546
|
+
const s = input.toString();
|
|
547
|
+
return typeof s === "string" ? s : String(s);
|
|
548
|
+
} catch {
|
|
549
|
+
return "[toString threw]";
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
function formatPropertyKey(name) {
|
|
553
|
+
return isString(name) ? JSON.stringify(name) : String(name);
|
|
554
|
+
}
|
|
555
|
+
function formatUnknown(input, options3) {
|
|
556
|
+
const seen = /* @__PURE__ */ new WeakSet();
|
|
557
|
+
const wrap = (v, body) => {
|
|
558
|
+
const ctor = v?.constructor;
|
|
559
|
+
return ctor && ctor !== Object.prototype.constructor && ctor.name ? `${ctor.name}(${body})` : body;
|
|
560
|
+
};
|
|
561
|
+
const ownKeys = (o) => {
|
|
562
|
+
try {
|
|
563
|
+
return Reflect.ownKeys(o);
|
|
564
|
+
} catch {
|
|
565
|
+
return ["[ownKeys threw]"];
|
|
566
|
+
}
|
|
567
|
+
};
|
|
568
|
+
function go2(v, d = 0) {
|
|
569
|
+
if (Array.isArray(v)) {
|
|
570
|
+
if (seen.has(v)) return CIRCULAR;
|
|
571
|
+
seen.add(v);
|
|
572
|
+
return `[${v.map((x) => go2(x, d)).join(",")}]`;
|
|
573
|
+
}
|
|
574
|
+
if (isDate(v)) return formatDate(v);
|
|
575
|
+
if (hasProperty(v, "toString") && isFunction2(v["toString"]) && v["toString"] !== Object.prototype.toString && v["toString"] !== Array.prototype.toString) {
|
|
576
|
+
const s = safeToString(v);
|
|
577
|
+
if (v instanceof Error && v.cause) {
|
|
578
|
+
return `${s} (cause: ${go2(v.cause, d)})`;
|
|
579
|
+
}
|
|
580
|
+
return s;
|
|
581
|
+
}
|
|
582
|
+
if (isString(v)) return JSON.stringify(v);
|
|
583
|
+
if (isNumber(v) || v == null || isBoolean(v) || isSymbol(v)) return String(v);
|
|
584
|
+
if (isBigInt(v)) return String(v) + "n";
|
|
585
|
+
if (v instanceof Set || v instanceof Map) {
|
|
586
|
+
if (seen.has(v)) return CIRCULAR;
|
|
587
|
+
seen.add(v);
|
|
588
|
+
return `${v.constructor.name}(${go2(Array.from(v), d)})`;
|
|
589
|
+
}
|
|
590
|
+
if (isObject(v)) {
|
|
591
|
+
if (seen.has(v)) return CIRCULAR;
|
|
592
|
+
seen.add(v);
|
|
593
|
+
const keys6 = ownKeys(v);
|
|
594
|
+
{
|
|
595
|
+
const body2 = `{${keys6.map((k) => `${formatPropertyKey(k)}:${go2(v[k], d)}`).join(",")}}`;
|
|
596
|
+
return wrap(v, body2);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
return String(v);
|
|
600
|
+
}
|
|
601
|
+
return go2(input, 0);
|
|
602
|
+
}
|
|
536
603
|
var format = (x) => JSON.stringify(x, null, 2);
|
|
537
604
|
var BaseProto = {
|
|
538
605
|
toJSON() {
|
|
@@ -596,7 +663,7 @@ var redact = (u) => {
|
|
|
596
663
|
return u;
|
|
597
664
|
};
|
|
598
665
|
|
|
599
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
666
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Pipeable.js
|
|
600
667
|
var pipeArguments = (self, args2) => {
|
|
601
668
|
switch (args2.length) {
|
|
602
669
|
case 0:
|
|
@@ -629,7 +696,7 @@ var pipeArguments = (self, args2) => {
|
|
|
629
696
|
}
|
|
630
697
|
};
|
|
631
698
|
|
|
632
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
699
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/effect.js
|
|
633
700
|
var OP_ASYNC = "Async";
|
|
634
701
|
var OP_COMMIT = "Commit";
|
|
635
702
|
var OP_FAILURE = "Failure";
|
|
@@ -646,11 +713,11 @@ var OP_WITH_RUNTIME = "WithRuntime";
|
|
|
646
713
|
var OP_YIELD = "Yield";
|
|
647
714
|
var OP_REVERT_FLAGS = "RevertFlags";
|
|
648
715
|
|
|
649
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
650
|
-
var moduleVersion = "3.
|
|
716
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/version.js
|
|
717
|
+
var moduleVersion = "3.19.6";
|
|
651
718
|
var getCurrentVersion = () => moduleVersion;
|
|
652
719
|
|
|
653
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
720
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/effectable.js
|
|
654
721
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
655
722
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
656
723
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -743,7 +810,7 @@ var Base = /* @__PURE__ */ function() {
|
|
|
743
810
|
return Base3;
|
|
744
811
|
}();
|
|
745
812
|
|
|
746
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
813
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/option.js
|
|
747
814
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
748
815
|
var CommonProto = {
|
|
749
816
|
...EffectPrototype,
|
|
@@ -801,7 +868,7 @@ var some = (value2) => {
|
|
|
801
868
|
return a;
|
|
802
869
|
};
|
|
803
870
|
|
|
804
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
871
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/either.js
|
|
805
872
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
806
873
|
var CommonProto2 = {
|
|
807
874
|
...EffectPrototype,
|
|
@@ -864,7 +931,7 @@ var right = (right3) => {
|
|
|
864
931
|
};
|
|
865
932
|
var fromOption = /* @__PURE__ */ dual(2, (self, onNone) => isNone(self) ? left(onNone()) : right(self.value));
|
|
866
933
|
|
|
867
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
934
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Either.js
|
|
868
935
|
var right2 = right;
|
|
869
936
|
var left2 = left;
|
|
870
937
|
var fromOption2 = fromOption;
|
|
@@ -893,16 +960,16 @@ var getOrThrowWith = /* @__PURE__ */ dual(2, (self, onLeft) => {
|
|
|
893
960
|
});
|
|
894
961
|
var getOrThrow = /* @__PURE__ */ getOrThrowWith(() => new Error("getOrThrow called on a Left"));
|
|
895
962
|
|
|
896
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
963
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/array.js
|
|
897
964
|
var isNonEmptyArray = (self) => self.length > 0;
|
|
898
965
|
|
|
899
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
966
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Order.js
|
|
900
967
|
var make2 = (compare2) => (self, that) => self === that ? 0 : compare2(self, that);
|
|
901
968
|
var number3 = /* @__PURE__ */ make2((self, that) => self < that ? -1 : 1);
|
|
902
969
|
var mapInput2 = /* @__PURE__ */ dual(2, (self, f) => make2((b1, b2) => self(f(b1), f(b2))));
|
|
903
970
|
var greaterThan = (O) => dual(2, (self, that) => O(self, that) === 1);
|
|
904
971
|
|
|
905
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
972
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Option.js
|
|
906
973
|
var none2 = () => none;
|
|
907
974
|
var some2 = some;
|
|
908
975
|
var isOption2 = isOption;
|
|
@@ -935,10 +1002,10 @@ var _equivalence = /* @__PURE__ */ equivalence();
|
|
|
935
1002
|
var contains = /* @__PURE__ */ containsWith(_equivalence);
|
|
936
1003
|
var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false : refinement(self.value));
|
|
937
1004
|
|
|
938
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1005
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Tuple.js
|
|
939
1006
|
var make3 = (...elements) => elements;
|
|
940
1007
|
|
|
941
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1008
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Record.js
|
|
942
1009
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
943
1010
|
const out = {
|
|
944
1011
|
...self
|
|
@@ -950,7 +1017,7 @@ var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
950
1017
|
});
|
|
951
1018
|
var keys = (self) => Object.keys(self);
|
|
952
1019
|
|
|
953
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1020
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Array.js
|
|
954
1021
|
var allocate = (n) => new Array(n);
|
|
955
1022
|
var makeBy = /* @__PURE__ */ dual(2, (n, f) => {
|
|
956
1023
|
const max5 = Math.max(1, Math.floor(n));
|
|
@@ -1125,7 +1192,7 @@ var dedupeWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => {
|
|
|
1125
1192
|
var dedupe = (self) => dedupeWith(self, equivalence());
|
|
1126
1193
|
var join = /* @__PURE__ */ dual(2, (self, sep) => fromIterable(self).join(sep));
|
|
1127
1194
|
|
|
1128
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1195
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Chunk.js
|
|
1129
1196
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Chunk");
|
|
1130
1197
|
function copy2(src, srcPos, dest, destPos, len) {
|
|
1131
1198
|
for (let i = srcPos; i < Math.min(src.length, srcPos + len); i++) {
|
|
@@ -1464,14 +1531,14 @@ var map5 = /* @__PURE__ */ dual(2, (self, f) => self.backing._tag === "ISingleto
|
|
|
1464
1531
|
var tailNonEmpty2 = (self) => drop2(self, 1);
|
|
1465
1532
|
var reduce2 = reduce;
|
|
1466
1533
|
|
|
1467
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1534
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashMap/config.js
|
|
1468
1535
|
var SIZE = 5;
|
|
1469
1536
|
var BUCKET_SIZE = /* @__PURE__ */ Math.pow(2, SIZE);
|
|
1470
1537
|
var MASK = BUCKET_SIZE - 1;
|
|
1471
1538
|
var MAX_INDEX_NODE = BUCKET_SIZE / 2;
|
|
1472
1539
|
var MIN_ARRAY_NODE = BUCKET_SIZE / 4;
|
|
1473
1540
|
|
|
1474
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1541
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashMap/bitwise.js
|
|
1475
1542
|
function popcount(x) {
|
|
1476
1543
|
x -= x >> 1 & 1431655765;
|
|
1477
1544
|
x = (x & 858993459) + (x >> 2 & 858993459);
|
|
@@ -1490,13 +1557,13 @@ function fromBitmap(bitmap, bit) {
|
|
|
1490
1557
|
return popcount(bitmap & bit - 1);
|
|
1491
1558
|
}
|
|
1492
1559
|
|
|
1493
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1560
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/stack.js
|
|
1494
1561
|
var make5 = (value2, previous) => ({
|
|
1495
1562
|
value: value2,
|
|
1496
1563
|
previous
|
|
1497
1564
|
});
|
|
1498
1565
|
|
|
1499
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1566
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashMap/array.js
|
|
1500
1567
|
function arrayUpdate(mutate4, at, v, arr) {
|
|
1501
1568
|
let out = arr;
|
|
1502
1569
|
if (!mutate4) {
|
|
@@ -1541,7 +1608,7 @@ function arraySpliceIn(mutate4, at, v, arr) {
|
|
|
1541
1608
|
return out;
|
|
1542
1609
|
}
|
|
1543
1610
|
|
|
1544
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1611
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashMap/node.js
|
|
1545
1612
|
var EmptyNode = class _EmptyNode {
|
|
1546
1613
|
_tag = "EmptyNode";
|
|
1547
1614
|
modify(edit, _shift, f, hash2, key, size12) {
|
|
@@ -1776,7 +1843,7 @@ function mergeLeaves(edit, shift2, h1, n1, h2, n2) {
|
|
|
1776
1843
|
}
|
|
1777
1844
|
}
|
|
1778
1845
|
|
|
1779
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
1846
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashMap.js
|
|
1780
1847
|
var HashMapSymbolKey = "effect/HashMap";
|
|
1781
1848
|
var HashMapTypeId = /* @__PURE__ */ Symbol.for(HashMapSymbolKey);
|
|
1782
1849
|
var HashMapProto = {
|
|
@@ -2008,7 +2075,7 @@ var reduce3 = /* @__PURE__ */ dual(3, (self, zero2, f) => {
|
|
|
2008
2075
|
return zero2;
|
|
2009
2076
|
});
|
|
2010
2077
|
|
|
2011
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2078
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/hashSet.js
|
|
2012
2079
|
var HashSetSymbolKey = "effect/HashSet";
|
|
2013
2080
|
var HashSetTypeId = /* @__PURE__ */ Symbol.for(HashSetSymbolKey);
|
|
2014
2081
|
var HashSetProto = {
|
|
@@ -2091,7 +2158,7 @@ var union2 = /* @__PURE__ */ dual(2, (self, that) => mutate2(empty4(), (set10) =
|
|
|
2091
2158
|
var forEach2 = /* @__PURE__ */ dual(2, (self, f) => forEach(self._keyMap, (_, k) => f(k)));
|
|
2092
2159
|
var reduce4 = /* @__PURE__ */ dual(3, (self, zero2, f) => reduce3(self._keyMap, zero2, (z, _, a) => f(z, a)));
|
|
2093
2160
|
|
|
2094
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2161
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/HashSet.js
|
|
2095
2162
|
var empty5 = empty4;
|
|
2096
2163
|
var fromIterable5 = fromIterable4;
|
|
2097
2164
|
var make7 = make6;
|
|
@@ -2103,7 +2170,7 @@ var difference3 = difference2;
|
|
|
2103
2170
|
var union3 = union2;
|
|
2104
2171
|
var reduce5 = reduce4;
|
|
2105
2172
|
|
|
2106
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2173
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/cause.js
|
|
2107
2174
|
var OP_DIE = "Die";
|
|
2108
2175
|
var OP_EMPTY = "Empty";
|
|
2109
2176
|
var OP_FAIL = "Fail";
|
|
@@ -2111,7 +2178,7 @@ var OP_INTERRUPT = "Interrupt";
|
|
|
2111
2178
|
var OP_PARALLEL = "Parallel";
|
|
2112
2179
|
var OP_SEQUENTIAL = "Sequential";
|
|
2113
2180
|
|
|
2114
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2181
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/cause.js
|
|
2115
2182
|
var CauseSymbolKey = "effect/Cause";
|
|
2116
2183
|
var CauseTypeId = /* @__PURE__ */ Symbol.for(CauseSymbolKey);
|
|
2117
2184
|
var variance = {
|
|
@@ -2666,7 +2733,7 @@ var prettyErrors = (cause2) => reduceWithContext(cause2, void 0, {
|
|
|
2666
2733
|
sequentialCase: (_, l, r) => [...l, ...r]
|
|
2667
2734
|
});
|
|
2668
2735
|
|
|
2669
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2736
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/context.js
|
|
2670
2737
|
var TagTypeId = /* @__PURE__ */ Symbol.for("effect/Context/Tag");
|
|
2671
2738
|
var ReferenceTypeId = /* @__PURE__ */ Symbol.for("effect/Context/Reference");
|
|
2672
2739
|
var STMSymbolKey = "effect/STM";
|
|
@@ -2838,8 +2905,17 @@ var merge2 = /* @__PURE__ */ dual(2, (self, that) => {
|
|
|
2838
2905
|
}
|
|
2839
2906
|
return makeContext(map22);
|
|
2840
2907
|
});
|
|
2908
|
+
var mergeAll = (...ctxs) => {
|
|
2909
|
+
const map22 = /* @__PURE__ */ new Map();
|
|
2910
|
+
for (let i = 0; i < ctxs.length; i++) {
|
|
2911
|
+
ctxs[i].unsafeMap.forEach((value2, key) => {
|
|
2912
|
+
map22.set(key, value2);
|
|
2913
|
+
});
|
|
2914
|
+
}
|
|
2915
|
+
return makeContext(map22);
|
|
2916
|
+
};
|
|
2841
2917
|
|
|
2842
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2918
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Context.js
|
|
2843
2919
|
var GenericTag = makeGenericTag;
|
|
2844
2920
|
var isContext2 = isContext;
|
|
2845
2921
|
var isTag2 = isTag;
|
|
@@ -2850,9 +2926,10 @@ var get5 = get4;
|
|
|
2850
2926
|
var unsafeGet4 = unsafeGet3;
|
|
2851
2927
|
var getOption2 = getOption;
|
|
2852
2928
|
var merge3 = merge2;
|
|
2929
|
+
var mergeAll2 = mergeAll;
|
|
2853
2930
|
var Reference2 = Reference;
|
|
2854
2931
|
|
|
2855
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
2932
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Duration.js
|
|
2856
2933
|
var TypeId5 = /* @__PURE__ */ Symbol.for("effect/Duration");
|
|
2857
2934
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
2858
2935
|
var bigint24 = /* @__PURE__ */ BigInt(24);
|
|
@@ -3129,7 +3206,7 @@ var format2 = (self) => {
|
|
|
3129
3206
|
return pieces.join(" ");
|
|
3130
3207
|
};
|
|
3131
3208
|
|
|
3132
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3209
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/MutableRef.js
|
|
3133
3210
|
var TypeId6 = /* @__PURE__ */ Symbol.for("effect/MutableRef");
|
|
3134
3211
|
var MutableRefProto = {
|
|
3135
3212
|
[TypeId6]: TypeId6,
|
|
@@ -3167,7 +3244,7 @@ var set2 = /* @__PURE__ */ dual(2, (self, value2) => {
|
|
|
3167
3244
|
return self;
|
|
3168
3245
|
});
|
|
3169
3246
|
|
|
3170
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3247
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberId.js
|
|
3171
3248
|
var FiberIdSymbolKey = "effect/FiberId";
|
|
3172
3249
|
var FiberIdTypeId = /* @__PURE__ */ Symbol.for(FiberIdSymbolKey);
|
|
3173
3250
|
var OP_NONE = "None";
|
|
@@ -3297,7 +3374,7 @@ var unsafeMake = () => {
|
|
|
3297
3374
|
return new Runtime(id2, Date.now());
|
|
3298
3375
|
};
|
|
3299
3376
|
|
|
3300
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3377
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/FiberId.js
|
|
3301
3378
|
var none4 = none3;
|
|
3302
3379
|
var combine3 = combine2;
|
|
3303
3380
|
var combineAll2 = combineAll;
|
|
@@ -3305,7 +3382,7 @@ var ids2 = ids;
|
|
|
3305
3382
|
var threadName2 = threadName;
|
|
3306
3383
|
var unsafeMake2 = unsafeMake;
|
|
3307
3384
|
|
|
3308
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3385
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/HashMap.js
|
|
3309
3386
|
var empty9 = empty3;
|
|
3310
3387
|
var fromIterable6 = fromIterable3;
|
|
3311
3388
|
var isEmpty4 = isEmpty2;
|
|
@@ -3319,7 +3396,7 @@ var map10 = map6;
|
|
|
3319
3396
|
var forEach3 = forEach;
|
|
3320
3397
|
var reduce7 = reduce3;
|
|
3321
3398
|
|
|
3322
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3399
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/List.js
|
|
3323
3400
|
var TypeId7 = /* @__PURE__ */ Symbol.for("effect/List");
|
|
3324
3401
|
var toArray2 = (self) => fromIterable(self);
|
|
3325
3402
|
var getEquivalence4 = (isEquivalent) => mapInput(getEquivalence2(isEquivalent), toArray2);
|
|
@@ -3479,7 +3556,7 @@ var Structural = /* @__PURE__ */ function() {
|
|
|
3479
3556
|
}();
|
|
3480
3557
|
var struct = (as6) => Object.assign(Object.create(StructuralPrototype), as6);
|
|
3481
3558
|
|
|
3482
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3559
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/differ/contextPatch.js
|
|
3483
3560
|
var ContextPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferContextPatch");
|
|
3484
3561
|
function variance2(a) {
|
|
3485
3562
|
return a;
|
|
@@ -3605,7 +3682,7 @@ var patch = /* @__PURE__ */ dual(2, (self, context5) => {
|
|
|
3605
3682
|
return makeContext(map22);
|
|
3606
3683
|
});
|
|
3607
3684
|
|
|
3608
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3685
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/differ/hashSetPatch.js
|
|
3609
3686
|
var HashSetPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferHashSetPatch");
|
|
3610
3687
|
function variance3(a) {
|
|
3611
3688
|
return a;
|
|
@@ -3690,7 +3767,7 @@ var patch2 = /* @__PURE__ */ dual(2, (self, oldValue) => {
|
|
|
3690
3767
|
return set10;
|
|
3691
3768
|
});
|
|
3692
3769
|
|
|
3693
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3770
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/differ/readonlyArrayPatch.js
|
|
3694
3771
|
var ReadonlyArrayPatchTypeId = /* @__PURE__ */ Symbol.for("effect/DifferReadonlyArrayPatch");
|
|
3695
3772
|
function variance4(a) {
|
|
3696
3773
|
return a;
|
|
@@ -3804,7 +3881,7 @@ var patch3 = /* @__PURE__ */ dual(3, (self, oldValue, differ3) => {
|
|
|
3804
3881
|
return readonlyArray2;
|
|
3805
3882
|
});
|
|
3806
3883
|
|
|
3807
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3884
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/differ.js
|
|
3808
3885
|
var DifferTypeId = /* @__PURE__ */ Symbol.for("effect/Differ");
|
|
3809
3886
|
var DifferProto = {
|
|
3810
3887
|
[DifferTypeId]: {
|
|
@@ -3866,7 +3943,7 @@ var updateWith = (f) => make14({
|
|
|
3866
3943
|
patch: (patch11, oldValue) => f(oldValue, patch11(oldValue))
|
|
3867
3944
|
});
|
|
3868
3945
|
|
|
3869
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3946
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/runtimeFlagsPatch.js
|
|
3870
3947
|
var BIT_MASK = 255;
|
|
3871
3948
|
var BIT_SHIFT = 8;
|
|
3872
3949
|
var active = (patch11) => patch11 & BIT_MASK;
|
|
@@ -3879,7 +3956,7 @@ var exclude = /* @__PURE__ */ dual(2, (self, flag) => make15(active(self) & ~fla
|
|
|
3879
3956
|
var andThen = /* @__PURE__ */ dual(2, (self, that) => self | that);
|
|
3880
3957
|
var invert = (n) => ~n >>> 0 & BIT_MASK;
|
|
3881
3958
|
|
|
3882
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3959
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/runtimeFlags.js
|
|
3883
3960
|
var None2 = 0;
|
|
3884
3961
|
var Interruption = 1 << 0;
|
|
3885
3962
|
var OpSupervision = 1 << 1;
|
|
@@ -3905,12 +3982,12 @@ var differ = /* @__PURE__ */ make14({
|
|
|
3905
3982
|
patch: (_patch, oldValue) => patch4(oldValue, _patch)
|
|
3906
3983
|
});
|
|
3907
3984
|
|
|
3908
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3985
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/RuntimeFlagsPatch.js
|
|
3909
3986
|
var enable3 = enable;
|
|
3910
3987
|
var disable3 = disable;
|
|
3911
3988
|
var exclude2 = exclude;
|
|
3912
3989
|
|
|
3913
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
3990
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/blockedRequests.js
|
|
3914
3991
|
var par = (self, that) => ({
|
|
3915
3992
|
_tag: "Par",
|
|
3916
3993
|
left: self,
|
|
@@ -4053,11 +4130,11 @@ var sequentialCollectionCombine = (self, that) => new SequentialImpl(reduce7(tha
|
|
|
4053
4130
|
var sequentialCollectionKeys = (self) => Array.from(keys3(self.map));
|
|
4054
4131
|
var sequentialCollectionToChunk = (self) => Array.from(self.map);
|
|
4055
4132
|
|
|
4056
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
4133
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/deferred.js
|
|
4057
4134
|
var OP_STATE_PENDING = "Pending";
|
|
4058
4135
|
var OP_STATE_DONE = "Done";
|
|
4059
4136
|
|
|
4060
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
4137
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/deferred.js
|
|
4061
4138
|
var DeferredSymbolKey = "effect/Deferred";
|
|
4062
4139
|
var DeferredTypeId = /* @__PURE__ */ Symbol.for(DeferredSymbolKey);
|
|
4063
4140
|
var deferredVariance = {
|
|
@@ -4079,7 +4156,7 @@ var done = (effect3) => {
|
|
|
4079
4156
|
};
|
|
4080
4157
|
};
|
|
4081
4158
|
|
|
4082
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
4159
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/singleShotGen.js
|
|
4083
4160
|
var SingleShotGen2 = class _SingleShotGen {
|
|
4084
4161
|
self;
|
|
4085
4162
|
called = false;
|
|
@@ -4109,7 +4186,7 @@ var SingleShotGen2 = class _SingleShotGen {
|
|
|
4109
4186
|
}
|
|
4110
4187
|
};
|
|
4111
4188
|
|
|
4112
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
4189
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/core.js
|
|
4113
4190
|
var blocked = (blockedRequests, _continue3) => {
|
|
4114
4191
|
const effect3 = new EffectPrimitive("Blocked");
|
|
4115
4192
|
effect3.effect_instruction_i0 = blockedRequests;
|
|
@@ -4589,6 +4666,18 @@ var gen = function() {
|
|
|
4589
4666
|
const f = arguments.length === 1 ? arguments[0] : arguments[1].bind(arguments[0]);
|
|
4590
4667
|
return fromIterator(() => f(pipe));
|
|
4591
4668
|
};
|
|
4669
|
+
var fnUntraced = (body, ...pipeables) => Object.defineProperty(pipeables.length === 0 ? function(...args2) {
|
|
4670
|
+
return fromIterator(() => body.apply(this, args2));
|
|
4671
|
+
} : function(...args2) {
|
|
4672
|
+
let effect3 = fromIterator(() => body.apply(this, args2));
|
|
4673
|
+
for (const x of pipeables) {
|
|
4674
|
+
effect3 = x(effect3, ...args2);
|
|
4675
|
+
}
|
|
4676
|
+
return effect3;
|
|
4677
|
+
}, "length", {
|
|
4678
|
+
value: body.length,
|
|
4679
|
+
configurable: true
|
|
4680
|
+
});
|
|
4592
4681
|
var withRuntimeFlags = /* @__PURE__ */ dual(2, (self, update5) => {
|
|
4593
4682
|
const effect3 = new EffectPrimitive(OP_UPDATE_RUNTIME_FLAGS);
|
|
4594
4683
|
effect3.effect_instruction_i0 = update5;
|
|
@@ -4859,14 +4948,6 @@ var UnknownException = /* @__PURE__ */ function() {
|
|
|
4859
4948
|
var exitIsExit = (u) => isEffect(u) && "_tag" in u && (u._tag === "Success" || u._tag === "Failure");
|
|
4860
4949
|
var exitIsFailure = (self) => self._tag === "Failure";
|
|
4861
4950
|
var exitIsSuccess = (self) => self._tag === "Success";
|
|
4862
|
-
var exitIsInterrupted = (self) => {
|
|
4863
|
-
switch (self._tag) {
|
|
4864
|
-
case OP_FAILURE:
|
|
4865
|
-
return isInterrupted(self.effect_instruction_i0);
|
|
4866
|
-
case OP_SUCCESS:
|
|
4867
|
-
return false;
|
|
4868
|
-
}
|
|
4869
|
-
};
|
|
4870
4951
|
var exitAs = /* @__PURE__ */ dual(2, (self, value2) => {
|
|
4871
4952
|
switch (self._tag) {
|
|
4872
4953
|
case OP_FAILURE: {
|
|
@@ -5064,7 +5145,7 @@ var NoopSpanProto = {
|
|
|
5064
5145
|
};
|
|
5065
5146
|
var noopSpan = (options3) => Object.assign(Object.create(NoopSpanProto), options3);
|
|
5066
5147
|
|
|
5067
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5148
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/clock.js
|
|
5068
5149
|
var ClockSymbolKey = "effect/Clock";
|
|
5069
5150
|
var ClockTypeId = /* @__PURE__ */ Symbol.for(ClockSymbolKey);
|
|
5070
5151
|
var clockTag = /* @__PURE__ */ GenericTag("effect/Clock");
|
|
@@ -5129,7 +5210,7 @@ var ClockImpl = class {
|
|
|
5129
5210
|
};
|
|
5130
5211
|
var make18 = () => new ClockImpl();
|
|
5131
5212
|
|
|
5132
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5213
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Number.js
|
|
5133
5214
|
var Order = number3;
|
|
5134
5215
|
var parse = (s) => {
|
|
5135
5216
|
if (s === "NaN") {
|
|
@@ -5148,10 +5229,10 @@ var parse = (s) => {
|
|
|
5148
5229
|
return Number.isNaN(n) ? none : some(n);
|
|
5149
5230
|
};
|
|
5150
5231
|
|
|
5151
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5232
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/RegExp.js
|
|
5152
5233
|
var escape = (string2) => string2.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
5153
5234
|
|
|
5154
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5235
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/configError.js
|
|
5155
5236
|
var OP_AND = "And";
|
|
5156
5237
|
var OP_OR = "Or";
|
|
5157
5238
|
var OP_INVALID_DATA = "InvalidData";
|
|
@@ -5159,7 +5240,7 @@ var OP_MISSING_DATA = "MissingData";
|
|
|
5159
5240
|
var OP_SOURCE_UNAVAILABLE = "SourceUnavailable";
|
|
5160
5241
|
var OP_UNSUPPORTED = "Unsupported";
|
|
5161
5242
|
|
|
5162
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5243
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/configError.js
|
|
5163
5244
|
var ConfigErrorSymbolKey = "effect/ConfigError";
|
|
5164
5245
|
var ConfigErrorTypeId = /* @__PURE__ */ Symbol.for(ConfigErrorSymbolKey);
|
|
5165
5246
|
var proto2 = {
|
|
@@ -5292,7 +5373,7 @@ var prefixed = /* @__PURE__ */ dual(2, (self, prefix) => {
|
|
|
5292
5373
|
}
|
|
5293
5374
|
});
|
|
5294
5375
|
|
|
5295
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5376
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/configProvider/pathPatch.js
|
|
5296
5377
|
var empty15 = {
|
|
5297
5378
|
_tag: "Empty"
|
|
5298
5379
|
};
|
|
@@ -5335,7 +5416,7 @@ var patch5 = /* @__PURE__ */ dual(2, (path, patch11) => {
|
|
|
5335
5416
|
return right2(output);
|
|
5336
5417
|
});
|
|
5337
5418
|
|
|
5338
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5419
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/config.js
|
|
5339
5420
|
var OP_CONSTANT = "Constant";
|
|
5340
5421
|
var OP_FAIL2 = "Fail";
|
|
5341
5422
|
var OP_FALLBACK = "Fallback";
|
|
@@ -5348,7 +5429,7 @@ var OP_SEQUENCE = "Sequence";
|
|
|
5348
5429
|
var OP_HASHMAP = "HashMap";
|
|
5349
5430
|
var OP_ZIP_WITH = "ZipWith";
|
|
5350
5431
|
|
|
5351
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5432
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/configProvider.js
|
|
5352
5433
|
var concat = (l, r) => [...l, ...r];
|
|
5353
5434
|
var ConfigProviderSymbolKey = "effect/ConfigProvider";
|
|
5354
5435
|
var ConfigProviderTypeId = /* @__PURE__ */ Symbol.for(ConfigProviderSymbolKey);
|
|
@@ -5552,7 +5633,7 @@ var parseInteger = (str) => {
|
|
|
5552
5633
|
return Number.isNaN(parsedIndex) ? none2() : some2(parsedIndex);
|
|
5553
5634
|
};
|
|
5554
5635
|
|
|
5555
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5636
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/defaultServices/console.js
|
|
5556
5637
|
var TypeId8 = /* @__PURE__ */ Symbol.for("effect/Console");
|
|
5557
5638
|
var consoleTag = /* @__PURE__ */ GenericTag("effect/Console");
|
|
5558
5639
|
var defaultConsole = {
|
|
@@ -5640,7 +5721,7 @@ var defaultConsole = {
|
|
|
5640
5721
|
unsafe: console
|
|
5641
5722
|
};
|
|
5642
5723
|
|
|
5643
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5724
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/random.js
|
|
5644
5725
|
var RandomSymbolKey = "effect/Random";
|
|
5645
5726
|
var RandomTypeId = /* @__PURE__ */ Symbol.for(RandomSymbolKey);
|
|
5646
5727
|
var randomTag = /* @__PURE__ */ GenericTag("effect/Random");
|
|
@@ -5688,7 +5769,7 @@ var swap = (buffer2, index1, index2) => {
|
|
|
5688
5769
|
};
|
|
5689
5770
|
var make21 = (seed) => new RandomImpl(hash(seed));
|
|
5690
5771
|
|
|
5691
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5772
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/tracer.js
|
|
5692
5773
|
var TracerTypeId = /* @__PURE__ */ Symbol.for("effect/Tracer");
|
|
5693
5774
|
var make22 = (options3) => ({
|
|
5694
5775
|
[TracerTypeId]: TracerTypeId,
|
|
@@ -5789,7 +5870,7 @@ var DisablePropagation = /* @__PURE__ */ Reference2()("effect/Tracer/DisableProp
|
|
|
5789
5870
|
defaultValue: constFalse
|
|
5790
5871
|
});
|
|
5791
5872
|
|
|
5792
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5873
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/defaultServices.js
|
|
5793
5874
|
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));
|
|
5794
5875
|
var currentServices = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/DefaultServices/currentServices"), () => fiberRefUnsafeMakeContext(liveServices));
|
|
5795
5876
|
var sleep = (duration) => {
|
|
@@ -5800,20 +5881,13 @@ var defaultServicesWith = (f) => withFiberRuntime((fiber) => f(fiber.currentDefa
|
|
|
5800
5881
|
var clockWith = (f) => defaultServicesWith((services) => f(services.unsafeMap.get(clockTag.key)));
|
|
5801
5882
|
var currentTimeMillis = /* @__PURE__ */ clockWith((clock3) => clock3.currentTimeMillis);
|
|
5802
5883
|
|
|
5803
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5804
|
-
var make23 = deferredMake;
|
|
5805
|
-
var _await = deferredAwait;
|
|
5806
|
-
var failCause2 = deferredFailCause;
|
|
5807
|
-
var isDone = deferredIsDone;
|
|
5808
|
-
var succeed2 = deferredSucceed;
|
|
5809
|
-
|
|
5810
|
-
// ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/Effectable.js
|
|
5884
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Effectable.js
|
|
5811
5885
|
var EffectPrototype2 = EffectPrototype;
|
|
5812
5886
|
var Base2 = Base;
|
|
5813
5887
|
var Class2 = class extends Base2 {
|
|
5814
5888
|
};
|
|
5815
5889
|
|
|
5816
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5890
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/executionStrategy.js
|
|
5817
5891
|
var OP_SEQUENTIAL2 = "Sequential";
|
|
5818
5892
|
var OP_PARALLEL2 = "Parallel";
|
|
5819
5893
|
var OP_PARALLEL_N = "ParallelN";
|
|
@@ -5830,12 +5904,12 @@ var parallelN = (parallelism) => ({
|
|
|
5830
5904
|
var isSequential = (self) => self._tag === OP_SEQUENTIAL2;
|
|
5831
5905
|
var isParallel = (self) => self._tag === OP_PARALLEL2;
|
|
5832
5906
|
|
|
5833
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5907
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/ExecutionStrategy.js
|
|
5834
5908
|
var sequential3 = sequential2;
|
|
5835
5909
|
var parallel3 = parallel2;
|
|
5836
5910
|
var parallelN2 = parallelN;
|
|
5837
5911
|
|
|
5838
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
5912
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberRefs.js
|
|
5839
5913
|
function unsafeMake3(fiberRefLocals) {
|
|
5840
5914
|
return new FiberRefsImpl(fiberRefLocals);
|
|
5841
5915
|
}
|
|
@@ -6002,13 +6076,13 @@ var updateManyAs = /* @__PURE__ */ dual(2, (self, {
|
|
|
6002
6076
|
return new FiberRefsImpl(locals);
|
|
6003
6077
|
});
|
|
6004
6078
|
|
|
6005
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6079
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/FiberRefs.js
|
|
6006
6080
|
var get9 = get8;
|
|
6007
6081
|
var getOrDefault2 = getOrDefault;
|
|
6008
6082
|
var updateManyAs2 = updateManyAs;
|
|
6009
6083
|
var empty17 = empty16;
|
|
6010
6084
|
|
|
6011
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6085
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberRefs/patch.js
|
|
6012
6086
|
var OP_EMPTY2 = "Empty";
|
|
6013
6087
|
var OP_ADD = "Add";
|
|
6014
6088
|
var OP_REMOVE = "Remove";
|
|
@@ -6098,11 +6172,11 @@ var patch6 = /* @__PURE__ */ dual(3, (self, fiberId2, oldValue) => {
|
|
|
6098
6172
|
return fiberRefs3;
|
|
6099
6173
|
});
|
|
6100
6174
|
|
|
6101
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6175
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/FiberRefsPatch.js
|
|
6102
6176
|
var diff6 = diff5;
|
|
6103
6177
|
var patch7 = patch6;
|
|
6104
6178
|
|
|
6105
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6179
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberStatus.js
|
|
6106
6180
|
var FiberStatusSymbolKey = "effect/FiberStatus";
|
|
6107
6181
|
var FiberStatusTypeId = /* @__PURE__ */ Symbol.for(FiberStatusSymbolKey);
|
|
6108
6182
|
var OP_DONE = "Done";
|
|
@@ -6153,15 +6227,15 @@ var done2 = /* @__PURE__ */ new Done();
|
|
|
6153
6227
|
var running = (runtimeFlags2) => new Running(runtimeFlags2);
|
|
6154
6228
|
var suspended = (runtimeFlags2, blockingOn) => new Suspended(runtimeFlags2, blockingOn);
|
|
6155
6229
|
var isFiberStatus = (u) => hasProperty(u, FiberStatusTypeId);
|
|
6156
|
-
var
|
|
6230
|
+
var isDone = (self) => self._tag === OP_DONE;
|
|
6157
6231
|
|
|
6158
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6232
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/FiberStatus.js
|
|
6159
6233
|
var done3 = done2;
|
|
6160
6234
|
var running2 = running;
|
|
6161
6235
|
var suspended2 = suspended;
|
|
6162
|
-
var
|
|
6236
|
+
var isDone2 = isDone;
|
|
6163
6237
|
|
|
6164
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6238
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/LogLevel.js
|
|
6165
6239
|
var All = logLevelAll;
|
|
6166
6240
|
var Fatal = logLevelFatal;
|
|
6167
6241
|
var Error2 = logLevelError;
|
|
@@ -6193,7 +6267,7 @@ var fromLiteral = (literal) => {
|
|
|
6193
6267
|
}
|
|
6194
6268
|
};
|
|
6195
6269
|
|
|
6196
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6270
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Micro.js
|
|
6197
6271
|
var TypeId9 = /* @__PURE__ */ Symbol.for("effect/Micro");
|
|
6198
6272
|
var MicroExitTypeId = /* @__PURE__ */ Symbol.for("effect/Micro/MicroExit");
|
|
6199
6273
|
var MicroCauseTypeId = /* @__PURE__ */ Symbol.for("effect/Micro/MicroCause");
|
|
@@ -6466,7 +6540,7 @@ var makeExit = (options3) => {
|
|
|
6466
6540
|
return self;
|
|
6467
6541
|
};
|
|
6468
6542
|
};
|
|
6469
|
-
var
|
|
6543
|
+
var succeed2 = /* @__PURE__ */ makeExit({
|
|
6470
6544
|
op: "Success",
|
|
6471
6545
|
prop: "value",
|
|
6472
6546
|
eval(fiber) {
|
|
@@ -6474,7 +6548,7 @@ var succeed3 = /* @__PURE__ */ makeExit({
|
|
|
6474
6548
|
return cont ? cont[successCont](this[args], fiber) : fiber.yieldWith(this);
|
|
6475
6549
|
}
|
|
6476
6550
|
});
|
|
6477
|
-
var
|
|
6551
|
+
var failCause2 = /* @__PURE__ */ makeExit({
|
|
6478
6552
|
op: "Failure",
|
|
6479
6553
|
prop: "cause",
|
|
6480
6554
|
eval(fiber) {
|
|
@@ -6499,7 +6573,7 @@ var yieldNowWith = /* @__PURE__ */ makePrimitive({
|
|
|
6499
6573
|
}
|
|
6500
6574
|
});
|
|
6501
6575
|
var yieldNow2 = /* @__PURE__ */ yieldNowWith(0);
|
|
6502
|
-
var void_2 = /* @__PURE__ */
|
|
6576
|
+
var void_2 = /* @__PURE__ */ succeed2(void 0);
|
|
6503
6577
|
var withMicroFiber = /* @__PURE__ */ makePrimitive({
|
|
6504
6578
|
op: "WithMicroFiber",
|
|
6505
6579
|
eval(fiber) {
|
|
@@ -6520,8 +6594,8 @@ var OnSuccessProto = /* @__PURE__ */ makePrimitiveProto({
|
|
|
6520
6594
|
}
|
|
6521
6595
|
});
|
|
6522
6596
|
var isMicroExit = (u) => hasProperty(u, MicroExitTypeId);
|
|
6523
|
-
var exitSucceed2 =
|
|
6524
|
-
var exitFailCause2 =
|
|
6597
|
+
var exitSucceed2 = succeed2;
|
|
6598
|
+
var exitFailCause2 = failCause2;
|
|
6525
6599
|
var exitInterrupt2 = /* @__PURE__ */ exitFailCause2(/* @__PURE__ */ causeInterrupt());
|
|
6526
6600
|
var exitDie2 = (defect) => exitFailCause2(causeDie(defect));
|
|
6527
6601
|
var exitVoid2 = /* @__PURE__ */ exitSucceed2(void 0);
|
|
@@ -6603,8 +6677,8 @@ var OnSuccessAndFailureProto = /* @__PURE__ */ makePrimitiveProto({
|
|
|
6603
6677
|
}
|
|
6604
6678
|
});
|
|
6605
6679
|
var onExit2 = /* @__PURE__ */ dual(2, (self, f) => uninterruptibleMask2((restore) => matchCauseEffect2(restore(self), {
|
|
6606
|
-
onFailure: (cause2) => flatMap8(f(exitFailCause2(cause2)), () =>
|
|
6607
|
-
onSuccess: (a) => flatMap8(f(exitSucceed2(a)), () =>
|
|
6680
|
+
onFailure: (cause2) => flatMap8(f(exitFailCause2(cause2)), () => failCause2(cause2)),
|
|
6681
|
+
onSuccess: (a) => flatMap8(f(exitSucceed2(a)), () => succeed2(a))
|
|
6608
6682
|
})));
|
|
6609
6683
|
var setInterruptible = /* @__PURE__ */ makePrimitive({
|
|
6610
6684
|
op: "SetInterruptible",
|
|
@@ -6634,10 +6708,10 @@ var runFork = (effect3, options3) => {
|
|
|
6634
6708
|
return fiber;
|
|
6635
6709
|
};
|
|
6636
6710
|
|
|
6637
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6711
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Readable.js
|
|
6638
6712
|
var TypeId10 = /* @__PURE__ */ Symbol.for("effect/Readable");
|
|
6639
6713
|
|
|
6640
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6714
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/ref.js
|
|
6641
6715
|
var RefTypeId = /* @__PURE__ */ Symbol.for("effect/Ref");
|
|
6642
6716
|
var refVariance = {
|
|
6643
6717
|
/* c8 ignore next */
|
|
@@ -6668,21 +6742,21 @@ var RefImpl = class extends Class2 {
|
|
|
6668
6742
|
}
|
|
6669
6743
|
};
|
|
6670
6744
|
var unsafeMake4 = (value2) => new RefImpl(make11(value2));
|
|
6671
|
-
var
|
|
6745
|
+
var make23 = (value2) => sync(() => unsafeMake4(value2));
|
|
6672
6746
|
var get10 = (self) => self.get;
|
|
6673
6747
|
var set4 = /* @__PURE__ */ dual(2, (self, value2) => self.modify(() => [void 0, value2]));
|
|
6674
6748
|
var getAndSet = /* @__PURE__ */ dual(2, (self, value2) => self.modify((a) => [a, value2]));
|
|
6675
6749
|
var modify3 = /* @__PURE__ */ dual(2, (self, f) => self.modify(f));
|
|
6676
6750
|
var update2 = /* @__PURE__ */ dual(2, (self, f) => self.modify((a) => [void 0, f(a)]));
|
|
6677
6751
|
|
|
6678
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6679
|
-
var
|
|
6752
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Ref.js
|
|
6753
|
+
var make24 = make23;
|
|
6680
6754
|
var get11 = get10;
|
|
6681
6755
|
var getAndSet2 = getAndSet;
|
|
6682
6756
|
var modify4 = modify3;
|
|
6683
6757
|
var update3 = update2;
|
|
6684
6758
|
|
|
6685
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6759
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Scheduler.js
|
|
6686
6760
|
var PriorityBuckets = class {
|
|
6687
6761
|
/**
|
|
6688
6762
|
* @since 2.0.0
|
|
@@ -6812,10 +6886,10 @@ var SyncScheduler = class {
|
|
|
6812
6886
|
};
|
|
6813
6887
|
var currentScheduler = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentScheduler"), () => fiberRefUnsafeMake(defaultScheduler));
|
|
6814
6888
|
|
|
6815
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6889
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/completedRequestMap.js
|
|
6816
6890
|
var currentRequestMap = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentRequestMap"), () => fiberRefUnsafeMake(/* @__PURE__ */ new Map()));
|
|
6817
6891
|
|
|
6818
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6892
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/concurrency.js
|
|
6819
6893
|
var match7 = (concurrency, sequential4, unbounded4, bounded4) => {
|
|
6820
6894
|
switch (concurrency) {
|
|
6821
6895
|
case void 0:
|
|
@@ -6829,13 +6903,13 @@ var match7 = (concurrency, sequential4, unbounded4, bounded4) => {
|
|
|
6829
6903
|
}
|
|
6830
6904
|
};
|
|
6831
6905
|
|
|
6832
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6906
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Clock.js
|
|
6833
6907
|
var sleep2 = sleep;
|
|
6834
6908
|
var currentTimeMillis2 = currentTimeMillis;
|
|
6835
6909
|
var Clock = clockTag;
|
|
6836
6910
|
|
|
6837
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6838
|
-
var
|
|
6911
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/logSpan.js
|
|
6912
|
+
var make25 = (label, startTime) => ({
|
|
6839
6913
|
label,
|
|
6840
6914
|
startTime
|
|
6841
6915
|
});
|
|
@@ -6845,10 +6919,10 @@ var render = (now) => (self) => {
|
|
|
6845
6919
|
return `${label}=${now - self.startTime}ms`;
|
|
6846
6920
|
};
|
|
6847
6921
|
|
|
6848
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6849
|
-
var
|
|
6922
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/LogSpan.js
|
|
6923
|
+
var make26 = make25;
|
|
6850
6924
|
|
|
6851
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6925
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/label.js
|
|
6852
6926
|
var MetricLabelSymbolKey = "effect/MetricLabel";
|
|
6853
6927
|
var MetricLabelTypeId = /* @__PURE__ */ Symbol.for(MetricLabelSymbolKey);
|
|
6854
6928
|
var MetricLabelImpl = class {
|
|
@@ -6871,12 +6945,12 @@ var MetricLabelImpl = class {
|
|
|
6871
6945
|
return pipeArguments(this, arguments);
|
|
6872
6946
|
}
|
|
6873
6947
|
};
|
|
6874
|
-
var
|
|
6948
|
+
var make27 = (key, value2) => {
|
|
6875
6949
|
return new MetricLabelImpl(key, value2);
|
|
6876
6950
|
};
|
|
6877
6951
|
var isMetricLabel = (u) => hasProperty(u, MetricLabelTypeId);
|
|
6878
6952
|
|
|
6879
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
6953
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/core-effect.js
|
|
6880
6954
|
var asSome = (self) => map11(self, some2);
|
|
6881
6955
|
var try_ = (arg) => {
|
|
6882
6956
|
let evaluate2;
|
|
@@ -6930,27 +7004,27 @@ var logWithLevel = (level) => (...message) => {
|
|
|
6930
7004
|
});
|
|
6931
7005
|
};
|
|
6932
7006
|
var logInfo = /* @__PURE__ */ logWithLevel(Info);
|
|
6933
|
-
var withLogSpan = /* @__PURE__ */ dual(2, (effect3, label) => flatMap7(currentTimeMillis2, (now) => fiberRefLocallyWith(effect3, currentLogSpan, prepend3(
|
|
7007
|
+
var withLogSpan = /* @__PURE__ */ dual(2, (effect3, label) => flatMap7(currentTimeMillis2, (now) => fiberRefLocallyWith(effect3, currentLogSpan, prepend3(make26(label, now)))));
|
|
6934
7008
|
var mapErrorCause = /* @__PURE__ */ dual(2, (self, f) => matchCauseEffect(self, {
|
|
6935
7009
|
onFailure: (c) => failCauseSync(() => f(c)),
|
|
6936
7010
|
onSuccess: succeed
|
|
6937
7011
|
}));
|
|
6938
7012
|
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))))))));
|
|
6939
7013
|
var negate = (self) => map11(self, (b) => !b);
|
|
6940
|
-
var once = (self) => map11(
|
|
7014
|
+
var once = (self) => map11(make24(true), (ref) => asVoid(whenEffect(self, getAndSet2(ref, false))));
|
|
6941
7015
|
var patchFiberRefs = (patch11) => updateFiberRefs((fiberId2, fiberRefs3) => pipe(patch11, patch6(fiberId2, fiberRefs3)));
|
|
6942
7016
|
var promise = (evaluate2) => evaluate2.length >= 1 ? async_((resolve, signal) => {
|
|
6943
7017
|
try {
|
|
6944
|
-
evaluate2(signal).then((a) => resolve(
|
|
7018
|
+
evaluate2(signal).then((a) => resolve(succeed(a)), (e) => resolve(die2(e)));
|
|
6945
7019
|
} catch (e) {
|
|
6946
|
-
resolve(
|
|
7020
|
+
resolve(die2(e));
|
|
6947
7021
|
}
|
|
6948
7022
|
}) : async_((resolve) => {
|
|
6949
7023
|
try {
|
|
6950
7024
|
;
|
|
6951
|
-
evaluate2().then((a) => resolve(
|
|
7025
|
+
evaluate2().then((a) => resolve(succeed(a)), (e) => resolve(die2(e)));
|
|
6952
7026
|
} catch (e) {
|
|
6953
|
-
resolve(
|
|
7027
|
+
resolve(die2(e));
|
|
6954
7028
|
}
|
|
6955
7029
|
});
|
|
6956
7030
|
var provideService = /* @__PURE__ */ dual(3, (self, tag2, service2) => contextWithEffect((env) => provideContext(self, add4(env, tag2, service2))));
|
|
@@ -6975,7 +7049,7 @@ var tryPromise = (arg) => {
|
|
|
6975
7049
|
if (evaluate2.length >= 1) {
|
|
6976
7050
|
return async_((resolve, signal) => {
|
|
6977
7051
|
try {
|
|
6978
|
-
evaluate2(signal).then((a) => resolve(
|
|
7052
|
+
evaluate2(signal).then((a) => resolve(succeed(a)), (e) => resolve(fail13(e)));
|
|
6979
7053
|
} catch (e) {
|
|
6980
7054
|
resolve(fail13(e));
|
|
6981
7055
|
}
|
|
@@ -6983,7 +7057,7 @@ var tryPromise = (arg) => {
|
|
|
6983
7057
|
}
|
|
6984
7058
|
return async_((resolve) => {
|
|
6985
7059
|
try {
|
|
6986
|
-
evaluate2().then((a) => resolve(
|
|
7060
|
+
evaluate2().then((a) => resolve(succeed(a)), (e) => resolve(fail13(e)));
|
|
6987
7061
|
} catch (e) {
|
|
6988
7062
|
resolve(fail13(e));
|
|
6989
7063
|
}
|
|
@@ -7025,7 +7099,7 @@ var unsafeMakeSpan = (fiber, name, options3) => {
|
|
|
7025
7099
|
const annotationsFromEnv = get9(fiberRefs3, currentTracerSpanAnnotations);
|
|
7026
7100
|
const linksFromEnv = get9(fiberRefs3, currentTracerSpanLinks);
|
|
7027
7101
|
const links = linksFromEnv._tag === "Some" ? options3.links !== void 0 ? [...toReadonlyArray(linksFromEnv.value), ...options3.links ?? []] : toReadonlyArray(linksFromEnv.value) : options3.links ?? empty();
|
|
7028
|
-
span2 = tracer2.span(name, parent, options3.context ?? empty8(), links, timingEnabled ? clock3.unsafeCurrentTimeNanos() : bigint02, options3.kind ?? "internal");
|
|
7102
|
+
span2 = tracer2.span(name, parent, options3.context ?? empty8(), links, timingEnabled ? clock3.unsafeCurrentTimeNanos() : bigint02, options3.kind ?? "internal", options3);
|
|
7029
7103
|
if (annotationsFromEnv._tag === "Some") {
|
|
7030
7104
|
forEach3(annotationsFromEnv.value, (value2, key) => span2.attribute(key, value2));
|
|
7031
7105
|
}
|
|
@@ -7059,22 +7133,21 @@ var useSpan = (name, ...args2) => {
|
|
|
7059
7133
|
};
|
|
7060
7134
|
var withParentSpan = /* @__PURE__ */ dual(2, (self, span2) => provideService(self, spanTag, span2));
|
|
7061
7135
|
|
|
7062
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7136
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Exit.js
|
|
7063
7137
|
var isFailure = exitIsFailure;
|
|
7064
7138
|
var isSuccess = exitIsSuccess;
|
|
7065
|
-
var isInterrupted2 = exitIsInterrupted;
|
|
7066
7139
|
var all2 = exitCollectAll;
|
|
7067
7140
|
var die3 = exitDie;
|
|
7068
7141
|
var fail3 = exitFail;
|
|
7069
|
-
var
|
|
7142
|
+
var failCause3 = exitFailCause;
|
|
7070
7143
|
var map13 = exitMap;
|
|
7071
7144
|
var match9 = exitMatch;
|
|
7072
|
-
var
|
|
7145
|
+
var succeed3 = exitSucceed;
|
|
7073
7146
|
var void_3 = exitVoid;
|
|
7074
7147
|
var zip3 = exitZip;
|
|
7075
7148
|
var zipRight2 = exitZipRight;
|
|
7076
7149
|
|
|
7077
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7150
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberMessage.js
|
|
7078
7151
|
var OP_INTERRUPT_SIGNAL = "InterruptSignal";
|
|
7079
7152
|
var OP_STATEFUL = "Stateful";
|
|
7080
7153
|
var OP_RESUME = "Resume";
|
|
@@ -7095,7 +7168,7 @@ var yieldNow3 = () => ({
|
|
|
7095
7168
|
_tag: OP_YIELD_NOW
|
|
7096
7169
|
});
|
|
7097
7170
|
|
|
7098
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7171
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberScope.js
|
|
7099
7172
|
var FiberScopeSymbolKey = "effect/FiberScope";
|
|
7100
7173
|
var FiberScopeTypeId = /* @__PURE__ */ Symbol.for(FiberScopeSymbolKey);
|
|
7101
7174
|
var Global = class {
|
|
@@ -7131,7 +7204,7 @@ var unsafeMake5 = (fiber) => {
|
|
|
7131
7204
|
};
|
|
7132
7205
|
var globalScope = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberScope/Global"), () => new Global());
|
|
7133
7206
|
|
|
7134
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7207
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiber.js
|
|
7135
7208
|
var FiberSymbolKey = "effect/Fiber";
|
|
7136
7209
|
var FiberTypeId = /* @__PURE__ */ Symbol.for(FiberSymbolKey);
|
|
7137
7210
|
var fiberVariance2 = {
|
|
@@ -7142,14 +7215,14 @@ var fiberVariance2 = {
|
|
|
7142
7215
|
};
|
|
7143
7216
|
var RuntimeFiberSymbolKey = "effect/Fiber";
|
|
7144
7217
|
var RuntimeFiberTypeId = /* @__PURE__ */ Symbol.for(RuntimeFiberSymbolKey);
|
|
7145
|
-
var
|
|
7218
|
+
var _await = (self) => self.await;
|
|
7146
7219
|
var inheritAll = (self) => self.inheritAll;
|
|
7147
7220
|
var join2 = (self) => zipLeft(flatten3(self.await), self.inheritAll);
|
|
7148
7221
|
({
|
|
7149
7222
|
...CommitPrototype});
|
|
7150
7223
|
var currentFiberURI = "effect/FiberCurrent";
|
|
7151
7224
|
|
|
7152
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7225
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/logger.js
|
|
7153
7226
|
var LoggerSymbolKey = "effect/Logger";
|
|
7154
7227
|
var LoggerTypeId = /* @__PURE__ */ Symbol.for(LoggerSymbolKey);
|
|
7155
7228
|
var loggerVariance = {
|
|
@@ -7176,9 +7249,9 @@ var format3 = (quoteValue, whitespace) => ({
|
|
|
7176
7249
|
spans
|
|
7177
7250
|
}) => {
|
|
7178
7251
|
const formatValue = (value2) => value2.match(textOnly) ? value2 : quoteValue(value2);
|
|
7179
|
-
const
|
|
7180
|
-
const append5 = (label, value2) => " " +
|
|
7181
|
-
let out =
|
|
7252
|
+
const format5 = (label, value2) => `${formatLabel(label)}=${formatValue(value2)}`;
|
|
7253
|
+
const append5 = (label, value2) => " " + format5(label, value2);
|
|
7254
|
+
let out = format5("timestamp", date.toISOString());
|
|
7182
7255
|
out += append5("level", logLevel.label);
|
|
7183
7256
|
out += append5("fiber", threadName(fiberId2));
|
|
7184
7257
|
const messages = ensure(message);
|
|
@@ -7271,7 +7344,6 @@ var prettyLogger = (options3) => {
|
|
|
7271
7344
|
});
|
|
7272
7345
|
};
|
|
7273
7346
|
var prettyLoggerTty = (options3) => {
|
|
7274
|
-
const processIsBun = typeof process === "object" && "isBun" in process && process.isBun === true;
|
|
7275
7347
|
const color = options3.colors ? withColor : withColorNoop;
|
|
7276
7348
|
return makeLogger(({
|
|
7277
7349
|
annotations: annotations2,
|
|
@@ -7305,7 +7377,7 @@ var prettyLoggerTty = (options3) => {
|
|
|
7305
7377
|
}
|
|
7306
7378
|
}
|
|
7307
7379
|
log2(firstLine);
|
|
7308
|
-
|
|
7380
|
+
console2.group();
|
|
7309
7381
|
if (!isEmpty3(cause2)) {
|
|
7310
7382
|
log2(pretty(cause2, {
|
|
7311
7383
|
renderErrorCause: true
|
|
@@ -7321,7 +7393,7 @@ var prettyLoggerTty = (options3) => {
|
|
|
7321
7393
|
log2(color(`${key}:`, colors.bold, colors.white), redact(value2));
|
|
7322
7394
|
}
|
|
7323
7395
|
}
|
|
7324
|
-
|
|
7396
|
+
console2.groupEnd();
|
|
7325
7397
|
});
|
|
7326
7398
|
};
|
|
7327
7399
|
var prettyLoggerBrowser = (options3) => {
|
|
@@ -7393,7 +7465,7 @@ var prettyLoggerBrowser = (options3) => {
|
|
|
7393
7465
|
};
|
|
7394
7466
|
var prettyLoggerDefault = /* @__PURE__ */ globalValue("effect/Logger/prettyLoggerDefault", () => prettyLogger());
|
|
7395
7467
|
|
|
7396
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7468
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/boundaries.js
|
|
7397
7469
|
var MetricBoundariesSymbolKey = "effect/MetricBoundaries";
|
|
7398
7470
|
var MetricBoundariesTypeId = /* @__PURE__ */ Symbol.for(MetricBoundariesSymbolKey);
|
|
7399
7471
|
var MetricBoundariesImpl = class {
|
|
@@ -7421,7 +7493,7 @@ var fromIterable7 = (iterable) => {
|
|
|
7421
7493
|
};
|
|
7422
7494
|
var exponential = (options3) => pipe(makeBy(options3.count - 1, (i) => options3.start * Math.pow(options3.factor, i)), unsafeFromArray, fromIterable7);
|
|
7423
7495
|
|
|
7424
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7496
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/keyType.js
|
|
7425
7497
|
var MetricKeyTypeSymbolKey = "effect/MetricKeyType";
|
|
7426
7498
|
var MetricKeyTypeTypeId = /* @__PURE__ */ Symbol.for(MetricKeyTypeSymbolKey);
|
|
7427
7499
|
var CounterKeyTypeSymbolKey = "effect/MetricKeyType/Counter";
|
|
@@ -7490,7 +7562,7 @@ var isGaugeKey = (u) => hasProperty(u, GaugeKeyTypeTypeId);
|
|
|
7490
7562
|
var isHistogramKey = (u) => hasProperty(u, HistogramKeyTypeTypeId);
|
|
7491
7563
|
var isSummaryKey = (u) => hasProperty(u, SummaryKeyTypeTypeId);
|
|
7492
7564
|
|
|
7493
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7565
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/key.js
|
|
7494
7566
|
var MetricKeySymbolKey = "effect/MetricKey";
|
|
7495
7567
|
var MetricKeyTypeId = /* @__PURE__ */ Symbol.for(MetricKeySymbolKey);
|
|
7496
7568
|
var metricKeyVariance = {
|
|
@@ -7527,7 +7599,7 @@ var counter2 = (name, options3) => new MetricKeyImpl(name, counter(options3), fr
|
|
|
7527
7599
|
var histogram2 = (name, boundaries, description) => new MetricKeyImpl(name, histogram(boundaries), fromNullable(description));
|
|
7528
7600
|
var taggedWithLabels = /* @__PURE__ */ dual(2, (self, extraTags) => extraTags.length === 0 ? self : new MetricKeyImpl(self.name, self.keyType, self.description, union(self.tags, extraTags)));
|
|
7529
7601
|
|
|
7530
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7602
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/MutableHashMap.js
|
|
7531
7603
|
var TypeId11 = /* @__PURE__ */ Symbol.for("effect/MutableHashMap");
|
|
7532
7604
|
var MutableHashMapProto = {
|
|
7533
7605
|
[TypeId11]: TypeId11,
|
|
@@ -7654,7 +7726,7 @@ var removeFromBucket = (self, bucket, key) => {
|
|
|
7654
7726
|
}
|
|
7655
7727
|
};
|
|
7656
7728
|
|
|
7657
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7729
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/state.js
|
|
7658
7730
|
var MetricStateSymbolKey = "effect/MetricState";
|
|
7659
7731
|
var MetricStateTypeId = /* @__PURE__ */ Symbol.for(MetricStateSymbolKey);
|
|
7660
7732
|
var CounterStateSymbolKey = "effect/MetricState/Counter";
|
|
@@ -7789,7 +7861,7 @@ var isGaugeState = (u) => hasProperty(u, GaugeStateTypeId);
|
|
|
7789
7861
|
var isHistogramState = (u) => hasProperty(u, HistogramStateTypeId);
|
|
7790
7862
|
var isSummaryState = (u) => hasProperty(u, SummaryStateTypeId);
|
|
7791
7863
|
|
|
7792
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
7864
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/hook.js
|
|
7793
7865
|
var MetricHookSymbolKey = "effect/MetricHook";
|
|
7794
7866
|
var MetricHookTypeId = /* @__PURE__ */ Symbol.for(MetricHookSymbolKey);
|
|
7795
7867
|
var metricHookVariance = {
|
|
@@ -7798,7 +7870,7 @@ var metricHookVariance = {
|
|
|
7798
7870
|
/* c8 ignore next */
|
|
7799
7871
|
_Out: (_) => _
|
|
7800
7872
|
};
|
|
7801
|
-
var
|
|
7873
|
+
var make28 = (options3) => ({
|
|
7802
7874
|
[MetricHookTypeId]: metricHookVariance,
|
|
7803
7875
|
pipe() {
|
|
7804
7876
|
return pipeArguments(this, arguments);
|
|
@@ -7814,7 +7886,7 @@ var counter4 = (key) => {
|
|
|
7814
7886
|
sum3 = sum3 + value2;
|
|
7815
7887
|
}
|
|
7816
7888
|
};
|
|
7817
|
-
return
|
|
7889
|
+
return make28({
|
|
7818
7890
|
get: () => counter3(sum3),
|
|
7819
7891
|
update: update5,
|
|
7820
7892
|
modify: update5
|
|
@@ -7829,7 +7901,7 @@ var frequency3 = (key) => {
|
|
|
7829
7901
|
const slotCount = values3.get(word) ?? 0;
|
|
7830
7902
|
values3.set(word, slotCount + 1);
|
|
7831
7903
|
};
|
|
7832
|
-
return
|
|
7904
|
+
return make28({
|
|
7833
7905
|
get: () => frequency2(values3),
|
|
7834
7906
|
update: update5,
|
|
7835
7907
|
modify: update5
|
|
@@ -7837,7 +7909,7 @@ var frequency3 = (key) => {
|
|
|
7837
7909
|
};
|
|
7838
7910
|
var gauge3 = (_key, startAt) => {
|
|
7839
7911
|
let value2 = startAt;
|
|
7840
|
-
return
|
|
7912
|
+
return make28({
|
|
7841
7913
|
get: () => gauge2(value2),
|
|
7842
7914
|
update: (v) => {
|
|
7843
7915
|
value2 = v;
|
|
@@ -7851,7 +7923,7 @@ var histogram4 = (key) => {
|
|
|
7851
7923
|
const bounds = key.keyType.boundaries.values;
|
|
7852
7924
|
const size12 = bounds.length;
|
|
7853
7925
|
const values3 = new Uint32Array(size12 + 1);
|
|
7854
|
-
const boundaries = new
|
|
7926
|
+
const boundaries = new Float64Array(size12);
|
|
7855
7927
|
let count2 = 0;
|
|
7856
7928
|
let sum3 = 0;
|
|
7857
7929
|
let min3 = Number.MAX_VALUE;
|
|
@@ -7899,7 +7971,7 @@ var histogram4 = (key) => {
|
|
|
7899
7971
|
}
|
|
7900
7972
|
return builder;
|
|
7901
7973
|
};
|
|
7902
|
-
return
|
|
7974
|
+
return make28({
|
|
7903
7975
|
get: () => histogram3({
|
|
7904
7976
|
buckets: getBuckets(),
|
|
7905
7977
|
count: count2,
|
|
@@ -7952,7 +8024,7 @@ var summary3 = (key) => {
|
|
|
7952
8024
|
count2 = count2 + 1;
|
|
7953
8025
|
sum3 = sum3 + value2;
|
|
7954
8026
|
};
|
|
7955
|
-
return
|
|
8027
|
+
return make28({
|
|
7956
8028
|
get: () => summary2({
|
|
7957
8029
|
error,
|
|
7958
8030
|
quantiles: snapshot(Date.now()),
|
|
@@ -8084,7 +8156,7 @@ var resolveQuantile = (error, sampleCount, current, consumed, quantile, rest) =>
|
|
|
8084
8156
|
throw new Error("BUG: MetricHook.resolveQuantiles - please report an issue at https://github.com/Effect-TS/effect/issues");
|
|
8085
8157
|
};
|
|
8086
8158
|
|
|
8087
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8159
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/pair.js
|
|
8088
8160
|
var MetricPairSymbolKey = "effect/MetricPair";
|
|
8089
8161
|
var MetricPairTypeId = /* @__PURE__ */ Symbol.for(MetricPairSymbolKey);
|
|
8090
8162
|
var metricPairVariance = {
|
|
@@ -8102,7 +8174,7 @@ var unsafeMake6 = (metricKey, metricState) => {
|
|
|
8102
8174
|
};
|
|
8103
8175
|
};
|
|
8104
8176
|
|
|
8105
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8177
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric/registry.js
|
|
8106
8178
|
var MetricRegistrySymbolKey = "effect/MetricRegistry";
|
|
8107
8179
|
var MetricRegistryTypeId = /* @__PURE__ */ Symbol.for(MetricRegistrySymbolKey);
|
|
8108
8180
|
var MetricRegistryImpl = class {
|
|
@@ -8194,11 +8266,11 @@ var MetricRegistryImpl = class {
|
|
|
8194
8266
|
return value2;
|
|
8195
8267
|
}
|
|
8196
8268
|
};
|
|
8197
|
-
var
|
|
8269
|
+
var make29 = () => {
|
|
8198
8270
|
return new MetricRegistryImpl();
|
|
8199
8271
|
};
|
|
8200
8272
|
|
|
8201
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8273
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/metric.js
|
|
8202
8274
|
var MetricSymbolKey = "effect/Metric";
|
|
8203
8275
|
var MetricTypeId = /* @__PURE__ */ Symbol.for(MetricSymbolKey);
|
|
8204
8276
|
var metricVariance = {
|
|
@@ -8209,8 +8281,8 @@ var metricVariance = {
|
|
|
8209
8281
|
/* c8 ignore next */
|
|
8210
8282
|
_Out: (_) => _
|
|
8211
8283
|
};
|
|
8212
|
-
var globalMetricRegistry = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Metric/globalMetricRegistry"), () =>
|
|
8213
|
-
var
|
|
8284
|
+
var globalMetricRegistry = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Metric/globalMetricRegistry"), () => make29());
|
|
8285
|
+
var make30 = function(keyType, unsafeUpdate, unsafeValue, unsafeModify) {
|
|
8214
8286
|
const metric = Object.assign((effect3) => tap(effect3, (a) => update4(metric, a)), {
|
|
8215
8287
|
[MetricTypeId]: metricVariance,
|
|
8216
8288
|
keyType,
|
|
@@ -8247,12 +8319,12 @@ var fromMetricKey = (key) => {
|
|
|
8247
8319
|
hookCache.set(extraTags, hook2);
|
|
8248
8320
|
return hook2;
|
|
8249
8321
|
};
|
|
8250
|
-
return
|
|
8322
|
+
return make30(key.keyType, (input, extraTags) => hook(extraTags).update(input), (extraTags) => hook(extraTags).get(), (input, extraTags) => hook(extraTags).modify(input));
|
|
8251
8323
|
};
|
|
8252
8324
|
var histogram5 = (name, boundaries, description) => fromMetricKey(histogram2(name, boundaries, description));
|
|
8253
|
-
var tagged = /* @__PURE__ */ dual(3, (self, key, value2) => taggedWithLabels2(self, [
|
|
8325
|
+
var tagged = /* @__PURE__ */ dual(3, (self, key, value2) => taggedWithLabels2(self, [make27(key, value2)]));
|
|
8254
8326
|
var taggedWithLabels2 = /* @__PURE__ */ dual(2, (self, extraTags) => {
|
|
8255
|
-
return
|
|
8327
|
+
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)));
|
|
8256
8328
|
});
|
|
8257
8329
|
var update4 = /* @__PURE__ */ dual(2, (self, input) => fiberRefGetWith(currentMetricLabels, (tags) => sync(() => self.unsafeUpdate(input, tags))));
|
|
8258
8330
|
({
|
|
@@ -8267,7 +8339,7 @@ var complete = /* @__PURE__ */ dual(2, (self, result) => fiberRefGetWith(current
|
|
|
8267
8339
|
}
|
|
8268
8340
|
})));
|
|
8269
8341
|
|
|
8270
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8342
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/supervisor.js
|
|
8271
8343
|
var SupervisorSymbolKey = "effect/Supervisor";
|
|
8272
8344
|
var SupervisorTypeId = /* @__PURE__ */ Symbol.for(SupervisorSymbolKey);
|
|
8273
8345
|
var supervisorVariance = {
|
|
@@ -8381,10 +8453,10 @@ var fromEffect = (effect3) => {
|
|
|
8381
8453
|
};
|
|
8382
8454
|
var none7 = /* @__PURE__ */ globalValue("effect/Supervisor/none", () => fromEffect(void_));
|
|
8383
8455
|
|
|
8384
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8385
|
-
var
|
|
8456
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Differ.js
|
|
8457
|
+
var make32 = make14;
|
|
8386
8458
|
|
|
8387
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8459
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/supervisor/patch.js
|
|
8388
8460
|
var OP_EMPTY3 = "Empty";
|
|
8389
8461
|
var OP_ADD_SUPERVISOR = "AddSupervisor";
|
|
8390
8462
|
var OP_REMOVE_SUPERVISOR = "RemoveSupervisor";
|
|
@@ -8468,14 +8540,14 @@ var diff7 = (oldValue, newValue) => {
|
|
|
8468
8540
|
})));
|
|
8469
8541
|
return combine8(added, removed);
|
|
8470
8542
|
};
|
|
8471
|
-
var differ2 = /* @__PURE__ */
|
|
8543
|
+
var differ2 = /* @__PURE__ */ make32({
|
|
8472
8544
|
empty: empty22,
|
|
8473
8545
|
patch: patch8,
|
|
8474
8546
|
combine: combine8,
|
|
8475
8547
|
diff: diff7
|
|
8476
8548
|
});
|
|
8477
8549
|
|
|
8478
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
8550
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/fiberRuntime.js
|
|
8479
8551
|
var fiberStarted = /* @__PURE__ */ counter5("effect_fiber_started", {
|
|
8480
8552
|
incremental: true
|
|
8481
8553
|
});
|
|
@@ -8535,10 +8607,20 @@ var contOpSuccess = {
|
|
|
8535
8607
|
}
|
|
8536
8608
|
},
|
|
8537
8609
|
[OP_ITERATOR]: (self, cont, value2) => {
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8610
|
+
while (true) {
|
|
8611
|
+
const state = internalCall(() => cont.effect_instruction_i0.next(value2));
|
|
8612
|
+
if (state.done) {
|
|
8613
|
+
return exitSucceed(state.value);
|
|
8614
|
+
}
|
|
8615
|
+
const primitive = yieldWrapGet(state.value);
|
|
8616
|
+
if (!exitIsExit(primitive)) {
|
|
8617
|
+
self.pushStack(cont);
|
|
8618
|
+
return primitive;
|
|
8619
|
+
} else if (primitive._tag === "Failure") {
|
|
8620
|
+
return primitive;
|
|
8621
|
+
}
|
|
8622
|
+
value2 = primitive.value;
|
|
8623
|
+
}
|
|
8542
8624
|
}
|
|
8543
8625
|
};
|
|
8544
8626
|
var drainQueueWhileRunningTable = {
|
|
@@ -8635,7 +8717,7 @@ var FiberRuntime = class extends Class2 {
|
|
|
8635
8717
|
*/
|
|
8636
8718
|
get runtimeFlags() {
|
|
8637
8719
|
return this.ask((state, status2) => {
|
|
8638
|
-
if (
|
|
8720
|
+
if (isDone2(status2)) {
|
|
8639
8721
|
return state.currentRuntimeFlags;
|
|
8640
8722
|
}
|
|
8641
8723
|
return status2.runtimeFlags;
|
|
@@ -9564,7 +9646,7 @@ var tracerLogger = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effec
|
|
|
9564
9646
|
renderErrorCause: true
|
|
9565
9647
|
});
|
|
9566
9648
|
}
|
|
9567
|
-
span2.value.event(toStringUnknown(Array.isArray(message) ? message[0] : message), clockService.unsafeCurrentTimeNanos(), attributes);
|
|
9649
|
+
span2.value.event(toStringUnknown(Array.isArray(message) && message.length === 1 ? message[0] : message), clockService.unsafeCurrentTimeNanos(), attributes);
|
|
9568
9650
|
}));
|
|
9569
9651
|
var currentLoggers = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/FiberRef/currentLoggers"), () => fiberRefUnsafeMakeHashSet(make7(defaultLogger, tracerLogger)));
|
|
9570
9652
|
var annotateLogsScoped = function() {
|
|
@@ -10125,20 +10207,20 @@ var invokeWithInterrupt = (self, entries2, onInterrupt3) => fiberIdWith((id2) =>
|
|
|
10125
10207
|
return forEachSequentialDiscard(residual, (entry) => complete(entry.request, exitInterrupt(id2)));
|
|
10126
10208
|
})));
|
|
10127
10209
|
|
|
10128
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10210
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Cause.js
|
|
10129
10211
|
var fail4 = fail;
|
|
10130
10212
|
var die4 = die;
|
|
10131
10213
|
var interrupt3 = interrupt;
|
|
10132
10214
|
var isFailType2 = isFailType;
|
|
10133
10215
|
var isDieType2 = isDieType;
|
|
10134
|
-
var
|
|
10216
|
+
var isInterrupted2 = isInterrupted;
|
|
10135
10217
|
var interruptors2 = interruptors;
|
|
10136
10218
|
var failureOrCause2 = failureOrCause;
|
|
10137
10219
|
var map14 = map9;
|
|
10138
10220
|
var squash = causeSquash;
|
|
10139
10221
|
var pretty2 = pretty;
|
|
10140
10222
|
|
|
10141
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10223
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schedule/interval.js
|
|
10142
10224
|
var IntervalSymbolKey = "effect/ScheduleInterval";
|
|
10143
10225
|
var IntervalTypeId = /* @__PURE__ */ Symbol.for(IntervalSymbolKey);
|
|
10144
10226
|
var empty24 = {
|
|
@@ -10146,7 +10228,7 @@ var empty24 = {
|
|
|
10146
10228
|
startMillis: 0,
|
|
10147
10229
|
endMillis: 0
|
|
10148
10230
|
};
|
|
10149
|
-
var
|
|
10231
|
+
var make33 = (startMillis, endMillis) => {
|
|
10150
10232
|
if (startMillis > endMillis) {
|
|
10151
10233
|
return empty24;
|
|
10152
10234
|
}
|
|
@@ -10171,23 +10253,23 @@ var isEmpty6 = (self) => {
|
|
|
10171
10253
|
var intersect = /* @__PURE__ */ dual(2, (self, that) => {
|
|
10172
10254
|
const start3 = Math.max(self.startMillis, that.startMillis);
|
|
10173
10255
|
const end3 = Math.min(self.endMillis, that.endMillis);
|
|
10174
|
-
return
|
|
10256
|
+
return make33(start3, end3);
|
|
10175
10257
|
});
|
|
10176
10258
|
var after = (startMilliseconds) => {
|
|
10177
|
-
return
|
|
10259
|
+
return make33(startMilliseconds, Number.POSITIVE_INFINITY);
|
|
10178
10260
|
};
|
|
10179
10261
|
|
|
10180
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10262
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/ScheduleInterval.js
|
|
10181
10263
|
var empty25 = empty24;
|
|
10182
10264
|
var lessThan3 = lessThan2;
|
|
10183
10265
|
var isEmpty7 = isEmpty6;
|
|
10184
10266
|
var intersect2 = intersect;
|
|
10185
10267
|
var after2 = after;
|
|
10186
10268
|
|
|
10187
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10269
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schedule/intervals.js
|
|
10188
10270
|
var IntervalsSymbolKey = "effect/ScheduleIntervals";
|
|
10189
10271
|
var IntervalsTypeId = /* @__PURE__ */ Symbol.for(IntervalsSymbolKey);
|
|
10190
|
-
var
|
|
10272
|
+
var make35 = (intervals) => {
|
|
10191
10273
|
return {
|
|
10192
10274
|
[IntervalsTypeId]: IntervalsTypeId,
|
|
10193
10275
|
intervals
|
|
@@ -10208,7 +10290,7 @@ var intersectLoop = (_left, _right, _acc) => {
|
|
|
10208
10290
|
}
|
|
10209
10291
|
acc = intervals;
|
|
10210
10292
|
}
|
|
10211
|
-
return
|
|
10293
|
+
return make35(reverse2(acc));
|
|
10212
10294
|
};
|
|
10213
10295
|
var start = (self) => {
|
|
10214
10296
|
return pipe(self.intervals, head2, getOrElse(() => empty25)).startMillis;
|
|
@@ -10221,15 +10303,15 @@ var isNonEmpty3 = (self) => {
|
|
|
10221
10303
|
return isNonEmpty(self.intervals);
|
|
10222
10304
|
};
|
|
10223
10305
|
|
|
10224
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10225
|
-
var
|
|
10306
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/ScheduleIntervals.js
|
|
10307
|
+
var make36 = make35;
|
|
10226
10308
|
var intersect4 = intersect3;
|
|
10227
10309
|
var start2 = start;
|
|
10228
10310
|
var end2 = end;
|
|
10229
10311
|
var lessThan5 = lessThan4;
|
|
10230
10312
|
var isNonEmpty4 = isNonEmpty3;
|
|
10231
10313
|
|
|
10232
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10314
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schedule/decision.js
|
|
10233
10315
|
var OP_CONTINUE = "Continue";
|
|
10234
10316
|
var OP_DONE2 = "Done";
|
|
10235
10317
|
var _continue = (intervals) => {
|
|
@@ -10241,7 +10323,7 @@ var _continue = (intervals) => {
|
|
|
10241
10323
|
var continueWith = (interval) => {
|
|
10242
10324
|
return {
|
|
10243
10325
|
_tag: OP_CONTINUE,
|
|
10244
|
-
intervals:
|
|
10326
|
+
intervals: make36(of2(interval))
|
|
10245
10327
|
};
|
|
10246
10328
|
};
|
|
10247
10329
|
var done4 = {
|
|
@@ -10250,26 +10332,26 @@ var done4 = {
|
|
|
10250
10332
|
var isContinue = (self) => {
|
|
10251
10333
|
return self._tag === OP_CONTINUE;
|
|
10252
10334
|
};
|
|
10253
|
-
var
|
|
10335
|
+
var isDone3 = (self) => {
|
|
10254
10336
|
return self._tag === OP_DONE2;
|
|
10255
10337
|
};
|
|
10256
10338
|
|
|
10257
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10339
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/ScheduleDecision.js
|
|
10258
10340
|
var _continue2 = _continue;
|
|
10259
10341
|
var continueWith2 = continueWith;
|
|
10260
10342
|
var done5 = done4;
|
|
10261
10343
|
var isContinue2 = isContinue;
|
|
10262
|
-
var
|
|
10344
|
+
var isDone4 = isDone3;
|
|
10263
10345
|
|
|
10264
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10346
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Scope.js
|
|
10265
10347
|
var addFinalizer2 = scopeAddFinalizer;
|
|
10266
10348
|
var addFinalizerExit = scopeAddFinalizerExit;
|
|
10267
10349
|
var close = scopeClose;
|
|
10268
10350
|
var extend2 = scopeExtend;
|
|
10269
10351
|
var fork = scopeFork;
|
|
10270
|
-
var
|
|
10352
|
+
var make37 = scopeMake;
|
|
10271
10353
|
|
|
10272
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10354
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/effect/circular.js
|
|
10273
10355
|
var Semaphore = class {
|
|
10274
10356
|
permits;
|
|
10275
10357
|
waiters = /* @__PURE__ */ new Set();
|
|
@@ -10298,7 +10380,7 @@ var Semaphore = class {
|
|
|
10298
10380
|
this.taken += n;
|
|
10299
10381
|
return resume2(succeed(n));
|
|
10300
10382
|
});
|
|
10301
|
-
|
|
10383
|
+
updateTakenUnsafe(fiber, f) {
|
|
10302
10384
|
this.taken = f(this.taken);
|
|
10303
10385
|
if (this.waiters.size > 0) {
|
|
10304
10386
|
fiber.getFiberRef(currentScheduler).scheduleTask(() => {
|
|
@@ -10311,7 +10393,17 @@ var Semaphore = class {
|
|
|
10311
10393
|
}, fiber.getFiberRef(currentSchedulingPriority));
|
|
10312
10394
|
}
|
|
10313
10395
|
return succeed(this.free);
|
|
10314
|
-
}
|
|
10396
|
+
}
|
|
10397
|
+
updateTaken(f) {
|
|
10398
|
+
return withFiberRuntime((fiber) => this.updateTakenUnsafe(fiber, f));
|
|
10399
|
+
}
|
|
10400
|
+
resize = (permits) => asVoid(withFiberRuntime((fiber) => {
|
|
10401
|
+
this.permits = permits;
|
|
10402
|
+
if (this.free < 0) {
|
|
10403
|
+
return void_;
|
|
10404
|
+
}
|
|
10405
|
+
return this.updateTakenUnsafe(fiber, (taken) => taken);
|
|
10406
|
+
}));
|
|
10315
10407
|
release = (n) => this.updateTaken((taken) => taken - n);
|
|
10316
10408
|
releaseAll = /* @__PURE__ */ this.updateTaken((_) => 0);
|
|
10317
10409
|
withPermits = (n) => (self) => uninterruptibleMask((restore) => flatMap7(restore(this.take(n)), (permits) => ensuring(restore(self), this.release(permits))));
|
|
@@ -10445,25 +10537,24 @@ var unsafeMakeSynchronized = (value2) => {
|
|
|
10445
10537
|
return new SynchronizedImpl(ref, sem.withPermits(1));
|
|
10446
10538
|
};
|
|
10447
10539
|
|
|
10448
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10540
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/managedRuntime/circular.js
|
|
10449
10541
|
var TypeId13 = /* @__PURE__ */ Symbol.for("effect/ManagedRuntime");
|
|
10450
10542
|
|
|
10451
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10543
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/layer.js
|
|
10452
10544
|
var OP_FOLD = "Fold";
|
|
10453
10545
|
var OP_FRESH = "Fresh";
|
|
10454
10546
|
var OP_FROM_EFFECT = "FromEffect";
|
|
10455
10547
|
var OP_SCOPED = "Scoped";
|
|
10456
|
-
var
|
|
10457
|
-
var OP_ZIP_WITH2 = "ZipWith";
|
|
10548
|
+
var OP_MERGE_ALL = "MergeAll";
|
|
10458
10549
|
|
|
10459
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10460
|
-
var
|
|
10550
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Fiber.js
|
|
10551
|
+
var _await2 = _await;
|
|
10461
10552
|
var inheritAll2 = inheritAll;
|
|
10462
10553
|
var interrupt4 = interruptFiber;
|
|
10463
10554
|
var interruptAs = interruptAsFiber;
|
|
10464
10555
|
var join3 = join2;
|
|
10465
10556
|
|
|
10466
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10557
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/runtime.js
|
|
10467
10558
|
var makeDual = (f) => function() {
|
|
10468
10559
|
if (arguments.length === 1) {
|
|
10469
10560
|
const runtime4 = arguments[0];
|
|
@@ -10644,10 +10735,10 @@ var RuntimeImpl = class {
|
|
|
10644
10735
|
return pipeArguments(this, arguments);
|
|
10645
10736
|
}
|
|
10646
10737
|
};
|
|
10647
|
-
var
|
|
10738
|
+
var make38 = (options3) => new RuntimeImpl(options3.context, options3.runtimeFlags, options3.fiberRefs);
|
|
10648
10739
|
var runtime2 = () => withFiberRuntime((state, status2) => succeed(new RuntimeImpl(state.getFiberRef(currentContext), status2.runtimeFlags, state.getFiberRefs())));
|
|
10649
10740
|
var defaultRuntimeFlags = /* @__PURE__ */ make16(Interruption, CooperativeYielding, RuntimeMetrics);
|
|
10650
|
-
var defaultRuntime = /* @__PURE__ */
|
|
10741
|
+
var defaultRuntime = /* @__PURE__ */ make38({
|
|
10651
10742
|
context: /* @__PURE__ */ empty8(),
|
|
10652
10743
|
runtimeFlags: defaultRuntimeFlags,
|
|
10653
10744
|
fiberRefs: /* @__PURE__ */ empty17()
|
|
@@ -10656,10 +10747,10 @@ var unsafeForkEffect = /* @__PURE__ */ unsafeFork3(defaultRuntime);
|
|
|
10656
10747
|
var unsafeRunPromiseEffect = /* @__PURE__ */ unsafeRunPromise(defaultRuntime);
|
|
10657
10748
|
var unsafeRunSyncEffect = /* @__PURE__ */ unsafeRunSync(defaultRuntime);
|
|
10658
10749
|
|
|
10659
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10750
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/synchronizedRef.js
|
|
10660
10751
|
var modifyEffect = /* @__PURE__ */ dual(2, (self, f) => self.modifyEffect(f));
|
|
10661
10752
|
|
|
10662
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10753
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/layer.js
|
|
10663
10754
|
var LayerSymbolKey = "effect/Layer";
|
|
10664
10755
|
var LayerTypeId = /* @__PURE__ */ Symbol.for(LayerSymbolKey);
|
|
10665
10756
|
var layerVariance = {
|
|
@@ -10708,7 +10799,7 @@ var MemoMapImpl = class {
|
|
|
10708
10799
|
})));
|
|
10709
10800
|
return succeed([cached4, map22]);
|
|
10710
10801
|
}
|
|
10711
|
-
return pipe(
|
|
10802
|
+
return pipe(make23(0), flatMap7((observers) => pipe(deferredMake(), flatMap7((deferred) => pipe(make23(() => void_), map11((finalizerRef) => {
|
|
10712
10803
|
const resource = uninterruptibleMask((restore) => pipe(scopeMake(), flatMap7((innerScope) => pipe(restore(flatMap7(makeBuilder(layer3, innerScope, true), (f) => diffFiberRefs(f(this)))), exit, flatMap7((exit4) => {
|
|
10713
10804
|
switch (exit4._tag) {
|
|
10714
10805
|
case OP_FAILURE: {
|
|
@@ -10766,14 +10857,30 @@ var makeBuilder = (self, scope4, inMemoMap = false) => {
|
|
|
10766
10857
|
return sync(() => (memoMap) => pipe(memoMap.getOrElseMemoize(op.first, scope4), zipWith2(memoMap.getOrElseMemoize(op.second, scope4), op.zipK)));
|
|
10767
10858
|
}
|
|
10768
10859
|
case "ZipWith": {
|
|
10769
|
-
return
|
|
10770
|
-
|
|
10771
|
-
|
|
10860
|
+
return gen(function* () {
|
|
10861
|
+
const parallelScope = yield* scopeFork(scope4, parallel2);
|
|
10862
|
+
const firstScope = yield* scopeFork(parallelScope, sequential2);
|
|
10863
|
+
const secondScope = yield* scopeFork(parallelScope, sequential2);
|
|
10864
|
+
return (memoMap) => pipe(memoMap.getOrElseMemoize(op.first, firstScope), zipWithOptions(memoMap.getOrElseMemoize(op.second, secondScope), op.zipK, {
|
|
10865
|
+
concurrent: true
|
|
10866
|
+
}));
|
|
10867
|
+
});
|
|
10868
|
+
}
|
|
10869
|
+
case "MergeAll": {
|
|
10870
|
+
const layers = op.layers;
|
|
10871
|
+
return map11(scopeFork(scope4, parallel2), (parallelScope) => (memoMap) => {
|
|
10872
|
+
const contexts = new Array(layers.length);
|
|
10873
|
+
return map11(forEachConcurrentDiscard(layers, fnUntraced(function* (layer3, i) {
|
|
10874
|
+
const scope5 = yield* scopeFork(parallelScope, sequential2);
|
|
10875
|
+
const context5 = yield* memoMap.getOrElseMemoize(layer3, scope5);
|
|
10876
|
+
contexts[i] = context5;
|
|
10877
|
+
}), false, false), () => mergeAll2(...contexts));
|
|
10878
|
+
});
|
|
10772
10879
|
}
|
|
10773
10880
|
}
|
|
10774
10881
|
};
|
|
10775
|
-
var fail6 = (error) =>
|
|
10776
|
-
var
|
|
10882
|
+
var fail6 = (error) => failCause5(fail4(error));
|
|
10883
|
+
var failCause5 = (cause2) => fromEffectContext(failCause(cause2));
|
|
10777
10884
|
var flatMap9 = /* @__PURE__ */ dual(2, (self, f) => match11(self, {
|
|
10778
10885
|
onFailure: fail6,
|
|
10779
10886
|
onSuccess: f
|
|
@@ -10812,19 +10919,17 @@ var match11 = /* @__PURE__ */ dual(2, (self, {
|
|
|
10812
10919
|
return onFailure(failureOrCause3.left);
|
|
10813
10920
|
}
|
|
10814
10921
|
case "Right": {
|
|
10815
|
-
return
|
|
10922
|
+
return failCause5(failureOrCause3.right);
|
|
10816
10923
|
}
|
|
10817
10924
|
}
|
|
10818
10925
|
},
|
|
10819
10926
|
onSuccess
|
|
10820
10927
|
}));
|
|
10821
|
-
var
|
|
10822
|
-
|
|
10823
|
-
|
|
10824
|
-
|
|
10825
|
-
|
|
10826
|
-
}
|
|
10827
|
-
return final;
|
|
10928
|
+
var mergeAll3 = (...layers) => {
|
|
10929
|
+
const mergeAll8 = Object.create(proto3);
|
|
10930
|
+
mergeAll8._op_layer = OP_MERGE_ALL;
|
|
10931
|
+
mergeAll8.layers = layers;
|
|
10932
|
+
return mergeAll8;
|
|
10828
10933
|
};
|
|
10829
10934
|
var scopedDiscard = (effect3) => scopedContext(pipe(effect3, as(empty8())));
|
|
10830
10935
|
var scopedContext = (effect3) => {
|
|
@@ -10837,20 +10942,6 @@ var succeedContext = (context5) => {
|
|
|
10837
10942
|
return fromEffectContext(succeed(context5));
|
|
10838
10943
|
};
|
|
10839
10944
|
var empty27 = /* @__PURE__ */ succeedContext(/* @__PURE__ */ empty8());
|
|
10840
|
-
var suspend3 = (evaluate2) => {
|
|
10841
|
-
const suspend8 = Object.create(proto3);
|
|
10842
|
-
suspend8._op_layer = OP_SUSPEND;
|
|
10843
|
-
suspend8.evaluate = evaluate2;
|
|
10844
|
-
return suspend8;
|
|
10845
|
-
};
|
|
10846
|
-
var zipWith3 = /* @__PURE__ */ dual(3, (self, that, f) => suspend3(() => {
|
|
10847
|
-
const zipWith7 = Object.create(proto3);
|
|
10848
|
-
zipWith7._op_layer = OP_ZIP_WITH2;
|
|
10849
|
-
zipWith7.first = self;
|
|
10850
|
-
zipWith7.second = that;
|
|
10851
|
-
zipWith7.zipK = f;
|
|
10852
|
-
return zipWith7;
|
|
10853
|
-
}));
|
|
10854
10945
|
var provideSomeLayer = /* @__PURE__ */ dual(2, (self, layer3) => scopedWith((scope4) => flatMap7(buildWithScope(layer3, scope4), (context5) => provideSomeContext(self, context5))));
|
|
10855
10946
|
var provideSomeRuntime = /* @__PURE__ */ dual(2, (self, rt) => {
|
|
10856
10947
|
const patchRefs = diff6(defaultRuntime.fiberRefs, rt.fiberRefs);
|
|
@@ -10874,7 +10965,7 @@ var provideSomeRuntime = /* @__PURE__ */ dual(2, (self, rt) => {
|
|
|
10874
10965
|
});
|
|
10875
10966
|
var effect_provide = /* @__PURE__ */ dual(2, (self, source) => {
|
|
10876
10967
|
if (Array.isArray(source)) {
|
|
10877
|
-
return provideSomeLayer(self,
|
|
10968
|
+
return provideSomeLayer(self, mergeAll3(...source));
|
|
10878
10969
|
} else if (isLayer(source)) {
|
|
10879
10970
|
return provideSomeLayer(self, source);
|
|
10880
10971
|
} else if (isContext2(source)) {
|
|
@@ -10886,7 +10977,7 @@ var effect_provide = /* @__PURE__ */ dual(2, (self, source) => {
|
|
|
10886
10977
|
}
|
|
10887
10978
|
});
|
|
10888
10979
|
|
|
10889
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
10980
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Data.js
|
|
10890
10981
|
var struct2 = struct;
|
|
10891
10982
|
var _case = () => (args2) => args2 === void 0 ? Object.create(StructuralPrototype) : struct2(args2);
|
|
10892
10983
|
var Class3 = Structural;
|
|
@@ -10926,7 +11017,7 @@ var TaggedError = (tag2) => {
|
|
|
10926
11017
|
return O.BaseEffectError;
|
|
10927
11018
|
};
|
|
10928
11019
|
|
|
10929
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11020
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schedule.js
|
|
10930
11021
|
var ScheduleSymbolKey = "effect/Schedule";
|
|
10931
11022
|
var ScheduleTypeId = /* @__PURE__ */ Symbol.for(ScheduleSymbolKey);
|
|
10932
11023
|
var isSchedule = (u) => hasProperty(u, ScheduleTypeId);
|
|
@@ -11019,7 +11110,7 @@ var ScheduleDriverImpl = class {
|
|
|
11019
11110
|
next(input) {
|
|
11020
11111
|
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]) => {
|
|
11021
11112
|
const setState = set4(this.ref, [some2(out), state2]);
|
|
11022
|
-
if (
|
|
11113
|
+
if (isDone4(decision)) {
|
|
11023
11114
|
return setState.pipe(zipRight(fail2(none2())));
|
|
11024
11115
|
}
|
|
11025
11116
|
const millis2 = start2(decision.intervals) - now;
|
|
@@ -11034,12 +11125,12 @@ var ScheduleDriverImpl = class {
|
|
|
11034
11125
|
var makeWithState = (initial, step3) => new ScheduleImpl(initial, step3);
|
|
11035
11126
|
var check = /* @__PURE__ */ dual(2, (self, test) => checkEffect(self, (input, out) => sync(() => test(input, out))));
|
|
11036
11127
|
var checkEffect = /* @__PURE__ */ dual(2, (self, test) => makeWithState(self.initial, (now, input, state) => flatMap7(self.step(now, input, state), ([state2, out, decision]) => {
|
|
11037
|
-
if (
|
|
11128
|
+
if (isDone4(decision)) {
|
|
11038
11129
|
return succeed([state2, out, done5]);
|
|
11039
11130
|
}
|
|
11040
11131
|
return map11(test(input, out), (cont) => cont ? [state2, out, decision] : [state2, out, done5]);
|
|
11041
11132
|
})));
|
|
11042
|
-
var driver = (self) => pipe(
|
|
11133
|
+
var driver = (self) => pipe(make23([none2(), self.initial]), map11((ref) => new ScheduleDriverImpl(self, ref)));
|
|
11043
11134
|
var intersect5 = /* @__PURE__ */ dual(2, (self, that) => intersectWith(self, that, intersect4));
|
|
11044
11135
|
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]]) => {
|
|
11045
11136
|
if (isContinue2(lDecision) && isContinue2(rDecision)) {
|
|
@@ -11054,14 +11145,14 @@ var intersectWithLoop = (self, that, input, lState, out, lInterval, rState, out2
|
|
|
11054
11145
|
}
|
|
11055
11146
|
if (pipe(lInterval, lessThan5(rInterval))) {
|
|
11056
11147
|
return flatMap7(self.step(end2(lInterval), input, lState), ([lState2, out3, decision]) => {
|
|
11057
|
-
if (
|
|
11148
|
+
if (isDone4(decision)) {
|
|
11058
11149
|
return succeed([[lState2, rState], [out3, out2], done5]);
|
|
11059
11150
|
}
|
|
11060
11151
|
return intersectWithLoop(self, that, input, lState2, out3, decision.intervals, rState, out2, rInterval, f);
|
|
11061
11152
|
});
|
|
11062
11153
|
}
|
|
11063
11154
|
return flatMap7(that.step(end2(rInterval), input, rState), ([rState2, out22, decision]) => {
|
|
11064
|
-
if (
|
|
11155
|
+
if (isDone4(decision)) {
|
|
11065
11156
|
return succeed([[lState, rState2], [out, out22], done5]);
|
|
11066
11157
|
}
|
|
11067
11158
|
return intersectWithLoop(self, that, input, lState, out, lInterval, rState2, out22, decision.intervals, f);
|
|
@@ -11127,7 +11218,14 @@ var repeatOrElseEffectLoop = (self, driver2, orElse9, value2) => matchEffect(dri
|
|
|
11127
11218
|
});
|
|
11128
11219
|
var forever2 = /* @__PURE__ */ unfold2(0, (n) => n + 1);
|
|
11129
11220
|
|
|
11130
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11221
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Deferred.js
|
|
11222
|
+
var make39 = deferredMake;
|
|
11223
|
+
var _await3 = deferredAwait;
|
|
11224
|
+
var failCause6 = deferredFailCause;
|
|
11225
|
+
var isDone5 = deferredIsDone;
|
|
11226
|
+
var succeed5 = deferredSucceed;
|
|
11227
|
+
|
|
11228
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/MutableList.js
|
|
11131
11229
|
var TypeId14 = /* @__PURE__ */ Symbol.for("effect/MutableList");
|
|
11132
11230
|
var MutableListProto = {
|
|
11133
11231
|
[TypeId14]: TypeId14,
|
|
@@ -11238,7 +11336,7 @@ var remove6 = (self, node) => {
|
|
|
11238
11336
|
}
|
|
11239
11337
|
};
|
|
11240
11338
|
|
|
11241
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11339
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/MutableQueue.js
|
|
11242
11340
|
var TypeId15 = /* @__PURE__ */ Symbol.for("effect/MutableQueue");
|
|
11243
11341
|
var EmptyMutableQueue = /* @__PURE__ */ Symbol.for("effect/mutable/MutableQueue/Empty");
|
|
11244
11342
|
var MutableQueueProto = {
|
|
@@ -11315,7 +11413,7 @@ var pollUpTo = /* @__PURE__ */ dual(2, (self, n) => {
|
|
|
11315
11413
|
return reverse2(result);
|
|
11316
11414
|
});
|
|
11317
11415
|
|
|
11318
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11416
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Effect.js
|
|
11319
11417
|
var isEffect2 = isEffect;
|
|
11320
11418
|
var cached3 = memoize;
|
|
11321
11419
|
var all4 = all3;
|
|
@@ -11327,7 +11425,7 @@ var dieMessage2 = dieMessage;
|
|
|
11327
11425
|
var gen2 = gen;
|
|
11328
11426
|
var promise2 = promise;
|
|
11329
11427
|
var succeed7 = succeed;
|
|
11330
|
-
var
|
|
11428
|
+
var suspend3 = suspend;
|
|
11331
11429
|
var sync4 = sync;
|
|
11332
11430
|
var _void = void_;
|
|
11333
11431
|
var catchAll2 = catchAll;
|
|
@@ -11385,27 +11483,27 @@ var runSync = unsafeRunSyncEffect;
|
|
|
11385
11483
|
var zip5 = zipOptions;
|
|
11386
11484
|
var zipLeft2 = zipLeftOptions;
|
|
11387
11485
|
var zipRight3 = zipRightOptions;
|
|
11388
|
-
var
|
|
11486
|
+
var zipWith3 = zipWithOptions;
|
|
11389
11487
|
var useSpan2 = useSpan;
|
|
11390
11488
|
var withParentSpan2 = withParentSpan;
|
|
11391
11489
|
|
|
11392
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11490
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/layer/circular.js
|
|
11393
11491
|
var withMinimumLogLevel = /* @__PURE__ */ dual(2, (self, level) => fiberRefLocally(currentMinimumLogLevel, level)(self));
|
|
11394
11492
|
var addLogger = (logger) => scopedDiscard(fiberRefLocallyScopedWith(currentLoggers, add2(logger)));
|
|
11395
11493
|
var removeLogger = (logger) => scopedDiscard(fiberRefLocallyScopedWith(currentLoggers, remove4(logger)));
|
|
11396
11494
|
var replaceLogger = /* @__PURE__ */ dual(2, (self, that) => flatMap9(removeLogger(self), () => addLogger(that)));
|
|
11397
11495
|
|
|
11398
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11496
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Logger.js
|
|
11399
11497
|
var replace = replaceLogger;
|
|
11400
11498
|
var withMinimumLogLevel2 = withMinimumLogLevel;
|
|
11401
11499
|
var pretty4 = /* @__PURE__ */ replace(defaultLogger, prettyLogger2);
|
|
11402
11500
|
|
|
11403
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11501
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Layer.js
|
|
11404
11502
|
var effect = fromEffect3;
|
|
11405
11503
|
var empty29 = empty27;
|
|
11406
|
-
var
|
|
11504
|
+
var mergeAll5 = mergeAll3;
|
|
11407
11505
|
|
|
11408
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11506
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/redacted.js
|
|
11409
11507
|
var RedactedSymbolKey = "effect/Redacted";
|
|
11410
11508
|
var redactedRegistry = /* @__PURE__ */ globalValue("effect/Redacted/redactedRegistry", () => /* @__PURE__ */ new WeakMap());
|
|
11411
11509
|
var RedactedTypeId = /* @__PURE__ */ Symbol.for(RedactedSymbolKey);
|
|
@@ -11439,7 +11537,7 @@ var make41 = (value2) => {
|
|
|
11439
11537
|
return redacted;
|
|
11440
11538
|
};
|
|
11441
11539
|
|
|
11442
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11540
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schema/util.js
|
|
11443
11541
|
var getKeysForIndexSignature = (input, parameter) => {
|
|
11444
11542
|
switch (parameter._tag) {
|
|
11445
11543
|
case "StringKeyword":
|
|
@@ -11451,7 +11549,6 @@ var getKeysForIndexSignature = (input, parameter) => {
|
|
|
11451
11549
|
return getKeysForIndexSignature(input, parameter.from);
|
|
11452
11550
|
}
|
|
11453
11551
|
};
|
|
11454
|
-
var ownKeys = (o) => Object.keys(o).concat(Object.getOwnPropertySymbols(o));
|
|
11455
11552
|
var memoizeThunk = (f) => {
|
|
11456
11553
|
let done7 = false;
|
|
11457
11554
|
let a;
|
|
@@ -11464,53 +11561,12 @@ var memoizeThunk = (f) => {
|
|
|
11464
11561
|
return a;
|
|
11465
11562
|
};
|
|
11466
11563
|
};
|
|
11467
|
-
var formatDate = (date) => {
|
|
11468
|
-
try {
|
|
11469
|
-
return date.toISOString();
|
|
11470
|
-
} catch {
|
|
11471
|
-
return String(date);
|
|
11472
|
-
}
|
|
11473
|
-
};
|
|
11474
|
-
var formatUnknown = (u, checkCircular = true) => {
|
|
11475
|
-
if (Array.isArray(u)) {
|
|
11476
|
-
return `[${u.map((i) => formatUnknown(i, checkCircular)).join(",")}]`;
|
|
11477
|
-
}
|
|
11478
|
-
if (isDate(u)) {
|
|
11479
|
-
return formatDate(u);
|
|
11480
|
-
}
|
|
11481
|
-
if (hasProperty(u, "toString") && isFunction2(u["toString"]) && u["toString"] !== Object.prototype.toString) {
|
|
11482
|
-
return u["toString"]();
|
|
11483
|
-
}
|
|
11484
|
-
if (isString(u)) {
|
|
11485
|
-
return JSON.stringify(u);
|
|
11486
|
-
}
|
|
11487
|
-
if (isNumber(u) || u == null || isBoolean(u) || isSymbol(u)) {
|
|
11488
|
-
return String(u);
|
|
11489
|
-
}
|
|
11490
|
-
if (isBigInt(u)) {
|
|
11491
|
-
return String(u) + "n";
|
|
11492
|
-
}
|
|
11493
|
-
if (isIterable(u)) {
|
|
11494
|
-
return `${u.constructor.name}(${formatUnknown(Array.from(u), checkCircular)})`;
|
|
11495
|
-
}
|
|
11496
|
-
try {
|
|
11497
|
-
if (checkCircular) {
|
|
11498
|
-
JSON.stringify(u);
|
|
11499
|
-
}
|
|
11500
|
-
const pojo = `{${ownKeys(u).map((k) => `${isString(k) ? JSON.stringify(k) : String(k)}:${formatUnknown(u[k], false)}`).join(",")}}`;
|
|
11501
|
-
const name = u.constructor.name;
|
|
11502
|
-
return u.constructor !== Object.prototype.constructor ? `${name}(${pojo})` : pojo;
|
|
11503
|
-
} catch {
|
|
11504
|
-
return "<circular structure>";
|
|
11505
|
-
}
|
|
11506
|
-
};
|
|
11507
|
-
var formatPropertyKey = (name) => typeof name === "string" ? JSON.stringify(name) : String(name);
|
|
11508
11564
|
var isNonEmpty5 = (x) => Array.isArray(x);
|
|
11509
11565
|
var isSingle = (x) => !Array.isArray(x);
|
|
11510
11566
|
var formatPathKey = (key) => `[${formatPropertyKey(key)}]`;
|
|
11511
11567
|
var formatPath = (path) => isNonEmpty5(path) ? path.map(formatPathKey).join("") : formatPathKey(path);
|
|
11512
11568
|
|
|
11513
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11569
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schema/errors.js
|
|
11514
11570
|
var getErrorMessage = (reason, details, path, ast) => {
|
|
11515
11571
|
let out = reason;
|
|
11516
11572
|
if (path && isNonEmptyReadonlyArray(path)) {
|
|
@@ -11536,11 +11592,11 @@ var getASTRequiredElementFollowinAnOptionalElementErrorMessage = /* @__PURE__ */
|
|
|
11536
11592
|
var getASTDuplicatePropertySignatureTransformationErrorMessage = (key) => getErrorMessage("Duplicate property signature transformation", `Duplicate key ${formatUnknown(key)}`);
|
|
11537
11593
|
var getASTDuplicatePropertySignatureErrorMessage = (key) => getErrorMessage("Duplicate property signature", `Duplicate key ${formatUnknown(key)}`);
|
|
11538
11594
|
|
|
11539
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11595
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/schema/schemaId.js
|
|
11540
11596
|
var DateFromSelfSchemaId = /* @__PURE__ */ Symbol.for("effect/SchemaId/DateFromSelf");
|
|
11541
11597
|
var BetweenSchemaId = /* @__PURE__ */ Symbol.for("effect/SchemaId/Between");
|
|
11542
11598
|
|
|
11543
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
11599
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/SchemaAST.js
|
|
11544
11600
|
var BrandAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/Brand");
|
|
11545
11601
|
var SchemaIdAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/SchemaId");
|
|
11546
11602
|
var MessageAnnotationId = /* @__PURE__ */ Symbol.for("effect/annotation/Message");
|
|
@@ -12459,8 +12515,12 @@ var TypeLiteralTransformation = class {
|
|
|
12459
12515
|
var isTypeLiteralTransformation = /* @__PURE__ */ createTransformationGuard("TypeLiteralTransformation");
|
|
12460
12516
|
var annotations = (ast, overrides) => {
|
|
12461
12517
|
const d = Object.getOwnPropertyDescriptors(ast);
|
|
12518
|
+
const base = {
|
|
12519
|
+
...ast.annotations
|
|
12520
|
+
};
|
|
12521
|
+
delete base[IdentifierAnnotationId];
|
|
12462
12522
|
const value2 = {
|
|
12463
|
-
...
|
|
12523
|
+
...base,
|
|
12464
12524
|
...overrides
|
|
12465
12525
|
};
|
|
12466
12526
|
const surrogate = getSurrogateAnnotation(ast);
|
|
@@ -12470,7 +12530,7 @@ var annotations = (ast, overrides) => {
|
|
|
12470
12530
|
d.annotations.value = value2;
|
|
12471
12531
|
return Object.create(Object.getPrototypeOf(ast), d);
|
|
12472
12532
|
};
|
|
12473
|
-
var STRING_KEYWORD_PATTERN = "[\\s\\S]
|
|
12533
|
+
var STRING_KEYWORD_PATTERN = "[\\s\\S]*?";
|
|
12474
12534
|
var NUMBER_KEYWORD_PATTERN = "[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?";
|
|
12475
12535
|
var getTemplateLiteralSpanTypePattern = (type, capture2) => {
|
|
12476
12536
|
switch (type._tag) {
|
|
@@ -12616,12 +12676,6 @@ var typeAST = (ast) => {
|
|
|
12616
12676
|
}
|
|
12617
12677
|
return ast;
|
|
12618
12678
|
};
|
|
12619
|
-
var createJSONIdentifierAnnotation = (annotated) => match2(getJSONIdentifier(annotated), {
|
|
12620
|
-
onNone: () => void 0,
|
|
12621
|
-
onSome: (identifier2) => ({
|
|
12622
|
-
[JSONIdentifierAnnotationId]: identifier2
|
|
12623
|
-
})
|
|
12624
|
-
});
|
|
12625
12679
|
function changeMap(as6, f) {
|
|
12626
12680
|
let changed = false;
|
|
12627
12681
|
const out = allocate(as6.length);
|
|
@@ -12639,7 +12693,7 @@ var encodedAST_ = (ast, isBound) => {
|
|
|
12639
12693
|
switch (ast._tag) {
|
|
12640
12694
|
case "Declaration": {
|
|
12641
12695
|
const typeParameters = changeMap(ast.typeParameters, (ast2) => encodedAST_(ast2));
|
|
12642
|
-
return typeParameters === ast.typeParameters ? ast : new Declaration(typeParameters, ast.decodeUnknown, ast.encodeUnknown
|
|
12696
|
+
return typeParameters === ast.typeParameters ? ast : new Declaration(typeParameters, ast.decodeUnknown, ast.encodeUnknown);
|
|
12643
12697
|
}
|
|
12644
12698
|
case "TupleType": {
|
|
12645
12699
|
const elements = changeMap(ast.elements, (e) => {
|
|
@@ -12648,7 +12702,7 @@ var encodedAST_ = (ast, isBound) => {
|
|
|
12648
12702
|
});
|
|
12649
12703
|
const restASTs = getRestASTs(ast.rest);
|
|
12650
12704
|
const rest = changeMap(restASTs, (ast2) => encodedAST_(ast2));
|
|
12651
|
-
return elements === ast.elements && rest === restASTs ? ast : new TupleType(elements, rest.map((ast2) => new Type(ast2)), ast.isReadonly
|
|
12705
|
+
return elements === ast.elements && rest === restASTs ? ast : new TupleType(elements, rest.map((ast2) => new Type(ast2)), ast.isReadonly);
|
|
12652
12706
|
}
|
|
12653
12707
|
case "TypeLiteral": {
|
|
12654
12708
|
const propertySignatures = changeMap(ast.propertySignatures, (ps) => {
|
|
@@ -12659,23 +12713,31 @@ var encodedAST_ = (ast, isBound) => {
|
|
|
12659
12713
|
const type = encodedAST_(is2.type);
|
|
12660
12714
|
return type === is2.type ? is2 : new IndexSignature(is2.parameter, type, is2.isReadonly);
|
|
12661
12715
|
});
|
|
12662
|
-
return propertySignatures === ast.propertySignatures && indexSignatures === ast.indexSignatures ? ast : new TypeLiteral(propertySignatures, indexSignatures
|
|
12716
|
+
return propertySignatures === ast.propertySignatures && indexSignatures === ast.indexSignatures ? ast : new TypeLiteral(propertySignatures, indexSignatures);
|
|
12663
12717
|
}
|
|
12664
12718
|
case "Union": {
|
|
12665
12719
|
const types = changeMap(ast.types, (ast2) => encodedAST_(ast2));
|
|
12666
|
-
return types === ast.types ? ast : Union.make(types
|
|
12720
|
+
return types === ast.types ? ast : Union.make(types);
|
|
12721
|
+
}
|
|
12722
|
+
case "Suspend": {
|
|
12723
|
+
let borrowedAnnotations = void 0;
|
|
12724
|
+
const identifier2 = getJSONIdentifier(ast);
|
|
12725
|
+
if (isSome2(identifier2)) {
|
|
12726
|
+
const suffix = "";
|
|
12727
|
+
borrowedAnnotations = {
|
|
12728
|
+
[JSONIdentifierAnnotationId]: `${identifier2.value}Encoded${suffix}`
|
|
12729
|
+
};
|
|
12730
|
+
}
|
|
12731
|
+
return new Suspend(() => encodedAST_(ast.f()), borrowedAnnotations);
|
|
12667
12732
|
}
|
|
12668
|
-
case "Suspend":
|
|
12669
|
-
return new Suspend(() => encodedAST_(ast.f()), createJSONIdentifierAnnotation(ast));
|
|
12670
12733
|
case "Refinement": {
|
|
12671
12734
|
const from = encodedAST_(ast.from);
|
|
12672
|
-
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
case "Transformation": {
|
|
12676
|
-
const identifier2 = createJSONIdentifierAnnotation(ast);
|
|
12677
|
-
return encodedAST_(identifier2 ? annotations(ast.from, identifier2) : ast.from);
|
|
12735
|
+
{
|
|
12736
|
+
return from;
|
|
12737
|
+
}
|
|
12678
12738
|
}
|
|
12739
|
+
case "Transformation":
|
|
12740
|
+
return encodedAST_(ast.from);
|
|
12679
12741
|
}
|
|
12680
12742
|
return ast;
|
|
12681
12743
|
};
|
|
@@ -12707,7 +12769,7 @@ function getBrands(ast) {
|
|
|
12707
12769
|
var getOrElseExpected = (ast) => getTitleAnnotation(ast).pipe(orElse(() => getDescriptionAnnotation(ast)), orElse(() => getAutoTitleAnnotation(ast)), map2((s) => s + getBrands(ast)));
|
|
12708
12770
|
var getExpected = (ast) => orElse(getIdentifierAnnotation(ast), () => getOrElseExpected(ast));
|
|
12709
12771
|
|
|
12710
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
12772
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/ParseResult.js
|
|
12711
12773
|
var Pointer = class {
|
|
12712
12774
|
path;
|
|
12713
12775
|
actual;
|
|
@@ -13181,7 +13243,7 @@ var go = (ast, isDecoding) => {
|
|
|
13181
13243
|
}) => isNonEmptyArray2(es2) ? left2(new Composite2(ast, input, sortByIndex(es2), sortByIndex(output2))) : right2(sortByIndex(output2));
|
|
13182
13244
|
if (queue && queue.length > 0) {
|
|
13183
13245
|
const cqueue = queue;
|
|
13184
|
-
return
|
|
13246
|
+
return suspend3(() => {
|
|
13185
13247
|
const state = {
|
|
13186
13248
|
es: copy(es),
|
|
13187
13249
|
output: copy(output)
|
|
@@ -13228,7 +13290,7 @@ var go = (ast, isDecoding) => {
|
|
|
13228
13290
|
const output = {};
|
|
13229
13291
|
let inputKeys;
|
|
13230
13292
|
if (onExcessPropertyError || onExcessPropertyPreserve) {
|
|
13231
|
-
inputKeys = ownKeys(input);
|
|
13293
|
+
inputKeys = Reflect.ownKeys(input);
|
|
13232
13294
|
for (const key of inputKeys) {
|
|
13233
13295
|
const te = expected(key, options3);
|
|
13234
13296
|
if (isEither3(te) && isLeft2(te)) {
|
|
@@ -13362,7 +13424,7 @@ var go = (ast, isDecoding) => {
|
|
|
13362
13424
|
return left2(new Composite2(ast, input, sortByIndex(es2), output2));
|
|
13363
13425
|
}
|
|
13364
13426
|
if (options3?.propertyOrder === "original") {
|
|
13365
|
-
const keys6 = inputKeys || ownKeys(input);
|
|
13427
|
+
const keys6 = inputKeys || Reflect.ownKeys(input);
|
|
13366
13428
|
for (const name of expectedKeys) {
|
|
13367
13429
|
if (keys6.indexOf(name) === -1) {
|
|
13368
13430
|
keys6.push(name);
|
|
@@ -13380,7 +13442,7 @@ var go = (ast, isDecoding) => {
|
|
|
13380
13442
|
};
|
|
13381
13443
|
if (queue && queue.length > 0) {
|
|
13382
13444
|
const cqueue = queue;
|
|
13383
|
-
return
|
|
13445
|
+
return suspend3(() => {
|
|
13384
13446
|
const state = {
|
|
13385
13447
|
es: copy(es),
|
|
13386
13448
|
output: Object.assign({}, output)
|
|
@@ -13400,8 +13462,8 @@ var go = (ast, isDecoding) => {
|
|
|
13400
13462
|
}
|
|
13401
13463
|
case "Union": {
|
|
13402
13464
|
const searchTree = getSearchTree(ast.types, isDecoding);
|
|
13403
|
-
const
|
|
13404
|
-
const ownKeysLen =
|
|
13465
|
+
const ownKeys = Reflect.ownKeys(searchTree.keys);
|
|
13466
|
+
const ownKeysLen = ownKeys.length;
|
|
13405
13467
|
const astTypesLen = ast.types.length;
|
|
13406
13468
|
const map22 = /* @__PURE__ */ new Map();
|
|
13407
13469
|
for (let i = 0; i < astTypesLen; i++) {
|
|
@@ -13416,7 +13478,7 @@ var go = (ast, isDecoding) => {
|
|
|
13416
13478
|
if (ownKeysLen > 0) {
|
|
13417
13479
|
if (isRecordOrArray(input)) {
|
|
13418
13480
|
for (let i = 0; i < ownKeysLen; i++) {
|
|
13419
|
-
const name =
|
|
13481
|
+
const name = ownKeys[i];
|
|
13420
13482
|
const buckets = searchTree.keys[name].buckets;
|
|
13421
13483
|
if (Object.prototype.hasOwnProperty.call(input, name)) {
|
|
13422
13484
|
const literal = String(input[name]);
|
|
@@ -13464,7 +13526,7 @@ var go = (ast, isDecoding) => {
|
|
|
13464
13526
|
if (!queue) {
|
|
13465
13527
|
queue = [];
|
|
13466
13528
|
}
|
|
13467
|
-
queue.push((state) =>
|
|
13529
|
+
queue.push((state) => suspend3(() => {
|
|
13468
13530
|
if ("finalResult" in state) {
|
|
13469
13531
|
return _void;
|
|
13470
13532
|
} else {
|
|
@@ -13486,7 +13548,7 @@ var go = (ast, isDecoding) => {
|
|
|
13486
13548
|
);
|
|
13487
13549
|
if (queue && queue.length > 0) {
|
|
13488
13550
|
const cqueue = queue;
|
|
13489
|
-
return
|
|
13551
|
+
return suspend3(() => {
|
|
13490
13552
|
const state = {
|
|
13491
13553
|
es: copy(es)
|
|
13492
13554
|
};
|
|
@@ -13506,7 +13568,7 @@ var go = (ast, isDecoding) => {
|
|
|
13506
13568
|
};
|
|
13507
13569
|
}
|
|
13508
13570
|
case "Suspend": {
|
|
13509
|
-
const get19 = memoizeThunk(() => goMemo(
|
|
13571
|
+
const get19 = memoizeThunk(() => goMemo(ast.f(), isDecoding));
|
|
13510
13572
|
return (a, options3) => get19()(a, options3);
|
|
13511
13573
|
}
|
|
13512
13574
|
}
|
|
@@ -13795,10 +13857,10 @@ var formatTree = (issue) => {
|
|
|
13795
13857
|
}
|
|
13796
13858
|
};
|
|
13797
13859
|
|
|
13798
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
13860
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Redacted.js
|
|
13799
13861
|
var make42 = make41;
|
|
13800
13862
|
|
|
13801
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
13863
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Struct.js
|
|
13802
13864
|
var pick2 = /* @__PURE__ */ dual((args2) => isObject(args2[0]), (s, ...keys6) => {
|
|
13803
13865
|
const out = {};
|
|
13804
13866
|
for (const k of keys6) {
|
|
@@ -13818,7 +13880,7 @@ var omit2 = /* @__PURE__ */ dual((args2) => isObject(args2[0]), (s, ...keys6) =>
|
|
|
13818
13880
|
return out;
|
|
13819
13881
|
});
|
|
13820
13882
|
|
|
13821
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
13883
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Schema.js
|
|
13822
13884
|
var TypeId16 = /* @__PURE__ */ Symbol.for("effect/Schema");
|
|
13823
13885
|
function make43(ast) {
|
|
13824
13886
|
return class SchemaClass {
|
|
@@ -13884,7 +13946,6 @@ var toASTAnnotations = (annotations2) => {
|
|
|
13884
13946
|
return out;
|
|
13885
13947
|
};
|
|
13886
13948
|
var mergeSchemaAnnotations = (ast, annotations2) => annotations(ast, toASTAnnotations(annotations2));
|
|
13887
|
-
var format4 = (schema) => String(schema.ast);
|
|
13888
13949
|
var typeSchema = (schema) => make43(typeAST(schema.ast));
|
|
13889
13950
|
var decodeUnknown2 = (schema, options3) => {
|
|
13890
13951
|
const decodeUnknown3 = decodeUnknown(schema, options3);
|
|
@@ -14146,13 +14207,14 @@ var optionalPropertySignatureAST = (self, options3) => {
|
|
|
14146
14207
|
}), defaultValue).ast;
|
|
14147
14208
|
}
|
|
14148
14209
|
} else if (asOption) {
|
|
14210
|
+
const to = OptionFromSelf_(typeSchema(self));
|
|
14149
14211
|
if (isNullable2) {
|
|
14150
|
-
return optionalToRequired(NullOr(self),
|
|
14212
|
+
return optionalToRequired(NullOr(self), to, {
|
|
14151
14213
|
decode: filter(isNotNull),
|
|
14152
14214
|
encode: asOptionEncode
|
|
14153
14215
|
}).ast;
|
|
14154
14216
|
} else {
|
|
14155
|
-
return optionalToRequired(self,
|
|
14217
|
+
return optionalToRequired(self, to, {
|
|
14156
14218
|
decode: identity,
|
|
14157
14219
|
encode: identity
|
|
14158
14220
|
}).ast;
|
|
@@ -14187,13 +14249,14 @@ var optionalPropertySignatureAST = (self, options3) => {
|
|
|
14187
14249
|
}), defaultValue).ast;
|
|
14188
14250
|
}
|
|
14189
14251
|
} else if (asOption) {
|
|
14252
|
+
const to = OptionFromSelf_(typeSchema(self));
|
|
14190
14253
|
if (isNullable2) {
|
|
14191
|
-
return optionalToRequired(NullishOr(self),
|
|
14254
|
+
return optionalToRequired(NullishOr(self), to, {
|
|
14192
14255
|
decode: filter((a) => a != null),
|
|
14193
14256
|
encode: asOptionEncode
|
|
14194
14257
|
}).ast;
|
|
14195
14258
|
} else {
|
|
14196
|
-
return optionalToRequired(UndefinedOr(self),
|
|
14259
|
+
return optionalToRequired(UndefinedOr(self), to, {
|
|
14197
14260
|
decode: filter(isNotUndefined),
|
|
14198
14261
|
encode: asOptionEncode
|
|
14199
14262
|
}).ast;
|
|
@@ -14219,14 +14282,14 @@ var optionalWith = /* @__PURE__ */ dual((args2) => isSchema(args2[0]), (self, op
|
|
|
14219
14282
|
});
|
|
14220
14283
|
var preserveMissingMessageAnnotation = /* @__PURE__ */ pickAnnotations([MissingMessageAnnotationId]);
|
|
14221
14284
|
var getDefaultTypeLiteralAST = (fields, records) => {
|
|
14222
|
-
const
|
|
14285
|
+
const ownKeys = Reflect.ownKeys(fields);
|
|
14223
14286
|
const pss = [];
|
|
14224
|
-
if (
|
|
14287
|
+
if (ownKeys.length > 0) {
|
|
14225
14288
|
const from = [];
|
|
14226
14289
|
const to = [];
|
|
14227
14290
|
const transformations = [];
|
|
14228
|
-
for (let i = 0; i <
|
|
14229
|
-
const key =
|
|
14291
|
+
for (let i = 0; i < ownKeys.length; i++) {
|
|
14292
|
+
const key = ownKeys[i];
|
|
14230
14293
|
const field = fields[key];
|
|
14231
14294
|
if (isPropertySignature(field)) {
|
|
14232
14295
|
const ast = field.ast;
|
|
@@ -14290,8 +14353,8 @@ var getDefaultTypeLiteralAST = (fields, records) => {
|
|
|
14290
14353
|
return new TypeLiteral(pss, iss);
|
|
14291
14354
|
};
|
|
14292
14355
|
var lazilyMergeDefaults = (fields, out) => {
|
|
14293
|
-
const
|
|
14294
|
-
for (const key of
|
|
14356
|
+
const ownKeys = Reflect.ownKeys(fields);
|
|
14357
|
+
for (const key of ownKeys) {
|
|
14295
14358
|
const field = fields[key];
|
|
14296
14359
|
if (out[key] === void 0 && isPropertySignature(field)) {
|
|
14297
14360
|
const ast = field.ast;
|
|
@@ -14609,12 +14672,11 @@ var optionPretty = (value2) => match2({
|
|
|
14609
14672
|
onSome: (a) => `some(${value2(a)})`
|
|
14610
14673
|
});
|
|
14611
14674
|
var optionParse = (decodeUnknown3) => (u, options3, ast) => isOption2(u) ? isNone2(u) ? succeed8(none2()) : toComposite(decodeUnknown3(u.value, options3), some2, ast, u) : fail8(new Type2(ast, u));
|
|
14612
|
-
var
|
|
14675
|
+
var OptionFromSelf_ = (value2) => {
|
|
14613
14676
|
return declare([value2], {
|
|
14614
14677
|
decode: (value3) => optionParse(decodeUnknown(value3)),
|
|
14615
14678
|
encode: (value3) => optionParse(encodeUnknown(value3))
|
|
14616
14679
|
}, {
|
|
14617
|
-
description: `Option<${format4(value2)}>`,
|
|
14618
14680
|
pretty: optionPretty,
|
|
14619
14681
|
arbitrary: optionArbitrary,
|
|
14620
14682
|
equivalence: getEquivalence
|
|
@@ -14624,26 +14686,14 @@ function getDisableValidationMakeOption(options3) {
|
|
|
14624
14686
|
return isBoolean(options3) ? options3 : options3?.disableValidation ?? false;
|
|
14625
14687
|
}
|
|
14626
14688
|
|
|
14627
|
-
// ../../../node_modules/.pnpm
|
|
14628
|
-
var ATTR_HTTP_REQUEST_HEADER = (key) => `http.request.header.${key}`;
|
|
14629
|
-
var ATTR_HTTP_REQUEST_METHOD = "http.request.method";
|
|
14630
|
-
var ATTR_HTTP_RESPONSE_HEADER = (key) => `http.response.header.${key}`;
|
|
14631
|
-
var ATTR_HTTP_RESPONSE_STATUS_CODE = "http.response.status_code";
|
|
14632
|
-
var ATTR_SERVER_ADDRESS = "server.address";
|
|
14633
|
-
var ATTR_SERVER_PORT = "server.port";
|
|
14634
|
-
var ATTR_URL_FULL = "url.full";
|
|
14635
|
-
var ATTR_URL_PATH = "url.path";
|
|
14636
|
-
var ATTR_URL_QUERY = "url.query";
|
|
14637
|
-
var ATTR_URL_SCHEME = "url.scheme";
|
|
14638
|
-
|
|
14639
|
-
// ../../../node_modules/.pnpm/effect@3.17.2/node_modules/effect/dist/esm/FiberRef.js
|
|
14689
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/FiberRef.js
|
|
14640
14690
|
var unsafeMake7 = fiberRefUnsafeMake;
|
|
14641
14691
|
var get13 = fiberRefGet;
|
|
14642
14692
|
var currentContext2 = currentContext;
|
|
14643
14693
|
var currentMinimumLogLevel2 = currentMinimumLogLevel;
|
|
14644
14694
|
var currentTracerEnabled2 = currentTracerEnabled;
|
|
14645
14695
|
|
|
14646
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
14696
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/queue.js
|
|
14647
14697
|
var EnqueueSymbolKey = "effect/QueueEnqueue";
|
|
14648
14698
|
var EnqueueTypeId = /* @__PURE__ */ Symbol.for(EnqueueSymbolKey);
|
|
14649
14699
|
var DequeueSymbolKey = "effect/QueueDequeue";
|
|
@@ -15002,7 +15052,7 @@ var unsafeCompleteTakers = (strategy, queue, takers) => {
|
|
|
15002
15052
|
}
|
|
15003
15053
|
};
|
|
15004
15054
|
|
|
15005
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15055
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Queue.js
|
|
15006
15056
|
var bounded3 = bounded2;
|
|
15007
15057
|
var unbounded3 = unbounded2;
|
|
15008
15058
|
var size11 = size10;
|
|
@@ -15010,12 +15060,12 @@ var shutdown2 = shutdown;
|
|
|
15010
15060
|
var offer3 = offer2;
|
|
15011
15061
|
var take2 = take;
|
|
15012
15062
|
|
|
15013
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15063
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelChildExecutorDecision.js
|
|
15014
15064
|
var OP_CONTINUE2 = "Continue";
|
|
15015
15065
|
var OP_CLOSE = "Close";
|
|
15016
15066
|
var OP_YIELD2 = "Yield";
|
|
15017
15067
|
|
|
15018
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15068
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/childExecutorDecision.js
|
|
15019
15069
|
var ChildExecutorDecisionSymbolKey = "effect/ChannelChildExecutorDecision";
|
|
15020
15070
|
var ChildExecutorDecisionTypeId = /* @__PURE__ */ Symbol.for(ChildExecutorDecisionSymbolKey);
|
|
15021
15071
|
var proto5 = {
|
|
@@ -15027,11 +15077,11 @@ var Continue = (_) => {
|
|
|
15027
15077
|
return op;
|
|
15028
15078
|
};
|
|
15029
15079
|
|
|
15030
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15080
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/continuation.js
|
|
15031
15081
|
var OP_CONTINUATION_K = "ContinuationK";
|
|
15032
15082
|
var OP_CONTINUATION_FINALIZER = "ContinuationFinalizer";
|
|
15033
15083
|
|
|
15034
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15084
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/continuation.js
|
|
15035
15085
|
var ContinuationTypeId = /* @__PURE__ */ Symbol.for("effect/ChannelContinuation");
|
|
15036
15086
|
var continuationVariance = {
|
|
15037
15087
|
/* c8 ignore next */
|
|
@@ -15075,11 +15125,11 @@ var ContinuationFinalizerImpl = class {
|
|
|
15075
15125
|
}
|
|
15076
15126
|
};
|
|
15077
15127
|
|
|
15078
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15128
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelUpstreamPullStrategy.js
|
|
15079
15129
|
var OP_PULL_AFTER_NEXT = "PullAfterNext";
|
|
15080
15130
|
var OP_PULL_AFTER_ALL_ENQUEUED = "PullAfterAllEnqueued";
|
|
15081
15131
|
|
|
15082
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15132
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/upstreamPullStrategy.js
|
|
15083
15133
|
var UpstreamPullStrategySymbolKey = "effect/ChannelUpstreamPullStrategy";
|
|
15084
15134
|
var UpstreamPullStrategyTypeId = /* @__PURE__ */ Symbol.for(UpstreamPullStrategySymbolKey);
|
|
15085
15135
|
var upstreamPullStrategyVariance = {
|
|
@@ -15096,7 +15146,7 @@ var PullAfterNext = (emitSeparator) => {
|
|
|
15096
15146
|
return op;
|
|
15097
15147
|
};
|
|
15098
15148
|
|
|
15099
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15149
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channel.js
|
|
15100
15150
|
var OP_BRACKET_OUT = "BracketOut";
|
|
15101
15151
|
var OP_BRIDGE = "Bridge";
|
|
15102
15152
|
var OP_CONCAT_ALL = "ConcatAll";
|
|
@@ -15112,7 +15162,7 @@ var OP_SUCCEED = "Succeed";
|
|
|
15112
15162
|
var OP_SUCCEED_NOW = "SucceedNow";
|
|
15113
15163
|
var OP_SUSPEND2 = "Suspend";
|
|
15114
15164
|
|
|
15115
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15165
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/core-stream.js
|
|
15116
15166
|
var ChannelSymbolKey = "effect/Channel";
|
|
15117
15167
|
var ChannelTypeId2 = /* @__PURE__ */ Symbol.for(ChannelSymbolKey);
|
|
15118
15168
|
var channelVariance2 = {
|
|
@@ -15251,13 +15301,13 @@ var write = (out) => {
|
|
|
15251
15301
|
return op;
|
|
15252
15302
|
};
|
|
15253
15303
|
|
|
15254
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15304
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelState.js
|
|
15255
15305
|
var OP_DONE3 = "Done";
|
|
15256
15306
|
var OP_EMIT2 = "Emit";
|
|
15257
15307
|
var OP_FROM_EFFECT3 = "FromEffect";
|
|
15258
15308
|
var OP_READ2 = "Read";
|
|
15259
15309
|
|
|
15260
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15310
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/channelState.js
|
|
15261
15311
|
var ChannelStateTypeId = /* @__PURE__ */ Symbol.for("effect/ChannelState");
|
|
15262
15312
|
var channelStateVariance = {
|
|
15263
15313
|
/* c8 ignore next */
|
|
@@ -15297,7 +15347,7 @@ var isFromEffect = (self) => self._tag === OP_FROM_EFFECT3;
|
|
|
15297
15347
|
var effect2 = (self) => isFromEffect(self) ? self.effect : _void;
|
|
15298
15348
|
var effectOrUndefinedIgnored = (self) => isFromEffect(self) ? ignore2(self.effect) : void 0;
|
|
15299
15349
|
|
|
15300
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15350
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/subexecutor.js
|
|
15301
15351
|
var OP_PULL_FROM_CHILD = "PullFromChild";
|
|
15302
15352
|
var OP_PULL_FROM_UPSTREAM = "PullFromUpstream";
|
|
15303
15353
|
var OP_DRAIN_CHILD_EXECUTORS = "DrainChildExecutors";
|
|
@@ -15316,7 +15366,7 @@ var PullFromChild = class {
|
|
|
15316
15366
|
const fin1 = this.childExecutor.close(exit4);
|
|
15317
15367
|
const fin2 = this.parentSubexecutor.close(exit4);
|
|
15318
15368
|
if (fin1 !== void 0 && fin2 !== void 0) {
|
|
15319
|
-
return
|
|
15369
|
+
return zipWith3(exit3(fin1), exit3(fin2), (exit1, exit22) => pipe(exit1, zipRight2(exit22)));
|
|
15320
15370
|
} else if (fin1 !== void 0) {
|
|
15321
15371
|
return fin1;
|
|
15322
15372
|
} else if (fin2 !== void 0) {
|
|
@@ -15354,7 +15404,7 @@ var PullFromUpstream = class _PullFromUpstream {
|
|
|
15354
15404
|
const fins = [...this.activeChildExecutors.map((child) => child !== void 0 ? child.childExecutor.close(exit4) : void 0), fin1];
|
|
15355
15405
|
const result = fins.reduce((acc, next) => {
|
|
15356
15406
|
if (acc !== void 0 && next !== void 0) {
|
|
15357
|
-
return
|
|
15407
|
+
return zipWith3(acc, exit3(next), (exit1, exit22) => zipRight2(exit1, exit22));
|
|
15358
15408
|
} else if (acc !== void 0) {
|
|
15359
15409
|
return acc;
|
|
15360
15410
|
} else if (next !== void 0) {
|
|
@@ -15392,7 +15442,7 @@ var DrainChildExecutors = class _DrainChildExecutors {
|
|
|
15392
15442
|
const fins = [...this.activeChildExecutors.map((child) => child !== void 0 ? child.childExecutor.close(exit4) : void 0), fin1];
|
|
15393
15443
|
const result = fins.reduce((acc, next) => {
|
|
15394
15444
|
if (acc !== void 0 && next !== void 0) {
|
|
15395
|
-
return
|
|
15445
|
+
return zipWith3(acc, exit3(next), (exit1, exit22) => zipRight2(exit1, exit22));
|
|
15396
15446
|
} else if (acc !== void 0) {
|
|
15397
15447
|
return acc;
|
|
15398
15448
|
} else if (next !== void 0) {
|
|
@@ -15424,11 +15474,11 @@ var Emit2 = class {
|
|
|
15424
15474
|
}
|
|
15425
15475
|
};
|
|
15426
15476
|
|
|
15427
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15477
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelUpstreamPullRequest.js
|
|
15428
15478
|
var OP_PULLED = "Pulled";
|
|
15429
15479
|
var OP_NO_UPSTREAM = "NoUpstream";
|
|
15430
15480
|
|
|
15431
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15481
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/upstreamPullRequest.js
|
|
15432
15482
|
var UpstreamPullRequestSymbolKey = "effect/ChannelUpstreamPullRequest";
|
|
15433
15483
|
var UpstreamPullRequestTypeId = /* @__PURE__ */ Symbol.for(UpstreamPullRequestSymbolKey);
|
|
15434
15484
|
var upstreamPullRequestVariance = {
|
|
@@ -15451,7 +15501,7 @@ var NoUpstream = (activeDownstreamCount) => {
|
|
|
15451
15501
|
return op;
|
|
15452
15502
|
};
|
|
15453
15503
|
|
|
15454
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
15504
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/channelExecutor.js
|
|
15455
15505
|
var ChannelExecutor = class _ChannelExecutor {
|
|
15456
15506
|
_activeSubexecutor = void 0;
|
|
15457
15507
|
_cancelled = void 0;
|
|
@@ -15495,7 +15545,7 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15495
15545
|
if (this._input !== void 0) {
|
|
15496
15546
|
const inputExecutor = this._input;
|
|
15497
15547
|
this._input = void 0;
|
|
15498
|
-
const drainer = () => flatMap10(bridgeInput.awaitRead(), () =>
|
|
15548
|
+
const drainer = () => flatMap10(bridgeInput.awaitRead(), () => suspend3(() => {
|
|
15499
15549
|
const state = inputExecutor.run();
|
|
15500
15550
|
switch (state._tag) {
|
|
15501
15551
|
case OP_DONE3: {
|
|
@@ -15518,7 +15568,7 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15518
15568
|
}
|
|
15519
15569
|
}
|
|
15520
15570
|
}));
|
|
15521
|
-
result = fromEffect5(flatMap10(forkDaemon2(interruptible4(drainer())), (fiber) => sync4(() => this.addFinalizer((exit4) => flatMap10(interrupt4(fiber), () =>
|
|
15571
|
+
result = fromEffect5(flatMap10(forkDaemon2(interruptible4(drainer())), (fiber) => sync4(() => this.addFinalizer((exit4) => flatMap10(interrupt4(fiber), () => suspend3(() => {
|
|
15522
15572
|
const effect3 = this.restorePipe(exit4, inputExecutor);
|
|
15523
15573
|
return effect3 !== void 0 ? effect3 : _void;
|
|
15524
15574
|
}))))));
|
|
@@ -15701,12 +15751,12 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15701
15751
|
map17(([[exit1, exit22], exit32]) => pipe(exit1, zipRight2(exit22), zipRight2(exit32))),
|
|
15702
15752
|
uninterruptible2,
|
|
15703
15753
|
// TODO: remove
|
|
15704
|
-
flatMap10((exit5) =>
|
|
15754
|
+
flatMap10((exit5) => suspend3(() => exit5))
|
|
15705
15755
|
);
|
|
15706
15756
|
}
|
|
15707
15757
|
doneSucceed(value2) {
|
|
15708
15758
|
if (this._doneStack.length === 0) {
|
|
15709
|
-
this._done =
|
|
15759
|
+
this._done = succeed3(value2);
|
|
15710
15760
|
this._currentChannel = void 0;
|
|
15711
15761
|
return Done2();
|
|
15712
15762
|
}
|
|
@@ -15719,18 +15769,18 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15719
15769
|
const finalizers = this.popNextFinalizers();
|
|
15720
15770
|
if (this._doneStack.length === 0) {
|
|
15721
15771
|
this._doneStack = finalizers.reverse();
|
|
15722
|
-
this._done =
|
|
15772
|
+
this._done = succeed3(value2);
|
|
15723
15773
|
this._currentChannel = void 0;
|
|
15724
15774
|
return Done2();
|
|
15725
15775
|
}
|
|
15726
|
-
const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer),
|
|
15776
|
+
const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer), succeed3(value2));
|
|
15727
15777
|
this.storeInProgressFinalizer(finalizerEffect);
|
|
15728
15778
|
const effect3 = pipe(finalizerEffect, ensuring2(sync4(() => this.clearInProgressFinalizer())), uninterruptible2, flatMap10(() => sync4(() => this.doneSucceed(value2))));
|
|
15729
15779
|
return fromEffect5(effect3);
|
|
15730
15780
|
}
|
|
15731
15781
|
doneHalt(cause2) {
|
|
15732
15782
|
if (this._doneStack.length === 0) {
|
|
15733
|
-
this._done =
|
|
15783
|
+
this._done = failCause3(cause2);
|
|
15734
15784
|
this._currentChannel = void 0;
|
|
15735
15785
|
return Done2();
|
|
15736
15786
|
}
|
|
@@ -15747,11 +15797,11 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15747
15797
|
const finalizers = this.popNextFinalizers();
|
|
15748
15798
|
if (this._doneStack.length === 0) {
|
|
15749
15799
|
this._doneStack = finalizers.reverse();
|
|
15750
|
-
this._done =
|
|
15800
|
+
this._done = failCause3(cause2);
|
|
15751
15801
|
this._currentChannel = void 0;
|
|
15752
15802
|
return Done2();
|
|
15753
15803
|
}
|
|
15754
|
-
const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer),
|
|
15804
|
+
const finalizerEffect = runFinalizers(finalizers.map((f) => f.finalizer), failCause3(cause2));
|
|
15755
15805
|
this.storeInProgressFinalizer(finalizerEffect);
|
|
15756
15806
|
const effect3 = pipe(finalizerEffect, ensuring2(sync4(() => this.clearInProgressFinalizer())), uninterruptible2, flatMap10(() => sync4(() => this.doneHalt(cause2))));
|
|
15757
15807
|
return fromEffect5(effect3);
|
|
@@ -15780,9 +15830,9 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15780
15830
|
}
|
|
15781
15831
|
return pipe(effect3, provide2(this._providedEnv));
|
|
15782
15832
|
}
|
|
15783
|
-
runEnsuring(
|
|
15784
|
-
this.addFinalizer(
|
|
15785
|
-
this._currentChannel =
|
|
15833
|
+
runEnsuring(ensuring6) {
|
|
15834
|
+
this.addFinalizer(ensuring6.finalizer);
|
|
15835
|
+
this._currentChannel = ensuring6.channel;
|
|
15786
15836
|
}
|
|
15787
15837
|
addFinalizer(f) {
|
|
15788
15838
|
this._doneStack.push(new ContinuationFinalizerImpl(f));
|
|
@@ -15876,20 +15926,20 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15876
15926
|
switch (subexecutor._tag) {
|
|
15877
15927
|
case OP_PULL_FROM_UPSTREAM: {
|
|
15878
15928
|
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);
|
|
15879
|
-
this._closeLastSubstream = childExecutor.close(
|
|
15929
|
+
this._closeLastSubstream = childExecutor.close(succeed3(doneValue));
|
|
15880
15930
|
this.replaceSubexecutor(modifiedParent);
|
|
15881
15931
|
break;
|
|
15882
15932
|
}
|
|
15883
15933
|
case OP_DRAIN_CHILD_EXECUTORS: {
|
|
15884
15934
|
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);
|
|
15885
|
-
this._closeLastSubstream = childExecutor.close(
|
|
15935
|
+
this._closeLastSubstream = childExecutor.close(succeed3(doneValue));
|
|
15886
15936
|
this.replaceSubexecutor(modifiedParent);
|
|
15887
15937
|
break;
|
|
15888
15938
|
}
|
|
15889
15939
|
}
|
|
15890
15940
|
}
|
|
15891
15941
|
handleSubexecutorFailure(childExecutor, parentSubexecutor, cause2) {
|
|
15892
|
-
return this.finishSubexecutorWithCloseEffect(
|
|
15942
|
+
return this.finishSubexecutorWithCloseEffect(failCause3(cause2), (exit4) => parentSubexecutor.close(exit4), (exit4) => childExecutor.close(exit4));
|
|
15893
15943
|
}
|
|
15894
15944
|
pullFromUpstream(subexecutor) {
|
|
15895
15945
|
if (subexecutor.activeChildExecutors.length === 0) {
|
|
@@ -15976,7 +16026,7 @@ var ChannelExecutor = class _ChannelExecutor {
|
|
|
15976
16026
|
};
|
|
15977
16027
|
var ifNotNull = (effect3) => effect3 !== void 0 ? effect3 : _void;
|
|
15978
16028
|
var runFinalizers = (finalizers, exit4) => {
|
|
15979
|
-
return pipe(forEach8(finalizers, (fin) => exit3(fin(exit4))), map17((exits) => pipe(all2(exits), getOrElse(() => void_3))), flatMap10((exit5) =>
|
|
16029
|
+
return pipe(forEach8(finalizers, (fin) => exit3(fin(exit4))), map17((exits) => pipe(all2(exits), getOrElse(() => void_3))), flatMap10((exit5) => suspend3(() => exit5)));
|
|
15980
16030
|
};
|
|
15981
16031
|
var readUpstream = (r, onSuccess, onFailure) => {
|
|
15982
16032
|
const readStack = [r];
|
|
@@ -15991,7 +16041,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
15991
16041
|
const emitEffect = current.onEmit(current.upstream.getEmit());
|
|
15992
16042
|
if (readStack.length === 0) {
|
|
15993
16043
|
if (emitEffect === void 0) {
|
|
15994
|
-
return
|
|
16044
|
+
return suspend3(onSuccess);
|
|
15995
16045
|
}
|
|
15996
16046
|
return pipe(emitEffect, matchCauseEffect3({
|
|
15997
16047
|
onFailure,
|
|
@@ -15999,7 +16049,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
15999
16049
|
}));
|
|
16000
16050
|
}
|
|
16001
16051
|
if (emitEffect === void 0) {
|
|
16002
|
-
return
|
|
16052
|
+
return suspend3(() => read());
|
|
16003
16053
|
}
|
|
16004
16054
|
return pipe(emitEffect, matchCauseEffect3({
|
|
16005
16055
|
onFailure,
|
|
@@ -16010,7 +16060,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
16010
16060
|
const doneEffect = current.onDone(current.upstream.getDone());
|
|
16011
16061
|
if (readStack.length === 0) {
|
|
16012
16062
|
if (doneEffect === void 0) {
|
|
16013
|
-
return
|
|
16063
|
+
return suspend3(onSuccess);
|
|
16014
16064
|
}
|
|
16015
16065
|
return pipe(doneEffect, matchCauseEffect3({
|
|
16016
16066
|
onFailure,
|
|
@@ -16018,7 +16068,7 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
16018
16068
|
}));
|
|
16019
16069
|
}
|
|
16020
16070
|
if (doneEffect === void 0) {
|
|
16021
|
-
return
|
|
16071
|
+
return suspend3(() => read());
|
|
16022
16072
|
}
|
|
16023
16073
|
return pipe(doneEffect, matchCauseEffect3({
|
|
16024
16074
|
onFailure,
|
|
@@ -16027,8 +16077,8 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
16027
16077
|
}
|
|
16028
16078
|
case OP_FROM_EFFECT3: {
|
|
16029
16079
|
readStack.push(current);
|
|
16030
|
-
return pipe(current.onEffect(state.effect), catchAllCause2((cause2) =>
|
|
16031
|
-
const doneEffect = current.onDone(
|
|
16080
|
+
return pipe(current.onEffect(state.effect), catchAllCause2((cause2) => suspend3(() => {
|
|
16081
|
+
const doneEffect = current.onDone(failCause3(cause2));
|
|
16032
16082
|
return doneEffect === void 0 ? _void : doneEffect;
|
|
16033
16083
|
})), matchCauseEffect3({
|
|
16034
16084
|
onFailure,
|
|
@@ -16038,24 +16088,24 @@ var readUpstream = (r, onSuccess, onFailure) => {
|
|
|
16038
16088
|
case OP_READ2: {
|
|
16039
16089
|
readStack.push(current);
|
|
16040
16090
|
readStack.push(state);
|
|
16041
|
-
return
|
|
16091
|
+
return suspend3(() => read());
|
|
16042
16092
|
}
|
|
16043
16093
|
}
|
|
16044
16094
|
};
|
|
16045
16095
|
return read();
|
|
16046
16096
|
};
|
|
16047
16097
|
var runIn = /* @__PURE__ */ dual(2, (self, scope4) => {
|
|
16048
|
-
const run3 = (channelDeferred, scopeDeferred, scope5) => acquireUseRelease2(sync4(() => new ChannelExecutor(self, void 0, identity)), (exec) =>
|
|
16098
|
+
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) => {
|
|
16049
16099
|
const finalize = exec.close(exit4);
|
|
16050
16100
|
if (finalize === void 0) {
|
|
16051
16101
|
return _void;
|
|
16052
16102
|
}
|
|
16053
16103
|
return tapErrorCause2(finalize, (cause2) => addFinalizer2(scope5, failCause7(cause2)));
|
|
16054
16104
|
});
|
|
16055
|
-
return uninterruptibleMask3((restore) => all4([fork(scope4, sequential3),
|
|
16105
|
+
return uninterruptibleMask3((restore) => all4([fork(scope4, sequential3), make39(), make39()]).pipe(flatMap10(([child, channelDeferred, scopeDeferred]) => restore(run3(channelDeferred, scopeDeferred, child)).pipe(forkIn2(scope4), flatMap10((fiber) => scope4.addFinalizer((exit4) => {
|
|
16056
16106
|
const interruptors3 = isFailure(exit4) ? interruptors2(exit4.cause) : void 0;
|
|
16057
|
-
return
|
|
16058
|
-
}).pipe(zipRight3(restore(
|
|
16107
|
+
return isDone5(channelDeferred).pipe(flatMap10((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)))));
|
|
16108
|
+
}).pipe(zipRight3(restore(_await3(channelDeferred)))))))));
|
|
16059
16109
|
});
|
|
16060
16110
|
var runScopedInterpret = (channelState, exec) => {
|
|
16061
16111
|
const op = channelState;
|
|
@@ -16067,7 +16117,7 @@ var runScopedInterpret = (channelState, exec) => {
|
|
|
16067
16117
|
return runScopedInterpret(exec.run(), exec);
|
|
16068
16118
|
}
|
|
16069
16119
|
case OP_DONE3: {
|
|
16070
|
-
return
|
|
16120
|
+
return suspend3(() => exec.getDone());
|
|
16071
16121
|
}
|
|
16072
16122
|
case OP_READ2: {
|
|
16073
16123
|
return readUpstream(op, () => runScopedInterpret(exec.run(), exec), failCause7);
|
|
@@ -16075,11 +16125,11 @@ var runScopedInterpret = (channelState, exec) => {
|
|
|
16075
16125
|
}
|
|
16076
16126
|
};
|
|
16077
16127
|
|
|
16078
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16128
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelMergeDecision.js
|
|
16079
16129
|
var OP_DONE4 = "Done";
|
|
16080
16130
|
var OP_AWAIT = "Await";
|
|
16081
16131
|
|
|
16082
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16132
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/mergeDecision.js
|
|
16083
16133
|
var MergeDecisionSymbolKey = "effect/ChannelMergeDecision";
|
|
16084
16134
|
var MergeDecisionTypeId = /* @__PURE__ */ Symbol.for(MergeDecisionSymbolKey);
|
|
16085
16135
|
var proto10 = {
|
|
@@ -16098,12 +16148,12 @@ var Await = (f) => {
|
|
|
16098
16148
|
return op;
|
|
16099
16149
|
};
|
|
16100
16150
|
|
|
16101
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16151
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelMergeState.js
|
|
16102
16152
|
var OP_BOTH_RUNNING = "BothRunning";
|
|
16103
16153
|
var OP_LEFT_DONE = "LeftDone";
|
|
16104
16154
|
var OP_RIGHT_DONE = "RightDone";
|
|
16105
16155
|
|
|
16106
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16156
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/mergeState.js
|
|
16107
16157
|
var MergeStateSymbolKey = "effect/ChannelMergeState";
|
|
16108
16158
|
var MergeStateTypeId = /* @__PURE__ */ Symbol.for(MergeStateSymbolKey);
|
|
16109
16159
|
var proto11 = {
|
|
@@ -16129,11 +16179,11 @@ var RightDone = (f) => {
|
|
|
16129
16179
|
return op;
|
|
16130
16180
|
};
|
|
16131
16181
|
|
|
16132
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16182
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/opCodes/channelMergeStrategy.js
|
|
16133
16183
|
var OP_BACK_PRESSURE = "BackPressure";
|
|
16134
16184
|
var OP_BUFFER_SLIDING = "BufferSliding";
|
|
16135
16185
|
|
|
16136
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16186
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/mergeStrategy.js
|
|
16137
16187
|
var MergeStrategySymbolKey = "effect/ChannelMergeStrategy";
|
|
16138
16188
|
var MergeStrategyTypeId = /* @__PURE__ */ Symbol.for(MergeStrategySymbolKey);
|
|
16139
16189
|
var proto12 = {
|
|
@@ -16163,7 +16213,7 @@ var match13 = /* @__PURE__ */ dual(2, (self, {
|
|
|
16163
16213
|
}
|
|
16164
16214
|
});
|
|
16165
16215
|
|
|
16166
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16216
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel/singleProducerAsyncInput.js
|
|
16167
16217
|
var OP_STATE_EMPTY = "Empty";
|
|
16168
16218
|
var OP_STATE_EMIT = "Emit";
|
|
16169
16219
|
var OP_STATE_ERROR = "Error";
|
|
@@ -16190,7 +16240,7 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
16190
16240
|
this.ref = ref;
|
|
16191
16241
|
}
|
|
16192
16242
|
awaitRead() {
|
|
16193
|
-
return flatten5(modify4(this.ref, (state) => state._tag === OP_STATE_EMPTY ? [
|
|
16243
|
+
return flatten5(modify4(this.ref, (state) => state._tag === OP_STATE_EMPTY ? [_await3(state.notifyProducer), state] : [_void, state]));
|
|
16194
16244
|
}
|
|
16195
16245
|
get close() {
|
|
16196
16246
|
return fiberIdWith2((fiberId2) => this.error(interrupt3(fiberId2)));
|
|
@@ -16199,10 +16249,10 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
16199
16249
|
return flatten5(modify4(this.ref, (state) => {
|
|
16200
16250
|
switch (state._tag) {
|
|
16201
16251
|
case OP_STATE_EMPTY: {
|
|
16202
|
-
return [
|
|
16252
|
+
return [_await3(state.notifyProducer), state];
|
|
16203
16253
|
}
|
|
16204
16254
|
case OP_STATE_EMIT: {
|
|
16205
|
-
return [forEach8(state.notifyConsumers, (deferred) =>
|
|
16255
|
+
return [forEach8(state.notifyConsumers, (deferred) => succeed5(deferred, left2(value2)), {
|
|
16206
16256
|
discard: true
|
|
16207
16257
|
}), stateDone(value2)];
|
|
16208
16258
|
}
|
|
@@ -16216,16 +16266,16 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
16216
16266
|
}));
|
|
16217
16267
|
}
|
|
16218
16268
|
emit(element) {
|
|
16219
|
-
return flatMap10(
|
|
16269
|
+
return flatMap10(make39(), (deferred) => flatten5(modify4(this.ref, (state) => {
|
|
16220
16270
|
switch (state._tag) {
|
|
16221
16271
|
case OP_STATE_EMPTY: {
|
|
16222
|
-
return [
|
|
16272
|
+
return [_await3(state.notifyProducer), state];
|
|
16223
16273
|
}
|
|
16224
16274
|
case OP_STATE_EMIT: {
|
|
16225
16275
|
const notifyConsumer = state.notifyConsumers[0];
|
|
16226
16276
|
const notifyConsumers = state.notifyConsumers.slice(1);
|
|
16227
16277
|
if (notifyConsumer !== void 0) {
|
|
16228
|
-
return [
|
|
16278
|
+
return [succeed5(notifyConsumer, right2(element)), notifyConsumers.length === 0 ? stateEmpty(deferred) : stateEmit(notifyConsumers)];
|
|
16229
16279
|
}
|
|
16230
16280
|
throw new Error("Bug: Channel.SingleProducerAsyncInput.emit - Queue was empty! please report an issue at https://github.com/Effect-TS/effect/issues");
|
|
16231
16281
|
}
|
|
@@ -16242,10 +16292,10 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
16242
16292
|
return flatten5(modify4(this.ref, (state) => {
|
|
16243
16293
|
switch (state._tag) {
|
|
16244
16294
|
case OP_STATE_EMPTY: {
|
|
16245
|
-
return [
|
|
16295
|
+
return [_await3(state.notifyProducer), state];
|
|
16246
16296
|
}
|
|
16247
16297
|
case OP_STATE_EMIT: {
|
|
16248
|
-
return [forEach8(state.notifyConsumers, (deferred) =>
|
|
16298
|
+
return [forEach8(state.notifyConsumers, (deferred) => failCause6(deferred, cause2), {
|
|
16249
16299
|
discard: true
|
|
16250
16300
|
}), stateError(cause2)];
|
|
16251
16301
|
}
|
|
@@ -16259,13 +16309,13 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
16259
16309
|
}));
|
|
16260
16310
|
}
|
|
16261
16311
|
get take() {
|
|
16262
|
-
return this.takeWith((cause2) =>
|
|
16312
|
+
return this.takeWith((cause2) => failCause3(map14(cause2, left2)), (elem) => succeed3(elem), (done7) => fail3(right2(done7)));
|
|
16263
16313
|
}
|
|
16264
16314
|
takeWith(onError4, onElement, onDone2) {
|
|
16265
|
-
return flatMap10(
|
|
16315
|
+
return flatMap10(make39(), (deferred) => flatten5(modify4(this.ref, (state) => {
|
|
16266
16316
|
switch (state._tag) {
|
|
16267
16317
|
case OP_STATE_EMPTY: {
|
|
16268
|
-
return [zipRight3(
|
|
16318
|
+
return [zipRight3(succeed5(state.notifyProducer, void 0), matchCause4(_await3(deferred), {
|
|
16269
16319
|
onFailure: onError4,
|
|
16270
16320
|
onSuccess: match({
|
|
16271
16321
|
onLeft: onDone2,
|
|
@@ -16274,7 +16324,7 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
16274
16324
|
})), stateEmit([deferred])];
|
|
16275
16325
|
}
|
|
16276
16326
|
case OP_STATE_EMIT: {
|
|
16277
|
-
return [matchCause4(
|
|
16327
|
+
return [matchCause4(_await3(deferred), {
|
|
16278
16328
|
onFailure: onError4,
|
|
16279
16329
|
onSuccess: match({
|
|
16280
16330
|
onLeft: onDone2,
|
|
@@ -16292,9 +16342,9 @@ var SingleProducerAsyncInputImpl = class {
|
|
|
16292
16342
|
})));
|
|
16293
16343
|
}
|
|
16294
16344
|
};
|
|
16295
|
-
var make45 = () => pipe(
|
|
16345
|
+
var make45 = () => pipe(make39(), flatMap10((deferred) => make24(stateEmpty(deferred))), map17((ref) => new SingleProducerAsyncInputImpl(ref)));
|
|
16296
16346
|
|
|
16297
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16347
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/channel.js
|
|
16298
16348
|
var concatMap = /* @__PURE__ */ dual(2, (self, f) => concatMapWith(self, f, () => void 0, () => void 0));
|
|
16299
16349
|
var drain = (self) => {
|
|
16300
16350
|
const drainer = readWithCause({
|
|
@@ -16316,7 +16366,7 @@ var mapOut = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
16316
16366
|
});
|
|
16317
16367
|
return pipeTo(self, reader);
|
|
16318
16368
|
});
|
|
16319
|
-
var
|
|
16369
|
+
var mergeAll6 = (options3) => {
|
|
16320
16370
|
return (channels) => mergeAllWith(options3)(channels, constVoid);
|
|
16321
16371
|
};
|
|
16322
16372
|
var mergeAllWith = ({
|
|
@@ -16331,8 +16381,8 @@ var mergeAllWith = ({
|
|
|
16331
16381
|
yield* addFinalizer2(scope4, shutdown2(queue));
|
|
16332
16382
|
const cancelers = yield* unbounded3();
|
|
16333
16383
|
yield* addFinalizer2(scope4, shutdown2(cancelers));
|
|
16334
|
-
const lastDone = yield*
|
|
16335
|
-
const errorSignal = yield*
|
|
16384
|
+
const lastDone = yield* make24(none2());
|
|
16385
|
+
const errorSignal = yield* make39();
|
|
16336
16386
|
const withPermits = (yield* makeSemaphore2(concurrencyN)).withPermits;
|
|
16337
16387
|
const pull = yield* toPullIn(pipeTo(queueReader, channels), scope4);
|
|
16338
16388
|
function evaluatePull(pull2) {
|
|
@@ -16344,12 +16394,12 @@ var mergeAllWith = ({
|
|
|
16344
16394
|
}), flatMap10((outDone) => update3(lastDone, match2({
|
|
16345
16395
|
onNone: () => some2(outDone.value),
|
|
16346
16396
|
onSome: (lastDone2) => some2(f(lastDone2, outDone.value))
|
|
16347
|
-
}))), catchAllCause2((cause2) =>
|
|
16397
|
+
}))), catchAllCause2((cause2) => isInterrupted2(cause2) ? failCause7(cause2) : offer3(queue, failCause7(cause2)).pipe(zipRight3(succeed5(errorSignal, void 0)), asVoid2)));
|
|
16348
16398
|
}
|
|
16349
16399
|
yield* pull.pipe(matchCauseEffect3({
|
|
16350
16400
|
onFailure: (cause2) => offer3(queue, failCause7(cause2)).pipe(zipRight3(succeed7(false))),
|
|
16351
16401
|
onSuccess: match({
|
|
16352
|
-
onLeft: (outDone) => raceWith2(interruptible4(
|
|
16402
|
+
onLeft: (outDone) => raceWith2(interruptible4(_await3(errorSignal)), interruptible4(withPermits(concurrencyN)(_void)), {
|
|
16353
16403
|
onSelfDone: (_, permitAcquisition) => as4(interrupt4(permitAcquisition), false),
|
|
16354
16404
|
onOtherDone: (_, failureAwait) => zipRight3(interrupt4(failureAwait), get11(lastDone).pipe(flatMap10(match2({
|
|
16355
16405
|
onNone: () => offer3(queue, succeed7(left2(outDone))),
|
|
@@ -16358,23 +16408,23 @@ var mergeAllWith = ({
|
|
|
16358
16408
|
}),
|
|
16359
16409
|
onRight: (channel) => match13(mergeStrategy, {
|
|
16360
16410
|
onBackPressure: () => gen2(function* () {
|
|
16361
|
-
const latch = yield*
|
|
16362
|
-
const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap10((pull2) => race2(exit3(evaluatePull(pull2)), exit3(interruptible4(
|
|
16363
|
-
yield*
|
|
16364
|
-
yield*
|
|
16365
|
-
const errored = yield*
|
|
16411
|
+
const latch = yield* make39();
|
|
16412
|
+
const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap10((pull2) => race2(exit3(evaluatePull(pull2)), exit3(interruptible4(_await3(errorSignal))))), flatMap10(identity)));
|
|
16413
|
+
yield* succeed5(latch, void 0).pipe(zipRight3(raceEffects), withPermits(1), forkIn2(scope4));
|
|
16414
|
+
yield* _await3(latch);
|
|
16415
|
+
const errored = yield* isDone5(errorSignal);
|
|
16366
16416
|
return !errored;
|
|
16367
16417
|
}),
|
|
16368
16418
|
onBufferSliding: () => gen2(function* () {
|
|
16369
|
-
const canceler = yield*
|
|
16370
|
-
const latch = yield*
|
|
16419
|
+
const canceler = yield* make39();
|
|
16420
|
+
const latch = yield* make39();
|
|
16371
16421
|
const size12 = yield* size11(cancelers);
|
|
16372
|
-
yield* take2(cancelers).pipe(flatMap10((canceler2) =>
|
|
16422
|
+
yield* take2(cancelers).pipe(flatMap10((canceler2) => succeed5(canceler2, void 0)), when2(() => size12 >= concurrencyN));
|
|
16373
16423
|
yield* offer3(cancelers, canceler);
|
|
16374
|
-
const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap10((pull2) => exit3(evaluatePull(pull2)).pipe(race2(exit3(interruptible4(
|
|
16375
|
-
yield*
|
|
16376
|
-
yield*
|
|
16377
|
-
const errored = yield*
|
|
16424
|
+
const raceEffects = scopedWith2((scope5) => toPullIn(pipeTo(queueReader, channel), scope5).pipe(flatMap10((pull2) => exit3(evaluatePull(pull2)).pipe(race2(exit3(interruptible4(_await3(errorSignal)))), race2(exit3(interruptible4(_await3(canceler)))))), flatMap10(identity)));
|
|
16425
|
+
yield* succeed5(latch, void 0).pipe(zipRight3(raceEffects), withPermits(1), forkIn2(scope4));
|
|
16426
|
+
yield* _await3(latch);
|
|
16427
|
+
const errored = yield* isDone5(errorSignal);
|
|
16378
16428
|
return !errored;
|
|
16379
16429
|
})
|
|
16380
16430
|
})
|
|
@@ -16391,7 +16441,7 @@ var mergeAllWith = ({
|
|
|
16391
16441
|
}), unwrap);
|
|
16392
16442
|
return embedInput(consumer, input);
|
|
16393
16443
|
}));
|
|
16394
|
-
var mergeMap = /* @__PURE__ */ dual(3, (self, f, options3) =>
|
|
16444
|
+
var mergeMap = /* @__PURE__ */ dual(3, (self, f, options3) => mergeAll6(options3)(mapOut(self, f)));
|
|
16395
16445
|
var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
|
|
16396
16446
|
function merge9(scope4) {
|
|
16397
16447
|
return gen2(function* () {
|
|
@@ -16406,18 +16456,18 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
|
|
|
16406
16456
|
if (op._tag === OP_DONE4) {
|
|
16407
16457
|
return succeed7(fromEffect4(zipRight3(interrupt4(fiber), op.effect)));
|
|
16408
16458
|
}
|
|
16409
|
-
return map17(
|
|
16410
|
-
onFailure: (cause2) => fromEffect4(op.f(
|
|
16459
|
+
return map17(_await2(fiber), match9({
|
|
16460
|
+
onFailure: (cause2) => fromEffect4(op.f(failCause3(cause2))),
|
|
16411
16461
|
onSuccess: match({
|
|
16412
|
-
onLeft: (done8) => fromEffect4(op.f(
|
|
16462
|
+
onLeft: (done8) => fromEffect4(op.f(succeed3(done8))),
|
|
16413
16463
|
onRight: (elem) => zipRight4(write(elem), go2(single(op.f)))
|
|
16414
16464
|
})
|
|
16415
16465
|
}));
|
|
16416
16466
|
}
|
|
16417
16467
|
return match9(exit4, {
|
|
16418
|
-
onFailure: (cause2) => onDecision(done7(
|
|
16468
|
+
onFailure: (cause2) => onDecision(done7(failCause3(cause2))),
|
|
16419
16469
|
onSuccess: match({
|
|
16420
|
-
onLeft: (z) => onDecision(done7(
|
|
16470
|
+
onLeft: (z) => onDecision(done7(succeed3(z))),
|
|
16421
16471
|
onRight: (elem) => succeed7(flatMap12(write(elem), () => flatMap12(fromEffect4(forkIn2(interruptible4(pull), scope4)), (leftFiber) => go2(both2(leftFiber, fiber)))))
|
|
16422
16472
|
})
|
|
16423
16473
|
});
|
|
@@ -16435,18 +16485,18 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
|
|
|
16435
16485
|
}
|
|
16436
16486
|
case OP_LEFT_DONE: {
|
|
16437
16487
|
return unwrap(map17(exit3(pullR), match9({
|
|
16438
|
-
onFailure: (cause2) => fromEffect4(state.f(
|
|
16488
|
+
onFailure: (cause2) => fromEffect4(state.f(failCause3(cause2))),
|
|
16439
16489
|
onSuccess: match({
|
|
16440
|
-
onLeft: (done7) => fromEffect4(state.f(
|
|
16490
|
+
onLeft: (done7) => fromEffect4(state.f(succeed3(done7))),
|
|
16441
16491
|
onRight: (elem) => flatMap12(write(elem), () => go2(LeftDone(state.f)))
|
|
16442
16492
|
})
|
|
16443
16493
|
})));
|
|
16444
16494
|
}
|
|
16445
16495
|
case OP_RIGHT_DONE: {
|
|
16446
16496
|
return unwrap(map17(exit3(pullL), match9({
|
|
16447
|
-
onFailure: (cause2) => fromEffect4(state.f(
|
|
16497
|
+
onFailure: (cause2) => fromEffect4(state.f(failCause3(cause2))),
|
|
16448
16498
|
onSuccess: match({
|
|
16449
|
-
onLeft: (done7) => fromEffect4(state.f(
|
|
16499
|
+
onLeft: (done7) => fromEffect4(state.f(succeed3(done7))),
|
|
16450
16500
|
onRight: (elem) => flatMap12(write(elem), () => go2(RightDone(state.f)))
|
|
16451
16501
|
})
|
|
16452
16502
|
})));
|
|
@@ -16460,7 +16510,7 @@ var mergeWith2 = /* @__PURE__ */ dual(2, (self, options3) => {
|
|
|
16460
16510
|
});
|
|
16461
16511
|
const leftFiber = interruptible4(pullL).pipe(ensuring2(inherit), forkIn2(scope4));
|
|
16462
16512
|
const rightFiber = interruptible4(pullR).pipe(ensuring2(inherit), forkIn2(scope4));
|
|
16463
|
-
return
|
|
16513
|
+
return zipWith3(leftFiber, rightFiber, (left3, right3) => BothRunning(left3, right3));
|
|
16464
16514
|
})).pipe(flatMap12(go2), embedInput(input));
|
|
16465
16515
|
});
|
|
16466
16516
|
}
|
|
@@ -16485,12 +16535,12 @@ var pipeToOrFail = /* @__PURE__ */ dual(2, (self, that) => suspend5(() => {
|
|
|
16485
16535
|
}));
|
|
16486
16536
|
var run = (self) => scopedWith2((scope4) => runIn(self, scope4));
|
|
16487
16537
|
var runDrain = (self) => run(drain(self));
|
|
16488
|
-
var scoped3 = (effect3) => unwrap(uninterruptibleMask3((restore) => map17(
|
|
16538
|
+
var scoped3 = (effect3) => unwrap(uninterruptibleMask3((restore) => map17(make37(), (scope4) => acquireReleaseOut(tapErrorCause2(restore(extend2(effect3, scope4)), (cause2) => close(scope4, failCause3(cause2))), (_, exit4) => close(scope4, exit4)))));
|
|
16489
16539
|
var scopedWith3 = (f) => unwrapScoped2(map17(scope2, (scope4) => flatMap12(fromEffect4(f(scope4)), write)));
|
|
16490
16540
|
var toPullIn = /* @__PURE__ */ dual(2, (self, scope4) => zip5(sync4(() => new ChannelExecutor(self, void 0, identity)), runtime3()).pipe(tap2(([executor, runtime4]) => addFinalizerExit(scope4, (exit4) => {
|
|
16491
16541
|
const finalizer2 = executor.close(exit4);
|
|
16492
16542
|
return finalizer2 !== void 0 ? provide2(finalizer2, runtime4) : _void;
|
|
16493
|
-
})), uninterruptible2, map17(([executor]) =>
|
|
16543
|
+
})), uninterruptible2, map17(([executor]) => suspend3(() => interpretToPull(executor.run(), executor)))));
|
|
16494
16544
|
var interpretToPull = (channelState, exec) => {
|
|
16495
16545
|
const state = channelState;
|
|
16496
16546
|
switch (state._tag) {
|
|
@@ -16520,8 +16570,8 @@ var writeChunkWriter = (idx, len, chunk2) => {
|
|
|
16520
16570
|
};
|
|
16521
16571
|
var zip6 = /* @__PURE__ */ dual((args2) => isChannel(args2[1]), (self, that, options3) => options3?.concurrent ? mergeWith2(self, {
|
|
16522
16572
|
other: that,
|
|
16523
|
-
onSelfDone: (exit1) => Await((exit22) =>
|
|
16524
|
-
onOtherDone: (exit22) => Await((exit1) =>
|
|
16573
|
+
onSelfDone: (exit1) => Await((exit22) => suspend3(() => zip3(exit1, exit22))),
|
|
16574
|
+
onOtherDone: (exit22) => Await((exit1) => suspend3(() => zip3(exit1, exit22)))
|
|
16525
16575
|
}) : flatMap12(self, (a) => map20(that, (b) => [a, b])));
|
|
16526
16576
|
var zipRight4 = /* @__PURE__ */ dual((args2) => isChannel(args2[1]), (self, that, options3) => options3?.concurrent ? map20(zip6(self, that, {
|
|
16527
16577
|
concurrent: true
|
|
@@ -16534,10 +16584,10 @@ var ChannelException = (error) => ({
|
|
|
16534
16584
|
});
|
|
16535
16585
|
var isChannelException = (u) => hasProperty(u, ChannelExceptionTypeId);
|
|
16536
16586
|
|
|
16537
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16587
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Runtime.js
|
|
16538
16588
|
var runFork3 = unsafeFork3;
|
|
16539
16589
|
|
|
16540
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16590
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/sink.js
|
|
16541
16591
|
var SinkTypeId2 = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
16542
16592
|
var sinkVariance2 = {
|
|
16543
16593
|
/* c8 ignore next */
|
|
@@ -16572,7 +16622,7 @@ var forEachChunk = (f) => {
|
|
|
16572
16622
|
var fromEffect6 = (effect3) => new SinkImpl(fromEffect4(effect3));
|
|
16573
16623
|
var toChannel = (self) => isEffect2(self) ? toChannel(fromEffect6(self)) : self.channel;
|
|
16574
16624
|
|
|
16575
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16625
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/internal/stream.js
|
|
16576
16626
|
var StreamSymbolKey = "effect/Stream";
|
|
16577
16627
|
var StreamTypeId2 = /* @__PURE__ */ Symbol.for(StreamSymbolKey);
|
|
16578
16628
|
var streamVariance = {
|
|
@@ -16591,7 +16641,7 @@ var StreamImpl = class {
|
|
|
16591
16641
|
}
|
|
16592
16642
|
};
|
|
16593
16643
|
var isStream = (u) => hasProperty(u, StreamTypeId2) || isEffect2(u);
|
|
16594
|
-
var
|
|
16644
|
+
var ensuring4 = /* @__PURE__ */ dual(2, (self, finalizer2) => new StreamImpl(pipe(toChannel2(self), ensuring3(finalizer2))));
|
|
16595
16645
|
var fail11 = (error) => fromEffectOption(fail7(some2(error)));
|
|
16596
16646
|
var flatMap14 = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, f, options3) => {
|
|
16597
16647
|
const bufferSize = options3?.bufferSize ?? 16;
|
|
@@ -16705,8 +16755,8 @@ var unfoldChunkEffect = (s, f) => suspend6(() => {
|
|
|
16705
16755
|
});
|
|
16706
16756
|
var unwrapScoped3 = (effect3) => flatten10(scoped4(effect3));
|
|
16707
16757
|
|
|
16708
|
-
// ../../../node_modules/.pnpm/effect@3.
|
|
16709
|
-
var
|
|
16758
|
+
// ../../../node_modules/.pnpm/effect@3.19.6/node_modules/effect/dist/esm/Stream.js
|
|
16759
|
+
var ensuring5 = ensuring4;
|
|
16710
16760
|
var fail12 = fail11;
|
|
16711
16761
|
var fromReadableStream2 = fromReadableStream;
|
|
16712
16762
|
var suspend7 = suspend6;
|
|
@@ -16720,7 +16770,7 @@ var TypeIdError = (typeId, tag2) => {
|
|
|
16720
16770
|
return Base3;
|
|
16721
16771
|
};
|
|
16722
16772
|
|
|
16723
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16773
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/Cookies.js
|
|
16724
16774
|
var TypeId18 = /* @__PURE__ */ Symbol.for("@effect/platform/Cookies");
|
|
16725
16775
|
var CookieTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Cookies/Cookie");
|
|
16726
16776
|
var Proto2 = {
|
|
@@ -16903,7 +16953,7 @@ var tryDecodeURIComponent = (str) => {
|
|
|
16903
16953
|
}
|
|
16904
16954
|
};
|
|
16905
16955
|
|
|
16906
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
16956
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/Headers.js
|
|
16907
16957
|
var HeadersTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Headers");
|
|
16908
16958
|
var Proto3 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
16909
16959
|
[HeadersTypeId]: HeadersTypeId,
|
|
@@ -17002,10 +17052,10 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
|
|
|
17002
17052
|
});
|
|
17003
17053
|
var currentRedactedNames = /* @__PURE__ */ globalValue("@effect/platform/Headers/currentRedactedNames", () => unsafeMake7(["authorization", "cookie", "set-cookie", "x-api-key"]));
|
|
17004
17054
|
|
|
17005
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17055
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/httpClientError.js
|
|
17006
17056
|
var TypeId19 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientError");
|
|
17007
17057
|
|
|
17008
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17058
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/HttpClientError.js
|
|
17009
17059
|
var TypeId20 = TypeId19;
|
|
17010
17060
|
var RequestError = class extends (/* @__PURE__ */ TypeIdError(TypeId20, "RequestError")) {
|
|
17011
17061
|
get methodAndUrl() {
|
|
@@ -17025,7 +17075,7 @@ var ResponseError = class extends (/* @__PURE__ */ TypeIdError(TypeId20, "Respon
|
|
|
17025
17075
|
}
|
|
17026
17076
|
};
|
|
17027
17077
|
|
|
17028
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17078
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/UrlParams.js
|
|
17029
17079
|
var fromInput3 = (input) => {
|
|
17030
17080
|
const parsed = fromInputNested(input);
|
|
17031
17081
|
const out = [];
|
|
@@ -17062,9 +17112,16 @@ var fromInputNested = (input) => {
|
|
|
17062
17112
|
};
|
|
17063
17113
|
var empty32 = [];
|
|
17064
17114
|
var setAll4 = /* @__PURE__ */ dual(2, (self, input) => {
|
|
17065
|
-
const
|
|
17066
|
-
const keys6 =
|
|
17067
|
-
|
|
17115
|
+
const out = fromInput3(input);
|
|
17116
|
+
const keys6 = /* @__PURE__ */ new Set();
|
|
17117
|
+
for (let i = 0; i < out.length; i++) {
|
|
17118
|
+
keys6.add(out[i][0]);
|
|
17119
|
+
}
|
|
17120
|
+
for (let i = 0; i < self.length; i++) {
|
|
17121
|
+
if (keys6.has(self[i][0])) continue;
|
|
17122
|
+
out.push(self[i]);
|
|
17123
|
+
}
|
|
17124
|
+
return out;
|
|
17068
17125
|
});
|
|
17069
17126
|
var makeUrl = (url, params, hash2) => {
|
|
17070
17127
|
try {
|
|
@@ -17090,7 +17147,7 @@ var baseUrl = () => {
|
|
|
17090
17147
|
return void 0;
|
|
17091
17148
|
};
|
|
17092
17149
|
|
|
17093
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17150
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/HttpIncomingMessage.js
|
|
17094
17151
|
var TypeId21 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpIncomingMessage");
|
|
17095
17152
|
var schemaBodyJson = (schema, options3) => {
|
|
17096
17153
|
const parse3 = decodeUnknown2(schema, options3);
|
|
@@ -17121,13 +17178,13 @@ var inspect = (self, that) => {
|
|
|
17121
17178
|
return obj;
|
|
17122
17179
|
};
|
|
17123
17180
|
|
|
17124
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17181
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/HttpTraceContext.js
|
|
17125
17182
|
var toHeaders = (span2) => unsafeFromRecord({
|
|
17126
17183
|
b3: `${span2.traceId}-${span2.spanId}-${span2.sampled ? "1" : "0"}${span2.parent._tag === "Some" ? `-${span2.parent.value.spanId}` : ""}`,
|
|
17127
17184
|
traceparent: `00-${span2.traceId}-${span2.spanId}-${span2.sampled ? "01" : "00"}`
|
|
17128
17185
|
});
|
|
17129
17186
|
|
|
17130
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17187
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/httpBody.js
|
|
17131
17188
|
var TypeId22 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpBody");
|
|
17132
17189
|
var BodyBase = class {
|
|
17133
17190
|
[TypeId22];
|
|
@@ -17152,7 +17209,7 @@ var EmptyImpl = class extends BodyBase {
|
|
|
17152
17209
|
};
|
|
17153
17210
|
var empty33 = /* @__PURE__ */ new EmptyImpl();
|
|
17154
17211
|
|
|
17155
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17212
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/httpClientRequest.js
|
|
17156
17213
|
var TypeId23 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientRequest");
|
|
17157
17214
|
var Proto4 = {
|
|
17158
17215
|
[TypeId23]: TypeId23,
|
|
@@ -17258,7 +17315,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
|
|
|
17258
17315
|
return makeInternal(self.method, self.url, self.urlParams, self.hash, headers, body);
|
|
17259
17316
|
});
|
|
17260
17317
|
|
|
17261
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17318
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/httpClientResponse.js
|
|
17262
17319
|
var TypeId24 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClientResponse");
|
|
17263
17320
|
var fromWeb = (request, source) => new ClientResponseImpl(request, source);
|
|
17264
17321
|
var ClientResponseImpl = class extends Class {
|
|
@@ -17369,7 +17426,17 @@ var ClientResponseImpl = class extends Class {
|
|
|
17369
17426
|
}
|
|
17370
17427
|
};
|
|
17371
17428
|
|
|
17372
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17429
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/httpClient.js
|
|
17430
|
+
var ATTR_HTTP_REQUEST_HEADER = (key) => `http.request.header.${key}`;
|
|
17431
|
+
var ATTR_HTTP_REQUEST_METHOD = "http.request.method";
|
|
17432
|
+
var ATTR_HTTP_RESPONSE_HEADER = (key) => `http.response.header.${key}`;
|
|
17433
|
+
var ATTR_HTTP_RESPONSE_STATUS_CODE = "http.response.status_code";
|
|
17434
|
+
var ATTR_SERVER_ADDRESS = "server.address";
|
|
17435
|
+
var ATTR_SERVER_PORT = "server.port";
|
|
17436
|
+
var ATTR_URL_FULL = "url.full";
|
|
17437
|
+
var ATTR_URL_PATH = "url.path";
|
|
17438
|
+
var ATTR_URL_SCHEME = "url.scheme";
|
|
17439
|
+
var ATTR_URL_QUERY = "url.query";
|
|
17373
17440
|
var TypeId25 = /* @__PURE__ */ Symbol.for("@effect/platform/HttpClient");
|
|
17374
17441
|
var tag = /* @__PURE__ */ GenericTag("@effect/platform/HttpClient");
|
|
17375
17442
|
var currentTracerDisabledWhen = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("@effect/platform/HttpClient/tracerDisabledWhen"), () => unsafeMake7(constFalse));
|
|
@@ -17469,7 +17536,7 @@ var make49 = (f) => makeWith((effect3) => flatMap10(effect3, (request) => withFi
|
|
|
17469
17536
|
return succeed7(new InterruptibleResponse(response, controller));
|
|
17470
17537
|
},
|
|
17471
17538
|
onFailure(cause2) {
|
|
17472
|
-
if (
|
|
17539
|
+
if (isInterrupted2(cause2)) {
|
|
17473
17540
|
controller.abort();
|
|
17474
17541
|
}
|
|
17475
17542
|
return failCause7(cause2);
|
|
@@ -17511,7 +17578,7 @@ var make49 = (f) => makeWith((effect3) => flatMap10(effect3, (request) => withFi
|
|
|
17511
17578
|
return succeed7(new InterruptibleResponse(response, controller));
|
|
17512
17579
|
},
|
|
17513
17580
|
onFailure(cause2) {
|
|
17514
|
-
if (!scopedController &&
|
|
17581
|
+
if (!scopedController && isInterrupted2(cause2)) {
|
|
17515
17582
|
controller.abort();
|
|
17516
17583
|
}
|
|
17517
17584
|
return failCause7(cause2);
|
|
@@ -17529,7 +17596,7 @@ var InterruptibleResponse = class {
|
|
|
17529
17596
|
[TypeId24] = TypeId24;
|
|
17530
17597
|
[TypeId21] = TypeId21;
|
|
17531
17598
|
applyInterrupt(effect3) {
|
|
17532
|
-
return
|
|
17599
|
+
return suspend3(() => {
|
|
17533
17600
|
responseRegistry.unregister(this.original);
|
|
17534
17601
|
return onInterrupt2(effect3, () => sync4(() => {
|
|
17535
17602
|
this.controller.abort();
|
|
@@ -17569,12 +17636,9 @@ var InterruptibleResponse = class {
|
|
|
17569
17636
|
get stream() {
|
|
17570
17637
|
return suspend7(() => {
|
|
17571
17638
|
responseRegistry.unregister(this.original);
|
|
17572
|
-
return
|
|
17573
|
-
|
|
17574
|
-
|
|
17575
|
-
}
|
|
17576
|
-
return _void;
|
|
17577
|
-
});
|
|
17639
|
+
return ensuring5(this.original.stream, sync4(() => {
|
|
17640
|
+
this.controller.abort();
|
|
17641
|
+
}));
|
|
17578
17642
|
});
|
|
17579
17643
|
}
|
|
17580
17644
|
toJSON() {
|
|
@@ -17608,14 +17672,14 @@ var transformResponse = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
17608
17672
|
});
|
|
17609
17673
|
var layerMergedContext = (effect3) => effect(tag, flatMap10(context2(), (context5) => map17(effect3, (client) => transformResponse(client, mapInputContext2((input) => merge3(context5, input))))));
|
|
17610
17674
|
|
|
17611
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17675
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/HttpClient.js
|
|
17612
17676
|
var HttpClient = tag;
|
|
17613
17677
|
|
|
17614
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17678
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/HttpClientRequest.js
|
|
17615
17679
|
var get17 = get15;
|
|
17616
17680
|
var setUrlParams2 = setUrlParams;
|
|
17617
17681
|
|
|
17618
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17682
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/internal/fetchHttpClient.js
|
|
17619
17683
|
var fetchTagKey = "@effect/platform/FetchHttpClient/Fetch";
|
|
17620
17684
|
var requestInitTagKey = "@effect/platform/FetchHttpClient/FetchOptions";
|
|
17621
17685
|
var fetch = /* @__PURE__ */ make49((request, url, signal, fiber) => {
|
|
@@ -17651,7 +17715,7 @@ var fetch = /* @__PURE__ */ make49((request, url, signal, fiber) => {
|
|
|
17651
17715
|
});
|
|
17652
17716
|
var layer = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed7(fetch));
|
|
17653
17717
|
|
|
17654
|
-
// ../../../node_modules/.pnpm/@effect+platform@0.
|
|
17718
|
+
// ../../../node_modules/.pnpm/@effect+platform@0.93.3_effect@3.19.6/node_modules/@effect/platform/dist/esm/FetchHttpClient.js
|
|
17655
17719
|
var layer2 = layer;
|
|
17656
17720
|
|
|
17657
17721
|
// ../../utils/dist/effect/Resource/index.js
|
|
@@ -17660,7 +17724,7 @@ __export(Resource_exports, {
|
|
|
17660
17724
|
GID: () => GID,
|
|
17661
17725
|
ID: () => ID,
|
|
17662
17726
|
Type: () => Type3,
|
|
17663
|
-
format: () =>
|
|
17727
|
+
format: () => format4,
|
|
17664
17728
|
parse: () => parse2
|
|
17665
17729
|
});
|
|
17666
17730
|
|
|
@@ -17708,7 +17772,7 @@ var ID = Union2(
|
|
|
17708
17772
|
);
|
|
17709
17773
|
|
|
17710
17774
|
// ../../utils/dist/effect/Resource/data.js
|
|
17711
|
-
var
|
|
17775
|
+
var format4 = ({
|
|
17712
17776
|
id: id2,
|
|
17713
17777
|
type
|
|
17714
17778
|
}) => gen2(function* () {
|
|
@@ -17875,6 +17939,9 @@ Logging_exports.filterLevelOrNever;
|
|
|
17875
17939
|
(class extends TaggedError(
|
|
17876
17940
|
"@brytdesigns/ajax-client/InvalidAjaxMethodError"
|
|
17877
17941
|
) {
|
|
17942
|
+
/**
|
|
17943
|
+
* Constructs a new instance of InvalidAjaxMethodError with a default error message.
|
|
17944
|
+
*/
|
|
17878
17945
|
constructor() {
|
|
17879
17946
|
super({ message: "Invalid HTTP method | Allowed: 'get' or 'post'" });
|
|
17880
17947
|
}
|
|
@@ -18161,21 +18228,22 @@ var get18 = makeFactory({
|
|
|
18161
18228
|
});
|
|
18162
18229
|
|
|
18163
18230
|
// src/index.ts
|
|
18164
|
-
var
|
|
18231
|
+
var createPredictiveSearchApi = ({ debug = false }) => {
|
|
18165
18232
|
let baseLayer = empty29;
|
|
18166
18233
|
let minimumLogLevel2 = None3;
|
|
18167
18234
|
let loggerLayer = pretty4;
|
|
18168
18235
|
if (debug) {
|
|
18169
|
-
baseLayer =
|
|
18236
|
+
baseLayer = mergeAll5(loggerLayer);
|
|
18170
18237
|
minimumLogLevel2 = All;
|
|
18171
18238
|
}
|
|
18172
|
-
const ajaxLayer =
|
|
18239
|
+
const ajaxLayer = mergeAll5(baseLayer, Default);
|
|
18173
18240
|
return {
|
|
18174
18241
|
get: (input, options3) => runPromise(
|
|
18175
18242
|
get18(input, {
|
|
18176
18243
|
...options3 || {},
|
|
18177
18244
|
headers: {
|
|
18178
18245
|
"X-SDK-Variant-Source": "shopify-ajax-predictive-search-api",
|
|
18246
|
+
"X-Library-Source": "brytdesigns-shopify-ajax-predictive-search-api",
|
|
18179
18247
|
...options3?.headers || {}
|
|
18180
18248
|
}
|
|
18181
18249
|
}).pipe(
|
|
@@ -18189,6 +18257,6 @@ var createPredicitiveSearchApi = ({ debug = false }) => {
|
|
|
18189
18257
|
};
|
|
18190
18258
|
};
|
|
18191
18259
|
|
|
18192
|
-
export {
|
|
18260
|
+
export { createPredictiveSearchApi };
|
|
18193
18261
|
//# sourceMappingURL=index.js.map
|
|
18194
18262
|
//# sourceMappingURL=index.js.map
|