create-efffrida-app 0.0.13 → 0.0.15

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.
Files changed (2) hide show
  1. package/dist/bin.cjs +415 -372
  2. package/package.json +3 -3
package/dist/bin.cjs CHANGED
@@ -55,7 +55,7 @@ var __export = (target, all4) => {
55
55
  __defProp(target, name, { get: all4[name], enumerable: true });
56
56
  };
57
57
 
58
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Effect.js
58
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Effect.js
59
59
  var Effect_exports = {};
60
60
  __export(Effect_exports, {
61
61
  Do: () => Do2,
@@ -145,7 +145,7 @@ __export(Effect_exports, {
145
145
  interruptible: () => interruptible2,
146
146
  interruptibleMask: () => interruptibleMask2,
147
147
  isEffect: () => isEffect2,
148
- isFailure: () => isFailure4,
148
+ isFailure: () => isFailure5,
149
149
  isSuccess: () => isSuccess5,
150
150
  let: () => let_3,
151
151
  linkSpans: () => linkSpans2,
@@ -287,7 +287,7 @@ __export(Effect_exports, {
287
287
  zipWith: () => zipWith2
288
288
  });
289
289
 
290
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Pipeable.js
290
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Pipeable.js
291
291
  var pipeArguments = (self, args2) => {
292
292
  switch (args2.length) {
293
293
  case 0:
@@ -331,7 +331,7 @@ var Class = /* @__PURE__ */ (function() {
331
331
  return PipeableBase;
332
332
  })();
333
333
 
334
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Function.js
334
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Function.js
335
335
  var dual = function(arity, body) {
336
336
  if (typeof arity === "function") {
337
337
  return function() {
@@ -430,8 +430,19 @@ function memoize(f2) {
430
430
  return result3;
431
431
  };
432
432
  }
433
+ function memoizeIdempotent(f2) {
434
+ const cache = /* @__PURE__ */ new WeakMap();
435
+ return (a) => {
436
+ const cached3 = cache.get(a);
437
+ if (cached3 !== void 0) return cached3;
438
+ const result3 = f2(a);
439
+ cache.set(a, result3);
440
+ cache.set(result3, result3);
441
+ return result3;
442
+ };
443
+ }
433
444
 
434
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/equal.js
445
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/equal.js
435
446
  var getAllObjectKeys = (obj) => {
436
447
  const keys2 = new Set(Reflect.ownKeys(obj));
437
448
  if (obj.constructor === Object) return keys2;
@@ -454,7 +465,7 @@ var getAllObjectKeys = (obj) => {
454
465
  };
455
466
  var byReferenceInstances = /* @__PURE__ */ new WeakSet();
456
467
 
457
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Predicate.js
468
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Predicate.js
458
469
  function isString(input) {
459
470
  return typeof input === "string";
460
471
  }
@@ -500,7 +511,7 @@ function isIterable(input) {
500
511
  return hasProperty(input, Symbol.iterator) || isString(input);
501
512
  }
502
513
 
503
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Hash.js
514
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Hash.js
504
515
  var symbol = "~effect/interfaces/Hash";
505
516
  var hash = (self) => {
506
517
  switch (typeof self) {
@@ -624,7 +635,7 @@ function withVisitedTracking(obj, fn3) {
624
635
  return result3;
625
636
  }
626
637
 
627
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Equal.js
638
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Equal.js
628
639
  var symbol2 = "~effect/interfaces/Equal";
629
640
  function equals() {
630
641
  if (arguments.length === 1) {
@@ -816,7 +827,7 @@ function makeCompareSet(equivalence) {
816
827
  var compareSets = /* @__PURE__ */ makeCompareSet(compareBoth);
817
828
  var isEqual = (u2) => hasProperty(u2, symbol2);
818
829
 
819
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Redactable.js
830
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Redactable.js
820
831
  var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Redactable");
821
832
  var isRedactable = (u2) => hasProperty(u2, symbolRedactable);
822
833
  function redact(u2) {
@@ -838,7 +849,7 @@ var emptyContext = {
838
849
  }
839
850
  };
840
851
 
841
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Formatter.js
852
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Formatter.js
842
853
  function format(input, options) {
843
854
  const space = options?.space ?? 0;
844
855
  const ancestors = /* @__PURE__ */ new WeakSet();
@@ -943,7 +954,7 @@ function formatJson(input, options) {
943
954
  }, options?.space) ?? "null";
944
955
  }
945
956
 
946
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Inspectable.js
957
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Inspectable.js
947
958
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
948
959
  var toJson = (input) => {
949
960
  try {
@@ -1007,7 +1018,7 @@ var Class2 = class {
1007
1018
  }
1008
1019
  };
1009
1020
 
1010
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Utils.js
1021
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Utils.js
1011
1022
  var SingleShotGen = class _SingleShotGen {
1012
1023
  called = false;
1013
1024
  self;
@@ -1067,7 +1078,7 @@ var pickInternalCall = () => {
1067
1078
  };
1068
1079
  var internalCall = /* @__PURE__ */ pickInternalCall();
1069
1080
 
1070
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/record.js
1081
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/record.js
1071
1082
  function assignProperty(self, key, value3) {
1072
1083
  if (key === "__proto__") {
1073
1084
  Object.defineProperty(self, key, {
@@ -1088,7 +1099,7 @@ function assignProperties(self, source) {
1088
1099
  }
1089
1100
  }
1090
1101
 
1091
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/core.js
1102
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/core.js
1092
1103
  var EffectTypeId = `~effect/Effect`;
1093
1104
  var ExitTypeId = `~effect/Exit`;
1094
1105
  var effectVariance = {
@@ -1431,29 +1442,13 @@ var done = (value3) => {
1431
1442
  return exitFail(Done(value3));
1432
1443
  };
1433
1444
 
1434
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Effectable.js
1445
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Effectable.js
1435
1446
  var Prototype2 = (options) => makePrimitiveProto({
1436
1447
  op: options.label,
1437
1448
  [evaluate]: options.evaluate
1438
1449
  });
1439
1450
 
1440
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/stackTraceLimit.js
1441
- var isStackTraceLimitWritable = () => {
1442
- const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
1443
- if (desc === void 0) {
1444
- return Object.isExtensible(Error);
1445
- }
1446
- return Object.hasOwn(desc, "writable") ? desc.writable === true : desc.set !== void 0;
1447
- };
1448
- var canWriteStackTraceLimit = /* @__PURE__ */ isStackTraceLimitWritable();
1449
- var getStackTraceLimit = () => Error.stackTraceLimit;
1450
- var setStackTraceLimit = (value3) => {
1451
- if (canWriteStackTraceLimit) {
1452
- Error.stackTraceLimit = value3;
1453
- }
1454
- };
1455
-
1456
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Equivalence.js
1451
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Equivalence.js
1457
1452
  var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
1458
1453
  var isStrictEquivalent = (x, y) => x === y;
1459
1454
  var strictEqual = () => isStrictEquivalent;
@@ -1480,7 +1475,7 @@ function Array_(item) {
1480
1475
  });
1481
1476
  }
1482
1477
 
1483
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/doNotation.js
1478
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/doNotation.js
1484
1479
  var let_ = (map15) => dual(3, (self, name, f2) => map15(self, (a) => ({
1485
1480
  ...a,
1486
1481
  [name]: f2(a)
@@ -1493,7 +1488,7 @@ var bind = (map15, flatMap6) => dual(3, (self, name, f2) => flatMap6(self, (a) =
1493
1488
  [name]: b2
1494
1489
  }))));
1495
1490
 
1496
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/option.js
1491
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/option.js
1497
1492
  var TypeId = "~effect/data/Option";
1498
1493
  var CommonProto = {
1499
1494
  [TypeId]: {
@@ -1559,7 +1554,7 @@ var some = (value3) => {
1559
1554
  return a;
1560
1555
  };
1561
1556
 
1562
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/result.js
1557
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/result.js
1563
1558
  var TypeId2 = "~effect/data/Result";
1564
1559
  var CommonProto2 = {
1565
1560
  [TypeId2]: {
@@ -1626,7 +1621,7 @@ var succeed = (success) => {
1626
1621
  return a;
1627
1622
  };
1628
1623
 
1629
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Order.js
1624
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Order.js
1630
1625
  function make2(compare) {
1631
1626
  return (self, that) => self === that ? 0 : compare(self, that);
1632
1627
  }
@@ -1640,7 +1635,7 @@ var mapInput = /* @__PURE__ */ dual(2, (self, f2) => make2((b1, b2) => self(f2(b
1640
1635
  var Date2 = /* @__PURE__ */ mapInput(Number2, (date6) => date6.getTime());
1641
1636
  var isGreaterThan = (O2) => dual(2, (self, that) => O2(self, that) === 1);
1642
1637
 
1643
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Option.js
1638
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Option.js
1644
1639
  var none2 = () => none;
1645
1640
  var some2 = some;
1646
1641
  var isOption2 = isOption;
@@ -1660,22 +1655,13 @@ var filter = /* @__PURE__ */ dual(2, (self, predicate) => isNone2(self) ? none2(
1660
1655
  var liftPredicate = /* @__PURE__ */ dual(2, (b2, predicate) => predicate(b2) ? some2(b2) : none2());
1661
1656
  var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false : refinement(self.value));
1662
1657
 
1663
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Context.js
1658
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Context.js
1664
1659
  var ServiceTypeId = "~effect/Context/Service";
1665
1660
  var Service = function() {
1666
- const prevLimit = getStackTraceLimit();
1667
- setStackTraceLimit(2);
1668
- const err = new Error();
1669
- setStackTraceLimit(prevLimit);
1670
1661
  function KeyClass() {
1671
1662
  }
1672
1663
  const self = KeyClass;
1673
1664
  Object.setPrototypeOf(self, ServiceProto);
1674
- Object.defineProperty(self, "stack", {
1675
- get() {
1676
- return err.stack;
1677
- }
1678
- });
1679
1665
  const init = (key, options) => {
1680
1666
  self.key = key;
1681
1667
  if (options?.defaultValue) {
@@ -1703,8 +1689,7 @@ var ServiceProto = {
1703
1689
  toJSON() {
1704
1690
  return {
1705
1691
  _id: "Service",
1706
- key: this.key,
1707
- stack: this.stack
1692
+ key: this.key
1708
1693
  };
1709
1694
  },
1710
1695
  of(self) {
@@ -1842,15 +1827,6 @@ var getDefaultValue = (ref) => {
1842
1827
  };
1843
1828
  var serviceNotFoundError = (service3) => {
1844
1829
  const error2 = new Error(`Service not found${service3.key ? `: ${String(service3.key)}` : ""}`);
1845
- if (service3.stack) {
1846
- const lines2 = service3.stack.split("\n");
1847
- if (lines2.length > 2) {
1848
- const afterAt = lines2[2].match(/at (.*)/);
1849
- if (afterAt) {
1850
- error2.message = error2.message + ` (defined at ${afterAt[1]})`;
1851
- }
1852
- }
1853
- }
1854
1830
  if (error2.stack) {
1855
1831
  const lines2 = error2.stack.split("\n");
1856
1832
  lines2.splice(1, 3);
@@ -1879,7 +1855,7 @@ var mergeAll = (...ctxs) => {
1879
1855
  };
1880
1856
  var Reference = Service;
1881
1857
 
1882
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Duration.js
1858
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Duration.js
1883
1859
  var TypeId4 = "~effect/time/Duration";
1884
1860
  var bigint0 = /* @__PURE__ */ BigInt(0);
1885
1861
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -2138,10 +2114,10 @@ var subtract = /* @__PURE__ */ dual(2, (self, that) => matchPair(self, that, {
2138
2114
  }));
2139
2115
  var equals2 = /* @__PURE__ */ dual(2, (self, that) => Equivalence(self, that));
2140
2116
 
2141
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/array.js
2117
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/array.js
2142
2118
  var isArrayNonEmpty = (self) => self.length > 0;
2143
2119
 
2144
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Result.js
2120
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Result.js
2145
2121
  var succeed2 = succeed;
2146
2122
  var fail2 = fail;
2147
2123
  var try_ = (evaluate2) => {
@@ -2166,10 +2142,10 @@ var match3 = /* @__PURE__ */ dual(2, (self, {
2166
2142
  onSuccess
2167
2143
  }) => isFailure2(self) ? onFailure(self.failure) : onSuccess(self.success));
2168
2144
 
2169
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Tuple.js
2145
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Tuple.js
2170
2146
  var makeEquivalence = Tuple;
2171
2147
 
2172
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Iterable.js
2148
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Iterable.js
2173
2149
  var findFirst = /* @__PURE__ */ dual(2, (self, f2) => {
2174
2150
  let i = 0;
2175
2151
  for (const a of self) {
@@ -2212,7 +2188,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => ({
2212
2188
  }
2213
2189
  }));
2214
2190
 
2215
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Record.js
2191
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Record.js
2216
2192
  var has = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key));
2217
2193
  var map2 = /* @__PURE__ */ dual(2, (self, f2) => {
2218
2194
  const out = {
@@ -2237,7 +2213,7 @@ var makeEquivalence2 = (equivalence) => {
2237
2213
  return (self, that) => is4(self, that) && is4(that, self);
2238
2214
  };
2239
2215
 
2240
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Array.js
2216
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Array.js
2241
2217
  var Array2 = globalThis.Array;
2242
2218
  var fromIterable = (collection) => Array2.isArray(collection) ? collection : Array2.from(collection);
2243
2219
  var ensure = (self) => Array2.isArray(self) ? self : [self];
@@ -2334,7 +2310,7 @@ var dedupe = (self) => {
2334
2310
  return out;
2335
2311
  };
2336
2312
 
2337
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Filter.js
2313
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Filter.js
2338
2314
  var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
2339
2315
  const leftOut = left(input);
2340
2316
  if (isFailure2(leftOut)) return fail2(input);
@@ -2343,7 +2319,7 @@ var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
2343
2319
  return rightOut;
2344
2320
  });
2345
2321
 
2346
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Scheduler.js
2322
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Scheduler.js
2347
2323
  var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
2348
2324
  fiberCached: true,
2349
2325
  defaultValue: () => new MixedScheduler()
@@ -2480,7 +2456,7 @@ var PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventS
2480
2456
  defaultValue: () => false
2481
2457
  });
2482
2458
 
2483
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Tracer.js
2459
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Tracer.js
2484
2460
  var ParentSpanKey = "effect/Tracer/ParentSpan";
2485
2461
  var ParentSpan = class extends (/* @__PURE__ */ Service()(ParentSpanKey, {
2486
2462
  fiberCached: true
@@ -2563,10 +2539,10 @@ var randomHexString = /* @__PURE__ */ (function() {
2563
2539
  };
2564
2540
  })();
2565
2541
 
2566
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/metric.js
2542
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/metric.js
2567
2543
  var FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
2568
2544
 
2569
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/references.js
2545
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/references.js
2570
2546
  var CurrentErrorReporters = /* @__PURE__ */ Reference("effect/ErrorReporter/CurrentErrorReporters", {
2571
2547
  defaultValue: () => /* @__PURE__ */ new Set()
2572
2548
  });
@@ -2601,7 +2577,23 @@ var CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpa
2601
2577
  defaultValue: () => []
2602
2578
  });
2603
2579
 
2604
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/tracer.js
2580
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/stackTraceLimit.js
2581
+ var isStackTraceLimitWritable = () => {
2582
+ const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
2583
+ if (desc === void 0) {
2584
+ return Object.isExtensible(Error);
2585
+ }
2586
+ return Object.hasOwn(desc, "writable") ? desc.writable === true : desc.set !== void 0;
2587
+ };
2588
+ var canWriteStackTraceLimit = /* @__PURE__ */ isStackTraceLimitWritable();
2589
+ var getStackTraceLimit = () => Error.stackTraceLimit;
2590
+ var setStackTraceLimit = (value3) => {
2591
+ if (canWriteStackTraceLimit) {
2592
+ Error.stackTraceLimit = value3;
2593
+ }
2594
+ };
2595
+
2596
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/tracer.js
2605
2597
  var addSpanStackTrace = (options) => {
2606
2598
  if (options?.captureStackTrace === false) {
2607
2599
  return options;
@@ -2632,7 +2624,7 @@ var makeStackCleaner = (line) => (stack) => {
2632
2624
  };
2633
2625
  var spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
2634
2626
 
2635
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/effect.js
2627
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/effect.js
2636
2628
  var Interrupt = class extends ReasonBase {
2637
2629
  fiberId;
2638
2630
  constructor(fiberId3, annotations = constEmptyAnnotations) {
@@ -3518,6 +3510,7 @@ var catchEager = /* @__PURE__ */ dual(2, (self, f2) => {
3518
3510
  });
3519
3511
  var exitInterrupt = (fiberId3) => exitFailCause(causeInterrupt(fiberId3));
3520
3512
  var exitIsSuccess = (self) => self._tag === "Success";
3513
+ var exitIsFailure = (self) => self._tag === "Failure";
3521
3514
  var exitFilterCause = (self) => self._tag === "Failure" ? succeed2(self.cause) : fail2(self);
3522
3515
  var exitVoid = /* @__PURE__ */ exitSucceed(void 0);
3523
3516
  var exitMap = /* @__PURE__ */ dual(2, (self, f2) => self._tag === "Success" ? exitSucceed(f2(self.value)) : self);
@@ -4741,10 +4734,8 @@ var useSpan = (name, ...args2) => {
4741
4734
  return withFiber((fiber3) => {
4742
4735
  const span = makeSpanUnsafe(fiber3, name, options);
4743
4736
  const clock = fiber3.getRef(ClockRef);
4744
- return onExit(internalCall(() => evaluate2(span)), (exit3) => sync(() => {
4745
- if (span.status._tag === "Ended") return;
4746
- span.end(clock.currentTimeNanosUnsafe(), exit3);
4747
- }));
4737
+ const timingEnabled = fiber3.getRef(TracerTimingEnabled);
4738
+ return onExit(internalCall(() => evaluate2(span)), (exit3) => endSpan(span, exit3, clock, timingEnabled));
4748
4739
  });
4749
4740
  };
4750
4741
  var provideParentSpan = /* @__PURE__ */ provideService(ParentSpan);
@@ -5092,14 +5083,15 @@ var reportCauseUnsafe = (fiber3, cause, defectsOnly) => {
5092
5083
  reporters.forEach((reporter) => reporter.report(opts));
5093
5084
  };
5094
5085
 
5095
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Exit.js
5086
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Exit.js
5096
5087
  var succeed4 = exitSucceed;
5097
5088
  var failCause2 = exitFailCause;
5098
5089
  var fail4 = exitFail;
5099
5090
  var void_2 = exitVoid;
5100
5091
  var isSuccess4 = exitIsSuccess;
5092
+ var isFailure4 = exitIsFailure;
5101
5093
 
5102
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Deferred.js
5094
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Deferred.js
5103
5095
  var TypeId5 = "~effect/Deferred";
5104
5096
  var DeferredProto = {
5105
5097
  [TypeId5]: {
@@ -5141,12 +5133,12 @@ var doneUnsafe = (self, effect2) => {
5141
5133
  return true;
5142
5134
  };
5143
5135
 
5144
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/References.js
5136
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/References.js
5145
5137
  var CurrentLogAnnotations2 = CurrentLogAnnotations;
5146
5138
  var CurrentLogSpans2 = CurrentLogSpans;
5147
5139
  var MinimumLogLevel2 = MinimumLogLevel;
5148
5140
 
5149
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Scope.js
5141
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Scope.js
5150
5142
  var Scope = scopeTag;
5151
5143
  var makeUnsafe3 = scopeMakeUnsafe;
5152
5144
  var provide = provideScope;
@@ -5155,7 +5147,7 @@ var addFinalizer2 = scopeAddFinalizer;
5155
5147
  var forkUnsafe2 = scopeForkUnsafe;
5156
5148
  var close = scopeClose;
5157
5149
 
5158
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Layer.js
5150
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Layer.js
5159
5151
  var TypeId6 = "~effect/Layer";
5160
5152
  var MemoMapTypeId = "~effect/Layer/MemoMap";
5161
5153
  var memoMapReuse = (entry, scope3) => {
@@ -5273,7 +5265,7 @@ var CurrentMetadata = /* @__PURE__ */ Reference("effect/ExecutionPlan/CurrentMet
5273
5265
  })
5274
5266
  });
5275
5267
 
5276
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Cause.js
5268
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Cause.js
5277
5269
  var isFailReason2 = isFailReason;
5278
5270
  var fail5 = causeFail;
5279
5271
  var hasInterruptsOnly2 = hasInterruptsOnly;
@@ -5286,7 +5278,7 @@ var Done2 = Done;
5286
5278
  var done3 = done;
5287
5279
  var UnknownError2 = UnknownError;
5288
5280
 
5289
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Data.js
5281
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Data.js
5290
5282
  var taggedEnum = () => new Proxy({}, {
5291
5283
  get(_target, tag2, _receiver) {
5292
5284
  if (tag2 === "$is") {
@@ -5319,7 +5311,7 @@ var round = /* @__PURE__ */ dual(2, (self, precision) => {
5319
5311
  return Math.round(self * factor) / factor;
5320
5312
  });
5321
5313
 
5322
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Pull.js
5314
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Pull.js
5323
5315
  var catchDone = /* @__PURE__ */ dual(2, (effect2, f2) => catchCauseFilter(effect2, filterDoneLeftover, (l) => f2(l)));
5324
5316
  var isDoneCause = (cause) => cause.reasons.some(isDoneFailure);
5325
5317
  var isDoneFailure = (failure) => failure._tag === "Fail" && isDone3(failure.error);
@@ -5337,7 +5329,7 @@ var matchEffect2 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
5337
5329
  }
5338
5330
  }));
5339
5331
 
5340
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Schedule.js
5332
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Schedule.js
5341
5333
  var TypeId8 = "~effect/Schedule";
5342
5334
  var CurrentMetadata2 = /* @__PURE__ */ Reference("effect/Schedule/CurrentMetadata", {
5343
5335
  defaultValue: /* @__PURE__ */ constant({
@@ -5429,11 +5421,11 @@ var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map4(toStep(s
5429
5421
  })));
5430
5422
  var forever2 = /* @__PURE__ */ spaced(zero);
5431
5423
 
5432
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/layer.js
5424
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/layer.js
5433
5425
  var provideLayer = (self, layer16, options) => scopedWith((scope3) => flatMap2(options?.local ? buildWithMemoMap(layer16, makeMemoMapUnsafe(), scope3) : buildWithScope(layer16, scope3), (context3) => provideContext(self, context3)));
5434
5426
  var provide3 = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, source, options) => isContext(source) ? provideContext(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll2(...source) : source, options));
5435
5427
 
5436
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/schedule.js
5428
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schedule.js
5437
5429
  var repeatOrElse = /* @__PURE__ */ dual(3, (self, schedule3, orElse4) => flatMap2(toStepWithMetadata(schedule3), (step) => {
5438
5430
  let meta = CurrentMetadata2.defaultValue();
5439
5431
  return catch_(forever(tap(flatMap2(suspend(() => provideService(self, CurrentMetadata2, meta)), step), (meta_) => sync(() => {
@@ -5504,10 +5496,11 @@ var buildFromOptions = (options) => {
5504
5496
  return schedule3;
5505
5497
  };
5506
5498
 
5507
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/executionPlan.js
5499
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/executionPlan.js
5508
5500
  var makeEventEmitter = (onEvent, currentMetadata) => {
5509
5501
  let lastStepIndex = -1;
5510
5502
  let stepAttempt = 0;
5503
+ const emit = (event) => ignoreCause(onEvent(event));
5511
5504
  return {
5512
5505
  begin: clockWith((clock) => suspend(() => {
5513
5506
  const meta = currentMetadata();
@@ -5522,7 +5515,7 @@ var makeEventEmitter = (onEvent, currentMetadata) => {
5522
5515
  stepIndex: meta.stepIndex,
5523
5516
  startNanos: clock.monotonicTimeNanosUnsafe()
5524
5517
  };
5525
- return as(onEvent({
5518
+ return as(emit({
5526
5519
  _tag: "AttemptStart",
5527
5520
  attempt: state.attempt,
5528
5521
  stepAttempt: state.stepAttempt,
@@ -5531,7 +5524,7 @@ var makeEventEmitter = (onEvent, currentMetadata) => {
5531
5524
  })),
5532
5525
  end: (state, exit3) => clockWith((clock) => {
5533
5526
  const duration = nanos(clock.monotonicTimeNanosUnsafe() - state.startNanos);
5534
- return onEvent(exit3._tag === "Success" ? {
5527
+ return emit(exit3._tag === "Success" ? {
5535
5528
  _tag: "AttemptSuccess",
5536
5529
  attempt: state.attempt,
5537
5530
  stepAttempt: state.stepAttempt,
@@ -5609,7 +5602,7 @@ var scheduleFromStep = (step, first) => {
5609
5602
  var scheduleOnce = /* @__PURE__ */ recurs(1);
5610
5603
  var makeEntry = (options) => options;
5611
5604
 
5612
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/request.js
5605
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/request.js
5613
5606
  var request = /* @__PURE__ */ dual(2, (self, resolver) => {
5614
5607
  const withResolver = (resolver2) => callback((resume) => {
5615
5608
  const entry = addEntry(resolver2, self, resume, getCurrentFiber());
@@ -5720,7 +5713,7 @@ function runBatch(batch) {
5720
5713
  }
5721
5714
  var update = /* @__PURE__ */ dual(2, (self, input) => contextWith((services) => sync(() => self.updateUnsafe(input, services))));
5722
5715
 
5723
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Effect.js
5716
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Effect.js
5724
5717
  var TypeId11 = EffectTypeId;
5725
5718
  var isEffect2 = isEffect;
5726
5719
  var all2 = all;
@@ -5831,7 +5824,7 @@ var matchCauseEager2 = matchCauseEager;
5831
5824
  var matchCauseEffectEager2 = matchCauseEffectEager;
5832
5825
  var matchCauseEffect2 = matchCauseEffect;
5833
5826
  var matchEffect3 = matchEffect;
5834
- var isFailure4 = isFailure3;
5827
+ var isFailure5 = isFailure3;
5835
5828
  var isSuccess5 = isSuccess3;
5836
5829
  var context2 = context;
5837
5830
  var contextWith2 = contextWith;
@@ -6075,7 +6068,7 @@ var flatMapEager2 = flatMapEager;
6075
6068
  var catchEager2 = catchEager;
6076
6069
  var fnUntracedEager2 = fnUntracedEager;
6077
6070
 
6078
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/FileSystem.js
6071
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/FileSystem.js
6079
6072
  var FileSystem_exports = {};
6080
6073
  __export(FileSystem_exports, {
6081
6074
  FileSystem: () => FileSystem,
@@ -6093,7 +6086,7 @@ __export(FileSystem_exports, {
6093
6086
  makeNoop: () => makeNoop
6094
6087
  });
6095
6088
 
6096
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/PlatformError.js
6089
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/PlatformError.js
6097
6090
  var TypeId12 = "~effect/platform/PlatformError";
6098
6091
  var BadArgument = class extends (/* @__PURE__ */ TaggedError2("BadArgument")) {
6099
6092
  /**
@@ -6153,14 +6146,14 @@ var PlatformError = class extends (/* @__PURE__ */ TaggedError2("PlatformError")
6153
6146
  var systemError = (options) => new PlatformError(new SystemError(options));
6154
6147
  var badArgument = (options) => new PlatformError(new BadArgument(options));
6155
6148
 
6156
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Fiber.js
6149
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Fiber.js
6157
6150
  var interrupt3 = fiberInterrupt;
6158
6151
  var runIn = fiberRunIn;
6159
6152
 
6160
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Latch.js
6153
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Latch.js
6161
6154
  var makeUnsafe4 = makeLatchUnsafe;
6162
6155
 
6163
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/MutableRef.js
6156
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/MutableRef.js
6164
6157
  var TypeId13 = "~effect/MutableRef";
6165
6158
  var MutableRefProto = {
6166
6159
  [TypeId13]: TypeId13,
@@ -6178,7 +6171,7 @@ var make6 = (value3) => {
6178
6171
  return ref;
6179
6172
  };
6180
6173
 
6181
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/MutableList.js
6174
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/MutableList.js
6182
6175
  var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
6183
6176
  var make7 = () => ({
6184
6177
  head: void 0,
@@ -6249,7 +6242,7 @@ var take = (self) => {
6249
6242
  return message;
6250
6243
  };
6251
6244
 
6252
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Queue.js
6245
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Queue.js
6253
6246
  var TypeId14 = "~effect/Queue";
6254
6247
  var EnqueueTypeId = "~effect/Queue/Enqueue";
6255
6248
  var DequeueTypeId = "~effect/Queue/Dequeue";
@@ -6523,7 +6516,7 @@ var finalize = (self, exit3) => {
6523
6516
  openState.awaiters.clear();
6524
6517
  };
6525
6518
 
6526
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Semaphore.js
6519
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Semaphore.js
6527
6520
  var makeUnsafe5 = (permits) => new SemaphoreImpl(permits);
6528
6521
  var waitForPermits = (self, n, effect2) => callback((resume) => {
6529
6522
  if (self.free >= n) return resume(effect2);
@@ -6619,7 +6612,7 @@ var SemaphoreImpl = class {
6619
6612
  }
6620
6613
  };
6621
6614
 
6622
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Channel.js
6615
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Channel.js
6623
6616
  var TypeId15 = "~effect/Channel";
6624
6617
  var isChannel = (u2) => hasProperty(u2, TypeId15);
6625
6618
  var ChannelProto = {
@@ -6824,7 +6817,7 @@ var runFold = /* @__PURE__ */ dual(3, (self, initial, f2) => suspend2(() => {
6824
6817
  }));
6825
6818
  var toPullScoped = (self, scope3) => toTransform(self)(done3(), scope3);
6826
6819
 
6827
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/stream.js
6820
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/stream.js
6828
6821
  var TypeId16 = "~effect/Stream";
6829
6822
  var streamVariance = {
6830
6823
  _R: identity,
@@ -6843,7 +6836,7 @@ var fromChannel = (channel) => {
6843
6836
  return self;
6844
6837
  };
6845
6838
 
6846
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Sink.js
6839
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Sink.js
6847
6840
  var TypeId17 = "~effect/Sink";
6848
6841
  var endVoid = /* @__PURE__ */ succeed6([void 0]);
6849
6842
  var sinkVariance = {
@@ -6882,7 +6875,7 @@ var forEachArray = (f2) => fromTransform2((upstream) => upstream.pipe(flatMap3(f
6882
6875
  }), catchDone(() => endVoid)));
6883
6876
  var unwrap2 = (effect2) => fromChannel2(unwrap(map6(effect2, toChannel)));
6884
6877
 
6885
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/rcRef.js
6878
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/rcRef.js
6886
6879
  var TypeId18 = "~effect/RcRef";
6887
6880
  var stateEmpty = {
6888
6881
  _tag: "Empty"
@@ -6922,7 +6915,7 @@ var make9 = (options) => withFiber2((fiber3) => {
6922
6915
  return close3;
6923
6916
  }), ref);
6924
6917
  });
6925
- var getState = (self) => uninterruptibleMask2((restore) => {
6918
+ var getState = (self) => uninterruptibleMask2(function loop(restore) {
6926
6919
  switch (self.state._tag) {
6927
6920
  case "Closed": {
6928
6921
  return interrupt2;
@@ -6933,18 +6926,23 @@ var getState = (self) => uninterruptibleMask2((restore) => {
6933
6926
  }
6934
6927
  case "Empty": {
6935
6928
  const scope3 = makeUnsafe3();
6936
- return self.semaphore.withPermits(1)(restore(provideContext2(self.acquire, add(self.context, Scope, scope3))).pipe(map6((value3) => {
6937
- const state = {
6938
- _tag: "Acquired",
6939
- value: value3,
6940
- scope: scope3,
6941
- fiber: void 0,
6942
- refCount: 1,
6943
- invalidated: false
6944
- };
6945
- self.state = state;
6946
- return state;
6947
- })));
6929
+ return self.semaphore.withPermit(suspend2(() => {
6930
+ if (self.state._tag !== "Empty") {
6931
+ return loop(restore);
6932
+ }
6933
+ return restore(provideContext2(self.acquire, add(self.context, Scope, scope3))).pipe(map6((value3) => {
6934
+ const state = {
6935
+ _tag: "Acquired",
6936
+ value: value3,
6937
+ scope: scope3,
6938
+ fiber: void 0,
6939
+ refCount: 1,
6940
+ invalidated: false
6941
+ };
6942
+ self.state = state;
6943
+ return state;
6944
+ }), onExit2((exit3) => isFailure4(exit3) ? close(scope3, exit3) : void_3));
6945
+ }));
6948
6946
  }
6949
6947
  }
6950
6948
  });
@@ -6980,11 +6978,11 @@ var get2 = /* @__PURE__ */ fnUntraced2(function* (self_) {
6980
6978
  return state.value;
6981
6979
  });
6982
6980
 
6983
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/RcRef.js
6981
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/RcRef.js
6984
6982
  var make10 = make9;
6985
6983
  var get3 = get2;
6986
6984
 
6987
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Stream.js
6985
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Stream.js
6988
6986
  var TypeId19 = "~effect/Stream";
6989
6987
  var isStream = (u2) => hasProperty(u2, TypeId19);
6990
6988
  var fromChannel3 = fromChannel;
@@ -7075,7 +7073,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (
7075
7073
  });
7076
7074
  var toReadableStreamEffect = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, options) => map6(context2(), (context3) => toReadableStreamWith(self, context3, options)));
7077
7075
 
7078
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/FileSystem.js
7076
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/FileSystem.js
7079
7077
  var TypeId20 = "~effect/platform/FileSystem";
7080
7078
  var Size = (bytes) => typeof bytes === "bigint" ? bytes : BigInt(bytes);
7081
7079
  var KiB = (n) => Size(n * 1024);
@@ -7244,7 +7242,7 @@ var isFile = (u2) => hasProperty(u2, FileTypeId);
7244
7242
  var WatchBackend = class extends (/* @__PURE__ */ Service()("effect/platform/FileSystem/WatchBackend")) {
7245
7243
  };
7246
7244
 
7247
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Logger.js
7245
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Logger.js
7248
7246
  var CurrentLoggers2 = CurrentLoggers;
7249
7247
  var make12 = loggerMake;
7250
7248
  var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(function* (fiber3) {
@@ -7255,7 +7253,7 @@ var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(f
7255
7253
  return currentLoggers;
7256
7254
  })));
7257
7255
 
7258
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/schema/annotations.js
7256
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schema/annotations.js
7259
7257
  function resolve(ast) {
7260
7258
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
7261
7259
  }
@@ -7272,15 +7270,28 @@ var getExpected = /* @__PURE__ */ memoize((ast) => {
7272
7270
  return ast.getExpected(getExpected);
7273
7271
  });
7274
7272
 
7275
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/SchemaIssue.js
7273
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schema/parser.js
7274
+ var missing = /* @__PURE__ */ Symbol();
7275
+ var succeed8 = succeed4;
7276
+ var missingExit = /* @__PURE__ */ succeed8(missing);
7277
+ var sameExit = /* @__PURE__ */ succeed8(missing);
7278
+ var toOption = (value3) => value3 === missing ? none2() : some2(value3);
7279
+ var fromOptionExit = (option4) => option4._tag === "None" ? missingExit : succeed8(option4.value);
7280
+
7281
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaIssue.js
7276
7282
  var TypeId21 = "~effect/SchemaIssue/Issue";
7277
7283
  function isIssue(u2) {
7278
7284
  return hasProperty(u2, TypeId21) && u2[TypeId21] === TypeId21;
7279
7285
  }
7286
+ function hasInput(issue) {
7287
+ return Object.hasOwn(issue, "input");
7288
+ }
7280
7289
  var Base = class {
7281
7290
  [TypeId21] = TypeId21;
7282
- toString() {
7283
- return defaultFormatter(this);
7291
+ constructor(input, options) {
7292
+ if (options?.reportInput === true && input !== missing) {
7293
+ this.input = input;
7294
+ }
7284
7295
  }
7285
7296
  };
7286
7297
  var Filter = class extends Base {
@@ -7293,8 +7304,8 @@ var Filter = class extends Base {
7293
7304
  * The issue that occurred.
7294
7305
  */
7295
7306
  issue;
7296
- constructor(filter10, issue) {
7297
- super();
7307
+ constructor(filter10, issue, input, options) {
7308
+ super(input, options);
7298
7309
  this.filter = filter10;
7299
7310
  this.issue = issue;
7300
7311
  }
@@ -7309,8 +7320,8 @@ var Encoding = class extends Base {
7309
7320
  * The issue that occurred.
7310
7321
  */
7311
7322
  issue;
7312
- constructor(ast, issue) {
7313
- super();
7323
+ constructor(ast, issue, input, options) {
7324
+ super(input, options);
7314
7325
  this.ast = ast;
7315
7326
  this.issue = issue;
7316
7327
  }
@@ -7348,8 +7359,8 @@ var UnexpectedKey = class extends Base {
7348
7359
  * The schema that caused the issue.
7349
7360
  */
7350
7361
  ast;
7351
- constructor(ast) {
7352
- super();
7362
+ constructor(ast, input, options) {
7363
+ super(input, options);
7353
7364
  this.ast = ast;
7354
7365
  }
7355
7366
  };
@@ -7363,8 +7374,8 @@ var Composite = class extends Base {
7363
7374
  * The issues that occurred.
7364
7375
  */
7365
7376
  issues;
7366
- constructor(ast, issues) {
7367
- super();
7377
+ constructor(ast, issues, input, options) {
7378
+ super(input, options);
7368
7379
  this.ast = ast;
7369
7380
  this.issues = issues;
7370
7381
  }
@@ -7375,8 +7386,8 @@ var InvalidType = class extends Base {
7375
7386
  * The schema that caused the issue.
7376
7387
  */
7377
7388
  ast;
7378
- constructor(ast) {
7379
- super();
7389
+ constructor(ast, input, options) {
7390
+ super(input, options);
7380
7391
  this.ast = ast;
7381
7392
  }
7382
7393
  };
@@ -7386,8 +7397,8 @@ var InvalidValue = class extends Base {
7386
7397
  * The metadata for the issue.
7387
7398
  */
7388
7399
  annotations;
7389
- constructor(annotations) {
7390
- super();
7400
+ constructor(annotations, input, options) {
7401
+ super(input, options);
7391
7402
  this.annotations = annotations;
7392
7403
  }
7393
7404
  };
@@ -7401,8 +7412,8 @@ var AnyOf = class extends Base {
7401
7412
  * The issues that occurred.
7402
7413
  */
7403
7414
  issues;
7404
- constructor(ast, issues) {
7405
- super();
7415
+ constructor(ast, issues, input, options) {
7416
+ super(input, options);
7406
7417
  this.ast = ast;
7407
7418
  this.issues = issues;
7408
7419
  }
@@ -7417,67 +7428,81 @@ var OneOf = class extends Base {
7417
7428
  * The schemas that were successful.
7418
7429
  */
7419
7430
  successes;
7420
- constructor(ast, successes) {
7421
- super();
7431
+ constructor(ast, successes, input, options) {
7432
+ super(input, options);
7422
7433
  this.ast = ast;
7423
7434
  this.successes = successes;
7424
7435
  }
7425
7436
  };
7426
- function makeFilterIssue(entry) {
7437
+ function makeFilterIssue(entry, input, options) {
7427
7438
  if (isIssue(entry)) {
7428
7439
  return entry;
7429
7440
  }
7430
7441
  if (typeof entry === "string") {
7431
7442
  return new InvalidValue({
7432
7443
  message: entry
7433
- });
7444
+ }, input, options);
7434
7445
  }
7435
7446
  const inner = typeof entry.issue === "string" ? new InvalidValue({
7436
7447
  message: entry.issue
7437
- }) : entry.issue;
7448
+ }, input, options) : entry.issue;
7438
7449
  return new Pointer(entry.path, inner);
7439
7450
  }
7440
- function makeSingle(out) {
7451
+ function makeSingle(out, input, options) {
7441
7452
  if (out === void 0) {
7442
7453
  return void 0;
7443
7454
  }
7444
7455
  if (typeof out === "boolean") {
7445
- return out ? void 0 : new InvalidValue();
7456
+ return out ? void 0 : new InvalidValue(void 0, input, options);
7446
7457
  }
7447
- return makeFilterIssue(out);
7458
+ return makeFilterIssue(out, input, options);
7448
7459
  }
7449
- function normalizeFilterOutput(ast, out) {
7460
+ function normalizeFilterOutput(ast, out, input, options) {
7450
7461
  if (Array.isArray(out)) {
7451
7462
  if (!isReadonlyArrayNonEmpty(out)) {
7452
7463
  return void 0;
7453
7464
  }
7454
- return out.length === 1 ? makeFilterIssue(out[0]) : new Composite(ast, map3(out, makeFilterIssue));
7465
+ return out.length === 1 ? makeFilterIssue(out[0], input, options) : new Composite(ast, map3(out, (entry) => makeFilterIssue(entry, input, options)), input, options);
7455
7466
  }
7456
- return makeSingle(out);
7467
+ return makeSingle(out, input, options);
7457
7468
  }
7458
7469
  var defaultLeafHook = (issue) => {
7459
7470
  const message = findMessage(issue);
7460
7471
  if (message !== void 0) return message;
7461
7472
  switch (issue._tag) {
7462
7473
  case "InvalidType":
7463
- return getExpectedMessage(getExpected(issue.ast));
7464
- case "InvalidValue":
7465
- return "Expected a valid value";
7474
+ return getExpectedMessage(getExpected(issue.ast), issue);
7475
+ case "InvalidValue": {
7476
+ const expected = findExpected(issue);
7477
+ if (expected !== void 0) return getExpectedMessage(expected, issue);
7478
+ const input = formatInput(issue);
7479
+ return input === void 0 ? "Expected a valid value" : `Invalid data ${input}`;
7480
+ }
7466
7481
  case "MissingKey":
7467
7482
  return "Missing key";
7468
- case "UnexpectedKey":
7469
- return "Expected no excess property";
7483
+ case "UnexpectedKey": {
7484
+ const input = formatInput(issue);
7485
+ return input === void 0 ? "Expected no excess property" : `Unexpected key with value ${input}`;
7486
+ }
7470
7487
  case "Forbidden":
7471
7488
  return "Forbidden operation";
7472
- case "OneOf":
7473
- return "Expected exactly one member to match";
7489
+ case "OneOf": {
7490
+ const input = formatInput(issue);
7491
+ return input === void 0 ? "Expected exactly one member to match" : `Expected exactly one member to match the input ${input}`;
7492
+ }
7474
7493
  }
7475
7494
  };
7476
- var defaultCheckHook = (issue) => {
7477
- return findMessage(issue.issue) ?? findMessage(issue);
7478
- };
7479
- function getExpectedMessage(expected) {
7480
- return `Expected ${expected}`;
7495
+ var defaultCheckHook = (issue) => findMessage(issue.issue) ?? findMessage(issue);
7496
+ function formatInput(issue) {
7497
+ return hasInput(issue) ? format(issue.input) : void 0;
7498
+ }
7499
+ function findExpected(issue) {
7500
+ const expected = issue.annotations?.expected;
7501
+ return typeof expected === "string" ? expected : void 0;
7502
+ }
7503
+ function getExpectedMessage(expected, issue) {
7504
+ const input = formatInput(issue);
7505
+ return input === void 0 ? `Expected ${expected}` : `Expected ${expected}, got ${input}`;
7481
7506
  }
7482
7507
  function toDefaultIssues(issue, path5, leafHook, checkHook) {
7483
7508
  switch (issue._tag) {
@@ -7489,15 +7514,14 @@ function toDefaultIssues(issue, path5, leafHook, checkHook) {
7489
7514
  message
7490
7515
  }];
7491
7516
  }
7492
- switch (issue.issue._tag) {
7493
- case "InvalidValue":
7494
- return [{
7495
- path: path5,
7496
- message: getExpectedMessage(formatCheck(issue.filter))
7497
- }];
7498
- default:
7499
- return toDefaultIssues(issue.issue, path5, leafHook, checkHook);
7517
+ if (issue.issue._tag !== "InvalidValue") {
7518
+ return toDefaultIssues(issue.issue, path5, leafHook, checkHook);
7500
7519
  }
7520
+ const expected = findExpected(issue.issue);
7521
+ return [{
7522
+ path: path5,
7523
+ message: expected === void 0 ? getExpectedMessage(formatCheck(issue.filter), issue) : getExpectedMessage(expected, issue.issue)
7524
+ }];
7501
7525
  }
7502
7526
  case "Encoding":
7503
7527
  return toDefaultIssues(issue.issue, path5, leafHook, checkHook);
@@ -7509,7 +7533,7 @@ function toDefaultIssues(issue, path5, leafHook, checkHook) {
7509
7533
  if (issue.issues.length === 0) {
7510
7534
  return [{
7511
7535
  path: path5,
7512
- message: findMessage(issue) ?? getExpectedMessage(getExpected(issue.ast))
7536
+ message: findMessage(issue) ?? getExpectedMessage(getExpected(issue.ast), issue)
7513
7537
  }];
7514
7538
  }
7515
7539
  return issue.issues.flatMap((issue2) => toDefaultIssues(issue2, path5, leafHook, checkHook));
@@ -7569,7 +7593,7 @@ function getMessageAnnotation(annotations, type = "message") {
7569
7593
  if (typeof message === "string") return message;
7570
7594
  }
7571
7595
 
7572
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/schema/cause.js
7596
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schema/cause.js
7573
7597
  function getSchemaIssue(cause) {
7574
7598
  let issue;
7575
7599
  for (const reason of cause.reasons) {
@@ -7590,15 +7614,7 @@ function getSchemaIssueOrThrow(cause, message) {
7590
7614
  return issue;
7591
7615
  }
7592
7616
 
7593
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/schema/parser.js
7594
- var missing = /* @__PURE__ */ Symbol();
7595
- var succeed8 = succeed4;
7596
- var missingExit = /* @__PURE__ */ succeed8(missing);
7597
- var sameExit = /* @__PURE__ */ succeed8(missing);
7598
- var toOption = (value3) => value3 === missing ? none2() : some2(value3);
7599
- var fromOptionExit = (option4) => option4._tag === "None" ? missingExit : succeed8(option4.value);
7600
-
7601
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/SchemaGetter.js
7617
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaGetter.js
7602
7618
  var Getter = class _Getter extends Class {
7603
7619
  run;
7604
7620
  constructor(run6) {
@@ -7647,7 +7663,7 @@ function Date3() {
7647
7663
  return transform((u2) => new globalThis.Date(u2));
7648
7664
  }
7649
7665
 
7650
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/SchemaTransformation.js
7666
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaTransformation.js
7651
7667
  var TypeId22 = "~effect/SchemaTransformation/Transformation";
7652
7668
  var Transformation = class _Transformation {
7653
7669
  [TypeId22] = TypeId22;
@@ -7736,7 +7752,7 @@ var defectFromJson = (options) => transform2({
7736
7752
  encode: makeEncodeDefect(options)
7737
7753
  });
7738
7754
 
7739
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/SchemaAST.js
7755
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaAST.js
7740
7756
  function makeGuard(tag2) {
7741
7757
  return (ast) => ast._tag === tag2;
7742
7758
  }
@@ -7746,7 +7762,6 @@ var isLiteral = /* @__PURE__ */ makeGuard("Literal");
7746
7762
  var isUniqueSymbol = /* @__PURE__ */ makeGuard("UniqueSymbol");
7747
7763
  var isArrays = /* @__PURE__ */ makeGuard("Arrays");
7748
7764
  var isObjects = /* @__PURE__ */ makeGuard("Objects");
7749
- var isUnion = /* @__PURE__ */ makeGuard("Union");
7750
7765
  var isSuspend = /* @__PURE__ */ makeGuard("Suspend");
7751
7766
  var Link = class {
7752
7767
  to;
@@ -8026,7 +8041,7 @@ var Arrays = class _Arrays extends Base2 {
8026
8041
  return missing;
8027
8042
  }
8028
8043
  if (!Array.isArray(input)) {
8029
- return yield* fail6(new InvalidType(ast));
8044
+ return yield* fail6(new InvalidType(ast, input, options));
8030
8045
  }
8031
8046
  if (!elements) {
8032
8047
  elements = ast.elements.map((ast2) => ({
@@ -8057,17 +8072,18 @@ var Arrays = class _Arrays extends Base2 {
8057
8072
  if (eff) yield* eff;
8058
8073
  if (ast.rest.length === 0 && len > elementLen) {
8059
8074
  for (let i = elementLen; i <= len - 1; i++) {
8060
- const issue = new Pointer([i], new UnexpectedKey(ast));
8075
+ const unexpected = new UnexpectedKey(ast, input[i], options);
8076
+ const issue = new Pointer([i], unexpected);
8061
8077
  if (options.errors === "all") {
8062
8078
  if (state.issues) state.issues.push(issue);
8063
8079
  else state.issues = [issue];
8064
8080
  } else {
8065
- return yield* fail6(new Composite(ast, [issue]));
8081
+ return yield* fail6(new Composite(ast, [issue], input, options));
8066
8082
  }
8067
8083
  }
8068
8084
  }
8069
8085
  if (state.issues) {
8070
- return yield* fail6(new Composite(ast, state.issues));
8086
+ return yield* fail6(new Composite(ast, state.issues, input, options));
8071
8087
  }
8072
8088
  return state.output;
8073
8089
  });
@@ -8110,7 +8126,7 @@ var parseArray = /* @__PURE__ */ iterateEager()({
8110
8126
  if (s3.issues) s3.issues.push(issue);
8111
8127
  else s3.issues = [issue];
8112
8128
  } else {
8113
- return fail4(new Composite(s3.ast, [issue]));
8129
+ return fail4(new Composite(s3.ast, [issue], s3.input, s3.options));
8114
8130
  }
8115
8131
  }
8116
8132
  }
@@ -8127,14 +8143,14 @@ var wrapPropertyKeyIssue = (s3, ast, key, exit3) => {
8127
8143
  }
8128
8144
  const issue = getSchemaIssue(exit3.cause);
8129
8145
  if (issue === void 0) {
8130
- return failCause2(map5(exit3.cause, (issue2) => new Composite(ast, [new Pointer([key], issue2)])));
8146
+ return failCause2(map5(exit3.cause, (issue2) => new Composite(ast, [new Pointer([key], issue2)], s3.input, s3.options)));
8131
8147
  }
8132
8148
  const pointer = new Pointer([key], issue);
8133
8149
  if (s3.options.errors === "all") {
8134
8150
  if (s3.issues) s3.issues.push(pointer);
8135
8151
  else s3.issues = [pointer];
8136
8152
  } else {
8137
- return fail4(new Composite(ast, [pointer]));
8153
+ return fail4(new Composite(ast, [pointer], s3.input, s3.options));
8138
8154
  }
8139
8155
  };
8140
8156
  var FINITE_PATTERN = "[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?";
@@ -8267,7 +8283,7 @@ var Objects = class _Objects extends Base2 {
8267
8283
  return missing;
8268
8284
  }
8269
8285
  if (!(typeof input === "object" && input !== null && !Array.isArray(input))) {
8270
- return yield* fail6(new InvalidType(ast));
8286
+ return yield* fail6(new InvalidType(ast, input, options));
8271
8287
  }
8272
8288
  if (!properties) {
8273
8289
  properties = ast.propertySignatures.map((ps2) => ({
@@ -8301,7 +8317,8 @@ var Objects = class _Objects extends Base2 {
8301
8317
  const key = inputKeys[i];
8302
8318
  if (!expectedKeysSet.has(key)) {
8303
8319
  if (onExcessPropertyError) {
8304
- const issue = new Pointer([key], new UnexpectedKey(ast));
8320
+ const unexpected = new UnexpectedKey(ast, record2[key], options);
8321
+ const issue = new Pointer([key], unexpected);
8305
8322
  if (errorsAllOption) {
8306
8323
  if (state.issues) {
8307
8324
  state.issues.push(issue);
@@ -8310,7 +8327,7 @@ var Objects = class _Objects extends Base2 {
8310
8327
  }
8311
8328
  continue;
8312
8329
  } else {
8313
- return yield* fail6(new Composite(ast, [issue]));
8330
+ return yield* fail6(new Composite(ast, [issue], input, options));
8314
8331
  }
8315
8332
  } else {
8316
8333
  assignProperty(out, key, record2[key]);
@@ -8347,7 +8364,7 @@ var Objects = class _Objects extends Base2 {
8347
8364
  if (eff) yield* eff;
8348
8365
  }
8349
8366
  if (state.issues) {
8350
- return yield* fail6(new Composite(ast, state.issues));
8367
+ return yield* fail6(new Composite(ast, state.issues, input, options));
8351
8368
  }
8352
8369
  if (options.propertyOrder === "original") {
8353
8370
  const keys2 = (inputKeys ?? Reflect.ownKeys(record2)).concat(expectedKeys);
@@ -8415,7 +8432,7 @@ var parseProperties = /* @__PURE__ */ iterateEager()({
8415
8432
  else s3.issues = [issue];
8416
8433
  return;
8417
8434
  } else {
8418
- return fail4(new Composite(s3.ast, [issue]));
8435
+ return fail4(new Composite(s3.ast, [issue], s3.input, s3.options));
8419
8436
  }
8420
8437
  }
8421
8438
  }
@@ -8436,7 +8453,7 @@ function getAST(self) {
8436
8453
  function union2(members, mode, checks) {
8437
8454
  return new Union(members.map(getAST), mode, void 0, checks);
8438
8455
  }
8439
- var toCandidate = /* @__PURE__ */ memoize((ast) => {
8456
+ var toCandidate = /* @__PURE__ */ memoizeIdempotent((ast) => {
8440
8457
  while (true) {
8441
8458
  if (isSuspend(ast)) return unknown;
8442
8459
  const encoding = ast.encoding;
@@ -8648,7 +8665,7 @@ var Union = class _Union extends Base2 {
8648
8665
  if (candidates.length === 1) {
8649
8666
  const result3 = compile(candidates[0])(input, options);
8650
8667
  if (result3._tag === "Success") return result3;
8651
- return effectIsExit(result3) ? failSingleUnionCandidate(ast, result3.cause) : catchCause2(result3, (cause) => failSingleUnionCandidate(ast, cause));
8668
+ return effectIsExit(result3) ? failSingleUnionCandidate(ast, result3.cause, input, options) : catchCause2(result3, (cause) => failSingleUnionCandidate(ast, cause, input, options));
8652
8669
  }
8653
8670
  const state = {
8654
8671
  ast,
@@ -8665,10 +8682,13 @@ var Union = class _Union extends Base2 {
8665
8682
  orderedStep: true
8666
8683
  } : void 0);
8667
8684
  if (!eff) {
8668
- return state.out ?? fail6(new AnyOf(ast, state.issues ?? []));
8685
+ if (state.out) return state.out;
8686
+ return fail6(new AnyOf(ast, state.issues ?? [], input, options));
8669
8687
  }
8670
8688
  return flatMapEager2(eff, (_2) => {
8671
- return state.out === sameExit ? succeed6(input) : state.out ?? fail6(new AnyOf(ast, state.issues ?? []));
8689
+ if (state.out === sameExit) return succeed6(input);
8690
+ if (state.out) return state.out;
8691
+ return fail6(new AnyOf(ast, state.issues ?? [], input, options));
8672
8692
  });
8673
8693
  };
8674
8694
  }
@@ -8720,9 +8740,10 @@ var Union = class _Union extends Base2 {
8720
8740
  return Array.from(new Set(types)).join(" | ");
8721
8741
  }
8722
8742
  };
8723
- function failSingleUnionCandidate(ast, cause) {
8743
+ function failSingleUnionCandidate(ast, cause, input, options) {
8724
8744
  const issue = getSchemaIssue(cause);
8725
- return issue ? fail4(new AnyOf(ast, [issue])) : failCause2(cause);
8745
+ if (!issue) return failCause2(cause);
8746
+ return fail4(new AnyOf(ast, [issue], input, options));
8726
8747
  }
8727
8748
  var parseUnion = /* @__PURE__ */ iterateEager()({
8728
8749
  onItem(s3, ast) {
@@ -8740,7 +8761,7 @@ var parseUnion = /* @__PURE__ */ iterateEager()({
8740
8761
  } else {
8741
8762
  if (s3.out && s3.successes) {
8742
8763
  s3.successes.push(candidate);
8743
- return fail4(new OneOf(s3.ast, s3.successes));
8764
+ return fail4(new OneOf(s3.ast, s3.successes, s3.input, s3.options));
8744
8765
  }
8745
8766
  s3.out = exit3;
8746
8767
  if (s3.successes) {
@@ -8805,7 +8826,7 @@ var FilterGroup = class _FilterGroup extends Class {
8805
8826
  }
8806
8827
  };
8807
8828
  function makeFilter(filter10, annotations, aborted = false) {
8808
- return new Filter2((input, ast, options) => normalizeFilterOutput(ast, filter10(input, ast, options)), annotations, aborted);
8829
+ return new Filter2((input, ast, options) => normalizeFilterOutput(ast, filter10(input, ast, options), input, options), annotations, aborted);
8809
8830
  }
8810
8831
  function isFinite3(annotations) {
8811
8832
  return makeFilter((n) => globalThis.Number.isFinite(n), {
@@ -8861,6 +8882,10 @@ function modifyOwnPropertyDescriptors(ast, f2) {
8861
8882
  f2(d);
8862
8883
  return Object.create(Object.getPrototypeOf(ast), d);
8863
8884
  }
8885
+ var contextOwners = /* @__PURE__ */ new WeakMap();
8886
+ function getContextOwner(ast) {
8887
+ return contextOwners.get(ast) ?? ast;
8888
+ }
8864
8889
  function replaceEncoding(ast, encoding) {
8865
8890
  if (ast.encoding === encoding) {
8866
8891
  return ast;
@@ -8873,9 +8898,15 @@ function replaceContext(ast, context3) {
8873
8898
  if (ast.context === context3) {
8874
8899
  return ast;
8875
8900
  }
8876
- return modifyOwnPropertyDescriptors(ast, (d) => {
8901
+ const owner = getContextOwner(ast);
8902
+ if (owner.context === context3) {
8903
+ return owner;
8904
+ }
8905
+ const out = modifyOwnPropertyDescriptors(ast, (d) => {
8877
8906
  d.context.value = context3;
8878
8907
  });
8908
+ contextOwners.set(out, owner);
8909
+ return out;
8879
8910
  }
8880
8911
  function annotate(ast, annotations) {
8881
8912
  if (ast.checks) {
@@ -8919,11 +8950,15 @@ function applyToLastLink(f2) {
8919
8950
  function replaceContextLastLink(ast, context3) {
8920
8951
  return applyToLastLink((ast2) => replaceContext(ast2, context3))(ast);
8921
8952
  }
8922
- function applyToSelfOrLastLinkEncoding(f2) {
8953
+ function applyToSelfOrLastLinkEncodingIdempotent(f2, options) {
8923
8954
  function out(ast) {
8924
- return ast.encoding ? replaceEncoding(ast, updateLastLink(ast.encoding, out)) : f2(ast);
8955
+ if (ast.encoding) {
8956
+ const last = ast.encoding[ast.encoding.length - 1];
8957
+ return options?.stopAt?.(last) ? ast : replaceEncoding(ast, updateLastLink(ast.encoding, out));
8958
+ }
8959
+ return f2(ast);
8925
8960
  }
8926
- return memoize(out);
8961
+ return memoizeIdempotent(out);
8927
8962
  }
8928
8963
  function appendTransformation(from, transformation, to2) {
8929
8964
  const link4 = new Link(from, transformation);
@@ -8949,11 +8984,12 @@ function annotateKey(ast, annotations) {
8949
8984
  }) : new Context(false, false, void 0, annotations);
8950
8985
  return replaceContext(ast, context3);
8951
8986
  }
8952
- var optionalKeyLastLink = /* @__PURE__ */ applyToLastLink(optionalKey);
8953
- function optionalKey(ast) {
8987
+ var optionalKey = /* @__PURE__ */ memoizeIdempotent((ast) => {
8954
8988
  const context3 = ast.context ? ast.context.isOptional === false ? new Context(true, ast.context.isMutable, ast.context.constructorDefault, ast.context.annotations) : ast.context : new Context(true, false);
8955
8989
  return optionalKeyLastLink(replaceContext(ast, context3));
8956
- }
8990
+ });
8991
+ var optionalKeyLastLink = /* @__PURE__ */ applyToLastLink(optionalKey);
8992
+ var optional = /* @__PURE__ */ memoize((ast) => optionalKey(new Union([ast, undefined_3], "anyOf")));
8957
8993
  function withConstructorDefault(ast, defaultValue) {
8958
8994
  const transformation = new Transformation(withDefault(defaultValue), passthrough2());
8959
8995
  const constructorDefault = new Link(unknown, transformation);
@@ -8977,7 +9013,7 @@ function extractStructuralChecks(checks) {
8977
9013
  const out = checks.flatMap(extract);
8978
9014
  return isArrayNonEmpty2(out) ? out : void 0;
8979
9015
  }
8980
- var toType = /* @__PURE__ */ memoize((ast) => {
9016
+ var toType = /* @__PURE__ */ memoizeIdempotent((ast) => {
8981
9017
  if (ast.encoding) {
8982
9018
  return toType(replaceEncoding(ast, void 0));
8983
9019
  }
@@ -8993,7 +9029,7 @@ var toType = /* @__PURE__ */ memoize((ast) => {
8993
9029
  }
8994
9030
  return type;
8995
9031
  });
8996
- var toEncoded = /* @__PURE__ */ memoize((ast) => {
9032
+ var toEncoded = /* @__PURE__ */ memoizeIdempotent((ast) => {
8997
9033
  return toType(flip3(ast));
8998
9034
  });
8999
9035
  function flipEncoding(ast, encoding) {
@@ -9030,18 +9066,20 @@ function containsUndefined(ast) {
9030
9066
  }
9031
9067
  function fromConst(ast, value3) {
9032
9068
  const succeed10 = succeed8(value3);
9033
- return (input) => {
9069
+ return (input, options) => {
9034
9070
  if (input === missing) return missingExit;
9035
- return input === value3 ? succeed10 : fail6(new InvalidType(ast));
9071
+ if (input === value3) return succeed10;
9072
+ return fail6(new InvalidType(ast, input, options));
9036
9073
  };
9037
9074
  }
9038
9075
  function fromRefinement(ast, refinement) {
9039
- return (input) => {
9076
+ return (input, options) => {
9040
9077
  if (input === missing) return missingExit;
9041
- return refinement(input) ? sameExit : fail6(new InvalidType(ast));
9078
+ if (refinement(input)) return sameExit;
9079
+ return fail6(new InvalidType(ast, input, options));
9042
9080
  };
9043
9081
  }
9044
- var parameterFromPropertyKey = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((ast) => {
9082
+ var parameterFromPropertyKey = /* @__PURE__ */ applyToSelfOrLastLinkEncodingIdempotent((ast) => {
9045
9083
  switch (ast._tag) {
9046
9084
  default:
9047
9085
  return ast;
@@ -9051,7 +9089,7 @@ var parameterFromPropertyKey = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((as
9051
9089
  return ast.recur(parameterFromPropertyKey);
9052
9090
  }
9053
9091
  });
9054
- var parameterFromString = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((ast) => {
9092
+ var parameterFromString = /* @__PURE__ */ applyToSelfOrLastLinkEncodingIdempotent((ast) => {
9055
9093
  switch (ast._tag) {
9056
9094
  default:
9057
9095
  return ast;
@@ -9091,7 +9129,7 @@ function collectIssues(checks, value3, issues, ast, options) {
9091
9129
  } else {
9092
9130
  const issue = check.run(value3, ast, options);
9093
9131
  if (issue) {
9094
- const filter10 = new Filter(check, issue);
9132
+ const filter10 = new Filter(check, issue, value3, options);
9095
9133
  if (issues) issues.push(filter10);
9096
9134
  else issues = [filter10];
9097
9135
  if (options.errors !== "all" || check.aborted) {
@@ -9164,7 +9202,7 @@ function isTree(u2, isLeaf) {
9164
9202
  function isJson(u2) {
9165
9203
  return isTree(u2, isJsonLeaf);
9166
9204
  }
9167
- var Json = /* @__PURE__ */ new Declaration([], () => (input, ast) => isJson(input) ? sameExit : fail6(new InvalidType(ast)), {
9205
+ var Json = /* @__PURE__ */ new Declaration([], () => (input, ast, options) => isJson(input) ? sameExit : fail6(new InvalidType(ast, input, options)), {
9168
9206
  representation: {
9169
9207
  id: "effect/schema/Json",
9170
9208
  payload: null
@@ -9177,30 +9215,13 @@ var Json = /* @__PURE__ */ new Declaration([], () => (input, ast) => isJson(inpu
9177
9215
  function isStringTree(u2) {
9178
9216
  return isTree(u2, isStringTreeLeaf);
9179
9217
  }
9180
- var StringTree = /* @__PURE__ */ new Declaration([], () => (input, ast) => isStringTree(input) ? sameExit : fail6(new InvalidType(ast)), {
9218
+ var StringTree = /* @__PURE__ */ new Declaration([], () => (input, ast, options) => isStringTree(input) ? sameExit : fail6(new InvalidType(ast, input, options)), {
9181
9219
  expected: "StringTree",
9182
9220
  toCodecStringTree: () => void 0
9183
9221
  });
9184
9222
  var unknownToStringTree = /* @__PURE__ */ new Link(StringTree, /* @__PURE__ */ passthrough3());
9185
9223
 
9186
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/SchemaError.js
9187
- var TypeId24 = "~effect/SchemaError/SchemaError";
9188
- var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
9189
- [TypeId24] = TypeId24;
9190
- constructor(issue) {
9191
- super({
9192
- issue
9193
- });
9194
- }
9195
- get message() {
9196
- return this.issue.toString();
9197
- }
9198
- toString() {
9199
- return `SchemaError(${this.message})`;
9200
- }
9201
- };
9202
-
9203
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/SchemaParser.js
9224
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaParser.js
9204
9225
  function makeEffect(schema) {
9205
9226
  const parser = runWithCompiler(constructorCompiler, toType(schema.ast));
9206
9227
  return (input, options) => {
@@ -9231,7 +9252,7 @@ function make14(schema) {
9231
9252
  return exit3.value;
9232
9253
  }
9233
9254
  const issue = getSchemaIssueOrThrow(exit3.cause, "Constructor adapter can only throw schema issues");
9234
- throw new Error(issue.toString(), {
9255
+ throw new Error("Schema validation failed", {
9235
9256
  cause: issue
9236
9257
  });
9237
9258
  };
@@ -9292,8 +9313,8 @@ function compileConstructorDefault(ast) {
9292
9313
  function applyTransformation(result3, current, transformation, options) {
9293
9314
  let transformed;
9294
9315
  if (effectIsExit(result3) && result3._tag === "Success") {
9295
- const optional5 = toOption(result3 === sameExit ? current : result3[args]);
9296
- transformed = transformation._tag === "Transformation" ? transformation.decode.run(optional5, options) : transformation.decode(succeed8(optional5), options);
9316
+ const optional6 = toOption(result3 === sameExit ? current : result3[args]);
9317
+ transformed = transformation._tag === "Transformation" ? transformation.decode.run(optional6, options) : transformation.decode(succeed8(optional6), options);
9297
9318
  } else if (transformation._tag === "Transformation") {
9298
9319
  transformed = flatMapEager2(result3, (value3) => transformation.decode.run(toOption(value3), options));
9299
9320
  } else {
@@ -9333,7 +9354,7 @@ function makeParser(ast, compile, compileConstructorDefault2, constructorDefault
9333
9354
  if (input !== missing && output !== missing) {
9334
9355
  const issues = collectIssues(encodingChecks, input, void 0, ast, options);
9335
9356
  if (issues) {
9336
- result3 = fail6(new Composite(ast, issues));
9357
+ result3 = fail6(new Composite(ast, issues, input, options));
9337
9358
  }
9338
9359
  }
9339
9360
  }
@@ -9342,7 +9363,7 @@ function makeParser(ast, compile, compileConstructorDefault2, constructorDefault
9342
9363
  if (input !== missing && value3 !== missing) {
9343
9364
  const issues = collectIssues(encodingChecks, input, void 0, ast, options);
9344
9365
  if (issues) {
9345
- return fail6(new Composite(ast, issues));
9366
+ return fail6(new Composite(ast, issues, input, options));
9346
9367
  }
9347
9368
  }
9348
9369
  return succeed6(value3);
@@ -9356,7 +9377,7 @@ function makeParser(ast, compile, compileConstructorDefault2, constructorDefault
9356
9377
  if (value3 === missing) return result3;
9357
9378
  const issues = collectIssues(checks, value3, void 0, ast, options);
9358
9379
  if (issues) {
9359
- result3 = fail6(new Composite(ast, issues));
9380
+ result3 = fail6(new Composite(ast, issues, value3, options));
9360
9381
  }
9361
9382
  }
9362
9383
  } else {
@@ -9364,7 +9385,7 @@ function makeParser(ast, compile, compileConstructorDefault2, constructorDefault
9364
9385
  if (value3 !== missing) {
9365
9386
  const issues = collectIssues(checks, value3, void 0, ast, options);
9366
9387
  if (issues) {
9367
- return fail6(new Composite(ast, issues));
9388
+ return fail6(new Composite(ast, issues, value3, options));
9368
9389
  }
9369
9390
  }
9370
9391
  return succeed6(value3);
@@ -9403,7 +9424,7 @@ function makeParser(ast, compile, compileConstructorDefault2, constructorDefault
9403
9424
  const local = parseLocal(value3, options);
9404
9425
  return local === sameExit ? result3 : local;
9405
9426
  }
9406
- result3 = catchCause2(result3, (cause) => failCauseSync2(() => map5(cause, (issue) => new Encoding(ast, issue))));
9427
+ result3 = catchCause2(result3, (cause) => failCauseSync2(() => map5(cause, (issue) => new Encoding(ast, issue, input, options))));
9407
9428
  return flatMapEager2(result3, (value3) => {
9408
9429
  const local = parseLocal(value3, options);
9409
9430
  return local === sameExit ? succeed8(value3) : local;
@@ -9411,10 +9432,10 @@ function makeParser(ast, compile, compileConstructorDefault2, constructorDefault
9411
9432
  };
9412
9433
  }
9413
9434
 
9414
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/schema/schema.js
9415
- var TypeId25 = "~effect/Schema/Schema";
9435
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/schema/schema.js
9436
+ var TypeId24 = "~effect/Schema/Schema";
9416
9437
  var SchemaProto = {
9417
- [TypeId25]: TypeId25,
9438
+ [TypeId24]: TypeId24,
9418
9439
  pipe() {
9419
9440
  return pipeArguments(this, arguments);
9420
9441
  },
@@ -9436,20 +9457,16 @@ function make15(ast, options) {
9436
9457
  }));
9437
9458
  self.ast = ast;
9438
9459
  self.rebuild = (ast2) => make15(ast2, options);
9439
- const makeEffect2 = makeEffect(self);
9440
- self.makeEffect = (input, options2) => fromIssueEffect(makeEffect2(input, options2));
9460
+ self.makeEffect = makeEffect(self);
9441
9461
  self.make = make14(self);
9442
9462
  self.makeOption = makeOption(self);
9443
9463
  return self;
9444
9464
  }
9445
- function fromIssueEffect(self) {
9446
- return catchCause2(self, (cause) => failCauseSync2(() => map5(cause, (issue) => new SchemaError(issue))));
9447
- }
9448
9465
 
9449
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Struct.js
9466
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Struct.js
9450
9467
  var lambda = (f2) => f2;
9451
9468
 
9452
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/internal/redacted.js
9469
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/internal/redacted.js
9453
9470
  var redactedRegistry = /* @__PURE__ */ new WeakMap();
9454
9471
  var value = (self) => {
9455
9472
  if (redactedRegistry.has(self)) {
@@ -9459,9 +9476,9 @@ var value = (self) => {
9459
9476
  }
9460
9477
  };
9461
9478
 
9462
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Redacted.js
9463
- var TypeId26 = "~effect/data/Redacted";
9464
- var isRedacted = (u2) => hasProperty(u2, TypeId26);
9479
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Redacted.js
9480
+ var TypeId25 = "~effect/data/Redacted";
9481
+ var isRedacted = (u2) => hasProperty(u2, TypeId25);
9465
9482
  var make16 = (value3, options) => {
9466
9483
  const self = Object.create(Proto3);
9467
9484
  if (options?.label) {
@@ -9471,7 +9488,7 @@ var make16 = (value3, options) => {
9471
9488
  return self;
9472
9489
  };
9473
9490
  var Proto3 = {
9474
- [TypeId26]: {
9491
+ [TypeId25]: {
9475
9492
  _A: (_2) => _2
9476
9493
  },
9477
9494
  label: void 0,
@@ -9491,15 +9508,32 @@ var Proto3 = {
9491
9508
  };
9492
9509
  var value2 = value;
9493
9510
 
9494
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Schema.js
9495
- var TypeId27 = TypeId25;
9511
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/SchemaError.js
9512
+ var TypeId26 = "~effect/SchemaError/SchemaError";
9513
+ var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
9514
+ [TypeId26] = TypeId26;
9515
+ constructor(issue) {
9516
+ super({
9517
+ issue
9518
+ });
9519
+ }
9520
+ get message() {
9521
+ return defaultFormatter(this.issue);
9522
+ }
9523
+ toString() {
9524
+ return `SchemaError(${this.message})`;
9525
+ }
9526
+ };
9527
+
9528
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Schema.js
9529
+ var TypeId27 = TypeId24;
9496
9530
  function declareConstructor() {
9497
9531
  return (typeParameters, run6, annotations) => {
9498
9532
  return make17(new Declaration(typeParameters.map(getAST), (typeParameters2) => run6(typeParameters2.map((ast) => make17(ast))), annotations));
9499
9533
  };
9500
9534
  }
9501
9535
  function declare(is4, annotations) {
9502
- return declareConstructor()([], () => (input, ast) => is4(input) ? succeed6(input) : fail6(new InvalidType(ast)), annotations);
9536
+ return declareConstructor()([], () => (input, ast, options) => is4(input) ? succeed6(input) : fail6(new InvalidType(ast, input, options)), annotations);
9503
9537
  }
9504
9538
  var is2 = is;
9505
9539
  function decodeUnknownEffect2(schema, options) {
@@ -9508,14 +9542,19 @@ function decodeUnknownEffect2(schema, options) {
9508
9542
  return fromIssueEffect(parser(input, options2));
9509
9543
  };
9510
9544
  }
9545
+ function fromIssueEffect(self) {
9546
+ return catchCause2(self, (cause) => failCauseSync2(() => map5(cause, (issue) => new SchemaError(issue))));
9547
+ }
9511
9548
  var make17 = make15;
9512
9549
  function isSchema(u2) {
9513
9550
  return hasProperty(u2, TypeId27) && u2[TypeId27] === TypeId27;
9514
9551
  }
9515
- var optionalKey2 = /* @__PURE__ */ lambda((schema) => make17(optionalKey(schema.ast), {
9516
- schema
9517
- }));
9518
- var optional = /* @__PURE__ */ lambda((self) => optionalKey2(UndefinedOr(self)));
9552
+ var optional2 = /* @__PURE__ */ lambda((self) => {
9553
+ const schema = UndefinedOr(self);
9554
+ return make17(optional(self.ast), {
9555
+ schema
9556
+ });
9557
+ });
9519
9558
  function Literal2(literal) {
9520
9559
  const out = make17(new Literal(literal), {
9521
9560
  literal,
@@ -9586,13 +9625,10 @@ function decodeTo2(to2, transformation) {
9586
9625
  };
9587
9626
  }
9588
9627
  function withConstructorDefault2(defaultValue) {
9589
- return (schema) => make17(withConstructorDefault(schema.ast, toIssueEffect(defaultValue)), {
9628
+ return (schema) => make17(withConstructorDefault(schema.ast, defaultValue), {
9590
9629
  schema
9591
9630
  });
9592
9631
  }
9593
- function toIssueEffect(self) {
9594
- return catchCause2(self, (cause) => failCauseSync2(() => map5(cause, (error2) => error2.issue)));
9595
- }
9596
9632
  function tag(literal) {
9597
9633
  return Literal2(literal).pipe(withConstructorDefault2(succeed6(literal)));
9598
9634
  }
@@ -9864,8 +9900,8 @@ function getClassSchemaFactory(from, identifier2, annotations) {
9864
9900
  const ClassTypeId = getClassTypeId(identifier2);
9865
9901
  const isClassValue = (input) => input instanceof self || hasProperty(input, ClassTypeId);
9866
9902
  const transformation = getClassTransformation(self);
9867
- const to2 = make17(new Declaration([from.ast], () => (input, ast) => {
9868
- return isClassValue(input) ? succeed6(input) : fail6(new InvalidType(ast));
9903
+ const to2 = make17(new Declaration([from.ast], () => (input, ast, options) => {
9904
+ return isClassValue(input) ? succeed6(input) : fail6(new InvalidType(ast, input, options));
9869
9905
  }, {
9870
9906
  identifier: identifier2,
9871
9907
  [CONSTRUCTOR_ANNOTATION_KEY]: ([from2]) => ({
@@ -9935,7 +9971,7 @@ function makeReorder(getPriority) {
9935
9971
  };
9936
9972
  }
9937
9973
  function toCodecStringTree(schema) {
9938
- return make17(serializerStringTree(schema.ast), {
9974
+ return make17(toCodecStringTreeAST(schema.ast), {
9939
9975
  schema
9940
9976
  });
9941
9977
  }
@@ -9952,7 +9988,7 @@ var toStringTreeReorder = /* @__PURE__ */ makeReorder((ast) => {
9952
9988
  return 1;
9953
9989
  }
9954
9990
  });
9955
- function serializerTree(ast, recur, onMissingAnnotation) {
9991
+ function toCodecStringTreeASTStep(ast, recur, onMissingAnnotation) {
9956
9992
  switch (ast._tag) {
9957
9993
  case "Declaration": {
9958
9994
  const typeParameters = ast.typeParameters.map((tp) => make17(recur(toEncoded(tp))));
@@ -10001,13 +10037,10 @@ function serializerTree(ast, recur, onMissingAnnotation) {
10001
10037
  }
10002
10038
  var nullToString = /* @__PURE__ */ new Link(/* @__PURE__ */ new Literal("null"), /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform(() => null), /* @__PURE__ */ transform(() => "null")));
10003
10039
  var booleanToString = /* @__PURE__ */ new Link(/* @__PURE__ */ new Union([/* @__PURE__ */ new Literal("true"), /* @__PURE__ */ new Literal("false")], "anyOf"), /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform((s3) => s3 === "true"), /* @__PURE__ */ String2()));
10004
- var SERIALIZER_ENSURE_ARRAY = "~effect/Schema/SERIALIZER_ENSURE_ARRAY";
10005
- var isSerializerArrayFromSingle = (ast) => isUnion(ast) && ast.annotations?.[SERIALIZER_ENSURE_ARRAY] === true;
10006
- var serializerStringTree = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((ast) => {
10007
- if (isSerializerArrayFromSingle(ast)) {
10008
- return ast;
10009
- }
10010
- const out = serializerTree(ast, serializerStringTree, (ast2) => {
10040
+ var arrayFromSingleTransformation = /* @__PURE__ */ new Transformation(/* @__PURE__ */ transform((input) => typeof input === "string" ? [input] : input), /* @__PURE__ */ passthrough2());
10041
+ var isCodecArrayFromSingleLink = (link4) => link4.transformation === arrayFromSingleTransformation;
10042
+ var toCodecStringTreeAST = /* @__PURE__ */ applyToSelfOrLastLinkEncodingIdempotent((ast) => {
10043
+ const out = toCodecStringTreeASTStep(ast, toCodecStringTreeAST, (ast2) => {
10011
10044
  throw new globalThis.Error("Missing structural codec for StringTree", {
10012
10045
  cause: ast2
10013
10046
  });
@@ -10016,6 +10049,8 @@ var serializerStringTree = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((ast) =
10016
10049
  return replaceContextLastLink(out, withoutConstructorDefault(ast.context));
10017
10050
  }
10018
10051
  return out;
10052
+ }, {
10053
+ stopAt: isCodecArrayFromSingleLink
10019
10054
  });
10020
10055
  var Json2 = /* @__PURE__ */ make17(/* @__PURE__ */ annotate(Json, {
10021
10056
  toCode: () => ({
@@ -10024,7 +10059,7 @@ var Json2 = /* @__PURE__ */ make17(/* @__PURE__ */ annotate(Json, {
10024
10059
  })
10025
10060
  }));
10026
10061
 
10027
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/http/Cookies.js
10062
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/Cookies.js
10028
10063
  var TypeId28 = "~effect/http/Cookies";
10029
10064
  var CookieTypeId = "~effect/http/Cookies/Cookie";
10030
10065
  var Proto4 = {
@@ -10207,7 +10242,7 @@ var tryDecodeURIComponent = (str) => {
10207
10242
  }
10208
10243
  };
10209
10244
 
10210
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/http/Headers.js
10245
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/Headers.js
10211
10246
  var TypeId29 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
10212
10247
  var Proto5 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
10213
10248
  [TypeId29]: {
@@ -10314,7 +10349,7 @@ var CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentReda
10314
10349
  defaultValue: () => ["authorization", "cookie", "set-cookie", "x-api-key"]
10315
10350
  });
10316
10351
 
10317
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/http/UrlParams.js
10352
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/UrlParams.js
10318
10353
  var TypeId30 = "~effect/http/UrlParams";
10319
10354
  var isUrlParams = (u2) => hasProperty(u2, TypeId30);
10320
10355
  var Proto6 = {
@@ -10395,7 +10430,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
10395
10430
  return out;
10396
10431
  });
10397
10432
 
10398
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/http/HttpBody.js
10433
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpBody.js
10399
10434
  var TypeId31 = "~effect/http/HttpBody";
10400
10435
  var Proto7 = class {
10401
10436
  [TypeId31];
@@ -10422,7 +10457,7 @@ var Empty2 = class extends Proto7 {
10422
10457
  };
10423
10458
  var empty9 = /* @__PURE__ */ new Empty2();
10424
10459
 
10425
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/http/HttpClientError.js
10460
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpClientError.js
10426
10461
  var TypeId32 = "~effect/http/HttpClientError";
10427
10462
  var HttpClientError = class extends (/* @__PURE__ */ TaggedError2("HttpClientError")) {
10428
10463
  constructor(props) {
@@ -10557,10 +10592,10 @@ var EmptyBodyError = class extends (/* @__PURE__ */ TaggedError2("EmptyBodyError
10557
10592
  }
10558
10593
  };
10559
10594
 
10560
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/http/HttpMethod.js
10595
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpMethod.js
10561
10596
  var allShort = [["GET", "get"], ["POST", "post"], ["PUT", "put"], ["DELETE", "del"], ["PATCH", "patch"], ["HEAD", "head"], ["OPTIONS", "options"], ["TRACE", "trace"]];
10562
10597
 
10563
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/http/internal/httpBody.js
10598
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/internal/httpBody.js
10564
10599
  var updateHeaders = (headers, body) => {
10565
10600
  if (body._tag === "Empty" || body._tag === "FormData") {
10566
10601
  return remove2(remove2(headers, "content-type"), "content-length");
@@ -10569,7 +10604,7 @@ var updateHeaders = (headers, body) => {
10569
10604
  return body.contentLength === void 0 ? remove2(headers, "content-length") : set2(headers, "content-length", body.contentLength.toString());
10570
10605
  };
10571
10606
 
10572
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/http/Url.js
10607
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/Url.js
10573
10608
  var UrlError = class extends (/* @__PURE__ */ TaggedError2("UrlError")) {
10574
10609
  };
10575
10610
  var make20 = (url, params, hash2) => try_({
@@ -10597,7 +10632,7 @@ var baseUrl = () => {
10597
10632
  return void 0;
10598
10633
  };
10599
10634
 
10600
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/http/HttpClientRequest.js
10635
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpClientRequest.js
10601
10636
  var TypeId33 = "~effect/http/HttpClientRequest";
10602
10637
  var Proto8 = {
10603
10638
  [TypeId33]: TypeId33,
@@ -10694,7 +10729,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
10694
10729
  return makeWith(self.method, self.url, self.urlParams, self.hash, updateHeaders(self.headers, body), body);
10695
10730
  });
10696
10731
 
10697
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
10732
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
10698
10733
  var TypeId34 = "~effect/http/HttpIncomingMessage";
10699
10734
  var inspect = (self, that) => {
10700
10735
  const contentType = self.headers["content-type"] ?? "";
@@ -10721,7 +10756,7 @@ var inspect = (self, that) => {
10721
10756
  return obj;
10722
10757
  };
10723
10758
 
10724
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/http/HttpClientResponse.js
10759
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpClientResponse.js
10725
10760
  var TypeId35 = "~effect/http/HttpClientResponse";
10726
10761
  var fromWeb = (request5, source) => new WebHttpClientResponse(request5, source);
10727
10762
  var stream2 = (effect2) => unwrap3(map6(effect2, (self) => self.stream));
@@ -10848,7 +10883,7 @@ var WebHttpClientResponse = class extends Class2 {
10848
10883
  }
10849
10884
  };
10850
10885
 
10851
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/http/HttpTraceContext.js
10886
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpTraceContext.js
10852
10887
  var toHeaders = (span) => fromRecordUnsafe({
10853
10888
  b3: `${span.traceId}-${span.spanId}-${span.sampled ? "1" : "0"}${match(span.parent, {
10854
10889
  onNone: () => "",
@@ -10857,7 +10892,7 @@ var toHeaders = (span) => fromRecordUnsafe({
10857
10892
  traceparent: `00-${span.traceId}-${span.spanId}-${span.sampled ? "01" : "00"}`
10858
10893
  });
10859
10894
 
10860
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/http/HttpClient.js
10895
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/HttpClient.js
10861
10896
  var TypeId36 = "~effect/http/HttpClient";
10862
10897
  var HttpClient = /* @__PURE__ */ Service("effect/HttpClient");
10863
10898
  var transformResponse = /* @__PURE__ */ dual(2, (self, f2) => makeWith2((request5) => f2(self.postprocess(request5)), self.preprocess));
@@ -11070,7 +11105,7 @@ var InterruptibleResponse = class {
11070
11105
  }
11071
11106
  };
11072
11107
 
11073
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.104_effect@4.0.0-beta.104/node_modules/@effect/platform-node-shared/dist/NodeSink.js
11108
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeSink.js
11074
11109
  var fromWritable = (options) => fromChannel2(mapDone(fromWritableChannel(options), (_2) => [_2]));
11075
11110
  var fromWritableChannel = (options) => fromTransform((pull) => {
11076
11111
  const writable = options.evaluate();
@@ -11110,7 +11145,7 @@ var pullIntoWritable = (options) => options.pull.pipe(flatMap3((chunk) => {
11110
11145
  });
11111
11146
  }) : identity);
11112
11147
 
11113
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.104_effect@4.0.0-beta.104/node_modules/@effect/platform-node-shared/dist/NodeStream.js
11148
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeStream.js
11114
11149
  var fromReadable = (options) => fromChannel3(fromReadableChannel(options));
11115
11150
  var fromReadableChannel = (options) => fromTransform((_2, scope3) => readableToPullUnsafe({
11116
11151
  scope: scope3,
@@ -11169,7 +11204,7 @@ var readableToPullUnsafe = (options) => {
11169
11204
  };
11170
11205
  var defaultOnError = (error2) => new UnknownError2(error2);
11171
11206
 
11172
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/http/FetchHttpClient.js
11207
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/http/FetchHttpClient.js
11173
11208
  var Fetch = /* @__PURE__ */ Reference("effect/http/FetchHttpClient/Fetch", {
11174
11209
  defaultValue: () => globalThis.fetch
11175
11210
  });
@@ -11211,7 +11246,7 @@ var fetch = /* @__PURE__ */ make22((request5, url, signal, fiber3) => {
11211
11246
  });
11212
11247
  var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch));
11213
11248
 
11214
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Runtime.js
11249
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Runtime.js
11215
11250
  var defaultTeardown = (exit3, onExit4) => {
11216
11251
  if (isSuccess4(exit3)) return onExit4(0);
11217
11252
  if (hasInterruptsOnly2(exit3.cause)) return onExit4(130);
@@ -11257,7 +11292,7 @@ var getErrorReported = (u2) => {
11257
11292
  return true;
11258
11293
  };
11259
11294
 
11260
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.104_effect@4.0.0-beta.104/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
11295
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
11261
11296
  var runMain = /* @__PURE__ */ makeRunMain(({
11262
11297
  fiber: fiber3,
11263
11298
  teardown
@@ -11280,10 +11315,10 @@ var runMain = /* @__PURE__ */ makeRunMain(({
11280
11315
  process.on("SIGTERM", onSigint);
11281
11316
  });
11282
11317
 
11283
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.104_effect@4.0.0-beta.104_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeRuntime.js
11318
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeRuntime.js
11284
11319
  var runMain2 = runMain;
11285
11320
 
11286
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Path.js
11321
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Path.js
11287
11322
  var Path_exports = {};
11288
11323
  __export(Path_exports, {
11289
11324
  Path: () => Path,
@@ -11757,7 +11792,7 @@ var posixImpl = /* @__PURE__ */ Path.of({
11757
11792
  });
11758
11793
  var layer3 = /* @__PURE__ */ succeed5(Path)(posixImpl);
11759
11794
 
11760
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Brand.js
11795
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Brand.js
11761
11796
  function nominal() {
11762
11797
  return Object.assign((input) => input, {
11763
11798
  option: (input) => some2(input),
@@ -11766,7 +11801,7 @@ function nominal() {
11766
11801
  });
11767
11802
  }
11768
11803
 
11769
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
11804
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
11770
11805
  var ExitCode = /* @__PURE__ */ nominal();
11771
11806
  var ProcessId = /* @__PURE__ */ nominal();
11772
11807
  var HandleTypeId = "~effect/ChildProcessSpawner/ChildProcessHandle";
@@ -11798,7 +11833,7 @@ var make23 = (spawn2) => {
11798
11833
  var ChildProcessSpawner = class extends (/* @__PURE__ */ Service()("effect/process/ChildProcessSpawner")) {
11799
11834
  };
11800
11835
 
11801
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/process/ChildProcess.js
11836
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/process/ChildProcess.js
11802
11837
  var TypeId38 = "~effect/unstable/process/ChildProcess";
11803
11838
  var Proto10 = {
11804
11839
  .../* @__PURE__ */ Prototype2({
@@ -11922,7 +11957,7 @@ var splitByWhitespaces = (template, rawTemplate) => {
11922
11957
  };
11923
11958
  var concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || prevTokens.length === 0 || nextTokens.length === 0 ? [...prevTokens, ...nextTokens] : [...prevTokens.slice(0, -1), `${prevTokens.at(-1)}${nextTokens.at(0)}`, ...nextTokens.slice(1)];
11924
11959
 
11925
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.104_effect@4.0.0-beta.104/node_modules/@effect/platform-node-shared/dist/internal/utils.js
11960
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/internal/utils.js
11926
11961
  var handleErrnoException = (module, method) => (err, [path5]) => {
11927
11962
  let reason = "Unknown";
11928
11963
  switch (err.code) {
@@ -11958,7 +11993,7 @@ var handleErrnoException = (module, method) => (err, [path5]) => {
11958
11993
  });
11959
11994
  };
11960
11995
 
11961
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.104_effect@4.0.0-beta.104/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
11996
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
11962
11997
  var toError = (error2) => error2 instanceof globalThis.Error ? error2 : new globalThis.Error(String(error2));
11963
11998
  var toPlatformError = (method, error2, command2) => {
11964
11999
  const {
@@ -12442,7 +12477,7 @@ var flattenCommand = (command2) => {
12442
12477
  };
12443
12478
  };
12444
12479
 
12445
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Crypto.js
12480
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Crypto.js
12446
12481
  var TypeId39 = "~effect/platform/Crypto";
12447
12482
  var Crypto = /* @__PURE__ */ Service("effect/Crypto");
12448
12483
  var make27 = (impl) => {
@@ -12550,7 +12585,7 @@ var make28 = /* @__PURE__ */ make27({
12550
12585
  });
12551
12586
  var layer5 = /* @__PURE__ */ succeed5(Crypto, make28);
12552
12587
 
12553
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.104_effect@4.0.0-beta.104_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeCrypto.js
12588
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeCrypto.js
12554
12589
  var layer6 = layer5;
12555
12590
  var handleBadArgument = (method) => (err) => badArgument({
12556
12591
  module: "FileSystem",
@@ -12930,7 +12965,7 @@ var makeFileSystem = /* @__PURE__ */ map6(/* @__PURE__ */ serviceOption2(WatchBa
12930
12965
  }));
12931
12966
  var layer7 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
12932
12967
 
12933
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.104_effect@4.0.0-beta.104_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
12968
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
12934
12969
  var layer8 = layer7;
12935
12970
  var fileUrlOps = (windows) => ({
12936
12971
  fromFileUrl: (url) => try_3({
@@ -12960,20 +12995,24 @@ var layer9 = /* @__PURE__ */ succeed5(Path)({
12960
12995
  .../* @__PURE__ */ fileUrlOps(void 0)
12961
12996
  });
12962
12997
 
12963
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.104_effect@4.0.0-beta.104_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodePath.js
12998
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodePath.js
12964
12999
  var layer10 = layer9;
12965
13000
 
12966
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Stdio.js
13001
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Stdio.js
12967
13002
  var TypeId40 = "~effect/Stdio";
12968
13003
  var Stdio = /* @__PURE__ */ Service(TypeId40);
12969
13004
  var make29 = (options) => ({
12970
13005
  [TypeId40]: TypeId40,
13006
+ stdinIsTerminal: succeed6(false),
13007
+ stdoutIsTerminal: succeed6(false),
12971
13008
  ...options
12972
13009
  });
12973
13010
 
12974
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.104_effect@4.0.0-beta.104/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
13011
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.106_effect@4.0.0-beta.106/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
12975
13012
  var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make29({
12976
13013
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
13014
+ stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
13015
+ stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
12977
13016
  stdout: (options) => fromWritable({
12978
13017
  evaluate: () => process.stdout,
12979
13018
  onError: (cause) => systemError({
@@ -13006,10 +13045,10 @@ var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make29({
13006
13045
  })
13007
13046
  }));
13008
13047
 
13009
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.104_effect@4.0.0-beta.104_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeStdio.js
13048
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeStdio.js
13010
13049
  var layer12 = layer11;
13011
13050
 
13012
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Terminal.js
13051
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Terminal.js
13013
13052
  var TypeId41 = "~effect/platform/Terminal";
13014
13053
  var QuitErrorTypeId = "effect/platform/Terminal/QuitError";
13015
13054
  var QuitError = class extends (/* @__PURE__ */ Error4("QuitError")({
@@ -13080,7 +13119,8 @@ var make31 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
13080
13119
  if (inputEnded) {
13081
13120
  endUnsafe(lines2);
13082
13121
  }
13083
- }))
13122
+ })),
13123
+ idleTimeToLive: "10 millis"
13084
13124
  });
13085
13125
  const columns = sync2(() => stdout.columns ?? 0);
13086
13126
  const rows = sync2(() => stdout.rows ?? 0);
@@ -13146,13 +13186,13 @@ function defaultShouldQuit(input) {
13146
13186
  return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
13147
13187
  }
13148
13188
 
13149
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.104_effect@4.0.0-beta.104_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeTerminal.js
13189
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeTerminal.js
13150
13190
  var layer14 = layer13;
13151
13191
 
13152
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.104_effect@4.0.0-beta.104_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeServices.js
13192
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.106_effect@4.0.0-beta.106_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeServices.js
13153
13193
  var layer15 = /* @__PURE__ */ provideMerge(layer4, /* @__PURE__ */ mergeAll2(layer8, layer6, layer10, layer12, layer14));
13154
13194
 
13155
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/ConfigProvider.js
13195
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/ConfigProvider.js
13156
13196
  function makeValue(value3) {
13157
13197
  return {
13158
13198
  _tag: "Value",
@@ -13200,13 +13240,16 @@ function make32(get4) {
13200
13240
  function emptyStringAsMissing(value3, preserveEmptyStrings) {
13201
13241
  return value3 === "" && true ? void 0 : value3;
13202
13242
  }
13243
+ function fromEnvRecord(env, options) {
13244
+ const trie = buildEnvTrie(env);
13245
+ return make32((path5) => succeed6(nodeAtEnv(trie, env, path5)));
13246
+ }
13203
13247
  function fromEnv(options) {
13204
13248
  const env = {
13205
13249
  ...globalThis.process?.env,
13206
13250
  ...undefined
13207
13251
  };
13208
- const trie = buildEnvTrie(env);
13209
- return make32((path5) => succeed6(nodeAtEnv(trie, env, path5)));
13252
+ return fromEnvRecord(env);
13210
13253
  }
13211
13254
  function buildEnvTrie(env) {
13212
13255
  const trie = {};
@@ -13247,7 +13290,7 @@ function trieNodeAt(root, path5) {
13247
13290
  return node;
13248
13291
  }
13249
13292
 
13250
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Config.js
13293
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Config.js
13251
13294
  var TypeId42 = "~effect/Config";
13252
13295
  var Proto12 = {
13253
13296
  .../* @__PURE__ */ Prototype2({
@@ -13270,10 +13313,10 @@ function make33(evaluator) {
13270
13313
  return self;
13271
13314
  }
13272
13315
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
13273
- var resolved = (value3, hasInput) => ({
13316
+ var resolved = (value3, hasInput2) => ({
13274
13317
  _tag: "Resolved",
13275
13318
  value: value3,
13276
- hasInput
13319
+ hasInput: hasInput2
13277
13320
  });
13278
13321
  var map10 = /* @__PURE__ */ dual(2, (self, f2) => {
13279
13322
  return make33((provider, pathPrefix) => map6(evaluateAt(self, provider, pathPrefix), (resolution) => resolution._tag === "Resolved" ? resolved(f2(resolution.value), resolution.hasInput) : resolution));
@@ -13289,7 +13332,7 @@ var Boolean3 = /* @__PURE__ */ Literals([...TrueValues.literals, ...FalseValues.
13289
13332
  encode: (value3) => value3 ? "true" : "false"
13290
13333
  })));
13291
13334
 
13292
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/Console.js
13335
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/Console.js
13293
13336
  var Console = ConsoleRef;
13294
13337
  var consoleWith = (f2) => withFiber((fiber3) => f2(fiber3.getRef(Console)));
13295
13338
  var error = (...args2) => consoleWith((console) => sync(() => {
@@ -13299,7 +13342,7 @@ var log2 = (...args2) => consoleWith((console) => sync(() => {
13299
13342
  console.log(...args2);
13300
13343
  }));
13301
13344
 
13302
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/Argument.js
13345
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Argument.js
13303
13346
  var Argument_exports = {};
13304
13347
  __export(Argument_exports, {
13305
13348
  atLeast: () => atLeast2,
@@ -13321,7 +13364,7 @@ __export(Argument_exports, {
13321
13364
  mapEffect: () => mapEffect3,
13322
13365
  mapTryCatch: () => mapTryCatch2,
13323
13366
  none: () => none5,
13324
- optional: () => optional3,
13367
+ optional: () => optional4,
13325
13368
  orElse: () => orElse2,
13326
13369
  orElseResult: () => orElseResult2,
13327
13370
  path: () => path3,
@@ -13336,12 +13379,12 @@ __export(Argument_exports, {
13336
13379
  withSchema: () => withSchema2
13337
13380
  });
13338
13381
 
13339
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/CliError.js
13382
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/CliError.js
13340
13383
  var TypeId43 = "~effect/cli/CliError";
13341
13384
  var isCliError = (u2) => hasProperty(u2, TypeId43);
13342
13385
  var UnrecognizedOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/UnrecognizedOption`)("UnrecognizedOption", {
13343
13386
  option: String4,
13344
- command: /* @__PURE__ */ optional(/* @__PURE__ */ ArraySchema(String4)),
13387
+ command: /* @__PURE__ */ optional2(/* @__PURE__ */ ArraySchema(String4)),
13345
13388
  suggestions: /* @__PURE__ */ ArraySchema(String4)
13346
13389
  })) {
13347
13390
  /**
@@ -13469,7 +13512,7 @@ var InvalidValue2 = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/Inv
13469
13512
  };
13470
13513
  var UnknownSubcommand = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/UnknownSubcommand`)("UnknownSubcommand", {
13471
13514
  subcommand: String4,
13472
- parent: /* @__PURE__ */ optional(/* @__PURE__ */ ArraySchema(String4)),
13515
+ parent: /* @__PURE__ */ optional2(/* @__PURE__ */ ArraySchema(String4)),
13473
13516
  suggestions: /* @__PURE__ */ ArraySchema(String4)
13474
13517
  })) {
13475
13518
  /**
@@ -13514,7 +13557,7 @@ var ShowHelp = class extends (/* @__PURE__ */ TaggedError3(`${TypeId43}/ShowHelp
13514
13557
  }
13515
13558
  };
13516
13559
 
13517
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/encoding/Ini.js
13560
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/encoding/Ini.js
13518
13561
  var hasOwn = Object.prototype.hasOwnProperty;
13519
13562
  var splitSections = (value3) => {
13520
13563
  const sections = [];
@@ -13633,7 +13676,7 @@ var parse = (input) => {
13633
13676
  return output;
13634
13677
  };
13635
13678
 
13636
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/encoding/Toml.js
13679
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/encoding/Toml.js
13637
13680
  var hasOwn2 = Object.prototype.hasOwnProperty;
13638
13681
  var makeTable = () => /* @__PURE__ */ Object.create(null);
13639
13682
  var isTable = (value3) => typeof value3 === "object" && value3 !== null && !Array.isArray(value3) && !(value3 instanceof Date);
@@ -14051,7 +14094,7 @@ var TomlParser = class {
14051
14094
  };
14052
14095
  var parse2 = (input) => new TomlParser(input.replace(/^\uFEFF/, "")).parse();
14053
14096
 
14054
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/encoding/Yaml.js
14097
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/encoding/Yaml.js
14055
14098
  var hasOwn3 = Object.prototype.hasOwnProperty;
14056
14099
  var setProperty = (record2, key, value3) => {
14057
14100
  Object.defineProperty(record2, key, {
@@ -14504,7 +14547,7 @@ var parse3 = (input) => {
14504
14547
  return new YamlParser(lines2).parse();
14505
14548
  };
14506
14549
 
14507
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/Primitive.js
14550
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Primitive.js
14508
14551
  var TypeId44 = "~effect/cli/Primitive";
14509
14552
  var Proto13 = {
14510
14553
  [TypeId44]: {
@@ -14658,7 +14701,7 @@ var getTypeName = (primitive) => {
14658
14701
  var getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
14659
14702
  var getPathType = (primitive) => primitive._tag === "Path" ? primitive.pathType : void 0;
14660
14703
 
14661
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/Prompt.js
14704
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Prompt.js
14662
14705
  var Prompt_exports = {};
14663
14706
  __export(Prompt_exports, {
14664
14707
  all: () => all3,
@@ -14684,7 +14727,7 @@ __export(Prompt_exports, {
14684
14727
  toggle: () => toggle
14685
14728
  });
14686
14729
 
14687
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/internal/ansi.js
14730
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/ansi.js
14688
14731
  var ESC = "\x1B[";
14689
14732
  var BEL = "\x07";
14690
14733
  var reset = `${ESC}0m`;
@@ -14745,7 +14788,7 @@ var eraseLines = (rows) => {
14745
14788
  return command2;
14746
14789
  };
14747
14790
 
14748
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/Prompt.js
14791
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Prompt.js
14749
14792
  var TypeId45 = "~effect/cli/Prompt";
14750
14793
  var isPrompt = (u2) => hasProperty(u2, TypeId45);
14751
14794
  var defaultFigures = {
@@ -17261,7 +17304,7 @@ var entriesToDisplay = (cursor, total, maxVisible) => {
17261
17304
  };
17262
17305
  };
17263
17306
 
17264
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/Param.js
17307
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Param.js
17265
17308
  var TypeId46 = "~effect/cli/Param";
17266
17309
  var argumentKind = "argument";
17267
17310
  var flagKind = "flag";
@@ -17419,7 +17462,7 @@ var mapTryCatch = /* @__PURE__ */ dual(3, (self, f2, onError4) => {
17419
17462
  kind: single.kind
17420
17463
  })), map6((b2) => [leftover, b2]))));
17421
17464
  });
17422
- var optional2 = (param) => {
17465
+ var optional3 = (param) => {
17423
17466
  const parse4 = fnUntraced2(function* (args2) {
17424
17467
  const single = getUnderlyingSingleOrThrow(param);
17425
17468
  if (isFlagParam(single) && isBoolean2(single.primitiveType) && ![single.name, ...single.aliases].some((name) => (args2.flags[name] ?? []).length > 0)) {
@@ -17443,9 +17486,9 @@ var optional2 = (param) => {
17443
17486
  };
17444
17487
  var withDefault3 = /* @__PURE__ */ dual(2, (self, defaultValue) => {
17445
17488
  if (!isEffect2(defaultValue)) {
17446
- return map12(optional2(self), getOrElse(() => defaultValue));
17489
+ return map12(optional3(self), getOrElse(() => defaultValue));
17447
17490
  }
17448
- return mapEffect2(optional2(self), match({
17491
+ return mapEffect2(optional3(self), match({
17449
17492
  onNone: () => defaultValue,
17450
17493
  onSome: succeed6
17451
17494
  }));
@@ -17661,7 +17704,7 @@ var transformSingle = (param, f2) => {
17661
17704
  Single: (single) => f2(single),
17662
17705
  Map: (mapped) => map12(transformSingle(mapped.param, f2), mapped.f),
17663
17706
  Transform: (mapped) => transform3(transformSingle(mapped.param, f2), mapped.f, mapped.alternatives.map((alternative) => () => transformSingle(alternative(), f2))),
17664
- Optional: (p2) => optional2(transformSingle(p2.param, f2)),
17707
+ Optional: (p2) => optional3(transformSingle(p2.param, f2)),
17665
17708
  Variadic: (p2) => variadic(transformSingle(p2.param, f2), {
17666
17709
  min: getOrUndefined(p2.min),
17667
17710
  max: getOrUndefined(p2.max)
@@ -17673,7 +17716,7 @@ var extractSingleParams = (param) => {
17673
17716
  Single: (single) => [single],
17674
17717
  Map: (mapped) => extractSingleParams(mapped.param),
17675
17718
  Transform: (mapped) => [...extractSingleParams(mapped.param), ...mapped.alternatives.flatMap((alternative) => extractSingleParams(alternative()))],
17676
- Optional: (optional5) => extractSingleParams(optional5.param),
17719
+ Optional: (optional6) => extractSingleParams(optional6.param),
17677
17720
  Variadic: (variadic3) => extractSingleParams(variadic3.param)
17678
17721
  });
17679
17722
  };
@@ -17697,8 +17740,8 @@ var getParamMetadata = (param) => {
17697
17740
  }),
17698
17741
  Map: (mapped) => getParamMetadata(mapped.param),
17699
17742
  Transform: (mapped) => getParamMetadata(mapped.param),
17700
- Optional: (optional5) => ({
17701
- ...getParamMetadata(optional5.param),
17743
+ Optional: (optional6) => ({
17744
+ ...getParamMetadata(optional6.param),
17702
17745
  isOptional: true
17703
17746
  }),
17704
17747
  Variadic: (variadic3) => ({
@@ -17710,7 +17753,7 @@ var getParamMetadata = (param) => {
17710
17753
  });
17711
17754
  };
17712
17755
 
17713
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/Argument.js
17756
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Argument.js
17714
17757
  var string5 = (name) => string4(argumentKind, name);
17715
17758
  var integer4 = (name) => integer3(argumentKind, name);
17716
17759
  var file4 = (name, options) => file3(argumentKind, name, options);
@@ -17724,7 +17767,7 @@ var fileText3 = (name) => fileText2(argumentKind, name);
17724
17767
  var fileParse3 = (name, options) => fileParse2(argumentKind, name, options);
17725
17768
  var fileSchema3 = (name, schema, options) => fileSchema2(argumentKind, name, schema, options);
17726
17769
  var none5 = /* @__PURE__ */ none4(argumentKind);
17727
- var optional3 = (arg) => optional2(arg);
17770
+ var optional4 = (arg) => optional3(arg);
17728
17771
  var withDescription2 = /* @__PURE__ */ dual(2, (self, description) => withDescription(self, description));
17729
17772
  var withDefault4 = withDefault3;
17730
17773
  var withFallbackConfig2 = /* @__PURE__ */ dual(2, (self, config) => withFallbackConfig(self, config));
@@ -17744,7 +17787,7 @@ var filterMap4 = /* @__PURE__ */ dual(3, (self, f2, onNone) => filterMap3(self,
17744
17787
  var orElse2 = /* @__PURE__ */ dual(2, (self, that) => orElse(self, that));
17745
17788
  var orElseResult2 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
17746
17789
 
17747
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/CliOutput.js
17790
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/CliOutput.js
17748
17791
  var Formatter = /* @__PURE__ */ Reference("effect/cli/CliOutput", {
17749
17792
  defaultValue: () => defaultFormatter2()
17750
17793
  });
@@ -17940,7 +17983,7 @@ var formatHelpDocImpl = (doc, colors2) => {
17940
17983
  return sections.join("\n");
17941
17984
  };
17942
17985
 
17943
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
17986
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
17944
17987
  var escapeForBash = (s3) => s3.replace(/'/g, "'\\''");
17945
17988
  var sanitizeFunctionName = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
17946
17989
  var flagNamesForWordlist = (flag) => {
@@ -18162,7 +18205,7 @@ var generate = (executableName, descriptor) => {
18162
18205
  return lines2.join("\n");
18163
18206
  };
18164
18207
 
18165
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
18208
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
18166
18209
  var escapeFishString = (s3) => s3.replace(/'/g, "\\'");
18167
18210
  var subcommandCondition = (parentPath, childSubcommandNames) => {
18168
18211
  if (parentPath.length === 0) {
@@ -18330,7 +18373,7 @@ var generate2 = (executableName, descriptor) => {
18330
18373
  return lines2.join("\n");
18331
18374
  };
18332
18375
 
18333
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
18376
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
18334
18377
  var escapeZsh = (s3) => s3.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
18335
18378
  var sanitize = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
18336
18379
  var allForms = (flag) => {
@@ -18488,7 +18531,7 @@ var generate3 = (executableName, descriptor) => {
18488
18531
  return lines2.join("\n");
18489
18532
  };
18490
18533
 
18491
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/Completions.js
18534
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Completions.js
18492
18535
  var generate4 = (executableName, shell, descriptor) => {
18493
18536
  switch (shell) {
18494
18537
  case "bash":
@@ -18500,7 +18543,7 @@ var generate4 = (executableName, shell, descriptor) => {
18500
18543
  }
18501
18544
  };
18502
18545
 
18503
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/Flag.js
18546
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Flag.js
18504
18547
  var Flag_exports = {};
18505
18548
  __export(Flag_exports, {
18506
18549
  atLeast: () => atLeast3,
@@ -18524,7 +18567,7 @@ __export(Flag_exports, {
18524
18567
  mapEffect: () => mapEffect4,
18525
18568
  mapTryCatch: () => mapTryCatch3,
18526
18569
  none: () => none6,
18527
- optional: () => optional4,
18570
+ optional: () => optional5,
18528
18571
  orElse: () => orElse3,
18529
18572
  orElseResult: () => orElseResult3,
18530
18573
  path: () => path4,
@@ -18559,7 +18602,7 @@ var withAlias2 = /* @__PURE__ */ dual(2, (self, alias) => withAlias(self, alias)
18559
18602
  var withDescription3 = /* @__PURE__ */ dual(2, (self, description) => withDescription(self, description));
18560
18603
  var withMetavar3 = /* @__PURE__ */ dual(2, (self, metavar) => withMetavar(self, metavar));
18561
18604
  var withHidden2 = (self) => withHidden(self);
18562
- var optional4 = (param) => optional2(param);
18605
+ var optional5 = (param) => optional3(param);
18563
18606
  var withDefault5 = withDefault3;
18564
18607
  var withFallbackConfig3 = /* @__PURE__ */ dual(2, (self, config) => withFallbackConfig(self, config));
18565
18608
  var withFallbackPrompt3 = /* @__PURE__ */ dual(2, (self, prompt) => withFallbackPrompt(self, prompt));
@@ -18575,7 +18618,7 @@ var orElse3 = /* @__PURE__ */ dual(2, (self, that) => orElse(self, that));
18575
18618
  var orElseResult3 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
18576
18619
  var withSchema3 = /* @__PURE__ */ dual(2, (self, schema) => withSchema(self, schema));
18577
18620
 
18578
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/internal/config.js
18621
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/config.js
18579
18622
  var ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
18580
18623
  var parseConfig = (config) => {
18581
18624
  const orderedParams = [];
@@ -18676,7 +18719,7 @@ var reconstructTree = (tree, results) => {
18676
18719
  }
18677
18720
  };
18678
18721
 
18679
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/internal/command.js
18722
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/command.js
18680
18723
  var TypeId47 = "~effect/cli/Command";
18681
18724
  var toImpl = (self) => self;
18682
18725
  var Proto15 = {
@@ -18867,7 +18910,7 @@ var checkForDuplicateFlags = (parent, subcommands, options) => {
18867
18910
  }
18868
18911
  };
18869
18912
 
18870
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/internal/completions/descriptor.js
18913
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/completions/descriptor.js
18871
18914
  var toFlagType = (single) => {
18872
18915
  const tag2 = single.primitiveType._tag;
18873
18916
  switch (tag2) {
@@ -19000,7 +19043,7 @@ var fromCommand = (cmd) => {
19000
19043
  };
19001
19044
  };
19002
19045
 
19003
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/internal/help.js
19046
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/help.js
19004
19047
  var dedupeGlobalFlags = (flags) => {
19005
19048
  const seen = /* @__PURE__ */ new Set();
19006
19049
  const deduped = [];
@@ -19105,7 +19148,7 @@ var getHelpForCommandPath = (command2, commandPath, builtIns) => gen2(function*
19105
19148
  };
19106
19149
  });
19107
19150
 
19108
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/GlobalFlag.js
19151
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/GlobalFlag.js
19109
19152
  var action = (options) => ({
19110
19153
  _tag: "Action",
19111
19154
  flag: options.flag,
@@ -19148,7 +19191,7 @@ var Wizard = /* @__PURE__ */ action({
19148
19191
  run: () => void_3
19149
19192
  });
19150
19193
  var Completions = /* @__PURE__ */ action({
19151
- flag: /* @__PURE__ */ choice4("completions", ["bash", "zsh", "fish", "sh"]).pipe(optional4, /* @__PURE__ */ map14((v2) => map(v2, (s3) => s3 === "sh" ? "bash" : s3)), /* @__PURE__ */ withMetavar3("<bash|zsh|fish|sh>"), /* @__PURE__ */ withDescription3("Print shell completion script")),
19194
+ flag: /* @__PURE__ */ choice4("completions", ["bash", "zsh", "fish", "sh"]).pipe(optional5, /* @__PURE__ */ map14((v2) => map(v2, (s3) => s3 === "sh" ? "bash" : s3)), /* @__PURE__ */ withMetavar3("<bash|zsh|fish|sh>"), /* @__PURE__ */ withDescription3("Print shell completion script")),
19152
19195
  run: /* @__PURE__ */ fnUntraced2(function* (shell, {
19153
19196
  command: command2
19154
19197
  }) {
@@ -19158,11 +19201,11 @@ var Completions = /* @__PURE__ */ action({
19158
19201
  })
19159
19202
  });
19160
19203
  var LogLevel = /* @__PURE__ */ setting("log-level")({
19161
- flag: /* @__PURE__ */ choiceWithValue3("log-level", [["all", "All"], ["trace", "Trace"], ["debug", "Debug"], ["info", "Info"], ["warn", "Warn"], ["warning", "Warn"], ["error", "Error"], ["fatal", "Fatal"], ["none", "None"]]).pipe(optional4, /* @__PURE__ */ withDescription3("Sets the minimum log level"), /* @__PURE__ */ withMetavar3("<all|trace|debug|info|warn|warning|error|fatal|none>"))
19204
+ flag: /* @__PURE__ */ choiceWithValue3("log-level", [["all", "All"], ["trace", "Trace"], ["debug", "Debug"], ["info", "Info"], ["warn", "Warn"], ["warning", "Warn"], ["error", "Error"], ["fatal", "Fatal"], ["none", "None"]]).pipe(optional5, /* @__PURE__ */ withDescription3("Sets the minimum log level"), /* @__PURE__ */ withMetavar3("<all|trace|debug|info|warn|warning|error|fatal|none>"))
19162
19205
  });
19163
19206
  var BuiltIns = [Help, Version, Wizard, Completions, LogLevel];
19164
19207
 
19165
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/CliConfig.js
19208
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/CliConfig.js
19166
19209
  var CliConfig = class extends (/* @__PURE__ */ Reference("effect/unstable/cli/CliConfig", {
19167
19210
  defaultValue: () => defaults
19168
19211
  })) {
@@ -19171,7 +19214,7 @@ var defaults = {
19171
19214
  builtIns: BuiltIns
19172
19215
  };
19173
19216
 
19174
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/Command.js
19217
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Command.js
19175
19218
  var Command_exports = {};
19176
19219
  __export(Command_exports, {
19177
19220
  annotate: () => annotate3,
@@ -19196,7 +19239,7 @@ __export(Command_exports, {
19196
19239
  wizard: () => wizard
19197
19240
  });
19198
19241
 
19199
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/internal/lexer.js
19242
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/lexer.js
19200
19243
  function lex(argv) {
19201
19244
  const endIndex = argv.indexOf("--");
19202
19245
  if (endIndex === -1) {
@@ -19267,7 +19310,7 @@ var lexTokens = (args2) => {
19267
19310
  return tokens;
19268
19311
  };
19269
19312
 
19270
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
19313
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
19271
19314
  var levenshtein = (a, b2) => {
19272
19315
  const m2 = a.length;
19273
19316
  const n = b2.length;
@@ -19291,7 +19334,7 @@ var suggest = (input, candidates) => {
19291
19334
  return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
19292
19335
  };
19293
19336
 
19294
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/internal/parser.js
19337
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/parser.js
19295
19338
  var getCommandPath = (parsedInput) => match(parsedInput.subcommand, {
19296
19339
  onNone: () => [],
19297
19340
  onSome: (subcommand) => [subcommand.name, ...getCommandPath(subcommand.parsedInput)]
@@ -19794,7 +19837,7 @@ var scanCommandLevel = (tokens, context3) => {
19794
19837
  return toLeafResult(state);
19795
19838
  };
19796
19839
 
19797
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/internal/wizard.js
19840
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/internal/wizard.js
19798
19841
  var run4 = /* @__PURE__ */ fnUntraced2(function* (command2, options) {
19799
19842
  const commandPath = options?.commandPath ?? [command2.name];
19800
19843
  const selected = getCommandAtPath(command2, commandPath);
@@ -19998,7 +20041,7 @@ var wrapCommand = (commandLine) => {
19998
20041
  };
19999
20042
  var formatShellArg = (arg) => /^[A-Za-z0-9_./:@%+=,-]+$/.test(arg) ? arg : `'${arg.replaceAll("'", `'"'"'`)}'`;
20000
20043
 
20001
- // ../../node_modules/.pnpm/effect@4.0.0-beta.104/node_modules/effect/dist/unstable/cli/Command.js
20044
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.106/node_modules/effect/dist/unstable/cli/Command.js
20002
20045
  var isCommand = (u2) => hasProperty(u2, TypeId47);
20003
20046
  var make34 = (name, config, handler) => {
20004
20047
  const parsedConfig = parseConfig(config ?? {});