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