@foldkit/devtools-mcp 0.14.4 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/server.js +293 -244
  2. package/package.json +4 -4
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.107/node_modules/effect/dist/Pipeable.js
10578
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/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.107/node_modules/effect/dist/Function.js
10622
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Function.js
10623
10623
  var dual = function(arity, body) {
10624
10624
  if (typeof arity === "function") {
10625
10625
  return function() {
@@ -10692,7 +10692,7 @@ function memoizeIdempotent(f) {
10692
10692
  };
10693
10693
  }
10694
10694
 
10695
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Array.js
10695
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Array.js
10696
10696
  var Array_exports = {};
10697
10697
  __export(Array_exports, {
10698
10698
  Array: () => Array2,
@@ -10830,7 +10830,7 @@ __export(Array_exports, {
10830
10830
  zipWith: () => zipWith2
10831
10831
  });
10832
10832
 
10833
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/equal.js
10833
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/equal.js
10834
10834
  var getAllObjectKeys = (obj) => {
10835
10835
  const keys4 = new Set(Reflect.ownKeys(obj));
10836
10836
  if (obj.constructor === Object) return keys4;
@@ -10853,7 +10853,7 @@ var getAllObjectKeys = (obj) => {
10853
10853
  };
10854
10854
  var byReferenceInstances = /* @__PURE__ */ new WeakSet();
10855
10855
 
10856
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Predicate.js
10856
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Predicate.js
10857
10857
  function isString(input) {
10858
10858
  return typeof input === "string";
10859
10859
  }
@@ -10911,7 +10911,7 @@ function isIterable(input) {
10911
10911
  return hasProperty(input, Symbol.iterator) || isString(input);
10912
10912
  }
10913
10913
 
10914
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Hash.js
10914
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Hash.js
10915
10915
  var symbol = "~effect/interfaces/Hash";
10916
10916
  var hash = (self) => {
10917
10917
  switch (typeof self) {
@@ -11035,7 +11035,7 @@ function withVisitedTracking(obj, fn3) {
11035
11035
  return result5;
11036
11036
  }
11037
11037
 
11038
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Equal.js
11038
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Equal.js
11039
11039
  var symbol2 = "~effect/interfaces/Equal";
11040
11040
  function equals() {
11041
11041
  if (arguments.length === 1) {
@@ -11232,7 +11232,7 @@ var byReferenceUnsafe = (obj) => {
11232
11232
  return obj;
11233
11233
  };
11234
11234
 
11235
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Reducer.js
11235
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Reducer.js
11236
11236
  function make(combine2, initialValue, combineAll2) {
11237
11237
  return {
11238
11238
  combine: combine2,
@@ -11247,7 +11247,7 @@ function make(combine2, initialValue, combineAll2) {
11247
11247
  };
11248
11248
  }
11249
11249
 
11250
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Equivalence.js
11250
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Equivalence.js
11251
11251
  var make2 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
11252
11252
  var isStrictEquivalent = (x, y) => x === y;
11253
11253
  var strictEqual = () => isStrictEquivalent;
@@ -11261,10 +11261,10 @@ function Array_(item) {
11261
11261
  });
11262
11262
  }
11263
11263
 
11264
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/array.js
11264
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/array.js
11265
11265
  var isArrayNonEmpty = (self) => self.length > 0;
11266
11266
 
11267
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/doNotation.js
11267
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/doNotation.js
11268
11268
  var let_ = (map14) => dual(3, (self, name, f) => map14(self, (a) => ({
11269
11269
  ...a,
11270
11270
  [name]: f(a)
@@ -11277,7 +11277,7 @@ var bind = (map14, flatMap8) => dual(3, (self, name, f) => flatMap8(self, (a) =>
11277
11277
  [name]: b
11278
11278
  }))));
11279
11279
 
11280
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/record.js
11280
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/record.js
11281
11281
  function assignProperty(self, key, value5) {
11282
11282
  if (key === "__proto__") {
11283
11283
  Object.defineProperty(self, key, {
@@ -11299,7 +11299,7 @@ function assignProperties(self, source) {
11299
11299
  }
11300
11300
  }
11301
11301
 
11302
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Option.js
11302
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Option.js
11303
11303
  var Option_exports = {};
11304
11304
  __export(Option_exports, {
11305
11305
  Do: () => Do,
@@ -11364,7 +11364,7 @@ __export(Option_exports, {
11364
11364
  zipWith: () => zipWith
11365
11365
  });
11366
11366
 
11367
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Combiner.js
11367
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Combiner.js
11368
11368
  function make3(combine2) {
11369
11369
  return {
11370
11370
  combine: combine2
@@ -11377,7 +11377,7 @@ function max(order) {
11377
11377
  return make3((self, that) => order(self, that) === 1 ? self : that);
11378
11378
  }
11379
11379
 
11380
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Redactable.js
11380
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Redactable.js
11381
11381
  var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Redactable");
11382
11382
  var isRedactable = (u) => hasProperty(u, symbolRedactable);
11383
11383
  function redact(u) {
@@ -11399,7 +11399,7 @@ var emptyContext = {
11399
11399
  }
11400
11400
  };
11401
11401
 
11402
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Formatter.js
11402
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Formatter.js
11403
11403
  function format(input, options) {
11404
11404
  const space = options?.space ?? 0;
11405
11405
  const ancestors = /* @__PURE__ */ new WeakSet();
@@ -11417,23 +11417,6 @@ function format(input, options) {
11417
11417
  }
11418
11418
  };
11419
11419
  function recur3(v, d = 0) {
11420
- if (Array.isArray(v)) {
11421
- if (ancestors.has(v)) return CIRCULAR;
11422
- ancestors.add(v);
11423
- const output = !gap || v.length <= 1 ? `[${v.map((x) => recur3(x, d)).join(",")}]` : `[
11424
- ${ind(d + 1)}${v.map((x) => recur3(x, d + 1)).join(",\n" + ind(d + 1))}
11425
- ${ind(d)}]`;
11426
- ancestors.delete(v);
11427
- return output;
11428
- }
11429
- if (v instanceof Date) return formatDate(v);
11430
- if (!options?.ignoreToString && hasProperty(v, "toString") && typeof v["toString"] === "function" && v["toString"] !== Object.prototype.toString && v["toString"] !== Array.prototype.toString) {
11431
- const s = safeToString(v);
11432
- if (v instanceof Error && v.cause) {
11433
- return `${s} (cause: ${recur3(v.cause, d)})`;
11434
- }
11435
- return s;
11436
- }
11437
11420
  if (typeof v === "string") return JSON.stringify(v);
11438
11421
  if (typeof v === "number" || v == null || typeof v === "boolean" || typeof v === "symbol") return String(v);
11439
11422
  if (typeof v === "bigint") return String(v) + "n";
@@ -11442,7 +11425,16 @@ ${ind(d)}]`;
11442
11425
  ancestors.add(v);
11443
11426
  let output;
11444
11427
  if (symbolRedactable in v) {
11445
- output = format(getRedacted(v));
11428
+ output = recur3(getRedacted(v), d);
11429
+ } else if (Array.isArray(v)) {
11430
+ output = !gap || v.length <= 1 ? `[${v.map((x) => recur3(x, d)).join(",")}]` : `[
11431
+ ${ind(d + 1)}${v.map((x) => recur3(x, d + 1)).join(",\n" + ind(d + 1))}
11432
+ ${ind(d)}]`;
11433
+ } else if (v instanceof Date) {
11434
+ output = formatDate(v);
11435
+ } else if (!options?.ignoreToString && hasProperty(v, "toString") && typeof v["toString"] === "function" && v["toString"] !== Object.prototype.toString && v["toString"] !== Array.prototype.toString) {
11436
+ const s = safeToString(v);
11437
+ output = v instanceof Error && v.cause ? `${s} (cause: ${recur3(v.cause, d)})` : s;
11446
11438
  } else if (Symbol.iterator in v) {
11447
11439
  output = `${v.constructor.name}(${recur3(Array.from(v), d)})`;
11448
11440
  } else {
@@ -11488,8 +11480,12 @@ function safeToString(input) {
11488
11480
  }
11489
11481
  function formatJson(input, options) {
11490
11482
  const ancestors = [];
11491
- return JSON.stringify(input, function(_key, value5) {
11492
- const redacted = redact(value5);
11483
+ return JSON.stringify(input, function(key, value5) {
11484
+ const original = Object.getOwnPropertyDescriptor(this, key)?.value;
11485
+ const redacted = hasProperty(original, symbolRedactable) ? redact(original) : redact(value5);
11486
+ if (typeof redacted === "bigint") {
11487
+ return format(redacted);
11488
+ }
11493
11489
  if (typeof redacted !== "object" || redacted === null) {
11494
11490
  return redacted;
11495
11491
  }
@@ -11504,19 +11500,20 @@ function formatJson(input, options) {
11504
11500
  }, options?.space) ?? "null";
11505
11501
  }
11506
11502
 
11507
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Inspectable.js
11503
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Inspectable.js
11508
11504
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
11509
11505
  var toJson = (input) => {
11510
11506
  try {
11507
+ input = redact(input);
11511
11508
  if (hasProperty(input, "toJSON") && isFunction(input["toJSON"]) && input["toJSON"].length === 0) {
11512
11509
  return input.toJSON();
11513
11510
  } else if (Array.isArray(input)) {
11514
11511
  return input.map(toJson);
11515
11512
  }
11513
+ return input;
11516
11514
  } catch {
11517
11515
  return "[toJSON threw]";
11518
11516
  }
11519
- return redact(input);
11520
11517
  };
11521
11518
  var toStringUnknown = (u, whitespace = 2) => {
11522
11519
  if (typeof u === "string") {
@@ -11525,7 +11522,9 @@ var toStringUnknown = (u, whitespace = 2) => {
11525
11522
  try {
11526
11523
  return typeof u === "object" ? formatJson(u, {
11527
11524
  space: whitespace
11528
- }) : String(u);
11525
+ }) : format(u, {
11526
+ space: whitespace
11527
+ });
11529
11528
  } catch {
11530
11529
  return String(u);
11531
11530
  }
@@ -11568,7 +11567,7 @@ var Class2 = class {
11568
11567
  }
11569
11568
  };
11570
11569
 
11571
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Utils.js
11570
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Utils.js
11572
11571
  var SingleShotGen = class _SingleShotGen {
11573
11572
  called = false;
11574
11573
  self;
@@ -11628,7 +11627,7 @@ var pickInternalCall = () => {
11628
11627
  };
11629
11628
  var internalCall = /* @__PURE__ */ pickInternalCall();
11630
11629
 
11631
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/core.js
11630
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/core.js
11632
11631
  var EffectTypeId = `~effect/Effect`;
11633
11632
  var ExitTypeId = `~effect/Exit`;
11634
11633
  var effectVariance = {
@@ -11989,7 +11988,7 @@ var done = (value5) => {
11989
11988
  return exitFail(Done(value5));
11990
11989
  };
11991
11990
 
11992
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/option.js
11991
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/option.js
11993
11992
  var TypeId = "~effect/data/Option";
11994
11993
  var CommonProto = {
11995
11994
  [TypeId]: {
@@ -12055,7 +12054,7 @@ var some = (value5) => {
12055
12054
  return a;
12056
12055
  };
12057
12056
 
12058
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/result.js
12057
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/result.js
12059
12058
  var TypeId2 = "~effect/data/Result";
12060
12059
  var CommonProto2 = {
12061
12060
  [TypeId2]: {
@@ -12125,7 +12124,7 @@ var getFailure = (self) => isSuccess(self) ? none : some(self.failure);
12125
12124
  var getSuccess = (self) => isFailure(self) ? none : some(self.success);
12126
12125
  var fromOption = /* @__PURE__ */ dual(2, (self, onNone) => isNone(self) ? fail(onNone()) : succeed(self.value));
12127
12126
 
12128
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Order.js
12127
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Order.js
12129
12128
  function make4(compare) {
12130
12129
  return (self, that) => self === that ? 0 : compare(self, that);
12131
12130
  }
@@ -12173,7 +12172,7 @@ var max2 = (O) => dual(2, (self, that) => self === that || O(self, that) > -1 ?
12173
12172
  var clamp = (O) => dual(2, (self, options) => min2(O)(options.maximum, max2(O)(options.minimum, self)));
12174
12173
  var isBetween = (O) => dual(2, (self, options) => !isLessThan(O)(self, options.minimum) && !isGreaterThan(O)(self, options.maximum));
12175
12174
 
12176
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Option.js
12175
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Option.js
12177
12176
  var none2 = () => none;
12178
12177
  var some2 = some;
12179
12178
  var isOption2 = isOption;
@@ -12351,7 +12350,7 @@ function makeReducerFailFast(reducer2) {
12351
12350
  });
12352
12351
  }
12353
12352
 
12354
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Result.js
12353
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Result.js
12355
12354
  var succeed2 = succeed;
12356
12355
  var fail2 = fail;
12357
12356
  var fromOption2 = fromOption;
@@ -12408,10 +12407,10 @@ var all2 = (input) => {
12408
12407
  return succeed2(out);
12409
12408
  };
12410
12409
 
12411
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Tuple.js
12410
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Tuple.js
12412
12411
  var make5 = (...elements) => elements;
12413
12412
 
12414
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Iterable.js
12413
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Iterable.js
12415
12414
  var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
12416
12415
  let i = 0;
12417
12416
  for (const a of self) {
@@ -12454,7 +12453,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => ({
12454
12453
  }
12455
12454
  }));
12456
12455
 
12457
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Record.js
12456
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Record.js
12458
12457
  var collect = /* @__PURE__ */ dual(2, (self, f) => {
12459
12458
  const out = [];
12460
12459
  for (const key of keys(self)) {
@@ -12474,7 +12473,7 @@ var map3 = /* @__PURE__ */ dual(2, (self, f) => {
12474
12473
  });
12475
12474
  var keys = (self) => Object.keys(self);
12476
12475
 
12477
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Array.js
12476
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Array.js
12478
12477
  var Array2 = globalThis.Array;
12479
12478
  var make6 = (...elements) => elements;
12480
12479
  var allocate = (n) => new Array2(n);
@@ -13179,7 +13178,7 @@ var countBy = /* @__PURE__ */ dual(2, (self, f) => {
13179
13178
  return count2;
13180
13179
  });
13181
13180
 
13182
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/BigDecimal.js
13181
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/BigDecimal.js
13183
13182
  var FINITE_INT_REGEXP = /^[+-]?\d+$/;
13184
13183
  var TypeId3 = "~effect/BigDecimal";
13185
13184
  var BigDecimalProto = {
@@ -13408,17 +13407,17 @@ var floor = /* @__PURE__ */ dual(isBigDecimalArgs, (self, scale2 = 0) => {
13408
13407
  return truncated;
13409
13408
  });
13410
13409
 
13411
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Boolean.js
13410
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Boolean.js
13412
13411
  var Boolean2 = globalThis.Boolean;
13413
13412
  var ReducerOr = /* @__PURE__ */ make((a, b) => a || b, false);
13414
13413
 
13415
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Effectable.js
13414
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Effectable.js
13416
13415
  var Prototype2 = (options) => makePrimitiveProto({
13417
13416
  op: options.label,
13418
13417
  [evaluate]: options.evaluate
13419
13418
  });
13420
13419
 
13421
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Context.js
13420
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Context.js
13422
13421
  var ServiceTypeId = "~effect/Context/Service";
13423
13422
  var Service = function() {
13424
13423
  function KeyClass() {
@@ -13619,7 +13618,7 @@ var mergeAll = (...ctxs) => {
13619
13618
  };
13620
13619
  var Reference = Service;
13621
13620
 
13622
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Duration.js
13621
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Duration.js
13623
13622
  var Duration_exports = {};
13624
13623
  __export(Duration_exports, {
13625
13624
  CombinerMax: () => CombinerMax,
@@ -14207,7 +14206,7 @@ var ReducerSum = /* @__PURE__ */ make(sum2, zero2);
14207
14206
  var CombinerMax = /* @__PURE__ */ max(Order2);
14208
14207
  var CombinerMin = /* @__PURE__ */ min(Order2);
14209
14208
 
14210
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Filter.js
14209
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Filter.js
14211
14210
  var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
14212
14211
  const leftOut = left(input);
14213
14212
  if (isFailure2(leftOut)) return fail2(input);
@@ -14216,7 +14215,7 @@ var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
14216
14215
  return rightOut;
14217
14216
  });
14218
14217
 
14219
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Scheduler.js
14218
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Scheduler.js
14220
14219
  var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
14221
14220
  fiberCached: true,
14222
14221
  defaultValue: () => new MixedScheduler()
@@ -14230,7 +14229,7 @@ var setImmediate2 = "setImmediate" in globalThis ? (f) => {
14230
14229
  };
14231
14230
  var setMicrotask = (f) => {
14232
14231
  let cancelled = false;
14233
- queueMicrotask(() => {
14232
+ Promise.resolve().then(() => {
14234
14233
  if (!cancelled) f();
14235
14234
  });
14236
14235
  return () => {
@@ -14353,7 +14352,7 @@ var PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventS
14353
14352
  defaultValue: () => false
14354
14353
  });
14355
14354
 
14356
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Tracer.js
14355
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Tracer.js
14357
14356
  var ParentSpanKey = "effect/Tracer/ParentSpan";
14358
14357
  var ParentSpan = class extends (/* @__PURE__ */ Service()(ParentSpanKey, {
14359
14358
  fiberCached: true
@@ -14436,10 +14435,10 @@ var randomHexString = /* @__PURE__ */ (function() {
14436
14435
  };
14437
14436
  })();
14438
14437
 
14439
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/metric.js
14438
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/metric.js
14440
14439
  var FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
14441
14440
 
14442
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/references.js
14441
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/references.js
14443
14442
  var CurrentErrorReporters = /* @__PURE__ */ Reference("effect/ErrorReporter/CurrentErrorReporters", {
14444
14443
  defaultValue: () => /* @__PURE__ */ new Set()
14445
14444
  });
@@ -14474,7 +14473,7 @@ var CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpa
14474
14473
  defaultValue: () => []
14475
14474
  });
14476
14475
 
14477
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/stackTraceLimit.js
14476
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/stackTraceLimit.js
14478
14477
  var isStackTraceLimitWritable = () => {
14479
14478
  const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
14480
14479
  if (desc === void 0) {
@@ -14491,7 +14490,7 @@ var setStackTraceLimit = (value5) => {
14491
14490
  }
14492
14491
  };
14493
14492
 
14494
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/tracer.js
14493
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/tracer.js
14495
14494
  var addSpanStackTrace = (options) => {
14496
14495
  if (options?.captureStackTrace === false) {
14497
14496
  return options;
@@ -14522,7 +14521,7 @@ var makeStackCleaner = (line) => (stack) => {
14522
14521
  };
14523
14522
  var spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
14524
14523
 
14525
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/effect.js
14524
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/effect.js
14526
14525
  var Interrupt = class extends ReasonBase {
14527
14526
  fiberId;
14528
14527
  constructor(fiberId3, annotations = constEmptyAnnotations) {
@@ -17087,7 +17086,7 @@ var reportCauseUnsafe = (fiber3, cause, defectsOnly) => {
17087
17086
  reporters.forEach((reporter) => reporter.report(opts));
17088
17087
  };
17089
17088
 
17090
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Cause.js
17089
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Cause.js
17091
17090
  var isCause2 = isCause;
17092
17091
  var isReason = isCauseReason;
17093
17092
  var isFailReason2 = isFailReason;
@@ -17103,7 +17102,7 @@ var isDone2 = isDone;
17103
17102
  var done2 = done;
17104
17103
  var IllegalArgumentError2 = IllegalArgumentError;
17105
17104
 
17106
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Effect.js
17105
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Effect.js
17107
17106
  var Effect_exports = {};
17108
17107
  __export(Effect_exports, {
17109
17108
  Do: () => Do4,
@@ -17335,7 +17334,7 @@ __export(Effect_exports, {
17335
17334
  zipWith: () => zipWith4
17336
17335
  });
17337
17336
 
17338
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Exit.js
17337
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Exit.js
17339
17338
  var Exit_exports = {};
17340
17339
  __export(Exit_exports, {
17341
17340
  asVoid: () => asVoid3,
@@ -17394,7 +17393,7 @@ var getSuccess3 = exitGetSuccess;
17394
17393
  var getCause = exitGetCause;
17395
17394
  var findErrorOption2 = exitFindErrorOption;
17396
17395
 
17397
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Deferred.js
17396
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Deferred.js
17398
17397
  var Deferred_exports = {};
17399
17398
  __export(Deferred_exports, {
17400
17399
  await: () => _await,
@@ -17443,8 +17442,10 @@ var _await = (self) => callback((resume) => {
17443
17442
  self.resumes ??= [];
17444
17443
  self.resumes.push(resume);
17445
17444
  return sync(() => {
17446
- const index2 = self.resumes.indexOf(resume);
17447
- self.resumes.splice(index2, 1);
17445
+ const resumes = self.resumes;
17446
+ if (resumes === void 0) return;
17447
+ const index2 = resumes.indexOf(resume);
17448
+ if (index2 >= 0) resumes.splice(index2, 1);
17448
17449
  });
17449
17450
  });
17450
17451
  var complete = /* @__PURE__ */ dual(2, (self, effect) => suspend(() => self.effect ? succeed3(false) : into(effect, self)));
@@ -17478,16 +17479,16 @@ var doneUnsafe = (self, effect) => {
17478
17479
  };
17479
17480
  var into = /* @__PURE__ */ dual(2, (self, deferred) => uninterruptibleMask((restore) => flatMap4(exit(restore(self)), (exit3) => done3(deferred, exit3))));
17480
17481
 
17481
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/References.js
17482
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/References.js
17482
17483
  var CurrentLogAnnotations2 = CurrentLogAnnotations;
17483
17484
  var CurrentLogSpans2 = CurrentLogSpans;
17484
17485
 
17485
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Scope.js
17486
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Scope.js
17486
17487
  var makeUnsafe3 = scopeMakeUnsafe;
17487
17488
  var forkUnsafe2 = scopeForkUnsafe;
17488
17489
  var close = scopeClose;
17489
17490
 
17490
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Layer.js
17491
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Layer.js
17491
17492
  var TypeId7 = "~effect/Layer";
17492
17493
  var MemoMapTypeId = "~effect/Layer/MemoMap";
17493
17494
  var memoMapReuse = (entry, scope3) => {
@@ -17582,7 +17583,7 @@ var mergeAll2 = (...layers) => fromBuild((memoMap, scope3) => mergeAllEffect(lay
17582
17583
  var provideWith = (self, that, f) => fromBuild((memoMap, scope3) => flatMap4(Array.isArray(that) ? mergeAllEffect(that, memoMap, scope3) : that.build(memoMap, scope3), (context3) => self.build(memoMap, scope3).pipe(provideContext(context3), map5((merged) => f(merged, context3)))));
17583
17584
  var provide2 = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, that, identity));
17584
17585
 
17585
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/ExecutionPlan.js
17586
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/ExecutionPlan.js
17586
17587
  var TypeId8 = "~effect/ExecutionPlan";
17587
17588
  var Proto2 = {
17588
17589
  [TypeId8]: TypeId8,
@@ -17609,7 +17610,7 @@ var CurrentMetadata = /* @__PURE__ */ Reference("effect/ExecutionPlan/CurrentMet
17609
17610
  })
17610
17611
  });
17611
17612
 
17612
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Schedule.js
17613
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Schedule.js
17613
17614
  var Schedule_exports = {};
17614
17615
  __export(Schedule_exports, {
17615
17616
  CurrentMetadata: () => CurrentMetadata2,
@@ -17645,7 +17646,7 @@ __export(Schedule_exports, {
17645
17646
  windowed: () => windowed
17646
17647
  });
17647
17648
 
17648
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Data.js
17649
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Data.js
17649
17650
  var Class3 = class extends Class {
17650
17651
  constructor(props) {
17651
17652
  super();
@@ -17656,7 +17657,7 @@ var Class3 = class extends Class {
17656
17657
  };
17657
17658
  var TaggedError2 = TaggedError;
17658
17659
 
17659
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/dateTime.js
17660
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/dateTime.js
17660
17661
  var TypeId9 = "~effect/time/DateTime";
17661
17662
  var TimeZoneTypeId = "~effect/time/DateTime/TimeZone";
17662
17663
  var Proto3 = {
@@ -18062,7 +18063,7 @@ var formatIsoOffset = (self) => {
18062
18063
  };
18063
18064
  var formatIsoZoned = (self) => self.zone._tag === "Offset" ? formatIsoOffset(self) : `${formatIsoOffset(self)}[${self.zone.id}]`;
18064
18065
 
18065
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Number.js
18066
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Number.js
18066
18067
  var Number3 = globalThis.Number;
18067
18068
  var Order4 = Number2;
18068
18069
  var remainder = /* @__PURE__ */ dual(2, (self, divisor) => {
@@ -18104,13 +18105,13 @@ function toScientificInteger(n) {
18104
18105
  var ReducerMax = /* @__PURE__ */ make((a, b) => Math.max(a, b), -Infinity);
18105
18106
  var ReducerMin = /* @__PURE__ */ make((a, b) => Math.min(a, b), Infinity);
18106
18107
 
18107
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/String.js
18108
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/String.js
18108
18109
  var String2 = globalThis.String;
18109
18110
  var toLowerCase = (self) => self.toLowerCase();
18110
18111
  var trim = (self) => self.trim();
18111
18112
  var isNonEmpty = (self) => self.length > 0;
18112
18113
 
18113
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Cron.js
18114
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Cron.js
18114
18115
  var TypeId10 = "~effect/time/Cron";
18115
18116
  function toPojo(cron2) {
18116
18117
  const out = {
@@ -18629,7 +18630,7 @@ function aliasOrValue(field, aliases) {
18629
18630
  }
18630
18631
  var decimalRegex = /^\d+$/;
18631
18632
 
18632
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/random.js
18633
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/random.js
18633
18634
  var Random = /* @__PURE__ */ Reference("effect/Random", {
18634
18635
  defaultValue: () => ({
18635
18636
  nextIntUnsafe() {
@@ -18641,7 +18642,7 @@ var Random = /* @__PURE__ */ Reference("effect/Random", {
18641
18642
  })
18642
18643
  });
18643
18644
 
18644
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Pull.js
18645
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Pull.js
18645
18646
  var catchDone = /* @__PURE__ */ dual(2, (effect, f) => catchCauseFilter(effect, filterDoneLeftover, (l) => f(l)));
18646
18647
  var filterDone = /* @__PURE__ */ composePassthrough(findError2, (e) => isDone2(e) ? succeed2(e) : fail2(e));
18647
18648
  var filterDoneLeftover = /* @__PURE__ */ composePassthrough(findError2, (e) => isDone2(e) ? succeed2(e.value) : fail2(e));
@@ -18653,7 +18654,7 @@ var matchEffect2 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
18653
18654
  }
18654
18655
  }));
18655
18656
 
18656
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Schedule.js
18657
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Schedule.js
18657
18658
  var TypeId11 = "~effect/Schedule";
18658
18659
  var randomNext = /* @__PURE__ */ Random.useSync((random2) => random2.nextDoubleUnsafe());
18659
18660
  var CurrentMetadata2 = /* @__PURE__ */ Reference("effect/Schedule/CurrentMetadata", {
@@ -18943,11 +18944,11 @@ var constIdentity = /* @__PURE__ */ fromStep(/* @__PURE__ */ succeed3((_now, inp
18943
18944
  var identity_ = () => constIdentity;
18944
18945
  var setInputType = () => (self) => self;
18945
18946
 
18946
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/layer.js
18947
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/layer.js
18947
18948
  var provideLayer = (self, layer, options) => scopedWith((scope3) => flatMap4(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope3) : buildWithScope(layer, scope3), (context3) => provideContext(self, context3)));
18948
18949
  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));
18949
18950
 
18950
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/schedule.js
18951
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schedule.js
18951
18952
  var repeatOrElse = /* @__PURE__ */ dual(3, (self, schedule2, orElse4) => flatMap4(toStepWithMetadata(schedule2), (step) => {
18952
18953
  let meta3 = CurrentMetadata2.defaultValue();
18953
18954
  return catch_(forever(tap2(flatMap4(suspend(() => provideService(self, CurrentMetadata2, meta3)), step), (meta_) => sync(() => {
@@ -19018,7 +19019,7 @@ var buildFromOptions = (options) => {
19018
19019
  return schedule2;
19019
19020
  };
19020
19021
 
19021
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/executionPlan.js
19022
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/executionPlan.js
19022
19023
  var makeEventEmitter = (onEvent, currentMetadata) => {
19023
19024
  let lastStepIndex = -1;
19024
19025
  let stepAttempt = 0;
@@ -19123,7 +19124,7 @@ var scheduleFromStep = (step, first) => {
19123
19124
  };
19124
19125
  var scheduleOnce = /* @__PURE__ */ recurs(1);
19125
19126
 
19126
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Request.js
19127
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Request.js
19127
19128
  var TypeId12 = "~effect/Request";
19128
19129
  var requestVariance = /* @__PURE__ */ byReferenceUnsafe({
19129
19130
  /* c8 ignore next */
@@ -19139,7 +19140,7 @@ var RequestPrototype = {
19139
19140
  };
19140
19141
  var makeEntry = (options) => options;
19141
19142
 
19142
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/request.js
19143
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/request.js
19143
19144
  var request = /* @__PURE__ */ dual(2, (self, resolver) => {
19144
19145
  const withResolver = (resolver2) => callback((resume) => {
19145
19146
  const entry = addEntry(resolver2, self, resume, getCurrentFiber());
@@ -19249,7 +19250,7 @@ function runBatch(batch) {
19249
19250
  return batch.run;
19250
19251
  }
19251
19252
 
19252
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Metric.js
19253
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Metric.js
19253
19254
  var CurrentMetricAttributesKey = "effect/Metric/CurrentMetricAttributes";
19254
19255
  var CurrentMetricAttributes = /* @__PURE__ */ Reference(CurrentMetricAttributesKey, {
19255
19256
  defaultValue: () => ({})
@@ -19349,7 +19350,7 @@ function attributesToRecord(attributes) {
19349
19350
  return attributes;
19350
19351
  }
19351
19352
 
19352
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Effect.js
19353
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Effect.js
19353
19354
  var TypeId14 = EffectTypeId;
19354
19355
  var isEffect2 = isEffect;
19355
19356
  var all4 = all3;
@@ -19704,7 +19705,7 @@ var flatMapEager2 = flatMapEager;
19704
19705
  var catchEager2 = catchEager;
19705
19706
  var fnUntracedEager2 = fnUntracedEager;
19706
19707
 
19707
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/schema/annotations.js
19708
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/annotations.js
19708
19709
  function resolve(ast) {
19709
19710
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
19710
19711
  }
@@ -19721,13 +19722,13 @@ var resolveIdentifierFallback = /* @__PURE__ */ resolveAt(IDENTIFIER_FALLBACK_KE
19721
19722
  var resolveTitle = /* @__PURE__ */ resolveAt("title");
19722
19723
  var resolveBrands = /* @__PURE__ */ resolveAt("brands");
19723
19724
  var getExpected = /* @__PURE__ */ memoize((ast) => {
19724
- const identifier2 = resolveIdentifier(ast);
19725
+ const identifier2 = resolve(ast)?.identifier;
19725
19726
  if (typeof identifier2 === "string") return identifier2;
19726
19727
  return ast.getExpected(getExpected);
19727
19728
  });
19728
19729
  var annotationExcludedKeys = /* @__PURE__ */ new Set([SENTINELS_ANNOTATION_KEY, STRUCTURAL_ANNOTATION_KEY, "representation", "arbitrary", "brands", "toJsonSchema", "toCode", "toArbitrary", "toEquivalence", "toFormatter", "toCodec", "toCodecJson", "toCodecStringTree", "toCodecIso"]);
19729
19730
 
19730
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/schema/parser.js
19731
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/parser.js
19731
19732
  var missing = /* @__PURE__ */ Symbol();
19732
19733
  var succeed7 = succeed4;
19733
19734
  var missingExit = /* @__PURE__ */ succeed7(missing);
@@ -19735,7 +19736,7 @@ var sameExit = /* @__PURE__ */ succeed7(missing);
19735
19736
  var toOption2 = (value5) => value5 === missing ? none2() : some2(value5);
19736
19737
  var fromOptionExit = (option5) => option5._tag === "None" ? missingExit : succeed7(option5.value);
19737
19738
 
19738
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/SchemaIssue.js
19739
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaIssue.js
19739
19740
  var TypeId15 = "~effect/SchemaIssue/Issue";
19740
19741
  function isIssue(u) {
19741
19742
  return hasProperty(u, TypeId15) && u[TypeId15] === TypeId15;
@@ -20032,44 +20033,53 @@ function formatCheck(check3) {
20032
20033
  }
20033
20034
  }
20034
20035
  function makeFormatterDefault() {
20035
- return (issue2) => toDefaultIssues(issue2, [], defaultLeafHook, defaultCheckHook).map(formatDefaultIssue).join("\n");
20036
+ return (issue2) => formatIssue(issue2, "");
20036
20037
  }
20037
20038
  var defaultFormatter = /* @__PURE__ */ makeFormatterDefault();
20038
- function formatDefaultIssue(issue2) {
20039
- let out = issue2.message;
20040
- if (issue2.path && issue2.path.length > 0) {
20041
- const path = formatPath(issue2.path);
20042
- out += `
20043
- at ${path}`;
20044
- }
20045
- return out;
20046
- }
20047
- function findMessage(issue2) {
20039
+ function formatIssue(issue2, path) {
20040
+ let message;
20048
20041
  switch (issue2._tag) {
20049
- case "InvalidType":
20050
- case "OneOf":
20051
- case "Composite":
20052
- case "AnyOf":
20053
- return getMessageAnnotation(issue2.ast.annotations);
20054
- case "InvalidValue":
20055
- case "Forbidden":
20056
- return getMessageAnnotation(issue2.annotations);
20057
- case "MissingKey":
20058
- return getMessageAnnotation(issue2.annotations, "messageMissingKey");
20059
- case "UnexpectedKey":
20060
- return getMessageAnnotation(issue2.ast.annotations, "messageUnexpectedKey");
20061
- case "Filter":
20062
- return getMessageAnnotation(issue2.filter.annotations);
20042
+ case "Filter": {
20043
+ const annotated = defaultCheckHook(issue2);
20044
+ if (annotated !== void 0) {
20045
+ message = annotated;
20046
+ } else {
20047
+ if (issue2.issue._tag !== "InvalidValue") {
20048
+ return formatIssue(issue2.issue, path);
20049
+ }
20050
+ const expected = findExpected(issue2.issue);
20051
+ message = expected === void 0 ? getExpectedMessage(formatCheck(issue2.filter), issue2) : getExpectedMessage(expected, issue2.issue);
20052
+ }
20053
+ break;
20054
+ }
20063
20055
  case "Encoding":
20064
- return findMessage(issue2.issue);
20056
+ return formatIssue(issue2.issue, path);
20057
+ case "Pointer":
20058
+ return formatIssue(issue2.issue, path + formatPath(issue2.path));
20059
+ case "Composite":
20060
+ case "AnyOf": {
20061
+ if (issue2._tag === "Composite" || issue2.issues.length > 0) {
20062
+ return issue2.issues.map((issue3) => formatIssue(issue3, path)).join("\n");
20063
+ }
20064
+ message = findMessage(issue2) ?? getExpectedMessage(getExpected(issue2.ast), issue2);
20065
+ break;
20066
+ }
20067
+ default:
20068
+ message = defaultLeafHook(issue2);
20069
+ break;
20065
20070
  }
20071
+ return path ? `${message}
20072
+ at ${path}` : message;
20066
20073
  }
20067
- function getMessageAnnotation(annotations, type3 = "message") {
20068
- const message = annotations?.[type3];
20074
+ function findMessage(issue2) {
20075
+ if (issue2._tag === "Pointer") return;
20076
+ if (issue2._tag === "Encoding") return findMessage(issue2.issue);
20077
+ const annotations = issue2._tag === "Filter" ? issue2.filter.annotations : "annotations" in issue2 ? issue2.annotations : issue2.ast.annotations;
20078
+ const message = annotations?.[issue2._tag === "MissingKey" ? "messageMissingKey" : issue2._tag === "UnexpectedKey" ? "messageUnexpectedKey" : "message"];
20069
20079
  if (typeof message === "string") return message;
20070
20080
  }
20071
20081
 
20072
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/schema/cause.js
20082
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/cause.js
20073
20083
  function getSchemaIssue(cause) {
20074
20084
  let issue2;
20075
20085
  for (const reason of cause.reasons) {
@@ -20090,7 +20100,7 @@ function getSchemaIssueOrThrow(cause, message) {
20090
20100
  return issue2;
20091
20101
  }
20092
20102
 
20093
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/DateTime.js
20103
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/DateTime.js
20094
20104
  var isDateTime2 = isDateTime;
20095
20105
  var isTimeZone2 = isTimeZone;
20096
20106
  var isTimeZoneOffset2 = isTimeZoneOffset;
@@ -20114,7 +20124,7 @@ var toEpochMillis2 = toEpochMillis;
20114
20124
  var formatIso2 = formatIso;
20115
20125
  var formatIsoZoned2 = formatIsoZoned;
20116
20126
 
20117
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Encoding.js
20127
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Encoding.js
20118
20128
  var EncodingErrorTypeId = "~effect/encoding/EncodingError";
20119
20129
  var EncodingError = class extends (/* @__PURE__ */ TaggedError2("EncodingError")) {
20120
20130
  /**
@@ -20284,7 +20294,7 @@ var fromHexChar = (byte) => {
20284
20294
  };
20285
20295
  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"];
20286
20296
 
20287
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/SchemaGetter.js
20297
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaGetter.js
20288
20298
  var Getter = class _Getter extends Class {
20289
20299
  run;
20290
20300
  constructor(run2) {
@@ -20571,7 +20581,7 @@ function collectBracketPathEntries(isLeaf) {
20571
20581
  };
20572
20582
  }
20573
20583
 
20574
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/SchemaTransformation.js
20584
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaTransformation.js
20575
20585
  var Middleware = class _Middleware {
20576
20586
  _tag = "Middleware";
20577
20587
  decode;
@@ -20812,7 +20822,7 @@ var dateTimeZonedFromString = /* @__PURE__ */ transformOrFail2({
20812
20822
  encode: (zoned) => succeed6(formatIsoZoned2(zoned))
20813
20823
  });
20814
20824
 
20815
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/SchemaAST.js
20825
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaAST.js
20816
20826
  function makeGuard(tag4) {
20817
20827
  return (ast) => ast._tag === tag4;
20818
20828
  }
@@ -21851,6 +21861,11 @@ function collectSentinels(ast) {
21851
21861
  }
21852
21862
  return [];
21853
21863
  });
21864
+ case "Union": {
21865
+ if (ast.types.length === 0) return [];
21866
+ const members = ast.types.map((type3) => collectSentinels(toCandidate(type3)));
21867
+ return members[0].filter((s) => members.every((sentinels) => sentinels.some((o) => o.key === s.key && o.literal === s.literal)));
21868
+ }
21854
21869
  case "Suspend":
21855
21870
  return collectSentinels(ast.thunk());
21856
21871
  }
@@ -21858,15 +21873,18 @@ function collectSentinels(ast) {
21858
21873
  var candidateIndexCache = /* @__PURE__ */ new WeakMap();
21859
21874
  var emptyCandidates = /* @__PURE__ */ Object.freeze([]);
21860
21875
  function getIndex(types) {
21861
- let idx = candidateIndexCache.get(types);
21862
- if (idx) return idx;
21863
- idx = {};
21876
+ let index2 = candidateIndexCache.get(types);
21877
+ if (index2) return index2;
21878
+ let bySentinel;
21879
+ let sentinelCandidateCount = 0;
21880
+ let otherwise;
21864
21881
  let literalCandidates;
21882
+ let onlyLiterals = true;
21865
21883
  for (let i = 0; i < types.length; i++) {
21866
21884
  const a = types[i];
21867
21885
  const encoded = toCandidate(a);
21868
21886
  if (isNever2(encoded)) continue;
21869
- if (literalCandidates !== null) {
21887
+ if (onlyLiterals) {
21870
21888
  if (isLiteral(encoded) || isUniqueSymbol(encoded)) {
21871
21889
  literalCandidates ??= /* @__PURE__ */ new Map();
21872
21890
  const literal2 = isLiteral(encoded) ? encoded.literal : encoded.symbol;
@@ -21874,49 +21892,106 @@ function getIndex(types) {
21874
21892
  if (!arr) literalCandidates.set(literal2, arr = []);
21875
21893
  arr.push(a);
21876
21894
  } else {
21877
- literalCandidates = null;
21895
+ onlyLiterals = false;
21878
21896
  }
21879
21897
  }
21880
21898
  const sentinels = collectSentinels(encoded);
21881
21899
  if (sentinels.length) {
21882
- idx.bySentinel ??= /* @__PURE__ */ new Map();
21900
+ bySentinel ??= /* @__PURE__ */ new Map();
21901
+ sentinelCandidateCount++;
21883
21902
  for (const {
21884
21903
  key,
21885
21904
  literal: literal2
21886
21905
  } of sentinels) {
21887
- let m = idx.bySentinel.get(key);
21888
- if (!m) idx.bySentinel.set(key, m = /* @__PURE__ */ new Map());
21889
- let arr = m.get(literal2);
21890
- if (!arr) m.set(literal2, arr = []);
21891
- if (arr[arr.length - 1] !== i) arr.push(i);
21906
+ let entry = bySentinel.get(key);
21907
+ if (!entry) bySentinel.set(key, entry = [/* @__PURE__ */ new Map(), /* @__PURE__ */ new Set()]);
21908
+ entry[1].add(i);
21909
+ let indexes = entry[0].get(literal2);
21910
+ if (!indexes) entry[0].set(literal2, indexes = /* @__PURE__ */ new Set());
21911
+ indexes.add(i);
21892
21912
  }
21893
21913
  } else {
21894
- idx.otherwise ??= {};
21914
+ otherwise ??= {};
21895
21915
  const candidateTypes = getCandidateTypes(encoded);
21896
- for (const t of candidateTypes) (idx.otherwise[t] ??= []).push(i);
21916
+ for (const t of candidateTypes) (otherwise[t] ??= []).push(i);
21897
21917
  }
21898
21918
  }
21899
- if (literalCandidates) {
21919
+ if (onlyLiterals && literalCandidates) {
21900
21920
  literalCandidates.forEach(Object.freeze);
21901
- idx = (input) => literalCandidates.get(input) ?? emptyCandidates;
21902
- } else if (idx.bySentinel?.size === 1 && !idx.otherwise) {
21903
- for (const [key, byValue] of idx.bySentinel) {
21904
- const candidates = byValue;
21905
- for (const [literal2, indexes] of byValue) {
21906
- candidates.set(literal2, Object.freeze(indexes.map((index2) => types[index2])));
21907
- }
21908
- idx = (input, isConstructor) => {
21909
- if (isObjectKeyword(input)) {
21910
- const value5 = Object.hasOwn(input, key) ? input[key] : void 0;
21911
- if (value5 !== void 0) return candidates.get(value5) ?? emptyCandidates;
21912
- if (isConstructor) return types;
21913
- }
21914
- return emptyCandidates;
21915
- };
21916
- }
21921
+ index2 = (input) => literalCandidates.get(input) ?? emptyCandidates;
21922
+ } else if (bySentinel?.size === 1 && !otherwise) {
21923
+ const [key, [byValue]] = bySentinel.entries().next().value;
21924
+ const candidates = byValue;
21925
+ for (const [literal2, indexes] of byValue) {
21926
+ candidates.set(literal2, Object.freeze(Array.from(indexes, (index3) => types[index3])));
21927
+ }
21928
+ index2 = (input, isConstructor) => {
21929
+ if (isObjectKeyword(input)) {
21930
+ const value5 = Object.hasOwn(input, key) ? input[key] : void 0;
21931
+ if (value5 !== void 0) return candidates.get(value5) ?? emptyCandidates;
21932
+ if (isConstructor) return types;
21933
+ }
21934
+ return emptyCandidates;
21935
+ };
21936
+ } else if (bySentinel) {
21937
+ let commonSentinel;
21938
+ for (const entry of bySentinel) {
21939
+ if ((!commonSentinel || entry[1][0].size > commonSentinel[1][0].size) && entry[1][1].size === sentinelCandidateCount) {
21940
+ commonSentinel = entry;
21941
+ }
21942
+ }
21943
+ index2 = (input, isConstructor) => {
21944
+ const runtimeType = input === null ? "null" : Array.isArray(input) ? "array" : typeof input;
21945
+ const base2 = otherwise?.[runtimeType] ?? emptyCandidates;
21946
+ if (!isObjectKeyword(input)) return base2.map((i) => types[i]);
21947
+ const selected = new Set(base2);
21948
+ let directKey;
21949
+ if (commonSentinel) {
21950
+ const [key, [byValue]] = commonSentinel;
21951
+ const hasKey = Object.hasOwn(input, key);
21952
+ const value5 = hasKey ? input[key] : void 0;
21953
+ if (hasKey && (!isConstructor || value5 !== void 0)) {
21954
+ const match9 = byValue.get(value5);
21955
+ if (!match9) return base2.map((i) => types[i]);
21956
+ for (const i of match9) selected.add(i);
21957
+ directKey = key;
21958
+ }
21959
+ }
21960
+ if (directKey === void 0) {
21961
+ for (const [key, [byValue, all5]] of bySentinel) {
21962
+ const hasKey = Object.hasOwn(input, key);
21963
+ const value5 = hasKey ? input[key] : void 0;
21964
+ if (hasKey && (!isConstructor || value5 !== void 0)) {
21965
+ const match9 = byValue.get(value5);
21966
+ if (match9) {
21967
+ for (const i of match9) selected.add(i);
21968
+ }
21969
+ } else if (isConstructor) {
21970
+ for (const i of all5) selected.add(i);
21971
+ }
21972
+ }
21973
+ }
21974
+ for (const [key, [byValue, all5]] of bySentinel) {
21975
+ if (key === directKey) continue;
21976
+ const hasKey = Object.hasOwn(input, key);
21977
+ const value5 = hasKey ? input[key] : void 0;
21978
+ if (hasKey && (!isConstructor || value5 !== void 0)) {
21979
+ const match9 = byValue.get(value5);
21980
+ for (const i of selected) {
21981
+ if (all5.has(i) && !match9?.has(i)) selected.delete(i);
21982
+ }
21983
+ }
21984
+ }
21985
+ return Array.from(selected).sort((a, b) => a - b).map((i) => types[i]);
21986
+ };
21987
+ } else {
21988
+ index2 = (input) => {
21989
+ const runtimeType = input === null ? "null" : Array.isArray(input) ? "array" : typeof input;
21990
+ return (otherwise?.[runtimeType] ?? emptyCandidates).map((i) => types[i]).filter(filterLiterals(input));
21991
+ };
21917
21992
  }
21918
- candidateIndexCache.set(types, idx);
21919
- return idx;
21993
+ candidateIndexCache.set(types, index2);
21994
+ return index2;
21920
21995
  }
21921
21996
  function filterLiterals(input) {
21922
21997
  return (ast) => {
@@ -21925,31 +22000,7 @@ function filterLiterals(input) {
21925
22000
  };
21926
22001
  }
21927
22002
  function getCandidates(input, types, isConstructor = false) {
21928
- const idx = getIndex(types);
21929
- if (typeof idx === "function") return idx(input, isConstructor);
21930
- const runtimeType = input === null ? "null" : Array.isArray(input) ? "array" : typeof input;
21931
- if (idx.bySentinel) {
21932
- const base2 = idx.otherwise?.[runtimeType] ?? emptyCandidates;
21933
- if (isObjectKeyword(input)) {
21934
- const selected = new Set(base2);
21935
- for (const [k, m] of idx.bySentinel) {
21936
- const value5 = Object.hasOwn(input, k) ? input[k] : void 0;
21937
- if (value5 !== void 0) {
21938
- const match9 = m.get(value5);
21939
- if (match9) {
21940
- for (const candidate of match9) selected.add(candidate);
21941
- }
21942
- } else if (isConstructor) {
21943
- for (const indexes of m.values()) {
21944
- for (const candidate of indexes) selected.add(candidate);
21945
- }
21946
- }
21947
- }
21948
- return Array.from(selected).sort((a, b) => a - b).map((i) => types[i]);
21949
- }
21950
- return base2.map((i) => types[i]);
21951
- }
21952
- return (idx.otherwise?.[runtimeType] ?? emptyCandidates).map((i) => types[i]).filter(filterLiterals(input));
22003
+ return getIndex(types)(input, isConstructor);
21953
22004
  }
21954
22005
  var Union = class _Union extends Base2 {
21955
22006
  _tag = "Union";
@@ -22761,7 +22812,7 @@ var StringTree = /* @__PURE__ */ new Declaration([], () => (input, ast, options)
22761
22812
  });
22762
22813
  var unknownToStringTree = /* @__PURE__ */ new Link(StringTree, /* @__PURE__ */ passthrough3());
22763
22814
 
22764
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Chunk.js
22815
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Chunk.js
22765
22816
  var TypeId18 = "~effect/collections/Chunk";
22766
22817
  function copy2(src, srcPos, dest, destPos, len) {
22767
22818
  for (let i = srcPos; i < Math.min(src.length, srcPos + len); i++) {
@@ -22945,7 +22996,7 @@ var getUnsafe3 = /* @__PURE__ */ dual(2, (self, index2) => {
22945
22996
  });
22946
22997
  var size = (self) => self.length;
22947
22998
 
22948
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Fiber.js
22999
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Fiber.js
22949
23000
  var Fiber_exports = {};
22950
23001
  __export(Fiber_exports, {
22951
23002
  await: () => await_,
@@ -22972,7 +23023,7 @@ var isFiber = (u) => hasProperty(u, FiberTypeId);
22972
23023
  var getCurrent = getCurrentFiber;
22973
23024
  var runIn = fiberRunIn;
22974
23025
 
22975
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/MutableRef.js
23026
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/MutableRef.js
22976
23027
  var TypeId19 = "~effect/MutableRef";
22977
23028
  var MutableRefProto = {
22978
23029
  [TypeId19]: TypeId19,
@@ -22994,7 +23045,7 @@ var set = /* @__PURE__ */ dual(2, (self, value5) => {
22994
23045
  return self;
22995
23046
  });
22996
23047
 
22997
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Schema.js
23048
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Schema.js
22998
23049
  var Schema_exports = {};
22999
23050
  __export(Schema_exports, {
23000
23051
  Any: () => Any2,
@@ -23344,7 +23395,7 @@ __export(Schema_exports, {
23344
23395
  withDecodingDefaultTypeKey: () => withDecodingDefaultTypeKey
23345
23396
  });
23346
23397
 
23347
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/HashMap.js
23398
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/HashMap.js
23348
23399
  var HashMap_exports = {};
23349
23400
  __export(HashMap_exports, {
23350
23401
  beginMutation: () => beginMutation2,
@@ -23387,7 +23438,7 @@ __export(HashMap_exports, {
23387
23438
  values: () => values2
23388
23439
  });
23389
23440
 
23390
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/hashMap.js
23441
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/hashMap.js
23391
23442
  var HashMapTypeId = "~effect/collections/HashMap";
23392
23443
  var SHIFT = 5;
23393
23444
  var BUCKET_SIZE = 1 << SHIFT;
@@ -24230,7 +24281,7 @@ var every2 = /* @__PURE__ */ dual(2, (self, predicate) => {
24230
24281
  return true;
24231
24282
  });
24232
24283
 
24233
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/HashMap.js
24284
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/HashMap.js
24234
24285
  var isHashMap2 = isHashMap;
24235
24286
  var empty6 = empty5;
24236
24287
  var make18 = make17;
@@ -24270,7 +24321,7 @@ var findFirst6 = findFirst5;
24270
24321
  var some5 = some4;
24271
24322
  var every3 = every2;
24272
24323
 
24273
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/hashSet.js
24324
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/hashSet.js
24274
24325
  var HashSetTypeId = "~effect/collections/HashSet";
24275
24326
  var HashSetProto = {
24276
24327
  [symbol]() {
@@ -24324,12 +24375,12 @@ var every4 = (self, predicate) => {
24324
24375
  return true;
24325
24376
  };
24326
24377
 
24327
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/HashSet.js
24378
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/HashSet.js
24328
24379
  var fromIterable7 = fromIterable6;
24329
24380
  var isHashSet2 = isHashSet;
24330
24381
  var size5 = size4;
24331
24382
 
24332
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/SchemaParser.js
24383
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/SchemaParser.js
24333
24384
  function makeEffect(schema) {
24334
24385
  const parser = runWithCompiler(constructorCompiler, toType(schema.ast));
24335
24386
  return (input, options) => {
@@ -24627,7 +24678,7 @@ function makeParser(ast, compile, compileConstructorDefault2, constructorDefault
24627
24678
  };
24628
24679
  }
24629
24680
 
24630
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/schema/schema.js
24681
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/schema.js
24631
24682
  var TypeId20 = "~effect/Schema/Schema";
24632
24683
  function makeDeclarationReviver(id2, payloadSchema, revive) {
24633
24684
  return {
@@ -24672,7 +24723,7 @@ function make21(ast, options) {
24672
24723
  return self;
24673
24724
  }
24674
24725
 
24675
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Struct.js
24726
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Struct.js
24676
24727
  var pick = /* @__PURE__ */ dual(2, (self, keys4) => {
24677
24728
  return buildStruct(self, (k, v) => keys4.includes(k) ? [k, v] : void 0);
24678
24729
  });
@@ -24715,7 +24766,7 @@ function makeCombiner(combiners, options) {
24715
24766
  });
24716
24767
  }
24717
24768
 
24718
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/UndefinedOr.js
24769
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/UndefinedOr.js
24719
24770
  function makeReducer2(combiner2) {
24720
24771
  return make((self, that) => {
24721
24772
  if (self === void 0) return that;
@@ -24724,7 +24775,7 @@ function makeReducer2(combiner2) {
24724
24775
  }, void 0);
24725
24776
  }
24726
24777
 
24727
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/errors.js
24778
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/errors.js
24728
24779
  function errorWithPath(message, path) {
24729
24780
  if (path.length > 0) {
24730
24781
  message += `
@@ -24733,7 +24784,7 @@ function errorWithPath(message, path) {
24733
24784
  return new Error(message);
24734
24785
  }
24735
24786
 
24736
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/schema/toArbitrary.js
24787
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/toArbitrary.js
24737
24788
  var arbitraryMemoMap = /* @__PURE__ */ new WeakMap();
24738
24789
  var suspendDepthIdentifierMap = /* @__PURE__ */ new WeakMap();
24739
24790
  var emptyRecursionStack = [];
@@ -25395,7 +25446,7 @@ function base(ast, path) {
25395
25446
  }
25396
25447
  }
25397
25448
 
25398
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/schema/toEquivalence.js
25449
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/toEquivalence.js
25399
25450
  var toEquivalence = /* @__PURE__ */ memoize((ast) => {
25400
25451
  return recur2(ast, []);
25401
25452
  });
@@ -25518,7 +25569,7 @@ function recur2(ast, path) {
25518
25569
  }
25519
25570
  }
25520
25571
 
25521
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/JsonPointer.js
25572
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/JsonPointer.js
25522
25573
  function escapeToken(token) {
25523
25574
  return token.replace(/~/g, "~0").replace(/\//g, "~1");
25524
25575
  }
@@ -25526,7 +25577,7 @@ function unescapeToken(token) {
25526
25577
  return token.replace(/~1/g, "/").replace(/~0/g, "~");
25527
25578
  }
25528
25579
 
25529
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/JsonSchema.js
25580
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/JsonSchema.js
25530
25581
  var RE_DEFS = /^#\/\$defs(?=\/|$)/;
25531
25582
  var DRAFT_04_COPY_KEYWORDS = /* @__PURE__ */ new Set(["$ref", "type", "required", "enum", "title", "description", "default", "format", "pattern", "minLength", "maxLength", "minItems", "maxItems", "minProperties", "maxProperties", "multipleOf", "uniqueItems"]);
25532
25583
  var DRAFT_07_COPY_KEYWORDS = /* @__PURE__ */ new Set([...DRAFT_04_COPY_KEYWORDS, "const", "examples", "readOnly", "writeOnly", "minimum", "maximum", "exclusiveMinimum", "exclusiveMaximum"]);
@@ -25641,11 +25692,11 @@ function mapObject(value5, f) {
25641
25692
  return isObject(value5) ? map3(value5, f) : void 0;
25642
25693
  }
25643
25694
 
25644
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/RegExp.js
25695
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/RegExp.js
25645
25696
  var RegExp2 = globalThis.RegExp;
25646
25697
  var escape2 = (string6) => string6.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
25647
25698
 
25648
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/schema/toJsonSchemaDocument.js
25699
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/toJsonSchemaDocument.js
25649
25700
  var jsonSchemaAnnotationExcludedKeys = /* @__PURE__ */ new Set([...annotationExcludedKeys, IDENTIFIER_FALLBACK_KEY, ...jsonSchemaAnnotationKeys]);
25650
25701
  var toRepresentationOptions = {
25651
25702
  isAnonymousReferenceAllowed: (ast) => !isDeclaration(ast)
@@ -26149,7 +26200,7 @@ function toJsonSchemaDocument(document, options) {
26149
26200
  };
26150
26201
  }
26151
26202
 
26152
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/schema/toRepresentation.js
26203
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/schema/toRepresentation.js
26153
26204
  function toRepresentation(ast, options) {
26154
26205
  const {
26155
26206
  references,
@@ -26495,7 +26546,7 @@ function fromASTs(asts, options) {
26495
26546
  }
26496
26547
  }
26497
26548
 
26498
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/JsonPatch.js
26549
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/JsonPatch.js
26499
26550
  function get5(oldValue, newValue) {
26500
26551
  const patches = [];
26501
26552
  getLoop(oldValue, newValue, "", patches);
@@ -26676,7 +26727,7 @@ function rebuildFromStack(stack, newParent) {
26676
26727
  return acc;
26677
26728
  }
26678
26729
 
26679
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Optic.js
26730
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Optic.js
26680
26731
  function makeIso(get7, set6) {
26681
26732
  return make22(primitiveNode("Iso", get7, set6));
26682
26733
  }
@@ -27022,7 +27073,7 @@ function id() {
27022
27073
  return identityIso;
27023
27074
  }
27024
27075
 
27025
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/redacted.js
27076
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/redacted.js
27026
27077
  var redactedRegistry = /* @__PURE__ */ new WeakMap();
27027
27078
  var value = (self) => {
27028
27079
  if (redactedRegistry.has(self)) {
@@ -27032,7 +27083,7 @@ var value = (self) => {
27032
27083
  }
27033
27084
  };
27034
27085
 
27035
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Redacted.js
27086
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Redacted.js
27036
27087
  var TypeId21 = "~effect/data/Redacted";
27037
27088
  var isRedacted = (u) => hasProperty(u, TypeId21);
27038
27089
  var make23 = (value5, options) => {
@@ -27065,28 +27116,8 @@ var Proto4 = {
27065
27116
  var value2 = value;
27066
27117
  var makeEquivalence5 = (isEquivalent) => make2((x, y) => isEquivalent(value2(x), value2(y)));
27067
27118
 
27068
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/SchemaError.js
27069
- var TypeId22 = "~effect/SchemaError/SchemaError";
27070
- var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
27071
- [TypeId22] = TypeId22;
27072
- constructor(issue2) {
27073
- super({
27074
- issue: issue2
27075
- });
27076
- }
27077
- get message() {
27078
- return defaultFormatter(this.issue);
27079
- }
27080
- toString() {
27081
- return `SchemaError(${this.message})`;
27082
- }
27083
- };
27084
- function isSchemaError(u) {
27085
- return hasProperty(u, TypeId22) && u[TypeId22] === TypeId22;
27086
- }
27087
-
27088
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Schema.js
27089
- var TypeId23 = TypeId20;
27119
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Schema.js
27120
+ var TypeId22 = TypeId20;
27090
27121
  function declareConstructor() {
27091
27122
  return (typeParameters, run2, annotations) => {
27092
27123
  return make24(new Declaration(typeParameters.map(getAST), (typeParameters2) => run2(typeParameters2.map((ast) => make24(ast))), annotations));
@@ -27112,6 +27143,24 @@ function annotateKey2(annotations) {
27112
27143
  function revealCodec(codec2) {
27113
27144
  return codec2;
27114
27145
  }
27146
+ var SchemaErrorTypeId = "~effect/SchemaError/SchemaError";
27147
+ var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
27148
+ [SchemaErrorTypeId] = SchemaErrorTypeId;
27149
+ constructor(issue2) {
27150
+ super({
27151
+ issue: issue2
27152
+ });
27153
+ }
27154
+ get message() {
27155
+ return defaultFormatter(this.issue);
27156
+ }
27157
+ toString() {
27158
+ return `SchemaError(${this.message})`;
27159
+ }
27160
+ };
27161
+ function isSchemaError(u) {
27162
+ return hasProperty(u, SchemaErrorTypeId) && u[SchemaErrorTypeId] === SchemaErrorTypeId;
27163
+ }
27115
27164
  function makeStandardResult(exit3) {
27116
27165
  return isSuccess4(exit3) ? exit3.value : {
27117
27166
  issues: [{
@@ -27324,7 +27373,7 @@ function encodeUnknownSync2(schema, options) {
27324
27373
  var encodeSync2 = encodeUnknownSync2;
27325
27374
  var make24 = make21;
27326
27375
  function isSchema(u) {
27327
- return hasProperty(u, TypeId23) && u[TypeId23] === TypeId23;
27376
+ return hasProperty(u, TypeId22) && u[TypeId22] === TypeId22;
27328
27377
  }
27329
27378
  var optionalKey2 = /* @__PURE__ */ lambda((schema) => make24(optionalKey(schema.ast), {
27330
27379
  schema
@@ -30555,7 +30604,7 @@ function makeClass(Inherited, identifier2, struct2, annotations, proto) {
30555
30604
  }
30556
30605
  });
30557
30606
  }
30558
- static [TypeId23] = TypeId23;
30607
+ static [TypeId22] = TypeId22;
30559
30608
  get [ClassTypeId]() {
30560
30609
  return ClassTypeId;
30561
30610
  }
@@ -31266,7 +31315,7 @@ function resolveAnnotationsKey(schema) {
31266
31315
  return schema.ast.context?.annotations;
31267
31316
  }
31268
31317
 
31269
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Console.js
31318
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Console.js
31270
31319
  var Console_exports = {};
31271
31320
  __export(Console_exports, {
31272
31321
  Console: () => Console,
@@ -31363,7 +31412,7 @@ var withTime = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, label)
31363
31412
  console2.timeEnd(label);
31364
31413
  }))));
31365
31414
 
31366
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Match.js
31415
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Match.js
31367
31416
  var Match_exports = {};
31368
31417
  __export(Match_exports, {
31369
31418
  any: () => any3,
@@ -31405,10 +31454,10 @@ __export(Match_exports, {
31405
31454
  withReturnType: () => withReturnType2
31406
31455
  });
31407
31456
 
31408
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/internal/matcher.js
31409
- var TypeId24 = "~effect/match/Match/Matcher";
31457
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/internal/matcher.js
31458
+ var TypeId23 = "~effect/match/Match/Matcher";
31410
31459
  var TypeMatcherProto = {
31411
- [TypeId24]: {
31460
+ [TypeId23]: {
31412
31461
  _input: identity,
31413
31462
  _filters: identity,
31414
31463
  _remaining: identity,
@@ -31429,7 +31478,7 @@ function makeTypeMatcher(cases) {
31429
31478
  return matcher;
31430
31479
  }
31431
31480
  var ValueMatcherProto = {
31432
- [TypeId24]: {
31481
+ [TypeId23]: {
31433
31482
  _input: identity,
31434
31483
  _filters: identity,
31435
31484
  _result: identity,
@@ -31658,7 +31707,7 @@ var exhaustive = (self) => {
31658
31707
  };
31659
31708
  };
31660
31709
 
31661
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Match.js
31710
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Match.js
31662
31711
  var type2 = type;
31663
31712
  var value4 = value3;
31664
31713
  var valueTags2 = valueTags;
@@ -31697,7 +31746,7 @@ var result4 = result3;
31697
31746
  var option4 = option3;
31698
31747
  var exhaustive2 = exhaustive;
31699
31748
 
31700
- // ../../node_modules/.pnpm/effect@4.0.0-beta.107/node_modules/effect/dist/Ref.js
31749
+ // ../../node_modules/.pnpm/effect@4.0.0-rc.108/node_modules/effect/dist/Ref.js
31701
31750
  var Ref_exports = {};
31702
31751
  __export(Ref_exports, {
31703
31752
  get: () => get6,
@@ -31716,9 +31765,9 @@ __export(Ref_exports, {
31716
31765
  updateSome: () => updateSome,
31717
31766
  updateSomeAndGet: () => updateSomeAndGet
31718
31767
  });
31719
- var TypeId25 = "~effect/Ref";
31768
+ var TypeId24 = "~effect/Ref";
31720
31769
  var RefProto = {
31721
- [TypeId25]: {
31770
+ [TypeId24]: {
31722
31771
  _A: identity
31723
31772
  },
31724
31773
  ...PipeInspectableProto,