create-efffrida-app 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/bin.cjs +874 -722
  2. package/package.json +4 -4
package/dist/bin.cjs CHANGED
@@ -4,7 +4,7 @@
4
4
  var Cs = require('stream');
5
5
  var NodeChildProcess = require('child_process');
6
6
  var NodeCrypto = require('crypto');
7
- var m = require('fs');
7
+ var u = require('fs');
8
8
  var OS = require('os');
9
9
  var R = require('path');
10
10
  var NodeUrl = require('url');
@@ -39,7 +39,7 @@ function _interopNamespace(e) {
39
39
  var Cs__default = /*#__PURE__*/_interopDefault(Cs);
40
40
  var NodeChildProcess__namespace = /*#__PURE__*/_interopNamespace(NodeChildProcess);
41
41
  var NodeCrypto__namespace = /*#__PURE__*/_interopNamespace(NodeCrypto);
42
- var m__namespace = /*#__PURE__*/_interopNamespace(m);
42
+ var u__namespace = /*#__PURE__*/_interopNamespace(u);
43
43
  var OS__namespace = /*#__PURE__*/_interopNamespace(OS);
44
44
  var R__namespace = /*#__PURE__*/_interopNamespace(R);
45
45
  var NodeUrl__namespace = /*#__PURE__*/_interopNamespace(NodeUrl);
@@ -8067,18 +8067,18 @@ var require_set = __commonJS({
8067
8067
  }
8068
8068
  static from(schema, iterable, ctx) {
8069
8069
  const { replacer } = ctx;
8070
- const set6 = new this(schema);
8070
+ const set5 = new this(schema);
8071
8071
  if (iterable && Symbol.iterator in Object(iterable))
8072
8072
  for (let value3 of iterable) {
8073
8073
  if (typeof replacer === "function")
8074
8074
  value3 = replacer.call(iterable, value3, value3);
8075
- set6.items.push(Pair.createPair(value3, null, ctx));
8075
+ set5.items.push(Pair.createPair(value3, null, ctx));
8076
8076
  }
8077
- return set6;
8077
+ return set5;
8078
8078
  }
8079
8079
  };
8080
8080
  YAMLSet.tag = "tag:yaml.org,2002:set";
8081
- var set5 = {
8081
+ var set4 = {
8082
8082
  collection: "map",
8083
8083
  identify: (value3) => value3 instanceof Set,
8084
8084
  nodeClass: YAMLSet,
@@ -8097,7 +8097,7 @@ var require_set = __commonJS({
8097
8097
  }
8098
8098
  };
8099
8099
  exports.YAMLSet = YAMLSet;
8100
- exports.set = set5;
8100
+ exports.set = set4;
8101
8101
  }
8102
8102
  });
8103
8103
 
