@pie-players/pie-tool-calculator-inline-desmos 0.3.60 → 0.3.62
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/tool-calculator-inline.js +910 -892
- package/package.json +6 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ZIndexLayer as
|
|
1
|
+
import { ZIndexLayer as jr, connectToolRuntimeContext as Lr, toOverlayToolId as Pr } from "@pie-players/pie-assessment-toolkit";
|
|
2
2
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
3
3
|
var _e = {}, A = /* @__PURE__ */ Symbol("uninitialized");
|
|
4
|
-
var Vr = "http://www.w3.org/1999/xhtml", Dr = Array.isArray, Br = Array.prototype.indexOf,
|
|
4
|
+
var Vr = "http://www.w3.org/1999/xhtml", Dr = Array.isArray, Br = Array.prototype.indexOf, ze = Array.prototype.includes, Fr = Array.from, Ue = Object.keys, Ge = Object.defineProperty, se = Object.getOwnPropertyDescriptor, Yr = Object.getOwnPropertyDescriptors, zr = Object.prototype, Ur = Array.prototype, zt = Object.getPrototypeOf, At = Object.isExtensible, Gr = () => {
|
|
5
5
|
};
|
|
6
6
|
function Wr(e) {
|
|
7
7
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Ut() {
|
|
10
10
|
var e, t;
|
|
11
11
|
return {
|
|
12
12
|
promise: new Promise((r, n) => {
|
|
@@ -16,8 +16,8 @@ function zt() {
|
|
|
16
16
|
reject: t
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
var Ni = 1 << 24,
|
|
20
|
-
var
|
|
19
|
+
var Ni = 1 << 24, L = 1024, H = 2048, oe = 4096, dt = 8192, Kr = 16384, vt = 32768, qt = 1 << 25, ht = 65536, Hi = 1 << 17, ji = 1 << 18, me = 1 << 19, Zr = 1 << 20, Oe = 65536, Mt = 1 << 21, Xr = 1 << 22, We = 1 << 23, xe = /* @__PURE__ */ Symbol("$state"), Gt = /* @__PURE__ */ Symbol("legacy props"), Jr = /* @__PURE__ */ Symbol(""), Qr = /* @__PURE__ */ Symbol("proxy path"), Wt = /* @__PURE__ */ Symbol("attributes"), nt = /* @__PURE__ */ Symbol("class"), en = /* @__PURE__ */ Symbol("style"), it = /* @__PURE__ */ Symbol("text");
|
|
20
|
+
var Re = new class extends Error {
|
|
21
21
|
name = "StaleReactionError";
|
|
22
22
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
23
23
|
}(), tn = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
@@ -64,7 +64,7 @@ function _n() {
|
|
|
64
64
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
65
65
|
}
|
|
66
66
|
var $ = !1;
|
|
67
|
-
function
|
|
67
|
+
function ce(e) {
|
|
68
68
|
$ = e;
|
|
69
69
|
}
|
|
70
70
|
var w;
|
|
@@ -73,10 +73,10 @@ function D(e) {
|
|
|
73
73
|
throw Je(), _e;
|
|
74
74
|
return w = e;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function _t() {
|
|
77
77
|
return D(/* @__PURE__ */ J(w));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Ot(e) {
|
|
80
80
|
if ($) {
|
|
81
81
|
if (/* @__PURE__ */ J(w) !== null)
|
|
82
82
|
throw Je(), _e;
|
|
@@ -89,7 +89,7 @@ function pn(e = 1) {
|
|
|
89
89
|
w = r;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Kt(e = !0) {
|
|
93
93
|
for (var t = 0, r = w; ; ) {
|
|
94
94
|
if (r.nodeType === 8) {
|
|
95
95
|
var n = r.data;
|
|
@@ -107,27 +107,27 @@ function gn(e) {
|
|
|
107
107
|
throw Je(), _e;
|
|
108
108
|
return e.data;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Zt(e) {
|
|
111
111
|
return e === this.v;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function yn(e, t) {
|
|
114
114
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
return !
|
|
116
|
+
function Xt(e) {
|
|
117
|
+
return !yn(e, this.v);
|
|
118
118
|
}
|
|
119
119
|
var K = !1, Qe = !1;
|
|
120
|
-
function
|
|
121
|
-
return e.label = t,
|
|
120
|
+
function Rt(e, t) {
|
|
121
|
+
return e.label = t, mn(e.v, t), e;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function mn(e, t) {
|
|
124
124
|
return e?.[Qr]?.(t), e;
|
|
125
125
|
}
|
|
126
126
|
var T = null;
|
|
127
127
|
function pe(e) {
|
|
128
128
|
T = e;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function Jt(e, t = !1, r) {
|
|
131
131
|
T = {
|
|
132
132
|
p: T,
|
|
133
133
|
i: !1,
|
|
@@ -143,7 +143,7 @@ function Xt(e, t = !1, r) {
|
|
|
143
143
|
} : null
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Qt(e) {
|
|
147
147
|
var t = T, r = t.e;
|
|
148
148
|
if (r !== null) {
|
|
149
149
|
t.e = null;
|
|
@@ -151,76 +151,424 @@ function Jt(e) {
|
|
|
151
151
|
}
|
|
152
152
|
return e !== void 0 && (t.x = e), t.i = !0, T = t.p, e ?? {};
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Ce() {
|
|
155
155
|
return !Qe || T !== null && T.l === null;
|
|
156
156
|
}
|
|
157
157
|
var re = [];
|
|
158
|
-
function
|
|
158
|
+
function er() {
|
|
159
159
|
var e = re;
|
|
160
160
|
re = [], Wr(e);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
if (re.length === 0 && !
|
|
162
|
+
function ne(e) {
|
|
163
|
+
if (re.length === 0 && !Te) {
|
|
164
164
|
var t = re;
|
|
165
165
|
queueMicrotask(() => {
|
|
166
|
-
t === re &&
|
|
166
|
+
t === re && er();
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
re.push(e);
|
|
170
170
|
}
|
|
171
171
|
function wn() {
|
|
172
|
-
for (; re.length > 0; )
|
|
172
|
+
for (; re.length > 0; ) er();
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function tr(e) {
|
|
175
175
|
var t = g;
|
|
176
176
|
if (t === null)
|
|
177
|
-
return
|
|
177
|
+
return m.f |= We, e;
|
|
178
178
|
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
179
179
|
throw e;
|
|
180
180
|
te(e, t);
|
|
181
181
|
}
|
|
182
182
|
function te(e, t) {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
if ((t.f &
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
183
|
+
if (!(t !== null && (t.f & 16384) !== 0)) {
|
|
184
|
+
for (; t !== null; ) {
|
|
185
|
+
if ((t.f & 128) !== 0) {
|
|
186
|
+
if ((t.f & 32768) === 0) throw e;
|
|
187
|
+
try {
|
|
188
|
+
t.b.error(e);
|
|
189
|
+
return;
|
|
190
|
+
} catch (r) {
|
|
191
|
+
e = r;
|
|
192
|
+
}
|
|
191
193
|
}
|
|
194
|
+
t = t.parent;
|
|
192
195
|
}
|
|
193
|
-
|
|
196
|
+
throw e;
|
|
194
197
|
}
|
|
195
|
-
throw e;
|
|
196
198
|
}
|
|
197
|
-
var bn = ~(
|
|
199
|
+
var bn = ~(H | oe | L);
|
|
198
200
|
function k(e, t) {
|
|
199
201
|
e.f = e.f & bn | t;
|
|
200
202
|
}
|
|
201
|
-
function
|
|
202
|
-
(e.f & 512) !== 0 || e.deps === null ? k(e,
|
|
203
|
+
function pt(e) {
|
|
204
|
+
(e.f & 512) !== 0 || e.deps === null ? k(e, L) : k(e, oe);
|
|
203
205
|
}
|
|
204
|
-
function
|
|
206
|
+
function rr(e) {
|
|
205
207
|
if (e !== null)
|
|
206
208
|
for (const t of e)
|
|
207
|
-
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^=
|
|
209
|
+
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= Oe, rr(t.deps));
|
|
208
210
|
}
|
|
209
|
-
function
|
|
210
|
-
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e),
|
|
211
|
+
function nr(e, t, r) {
|
|
212
|
+
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), rr(e.deps), k(e, L);
|
|
211
213
|
}
|
|
212
|
-
var $n = !1,
|
|
214
|
+
var $n = !1, je = !1;
|
|
213
215
|
function kn(e) {
|
|
214
|
-
var t =
|
|
216
|
+
var t = je;
|
|
217
|
+
try {
|
|
218
|
+
return je = !1, [e(), je];
|
|
219
|
+
} finally {
|
|
220
|
+
je = t;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
function et(e) {
|
|
224
|
+
var t = m, r = g;
|
|
225
|
+
P(null), Y(null);
|
|
226
|
+
try {
|
|
227
|
+
return e();
|
|
228
|
+
} finally {
|
|
229
|
+
P(t), Y(r);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
function En(e) {
|
|
233
|
+
let t = 0, r = Ie(0), n;
|
|
234
|
+
return () => {
|
|
235
|
+
$t() && (_(r), kt(() => (t === 0 && (n = xt(() => e(() => Se(r)))), t += 1, () => {
|
|
236
|
+
ne(() => {
|
|
237
|
+
t -= 1, t === 0 && (n?.(), n = void 0, Se(r));
|
|
238
|
+
});
|
|
239
|
+
})));
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
var xn = ht | me;
|
|
243
|
+
function Tn(e, t, r, n) {
|
|
244
|
+
new Sn(e, t, r, n);
|
|
245
|
+
}
|
|
246
|
+
var Sn = class {
|
|
247
|
+
parent;
|
|
248
|
+
is_pending = !1;
|
|
249
|
+
transform_error;
|
|
250
|
+
#e;
|
|
251
|
+
#t = $ ? w : null;
|
|
252
|
+
#r;
|
|
253
|
+
#o;
|
|
254
|
+
#i;
|
|
255
|
+
#a = null;
|
|
256
|
+
#n = null;
|
|
257
|
+
#l = null;
|
|
258
|
+
#s = null;
|
|
259
|
+
#_ = 0;
|
|
260
|
+
#f = 0;
|
|
261
|
+
#u = !1;
|
|
262
|
+
#d = /* @__PURE__ */ new Set();
|
|
263
|
+
#p = /* @__PURE__ */ new Set();
|
|
264
|
+
#c = null;
|
|
265
|
+
#m = En(() => (this.#c = Ie(this.#_), () => {
|
|
266
|
+
this.#c = null;
|
|
267
|
+
}));
|
|
268
|
+
constructor(e, t, r, n) {
|
|
269
|
+
this.#e = e, this.#r = t, this.#o = (i) => {
|
|
270
|
+
var s = g;
|
|
271
|
+
s.b = this, s.f |= 128, r(i);
|
|
272
|
+
}, this.parent = g.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), this.#i = yr(() => {
|
|
273
|
+
if ($) {
|
|
274
|
+
const i = this.#t;
|
|
275
|
+
_t();
|
|
276
|
+
const s = i.data === "[!";
|
|
277
|
+
if (i.data.startsWith("[?")) {
|
|
278
|
+
const l = JSON.parse(i.data.slice(2));
|
|
279
|
+
this.#w(l);
|
|
280
|
+
} else s ? this.#$() : this.#g();
|
|
281
|
+
} else this.#v();
|
|
282
|
+
}, xn), $ && (this.#e = w);
|
|
283
|
+
}
|
|
284
|
+
#g() {
|
|
285
|
+
try {
|
|
286
|
+
this.#a = W(() => this.#o(this.#e));
|
|
287
|
+
} catch (e) {
|
|
288
|
+
this.error(e);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
#w(e) {
|
|
292
|
+
const t = this.#r.failed, { reset: r, invoke_onerror: n } = this.#b(e);
|
|
293
|
+
ne(n), t && (this.#l = W(() => {
|
|
294
|
+
t(this.#e, () => e, () => r);
|
|
295
|
+
}));
|
|
296
|
+
}
|
|
297
|
+
#b(e) {
|
|
298
|
+
var t = !1, r = !1;
|
|
299
|
+
const n = () => {
|
|
300
|
+
if (t) {
|
|
301
|
+
_n();
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
t = !0, r && vn(), this.#l !== null && Ae(this.#l, () => {
|
|
305
|
+
this.#l = null;
|
|
306
|
+
}), this.#h(() => {
|
|
307
|
+
this.#v();
|
|
308
|
+
});
|
|
309
|
+
};
|
|
310
|
+
return {
|
|
311
|
+
reset: n,
|
|
312
|
+
invoke_onerror: () => {
|
|
313
|
+
try {
|
|
314
|
+
r = !0, this.#r.onerror?.(e, n), r = !1;
|
|
315
|
+
} catch (s) {
|
|
316
|
+
te(s, this.#i && this.#i.parent);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
#$() {
|
|
322
|
+
const e = this.#r.pending;
|
|
323
|
+
e && (this.is_pending = !0, this.#n = W(() => e(this.#e)), ne(() => {
|
|
324
|
+
var t = this.#s = document.createDocumentFragment(), r = Z();
|
|
325
|
+
t.append(r), this.#a = this.#h(() => W(() => this.#o(r))), this.#f === 0 && (this.#e.before(t), this.#s = null, Ae(this.#n, () => {
|
|
326
|
+
this.#n = null;
|
|
327
|
+
}), this.#y(y));
|
|
328
|
+
}));
|
|
329
|
+
}
|
|
330
|
+
#v() {
|
|
331
|
+
try {
|
|
332
|
+
if (this.is_pending = this.has_pending_snippet(), this.#f = 0, this.#_ = 0, this.#a = W(() => {
|
|
333
|
+
this.#o(this.#e);
|
|
334
|
+
}), this.#f > 0) {
|
|
335
|
+
var e = this.#s = document.createDocumentFragment();
|
|
336
|
+
kr(this.#a, e);
|
|
337
|
+
const t = this.#r.pending;
|
|
338
|
+
this.#n = W(() => t(this.#e));
|
|
339
|
+
} else this.#y(y);
|
|
340
|
+
} catch (t) {
|
|
341
|
+
this.error(t);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
#y(e) {
|
|
345
|
+
this.is_pending = !1, e.transfer_effects(this.#d, this.#p);
|
|
346
|
+
}
|
|
347
|
+
defer_effect(e) {
|
|
348
|
+
nr(e, this.#d, this.#p);
|
|
349
|
+
}
|
|
350
|
+
is_rendered() {
|
|
351
|
+
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
352
|
+
}
|
|
353
|
+
has_pending_snippet() {
|
|
354
|
+
return !!this.#r.pending;
|
|
355
|
+
}
|
|
356
|
+
#h(e) {
|
|
357
|
+
var t = g, r = m, n = T;
|
|
358
|
+
Y(this.#i), P(this.#i), pe(this.#i.ctx);
|
|
359
|
+
try {
|
|
360
|
+
return we.ensure(), e();
|
|
361
|
+
} catch (i) {
|
|
362
|
+
return tr(i), null;
|
|
363
|
+
} finally {
|
|
364
|
+
Y(t), P(r), pe(n);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
#k(e, t) {
|
|
368
|
+
if (!this.has_pending_snippet()) {
|
|
369
|
+
this.parent && this.parent.#k(e, t);
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
this.#f += e, this.#f === 0 && (this.#y(t), this.#n && Ae(this.#n, () => {
|
|
373
|
+
this.#n = null;
|
|
374
|
+
}), this.#s && (this.#e.before(this.#s), this.#s = null));
|
|
375
|
+
}
|
|
376
|
+
update_pending_count(e, t) {
|
|
377
|
+
this.#k(e, t), this.#_ += e, !(!this.#c || this.#u) && (this.#u = !0, ne(() => {
|
|
378
|
+
this.#u = !1, this.#c && Xe(this.#c, this.#_);
|
|
379
|
+
}));
|
|
380
|
+
}
|
|
381
|
+
get_effect_pending() {
|
|
382
|
+
return this.#m(), _(this.#c);
|
|
383
|
+
}
|
|
384
|
+
error(e) {
|
|
385
|
+
if (!this.#r.onerror && !this.#r.failed) throw e;
|
|
386
|
+
y?.is_fork ? (this.#a && y.skip_effect(this.#a), this.#n && y.skip_effect(this.#n), this.#l && y.skip_effect(this.#l), y.oncommit(() => {
|
|
387
|
+
this.#E(e);
|
|
388
|
+
})) : this.#E(e);
|
|
389
|
+
}
|
|
390
|
+
#E(e) {
|
|
391
|
+
this.#a && (C(this.#a), this.#a = null), this.#n && (C(this.#n), this.#n = null), this.#l && (C(this.#l), this.#l = null), $ && (D(this.#t), pn(), D(Kt()));
|
|
392
|
+
let t = this.#r.failed;
|
|
393
|
+
const r = (n) => {
|
|
394
|
+
const { reset: i, invoke_onerror: s } = this.#b(n);
|
|
395
|
+
s(), t && (this.#l = this.#h(() => {
|
|
396
|
+
try {
|
|
397
|
+
return W(() => {
|
|
398
|
+
var l = g;
|
|
399
|
+
l.b = this, l.f |= 128, t(this.#e, () => n, () => i);
|
|
400
|
+
});
|
|
401
|
+
} catch (l) {
|
|
402
|
+
return te(l, this.#i.parent), null;
|
|
403
|
+
}
|
|
404
|
+
}));
|
|
405
|
+
};
|
|
406
|
+
ne(() => {
|
|
407
|
+
var n;
|
|
408
|
+
try {
|
|
409
|
+
n = this.transform_error(e);
|
|
410
|
+
} catch (i) {
|
|
411
|
+
te(i, this.#i && this.#i.parent);
|
|
412
|
+
return;
|
|
413
|
+
}
|
|
414
|
+
n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => te(i, this.#i && this.#i.parent)) : r(n);
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
function An(e, t, r, n) {
|
|
419
|
+
const i = Ce() ? qe : sr;
|
|
420
|
+
var s = e.filter((u) => !u.settled), l = t.map(i);
|
|
421
|
+
if (r.length === 0 && s.length === 0) {
|
|
422
|
+
n(l);
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
var a = g, f = qn(), v = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((u) => u.promise)) : null;
|
|
426
|
+
function p(u) {
|
|
427
|
+
if ((a.f & 16384) === 0) {
|
|
428
|
+
f();
|
|
429
|
+
try {
|
|
430
|
+
n([...l, ...u]);
|
|
431
|
+
} catch (d) {
|
|
432
|
+
te(d, a);
|
|
433
|
+
}
|
|
434
|
+
Ke();
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
var c = ir();
|
|
438
|
+
if (r.length === 0) {
|
|
439
|
+
v.then(() => p([])).finally(c);
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
function o() {
|
|
443
|
+
Promise.all(r.map((u) => /* @__PURE__ */ Mn(u))).then(p).catch((u) => te(u, a)).finally(c);
|
|
444
|
+
}
|
|
445
|
+
v ? v.then(() => {
|
|
446
|
+
f(), o(), Ke();
|
|
447
|
+
}) : o();
|
|
448
|
+
}
|
|
449
|
+
function qn() {
|
|
450
|
+
var e = g, t = m, r = T, n = y;
|
|
451
|
+
if (0) var i;
|
|
452
|
+
return function(l = !0) {
|
|
453
|
+
Y(e), P(t), pe(r), l && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
function Ke(e = !0) {
|
|
457
|
+
Y(null), P(null), pe(null), e && y?.deactivate();
|
|
458
|
+
}
|
|
459
|
+
function ir() {
|
|
460
|
+
var e = g, t = e.b, r = y, n = !!t?.is_rendered();
|
|
461
|
+
return t?.update_pending_count(1, r), r.increment(n, e), () => {
|
|
462
|
+
t?.update_pending_count(-1, r), r.decrement(n, e);
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
// @__NO_SIDE_EFFECTS__
|
|
466
|
+
function qe(e) {
|
|
467
|
+
var t = 2 | H;
|
|
468
|
+
return g !== null && (g.f |= me), {
|
|
469
|
+
ctx: T,
|
|
470
|
+
deps: null,
|
|
471
|
+
effects: null,
|
|
472
|
+
equals: Zt,
|
|
473
|
+
f: t,
|
|
474
|
+
fn: e,
|
|
475
|
+
reactions: null,
|
|
476
|
+
rv: 0,
|
|
477
|
+
v: A,
|
|
478
|
+
wv: 0,
|
|
479
|
+
parent: g,
|
|
480
|
+
ac: null
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
var ke = /* @__PURE__ */ Symbol("obsolete");
|
|
484
|
+
// @__NO_SIDE_EFFECTS__
|
|
485
|
+
function Mn(e, t, r) {
|
|
486
|
+
let n = g;
|
|
487
|
+
n === null && rn();
|
|
488
|
+
var i = void 0, s = Ie(A), l = !m, a = /* @__PURE__ */ new Set();
|
|
489
|
+
return Kn(() => {
|
|
490
|
+
var f = g, v = Ut();
|
|
491
|
+
i = v.promise;
|
|
492
|
+
try {
|
|
493
|
+
Promise.resolve(e()).then(v.resolve, (u) => {
|
|
494
|
+
u !== Re && v.reject(u);
|
|
495
|
+
}).finally(Ke);
|
|
496
|
+
} catch (u) {
|
|
497
|
+
v.reject(u), Ke();
|
|
498
|
+
}
|
|
499
|
+
var p = y;
|
|
500
|
+
if (l) {
|
|
501
|
+
if ((f.f & 32768) !== 0) var c = ir();
|
|
502
|
+
if (n.b?.is_rendered()) p.async_deriveds.get(f)?.reject(ke);
|
|
503
|
+
else for (const u of a.values()) u.reject(ke);
|
|
504
|
+
a.add(v), p.async_deriveds.set(f, v);
|
|
505
|
+
}
|
|
506
|
+
const o = (u, d = void 0) => {
|
|
507
|
+
c?.(), a.delete(v), d !== ke && (p.activate(), d ? (s.f |= We, Xe(s, d)) : ((s.f & 8388608) !== 0 && (s.f ^= We), Xe(s, u)), p.deactivate());
|
|
508
|
+
};
|
|
509
|
+
v.promise.then(o, (u) => o(null, u || "unknown"));
|
|
510
|
+
}), Un(() => {
|
|
511
|
+
for (const f of a) f.reject(ke);
|
|
512
|
+
}), new Promise((f) => {
|
|
513
|
+
function v(p) {
|
|
514
|
+
function c() {
|
|
515
|
+
p === i ? f(s) : v(i);
|
|
516
|
+
}
|
|
517
|
+
p.then(c, c);
|
|
518
|
+
}
|
|
519
|
+
v(i);
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
// @__NO_SIDE_EFFECTS__
|
|
523
|
+
function be(e) {
|
|
524
|
+
const t = /* @__PURE__ */ qe(e);
|
|
525
|
+
return K || Er(t), t;
|
|
526
|
+
}
|
|
527
|
+
// @__NO_SIDE_EFFECTS__
|
|
528
|
+
function sr(e) {
|
|
529
|
+
const t = /* @__PURE__ */ qe(e);
|
|
530
|
+
return t.equals = Xt, t;
|
|
531
|
+
}
|
|
532
|
+
function On(e) {
|
|
533
|
+
var t = e.effects;
|
|
534
|
+
if (t !== null) {
|
|
535
|
+
e.effects = null;
|
|
536
|
+
for (var r = 0; r < t.length; r += 1) C(t[r]);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
function gt(e) {
|
|
540
|
+
var t, r = g, n = e.parent;
|
|
541
|
+
if (!X && n !== null && e.v !== A && (n.f & 24576) !== 0)
|
|
542
|
+
return hn(), e.v;
|
|
543
|
+
Y(n);
|
|
215
544
|
try {
|
|
216
|
-
|
|
545
|
+
e.f &= ~Oe, On(e), t = Ar(e);
|
|
217
546
|
} finally {
|
|
218
|
-
|
|
547
|
+
Y(r);
|
|
548
|
+
}
|
|
549
|
+
return t;
|
|
550
|
+
}
|
|
551
|
+
function ar(e) {
|
|
552
|
+
var t = gt(e);
|
|
553
|
+
if (!e.equals(t) && (e.wv = Tr(), (!y?.is_fork || e.deps === null) && (y !== null ? (y.capture(e, t, !0), st?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
554
|
+
k(e, L);
|
|
555
|
+
return;
|
|
219
556
|
}
|
|
557
|
+
X || (M !== null ? ($t() || y?.is_fork) && M.set(e, t) : pt(e));
|
|
558
|
+
}
|
|
559
|
+
function Rn(e) {
|
|
560
|
+
if (e.effects !== null)
|
|
561
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && et(() => {
|
|
562
|
+
t.ac.abort(Re), t.ac = null;
|
|
563
|
+
}), t.fn !== null && (t.teardown = Gr), Me(t, 0), Et(t));
|
|
564
|
+
}
|
|
565
|
+
function lr(e) {
|
|
566
|
+
if (e.effects !== null)
|
|
567
|
+
for (const t of e.effects) t.teardown && t.fn !== null && ye(t);
|
|
220
568
|
}
|
|
221
|
-
var
|
|
222
|
-
var
|
|
223
|
-
id =
|
|
569
|
+
var Le = null, fe = null, y = null, st = null, M = null, at = null, Te = !1, tt = !1, de = null, Be = null, Ct = 0;
|
|
570
|
+
var Cn = 1, we = class lt {
|
|
571
|
+
id = Cn++;
|
|
224
572
|
#e = !1;
|
|
225
573
|
linked = !0;
|
|
226
574
|
#t = null;
|
|
@@ -234,7 +582,7 @@ var En = 1, we = class at {
|
|
|
234
582
|
#n = /* @__PURE__ */ new Map();
|
|
235
583
|
#l = null;
|
|
236
584
|
#s = [];
|
|
237
|
-
#
|
|
585
|
+
#_ = [];
|
|
238
586
|
#f = /* @__PURE__ */ new Set();
|
|
239
587
|
#u = /* @__PURE__ */ new Set();
|
|
240
588
|
#d = /* @__PURE__ */ new Map();
|
|
@@ -242,9 +590,9 @@ var En = 1, we = class at {
|
|
|
242
590
|
is_fork = !1;
|
|
243
591
|
#c = !1;
|
|
244
592
|
constructor() {
|
|
245
|
-
|
|
593
|
+
fe === null ? Le = fe = this : (fe.#r = this, this.#t = fe), fe = this;
|
|
246
594
|
}
|
|
247
|
-
#
|
|
595
|
+
#m() {
|
|
248
596
|
if (this.is_fork) return !0;
|
|
249
597
|
for (const n of this.#n.keys()) {
|
|
250
598
|
for (var t = n, r = !1; t.parent !== null; ) {
|
|
@@ -269,57 +617,57 @@ var En = 1, we = class at {
|
|
|
269
617
|
if (n) {
|
|
270
618
|
this.#d.delete(t);
|
|
271
619
|
for (var i of n.d)
|
|
272
|
-
k(i,
|
|
620
|
+
k(i, H), r(i);
|
|
273
621
|
for (i of n.m)
|
|
274
|
-
k(i,
|
|
622
|
+
k(i, oe), r(i);
|
|
275
623
|
}
|
|
276
624
|
this.#p.add(t);
|
|
277
625
|
}
|
|
278
626
|
#g() {
|
|
279
|
-
this.#e = !0,
|
|
280
|
-
for (const
|
|
281
|
-
this.#u.delete(
|
|
282
|
-
for (const
|
|
283
|
-
k(
|
|
627
|
+
this.#e = !0, Ct++ > 1e3 && (this.#h(), In());
|
|
628
|
+
for (const f of this.#f)
|
|
629
|
+
this.#u.delete(f), k(f, H), this.schedule(f);
|
|
630
|
+
for (const f of this.#u)
|
|
631
|
+
k(f, oe), this.schedule(f);
|
|
284
632
|
const t = this.#s;
|
|
285
633
|
this.#s = [], this.apply();
|
|
286
|
-
var r =
|
|
287
|
-
for (const
|
|
288
|
-
this.#w(
|
|
289
|
-
} catch (
|
|
290
|
-
throw
|
|
634
|
+
var r = de = [], n = [], i = Be = [];
|
|
635
|
+
for (const f of t) try {
|
|
636
|
+
this.#w(f, r, n);
|
|
637
|
+
} catch (v) {
|
|
638
|
+
throw ur(f), this.#m() || this.discard(), v;
|
|
291
639
|
}
|
|
292
|
-
if (
|
|
293
|
-
var s =
|
|
294
|
-
for (const
|
|
640
|
+
if (y = null, i.length > 0) {
|
|
641
|
+
var s = lt.ensure();
|
|
642
|
+
for (const f of i) s.schedule(f);
|
|
295
643
|
}
|
|
296
|
-
if (
|
|
644
|
+
if (de = null, Be = null, this.#m()) {
|
|
297
645
|
this.#v(n), this.#v(r);
|
|
298
|
-
for (const [
|
|
299
|
-
i.length > 0 &&
|
|
646
|
+
for (const [f, v] of this.#d) fr(f, v);
|
|
647
|
+
i.length > 0 && y.#g();
|
|
300
648
|
return;
|
|
301
649
|
}
|
|
302
|
-
const l = this
|
|
650
|
+
const l = this.#b();
|
|
303
651
|
if (l) {
|
|
304
|
-
this.#v(n), this.#v(r), l
|
|
652
|
+
this.#v(n), this.#v(r), l.#$(this);
|
|
305
653
|
return;
|
|
306
654
|
}
|
|
307
655
|
this.#f.clear(), this.#u.clear();
|
|
308
|
-
for (const
|
|
309
|
-
this.#o.clear(),
|
|
310
|
-
var a =
|
|
311
|
-
if (this.#a === 0 && (this.#s.length === 0 || a !== null) && (this.#
|
|
312
|
-
const
|
|
313
|
-
|
|
656
|
+
for (const f of this.#o) f(this);
|
|
657
|
+
this.#o.clear(), st = this, It(n), It(r), st = null, this.#l?.resolve();
|
|
658
|
+
var a = y;
|
|
659
|
+
if (this.#a === 0 && (this.#s.length === 0 || a !== null) && (this.#h(), K && (this.#y(), y = a)), this.#s.length > 0) if (a !== null) {
|
|
660
|
+
const f = a;
|
|
661
|
+
f.#s.push(...this.#s.filter((v) => !f.#s.includes(v)));
|
|
314
662
|
} else a = this;
|
|
315
663
|
a !== null && a.#g();
|
|
316
664
|
}
|
|
317
665
|
#w(t, r, n) {
|
|
318
|
-
t.f ^=
|
|
666
|
+
t.f ^= L;
|
|
319
667
|
for (var i = t.first; i !== null; ) {
|
|
320
668
|
var s = i.f, l = (s & 96) !== 0;
|
|
321
669
|
if (!(l && (s & 1024) !== 0 || (s & 8192) !== 0 || this.#d.has(i)) && i.fn !== null) {
|
|
322
|
-
l ? i.f ^=
|
|
670
|
+
l ? i.f ^= L : (s & 4) !== 0 ? r.push(i) : K && (s & 16777224) !== 0 ? n.push(i) : Ne(i) && ((s & 16) !== 0 && this.#u.add(i), ye(i));
|
|
323
671
|
var a = i.first;
|
|
324
672
|
if (a !== null) {
|
|
325
673
|
i = a;
|
|
@@ -327,16 +675,16 @@ var En = 1, we = class at {
|
|
|
327
675
|
}
|
|
328
676
|
}
|
|
329
677
|
for (; i !== null; ) {
|
|
330
|
-
var
|
|
331
|
-
if (
|
|
332
|
-
i =
|
|
678
|
+
var f = i.next;
|
|
679
|
+
if (f !== null) {
|
|
680
|
+
i = f;
|
|
333
681
|
break;
|
|
334
682
|
}
|
|
335
683
|
i = i.parent;
|
|
336
684
|
}
|
|
337
685
|
}
|
|
338
686
|
}
|
|
339
|
-
|
|
687
|
+
#b() {
|
|
340
688
|
for (var t = this.#t; t !== null; ) {
|
|
341
689
|
if (!t.is_fork) {
|
|
342
690
|
for (const [r, [, n]] of this.current) if (t.current.has(r) && !n) return t;
|
|
@@ -345,94 +693,97 @@ var En = 1, we = class at {
|
|
|
345
693
|
}
|
|
346
694
|
return null;
|
|
347
695
|
}
|
|
348
|
-
|
|
696
|
+
#$(t) {
|
|
349
697
|
for (const [n, i] of t.current)
|
|
350
698
|
!this.previous.has(n) && t.previous.has(n) && this.previous.set(n, t.previous.get(n)), this.current.set(n, i);
|
|
351
699
|
for (const [n, i] of t.async_deriveds) {
|
|
352
700
|
const s = this.async_deriveds.get(n);
|
|
353
701
|
s && i.promise.then(s.resolve).catch(s.reject);
|
|
354
702
|
}
|
|
355
|
-
this.transfer_effects(t.#f, t.#u);
|
|
703
|
+
t.async_deriveds.clear(), this.transfer_effects(t.#f, t.#u);
|
|
356
704
|
const r = (n) => {
|
|
357
705
|
var i = n.reactions;
|
|
358
|
-
if (i !== null)
|
|
706
|
+
if (i !== null && !((n.f & 2) !== 0 && (n.f & 6144) === 0))
|
|
359
707
|
for (const a of i) {
|
|
360
708
|
var s = a.f;
|
|
361
709
|
if ((s & 2) !== 0) r(a);
|
|
362
710
|
else {
|
|
363
711
|
var l = a;
|
|
364
|
-
s & 4194320 && !this.async_deriveds.has(l) && (this.#u.delete(l), k(l,
|
|
712
|
+
s & 4194320 && !this.async_deriveds.has(l) && (this.#u.delete(l), k(l, H), this.schedule(l));
|
|
365
713
|
}
|
|
366
714
|
}
|
|
367
715
|
};
|
|
368
716
|
for (const n of this.current.keys()) r(n);
|
|
369
|
-
this.oncommit(() => t.discard()), t.#
|
|
717
|
+
this.oncommit(() => t.discard()), t.#h(), y = this, this.#g();
|
|
370
718
|
}
|
|
371
719
|
#v(t) {
|
|
372
|
-
for (var r = 0; r < t.length; r += 1)
|
|
720
|
+
for (var r = 0; r < t.length; r += 1) nr(t[r], this.#f, this.#u);
|
|
373
721
|
}
|
|
374
722
|
capture(t, r, n = !1) {
|
|
375
723
|
t.v !== A && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), M?.set(t, r)), this.is_fork || (t.v = r);
|
|
376
724
|
}
|
|
377
725
|
activate() {
|
|
378
|
-
|
|
726
|
+
y = this;
|
|
379
727
|
}
|
|
380
728
|
deactivate() {
|
|
381
|
-
|
|
729
|
+
y = null, M = null;
|
|
382
730
|
}
|
|
383
731
|
flush() {
|
|
384
732
|
try {
|
|
385
|
-
|
|
733
|
+
tt = !0, y = this, this.#g();
|
|
386
734
|
} finally {
|
|
387
|
-
|
|
735
|
+
Ct = 0, at = null, de = null, Be = null, tt = !1, y = null, M = null, ae.clear();
|
|
388
736
|
}
|
|
389
737
|
}
|
|
390
738
|
discard() {
|
|
391
739
|
for (const t of this.#i) t(this);
|
|
392
|
-
this.#i.clear()
|
|
740
|
+
this.#i.clear();
|
|
741
|
+
for (const t of this.async_deriveds.values()) t.reject(ke);
|
|
742
|
+
this.#h(), this.#l?.resolve();
|
|
393
743
|
}
|
|
394
744
|
register_created_effect(t) {
|
|
395
|
-
this.#
|
|
745
|
+
this.#_.push(t);
|
|
396
746
|
}
|
|
397
|
-
#
|
|
398
|
-
for (let
|
|
399
|
-
var t =
|
|
400
|
-
for (const [
|
|
401
|
-
if (
|
|
402
|
-
var n =
|
|
403
|
-
if (t &&
|
|
747
|
+
#y() {
|
|
748
|
+
for (let c = Le; c !== null; c = c.#r) {
|
|
749
|
+
var t = c.id < this.id, r = [];
|
|
750
|
+
for (const [o, [u, d]] of this.current) {
|
|
751
|
+
if (c.current.has(o)) {
|
|
752
|
+
var n = c.current.get(o)[0];
|
|
753
|
+
if (t && u !== n) c.current.set(o, [u, d]);
|
|
404
754
|
else continue;
|
|
405
755
|
}
|
|
406
|
-
r.push(
|
|
756
|
+
r.push(o);
|
|
407
757
|
}
|
|
408
|
-
if (t) for (const [
|
|
409
|
-
const
|
|
410
|
-
|
|
758
|
+
if (t) for (const [o, u] of this.async_deriveds) {
|
|
759
|
+
const d = c.async_deriveds.get(o);
|
|
760
|
+
d && u.promise.then(d.resolve).catch(d.reject);
|
|
411
761
|
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
762
|
+
var i = [...c.current.keys()].filter((o) => !c.current.get(o)[1]);
|
|
763
|
+
if (!(!c.#e || i.length === 0)) {
|
|
764
|
+
var s = i.filter((o) => !this.current.has(o));
|
|
765
|
+
if (s.length === 0)
|
|
766
|
+
t && c.discard();
|
|
416
767
|
else if (r.length > 0) {
|
|
417
|
-
if (t) for (const
|
|
418
|
-
(
|
|
768
|
+
if (t) for (const o of this.#p) c.unskip_effect(o, (u) => {
|
|
769
|
+
(u.f & 4194320) !== 0 ? c.schedule(u) : c.#v([u]);
|
|
419
770
|
});
|
|
420
|
-
|
|
421
|
-
var
|
|
422
|
-
for (var
|
|
423
|
-
|
|
424
|
-
var
|
|
425
|
-
const
|
|
426
|
-
return
|
|
427
|
-
}).map(([
|
|
428
|
-
if (
|
|
429
|
-
for (const
|
|
430
|
-
if (
|
|
431
|
-
|
|
432
|
-
for (var
|
|
433
|
-
|
|
771
|
+
c.activate();
|
|
772
|
+
var l = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
|
|
773
|
+
for (var f of r) or(f, s, l, a);
|
|
774
|
+
a = /* @__PURE__ */ new Map();
|
|
775
|
+
var v = [...c.current].filter(([o, u]) => {
|
|
776
|
+
const d = this.current.get(o);
|
|
777
|
+
return d ? d[0] !== u[0] || d[1] !== u[1] : !0;
|
|
778
|
+
}).map(([o]) => o);
|
|
779
|
+
if (v.length > 0)
|
|
780
|
+
for (const o of this.#_) (o.f & 155648) === 0 && yt(o, v, a) && ((o.f & 4194320) !== 0 ? (k(o, H), c.schedule(o)) : c.#f.add(o));
|
|
781
|
+
if (c.#s.length > 0 && !c.#c) {
|
|
782
|
+
c.apply();
|
|
783
|
+
for (var p of c.#s) c.#w(p, [], []);
|
|
784
|
+
c.#s = [];
|
|
434
785
|
}
|
|
435
|
-
|
|
786
|
+
c.deactivate();
|
|
436
787
|
}
|
|
437
788
|
}
|
|
438
789
|
}
|
|
@@ -448,7 +799,7 @@ var En = 1, we = class at {
|
|
|
448
799
|
let n = this.#n.get(r) ?? 0;
|
|
449
800
|
n === 1 ? this.#n.delete(r) : this.#n.set(r, n - 1);
|
|
450
801
|
}
|
|
451
|
-
this.#c || (this.#c = !0,
|
|
802
|
+
this.#c || (this.#c = !0, ne(() => {
|
|
452
803
|
this.#c = !1, this.linked && this.flush();
|
|
453
804
|
}));
|
|
454
805
|
}
|
|
@@ -464,16 +815,16 @@ var En = 1, we = class at {
|
|
|
464
815
|
this.#i.add(t);
|
|
465
816
|
}
|
|
466
817
|
settled() {
|
|
467
|
-
return (this.#l ??=
|
|
818
|
+
return (this.#l ??= Ut()).promise;
|
|
468
819
|
}
|
|
469
820
|
static ensure() {
|
|
470
|
-
if (
|
|
471
|
-
const t =
|
|
472
|
-
!
|
|
821
|
+
if (y === null) {
|
|
822
|
+
const t = y = new lt();
|
|
823
|
+
!tt && !Te && ne(() => {
|
|
473
824
|
t.#e || t.flush();
|
|
474
825
|
});
|
|
475
826
|
}
|
|
476
|
-
return
|
|
827
|
+
return y;
|
|
477
828
|
}
|
|
478
829
|
apply() {
|
|
479
830
|
if (!K || !this.is_fork && this.#t === null && this.#r === null) {
|
|
@@ -482,7 +833,7 @@ var En = 1, we = class at {
|
|
|
482
833
|
}
|
|
483
834
|
M = /* @__PURE__ */ new Map();
|
|
484
835
|
for (const [r, [n]] of this.current) M.set(r, n);
|
|
485
|
-
for (let r =
|
|
836
|
+
for (let r = Le; r !== null; r = r.#r)
|
|
486
837
|
if (!(r === this || r.is_fork)) {
|
|
487
838
|
var t = !1;
|
|
488
839
|
if (r.id < this.id) {
|
|
@@ -497,62 +848,62 @@ var En = 1, we = class at {
|
|
|
497
848
|
}
|
|
498
849
|
}
|
|
499
850
|
schedule(t) {
|
|
500
|
-
if (
|
|
851
|
+
if (at = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
501
852
|
t.b.defer_effect(t);
|
|
502
853
|
return;
|
|
503
854
|
}
|
|
504
855
|
for (var r = t; r.parent !== null; ) {
|
|
505
856
|
r = r.parent;
|
|
506
857
|
var n = r.f;
|
|
507
|
-
if (
|
|
858
|
+
if (de !== null && r === g && (K || (m === null || (m.f & 2) === 0) && !$n))
|
|
508
859
|
return;
|
|
509
860
|
if ((n & 96) !== 0) {
|
|
510
861
|
if ((n & 1024) === 0) return;
|
|
511
|
-
r.f ^=
|
|
862
|
+
r.f ^= L;
|
|
512
863
|
}
|
|
513
864
|
}
|
|
514
865
|
this.#s.push(r);
|
|
515
866
|
}
|
|
516
|
-
#
|
|
867
|
+
#h() {
|
|
517
868
|
if (this.linked) {
|
|
518
869
|
var t = this.#t, r = this.#r;
|
|
519
|
-
t === null ?
|
|
870
|
+
t === null ? Le = r : t.#r = r, r === null ? fe = t : r.#t = t, this.linked = !1;
|
|
520
871
|
}
|
|
521
872
|
}
|
|
522
873
|
};
|
|
523
|
-
function
|
|
524
|
-
var t =
|
|
525
|
-
|
|
874
|
+
function ue(e) {
|
|
875
|
+
var t = Te;
|
|
876
|
+
Te = !0;
|
|
526
877
|
try {
|
|
527
878
|
var r;
|
|
528
|
-
for (e && (
|
|
529
|
-
if (wn(),
|
|
530
|
-
|
|
879
|
+
for (e && (y !== null && !y.is_fork && y.flush(), r = e()); ; ) {
|
|
880
|
+
if (wn(), y === null) return r;
|
|
881
|
+
y.flush();
|
|
531
882
|
}
|
|
532
883
|
} finally {
|
|
533
|
-
|
|
884
|
+
Te = t;
|
|
534
885
|
}
|
|
535
886
|
}
|
|
536
|
-
function
|
|
887
|
+
function In() {
|
|
537
888
|
if (0) {
|
|
538
889
|
var e;
|
|
539
|
-
for (const r of
|
|
890
|
+
for (const r of y.current.keys()) for (const [n, i] of r.updated ?? [])
|
|
540
891
|
var t;
|
|
541
892
|
}
|
|
542
893
|
try {
|
|
543
894
|
ln();
|
|
544
895
|
} catch (r) {
|
|
545
|
-
te(r,
|
|
896
|
+
te(r, at);
|
|
546
897
|
}
|
|
547
898
|
}
|
|
548
899
|
var B = null;
|
|
549
|
-
function
|
|
900
|
+
function It(e) {
|
|
550
901
|
var t = e.length;
|
|
551
902
|
if (t !== 0) {
|
|
552
903
|
for (var r = 0; r < t; ) {
|
|
553
904
|
var n = e[r++];
|
|
554
|
-
if ((n.f & 24576) === 0 &&
|
|
555
|
-
|
|
905
|
+
if ((n.f & 24576) === 0 && Ne(n) && (B = /* @__PURE__ */ new Set(), ye(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && wr(n), B?.size > 0)) {
|
|
906
|
+
ae.clear();
|
|
556
907
|
for (const i of B) {
|
|
557
908
|
if ((i.f & 24576) !== 0) continue;
|
|
558
909
|
const s = [i];
|
|
@@ -560,8 +911,8 @@ function Ct(e) {
|
|
|
560
911
|
for (; l !== null; )
|
|
561
912
|
B.has(l) && (B.delete(l), s.push(l)), l = l.parent;
|
|
562
913
|
for (let a = s.length - 1; a >= 0; a--) {
|
|
563
|
-
const
|
|
564
|
-
(
|
|
914
|
+
const f = s[a];
|
|
915
|
+
(f.f & 24576) === 0 && ye(f);
|
|
565
916
|
}
|
|
566
917
|
}
|
|
567
918
|
B.clear();
|
|
@@ -570,374 +921,46 @@ function Ct(e) {
|
|
|
570
921
|
B = null;
|
|
571
922
|
}
|
|
572
923
|
}
|
|
573
|
-
function
|
|
924
|
+
function or(e, t, r, n) {
|
|
574
925
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
575
926
|
for (const i of e.reactions) {
|
|
576
927
|
const s = i.f;
|
|
577
|
-
(s & 2) !== 0 ?
|
|
928
|
+
(s & 2) !== 0 ? or(i, t, r, n) : (s & 4194320) !== 0 && (s & 2048) === 0 && yt(i, t, n) && (k(i, H), mt(i));
|
|
578
929
|
}
|
|
579
930
|
}
|
|
580
|
-
function
|
|
931
|
+
function yt(e, t, r) {
|
|
581
932
|
const n = r.get(e);
|
|
582
933
|
if (n !== void 0) return n;
|
|
583
934
|
if (e.deps !== null) for (const i of e.deps) {
|
|
584
|
-
if (
|
|
585
|
-
if ((i.f & 2) !== 0 &&
|
|
935
|
+
if (ze.call(t, i)) return !0;
|
|
936
|
+
if ((i.f & 2) !== 0 && yt(i, t, r))
|
|
586
937
|
return r.set(i, !0), !0;
|
|
587
938
|
}
|
|
588
939
|
return r.set(e, !1), !1;
|
|
589
940
|
}
|
|
590
|
-
function
|
|
591
|
-
|
|
941
|
+
function mt(e) {
|
|
942
|
+
y.schedule(e);
|
|
592
943
|
}
|
|
593
|
-
function
|
|
944
|
+
function fr(e, t) {
|
|
594
945
|
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
595
|
-
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), k(e,
|
|
946
|
+
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), k(e, L);
|
|
596
947
|
for (var r = e.first; r !== null; )
|
|
597
|
-
|
|
948
|
+
fr(r, t), r = r.next;
|
|
598
949
|
}
|
|
599
950
|
}
|
|
600
|
-
function
|
|
601
|
-
k(e,
|
|
951
|
+
function ur(e) {
|
|
952
|
+
k(e, L);
|
|
602
953
|
for (var t = e.first; t !== null; )
|
|
603
|
-
|
|
604
|
-
}
|
|
605
|
-
function Tn(e) {
|
|
606
|
-
let t = 0, r = Re(0), n;
|
|
607
|
-
return () => {
|
|
608
|
-
bt() && (p(r), $t(() => (t === 0 && (n = Et(() => e(() => Te(r)))), t += 1, () => {
|
|
609
|
-
ve(() => {
|
|
610
|
-
t -= 1, t === 0 && (n?.(), n = void 0, Te(r));
|
|
611
|
-
});
|
|
612
|
-
})));
|
|
613
|
-
};
|
|
614
|
-
}
|
|
615
|
-
var Sn = vt | ye;
|
|
616
|
-
function An(e, t, r, n) {
|
|
617
|
-
new qn(e, t, r, n);
|
|
618
|
-
}
|
|
619
|
-
var qn = class {
|
|
620
|
-
parent;
|
|
621
|
-
is_pending = !1;
|
|
622
|
-
transform_error;
|
|
623
|
-
#e;
|
|
624
|
-
#t = $ ? w : null;
|
|
625
|
-
#r;
|
|
626
|
-
#o;
|
|
627
|
-
#i;
|
|
628
|
-
#a = null;
|
|
629
|
-
#n = null;
|
|
630
|
-
#l = null;
|
|
631
|
-
#s = null;
|
|
632
|
-
#h = 0;
|
|
633
|
-
#f = 0;
|
|
634
|
-
#u = !1;
|
|
635
|
-
#d = /* @__PURE__ */ new Set();
|
|
636
|
-
#p = /* @__PURE__ */ new Set();
|
|
637
|
-
#c = null;
|
|
638
|
-
#y = Tn(() => (this.#c = Re(this.#h), () => {
|
|
639
|
-
this.#c = null;
|
|
640
|
-
}));
|
|
641
|
-
constructor(e, t, r, n) {
|
|
642
|
-
this.#e = e, this.#r = t, this.#o = (i) => {
|
|
643
|
-
var s = g;
|
|
644
|
-
s.b = this, s.f |= 128, r(i);
|
|
645
|
-
}, this.parent = g.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), this.#i = mr(() => {
|
|
646
|
-
if ($) {
|
|
647
|
-
const i = this.#t;
|
|
648
|
-
ht();
|
|
649
|
-
const s = i.data === "[!";
|
|
650
|
-
if (i.data.startsWith("[?")) {
|
|
651
|
-
const l = JSON.parse(i.data.slice(2));
|
|
652
|
-
this.#w(l);
|
|
653
|
-
} else s ? this.#$() : this.#g();
|
|
654
|
-
} else this.#b();
|
|
655
|
-
}, Sn), $ && (this.#e = w);
|
|
656
|
-
}
|
|
657
|
-
#g() {
|
|
658
|
-
try {
|
|
659
|
-
this.#a = W(() => this.#o(this.#e));
|
|
660
|
-
} catch (e) {
|
|
661
|
-
this.error(e);
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
#w(e) {
|
|
665
|
-
const t = this.#r.failed;
|
|
666
|
-
t && (this.#l = W(() => {
|
|
667
|
-
t(this.#e, () => e, () => () => {
|
|
668
|
-
});
|
|
669
|
-
}));
|
|
670
|
-
}
|
|
671
|
-
#$() {
|
|
672
|
-
const e = this.#r.pending;
|
|
673
|
-
e && (this.is_pending = !0, this.#n = W(() => e(this.#e)), ve(() => {
|
|
674
|
-
var t = this.#s = document.createDocumentFragment(), r = Z();
|
|
675
|
-
t.append(r), this.#a = this.#m(() => W(() => this.#o(r))), this.#f === 0 && (this.#e.before(t), this.#s = null, Se(this.#n, () => {
|
|
676
|
-
this.#n = null;
|
|
677
|
-
}), this.#v(m));
|
|
678
|
-
}));
|
|
679
|
-
}
|
|
680
|
-
#b() {
|
|
681
|
-
try {
|
|
682
|
-
if (this.is_pending = this.has_pending_snippet(), this.#f = 0, this.#h = 0, this.#a = W(() => {
|
|
683
|
-
this.#o(this.#e);
|
|
684
|
-
}), this.#f > 0) {
|
|
685
|
-
var e = this.#s = document.createDocumentFragment();
|
|
686
|
-
kr(this.#a, e);
|
|
687
|
-
const t = this.#r.pending;
|
|
688
|
-
this.#n = W(() => t(this.#e));
|
|
689
|
-
} else this.#v(m);
|
|
690
|
-
} catch (t) {
|
|
691
|
-
this.error(t);
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
#v(e) {
|
|
695
|
-
this.is_pending = !1, e.transfer_effects(this.#d, this.#p);
|
|
696
|
-
}
|
|
697
|
-
defer_effect(e) {
|
|
698
|
-
rr(e, this.#d, this.#p);
|
|
699
|
-
}
|
|
700
|
-
is_rendered() {
|
|
701
|
-
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
702
|
-
}
|
|
703
|
-
has_pending_snippet() {
|
|
704
|
-
return !!this.#r.pending;
|
|
705
|
-
}
|
|
706
|
-
#m(e) {
|
|
707
|
-
var t = g, r = y, n = T;
|
|
708
|
-
Y(this.#i), P(this.#i), pe(this.#i.ctx);
|
|
709
|
-
try {
|
|
710
|
-
return we.ensure(), e();
|
|
711
|
-
} catch (i) {
|
|
712
|
-
return er(i), null;
|
|
713
|
-
} finally {
|
|
714
|
-
Y(t), P(r), pe(n);
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
#_(e, t) {
|
|
718
|
-
if (!this.has_pending_snippet()) {
|
|
719
|
-
this.parent && this.parent.#_(e, t);
|
|
720
|
-
return;
|
|
721
|
-
}
|
|
722
|
-
this.#f += e, this.#f === 0 && (this.#v(t), this.#n && Se(this.#n, () => {
|
|
723
|
-
this.#n = null;
|
|
724
|
-
}), this.#s && (this.#e.before(this.#s), this.#s = null));
|
|
725
|
-
}
|
|
726
|
-
update_pending_count(e, t) {
|
|
727
|
-
this.#_(e, t), this.#h += e, !(!this.#c || this.#u) && (this.#u = !0, ve(() => {
|
|
728
|
-
this.#u = !1, this.#c && Ze(this.#c, this.#h);
|
|
729
|
-
}));
|
|
730
|
-
}
|
|
731
|
-
get_effect_pending() {
|
|
732
|
-
return this.#y(), p(this.#c);
|
|
733
|
-
}
|
|
734
|
-
error(e) {
|
|
735
|
-
if (!this.#r.onerror && !this.#r.failed) throw e;
|
|
736
|
-
m?.is_fork ? (this.#a && m.skip_effect(this.#a), this.#n && m.skip_effect(this.#n), this.#l && m.skip_effect(this.#l), m.oncommit(() => {
|
|
737
|
-
this.#k(e);
|
|
738
|
-
})) : this.#k(e);
|
|
739
|
-
}
|
|
740
|
-
#k(e) {
|
|
741
|
-
this.#a && (C(this.#a), this.#a = null), this.#n && (C(this.#n), this.#n = null), this.#l && (C(this.#l), this.#l = null), $ && (D(this.#t), pn(), D(Wt()));
|
|
742
|
-
var t = this.#r.onerror;
|
|
743
|
-
let r = this.#r.failed;
|
|
744
|
-
var n = !1, i = !1;
|
|
745
|
-
const s = () => {
|
|
746
|
-
if (n) {
|
|
747
|
-
_n();
|
|
748
|
-
return;
|
|
749
|
-
}
|
|
750
|
-
n = !0, i && vn(), this.#l !== null && Se(this.#l, () => {
|
|
751
|
-
this.#l = null;
|
|
752
|
-
}), this.#m(() => {
|
|
753
|
-
this.#b();
|
|
754
|
-
});
|
|
755
|
-
}, l = (a) => {
|
|
756
|
-
try {
|
|
757
|
-
i = !0, t?.(a, s), i = !1;
|
|
758
|
-
} catch (o) {
|
|
759
|
-
te(o, this.#i && this.#i.parent);
|
|
760
|
-
}
|
|
761
|
-
r && (this.#l = this.#m(() => {
|
|
762
|
-
try {
|
|
763
|
-
return W(() => {
|
|
764
|
-
var o = g;
|
|
765
|
-
o.b = this, o.f |= 128, r(this.#e, () => a, () => s);
|
|
766
|
-
});
|
|
767
|
-
} catch (o) {
|
|
768
|
-
return te(o, this.#i.parent), null;
|
|
769
|
-
}
|
|
770
|
-
}));
|
|
771
|
-
};
|
|
772
|
-
ve(() => {
|
|
773
|
-
var a;
|
|
774
|
-
try {
|
|
775
|
-
a = this.transform_error(e);
|
|
776
|
-
} catch (o) {
|
|
777
|
-
te(o, this.#i && this.#i.parent);
|
|
778
|
-
return;
|
|
779
|
-
}
|
|
780
|
-
a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(l, (o) => te(o, this.#i && this.#i.parent)) : l(a);
|
|
781
|
-
});
|
|
782
|
-
}
|
|
783
|
-
};
|
|
784
|
-
function Mn(e, t, r, n) {
|
|
785
|
-
const i = Oe() ? Ae : lr;
|
|
786
|
-
var s = e.filter((f) => !f.settled);
|
|
787
|
-
if (r.length === 0 && s.length === 0) {
|
|
788
|
-
n(t.map(i));
|
|
789
|
-
return;
|
|
790
|
-
}
|
|
791
|
-
var l = g, a = On(), o = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((f) => f.promise)) : null;
|
|
792
|
-
function h(f) {
|
|
793
|
-
if ((l.f & 16384) === 0) {
|
|
794
|
-
a();
|
|
795
|
-
try {
|
|
796
|
-
n(f);
|
|
797
|
-
} catch (u) {
|
|
798
|
-
te(u, l);
|
|
799
|
-
}
|
|
800
|
-
We();
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
var d = ar();
|
|
804
|
-
if (r.length === 0) {
|
|
805
|
-
o.then(() => h(t.map(i))).finally(d);
|
|
806
|
-
return;
|
|
807
|
-
}
|
|
808
|
-
function c() {
|
|
809
|
-
Promise.all(r.map((f) => /* @__PURE__ */ Rn(f))).then((f) => h([...t.map(i), ...f])).catch((f) => te(f, l)).finally(d);
|
|
810
|
-
}
|
|
811
|
-
o ? o.then(() => {
|
|
812
|
-
a(), c(), We();
|
|
813
|
-
}) : c();
|
|
954
|
+
ur(t), t = t.next;
|
|
814
955
|
}
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
return function(l = !0) {
|
|
819
|
-
Y(e), P(t), pe(r), l && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
|
|
820
|
-
};
|
|
821
|
-
}
|
|
822
|
-
function We(e = !0) {
|
|
823
|
-
Y(null), P(null), pe(null), e && m?.deactivate();
|
|
824
|
-
}
|
|
825
|
-
function ar() {
|
|
826
|
-
var e = g, t = e.b, r = m, n = !!t?.is_rendered();
|
|
827
|
-
return t?.update_pending_count(1, r), r.increment(n, e), () => {
|
|
828
|
-
t?.update_pending_count(-1, r), r.decrement(n, e);
|
|
829
|
-
};
|
|
830
|
-
}
|
|
831
|
-
// @__NO_SIDE_EFFECTS__
|
|
832
|
-
function Ae(e) {
|
|
833
|
-
var t = 2 | L;
|
|
834
|
-
return g !== null && (g.f |= ye), {
|
|
835
|
-
ctx: T,
|
|
836
|
-
deps: null,
|
|
837
|
-
effects: null,
|
|
838
|
-
equals: Kt,
|
|
839
|
-
f: t,
|
|
840
|
-
fn: e,
|
|
841
|
-
reactions: null,
|
|
842
|
-
rv: 0,
|
|
843
|
-
v: A,
|
|
844
|
-
wv: 0,
|
|
845
|
-
parent: g,
|
|
846
|
-
ac: null
|
|
847
|
-
};
|
|
848
|
-
}
|
|
849
|
-
var Le = /* @__PURE__ */ Symbol("obsolete");
|
|
850
|
-
// @__NO_SIDE_EFFECTS__
|
|
851
|
-
function Rn(e, t, r) {
|
|
852
|
-
let n = g;
|
|
853
|
-
n === null && rn();
|
|
854
|
-
var i = void 0, s = Re(A), l = !y, a = /* @__PURE__ */ new Set();
|
|
855
|
-
return Kn(() => {
|
|
856
|
-
var o = g, h = zt();
|
|
857
|
-
i = h.promise;
|
|
858
|
-
try {
|
|
859
|
-
Promise.resolve(e()).then(h.resolve, (u) => {
|
|
860
|
-
u !== Xe && h.reject(u);
|
|
861
|
-
}).finally(We);
|
|
862
|
-
} catch (u) {
|
|
863
|
-
h.reject(u), We();
|
|
864
|
-
}
|
|
865
|
-
var d = m;
|
|
866
|
-
if (l) {
|
|
867
|
-
if ((o.f & 32768) !== 0) var c = ar();
|
|
868
|
-
if (n.b?.is_rendered()) d.async_deriveds.get(o)?.reject(Le);
|
|
869
|
-
else for (const u of a.values()) u.reject(Le);
|
|
870
|
-
a.add(h), d.async_deriveds.set(o, h);
|
|
871
|
-
}
|
|
872
|
-
const f = (u, v = void 0) => {
|
|
873
|
-
c?.(), a.delete(h), v !== Le && (d.activate(), v ? (s.f |= Ge, Ze(s, v)) : ((s.f & 8388608) !== 0 && (s.f ^= Ge), Ze(s, u)), d.deactivate());
|
|
874
|
-
};
|
|
875
|
-
h.promise.then(f, (u) => f(null, u || "unknown"));
|
|
876
|
-
}), Un(() => {
|
|
877
|
-
for (const o of a) o.reject(Le);
|
|
878
|
-
}), new Promise((o) => {
|
|
879
|
-
function h(d) {
|
|
880
|
-
function c() {
|
|
881
|
-
d === i ? o(s) : h(i);
|
|
882
|
-
}
|
|
883
|
-
d.then(c, c);
|
|
884
|
-
}
|
|
885
|
-
h(i);
|
|
886
|
-
});
|
|
887
|
-
}
|
|
888
|
-
// @__NO_SIDE_EFFECTS__
|
|
889
|
-
function be(e) {
|
|
890
|
-
const t = /* @__PURE__ */ Ae(e);
|
|
891
|
-
return K || Er(t), t;
|
|
892
|
-
}
|
|
893
|
-
// @__NO_SIDE_EFFECTS__
|
|
894
|
-
function lr(e) {
|
|
895
|
-
const t = /* @__PURE__ */ Ae(e);
|
|
896
|
-
return t.equals = Zt, t;
|
|
897
|
-
}
|
|
898
|
-
function Cn(e) {
|
|
899
|
-
var t = e.effects;
|
|
900
|
-
if (t !== null) {
|
|
901
|
-
e.effects = null;
|
|
902
|
-
for (var r = 0; r < t.length; r += 1) C(t[r]);
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
function mt(e) {
|
|
906
|
-
var t, r = g, n = e.parent;
|
|
907
|
-
if (!X && n !== null && e.v !== A && (n.f & 24576) !== 0)
|
|
908
|
-
return hn(), e.v;
|
|
909
|
-
Y(n);
|
|
910
|
-
try {
|
|
911
|
-
e.f &= ~Me, Cn(e), t = Ar(e);
|
|
912
|
-
} finally {
|
|
913
|
-
Y(r);
|
|
914
|
-
}
|
|
915
|
-
return t;
|
|
916
|
-
}
|
|
917
|
-
function or(e) {
|
|
918
|
-
var t = mt(e);
|
|
919
|
-
if (!e.equals(t) && (e.wv = Tr(), (!m?.is_fork || e.deps === null) && (m !== null ? (m.capture(e, t, !0), it?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
920
|
-
k(e, j);
|
|
921
|
-
return;
|
|
922
|
-
}
|
|
923
|
-
X || (M !== null ? (bt() || m?.is_fork) && M.set(e, t) : _t(e));
|
|
924
|
-
}
|
|
925
|
-
function In(e) {
|
|
926
|
-
if (e.effects !== null)
|
|
927
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Xe), t.fn !== null && (t.teardown = Gr), t.ac = null, qe(t, 0), kt(t));
|
|
928
|
-
}
|
|
929
|
-
function fr(e) {
|
|
930
|
-
if (e.effects !== null)
|
|
931
|
-
for (const t of e.effects) t.teardown && t.fn !== null && me(t);
|
|
932
|
-
}
|
|
933
|
-
var Ke = /* @__PURE__ */ new Set(), se = /* @__PURE__ */ new Map();
|
|
934
|
-
var ur = !1;
|
|
935
|
-
function Re(e, t) {
|
|
956
|
+
var Ze = /* @__PURE__ */ new Set(), ae = /* @__PURE__ */ new Map();
|
|
957
|
+
var cr = !1;
|
|
958
|
+
function Ie(e, t) {
|
|
936
959
|
var r = {
|
|
937
960
|
f: 0,
|
|
938
961
|
v: e,
|
|
939
962
|
reactions: null,
|
|
940
|
-
equals:
|
|
963
|
+
equals: Zt,
|
|
941
964
|
rv: 0,
|
|
942
965
|
wv: 0
|
|
943
966
|
};
|
|
@@ -945,128 +968,128 @@ function Re(e, t) {
|
|
|
945
968
|
}
|
|
946
969
|
// @__NO_SIDE_EFFECTS__
|
|
947
970
|
function N(e, t) {
|
|
948
|
-
const r =
|
|
971
|
+
const r = Ie(e, t);
|
|
949
972
|
return Er(r), r;
|
|
950
973
|
}
|
|
951
974
|
// @__NO_SIDE_EFFECTS__
|
|
952
975
|
function Nn(e, t = !1, r = !0) {
|
|
953
|
-
const n =
|
|
954
|
-
return t || (n.equals =
|
|
976
|
+
const n = Ie(e);
|
|
977
|
+
return t || (n.equals = Xt), Qe && r && T !== null && T.l !== null && (T.l.s ??= []).push(n), n;
|
|
955
978
|
}
|
|
956
979
|
function O(e, t, r = !1) {
|
|
957
|
-
|
|
958
|
-
let n = r ?
|
|
959
|
-
return
|
|
980
|
+
m !== null && (!V || (m.f & 131072) !== 0) && Ce() && (m.f & 4325394) !== 0 && (F === null || !F.has(e)) && dn();
|
|
981
|
+
let n = r ? ve(t) : t;
|
|
982
|
+
return Xe(e, n, Be);
|
|
960
983
|
}
|
|
961
|
-
function
|
|
984
|
+
function Xe(e, t, r = null) {
|
|
962
985
|
if (!e.equals(t)) {
|
|
963
|
-
|
|
986
|
+
ae.set(e, X ? t : e.v);
|
|
964
987
|
var n = we.ensure();
|
|
965
988
|
if (n.capture(e, t), (e.f & 2) !== 0) {
|
|
966
989
|
const i = e;
|
|
967
|
-
(e.f & 2048) !== 0 &&
|
|
990
|
+
(e.f & 2048) !== 0 && gt(i), M === null && pt(i);
|
|
968
991
|
}
|
|
969
|
-
e.wv = Tr(),
|
|
992
|
+
e.wv = Tr(), dr(e, H, r), Ce() && g !== null && (g.f & 1024) !== 0 && (g.f & 96) === 0 && (j === null ? ei([e]) : j.push(e)), !n.is_fork && Ze.size > 0 && !cr && Hn();
|
|
970
993
|
}
|
|
971
994
|
return t;
|
|
972
995
|
}
|
|
973
996
|
function Hn() {
|
|
974
|
-
|
|
975
|
-
for (const e of
|
|
976
|
-
(e.f & 1024) !== 0 && k(e,
|
|
997
|
+
cr = !1;
|
|
998
|
+
for (const e of Ze) {
|
|
999
|
+
(e.f & 1024) !== 0 && k(e, oe);
|
|
977
1000
|
let t;
|
|
978
1001
|
try {
|
|
979
|
-
t =
|
|
1002
|
+
t = Ne(e);
|
|
980
1003
|
} catch {
|
|
981
1004
|
t = !0;
|
|
982
1005
|
}
|
|
983
|
-
t &&
|
|
1006
|
+
t && ye(e);
|
|
984
1007
|
}
|
|
985
|
-
|
|
1008
|
+
Ze.clear();
|
|
986
1009
|
}
|
|
987
|
-
function
|
|
1010
|
+
function Se(e) {
|
|
988
1011
|
O(e, e.v + 1);
|
|
989
1012
|
}
|
|
990
|
-
function
|
|
1013
|
+
function dr(e, t, r) {
|
|
991
1014
|
var n = e.reactions;
|
|
992
1015
|
if (n !== null)
|
|
993
|
-
for (var i =
|
|
994
|
-
var a = n[l],
|
|
1016
|
+
for (var i = Ce(), s = n.length, l = 0; l < s; l++) {
|
|
1017
|
+
var a = n[l], f = a.f;
|
|
995
1018
|
if (!(!i && a === g)) {
|
|
996
|
-
var
|
|
997
|
-
if (
|
|
998
|
-
else if ((
|
|
999
|
-
var
|
|
1000
|
-
M?.delete(
|
|
1001
|
-
} else if (
|
|
1019
|
+
var v = (f & H) === 0;
|
|
1020
|
+
if (v && k(a, t), (f & 131072) !== 0) Ze.add(a);
|
|
1021
|
+
else if ((f & 2) !== 0) {
|
|
1022
|
+
var p = a;
|
|
1023
|
+
M?.delete(p), (f & 65536) === 0 && (f & 512 && (g === null || (g.f & 2097152) === 0) && (a.f |= Oe), dr(p, oe, r));
|
|
1024
|
+
} else if (v) {
|
|
1002
1025
|
var c = a;
|
|
1003
|
-
(
|
|
1026
|
+
(f & 16) !== 0 && B !== null && B.add(c), r !== null ? r.push(c) : mt(c);
|
|
1004
1027
|
}
|
|
1005
1028
|
}
|
|
1006
1029
|
}
|
|
1007
1030
|
}
|
|
1008
|
-
var
|
|
1009
|
-
function
|
|
1010
|
-
if (typeof e != "object" || e === null ||
|
|
1011
|
-
const t =
|
|
1031
|
+
var jn = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
1032
|
+
function ve(e) {
|
|
1033
|
+
if (typeof e != "object" || e === null || xe in e) return e;
|
|
1034
|
+
const t = zt(e);
|
|
1012
1035
|
if (t !== zr && t !== Ur) return e;
|
|
1013
|
-
var r = /* @__PURE__ */ new Map(), n = Dr(e), i = /* @__PURE__ */ N(0), s = null, l =
|
|
1014
|
-
if (
|
|
1015
|
-
var
|
|
1016
|
-
P(null),
|
|
1017
|
-
var
|
|
1018
|
-
return P(
|
|
1036
|
+
var r = /* @__PURE__ */ new Map(), n = Dr(e), i = /* @__PURE__ */ N(0), s = null, l = le, a = (c) => {
|
|
1037
|
+
if (le === l) return c();
|
|
1038
|
+
var o = m, u = le;
|
|
1039
|
+
P(null), Pt(l);
|
|
1040
|
+
var d = c();
|
|
1041
|
+
return P(o), Pt(u), d;
|
|
1019
1042
|
};
|
|
1020
1043
|
n && r.set("length", /* @__PURE__ */ N(e.length, s));
|
|
1021
|
-
var
|
|
1022
|
-
let
|
|
1023
|
-
function
|
|
1024
|
-
if (!
|
|
1025
|
-
|
|
1026
|
-
for (const [
|
|
1027
|
-
|
|
1044
|
+
var f = "";
|
|
1045
|
+
let v = !1;
|
|
1046
|
+
function p(c) {
|
|
1047
|
+
if (!v) {
|
|
1048
|
+
v = !0, f = c, Rt(i, `${f} version`);
|
|
1049
|
+
for (const [o, u] of r) Rt(u, Ln(f, o));
|
|
1050
|
+
v = !1;
|
|
1028
1051
|
}
|
|
1029
1052
|
}
|
|
1030
1053
|
return new Proxy(e, {
|
|
1031
|
-
defineProperty(c,
|
|
1054
|
+
defineProperty(c, o, u) {
|
|
1032
1055
|
(!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && un();
|
|
1033
|
-
var
|
|
1034
|
-
return
|
|
1035
|
-
var
|
|
1036
|
-
return r.set(
|
|
1037
|
-
}) : O(
|
|
1056
|
+
var d = r.get(o);
|
|
1057
|
+
return d === void 0 ? a(() => {
|
|
1058
|
+
var h = /* @__PURE__ */ N(u.value, s);
|
|
1059
|
+
return r.set(o, h), h;
|
|
1060
|
+
}) : O(d, u.value, !0), !0;
|
|
1038
1061
|
},
|
|
1039
|
-
deleteProperty(c,
|
|
1040
|
-
var u = r.get(
|
|
1062
|
+
deleteProperty(c, o) {
|
|
1063
|
+
var u = r.get(o);
|
|
1041
1064
|
if (u === void 0) {
|
|
1042
|
-
if (
|
|
1043
|
-
const
|
|
1044
|
-
r.set(
|
|
1065
|
+
if (o in c) {
|
|
1066
|
+
const d = a(() => /* @__PURE__ */ N(A, s));
|
|
1067
|
+
r.set(o, d), Se(i);
|
|
1045
1068
|
}
|
|
1046
1069
|
} else
|
|
1047
|
-
O(u, A),
|
|
1070
|
+
O(u, A), Se(i);
|
|
1048
1071
|
return !0;
|
|
1049
1072
|
},
|
|
1050
|
-
get(c,
|
|
1051
|
-
if (
|
|
1052
|
-
var
|
|
1053
|
-
if (
|
|
1054
|
-
var x = /* @__PURE__ */ N(
|
|
1073
|
+
get(c, o, u) {
|
|
1074
|
+
if (o === xe) return e;
|
|
1075
|
+
var d = r.get(o), h = o in c;
|
|
1076
|
+
if (d === void 0 && (!h || se(c, o)?.writable) && (d = a(() => {
|
|
1077
|
+
var x = /* @__PURE__ */ N(ve(h ? c[o] : A), s);
|
|
1055
1078
|
return x;
|
|
1056
|
-
}), r.set(
|
|
1057
|
-
var b =
|
|
1079
|
+
}), r.set(o, d)), d !== void 0) {
|
|
1080
|
+
var b = _(d);
|
|
1058
1081
|
return b === A ? void 0 : b;
|
|
1059
1082
|
}
|
|
1060
|
-
return Reflect.get(c,
|
|
1083
|
+
return Reflect.get(c, o, u);
|
|
1061
1084
|
},
|
|
1062
|
-
getOwnPropertyDescriptor(c,
|
|
1063
|
-
var u = Reflect.getOwnPropertyDescriptor(c,
|
|
1085
|
+
getOwnPropertyDescriptor(c, o) {
|
|
1086
|
+
var u = Reflect.getOwnPropertyDescriptor(c, o);
|
|
1064
1087
|
if (u && "value" in u) {
|
|
1065
|
-
var
|
|
1066
|
-
|
|
1088
|
+
var d = r.get(o);
|
|
1089
|
+
d && (u.value = _(d));
|
|
1067
1090
|
} else if (u === void 0) {
|
|
1068
|
-
var
|
|
1069
|
-
if (
|
|
1091
|
+
var h = r.get(o), b = h?.v;
|
|
1092
|
+
if (h !== void 0 && b !== A) return {
|
|
1070
1093
|
enumerable: !0,
|
|
1071
1094
|
configurable: !0,
|
|
1072
1095
|
value: b,
|
|
@@ -1075,60 +1098,60 @@ function de(e) {
|
|
|
1075
1098
|
}
|
|
1076
1099
|
return u;
|
|
1077
1100
|
},
|
|
1078
|
-
has(c,
|
|
1079
|
-
if (
|
|
1080
|
-
var u = r.get(
|
|
1081
|
-
return (u !== void 0 || g !== null && (!
|
|
1082
|
-
var
|
|
1083
|
-
return
|
|
1084
|
-
}), r.set(
|
|
1101
|
+
has(c, o) {
|
|
1102
|
+
if (o === xe) return !0;
|
|
1103
|
+
var u = r.get(o), d = u !== void 0 && u.v !== A || Reflect.has(c, o);
|
|
1104
|
+
return (u !== void 0 || g !== null && (!d || se(c, o)?.writable)) && (u === void 0 && (u = a(() => {
|
|
1105
|
+
var h = /* @__PURE__ */ N(d ? ve(c[o]) : A, s);
|
|
1106
|
+
return h;
|
|
1107
|
+
}), r.set(o, u)), _(u) === A) ? !1 : d;
|
|
1085
1108
|
},
|
|
1086
|
-
set(c,
|
|
1087
|
-
var
|
|
1088
|
-
if (n &&
|
|
1109
|
+
set(c, o, u, d) {
|
|
1110
|
+
var h = r.get(o), b = o in c;
|
|
1111
|
+
if (n && o === "length") for (var x = u; x < h.v; x += 1) {
|
|
1089
1112
|
var q = r.get(x + "");
|
|
1090
1113
|
q !== void 0 ? O(q, A) : x in c && (q = a(() => /* @__PURE__ */ N(A, s)), r.set(x + "", q));
|
|
1091
1114
|
}
|
|
1092
|
-
if (
|
|
1093
|
-
(!b ||
|
|
1115
|
+
if (h === void 0)
|
|
1116
|
+
(!b || se(c, o)?.writable) && (h = a(() => /* @__PURE__ */ N(void 0, s)), O(h, ve(u)), r.set(o, h));
|
|
1094
1117
|
else {
|
|
1095
|
-
b =
|
|
1096
|
-
var U = a(() =>
|
|
1097
|
-
O(
|
|
1118
|
+
b = h.v !== A;
|
|
1119
|
+
var U = a(() => ve(u));
|
|
1120
|
+
O(h, U);
|
|
1098
1121
|
}
|
|
1099
|
-
var E = Reflect.getOwnPropertyDescriptor(c,
|
|
1100
|
-
if (E?.set && E.set.call(
|
|
1101
|
-
if (n && typeof
|
|
1102
|
-
var G = r.get("length"), Q = Number(
|
|
1122
|
+
var E = Reflect.getOwnPropertyDescriptor(c, o);
|
|
1123
|
+
if (E?.set && E.set.call(d, u), !b) {
|
|
1124
|
+
if (n && typeof o == "string") {
|
|
1125
|
+
var G = r.get("length"), Q = Number(o);
|
|
1103
1126
|
Number.isInteger(Q) && Q >= G.v && O(G, Q + 1);
|
|
1104
1127
|
}
|
|
1105
|
-
|
|
1128
|
+
Se(i);
|
|
1106
1129
|
}
|
|
1107
1130
|
return !0;
|
|
1108
1131
|
},
|
|
1109
1132
|
ownKeys(c) {
|
|
1110
|
-
|
|
1111
|
-
var
|
|
1112
|
-
var b = r.get(
|
|
1133
|
+
_(i);
|
|
1134
|
+
var o = Reflect.ownKeys(c).filter((h) => {
|
|
1135
|
+
var b = r.get(h);
|
|
1113
1136
|
return b === void 0 || b.v !== A;
|
|
1114
1137
|
});
|
|
1115
|
-
for (var [u,
|
|
1116
|
-
return
|
|
1138
|
+
for (var [u, d] of r) d.v !== A && !(u in c) && o.push(u);
|
|
1139
|
+
return o;
|
|
1117
1140
|
},
|
|
1118
1141
|
setPrototypeOf() {
|
|
1119
1142
|
cn();
|
|
1120
1143
|
}
|
|
1121
1144
|
});
|
|
1122
1145
|
}
|
|
1123
|
-
function
|
|
1124
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
1146
|
+
function Ln(e, t) {
|
|
1147
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : jn.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1125
1148
|
}
|
|
1126
|
-
var
|
|
1127
|
-
function
|
|
1128
|
-
if (
|
|
1129
|
-
|
|
1149
|
+
var Nt, Pn, vr, hr, _r;
|
|
1150
|
+
function ot() {
|
|
1151
|
+
if (Nt === void 0) {
|
|
1152
|
+
Nt = window, Pn = document, vr = /Firefox/.test(navigator.userAgent);
|
|
1130
1153
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1131
|
-
|
|
1154
|
+
hr = se(t, "firstChild").get, _r = se(t, "nextSibling").get, At(e) && (e[nt] = void 0, e[Wt] = null, e[en] = void 0, e.__e = void 0), At(r) && (r[it] = void 0);
|
|
1132
1155
|
}
|
|
1133
1156
|
}
|
|
1134
1157
|
function Z(e = "") {
|
|
@@ -1136,13 +1159,13 @@ function Z(e = "") {
|
|
|
1136
1159
|
}
|
|
1137
1160
|
// @__NO_SIDE_EFFECTS__
|
|
1138
1161
|
function ge(e) {
|
|
1139
|
-
return
|
|
1162
|
+
return hr.call(e);
|
|
1140
1163
|
}
|
|
1141
1164
|
// @__NO_SIDE_EFFECTS__
|
|
1142
1165
|
function J(e) {
|
|
1143
|
-
return
|
|
1166
|
+
return _r.call(e);
|
|
1144
1167
|
}
|
|
1145
|
-
function
|
|
1168
|
+
function Ht(e, t) {
|
|
1146
1169
|
if (!$) return /* @__PURE__ */ ge(e);
|
|
1147
1170
|
var r = /* @__PURE__ */ ge(w);
|
|
1148
1171
|
if (r === null) r = w.appendChild(Z());
|
|
@@ -1150,7 +1173,7 @@ function Nt(e, t) {
|
|
|
1150
1173
|
var n = Z();
|
|
1151
1174
|
return r?.before(n), D(n), n;
|
|
1152
1175
|
}
|
|
1153
|
-
return t &&
|
|
1176
|
+
return t && bt(r), D(r), r;
|
|
1154
1177
|
}
|
|
1155
1178
|
function Vn(e, t = !1) {
|
|
1156
1179
|
if (!$) {
|
|
@@ -1162,7 +1185,7 @@ function Vn(e, t = !1) {
|
|
|
1162
1185
|
var n = Z();
|
|
1163
1186
|
return w?.before(n), D(n), n;
|
|
1164
1187
|
}
|
|
1165
|
-
|
|
1188
|
+
bt(w);
|
|
1166
1189
|
}
|
|
1167
1190
|
return w;
|
|
1168
1191
|
}
|
|
@@ -1176,7 +1199,7 @@ function Dn(e, t = 1, r = !1) {
|
|
|
1176
1199
|
var s = Z();
|
|
1177
1200
|
return n === null ? i?.after(s) : n.before(s), D(s), s;
|
|
1178
1201
|
}
|
|
1179
|
-
|
|
1202
|
+
bt(n);
|
|
1180
1203
|
}
|
|
1181
1204
|
return D(n), n;
|
|
1182
1205
|
}
|
|
@@ -1184,28 +1207,19 @@ function Bn(e) {
|
|
|
1184
1207
|
e.textContent = "";
|
|
1185
1208
|
}
|
|
1186
1209
|
function Fn() {
|
|
1187
|
-
return !K || B !== null ? !1 : (g.f &
|
|
1210
|
+
return !K || B !== null ? !1 : (g.f & vt) !== 0;
|
|
1188
1211
|
}
|
|
1189
|
-
function
|
|
1212
|
+
function wt(e, t, r) {
|
|
1190
1213
|
return t == null || t === "http://www.w3.org/1999/xhtml" ? r ? document.createElement(e, { is: r }) : document.createElement(e) : r ? document.createElementNS(t, e, { is: r }) : document.createElementNS(t, e);
|
|
1191
1214
|
}
|
|
1192
|
-
function
|
|
1215
|
+
function bt(e) {
|
|
1193
1216
|
if (e.nodeValue.length < 65536) return;
|
|
1194
1217
|
let t = e.nextSibling;
|
|
1195
1218
|
for (; t !== null && t.nodeType === 3; )
|
|
1196
1219
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1197
1220
|
}
|
|
1198
|
-
function _r(e) {
|
|
1199
|
-
var t = y, r = g;
|
|
1200
|
-
P(null), Y(null);
|
|
1201
|
-
try {
|
|
1202
|
-
return e();
|
|
1203
|
-
} finally {
|
|
1204
|
-
P(t), Y(r);
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
1221
|
function Yn(e) {
|
|
1208
|
-
g === null && (
|
|
1222
|
+
g === null && (m === null && an(e), sn()), X && nn(e);
|
|
1209
1223
|
}
|
|
1210
1224
|
function zn(e, t) {
|
|
1211
1225
|
var r = t.last;
|
|
@@ -1213,12 +1227,12 @@ function zn(e, t) {
|
|
|
1213
1227
|
}
|
|
1214
1228
|
function z(e, t) {
|
|
1215
1229
|
var r = g;
|
|
1216
|
-
r !== null && (r.f & 8192) !== 0 && (e |=
|
|
1230
|
+
r !== null && (r.f & 8192) !== 0 && (e |= dt);
|
|
1217
1231
|
var n = {
|
|
1218
1232
|
ctx: T,
|
|
1219
1233
|
deps: null,
|
|
1220
1234
|
nodes: null,
|
|
1221
|
-
f: e |
|
|
1235
|
+
f: e | H | 512,
|
|
1222
1236
|
first: null,
|
|
1223
1237
|
fn: t,
|
|
1224
1238
|
last: null,
|
|
@@ -1230,34 +1244,34 @@ function z(e, t) {
|
|
|
1230
1244
|
wv: 0,
|
|
1231
1245
|
ac: null
|
|
1232
1246
|
};
|
|
1233
|
-
|
|
1247
|
+
y?.register_created_effect(n);
|
|
1234
1248
|
var i = n;
|
|
1235
|
-
if ((e & 4) !== 0)
|
|
1249
|
+
if ((e & 4) !== 0) de !== null ? de.push(n) : we.ensure().schedule(n);
|
|
1236
1250
|
else if (t !== null) {
|
|
1237
1251
|
try {
|
|
1238
|
-
|
|
1252
|
+
ye(n);
|
|
1239
1253
|
} catch (l) {
|
|
1240
1254
|
throw C(n), l;
|
|
1241
1255
|
}
|
|
1242
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |=
|
|
1256
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= ht));
|
|
1243
1257
|
}
|
|
1244
|
-
if (i !== null && (i.parent = r, r !== null && zn(i, r),
|
|
1245
|
-
var s =
|
|
1258
|
+
if (i !== null && (i.parent = r, r !== null && zn(i, r), m !== null && (m.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1259
|
+
var s = m;
|
|
1246
1260
|
(s.effects ??= []).push(i);
|
|
1247
1261
|
}
|
|
1248
1262
|
return n;
|
|
1249
1263
|
}
|
|
1250
|
-
function
|
|
1251
|
-
return
|
|
1264
|
+
function $t() {
|
|
1265
|
+
return m !== null && !V;
|
|
1252
1266
|
}
|
|
1253
1267
|
function Un(e) {
|
|
1254
1268
|
const t = z(8, null);
|
|
1255
|
-
return k(t,
|
|
1269
|
+
return k(t, L), t.teardown = e, t;
|
|
1256
1270
|
}
|
|
1257
|
-
function
|
|
1271
|
+
function Pe(e) {
|
|
1258
1272
|
Yn("$effect");
|
|
1259
1273
|
var t = g.f;
|
|
1260
|
-
if (!
|
|
1274
|
+
if (!m && (t & 32) !== 0 && T !== null && !T.i) {
|
|
1261
1275
|
var r = T;
|
|
1262
1276
|
(r.e ??= []).push(e);
|
|
1263
1277
|
} else return pr(e);
|
|
@@ -1267,16 +1281,16 @@ function pr(e) {
|
|
|
1267
1281
|
}
|
|
1268
1282
|
function Gn(e) {
|
|
1269
1283
|
we.ensure();
|
|
1270
|
-
const t = z(64 |
|
|
1284
|
+
const t = z(64 | me, e);
|
|
1271
1285
|
return () => {
|
|
1272
1286
|
C(t);
|
|
1273
1287
|
};
|
|
1274
1288
|
}
|
|
1275
1289
|
function Wn(e) {
|
|
1276
1290
|
we.ensure();
|
|
1277
|
-
const t = z(64 |
|
|
1291
|
+
const t = z(64 | me, e);
|
|
1278
1292
|
return (r = {}) => new Promise((n) => {
|
|
1279
|
-
r.outro ?
|
|
1293
|
+
r.outro ? Ae(t, () => {
|
|
1280
1294
|
C(t), n(void 0);
|
|
1281
1295
|
}) : (C(t), n(void 0));
|
|
1282
1296
|
});
|
|
@@ -1285,27 +1299,29 @@ function gr(e) {
|
|
|
1285
1299
|
return z(4, e);
|
|
1286
1300
|
}
|
|
1287
1301
|
function Kn(e) {
|
|
1288
|
-
return z(Xr |
|
|
1302
|
+
return z(Xr | me, e);
|
|
1289
1303
|
}
|
|
1290
|
-
function
|
|
1304
|
+
function kt(e, t = 0) {
|
|
1291
1305
|
return z(8 | t, e);
|
|
1292
1306
|
}
|
|
1293
1307
|
function Zn(e, t = [], r = [], n = []) {
|
|
1294
|
-
|
|
1295
|
-
z(8, () =>
|
|
1308
|
+
An(n, t, r, (i) => {
|
|
1309
|
+
z(8, () => {
|
|
1310
|
+
e(...i.map(_));
|
|
1311
|
+
});
|
|
1296
1312
|
});
|
|
1297
1313
|
}
|
|
1298
|
-
function
|
|
1314
|
+
function yr(e, t = 0) {
|
|
1299
1315
|
var r = z(16 | t, e);
|
|
1300
1316
|
return r;
|
|
1301
1317
|
}
|
|
1302
1318
|
function W(e) {
|
|
1303
|
-
return z(32 |
|
|
1319
|
+
return z(32 | me, e);
|
|
1304
1320
|
}
|
|
1305
|
-
function
|
|
1321
|
+
function mr(e) {
|
|
1306
1322
|
var t = e.teardown;
|
|
1307
1323
|
if (t !== null) {
|
|
1308
|
-
const r = X, n =
|
|
1324
|
+
const r = X, n = m;
|
|
1309
1325
|
Lt(!0), P(null);
|
|
1310
1326
|
try {
|
|
1311
1327
|
t.call(null);
|
|
@@ -1314,12 +1330,12 @@ function yr(e) {
|
|
|
1314
1330
|
}
|
|
1315
1331
|
}
|
|
1316
1332
|
}
|
|
1317
|
-
function
|
|
1333
|
+
function Et(e, t = !1) {
|
|
1318
1334
|
var r = e.first;
|
|
1319
1335
|
for (e.first = e.last = null; r !== null; ) {
|
|
1320
1336
|
const i = r.ac;
|
|
1321
|
-
i !== null &&
|
|
1322
|
-
i.abort(
|
|
1337
|
+
i !== null && et(() => {
|
|
1338
|
+
i.abort(Re);
|
|
1323
1339
|
});
|
|
1324
1340
|
var n = r.next;
|
|
1325
1341
|
(r.f & 64) !== 0 ? r.parent = null : C(r, t), r = n;
|
|
@@ -1333,10 +1349,10 @@ function Xn(e) {
|
|
|
1333
1349
|
}
|
|
1334
1350
|
function C(e, t = !0) {
|
|
1335
1351
|
var r = !1;
|
|
1336
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (Jn(e.nodes.start, e.nodes.end), r = !0),
|
|
1352
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (Jn(e.nodes.start, e.nodes.end), r = !0), e.f |= qt, Et(e, t && !r), Me(e, 0);
|
|
1337
1353
|
var n = e.nodes && e.nodes.t;
|
|
1338
1354
|
if (n !== null) for (const s of n) s.stop();
|
|
1339
|
-
|
|
1355
|
+
mr(e), e.f ^= qt, e.f |= Kr;
|
|
1340
1356
|
var i = e.parent;
|
|
1341
1357
|
i !== null && i.first !== null && wr(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1342
1358
|
}
|
|
@@ -1350,7 +1366,7 @@ function wr(e) {
|
|
|
1350
1366
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1351
1367
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1352
1368
|
}
|
|
1353
|
-
function
|
|
1369
|
+
function Ae(e, t, r = !0) {
|
|
1354
1370
|
var n = [];
|
|
1355
1371
|
br(e, n, !0);
|
|
1356
1372
|
var i = () => {
|
|
@@ -1363,7 +1379,7 @@ function Se(e, t, r = !0) {
|
|
|
1363
1379
|
}
|
|
1364
1380
|
function br(e, t, r) {
|
|
1365
1381
|
if ((e.f & 8192) === 0) {
|
|
1366
|
-
e.f ^=
|
|
1382
|
+
e.f ^= dt;
|
|
1367
1383
|
var n = e.nodes && e.nodes.t;
|
|
1368
1384
|
if (n !== null)
|
|
1369
1385
|
for (const a of n) (a.is_global || r) && t.push(a);
|
|
@@ -1377,12 +1393,12 @@ function br(e, t, r) {
|
|
|
1377
1393
|
}
|
|
1378
1394
|
}
|
|
1379
1395
|
}
|
|
1380
|
-
function
|
|
1396
|
+
function jt(e) {
|
|
1381
1397
|
$r(e, !0);
|
|
1382
1398
|
}
|
|
1383
1399
|
function $r(e, t) {
|
|
1384
1400
|
if ((e.f & 8192) !== 0) {
|
|
1385
|
-
e.f ^=
|
|
1401
|
+
e.f ^= dt, (e.f & 1024) === 0 && (k(e, H), we.ensure().schedule(e));
|
|
1386
1402
|
for (var r = e.first; r !== null; ) {
|
|
1387
1403
|
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1388
1404
|
$r(r, i ? t : !1), r = n;
|
|
@@ -1399,13 +1415,13 @@ function kr(e, t) {
|
|
|
1399
1415
|
t.append(r), r = i;
|
|
1400
1416
|
}
|
|
1401
1417
|
}
|
|
1402
|
-
var Qn = null,
|
|
1418
|
+
var Qn = null, Fe = !1, X = !1;
|
|
1403
1419
|
function Lt(e) {
|
|
1404
1420
|
X = e;
|
|
1405
1421
|
}
|
|
1406
|
-
var
|
|
1422
|
+
var m = null, V = !1;
|
|
1407
1423
|
function P(e) {
|
|
1408
|
-
|
|
1424
|
+
m = e;
|
|
1409
1425
|
}
|
|
1410
1426
|
var g = null;
|
|
1411
1427
|
function Y(e) {
|
|
@@ -1413,28 +1429,28 @@ function Y(e) {
|
|
|
1413
1429
|
}
|
|
1414
1430
|
var F = null;
|
|
1415
1431
|
function Er(e) {
|
|
1416
|
-
|
|
1432
|
+
m !== null && (!K || (m.f & 2) !== 0) && (F ??= /* @__PURE__ */ new Set()).add(e);
|
|
1417
1433
|
}
|
|
1418
|
-
var R = null, I = 0,
|
|
1434
|
+
var R = null, I = 0, j = null;
|
|
1419
1435
|
function ei(e) {
|
|
1420
|
-
|
|
1436
|
+
j = e;
|
|
1421
1437
|
}
|
|
1422
|
-
var xr = 1,
|
|
1423
|
-
function
|
|
1424
|
-
|
|
1438
|
+
var xr = 1, ie = 0, le = ie;
|
|
1439
|
+
function Pt(e) {
|
|
1440
|
+
le = e;
|
|
1425
1441
|
}
|
|
1426
1442
|
function Tr() {
|
|
1427
1443
|
return ++xr;
|
|
1428
1444
|
}
|
|
1429
|
-
function
|
|
1445
|
+
function Ne(e) {
|
|
1430
1446
|
var t = e.f;
|
|
1431
1447
|
if ((t & 2048) !== 0) return !0;
|
|
1432
|
-
if (t & 2 && (e.f &= ~
|
|
1448
|
+
if (t & 2 && (e.f &= ~Oe), (t & 4096) !== 0) {
|
|
1433
1449
|
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1434
1450
|
var s = r[i];
|
|
1435
|
-
if (
|
|
1451
|
+
if (Ne(s) && ar(s), s.wv > e.wv) return !0;
|
|
1436
1452
|
}
|
|
1437
|
-
(t & 512) !== 0 && M === null && k(e,
|
|
1453
|
+
(t & 512) !== 0 && M === null && k(e, L);
|
|
1438
1454
|
}
|
|
1439
1455
|
return !1;
|
|
1440
1456
|
}
|
|
@@ -1443,37 +1459,37 @@ function Sr(e, t, r = !0) {
|
|
|
1443
1459
|
if (n !== null && !(!K && F !== null && F.has(e)))
|
|
1444
1460
|
for (var i = 0; i < n.length; i++) {
|
|
1445
1461
|
var s = n[i];
|
|
1446
|
-
(s.f & 2) !== 0 ? Sr(s, t, !1) : t === s && (r ? k(s,
|
|
1462
|
+
(s.f & 2) !== 0 ? Sr(s, t, !1) : t === s && (r ? k(s, H) : (s.f & 1024) !== 0 && k(s, oe), mt(s));
|
|
1447
1463
|
}
|
|
1448
1464
|
}
|
|
1449
1465
|
function Ar(e) {
|
|
1450
|
-
var t = R, r = I, n =
|
|
1451
|
-
R = null, I = 0,
|
|
1452
|
-
e.ac.abort(
|
|
1466
|
+
var t = R, r = I, n = j, i = m, s = F, l = T, a = V, f = le, v = e.f;
|
|
1467
|
+
R = null, I = 0, j = null, m = (v & 96) === 0 ? e : null, F = null, pe(e.ctx), V = !1, le = ++ie, e.ac !== null && (et(() => {
|
|
1468
|
+
e.ac.abort(Re);
|
|
1453
1469
|
}), e.ac = null);
|
|
1454
1470
|
try {
|
|
1455
|
-
e.f |=
|
|
1456
|
-
var
|
|
1457
|
-
e.f |=
|
|
1458
|
-
var
|
|
1471
|
+
e.f |= Mt;
|
|
1472
|
+
var p = e.fn, c = p();
|
|
1473
|
+
e.f |= vt;
|
|
1474
|
+
var o = e.deps, u = y?.is_fork;
|
|
1459
1475
|
if (R !== null) {
|
|
1460
|
-
var
|
|
1461
|
-
if (u ||
|
|
1462
|
-
for (
|
|
1463
|
-
else e.deps =
|
|
1464
|
-
if (
|
|
1465
|
-
} else !u &&
|
|
1466
|
-
if (
|
|
1476
|
+
var d;
|
|
1477
|
+
if (u || Me(e, I), o !== null && I > 0)
|
|
1478
|
+
for (o.length = I + R.length, d = 0; d < R.length; d++) o[I + d] = R[d];
|
|
1479
|
+
else e.deps = o = R;
|
|
1480
|
+
if ($t() && (e.f & 512) !== 0) for (d = I; d < o.length; d++) (o[d].reactions ??= []).push(e);
|
|
1481
|
+
} else !u && o !== null && I < o.length && (Me(e, I), o.length = I);
|
|
1482
|
+
if (Ce() && j !== null && !V && o !== null && (e.f & 6146) === 0) for (d = 0; d < j.length; d++) Sr(j[d], e);
|
|
1467
1483
|
if (i !== null && i !== e) {
|
|
1468
|
-
if (
|
|
1469
|
-
if (t !== null) for (const
|
|
1470
|
-
|
|
1484
|
+
if (ie++, i.deps !== null) for (let h = 0; h < r; h += 1) i.deps[h].rv = ie;
|
|
1485
|
+
if (t !== null) for (const h of t) h.rv = ie;
|
|
1486
|
+
j !== null && (n === null ? n = j : n.push(...j));
|
|
1471
1487
|
}
|
|
1472
|
-
return (e.f & 8388608) !== 0 && (e.f ^=
|
|
1473
|
-
} catch (
|
|
1474
|
-
return
|
|
1488
|
+
return (e.f & 8388608) !== 0 && (e.f ^= We), c;
|
|
1489
|
+
} catch (h) {
|
|
1490
|
+
return tr(h);
|
|
1475
1491
|
} finally {
|
|
1476
|
-
e.f ^=
|
|
1492
|
+
e.f ^= Mt, R = t, I = r, j = n, m = i, F = s, pe(l), V = a, le = f;
|
|
1477
1493
|
}
|
|
1478
1494
|
}
|
|
1479
1495
|
function ti(e, t) {
|
|
@@ -1485,62 +1501,64 @@ function ti(e, t) {
|
|
|
1485
1501
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1486
1502
|
}
|
|
1487
1503
|
}
|
|
1488
|
-
if (r === null && (t.f & 2) !== 0 && (R === null || !
|
|
1504
|
+
if (r === null && (t.f & 2) !== 0 && (R === null || !ze.call(R, t))) {
|
|
1489
1505
|
var s = t;
|
|
1490
|
-
(s.f & 512) !== 0 && (s.f ^= 512, s.f &= ~
|
|
1506
|
+
(s.f & 512) !== 0 && (s.f ^= 512, s.f &= ~Oe), s.v !== A && pt(s), s.ac !== null && et(() => {
|
|
1507
|
+
s.ac.abort(Re), s.ac = null, k(s, H);
|
|
1508
|
+
}), Rn(s), Me(s, 0);
|
|
1491
1509
|
}
|
|
1492
1510
|
}
|
|
1493
|
-
function
|
|
1511
|
+
function Me(e, t) {
|
|
1494
1512
|
var r = e.deps;
|
|
1495
1513
|
if (r !== null)
|
|
1496
1514
|
for (var n = t; n < r.length; n++) ti(e, r[n]);
|
|
1497
1515
|
}
|
|
1498
|
-
function
|
|
1516
|
+
function ye(e) {
|
|
1499
1517
|
var t = e.f;
|
|
1500
1518
|
if ((t & 16384) === 0) {
|
|
1501
|
-
k(e,
|
|
1502
|
-
var r = g, n =
|
|
1503
|
-
if (g = e,
|
|
1519
|
+
k(e, L);
|
|
1520
|
+
var r = g, n = Fe;
|
|
1521
|
+
if (g = e, Fe = (t & 96) === 0, 0)
|
|
1504
1522
|
var i, s;
|
|
1505
1523
|
try {
|
|
1506
|
-
(t & 16777232) !== 0 ? Xn(e) :
|
|
1524
|
+
(t & 16777232) !== 0 ? Xn(e) : Et(e), mr(e);
|
|
1507
1525
|
var l = Ar(e);
|
|
1508
1526
|
if (e.teardown = typeof l == "function" ? l : null, e.wv = xr, 0)
|
|
1509
1527
|
for (var a of e.deps) ;
|
|
1510
1528
|
} finally {
|
|
1511
|
-
|
|
1529
|
+
Fe = n, g = r;
|
|
1512
1530
|
}
|
|
1513
1531
|
}
|
|
1514
1532
|
}
|
|
1515
|
-
function
|
|
1533
|
+
function _(e) {
|
|
1516
1534
|
var t = (e.f & 2) !== 0;
|
|
1517
|
-
if (Qn?.add(e),
|
|
1518
|
-
var r =
|
|
1519
|
-
if ((
|
|
1520
|
-
e.rv <
|
|
1535
|
+
if (Qn?.add(e), m !== null && !V && !(g !== null && (g.f & 16384) !== 0) && (F === null || !F.has(e))) {
|
|
1536
|
+
var r = m.deps;
|
|
1537
|
+
if ((m.f & 2097152) !== 0)
|
|
1538
|
+
e.rv < ie && (e.rv = ie, R === null && r !== null && r[I] === e ? I++ : R === null ? R = [e] : R.push(e));
|
|
1521
1539
|
else {
|
|
1522
|
-
|
|
1540
|
+
m.deps ??= [], ze.call(m.deps, e) || m.deps.push(e);
|
|
1523
1541
|
var n = e.reactions;
|
|
1524
|
-
n === null ? e.reactions = [
|
|
1542
|
+
n === null ? e.reactions = [m] : ze.call(n, m) || n.push(m);
|
|
1525
1543
|
}
|
|
1526
1544
|
}
|
|
1527
1545
|
if (0) {
|
|
1528
|
-
if (!V && reactivity_loss_tracker && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1546
|
+
if (!V && reactivity_loss_tracker && y === null && st === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1529
1547
|
var i;
|
|
1530
|
-
if (tracing_mode_flag && !V && tracing_expressions !== null &&
|
|
1548
|
+
if (tracing_mode_flag && !V && tracing_expressions !== null && m !== null && tracing_expressions.reaction === m && !e.trace) {
|
|
1531
1549
|
if (i)
|
|
1532
1550
|
var s, l;
|
|
1533
1551
|
}
|
|
1534
1552
|
}
|
|
1535
|
-
if (X &&
|
|
1553
|
+
if (X && ae.has(e)) return ae.get(e);
|
|
1536
1554
|
if (t) {
|
|
1537
1555
|
var a = e;
|
|
1538
1556
|
if (X) {
|
|
1539
|
-
var
|
|
1540
|
-
return ((a.f & 1024) === 0 && a.reactions !== null || Mr(a)) && (
|
|
1557
|
+
var f = a.v;
|
|
1558
|
+
return ((a.f & 1024) === 0 && a.reactions !== null || Mr(a)) && (f = gt(a)), ae.set(a, f), f;
|
|
1541
1559
|
}
|
|
1542
|
-
var
|
|
1543
|
-
|
|
1560
|
+
var v = (a.f & 512) === 0 && !V && m !== null && (Fe || (m.f & 512) !== 0), p = (a.f & vt) === 0;
|
|
1561
|
+
Ne(a) && (v && (a.f |= 512), ar(a)), v && !p && (lr(a), qr(a));
|
|
1544
1562
|
}
|
|
1545
1563
|
if (M?.has(e)) return M.get(e);
|
|
1546
1564
|
if ((e.f & 8388608) !== 0) throw e.v;
|
|
@@ -1549,16 +1567,16 @@ function p(e) {
|
|
|
1549
1567
|
function qr(e) {
|
|
1550
1568
|
if (e.f |= 512, e.deps !== null)
|
|
1551
1569
|
for (const t of e.deps)
|
|
1552
|
-
(t.reactions ??= []).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (
|
|
1570
|
+
(t.reactions ??= []).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (lr(t), qr(t));
|
|
1553
1571
|
}
|
|
1554
1572
|
function Mr(e) {
|
|
1555
1573
|
if (e.v === A) return !0;
|
|
1556
1574
|
if (e.deps === null) return !1;
|
|
1557
1575
|
for (const t of e.deps)
|
|
1558
|
-
if (
|
|
1576
|
+
if (ae.has(t) || (t.f & 2) !== 0 && Mr(t)) return !0;
|
|
1559
1577
|
return !1;
|
|
1560
1578
|
}
|
|
1561
|
-
function
|
|
1579
|
+
function xt(e) {
|
|
1562
1580
|
var t = V;
|
|
1563
1581
|
try {
|
|
1564
1582
|
return V = !0, e();
|
|
@@ -1566,57 +1584,57 @@ function Et(e) {
|
|
|
1566
1584
|
V = t;
|
|
1567
1585
|
}
|
|
1568
1586
|
}
|
|
1569
|
-
var
|
|
1587
|
+
var Ee = /* @__PURE__ */ Symbol("events"), Or = /* @__PURE__ */ new Set(), ft = /* @__PURE__ */ new Set();
|
|
1570
1588
|
function ri(e, t, r) {
|
|
1571
|
-
(t[
|
|
1589
|
+
(t[Ee] ??= {})[e] = r;
|
|
1572
1590
|
}
|
|
1573
1591
|
function ni(e) {
|
|
1574
1592
|
for (var t = 0; t < e.length; t++) Or.add(e[t]);
|
|
1575
|
-
for (var r of
|
|
1593
|
+
for (var r of ft) r(e);
|
|
1576
1594
|
}
|
|
1577
|
-
var
|
|
1578
|
-
function
|
|
1595
|
+
var Vt = null;
|
|
1596
|
+
function Dt(e) {
|
|
1579
1597
|
var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], s = i[0] || e.target;
|
|
1580
|
-
|
|
1581
|
-
var l = 0, a =
|
|
1598
|
+
Vt = e;
|
|
1599
|
+
var l = 0, a = Vt === e && e[Ee];
|
|
1582
1600
|
if (a) {
|
|
1583
|
-
var
|
|
1584
|
-
if (
|
|
1585
|
-
e[
|
|
1601
|
+
var f = i.indexOf(a);
|
|
1602
|
+
if (f !== -1 && (t === document || t === window)) {
|
|
1603
|
+
e[Ee] = t;
|
|
1586
1604
|
return;
|
|
1587
1605
|
}
|
|
1588
|
-
var
|
|
1589
|
-
if (
|
|
1590
|
-
|
|
1606
|
+
var v = i.indexOf(t);
|
|
1607
|
+
if (v === -1) return;
|
|
1608
|
+
f <= v && (l = f);
|
|
1591
1609
|
}
|
|
1592
1610
|
if (s = i[l] || e.target, s !== t) {
|
|
1593
|
-
|
|
1611
|
+
Ge(e, "currentTarget", {
|
|
1594
1612
|
configurable: !0,
|
|
1595
1613
|
get() {
|
|
1596
1614
|
return s || r;
|
|
1597
1615
|
}
|
|
1598
1616
|
});
|
|
1599
|
-
var
|
|
1617
|
+
var p = m, c = g;
|
|
1600
1618
|
P(null), Y(null);
|
|
1601
1619
|
try {
|
|
1602
|
-
for (var
|
|
1620
|
+
for (var o, u = []; s !== null && s !== t; ) {
|
|
1603
1621
|
try {
|
|
1604
|
-
var
|
|
1605
|
-
|
|
1606
|
-
} catch (
|
|
1607
|
-
|
|
1622
|
+
var d = s[Ee]?.[n];
|
|
1623
|
+
d != null && (!s.disabled || e.target === s) && d.call(s, e);
|
|
1624
|
+
} catch (h) {
|
|
1625
|
+
o ? u.push(h) : o = h;
|
|
1608
1626
|
}
|
|
1609
1627
|
if (e.cancelBubble) break;
|
|
1610
1628
|
l++, s = l < i.length ? i[l] : null;
|
|
1611
1629
|
}
|
|
1612
|
-
if (
|
|
1613
|
-
for (let
|
|
1614
|
-
throw
|
|
1630
|
+
if (o) {
|
|
1631
|
+
for (let h of u) queueMicrotask(() => {
|
|
1632
|
+
throw h;
|
|
1615
1633
|
});
|
|
1616
|
-
throw
|
|
1634
|
+
throw o;
|
|
1617
1635
|
}
|
|
1618
1636
|
} finally {
|
|
1619
|
-
e[
|
|
1637
|
+
e[Ee] = t, delete e.currentTarget, P(p), Y(c);
|
|
1620
1638
|
}
|
|
1621
1639
|
}
|
|
1622
1640
|
}
|
|
@@ -1625,7 +1643,7 @@ function si(e) {
|
|
|
1625
1643
|
return ii?.createHTML(e) ?? e;
|
|
1626
1644
|
}
|
|
1627
1645
|
function ai(e) {
|
|
1628
|
-
var t =
|
|
1646
|
+
var t = wt("template");
|
|
1629
1647
|
return t.innerHTML = si(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1630
1648
|
}
|
|
1631
1649
|
function he(e, t) {
|
|
@@ -1644,10 +1662,10 @@ function li(e, t) {
|
|
|
1644
1662
|
if ($)
|
|
1645
1663
|
return he(w, null), w;
|
|
1646
1664
|
i === void 0 && (i = ai(s ? e : "<!>" + e), r || (i = /* @__PURE__ */ ge(i)));
|
|
1647
|
-
var l = n ||
|
|
1665
|
+
var l = n || vr ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1648
1666
|
if (r) {
|
|
1649
|
-
var a = /* @__PURE__ */ ge(l),
|
|
1650
|
-
he(a,
|
|
1667
|
+
var a = /* @__PURE__ */ ge(l), f = l.lastChild;
|
|
1668
|
+
he(a, f);
|
|
1651
1669
|
} else he(l, l);
|
|
1652
1670
|
return l;
|
|
1653
1671
|
};
|
|
@@ -1658,10 +1676,10 @@ function oi() {
|
|
|
1658
1676
|
var e = document.createDocumentFragment(), t = document.createComment(""), r = Z();
|
|
1659
1677
|
return e.append(t, r), he(t, r), e;
|
|
1660
1678
|
}
|
|
1661
|
-
function
|
|
1679
|
+
function ut(e, t) {
|
|
1662
1680
|
if ($) {
|
|
1663
1681
|
var r = g;
|
|
1664
|
-
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = w),
|
|
1682
|
+
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = w), _t();
|
|
1665
1683
|
return;
|
|
1666
1684
|
}
|
|
1667
1685
|
e !== null && e.before(t);
|
|
@@ -1736,76 +1754,76 @@ var di = [
|
|
|
1736
1754
|
"$inspect().with",
|
|
1737
1755
|
"$inspect.trace",
|
|
1738
1756
|
"$host"
|
|
1739
|
-
],
|
|
1757
|
+
], Bt = !0;
|
|
1740
1758
|
function vi(e, t) {
|
|
1741
1759
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1742
|
-
r !== (e[
|
|
1760
|
+
r !== (e[it] ??= e.nodeValue) && (e[it] = r, e.nodeValue = `${r}`);
|
|
1743
1761
|
}
|
|
1744
1762
|
function Rr(e, t) {
|
|
1745
1763
|
return Cr(e, t);
|
|
1746
1764
|
}
|
|
1747
1765
|
function hi(e, t) {
|
|
1748
|
-
|
|
1766
|
+
ot(), t.intro = t.intro ?? !1;
|
|
1749
1767
|
const r = t.target, n = $, i = w;
|
|
1750
1768
|
try {
|
|
1751
1769
|
for (var s = /* @__PURE__ */ ge(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ J(s);
|
|
1752
1770
|
if (!s) throw _e;
|
|
1753
|
-
|
|
1771
|
+
ce(!0), D(s);
|
|
1754
1772
|
const l = Cr(e, {
|
|
1755
1773
|
...t,
|
|
1756
1774
|
anchor: s
|
|
1757
1775
|
});
|
|
1758
|
-
return
|
|
1776
|
+
return ce(!1), l;
|
|
1759
1777
|
} catch (l) {
|
|
1760
1778
|
if (l instanceof Error && l.message.split(`
|
|
1761
1779
|
`).some((a) => a.startsWith("https://svelte.dev/e/"))) throw l;
|
|
1762
|
-
return l !== _e && console.warn("Failed to hydrate: ", l), t.recover === !1 && on(),
|
|
1780
|
+
return l !== _e && console.warn("Failed to hydrate: ", l), t.recover === !1 && on(), ot(), Bn(r), ce(!1), Rr(e, t);
|
|
1763
1781
|
} finally {
|
|
1764
|
-
|
|
1782
|
+
ce(n), D(i);
|
|
1765
1783
|
}
|
|
1766
1784
|
}
|
|
1767
|
-
var
|
|
1785
|
+
var Ve = /* @__PURE__ */ new Map();
|
|
1768
1786
|
function Cr(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: l = !0, transformError: a }) {
|
|
1769
|
-
|
|
1770
|
-
var
|
|
1771
|
-
var
|
|
1772
|
-
|
|
1787
|
+
ot();
|
|
1788
|
+
var f = void 0, v = Wn(() => {
|
|
1789
|
+
var p = r ?? t.appendChild(Z());
|
|
1790
|
+
Tn(p, { pending: () => {
|
|
1773
1791
|
} }, (u) => {
|
|
1774
|
-
|
|
1775
|
-
var
|
|
1776
|
-
if (s && (
|
|
1792
|
+
Jt({});
|
|
1793
|
+
var d = T;
|
|
1794
|
+
if (s && (d.c = s), i && (n.$$events = i), $ && he(u, null), Bt = l, f = e(u, n) || {}, Bt = !0, $ && (g.nodes.end = w, w === null || w.nodeType !== 8 || w.data !== "]"))
|
|
1777
1795
|
throw Je(), _e;
|
|
1778
|
-
|
|
1796
|
+
Qt();
|
|
1779
1797
|
}, a);
|
|
1780
|
-
var c = /* @__PURE__ */ new Set(),
|
|
1781
|
-
for (var
|
|
1782
|
-
var
|
|
1783
|
-
if (!c.has(
|
|
1784
|
-
c.add(
|
|
1785
|
-
var b = ci(
|
|
1798
|
+
var c = /* @__PURE__ */ new Set(), o = (u) => {
|
|
1799
|
+
for (var d = 0; d < u.length; d++) {
|
|
1800
|
+
var h = u[d];
|
|
1801
|
+
if (!c.has(h)) {
|
|
1802
|
+
c.add(h);
|
|
1803
|
+
var b = ci(h);
|
|
1786
1804
|
for (const U of [t, document]) {
|
|
1787
|
-
var x =
|
|
1788
|
-
x === void 0 && (x = /* @__PURE__ */ new Map(),
|
|
1789
|
-
var q = x.get(
|
|
1790
|
-
q === void 0 ? (U.addEventListener(
|
|
1805
|
+
var x = Ve.get(U);
|
|
1806
|
+
x === void 0 && (x = /* @__PURE__ */ new Map(), Ve.set(U, x));
|
|
1807
|
+
var q = x.get(h);
|
|
1808
|
+
q === void 0 ? (U.addEventListener(h, Dt, { passive: b }), x.set(h, 1)) : x.set(h, q + 1);
|
|
1791
1809
|
}
|
|
1792
1810
|
}
|
|
1793
1811
|
}
|
|
1794
1812
|
};
|
|
1795
|
-
return
|
|
1813
|
+
return o(Fr(Or)), ft.add(o), () => {
|
|
1796
1814
|
for (var u of c) for (const b of [t, document]) {
|
|
1797
|
-
var
|
|
1798
|
-
--
|
|
1815
|
+
var d = Ve.get(b), h = d.get(u);
|
|
1816
|
+
--h == 0 ? (b.removeEventListener(u, Dt), d.delete(u), d.size === 0 && Ve.delete(b)) : d.set(u, h);
|
|
1799
1817
|
}
|
|
1800
|
-
|
|
1818
|
+
ft.delete(o), p !== r && p.parentNode?.removeChild(p);
|
|
1801
1819
|
};
|
|
1802
1820
|
});
|
|
1803
|
-
return
|
|
1821
|
+
return ct.set(f, v), f;
|
|
1804
1822
|
}
|
|
1805
|
-
var
|
|
1823
|
+
var ct = /* @__PURE__ */ new WeakMap();
|
|
1806
1824
|
function _i(e, t) {
|
|
1807
|
-
const r =
|
|
1808
|
-
return r ? (
|
|
1825
|
+
const r = ct.get(e);
|
|
1826
|
+
return r ? (ct.delete(e), r(t)) : Promise.resolve();
|
|
1809
1827
|
}
|
|
1810
1828
|
var pi = class {
|
|
1811
1829
|
anchor;
|
|
@@ -1821,10 +1839,10 @@ var pi = class {
|
|
|
1821
1839
|
if (this.#e.has(e)) {
|
|
1822
1840
|
var t = this.#e.get(e), r = this.#t.get(t);
|
|
1823
1841
|
if (r)
|
|
1824
|
-
|
|
1842
|
+
jt(r), this.#o.delete(t);
|
|
1825
1843
|
else {
|
|
1826
1844
|
var n = this.#r.get(t);
|
|
1827
|
-
n && (
|
|
1845
|
+
n && (jt(n.effect), this.#t.set(t, n.effect), this.#r.delete(t), n.fragment.lastChild.remove(), this.anchor.before(n.fragment), r = n.effect);
|
|
1828
1846
|
}
|
|
1829
1847
|
for (const [i, s] of this.#e) {
|
|
1830
1848
|
if (this.#e.delete(i), i === e) break;
|
|
@@ -1843,7 +1861,7 @@ var pi = class {
|
|
|
1843
1861
|
} else C(s);
|
|
1844
1862
|
this.#o.delete(i), this.#t.delete(i);
|
|
1845
1863
|
};
|
|
1846
|
-
this.#i || !r ? (this.#o.add(i),
|
|
1864
|
+
this.#i || !r ? (this.#o.add(i), Ae(s, l, !1)) : l();
|
|
1847
1865
|
}
|
|
1848
1866
|
}
|
|
1849
1867
|
};
|
|
@@ -1853,7 +1871,7 @@ var pi = class {
|
|
|
1853
1871
|
for (const [r, n] of this.#r) t.includes(r) || (C(n.effect), this.#r.delete(r));
|
|
1854
1872
|
};
|
|
1855
1873
|
ensure(e, t) {
|
|
1856
|
-
var r =
|
|
1874
|
+
var r = y, n = Fn();
|
|
1857
1875
|
if (t && !this.#t.has(e) && !this.#r.has(e)) if (n) {
|
|
1858
1876
|
var i = document.createDocumentFragment(), s = Z();
|
|
1859
1877
|
i.append(s), this.#r.set(e, {
|
|
@@ -1871,62 +1889,62 @@ var pi = class {
|
|
|
1871
1889
|
};
|
|
1872
1890
|
function gi(e, t, r = !1) {
|
|
1873
1891
|
var n;
|
|
1874
|
-
$ && (n = w,
|
|
1875
|
-
var i = new pi(e), s = r ?
|
|
1876
|
-
function l(a,
|
|
1892
|
+
$ && (n = w, _t());
|
|
1893
|
+
var i = new pi(e), s = r ? ht : 0;
|
|
1894
|
+
function l(a, f) {
|
|
1877
1895
|
if ($) {
|
|
1878
|
-
var
|
|
1879
|
-
if (a !== parseInt(
|
|
1880
|
-
var
|
|
1881
|
-
D(
|
|
1896
|
+
var v = gn(n);
|
|
1897
|
+
if (a !== parseInt(v.substring(1))) {
|
|
1898
|
+
var p = Kt();
|
|
1899
|
+
D(p), i.anchor = p, ce(!1), i.ensure(a, f), ce(!0);
|
|
1882
1900
|
return;
|
|
1883
1901
|
}
|
|
1884
1902
|
}
|
|
1885
|
-
i.ensure(a,
|
|
1903
|
+
i.ensure(a, f);
|
|
1886
1904
|
}
|
|
1887
|
-
|
|
1905
|
+
yr(() => {
|
|
1888
1906
|
var a = !1;
|
|
1889
|
-
t((
|
|
1890
|
-
a = !0, l(
|
|
1907
|
+
t((f, v = 0) => {
|
|
1908
|
+
a = !0, l(v, f);
|
|
1891
1909
|
}), a || l(-1, null);
|
|
1892
1910
|
}, s);
|
|
1893
1911
|
}
|
|
1894
|
-
function
|
|
1912
|
+
function yi(e, t) {
|
|
1895
1913
|
gr(() => {
|
|
1896
1914
|
var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
1897
1915
|
if (!n.querySelector("#" + t.hash)) {
|
|
1898
|
-
const i =
|
|
1916
|
+
const i = wt("style");
|
|
1899
1917
|
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
1900
1918
|
}
|
|
1901
1919
|
});
|
|
1902
1920
|
}
|
|
1903
|
-
var
|
|
1921
|
+
var Ft = [...`
|
|
1904
1922
|
\r\f \v\uFEFF`];
|
|
1905
|
-
function
|
|
1923
|
+
function mi(e, t, r) {
|
|
1906
1924
|
var n = e == null ? "" : "" + e;
|
|
1907
1925
|
if (t && (n = n ? n + " " + t : t), r) {
|
|
1908
1926
|
for (var i of Object.keys(r)) if (r[i]) n = n ? n + " " + i : i;
|
|
1909
1927
|
else if (n.length)
|
|
1910
1928
|
for (var s = i.length, l = 0; (l = n.indexOf(i, l)) >= 0; ) {
|
|
1911
1929
|
var a = l + s;
|
|
1912
|
-
(l === 0 ||
|
|
1930
|
+
(l === 0 || Ft.includes(n[l - 1])) && (a === n.length || Ft.includes(n[a])) ? n = (l === 0 ? "" : n.substring(0, l)) + n.substring(a + 1) : l = a;
|
|
1913
1931
|
}
|
|
1914
1932
|
}
|
|
1915
1933
|
return n === "" ? null : n;
|
|
1916
1934
|
}
|
|
1917
1935
|
function wi(e, t, r, n, i, s) {
|
|
1918
|
-
var l = e[
|
|
1936
|
+
var l = e[nt];
|
|
1919
1937
|
if ($ || l !== r || l === void 0) {
|
|
1920
|
-
var a =
|
|
1921
|
-
(!$ || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e[
|
|
1922
|
-
} else if (s && i !== s) for (var
|
|
1923
|
-
var
|
|
1924
|
-
(i == null ||
|
|
1938
|
+
var a = mi(r, n, s);
|
|
1939
|
+
(!$ || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e[nt] = r;
|
|
1940
|
+
} else if (s && i !== s) for (var f in s) {
|
|
1941
|
+
var v = !!s[f];
|
|
1942
|
+
(i == null || v !== !!i[f]) && e.classList.toggle(f, v);
|
|
1925
1943
|
}
|
|
1926
1944
|
return s;
|
|
1927
1945
|
}
|
|
1928
1946
|
var bi = /* @__PURE__ */ Symbol("is custom element"), $i = /* @__PURE__ */ Symbol("is html"), ki = tn ? "link" : "LINK";
|
|
1929
|
-
function
|
|
1947
|
+
function De(e, t, r, n) {
|
|
1930
1948
|
var i = Ei(e);
|
|
1931
1949
|
if ($ && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ki)) {
|
|
1932
1950
|
n || void 0;
|
|
@@ -1935,78 +1953,78 @@ function Ve(e, t, r, n) {
|
|
|
1935
1953
|
i[t] !== (i[t] = r) && (t === "loading" && (e[Jr] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && xi(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
1936
1954
|
}
|
|
1937
1955
|
function Ei(e) {
|
|
1938
|
-
return e[
|
|
1956
|
+
return e[Wt] ??= {
|
|
1939
1957
|
[bi]: e.nodeName.includes("-"),
|
|
1940
1958
|
[$i]: e.namespaceURI === Vr
|
|
1941
1959
|
};
|
|
1942
1960
|
}
|
|
1943
|
-
var
|
|
1961
|
+
var Yt = /* @__PURE__ */ new Map();
|
|
1944
1962
|
function xi(e) {
|
|
1945
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
1963
|
+
var t = e.getAttribute("is") || e.nodeName, r = Yt.get(t);
|
|
1946
1964
|
if (r) return r;
|
|
1947
|
-
|
|
1965
|
+
Yt.set(t, r = []);
|
|
1948
1966
|
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
1949
1967
|
n = Yr(i);
|
|
1950
1968
|
for (var l in n) n[l].set && l !== "innerHTML" && l !== "textContent" && l !== "innerText" && r.push(l);
|
|
1951
|
-
i =
|
|
1969
|
+
i = zt(i);
|
|
1952
1970
|
}
|
|
1953
1971
|
return r;
|
|
1954
1972
|
}
|
|
1955
|
-
function
|
|
1956
|
-
return e === t || e?.[
|
|
1973
|
+
function rt(e, t) {
|
|
1974
|
+
return e === t || e?.[xe] === t;
|
|
1957
1975
|
}
|
|
1958
1976
|
function Ti(e = {}, t, r, n) {
|
|
1959
1977
|
var i = T.r, s = g;
|
|
1960
1978
|
return gr(() => {
|
|
1961
1979
|
var l, a;
|
|
1962
|
-
return
|
|
1963
|
-
l = a, a = n?.() || [],
|
|
1964
|
-
|
|
1980
|
+
return kt(() => {
|
|
1981
|
+
l = a, a = n?.() || [], xt(() => {
|
|
1982
|
+
rt(r(...a), e) || (t(e, ...a), l && rt(r(...l), e) && t(null, ...l));
|
|
1965
1983
|
});
|
|
1966
1984
|
}), () => {
|
|
1967
|
-
let
|
|
1968
|
-
for (;
|
|
1969
|
-
const
|
|
1970
|
-
a &&
|
|
1971
|
-
},
|
|
1972
|
-
|
|
1973
|
-
|
|
1985
|
+
let f = s;
|
|
1986
|
+
for (; f !== i && f.parent !== null && f.parent.f & 33554432; ) f = f.parent;
|
|
1987
|
+
const v = () => {
|
|
1988
|
+
a && rt(r(...a), e) && t(null, ...a);
|
|
1989
|
+
}, p = f.teardown;
|
|
1990
|
+
f.teardown = () => {
|
|
1991
|
+
v(), p?.();
|
|
1974
1992
|
};
|
|
1975
1993
|
};
|
|
1976
1994
|
}), e;
|
|
1977
1995
|
}
|
|
1978
1996
|
function $e(e, t, r, n) {
|
|
1979
|
-
var i = !Qe || (r & 2) !== 0, s = (r & 8) !== 0, l = (r & 16) !== 0, a = n,
|
|
1997
|
+
var i = !Qe || (r & 2) !== 0, s = (r & 8) !== 0, l = (r & 16) !== 0, a = n, f = !0, v = void 0, p = () => l && i ? (v ??= /* @__PURE__ */ qe(n), _(v)) : (f && (f = !1, a = l ? xt(n) : n), a);
|
|
1980
1998
|
let c;
|
|
1981
1999
|
if (s) {
|
|
1982
|
-
var
|
|
1983
|
-
c =
|
|
2000
|
+
var o = xe in e || Gt in e;
|
|
2001
|
+
c = se(e, t)?.set ?? (o && t in e ? (E) => e[t] = E : void 0);
|
|
1984
2002
|
}
|
|
1985
|
-
var u,
|
|
1986
|
-
s ? [u,
|
|
1987
|
-
var
|
|
1988
|
-
if (i ?
|
|
2003
|
+
var u, d = !1;
|
|
2004
|
+
s ? [u, d] = kn(() => e[t]) : u = e[t], u === void 0 && n !== void 0 && (u = p(), c && (i && fn(t), c(u)));
|
|
2005
|
+
var h;
|
|
2006
|
+
if (i ? h = () => {
|
|
1989
2007
|
var E = e[t];
|
|
1990
|
-
return E === void 0 ?
|
|
1991
|
-
} :
|
|
2008
|
+
return E === void 0 ? p() : (f = !0, E);
|
|
2009
|
+
} : h = () => {
|
|
1992
2010
|
var E = e[t];
|
|
1993
2011
|
return E !== void 0 && (a = void 0), E === void 0 ? a : E;
|
|
1994
|
-
}, i && (r & 4) === 0) return
|
|
2012
|
+
}, i && (r & 4) === 0) return h;
|
|
1995
2013
|
if (c) {
|
|
1996
2014
|
var b = e.$$legacy;
|
|
1997
2015
|
return (function(E, G) {
|
|
1998
|
-
return arguments.length > 0 ? ((!i || !G || b ||
|
|
2016
|
+
return arguments.length > 0 ? ((!i || !G || b || d) && c(G ? h() : E), E) : h();
|
|
1999
2017
|
});
|
|
2000
2018
|
}
|
|
2001
|
-
var x = !1, q = ((r & 1) !== 0 ?
|
|
2002
|
-
s &&
|
|
2019
|
+
var x = !1, q = ((r & 1) !== 0 ? qe : sr)(() => (x = !1, h()));
|
|
2020
|
+
s && _(q);
|
|
2003
2021
|
var U = g;
|
|
2004
2022
|
return (function(E, G) {
|
|
2005
2023
|
if (arguments.length > 0) {
|
|
2006
|
-
const Q = G ?
|
|
2024
|
+
const Q = G ? _(q) : i && s ? ve(E) : E;
|
|
2007
2025
|
return O(q, Q), x = !0, a !== void 0 && (a = Q), E;
|
|
2008
2026
|
}
|
|
2009
|
-
return X && x || (U.f & 16384) !== 0 ? q.v :
|
|
2027
|
+
return X && x || (U.f & 16384) !== 0 ? q.v : _(q);
|
|
2010
2028
|
});
|
|
2011
2029
|
}
|
|
2012
2030
|
function Si(e) {
|
|
@@ -2025,10 +2043,10 @@ var Ai = class {
|
|
|
2025
2043
|
$$events: {}
|
|
2026
2044
|
}, {
|
|
2027
2045
|
get(i, s) {
|
|
2028
|
-
return
|
|
2046
|
+
return _(t.get(s) ?? r(s, Reflect.get(i, s)));
|
|
2029
2047
|
},
|
|
2030
2048
|
has(i, s) {
|
|
2031
|
-
return s ===
|
|
2049
|
+
return s === Gt ? !0 : (_(t.get(s) ?? r(s, Reflect.get(i, s))), Reflect.has(i, s));
|
|
2032
2050
|
},
|
|
2033
2051
|
set(i, s, l) {
|
|
2034
2052
|
return O(t.get(s) ?? r(s, l), l), Reflect.set(i, s, l);
|
|
@@ -2042,9 +2060,9 @@ var Ai = class {
|
|
|
2042
2060
|
intro: e.intro ?? !1,
|
|
2043
2061
|
recover: e.recover,
|
|
2044
2062
|
transformError: e.transformError
|
|
2045
|
-
}), !K && (!e?.props?.$$host || e.sync === !1) &&
|
|
2063
|
+
}), !K && (!e?.props?.$$host || e.sync === !1) && ue(), this.#e = n.$$events;
|
|
2046
2064
|
for (const i of Object.keys(this.#t))
|
|
2047
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
2065
|
+
i === "$set" || i === "$destroy" || i === "$on" || Ge(this, i, {
|
|
2048
2066
|
get() {
|
|
2049
2067
|
return this.#t[i];
|
|
2050
2068
|
},
|
|
@@ -2105,8 +2123,8 @@ typeof HTMLElement == "function" && (Ir = class extends HTMLElement {
|
|
|
2105
2123
|
if (this.$$cn = !0, !this.$$c) {
|
|
2106
2124
|
let e = function(n) {
|
|
2107
2125
|
return (i) => {
|
|
2108
|
-
const s =
|
|
2109
|
-
n !== "default" && (s.name = n),
|
|
2126
|
+
const s = wt("slot");
|
|
2127
|
+
n !== "default" && (s.name = n), ut(i, s);
|
|
2110
2128
|
};
|
|
2111
2129
|
};
|
|
2112
2130
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
@@ -2114,7 +2132,7 @@ typeof HTMLElement == "function" && (Ir = class extends HTMLElement {
|
|
|
2114
2132
|
for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2115
2133
|
for (const n of this.attributes) {
|
|
2116
2134
|
const i = this.$$g_p(n.name);
|
|
2117
|
-
i in this.$$d || (this.$$d[i] =
|
|
2135
|
+
i in this.$$d || (this.$$d[i] = Ye(i, n.value, this.$$p_d, "toProp"));
|
|
2118
2136
|
}
|
|
2119
2137
|
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2120
2138
|
this.$$c = Si({
|
|
@@ -2126,12 +2144,12 @@ typeof HTMLElement == "function" && (Ir = class extends HTMLElement {
|
|
|
2126
2144
|
$$host: this
|
|
2127
2145
|
}
|
|
2128
2146
|
}), this.$$me = Gn(() => {
|
|
2129
|
-
|
|
2147
|
+
kt(() => {
|
|
2130
2148
|
this.$$r = !0;
|
|
2131
|
-
for (const n of
|
|
2149
|
+
for (const n of Ue(this.$$c)) {
|
|
2132
2150
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
2133
2151
|
this.$$d[n] = this.$$c[n];
|
|
2134
|
-
const i =
|
|
2152
|
+
const i = Ye(n, this.$$d[n], this.$$p_d, "toAttribute");
|
|
2135
2153
|
i == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, i);
|
|
2136
2154
|
}
|
|
2137
2155
|
this.$$r = !1;
|
|
@@ -2145,7 +2163,7 @@ typeof HTMLElement == "function" && (Ir = class extends HTMLElement {
|
|
|
2145
2163
|
}
|
|
2146
2164
|
}
|
|
2147
2165
|
attributeChangedCallback(e, t, r) {
|
|
2148
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2166
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ye(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2149
2167
|
}
|
|
2150
2168
|
disconnectedCallback() {
|
|
2151
2169
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2153,10 +2171,10 @@ typeof HTMLElement == "function" && (Ir = class extends HTMLElement {
|
|
|
2153
2171
|
});
|
|
2154
2172
|
}
|
|
2155
2173
|
$$g_p(e) {
|
|
2156
|
-
return
|
|
2174
|
+
return Ue(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2157
2175
|
}
|
|
2158
2176
|
});
|
|
2159
|
-
function
|
|
2177
|
+
function Ye(e, t, r, n) {
|
|
2160
2178
|
const i = r[e]?.type;
|
|
2161
2179
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e]) return t;
|
|
2162
2180
|
if (n === "toAttribute") switch (i) {
|
|
@@ -2194,22 +2212,22 @@ function Mi(e, t, r, n, i, s) {
|
|
|
2194
2212
|
super(e, r, i), this.$$p_d = t;
|
|
2195
2213
|
}
|
|
2196
2214
|
static get observedAttributes() {
|
|
2197
|
-
return
|
|
2215
|
+
return Ue(t).map((a) => (t[a].attribute || a).toLowerCase());
|
|
2198
2216
|
}
|
|
2199
2217
|
};
|
|
2200
|
-
return
|
|
2201
|
-
|
|
2218
|
+
return Ue(t).forEach((a) => {
|
|
2219
|
+
Ge(l.prototype, a, {
|
|
2202
2220
|
get() {
|
|
2203
2221
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2204
2222
|
},
|
|
2205
|
-
set(
|
|
2206
|
-
|
|
2207
|
-
var
|
|
2208
|
-
|
|
2223
|
+
set(f) {
|
|
2224
|
+
f = Ye(a, f, t), this.$$d[a] = f;
|
|
2225
|
+
var v = this.$$c;
|
|
2226
|
+
v && (se(v, a)?.get ? v[a] = f : v.$set({ [a]: f }));
|
|
2209
2227
|
}
|
|
2210
2228
|
});
|
|
2211
2229
|
}), n.forEach((a) => {
|
|
2212
|
-
|
|
2230
|
+
Ge(l.prototype, a, { get() {
|
|
2213
2231
|
return this.$$c?.[a];
|
|
2214
2232
|
} });
|
|
2215
2233
|
}), s && (l = s(l)), e.element = l, l;
|
|
@@ -2233,33 +2251,33 @@ var Oi = /* @__PURE__ */ li('<div class="pie-tool-calculator-inline svelte-qq14o
|
|
|
2233
2251
|
}`
|
|
2234
2252
|
};
|
|
2235
2253
|
function Ci(e, t) {
|
|
2236
|
-
|
|
2254
|
+
Jt(t, !0), yi(e, Ri);
|
|
2237
2255
|
let r = $e(t, "toolId", 7, "calculator-inline"), n = $e(t, "targetToolId", 7, ""), i = $e(t, "calculatorType", 7, "basic"), s = $e(t, "availableTypes", 7, "basic,scientific,graphing"), l = $e(t, "size", 7, "md");
|
|
2238
2256
|
const a = typeof window < "u";
|
|
2239
|
-
let
|
|
2240
|
-
const
|
|
2241
|
-
let c = /* @__PURE__ */ N(!1),
|
|
2242
|
-
const
|
|
2243
|
-
|
|
2244
|
-
if (
|
|
2245
|
-
return
|
|
2246
|
-
O(
|
|
2257
|
+
let f = /* @__PURE__ */ N(void 0), v = /* @__PURE__ */ N(null);
|
|
2258
|
+
const p = /* @__PURE__ */ be(() => _(v)?.toolCoordinator);
|
|
2259
|
+
let c = /* @__PURE__ */ N(!1), o = /* @__PURE__ */ N(!1), u = /* @__PURE__ */ N("");
|
|
2260
|
+
const d = /* @__PURE__ */ be(() => new Set(s().split(",").map((S) => S.trim()).filter(Boolean))), h = /* @__PURE__ */ be(() => _(d).has(i()) ? i() : "basic");
|
|
2261
|
+
Pe(() => {
|
|
2262
|
+
if (_(f))
|
|
2263
|
+
return Lr(_(f), (S) => {
|
|
2264
|
+
O(v, S, !0);
|
|
2247
2265
|
});
|
|
2248
|
-
}),
|
|
2249
|
-
p
|
|
2266
|
+
}), Pe(() => {
|
|
2267
|
+
_(p) && r() && _(f) && !_(c) && (_(p).registerTool(r(), "Calculator Inline", _(f), jr.TOOL), O(c, !0));
|
|
2250
2268
|
});
|
|
2251
2269
|
const b = /* @__PURE__ */ be(() => n() ? n() : Pr(r()));
|
|
2252
|
-
|
|
2253
|
-
if (!a || !p
|
|
2254
|
-
const S = p
|
|
2255
|
-
O(
|
|
2270
|
+
Pe(() => {
|
|
2271
|
+
if (!a || !_(p)) return;
|
|
2272
|
+
const S = _(p).subscribe(() => {
|
|
2273
|
+
O(o, _(p).isToolVisible(_(b)), !0);
|
|
2256
2274
|
});
|
|
2257
|
-
return O(
|
|
2258
|
-
}),
|
|
2259
|
-
p
|
|
2275
|
+
return O(o, _(p).isToolVisible(_(b)), !0), S;
|
|
2276
|
+
}), Pe(() => () => {
|
|
2277
|
+
_(p) && r() && _(p).unregisterTool(r());
|
|
2260
2278
|
});
|
|
2261
2279
|
function x() {
|
|
2262
|
-
p
|
|
2280
|
+
_(p) && (_(p).toggleTool(_(b)), O(u, _(o) ? `${_(h)} calculator closed` : `${_(h)} calculator opened`, !0));
|
|
2263
2281
|
}
|
|
2264
2282
|
const q = /* @__PURE__ */ be(() => l() === "sm" ? "pie-tool-calculator-inline__button--sm" : l() === "lg" ? "pie-tool-calculator-inline__button--lg" : "pie-tool-calculator-inline__button--md");
|
|
2265
2283
|
var U = {
|
|
@@ -2267,43 +2285,43 @@ function Ci(e, t) {
|
|
|
2267
2285
|
return r();
|
|
2268
2286
|
},
|
|
2269
2287
|
set toolId(S = "calculator-inline") {
|
|
2270
|
-
r(S),
|
|
2288
|
+
r(S), ue();
|
|
2271
2289
|
},
|
|
2272
2290
|
get targetToolId() {
|
|
2273
2291
|
return n();
|
|
2274
2292
|
},
|
|
2275
2293
|
set targetToolId(S = "") {
|
|
2276
|
-
n(S),
|
|
2294
|
+
n(S), ue();
|
|
2277
2295
|
},
|
|
2278
2296
|
get calculatorType() {
|
|
2279
2297
|
return i();
|
|
2280
2298
|
},
|
|
2281
2299
|
set calculatorType(S = "basic") {
|
|
2282
|
-
i(S),
|
|
2300
|
+
i(S), ue();
|
|
2283
2301
|
},
|
|
2284
2302
|
get availableTypes() {
|
|
2285
2303
|
return s();
|
|
2286
2304
|
},
|
|
2287
2305
|
set availableTypes(S = "basic,scientific,graphing") {
|
|
2288
|
-
s(S),
|
|
2306
|
+
s(S), ue();
|
|
2289
2307
|
},
|
|
2290
2308
|
get size() {
|
|
2291
2309
|
return l();
|
|
2292
2310
|
},
|
|
2293
2311
|
set size(S = "md") {
|
|
2294
|
-
l(S),
|
|
2312
|
+
l(S), ue();
|
|
2295
2313
|
}
|
|
2296
2314
|
}, E = oi(), G = Vn(E), Q = (S) => {
|
|
2297
|
-
var
|
|
2298
|
-
let
|
|
2299
|
-
var
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
}), ri("click", ee, x),
|
|
2315
|
+
var He = Oi(), ee = Ht(He);
|
|
2316
|
+
let Tt;
|
|
2317
|
+
var St = Dn(ee, 2), Nr = Ht(St, !0);
|
|
2318
|
+
Ot(St), Ot(He), Ti(He, (Hr) => O(f, Hr), () => _(f)), Zn(() => {
|
|
2319
|
+
Tt = wi(ee, 1, `pie-tool-calculator-inline__button ${_(q) ?? ""}`, "svelte-qq14od", Tt, { "pie-tool-calculator-inline__button--active": _(o) }), De(ee, "aria-label", _(o) ? `Close ${_(h)} calculator` : `Open ${_(h)} calculator`), De(ee, "aria-pressed", _(o)), De(ee, "title", _(o) ? `Close ${_(h)} calculator` : `Open ${_(h)} calculator`), De(ee, "data-calculator-type", _(h)), ee.disabled = !_(p), vi(Nr, _(u));
|
|
2320
|
+
}), ri("click", ee, x), ut(S, He);
|
|
2303
2321
|
};
|
|
2304
2322
|
return gi(G, (S) => {
|
|
2305
2323
|
a && S(Q);
|
|
2306
|
-
}),
|
|
2324
|
+
}), ut(e, E), Qt(U);
|
|
2307
2325
|
}
|
|
2308
2326
|
ni(["click"]);
|
|
2309
2327
|
customElements.define("pie-tool-calculator-inline", Mi(Ci, {
|