@effect-app/vue-components 4.0.0-beta.7 → 4.0.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/vue-components.es16.js +11 -11
  2. package/dist/vue-components.es17.js +9 -9
  3. package/dist/vue-components.es19.js +2 -2
  4. package/dist/vue-components.es20.js +1 -1
  5. package/dist/vue-components.es21.js +2 -2
  6. package/dist/vue-components.es22.js +2 -2
  7. package/dist/vue-components.es23.js +2 -2
  8. package/dist/vue-components.es25.js +1 -1
  9. package/dist/vue-components.es26.js +2 -2
  10. package/dist/vue-components.es27.js +2 -2
  11. package/dist/vue-components.es28.js +1 -1
  12. package/dist/vue-components.es29.js +1 -1
  13. package/dist/vue-components.es36.js +36 -190
  14. package/dist/vue-components.es37.js +6 -0
  15. package/dist/vue-components.es38.js +81 -36
  16. package/dist/vue-components.es39.js +52 -4
  17. package/dist/vue-components.es40.js +549 -71
  18. package/dist/vue-components.es41.js +36 -47
  19. package/dist/vue-components.es42.js +25 -559
  20. package/dist/vue-components.es43.js +5 -41
  21. package/dist/vue-components.es44.js +34 -21
  22. package/dist/vue-components.es45.js +314 -5
  23. package/dist/vue-components.es46.js +24 -33
  24. package/dist/vue-components.es47.js +4 -314
  25. package/dist/vue-components.es48.js +22 -29
  26. package/dist/vue-components.es49.js +75 -4
  27. package/dist/vue-components.es50.js +97 -22
  28. package/dist/vue-components.es51.js +2 -75
  29. package/dist/vue-components.es52.js +310 -91
  30. package/dist/vue-components.es53.js +64 -2
  31. package/dist/vue-components.es54.js +2 -318
  32. package/dist/vue-components.es55.js +2 -64
  33. package/dist/vue-components.es56.js +111 -2
  34. package/dist/vue-components.es58.js +7 -111
  35. package/dist/vue-components.es59.js +34 -0
  36. package/dist/vue-components.es61.js +187 -27
  37. package/dist/vue-components.es63.js +1 -1
  38. package/dist/vue-components.es64.js +22 -100
  39. package/dist/vue-components.es65.js +5 -2
  40. package/dist/vue-components.es66.js +21 -21
  41. package/dist/vue-components.es67.js +28 -80
  42. package/dist/vue-components.es68.js +22 -12
  43. package/dist/vue-components.es69.js +11 -112
  44. package/dist/vue-components.es7.js +1 -1
  45. package/dist/vue-components.es70.js +5 -3
  46. package/dist/vue-components.es71.js +18 -31
  47. package/dist/vue-components.es72.js +9 -2
  48. package/dist/vue-components.es73.js +31 -2
  49. package/dist/vue-components.es74.js +48 -15
  50. package/dist/vue-components.es75.js +26 -70
  51. package/dist/vue-components.es76.js +101 -15
  52. package/dist/vue-components.es77.js +81 -22
  53. package/dist/vue-components.es78.js +15 -5
  54. package/dist/vue-components.es79.js +32 -21
  55. package/dist/vue-components.es80.js +2 -30
  56. package/dist/vue-components.es81.js +21 -22
  57. package/dist/vue-components.es82.js +12 -12
  58. package/dist/vue-components.es83.js +113 -5
  59. package/dist/vue-components.es84.js +3 -19
  60. package/dist/vue-components.es85.js +2 -9
  61. package/dist/vue-components.es86.js +2 -31
  62. package/dist/vue-components.es87.js +15 -48
  63. package/dist/vue-components.es88.js +70 -26
  64. package/dist/vue-components.es90.js +1 -1
  65. package/dist/vue-components.es92.js +1 -1
  66. package/dist/vue-components.es94.js +1 -1
  67. package/dist/vue-components.es96.js +3 -3
  68. package/dist/vue-components.es97.js +1 -1
  69. package/package.json +3 -3
  70. package/dist/vue-components.es57.js +0 -4
  71. package/dist/vue-components.es60.js +0 -9
