create-efffrida-app 0.0.16 → 0.0.17

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 +437 -400
  2. package/package.json +4 -4
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-rc.108/node_modules/effect/dist/Effect.js
58
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Effect.js
59
59
  var Effect_exports = {};
60
60
  __export(Effect_exports, {
61
61
  Do: () => Do2,
@@ -139,6 +139,7 @@ __export(Effect_exports, {
139
139
  fromOption: () => fromOption3,
140
140
  fromResult: () => fromResult2,
141
141
  gen: () => gen2,
142
+ head: () => head2,
142
143
  ignore: () => ignore2,
143
144
  ignoreCause: () => ignoreCause2,
144
145
  interrupt: () => interrupt2,
@@ -159,11 +160,11 @@ __export(Effect_exports, {
159
160
  logWithLevel: () => logWithLevel2,
160
161
  makeSpan: () => makeSpan2,
161
162
  makeSpanScoped: () => makeSpanScoped2,
162
- map: () => map6,
163
+ map: () => map7,
163
164
  mapBoth: () => mapBoth2,
164
165
  mapBothEager: () => mapBothEager2,
165
166
  mapEager: () => mapEager2,
166
- mapError: () => mapError3,
167
+ mapError: () => mapError2,
167
168
  mapErrorEager: () => mapErrorEager2,
168
169
  match: () => match6,
169
170
  matchCause: () => matchCause2,
@@ -287,7 +288,7 @@ __export(Effect_exports, {
287
288
  zipWith: () => zipWith2
288
289
  });
289
290
 
290
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Pipeable.js
291
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Pipeable.js
291
292
  var pipeArguments = (self, args2) => {
292
293
  switch (args2.length) {
293
294
  case 0:
@@ -331,7 +332,7 @@ var Class = /* @__PURE__ */ (function() {
331
332
  return PipeableBase;
332
333
  })();
333
334
 
334
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Function.js
335
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Function.js
335
336
  var dual = function(arity, body) {
336
337
  if (typeof arity === "function") {
337
338
  return function() {
@@ -442,7 +443,7 @@ function memoizeIdempotent(f2) {
442
443
  };
443
444
  }
444
445
 
445
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/equal.js
446
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/equal.js
446
447
  var getAllObjectKeys = (obj) => {
447
448
  const keys2 = new Set(Reflect.ownKeys(obj));
448
449
  if (obj.constructor === Object) return keys2;
@@ -465,7 +466,7 @@ var getAllObjectKeys = (obj) => {
465
466
  };
466
467
  var byReferenceInstances = /* @__PURE__ */ new WeakSet();
467
468
 
468
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Predicate.js
469
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Predicate.js
469
470
  function isString(input) {
470
471
  return typeof input === "string";
471
472
  }
@@ -511,7 +512,7 @@ function isIterable(input) {
511
512
  return hasProperty(input, Symbol.iterator) || isString(input);
512
513
  }
513
514
 
514
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Hash.js
515
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Hash.js
515
516
  var symbol = "~effect/interfaces/Hash";
516
517
  var hash = (self) => {
517
518
  switch (typeof self) {
@@ -635,7 +636,7 @@ function withVisitedTracking(obj, fn3) {
635
636
  return result3;
636
637
  }
637
638
 
638
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Equal.js
639
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Equal.js
639
640
  var symbol2 = "~effect/interfaces/Equal";
640
641
  function equals() {
641
642
  if (arguments.length === 1) {
@@ -827,7 +828,7 @@ function makeCompareSet(equivalence) {
827
828
  var compareSets = /* @__PURE__ */ makeCompareSet(compareBoth);
828
829
  var isEqual = (u2) => hasProperty(u2, symbol2);
829
830
 
830
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Redactable.js
831
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Redactable.js
831
832
  var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Redactable");
832
833
  var isRedactable = (u2) => hasProperty(u2, symbolRedactable);
833
834
  function redact(u2) {
@@ -849,7 +850,7 @@ var emptyContext = {
849
850
  }
850
851
  };
851
852
 
852
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Formatter.js
853
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Formatter.js
853
854
  function format(input, options) {
854
855
  const space = options?.space ?? 0;
855
856
  const ancestors = /* @__PURE__ */ new WeakSet();
@@ -950,7 +951,7 @@ function formatJson(input, options) {
950
951
  }, options?.space) ?? "null";
951
952
  }
952
953
 
953
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Inspectable.js
954
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Inspectable.js
954
955
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
955
956
  var toJson = (input) => {
956
957
  try {
@@ -1017,7 +1018,7 @@ var Class2 = class {
1017
1018
  }
1018
1019
  };
1019
1020
 
1020
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Utils.js
1021
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Utils.js
1021
1022
  var SingleShotGen = class _SingleShotGen {
1022
1023
  called = false;
1023
1024
  self;
@@ -1077,7 +1078,7 @@ var pickInternalCall = () => {
1077
1078
  };
1078
1079
  var internalCall = /* @__PURE__ */ pickInternalCall();
1079
1080
 
1080
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/record.js
1081
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/record.js
1081
1082
  function assignProperty(self, key, value3) {
1082
1083
  if (key === "__proto__") {
1083
1084
  Object.defineProperty(self, key, {
@@ -1098,7 +1099,7 @@ function assignProperties(self, source) {
1098
1099
  }
1099
1100
  }
1100
1101
 
1101
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/core.js
1102
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/core.js
1102
1103
  var EffectTypeId = `~effect/Effect`;
1103
1104
  var ExitTypeId = `~effect/Exit`;
1104
1105
  var effectVariance = {
@@ -1441,13 +1442,13 @@ var done = (value3) => {
1441
1442
  return exitFail(Done(value3));
1442
1443
  };
1443
1444
 
1444
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Effectable.js
1445
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Effectable.js
1445
1446
  var Prototype2 = (options) => makePrimitiveProto({
1446
1447
  op: options.label,
1447
1448
  [evaluate]: options.evaluate
1448
1449
  });
1449
1450
 
1450
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Equivalence.js
1451
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Equivalence.js
1451
1452
  var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
1452
1453
  var isStrictEquivalent = (x, y) => x === y;
1453
1454
  var strictEqual = () => isStrictEquivalent;
@@ -1474,7 +1475,7 @@ function Array_(item) {
1474
1475
  });
1475
1476
  }
1476
1477
 
1477
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/doNotation.js
1478
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/doNotation.js
1478
1479
  var let_ = (map15) => dual(3, (self, name, f2) => map15(self, (a) => ({
1479
1480
  ...a,
1480
1481
  [name]: f2(a)
@@ -1487,7 +1488,7 @@ var bind = (map15, flatMap6) => dual(3, (self, name, f2) => flatMap6(self, (a) =
1487
1488
  [name]: b2
1488
1489
  }))));
1489
1490
 
1490
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/option.js
1491
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/option.js
1491
1492
  var TypeId = "~effect/data/Option";
1492
1493
  var CommonProto = {
1493
1494
  [TypeId]: {
@@ -1553,7 +1554,7 @@ var some = (value3) => {
1553
1554
  return a;
1554
1555
  };
1555
1556
 
1556
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/result.js
1557
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/result.js
1557
1558
  var TypeId2 = "~effect/data/Result";
1558
1559
  var CommonProto2 = {
1559
1560
  [TypeId2]: {
@@ -1620,7 +1621,7 @@ var succeed = (success) => {
1620
1621
  return a;
1621
1622
  };
1622
1623
 
1623
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Order.js
1624
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Order.js
1624
1625
  function make2(compare) {
1625
1626
  return (self, that) => self === that ? 0 : compare(self, that);
1626
1627
  }
@@ -1634,7 +1635,7 @@ var mapInput = /* @__PURE__ */ dual(2, (self, f2) => make2((b1, b2) => self(f2(b
1634
1635
  var Date2 = /* @__PURE__ */ mapInput(Number2, (date6) => date6.getTime());
1635
1636
  var isGreaterThan = (O2) => dual(2, (self, that) => O2(self, that) === 1);
1636
1637
 
1637
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Option.js
1638
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Option.js
1638
1639
  var none2 = () => none;
1639
1640
  var some2 = some;
1640
1641
  var isOption2 = isOption;
@@ -1654,7 +1655,7 @@ var filter = /* @__PURE__ */ dual(2, (self, predicate) => isNone2(self) ? none2(
1654
1655
  var liftPredicate = /* @__PURE__ */ dual(2, (b2, predicate) => predicate(b2) ? some2(b2) : none2());
1655
1656
  var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone2(self) ? false : refinement(self.value));
1656
1657
 
1657
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Context.js
1658
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Context.js
1658
1659
  var ServiceTypeId = "~effect/Context/Service";
1659
1660
  var Service = function() {
1660
1661
  function KeyClass() {
@@ -1753,13 +1754,13 @@ var lookup = (self, key) => {
1753
1754
  };
1754
1755
  var makeUnsafe = (mapUnsafe) => makeImpl(void 0, mapUnsafe, void 0, 0);
1755
1756
  var Proto = {
1757
+ get mapUnsafe() {
1758
+ return flatten(this);
1759
+ },
1756
1760
  ...PipeInspectableProto,
1757
1761
  [TypeId3]: {
1758
1762
  _Services: (_2) => _2
1759
1763
  },
1760
- get mapUnsafe() {
1761
- return flatten(this);
1762
- },
1763
1764
  toJSON() {
1764
1765
  return {
1765
1766
  _id: "Context",
@@ -1789,20 +1790,21 @@ var isReference = (u2) => !!u2[ReferenceTypeId];
1789
1790
  var empty = () => emptyContext2;
1790
1791
  var emptyContext2 = /* @__PURE__ */ makeUnsafe(/* @__PURE__ */ new Map());
1791
1792
  var make3 = (key, service3) => makeUnsafe(/* @__PURE__ */ new Map([[key.key, service3]]));
1792
- var add = /* @__PURE__ */ dual(3, (self, key, service3) => {
1793
+ var add = /* @__PURE__ */ dual(3, (self, key, service3) => addUnsafe(self, key.key, service3));
1794
+ var addUnsafe = (self, key, service3) => {
1793
1795
  const impl = self;
1794
- const cacheRoot = cacheKeys.has(key.key) ? void 0 : impl.cacheRoot;
1796
+ const cacheRoot = cacheKeys.has(key) ? void 0 : impl.cacheRoot;
1795
1797
  if (impl.depth >= MaxDepth) {
1796
1798
  const map15 = new Map(impl.mapUnsafe);
1797
- map15.set(key.key, service3);
1799
+ map15.set(key, service3);
1798
1800
  return makeImpl(cacheRoot, map15, void 0, 0);
1799
1801
  }
1800
1802
  return makeImpl(cacheRoot, impl.base, {
1801
- key: key.key,
1803
+ key,
1802
1804
  value: service3,
1803
1805
  parent: impl.overlay
1804
1806
  }, impl.depth + 1);
1805
- });
1807
+ };
1806
1808
  var getOrUndefined2 = /* @__PURE__ */ dual(2, (self, key) => getOrUndefinedUnsafe(self, key.key));
1807
1809
  var getOrUndefinedUnsafe = (self, key) => {
1808
1810
  const value3 = lookup(self, key);
@@ -1854,7 +1856,7 @@ var mergeAll = (...ctxs) => {
1854
1856
  };
1855
1857
  var Reference = Service;
1856
1858
 
1857
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Duration.js
1859
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Duration.js
1858
1860
  var TypeId4 = "~effect/time/Duration";
1859
1861
  var bigint0 = /* @__PURE__ */ BigInt(0);
1860
1862
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -2122,10 +2124,10 @@ var subtract = /* @__PURE__ */ dual(2, (self, that) => matchPair(self, that, {
2122
2124
  }));
2123
2125
  var equals2 = /* @__PURE__ */ dual(2, (self, that) => Equivalence(self, that));
2124
2126
 
2125
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/array.js
2127
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/array.js
2126
2128
  var isArrayNonEmpty = (self) => self.length > 0;
2127
2129
 
2128
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Result.js
2130
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Result.js
2129
2131
  var succeed2 = succeed;
2130
2132
  var fail2 = fail;
2131
2133
  var try_ = (evaluate2) => {
@@ -2150,10 +2152,10 @@ var match3 = /* @__PURE__ */ dual(2, (self, {
2150
2152
  onSuccess
2151
2153
  }) => isFailure2(self) ? onFailure(self.failure) : onSuccess(self.success));
2152
2154
 
2153
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Tuple.js
2155
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Tuple.js
2154
2156
  var makeEquivalence = Tuple;
2155
2157
 
2156
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Iterable.js
2158
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Iterable.js
2157
2159
  var findFirst = /* @__PURE__ */ dual(2, (self, f2) => {
2158
2160
  let i = 0;
2159
2161
  for (const a of self) {
@@ -2196,7 +2198,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => ({
2196
2198
  }
2197
2199
  }));
2198
2200
 
2199
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Record.js
2201
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Record.js
2200
2202
  var has = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key));
2201
2203
  var map2 = /* @__PURE__ */ dual(2, (self, f2) => {
2202
2204
  const out = {
@@ -2221,7 +2223,7 @@ var makeEquivalence2 = (equivalence) => {
2221
2223
  return (self, that) => is4(self, that) && is4(that, self);
2222
2224
  };
2223
2225
 
2224
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Array.js
2226
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Array.js
2225
2227
  var Array2 = globalThis.Array;
2226
2228
  var fromIterable = (collection) => Array2.isArray(collection) ? collection : Array2.from(collection);
2227
2229
  var ensure = (self) => Array2.isArray(self) ? self : [self];
@@ -2318,16 +2320,7 @@ var dedupe = (self) => {
2318
2320
  return out;
2319
2321
  };
2320
2322
 
2321
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Filter.js
2322
- var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
2323
- const leftOut = left(input);
2324
- if (isFailure2(leftOut)) return fail2(input);
2325
- const rightOut = right(leftOut.success);
2326
- if (isFailure2(rightOut)) return fail2(input);
2327
- return rightOut;
2328
- });
2329
-
2330
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Scheduler.js
2323
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Scheduler.js
2331
2324
  var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
2332
2325
  fiberCached: true,
2333
2326
  defaultValue: () => new MixedScheduler()
@@ -2464,7 +2457,47 @@ var PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventS
2464
2457
  defaultValue: () => false
2465
2458
  });
2466
2459
 
2467
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Tracer.js
2460
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Data.js
2461
+ var taggedEnum = () => new Proxy({}, {
2462
+ get(_target, tag2, _receiver) {
2463
+ if (tag2 === "$is") {
2464
+ return isTagged;
2465
+ } else if (tag2 === "$match") {
2466
+ return taggedMatch;
2467
+ }
2468
+ return (props) => ({
2469
+ ...props,
2470
+ _tag: tag2
2471
+ });
2472
+ }
2473
+ });
2474
+ function taggedMatch() {
2475
+ if (arguments.length === 1) {
2476
+ const cases2 = arguments[0];
2477
+ return function(value4) {
2478
+ return cases2[value4._tag](value4);
2479
+ };
2480
+ }
2481
+ const value3 = arguments[0];
2482
+ const cases = arguments[1];
2483
+ return cases[value3._tag](value3);
2484
+ }
2485
+ var Error3 = Error2;
2486
+ var TaggedError2 = TaggedError;
2487
+ var randomHex = (length) => {
2488
+ let result3 = "";
2489
+ for (let i = length >>> 3; i > 0; i--) {
2490
+ const word = Math.random() * 4294967296 >>> 0;
2491
+ result3 += byteToHex[word >>> 24] + byteToHex[word >>> 16 & 255] + byteToHex[word >>> 8 & 255] + byteToHex[word & 255];
2492
+ }
2493
+ return result3;
2494
+ };
2495
+ var byteToHex = [];
2496
+ for (let i = 0; i < 256; i++) {
2497
+ byteToHex.push(i.toString(16).padStart(2, "0"));
2498
+ }
2499
+
2500
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Tracer.js
2468
2501
  var ParentSpanKey = "effect/Tracer/ParentSpan";
2469
2502
  var ParentSpan = class extends (/* @__PURE__ */ Service()(ParentSpanKey, {
2470
2503
  fiberCached: true
@@ -2514,8 +2547,8 @@ var NativeSpan = class {
2514
2547
  startTime: options.startTime
2515
2548
  };
2516
2549
  this.attributes = /* @__PURE__ */ new Map();
2517
- this.traceId = getOrUndefined(options.parent)?.traceId ?? randomHexString(32);
2518
- this.spanId = randomHexString(16);
2550
+ this.traceId = getOrUndefined(options.parent)?.traceId ?? randomHex(32);
2551
+ this.spanId = randomHex(16);
2519
2552
  }
2520
2553
  end(endTime, exit3) {
2521
2554
  this.status = {
@@ -2535,22 +2568,11 @@ var NativeSpan = class {
2535
2568
  this.links.push(...links);
2536
2569
  }
2537
2570
  };
2538
- var randomHexString = /* @__PURE__ */ (function() {
2539
- const characters = "abcdef0123456789";
2540
- const charactersLength = characters.length;
2541
- return function(length) {
2542
- let result3 = "";
2543
- for (let i = 0; i < length; i++) {
2544
- result3 += characters.charAt(Math.floor(Math.random() * charactersLength));
2545
- }
2546
- return result3;
2547
- };
2548
- })();
2549
2571
 
2550
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/metric.js
2572
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/metric.js
2551
2573
  var FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
2552
2574
 
2553
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/references.js
2575
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/references.js
2554
2576
  var CurrentErrorReporters = /* @__PURE__ */ Reference("effect/ErrorReporter/CurrentErrorReporters", {
2555
2577
  defaultValue: () => /* @__PURE__ */ new Set()
2556
2578
  });
@@ -2585,7 +2607,7 @@ var CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpa
2585
2607
  defaultValue: () => []
2586
2608
  });
2587
2609
 
2588
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/stackTraceLimit.js
2610
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/stackTraceLimit.js
2589
2611
  var isStackTraceLimitWritable = () => {
2590
2612
  const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
2591
2613
  if (desc === void 0) {
@@ -2601,7 +2623,7 @@ var setStackTraceLimit = (value3) => {
2601
2623
  }
2602
2624
  };
2603
2625
 
2604
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/tracer.js
2626
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/tracer.js
2605
2627
  var addSpanStackTrace = (options) => {
2606
2628
  if (options?.captureStackTrace === false) {
2607
2629
  return options;
@@ -2632,7 +2654,7 @@ var makeStackCleaner = (line) => (stack) => {
2632
2654
  };
2633
2655
  var spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
2634
2656
 
2635
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/effect.js
2657
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/effect.js
2636
2658
  var Interrupt = class extends ReasonBase {
2637
2659
  fiberId;
2638
2660
  constructor(fiberId3, annotations = constEmptyAnnotations) {
@@ -2930,6 +2952,7 @@ var FiberImpl = class {
2930
2952
  }
2931
2953
  this._observers.push(cb);
2932
2954
  return () => {
2955
+ if (this._exit) return;
2933
2956
  const index = this._observers.indexOf(cb);
2934
2957
  if (index >= 0) {
2935
2958
  this._observers.splice(index, 1);
@@ -3188,7 +3211,7 @@ var yieldNowWith = /* @__PURE__ */ makePrimitive({
3188
3211
  var yieldNow = /* @__PURE__ */ yieldNowWith(0);
3189
3212
  var succeedSome = (a) => succeed3(some2(a));
3190
3213
  var succeedNone = /* @__PURE__ */ succeed3(/* @__PURE__ */ none2());
3191
- var transposeOption = (self) => isNone2(self) ? succeedNone : map4(self.value, some2);
3214
+ var transposeOption = (self) => isNone2(self) ? succeedNone : map5(self.value, some2);
3192
3215
  var failCauseSync = (evaluate2) => suspend(() => failCause(internalCall(evaluate2)));
3193
3216
  var die = (defect) => exitDie(defect);
3194
3217
  var failSync = (error2) => suspend(() => fail3(internalCall(error2)));
@@ -3307,7 +3330,7 @@ var fn = function() {
3307
3330
  return makeFn(name, arguments[0], defError, Array.prototype.slice.call(arguments, 1), nameFirst, spanOptions);
3308
3331
  };
3309
3332
  var makeFn = (name, bodyOrOptions, defError, pipeables, addSpan, spanOptions) => {
3310
- const body = typeof bodyOrOptions === "function" ? bodyOrOptions : pipeables.pop().bind(bodyOrOptions.self);
3333
+ const body = typeof bodyOrOptions === "function" ? bodyOrOptions : pipeables.shift().bind(bodyOrOptions.self);
3311
3334
  return defineFunctionLength(body.length, function(...args2) {
3312
3335
  let result3 = suspend(() => {
3313
3336
  const iter = body.apply(this, arguments);
@@ -3399,7 +3422,7 @@ var as = /* @__PURE__ */ dual(2, (self, value3) => {
3399
3422
  const b2 = succeed3(value3);
3400
3423
  return flatMap2(self, (_2) => b2);
3401
3424
  });
3402
- var asSome = (self) => map4(self, some2);
3425
+ var asSome = (self) => map5(self, some2);
3403
3426
  var flip = (self) => matchEffect(self, {
3404
3427
  onFailure: succeed3,
3405
3428
  onSuccess: fail3
@@ -3503,9 +3526,9 @@ var flatMapEager = /* @__PURE__ */ dual(2, (self, f2) => {
3503
3526
  return flatMap2(self, f2);
3504
3527
  });
3505
3528
  var flatten2 = (self) => flatMap2(self, identity);
3506
- var map4 = /* @__PURE__ */ dual(2, (self, f2) => flatMap2(self, (a) => succeed3(internalCall(() => f2(a)))));
3507
- var mapEager = /* @__PURE__ */ dual(2, (self, f2) => effectIsExit(self) ? exitMap(self, f2) : map4(self, f2));
3508
- var mapErrorEager = /* @__PURE__ */ dual(2, (self, f2) => effectIsExit(self) ? exitMapError(self, f2) : mapError2(self, f2));
3529
+ var map5 = /* @__PURE__ */ dual(2, (self, f2) => flatMap2(self, (a) => succeed3(internalCall(() => f2(a)))));
3530
+ var mapEager = /* @__PURE__ */ dual(2, (self, f2) => effectIsExit(self) ? exitMap(self, f2) : map5(self, f2));
3531
+ var mapErrorEager = /* @__PURE__ */ dual(2, (self, f2) => effectIsExit(self) ? exitMapError(self, f2) : mapError(self, f2));
3509
3532
  var mapBothEager = /* @__PURE__ */ dual(2, (self, options) => effectIsExit(self) ? exitMapBoth(self, options) : mapBoth(self, options));
3510
3533
  var catchEager = /* @__PURE__ */ dual(2, (self, f2) => {
3511
3534
  if (effectIsExit(self)) {
@@ -3546,7 +3569,7 @@ var exitAsVoidAll = (exits) => {
3546
3569
  };
3547
3570
  var service = (service3) => service3;
3548
3571
  var serviceOption = (service3) => withFiber((fiber3) => succeed3(getOption(fiber3.context, service3)));
3549
- var serviceOptional = (service3) => withFiber((fiber3) => fiber3.context.mapUnsafe.has(service3.key) ? succeed3(getUnsafe(fiber3.context, service3)) : fail3(new NoSuchElementError()));
3572
+ var serviceOptional = (service3) => withFiber((fiber3) => fromOption2(getOption(fiber3.context, service3)));
3550
3573
  var updateContext = /* @__PURE__ */ dual(2, (self, f2) => withFiber((fiber3) => {
3551
3574
  const prevContext = fiber3.context;
3552
3575
  const nextContext = f2(prevContext);
@@ -3594,16 +3617,12 @@ var provideService = function() {
3594
3617
  }
3595
3618
  return dual(3, (self, service3, impl) => provideServiceImpl(self, service3, impl)).apply(this, arguments);
3596
3619
  };
3597
- var provideServiceImpl = (self, service3, implementation) => updateContext(self, (s3) => {
3598
- const prev = s3.mapUnsafe.get(service3.key);
3599
- if (prev === implementation) return s3;
3600
- return add(s3, service3, implementation);
3601
- });
3620
+ var provideServiceImpl = (self, service3, implementation) => updateContext(self, add(service3, implementation));
3602
3621
  var provideServiceEffect = /* @__PURE__ */ dual(3, (self, service3, acquire) => flatMap2(acquire, (implementation) => provideService(self, service3, implementation)));
3603
3622
  var zip = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, options) => zipWith(self, that, (a, a2) => [a, a2], options));
3604
- var zipWith = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, f2, options) => options?.concurrent ? map4(all([self, that], {
3623
+ var zipWith = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, f2, options) => options?.concurrent ? map5(all([self, that], {
3605
3624
  concurrency: 2
3606
- }), ([a, a2]) => internalCall(() => f2(a, a2))) : flatMap2(self, (a) => map4(that, (a2) => internalCall(() => f2(a, a2)))));
3625
+ }), ([a, a2]) => internalCall(() => f2(a, a2))) : flatMap2(self, (a) => map5(that, (a2) => internalCall(() => f2(a, a2)))));
3607
3626
  var filterOrFail = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, predicate, orFailWith) => filterOrElse(self, predicate, orFailWith ? (a) => fail3(orFailWith(a)) : () => fail3(new NoSuchElementError())));
3608
3627
  var when = /* @__PURE__ */ dual(2, (self, condition) => flatMap2(condition, (pass) => pass ? asSome(self) : succeedNone));
3609
3628
  var replicate = /* @__PURE__ */ dual(2, (self, n) => Array.from({
@@ -3709,7 +3728,7 @@ var unwrapReason = /* @__PURE__ */ dual(2, (self, errorTag) => catchFilter(self,
3709
3728
  }
3710
3729
  return fail2(e);
3711
3730
  }, fail3));
3712
- var mapError2 = /* @__PURE__ */ dual(2, (self, f2) => catch_(self, (error2) => failSync(() => f2(error2))));
3731
+ var mapError = /* @__PURE__ */ dual(2, (self, f2) => catch_(self, (error2) => failSync(() => f2(error2))));
3713
3732
  var mapBoth = /* @__PURE__ */ dual(2, (self, options) => matchEffect(self, {
3714
3733
  onFailure: (e) => failSync(() => options.onFailure(e)),
3715
3734
  onSuccess: (a) => sync(() => options.onSuccess(a))
@@ -3843,7 +3862,7 @@ var timeout = /* @__PURE__ */ dual(2, (self, duration) => timeoutOrElse(self, {
3843
3862
  var timeoutOption = /* @__PURE__ */ dual(2, (self, duration) => raceFirst(asSome(self), as(sleep(duration), none2())));
3844
3863
  var timed = (self) => clockWith((clock) => {
3845
3864
  const start = clock.monotonicTimeNanosUnsafe();
3846
- return map4(self, (a) => [nanos(clock.monotonicTimeNanosUnsafe() - start), a]);
3865
+ return map5(self, (a) => [nanos(clock.monotonicTimeNanosUnsafe() - start), a]);
3847
3866
  });
3848
3867
  var ScopeTypeId = "~effect/Scope";
3849
3868
  var ScopeCloseableTypeId = "~effect/Scope/Closeable";
@@ -3870,6 +3889,7 @@ var scopeCloseUnsafe = (self, exit_) => {
3870
3889
  }
3871
3890
  return scopeCloseFinalizers(self, finalizers, exit_);
3872
3891
  };
3892
+ var combineFinalizerCause = (exit_, finalizer) => exitIsSuccess(exit_) ? finalizer : catchCause(finalizer, (cause) => failCause(causeCombine(exit_.cause, cause)));
3873
3893
  var scopeCloseFinalizers = /* @__PURE__ */ fnUntraced(function* (self, finalizers, exit_) {
3874
3894
  let exits = [];
3875
3895
  const fibers = [];
@@ -3971,7 +3991,7 @@ var onExitPrimitive = /* @__PURE__ */ makePrimitive({
3971
3991
  [contE](cause, _2, exit3) {
3972
3992
  exit3 ??= exitFailCause(cause);
3973
3993
  const eff = this[args][1](exit3);
3974
- return eff ? flatMap2(eff, (_3) => exit3) : exit3;
3994
+ return eff ? flatMap2(combineFinalizerCause(exit3, eff), (_3) => exit3) : exit3;
3975
3995
  }
3976
3996
  });
3977
3997
  var onExit = /* @__PURE__ */ dual(2, onExitPrimitive);
@@ -4030,7 +4050,7 @@ var cachedInvalidateWithTTL = /* @__PURE__ */ dual(2, (self, ttl) => sync(() =>
4030
4050
  exit3 = void 0;
4031
4051
  })];
4032
4052
  }));
4033
- var cachedWithTTL = /* @__PURE__ */ dual(2, (self, timeToLive) => map4(cachedInvalidateWithTTL(self, timeToLive), (tuple2) => tuple2[0]));
4053
+ var cachedWithTTL = /* @__PURE__ */ dual(2, (self, timeToLive) => map5(cachedInvalidateWithTTL(self, timeToLive), (tuple2) => tuple2[0]));
4034
4054
  var cached = (self) => cachedWithTTL(self, infinity);
4035
4055
  var interrupt = /* @__PURE__ */ withFiber((fiber3) => failCause(causeInterrupt(fiber3.id)));
4036
4056
  var uninterruptible = (self) => withFiber((fiber3) => {
@@ -4071,7 +4091,7 @@ var interruptibleMask = (f2) => withFiber((fiber3) => {
4071
4091
  const effect2 = f2(uninterruptible);
4072
4092
  return interrupted ?? effect2;
4073
4093
  });
4074
- var abortSignal = /* @__PURE__ */ map4(/* @__PURE__ */ acquireRelease(/* @__PURE__ */ sync(() => new AbortController()), (controller) => sync(() => controller.abort())), (_2) => _2.signal);
4094
+ var abortSignal = /* @__PURE__ */ map5(/* @__PURE__ */ acquireRelease(/* @__PURE__ */ sync(() => new AbortController()), (controller) => sync(() => controller.abort())), (_2) => _2.signal);
4075
4095
  var all = (arg, options) => {
4076
4096
  if (isIterable(arg)) {
4077
4097
  return options?.mode === "result" ? forEach(arg, result, options) : forEach(arg, identity, options);
@@ -4080,7 +4100,7 @@ var all = (arg, options) => {
4080
4100
  }
4081
4101
  return suspend(() => {
4082
4102
  const out = {};
4083
- return as(forEach(Object.entries(arg), ([key, effect2]) => map4(options?.mode === "result" ? result(effect2) : effect2, (value3) => {
4103
+ return as(forEach(Object.entries(arg), ([key, effect2]) => map5(options?.mode === "result" ? result(effect2) : effect2, (value3) => {
4084
4104
  assignProperty(out, key, value3);
4085
4105
  }), {
4086
4106
  discard: true,
@@ -4088,14 +4108,14 @@ var all = (arg, options) => {
4088
4108
  }), out);
4089
4109
  });
4090
4110
  };
4091
- var partition2 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, f2, options) => map4(forEach(elements, (a, i) => result(f2(a, i)), options), (results) => partition(results, identity)));
4111
+ var partition2 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, f2, options) => map5(forEach(elements, (a, i) => result(f2(a, i)), options), (results) => partition(results, identity)));
4092
4112
  var reduce2 = /* @__PURE__ */ dual(3, (elements, zero2, f2) => {
4093
4113
  const arr = fromIterable(elements);
4094
4114
  if (arr.length === 0) return sync(zero2);
4095
4115
  return suspend(() => {
4096
4116
  let index = 0;
4097
4117
  let state = zero2();
4098
- return map4(whileLoop({
4118
+ return map5(whileLoop({
4099
4119
  while: () => index < arr.length,
4100
4120
  body: () => f2(state, arr[index], index),
4101
4121
  step(next) {
@@ -4187,6 +4207,10 @@ var forEach = /* @__PURE__ */ dual((args2) => typeof args2[1] === "function", (i
4187
4207
  });
4188
4208
  return eff ? as(eff, out) : succeed3(out);
4189
4209
  }));
4210
+ var head = (self) => flatMap2(self, (elements) => {
4211
+ const result3 = elements[Symbol.iterator]().next();
4212
+ return result3.done ? fail3(new NoSuchElementError()) : succeed3(result3.value);
4213
+ });
4190
4214
  var forEachSequential = (iterable, f2, options) => suspend(() => {
4191
4215
  const out = options?.discard ? void 0 : [];
4192
4216
  const iterator = iterable[Symbol.iterator]();
@@ -4373,7 +4397,7 @@ var filter3 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(
4373
4397
  if (result3) out.push(a);
4374
4398
  return void_;
4375
4399
  }
4376
- return map4(result3, (keep) => {
4400
+ return map5(result3, (keep) => {
4377
4401
  if (keep) {
4378
4402
  out.push(a);
4379
4403
  }
@@ -4395,7 +4419,7 @@ var filterMap = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffec
4395
4419
  }));
4396
4420
  var filterMapEffect = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, filter10, options) => suspend(() => {
4397
4421
  const out = [];
4398
- return as(forEach(elements, (a) => map4(filter10(a), (result3) => {
4422
+ return as(forEach(elements, (a) => map5(filter10(a), (result3) => {
4399
4423
  if (isSuccess2(result3)) {
4400
4424
  out.push(result3.success);
4401
4425
  }
@@ -4405,9 +4429,9 @@ var filterMapEffect = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !i
4405
4429
  }), out);
4406
4430
  }));
4407
4431
  var Do = /* @__PURE__ */ succeed3({});
4408
- var bindTo2 = /* @__PURE__ */ bindTo(map4);
4409
- var bind2 = /* @__PURE__ */ bind(map4, flatMap2);
4410
- var let_2 = /* @__PURE__ */ let_(map4);
4432
+ var bindTo2 = /* @__PURE__ */ bindTo(map5);
4433
+ var bind2 = /* @__PURE__ */ bind(map5, flatMap2);
4434
+ var let_2 = /* @__PURE__ */ let_(map5);
4411
4435
  var forkChild = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, options) => withFiber((fiber3) => {
4412
4436
  interruptChildrenPatch();
4413
4437
  return succeed3(forkUnsafe(fiber3, self, options?.startImmediately, false, options?.uninterruptible ?? false));
@@ -4674,7 +4698,7 @@ var makeSpanUnsafe = (fiber3, name, options) => {
4674
4698
  const annotationsFromEnv = fiber3.getRef(TracerSpanAnnotations);
4675
4699
  const linksFromEnv = fiber3.getRef(TracerSpanLinks);
4676
4700
  const level = options?.level ?? fiber3.getRef(CurrentTraceLevel);
4677
- const links = options?.links !== void 0 ? [...linksFromEnv, ...options.links] : linksFromEnv.slice();
4701
+ const links = options?.links !== void 0 ? [...linksFromEnv, ...options.links] : linksFromEnv.length === 0 ? [] : linksFromEnv.slice();
4678
4702
  span = tracer3.span({
4679
4703
  name,
4680
4704
  parent,
@@ -4685,12 +4709,12 @@ var makeSpanUnsafe = (fiber3, name, options) => {
4685
4709
  root: options?.root ?? isNone2(parent),
4686
4710
  sampled: options?.sampled ?? (isSome2(parent) && parent.value.sampled === false ? false : !isLogLevelGreaterThan(fiber3.getRef(MinimumTraceLevel), level))
4687
4711
  });
4688
- for (const [key, value3] of Object.entries(annotationsFromEnv)) {
4689
- span.attribute(key, value3);
4712
+ for (const key in annotationsFromEnv) {
4713
+ span.attribute(key, annotationsFromEnv[key]);
4690
4714
  }
4691
4715
  if (options?.attributes !== void 0) {
4692
- for (const [key, value3] of Object.entries(options.attributes)) {
4693
- span.attribute(key, value3);
4716
+ for (const key in options.attributes) {
4717
+ span.attribute(key, options.attributes[key]);
4694
4718
  }
4695
4719
  }
4696
4720
  }
@@ -5091,7 +5115,7 @@ var reportCauseUnsafe = (fiber3, cause, defectsOnly) => {
5091
5115
  reporters.forEach((reporter) => reporter.report(opts));
5092
5116
  };
5093
5117
 
5094
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Exit.js
5118
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Exit.js
5095
5119
  var succeed4 = exitSucceed;
5096
5120
  var failCause2 = exitFailCause;
5097
5121
  var fail4 = exitFail;
@@ -5099,7 +5123,7 @@ var void_2 = exitVoid;
5099
5123
  var isSuccess4 = exitIsSuccess;
5100
5124
  var isFailure4 = exitIsFailure;
5101
5125
 
5102
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Deferred.js
5126
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Deferred.js
5103
5127
  var TypeId5 = "~effect/Deferred";
5104
5128
  var DeferredProto = {
5105
5129
  [TypeId5]: {
@@ -5135,20 +5159,21 @@ var doneUnsafe = (self, effect2) => {
5135
5159
  if (self.effect) return false;
5136
5160
  self.effect = effect2;
5137
5161
  if (self.resumes) {
5138
- for (let i = 0; i < self.resumes.length; i++) {
5139
- self.resumes[i](effect2);
5140
- }
5162
+ const resumes = self.resumes;
5141
5163
  self.resumes = void 0;
5164
+ for (let i = 0; i < resumes.length; i++) {
5165
+ resumes[i](effect2);
5166
+ }
5142
5167
  }
5143
5168
  return true;
5144
5169
  };
5145
5170
 
5146
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/References.js
5171
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/References.js
5147
5172
  var CurrentLogAnnotations2 = CurrentLogAnnotations;
5148
5173
  var CurrentLogSpans2 = CurrentLogSpans;
5149
5174
  var MinimumLogLevel2 = MinimumLogLevel;
5150
5175
 
5151
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Scope.js
5176
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Scope.js
5152
5177
  var Scope = scopeTag;
5153
5178
  var makeUnsafe3 = scopeMakeUnsafe;
5154
5179
  var provide = provideScope;
@@ -5157,7 +5182,7 @@ var addFinalizer2 = scopeAddFinalizer;
5157
5182
  var forkUnsafe2 = scopeForkUnsafe;
5158
5183
  var close = scopeClose;
5159
5184
 
5160
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Layer.js
5185
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Layer.js
5161
5186
  var TypeId6 = "~effect/Layer";
5162
5187
  var MemoMapTypeId = "~effect/Layer/MemoMap";
5163
5188
  var memoMapReuse = (entry, scope3) => {
@@ -5242,7 +5267,7 @@ var CurrentMemoMap = class _CurrentMemoMap extends (/* @__PURE__ */ Service()("e
5242
5267
  return current ? forkMemoMapUnsafe(current) : makeMemoMapUnsafe();
5243
5268
  }
5244
5269
  };
5245
- var buildWithMemoMap = /* @__PURE__ */ dual(3, (self, memoMap, scope3) => provideService(map4(self.build(memoMap, scope3), add(CurrentMemoMap, memoMap)), CurrentMemoMap, memoMap));
5270
+ var buildWithMemoMap = /* @__PURE__ */ dual(3, (self, memoMap, scope3) => provideService(map5(self.build(memoMap, scope3), add(CurrentMemoMap, memoMap)), CurrentMemoMap, memoMap));
5246
5271
  var buildWithScope = /* @__PURE__ */ dual(2, (self, scope3) => withFiber((fiber3) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber3.context), scope3)));
5247
5272
  var succeed5 = function() {
5248
5273
  if (arguments.length === 1) {
@@ -5257,16 +5282,16 @@ var effect = function() {
5257
5282
  }
5258
5283
  return effectImpl(arguments[0], arguments[1]);
5259
5284
  };
5260
- var effectImpl = (service3, effect2) => effectContext(map4(effect2, (value3) => make3(service3, value3)));
5285
+ var effectImpl = (service3, effect2) => effectContext(map5(effect2, (value3) => make3(service3, value3)));
5261
5286
  var effectContext = (effect2) => fromBuildMemo((_2, scope3) => provide(effect2, scope3));
5262
5287
  var mergeAllEffect = (layers, memoMap, scope3) => {
5263
5288
  const parentScope = forkUnsafe2(scope3, "parallel");
5264
5289
  return forEach(layers, (layer16) => layer16.build(memoMap, forkUnsafe2(parentScope, "sequential")), {
5265
5290
  concurrency: layers.length
5266
- }).pipe(map4((context3) => mergeAll(...context3)));
5291
+ }).pipe(map5((context3) => mergeAll(...context3)));
5267
5292
  };
5268
5293
  var mergeAll2 = (...layers) => fromBuild((memoMap, scope3) => mergeAllEffect(layers, memoMap, scope3));
5269
- var provideWith = (self, that, f2) => fromBuild((memoMap, scope3) => flatMap2(Array.isArray(that) ? mergeAllEffect(that, memoMap, scope3) : that.build(memoMap, scope3), (context3) => self.build(memoMap, scope3).pipe(provideContext(context3), map4((merged) => f2(merged, context3)))));
5294
+ var provideWith = (self, that, f2) => fromBuild((memoMap, scope3) => flatMap2(Array.isArray(that) ? mergeAllEffect(that, memoMap, scope3) : that.build(memoMap, scope3), (context3) => self.build(memoMap, scope3).pipe(provideContext(context3), map5((merged) => f2(merged, context3)))));
5270
5295
  var provideMerge = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, that, (self2, that2) => merge(that2, self2)));
5271
5296
  var CurrentMetadata = /* @__PURE__ */ Reference("effect/ExecutionPlan/CurrentMetadata", {
5272
5297
  defaultValue: /* @__PURE__ */ constant({
@@ -5275,58 +5300,45 @@ var CurrentMetadata = /* @__PURE__ */ Reference("effect/ExecutionPlan/CurrentMet
5275
5300
  })
5276
5301
  });
5277
5302
 
5278
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Cause.js
5303
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Cause.js
5279
5304
  var isFailReason2 = isFailReason;
5305
+ var fromReasons = causeFromReasons;
5280
5306
  var fail5 = causeFail;
5281
5307
  var hasInterruptsOnly2 = hasInterruptsOnly;
5282
- var map5 = causeMap;
5308
+ var map6 = causeMap;
5283
5309
  var squash = causeSquash;
5284
- var findError2 = findError;
5285
5310
  var hasInterrupts2 = hasInterrupts;
5286
5311
  var isDone3 = isDone;
5287
5312
  var Done2 = Done;
5288
5313
  var done3 = done;
5289
5314
  var UnknownError2 = UnknownError;
5290
-
5291
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Data.js
5292
- var taggedEnum = () => new Proxy({}, {
5293
- get(_target, tag2, _receiver) {
5294
- if (tag2 === "$is") {
5295
- return isTagged;
5296
- } else if (tag2 === "$match") {
5297
- return taggedMatch;
5298
- }
5299
- return (props) => ({
5300
- ...props,
5301
- _tag: tag2
5302
- });
5303
- }
5304
- });
5305
- function taggedMatch() {
5306
- if (arguments.length === 1) {
5307
- const cases2 = arguments[0];
5308
- return function(value4) {
5309
- return cases2[value4._tag](value4);
5310
- };
5311
- }
5312
- const value3 = arguments[0];
5313
- const cases = arguments[1];
5314
- return cases[value3._tag](value3);
5315
- }
5316
- var Error3 = Error2;
5317
- var TaggedError2 = TaggedError;
5318
5315
  var Order = Number2;
5319
5316
  var round = /* @__PURE__ */ dual(2, (self, precision) => {
5320
5317
  const factor = Math.pow(10, precision);
5321
5318
  return Math.round(self * factor) / factor;
5322
5319
  });
5323
5320
 
5324
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Pull.js
5321
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Pull.js
5325
5322
  var catchDone = /* @__PURE__ */ dual(2, (effect2, f2) => catchCauseFilter(effect2, filterDoneLeftover, (l) => f2(l)));
5326
5323
  var isDoneCause = (cause) => cause.reasons.some(isDoneFailure);
5327
5324
  var isDoneFailure = (failure) => failure._tag === "Fail" && isDone3(failure.error);
5328
- var filterDone = /* @__PURE__ */ composePassthrough(findError2, (e) => isDone3(e) ? succeed2(e) : fail2(e));
5329
- var filterDoneLeftover = /* @__PURE__ */ composePassthrough(findError2, (e) => isDone3(e) ? succeed2(e.value) : fail2(e));
5325
+ var filterDone = (cause) => {
5326
+ let done4;
5327
+ let hasFailure = false;
5328
+ for (const reason of cause.reasons) {
5329
+ if (isDoneFailure(reason)) {
5330
+ done4 ??= reason.error;
5331
+ } else if (reason._tag !== "Interrupt") {
5332
+ hasFailure = true;
5333
+ }
5334
+ }
5335
+ if (done4 === void 0) return fail2(cause);
5336
+ return hasFailure ? fail2(fromReasons(cause.reasons.filter((reason) => !isDoneFailure(reason)))) : succeed2(done4);
5337
+ };
5338
+ var filterDoneLeftover = (cause) => {
5339
+ const done4 = filterDone(cause);
5340
+ return isFailure2(done4) ? done4 : succeed2(done4.success.value);
5341
+ };
5330
5342
  var doneExitFromCause = (cause) => {
5331
5343
  const halt = filterDone(cause);
5332
5344
  return !isFailure2(halt) ? succeed4(halt.success.value) : failCause2(halt.failure);
@@ -5339,7 +5351,7 @@ var matchEffect2 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
5339
5351
  }
5340
5352
  }));
5341
5353
 
5342
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Schedule.js
5354
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Schedule.js
5343
5355
  var TypeId8 = "~effect/Schedule";
5344
5356
  var CurrentMetadata2 = /* @__PURE__ */ Reference("effect/Schedule/CurrentMetadata", {
5345
5357
  defaultValue: /* @__PURE__ */ constant({
@@ -5388,12 +5400,12 @@ var metadataFn = () => {
5388
5400
  };
5389
5401
  };
5390
5402
  };
5391
- var fromStepWithMetadata = (step) => fromStep(map4(step, (f2) => {
5403
+ var fromStepWithMetadata = (step) => fromStep(map5(step, (f2) => {
5392
5404
  const meta = metadataFn();
5393
5405
  return (now, input) => f2(meta(now, input));
5394
5406
  }));
5395
5407
  var toStep = (schedule3) => catchCause(schedule3.step, (cause) => succeed3(() => failCause(cause)));
5396
- var toStepWithMetadata = (schedule3) => clockWith((clock) => map4(toStep(schedule3), (step) => {
5408
+ var toStepWithMetadata = (schedule3) => clockWith((clock) => map5(toStep(schedule3), (step) => {
5397
5409
  const metaFn = metadataFn();
5398
5410
  return (input) => suspend(() => {
5399
5411
  const now = clock.currentTimeMillisUnsafe();
@@ -5405,7 +5417,7 @@ var toStepWithMetadata = (schedule3) => clockWith((clock) => map4(toStep(schedul
5405
5417
  });
5406
5418
  });
5407
5419
  }));
5408
- var passthrough = (self) => fromStep(map4(toStep(self), (step) => (now, input) => matchEffect2(step(now, input), {
5420
+ var passthrough = (self) => fromStep(map5(toStep(self), (step) => (now, input) => matchEffect2(step(now, input), {
5409
5421
  onSuccess: (result3) => succeed3([input, result3[1]]),
5410
5422
  onFailure: failCause,
5411
5423
  onDone: () => done3(input)
@@ -5417,7 +5429,7 @@ var spaced = (duration) => {
5417
5429
  const decoded = fromInputUnsafe(duration);
5418
5430
  return fromStepWithMetadata(succeed3((meta) => succeed3([meta.attempt - 1, decoded])));
5419
5431
  };
5420
- var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map4(toStep(self), (step) => {
5432
+ var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map5(toStep(self), (step) => {
5421
5433
  const meta = metadataFn();
5422
5434
  return (now, input) => flatMap2(step(now, input), (result3) => {
5423
5435
  const [output, duration] = result3;
@@ -5431,11 +5443,11 @@ var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map4(toStep(s
5431
5443
  })));
5432
5444
  var forever2 = /* @__PURE__ */ spaced(zero);
5433
5445
 
5434
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/layer.js
5446
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/layer.js
5435
5447
  var provideLayer = (self, layer16, options) => scopedWith((scope3) => flatMap2(options?.local ? buildWithMemoMap(layer16, makeMemoMapUnsafe(), scope3) : buildWithScope(layer16, scope3), (context3) => provideContext(self, context3)));
5436
5448
  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));
5437
5449
 
5438
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schedule.js
5450
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/schedule.js
5439
5451
  var repeatOrElse = /* @__PURE__ */ dual(3, (self, schedule3, orElse4) => flatMap2(toStepWithMetadata(schedule3), (step) => {
5440
5452
  let meta = CurrentMetadata2.defaultValue();
5441
5453
  return catch_(forever(tap(flatMap2(suspend(() => provideService(self, CurrentMetadata2, meta)), step), (meta_) => sync(() => {
@@ -5495,7 +5507,7 @@ var buildFromOptions = (options) => {
5495
5507
  input
5496
5508
  }) => {
5497
5509
  const applied = options.until(input);
5498
- return isEffect(applied) ? map4(applied, (b2) => !b2) : succeed3(!applied);
5510
+ return isEffect(applied) ? map5(applied, (b2) => !b2) : succeed3(!applied);
5499
5511
  });
5500
5512
  }
5501
5513
  if (options.times !== void 0) {
@@ -5506,7 +5518,7 @@ var buildFromOptions = (options) => {
5506
5518
  return schedule3;
5507
5519
  };
5508
5520
 
5509
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/executionPlan.js
5521
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/executionPlan.js
5510
5522
  var makeEventEmitter = (onEvent, currentMetadata) => {
5511
5523
  let lastStepIndex = -1;
5512
5524
  let stepAttempt = 0;
@@ -5612,7 +5624,7 @@ var scheduleFromStep = (step, first) => {
5612
5624
  var scheduleOnce = /* @__PURE__ */ recurs(1);
5613
5625
  var makeEntry = (options) => options;
5614
5626
 
5615
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/request.js
5627
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/request.js
5616
5628
  var request = /* @__PURE__ */ dual(2, (self, resolver) => {
5617
5629
  const withResolver = (resolver2) => callback((resume) => {
5618
5630
  const entry = addEntry(resolver2, self, resume, getCurrentFiber());
@@ -5723,7 +5735,7 @@ function runBatch(batch) {
5723
5735
  }
5724
5736
  var update = /* @__PURE__ */ dual(2, (self, input) => contextWith((services) => sync(() => self.updateUnsafe(input, services))));
5725
5737
 
5726
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Effect.js
5738
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Effect.js
5727
5739
  var TypeId11 = EffectTypeId;
5728
5740
  var isEffect2 = isEffect;
5729
5741
  var all2 = all;
@@ -5733,6 +5745,7 @@ var validate2 = validate;
5733
5745
  var findFirst4 = findFirst3;
5734
5746
  var findFirstFilter2 = findFirstFilter;
5735
5747
  var forEach2 = forEach;
5748
+ var head2 = head;
5736
5749
  var whileLoop2 = whileLoop;
5737
5750
  var promise2 = promise;
5738
5751
  var tryPromise2 = tryPromise;
@@ -5770,7 +5783,7 @@ var tap2 = tap;
5770
5783
  var result2 = result;
5771
5784
  var option2 = option;
5772
5785
  var exit2 = exit;
5773
- var map6 = map4;
5786
+ var map7 = map5;
5774
5787
  var as2 = as;
5775
5788
  var asSome2 = asSome;
5776
5789
  var asVoid2 = asVoid;
@@ -5790,7 +5803,7 @@ var catchFilter2 = catchFilter;
5790
5803
  var catchNoSuchElement2 = catchNoSuchElement;
5791
5804
  var catchCauseIf2 = catchCauseIf;
5792
5805
  var catchCauseFilter2 = catchCauseFilter;
5793
- var mapError3 = mapError2;
5806
+ var mapError2 = mapError;
5794
5807
  var mapBoth2 = mapBoth;
5795
5808
  var orDie2 = orDie;
5796
5809
  var tapError2 = tapError;
@@ -5977,10 +5990,11 @@ var trackDuration = /* @__PURE__ */ dual((args2) => isEffect2(args2[0]), (self,
5977
5990
  var Transaction = class extends (/* @__PURE__ */ Service()("effect/Effect/Transaction")) {
5978
5991
  };
5979
5992
  var tx = (effect2) => withFiber2((fiber3) => {
5980
- if (fiber3.context.mapUnsafe.has(Transaction.key)) {
5993
+ let state = getOrUndefined2(fiber3.context, Transaction);
5994
+ if (state) {
5981
5995
  return effect2;
5982
5996
  }
5983
- const state = {
5997
+ state = {
5984
5998
  journal: /* @__PURE__ */ new Map(),
5985
5999
  retry: false
5986
6000
  };
@@ -6078,7 +6092,7 @@ var flatMapEager2 = flatMapEager;
6078
6092
  var catchEager2 = catchEager;
6079
6093
  var fnUntracedEager2 = fnUntracedEager;
6080
6094
 
6081
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/FileSystem.js
6095
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/FileSystem.js
6082
6096
  var FileSystem_exports = {};
6083
6097
  __export(FileSystem_exports, {
6084
6098
  FileSystem: () => FileSystem,
@@ -6096,7 +6110,7 @@ __export(FileSystem_exports, {
6096
6110
  makeNoop: () => makeNoop
6097
6111
  });
6098
6112
 
6099
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/PlatformError.js
6113
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/PlatformError.js
6100
6114
  var TypeId12 = "~effect/platform/PlatformError";
6101
6115
  var BadArgument = class extends (/* @__PURE__ */ TaggedError2("BadArgument")) {
6102
6116
  /**
@@ -6156,14 +6170,14 @@ var PlatformError = class extends (/* @__PURE__ */ TaggedError2("PlatformError")
6156
6170
  var systemError = (options) => new PlatformError(new SystemError(options));
6157
6171
  var badArgument = (options) => new PlatformError(new BadArgument(options));
6158
6172
 
6159
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Fiber.js
6173
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Fiber.js
6160
6174
  var interrupt3 = fiberInterrupt;
6161
6175
  var runIn = fiberRunIn;
6162
6176
 
6163
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Latch.js
6177
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Latch.js
6164
6178
  var makeUnsafe4 = makeLatchUnsafe;
6165
6179
 
6166
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/MutableRef.js
6180
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/MutableRef.js
6167
6181
  var TypeId13 = "~effect/MutableRef";
6168
6182
  var MutableRefProto = {
6169
6183
  [TypeId13]: TypeId13,
@@ -6181,7 +6195,7 @@ var make6 = (value3) => {
6181
6195
  return ref;
6182
6196
  };
6183
6197
 
6184
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/MutableList.js
6198
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/MutableList.js
6185
6199
  var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
6186
6200
  var make7 = () => ({
6187
6201
  head: void 0,
@@ -6252,7 +6266,7 @@ var take = (self) => {
6252
6266
  return message;
6253
6267
  };
6254
6268
 
6255
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Queue.js
6269
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Queue.js
6256
6270
  var TypeId14 = "~effect/Queue";
6257
6271
  var EnqueueTypeId = "~effect/Queue/Enqueue";
6258
6272
  var DequeueTypeId = "~effect/Queue/Dequeue";
@@ -6526,7 +6540,7 @@ var finalize = (self, exit3) => {
6526
6540
  openState.awaiters.clear();
6527
6541
  };
6528
6542
 
6529
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Semaphore.js
6543
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Semaphore.js
6530
6544
  var makeUnsafe5 = (permits) => new SemaphoreImpl(permits);
6531
6545
  var waitForPermits = (self, n, effect2) => callback((resume) => {
6532
6546
  if (self.free >= n) return resume(effect2);
@@ -6622,7 +6636,7 @@ var SemaphoreImpl = class {
6622
6636
  }
6623
6637
  };
6624
6638
 
6625
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Channel.js
6639
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Channel.js
6626
6640
  var TypeId15 = "~effect/Channel";
6627
6641
  var isChannel = (u2) => hasProperty(u2, TypeId15);
6628
6642
  var ChannelProto = {
@@ -6655,7 +6669,7 @@ var asyncQueue = (scope3, f2, options) => make8({
6655
6669
  capacity: options?.bufferSize,
6656
6670
  strategy: options?.strategy
6657
6671
  }).pipe(tap2((queue) => addFinalizer2(scope3, shutdown(queue))), tap2((queue) => forkIn2(provide(f2(queue), scope3), scope3)));
6658
- var callbackArray = (f2, options) => fromTransform((_2, scope3) => map6(asyncQueue(scope3, f2, options), takeAll2));
6672
+ var callbackArray = (f2, options) => fromTransform((_2, scope3) => map7(asyncQueue(scope3, f2, options), takeAll2));
6659
6673
  var suspend3 = (evaluate2) => fromTransform((upstream, scope3) => suspend2(() => toTransform(evaluate2())(upstream, scope3)));
6660
6674
  var empty3 = /* @__PURE__ */ fromPull(/* @__PURE__ */ succeed6(/* @__PURE__ */ done3()));
6661
6675
  var fail7 = (error2) => fromPull(succeed6(fail6(error2)));
@@ -6686,9 +6700,9 @@ var readableStreamToPullUnsafe = (options) => {
6686
6700
  });
6687
6701
  return as2(addFinalizer2(options.scope, options.releaseLockOnEnd ? sync2(() => reader.releaseLock()) : promise2(() => reader.cancel().catch(constVoid))), pull);
6688
6702
  };
6689
- var map7 = /* @__PURE__ */ dual(2, (self, f2) => transformPull(self, (pull) => sync2(() => {
6703
+ var map8 = /* @__PURE__ */ dual(2, (self, f2) => transformPull(self, (pull) => sync2(() => {
6690
6704
  let i = 0;
6691
- return map6(pull, (o) => f2(o, i++));
6705
+ return map7(pull, (o) => f2(o, i++));
6692
6706
  })));
6693
6707
  var mapDone = /* @__PURE__ */ dual(2, (self, f2) => mapDoneEffect(self, (o) => succeed6(f2(o))));
6694
6708
  var mapDoneEffect = /* @__PURE__ */ dual(2, (self, f2) => transformPull(self, (pull) => succeed6(catchDone(pull, (done4) => flatMap3(f2(done4), done3)))));
@@ -6827,7 +6841,7 @@ var runFold = /* @__PURE__ */ dual(3, (self, initial, f2) => suspend2(() => {
6827
6841
  }));
6828
6842
  var toPullScoped = (self, scope3) => toTransform(self)(done3(), scope3);
6829
6843
 
6830
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/stream.js
6844
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/stream.js
6831
6845
  var TypeId16 = "~effect/Stream";
6832
6846
  var streamVariance = {
6833
6847
  _R: identity,
@@ -6846,7 +6860,7 @@ var fromChannel = (channel) => {
6846
6860
  return self;
6847
6861
  };
6848
6862
 
6849
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Sink.js
6863
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Sink.js
6850
6864
  var TypeId17 = "~effect/Sink";
6851
6865
  var endVoid = /* @__PURE__ */ succeed6([void 0]);
6852
6866
  var sinkVariance = {
@@ -6883,9 +6897,9 @@ var forEach3 = (f2) => forEachArray(forEach2((_2) => f2(_2), {
6883
6897
  var forEachArray = (f2) => fromTransform2((upstream) => upstream.pipe(flatMap3(f2), forever3({
6884
6898
  disableYield: true
6885
6899
  }), catchDone(() => endVoid)));
6886
- var unwrap2 = (effect2) => fromChannel2(unwrap(map6(effect2, toChannel)));
6900
+ var unwrap2 = (effect2) => fromChannel2(unwrap(map7(effect2, toChannel)));
6887
6901
 
6888
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/rcRef.js
6902
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/rcRef.js
6889
6903
  var TypeId18 = "~effect/RcRef";
6890
6904
  var stateEmpty = {
6891
6905
  _tag: "Empty"
@@ -6940,7 +6954,7 @@ var getState = (self) => uninterruptibleMask2(function loop(restore) {
6940
6954
  if (self.state._tag !== "Empty") {
6941
6955
  return loop(restore);
6942
6956
  }
6943
- return restore(provideContext2(self.acquire, add(self.context, Scope, scope3))).pipe(map6((value3) => {
6957
+ return restore(provideContext2(self.acquire, add(self.context, Scope, scope3))).pipe(map7((value3) => {
6944
6958
  const state = {
6945
6959
  _tag: "Acquired",
6946
6960
  value: value3,
@@ -6988,11 +7002,11 @@ var get2 = /* @__PURE__ */ fnUntraced2(function* (self_) {
6988
7002
  return state.value;
6989
7003
  });
6990
7004
 
6991
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/RcRef.js
7005
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/RcRef.js
6992
7006
  var make10 = make9;
6993
7007
  var get3 = get2;
6994
7008
 
6995
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Stream.js
7009
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Stream.js
6996
7010
  var TypeId19 = "~effect/Stream";
6997
7011
  var isStream = (u2) => hasProperty(u2, TypeId19);
6998
7012
  var fromChannel3 = fromChannel;
@@ -7004,10 +7018,10 @@ var empty4 = /* @__PURE__ */ fromChannel3(empty3);
7004
7018
  var suspend4 = (stream3) => fromChannel3(suspend3(() => stream3().channel));
7005
7019
  var fail9 = (error2) => fromChannel3(fail7(error2));
7006
7020
  var fromReadableStream2 = (options) => fromChannel3(fromReadableStream(options));
7007
- var unwrap3 = (effect2) => fromChannel3(unwrap(map6(effect2, toChannel2)));
7008
- var map8 = /* @__PURE__ */ dual(2, (self, f2) => suspend4(() => {
7021
+ var unwrap3 = (effect2) => fromChannel3(unwrap(map7(effect2, toChannel2)));
7022
+ var map9 = /* @__PURE__ */ dual(2, (self, f2) => suspend4(() => {
7009
7023
  let i = 0;
7010
- return fromChannel3(map7(self.channel, map3((o) => f2(o, i++))));
7024
+ return fromChannel3(map8(self.channel, map3((o) => f2(o, i++))));
7011
7025
  }));
7012
7026
  var merge3 = /* @__PURE__ */ dual((args2) => isStream(args2[0]) && isStream(args2[1]), (self, that, options) => fromChannel3(merge2(toChannel2(self), toChannel2(that), options)));
7013
7027
  var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (upstream, scope3) => sync2(() => {
@@ -7024,7 +7038,7 @@ var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (up
7024
7038
  done4 = fail4(error2);
7025
7039
  return done3();
7026
7040
  }));
7027
- const pull = map6(suspend2(() => sink.transform(upstreamWithLeftover, scope3)), ([value3, leftover_]) => {
7041
+ const pull = map7(suspend2(() => sink.transform(upstreamWithLeftover, scope3)), ([value3, leftover_]) => {
7028
7042
  leftover = leftover_;
7029
7043
  return of(value3);
7030
7044
  });
@@ -7032,13 +7046,13 @@ var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (up
7032
7046
  })));
7033
7047
  var decodeText = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, options) => suspend4(() => {
7034
7048
  const decoder = new TextDecoder(options?.encoding);
7035
- return map8(self, (chunk) => decoder.decode(chunk, {
7049
+ return map9(self, (chunk) => decoder.decode(chunk, {
7036
7050
  stream: true
7037
7051
  }));
7038
7052
  }));
7039
7053
  var splitLines2 = (self) => self.channel.pipe(pipeTo(splitLines()), fromChannel3);
7040
7054
  var ensuring4 = /* @__PURE__ */ dual(2, (self, finalizer) => fromChannel3(ensuring3(self.channel, finalizer)));
7041
- var run = /* @__PURE__ */ dual(2, (self, sink) => scopedWith2((scope3) => toPullScoped(self.channel, scope3).pipe(flatMap3((upstream) => sink.transform(upstream, scope3)), map6(([a]) => a))));
7055
+ var run = /* @__PURE__ */ dual(2, (self, sink) => scopedWith2((scope3) => toPullScoped(self.channel, scope3).pipe(flatMap3((upstream) => sink.transform(upstream, scope3)), map7(([a]) => a))));
7042
7056
  var runCollect = (self) => runFold(self.channel, () => [], (acc, chunk) => {
7043
7057
  for (let i = 0; i < chunk.length; i++) {
7044
7058
  acc.push(chunk[i]);
@@ -7081,9 +7095,9 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (
7081
7095
  }
7082
7096
  }, options?.strategy);
7083
7097
  });
7084
- var toReadableStreamEffect = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, options) => map6(context2(), (context3) => toReadableStreamWith(self, context3, options)));
7098
+ var toReadableStreamEffect = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, options) => map7(context2(), (context3) => toReadableStreamWith(self, context3, options)));
7085
7099
 
7086
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/FileSystem.js
7100
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/FileSystem.js
7087
7101
  var TypeId20 = "~effect/platform/FileSystem";
7088
7102
  var Size = (bytes) => typeof bytes === "bigint" ? bytes : BigInt(bytes);
7089
7103
  var KiB = (n) => Size(n * 1024);
@@ -7134,7 +7148,7 @@ var make11 = (impl) => FileSystem.of({
7134
7148
  sink: (path5, options) => pipe(impl.open(path5, {
7135
7149
  flag: "w",
7136
7150
  ...options
7137
- }), map6((file6) => forEach3((_2) => file6.writeAll(_2))), unwrap2),
7151
+ }), map7((file6) => forEach3((_2) => file6.writeAll(_2))), unwrap2),
7138
7152
  writeFileString: (path5, data, options) => flatMap3(try_3({
7139
7153
  try: () => new TextEncoder().encode(data),
7140
7154
  catch: (cause) => badArgument({
@@ -7252,7 +7266,7 @@ var isFile = (u2) => hasProperty(u2, FileTypeId);
7252
7266
  var WatchBackend = class extends (/* @__PURE__ */ Service()("effect/platform/FileSystem/WatchBackend")) {
7253
7267
  };
7254
7268
 
7255
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Logger.js
7269
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Logger.js
7256
7270
  var CurrentLoggers2 = CurrentLoggers;
7257
7271
  var make12 = loggerMake;
7258
7272
  var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(function* (fiber3) {
@@ -7263,7 +7277,7 @@ var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(f
7263
7277
  return currentLoggers;
7264
7278
  })));
7265
7279
 
7266
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/annotations.js
7280
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/schema/annotations.js
7267
7281
  function resolve(ast) {
7268
7282
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
7269
7283
  }
@@ -7276,7 +7290,7 @@ var getExpected = /* @__PURE__ */ memoize((ast) => {
7276
7290
  return ast.getExpected(getExpected);
7277
7291
  });
7278
7292
 
7279
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/parser.js
7293
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/schema/parser.js
7280
7294
  var missing = /* @__PURE__ */ Symbol();
7281
7295
  var succeed8 = succeed4;
7282
7296
  var missingExit = /* @__PURE__ */ succeed8(missing);
@@ -7284,7 +7298,7 @@ var sameExit = /* @__PURE__ */ succeed8(missing);
7284
7298
  var toOption = (value3) => value3 === missing ? none2() : some2(value3);
7285
7299
  var fromOptionExit = (option4) => option4._tag === "None" ? missingExit : succeed8(option4.value);
7286
7300
 
7287
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaIssue.js
7301
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/SchemaIssue.js
7288
7302
  var TypeId21 = "~effect/SchemaIssue/Issue";
7289
7303
  function isIssue(u2) {
7290
7304
  return hasProperty(u2, TypeId21) && u2[TypeId21] === TypeId21;
@@ -7567,7 +7581,7 @@ function findMessage(issue) {
7567
7581
  if (typeof message === "string") return message;
7568
7582
  }
7569
7583
 
7570
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/cause.js
7584
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/schema/cause.js
7571
7585
  function getSchemaIssue(cause) {
7572
7586
  let issue;
7573
7587
  for (const reason of cause.reasons) {
@@ -7588,7 +7602,7 @@ function getSchemaIssueOrThrow(cause, message) {
7588
7602
  return issue;
7589
7603
  }
7590
7604
 
7591
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaGetter.js
7605
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/SchemaGetter.js
7592
7606
  var Getter = class _Getter extends Class {
7593
7607
  run;
7594
7608
  constructor(run6) {
@@ -7637,7 +7651,7 @@ function Date3() {
7637
7651
  return transform((u2) => new globalThis.Date(u2));
7638
7652
  }
7639
7653
 
7640
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaTransformation.js
7654
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/SchemaTransformation.js
7641
7655
  var TypeId22 = "~effect/SchemaTransformation/Transformation";
7642
7656
  var Transformation = class _Transformation {
7643
7657
  [TypeId22] = TypeId22;
@@ -7726,7 +7740,7 @@ var defectFromJson = (options) => transform2({
7726
7740
  encode: makeEncodeDefect(options)
7727
7741
  });
7728
7742
 
7729
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaAST.js
7743
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/SchemaAST.js
7730
7744
  function makeGuard(tag2) {
7731
7745
  return (ast) => ast._tag === tag2;
7732
7746
  }
@@ -7932,7 +7946,7 @@ var Number5 = class extends Base2 {
7932
7946
  if (this.checks && (hasCheck(this.checks, "effect/schema/isFinite") || hasCheck(this.checks, "effect/schema/isInt"))) {
7933
7947
  return this;
7934
7948
  }
7935
- return replaceEncoding(this, [numberToJson(this.checks)]);
7949
+ return replaceEncoding(this, [numberToJson]);
7936
7950
  }
7937
7951
  /** @internal */
7938
7952
  toCodecStringTree() {
@@ -7949,10 +7963,6 @@ var Number5 = class extends Base2 {
7949
7963
  function hasCheck(checks, id) {
7950
7964
  return checks.some((check) => check.annotations?.representation?.id === id || check._tag === "FilterGroup" && hasCheck(check.checks, id));
7951
7965
  }
7952
- function numberToJson(checks) {
7953
- const encodedFinite = !checks ? finite : appendChecks(finite, checks);
7954
- return new Link(new Union([encodedFinite, nonFiniteLiterals], "anyOf"), new Transformation(Number4(), transform((n) => globalThis.Number.isFinite(n) ? n : globalThis.String(n))));
7955
- }
7956
7966
  var number2 = /* @__PURE__ */ new Number5();
7957
7967
  var Boolean = class extends Base2 {
7958
7968
  _tag = "Boolean";
@@ -8117,7 +8127,7 @@ var wrapPropertyKeyIssue = (s3, ast, key, exit3) => {
8117
8127
  }
8118
8128
  const issue = getSchemaIssue(exit3.cause);
8119
8129
  if (issue === void 0) {
8120
- return failCause2(map5(exit3.cause, (issue2) => new Composite(ast, [new Pointer([key], issue2)], s3.input, s3.options)));
8130
+ return failCause2(map6(exit3.cause, (issue2) => new Composite(ast, [new Pointer([key], issue2)], s3.input, s3.options)));
8121
8131
  }
8122
8132
  const pointer = new Pointer([key], issue);
8123
8133
  if (s3.options.errors === "all") {
@@ -8866,6 +8876,7 @@ function isFinite3(annotations) {
8866
8876
  });
8867
8877
  }
8868
8878
  var finite = /* @__PURE__ */ appendChecks(number2, [/* @__PURE__ */ isFinite3()]);
8879
+ var numberToJson = /* @__PURE__ */ new Link(/* @__PURE__ */ new Union([finite, nonFiniteLiterals], "anyOf"), /* @__PURE__ */ new Transformation(/* @__PURE__ */ Number4(), /* @__PURE__ */ transform((n) => globalThis.Number.isFinite(n) ? n : globalThis.String(n))));
8869
8880
  function isPattern(regExp, annotations) {
8870
8881
  const source = regExp.source;
8871
8882
  const pattern = new globalThis.RegExp(source, regExp.flags);
@@ -9236,7 +9247,7 @@ var StringTree = /* @__PURE__ */ new Declaration([], () => (input, ast, options)
9236
9247
  });
9237
9248
  var unknownToStringTree = /* @__PURE__ */ new Link(StringTree, /* @__PURE__ */ passthrough3());
9238
9249
 
9239
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaParser.js
9250
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/SchemaParser.js
9240
9251
  function makeEffect(schema) {
9241
9252
  const parser = runWithCompiler(constructorCompiler, toType(schema.ast));
9242
9253
  return (input, options) => {
@@ -9439,7 +9450,7 @@ function makeParser(ast, compile, compileConstructorDefault2, constructorDefault
9439
9450
  const local = parseLocal(value3, options);
9440
9451
  return local === sameExit ? result3 : local;
9441
9452
  }
9442
- result3 = catchCause2(result3, (cause) => failCauseSync2(() => map5(cause, (issue) => new Encoding(ast, issue, input, options))));
9453
+ result3 = catchCause2(result3, (cause) => failCauseSync2(() => map6(cause, (issue) => new Encoding(ast, issue, input, options))));
9443
9454
  return flatMapEager2(result3, (value3) => {
9444
9455
  const local = parseLocal(value3, options);
9445
9456
  return local === sameExit ? succeed8(value3) : local;
@@ -9447,7 +9458,7 @@ function makeParser(ast, compile, compileConstructorDefault2, constructorDefault
9447
9458
  };
9448
9459
  }
9449
9460
 
9450
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/schema.js
9461
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/schema/schema.js
9451
9462
  var TypeId24 = "~effect/Schema/Schema";
9452
9463
  var SchemaProto = {
9453
9464
  [TypeId24]: TypeId24,
@@ -9478,10 +9489,10 @@ function make15(ast, options) {
9478
9489
  return self;
9479
9490
  }
9480
9491
 
9481
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Struct.js
9492
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Struct.js
9482
9493
  var lambda = (f2) => f2;
9483
9494
 
9484
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/redacted.js
9495
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/redacted.js
9485
9496
  var redactedRegistry = /* @__PURE__ */ new WeakMap();
9486
9497
  var value = (self) => {
9487
9498
  if (redactedRegistry.has(self)) {
@@ -9491,7 +9502,7 @@ var value = (self) => {
9491
9502
  }
9492
9503
  };
9493
9504
 
9494
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Redacted.js
9505
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Redacted.js
9495
9506
  var TypeId25 = "~effect/data/Redacted";
9496
9507
  var isRedacted = (u2) => hasProperty(u2, TypeId25);
9497
9508
  var make16 = (value3, options) => {
@@ -9523,7 +9534,7 @@ var Proto3 = {
9523
9534
  };
9524
9535
  var value2 = value;
9525
9536
 
9526
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Schema.js
9537
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Schema.js
9527
9538
  var TypeId26 = TypeId24;
9528
9539
  function declareConstructor() {
9529
9540
  return (typeParameters, run6, annotations) => {
@@ -9556,7 +9567,7 @@ function decodeUnknownEffect2(schema, options) {
9556
9567
  };
9557
9568
  }
9558
9569
  function fromIssueEffect(self) {
9559
- return catchCause2(self, (cause) => failCauseSync2(() => map5(cause, (issue) => new SchemaError(issue))));
9570
+ return catchCause2(self, (cause) => failCauseSync2(() => map6(cause, (issue) => new SchemaError(issue))));
9560
9571
  }
9561
9572
  var make17 = make15;
9562
9573
  function isSchema(u2) {
@@ -10075,7 +10086,7 @@ var Json2 = /* @__PURE__ */ make17(/* @__PURE__ */ annotate(Json, {
10075
10086
  })
10076
10087
  }));
10077
10088
 
10078
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/Cookies.js
10089
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/Cookies.js
10079
10090
  var TypeId27 = "~effect/http/Cookies";
10080
10091
  var CookieTypeId = "~effect/http/Cookies/Cookie";
10081
10092
  var Proto4 = {
@@ -10258,7 +10269,7 @@ var tryDecodeURIComponent = (str) => {
10258
10269
  }
10259
10270
  };
10260
10271
 
10261
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/Headers.js
10272
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/Headers.js
10262
10273
  var TypeId28 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
10263
10274
  var Proto5 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
10264
10275
  [TypeId28]: {
@@ -10361,11 +10372,24 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
10361
10372
  }
10362
10373
  return out;
10363
10374
  });
10375
+ var isRedactedName = (name, patterns) => {
10376
+ for (let i = 0; i < patterns.length; i++) {
10377
+ const pattern = patterns[i];
10378
+ if (typeof pattern === "string") {
10379
+ if (pattern.toLowerCase() === name) {
10380
+ return true;
10381
+ }
10382
+ } else if (pattern.test(name)) {
10383
+ return true;
10384
+ }
10385
+ }
10386
+ return false;
10387
+ };
10364
10388
  var CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentRedactedNames", {
10365
10389
  defaultValue: () => ["authorization", "cookie", "set-cookie", "x-api-key"]
10366
10390
  });
10367
10391
 
10368
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/UrlParams.js
10392
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/UrlParams.js
10369
10393
  var TypeId29 = "~effect/http/UrlParams";
10370
10394
  var isUrlParams = (u2) => hasProperty(u2, TypeId29);
10371
10395
  var Proto6 = {
@@ -10446,7 +10470,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
10446
10470
  return out;
10447
10471
  });
10448
10472
 
10449
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/HttpBody.js
10473
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/HttpBody.js
10450
10474
  var TypeId30 = "~effect/http/HttpBody";
10451
10475
  var Proto7 = class {
10452
10476
  [TypeId30];
@@ -10473,7 +10497,7 @@ var Empty2 = class extends Proto7 {
10473
10497
  };
10474
10498
  var empty9 = /* @__PURE__ */ new Empty2();
10475
10499
 
10476
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/HttpClientError.js
10500
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/HttpClientError.js
10477
10501
  var TypeId31 = "~effect/http/HttpClientError";
10478
10502
  var HttpClientError = class extends (/* @__PURE__ */ TaggedError2("HttpClientError")) {
10479
10503
  constructor(props) {
@@ -10608,10 +10632,10 @@ var EmptyBodyError = class extends (/* @__PURE__ */ TaggedError2("EmptyBodyError
10608
10632
  }
10609
10633
  };
10610
10634
 
10611
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/HttpMethod.js
10635
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/HttpMethod.js
10612
10636
  var allShort = [["GET", "get"], ["POST", "post"], ["PUT", "put"], ["DELETE", "del"], ["PATCH", "patch"], ["HEAD", "head"], ["OPTIONS", "options"], ["TRACE", "trace"]];
10613
10637
 
10614
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/internal/httpBody.js
10638
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/internal/httpBody.js
10615
10639
  var updateHeaders = (headers, body) => {
10616
10640
  if (body._tag === "Empty" || body._tag === "FormData") {
10617
10641
  return remove2(remove2(headers, "content-type"), "content-length");
@@ -10620,7 +10644,7 @@ var updateHeaders = (headers, body) => {
10620
10644
  return body.contentLength === void 0 ? remove2(headers, "content-length") : set2(headers, "content-length", body.contentLength.toString());
10621
10645
  };
10622
10646
 
10623
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/Url.js
10647
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/Url.js
10624
10648
  var UrlError = class extends (/* @__PURE__ */ TaggedError2("UrlError")) {
10625
10649
  };
10626
10650
  var make20 = (url, params, hash2) => try_({
@@ -10648,7 +10672,7 @@ var baseUrl = () => {
10648
10672
  return void 0;
10649
10673
  };
10650
10674
 
10651
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/HttpClientRequest.js
10675
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/HttpClientRequest.js
10652
10676
  var TypeId32 = "~effect/http/HttpClientRequest";
10653
10677
  var Proto8 = {
10654
10678
  [TypeId32]: TypeId32,
@@ -10745,7 +10769,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
10745
10769
  return makeWith(self.method, self.url, self.urlParams, self.hash, updateHeaders(self.headers, body), body);
10746
10770
  });
10747
10771
 
10748
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
10772
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
10749
10773
  var TypeId33 = "~effect/http/HttpIncomingMessage";
10750
10774
  var inspect = (self, that) => {
10751
10775
  const contentType = self.headers["content-type"] ?? "";
@@ -10772,10 +10796,10 @@ var inspect = (self, that) => {
10772
10796
  return obj;
10773
10797
  };
10774
10798
 
10775
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/HttpClientResponse.js
10799
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/HttpClientResponse.js
10776
10800
  var TypeId34 = "~effect/http/HttpClientResponse";
10777
10801
  var fromWeb = (request5, source) => new WebHttpClientResponse(request5, source);
10778
- var stream2 = (effect2) => unwrap3(map6(effect2, (self) => self.stream));
10802
+ var stream2 = (effect2) => unwrap3(map7(effect2, (self) => self.stream));
10779
10803
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail6(new HttpClientError({
10780
10804
  reason: new StatusCodeError({
10781
10805
  response: self,
@@ -10850,7 +10874,7 @@ var WebHttpClientResponse = class extends Class2 {
10850
10874
  }
10851
10875
  textBody;
10852
10876
  get text() {
10853
- return this.textBody ??= map6(this.arrayBuffer, (_2) => new TextDecoder().decode(_2));
10877
+ return this.textBody ??= map7(this.arrayBuffer, (_2) => new TextDecoder().decode(_2));
10854
10878
  }
10855
10879
  get urlParamsBody() {
10856
10880
  return flatMap3(this.text, (_2) => try_3({
@@ -10899,7 +10923,7 @@ var WebHttpClientResponse = class extends Class2 {
10899
10923
  }
10900
10924
  };
10901
10925
 
10902
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/HttpTraceContext.js
10926
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/HttpTraceContext.js
10903
10927
  var toHeaders = (span) => fromRecordUnsafe({
10904
10928
  b3: `${span.traceId}-${span.spanId}-${span.sampled ? "1" : "0"}${match(span.parent, {
10905
10929
  onNone: () => "",
@@ -10908,7 +10932,7 @@ var toHeaders = (span) => fromRecordUnsafe({
10908
10932
  traceparent: `00-${span.traceId}-${span.spanId}-${span.sampled ? "01" : "00"}`
10909
10933
  });
10910
10934
 
10911
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/HttpClient.js
10935
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/HttpClient.js
10912
10936
  var TypeId35 = "~effect/http/HttpClient";
10913
10937
  var HttpClient = /* @__PURE__ */ Service("effect/HttpClient");
10914
10938
  var transformResponse = /* @__PURE__ */ dual(2, (self, f2) => makeWith2((request5) => f2(self.postprocess(request5)), self.preprocess));
@@ -10984,10 +11008,9 @@ var make22 = (f2) => makeWith2((effect2) => flatMap3(effect2, (request5) => with
10984
11008
  }
10985
11009
  const redactedHeaderNames = fiber3.getRef(CurrentRedactedNames);
10986
11010
  const headerFilter = fiber3.getRef(TracerHeaderFilter);
10987
- const redactedHeaders = redact2(request5.headers, redactedHeaderNames);
10988
- for (const name in redactedHeaders) {
11011
+ for (const name in request5.headers) {
10989
11012
  if (!headerFilter(name, "request")) continue;
10990
- span.attribute(`http.request.header.${name}`, String(redactedHeaders[name]));
11013
+ span.attribute(`http.request.header.${name}`, isRedactedName(name, redactedHeaderNames) ? "<redacted>" : request5.headers[name]);
10991
11014
  }
10992
11015
  request5 = fiber3.getRef(TracerPropagationEnabled) ? setHeaders(request5, toHeaders(span)) : request5;
10993
11016
  return uninterruptibleMask2((restore) => restore(f2(request5, url, controller.signal, fiber3)).pipe(withParentSpan2(span, {
@@ -10995,10 +11018,9 @@ var make22 = (f2) => makeWith2((effect2) => flatMap3(effect2, (request5) => with
10995
11018
  }), matchCauseEffect2({
10996
11019
  onSuccess: (response) => {
10997
11020
  span.attribute("http.response.status_code", response.status);
10998
- const redactedHeaders2 = redact2(response.headers, redactedHeaderNames);
10999
- for (const name in redactedHeaders2) {
11021
+ for (const name in response.headers) {
11000
11022
  if (!headerFilter(name, "response")) continue;
11001
- span.attribute(`http.response.header.${name}`, String(redactedHeaders2[name]));
11023
+ span.attribute(`http.response.header.${name}`, isRedactedName(name, redactedHeaderNames) ? "<redacted>" : response.headers[name]);
11002
11024
  }
11003
11025
  if (scopedController) return succeed6(response);
11004
11026
  responseRegistry.register(response, controller);
@@ -11013,7 +11035,7 @@ var make22 = (f2) => makeWith2((effect2) => flatMap3(effect2, (request5) => with
11013
11035
  })));
11014
11036
  });
11015
11037
  })), succeed6);
11016
- var mapRequest = /* @__PURE__ */ dual(2, (self, f2) => makeWith2(self.postprocess, (request5) => map6(self.preprocess(request5), f2)));
11038
+ var mapRequest = /* @__PURE__ */ dual(2, (self, f2) => makeWith2(self.postprocess, (request5) => map7(self.preprocess(request5), f2)));
11017
11039
  var TracerDisabledWhen = /* @__PURE__ */ Reference("effect/http/HttpClient/TracerDisabledWhen", {
11018
11040
  defaultValue: () => constFalse
11019
11041
  });
@@ -11026,7 +11048,7 @@ var TracerPropagationEnabled = /* @__PURE__ */ Reference("effect/HttpClient/Trac
11026
11048
  var SpanNameGenerator = /* @__PURE__ */ Reference("effect/http/HttpClient/SpanNameGenerator", {
11027
11049
  defaultValue: () => (request5) => `http.client ${request5.method}`
11028
11050
  });
11029
- var layerMergedContext = (effect2) => effect(HttpClient)(contextWith2((context3) => map6(effect2, (client) => transformResponse(client, updateContext2((input) => merge(context3, input))))));
11051
+ var layerMergedContext = (effect2) => effect(HttpClient)(contextWith2((context3) => map7(effect2, (client) => transformResponse(client, updateContext2((input) => merge(context3, input))))));
11030
11052
  var responseRegistry = /* @__PURE__ */ (() => {
11031
11053
  if ("FinalizationRegistry" in globalThis && globalThis.FinalizationRegistry) {
11032
11054
  const registry = /* @__PURE__ */ new FinalizationRegistry((controller) => {
@@ -11121,7 +11143,7 @@ var InterruptibleResponse = class {
11121
11143
  }
11122
11144
  };
11123
11145
 
11124
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.108_effect@4.0.0-rc.108/node_modules/@effect/platform-node-shared/dist/NodeSink.js
11146
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.111_effect@4.0.0-rc.111/node_modules/@effect/platform-node-shared/dist/NodeSink.js
11125
11147
  var fromWritable = (options) => fromChannel2(mapDone(fromWritableChannel(options), (_2) => [_2]));
11126
11148
  var fromWritableChannel = (options) => fromTransform((pull) => {
11127
11149
  const writable = options.evaluate();
@@ -11161,7 +11183,7 @@ var pullIntoWritable = (options) => options.pull.pipe(flatMap3((chunk) => {
11161
11183
  });
11162
11184
  }) : identity);
11163
11185
 
11164
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.108_effect@4.0.0-rc.108/node_modules/@effect/platform-node-shared/dist/NodeStream.js
11186
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.111_effect@4.0.0-rc.111/node_modules/@effect/platform-node-shared/dist/NodeStream.js
11165
11187
  var fromReadable = (options) => fromChannel3(fromReadableChannel(options));
11166
11188
  var fromReadableChannel = (options) => fromTransform((_2, scope3) => readableToPullUnsafe({
11167
11189
  scope: scope3,
@@ -11220,7 +11242,7 @@ var readableToPullUnsafe = (options) => {
11220
11242
  };
11221
11243
  var defaultOnError = (error2) => new UnknownError2(error2);
11222
11244
 
11223
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/http/FetchHttpClient.js
11245
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/http/FetchHttpClient.js
11224
11246
  var Fetch = /* @__PURE__ */ Reference("effect/http/FetchHttpClient/Fetch", {
11225
11247
  defaultValue: () => globalThis.fetch
11226
11248
  });
@@ -11228,12 +11250,12 @@ var RequestInit = class extends (/* @__PURE__ */ Service()("effect/http/FetchHtt
11228
11250
  };
11229
11251
  var fetch = /* @__PURE__ */ make22((request5, url, signal, fiber3) => {
11230
11252
  const fetch2 = fiber3.getRef(Fetch);
11231
- const options = fiber3.context.mapUnsafe.get(RequestInit.key) ?? {};
11253
+ const options = getOrUndefined2(fiber3.context, RequestInit) ?? {};
11232
11254
  let headers = options.headers ? merge4(fromInput(options.headers), request5.headers) : request5.headers;
11233
11255
  if (headers["content-length"]) {
11234
11256
  headers = remove2(headers, "content-length");
11235
11257
  }
11236
- const send = (body) => map6(tryPromise2({
11258
+ const send = (body) => map7(tryPromise2({
11237
11259
  try: () => fetch2(url, {
11238
11260
  ...options,
11239
11261
  method: request5.method,
@@ -11262,7 +11284,7 @@ var fetch = /* @__PURE__ */ make22((request5, url, signal, fiber3) => {
11262
11284
  });
11263
11285
  var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch));
11264
11286
 
11265
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Runtime.js
11287
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Runtime.js
11266
11288
  var defaultTeardown = (exit3, onExit4) => {
11267
11289
  if (isSuccess4(exit3)) return onExit4(0);
11268
11290
  if (hasInterruptsOnly2(exit3.cause)) return onExit4(130);
@@ -11308,7 +11330,7 @@ var getErrorReported = (u2) => {
11308
11330
  return true;
11309
11331
  };
11310
11332
 
11311
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.108_effect@4.0.0-rc.108/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
11333
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.111_effect@4.0.0-rc.111/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
11312
11334
  var runMain = /* @__PURE__ */ makeRunMain(({
11313
11335
  fiber: fiber3,
11314
11336
  teardown
@@ -11331,10 +11353,10 @@ var runMain = /* @__PURE__ */ makeRunMain(({
11331
11353
  process.on("SIGTERM", onSigint);
11332
11354
  });
11333
11355
 
11334
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.108_effect@4.0.0-rc.108_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeRuntime.js
11356
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.111_effect@4.0.0-rc.111_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeRuntime.js
11335
11357
  var runMain2 = runMain;
11336
11358
 
11337
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Path.js
11359
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Path.js
11338
11360
  var Path_exports = {};
11339
11361
  __export(Path_exports, {
11340
11362
  Path: () => Path,
@@ -11808,7 +11830,7 @@ var posixImpl = /* @__PURE__ */ Path.of({
11808
11830
  });
11809
11831
  var layer3 = /* @__PURE__ */ succeed5(Path)(posixImpl);
11810
11832
 
11811
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Brand.js
11833
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Brand.js
11812
11834
  function nominal() {
11813
11835
  return Object.assign((input) => input, {
11814
11836
  option: (input) => some2(input),
@@ -11817,7 +11839,7 @@ function nominal() {
11817
11839
  });
11818
11840
  }
11819
11841
 
11820
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
11842
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
11821
11843
  var ExitCode = /* @__PURE__ */ nominal();
11822
11844
  var ProcessId = /* @__PURE__ */ nominal();
11823
11845
  var HandleTypeId = "~effect/ChildProcessSpawner/ChildProcessHandle";
@@ -11835,7 +11857,7 @@ var makeHandle = (params) => Object.setPrototypeOf({
11835
11857
  ...params
11836
11858
  }, HandleProto);
11837
11859
  var make23 = (spawn2) => {
11838
- const streamString = (command2, options) => spawn2(command2).pipe(map6((handle) => decodeText(options?.includeStderr === true ? handle.all : handle.stdout)), unwrap3);
11860
+ const streamString = (command2, options) => spawn2(command2).pipe(map7((handle) => decodeText(options?.includeStderr === true ? handle.all : handle.stdout)), unwrap3);
11839
11861
  const streamLines = (command2, options) => splitLines2(streamString(command2, options));
11840
11862
  return ChildProcessSpawner.of({
11841
11863
  spawn: spawn2,
@@ -11849,7 +11871,7 @@ var make23 = (spawn2) => {
11849
11871
  var ChildProcessSpawner = class extends (/* @__PURE__ */ Service()("effect/process/ChildProcessSpawner")) {
11850
11872
  };
11851
11873
 
11852
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/process/ChildProcess.js
11874
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/process/ChildProcess.js
11853
11875
  var TypeId37 = "~effect/unstable/process/ChildProcess";
11854
11876
  var Proto10 = {
11855
11877
  .../* @__PURE__ */ Prototype2({
@@ -11973,7 +11995,7 @@ var splitByWhitespaces = (template, rawTemplate) => {
11973
11995
  };
11974
11996
  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)];
11975
11997
 
11976
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.108_effect@4.0.0-rc.108/node_modules/@effect/platform-node-shared/dist/internal/nodeChildProcessSpawner.js
11998
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.111_effect@4.0.0-rc.111/node_modules/@effect/platform-node-shared/dist/internal/nodeChildProcessSpawner.js
11977
11999
  var buildSpawnOptions = (options, base, platform) => {
11978
12000
  const detached = options.detached ?? platform !== "win32";
11979
12001
  return {
@@ -11984,7 +12006,7 @@ var buildSpawnOptions = (options, base, platform) => {
11984
12006
  };
11985
12007
  };
11986
12008
 
11987
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.108_effect@4.0.0-rc.108/node_modules/@effect/platform-node-shared/dist/internal/utils.js
12009
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.111_effect@4.0.0-rc.111/node_modules/@effect/platform-node-shared/dist/internal/utils.js
11988
12010
  var handleErrnoException = (module, method) => (err, [path5]) => {
11989
12011
  let reason = "Unknown";
11990
12012
  switch (err.code) {
@@ -12020,7 +12042,7 @@ var handleErrnoException = (module, method) => (err, [path5]) => {
12020
12042
  });
12021
12043
  };
12022
12044
 
12023
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.108_effect@4.0.0-rc.108/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
12045
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.111_effect@4.0.0-rc.111/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
12024
12046
  var toError = (error2) => error2 instanceof globalThis.Error ? error2 : new globalThis.Error(String(error2));
12025
12047
  var toPlatformError = (method, error2, command2) => {
12026
12048
  const {
@@ -12371,7 +12393,7 @@ var make26 = /* @__PURE__ */ gen2(function* () {
12371
12393
  getInputFd,
12372
12394
  getOutputFd
12373
12395
  } = yield* setupAdditionalFds(cmd, childProcess, resolvedAdditionalFds);
12374
- const isRunning = map6(isDone2(exitSignal), (done4) => !done4);
12396
+ const isRunning = map7(isDone2(exitSignal), (done4) => !done4);
12375
12397
  const exitCode = flatMap3(_await(exitSignal), ([code, signal]) => {
12376
12398
  if (isNotNull(code)) {
12377
12399
  return succeed6(ExitCode(code));
@@ -12505,12 +12527,40 @@ var flattenCommand = (command2) => {
12505
12527
  };
12506
12528
  };
12507
12529
 
12508
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Crypto.js
12530
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/internal/uuid.js
12531
+ var hex = (byte) => byte.toString(16).padStart(2, "0");
12532
+ var stringify = (bytes) => {
12533
+ const segments = [bytes.subarray(0, 4), bytes.subarray(4, 6), bytes.subarray(6, 8), bytes.subarray(8, 10), bytes.subarray(10, 16)];
12534
+ return segments.map((segment) => Array.from(segment, hex).join("")).join("-");
12535
+ };
12536
+ var randomBytes = () => globalThis.crypto.getRandomValues(new Uint8Array(16));
12537
+ function v4Bytes(bytes = randomBytes()) {
12538
+ bytes[6] = bytes[6] & 15 | 64;
12539
+ bytes[8] = bytes[8] & 63 | 128;
12540
+ return bytes;
12541
+ }
12542
+ var v4String = (bytes) => stringify(bytes === void 0 ? v4Bytes() : v4Bytes(bytes));
12543
+ var maxV7Timestamp = 2 ** 48 - 1;
12544
+ function v7Bytes(timestampMillis, bytes = randomBytes()) {
12545
+ const timestamp = Math.min(Math.max(0, Math.trunc(timestampMillis)), maxV7Timestamp);
12546
+ bytes[0] = Math.floor(timestamp / 2 ** 40);
12547
+ bytes[1] = Math.floor(timestamp / 2 ** 32) & 255;
12548
+ bytes[2] = Math.floor(timestamp / 2 ** 24) & 255;
12549
+ bytes[3] = Math.floor(timestamp / 2 ** 16) & 255;
12550
+ bytes[4] = Math.floor(timestamp / 2 ** 8) & 255;
12551
+ bytes[5] = timestamp & 255;
12552
+ bytes[6] = bytes[6] & 15 | 112;
12553
+ bytes[8] = bytes[8] & 63 | 128;
12554
+ return bytes;
12555
+ }
12556
+ var v7String = (timestampMillis, bytes) => stringify(bytes === void 0 ? v7Bytes(timestampMillis) : v7Bytes(timestampMillis, bytes));
12557
+
12558
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Crypto.js
12509
12559
  var TypeId38 = "~effect/platform/Crypto";
12510
12560
  var Crypto = /* @__PURE__ */ Service("effect/Crypto");
12511
12561
  var make27 = (impl) => {
12512
12562
  const randomBytesUnsafe = impl.randomBytes;
12513
- const randomBytes3 = (size) => map6(validateSize("randomBytes", size), randomBytesUnsafe);
12563
+ const randomBytes4 = (size) => map7(validateSize("randomBytes", size), randomBytesUnsafe);
12514
12564
  const readUint53 = (bytes) => (bytes[0] & 31) * 2 ** 48 + bytes[1] * 2 ** 40 + bytes[2] * 2 ** 32 + bytes[3] * 2 ** 24 + bytes[4] * 2 ** 16 + bytes[5] * 2 ** 8 + bytes[6];
12515
12565
  const nextDoubleUnsafe = () => readUint53(randomBytesUnsafe(7)) / 2 ** 53;
12516
12566
  const nextIntUnsafe = () => {
@@ -12527,7 +12577,7 @@ var make27 = (impl) => {
12527
12577
  };
12528
12578
  return Crypto.of({
12529
12579
  [TypeId38]: TypeId38,
12530
- randomBytes: randomBytes3,
12580
+ randomBytes: randomBytes4,
12531
12581
  nextDoubleUnsafe,
12532
12582
  nextIntUnsafe,
12533
12583
  digest: impl.digest,
@@ -12553,8 +12603,8 @@ var make27 = (impl) => {
12553
12603
  }
12554
12604
  return buffer2;
12555
12605
  }),
12556
- randomUUIDv4: sync2(() => formatUUIDv4(randomBytesUnsafe(16))),
12557
- randomUUIDv7: clockWith2((clock) => succeed6(formatUUIDv7(clock.currentTimeMillisUnsafe(), randomBytesUnsafe(16))))
12606
+ randomUUIDv4: sync2(() => v4String(randomBytesUnsafe(16))),
12607
+ randomUUIDv7: clockWith2((clock) => succeed6(v7String(clock.currentTimeMillisUnsafe(), randomBytesUnsafe(16))))
12558
12608
  });
12559
12609
  };
12560
12610
  var validateSize = (method, size) => Number.isSafeInteger(size) && size >= 0 ? succeed6(size) : fail6(badArgument({
@@ -12562,29 +12612,6 @@ var validateSize = (method, size) => Number.isSafeInteger(size) && size >= 0 ? s
12562
12612
  method,
12563
12613
  description: "size must be a non-negative safe integer"
12564
12614
  }));
12565
- var hex = (byte) => byte.toString(16).padStart(2, "0");
12566
- var formatUUID = (bytes) => {
12567
- const segments = [bytes.subarray(0, 4), bytes.subarray(4, 6), bytes.subarray(6, 8), bytes.subarray(8, 10), bytes.subarray(10, 16)];
12568
- return segments.map((segment) => Array.from(segment, hex).join("")).join("-");
12569
- };
12570
- var formatUUIDv4 = (bytes) => {
12571
- bytes[6] = bytes[6] & 15 | 64;
12572
- bytes[8] = bytes[8] & 63 | 128;
12573
- return formatUUID(bytes);
12574
- };
12575
- var maxUUIDv7Timestamp = 2 ** 48 - 1;
12576
- var formatUUIDv7 = (timestampMillis, bytes) => {
12577
- const timestamp = Math.min(Math.max(0, Math.trunc(timestampMillis)), maxUUIDv7Timestamp);
12578
- bytes[0] = Math.floor(timestamp / 2 ** 40);
12579
- bytes[1] = Math.floor(timestamp / 2 ** 32) & 255;
12580
- bytes[2] = Math.floor(timestamp / 2 ** 24) & 255;
12581
- bytes[3] = Math.floor(timestamp / 2 ** 16) & 255;
12582
- bytes[4] = Math.floor(timestamp / 2 ** 8) & 255;
12583
- bytes[5] = timestamp & 255;
12584
- bytes[6] = bytes[6] & 15 | 112;
12585
- bytes[8] = bytes[8] & 63 | 128;
12586
- return formatUUID(bytes);
12587
- };
12588
12615
  var toHashAlgorithm = (algorithm) => {
12589
12616
  switch (algorithm) {
12590
12617
  case "SHA-1":
@@ -12613,7 +12640,7 @@ var make28 = /* @__PURE__ */ make27({
12613
12640
  });
12614
12641
  var layer5 = /* @__PURE__ */ succeed5(Crypto, make28);
12615
12642
 
12616
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.108_effect@4.0.0-rc.108_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeCrypto.js
12643
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.111_effect@4.0.0-rc.111_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeCrypto.js
12617
12644
  var layer6 = layer5;
12618
12645
  var handleBadArgument = (method) => (err) => badArgument({
12619
12646
  module: "FileSystem",
@@ -12698,7 +12725,7 @@ var makeTempDirectoryScoped = /* @__PURE__ */ (() => {
12698
12725
  var openFactory = (method) => {
12699
12726
  const nodeOpen = effectify(u__namespace.open, handleErrnoException("FileSystem", method), handleBadArgument(method));
12700
12727
  const nodeClose = effectify(u__namespace.close, handleErrnoException("FileSystem", method), handleBadArgument(method));
12701
- return (path5, options) => pipe(acquireRelease2(nodeOpen(path5, options?.flag ?? "r", options?.mode), (fd) => orDie2(nodeClose(fd))), map6((fd) => makeFile(fd, options?.flag?.startsWith("a") ?? false)));
12728
+ return (path5, options) => pipe(acquireRelease2(nodeOpen(path5, options?.flag ?? "r", options?.mode), (fd) => orDie2(nodeClose(fd))), map7((fd) => makeFile(fd, options?.flag?.startsWith("a") ?? false)));
12702
12729
  };
12703
12730
  var open2 = /* @__PURE__ */ openFactory("open");
12704
12731
  var makeFile = /* @__PURE__ */ (() => {
@@ -12722,7 +12749,7 @@ var makeFile = /* @__PURE__ */ (() => {
12722
12749
  this.append = append4;
12723
12750
  }
12724
12751
  get stat() {
12725
- return map6(nodeStat(this.fd), makeFileInfo);
12752
+ return map7(nodeStat(this.fd), makeFileInfo);
12726
12753
  }
12727
12754
  get sync() {
12728
12755
  return nodeSync(this.fd);
@@ -12741,7 +12768,7 @@ var makeFile = /* @__PURE__ */ (() => {
12741
12768
  read(buffer2) {
12742
12769
  return suspend2(() => {
12743
12770
  const position = this.position;
12744
- return map6(nodeRead(this.fd, {
12771
+ return map7(nodeRead(this.fd, {
12745
12772
  buffer: buffer2,
12746
12773
  position
12747
12774
  }), (bytesRead) => {
@@ -12756,7 +12783,7 @@ var makeFile = /* @__PURE__ */ (() => {
12756
12783
  return suspend2(() => {
12757
12784
  const buffer2 = Buffer.allocUnsafeSlow(sizeNumber);
12758
12785
  const position = this.position;
12759
- return map6(nodeReadAlloc(this.fd, {
12786
+ return map7(nodeReadAlloc(this.fd, {
12760
12787
  buffer: buffer2,
12761
12788
  position
12762
12789
  }), (bytesRead) => {
@@ -12774,7 +12801,7 @@ var makeFile = /* @__PURE__ */ (() => {
12774
12801
  });
12775
12802
  }
12776
12803
  truncate(length) {
12777
- return map6(nodeTruncate(this.fd, length ? Number(length) : void 0), () => {
12804
+ return map7(nodeTruncate(this.fd, length ? Number(length) : void 0), () => {
12778
12805
  if (!this.append) {
12779
12806
  const len = BigInt(length ?? 0);
12780
12807
  if (this.position > len) {
@@ -12786,7 +12813,7 @@ var makeFile = /* @__PURE__ */ (() => {
12786
12813
  write(buffer2) {
12787
12814
  return suspend2(() => {
12788
12815
  const position = this.position;
12789
- return map6(nodeWrite(this.fd, buffer2, void 0, void 0, this.append ? void 0 : Number(position)), (bytesWritten) => {
12816
+ return map7(nodeWrite(this.fd, buffer2, void 0, void 0, this.append ? void 0 : Number(position)), (bytesWritten) => {
12790
12817
  const sizeWritten = Size(bytesWritten);
12791
12818
  if (!this.append) {
12792
12819
  this.position = position + sizeWritten;
@@ -12888,7 +12915,7 @@ var makeFileInfo = (stat3) => ({
12888
12915
  });
12889
12916
  var stat2 = /* @__PURE__ */ (() => {
12890
12917
  const nodeStat = /* @__PURE__ */ effectify(u__namespace.stat, /* @__PURE__ */ handleErrnoException("FileSystem", "stat"), /* @__PURE__ */ handleBadArgument("stat"));
12891
- return (path5) => map6(nodeStat(path5), makeFileInfo);
12918
+ return (path5) => map7(nodeStat(path5), makeFileInfo);
12892
12919
  })();
12893
12920
  var symlink2 = /* @__PURE__ */ (() => {
12894
12921
  const nodeSymlink = /* @__PURE__ */ effectify(u__namespace.symlink, /* @__PURE__ */ handleErrnoException("FileSystem", "symlink"), /* @__PURE__ */ handleBadArgument("symlink"));
@@ -12944,7 +12971,7 @@ var watchNode = (path5, options) => callback3((queue) => acquireRelease2(sync2((
12944
12971
  });
12945
12972
  return watcher;
12946
12973
  }), (watcher) => sync2(() => watcher.close())));
12947
- var watch2 = (backend, path5, options) => stat2(path5).pipe(map6((stat3) => backend.pipe(flatMap((_2) => _2.register(path5, stat3, options)), getOrElse(() => watchNode(path5, options)))), unwrap3);
12974
+ var watch2 = (backend, path5, options) => stat2(path5).pipe(map7((stat3) => backend.pipe(flatMap((_2) => _2.register(path5, stat3, options)), getOrElse(() => watchNode(path5, options)))), unwrap3);
12948
12975
  var writeFile2 = (path5, data, options) => callback2((resume, signal) => {
12949
12976
  try {
12950
12977
  u__namespace.writeFile(path5, data, {
@@ -12962,7 +12989,7 @@ var writeFile2 = (path5, data, options) => callback2((resume, signal) => {
12962
12989
  resume(fail6(handleBadArgument("writeFile")(err)));
12963
12990
  }
12964
12991
  });
12965
- var makeFileSystem = /* @__PURE__ */ map6(/* @__PURE__ */ serviceOption2(WatchBackend), (backend) => make11({
12992
+ var makeFileSystem = /* @__PURE__ */ map7(/* @__PURE__ */ serviceOption2(WatchBackend), (backend) => make11({
12966
12993
  access: access2,
12967
12994
  chmod: chmod2,
12968
12995
  chown: chown2,
@@ -12993,7 +13020,7 @@ var makeFileSystem = /* @__PURE__ */ map6(/* @__PURE__ */ serviceOption2(WatchBa
12993
13020
  }));
12994
13021
  var layer7 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
12995
13022
 
12996
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.108_effect@4.0.0-rc.108_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
13023
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.111_effect@4.0.0-rc.111_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
12997
13024
  var layer8 = layer7;
12998
13025
  var fileUrlOps = (windows) => ({
12999
13026
  fromFileUrl: (url) => try_3({
@@ -13023,10 +13050,10 @@ var layer9 = /* @__PURE__ */ succeed5(Path)({
13023
13050
  .../* @__PURE__ */ fileUrlOps(void 0)
13024
13051
  });
13025
13052
 
13026
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.108_effect@4.0.0-rc.108_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodePath.js
13053
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.111_effect@4.0.0-rc.111_redis@6.2.1/node_modules/@effect/platform-node/dist/NodePath.js
13027
13054
  var layer10 = layer9;
13028
13055
 
13029
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Stdio.js
13056
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Stdio.js
13030
13057
  var TypeId39 = "~effect/Stdio";
13031
13058
  var Stdio = /* @__PURE__ */ Service(TypeId39);
13032
13059
  var make29 = (options) => ({
@@ -13036,7 +13063,7 @@ var make29 = (options) => ({
13036
13063
  ...options
13037
13064
  });
13038
13065
 
13039
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.108_effect@4.0.0-rc.108/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
13066
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-rc.111_effect@4.0.0-rc.111/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
13040
13067
  var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make29({
13041
13068
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
13042
13069
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
@@ -13073,10 +13100,10 @@ var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make29({
13073
13100
  })
13074
13101
  }));
13075
13102
 
13076
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.108_effect@4.0.0-rc.108_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeStdio.js
13103
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.111_effect@4.0.0-rc.111_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeStdio.js
13077
13104
  var layer12 = layer11;
13078
13105
 
13079
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Terminal.js
13106
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Terminal.js
13080
13107
  var TypeId40 = "~effect/platform/Terminal";
13081
13108
  var QuitErrorTypeId = "effect/platform/Terminal/QuitError";
13082
13109
  var QuitError = class extends (/* @__PURE__ */ Error4("QuitError")({
@@ -13192,7 +13219,7 @@ var make31 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQu
13192
13219
  const readLine = suspend2(() => poll(lines2).pipe(flatMap3(match({
13193
13220
  onNone: () => scoped2(andThen2(get3(rlRef), take2(lines2))),
13194
13221
  onSome: succeed6
13195
- })), mapError3(() => new QuitError({}))));
13222
+ })), mapError2(() => new QuitError({}))));
13196
13223
  const display = (prompt) => uninterruptible2(callback2((resume) => {
13197
13224
  stdout.write(prompt, (err) => isNullish(err) ? resume(void_3) : resume(fail6(badArgument({
13198
13225
  module: "Terminal",
@@ -13214,13 +13241,13 @@ function defaultShouldQuit(input) {
13214
13241
  return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
13215
13242
  }
13216
13243
 
13217
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.108_effect@4.0.0-rc.108_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeTerminal.js
13244
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.111_effect@4.0.0-rc.111_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeTerminal.js
13218
13245
  var layer14 = layer13;
13219
13246
 
13220
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.108_effect@4.0.0-rc.108_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeServices.js
13247
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.111_effect@4.0.0-rc.111_redis@6.2.1/node_modules/@effect/platform-node/dist/NodeServices.js
13221
13248
  var layer15 = /* @__PURE__ */ provideMerge(layer4, /* @__PURE__ */ mergeAll2(layer8, layer6, layer10, layer12, layer14));
13222
13249
 
13223
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/ConfigProvider.js
13250
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/ConfigProvider.js
13224
13251
  function makeValue(value3) {
13225
13252
  return {
13226
13253
  _tag: "Value",
@@ -13318,7 +13345,7 @@ function trieNodeAt(root, path5) {
13318
13345
  return node;
13319
13346
  }
13320
13347
 
13321
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Config.js
13348
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Config.js
13322
13349
  var TypeId41 = "~effect/Config";
13323
13350
  var Proto12 = {
13324
13351
  .../* @__PURE__ */ Prototype2({
@@ -13347,7 +13374,7 @@ var resolved = (value3, hasInput2) => ({
13347
13374
  hasInput: hasInput2
13348
13375
  });
13349
13376
  var map10 = /* @__PURE__ */ dual(2, (self, f2) => {
13350
- return make33((provider, pathPrefix) => map6(evaluateAt(self, provider, pathPrefix), (resolution) => resolution._tag === "Resolved" ? resolved(f2(resolution.value), resolution.hasInput) : resolution));
13377
+ return make33((provider, pathPrefix) => map7(evaluateAt(self, provider, pathPrefix), (resolution) => resolution._tag === "Resolved" ? resolved(f2(resolution.value), resolution.hasInput) : resolution));
13351
13378
  });
13352
13379
  var withDefault2 = /* @__PURE__ */ dual(2, (self, defaultValue) => {
13353
13380
  return make33((provider, pathPrefix) => mapEager2(evaluateAt(self, provider, pathPrefix), (resolution) => resolution._tag === "Absent" ? resolved(defaultValue, false) : resolution));
@@ -13360,7 +13387,7 @@ var Boolean3 = /* @__PURE__ */ Literals([...TrueValues.literals, ...FalseValues.
13360
13387
  encode: (value3) => value3 ? "true" : "false"
13361
13388
  })));
13362
13389
 
13363
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Console.js
13390
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/Console.js
13364
13391
  var Console = ConsoleRef;
13365
13392
  var consoleWith = (f2) => withFiber((fiber3) => f2(fiber3.getRef(Console)));
13366
13393
  var error = (...args2) => consoleWith((console) => sync(() => {
@@ -13370,7 +13397,7 @@ var log2 = (...args2) => consoleWith((console) => sync(() => {
13370
13397
  console.log(...args2);
13371
13398
  }));
13372
13399
 
13373
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Argument.js
13400
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Argument.js
13374
13401
  var Argument_exports = {};
13375
13402
  __export(Argument_exports, {
13376
13403
  atLeast: () => atLeast2,
@@ -13407,7 +13434,7 @@ __export(Argument_exports, {
13407
13434
  withSchema: () => withSchema2
13408
13435
  });
13409
13436
 
13410
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/CliError.js
13437
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/CliError.js
13411
13438
  var TypeId42 = "~effect/cli/CliError";
13412
13439
  var isCliError = (u2) => hasProperty(u2, TypeId42);
13413
13440
  var UnrecognizedOption = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/UnrecognizedOption`)("UnrecognizedOption", {
@@ -13604,7 +13631,7 @@ var ShowHelp = class extends (/* @__PURE__ */ TaggedError3(`${TypeId42}/ShowHelp
13604
13631
  }
13605
13632
  };
13606
13633
 
13607
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/encoding/Ini.js
13634
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/encoding/Ini.js
13608
13635
  var hasOwn = Object.prototype.hasOwnProperty;
13609
13636
  var splitSections = (value3) => {
13610
13637
  const sections = [];
@@ -13723,7 +13750,7 @@ var parse = (input) => {
13723
13750
  return output;
13724
13751
  };
13725
13752
 
13726
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/encoding/Toml.js
13753
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/encoding/Toml.js
13727
13754
  var hasOwn2 = Object.prototype.hasOwnProperty;
13728
13755
  var makeTable = () => /* @__PURE__ */ Object.create(null);
13729
13756
  var isTable = (value3) => typeof value3 === "object" && value3 !== null && !Array.isArray(value3) && !(value3 instanceof Date);
@@ -14141,7 +14168,7 @@ var TomlParser = class {
14141
14168
  };
14142
14169
  var parse2 = (input) => new TomlParser(input.replace(/^\uFEFF/, "")).parse();
14143
14170
 
14144
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/encoding/Yaml.js
14171
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/encoding/Yaml.js
14145
14172
  var hasOwn3 = Object.prototype.hasOwnProperty;
14146
14173
  var setProperty = (record2, key, value3) => {
14147
14174
  Object.defineProperty(record2, key, {
@@ -14594,7 +14621,7 @@ var parse3 = (input) => {
14594
14621
  return new YamlParser(lines2).parse();
14595
14622
  };
14596
14623
 
14597
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Primitive.js
14624
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Primitive.js
14598
14625
  var TypeId43 = "~effect/cli/Primitive";
14599
14626
  var Proto13 = {
14600
14627
  [TypeId43]: {
@@ -14611,7 +14638,7 @@ var makePrimitive2 = (tag2, parse4) => Object.assign(Object.create(Proto13), {
14611
14638
  var makeSchemaPrimitive = (tag2, schema) => {
14612
14639
  const toCodecStringTree2 = toCodecStringTree(schema);
14613
14640
  const decode = decodeUnknownEffect2(toCodecStringTree2);
14614
- return makePrimitive2(tag2, (value3) => mapError3(decode(value3), (error2) => error2.message));
14641
+ return makePrimitive2(tag2, (value3) => mapError2(decode(value3), (error2) => error2.message));
14615
14642
  };
14616
14643
  var boolean2 = /* @__PURE__ */ makeSchemaPrimitive("Boolean", Boolean3);
14617
14644
  var float = /* @__PURE__ */ makeSchemaPrimitive("Float", Finite);
@@ -14636,12 +14663,12 @@ var path = (pathType, mustExist) => {
14636
14663
  const fs2 = yield* FileSystem;
14637
14664
  const path5 = yield* Path;
14638
14665
  const absolutePath = path5.isAbsolute(value3) ? value3 : path5.resolve(value3);
14639
- const exists2 = yield* mapError3(fs2.exists(absolutePath), (error2) => `Failed to check path existence: ${error2.message}`);
14666
+ const exists2 = yield* mapError2(fs2.exists(absolutePath), (error2) => `Failed to check path existence: ${error2.message}`);
14640
14667
  if (mustExist === true && !exists2) {
14641
14668
  return yield* fail6(`Path does not exist: ${absolutePath}`);
14642
14669
  }
14643
14670
  if (exists2 && pathType !== "either") {
14644
- const stat3 = yield* mapError3(fs2.stat(absolutePath), (error2) => `Failed to stat path: ${error2.message}`);
14671
+ const stat3 = yield* mapError2(fs2.stat(absolutePath), (error2) => `Failed to stat path: ${error2.message}`);
14645
14672
  if (pathType === "file" && stat3.type !== "File") {
14646
14673
  return yield* fail6(`Path is not a file: ${absolutePath}`);
14647
14674
  }
@@ -14660,15 +14687,15 @@ var fileText = /* @__PURE__ */ makePrimitive2("FileText", /* @__PURE__ */ fnUntr
14660
14687
  const fs2 = yield* FileSystem;
14661
14688
  const path5 = yield* Path;
14662
14689
  const absolutePath = path5.isAbsolute(filePath) ? filePath : path5.resolve(filePath);
14663
- const exists2 = yield* mapError3(fs2.exists(absolutePath), (error2) => `Failed to check file existence: ${error2.message}`);
14690
+ const exists2 = yield* mapError2(fs2.exists(absolutePath), (error2) => `Failed to check file existence: ${error2.message}`);
14664
14691
  if (!exists2) {
14665
14692
  return yield* fail6(`File does not exist: ${absolutePath}`);
14666
14693
  }
14667
- const stat3 = yield* mapError3(fs2.stat(absolutePath), (error2) => `Failed to stat file: ${error2.message}`);
14694
+ const stat3 = yield* mapError2(fs2.stat(absolutePath), (error2) => `Failed to stat file: ${error2.message}`);
14668
14695
  if (stat3.type !== "File") {
14669
14696
  return yield* fail6(`Path is not a file: ${absolutePath}`);
14670
14697
  }
14671
- const content = yield* mapError3(fs2.readFileString(absolutePath), (error2) => `Failed to read file: ${error2.message}`);
14698
+ const content = yield* mapError2(fs2.readFileString(absolutePath), (error2) => `Failed to read file: ${error2.message}`);
14672
14699
  return content;
14673
14700
  }));
14674
14701
  var fileParsers = {
@@ -14696,7 +14723,7 @@ var fileSchema = (schema, options) => {
14696
14723
  const decode = decodeUnknownEffect2(schema);
14697
14724
  return makePrimitive2("FileSchema", fnUntraced2(function* (filePath) {
14698
14725
  const content = yield* fileParse(options).parse(filePath);
14699
- return yield* mapError3(decode(content), (error2) => options?.errorFormatter?.(error2.issue) ?? error2.toString());
14726
+ return yield* mapError2(decode(content), (error2) => options?.errorFormatter?.(error2.issue) ?? error2.toString());
14700
14727
  }));
14701
14728
  };
14702
14729
  var keyValuePair = /* @__PURE__ */ makePrimitive2("KeyValuePair", /* @__PURE__ */ fnUntraced2(function* (value3) {
@@ -14748,7 +14775,7 @@ var getTypeName = (primitive) => {
14748
14775
  var getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
14749
14776
  var getPathType = (primitive) => primitive._tag === "Path" ? primitive.pathType : void 0;
14750
14777
 
14751
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Prompt.js
14778
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Prompt.js
14752
14779
  var Prompt_exports = {};
14753
14780
  __export(Prompt_exports, {
14754
14781
  all: () => all3,
@@ -14774,7 +14801,7 @@ __export(Prompt_exports, {
14774
14801
  toggle: () => toggle
14775
14802
  });
14776
14803
 
14777
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/ansi.js
14804
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/ansi.js
14778
14805
  var ESC = "\x1B[";
14779
14806
  var BEL = "\x07";
14780
14807
  var reset = `${ESC}0m`;
@@ -14835,7 +14862,7 @@ var eraseLines = (rows) => {
14835
14862
  return command2;
14836
14863
  };
14837
14864
 
14838
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Prompt.js
14865
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Prompt.js
14839
14866
  var TypeId44 = "~effect/cli/Prompt";
14840
14867
  var isPrompt = (u2) => hasProperty(u2, TypeId44);
14841
14868
  var defaultFigures = {
@@ -14854,6 +14881,7 @@ var defaultFigures = {
14854
14881
  line: "\u2500",
14855
14882
  pointer: "\u276F"
14856
14883
  };
14884
+ var DEFAULT_PREFIX = "?";
14857
14885
  var windowsFigures = {
14858
14886
  arrowUp: defaultFigures.arrowUp,
14859
14887
  arrowDown: defaultFigures.arrowDown,
@@ -14870,7 +14898,7 @@ var windowsFigures = {
14870
14898
  line: "\u2500",
14871
14899
  pointer: ">"
14872
14900
  };
14873
- var platformFigures = /* @__PURE__ */ map6(/* @__PURE__ */ sync2(() => process.platform === "win32"), (isWindows) => isWindows ? windowsFigures : defaultFigures);
14901
+ var platformFigures = /* @__PURE__ */ map7(/* @__PURE__ */ sync2(() => process.platform === "win32"), (isWindows) => isWindows ? windowsFigures : defaultFigures);
14874
14902
  var all3 = function() {
14875
14903
  if (arguments.length === 1) {
14876
14904
  if (isPrompt(arguments[0])) {
@@ -14906,6 +14934,7 @@ var confirm = (options) => {
14906
14934
  const opts = {
14907
14935
  initial: false,
14908
14936
  ...options,
14937
+ prefix: options.prefix ?? DEFAULT_PREFIX,
14909
14938
  label: {
14910
14939
  confirm: "yes",
14911
14940
  deny: "no",
@@ -14943,6 +14972,7 @@ var date2 = (options) => {
14943
14972
  dateMask: "YYYY-MM-DD HH:mm:ss",
14944
14973
  validate: succeed6,
14945
14974
  ...options,
14975
+ prefix: options.prefix ?? DEFAULT_PREFIX,
14946
14976
  locales: {
14947
14977
  ...defaultLocales,
14948
14978
  ...options.locales
@@ -14967,6 +14997,7 @@ var file2 = (options = {}) => {
14967
14997
  const opts = {
14968
14998
  type: options.type ?? "file",
14969
14999
  message: options.message ?? `Choose a file`,
15000
+ prefix: options.prefix ?? DEFAULT_PREFIX,
14970
15001
  startingPath: fromUndefinedOr(options.startingPath),
14971
15002
  default: fromUndefinedOr(options.default),
14972
15003
  maxPerPage: options.maxPerPage ?? 10,
@@ -15028,7 +15059,8 @@ var float2 = (options) => {
15028
15059
  }
15029
15060
  return succeed6(n);
15030
15061
  },
15031
- ...options
15062
+ ...options,
15063
+ prefix: options.prefix ?? DEFAULT_PREFIX
15032
15064
  };
15033
15065
  const initialValue = options.default === void 0 ? "" : `${opts.default}`;
15034
15066
  const initialState = {
@@ -15059,7 +15091,8 @@ var integer2 = (options) => {
15059
15091
  }
15060
15092
  return succeed6(n);
15061
15093
  },
15062
- ...options
15094
+ ...options,
15095
+ prefix: options.prefix ?? DEFAULT_PREFIX
15063
15096
  };
15064
15097
  const initialValue = options.default === void 0 ? "" : `${opts.default}`;
15065
15098
  const initialState = {
@@ -15080,7 +15113,7 @@ var run3 = /* @__PURE__ */ fnUntraced2(function* (self) {
15080
15113
  const terminal = yield* Terminal;
15081
15114
  const input = yield* terminal.readInput;
15082
15115
  return yield* runWithInput(self, terminal, input);
15083
- }, /* @__PURE__ */ mapError3(() => new QuitError({})), scoped2);
15116
+ }, /* @__PURE__ */ mapError2(() => new QuitError({})), scoped2);
15084
15117
  var getSelectInitialIndex = (choices) => {
15085
15118
  let initialIndex = 0;
15086
15119
  let seenSelected = -1;
@@ -15101,7 +15134,8 @@ var getSelectInitialIndex = (choices) => {
15101
15134
  var select = (options) => {
15102
15135
  const opts = {
15103
15136
  maxPerPage: 10,
15104
- ...options
15137
+ ...options,
15138
+ prefix: options.prefix ?? DEFAULT_PREFIX
15105
15139
  };
15106
15140
  const initialIndex = getSelectInitialIndex(opts.choices);
15107
15141
  return custom(initialIndex, {
@@ -15116,7 +15150,8 @@ var autoComplete = (options) => {
15116
15150
  filterLabel: "filter",
15117
15151
  filterPlaceholder: "type to filter",
15118
15152
  emptyMessage: "No matches",
15119
- ...options
15153
+ ...options,
15154
+ prefix: options.prefix ?? DEFAULT_PREFIX
15120
15155
  };
15121
15156
  const initialIndex = getSelectInitialIndex(opts.choices);
15122
15157
  const filtered = filterAutoCompleteChoices(opts.choices, "");
@@ -15135,7 +15170,8 @@ var autoComplete = (options) => {
15135
15170
  var multiSelect = (options) => {
15136
15171
  const opts = {
15137
15172
  maxPerPage: 10,
15138
- ...options
15173
+ ...options,
15174
+ prefix: options.prefix ?? DEFAULT_PREFIX
15139
15175
  };
15140
15176
  const initialSelected = /* @__PURE__ */ new Set();
15141
15177
  for (let i = 0; i < opts.choices.length; i++) {
@@ -15167,7 +15203,8 @@ var toggle = (options) => {
15167
15203
  initial: false,
15168
15204
  active: "on",
15169
15205
  inactive: "off",
15170
- ...options
15206
+ ...options,
15207
+ prefix: options.prefix ?? DEFAULT_PREFIX
15171
15208
  };
15172
15209
  return custom(opts.initial, {
15173
15210
  render: handleToggleRender(opts),
@@ -15223,11 +15260,11 @@ var runLoop = /* @__PURE__ */ fnUntraced2(function* (loop, terminal, input) {
15223
15260
  const msg = yield* loop.render(state, action2);
15224
15261
  yield* orDie2(terminal.display(msg));
15225
15262
  if (loop.events) {
15226
- const takeInput = take2(input).pipe(map6((input2) => ({
15263
+ const takeInput = take2(input).pipe(map7((input2) => ({
15227
15264
  _tag: "Input",
15228
15265
  input: input2
15229
15266
  })));
15230
- const result3 = yield* raceFirst2(takeInput, take2(loop.events).pipe(map6((value3) => ({
15267
+ const result3 = yield* raceFirst2(takeInput, take2(loop.events).pipe(map7((value3) => ({
15231
15268
  _tag: "Event",
15232
15269
  value: value3
15233
15270
  }))));
@@ -15284,7 +15321,7 @@ var handleConfirmClear = (options) => {
15284
15321
  const columns = yield* terminal.columns;
15285
15322
  const figures = yield* platformFigures;
15286
15323
  const confirmMessage = state.value ? options.placeholder.defaultConfirm : options.placeholder.defaultDeny;
15287
- const promptText = renderConfirmOutput(confirmMessage, "?", figures.pointerSmall, options, {
15324
+ const promptText = renderConfirmOutput(confirmMessage, options.prefix, figures.pointerSmall, options, {
15288
15325
  plain: true
15289
15326
  });
15290
15327
  const clearOutput = eraseText(promptText, columns);
@@ -15295,7 +15332,7 @@ var handleConfirmClear = (options) => {
15295
15332
  var renderConfirmOutput = (confirm2, leadingSymbol, trailingSymbol, options, renderOptions) => renderPrompt(confirm2, options.message, leadingSymbol, trailingSymbol, renderOptions);
15296
15333
  var renderConfirmNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options) {
15297
15334
  const figures = yield* platformFigures;
15298
- const leadingSymbol = annotate2("?", cyanBright);
15335
+ const leadingSymbol = annotate2(options.prefix, cyanBright);
15299
15336
  const trailingSymbol = annotate2(figures.pointerSmall, blackBright);
15300
15337
  const confirmMessage = state.value ? options.placeholder.defaultConfirm : options.placeholder.defaultDeny;
15301
15338
  const confirm2 = annotate2(confirmMessage, blackBright);
@@ -15351,7 +15388,7 @@ var handleDateClear = (options) => {
15351
15388
  const figures = yield* platformFigures;
15352
15389
  const resetCurrentLine = eraseLine + cursorLeft;
15353
15390
  const parts = reduce(state.dateParts, "", (doc, part) => doc + part.toString());
15354
- const promptText = renderDateOutput("?", figures.pointerSmall, parts, options, {
15391
+ const promptText = renderDateOutput(options.prefix, figures.pointerSmall, parts, options, {
15355
15392
  plain: true
15356
15393
  });
15357
15394
  const errorText = isSome2(state.error) ? match4(state.error.value.split(NEWLINE_REGEXP), {
@@ -15386,7 +15423,7 @@ var renderParts = (state, submitted = false) => {
15386
15423
  var renderDateOutput = (leadingSymbol, trailingSymbol, parts, options, renderOptions) => renderPrompt(parts, options.message, leadingSymbol, trailingSymbol, renderOptions);
15387
15424
  var renderDateNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options) {
15388
15425
  const figures = yield* platformFigures;
15389
- const leadingSymbol = annotate2("?", cyanBright);
15426
+ const leadingSymbol = annotate2(options.prefix, cyanBright);
15390
15427
  const trailingSymbol = annotate2(figures.pointerSmall, blackBright);
15391
15428
  const parts = renderParts(state);
15392
15429
  const promptMsg = renderDateOutput(leadingSymbol, trailingSymbol, parts, options);
@@ -15817,12 +15854,12 @@ var getFileList = /* @__PURE__ */ fnUntraced2(function* (directory4, options) {
15817
15854
  const files = yield* orDie2(fs2.readDirectory(directory4)).pipe(
15818
15855
  // Always prepend the `".."` option to the file list but allow it
15819
15856
  // to be filtered out if the user so desires
15820
- map6((files2) => ["..", ...files2])
15857
+ map7((files2) => ["..", ...files2])
15821
15858
  );
15822
15859
  return yield* filter4(files, (file6) => {
15823
15860
  const result3 = options.filter(file6);
15824
15861
  const userDefinedFilter = isEffect2(result3) ? result3 : succeed6(result3);
15825
- const directoryFilter = options.type === "directory" ? map6(orDie2(fs2.stat(path5.join(directory4, file6))), (info) => info.type === "Directory") : succeed6(true);
15862
+ const directoryFilter = options.type === "directory" ? map7(orDie2(fs2.stat(path5.join(directory4, file6))), (info) => info.type === "Directory") : succeed6(true);
15826
15863
  return zipWith2(userDefinedFilter, directoryFilter, (a, b2) => a && b2);
15827
15864
  }, {
15828
15865
  concurrency: files.length
@@ -15873,7 +15910,7 @@ var handleFileClear = (options) => {
15873
15910
  const resolvedPath = selectedPath === void 0 ? currentPath : path5.resolve(currentPath, selectedPath);
15874
15911
  const resolvedPathText = `${figures.pointerSmall} ${resolvedPath}`;
15875
15912
  const isConfirming = showConfirmation(state.confirm);
15876
- const promptText = isConfirming ? renderPrompt("(Y/n)", CONFIRM_MESSAGE, "?", figures.pointerSmall, {
15913
+ const promptText = isConfirming ? renderPrompt("(Y/n)", CONFIRM_MESSAGE, options.prefix, figures.pointerSmall, {
15877
15914
  plain: true
15878
15915
  }) : renderPrompt(renderFileFilter(state, {
15879
15916
  plain: true
@@ -15948,7 +15985,7 @@ var renderFileNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options)
15948
15985
  const resolvedPath = selectedPath === void 0 ? currentPath : path5.resolve(currentPath, selectedPath);
15949
15986
  const resolvedPathMsg = annotate2(figures.pointerSmall + " " + resolvedPath, blackBright);
15950
15987
  if (showConfirmation(state.confirm)) {
15951
- const leadingSymbol2 = annotate2("?", cyanBright);
15988
+ const leadingSymbol2 = annotate2(options.prefix, cyanBright);
15952
15989
  const trailingSymbol2 = annotate2(figures.pointerSmall, blackBright);
15953
15990
  const confirm2 = annotate2("(Y/n)", blackBright);
15954
15991
  const promptMsg2 = renderPrompt(confirm2, CONFIRM_MESSAGE, leadingSymbol2, trailingSymbol2);
@@ -16208,7 +16245,7 @@ var renderMultiSelectChoices = (state, options, figures, renderOptions) => {
16208
16245
  var renderMultiSelectNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options) {
16209
16246
  const figures = yield* platformFigures;
16210
16247
  const choices = renderMultiSelectChoices(state, options, figures);
16211
- const leadingSymbol = annotate2("?", cyanBright);
16248
+ const leadingSymbol = annotate2(options.prefix, cyanBright);
16212
16249
  const trailingSymbol = annotate2(figures.pointerSmall, blackBright);
16213
16250
  const promptMsg = renderSelectOutput(leadingSymbol, trailingSymbol, options);
16214
16251
  const error2 = renderMultiSelectError(state, figures.pointer);
@@ -16285,7 +16322,7 @@ var handleMultiSelectClear = (options) => fnUntraced2(function* (state, _2) {
16285
16322
  const columns = yield* terminal.columns;
16286
16323
  const figures = yield* platformFigures;
16287
16324
  const clearPrompt = eraseLine + cursorLeft;
16288
- const promptText = renderSelectOutput("?", figures.pointerSmall, options, {
16325
+ const promptText = renderSelectOutput(options.prefix, figures.pointerSmall, options, {
16289
16326
  plain: true
16290
16327
  });
16291
16328
  const choicesText = renderMultiSelectChoices(state, options, figures, {
@@ -16371,7 +16408,7 @@ var handleNumberClear = (options) => {
16371
16408
  const errorText = renderNumberError(state, figures.pointerSmall, {
16372
16409
  plain: true
16373
16410
  });
16374
- const promptText = renderNumberOutput(state, "?", figures.pointerSmall, options, {
16411
+ const promptText = renderNumberOutput(state, options.prefix, figures.pointerSmall, options, {
16375
16412
  plain: true
16376
16413
  });
16377
16414
  const clearOutput = clearOutputWithError(promptText, columns, errorText);
@@ -16408,7 +16445,7 @@ var renderNumberOutput = (state, leadingSymbol, trailingSymbol, options, renderO
16408
16445
  };
16409
16446
  var renderNumberNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options) {
16410
16447
  const figures = yield* platformFigures;
16411
- const leadingSymbol = annotate2("?", cyanBright);
16448
+ const leadingSymbol = annotate2(options.prefix, cyanBright);
16412
16449
  const trailingSymbol = annotate2(figures.pointerSmall, blackBright);
16413
16450
  const errorMsg = renderNumberError(state, figures.pointerSmall);
16414
16451
  const promptMsg = renderNumberOutput(state, leadingSymbol, trailingSymbol, options);
@@ -16754,7 +16791,7 @@ var renderAutoCompleteChoices = (state, options, figures, renderOptions) => {
16754
16791
  var renderSelectNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options) {
16755
16792
  const figures = yield* platformFigures;
16756
16793
  const choices = renderSelectChoices(state, options, figures);
16757
- const leadingSymbol = annotate2("?", cyanBright);
16794
+ const leadingSymbol = annotate2(options.prefix, cyanBright);
16758
16795
  const trailingSymbol = annotate2(figures.pointerSmall, blackBright);
16759
16796
  const promptMsg = renderSelectOutput(leadingSymbol, trailingSymbol, options);
16760
16797
  return cursorHide + promptMsg + "\n" + choices;
@@ -16762,7 +16799,7 @@ var renderSelectNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, option
16762
16799
  var renderAutoCompleteNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options) {
16763
16800
  const figures = yield* platformFigures;
16764
16801
  const choices = renderAutoCompleteChoices(state, options, figures);
16765
- const leadingSymbol = annotate2("?", cyanBright);
16802
+ const leadingSymbol = annotate2(options.prefix, cyanBright);
16766
16803
  const trailingSymbol = annotate2(figures.pointerSmall, blackBright);
16767
16804
  const promptMsg = renderAutoCompleteOutput(state, leadingSymbol, trailingSymbol, options);
16768
16805
  return cursorHide + promptMsg + "\n" + choices;
@@ -16883,7 +16920,7 @@ var handleSelectClear = (options) => fnUntraced2(function* (state, _2) {
16883
16920
  const columns = yield* terminal.columns;
16884
16921
  const figures = yield* platformFigures;
16885
16922
  const clearPrompt = eraseLine + cursorLeft;
16886
- const promptText = renderSelectOutput("?", figures.pointerSmall, options, {
16923
+ const promptText = renderSelectOutput(options.prefix, figures.pointerSmall, options, {
16887
16924
  plain: true
16888
16925
  });
16889
16926
  const choicesText = renderSelectChoices(state, options, figures, {
@@ -16898,7 +16935,7 @@ var handleAutoCompleteClear = (options) => fnUntraced2(function* (state, _2) {
16898
16935
  const columns = yield* terminal.columns;
16899
16936
  const figures = yield* platformFigures;
16900
16937
  const clearPrompt = eraseLine + cursorLeft;
16901
- const promptText = renderAutoCompleteOutput(state, "?", figures.pointerSmall, options, {
16938
+ const promptText = renderAutoCompleteOutput(state, options.prefix, figures.pointerSmall, options, {
16902
16939
  plain: true
16903
16940
  });
16904
16941
  const choicesText = renderAutoCompleteChoices(state, options, figures, {
@@ -16988,7 +17025,7 @@ var renderClearScreen = /* @__PURE__ */ fnUntraced2(function* (state, options) {
16988
17025
  const errorText = renderTextError(state, figures.pointerSmall, {
16989
17026
  plain: true
16990
17027
  });
16991
- const clearOutput = clearOutputWithError(renderTextOutput(state, "?", figures.pointerSmall, options, {
17028
+ const clearOutput = clearOutputWithError(renderTextOutput(state, options.prefix, figures.pointerSmall, options, {
16992
17029
  plain: true
16993
17030
  }), columns, errorText);
16994
17031
  return clearOutput + resetCurrentLine;
@@ -17043,7 +17080,7 @@ var renderTextOutput = (nextState, leadingSymbol, trailingSymbol, options, rende
17043
17080
  };
17044
17081
  var renderTextNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options) {
17045
17082
  const figures = yield* platformFigures;
17046
- const leadingSymbol = annotate2("?", cyanBright);
17083
+ const leadingSymbol = annotate2(options.prefix, cyanBright);
17047
17084
  const trailingSymbol = annotate2(figures.pointerSmall, blackBright);
17048
17085
  const promptMsg = renderTextOutput(state, leadingSymbol, trailingSymbol, options);
17049
17086
  const errorMsg = renderTextError(state, figures.pointerSmall);
@@ -17230,7 +17267,8 @@ var basePrompt = (options, type) => {
17230
17267
  default: "",
17231
17268
  type,
17232
17269
  validate: succeed6,
17233
- ...options
17270
+ ...options,
17271
+ prefix: options.prefix ?? DEFAULT_PREFIX
17234
17272
  };
17235
17273
  const initialState = {
17236
17274
  cursor: opts.default.length,
@@ -17249,7 +17287,7 @@ var handleToggleClear = /* @__PURE__ */ fnUntraced2(function* (options) {
17249
17287
  const figures = yield* platformFigures;
17250
17288
  const clearPrompt = eraseLine + cursorLeft;
17251
17289
  const toggleText = `${options.active} / ${options.inactive}`;
17252
- const promptText = renderPrompt(toggleText, options.message, "?", figures.pointerSmall, {
17290
+ const promptText = renderPrompt(toggleText, options.message, options.prefix, figures.pointerSmall, {
17253
17291
  plain: true
17254
17292
  });
17255
17293
  const clearOutput = eraseText(promptText, columns);
@@ -17273,7 +17311,7 @@ var renderToggleOutput = (toggle2, leadingSymbol, trailingSymbol, options) => {
17273
17311
  };
17274
17312
  var renderToggleNextFrame = /* @__PURE__ */ fnUntraced2(function* (state, options) {
17275
17313
  const figures = yield* platformFigures;
17276
- const leadingSymbol = annotate2("?", cyanBright);
17314
+ const leadingSymbol = annotate2(options.prefix, cyanBright);
17277
17315
  const trailingSymbol = annotate2(figures.pointerSmall, blackBright);
17278
17316
  const toggle2 = renderToggle(state, options);
17279
17317
  const promptMsg = renderToggleOutput(toggle2, leadingSymbol, trailingSymbol, options);
@@ -17351,7 +17389,7 @@ var entriesToDisplay = (cursor, total, maxVisible) => {
17351
17389
  };
17352
17390
  };
17353
17391
 
17354
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Param.js
17392
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Param.js
17355
17393
  var TypeId45 = "~effect/cli/Param";
17356
17394
  var argumentKind = "argument";
17357
17395
  var flagKind = "flag";
@@ -17476,7 +17514,7 @@ var withHidden = (self) => transformSingle(self, (single) => makeSingle2({
17476
17514
  hidden: true
17477
17515
  }));
17478
17516
  var map12 = /* @__PURE__ */ dual(2, (self, f2) => {
17479
- const parse4 = (args2) => map6(self.parse(args2), ([operands, value3]) => [operands, f2(value3)]);
17517
+ const parse4 = (args2) => map7(self.parse(args2), ([operands, value3]) => [operands, f2(value3)]);
17480
17518
  return Object.assign(Object.create(Proto14), {
17481
17519
  _tag: "Map",
17482
17520
  kind: self.kind,
@@ -17496,27 +17534,24 @@ var transform3 = (self, f2, alternatives = []) => {
17496
17534
  parse: f2(self.parse, alternativeParsers)
17497
17535
  });
17498
17536
  };
17499
- var mapEffect2 = /* @__PURE__ */ dual(2, (self, f2) => transform3(self, (parse4) => (args2) => flatMap3(parse4(args2), ([leftover, a]) => f2(a).pipe(map6((b2) => [leftover, b2])))));
17537
+ var mapEffect2 = /* @__PURE__ */ dual(2, (self, f2) => transform3(self, (parse4) => (args2) => flatMap3(parse4(args2), ([leftover, a]) => f2(a).pipe(map7((b2) => [leftover, b2])))));
17500
17538
  var mapTryCatch = /* @__PURE__ */ dual(3, (self, f2, onError4) => {
17501
17539
  const single = getUnderlyingSingleOrThrow(self);
17502
17540
  return transform3(self, (parse4) => (args2) => flatMap3(parse4(args2), ([leftover, a]) => try_3({
17503
17541
  try: () => f2(a),
17504
17542
  catch: (error2) => onError4(error2)
17505
- }).pipe(mapError3((error2) => new InvalidValue2({
17543
+ }).pipe(mapError2((error2) => new InvalidValue2({
17506
17544
  option: single.name,
17507
17545
  value: String(a),
17508
17546
  expected: error2,
17509
17547
  kind: single.kind
17510
- })), map6((b2) => [leftover, b2]))));
17548
+ })), map7((b2) => [leftover, b2]))));
17511
17549
  });
17512
17550
  var optional3 = (param) => {
17513
17551
  const parse4 = fnUntraced2(function* (args2) {
17514
- const single = getUnderlyingSingleOrThrow(param);
17515
- if (isFlagParam(single) && isBoolean2(single.primitiveType) && ![single.name, ...single.aliases].some((name) => (args2.flags[name] ?? []).length > 0)) {
17516
- return [args2.arguments, none2()];
17517
- }
17552
+ getUnderlyingSingleOrThrow(param);
17518
17553
  return yield* param.parse(args2).pipe(
17519
- map6(([leftover, value3]) => [leftover, some2(value3)]),
17554
+ map7(([leftover, value3]) => [leftover, some2(value3)]),
17520
17555
  // Catch both MissingOption (for flags) and MissingArgument (for positional arguments)
17521
17556
  catchTags2({
17522
17557
  MissingOption: () => succeed6([args2.arguments, none2()]),
@@ -17547,14 +17582,14 @@ var withFallbackConfig = /* @__PURE__ */ dual(2, (self, config) => {
17547
17582
  expected: configError.message,
17548
17583
  kind: error2._tag === "MissingOption" ? "flag" : "argument"
17549
17584
  });
17550
- const runConfig = (error2, args2) => option3(config).pipe(mapError3((configError) => toInvalidValue(error2, configError)), flatMap3(match({
17585
+ const runConfig = (error2, args2) => option3(config).pipe(mapError2((configError) => toInvalidValue(error2, configError)), flatMap3(match({
17551
17586
  onNone: () => fail6(error2),
17552
17587
  onSome: (value3) => succeed6([args2.arguments, value3])
17553
17588
  })));
17554
17589
  return transform3(self, (parse4) => (args2) => parse4(args2).pipe(catchTag2(["MissingOption", "MissingArgument"], (error2) => runConfig(error2, args2))));
17555
17590
  });
17556
17591
  var withFallbackPrompt = /* @__PURE__ */ dual(2, (self, prompt) => {
17557
- const runPrompt = (error2, args2) => flatMap3(isPrompt(prompt) ? succeed6(prompt) : prompt, run3).pipe(map6((value3) => [args2.arguments, value3]), catchTag2("QuitError", () => fail6(error2)));
17592
+ const runPrompt = (error2, args2) => flatMap3(isPrompt(prompt) ? succeed6(prompt) : prompt, run3).pipe(map7((value3) => [args2.arguments, value3]), catchTag2("QuitError", () => fail6(error2)));
17558
17593
  return transform3(self, (parse4) => (args2) => parse4(args2).pipe(catchTag2(["MissingOption", "MissingArgument"], (error2) => runPrompt(error2, args2))));
17559
17594
  });
17560
17595
  var variadic = (self, options) => {
@@ -17623,7 +17658,7 @@ var withMetavar = /* @__PURE__ */ dual(2, (self, metavar) => transformSingle(sel
17623
17658
  })));
17624
17659
  var withSchema = /* @__PURE__ */ dual(2, (self, schema) => {
17625
17660
  const decodeParam = decodeUnknownEffect2(schema);
17626
- return mapEffect2(self, (value3) => mapError3(decodeParam(value3), (error2) => {
17661
+ return mapEffect2(self, (value3) => mapError2(decodeParam(value3), (error2) => {
17627
17662
  const single = getUnderlyingSingleOrThrow(self);
17628
17663
  return new InvalidValue2({
17629
17664
  option: single.name,
@@ -17635,7 +17670,7 @@ var withSchema = /* @__PURE__ */ dual(2, (self, schema) => {
17635
17670
  });
17636
17671
  var orElse = /* @__PURE__ */ dual(2, (self, orElse4) => transform3(self, (parse4, alternatives) => (args2) => catch_2(parse4(args2), () => alternatives[0]()(args2)), [orElse4]));
17637
17672
  var orElseResult = /* @__PURE__ */ dual(2, (self, orElse4) => {
17638
- return transform3(self, (parse4, alternatives) => (args2) => catch_2(map6(parse4(args2), ([leftover, value3]) => [leftover, succeed2(value3)]), () => map6(alternatives[0]()(args2), ([leftover, value3]) => [leftover, fail2(value3)])), [orElse4]);
17673
+ return transform3(self, (parse4, alternatives) => (args2) => catch_2(map7(parse4(args2), ([leftover, value3]) => [leftover, succeed2(value3)]), () => map7(alternatives[0]()(args2), ([leftover, value3]) => [leftover, fail2(value3)])), [orElse4]);
17639
17674
  });
17640
17675
  var parsePositional = /* @__PURE__ */ fnUntraced2(function* (name, primitiveType, args2) {
17641
17676
  if (args2.arguments.length === 0) {
@@ -17644,7 +17679,7 @@ var parsePositional = /* @__PURE__ */ fnUntraced2(function* (name, primitiveType
17644
17679
  });
17645
17680
  }
17646
17681
  const arg = args2.arguments[0];
17647
- const value3 = yield* mapError3(primitiveType.parse(arg), (error2) => new InvalidValue2({
17682
+ const value3 = yield* mapError2(primitiveType.parse(arg), (error2) => new InvalidValue2({
17648
17683
  option: name,
17649
17684
  value: arg,
17650
17685
  expected: error2,
@@ -17655,16 +17690,12 @@ var parsePositional = /* @__PURE__ */ fnUntraced2(function* (name, primitiveType
17655
17690
  var parseFlag = /* @__PURE__ */ fnUntraced2(function* (name, primitiveType, args2) {
17656
17691
  const providedValues = args2.flags[name];
17657
17692
  if (providedValues === void 0 || providedValues.length === 0) {
17658
- if (isBoolean2(primitiveType)) {
17659
- return [args2.arguments, false];
17660
- } else {
17661
- return yield* new MissingOption({
17662
- option: name
17663
- });
17664
- }
17693
+ return yield* new MissingOption({
17694
+ option: name
17695
+ });
17665
17696
  }
17666
17697
  const arg = providedValues[0];
17667
- const value3 = yield* mapError3(primitiveType.parse(arg), (error2) => new InvalidValue2({
17698
+ const value3 = yield* mapError2(primitiveType.parse(arg), (error2) => new InvalidValue2({
17668
17699
  option: name,
17669
17700
  value: arg,
17670
17701
  expected: error2,
@@ -17800,7 +17831,7 @@ var getParamMetadata = (param) => {
17800
17831
  });
17801
17832
  };
17802
17833
 
17803
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Argument.js
17834
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Argument.js
17804
17835
  var string5 = (name) => string4(argumentKind, name);
17805
17836
  var integer4 = (name) => integer3(argumentKind, name);
17806
17837
  var file4 = (name, options) => file3(argumentKind, name, options);
@@ -17834,7 +17865,7 @@ var filterMap4 = /* @__PURE__ */ dual(3, (self, f2, onNone) => filterMap3(self,
17834
17865
  var orElse2 = /* @__PURE__ */ dual(2, (self, that) => orElse(self, that));
17835
17866
  var orElseResult2 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
17836
17867
 
17837
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/CliOutput.js
17868
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/CliOutput.js
17838
17869
  var Formatter = /* @__PURE__ */ Reference("effect/cli/CliOutput", {
17839
17870
  defaultValue: () => defaultFormatter2()
17840
17871
  });
@@ -18030,7 +18061,7 @@ var formatHelpDocImpl = (doc, colors2) => {
18030
18061
  return sections.join("\n");
18031
18062
  };
18032
18063
 
18033
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
18064
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
18034
18065
  var escapeForBash = (s3) => s3.replace(/'/g, "'\\''");
18035
18066
  var sanitizeFunctionName = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
18036
18067
  var flagNamesForWordlist = (flag) => {
@@ -18252,7 +18283,7 @@ var generate = (executableName, descriptor) => {
18252
18283
  return lines2.join("\n");
18253
18284
  };
18254
18285
 
18255
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
18286
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
18256
18287
  var escapeFishString = (s3) => s3.replace(/'/g, "\\'");
18257
18288
  var subcommandCondition = (parentPath, childSubcommandNames) => {
18258
18289
  if (parentPath.length === 0) {
@@ -18420,7 +18451,7 @@ var generate2 = (executableName, descriptor) => {
18420
18451
  return lines2.join("\n");
18421
18452
  };
18422
18453
 
18423
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
18454
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
18424
18455
  var escapeZsh = (s3) => s3.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
18425
18456
  var sanitize = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
18426
18457
  var allForms = (flag) => {
@@ -18506,8 +18537,14 @@ var generateFunction2 = (descriptor, parentPath, lines2) => {
18506
18537
  lines2.push(` ${spec}`);
18507
18538
  }
18508
18539
  }
18509
- for (const arg of descriptor.arguments) {
18510
- lines2.push(` ${argSpec(arg)}`);
18540
+ if (descriptor.arguments.length > 0) {
18541
+ lines2.push(` -`);
18542
+ lines2.push(` parent-arguments`);
18543
+ for (const arg of descriptor.arguments) {
18544
+ lines2.push(` ${argSpec(arg)}`);
18545
+ }
18546
+ lines2.push(` -`);
18547
+ lines2.push(` subcommands`);
18511
18548
  }
18512
18549
  lines2.push(` '1:command:->command'`);
18513
18550
  lines2.push(` '*::arg:->args'`);
@@ -18578,7 +18615,7 @@ var generate3 = (executableName, descriptor) => {
18578
18615
  return lines2.join("\n");
18579
18616
  };
18580
18617
 
18581
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Completions.js
18618
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Completions.js
18582
18619
  var generate4 = (executableName, shell, descriptor) => {
18583
18620
  switch (shell) {
18584
18621
  case "bash":
@@ -18590,7 +18627,7 @@ var generate4 = (executableName, shell, descriptor) => {
18590
18627
  }
18591
18628
  };
18592
18629
 
18593
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Flag.js
18630
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Flag.js
18594
18631
  var Flag_exports = {};
18595
18632
  __export(Flag_exports, {
18596
18633
  atLeast: () => atLeast3,
@@ -18665,7 +18702,7 @@ var orElse3 = /* @__PURE__ */ dual(2, (self, that) => orElse(self, that));
18665
18702
  var orElseResult3 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
18666
18703
  var withSchema3 = /* @__PURE__ */ dual(2, (self, schema) => withSchema(self, schema));
18667
18704
 
18668
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/config.js
18705
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/config.js
18669
18706
  var ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
18670
18707
  var parseConfig = (config) => {
18671
18708
  const orderedParams = [];
@@ -18766,7 +18803,7 @@ var reconstructTree = (tree, results) => {
18766
18803
  }
18767
18804
  };
18768
18805
 
18769
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/command.js
18806
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/command.js
18770
18807
  var TypeId46 = "~effect/cli/Command";
18771
18808
  var toImpl = (self) => self;
18772
18809
  var Proto15 = {
@@ -18957,7 +18994,7 @@ var checkForDuplicateFlags = (parent, subcommands, options) => {
18957
18994
  }
18958
18995
  };
18959
18996
 
18960
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/completions/descriptor.js
18997
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/completions/descriptor.js
18961
18998
  var toFlagType = (single) => {
18962
18999
  const tag2 = single.primitiveType._tag;
18963
19000
  switch (tag2) {
@@ -19090,7 +19127,7 @@ var fromCommand = (cmd) => {
19090
19127
  };
19091
19128
  };
19092
19129
 
19093
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/help.js
19130
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/help.js
19094
19131
  var dedupeGlobalFlags = (flags) => {
19095
19132
  const seen = /* @__PURE__ */ new Set();
19096
19133
  const deduped = [];
@@ -19195,7 +19232,7 @@ var getHelpForCommandPath = (command2, commandPath, builtIns) => gen2(function*
19195
19232
  };
19196
19233
  });
19197
19234
 
19198
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/GlobalFlag.js
19235
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/GlobalFlag.js
19199
19236
  var action = (options) => ({
19200
19237
  _tag: "Action",
19201
19238
  flag: options.flag,
@@ -19212,7 +19249,7 @@ var setting = (id) => (options) => {
19212
19249
  };
19213
19250
  var settingIdCounter = 0;
19214
19251
  var Help = /* @__PURE__ */ action({
19215
- flag: /* @__PURE__ */ boolean4("help").pipe(/* @__PURE__ */ withAlias2("h"), /* @__PURE__ */ withDescription3("Show help information")),
19252
+ flag: /* @__PURE__ */ boolean4("help").pipe(/* @__PURE__ */ withAlias2("h"), /* @__PURE__ */ withDescription3("Show help information"), /* @__PURE__ */ withDefault5(false)),
19216
19253
  run: /* @__PURE__ */ fnUntraced2(function* (_2, {
19217
19254
  builtIns,
19218
19255
  command: command2,
@@ -19224,7 +19261,7 @@ var Help = /* @__PURE__ */ action({
19224
19261
  })
19225
19262
  });
19226
19263
  var Version = /* @__PURE__ */ action({
19227
- flag: /* @__PURE__ */ boolean4("version").pipe(/* @__PURE__ */ withAlias2("v"), /* @__PURE__ */ withDescription3("Show version information")),
19264
+ flag: /* @__PURE__ */ boolean4("version").pipe(/* @__PURE__ */ withAlias2("v"), /* @__PURE__ */ withDescription3("Show version information"), /* @__PURE__ */ withDefault5(false)),
19228
19265
  run: /* @__PURE__ */ fnUntraced2(function* (_2, {
19229
19266
  command: command2,
19230
19267
  version
@@ -19234,7 +19271,7 @@ var Version = /* @__PURE__ */ action({
19234
19271
  })
19235
19272
  });
19236
19273
  var Wizard = /* @__PURE__ */ action({
19237
- flag: /* @__PURE__ */ boolean4("wizard").pipe(/* @__PURE__ */ withDescription3("Start wizard mode for a command")),
19274
+ flag: /* @__PURE__ */ boolean4("wizard").pipe(/* @__PURE__ */ withDescription3("Start wizard mode for a command"), /* @__PURE__ */ withDefault5(false)),
19238
19275
  run: () => void_3
19239
19276
  });
19240
19277
  var Completions = /* @__PURE__ */ action({
@@ -19252,7 +19289,7 @@ var LogLevel = /* @__PURE__ */ setting("log-level")({
19252
19289
  });
19253
19290
  var BuiltIns = [Help, Version, Wizard, Completions, LogLevel];
19254
19291
 
19255
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/CliConfig.js
19292
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/CliConfig.js
19256
19293
  var CliConfig = class extends (/* @__PURE__ */ Reference("effect/unstable/cli/CliConfig", {
19257
19294
  defaultValue: () => defaults
19258
19295
  })) {
@@ -19261,7 +19298,7 @@ var defaults = {
19261
19298
  builtIns: BuiltIns
19262
19299
  };
19263
19300
 
19264
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Command.js
19301
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Command.js
19265
19302
  var Command_exports = {};
19266
19303
  __export(Command_exports, {
19267
19304
  annotate: () => annotate3,
@@ -19286,7 +19323,7 @@ __export(Command_exports, {
19286
19323
  wizard: () => wizard
19287
19324
  });
19288
19325
 
19289
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/lexer.js
19326
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/lexer.js
19290
19327
  function lex(argv) {
19291
19328
  const endIndex = argv.indexOf("--");
19292
19329
  if (endIndex === -1) {
@@ -19357,7 +19394,7 @@ var lexTokens = (args2) => {
19357
19394
  return tokens;
19358
19395
  };
19359
19396
 
19360
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
19397
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
19361
19398
  var levenshtein = (a, b2) => {
19362
19399
  const m2 = a.length;
19363
19400
  const n = b2.length;
@@ -19381,7 +19418,7 @@ var suggest = (input, candidates) => {
19381
19418
  return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
19382
19419
  };
19383
19420
 
19384
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/parser.js
19421
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/parser.js
19385
19422
  var getCommandPath = (parsedInput) => match(parsedInput.subcommand, {
19386
19423
  onNone: () => [],
19387
19424
  onSome: (subcommand) => [subcommand.name, ...getCommandPath(subcommand.parsedInput)]
@@ -19884,7 +19921,7 @@ var scanCommandLevel = (tokens, context3) => {
19884
19921
  return toLeafResult(state);
19885
19922
  };
19886
19923
 
19887
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/internal/wizard.js
19924
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/internal/wizard.js
19888
19925
  var run4 = /* @__PURE__ */ fnUntraced2(function* (command2, options) {
19889
19926
  const commandPath = options?.commandPath ?? [command2.name];
19890
19927
  const selected = getCommandAtPath(command2, commandPath);
@@ -19997,7 +20034,7 @@ var promptSingle = (single) => {
19997
20034
  const message = renderParamMessage(single);
19998
20035
  switch (single.primitiveType._tag) {
19999
20036
  case "Boolean":
20000
- return map6(run3(confirm({
20037
+ return map7(run3(confirm({
20001
20038
  message,
20002
20039
  label: {
20003
20040
  confirm: "true",
@@ -20019,19 +20056,19 @@ var promptSingle = (single) => {
20019
20056
  }));
20020
20057
  }
20021
20058
  case "Date":
20022
- return map6(run3(date2({
20059
+ return map7(run3(date2({
20023
20060
  message
20024
20061
  })), (date6) => date6.toISOString());
20025
20062
  case "Float":
20026
- return map6(run3(float2({
20063
+ return map7(run3(float2({
20027
20064
  message
20028
20065
  })), String);
20029
20066
  case "Integer":
20030
- return map6(run3(integer2({
20067
+ return map7(run3(integer2({
20031
20068
  message
20032
20069
  })), String);
20033
20070
  case "Redacted":
20034
- return map6(run3(password({
20071
+ return map7(run3(password({
20035
20072
  message
20036
20073
  })), value2);
20037
20074
  default:
@@ -20088,7 +20125,7 @@ var wrapCommand = (commandLine) => {
20088
20125
  };
20089
20126
  var formatShellArg = (arg) => /^[A-Za-z0-9_./:@%+=,-]+$/.test(arg) ? arg : `'${arg.replaceAll("'", `'"'"'`)}'`;
20090
20127
 
20091
- // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/unstable/cli/Command.js
20128
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.111/node_modules/effect/dist/unstable/cli/Command.js
20092
20129
  var isCommand = (u2) => hasProperty(u2, TypeId46);
20093
20130
  var make34 = (name, config, handler) => {
20094
20131
  const parsedConfig = parseConfig(config ?? {});