@hintergrund/ui 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin.js +23987 -11751
- package/dist/{global-D2DXJZaD.js → global-Dn8cBAWs.js} +999 -953
- package/dist/login.js +74 -74
- package/package.json +56 -55
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
2
|
-
const
|
|
3
|
-
var ut = Array.isArray,
|
|
2
|
+
const ft = 1, at = 2, un = 4, ur = 8, or = 16, cr = 1, hr = 2, dr = 4, _r = 8, vr = 16, Os = 4, pr = 1, mr = 2, on = "[", lt = "[!", jt = "]", Re = {}, N = Symbol(), gr = "http://www.w3.org/1999/xhtml", cn = !1;
|
|
3
|
+
var ut = Array.isArray, yr = Array.prototype.indexOf, qt = Array.from, tt = Object.keys, Ie = Object.defineProperty, ye = Object.getOwnPropertyDescriptor, hn = Object.getOwnPropertyDescriptors, wr = Object.prototype, $r = Array.prototype, Bt = Object.getPrototypeOf, Xt = Object.isExtensible;
|
|
4
4
|
function Cs(e) {
|
|
5
5
|
return typeof e == "function";
|
|
6
6
|
}
|
|
7
|
-
const
|
|
7
|
+
const Rs = () => {
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function Is(e) {
|
|
10
10
|
return typeof e?.then == "function";
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ps(e) {
|
|
13
|
+
return e();
|
|
14
|
+
}
|
|
15
|
+
function br(e) {
|
|
13
16
|
for (var t = 0; t < e.length; t++)
|
|
14
17
|
e[t]();
|
|
15
18
|
}
|
|
16
|
-
function
|
|
19
|
+
function dn() {
|
|
17
20
|
var e, t, n = new Promise((r, s) => {
|
|
18
21
|
e = r, t = s;
|
|
19
22
|
});
|
|
20
23
|
return { promise: n, resolve: e, reject: t };
|
|
21
24
|
}
|
|
22
|
-
function
|
|
25
|
+
function Ms(e, t) {
|
|
23
26
|
if (Array.isArray(e))
|
|
24
27
|
return e;
|
|
25
28
|
if (!(Symbol.iterator in e))
|
|
@@ -29,53 +32,53 @@ function Is(e, t) {
|
|
|
29
32
|
if (n.push(r), n.length === t) break;
|
|
30
33
|
return n;
|
|
31
34
|
}
|
|
32
|
-
const F = 2,
|
|
35
|
+
const F = 2, Ht = 4, ot = 8, Se = 16, ue = 32, ve = 64, ct = 128, W = 256, nt = 512, P = 1024, U = 2048, pe = 4096, H = 8192, ae = 16384, Ut = 32768, ht = 65536, Zt = 1 << 17, Er = 1 << 18, ke = 1 << 19, _n = 1 << 20, xt = 1 << 21, Vt = 1 << 22, we = 1 << 23, he = Symbol("$state"), vn = Symbol("legacy props"), Sr = Symbol(""), xe = new class extends Error {
|
|
33
36
|
name = "StaleReactionError";
|
|
34
37
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
35
|
-
}(),
|
|
36
|
-
function
|
|
38
|
+
}(), dt = 3, De = 8;
|
|
39
|
+
function kr(e) {
|
|
37
40
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
38
41
|
}
|
|
39
|
-
function
|
|
42
|
+
function Tr() {
|
|
40
43
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
41
44
|
}
|
|
42
|
-
function
|
|
45
|
+
function Ar(e) {
|
|
43
46
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
44
47
|
}
|
|
45
|
-
function
|
|
48
|
+
function xr() {
|
|
46
49
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
47
50
|
}
|
|
48
|
-
function
|
|
51
|
+
function Nr(e) {
|
|
49
52
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
50
53
|
}
|
|
51
|
-
function
|
|
54
|
+
function Or() {
|
|
52
55
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
53
56
|
}
|
|
54
|
-
function
|
|
57
|
+
function Cr() {
|
|
55
58
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
56
59
|
}
|
|
57
|
-
function
|
|
60
|
+
function Rr(e) {
|
|
58
61
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
59
62
|
}
|
|
60
|
-
function
|
|
63
|
+
function Ir() {
|
|
61
64
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
62
65
|
}
|
|
63
|
-
function
|
|
66
|
+
function Pr() {
|
|
64
67
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
65
68
|
}
|
|
66
|
-
function
|
|
69
|
+
function Mr() {
|
|
67
70
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
68
71
|
}
|
|
69
|
-
function
|
|
72
|
+
function Lr() {
|
|
70
73
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
71
74
|
}
|
|
72
|
-
function
|
|
75
|
+
function _t(e) {
|
|
73
76
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
74
77
|
}
|
|
75
|
-
function
|
|
78
|
+
function Dr() {
|
|
76
79
|
console.warn("https://svelte.dev/e/select_multiple_invalid_value");
|
|
77
80
|
}
|
|
78
|
-
function
|
|
81
|
+
function Fr() {
|
|
79
82
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
80
83
|
}
|
|
81
84
|
let v = !1;
|
|
@@ -83,29 +86,29 @@ function B(e) {
|
|
|
83
86
|
v = e;
|
|
84
87
|
}
|
|
85
88
|
let w;
|
|
86
|
-
function
|
|
89
|
+
function C(e) {
|
|
87
90
|
if (e === null)
|
|
88
|
-
throw
|
|
91
|
+
throw _t(), Re;
|
|
89
92
|
return w = e;
|
|
90
93
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
94
|
+
function vt() {
|
|
95
|
+
return C(
|
|
93
96
|
/** @type {TemplateNode} */
|
|
94
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ ie(w)
|
|
95
98
|
);
|
|
96
99
|
}
|
|
97
|
-
function
|
|
100
|
+
function Ds(e) {
|
|
98
101
|
if (v) {
|
|
99
|
-
if (/* @__PURE__ */
|
|
100
|
-
throw
|
|
102
|
+
if (/* @__PURE__ */ ie(w) !== null)
|
|
103
|
+
throw _t(), Re;
|
|
101
104
|
w = e;
|
|
102
105
|
}
|
|
103
106
|
}
|
|
104
|
-
function
|
|
107
|
+
function jr(e = 1) {
|
|
105
108
|
if (v) {
|
|
106
109
|
for (var t = e, n = w; t--; )
|
|
107
110
|
n = /** @type {TemplateNode} */
|
|
108
|
-
/* @__PURE__ */
|
|
111
|
+
/* @__PURE__ */ ie(n);
|
|
109
112
|
w = n;
|
|
110
113
|
}
|
|
111
114
|
}
|
|
@@ -116,53 +119,53 @@ function rt(e = !0) {
|
|
|
116
119
|
/** @type {Comment} */
|
|
117
120
|
n.data
|
|
118
121
|
);
|
|
119
|
-
if (r ===
|
|
122
|
+
if (r === jt) {
|
|
120
123
|
if (t === 0) return n;
|
|
121
124
|
t -= 1;
|
|
122
|
-
} else (r ===
|
|
125
|
+
} else (r === on || r === lt) && (t += 1);
|
|
123
126
|
}
|
|
124
127
|
var s = (
|
|
125
128
|
/** @type {TemplateNode} */
|
|
126
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ ie(n)
|
|
127
130
|
);
|
|
128
131
|
e && n.remove(), n = s;
|
|
129
132
|
}
|
|
130
133
|
}
|
|
131
|
-
function
|
|
134
|
+
function pn(e) {
|
|
132
135
|
if (!e || e.nodeType !== De)
|
|
133
|
-
throw
|
|
136
|
+
throw _t(), Re;
|
|
134
137
|
return (
|
|
135
138
|
/** @type {Comment} */
|
|
136
139
|
e.data
|
|
137
140
|
);
|
|
138
141
|
}
|
|
139
|
-
function
|
|
142
|
+
function mn(e) {
|
|
140
143
|
return e === this.v;
|
|
141
144
|
}
|
|
142
|
-
function
|
|
145
|
+
function qr(e, t) {
|
|
143
146
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
144
147
|
}
|
|
145
|
-
function
|
|
146
|
-
return !
|
|
148
|
+
function gn(e) {
|
|
149
|
+
return !qr(e, this.v);
|
|
147
150
|
}
|
|
148
|
-
let Ge = !1,
|
|
149
|
-
function
|
|
151
|
+
let Ge = !1, Br = !1;
|
|
152
|
+
function Fs() {
|
|
150
153
|
Ge = !0;
|
|
151
154
|
}
|
|
152
155
|
let A = null;
|
|
153
156
|
function Pe(e) {
|
|
154
157
|
A = e;
|
|
155
158
|
}
|
|
156
|
-
function
|
|
159
|
+
function js(e) {
|
|
157
160
|
return (
|
|
158
161
|
/** @type {T} */
|
|
159
|
-
|
|
162
|
+
yn().get(e)
|
|
160
163
|
);
|
|
161
164
|
}
|
|
162
|
-
function
|
|
163
|
-
return
|
|
165
|
+
function qs(e, t) {
|
|
166
|
+
return yn().set(e, t), t;
|
|
164
167
|
}
|
|
165
|
-
function
|
|
168
|
+
function Hr(e, t = !1, n) {
|
|
166
169
|
A = {
|
|
167
170
|
p: A,
|
|
168
171
|
c: null,
|
|
@@ -172,7 +175,7 @@ function jr(e, t = !1, n) {
|
|
|
172
175
|
l: Ge && !t ? { s: null, u: null, $: [] } : null
|
|
173
176
|
};
|
|
174
177
|
}
|
|
175
|
-
function
|
|
178
|
+
function Ur(e) {
|
|
176
179
|
var t = (
|
|
177
180
|
/** @type {ComponentContext} */
|
|
178
181
|
A
|
|
@@ -180,7 +183,7 @@ function Br(e) {
|
|
|
180
183
|
if (n !== null) {
|
|
181
184
|
t.e = null;
|
|
182
185
|
for (var r of n)
|
|
183
|
-
|
|
186
|
+
Fn(r);
|
|
184
187
|
}
|
|
185
188
|
return e !== void 0 && (t.x = e), A = t.p, e ?? /** @type {T} */
|
|
186
189
|
{};
|
|
@@ -188,10 +191,10 @@ function Br(e) {
|
|
|
188
191
|
function Ke() {
|
|
189
192
|
return !Ge || A !== null && A.l === null;
|
|
190
193
|
}
|
|
191
|
-
function
|
|
192
|
-
return A === null &&
|
|
194
|
+
function yn(e) {
|
|
195
|
+
return A === null && kr(), A.c ??= new Map(Vr(A) || void 0);
|
|
193
196
|
}
|
|
194
|
-
function
|
|
197
|
+
function Vr(e) {
|
|
195
198
|
let t = e.p;
|
|
196
199
|
for (; t !== null; ) {
|
|
197
200
|
const n = t.c;
|
|
@@ -201,39 +204,39 @@ function Hr(e) {
|
|
|
201
204
|
}
|
|
202
205
|
return null;
|
|
203
206
|
}
|
|
204
|
-
let
|
|
205
|
-
function
|
|
206
|
-
var e =
|
|
207
|
-
|
|
207
|
+
let ge = [];
|
|
208
|
+
function wn() {
|
|
209
|
+
var e = ge;
|
|
210
|
+
ge = [], br(e);
|
|
208
211
|
}
|
|
209
|
-
function
|
|
210
|
-
if (
|
|
211
|
-
var t =
|
|
212
|
+
function _e(e) {
|
|
213
|
+
if (ge.length === 0 && !Ue) {
|
|
214
|
+
var t = ge;
|
|
212
215
|
queueMicrotask(() => {
|
|
213
|
-
t ===
|
|
216
|
+
t === ge && wn();
|
|
214
217
|
});
|
|
215
218
|
}
|
|
216
|
-
|
|
219
|
+
ge.push(e);
|
|
217
220
|
}
|
|
218
|
-
function
|
|
219
|
-
for (;
|
|
220
|
-
|
|
221
|
+
function Yr() {
|
|
222
|
+
for (; ge.length > 0; )
|
|
223
|
+
wn();
|
|
221
224
|
}
|
|
222
|
-
const
|
|
223
|
-
function
|
|
225
|
+
const Wr = /* @__PURE__ */ new WeakMap();
|
|
226
|
+
function $n(e) {
|
|
224
227
|
var t = m;
|
|
225
228
|
if (t === null)
|
|
226
|
-
return
|
|
227
|
-
if ((t.f &
|
|
228
|
-
if ((t.f &
|
|
229
|
-
throw !t.parent && e instanceof Error &&
|
|
229
|
+
return y.f |= we, e;
|
|
230
|
+
if ((t.f & Ut) === 0) {
|
|
231
|
+
if ((t.f & ct) === 0)
|
|
232
|
+
throw !t.parent && e instanceof Error && bn(e), e;
|
|
230
233
|
t.b.error(e);
|
|
231
234
|
} else
|
|
232
235
|
Me(e, t);
|
|
233
236
|
}
|
|
234
237
|
function Me(e, t) {
|
|
235
238
|
for (; t !== null; ) {
|
|
236
|
-
if ((t.f &
|
|
239
|
+
if ((t.f & ct) !== 0)
|
|
237
240
|
try {
|
|
238
241
|
t.b.error(e);
|
|
239
242
|
return;
|
|
@@ -242,10 +245,10 @@ function Me(e, t) {
|
|
|
242
245
|
}
|
|
243
246
|
t = t.parent;
|
|
244
247
|
}
|
|
245
|
-
throw e instanceof Error &&
|
|
248
|
+
throw e instanceof Error && bn(e), e;
|
|
246
249
|
}
|
|
247
|
-
function
|
|
248
|
-
const t =
|
|
250
|
+
function bn(e) {
|
|
251
|
+
const t = Wr.get(e);
|
|
249
252
|
t && (Ie(e, "message", {
|
|
250
253
|
value: t.message
|
|
251
254
|
}), Ie(e, "stack", {
|
|
@@ -253,8 +256,8 @@ function $n(e) {
|
|
|
253
256
|
}));
|
|
254
257
|
}
|
|
255
258
|
const Ze = /* @__PURE__ */ new Set();
|
|
256
|
-
let
|
|
257
|
-
class
|
|
259
|
+
let b = null, He = null, z = null, Nt = /* @__PURE__ */ new Set(), te = [], pt = null, Ot = !1, Ue = !1;
|
|
260
|
+
class ne {
|
|
258
261
|
committed = !1;
|
|
259
262
|
/**
|
|
260
263
|
* The current values of any sources that are updated in this batch
|
|
@@ -292,12 +295,12 @@ class te {
|
|
|
292
295
|
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
293
296
|
* @type {Effect[]}
|
|
294
297
|
*/
|
|
295
|
-
#
|
|
298
|
+
#a = [];
|
|
296
299
|
/**
|
|
297
300
|
* Deferred effects that are MAYBE_DIRTY
|
|
298
301
|
* @type {Effect[]}
|
|
299
302
|
*/
|
|
300
|
-
#
|
|
303
|
+
#f = [];
|
|
301
304
|
/**
|
|
302
305
|
* A set of branches that still exist, but will be destroyed when this batch
|
|
303
306
|
* is committed — we skip over these during `process`
|
|
@@ -309,7 +312,7 @@ class te {
|
|
|
309
312
|
* @param {Effect[]} root_effects
|
|
310
313
|
*/
|
|
311
314
|
process(t) {
|
|
312
|
-
|
|
315
|
+
te = [], He = null, this.apply();
|
|
313
316
|
var n = {
|
|
314
317
|
parent: null,
|
|
315
318
|
effect: null,
|
|
@@ -319,7 +322,7 @@ class te {
|
|
|
319
322
|
};
|
|
320
323
|
for (const r of t)
|
|
321
324
|
this.#s(r, n);
|
|
322
|
-
this.#u(), this.#r > 0 ? (this.#i(n.effects), this.#i(n.render_effects), this.#i(n.block_effects)) : (He = this,
|
|
325
|
+
this.#u(), this.#r > 0 ? (this.#i(n.effects), this.#i(n.render_effects), this.#i(n.block_effects)) : (He = this, b = null, Qt(n.render_effects), Qt(n.effects), He = null), z = null;
|
|
323
326
|
}
|
|
324
327
|
/**
|
|
325
328
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -330,15 +333,15 @@ class te {
|
|
|
330
333
|
#s(t, n) {
|
|
331
334
|
t.f ^= P;
|
|
332
335
|
for (var r = t.first; r !== null; ) {
|
|
333
|
-
var s = r.f, i = (s & (ue |
|
|
334
|
-
if ((r.f &
|
|
336
|
+
var s = r.f, i = (s & (ue | ve)) !== 0, f = i && (s & P) !== 0, a = f || (s & H) !== 0 || this.skipped_effects.has(r);
|
|
337
|
+
if ((r.f & ct) !== 0 && r.b?.is_pending() && (n = {
|
|
335
338
|
parent: n,
|
|
336
339
|
effect: r,
|
|
337
340
|
effects: [],
|
|
338
341
|
render_effects: [],
|
|
339
342
|
block_effects: []
|
|
340
|
-
}), !
|
|
341
|
-
i ? r.f ^= P : (s &
|
|
343
|
+
}), !a && r.fn !== null) {
|
|
344
|
+
i ? r.f ^= P : (s & Ht) !== 0 ? n.effects.push(r) : wt(r) && ((r.f & Se) !== 0 && n.block_effects.push(r), it(r));
|
|
342
345
|
var l = r.first;
|
|
343
346
|
if (l !== null) {
|
|
344
347
|
r = l;
|
|
@@ -356,7 +359,7 @@ class te {
|
|
|
356
359
|
*/
|
|
357
360
|
#i(t) {
|
|
358
361
|
for (const n of t)
|
|
359
|
-
((n.f & U) !== 0 ? this.#
|
|
362
|
+
((n.f & U) !== 0 ? this.#a : this.#f).push(n), D(n, P);
|
|
360
363
|
}
|
|
361
364
|
/**
|
|
362
365
|
* Associate a change to a given source with the current
|
|
@@ -368,20 +371,20 @@ class te {
|
|
|
368
371
|
this.#t.has(t) || this.#t.set(t, n), this.current.set(t, t.v), z?.set(t, t.v);
|
|
369
372
|
}
|
|
370
373
|
activate() {
|
|
371
|
-
|
|
374
|
+
b = this;
|
|
372
375
|
}
|
|
373
376
|
deactivate() {
|
|
374
|
-
|
|
377
|
+
b = null, z = null;
|
|
375
378
|
}
|
|
376
379
|
flush() {
|
|
377
|
-
if (
|
|
378
|
-
if (this.activate(),
|
|
380
|
+
if (te.length > 0) {
|
|
381
|
+
if (this.activate(), Sn(), b !== null && b !== this)
|
|
379
382
|
return;
|
|
380
383
|
} else
|
|
381
384
|
this.#u();
|
|
382
385
|
this.deactivate();
|
|
383
|
-
for (const t of
|
|
384
|
-
if (
|
|
386
|
+
for (const t of Nt)
|
|
387
|
+
if (Nt.delete(t), t(), b !== null)
|
|
385
388
|
break;
|
|
386
389
|
}
|
|
387
390
|
#u() {
|
|
@@ -407,29 +410,29 @@ class te {
|
|
|
407
410
|
continue;
|
|
408
411
|
}
|
|
409
412
|
const i = [];
|
|
410
|
-
for (const [
|
|
411
|
-
if (s.current.has(
|
|
412
|
-
if (n && l !== s.current.get(
|
|
413
|
-
s.current.set(
|
|
413
|
+
for (const [a, l] of this.current) {
|
|
414
|
+
if (s.current.has(a))
|
|
415
|
+
if (n && l !== s.current.get(a))
|
|
416
|
+
s.current.set(a, l);
|
|
414
417
|
else
|
|
415
418
|
continue;
|
|
416
|
-
i.push(
|
|
419
|
+
i.push(a);
|
|
417
420
|
}
|
|
418
421
|
if (i.length === 0)
|
|
419
422
|
continue;
|
|
420
|
-
const
|
|
421
|
-
if (
|
|
422
|
-
for (const
|
|
423
|
-
|
|
424
|
-
if (
|
|
425
|
-
|
|
426
|
-
for (const
|
|
427
|
-
s.#s(
|
|
428
|
-
|
|
423
|
+
const f = [...s.current.keys()].filter((a) => !this.current.has(a));
|
|
424
|
+
if (f.length > 0) {
|
|
425
|
+
for (const a of i)
|
|
426
|
+
kn(a, f);
|
|
427
|
+
if (te.length > 0) {
|
|
428
|
+
b = s, s.apply();
|
|
429
|
+
for (const a of te)
|
|
430
|
+
s.#s(a, r);
|
|
431
|
+
te = [], s.deactivate();
|
|
429
432
|
}
|
|
430
433
|
}
|
|
431
434
|
}
|
|
432
|
-
|
|
435
|
+
b = null, z = t;
|
|
433
436
|
}
|
|
434
437
|
this.committed = !0, Ze.delete(this), this.#l?.resolve();
|
|
435
438
|
}
|
|
@@ -446,116 +449,116 @@ class te {
|
|
|
446
449
|
*/
|
|
447
450
|
decrement(t) {
|
|
448
451
|
this.#n -= 1, t && (this.#r -= 1);
|
|
449
|
-
for (const n of this.#f)
|
|
450
|
-
D(n, U), be(n);
|
|
451
452
|
for (const n of this.#a)
|
|
452
|
-
D(n,
|
|
453
|
-
|
|
453
|
+
D(n, U), be(n);
|
|
454
|
+
for (const n of this.#f)
|
|
455
|
+
D(n, pe), be(n);
|
|
456
|
+
this.#a = [], this.#f = [], this.flush();
|
|
454
457
|
}
|
|
455
458
|
/** @param {() => void} fn */
|
|
456
459
|
add_callback(t) {
|
|
457
460
|
this.#e.add(t);
|
|
458
461
|
}
|
|
459
462
|
settled() {
|
|
460
|
-
return (this.#l ??=
|
|
463
|
+
return (this.#l ??= dn()).promise;
|
|
461
464
|
}
|
|
462
465
|
static ensure() {
|
|
463
|
-
if (
|
|
464
|
-
const t =
|
|
465
|
-
Ze.add(
|
|
466
|
-
|
|
466
|
+
if (b === null) {
|
|
467
|
+
const t = b = new ne();
|
|
468
|
+
Ze.add(b), Ue || ne.enqueue(() => {
|
|
469
|
+
b === t && t.flush();
|
|
467
470
|
});
|
|
468
471
|
}
|
|
469
|
-
return
|
|
472
|
+
return b;
|
|
470
473
|
}
|
|
471
474
|
/** @param {() => void} task */
|
|
472
475
|
static enqueue(t) {
|
|
473
|
-
|
|
476
|
+
_e(t);
|
|
474
477
|
}
|
|
475
478
|
apply() {
|
|
476
479
|
}
|
|
477
480
|
}
|
|
478
|
-
function
|
|
481
|
+
function En(e) {
|
|
479
482
|
var t = Ue;
|
|
480
483
|
Ue = !0;
|
|
481
484
|
try {
|
|
482
485
|
for (var n; ; ) {
|
|
483
|
-
if (
|
|
484
|
-
return
|
|
486
|
+
if (Yr(), te.length === 0 && (b?.flush(), te.length === 0))
|
|
487
|
+
return pt = null, /** @type {T} */
|
|
485
488
|
n;
|
|
486
|
-
|
|
489
|
+
Sn();
|
|
487
490
|
}
|
|
488
491
|
} finally {
|
|
489
492
|
Ue = t;
|
|
490
493
|
}
|
|
491
494
|
}
|
|
492
|
-
function
|
|
493
|
-
var e =
|
|
494
|
-
|
|
495
|
+
function Sn() {
|
|
496
|
+
var e = Ce;
|
|
497
|
+
Ot = !0;
|
|
495
498
|
try {
|
|
496
499
|
var t = 0;
|
|
497
|
-
for (
|
|
498
|
-
var n =
|
|
500
|
+
for (rn(!0); te.length > 0; ) {
|
|
501
|
+
var n = ne.ensure();
|
|
499
502
|
if (t++ > 1e3) {
|
|
500
503
|
var r, s;
|
|
501
|
-
|
|
504
|
+
Gr();
|
|
502
505
|
}
|
|
503
|
-
n.process(
|
|
506
|
+
n.process(te), de.clear();
|
|
504
507
|
}
|
|
505
508
|
} finally {
|
|
506
|
-
|
|
509
|
+
Ot = !1, rn(e), pt = null;
|
|
507
510
|
}
|
|
508
511
|
}
|
|
509
|
-
function
|
|
512
|
+
function Gr() {
|
|
510
513
|
try {
|
|
511
|
-
|
|
514
|
+
Or();
|
|
512
515
|
} catch (e) {
|
|
513
|
-
Me(e,
|
|
516
|
+
Me(e, pt);
|
|
514
517
|
}
|
|
515
518
|
}
|
|
516
|
-
let
|
|
517
|
-
function
|
|
519
|
+
let fe = null;
|
|
520
|
+
function Qt(e) {
|
|
518
521
|
var t = e.length;
|
|
519
522
|
if (t !== 0) {
|
|
520
523
|
for (var n = 0; n < t; ) {
|
|
521
524
|
var r = e[n++];
|
|
522
|
-
if ((r.f & (
|
|
523
|
-
|
|
524
|
-
for (const s of
|
|
525
|
-
if ((s.f & (
|
|
525
|
+
if ((r.f & (ae | H)) === 0 && wt(r) && (fe = /* @__PURE__ */ new Set(), it(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null && r.ac === null ? Hn(r) : r.fn = null), fe?.size > 0)) {
|
|
526
|
+
de.clear();
|
|
527
|
+
for (const s of fe) {
|
|
528
|
+
if ((s.f & (ae | H)) !== 0) continue;
|
|
526
529
|
const i = [s];
|
|
527
|
-
let
|
|
528
|
-
for (;
|
|
529
|
-
|
|
530
|
-
for (let
|
|
531
|
-
const l = i[
|
|
532
|
-
(l.f & (
|
|
530
|
+
let f = s.parent;
|
|
531
|
+
for (; f !== null; )
|
|
532
|
+
fe.has(f) && (fe.delete(f), i.push(f)), f = f.parent;
|
|
533
|
+
for (let a = i.length - 1; a >= 0; a--) {
|
|
534
|
+
const l = i[a];
|
|
535
|
+
(l.f & (ae | H)) === 0 && it(l);
|
|
533
536
|
}
|
|
534
537
|
}
|
|
535
|
-
|
|
538
|
+
fe.clear();
|
|
536
539
|
}
|
|
537
540
|
}
|
|
538
|
-
|
|
541
|
+
fe = null;
|
|
539
542
|
}
|
|
540
543
|
}
|
|
541
|
-
function
|
|
544
|
+
function kn(e, t) {
|
|
542
545
|
if (e.reactions !== null)
|
|
543
546
|
for (const n of e.reactions) {
|
|
544
547
|
const r = n.f;
|
|
545
|
-
(r & F) !== 0 ?
|
|
548
|
+
(r & F) !== 0 ? kn(
|
|
546
549
|
/** @type {Derived} */
|
|
547
550
|
n,
|
|
548
551
|
t
|
|
549
|
-
) : (r & (
|
|
552
|
+
) : (r & (Vt | Se)) !== 0 && Tn(n, t) && (D(n, U), be(
|
|
550
553
|
/** @type {Effect} */
|
|
551
554
|
n
|
|
552
555
|
));
|
|
553
556
|
}
|
|
554
557
|
}
|
|
555
|
-
function
|
|
558
|
+
function Tn(e, t) {
|
|
556
559
|
if (e.deps !== null) {
|
|
557
560
|
for (const n of e.deps)
|
|
558
|
-
if (t.includes(n) || (n.f & F) !== 0 &&
|
|
561
|
+
if (t.includes(n) || (n.f & F) !== 0 && Tn(
|
|
559
562
|
/** @type {Derived} */
|
|
560
563
|
n,
|
|
561
564
|
t
|
|
@@ -565,33 +568,33 @@ function En(e, t) {
|
|
|
565
568
|
return !1;
|
|
566
569
|
}
|
|
567
570
|
function be(e) {
|
|
568
|
-
for (var t =
|
|
571
|
+
for (var t = pt = e; t.parent !== null; ) {
|
|
569
572
|
t = t.parent;
|
|
570
573
|
var n = t.f;
|
|
571
|
-
if (
|
|
574
|
+
if (Ot && t === m && (n & Se) !== 0)
|
|
572
575
|
return;
|
|
573
|
-
if ((n & (
|
|
576
|
+
if ((n & (ve | ue)) !== 0) {
|
|
574
577
|
if ((n & P) === 0) return;
|
|
575
578
|
t.f ^= P;
|
|
576
579
|
}
|
|
577
580
|
}
|
|
578
|
-
|
|
581
|
+
te.push(t);
|
|
579
582
|
}
|
|
580
|
-
function
|
|
581
|
-
let t = 0, n =
|
|
583
|
+
function Kr(e) {
|
|
584
|
+
let t = 0, n = Ee(0), r;
|
|
582
585
|
return () => {
|
|
583
|
-
|
|
584
|
-
|
|
586
|
+
rs() && (M(n), Fe(() => (t === 0 && (r = $t(() => e(() => Ve(n)))), t += 1, () => {
|
|
587
|
+
_e(() => {
|
|
585
588
|
t -= 1, t === 0 && (r?.(), r = void 0, Ve(n));
|
|
586
589
|
});
|
|
587
590
|
})));
|
|
588
591
|
};
|
|
589
592
|
}
|
|
590
|
-
var
|
|
591
|
-
function
|
|
592
|
-
new
|
|
593
|
+
var zr = ht | ke | ct;
|
|
594
|
+
function Jr(e, t, n) {
|
|
595
|
+
new Xr(e, t, n);
|
|
593
596
|
}
|
|
594
|
-
class
|
|
597
|
+
class Xr {
|
|
595
598
|
/** @type {Boundary | null} */
|
|
596
599
|
parent;
|
|
597
600
|
#t = !1;
|
|
@@ -604,9 +607,9 @@ class zr {
|
|
|
604
607
|
/** @type {((anchor: Node) => void)} */
|
|
605
608
|
#l;
|
|
606
609
|
/** @type {Effect} */
|
|
607
|
-
#
|
|
610
|
+
#a;
|
|
608
611
|
/** @type {Effect | null} */
|
|
609
|
-
#
|
|
612
|
+
#f = null;
|
|
610
613
|
/** @type {Effect | null} */
|
|
611
614
|
#s = null;
|
|
612
615
|
/** @type {Effect | null} */
|
|
@@ -627,7 +630,7 @@ class zr {
|
|
|
627
630
|
#m = () => {
|
|
628
631
|
this.#h && Le(this.#h, this.#o);
|
|
629
632
|
};
|
|
630
|
-
#g =
|
|
633
|
+
#g = Kr(() => (this.#h = Ee(this.#o), () => {
|
|
631
634
|
this.#h = null;
|
|
632
635
|
}));
|
|
633
636
|
/**
|
|
@@ -637,25 +640,25 @@ class zr {
|
|
|
637
640
|
*/
|
|
638
641
|
constructor(t, n, r) {
|
|
639
642
|
this.#e = t, this.#r = n, this.#l = r, this.parent = /** @type {Effect} */
|
|
640
|
-
m.b, this.#t = !!this.#r.pending, this.#
|
|
643
|
+
m.b, this.#t = !!this.#r.pending, this.#a = Kt(() => {
|
|
641
644
|
if (m.b = this, v) {
|
|
642
645
|
const s = this.#n;
|
|
643
|
-
|
|
646
|
+
vt(), /** @type {Comment} */
|
|
644
647
|
s.nodeType === De && /** @type {Comment} */
|
|
645
|
-
s.data === lt ? this.#w() : this
|
|
648
|
+
s.data === lt ? this.#w() : this.#y();
|
|
646
649
|
} else {
|
|
647
650
|
try {
|
|
648
|
-
this.#
|
|
651
|
+
this.#f = Y(() => r(this.#e));
|
|
649
652
|
} catch (s) {
|
|
650
653
|
this.error(s);
|
|
651
654
|
}
|
|
652
655
|
this.#c > 0 ? this.#v() : this.#t = !1;
|
|
653
656
|
}
|
|
654
|
-
},
|
|
657
|
+
}, zr), v && (this.#e = w);
|
|
655
658
|
}
|
|
656
|
-
|
|
659
|
+
#y() {
|
|
657
660
|
try {
|
|
658
|
-
this.#
|
|
661
|
+
this.#f = Y(() => this.#l(this.#e));
|
|
659
662
|
} catch (t) {
|
|
660
663
|
this.error(t);
|
|
661
664
|
}
|
|
@@ -663,8 +666,8 @@ class zr {
|
|
|
663
666
|
}
|
|
664
667
|
#w() {
|
|
665
668
|
const t = this.#r.pending;
|
|
666
|
-
t && (this.#s = Y(() => t(this.#e)),
|
|
667
|
-
this.#
|
|
669
|
+
t && (this.#s = Y(() => t(this.#e)), ne.enqueue(() => {
|
|
670
|
+
this.#f = this.#_(() => (ne.ensure(), Y(() => this.#l(this.#e)))), this.#c > 0 ? this.#v() : (Oe(
|
|
668
671
|
/** @type {Effect} */
|
|
669
672
|
this.#s,
|
|
670
673
|
() => {
|
|
@@ -687,14 +690,14 @@ class zr {
|
|
|
687
690
|
* @param {() => Effect | null} fn
|
|
688
691
|
*/
|
|
689
692
|
#_(t) {
|
|
690
|
-
var n = m, r =
|
|
691
|
-
K(this.#
|
|
693
|
+
var n = m, r = y, s = A;
|
|
694
|
+
K(this.#a), O(this.#a), Pe(this.#a.ctx);
|
|
692
695
|
try {
|
|
693
696
|
return t();
|
|
694
697
|
} catch (i) {
|
|
695
|
-
return
|
|
698
|
+
return $n(i), null;
|
|
696
699
|
} finally {
|
|
697
|
-
K(n),
|
|
700
|
+
K(n), O(r), Pe(s);
|
|
698
701
|
}
|
|
699
702
|
}
|
|
700
703
|
#v() {
|
|
@@ -702,7 +705,7 @@ class zr {
|
|
|
702
705
|
/** @type {(anchor: Node) => void} */
|
|
703
706
|
this.#r.pending
|
|
704
707
|
);
|
|
705
|
-
this.#
|
|
708
|
+
this.#f !== null && (this.#u = document.createDocumentFragment(), Yn(this.#f, this.#u)), this.#s === null && (this.#s = Y(() => t(this.#e)));
|
|
706
709
|
}
|
|
707
710
|
/**
|
|
708
711
|
* Updates the pending count associated with the currently visible pending snippet,
|
|
@@ -714,7 +717,7 @@ class zr {
|
|
|
714
717
|
this.parent && this.parent.#p(t);
|
|
715
718
|
return;
|
|
716
719
|
}
|
|
717
|
-
this.#c += t, this.#c === 0 && (this.#t = !1, this.#s &&
|
|
720
|
+
this.#c += t, this.#c === 0 && (this.#t = !1, this.#s && Oe(this.#s, () => {
|
|
718
721
|
this.#s = null;
|
|
719
722
|
}), this.#u && (this.#e.before(this.#u), this.#u = null));
|
|
720
723
|
}
|
|
@@ -725,7 +728,7 @@ class zr {
|
|
|
725
728
|
* @param {1 | -1} d
|
|
726
729
|
*/
|
|
727
730
|
update_pending_count(t) {
|
|
728
|
-
this.#p(t), this.#o += t,
|
|
731
|
+
this.#p(t), this.#o += t, Nt.add(this.#m);
|
|
729
732
|
}
|
|
730
733
|
get_effect_pending() {
|
|
731
734
|
return this.#g(), M(
|
|
@@ -739,29 +742,29 @@ class zr {
|
|
|
739
742
|
let r = this.#r.failed;
|
|
740
743
|
if (this.#d || !n && !r)
|
|
741
744
|
throw t;
|
|
742
|
-
this.#
|
|
745
|
+
this.#f && (L(this.#f), this.#f = null), this.#s && (L(this.#s), this.#s = null), this.#i && (L(this.#i), this.#i = null), v && (C(
|
|
743
746
|
/** @type {TemplateNode} */
|
|
744
747
|
this.#n
|
|
745
|
-
),
|
|
748
|
+
), jr(), C(rt()));
|
|
746
749
|
var s = !1, i = !1;
|
|
747
|
-
const
|
|
750
|
+
const f = () => {
|
|
748
751
|
if (s) {
|
|
749
|
-
|
|
752
|
+
Fr();
|
|
750
753
|
return;
|
|
751
754
|
}
|
|
752
|
-
s = !0, i &&
|
|
755
|
+
s = !0, i && Lr(), ne.ensure(), this.#o = 0, this.#i !== null && Oe(this.#i, () => {
|
|
753
756
|
this.#i = null;
|
|
754
|
-
}), this.#t = this.has_pending_snippet(), this.#
|
|
757
|
+
}), this.#t = this.has_pending_snippet(), this.#f = this.#_(() => (this.#d = !1, Y(() => this.#l(this.#e)))), this.#c > 0 ? this.#v() : this.#t = !1;
|
|
755
758
|
};
|
|
756
|
-
var
|
|
759
|
+
var a = y;
|
|
757
760
|
try {
|
|
758
|
-
|
|
761
|
+
O(null), i = !0, n?.(t, f), i = !1;
|
|
759
762
|
} catch (l) {
|
|
760
|
-
Me(l, this.#
|
|
763
|
+
Me(l, this.#a && this.#a.parent);
|
|
761
764
|
} finally {
|
|
762
|
-
|
|
765
|
+
O(a);
|
|
763
766
|
}
|
|
764
|
-
r &&
|
|
767
|
+
r && _e(() => {
|
|
765
768
|
this.#i = this.#_(() => {
|
|
766
769
|
this.#d = !0;
|
|
767
770
|
try {
|
|
@@ -769,14 +772,14 @@ class zr {
|
|
|
769
772
|
r(
|
|
770
773
|
this.#e,
|
|
771
774
|
() => t,
|
|
772
|
-
() =>
|
|
775
|
+
() => f
|
|
773
776
|
);
|
|
774
777
|
});
|
|
775
778
|
} catch (l) {
|
|
776
779
|
return Me(
|
|
777
780
|
l,
|
|
778
781
|
/** @type {Effect} */
|
|
779
|
-
this.#
|
|
782
|
+
this.#a.parent
|
|
780
783
|
), null;
|
|
781
784
|
} finally {
|
|
782
785
|
this.#d = !1;
|
|
@@ -785,50 +788,50 @@ class zr {
|
|
|
785
788
|
});
|
|
786
789
|
}
|
|
787
790
|
}
|
|
788
|
-
function
|
|
789
|
-
const r = Ke() ?
|
|
791
|
+
function Zr(e, t, n) {
|
|
792
|
+
const r = Ke() ? mt : Yt;
|
|
790
793
|
if (t.length === 0) {
|
|
791
794
|
n(e.map(r));
|
|
792
795
|
return;
|
|
793
796
|
}
|
|
794
|
-
var s =
|
|
797
|
+
var s = b, i = (
|
|
795
798
|
/** @type {Effect} */
|
|
796
799
|
m
|
|
797
|
-
),
|
|
798
|
-
Promise.all(t.map((l) => /* @__PURE__ */
|
|
799
|
-
|
|
800
|
+
), f = Qr(), a = v;
|
|
801
|
+
Promise.all(t.map((l) => /* @__PURE__ */ es(l))).then((l) => {
|
|
802
|
+
f();
|
|
800
803
|
try {
|
|
801
804
|
n([...e.map(r), ...l]);
|
|
802
805
|
} catch (u) {
|
|
803
|
-
(i.f &
|
|
806
|
+
(i.f & ae) === 0 && Me(u, i);
|
|
804
807
|
}
|
|
805
|
-
|
|
808
|
+
a && B(!1), s?.deactivate(), Ct();
|
|
806
809
|
}).catch((l) => {
|
|
807
810
|
Me(l, i);
|
|
808
811
|
});
|
|
809
812
|
}
|
|
810
|
-
function
|
|
811
|
-
var e = m, t =
|
|
813
|
+
function Qr() {
|
|
814
|
+
var e = m, t = y, n = A, r = b, s = v;
|
|
812
815
|
if (s)
|
|
813
816
|
var i = w;
|
|
814
817
|
return function() {
|
|
815
|
-
K(e),
|
|
818
|
+
K(e), O(t), Pe(n), r?.activate(), s && (B(!0), C(i));
|
|
816
819
|
};
|
|
817
820
|
}
|
|
818
821
|
function Ct() {
|
|
819
|
-
K(null),
|
|
822
|
+
K(null), O(null), Pe(null);
|
|
820
823
|
}
|
|
821
824
|
// @__NO_SIDE_EFFECTS__
|
|
822
|
-
function
|
|
823
|
-
var t = F | U, n =
|
|
825
|
+
function mt(e) {
|
|
826
|
+
var t = F | U, n = y !== null && (y.f & F) !== 0 ? (
|
|
824
827
|
/** @type {Derived} */
|
|
825
|
-
|
|
828
|
+
y
|
|
826
829
|
) : null;
|
|
827
|
-
return m === null || n !== null && (n.f & W) !== 0 ? t |= W : m.f |=
|
|
830
|
+
return m === null || n !== null && (n.f & W) !== 0 ? t |= W : m.f |= ke, {
|
|
828
831
|
ctx: A,
|
|
829
832
|
deps: null,
|
|
830
833
|
effects: null,
|
|
831
|
-
equals:
|
|
834
|
+
equals: mn,
|
|
832
835
|
f: t,
|
|
833
836
|
fn: e,
|
|
834
837
|
reactions: null,
|
|
@@ -843,12 +846,12 @@ function pt(e) {
|
|
|
843
846
|
};
|
|
844
847
|
}
|
|
845
848
|
// @__NO_SIDE_EFFECTS__
|
|
846
|
-
function
|
|
849
|
+
function es(e, t) {
|
|
847
850
|
let n = (
|
|
848
851
|
/** @type {Effect | null} */
|
|
849
852
|
m
|
|
850
853
|
);
|
|
851
|
-
n === null &&
|
|
854
|
+
n === null && Tr();
|
|
852
855
|
var r = (
|
|
853
856
|
/** @type {Boundary} */
|
|
854
857
|
n.b
|
|
@@ -856,44 +859,44 @@ function Zr(e, t) {
|
|
|
856
859
|
/** @type {Promise<V>} */
|
|
857
860
|
/** @type {unknown} */
|
|
858
861
|
void 0
|
|
859
|
-
), i =
|
|
862
|
+
), i = Ee(
|
|
860
863
|
/** @type {V} */
|
|
861
864
|
N
|
|
862
|
-
),
|
|
863
|
-
return
|
|
864
|
-
var l =
|
|
865
|
+
), f = !y, a = /* @__PURE__ */ new Map();
|
|
866
|
+
return fs(() => {
|
|
867
|
+
var l = dn();
|
|
865
868
|
s = l.promise;
|
|
866
869
|
try {
|
|
867
870
|
Promise.resolve(e()).then(l.resolve, l.reject).then(() => {
|
|
868
|
-
u ===
|
|
871
|
+
u === b && u.committed && u.deactivate(), Ct();
|
|
869
872
|
});
|
|
870
873
|
} catch (h) {
|
|
871
874
|
l.reject(h), Ct();
|
|
872
875
|
}
|
|
873
876
|
var u = (
|
|
874
877
|
/** @type {Batch} */
|
|
875
|
-
|
|
878
|
+
b
|
|
876
879
|
);
|
|
877
|
-
if (
|
|
880
|
+
if (f) {
|
|
878
881
|
var c = !r.is_pending();
|
|
879
|
-
r.update_pending_count(1), u.increment(c),
|
|
882
|
+
r.update_pending_count(1), u.increment(c), a.get(u)?.reject(xe), a.delete(u), a.set(u, l);
|
|
880
883
|
}
|
|
881
884
|
const _ = (h, d = void 0) => {
|
|
882
885
|
if (u.activate(), d)
|
|
883
|
-
d !==
|
|
886
|
+
d !== xe && (i.f |= we, Le(i, d));
|
|
884
887
|
else {
|
|
885
|
-
(i.f &
|
|
886
|
-
for (const [o, g] of
|
|
887
|
-
if (
|
|
888
|
-
g.reject(
|
|
888
|
+
(i.f & we) !== 0 && (i.f ^= we), Le(i, h);
|
|
889
|
+
for (const [o, g] of a) {
|
|
890
|
+
if (a.delete(o), o === u) break;
|
|
891
|
+
g.reject(xe);
|
|
889
892
|
}
|
|
890
893
|
}
|
|
891
|
-
|
|
894
|
+
f && (r.update_pending_count(-1), u.decrement(c));
|
|
892
895
|
};
|
|
893
896
|
l.promise.then(_, (h) => _(null, h || "unknown"));
|
|
894
|
-
}),
|
|
895
|
-
for (const l of
|
|
896
|
-
l.reject(
|
|
897
|
+
}), yt(() => {
|
|
898
|
+
for (const l of a.values())
|
|
899
|
+
l.reject(xe);
|
|
897
900
|
}), new Promise((l) => {
|
|
898
901
|
function u(c) {
|
|
899
902
|
function _() {
|
|
@@ -905,16 +908,16 @@ function Zr(e, t) {
|
|
|
905
908
|
});
|
|
906
909
|
}
|
|
907
910
|
// @__NO_SIDE_EFFECTS__
|
|
908
|
-
function
|
|
909
|
-
const t = /* @__PURE__ */
|
|
910
|
-
return
|
|
911
|
+
function Bs(e) {
|
|
912
|
+
const t = /* @__PURE__ */ mt(e);
|
|
913
|
+
return Wn(t), t;
|
|
911
914
|
}
|
|
912
915
|
// @__NO_SIDE_EFFECTS__
|
|
913
|
-
function
|
|
914
|
-
const t = /* @__PURE__ */
|
|
915
|
-
return t.equals =
|
|
916
|
+
function Yt(e) {
|
|
917
|
+
const t = /* @__PURE__ */ mt(e);
|
|
918
|
+
return t.equals = gn, t;
|
|
916
919
|
}
|
|
917
|
-
function
|
|
920
|
+
function An(e) {
|
|
918
921
|
var t = e.effects;
|
|
919
922
|
if (t !== null) {
|
|
920
923
|
e.effects = null;
|
|
@@ -925,7 +928,7 @@ function Sn(e) {
|
|
|
925
928
|
);
|
|
926
929
|
}
|
|
927
930
|
}
|
|
928
|
-
function
|
|
931
|
+
function ts(e) {
|
|
929
932
|
for (var t = e.parent; t !== null; ) {
|
|
930
933
|
if ((t.f & F) === 0)
|
|
931
934
|
return (
|
|
@@ -936,34 +939,34 @@ function Qr(e) {
|
|
|
936
939
|
}
|
|
937
940
|
return null;
|
|
938
941
|
}
|
|
939
|
-
function
|
|
942
|
+
function Wt(e) {
|
|
940
943
|
var t, n = m;
|
|
941
|
-
K(
|
|
944
|
+
K(ts(e));
|
|
942
945
|
try {
|
|
943
|
-
|
|
946
|
+
An(e), t = Jn(e);
|
|
944
947
|
} finally {
|
|
945
948
|
K(n);
|
|
946
949
|
}
|
|
947
950
|
return t;
|
|
948
951
|
}
|
|
949
|
-
function
|
|
950
|
-
var t =
|
|
951
|
-
if (e.equals(t) || (e.v = t, e.wv =
|
|
952
|
+
function xn(e) {
|
|
953
|
+
var t = Wt(e);
|
|
954
|
+
if (e.equals(t) || (e.v = t, e.wv = Kn()), !Te)
|
|
952
955
|
if (z !== null)
|
|
953
956
|
z.set(e, e.v);
|
|
954
957
|
else {
|
|
955
|
-
var n = (ce || (e.f & W) !== 0) && e.deps !== null ?
|
|
958
|
+
var n = (ce || (e.f & W) !== 0) && e.deps !== null ? pe : P;
|
|
956
959
|
D(e, n);
|
|
957
960
|
}
|
|
958
961
|
}
|
|
959
|
-
const
|
|
960
|
-
function
|
|
962
|
+
const de = /* @__PURE__ */ new Map();
|
|
963
|
+
function Ee(e, t) {
|
|
961
964
|
var n = {
|
|
962
965
|
f: 0,
|
|
963
966
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
964
967
|
v: e,
|
|
965
968
|
reactions: null,
|
|
966
|
-
equals:
|
|
969
|
+
equals: mn,
|
|
967
970
|
rv: 0,
|
|
968
971
|
wv: 0
|
|
969
972
|
};
|
|
@@ -971,74 +974,74 @@ function ye(e, t) {
|
|
|
971
974
|
}
|
|
972
975
|
// @__NO_SIDE_EFFECTS__
|
|
973
976
|
function oe(e, t) {
|
|
974
|
-
const n =
|
|
975
|
-
return
|
|
977
|
+
const n = Ee(e);
|
|
978
|
+
return Wn(n), n;
|
|
976
979
|
}
|
|
977
980
|
// @__NO_SIDE_EFFECTS__
|
|
978
|
-
function
|
|
979
|
-
const r =
|
|
980
|
-
return t || (r.equals =
|
|
981
|
+
function Nn(e, t = !1, n = !0) {
|
|
982
|
+
const r = Ee(e);
|
|
983
|
+
return t || (r.equals = gn), Ge && n && A !== null && A.l !== null && (A.l.s ??= []).push(r), r;
|
|
981
984
|
}
|
|
982
|
-
function
|
|
983
|
-
|
|
985
|
+
function ee(e, t, n = !1) {
|
|
986
|
+
y !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
984
987
|
// to ensure we error if state is set inside an inspect effect
|
|
985
|
-
(!J || (
|
|
986
|
-
let r = n ?
|
|
988
|
+
(!J || (y.f & Zt) !== 0) && Ke() && (y.f & (F | Se | Vt | Zt)) !== 0 && !le?.includes(e) && Mr();
|
|
989
|
+
let r = n ? Ne(t) : t;
|
|
987
990
|
return Le(e, r);
|
|
988
991
|
}
|
|
989
992
|
function Le(e, t) {
|
|
990
993
|
if (!e.equals(t)) {
|
|
991
994
|
var n = e.v;
|
|
992
|
-
|
|
993
|
-
var r =
|
|
994
|
-
r.capture(e, n), (e.f & F) !== 0 && ((e.f & U) !== 0 &&
|
|
995
|
+
Te ? de.set(e, t) : de.set(e, n), e.v = t;
|
|
996
|
+
var r = ne.ensure();
|
|
997
|
+
r.capture(e, n), (e.f & F) !== 0 && ((e.f & U) !== 0 && Wt(
|
|
995
998
|
/** @type {Derived} */
|
|
996
999
|
e
|
|
997
|
-
), D(e, (e.f & W) === 0 ? P :
|
|
1000
|
+
), D(e, (e.f & W) === 0 ? P : pe)), e.wv = Kn(), On(e, U), Ke() && m !== null && (m.f & P) !== 0 && (m.f & (ue | ve)) === 0 && (V === null ? us([e]) : V.push(e));
|
|
998
1001
|
}
|
|
999
1002
|
return t;
|
|
1000
1003
|
}
|
|
1001
|
-
function
|
|
1004
|
+
function Hs(e, t = 1) {
|
|
1002
1005
|
var n = M(e), r = t === 1 ? n++ : n--;
|
|
1003
|
-
return
|
|
1006
|
+
return ee(e, n), r;
|
|
1004
1007
|
}
|
|
1005
1008
|
function Ve(e) {
|
|
1006
|
-
|
|
1009
|
+
ee(e, e.v + 1);
|
|
1007
1010
|
}
|
|
1008
|
-
function
|
|
1011
|
+
function On(e, t) {
|
|
1009
1012
|
var n = e.reactions;
|
|
1010
1013
|
if (n !== null)
|
|
1011
1014
|
for (var r = Ke(), s = n.length, i = 0; i < s; i++) {
|
|
1012
|
-
var
|
|
1013
|
-
if (!(!r &&
|
|
1014
|
-
var l = (
|
|
1015
|
-
l && D(
|
|
1015
|
+
var f = n[i], a = f.f;
|
|
1016
|
+
if (!(!r && f === m)) {
|
|
1017
|
+
var l = (a & U) === 0;
|
|
1018
|
+
l && D(f, t), (a & F) !== 0 ? On(
|
|
1016
1019
|
/** @type {Derived} */
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
) : l && ((
|
|
1020
|
+
f,
|
|
1021
|
+
pe
|
|
1022
|
+
) : l && ((a & Se) !== 0 && fe !== null && fe.add(
|
|
1020
1023
|
/** @type {Effect} */
|
|
1021
|
-
|
|
1024
|
+
f
|
|
1022
1025
|
), be(
|
|
1023
1026
|
/** @type {Effect} */
|
|
1024
|
-
|
|
1027
|
+
f
|
|
1025
1028
|
));
|
|
1026
1029
|
}
|
|
1027
1030
|
}
|
|
1028
1031
|
}
|
|
1029
|
-
function
|
|
1030
|
-
if (typeof e != "object" || e === null ||
|
|
1032
|
+
function Ne(e) {
|
|
1033
|
+
if (typeof e != "object" || e === null || he in e)
|
|
1031
1034
|
return e;
|
|
1032
|
-
const t =
|
|
1033
|
-
if (t !==
|
|
1035
|
+
const t = Bt(e);
|
|
1036
|
+
if (t !== wr && t !== $r)
|
|
1034
1037
|
return e;
|
|
1035
|
-
var n = /* @__PURE__ */ new Map(), r = ut(e), s = /* @__PURE__ */ oe(0), i =
|
|
1036
|
-
if (
|
|
1037
|
-
return
|
|
1038
|
-
var l =
|
|
1039
|
-
|
|
1040
|
-
var c =
|
|
1041
|
-
return
|
|
1038
|
+
var n = /* @__PURE__ */ new Map(), r = ut(e), s = /* @__PURE__ */ oe(0), i = $e, f = (a) => {
|
|
1039
|
+
if ($e === i)
|
|
1040
|
+
return a();
|
|
1041
|
+
var l = y, u = $e;
|
|
1042
|
+
O(null), fn(i);
|
|
1043
|
+
var c = a();
|
|
1044
|
+
return O(l), fn(u), c;
|
|
1042
1045
|
};
|
|
1043
1046
|
return r && n.set("length", /* @__PURE__ */ oe(
|
|
1044
1047
|
/** @type {any[]} */
|
|
@@ -1047,40 +1050,40 @@ function xe(e) {
|
|
|
1047
1050
|
/** @type {any} */
|
|
1048
1051
|
e,
|
|
1049
1052
|
{
|
|
1050
|
-
defineProperty(
|
|
1051
|
-
(!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) &&
|
|
1053
|
+
defineProperty(a, l, u) {
|
|
1054
|
+
(!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Ir();
|
|
1052
1055
|
var c = n.get(l);
|
|
1053
|
-
return c === void 0 ? c =
|
|
1056
|
+
return c === void 0 ? c = f(() => {
|
|
1054
1057
|
var _ = /* @__PURE__ */ oe(u.value);
|
|
1055
1058
|
return n.set(l, _), _;
|
|
1056
|
-
}) :
|
|
1059
|
+
}) : ee(c, u.value, !0), !0;
|
|
1057
1060
|
},
|
|
1058
|
-
deleteProperty(
|
|
1061
|
+
deleteProperty(a, l) {
|
|
1059
1062
|
var u = n.get(l);
|
|
1060
1063
|
if (u === void 0) {
|
|
1061
|
-
if (l in
|
|
1062
|
-
const c =
|
|
1064
|
+
if (l in a) {
|
|
1065
|
+
const c = f(() => /* @__PURE__ */ oe(N));
|
|
1063
1066
|
n.set(l, c), Ve(s);
|
|
1064
1067
|
}
|
|
1065
1068
|
} else
|
|
1066
|
-
|
|
1069
|
+
ee(u, N), Ve(s);
|
|
1067
1070
|
return !0;
|
|
1068
1071
|
},
|
|
1069
|
-
get(
|
|
1070
|
-
if (l ===
|
|
1072
|
+
get(a, l, u) {
|
|
1073
|
+
if (l === he)
|
|
1071
1074
|
return e;
|
|
1072
|
-
var c = n.get(l), _ = l in
|
|
1073
|
-
if (c === void 0 && (!_ ||
|
|
1074
|
-
var d =
|
|
1075
|
+
var c = n.get(l), _ = l in a;
|
|
1076
|
+
if (c === void 0 && (!_ || ye(a, l)?.writable) && (c = f(() => {
|
|
1077
|
+
var d = Ne(_ ? a[l] : N), o = /* @__PURE__ */ oe(d);
|
|
1075
1078
|
return o;
|
|
1076
1079
|
}), n.set(l, c)), c !== void 0) {
|
|
1077
1080
|
var h = M(c);
|
|
1078
1081
|
return h === N ? void 0 : h;
|
|
1079
1082
|
}
|
|
1080
|
-
return Reflect.get(
|
|
1083
|
+
return Reflect.get(a, l, u);
|
|
1081
1084
|
},
|
|
1082
|
-
getOwnPropertyDescriptor(
|
|
1083
|
-
var u = Reflect.getOwnPropertyDescriptor(
|
|
1085
|
+
getOwnPropertyDescriptor(a, l) {
|
|
1086
|
+
var u = Reflect.getOwnPropertyDescriptor(a, l);
|
|
1084
1087
|
if (u && "value" in u) {
|
|
1085
1088
|
var c = n.get(l);
|
|
1086
1089
|
c && (u.value = M(c));
|
|
@@ -1096,13 +1099,13 @@ function xe(e) {
|
|
|
1096
1099
|
}
|
|
1097
1100
|
return u;
|
|
1098
1101
|
},
|
|
1099
|
-
has(
|
|
1100
|
-
if (l ===
|
|
1102
|
+
has(a, l) {
|
|
1103
|
+
if (l === he)
|
|
1101
1104
|
return !0;
|
|
1102
|
-
var u = n.get(l), c = u !== void 0 && u.v !== N || Reflect.has(
|
|
1103
|
-
if (u !== void 0 || m !== null && (!c ||
|
|
1104
|
-
u === void 0 && (u =
|
|
1105
|
-
var h = c ?
|
|
1105
|
+
var u = n.get(l), c = u !== void 0 && u.v !== N || Reflect.has(a, l);
|
|
1106
|
+
if (u !== void 0 || m !== null && (!c || ye(a, l)?.writable)) {
|
|
1107
|
+
u === void 0 && (u = f(() => {
|
|
1108
|
+
var h = c ? Ne(a[l]) : N, d = /* @__PURE__ */ oe(h);
|
|
1106
1109
|
return d;
|
|
1107
1110
|
}), n.set(l, u));
|
|
1108
1111
|
var _ = M(u);
|
|
@@ -1111,138 +1114,138 @@ function xe(e) {
|
|
|
1111
1114
|
}
|
|
1112
1115
|
return c;
|
|
1113
1116
|
},
|
|
1114
|
-
set(
|
|
1115
|
-
var _ = n.get(l), h = l in
|
|
1117
|
+
set(a, l, u, c) {
|
|
1118
|
+
var _ = n.get(l), h = l in a;
|
|
1116
1119
|
if (r && l === "length")
|
|
1117
1120
|
for (var d = u; d < /** @type {Source<number>} */
|
|
1118
1121
|
_.v; d += 1) {
|
|
1119
1122
|
var o = n.get(d + "");
|
|
1120
|
-
o !== void 0 ?
|
|
1123
|
+
o !== void 0 ? ee(o, N) : d in a && (o = f(() => /* @__PURE__ */ oe(N)), n.set(d + "", o));
|
|
1121
1124
|
}
|
|
1122
1125
|
if (_ === void 0)
|
|
1123
|
-
(!h ||
|
|
1126
|
+
(!h || ye(a, l)?.writable) && (_ = f(() => /* @__PURE__ */ oe(void 0)), ee(_, Ne(u)), n.set(l, _));
|
|
1124
1127
|
else {
|
|
1125
1128
|
h = _.v !== N;
|
|
1126
|
-
var g =
|
|
1127
|
-
|
|
1129
|
+
var g = f(() => Ne(u));
|
|
1130
|
+
ee(_, g);
|
|
1128
1131
|
}
|
|
1129
|
-
var
|
|
1130
|
-
if (
|
|
1132
|
+
var $ = Reflect.getOwnPropertyDescriptor(a, l);
|
|
1133
|
+
if ($?.set && $.set.call(c, u), !h) {
|
|
1131
1134
|
if (r && typeof l == "string") {
|
|
1132
1135
|
var E = (
|
|
1133
1136
|
/** @type {Source<number>} */
|
|
1134
1137
|
n.get("length")
|
|
1135
1138
|
), T = Number(l);
|
|
1136
|
-
Number.isInteger(T) && T >= E.v &&
|
|
1139
|
+
Number.isInteger(T) && T >= E.v && ee(E, T + 1);
|
|
1137
1140
|
}
|
|
1138
1141
|
Ve(s);
|
|
1139
1142
|
}
|
|
1140
1143
|
return !0;
|
|
1141
1144
|
},
|
|
1142
|
-
ownKeys(
|
|
1145
|
+
ownKeys(a) {
|
|
1143
1146
|
M(s);
|
|
1144
|
-
var l = Reflect.ownKeys(
|
|
1147
|
+
var l = Reflect.ownKeys(a).filter((_) => {
|
|
1145
1148
|
var h = n.get(_);
|
|
1146
1149
|
return h === void 0 || h.v !== N;
|
|
1147
1150
|
});
|
|
1148
1151
|
for (var [u, c] of n)
|
|
1149
|
-
c.v !== N && !(u in
|
|
1152
|
+
c.v !== N && !(u in a) && l.push(u);
|
|
1150
1153
|
return l;
|
|
1151
1154
|
},
|
|
1152
1155
|
setPrototypeOf() {
|
|
1153
|
-
|
|
1156
|
+
Pr();
|
|
1154
1157
|
}
|
|
1155
1158
|
}
|
|
1156
1159
|
);
|
|
1157
1160
|
}
|
|
1158
|
-
function
|
|
1161
|
+
function en(e) {
|
|
1159
1162
|
try {
|
|
1160
|
-
if (e !== null && typeof e == "object" &&
|
|
1161
|
-
return e[
|
|
1163
|
+
if (e !== null && typeof e == "object" && he in e)
|
|
1164
|
+
return e[he];
|
|
1162
1165
|
} catch {
|
|
1163
1166
|
}
|
|
1164
1167
|
return e;
|
|
1165
1168
|
}
|
|
1166
|
-
function
|
|
1167
|
-
return Object.is(
|
|
1169
|
+
function Cn(e, t) {
|
|
1170
|
+
return Object.is(en(e), en(t));
|
|
1168
1171
|
}
|
|
1169
|
-
var
|
|
1170
|
-
function
|
|
1171
|
-
if (
|
|
1172
|
-
|
|
1172
|
+
var tn, Rn, In, Pn;
|
|
1173
|
+
function Rt() {
|
|
1174
|
+
if (tn === void 0) {
|
|
1175
|
+
tn = window, Rn = /Firefox/.test(navigator.userAgent);
|
|
1173
1176
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1174
|
-
|
|
1177
|
+
In = ye(t, "firstChild").get, Pn = ye(t, "nextSibling").get, Xt(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Xt(n) && (n.__t = void 0);
|
|
1175
1178
|
}
|
|
1176
1179
|
}
|
|
1177
1180
|
function G(e = "") {
|
|
1178
1181
|
return document.createTextNode(e);
|
|
1179
1182
|
}
|
|
1180
1183
|
// @__NO_SIDE_EFFECTS__
|
|
1181
|
-
function
|
|
1182
|
-
return
|
|
1184
|
+
function se(e) {
|
|
1185
|
+
return In.call(e);
|
|
1183
1186
|
}
|
|
1184
1187
|
// @__NO_SIDE_EFFECTS__
|
|
1185
|
-
function
|
|
1186
|
-
return
|
|
1188
|
+
function ie(e) {
|
|
1189
|
+
return Pn.call(e);
|
|
1187
1190
|
}
|
|
1188
|
-
function
|
|
1191
|
+
function Us(e, t) {
|
|
1189
1192
|
if (!v)
|
|
1190
|
-
return /* @__PURE__ */
|
|
1193
|
+
return /* @__PURE__ */ se(e);
|
|
1191
1194
|
var n = (
|
|
1192
1195
|
/** @type {TemplateNode} */
|
|
1193
|
-
/* @__PURE__ */
|
|
1196
|
+
/* @__PURE__ */ se(w)
|
|
1194
1197
|
);
|
|
1195
1198
|
if (n === null)
|
|
1196
1199
|
n = w.appendChild(G());
|
|
1197
|
-
else if (t && n.nodeType !==
|
|
1200
|
+
else if (t && n.nodeType !== dt) {
|
|
1198
1201
|
var r = G();
|
|
1199
|
-
return n?.before(r),
|
|
1202
|
+
return n?.before(r), C(r), r;
|
|
1200
1203
|
}
|
|
1201
|
-
return
|
|
1204
|
+
return C(n), n;
|
|
1202
1205
|
}
|
|
1203
|
-
function
|
|
1206
|
+
function Vs(e, t = !1) {
|
|
1204
1207
|
if (!v) {
|
|
1205
1208
|
var n = (
|
|
1206
1209
|
/** @type {DocumentFragment} */
|
|
1207
|
-
/* @__PURE__ */
|
|
1210
|
+
/* @__PURE__ */ se(
|
|
1208
1211
|
/** @type {Node} */
|
|
1209
1212
|
e
|
|
1210
1213
|
)
|
|
1211
1214
|
);
|
|
1212
|
-
return n instanceof Comment && n.data === "" ? /* @__PURE__ */
|
|
1215
|
+
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ ie(n) : n;
|
|
1213
1216
|
}
|
|
1214
|
-
if (t && w?.nodeType !==
|
|
1217
|
+
if (t && w?.nodeType !== dt) {
|
|
1215
1218
|
var r = G();
|
|
1216
|
-
return w?.before(r),
|
|
1219
|
+
return w?.before(r), C(r), r;
|
|
1217
1220
|
}
|
|
1218
1221
|
return w;
|
|
1219
1222
|
}
|
|
1220
|
-
function
|
|
1223
|
+
function Ys(e, t = 1, n = !1) {
|
|
1221
1224
|
let r = v ? w : e;
|
|
1222
1225
|
for (var s; t--; )
|
|
1223
1226
|
s = r, r = /** @type {TemplateNode} */
|
|
1224
|
-
/* @__PURE__ */
|
|
1227
|
+
/* @__PURE__ */ ie(r);
|
|
1225
1228
|
if (!v)
|
|
1226
1229
|
return r;
|
|
1227
|
-
if (n && r?.nodeType !==
|
|
1230
|
+
if (n && r?.nodeType !== dt) {
|
|
1228
1231
|
var i = G();
|
|
1229
|
-
return r === null ? s?.after(i) : r.before(i),
|
|
1232
|
+
return r === null ? s?.after(i) : r.before(i), C(i), i;
|
|
1230
1233
|
}
|
|
1231
|
-
return
|
|
1234
|
+
return C(r), /** @type {TemplateNode} */
|
|
1232
1235
|
r;
|
|
1233
1236
|
}
|
|
1234
|
-
function
|
|
1237
|
+
function Gt(e) {
|
|
1235
1238
|
e.textContent = "";
|
|
1236
1239
|
}
|
|
1237
|
-
function
|
|
1240
|
+
function Mn() {
|
|
1238
1241
|
return !1;
|
|
1239
1242
|
}
|
|
1240
|
-
function
|
|
1241
|
-
v && /* @__PURE__ */
|
|
1243
|
+
function Ws(e) {
|
|
1244
|
+
v && /* @__PURE__ */ se(e) !== null && Gt(e);
|
|
1242
1245
|
}
|
|
1243
|
-
let
|
|
1244
|
-
function
|
|
1245
|
-
|
|
1246
|
+
let nn = !1;
|
|
1247
|
+
function Ln() {
|
|
1248
|
+
nn || (nn = !0, document.addEventListener(
|
|
1246
1249
|
"reset",
|
|
1247
1250
|
(e) => {
|
|
1248
1251
|
Promise.resolve().then(() => {
|
|
@@ -1259,30 +1262,30 @@ function In() {
|
|
|
1259
1262
|
{ capture: !0 }
|
|
1260
1263
|
));
|
|
1261
1264
|
}
|
|
1262
|
-
function
|
|
1263
|
-
var t =
|
|
1264
|
-
|
|
1265
|
+
function gt(e) {
|
|
1266
|
+
var t = y, n = m;
|
|
1267
|
+
O(null), K(null);
|
|
1265
1268
|
try {
|
|
1266
1269
|
return e();
|
|
1267
1270
|
} finally {
|
|
1268
|
-
|
|
1271
|
+
O(t), K(n);
|
|
1269
1272
|
}
|
|
1270
1273
|
}
|
|
1271
1274
|
function ze(e, t, n, r = n) {
|
|
1272
|
-
e.addEventListener(t, () =>
|
|
1275
|
+
e.addEventListener(t, () => gt(n));
|
|
1273
1276
|
const s = e.__on_r;
|
|
1274
1277
|
s ? e.__on_r = () => {
|
|
1275
1278
|
s(), r(!0);
|
|
1276
|
-
} : e.__on_r = () => r(!0),
|
|
1279
|
+
} : e.__on_r = () => r(!0), Ln();
|
|
1277
1280
|
}
|
|
1278
|
-
function
|
|
1279
|
-
m === null &&
|
|
1281
|
+
function Dn(e) {
|
|
1282
|
+
m === null && y === null && Nr(), y !== null && (y.f & W) !== 0 && m === null && xr(), Te && Ar();
|
|
1280
1283
|
}
|
|
1281
|
-
function
|
|
1284
|
+
function ns(e, t) {
|
|
1282
1285
|
var n = t.last;
|
|
1283
1286
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1284
1287
|
}
|
|
1285
|
-
function
|
|
1288
|
+
function X(e, t, n, r = !0) {
|
|
1286
1289
|
var s = m;
|
|
1287
1290
|
s !== null && (s.f & H) !== 0 && (e |= H);
|
|
1288
1291
|
var i = {
|
|
@@ -1305,37 +1308,37 @@ function ie(e, t, n, r = !0) {
|
|
|
1305
1308
|
};
|
|
1306
1309
|
if (n)
|
|
1307
1310
|
try {
|
|
1308
|
-
it(i), i.f |=
|
|
1311
|
+
it(i), i.f |= Ut;
|
|
1309
1312
|
} catch (l) {
|
|
1310
1313
|
throw L(i), l;
|
|
1311
1314
|
}
|
|
1312
1315
|
else t !== null && be(i);
|
|
1313
1316
|
if (r) {
|
|
1314
|
-
var
|
|
1315
|
-
if (n &&
|
|
1316
|
-
(
|
|
1317
|
-
var
|
|
1317
|
+
var f = i;
|
|
1318
|
+
if (n && f.deps === null && f.teardown === null && f.nodes_start === null && f.first === f.last && // either `null`, or a singular child
|
|
1319
|
+
(f.f & ke) === 0 && (f = f.first), f !== null && (f.parent = s, s !== null && ns(f, s), y !== null && (y.f & F) !== 0 && (e & ve) === 0)) {
|
|
1320
|
+
var a = (
|
|
1318
1321
|
/** @type {Derived} */
|
|
1319
|
-
|
|
1322
|
+
y
|
|
1320
1323
|
);
|
|
1321
|
-
(
|
|
1324
|
+
(a.effects ??= []).push(f);
|
|
1322
1325
|
}
|
|
1323
1326
|
}
|
|
1324
1327
|
return i;
|
|
1325
1328
|
}
|
|
1326
|
-
function
|
|
1327
|
-
return
|
|
1329
|
+
function rs() {
|
|
1330
|
+
return y !== null && !J;
|
|
1328
1331
|
}
|
|
1329
|
-
function
|
|
1330
|
-
const t =
|
|
1332
|
+
function yt(e) {
|
|
1333
|
+
const t = X(ot, null, !1);
|
|
1331
1334
|
return D(t, P), t.teardown = e, t;
|
|
1332
1335
|
}
|
|
1333
|
-
function
|
|
1334
|
-
|
|
1336
|
+
function Gs(e) {
|
|
1337
|
+
Dn();
|
|
1335
1338
|
var t = (
|
|
1336
1339
|
/** @type {Effect} */
|
|
1337
1340
|
m.f
|
|
1338
|
-
), n =
|
|
1341
|
+
), n = !y && (t & ue) !== 0 && (t & Ut) === 0;
|
|
1339
1342
|
if (n) {
|
|
1340
1343
|
var r = (
|
|
1341
1344
|
/** @type {ComponentContext} */
|
|
@@ -1343,69 +1346,72 @@ function Ys(e) {
|
|
|
1343
1346
|
);
|
|
1344
1347
|
(r.e ??= []).push(e);
|
|
1345
1348
|
} else
|
|
1346
|
-
return
|
|
1349
|
+
return Fn(e);
|
|
1350
|
+
}
|
|
1351
|
+
function Fn(e) {
|
|
1352
|
+
return X(Ht | _n, e, !1);
|
|
1347
1353
|
}
|
|
1348
|
-
function
|
|
1349
|
-
return
|
|
1354
|
+
function Ks(e) {
|
|
1355
|
+
return Dn(), X(ot | _n, e, !0);
|
|
1350
1356
|
}
|
|
1351
|
-
function
|
|
1352
|
-
|
|
1353
|
-
const t =
|
|
1357
|
+
function ss(e) {
|
|
1358
|
+
ne.ensure();
|
|
1359
|
+
const t = X(ve | ke, e, !0);
|
|
1354
1360
|
return () => {
|
|
1355
1361
|
L(t);
|
|
1356
1362
|
};
|
|
1357
1363
|
}
|
|
1358
|
-
function
|
|
1359
|
-
|
|
1360
|
-
const t =
|
|
1364
|
+
function is(e) {
|
|
1365
|
+
ne.ensure();
|
|
1366
|
+
const t = X(ve | ke, e, !0);
|
|
1361
1367
|
return (n = {}) => new Promise((r) => {
|
|
1362
|
-
n.outro ?
|
|
1368
|
+
n.outro ? Oe(t, () => {
|
|
1363
1369
|
L(t), r(void 0);
|
|
1364
1370
|
}) : (L(t), r(void 0));
|
|
1365
1371
|
});
|
|
1366
1372
|
}
|
|
1367
|
-
function
|
|
1368
|
-
return
|
|
1373
|
+
function jn(e) {
|
|
1374
|
+
return X(Ht, e, !1);
|
|
1369
1375
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return
|
|
1376
|
+
function fs(e) {
|
|
1377
|
+
return X(Vt | ke, e, !0);
|
|
1372
1378
|
}
|
|
1373
1379
|
function Fe(e, t = 0) {
|
|
1374
|
-
return
|
|
1380
|
+
return X(ot | t, e, !0);
|
|
1375
1381
|
}
|
|
1376
|
-
function
|
|
1377
|
-
|
|
1378
|
-
|
|
1382
|
+
function zs(e, t = [], n = []) {
|
|
1383
|
+
Zr(t, n, (r) => {
|
|
1384
|
+
X(ot, () => e(...r.map(M)), !0);
|
|
1379
1385
|
});
|
|
1380
1386
|
}
|
|
1381
|
-
function
|
|
1382
|
-
var n =
|
|
1387
|
+
function Kt(e, t = 0) {
|
|
1388
|
+
var n = X(Se | t, e, !0);
|
|
1383
1389
|
return n;
|
|
1384
1390
|
}
|
|
1385
1391
|
function Y(e, t = !0) {
|
|
1386
|
-
return
|
|
1392
|
+
return X(ue | ke, e, !0, t);
|
|
1387
1393
|
}
|
|
1388
|
-
function
|
|
1394
|
+
function qn(e) {
|
|
1389
1395
|
var t = e.teardown;
|
|
1390
1396
|
if (t !== null) {
|
|
1391
|
-
const n =
|
|
1392
|
-
|
|
1397
|
+
const n = Te, r = y;
|
|
1398
|
+
sn(!0), O(null);
|
|
1393
1399
|
try {
|
|
1394
1400
|
t.call(null);
|
|
1395
1401
|
} finally {
|
|
1396
|
-
|
|
1402
|
+
sn(n), O(r);
|
|
1397
1403
|
}
|
|
1398
1404
|
}
|
|
1399
1405
|
}
|
|
1400
|
-
function
|
|
1406
|
+
function Bn(e, t = !1) {
|
|
1401
1407
|
var n = e.first;
|
|
1402
1408
|
for (e.first = e.last = null; n !== null; ) {
|
|
1403
1409
|
const s = n.ac;
|
|
1404
|
-
s !== null &&
|
|
1405
|
-
s.abort(
|
|
1410
|
+
s !== null && gt(() => {
|
|
1411
|
+
s.abort(xe);
|
|
1406
1412
|
});
|
|
1407
1413
|
var r = n.next;
|
|
1408
|
-
(n.f &
|
|
1414
|
+
(n.f & ve) !== 0 ? n.parent = null : L(n, t), n = r;
|
|
1409
1415
|
}
|
|
1410
1416
|
}
|
|
1411
1417
|
function as(e) {
|
|
@@ -1416,39 +1422,39 @@ function as(e) {
|
|
|
1416
1422
|
}
|
|
1417
1423
|
function L(e, t = !0) {
|
|
1418
1424
|
var n = !1;
|
|
1419
|
-
(t || (e.f &
|
|
1425
|
+
(t || (e.f & Er) !== 0) && e.nodes_start !== null && e.nodes_end !== null && (ls(
|
|
1420
1426
|
e.nodes_start,
|
|
1421
1427
|
/** @type {TemplateNode} */
|
|
1422
1428
|
e.nodes_end
|
|
1423
|
-
), n = !0),
|
|
1429
|
+
), n = !0), Bn(e, t && !n), st(e, 0), D(e, ae);
|
|
1424
1430
|
var r = e.transitions;
|
|
1425
1431
|
if (r !== null)
|
|
1426
1432
|
for (const i of r)
|
|
1427
1433
|
i.stop();
|
|
1428
|
-
|
|
1434
|
+
qn(e);
|
|
1429
1435
|
var s = e.parent;
|
|
1430
|
-
s !== null && s.first !== null &&
|
|
1436
|
+
s !== null && s.first !== null && Hn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = e.ac = null;
|
|
1431
1437
|
}
|
|
1432
|
-
function
|
|
1438
|
+
function ls(e, t) {
|
|
1433
1439
|
for (; e !== null; ) {
|
|
1434
1440
|
var n = e === t ? null : (
|
|
1435
1441
|
/** @type {TemplateNode} */
|
|
1436
|
-
/* @__PURE__ */
|
|
1442
|
+
/* @__PURE__ */ ie(e)
|
|
1437
1443
|
);
|
|
1438
1444
|
e.remove(), e = n;
|
|
1439
1445
|
}
|
|
1440
1446
|
}
|
|
1441
|
-
function
|
|
1447
|
+
function Hn(e) {
|
|
1442
1448
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1443
1449
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1444
1450
|
}
|
|
1445
|
-
function
|
|
1451
|
+
function Oe(e, t, n = !0) {
|
|
1446
1452
|
var r = [];
|
|
1447
|
-
|
|
1453
|
+
zt(e, r, !0), Un(r, () => {
|
|
1448
1454
|
n && L(e), t && t();
|
|
1449
1455
|
});
|
|
1450
1456
|
}
|
|
1451
|
-
function
|
|
1457
|
+
function Un(e, t) {
|
|
1452
1458
|
var n = e.length;
|
|
1453
1459
|
if (n > 0) {
|
|
1454
1460
|
var r = () => --n || t();
|
|
@@ -1457,95 +1463,95 @@ function qn(e, t) {
|
|
|
1457
1463
|
} else
|
|
1458
1464
|
t();
|
|
1459
1465
|
}
|
|
1460
|
-
function
|
|
1466
|
+
function zt(e, t, n) {
|
|
1461
1467
|
if ((e.f & H) === 0) {
|
|
1462
1468
|
if (e.f ^= H, e.transitions !== null)
|
|
1463
|
-
for (const
|
|
1464
|
-
(
|
|
1469
|
+
for (const f of e.transitions)
|
|
1470
|
+
(f.is_global || n) && t.push(f);
|
|
1465
1471
|
for (var r = e.first; r !== null; ) {
|
|
1466
|
-
var s = r.next, i = (r.f &
|
|
1467
|
-
|
|
1472
|
+
var s = r.next, i = (r.f & ht) !== 0 || (r.f & ue) !== 0;
|
|
1473
|
+
zt(r, t, i ? n : !1), r = s;
|
|
1468
1474
|
}
|
|
1469
1475
|
}
|
|
1470
1476
|
}
|
|
1471
|
-
function
|
|
1472
|
-
|
|
1477
|
+
function Jt(e) {
|
|
1478
|
+
Vn(e, !0);
|
|
1473
1479
|
}
|
|
1474
|
-
function
|
|
1480
|
+
function Vn(e, t) {
|
|
1475
1481
|
if ((e.f & H) !== 0) {
|
|
1476
1482
|
e.f ^= H, (e.f & P) === 0 && (D(e, U), be(e));
|
|
1477
1483
|
for (var n = e.first; n !== null; ) {
|
|
1478
|
-
var r = n.next, s = (n.f &
|
|
1479
|
-
|
|
1484
|
+
var r = n.next, s = (n.f & ht) !== 0 || (n.f & ue) !== 0;
|
|
1485
|
+
Vn(n, s ? t : !1), n = r;
|
|
1480
1486
|
}
|
|
1481
1487
|
if (e.transitions !== null)
|
|
1482
1488
|
for (const i of e.transitions)
|
|
1483
1489
|
(i.is_global || t) && i.in();
|
|
1484
1490
|
}
|
|
1485
1491
|
}
|
|
1486
|
-
function
|
|
1492
|
+
function Yn(e, t) {
|
|
1487
1493
|
for (var n = e.nodes_start, r = e.nodes_end; n !== null; ) {
|
|
1488
1494
|
var s = n === r ? null : (
|
|
1489
1495
|
/** @type {TemplateNode} */
|
|
1490
|
-
/* @__PURE__ */
|
|
1496
|
+
/* @__PURE__ */ ie(n)
|
|
1491
1497
|
);
|
|
1492
1498
|
t.append(n), n = s;
|
|
1493
1499
|
}
|
|
1494
1500
|
}
|
|
1495
|
-
let
|
|
1496
|
-
function
|
|
1497
|
-
|
|
1501
|
+
let Ce = !1;
|
|
1502
|
+
function rn(e) {
|
|
1503
|
+
Ce = e;
|
|
1498
1504
|
}
|
|
1499
|
-
let
|
|
1500
|
-
function
|
|
1501
|
-
|
|
1505
|
+
let Te = !1;
|
|
1506
|
+
function sn(e) {
|
|
1507
|
+
Te = e;
|
|
1502
1508
|
}
|
|
1503
|
-
let
|
|
1504
|
-
function
|
|
1505
|
-
|
|
1509
|
+
let y = null, J = !1;
|
|
1510
|
+
function O(e) {
|
|
1511
|
+
y = e;
|
|
1506
1512
|
}
|
|
1507
1513
|
let m = null;
|
|
1508
1514
|
function K(e) {
|
|
1509
1515
|
m = e;
|
|
1510
1516
|
}
|
|
1511
1517
|
let le = null;
|
|
1512
|
-
function
|
|
1513
|
-
|
|
1518
|
+
function Wn(e) {
|
|
1519
|
+
y !== null && (le === null ? le = [e] : le.push(e));
|
|
1514
1520
|
}
|
|
1515
|
-
let I = null,
|
|
1516
|
-
function
|
|
1521
|
+
let I = null, q = 0, V = null;
|
|
1522
|
+
function us(e) {
|
|
1517
1523
|
V = e;
|
|
1518
1524
|
}
|
|
1519
|
-
let
|
|
1520
|
-
function
|
|
1521
|
-
|
|
1525
|
+
let Gn = 1, We = 0, $e = We;
|
|
1526
|
+
function fn(e) {
|
|
1527
|
+
$e = e;
|
|
1522
1528
|
}
|
|
1523
1529
|
let ce = !1;
|
|
1524
|
-
function
|
|
1525
|
-
return ++
|
|
1530
|
+
function Kn() {
|
|
1531
|
+
return ++Gn;
|
|
1526
1532
|
}
|
|
1527
|
-
function
|
|
1533
|
+
function wt(e) {
|
|
1528
1534
|
var t = e.f;
|
|
1529
1535
|
if ((t & U) !== 0)
|
|
1530
1536
|
return !0;
|
|
1531
|
-
if ((t &
|
|
1537
|
+
if ((t & pe) !== 0) {
|
|
1532
1538
|
var n = e.deps, r = (t & W) !== 0;
|
|
1533
1539
|
if (n !== null) {
|
|
1534
|
-
var s, i,
|
|
1535
|
-
if ((
|
|
1540
|
+
var s, i, f = (t & nt) !== 0, a = r && m !== null && !ce, l = n.length;
|
|
1541
|
+
if ((f || a) && (m === null || (m.f & ae) === 0)) {
|
|
1536
1542
|
var u = (
|
|
1537
1543
|
/** @type {Derived} */
|
|
1538
1544
|
e
|
|
1539
1545
|
), c = u.parent;
|
|
1540
1546
|
for (s = 0; s < l; s++)
|
|
1541
|
-
i = n[s], (
|
|
1542
|
-
|
|
1547
|
+
i = n[s], (f || !i?.reactions?.includes(u)) && (i.reactions ??= []).push(u);
|
|
1548
|
+
f && (u.f ^= nt), a && c !== null && (c.f & W) === 0 && (u.f ^= W);
|
|
1543
1549
|
}
|
|
1544
1550
|
for (s = 0; s < l; s++)
|
|
1545
|
-
if (i = n[s],
|
|
1551
|
+
if (i = n[s], wt(
|
|
1546
1552
|
/** @type {Derived} */
|
|
1547
1553
|
i
|
|
1548
|
-
) &&
|
|
1554
|
+
) && xn(
|
|
1549
1555
|
/** @type {Derived} */
|
|
1550
1556
|
i
|
|
1551
1557
|
), i.wv > e.wv)
|
|
@@ -1555,67 +1561,67 @@ function $t(e) {
|
|
|
1555
1561
|
}
|
|
1556
1562
|
return !1;
|
|
1557
1563
|
}
|
|
1558
|
-
function
|
|
1564
|
+
function zn(e, t, n = !0) {
|
|
1559
1565
|
var r = e.reactions;
|
|
1560
1566
|
if (r !== null && !le?.includes(e))
|
|
1561
1567
|
for (var s = 0; s < r.length; s++) {
|
|
1562
1568
|
var i = r[s];
|
|
1563
|
-
(i.f & F) !== 0 ?
|
|
1569
|
+
(i.f & F) !== 0 ? zn(
|
|
1564
1570
|
/** @type {Derived} */
|
|
1565
1571
|
i,
|
|
1566
1572
|
t,
|
|
1567
1573
|
!1
|
|
1568
|
-
) : t === i && (n ? D(i, U) : (i.f & P) !== 0 && D(i,
|
|
1574
|
+
) : t === i && (n ? D(i, U) : (i.f & P) !== 0 && D(i, pe), be(
|
|
1569
1575
|
/** @type {Effect} */
|
|
1570
1576
|
i
|
|
1571
1577
|
));
|
|
1572
1578
|
}
|
|
1573
1579
|
}
|
|
1574
|
-
function
|
|
1575
|
-
var t = I, n =
|
|
1580
|
+
function Jn(e) {
|
|
1581
|
+
var t = I, n = q, r = V, s = y, i = ce, f = le, a = A, l = J, u = $e, c = e.f;
|
|
1576
1582
|
I = /** @type {null | Value[]} */
|
|
1577
|
-
null,
|
|
1578
|
-
e.ac.abort(
|
|
1583
|
+
null, q = 0, V = null, ce = (c & W) !== 0 && (J || !Ce || y === null), y = (c & (ue | ve)) === 0 ? e : null, le = null, Pe(e.ctx), J = !1, $e = ++We, e.ac !== null && (gt(() => {
|
|
1584
|
+
e.ac.abort(xe);
|
|
1579
1585
|
}), e.ac = null);
|
|
1580
1586
|
try {
|
|
1581
|
-
e.f |=
|
|
1587
|
+
e.f |= xt;
|
|
1582
1588
|
var _ = (
|
|
1583
1589
|
/** @type {Function} */
|
|
1584
1590
|
e.fn
|
|
1585
1591
|
), h = _(), d = e.deps;
|
|
1586
1592
|
if (I !== null) {
|
|
1587
1593
|
var o;
|
|
1588
|
-
if (st(e,
|
|
1589
|
-
for (d.length =
|
|
1590
|
-
d[
|
|
1594
|
+
if (st(e, q), d !== null && q > 0)
|
|
1595
|
+
for (d.length = q + I.length, o = 0; o < I.length; o++)
|
|
1596
|
+
d[q + o] = I[o];
|
|
1591
1597
|
else
|
|
1592
1598
|
e.deps = d = I;
|
|
1593
1599
|
if (!ce || // Deriveds that already have reactions can cleanup, so we still add them as reactions
|
|
1594
1600
|
(c & F) !== 0 && /** @type {import('#client').Derived} */
|
|
1595
1601
|
e.reactions !== null)
|
|
1596
|
-
for (o =
|
|
1602
|
+
for (o = q; o < d.length; o++)
|
|
1597
1603
|
(d[o].reactions ??= []).push(e);
|
|
1598
|
-
} else d !== null &&
|
|
1599
|
-
if (Ke() && V !== null && !J && d !== null && (e.f & (F |
|
|
1604
|
+
} else d !== null && q < d.length && (st(e, q), d.length = q);
|
|
1605
|
+
if (Ke() && V !== null && !J && d !== null && (e.f & (F | pe | U)) === 0)
|
|
1600
1606
|
for (o = 0; o < /** @type {Source[]} */
|
|
1601
1607
|
V.length; o++)
|
|
1602
|
-
|
|
1608
|
+
zn(
|
|
1603
1609
|
V[o],
|
|
1604
1610
|
/** @type {Effect} */
|
|
1605
1611
|
e
|
|
1606
1612
|
);
|
|
1607
1613
|
return s !== null && s !== e && (We++, V !== null && (r === null ? r = V : r.push(.../** @type {Source[]} */
|
|
1608
|
-
V))), (e.f &
|
|
1614
|
+
V))), (e.f & we) !== 0 && (e.f ^= we), h;
|
|
1609
1615
|
} catch (g) {
|
|
1610
|
-
return
|
|
1616
|
+
return $n(g);
|
|
1611
1617
|
} finally {
|
|
1612
|
-
e.f ^=
|
|
1618
|
+
e.f ^= xt, I = t, q = n, V = r, y = s, ce = i, le = f, Pe(a), J = l, $e = u;
|
|
1613
1619
|
}
|
|
1614
1620
|
}
|
|
1615
|
-
function
|
|
1621
|
+
function os(e, t) {
|
|
1616
1622
|
let n = t.reactions;
|
|
1617
1623
|
if (n !== null) {
|
|
1618
|
-
var r =
|
|
1624
|
+
var r = yr.call(n, e);
|
|
1619
1625
|
if (r !== -1) {
|
|
1620
1626
|
var s = n.length - 1;
|
|
1621
1627
|
s === 0 ? n = t.reactions = null : (n[r] = n[s], n.pop());
|
|
@@ -1624,7 +1630,7 @@ function us(e, t) {
|
|
|
1624
1630
|
n === null && (t.f & F) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1625
1631
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1626
1632
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1627
|
-
(I === null || !I.includes(t)) && (D(t,
|
|
1633
|
+
(I === null || !I.includes(t)) && (D(t, pe), (t.f & (W | nt)) === 0 && (t.f ^= nt), An(
|
|
1628
1634
|
/** @type {Derived} **/
|
|
1629
1635
|
t
|
|
1630
1636
|
), st(
|
|
@@ -1637,84 +1643,84 @@ function st(e, t) {
|
|
|
1637
1643
|
var n = e.deps;
|
|
1638
1644
|
if (n !== null)
|
|
1639
1645
|
for (var r = t; r < n.length; r++)
|
|
1640
|
-
|
|
1646
|
+
os(e, n[r]);
|
|
1641
1647
|
}
|
|
1642
1648
|
function it(e) {
|
|
1643
1649
|
var t = e.f;
|
|
1644
|
-
if ((t &
|
|
1650
|
+
if ((t & ae) === 0) {
|
|
1645
1651
|
D(e, P);
|
|
1646
|
-
var n = m, r =
|
|
1647
|
-
m = e,
|
|
1652
|
+
var n = m, r = Ce;
|
|
1653
|
+
m = e, Ce = !0;
|
|
1648
1654
|
try {
|
|
1649
|
-
(t &
|
|
1650
|
-
var s =
|
|
1651
|
-
e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1655
|
+
(t & Se) !== 0 ? as(e) : Bn(e), qn(e);
|
|
1656
|
+
var s = Jn(e);
|
|
1657
|
+
e.teardown = typeof s == "function" ? s : null, e.wv = Gn;
|
|
1652
1658
|
var i;
|
|
1653
|
-
|
|
1659
|
+
cn && Br && (e.f & U) !== 0 && e.deps;
|
|
1654
1660
|
} finally {
|
|
1655
|
-
|
|
1661
|
+
Ce = r, m = n;
|
|
1656
1662
|
}
|
|
1657
1663
|
}
|
|
1658
1664
|
}
|
|
1659
|
-
async function
|
|
1660
|
-
await Promise.resolve(),
|
|
1665
|
+
async function cs() {
|
|
1666
|
+
await Promise.resolve(), En();
|
|
1661
1667
|
}
|
|
1662
1668
|
function M(e) {
|
|
1663
1669
|
var t = e.f, n = (t & F) !== 0;
|
|
1664
|
-
if (
|
|
1665
|
-
var r = m !== null && (m.f &
|
|
1670
|
+
if (y !== null && !J) {
|
|
1671
|
+
var r = m !== null && (m.f & ae) !== 0;
|
|
1666
1672
|
if (!r && !le?.includes(e)) {
|
|
1667
|
-
var s =
|
|
1668
|
-
if ((
|
|
1669
|
-
e.rv < We && (e.rv = We, I === null && s !== null && s[
|
|
1673
|
+
var s = y.deps;
|
|
1674
|
+
if ((y.f & xt) !== 0)
|
|
1675
|
+
e.rv < We && (e.rv = We, I === null && s !== null && s[q] === e ? q++ : I === null ? I = [e] : (!ce || !I.includes(e)) && I.push(e));
|
|
1670
1676
|
else {
|
|
1671
|
-
(
|
|
1677
|
+
(y.deps ??= []).push(e);
|
|
1672
1678
|
var i = e.reactions;
|
|
1673
|
-
i === null ? e.reactions = [
|
|
1679
|
+
i === null ? e.reactions = [y] : i.includes(y) || i.push(y);
|
|
1674
1680
|
}
|
|
1675
1681
|
}
|
|
1676
1682
|
} else if (n && /** @type {Derived} */
|
|
1677
1683
|
e.deps === null && /** @type {Derived} */
|
|
1678
1684
|
e.effects === null) {
|
|
1679
|
-
var
|
|
1685
|
+
var f = (
|
|
1680
1686
|
/** @type {Derived} */
|
|
1681
1687
|
e
|
|
1682
|
-
),
|
|
1683
|
-
|
|
1688
|
+
), a = f.parent;
|
|
1689
|
+
a !== null && (a.f & W) === 0 && (f.f ^= W);
|
|
1684
1690
|
}
|
|
1685
|
-
if (
|
|
1686
|
-
if (
|
|
1687
|
-
return
|
|
1691
|
+
if (Te) {
|
|
1692
|
+
if (de.has(e))
|
|
1693
|
+
return de.get(e);
|
|
1688
1694
|
if (n) {
|
|
1689
|
-
|
|
1695
|
+
f = /** @type {Derived} */
|
|
1690
1696
|
e;
|
|
1691
|
-
var l =
|
|
1692
|
-
return ((
|
|
1697
|
+
var l = f.v;
|
|
1698
|
+
return ((f.f & P) === 0 && f.reactions !== null || Xn(f)) && (l = Wt(f)), de.set(f, l), l;
|
|
1693
1699
|
}
|
|
1694
1700
|
} else if (n) {
|
|
1695
|
-
if (
|
|
1696
|
-
e, z?.has(
|
|
1697
|
-
return z.get(
|
|
1698
|
-
|
|
1701
|
+
if (f = /** @type {Derived} */
|
|
1702
|
+
e, z?.has(f))
|
|
1703
|
+
return z.get(f);
|
|
1704
|
+
wt(f) && xn(f);
|
|
1699
1705
|
}
|
|
1700
1706
|
if (z?.has(e))
|
|
1701
1707
|
return z.get(e);
|
|
1702
|
-
if ((e.f &
|
|
1708
|
+
if ((e.f & we) !== 0)
|
|
1703
1709
|
throw e.v;
|
|
1704
1710
|
return e.v;
|
|
1705
1711
|
}
|
|
1706
|
-
function
|
|
1712
|
+
function Xn(e) {
|
|
1707
1713
|
if (e.v === N) return !0;
|
|
1708
1714
|
if (e.deps === null) return !1;
|
|
1709
1715
|
for (const t of e.deps)
|
|
1710
|
-
if (
|
|
1716
|
+
if (de.has(t) || (t.f & F) !== 0 && Xn(
|
|
1711
1717
|
/** @type {Derived} */
|
|
1712
1718
|
t
|
|
1713
1719
|
))
|
|
1714
1720
|
return !0;
|
|
1715
1721
|
return !1;
|
|
1716
1722
|
}
|
|
1717
|
-
function
|
|
1723
|
+
function $t(e) {
|
|
1718
1724
|
var t = J;
|
|
1719
1725
|
try {
|
|
1720
1726
|
return J = !0, e();
|
|
@@ -1722,12 +1728,46 @@ function wt(e) {
|
|
|
1722
1728
|
J = t;
|
|
1723
1729
|
}
|
|
1724
1730
|
}
|
|
1725
|
-
const
|
|
1731
|
+
const hs = -7169;
|
|
1726
1732
|
function D(e, t) {
|
|
1727
|
-
e.f = e.f &
|
|
1733
|
+
e.f = e.f & hs | t;
|
|
1734
|
+
}
|
|
1735
|
+
function Js(e) {
|
|
1736
|
+
if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
|
|
1737
|
+
if (he in e)
|
|
1738
|
+
It(e);
|
|
1739
|
+
else if (!Array.isArray(e))
|
|
1740
|
+
for (let t in e) {
|
|
1741
|
+
const n = e[t];
|
|
1742
|
+
typeof n == "object" && n && he in n && It(n);
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1728
1745
|
}
|
|
1729
|
-
|
|
1730
|
-
|
|
1746
|
+
function It(e, t = /* @__PURE__ */ new Set()) {
|
|
1747
|
+
if (typeof e == "object" && e !== null && // We don't want to traverse DOM elements
|
|
1748
|
+
!(e instanceof EventTarget) && !t.has(e)) {
|
|
1749
|
+
t.add(e), e instanceof Date && e.getTime();
|
|
1750
|
+
for (let r in e)
|
|
1751
|
+
try {
|
|
1752
|
+
It(e[r], t);
|
|
1753
|
+
} catch {
|
|
1754
|
+
}
|
|
1755
|
+
const n = Bt(e);
|
|
1756
|
+
if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
|
|
1757
|
+
const r = hn(n);
|
|
1758
|
+
for (let s in r) {
|
|
1759
|
+
const i = r[s].get;
|
|
1760
|
+
if (i)
|
|
1761
|
+
try {
|
|
1762
|
+
i.call(e);
|
|
1763
|
+
} catch {
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
const Zn = /* @__PURE__ */ new Set(), Pt = /* @__PURE__ */ new Set();
|
|
1770
|
+
function Xs(e) {
|
|
1731
1771
|
if (!v) return;
|
|
1732
1772
|
e.removeAttribute("onload"), e.removeAttribute("onerror");
|
|
1733
1773
|
const t = e.__e;
|
|
@@ -1735,31 +1775,31 @@ function Gs(e) {
|
|
|
1735
1775
|
e.isConnected && e.dispatchEvent(t);
|
|
1736
1776
|
}));
|
|
1737
1777
|
}
|
|
1738
|
-
function
|
|
1778
|
+
function ds(e, t, n, r = {}) {
|
|
1739
1779
|
function s(i) {
|
|
1740
1780
|
if (r.capture || Be.call(t, i), !i.cancelBubble)
|
|
1741
|
-
return
|
|
1781
|
+
return gt(() => n?.call(this, i));
|
|
1742
1782
|
}
|
|
1743
|
-
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ?
|
|
1783
|
+
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? _e(() => {
|
|
1744
1784
|
t.addEventListener(e, s, r);
|
|
1745
1785
|
}) : t.addEventListener(e, s, r), s;
|
|
1746
1786
|
}
|
|
1747
|
-
function
|
|
1748
|
-
var i = { capture: r, passive: s },
|
|
1787
|
+
function Zs(e, t, n, r, s) {
|
|
1788
|
+
var i = { capture: r, passive: s }, f = ds(e, t, n, i);
|
|
1749
1789
|
(t === document.body || // @ts-ignore
|
|
1750
1790
|
t === window || // @ts-ignore
|
|
1751
1791
|
t === document || // Firefox has quirky behavior, it can happen that we still get "canplay" events when the element is already removed
|
|
1752
|
-
t instanceof HTMLMediaElement) &&
|
|
1753
|
-
t.removeEventListener(e,
|
|
1792
|
+
t instanceof HTMLMediaElement) && yt(() => {
|
|
1793
|
+
t.removeEventListener(e, f, i);
|
|
1754
1794
|
});
|
|
1755
1795
|
}
|
|
1756
|
-
function
|
|
1796
|
+
function Qs(e) {
|
|
1757
1797
|
for (var t = 0; t < e.length; t++)
|
|
1758
|
-
|
|
1759
|
-
for (var n of
|
|
1798
|
+
Zn.add(e[t]);
|
|
1799
|
+
for (var n of Pt)
|
|
1760
1800
|
n(e);
|
|
1761
1801
|
}
|
|
1762
|
-
let
|
|
1802
|
+
let an = null;
|
|
1763
1803
|
function Be(e) {
|
|
1764
1804
|
var t = this, n = (
|
|
1765
1805
|
/** @type {Node} */
|
|
@@ -1768,10 +1808,10 @@ function Be(e) {
|
|
|
1768
1808
|
/** @type {null | Element} */
|
|
1769
1809
|
s[0] || e.target
|
|
1770
1810
|
);
|
|
1771
|
-
|
|
1772
|
-
var
|
|
1773
|
-
if (
|
|
1774
|
-
var l = s.indexOf(
|
|
1811
|
+
an = e;
|
|
1812
|
+
var f = 0, a = an === e && e.__root;
|
|
1813
|
+
if (a) {
|
|
1814
|
+
var l = s.indexOf(a);
|
|
1775
1815
|
if (l !== -1 && (t === document || t === /** @type {any} */
|
|
1776
1816
|
window)) {
|
|
1777
1817
|
e.__root = t;
|
|
@@ -1780,18 +1820,18 @@ function Be(e) {
|
|
|
1780
1820
|
var u = s.indexOf(t);
|
|
1781
1821
|
if (u === -1)
|
|
1782
1822
|
return;
|
|
1783
|
-
l <= u && (
|
|
1823
|
+
l <= u && (f = l);
|
|
1784
1824
|
}
|
|
1785
1825
|
if (i = /** @type {Element} */
|
|
1786
|
-
s[
|
|
1826
|
+
s[f] || e.target, i !== t) {
|
|
1787
1827
|
Ie(e, "currentTarget", {
|
|
1788
1828
|
configurable: !0,
|
|
1789
1829
|
get() {
|
|
1790
1830
|
return i || n;
|
|
1791
1831
|
}
|
|
1792
1832
|
});
|
|
1793
|
-
var c =
|
|
1794
|
-
|
|
1833
|
+
var c = y, _ = m;
|
|
1834
|
+
O(null), K(null);
|
|
1795
1835
|
try {
|
|
1796
1836
|
for (var h, d = []; i !== null; ) {
|
|
1797
1837
|
var o = i.assignedSlot || i.parentNode || /** @type {any} */
|
|
@@ -1803,8 +1843,8 @@ function Be(e) {
|
|
|
1803
1843
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1804
1844
|
e.target === i))
|
|
1805
1845
|
if (ut(g)) {
|
|
1806
|
-
var [
|
|
1807
|
-
|
|
1846
|
+
var [$, ...E] = g;
|
|
1847
|
+
$.apply(i, [e, ...E]);
|
|
1808
1848
|
} else
|
|
1809
1849
|
g.call(i, e);
|
|
1810
1850
|
} catch (T) {
|
|
@@ -1822,15 +1862,15 @@ function Be(e) {
|
|
|
1822
1862
|
throw h;
|
|
1823
1863
|
}
|
|
1824
1864
|
} finally {
|
|
1825
|
-
e.__root = t, delete e.currentTarget,
|
|
1865
|
+
e.__root = t, delete e.currentTarget, O(c), K(_);
|
|
1826
1866
|
}
|
|
1827
1867
|
}
|
|
1828
1868
|
}
|
|
1829
|
-
function
|
|
1869
|
+
function Qn(e) {
|
|
1830
1870
|
var t = document.createElement("template");
|
|
1831
1871
|
return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content;
|
|
1832
1872
|
}
|
|
1833
|
-
function
|
|
1873
|
+
function re(e, t) {
|
|
1834
1874
|
var n = (
|
|
1835
1875
|
/** @type {Effect} */
|
|
1836
1876
|
m
|
|
@@ -1838,76 +1878,76 @@ function ne(e, t) {
|
|
|
1838
1878
|
n.nodes_start === null && (n.nodes_start = e, n.nodes_end = t);
|
|
1839
1879
|
}
|
|
1840
1880
|
// @__NO_SIDE_EFFECTS__
|
|
1841
|
-
function
|
|
1842
|
-
var n = (t &
|
|
1881
|
+
function ei(e, t) {
|
|
1882
|
+
var n = (t & pr) !== 0, r = (t & mr) !== 0, s, i = !e.startsWith("<!>");
|
|
1843
1883
|
return () => {
|
|
1844
1884
|
if (v)
|
|
1845
|
-
return
|
|
1846
|
-
s === void 0 && (s =
|
|
1847
|
-
/* @__PURE__ */
|
|
1848
|
-
var
|
|
1885
|
+
return re(w, null), w;
|
|
1886
|
+
s === void 0 && (s = Qn(i ? e : "<!>" + e), n || (s = /** @type {Node} */
|
|
1887
|
+
/* @__PURE__ */ se(s)));
|
|
1888
|
+
var f = (
|
|
1849
1889
|
/** @type {TemplateNode} */
|
|
1850
|
-
r ||
|
|
1890
|
+
r || Rn ? document.importNode(s, !0) : s.cloneNode(!0)
|
|
1851
1891
|
);
|
|
1852
1892
|
if (n) {
|
|
1853
|
-
var
|
|
1893
|
+
var a = (
|
|
1854
1894
|
/** @type {TemplateNode} */
|
|
1855
|
-
/* @__PURE__ */
|
|
1895
|
+
/* @__PURE__ */ se(f)
|
|
1856
1896
|
), l = (
|
|
1857
1897
|
/** @type {TemplateNode} */
|
|
1858
|
-
|
|
1898
|
+
f.lastChild
|
|
1859
1899
|
);
|
|
1860
|
-
|
|
1900
|
+
re(a, l);
|
|
1861
1901
|
} else
|
|
1862
|
-
|
|
1863
|
-
return
|
|
1902
|
+
re(f, f);
|
|
1903
|
+
return f;
|
|
1864
1904
|
};
|
|
1865
1905
|
}
|
|
1866
1906
|
// @__NO_SIDE_EFFECTS__
|
|
1867
|
-
function
|
|
1907
|
+
function _s(e, t, n = "svg") {
|
|
1868
1908
|
var r = !e.startsWith("<!>"), s = `<${n}>${r ? e : "<!>" + e}</${n}>`, i;
|
|
1869
1909
|
return () => {
|
|
1870
1910
|
if (v)
|
|
1871
|
-
return
|
|
1911
|
+
return re(w, null), w;
|
|
1872
1912
|
if (!i) {
|
|
1873
|
-
var
|
|
1913
|
+
var f = (
|
|
1874
1914
|
/** @type {DocumentFragment} */
|
|
1875
|
-
|
|
1876
|
-
),
|
|
1915
|
+
Qn(s)
|
|
1916
|
+
), a = (
|
|
1877
1917
|
/** @type {Element} */
|
|
1878
|
-
/* @__PURE__ */
|
|
1918
|
+
/* @__PURE__ */ se(f)
|
|
1879
1919
|
);
|
|
1880
1920
|
i = /** @type {Element} */
|
|
1881
|
-
/* @__PURE__ */
|
|
1921
|
+
/* @__PURE__ */ se(a);
|
|
1882
1922
|
}
|
|
1883
1923
|
var l = (
|
|
1884
1924
|
/** @type {TemplateNode} */
|
|
1885
1925
|
i.cloneNode(!0)
|
|
1886
1926
|
);
|
|
1887
|
-
return
|
|
1927
|
+
return re(l, l), l;
|
|
1888
1928
|
};
|
|
1889
1929
|
}
|
|
1890
1930
|
// @__NO_SIDE_EFFECTS__
|
|
1891
|
-
function
|
|
1892
|
-
return /* @__PURE__ */
|
|
1931
|
+
function ti(e, t) {
|
|
1932
|
+
return /* @__PURE__ */ _s(e, t, "svg");
|
|
1893
1933
|
}
|
|
1894
|
-
function
|
|
1934
|
+
function ni(e = "") {
|
|
1895
1935
|
if (!v) {
|
|
1896
1936
|
var t = G(e + "");
|
|
1897
|
-
return
|
|
1937
|
+
return re(t, t), t;
|
|
1898
1938
|
}
|
|
1899
1939
|
var n = w;
|
|
1900
|
-
return n.nodeType !==
|
|
1940
|
+
return n.nodeType !== dt && (n.before(n = G()), C(n)), re(n, n), n;
|
|
1901
1941
|
}
|
|
1902
|
-
function
|
|
1942
|
+
function ri() {
|
|
1903
1943
|
if (v)
|
|
1904
|
-
return
|
|
1944
|
+
return re(w, null), w;
|
|
1905
1945
|
var e = document.createDocumentFragment(), t = document.createComment(""), n = G();
|
|
1906
|
-
return e.append(t, n),
|
|
1946
|
+
return e.append(t, n), re(t, n), e;
|
|
1907
1947
|
}
|
|
1908
|
-
function
|
|
1948
|
+
function vs(e, t) {
|
|
1909
1949
|
if (v) {
|
|
1910
|
-
m.nodes_end = w,
|
|
1950
|
+
m.nodes_end = w, vt();
|
|
1911
1951
|
return;
|
|
1912
1952
|
}
|
|
1913
1953
|
e !== null && e.before(
|
|
@@ -1915,65 +1955,65 @@ function _s(e, t) {
|
|
|
1915
1955
|
t
|
|
1916
1956
|
);
|
|
1917
1957
|
}
|
|
1918
|
-
const
|
|
1919
|
-
function
|
|
1920
|
-
return
|
|
1958
|
+
const ps = ["touchstart", "touchmove"];
|
|
1959
|
+
function ms(e) {
|
|
1960
|
+
return ps.includes(e);
|
|
1921
1961
|
}
|
|
1922
|
-
function
|
|
1962
|
+
function si(e, t) {
|
|
1923
1963
|
var n = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1924
1964
|
n !== (e.__t ??= e.nodeValue) && (e.__t = n, e.nodeValue = n + "");
|
|
1925
1965
|
}
|
|
1926
|
-
function
|
|
1927
|
-
return
|
|
1966
|
+
function er(e, t) {
|
|
1967
|
+
return tr(e, t);
|
|
1928
1968
|
}
|
|
1929
|
-
function
|
|
1930
|
-
|
|
1969
|
+
function gs(e, t) {
|
|
1970
|
+
Rt(), t.intro = t.intro ?? !1;
|
|
1931
1971
|
const n = t.target, r = v, s = w;
|
|
1932
1972
|
try {
|
|
1933
1973
|
for (var i = (
|
|
1934
1974
|
/** @type {TemplateNode} */
|
|
1935
|
-
/* @__PURE__ */
|
|
1975
|
+
/* @__PURE__ */ se(n)
|
|
1936
1976
|
); i && (i.nodeType !== De || /** @type {Comment} */
|
|
1937
|
-
i.data !==
|
|
1977
|
+
i.data !== on); )
|
|
1938
1978
|
i = /** @type {TemplateNode} */
|
|
1939
|
-
/* @__PURE__ */
|
|
1979
|
+
/* @__PURE__ */ ie(i);
|
|
1940
1980
|
if (!i)
|
|
1941
1981
|
throw Re;
|
|
1942
|
-
B(!0),
|
|
1982
|
+
B(!0), C(
|
|
1943
1983
|
/** @type {Comment} */
|
|
1944
1984
|
i
|
|
1945
1985
|
);
|
|
1946
|
-
const
|
|
1986
|
+
const f = tr(e, { ...t, anchor: i });
|
|
1947
1987
|
return B(!1), /** @type {Exports} */
|
|
1948
|
-
|
|
1949
|
-
} catch (
|
|
1950
|
-
if (
|
|
1951
|
-
`).some((
|
|
1952
|
-
throw
|
|
1953
|
-
return
|
|
1988
|
+
f;
|
|
1989
|
+
} catch (f) {
|
|
1990
|
+
if (f instanceof Error && f.message.split(`
|
|
1991
|
+
`).some((a) => a.startsWith("https://svelte.dev/e/")))
|
|
1992
|
+
throw f;
|
|
1993
|
+
return f !== Re && console.warn("Failed to hydrate: ", f), t.recover === !1 && Cr(), Rt(), Gt(n), B(!1), er(e, t);
|
|
1954
1994
|
} finally {
|
|
1955
|
-
B(r),
|
|
1995
|
+
B(r), C(s);
|
|
1956
1996
|
}
|
|
1957
1997
|
}
|
|
1958
|
-
const
|
|
1959
|
-
function
|
|
1960
|
-
|
|
1961
|
-
var
|
|
1998
|
+
const Ae = /* @__PURE__ */ new Map();
|
|
1999
|
+
function tr(e, { target: t, anchor: n, props: r = {}, events: s, context: i, intro: f = !0 }) {
|
|
2000
|
+
Rt();
|
|
2001
|
+
var a = /* @__PURE__ */ new Set(), l = (_) => {
|
|
1962
2002
|
for (var h = 0; h < _.length; h++) {
|
|
1963
2003
|
var d = _[h];
|
|
1964
|
-
if (!
|
|
1965
|
-
|
|
1966
|
-
var o =
|
|
2004
|
+
if (!a.has(d)) {
|
|
2005
|
+
a.add(d);
|
|
2006
|
+
var o = ms(d);
|
|
1967
2007
|
t.addEventListener(d, Be, { passive: o });
|
|
1968
|
-
var g =
|
|
1969
|
-
g === void 0 ? (document.addEventListener(d, Be, { passive: o }),
|
|
2008
|
+
var g = Ae.get(d);
|
|
2009
|
+
g === void 0 ? (document.addEventListener(d, Be, { passive: o }), Ae.set(d, 1)) : Ae.set(d, g + 1);
|
|
1970
2010
|
}
|
|
1971
2011
|
}
|
|
1972
2012
|
};
|
|
1973
|
-
l(
|
|
1974
|
-
var u = void 0, c =
|
|
2013
|
+
l(qt(Zn)), Pt.add(l);
|
|
2014
|
+
var u = void 0, c = is(() => {
|
|
1975
2015
|
var _ = n ?? t.appendChild(G());
|
|
1976
|
-
return
|
|
2016
|
+
return Jr(
|
|
1977
2017
|
/** @type {TemplateNode} */
|
|
1978
2018
|
_,
|
|
1979
2019
|
{
|
|
@@ -1982,42 +2022,42 @@ function Xn(e, { target: t, anchor: n, props: r = {}, events: s, context: i, int
|
|
|
1982
2022
|
},
|
|
1983
2023
|
(h) => {
|
|
1984
2024
|
if (i) {
|
|
1985
|
-
|
|
2025
|
+
Hr({});
|
|
1986
2026
|
var d = (
|
|
1987
2027
|
/** @type {ComponentContext} */
|
|
1988
2028
|
A
|
|
1989
2029
|
);
|
|
1990
2030
|
d.c = i;
|
|
1991
2031
|
}
|
|
1992
|
-
if (s && (r.$$events = s), v &&
|
|
2032
|
+
if (s && (r.$$events = s), v && re(
|
|
1993
2033
|
/** @type {TemplateNode} */
|
|
1994
2034
|
h,
|
|
1995
2035
|
null
|
|
1996
2036
|
), u = e(h, r) || {}, v && (m.nodes_end = w, w === null || w.nodeType !== De || /** @type {Comment} */
|
|
1997
|
-
w.data !==
|
|
1998
|
-
throw
|
|
1999
|
-
i &&
|
|
2037
|
+
w.data !== jt))
|
|
2038
|
+
throw _t(), Re;
|
|
2039
|
+
i && Ur();
|
|
2000
2040
|
}
|
|
2001
2041
|
), () => {
|
|
2002
|
-
for (var h of
|
|
2042
|
+
for (var h of a) {
|
|
2003
2043
|
t.removeEventListener(h, Be);
|
|
2004
2044
|
var d = (
|
|
2005
2045
|
/** @type {number} */
|
|
2006
|
-
|
|
2046
|
+
Ae.get(h)
|
|
2007
2047
|
);
|
|
2008
|
-
--d === 0 ? (document.removeEventListener(h, Be),
|
|
2048
|
+
--d === 0 ? (document.removeEventListener(h, Be), Ae.delete(h)) : Ae.set(h, d);
|
|
2009
2049
|
}
|
|
2010
|
-
|
|
2050
|
+
Pt.delete(l), _ !== n && _.parentNode?.removeChild(_);
|
|
2011
2051
|
};
|
|
2012
2052
|
});
|
|
2013
|
-
return
|
|
2053
|
+
return Mt.set(u, c), u;
|
|
2014
2054
|
}
|
|
2015
|
-
let
|
|
2016
|
-
function
|
|
2017
|
-
const n =
|
|
2018
|
-
return n ? (
|
|
2055
|
+
let Mt = /* @__PURE__ */ new WeakMap();
|
|
2056
|
+
function ys(e, t) {
|
|
2057
|
+
const n = Mt.get(e);
|
|
2058
|
+
return n ? (Mt.delete(e), n(t)) : Promise.resolve();
|
|
2019
2059
|
}
|
|
2020
|
-
class
|
|
2060
|
+
class ws {
|
|
2021
2061
|
/** @type {TemplateNode} */
|
|
2022
2062
|
anchor;
|
|
2023
2063
|
/** @type {Map<Batch, Key>} */
|
|
@@ -2041,7 +2081,7 @@ class $s {
|
|
|
2041
2081
|
#l = () => {
|
|
2042
2082
|
var t = (
|
|
2043
2083
|
/** @type {Batch} */
|
|
2044
|
-
|
|
2084
|
+
b
|
|
2045
2085
|
);
|
|
2046
2086
|
if (this.#t.has(t)) {
|
|
2047
2087
|
var n = (
|
|
@@ -2049,28 +2089,28 @@ class $s {
|
|
|
2049
2089
|
this.#t.get(t)
|
|
2050
2090
|
), r = this.#e.get(n);
|
|
2051
2091
|
if (r)
|
|
2052
|
-
|
|
2092
|
+
Jt(r);
|
|
2053
2093
|
else {
|
|
2054
2094
|
var s = this.#n.get(n);
|
|
2055
2095
|
s && (this.#e.set(n, s.effect), this.#n.delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), r = s.effect);
|
|
2056
2096
|
}
|
|
2057
|
-
for (const [i,
|
|
2097
|
+
for (const [i, f] of this.#t) {
|
|
2058
2098
|
if (this.#t.delete(i), i === t)
|
|
2059
2099
|
break;
|
|
2060
|
-
const
|
|
2061
|
-
|
|
2100
|
+
const a = this.#n.get(f);
|
|
2101
|
+
a && (L(a.effect), this.#n.delete(f));
|
|
2062
2102
|
}
|
|
2063
|
-
for (const [i,
|
|
2103
|
+
for (const [i, f] of this.#e) {
|
|
2064
2104
|
if (i === n) continue;
|
|
2065
|
-
const
|
|
2105
|
+
const a = () => {
|
|
2066
2106
|
if (Array.from(this.#t.values()).includes(i)) {
|
|
2067
2107
|
var u = document.createDocumentFragment();
|
|
2068
|
-
|
|
2108
|
+
Yn(f, u), u.append(G()), this.#n.set(i, { effect: f, fragment: u });
|
|
2069
2109
|
} else
|
|
2070
|
-
L(
|
|
2110
|
+
L(f);
|
|
2071
2111
|
this.#e.delete(i);
|
|
2072
2112
|
};
|
|
2073
|
-
this.#r || !r ?
|
|
2113
|
+
this.#r || !r ? Oe(f, a, !1) : a();
|
|
2074
2114
|
}
|
|
2075
2115
|
}
|
|
2076
2116
|
};
|
|
@@ -2082,13 +2122,13 @@ class $s {
|
|
|
2082
2122
|
ensure(t, n) {
|
|
2083
2123
|
var r = (
|
|
2084
2124
|
/** @type {Batch} */
|
|
2085
|
-
|
|
2086
|
-
), s =
|
|
2125
|
+
b
|
|
2126
|
+
), s = Mn();
|
|
2087
2127
|
if (n && !this.#e.has(t) && !this.#n.has(t))
|
|
2088
2128
|
if (s) {
|
|
2089
|
-
var i = document.createDocumentFragment(),
|
|
2090
|
-
i.append(
|
|
2091
|
-
effect: Y(() => n(
|
|
2129
|
+
var i = document.createDocumentFragment(), f = G();
|
|
2130
|
+
i.append(f), this.#n.set(t, {
|
|
2131
|
+
effect: Y(() => n(f)),
|
|
2092
2132
|
fragment: i
|
|
2093
2133
|
});
|
|
2094
2134
|
} else
|
|
@@ -2097,94 +2137,94 @@ class $s {
|
|
|
2097
2137
|
Y(() => n(this.anchor))
|
|
2098
2138
|
);
|
|
2099
2139
|
if (this.#t.set(r, t), s) {
|
|
2100
|
-
for (const [
|
|
2101
|
-
|
|
2102
|
-
for (const [
|
|
2103
|
-
|
|
2140
|
+
for (const [a, l] of this.#e)
|
|
2141
|
+
a === t ? r.skipped_effects.delete(l) : r.skipped_effects.add(l);
|
|
2142
|
+
for (const [a, l] of this.#n)
|
|
2143
|
+
a === t ? r.skipped_effects.delete(l.effect) : r.skipped_effects.add(l.effect);
|
|
2104
2144
|
r.add_callback(this.#l);
|
|
2105
2145
|
} else
|
|
2106
2146
|
v && (this.anchor = w), this.#l();
|
|
2107
2147
|
}
|
|
2108
2148
|
}
|
|
2109
|
-
function
|
|
2110
|
-
v &&
|
|
2111
|
-
var r = new
|
|
2112
|
-
function i(
|
|
2149
|
+
function ii(e, t, n = !1) {
|
|
2150
|
+
v && vt();
|
|
2151
|
+
var r = new ws(e), s = n ? ht : 0;
|
|
2152
|
+
function i(f, a) {
|
|
2113
2153
|
if (v) {
|
|
2114
|
-
const u =
|
|
2115
|
-
if (
|
|
2154
|
+
const u = pn(e) === lt;
|
|
2155
|
+
if (f === u) {
|
|
2116
2156
|
var l = rt();
|
|
2117
|
-
|
|
2157
|
+
C(l), r.anchor = l, B(!1), r.ensure(f, a), B(!0);
|
|
2118
2158
|
return;
|
|
2119
2159
|
}
|
|
2120
2160
|
}
|
|
2121
|
-
r.ensure(
|
|
2161
|
+
r.ensure(f, a);
|
|
2122
2162
|
}
|
|
2123
|
-
|
|
2124
|
-
var
|
|
2125
|
-
t((
|
|
2126
|
-
|
|
2127
|
-
}),
|
|
2163
|
+
Kt(() => {
|
|
2164
|
+
var f = !1;
|
|
2165
|
+
t((a, l = !0) => {
|
|
2166
|
+
f = !0, i(l, a);
|
|
2167
|
+
}), f || i(!1, null);
|
|
2128
2168
|
}, s);
|
|
2129
2169
|
}
|
|
2130
|
-
function
|
|
2170
|
+
function fi(e, t) {
|
|
2131
2171
|
return t;
|
|
2132
2172
|
}
|
|
2133
|
-
function
|
|
2134
|
-
for (var r = e.items, s = [], i = t.length,
|
|
2135
|
-
|
|
2136
|
-
var
|
|
2137
|
-
if (
|
|
2173
|
+
function $s(e, t, n) {
|
|
2174
|
+
for (var r = e.items, s = [], i = t.length, f = 0; f < i; f++)
|
|
2175
|
+
zt(t[f].e, s, !0);
|
|
2176
|
+
var a = i > 0 && s.length === 0 && n !== null;
|
|
2177
|
+
if (a) {
|
|
2138
2178
|
var l = (
|
|
2139
2179
|
/** @type {Element} */
|
|
2140
2180
|
/** @type {Element} */
|
|
2141
2181
|
n.parentNode
|
|
2142
2182
|
);
|
|
2143
|
-
|
|
2183
|
+
Gt(l), l.append(
|
|
2144
2184
|
/** @type {Element} */
|
|
2145
2185
|
n
|
|
2146
|
-
), r.clear(),
|
|
2186
|
+
), r.clear(), Q(e, t[0].prev, t[i - 1].next);
|
|
2147
2187
|
}
|
|
2148
|
-
|
|
2188
|
+
Un(s, () => {
|
|
2149
2189
|
for (var u = 0; u < i; u++) {
|
|
2150
2190
|
var c = t[u];
|
|
2151
|
-
|
|
2191
|
+
a || (r.delete(c.k), Q(e, c.prev, c.next)), L(c.e, !a);
|
|
2152
2192
|
}
|
|
2153
2193
|
});
|
|
2154
2194
|
}
|
|
2155
|
-
function
|
|
2156
|
-
var
|
|
2195
|
+
function ai(e, t, n, r, s, i = null) {
|
|
2196
|
+
var f = e, a = { flags: t, items: /* @__PURE__ */ new Map(), first: null }, l = (t & un) !== 0;
|
|
2157
2197
|
if (l) {
|
|
2158
2198
|
var u = (
|
|
2159
2199
|
/** @type {Element} */
|
|
2160
2200
|
e
|
|
2161
2201
|
);
|
|
2162
|
-
|
|
2202
|
+
f = v ? C(
|
|
2163
2203
|
/** @type {Comment | Text} */
|
|
2164
|
-
/* @__PURE__ */
|
|
2204
|
+
/* @__PURE__ */ se(u)
|
|
2165
2205
|
) : u.appendChild(G());
|
|
2166
2206
|
}
|
|
2167
|
-
v &&
|
|
2168
|
-
var c = null, _ = !1, h = /* @__PURE__ */ new Map(), d = /* @__PURE__ */
|
|
2207
|
+
v && vt();
|
|
2208
|
+
var c = null, _ = !1, h = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ Yt(() => {
|
|
2169
2209
|
var E = n();
|
|
2170
|
-
return ut(E) ? E : E == null ? [] :
|
|
2210
|
+
return ut(E) ? E : E == null ? [] : qt(E);
|
|
2171
2211
|
}), o, g;
|
|
2172
|
-
function
|
|
2212
|
+
function $() {
|
|
2173
2213
|
bs(
|
|
2174
2214
|
g,
|
|
2175
2215
|
o,
|
|
2176
|
-
f,
|
|
2177
|
-
h,
|
|
2178
2216
|
a,
|
|
2217
|
+
h,
|
|
2218
|
+
f,
|
|
2179
2219
|
s,
|
|
2180
2220
|
t,
|
|
2181
2221
|
r,
|
|
2182
2222
|
n
|
|
2183
|
-
), i !== null && (o.length === 0 ? c ?
|
|
2223
|
+
), i !== null && (o.length === 0 ? c ? Jt(c) : c = Y(() => i(f)) : c !== null && Oe(c, () => {
|
|
2184
2224
|
c = null;
|
|
2185
2225
|
}));
|
|
2186
2226
|
}
|
|
2187
|
-
|
|
2227
|
+
Kt(() => {
|
|
2188
2228
|
g ??= /** @type {Effect} */
|
|
2189
2229
|
m, o = /** @type {V[]} */
|
|
2190
2230
|
M(d);
|
|
@@ -2194,22 +2234,22 @@ function ri(e, t, n, r, s, i = null) {
|
|
|
2194
2234
|
_ = E === 0;
|
|
2195
2235
|
let T = !1;
|
|
2196
2236
|
if (v) {
|
|
2197
|
-
var k =
|
|
2198
|
-
k !== (E === 0) && (
|
|
2237
|
+
var k = pn(f) === lt;
|
|
2238
|
+
k !== (E === 0) && (f = rt(), C(f), B(!1), T = !0);
|
|
2199
2239
|
}
|
|
2200
2240
|
if (v) {
|
|
2201
|
-
for (var
|
|
2241
|
+
for (var j = null, x, p = 0; p < E; p++) {
|
|
2202
2242
|
if (w.nodeType === De && /** @type {Comment} */
|
|
2203
|
-
w.data ===
|
|
2204
|
-
|
|
2243
|
+
w.data === jt) {
|
|
2244
|
+
f = /** @type {Comment} */
|
|
2205
2245
|
w, T = !0, B(!1);
|
|
2206
2246
|
break;
|
|
2207
2247
|
}
|
|
2208
2248
|
var S = o[p], R = r(S, p);
|
|
2209
|
-
x =
|
|
2249
|
+
x = Lt(
|
|
2210
2250
|
w,
|
|
2211
|
-
|
|
2212
|
-
|
|
2251
|
+
a,
|
|
2252
|
+
j,
|
|
2213
2253
|
null,
|
|
2214
2254
|
S,
|
|
2215
2255
|
R,
|
|
@@ -2217,23 +2257,23 @@ function ri(e, t, n, r, s, i = null) {
|
|
|
2217
2257
|
s,
|
|
2218
2258
|
t,
|
|
2219
2259
|
n
|
|
2220
|
-
),
|
|
2260
|
+
), a.items.set(R, x), j = x;
|
|
2221
2261
|
}
|
|
2222
|
-
E > 0 &&
|
|
2262
|
+
E > 0 && C(rt());
|
|
2223
2263
|
}
|
|
2224
2264
|
if (v)
|
|
2225
|
-
E === 0 && i && (c = Y(() => i(
|
|
2226
|
-
else if (
|
|
2227
|
-
var
|
|
2265
|
+
E === 0 && i && (c = Y(() => i(f)));
|
|
2266
|
+
else if (Mn()) {
|
|
2267
|
+
var je = /* @__PURE__ */ new Set(), Je = (
|
|
2228
2268
|
/** @type {Batch} */
|
|
2229
|
-
|
|
2269
|
+
b
|
|
2230
2270
|
);
|
|
2231
2271
|
for (p = 0; p < E; p += 1) {
|
|
2232
2272
|
S = o[p], R = r(S, p);
|
|
2233
|
-
var
|
|
2234
|
-
|
|
2273
|
+
var me = a.items.get(R) ?? h.get(R);
|
|
2274
|
+
me ? (t & (ft | at)) !== 0 && nr(me, S, p, t) : (x = Lt(
|
|
2235
2275
|
null,
|
|
2236
|
-
|
|
2276
|
+
a,
|
|
2237
2277
|
null,
|
|
2238
2278
|
null,
|
|
2239
2279
|
S,
|
|
@@ -2243,62 +2283,62 @@ function ri(e, t, n, r, s, i = null) {
|
|
|
2243
2283
|
t,
|
|
2244
2284
|
n,
|
|
2245
2285
|
!0
|
|
2246
|
-
), h.set(R, x)),
|
|
2286
|
+
), h.set(R, x)), je.add(R);
|
|
2247
2287
|
}
|
|
2248
|
-
for (const [
|
|
2249
|
-
|
|
2250
|
-
Je.add_callback(
|
|
2288
|
+
for (const [Z, Xe] of a.items)
|
|
2289
|
+
je.has(Z) || Je.skipped_effects.add(Xe.e);
|
|
2290
|
+
Je.add_callback($);
|
|
2251
2291
|
} else
|
|
2252
|
-
|
|
2292
|
+
$();
|
|
2253
2293
|
T && B(!0), M(d);
|
|
2254
|
-
}), v && (
|
|
2294
|
+
}), v && (f = w);
|
|
2255
2295
|
}
|
|
2256
|
-
function bs(e, t, n, r, s, i,
|
|
2257
|
-
var u = (
|
|
2296
|
+
function bs(e, t, n, r, s, i, f, a, l) {
|
|
2297
|
+
var u = (f & ur) !== 0, c = (f & (ft | at)) !== 0, _ = t.length, h = n.items, d = n.first, o = d, g, $ = null, E, T = [], k = [], j, x, p, S;
|
|
2258
2298
|
if (u)
|
|
2259
2299
|
for (S = 0; S < _; S += 1)
|
|
2260
|
-
|
|
2300
|
+
j = t[S], x = a(j, S), p = h.get(x), p !== void 0 && (p.a?.measure(), (E ??= /* @__PURE__ */ new Set()).add(p));
|
|
2261
2301
|
for (S = 0; S < _; S += 1) {
|
|
2262
|
-
if (
|
|
2302
|
+
if (j = t[S], x = a(j, S), p = h.get(x), p === void 0) {
|
|
2263
2303
|
var R = r.get(x);
|
|
2264
2304
|
if (R !== void 0) {
|
|
2265
2305
|
r.delete(x), h.set(x, R);
|
|
2266
|
-
var
|
|
2267
|
-
|
|
2306
|
+
var je = $ ? $.next : o;
|
|
2307
|
+
Q(n, $, R), Q(n, R, je), St(R, je, s), $ = R;
|
|
2268
2308
|
} else {
|
|
2269
2309
|
var Je = o ? (
|
|
2270
2310
|
/** @type {TemplateNode} */
|
|
2271
2311
|
o.e.nodes_start
|
|
2272
2312
|
) : s;
|
|
2273
|
-
|
|
2313
|
+
$ = Lt(
|
|
2274
2314
|
Je,
|
|
2275
2315
|
n,
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2316
|
+
$,
|
|
2317
|
+
$ === null ? n.first : $.next,
|
|
2318
|
+
j,
|
|
2279
2319
|
x,
|
|
2280
2320
|
S,
|
|
2281
2321
|
i,
|
|
2282
|
-
|
|
2322
|
+
f,
|
|
2283
2323
|
l
|
|
2284
2324
|
);
|
|
2285
2325
|
}
|
|
2286
|
-
h.set(x,
|
|
2326
|
+
h.set(x, $), T = [], k = [], o = $.next;
|
|
2287
2327
|
continue;
|
|
2288
2328
|
}
|
|
2289
|
-
if (c &&
|
|
2329
|
+
if (c && nr(p, j, S, f), (p.e.f & H) !== 0 && (Jt(p.e), u && (p.a?.unfix(), (E ??= /* @__PURE__ */ new Set()).delete(p))), p !== o) {
|
|
2290
2330
|
if (g !== void 0 && g.has(p)) {
|
|
2291
2331
|
if (T.length < k.length) {
|
|
2292
|
-
var
|
|
2293
|
-
|
|
2332
|
+
var me = k[0], Z;
|
|
2333
|
+
$ = me.prev;
|
|
2294
2334
|
var Xe = T[0], bt = T[T.length - 1];
|
|
2295
|
-
for (
|
|
2296
|
-
|
|
2297
|
-
for (
|
|
2298
|
-
g.delete(k[
|
|
2299
|
-
|
|
2335
|
+
for (Z = 0; Z < T.length; Z += 1)
|
|
2336
|
+
St(T[Z], me, s);
|
|
2337
|
+
for (Z = 0; Z < k.length; Z += 1)
|
|
2338
|
+
g.delete(k[Z]);
|
|
2339
|
+
Q(n, Xe.prev, bt.next), Q(n, $, Xe), Q(n, bt, me), o = me, $ = bt, S -= 1, T = [], k = [];
|
|
2300
2340
|
} else
|
|
2301
|
-
g.delete(p),
|
|
2341
|
+
g.delete(p), St(p, o, s), Q(n, p.prev, p.next), Q(n, p, $ === null ? n.first : $.next), Q(n, $, p), $ = p;
|
|
2302
2342
|
continue;
|
|
2303
2343
|
}
|
|
2304
2344
|
for (T = [], k = []; o !== null && o.k !== x; )
|
|
@@ -2307,41 +2347,41 @@ function bs(e, t, n, r, s, i, a, f, l) {
|
|
|
2307
2347
|
continue;
|
|
2308
2348
|
p = o;
|
|
2309
2349
|
}
|
|
2310
|
-
T.push(p),
|
|
2350
|
+
T.push(p), $ = p, o = p.next;
|
|
2311
2351
|
}
|
|
2312
2352
|
if (o !== null || g !== void 0) {
|
|
2313
|
-
for (var
|
|
2314
|
-
(o.e.f & H) === 0 &&
|
|
2315
|
-
var
|
|
2316
|
-
if (
|
|
2317
|
-
var
|
|
2353
|
+
for (var qe = g === void 0 ? [] : qt(g); o !== null; )
|
|
2354
|
+
(o.e.f & H) === 0 && qe.push(o), o = o.next;
|
|
2355
|
+
var Et = qe.length;
|
|
2356
|
+
if (Et > 0) {
|
|
2357
|
+
var ar = (f & un) !== 0 && _ === 0 ? s : null;
|
|
2318
2358
|
if (u) {
|
|
2319
|
-
for (S = 0; S <
|
|
2320
|
-
|
|
2321
|
-
for (S = 0; S <
|
|
2322
|
-
|
|
2359
|
+
for (S = 0; S < Et; S += 1)
|
|
2360
|
+
qe[S].a?.measure();
|
|
2361
|
+
for (S = 0; S < Et; S += 1)
|
|
2362
|
+
qe[S].a?.fix();
|
|
2323
2363
|
}
|
|
2324
|
-
|
|
2364
|
+
$s(n, qe, ar);
|
|
2325
2365
|
}
|
|
2326
2366
|
}
|
|
2327
|
-
u &&
|
|
2367
|
+
u && _e(() => {
|
|
2328
2368
|
if (E !== void 0)
|
|
2329
2369
|
for (p of E)
|
|
2330
2370
|
p.a?.apply();
|
|
2331
|
-
}), e.first = n.first && n.first.e, e.last =
|
|
2332
|
-
for (var
|
|
2333
|
-
L(
|
|
2371
|
+
}), e.first = n.first && n.first.e, e.last = $ && $.e;
|
|
2372
|
+
for (var lr of r.values())
|
|
2373
|
+
L(lr.e);
|
|
2334
2374
|
r.clear();
|
|
2335
2375
|
}
|
|
2336
|
-
function
|
|
2337
|
-
(r &
|
|
2376
|
+
function nr(e, t, n, r) {
|
|
2377
|
+
(r & ft) !== 0 && Le(e.v, t), (r & at) !== 0 ? Le(
|
|
2338
2378
|
/** @type {Value<number>} */
|
|
2339
2379
|
e.i,
|
|
2340
2380
|
n
|
|
2341
2381
|
) : e.i = n;
|
|
2342
2382
|
}
|
|
2343
|
-
function
|
|
2344
|
-
var _ = (l &
|
|
2383
|
+
function Lt(e, t, n, r, s, i, f, a, l, u, c) {
|
|
2384
|
+
var _ = (l & ft) !== 0, h = (l & or) === 0, d = _ ? h ? /* @__PURE__ */ Nn(s, !1, !1) : Ee(s) : s, o = (l & at) === 0 ? f : Ee(f), g = {
|
|
2345
2385
|
i: o,
|
|
2346
2386
|
v: d,
|
|
2347
2387
|
k: i,
|
|
@@ -2353,10 +2393,10 @@ function Pt(e, t, n, r, s, i, a, f, l, u, c) {
|
|
|
2353
2393
|
};
|
|
2354
2394
|
try {
|
|
2355
2395
|
if (e === null) {
|
|
2356
|
-
var
|
|
2357
|
-
|
|
2396
|
+
var $ = document.createDocumentFragment();
|
|
2397
|
+
$.append(e = G());
|
|
2358
2398
|
}
|
|
2359
|
-
return g.e = Y(() =>
|
|
2399
|
+
return g.e = Y(() => a(
|
|
2360
2400
|
/** @type {Node} */
|
|
2361
2401
|
e,
|
|
2362
2402
|
d,
|
|
@@ -2366,7 +2406,7 @@ function Pt(e, t, n, r, s, i, a, f, l, u, c) {
|
|
|
2366
2406
|
} finally {
|
|
2367
2407
|
}
|
|
2368
2408
|
}
|
|
2369
|
-
function
|
|
2409
|
+
function St(e, t, n) {
|
|
2370
2410
|
for (var r = e.next ? (
|
|
2371
2411
|
/** @type {TemplateNode} */
|
|
2372
2412
|
e.next.e.nodes_start
|
|
@@ -2377,18 +2417,18 @@ function Et(e, t, n) {
|
|
|
2377
2417
|
/** @type {TemplateNode} */
|
|
2378
2418
|
e.e.nodes_start
|
|
2379
2419
|
); i !== null && i !== r; ) {
|
|
2380
|
-
var
|
|
2420
|
+
var f = (
|
|
2381
2421
|
/** @type {TemplateNode} */
|
|
2382
|
-
/* @__PURE__ */
|
|
2422
|
+
/* @__PURE__ */ ie(i)
|
|
2383
2423
|
);
|
|
2384
|
-
s.before(i), i =
|
|
2424
|
+
s.before(i), i = f;
|
|
2385
2425
|
}
|
|
2386
2426
|
}
|
|
2387
|
-
function
|
|
2427
|
+
function Q(e, t, n) {
|
|
2388
2428
|
t === null ? e.first = n : (t.next = n, t.e.next = n && n.e), n !== null && (n.prev = t, n.e.prev = t && t.e);
|
|
2389
2429
|
}
|
|
2390
|
-
function
|
|
2391
|
-
|
|
2430
|
+
function li(e, t) {
|
|
2431
|
+
jn(() => {
|
|
2392
2432
|
var n = e.getRootNode(), r = (
|
|
2393
2433
|
/** @type {ShadowRoot} */
|
|
2394
2434
|
n.host ? (
|
|
@@ -2406,28 +2446,28 @@ function si(e, t) {
|
|
|
2406
2446
|
}
|
|
2407
2447
|
});
|
|
2408
2448
|
}
|
|
2409
|
-
function
|
|
2449
|
+
function rr(e, t, n = !1) {
|
|
2410
2450
|
if (e.multiple) {
|
|
2411
2451
|
if (t == null)
|
|
2412
2452
|
return;
|
|
2413
2453
|
if (!ut(t))
|
|
2414
|
-
return
|
|
2454
|
+
return Dr();
|
|
2415
2455
|
for (var r of e.options)
|
|
2416
2456
|
r.selected = t.includes(Ye(r));
|
|
2417
2457
|
return;
|
|
2418
2458
|
}
|
|
2419
2459
|
for (r of e.options) {
|
|
2420
2460
|
var s = Ye(r);
|
|
2421
|
-
if (
|
|
2461
|
+
if (Cn(s, t)) {
|
|
2422
2462
|
r.selected = !0;
|
|
2423
2463
|
return;
|
|
2424
2464
|
}
|
|
2425
2465
|
}
|
|
2426
2466
|
(!n || t !== void 0) && (e.selectedIndex = -1);
|
|
2427
2467
|
}
|
|
2428
|
-
function
|
|
2468
|
+
function Es(e) {
|
|
2429
2469
|
var t = new MutationObserver(() => {
|
|
2430
|
-
|
|
2470
|
+
rr(e, e.__value);
|
|
2431
2471
|
});
|
|
2432
2472
|
t.observe(e, {
|
|
2433
2473
|
// Listen to option element changes
|
|
@@ -2439,203 +2479,203 @@ function ys(e) {
|
|
|
2439
2479
|
// because that property is not reflected as an attribute)
|
|
2440
2480
|
attributes: !0,
|
|
2441
2481
|
attributeFilter: ["value"]
|
|
2442
|
-
}),
|
|
2482
|
+
}), yt(() => {
|
|
2443
2483
|
t.disconnect();
|
|
2444
2484
|
});
|
|
2445
2485
|
}
|
|
2446
|
-
function
|
|
2486
|
+
function ui(e, t, n = t) {
|
|
2447
2487
|
var r = /* @__PURE__ */ new WeakSet(), s = !0;
|
|
2448
2488
|
ze(e, "change", (i) => {
|
|
2449
|
-
var
|
|
2489
|
+
var f = i ? "[selected]" : ":checked", a;
|
|
2450
2490
|
if (e.multiple)
|
|
2451
|
-
|
|
2491
|
+
a = [].map.call(e.querySelectorAll(f), Ye);
|
|
2452
2492
|
else {
|
|
2453
|
-
var l = e.querySelector(
|
|
2493
|
+
var l = e.querySelector(f) ?? // will fall back to first non-disabled option if no option is selected
|
|
2454
2494
|
e.querySelector("option:not([disabled])");
|
|
2455
|
-
|
|
2495
|
+
a = l && Ye(l);
|
|
2456
2496
|
}
|
|
2457
|
-
n(
|
|
2458
|
-
}),
|
|
2497
|
+
n(a), b !== null && r.add(b);
|
|
2498
|
+
}), jn(() => {
|
|
2459
2499
|
var i = t();
|
|
2460
2500
|
if (e === document.activeElement) {
|
|
2461
|
-
var
|
|
2501
|
+
var f = (
|
|
2462
2502
|
/** @type {Batch} */
|
|
2463
|
-
He ??
|
|
2503
|
+
He ?? b
|
|
2464
2504
|
);
|
|
2465
|
-
if (r.has(
|
|
2505
|
+
if (r.has(f))
|
|
2466
2506
|
return;
|
|
2467
2507
|
}
|
|
2468
|
-
if (
|
|
2469
|
-
var
|
|
2470
|
-
|
|
2508
|
+
if (rr(e, i, s), s && i === void 0) {
|
|
2509
|
+
var a = e.querySelector(":checked");
|
|
2510
|
+
a !== null && (i = Ye(a), n(i));
|
|
2471
2511
|
}
|
|
2472
2512
|
e.__value = i, s = !1;
|
|
2473
|
-
}),
|
|
2513
|
+
}), Es(e);
|
|
2474
2514
|
}
|
|
2475
2515
|
function Ye(e) {
|
|
2476
2516
|
return "__value" in e ? e.__value : e.value;
|
|
2477
2517
|
}
|
|
2478
|
-
const
|
|
2479
|
-
function
|
|
2518
|
+
const Ss = Symbol("is custom element"), ks = Symbol("is html");
|
|
2519
|
+
function oi(e) {
|
|
2480
2520
|
if (v) {
|
|
2481
2521
|
var t = !1, n = () => {
|
|
2482
2522
|
if (!t) {
|
|
2483
2523
|
if (t = !0, e.hasAttribute("value")) {
|
|
2484
2524
|
var r = e.value;
|
|
2485
|
-
|
|
2525
|
+
Dt(e, "value", null), e.value = r;
|
|
2486
2526
|
}
|
|
2487
2527
|
if (e.hasAttribute("checked")) {
|
|
2488
2528
|
var s = e.checked;
|
|
2489
|
-
|
|
2529
|
+
Dt(e, "checked", null), e.checked = s;
|
|
2490
2530
|
}
|
|
2491
2531
|
}
|
|
2492
2532
|
};
|
|
2493
|
-
e.__on_r = n,
|
|
2533
|
+
e.__on_r = n, _e(n), Ln();
|
|
2494
2534
|
}
|
|
2495
2535
|
}
|
|
2496
|
-
function
|
|
2497
|
-
var n =
|
|
2536
|
+
function ci(e, t) {
|
|
2537
|
+
var n = sr(e);
|
|
2498
2538
|
n.value === (n.value = // treat null and undefined the same for the initial value
|
|
2499
2539
|
t ?? void 0) || // @ts-expect-error
|
|
2500
2540
|
// `progress` elements always need their value set when it's `0`
|
|
2501
2541
|
e.value === t && (t !== 0 || e.nodeName !== "PROGRESS") || (e.value = t ?? "");
|
|
2502
2542
|
}
|
|
2503
|
-
function
|
|
2504
|
-
var s =
|
|
2505
|
-
v && (s[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || s[t] !== (s[t] = n) && (t === "loading" && (e[
|
|
2543
|
+
function Dt(e, t, n, r) {
|
|
2544
|
+
var s = sr(e);
|
|
2545
|
+
v && (s[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || s[t] !== (s[t] = n) && (t === "loading" && (e[Sr] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ir(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2506
2546
|
}
|
|
2507
|
-
function
|
|
2508
|
-
var r =
|
|
2547
|
+
function hi(e, t, n) {
|
|
2548
|
+
var r = y, s = m;
|
|
2509
2549
|
let i = v;
|
|
2510
|
-
v && B(!1),
|
|
2550
|
+
v && B(!1), O(null), K(null);
|
|
2511
2551
|
try {
|
|
2512
2552
|
// `style` should use `set_attribute` rather than the setter
|
|
2513
2553
|
t !== "style" && // Don't compute setters for custom elements while they aren't registered yet,
|
|
2514
2554
|
// because during their upgrade/instantiation they might add more setters.
|
|
2515
2555
|
// Instead, fall back to a simple "an object, then set as property" heuristic.
|
|
2516
|
-
(
|
|
2517
|
-
!customElements || customElements.get(e.getAttribute("is") || e.tagName.toLowerCase()) ?
|
|
2556
|
+
(Ft.has(e.getAttribute("is") || e.nodeName) || // customElements may not be available in browser extension contexts
|
|
2557
|
+
!customElements || customElements.get(e.getAttribute("is") || e.tagName.toLowerCase()) ? ir(e).includes(t) : n && typeof n == "object") ? e[t] = n : Dt(e, t, n == null ? n : String(n));
|
|
2518
2558
|
} finally {
|
|
2519
|
-
|
|
2559
|
+
O(r), K(s), i && B(!0);
|
|
2520
2560
|
}
|
|
2521
2561
|
}
|
|
2522
|
-
function
|
|
2562
|
+
function sr(e) {
|
|
2523
2563
|
return (
|
|
2524
2564
|
/** @type {Record<string | symbol, unknown>} **/
|
|
2525
2565
|
// @ts-expect-error
|
|
2526
2566
|
e.__attributes ??= {
|
|
2527
|
-
[
|
|
2528
|
-
[
|
|
2567
|
+
[Ss]: e.nodeName.includes("-"),
|
|
2568
|
+
[ks]: e.namespaceURI === gr
|
|
2529
2569
|
}
|
|
2530
2570
|
);
|
|
2531
2571
|
}
|
|
2532
|
-
var
|
|
2533
|
-
function
|
|
2534
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2572
|
+
var Ft = /* @__PURE__ */ new Map();
|
|
2573
|
+
function ir(e) {
|
|
2574
|
+
var t = e.getAttribute("is") || e.nodeName, n = Ft.get(t);
|
|
2535
2575
|
if (n) return n;
|
|
2536
|
-
|
|
2576
|
+
Ft.set(t, n = []);
|
|
2537
2577
|
for (var r, s = e, i = Element.prototype; i !== s; ) {
|
|
2538
|
-
r =
|
|
2539
|
-
for (var
|
|
2540
|
-
r[
|
|
2541
|
-
s =
|
|
2578
|
+
r = hn(s);
|
|
2579
|
+
for (var f in r)
|
|
2580
|
+
r[f].set && n.push(f);
|
|
2581
|
+
s = Bt(s);
|
|
2542
2582
|
}
|
|
2543
2583
|
return n;
|
|
2544
2584
|
}
|
|
2545
|
-
function
|
|
2585
|
+
function di(e, t, n = t) {
|
|
2546
2586
|
var r = /* @__PURE__ */ new WeakSet();
|
|
2547
2587
|
ze(e, "input", async (s) => {
|
|
2548
2588
|
var i = s ? e.defaultValue : e.value;
|
|
2549
|
-
if (i =
|
|
2550
|
-
var
|
|
2551
|
-
if (e.value = i ?? "",
|
|
2589
|
+
if (i = Tt(e) ? At(i) : i, n(i), b !== null && r.add(b), await cs(), i !== (i = t())) {
|
|
2590
|
+
var f = e.selectionStart, a = e.selectionEnd, l = e.value.length;
|
|
2591
|
+
if (e.value = i ?? "", a !== null) {
|
|
2552
2592
|
var u = e.value.length;
|
|
2553
|
-
|
|
2593
|
+
f === a && a === l && u > l ? (e.selectionStart = u, e.selectionEnd = u) : (e.selectionStart = f, e.selectionEnd = Math.min(a, u));
|
|
2554
2594
|
}
|
|
2555
2595
|
}
|
|
2556
2596
|
}), // If we are hydrating and the value has since changed,
|
|
2557
2597
|
// then use the updated value from the input instead.
|
|
2558
2598
|
(v && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
|
|
2559
2599
|
// TODO Svelte 6: remove input.value check and set to empty string?
|
|
2560
|
-
|
|
2600
|
+
$t(t) == null && e.value) && (n(Tt(e) ? At(e.value) : e.value), b !== null && r.add(b)), Fe(() => {
|
|
2561
2601
|
var s = t();
|
|
2562
2602
|
if (e === document.activeElement) {
|
|
2563
2603
|
var i = (
|
|
2564
2604
|
/** @type {Batch} */
|
|
2565
|
-
He ??
|
|
2605
|
+
He ?? b
|
|
2566
2606
|
);
|
|
2567
2607
|
if (r.has(i))
|
|
2568
2608
|
return;
|
|
2569
2609
|
}
|
|
2570
|
-
|
|
2610
|
+
Tt(e) && s === At(e.value) || e.type === "date" && !s && !e.value || s !== e.value && (e.value = s ?? "");
|
|
2571
2611
|
});
|
|
2572
2612
|
}
|
|
2573
|
-
const
|
|
2574
|
-
function
|
|
2575
|
-
var i = n.getAttribute("type") === "checkbox",
|
|
2576
|
-
let
|
|
2613
|
+
const kt = /* @__PURE__ */ new Set();
|
|
2614
|
+
function _i(e, t, n, r, s = r) {
|
|
2615
|
+
var i = n.getAttribute("type") === "checkbox", f = e;
|
|
2616
|
+
let a = !1;
|
|
2577
2617
|
if (t !== null)
|
|
2578
2618
|
for (var l of t)
|
|
2579
|
-
|
|
2580
|
-
|
|
2619
|
+
f = f[l] ??= [];
|
|
2620
|
+
f.push(n), ze(
|
|
2581
2621
|
n,
|
|
2582
2622
|
"change",
|
|
2583
2623
|
() => {
|
|
2584
2624
|
var u = n.__value;
|
|
2585
|
-
i && (u =
|
|
2625
|
+
i && (u = ln(f, u, n.checked)), s(u);
|
|
2586
2626
|
},
|
|
2587
2627
|
// TODO better default value handling
|
|
2588
2628
|
() => s(i ? [] : null)
|
|
2589
2629
|
), Fe(() => {
|
|
2590
2630
|
var u = r();
|
|
2591
2631
|
if (v && n.defaultChecked !== n.checked) {
|
|
2592
|
-
|
|
2632
|
+
a = !0;
|
|
2593
2633
|
return;
|
|
2594
2634
|
}
|
|
2595
|
-
i ? (u = u || [], n.checked = u.includes(n.__value)) : n.checked =
|
|
2596
|
-
}),
|
|
2597
|
-
var u =
|
|
2598
|
-
u !== -1 &&
|
|
2599
|
-
}),
|
|
2600
|
-
|
|
2601
|
-
})),
|
|
2602
|
-
if (
|
|
2635
|
+
i ? (u = u || [], n.checked = u.includes(n.__value)) : n.checked = Cn(n.__value, u);
|
|
2636
|
+
}), yt(() => {
|
|
2637
|
+
var u = f.indexOf(n);
|
|
2638
|
+
u !== -1 && f.splice(u, 1);
|
|
2639
|
+
}), kt.has(f) || (kt.add(f), _e(() => {
|
|
2640
|
+
f.sort((u, c) => u.compareDocumentPosition(c) === 4 ? -1 : 1), kt.delete(f);
|
|
2641
|
+
})), _e(() => {
|
|
2642
|
+
if (a) {
|
|
2603
2643
|
var u;
|
|
2604
2644
|
if (i)
|
|
2605
|
-
u =
|
|
2645
|
+
u = ln(f, u, n.checked);
|
|
2606
2646
|
else {
|
|
2607
|
-
var c =
|
|
2647
|
+
var c = f.find((_) => _.checked);
|
|
2608
2648
|
u = c?.__value;
|
|
2609
2649
|
}
|
|
2610
2650
|
s(u);
|
|
2611
2651
|
}
|
|
2612
2652
|
});
|
|
2613
2653
|
}
|
|
2614
|
-
function
|
|
2654
|
+
function vi(e, t, n = t) {
|
|
2615
2655
|
ze(e, "change", (r) => {
|
|
2616
2656
|
var s = r ? e.defaultChecked : e.checked;
|
|
2617
2657
|
n(s);
|
|
2618
2658
|
}), // If we are hydrating and the value has since changed,
|
|
2619
2659
|
// then use the update value from the input instead.
|
|
2620
2660
|
(v && e.defaultChecked !== e.checked || // If defaultChecked is set, then checked == defaultChecked
|
|
2621
|
-
|
|
2661
|
+
$t(t) == null) && n(e.checked), Fe(() => {
|
|
2622
2662
|
var r = t();
|
|
2623
2663
|
e.checked = !!r;
|
|
2624
2664
|
});
|
|
2625
2665
|
}
|
|
2626
|
-
function
|
|
2666
|
+
function ln(e, t, n) {
|
|
2627
2667
|
for (var r = /* @__PURE__ */ new Set(), s = 0; s < e.length; s += 1)
|
|
2628
2668
|
e[s].checked && r.add(e[s].__value);
|
|
2629
2669
|
return n || r.delete(t), Array.from(r);
|
|
2630
2670
|
}
|
|
2631
|
-
function
|
|
2671
|
+
function Tt(e) {
|
|
2632
2672
|
var t = e.type;
|
|
2633
2673
|
return t === "number" || t === "range";
|
|
2634
2674
|
}
|
|
2635
|
-
function
|
|
2675
|
+
function At(e) {
|
|
2636
2676
|
return e === "" ? null : +e;
|
|
2637
2677
|
}
|
|
2638
|
-
function
|
|
2678
|
+
function pi(e, t, n = t) {
|
|
2639
2679
|
ze(e, "change", () => {
|
|
2640
2680
|
n(e.files);
|
|
2641
2681
|
}), // If we are hydrating and the value has since changed,
|
|
@@ -2645,7 +2685,7 @@ function hi(e, t, n = t) {
|
|
|
2645
2685
|
});
|
|
2646
2686
|
}
|
|
2647
2687
|
let Qe = !1;
|
|
2648
|
-
function
|
|
2688
|
+
function Ts(e) {
|
|
2649
2689
|
var t = Qe;
|
|
2650
2690
|
try {
|
|
2651
2691
|
return Qe = !1, [e(), Qe];
|
|
@@ -2653,27 +2693,27 @@ function ks(e) {
|
|
|
2653
2693
|
Qe = t;
|
|
2654
2694
|
}
|
|
2655
2695
|
}
|
|
2656
|
-
function
|
|
2657
|
-
var s = !Ge || (n &
|
|
2696
|
+
function mi(e, t, n, r) {
|
|
2697
|
+
var s = !Ge || (n & hr) !== 0, i = (n & _r) !== 0, f = (n & vr) !== 0, a = (
|
|
2658
2698
|
/** @type {V} */
|
|
2659
2699
|
r
|
|
2660
|
-
), l = !0, u = () => (l && (l = !1,
|
|
2700
|
+
), l = !0, u = () => (l && (l = !1, a = f ? $t(
|
|
2661
2701
|
/** @type {() => V} */
|
|
2662
2702
|
r
|
|
2663
2703
|
) : (
|
|
2664
2704
|
/** @type {V} */
|
|
2665
2705
|
r
|
|
2666
|
-
)),
|
|
2706
|
+
)), a), c;
|
|
2667
2707
|
if (i) {
|
|
2668
|
-
var _ =
|
|
2669
|
-
c =
|
|
2708
|
+
var _ = he in e || vn in e;
|
|
2709
|
+
c = ye(e, t)?.set ?? (_ && t in e ? (k) => e[t] = k : void 0);
|
|
2670
2710
|
}
|
|
2671
2711
|
var h, d = !1;
|
|
2672
|
-
i ? [h, d] =
|
|
2712
|
+
i ? [h, d] = Ts(() => (
|
|
2673
2713
|
/** @type {V} */
|
|
2674
2714
|
e[t]
|
|
2675
2715
|
)) : h = /** @type {V} */
|
|
2676
|
-
e[t], h === void 0 && r !== void 0 && (h = u(), c && (s &&
|
|
2716
|
+
e[t], h === void 0 && r !== void 0 && (h = u(), c && (s && Rr(), c(h)));
|
|
2677
2717
|
var o;
|
|
2678
2718
|
if (s ? o = () => {
|
|
2679
2719
|
var k = (
|
|
@@ -2686,20 +2726,20 @@ function di(e, t, n, r) {
|
|
|
2686
2726
|
/** @type {V} */
|
|
2687
2727
|
e[t]
|
|
2688
2728
|
);
|
|
2689
|
-
return k !== void 0 && (
|
|
2690
|
-
void 0), k === void 0 ?
|
|
2691
|
-
}, s && (n &
|
|
2729
|
+
return k !== void 0 && (a = /** @type {V} */
|
|
2730
|
+
void 0), k === void 0 ? a : k;
|
|
2731
|
+
}, s && (n & dr) === 0)
|
|
2692
2732
|
return o;
|
|
2693
2733
|
if (c) {
|
|
2694
2734
|
var g = e.$$legacy;
|
|
2695
2735
|
return (
|
|
2696
2736
|
/** @type {() => V} */
|
|
2697
|
-
(function(k,
|
|
2698
|
-
return arguments.length > 0 ? ((!s || !
|
|
2737
|
+
(function(k, j) {
|
|
2738
|
+
return arguments.length > 0 ? ((!s || !j || g || d) && c(j ? o() : k), k) : o();
|
|
2699
2739
|
})
|
|
2700
2740
|
);
|
|
2701
2741
|
}
|
|
2702
|
-
var
|
|
2742
|
+
var $ = !1, E = ((n & cr) !== 0 ? mt : Yt)(() => ($ = !1, o()));
|
|
2703
2743
|
i && M(E);
|
|
2704
2744
|
var T = (
|
|
2705
2745
|
/** @type {Effect} */
|
|
@@ -2707,19 +2747,19 @@ function di(e, t, n, r) {
|
|
|
2707
2747
|
);
|
|
2708
2748
|
return (
|
|
2709
2749
|
/** @type {() => V} */
|
|
2710
|
-
(function(k,
|
|
2750
|
+
(function(k, j) {
|
|
2711
2751
|
if (arguments.length > 0) {
|
|
2712
|
-
const x =
|
|
2713
|
-
return
|
|
2752
|
+
const x = j ? M(E) : s && i ? Ne(k) : k;
|
|
2753
|
+
return ee(E, x), $ = !0, a !== void 0 && (a = x), k;
|
|
2714
2754
|
}
|
|
2715
|
-
return
|
|
2755
|
+
return Te && $ || (T.f & ae) !== 0 ? E.v : M(E);
|
|
2716
2756
|
})
|
|
2717
2757
|
);
|
|
2718
2758
|
}
|
|
2719
|
-
function
|
|
2720
|
-
return new
|
|
2759
|
+
function As(e) {
|
|
2760
|
+
return new xs(e);
|
|
2721
2761
|
}
|
|
2722
|
-
class
|
|
2762
|
+
class xs {
|
|
2723
2763
|
/** @type {any} */
|
|
2724
2764
|
#t;
|
|
2725
2765
|
/** @type {Record<string, any>} */
|
|
@@ -2730,40 +2770,40 @@ class As {
|
|
|
2730
2770
|
* }} options
|
|
2731
2771
|
*/
|
|
2732
2772
|
constructor(t) {
|
|
2733
|
-
var n = /* @__PURE__ */ new Map(), r = (i,
|
|
2734
|
-
var
|
|
2735
|
-
return n.set(i,
|
|
2773
|
+
var n = /* @__PURE__ */ new Map(), r = (i, f) => {
|
|
2774
|
+
var a = /* @__PURE__ */ Nn(f, !1, !1);
|
|
2775
|
+
return n.set(i, a), a;
|
|
2736
2776
|
};
|
|
2737
2777
|
const s = new Proxy(
|
|
2738
2778
|
{ ...t.props || {}, $$events: {} },
|
|
2739
2779
|
{
|
|
2740
|
-
get(i,
|
|
2741
|
-
return M(n.get(
|
|
2780
|
+
get(i, f) {
|
|
2781
|
+
return M(n.get(f) ?? r(f, Reflect.get(i, f)));
|
|
2742
2782
|
},
|
|
2743
|
-
has(i,
|
|
2744
|
-
return
|
|
2783
|
+
has(i, f) {
|
|
2784
|
+
return f === vn ? !0 : (M(n.get(f) ?? r(f, Reflect.get(i, f))), Reflect.has(i, f));
|
|
2745
2785
|
},
|
|
2746
|
-
set(i,
|
|
2747
|
-
return
|
|
2786
|
+
set(i, f, a) {
|
|
2787
|
+
return ee(n.get(f) ?? r(f, a), a), Reflect.set(i, f, a);
|
|
2748
2788
|
}
|
|
2749
2789
|
}
|
|
2750
2790
|
);
|
|
2751
|
-
this.#e = (t.hydrate ?
|
|
2791
|
+
this.#e = (t.hydrate ? gs : er)(t.component, {
|
|
2752
2792
|
target: t.target,
|
|
2753
2793
|
anchor: t.anchor,
|
|
2754
2794
|
props: s,
|
|
2755
2795
|
context: t.context,
|
|
2756
2796
|
intro: t.intro ?? !1,
|
|
2757
2797
|
recover: t.recover
|
|
2758
|
-
}), (!t?.props?.$$host || t.sync === !1) &&
|
|
2798
|
+
}), (!t?.props?.$$host || t.sync === !1) && En(), this.#t = s.$$events;
|
|
2759
2799
|
for (const i of Object.keys(this.#e))
|
|
2760
2800
|
i === "$set" || i === "$destroy" || i === "$on" || Ie(this, i, {
|
|
2761
2801
|
get() {
|
|
2762
2802
|
return this.#e[i];
|
|
2763
2803
|
},
|
|
2764
2804
|
/** @param {any} value */
|
|
2765
|
-
set(
|
|
2766
|
-
this.#e[i] =
|
|
2805
|
+
set(f) {
|
|
2806
|
+
this.#e[i] = f;
|
|
2767
2807
|
},
|
|
2768
2808
|
enumerable: !0
|
|
2769
2809
|
});
|
|
@@ -2771,7 +2811,7 @@ class As {
|
|
|
2771
2811
|
(i) => {
|
|
2772
2812
|
Object.assign(s, i);
|
|
2773
2813
|
}, this.#e.$destroy = () => {
|
|
2774
|
-
|
|
2814
|
+
ys(this.#e);
|
|
2775
2815
|
};
|
|
2776
2816
|
}
|
|
2777
2817
|
/** @param {Record<string, any>} props */
|
|
@@ -2797,8 +2837,8 @@ class As {
|
|
|
2797
2837
|
this.#e.$destroy();
|
|
2798
2838
|
}
|
|
2799
2839
|
}
|
|
2800
|
-
let
|
|
2801
|
-
typeof HTMLElement == "function" && (
|
|
2840
|
+
let fr;
|
|
2841
|
+
typeof HTMLElement == "function" && (fr = class extends HTMLElement {
|
|
2802
2842
|
/** The Svelte component constructor */
|
|
2803
2843
|
$$ctor;
|
|
2804
2844
|
/** Slots */
|
|
@@ -2855,12 +2895,12 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
2855
2895
|
let e = function(r) {
|
|
2856
2896
|
return (s) => {
|
|
2857
2897
|
const i = document.createElement("slot");
|
|
2858
|
-
r !== "default" && (i.name = r),
|
|
2898
|
+
r !== "default" && (i.name = r), vs(s, i);
|
|
2859
2899
|
};
|
|
2860
2900
|
};
|
|
2861
2901
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
2862
2902
|
return;
|
|
2863
|
-
const t = {}, n =
|
|
2903
|
+
const t = {}, n = Ns(this);
|
|
2864
2904
|
for (const r of this.$$s)
|
|
2865
2905
|
r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
|
|
2866
2906
|
for (const r of this.attributes) {
|
|
@@ -2869,7 +2909,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
2869
2909
|
}
|
|
2870
2910
|
for (const r in this.$$p_d)
|
|
2871
2911
|
!(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
|
|
2872
|
-
this.$$c =
|
|
2912
|
+
this.$$c = As({
|
|
2873
2913
|
component: this.$$ctor,
|
|
2874
2914
|
target: this.shadowRoot || this,
|
|
2875
2915
|
props: {
|
|
@@ -2877,7 +2917,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
2877
2917
|
$$slots: t,
|
|
2878
2918
|
$$host: this
|
|
2879
2919
|
}
|
|
2880
|
-
}), this.$$me =
|
|
2920
|
+
}), this.$$me = ss(() => {
|
|
2881
2921
|
Fe(() => {
|
|
2882
2922
|
this.$$r = !0;
|
|
2883
2923
|
for (const r of tt(this.$$c)) {
|
|
@@ -2956,7 +2996,7 @@ function et(e, t, n, r) {
|
|
|
2956
2996
|
return t;
|
|
2957
2997
|
}
|
|
2958
2998
|
}
|
|
2959
|
-
function
|
|
2999
|
+
function Ns(e) {
|
|
2960
3000
|
const t = {};
|
|
2961
3001
|
return e.childNodes.forEach((n) => {
|
|
2962
3002
|
t[
|
|
@@ -2965,125 +3005,131 @@ function xs(e) {
|
|
|
2965
3005
|
] = !0;
|
|
2966
3006
|
}), t;
|
|
2967
3007
|
}
|
|
2968
|
-
function
|
|
2969
|
-
let
|
|
3008
|
+
function gi(e, t, n, r, s, i) {
|
|
3009
|
+
let f = class extends fr {
|
|
2970
3010
|
constructor() {
|
|
2971
3011
|
super(e, n, s), this.$$p_d = t;
|
|
2972
3012
|
}
|
|
2973
3013
|
static get observedAttributes() {
|
|
2974
3014
|
return tt(t).map(
|
|
2975
|
-
(
|
|
3015
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
2976
3016
|
);
|
|
2977
3017
|
}
|
|
2978
3018
|
};
|
|
2979
|
-
return tt(t).forEach((
|
|
2980
|
-
Ie(
|
|
3019
|
+
return tt(t).forEach((a) => {
|
|
3020
|
+
Ie(f.prototype, a, {
|
|
2981
3021
|
get() {
|
|
2982
|
-
return this.$$c &&
|
|
3022
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2983
3023
|
},
|
|
2984
3024
|
set(l) {
|
|
2985
|
-
l = et(
|
|
3025
|
+
l = et(a, l, t), this.$$d[a] = l;
|
|
2986
3026
|
var u = this.$$c;
|
|
2987
3027
|
if (u) {
|
|
2988
|
-
var c =
|
|
2989
|
-
c ? u[
|
|
3028
|
+
var c = ye(u, a)?.get;
|
|
3029
|
+
c ? u[a] = l : u.$set({ [a]: l });
|
|
2990
3030
|
}
|
|
2991
3031
|
}
|
|
2992
3032
|
});
|
|
2993
|
-
}), r.forEach((
|
|
2994
|
-
Ie(
|
|
3033
|
+
}), r.forEach((a) => {
|
|
3034
|
+
Ie(f.prototype, a, {
|
|
2995
3035
|
get() {
|
|
2996
|
-
return this.$$c?.[
|
|
3036
|
+
return this.$$c?.[a];
|
|
2997
3037
|
}
|
|
2998
3038
|
});
|
|
2999
3039
|
}), e.element = /** @type {any} */
|
|
3000
|
-
|
|
3040
|
+
f, f;
|
|
3001
3041
|
}
|
|
3002
3042
|
export {
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3043
|
+
ii as $,
|
|
3044
|
+
_t as A,
|
|
3045
|
+
ws as B,
|
|
3006
3046
|
De as C,
|
|
3007
3047
|
Re as D,
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3048
|
+
ht as E,
|
|
3049
|
+
re as F,
|
|
3050
|
+
Qn as G,
|
|
3011
3051
|
lt as H,
|
|
3012
|
-
|
|
3013
|
-
|
|
3052
|
+
se as I,
|
|
3053
|
+
gt as J,
|
|
3014
3054
|
Cs as K,
|
|
3015
|
-
|
|
3016
|
-
|
|
3055
|
+
Rs as L,
|
|
3056
|
+
jn as M,
|
|
3017
3057
|
Fe as N,
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3058
|
+
Ks as O,
|
|
3059
|
+
br as P,
|
|
3060
|
+
Ps as Q,
|
|
3061
|
+
M as R,
|
|
3062
|
+
he as S,
|
|
3063
|
+
Os as T,
|
|
3024
3064
|
N as U,
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3065
|
+
Js as V,
|
|
3066
|
+
mt as W,
|
|
3067
|
+
gi as X,
|
|
3068
|
+
mi as Y,
|
|
3069
|
+
ri as Z,
|
|
3070
|
+
Vs as _,
|
|
3031
3071
|
Ge as a,
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3072
|
+
vs as a0,
|
|
3073
|
+
Ur as a1,
|
|
3074
|
+
Hr as a2,
|
|
3075
|
+
Bs as a3,
|
|
3076
|
+
ti as a4,
|
|
3077
|
+
Us as a5,
|
|
3078
|
+
Ds as a6,
|
|
3079
|
+
Dt as a7,
|
|
3080
|
+
Qs as a8,
|
|
3081
|
+
li as a9,
|
|
3082
|
+
ci as aA,
|
|
3083
|
+
ui as aB,
|
|
3042
3084
|
ei as aa,
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3085
|
+
Zs as ab,
|
|
3086
|
+
oe as ac,
|
|
3087
|
+
ee as ad,
|
|
3088
|
+
Ys as ae,
|
|
3089
|
+
si as af,
|
|
3048
3090
|
ai as ag,
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3091
|
+
fi as ah,
|
|
3092
|
+
Ne as ai,
|
|
3093
|
+
js as aj,
|
|
3094
|
+
qs as ak,
|
|
3095
|
+
oi as al,
|
|
3096
|
+
jr as am,
|
|
3097
|
+
_i as an,
|
|
3098
|
+
hi as ao,
|
|
3099
|
+
Ms as ap,
|
|
3100
|
+
ni as aq,
|
|
3101
|
+
Fs as ar,
|
|
3102
|
+
Yt as as,
|
|
3103
|
+
tn as at,
|
|
3104
|
+
Xs as au,
|
|
3105
|
+
di as av,
|
|
3106
|
+
pi as aw,
|
|
3107
|
+
vi as ax,
|
|
3108
|
+
Hs as ay,
|
|
3109
|
+
Ws as az,
|
|
3110
|
+
Kt as b,
|
|
3065
3111
|
A as c,
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3112
|
+
$t as d,
|
|
3113
|
+
vt as e,
|
|
3114
|
+
Is as f,
|
|
3069
3115
|
rt as g,
|
|
3070
3116
|
v as h,
|
|
3071
3117
|
Ke as i,
|
|
3072
3118
|
B as j,
|
|
3073
3119
|
Le as k,
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3120
|
+
kr as l,
|
|
3121
|
+
Ee as m,
|
|
3122
|
+
Nn as n,
|
|
3123
|
+
Qr as o,
|
|
3078
3124
|
Ct as p,
|
|
3079
|
-
|
|
3125
|
+
_e as q,
|
|
3080
3126
|
Ue as r,
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3127
|
+
C as s,
|
|
3128
|
+
En as t,
|
|
3129
|
+
Gs as u,
|
|
3130
|
+
zs as v,
|
|
3085
3131
|
m as w,
|
|
3086
|
-
|
|
3132
|
+
ls as x,
|
|
3087
3133
|
w as y,
|
|
3088
|
-
|
|
3134
|
+
ie as z
|
|
3089
3135
|
};
|