clanka 0.8.1 → 0.8.2
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/SemanticSearch.js +1 -1
- package/dist/SemanticSearch.js.map +1 -1
- package/dist/bin/{Effect-DvI8YVcR.mjs → Effect-BCeySOy1.mjs} +248 -247
- package/dist/bin/Effect-BCeySOy1.mjs.map +1 -0
- package/dist/bin/{McpClient-CM7u8ZVd.mjs → McpClient-DP4jlaD1.mjs} +3 -3
- package/dist/bin/{McpClient-CM7u8ZVd.mjs.map → McpClient-DP4jlaD1.mjs.map} +1 -1
- package/dist/bin/{OutputFormatter-BpggeGvI.mjs → OutputFormatter-Ch8yFytV.mjs} +3 -3
- package/dist/bin/{OutputFormatter-BpggeGvI.mjs.map → OutputFormatter-Ch8yFytV.mjs.map} +1 -1
- package/dist/bin/{Schema-DyJ738Wp.mjs → Schema-C9JQ5hI0.mjs} +36 -36
- package/dist/bin/Schema-C9JQ5hI0.mjs.map +1 -0
- package/dist/bin/{SemanticSearch-BHUGFT1y.mjs → SemanticSearch-BJGnYhFt.mjs} +19 -19
- package/dist/bin/{SemanticSearch-BHUGFT1y.mjs.map → SemanticSearch-BJGnYhFt.mjs.map} +1 -1
- package/dist/bin/{Stream-Dg7AGCgJ.mjs → Stream-CgH3SuLu.mjs} +16 -16
- package/dist/bin/{Stream-Dg7AGCgJ.mjs.map → Stream-CgH3SuLu.mjs.map} +1 -1
- package/dist/bin/cli.mjs +188 -188
- package/dist/bin/cli.mjs.map +1 -1
- package/package.json +7 -7
- package/src/SemanticSearch.ts +1 -1
- package/dist/bin/Effect-DvI8YVcR.mjs.map +0 -1
- package/dist/bin/Schema-DyJ738Wp.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Pipeable.js
|
|
2
2
|
const pipeArguments = (self, args) => {
|
|
3
3
|
switch (args.length) {
|
|
4
4
|
case 0: return self;
|
|
@@ -27,7 +27,7 @@ const Class$2 = function() {
|
|
|
27
27
|
return PipeableBase;
|
|
28
28
|
}();
|
|
29
29
|
//#endregion
|
|
30
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
30
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Function.js
|
|
31
31
|
const dual = function(arity, body) {
|
|
32
32
|
if (typeof arity === "function") return function() {
|
|
33
33
|
return arity(arguments) ? body.apply(this, arguments) : (self) => body(self, ...arguments);
|
|
@@ -117,7 +117,7 @@ function memoizeIdempotent(f) {
|
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
//#endregion
|
|
120
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
120
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/equal.js
|
|
121
121
|
const getAllObjectKeys = (obj) => {
|
|
122
122
|
const keys = new Set(Reflect.ownKeys(obj));
|
|
123
123
|
if (obj.constructor === Object) return keys;
|
|
@@ -133,8 +133,15 @@ const getAllObjectKeys = (obj) => {
|
|
|
133
133
|
return keys;
|
|
134
134
|
};
|
|
135
135
|
const byReferenceInstances = new WeakSet();
|
|
136
|
+
const viewBytes = (view) => new Uint8Array(view.buffer, view.byteOffset, view.byteLength);
|
|
136
137
|
//#endregion
|
|
137
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
138
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/hash.js
|
|
139
|
+
let backEdges = 0;
|
|
140
|
+
const addBackEdge = () => {
|
|
141
|
+
backEdges++;
|
|
142
|
+
};
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Predicate.js
|
|
138
145
|
function isString(input) {
|
|
139
146
|
return typeof input === "string";
|
|
140
147
|
}
|
|
@@ -196,51 +203,66 @@ function isIterable(input) {
|
|
|
196
203
|
}
|
|
197
204
|
const or = dual(2, (self, that) => (a) => self(a) || that(a));
|
|
198
205
|
//#endregion
|
|
199
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
206
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Hash.js
|
|
200
207
|
const symbol$1 = "~effect/Hash";
|
|
201
208
|
const hash = (self) => {
|
|
202
209
|
switch (typeof self) {
|
|
203
210
|
case "number": return number(self);
|
|
204
211
|
case "bigint": return string(self.toString(10));
|
|
205
212
|
case "string": return string(self);
|
|
206
|
-
case "undefined": return string("undefined");
|
|
207
213
|
case "function":
|
|
208
|
-
case "object": if (self === null)
|
|
214
|
+
case "object": if (self === null) break;
|
|
209
215
|
else if (self instanceof Date) {
|
|
210
216
|
if (Number.isNaN(self.getTime())) return string("Invalid Date");
|
|
211
217
|
return string(self.toISOString());
|
|
212
218
|
} else if (self instanceof RegExp) return string(self.toString());
|
|
213
219
|
else {
|
|
214
220
|
if (byReferenceInstances.has(self)) return random$1(self);
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
221
|
+
const cached = hashCache.get(self);
|
|
222
|
+
if (cached !== void 0) return cached;
|
|
223
|
+
if (visitedObjects.has(self)) {
|
|
224
|
+
addBackEdge();
|
|
225
|
+
return string("[Circular]");
|
|
226
|
+
}
|
|
227
|
+
visitedObjects.add(self);
|
|
228
|
+
const seen = backEdges;
|
|
229
|
+
let h;
|
|
230
|
+
try {
|
|
231
|
+
if ("~effect/Hash" in self) h = self[symbol$1]();
|
|
232
|
+
else if (typeof self === "function") h = random$1(self);
|
|
233
|
+
else if (self instanceof DataView) h = array(viewBytes(self));
|
|
234
|
+
else if (Array.isArray(self) || ArrayBuffer.isView(self)) h = array(self);
|
|
235
|
+
else if (self instanceof Map) h = hashMap(self);
|
|
236
|
+
else if (self instanceof Set) h = hashSet(self);
|
|
237
|
+
else h = structure(self);
|
|
238
|
+
} finally {
|
|
239
|
+
visitedObjects.delete(self);
|
|
240
|
+
}
|
|
241
|
+
if (seen === backEdges) hashCache.set(self, h);
|
|
226
242
|
return h;
|
|
227
243
|
}
|
|
228
|
-
default: return string(String(self));
|
|
229
244
|
}
|
|
245
|
+
return optimize(mix(string(String(self))));
|
|
230
246
|
};
|
|
231
247
|
const random$1 = (self) => {
|
|
232
|
-
if (!randomHashCache.has(self)) randomHashCache.set(self,
|
|
248
|
+
if (!randomHashCache.has(self)) randomHashCache.set(self, optimize(Math.random() * 4294967296 | 0));
|
|
233
249
|
return randomHashCache.get(self);
|
|
234
250
|
};
|
|
235
|
-
const
|
|
251
|
+
const mix = (h) => {
|
|
252
|
+
h ^= h >>> 16;
|
|
253
|
+
h = Math.imul(h, 2246822507);
|
|
254
|
+
h ^= h >>> 13;
|
|
255
|
+
h = Math.imul(h, 3266489909);
|
|
256
|
+
return h ^ h >>> 16;
|
|
257
|
+
};
|
|
258
|
+
const combine = dual(2, (self, b) => mix(Math.imul(self, 2654435761) + Math.imul(b, 2246822507)));
|
|
236
259
|
const optimize = (n) => n & 3221225471 | n >>> 1 & 1073741824;
|
|
237
|
-
const
|
|
260
|
+
const float64 = new DataView(new ArrayBuffer(8));
|
|
238
261
|
const number = (n) => {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
return optimize(h);
|
|
262
|
+
const h = n | 0;
|
|
263
|
+
if (h === n) return optimize(h);
|
|
264
|
+
float64.setFloat64(0, n !== n ? NaN : n);
|
|
265
|
+
return optimize(combine(float64.getInt32(0), float64.getInt32(4)));
|
|
244
266
|
};
|
|
245
267
|
const string = (str) => {
|
|
246
268
|
let h = 5381, i = str.length;
|
|
@@ -253,26 +275,24 @@ const structureKeys = (o, keys) => {
|
|
|
253
275
|
return optimize(h);
|
|
254
276
|
};
|
|
255
277
|
const structure = (o) => structureKeys(o, getAllObjectKeys(o));
|
|
256
|
-
const
|
|
278
|
+
const unordered = (seed, f) => (iter) => {
|
|
257
279
|
let h = seed;
|
|
258
280
|
for (const element of iter) h ^= f(element);
|
|
259
281
|
return optimize(h);
|
|
260
282
|
};
|
|
261
|
-
const array =
|
|
262
|
-
|
|
263
|
-
const
|
|
283
|
+
const array = (arr) => {
|
|
284
|
+
let h = 6151;
|
|
285
|
+
for (const element of arr) h = combine(h, hash(element));
|
|
286
|
+
return optimize(h);
|
|
287
|
+
};
|
|
288
|
+
const hashMap = unordered(string("Map"), ([k, v]) => combine(hash(k), hash(v)));
|
|
289
|
+
const setSeed = string("Set");
|
|
290
|
+
const hashSet = unordered(setSeed, (element) => combine(setSeed, hash(element)));
|
|
264
291
|
const randomHashCache = new WeakMap();
|
|
265
292
|
const hashCache = new WeakMap();
|
|
266
293
|
const visitedObjects = new WeakSet();
|
|
267
|
-
function withVisitedTracking$1(obj, fn) {
|
|
268
|
-
if (visitedObjects.has(obj)) return string("[Circular]");
|
|
269
|
-
visitedObjects.add(obj);
|
|
270
|
-
const result = fn();
|
|
271
|
-
visitedObjects.delete(obj);
|
|
272
|
-
return result;
|
|
273
|
-
}
|
|
274
294
|
//#endregion
|
|
275
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
295
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Equal.js
|
|
276
296
|
const symbol = "~effect/Equal";
|
|
277
297
|
function equals$1() {
|
|
278
298
|
if (arguments.length === 1) return (self) => compareBoth(self, arguments[0]);
|
|
@@ -286,78 +306,59 @@ function compareBoth(self, that) {
|
|
|
286
306
|
if (selfType === "number" && self !== self && that !== that) return true;
|
|
287
307
|
if (selfType !== "object" && selfType !== "function") return false;
|
|
288
308
|
if (byReferenceInstances.has(self) || byReferenceInstances.has(that)) return false;
|
|
289
|
-
return
|
|
309
|
+
return compareObjects(self, that);
|
|
290
310
|
}
|
|
291
|
-
function
|
|
292
|
-
const
|
|
293
|
-
|
|
294
|
-
if (
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
visitedLeft.delete(self);
|
|
300
|
-
visitedRight.delete(that);
|
|
311
|
+
function compareObjects(self, that) {
|
|
312
|
+
const depth = pathLeft.length;
|
|
313
|
+
for (let i = depth; i-- > 0;) if (pathLeft[i] === self && pathRight[i] === that) return true;
|
|
314
|
+
if (depth) return compareOnPath(self, that);
|
|
315
|
+
let known = results.get(self);
|
|
316
|
+
if (!known) results.set(self, known = new WeakMap());
|
|
317
|
+
let result = known.get(that);
|
|
318
|
+
if (result === void 0) known.set(that, result = compareOnPath(self, that));
|
|
301
319
|
return result;
|
|
302
320
|
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
321
|
+
function compareOnPath(self, that) {
|
|
322
|
+
pathLeft.push(self);
|
|
323
|
+
pathRight.push(that);
|
|
324
|
+
try {
|
|
325
|
+
return compareStructure(self, that);
|
|
326
|
+
} finally {
|
|
327
|
+
pathLeft.pop();
|
|
328
|
+
pathRight.pop();
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
const pathLeft = [];
|
|
332
|
+
const pathRight = [];
|
|
333
|
+
const results = new WeakMap();
|
|
334
|
+
function compareStructure(self, that) {
|
|
306
335
|
if (hash(self) !== hash(that)) return false;
|
|
307
336
|
else if (self instanceof Date) {
|
|
308
337
|
if (!(that instanceof Date)) return false;
|
|
309
338
|
const selfTime = self.getTime();
|
|
310
339
|
const thatTime = that.getTime();
|
|
311
340
|
return selfTime === thatTime || Number.isNaN(selfTime) && Number.isNaN(thatTime);
|
|
312
|
-
} else if (self instanceof RegExp)
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
if (
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
}
|
|
333
|
-
return compareTypedArrays(self, that);
|
|
334
|
-
} else if (self instanceof Map) {
|
|
335
|
-
if (!(that instanceof Map) || self.size !== that.size) return false;
|
|
336
|
-
return compareMaps(self, that);
|
|
337
|
-
} else if (self instanceof Set) {
|
|
338
|
-
if (!(that instanceof Set) || self.size !== that.size) return false;
|
|
339
|
-
return compareSets(self, that);
|
|
340
|
-
}
|
|
341
|
-
return compareRecords(self, that);
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
function withCache(self, that, f) {
|
|
345
|
-
let selfMap = equalityCache.get(self);
|
|
346
|
-
if (!selfMap) {
|
|
347
|
-
selfMap = new WeakMap();
|
|
348
|
-
equalityCache.set(self, selfMap);
|
|
349
|
-
} else if (selfMap.has(that)) return selfMap.get(that);
|
|
350
|
-
const result = f(self, that);
|
|
351
|
-
selfMap.set(that, result);
|
|
352
|
-
let thatMap = equalityCache.get(that);
|
|
353
|
-
if (!thatMap) {
|
|
354
|
-
thatMap = new WeakMap();
|
|
355
|
-
equalityCache.set(that, thatMap);
|
|
356
|
-
}
|
|
357
|
-
thatMap.set(self, result);
|
|
358
|
-
return result;
|
|
341
|
+
} else if (self instanceof RegExp) return that instanceof RegExp && self.toString() === that.toString();
|
|
342
|
+
const bothEquals = isEqual(self);
|
|
343
|
+
if (bothEquals !== isEqual(that) || typeof self === "function" && !bothEquals) return false;
|
|
344
|
+
else if (bothEquals) return self[symbol](that);
|
|
345
|
+
else if (Array.isArray(self)) {
|
|
346
|
+
if (!Array.isArray(that) || self.length !== that.length) return false;
|
|
347
|
+
return compareArrays(self, that);
|
|
348
|
+
} else if (ArrayBuffer.isView(self)) {
|
|
349
|
+
const selfIsDataView = self instanceof DataView;
|
|
350
|
+
if (!ArrayBuffer.isView(that) || self.byteLength !== that.byteLength || selfIsDataView !== that instanceof DataView) return false;
|
|
351
|
+
if (selfIsDataView) return compareTypedArrays(viewBytes(self), viewBytes(that));
|
|
352
|
+
return compareTypedArrays(self, that);
|
|
353
|
+
} else if (self instanceof Map) {
|
|
354
|
+
if (!(that instanceof Map) || self.size !== that.size) return false;
|
|
355
|
+
return compareHashed(self, that, entryHash, equalEntries);
|
|
356
|
+
} else if (self instanceof Set) {
|
|
357
|
+
if (!(that instanceof Set) || self.size !== that.size) return false;
|
|
358
|
+
return compareHashed(self, that, hash, compareBoth);
|
|
359
|
+
}
|
|
360
|
+
return compareRecords(self, that);
|
|
359
361
|
}
|
|
360
|
-
const equalityCache = new WeakMap();
|
|
361
362
|
function compareArrays(self, that) {
|
|
362
363
|
for (let i = 0; i < self.length; i++) if (!compareBoth(self[i], that[i])) return false;
|
|
363
364
|
return true;
|
|
@@ -374,53 +375,36 @@ function compareRecords(self, that) {
|
|
|
374
375
|
for (const key of selfKeys) if (!thatKeys.has(key) || !compareBoth(self[key], that[key])) return false;
|
|
375
376
|
return true;
|
|
376
377
|
}
|
|
377
|
-
function
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
}
|
|
393
|
-
return true;
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
const compareMaps = makeCompareMap(compareBoth, compareBoth);
|
|
397
|
-
function makeCompareSet(equivalence) {
|
|
398
|
-
return function compareSets(self, that) {
|
|
399
|
-
const thatValues = Array.from(that);
|
|
400
|
-
for (const selfValue of self) {
|
|
401
|
-
let found = false;
|
|
402
|
-
for (let i = 0; i < thatValues.length; i++) {
|
|
403
|
-
const thatValue = thatValues[i];
|
|
404
|
-
if (equivalence(selfValue, thatValue)) {
|
|
405
|
-
thatValues[i] = thatValues[thatValues.length - 1];
|
|
406
|
-
thatValues.pop();
|
|
407
|
-
found = true;
|
|
408
|
-
break;
|
|
409
|
-
}
|
|
378
|
+
function compareHashed(self, that, hashOf, equivalent) {
|
|
379
|
+
const groups = new Map();
|
|
380
|
+
for (const item of that) {
|
|
381
|
+
const h = hashOf(item);
|
|
382
|
+
const group = groups.get(h);
|
|
383
|
+
if (group) group.push(item);
|
|
384
|
+
else groups.set(h, [item]);
|
|
385
|
+
}
|
|
386
|
+
outer: for (const item of self) {
|
|
387
|
+
const group = groups.get(hashOf(item));
|
|
388
|
+
if (group) {
|
|
389
|
+
for (let i = 0; i < group.length; i++) if (equivalent(item, group[i])) {
|
|
390
|
+
group[i] = group[group.length - 1];
|
|
391
|
+
group.pop();
|
|
392
|
+
continue outer;
|
|
410
393
|
}
|
|
411
|
-
if (!found) return false;
|
|
412
394
|
}
|
|
413
|
-
return
|
|
414
|
-
}
|
|
395
|
+
return false;
|
|
396
|
+
}
|
|
397
|
+
return true;
|
|
415
398
|
}
|
|
416
|
-
const
|
|
399
|
+
const entryHash = (entry) => hash(entry[0]);
|
|
400
|
+
const equalEntries = (self, that) => compareBoth(self[0], that[0]) && compareBoth(self[1], that[1]);
|
|
417
401
|
const isEqual = (u) => hasProperty(u, symbol);
|
|
418
402
|
const byReferenceUnsafe = (obj) => {
|
|
419
403
|
byReferenceInstances.add(obj);
|
|
420
404
|
return obj;
|
|
421
405
|
};
|
|
422
406
|
//#endregion
|
|
423
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
407
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Redactable.js
|
|
424
408
|
const symbolRedactable = Symbol.for("~effect/Redactable");
|
|
425
409
|
const isRedactable = (u) => hasProperty(u, symbolRedactable);
|
|
426
410
|
function redact(u) {
|
|
@@ -442,7 +426,7 @@ const emptyContext$1 = {
|
|
|
442
426
|
}
|
|
443
427
|
};
|
|
444
428
|
//#endregion
|
|
445
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
429
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Formatter.js
|
|
446
430
|
function format$1(input, options) {
|
|
447
431
|
const space = options?.space ?? 0;
|
|
448
432
|
const ancestors = new WeakSet();
|
|
@@ -548,7 +532,7 @@ function formatJson(input, options) {
|
|
|
548
532
|
}, options?.space) ?? "null";
|
|
549
533
|
}
|
|
550
534
|
//#endregion
|
|
551
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
535
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Inspectable.js
|
|
552
536
|
const NodeInspectSymbol = Symbol.for("nodejs.util.inspect.custom");
|
|
553
537
|
const toJson = (input) => {
|
|
554
538
|
try {
|
|
@@ -588,7 +572,7 @@ var Class$1 = class {
|
|
|
588
572
|
}
|
|
589
573
|
};
|
|
590
574
|
//#endregion
|
|
591
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
575
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/stackTraceLimit.js
|
|
592
576
|
const isStackTraceLimitWritable = () => {
|
|
593
577
|
const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
|
|
594
578
|
if (desc === void 0) return Object.isExtensible(Error);
|
|
@@ -600,7 +584,7 @@ const setStackTraceLimit = (value) => {
|
|
|
600
584
|
if (canWriteStackTraceLimit) Error.stackTraceLimit = value;
|
|
601
585
|
};
|
|
602
586
|
//#endregion
|
|
603
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
587
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Utils.js
|
|
604
588
|
var SingleShotGen = class SingleShotGen {
|
|
605
589
|
called = false;
|
|
606
590
|
self;
|
|
@@ -634,7 +618,7 @@ const pickInternalCall = () => {
|
|
|
634
618
|
};
|
|
635
619
|
const internalCall = pickInternalCall();
|
|
636
620
|
//#endregion
|
|
637
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
621
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/record.js
|
|
638
622
|
function assignProperty(self, key, value) {
|
|
639
623
|
if (key === "__proto__") Object.defineProperty(self, key, {
|
|
640
624
|
value,
|
|
@@ -648,7 +632,7 @@ function assignProperties(self, source) {
|
|
|
648
632
|
for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProperty(self, key, source[key]);
|
|
649
633
|
}
|
|
650
634
|
//#endregion
|
|
651
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
635
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/core.js
|
|
652
636
|
const EffectTypeId = `~effect/Effect`;
|
|
653
637
|
const ExitTypeId = `~effect/Exit`;
|
|
654
638
|
const effectVariance = {
|
|
@@ -985,13 +969,13 @@ const done$2 = (value) => {
|
|
|
985
969
|
return exitFail(Done$1(value));
|
|
986
970
|
};
|
|
987
971
|
//#endregion
|
|
988
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
972
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Effectable.js
|
|
989
973
|
const Prototype = (options) => makePrimitiveProto({
|
|
990
974
|
op: options.label,
|
|
991
975
|
[evaluate]: options.evaluate
|
|
992
976
|
});
|
|
993
977
|
//#endregion
|
|
994
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
978
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Equivalence.js
|
|
995
979
|
const make$5 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
996
980
|
const isStrictEquivalent = (x, y) => x === y;
|
|
997
981
|
const strictEqual = () => isStrictEquivalent;
|
|
@@ -1010,7 +994,7 @@ function Array_(item) {
|
|
|
1010
994
|
});
|
|
1011
995
|
}
|
|
1012
996
|
//#endregion
|
|
1013
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
997
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/option.js
|
|
1014
998
|
const TypeId$7 = "~effect/Option";
|
|
1015
999
|
const CommonProto$1 = {
|
|
1016
1000
|
[TypeId$7]: { _A: (_) => _ },
|
|
@@ -1072,7 +1056,7 @@ const SomeImpl = function(value) {
|
|
|
1072
1056
|
SomeImpl.prototype = SomeProto;
|
|
1073
1057
|
const some$1 = (value) => new SomeImpl(value);
|
|
1074
1058
|
//#endregion
|
|
1075
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1059
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/result.js
|
|
1076
1060
|
const TypeId$6 = "~effect/Result";
|
|
1077
1061
|
const CommonProto = {
|
|
1078
1062
|
[TypeId$6]: {
|
|
@@ -1138,7 +1122,7 @@ const SuccessImpl = function(success) {
|
|
|
1138
1122
|
SuccessImpl.prototype = SuccessProto;
|
|
1139
1123
|
const succeed$5 = (success) => new SuccessImpl(success);
|
|
1140
1124
|
//#endregion
|
|
1141
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1125
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Order.js
|
|
1142
1126
|
function make$4(compare) {
|
|
1143
1127
|
return (self, that) => self === that ? 0 : compare(self, that);
|
|
1144
1128
|
}
|
|
@@ -1158,7 +1142,7 @@ const isLessThanOrEqualTo = (O) => dual(2, (self, that) => O(self, that) !== 1);
|
|
|
1158
1142
|
const isGreaterThanOrEqualTo = (O) => dual(2, (self, that) => O(self, that) !== -1);
|
|
1159
1143
|
const min$2 = (O) => dual(2, (self, that) => self === that || O(self, that) < 1 ? self : that);
|
|
1160
1144
|
//#endregion
|
|
1161
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1145
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Option.js
|
|
1162
1146
|
const none = () => none$1;
|
|
1163
1147
|
const some = some$1;
|
|
1164
1148
|
const isOption = isOption$1;
|
|
@@ -1210,7 +1194,7 @@ const toArray = (self) => isNone(self) ? [] : [self.value];
|
|
|
1210
1194
|
const filter = dual(2, (self, predicate) => isNone(self) ? none() : predicate(self.value) ? some(self.value) : none());
|
|
1211
1195
|
const exists = dual(2, (self, refinement) => isNone(self) ? false : refinement(self.value));
|
|
1212
1196
|
//#endregion
|
|
1213
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1197
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Context.js
|
|
1214
1198
|
const ServiceTypeId = "~effect/Context/Service";
|
|
1215
1199
|
const Service = function() {
|
|
1216
1200
|
function KeyClass() {}
|
|
@@ -1396,7 +1380,7 @@ const mergeAll$1 = (...ctxs) => {
|
|
|
1396
1380
|
};
|
|
1397
1381
|
const Reference = Service;
|
|
1398
1382
|
//#endregion
|
|
1399
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1383
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Duration.js
|
|
1400
1384
|
const TypeId$4 = "~effect/Duration";
|
|
1401
1385
|
const bigint0$1 = BigInt(0);
|
|
1402
1386
|
const bigint1 = BigInt(1);
|
|
@@ -1692,10 +1676,10 @@ const format = (self) => {
|
|
|
1692
1676
|
return pieces.join(" ");
|
|
1693
1677
|
};
|
|
1694
1678
|
//#endregion
|
|
1695
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1679
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/array.js
|
|
1696
1680
|
const isArrayNonEmpty$1 = (self) => self.length > 0;
|
|
1697
1681
|
//#endregion
|
|
1698
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1682
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Result.js
|
|
1699
1683
|
const succeed$4 = succeed$5;
|
|
1700
1684
|
const fail$4 = fail$5;
|
|
1701
1685
|
const failVoid = fail$4(void 0);
|
|
@@ -1723,7 +1707,7 @@ const getOrThrowWith = dual(2, (self, onFailure) => {
|
|
|
1723
1707
|
});
|
|
1724
1708
|
const getOrThrow = getOrThrowWith(identity);
|
|
1725
1709
|
//#endregion
|
|
1726
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1710
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Iterable.js
|
|
1727
1711
|
const headUnsafe = (self) => {
|
|
1728
1712
|
const result = self[Symbol.iterator]().next();
|
|
1729
1713
|
if (result.done) throw new Error("headUnsafe: empty iterable");
|
|
@@ -1751,7 +1735,7 @@ const constEmptyIterator = { next() {
|
|
|
1751
1735
|
} };
|
|
1752
1736
|
const empty$2 = () => constEmpty;
|
|
1753
1737
|
//#endregion
|
|
1754
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1738
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Array.js
|
|
1755
1739
|
const Array$1 = globalThis.Array;
|
|
1756
1740
|
const fromIterable = (collection) => Array$1.isArray(collection) ? collection : Array$1.from(collection);
|
|
1757
1741
|
const match$2 = dual(2, (self, { onEmpty, onNonEmpty }) => isReadonlyArrayNonEmpty(self) ? onNonEmpty(self) : onEmpty());
|
|
@@ -1820,7 +1804,7 @@ const flatMapNullishOr = dual(2, (self, f) => flatMap$3(self, (a) => fromNullish
|
|
|
1820
1804
|
const makeEquivalence = Array_;
|
|
1821
1805
|
const join = dual(2, (self, sep) => fromIterable(self).join(sep));
|
|
1822
1806
|
//#endregion
|
|
1823
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1807
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Scheduler.js
|
|
1824
1808
|
const Scheduler = Reference("effect/Scheduler", {
|
|
1825
1809
|
fiberCached: true,
|
|
1826
1810
|
defaultValue: () => new MixedScheduler()
|
|
@@ -1924,7 +1908,7 @@ const PreventSchedulerYield = Reference("effect/Scheduler/PreventSchedulerYield"
|
|
|
1924
1908
|
defaultValue: () => false
|
|
1925
1909
|
});
|
|
1926
1910
|
//#endregion
|
|
1927
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1911
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/encoding/Hex.js
|
|
1928
1912
|
const random = (length) => {
|
|
1929
1913
|
switch (length) {
|
|
1930
1914
|
case 16: return random16();
|
|
@@ -1955,7 +1939,7 @@ const random32 = () => {
|
|
|
1955
1939
|
return String.fromCharCode(hexCharCodes[a >>> 28], hexCharCodes[a >>> 24 & 15], hexCharCodes[a >>> 20 & 15], hexCharCodes[a >>> 16 & 15], hexCharCodes[a >>> 12 & 15], hexCharCodes[a >>> 8 & 15], hexCharCodes[a >>> 4 & 15], hexCharCodes[a & 15], hexCharCodes[b >>> 28], hexCharCodes[b >>> 24 & 15], hexCharCodes[b >>> 20 & 15], hexCharCodes[b >>> 16 & 15], hexCharCodes[b >>> 12 & 15], hexCharCodes[b >>> 8 & 15], hexCharCodes[b >>> 4 & 15], hexCharCodes[b & 15], hexCharCodes[c >>> 28], hexCharCodes[c >>> 24 & 15], hexCharCodes[c >>> 20 & 15], hexCharCodes[c >>> 16 & 15], hexCharCodes[c >>> 12 & 15], hexCharCodes[c >>> 8 & 15], hexCharCodes[c >>> 4 & 15], hexCharCodes[c & 15], hexCharCodes[d >>> 28], hexCharCodes[d >>> 24 & 15], hexCharCodes[d >>> 20 & 15], hexCharCodes[d >>> 16 & 15], hexCharCodes[d >>> 12 & 15], hexCharCodes[d >>> 8 & 15], hexCharCodes[d >>> 4 & 15], hexCharCodes[d & 15]);
|
|
1956
1940
|
};
|
|
1957
1941
|
//#endregion
|
|
1958
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
1942
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Tracer.js
|
|
1959
1943
|
const ParentSpanKey = "effect/Tracer/ParentSpan";
|
|
1960
1944
|
var ParentSpan = class extends Service()(ParentSpanKey, { fiberCached: true }) {};
|
|
1961
1945
|
const make$1 = (options) => options;
|
|
@@ -2030,10 +2014,10 @@ var NativeSpan = class {
|
|
|
2030
2014
|
}
|
|
2031
2015
|
};
|
|
2032
2016
|
//#endregion
|
|
2033
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
2017
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/metric.js
|
|
2034
2018
|
const FiberRuntimeMetricsKey = "effect/Metric/FiberRuntimeMetrics";
|
|
2035
2019
|
//#endregion
|
|
2036
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
2020
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/references.js
|
|
2037
2021
|
const CurrentStackFrame = Reference("effect/References/CurrentStackFrame", {
|
|
2038
2022
|
fiberCached: true,
|
|
2039
2023
|
defaultValue: constUndefined
|
|
@@ -2056,7 +2040,7 @@ const MinimumLogLevel$1 = Reference("effect/References/MinimumLogLevel", {
|
|
|
2056
2040
|
});
|
|
2057
2041
|
const CurrentLogSpans$1 = Reference("effect/References/CurrentLogSpans", { defaultValue: () => [] });
|
|
2058
2042
|
//#endregion
|
|
2059
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
2043
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/tracer.js
|
|
2060
2044
|
const addSpanStackTrace = (options) => {
|
|
2061
2045
|
if (options?.captureStackTrace === false) return options;
|
|
2062
2046
|
else if (options?.captureStackTrace !== void 0 && typeof options.captureStackTrace !== "boolean") return options;
|
|
@@ -2088,7 +2072,7 @@ const makeStackCleaner = (line) => (stack) => {
|
|
|
2088
2072
|
};
|
|
2089
2073
|
const spanCleaner = makeStackCleaner(3);
|
|
2090
2074
|
//#endregion
|
|
2091
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
2075
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/effect.js
|
|
2092
2076
|
var Interrupt = class extends ReasonBase {
|
|
2093
2077
|
constructor(fiberId, annotations = constEmptyAnnotations) {
|
|
2094
2078
|
super("Interrupt", annotations, "Interrupted");
|
|
@@ -2244,7 +2228,7 @@ const cleanErrorStack = (stack, error, annotations) => {
|
|
|
2244
2228
|
const lines = (stack.startsWith(message) ? stack.slice(message.length) : stack).split("\n");
|
|
2245
2229
|
const out = [message];
|
|
2246
2230
|
for (let i = 1; i < lines.length; i++) {
|
|
2247
|
-
if (/
|
|
2231
|
+
if (/Generator\.next|~effect\/(?:Effect|Utils)/.test(lines[i])) break;
|
|
2248
2232
|
out.push(lines[i]);
|
|
2249
2233
|
}
|
|
2250
2234
|
return annotations ? addStackAnnotations(out.join("\n"), annotations) : out.join("\n");
|
|
@@ -2617,23 +2601,23 @@ const yieldNowWith = makePrimitive({
|
|
|
2617
2601
|
const yieldNow$1 = yieldNowWith(0);
|
|
2618
2602
|
const succeedSome = (a) => succeed$3(some(a));
|
|
2619
2603
|
const succeedNone$1 = succeed$3(none());
|
|
2620
|
-
const failCauseSync$1 = (evaluate) => suspend$1(() => failCause$3(
|
|
2604
|
+
const failCauseSync$1 = (evaluate) => suspend$1(() => failCause$3(evaluate()));
|
|
2621
2605
|
const die$3 = (defect) => exitDie(defect);
|
|
2622
|
-
const failSync = (error) => suspend$1(() => fail$3(
|
|
2606
|
+
const failSync = (error) => suspend$1(() => fail$3(error()));
|
|
2623
2607
|
const void_$2 = succeed$3(void 0);
|
|
2624
2608
|
const try_$1 = (options) => {
|
|
2625
2609
|
const evaluate = typeof options === "function" ? options : options.try;
|
|
2626
2610
|
const catcher = typeof options === "function" ? (cause) => new UnknownError$1(cause, "An error occurred in Effect.try") : options.catch;
|
|
2627
2611
|
return suspend$1(() => {
|
|
2628
2612
|
try {
|
|
2629
|
-
return succeed$3(
|
|
2613
|
+
return succeed$3(evaluate());
|
|
2630
2614
|
} catch (err) {
|
|
2631
|
-
return fail$3(
|
|
2615
|
+
return fail$3(catcher(err));
|
|
2632
2616
|
}
|
|
2633
2617
|
});
|
|
2634
2618
|
};
|
|
2635
2619
|
const promise$1 = (evaluate) => callbackOptions(function(resume, signal) {
|
|
2636
|
-
|
|
2620
|
+
evaluate(signal).then((a) => resume(succeed$3(a)), (e) => resume(die$3(e)));
|
|
2637
2621
|
}, evaluate.length !== 0);
|
|
2638
2622
|
const tryPromise$1 = (options) => {
|
|
2639
2623
|
const f = typeof options === "function" ? options : options.try;
|
|
@@ -2647,7 +2631,7 @@ const tryPromise$1 = (options) => {
|
|
|
2647
2631
|
}
|
|
2648
2632
|
};
|
|
2649
2633
|
try {
|
|
2650
|
-
|
|
2634
|
+
f(signal).then((a) => resume(succeed$3(a)), failWithCatch);
|
|
2651
2635
|
} catch (err) {
|
|
2652
2636
|
failWithCatch(err);
|
|
2653
2637
|
}
|
|
@@ -2839,11 +2823,6 @@ const OnSuccessProto = makePrimitiveProto({
|
|
|
2839
2823
|
op: "OnSuccess",
|
|
2840
2824
|
[evaluate]: evaluateCont
|
|
2841
2825
|
});
|
|
2842
|
-
const OnSuccessImpl = function(self, f) {
|
|
2843
|
-
this[args] = self;
|
|
2844
|
-
this[contA] = f;
|
|
2845
|
-
};
|
|
2846
|
-
OnSuccessImpl.prototype = OnSuccessProto;
|
|
2847
2826
|
const ContImpl = function(self, cont, payload) {
|
|
2848
2827
|
this[args] = self;
|
|
2849
2828
|
this[contA] = cont;
|
|
@@ -2853,17 +2832,23 @@ ContImpl.prototype = OnSuccessProto;
|
|
|
2853
2832
|
const returnPayload = function() {
|
|
2854
2833
|
return this.payload;
|
|
2855
2834
|
};
|
|
2835
|
+
const continuationMarksStack = (() => {
|
|
2836
|
+
const marker = "~effect/Effect/stackProbe";
|
|
2837
|
+
return { [marker]: function stackProbe() {
|
|
2838
|
+
return new Error().stack;
|
|
2839
|
+
} }[marker]()?.includes("[as " + marker + "]") === true;
|
|
2840
|
+
})();
|
|
2856
2841
|
const mapCont = function(value) {
|
|
2857
2842
|
const f = this.payload;
|
|
2858
|
-
return succeed$3(internalCall(() => f(value)));
|
|
2843
|
+
return succeed$3(continuationMarksStack ? f(value) : internalCall(() => f(value)));
|
|
2859
2844
|
};
|
|
2860
2845
|
const andThenCont = function(value) {
|
|
2861
2846
|
const f = this.payload;
|
|
2862
|
-
return
|
|
2847
|
+
return f(value);
|
|
2863
2848
|
};
|
|
2864
2849
|
const tapCont = function(value) {
|
|
2865
2850
|
const f = this.payload;
|
|
2866
|
-
return new ContImpl(
|
|
2851
|
+
return new ContImpl(f(value), returnPayload, exitSucceed(value));
|
|
2867
2852
|
};
|
|
2868
2853
|
const tapEffectCont = function(value) {
|
|
2869
2854
|
return new ContImpl(this.payload, returnPayload, exitSucceed(value));
|
|
@@ -2899,7 +2884,7 @@ const raceAllFirst = (all, options) => withFiber$1((parent) => callback$1((resum
|
|
|
2899
2884
|
return fiberInterruptAll(fibers);
|
|
2900
2885
|
}));
|
|
2901
2886
|
const raceFirst$1 = dual((args) => isEffect$1(args[1]), (self, that, options) => raceAllFirst([self, that], options));
|
|
2902
|
-
const flatMap$2 = dual(2, (self, f) => new
|
|
2887
|
+
const flatMap$2 = dual(2, (self, f) => new ContImpl(self, andThenCont, f));
|
|
2903
2888
|
const effectIsExit = (effect) => effect[ExitTypeId] !== void 0;
|
|
2904
2889
|
const flatMapEager$1 = dual(2, (self, f) => {
|
|
2905
2890
|
if (effectIsExit(self)) return self._tag === "Success" ? f(self.value) : self;
|
|
@@ -2950,9 +2935,10 @@ const updateContext$1 = dual(2, (self, f) => withFiber$1((fiber) => {
|
|
|
2950
2935
|
const nextContext = f(prevContext);
|
|
2951
2936
|
if (prevContext === nextContext) return self;
|
|
2952
2937
|
fiber.setContext(nextContext);
|
|
2953
|
-
|
|
2938
|
+
onExitUnsafe(fiber, () => {
|
|
2954
2939
|
fiber.setContext(prevContext);
|
|
2955
2940
|
});
|
|
2941
|
+
return self;
|
|
2956
2942
|
}));
|
|
2957
2943
|
const updateService$1 = dual(3, (self, service, f) => updateContext$1(self, (s) => {
|
|
2958
2944
|
const prev = getUnsafe$1(s, service);
|
|
@@ -2972,7 +2958,7 @@ const provideService$1 = function() {
|
|
|
2972
2958
|
return dual(3, (self, service, impl) => provideServiceImpl(self, service, impl)).apply(this, arguments);
|
|
2973
2959
|
};
|
|
2974
2960
|
const provideServiceImpl = (self, service, implementation) => updateContext$1(self, add(service, implementation));
|
|
2975
|
-
const zipWith$1 = dual((args) => isEffect$1(args[1]), (self, that, f, options) => options?.concurrent ? map$2(all$1([self, that], { concurrency: 2 }), ([a, a2]) =>
|
|
2961
|
+
const zipWith$1 = dual((args) => isEffect$1(args[1]), (self, that, f, options) => options?.concurrent ? map$2(all$1([self, that], { concurrency: 2 }), ([a, a2]) => f(a, a2)) : flatMap$2(self, (a) => map$2(that, (a2) => f(a, a2))));
|
|
2976
2962
|
const filterOrFail$1 = dual((args) => isEffect$1(args[0]), (self, predicate, orFailWith) => filterOrElse(self, predicate, orFailWith ? (a) => fail$3(orFailWith(a)) : () => fail$3(new NoSuchElementError$1())));
|
|
2977
2963
|
const when$1 = dual(2, (self, condition) => flatMap$2(condition, (pass) => pass ? asSome$1(self) : succeedNone$1));
|
|
2978
2964
|
const forever$2 = dual((args) => isEffect$1(args[0]), (self, options) => whileLoop$1({
|
|
@@ -2992,7 +2978,7 @@ const OnFailureImpl = function(self, f) {
|
|
|
2992
2978
|
OnFailureImpl.prototype = OnFailureProto;
|
|
2993
2979
|
const catchCauseFilter = dual(3, (self, filter, f) => catchCause$1(self, (cause) => {
|
|
2994
2980
|
const eb = filter(cause);
|
|
2995
|
-
return isFailure$1(eb) ? failCause$3(eb.failure) :
|
|
2981
|
+
return isFailure$1(eb) ? failCause$3(eb.failure) : f(eb.success, cause);
|
|
2996
2982
|
}));
|
|
2997
2983
|
const catch_$1 = dual(2, (self, f) => catchCauseFilter(self, findError$1, (e) => f(e)));
|
|
2998
2984
|
const catchNoSuchElement$1 = (self) => matchEffect$2(self, {
|
|
@@ -3000,19 +2986,19 @@ const catchNoSuchElement$1 = (self) => matchEffect$2(self, {
|
|
|
3000
2986
|
onSuccess: succeedSome
|
|
3001
2987
|
});
|
|
3002
2988
|
const catchDefect$1 = dual(2, (self, f) => catchCauseFilter(self, findDefect, f));
|
|
3003
|
-
const tapCause$1 = dual(2, (self, f) => catchCause$1(self, (cause) => andThen$1(
|
|
2989
|
+
const tapCause$1 = dual(2, (self, f) => catchCause$1(self, (cause) => andThen$1(f(cause), failCause$3(cause))));
|
|
3004
2990
|
const catchIf$1 = dual((args) => isEffect$1(args[0]), (self, predicate, f, orElse) => catchCause$1(self, (cause) => {
|
|
3005
2991
|
const error = findError$1(cause);
|
|
3006
2992
|
if (isFailure$1(error)) return failCause$3(error.failure);
|
|
3007
|
-
if (!predicate(error.success)) return orElse ?
|
|
3008
|
-
return
|
|
2993
|
+
if (!predicate(error.success)) return orElse ? orElse(error.success) : failCause$3(cause);
|
|
2994
|
+
return f(error.success);
|
|
3009
2995
|
}));
|
|
3010
2996
|
const catchFilter$1 = dual((args) => isEffect$1(args[0]), (self, filter, f, orElse) => catchCause$1(self, (cause) => {
|
|
3011
2997
|
const error = findError$1(cause);
|
|
3012
2998
|
if (isFailure$1(error)) return failCause$3(error.failure);
|
|
3013
2999
|
const result = filter(error.success);
|
|
3014
|
-
if (isFailure$1(result)) return orElse ?
|
|
3015
|
-
return
|
|
3000
|
+
if (isFailure$1(result)) return orElse ? orElse(result.failure) : failCause$3(cause);
|
|
3001
|
+
return f(result.success);
|
|
3016
3002
|
}));
|
|
3017
3003
|
const catchTag$1 = dual((args) => isEffect$1(args[0]), (self, k, f, orElse) => {
|
|
3018
3004
|
const pred = Array.isArray(k) ? (e) => hasProperty(e, "_tag") && k.includes(e._tag) : isTagged(k);
|
|
@@ -3023,12 +3009,12 @@ const catchTags$1 = dual((args) => isEffect$1(args[0]), (self, cases, orElse) =>
|
|
|
3023
3009
|
return catchFilter$1(self, (e) => {
|
|
3024
3010
|
keys ??= Object.keys(cases);
|
|
3025
3011
|
return hasProperty(e, "_tag") && isString(e["_tag"]) && keys.includes(e["_tag"]) ? succeed$4(e) : fail$4(e);
|
|
3026
|
-
}, (e) =>
|
|
3012
|
+
}, (e) => cases[e["_tag"]](e), orElse);
|
|
3027
3013
|
});
|
|
3028
3014
|
const catchReason$1 = dual((args) => isEffect$1(args[0]), (self, errorTag, reasonTag, f, orElse) => catchIf$1(self, (e) => isTagged(e, errorTag) && hasProperty(e, "reason") && (orElse !== void 0 || isTagged(e.reason, reasonTag)), (e) => {
|
|
3029
3015
|
const reason = e.reason;
|
|
3030
3016
|
if (isTagged(reason, reasonTag)) return f(reason, e);
|
|
3031
|
-
return orElse ?
|
|
3017
|
+
return orElse ? orElse(reason, e) : fail$3(e);
|
|
3032
3018
|
}));
|
|
3033
3019
|
const mapError$1 = dual(2, (self, f) => catch_$1(self, (error) => failSync(() => f(error))));
|
|
3034
3020
|
const mapBoth = dual(2, (self, options) => matchEffect$2(self, {
|
|
@@ -3071,19 +3057,22 @@ const OnSuccessAndFailureImpl = function(self, onSuccess, onFailure) {
|
|
|
3071
3057
|
};
|
|
3072
3058
|
OnSuccessAndFailureImpl.prototype = OnSuccessAndFailureProto;
|
|
3073
3059
|
const matchCause = dual(2, (self, options) => matchCauseEffect$1(self, {
|
|
3074
|
-
onFailure: (cause) => sync$1(() => options.onFailure(cause)),
|
|
3075
|
-
onSuccess: (value) => sync$1(() => options.onSuccess(value))
|
|
3060
|
+
onFailure: (cause) => continuationMarksStack ? succeed$3(options.onFailure(cause)) : sync$1(() => options.onFailure(cause)),
|
|
3061
|
+
onSuccess: (value) => continuationMarksStack ? succeed$3(options.onSuccess(value)) : sync$1(() => options.onSuccess(value))
|
|
3076
3062
|
}));
|
|
3077
3063
|
const matchEffect$2 = dual(2, (self, options) => matchCauseEffect$1(self, {
|
|
3078
3064
|
onFailure: (cause) => {
|
|
3079
3065
|
const fail = cause.reasons.find(isFailReason$1);
|
|
3080
|
-
return fail ?
|
|
3066
|
+
return fail ? options.onFailure(fail.error) : failCause$3(cause);
|
|
3081
3067
|
},
|
|
3082
3068
|
onSuccess: options.onSuccess
|
|
3083
3069
|
}));
|
|
3084
|
-
const match$1 = dual(2, (self, options) =>
|
|
3085
|
-
onFailure: (
|
|
3086
|
-
|
|
3070
|
+
const match$1 = dual(2, (self, options) => matchCauseEffect$1(self, {
|
|
3071
|
+
onFailure: (cause) => {
|
|
3072
|
+
const fail = cause.reasons.find(isFailReason$1);
|
|
3073
|
+
return fail ? continuationMarksStack ? succeed$3(options.onFailure(fail.error)) : sync$1(() => options.onFailure(fail.error)) : failCause$3(cause);
|
|
3074
|
+
},
|
|
3075
|
+
onSuccess: (value) => continuationMarksStack ? succeed$3(options.onSuccess(value)) : sync$1(() => options.onSuccess(value))
|
|
3087
3076
|
}));
|
|
3088
3077
|
const matchEager = dual(2, (self, options) => {
|
|
3089
3078
|
if (effectIsExit(self)) {
|
|
@@ -3225,10 +3214,11 @@ const scoped$1 = (self) => withFiber$1((fiber) => {
|
|
|
3225
3214
|
const prev = fiber.context;
|
|
3226
3215
|
const scope = scopeMakeUnsafe();
|
|
3227
3216
|
fiber.setContext(add(fiber.context, scopeTag, scope));
|
|
3228
|
-
|
|
3217
|
+
onExitUnsafe(fiber, (exit) => {
|
|
3229
3218
|
fiber.setContext(prev);
|
|
3230
3219
|
return scopeCloseUnsafe(scope, exit);
|
|
3231
3220
|
});
|
|
3221
|
+
return self;
|
|
3232
3222
|
});
|
|
3233
3223
|
const scopedWith$1 = (f) => suspend$1(() => {
|
|
3234
3224
|
const scope = scopeMakeUnsafe();
|
|
@@ -3236,7 +3226,7 @@ const scopedWith$1 = (f) => suspend$1(() => {
|
|
|
3236
3226
|
});
|
|
3237
3227
|
const acquireRelease$1 = (acquire, release, options) => contextWith$1((context) => uninterruptibleMask$1((restore) => flatMap$2(scope$1, (scope) => tap$1(options?.interruptible ? restore(acquire) : acquire, (a) => scopeAddFinalizerExit(scope, (exit) => provideContext$1(release(a, exit), context))))));
|
|
3238
3228
|
const addFinalizer$2 = (finalizer) => flatMap$2(scope$1, (scope) => contextWith$1((context) => scopeAddFinalizerExit(scope, (exit) => provideContext$1(finalizer(exit), context))));
|
|
3239
|
-
const
|
|
3229
|
+
const OnExitImpl = function() {
|
|
3240
3230
|
const Proto = makePrimitiveProto({
|
|
3241
3231
|
op: "OnExit",
|
|
3242
3232
|
[evaluate](fiber) {
|
|
@@ -3266,10 +3256,12 @@ const onExitPrimitive$1 = function() {
|
|
|
3266
3256
|
this.interruptible = interruptible;
|
|
3267
3257
|
};
|
|
3268
3258
|
OnExitImpl.prototype = Proto;
|
|
3269
|
-
return
|
|
3270
|
-
return new OnExitImpl(effect, onExit, interruptible);
|
|
3271
|
-
};
|
|
3259
|
+
return OnExitImpl;
|
|
3272
3260
|
}();
|
|
3261
|
+
const onExitPrimitive$1 = (effect, onExit, interruptible) => new OnExitImpl(effect, onExit, interruptible);
|
|
3262
|
+
const onExitUnsafe = (fiber, f) => {
|
|
3263
|
+
fiber._stack.push(new OnExitImpl(void 0, f, void 0));
|
|
3264
|
+
};
|
|
3273
3265
|
const onExit$1 = dual(2, onExitPrimitive$1);
|
|
3274
3266
|
const ensuring$1 = dual(2, (self, finalizer) => onExit$1(self, (_) => finalizer));
|
|
3275
3267
|
const onExitFilter = dual(3, (self, filter, f) => onExit$1(self, (exit) => {
|
|
@@ -3298,7 +3290,7 @@ const cachedInvalidateWithTTL = dual(2, (self, ttl) => sync$1(() => {
|
|
|
3298
3290
|
running = true;
|
|
3299
3291
|
latch.closeUnsafe();
|
|
3300
3292
|
exit = void 0;
|
|
3301
|
-
|
|
3293
|
+
onExitUnsafe(fiber, (exit_) => sync$1(() => {
|
|
3302
3294
|
try {
|
|
3303
3295
|
const duration = ttlMillis(exit_);
|
|
3304
3296
|
expiresAt = clock.currentTimeMillisUnsafe() + duration;
|
|
@@ -3312,6 +3304,7 @@ const cachedInvalidateWithTTL = dual(2, (self, ttl) => sync$1(() => {
|
|
|
3312
3304
|
latch.openUnsafe();
|
|
3313
3305
|
}
|
|
3314
3306
|
}));
|
|
3307
|
+
return self;
|
|
3315
3308
|
}), sync$1(() => {
|
|
3316
3309
|
expiresAt = 0;
|
|
3317
3310
|
latch.closeUnsafe();
|
|
@@ -3324,14 +3317,15 @@ const cached$1 = (self) => sync$1(() => {
|
|
|
3324
3317
|
let started = false;
|
|
3325
3318
|
let exit;
|
|
3326
3319
|
const wait = flatMap$2(latch.await, () => exit);
|
|
3327
|
-
return
|
|
3320
|
+
return withFiber$1((fiber) => {
|
|
3328
3321
|
if (exit !== void 0) return exit;
|
|
3329
3322
|
if (started) return wait;
|
|
3330
3323
|
started = true;
|
|
3331
|
-
|
|
3324
|
+
onExitUnsafe(fiber, (result) => sync$1(() => {
|
|
3332
3325
|
exit = result;
|
|
3333
3326
|
latch.openUnsafe();
|
|
3334
3327
|
}));
|
|
3328
|
+
return self;
|
|
3335
3329
|
});
|
|
3336
3330
|
});
|
|
3337
3331
|
const interrupt$2 = withFiber$1((fiber) => failCause$3(causeInterrupt(fiber.id)));
|
|
@@ -3776,7 +3770,8 @@ const useSpan$1 = (name, ...args) => {
|
|
|
3776
3770
|
const span = makeSpanUnsafe(fiber, name, options);
|
|
3777
3771
|
const clock = fiber.getRef(ClockRef);
|
|
3778
3772
|
const timingEnabled = fiber.getRef(TracerTimingEnabled$1);
|
|
3779
|
-
|
|
3773
|
+
onExitUnsafe(fiber, (exit) => endSpan(span, exit, clock, timingEnabled));
|
|
3774
|
+
return evaluate(span);
|
|
3780
3775
|
});
|
|
3781
3776
|
};
|
|
3782
3777
|
const provideParentSpan = provideService$1(ParentSpan);
|
|
@@ -4022,7 +4017,7 @@ function interruptChildrenPatch() {
|
|
|
4022
4017
|
}
|
|
4023
4018
|
const undefined_$1 = succeed$3(void 0);
|
|
4024
4019
|
//#endregion
|
|
4025
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
4020
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Exit.js
|
|
4026
4021
|
const isExit = isExit$1;
|
|
4027
4022
|
const succeed$2 = exitSucceed;
|
|
4028
4023
|
const failCause$2 = exitFailCause;
|
|
@@ -4033,7 +4028,7 @@ const void_$1 = exitVoid;
|
|
|
4033
4028
|
const isSuccess = exitIsSuccess;
|
|
4034
4029
|
const isFailure = exitIsFailure;
|
|
4035
4030
|
//#endregion
|
|
4036
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
4031
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Deferred.js
|
|
4037
4032
|
const TypeId$3 = "~effect/Deferred";
|
|
4038
4033
|
const DeferredProto = {
|
|
4039
4034
|
[TypeId$3]: {
|
|
@@ -4079,13 +4074,13 @@ const doneUnsafe = (self, effect) => {
|
|
|
4079
4074
|
};
|
|
4080
4075
|
const into = dual(2, (self, deferred) => uninterruptibleMask$1((restore) => flatMap$2(exit$1(restore(self)), (exit) => done$1(deferred, exit))));
|
|
4081
4076
|
//#endregion
|
|
4082
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
4077
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/References.js
|
|
4083
4078
|
const CurrentLogAnnotations = CurrentLogAnnotations$1;
|
|
4084
4079
|
const CurrentLogSpans = CurrentLogSpans$1;
|
|
4085
4080
|
const MinimumLogLevel = MinimumLogLevel$1;
|
|
4086
4081
|
const TracerTimingEnabled = TracerTimingEnabled$1;
|
|
4087
4082
|
//#endregion
|
|
4088
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
4083
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Scope.js
|
|
4089
4084
|
const Scope = scopeTag;
|
|
4090
4085
|
const make = scopeMake;
|
|
4091
4086
|
const makeUnsafe = scopeMakeUnsafe;
|
|
@@ -4095,12 +4090,27 @@ const addFinalizer$1 = scopeAddFinalizer;
|
|
|
4095
4090
|
const forkUnsafe = scopeForkUnsafe;
|
|
4096
4091
|
const close = scopeClose;
|
|
4097
4092
|
//#endregion
|
|
4098
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
4093
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Layer.js
|
|
4099
4094
|
const TypeId$2 = "~effect/Layer";
|
|
4100
4095
|
const MemoMapTypeId = "~effect/Layer/MemoMap";
|
|
4101
|
-
const
|
|
4096
|
+
const makeMemoMapEntry = (memoMap, layer) => {
|
|
4097
|
+
const entry = {
|
|
4098
|
+
observers: 0,
|
|
4099
|
+
deferred: makeUnsafe$1(),
|
|
4100
|
+
scope: makeUnsafe(),
|
|
4101
|
+
finalizer: (exit) => suspend$1(() => {
|
|
4102
|
+
if (--entry.observers > 0) return void_$2;
|
|
4103
|
+
memoMap.map.delete(layer);
|
|
4104
|
+
return close(entry.scope, exit);
|
|
4105
|
+
})
|
|
4106
|
+
};
|
|
4107
|
+
return entry;
|
|
4108
|
+
};
|
|
4109
|
+
const memoMapObserve = (entry, scope) => {
|
|
4110
|
+
if (scope.state._tag === "Closed") return false;
|
|
4102
4111
|
entry.observers++;
|
|
4103
|
-
|
|
4112
|
+
scopeAddFinalizerUnsafe(scope, {}, entry.finalizer);
|
|
4113
|
+
return true;
|
|
4104
4114
|
};
|
|
4105
4115
|
const LayerProto = {
|
|
4106
4116
|
[TypeId$2]: {
|
|
@@ -4125,27 +4135,6 @@ const fromBuildMemo = (build) => {
|
|
|
4125
4135
|
const self = fromBuild((memoMap, scope) => memoMap.getOrElseMemoize(self, scope, build));
|
|
4126
4136
|
return self;
|
|
4127
4137
|
};
|
|
4128
|
-
const memoMapBuild = (memoMap, layer, scope, build) => {
|
|
4129
|
-
const layerScope = makeUnsafe();
|
|
4130
|
-
const deferred = makeUnsafe$1();
|
|
4131
|
-
const entry = {
|
|
4132
|
-
observers: 1,
|
|
4133
|
-
effect: _await(deferred),
|
|
4134
|
-
finalizer: (exit) => suspend$1(() => {
|
|
4135
|
-
entry.observers--;
|
|
4136
|
-
if (entry.observers === 0) {
|
|
4137
|
-
memoMap.map.delete(layer);
|
|
4138
|
-
return close(layerScope, exit);
|
|
4139
|
-
}
|
|
4140
|
-
return void_$2;
|
|
4141
|
-
})
|
|
4142
|
-
};
|
|
4143
|
-
memoMap.map.set(layer, entry);
|
|
4144
|
-
return scopeAddFinalizerExit(scope, entry.finalizer).pipe(flatMap$2(() => build(memoMap, layerScope)), onExit$1((exit) => {
|
|
4145
|
-
entry.effect = exit;
|
|
4146
|
-
return done$1(deferred, exit);
|
|
4147
|
-
}));
|
|
4148
|
-
};
|
|
4149
4138
|
var MemoMapImpl = class {
|
|
4150
4139
|
get [MemoMapTypeId]() {
|
|
4151
4140
|
return MemoMapTypeId;
|
|
@@ -4157,14 +4146,26 @@ var MemoMapImpl = class {
|
|
|
4157
4146
|
map = new Map();
|
|
4158
4147
|
get(layer, scope) {
|
|
4159
4148
|
const local = this.map.get(layer);
|
|
4160
|
-
if (local)
|
|
4149
|
+
if (local) {
|
|
4150
|
+
memoMapObserve(local, scope);
|
|
4151
|
+
return local.deferred.effect ?? _await(local.deferred);
|
|
4152
|
+
}
|
|
4161
4153
|
return this.parent?.get(layer, scope);
|
|
4162
4154
|
}
|
|
4163
4155
|
getOrElseMemoize(layer, scope, build) {
|
|
4164
4156
|
return suspend$1(() => {
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4157
|
+
let deferred;
|
|
4158
|
+
return onExitPrimitive$1(suspend$1(() => {
|
|
4159
|
+
const existing = this.get(layer, scope);
|
|
4160
|
+
if (existing) return existing;
|
|
4161
|
+
const entry = makeMemoMapEntry(this, layer);
|
|
4162
|
+
if (!memoMapObserve(entry, scope)) return build(this, scope);
|
|
4163
|
+
deferred = entry.deferred;
|
|
4164
|
+
this.map.set(layer, entry);
|
|
4165
|
+
return build(this, entry.scope);
|
|
4166
|
+
}), (exit) => {
|
|
4167
|
+
if (deferred) doneUnsafe(deferred, exit);
|
|
4168
|
+
});
|
|
4168
4169
|
});
|
|
4169
4170
|
}
|
|
4170
4171
|
};
|
|
@@ -4244,7 +4245,7 @@ const makeUnimplemented = (error) => {
|
|
|
4244
4245
|
const StreamTypeId = "~effect/Stream";
|
|
4245
4246
|
const ChannelTypeId = "~effect/Channel";
|
|
4246
4247
|
//#endregion
|
|
4247
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
4248
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Cause.js
|
|
4248
4249
|
const isCause = isCause$1;
|
|
4249
4250
|
const isReason = isCauseReason;
|
|
4250
4251
|
const isFailReason = isFailReason$1;
|
|
@@ -4273,7 +4274,7 @@ const UnknownError = UnknownError$1;
|
|
|
4273
4274
|
const annotate = causeAnnotate;
|
|
4274
4275
|
var StackTrace = class extends Service()("effect/Cause/StackTrace") {};
|
|
4275
4276
|
//#endregion
|
|
4276
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
4277
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/random.js
|
|
4277
4278
|
const Random = Reference("effect/Random", { defaultValue: () => ({
|
|
4278
4279
|
nextIntUnsafe() {
|
|
4279
4280
|
return Math.floor(Math.random() * (Number.MAX_SAFE_INTEGER - Number.MIN_SAFE_INTEGER + 1)) + Number.MIN_SAFE_INTEGER;
|
|
@@ -4293,7 +4294,7 @@ const nextBetween = (min, max, draw) => {
|
|
|
4293
4294
|
return view.getFloat64(0);
|
|
4294
4295
|
};
|
|
4295
4296
|
//#endregion
|
|
4296
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
4297
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Pull.js
|
|
4297
4298
|
const catchDone = dual(2, (effect, f) => catchCauseFilter(effect, filterDoneLeftover, (l) => f(l)));
|
|
4298
4299
|
const isDoneCause = (cause) => cause.reasons.some(isDoneFailure);
|
|
4299
4300
|
const isDoneFailure = (failure) => failure._tag === "Fail" && isDone(failure.error);
|
|
@@ -4321,7 +4322,7 @@ const matchEffect$1 = dual(2, (self, options) => matchCauseEffect$1(self, {
|
|
|
4321
4322
|
}
|
|
4322
4323
|
}));
|
|
4323
4324
|
//#endregion
|
|
4324
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
4325
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Schedule.js
|
|
4325
4326
|
const TypeId$1 = "~effect/Schedule";
|
|
4326
4327
|
const randomNext = Random.useSync((random) => random.nextDoubleUnsafe());
|
|
4327
4328
|
const CurrentMetadata = Reference("effect/Schedule/CurrentMetadata", { defaultValue: constant({
|
|
@@ -4445,11 +4446,11 @@ const while_ = dual(2, (self, predicate) => fromStep(map$2(toStep(self), (step)
|
|
|
4445
4446
|
})));
|
|
4446
4447
|
const forever$1 = spaced(zero);
|
|
4447
4448
|
//#endregion
|
|
4448
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
4449
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/layer.js
|
|
4449
4450
|
const provideLayer = (self, layer, options) => scopedWith$1((scope) => flatMap$2(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope) : buildWithScope(layer, scope), (context) => provideContext$1(self, context)));
|
|
4450
4451
|
const provide$1 = dual((args) => isEffect$1(args[0]), (self, source, options) => isContext(source) ? provideContext$1(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll(...source) : source, options));
|
|
4451
4452
|
//#endregion
|
|
4452
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
4453
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/schedule.js
|
|
4453
4454
|
const repeatOrElse = dual(3, (self, schedule, orElse) => flatMap$2(toStepWithMetadata(schedule), (step) => {
|
|
4454
4455
|
let meta = CurrentMetadata.defaultValue();
|
|
4455
4456
|
return catch_$1(forever$2(tap$1(flatMap$2(suspend$1(() => provideService$1(self, CurrentMetadata, meta)), step), (meta_) => sync$1(() => {
|
|
@@ -4491,7 +4492,7 @@ const buildFromOptions = (options) => {
|
|
|
4491
4492
|
return schedule;
|
|
4492
4493
|
};
|
|
4493
4494
|
//#endregion
|
|
4494
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
4495
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Request.js
|
|
4495
4496
|
const TypeId = "~effect/Request";
|
|
4496
4497
|
const requestVariance = byReferenceUnsafe({
|
|
4497
4498
|
_E: (_) => _,
|
|
@@ -4516,7 +4517,7 @@ const TaggedClass = (tag) => {
|
|
|
4516
4517
|
};
|
|
4517
4518
|
const makeEntry = (options) => options;
|
|
4518
4519
|
//#endregion
|
|
4519
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
4520
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/internal/request.js
|
|
4520
4521
|
const request$1 = dual(2, (self, resolver) => {
|
|
4521
4522
|
const withResolver = (resolver) => callback$1((resume) => {
|
|
4522
4523
|
const entry = addEntry(resolver, self, resume, getCurrentFiber());
|
|
@@ -4612,7 +4613,7 @@ function runBatch(batch) {
|
|
|
4612
4613
|
return batch.run;
|
|
4613
4614
|
}
|
|
4614
4615
|
//#endregion
|
|
4615
|
-
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@
|
|
4616
|
+
//#region node_modules/.pnpm/effect@https+++pkg.pr.new+Effect-TS+effect+effect@b3032f0_f95638f588f5b9b247401a051448b365/node_modules/effect/dist/Effect.js
|
|
4616
4617
|
const isEffect = isEffect$1;
|
|
4617
4618
|
const all = all$1;
|
|
4618
4619
|
const forEach = forEach$1;
|
|
@@ -4754,4 +4755,4 @@ const fnUntracedEager = fnUntracedEager$1;
|
|
|
4754
4755
|
//#endregion
|
|
4755
4756
|
export { isEffect as $, map$5 as $a, headUnsafe as $i, buildWithScope as $n, symbol$1 as $o, exitInterrupt as $r, uninterruptibleMask as $t, ensuring as A, getOrUndefined$1 as Aa, ParentSpan as Ai, StackTrace as An, assignProperty as Ao, isDone$1 as Ar, memoizeIdempotent as As, result as At, fnUntraced as B, flatMapNullishOr$1 as Ba, headNonEmpty as Bi, hasInterrupts as Bn, formatPath as Bo, succeed$2 as Br, sleep as Bt, catch_ as C, zero as Ca, succeedNone$1 as Ci, isDoneCause as Cn, args as Co, MinimumLogLevel as Cr, constUndefined as Cs, promise as Ct, delay as D, empty$3 as Da, updateContext$1 as Di, Done as Dn, exitSucceed as Do, doneUnsafe as Dr, flow as Ds, raceFirst as Dt, contextWith as E, add as Ea, uninterruptibleMask$1 as Ei, nextBetween as En, exitFailCause as Eo, done$1 as Er, dual as Es, provideService as Et, filterOrFail as F, merge$1 as Fa, findFirst as Fi, done as Fn, NodeInspectSymbol as Fo, failCause$2 as Fr, runSyncExit as Ft, forkIn as G, getOrElse$1 as Ga, last as Gi, isReason as Gn, equals$1 as Go, andThen$1 as Gr, tap as Gt, forEach as H, fromNullOr as Ha, isCanonicalArrayIndex as Hi, interruptors as Hn, redact as Ho, ClockRef as Hr, succeedNone as Ht, flatMap as I, all$2 as Ia, findFirstIndex as Ii, fail$1 as In, toJson as Io, interrupt$1 as Ir, scope as It, fromResult as J, getOrUndefined$2 as Ja, match$2 as Ji, makeFailReason as Jn, combine as Jo, contextWith$1 as Jr, timeoutOrElse as Jt, forkScoped as K, getOrNull as Ka, makeEquivalence as Ki, isTimeoutError as Kn, symbol as Ko, asSome$1 as Kr, tapCause as Kt, flatMapEager as L, exists as La, findLast as Li, filterInterruptors as Ln, format$1 as Lo, isExit as Lr, scoped as Lt, fail as M, getUnsafe$1 as Ma, append as Mi, UnknownError as Mn, setStackTraceLimit as Mo, makeUnsafe$1 as Mr, Class$2 as Ms, runFork as Mt, failCause as N, make$3 as Na, appendAll as Ni, annotate as Nn, BaseProto as No, die$2 as Nr, Prototype$1 as Ns, runForkWith as Nt, die as O, get as Oa, void_$2 as Oi, IllegalArgumentError as On, withFiber$1 as Oo, interruptWith as Or, identity as Os, repeat as Ot, failCauseSync as P, makeUnsafe$2 as Pa, empty$1 as Pi, die$1 as Pn, Class$1 as Po, fail$2 as Pr, pipeArguments as Ps, runSync as Pt, interruptible as Q, liftThrowable as Qa, empty$2 as Qi, squash as Qn, structure as Qo, exitHasInterrupts as Qr, uninterruptible as Qt, flatten as R, filter as Ra, flatMapNullishOr as Ri, findError as Rn, formatDate as Ro, isFailure as Rr, scopedWith as Rt, catchTags as S, toSeconds as Sa, succeed$3 as Si, filterDone as Sn, TaggedError as So, CurrentLogAnnotations as Sr, constTrue as Ss, orElseSucceed as St, context as T, Service as Ta, sync$1 as Ti, Random as Tn, exitFail as To, _await as Tr, constant as Ts, provideContext as Tt, forever as U, fromNullishOr$1 as Ua, isReadonlyArrayNonEmpty as Ui, isCause as Un, symbolRedactable as Uo, ConsoleRef as Ur, suspend as Ut, fnUntracedEager as V, flatten$3 as Va, isArrayNonEmpty as Vi, hasInterruptsOnly as Vn, formatPropertyKey as Vo, void_$1 as Vr, succeed as Vt, forkChild as W, fromUndefinedOr as Wa, join as Wi, isFailReason as Wn, byReferenceUnsafe as Wo, LogToStderr as Wr, sync as Wt, ignore as X, isOption as Xa, reduce as Xi, map$1 as Xn, number as Xo, effectIsExit as Xr, try_ as Xt, gen as Y, isNone as Ya, of as Yi, makeInterruptReason as Yn, hash as Yo, currentTimeMillis as Yr, tryPromise as Yt, interrupt as Z, isSome as Za, sort as Zi, pretty as Zn, string as Zo, endSpan as Zr, undefined_ as Zt, catchFilter as _, minutes as _a, map$2 as _i, min as _n, strictEqual as _o, close as _r, isTagged as _s, onExit as _t, andThen as a, isSuccess$1 as aa, fiberInterruptAllAs as ai, whileLoop as an, toArray as ao, merge as ar, isIterable as as, makeSpanScoped as at, catchReason as b, seconds as ba, resolveConcurrency as bi, catchDone as bn, Error$1 as bo, makeUnsafe as br, or as bs, option as bt, as as c, succeed$4 as ca, fiberRunIn as ci, withParentSpan as cn, Number$1 as co, orDie$1 as cr, isNotNullish as cs, mapEager as ct, cached as d, fromInputUnsafe as da, getCurrentFiber as di, zipWith as dn, isGreaterThanOrEqualTo as do, succeed$1 as dr, isNullish as ds, match as dt, fail$4 as ea, exitVoid as ei, updateContext as en, match$5 as eo, effect as er, hasProperty as es, logDebug as et, cachedWithTTL as f, infinity as fa, iterateConcurrent as fi, Class as fn, isLessThan as fo, succeedContext as fr, isNumber as fs, matchCauseEager as ft, catchEager as g, millis as ga, makeSpanUnsafe as gi, jittered as gn, make$5 as go, addFinalizerExit as gr, isString as gs, onError as gt, catchDefect as h, isZero as ha, makeLatchUnsafe as hi, isSchedule as hn, Tuple as ho, addFinalizer$1 as hr, isPropertyKey as hs, never as ht, all as i, isFailure$1 as ia, fiberInterruptAll as ii, when as in, some as io, fresh as ir, isFunction as is, logWarning as it, exit as j, getOrUndefinedUnsafe as ja, Array$1 as ji, TimeoutError as jn, getStackTraceLimit as jo, isDoneUnsafe as jr, pipe as js, retry as jt, effectify as k, getOption as ka, DisablePropagation as ki, NoSuchElementError as kn, assignProperties as ko, into as kr, memoize as ks, request as kt, asSome as l, try_$2 as la, flatMap$2 as li, withSpan as ln, String$1 as lo, provide$2 as lr, isNotUndefined as ls, mapError as lt, catchCause as m, isFinite as ma, makeLatch as mi, exponential as mn, make$4 as mo, Scope as mr, isObjectKeyword as ms, matchEffect as mt, acquireUseRelease as n, getOrThrow as na, fiberAwait as ni, useSpan as nn, orElse as no, effectDiscard as nr, isBoolean as ns, logFatal as nt, annotateCurrentSpan as o, map$4 as oa, fiberInterruptAs as oi, withFiber as on, BigInt$1 as oo, mergeAll as or, isNever as os, map as ot, callback as p, isDuration as pa, iterateEager as pi, TaggedClass as pn, isLessThanOrEqualTo as po, unwrap as pr, isObject as ps, matchCauseEffect as pt, fromOption as q, getOrThrow$1 as qa, map$3 as qi, makeDieReason as qn, array as qo, callback$1 as qr, timeout as qt, addFinalizer as r, getOrUndefined as ra, fiberInterrupt as ri, void_ as rn, orElseSome as ro, empty as rr, isError as rs, logInfo as rt, annotateLogs as s, match$3 as sa, fiberJoin as si, withLogSpan as sn, Date$1 as so, mock as sr, isNotNull as ss, mapBothEager as st, acquireRelease as t, failVoid as ta, exitZipRight as ti, updateService as tn, none as to, effectContext as tr, isBigInt as ts, logError as tt, asVoid as u, format as ua, forkUnsafe$1 as ui, yieldNow as un, isGreaterThan as uo, provideMerge as ur, isNull as us, mapErrorEager as ut, catchIf as v, nanos as va, onExit$1 as vi, passthrough as vn, Prototype as vo, forkUnsafe as vr, isUndefined as vs, onExitPrimitive as vt, clockWith as w, Reference as wa, suspend$1 as wi, matchEffect$1 as wn, causeFail as wo, TracerTimingEnabled as wr, constVoid as ws, provide as wt, catchTag as x, toMillis as xa, scopeFinalizerCountUnsafe as xi, doneExitFromCause as xn, PipeInspectableProto as xo, provide$3 as xr, constFalse as xs, orDie as xt, catchNoSuchElement as y, negativeInfinity as ya, onExitPrimitive$1 as yi, spaced as yn, Done$1 as yo, make as yr, isUnknown as ys, onInterrupt as yt, fn as z, flatMap$4 as za, fromIterable as zi, fromReasons as zn, formatJson as zo, isSuccess as zr, serviceOption as zt };
|
|
4756
4757
|
|
|
4757
|
-
//# sourceMappingURL=Effect-
|
|
4758
|
+
//# sourceMappingURL=Effect-BCeySOy1.mjs.map
|