@@ -1,85 +1,563 @@
1
- import { hasProperty as b } from "./vue-components.es44.js";
2
- import { symbolRedactable as h, getRedacted as l, redact as j } from "./vue-components.es66.js";
3
- function w(n, i) {
4
- const c = i?.space ?? 0, s = /* @__PURE__ */ new WeakSet(), a = c ? typeof c == "number" ? " ".repeat(c) : c : "", o = (t) => a.repeat(t), g = (t, r) => {
5
- const e = t?.constructor;
6
- return e && e !== Object.prototype.constructor && e.name ? `${e.name}(${r})` : r;
7
- }, $ = (t) => {
1
+ import { union as ie } from "./vue-components.es36.js";
2
+ import { equals as oe, symbol as ce } from "./vue-components.es76.js";
3
+ import { formatJson as Y } from "./vue-components.es38.js";
4
+ import { dual as u, identity as j, constVoid as ue } from "./vue-components.es39.js";
5
+ import { symbol as ae, combine as le, string as he, random as fe } from "./vue-components.es77.js";
6
+ import { some as w, none as L } from "./vue-components.es23.js";
7
+ import { pipeArguments as de } from "./vue-components.es41.js";
8
+ import { hasProperty as pe } from "./vue-components.es42.js";
9
+ import { currentFiberTypeId as I } from "./vue-components.es81.js";
10
+ import { CurrentLogLevel as me, MinimumLogLevel as ge, CurrentStackFrame as Se } from "./vue-components.es82.js";
11
+ import { isFailure as T, succeed as _e, fail as ye } from "./vue-components.es43.js";
12
+ import { Scheduler as C, MixedScheduler as N, MaxOpsBeforeYield as be } from "./vue-components.es49.js";
13
+ import { add as ke, getReferenceUnsafe as ve, make as Ee, empty as F } from "./vue-components.es83.js";
14
+ import { ParentSpanKey as Fe, TracerKey as xe } from "./vue-components.es84.js";
15
+ import { internalCall as g } from "./vue-components.es79.js";
16
+ import { withFiber as Ie, makePrimitive as h, exitSucceed as S, exitFail as D, NoSuchElementError as Ce, args as c, contA as d, makePrimitiveProto as O, exitDie as k, evaluate as a, Yield as f, ExitTypeId as B, isFailReason as $e, exitFailCause as K, contE as x, contAll as v, CauseImpl as V, causeAnnotate as U, StackTraceKey as q, isInterruptReason as z, InterruptorStackTrace as we, ReasonBase as Le, constEmptyAnnotations as Te } from "./vue-components.es52.js";
17
+ import { FiberRuntimeMetricsKey as Oe } from "./vue-components.es85.js";
18
+ import { version as Pe } from "./vue-components.es86.js";
19
+ class Ae extends Le {
20
+ fiberId;
21
+ constructor(t, r = Te) {
22
+ super("Interrupt", r, "Interrupted"), this.fiberId = t;
23
+ }
24
+ toString() {
25
+ return `Interrupt(${this.fiberId})`;
26
+ }
27
+ toJSON() {
28
+ return {
29
+ _tag: "Interrupt",
30
+ fiberId: this.fiberId
31
+ };
32
+ }
33
+ [ce](t) {
34
+ return z(t) && this.fiberId === t.fiberId && this.annotations === t.annotations;
35
+ }
36
+ [ae]() {
37
+ return le(he(`${this._tag}:${this.fiberId}`))(fe(this.annotations));
38
+ }
39
+ }
40
+ const je = (e) => new V([new Ae(e)]), P = (e) => {
41
+ for (let t = 0; t < e.reasons.length; t++) {
42
+ const r = e.reasons[t];
43
+ if (r._tag === "Fail")
44
+ return _e(r.error);
45
+ }
46
+ return ye(e);
47
+ }, Ue = (e) => e.reasons.some(z), Me = /* @__PURE__ */ u(2, (e, t) => {
48
+ if (e.reasons.length === 0)
49
+ return t;
50
+ if (t.reasons.length === 0)
51
+ return e;
52
+ const r = new V(ie(e.reasons, t.reasons));
53
+ return oe(e, r) ? e : r;
54
+ }), Re = (e) => {
55
+ const t = {
56
+ Fail: [],
57
+ Die: [],
58
+ Interrupt: []
59
+ };
60
+ for (let r = 0; r < e.reasons.length; r++)
61
+ t[e.reasons[r]._tag].push(e.reasons[r]);
62
+ return t;
63
+ }, G = (e) => {
64
+ const t = Re(e);
65
+ return t.Fail.length > 0 ? t.Fail[0].error : t.Die.length > 0 ? t.Die[0].defect : t.Interrupt.length > 0 ? new globalThis.Error("All fibers interrupted without error") : new globalThis.Error("Empty cause");
66
+ }, We = (e) => {
67
+ const t = [], r = [];
68
+ if (e.reasons.length === 0) return t;
69
+ const n = Error.stackTraceLimit;
70
+ Error.stackTraceLimit = 1;
71
+ for (const s of e.reasons) {
72
+ if (s._tag === "Interrupt") {
73
+ r.push(s);
74
+ continue;
75
+ }
76
+ t.push($(s._tag === "Die" ? s.defect : s.error, s.annotations));
77
+ }
78
+ if (t.length === 0) {
79
+ const s = new Error("The fiber was interrupted by:");
80
+ s.name = "InterruptCause", s.stack = Be(s, r);
81
+ const i = new globalThis.Error("All fibers interrupted without error", {
82
+ cause: s
83
+ });
84
+ i.name = "InterruptError", i.stack = `${i.name}: ${i.message}`, t.push($(i, r[0].annotations));
85
+ }
86
+ return Error.stackTraceLimit = n, t;
87
+ }, $ = (e, t) => {
88
+ const r = typeof e;
89
+ let n;
90
+ if (e && r === "object") {
91
+ if (n = new globalThis.Error(Ye(e), {
92
+ cause: e.cause ? $(e.cause) : void 0
93
+ }), typeof e.name == "string" && (n.name = e.name), typeof e.stack == "string")
94
+ n.stack = De(e.stack, n, t);
95
+ else {
96
+ const s = `${n.name}: ${n.message}`;
97
+ n.stack = t ? J(s, t) : s;
98
+ }
99
+ for (const s of Object.keys(e))
100
+ s in n || (n[s] = e[s]);
101
+ } else
102
+ n = new globalThis.Error(e ? r === "string" ? e : Y(e) : `Unknown error: ${e}`);
103
+ return n;
104
+ }, Ye = (e) => {
105
+ if (typeof e.message == "string")
106
+ return e.message;
107
+ if (typeof e.toString == "function" && e.toString !== Object.prototype.toString && e.toString !== Array.prototype.toString)
8
108
  try {
9
- return Reflect.ownKeys(t);
109
+ return e.toString();
10
110
  } catch {
11
- return ["[ownKeys threw]"];
12
111
  }
13
- };
14
- function f(t, r = 0) {
15
- if (Array.isArray(t)) {
16
- if (s.has(t)) return m;
17
- if (s.add(t), !a || t.length <= 1) return `[${t.map((u) => f(u, r)).join(",")}]`;
18
- const e = t.map((u) => f(u, r + 1)).join(`,
19
- ` + o(r + 1));
20
- return `[
21
- ${o(r + 1)}${e}
22
- ${o(r)}]`;
112
+ return Y(e);
113
+ }, Ne = /\((.*)\)/g, De = (e, t, r) => {
114
+ const n = `${t.name}: ${t.message}`, s = (e.startsWith(n) ? e.slice(n.length) : e).split(`
115
+ `), i = [n];
116
+ for (let o = 1; o < s.length && !/(?:Generator\.next|~effect\/Effect)/.test(s[o]); o++)
117
+ i.push(s[o]);
118
+ return r ? J(i.join(`
119
+ `), r) : i.join(`
120
+ `);
121
+ }, J = (e, t) => {
122
+ const r = t?.get(q.key);
123
+ return r && (e = `${e}
124
+ ${H(r)}`), e;
125
+ }, Be = (e, t) => {
126
+ const r = [`${e.name}: ${e.message}`];
127
+ for (const n of t) {
128
+ const s = n.fiberId !== void 0 ? `#${n.fiberId}` : "unknown", i = n.annotations.get(we.key);
129
+ r.push(` at fiber (${s})`), i && r.push(H(i));
130
+ }
131
+ return r.join(`
132
+ `);
133
+ }, H = (e) => {
134
+ const t = [];
135
+ let r = e, n = 0;
136
+ for (; r && n < 10; ) {
137
+ const s = r.stack();
138
+ if (s) {
139
+ const i = s.matchAll(Ne);
140
+ let o = !1;
141
+ for (const [, b] of i)
142
+ o = !0, t.push(` at ${r.name} (${b})`);
143
+ o || t.push(` at ${r.name} (${s.replace(/^at /, "")})`);
144
+ } else
145
+ t.push(` at ${r.name}`);
146
+ r = r.parent, n++;
147
+ }
148
+ return t.join(`
149
+ `);
150
+ }, Ut = (e) => We(e).map((t) => t.cause ? `${t.stack} {
151
+ ${Q(t.cause, " ")}
152
+ }` : t.stack).join(`
153
+ `), Q = (e, t) => {
154
+ const r = e.stack.split(`
155
+ `);
156
+ let n = `${t}[cause]: ${r[0]}`;
157
+ for (let s = 1, i = r.length; s < i; s++)
158
+ n += `
159
+ ${t}${r[s]}`;
160
+ return e.cause && (n += ` {
161
+ ${Q(e.cause, `${t} `)}
162
+ ${t}}`), n;
163
+ }, M = `~effect/Fiber/${Pe}`, Ke = {
164
+ _A: j,
165
+ _E: j
166
+ }, Ve = {
167
+ id: 0
168
+ };
169
+ class qe {
170
+ constructor(t, r = !0) {
171
+ this[M] = Ke, this.setServices(t), this.id = ++Ve.id, this.currentOpCount = 0, this.currentLoopCount = 0, this.interruptible = r, this._stack = [], this._observers = [], this._exit = void 0, this._children = void 0, this._interruptedCause = void 0, this._yielded = void 0;
172
+ }
173
+ [M];
174
+ id;
175
+ interruptible;
176
+ currentOpCount;
177
+ currentLoopCount;
178
+ _stack;
179
+ _observers;
180
+ _exit;
181
+ _currentExit;
182
+ _children;
183
+ _interruptedCause;
184
+ _yielded;
185
+ // set in setServices
186
+ services;
187
+ currentScheduler;
188
+ currentTracerContext;
189
+ currentSpan;
190
+ currentLogLevel;
191
+ minimumLogLevel;
192
+ currentStackFrame;
193
+ runtimeMetrics;
194
+ maxOpsBeforeYield;
195
+ getRef(t) {
196
+ return ve(this.services, t);
197
+ }
198
+ addObserver(t) {
199
+ return this._exit ? (t(this._exit), ue) : (this._observers.push(t), () => {
200
+ const r = this._observers.indexOf(t);
201
+ r >= 0 && this._observers.splice(r, 1);
202
+ });
203
+ }
204
+ interruptUnsafe(t, r) {
205
+ if (this._exit)
206
+ return;
207
+ let n = je(t);
208
+ this.currentStackFrame && (n = U(n, Ee(q, this.currentStackFrame))), r && (n = U(n, r)), this._interruptedCause = this._interruptedCause ? Me(this._interruptedCause, n) : n, this.interruptible && this.evaluate(m(this._interruptedCause));
209
+ }
210
+ pollUnsafe() {
211
+ return this._exit;
212
+ }
213
+ evaluate(t) {
214
+ if (this.runtimeMetrics?.recordFiberStart(this.services), this._exit)
215
+ return;
216
+ if (this._yielded !== void 0) {
217
+ const n = this._yielded;
218
+ this._yielded = void 0, n();
23
219
  }
24
- if (t instanceof Date) return d(t);
25
- if (!i?.ignoreToString && b(t, "toString") && typeof t.toString == "function" && t.toString !== Object.prototype.toString && t.toString !== Array.prototype.toString) {
26
- const e = O(t);
27
- return t instanceof Error && t.cause ? `${e} (cause: ${f(t.cause, r)})` : e;
220
+ const r = this.runLoop(t);
221
+ if (r !== f) {
222
+ this._exit = r, this.runtimeMetrics?.recordFiberEnd(this.services, this._exit);
223
+ for (let n = 0; n < this._observers.length; n++)
224
+ this._observers[n](r);
225
+ this._observers.length = 0;
28
226
  }
29
- if (typeof t == "string") return JSON.stringify(t);
30
- if (typeof t == "number" || t == null || typeof t == "boolean" || typeof t == "symbol") return String(t);
31
- if (typeof t == "bigint") return String(t) + "n";
32
- if (typeof t == "object" || typeof t == "function") {
33
- if (s.has(t)) return m;
34
- if (s.add(t), h in t) return w(l(t));
35
- if (Symbol.iterator in t)
36
- return `${t.constructor.name}(${f(Array.from(t), r)})`;
37
- const e = $(t);
38
- if (!a || e.length <= 1) {
39
- const y = `{${e.map((S) => `${p(S)}:${f(t[S], r)}`).join(",")}}`;
40
- return g(t, y);
227
+ }
228
+ runLoop(t) {
229
+ const r = globalThis[I];
230
+ globalThis[I] = this;
231
+ let n = !1, s = t;
232
+ this.currentOpCount = 0;
233
+ const i = ++this.currentLoopCount;
234
+ try {
235
+ for (; ; ) {
236
+ if (this.currentOpCount++, !n && this.currentScheduler.shouldYield(this)) {
237
+ n = !0;
238
+ const o = s;
239
+ s = y(Ge, () => o);
240
+ }
241
+ if (s = this.currentTracerContext ? this.currentTracerContext(s, this) : s[a](this), i !== this.currentLoopCount)
242
+ return f;
243
+ if (s === f) {
244
+ const o = this._yielded;
245
+ return B in o ? (this._yielded = void 0, o) : f;
246
+ }
41
247
  }
42
- const u = `{
43
- ${e.map((y) => `${o(r + 1)}${p(y)}: ${f(t[y], r + 1)}`).join(`,
44
- `)}
45
- ${o(r)}}`;
46
- return g(t, u);
248
+ } catch (o) {
249
+ return pe(s, a) ? this.runLoop(k(o)) : k(`Fiber.runLoop: Not a valid effect: ${String(s)}`);
250
+ } finally {
251
+ globalThis[I] = r;
47
252
  }
48
- return String(t);
49
253
  }
50
- return f(n, 0);
51
- }
52
- const m = "[Circular]";
53
- function p(n) {
54
- return typeof n == "string" ? JSON.stringify(n) : String(n);
55
- }
56
- function J(n) {
57
- return n.map((i) => `[${p(i)}]`).join("");
58
- }
59
- function d(n) {
60
- try {
61
- return n.toISOString();
62
- } catch {
63
- return "Invalid Date";
254
+ getCont(t) {
255
+ for (; ; ) {
256
+ const r = this._stack.pop();
257
+ if (!r) return;
258
+ const n = r[v] && r[v](this);
259
+ if (n)
260
+ return n[t] = n, n;
261
+ if (r[t]) return r;
262
+ }
263
+ }
264
+ yieldWith(t) {
265
+ return this._yielded = t, f;
266
+ }
267
+ children() {
268
+ return this._children ??= /* @__PURE__ */ new Set();
269
+ }
270
+ pipe() {
271
+ return de(this, arguments);
272
+ }
273
+ setServices(t) {
274
+ this.services = t, this.currentScheduler = this.getRef(C), this.currentSpan = t.mapUnsafe.get(Fe), this.currentLogLevel = this.getRef(me), this.minimumLogLevel = this.getRef(ge), this.currentStackFrame = t.mapUnsafe.get(Se.key), this.maxOpsBeforeYield = this.getRef(be), this.runtimeMetrics = t.mapUnsafe.get(Oe);
275
+ const r = t.mapUnsafe.get(xe);
276
+ this.currentTracerContext = r ? r.context : void 0;
277
+ }
278
+ get currentSpanLocal() {
279
+ return this.currentSpan?._tag === "Span" ? this.currentSpan : void 0;
64
280
  }
65
281
  }
66
- function O(n) {
282
+ const l = S, m = K, X = D, R = /* @__PURE__ */ h({
283
+ op: "Sync",
284
+ [a](e) {
285
+ const t = this[c](), r = e.getCont(d);
286
+ return r ? r[d](t, e) : e.yieldWith(S(t));
287
+ }
288
+ }), _ = /* @__PURE__ */ h({
289
+ op: "Suspend",
290
+ [a](e) {
291
+ return this[c]();
292
+ }
293
+ }), ze = /* @__PURE__ */ h({
294
+ op: "Yield",
295
+ [a](e) {
296
+ let t = !1;
297
+ return e.currentScheduler.scheduleTask(() => {
298
+ t || e.evaluate(te);
299
+ }, this[c] ?? 0), e.yieldWith(() => {
300
+ t = !0;
301
+ });
302
+ }
303
+ }), Ge = /* @__PURE__ */ ze(0), Mt = (e) => l(w(e)), Rt = /* @__PURE__ */ l(/* @__PURE__ */ L()), Z = (e) => k(e), Je = (e) => _(() => X(g(e))), Wt = (e) => He(function(t, r) {
304
+ g(() => e(r)).then((n) => t(l(n)), (n) => t(Z(n)));
305
+ }, e.length !== 0), He = /* @__PURE__ */ h({
306
+ op: "Async",
307
+ single: !1,
308
+ [a](e) {
309
+ const t = g(() => this[c][0].bind(e.currentScheduler));
310
+ let r = !1, n = !1;
311
+ const s = this[c][1] ? new AbortController() : void 0, i = t((o) => {
312
+ r || (r = !0, n ? e.evaluate(o) : n = o);
313
+ }, s?.signal);
314
+ return n !== !1 ? n : (n = !0, e._yielded = () => {
315
+ r = !0;
316
+ }, s === void 0 && i === void 0 ? f : (e._stack.push(Qe(() => (r = !0, s?.abort(), i ?? te))), f));
317
+ }
318
+ }), Qe = /* @__PURE__ */ h({
319
+ op: "AsyncFinalizer",
320
+ [v](e) {
321
+ e.interruptible && (e.interruptible = !1, e._stack.push(dt));
322
+ },
323
+ [x](e, t) {
324
+ return Ue(e) ? y(this[c](), () => m(e)) : m(e);
325
+ }
326
+ }), Yt = (e, ...t) => {
327
+ const r = t.length === 0 ? function() {
328
+ return _(() => E(e.apply(this, arguments)));
329
+ } : function() {
330
+ let n = _(() => E(e.apply(this, arguments)));
331
+ for (let s = 0; s < t.length; s++)
332
+ n = t[s](n, ...arguments);
333
+ return n;
334
+ };
335
+ return ee(e.length, r);
336
+ }, ee = (e, t) => Object.defineProperty(t, "length", {
337
+ value: e,
338
+ configurable: !0
339
+ }), Nt = (e, ...t) => ee(e.length, t.length === 0 ? function() {
340
+ return W(() => e.apply(this, arguments));
341
+ } : function() {
342
+ let r = W(() => e.apply(this, arguments));
343
+ for (const n of t)
344
+ r = n(r);
345
+ return r;
346
+ }), W = (e) => {
67
347
  try {
68
- const i = n.toString();
69
- return typeof i == "string" ? i : String(i);
70
- } catch {
71
- return "[toString threw]";
348
+ const t = e();
349
+ let r;
350
+ for (; ; ) {
351
+ const n = t.next(r);
352
+ if (n.done)
353
+ return l(n.value);
354
+ const i = n.value.asEffect(), o = i;
355
+ if (o && o._tag === "Success") {
356
+ r = o.value;
357
+ continue;
358
+ } else {
359
+ if (o && o._tag === "Failure")
360
+ return i;
361
+ {
362
+ let b = !0;
363
+ return _(() => b ? (b = !1, y(i, (se) => E(t, se))) : _(() => E(e())));
364
+ }
365
+ }
366
+ }
367
+ } catch (t) {
368
+ return Z(t);
72
369
  }
73
- }
74
- function K(n, i) {
75
- let c = [];
76
- const s = JSON.stringify(n, (a, o) => typeof o == "object" && o !== null ? c.includes(o) ? void 0 : c.push(o) && j(o) : o, i?.space);
77
- return c = void 0, s;
78
- }
370
+ }, E = /* @__PURE__ */ h({
371
+ op: "Iterator",
372
+ single: !1,
373
+ [d](e, t) {
374
+ const r = this[c][0];
375
+ for (; ; ) {
376
+ const n = r.next(e);
377
+ if (n.done) return l(n.value);
378
+ const s = n.value.asEffect();
379
+ if (p(s)) {
380
+ if (s._tag === "Failure")
381
+ return s;
382
+ } else return t._stack.push(this), s;
383
+ e = s.value;
384
+ }
385
+ },
386
+ [a](e) {
387
+ return this[d](this[c][1], e);
388
+ }
389
+ }), y = /* @__PURE__ */ u(2, (e, t) => {
390
+ const r = Object.create(Xe);
391
+ return r[c] = e, r[d] = t.length !== 1 ? (n) => t(n) : t, r;
392
+ }), Xe = /* @__PURE__ */ O({
393
+ op: "OnSuccess",
394
+ [a](e) {
395
+ return e._stack.push(this), this[c];
396
+ }
397
+ }), p = (e) => B in e, Dt = /* @__PURE__ */ u(2, (e, t) => p(e) ? e._tag === "Success" ? t(e.value) : e : y(e, t)), Ze = /* @__PURE__ */ u(2, (e, t) => y(e, (r) => l(g(() => t(r))))), Bt = /* @__PURE__ */ u(2, (e, t) => p(e) ? tt(e, t) : Ze(e, t)), Kt = /* @__PURE__ */ u(2, (e, t) => p(e) ? rt(e, t) : ot(e, t)), Vt = /* @__PURE__ */ u(2, (e, t) => {
398
+ if (p(e)) {
399
+ if (e._tag === "Success") return e;
400
+ const r = P(e.cause);
401
+ return T(r) ? e : t(r.success);
402
+ }
403
+ return re(e, t);
404
+ }), et = (e) => e._tag === "Success", te = /* @__PURE__ */ S(void 0), tt = /* @__PURE__ */ u(2, (e, t) => e._tag === "Success" ? S(t(e.value)) : e), rt = /* @__PURE__ */ u(2, (e, t) => {
405
+ if (e._tag === "Success") return e;
406
+ const r = P(e.cause);
407
+ return T(r) ? e : D(t(r.success));
408
+ }), qt = (e) => et(e) ? w(e.value) : L(), nt = /* @__PURE__ */ u(2, (e, t) => {
409
+ const r = Object.create(st);
410
+ return r[c] = e, r[x] = t.length !== 1 ? (n) => t(n) : t, r;
411
+ }), st = /* @__PURE__ */ O({
412
+ op: "OnFailure",
413
+ [a](e) {
414
+ return e._stack.push(this), this[c];
415
+ }
416
+ }), it = /* @__PURE__ */ u(3, (e, t, r) => nt(e, (n) => {
417
+ const s = t(n);
418
+ return T(s) ? m(s.failure) : g(() => r(s.success, n));
419
+ })), re = /* @__PURE__ */ u(2, (e, t) => it(e, P, (r) => t(r))), ot = /* @__PURE__ */ u(2, (e, t) => re(e, (r) => Je(() => t(r)))), zt = (e) => lt(e, {
420
+ onFailure: L,
421
+ onSuccess: w
422
+ }), ct = /* @__PURE__ */ u(2, (e, t) => {
423
+ const r = Object.create(ut);
424
+ return r[c] = e, r[d] = t.onSuccess.length !== 1 ? (n) => t.onSuccess(n) : t.onSuccess, r[x] = t.onFailure.length !== 1 ? (n) => t.onFailure(n) : t.onFailure, r;
425
+ }), ut = /* @__PURE__ */ O({
426
+ op: "OnSuccessAndFailure",
427
+ [a](e) {
428
+ return e._stack.push(this), this[c];
429
+ }
430
+ }), at = /* @__PURE__ */ u(2, (e, t) => ct(e, {
431
+ onFailure: (r) => {
432
+ const n = r.reasons.find($e);
433
+ return n ? g(() => t.onFailure(n.error)) : m(r);
434
+ },
435
+ onSuccess: t.onSuccess
436
+ })), lt = /* @__PURE__ */ u(2, (e, t) => at(e, {
437
+ onFailure: (r) => R(() => t.onFailure(r)),
438
+ onSuccess: (r) => R(() => t.onSuccess(r))
439
+ })), Gt = (e) => p(e) ? S(e) : ht(e), ht = /* @__PURE__ */ h({
440
+ op: "Exit",
441
+ [a](e) {
442
+ return e._stack.push(this), this[c];
443
+ },
444
+ [d](e, t, r) {
445
+ return l(r ?? S(e));
446
+ },
447
+ [x](e, t, r) {
448
+ return l(r ?? K(e));
449
+ }
450
+ }), ft = /* @__PURE__ */ h({
451
+ op: "SetInterruptible",
452
+ [v](e) {
453
+ if (e.interruptible = this[c], e._interruptedCause && e.interruptible)
454
+ return () => m(e._interruptedCause);
455
+ }
456
+ }), dt = /* @__PURE__ */ ft(!0), A = (e) => (t, r) => {
457
+ const n = r?.scheduler || !e.mapUnsafe.has(C.key) && new N(), s = new qe(n ? ke(e, C, n) : e, r?.uninterruptible !== !0);
458
+ if (s.evaluate(t), s._exit) return s;
459
+ if (r?.signal)
460
+ if (r.signal.aborted)
461
+ s.interruptUnsafe();
462
+ else {
463
+ const i = () => s.interruptUnsafe();
464
+ r.signal.addEventListener("abort", i, {
465
+ once: !0
466
+ }), s.addObserver(() => r.signal.removeEventListener("abort", i));
467
+ }
468
+ return s;
469
+ }, Jt = /* @__PURE__ */ A(/* @__PURE__ */ F()), pt = (e) => {
470
+ const t = A(e);
471
+ return (r, n) => {
472
+ const s = t(r, n);
473
+ return new Promise((i) => {
474
+ s.addObserver((o) => i(o));
475
+ });
476
+ };
477
+ }, mt = (e) => {
478
+ const t = pt(e);
479
+ return (r, n) => t(r, n).then((s) => {
480
+ if (s._tag === "Failure")
481
+ throw G(s.cause);
482
+ return s.value;
483
+ });
484
+ }, Ht = /* @__PURE__ */ mt(/* @__PURE__ */ F()), ne = (e) => {
485
+ const t = A(e);
486
+ return (r) => {
487
+ if (p(r)) return r;
488
+ const n = new N("sync"), s = t(r, {
489
+ scheduler: n
490
+ });
491
+ return n.flush(), s._exit ?? k(s);
492
+ };
493
+ }, Qt = /* @__PURE__ */ ne(/* @__PURE__ */ F()), gt = (e) => {
494
+ const t = ne(e);
495
+ return (r) => {
496
+ const n = t(r);
497
+ if (n._tag === "Failure") throw G(n.cause);
498
+ return n.value;
499
+ };
500
+ }, Xt = /* @__PURE__ */ gt(/* @__PURE__ */ F()), Zt = /* @__PURE__ */ Ie((e) => {
501
+ const t = e.currentSpanLocal;
502
+ return t ? l(t) : X(new Ce());
503
+ }), St = typeof process == "object" && process !== null && typeof process.stdout == "object" && process.stdout !== null;
504
+ St && process.stdout.isTTY;
79
505
  export {
80
- w as format,
81
- d as formatDate,
82
- K as formatJson,
83
- J as formatPath,
84
- p as formatPropertyKey
506
+ qe as FiberImpl,
507
+ M as FiberTypeId,
508
+ Ae as Interrupt,
509
+ nt as catchCause,
510
+ it as catchCauseFilter,
511
+ Vt as catchEager,
512
+ re as catch_,
513
+ Me as causeCombine,
514
+ je as causeInterrupt,
515
+ Re as causePartition,
516
+ Ut as causePretty,
517
+ $ as causePrettyError,
518
+ We as causePrettyErrors,
519
+ G as causeSquash,
520
+ Zt as currentSpan,
521
+ Z as die,
522
+ p as effectIsExit,
523
+ Gt as exit,
524
+ qt as exitGetSuccess,
525
+ et as exitIsSuccess,
526
+ tt as exitMap,
527
+ rt as exitMapError,
528
+ te as exitVoid,
529
+ X as fail,
530
+ m as failCause,
531
+ Je as failSync,
532
+ P as findError,
533
+ y as flatMap,
534
+ Dt as flatMapEager,
535
+ Yt as fnUntraced,
536
+ Nt as fnUntracedEager,
537
+ Ue as hasInterrupts,
538
+ Ze as map,
539
+ Bt as mapEager,
540
+ ot as mapError,
541
+ Kt as mapErrorEager,
542
+ lt as match,
543
+ ct as matchCauseEffect,
544
+ at as matchEffect,
545
+ zt as option,
546
+ Wt as promise,
547
+ Jt as runFork,
548
+ A as runForkWith,
549
+ Ht as runPromise,
550
+ pt as runPromiseExitWith,
551
+ mt as runPromiseWith,
552
+ Xt as runSync,
553
+ Qt as runSyncExit,
554
+ ne as runSyncExitWith,
555
+ gt as runSyncWith,
556
+ l as succeed,
557
+ Rt as succeedNone,
558
+ Mt as succeedSome,
559
+ _ as suspend,
560
+ R as sync,
561
+ Ge as yieldNow,
562
+ ze as yieldNowWith
85
563
  };