@foldkit/devtools-mcp 0.13.2 → 0.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server.js CHANGED
@@ -10575,7 +10575,7 @@ var require_websocket_server = __commonJS({
10575
10575
  }
10576
10576
  });
10577
10577
 
10578
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Pipeable.js
10578
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Pipeable.js
10579
10579
  var pipeArguments = (self, args2) => {
10580
10580
  switch (args2.length) {
10581
10581
  case 0:
@@ -10619,7 +10619,7 @@ var Class = /* @__PURE__ */ (function() {
10619
10619
  return PipeableBase;
10620
10620
  })();
10621
10621
 
10622
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Function.js
10622
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Function.js
10623
10623
  var dual = function(arity, body) {
10624
10624
  if (typeof arity === "function") {
10625
10625
  return function() {
@@ -10682,7 +10682,7 @@ function memoize(f) {
10682
10682
  };
10683
10683
  }
10684
10684
 
10685
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Array.js
10685
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Array.js
10686
10686
  var Array_exports = {};
10687
10687
  __export(Array_exports, {
10688
10688
  Array: () => Array2,
@@ -10820,7 +10820,7 @@ __export(Array_exports, {
10820
10820
  zipWith: () => zipWith2
10821
10821
  });
10822
10822
 
10823
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/equal.js
10823
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/equal.js
10824
10824
  var getAllObjectKeys = (obj) => {
10825
10825
  const keys4 = new Set(Reflect.ownKeys(obj));
10826
10826
  if (obj.constructor === Object) return keys4;
@@ -10843,7 +10843,7 @@ var getAllObjectKeys = (obj) => {
10843
10843
  };
10844
10844
  var byReferenceInstances = /* @__PURE__ */ new WeakSet();
10845
10845
 
10846
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Predicate.js
10846
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Predicate.js
10847
10847
  function isString(input) {
10848
10848
  return typeof input === "string";
10849
10849
  }
@@ -10901,7 +10901,7 @@ function isIterable(input) {
10901
10901
  return hasProperty(input, Symbol.iterator) || isString(input);
10902
10902
  }
10903
10903
 
10904
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Hash.js
10904
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Hash.js
10905
10905
  var symbol = "~effect/interfaces/Hash";
10906
10906
  var hash = (self) => {
10907
10907
  switch (typeof self) {
@@ -11020,7 +11020,7 @@ function withVisitedTracking(obj, fn3) {
11020
11020
  return result5;
11021
11021
  }
11022
11022
 
11023
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Equal.js
11023
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Equal.js
11024
11024
  var symbol2 = "~effect/interfaces/Equal";
11025
11025
  function equals() {
11026
11026
  if (arguments.length === 1) {
@@ -11202,7 +11202,7 @@ var byReferenceUnsafe = (obj) => {
11202
11202
  return obj;
11203
11203
  };
11204
11204
 
11205
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Reducer.js
11205
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Reducer.js
11206
11206
  function make(combine2, initialValue, combineAll2) {
11207
11207
  return {
11208
11208
  combine: combine2,
@@ -11217,7 +11217,7 @@ function make(combine2, initialValue, combineAll2) {
11217
11217
  };
11218
11218
  }
11219
11219
 
11220
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Equivalence.js
11220
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Equivalence.js
11221
11221
  var make2 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
11222
11222
  var isStrictEquivalent = (x, y) => x === y;
11223
11223
  var strictEqual = () => isStrictEquivalent;
@@ -11231,10 +11231,10 @@ function Array_(item) {
11231
11231
  });
11232
11232
  }
11233
11233
 
11234
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/array.js
11234
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/array.js
11235
11235
  var isArrayNonEmpty = (self) => self.length > 0;
11236
11236
 
11237
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/doNotation.js
11237
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/doNotation.js
11238
11238
  var let_ = (map15) => dual(3, (self, name, f) => map15(self, (a) => ({
11239
11239
  ...a,
11240
11240
  [name]: f(a)
@@ -11247,7 +11247,7 @@ var bind = (map15, flatMap8) => dual(3, (self, name, f) => flatMap8(self, (a) =>
11247
11247
  [name]: b
11248
11248
  }))));
11249
11249
 
11250
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Option.js
11250
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Option.js
11251
11251
  var Option_exports = {};
11252
11252
  __export(Option_exports, {
11253
11253
  Do: () => Do,
@@ -11312,7 +11312,7 @@ __export(Option_exports, {
11312
11312
  zipWith: () => zipWith
11313
11313
  });
11314
11314
 
11315
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Combiner.js
11315
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Combiner.js
11316
11316
  function make3(combine2) {
11317
11317
  return {
11318
11318
  combine: combine2
@@ -11325,7 +11325,7 @@ function max(order) {
11325
11325
  return make3((self, that) => order(self, that) === 1 ? self : that);
11326
11326
  }
11327
11327
 
11328
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Redactable.js
11328
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Redactable.js
11329
11329
  var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Redactable");
11330
11330
  var isRedactable = (u) => hasProperty(u, symbolRedactable);
11331
11331
  function redact(u) {
@@ -11344,7 +11344,7 @@ var emptyContext = {
11344
11344
  }
11345
11345
  };
11346
11346
 
11347
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Formatter.js
11347
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Formatter.js
11348
11348
  function format(input, options) {
11349
11349
  const space = options?.space ?? 0;
11350
11350
  const seen = /* @__PURE__ */ new WeakSet();
@@ -11443,7 +11443,7 @@ function formatJson(input, options) {
11443
11443
  }, options?.space);
11444
11444
  }
11445
11445
 
11446
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Inspectable.js
11446
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Inspectable.js
11447
11447
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
11448
11448
  var toJson = (input) => {
11449
11449
  try {
@@ -11507,7 +11507,7 @@ var Class2 = class {
11507
11507
  }
11508
11508
  };
11509
11509
 
11510
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Utils.js
11510
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Utils.js
11511
11511
  var SingleShotGen = class _SingleShotGen {
11512
11512
  called = false;
11513
11513
  self;
@@ -11567,7 +11567,7 @@ var pickInternalCall = () => {
11567
11567
  };
11568
11568
  var internalCall = /* @__PURE__ */ pickInternalCall();
11569
11569
 
11570
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/core.js
11570
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/core.js
11571
11571
  var EffectTypeId = `~effect/Effect`;
11572
11572
  var ExitTypeId = `~effect/Exit`;
11573
11573
  var effectVariance = {
@@ -11842,7 +11842,7 @@ var exitFailCause = /* @__PURE__ */ makeExit({
11842
11842
  while (fiber3.interruptible && fiber3._interruptedCause && cont) {
11843
11843
  cont = fiber3.getCont(contE);
11844
11844
  }
11845
- return cont ? cont[contE](cause, fiber3, annotated ? void 0 : this) : fiber3.yieldWith(annotated ? this : exitFailCause(cause));
11845
+ return cont ? cont[contE](cause, fiber3, annotated ? void 0 : this) : fiber3.yieldWith(annotated ? exitFailCause(cause) : this);
11846
11846
  }
11847
11847
  });
11848
11848
  var exitFail = (e) => exitFailCause(causeFail(e));
@@ -11928,7 +11928,7 @@ var done = (value5) => {
11928
11928
  return exitFail(Done(value5));
11929
11929
  };
11930
11930
 
11931
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/option.js
11931
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/option.js
11932
11932
  var TypeId = "~effect/data/Option";
11933
11933
  var CommonProto = {
11934
11934
  [TypeId]: {
@@ -11994,7 +11994,7 @@ var some = (value5) => {
11994
11994
  return a;
11995
11995
  };
11996
11996
 
11997
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/result.js
11997
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/result.js
11998
11998
  var TypeId2 = "~effect/data/Result";
11999
11999
  var CommonProto2 = {
12000
12000
  [TypeId2]: {
@@ -12064,7 +12064,7 @@ var getFailure = (self) => isSuccess(self) ? none : some(self.failure);
12064
12064
  var getSuccess = (self) => isFailure(self) ? none : some(self.success);
12065
12065
  var fromOption = /* @__PURE__ */ dual(2, (self, onNone) => isNone(self) ? fail(onNone()) : succeed(self.value));
12066
12066
 
12067
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Order.js
12067
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Order.js
12068
12068
  function make4(compare) {
12069
12069
  return (self, that) => self === that ? 0 : compare(self, that);
12070
12070
  }
@@ -12112,7 +12112,7 @@ var max2 = (O) => dual(2, (self, that) => self === that || O(self, that) > -1 ?
12112
12112
  var clamp = (O) => dual(2, (self, options) => min2(O)(options.maximum, max2(O)(options.minimum, self)));
12113
12113
  var isBetween = (O) => dual(2, (self, options) => !isLessThan(O)(self, options.minimum) && !isGreaterThan(O)(self, options.maximum));
12114
12114
 
12115
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Option.js
12115
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Option.js
12116
12116
  var none2 = () => none;
12117
12117
  var some2 = some;
12118
12118
  var isOption2 = isOption;
@@ -12290,7 +12290,7 @@ function makeReducerFailFast(reducer2) {
12290
12290
  });
12291
12291
  }
12292
12292
 
12293
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Result.js
12293
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Result.js
12294
12294
  var succeed2 = succeed;
12295
12295
  var fail2 = fail;
12296
12296
  var fromOption2 = fromOption;
@@ -12332,10 +12332,10 @@ var all2 = (input) => {
12332
12332
  return succeed2(out);
12333
12333
  };
12334
12334
 
12335
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Tuple.js
12335
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Tuple.js
12336
12336
  var make5 = (...elements) => elements;
12337
12337
 
12338
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Iterable.js
12338
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Iterable.js
12339
12339
  var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
12340
12340
  let i = 0;
12341
12341
  for (const a of self) {
@@ -12378,7 +12378,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => ({
12378
12378
  }
12379
12379
  }));
12380
12380
 
12381
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Record.js
12381
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Record.js
12382
12382
  var empty = () => ({});
12383
12383
  var isEmptyRecord = (self) => Object.keys(self).length === 0;
12384
12384
  var collect = /* @__PURE__ */ dual(2, (self, f) => {
@@ -12409,7 +12409,7 @@ var filter3 = /* @__PURE__ */ dual(2, (self, predicate) => {
12409
12409
  });
12410
12410
  var keys = (self) => Object.keys(self);
12411
12411
 
12412
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Array.js
12412
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Array.js
12413
12413
  var Array2 = globalThis.Array;
12414
12414
  var make6 = (...elements) => elements;
12415
12415
  var allocate = (n) => new Array2(n);
@@ -12732,7 +12732,7 @@ var rotate = /* @__PURE__ */ dual(2, (self, n) => {
12732
12732
  const [f, s] = splitAtNonEmpty(input, -m);
12733
12733
  return appendAll(s, f);
12734
12734
  } else {
12735
- return rotate(self, m - len);
12735
+ return rotate(input, m - len);
12736
12736
  }
12737
12737
  }
12738
12738
  return [];
@@ -13038,7 +13038,7 @@ var countBy = /* @__PURE__ */ dual(2, (self, f) => {
13038
13038
  return count2;
13039
13039
  });
13040
13040
 
13041
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/BigDecimal.js
13041
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/BigDecimal.js
13042
13042
  var FINITE_INT_REGEXP = /^[+-]?\d+$/;
13043
13043
  var TypeId3 = "~effect/BigDecimal";
13044
13044
  var BigDecimalProto = {
@@ -13267,17 +13267,17 @@ var floor = /* @__PURE__ */ dual(isBigDecimalArgs, (self, scale2 = 0) => {
13267
13267
  return truncated;
13268
13268
  });
13269
13269
 
13270
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Boolean.js
13270
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Boolean.js
13271
13271
  var Boolean2 = globalThis.Boolean;
13272
13272
  var ReducerOr = /* @__PURE__ */ make((a, b) => a || b, false);
13273
13273
 
13274
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Effectable.js
13274
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Effectable.js
13275
13275
  var Prototype2 = (options) => makePrimitiveProto({
13276
13276
  op: options.label,
13277
13277
  [evaluate]: options.evaluate
13278
13278
  });
13279
13279
 
13280
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/stackTraceLimit.js
13280
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/stackTraceLimit.js
13281
13281
  var ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
13282
13282
  var ObjectPrototypeHasOwnProperty = Object.prototype.hasOwnProperty;
13283
13283
  var ObjectIsExtensible = Object.isExtensible;
@@ -13297,7 +13297,7 @@ var setStackTraceLimit = (value5) => {
13297
13297
  }
13298
13298
  };
13299
13299
 
13300
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Context.js
13300
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Context.js
13301
13301
  var ServiceTypeId = "~effect/Context/Service";
13302
13302
  var Service = function() {
13303
13303
  const prevLimit = getStackTraceLimit();
@@ -13474,7 +13474,7 @@ var withMapUnsafe = (self, f) => {
13474
13474
  };
13475
13475
  var Reference = Service;
13476
13476
 
13477
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Duration.js
13477
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Duration.js
13478
13478
  var Duration_exports = {};
13479
13479
  __export(Duration_exports, {
13480
13480
  CombinerMax: () => CombinerMax,
@@ -14042,7 +14042,7 @@ var ReducerSum = /* @__PURE__ */ make(sum2, zero2);
14042
14042
  var CombinerMax = /* @__PURE__ */ max(Order2);
14043
14043
  var CombinerMin = /* @__PURE__ */ min(Order2);
14044
14044
 
14045
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Filter.js
14045
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Filter.js
14046
14046
  var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
14047
14047
  const leftOut = left(input);
14048
14048
  if (isFailure2(leftOut)) return fail2(input);
@@ -14051,7 +14051,7 @@ var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
14051
14051
  return rightOut;
14052
14052
  });
14053
14053
 
14054
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Scheduler.js
14054
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Scheduler.js
14055
14055
  var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
14056
14056
  defaultValue: () => new MixedScheduler()
14057
14057
  });
@@ -14176,7 +14176,7 @@ var PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventS
14176
14176
  defaultValue: () => false
14177
14177
  });
14178
14178
 
14179
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Tracer.js
14179
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Tracer.js
14180
14180
  var ParentSpanKey = "effect/Tracer/ParentSpan";
14181
14181
  var ParentSpan = class extends (/* @__PURE__ */ Service()(ParentSpanKey)) {
14182
14182
  };
@@ -14256,10 +14256,10 @@ var randomHexString = /* @__PURE__ */ (function() {
14256
14256
  };
14257
14257
  })();
14258
14258
 
14259
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/metric.js
14259
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/metric.js
14260
14260
  var FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
14261
14261
 
14262
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/references.js
14262
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/references.js
14263
14263
  var CurrentConcurrency = /* @__PURE__ */ Reference("effect/References/CurrentConcurrency", {
14264
14264
  defaultValue: () => "unbounded"
14265
14265
  });
@@ -14294,7 +14294,7 @@ var CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpa
14294
14294
  defaultValue: () => []
14295
14295
  });
14296
14296
 
14297
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/tracer.js
14297
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/tracer.js
14298
14298
  var addSpanStackTrace = (options) => {
14299
14299
  if (options?.captureStackTrace === false) {
14300
14300
  return options;
@@ -14325,10 +14325,10 @@ var makeStackCleaner = (line) => (stack) => {
14325
14325
  };
14326
14326
  var spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
14327
14327
 
14328
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/version.js
14328
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/version.js
14329
14329
  var version = "dev";
14330
14330
 
14331
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/effect.js
14331
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/effect.js
14332
14332
  var Interrupt = class extends ReasonBase {
14333
14333
  fiberId;
14334
14334
  constructor(fiberId3, annotations = constEmptyAnnotations) {
@@ -14583,7 +14583,6 @@ var FiberImpl = class {
14583
14583
  this.setContext(context4);
14584
14584
  this.id = ++fiberIdStore.id;
14585
14585
  this.currentOpCount = 0;
14586
- this.currentLoopCount = 0;
14587
14586
  this.interruptible = interruptible3;
14588
14587
  this._stack = [];
14589
14588
  this._observers = [];
@@ -14591,20 +14590,22 @@ var FiberImpl = class {
14591
14590
  this._children = void 0;
14592
14591
  this._interruptedCause = void 0;
14593
14592
  this._yielded = void 0;
14593
+ this._running = false;
14594
+ this._deferredInterrupt = false;
14594
14595
  this.runtimeMetrics?.recordFiberStart(this.context);
14595
14596
  }
14596
14597
  [FiberTypeId];
14597
14598
  id;
14598
14599
  interruptible;
14599
14600
  currentOpCount;
14600
- currentLoopCount;
14601
14601
  _stack;
14602
14602
  _observers;
14603
14603
  _exit;
14604
- _currentExit;
14605
14604
  _children;
14606
14605
  _interruptedCause;
14607
14606
  _yielded;
14607
+ _running;
14608
+ _deferredInterrupt;
14608
14609
  // set in setContext
14609
14610
  context;
14610
14611
  currentScheduler;
@@ -14649,7 +14650,11 @@ var FiberImpl = class {
14649
14650
  }
14650
14651
  this._interruptedCause = this._interruptedCause ? causeCombine(this._interruptedCause, cause) : cause;
14651
14652
  if (this.interruptible) {
14652
- this.evaluate(failCause(this._interruptedCause));
14653
+ if (this._running) {
14654
+ this._deferredInterrupt = true;
14655
+ } else {
14656
+ this.evaluate(failCause(this._interruptedCause));
14657
+ }
14653
14658
  }
14654
14659
  }
14655
14660
  pollUnsafe() {
@@ -14677,16 +14682,24 @@ var FiberImpl = class {
14677
14682
  this._observers[i](exit3);
14678
14683
  }
14679
14684
  this._observers.length = 0;
14685
+ this._stack.length = 0;
14686
+ this._children = void 0;
14687
+ this.context = empty3();
14680
14688
  }
14681
14689
  runLoop(effect) {
14682
14690
  const prevFiber = globalThis[currentFiberTypeId];
14683
14691
  globalThis[currentFiberTypeId] = this;
14692
+ const prevRunning = this._running;
14693
+ this._running = true;
14684
14694
  let yielding = false;
14685
14695
  let current = effect;
14686
14696
  this.currentOpCount = 0;
14687
- const currentLoop = ++this.currentLoopCount;
14688
14697
  try {
14689
14698
  while (true) {
14699
+ if (this._deferredInterrupt) {
14700
+ this._deferredInterrupt = false;
14701
+ current = failCause(this._interruptedCause);
14702
+ }
14690
14703
  this.currentOpCount++;
14691
14704
  if (!yielding && !this.currentPreventYield && this.currentScheduler.shouldYield(this)) {
14692
14705
  yielding = true;
@@ -14694,13 +14707,16 @@ var FiberImpl = class {
14694
14707
  current = flatMap4(yieldNow, () => prev);
14695
14708
  }
14696
14709
  current = this.currentTracerContext ? this.currentTracerContext(current, this) : current[evaluate](this);
14697
- if (currentLoop !== this.currentLoopCount) {
14698
- return Yield;
14699
- } else if (current === Yield) {
14710
+ if (current === Yield) {
14700
14711
  const yielded = this._yielded;
14701
14712
  if (ExitTypeId in yielded) {
14713
+ this._deferredInterrupt = false;
14702
14714
  this._yielded = void 0;
14703
14715
  return yielded;
14716
+ } else if (this._deferredInterrupt) {
14717
+ this._yielded = void 0;
14718
+ yielded();
14719
+ continue;
14704
14720
  }
14705
14721
  return Yield;
14706
14722
  }
@@ -14711,11 +14727,15 @@ var FiberImpl = class {
14711
14727
  }
14712
14728
  return this.runLoop(exitDie(error3));
14713
14729
  } finally {
14714
- ;
14730
+ this._running = prevRunning;
14715
14731
  globalThis[currentFiberTypeId] = prevFiber;
14716
14732
  }
14717
14733
  }
14718
14734
  getCont(symbol6) {
14735
+ if (this._deferredInterrupt) {
14736
+ this._deferredInterrupt = false;
14737
+ return deferredInterruptCont;
14738
+ }
14719
14739
  while (true) {
14720
14740
  const op = this._stack.pop();
14721
14741
  if (!op) return void 0;
@@ -14759,13 +14779,21 @@ var FiberImpl = class {
14759
14779
  return this.currentSpan?._tag === "Span" ? this.currentSpan : void 0;
14760
14780
  }
14761
14781
  };
14782
+ var deferredInterruptCont = {
14783
+ [contA](_value, fiber3) {
14784
+ return failCause(fiber3._interruptedCause);
14785
+ },
14786
+ [contE](_cause, fiber3) {
14787
+ return failCause(fiber3._interruptedCause);
14788
+ }
14789
+ };
14762
14790
  var fiberMiddleware = {
14763
14791
  interruptChildren: void 0
14764
14792
  };
14765
14793
  var fiberStackAnnotations = (fiber3) => {
14766
14794
  if (!fiber3.currentStackFrame) return void 0;
14767
14795
  const annotations = /* @__PURE__ */ new Map();
14768
- annotations.set(StackTraceKey.key, fiber3.currentStackFrame);
14796
+ annotations.set(InterruptorStackTrace.key, fiber3.currentStackFrame);
14769
14797
  return makeUnsafe(annotations);
14770
14798
  };
14771
14799
  var fiberInterruptChildren = (fiber3) => {
@@ -14835,6 +14863,10 @@ var fiberJoinAll = (self) => callback((resume) => {
14835
14863
  }
14836
14864
  }));
14837
14865
  }
14866
+ return sync(() => {
14867
+ failed = true;
14868
+ cancels.forEach((cancel) => cancel());
14869
+ });
14838
14870
  });
14839
14871
  var fiberInterrupt = (self) => withFiber((fiber3) => fiberInterruptAs(self, fiber3.id));
14840
14872
  var fiberInterruptAs = /* @__PURE__ */ dual((args2) => hasProperty(args2[0], FiberTypeId), (self, fiberId3, annotations) => withFiber((parent) => {
@@ -14845,15 +14877,21 @@ var fiberInterruptAs = /* @__PURE__ */ dual((args2) => hasProperty(args2[0], Fib
14845
14877
  }));
14846
14878
  var fiberInterruptAll = (fibers) => withFiber((parent) => {
14847
14879
  const annotations = fiberStackAnnotations(parent);
14880
+ let fiberArr = empty2();
14848
14881
  for (const fiber3 of fibers) {
14849
14882
  fiber3.interruptUnsafe(parent.id, annotations);
14883
+ fiberArr.push(fiber3);
14850
14884
  }
14851
- return asVoid2(fiberAwaitAll(fibers));
14885
+ return asVoid2(fiberAwaitAll(fiberArr));
14852
14886
  });
14853
14887
  var fiberInterruptAllAs = /* @__PURE__ */ dual(2, (fibers, fiberId3) => withFiber((parent) => {
14854
14888
  const annotations = fiberStackAnnotations(parent);
14855
- for (const fiber3 of fibers) fiber3.interruptUnsafe(fiberId3, annotations);
14856
- return asVoid2(fiberAwaitAll(fibers));
14889
+ const fiberArr = empty2();
14890
+ for (const fiber3 of fibers) {
14891
+ fiber3.interruptUnsafe(fiberId3, annotations);
14892
+ fiberArr.push(fiber3);
14893
+ }
14894
+ return asVoid2(fiberAwaitAll(fiberArr));
14857
14895
  }));
14858
14896
  var succeed3 = exitSucceed;
14859
14897
  var failCause = exitFailCause;
@@ -15754,12 +15792,14 @@ var setInterruptible = /* @__PURE__ */ makePrimitive({
15754
15792
  });
15755
15793
  var setInterruptibleTrue = /* @__PURE__ */ setInterruptible(true);
15756
15794
  var setInterruptibleFalse = /* @__PURE__ */ setInterruptible(false);
15757
- var interruptible = (self) => withFiber((fiber3) => {
15758
- if (fiber3.interruptible) return self;
15795
+ var setFiberInterruptible = (fiber3) => {
15759
15796
  fiber3.interruptible = true;
15760
15797
  fiber3._stack.push(setInterruptibleFalse);
15761
15798
  if (fiber3._interruptedCause) return failCause(fiber3._interruptedCause);
15762
- return self;
15799
+ };
15800
+ var interruptible = (self) => withFiber((fiber3) => {
15801
+ if (fiber3.interruptible) return self;
15802
+ return setFiberInterruptible(fiber3) ?? self;
15763
15803
  });
15764
15804
  var uninterruptibleMask = (f) => withFiber((fiber3) => {
15765
15805
  if (!fiber3.interruptible) return f(identity);
@@ -15769,9 +15809,9 @@ var uninterruptibleMask = (f) => withFiber((fiber3) => {
15769
15809
  });
15770
15810
  var interruptibleMask = (f) => withFiber((fiber3) => {
15771
15811
  if (fiber3.interruptible) return f(identity);
15772
- fiber3.interruptible = true;
15773
- fiber3._stack.push(setInterruptibleFalse);
15774
- return f(uninterruptible);
15812
+ const interrupted = setFiberInterruptible(fiber3);
15813
+ const effect = f(uninterruptible);
15814
+ return interrupted ?? effect;
15775
15815
  });
15776
15816
  var abortSignal = /* @__PURE__ */ map5(/* @__PURE__ */ acquireRelease(/* @__PURE__ */ sync(() => new AbortController()), (controller) => sync(() => controller.abort())), (_) => _.signal);
15777
15817
  var all3 = (arg, options) => {
@@ -15791,6 +15831,22 @@ var all3 = (arg, options) => {
15791
15831
  });
15792
15832
  };
15793
15833
  var partition2 = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, f, options) => map5(forEach2(elements, (a, i) => result(f(a, i)), options), (results) => partition(results, identity)));
15834
+ var reduce2 = /* @__PURE__ */ dual(3, (elements, zero3, f) => {
15835
+ const arr = fromIterable2(elements);
15836
+ if (arr.length === 0) return sync(zero3);
15837
+ return suspend(() => {
15838
+ let index2 = 0;
15839
+ let state = zero3();
15840
+ return map5(whileLoop({
15841
+ while: () => index2 < arr.length,
15842
+ body: () => f(state, arr[index2], index2),
15843
+ step(next2) {
15844
+ state = next2;
15845
+ index2++;
15846
+ }
15847
+ }), () => state);
15848
+ });
15849
+ });
15794
15850
  var validate = /* @__PURE__ */ dual((args2) => isIterable(args2[0]) && !isEffect(args2[0]), (elements, f, options) => flatMap4(partition2(elements, f, {
15795
15851
  concurrency: options?.concurrency
15796
15852
  }), ([excluded, satisfying]) => {
@@ -15894,6 +15950,7 @@ var iterateEagerImpl = (options) => {
15894
15950
  let index2 = opts?.start ?? 0;
15895
15951
  const end = opts?.end ?? items2.length;
15896
15952
  const concurrency = opts?.concurrency ?? 1;
15953
+ const orderedStep = opts?.orderedStep === true && concurrency > 1;
15897
15954
  let done4 = false;
15898
15955
  let parentFiber;
15899
15956
  let fibers;
@@ -15901,26 +15958,54 @@ var iterateEagerImpl = (options) => {
15901
15958
  let interrupted = false;
15902
15959
  let terminal;
15903
15960
  let effect;
15961
+ let nextIndex = index2;
15962
+ const exits = orderedStep ? new Array(end) : void 0;
15963
+ const failDefect = (error3) => {
15964
+ const defect = exitDie(error3);
15965
+ terminal = defect;
15966
+ done4 = true;
15967
+ interrupted = true;
15968
+ return fibers && fibers.size > 0 ? flatMap4(uninterruptible(fiberInterruptAll(Array.from(fibers))), () => defect) : defect;
15969
+ };
15970
+ const runStep = (item, exit3, currentIndex) => {
15971
+ if (!orderedStep) return step(state, item, exit3, currentIndex);
15972
+ if (terminal) return terminal;
15973
+ exits[currentIndex] = exit3;
15974
+ while (nextIndex < end) {
15975
+ const nextExit = exits[nextIndex];
15976
+ if (nextExit === void 0) return;
15977
+ exits[nextIndex] = void 0;
15978
+ const index3 = nextIndex++;
15979
+ const result5 = step(state, items2[index3], nextExit, index3);
15980
+ if (result5) return result5;
15981
+ }
15982
+ };
15904
15983
  const go = () => {
15905
15984
  let paused = false;
15906
15985
  for (; !terminal && index2 < end; index2++) {
15907
15986
  const item = items2[index2];
15908
15987
  const eff = effect ?? onItem(state, item, index2);
15909
15988
  if (effectIsExit(eff)) {
15910
- terminal = step(state, item, eff, index2);
15989
+ terminal = runStep(item, eff, index2);
15911
15990
  if (terminal) break;
15912
15991
  } else if (concurrency === 1) {
15913
15992
  return flatMap4(exit(eff), (exit3) => {
15914
- terminal = step(state, item, exit3, index2);
15993
+ terminal = runStep(item, exit3, index2);
15915
15994
  index2++;
15916
15995
  return terminal ?? go() ?? void_2;
15917
15996
  });
15918
15997
  } else if (!parentFiber) {
15919
15998
  return callback((cb) => {
15920
15999
  parentFiber = getCurrentFiber();
16000
+ fibers = /* @__PURE__ */ new Set();
15921
16001
  effect = eff;
15922
16002
  resume = cb;
15923
- const result5 = go();
16003
+ let result5;
16004
+ try {
16005
+ result5 = go();
16006
+ } catch (error3) {
16007
+ return cb(failDefect(error3));
16008
+ }
15924
16009
  if (result5) return cb(result5);
15925
16010
  return suspend(() => {
15926
16011
  terminal = exitVoid;
@@ -15932,39 +16017,42 @@ var iterateEagerImpl = (options) => {
15932
16017
  effect = void 0;
15933
16018
  const fiber3 = forkUnsafe(parentFiber, eff, true, true, "inherit");
15934
16019
  if (fiber3._exit) {
15935
- terminal = step(state, item, fiber3._exit, index2);
16020
+ terminal = runStep(item, fiber3._exit, index2);
15936
16021
  if (terminal) break;
15937
16022
  continue;
15938
16023
  }
15939
- if (fibers) fibers.add(fiber3);
15940
- else fibers = /* @__PURE__ */ new Set([fiber3]);
16024
+ fibers.add(fiber3);
15941
16025
  const currentIndex = index2;
15942
16026
  fiber3.addObserver((exit3) => {
15943
16027
  fibers.delete(fiber3);
15944
- if (terminal) {
15945
- if (!interrupted && exit3._tag === "Failure") {
15946
- for (const reason of exit3.cause.reasons) {
15947
- if (reason._tag === "Interrupt") continue;
15948
- else if (terminal._tag === "Failure") {
15949
- ;
15950
- terminal.cause.reasons.push(reason);
15951
- } else {
15952
- terminal = exitFailCause(causeFromReasons([reason]));
16028
+ try {
16029
+ if (terminal) {
16030
+ if (!interrupted && exit3._tag === "Failure") {
16031
+ for (const reason of exit3.cause.reasons) {
16032
+ if (reason._tag === "Interrupt") continue;
16033
+ else if (terminal._tag === "Failure") {
16034
+ ;
16035
+ terminal.cause.reasons.push(reason);
16036
+ } else {
16037
+ terminal = exitFailCause(causeFromReasons([reason]));
16038
+ }
15953
16039
  }
15954
16040
  }
16041
+ } else {
16042
+ const result5 = runStep(item, exit3, currentIndex);
16043
+ if (result5) {
16044
+ terminal = result5._tag === "Failure" ? exitFailCause(causeFromReasons(result5.cause.reasons.slice())) : result5;
16045
+ go();
16046
+ }
15955
16047
  }
15956
- } else {
15957
- const result5 = step(state, item, exit3, currentIndex);
15958
- if (result5) {
15959
- terminal = result5._tag === "Failure" ? exitFailCause(causeFromReasons(result5.cause.reasons.slice())) : result5;
15960
- go();
16048
+ if (paused) {
16049
+ const eff2 = go();
16050
+ if (eff2) resume(eff2);
16051
+ } else if (done4 && fibers.size === 0) {
16052
+ resume(terminal ?? void_2);
15961
16053
  }
15962
- }
15963
- if (paused) {
15964
- const eff2 = go();
15965
- if (eff2) resume(eff2);
15966
- } else if (done4 && fibers.size === 0) {
15967
- resume(terminal ?? void_2);
16054
+ } catch (error3) {
16055
+ resume(failDefect(error3));
15968
16056
  }
15969
16057
  });
15970
16058
  if (fibers.size < concurrency) continue;
@@ -16075,13 +16163,13 @@ var forkUnsafe = (parent, effect, immediate = false, daemon = false, uninterrupt
16075
16163
  };
16076
16164
  var forkDetach = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, options) => withFiber((fiber3) => succeed3(forkUnsafe(fiber3, self, options?.startImmediately, true, options?.uninterruptible))));
16077
16165
  var awaitAllChildren = (self) => withFiber((fiber3) => {
16078
- const initialChildren = fiber3._children && fromIterable2(fiber3._children);
16166
+ const initialChildren = fiber3._children && new Set(fiber3._children);
16079
16167
  return onExit(self, (_) => {
16080
16168
  let children = fiber3._children;
16081
16169
  if (children === void 0 || children.size === 0) {
16082
16170
  return void_2;
16083
16171
  } else if (initialChildren) {
16084
- children = filter2(children, (child) => !initialChildren.includes(child));
16172
+ children = filter2(children, (child) => !initialChildren.has(child));
16085
16173
  }
16086
16174
  return asVoid2(fiberAwaitAll(children));
16087
16175
  });
@@ -16175,7 +16263,7 @@ var runSyncExitWith = (context4) => {
16175
16263
  const fiber3 = runFork3(effect, {
16176
16264
  scheduler: scheduler2
16177
16265
  });
16178
- fiber3.currentDispatcher?.flush();
16266
+ fiber3._dispatcher?.flush();
16179
16267
  return fiber3._exit ?? exitDie(new AsyncFiberError(fiber3));
16180
16268
  };
16181
16269
  };
@@ -16444,11 +16532,14 @@ var ClockImpl = class {
16444
16532
  }
16445
16533
  currentTimeNanos = /* @__PURE__ */ sync(() => this.currentTimeNanosUnsafe());
16446
16534
  sleep(duration4) {
16447
- const millis2 = toMillis(duration4);
16535
+ return this.sleepMillis(toMillis(duration4));
16536
+ }
16537
+ sleepMillis(millis2) {
16448
16538
  if (millis2 <= 0) return yieldNow;
16539
+ else if (!Number.isFinite(millis2)) return never;
16449
16540
  return callback((resume) => {
16450
- if (millis2 > MAX_TIMER_MILLIS) return;
16451
- const handle = setTimeout(() => resume(void_2), millis2);
16541
+ const continuation = millis2 > MAX_TIMER_MILLIS ? this.sleepMillis(millis2 - MAX_TIMER_MILLIS) : void_2;
16542
+ const handle = setTimeout(() => resume(continuation), Math.min(millis2, MAX_TIMER_MILLIS));
16452
16543
  return sync(() => clearTimeout(handle));
16453
16544
  });
16454
16545
  }
@@ -16733,7 +16824,7 @@ var reportCauseUnsafe = (fiber3, cause, defectsOnly) => {
16733
16824
  reporters.forEach((reporter) => reporter.report(opts));
16734
16825
  };
16735
16826
 
16736
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Cause.js
16827
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Cause.js
16737
16828
  var isCause2 = isCause;
16738
16829
  var isReason = isCauseReason;
16739
16830
  var isFailReason2 = isFailReason;
@@ -16749,7 +16840,7 @@ var isDone2 = isDone;
16749
16840
  var done2 = done;
16750
16841
  var IllegalArgumentError2 = IllegalArgumentError;
16751
16842
 
16752
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Effect.js
16843
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Effect.js
16753
16844
  var Effect_exports = {};
16754
16845
  __export(Effect_exports, {
16755
16846
  Do: () => Do4,
@@ -16888,6 +16979,7 @@ __export(Effect_exports, {
16888
16979
  raceAll: () => raceAll2,
16889
16980
  raceAllFirst: () => raceAllFirst2,
16890
16981
  raceFirst: () => raceFirst2,
16982
+ reduce: () => reduce3,
16891
16983
  repeat: () => repeat2,
16892
16984
  repeatOrElse: () => repeatOrElse2,
16893
16985
  replicate: () => replicate3,
@@ -16980,7 +17072,7 @@ __export(Effect_exports, {
16980
17072
  zipWith: () => zipWith4
16981
17073
  });
16982
17074
 
16983
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Exit.js
17075
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Exit.js
16984
17076
  var Exit_exports = {};
16985
17077
  __export(Exit_exports, {
16986
17078
  asVoid: () => asVoid3,
@@ -17039,7 +17131,7 @@ var getSuccess3 = exitGetSuccess;
17039
17131
  var getCause = exitGetCause;
17040
17132
  var findErrorOption2 = exitFindErrorOption;
17041
17133
 
17042
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Deferred.js
17134
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Deferred.js
17043
17135
  var Deferred_exports = {};
17044
17136
  __export(Deferred_exports, {
17045
17137
  await: () => _await,
@@ -17123,16 +17215,16 @@ var doneUnsafe = (self, effect) => {
17123
17215
  };
17124
17216
  var into = /* @__PURE__ */ dual(2, (self, deferred) => uninterruptibleMask((restore) => flatMap4(exit(restore(self)), (exit3) => done3(deferred, exit3))));
17125
17217
 
17126
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/References.js
17218
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/References.js
17127
17219
  var CurrentLogAnnotations2 = CurrentLogAnnotations;
17128
17220
  var CurrentLogSpans2 = CurrentLogSpans;
17129
17221
 
17130
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Scope.js
17222
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Scope.js
17131
17223
  var makeUnsafe3 = scopeMakeUnsafe;
17132
17224
  var forkUnsafe2 = scopeForkUnsafe;
17133
17225
  var close = scopeClose;
17134
17226
 
17135
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Layer.js
17227
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Layer.js
17136
17228
  var TypeId7 = "~effect/Layer";
17137
17229
  var MemoMapTypeId = "~effect/Layer/MemoMap";
17138
17230
  var memoMapReuse = (entry, scope3) => {
@@ -17225,7 +17317,7 @@ var mergeAll2 = (...layers) => fromBuild((memoMap, scope3) => mergeAllEffect(lay
17225
17317
  var provideWith = (self, that, f) => fromBuild((memoMap, scope3) => flatMap4(Array.isArray(that) ? mergeAllEffect(that, memoMap, scope3) : that.build(memoMap, scope3), (context4) => self.build(memoMap, scope3).pipe(provideContext(context4), map5((merged) => f(merged, context4)))));
17226
17318
  var provide2 = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, that, identity));
17227
17319
 
17228
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/ExecutionPlan.js
17320
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/ExecutionPlan.js
17229
17321
  var TypeId8 = "~effect/ExecutionPlan";
17230
17322
  var Proto2 = {
17231
17323
  [TypeId8]: TypeId8,
@@ -17252,7 +17344,7 @@ var CurrentMetadata = /* @__PURE__ */ Reference("effect/ExecutionPlan/CurrentMet
17252
17344
  })
17253
17345
  });
17254
17346
 
17255
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Schedule.js
17347
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Schedule.js
17256
17348
  var Schedule_exports = {};
17257
17349
  __export(Schedule_exports, {
17258
17350
  CurrentMetadata: () => CurrentMetadata2,
@@ -17288,7 +17380,7 @@ __export(Schedule_exports, {
17288
17380
  windowed: () => windowed
17289
17381
  });
17290
17382
 
17291
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Data.js
17383
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Data.js
17292
17384
  var Class3 = class extends Class {
17293
17385
  constructor(props) {
17294
17386
  super();
@@ -17299,7 +17391,7 @@ var Class3 = class extends Class {
17299
17391
  };
17300
17392
  var TaggedError2 = TaggedError;
17301
17393
 
17302
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/dateTime.js
17394
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/dateTime.js
17303
17395
  var TypeId9 = "~effect/time/DateTime";
17304
17396
  var TimeZoneTypeId = "~effect/time/DateTime/TimeZone";
17305
17397
  var Proto3 = {
@@ -17705,40 +17797,60 @@ var formatIsoOffset = (self) => {
17705
17797
  };
17706
17798
  var formatIsoZoned = (self) => self.zone._tag === "Offset" ? formatIsoOffset(self) : `${formatIsoOffset(self)}[${self.zone.id}]`;
17707
17799
 
17708
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Number.js
17800
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Number.js
17709
17801
  var Number3 = globalThis.Number;
17710
17802
  var Order4 = Number2;
17711
17803
  var remainder = /* @__PURE__ */ dual(2, (self, divisor) => {
17712
- const selfDecCount = decimalCount(self);
17713
- const divisorDecCount = decimalCount(divisor);
17804
+ const selfString = self.toString();
17805
+ const divisorString = divisor.toString();
17806
+ if (selfString.includes("e") || divisorString.includes("e")) {
17807
+ if (!globalThis.Number.isFinite(self) || !globalThis.Number.isFinite(divisor) || divisor === 0) {
17808
+ return NaN;
17809
+ }
17810
+ return remainderWithScientificNotation(self, divisor);
17811
+ }
17812
+ const selfDecCount = (selfString.split(".")[1] || "").length;
17813
+ const divisorDecCount = (divisorString.split(".")[1] || "").length;
17714
17814
  const decCount = selfDecCount > divisorDecCount ? selfDecCount : divisorDecCount;
17715
17815
  const selfInt = parseInt(self.toFixed(decCount).replace(".", ""));
17716
17816
  const divisorInt = parseInt(divisor.toFixed(decCount).replace(".", ""));
17717
17817
  return selfInt % divisorInt / Math.pow(10, decCount);
17718
17818
  });
17719
- function decimalCount(n) {
17720
- const s = n.toString();
17721
- const eIndex = s.indexOf("e-");
17722
- if (eIndex !== -1) {
17723
- const exp = parseInt(s.slice(eIndex + 2));
17724
- const mantissaDecimals = (s.slice(0, eIndex).split(".")[1] || "").length;
17725
- return mantissaDecimals + exp;
17726
- }
17727
- return (s.split(".")[1] || "").length;
17819
+ function remainderWithScientificNotation(self, divisor) {
17820
+ const [selfCoefficient, selfExponent] = toScientificInteger(self);
17821
+ const [divisorCoefficient, divisorExponent] = toScientificInteger(divisor);
17822
+ const exponent = Math.min(selfExponent, divisorExponent);
17823
+ const selfInteger = selfCoefficient * BigInt(10) ** BigInt(selfExponent - exponent);
17824
+ const divisorInteger = divisorCoefficient * BigInt(10) ** BigInt(divisorExponent - exponent);
17825
+ const out = selfInteger % divisorInteger;
17826
+ if (out === BigInt(0)) {
17827
+ return self < 0 || Object.is(self, -0) ? -0 : 0;
17828
+ }
17829
+ const remainder2 = globalThis.Number(`${out}e${exponent}`);
17830
+ return remainder2 === 0 ? Math.sign(self) * globalThis.Number.MIN_VALUE : remainder2;
17831
+ }
17832
+ function toScientificInteger(n) {
17833
+ const scientific = Math.abs(n).toExponential();
17834
+ const eIndex = scientific.indexOf("e");
17835
+ const digits = scientific.slice(0, eIndex).replace(".", "");
17836
+ const coefficient = BigInt(digits) * (n < 0 ? -BigInt(1) : BigInt(1));
17837
+ return [coefficient, globalThis.Number(scientific.slice(eIndex + 1)) - digits.length + 1];
17728
17838
  }
17729
17839
  var ReducerMax = /* @__PURE__ */ make((a, b) => Math.max(a, b), -Infinity);
17730
17840
  var ReducerMin = /* @__PURE__ */ make((a, b) => Math.min(a, b), Infinity);
17731
17841
 
17732
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/String.js
17842
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/String.js
17733
17843
  var String2 = globalThis.String;
17844
+ var toLowerCase = (self) => self.toLowerCase();
17734
17845
  var trim = (self) => self.trim();
17735
17846
  var isNonEmpty = (self) => self.length > 0;
17736
17847
 
17737
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Cron.js
17848
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Cron.js
17738
17849
  var TypeId10 = "~effect/time/Cron";
17739
17850
  function toPojo(cron2) {
17740
- return {
17851
+ const out = {
17741
17852
  tz: cron2.tz,
17853
+ and: cron2.and,
17742
17854
  seconds: fromIterable2(cron2.seconds),
17743
17855
  minutes: fromIterable2(cron2.minutes),
17744
17856
  hours: fromIterable2(cron2.hours),
@@ -17746,6 +17858,7 @@ function toPojo(cron2) {
17746
17858
  months: fromIterable2(cron2.months),
17747
17859
  weekdays: fromIterable2(cron2.weekdays)
17748
17860
  };
17861
+ return out;
17749
17862
  }
17750
17863
  var CronProto = {
17751
17864
  [TypeId10]: TypeId10,
@@ -17756,15 +17869,7 @@ var CronProto = {
17756
17869
  return pipe(hash(this.tz), combine(hash(this.and)), combine(array(fromIterable2(this.seconds))), combine(array(fromIterable2(this.minutes))), combine(array(fromIterable2(this.hours))), combine(array(fromIterable2(this.days))), combine(array(fromIterable2(this.months))), combine(array(fromIterable2(this.weekdays))));
17757
17870
  },
17758
17871
  toObject() {
17759
- return {
17760
- tz: this.tz,
17761
- seconds: fromIterable2(this.seconds),
17762
- minutes: fromIterable2(this.minutes),
17763
- hours: fromIterable2(this.hours),
17764
- days: fromIterable2(this.days),
17765
- months: fromIterable2(this.months),
17766
- weekdays: fromIterable2(this.weekdays)
17767
- };
17872
+ return toPojo(this);
17768
17873
  },
17769
17874
  toString() {
17770
17875
  return `Cron(${format(toPojo(this))})`;
@@ -17784,12 +17889,12 @@ var CronProto = {
17784
17889
  var isCron = (u) => hasProperty(u, TypeId10);
17785
17890
  var make13 = (values3) => {
17786
17891
  const o = Object.create(CronProto);
17787
- o.seconds = new Set(sort(values3.seconds ?? [0], Order4));
17788
- o.minutes = new Set(sort(values3.minutes, Order4));
17789
- o.hours = new Set(sort(values3.hours, Order4));
17790
- o.days = new Set(sort(values3.days, Order4));
17791
- o.months = new Set(sort(values3.months, Order4));
17792
- o.weekdays = new Set(sort(values3.weekdays, Order4));
17892
+ o.seconds = restrictions.seconds(values3.seconds ?? [0]);
17893
+ o.minutes = restrictions.minutes(values3.minutes);
17894
+ o.hours = restrictions.hours(values3.hours);
17895
+ o.days = restrictions.days(values3.days);
17896
+ o.months = restrictions.months(values3.months);
17897
+ o.weekdays = restrictions.weekdays(values3.weekdays);
17793
17898
  o.and = values3.and === true;
17794
17899
  o.tz = fromUndefinedOr(values3.tz);
17795
17900
  const seconds2 = Array.from(o.seconds);
@@ -17815,24 +17920,42 @@ var make13 = (values3) => {
17815
17920
  weekday: weekdays[weekdays.length - 1] ?? 6
17816
17921
  };
17817
17922
  o.next = {
17818
- second: lookupTable(seconds2, 60, "next"),
17819
- minute: lookupTable(minutes2, 60, "next"),
17820
- hour: lookupTable(hours2, 24, "next"),
17821
- day: lookupTable(days2, 32, "next"),
17822
- month: lookupTable(months, 13, "next"),
17823
- weekday: lookupTable(weekdays, 7, "next")
17923
+ second: lookup.next.second(seconds2),
17924
+ minute: lookup.next.minute(minutes2),
17925
+ hour: lookup.next.hour(hours2),
17926
+ day: lookup.next.day(days2),
17927
+ month: lookup.next.month(months),
17928
+ weekday: lookup.next.weekday(weekdays)
17824
17929
  };
17825
17930
  o.prev = {
17826
- second: lookupTable(seconds2, 60, "prev"),
17827
- minute: lookupTable(minutes2, 60, "prev"),
17828
- hour: lookupTable(hours2, 24, "prev"),
17829
- day: lookupTable(days2, 32, "prev"),
17830
- month: lookupTable(months, 13, "prev"),
17831
- weekday: lookupTable(weekdays, 7, "prev")
17931
+ second: lookup.prev.second(seconds2),
17932
+ minute: lookup.prev.minute(minutes2),
17933
+ hour: lookup.prev.hour(hours2),
17934
+ day: lookup.prev.day(days2),
17935
+ month: lookup.prev.month(months),
17936
+ weekday: lookup.prev.weekday(weekdays)
17832
17937
  };
17833
17938
  return o;
17834
17939
  };
17835
- var lookupTable = (values3, size6, dir2) => {
17940
+ var makeRestrictions = (field, min8, max8, normalize2 = (value5) => value5) => (values3) => {
17941
+ const restrictions2 = [];
17942
+ for (const value5 of values3) {
17943
+ if (!Number.isInteger(value5) || value5 < min8 || value5 > max8) {
17944
+ throw new RangeError(`${field} must contain only integers between ${min8} and ${max8}`);
17945
+ }
17946
+ restrictions2.push(normalize2(value5));
17947
+ }
17948
+ return new Set(sort(restrictions2, Order4));
17949
+ };
17950
+ var restrictions = {
17951
+ seconds: /* @__PURE__ */ makeRestrictions("seconds", 0, 59),
17952
+ minutes: /* @__PURE__ */ makeRestrictions("minutes", 0, 59),
17953
+ hours: /* @__PURE__ */ makeRestrictions("hours", 0, 23),
17954
+ days: /* @__PURE__ */ makeRestrictions("days", 1, 31),
17955
+ months: /* @__PURE__ */ makeRestrictions("months", 1, 12),
17956
+ weekdays: /* @__PURE__ */ makeRestrictions("weekdays", 0, 7, (value5) => value5 === 7 ? 0 : value5)
17957
+ };
17958
+ var makeLookupTable = (size6, dir2) => (values3) => {
17836
17959
  const result5 = new Array(size6).fill(void 0);
17837
17960
  if (values3.length === 0) {
17838
17961
  return result5;
@@ -17857,6 +17980,24 @@ var lookupTable = (values3, size6, dir2) => {
17857
17980
  }
17858
17981
  return result5;
17859
17982
  };
17983
+ var lookup = {
17984
+ prev: {
17985
+ second: /* @__PURE__ */ makeLookupTable(60, "prev"),
17986
+ minute: /* @__PURE__ */ makeLookupTable(60, "prev"),
17987
+ hour: /* @__PURE__ */ makeLookupTable(24, "prev"),
17988
+ day: /* @__PURE__ */ makeLookupTable(32, "prev"),
17989
+ month: /* @__PURE__ */ makeLookupTable(13, "prev"),
17990
+ weekday: /* @__PURE__ */ makeLookupTable(7, "prev")
17991
+ },
17992
+ next: {
17993
+ second: /* @__PURE__ */ makeLookupTable(60, "next"),
17994
+ minute: /* @__PURE__ */ makeLookupTable(60, "next"),
17995
+ hour: /* @__PURE__ */ makeLookupTable(24, "next"),
17996
+ day: /* @__PURE__ */ makeLookupTable(32, "next"),
17997
+ month: /* @__PURE__ */ makeLookupTable(13, "next"),
17998
+ weekday: /* @__PURE__ */ makeLookupTable(7, "next")
17999
+ }
18000
+ };
17860
18001
  var CronParseErrorTypeId = "~effect/time/Cron/CronParseError";
17861
18002
  var CronParseError = class extends (/* @__PURE__ */ TaggedError2("CronParseError")) {
17862
18003
  [CronParseErrorTypeId] = CronParseErrorTypeId;
@@ -17993,7 +18134,7 @@ var stepCron = (cron2, now2, direction) => {
17993
18134
  const currentWeekday = current.getUTCDay();
17994
18135
  const nextWeekday = table2.weekday[currentWeekday];
17995
18136
  if (nextWeekday === void 0) {
17996
- a = reverse2 ? currentWeekday - 7 + boundary.weekday : 7 - currentWeekday + boundary.weekday;
18137
+ a = reverse2 ? boundary.weekday - 7 - currentWeekday : 7 - currentWeekday + boundary.weekday;
17997
18138
  } else {
17998
18139
  a = nextWeekday - currentWeekday;
17999
18140
  }
@@ -18003,8 +18144,18 @@ var stepCron = (cron2, now2, direction) => {
18003
18144
  const nextDay = table2.day[currentDay];
18004
18145
  if (nextDay === void 0) {
18005
18146
  if (reverse2) {
18006
- const prevMonthDays = daysInMonth(new Date(Date.UTC(current.getUTCFullYear(), current.getUTCMonth(), 0)));
18007
- b = -(currentDay + (prevMonthDays - boundary.day));
18147
+ const previous = new Date(current);
18148
+ previous.setUTCDate(0);
18149
+ let day = table2.day[previous.getUTCDate()];
18150
+ if (day === void 0) {
18151
+ previous.setUTCDate(0);
18152
+ day = table2.day[previous.getUTCDate()];
18153
+ }
18154
+ if (day === void 0) {
18155
+ throw new Error("Unable to find cron date");
18156
+ }
18157
+ previous.setUTCDate(day);
18158
+ b = (previous.getTime() - current.getTime()) / 864e5;
18008
18159
  } else {
18009
18160
  b = daysInMonth(current) - currentDay + boundary.day;
18010
18161
  }
@@ -18027,10 +18178,10 @@ var stepCron = (cron2, now2, direction) => {
18027
18178
  const currentMonth = current.getUTCMonth() + 1;
18028
18179
  const nextMonth = table2.month[currentMonth];
18029
18180
  const clampBoundaryDay = (targetMonthIndex) => {
18181
+ const maxDayInMonth = daysInMonth(new Date(Date.UTC(current.getUTCFullYear(), targetMonthIndex + 1, 0)));
18030
18182
  if (cron2.days.size !== 0 && cron2.weekdays.size === 0) {
18031
- return boundary.day;
18183
+ return reverse2 ? table2.day[maxDayInMonth] ?? maxDayInMonth : boundary.day;
18032
18184
  }
18033
- const maxDayInMonth = daysInMonth(new Date(Date.UTC(current.getUTCFullYear(), targetMonthIndex + 1, 0)));
18034
18185
  return reverse2 ? maxDayInMonth : 1;
18035
18186
  };
18036
18187
  if (nextMonth === void 0) {
@@ -18050,11 +18201,11 @@ var stepCron = (cron2, now2, direction) => {
18050
18201
  }
18051
18202
  return;
18052
18203
  }
18053
- throw new Error("Unable to find " + direction + " cron date");
18204
+ throw new Error("Unable to find cron date");
18054
18205
  });
18055
18206
  return toDateUtc(result5);
18056
18207
  };
18057
- var Equivalence4 = /* @__PURE__ */ make2((self, that) => self.and === that.and && restrictionsEquals(self.seconds, that.seconds) && restrictionsEquals(self.minutes, that.minutes) && restrictionsEquals(self.hours, that.hours) && restrictionsEquals(self.days, that.days) && restrictionsEquals(self.months, that.months) && restrictionsEquals(self.weekdays, that.weekdays));
18208
+ var Equivalence4 = /* @__PURE__ */ make2((self, that) => equals(self.tz, that.tz) && self.and === that.and && restrictionsEquals(self.seconds, that.seconds) && restrictionsEquals(self.minutes, that.minutes) && restrictionsEquals(self.hours, that.hours) && restrictionsEquals(self.days, that.days) && restrictionsEquals(self.months, that.months) && restrictionsEquals(self.weekdays, that.weekdays));
18058
18209
  var restrictionsArrayEquals = /* @__PURE__ */ Array_(/* @__PURE__ */ strictEqual());
18059
18210
  var restrictionsEquals = (self, that) => restrictionsArrayEquals(fromIterable2(self), fromIterable2(that));
18060
18211
  var equals4 = /* @__PURE__ */ dual(2, (self, that) => Equivalence4(self, that));
@@ -18133,7 +18284,7 @@ var parseSegment = (input, options) => {
18133
18284
  }
18134
18285
  if (step > options.max) {
18135
18286
  return fail2(new CronParseError({
18136
- message: `Expected step value to be less than ${options.max}`,
18287
+ message: `Expected step value to be less than or equal to ${options.max}`,
18137
18288
  input
18138
18289
  }));
18139
18290
  }
@@ -18209,11 +18360,11 @@ var splitRange = (input, aliases) => {
18209
18360
  return [aliasOrValue(input, aliases), void 0];
18210
18361
  };
18211
18362
  function aliasOrValue(field, aliases) {
18212
- return aliases?.[field.toLocaleLowerCase()] ?? (decimalRegex.test(field) ? Number(field) : NaN);
18363
+ return aliases?.[toLowerCase(field)] ?? (decimalRegex.test(field) ? Number(field) : NaN);
18213
18364
  }
18214
18365
  var decimalRegex = /^\d+$/;
18215
18366
 
18216
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/random.js
18367
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/random.js
18217
18368
  var Random = /* @__PURE__ */ Reference("effect/Random", {
18218
18369
  defaultValue: () => ({
18219
18370
  nextIntUnsafe() {
@@ -18225,7 +18376,7 @@ var Random = /* @__PURE__ */ Reference("effect/Random", {
18225
18376
  })
18226
18377
  });
18227
18378
 
18228
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Pull.js
18379
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Pull.js
18229
18380
  var catchDone = /* @__PURE__ */ dual(2, (effect, f) => catchCauseFilter(effect, filterDoneLeftover, (l) => f(l)));
18230
18381
  var filterDone = /* @__PURE__ */ composePassthrough(findError2, (e) => isDone2(e) ? succeed2(e) : fail2(e));
18231
18382
  var filterDoneLeftover = /* @__PURE__ */ composePassthrough(findError2, (e) => isDone2(e) ? succeed2(e.value) : fail2(e));
@@ -18237,7 +18388,7 @@ var matchEffect2 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
18237
18388
  }
18238
18389
  }));
18239
18390
 
18240
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Schedule.js
18391
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Schedule.js
18241
18392
  var TypeId11 = "~effect/Schedule";
18242
18393
  var randomNext = /* @__PURE__ */ Random.useSync((random2) => random2.nextDoubleUnsafe());
18243
18394
  var CurrentMetadata2 = /* @__PURE__ */ Reference("effect/Schedule/CurrentMetadata", {
@@ -18527,11 +18678,11 @@ var constIdentity = /* @__PURE__ */ fromStep(/* @__PURE__ */ succeed3((_now, inp
18527
18678
  var identity_ = () => constIdentity;
18528
18679
  var setInputType = () => (self) => self;
18529
18680
 
18530
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/layer.js
18681
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/layer.js
18531
18682
  var provideLayer = (self, layer, options) => scopedWith((scope3) => flatMap4(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope3) : buildWithScope(layer, scope3), (context4) => provideContext(self, context4)));
18532
18683
  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));
18533
18684
 
18534
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/schedule.js
18685
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/schedule.js
18535
18686
  var repeatOrElse = /* @__PURE__ */ dual(3, (self, schedule2, orElse4) => flatMap4(toStepWithMetadata(schedule2), (step) => {
18536
18687
  let meta3 = CurrentMetadata2.defaultValue();
18537
18688
  return catch_(forever(tap2(flatMap4(suspend(() => provideService(self, CurrentMetadata2, meta3)), step), (meta_) => sync(() => {
@@ -18602,7 +18753,7 @@ var buildFromOptions = (options) => {
18602
18753
  return schedule2;
18603
18754
  };
18604
18755
 
18605
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/executionPlan.js
18756
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/executionPlan.js
18606
18757
  var withExecutionPlan = /* @__PURE__ */ dual(2, (self, plan) => suspend(() => {
18607
18758
  let i = 0;
18608
18759
  let meta3 = {
@@ -18661,7 +18812,7 @@ var scheduleFromStep = (step, first) => {
18661
18812
  };
18662
18813
  var scheduleOnce = /* @__PURE__ */ recurs(1);
18663
18814
 
18664
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Request.js
18815
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Request.js
18665
18816
  var TypeId12 = "~effect/Request";
18666
18817
  var requestVariance = /* @__PURE__ */ byReferenceUnsafe({
18667
18818
  /* c8 ignore next */
@@ -18677,7 +18828,7 @@ var RequestPrototype = {
18677
18828
  };
18678
18829
  var makeEntry = (options) => options;
18679
18830
 
18680
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/request.js
18831
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/request.js
18681
18832
  var request = /* @__PURE__ */ dual(2, (self, resolver) => {
18682
18833
  const withResolver = (resolver2) => callback((resume) => {
18683
18834
  const entry = addEntry(resolver2, self, resume, getCurrentFiber());
@@ -18787,7 +18938,7 @@ function runBatch(batch) {
18787
18938
  return batch.run;
18788
18939
  }
18789
18940
 
18790
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Metric.js
18941
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Metric.js
18791
18942
  var CurrentMetricAttributesKey = "effect/Metric/CurrentMetricAttributes";
18792
18943
  var CurrentMetricAttributes = /* @__PURE__ */ Reference(CurrentMetricAttributesKey, {
18793
18944
  defaultValue: () => ({})
@@ -18890,11 +19041,12 @@ function attributesToRecord(attributes) {
18890
19041
  return attributes;
18891
19042
  }
18892
19043
 
18893
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Effect.js
19044
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Effect.js
18894
19045
  var TypeId14 = EffectTypeId;
18895
19046
  var isEffect2 = isEffect;
18896
19047
  var all4 = all3;
18897
19048
  var partition3 = partition2;
19049
+ var reduce3 = reduce2;
18898
19050
  var validate2 = validate;
18899
19051
  var findFirst4 = findFirst3;
18900
19052
  var findFirstFilter2 = findFirstFilter;
@@ -19241,7 +19393,7 @@ var flatMapEager2 = flatMapEager;
19241
19393
  var catchEager2 = catchEager;
19242
19394
  var fnUntracedEager2 = fnUntracedEager;
19243
19395
 
19244
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/record.js
19396
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/record.js
19245
19397
  function set(self, key, value5) {
19246
19398
  if (key === "__proto__") {
19247
19399
  Object.defineProperty(self, key, {
@@ -19256,7 +19408,7 @@ function set(self, key, value5) {
19256
19408
  return self;
19257
19409
  }
19258
19410
 
19259
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/schema/annotations.js
19411
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/schema/annotations.js
19260
19412
  function resolve(ast) {
19261
19413
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
19262
19414
  }
@@ -19272,7 +19424,7 @@ var getExpected = /* @__PURE__ */ memoize((ast) => {
19272
19424
  return ast.getExpected(getExpected);
19273
19425
  });
19274
19426
 
19275
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/redacted.js
19427
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/redacted.js
19276
19428
  var redactedRegistry = /* @__PURE__ */ new WeakMap();
19277
19429
  var value = (self) => {
19278
19430
  if (redactedRegistry.has(self)) {
@@ -19282,7 +19434,7 @@ var value = (self) => {
19282
19434
  }
19283
19435
  };
19284
19436
 
19285
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Redacted.js
19437
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Redacted.js
19286
19438
  var TypeId15 = "~effect/data/Redacted";
19287
19439
  var isRedacted = (u) => hasProperty(u, TypeId15);
19288
19440
  var make14 = (value5, options) => {
@@ -19315,7 +19467,7 @@ var Proto4 = {
19315
19467
  var value2 = value;
19316
19468
  var makeEquivalence4 = (isEquivalent) => make2((x, y) => isEquivalent(value2(x), value2(y)));
19317
19469
 
19318
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/SchemaIssue.js
19470
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/SchemaIssue.js
19319
19471
  var TypeId16 = "~effect/SchemaIssue/Issue";
19320
19472
  function isIssue(u) {
19321
19473
  return hasProperty(u, TypeId16);
@@ -19707,7 +19859,7 @@ function redact2(issue2) {
19707
19859
  }
19708
19860
  }
19709
19861
 
19710
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/schema/cause.js
19862
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/schema/cause.js
19711
19863
  function getSchemaIssue(cause) {
19712
19864
  let issue2;
19713
19865
  for (const reason of cause.reasons) {
@@ -19728,7 +19880,7 @@ function getSchemaIssueOrThrow(cause, message) {
19728
19880
  return issue2;
19729
19881
  }
19730
19882
 
19731
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/DateTime.js
19883
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/DateTime.js
19732
19884
  var isDateTime2 = isDateTime;
19733
19885
  var isTimeZone2 = isTimeZone;
19734
19886
  var isTimeZoneOffset2 = isTimeZoneOffset;
@@ -19752,7 +19904,7 @@ var toEpochMillis2 = toEpochMillis;
19752
19904
  var formatIso2 = formatIso;
19753
19905
  var formatIsoZoned2 = formatIsoZoned;
19754
19906
 
19755
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Encoding.js
19907
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Encoding.js
19756
19908
  var EncodingErrorTypeId = "~effect/encoding/EncodingError";
19757
19909
  var EncodingError = class extends (/* @__PURE__ */ TaggedError2("EncodingError")) {
19758
19910
  /**
@@ -19922,7 +20074,7 @@ var fromHexChar = (byte) => {
19922
20074
  };
19923
20075
  var bytesToHex = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"];
19924
20076
 
19925
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/SchemaGetter.js
20077
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/SchemaGetter.js
19926
20078
  var Getter = class _Getter extends Class {
19927
20079
  run;
19928
20080
  constructor(run2) {
@@ -20125,6 +20277,15 @@ function bracketPathToTokens(bracketPath) {
20125
20277
  const start = replaced.startsWith(".") ? 1 : 0;
20126
20278
  return parts2.slice(start).map((part) => INDEX_REGEXP.test(part) ? globalThis.Number(part) : part);
20127
20279
  }
20280
+ function getOrCreateContainer(self, key, shouldBeArray) {
20281
+ const current = Object.hasOwn(self, key) ? self[key] : void 0;
20282
+ if (current !== void 0) {
20283
+ return current;
20284
+ }
20285
+ const container = shouldBeArray ? [] : {};
20286
+ set(self, key, container);
20287
+ return container;
20288
+ }
20128
20289
  function makeTreeRecord(bracketPathEntries) {
20129
20290
  const out = {};
20130
20291
  bracketPathEntries.forEach(([key, value5]) => {
@@ -20139,26 +20300,21 @@ function makeTreeRecord(bracketPathEntries) {
20139
20300
  const next2 = tokens[i + 1];
20140
20301
  const shouldBeArray = typeof next2 === "number" || next2 === "";
20141
20302
  const index2 = cur.length;
20142
- if (cur[index2] === void 0) {
20143
- cur[index2] = shouldBeArray ? [] : {};
20144
- }
20145
- cur = cur[index2];
20303
+ cur = getOrCreateContainer(cur, index2, shouldBeArray);
20146
20304
  }
20147
20305
  } else if (isLast) {
20148
- if (Array.isArray(cur[token])) {
20306
+ const hasOwn = Object.hasOwn(cur, token);
20307
+ if (hasOwn && Array.isArray(cur[token])) {
20149
20308
  cur[token].push(value5);
20150
- } else if (Object.prototype.hasOwnProperty.call(cur, token)) {
20151
- cur[token] = [cur[token], value5];
20309
+ } else if (hasOwn) {
20310
+ set(cur, token, [cur[token], value5]);
20152
20311
  } else {
20153
- cur[token] = value5;
20312
+ set(cur, token, value5);
20154
20313
  }
20155
20314
  } else {
20156
20315
  const next2 = tokens[i + 1];
20157
20316
  const shouldBeArray = typeof next2 === "number" || next2 === "";
20158
- if (cur[token] === void 0) {
20159
- cur[token] = shouldBeArray ? [] : {};
20160
- }
20161
- cur = cur[token];
20317
+ cur = getOrCreateContainer(cur, token, shouldBeArray);
20162
20318
  }
20163
20319
  });
20164
20320
  });
@@ -20194,7 +20350,7 @@ function collectBracketPathEntries(isLeaf) {
20194
20350
  };
20195
20351
  }
20196
20352
 
20197
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/SchemaTransformation.js
20353
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/SchemaTransformation.js
20198
20354
  var Middleware = class _Middleware {
20199
20355
  _tag = "Middleware";
20200
20356
  decode;
@@ -20433,7 +20589,7 @@ var dateTimeZonedFromString = /* @__PURE__ */ transformOrFail2({
20433
20589
  encode: (zoned) => succeed6(formatIsoZoned2(zoned))
20434
20590
  });
20435
20591
 
20436
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/SchemaAST.js
20592
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/SchemaAST.js
20437
20593
  function makeGuard(tag4) {
20438
20594
  return (ast) => ast._tag === tag4;
20439
20595
  }
@@ -21407,13 +21563,14 @@ function getIndex(types) {
21407
21563
  let idx = candidateIndexCache.get(types);
21408
21564
  if (idx) return idx;
21409
21565
  idx = {};
21410
- for (const a of types) {
21566
+ for (let i = 0; i < types.length; i++) {
21567
+ const a = types[i];
21411
21568
  const encoded = toEncoded(a);
21412
21569
  if (isNever2(encoded)) continue;
21413
- const types2 = getCandidateTypes(encoded);
21570
+ const candidateTypes = getCandidateTypes(encoded);
21414
21571
  const sentinels = collectSentinels(encoded);
21415
21572
  idx.byType ??= {};
21416
- for (const t of types2) (idx.byType[t] ??= []).push(a);
21573
+ for (const t of candidateTypes) (idx.byType[t] ??= []).push(i);
21417
21574
  if (sentinels.length > 0) {
21418
21575
  idx.bySentinel ??= /* @__PURE__ */ new Map();
21419
21576
  for (const {
@@ -21424,11 +21581,11 @@ function getIndex(types) {
21424
21581
  if (!m) idx.bySentinel.set(key, m = /* @__PURE__ */ new Map());
21425
21582
  let arr = m.get(literal2);
21426
21583
  if (!arr) m.set(literal2, arr = []);
21427
- arr.push(a);
21584
+ arr.push(i);
21428
21585
  }
21429
21586
  } else {
21430
21587
  idx.otherwise ??= {};
21431
- for (const t of types2) (idx.otherwise[t] ??= []).push(a);
21588
+ for (const t of candidateTypes) (idx.otherwise[t] ??= []).push(i);
21432
21589
  }
21433
21590
  }
21434
21591
  candidateIndexCache.set(types, idx);
@@ -21446,16 +21603,20 @@ function getCandidates(input, types) {
21446
21603
  if (idx.bySentinel) {
21447
21604
  const base2 = idx.otherwise?.[runtimeType] ?? [];
21448
21605
  if (runtimeType === "object" || runtimeType === "array") {
21606
+ const selected = new Set(base2);
21449
21607
  for (const [k, m] of idx.bySentinel) {
21450
21608
  if (Object.hasOwn(input, k)) {
21451
21609
  const match9 = m.get(input[k]);
21452
- if (match9) return [...match9, ...base2].filter(filterLiterals(input));
21610
+ if (match9) {
21611
+ for (const candidate of match9) selected.add(candidate);
21612
+ }
21453
21613
  }
21454
21614
  }
21615
+ return Array.from(selected).sort((a, b) => a - b).map((i) => types[i]).filter(filterLiterals(input));
21455
21616
  }
21456
- return base2;
21617
+ return base2.map((i) => types[i]);
21457
21618
  }
21458
- return (idx.byType?.[runtimeType] ?? []).filter(filterLiterals(input));
21619
+ return (idx.byType?.[runtimeType] ?? []).map((i) => types[i]).filter(filterLiterals(input));
21459
21620
  }
21460
21621
  var Union = class _Union extends Base2 {
21461
21622
  _tag = "Union";
@@ -21488,7 +21649,10 @@ var Union = class _Union extends Base2 {
21488
21649
  options
21489
21650
  };
21490
21651
  const concurrency = resolveConcurrency(options?.concurrency);
21491
- const eff = parseUnion(state, candidates, concurrency);
21652
+ const eff = parseUnion(state, candidates, concurrency ? {
21653
+ ...concurrency,
21654
+ orderedStep: true
21655
+ } : void 0);
21492
21656
  if (!eff) {
21493
21657
  return state.out ? succeed6(state.out) : fail6(new AnyOf(ast, input, state.issues ?? []));
21494
21658
  }
@@ -22109,8 +22273,15 @@ function isJson(u) {
22109
22273
  if (validated.has(u2)) {
22110
22274
  return true;
22111
22275
  }
22276
+ const isArray2 = Array.isArray(u2);
22277
+ if (!isArray2) {
22278
+ const prototype = Object.getPrototypeOf(u2);
22279
+ if (prototype !== null && Object.getPrototypeOf(prototype) !== null) {
22280
+ return false;
22281
+ }
22282
+ }
22112
22283
  onPath.add(u2);
22113
- const ok = Array.isArray(u2) ? u2.every(recur5) : Object.keys(u2).every((key) => recur5(u2[key]));
22284
+ const ok = isArray2 ? u2.every(recur5) : Object.keys(u2).every((key) => recur5(u2[key]));
22114
22285
  onPath.delete(u2);
22115
22286
  if (ok) {
22116
22287
  validated.add(u2);
@@ -22166,7 +22337,7 @@ var StringTree = /* @__PURE__ */ new Declaration([], () => (input, ast) => isStr
22166
22337
  });
22167
22338
  var unknownToStringTree = /* @__PURE__ */ new Link(StringTree, /* @__PURE__ */ passthrough3());
22168
22339
 
22169
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Chunk.js
22340
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Chunk.js
22170
22341
  var TypeId19 = "~effect/collections/Chunk";
22171
22342
  function copy2(src, srcPos, dest, destPos, len) {
22172
22343
  for (let i = srcPos; i < Math.min(src.length, srcPos + len); i++) {
@@ -22350,7 +22521,7 @@ var getUnsafe3 = /* @__PURE__ */ dual(2, (self, index2) => {
22350
22521
  });
22351
22522
  var size = (self) => self.length;
22352
22523
 
22353
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Fiber.js
22524
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Fiber.js
22354
22525
  var Fiber_exports = {};
22355
22526
  __export(Fiber_exports, {
22356
22527
  await: () => await_,
@@ -22378,7 +22549,7 @@ var isFiber = (u) => hasProperty(u, FiberTypeId);
22378
22549
  var getCurrent = getCurrentFiber;
22379
22550
  var runIn = fiberRunIn;
22380
22551
 
22381
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/MutableRef.js
22552
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/MutableRef.js
22382
22553
  var TypeId21 = "~effect/MutableRef";
22383
22554
  var MutableRefProto = {
22384
22555
  [TypeId21]: TypeId21,
@@ -22400,7 +22571,7 @@ var set2 = /* @__PURE__ */ dual(2, (self, value5) => {
22400
22571
  return self;
22401
22572
  });
22402
22573
 
22403
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Schema.js
22574
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Schema.js
22404
22575
  var Schema_exports = {};
22405
22576
  __export(Schema_exports, {
22406
22577
  Any: () => Any2,
@@ -22679,7 +22850,7 @@ __export(Schema_exports, {
22679
22850
  withDecodingDefaultTypeKey: () => withDecodingDefaultTypeKey
22680
22851
  });
22681
22852
 
22682
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/HashMap.js
22853
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/HashMap.js
22683
22854
  var HashMap_exports = {};
22684
22855
  __export(HashMap_exports, {
22685
22856
  beginMutation: () => beginMutation2,
@@ -22709,7 +22880,7 @@ __export(HashMap_exports, {
22709
22880
  modifyAt: () => modifyAt2,
22710
22881
  modifyHash: () => modifyHash2,
22711
22882
  mutate: () => mutate3,
22712
- reduce: () => reduce3,
22883
+ reduce: () => reduce5,
22713
22884
  remove: () => remove3,
22714
22885
  removeMany: () => removeMany2,
22715
22886
  set: () => set4,
@@ -22722,7 +22893,7 @@ __export(HashMap_exports, {
22722
22893
  values: () => values2
22723
22894
  });
22724
22895
 
22725
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/hashMap.js
22896
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/hashMap.js
22726
22897
  var HashMapTypeId = "~effect/collections/HashMap";
22727
22898
  var SHIFT = 5;
22728
22899
  var BUCKET_SIZE = 1 << SHIFT;
@@ -23501,7 +23672,7 @@ var forEach4 = /* @__PURE__ */ dual(2, (self, f) => {
23501
23672
  f(value5, key);
23502
23673
  }
23503
23674
  });
23504
- var reduce2 = /* @__PURE__ */ dual(3, (self, zero3, f) => {
23675
+ var reduce4 = /* @__PURE__ */ dual(3, (self, zero3, f) => {
23505
23676
  let result5 = zero3;
23506
23677
  for (const [key, value5] of self) {
23507
23678
  result5 = f(result5, value5, key);
@@ -23561,7 +23732,7 @@ var every2 = /* @__PURE__ */ dual(2, (self, predicate) => {
23561
23732
  return true;
23562
23733
  });
23563
23734
 
23564
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/HashMap.js
23735
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/HashMap.js
23565
23736
  var isHashMap2 = isHashMap;
23566
23737
  var empty7 = empty6;
23567
23738
  var make20 = make19;
@@ -23593,7 +23764,7 @@ var setMany2 = setMany;
23593
23764
  var map11 = map10;
23594
23765
  var flatMap7 = flatMap6;
23595
23766
  var forEach5 = forEach4;
23596
- var reduce3 = reduce2;
23767
+ var reduce5 = reduce4;
23597
23768
  var filter8 = filter7;
23598
23769
  var compact2 = compact;
23599
23770
  var filterMap6 = filterMap5;
@@ -23601,7 +23772,7 @@ var findFirst6 = findFirst5;
23601
23772
  var some5 = some4;
23602
23773
  var every3 = every2;
23603
23774
 
23604
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/hashSet.js
23775
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/hashSet.js
23605
23776
  var HashSetTypeId = "~effect/collections/HashSet";
23606
23777
  var HashSetProto = {
23607
23778
  [symbol]() {
@@ -23655,12 +23826,12 @@ var every4 = (self, predicate) => {
23655
23826
  return true;
23656
23827
  };
23657
23828
 
23658
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/HashSet.js
23829
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/HashSet.js
23659
23830
  var fromIterable7 = fromIterable6;
23660
23831
  var isHashSet2 = isHashSet;
23661
23832
  var size5 = size4;
23662
23833
 
23663
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Struct.js
23834
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Struct.js
23664
23835
  var pick = /* @__PURE__ */ dual(2, (self, keys4) => {
23665
23836
  return buildStruct(self, (k, v) => keys4.includes(k) ? [k, v] : void 0);
23666
23837
  });
@@ -23703,7 +23874,7 @@ function makeCombiner(combiners, options) {
23703
23874
  });
23704
23875
  }
23705
23876
 
23706
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/UndefinedOr.js
23877
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/UndefinedOr.js
23707
23878
  function makeReducer2(combiner2) {
23708
23879
  return make((self, that) => {
23709
23880
  if (self === void 0) return that;
@@ -23712,7 +23883,7 @@ function makeReducer2(combiner2) {
23712
23883
  }, void 0);
23713
23884
  }
23714
23885
 
23715
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/errors.js
23886
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/errors.js
23716
23887
  function errorWithPath(message, path) {
23717
23888
  if (path.length > 0) {
23718
23889
  message += `
@@ -23721,7 +23892,7 @@ function errorWithPath(message, path) {
23721
23892
  return new Error(message);
23722
23893
  }
23723
23894
 
23724
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/schema/arbitrary.js
23895
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/schema/arbitrary.js
23725
23896
  var arbitraryMemoMap = /* @__PURE__ */ new WeakMap();
23726
23897
  var suspendDepthIdentifierMap = /* @__PURE__ */ new WeakMap();
23727
23898
  var emptyRecursionStack = [];
@@ -24455,14 +24626,14 @@ function base(ast, path) {
24455
24626
  }
24456
24627
  }
24457
24628
 
24458
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/SchemaParser.js
24459
- var recurDefaults = /* @__PURE__ */ memoize((ast) => {
24629
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/SchemaParser.js
24630
+ var toConstructorAST = /* @__PURE__ */ memoize((ast) => {
24460
24631
  switch (ast._tag) {
24461
24632
  case "Declaration": {
24462
24633
  const getLink = ast.annotations?.[ClassTypeId];
24463
24634
  if (isFunction(getLink)) {
24464
24635
  const link2 = getLink(ast.typeParameters);
24465
- const to = recurDefaults(link2.to);
24636
+ const to = toConstructorAST(link2.to);
24466
24637
  return replaceEncoding(ast, to === link2.to ? [link2] : [new Link(to, link2.transformation)]);
24467
24638
  }
24468
24639
  return ast;
@@ -24472,18 +24643,19 @@ var recurDefaults = /* @__PURE__ */ memoize((ast) => {
24472
24643
  return ast.recur((ast2) => {
24473
24644
  const defaultValue = ast2.context?.defaultValue;
24474
24645
  if (defaultValue) {
24475
- return replaceEncoding(recurDefaults(ast2), defaultValue);
24646
+ const out = toConstructorAST(ast2);
24647
+ return replaceEncoding(out, out.encoding ? [...out.encoding, ...defaultValue] : defaultValue);
24476
24648
  }
24477
- return recurDefaults(ast2);
24649
+ return toConstructorAST(ast2);
24478
24650
  });
24479
24651
  case "Suspend":
24480
- return ast.recur(recurDefaults);
24652
+ return ast.recur(toConstructorAST);
24481
24653
  default:
24482
24654
  return ast;
24483
24655
  }
24484
24656
  });
24485
24657
  function makeEffect(schema) {
24486
- const ast = recurDefaults(toType(schema.ast));
24658
+ const ast = toConstructorAST(toType(schema.ast));
24487
24659
  const parser = run(ast);
24488
24660
  return (input, options) => {
24489
24661
  return parser(input, options?.disableChecks ? options?.parseOptions ? {
@@ -24730,7 +24902,7 @@ var recur2 = /* @__PURE__ */ memoize((ast) => {
24730
24902
  };
24731
24903
  });
24732
24904
 
24733
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/schema/equivalence.js
24905
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/schema/equivalence.js
24734
24906
  var toEquivalence = /* @__PURE__ */ memoize((ast) => {
24735
24907
  return recur3(ast, []);
24736
24908
  });
@@ -24785,8 +24957,7 @@ function recur3(ast, path) {
24785
24957
  }
24786
24958
  }
24787
24959
  for (let j = 0; j < tail2.length; j++) {
24788
- i += j;
24789
- if (!tail2[j](a[i], b[i])) {
24960
+ if (!tail2[j](a[i + j], b[i + j])) {
24790
24961
  return false;
24791
24962
  }
24792
24963
  }
@@ -24852,7 +25023,7 @@ function recur3(ast, path) {
24852
25023
  }
24853
25024
  }
24854
25025
 
24855
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/JsonPointer.js
25026
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/JsonPointer.js
24856
25027
  function escapeToken(token) {
24857
25028
  return token.replace(/~/g, "~0").replace(/\//g, "~1");
24858
25029
  }
@@ -24860,14 +25031,34 @@ function unescapeToken(token) {
24860
25031
  return token.replace(/~1/g, "/").replace(/~0/g, "~");
24861
25032
  }
24862
25033
 
24863
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/RegExp.js
25034
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/RegExp.js
24864
25035
  var RegExp2 = globalThis.RegExp;
24865
25036
  var escape2 = (string7) => string7.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
24866
25037
 
24867
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/schema/schema.js
24868
- var TypeId22 = "~effect/Schema/Schema";
25038
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/SchemaError.js
25039
+ var TypeId22 = "~effect/SchemaError/SchemaError";
25040
+ var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
25041
+ [TypeId22] = TypeId22;
25042
+ constructor(issue2) {
25043
+ super({
25044
+ issue: issue2
25045
+ });
25046
+ }
25047
+ get message() {
25048
+ return this.issue.toString();
25049
+ }
25050
+ toString() {
25051
+ return `SchemaError(${this.message})`;
25052
+ }
25053
+ };
25054
+ function isSchemaError(u) {
25055
+ return hasProperty(u, TypeId22);
25056
+ }
25057
+
25058
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/schema/schema.js
25059
+ var TypeId23 = "~effect/Schema/Schema";
24869
25060
  var SchemaProto = {
24870
- [TypeId22]: TypeId22,
25061
+ [TypeId23]: TypeId23,
24871
25062
  pipe() {
24872
25063
  return pipeArguments(this, arguments);
24873
25064
  },
@@ -24888,35 +25079,15 @@ function make23(ast, options) {
24888
25079
  }
24889
25080
  self.ast = ast;
24890
25081
  self.rebuild = (ast2) => make23(ast2, options);
24891
- self.makeEffect = (input, options2) => mapSchemaIssueEffect2(makeEffect(self)(input, options2));
25082
+ const makeEffect2 = makeEffect(self);
25083
+ self.makeEffect = (input, options2) => fromIssueEffect(makeEffect2(input, options2));
24892
25084
  self.make = make22(self);
24893
25085
  self.makeOption = makeOption(self);
24894
25086
  return self;
24895
25087
  }
24896
- var SchemaErrorTypeId = "~effect/Schema/SchemaError";
24897
- var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
24898
- [SchemaErrorTypeId] = SchemaErrorTypeId;
24899
- constructor(issue2) {
24900
- super({
24901
- issue: issue2
24902
- });
24903
- }
24904
- get message() {
24905
- return this.issue.toString();
24906
- }
24907
- toString() {
24908
- return `SchemaError(${this.message})`;
24909
- }
24910
- };
24911
- function mapSchemaIssueEffect2(self) {
25088
+ function fromIssueEffect(self) {
24912
25089
  return catchCause2(self, (cause) => failCauseSync3(() => map6(cause, (issue2) => new SchemaError(issue2))));
24913
25090
  }
24914
- function mapSchemaErrorEffect(self) {
24915
- return catchCause2(self, (cause) => failCauseSync3(() => map6(cause, (error3) => error3.issue)));
24916
- }
24917
- function mapSchemaIssueExit(exit3) {
24918
- return isSuccess4(exit3) ? succeed4(exit3.value) : failCause2(map6(exit3.cause, (issue2) => new SchemaError(issue2)));
24919
- }
24920
25091
  var jsonReorder = /* @__PURE__ */ makeReorder(getJsonPriority);
24921
25092
  function getJsonPriority(ast) {
24922
25093
  switch (ast._tag) {
@@ -24948,7 +25119,7 @@ function makeReorder(getPriority) {
24948
25119
  };
24949
25120
  }
24950
25121
 
24951
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/schema/representation.js
25122
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/schema/representation.js
24952
25123
  function fromAST(ast) {
24953
25124
  const {
24954
25125
  references,
@@ -25033,9 +25204,7 @@ function fromASTs(asts) {
25033
25204
  function getEncodedSchema(last2) {
25034
25205
  const getLink = last2.annotations?.toCodecJson ?? last2.annotations?.toCodec;
25035
25206
  if (isFunction(getLink)) {
25036
- const tps = last2.typeParameters.map((tp) => make23(toEncoded(tp)));
25037
- const link2 = getLink(tps);
25038
- return replaceEncoding(last2, [link2]);
25207
+ return replaceEncoding(last2, [getLink(last2.typeParameters.map((tp) => make23(toEncoded(tp))))]);
25039
25208
  }
25040
25209
  return null_;
25041
25210
  }
@@ -25781,7 +25950,7 @@ function getPartPattern(part) {
25781
25950
  }
25782
25951
  }
25783
25952
 
25784
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/JsonPatch.js
25953
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/JsonPatch.js
25785
25954
  function get5(oldValue, newValue) {
25786
25955
  if (Object.is(oldValue, newValue)) return [];
25787
25956
  const patches = [];
@@ -26010,7 +26179,7 @@ function rebuildFromStack(stack, newParent) {
26010
26179
  return acc;
26011
26180
  }
26012
26181
 
26013
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/JsonSchema.js
26182
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/JsonSchema.js
26014
26183
  var RE_DEFS = /^#\/\$defs(?=\/|$)/;
26015
26184
  function toDocumentDraft07(document) {
26016
26185
  return {
@@ -26125,7 +26294,7 @@ function walk_object(value5, walk) {
26125
26294
  return out;
26126
26295
  }
26127
26296
 
26128
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Optic.js
26297
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Optic.js
26129
26298
  function makeIso(get7, set8) {
26130
26299
  return make24(new IsoNode(get7, set8));
26131
26300
  }
@@ -26539,7 +26708,7 @@ function id() {
26539
26708
  return identityIso;
26540
26709
  }
26541
26710
 
26542
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/testing/FastCheck.js
26711
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/testing/FastCheck.js
26543
26712
  var FastCheck_exports = {};
26544
26713
  __export(FastCheck_exports, {
26545
26714
  Arbitrary: () => Arbitrary,
@@ -36299,8 +36468,8 @@ var __type = "module";
36299
36468
  var __version = "4.9.0";
36300
36469
  var __commitHash = "0d3c2547dce556f72413607849377530d18ea283";
36301
36470
 
36302
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Schema.js
36303
- var TypeId23 = TypeId22;
36471
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Schema.js
36472
+ var TypeId24 = TypeId23;
36304
36473
  function declareConstructor() {
36305
36474
  return (typeParameters, run2, annotations) => {
36306
36475
  return make25(new Declaration(typeParameters.map(getAST), (typeParameters2) => run2(typeParameters2.map((ast) => make25(ast))), annotations));
@@ -36326,9 +36495,6 @@ function annotateKey2(annotations) {
36326
36495
  function revealCodec(codec2) {
36327
36496
  return codec2;
36328
36497
  }
36329
- function isSchemaError(u) {
36330
- return hasProperty(u, SchemaErrorTypeId);
36331
- }
36332
36498
  function makeStandardResult(exit3) {
36333
36499
  return isSuccess4(exit3) ? exit3.value : {
36334
36500
  issues: [{
@@ -36430,7 +36596,7 @@ var asserts2 = asserts;
36430
36596
  function decodeUnknownEffect2(schema, options) {
36431
36597
  const parser = decodeUnknownEffect(schema, options);
36432
36598
  return (input, options2) => {
36433
- return mapSchemaIssueEffect2(parser(input, options2));
36599
+ return fromIssueEffect(parser(input, options2));
36434
36600
  };
36435
36601
  }
36436
36602
  var decodeEffect2 = decodeUnknownEffect2;
@@ -36469,9 +36635,12 @@ function runSchemaErrorSync(self) {
36469
36635
  function decodeUnknownExit2(schema, options) {
36470
36636
  const parser = decodeUnknownExit(schema, options);
36471
36637
  return (input, options2) => {
36472
- return mapSchemaIssueExit(parser(input, options2));
36638
+ return fromIssueExit(parser(input, options2));
36473
36639
  };
36474
36640
  }
36641
+ function fromIssueExit(exit3) {
36642
+ return isSuccess4(exit3) ? succeed4(exit3.value) : failCause2(map6(exit3.cause, (issue2) => new SchemaError(issue2)));
36643
+ }
36475
36644
  var decodeExit = decodeUnknownExit2;
36476
36645
  var decodeUnknownOption2 = decodeUnknownOption;
36477
36646
  var decodeOption2 = decodeOption;
@@ -36499,14 +36668,14 @@ var decodeSync2 = decodeUnknownSync2;
36499
36668
  function encodeUnknownEffect2(schema, options) {
36500
36669
  const parser = encodeUnknownEffect(schema, options);
36501
36670
  return (input, options2) => {
36502
- return mapSchemaIssueEffect2(parser(input, options2));
36671
+ return fromIssueEffect(parser(input, options2));
36503
36672
  };
36504
36673
  }
36505
36674
  var encodeEffect = encodeUnknownEffect2;
36506
36675
  function encodeUnknownExit2(schema, options) {
36507
36676
  const parser = encodeUnknownExit(schema, options);
36508
36677
  return (input, options2) => {
36509
- return mapSchemaIssueExit(parser(input, options2));
36678
+ return fromIssueExit(parser(input, options2));
36510
36679
  };
36511
36680
  }
36512
36681
  var encodeExit = encodeUnknownExit2;
@@ -36540,7 +36709,7 @@ function asClass(schema) {
36540
36709
  return Object.setPrototypeOf(Class6, schema);
36541
36710
  }
36542
36711
  function isSchema(u) {
36543
- return hasProperty(u, TypeId23) && u[TypeId23] === TypeId23;
36712
+ return hasProperty(u, TypeId24) && u[TypeId24] === TypeId24;
36544
36713
  }
36545
36714
  var optionalKey2 = /* @__PURE__ */ lambda((schema) => make25(optionalKey(schema.ast), {
36546
36715
  schema
@@ -36842,15 +37011,18 @@ function encode(transformation) {
36842
37011
  };
36843
37012
  }
36844
37013
  function withConstructorDefault2(defaultValue) {
36845
- return (schema) => make25(withConstructorDefault(schema.ast, mapSchemaErrorEffect(defaultValue)), {
37014
+ return (schema) => make25(withConstructorDefault(schema.ast, toIssueEffect(defaultValue)), {
36846
37015
  schema
36847
37016
  });
36848
37017
  }
37018
+ function toIssueEffect(self) {
37019
+ return catchCause2(self, (cause) => failCauseSync3(() => map6(cause, (error3) => error3.issue)));
37020
+ }
36849
37021
  function withDecodingDefaultKey(defaultValue, options) {
36850
37022
  const encode4 = options?.encodingStrategy === "omit" ? omit() : passthrough2();
36851
37023
  return (self) => {
36852
37024
  return optionalKey2(toEncoded2(self)).pipe(decodeTo2(self, {
36853
- decode: withDefault(mapSchemaErrorEffect(defaultValue)),
37025
+ decode: withDefault(toIssueEffect(defaultValue)),
36854
37026
  encode: encode4
36855
37027
  }));
36856
37028
  };
@@ -36864,7 +37036,7 @@ function withDecodingDefault(defaultValue, options) {
36864
37036
  const encode4 = options?.encodingStrategy === "omit" ? omit() : passthrough2();
36865
37037
  return (self) => {
36866
37038
  return optional(toEncoded2(self)).pipe(decodeTo2(self, {
36867
- decode: withDefault(mapSchemaErrorEffect(defaultValue)),
37039
+ decode: withDefault(toIssueEffect(defaultValue)),
36868
37040
  encode: encode4
36869
37041
  }));
36870
37042
  };
@@ -36891,11 +37063,14 @@ function TaggedStruct(value5, fields) {
36891
37063
  function toTaggedUnion(tag4) {
36892
37064
  return (self) => {
36893
37065
  const cases = {};
37066
+ const discriminants = [];
37067
+ const discriminantKeys = /* @__PURE__ */ new Set();
36894
37068
  const guards = {};
36895
37069
  const isAnyOf = (keys4) => (value5) => keys4.includes(value5[tag4]);
36896
37070
  walk(self);
36897
37071
  return Object.assign(self, {
36898
37072
  cases,
37073
+ discriminants,
36899
37074
  isAnyOf,
36900
37075
  guards,
36901
37076
  match: match9
@@ -36909,8 +37084,14 @@ function toTaggedUnion(tag4) {
36909
37084
  if (sentinels.length > 0) {
36910
37085
  const literal2 = sentinels.find((s) => s.key === tag4)?.literal;
36911
37086
  if (isPropertyKey(literal2)) {
36912
- cases[literal2] = schema;
36913
- guards[literal2] = is2(toType2(schema));
37087
+ const key = typeof literal2 === "number" ? globalThis.String(literal2) : literal2;
37088
+ if (discriminantKeys.has(key)) {
37089
+ throw new globalThis.Error(`Duplicate discriminant: ${globalThis.String(literal2)}`);
37090
+ }
37091
+ discriminantKeys.add(key);
37092
+ discriminants.push(literal2);
37093
+ set(cases, literal2, schema);
37094
+ set(guards, literal2, is2(toType2(schema)));
36914
37095
  return;
36915
37096
  }
36916
37097
  }
@@ -37370,7 +37551,7 @@ function isInt(annotations) {
37370
37551
  });
37371
37552
  }
37372
37553
  function isInt32(annotations) {
37373
- return new FilterGroup([isInt(annotations), isBetween2({
37554
+ return new FilterGroup([isInt(), isBetween2({
37374
37555
  minimum: -2147483648,
37375
37556
  maximum: 2147483647
37376
37557
  })], {
@@ -39007,7 +39188,7 @@ function makeClass(Inherited, identifier2, struct2, annotations, proto) {
39007
39188
  }
39008
39189
  });
39009
39190
  }
39010
- static [TypeId23] = TypeId23;
39191
+ static [TypeId24] = TypeId24;
39011
39192
  get [ClassTypeId2]() {
39012
39193
  return ClassTypeId2;
39013
39194
  }
@@ -39202,8 +39383,7 @@ function toFormatter(schema, options) {
39202
39383
  out.push(head2(t[i]));
39203
39384
  }
39204
39385
  for (let j = 0; j < tail2.length; j++) {
39205
- i += j;
39206
- out.push(tail2[j](t[i]));
39386
+ out.push(tail2[j](t[i + j]));
39207
39387
  }
39208
39388
  }
39209
39389
  return "[" + out.join(", ") + "]";
@@ -39614,7 +39794,7 @@ function resolveAnnotationsKey(schema) {
39614
39794
  return schema.ast.context?.annotations;
39615
39795
  }
39616
39796
 
39617
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Console.js
39797
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Console.js
39618
39798
  var Console_exports = {};
39619
39799
  __export(Console_exports, {
39620
39800
  Console: () => Console,
@@ -39711,7 +39891,7 @@ var withTime = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, label)
39711
39891
  console2.timeEnd(label);
39712
39892
  }))));
39713
39893
 
39714
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Match.js
39894
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Match.js
39715
39895
  var Match_exports = {};
39716
39896
  __export(Match_exports, {
39717
39897
  any: () => any3,
@@ -39753,10 +39933,10 @@ __export(Match_exports, {
39753
39933
  withReturnType: () => withReturnType2
39754
39934
  });
39755
39935
 
39756
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/internal/matcher.js
39757
- var TypeId24 = "~effect/match/Match/Matcher";
39936
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/internal/matcher.js
39937
+ var TypeId25 = "~effect/match/Match/Matcher";
39758
39938
  var TypeMatcherProto = {
39759
- [TypeId24]: {
39939
+ [TypeId25]: {
39760
39940
  _input: identity,
39761
39941
  _filters: identity,
39762
39942
  _remaining: identity,
@@ -39777,7 +39957,7 @@ function makeTypeMatcher(cases) {
39777
39957
  return matcher;
39778
39958
  }
39779
39959
  var ValueMatcherProto = {
39780
- [TypeId24]: {
39960
+ [TypeId25]: {
39781
39961
  _input: identity,
39782
39962
  _filters: identity,
39783
39963
  _result: identity,
@@ -40006,7 +40186,7 @@ var exhaustive = (self) => {
40006
40186
  };
40007
40187
  };
40008
40188
 
40009
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Match.js
40189
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Match.js
40010
40190
  var type2 = type;
40011
40191
  var value4 = value3;
40012
40192
  var valueTags2 = valueTags;
@@ -40045,7 +40225,7 @@ var result4 = result3;
40045
40225
  var option5 = option4;
40046
40226
  var exhaustive2 = exhaustive;
40047
40227
 
40048
- // ../../node_modules/.pnpm/effect@4.0.0-beta.97/node_modules/effect/dist/Ref.js
40228
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.101/node_modules/effect/dist/Ref.js
40049
40229
  var Ref_exports = {};
40050
40230
  __export(Ref_exports, {
40051
40231
  get: () => get6,
@@ -40064,9 +40244,9 @@ __export(Ref_exports, {
40064
40244
  updateSome: () => updateSome,
40065
40245
  updateSomeAndGet: () => updateSomeAndGet
40066
40246
  });
40067
- var TypeId25 = "~effect/Ref";
40247
+ var TypeId26 = "~effect/Ref";
40068
40248
  var RefProto = {
40069
- [TypeId25]: {
40249
+ [TypeId26]: {
40070
40250
  _A: identity
40071
40251
  },
40072
40252
  ...PipeInspectableProto,
@@ -54801,7 +54981,7 @@ var buildTools = (wsClient) => [
54801
54981
  },
54802
54982
  {
54803
54983
  name: "foldkit_dispatch_message",
54804
- description: "Dispatch a Message into a Foldkit runtime's message queue, as if the application itself produced it. Requires the runtime to have configured DevToolsConfig.Message; without it, dispatch is rejected. Call `foldkit_get_message_schema` with no arguments to enumerate the variants, then with `variant_tag` to learn one variant's exact payload shape, before constructing the Message object. The runtime decodes the payload and returns a clean error if it doesn't match.",
54984
+ description: "Dispatch a Message into a Foldkit runtime, as if the application itself produced it. Requires the runtime to have configured DevToolsConfig.Message; without it, dispatch is rejected. Call `foldkit_get_message_schema` with no arguments to enumerate the variants, then with `variant_tag` to learn one variant's exact payload shape, before constructing the Message object. The runtime decodes the payload and returns a clean error if it doesn't match.",
54805
54985
  inputSchema: toInputSchema(DispatchMessageInput),
54806
54986
  handle: runRuntimeTool(
54807
54987
  DispatchMessageInput,