create-efffrida-app 0.0.30 → 0.0.31
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/bin.cjs +601 -443
- package/package.json +3 -3
package/dist/bin.cjs
CHANGED
|
@@ -65,10 +65,10 @@ var __export = (target, all3) => {
|
|
|
65
65
|
__defProp(target, name, { get: all3[name], enumerable: true });
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
68
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Pipeable.js
|
|
69
69
|
var pipeArguments, Prototype, Class;
|
|
70
70
|
var init_Pipeable = __esm({
|
|
71
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
71
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Pipeable.js"() {
|
|
72
72
|
pipeArguments = (self, args2) => {
|
|
73
73
|
switch (args2.length) {
|
|
74
74
|
case 0:
|
|
@@ -114,7 +114,7 @@ var init_Pipeable = __esm({
|
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
117
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Function.js
|
|
118
118
|
function pipe(a, ...args2) {
|
|
119
119
|
return pipeArguments(a, args2);
|
|
120
120
|
}
|
|
@@ -143,7 +143,7 @@ function memoizeIdempotent(f2) {
|
|
|
143
143
|
}
|
|
144
144
|
var dual, identity, constant, constTrue, constFalse, constUndefined, constVoid;
|
|
145
145
|
var init_Function = __esm({
|
|
146
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
146
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Function.js"() {
|
|
147
147
|
init_Pipeable();
|
|
148
148
|
dual = function(arity, body) {
|
|
149
149
|
if (typeof arity === "function") {
|
|
@@ -194,15 +194,19 @@ var init_Function = __esm({
|
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
196
|
|
|
197
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
198
|
-
var getAllObjectKeys, byReferenceInstances, viewBytes, isArrayBufferLike, bufferBytes;
|
|
197
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/equal.js
|
|
198
|
+
var errorSiteKeys, getAllObjectKeys, byReferenceInstances, viewBytes, isArrayBufferLike, bufferBytes;
|
|
199
199
|
var init_equal = __esm({
|
|
200
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
200
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/equal.js"() {
|
|
201
|
+
errorSiteKeys = ["line", "column", "sourceURL", "originalLine", "originalColumn"];
|
|
201
202
|
getAllObjectKeys = (obj) => {
|
|
202
203
|
const keys2 = new Set(Reflect.ownKeys(obj));
|
|
203
204
|
if (obj.constructor === Object) return keys2;
|
|
204
205
|
if (obj instanceof Error) {
|
|
205
206
|
keys2.delete("stack");
|
|
207
|
+
for (const key of errorSiteKeys) {
|
|
208
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, key)) keys2.delete(key);
|
|
209
|
+
}
|
|
206
210
|
}
|
|
207
211
|
const proto2 = Object.getPrototypeOf(obj);
|
|
208
212
|
let current = proto2;
|
|
@@ -231,10 +235,10 @@ var init_equal = __esm({
|
|
|
231
235
|
}
|
|
232
236
|
});
|
|
233
237
|
|
|
234
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
238
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/hash.js
|
|
235
239
|
var backEdges, addBackEdge;
|
|
236
240
|
var init_hash = __esm({
|
|
237
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
241
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/hash.js"() {
|
|
238
242
|
backEdges = 0;
|
|
239
243
|
addBackEdge = () => {
|
|
240
244
|
backEdges++;
|
|
@@ -242,7 +246,7 @@ var init_hash = __esm({
|
|
|
242
246
|
}
|
|
243
247
|
});
|
|
244
248
|
|
|
245
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
249
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Predicate.js
|
|
246
250
|
function isString(input) {
|
|
247
251
|
return typeof input === "string";
|
|
248
252
|
}
|
|
@@ -293,17 +297,17 @@ function isIterable(input) {
|
|
|
293
297
|
}
|
|
294
298
|
var hasProperty, isTagged;
|
|
295
299
|
var init_Predicate = __esm({
|
|
296
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
300
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Predicate.js"() {
|
|
297
301
|
init_Function();
|
|
298
302
|
hasProperty = /* @__PURE__ */ dual(2, (self, property) => isObjectKeyword(self) && property in self);
|
|
299
303
|
isTagged = /* @__PURE__ */ dual(2, (self, tag2) => hasProperty(self, "_tag") && self["_tag"] === tag2);
|
|
300
304
|
}
|
|
301
305
|
});
|
|
302
306
|
|
|
303
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
307
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Hash.js
|
|
304
308
|
var symbol, hash, random, mix, combine, optimize, isHash, float64, number, string, structureKeys, structure, unordered, array, hashMap, setSeed, hashSet, randomHashCache, hashCache, visitedObjects;
|
|
305
309
|
var init_Hash = __esm({
|
|
306
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
310
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Hash.js"() {
|
|
307
311
|
init_Function();
|
|
308
312
|
init_equal();
|
|
309
313
|
init_hash();
|
|
@@ -437,7 +441,7 @@ var init_Hash = __esm({
|
|
|
437
441
|
}
|
|
438
442
|
});
|
|
439
443
|
|
|
440
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
444
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Equal.js
|
|
441
445
|
function equals() {
|
|
442
446
|
if (arguments.length === 1) {
|
|
443
447
|
return (self) => compareBoth(self, arguments[0]);
|
|
@@ -594,7 +598,7 @@ function compareHashed(self, that, hashOf, equivalent) {
|
|
|
594
598
|
}
|
|
595
599
|
var symbol2, pathLeft, pathRight, results, entryHash, equalEntries, isEqual, asEquivalence;
|
|
596
600
|
var init_Equal = __esm({
|
|
597
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
601
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Equal.js"() {
|
|
598
602
|
init_Hash();
|
|
599
603
|
init_equal();
|
|
600
604
|
init_Predicate();
|
|
@@ -609,7 +613,7 @@ var init_Equal = __esm({
|
|
|
609
613
|
}
|
|
610
614
|
});
|
|
611
615
|
|
|
612
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
616
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Redactable.js
|
|
613
617
|
function redact(u2) {
|
|
614
618
|
if (isRedactable(u2)) return getRedacted(u2);
|
|
615
619
|
return u2;
|
|
@@ -619,7 +623,7 @@ function getRedacted(redactable) {
|
|
|
619
623
|
}
|
|
620
624
|
var symbolRedactable, isRedactable, currentFiberTypeId, emptyMap, emptyContext;
|
|
621
625
|
var init_Redactable = __esm({
|
|
622
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
626
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Redactable.js"() {
|
|
623
627
|
init_Pipeable();
|
|
624
628
|
init_Predicate();
|
|
625
629
|
symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Redactable");
|
|
@@ -638,7 +642,7 @@ var init_Redactable = __esm({
|
|
|
638
642
|
}
|
|
639
643
|
});
|
|
640
644
|
|
|
641
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
645
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Formatter.js
|
|
642
646
|
function format(input, options) {
|
|
643
647
|
const space = options?.space ?? 0;
|
|
644
648
|
const ancestors = /* @__PURE__ */ new WeakSet();
|
|
@@ -803,17 +807,17 @@ function isJsonPrimitiveWrapper(object) {
|
|
|
803
807
|
}
|
|
804
808
|
var CIRCULAR;
|
|
805
809
|
var init_Formatter = __esm({
|
|
806
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
810
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Formatter.js"() {
|
|
807
811
|
init_Predicate();
|
|
808
812
|
init_Redactable();
|
|
809
813
|
CIRCULAR = "[Circular]";
|
|
810
814
|
}
|
|
811
815
|
});
|
|
812
816
|
|
|
813
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
817
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Inspectable.js
|
|
814
818
|
var NodeInspectSymbol, toJson, toStringUnknown, BaseProto, Class2;
|
|
815
819
|
var init_Inspectable = __esm({
|
|
816
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
820
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Inspectable.js"() {
|
|
817
821
|
init_Formatter();
|
|
818
822
|
init_Predicate();
|
|
819
823
|
init_Redactable();
|
|
@@ -885,10 +889,10 @@ var init_Inspectable = __esm({
|
|
|
885
889
|
}
|
|
886
890
|
});
|
|
887
891
|
|
|
888
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
892
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/stackTraceLimit.js
|
|
889
893
|
var isStackTraceLimitWritable, canWriteStackTraceLimit, getStackTraceLimit, setStackTraceLimit;
|
|
890
894
|
var init_stackTraceLimit = __esm({
|
|
891
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
895
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/stackTraceLimit.js"() {
|
|
892
896
|
isStackTraceLimitWritable = () => {
|
|
893
897
|
const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
|
|
894
898
|
if (desc === void 0) {
|
|
@@ -906,10 +910,10 @@ var init_stackTraceLimit = __esm({
|
|
|
906
910
|
}
|
|
907
911
|
});
|
|
908
912
|
|
|
909
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
913
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Utils.js
|
|
910
914
|
var SingleShotGen, pickInternalCall, internalCall;
|
|
911
915
|
var init_Utils = __esm({
|
|
912
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
916
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Utils.js"() {
|
|
913
917
|
init_stackTraceLimit();
|
|
914
918
|
SingleShotGen = class {
|
|
915
919
|
constructor(self) {
|
|
@@ -964,7 +968,7 @@ var init_Utils = __esm({
|
|
|
964
968
|
}
|
|
965
969
|
});
|
|
966
970
|
|
|
967
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
971
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/record.js
|
|
968
972
|
function assignProperty(self, key, value3) {
|
|
969
973
|
if (key === "__proto__") {
|
|
970
974
|
Object.defineProperty(self, key, {
|
|
@@ -989,17 +993,17 @@ function assignProperties(self, source) {
|
|
|
989
993
|
}
|
|
990
994
|
}
|
|
991
995
|
var init_record = __esm({
|
|
992
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
996
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/record.js"() {
|
|
993
997
|
}
|
|
994
998
|
});
|
|
995
999
|
|
|
996
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
1000
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/core.js
|
|
997
1001
|
function defaultEvaluate(_fiber) {
|
|
998
1002
|
return exitDie(`Effect.evaluate: Not implemented`);
|
|
999
1003
|
}
|
|
1000
1004
|
var EffectTypeId, ExitTypeId, effectVariance, identifier, args, evaluate, contA, contE, contAll, Yield, PipeInspectableProto, EffectProto, isEffect, isExit, CauseTypeId, CauseReasonTypeId, isCause, CauseImpl, annotationsMap, ReasonBase, constEmptyAnnotations, Fail, causeFromReasons, dedupeReasons, causeCombine, causeAddInterrupts, causeEmpty, causeFail, Die, causeDie, causeAnnotate, isFailReason, isDieReason, isInterruptReason, makePrimitiveProto, makePrimitive, makeExit, exitSucceed, StackTraceKey, InterruptorStackTrace, exitFailCause, exitFail, exitDie, withFiber, YieldableError, Error2, TaggedError, DoneTypeId, isDone, DoneVoid, Done, doneVoid, done;
|
|
1001
1005
|
var init_core = __esm({
|
|
1002
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
1006
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/core.js"() {
|
|
1003
1007
|
init_Equal();
|
|
1004
1008
|
init_Formatter();
|
|
1005
1009
|
init_Function();
|
|
@@ -1386,10 +1390,10 @@ var init_core = __esm({
|
|
|
1386
1390
|
}
|
|
1387
1391
|
});
|
|
1388
1392
|
|
|
1389
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
1393
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Effectable.js
|
|
1390
1394
|
var Prototype2;
|
|
1391
1395
|
var init_Effectable = __esm({
|
|
1392
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
1396
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Effectable.js"() {
|
|
1393
1397
|
init_core();
|
|
1394
1398
|
Prototype2 = (options) => makePrimitiveProto({
|
|
1395
1399
|
op: options.label,
|
|
@@ -1398,7 +1402,7 @@ var init_Effectable = __esm({
|
|
|
1398
1402
|
}
|
|
1399
1403
|
});
|
|
1400
1404
|
|
|
1401
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
1405
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Equivalence.js
|
|
1402
1406
|
function Tuple(elements) {
|
|
1403
1407
|
return make((self, that) => {
|
|
1404
1408
|
if (self.length !== that.length) {
|
|
@@ -1423,17 +1427,17 @@ function Array_(item) {
|
|
|
1423
1427
|
}
|
|
1424
1428
|
var make, isStrictEquivalent, strictEqual;
|
|
1425
1429
|
var init_Equivalence = __esm({
|
|
1426
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
1430
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Equivalence.js"() {
|
|
1427
1431
|
make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
1428
1432
|
isStrictEquivalent = (x, y) => x === y;
|
|
1429
1433
|
strictEqual = () => isStrictEquivalent;
|
|
1430
1434
|
}
|
|
1431
1435
|
});
|
|
1432
1436
|
|
|
1433
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
1437
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/option.js
|
|
1434
1438
|
var TypeId, CommonProto, SomeProto, NoneHash, NoneProto, isOption, isNone, isSome, none, SomeImpl, some;
|
|
1435
1439
|
var init_option = __esm({
|
|
1436
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
1440
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/option.js"() {
|
|
1437
1441
|
init_Equal();
|
|
1438
1442
|
init_Formatter();
|
|
1439
1443
|
init_Hash();
|
|
@@ -1508,10 +1512,10 @@ var init_option = __esm({
|
|
|
1508
1512
|
}
|
|
1509
1513
|
});
|
|
1510
1514
|
|
|
1511
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
1515
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/result.js
|
|
1512
1516
|
var TypeId2, CommonProto2, SuccessProto, FailureProto, isResult, isFailure, isSuccess, FailureImpl, fail, SuccessImpl, succeed;
|
|
1513
1517
|
var init_result = __esm({
|
|
1514
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
1518
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/result.js"() {
|
|
1515
1519
|
init_Equal();
|
|
1516
1520
|
init_Formatter();
|
|
1517
1521
|
init_Hash();
|
|
@@ -1587,13 +1591,13 @@ var init_result = __esm({
|
|
|
1587
1591
|
}
|
|
1588
1592
|
});
|
|
1589
1593
|
|
|
1590
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
1594
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Order.js
|
|
1591
1595
|
function make2(compare) {
|
|
1592
1596
|
return (self, that) => self === that ? 0 : compare(self, that);
|
|
1593
1597
|
}
|
|
1594
1598
|
var String2, Number2, mapInput, isGreaterThan;
|
|
1595
1599
|
var init_Order = __esm({
|
|
1596
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
1600
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Order.js"() {
|
|
1597
1601
|
init_Function();
|
|
1598
1602
|
String2 = /* @__PURE__ */ make2((self, that) => self < that ? -1 : 1);
|
|
1599
1603
|
Number2 = /* @__PURE__ */ make2((self, that) => {
|
|
@@ -1607,10 +1611,10 @@ var init_Order = __esm({
|
|
|
1607
1611
|
}
|
|
1608
1612
|
});
|
|
1609
1613
|
|
|
1610
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
1614
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Option.js
|
|
1611
1615
|
var none2, some2, isNone2, isSome2, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, map, flatMap, exists;
|
|
1612
1616
|
var init_Option = __esm({
|
|
1613
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
1617
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Option.js"() {
|
|
1614
1618
|
init_Function();
|
|
1615
1619
|
init_option();
|
|
1616
1620
|
none2 = () => none;
|
|
@@ -1632,10 +1636,10 @@ var init_Option = __esm({
|
|
|
1632
1636
|
}
|
|
1633
1637
|
});
|
|
1634
1638
|
|
|
1635
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
1639
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Context.js
|
|
1636
1640
|
var ServiceTypeId, Service, ServiceProto, cacheKeys, ReferenceTypeId, TypeId3, FlattenAfterBaseHits, makeImpl, applyOverlays, flatten, withFlat, notFound, lookup, makeUnsafe, Proto, hasSameCache, isContext, isReference, empty, emptyContext2, make3, add, addUnsafe, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get, defaultValueCacheKey, getDefaultValue, serviceNotFoundError, getOption, merge, mergeAll, Reference;
|
|
1637
1641
|
var init_Context = __esm({
|
|
1638
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
1642
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Context.js"() {
|
|
1639
1643
|
init_Effectable();
|
|
1640
1644
|
init_Equal();
|
|
1641
1645
|
init_Function();
|
|
@@ -1849,10 +1853,10 @@ var init_Context = __esm({
|
|
|
1849
1853
|
}
|
|
1850
1854
|
});
|
|
1851
1855
|
|
|
1852
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
1856
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Duration.js
|
|
1853
1857
|
var TypeId4, bigint0, bigint1, bigint2, bigint10, bigint1e3, bigint1e6, bigint1e9, bigintNanosPerMinute, bigintNanosPerHour, bigintNanosPerDay, bigintNanosPerWeek, roundTiesAwayFromZero, roundMillisToNanos, fromNanosNumber, nanosToUnit, parseNanos, divideTiesAwayFromZero, fromMillisString, DURATION_REGEXP, fromInputUnsafe, isIntegerOrUnset, sumObjectNanos, invalid, zeroDurationValue, infinityDurationValue, negativeInfinityDurationValue, DurationProto, make4, isDuration, isFinite2, zero, infinity, negativeInfinity, nanos, millis, seconds, toMillis, toNanosUnsafe, match2, matchPair, Equivalence, equals2;
|
|
1854
1858
|
var init_Duration = __esm({
|
|
1855
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
1859
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Duration.js"() {
|
|
1856
1860
|
init_Equal();
|
|
1857
1861
|
init_Function();
|
|
1858
1862
|
init_Hash();
|
|
@@ -2154,26 +2158,26 @@ var init_Duration = __esm({
|
|
|
2154
2158
|
}
|
|
2155
2159
|
});
|
|
2156
2160
|
|
|
2157
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2161
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/array.js
|
|
2158
2162
|
var isArrayNonEmpty;
|
|
2159
2163
|
var init_array = __esm({
|
|
2160
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
2164
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/array.js"() {
|
|
2161
2165
|
isArrayNonEmpty = (self) => self.length > 0;
|
|
2162
2166
|
}
|
|
2163
2167
|
});
|
|
2164
2168
|
|
|
2165
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2169
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/count.js
|
|
2166
2170
|
var normalize;
|
|
2167
2171
|
var init_count = __esm({
|
|
2168
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
2172
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/count.js"() {
|
|
2169
2173
|
normalize = (n) => n > 0 ? Math.floor(n) : 0;
|
|
2170
2174
|
}
|
|
2171
2175
|
});
|
|
2172
2176
|
|
|
2173
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2177
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Result.js
|
|
2174
2178
|
var succeed2, fail2, try_, isFailure2, isSuccess2, getOrThrowWith, getOrThrow;
|
|
2175
2179
|
var init_Result = __esm({
|
|
2176
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
2180
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Result.js"() {
|
|
2177
2181
|
init_Function();
|
|
2178
2182
|
init_result();
|
|
2179
2183
|
init_Predicate();
|
|
@@ -2206,19 +2210,19 @@ var init_Result = __esm({
|
|
|
2206
2210
|
}
|
|
2207
2211
|
});
|
|
2208
2212
|
|
|
2209
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2213
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Tuple.js
|
|
2210
2214
|
var makeEquivalence;
|
|
2211
2215
|
var init_Tuple = __esm({
|
|
2212
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
2216
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Tuple.js"() {
|
|
2213
2217
|
init_Equivalence();
|
|
2214
2218
|
makeEquivalence = Tuple;
|
|
2215
2219
|
}
|
|
2216
2220
|
});
|
|
2217
2221
|
|
|
2218
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2222
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Iterable.js
|
|
2219
2223
|
var findFirst;
|
|
2220
2224
|
var init_Iterable = __esm({
|
|
2221
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
2225
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Iterable.js"() {
|
|
2222
2226
|
init_Function();
|
|
2223
2227
|
init_Option();
|
|
2224
2228
|
init_Predicate();
|
|
@@ -2242,10 +2246,10 @@ var init_Iterable = __esm({
|
|
|
2242
2246
|
}
|
|
2243
2247
|
});
|
|
2244
2248
|
|
|
2245
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2249
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Record.js
|
|
2246
2250
|
var has, map2, keys, isSubrecordBy, makeEquivalence2;
|
|
2247
2251
|
var init_Record = __esm({
|
|
2248
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
2252
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Record.js"() {
|
|
2249
2253
|
init_Function();
|
|
2250
2254
|
init_record();
|
|
2251
2255
|
has = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key));
|
|
@@ -2274,10 +2278,10 @@ var init_Record = __esm({
|
|
|
2274
2278
|
}
|
|
2275
2279
|
});
|
|
2276
2280
|
|
|
2277
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2281
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Array.js
|
|
2278
2282
|
var Array2, fromIterable, ensure, match4, append, isArrayNonEmpty2, isReadonlyArrayNonEmpty, findFirstIndex, findFirst2, findLast, sort, empty2, of, map3, reduce, makeEquivalence3;
|
|
2279
2283
|
var init_Array = __esm({
|
|
2280
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
2284
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Array.js"() {
|
|
2281
2285
|
init_Equivalence();
|
|
2282
2286
|
init_Function();
|
|
2283
2287
|
init_array();
|
|
@@ -2334,10 +2338,10 @@ var init_Array = __esm({
|
|
|
2334
2338
|
}
|
|
2335
2339
|
});
|
|
2336
2340
|
|
|
2337
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2341
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Scheduler.js
|
|
2338
2342
|
var Scheduler, setMicrotask, setTimer, setImmediate2, PriorityBuckets, MixedScheduler, MixedSchedulerDispatcher, MaxOpsBeforeYield, PreventSchedulerYield;
|
|
2339
2343
|
var init_Scheduler = __esm({
|
|
2340
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
2344
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Scheduler.js"() {
|
|
2341
2345
|
init_Context();
|
|
2342
2346
|
Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
|
|
2343
2347
|
fiberCached: true,
|
|
@@ -2484,7 +2488,7 @@ var init_Scheduler = __esm({
|
|
|
2484
2488
|
}
|
|
2485
2489
|
});
|
|
2486
2490
|
|
|
2487
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2491
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Data.js
|
|
2488
2492
|
function taggedMatch() {
|
|
2489
2493
|
if (arguments.length === 1) {
|
|
2490
2494
|
const cases2 = arguments[0];
|
|
@@ -2498,7 +2502,7 @@ function taggedMatch() {
|
|
|
2498
2502
|
}
|
|
2499
2503
|
var taggedEnum, Error3, TaggedError2;
|
|
2500
2504
|
var init_Data = __esm({
|
|
2501
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
2505
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Data.js"() {
|
|
2502
2506
|
init_core();
|
|
2503
2507
|
init_Predicate();
|
|
2504
2508
|
taggedEnum = () => new Proxy({}, {
|
|
@@ -2519,15 +2523,15 @@ var init_Data = __esm({
|
|
|
2519
2523
|
}
|
|
2520
2524
|
});
|
|
2521
2525
|
var init_EncodingError = __esm({
|
|
2522
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
2526
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/encoding/EncodingError.js"() {
|
|
2523
2527
|
init_Data();
|
|
2524
2528
|
}
|
|
2525
2529
|
});
|
|
2526
2530
|
|
|
2527
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2528
|
-
var random2, hexCharCodes, randomWord, random8, random16, random32;
|
|
2531
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/encoding/Hex.js
|
|
2532
|
+
var random2, hexCharCodes, randomWord, random8, random16, random32, hexCodes;
|
|
2529
2533
|
var init_Hex = __esm({
|
|
2530
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
2534
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/encoding/Hex.js"() {
|
|
2531
2535
|
random2 = (length) => {
|
|
2532
2536
|
switch (length) {
|
|
2533
2537
|
case 16:
|
|
@@ -2561,13 +2565,18 @@ var init_Hex = __esm({
|
|
|
2561
2565
|
const d = randomWord();
|
|
2562
2566
|
return String.fromCharCode(hexCharCodes[a >>> 28], hexCharCodes[a >>> 24 & 15], hexCharCodes[a >>> 20 & 15], hexCharCodes[a >>> 16 & 15], hexCharCodes[a >>> 12 & 15], hexCharCodes[a >>> 8 & 15], hexCharCodes[a >>> 4 & 15], hexCharCodes[a & 15], hexCharCodes[b2 >>> 28], hexCharCodes[b2 >>> 24 & 15], hexCharCodes[b2 >>> 20 & 15], hexCharCodes[b2 >>> 16 & 15], hexCharCodes[b2 >>> 12 & 15], hexCharCodes[b2 >>> 8 & 15], hexCharCodes[b2 >>> 4 & 15], hexCharCodes[b2 & 15], hexCharCodes[c >>> 28], hexCharCodes[c >>> 24 & 15], hexCharCodes[c >>> 20 & 15], hexCharCodes[c >>> 16 & 15], hexCharCodes[c >>> 12 & 15], hexCharCodes[c >>> 8 & 15], hexCharCodes[c >>> 4 & 15], hexCharCodes[c & 15], hexCharCodes[d >>> 28], hexCharCodes[d >>> 24 & 15], hexCharCodes[d >>> 20 & 15], hexCharCodes[d >>> 16 & 15], hexCharCodes[d >>> 12 & 15], hexCharCodes[d >>> 8 & 15], hexCharCodes[d >>> 4 & 15], hexCharCodes[d & 15]);
|
|
2563
2567
|
};
|
|
2568
|
+
hexCodes = /* @__PURE__ */ new Uint8Array(256).fill(255);
|
|
2569
|
+
for (let i = 0; i < 16; i++) {
|
|
2570
|
+
hexCodes[/* @__PURE__ */ "0123456789abcdef".charCodeAt(i)] = i;
|
|
2571
|
+
hexCodes[/* @__PURE__ */ "0123456789ABCDEF".charCodeAt(i)] = i;
|
|
2572
|
+
}
|
|
2564
2573
|
}
|
|
2565
2574
|
});
|
|
2566
2575
|
|
|
2567
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2576
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Tracer.js
|
|
2568
2577
|
var ParentSpanKey, ParentSpan, make5, DisablePropagation, CurrentTraceLevel, MinimumTraceLevel, TracerKey, nativeTracer, NativeSpan;
|
|
2569
2578
|
var init_Tracer = __esm({
|
|
2570
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
2579
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Tracer.js"() {
|
|
2571
2580
|
init_Context();
|
|
2572
2581
|
init_Hex();
|
|
2573
2582
|
init_Function();
|
|
@@ -2655,18 +2664,18 @@ var init_Tracer = __esm({
|
|
|
2655
2664
|
}
|
|
2656
2665
|
});
|
|
2657
2666
|
|
|
2658
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2667
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/metric.js
|
|
2659
2668
|
var FiberRuntimeMetricsKey;
|
|
2660
2669
|
var init_metric = __esm({
|
|
2661
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
2670
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/metric.js"() {
|
|
2662
2671
|
FiberRuntimeMetricsKey = "effect/Metric/FiberRuntimeMetrics";
|
|
2663
2672
|
}
|
|
2664
2673
|
});
|
|
2665
2674
|
|
|
2666
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2675
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/references.js
|
|
2667
2676
|
var CurrentStackFrame, TracerEnabled, TracerTimingEnabled, TracerSpanAnnotations, TracerSpanLinks, CurrentLogAnnotations, CurrentLogLevel, MinimumLogLevel, UnhandledLogLevel, CurrentLogSpans;
|
|
2668
2677
|
var init_references = __esm({
|
|
2669
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
2678
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/references.js"() {
|
|
2670
2679
|
init_Context();
|
|
2671
2680
|
init_Function();
|
|
2672
2681
|
CurrentStackFrame = /* @__PURE__ */ Reference("effect/References/CurrentStackFrame", {
|
|
@@ -2706,10 +2715,10 @@ var init_references = __esm({
|
|
|
2706
2715
|
}
|
|
2707
2716
|
});
|
|
2708
2717
|
|
|
2709
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2718
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/tracer.js
|
|
2710
2719
|
var addSpanStackTrace, makeStackCleaner, spanCleaner;
|
|
2711
2720
|
var init_tracer = __esm({
|
|
2712
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
2721
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/tracer.js"() {
|
|
2713
2722
|
init_stackTraceLimit();
|
|
2714
2723
|
addSpanStackTrace = (options) => {
|
|
2715
2724
|
if (options?.captureStackTrace === false) {
|
|
@@ -2749,13 +2758,13 @@ var init_tracer = __esm({
|
|
|
2749
2758
|
}
|
|
2750
2759
|
});
|
|
2751
2760
|
|
|
2752
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
2761
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/effect.js
|
|
2753
2762
|
function interruptChildrenPatch() {
|
|
2754
2763
|
fiberMiddleware.interruptChildren ??= fiberInterruptChildren;
|
|
2755
2764
|
}
|
|
2756
|
-
var Interrupt, causeInterrupt, hasFails, findError, hasDies, causeElectDefects, findRecoverableError, hasInterrupts, causeFilterInterruptors, hasInterruptsOnly, causeMap, causeSquash, causePrettyErrors, causePrettyError, causePrettyMessage, locationRegExp, cleanErrorStack, addStackAnnotations, interruptCauseStack, currentStackTrace, causePretty, renderPrettyError, renderErrorCause, FiberTypeId, fiberVariance, fiberIdStore, AsyncResource, captureAsyncContext, getCurrentFiber, FiberImpl, makeFiberContextCache, deferredInterruptCont, maxInlineSteps, fiberMiddleware, fiberStackAnnotations, fiberInterruptChildren, fiberAwait, fiberAwaitAll, fiberJoin, fiberInterrupt, fiberInterruptAs, fiberInterruptAll, succeed3, failCause, fail3, sync, suspend, yieldNowWith, yieldNow, failCauseSync, die, failSync, void_, try_2, promise, tryPromise, callbackOptions, asyncFinalizer, callback, never, gen, fnBody, fnUntraced, defineFunctionLength, fnStackCleaner, fn, makeFn, fnUntracedEager, fromIteratorEagerUnsafe, fromIteratorUnsafe, as, evaluateCont, OnSuccessProto, ContImpl, returnPayload, succeedPayload, continuationMarksStack, mapCont, andThenCont, tapCont, tapEffectCont, andThen, tap, asVoid, raceAllFirst, raceFirst, flatMap2, effectIsExit, flatMapEager, map4, mapEager, exitInterrupt, exitIsSuccess, exitIsFailure, exitFilterCause, exitHasInterrupts, exitVoid, exitMap, exitZipRight, exitAsVoidAll, serviceOption, updateContext, updateService, context, getContext, contextWith, provideContext, provideService, provideServiceImpl, zipWith, forever, catchCause, OnFailureProto, OnFailureImpl, catchCauseFilter, catch_, tapCause, tapCauseFilter, tapError, catchIf, catchFilter, catchTag, catchTags, catchReason, mapError, orDie, ignoreCauseLogger, ignore, ignoreCause, result, matchCauseEffect, OnSuccessAndFailureProto, OnSuccessAndFailureImpl, matchSuccess, makeMatch, MatchImpl, matchEffect, match5, matchEager, exit, exitPrimitive, ScopeTypeId, ScopeCloseableTypeId, scopeTag, scopeClose, scopeCloseUnsafe, runFinalizer, combineFinalizerCause, scopeCloseFinalizers, scopeForkUnsafe, scopeAddFinalizerExit, scopeAddFinalizer, scopeAddFinalizerUnsafe, scopeRemoveFinalizerUnsafe, scopeMakeUnsafe, makeScope, constScopeEmpty, scope, provideScope, scoped, scopedWith, acquireRelease, addFinalizer, OnExitImpl, onExitPrimitive, onExitUnsafe, onExit, ensuring, onExitFilter, onError, onErrorFilter, onInterrupt, infiniteTTL, makeCachedUnsafe, cached, interrupt, uninterruptible, setInterruptible, setInterruptibleTrue, setInterruptibleFalse, setFiberInterruptible, fiberEnterUninterruptibleUnsafe, interruptible, uninterruptibleMask, all, whileLoop, forEach, forEachSequential, resolveConcurrency, iterateEager, iterateConcurrentImpl, iterateConcurrent, forEachConcurrent, forkChild, forkUnsafe, fiberScopeFinalizer, forkIn, forkScoped, runForkWith, fiberRunIn, runFork, runPromiseExitWith, runPromiseWith, runPromise, runSyncExitWith, runSyncExit, runSyncWith, runSync, succeedTrue, succeedFalse, Latch, makeLatchUnsafe, bigint02, NoopSpanProto, noopSpan, filterDisablePropagation, makeSpanUnsafe, provideSpanStackFrame, endSpan, useSpan, provideParentSpan, withParentSpan, ClockRef, MAX_TIMER_MILLIS, ClockImpl, nanosPerMilli, monotonicNowNanos, wallTimeNanos, clockWith, sleep, AsyncFiberErrorTypeId, AsyncFiberError, UnknownErrorTypeId, UnknownError, ConsoleRef, logLevelToOrder, LogLevelOrder, isLogLevelGreaterThan, CurrentLoggers, LogToStderr, LoggerTypeId, LoggerProto, loggerMake, formatLabel, formatLogSpan, logWithLevel, defaultDateFormat, defaultLogger, tracerLogger;
|
|
2765
|
+
var Interrupt, causeInterrupt, hasFails, findError, hasDies, causeElectDefects, findRecoverableError, hasInterrupts, causeFilterInterruptors, hasInterruptsOnly, reasonAnnotations, causeMap, causeSquash, causePrettyErrors, causePrettyError, causePrettyMessage, locationRegExp, cleanErrorStack, addStackAnnotations, interruptCauseStack, currentStackTrace, causePretty, renderPrettyError, renderErrorCause, FiberTypeId, fiberVariance, fiberIdStore, AsyncResource, captureAsyncContext, getCurrentFiber, FiberImpl, makeFiberContextCache, deferredInterruptCont, maxInlineSteps, fiberMiddleware, fiberStackAnnotations, fiberInterruptChildren, fiberAwait, fiberAwaitAll, fiberJoin, fiberInterrupt, fiberInterruptAs, fiberInterruptAll, succeed3, failCause, fail3, sync, suspend, yieldNowWith, yieldNow, failCauseSync, die, failSync, void_, try_2, promise, tryPromise, callbackOptions, asyncFinalizer, callback, never, gen, fnBody, fnUntraced, defineFunctionLength, fnStackCleaner, fn, makeFn, fnUntracedEager, fromIteratorEagerUnsafe, fromIteratorUnsafe, as, evaluateCont, OnSuccessProto, ContImpl, returnPayload, succeedPayload, continuationMarksStack, mapCont, andThenCont, tapCont, tapEffectCont, andThen, tap, asVoid, raceAllFirst, interruptRaceLosers, raceFirst, flatMap2, effectIsExit, flatMapEager, map4, mapEager, exitInterrupt, exitIsSuccess, exitIsFailure, exitFilterCause, exitHasInterrupts, exitVoid, exitMap, exitZipRight, exitAsVoidAll, serviceOption, updateContext, updateService, context, getContext, contextWith, provideContext, provideService, provideServiceImpl, zipWith, forever, catchCause, OnFailureProto, OnFailureImpl, catchCauseFilter, catch_, tapCause, tapCauseFilter, tapError, catchIf, catchFilter, catchTag, catchTags, catchReason, mapError, orDie, ignoreCauseLogger, ignore, ignoreCause, result, matchCauseEffect, OnSuccessAndFailureProto, OnSuccessAndFailureImpl, matchSuccess, makeMatch, MatchImpl, matchEffect, match5, matchEager, exit, exitPrimitive, ScopeTypeId, ScopeCloseableTypeId, scopeTag, scopeClose, scopeCloseUnsafe, runFinalizer, combineFinalizerCause, scopeCloseFinalizers, scopeForkUnsafe, scopeAddFinalizerExit, scopeAddFinalizer, scopeAddFinalizerUnsafe, scopeRemoveFinalizerUnsafe, scopeMakeUnsafe, makeScope, constScopeEmpty, scope, provideScope, scoped, scopedWith, acquireRelease, addFinalizer, OnExitImpl, onExitPrimitive, onExitUnsafe, onExit, ensuring, onExitFilter, onError, onErrorFilter, onInterrupt, infiniteTTL, makeCachedUnsafe, cached, interrupt, uninterruptible, setInterruptible, setInterruptibleTrue, setInterruptibleFalse, setFiberInterruptible, fiberEnterUninterruptibleUnsafe, interruptible, uninterruptibleMask, all, whileLoop, forEach, forEachSequential, resolveConcurrency, iterateEager, iterateConcurrentImpl, iterateConcurrent, forEachConcurrent, forkChild, forkUnsafe, fiberScopeFinalizer, forkIn, forkScoped, runForkWith, fiberRunIn, runFork, runPromiseExitWith, runPromiseWith, runPromise, runSyncExitWith, runSyncExit, runSyncWith, runSync, succeedTrue, succeedFalse, Latch, makeLatchUnsafe, bigint02, NoopSpanProto, noopSpan, filterDisablePropagation, makeSpanUnsafe, provideSpanStackFrame, endSpan, useSpan, provideParentSpan, withParentSpan, ClockRef, MAX_TIMER_MILLIS, ClockImpl, nanosPerMilli, monotonicNowNanos, wallTimeNanos, clockWith, sleep, AsyncFiberErrorTypeId, AsyncFiberError, UnknownErrorTypeId, UnknownError, ConsoleRef, logLevelToOrder, LogLevelOrder, isLogLevelGreaterThan, CurrentLoggers, LogToStderr, LoggerTypeId, LoggerProto, loggerMake, formatLabel, formatLogSpan, logWithLevel, defaultDateFormat, defaultLogger, tracerLogger;
|
|
2757
2766
|
var init_effect = __esm({
|
|
2758
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
2767
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/effect.js"() {
|
|
2759
2768
|
init_Array();
|
|
2760
2769
|
init_Context();
|
|
2761
2770
|
init_Duration();
|
|
@@ -2828,6 +2837,7 @@ var init_effect = __esm({
|
|
|
2828
2837
|
return interruptors ? succeed2(interruptors) : fail2(self);
|
|
2829
2838
|
};
|
|
2830
2839
|
hasInterruptsOnly = (self) => self.reasons.length > 0 && self.reasons.every(isInterruptReason);
|
|
2840
|
+
reasonAnnotations = (self) => makeUnsafe(self.annotations);
|
|
2831
2841
|
causeMap = /* @__PURE__ */ dual(2, (self, f2) => {
|
|
2832
2842
|
let hasFail = false;
|
|
2833
2843
|
const failures = self.reasons.map((failure) => {
|
|
@@ -3025,6 +3035,7 @@ ${prefix}}`;
|
|
|
3025
3035
|
this._children = void 0;
|
|
3026
3036
|
this._interruptedCause = void 0;
|
|
3027
3037
|
this._yielded = void 0;
|
|
3038
|
+
this._autoYielded = false;
|
|
3028
3039
|
this._running = false;
|
|
3029
3040
|
this._deferredInterrupt = false;
|
|
3030
3041
|
this._parent = void 0;
|
|
@@ -3138,8 +3149,10 @@ ${prefix}}`;
|
|
|
3138
3149
|
const prevRunning = this._running;
|
|
3139
3150
|
this._running = true;
|
|
3140
3151
|
let yielding = false;
|
|
3152
|
+
let resuming = this._autoYielded;
|
|
3153
|
+
this._autoYielded = false;
|
|
3141
3154
|
let current = effect2;
|
|
3142
|
-
this.currentOpCount = 0;
|
|
3155
|
+
this.currentOpCount = resuming ? 1 : 0;
|
|
3143
3156
|
try {
|
|
3144
3157
|
while (true) {
|
|
3145
3158
|
try {
|
|
@@ -3149,12 +3162,13 @@ ${prefix}}`;
|
|
|
3149
3162
|
}
|
|
3150
3163
|
this.currentOpCount++;
|
|
3151
3164
|
const cache2 = this.cache;
|
|
3152
|
-
if (!yielding && !cache2.preventYield && cache2.scheduler.shouldYield(this)) {
|
|
3165
|
+
if (!resuming && !yielding && !cache2.preventYield && cache2.scheduler.shouldYield(this)) {
|
|
3153
3166
|
yielding = true;
|
|
3154
|
-
|
|
3155
|
-
|
|
3167
|
+
current = this.yieldNow(current, 0, true);
|
|
3168
|
+
} else {
|
|
3169
|
+
resuming = false;
|
|
3170
|
+
current = cache2.tracerContext ? cache2.tracerContext(current, this) : current[evaluate](this);
|
|
3156
3171
|
}
|
|
3157
|
-
current = cache2.tracerContext ? cache2.tracerContext(current, this) : current[evaluate](this);
|
|
3158
3172
|
if (current === Yield) {
|
|
3159
3173
|
const yielded = this._yielded;
|
|
3160
3174
|
if (ExitTypeId in yielded) {
|
|
@@ -3214,6 +3228,17 @@ ${prefix}}`;
|
|
|
3214
3228
|
this._yielded = value3;
|
|
3215
3229
|
return Yield;
|
|
3216
3230
|
}
|
|
3231
|
+
yieldNow(effect2, priority = 0, automatic = false) {
|
|
3232
|
+
let resumed = false;
|
|
3233
|
+
this.currentDispatcher.scheduleTask(() => {
|
|
3234
|
+
if (resumed) return;
|
|
3235
|
+
this._autoYielded = automatic;
|
|
3236
|
+
this.evaluate(effect2);
|
|
3237
|
+
}, priority);
|
|
3238
|
+
return this.yieldWith(() => {
|
|
3239
|
+
resumed = true;
|
|
3240
|
+
});
|
|
3241
|
+
}
|
|
3217
3242
|
children() {
|
|
3218
3243
|
return this._children ??= /* @__PURE__ */ new Set();
|
|
3219
3244
|
}
|
|
@@ -3353,14 +3378,7 @@ ${prefix}}`;
|
|
|
3353
3378
|
yieldNowWith = /* @__PURE__ */ makePrimitive({
|
|
3354
3379
|
op: "Yield",
|
|
3355
3380
|
[evaluate](fiber2) {
|
|
3356
|
-
|
|
3357
|
-
fiber2.currentDispatcher.scheduleTask(() => {
|
|
3358
|
-
if (resumed) return;
|
|
3359
|
-
fiber2.evaluate(exitVoid);
|
|
3360
|
-
}, this[args] ?? 0);
|
|
3361
|
-
return fiber2.yieldWith(() => {
|
|
3362
|
-
resumed = true;
|
|
3363
|
-
});
|
|
3381
|
+
return fiber2.yieldNow(exitVoid, this[args] ?? 0);
|
|
3364
3382
|
}
|
|
3365
3383
|
});
|
|
3366
3384
|
yieldNow = /* @__PURE__ */ yieldNowWith(0);
|
|
@@ -3674,8 +3692,9 @@ ${prefix}}`;
|
|
|
3674
3692
|
const isWinner = !done4;
|
|
3675
3693
|
done4 = true;
|
|
3676
3694
|
resume(exit3);
|
|
3677
|
-
if (isWinner
|
|
3678
|
-
|
|
3695
|
+
if (isWinner) {
|
|
3696
|
+
interruptRaceLosers(fibers, parent);
|
|
3697
|
+
options?.onWinner?.({
|
|
3679
3698
|
fiber: fiber2,
|
|
3680
3699
|
index,
|
|
3681
3700
|
parentFiber: parent
|
|
@@ -3685,6 +3704,12 @@ ${prefix}}`;
|
|
|
3685
3704
|
}
|
|
3686
3705
|
});
|
|
3687
3706
|
});
|
|
3707
|
+
interruptRaceLosers = (fibers, parent) => {
|
|
3708
|
+
const annotations = fiberStackAnnotations(parent);
|
|
3709
|
+
for (const fiber2 of fibers) {
|
|
3710
|
+
fiber2.interruptUnsafe(parent.id, annotations);
|
|
3711
|
+
}
|
|
3712
|
+
};
|
|
3688
3713
|
raceFirst = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, options) => raceAllFirst([self, that], options));
|
|
3689
3714
|
flatMap2 = /* @__PURE__ */ dual(2, (self, f2) => new ContImpl(self, andThenCont, f2));
|
|
3690
3715
|
effectIsExit = (effect2) => effect2[ExitTypeId] !== void 0;
|
|
@@ -4918,10 +4943,10 @@ ${prefix}}`;
|
|
|
4918
4943
|
}
|
|
4919
4944
|
});
|
|
4920
4945
|
|
|
4921
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
4946
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Exit.js
|
|
4922
4947
|
var succeed4, failCause2, fail4, void_2, isSuccess3, isFailure3;
|
|
4923
4948
|
var init_Exit = __esm({
|
|
4924
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
4949
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Exit.js"() {
|
|
4925
4950
|
init_core();
|
|
4926
4951
|
init_effect();
|
|
4927
4952
|
succeed4 = exitSucceed;
|
|
@@ -4933,10 +4958,10 @@ var init_Exit = __esm({
|
|
|
4933
4958
|
}
|
|
4934
4959
|
});
|
|
4935
4960
|
|
|
4936
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
4961
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Deferred.js
|
|
4937
4962
|
var TypeId5, DeferredProto, DeferredImpl, makeUnsafe2, _await, completeWith, done2, fail5, isDone2, isDoneUnsafe, doneUnsafe;
|
|
4938
4963
|
var init_Deferred = __esm({
|
|
4939
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
4964
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Deferred.js"() {
|
|
4940
4965
|
init_Function();
|
|
4941
4966
|
init_core();
|
|
4942
4967
|
init_effect();
|
|
@@ -4988,20 +5013,20 @@ var init_Deferred = __esm({
|
|
|
4988
5013
|
}
|
|
4989
5014
|
});
|
|
4990
5015
|
|
|
4991
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5016
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/References.js
|
|
4992
5017
|
var MinimumLogLevel2, TracerTimingEnabled2;
|
|
4993
5018
|
var init_References = __esm({
|
|
4994
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5019
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/References.js"() {
|
|
4995
5020
|
init_references();
|
|
4996
5021
|
MinimumLogLevel2 = MinimumLogLevel;
|
|
4997
5022
|
TracerTimingEnabled2 = TracerTimingEnabled;
|
|
4998
5023
|
}
|
|
4999
5024
|
});
|
|
5000
5025
|
|
|
5001
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5026
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Scope.js
|
|
5002
5027
|
var Scope, makeUnsafe3, provide, addFinalizerExit, addFinalizer2, forkUnsafe2, close;
|
|
5003
5028
|
var init_Scope = __esm({
|
|
5004
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5029
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Scope.js"() {
|
|
5005
5030
|
init_effect();
|
|
5006
5031
|
Scope = scopeTag;
|
|
5007
5032
|
makeUnsafe3 = scopeMakeUnsafe;
|
|
@@ -5013,10 +5038,10 @@ var init_Scope = __esm({
|
|
|
5013
5038
|
}
|
|
5014
5039
|
});
|
|
5015
5040
|
|
|
5016
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5041
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Layer.js
|
|
5017
5042
|
var TypeId6, MemoMapTypeId, makeMemoMapEntry, memoMapObserve, LayerProto, fromBuildUnsafe, fromBuild, fromBuildMemo, MemoMapImpl, makeMemoMapUnsafe, forkMemoMapUnsafe, CurrentMemoMap, buildWithMemoMap, buildWithScope, succeed5, succeedContext, effect, effectImpl, effectContext, mergeAllEffect, mergeAll2, provideWith, provideMerge;
|
|
5018
5043
|
var init_Layer = __esm({
|
|
5019
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5044
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Layer.js"() {
|
|
5020
5045
|
init_Context();
|
|
5021
5046
|
init_Deferred();
|
|
5022
5047
|
init_Function();
|
|
@@ -5139,10 +5164,10 @@ var init_Layer = __esm({
|
|
|
5139
5164
|
}
|
|
5140
5165
|
});
|
|
5141
5166
|
|
|
5142
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5143
|
-
var isCause2, isFailReason2, fromReasons, fail6, die2, hasInterruptsOnly2, map5, squash, hasInterrupts2, isDone3, Done2, done3, UnknownError2;
|
|
5167
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Cause.js
|
|
5168
|
+
var isCause2, isFailReason2, fromReasons, fail6, die2, hasInterruptsOnly2, map5, squash, hasInterrupts2, isDone3, Done2, done3, UnknownError2, reasonAnnotations2;
|
|
5144
5169
|
var init_Cause = __esm({
|
|
5145
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5170
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Cause.js"() {
|
|
5146
5171
|
init_core();
|
|
5147
5172
|
init_effect();
|
|
5148
5173
|
isCause2 = isCause;
|
|
@@ -5158,22 +5183,23 @@ var init_Cause = __esm({
|
|
|
5158
5183
|
Done2 = Done;
|
|
5159
5184
|
done3 = done;
|
|
5160
5185
|
UnknownError2 = UnknownError;
|
|
5186
|
+
reasonAnnotations2 = reasonAnnotations;
|
|
5161
5187
|
}
|
|
5162
5188
|
});
|
|
5163
5189
|
|
|
5164
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5190
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Clock.js
|
|
5165
5191
|
var Clock;
|
|
5166
5192
|
var init_Clock = __esm({
|
|
5167
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5193
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Clock.js"() {
|
|
5168
5194
|
init_effect();
|
|
5169
5195
|
Clock = ClockRef;
|
|
5170
5196
|
}
|
|
5171
5197
|
});
|
|
5172
5198
|
|
|
5173
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5199
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Number.js
|
|
5174
5200
|
var round;
|
|
5175
5201
|
var init_Number = __esm({
|
|
5176
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5202
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Number.js"() {
|
|
5177
5203
|
init_Function();
|
|
5178
5204
|
round = /* @__PURE__ */ dual(2, (self, precision) => {
|
|
5179
5205
|
const factor = Math.pow(10, precision);
|
|
@@ -5182,10 +5208,10 @@ var init_Number = __esm({
|
|
|
5182
5208
|
}
|
|
5183
5209
|
});
|
|
5184
5210
|
|
|
5185
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5211
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Pull.js
|
|
5186
5212
|
var catchDone, isDoneCause, isDoneFailure, filterDone, filterDoneLeftover, doneExitFromCause, matchEffect2;
|
|
5187
5213
|
var init_Pull = __esm({
|
|
5188
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5214
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Pull.js"() {
|
|
5189
5215
|
init_Cause();
|
|
5190
5216
|
init_Exit();
|
|
5191
5217
|
init_Function();
|
|
@@ -5225,10 +5251,10 @@ var init_Pull = __esm({
|
|
|
5225
5251
|
}
|
|
5226
5252
|
});
|
|
5227
5253
|
|
|
5228
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5254
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/layer.js
|
|
5229
5255
|
var provideLayer, provide2;
|
|
5230
5256
|
var init_layer = __esm({
|
|
5231
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5257
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/layer.js"() {
|
|
5232
5258
|
init_Context();
|
|
5233
5259
|
init_Function();
|
|
5234
5260
|
init_Layer();
|
|
@@ -5239,10 +5265,10 @@ var init_layer = __esm({
|
|
|
5239
5265
|
}
|
|
5240
5266
|
});
|
|
5241
5267
|
|
|
5242
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5268
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Effect.js
|
|
5243
5269
|
var isEffect2, all2, forEach2, whileLoop2, promise2, tryPromise2, succeed6, suspend2, sync2, void_3, callback2, never2, gen2, fail7, failSync2, failCause3, failCauseSync2, die3, try_3, withFiber2, flatMap3, andThen2, tap2, exit2, map6, as2, asVoid2, zipWith2, catch_2, catchTag2, catchTags2, catchReason2, catchCause2, catchIf2, catchFilter2, mapError2, orDie2, tapError2, tapCause2, ignore2, ignoreCause2, sleep2, raceFirst2, match6, matchCauseEffect2, matchEffect3, context2, contextWith2, provide3, provideContext2, serviceOption2, updateContext2, provideService2, scope2, scoped2, scopedWith2, acquireRelease2, addFinalizer3, ensuring2, onError2, onExitPrimitive2, onExit2, cached2, interrupt2, onInterrupt2, uninterruptible2, uninterruptibleMask2, forever2, useSpan2, withParentSpan2, forkChild2, forkIn2, forkScoped2, runFork2, runForkWith2, runPromise2, runSync2, runSyncExit2, fnUntraced2, fn2, logError, logInfo, effectify, mapEager2, flatMapEager2, fnUntracedEager2;
|
|
5244
5270
|
var init_Effect = __esm({
|
|
5245
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5271
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Effect.js"() {
|
|
5246
5272
|
init_core();
|
|
5247
5273
|
init_effect();
|
|
5248
5274
|
init_layer();
|
|
@@ -5354,10 +5380,10 @@ var init_Effect = __esm({
|
|
|
5354
5380
|
}
|
|
5355
5381
|
});
|
|
5356
5382
|
|
|
5357
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5383
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/BigInt.js
|
|
5358
5384
|
var BigInt2, toNumber;
|
|
5359
5385
|
var init_BigInt = __esm({
|
|
5360
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5386
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/BigInt.js"() {
|
|
5361
5387
|
init_Option();
|
|
5362
5388
|
BigInt2 = globalThis.BigInt;
|
|
5363
5389
|
toNumber = (b2) => {
|
|
@@ -5369,10 +5395,10 @@ var init_BigInt = __esm({
|
|
|
5369
5395
|
}
|
|
5370
5396
|
});
|
|
5371
5397
|
|
|
5372
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5398
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/ByteSize.js
|
|
5373
5399
|
var bigint03, bigint12, decimalBase, binaryBase, decimalUnits, binaryUnits, allUnits, unitsByName, make6, invalid2, fromNumber, scaleDecimal, fromStringUnsafe, fromInputUnsafe2, bytes;
|
|
5374
5400
|
var init_ByteSize = __esm({
|
|
5375
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5401
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/ByteSize.js"() {
|
|
5376
5402
|
bigint03 = /* @__PURE__ */ BigInt(0);
|
|
5377
5403
|
bigint12 = /* @__PURE__ */ BigInt(1);
|
|
5378
5404
|
decimalBase = /* @__PURE__ */ BigInt(1e3);
|
|
@@ -5502,10 +5528,10 @@ var init_ByteSize = __esm({
|
|
|
5502
5528
|
}
|
|
5503
5529
|
});
|
|
5504
5530
|
|
|
5505
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5531
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Fiber.js
|
|
5506
5532
|
var join, interrupt3, getCurrent, runIn;
|
|
5507
5533
|
var init_Fiber = __esm({
|
|
5508
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5534
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Fiber.js"() {
|
|
5509
5535
|
init_effect();
|
|
5510
5536
|
join = fiberJoin;
|
|
5511
5537
|
interrupt3 = fiberInterrupt;
|
|
@@ -5514,19 +5540,19 @@ var init_Fiber = __esm({
|
|
|
5514
5540
|
}
|
|
5515
5541
|
});
|
|
5516
5542
|
|
|
5517
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5543
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Latch.js
|
|
5518
5544
|
var makeUnsafe4;
|
|
5519
5545
|
var init_Latch = __esm({
|
|
5520
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5546
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Latch.js"() {
|
|
5521
5547
|
init_effect();
|
|
5522
5548
|
makeUnsafe4 = makeLatchUnsafe;
|
|
5523
5549
|
}
|
|
5524
5550
|
});
|
|
5525
5551
|
|
|
5526
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5552
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/MutableRef.js
|
|
5527
5553
|
var TypeId8, MutableRefProto, make8;
|
|
5528
5554
|
var init_MutableRef = __esm({
|
|
5529
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5555
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/MutableRef.js"() {
|
|
5530
5556
|
init_Inspectable();
|
|
5531
5557
|
init_core();
|
|
5532
5558
|
TypeId8 = "~effect/MutableRef";
|
|
@@ -5548,10 +5574,10 @@ var init_MutableRef = __esm({
|
|
|
5548
5574
|
}
|
|
5549
5575
|
});
|
|
5550
5576
|
|
|
5551
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5552
|
-
var Empty, make9, compactHead, emptyBucket, append2, clear, takeN, take;
|
|
5577
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/MutableList.js
|
|
5578
|
+
var Empty, make9, compactHead, emptyBucket, append2, clear, takeN, takeNVoid, take;
|
|
5553
5579
|
var init_MutableList = __esm({
|
|
5554
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5580
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/MutableList.js"() {
|
|
5555
5581
|
init_count();
|
|
5556
5582
|
Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
5557
5583
|
make9 = () => ({
|
|
@@ -5620,6 +5646,31 @@ var init_MutableList = __esm({
|
|
|
5620
5646
|
clear(self);
|
|
5621
5647
|
return array2;
|
|
5622
5648
|
};
|
|
5649
|
+
takeNVoid = (self, n) => {
|
|
5650
|
+
n = normalize(n);
|
|
5651
|
+
if (n <= 0 || !self.head) return;
|
|
5652
|
+
n = Math.min(n, self.length);
|
|
5653
|
+
if (n === self.length && self.head?.offset === 0 && !self.head.next) {
|
|
5654
|
+
clear(self);
|
|
5655
|
+
return;
|
|
5656
|
+
}
|
|
5657
|
+
let count = 0;
|
|
5658
|
+
let chunk = self.head;
|
|
5659
|
+
while (chunk) {
|
|
5660
|
+
const size = chunk.array.length - chunk.offset;
|
|
5661
|
+
if (count + size > n) {
|
|
5662
|
+
chunk.offset += n - count;
|
|
5663
|
+
self.head = chunk;
|
|
5664
|
+
self.length -= n;
|
|
5665
|
+
compactHead(self);
|
|
5666
|
+
return;
|
|
5667
|
+
}
|
|
5668
|
+
count += size;
|
|
5669
|
+
chunk = chunk.next;
|
|
5670
|
+
}
|
|
5671
|
+
clear(self);
|
|
5672
|
+
return;
|
|
5673
|
+
};
|
|
5623
5674
|
take = (self) => {
|
|
5624
5675
|
if (!self.head) return Empty;
|
|
5625
5676
|
const message = self.head.array[self.head.offset];
|
|
@@ -5640,10 +5691,10 @@ var init_MutableList = __esm({
|
|
|
5640
5691
|
}
|
|
5641
5692
|
});
|
|
5642
5693
|
|
|
5643
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5694
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Queue.js
|
|
5644
5695
|
var TypeId9, EnqueueTypeId, DequeueTypeId, variance, QueueProto, make10, bounded, sliding, offer, offerUnsafe, failCause4, failCauseUnsafe, endUnsafe, shutdown, shutdownUnsafe, takeAll2, takeBetween, take2, poll, takeUnsafe, sizeUnsafe, exitFalse, exitTrue, exitFailDone, exitInterrupt2, releaseTakers, scheduleReleaseTaker, takeBetweenUnsafe, suspendTake, canTake, awaitTake, offerOrWait, waitToOffer, resumeUnoffered, takeOfferUnsafe, releaseCapacity, finalize;
|
|
5645
5696
|
var init_Queue = __esm({
|
|
5646
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5697
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Queue.js"() {
|
|
5647
5698
|
init_Function();
|
|
5648
5699
|
init_core();
|
|
5649
5700
|
init_core();
|
|
@@ -5699,14 +5750,19 @@ var init_Queue = __esm({
|
|
|
5699
5750
|
if (self.state._tag !== "Open") {
|
|
5700
5751
|
return false;
|
|
5701
5752
|
} else if (self.messages.length >= self.capacity) {
|
|
5702
|
-
if (self.strategy === "sliding") {
|
|
5703
|
-
take(self.messages);
|
|
5704
|
-
append2(self.messages, message);
|
|
5705
|
-
return true;
|
|
5706
|
-
} else if (self.capacity <= 0 && self.state.takers.size > 0) {
|
|
5753
|
+
if (self.capacity <= 0 && self.state.takers.size > (self.strategy === "sliding" ? 0 : self.messages.length)) {
|
|
5707
5754
|
append2(self.messages, message);
|
|
5755
|
+
if (self.strategy === "sliding") {
|
|
5756
|
+
takeNVoid(self.messages, self.messages.length - self.state.takers.size);
|
|
5757
|
+
}
|
|
5708
5758
|
releaseTakers(self);
|
|
5709
5759
|
return true;
|
|
5760
|
+
} else if (self.strategy === "sliding") {
|
|
5761
|
+
if (self.capacity > 0) {
|
|
5762
|
+
take(self.messages);
|
|
5763
|
+
append2(self.messages, message);
|
|
5764
|
+
}
|
|
5765
|
+
return true;
|
|
5710
5766
|
}
|
|
5711
5767
|
return false;
|
|
5712
5768
|
}
|
|
@@ -5925,10 +5981,10 @@ var init_Queue = __esm({
|
|
|
5925
5981
|
}
|
|
5926
5982
|
});
|
|
5927
5983
|
|
|
5928
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
5984
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Channel.js
|
|
5929
5985
|
var TypeId10, isChannel, ChannelProto, fromTransform, transformPull, fromPull, fromTransformBracket, toTransform, asyncQueue, callbackArray, suspend3, empty3, fail8, fromEffectDrain, fromReadableStream, readableStreamToPullUnsafe, mapDone, mapDoneEffect, tapError3, merge2, mergeEffect, splitLines, decodeText, pipeTo, isUpstreamFailure, hasUpstreamFailure, upstreamFailureToDefect, unwrapUpstreamFailure, restoreUpstreamFailure, unwrap, interruptWhen, onExit3, ensuring3, runWith, runDrain, runForEach, mkUint8Array, runFold, toPullScoped;
|
|
5930
5986
|
var init_Channel = __esm({
|
|
5931
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
5987
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Channel.js"() {
|
|
5932
5988
|
init_Array();
|
|
5933
5989
|
init_Cause();
|
|
5934
5990
|
init_Effect();
|
|
@@ -6199,10 +6255,10 @@ var init_Channel = __esm({
|
|
|
6199
6255
|
}
|
|
6200
6256
|
});
|
|
6201
6257
|
|
|
6202
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
6258
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/stream.js
|
|
6203
6259
|
var TypeId11, streamVariance, Stream, fromChannel;
|
|
6204
6260
|
var init_stream = __esm({
|
|
6205
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
6261
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/stream.js"() {
|
|
6206
6262
|
init_Function();
|
|
6207
6263
|
init_Pipeable();
|
|
6208
6264
|
TypeId11 = "~effect/Stream";
|
|
@@ -6224,10 +6280,10 @@ var init_stream = __esm({
|
|
|
6224
6280
|
}
|
|
6225
6281
|
});
|
|
6226
6282
|
|
|
6227
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
6283
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Sink.js
|
|
6228
6284
|
var TypeId12, endVoid, sinkVariance, SinkProto, isSink, fromChannel2, fromTransform2, toChannel, drain, forEach3, forEachArray, unwrap2;
|
|
6229
6285
|
var init_Sink = __esm({
|
|
6230
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
6286
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Sink.js"() {
|
|
6231
6287
|
init_Cause();
|
|
6232
6288
|
init_Channel();
|
|
6233
6289
|
init_Effect();
|
|
@@ -6273,10 +6329,10 @@ var init_Sink = __esm({
|
|
|
6273
6329
|
}
|
|
6274
6330
|
});
|
|
6275
6331
|
|
|
6276
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
6332
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/rcRef.js
|
|
6277
6333
|
var TypeId13, stateEmpty, stateClosed, variance2, RcRefImpl, make11, getState, awaitAcquiring, get2, release;
|
|
6278
6334
|
var init_rcRef = __esm({
|
|
6279
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
6335
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/rcRef.js"() {
|
|
6280
6336
|
init_Context();
|
|
6281
6337
|
init_Duration();
|
|
6282
6338
|
init_Effect();
|
|
@@ -6419,20 +6475,20 @@ var init_rcRef = __esm({
|
|
|
6419
6475
|
}
|
|
6420
6476
|
});
|
|
6421
6477
|
|
|
6422
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
6478
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/RcRef.js
|
|
6423
6479
|
var make12, get3;
|
|
6424
6480
|
var init_RcRef = __esm({
|
|
6425
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
6481
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/RcRef.js"() {
|
|
6426
6482
|
init_rcRef();
|
|
6427
6483
|
make12 = make11;
|
|
6428
6484
|
get3 = get2;
|
|
6429
6485
|
}
|
|
6430
6486
|
});
|
|
6431
6487
|
|
|
6432
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
6488
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Stream.js
|
|
6433
6489
|
var TypeId14, isStream, fromChannel3, fromPull2, transformPull2, toChannel2, callback3, empty4, suspend4, suspendedStreams, fail9, fromReadableStream2, unwrap3, drainFork, merge3, mergeEffect2, tapError4, transduce, decodeText2, splitLines2, interruptWhen2, ensuring4, run, runSink, runCollect, runDrain2, mkString, mkArrayBuffer, toReadableStreamWith, toReadableStreamEffect;
|
|
6434
6490
|
var init_Stream = __esm({
|
|
6435
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
6491
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Stream.js"() {
|
|
6436
6492
|
init_Array();
|
|
6437
6493
|
init_Cause();
|
|
6438
6494
|
init_Channel();
|
|
@@ -6552,7 +6608,7 @@ var init_Stream = __esm({
|
|
|
6552
6608
|
}
|
|
6553
6609
|
});
|
|
6554
6610
|
|
|
6555
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
6611
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/Cookies.js
|
|
6556
6612
|
function parseSetCookie(header) {
|
|
6557
6613
|
const parts = header.split(";").map((_2) => _2.trim()).filter((_2) => _2 !== "");
|
|
6558
6614
|
if (parts.length === 0) {
|
|
@@ -6675,7 +6731,7 @@ function parseSetCookie(header) {
|
|
|
6675
6731
|
}
|
|
6676
6732
|
var TypeId16, CookieTypeId, Proto2, fromReadonlyRecord, fromIterable2, fromSetCookie, cookieNameRegExp, cookieWhitespaceRegExp, maxAgeRegExp, CookieProto, tryDecodeURIComponent;
|
|
6677
6733
|
var init_Cookies = __esm({
|
|
6678
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
6734
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/Cookies.js"() {
|
|
6679
6735
|
init_Data();
|
|
6680
6736
|
init_Duration();
|
|
6681
6737
|
init_Inspectable();
|
|
@@ -6745,10 +6801,10 @@ var init_Cookies = __esm({
|
|
|
6745
6801
|
}
|
|
6746
6802
|
});
|
|
6747
6803
|
|
|
6748
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
6804
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/redacted.js
|
|
6749
6805
|
var redactedRegistry, value;
|
|
6750
6806
|
var init_redacted = __esm({
|
|
6751
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
6807
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/redacted.js"() {
|
|
6752
6808
|
redactedRegistry = /* @__PURE__ */ new WeakMap();
|
|
6753
6809
|
value = (self) => {
|
|
6754
6810
|
if (redactedRegistry.has(self)) {
|
|
@@ -6760,10 +6816,10 @@ var init_redacted = __esm({
|
|
|
6760
6816
|
}
|
|
6761
6817
|
});
|
|
6762
6818
|
|
|
6763
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
6819
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Redacted.js
|
|
6764
6820
|
var TypeId17, isRedacted, make15, Proto3, value2;
|
|
6765
6821
|
var init_Redacted = __esm({
|
|
6766
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
6822
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Redacted.js"() {
|
|
6767
6823
|
init_Equal();
|
|
6768
6824
|
init_Hash();
|
|
6769
6825
|
init_core();
|
|
@@ -6802,10 +6858,10 @@ var init_Redacted = __esm({
|
|
|
6802
6858
|
}
|
|
6803
6859
|
});
|
|
6804
6860
|
|
|
6805
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
6861
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/Headers.js
|
|
6806
6862
|
var TypeId18, Proto4, make16, Equivalence2, empty6, fromInput, fromRecordUnsafe, set2, setAll, merge4, remove2, redact2, isRedactedName, CurrentRedactedNames;
|
|
6807
6863
|
var init_Headers = __esm({
|
|
6808
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
6864
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/Headers.js"() {
|
|
6809
6865
|
init_Context();
|
|
6810
6866
|
init_Data();
|
|
6811
6867
|
init_Equal();
|
|
@@ -6857,7 +6913,8 @@ var init_Headers = __esm({
|
|
|
6857
6913
|
} else if (Symbol.iterator in input) {
|
|
6858
6914
|
const out2 = Object.create(Proto4);
|
|
6859
6915
|
for (const [k2, v2] of input) {
|
|
6860
|
-
|
|
6916
|
+
const key = k2.toLowerCase();
|
|
6917
|
+
out2[key] = key in out2 ? `${out2[key]}, ${v2}` : v2;
|
|
6861
6918
|
}
|
|
6862
6919
|
return out2;
|
|
6863
6920
|
}
|
|
@@ -6937,11 +6994,16 @@ var init_Headers = __esm({
|
|
|
6937
6994
|
});
|
|
6938
6995
|
}
|
|
6939
6996
|
});
|
|
6997
|
+
var init_base64 = __esm({
|
|
6998
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/base64.js"() {
|
|
6999
|
+
}
|
|
7000
|
+
});
|
|
6940
7001
|
|
|
6941
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
7002
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/encoding/Base64.js
|
|
6942
7003
|
var alphabet, codes;
|
|
6943
7004
|
var init_Base64 = __esm({
|
|
6944
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
7005
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/encoding/Base64.js"() {
|
|
7006
|
+
init_base64();
|
|
6945
7007
|
init_Result();
|
|
6946
7008
|
init_EncodingError();
|
|
6947
7009
|
alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
@@ -6951,10 +7013,10 @@ var init_Base64 = __esm({
|
|
|
6951
7013
|
}
|
|
6952
7014
|
});
|
|
6953
7015
|
|
|
6954
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
7016
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/internal/urlParams.js
|
|
6955
7017
|
var unwrap4, bodyDecoder, fromBody;
|
|
6956
7018
|
var init_urlParams = __esm({
|
|
6957
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
7019
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/internal/urlParams.js"() {
|
|
6958
7020
|
init_Redacted();
|
|
6959
7021
|
unwrap4 = (value3) => typeof value3 === "string" ? value3 : value2(value3);
|
|
6960
7022
|
bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
|
|
@@ -6967,10 +7029,10 @@ var init_urlParams = __esm({
|
|
|
6967
7029
|
}
|
|
6968
7030
|
});
|
|
6969
7031
|
|
|
6970
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
7032
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/UrlParams.js
|
|
6971
7033
|
var TypeId19, isUrlParams, Proto5, make17, fromInput2, fromInputNested, coerce, Equivalence3, arrayEquivalence, empty7, setAll2, redact3, isRedactedName2, redactUrl, authorityStart, specialAuthorityEnd, authorityEnd, redactUserinfo, redactQuery, decodeQueryKey, currentRedactedNames, CurrentRedactedNames2;
|
|
6972
7034
|
var init_UrlParams = __esm({
|
|
6973
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
7035
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/UrlParams.js"() {
|
|
6974
7036
|
init_Array();
|
|
6975
7037
|
init_Context();
|
|
6976
7038
|
init_Equal();
|
|
@@ -7119,13 +7181,13 @@ var init_UrlParams = __esm({
|
|
|
7119
7181
|
}
|
|
7120
7182
|
});
|
|
7121
7183
|
|
|
7122
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
7184
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schema/annotations.js
|
|
7123
7185
|
function resolve(ast) {
|
|
7124
7186
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
7125
7187
|
}
|
|
7126
7188
|
var STRUCTURAL_ANNOTATION_KEY, SENTINELS_ANNOTATION_KEY, CONSTRUCTOR_ANNOTATION_KEY, getExpected;
|
|
7127
7189
|
var init_annotations = __esm({
|
|
7128
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
7190
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schema/annotations.js"() {
|
|
7129
7191
|
init_Function();
|
|
7130
7192
|
STRUCTURAL_ANNOTATION_KEY = "~structural";
|
|
7131
7193
|
SENTINELS_ANNOTATION_KEY = "~sentinels";
|
|
@@ -7138,23 +7200,26 @@ var init_annotations = __esm({
|
|
|
7138
7200
|
}
|
|
7139
7201
|
});
|
|
7140
7202
|
|
|
7141
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
7142
|
-
var missing, succeed8, missingExit, sameExit, toOption, fromOptionExit;
|
|
7203
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schema/parser.js
|
|
7204
|
+
var missing, succeed8, missingExit, sameExit, isSameExit, toOption, fromOptionExit;
|
|
7143
7205
|
var init_parser = __esm({
|
|
7144
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
7206
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schema/parser.js"() {
|
|
7145
7207
|
init_Exit();
|
|
7146
7208
|
init_Option();
|
|
7147
7209
|
init_core();
|
|
7148
|
-
missing = /* @__PURE__ */ Symbol();
|
|
7210
|
+
missing = /* @__PURE__ */ Symbol.for("effect/schema/parser/missing");
|
|
7149
7211
|
succeed8 = succeed4;
|
|
7150
7212
|
missingExit = /* @__PURE__ */ succeed8(missing);
|
|
7151
|
-
sameExit = /* @__PURE__ */ succeed8(missing)
|
|
7213
|
+
sameExit = /* @__PURE__ */ Object.assign(/* @__PURE__ */ succeed8(missing), {
|
|
7214
|
+
[missing]: true
|
|
7215
|
+
});
|
|
7216
|
+
isSameExit = (result2) => result2[missing] === true;
|
|
7152
7217
|
toOption = (value3) => value3 === missing ? none2() : some2(value3);
|
|
7153
7218
|
fromOptionExit = (option2) => option2._tag === "None" ? missingExit : succeed8(option2.value);
|
|
7154
7219
|
}
|
|
7155
7220
|
});
|
|
7156
7221
|
|
|
7157
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
7222
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/SchemaIssue.js
|
|
7158
7223
|
function isIssue(u2) {
|
|
7159
7224
|
return hasProperty(u2, TypeId20) && u2[TypeId20] === TypeId20;
|
|
7160
7225
|
}
|
|
@@ -7256,7 +7321,7 @@ function findMessage(issue) {
|
|
|
7256
7321
|
}
|
|
7257
7322
|
var TypeId20, IssueNodeImpl, Filter, Encoding, Pointer, MissingKey, UnexpectedKey, Composite, InvalidType, InvalidValue, AnyOf, OneOf, defaultLeafHook, defaultCheckHook, defaultFormatter;
|
|
7258
7323
|
var init_SchemaIssue = __esm({
|
|
7259
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
7324
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/SchemaIssue.js"() {
|
|
7260
7325
|
init_Array();
|
|
7261
7326
|
init_Formatter();
|
|
7262
7327
|
init_annotations();
|
|
@@ -7442,7 +7507,7 @@ var init_SchemaIssue = __esm({
|
|
|
7442
7507
|
}
|
|
7443
7508
|
});
|
|
7444
7509
|
|
|
7445
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
7510
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schema/cause.js
|
|
7446
7511
|
function getSchemaIssue(cause) {
|
|
7447
7512
|
let issue;
|
|
7448
7513
|
for (const reason of cause.reasons) {
|
|
@@ -7463,13 +7528,13 @@ function getSchemaIssueOrThrow(cause, message) {
|
|
|
7463
7528
|
return issue;
|
|
7464
7529
|
}
|
|
7465
7530
|
var init_cause = __esm({
|
|
7466
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
7531
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schema/cause.js"() {
|
|
7467
7532
|
init_Cause();
|
|
7468
7533
|
init_SchemaIssue();
|
|
7469
7534
|
}
|
|
7470
7535
|
});
|
|
7471
7536
|
|
|
7472
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
7537
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/SchemaGetter.js
|
|
7473
7538
|
function passthrough() {
|
|
7474
7539
|
return passthrough_;
|
|
7475
7540
|
}
|
|
@@ -7512,7 +7577,7 @@ function stringifyJson(options) {
|
|
|
7512
7577
|
}
|
|
7513
7578
|
var makeGetter, passthrough_;
|
|
7514
7579
|
var init_SchemaGetter = __esm({
|
|
7515
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
7580
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/SchemaGetter.js"() {
|
|
7516
7581
|
init_Effect();
|
|
7517
7582
|
init_Base64();
|
|
7518
7583
|
init_Pipeable();
|
|
@@ -7524,7 +7589,7 @@ var init_SchemaGetter = __esm({
|
|
|
7524
7589
|
}
|
|
7525
7590
|
});
|
|
7526
7591
|
|
|
7527
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
7592
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schema/content.js
|
|
7528
7593
|
function setContent(operation, content) {
|
|
7529
7594
|
Object.defineProperty(operation, ContentTypeId, {
|
|
7530
7595
|
value: content
|
|
@@ -7533,12 +7598,12 @@ function setContent(operation, content) {
|
|
|
7533
7598
|
}
|
|
7534
7599
|
var ContentTypeId;
|
|
7535
7600
|
var init_content = __esm({
|
|
7536
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
7601
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schema/content.js"() {
|
|
7537
7602
|
ContentTypeId = /* @__PURE__ */ Symbol.for("~effect/Schema/content");
|
|
7538
7603
|
}
|
|
7539
7604
|
});
|
|
7540
7605
|
|
|
7541
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
7606
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/SchemaTransformation.js
|
|
7542
7607
|
function isTransformation(u2) {
|
|
7543
7608
|
return hasProperty(u2, TypeId21) && u2[TypeId21] === TypeId21;
|
|
7544
7609
|
}
|
|
@@ -7556,7 +7621,7 @@ function fromJsonString(options) {
|
|
|
7556
7621
|
}
|
|
7557
7622
|
var TypeId21, Transformation, makeTransformation, passthrough_2, isJsonError, decodeJsonError, encodeUnknownAsJson, encodeJsonError, makeEncodeDefect, decodeDefect, defectFromJson;
|
|
7558
7623
|
var init_SchemaTransformation = __esm({
|
|
7559
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
7624
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/SchemaTransformation.js"() {
|
|
7560
7625
|
init_Effect();
|
|
7561
7626
|
init_Formatter();
|
|
7562
7627
|
init_content();
|
|
@@ -7641,7 +7706,7 @@ var init_SchemaTransformation = __esm({
|
|
|
7641
7706
|
}
|
|
7642
7707
|
});
|
|
7643
7708
|
|
|
7644
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
7709
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/SchemaAST.js
|
|
7645
7710
|
function makeGuard(tag2) {
|
|
7646
7711
|
return (ast) => ast._tag === tag2;
|
|
7647
7712
|
}
|
|
@@ -7653,7 +7718,7 @@ function stepArray(s3, item, exit3, i) {
|
|
|
7653
7718
|
if (exit3._tag === "Failure") {
|
|
7654
7719
|
return wrapPropertyKeyIssue(s3, s3.ast, i, exit3);
|
|
7655
7720
|
}
|
|
7656
|
-
const value3 = exit3
|
|
7721
|
+
const value3 = isSameExit(exit3) ? item : exit3[args];
|
|
7657
7722
|
if (value3 !== missing) {
|
|
7658
7723
|
s3.output[i] = value3;
|
|
7659
7724
|
} else {
|
|
@@ -7722,7 +7787,7 @@ function stepProperty(s3, p2, exit3) {
|
|
|
7722
7787
|
if (exit3._tag === "Failure") {
|
|
7723
7788
|
return wrapPropertyKeyIssue(s3, s3.ast, p2.name, exit3);
|
|
7724
7789
|
}
|
|
7725
|
-
if (exit3
|
|
7790
|
+
if (isSameExit(exit3)) return;
|
|
7726
7791
|
const value3 = exit3[args];
|
|
7727
7792
|
if (value3 !== missing) {
|
|
7728
7793
|
assignProperty(s3.out, p2.name, value3);
|
|
@@ -8000,8 +8065,7 @@ function parseUnionCandidates(ast, parser, candidates, input, options) {
|
|
|
8000
8065
|
}
|
|
8001
8066
|
function resumeUnion(eff, state) {
|
|
8002
8067
|
return flatMapEager2(eff, (_2) => {
|
|
8003
|
-
if (state.out
|
|
8004
|
-
if (state.out) return state.out;
|
|
8068
|
+
if (state.out) return isSameExit(state.out) ? succeed6(state.input) : state.out;
|
|
8005
8069
|
return fail7(new AnyOf(state.ast, state.issues ?? [], state.input, state.options));
|
|
8006
8070
|
});
|
|
8007
8071
|
}
|
|
@@ -8350,9 +8414,9 @@ function isJson(u2) {
|
|
|
8350
8414
|
function isStringTree(u2) {
|
|
8351
8415
|
return isTree(u2, isStringTreeLeaf);
|
|
8352
8416
|
}
|
|
8353
|
-
var isDeclaration, isNever2, isLiteral, isUniqueSymbol, isArrays, isObjects, isSuspend, Link, defaultParseOptions, Context, TypeId22, ASTNodeImpl, Declaration, Null, null_, Undefined, undefinedToNull, undefined_2, Unknown, unknown, Literal, String4, string2, Boolean2, boolean, Arrays, parseArrayOptions, parseArray, parseArrayConcurrent, wrapPropertyKeyIssue, PropertySignature, IndexSignature, Objects, parsePropertiesOptions, parseProperties, parsePropertiesConcurrent, toCandidate, candidateIndexCache, emptyCandidates, getRuntimeType, hasPropertySignature, Union, parseUnion, Filter2, FilterGroup, bodyOwners, optionalKey, optionalKeyLastLink, optional, toType, toEncoded, flip2, parameterFromPropertyKey, parameterFromString, Json, StringTree, unknownToStringTree;
|
|
8417
|
+
var isDeclaration, isNever2, isLiteral, isUniqueSymbol, isArrays, isObjects, isSuspend, Link, defaultParseOptions, Context, TypeId22, ASTNodeImpl, Declaration, Null, null_, Undefined, undefinedToNull, undefined_2, Unknown, unknown, Literal, String4, string2, Boolean2, boolean, Arrays, parseArrayOptions, parseArray, parseArrayConcurrent, wrapPropertyKeyIssue, PropertySignature, IndexSignature, Objects, parsePropertiesOptions, parseProperties, parsePropertiesConcurrent, toCandidate, candidateIndexCache, emptyCandidates, getRuntimeType, objectPrototypeKeys, requiresOwnProperty, hasPropertySignature, Union, parseUnion, Filter2, FilterGroup, bodyOwners, optionalKey, optionalKeyLastLink, optional, toType, toEncoded, flip2, parameterFromPropertyKey, parameterFromString, Json, StringTree, unknownToStringTree;
|
|
8354
8418
|
var init_SchemaAST = __esm({
|
|
8355
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
8419
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/SchemaAST.js"() {
|
|
8356
8420
|
init_Array();
|
|
8357
8421
|
init_Cause();
|
|
8358
8422
|
init_Effect();
|
|
@@ -8772,7 +8836,8 @@ var init_SchemaAST = __esm({
|
|
|
8772
8836
|
properties = ast.propertySignatures.map((ps2) => ({
|
|
8773
8837
|
parser: compileField2(ps2.type),
|
|
8774
8838
|
name: ps2.name,
|
|
8775
|
-
type: ps2.type
|
|
8839
|
+
type: ps2.type,
|
|
8840
|
+
ownOnly: requiresOwnProperty(ps2.name)
|
|
8776
8841
|
}));
|
|
8777
8842
|
indexes = indexCount ? ast.indexSignatures.map((is4) => ({
|
|
8778
8843
|
is: is4,
|
|
@@ -8788,7 +8853,7 @@ var init_SchemaAST = __esm({
|
|
|
8788
8853
|
if (exitValue._tag === "Failure") {
|
|
8789
8854
|
return wrapPropertyKeyIssue(s3, ast, key, exitValue) ?? void_2;
|
|
8790
8855
|
}
|
|
8791
|
-
const value3 = exitValue
|
|
8856
|
+
const value3 = isSameExit(exitValue) ? inputValue : exitValue[args];
|
|
8792
8857
|
if (k2 !== missing && value3 !== missing) {
|
|
8793
8858
|
if (hasProperties && (expectedKeys.has(key) || expectedKeys.has(typeof k2 === "number" ? globalThis.String(k2) : k2))) return void_2;
|
|
8794
8859
|
assignProperty(s3.out, k2, value3);
|
|
@@ -8806,7 +8871,7 @@ var init_SchemaAST = __esm({
|
|
|
8806
8871
|
if (exitKey._tag === "Failure") {
|
|
8807
8872
|
return wrapPropertyKeyIssue(s3, ast, key, exitKey) ?? void_2;
|
|
8808
8873
|
}
|
|
8809
|
-
const k2 = exitKey
|
|
8874
|
+
const k2 = isSameExit(exitKey) ? key : exitKey[args];
|
|
8810
8875
|
const inputValue = s3.input[key];
|
|
8811
8876
|
const result2 = index.parserValue(inputValue, s3.options);
|
|
8812
8877
|
return effectIsExit(result2) ? finishIndex(s3, key, k2, inputValue, result2) : flatMap3(exit2(result2), (exit3) => finishIndex(s3, key, k2, inputValue, exit3));
|
|
@@ -8944,13 +9009,13 @@ var init_SchemaAST = __esm({
|
|
|
8944
9009
|
for (let index = 0; index < props.length; index++) {
|
|
8945
9010
|
const property = props[index];
|
|
8946
9011
|
const name = property.name;
|
|
8947
|
-
const hasKey =
|
|
9012
|
+
const hasKey = property.ownOnly ? Object.hasOwn(record2, name) : name in record2;
|
|
8948
9013
|
const value3 = hasKey ? record2[name] : missing;
|
|
8949
9014
|
const exit3 = property.parser(value3, options);
|
|
8950
9015
|
if (!effectIsExit(exit3)) {
|
|
8951
9016
|
return resume(state, index, exit3);
|
|
8952
9017
|
}
|
|
8953
|
-
if (exit3
|
|
9018
|
+
if (isSameExit(exit3)) {
|
|
8954
9019
|
if (hasKey) assignProperty(out, name, value3);
|
|
8955
9020
|
continue;
|
|
8956
9021
|
}
|
|
@@ -8991,7 +9056,7 @@ var init_SchemaAST = __esm({
|
|
|
8991
9056
|
};
|
|
8992
9057
|
parsePropertiesOptions = {
|
|
8993
9058
|
onItem(s3, p2) {
|
|
8994
|
-
if (!
|
|
9059
|
+
if (!(p2.ownOnly ? Object.hasOwn(s3.input, p2.name) : p2.name in s3.input)) {
|
|
8995
9060
|
return p2.parser(missing, s3.options);
|
|
8996
9061
|
}
|
|
8997
9062
|
const value3 = s3.input[p2.name];
|
|
@@ -9016,7 +9081,9 @@ var init_SchemaAST = __esm({
|
|
|
9016
9081
|
candidateIndexCache = /* @__PURE__ */ new WeakMap();
|
|
9017
9082
|
emptyCandidates = /* @__PURE__ */ Object.freeze([]);
|
|
9018
9083
|
getRuntimeType = (input) => input === null ? "null" : Array.isArray(input) ? "array" : typeof input;
|
|
9019
|
-
|
|
9084
|
+
objectPrototypeKeys = /* @__PURE__ */ new Set(Reflect.ownKeys(Object.prototype)).add("__proto__");
|
|
9085
|
+
requiresOwnProperty = (key) => objectPrototypeKeys.has(typeof key === "number" ? globalThis.String(key) : key);
|
|
9086
|
+
hasPropertySignature = (input, key) => Object.hasOwn(input, key) || key in input && !requiresOwnProperty(key);
|
|
9020
9087
|
Union = class extends ASTNodeImpl {
|
|
9021
9088
|
_tag = "Union";
|
|
9022
9089
|
types;
|
|
@@ -9189,7 +9256,8 @@ var init_SchemaAST = __esm({
|
|
|
9189
9256
|
const checks = canPreserveEncodingChecks(ast) ? type.encodingChecks : isArrays(type) || isObjects(type) || isDeclaration(type) && type.typeParameters.length > 0 ? extractStructuralChecks(type.encodingChecks) : void 0;
|
|
9190
9257
|
return copy(type, {
|
|
9191
9258
|
encodingChecks: void 0,
|
|
9192
|
-
|
|
9259
|
+
// Match parsing order and preserve annotation precedence for decoded checks.
|
|
9260
|
+
checks: combineChecks(checks, type.checks)
|
|
9193
9261
|
});
|
|
9194
9262
|
}
|
|
9195
9263
|
return type;
|
|
@@ -9246,7 +9314,7 @@ var init_SchemaAST = __esm({
|
|
|
9246
9314
|
}
|
|
9247
9315
|
});
|
|
9248
9316
|
|
|
9249
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
9317
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schema/interpreter.js
|
|
9250
9318
|
function compileTransformation(transformation) {
|
|
9251
9319
|
const apply = compileTransformationUnsafe(transformation);
|
|
9252
9320
|
return (result2, current, options) => {
|
|
@@ -9260,14 +9328,14 @@ function compileTransformation(transformation) {
|
|
|
9260
9328
|
function compileTransformationUnsafe(transformation) {
|
|
9261
9329
|
if (transformation._tag === "Middleware") {
|
|
9262
9330
|
return (result2, current, options) => {
|
|
9263
|
-
const transformed = result2
|
|
9331
|
+
const transformed = isSameExit(result2) ? transformation.decode(succeed8(toOption(current)), options) : transformation.decode(mapEager2(result2, toOption), options);
|
|
9264
9332
|
return fromOptionalEffect(transformed);
|
|
9265
9333
|
};
|
|
9266
9334
|
}
|
|
9267
9335
|
const getter = transformation.decode;
|
|
9268
9336
|
switch (getter._tag) {
|
|
9269
9337
|
case "Passthrough":
|
|
9270
|
-
return (result2, current) => result2
|
|
9338
|
+
return (result2, current) => isSameExit(result2) ? succeed8(current) : result2;
|
|
9271
9339
|
case "Transform": {
|
|
9272
9340
|
const transform4 = (value3) => value3 === missing ? missingExit : succeed8(getter.transform(value3));
|
|
9273
9341
|
return (result2, current) => flatMapTransformation(result2, current, transform4);
|
|
@@ -9299,11 +9367,11 @@ function withDefault(ast, parser) {
|
|
|
9299
9367
|
const result2 = defaultValue;
|
|
9300
9368
|
if (effectIsExit(result2) && result2._tag === "Success") {
|
|
9301
9369
|
const local = parser(result2[args], options);
|
|
9302
|
-
return local
|
|
9370
|
+
return isSameExit(local) ? result2 : local;
|
|
9303
9371
|
}
|
|
9304
9372
|
return flatMapEager2(wrapEncoding(ast, input, options, result2), (value3) => {
|
|
9305
9373
|
const local = parser(value3, options);
|
|
9306
|
-
return local
|
|
9374
|
+
return isSameExit(local) ? succeed8(value3) : local;
|
|
9307
9375
|
});
|
|
9308
9376
|
};
|
|
9309
9377
|
}
|
|
@@ -9331,7 +9399,7 @@ function compile2(ast, compile3, compileField2, base, specialize) {
|
|
|
9331
9399
|
if (encodingChecks && !options.disableChecks) {
|
|
9332
9400
|
if (effectIsExit(result2)) {
|
|
9333
9401
|
if (result2._tag === "Success") {
|
|
9334
|
-
const output = result2
|
|
9402
|
+
const output = isSameExit(result2) ? input : result2[args];
|
|
9335
9403
|
if (input !== missing && output !== missing) {
|
|
9336
9404
|
const issues = collectIssues(encodingChecks, input, void 0, ast, options);
|
|
9337
9405
|
if (issues) {
|
|
@@ -9354,7 +9422,7 @@ function compile2(ast, compile3, compileField2, base, specialize) {
|
|
|
9354
9422
|
if (checks && !options.disableChecks) {
|
|
9355
9423
|
if (effectIsExit(result2)) {
|
|
9356
9424
|
if (result2._tag === "Success") {
|
|
9357
|
-
const value3 = result2
|
|
9425
|
+
const value3 = isSameExit(result2) ? input : result2[args];
|
|
9358
9426
|
if (value3 === missing) return result2;
|
|
9359
9427
|
const issues = collectIssues(checks, value3, void 0, ast, options);
|
|
9360
9428
|
if (issues) {
|
|
@@ -9396,7 +9464,7 @@ function compile2(ast, compile3, compileField2, base, specialize) {
|
|
|
9396
9464
|
} else {
|
|
9397
9465
|
result2 = flatMapEager2(result2, (value3) => {
|
|
9398
9466
|
const nextResult = next(value3, options);
|
|
9399
|
-
return nextResult
|
|
9467
|
+
return isSameExit(nextResult) ? succeed8(value3) : nextResult;
|
|
9400
9468
|
});
|
|
9401
9469
|
}
|
|
9402
9470
|
}
|
|
@@ -9404,25 +9472,25 @@ function compile2(ast, compile3, compileField2, base, specialize) {
|
|
|
9404
9472
|
if (result2._tag === "Success") {
|
|
9405
9473
|
const value3 = result2[args];
|
|
9406
9474
|
const local = parseLocal(value3, options);
|
|
9407
|
-
return local
|
|
9475
|
+
return isSameExit(local) ? result2 : local;
|
|
9408
9476
|
}
|
|
9409
9477
|
result2 = wrapEncoding(ast, input, options, result2);
|
|
9410
9478
|
return flatMapEager2(result2, (value3) => {
|
|
9411
9479
|
const local = parseLocal(value3, options);
|
|
9412
|
-
return local
|
|
9480
|
+
return isSameExit(local) ? succeed8(value3) : local;
|
|
9413
9481
|
});
|
|
9414
9482
|
};
|
|
9415
9483
|
}
|
|
9416
9484
|
var flatMapTransformation, fromOptionalEffect, wrapEncoding;
|
|
9417
9485
|
var init_interpreter = __esm({
|
|
9418
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
9486
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schema/interpreter.js"() {
|
|
9419
9487
|
init_Cause();
|
|
9420
9488
|
init_Effect();
|
|
9421
9489
|
init_SchemaAST();
|
|
9422
9490
|
init_SchemaIssue();
|
|
9423
9491
|
init_effect();
|
|
9424
9492
|
init_parser();
|
|
9425
|
-
flatMapTransformation = (result2, current, f2) => result2
|
|
9493
|
+
flatMapTransformation = (result2, current, f2) => isSameExit(result2) ? f2(current) : flatMapEager2(result2, f2);
|
|
9426
9494
|
fromOptionalEffect = (effect2) => flatMapEager2(effect2, fromOptionExit);
|
|
9427
9495
|
wrapEncoding = (ast, input, options, effect2) => catchCause2(effect2, (cause) => failCauseSync2(() => map5(cause, (issue) => new Encoding(ast, issue, input, options))));
|
|
9428
9496
|
}
|
|
@@ -9444,7 +9512,7 @@ function resolve2(ast) {
|
|
|
9444
9512
|
}
|
|
9445
9513
|
var invalid3, cache, compilerAdaptersEnabled, decodeChild, makeChild, makeField, InterpretedEntry;
|
|
9446
9514
|
var init_compilerRegistry = __esm({
|
|
9447
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
9515
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schema/compilerRegistry.js"() {
|
|
9448
9516
|
init_Effect();
|
|
9449
9517
|
init_interpreter();
|
|
9450
9518
|
init_parser();
|
|
@@ -9472,7 +9540,7 @@ var init_compilerRegistry = __esm({
|
|
|
9472
9540
|
}
|
|
9473
9541
|
});
|
|
9474
9542
|
|
|
9475
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
9543
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/SchemaParser.js
|
|
9476
9544
|
function makeEffect(schema) {
|
|
9477
9545
|
const ast = schema.ast;
|
|
9478
9546
|
let parser;
|
|
@@ -9554,7 +9622,7 @@ function run2(ast) {
|
|
|
9554
9622
|
return runWithCompiler(normalCompiler, ast);
|
|
9555
9623
|
}
|
|
9556
9624
|
function parserResult(result2, input) {
|
|
9557
|
-
if (result2
|
|
9625
|
+
if (isSameExit(result2)) {
|
|
9558
9626
|
return succeed6(input);
|
|
9559
9627
|
}
|
|
9560
9628
|
if (!effectIsExit(result2)) {
|
|
@@ -9566,7 +9634,7 @@ function runWithCompiler(compiler2, ast) {
|
|
|
9566
9634
|
let parser;
|
|
9567
9635
|
return (input, options) => {
|
|
9568
9636
|
const result2 = (parser ??= compiler2(ast))(input, options ?? defaultParseOptions);
|
|
9569
|
-
if (result2
|
|
9637
|
+
if (isSameExit(result2)) {
|
|
9570
9638
|
return succeed6(input);
|
|
9571
9639
|
}
|
|
9572
9640
|
if (!effectIsExit(result2)) {
|
|
@@ -9632,7 +9700,7 @@ function makeClassSync(ast, input, options, construct) {
|
|
|
9632
9700
|
}
|
|
9633
9701
|
var mergeParseOptions, getValue, constructorDefectMessage, normalCompiler, constructorCompiler;
|
|
9634
9702
|
var init_SchemaParser = __esm({
|
|
9635
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
9703
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/SchemaParser.js"() {
|
|
9636
9704
|
init_Cause();
|
|
9637
9705
|
init_Effect();
|
|
9638
9706
|
init_Exit();
|
|
@@ -9659,7 +9727,7 @@ var init_SchemaParser = __esm({
|
|
|
9659
9727
|
}
|
|
9660
9728
|
});
|
|
9661
9729
|
|
|
9662
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
9730
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schema/make.js
|
|
9663
9731
|
function make19(ast, options) {
|
|
9664
9732
|
function Schema() {
|
|
9665
9733
|
}
|
|
@@ -9677,7 +9745,7 @@ function make19(ast, options) {
|
|
|
9677
9745
|
}
|
|
9678
9746
|
var TypeId23, RebuildOptions, SchemaProto;
|
|
9679
9747
|
var init_make = __esm({
|
|
9680
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
9748
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schema/make.js"() {
|
|
9681
9749
|
init_Pipeable();
|
|
9682
9750
|
init_SchemaAST();
|
|
9683
9751
|
init_SchemaParser();
|
|
@@ -9728,7 +9796,7 @@ var init_make = __esm({
|
|
|
9728
9796
|
}
|
|
9729
9797
|
});
|
|
9730
9798
|
|
|
9731
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
9799
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schema/toCodec.js
|
|
9732
9800
|
function makeCodecDerivation(step2, options) {
|
|
9733
9801
|
const deriveBody = memoize((owner) => {
|
|
9734
9802
|
const body = replaceContext(owner, void 0);
|
|
@@ -9815,7 +9883,7 @@ function toCodecStringTreeASTStep(ast, recur, onMissingAnnotation) {
|
|
|
9815
9883
|
}
|
|
9816
9884
|
var toStringTreeReorder, nullToString, booleanToString, arrayFromSingleTransformation, isCodecArrayFromSingleLink, toCodecStringTreeAST;
|
|
9817
9885
|
var init_toCodec = __esm({
|
|
9818
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
9886
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schema/toCodec.js"() {
|
|
9819
9887
|
init_Function();
|
|
9820
9888
|
init_Predicate();
|
|
9821
9889
|
init_SchemaAST();
|
|
@@ -9849,18 +9917,18 @@ var init_toCodec = __esm({
|
|
|
9849
9917
|
}
|
|
9850
9918
|
});
|
|
9851
9919
|
|
|
9852
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
9920
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Struct.js
|
|
9853
9921
|
var lambda;
|
|
9854
9922
|
var init_Struct = __esm({
|
|
9855
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
9923
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Struct.js"() {
|
|
9856
9924
|
lambda = (f2) => f2;
|
|
9857
9925
|
}
|
|
9858
9926
|
});
|
|
9859
9927
|
|
|
9860
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
9928
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schemaError.js
|
|
9861
9929
|
var SchemaErrorTypeId;
|
|
9862
9930
|
var init_schemaError = __esm({
|
|
9863
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
9931
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/schemaError.js"() {
|
|
9864
9932
|
SchemaErrorTypeId = "~effect/Schema/SchemaError";
|
|
9865
9933
|
}
|
|
9866
9934
|
});
|
|
@@ -10187,7 +10255,7 @@ function isStruct(schema) {
|
|
|
10187
10255
|
}
|
|
10188
10256
|
var TypeId24, SchemaError, is2, decodeEffect2, encodeEffect, make20, optionalKey2, optional2, Unknown2, Undefined2, String5, Boolean3, ArraySchema, UndefinedOr, TrueLiterals, FalseLiterals, BooleanLiterals, makeFilter2, getErrorOptionsKey, getErrorOptions, defectSchemaCache, JsonString, immerable, payloadToken, Error4, TaggedError3, toCodecStringTree2, Json2;
|
|
10189
10257
|
var init_Schema = __esm({
|
|
10190
|
-
"../../node_modules/.pnpm/effect@4.1.
|
|
10258
|
+
"../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Schema.js"() {
|
|
10191
10259
|
init_Cause();
|
|
10192
10260
|
init_Data();
|
|
10193
10261
|
init_Effect();
|
|
@@ -10323,7 +10391,7 @@ var init_Schema = __esm({
|
|
|
10323
10391
|
}
|
|
10324
10392
|
});
|
|
10325
10393
|
|
|
10326
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.1.
|
|
10394
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1_3efd4f7a6641f6dae2558c6ebd9904b5/node_modules/@effect/platform-node/dist/internal/upgrade.js
|
|
10327
10395
|
var upgrade_exports = {};
|
|
10328
10396
|
__export(upgrade_exports, {
|
|
10329
10397
|
drainBody: () => drainBody,
|
|
@@ -10336,7 +10404,7 @@ var toSocket, frameBody, drainBody;
|
|
|
10336
10404
|
init_Effect();
|
|
10337
10405
|
init_Layer();
|
|
10338
10406
|
|
|
10339
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
10407
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/FileSystem.js
|
|
10340
10408
|
init_Array();
|
|
10341
10409
|
init_ByteSize();
|
|
10342
10410
|
init_Cause();
|
|
@@ -10344,7 +10412,7 @@ init_Context();
|
|
|
10344
10412
|
init_Effect();
|
|
10345
10413
|
init_Function();
|
|
10346
10414
|
|
|
10347
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
10415
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/internal/glob.js
|
|
10348
10416
|
init_Array();
|
|
10349
10417
|
init_Deferred();
|
|
10350
10418
|
init_Effect();
|
|
@@ -11036,10 +11104,10 @@ var walk = /* @__PURE__ */ fnUntraced2(function* (fs2, compiled, options) {
|
|
|
11036
11104
|
})), _await(failed));
|
|
11037
11105
|
});
|
|
11038
11106
|
|
|
11039
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11107
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/FileSystem.js
|
|
11040
11108
|
init_Option();
|
|
11041
11109
|
|
|
11042
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11110
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/PlatformError.js
|
|
11043
11111
|
init_Data();
|
|
11044
11112
|
var TypeId7 = "~effect/PlatformError";
|
|
11045
11113
|
var BadArgument = class extends (/* @__PURE__ */ TaggedError2("BadArgument")) {
|
|
@@ -11100,7 +11168,7 @@ var PlatformError = class extends (/* @__PURE__ */ TaggedError2("PlatformError")
|
|
|
11100
11168
|
var systemError = (options) => new PlatformError(new SystemError(options));
|
|
11101
11169
|
var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
11102
11170
|
|
|
11103
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11171
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/FileSystem.js
|
|
11104
11172
|
init_Sink();
|
|
11105
11173
|
init_Stream();
|
|
11106
11174
|
var TypeId15 = "~effect/FileSystem";
|
|
@@ -11162,7 +11230,7 @@ var FileTypeId = "~effect/FileSystem/File";
|
|
|
11162
11230
|
var WatchBackend = class extends (/* @__PURE__ */ Service()("effect/FileSystem/WatchBackend")) {
|
|
11163
11231
|
};
|
|
11164
11232
|
|
|
11165
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11233
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Logger.js
|
|
11166
11234
|
init_core();
|
|
11167
11235
|
init_effect();
|
|
11168
11236
|
init_Layer();
|
|
@@ -11176,12 +11244,12 @@ var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(f
|
|
|
11176
11244
|
return currentLoggers;
|
|
11177
11245
|
})));
|
|
11178
11246
|
|
|
11179
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.1.
|
|
11247
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1_3efd4f7a6641f6dae2558c6ebd9904b5/node_modules/@effect/platform-node/dist/NodeHttpClient.js
|
|
11180
11248
|
init_Effect();
|
|
11181
11249
|
init_Cookies();
|
|
11182
11250
|
init_Headers();
|
|
11183
11251
|
|
|
11184
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11252
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/HttpClient.js
|
|
11185
11253
|
init_Cause();
|
|
11186
11254
|
init_Clock();
|
|
11187
11255
|
init_Context();
|
|
@@ -11195,11 +11263,12 @@ init_Option();
|
|
|
11195
11263
|
init_Pipeable();
|
|
11196
11264
|
init_References();
|
|
11197
11265
|
init_Result();
|
|
11266
|
+
init_Scope();
|
|
11198
11267
|
init_Stream();
|
|
11199
11268
|
init_Tracer();
|
|
11200
11269
|
init_Headers();
|
|
11201
11270
|
|
|
11202
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11271
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/HttpBody.js
|
|
11203
11272
|
init_Data();
|
|
11204
11273
|
init_Formatter();
|
|
11205
11274
|
init_Inspectable();
|
|
@@ -11229,10 +11298,13 @@ var Empty2 = class extends Proto6 {
|
|
|
11229
11298
|
};
|
|
11230
11299
|
var empty8 = /* @__PURE__ */ new Empty2();
|
|
11231
11300
|
|
|
11232
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11301
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/HttpClientError.js
|
|
11302
|
+
init_Cause();
|
|
11233
11303
|
init_Data();
|
|
11304
|
+
init_Predicate();
|
|
11234
11305
|
init_UrlParams();
|
|
11235
11306
|
var TypeId26 = "~effect/http/HttpClientError";
|
|
11307
|
+
var isHttpClientError = (u2) => hasProperty(u2, TypeId26);
|
|
11236
11308
|
var HttpClientError = class extends (/* @__PURE__ */ TaggedError2("HttpClientError")) {
|
|
11237
11309
|
constructor(props) {
|
|
11238
11310
|
if ("cause" in props.reason) {
|
|
@@ -11275,13 +11347,39 @@ var HttpClientError = class extends (/* @__PURE__ */ TaggedError2("HttpClientErr
|
|
|
11275
11347
|
};
|
|
11276
11348
|
var formatReason = (tag2) => tag2.endsWith("Error") ? tag2.slice(0, -5) : tag2;
|
|
11277
11349
|
var formatMessage = (reason, description, info) => description ? `${reason}: ${description} (${info})` : `${reason} error (${info})`;
|
|
11278
|
-
var
|
|
11350
|
+
var responseRedactedNames = /* @__PURE__ */ new WeakMap();
|
|
11351
|
+
var redactedUrls = /* @__PURE__ */ new WeakMap();
|
|
11352
|
+
var addRedactedNames = (reason, names) => {
|
|
11353
|
+
const url = redactedUrls.get(reason);
|
|
11354
|
+
if (url !== void 0 && names !== void 0) redactedUrls.set(reason, redactUrl(url, names));
|
|
11355
|
+
};
|
|
11356
|
+
var addResponseRedactedNames = (response, names) => {
|
|
11357
|
+
const existing = responseRedactedNames.get(response);
|
|
11358
|
+
responseRedactedNames.set(response, existing === void 0 ? names : [...existing, ...names]);
|
|
11359
|
+
};
|
|
11360
|
+
var addFailureRedactedNames = (cause, names) => {
|
|
11361
|
+
for (const reason of cause.reasons) {
|
|
11362
|
+
if (isFailReason2(reason) && isHttpClientError(reason.error)) addRedactedNames(reason.error.reason, names);
|
|
11363
|
+
}
|
|
11364
|
+
};
|
|
11365
|
+
var ReasonError = (tag2) => {
|
|
11366
|
+
class Base extends TaggedError2(tag2) {
|
|
11367
|
+
constructor(props) {
|
|
11368
|
+
super(props);
|
|
11369
|
+
redactedUrls.set(this, redactUrl(props.request.url));
|
|
11370
|
+
if (props.response !== void 0) addRedactedNames(this, responseRedactedNames.get(props.response));
|
|
11371
|
+
}
|
|
11372
|
+
}
|
|
11373
|
+
return Base;
|
|
11374
|
+
};
|
|
11375
|
+
var redactedUrl = (reason) => redactUrl(redactedUrls.get(reason) ?? reason.request.url);
|
|
11376
|
+
var formatMethodAndUrl = (reason) => `${reason.request.method} ${redactedUrl(reason)}`;
|
|
11279
11377
|
var reasonToJSON = (reason, json2) => ({
|
|
11280
11378
|
...json2,
|
|
11281
11379
|
request: {
|
|
11282
11380
|
_id: "HttpClientRequest",
|
|
11283
11381
|
method: reason.request.method,
|
|
11284
|
-
url:
|
|
11382
|
+
url: redactedUrl(reason)
|
|
11285
11383
|
},
|
|
11286
11384
|
..."response" in reason ? {
|
|
11287
11385
|
response: {
|
|
@@ -11290,7 +11388,7 @@ var reasonToJSON = (reason, json2) => ({
|
|
|
11290
11388
|
}
|
|
11291
11389
|
} : void 0
|
|
11292
11390
|
});
|
|
11293
|
-
var TransportError = class extends (/* @__PURE__ */
|
|
11391
|
+
var TransportError = class extends (/* @__PURE__ */ ReasonError("TransportError")) {
|
|
11294
11392
|
/**
|
|
11295
11393
|
* Formats the request method and URL for transport error messages.
|
|
11296
11394
|
*
|
|
@@ -11298,7 +11396,7 @@ var TransportError = class extends (/* @__PURE__ */ TaggedError2("TransportError
|
|
|
11298
11396
|
* @since 4.0.0
|
|
11299
11397
|
*/
|
|
11300
11398
|
get methodAndUrl() {
|
|
11301
|
-
return formatMethodAndUrl(this
|
|
11399
|
+
return formatMethodAndUrl(this);
|
|
11302
11400
|
}
|
|
11303
11401
|
/**
|
|
11304
11402
|
* Builds the transport error message from the optional description and request details.
|
|
@@ -11313,7 +11411,7 @@ var TransportError = class extends (/* @__PURE__ */ TaggedError2("TransportError
|
|
|
11313
11411
|
return reasonToJSON(this, super.toJSON());
|
|
11314
11412
|
}
|
|
11315
11413
|
};
|
|
11316
|
-
var EncodeError = class extends (/* @__PURE__ */
|
|
11414
|
+
var EncodeError = class extends (/* @__PURE__ */ ReasonError("EncodeError")) {
|
|
11317
11415
|
/**
|
|
11318
11416
|
* Formats the request method and URL for request encoding error messages.
|
|
11319
11417
|
*
|
|
@@ -11321,7 +11419,7 @@ var EncodeError = class extends (/* @__PURE__ */ TaggedError2("EncodeError")) {
|
|
|
11321
11419
|
* @since 4.0.0
|
|
11322
11420
|
*/
|
|
11323
11421
|
get methodAndUrl() {
|
|
11324
|
-
return formatMethodAndUrl(this
|
|
11422
|
+
return formatMethodAndUrl(this);
|
|
11325
11423
|
}
|
|
11326
11424
|
/**
|
|
11327
11425
|
* Builds the request encoding error message from the optional description and request details.
|
|
@@ -11336,7 +11434,7 @@ var EncodeError = class extends (/* @__PURE__ */ TaggedError2("EncodeError")) {
|
|
|
11336
11434
|
return reasonToJSON(this, super.toJSON());
|
|
11337
11435
|
}
|
|
11338
11436
|
};
|
|
11339
|
-
var InvalidUrlError = class extends (/* @__PURE__ */
|
|
11437
|
+
var InvalidUrlError = class extends (/* @__PURE__ */ ReasonError("InvalidUrlError")) {
|
|
11340
11438
|
/**
|
|
11341
11439
|
* Formats the request method and URL for invalid URL error messages.
|
|
11342
11440
|
*
|
|
@@ -11344,7 +11442,7 @@ var InvalidUrlError = class extends (/* @__PURE__ */ TaggedError2("InvalidUrlErr
|
|
|
11344
11442
|
* @since 4.0.0
|
|
11345
11443
|
*/
|
|
11346
11444
|
get methodAndUrl() {
|
|
11347
|
-
return formatMethodAndUrl(this
|
|
11445
|
+
return formatMethodAndUrl(this);
|
|
11348
11446
|
}
|
|
11349
11447
|
/**
|
|
11350
11448
|
* Builds the invalid URL error message from the optional description and request details.
|
|
@@ -11359,7 +11457,7 @@ var InvalidUrlError = class extends (/* @__PURE__ */ TaggedError2("InvalidUrlErr
|
|
|
11359
11457
|
return reasonToJSON(this, super.toJSON());
|
|
11360
11458
|
}
|
|
11361
11459
|
};
|
|
11362
|
-
var StatusCodeError = class extends (/* @__PURE__ */
|
|
11460
|
+
var StatusCodeError = class extends (/* @__PURE__ */ ReasonError("StatusCodeError")) {
|
|
11363
11461
|
/**
|
|
11364
11462
|
* Formats the request method and URL for status code error messages.
|
|
11365
11463
|
*
|
|
@@ -11367,7 +11465,7 @@ var StatusCodeError = class extends (/* @__PURE__ */ TaggedError2("StatusCodeErr
|
|
|
11367
11465
|
* @since 4.0.0
|
|
11368
11466
|
*/
|
|
11369
11467
|
get methodAndUrl() {
|
|
11370
|
-
return formatMethodAndUrl(this
|
|
11468
|
+
return formatMethodAndUrl(this);
|
|
11371
11469
|
}
|
|
11372
11470
|
/**
|
|
11373
11471
|
* Builds the status code error message from the response status, optional description, and request details.
|
|
@@ -11383,7 +11481,7 @@ var StatusCodeError = class extends (/* @__PURE__ */ TaggedError2("StatusCodeErr
|
|
|
11383
11481
|
return reasonToJSON(this, super.toJSON());
|
|
11384
11482
|
}
|
|
11385
11483
|
};
|
|
11386
|
-
var DecodeError = class extends (/* @__PURE__ */
|
|
11484
|
+
var DecodeError = class extends (/* @__PURE__ */ ReasonError("DecodeError")) {
|
|
11387
11485
|
/**
|
|
11388
11486
|
* Formats the request method and URL for response decoding error messages.
|
|
11389
11487
|
*
|
|
@@ -11391,7 +11489,7 @@ var DecodeError = class extends (/* @__PURE__ */ TaggedError2("DecodeError")) {
|
|
|
11391
11489
|
* @since 4.0.0
|
|
11392
11490
|
*/
|
|
11393
11491
|
get methodAndUrl() {
|
|
11394
|
-
return formatMethodAndUrl(this
|
|
11492
|
+
return formatMethodAndUrl(this);
|
|
11395
11493
|
}
|
|
11396
11494
|
/**
|
|
11397
11495
|
* Builds the response decoding error message from the response status, optional description, and request details.
|
|
@@ -11407,7 +11505,7 @@ var DecodeError = class extends (/* @__PURE__ */ TaggedError2("DecodeError")) {
|
|
|
11407
11505
|
return reasonToJSON(this, super.toJSON());
|
|
11408
11506
|
}
|
|
11409
11507
|
};
|
|
11410
|
-
var EmptyBodyError = class extends (/* @__PURE__ */
|
|
11508
|
+
var EmptyBodyError = class extends (/* @__PURE__ */ ReasonError("EmptyBodyError")) {
|
|
11411
11509
|
/**
|
|
11412
11510
|
* Formats the request method and URL for empty response body error messages.
|
|
11413
11511
|
*
|
|
@@ -11415,7 +11513,7 @@ var EmptyBodyError = class extends (/* @__PURE__ */ TaggedError2("EmptyBodyError
|
|
|
11415
11513
|
* @since 4.0.0
|
|
11416
11514
|
*/
|
|
11417
11515
|
get methodAndUrl() {
|
|
11418
|
-
return formatMethodAndUrl(this
|
|
11516
|
+
return formatMethodAndUrl(this);
|
|
11419
11517
|
}
|
|
11420
11518
|
/**
|
|
11421
11519
|
* Builds the empty body error message from the response status, optional description, and request details.
|
|
@@ -11432,7 +11530,7 @@ var EmptyBodyError = class extends (/* @__PURE__ */ TaggedError2("EmptyBodyError
|
|
|
11432
11530
|
}
|
|
11433
11531
|
};
|
|
11434
11532
|
|
|
11435
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11533
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/HttpClientRequest.js
|
|
11436
11534
|
init_Function();
|
|
11437
11535
|
init_Inspectable();
|
|
11438
11536
|
init_Option();
|
|
@@ -11441,10 +11539,10 @@ init_Redactable();
|
|
|
11441
11539
|
init_Result();
|
|
11442
11540
|
init_Headers();
|
|
11443
11541
|
|
|
11444
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11542
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/HttpMethod.js
|
|
11445
11543
|
var allShort = [["GET", "get"], ["POST", "post"], ["PUT", "put"], ["DELETE", "del"], ["PATCH", "patch"], ["HEAD", "head"], ["OPTIONS", "options"], ["TRACE", "trace"], ["QUERY", "query"]];
|
|
11446
11544
|
|
|
11447
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11545
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/internal/httpBody.js
|
|
11448
11546
|
init_Headers();
|
|
11449
11547
|
var updateHeaders = (headers, body) => {
|
|
11450
11548
|
if (body._tag === "Empty" || body._tag === "FormData") {
|
|
@@ -11458,7 +11556,7 @@ var updateContentLength = (headers, body) => {
|
|
|
11458
11556
|
return contentLength === void 0 ? remove2(headers, "content-length") : set2(headers, "content-length", contentLength.toString());
|
|
11459
11557
|
};
|
|
11460
11558
|
|
|
11461
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11559
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/Url.js
|
|
11462
11560
|
init_Data();
|
|
11463
11561
|
init_Result();
|
|
11464
11562
|
init_urlParams();
|
|
@@ -11494,7 +11592,7 @@ var baseUrl = () => {
|
|
|
11494
11592
|
return void 0;
|
|
11495
11593
|
};
|
|
11496
11594
|
|
|
11497
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11595
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/HttpClientRequest.js
|
|
11498
11596
|
init_UrlParams();
|
|
11499
11597
|
var TypeId27 = "~effect/http/HttpClientRequest";
|
|
11500
11598
|
var Proto7 = {
|
|
@@ -11599,7 +11697,7 @@ function toUrl(self) {
|
|
|
11599
11697
|
return none2();
|
|
11600
11698
|
}
|
|
11601
11699
|
|
|
11602
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11700
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/HttpClientResponse.js
|
|
11603
11701
|
init_Effect();
|
|
11604
11702
|
init_Inspectable();
|
|
11605
11703
|
init_Option();
|
|
@@ -11608,7 +11706,7 @@ init_Stream();
|
|
|
11608
11706
|
init_Cookies();
|
|
11609
11707
|
init_Headers();
|
|
11610
11708
|
|
|
11611
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11709
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/HttpIncomingMessage.js
|
|
11612
11710
|
init_Context();
|
|
11613
11711
|
init_Redactable();
|
|
11614
11712
|
var TypeId28 = "~effect/http/HttpIncomingMessage";
|
|
@@ -11620,14 +11718,14 @@ var inspect = (self, that) => {
|
|
|
11620
11718
|
};
|
|
11621
11719
|
};
|
|
11622
11720
|
|
|
11623
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11721
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/HttpClientResponse.js
|
|
11624
11722
|
init_urlParams();
|
|
11625
11723
|
|
|
11626
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11724
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/internal/webResponse.js
|
|
11627
11725
|
var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
|
|
11628
11726
|
var getWebSource = (self) => self[WebSourceSymbol]?.();
|
|
11629
11727
|
|
|
11630
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11728
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/HttpClientResponse.js
|
|
11631
11729
|
init_UrlParams();
|
|
11632
11730
|
var TypeId29 = "~effect/http/HttpClientResponse";
|
|
11633
11731
|
var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
|
|
@@ -11774,7 +11872,7 @@ var WebHttpClientResponse = class extends Class2 {
|
|
|
11774
11872
|
}
|
|
11775
11873
|
};
|
|
11776
11874
|
|
|
11777
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11875
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/HttpTraceContext.js
|
|
11778
11876
|
init_Option();
|
|
11779
11877
|
init_Headers();
|
|
11780
11878
|
var toHeaders = (span) => fromRecordUnsafe({
|
|
@@ -11785,7 +11883,7 @@ var toHeaders = (span) => fromRecordUnsafe({
|
|
|
11785
11883
|
traceparent: `00-${span.traceId.padStart(32, "0")}-${span.spanId}-${span.sampled ? "01" : "00"}`
|
|
11786
11884
|
});
|
|
11787
11885
|
|
|
11788
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11886
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/internal/tracing.js
|
|
11789
11887
|
init_Headers();
|
|
11790
11888
|
init_UrlParams();
|
|
11791
11889
|
var defaultPorts = {
|
|
@@ -11821,7 +11919,7 @@ var addHeaderAttributes = (span, phase, headers, filter6, redactedNames2) => {
|
|
|
11821
11919
|
}
|
|
11822
11920
|
};
|
|
11823
11921
|
|
|
11824
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
11922
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/HttpClient.js
|
|
11825
11923
|
init_UrlParams();
|
|
11826
11924
|
var TypeId30 = "~effect/http/HttpClient";
|
|
11827
11925
|
var HttpClient = /* @__PURE__ */ Service("effect/HttpClient");
|
|
@@ -11852,8 +11950,9 @@ var Proto8 = {
|
|
|
11852
11950
|
}]))
|
|
11853
11951
|
};
|
|
11854
11952
|
var make23 = (f2) => makeWith2((effect2) => flatMap3(effect2, (request) => withFiber2((fiber2) => {
|
|
11855
|
-
const
|
|
11856
|
-
const controller =
|
|
11953
|
+
const scope3 = fiber2.getRef(RequestScope);
|
|
11954
|
+
const controller = new AbortController();
|
|
11955
|
+
const urlParamsRedactedNames = fiber2.getRef(CurrentRedactedNames2);
|
|
11857
11956
|
const urlResult = make21(request.url, request.urlParams, getOrUndefined(request.hash));
|
|
11858
11957
|
if (isFailure2(urlResult)) {
|
|
11859
11958
|
return fail7(new HttpClientError({
|
|
@@ -11864,50 +11963,44 @@ var make23 = (f2) => makeWith2((effect2) => flatMap3(effect2, (request) => withF
|
|
|
11864
11963
|
}));
|
|
11865
11964
|
}
|
|
11866
11965
|
const url = urlResult.success;
|
|
11966
|
+
const send = (request2) => scope3 === void 0 ? f2(request2, url, controller.signal, fiber2) : flatMap3(addFinalizer2(scope3, sync2(() => controller.abort())), () => f2(request2, url, controller.signal, fiber2));
|
|
11967
|
+
const exchange = (request2, onResponse) => uninterruptibleMask2((restore) => matchCauseEffect2(restore(send(request2)), {
|
|
11968
|
+
onSuccess: (response) => {
|
|
11969
|
+
response = trackResponse(response, controller, scope3 !== void 0, urlParamsRedactedNames);
|
|
11970
|
+
onResponse?.(response);
|
|
11971
|
+
return succeed6(response);
|
|
11972
|
+
},
|
|
11973
|
+
onFailure: (cause) => {
|
|
11974
|
+
if (hasInterrupts2(cause)) {
|
|
11975
|
+
controller.abort();
|
|
11976
|
+
}
|
|
11977
|
+
addFailureRedactedNames(cause, urlParamsRedactedNames);
|
|
11978
|
+
return failCause3(cause);
|
|
11979
|
+
}
|
|
11980
|
+
}));
|
|
11867
11981
|
const tracerDisabled = fiber2.getRef(DisablePropagation) || fiber2.getRef(TracerDisabledWhen)(request);
|
|
11868
11982
|
if (tracerDisabled) {
|
|
11869
|
-
|
|
11870
|
-
if (scopedController) return map6(effect3, (response) => trackResponse(response, controller, true));
|
|
11871
|
-
return uninterruptibleMask2((restore) => matchCauseEffect2(restore(effect3), {
|
|
11872
|
-
onSuccess(response) {
|
|
11873
|
-
return succeed6(trackResponse(response, controller, false));
|
|
11874
|
-
},
|
|
11875
|
-
onFailure(cause) {
|
|
11876
|
-
if (hasInterrupts2(cause)) {
|
|
11877
|
-
controller.abort();
|
|
11878
|
-
}
|
|
11879
|
-
return failCause3(cause);
|
|
11880
|
-
}
|
|
11881
|
-
}));
|
|
11983
|
+
return exchange(request);
|
|
11882
11984
|
}
|
|
11883
11985
|
return useSpan2(fiber2.getRef(SpanNameGenerator)(request), {
|
|
11884
11986
|
kind: "client"
|
|
11885
11987
|
}, (span) => {
|
|
11886
11988
|
span.attribute("http.request.method", request.method);
|
|
11887
11989
|
const redactedHeaderNames = fiber2.getRef(CurrentRedactedNames);
|
|
11888
|
-
addUrlAttributes(span, url, redactedNames(request.urlParams,
|
|
11990
|
+
addUrlAttributes(span, url, redactedNames(request.urlParams, urlParamsRedactedNames));
|
|
11889
11991
|
const headerFilter = fiber2.getRef(TracerHeaderFilter);
|
|
11890
11992
|
addHeaderAttributes(span, "request", request.headers, headerFilter, redactedHeaderNames);
|
|
11891
11993
|
request = fiber2.getRef(TracerPropagationEnabled) ? setHeaders(request, toHeaders(span)) : request;
|
|
11892
|
-
return
|
|
11994
|
+
return withParentSpan2(exchange(request, (response) => {
|
|
11995
|
+
span.attribute("http.response.status_code", response.status);
|
|
11996
|
+
addHeaderAttributes(span, "response", response.headers, headerFilter, redactedHeaderNames);
|
|
11997
|
+
if (response.status >= 400 && response.status < 600) {
|
|
11998
|
+
span.attribute("error.type", String(response.status));
|
|
11999
|
+
endSpanWithStatusError(fiber2, span, request, response);
|
|
12000
|
+
}
|
|
12001
|
+
}), span, {
|
|
11893
12002
|
captureStackTrace: false
|
|
11894
|
-
})
|
|
11895
|
-
onSuccess: (response) => {
|
|
11896
|
-
span.attribute("http.response.status_code", response.status);
|
|
11897
|
-
addHeaderAttributes(span, "response", response.headers, headerFilter, redactedHeaderNames);
|
|
11898
|
-
if (response.status >= 400 && response.status < 600) {
|
|
11899
|
-
span.attribute("error.type", String(response.status));
|
|
11900
|
-
endSpanWithStatusError(fiber2, span, request, response);
|
|
11901
|
-
}
|
|
11902
|
-
return succeed6(trackResponse(response, controller, scopedController !== void 0));
|
|
11903
|
-
},
|
|
11904
|
-
onFailure(cause) {
|
|
11905
|
-
if (!scopedController && hasInterrupts2(cause)) {
|
|
11906
|
-
controller.abort();
|
|
11907
|
-
}
|
|
11908
|
-
return failCause3(cause);
|
|
11909
|
-
}
|
|
11910
|
-
})));
|
|
12003
|
+
});
|
|
11911
12004
|
});
|
|
11912
12005
|
})), succeed6);
|
|
11913
12006
|
var endSpanWithStatusError = (fiber2, span, request, response) => {
|
|
@@ -11970,12 +12063,16 @@ var responseRegistry = /* @__PURE__ */ (() => {
|
|
|
11970
12063
|
}
|
|
11971
12064
|
};
|
|
11972
12065
|
})();
|
|
11973
|
-
var
|
|
12066
|
+
var RequestScope = /* @__PURE__ */ Reference("effect/http/HttpClient/RequestScope", {
|
|
12067
|
+
defaultValue: () => void 0
|
|
12068
|
+
});
|
|
11974
12069
|
var responseControllers = /* @__PURE__ */ new WeakMap();
|
|
11975
|
-
var trackResponse = (response, controller, scoped4) => {
|
|
12070
|
+
var trackResponse = (response, controller, scoped4, urlParamsRedactedNames) => {
|
|
12071
|
+
addResponseRedactedNames(response, urlParamsRedactedNames);
|
|
11976
12072
|
if (!scoped4) {
|
|
11977
12073
|
responseRegistry.register(response, controller);
|
|
11978
12074
|
response = new InterruptibleResponse(response, controller);
|
|
12075
|
+
addResponseRedactedNames(response, urlParamsRedactedNames);
|
|
11979
12076
|
}
|
|
11980
12077
|
responseControllers.set(response, controller);
|
|
11981
12078
|
return response;
|
|
@@ -12057,20 +12154,20 @@ var InterruptibleResponse = class {
|
|
|
12057
12154
|
}
|
|
12058
12155
|
};
|
|
12059
12156
|
|
|
12060
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.1.
|
|
12157
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1_3efd4f7a6641f6dae2558c6ebd9904b5/node_modules/@effect/platform-node/dist/NodeHttpClient.js
|
|
12061
12158
|
init_UrlParams();
|
|
12062
12159
|
init_Inspectable();
|
|
12063
12160
|
init_Option();
|
|
12064
12161
|
init_Pipeable();
|
|
12065
12162
|
|
|
12066
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.1.
|
|
12163
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1_3efd4f7a6641f6dae2558c6ebd9904b5/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
|
|
12067
12164
|
init_Effect();
|
|
12068
12165
|
init_Headers();
|
|
12069
12166
|
init_UrlParams();
|
|
12070
12167
|
init_Inspectable();
|
|
12071
12168
|
init_Option();
|
|
12072
12169
|
|
|
12073
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
12170
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4_4124a821774410983a4033715c01c6fa/node_modules/@effect/platform-node-shared/dist/NodeStream.js
|
|
12074
12171
|
init_Array();
|
|
12075
12172
|
init_ByteSize();
|
|
12076
12173
|
init_Cause();
|
|
@@ -12082,7 +12179,7 @@ init_MutableRef();
|
|
|
12082
12179
|
init_Scope();
|
|
12083
12180
|
init_Stream();
|
|
12084
12181
|
|
|
12085
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
12182
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4_4124a821774410983a4033715c01c6fa/node_modules/@effect/platform-node-shared/dist/internal/stream.js
|
|
12086
12183
|
var destroyStream = (stream3, cleanup, onDestroyed) => {
|
|
12087
12184
|
if (!("closed" in stream3)) {
|
|
12088
12185
|
cleanup();
|
|
@@ -12113,7 +12210,7 @@ var destroyStream = (stream3, cleanup, onDestroyed) => {
|
|
|
12113
12210
|
}
|
|
12114
12211
|
};
|
|
12115
12212
|
|
|
12116
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
12213
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4_4124a821774410983a4033715c01c6fa/node_modules/@effect/platform-node-shared/dist/NodeSink.js
|
|
12117
12214
|
init_Cause();
|
|
12118
12215
|
init_Channel();
|
|
12119
12216
|
init_Deferred();
|
|
@@ -12280,7 +12377,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
12280
12377
|
};
|
|
12281
12378
|
var defaultOnError = (error2) => new UnknownError2(error2);
|
|
12282
12379
|
|
|
12283
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
12380
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/http/FetchHttpClient.js
|
|
12284
12381
|
init_Context();
|
|
12285
12382
|
init_Effect();
|
|
12286
12383
|
init_Stream();
|
|
@@ -12400,14 +12497,25 @@ var fetch = /* @__PURE__ */ make23((request, url, signal, fiber2) => {
|
|
|
12400
12497
|
});
|
|
12401
12498
|
var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch));
|
|
12402
12499
|
|
|
12403
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
12500
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Runtime.js
|
|
12404
12501
|
init_Cause();
|
|
12502
|
+
init_Context();
|
|
12405
12503
|
init_Effect();
|
|
12406
12504
|
init_Exit();
|
|
12407
12505
|
init_Function();
|
|
12506
|
+
var InterruptExitCode = class extends (/* @__PURE__ */ Service()("effect/Runtime/InterruptExitCode")) {
|
|
12507
|
+
};
|
|
12408
12508
|
var defaultTeardown = (exit3, onExit4) => {
|
|
12409
12509
|
if (isSuccess3(exit3)) return onExit4(0);
|
|
12410
|
-
if (hasInterruptsOnly2(exit3.cause))
|
|
12510
|
+
if (hasInterruptsOnly2(exit3.cause)) {
|
|
12511
|
+
let code = -Infinity;
|
|
12512
|
+
for (const reason of exit3.cause.reasons) {
|
|
12513
|
+
const annotated = getOrUndefined2(reasonAnnotations2(reason), InterruptExitCode);
|
|
12514
|
+
if (annotated === void 0) return onExit4(130);
|
|
12515
|
+
code = Math.max(code, annotated);
|
|
12516
|
+
}
|
|
12517
|
+
return onExit4(code);
|
|
12518
|
+
}
|
|
12411
12519
|
return onExit4(getErrorExitCode(squash(exit3.cause)));
|
|
12412
12520
|
};
|
|
12413
12521
|
var makeRunMain = (f2) => dual((args2) => isEffect2(args2[0]), (effect2, options) => {
|
|
@@ -12453,7 +12561,7 @@ var getErrorReported = (u2) => {
|
|
|
12453
12561
|
return true;
|
|
12454
12562
|
};
|
|
12455
12563
|
|
|
12456
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
12564
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4_4124a821774410983a4033715c01c6fa/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
|
|
12457
12565
|
var runMain = /* @__PURE__ */ makeRunMain(({
|
|
12458
12566
|
fiber: fiber2,
|
|
12459
12567
|
teardown
|
|
@@ -12476,20 +12584,20 @@ var runMain = /* @__PURE__ */ makeRunMain(({
|
|
|
12476
12584
|
process.on("SIGTERM", onSigint);
|
|
12477
12585
|
});
|
|
12478
12586
|
|
|
12479
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.1.
|
|
12587
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1_3efd4f7a6641f6dae2558c6ebd9904b5/node_modules/@effect/platform-node/dist/NodeRuntime.js
|
|
12480
12588
|
var runMain2 = runMain;
|
|
12481
12589
|
|
|
12482
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.1.
|
|
12590
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1_3efd4f7a6641f6dae2558c6ebd9904b5/node_modules/@effect/platform-node/dist/NodeServices.js
|
|
12483
12591
|
init_Layer();
|
|
12484
12592
|
|
|
12485
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
12593
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4_4124a821774410983a4033715c01c6fa/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
12486
12594
|
init_Deferred();
|
|
12487
12595
|
init_Duration();
|
|
12488
12596
|
init_Effect();
|
|
12489
12597
|
init_Exit();
|
|
12490
12598
|
init_Layer();
|
|
12491
12599
|
|
|
12492
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
12600
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Path.js
|
|
12493
12601
|
init_Context();
|
|
12494
12602
|
init_Option();
|
|
12495
12603
|
var TypeId32 = "~effect/Path";
|
|
@@ -12506,15 +12614,15 @@ var make25 = (impl) => Path.of({
|
|
|
12506
12614
|
}
|
|
12507
12615
|
});
|
|
12508
12616
|
|
|
12509
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
12617
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4_4124a821774410983a4033715c01c6fa/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
12510
12618
|
init_Predicate();
|
|
12511
12619
|
|
|
12512
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
12620
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/process/ChildProcess.js
|
|
12513
12621
|
init_Context();
|
|
12514
12622
|
init_Effectable();
|
|
12515
12623
|
init_Result();
|
|
12516
12624
|
|
|
12517
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
12625
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Brand.js
|
|
12518
12626
|
init_Option();
|
|
12519
12627
|
init_Result();
|
|
12520
12628
|
function nominal() {
|
|
@@ -12525,7 +12633,7 @@ function nominal() {
|
|
|
12525
12633
|
});
|
|
12526
12634
|
}
|
|
12527
12635
|
|
|
12528
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
12636
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/process/ChildProcessSpawner.js
|
|
12529
12637
|
init_Context();
|
|
12530
12638
|
init_Effect();
|
|
12531
12639
|
init_Inspectable();
|
|
@@ -12562,7 +12670,7 @@ var make26 = (spawn2) => {
|
|
|
12562
12670
|
var ChildProcessSpawner = class extends (/* @__PURE__ */ Service()("effect/process/ChildProcessSpawner")) {
|
|
12563
12671
|
};
|
|
12564
12672
|
|
|
12565
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
12673
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/process/CommandLine.js
|
|
12566
12674
|
init_Data();
|
|
12567
12675
|
init_Redacted();
|
|
12568
12676
|
init_Result();
|
|
@@ -12735,7 +12843,7 @@ var parseTemplate = (texts, values) => {
|
|
|
12735
12843
|
return succeed2(words);
|
|
12736
12844
|
};
|
|
12737
12845
|
|
|
12738
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
12846
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/process/ChildProcess.js
|
|
12739
12847
|
var TypeId33 = "~effect/process/ChildProcess";
|
|
12740
12848
|
var Proto9 = {
|
|
12741
12849
|
.../* @__PURE__ */ Prototype2({
|
|
@@ -12810,12 +12918,13 @@ var shellScript = (templates2, expressions) => {
|
|
|
12810
12918
|
return script;
|
|
12811
12919
|
};
|
|
12812
12920
|
|
|
12813
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
12921
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4_4124a821774410983a4033715c01c6fa/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
12814
12922
|
init_Redacted();
|
|
12923
|
+
init_Scope();
|
|
12815
12924
|
init_Sink();
|
|
12816
12925
|
init_Stream();
|
|
12817
12926
|
|
|
12818
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
12927
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4_4124a821774410983a4033715c01c6fa/node_modules/@effect/platform-node-shared/dist/internal/nodeChildProcessSpawner.js
|
|
12819
12928
|
var buildSpawnOptions = (options, base, platform) => {
|
|
12820
12929
|
const detached = options.detached ?? platform !== "win32";
|
|
12821
12930
|
return {
|
|
@@ -12826,7 +12935,7 @@ var buildSpawnOptions = (options, base, platform) => {
|
|
|
12826
12935
|
};
|
|
12827
12936
|
};
|
|
12828
12937
|
|
|
12829
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
12938
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4_4124a821774410983a4033715c01c6fa/node_modules/@effect/platform-node-shared/dist/internal/utils.js
|
|
12830
12939
|
var handleErrnoException = (module, method) => (err, [path]) => {
|
|
12831
12940
|
let reason = "Unknown";
|
|
12832
12941
|
switch (err.code) {
|
|
@@ -12863,7 +12972,7 @@ var handleErrnoException = (module, method) => (err, [path]) => {
|
|
|
12863
12972
|
});
|
|
12864
12973
|
};
|
|
12865
12974
|
|
|
12866
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
12975
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4_4124a821774410983a4033715c01c6fa/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
12867
12976
|
var toError = (error2) => error2 instanceof globalThis.Error ? error2 : new globalThis.Error(String(error2));
|
|
12868
12977
|
var toPlatformError = (method, error2, command2) => {
|
|
12869
12978
|
const {
|
|
@@ -13290,11 +13399,7 @@ var make29 = /* @__PURE__ */ gen2(function* () {
|
|
|
13290
13399
|
const cwd = yield* resolveWorkingDirectory(cmd.options);
|
|
13291
13400
|
const env = resolveEnvironment(cmd.options);
|
|
13292
13401
|
const stdio = buildStdioArray(stdinConfig, stdoutConfig, stderrConfig, resolvedAdditionalFds);
|
|
13293
|
-
const
|
|
13294
|
-
cwd,
|
|
13295
|
-
env,
|
|
13296
|
-
stdio
|
|
13297
|
-
}, process.platform)), fnUntraced2(function* ([childProcess2, exitSignal2]) {
|
|
13402
|
+
const releaseProcess = fnUntraced2(function* (childProcess2, exitSignal2) {
|
|
13298
13403
|
const exited = yield* isDone2(exitSignal2);
|
|
13299
13404
|
if (exited) {
|
|
13300
13405
|
const [code] = yield* _await(exitSignal2);
|
|
@@ -13309,6 +13414,15 @@ var make29 = /* @__PURE__ */ gen2(function* () {
|
|
|
13309
13414
|
return;
|
|
13310
13415
|
}
|
|
13311
13416
|
yield* ignore2(terminateProcessGroup(cmd, childProcess2, exitSignal2, cmd.options));
|
|
13417
|
+
});
|
|
13418
|
+
const inputScope = makeUnsafe3();
|
|
13419
|
+
const [childProcess, exitSignal] = yield* acquireRelease2(spawn2(cmd, buildSpawnOptions(cmd.options, {
|
|
13420
|
+
cwd,
|
|
13421
|
+
env,
|
|
13422
|
+
stdio
|
|
13423
|
+
}, process.platform)), ([childProcess2, exitSignal2], exit3) => all2([close(inputScope, exit3), releaseProcess(childProcess2, exitSignal2)], {
|
|
13424
|
+
concurrency: "unbounded",
|
|
13425
|
+
discard: true
|
|
13312
13426
|
}));
|
|
13313
13427
|
const pid = ProcessId(childProcess.pid);
|
|
13314
13428
|
if (cmd.options.detached !== false) {
|
|
@@ -13332,7 +13446,7 @@ var make29 = /* @__PURE__ */ gen2(function* () {
|
|
|
13332
13446
|
return reref;
|
|
13333
13447
|
});
|
|
13334
13448
|
const inputFailure = makeUnsafe2();
|
|
13335
|
-
const stdin = yield* setupChildStdin(cmd, childProcess, stdinConfig, inputFailure);
|
|
13449
|
+
const stdin = yield* provide(inputScope)(setupChildStdin(cmd, childProcess, stdinConfig, inputFailure));
|
|
13336
13450
|
const {
|
|
13337
13451
|
all: all3,
|
|
13338
13452
|
stderr,
|
|
@@ -13341,7 +13455,7 @@ var make29 = /* @__PURE__ */ gen2(function* () {
|
|
|
13341
13455
|
const {
|
|
13342
13456
|
getInputFd,
|
|
13343
13457
|
getOutputFd
|
|
13344
|
-
} = yield* setupAdditionalFds(cmd, childProcess, resolvedAdditionalFds, inputFailure);
|
|
13458
|
+
} = yield* provide(inputScope)(setupAdditionalFds(cmd, childProcess, resolvedAdditionalFds, inputFailure));
|
|
13345
13459
|
const isRunning = map6(isDone2(exitSignal), (done4) => !done4);
|
|
13346
13460
|
const exitCode = flatMap3(raceFirst2(_await(exitSignal), _await(inputFailure)), ([code, signal]) => {
|
|
13347
13461
|
if (isDoneUnsafe(inputFailure)) {
|
|
@@ -13481,7 +13595,7 @@ var flattenCommand = (command2) => {
|
|
|
13481
13595
|
};
|
|
13482
13596
|
};
|
|
13483
13597
|
|
|
13484
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
13598
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4_4124a821774410983a4033715c01c6fa/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
|
|
13485
13599
|
init_BigInt();
|
|
13486
13600
|
init_ByteSize();
|
|
13487
13601
|
init_Cause();
|
|
@@ -13644,7 +13758,10 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
13644
13758
|
const nodeStat = /* @__PURE__ */ effectify(NFS__namespace.fstat, /* @__PURE__ */ handleErrnoException("FileSystem", "stat"), /* @__PURE__ */ handleBadArgument("stat"));
|
|
13645
13759
|
const nodeTruncate = /* @__PURE__ */ effectify(NFS__namespace.ftruncate, /* @__PURE__ */ handleErrnoException("FileSystem", "truncate"), /* @__PURE__ */ handleBadArgument("truncate"));
|
|
13646
13760
|
const nodeSync = /* @__PURE__ */ effectify(NFS__namespace.fsync, /* @__PURE__ */ handleErrnoException("FileSystem", "sync"), /* @__PURE__ */ handleBadArgument("sync"));
|
|
13647
|
-
const nodeWriteFactory = (method) =>
|
|
13761
|
+
const nodeWriteFactory = (method) => {
|
|
13762
|
+
const write2 = effectify(NFS__namespace.write, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
13763
|
+
return (fd, buffer3, position) => write2(fd, buffer3, 0, buffer3.length, position);
|
|
13764
|
+
};
|
|
13648
13765
|
const nodeWrite = /* @__PURE__ */ nodeWriteFactory("write");
|
|
13649
13766
|
const nodeWriteAll = /* @__PURE__ */ nodeWriteFactory("writeAll");
|
|
13650
13767
|
class FileImpl {
|
|
@@ -13745,7 +13862,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
13745
13862
|
write(buffer3) {
|
|
13746
13863
|
return suspend2(() => {
|
|
13747
13864
|
const position = this.position;
|
|
13748
|
-
return flatMap3(this.append ? succeed6(void 0) : positionToNumber(position, "write"), (nodePosition) => map6(nodeWrite(this.fd, buffer3,
|
|
13865
|
+
return flatMap3(this.append ? succeed6(void 0) : positionToNumber(position, "write"), (nodePosition) => map6(nodeWrite(this.fd, buffer3, nodePosition), (bytesWritten) => {
|
|
13749
13866
|
if (!this.append) {
|
|
13750
13867
|
this.position = position + BigInt(bytesWritten);
|
|
13751
13868
|
}
|
|
@@ -13756,7 +13873,7 @@ var makeFile = /* @__PURE__ */ (() => {
|
|
|
13756
13873
|
writeAllChunk(buffer3) {
|
|
13757
13874
|
return suspend2(() => {
|
|
13758
13875
|
const position = this.position;
|
|
13759
|
-
return flatMap3(this.append ? succeed6(void 0) : positionToNumber(position, "writeAll"), (nodePosition) => flatMap3(nodeWriteAll(this.fd, buffer3,
|
|
13876
|
+
return flatMap3(this.append ? succeed6(void 0) : positionToNumber(position, "writeAll"), (nodePosition) => flatMap3(nodeWriteAll(this.fd, buffer3, nodePosition), (bytesWritten) => {
|
|
13760
13877
|
if (bytesWritten === 0) {
|
|
13761
13878
|
return fail7(systemError({
|
|
13762
13879
|
module: "FileSystem",
|
|
@@ -13971,10 +14088,10 @@ var makeFileSystem = /* @__PURE__ */ map6(/* @__PURE__ */ serviceOption2(WatchBa
|
|
|
13971
14088
|
}));
|
|
13972
14089
|
var layer4 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
|
|
13973
14090
|
|
|
13974
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.1.
|
|
14091
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1_3efd4f7a6641f6dae2558c6ebd9904b5/node_modules/@effect/platform-node/dist/NodeFileSystem.js
|
|
13975
14092
|
var layer5 = layer4;
|
|
13976
14093
|
|
|
13977
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
14094
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4_4124a821774410983a4033715c01c6fa/node_modules/@effect/platform-node-shared/dist/NodePath.js
|
|
13978
14095
|
init_Effect();
|
|
13979
14096
|
init_Layer();
|
|
13980
14097
|
var fileUrlOps = (windows) => ({
|
|
@@ -14004,14 +14121,14 @@ var layer6 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make25({
|
|
|
14004
14121
|
.../* @__PURE__ */ fileUrlOps(void 0)
|
|
14005
14122
|
}));
|
|
14006
14123
|
|
|
14007
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.1.
|
|
14124
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1_3efd4f7a6641f6dae2558c6ebd9904b5/node_modules/@effect/platform-node/dist/NodePath.js
|
|
14008
14125
|
var layer7 = layer6;
|
|
14009
14126
|
|
|
14010
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
14127
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4_4124a821774410983a4033715c01c6fa/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
14011
14128
|
init_Effect();
|
|
14012
14129
|
init_Layer();
|
|
14013
14130
|
|
|
14014
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
14131
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Stdio.js
|
|
14015
14132
|
init_Context();
|
|
14016
14133
|
init_Effect();
|
|
14017
14134
|
var TypeId34 = "~effect/Stdio";
|
|
@@ -14024,7 +14141,7 @@ var make30 = (options) => ({
|
|
|
14024
14141
|
...options
|
|
14025
14142
|
});
|
|
14026
14143
|
|
|
14027
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
14144
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4_4124a821774410983a4033715c01c6fa/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
14028
14145
|
var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make30({
|
|
14029
14146
|
args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
|
|
14030
14147
|
stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
|
|
@@ -14062,10 +14179,10 @@ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make30({
|
|
|
14062
14179
|
})
|
|
14063
14180
|
}));
|
|
14064
14181
|
|
|
14065
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.1.
|
|
14182
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1_3efd4f7a6641f6dae2558c6ebd9904b5/node_modules/@effect/platform-node/dist/NodeStdio.js
|
|
14066
14183
|
var layer9 = layer8;
|
|
14067
14184
|
|
|
14068
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
14185
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4_4124a821774410983a4033715c01c6fa/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
|
|
14069
14186
|
init_Effect();
|
|
14070
14187
|
init_Layer();
|
|
14071
14188
|
init_Option();
|
|
@@ -14073,7 +14190,7 @@ init_Predicate();
|
|
|
14073
14190
|
init_Queue();
|
|
14074
14191
|
init_RcRef();
|
|
14075
14192
|
|
|
14076
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
14193
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Terminal.js
|
|
14077
14194
|
init_Context();
|
|
14078
14195
|
init_Predicate();
|
|
14079
14196
|
init_Schema();
|
|
@@ -14096,10 +14213,8 @@ var make31 = (impl) => Terminal.of({
|
|
|
14096
14213
|
[TypeId35]: TypeId35
|
|
14097
14214
|
});
|
|
14098
14215
|
var make32 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQuit) {
|
|
14099
|
-
const stdin = process.stdin;
|
|
14100
|
-
const stdout = process.stdout;
|
|
14101
14216
|
const lines2 = yield* make10();
|
|
14102
|
-
let inputEnded =
|
|
14217
|
+
let inputEnded = false;
|
|
14103
14218
|
let readlineActive = false;
|
|
14104
14219
|
const onStdinEnd = () => {
|
|
14105
14220
|
inputEnded = true;
|
|
@@ -14107,12 +14222,24 @@ var make32 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
|
|
|
14107
14222
|
endUnsafe(lines2);
|
|
14108
14223
|
}
|
|
14109
14224
|
};
|
|
14110
|
-
stdin
|
|
14111
|
-
|
|
14225
|
+
let stdin;
|
|
14226
|
+
const getStdin = () => {
|
|
14227
|
+
if (stdin === void 0) {
|
|
14228
|
+
stdin = process.stdin;
|
|
14229
|
+
if (stdin.readableEnded) {
|
|
14230
|
+
onStdinEnd();
|
|
14231
|
+
} else {
|
|
14232
|
+
stdin.once("end", onStdinEnd);
|
|
14233
|
+
}
|
|
14234
|
+
}
|
|
14235
|
+
return stdin;
|
|
14236
|
+
};
|
|
14237
|
+
yield* addFinalizer3(() => sync2(() => stdin?.off("end", onStdinEnd)));
|
|
14112
14238
|
const rlRef = yield* make12({
|
|
14113
14239
|
acquire: acquireRelease2(sync2(() => {
|
|
14240
|
+
const stdin2 = getStdin();
|
|
14114
14241
|
const rl = readline__namespace.createInterface({
|
|
14115
|
-
input:
|
|
14242
|
+
input: stdin2,
|
|
14116
14243
|
escapeCodeTimeout: 50
|
|
14117
14244
|
});
|
|
14118
14245
|
const onLine = (line) => offerUnsafe(lines2, line);
|
|
@@ -14121,7 +14248,7 @@ var make32 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
|
|
|
14121
14248
|
endUnsafe(lines2);
|
|
14122
14249
|
};
|
|
14123
14250
|
readlineActive = true;
|
|
14124
|
-
readline__namespace.emitKeypressEvents(
|
|
14251
|
+
readline__namespace.emitKeypressEvents(stdin2, rl);
|
|
14125
14252
|
rl.on("line", onLine);
|
|
14126
14253
|
rl.once("close", onClose);
|
|
14127
14254
|
return {
|
|
@@ -14145,15 +14272,17 @@ var make32 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
|
|
|
14145
14272
|
idleTimeToLive: "10 millis"
|
|
14146
14273
|
});
|
|
14147
14274
|
const setRawMode = (enabled) => sync2(() => {
|
|
14148
|
-
|
|
14275
|
+
const stdin2 = getStdin();
|
|
14276
|
+
if (stdin2.isTTY) stdin2.setRawMode(enabled);
|
|
14149
14277
|
});
|
|
14150
14278
|
const rawModeRef = yield* make12({
|
|
14151
14279
|
acquire: acquireRelease2(setRawMode(true), () => setRawMode(false)),
|
|
14152
14280
|
idleTimeToLive: "10 millis"
|
|
14153
14281
|
});
|
|
14154
|
-
const columns = sync2(() => stdout.columns ?? 0);
|
|
14155
|
-
const rows = sync2(() => stdout.rows ?? 0);
|
|
14282
|
+
const columns = sync2(() => process.stdout.columns ?? 0);
|
|
14283
|
+
const rows = sync2(() => process.stdout.rows ?? 0);
|
|
14156
14284
|
const size = gen2(function* () {
|
|
14285
|
+
const stdout = process.stdout;
|
|
14157
14286
|
const queue = yield* sliding(1);
|
|
14158
14287
|
const onResize = () => offerUnsafe(queue, {
|
|
14159
14288
|
columns: stdout.columns ?? 0,
|
|
@@ -14168,6 +14297,7 @@ var make32 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
|
|
|
14168
14297
|
return queue;
|
|
14169
14298
|
});
|
|
14170
14299
|
const readInput = gen2(function* () {
|
|
14300
|
+
const stdin2 = getStdin();
|
|
14171
14301
|
const queue = yield* make10();
|
|
14172
14302
|
const handleKeypress = (s3, k2) => {
|
|
14173
14303
|
const userInput = {
|
|
@@ -14192,16 +14322,16 @@ var make32 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
|
|
|
14192
14322
|
};
|
|
14193
14323
|
yield* addFinalizer3(() => sync2(() => {
|
|
14194
14324
|
clearInterval(keepAlive);
|
|
14195
|
-
|
|
14196
|
-
|
|
14325
|
+
stdin2.off("keypress", handleKeypress);
|
|
14326
|
+
stdin2.off("end", handleEnd);
|
|
14197
14327
|
}));
|
|
14198
|
-
|
|
14328
|
+
stdin2.on("keypress", handleKeypress);
|
|
14199
14329
|
if (inputEnded) {
|
|
14200
14330
|
handleEnd();
|
|
14201
14331
|
} else {
|
|
14202
14332
|
yield* get3(rlRef);
|
|
14203
14333
|
yield* get3(rawModeRef);
|
|
14204
|
-
|
|
14334
|
+
stdin2.once("end", handleEnd);
|
|
14205
14335
|
}
|
|
14206
14336
|
return queue;
|
|
14207
14337
|
});
|
|
@@ -14210,7 +14340,7 @@ var make32 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
|
|
|
14210
14340
|
onSome: succeed6
|
|
14211
14341
|
})), mapError2(() => new QuitError({}))));
|
|
14212
14342
|
const display2 = (prompt) => uninterruptible2(callback2((resume) => {
|
|
14213
|
-
stdout.write(prompt, (err) => isNullish(err) ? resume(void_3) : resume(fail7(badArgument({
|
|
14343
|
+
process.stdout.write(prompt, (err) => isNullish(err) ? resume(void_3) : resume(fail7(badArgument({
|
|
14214
14344
|
module: "Terminal",
|
|
14215
14345
|
method: "display",
|
|
14216
14346
|
description: "Failed to write prompt to stdout",
|
|
@@ -14232,23 +14362,24 @@ function defaultShouldQuit(input) {
|
|
|
14232
14362
|
return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
|
|
14233
14363
|
}
|
|
14234
14364
|
|
|
14235
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.1.
|
|
14365
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1_3efd4f7a6641f6dae2558c6ebd9904b5/node_modules/@effect/platform-node/dist/NodeTerminal.js
|
|
14236
14366
|
var layer11 = layer10;
|
|
14237
14367
|
|
|
14238
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.1.
|
|
14368
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.1.3_effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1_3efd4f7a6641f6dae2558c6ebd9904b5/node_modules/@effect/platform-node/dist/NodeServices.js
|
|
14239
14369
|
var layer12 = /* @__PURE__ */ provideMerge(layer3, /* @__PURE__ */ mergeAll2(layer5, layer7, layer9, layer11));
|
|
14240
14370
|
|
|
14241
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
14371
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/Argument.js
|
|
14242
14372
|
init_Function();
|
|
14243
14373
|
|
|
14244
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
14374
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/Param.js
|
|
14375
|
+
init_Context();
|
|
14245
14376
|
init_Effect();
|
|
14246
14377
|
init_Function();
|
|
14247
14378
|
init_Option();
|
|
14248
14379
|
init_Pipeable();
|
|
14249
14380
|
init_Predicate();
|
|
14250
14381
|
|
|
14251
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
14382
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/CliError.js
|
|
14252
14383
|
init_Predicate();
|
|
14253
14384
|
init_Schema();
|
|
14254
14385
|
var TypeId36 = "~effect/cli/CliError";
|
|
@@ -14486,7 +14617,7 @@ var ShowHelp = class extends (/* @__PURE__ */ TaggedError3(`${TypeId36}/ShowHelp
|
|
|
14486
14617
|
}
|
|
14487
14618
|
};
|
|
14488
14619
|
|
|
14489
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
14620
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/Primitive.js
|
|
14490
14621
|
init_Effect();
|
|
14491
14622
|
init_Formatter();
|
|
14492
14623
|
init_Function();
|
|
@@ -14559,7 +14690,7 @@ var getTypeName = (primitive) => {
|
|
|
14559
14690
|
var getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
|
|
14560
14691
|
var getPathType = (primitive) => primitive._tag === "Path" ? primitive.pathType : void 0;
|
|
14561
14692
|
|
|
14562
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
14693
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/Prompt.js
|
|
14563
14694
|
init_Array();
|
|
14564
14695
|
init_Context();
|
|
14565
14696
|
init_Data();
|
|
@@ -14572,7 +14703,7 @@ init_Predicate();
|
|
|
14572
14703
|
init_Queue();
|
|
14573
14704
|
init_Redacted();
|
|
14574
14705
|
|
|
14575
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
14706
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/ansi.js
|
|
14576
14707
|
var ESC = "\x1B[";
|
|
14577
14708
|
var BEL = "\x07";
|
|
14578
14709
|
var reset = `${ESC}0m`;
|
|
@@ -14637,7 +14768,7 @@ var eraseLines = (rows) => {
|
|
|
14637
14768
|
return command2;
|
|
14638
14769
|
};
|
|
14639
14770
|
|
|
14640
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
14771
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/Prompt.js
|
|
14641
14772
|
var TypeId38 = "~effect/cli/Prompt";
|
|
14642
14773
|
var isPrompt = (u2) => hasProperty(u2, TypeId38);
|
|
14643
14774
|
var defaultTheme = {
|
|
@@ -16279,7 +16410,7 @@ var entriesToDisplay = (cursor, total, maxVisible) => {
|
|
|
16279
16410
|
};
|
|
16280
16411
|
};
|
|
16281
16412
|
|
|
16282
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
16413
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/TerminalCapabilities.js
|
|
16283
16414
|
init_Context();
|
|
16284
16415
|
var TerminalCapabilities = /* @__PURE__ */ Reference("effect/cli/TerminalCapabilities", {
|
|
16285
16416
|
defaultValue: () => fromProcess()
|
|
@@ -16311,7 +16442,7 @@ var fromProcess = () => {
|
|
|
16311
16442
|
});
|
|
16312
16443
|
};
|
|
16313
16444
|
|
|
16314
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
16445
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/Param.js
|
|
16315
16446
|
var TypeId39 = "~effect/cli/Param";
|
|
16316
16447
|
var argumentKind = "argument";
|
|
16317
16448
|
var flagKind = "flag";
|
|
@@ -16333,6 +16464,7 @@ var makeSingle2 = (params) => {
|
|
|
16333
16464
|
description: params.description ?? none2(),
|
|
16334
16465
|
aliases: params.aliases ?? [],
|
|
16335
16466
|
hidden: params.hidden ?? false,
|
|
16467
|
+
annotations: params.annotations ?? empty(),
|
|
16336
16468
|
parse
|
|
16337
16469
|
}, Proto11);
|
|
16338
16470
|
};
|
|
@@ -16378,7 +16510,7 @@ var map10 = /* @__PURE__ */ dual(2, (self, f2) => {
|
|
|
16378
16510
|
parse
|
|
16379
16511
|
});
|
|
16380
16512
|
});
|
|
16381
|
-
var transform3 = (self, f2, alternatives = []) => {
|
|
16513
|
+
var transform3 = (self, f2, alternatives = [], fallback) => {
|
|
16382
16514
|
const alternativeParsers = alternatives.map((alternative) => () => alternative().parse);
|
|
16383
16515
|
return Object.assign(Object.create(Proto11), {
|
|
16384
16516
|
_tag: "Transform",
|
|
@@ -16386,6 +16518,7 @@ var transform3 = (self, f2, alternatives = []) => {
|
|
|
16386
16518
|
param: self,
|
|
16387
16519
|
alternatives,
|
|
16388
16520
|
f: f2,
|
|
16521
|
+
fallback,
|
|
16389
16522
|
parse: f2(self.parse, alternativeParsers)
|
|
16390
16523
|
});
|
|
16391
16524
|
};
|
|
@@ -16408,12 +16541,17 @@ var optional3 = (param) => {
|
|
|
16408
16541
|
};
|
|
16409
16542
|
var withDefault3 = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
16410
16543
|
if (!isEffect2(defaultValue)) {
|
|
16411
|
-
return
|
|
16544
|
+
return transform3(optional3(self), (parse) => (args2) => map6(parse(args2), ([leftover, value3]) => [leftover, getOrElse(value3, () => defaultValue)]), [], {
|
|
16545
|
+
_tag: "Default",
|
|
16546
|
+
value: defaultValue
|
|
16547
|
+
});
|
|
16412
16548
|
}
|
|
16413
|
-
return
|
|
16414
|
-
onNone: () => defaultValue,
|
|
16415
|
-
onSome: succeed6
|
|
16416
|
-
}))
|
|
16549
|
+
return transform3(optional3(self), (parse) => (args2) => flatMap3(parse(args2), ([leftover, value3]) => match(value3, {
|
|
16550
|
+
onNone: () => map6(defaultValue, (b2) => [leftover, b2]),
|
|
16551
|
+
onSome: (a) => succeed6([leftover, a])
|
|
16552
|
+
})), [], {
|
|
16553
|
+
_tag: "DefaultEffect"
|
|
16554
|
+
});
|
|
16417
16555
|
});
|
|
16418
16556
|
var withFallbackPrompt = /* @__PURE__ */ dual(2, (self, prompt) => {
|
|
16419
16557
|
const runPrompt = fnUntraced2(function* (error2, args2) {
|
|
@@ -16425,7 +16563,9 @@ var withFallbackPrompt = /* @__PURE__ */ dual(2, (self, prompt) => {
|
|
|
16425
16563
|
const value3 = yield* catchTag2(run3(built), "QuitError", () => fail7(error2));
|
|
16426
16564
|
return [args2.arguments, value3];
|
|
16427
16565
|
});
|
|
16428
|
-
return transform3(self, (parse) => (args2) => parse(args2).pipe(catchTag2(["MissingOption", "MissingArgument"], (error2) => runPrompt(error2, args2)))
|
|
16566
|
+
return transform3(self, (parse) => (args2) => parse(args2).pipe(catchTag2(["MissingOption", "MissingArgument"], (error2) => runPrompt(error2, args2))), [], {
|
|
16567
|
+
_tag: "Prompt"
|
|
16568
|
+
});
|
|
16429
16569
|
});
|
|
16430
16570
|
var variadic = (self, options) => {
|
|
16431
16571
|
const single = getUnderlyingSingleOrThrow(self);
|
|
@@ -16568,7 +16708,7 @@ var transformSingle = (param, f2) => {
|
|
|
16568
16708
|
return matchParam(param, {
|
|
16569
16709
|
Single: (single) => f2(single),
|
|
16570
16710
|
Map: (mapped) => map10(transformSingle(mapped.param, f2), mapped.f),
|
|
16571
|
-
Transform: (mapped) => transform3(transformSingle(mapped.param, f2), mapped.f, mapped.alternatives.map((alternative) => () => transformSingle(alternative(), f2))),
|
|
16711
|
+
Transform: (mapped) => transform3(transformSingle(mapped.param, f2), mapped.f, mapped.alternatives.map((alternative) => () => transformSingle(alternative(), f2)), mapped.fallback),
|
|
16572
16712
|
Optional: (p2) => optional3(transformSingle(p2.param, f2)),
|
|
16573
16713
|
Variadic: (p2) => variadic(transformSingle(p2.param, f2), {
|
|
16574
16714
|
min: getOrUndefined(p2.min),
|
|
@@ -16596,35 +16736,40 @@ var getUnderlyingSingleOrThrow = (param) => {
|
|
|
16596
16736
|
return singles[0];
|
|
16597
16737
|
};
|
|
16598
16738
|
var getParamMetadata = (param) => {
|
|
16599
|
-
|
|
16600
|
-
|
|
16601
|
-
|
|
16602
|
-
|
|
16603
|
-
|
|
16604
|
-
variadicMax: none2()
|
|
16605
|
-
}),
|
|
16606
|
-
Map: (mapped) => getParamMetadata(mapped.param),
|
|
16607
|
-
Transform: (mapped) => getParamMetadata(mapped.param),
|
|
16608
|
-
Optional: (optional5) => ({
|
|
16609
|
-
...getParamMetadata(optional5.param),
|
|
16610
|
-
isOptional: true
|
|
16611
|
-
}),
|
|
16612
|
-
Variadic: (variadic2) => ({
|
|
16613
|
-
...getParamMetadata(variadic2.param),
|
|
16614
|
-
isVariadic: true,
|
|
16615
|
-
variadicMin: variadic2.min,
|
|
16616
|
-
variadicMax: variadic2.max
|
|
16617
|
-
})
|
|
16618
|
-
});
|
|
16739
|
+
const metadata = collectParamMetadata(param);
|
|
16740
|
+
return {
|
|
16741
|
+
...metadata,
|
|
16742
|
+
isRequired: !metadata.isOptional && (!metadata.isVariadic || exists(metadata.variadicMin, (min) => min > 0))
|
|
16743
|
+
};
|
|
16619
16744
|
};
|
|
16745
|
+
var collectParamMetadata = (param) => matchParam(param, {
|
|
16746
|
+
Single: () => ({
|
|
16747
|
+
isOptional: false,
|
|
16748
|
+
isVariadic: false,
|
|
16749
|
+
variadicMin: none2(),
|
|
16750
|
+
variadicMax: none2()
|
|
16751
|
+
}),
|
|
16752
|
+
Map: (mapped) => collectParamMetadata(mapped.param),
|
|
16753
|
+
Transform: (mapped) => collectParamMetadata(mapped.param),
|
|
16754
|
+
Optional: (optional5) => ({
|
|
16755
|
+
...collectParamMetadata(optional5.param),
|
|
16756
|
+
isOptional: true
|
|
16757
|
+
}),
|
|
16758
|
+
Variadic: (variadic2) => ({
|
|
16759
|
+
...collectParamMetadata(variadic2.param),
|
|
16760
|
+
isVariadic: true,
|
|
16761
|
+
variadicMin: variadic2.min,
|
|
16762
|
+
variadicMax: variadic2.max
|
|
16763
|
+
})
|
|
16764
|
+
});
|
|
16620
16765
|
|
|
16621
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
16766
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/Argument.js
|
|
16622
16767
|
var String9 = (name) => String8(argumentKind, name);
|
|
16623
16768
|
var withDescription2 = /* @__PURE__ */ dual(2, (self, description) => withDescription(self, description));
|
|
16624
16769
|
var withFallbackPrompt2 = /* @__PURE__ */ dual(2, (self, prompt) => withFallbackPrompt(self, prompt));
|
|
16625
16770
|
var mapEffect3 = /* @__PURE__ */ dual(2, (self, f2) => mapEffect2(self, f2));
|
|
16626
16771
|
|
|
16627
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
16772
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/Console.js
|
|
16628
16773
|
init_core();
|
|
16629
16774
|
init_effect();
|
|
16630
16775
|
var Console = ConsoleRef;
|
|
@@ -16636,7 +16781,7 @@ var log = (...args2) => consoleWith((console) => sync(() => {
|
|
|
16636
16781
|
console.log(...args2);
|
|
16637
16782
|
}));
|
|
16638
16783
|
|
|
16639
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
16784
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/Command.js
|
|
16640
16785
|
init_Context();
|
|
16641
16786
|
init_Effect();
|
|
16642
16787
|
init_Function();
|
|
@@ -16645,15 +16790,15 @@ init_Predicate();
|
|
|
16645
16790
|
init_References();
|
|
16646
16791
|
init_Result();
|
|
16647
16792
|
|
|
16648
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
16793
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/CliConfig.js
|
|
16649
16794
|
init_Context();
|
|
16650
16795
|
|
|
16651
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
16796
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/GlobalFlag.js
|
|
16652
16797
|
init_Context();
|
|
16653
16798
|
init_Effect();
|
|
16654
16799
|
init_Option();
|
|
16655
16800
|
|
|
16656
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
16801
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/CliOutput.js
|
|
16657
16802
|
init_Context();
|
|
16658
16803
|
init_Effect();
|
|
16659
16804
|
init_Option();
|
|
@@ -16893,10 +17038,10 @@ var formatHelpDocImpl = (doc, colors2, options) => {
|
|
|
16893
17038
|
return sections.join("\n");
|
|
16894
17039
|
};
|
|
16895
17040
|
|
|
16896
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
17041
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/completions/descriptor.js
|
|
16897
17042
|
init_Option();
|
|
16898
17043
|
|
|
16899
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
17044
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/command.js
|
|
16900
17045
|
init_Array();
|
|
16901
17046
|
init_Context();
|
|
16902
17047
|
init_Effect();
|
|
@@ -16904,7 +17049,7 @@ init_Effectable();
|
|
|
16904
17049
|
init_Option();
|
|
16905
17050
|
init_Predicate();
|
|
16906
17051
|
|
|
16907
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
17052
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/config.js
|
|
16908
17053
|
init_record();
|
|
16909
17054
|
var ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
|
|
16910
17055
|
var parseConfig = (config) => {
|
|
@@ -16970,7 +17115,7 @@ var reconstructTree = (tree, results2) => {
|
|
|
16970
17115
|
}
|
|
16971
17116
|
};
|
|
16972
17117
|
|
|
16973
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
17118
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/command.js
|
|
16974
17119
|
var TypeId40 = "~effect/cli/Command";
|
|
16975
17120
|
var toImpl = (self) => self;
|
|
16976
17121
|
var Proto12 = {
|
|
@@ -17008,7 +17153,7 @@ var makeCommand = (options) => {
|
|
|
17008
17153
|
name: single.name,
|
|
17009
17154
|
type: single.typeName ?? getTypeName(single.primitiveType),
|
|
17010
17155
|
description: single.description,
|
|
17011
|
-
required:
|
|
17156
|
+
required: metadata.isRequired,
|
|
17012
17157
|
variadic: metadata.isVariadic
|
|
17013
17158
|
});
|
|
17014
17159
|
}
|
|
@@ -17137,7 +17282,7 @@ var parseParams = /* @__PURE__ */ fnUntraced2(function* (parsedArgs, params) {
|
|
|
17137
17282
|
return [currentArguments, results2];
|
|
17138
17283
|
});
|
|
17139
17284
|
|
|
17140
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
17285
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/completions/descriptor.js
|
|
17141
17286
|
var toFlagType = (single) => {
|
|
17142
17287
|
const tag2 = single.primitiveType._tag;
|
|
17143
17288
|
switch (tag2) {
|
|
@@ -17222,15 +17367,27 @@ var toArgumentType = (single) => {
|
|
|
17222
17367
|
};
|
|
17223
17368
|
}
|
|
17224
17369
|
};
|
|
17370
|
+
var repeatableSingles = (param, repeatable) => {
|
|
17371
|
+
const p2 = param;
|
|
17372
|
+
switch (p2._tag) {
|
|
17373
|
+
case "Single":
|
|
17374
|
+
return [[p2, repeatable === true]];
|
|
17375
|
+
case "Map":
|
|
17376
|
+
case "Optional":
|
|
17377
|
+
return repeatableSingles(p2.param, repeatable);
|
|
17378
|
+
case "Transform":
|
|
17379
|
+
return [...repeatableSingles(p2.param, repeatable), ...p2.alternatives.flatMap((alternative) => repeatableSingles(alternative(), repeatable))];
|
|
17380
|
+
case "Variadic":
|
|
17381
|
+
return repeatableSingles(p2.param, repeatable ?? !exists(p2.max, (max) => max <= 1));
|
|
17382
|
+
}
|
|
17383
|
+
};
|
|
17225
17384
|
var fromCommand = (cmd, inheritedFlags = []) => {
|
|
17226
17385
|
const impl = toImpl(cmd);
|
|
17227
17386
|
const config = impl.config;
|
|
17228
17387
|
const flags = [];
|
|
17229
17388
|
const seen = /* @__PURE__ */ new Set();
|
|
17230
17389
|
for (const [index, flag] of [...config.flags, ...inheritedFlags].entries()) {
|
|
17231
|
-
const
|
|
17232
|
-
for (const single of singles) {
|
|
17233
|
-
if (single.kind !== "flag") continue;
|
|
17390
|
+
for (const [single, repeatable] of repeatableSingles(flag)) {
|
|
17234
17391
|
if (single.hidden) continue;
|
|
17235
17392
|
if (index >= config.flags.length && seen.has(single.name)) continue;
|
|
17236
17393
|
seen.add(single.name);
|
|
@@ -17240,6 +17397,7 @@ var fromCommand = (cmd, inheritedFlags = []) => {
|
|
|
17240
17397
|
description: getOrUndefined(single.description),
|
|
17241
17398
|
type: toFlagType(single),
|
|
17242
17399
|
optionalValue: single.optionalValue !== void 0,
|
|
17400
|
+
repeatable,
|
|
17243
17401
|
negation: single.negation
|
|
17244
17402
|
});
|
|
17245
17403
|
}
|
|
@@ -17253,7 +17411,7 @@ var fromCommand = (cmd, inheritedFlags = []) => {
|
|
|
17253
17411
|
args2.push({
|
|
17254
17412
|
name: single.name,
|
|
17255
17413
|
description: getOrUndefined(single.description),
|
|
17256
|
-
required: !metadata.isOptional,
|
|
17414
|
+
required: !metadata.isOptional && (!metadata.isVariadic || exists(metadata.variadicMin, (min) => min > 0)),
|
|
17257
17415
|
variadic: metadata.isVariadic,
|
|
17258
17416
|
type: toArgumentType(single)
|
|
17259
17417
|
});
|
|
@@ -17285,7 +17443,7 @@ var fromCommand = (cmd, inheritedFlags = []) => {
|
|
|
17285
17443
|
var takesSeparateValue = (flag) => flag.type._tag !== "Boolean" && flag.optionalValue !== true;
|
|
17286
17444
|
var negatedName = (flag) => flag.type._tag !== "Boolean" || flag.negation === false ? void 0 : flag.negation ?? `no-${flag.name}`;
|
|
17287
17445
|
|
|
17288
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
17446
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/completions/bash.js
|
|
17289
17447
|
var escapeForBash = (s3) => s3.replace(/'/g, "'\\''");
|
|
17290
17448
|
var sanitizeFunctionName = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
17291
17449
|
var flagNamesForWordlist = (flag) => {
|
|
@@ -17312,7 +17470,8 @@ var buildFlagGroupDeclarations = (flags, lines2) => {
|
|
|
17312
17470
|
lines2.push(` done`);
|
|
17313
17471
|
lines2.push(` local _filtered_flags=""`);
|
|
17314
17472
|
groups.forEach((forms, index) => {
|
|
17315
|
-
|
|
17473
|
+
const guard = flags[index].repeatable === true ? "" : `[[ -n "$_used_${index}" ]] || `;
|
|
17474
|
+
lines2.push(` ${guard}_filtered_flags+=" ${forms.join(" ")}"`);
|
|
17316
17475
|
});
|
|
17317
17476
|
lines2.push(``);
|
|
17318
17477
|
};
|
|
@@ -17409,12 +17568,11 @@ var pathsHelper = (helpers, lines2) => {
|
|
|
17409
17568
|
lines2.push(`}`);
|
|
17410
17569
|
lines2.push(``);
|
|
17411
17570
|
};
|
|
17571
|
+
var choicesCompletion = (values, helpers) => `${helpers.choices} "$cur" "$_comp_word" ${values.map((value3) => `'${escapeForBash(value3)}'`).join(" ")}`;
|
|
17412
17572
|
var valueCompletion = (type, helpers) => {
|
|
17413
17573
|
switch (type._tag) {
|
|
17414
|
-
case "Choice":
|
|
17415
|
-
|
|
17416
|
-
return `${helpers.choices} "$cur" "$_comp_word" ${values}`;
|
|
17417
|
-
}
|
|
17574
|
+
case "Choice":
|
|
17575
|
+
return choicesCompletion(type.values, helpers);
|
|
17418
17576
|
case "Path":
|
|
17419
17577
|
return `${helpers.paths} ${type.pathType === "directory" ? "-d" : "-f"} "$cur" "$_comp_word"`;
|
|
17420
17578
|
default:
|
|
@@ -17548,8 +17706,7 @@ var generateFunction = (descriptor, parentPath, lines2, helpers) => {
|
|
|
17548
17706
|
lines2.push(` fi`);
|
|
17549
17707
|
}
|
|
17550
17708
|
} else if (descriptor.subcommands.length > 0) {
|
|
17551
|
-
|
|
17552
|
-
lines2.push(` COMPREPLY=( $(compgen -W '${subNames.join(" ")}' -- "$cur") )`);
|
|
17709
|
+
lines2.push(` ${choicesCompletion(descriptor.subcommands.map((s3) => s3.name), helpers)}`);
|
|
17553
17710
|
}
|
|
17554
17711
|
lines2.push(`}`);
|
|
17555
17712
|
lines2.push(``);
|
|
@@ -17606,7 +17763,7 @@ var generate = (executableName, descriptor) => {
|
|
|
17606
17763
|
return lines2.join("\n");
|
|
17607
17764
|
};
|
|
17608
17765
|
|
|
17609
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
17766
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/completions/fish.js
|
|
17610
17767
|
var escapeFishString = (s3) => s3.replace(/\\/g, "\\\\").replace(/'/g, "\\'");
|
|
17611
17768
|
var escapeFishChoice = (s3) => escapeFishString(s3.replace(/[^A-Za-z0-9_.,/@%+-]/gu, "\\$&"));
|
|
17612
17769
|
var subcommandCondition = (parentPath, childSubcommandNames) => {
|
|
@@ -17710,8 +17867,8 @@ var generateCompletions = (executableName, descriptor, parentPath, lines2) => {
|
|
|
17710
17867
|
lines2.push(parts.join(" "));
|
|
17711
17868
|
}
|
|
17712
17869
|
for (const flag of descriptor.flags) {
|
|
17713
|
-
const dedup = takesSeparateValue(flag) ? valueFlagDedupCondition(flag) : flagContainsOptCondition(flag);
|
|
17714
|
-
const flagCondition = condition
|
|
17870
|
+
const dedup = flag.repeatable === true ? "" : takesSeparateValue(flag) ? valueFlagDedupCondition(flag) : flagContainsOptCondition(flag);
|
|
17871
|
+
const flagCondition = [condition, dedup].filter((part) => part !== "").join("; and ");
|
|
17715
17872
|
const flagCondArg = flagCondition ? `-n '${flagCondition}'` : ``;
|
|
17716
17873
|
const parts = [`complete -c ${executableName}`];
|
|
17717
17874
|
if (flagCondArg) parts.push(flagCondArg);
|
|
@@ -17732,7 +17889,7 @@ var generateCompletions = (executableName, descriptor, parentPath, lines2) => {
|
|
|
17732
17889
|
const notDash = `not string match -q -- "-*" (commandline -ct)`;
|
|
17733
17890
|
const bareBase = condition ? `${condition}; and ${notDash}` : notDash;
|
|
17734
17891
|
for (const flag of descriptor.flags) {
|
|
17735
|
-
const bareCondition = `${bareBase}; and ${flagContainsOptCondition(flag)}`;
|
|
17892
|
+
const bareCondition = flag.repeatable === true ? bareBase : `${bareBase}; and ${flagContainsOptCondition(flag)}`;
|
|
17736
17893
|
const negation = negatedName(flag);
|
|
17737
17894
|
const parts = [`complete -c ${executableName}`];
|
|
17738
17895
|
parts.push(`-n '${bareCondition}'`);
|
|
@@ -17784,7 +17941,7 @@ var generate2 = (executableName, descriptor) => {
|
|
|
17784
17941
|
return lines2.join("\n");
|
|
17785
17942
|
};
|
|
17786
17943
|
|
|
17787
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
17944
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/completions/powershell.js
|
|
17788
17945
|
var quotePs = (s3) => {
|
|
17789
17946
|
const parts = [];
|
|
17790
17947
|
let literal = "";
|
|
@@ -17808,7 +17965,7 @@ var flagForms = (flag) => [`--${flag.name}`, ...flag.aliases.map((alias) => alia
|
|
|
17808
17965
|
var valueFields = (type) => `values = ${psArray(type._tag === "Choice" ? type.values : [])}; pathType = ${type._tag === "Path" ? quotePs(type.pathType) : "$null"}`;
|
|
17809
17966
|
var flagEntry = (flag) => {
|
|
17810
17967
|
const negation = negatedName(flag);
|
|
17811
|
-
return `@{ name = ${quotePs(flag.name)}; forms = ${psArray(flagForms(flag))}; takesValue = $${flag.type._tag !== "Boolean"}; ` + (negation === void 0 ? "" : `negation = ${quotePs(`--${negation}`)}; `) + (flag.optionalValue === true ? `optionalValue = $true; ` : "") + `${valueFields(flag.type)}; description = ${psOptional(flag.description)} }`;
|
|
17968
|
+
return `@{ name = ${quotePs(flag.name)}; forms = ${psArray(flagForms(flag))}; takesValue = $${flag.type._tag !== "Boolean"}; ` + (negation === void 0 ? "" : `negation = ${quotePs(`--${negation}`)}; `) + (flag.optionalValue === true ? `optionalValue = $true; ` : "") + (flag.repeatable === true ? `repeatable = $true; ` : "") + `${valueFields(flag.type)}; description = ${psOptional(flag.description)} }`;
|
|
17812
17969
|
};
|
|
17813
17970
|
var argumentEntry = (argument) => `@{ name = ${quotePs(argument.name)}; variadic = $${argument.variadic}; ${valueFields(argument.type)}; description = ${psOptional(argument.description)} }`;
|
|
17814
17971
|
var pushList = (lines2, field, entries) => {
|
|
@@ -17879,7 +18036,7 @@ var completer = (dataName) => String.raw` param($wordToComplete, $commandAst, $
|
|
|
17879
18036
|
$addFlags = {
|
|
17880
18037
|
param([string]$typed)
|
|
17881
18038
|
foreach ($flag in $context.flags) {
|
|
17882
|
-
if ($used.ContainsKey($flag.name)) { continue }
|
|
18039
|
+
if (-not $flag.repeatable -and $used.ContainsKey($flag.name)) { continue }
|
|
17883
18040
|
foreach ($form in $flag.forms) {
|
|
17884
18041
|
& $add $form 'ParameterName' $flag.description $typed ''
|
|
17885
18042
|
}
|
|
@@ -18049,7 +18206,7 @@ var generate3 = (executableName, descriptor) => {
|
|
|
18049
18206
|
return lines2.join("\n");
|
|
18050
18207
|
};
|
|
18051
18208
|
|
|
18052
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
18209
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/completions/zsh.js
|
|
18053
18210
|
var escapeZsh = (s3) => s3.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
|
|
18054
18211
|
var escapeZshExplanation = (s3) => escapeZsh(s3).replace(/]/g, "\\]");
|
|
18055
18212
|
var escapeZshChoice = (s3) => s3.replace(/[^A-Za-z0-9_.,/@%+-]/gu, "\\$&").replace(/'/g, "'\\''");
|
|
@@ -18099,7 +18256,7 @@ var flagSpecs = (flag) => {
|
|
|
18099
18256
|
const optional5 = flag.optionalValue === true && flag.type._tag !== "Boolean";
|
|
18100
18257
|
const valueSuffix = optional5 ? "=-" : "";
|
|
18101
18258
|
const action = optional5 ? `:${valueAction(flag.type)}` : valueAction(flag.type);
|
|
18102
|
-
const excl = `(${allForms(flag).join(" ")})`;
|
|
18259
|
+
const excl = flag.repeatable === true ? "*" : `(${allForms(flag).join(" ")})`;
|
|
18103
18260
|
specs.push(`'${excl}--${flag.name}${valueSuffix}${desc}${action}'`);
|
|
18104
18261
|
for (const alias of flag.aliases) {
|
|
18105
18262
|
const prefix = alias.length === 1 ? "-" : "--";
|
|
@@ -18130,7 +18287,7 @@ var generateFunction2 = (descriptor, parentPath, lines2) => {
|
|
|
18130
18287
|
lines2.push(` commands=(`);
|
|
18131
18288
|
for (const sub of descriptor.subcommands) {
|
|
18132
18289
|
const desc = sub.description ? escapeZsh(sub.description) : "";
|
|
18133
|
-
lines2.push(` '${sub.name}:${desc}'`);
|
|
18290
|
+
lines2.push(` '${escapeZsh(sub.name)}:${desc}'`);
|
|
18134
18291
|
}
|
|
18135
18292
|
lines2.push(` )`);
|
|
18136
18293
|
lines2.push(``);
|
|
@@ -18219,7 +18376,7 @@ var generate4 = (executableName, descriptor) => {
|
|
|
18219
18376
|
return lines2.join("\n");
|
|
18220
18377
|
};
|
|
18221
18378
|
|
|
18222
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
18379
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/Completions.js
|
|
18223
18380
|
var fromCommand2 = (command2) => fromCommand(command2);
|
|
18224
18381
|
var generate5 = (executableName, shell, descriptor) => {
|
|
18225
18382
|
switch (shell) {
|
|
@@ -18234,7 +18391,7 @@ var generate5 = (executableName, shell, descriptor) => {
|
|
|
18234
18391
|
}
|
|
18235
18392
|
};
|
|
18236
18393
|
|
|
18237
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
18394
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/Flag.js
|
|
18238
18395
|
init_Function();
|
|
18239
18396
|
var String10 = (name) => String8(flagKind, name);
|
|
18240
18397
|
var Boolean6 = (name) => Boolean5(flagKind, name);
|
|
@@ -18247,7 +18404,7 @@ var optional4 = (param) => optional3(param);
|
|
|
18247
18404
|
var withDefault4 = withDefault3;
|
|
18248
18405
|
var withFallbackPrompt3 = /* @__PURE__ */ dual(2, (self, prompt) => withFallbackPrompt(self, prompt));
|
|
18249
18406
|
|
|
18250
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
18407
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/help.js
|
|
18251
18408
|
init_Effect();
|
|
18252
18409
|
var dedupeGlobalFlags = (flags) => {
|
|
18253
18410
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -18362,7 +18519,7 @@ var getHelpForCommandPath = (command2, commandPath, builtIns) => gen2(function*
|
|
|
18362
18519
|
};
|
|
18363
18520
|
});
|
|
18364
18521
|
|
|
18365
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
18522
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/GlobalFlag.js
|
|
18366
18523
|
var Action2 = (options) => ({
|
|
18367
18524
|
_tag: "Action",
|
|
18368
18525
|
flag: options.flag,
|
|
@@ -18428,7 +18585,7 @@ var LogLevel = /* @__PURE__ */ Setting("log-level")({
|
|
|
18428
18585
|
});
|
|
18429
18586
|
var BuiltIns = [Help, Version, Wizard, Completions, LogLevel];
|
|
18430
18587
|
|
|
18431
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
18588
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/CliConfig.js
|
|
18432
18589
|
var CliConfig = class extends (/* @__PURE__ */ Reference("effect/cli/CliConfig", {
|
|
18433
18590
|
defaultValue: () => defaults
|
|
18434
18591
|
})) {
|
|
@@ -18437,14 +18594,14 @@ var defaults = {
|
|
|
18437
18594
|
builtIns: BuiltIns
|
|
18438
18595
|
};
|
|
18439
18596
|
|
|
18440
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
18597
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/formatter.js
|
|
18441
18598
|
init_Context();
|
|
18442
18599
|
init_Effect();
|
|
18443
18600
|
var resolveFormatter = /* @__PURE__ */ contextWith2((context3) => succeed6(getOrUndefined2(context3, Formatter) ?? defaultFormatter2({
|
|
18444
18601
|
colors: get(context3, TerminalCapabilities).canColor
|
|
18445
18602
|
})));
|
|
18446
18603
|
|
|
18447
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
18604
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/lexer.js
|
|
18448
18605
|
function lex(argv) {
|
|
18449
18606
|
const endIndex = argv.indexOf("--");
|
|
18450
18607
|
if (endIndex === -1) {
|
|
@@ -18530,11 +18687,11 @@ var lexTokens = (args2) => {
|
|
|
18530
18687
|
return tokens;
|
|
18531
18688
|
};
|
|
18532
18689
|
|
|
18533
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
18690
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/parser.js
|
|
18534
18691
|
init_Effect();
|
|
18535
18692
|
init_Option();
|
|
18536
18693
|
|
|
18537
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
18694
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/auto-suggest.js
|
|
18538
18695
|
var levenshtein = (a, b2) => {
|
|
18539
18696
|
const m2 = a.length;
|
|
18540
18697
|
const n = b2.length;
|
|
@@ -18558,7 +18715,7 @@ var suggest = (input, candidates) => {
|
|
|
18558
18715
|
return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
|
|
18559
18716
|
};
|
|
18560
18717
|
|
|
18561
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
18718
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/parser.js
|
|
18562
18719
|
var getCommandPath = (parsedInput) => match(parsedInput.subcommand, {
|
|
18563
18720
|
onNone: () => [],
|
|
18564
18721
|
onSome: (subcommand) => [subcommand.name, ...getCommandPath(subcommand.parsedInput)]
|
|
@@ -19076,7 +19233,7 @@ var scanCommandLevel = (tokens, context3) => {
|
|
|
19076
19233
|
return toLeafResult(state);
|
|
19077
19234
|
};
|
|
19078
19235
|
|
|
19079
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
19236
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/internal/wizard.js
|
|
19080
19237
|
init_Effect();
|
|
19081
19238
|
init_Option();
|
|
19082
19239
|
init_Redacted();
|
|
@@ -19293,7 +19450,7 @@ var wrapCommand = (commandLine) => {
|
|
|
19293
19450
|
};
|
|
19294
19451
|
var formatShellArg = (arg) => /^[A-Za-z0-9_./:@%+=,-]+$/.test(arg) ? arg : `'${arg.replaceAll("'", `'"'"'`)}'`;
|
|
19295
19452
|
|
|
19296
|
-
// ../../node_modules/.pnpm/effect@4.1.
|
|
19453
|
+
// ../../node_modules/.pnpm/effect@4.1.3_patch_hash=bb3b600aca0483b520c5998874e4dac78a1d9494b875234b13cd57877eb45132/node_modules/effect/dist/cli/Command.js
|
|
19297
19454
|
var make33 = (name, config, handler) => {
|
|
19298
19455
|
const parsedConfig = parseConfig(config ?? {});
|
|
19299
19456
|
return makeCommand({
|
|
@@ -19403,10 +19560,11 @@ var runWith2 = (command2, config) => {
|
|
|
19403
19560
|
trailingOperands
|
|
19404
19561
|
}, command2);
|
|
19405
19562
|
const commandPath = [command2.name, ...getCommandPath(parsedArgs)];
|
|
19406
|
-
const
|
|
19563
|
+
const toShowHelpError = (error2) => error2._tag === "ShowHelp" ? error2 : new ShowHelp({
|
|
19407
19564
|
commandPath,
|
|
19408
19565
|
errors: [error2]
|
|
19409
|
-
})
|
|
19566
|
+
});
|
|
19567
|
+
const toShowHelp = mapError2(toShowHelpError);
|
|
19410
19568
|
const handlerCtx = {
|
|
19411
19569
|
builtIns,
|
|
19412
19570
|
command: command2,
|
|
@@ -19467,7 +19625,7 @@ var runWith2 = (command2, config) => {
|
|
|
19467
19625
|
errors: parsedArgs.errors
|
|
19468
19626
|
});
|
|
19469
19627
|
}
|
|
19470
|
-
const input = yield* commandImpl.parse(parsedArgs).pipe(
|
|
19628
|
+
const input = yield* commandImpl.parse(parsedArgs).pipe(mapError2((error2) => isCliError(error2) ? toShowHelpError(error2) : error2));
|
|
19471
19629
|
let program = commandImpl.handle(input, [command2.name]);
|
|
19472
19630
|
const logLevel = activeFlags.includes(LogLevel) ? (yield* LogLevel.flag.parse(emptyArgs).pipe(toShowHelp))[1] : none2();
|
|
19473
19631
|
program = provideService2(program, LogLevel, logLevel);
|
|
@@ -22578,7 +22736,7 @@ var refFlag = String10("ref").pipe(
|
|
|
22578
22736
|
withDescription3(
|
|
22579
22737
|
"The branch, tag or commit of the efffrida repository to download the template from, defaults to the release of this version"
|
|
22580
22738
|
),
|
|
22581
|
-
withDefault4(`refs/tags/create-efffrida-app@${"0.0.
|
|
22739
|
+
withDefault4(`refs/tags/create-efffrida-app@${"0.0.31"}`)
|
|
22582
22740
|
);
|
|
22583
22741
|
var commandConfig = {
|
|
22584
22742
|
projectName,
|
|
@@ -22595,7 +22753,7 @@ var command = make33("create-efffrida-app", commandConfig).pipe(
|
|
|
22595
22753
|
withDescription4("Create an efffrida application from a template repository"),
|
|
22596
22754
|
withHandler(handleCommand)
|
|
22597
22755
|
);
|
|
22598
|
-
var cli = run5(command, { version: "0.0.
|
|
22756
|
+
var cli = run5(command, { version: "0.0.31" });
|
|
22599
22757
|
var PackageJson = fromJsonString2(Record(String5, Json2), { space: 4 });
|
|
22600
22758
|
var PackageInfo = fromJsonString2(Struct({ name: String5, version: String5 }));
|
|
22601
22759
|
var readPackageVersions = fnUntraced2(function* (repository) {
|