@@ -8202,7 +8202,7 @@ var require_schema3 = __commonJS({
8202
8202
  var merge5 = require_merge();
8203
8203
  var omap = require_omap();
8204
8204
  var pairs = require_pairs();
8205
- var set5 = require_set();
8205
+ var set4 = require_set();
8206
8206
  var timestamp = require_timestamp();
8207
8207
  var schema = [
8208
8208
  map15.map,
@@ -8222,7 +8222,7 @@ var require_schema3 = __commonJS({
8222
8222
  merge5.merge,
8223
8223
  omap.omap,
8224
8224
  pairs.pairs,
8225
- set5.set,
8225
+ set4.set,
8226
8226
  timestamp.intTime,
8227
8227
  timestamp.floatTime,
8228
8228
  timestamp.timestamp
@@ -8248,7 +8248,7 @@ var require_tags = __commonJS({
8248
8248
  var omap = require_omap();
8249
8249
  var pairs = require_pairs();
8250
8250
  var schema$2 = require_schema3();
8251
- var set5 = require_set();
8251
+ var set4 = require_set();
8252
8252
  var timestamp = require_timestamp();
8253
8253
  var schemas = /* @__PURE__ */ new Map([
8254
8254
  ["core", schema.schema],
@@ -8274,7 +8274,7 @@ var require_tags = __commonJS({
8274
8274
  omap: omap.omap,
8275
8275
  pairs: pairs.pairs,
8276
8276
  seq: seq.seq,
8277
- set: set5.set,
8277
+ set: set4.set,
8278
8278
  timestamp: timestamp.timestamp
8279
8279
  };
8280
8280
  var coreKnownTags = {
@@ -8282,7 +8282,7 @@ var require_tags = __commonJS({
8282
8282
  "tag:yaml.org,2002:merge": merge5.merge,
8283
8283
  "tag:yaml.org,2002:omap": omap.omap,
8284
8284
  "tag:yaml.org,2002:pairs": pairs.pairs,
8285
- "tag:yaml.org,2002:set": set5.set,
8285
+ "tag:yaml.org,2002:set": set4.set,
8286
8286
  "tag:yaml.org,2002:timestamp": timestamp.timestamp
8287
8287
  };
8288
8288
  function getTags(customTags, schemaName, addMergeTag) {
@@ -12376,7 +12376,7 @@ var require_dist = __commonJS({
12376
12376
  }
12377
12377
  });
12378
12378
 
12379
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Effect.js
12379
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Effect.js
12380
12380
  var Effect_exports = {};
12381
12381
  __export(Effect_exports, {
12382
12382
  Do: () => Do2,
@@ -12585,12 +12585,12 @@ __export(Effect_exports, {
12585
12585
  unwrapReason: () => unwrapReason2,
12586
12586
  updateContext: () => updateContext2,
12587
12587
  updateService: () => updateService2,
12588
+ updateServiceScoped: () => updateServiceScoped2,
12588
12589
  useSpan: () => useSpan2,
12589
12590
  validate: () => validate2,
12590
12591
  void: () => void_3,
12591
12592
  when: () => when2,
12592
12593
  whileLoop: () => whileLoop2,
12593
- withConcurrency: () => withConcurrency2,
12594
12594
  withErrorReporting: () => withErrorReporting2,
12595
12595
  withExecutionPlan: () => withExecutionPlan2,
12596
12596
  withFiber: () => withFiber2,
@@ -12608,7 +12608,7 @@ __export(Effect_exports, {
12608
12608
  zipWith: () => zipWith2
12609
12609
  });
12610
12610
 
12611
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Pipeable.js
12611
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Pipeable.js
12612
12612
  var pipeArguments = (self, args2) => {
12613
12613
  switch (args2.length) {
12614
12614
  case 0:
@@ -12652,7 +12652,7 @@ var Class = /* @__PURE__ */ (function() {
12652
12652
  return PipeableBase;
12653
12653
  })();
12654
12654
 
12655
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Function.js
12655
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Function.js
12656
12656
  var dual = function(arity, body) {
12657
12657
  if (typeof arity === "function") {
12658
12658
  return function() {
@@ -12714,7 +12714,7 @@ function memoize(f2) {
12714
12714
  };
12715
12715
  }
12716
12716
 
12717
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/equal.js
12717
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/equal.js
12718
12718
  var getAllObjectKeys = (obj) => {
12719
12719
  const keys2 = new Set(Reflect.ownKeys(obj));
12720
12720
  if (obj.constructor === Object) return keys2;
@@ -12737,7 +12737,7 @@ var getAllObjectKeys = (obj) => {
12737
12737
  };
12738
12738
  var byReferenceInstances = /* @__PURE__ */ new WeakSet();
12739
12739
 
12740
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Predicate.js
12740
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Predicate.js
12741
12741
  function isString(input) {
12742
12742
  return typeof input === "string";
12743
12743
  }
@@ -12783,7 +12783,7 @@ function isIterable(input) {
12783
12783
  return hasProperty(input, Symbol.iterator) || isString(input);
12784
12784
  }
12785
12785
 
12786
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Hash.js
12786
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Hash.js
12787
12787
  var symbol = "~effect/interfaces/Hash";
12788
12788
  var hash = (self) => {
12789
12789
  switch (typeof self) {
@@ -12902,7 +12902,7 @@ function withVisitedTracking(obj, fn3) {
12902
12902
  return result3;
12903
12903
  }
12904
12904
 
12905
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Equal.js
12905
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Equal.js
12906
12906
  var symbol2 = "~effect/interfaces/Equal";
12907
12907
  function equals() {
12908
12908
  if (arguments.length === 1) {
@@ -13078,9 +13078,8 @@ function makeCompareSet(equivalence) {
13078
13078
  }
13079
13079
  var compareSets = /* @__PURE__ */ makeCompareSet(compareBoth);
13080
13080
  var isEqual = (u2) => hasProperty(u2, symbol2);
13081
- var asEquivalence = () => equals;
13082
13081
 
13083
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Redactable.js
13082
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Redactable.js
13084
13083
  var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Redactable");
13085
13084
  var isRedactable = (u2) => hasProperty(u2, symbolRedactable);
13086
13085
  function redact(u2) {
@@ -13099,7 +13098,7 @@ var emptyContext = {
13099
13098
  }
13100
13099
  };
13101
13100
 
13102
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Formatter.js
13101
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Formatter.js
13103
13102
  function format(input, options) {
13104
13103
  const space = options?.space ?? 0;
13105
13104
  const seen = /* @__PURE__ */ new WeakSet();
@@ -13198,7 +13197,7 @@ function formatJson(input, options) {
13198
13197
  }, options?.space);
13199
13198
  }
13200
13199
 
13201
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Inspectable.js
13200
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Inspectable.js
13202
13201
  var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
13203
13202
  var toJson = (input) => {
13204
13203
  try {
@@ -13262,7 +13261,7 @@ var Class2 = class {
13262
13261
  }
13263
13262
  };
13264
13263
 
13265
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Utils.js
13264
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Utils.js
13266
13265
  var SingleShotGen = class _SingleShotGen {
13267
13266
  called = false;
13268
13267
  self;
@@ -13322,7 +13321,28 @@ var pickInternalCall = () => {
13322
13321
  };
13323
13322
  var internalCall = /* @__PURE__ */ pickInternalCall();
13324
13323
 
13325
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/core.js
13324
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/record.js
13325
+ function assignProperty(self, key, value3) {
13326
+ if (key === "__proto__") {
13327
+ Object.defineProperty(self, key, {
13328
+ value: value3,
13329
+ writable: true,
13330
+ enumerable: true,
13331
+ configurable: true
13332
+ });
13333
+ } else {
13334
+ self[key] = value3;
13335
+ }
13336
+ }
13337
+ function assignProperties(self, source) {
13338
+ for (const key of Reflect.ownKeys(source)) {
13339
+ if (Object.prototype.propertyIsEnumerable.call(source, key)) {
13340
+ assignProperty(self, key, source[key]);
13341
+ }
13342
+ }
13343
+ }
13344
+
13345
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/core.js
13326
13346
  var EffectTypeId = `~effect/Effect`;
13327
13347
  var ExitTypeId = `~effect/Exit`;
13328
13348
  var effectVariance = {
@@ -13580,7 +13600,7 @@ var exitFailCause = /* @__PURE__ */ makeExit({
13580
13600
  while (fiber3.interruptible && fiber3._interruptedCause && cont) {
13581
13601
  cont = fiber3.getCont(contE);
13582
13602
  }
13583
- return cont ? cont[contE](cause, fiber3, annotated ? void 0 : this) : fiber3.yieldWith(annotated ? this : exitFailCause(cause));
13603
+ return cont ? cont[contE](cause, fiber3, annotated ? void 0 : this) : fiber3.yieldWith(annotated ? exitFailCause(cause) : this);
13584
13604
  }
13585
13605
  });
13586
13606
  var exitFail = (e) => exitFailCause(causeFail(e));
@@ -13612,7 +13632,7 @@ var Error2 = /* @__PURE__ */ (function() {
13612
13632
  cause: args2.cause
13613
13633
  } : void 0);
13614
13634
  if (args2) {
13615
- Object.assign(this, args2);
13635
+ assignProperties(this, args2);
13616
13636
  Object.defineProperty(this, plainArgsSymbol, {
13617
13637
  value: args2,
13618
13638
  enumerable: false
@@ -13665,22 +13685,19 @@ var done = (value3) => {
13665
13685
  return exitFail(Done(value3));
13666
13686
  };
13667
13687
 
13668
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Effectable.js
13688
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Effectable.js
13669
13689
  var Prototype2 = (options) => makePrimitiveProto({
13670
13690
  op: options.label,
13671
13691
  [evaluate]: options.evaluate
13672
13692
  });
13673
13693
 
13674
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/stackTraceLimit.js
13675
- var ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
13676
- var ObjectPrototypeHasOwnProperty = Object.prototype.hasOwnProperty;
13677
- var ObjectIsExtensible = Object.isExtensible;
13694
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/stackTraceLimit.js
13678
13695
  var isStackTraceLimitWritable = () => {
13679
- const desc = ObjectGetOwnPropertyDescriptor(Error, "stackTraceLimit");
13696
+ const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
13680
13697
  if (desc === void 0) {
13681
- return ObjectIsExtensible(Error);
13698
+ return Object.isExtensible(Error);
13682
13699
  }
13683
- return ObjectPrototypeHasOwnProperty.call(desc, "writable") ? desc.writable === true : desc.set !== void 0;
13700
+ return Object.hasOwn(desc, "writable") ? desc.writable === true : desc.set !== void 0;
13684
13701
  };
13685
13702
  var canWriteStackTraceLimit = /* @__PURE__ */ isStackTraceLimitWritable();
13686
13703
  var getStackTraceLimit = () => Error.stackTraceLimit;
@@ -13690,7 +13707,7 @@ var setStackTraceLimit = (value3) => {
13690
13707
  }
13691
13708
  };
13692
13709
 
13693
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Equivalence.js
13710
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Equivalence.js
13694
13711
  var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
13695
13712
  var isStrictEquivalent = (x, y) => x === y;
13696
13713
  var strictEqual = () => isStrictEquivalent;
@@ -13717,7 +13734,7 @@ function Array_(item) {
13717
13734
  });
13718
13735
  }
13719
13736
 
13720
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/doNotation.js
13737
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/doNotation.js
13721
13738
  var let_ = (map15) => dual(3, (self, name, f2) => map15(self, (a) => ({
13722
13739
  ...a,
13723
13740
  [name]: f2(a)
@@ -13730,7 +13747,7 @@ var bind = (map15, flatMap6) => dual(3, (self, name, f2) => flatMap6(self, (a) =
13730
13747
  [name]: b2
13731
13748
  }))));
13732
13749
 
13733
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/option.js
13750
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/option.js
13734
13751
  var TypeId = "~effect/data/Option";
13735
13752
  var CommonProto = {
13736
13753
  [TypeId]: {
@@ -13796,7 +13813,7 @@ var some = (value3) => {
13796
13813
  return a;
13797
13814
  };
13798
13815
 
13799
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/result.js
13816
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/result.js
13800
13817
  var TypeId2 = "~effect/data/Result";
13801
13818
  var CommonProto2 = {
13802
13819
  [TypeId2]: {
@@ -13863,7 +13880,7 @@ var succeed = (success) => {
13863
13880
  return a;
13864
13881
  };
13865
13882
 
13866
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Order.js
13883
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Order.js
13867
13884
  function make2(compare) {
13868
13885
  return (self, that) => self === that ? 0 : compare(self, that);
13869
13886
  }
@@ -13877,7 +13894,7 @@ var mapInput = /* @__PURE__ */ dual(2, (self, f2) => make2((b1, b2) => self(f2(b
13877
13894
  var Date2 = /* @__PURE__ */ mapInput(Number2, (date6) => date6.getTime());
13878
13895
  var isGreaterThan = (O2) => dual(2, (self, that) => O2(self, that) === 1);
13879
13896
 
13880
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Option.js
13897
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Option.js
13881
13898
  var none2 = () => none;
13882
13899
  var some2 = some;
13883
13900
  var isOption2 = isOption;
@@ -13896,7 +13913,7 @@ var flatMap = /* @__PURE__ */ dual(2, (self, f2) => isNone2(self) ? none2() : f2
13896
13913
  var filter = /* @__PURE__ */ dual(2, (self, predicate) => isNone2(self) ? none2() : predicate(self.value) ? some2(self.value) : none2());
13897
13914
  var liftPredicate = /* @__PURE__ */ dual(2, (b2, predicate) => predicate(b2) ? some2(b2) : none2());
13898
13915
 
13899
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Context.js
13916
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Context.js
13900
13917
  var ServiceTypeId = "~effect/Context/Service";
13901
13918
  var Service = function() {
13902
13919
  const prevLimit = getStackTraceLimit();
@@ -14072,7 +14089,7 @@ var withMapUnsafe = (self, f2) => {
14072
14089
  };
14073
14090
  var Reference = Service;
14074
14091
 
14075
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Duration.js
14092
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Duration.js
14076
14093
  var TypeId4 = "~effect/time/Duration";
14077
14094
  var bigint0 = /* @__PURE__ */ BigInt(0);
14078
14095
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -14320,10 +14337,10 @@ var subtract = /* @__PURE__ */ dual(2, (self, that) => matchPair(self, that, {
14320
14337
  }));
14321
14338
  var equals2 = /* @__PURE__ */ dual(2, (self, that) => Equivalence(self, that));
14322
14339
 
14323
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/array.js
14340
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/array.js
14324
14341
  var isArrayNonEmpty = (self) => self.length > 0;
14325
14342
 
14326
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Result.js
14343
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Result.js
14327
14344
  var succeed2 = succeed;
14328
14345
  var fail2 = fail;
14329
14346
  var try_ = (evaluate2) => {
@@ -14348,10 +14365,10 @@ var match3 = /* @__PURE__ */ dual(2, (self, {
14348
14365
  onSuccess
14349
14366
  }) => isFailure2(self) ? onFailure(self.failure) : onSuccess(self.success));
14350
14367
 
14351
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Tuple.js
14368
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Tuple.js
14352
14369
  var makeEquivalence = Tuple;
14353
14370
 
14354
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Iterable.js
14371
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Iterable.js
14355
14372
  var findFirst = /* @__PURE__ */ dual(2, (self, f2) => {
14356
14373
  let i = 0;
14357
14374
  for (const a of self) {
@@ -14394,14 +14411,14 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => ({
14394
14411
  }
14395
14412
  }));
14396
14413
 
14397
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Record.js
14414
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Record.js
14398
14415
  var has = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key));
14399
14416
  var map2 = /* @__PURE__ */ dual(2, (self, f2) => {
14400
14417
  const out = {
14401
14418
  ...self
14402
14419
  };
14403
14420
  for (const key of keys(self)) {
14404
- out[key] = f2(self[key], key);
14421
+ assignProperty(out, key, f2(self[key], key));
14405
14422
  }
14406
14423
  return out;
14407
14424
  });
@@ -14419,7 +14436,7 @@ var makeEquivalence2 = (equivalence) => {
14419
14436
  return (self, that) => is4(self, that) && is4(that, self);
14420
14437
  };
14421
14438
 
14422
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Array.js
14439
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Array.js
14423
14440
  var Array2 = globalThis.Array;
14424
14441
  var fromIterable = (collection) => Array2.isArray(collection) ? collection : Array2.from(collection);
14425
14442
  var ensure = (self) => Array2.isArray(self) ? self : [self];
@@ -14431,18 +14448,6 @@ var append = /* @__PURE__ */ dual(2, (self, last) => [...self, last]);
14431
14448
  var appendAll = /* @__PURE__ */ dual(2, (self, that) => fromIterable(self).concat(fromIterable(that)));
14432
14449
  var isArrayNonEmpty2 = isArrayNonEmpty;
14433
14450
  var isReadonlyArrayNonEmpty = isArrayNonEmpty;
14434
- function isOutOfBounds(i, as4) {
14435
- return i < 0 || i >= as4.length;
14436
- }
14437
- var getUnsafe2 = /* @__PURE__ */ dual(2, (self, index) => {
14438
- const i = Math.floor(index);
14439
- if (isOutOfBounds(i, self)) {
14440
- throw new Error(`Index out of bounds: ${i}`);
14441
- }
14442
- return self[i];
14443
- });
14444
- var headNonEmpty = /* @__PURE__ */ getUnsafe2(0);
14445
- var tailNonEmpty = (self) => self.slice(1);
14446
14451
  var findFirstIndex = /* @__PURE__ */ dual(2, (self, predicate) => {
14447
14452
  let i = 0;
14448
14453
  for (const a of self) {
@@ -14471,19 +14476,29 @@ var findLast = /* @__PURE__ */ dual(2, (self, f2) => {
14471
14476
  }
14472
14477
  return none2();
14473
14478
  });
14474
- var unionWith = /* @__PURE__ */ dual(3, (self, that, isEquivalent) => {
14479
+ var hashBucketsAdd = (buckets, value3) => {
14480
+ const hash2 = hash(value3);
14481
+ const bucket = buckets.get(hash2);
14482
+ if (bucket === void 0) {
14483
+ buckets.set(hash2, [value3]);
14484
+ return true;
14485
+ }
14486
+ for (const previous of bucket) {
14487
+ if (equals(previous, value3)) {
14488
+ return false;
14489
+ }
14490
+ }
14491
+ bucket.push(value3);
14492
+ return true;
14493
+ };
14494
+ var union = /* @__PURE__ */ dual(2, (self, that) => {
14475
14495
  const a = fromIterable(self);
14476
14496
  const b2 = fromIterable(that);
14477
14497
  if (isReadonlyArrayNonEmpty(a)) {
14478
- if (isReadonlyArrayNonEmpty(b2)) {
14479
- const dedupe = dedupeWith(isEquivalent);
14480
- return dedupe(appendAll(a, b2));
14481
- }
14482
- return a;
14498
+ return isReadonlyArrayNonEmpty(b2) ? dedupe(appendAll(a, b2)) : a;
14483
14499
  }
14484
14500
  return b2;
14485
14501
  });
14486
- var union = /* @__PURE__ */ dual(2, (self, that) => unionWith(self, that, asEquivalence()));
14487
14502
  var empty2 = () => [];
14488
14503
  var of = (a) => [a];
14489
14504
  var map3 = /* @__PURE__ */ dual(2, (self, f2) => self.map(f2));
@@ -14503,22 +14518,22 @@ var partition = /* @__PURE__ */ dual(2, (self, f2) => {
14503
14518
  });
14504
14519
  var reduce = /* @__PURE__ */ dual(3, (self, b2, f2) => fromIterable(self).reduce((b3, a, i) => f2(b3, a, i), b2));
14505
14520
  var makeEquivalence3 = Array_;
14506
- var dedupeWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => {
14521
+ var dedupe = (self) => {
14507
14522
  const input = fromIterable(self);
14508
- if (isReadonlyArrayNonEmpty(input)) {
14509
- const out = [headNonEmpty(input)];
14510
- const rest = tailNonEmpty(input);
14511
- for (const r of rest) {
14512
- if (out.every((a) => !isEquivalent(r, a))) {
14513
- out.push(r);
14514
- }
14523
+ if (input.length < 2) {
14524
+ return [...input];
14525
+ }
14526
+ const buckets = /* @__PURE__ */ new Map();
14527
+ const out = [];
14528
+ for (const value3 of input) {
14529
+ if (hashBucketsAdd(buckets, value3)) {
14530
+ out.push(value3);
14515
14531
  }
14516
- return out;
14517
14532
  }
14518
- return [];
14519
- });
14533
+ return out;
14534
+ };
14520
14535
 
14521
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Filter.js
14536
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Filter.js
14522
14537
  var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
14523
14538
  const leftOut = left(input);
14524
14539
  if (isFailure2(leftOut)) return fail2(input);
@@ -14527,7 +14542,7 @@ var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
14527
14542
  return rightOut;
14528
14543
  });
14529
14544
 
14530
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Scheduler.js
14545
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Scheduler.js
14531
14546
  var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
14532
14547
  defaultValue: () => new MixedScheduler()
14533
14548
  });
@@ -14652,7 +14667,7 @@ var PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventS
14652
14667
  defaultValue: () => false
14653
14668
  });
14654
14669
 
14655
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Tracer.js
14670
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Tracer.js
14656
14671
  var ParentSpanKey = "effect/Tracer/ParentSpan";
14657
14672
  var ParentSpan = class extends (/* @__PURE__ */ Service()(ParentSpanKey)) {
14658
14673
  };
@@ -14732,13 +14747,10 @@ var randomHexString = /* @__PURE__ */ (function() {
14732
14747
  };
14733
14748
  })();
14734
14749
 
14735
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/metric.js
14750
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/metric.js
14736
14751
  var FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
14737
14752
 
14738
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/references.js
14739
- var CurrentConcurrency = /* @__PURE__ */ Reference("effect/References/CurrentConcurrency", {
14740
- defaultValue: () => "unbounded"
14741
- });
14753
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/references.js
14742
14754
  var CurrentErrorReporters = /* @__PURE__ */ Reference("effect/ErrorReporter/CurrentErrorReporters", {
14743
14755
  defaultValue: () => /* @__PURE__ */ new Set()
14744
14756
  });
@@ -14770,7 +14782,7 @@ var CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpa
14770
14782
  defaultValue: () => []
14771
14783
  });
14772
14784
 
14773
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/tracer.js
14785
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/tracer.js
14774
14786
  var addSpanStackTrace = (options) => {
14775
14787
  if (options?.captureStackTrace === false) {
14776
14788
  return options;
@@ -14801,10 +14813,10 @@ var makeStackCleaner = (line) => (stack) => {
14801
14813
  };
14802
14814
  var spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
14803
14815
 
14804
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/version.js
14816
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/version.js
14805
14817
  var version = "dev";
14806
14818
 
14807
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/effect.js
14819
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/effect.js
14808
14820
  var Interrupt = class extends ReasonBase {
14809
14821
  fiberId;
14810
14822
  constructor(fiberId3, annotations = constEmptyAnnotations) {
@@ -15263,7 +15275,7 @@ var fiberMiddleware = {
15263
15275
  var fiberStackAnnotations = (fiber3) => {
15264
15276
  if (!fiber3.currentStackFrame) return void 0;
15265
15277
  const annotations = /* @__PURE__ */ new Map();
15266
- annotations.set(StackTraceKey.key, fiber3.currentStackFrame);
15278
+ annotations.set(InterruptorStackTrace.key, fiber3.currentStackFrame);
15267
15279
  return makeUnsafe(annotations);
15268
15280
  };
15269
15281
  var fiberInterruptChildren = (fiber3) => {
@@ -15732,6 +15744,23 @@ var updateService = /* @__PURE__ */ dual(3, (self, service3, f2) => updateContex
15732
15744
  if (prev === next) return s3;
15733
15745
  return add(s3, service3, next);
15734
15746
  }));
15747
+ var updateServiceScoped = (service3, update2, options) => uninterruptible(withFiber((fiber3) => {
15748
+ const original = getUnsafe(fiber3.context, service3);
15749
+ const updated = update2(original);
15750
+ fiber3.setContext(add(fiber3.context, service3, updated));
15751
+ return scopeAddFinalizerExit(getUnsafe(fiber3.context, scopeTag), (_2) => {
15752
+ const current = getUnsafe(fiber3.context, service3);
15753
+ let next;
15754
+ if (options?.reset === void 0) {
15755
+ if (current !== updated) return void_;
15756
+ next = original;
15757
+ } else {
15758
+ next = options.reset(original, updated, current);
15759
+ }
15760
+ fiber3.setContext(add(fiber3.context, service3, next));
15761
+ return void_;
15762
+ });
15763
+ }));
15735
15764
  var context = () => getContext;
15736
15765
  var getContext = /* @__PURE__ */ withFiber((fiber3) => succeed3(fiber3.context));
15737
15766
  var contextWith = (f2) => withFiber((fiber3) => f2(fiber3.context));
@@ -15752,7 +15781,6 @@ var provideServiceImpl = (self, service3, implementation) => updateContext(self,
15752
15781
  return add(s3, service3, implementation);
15753
15782
  });
15754
15783
  var provideServiceEffect = /* @__PURE__ */ dual(3, (self, service3, acquire) => flatMap2(acquire, (implementation) => provideService(self, service3, implementation)));
15755
- var withConcurrency = /* @__PURE__ */ provideService(CurrentConcurrency);
15756
15784
  var zip = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, options) => zipWith(self, that, (a, a2) => [a, a2], options));
15757
15785
  var zipWith = /* @__PURE__ */ dual((args2) => isEffect(args2[1]), (self, that, f2, options) => options?.concurrent ? map4(all([self, that], {
15758
15786
  concurrency: 2
@@ -16203,12 +16231,14 @@ var setInterruptible = /* @__PURE__ */ makePrimitive({
16203
16231
  });
16204
16232
  var setInterruptibleTrue = /* @__PURE__ */ setInterruptible(true);
16205
16233
  var setInterruptibleFalse = /* @__PURE__ */ setInterruptible(false);
16206
- var interruptible = (self) => withFiber((fiber3) => {
16207
- if (fiber3.interruptible) return self;
16234
+ var setFiberInterruptible = (fiber3) => {
16208
16235
  fiber3.interruptible = true;
16209
16236
  fiber3._stack.push(setInterruptibleFalse);
16210
16237
  if (fiber3._interruptedCause) return failCause(fiber3._interruptedCause);
16211
- return self;
16238
+ };
16239
+ var interruptible = (self) => withFiber((fiber3) => {
16240
+ if (fiber3.interruptible) return self;
16241
+ return setFiberInterruptible(fiber3) ?? self;
16212
16242
  });
16213
16243
  var uninterruptibleMask = (f2) => withFiber((fiber3) => {
16214
16244
  if (!fiber3.interruptible) return f2(identity);
@@ -16218,9 +16248,9 @@ var uninterruptibleMask = (f2) => withFiber((fiber3) => {
16218
16248
  });
16219
16249
  var interruptibleMask = (f2) => withFiber((fiber3) => {
16220
16250
  if (fiber3.interruptible) return f2(identity);
16221
- fiber3.interruptible = true;
16222
- fiber3._stack.push(setInterruptibleFalse);
16223
- return f2(uninterruptible);
16251
+ const interrupted = setFiberInterruptible(fiber3);
16252
+ const effect2 = f2(uninterruptible);
16253
+ return interrupted ?? effect2;
16224
16254
  });
16225
16255
  var abortSignal = /* @__PURE__ */ map4(/* @__PURE__ */ acquireRelease(/* @__PURE__ */ sync(() => new AbortController()), (controller) => sync(() => controller.abort())), (_2) => _2.signal);
16226
16256
  var all = (arg, options) => {
@@ -16232,7 +16262,7 @@ var all = (arg, options) => {
16232
16262
  return suspend(() => {
16233
16263
  const out = {};
16234
16264
  return as(forEach(Object.entries(arg), ([key, effect2]) => map4(options?.mode === "result" ? result(effect2) : effect2, (value3) => {
16235
- out[key] = value3;
16265
+ assignProperty(out, key, value3);
16236
16266
  }), {
16237
16267
  discard: true,
16238
16268
  concurrency: options?.concurrency
@@ -16318,8 +16348,8 @@ var whileLoop = /* @__PURE__ */ makePrimitive({
16318
16348
  return exitVoid;
16319
16349
  }
16320
16350
  });
16321
- var forEach = /* @__PURE__ */ dual((args2) => typeof args2[1] === "function", (iterable, f2, options) => withFiber((parent) => {
16322
- const concurrencyOption = options?.concurrency === "inherit" ? parent.getRef(CurrentConcurrency) : options?.concurrency ?? 1;
16351
+ var forEach = /* @__PURE__ */ dual((args2) => typeof args2[1] === "function", (iterable, f2, options) => suspend(() => {
16352
+ const concurrencyOption = options?.concurrency ?? 1;
16323
16353
  const concurrency = concurrencyOption === "unbounded" ? Number.POSITIVE_INFINITY : Math.max(1, concurrencyOption);
16324
16354
  if (concurrency === 1) {
16325
16355
  return forEachSequential(iterable, f2, options);
@@ -16369,6 +16399,13 @@ var iterateEagerImpl = (options) => {
16369
16399
  let effect2;
16370
16400
  let nextIndex = index;
16371
16401
  const exits = orderedStep ? new Array(end) : void 0;
16402
+ const failDefect = (error2) => {
16403
+ const defect = exitDie(error2);
16404
+ terminal = defect;
16405
+ done4 = true;
16406
+ interrupted = true;
16407
+ return fibers && fibers.size > 0 ? flatMap2(uninterruptible(fiberInterruptAll(Array.from(fibers))), () => defect) : defect;
16408
+ };
16372
16409
  const runStep = (item, exit3, currentIndex) => {
16373
16410
  if (!orderedStep) return step(state, item, exit3, currentIndex);
16374
16411
  if (terminal) return terminal;
@@ -16399,9 +16436,15 @@ var iterateEagerImpl = (options) => {
16399
16436
  } else if (!parentFiber) {
16400
16437
  return callback((cb) => {
16401
16438
  parentFiber = getCurrentFiber();
16439
+ fibers = /* @__PURE__ */ new Set();
16402
16440
  effect2 = eff;
16403
16441
  resume = cb;
16404
- const result3 = go2();
16442
+ let result3;
16443
+ try {
16444
+ result3 = go2();
16445
+ } catch (error2) {
16446
+ return cb(failDefect(error2));
16447
+ }
16405
16448
  if (result3) return cb(result3);
16406
16449
  return suspend(() => {
16407
16450
  terminal = exitVoid;
@@ -16417,34 +16460,37 @@ var iterateEagerImpl = (options) => {
16417
16460
  if (terminal) break;
16418
16461
  continue;
16419
16462
  }
16420
- if (fibers) fibers.add(fiber3);
16421
- else fibers = /* @__PURE__ */ new Set([fiber3]);
16463
+ fibers.add(fiber3);
16422
16464
  const currentIndex = index;
16423
16465
  fiber3.addObserver((exit3) => {
16424
16466
  fibers.delete(fiber3);
16425
- if (terminal) {
16426
- if (!interrupted && exit3._tag === "Failure") {
16427
- for (const reason of exit3.cause.reasons) {
16428
- if (reason._tag === "Interrupt") continue;
16429
- else if (terminal._tag === "Failure") {
16430
- terminal.cause.reasons.push(reason);
16431
- } else {
16432
- terminal = exitFailCause(causeFromReasons([reason]));
16467
+ try {
16468
+ if (terminal) {
16469
+ if (!interrupted && exit3._tag === "Failure") {
16470
+ for (const reason of exit3.cause.reasons) {
16471
+ if (reason._tag === "Interrupt") continue;
16472
+ else if (terminal._tag === "Failure") {
16473
+ terminal.cause.reasons.push(reason);
16474
+ } else {
16475
+ terminal = exitFailCause(causeFromReasons([reason]));
16476
+ }
16433
16477
  }
16434
16478
  }
16479
+ } else {
16480
+ const result3 = runStep(item, exit3, currentIndex);
16481
+ if (result3) {
16482
+ terminal = result3._tag === "Failure" ? exitFailCause(causeFromReasons(result3.cause.reasons.slice())) : result3;
16483
+ go2();
16484
+ }
16435
16485
  }
16436
- } else {
16437
- const result3 = runStep(item, exit3, currentIndex);
16438
- if (result3) {
16439
- terminal = result3._tag === "Failure" ? exitFailCause(causeFromReasons(result3.cause.reasons.slice())) : result3;
16440
- go2();
16486
+ if (paused) {
16487
+ const eff2 = go2();
16488
+ if (eff2) resume(eff2);
16489
+ } else if (done4 && fibers.size === 0) {
16490
+ resume(terminal ?? void_);
16441
16491
  }
16442
- }
16443
- if (paused) {
16444
- const eff2 = go2();
16445
- if (eff2) resume(eff2);
16446
- } else if (done4 && fibers.size === 0) {
16447
- resume(terminal ?? void_);
16492
+ } catch (error2) {
16493
+ resume(failDefect(error2));
16448
16494
  }
16449
16495
  });
16450
16496
  if (fibers.size < concurrency) continue;
@@ -16555,13 +16601,13 @@ var forkUnsafe = (parent, effect2, immediate = false, daemon = false, uninterrup
16555
16601
  };
16556
16602
  var forkDetach = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, options) => withFiber((fiber3) => succeed3(forkUnsafe(fiber3, self, options?.startImmediately, true, options?.uninterruptible))));
16557
16603
  var awaitAllChildren = (self) => withFiber((fiber3) => {
16558
- const initialChildren = fiber3._children && fromIterable(fiber3._children);
16604
+ const initialChildren = fiber3._children && new Set(fiber3._children);
16559
16605
  return onExit(self, (_2) => {
16560
16606
  let children = fiber3._children;
16561
16607
  if (children === void 0 || children.size === 0) {
16562
16608
  return void_;
16563
16609
  } else if (initialChildren) {
16564
- children = filter2(children, (child) => !initialChildren.includes(child));
16610
+ children = filter2(children, (child) => !initialChildren.has(child));
16565
16611
  }
16566
16612
  return asVoid(fiberAwaitAll(children));
16567
16613
  });
@@ -16655,7 +16701,7 @@ var runSyncExitWith = (context3) => {
16655
16701
  const fiber3 = runFork3(effect2, {
16656
16702
  scheduler
16657
16703
  });
16658
- fiber3.currentDispatcher?.flush();
16704
+ fiber3._dispatcher?.flush();
16659
16705
  return fiber3._exit ?? exitDie(new AsyncFiberError(fiber3));
16660
16706
  };
16661
16707
  };
@@ -16673,27 +16719,42 @@ var succeedTrue = /* @__PURE__ */ succeed3(true);
16673
16719
  var succeedFalse = /* @__PURE__ */ succeed3(false);
16674
16720
  var Latch = class {
16675
16721
  waiters = [];
16676
- scheduled = false;
16722
+ scheduled = void 0;
16677
16723
  _isOpen;
16678
16724
  constructor(isOpen) {
16679
16725
  this._isOpen = isOpen;
16680
16726
  }
16681
16727
  scheduleUnsafe(fiber3) {
16682
- if (this.scheduled || this.waiters.length === 0) {
16728
+ if (this.waiters.length === 0) {
16683
16729
  return succeedTrue;
16684
16730
  }
16685
- this.scheduled = true;
16686
- fiber3.currentDispatcher.scheduleTask(this.flushWaiters, 0);
16731
+ if (this.scheduled === void 0) {
16732
+ this.scheduled = this.waiters;
16733
+ fiber3.currentDispatcher.scheduleTask(this.flushScheduled, 0);
16734
+ } else {
16735
+ for (let i = 0; i < this.waiters.length; i++) {
16736
+ this.scheduled.push(this.waiters[i]);
16737
+ }
16738
+ }
16739
+ this.waiters = [];
16687
16740
  return succeedTrue;
16688
16741
  }
16689
- flushWaiters = () => {
16690
- this.scheduled = false;
16742
+ flushScheduled = () => {
16743
+ if (this.scheduled === void 0) return;
16744
+ const waiters = this.scheduled;
16745
+ this.scheduled = void 0;
16746
+ for (let i = 0; i < waiters.length; i++) {
16747
+ waiters[i](exitVoid);
16748
+ }
16749
+ };
16750
+ flushWaiters() {
16691
16751
  const waiters = this.waiters;
16692
16752
  this.waiters = [];
16753
+ this.flushScheduled();
16693
16754
  for (let i = 0; i < waiters.length; i++) {
16694
16755
  waiters[i](exitVoid);
16695
16756
  }
16696
- };
16757
+ }
16697
16758
  open = /* @__PURE__ */ withFiber((fiber3) => {
16698
16759
  if (this._isOpen) return succeedFalse;
16699
16760
  this._isOpen = true;
@@ -16712,9 +16773,14 @@ var Latch = class {
16712
16773
  }
16713
16774
  this.waiters.push(resume);
16714
16775
  return sync(() => {
16715
- const index = this.waiters.indexOf(resume);
16776
+ let index = this.waiters.indexOf(resume);
16716
16777
  if (index !== -1) {
16717
16778
  this.waiters.splice(index, 1);
16779
+ } else if (this.scheduled !== void 0) {
16780
+ index = this.scheduled.indexOf(resume);
16781
+ if (index !== -1) {
16782
+ this.scheduled.splice(index, 1);
16783
+ }
16718
16784
  }
16719
16785
  });
16720
16786
  });
@@ -16882,13 +16948,16 @@ var withSpan = function() {
16882
16948
  return (self, ...args2) => useSpan(name, fnArg ? fnArg(...args2) : options, (span) => withParentSpan(self, span, traceOptions));
16883
16949
  };
16884
16950
  var annotateSpans = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (effect2, ...args2) => updateService(effect2, TracerSpanAnnotations, (annotations) => {
16885
- const newAnnotations = {
16951
+ const newAnnotations = args2.length === 1 ? {
16952
+ ...annotations,
16953
+ ...args2[0]
16954
+ } : {
16886
16955
  ...annotations
16887
16956
  };
16888
16957
  if (args2.length === 1) {
16889
- Object.assign(newAnnotations, args2[0]);
16958
+ return newAnnotations;
16890
16959
  } else {
16891
- newAnnotations[args2[0]] = args2[1];
16960
+ assignProperty(newAnnotations, args2[0], args2[1]);
16892
16961
  }
16893
16962
  return newAnnotations;
16894
16963
  }));
@@ -17027,7 +17096,7 @@ var annotateLogsScoped = function() {
17027
17096
  };
17028
17097
  for (let i = 0; i < entries.length; i++) {
17029
17098
  const [key, value3] = entries[i];
17030
- next[key] = value3;
17099
+ assignProperty(next, key, value3);
17031
17100
  }
17032
17101
  fiber3.setContext(add(fiber3.context, CurrentLogAnnotations, next));
17033
17102
  return scopeAddFinalizerExit(getUnsafe(fiber3.context, scopeTag), (_2) => {
@@ -17038,8 +17107,8 @@ var annotateLogsScoped = function() {
17038
17107
  for (let i = 0; i < entries.length; i++) {
17039
17108
  const [key, value3] = entries[i];
17040
17109
  if (current[key] !== value3) continue;
17041
- if (key in prev) {
17042
- next2[key] = prev[key];
17110
+ if (Object.hasOwn(prev, key)) {
17111
+ assignProperty(next2, key, prev[key]);
17043
17112
  } else {
17044
17113
  delete next2[key];
17045
17114
  }
@@ -17146,7 +17215,7 @@ var tracerLogger = /* @__PURE__ */ loggerMake(({
17146
17215
  if (span === void 0 || span._tag === "ExternalSpan") return;
17147
17216
  const attributes = {};
17148
17217
  for (const [key, value3] of Object.entries(annotations)) {
17149
- attributes[key] = value3;
17218
+ assignProperty(attributes, key, value3);
17150
17219
  }
17151
17220
  attributes["effect.fiberId"] = fiber3.id;
17152
17221
  attributes["effect.logLevel"] = logLevel.toUpperCase();
@@ -17175,14 +17244,14 @@ var reportCauseUnsafe = (fiber3, cause, defectsOnly) => {
17175
17244
  reporters.forEach((reporter) => reporter.report(opts));
17176
17245
  };
17177
17246
 
17178
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Exit.js
17247
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Exit.js
17179
17248
  var succeed4 = exitSucceed;
17180
17249
  var failCause2 = exitFailCause;
17181
17250
  var fail4 = exitFail;
17182
17251
  var void_2 = exitVoid;
17183
17252
  var isSuccess4 = exitIsSuccess;
17184
17253
 
17185
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Deferred.js
17254
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Deferred.js
17186
17255
  var TypeId5 = "~effect/Deferred";
17187
17256
  var DeferredProto = {
17188
17257
  [TypeId5]: {
@@ -17224,12 +17293,12 @@ var doneUnsafe = (self, effect2) => {
17224
17293
  return true;
17225
17294
  };
17226
17295
 
17227
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/References.js
17296
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/References.js
17228
17297
  var CurrentLogAnnotations2 = CurrentLogAnnotations;
17229
17298
  var CurrentLogSpans2 = CurrentLogSpans;
17230
17299
  var MinimumLogLevel2 = MinimumLogLevel;
17231
17300
 
17232
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Scope.js
17301
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Scope.js
17233
17302
  var Scope = scopeTag;
17234
17303
  var makeUnsafe3 = scopeMakeUnsafe;
17235
17304
  var provide = provideScope;
@@ -17238,7 +17307,7 @@ var addFinalizer2 = scopeAddFinalizer;
17238
17307
  var forkUnsafe2 = scopeForkUnsafe;
17239
17308
  var close = scopeClose;
17240
17309
 
17241
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Layer.js
17310
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Layer.js
17242
17311
  var TypeId6 = "~effect/Layer";
17243
17312
  var MemoMapTypeId = "~effect/Layer/MemoMap";
17244
17313
  var memoMapReuse = (entry, scope3) => {
@@ -17354,7 +17423,7 @@ var CurrentMetadata = /* @__PURE__ */ Reference("effect/ExecutionPlan/CurrentMet
17354
17423
  })
17355
17424
  });
17356
17425
 
17357
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Cause.js
17426
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Cause.js
17358
17427
  var isFailReason2 = isFailReason;
17359
17428
  var fail5 = causeFail;
17360
17429
  var hasInterruptsOnly2 = hasInterruptsOnly;
@@ -17367,7 +17436,7 @@ var Done2 = Done;
17367
17436
  var done3 = done;
17368
17437
  var UnknownError2 = UnknownError;
17369
17438
 
17370
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Data.js
17439
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Data.js
17371
17440
  var taggedEnum = () => new Proxy({}, {
17372
17441
  get(_target, tag2, _receiver) {
17373
17442
  if (tag2 === "$is") {
@@ -17400,7 +17469,7 @@ var round = /* @__PURE__ */ dual(2, (self, precision) => {
17400
17469
  return Math.round(self * factor) / factor;
17401
17470
  });
17402
17471
 
17403
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Pull.js
17472
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Pull.js
17404
17473
  var catchDone = /* @__PURE__ */ dual(2, (effect2, f2) => catchCauseFilter(effect2, filterDoneLeftover, (l) => f2(l)));
17405
17474
  var isDoneCause = (cause) => cause.reasons.some(isDoneFailure);
17406
17475
  var isDoneFailure = (failure) => failure._tag === "Fail" && isDone3(failure.error);
@@ -17418,7 +17487,7 @@ var matchEffect2 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
17418
17487
  }
17419
17488
  }));
17420
17489
 
17421
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Schedule.js
17490
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Schedule.js
17422
17491
  var TypeId8 = "~effect/Schedule";
17423
17492
  var CurrentMetadata2 = /* @__PURE__ */ Reference("effect/Schedule/CurrentMetadata", {
17424
17493
  defaultValue: /* @__PURE__ */ constant({
@@ -17510,11 +17579,11 @@ var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map4(toStep(s
17510
17579
  })));
17511
17580
  var forever2 = /* @__PURE__ */ spaced(zero);
17512
17581
 
17513
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/layer.js
17582
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/layer.js
17514
17583
  var provideLayer = (self, layer16, options) => scopedWith((scope3) => flatMap2(options?.local ? buildWithMemoMap(layer16, makeMemoMapUnsafe(), scope3) : buildWithScope(layer16, scope3), (context3) => provideContext(self, context3)));
17515
17584
  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));
17516
17585
 
17517
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/schedule.js
17586
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/schedule.js
17518
17587
  var repeatOrElse = /* @__PURE__ */ dual(3, (self, schedule3, orElse5) => flatMap2(toStepWithMetadata(schedule3), (step) => {
17519
17588
  let meta = CurrentMetadata2.defaultValue();
17520
17589
  return catch_(forever(tap(flatMap2(suspend(() => provideService(self, CurrentMetadata2, meta)), step), (meta_) => sync(() => {
@@ -17585,7 +17654,7 @@ var buildFromOptions = (options) => {
17585
17654
  return schedule3;
17586
17655
  };
17587
17656
 
17588
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/executionPlan.js
17657
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/executionPlan.js
17589
17658
  var withExecutionPlan = /* @__PURE__ */ dual(2, (self, plan) => suspend(() => {
17590
17659
  let i = 0;
17591
17660
  let meta = {
@@ -17645,7 +17714,7 @@ var scheduleFromStep = (step, first) => {
17645
17714
  var scheduleOnce = /* @__PURE__ */ recurs(1);
17646
17715
  var makeEntry = (options) => options;
17647
17716
 
17648
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/request.js
17717
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/request.js
17649
17718
  var request = /* @__PURE__ */ dual(2, (self, resolver) => {
17650
17719
  const withResolver = (resolver2) => callback((resume) => {
17651
17720
  const entry = addEntry(resolver2, self, resume, getCurrentFiber());
@@ -17756,7 +17825,7 @@ function runBatch(batch) {
17756
17825
  }
17757
17826
  var update = /* @__PURE__ */ dual(2, (self, input) => contextWith((services) => sync(() => self.updateUnsafe(input, services))));
17758
17827
 
17759
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Effect.js
17828
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Effect.js
17760
17829
  var TypeId11 = EffectTypeId;
17761
17830
  var isEffect2 = isEffect;
17762
17831
  var all2 = all;
@@ -17878,9 +17947,9 @@ var service2 = service;
17878
17947
  var serviceOption2 = serviceOption;
17879
17948
  var updateContext2 = updateContext;
17880
17949
  var updateService2 = updateService;
17950
+ var updateServiceScoped2 = updateServiceScoped;
17881
17951
  var provideService2 = provideService;
17882
17952
  var provideServiceEffect2 = provideServiceEffect;
17883
- var withConcurrency2 = withConcurrency;
17884
17953
  var scope2 = scope;
17885
17954
  var scoped2 = scoped;
17886
17955
  var scopedWith2 = scopedWith;
@@ -17964,13 +18033,16 @@ var logDebug = /* @__PURE__ */ logWithLevel("Debug");
17964
18033
  var logTrace = /* @__PURE__ */ logWithLevel("Trace");
17965
18034
  var withLogger = /* @__PURE__ */ dual(2, (effect2, logger) => updateService(effect2, CurrentLoggers, (loggers) => /* @__PURE__ */ new Set([...loggers, logger])));
17966
18035
  var annotateLogs = /* @__PURE__ */ dual((args2) => isEffect2(args2[0]), (effect2, ...args2) => updateService(effect2, CurrentLogAnnotations2, (annotations) => {
17967
- const newAnnotations = {
18036
+ const newAnnotations = args2.length === 1 ? {
18037
+ ...annotations,
18038
+ ...args2[0]
18039
+ } : {
17968
18040
  ...annotations
17969
18041
  };
17970
18042
  if (args2.length === 1) {
17971
- Object.assign(newAnnotations, args2[0]);
18043
+ return newAnnotations;
17972
18044
  } else {
17973
- newAnnotations[args2[0]] = args2[1];
18045
+ assignProperty(newAnnotations, args2[0], args2[1]);
17974
18046
  }
17975
18047
  return newAnnotations;
17976
18048
  }));
@@ -18108,7 +18180,7 @@ var flatMapEager2 = flatMapEager;
18108
18180
  var catchEager2 = catchEager;
18109
18181
  var fnUntracedEager2 = fnUntracedEager;
18110
18182
 
18111
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/FileSystem.js
18183
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/FileSystem.js
18112
18184
  var FileSystem_exports = {};
18113
18185
  __export(FileSystem_exports, {
18114
18186
  FileDescriptor: () => FileDescriptor,
@@ -18127,28 +18199,15 @@ __export(FileSystem_exports, {
18127
18199
  makeNoop: () => makeNoop
18128
18200
  });
18129
18201
 
18130
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/record.js
18131
- function set(self, key, value3) {
18132
- if (key === "__proto__") {
18133
- Object.defineProperty(self, key, {
18134
- value: value3,
18135
- writable: true,
18136
- enumerable: true,
18137
- configurable: true
18138
- });
18139
- } else {
18140
- self[key] = value3;
18141
- }
18142
- return self;
18143
- }
18144
-
18145
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/schema/annotations.js
18202
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/schema/annotations.js
18146
18203
  function resolve(ast) {
18147
18204
  return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
18148
18205
  }
18149
18206
  function resolveAt(key) {
18150
18207
  return (ast) => resolve(ast)?.[key];
18151
18208
  }
18209
+ var STRUCTURAL_ANNOTATION_KEY = "~structural";
18210
+ var SENTINELS_ANNOTATION_KEY = "~sentinels";
18152
18211
  var resolveIdentifier = /* @__PURE__ */ resolveAt("identifier");
18153
18212
  var getExpected = /* @__PURE__ */ memoize((ast) => {
18154
18213
  const identifier2 = resolveIdentifier(ast);
@@ -18156,7 +18215,7 @@ var getExpected = /* @__PURE__ */ memoize((ast) => {
18156
18215
  return ast.getExpected(getExpected);
18157
18216
  });
18158
18217
 
18159
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/redacted.js
18218
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/redacted.js
18160
18219
  var redactedRegistry = /* @__PURE__ */ new WeakMap();
18161
18220
  var value = (self) => {
18162
18221
  if (redactedRegistry.has(self)) {
@@ -18166,7 +18225,7 @@ var value = (self) => {
18166
18225
  }
18167
18226
  };
18168
18227
 
18169
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Redacted.js
18228
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Redacted.js
18170
18229
  var TypeId12 = "~effect/data/Redacted";
18171
18230
  var isRedacted = (u2) => hasProperty(u2, TypeId12);
18172
18231
  var make6 = (value3, options) => {
@@ -18198,10 +18257,10 @@ var Proto3 = {
18198
18257
  };
18199
18258
  var value2 = value;
18200
18259
 
18201
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/SchemaIssue.js
18260
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/SchemaIssue.js
18202
18261
  var TypeId13 = "~effect/SchemaIssue/Issue";
18203
18262
  function isIssue(u2) {
18204
- return hasProperty(u2, TypeId13);
18263
+ return hasProperty(u2, TypeId13) && u2[TypeId13] === TypeId13;
18205
18264
  }
18206
18265
  var Base = class {
18207
18266
  [TypeId13] = TypeId13;
@@ -18548,7 +18607,7 @@ function formatOption(actual) {
18548
18607
  return format(actual.value);
18549
18608
  }
18550
18609
 
18551
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/schema/cause.js
18610
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/schema/cause.js
18552
18611
  function getSchemaIssue(cause) {
18553
18612
  let issue;
18554
18613
  for (const reason of cause.reasons) {
@@ -18569,7 +18628,7 @@ function getSchemaIssueOrThrow(cause, message) {
18569
18628
  return issue;
18570
18629
  }
18571
18630
 
18572
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/SchemaGetter.js
18631
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/SchemaGetter.js
18573
18632
  var Getter = class _Getter extends Class {
18574
18633
  run;
18575
18634
  constructor(run6) {
@@ -18618,7 +18677,7 @@ function Date3() {
18618
18677
  return transform((u2) => new globalThis.Date(u2));
18619
18678
  }
18620
18679
 
18621
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/SchemaTransformation.js
18680
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/SchemaTransformation.js
18622
18681
  var TypeId14 = "~effect/SchemaTransformation/Transformation";
18623
18682
  var Transformation = class _Transformation {
18624
18683
  [TypeId14] = TypeId14;
@@ -18637,7 +18696,7 @@ var Transformation = class _Transformation {
18637
18696
  }
18638
18697
  };
18639
18698
  function isTransformation(u2) {
18640
- return hasProperty(u2, TypeId14);
18699
+ return hasProperty(u2, TypeId14) && u2[TypeId14] === TypeId14;
18641
18700
  }
18642
18701
  var make8 = (options) => {
18643
18702
  if (isTransformation(options)) {
@@ -18707,7 +18766,7 @@ var defectFromJson = (options) => transform2({
18707
18766
  encode: makeEncodeDefect(options)
18708
18767
  });
18709
18768
 
18710
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/SchemaAST.js
18769
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/SchemaAST.js
18711
18770
  function makeGuard(tag2) {
18712
18771
  return (ast) => ast._tag === tag2;
18713
18772
  }
@@ -18906,14 +18965,14 @@ var Number5 = class extends Base2 {
18906
18965
  }
18907
18966
  /** @internal */
18908
18967
  toCodecJson() {
18909
- if (this.checks && (hasCheck(this.checks, "isFinite") || hasCheck(this.checks, "isInt"))) {
18968
+ if (this.checks && (hasCheck(this.checks, "effect/schema/isFinite") || hasCheck(this.checks, "effect/schema/isInt"))) {
18910
18969
  return this;
18911
18970
  }
18912
- return replaceEncoding(this, [numberToJson]);
18971
+ return replaceEncoding(this, [numberToJson(this.checks)]);
18913
18972
  }
18914
18973
  /** @internal */
18915
18974
  toCodecStringTree() {
18916
- if (this.checks && (hasCheck(this.checks, "isFinite") || hasCheck(this.checks, "isInt"))) {
18975
+ if (this.toCodecJson() === this) {
18917
18976
  return replaceEncoding(this, [finiteToString]);
18918
18977
  }
18919
18978
  return replaceEncoding(this, [numberToString]);
@@ -18923,15 +18982,12 @@ var Number5 = class extends Base2 {
18923
18982
  return "number";
18924
18983
  }
18925
18984
  };
18926
- function hasCheck(checks, tag2) {
18927
- return checks.some((c) => {
18928
- switch (c._tag) {
18929
- case "Filter":
18930
- return c.annotations?.meta?._tag === tag2;
18931
- case "FilterGroup":
18932
- return hasCheck(c.checks, tag2);
18933
- }
18934
- });
18985
+ function hasCheck(checks, id) {
18986
+ return checks.some((check) => check.annotations?.representation?.id === id || check._tag === "FilterGroup" && hasCheck(check.checks, id));
18987
+ }
18988
+ function numberToJson(checks) {
18989
+ const encodedFinite = checks === void 0 ? finite : appendChecks(finite, checks);
18990
+ return new Link(new Union([encodedFinite, nonFiniteLiterals], "anyOf"), new Transformation(Number4(), transform((n) => globalThis.Number.isFinite(n) ? n : globalThis.String(n))));
18935
18991
  }
18936
18992
  var number2 = /* @__PURE__ */ new Number5();
18937
18993
  var Boolean2 = class extends Base2 {
@@ -19218,9 +19274,9 @@ var Objects = class _Objects extends Base2 {
19218
19274
  const v2 = exitValue.value.value;
19219
19275
  if (is4.merge && is4.merge.decode && Object.hasOwn(s3.out, k2)) {
19220
19276
  const [k3, v3] = is4.merge.decode.combine([k2, s3.out[k2]], [k2, v2]);
19221
- set(s3.out, k3, v3);
19277
+ assignProperty(s3.out, k3, v3);
19222
19278
  } else {
19223
- set(s3.out, k2, v2);
19279
+ assignProperty(s3.out, k2, v2);
19224
19280
  }
19225
19281
  }
19226
19282
  }),
@@ -19265,7 +19321,7 @@ var Objects = class _Objects extends Base2 {
19265
19321
  return yield* fail6(new Composite(ast, oinput, [issue]));
19266
19322
  }
19267
19323
  } else {
19268
- set(out, key, input[key]);
19324
+ assignProperty(out, key, input[key]);
19269
19325
  }
19270
19326
  }
19271
19327
  }
@@ -19294,7 +19350,7 @@ var Objects = class _Objects extends Base2 {
19294
19350
  const preserved = {};
19295
19351
  for (const key of keys2) {
19296
19352
  if (Object.hasOwn(out, key)) {
19297
- set(preserved, key, out[key]);
19353
+ assignProperty(preserved, key, out[key]);
19298
19354
  }
19299
19355
  }
19300
19356
  return some2(preserved);
@@ -19338,7 +19394,7 @@ var parseProperties = /* @__PURE__ */ iterateEager()({
19338
19394
  if (exit3._tag === "Failure") {
19339
19395
  return wrapPropertyKeyIssue(s3, s3.ast, p2.name, exit3);
19340
19396
  } else if (exit3.value._tag === "Some") {
19341
- set(s3.out, p2.name, exit3.value.value);
19397
+ assignProperty(s3.out, p2.name, exit3.value.value);
19342
19398
  } else if (!isOptional(p2.type)) {
19343
19399
  const issue = new Pointer([p2.name], new MissingKey(p2.type.context?.annotations));
19344
19400
  if (s3.options.errors === "all") {
@@ -19390,7 +19446,7 @@ function getCandidateTypes(ast) {
19390
19446
  case "ObjectKeyword":
19391
19447
  return ["object", "array", "function"];
19392
19448
  case "Objects":
19393
- return ast.propertySignatures.length || ast.indexSignatures.length ? ["object"] : ["object", "array"];
19449
+ return ast.propertySignatures.length || ast.indexSignatures.length ? ["object"] : ["string", "number", "boolean", "symbol", "bigint", "object", "array", "function"];
19394
19450
  case "Enum":
19395
19451
  return Array.from(new Set(ast.enums.map(([, v2]) => typeof v2)));
19396
19452
  case "Literal":
@@ -19406,7 +19462,7 @@ function collectSentinels(ast) {
19406
19462
  default:
19407
19463
  return [];
19408
19464
  case "Declaration": {
19409
- const s3 = ast.annotations?.["~sentinels"];
19465
+ const s3 = ast.annotations?.[SENTINELS_ANNOTATION_KEY];
19410
19466
  return Array.isArray(s3) ? s3 : [];
19411
19467
  }
19412
19468
  case "Objects":
@@ -19617,7 +19673,6 @@ var parseUnion = /* @__PURE__ */ iterateEager()({
19617
19673
  }
19618
19674
  });
19619
19675
  var nonFiniteLiterals = /* @__PURE__ */ new Union([/* @__PURE__ */ new Literal("Infinity"), /* @__PURE__ */ new Literal("-Infinity"), /* @__PURE__ */ new Literal("NaN")], "anyOf");
19620
- var numberToJson = /* @__PURE__ */ new Link(/* @__PURE__ */ new Union([number2, nonFiniteLiterals], "anyOf"), /* @__PURE__ */ new Transformation(/* @__PURE__ */ Number4(), /* @__PURE__ */ transform((n) => globalThis.Number.isFinite(n) ? n : globalThis.String(n))));
19621
19676
  function formatIsMutable(isMutable) {
19622
19677
  return isMutable ? "" : "readonly ";
19623
19678
  }
@@ -19673,14 +19728,43 @@ var FilterGroup = class _FilterGroup extends Class {
19673
19728
  function makeFilter(filter10, annotations, aborted = false) {
19674
19729
  return new Filter2((input, ast, options) => make7(input, ast, filter10(input, ast, options)), annotations, aborted);
19675
19730
  }
19731
+ function isFinite3(annotations) {
19732
+ return makeFilter((n) => globalThis.Number.isFinite(n), {
19733
+ expected: "a finite number",
19734
+ representation: {
19735
+ id: "effect/schema/isFinite",
19736
+ payload: null
19737
+ },
19738
+ toJsonSchema: () => ({
19739
+ type: "number"
19740
+ }),
19741
+ toCode: () => ({
19742
+ runtime: "Schema.isFinite()"
19743
+ }),
19744
+ arbitrary: {
19745
+ constraint: {
19746
+ noInfinity: true,
19747
+ noNaN: true
19748
+ }
19749
+ },
19750
+ ...annotations
19751
+ });
19752
+ }
19753
+ var finite = /* @__PURE__ */ appendChecks(number2, [/* @__PURE__ */ isFinite3()]);
19676
19754
  function isPattern(regExp, annotations) {
19677
19755
  const source = regExp.source;
19678
19756
  return makeFilter((s3) => regExp.test(s3), {
19679
19757
  expected: `a string matching the RegExp ${source}`,
19680
- meta: {
19681
- _tag: "isPattern",
19682
- regExp
19758
+ representation: {
19759
+ id: "effect/schema/isPattern",
19760
+ payload: {
19761
+ source,
19762
+ flags: regExp.flags
19763
+ }
19683
19764
  },
19765
+ toJsonSchema: () => ({
19766
+ pattern: source
19767
+ }),
19684
19768
  arbitrary: {
19685
19769
  constraint: {
19686
19770
  patterns: [regExp.source]
@@ -19736,18 +19820,22 @@ function replaceChecks(ast, checks) {
19736
19820
  function appendChecks(ast, checks) {
19737
19821
  return replaceChecks(ast, combineChecks(ast.checks, checks));
19738
19822
  }
19823
+ function mapLink(link4, f2) {
19824
+ const to2 = f2(link4.to);
19825
+ return to2 === link4.to ? link4 : new Link(to2, link4.transformation);
19826
+ }
19739
19827
  function updateLastLink(encoding, f2) {
19740
19828
  const links = encoding;
19741
19829
  const last = links[links.length - 1];
19742
- const to2 = f2(last.to);
19743
- if (to2 !== last.to) {
19744
- return append(encoding.slice(0, encoding.length - 1), new Link(to2, last.transformation));
19745
- }
19746
- return encoding;
19830
+ const out = mapLink(last, f2);
19831
+ return out === last ? encoding : append(encoding.slice(0, encoding.length - 1), out);
19747
19832
  }
19748
19833
  function applyToLastLink(f2) {
19749
19834
  return (ast) => ast.encoding ? replaceEncoding(ast, updateLastLink(ast.encoding, f2)) : ast;
19750
19835
  }
19836
+ function replaceContextLastLink(ast, context3) {
19837
+ return applyToLastLink((ast2) => replaceContext(ast2, context3))(ast);
19838
+ }
19751
19839
  function applyToSelfOrLastLinkEncoding(f2) {
19752
19840
  function out(ast) {
19753
19841
  return ast.encoding ? replaceEncoding(ast, updateLastLink(ast.encoding, out)) : f2(ast);
@@ -19795,6 +19883,17 @@ function decodeTo(from, to2, transformation) {
19795
19883
  function isOptional(ast) {
19796
19884
  return ast.context?.isOptional ?? false;
19797
19885
  }
19886
+ function isStructuralCheck(check) {
19887
+ return check.annotations?.[STRUCTURAL_ANNOTATION_KEY] === true || check._tag === "FilterGroup" && check.checks.every(isStructuralCheck);
19888
+ }
19889
+ function extractStructuralChecks(checks) {
19890
+ function extract(check) {
19891
+ if (isStructuralCheck(check)) return [check];
19892
+ return check._tag === "FilterGroup" ? check.checks.flatMap(extract) : [];
19893
+ }
19894
+ const out = checks.flatMap(extract);
19895
+ return isArrayNonEmpty2(out) ? out : void 0;
19896
+ }
19798
19897
  var toType = /* @__PURE__ */ memoize((ast) => {
19799
19898
  if (ast.encoding) {
19800
19899
  return toType(replaceEncoding(ast, void 0));
@@ -19803,11 +19902,10 @@ var toType = /* @__PURE__ */ memoize((ast) => {
19803
19902
  const type = out.recur?.(toType) ?? out;
19804
19903
  const encodingChecks = type.encodingChecks;
19805
19904
  if (encodingChecks) {
19905
+ const checks = type === ast ? encodingChecks : isArrays(type) || isObjects(type) || isDeclaration(type) && type.typeParameters.length > 0 ? extractStructuralChecks(encodingChecks) : void 0;
19806
19906
  return modifyOwnPropertyDescriptors(type, (d) => {
19807
19907
  d.encodingChecks.value = void 0;
19808
- if (type === ast) {
19809
- d.checks.value = combineChecks(type.checks, encodingChecks);
19810
- }
19908
+ d.checks.value = combineChecks(type.checks, checks);
19811
19909
  });
19812
19910
  }
19813
19911
  return type;
@@ -19892,14 +19990,17 @@ var parameterFromString = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((ast) =>
19892
19990
  }
19893
19991
  });
19894
19992
  var isStringFiniteRegExp = /* @__PURE__ */ new globalThis.RegExp(`^${FINITE_PATTERN}$`);
19895
- var isStringNumberRegExp = /* @__PURE__ */ new globalThis.RegExp(`(?:${FINITE_PATTERN}|Infinity|-Infinity|NaN)`);
19993
+ var isStringNumberRegExp = /* @__PURE__ */ new globalThis.RegExp(`^(?:${FINITE_PATTERN}|Infinity|-Infinity|NaN)$`);
19896
19994
  function isStringFinite(annotations) {
19897
19995
  return isPattern(isStringFiniteRegExp, {
19898
19996
  expected: "a string representing a finite number",
19899
- meta: {
19900
- _tag: "isStringFinite",
19901
- regExp: isStringFiniteRegExp
19997
+ representation: {
19998
+ id: "effect/schema/isStringFinite",
19999
+ payload: null
19902
20000
  },
20001
+ toJsonSchema: () => ({
20002
+ pattern: isStringFiniteRegExp.source
20003
+ }),
19903
20004
  ...annotations
19904
20005
  });
19905
20006
  }
@@ -19923,81 +20024,83 @@ function collectIssues(checks, value3, issues, ast, options) {
19923
20024
  }
19924
20025
  }
19925
20026
  var ClassTypeId = "~effect/Schema/Class";
19926
- var STRUCTURAL_ANNOTATION_KEY = "~structural";
19927
- function isJson(u2) {
19928
- const onPath = /* @__PURE__ */ new Set();
19929
- const validated = /* @__PURE__ */ new Set();
19930
- return recur2(u2);
19931
- function recur2(u3) {
19932
- if (u3 === null || typeof u3 === "string" || typeof u3 === "boolean") {
19933
- return true;
19934
- }
19935
- if (typeof u3 === "number") {
19936
- return globalThis.Number.isFinite(u3);
19937
- }
19938
- if (typeof u3 !== "object" || u3 === void 0) {
19939
- return false;
19940
- }
19941
- if (onPath.has(u3)) {
19942
- return false;
19943
- }
19944
- if (validated.has(u3)) {
19945
- return true;
19946
- }
19947
- const isArray2 = Array.isArray(u3);
19948
- if (!isArray2) {
19949
- const prototype = Object.getPrototypeOf(u3);
19950
- if (prototype !== null && Object.getPrototypeOf(prototype) !== null) {
20027
+ function isJsonLeaf(u2) {
20028
+ return u2 === null || typeof u2 === "string" || typeof u2 === "boolean" || typeof u2 === "number" && globalThis.Number.isFinite(u2);
20029
+ }
20030
+ function isStringTreeLeaf(u2) {
20031
+ return u2 === void 0 || typeof u2 === "string";
20032
+ }
20033
+ function isTree(u2, isLeaf) {
20034
+ const cache = /* @__PURE__ */ new WeakMap();
20035
+ const stack = [];
20036
+ outer: while (true) {
20037
+ if (typeof u2 !== "object" || u2 === null) {
20038
+ if (!isLeaf(u2)) {
19951
20039
  return false;
19952
20040
  }
20041
+ } else {
20042
+ const value3 = u2;
20043
+ const cached3 = cache.get(value3);
20044
+ if (cached3 === false) {
20045
+ return false;
20046
+ }
20047
+ if (cached3 === void 0) {
20048
+ const isArray2 = Array.isArray(value3);
20049
+ if (!isArray2) {
20050
+ const prototype = Object.getPrototypeOf(value3);
20051
+ if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
20052
+ return false;
20053
+ }
20054
+ }
20055
+ cache.set(value3, false);
20056
+ stack.push({
20057
+ value: value3,
20058
+ keys: isArray2 ? value3.length : Object.keys(value3),
20059
+ index: 0
20060
+ });
20061
+ }
19953
20062
  }
19954
- onPath.add(u3);
19955
- const ok = isArray2 ? u3.every(recur2) : Object.keys(u3).every((key) => recur2(u3[key]));
19956
- onPath.delete(u3);
19957
- if (ok) {
19958
- validated.add(u3);
20063
+ while (stack.length > 0) {
20064
+ const frame = stack[stack.length - 1];
20065
+ const keys2 = frame.keys;
20066
+ if (typeof keys2 === "number") {
20067
+ if (frame.index < keys2) {
20068
+ u2 = frame.value[frame.index++];
20069
+ continue outer;
20070
+ }
20071
+ } else if (frame.index < keys2.length) {
20072
+ u2 = frame.value[keys2[frame.index++]];
20073
+ continue outer;
20074
+ }
20075
+ cache.set(frame.value, true);
20076
+ stack.pop();
19959
20077
  }
19960
- return ok;
20078
+ return true;
19961
20079
  }
19962
20080
  }
20081
+ function isJson(u2) {
20082
+ return isTree(u2, isJsonLeaf);
20083
+ }
19963
20084
  var Json = /* @__PURE__ */ new Declaration([], () => (input, ast) => isJson(input) ? succeed6(input) : fail6(new InvalidType(ast, some2(input))), {
19964
- typeConstructor: {
19965
- _tag: "effect/Json"
19966
- },
19967
- generation: {
19968
- runtime: `Schema.Json`,
19969
- Type: `Schema.Json`
20085
+ representation: {
20086
+ id: "effect/schema/Json",
20087
+ payload: null
19970
20088
  },
19971
20089
  expected: "JSON value",
19972
- toCodecJson: () => new Link(unknown, passthrough3()),
20090
+ toCodecJson: () => void 0,
20091
+ toCodecStringTree: () => unknownToStringTree,
19973
20092
  toArbitrary: () => (fc) => fc.jsonValue()
19974
20093
  });
19975
20094
  function isStringTree(u2) {
19976
- const seen = /* @__PURE__ */ new Set();
19977
- return recur2(u2);
19978
- function recur2(u3) {
19979
- if (u3 === void 0 || typeof u3 === "string") {
19980
- return true;
19981
- }
19982
- if (typeof u3 !== "object" || u3 === null) {
19983
- return false;
19984
- }
19985
- if (seen.has(u3)) {
19986
- return false;
19987
- }
19988
- seen.add(u3);
19989
- if (Array.isArray(u3)) {
19990
- return u3.every(recur2);
19991
- }
19992
- return Object.keys(u3).every((key) => recur2(u3[key]));
19993
- }
20095
+ return isTree(u2, isStringTreeLeaf);
19994
20096
  }
19995
20097
  var StringTree = /* @__PURE__ */ new Declaration([], () => (input, ast) => isStringTree(input) ? succeed6(input) : fail6(new InvalidType(ast, some2(input))), {
19996
- expected: "StringTree"
20098
+ expected: "StringTree",
20099
+ toCodecStringTree: () => void 0
19997
20100
  });
19998
20101
  var unknownToStringTree = /* @__PURE__ */ new Link(StringTree, /* @__PURE__ */ passthrough3());
19999
20102
 
20000
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Brand.js
20103
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Brand.js
20001
20104
  function nominal() {
20002
20105
  return Object.assign((input) => input, {
20003
20106
  option: (input) => some2(input),
@@ -20006,7 +20109,7 @@ function nominal() {
20006
20109
  });
20007
20110
  }
20008
20111
 
20009
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/PlatformError.js
20112
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/PlatformError.js
20010
20113
  var TypeId16 = "~effect/platform/PlatformError";
20011
20114
  var BadArgument = class extends (/* @__PURE__ */ TaggedError2("BadArgument")) {
20012
20115
  /**
@@ -20068,10 +20171,10 @@ var badArgument = (options) => new PlatformError(new BadArgument(options));
20068
20171
  var interrupt3 = fiberInterrupt;
20069
20172
  var runIn = fiberRunIn;
20070
20173
 
20071
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Latch.js
20174
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Latch.js
20072
20175
  var makeUnsafe4 = makeLatchUnsafe;
20073
20176
 
20074
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/MutableList.js
20177
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/MutableList.js
20075
20178
  var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
20076
20179
  var make9 = () => ({
20077
20180
  head: void 0,
@@ -20142,7 +20245,7 @@ var take = (self) => {
20142
20245
  return message;
20143
20246
  };
20144
20247
 
20145
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/MutableRef.js
20248
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/MutableRef.js
20146
20249
  var TypeId18 = "~effect/MutableRef";
20147
20250
  var MutableRefProto = {
20148
20251
  [TypeId18]: TypeId18,
@@ -20160,7 +20263,7 @@ var make10 = (value3) => {
20160
20263
  return ref;
20161
20264
  };
20162
20265
 
20163
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Queue.js
20266
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Queue.js
20164
20267
  var TypeId19 = "~effect/Queue";
20165
20268
  var EnqueueTypeId = "~effect/Queue/Enqueue";
20166
20269
  var DequeueTypeId = "~effect/Queue/Dequeue";
@@ -20424,7 +20527,7 @@ var finalize = (self, exit3) => {
20424
20527
  openState.awaiters.clear();
20425
20528
  };
20426
20529
 
20427
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Semaphore.js
20530
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Semaphore.js
20428
20531
  var makeUnsafe5 = (permits) => new SemaphoreImpl(permits);
20429
20532
  var SemaphoreImpl = class {
20430
20533
  waiters = /* @__PURE__ */ new Set();
@@ -20507,7 +20610,7 @@ var SemaphoreImpl = class {
20507
20610
  }
20508
20611
  };
20509
20612
 
20510
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Channel.js
20613
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Channel.js
20511
20614
  var TypeId20 = "~effect/Channel";
20512
20615
  var isChannel = (u2) => hasProperty(u2, TypeId20);
20513
20616
  var ChannelProto = {
@@ -20685,7 +20788,7 @@ var runFold = /* @__PURE__ */ dual(3, (self, initial, f2) => suspend2(() => {
20685
20788
  }));
20686
20789
  var toPullScoped = (self, scope3) => toTransform(self)(done3(), scope3);
20687
20790
 
20688
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/stream.js
20791
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/stream.js
20689
20792
  var TypeId21 = "~effect/Stream";
20690
20793
  var streamVariance = {
20691
20794
  _R: identity,
@@ -20704,7 +20807,7 @@ var fromChannel = (channel) => {
20704
20807
  return self;
20705
20808
  };
20706
20809
 
20707
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Sink.js
20810
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Sink.js
20708
20811
  var TypeId22 = "~effect/Sink";
20709
20812
  var endVoid = /* @__PURE__ */ succeed6([void 0]);
20710
20813
  var sinkVariance = {
@@ -20743,7 +20846,7 @@ var forEachArray = (f2) => fromTransform2((upstream) => upstream.pipe(flatMap3(f
20743
20846
  }), catchDone(() => endVoid)));
20744
20847
  var unwrap2 = (effect2) => fromChannel2(unwrap(map6(effect2, toChannel)));
20745
20848
 
20746
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/rcRef.js
20849
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/rcRef.js
20747
20850
  var TypeId23 = "~effect/RcRef";
20748
20851
  var stateEmpty = {
20749
20852
  _tag: "Empty"
@@ -20841,11 +20944,11 @@ var get2 = /* @__PURE__ */ fnUntraced2(function* (self_) {
20841
20944
  return state.value;
20842
20945
  });
20843
20946
 
20844
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/RcRef.js
20947
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/RcRef.js
20845
20948
  var make13 = make12;
20846
20949
  var get3 = get2;
20847
20950
 
20848
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Stream.js
20951
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Stream.js
20849
20952
  var TypeId24 = "~effect/Stream";
20850
20953
  var isStream = (u2) => hasProperty(u2, TypeId24);
20851
20954
  var fromChannel3 = fromChannel;
@@ -20946,7 +21049,7 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (
20946
21049
  });
20947
21050
  var toReadableStreamEffect = /* @__PURE__ */ dual((args2) => isStream(args2[0]), (self, options) => map6(context2(), (context3) => toReadableStreamWith(self, context3, options)));
20948
21051
 
20949
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/FileSystem.js
21052
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/FileSystem.js
20950
21053
  var TypeId25 = "~effect/platform/FileSystem";
20951
21054
  var Size = (bytes) => typeof bytes === "bigint" ? bytes : BigInt(bytes);
20952
21055
  var KiB = (n) => Size(n * 1024);
@@ -21116,7 +21219,7 @@ var FileDescriptor = /* @__PURE__ */ nominal();
21116
21219
  var WatchBackend = class extends (/* @__PURE__ */ Service()("effect/platform/FileSystem/WatchBackend")) {
21117
21220
  };
21118
21221
 
21119
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Logger.js
21222
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Logger.js
21120
21223
  var CurrentLoggers2 = CurrentLoggers;
21121
21224
  var make15 = loggerMake;
21122
21225
  var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(function* (fiber3) {
@@ -21127,18 +21230,34 @@ var layer = (loggers, options) => effect(CurrentLoggers2, withFiber(fnUntraced(f
21127
21230
  return currentLoggers;
21128
21231
  })));
21129
21232
 
21130
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Struct.js
21131
- var lambda = (f2) => f2;
21233
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/SchemaError.js
21234
+ var TypeId26 = "~effect/SchemaError/SchemaError";
21235
+ var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
21236
+ [TypeId26] = TypeId26;
21237
+ constructor(issue) {
21238
+ super({
21239
+ issue
21240
+ });
21241
+ }
21242
+ get message() {
21243
+ return this.issue.toString();
21244
+ }
21245
+ toString() {
21246
+ return `SchemaError(${this.message})`;
21247
+ }
21248
+ };
21249
+ function isSchemaError(u2) {
21250
+ return hasProperty(u2, TypeId26) && u2[TypeId26] === TypeId26;
21251
+ }
21132
21252
 
21133
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/SchemaParser.js
21253
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/SchemaParser.js
21134
21254
  var toConstructorAST = /* @__PURE__ */ memoize((ast) => {
21135
21255
  switch (ast._tag) {
21136
21256
  case "Declaration": {
21137
21257
  const getLink = ast.annotations?.[ClassTypeId];
21138
21258
  if (isFunction(getLink)) {
21139
21259
  const link4 = getLink(ast.typeParameters);
21140
- const to2 = toConstructorAST(link4.to);
21141
- return replaceEncoding(ast, to2 === link4.to ? [link4] : [new Link(to2, link4.transformation)]);
21260
+ return replaceEncoding(ast, [mapLink(link4, toConstructorAST)]);
21142
21261
  }
21143
21262
  return ast;
21144
21263
  }
@@ -21247,8 +21366,6 @@ var recur = /* @__PURE__ */ memoize((ast) => {
21247
21366
  return parser(ou, options);
21248
21367
  };
21249
21368
  }
21250
- const isStructural = isArrays(ast) || isObjects(ast) || isDeclaration(ast) && ast.typeParameters.length > 0;
21251
- const structuralChecks = checks && isStructural ? checks.filter((check) => check.annotations?.[STRUCTURAL_ANNOTATION_KEY]) : void 0;
21252
21369
  return (ou, options) => {
21253
21370
  if (astOptions) {
21254
21371
  options = {
@@ -21288,14 +21405,6 @@ var recur = /* @__PURE__ */ memoize((ast) => {
21288
21405
  });
21289
21406
  }
21290
21407
  if (checks && !options?.disableChecks) {
21291
- if (options?.errors === "all" && structuralChecks && structuralChecks.length > 0 && isSome2(localOu)) {
21292
- sroa2 = mapSchemaIssueEffect(sroa2, (issue) => {
21293
- const issues = [];
21294
- collectIssues(structuralChecks, localOu.value, issues, ast, options);
21295
- const out = isArrayNonEmpty2(issues) ? issue._tag === "Composite" && issue.ast === ast ? new Composite(ast, issue.actual, [...issue.issues, ...issues]) : new Composite(ast, localOu, [issue, ...issues]) : issue;
21296
- return out;
21297
- });
21298
- }
21299
21408
  sroa2 = flatMapEager2(sroa2, (oa) => {
21300
21409
  if (isSome2(oa)) {
21301
21410
  const value3 = oa.value;
@@ -21315,27 +21424,7 @@ var recur = /* @__PURE__ */ memoize((ast) => {
21315
21424
  };
21316
21425
  });
21317
21426
 
21318
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/SchemaError.js
21319
- var TypeId26 = "~effect/SchemaError/SchemaError";
21320
- var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
21321
- [TypeId26] = TypeId26;
21322
- constructor(issue) {
21323
- super({
21324
- issue
21325
- });
21326
- }
21327
- get message() {
21328
- return this.issue.toString();
21329
- }
21330
- toString() {
21331
- return `SchemaError(${this.message})`;
21332
- }
21333
- };
21334
- function isSchemaError(u2) {
21335
- return hasProperty(u2, TypeId26);
21336
- }
21337
-
21338
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/internal/schema/schema.js
21427
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/internal/schema/schema.js
21339
21428
  var TypeId27 = "~effect/Schema/Schema";
21340
21429
  var SchemaProto = {
21341
21430
  [TypeId27]: TypeId27,
@@ -21353,10 +21442,11 @@ var SchemaProto = {
21353
21442
  }
21354
21443
  };
21355
21444
  function make17(ast, options) {
21356
- const self = Object.create(SchemaProto);
21357
- if (options) {
21358
- Object.assign(self, options);
21445
+ function Schema() {
21359
21446
  }
21447
+ const self = Object.defineProperties(Object.setPrototypeOf(Schema, SchemaProto), Object.getOwnPropertyDescriptors({
21448
+ ...options
21449
+ }));
21360
21450
  self.ast = ast;
21361
21451
  self.rebuild = (ast2) => make17(ast2, options);
21362
21452
  const makeEffect2 = makeEffect(self);
@@ -21368,27 +21458,11 @@ function make17(ast, options) {
21368
21458
  function fromIssueEffect(self) {
21369
21459
  return catchCause2(self, (cause) => failCauseSync2(() => map5(cause, (issue) => new SchemaError(issue))));
21370
21460
  }
21371
- function makeReorder(getPriority) {
21372
- return (types) => {
21373
- const indexMap = /* @__PURE__ */ new Map();
21374
- for (let i = 0; i < types.length; i++) {
21375
- indexMap.set(toEncoded(types[i]), i);
21376
- }
21377
- const sortedTypes = [...types].sort((a, b2) => {
21378
- a = toEncoded(a);
21379
- b2 = toEncoded(b2);
21380
- const pa = getPriority(a);
21381
- const pb = getPriority(b2);
21382
- if (pa !== pb) return pa - pb;
21383
- return indexMap.get(a) - indexMap.get(b2);
21384
- });
21385
- const orderChanged = sortedTypes.some((ast, index) => ast !== types[index]);
21386
- if (!orderChanged) return types;
21387
- return sortedTypes;
21388
- };
21389
- }
21390
21461
 
21391
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Schema.js
21462
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Struct.js
21463
+ var lambda = (f2) => f2;
21464
+
21465
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Schema.js
21392
21466
  var TypeId28 = TypeId27;
21393
21467
  function declareConstructor() {
21394
21468
  return (typeParameters, run6, annotations) => {
@@ -21499,37 +21573,37 @@ function TaggedStruct(value3, fields) {
21499
21573
  ...fields
21500
21574
  });
21501
21575
  }
21502
- function instanceOf(constructor, annotations) {
21503
- return declare((u2) => u2 instanceof constructor, annotations);
21504
- }
21505
21576
  function link() {
21506
21577
  return (encodeTo, transformation) => {
21507
21578
  return new Link(encodeTo.ast, make8(transformation));
21508
21579
  };
21509
21580
  }
21510
21581
  var makeFilter2 = makeFilter;
21511
- var isPattern2 = isPattern;
21512
- function isFinite3(annotations) {
21513
- return makeFilter2((n) => globalThis.Number.isFinite(n), {
21514
- expected: "a finite number",
21515
- meta: {
21516
- _tag: "isFinite"
21517
- },
21518
- arbitrary: {
21519
- constraint: {
21520
- noInfinity: true,
21521
- noNaN: true
21522
- }
21523
- },
21582
+ function isPattern2(regExp, annotations) {
21583
+ const source = regExp.source;
21584
+ const flags = regExp.flags;
21585
+ const runtimeRegExp = flags === "" ? `new RegExp(${format(source)})` : `new RegExp(${format(source)}, ${format(flags)})`;
21586
+ return isPattern(regExp, {
21587
+ toCode: () => ({
21588
+ runtime: `Schema.isPattern(${runtimeRegExp})`
21589
+ }),
21524
21590
  ...annotations
21525
21591
  });
21526
21592
  }
21593
+ var Finite = /* @__PURE__ */ make18(finite);
21527
21594
  function isInt(annotations) {
21528
21595
  return makeFilter2((n) => globalThis.Number.isSafeInteger(n), {
21529
21596
  expected: "an integer",
21530
- meta: {
21531
- _tag: "isInt"
21597
+ representation: {
21598
+ id: "effect/schema/isInt",
21599
+ payload: null
21532
21600
  },
21601
+ toJsonSchema: () => ({
21602
+ type: "integer"
21603
+ }),
21604
+ toCode: () => ({
21605
+ runtime: "Schema.isInt()"
21606
+ }),
21533
21607
  arbitrary: {
21534
21608
  constraint: {
21535
21609
  integer: true
@@ -21538,28 +21612,27 @@ function isInt(annotations) {
21538
21612
  ...annotations
21539
21613
  });
21540
21614
  }
21541
- function isDateValid(annotations) {
21542
- return makeFilter2((date6) => !isNaN(date6.getTime()), {
21543
- expected: "a valid date",
21544
- meta: {
21545
- _tag: "isDateValid"
21546
- },
21547
- arbitrary: {
21548
- constraint: {
21549
- valid: true
21550
- }
21551
- },
21552
- ...annotations
21553
- });
21554
- }
21615
+ var Int = /* @__PURE__ */ Number6.check(/* @__PURE__ */ isInt());
21555
21616
  function isMinLength(minLength, annotations) {
21556
21617
  minLength = Math.max(0, Math.floor(minLength));
21557
21618
  return makeFilter2((input) => input.length >= minLength, {
21558
21619
  expected: `a value with a length of at least ${minLength}`,
21559
- meta: {
21560
- _tag: "isMinLength",
21620
+ representation: {
21621
+ id: "effect/schema/isMinLength",
21622
+ payload: {
21623
+ minLength
21624
+ }
21625
+ },
21626
+ toJsonSchema: ({
21627
+ type
21628
+ }) => type === "array" ? {
21629
+ minItems: minLength
21630
+ } : {
21561
21631
  minLength
21562
21632
  },
21633
+ toCode: () => ({
21634
+ runtime: `Schema.isMinLength(${minLength})`
21635
+ }),
21563
21636
  [STRUCTURAL_ANNOTATION_KEY]: true,
21564
21637
  arbitrary: {
21565
21638
  constraint: {
@@ -21573,10 +21646,22 @@ function isMaxLength(maxLength, annotations) {
21573
21646
  maxLength = Math.max(0, Math.floor(maxLength));
21574
21647
  return makeFilter2((input) => input.length <= maxLength, {
21575
21648
  expected: `a value with a length of at most ${maxLength}`,
21576
- meta: {
21577
- _tag: "isMaxLength",
21649
+ representation: {
21650
+ id: "effect/schema/isMaxLength",
21651
+ payload: {
21652
+ maxLength
21653
+ }
21654
+ },
21655
+ toJsonSchema: ({
21656
+ type
21657
+ }) => type === "array" ? {
21658
+ maxItems: maxLength
21659
+ } : {
21578
21660
  maxLength
21579
21661
  },
21662
+ toCode: () => ({
21663
+ runtime: `Schema.isMaxLength(${maxLength})`
21664
+ }),
21580
21665
  [STRUCTURAL_ANNOTATION_KEY]: true,
21581
21666
  arbitrary: {
21582
21667
  constraint: {
@@ -21617,14 +21702,10 @@ function Defect(options) {
21617
21702
  defectSchemaCache[key] = schema;
21618
21703
  return schema;
21619
21704
  }
21620
- function dateArbitraryConstraints(constraint, ordered, base, toDate) {
21705
+ function dateArbitraryConstraints(ordered, base, toDate) {
21621
21706
  const out = {
21622
21707
  ...base
21623
21708
  };
21624
- delete out.valid;
21625
- if (constraint?.valid) {
21626
- out.noInvalidDate = true;
21627
- }
21628
21709
  if (ordered?.minimum !== void 0) {
21629
21710
  const minimum = ordered.minimum ;
21630
21711
  const nextMin = ordered.exclusiveMinimum ? new globalThis.Date(minimum.getTime() + 1) : minimum;
@@ -21642,23 +21723,23 @@ function dateArbitraryConstraints(constraint, ordered, base, toDate) {
21642
21723
  return out;
21643
21724
  }
21644
21725
  var DateString = /* @__PURE__ */ String4.annotate({
21645
- expected: "a string in ISO 8601 format that will be decoded as a Date"
21726
+ expected: "a string that will be decoded as a Date"
21646
21727
  });
21647
- var Date4 = /* @__PURE__ */ instanceOf(globalThis.Date, {
21648
- typeConstructor: {
21649
- _tag: "Date"
21728
+ var Date4 = /* @__PURE__ */ declare((input) => input instanceof globalThis.Date && !globalThis.Number.isNaN(input.getTime()), {
21729
+ representation: {
21730
+ id: "effect/schema/Date",
21731
+ payload: null
21650
21732
  },
21651
- generation: {
21733
+ toCode: () => ({
21652
21734
  runtime: `Schema.Date`,
21653
21735
  Type: `globalThis.Date`
21654
- },
21655
- expected: "Date",
21736
+ }),
21737
+ expected: "a valid Date",
21656
21738
  toCodecJson: () => link()(DateString, dateFromString),
21657
- toArbitrary: () => (fc, ctx) => fc.date(dateArbitraryConstraints(ctx?.constraint, ctx?.constraint?.ordered?.order === Date2 ? ctx.constraint.ordered : void 0))
21739
+ toArbitrary: () => (fc, ctx) => fc.date(dateArbitraryConstraints(ctx?.constraint?.ordered?.order === Date2 ? ctx.constraint.ordered : void 0, {
21740
+ noInvalidDate: true
21741
+ }))
21658
21742
  });
21659
- var DateValid = /* @__PURE__ */ Date4.check(/* @__PURE__ */ isDateValid());
21660
- var Finite = /* @__PURE__ */ Number6.check(/* @__PURE__ */ isFinite3());
21661
- var Int = /* @__PURE__ */ Number6.check(/* @__PURE__ */ isInt());
21662
21743
  var immerable = /* @__PURE__ */ globalThis.Symbol.for("immer-draftable");
21663
21744
  var payloadToken = {};
21664
21745
  function makeClass(Inherited, identifier2, struct2, annotations, proto2) {
@@ -21758,7 +21839,7 @@ function getClassSchemaFactory(from, identifier2, annotations) {
21758
21839
  terminal: from2.terminal?.map((args2) => new self(args2))
21759
21840
  }),
21760
21841
  toFormatter: ([from2]) => (t) => `${self.identifier}(${from2(t)})`,
21761
- "~sentinels": collectSentinels(from.ast),
21842
+ [SENTINELS_ANNOTATION_KEY]: collectSentinels(from.ast),
21762
21843
  ...annotations
21763
21844
  }));
21764
21845
  return memo = decodeTo2(to2, transformation)(from);
@@ -21785,12 +21866,41 @@ var TaggedErrorClass = (identifier2) => {
21785
21866
  return ErrorClass(identifier2 ?? tagValue)(struct2, annotations);
21786
21867
  };
21787
21868
  };
21869
+ function withoutConstructorDefault(context3) {
21870
+ return context3.defaultValue === void 0 ? context3 : new Context(context3.isOptional, context3.isMutable, void 0, context3.annotations);
21871
+ }
21872
+ function validateCanonicalObjectPropertyNames(ast) {
21873
+ if (ast.propertySignatures.some((ps2) => typeof ps2.name !== "string")) {
21874
+ throw new globalThis.Error("Objects property names must be strings", {
21875
+ cause: ast
21876
+ });
21877
+ }
21878
+ }
21879
+ function makeReorder(getPriority) {
21880
+ return (types) => {
21881
+ const indexMap = /* @__PURE__ */ new Map();
21882
+ for (let i = 0; i < types.length; i++) {
21883
+ indexMap.set(toEncoded(types[i]), i);
21884
+ }
21885
+ const sortedTypes = [...types].sort((a, b2) => {
21886
+ a = toEncoded(a);
21887
+ b2 = toEncoded(b2);
21888
+ const pa = getPriority(a);
21889
+ const pb = getPriority(b2);
21890
+ if (pa !== pb) return pa - pb;
21891
+ return indexMap.get(a) - indexMap.get(b2);
21892
+ });
21893
+ const orderChanged = sortedTypes.some((ast, index) => ast !== types[index]);
21894
+ if (!orderChanged) return types;
21895
+ return sortedTypes;
21896
+ };
21897
+ }
21788
21898
  function toCodecStringTree(schema) {
21789
21899
  return make18(serializerStringTree(schema.ast), {
21790
21900
  schema
21791
21901
  });
21792
21902
  }
21793
- function getStringTreePriority(ast) {
21903
+ var toStringTreeReorder = /* @__PURE__ */ makeReorder((ast) => {
21794
21904
  switch (ast._tag) {
21795
21905
  case "Null":
21796
21906
  case "Boolean":
@@ -21802,19 +21912,22 @@ function getStringTreePriority(ast) {
21802
21912
  default:
21803
21913
  return 1;
21804
21914
  }
21805
- }
21806
- var treeReorder = /* @__PURE__ */ makeReorder(getStringTreePriority);
21915
+ });
21807
21916
  function serializerTree(ast, recur2, onMissingAnnotation) {
21808
21917
  switch (ast._tag) {
21809
21918
  case "Declaration": {
21810
- const getLink = ast.annotations?.toCodecJson ?? ast.annotations?.toCodec;
21811
- if (isFunction(getLink)) {
21812
- const tps = isDeclaration(ast) ? ast.typeParameters.map((tp) => make18(recur2(toEncoded(tp)))) : [];
21813
- const link4 = getLink(tps);
21814
- const to2 = recur2(link4.to);
21815
- return replaceEncoding(ast, to2 === link4.to ? [link4] : [new Link(to2, link4.transformation)]);
21816
- }
21817
- return onMissingAnnotation(ast);
21919
+ const typeParameters = ast.typeParameters.map((tp) => make18(recur2(toEncoded(tp))));
21920
+ const getStringTreeLink = ast.annotations?.toCodecStringTree;
21921
+ if (isFunction(getStringTreeLink)) {
21922
+ const link5 = getStringTreeLink(typeParameters);
21923
+ if (link5 === void 0) return ast;
21924
+ return replaceEncoding(ast, [mapLink(link5, recur2)]);
21925
+ }
21926
+ const getJsonLink = ast.annotations?.toCodecJson;
21927
+ const jsonLink = isFunction(getJsonLink) ? getJsonLink(typeParameters) : void 0;
21928
+ const getLink = jsonLink === void 0 ? ast.annotations?.toCodec : void 0;
21929
+ const link4 = jsonLink ?? (isFunction(getLink) ? getLink(typeParameters) : void 0);
21930
+ return link4 === void 0 ? onMissingAnnotation(ast) : replaceEncoding(ast, [mapLink(link4, recur2)]);
21818
21931
  }
21819
21932
  case "Null":
21820
21933
  return replaceEncoding(ast, [nullToString]);
@@ -21831,15 +21944,11 @@ function serializerTree(ast, recur2, onMissingAnnotation) {
21831
21944
  case "BigInt":
21832
21945
  return ast.toCodecStringTree();
21833
21946
  case "Objects": {
21834
- if (ast.propertySignatures.some((ps2) => typeof ps2.name !== "string")) {
21835
- throw new globalThis.Error("Objects property names must be strings", {
21836
- cause: ast
21837
- });
21838
- }
21947
+ validateCanonicalObjectPropertyNames(ast);
21839
21948
  return ast.recur(recur2, parameterFromString);
21840
21949
  }
21841
21950
  case "Union": {
21842
- const sortedTypes = treeReorder(ast.types);
21951
+ const sortedTypes = toStringTreeReorder(ast.types);
21843
21952
  if (sortedTypes !== ast.types) {
21844
21953
  return new Union(sortedTypes, ast.mode, ast.annotations, ast.checks, ast.encoding, ast.context, ast.encodingChecks).recur(recur2);
21845
21954
  }
@@ -21859,16 +21968,24 @@ var serializerStringTree = /* @__PURE__ */ applyToSelfOrLastLinkEncoding((ast) =
21859
21968
  if (isSerializerArrayFromSingle(ast)) {
21860
21969
  return ast;
21861
21970
  }
21862
- const out = serializerTree(ast, serializerStringTree, (ast2) => replaceEncoding(ast2, [unknownToUndefined]));
21863
- if (out !== ast && isOptional(ast)) {
21864
- return optionalKeyLastLink(out);
21971
+ const out = serializerTree(ast, serializerStringTree, (ast2) => {
21972
+ throw new globalThis.Error("Missing structural codec for StringTree", {
21973
+ cause: ast2
21974
+ });
21975
+ });
21976
+ if (out !== ast && ast.context !== void 0) {
21977
+ return replaceContextLastLink(out, withoutConstructorDefault(ast.context));
21865
21978
  }
21866
21979
  return out;
21867
21980
  });
21868
- var unknownToUndefined = /* @__PURE__ */ new Link(undefined_3, /* @__PURE__ */ new Transformation(/* @__PURE__ */ passthrough2(), /* @__PURE__ */ transform(() => void 0)));
21869
- var Json2 = /* @__PURE__ */ make18(Json);
21981
+ var Json2 = /* @__PURE__ */ make18(/* @__PURE__ */ annotate(Json, {
21982
+ toCode: () => ({
21983
+ runtime: "Schema.Json",
21984
+ Type: "Schema.Json"
21985
+ })
21986
+ }));
21870
21987
 
21871
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/http/Cookies.js
21988
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/http/Cookies.js
21872
21989
  var TypeId29 = "~effect/http/Cookies";
21873
21990
  var CookieTypeId = "~effect/http/Cookies/Cookie";
21874
21991
  var Proto4 = {
@@ -21892,7 +22009,7 @@ var fromReadonlyRecord = (cookies) => {
21892
22009
  var fromIterable2 = (cookies) => {
21893
22010
  const record2 = {};
21894
22011
  for (const cookie of cookies) {
21895
- record2[cookie.name] = cookie;
22012
+ assignProperty(record2, cookie.name, cookie);
21896
22013
  }
21897
22014
  return fromReadonlyRecord(record2);
21898
22015
  };
@@ -22051,7 +22168,7 @@ var tryDecodeURIComponent = (str) => {
22051
22168
  }
22052
22169
  };
22053
22170
 
22054
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/http/Headers.js
22171
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/http/Headers.js
22055
22172
  var TypeId30 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
22056
22173
  var Proto5 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
22057
22174
  [TypeId30]: {
@@ -22108,7 +22225,7 @@ var fromInput = (input) => {
22108
22225
  return out;
22109
22226
  };
22110
22227
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto5);
22111
- var set3 = /* @__PURE__ */ dual(3, (self, key, value3) => {
22228
+ var set2 = /* @__PURE__ */ dual(3, (self, key, value3) => {
22112
22229
  const out = make19(self);
22113
22230
  out[key.toLowerCase()] = value3;
22114
22231
  return out;
@@ -22158,7 +22275,7 @@ var CurrentRedactedNames = /* @__PURE__ */ Reference("effect/Headers/CurrentReda
22158
22275
  defaultValue: () => ["authorization", "cookie", "set-cookie", "x-api-key"]
22159
22276
  });
22160
22277
 
22161
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/http/HttpClientError.js
22278
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/http/HttpClientError.js
22162
22279
  var TypeId31 = "~effect/http/HttpClientError";
22163
22280
  var HttpClientError = class extends (/* @__PURE__ */ TaggedError2("HttpClientError")) {
22164
22281
  constructor(props) {
@@ -22293,7 +22410,7 @@ var EmptyBodyError = class extends (/* @__PURE__ */ TaggedError2("EmptyBodyError
22293
22410
  }
22294
22411
  };
22295
22412
 
22296
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/http/UrlParams.js
22413
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/http/UrlParams.js
22297
22414
  var TypeId32 = "~effect/http/UrlParams";
22298
22415
  var isUrlParams = (u2) => hasProperty(u2, TypeId32);
22299
22416
  var Proto6 = {
@@ -22374,7 +22491,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
22374
22491
  return out;
22375
22492
  });
22376
22493
 
22377
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/http/HttpBody.js
22494
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/http/HttpBody.js
22378
22495
  var TypeId33 = "~effect/http/HttpBody";
22379
22496
  var Proto7 = class {
22380
22497
  [TypeId33];
@@ -22401,10 +22518,10 @@ var Empty2 = class extends Proto7 {
22401
22518
  };
22402
22519
  var empty9 = /* @__PURE__ */ new Empty2();
22403
22520
 
22404
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/http/HttpMethod.js
22521
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/http/HttpMethod.js
22405
22522
  var allShort = [["GET", "get"], ["POST", "post"], ["PUT", "put"], ["DELETE", "del"], ["PATCH", "patch"], ["HEAD", "head"], ["OPTIONS", "options"], ["TRACE", "trace"]];
22406
22523
 
22407
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/http/Url.js
22524
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/http/Url.js
22408
22525
  var UrlError = class extends (/* @__PURE__ */ TaggedError2("UrlError")) {
22409
22526
  };
22410
22527
  var make21 = (url, params, hash2) => try_({
@@ -22432,7 +22549,7 @@ var baseUrl = () => {
22432
22549
  return void 0;
22433
22550
  };
22434
22551
 
22435
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/http/HttpClientRequest.js
22552
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/http/HttpClientRequest.js
22436
22553
  var TypeId34 = "~effect/http/HttpClientRequest";
22437
22554
  var Proto8 = {
22438
22555
  [TypeId34]: TypeId34,
@@ -22497,7 +22614,7 @@ var modify = /* @__PURE__ */ dual(2, (self, options) => {
22497
22614
  return result3;
22498
22615
  });
22499
22616
  var setMethod = /* @__PURE__ */ dual(2, (self, method) => makeWith(method, self.url, self.urlParams, self.hash, self.headers, self.body));
22500
- var setHeader = /* @__PURE__ */ dual(3, (self, key, value3) => makeWith(self.method, self.url, self.urlParams, self.hash, set3(self.headers, key, value3), self.body));
22617
+ var setHeader = /* @__PURE__ */ dual(3, (self, key, value3) => makeWith(self.method, self.url, self.urlParams, self.hash, set2(self.headers, key, value3), self.body));
22501
22618
  var setHeaders = /* @__PURE__ */ dual(2, (self, input) => makeWith(self.method, self.url, self.urlParams, self.hash, setAll(self.headers, input), self.body));
22502
22619
  var accept = /* @__PURE__ */ dual(2, (self, mediaType) => setHeader(self, "Accept", mediaType));
22503
22620
  var acceptJson = /* @__PURE__ */ accept("application/json");
@@ -22531,16 +22648,16 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
22531
22648
  headers = remove2(remove2(headers, "Content-Type"), "Content-length");
22532
22649
  } else {
22533
22650
  if (body.contentType) {
22534
- headers = set3(headers, "content-type", body.contentType);
22651
+ headers = set2(headers, "content-type", body.contentType);
22535
22652
  }
22536
22653
  if (body.contentLength !== void 0) {
22537
- headers = set3(headers, "content-length", body.contentLength.toString());
22654
+ headers = set2(headers, "content-length", body.contentLength.toString());
22538
22655
  }
22539
22656
  }
22540
22657
  return makeWith(self.method, self.url, self.urlParams, self.hash, headers, body);
22541
22658
  });
22542
22659
 
22543
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
22660
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/http/HttpIncomingMessage.js
22544
22661
  var TypeId35 = "~effect/http/HttpIncomingMessage";
22545
22662
  var inspect = (self, that) => {
22546
22663
  const contentType = self.headers["content-type"] ?? "";
@@ -22567,7 +22684,7 @@ var inspect = (self, that) => {
22567
22684
  return obj;
22568
22685
  };
22569
22686
 
22570
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/http/HttpClientResponse.js
22687
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/http/HttpClientResponse.js
22571
22688
  var TypeId36 = "~effect/http/HttpClientResponse";
22572
22689
  var fromWeb = (request5, source) => new WebHttpClientResponse(request5, source);
22573
22690
  var stream2 = (effect2) => unwrap3(map6(effect2, (self) => self.stream));
@@ -22709,7 +22826,7 @@ var WebHttpClientResponse = class extends Class2 {
22709
22826
  }
22710
22827
  };
22711
22828
 
22712
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/http/HttpTraceContext.js
22829
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/http/HttpTraceContext.js
22713
22830
  var toHeaders = (span) => fromRecordUnsafe({
22714
22831
  b3: `${span.traceId}-${span.spanId}-${span.sampled ? "1" : "0"}${match(span.parent, {
22715
22832
  onNone: () => "",
@@ -22718,7 +22835,7 @@ var toHeaders = (span) => fromRecordUnsafe({
22718
22835
  traceparent: `00-${span.traceId}-${span.spanId}-${span.sampled ? "01" : "00"}`
22719
22836
  });
22720
22837
 
22721
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/http/HttpClient.js
22838
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/http/HttpClient.js
22722
22839
  var TypeId37 = "~effect/http/HttpClient";
22723
22840
  var HttpClient = /* @__PURE__ */ Service("effect/HttpClient");
22724
22841
  var transformResponse = /* @__PURE__ */ dual(2, (self, f2) => makeWith2((request5) => f2(self.postprocess(request5)), self.preprocess));
@@ -22925,7 +23042,7 @@ var InterruptibleResponse = class {
22925
23042
  }
22926
23043
  };
22927
23044
 
22928
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.100_effect@4.0.0-beta.100/node_modules/@effect/platform-node-shared/dist/NodeSink.js
23045
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.102_effect@4.0.0-beta.102/node_modules/@effect/platform-node-shared/dist/NodeSink.js
22929
23046
  var fromWritable = (options) => fromChannel2(mapDone(fromWritableChannel(options), (_2) => [_2]));
22930
23047
  var fromWritableChannel = (options) => fromTransform((pull) => {
22931
23048
  const writable = options.evaluate();
@@ -22965,7 +23082,7 @@ var pullIntoWritable = (options) => options.pull.pipe(flatMap3((chunk) => {
22965
23082
  });
22966
23083
  }) : identity);
22967
23084
 
22968
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.100_effect@4.0.0-beta.100/node_modules/@effect/platform-node-shared/dist/NodeStream.js
23085
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.102_effect@4.0.0-beta.102/node_modules/@effect/platform-node-shared/dist/NodeStream.js
22969
23086
  var fromReadable = (options) => fromChannel3(fromReadableChannel(options));
22970
23087
  var fromReadableChannel = (options) => fromTransform((_2, scope3) => readableToPullUnsafe({
22971
23088
  scope: scope3,
@@ -23024,7 +23141,7 @@ var readableToPullUnsafe = (options) => {
23024
23141
  };
23025
23142
  var defaultOnError = (error2) => new UnknownError2(error2);
23026
23143
 
23027
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/http/FetchHttpClient.js
23144
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/http/FetchHttpClient.js
23028
23145
  var Fetch = /* @__PURE__ */ Reference("effect/http/FetchHttpClient/Fetch", {
23029
23146
  defaultValue: () => globalThis.fetch
23030
23147
  });
@@ -23066,7 +23183,7 @@ var fetch = /* @__PURE__ */ make23((request5, url, signal, fiber3) => {
23066
23183
  });
23067
23184
  var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch));
23068
23185
 
23069
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Runtime.js
23186
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Runtime.js
23070
23187
  var defaultTeardown = (exit3, onExit4) => {
23071
23188
  if (isSuccess4(exit3)) return onExit4(0);
23072
23189
  if (hasInterruptsOnly2(exit3.cause)) return onExit4(130);
@@ -23112,7 +23229,7 @@ var getErrorReported = (u2) => {
23112
23229
  return true;
23113
23230
  };
23114
23231
 
23115
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.100_effect@4.0.0-beta.100/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
23232
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.102_effect@4.0.0-beta.102/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
23116
23233
  var runMain = /* @__PURE__ */ makeRunMain(({
23117
23234
  fiber: fiber3,
23118
23235
  teardown
@@ -23135,10 +23252,10 @@ var runMain = /* @__PURE__ */ makeRunMain(({
23135
23252
  process.on("SIGTERM", onSigint);
23136
23253
  });
23137
23254
 
23138
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.100_effect@4.0.0-beta.100_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeRuntime.js
23255
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.102_effect@4.0.0-beta.102_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeRuntime.js
23139
23256
  var runMain2 = runMain;
23140
23257
 
23141
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Path.js
23258
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Path.js
23142
23259
  var Path_exports = {};
23143
23260
  __export(Path_exports, {
23144
23261
  Path: () => Path,
@@ -23612,7 +23729,7 @@ var posixImpl = /* @__PURE__ */ Path.of({
23612
23729
  });
23613
23730
  var layer3 = /* @__PURE__ */ succeed5(Path)(posixImpl);
23614
23731
 
23615
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
23732
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
23616
23733
  var ExitCode = /* @__PURE__ */ nominal();
23617
23734
  var ProcessId = /* @__PURE__ */ nominal();
23618
23735
  var HandleTypeId = "~effect/ChildProcessSpawner/ChildProcessHandle";
@@ -23626,7 +23743,9 @@ var HandleProto = {
23626
23743
  };
23627
23744
  }
23628
23745
  };
23629
- var makeHandle = (params) => Object.assign(Object.create(HandleProto), params);
23746
+ var makeHandle = (params) => Object.setPrototypeOf({
23747
+ ...params
23748
+ }, HandleProto);
23630
23749
  var make24 = (spawn2) => {
23631
23750
  const streamString = (command2, options) => spawn2(command2).pipe(map6((handle) => decodeText(options?.includeStderr === true ? handle.all : handle.stdout)), unwrap3);
23632
23751
  const streamLines = (command2, options) => splitLines2(streamString(command2, options));
@@ -23642,7 +23761,7 @@ var make24 = (spawn2) => {
23642
23761
  var ChildProcessSpawner = class extends (/* @__PURE__ */ Service()("effect/process/ChildProcessSpawner")) {
23643
23762
  };
23644
23763
 
23645
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/process/ChildProcess.js
23764
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/process/ChildProcess.js
23646
23765
  var TypeId39 = "~effect/unstable/process/ChildProcess";
23647
23766
  var Proto10 = {
23648
23767
  .../* @__PURE__ */ Prototype2({
@@ -23766,7 +23885,7 @@ var splitByWhitespaces = (template, rawTemplate) => {
23766
23885
  };
23767
23886
  var concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || prevTokens.length === 0 || nextTokens.length === 0 ? [...prevTokens, ...nextTokens] : [...prevTokens.slice(0, -1), `${prevTokens.at(-1)}${nextTokens.at(0)}`, ...nextTokens.slice(1)];
23768
23887
 
23769
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.100_effect@4.0.0-beta.100/node_modules/@effect/platform-node-shared/dist/internal/utils.js
23888
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.102_effect@4.0.0-beta.102/node_modules/@effect/platform-node-shared/dist/internal/utils.js
23770
23889
  var handleErrnoException = (module, method) => (err, [path5]) => {
23771
23890
  let reason = "Unknown";
23772
23891
  switch (err.code) {
@@ -23802,7 +23921,7 @@ var handleErrnoException = (module, method) => (err, [path5]) => {
23802
23921
  });
23803
23922
  };
23804
23923
 
23805
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.100_effect@4.0.0-beta.100/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
23924
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.102_effect@4.0.0-beta.102/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
23806
23925
  var toError = (error2) => error2 instanceof globalThis.Error ? error2 : new globalThis.Error(String(error2));
23807
23926
  var toPlatformError = (method, error2, command2) => {
23808
23927
  const {
@@ -24283,7 +24402,7 @@ var flattenCommand = (command2) => {
24283
24402
  };
24284
24403
  };
24285
24404
 
24286
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Crypto.js
24405
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Crypto.js
24287
24406
  var TypeId40 = "~effect/platform/Crypto";
24288
24407
  var Crypto = /* @__PURE__ */ Service("effect/Crypto");
24289
24408
  var make28 = (impl) => {
@@ -24383,7 +24502,7 @@ var make29 = /* @__PURE__ */ make28({
24383
24502
  });
24384
24503
  var layer5 = /* @__PURE__ */ succeed5(Crypto, make29);
24385
24504
 
24386
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.100_effect@4.0.0-beta.100_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeCrypto.js
24505
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.102_effect@4.0.0-beta.102_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeCrypto.js
24387
24506
  var layer6 = layer5;
24388
24507
  var handleBadArgument = (method) => (err) => badArgument({
24389
24508
  module: "FileSystem",
@@ -24391,20 +24510,20 @@ var handleBadArgument = (method) => (err) => badArgument({
24391
24510
  description: err.message ?? String(err)
24392
24511
  });
24393
24512
  var access2 = /* @__PURE__ */ (() => {
24394
- const nodeAccess = /* @__PURE__ */ effectify(m__namespace.access, /* @__PURE__ */ handleErrnoException("FileSystem", "access"), /* @__PURE__ */ handleBadArgument("access"));
24513
+ const nodeAccess = /* @__PURE__ */ effectify(u__namespace.access, /* @__PURE__ */ handleErrnoException("FileSystem", "access"), /* @__PURE__ */ handleBadArgument("access"));
24395
24514
  return (path5, options) => {
24396
- let mode = m__namespace.constants.F_OK;
24515
+ let mode = u__namespace.constants.F_OK;
24397
24516
  if (options?.readable) {
24398
- mode |= m__namespace.constants.R_OK;
24517
+ mode |= u__namespace.constants.R_OK;
24399
24518
  }
24400
24519
  if (options?.writable) {
24401
- mode |= m__namespace.constants.W_OK;
24520
+ mode |= u__namespace.constants.W_OK;
24402
24521
  }
24403
24522
  return nodeAccess(path5, mode);
24404
24523
  };
24405
24524
  })();
24406
24525
  var copy = /* @__PURE__ */ (() => {
24407
- const nodeCp = /* @__PURE__ */ effectify(m__namespace.cp, /* @__PURE__ */ handleErrnoException("FileSystem", "copy"), /* @__PURE__ */ handleBadArgument("copy"));
24526
+ const nodeCp = /* @__PURE__ */ effectify(u__namespace.cp, /* @__PURE__ */ handleErrnoException("FileSystem", "copy"), /* @__PURE__ */ handleBadArgument("copy"));
24408
24527
  return (fromPath, toPath, options) => nodeCp(fromPath, toPath, {
24409
24528
  force: options?.overwrite ?? false,
24410
24529
  preserveTimestamps: options?.preserveTimestamps ?? false,
@@ -24412,37 +24531,37 @@ var copy = /* @__PURE__ */ (() => {
24412
24531
  });
24413
24532
  })();
24414
24533
  var copyFile2 = /* @__PURE__ */ (() => {
24415
- const nodeCopyFile = /* @__PURE__ */ effectify(m__namespace.copyFile, /* @__PURE__ */ handleErrnoException("FileSystem", "copyFile"), /* @__PURE__ */ handleBadArgument("copyFile"));
24534
+ const nodeCopyFile = /* @__PURE__ */ effectify(u__namespace.copyFile, /* @__PURE__ */ handleErrnoException("FileSystem", "copyFile"), /* @__PURE__ */ handleBadArgument("copyFile"));
24416
24535
  return (fromPath, toPath) => nodeCopyFile(fromPath, toPath);
24417
24536
  })();
24418
24537
  var chmod2 = /* @__PURE__ */ (() => {
24419
- const nodeChmod = /* @__PURE__ */ effectify(m__namespace.chmod, /* @__PURE__ */ handleErrnoException("FileSystem", "chmod"), /* @__PURE__ */ handleBadArgument("chmod"));
24538
+ const nodeChmod = /* @__PURE__ */ effectify(u__namespace.chmod, /* @__PURE__ */ handleErrnoException("FileSystem", "chmod"), /* @__PURE__ */ handleBadArgument("chmod"));
24420
24539
  return (path5, mode) => nodeChmod(path5, mode);
24421
24540
  })();
24422
24541
  var chown2 = /* @__PURE__ */ (() => {
24423
- const nodeChown = /* @__PURE__ */ effectify(m__namespace.chown, /* @__PURE__ */ handleErrnoException("FileSystem", "chown"), /* @__PURE__ */ handleBadArgument("chown"));
24542
+ const nodeChown = /* @__PURE__ */ effectify(u__namespace.chown, /* @__PURE__ */ handleErrnoException("FileSystem", "chown"), /* @__PURE__ */ handleBadArgument("chown"));
24424
24543
  return (path5, uid, gid) => nodeChown(path5, uid, gid);
24425
24544
  })();
24426
24545
  var glob2 = /* @__PURE__ */ (() => {
24427
- const nodeGlob = /* @__PURE__ */ effectify(m__namespace.glob, /* @__PURE__ */ handleErrnoException("FileSystem", "glob"), /* @__PURE__ */ handleBadArgument("glob"));
24546
+ const nodeGlob = /* @__PURE__ */ effectify(u__namespace.glob, /* @__PURE__ */ handleErrnoException("FileSystem", "glob"), /* @__PURE__ */ handleBadArgument("glob"));
24428
24547
  return (pattern, options) => nodeGlob(pattern, {
24429
24548
  cwd: options?.root,
24430
24549
  exclude: options?.exclude
24431
24550
  });
24432
24551
  })();
24433
24552
  var link3 = /* @__PURE__ */ (() => {
24434
- const nodeLink = /* @__PURE__ */ effectify(m__namespace.link, /* @__PURE__ */ handleErrnoException("FileSystem", "link"), /* @__PURE__ */ handleBadArgument("link"));
24553
+ const nodeLink = /* @__PURE__ */ effectify(u__namespace.link, /* @__PURE__ */ handleErrnoException("FileSystem", "link"), /* @__PURE__ */ handleBadArgument("link"));
24435
24554
  return (existingPath, newPath) => nodeLink(existingPath, newPath);
24436
24555
  })();
24437
24556
  var makeDirectory = /* @__PURE__ */ (() => {
24438
- const nodeMkdir = /* @__PURE__ */ effectify(m__namespace.mkdir, /* @__PURE__ */ handleErrnoException("FileSystem", "makeDirectory"), /* @__PURE__ */ handleBadArgument("makeDirectory"));
24557
+ const nodeMkdir = /* @__PURE__ */ effectify(u__namespace.mkdir, /* @__PURE__ */ handleErrnoException("FileSystem", "makeDirectory"), /* @__PURE__ */ handleBadArgument("makeDirectory"));
24439
24558
  return (path5, options) => nodeMkdir(path5, {
24440
24559
  recursive: options?.recursive ?? false,
24441
24560
  mode: options?.mode
24442
24561
  });
24443
24562
  })();
24444
24563
  var makeTempDirectoryFactory = (method) => {
24445
- const nodeMkdtemp = effectify(m__namespace.mkdtemp, handleErrnoException("FileSystem", method), handleBadArgument(method));
24564
+ const nodeMkdtemp = effectify(u__namespace.mkdtemp, handleErrnoException("FileSystem", method), handleBadArgument(method));
24446
24565
  return (options) => suspend2(() => {
24447
24566
  const prefix = options?.prefix ?? "";
24448
24567
  const directory4 = typeof options?.directory === "string" ? R__namespace.join(options.directory, ".") : OS__namespace.tmpdir();
@@ -24451,7 +24570,7 @@ var makeTempDirectoryFactory = (method) => {
24451
24570
  };
24452
24571
  var makeTempDirectory = /* @__PURE__ */ makeTempDirectoryFactory("makeTempDirectory");
24453
24572
  var removeFactory = (method) => {
24454
- const nodeRm = effectify(m__namespace.rm, handleErrnoException("FileSystem", method), handleBadArgument(method));
24573
+ const nodeRm = effectify(u__namespace.rm, handleErrnoException("FileSystem", method), handleBadArgument(method));
24455
24574
  return (path5, options) => nodeRm(path5, {
24456
24575
  recursive: options?.recursive ?? false,
24457
24576
  force: options?.force ?? false
@@ -24466,19 +24585,19 @@ var makeTempDirectoryScoped = /* @__PURE__ */ (() => {
24466
24585
  })));
24467
24586
  })();
24468
24587
  var openFactory = (method) => {
24469
- const nodeOpen = effectify(m__namespace.open, handleErrnoException("FileSystem", method), handleBadArgument(method));
24470
- const nodeClose = effectify(m__namespace.close, handleErrnoException("FileSystem", method), handleBadArgument(method));
24588
+ const nodeOpen = effectify(u__namespace.open, handleErrnoException("FileSystem", method), handleBadArgument(method));
24589
+ const nodeClose = effectify(u__namespace.close, handleErrnoException("FileSystem", method), handleBadArgument(method));
24471
24590
  return (path5, options) => pipe(acquireRelease2(nodeOpen(path5, options?.flag ?? "r", options?.mode), (fd) => orDie2(nodeClose(fd))), map6((fd) => makeFile(FileDescriptor(fd), options?.flag?.startsWith("a") ?? false)));
24472
24591
  };
24473
24592
  var open2 = /* @__PURE__ */ openFactory("open");
24474
24593
  var makeFile = /* @__PURE__ */ (() => {
24475
- const nodeReadFactory = (method) => effectify(m__namespace.read, handleErrnoException("FileSystem", method), handleBadArgument(method));
24594
+ const nodeReadFactory = (method) => effectify(u__namespace.read, handleErrnoException("FileSystem", method), handleBadArgument(method));
24476
24595
  const nodeRead = /* @__PURE__ */ nodeReadFactory("read");
24477
24596
  const nodeReadAlloc = /* @__PURE__ */ nodeReadFactory("readAlloc");
24478
- const nodeStat = /* @__PURE__ */ effectify(m__namespace.fstat, /* @__PURE__ */ handleErrnoException("FileSystem", "stat"), /* @__PURE__ */ handleBadArgument("stat"));
24479
- const nodeTruncate = /* @__PURE__ */ effectify(m__namespace.ftruncate, /* @__PURE__ */ handleErrnoException("FileSystem", "truncate"), /* @__PURE__ */ handleBadArgument("truncate"));
24480
- const nodeSync = /* @__PURE__ */ effectify(m__namespace.fsync, /* @__PURE__ */ handleErrnoException("FileSystem", "sync"), /* @__PURE__ */ handleBadArgument("sync"));
24481
- const nodeWriteFactory = (method) => effectify(m__namespace.write, handleErrnoException("FileSystem", method), handleBadArgument(method));
24597
+ const nodeStat = /* @__PURE__ */ effectify(u__namespace.fstat, /* @__PURE__ */ handleErrnoException("FileSystem", "stat"), /* @__PURE__ */ handleBadArgument("stat"));
24598
+ const nodeTruncate = /* @__PURE__ */ effectify(u__namespace.ftruncate, /* @__PURE__ */ handleErrnoException("FileSystem", "truncate"), /* @__PURE__ */ handleBadArgument("truncate"));
24599
+ const nodeSync = /* @__PURE__ */ effectify(u__namespace.fsync, /* @__PURE__ */ handleErrnoException("FileSystem", "sync"), /* @__PURE__ */ handleBadArgument("sync"));
24600
+ const nodeWriteFactory = (method) => effectify(u__namespace.write, handleErrnoException("FileSystem", method), handleBadArgument(method));
24482
24601
  const nodeWrite = /* @__PURE__ */ nodeWriteFactory("write");
24483
24602
  const nodeWriteAll = /* @__PURE__ */ nodeWriteFactory("writeAll");
24484
24603
  class FileImpl {
@@ -24610,12 +24729,12 @@ var makeTempFileScoped = /* @__PURE__ */ (() => {
24610
24729
  })));
24611
24730
  })();
24612
24731
  var readDirectory = (path5, options) => tryPromise2({
24613
- try: () => m__namespace.promises.readdir(path5, options),
24732
+ try: () => u__namespace.promises.readdir(path5, options),
24614
24733
  catch: (err) => handleErrnoException("FileSystem", "readDirectory")(err, [path5])
24615
24734
  });
24616
24735
  var readFile2 = (path5) => callback2((resume, signal) => {
24617
24736
  try {
24618
- m__namespace.readFile(path5, {
24737
+ u__namespace.readFile(path5, {
24619
24738
  signal
24620
24739
  }, (err, data) => {
24621
24740
  if (err) {
@@ -24629,15 +24748,15 @@ var readFile2 = (path5) => callback2((resume, signal) => {
24629
24748
  }
24630
24749
  });
24631
24750
  var readLink = /* @__PURE__ */ (() => {
24632
- const nodeReadLink = /* @__PURE__ */ effectify(m__namespace.readlink, /* @__PURE__ */ handleErrnoException("FileSystem", "readLink"), /* @__PURE__ */ handleBadArgument("readLink"));
24751
+ const nodeReadLink = /* @__PURE__ */ effectify(u__namespace.readlink, /* @__PURE__ */ handleErrnoException("FileSystem", "readLink"), /* @__PURE__ */ handleBadArgument("readLink"));
24633
24752
  return (path5) => nodeReadLink(path5);
24634
24753
  })();
24635
24754
  var realPath = /* @__PURE__ */ (() => {
24636
- const nodeRealPath = /* @__PURE__ */ effectify(m__namespace.realpath, /* @__PURE__ */ handleErrnoException("FileSystem", "realPath"), /* @__PURE__ */ handleBadArgument("realPath"));
24755
+ const nodeRealPath = /* @__PURE__ */ effectify(u__namespace.realpath, /* @__PURE__ */ handleErrnoException("FileSystem", "realPath"), /* @__PURE__ */ handleBadArgument("realPath"));
24637
24756
  return (path5) => nodeRealPath(path5);
24638
24757
  })();
24639
24758
  var rename2 = /* @__PURE__ */ (() => {
24640
- const nodeRename = /* @__PURE__ */ effectify(m__namespace.rename, /* @__PURE__ */ handleErrnoException("FileSystem", "rename"), /* @__PURE__ */ handleBadArgument("rename"));
24759
+ const nodeRename = /* @__PURE__ */ effectify(u__namespace.rename, /* @__PURE__ */ handleErrnoException("FileSystem", "rename"), /* @__PURE__ */ handleBadArgument("rename"));
24641
24760
  return (oldPath, newPath) => nodeRename(oldPath, newPath);
24642
24761
  })();
24643
24762
  var makeFileInfo = (stat3) => ({
@@ -24657,23 +24776,23 @@ var makeFileInfo = (stat3) => ({
24657
24776
  blocks: fromNullishOr(stat3.blocks)
24658
24777
  });
24659
24778
  var stat2 = /* @__PURE__ */ (() => {
24660
- const nodeStat = /* @__PURE__ */ effectify(m__namespace.stat, /* @__PURE__ */ handleErrnoException("FileSystem", "stat"), /* @__PURE__ */ handleBadArgument("stat"));
24779
+ const nodeStat = /* @__PURE__ */ effectify(u__namespace.stat, /* @__PURE__ */ handleErrnoException("FileSystem", "stat"), /* @__PURE__ */ handleBadArgument("stat"));
24661
24780
  return (path5) => map6(nodeStat(path5), makeFileInfo);
24662
24781
  })();
24663
24782
  var symlink2 = /* @__PURE__ */ (() => {
24664
- const nodeSymlink = /* @__PURE__ */ effectify(m__namespace.symlink, /* @__PURE__ */ handleErrnoException("FileSystem", "symlink"), /* @__PURE__ */ handleBadArgument("symlink"));
24783
+ const nodeSymlink = /* @__PURE__ */ effectify(u__namespace.symlink, /* @__PURE__ */ handleErrnoException("FileSystem", "symlink"), /* @__PURE__ */ handleBadArgument("symlink"));
24665
24784
  return (target, path5) => nodeSymlink(target, path5);
24666
24785
  })();
24667
24786
  var truncate2 = /* @__PURE__ */ (() => {
24668
- const nodeTruncate = /* @__PURE__ */ effectify(m__namespace.truncate, /* @__PURE__ */ handleErrnoException("FileSystem", "truncate"), /* @__PURE__ */ handleBadArgument("truncate"));
24787
+ const nodeTruncate = /* @__PURE__ */ effectify(u__namespace.truncate, /* @__PURE__ */ handleErrnoException("FileSystem", "truncate"), /* @__PURE__ */ handleBadArgument("truncate"));
24669
24788
  return (path5, length) => nodeTruncate(path5, length !== void 0 ? Number(length) : void 0);
24670
24789
  })();
24671
24790
  var utimes2 = /* @__PURE__ */ (() => {
24672
- const nodeUtimes = /* @__PURE__ */ effectify(m__namespace.utimes, /* @__PURE__ */ handleErrnoException("FileSystem", "utime"), /* @__PURE__ */ handleBadArgument("utime"));
24791
+ const nodeUtimes = /* @__PURE__ */ effectify(u__namespace.utimes, /* @__PURE__ */ handleErrnoException("FileSystem", "utime"), /* @__PURE__ */ handleBadArgument("utime"));
24673
24792
  return (path5, atime, mtime) => nodeUtimes(path5, atime, mtime);
24674
24793
  })();
24675
24794
  var watchNode = (path5) => callback3((queue) => acquireRelease2(sync2(() => {
24676
- const watcher = m__namespace.watch(path5, {
24795
+ const watcher = u__namespace.watch(path5, {
24677
24796
  recursive: true
24678
24797
  }, (event, path6) => {
24679
24798
  if (!path6) return;
@@ -24717,7 +24836,7 @@ var watchNode = (path5) => callback3((queue) => acquireRelease2(sync2(() => {
24717
24836
  var watch2 = (backend, path5) => stat2(path5).pipe(map6((stat3) => backend.pipe(flatMap((_2) => _2.register(path5, stat3)), getOrElse(() => watchNode(path5)))), unwrap3);
24718
24837
  var writeFile2 = (path5, data, options) => callback2((resume, signal) => {
24719
24838
  try {
24720
- m__namespace.writeFile(path5, data, {
24839
+ u__namespace.writeFile(path5, data, {
24721
24840
  signal,
24722
24841
  flag: options?.flag,
24723
24842
  mode: options?.mode
@@ -24763,7 +24882,7 @@ var makeFileSystem = /* @__PURE__ */ map6(/* @__PURE__ */ serviceOption2(WatchBa
24763
24882
  }));
24764
24883
  var layer7 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
24765
24884
 
24766
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.100_effect@4.0.0-beta.100_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
24885
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.102_effect@4.0.0-beta.102_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeFileSystem.js
24767
24886
  var layer8 = layer7;
24768
24887
  var fromFileUrl2 = (url) => try_3({
24769
24888
  try: () => NodeUrl__namespace.fileURLToPath(url),
@@ -24788,10 +24907,10 @@ var layer9 = /* @__PURE__ */ succeed5(Path)({
24788
24907
  toFileUrl: toFileUrl2
24789
24908
  });
24790
24909
 
24791
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.100_effect@4.0.0-beta.100_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodePath.js
24910
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.102_effect@4.0.0-beta.102_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodePath.js
24792
24911
  var layer10 = layer9;
24793
24912
 
24794
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Stdio.js
24913
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Stdio.js
24795
24914
  var TypeId41 = "~effect/Stdio";
24796
24915
  var Stdio = /* @__PURE__ */ Service(TypeId41);
24797
24916
  var make30 = (options) => ({
@@ -24799,7 +24918,7 @@ var make30 = (options) => ({
24799
24918
  ...options
24800
24919
  });
24801
24920
 
24802
- // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.100_effect@4.0.0-beta.100/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
24921
+ // ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.102_effect@4.0.0-beta.102/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
24803
24922
  var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make30({
24804
24923
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
24805
24924
  stdout: (options) => fromWritable({
@@ -24834,10 +24953,10 @@ var layer11 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make30({
24834
24953
  })
24835
24954
  }));
24836
24955
 
24837
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.100_effect@4.0.0-beta.100_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeStdio.js
24956
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.102_effect@4.0.0-beta.102_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeStdio.js
24838
24957
  var layer12 = layer11;
24839
24958
 
24840
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Terminal.js
24959
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Terminal.js
24841
24960
  var TypeId42 = "~effect/platform/Terminal";
24842
24961
  var QuitErrorTypeId = "effect/platform/Terminal/QuitError";
24843
24962
  var QuitError = class extends (/* @__PURE__ */ ErrorClass("QuitError")({
@@ -24927,13 +25046,13 @@ function defaultShouldQuit(input) {
24927
25046
  return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
24928
25047
  }
24929
25048
 
24930
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.100_effect@4.0.0-beta.100_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeTerminal.js
25049
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.102_effect@4.0.0-beta.102_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeTerminal.js
24931
25050
  var layer14 = layer13;
24932
25051
 
24933
- // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.100_effect@4.0.0-beta.100_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeServices.js
25052
+ // ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.102_effect@4.0.0-beta.102_ioredis@5.11.1/node_modules/@effect/platform-node/dist/NodeServices.js
24934
25053
  var layer15 = /* @__PURE__ */ provideMerge(layer4, /* @__PURE__ */ mergeAll2(layer8, layer6, layer10, layer12, layer14));
24935
25054
 
24936
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/ConfigProvider.js
25055
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/ConfigProvider.js
24937
25056
  function makeValue(value3) {
24938
25057
  return {
24939
25058
  _tag: "Value",
@@ -25001,8 +25120,8 @@ function buildEnvTrie(env) {
25001
25120
  const segments = name.split("_");
25002
25121
  let node = trie;
25003
25122
  for (const seg of segments) {
25004
- node.children ??= {};
25005
- node = node.children[seg] ??= {};
25123
+ const children = node.children ??= /* @__PURE__ */ Object.create(null);
25124
+ node = children[seg] ??= {};
25006
25125
  }
25007
25126
  }
25008
25127
  return trie;
@@ -25010,7 +25129,7 @@ function buildEnvTrie(env) {
25010
25129
  var NUMERIC_INDEX = /^(0|[1-9][0-9]*)$/;
25011
25130
  function nodeAtEnv(trie, env, path5, preserveEmptyStrings) {
25012
25131
  const key = path5.map(String).join("_");
25013
- const leafValue = emptyStringAsMissing(env[key]);
25132
+ const leafValue = emptyStringAsMissing(Object.hasOwn(env, key) ? env[key] : void 0);
25014
25133
  const trieNode = trieNodeAt(trie, path5);
25015
25134
  const children = trieNode?.children ? Object.keys(trieNode.children) : [];
25016
25135
  if (children.length === 0) {
@@ -25033,7 +25152,7 @@ function trieNodeAt(root, path5) {
25033
25152
  return node;
25034
25153
  }
25035
25154
 
25036
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Config.js
25155
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Config.js
25037
25156
  var TypeId43 = "~effect/Config";
25038
25157
  var ConfigError = class {
25039
25158
  _tag = "ConfigError";
@@ -25125,7 +25244,7 @@ function succeed8(value3) {
25125
25244
  return make34(() => succeed6(value3));
25126
25245
  }
25127
25246
 
25128
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/Console.js
25247
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/Console.js
25129
25248
  var Console = ConsoleRef;
25130
25249
  var consoleWith = (f2) => withFiber((fiber3) => f2(fiber3.getRef(Console)));
25131
25250
  var error = (...args2) => consoleWith((console2) => sync(() => {
@@ -25135,7 +25254,7 @@ var log2 = (...args2) => consoleWith((console2) => sync(() => {
25135
25254
  console2.log(...args2);
25136
25255
  }));
25137
25256
 
25138
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/Argument.js
25257
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/Argument.js
25139
25258
  var Argument_exports = {};
25140
25259
  __export(Argument_exports, {
25141
25260
  atLeast: () => atLeast2,
@@ -25172,7 +25291,7 @@ __export(Argument_exports, {
25172
25291
  withSchema: () => withSchema2
25173
25292
  });
25174
25293
 
25175
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/CliError.js
25294
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/CliError.js
25176
25295
  var TypeId44 = "~effect/cli/CliError";
25177
25296
  var isCliError = (u2) => hasProperty(u2, TypeId44);
25178
25297
  var UnrecognizedOption = class extends (/* @__PURE__ */ TaggedErrorClass(`${TypeId44}/UnrecognizedOption`)("UnrecognizedOption", {
@@ -25256,6 +25375,25 @@ var MissingArgument = class extends (/* @__PURE__ */ TaggedErrorClass(`${TypeId4
25256
25375
  return `Missing required argument: ${this.argument}`;
25257
25376
  }
25258
25377
  };
25378
+ var UnexpectedArgument = class extends (/* @__PURE__ */ TaggedErrorClass(`${TypeId44}/UnexpectedArgument`)("UnexpectedArgument", {
25379
+ arguments: /* @__PURE__ */ ArraySchema(String4)
25380
+ })) {
25381
+ /**
25382
+ * Marks this value as an unexpected CLI argument error for runtime guards.
25383
+ *
25384
+ * @since 4.0.0
25385
+ */
25386
+ [TypeId44] = TypeId44;
25387
+ /**
25388
+ * Formats the unexpected positional arguments for display.
25389
+ *
25390
+ * @since 4.0.0
25391
+ */
25392
+ get message() {
25393
+ const label = this.arguments.length === 1 ? "argument" : "arguments";
25394
+ return `Unexpected positional ${label}: ${this.arguments.map((value3) => JSON.stringify(value3)).join(", ")}`;
25395
+ }
25396
+ };
25259
25397
  var InvalidValue2 = class extends (/* @__PURE__ */ TaggedErrorClass(`${TypeId44}/InvalidValue`)("InvalidValue", {
25260
25398
  option: String4,
25261
25399
  value: String4,
@@ -25318,7 +25456,7 @@ var UserError = class extends (/* @__PURE__ */ TaggedErrorClass(`${TypeId44}/Use
25318
25456
  */
25319
25457
  [TypeId44] = TypeId44;
25320
25458
  };
25321
- var NonShowHelpErrors = /* @__PURE__ */ Union2([UnrecognizedOption, DuplicateOption, MissingOption, MissingArgument, InvalidValue2, UnknownSubcommand, UserError]);
25459
+ var NonShowHelpErrors = /* @__PURE__ */ Union2([UnrecognizedOption, DuplicateOption, MissingOption, MissingArgument, UnexpectedArgument, InvalidValue2, UnknownSubcommand, UserError]);
25322
25460
  var ShowHelp = class extends (/* @__PURE__ */ TaggedErrorClass(`${TypeId44}/ShowHelp`)("ShowHelp", {
25323
25461
  commandPath: /* @__PURE__ */ ArraySchema(String4),
25324
25462
  errors: /* @__PURE__ */ ArraySchema(NonShowHelpErrors)
@@ -25331,7 +25469,7 @@ var ShowHelp = class extends (/* @__PURE__ */ TaggedErrorClass(`${TypeId44}/Show
25331
25469
  }
25332
25470
  };
25333
25471
 
25334
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/Primitive.js
25472
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/Primitive.js
25335
25473
  var Ini = __toESM(require_ini());
25336
25474
  var Toml = __toESM(require_toml());
25337
25475
  var Yaml = __toESM(require_dist());
@@ -25356,7 +25494,7 @@ var makeSchemaPrimitive = (tag2, schema) => {
25356
25494
  var boolean2 = /* @__PURE__ */ makeSchemaPrimitive("Boolean", Boolean4);
25357
25495
  var float = /* @__PURE__ */ makeSchemaPrimitive("Float", Finite);
25358
25496
  var integer = /* @__PURE__ */ makeSchemaPrimitive("Integer", Int);
25359
- var date = /* @__PURE__ */ makeSchemaPrimitive("Date", DateValid);
25497
+ var date = /* @__PURE__ */ makeSchemaPrimitive("Date", Date4);
25360
25498
  var string3 = /* @__PURE__ */ makePrimitive2("String", (value3) => succeed6(value3));
25361
25499
  var choice = (choices) => {
25362
25500
  const choiceMap = new Map(choices);
@@ -25482,7 +25620,7 @@ var getTypeName = (primitive) => {
25482
25620
  };
25483
25621
  var getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
25484
25622
 
25485
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/Prompt.js
25623
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/Prompt.js
25486
25624
  var Prompt_exports = {};
25487
25625
  __export(Prompt_exports, {
25488
25626
  all: () => all3,
@@ -25508,7 +25646,7 @@ __export(Prompt_exports, {
25508
25646
  toggle: () => toggle
25509
25647
  });
25510
25648
 
25511
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/internal/ansi.js
25649
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/internal/ansi.js
25512
25650
  var ESC = "\x1B[";
25513
25651
  var BEL = "\x07";
25514
25652
  var reset = `${ESC}0m`;
@@ -25569,7 +25707,7 @@ var eraseLines = (rows) => {
25569
25707
  return command2;
25570
25708
  };
25571
25709
 
25572
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/Prompt.js
25710
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/Prompt.js
25573
25711
  var TypeId46 = "~effect/cli/Prompt";
25574
25712
  var isPrompt = (u2) => hasProperty(u2, TypeId46);
25575
25713
  var defaultFigures = {
@@ -28071,7 +28209,7 @@ var entriesToDisplay = (cursor, total, maxVisible) => {
28071
28209
  };
28072
28210
  };
28073
28211
 
28074
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/Param.js
28212
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/Param.js
28075
28213
  var TypeId47 = "~effect/cli/Param";
28076
28214
  var argumentKind = "argument";
28077
28215
  var flagKind = "flag";
@@ -28087,14 +28225,14 @@ var isParam = (u2) => hasProperty(u2, TypeId47);
28087
28225
  var isFlagParam = (single) => single.kind === "flag";
28088
28226
  var makeSingle2 = (params) => {
28089
28227
  const parse4 = (args2) => params.kind === argumentKind ? parsePositional(params.name, params.primitiveType, args2) : parseFlag(params.name, params.primitiveType, args2);
28090
- return Object.assign(Object.create(Proto14), {
28228
+ return Object.setPrototypeOf({
28091
28229
  _tag: "Single",
28092
28230
  ...params,
28093
28231
  description: params.description ?? none2(),
28094
28232
  aliases: params.aliases ?? [],
28095
28233
  hidden: params.hidden ?? false,
28096
28234
  parse: parse4
28097
- });
28235
+ }, Proto14);
28098
28236
  };
28099
28237
  var string4 = (kind, name) => makeSingle2({
28100
28238
  name,
@@ -28172,7 +28310,7 @@ var keyValuePair2 = (kind, name) => map12(variadic(makeSingle2({
28172
28310
  kind
28173
28311
  }), {
28174
28312
  min: 1
28175
- }), (objects) => Object.assign({}, ...objects));
28313
+ }), (objects) => Object.fromEntries(objects.flatMap(Object.entries)));
28176
28314
  var none4 = (kind) => makeSingle2({
28177
28315
  name: "__none__",
28178
28316
  primitiveType: none3,
@@ -28516,7 +28654,7 @@ var getParamMetadata = (param) => {
28516
28654
  });
28517
28655
  };
28518
28656
 
28519
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/Argument.js
28657
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/Argument.js
28520
28658
  var string5 = (name) => string4(argumentKind, name);
28521
28659
  var integer4 = (name) => integer3(argumentKind, name);
28522
28660
  var file4 = (name, options) => file3(argumentKind, name, options);
@@ -28550,7 +28688,7 @@ var filterMap4 = /* @__PURE__ */ dual(3, (self, f2, onNone) => filterMap3(self,
28550
28688
  var orElse3 = /* @__PURE__ */ dual(2, (self, that) => orElse2(self, that));
28551
28689
  var orElseResult2 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
28552
28690
 
28553
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/CliOutput.js
28691
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/CliOutput.js
28554
28692
  var Formatter = /* @__PURE__ */ Reference("effect/cli/CliOutput", {
28555
28693
  defaultValue: () => defaultFormatter2()
28556
28694
  });
@@ -28742,7 +28880,7 @@ var formatHelpDocImpl = (doc, colors2) => {
28742
28880
  return sections.join("\n");
28743
28881
  };
28744
28882
 
28745
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
28883
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
28746
28884
  var escapeForBash = (s3) => s3.replace(/'/g, "'\\''");
28747
28885
  var sanitizeFunctionName = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
28748
28886
  var flagNamesForWordlist = (flag) => {
@@ -28904,7 +29042,7 @@ var generate = (executableName, descriptor) => {
28904
29042
  return lines2.join("\n");
28905
29043
  };
28906
29044
 
28907
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
29045
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
28908
29046
  var escapeFishString = (s3) => s3.replace(/'/g, "\\'");
28909
29047
  var subcommandCondition = (parentPath, childSubcommandNames) => {
28910
29048
  if (parentPath.length === 0) {
@@ -29072,7 +29210,7 @@ var generate2 = (executableName, descriptor) => {
29072
29210
  return lines2.join("\n");
29073
29211
  };
29074
29212
 
29075
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
29213
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
29076
29214
  var escapeZsh = (s3) => s3.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
29077
29215
  var sanitize = (s3) => s3.replace(/[^a-zA-Z0-9_]/g, "_");
29078
29216
  var allForms = (flag) => {
@@ -29230,7 +29368,7 @@ var generate3 = (executableName, descriptor) => {
29230
29368
  return lines2.join("\n");
29231
29369
  };
29232
29370
 
29233
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/Completions.js
29371
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/Completions.js
29234
29372
  var generate4 = (executableName, shell, descriptor) => {
29235
29373
  switch (shell) {
29236
29374
  case "bash":
@@ -29242,7 +29380,7 @@ var generate4 = (executableName, shell, descriptor) => {
29242
29380
  }
29243
29381
  };
29244
29382
 
29245
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/Flag.js
29383
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/Flag.js
29246
29384
  var Flag_exports = {};
29247
29385
  __export(Flag_exports, {
29248
29386
  atLeast: () => atLeast3,
@@ -29317,15 +29455,15 @@ var orElse4 = /* @__PURE__ */ dual(2, (self, that) => orElse2(self, that));
29317
29455
  var orElseResult3 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
29318
29456
  var withSchema3 = /* @__PURE__ */ dual(2, (self, schema) => withSchema(self, schema));
29319
29457
 
29320
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/internal/config.js
29458
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/internal/config.js
29321
29459
  var ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
29322
29460
  var parseConfig = (config) => {
29323
29461
  const orderedParams = [];
29324
29462
  const flags = [];
29325
29463
  const args2 = [];
29326
29464
  function parse4(config2) {
29327
- const tree = {};
29328
- for (const key in config2) {
29465
+ const tree = /* @__PURE__ */ Object.create(null);
29466
+ for (const key of Object.keys(config2)) {
29329
29467
  tree[key] = parseValue(config2[key]);
29330
29468
  }
29331
29469
  return tree;
@@ -29384,8 +29522,8 @@ var shiftNodeIndexes = (node, offset) => {
29384
29522
  }
29385
29523
  };
29386
29524
  var shiftTreeIndexes = (tree, offset) => {
29387
- const output = {};
29388
- for (const key in tree) {
29525
+ const output = /* @__PURE__ */ Object.create(null);
29526
+ for (const key of Object.keys(tree)) {
29389
29527
  output[key] = shiftNodeIndexes(tree[key], offset);
29390
29528
  }
29391
29529
  return output;
@@ -29397,16 +29535,13 @@ var mergeConfig = (left, right) => {
29397
29535
  flags: [...left.flags, ...right.flags],
29398
29536
  arguments: [...left.arguments, ...right.arguments],
29399
29537
  orderedParams: [...left.orderedParams, ...right.orderedParams],
29400
- tree: {
29401
- ...left.tree,
29402
- ...shiftTreeIndexes(right.tree, offset)
29403
- }
29538
+ tree: Object.assign(/* @__PURE__ */ Object.create(null), left.tree, shiftTreeIndexes(right.tree, offset))
29404
29539
  };
29405
29540
  };
29406
29541
  var reconstructTree = (tree, results) => {
29407
29542
  const output = {};
29408
- for (const key in tree) {
29409
- output[key] = nodeValue(tree[key]);
29543
+ for (const key of Object.keys(tree)) {
29544
+ assignProperty(output, key, nodeValue(tree[key]));
29410
29545
  }
29411
29546
  return output;
29412
29547
  function nodeValue(node) {
@@ -29421,7 +29556,7 @@ var reconstructTree = (tree, results) => {
29421
29556
  }
29422
29557
  };
29423
29558
 
29424
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/internal/command.js
29559
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/internal/command.js
29425
29560
  var TypeId48 = "~effect/cli/Command";
29426
29561
  var toImpl = (self) => self;
29427
29562
  var Proto15 = {
@@ -29444,7 +29579,9 @@ var makeCommand = (options) => {
29444
29579
  errors: []
29445
29580
  }));
29446
29581
  const parse4 = options.parse ?? makeParser(config);
29447
- const parseContext = options.parseContext ?? makeParser(contextConfig);
29582
+ const parseContext = options.parseContext ?? makeParser(contextConfig, {
29583
+ allowLeftovers: true
29584
+ });
29448
29585
  const buildHelpDoc = (commandPath) => {
29449
29586
  const args2 = [];
29450
29587
  const flags = [];
@@ -29554,12 +29691,17 @@ var appendChoiceKeys = (description, choiceKeys) => {
29554
29691
  onSome: (value3) => some2(`${value3} ${choiceSuffix}`)
29555
29692
  });
29556
29693
  };
29557
- var makeParser = (cfg) => fnUntraced2(function* (input) {
29694
+ var makeParser = (cfg, options) => fnUntraced2(function* (input) {
29558
29695
  const parsedArgs = {
29559
29696
  flags: input.flags,
29560
29697
  arguments: input.arguments
29561
29698
  };
29562
- const values = yield* parseParams(parsedArgs, cfg.orderedParams);
29699
+ const [remainingArguments, values] = yield* parseParams(parsedArgs, cfg.orderedParams);
29700
+ if (options?.allowLeftovers !== true && remainingArguments.length > 0) {
29701
+ return yield* new UnexpectedArgument({
29702
+ arguments: remainingArguments
29703
+ });
29704
+ }
29563
29705
  return reconstructTree(cfg.tree, values);
29564
29706
  });
29565
29707
  var parseParams = /* @__PURE__ */ fnUntraced2(function* (parsedArgs, params) {
@@ -29573,7 +29715,7 @@ var parseParams = /* @__PURE__ */ fnUntraced2(function* (parsedArgs, params) {
29573
29715
  results.push(parsed);
29574
29716
  currentArguments = remainingArguments;
29575
29717
  }
29576
- return results;
29718
+ return [currentArguments, results];
29577
29719
  });
29578
29720
  var checkForDuplicateFlags = (parent, subcommands, options) => {
29579
29721
  const parentImpl = toImpl(parent);
@@ -29604,7 +29746,7 @@ var checkForDuplicateFlags = (parent, subcommands, options) => {
29604
29746
  }
29605
29747
  };
29606
29748
 
29607
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/internal/completions/descriptor.js
29749
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/internal/completions/descriptor.js
29608
29750
  var toFlagType = (single) => {
29609
29751
  const tag2 = single.primitiveType._tag;
29610
29752
  switch (tag2) {
@@ -29729,7 +29871,7 @@ var fromCommand = (cmd) => {
29729
29871
  };
29730
29872
  };
29731
29873
 
29732
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/internal/help.js
29874
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/internal/help.js
29733
29875
  var dedupeGlobalFlags = (flags) => {
29734
29876
  const seen = /* @__PURE__ */ new Set();
29735
29877
  const deduped = [];
@@ -29832,7 +29974,7 @@ var getHelpForCommandPath = (command2, commandPath, builtIns) => gen2(function*
29832
29974
  };
29833
29975
  });
29834
29976
 
29835
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/GlobalFlag.js
29977
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/GlobalFlag.js
29836
29978
  var action = (options) => ({
29837
29979
  _tag: "Action",
29838
29980
  flag: options.flag,
@@ -29889,7 +30031,7 @@ var LogLevel = /* @__PURE__ */ setting("log-level")({
29889
30031
  });
29890
30032
  var BuiltIns = [Help, Version, Wizard, Completions, LogLevel];
29891
30033
 
29892
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/CliConfig.js
30034
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/CliConfig.js
29893
30035
  var CliConfig = class extends (/* @__PURE__ */ Reference("effect/unstable/cli/CliConfig", {
29894
30036
  defaultValue: () => defaults
29895
30037
  })) {
@@ -29898,7 +30040,7 @@ var defaults = {
29898
30040
  builtIns: BuiltIns
29899
30041
  };
29900
30042
 
29901
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/Command.js
30043
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/Command.js
29902
30044
  var Command_exports = {};
29903
30045
  __export(Command_exports, {
29904
30046
  annotate: () => annotate3,
@@ -29923,7 +30065,7 @@ __export(Command_exports, {
29923
30065
  wizard: () => wizard
29924
30066
  });
29925
30067
 
29926
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/internal/lexer.js
30068
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/internal/lexer.js
29927
30069
  function lex(argv) {
29928
30070
  const endIndex = argv.indexOf("--");
29929
30071
  if (endIndex === -1) {
@@ -29984,7 +30126,7 @@ var lexTokens = (args2) => {
29984
30126
  return tokens;
29985
30127
  };
29986
30128
 
29987
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
30129
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
29988
30130
  var levenshtein = (a, b2) => {
29989
30131
  const m2 = a.length;
29990
30132
  const n = b2.length;
@@ -30008,7 +30150,7 @@ var suggest = (input, candidates) => {
30008
30150
  return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
30009
30151
  };
30010
30152
 
30011
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/internal/parser.js
30153
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/internal/parser.js
30012
30154
  var getCommandPath = (parsedInput) => match(parsedInput.subcommand, {
30013
30155
  onNone: () => [],
30014
30156
  onSome: (subcommand) => [subcommand.name, ...getCommandPath(subcommand.parsedInput)]
@@ -30511,7 +30653,7 @@ var scanCommandLevel = (tokens, context3) => {
30511
30653
  return toLeafResult(state);
30512
30654
  };
30513
30655
 
30514
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/internal/wizard.js
30656
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/internal/wizard.js
30515
30657
  var run4 = /* @__PURE__ */ fnUntraced2(function* (command2, options) {
30516
30658
  const commandPath = options?.commandPath ?? [command2.name];
30517
30659
  const selected = getCommandAtPath(command2, commandPath);
@@ -30715,7 +30857,7 @@ var wrapCommand = (commandLine) => {
30715
30857
  };
30716
30858
  var formatShellArg = (arg) => /^[A-Za-z0-9_./:@%+=,-]+$/.test(arg) ? arg : `'${arg.replaceAll("'", `'"'"'`)}'`;
30717
30859
 
30718
- // ../../node_modules/.pnpm/effect@4.0.0-beta.100/node_modules/effect/dist/unstable/cli/Command.js
30860
+ // ../../node_modules/.pnpm/effect@4.0.0-beta.102/node_modules/effect/dist/unstable/cli/Command.js
30719
30861
  var isCommand = (u2) => hasProperty(u2, TypeId48);
30720
30862
  var make35 = (name, config, handler) => {
30721
30863
  const parsedConfig = parseConfig(config ?? {});
@@ -30790,12 +30932,13 @@ var withSubcommands = /* @__PURE__ */ dual(2, (self, subcommands) => {
30790
30932
  }
30791
30933
  const context3 = yield* impl.parseContext(raw2);
30792
30934
  const result3 = yield* sub.parse(raw2.subcommand.value.parsedInput);
30793
- return Object.assign({}, context3, {
30935
+ return {
30936
+ ...context3,
30794
30937
  [SubcommandStateSymbol]: {
30795
30938
  name: sub.name,
30796
30939
  result: result3
30797
30940
  }
30798
- });
30941
+ };
30799
30942
  });
30800
30943
  const handle = fnUntraced2(function* (input, path5) {
30801
30944
  const internal = input;
@@ -30840,16 +30983,24 @@ var withSharedFlags = /* @__PURE__ */ dual(2, (self, sharedFlags) => {
30840
30983
  contextConfig: mergedContextConfig
30841
30984
  });
30842
30985
  }
30843
- const parseShared = makeParser(sharedConfig);
30986
+ const parseShared = makeParser(sharedConfig, {
30987
+ allowLeftovers: true
30988
+ });
30844
30989
  const parse4 = fnUntraced2(function* (raw2) {
30845
30990
  const base = yield* impl.parse(raw2);
30846
30991
  const shared = yield* parseShared(raw2);
30847
- return Object.assign({}, base, shared);
30992
+ return {
30993
+ ...base,
30994
+ ...shared
30995
+ };
30848
30996
  });
30849
30997
  const parseContext = fnUntraced2(function* (raw2) {
30850
30998
  const base = yield* impl.parseContext(raw2);
30851
30999
  const shared = yield* parseShared(raw2);
30852
- return Object.assign({}, base, shared);
31000
+ return {
31001
+ ...base,
31002
+ ...shared
31003
+ };
30853
31004
  });
30854
31005
  const handle = (input, commandPath) => impl.handle(input, commandPath);
30855
31006
  return makeCommand({
@@ -31414,11 +31565,11 @@ var A = class extends Qr.EventEmitter {
31414
31565
  return Wr;
31415
31566
  }
31416
31567
  };
31417
- var Jr = m__namespace.default.writev;
31568
+ var Jr = u__namespace.default.writev;
31418
31569
  var ht = /* @__PURE__ */ Symbol("_autoClose");
31419
31570
  var H = /* @__PURE__ */ Symbol("_close");
31420
31571
  var te = /* @__PURE__ */ Symbol("_ended");
31421
- var u = /* @__PURE__ */ Symbol("_fd");
31572
+ var m = /* @__PURE__ */ Symbol("_fd");
31422
31573
  var Ni = /* @__PURE__ */ Symbol("_finished");
31423
31574
  var tt = /* @__PURE__ */ Symbol("_flags");
31424
31575
  var Ai = /* @__PURE__ */ Symbol("_flush");
@@ -31445,7 +31596,7 @@ var Me = /* @__PURE__ */ Symbol("_defaultFlag");
31445
31596
  var bt = /* @__PURE__ */ Symbol("_errored");
31446
31597
  var _t = class extends A {
31447
31598
  [bt] = false;
31448
- [u];
31599
+ [m];
31449
31600
  [U];
31450
31601
  [Ci];
31451
31602
  [j] = false;
@@ -31454,10 +31605,10 @@ var _t = class extends A {
31454
31605
  [ht];
31455
31606
  constructor(t, e) {
31456
31607
  if (e = e || {}, super(e), this.readable = true, this.writable = false, typeof t != "string") throw new TypeError("path must be a string");
31457
- this[bt] = false, this[u] = typeof e.fd == "number" ? e.fd : void 0, this[U] = t, this[Ci] = e.readSize || 16 * 1024 * 1024, this[j] = false, this[Fi] = typeof e.size == "number" ? e.size : 1 / 0, this[ee] = this[Fi], this[ht] = typeof e.autoClose == "boolean" ? e.autoClose : true, typeof this[u] == "number" ? this[zt]() : this[at]();
31608
+ this[bt] = false, this[m] = typeof e.fd == "number" ? e.fd : void 0, this[U] = t, this[Ci] = e.readSize || 16 * 1024 * 1024, this[j] = false, this[Fi] = typeof e.size == "number" ? e.size : 1 / 0, this[ee] = this[Fi], this[ht] = typeof e.autoClose == "boolean" ? e.autoClose : true, typeof this[m] == "number" ? this[zt]() : this[at]();
31458
31609
  }
31459
31610
  get fd() {
31460
- return this[u];
31611
+ return this[m];
31461
31612
  }
31462
31613
  get path() {
31463
31614
  return this[U];
@@ -31469,10 +31620,10 @@ var _t = class extends A {
31469
31620
  throw new TypeError("this is a readable stream");
31470
31621
  }
31471
31622
  [at]() {
31472
- m__namespace.default.open(this[U], "r", (t, e) => this[Ht](t, e));
31623
+ u__namespace.default.open(this[U], "r", (t, e) => this[Ht](t, e));
31473
31624
  }
31474
31625
  [Ht](t, e) {
31475
- t ? this[Ut](t) : (this[u] = e, this.emit("open", e), this[zt]());
31626
+ t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[zt]());
31476
31627
  }
31477
31628
  [vi]() {
31478
31629
  return Buffer.allocUnsafe(Math.min(this[Ci], this[ee]));
@@ -31482,16 +31633,16 @@ var _t = class extends A {
31482
31633
  this[j] = true;
31483
31634
  let t = this[vi]();
31484
31635
  if (t.length === 0) return process.nextTick(() => this[Ii](null, 0, t));
31485
- m__namespace.default.read(this[u], t, 0, t.length, null, (e, i, r) => this[Ii](e, i, r));
31636
+ u__namespace.default.read(this[m], t, 0, t.length, null, (e, i, r) => this[Ii](e, i, r));
31486
31637
  }
31487
31638
  }
31488
31639
  [Ii](t, e, i) {
31489
31640
  this[j] = false, t ? this[Ut](t) : this[ki](e, i) && this[zt]();
31490
31641
  }
31491
31642
  [H]() {
31492
- if (this[ht] && typeof this[u] == "number") {
31493
- let t = this[u];
31494
- this[u] = void 0, m__namespace.default.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
31643
+ if (this[ht] && typeof this[m] == "number") {
31644
+ let t = this[m];
31645
+ this[m] = void 0, u__namespace.default.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
31495
31646
  }
31496
31647
  }
31497
31648
  [Ut](t) {
@@ -31507,7 +31658,7 @@ var _t = class extends A {
31507
31658
  case "finish":
31508
31659
  return false;
31509
31660
  case "drain":
31510
- return typeof this[u] == "number" && this[zt](), false;
31661
+ return typeof this[m] == "number" && this[zt](), false;
31511
31662
  case "error":
31512
31663
  return this[bt] ? false : (this[bt] = true, super.emit(t, ...e));
31513
31664
  default:
@@ -31519,7 +31670,7 @@ var Be = class extends _t {
31519
31670
  [at]() {
31520
31671
  let t = true;
31521
31672
  try {
31522
- this[Ht](null, m__namespace.default.openSync(this[U], "r")), t = false;
31673
+ this[Ht](null, u__namespace.default.openSync(this[U], "r")), t = false;
31523
31674
  } finally {
31524
31675
  t && this[H]();
31525
31676
  }
@@ -31530,7 +31681,7 @@ var Be = class extends _t {
31530
31681
  if (!this[j]) {
31531
31682
  this[j] = true;
31532
31683
  do {
31533
- let e = this[vi](), i = e.length === 0 ? 0 : m__namespace.default.readSync(this[u], e, 0, e.length, null);
31684
+ let e = this[vi](), i = e.length === 0 ? 0 : u__namespace.default.readSync(this[m], e, 0, e.length, null);
31534
31685
  if (!this[ki](i, e)) break;
31535
31686
  } while (true);
31536
31687
  this[j] = false;
@@ -31541,9 +31692,9 @@ var Be = class extends _t {
31541
31692
  }
31542
31693
  }
31543
31694
  [H]() {
31544
- if (this[ht] && typeof this[u] == "number") {
31545
- let t = this[u];
31546
- this[u] = void 0, m__namespace.default.closeSync(t), this.emit("close");
31695
+ if (this[ht] && typeof this[m] == "number") {
31696
+ let t = this[m];
31697
+ this[m] = void 0, u__namespace.default.closeSync(t), this.emit("close");
31547
31698
  }
31548
31699
  }
31549
31700
  };
@@ -31558,15 +31709,15 @@ var et = class extends Qr__default.default {
31558
31709
  [U];
31559
31710
  [ie];
31560
31711
  [ht];
31561
- [u];
31712
+ [m];
31562
31713
  [Me];
31563
31714
  [tt];
31564
31715
  [Ni] = false;
31565
31716
  [ot];
31566
31717
  constructor(t, e) {
31567
- e = e || {}, super(e), this[U] = t, this[u] = typeof e.fd == "number" ? e.fd : void 0, this[ie] = e.mode === void 0 ? 438 : e.mode, this[ot] = typeof e.start == "number" ? e.start : void 0, this[ht] = typeof e.autoClose == "boolean" ? e.autoClose : true;
31718
+ e = e || {}, super(e), this[U] = t, this[m] = typeof e.fd == "number" ? e.fd : void 0, this[ie] = e.mode === void 0 ? 438 : e.mode, this[ot] = typeof e.start == "number" ? e.start : void 0, this[ht] = typeof e.autoClose == "boolean" ? e.autoClose : true;
31568
31719
  let i = this[ot] !== void 0 ? "r+" : "w";
31569
- this[Me] = e.flags === void 0, this[tt] = e.flags === void 0 ? i : e.flags, this[u] === void 0 && this[at]();
31720
+ this[Me] = e.flags === void 0, this[tt] = e.flags === void 0 ? i : e.flags, this[m] === void 0 && this[at]();
31570
31721
  }
31571
31722
  emit(t, ...e) {
31572
31723
  if (t === "error") {
@@ -31576,7 +31727,7 @@ var et = class extends Qr__default.default {
31576
31727
  return super.emit(t, ...e);
31577
31728
  }
31578
31729
  get fd() {
31579
- return this[u];
31730
+ return this[m];
31580
31731
  }
31581
31732
  get path() {
31582
31733
  return this[U];
@@ -31585,19 +31736,19 @@ var et = class extends Qr__default.default {
31585
31736
  this[H](), this[gt] = true, this.emit("error", t);
31586
31737
  }
31587
31738
  [at]() {
31588
- m__namespace.default.open(this[U], this[tt], this[ie], (t, e) => this[Ht](t, e));
31739
+ u__namespace.default.open(this[U], this[tt], this[ie], (t, e) => this[Ht](t, e));
31589
31740
  }
31590
31741
  [Ht](t, e) {
31591
- this[Me] && this[tt] === "r+" && t && t.code === "ENOENT" ? (this[tt] = "w", this[at]()) : t ? this[Ut](t) : (this[u] = e, this.emit("open", e), this[gt] || this[Ai]());
31742
+ this[Me] && this[tt] === "r+" && t && t.code === "ENOENT" ? (this[tt] = "w", this[at]()) : t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[gt] || this[Ai]());
31592
31743
  }
31593
31744
  end(t, e) {
31594
- return t && this.write(t, e), this[te] = true, !this[gt] && !this[Y].length && typeof this[u] == "number" && this[Pt](null, 0), this;
31745
+ return t && this.write(t, e), this[te] = true, !this[gt] && !this[Y].length && typeof this[m] == "number" && this[Pt](null, 0), this;
31595
31746
  }
31596
31747
  write(t, e) {
31597
- return typeof t == "string" && (t = Buffer.from(t, e)), this[te] ? (this.emit("error", new Error("write() after end()")), false) : this[u] === void 0 || this[gt] || this[Y].length ? (this[Y].push(t), this[ke] = true, false) : (this[gt] = true, this[ve](t), true);
31748
+ return typeof t == "string" && (t = Buffer.from(t, e)), this[te] ? (this.emit("error", new Error("write() after end()")), false) : this[m] === void 0 || this[gt] || this[Y].length ? (this[Y].push(t), this[ke] = true, false) : (this[gt] = true, this[ve](t), true);
31598
31749
  }
31599
31750
  [ve](t) {
31600
- m__namespace.default.write(this[u], t, 0, t.length, this[ot], (e, i) => this[Pt](e, i));
31751
+ u__namespace.default.write(this[m], t, 0, t.length, this[ot], (e, i) => this[Pt](e, i));
31601
31752
  }
31602
31753
  [Pt](t, e) {
31603
31754
  t ? this[Ut](t) : (this[ot] !== void 0 && typeof e == "number" && (this[ot] += e), this[Y].length ? this[Ai]() : (this[gt] = false, this[te] && !this[Ni] ? (this[Ni] = true, this[H](), this.emit("finish")) : this[ke] && (this[ke] = false, this.emit("drain"))));
@@ -31607,13 +31758,13 @@ var et = class extends Qr__default.default {
31607
31758
  else if (this[Y].length === 1) this[ve](this[Y].pop());
31608
31759
  else {
31609
31760
  let t = this[Y];
31610
- this[Y] = [], Jr(this[u], t, this[ot], (e, i) => this[Pt](e, i));
31761
+ this[Y] = [], Jr(this[m], t, this[ot], (e, i) => this[Pt](e, i));
31611
31762
  }
31612
31763
  }
31613
31764
  [H]() {
31614
- if (this[ht] && typeof this[u] == "number") {
31615
- let t = this[u];
31616
- this[u] = void 0, m__namespace.default.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
31765
+ if (this[ht] && typeof this[m] == "number") {
31766
+ let t = this[m];
31767
+ this[m] = void 0, u__namespace.default.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
31617
31768
  }
31618
31769
  }
31619
31770
  };
@@ -31621,24 +31772,24 @@ var Wt = class extends et {
31621
31772
  [at]() {
31622
31773
  let t;
31623
31774
  if (this[Me] && this[tt] === "r+") try {
31624
- t = m__namespace.default.openSync(this[U], this[tt], this[ie]);
31775
+ t = u__namespace.default.openSync(this[U], this[tt], this[ie]);
31625
31776
  } catch (e) {
31626
31777
  if (e?.code === "ENOENT") return this[tt] = "w", this[at]();
31627
31778
  throw e;
31628
31779
  }
31629
- else t = m__namespace.default.openSync(this[U], this[tt], this[ie]);
31780
+ else t = u__namespace.default.openSync(this[U], this[tt], this[ie]);
31630
31781
  this[Ht](null, t);
31631
31782
  }
31632
31783
  [H]() {
31633
- if (this[ht] && typeof this[u] == "number") {
31634
- let t = this[u];
31635
- this[u] = void 0, m__namespace.default.closeSync(t), this.emit("close");
31784
+ if (this[ht] && typeof this[m] == "number") {
31785
+ let t = this[m];
31786
+ this[m] = void 0, u__namespace.default.closeSync(t), this.emit("close");
31636
31787
  }
31637
31788
  }
31638
31789
  [ve](t) {
31639
31790
  let e = true;
31640
31791
  try {
31641
- this[Pt](null, m__namespace.default.writeSync(this[u], t, 0, t.length, this[ot])), e = false;
31792
+ this[Pt](null, u__namespace.default.writeSync(this[m], t, 0, t.length, this[ot])), e = false;
31642
31793
  } finally {
31643
31794
  if (e) try {
31644
31795
  this[H]();
@@ -31897,7 +32048,7 @@ var dn = (s3) => Ve.has(s3);
31897
32048
  var Ui = /* @__PURE__ */ new Set(["0", "", "1", "2", "3", "4", "5", "6", "7", "D"]);
31898
32049
  var oe = /* @__PURE__ */ new Map([["0", "File"], ["", "OldFile"], ["1", "Link"], ["2", "SymbolicLink"], ["3", "CharacterDevice"], ["4", "BlockDevice"], ["5", "Directory"], ["6", "FIFO"], ["7", "ContiguousFile"], ["g", "GlobalExtendedHeader"], ["x", "ExtendedHeader"], ["A", "SolarisACL"], ["D", "GNUDumpDir"], ["I", "Inode"], ["K", "NextFileHasLongLinkpath"], ["L", "NextFileHasLongPath"], ["M", "ContinuationFile"], ["N", "OldGnuLongPath"], ["S", "SparseFile"], ["V", "TapeVolumeHeader"], ["X", "OldExtendedHeader"]]);
31899
32050
  var Ve = new Map(Array.from(oe).map((s3) => [s3[1], s3[0]]));
31900
- var mn = (s3) => s3 === void 0 || s3 < 0 ? void 0 : s3;
32051
+ var un = (s3) => s3 === void 0 || s3 < 0 ? void 0 : s3;
31901
32052
  var F = class {
31902
32053
  cksumValid = false;
31903
32054
  needPax = false;
@@ -31926,7 +32077,7 @@ var F = class {
31926
32077
  decode(t, e, i, r) {
31927
32078
  if (e || (e = 0), !t || !(t.length >= e + 512)) throw new Error("need 512 bytes for header");
31928
32079
  let n = xt(t, e + 156, 1), o = Ui.has(n), h = o ? i : void 0, a = o ? r : void 0;
31929
- if (this.path = h?.path ?? xt(t, e, 100), this.mode = h?.mode ?? a?.mode ?? lt(t, e + 100, 8), this.uid = h?.uid ?? a?.uid ?? lt(t, e + 108, 8), this.gid = h?.gid ?? a?.gid ?? lt(t, e + 116, 8), this.size = mn(h?.size ?? a?.size ?? lt(t, e + 124, 12)), this.mtime = h?.mtime ?? a?.mtime ?? Wi(t, e + 136, 12), this.cksum = lt(t, e + 148, 12), a && this.#i(a, true), h && this.#i(h), ne(n) && (this.#t = n || "0"), this.#t === "0" && this.path.slice(-1) === "/" && (this.#t = "5"), this.#t === "5" && (this.size = 0), this.linkpath = xt(t, e + 157, 100), t.subarray(e + 257, e + 265).toString() === "ustar\x0000") if (this.uname = h?.uname ?? a?.uname ?? xt(t, e + 265, 32), this.gname = h?.gname ?? a?.gname ?? xt(t, e + 297, 32), this.devmaj = h?.devmaj ?? a?.devmaj ?? lt(t, e + 329, 8) ?? 0, this.devmin = h?.devmin ?? a?.devmin ?? lt(t, e + 337, 8) ?? 0, t[e + 475] !== 0) {
32080
+ if (this.path = h?.path ?? xt(t, e, 100), this.mode = h?.mode ?? a?.mode ?? lt(t, e + 100, 8), this.uid = h?.uid ?? a?.uid ?? lt(t, e + 108, 8), this.gid = h?.gid ?? a?.gid ?? lt(t, e + 116, 8), this.size = un(h?.size ?? a?.size ?? lt(t, e + 124, 12)), this.mtime = h?.mtime ?? a?.mtime ?? Wi(t, e + 136, 12), this.cksum = lt(t, e + 148, 12), a && this.#i(a, true), h && this.#i(h), ne(n) && (this.#t = n || "0"), this.#t === "0" && this.path.slice(-1) === "/" && (this.#t = "5"), this.#t === "5" && (this.size = 0), this.linkpath = xt(t, e + 157, 100), t.subarray(e + 257, e + 265).toString() === "ustar\x0000") if (this.uname = h?.uname ?? a?.uname ?? xt(t, e + 265, 32), this.gname = h?.gname ?? a?.gname ?? xt(t, e + 297, 32), this.devmaj = h?.devmaj ?? a?.devmaj ?? lt(t, e + 329, 8) ?? 0, this.devmin = h?.devmin ?? a?.devmin ?? lt(t, e + 337, 8) ?? 0, t[e + 475] !== 0) {
31930
32081
  let c = xt(t, e + 345, 155);
31931
32082
  this.path = c + "/" + this.path;
31932
32083
  } else {
@@ -31943,7 +32094,7 @@ var F = class {
31943
32094
  }
31944
32095
  encode(t, e = 0) {
31945
32096
  if (t || (t = this.block = Buffer.alloc(512)), this.#t === "Unsupported" && (this.#t = "0"), !(t.length >= e + 512)) throw new Error("need 512 bytes for header");
31946
- let i = this.ctime || this.atime ? 130 : 155, r = un(this.path || "", i), n = r[0], o = r[1];
32097
+ let i = this.ctime || this.atime ? 130 : 155, r = mn(this.path || "", i), n = r[0], o = r[1];
31947
32098
  this.needPax = !!r[2], this.needPax = Lt(t, e, 100, n) || this.needPax, this.needPax = ct(t, e + 100, 8, this.mode) || this.needPax, this.needPax = ct(t, e + 108, 8, this.uid) || this.needPax, this.needPax = ct(t, e + 116, 8, this.gid) || this.needPax, this.needPax = ct(t, e + 124, 12, this.size) || this.needPax, this.needPax = Gi(t, e + 136, 12, this.mtime) || this.needPax, t[e + 156] = Number(this.#t.codePointAt(0)), this.needPax = Lt(t, e + 157, 100, this.linkpath) || this.needPax, t.write("ustar\x0000", e + 257, 8), this.needPax = Lt(t, e + 265, 32, this.uname) || this.needPax, this.needPax = Lt(t, e + 297, 32, this.gname) || this.needPax, this.needPax = ct(t, e + 329, 8, this.devmaj) || this.needPax, this.needPax = ct(t, e + 337, 8, this.devmin) || this.needPax, this.needPax = Lt(t, e + 345, i, o) || this.needPax, t[e + 475] !== 0 ? this.needPax = Lt(t, e + 345, 155, o) || this.needPax : (this.needPax = Lt(t, e + 345, 130, o) || this.needPax, this.needPax = Gi(t, e + 476, 12, this.atime) || this.needPax, this.needPax = Gi(t, e + 488, 12, this.ctime) || this.needPax);
31948
32099
  let h = 256;
31949
32100
  for (let a = e; a < e + 148; a++) h += t[a];
@@ -31963,7 +32114,7 @@ var F = class {
31963
32114
  else throw new TypeError("invalid entry type: " + t);
31964
32115
  }
31965
32116
  };
31966
- var un = (s3, t) => {
32117
+ var mn = (s3, t) => {
31967
32118
  let i = s3, r = "", n, o = R.posix.parse(s3).root || ".";
31968
32119
  if (Buffer.byteLength(i) < 100) n = [i, r, false];
31969
32120
  else {
@@ -32156,7 +32307,7 @@ var dt = /* @__PURE__ */ Symbol("meta");
32156
32307
  var Ys = /* @__PURE__ */ Symbol("emitMeta");
32157
32308
  var p = /* @__PURE__ */ Symbol("buffer");
32158
32309
  var st = /* @__PURE__ */ Symbol("queue");
32159
- var mt = /* @__PURE__ */ Symbol("ended");
32310
+ var ut = /* @__PURE__ */ Symbol("ended");
32160
32311
  var Yi = /* @__PURE__ */ Symbol("emittedEnd");
32161
32312
  var At = /* @__PURE__ */ Symbol("emit");
32162
32313
  var w = /* @__PURE__ */ Symbol("unzip");
@@ -32198,7 +32349,7 @@ var rt = class extends Qr.EventEmitter {
32198
32349
  [dt] = "";
32199
32350
  [V];
32200
32351
  [he];
32201
- [mt] = false;
32352
+ [ut] = false;
32202
32353
  [w];
32203
32354
  [$] = false;
32204
32355
  [It];
@@ -32336,7 +32487,7 @@ var rt = class extends Qr.EventEmitter {
32336
32487
  }
32337
32488
  }
32338
32489
  let h = this.brotli === void 0 && !o;
32339
- if (this[w] === false && h) if (t.length < 512) if (this[mt]) this.brotli = true;
32490
+ if (this[w] === false && h) if (t.length < 512) if (this[ut]) this.brotli = true;
32340
32491
  else return this[p] = t, i?.(), true;
32341
32492
  else try {
32342
32493
  new F(t.subarray(0, 512)), this.brotli = false;
@@ -32344,13 +32495,13 @@ var rt = class extends Qr.EventEmitter {
32344
32495
  this.brotli = true;
32345
32496
  }
32346
32497
  if (this[w] === void 0 || this[w] === false && (this.brotli || o)) {
32347
- let a = this[mt];
32348
- this[mt] = false, this[w] = this[w] === void 0 ? new Ue({}) : o ? new Ke({}) : new Ge({}), this[w].on("data", (c) => {
32498
+ let a = this[ut];
32499
+ this[ut] = false, this[w] = this[w] === void 0 ? new Ue({}) : o ? new Ke({}) : new Ge({}), this[w].on("data", (c) => {
32349
32500
  this[Xs](c) && this[Xe](c);
32350
32501
  }), this[w].on("error", (c) => {
32351
32502
  this[$] || this.abort(c);
32352
32503
  }), this[w].on("end", () => {
32353
- this[mt] = true, this[Xe]();
32504
+ this[ut] = true, this[Xe]();
32354
32505
  }), this[Yt] = true, this[le] += t.length;
32355
32506
  let l = !!this[w][a ? "end" : "write"](t);
32356
32507
  return this[Yt] = false, i?.(), l;
@@ -32364,7 +32515,7 @@ var rt = class extends Qr.EventEmitter {
32364
32515
  t && !this[$] && (this[p] = this[p] ? Buffer.concat([this[p], t]) : t);
32365
32516
  }
32366
32517
  [Qe]() {
32367
- if (this[mt] && !this[Yi] && !this[$] && !this[ae]) {
32518
+ if (this[ut] && !this[Yi] && !this[$] && !this[ae]) {
32368
32519
  this[Yi] = true;
32369
32520
  let t = this[Nt];
32370
32521
  if (t?.blockRemain) {
@@ -32389,7 +32540,7 @@ var rt = class extends Qr.EventEmitter {
32389
32540
  }
32390
32541
  this[ae] = false;
32391
32542
  }
32392
- (!this[p] || this[mt]) && this[Qe]();
32543
+ (!this[p] || this[ut]) && this[Qe]();
32393
32544
  }
32394
32545
  [qe](t) {
32395
32546
  let e = 0, i = t.length;
@@ -32411,10 +32562,10 @@ var rt = class extends Qr.EventEmitter {
32411
32562
  e < i && (this[p] = this[p] ? Buffer.concat([t.subarray(e), this[p]]) : t.subarray(e));
32412
32563
  }
32413
32564
  end(t, e, i) {
32414
- return typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, e)), i && this.once("finish", i), this[$] || (this[w] ? (t && (this[le] += t.length, this[w].write(t)), this[w].end()) : (this[mt] = true, (this.brotli === void 0 || this.zstd === void 0) && (t = t || Buffer.alloc(0)), t && this.write(t), this[Qe]())), this;
32565
+ return typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, e)), i && this.once("finish", i), this[$] || (this[w] ? (t && (this[le] += t.length, this[w].write(t)), this[w].end()) : (this[ut] = true, (this.brotli === void 0 || this.zstd === void 0) && (t = t || Buffer.alloc(0)), t && this.write(t), this[Qe]())), this;
32415
32566
  }
32416
32567
  };
32417
- var ut = (s3) => {
32568
+ var mt = (s3) => {
32418
32569
  let t = s3.length - 1, e = -1;
32419
32570
  for (; t > -1 && s3.charAt(t) === "/"; ) e = t, t--;
32420
32571
  return e === -1 ? s3 : s3.slice(0, e);
@@ -32426,29 +32577,30 @@ var vn = (s3) => {
32426
32577
  } : (e) => e.resume();
32427
32578
  };
32428
32579
  var Qi = (s3, t) => {
32429
- let e = new Map(t.map((n) => [ut(n), true])), i = s3.filter, r = (n, o = "") => {
32430
- let h = o || R.parse(n).root || ".", a;
32431
- if (n === h) a = false;
32580
+ let e = new Map(t.map((o) => [mt(o), true])), i = s3.filter, r = 100, n = (o, h = "", a = 0) => {
32581
+ if (a >= r) return e.set(o, false), false;
32582
+ let l = h || R.parse(o).root || ".", c;
32583
+ if (o === l) c = false;
32432
32584
  else {
32433
- let l = e.get(n);
32434
- a = l !== void 0 ? l : r(R.dirname(n), h);
32585
+ let d = e.get(o);
32586
+ c = d !== void 0 ? d : n(R.dirname(o), l, a + 1);
32435
32587
  }
32436
- return e.set(n, a), a;
32588
+ return e.set(o, c), c;
32437
32589
  };
32438
- s3.filter = i ? (n, o) => i(n, o) && r(ut(n)) : (n) => r(ut(n));
32590
+ s3.filter = i ? (o, h) => i(o, h) && n(mt(o)) : (o) => n(mt(o));
32439
32591
  };
32440
32592
  var Mn = (s3) => {
32441
32593
  let t = new rt(s3), e = s3.file, i;
32442
32594
  try {
32443
- i = m__namespace.default.openSync(e, "r");
32444
- let r = m__namespace.default.fstatSync(i), n = s3.maxReadSize || 16 * 1024 * 1024;
32595
+ i = u__namespace.default.openSync(e, "r");
32596
+ let r = u__namespace.default.fstatSync(i), n = s3.maxReadSize || 16 * 1024 * 1024;
32445
32597
  if (r.size < n) {
32446
- let o = Buffer.allocUnsafe(r.size), h = m__namespace.default.readSync(i, o, 0, r.size, 0);
32598
+ let o = Buffer.allocUnsafe(r.size), h = u__namespace.default.readSync(i, o, 0, r.size, 0);
32447
32599
  t.end(h === o.byteLength ? o : o.subarray(0, h));
32448
32600
  } else {
32449
32601
  let o = 0, h = Buffer.allocUnsafe(n);
32450
32602
  for (; o < r.size; ) {
32451
- let a = m__namespace.default.readSync(i, h, 0, n, o);
32603
+ let a = u__namespace.default.readSync(i, h, 0, n, o);
32452
32604
  if (a === 0) break;
32453
32605
  o += a, t.write(h.subarray(0, a));
32454
32606
  }
@@ -32456,7 +32608,7 @@ var Mn = (s3) => {
32456
32608
  }
32457
32609
  } finally {
32458
32610
  if (typeof i == "number") try {
32459
- m__namespace.default.closeSync(i);
32611
+ u__namespace.default.closeSync(i);
32460
32612
  } catch {
32461
32613
  }
32462
32614
  }
@@ -32464,7 +32616,7 @@ var Mn = (s3) => {
32464
32616
  var Bn = (s3, t) => {
32465
32617
  let e = new rt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
32466
32618
  return new Promise((o, h) => {
32467
- e.on("error", h), e.on("end", o), m__namespace.default.stat(r, (a, l) => {
32619
+ e.on("error", h), e.on("end", o), u__namespace.default.stat(r, (a, l) => {
32468
32620
  if (a) h(a);
32469
32621
  else {
32470
32622
  let c = new _t(r, { readSize: i, size: l.size });
@@ -32492,7 +32644,7 @@ var Un = new Map(ei.map((s3, t) => [s3, ji[t]]));
32492
32644
  var Hn = new Map(ji.map((s3, t) => [s3, ei[t]]));
32493
32645
  var ts = (s3) => ei.reduce((t, e) => t.split(e).join(Un.get(e)), s3);
32494
32646
  var Qs = (s3) => ji.reduce((t, e) => t.split(e).join(Hn.get(e)), s3);
32495
- var rr = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), ut(t) + "/" + s3) : f(s3);
32647
+ var rr = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s3) : f(s3);
32496
32648
  var Wn = 16 * 1024 * 1024;
32497
32649
  var tr = /* @__PURE__ */ Symbol("process");
32498
32650
  var er = /* @__PURE__ */ Symbol("file");
@@ -32562,7 +32714,7 @@ var de = class extends A {
32562
32714
  return t === "error" && (this.#t = true), super.emit(t, ...e);
32563
32715
  }
32564
32716
  [ss]() {
32565
- m__namespace.default.lstat(this.absolute, (t, e) => {
32717
+ u__namespace.default.lstat(this.absolute, (t, e) => {
32566
32718
  if (t) return this.emit("error", t);
32567
32719
  this[si](e);
32568
32720
  });
@@ -32600,7 +32752,7 @@ var de = class extends A {
32600
32752
  this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[fe](), this.end();
32601
32753
  }
32602
32754
  [is3]() {
32603
- m__namespace.default.readlink(this.absolute, (t, e) => {
32755
+ u__namespace.default.readlink(this.absolute, (t, e) => {
32604
32756
  if (t) return this.emit("error", t);
32605
32757
  this[ns](e);
32606
32758
  });
@@ -32623,7 +32775,7 @@ var de = class extends A {
32623
32775
  this[os]();
32624
32776
  }
32625
32777
  [os]() {
32626
- m__namespace.default.open(this.absolute, "r", (t, e) => {
32778
+ u__namespace.default.open(this.absolute, "r", (t, e) => {
32627
32779
  if (t) return this.emit("error", t);
32628
32780
  this[hs](e);
32629
32781
  });
@@ -32638,14 +32790,14 @@ var de = class extends A {
32638
32790
  [ii]() {
32639
32791
  let { fd: t, buf: e, offset: i, length: r, pos: n } = this;
32640
32792
  if (t === void 0 || e === void 0) throw new Error("cannot read file without first opening");
32641
- m__namespace.default.read(t, e, i, r, n, (o, h) => {
32793
+ u__namespace.default.read(t, e, i, r, n, (o, h) => {
32642
32794
  if (o) return this[pt](() => this.emit("error", o));
32643
32795
  this[rs](h);
32644
32796
  });
32645
32797
  }
32646
32798
  [pt](t = () => {
32647
32799
  }) {
32648
- this.fd !== void 0 && m__namespace.default.close(this.fd, t);
32800
+ this.fd !== void 0 && u__namespace.default.close(this.fd, t);
32649
32801
  }
32650
32802
  [rs](t) {
32651
32803
  if (t <= 0 && this.remain > 0) {
@@ -32680,20 +32832,20 @@ var de = class extends A {
32680
32832
  var ni = class extends de {
32681
32833
  sync = true;
32682
32834
  [ss]() {
32683
- this[si](m__namespace.default.lstatSync(this.absolute));
32835
+ this[si](u__namespace.default.lstatSync(this.absolute));
32684
32836
  }
32685
32837
  [is3]() {
32686
- this[ns](m__namespace.default.readlinkSync(this.absolute));
32838
+ this[ns](u__namespace.default.readlinkSync(this.absolute));
32687
32839
  }
32688
32840
  [os]() {
32689
- this[hs](m__namespace.default.openSync(this.absolute, "r"));
32841
+ this[hs](u__namespace.default.openSync(this.absolute, "r"));
32690
32842
  }
32691
32843
  [ii]() {
32692
32844
  let t = true;
32693
32845
  try {
32694
32846
  let { fd: e, buf: i, offset: r, length: n, pos: o } = this;
32695
32847
  if (e === void 0 || i === void 0) throw new Error("fd and buf must be set in READ method");
32696
- let h = m__namespace.default.readSync(e, i, r, n, o);
32848
+ let h = u__namespace.default.readSync(e, i, r, n, o);
32697
32849
  this[rs](h), t = false;
32698
32850
  } finally {
32699
32851
  if (t) try {
@@ -32708,7 +32860,7 @@ var ni = class extends de {
32708
32860
  }
32709
32861
  [pt](t = () => {
32710
32862
  }) {
32711
- this.fd !== void 0 && m__namespace.default.closeSync(this.fd), t();
32863
+ this.fd !== void 0 && u__namespace.default.closeSync(this.fd), t();
32712
32864
  }
32713
32865
  };
32714
32866
  var oi = class extends A {
@@ -32919,16 +33071,16 @@ var hi = class s2 {
32919
33071
  }
32920
33072
  };
32921
33073
  function Zn(s3, t, e) {
32922
- let i = t, r = t ? t.next : s3.head, n = new me(e, i, r, s3);
33074
+ let i = t, r = t ? t.next : s3.head, n = new ue(e, i, r, s3);
32923
33075
  return n.next === void 0 && (s3.tail = n), n.prev === void 0 && (s3.head = n), s3.length++, n;
32924
33076
  }
32925
33077
  function Yn(s3, t) {
32926
- s3.tail = new me(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
33078
+ s3.tail = new ue(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
32927
33079
  }
32928
33080
  function Kn(s3, t) {
32929
- s3.head = new me(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
33081
+ s3.head = new ue(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
32930
33082
  }
32931
- var me = class {
33083
+ var ue = class {
32932
33084
  list;
32933
33085
  next;
32934
33086
  prev;
@@ -32953,7 +33105,7 @@ var pi = class {
32953
33105
  };
32954
33106
  var nr = Buffer.alloc(1024);
32955
33107
  var li = /* @__PURE__ */ Symbol("onStat");
32956
- var ue = /* @__PURE__ */ Symbol("ended");
33108
+ var me = /* @__PURE__ */ Symbol("ended");
32957
33109
  var W = /* @__PURE__ */ Symbol("queue");
32958
33110
  var pe = /* @__PURE__ */ Symbol("pendingLinks");
32959
33111
  var Et = /* @__PURE__ */ Symbol("current");
@@ -32965,12 +33117,12 @@ var ls = /* @__PURE__ */ Symbol("jobDone");
32965
33117
  var ci = /* @__PURE__ */ Symbol("addFSEntry");
32966
33118
  var or = /* @__PURE__ */ Symbol("addTarEntry");
32967
33119
  var ds = /* @__PURE__ */ Symbol("stat");
32968
- var ms = /* @__PURE__ */ Symbol("readdir");
33120
+ var us = /* @__PURE__ */ Symbol("readdir");
32969
33121
  var fi = /* @__PURE__ */ Symbol("onreaddir");
32970
33122
  var di = /* @__PURE__ */ Symbol("pipe");
32971
33123
  var hr = /* @__PURE__ */ Symbol("entry");
32972
33124
  var cs = /* @__PURE__ */ Symbol("entryOpt");
32973
- var mi = /* @__PURE__ */ Symbol("writeEntryClass");
33125
+ var ui = /* @__PURE__ */ Symbol("writeEntryClass");
32974
33126
  var lr = /* @__PURE__ */ Symbol("write");
32975
33127
  var fs = /* @__PURE__ */ Symbol("ondrain");
32976
33128
  var wt = class extends A {
@@ -32994,21 +33146,21 @@ var wt = class extends A {
32994
33146
  mtime;
32995
33147
  filter;
32996
33148
  jobs;
32997
- [mi];
33149
+ [ui];
32998
33150
  onWriteEntry;
32999
33151
  [W];
33000
33152
  [pe] = /* @__PURE__ */ new Map();
33001
33153
  [G] = 0;
33002
33154
  [Ee] = false;
33003
- [ue] = false;
33155
+ [me] = false;
33004
33156
  constructor(t = {}) {
33005
- if (super(), this.opt = t, this.file = t.file || "", this.cwd = t.cwd || process.cwd(), this.maxReadSize = t.maxReadSize, this.preservePaths = !!t.preservePaths, this.strict = !!t.strict, this.noPax = !!t.noPax, this.prefix = f(t.prefix || ""), this.linkCache = t.linkCache || /* @__PURE__ */ new Map(), this.statCache = t.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t.onWriteEntry, this[mi] = de, typeof t.onwarn == "function" && this.on("warn", t.onwarn), this.portable = !!t.portable, t.gzip || t.brotli || t.zstd) {
33157
+ if (super(), this.opt = t, this.file = t.file || "", this.cwd = t.cwd || process.cwd(), this.maxReadSize = t.maxReadSize, this.preservePaths = !!t.preservePaths, this.strict = !!t.strict, this.noPax = !!t.noPax, this.prefix = f(t.prefix || ""), this.linkCache = t.linkCache || /* @__PURE__ */ new Map(), this.statCache = t.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t.onWriteEntry, this[ui] = de, typeof t.onwarn == "function" && this.on("warn", t.onwarn), this.portable = !!t.portable, t.gzip || t.brotli || t.zstd) {
33006
33158
  if ((t.gzip ? 1 : 0) + (t.brotli ? 1 : 0) + (t.zstd ? 1 : 0) > 1) throw new TypeError("gzip, brotli, zstd are mutually exclusive");
33007
33159
  if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = true), this.zip = new ze(t.gzip)), t.brotli && (typeof t.brotli != "object" && (t.brotli = {}), this.zip = new We(t.brotli)), t.zstd && (typeof t.zstd != "object" && (t.zstd = {}), this.zip = new Ye(t.zstd)), !this.zip) throw new Error("impossible");
33008
33160
  let e = this.zip;
33009
33161
  e.on("data", (i) => super.write(i)), e.on("end", () => super.end()), e.on("drain", () => this[fs]()), this.on("resume", () => e.resume());
33010
33162
  } else this.on("drain", this[fs]);
33011
- this.noDirRecurse = !!t.noDirRecurse, this.follow = !!t.follow, this.noMtime = !!t.noMtime, t.mtime && (this.mtime = t.mtime), this.filter = typeof t.filter == "function" ? t.filter : () => true, this[W] = new hi(), this[G] = 0, this.jobs = Number(t.jobs) || 4, this[Ee] = false, this[ue] = false;
33163
+ this.noDirRecurse = !!t.noDirRecurse, this.follow = !!t.follow, this.noMtime = !!t.noMtime, t.mtime && (this.mtime = t.mtime), this.filter = typeof t.filter == "function" ? t.filter : () => true, this[W] = new hi(), this[G] = 0, this.jobs = Number(t.jobs) || 4, this[Ee] = false, this[me] = false;
33012
33164
  }
33013
33165
  [lr](t) {
33014
33166
  return super.write(t);
@@ -33017,10 +33169,10 @@ var wt = class extends A {
33017
33169
  return this.write(t), this;
33018
33170
  }
33019
33171
  end(t, e, i) {
33020
- return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = void 0), t && this.add(t), this[ue] = true, this[Ft](), i && i(), this;
33172
+ return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = void 0), t && this.add(t), this[me] = true, this[Ft](), i && i(), this;
33021
33173
  }
33022
33174
  write(t) {
33023
- if (this[ue]) throw new Error("write after end");
33175
+ if (this[me]) throw new Error("write after end");
33024
33176
  return typeof t == "string" ? this[ci](t) : this[or](t), this.flowing;
33025
33177
  }
33026
33178
  [or](t) {
@@ -33039,7 +33191,7 @@ var wt = class extends A {
33039
33191
  [ds](t) {
33040
33192
  t.pending = true, this[G] += 1;
33041
33193
  let e = this.follow ? "stat" : "lstat";
33042
- m__namespace.default[e](t.absolute, (i, r) => {
33194
+ u__namespace.default[e](t.absolute, (i, r) => {
33043
33195
  t.pending = false, this[G] -= 1, i ? this.emit("error", i) : this[li](t, r);
33044
33196
  });
33045
33197
  }
@@ -33052,8 +33204,8 @@ var wt = class extends A {
33052
33204
  }
33053
33205
  this[Ft]();
33054
33206
  }
33055
- [ms](t) {
33056
- t.pending = true, this[G] += 1, m__namespace.default.readdir(t.absolute, (e, i) => {
33207
+ [us](t) {
33208
+ t.pending = true, this[G] += 1, u__namespace.default.readdir(t.absolute, (e, i) => {
33057
33209
  if (t.pending = false, this[G] -= 1, e) return this.emit("error", e);
33058
33210
  this[fi](t, i);
33059
33211
  });
@@ -33068,7 +33220,7 @@ var wt = class extends A {
33068
33220
  let e = t.next;
33069
33221
  this[W].removeNode(t), t.next = e;
33070
33222
  }
33071
- this[Ee] = false, this[ue] && this[W].length === 0 && this[G] === 0 && (this.zip ? this.zip.end(nr) : (super.write(nr), super.end()));
33223
+ this[Ee] = false, this[me] && this[W].length === 0 && this[G] === 0 && (this.zip ? this.zip.end(nr) : (super.write(nr), super.end()));
33072
33224
  }
33073
33225
  }
33074
33226
  get [Et]() {
@@ -33099,7 +33251,7 @@ var wt = class extends A {
33099
33251
  if (t.stat && !t.ignore) {
33100
33252
  if (!this.noDirRecurse && t.stat.isDirectory() && !t.readdir) {
33101
33253
  let e = this.readdirCache.get(t.absolute);
33102
- if (e ? this[fi](t, e) : this[ms](t), !t.readdir) return;
33254
+ if (e ? this[fi](t, e) : this[us](t), !t.readdir) return;
33103
33255
  }
33104
33256
  if (t.entry = this[hr](t), !t.entry) {
33105
33257
  t.ignore = true;
@@ -33115,7 +33267,7 @@ var wt = class extends A {
33115
33267
  [hr](t) {
33116
33268
  this[G] += 1;
33117
33269
  try {
33118
- return new this[mi](t.path, this[cs](t)).on("end", () => this[ls](t)).on("error", (i) => this.emit("error", i));
33270
+ return new this[ui](t.path, this[cs](t)).on("end", () => this[ls](t)).on("error", (i) => this.emit("error", i));
33119
33271
  } catch (e) {
33120
33272
  this.emit("error", e);
33121
33273
  }
@@ -33146,7 +33298,7 @@ var wt = class extends A {
33146
33298
  var kt = class extends wt {
33147
33299
  sync = true;
33148
33300
  constructor(t) {
33149
- super(t), this[mi] = ni;
33301
+ super(t), this[ui] = ni;
33150
33302
  }
33151
33303
  pause() {
33152
33304
  }
@@ -33154,10 +33306,10 @@ var kt = class extends wt {
33154
33306
  }
33155
33307
  [ds](t) {
33156
33308
  let e = this.follow ? "statSync" : "lstatSync";
33157
- this[li](t, m__namespace.default[e](t.absolute));
33309
+ this[li](t, u__namespace.default[e](t.absolute));
33158
33310
  }
33159
- [ms](t) {
33160
- this[fi](t, m__namespace.default.readdirSync(t.absolute));
33311
+ [us](t) {
33312
+ this[fi](t, u__namespace.default.readdirSync(t.absolute));
33161
33313
  }
33162
33314
  [di](t) {
33163
33315
  let e = t.entry, i = this.zip;
@@ -33208,22 +33360,22 @@ K(Vn, $n, Xn, qn, (s3, t) => {
33208
33360
  });
33209
33361
  var Jn = process.env.__FAKE_PLATFORM__ || process.platform;
33210
33362
  var Er = Jn === "win32";
33211
- var { O_CREAT: wr, O_NOFOLLOW: mr, O_TRUNC: Sr, O_WRONLY: yr } = m__namespace.default.constants;
33212
- var Rr = Number(process.env.__FAKE_FS_O_FILENAME__) || m__namespace.default.constants.UV_FS_O_FILEMAP || 0;
33363
+ var { O_CREAT: wr, O_NOFOLLOW: ur, O_TRUNC: Sr, O_WRONLY: yr } = u__namespace.default.constants;
33364
+ var Rr = Number(process.env.__FAKE_FS_O_FILENAME__) || u__namespace.default.constants.UV_FS_O_FILEMAP || 0;
33213
33365
  var jn = Er && !!Rr;
33214
33366
  var to = 512 * 1024;
33215
33367
  var eo = Rr | Sr | wr | yr;
33216
- var ur = !Er && typeof mr == "number" ? mr | Sr | wr | yr : null;
33217
- var us = ur !== null ? () => ur : jn ? (s3) => s3 < to ? eo : "w" : () => "w";
33368
+ var mr = !Er && typeof ur == "number" ? ur | Sr | wr | yr : null;
33369
+ var ms = mr !== null ? () => mr : jn ? (s3) => s3 < to ? eo : "w" : () => "w";
33218
33370
  var ps = (s3, t, e) => {
33219
33371
  try {
33220
- return m__namespace.default.lchownSync(s3, t, e);
33372
+ return u__namespace.default.lchownSync(s3, t, e);
33221
33373
  } catch (i) {
33222
33374
  if (i?.code !== "ENOENT") throw i;
33223
33375
  }
33224
33376
  };
33225
33377
  var Ei = (s3, t, e, i) => {
33226
- m__namespace.default.lchown(s3, t, e, (r) => {
33378
+ u__namespace.default.lchown(s3, t, e, (r) => {
33227
33379
  i(r && r?.code !== "ENOENT" ? r : null);
33228
33380
  });
33229
33381
  };
@@ -33239,7 +33391,7 @@ var io = (s3, t, e, i, r) => {
33239
33391
  }
33240
33392
  };
33241
33393
  var Es = (s3, t, e, i) => {
33242
- m__namespace.default.readdir(s3, { withFileTypes: true }, (r, n) => {
33394
+ u__namespace.default.readdir(s3, { withFileTypes: true }, (r, n) => {
33243
33395
  if (r) {
33244
33396
  if (r.code === "ENOENT") return i();
33245
33397
  if (r.code !== "ENOTDIR" && r.code !== "ENOTSUP") return i(r);
@@ -33260,7 +33412,7 @@ var so = (s3, t, e, i) => {
33260
33412
  var ws = (s3, t, e) => {
33261
33413
  let i;
33262
33414
  try {
33263
- i = m__namespace.default.readdirSync(s3, { withFileTypes: true });
33415
+ i = u__namespace.default.readdirSync(s3, { withFileTypes: true });
33264
33416
  } catch (r) {
33265
33417
  let n = r;
33266
33418
  if (n?.code === "ENOENT") return;
@@ -33294,14 +33446,14 @@ var St = class extends Error {
33294
33446
  }
33295
33447
  };
33296
33448
  var no = (s3, t) => {
33297
- m__namespace.default.stat(s3, (e, i) => {
33449
+ u__namespace.default.stat(s3, (e, i) => {
33298
33450
  (e || !i.isDirectory()) && (e = new Se(s3, e?.code || "ENOTDIR")), t(e);
33299
33451
  });
33300
33452
  };
33301
33453
  var gr = (s3, t, e) => {
33302
33454
  s3 = f(s3);
33303
33455
  let i = t.umask ?? 18, r = t.mode | 448, n = (r & i) !== 0, o = t.uid, h = t.gid, a = typeof o == "number" && typeof h == "number" && (o !== t.processUid || h !== t.processGid), l = t.preserve, c = t.unlink, d = f(t.cwd), y = (E, x) => {
33304
- E ? e(E) : x && a ? Es(x, o, h, (Le) => y(Le)) : n ? m__namespace.default.chmod(s3, r, e) : e();
33456
+ E ? e(E) : x && a ? Es(x, o, h, (Le) => y(Le)) : n ? u__namespace.default.chmod(s3, r, e) : e();
33305
33457
  };
33306
33458
  if (s3 === d) return no(s3, y);
33307
33459
  if (l) return ro__default.default.mkdir(s3, { mode: r, recursive: true }).then((E) => y(null, E ?? void 0), y);
@@ -33311,15 +33463,15 @@ var gr = (s3, t, e) => {
33311
33463
  var Ss = (s3, t, e, i, r, n, o) => {
33312
33464
  if (t.length === 0) return o(null, n);
33313
33465
  let h = t.shift(), a = f(R__namespace.default.resolve(s3 + "/" + h));
33314
- m__namespace.default.mkdir(a, e, br(a, t, e, i, r, n, o));
33466
+ u__namespace.default.mkdir(a, e, br(a, t, e, i, r, n, o));
33315
33467
  };
33316
33468
  var br = (s3, t, e, i, r, n, o) => (h) => {
33317
- h ? m__namespace.default.lstat(s3, (a, l) => {
33469
+ h ? u__namespace.default.lstat(s3, (a, l) => {
33318
33470
  if (a) a.path = a.path && f(a.path), o(a);
33319
33471
  else if (l.isDirectory()) Ss(s3, t, e, i, r, n, o);
33320
- else if (i) m__namespace.default.unlink(s3, (c) => {
33472
+ else if (i) u__namespace.default.unlink(s3, (c) => {
33321
33473
  if (c) return o(c);
33322
- m__namespace.default.mkdir(s3, e, br(s3, t, e, i, r, n, o));
33474
+ u__namespace.default.mkdir(s3, e, br(s3, t, e, i, r, n, o));
33323
33475
  });
33324
33476
  else {
33325
33477
  if (l.isSymbolicLink()) return o(new St(s3, s3 + "/" + t.join("/")));
@@ -33330,7 +33482,7 @@ var br = (s3, t, e, i, r, n, o) => (h) => {
33330
33482
  var oo = (s3) => {
33331
33483
  let t = false, e;
33332
33484
  try {
33333
- t = m__namespace.default.statSync(s3).isDirectory();
33485
+ t = u__namespace.default.statSync(s3).isDirectory();
33334
33486
  } catch (i) {
33335
33487
  e = i?.code;
33336
33488
  } finally {
@@ -33340,20 +33492,20 @@ var oo = (s3) => {
33340
33492
  var _r = (s3, t) => {
33341
33493
  s3 = f(s3);
33342
33494
  let e = t.umask ?? 18, i = t.mode | 448, r = (i & e) !== 0, n = t.uid, o = t.gid, h = typeof n == "number" && typeof o == "number" && (n !== t.processUid || o !== t.processGid), a = t.preserve, l = t.unlink, c = f(t.cwd), d = (E) => {
33343
- E && h && ws(E, n, o), r && m__namespace.default.chmodSync(s3, i);
33495
+ E && h && ws(E, n, o), r && u__namespace.default.chmodSync(s3, i);
33344
33496
  };
33345
33497
  if (s3 === c) return oo(c), d();
33346
- if (a) return d(m__namespace.default.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
33498
+ if (a) return d(u__namespace.default.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
33347
33499
  let T = f(R__namespace.default.relative(c, s3)).split("/"), D;
33348
33500
  for (let E = T.shift(), x = c; E && (x += "/" + E); E = T.shift()) {
33349
33501
  x = f(R__namespace.default.resolve(x));
33350
33502
  try {
33351
- m__namespace.default.mkdirSync(x, i), D = D || x;
33503
+ u__namespace.default.mkdirSync(x, i), D = D || x;
33352
33504
  } catch {
33353
- let Le = m__namespace.default.lstatSync(x);
33505
+ let Le = u__namespace.default.lstatSync(x);
33354
33506
  if (Le.isDirectory()) continue;
33355
33507
  if (l) {
33356
- m__namespace.default.unlinkSync(x), m__namespace.default.mkdirSync(x, i), D = D || x;
33508
+ u__namespace.default.unlinkSync(x), u__namespace.default.mkdirSync(x, i), D = D || x;
33357
33509
  continue;
33358
33510
  } else if (Le.isSymbolicLink()) return new St(x, x + "/" + T.join("/"));
33359
33511
  }
@@ -33382,7 +33534,7 @@ var yi = class {
33382
33534
  #i = /* @__PURE__ */ new Map();
33383
33535
  #s = /* @__PURE__ */ new Set();
33384
33536
  reserve(t, e) {
33385
- t = ao ? ["win32 parallelization disabled"] : t.map((r) => ut(R.join(Tr(r))));
33537
+ t = ao ? ["win32 parallelization disabled"] : t.map((r) => mt(R.join(Tr(r))));
33386
33538
  let i = new Set(t.map((r) => lo(r)).reduce((r, n) => r.concat(n)));
33387
33539
  this.#i.set(e, { dirs: i, paths: t });
33388
33540
  for (let r of t) {
@@ -33470,19 +33622,19 @@ var _e = /* @__PURE__ */ Symbol("gid");
33470
33622
  var Oe = /* @__PURE__ */ Symbol("checkedCwd");
33471
33623
  var fo = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
33472
33624
  var Te = fo === "win32";
33473
- var mo = 1024;
33474
- var uo = (s3, t) => {
33475
- if (!Te) return m__namespace.default.unlink(s3, t);
33625
+ var uo = 1024;
33626
+ var mo = (s3, t) => {
33627
+ if (!Te) return u__namespace.default.unlink(s3, t);
33476
33628
  let e = s3 + ".DELETE." + NodeCrypto.randomBytes(16).toString("hex");
33477
- m__namespace.default.rename(s3, e, (i) => {
33629
+ u__namespace.default.rename(s3, e, (i) => {
33478
33630
  if (i) return t(i);
33479
- m__namespace.default.unlink(e, t);
33631
+ u__namespace.default.unlink(e, t);
33480
33632
  });
33481
33633
  };
33482
33634
  var po = (s3) => {
33483
- if (!Te) return m__namespace.default.unlinkSync(s3);
33635
+ if (!Te) return u__namespace.default.unlinkSync(s3);
33484
33636
  let t = s3 + ".DELETE." + NodeCrypto.randomBytes(16).toString("hex");
33485
- m__namespace.default.renameSync(s3, t), m__namespace.default.unlinkSync(t);
33637
+ u__namespace.default.renameSync(s3, t), u__namespace.default.unlinkSync(t);
33486
33638
  };
33487
33639
  var vr = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
33488
33640
  var Xt = class extends rt {
@@ -33522,7 +33674,7 @@ var Xt = class extends rt {
33522
33674
  if (t.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
33523
33675
  this.uid = t.uid, this.gid = t.gid, this.setOwner = true;
33524
33676
  } else this.uid = void 0, this.gid = void 0, this.setOwner = false;
33525
- this.preserveOwner = t.preserveOwner === void 0 && typeof t.uid != "number" ? process.getuid?.() === 0 : !!t.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : mo, this.forceChown = t.forceChown === true, this.win32 = !!t.win32 || Te, this.newer = !!t.newer, this.keep = !!t.keep, this.noMtime = !!t.noMtime, this.preservePaths = !!t.preservePaths, this.unlink = !!t.unlink, this.cwd = f(R__namespace.default.resolve(t.cwd || process.cwd())), this.strip = Number(t.strip) || 0, this.processUmask = this.chmod ? typeof t.processUmask == "number" ? t.processUmask : Lr() : 0, this.umask = typeof t.umask == "number" ? t.umask : this.processUmask, this.dmode = t.dmode || 511 & ~this.umask, this.fmode = t.fmode || 438 & ~this.umask, this.on("entry", (e) => this[Dr](e));
33677
+ this.preserveOwner = t.preserveOwner === void 0 && typeof t.uid != "number" ? process.getuid?.() === 0 : !!t.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : uo, this.forceChown = t.forceChown === true, this.win32 = !!t.win32 || Te, this.newer = !!t.newer, this.keep = !!t.keep, this.noMtime = !!t.noMtime, this.preservePaths = !!t.preservePaths, this.unlink = !!t.unlink, this.cwd = f(R__namespace.default.resolve(t.cwd || process.cwd())), this.strip = Number(t.strip) || 0, this.processUmask = this.chmod ? typeof t.processUmask == "number" ? t.processUmask : Lr() : 0, this.umask = typeof t.umask == "number" ? t.umask : this.processUmask, this.dmode = t.dmode || 511 & ~this.umask, this.fmode = t.fmode || 438 & ~this.umask, this.on("entry", (e) => this[Dr](e));
33526
33678
  }
33527
33679
  warn(t, e, i = {}) {
33528
33680
  return (t === "TAR_BAD_ARCHIVE" || t === "TAR_ABORT") && (i.recoverable = false), super.warn(t, e, i);
@@ -33596,18 +33748,18 @@ var Xt = class extends rt {
33596
33748
  return vr(this.gid, t.gid, this.processGid);
33597
33749
  }
33598
33750
  [Ts](t, e) {
33599
- let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new et(String(t.absolute), { flags: us(t.size), mode: i, autoClose: false });
33751
+ let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new et(String(t.absolute), { flags: ms(t.size), mode: i, autoClose: false });
33600
33752
  r.on("error", (a) => {
33601
- r.fd && m__namespace.default.close(r.fd, () => {
33753
+ r.fd && u__namespace.default.close(r.fd, () => {
33602
33754
  }), r.write = () => true, this[O](a, t), e();
33603
33755
  });
33604
33756
  let n = 1, o = (a) => {
33605
33757
  if (a) {
33606
- r.fd && m__namespace.default.close(r.fd, () => {
33758
+ r.fd && u__namespace.default.close(r.fd, () => {
33607
33759
  }), this[O](a, t), e();
33608
33760
  return;
33609
33761
  }
33610
- --n === 0 && r.fd !== void 0 && m__namespace.default.close(r.fd, (l) => {
33762
+ --n === 0 && r.fd !== void 0 && u__namespace.default.close(r.fd, (l) => {
33611
33763
  l ? this[O](l, t) : this[$t](), e();
33612
33764
  });
33613
33765
  };
@@ -33616,12 +33768,12 @@ var Xt = class extends rt {
33616
33768
  if (typeof l == "number" && t.mtime && !this.noMtime) {
33617
33769
  n++;
33618
33770
  let c = t.atime || /* @__PURE__ */ new Date(), d = t.mtime;
33619
- m__namespace.default.futimes(l, c, d, (y) => y ? m__namespace.default.utimes(a, c, d, (T) => o(T && y)) : o());
33771
+ u__namespace.default.futimes(l, c, d, (y) => y ? u__namespace.default.utimes(a, c, d, (T) => o(T && y)) : o());
33620
33772
  }
33621
33773
  if (typeof l == "number" && this[ge](t)) {
33622
33774
  n++;
33623
33775
  let c = this[be](t), d = this[_e](t);
33624
- typeof c == "number" && typeof d == "number" && m__namespace.default.fchown(l, c, d, (y) => y ? m__namespace.default.chown(a, c, d, (T) => o(T && y)) : o());
33776
+ typeof c == "number" && typeof d == "number" && u__namespace.default.fchown(l, c, d, (y) => y ? u__namespace.default.chown(a, c, d, (T) => o(T && y)) : o());
33625
33777
  }
33626
33778
  o();
33627
33779
  });
@@ -33640,7 +33792,7 @@ var Xt = class extends rt {
33640
33792
  let n = 1, o = () => {
33641
33793
  --n === 0 && (e(), this[$t](), t.resume());
33642
33794
  };
33643
- t.mtime && !this.noMtime && (n++, m__namespace.default.utimes(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime, o)), this[ge](t) && (n++, m__namespace.default.chown(String(t.absolute), Number(this[be](t)), Number(this[_e](t)), o)), o();
33795
+ t.mtime && !this.noMtime && (n++, u__namespace.default.utimes(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime, o)), this[ge](t) && (n++, u__namespace.default.chown(String(t.absolute), Number(this[be](t)), Number(this[_e](t)), o)), o();
33644
33796
  });
33645
33797
  }
33646
33798
  [Cr](t) {
@@ -33662,7 +33814,7 @@ var Xt = class extends rt {
33662
33814
  let o = i.shift();
33663
33815
  if (this.preservePaths || o === void 0) return r();
33664
33816
  let h = R__namespace.default.resolve(e, o);
33665
- m__namespace.default.lstat(h, (a, l) => {
33817
+ u__namespace.default.lstat(h, (a, l) => {
33666
33818
  if (a) return r();
33667
33819
  if (l?.isSymbolicLink()) return n(new St(h, R__namespace.default.resolve(h, i.join("/"))));
33668
33820
  this[Re](t, h, i, r, n);
@@ -33709,7 +33861,7 @@ var Xt = class extends rt {
33709
33861
  }
33710
33862
  o();
33711
33863
  }, o = () => {
33712
- m__namespace.default.lstat(String(t.absolute), (h, a) => {
33864
+ u__namespace.default.lstat(String(t.absolute), (h, a) => {
33713
33865
  if (a && (this.keep || this.newer && a.mtime > (t.mtime ?? a.mtime))) {
33714
33866
  this[Ls](t), i();
33715
33867
  return;
@@ -33718,12 +33870,12 @@ var Xt = class extends rt {
33718
33870
  if (a.isDirectory()) {
33719
33871
  if (t.type === "Directory") {
33720
33872
  let l = this.chmod && t.mode && (a.mode & 4095) !== t.mode, c = (d) => this[P](d ?? null, t, i);
33721
- return l ? m__namespace.default.chmod(String(t.absolute), Number(t.mode), c) : c();
33873
+ return l ? u__namespace.default.chmod(String(t.absolute), Number(t.mode), c) : c();
33722
33874
  }
33723
- if (t.absolute !== this.cwd) return m__namespace.default.rmdir(String(t.absolute), (l) => this[P](l ?? null, t, i));
33875
+ if (t.absolute !== this.cwd) return u__namespace.default.rmdir(String(t.absolute), (l) => this[P](l ?? null, t, i));
33724
33876
  }
33725
33877
  if (t.absolute === this.cwd) return this[P](null, t, i);
33726
- uo(String(t.absolute), (l) => this[P](l ?? null, t, i));
33878
+ mo(String(t.absolute), (l) => this[P](l ?? null, t, i));
33727
33879
  });
33728
33880
  };
33729
33881
  this[Oe] ? n() : r();
@@ -33748,7 +33900,7 @@ var Xt = class extends rt {
33748
33900
  }
33749
33901
  }
33750
33902
  [gi](t, e, i, r) {
33751
- m__namespace.default[i](e, String(t.absolute), (n) => {
33903
+ u__namespace.default[i](e, String(t.absolute), (n) => {
33752
33904
  n ? this[O](n, t) : (this[$t](), t.resume()), r();
33753
33905
  });
33754
33906
  }
@@ -33779,17 +33931,17 @@ var xe = class extends Xt {
33779
33931
  if (o) return this[O](o, t);
33780
33932
  }
33781
33933
  }
33782
- let [e, i] = ye(() => m__namespace.default.lstatSync(String(t.absolute)));
33934
+ let [e, i] = ye(() => u__namespace.default.lstatSync(String(t.absolute)));
33783
33935
  if (i && (this.keep || this.newer && i.mtime > (t.mtime ?? i.mtime))) return this[Ls](t);
33784
33936
  if (e || this[Os](t, i)) return this[P](null, t);
33785
33937
  if (i.isDirectory()) {
33786
33938
  if (t.type === "Directory") {
33787
33939
  let o = this.chmod && t.mode && (i.mode & 4095) !== t.mode, [h] = o ? ye(() => {
33788
- m__namespace.default.chmodSync(String(t.absolute), Number(t.mode));
33940
+ u__namespace.default.chmodSync(String(t.absolute), Number(t.mode));
33789
33941
  }) : [];
33790
33942
  return this[P](h, t);
33791
33943
  }
33792
- let [n] = ye(() => m__namespace.default.rmdirSync(String(t.absolute)));
33944
+ let [n] = ye(() => u__namespace.default.rmdirSync(String(t.absolute)));
33793
33945
  this[P](n, t);
33794
33946
  }
33795
33947
  let [r] = t.absolute === this.cwd ? [] : ye(() => po(String(t.absolute)));
@@ -33799,21 +33951,21 @@ var xe = class extends Xt {
33799
33951
  let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = (h) => {
33800
33952
  let a;
33801
33953
  try {
33802
- m__namespace.default.closeSync(n);
33954
+ u__namespace.default.closeSync(n);
33803
33955
  } catch (l) {
33804
33956
  a = l;
33805
33957
  }
33806
33958
  (h || a) && this[O](h || a, t), e();
33807
33959
  }, n;
33808
33960
  try {
33809
- n = m__namespace.default.openSync(String(t.absolute), us(t.size), i);
33961
+ n = u__namespace.default.openSync(String(t.absolute), ms(t.size), i);
33810
33962
  } catch (h) {
33811
33963
  return r(h);
33812
33964
  }
33813
33965
  let o = this.transform && this.transform(t) || t;
33814
33966
  o !== t && (o.on("error", (h) => this[O](h, t)), t.pipe(o)), o.on("data", (h) => {
33815
33967
  try {
33816
- m__namespace.default.writeSync(n, h, 0, h.length);
33968
+ u__namespace.default.writeSync(n, h, 0, h.length);
33817
33969
  } catch (a) {
33818
33970
  r(a);
33819
33971
  }
@@ -33822,10 +33974,10 @@ var xe = class extends Xt {
33822
33974
  if (t.mtime && !this.noMtime) {
33823
33975
  let a = t.atime || /* @__PURE__ */ new Date(), l = t.mtime;
33824
33976
  try {
33825
- m__namespace.default.futimesSync(n, a, l);
33977
+ u__namespace.default.futimesSync(n, a, l);
33826
33978
  } catch (c) {
33827
33979
  try {
33828
- m__namespace.default.utimesSync(String(t.absolute), a, l);
33980
+ u__namespace.default.utimesSync(String(t.absolute), a, l);
33829
33981
  } catch {
33830
33982
  h = c;
33831
33983
  }
@@ -33834,10 +33986,10 @@ var xe = class extends Xt {
33834
33986
  if (this[ge](t)) {
33835
33987
  let a = this[be](t), l = this[_e](t);
33836
33988
  try {
33837
- m__namespace.default.fchownSync(n, Number(a), Number(l));
33989
+ u__namespace.default.fchownSync(n, Number(a), Number(l));
33838
33990
  } catch (c) {
33839
33991
  try {
33840
- m__namespace.default.chownSync(String(t.absolute), Number(a), Number(l));
33992
+ u__namespace.default.chownSync(String(t.absolute), Number(a), Number(l));
33841
33993
  } catch {
33842
33994
  h = h || c;
33843
33995
  }
@@ -33853,11 +34005,11 @@ var xe = class extends Xt {
33853
34005
  return;
33854
34006
  }
33855
34007
  if (t.mtime && !this.noMtime) try {
33856
- m__namespace.default.utimesSync(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime);
34008
+ u__namespace.default.utimesSync(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime);
33857
34009
  } catch {
33858
34010
  }
33859
34011
  if (this[ge](t)) try {
33860
- m__namespace.default.chownSync(String(t.absolute), Number(this[be](t)), Number(this[_e](t)));
34012
+ u__namespace.default.chownSync(String(t.absolute), Number(this[be](t)), Number(this[_e](t)));
33861
34013
  } catch {
33862
34014
  }
33863
34015
  e(), t.resume();
@@ -33874,7 +34026,7 @@ var xe = class extends Xt {
33874
34026
  let o = e;
33875
34027
  for (let h of i) {
33876
34028
  o = R__namespace.default.resolve(o, h);
33877
- let [a, l] = ye(() => m__namespace.default.lstatSync(o));
34029
+ let [a, l] = ye(() => u__namespace.default.lstatSync(o));
33878
34030
  if (a) return r();
33879
34031
  if (l.isSymbolicLink()) return n(new St(o, R__namespace.default.resolve(e, i.join("/"))));
33880
34032
  }
@@ -33883,20 +34035,20 @@ var xe = class extends Xt {
33883
34035
  [gi](t, e, i, r) {
33884
34036
  let n = `${i}Sync`;
33885
34037
  try {
33886
- m__namespace.default[n](e, String(t.absolute)), r(), t.resume();
34038
+ u__namespace.default[n](e, String(t.absolute)), r(), t.resume();
33887
34039
  } catch (o) {
33888
34040
  return this[O](o, t);
33889
34041
  }
33890
34042
  }
33891
34043
  };
33892
34044
  var Eo = (s3) => {
33893
- let t = new xe(s3), e = s3.file, i = m__namespace.default.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
34045
+ let t = new xe(s3), e = s3.file, i = u__namespace.default.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
33894
34046
  new Be(e, { readSize: r, size: i.size }).pipe(t);
33895
34047
  };
33896
34048
  var wo = (s3, t) => {
33897
34049
  let e = new Xt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
33898
34050
  return new Promise((o, h) => {
33899
- e.on("error", h), e.on("close", o), m__namespace.default.stat(r, (a, l) => {
34051
+ e.on("error", h), e.on("close", o), u__namespace.default.stat(r, (a, l) => {
33900
34052
  if (a) h(a);
33901
34053
  else {
33902
34054
  let c = new _t(r, { readSize: i, size: l.size });
@@ -33912,15 +34064,15 @@ var yo = (s3, t) => {
33912
34064
  let e = new kt(s3), i = true, r, n;
33913
34065
  try {
33914
34066
  try {
33915
- r = m__namespace.default.openSync(s3.file, "r+");
34067
+ r = u__namespace.default.openSync(s3.file, "r+");
33916
34068
  } catch (a) {
33917
- if (a?.code === "ENOENT") r = m__namespace.default.openSync(s3.file, "w+");
34069
+ if (a?.code === "ENOENT") r = u__namespace.default.openSync(s3.file, "w+");
33918
34070
  else throw a;
33919
34071
  }
33920
- let o = m__namespace.default.fstatSync(r), h = Buffer.alloc(512);
34072
+ let o = u__namespace.default.fstatSync(r), h = Buffer.alloc(512);
33921
34073
  t: for (n = 0; n < o.size; n += 512) {
33922
34074
  for (let c = 0, d = 0; c < 512; c += d) {
33923
- if (d = m__namespace.default.readSync(r, h, c, h.length - c, n + c), n === 0 && h[0] === 31 && h[1] === 139) throw new Error("cannot append to compressed archives");
34075
+ if (d = u__namespace.default.readSync(r, h, c, h.length - c, n + c), n === 0 && h[0] === 31 && h[1] === 139) throw new Error("cannot append to compressed archives");
33924
34076
  if (!d) break t;
33925
34077
  }
33926
34078
  let a = new F(h);
@@ -33932,7 +34084,7 @@ var yo = (s3, t) => {
33932
34084
  i = false, Ro(s3, e, n, r, t);
33933
34085
  } finally {
33934
34086
  if (i) try {
33935
- m__namespace.default.closeSync(r);
34087
+ u__namespace.default.closeSync(r);
33936
34088
  } catch {
33937
34089
  }
33938
34090
  }
@@ -33945,29 +34097,29 @@ var go = (s3, t) => {
33945
34097
  t = Array.from(t);
33946
34098
  let e = new wt(s3), i = (n, o, h) => {
33947
34099
  let a = (T, D) => {
33948
- T ? m__namespace.default.close(n, (E) => h(T)) : h(null, D);
34100
+ T ? u__namespace.default.close(n, (E) => h(T)) : h(null, D);
33949
34101
  }, l = 0;
33950
34102
  if (o === 0) return a(null, 0);
33951
34103
  let c = 0, d = Buffer.alloc(512), y = (T, D) => {
33952
34104
  if (T || D === void 0) return a(T);
33953
- if (c += D, c < 512 && D) return m__namespace.default.read(n, d, c, d.length - c, l + c, y);
34105
+ if (c += D, c < 512 && D) return u__namespace.default.read(n, d, c, d.length - c, l + c, y);
33954
34106
  if (l === 0 && d[0] === 31 && d[1] === 139) return a(new Error("cannot append to compressed archives"));
33955
34107
  if (c < 512) return a(null, l);
33956
34108
  let E = new F(d);
33957
34109
  if (!E.cksumValid) return a(null, l);
33958
34110
  let x = 512 * Math.ceil((E.size ?? 0) / 512);
33959
34111
  if (l + x + 512 > o || (l += x + 512, l >= o)) return a(null, l);
33960
- s3.mtimeCache && E.mtime && s3.mtimeCache.set(String(E.path), E.mtime), c = 0, m__namespace.default.read(n, d, 0, 512, l, y);
34112
+ s3.mtimeCache && E.mtime && s3.mtimeCache.set(String(E.path), E.mtime), c = 0, u__namespace.default.read(n, d, 0, 512, l, y);
33961
34113
  };
33962
- m__namespace.default.read(n, d, 0, 512, l, y);
34114
+ u__namespace.default.read(n, d, 0, 512, l, y);
33963
34115
  };
33964
34116
  return new Promise((n, o) => {
33965
34117
  e.on("error", o);
33966
34118
  let h = "r+", a = (l, c) => {
33967
- if (l && l.code === "ENOENT" && h === "r+") return h = "w+", m__namespace.default.open(s3.file, h, a);
34119
+ if (l && l.code === "ENOENT" && h === "r+") return h = "w+", u__namespace.default.open(s3.file, h, a);
33968
34120
  if (l || !c) return o(l);
33969
- m__namespace.default.fstat(c, (d, y) => {
33970
- if (d) return m__namespace.default.close(c, () => o(d));
34121
+ u__namespace.default.fstat(c, (d, y) => {
34122
+ if (d) return u__namespace.default.close(c, () => o(d));
33971
34123
  i(c, y.size, (T, D) => {
33972
34124
  if (T) return o(T);
33973
34125
  let E = new et(s3.file, { fd: c, start: D });
@@ -33975,7 +34127,7 @@ var go = (s3, t) => {
33975
34127
  });
33976
34128
  });
33977
34129
  };
33978
- m__namespace.default.open(s3.file, h, a);
34130
+ u__namespace.default.open(s3.file, h, a);
33979
34131
  });
33980
34132
  };
33981
34133
  var bo = (s3, t) => {