@pie-players/pie-tool-dictionary 1.0.0-beta.0 → 1.0.0-beta.10
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/LICENSE +21 -0
- package/dist/THIRD-PARTY-LICENSES.txt +14 -0
- package/dist/element-props.d.ts +35 -0
- package/dist/index.d.ts +9 -12
- package/dist/tool-dictionary.js +3 -2733
- package/package.json +13 -10
package/dist/tool-dictionary.js
CHANGED
|
@@ -1,2737 +1,7 @@
|
|
|
1
|
-
import { coerceBooleanAttributes as ts } from "@pie-players/pie-players-shared/ui/attribute-coercion";
|
|
2
|
-
import { TermLookupSession as rs, createEndpointTermLookup as ns, normalizeTerm as is, readTermLookupPayload as ss, termPanelStatusMessage as as } from "@pie-players/pie-players-shared/tools/term-lookup";
|
|
3
|
-
if (typeof window < "u") {
|
|
4
|
-
var pn, gn;
|
|
5
|
-
((pn = (gn = window).__svelte ?? (gn.__svelte = {})).v ?? (pn.v = /* @__PURE__ */ new Set())).add("5");
|
|
6
|
-
}
|
|
7
|
-
var vt = {}, W = /* @__PURE__ */ Symbol("uninitialized");
|
|
8
|
-
var Fn = Array.isArray, os = Array.prototype.indexOf, nr = Array.prototype.includes, mr = Array.from, ir = Object.keys, Lt = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, ls = Object.getOwnPropertyDescriptors, fs = Object.prototype, us = Array.prototype, Dn = Object.getPrototypeOf, yn = Object.isExtensible, cs = () => {
|
|
9
|
-
};
|
|
10
|
-
function ds(e) {
|
|
11
|
-
for (var t = 0; t < e.length; t++) e[t]();
|
|
12
|
-
}
|
|
13
|
-
function Bn() {
|
|
14
|
-
var e, t;
|
|
15
|
-
return {
|
|
16
|
-
promise: new Promise((r, n) => {
|
|
17
|
-
e = r, t = n;
|
|
18
|
-
}),
|
|
19
|
-
resolve: e,
|
|
20
|
-
reject: t
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function Ct(e) {
|
|
24
|
-
"@babel/helpers - typeof";
|
|
25
|
-
return Ct = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
26
|
-
return typeof t;
|
|
27
|
-
} : function(t) {
|
|
28
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
29
|
-
}, Ct(e);
|
|
30
|
-
}
|
|
31
|
-
function vs(e, t) {
|
|
32
|
-
if (Ct(e) != "object" || !e) return e;
|
|
33
|
-
var r = e[Symbol.toPrimitive];
|
|
34
|
-
if (r !== void 0) {
|
|
35
|
-
var n = r.call(e, t || "default");
|
|
36
|
-
if (Ct(n) != "object") return n;
|
|
37
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
38
|
-
}
|
|
39
|
-
return (t === "string" ? String : Number)(e);
|
|
40
|
-
}
|
|
41
|
-
function hs(e) {
|
|
42
|
-
var t = vs(e, "string");
|
|
43
|
-
return Ct(t) == "symbol" ? t : t + "";
|
|
44
|
-
}
|
|
45
|
-
function O(e, t, r) {
|
|
46
|
-
return (t = hs(t)) in e ? Object.defineProperty(e, t, {
|
|
47
|
-
value: r,
|
|
48
|
-
enumerable: !0,
|
|
49
|
-
configurable: !0,
|
|
50
|
-
writable: !0
|
|
51
|
-
}) : e[t] = r, e;
|
|
52
|
-
}
|
|
53
|
-
var ko = 1 << 24, te = 1024, J = 2048, st = 4096, Yr = 8192, _s = 16384, Gr = 32768, mn = 1 << 25, Kr = 65536, $o = 1 << 17, So = 1 << 18, gt = 1 << 19, ps = 1 << 20, At = 1 << 25, wn = 1 << 21, gs = 1 << 22, sr = 1 << 23, Zt = /* @__PURE__ */ Symbol("$state"), Hn = /* @__PURE__ */ Symbol("component"), zn = /* @__PURE__ */ Symbol("legacy props"), ys = /* @__PURE__ */ Symbol(""), ms = /* @__PURE__ */ Symbol("proxy path"), Cr = /* @__PURE__ */ Symbol("attributes"), ws = /* @__PURE__ */ Symbol("class"), bs = /* @__PURE__ */ Symbol("style"), Qt = /* @__PURE__ */ Symbol("text"), Rt = /* @__PURE__ */ Symbol("form reset");
|
|
54
|
-
var Dt = new class extends Error {
|
|
55
|
-
constructor(...t) {
|
|
56
|
-
super(...t), O(this, "name", "StaleReactionError"), O(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
57
|
-
}
|
|
58
|
-
}(), ks = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
59
|
-
function $s() {
|
|
60
|
-
console.warn("https://svelte.dev/e/derived_inert");
|
|
61
|
-
}
|
|
62
|
-
function wr(e) {
|
|
63
|
-
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
64
|
-
}
|
|
65
|
-
function Ss() {
|
|
66
|
-
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
67
|
-
}
|
|
68
|
-
var T = !1;
|
|
69
|
-
function Re(e) {
|
|
70
|
-
T = e;
|
|
71
|
-
}
|
|
72
|
-
var M;
|
|
73
|
-
function Y(e) {
|
|
74
|
-
if (e === null)
|
|
75
|
-
throw wr(), vt;
|
|
76
|
-
return M = e;
|
|
77
|
-
}
|
|
78
|
-
function br() {
|
|
79
|
-
return Y(/* @__PURE__ */ Ee(M));
|
|
80
|
-
}
|
|
81
|
-
function pe(e) {
|
|
82
|
-
if (T) {
|
|
83
|
-
if (/* @__PURE__ */ Ee(M) !== null)
|
|
84
|
-
throw wr(), vt;
|
|
85
|
-
M = e;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
function Es(e = 1) {
|
|
89
|
-
if (T) {
|
|
90
|
-
for (var t = e, r = M; t--; ) r = /* @__PURE__ */ Ee(r);
|
|
91
|
-
M = r;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
function ar(e = !0) {
|
|
95
|
-
for (var t = 0, r = M; ; ) {
|
|
96
|
-
if (r.nodeType === 8) {
|
|
97
|
-
var n = r.data;
|
|
98
|
-
if (n === "]") {
|
|
99
|
-
if (t === 0) return r;
|
|
100
|
-
t -= 1;
|
|
101
|
-
} else (n === "[" || n === "[!" || n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
|
|
102
|
-
}
|
|
103
|
-
var i = /* @__PURE__ */ Ee(r);
|
|
104
|
-
e && r.remove(), r = i;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
function Un(e) {
|
|
108
|
-
if (!e || e.nodeType !== 8)
|
|
109
|
-
throw wr(), vt;
|
|
110
|
-
return e.data;
|
|
111
|
-
}
|
|
112
|
-
function Vn(e) {
|
|
113
|
-
return e === this.v;
|
|
114
|
-
}
|
|
115
|
-
function xs(e, t) {
|
|
116
|
-
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
117
|
-
}
|
|
118
|
-
function Yn(e) {
|
|
119
|
-
return !xs(e, this.v);
|
|
120
|
-
}
|
|
121
|
-
function qs() {
|
|
122
|
-
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
123
|
-
}
|
|
124
|
-
function Ms(e, t, r) {
|
|
125
|
-
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
126
|
-
}
|
|
127
|
-
function Ts(e) {
|
|
128
|
-
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
129
|
-
}
|
|
130
|
-
function As() {
|
|
131
|
-
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
132
|
-
}
|
|
133
|
-
function Rs(e) {
|
|
134
|
-
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
135
|
-
}
|
|
136
|
-
function Os() {
|
|
137
|
-
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
138
|
-
}
|
|
139
|
-
function Ps() {
|
|
140
|
-
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
141
|
-
}
|
|
142
|
-
function Ls(e) {
|
|
143
|
-
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
144
|
-
}
|
|
145
|
-
function Cs() {
|
|
146
|
-
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
147
|
-
}
|
|
148
|
-
function Ns() {
|
|
149
|
-
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
150
|
-
}
|
|
151
|
-
function Ws() {
|
|
152
|
-
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
153
|
-
}
|
|
154
|
-
function Is() {
|
|
155
|
-
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
156
|
-
}
|
|
157
|
-
var Se = !1, kr = !1;
|
|
158
|
-
function bn(e, t) {
|
|
159
|
-
return e.label = t, js(e.v, t), e;
|
|
160
|
-
}
|
|
161
|
-
function js(e, t) {
|
|
162
|
-
return e?.[ms]?.(t), e;
|
|
163
|
-
}
|
|
164
|
-
var j = null;
|
|
165
|
-
function ht(e) {
|
|
166
|
-
j = e;
|
|
167
|
-
}
|
|
168
|
-
function Gn(e, t = !1, r) {
|
|
169
|
-
j = {
|
|
170
|
-
p: j,
|
|
171
|
-
i: !1,
|
|
172
|
-
c: null,
|
|
173
|
-
e: null,
|
|
174
|
-
s: e,
|
|
175
|
-
x: null,
|
|
176
|
-
r: E,
|
|
177
|
-
l: kr && !t ? {
|
|
178
|
-
s: null,
|
|
179
|
-
u: null,
|
|
180
|
-
$: []
|
|
181
|
-
} : null
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
function Kn(e) {
|
|
185
|
-
var t = j, r = t.e;
|
|
186
|
-
if (r !== null) {
|
|
187
|
-
t.e = null;
|
|
188
|
-
for (var n of r) bi(n);
|
|
189
|
-
}
|
|
190
|
-
return e !== void 0 && (t.x = e), t.i = !0, j = t.p, Xn(e);
|
|
191
|
-
}
|
|
192
|
-
function Xn(e = {}) {
|
|
193
|
-
return Lt(e, Hn, { value: !0 }), e;
|
|
194
|
-
}
|
|
195
|
-
function Bt() {
|
|
196
|
-
return !kr || j !== null && j.l === null;
|
|
197
|
-
}
|
|
198
|
-
var Ke = [];
|
|
199
|
-
function Jn() {
|
|
200
|
-
var e = Ke;
|
|
201
|
-
Ke = [], ds(e);
|
|
202
|
-
}
|
|
203
|
-
function ke(e) {
|
|
204
|
-
if (Ke.length === 0 && !Ot) {
|
|
205
|
-
var t = Ke;
|
|
206
|
-
queueMicrotask(() => {
|
|
207
|
-
t === Ke && Jn();
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
Ke.push(e);
|
|
211
|
-
}
|
|
212
|
-
function Fs() {
|
|
213
|
-
for (; Ke.length > 0; ) Jn();
|
|
214
|
-
}
|
|
215
|
-
var Ds = ~(J | st | te);
|
|
216
|
-
function C(e, t) {
|
|
217
|
-
e.f = e.f & Ds | t;
|
|
218
|
-
}
|
|
219
|
-
function Xr(e) {
|
|
220
|
-
(e.f & 512) !== 0 || e.deps === null ? C(e, te) : C(e, st);
|
|
221
|
-
}
|
|
222
|
-
function Zn(e, t, r) {
|
|
223
|
-
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), C(e, te);
|
|
224
|
-
}
|
|
225
|
-
var kn = !1;
|
|
226
|
-
function Qn() {
|
|
227
|
-
kn || (kn = !0, document.addEventListener("reset", (e) => {
|
|
228
|
-
Promise.resolve().then(() => {
|
|
229
|
-
if (!e.defaultPrevented) for (const t of e.target.elements) t[Rt]?.();
|
|
230
|
-
});
|
|
231
|
-
}, { capture: !0 }));
|
|
232
|
-
}
|
|
233
|
-
function yt(e) {
|
|
234
|
-
var t = q, r = E;
|
|
235
|
-
ne(null), $e(null);
|
|
236
|
-
try {
|
|
237
|
-
return e();
|
|
238
|
-
} finally {
|
|
239
|
-
ne(t), $e(r);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
function Bs(e, t, r, n = r) {
|
|
243
|
-
e.addEventListener(t, () => yt(r));
|
|
244
|
-
const i = e[Rt];
|
|
245
|
-
i ? e[Rt] = () => {
|
|
246
|
-
i(), n(!0);
|
|
247
|
-
} : e[Rt] = () => n(!0), Qn();
|
|
248
|
-
}
|
|
249
|
-
function Hs(e, t, r, n) {
|
|
250
|
-
const i = Bt() ? Nt : Jr;
|
|
251
|
-
var s = e.filter((f) => !f.settled), o = t.map(i);
|
|
252
|
-
if (r.length === 0 && s.length === 0) {
|
|
253
|
-
n(o);
|
|
254
|
-
return;
|
|
255
|
-
}
|
|
256
|
-
var l = E, u = zs(), v = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((f) => f.promise)) : null;
|
|
257
|
-
function h(f) {
|
|
258
|
-
if ((l.f & 16384) === 0) {
|
|
259
|
-
u();
|
|
260
|
-
try {
|
|
261
|
-
n([...o, ...f]);
|
|
262
|
-
} catch (p) {
|
|
263
|
-
be(p, l);
|
|
264
|
-
}
|
|
265
|
-
or();
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
var d = ei();
|
|
269
|
-
if (r.length === 0) {
|
|
270
|
-
v.then(() => h([])).finally(d);
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
273
|
-
function c() {
|
|
274
|
-
Promise.all(r.map((f) => /* @__PURE__ */ Vs(f))).then(h).catch((f) => be(f, l)).finally(d);
|
|
275
|
-
}
|
|
276
|
-
v ? v.then(() => {
|
|
277
|
-
u(), c(), or();
|
|
278
|
-
}) : c();
|
|
279
|
-
}
|
|
280
|
-
function zs() {
|
|
281
|
-
var e = E, t = q, r = j, n = b;
|
|
282
|
-
if (0) var i;
|
|
283
|
-
return function(o = !0) {
|
|
284
|
-
$e(e), ne(t), ht(r), o && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
var Us = !1;
|
|
288
|
-
function or(e = !0) {
|
|
289
|
-
Us = !1, $e(null), ne(null), ht(null), e && b?.deactivate();
|
|
290
|
-
}
|
|
291
|
-
function ei() {
|
|
292
|
-
var e = E, t = e.b, r = b, n = !!t?.is_rendered();
|
|
293
|
-
return t?.update_pending_count(1, r), r.increment(n, e), () => {
|
|
294
|
-
t?.update_pending_count(-1, r), r.decrement(n, e);
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
// @__NO_SIDE_EFFECTS__
|
|
298
|
-
function Nt(e) {
|
|
299
|
-
var t = 2 | J;
|
|
300
|
-
return E !== null && (E.f |= gt), {
|
|
301
|
-
ctx: j,
|
|
302
|
-
deps: null,
|
|
303
|
-
effects: null,
|
|
304
|
-
equals: Vn,
|
|
305
|
-
f: t,
|
|
306
|
-
fn: e,
|
|
307
|
-
reactions: null,
|
|
308
|
-
rv: 0,
|
|
309
|
-
v: W,
|
|
310
|
-
wv: 0,
|
|
311
|
-
parent: E,
|
|
312
|
-
ac: null
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
var Et = /* @__PURE__ */ Symbol("obsolete");
|
|
316
|
-
// @__NO_SIDE_EFFECTS__
|
|
317
|
-
function Vs(e, t, r) {
|
|
318
|
-
let n = E;
|
|
319
|
-
n === null && qs();
|
|
320
|
-
var i = void 0, s = it(W), o = !q, l = /* @__PURE__ */ new Set();
|
|
321
|
-
return ca(() => {
|
|
322
|
-
var u = E, v = Bn();
|
|
323
|
-
i = v.promise;
|
|
324
|
-
try {
|
|
325
|
-
Promise.resolve(e()).then(v.resolve, (f) => {
|
|
326
|
-
f !== Dt && v.reject(f);
|
|
327
|
-
}).finally(or);
|
|
328
|
-
} catch (f) {
|
|
329
|
-
v.reject(f), or();
|
|
330
|
-
}
|
|
331
|
-
var h = b;
|
|
332
|
-
if (o) {
|
|
333
|
-
if ((u.f & 32768) !== 0) var d = ei();
|
|
334
|
-
if (n.b?.is_rendered()) h.async_deriveds.get(u)?.reject(Et);
|
|
335
|
-
else for (const f of l.values()) f.reject(Et);
|
|
336
|
-
l.add(v), h.async_deriveds.set(u, v);
|
|
337
|
-
}
|
|
338
|
-
const c = (f, p = void 0) => {
|
|
339
|
-
d?.(), l.delete(v), p !== Et && (h.activate(), p ? (s.f |= sr, _t(s, p)) : ((s.f & 8388608) !== 0 && (s.f ^= sr), _t(s, f)), h.deactivate());
|
|
340
|
-
};
|
|
341
|
-
v.promise.then(c, (f) => c(null, f || "unknown"));
|
|
342
|
-
}), wi(() => {
|
|
343
|
-
for (const u of l) u.reject(Et);
|
|
344
|
-
}), new Promise((u) => {
|
|
345
|
-
function v(h) {
|
|
346
|
-
function d() {
|
|
347
|
-
h === i ? u(s) : v(i);
|
|
348
|
-
}
|
|
349
|
-
h.then(d, d);
|
|
350
|
-
}
|
|
351
|
-
v(i);
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
// @__NO_SIDE_EFFECTS__
|
|
355
|
-
function $n(e) {
|
|
356
|
-
const t = /* @__PURE__ */ Nt(e);
|
|
357
|
-
return Se || xi(t), t;
|
|
358
|
-
}
|
|
359
|
-
// @__NO_SIDE_EFFECTS__
|
|
360
|
-
function Jr(e) {
|
|
361
|
-
const t = /* @__PURE__ */ Nt(e);
|
|
362
|
-
return t.equals = Yn, t;
|
|
363
|
-
}
|
|
364
|
-
function Ys(e) {
|
|
365
|
-
var t = e.effects;
|
|
366
|
-
if (t !== null) {
|
|
367
|
-
e.effects = null;
|
|
368
|
-
for (var r = 0; r < t.length; r += 1) z(t[r]);
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
function Zr(e) {
|
|
372
|
-
var t, r = E, n = e.parent;
|
|
373
|
-
if (!Pe && n !== null && e.v !== W && (n.f & 24576) !== 0)
|
|
374
|
-
return $s(), e.v;
|
|
375
|
-
$e(n);
|
|
376
|
-
try {
|
|
377
|
-
Ys(e), t = Ai(e);
|
|
378
|
-
} finally {
|
|
379
|
-
$e(r);
|
|
380
|
-
}
|
|
381
|
-
return t;
|
|
382
|
-
}
|
|
383
|
-
function ti(e) {
|
|
384
|
-
var t = Zr(e);
|
|
385
|
-
if (!e.equals(t) && (e.wv = Mi(), (!b?.is_fork || e.deps === null) && (b !== null ? (b.capture(e, t, !0), fr?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
386
|
-
C(e, te);
|
|
387
|
-
return;
|
|
388
|
-
}
|
|
389
|
-
Pe || (H !== null ? (sn() || b?.is_fork) && H.set(e, t) : Xr(e));
|
|
390
|
-
}
|
|
391
|
-
function Gs(e) {
|
|
392
|
-
if (e.effects !== null)
|
|
393
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && yt(() => {
|
|
394
|
-
t.ac.abort(Dt), t.ac = null;
|
|
395
|
-
}), t.fn !== null && (t.teardown = cs), It(t, 0), ln(t));
|
|
396
|
-
}
|
|
397
|
-
function ri(e) {
|
|
398
|
-
if (e.effects !== null)
|
|
399
|
-
for (const t of e.effects) t.teardown && t.fn !== null && pt(t);
|
|
400
|
-
}
|
|
401
|
-
function ni(e, t) {
|
|
402
|
-
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
403
|
-
}
|
|
404
|
-
function Qr(e, t) {
|
|
405
|
-
ni(e, t), t.add(e);
|
|
406
|
-
}
|
|
407
|
-
function $(e, t, r) {
|
|
408
|
-
ni(e, t), t.set(e, r);
|
|
409
|
-
}
|
|
410
|
-
function S(e, t, r) {
|
|
411
|
-
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
412
|
-
throw new TypeError("Private element is not present on this object");
|
|
413
|
-
}
|
|
414
|
-
function m(e, t, r) {
|
|
415
|
-
return e.set(S(e, t), r), r;
|
|
416
|
-
}
|
|
417
|
-
function a(e, t) {
|
|
418
|
-
return e.get(S(e, t));
|
|
419
|
-
}
|
|
420
|
-
var ii, lr = null, lt = null, b = null, fr = null, H = null, Nr = null, Ot = !1, qr = !1, Wt = null, ur = null, si = 0;
|
|
421
|
-
var Ks = 1, cr = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakSet(), at = class ai {
|
|
422
|
-
constructor() {
|
|
423
|
-
Qr(this, P), O(this, "id", Ks++), $(this, cr, !1), O(this, "linked", !0), $(this, et, null), $(this, Xe, null), O(this, "async_deriveds", /* @__PURE__ */ new Map()), O(this, "current", /* @__PURE__ */ new Map()), O(this, "previous", /* @__PURE__ */ new Map()), $(this, dr, /* @__PURE__ */ new Set()), $(this, Vt, /* @__PURE__ */ new Set()), $(this, ft, 0), $(this, Ye, /* @__PURE__ */ new Map()), $(this, xt, null), $(this, oe, []), $(this, Wr, []), $(this, nt, /* @__PURE__ */ new Set()), $(this, Oe, /* @__PURE__ */ new Set()), $(this, Fe, /* @__PURE__ */ new Map()), $(this, er, /* @__PURE__ */ new Set()), O(this, "is_fork", !1), $(this, qt, !1), lt === null ? lr = lt = this : (m(Xe, lt, this), m(et, this, lt)), lt = this;
|
|
424
|
-
}
|
|
425
|
-
skip_effect(t) {
|
|
426
|
-
a(Fe, this).has(t) || a(Fe, this).set(t, {
|
|
427
|
-
d: [],
|
|
428
|
-
m: []
|
|
429
|
-
}), a(er, this).delete(t);
|
|
430
|
-
}
|
|
431
|
-
unskip_effect(t, r = (n) => this.schedule(n)) {
|
|
432
|
-
var n = a(Fe, this).get(t);
|
|
433
|
-
if (n) {
|
|
434
|
-
a(Fe, this).delete(t);
|
|
435
|
-
for (var i of n.d)
|
|
436
|
-
C(i, J), r(i);
|
|
437
|
-
for (i of n.m)
|
|
438
|
-
C(i, st), r(i);
|
|
439
|
-
}
|
|
440
|
-
a(er, this).add(t);
|
|
441
|
-
}
|
|
442
|
-
capture(t, r, n = !1) {
|
|
443
|
-
t.v !== W && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), H?.set(t, r)), this.is_fork || (t.v = r);
|
|
444
|
-
}
|
|
445
|
-
activate() {
|
|
446
|
-
b = this;
|
|
447
|
-
}
|
|
448
|
-
deactivate() {
|
|
449
|
-
b = null, H = null;
|
|
450
|
-
}
|
|
451
|
-
flush() {
|
|
452
|
-
try {
|
|
453
|
-
qr = !0, b = this, S(P, this, vr).call(this);
|
|
454
|
-
} finally {
|
|
455
|
-
si = 0, Nr = null, Wt = null, ur = null, qr = !1, b = null, H = null, we.clear();
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
discard() {
|
|
459
|
-
for (const t of a(Vt, this)) t(this);
|
|
460
|
-
a(Vt, this).clear();
|
|
461
|
-
for (const t of this.async_deriveds.values()) t.reject(Et);
|
|
462
|
-
S(P, this, hr).call(this), a(xt, this)?.resolve();
|
|
463
|
-
}
|
|
464
|
-
register_created_effect(t) {
|
|
465
|
-
a(Wr, this).push(t);
|
|
466
|
-
}
|
|
467
|
-
increment(t, r) {
|
|
468
|
-
if (m(ft, this, a(ft, this) + 1), t) {
|
|
469
|
-
let n = a(Ye, this).get(r) ?? 0;
|
|
470
|
-
a(Ye, this).set(r, n + 1);
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
decrement(t, r) {
|
|
474
|
-
if (m(ft, this, a(ft, this) - 1), t) {
|
|
475
|
-
let n = a(Ye, this).get(r) ?? 0;
|
|
476
|
-
n === 1 ? a(Ye, this).delete(r) : a(Ye, this).set(r, n - 1);
|
|
477
|
-
}
|
|
478
|
-
a(qt, this) || (m(qt, this, !0), ke(() => {
|
|
479
|
-
m(qt, this, !1), this.linked && this.flush();
|
|
480
|
-
}));
|
|
481
|
-
}
|
|
482
|
-
transfer_effects(t, r) {
|
|
483
|
-
for (const n of t) a(nt, this).add(n);
|
|
484
|
-
for (const n of r) a(Oe, this).add(n);
|
|
485
|
-
t.clear(), r.clear();
|
|
486
|
-
}
|
|
487
|
-
oncommit(t) {
|
|
488
|
-
a(dr, this).add(t);
|
|
489
|
-
}
|
|
490
|
-
ondiscard(t) {
|
|
491
|
-
a(Vt, this).add(t);
|
|
492
|
-
}
|
|
493
|
-
settled() {
|
|
494
|
-
return (a(xt, this) ?? m(xt, this, Bn())).promise;
|
|
495
|
-
}
|
|
496
|
-
static ensure() {
|
|
497
|
-
if (b === null) {
|
|
498
|
-
const t = b = new ai();
|
|
499
|
-
!qr && !Ot && ke(() => {
|
|
500
|
-
a(cr, t) || t.flush();
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
return b;
|
|
504
|
-
}
|
|
505
|
-
apply() {
|
|
506
|
-
if (!Se || !this.is_fork && a(et, this) === null && a(Xe, this) === null) {
|
|
507
|
-
H = null;
|
|
508
|
-
return;
|
|
509
|
-
}
|
|
510
|
-
H = /* @__PURE__ */ new Map();
|
|
511
|
-
for (const [r, [n]] of this.current) H.set(r, n);
|
|
512
|
-
for (let r = lr; r !== null; r = a(Xe, r))
|
|
513
|
-
if (!(r === this || r.is_fork)) {
|
|
514
|
-
var t = !1;
|
|
515
|
-
if (r.id < this.id) {
|
|
516
|
-
for (const [n, [, i]] of r.current)
|
|
517
|
-
if (!i && this.current.has(n)) {
|
|
518
|
-
t = !0;
|
|
519
|
-
break;
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
if (!t)
|
|
523
|
-
for (const [n, i] of r.previous) H.has(n) || H.set(n, i);
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
schedule(t) {
|
|
527
|
-
if (Nr = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
528
|
-
t.b.defer_effect(t);
|
|
529
|
-
return;
|
|
530
|
-
}
|
|
531
|
-
a(oe, this).push(t);
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
|
-
ii = at;
|
|
535
|
-
function Sn() {
|
|
536
|
-
if (this.is_fork) return !0;
|
|
537
|
-
for (const r of a(Ye, this).keys()) {
|
|
538
|
-
for (var e = r, t = !1; e.parent !== null; ) {
|
|
539
|
-
if (a(Fe, this).has(e)) {
|
|
540
|
-
t = !0;
|
|
541
|
-
break;
|
|
542
|
-
}
|
|
543
|
-
e = e.parent;
|
|
544
|
-
}
|
|
545
|
-
if (!t) return !0;
|
|
546
|
-
}
|
|
547
|
-
return !1;
|
|
548
|
-
}
|
|
549
|
-
function oi() {
|
|
550
|
-
var e = [];
|
|
551
|
-
for (const i of a(oe, this))
|
|
552
|
-
if (!((i.f & 16384) !== 0 || (i.f & 6144) === 0)) {
|
|
553
|
-
for (var t = i, r = !1; t.parent !== null; ) {
|
|
554
|
-
t = t.parent;
|
|
555
|
-
var n = t.f;
|
|
556
|
-
if ((n & 96) !== 0) {
|
|
557
|
-
if ((n & 1024) === 0) {
|
|
558
|
-
r = !0;
|
|
559
|
-
break;
|
|
560
|
-
}
|
|
561
|
-
t.f ^= te;
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
r || e.push(t);
|
|
565
|
-
}
|
|
566
|
-
return m(oe, this, []), e;
|
|
567
|
-
}
|
|
568
|
-
function vr() {
|
|
569
|
-
m(cr, this, !0);
|
|
570
|
-
for (const o of a(nt, this))
|
|
571
|
-
a(Oe, this).delete(o), C(o, J), this.schedule(o);
|
|
572
|
-
for (const o of a(Oe, this))
|
|
573
|
-
C(o, st), this.schedule(o);
|
|
574
|
-
this.apply();
|
|
575
|
-
for (var e = Wt = [], t = [], r = ur = []; a(oe, this).length > 0; ) {
|
|
576
|
-
si++ > 1e3 && (S(P, this, hr).call(this), Qs());
|
|
577
|
-
for (const o of S(P, this, oi).call(this)) try {
|
|
578
|
-
S(P, this, li).call(this, o, e, t);
|
|
579
|
-
} catch (l) {
|
|
580
|
-
throw ci(o), S(P, this, Sn).call(this) || this.discard(), l;
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
if (b = null, r.length > 0) {
|
|
584
|
-
var n = ii.ensure();
|
|
585
|
-
for (const o of r) n.schedule(o);
|
|
586
|
-
}
|
|
587
|
-
if (Wt = null, ur = null, S(P, this, Sn).call(this)) {
|
|
588
|
-
S(P, this, Mt).call(this, t), S(P, this, Mt).call(this, e);
|
|
589
|
-
for (const [o, l] of a(Fe, this)) ui(o, l);
|
|
590
|
-
r.length > 0 && S(P, b, vr).call(b);
|
|
591
|
-
return;
|
|
592
|
-
}
|
|
593
|
-
const i = S(P, this, Xs).call(this);
|
|
594
|
-
if (i) {
|
|
595
|
-
S(P, this, Mt).call(this, t), S(P, this, Mt).call(this, e), S(P, i, Js).call(i, this);
|
|
596
|
-
return;
|
|
597
|
-
}
|
|
598
|
-
a(nt, this).clear(), a(Oe, this).clear();
|
|
599
|
-
for (const o of a(dr, this)) o(this);
|
|
600
|
-
a(dr, this).clear(), fr = this, En(t), En(e), fr = null, a(xt, this)?.resolve();
|
|
601
|
-
var s = b;
|
|
602
|
-
if (a(ft, this) === 0 && (a(oe, this).length === 0 || s !== null) && (S(P, this, hr).call(this), Se && (S(P, this, Zs).call(this), b = s)), a(oe, this).length > 0)
|
|
603
|
-
if (s !== null) {
|
|
604
|
-
for (const o of a(oe, this)) a(oe, s).push(o);
|
|
605
|
-
m(oe, this, []);
|
|
606
|
-
} else s = this;
|
|
607
|
-
s !== null && (we.clear(), S(P, s, vr).call(s));
|
|
608
|
-
}
|
|
609
|
-
function li(e, t, r) {
|
|
610
|
-
e.f ^= te;
|
|
611
|
-
for (var n = e.first; n !== null; ) {
|
|
612
|
-
var i = n.f, s = (i & 96) !== 0;
|
|
613
|
-
if (!(s && (i & 1024) !== 0 || (i & 8192) !== 0 || a(Fe, this).has(n)) && n.fn !== null) {
|
|
614
|
-
s ? n.f ^= te : (i & 4) !== 0 ? t.push(n) : Se && (i & 16777224) !== 0 ? r.push(n) : Ht(n) && ((i & 16) !== 0 && a(Oe, this).add(n), pt(n));
|
|
615
|
-
var o = n.first;
|
|
616
|
-
if (o !== null) {
|
|
617
|
-
n = o;
|
|
618
|
-
continue;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
for (; n !== null; ) {
|
|
622
|
-
var l = n.next;
|
|
623
|
-
if (l !== null) {
|
|
624
|
-
n = l;
|
|
625
|
-
break;
|
|
626
|
-
}
|
|
627
|
-
n = n.parent;
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
function Xs() {
|
|
632
|
-
for (var e = a(et, this); e !== null; ) {
|
|
633
|
-
if (!e.is_fork) {
|
|
634
|
-
for (const [t, [, r]] of this.current) if (e.current.has(t) && !r) return e;
|
|
635
|
-
}
|
|
636
|
-
e = a(et, e);
|
|
637
|
-
}
|
|
638
|
-
return null;
|
|
639
|
-
}
|
|
640
|
-
function Js(e) {
|
|
641
|
-
for (const [r, n] of e.current)
|
|
642
|
-
!this.previous.has(r) && e.previous.has(r) && this.previous.set(r, e.previous.get(r)), this.current.set(r, n);
|
|
643
|
-
for (const [r, n] of e.async_deriveds) {
|
|
644
|
-
const i = this.async_deriveds.get(r);
|
|
645
|
-
i && n.promise.then(i.resolve).catch(i.reject);
|
|
646
|
-
}
|
|
647
|
-
e.async_deriveds.clear(), this.transfer_effects(a(nt, e), a(Oe, e));
|
|
648
|
-
const t = (r) => {
|
|
649
|
-
var n = r.reactions;
|
|
650
|
-
if (n !== null && !((r.f & 2) !== 0 && (r.f & 6144) === 0))
|
|
651
|
-
for (const o of n) {
|
|
652
|
-
var i = o.f;
|
|
653
|
-
if ((i & 2) !== 0) t(o);
|
|
654
|
-
else {
|
|
655
|
-
var s = o;
|
|
656
|
-
i & 4194320 && !this.async_deriveds.has(s) && (a(Oe, this).delete(s), C(s, J), this.schedule(s));
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
};
|
|
660
|
-
for (const r of this.current.keys()) t(r);
|
|
661
|
-
this.oncommit(() => e.discard()), S(P, e, hr).call(e), b = this, S(P, this, vr).call(this);
|
|
662
|
-
}
|
|
663
|
-
function Mt(e) {
|
|
664
|
-
for (var t = 0; t < e.length; t += 1) Zn(e[t], a(nt, this), a(Oe, this));
|
|
665
|
-
}
|
|
666
|
-
function Zs() {
|
|
667
|
-
for (let h = lr; h !== null; h = a(Xe, h)) {
|
|
668
|
-
var e = h.id < this.id, t = [];
|
|
669
|
-
for (const [d, [c, f]] of this.current) {
|
|
670
|
-
if (h.current.has(d)) {
|
|
671
|
-
var r = h.current.get(d)[0];
|
|
672
|
-
if (e && c !== r) h.current.set(d, [c, f]);
|
|
673
|
-
else continue;
|
|
674
|
-
}
|
|
675
|
-
t.push(d);
|
|
676
|
-
}
|
|
677
|
-
if (e) for (const [d, c] of this.async_deriveds) {
|
|
678
|
-
const f = h.async_deriveds.get(d);
|
|
679
|
-
f && c.promise.then(f.resolve).catch(f.reject);
|
|
680
|
-
}
|
|
681
|
-
var n = [...h.current.keys()].filter((d) => !h.current.get(d)[1]);
|
|
682
|
-
if (!(!a(cr, h) || n.length === 0)) {
|
|
683
|
-
var i = n.filter((d) => !this.current.has(d));
|
|
684
|
-
if (i.length === 0)
|
|
685
|
-
e && h.discard();
|
|
686
|
-
else if (t.length > 0) {
|
|
687
|
-
if (e) for (const d of a(er, this)) h.unskip_effect(d, (c) => {
|
|
688
|
-
(c.f & 4194320) !== 0 ? h.schedule(c) : S(P, h, Mt).call(h, [c]);
|
|
689
|
-
});
|
|
690
|
-
h.activate();
|
|
691
|
-
var s = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
692
|
-
for (var l of t) fi(l, i, s, o);
|
|
693
|
-
o = /* @__PURE__ */ new Map();
|
|
694
|
-
var u = [...h.current].filter(([d, c]) => {
|
|
695
|
-
const f = this.current.get(d);
|
|
696
|
-
return f ? f[0] !== c[0] || f[1] !== c[1] : !0;
|
|
697
|
-
}).map(([d]) => d);
|
|
698
|
-
if (u.length > 0)
|
|
699
|
-
for (const d of a(Wr, this)) (d.f & 155648) === 0 && en(d, u, o) && ((d.f & 4194320) !== 0 ? (C(d, J), h.schedule(d)) : a(nt, h).add(d));
|
|
700
|
-
if (a(oe, h).length > 0 && !a(qt, h)) {
|
|
701
|
-
h.apply();
|
|
702
|
-
for (var v of S(P, h, oi).call(h)) S(P, h, li).call(h, v, [], []);
|
|
703
|
-
}
|
|
704
|
-
h.deactivate();
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
function hr() {
|
|
710
|
-
if (this.linked) {
|
|
711
|
-
var e = a(et, this), t = a(Xe, this);
|
|
712
|
-
e === null ? lr = t : m(Xe, e, t), t === null ? lt = e : m(et, t, e), this.linked = !1;
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
function ae(e) {
|
|
716
|
-
var t = Ot;
|
|
717
|
-
Ot = !0;
|
|
718
|
-
try {
|
|
719
|
-
var r;
|
|
720
|
-
for (e && (b !== null && !b.is_fork && b.flush(), r = e()); ; ) {
|
|
721
|
-
if (Fs(), b === null) return r;
|
|
722
|
-
b.flush();
|
|
723
|
-
}
|
|
724
|
-
} finally {
|
|
725
|
-
Ot = t;
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
function Qs() {
|
|
729
|
-
if (0) {
|
|
730
|
-
var e;
|
|
731
|
-
for (const r of b.current.keys()) for (const [n, i] of r.updated ?? [])
|
|
732
|
-
var t;
|
|
733
|
-
}
|
|
734
|
-
try {
|
|
735
|
-
Os();
|
|
736
|
-
} catch (r) {
|
|
737
|
-
be(r, Nr);
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
var ye = null;
|
|
741
|
-
function En(e) {
|
|
742
|
-
var t = e.length;
|
|
743
|
-
if (t !== 0) {
|
|
744
|
-
for (var r = 0; r < t; ) {
|
|
745
|
-
var n = e[r++];
|
|
746
|
-
if ((n.f & 24576) === 0 && Ht(n) && (ye = /* @__PURE__ */ new Set(), pt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && $i(n), ye?.size > 0)) {
|
|
747
|
-
we.clear();
|
|
748
|
-
for (const i of ye) {
|
|
749
|
-
if ((i.f & 24576) !== 0) continue;
|
|
750
|
-
const s = [i];
|
|
751
|
-
let o = i.parent;
|
|
752
|
-
for (; o !== null; )
|
|
753
|
-
ye.has(o) && (ye.delete(o), s.push(o)), o = o.parent;
|
|
754
|
-
for (let l = s.length - 1; l >= 0; l--) {
|
|
755
|
-
const u = s[l];
|
|
756
|
-
(u.f & 24576) === 0 && pt(u);
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
ye.clear();
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
ye = null;
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
function fi(e, t, r, n) {
|
|
766
|
-
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
767
|
-
for (const i of e.reactions) {
|
|
768
|
-
const s = i.f;
|
|
769
|
-
(s & 2) !== 0 ? fi(i, t, r, n) : (s & 4194320) !== 0 && (s & 2048) === 0 && en(i, t, n) && (C(i, J), tn(i));
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
function en(e, t, r) {
|
|
773
|
-
const n = r.get(e);
|
|
774
|
-
if (n !== void 0) return n;
|
|
775
|
-
if (e.deps !== null) for (const i of e.deps) {
|
|
776
|
-
if (nr.call(t, i)) return !0;
|
|
777
|
-
if ((i.f & 2) !== 0 && en(i, t, r))
|
|
778
|
-
return r.set(i, !0), !0;
|
|
779
|
-
}
|
|
780
|
-
return r.set(e, !1), !1;
|
|
781
|
-
}
|
|
782
|
-
function tn(e) {
|
|
783
|
-
b.schedule(e);
|
|
784
|
-
}
|
|
785
|
-
function ui(e, t) {
|
|
786
|
-
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
787
|
-
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), C(e, te);
|
|
788
|
-
for (var r = e.first; r !== null; )
|
|
789
|
-
ui(r, t), r = r.next;
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
function ci(e) {
|
|
793
|
-
C(e, te);
|
|
794
|
-
for (var t = e.first; t !== null; )
|
|
795
|
-
ci(t), t = t.next;
|
|
796
|
-
}
|
|
797
|
-
var _r = /* @__PURE__ */ new Set(), we = /* @__PURE__ */ new Map();
|
|
798
|
-
var di = !1;
|
|
799
|
-
function it(e, t) {
|
|
800
|
-
var r = {
|
|
801
|
-
f: 0,
|
|
802
|
-
v: e,
|
|
803
|
-
reactions: null,
|
|
804
|
-
equals: Vn,
|
|
805
|
-
rv: 0,
|
|
806
|
-
wv: 0
|
|
807
|
-
};
|
|
808
|
-
return r;
|
|
809
|
-
}
|
|
810
|
-
// @__NO_SIDE_EFFECTS__
|
|
811
|
-
function ge(e, t) {
|
|
812
|
-
const r = it(e, t);
|
|
813
|
-
return xi(r), r;
|
|
814
|
-
}
|
|
815
|
-
// @__NO_SIDE_EFFECTS__
|
|
816
|
-
function vi(e, t = !1, r = !0) {
|
|
817
|
-
const n = it(e);
|
|
818
|
-
if (t || (n.equals = Yn), kr && r && j !== null && j.l !== null) {
|
|
819
|
-
var i;
|
|
820
|
-
((i = j.l).s ?? (i.s = [])).push(n);
|
|
821
|
-
}
|
|
822
|
-
return n;
|
|
823
|
-
}
|
|
824
|
-
function Q(e, t, r = !1) {
|
|
825
|
-
q !== null && (!le || (q.f & 131072) !== 0) && Bt() && (q.f & 4325394) !== 0 && (ue === null || !ue.has(e)) && Ws();
|
|
826
|
-
let n = r ? Je(t) : t;
|
|
827
|
-
return _t(e, n, ur);
|
|
828
|
-
}
|
|
829
|
-
var Ge = null, Ir = 0;
|
|
830
|
-
function _t(e, t, r = null) {
|
|
831
|
-
if (!e.equals(t)) {
|
|
832
|
-
Pe ? we.set(e, t) : we.has(e) || we.set(e, e.v);
|
|
833
|
-
var n = at.ensure();
|
|
834
|
-
if (n.capture(e, t), (e.f & 2) !== 0) {
|
|
835
|
-
const i = e;
|
|
836
|
-
(e.f & 2048) !== 0 && Zr(i), H === null && Xr(i);
|
|
837
|
-
}
|
|
838
|
-
e.wv = Mi(), Ge = null, Ir = 0, hi(e, J, r), Ge = null, Bt() && E !== null && (E.f & 1024) !== 0 && (E.f & 96) === 0 && (Z === null ? _a([e]) : Z.push(e)), !n.is_fork && _r.size > 0 && !di && ea();
|
|
839
|
-
}
|
|
840
|
-
return t;
|
|
841
|
-
}
|
|
842
|
-
function ea() {
|
|
843
|
-
di = !1;
|
|
844
|
-
for (const e of _r) {
|
|
845
|
-
(e.f & 1024) !== 0 && C(e, st);
|
|
846
|
-
let t;
|
|
847
|
-
try {
|
|
848
|
-
t = Ht(e);
|
|
849
|
-
} catch {
|
|
850
|
-
t = !0;
|
|
851
|
-
}
|
|
852
|
-
t && pt(e);
|
|
853
|
-
}
|
|
854
|
-
_r.clear();
|
|
855
|
-
}
|
|
856
|
-
function Pt(e) {
|
|
857
|
-
Q(e, e.v + 1);
|
|
858
|
-
}
|
|
859
|
-
function hi(e, t, r) {
|
|
860
|
-
var n = e.reactions;
|
|
861
|
-
if (n !== null) {
|
|
862
|
-
var i = Bt(), s = n.length;
|
|
863
|
-
if (Ir += s, Ir > 1e5 && Ge === null && (Ge = /* @__PURE__ */ new Set()), Ge !== null) {
|
|
864
|
-
if (Ge.has(e)) return;
|
|
865
|
-
Ge.add(e);
|
|
866
|
-
}
|
|
867
|
-
for (var o = 0; o < s; o++) {
|
|
868
|
-
var l = n[o], u = l.f;
|
|
869
|
-
if (!(!i && l === E)) {
|
|
870
|
-
var v = (u & J) === 0;
|
|
871
|
-
if (v && C(l, t), (u & 131072) !== 0) _r.add(l);
|
|
872
|
-
else if ((u & 2) !== 0) {
|
|
873
|
-
var h = l;
|
|
874
|
-
H?.delete(h), hi(h, st, r);
|
|
875
|
-
} else if (v) {
|
|
876
|
-
var d = l;
|
|
877
|
-
(u & 16) !== 0 && ye !== null && ye.add(d), r !== null ? r.push(d) : tn(d);
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
var ta = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
884
|
-
function Je(e) {
|
|
885
|
-
if (typeof e != "object" || e === null || Zt in e || Hn in e) return e;
|
|
886
|
-
const t = Dn(e);
|
|
887
|
-
if (t !== fs && t !== us) return e;
|
|
888
|
-
var r = /* @__PURE__ */ new Map(), n = Fn(e), i = /* @__PURE__ */ ge(0), s = null, o = tt, l = (d) => {
|
|
889
|
-
if (tt === o) return d();
|
|
890
|
-
var c = q, f = tt;
|
|
891
|
-
ne(null), Tn(o);
|
|
892
|
-
var p = d();
|
|
893
|
-
return ne(c), Tn(f), p;
|
|
894
|
-
};
|
|
895
|
-
n && r.set("length", /* @__PURE__ */ ge(e.length, s));
|
|
896
|
-
var u = "";
|
|
897
|
-
let v = !1;
|
|
898
|
-
function h(d) {
|
|
899
|
-
if (!v) {
|
|
900
|
-
v = !0, u = d, bn(i, `${u} version`);
|
|
901
|
-
for (const [c, f] of r) bn(f, ra(u, c));
|
|
902
|
-
v = !1;
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
return new Proxy(e, {
|
|
906
|
-
defineProperty(d, c, f) {
|
|
907
|
-
(!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && Cs();
|
|
908
|
-
var p = r.get(c);
|
|
909
|
-
return p === void 0 ? l(() => {
|
|
910
|
-
var y = /* @__PURE__ */ ge(f.value, s);
|
|
911
|
-
return r.set(c, y), y;
|
|
912
|
-
}) : Q(p, f.value, !0), !0;
|
|
913
|
-
},
|
|
914
|
-
deleteProperty(d, c) {
|
|
915
|
-
var f = r.get(c);
|
|
916
|
-
if (f === void 0) {
|
|
917
|
-
if (c in d) {
|
|
918
|
-
const p = l(() => /* @__PURE__ */ ge(W, s));
|
|
919
|
-
r.set(c, p), Pt(i);
|
|
920
|
-
}
|
|
921
|
-
} else
|
|
922
|
-
Q(f, W), Pt(i);
|
|
923
|
-
return !0;
|
|
924
|
-
},
|
|
925
|
-
get(d, c, f) {
|
|
926
|
-
if (c === Zt) return e;
|
|
927
|
-
var p = r.get(c), y = c in d;
|
|
928
|
-
if (p === void 0 && (!y || Qe(d, c)?.writable) && (p = l(() => {
|
|
929
|
-
var g = Je(y ? d[c] : W), A = /* @__PURE__ */ ge(g, s);
|
|
930
|
-
return A;
|
|
931
|
-
}), r.set(c, p)), p !== void 0) {
|
|
932
|
-
var _ = k(p);
|
|
933
|
-
return _ === W ? void 0 : _;
|
|
934
|
-
}
|
|
935
|
-
return Reflect.get(d, c, f);
|
|
936
|
-
},
|
|
937
|
-
getOwnPropertyDescriptor(d, c) {
|
|
938
|
-
this.has?.(d, c);
|
|
939
|
-
var f = Reflect.getOwnPropertyDescriptor(d, c), p = r.get(c);
|
|
940
|
-
if (p !== void 0) {
|
|
941
|
-
var y = k(p);
|
|
942
|
-
if (y === W) return;
|
|
943
|
-
if (f && "value" in f) f.value = y;
|
|
944
|
-
else return {
|
|
945
|
-
enumerable: !0,
|
|
946
|
-
configurable: !0,
|
|
947
|
-
value: y,
|
|
948
|
-
writable: !0
|
|
949
|
-
};
|
|
950
|
-
}
|
|
951
|
-
return f;
|
|
952
|
-
},
|
|
953
|
-
has(d, c) {
|
|
954
|
-
if (c === Zt) return !0;
|
|
955
|
-
var f = r.get(c), p = f !== void 0 && f.v !== W || Reflect.has(d, c);
|
|
956
|
-
return (f !== void 0 || E !== null && (!p || Qe(d, c)?.writable)) && (f === void 0 && (f = l(() => {
|
|
957
|
-
var y = p ? Je(d[c]) : W, _ = /* @__PURE__ */ ge(y, s);
|
|
958
|
-
return _;
|
|
959
|
-
}), r.set(c, f)), k(f) === W) ? !1 : p;
|
|
960
|
-
},
|
|
961
|
-
set(d, c, f, p) {
|
|
962
|
-
var y = r.get(c), _ = c in d;
|
|
963
|
-
if (n && c === "length") for (var g = f; g < y.v; g += 1) {
|
|
964
|
-
var A = r.get(g + "");
|
|
965
|
-
A !== void 0 ? Q(A, W) : g in d && (A = l(() => /* @__PURE__ */ ge(W, s)), r.set(g + "", A));
|
|
966
|
-
}
|
|
967
|
-
if (y === void 0)
|
|
968
|
-
(!_ || Qe(d, c)?.writable) && (y = l(() => /* @__PURE__ */ ge(void 0, s)), Q(y, Je(f)), r.set(c, y));
|
|
969
|
-
else {
|
|
970
|
-
_ = y.v !== W;
|
|
971
|
-
var N = l(() => Je(f));
|
|
972
|
-
Q(y, N);
|
|
973
|
-
}
|
|
974
|
-
var x = Reflect.getOwnPropertyDescriptor(d, c);
|
|
975
|
-
if (x?.set && x.set.call(p, f), !_) {
|
|
976
|
-
if (n && typeof c == "string") {
|
|
977
|
-
var w = r.get("length"), R = Number(c);
|
|
978
|
-
Number.isInteger(R) && R >= w.v && Q(w, R + 1);
|
|
979
|
-
}
|
|
980
|
-
Pt(i);
|
|
981
|
-
}
|
|
982
|
-
return !0;
|
|
983
|
-
},
|
|
984
|
-
ownKeys(d) {
|
|
985
|
-
k(i);
|
|
986
|
-
var c = Reflect.ownKeys(d).filter((y) => {
|
|
987
|
-
var _ = r.get(y);
|
|
988
|
-
return _ === void 0 || _.v !== W;
|
|
989
|
-
});
|
|
990
|
-
for (var [f, p] of r) p.v !== W && !(f in d) && c.push(f);
|
|
991
|
-
return c;
|
|
992
|
-
},
|
|
993
|
-
setPrototypeOf() {
|
|
994
|
-
Ns();
|
|
995
|
-
}
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
function ra(e, t) {
|
|
999
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : ta.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1000
|
-
}
|
|
1001
|
-
var xn, na, _i, pi, gi;
|
|
1002
|
-
function jr() {
|
|
1003
|
-
if (xn === void 0) {
|
|
1004
|
-
xn = window, na = document, _i = /Firefox/.test(navigator.userAgent);
|
|
1005
|
-
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1006
|
-
pi = Qe(t, "firstChild").get, gi = Qe(t, "nextSibling").get, yn(e) && (e[ws] = void 0, e[Cr] = null, e[bs] = void 0, e.__e = void 0), yn(r) && (r[Qt] = void 0);
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
function ee(e = "") {
|
|
1010
|
-
return document.createTextNode(e);
|
|
1011
|
-
}
|
|
1012
|
-
// @__NO_SIDE_EFFECTS__
|
|
1013
|
-
function Be(e) {
|
|
1014
|
-
return pi.call(e);
|
|
1015
|
-
}
|
|
1016
|
-
// @__NO_SIDE_EFFECTS__
|
|
1017
|
-
function Ee(e) {
|
|
1018
|
-
return gi.call(e);
|
|
1019
|
-
}
|
|
1020
|
-
function je(e, t) {
|
|
1021
|
-
if (!T) return /* @__PURE__ */ Be(e);
|
|
1022
|
-
var r = /* @__PURE__ */ Be(M);
|
|
1023
|
-
if (r === null) r = M.appendChild(ee());
|
|
1024
|
-
else if (t && r.nodeType !== 3) {
|
|
1025
|
-
var n = ee();
|
|
1026
|
-
return r?.before(n), Y(n), n;
|
|
1027
|
-
}
|
|
1028
|
-
return t && nn(r), Y(r), r;
|
|
1029
|
-
}
|
|
1030
|
-
function ia(e, t = !1) {
|
|
1031
|
-
if (!T) {
|
|
1032
|
-
var r = /* @__PURE__ */ Be(e);
|
|
1033
|
-
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Ee(r) : r;
|
|
1034
|
-
}
|
|
1035
|
-
if (t) {
|
|
1036
|
-
if (M?.nodeType !== 3) {
|
|
1037
|
-
var n = ee();
|
|
1038
|
-
return M?.before(n), Y(n), n;
|
|
1039
|
-
}
|
|
1040
|
-
nn(M);
|
|
1041
|
-
}
|
|
1042
|
-
return M;
|
|
1043
|
-
}
|
|
1044
|
-
function Ce(e, t = !1) {
|
|
1045
|
-
if (!T) return /* @__PURE__ */ Be(e);
|
|
1046
|
-
var r = je(e, t);
|
|
1047
|
-
return pe(e), r;
|
|
1048
|
-
}
|
|
1049
|
-
function Ne(e, t = 1, r = !1) {
|
|
1050
|
-
let n = T ? M : e;
|
|
1051
|
-
for (var i; t--; )
|
|
1052
|
-
i = n, n = /* @__PURE__ */ Ee(n);
|
|
1053
|
-
if (!T) return n;
|
|
1054
|
-
if (r) {
|
|
1055
|
-
if (n?.nodeType !== 3) {
|
|
1056
|
-
var s = ee();
|
|
1057
|
-
return n === null ? i?.after(s) : n.before(s), Y(s), s;
|
|
1058
|
-
}
|
|
1059
|
-
nn(n);
|
|
1060
|
-
}
|
|
1061
|
-
return Y(n), n;
|
|
1062
|
-
}
|
|
1063
|
-
function yi(e) {
|
|
1064
|
-
e.textContent = "";
|
|
1065
|
-
}
|
|
1066
|
-
function mi() {
|
|
1067
|
-
return !Se || ye !== null ? !1 : (E.f & Gr) !== 0;
|
|
1068
|
-
}
|
|
1069
|
-
function rn(e, t, r) {
|
|
1070
|
-
return t == null || t === "http://www.w3.org/1999/xhtml" ? r ? document.createElement(e, { is: r }) : document.createElement(e) : r ? document.createElementNS(t, e, { is: r }) : document.createElementNS(t, e);
|
|
1071
|
-
}
|
|
1072
|
-
function nn(e) {
|
|
1073
|
-
if (e.nodeValue.length < 65536) return;
|
|
1074
|
-
let t = e.nextSibling;
|
|
1075
|
-
for (; t !== null && t.nodeType === 3; )
|
|
1076
|
-
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1077
|
-
}
|
|
1078
|
-
function sa(e) {
|
|
1079
|
-
var t = E;
|
|
1080
|
-
if (t === null)
|
|
1081
|
-
return q.f |= sr, e;
|
|
1082
|
-
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
1083
|
-
throw e;
|
|
1084
|
-
be(e, t);
|
|
1085
|
-
}
|
|
1086
|
-
function be(e, t) {
|
|
1087
|
-
if (!(t !== null && (t.f & 16384) !== 0)) {
|
|
1088
|
-
for (; t !== null; ) {
|
|
1089
|
-
if ((t.f & 128) !== 0 && (t.f & 33570816) === 0) {
|
|
1090
|
-
if ((t.f & 32768) === 0) throw e;
|
|
1091
|
-
try {
|
|
1092
|
-
t.b.error(e);
|
|
1093
|
-
return;
|
|
1094
|
-
} catch (r) {
|
|
1095
|
-
e = r;
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
t = t.parent;
|
|
1099
|
-
}
|
|
1100
|
-
throw e;
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
function aa(e) {
|
|
1104
|
-
E === null && (q === null && Rs(e), As()), Pe && Ts(e);
|
|
1105
|
-
}
|
|
1106
|
-
function oa(e, t) {
|
|
1107
|
-
var r = t.last;
|
|
1108
|
-
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1109
|
-
}
|
|
1110
|
-
function xe(e, t) {
|
|
1111
|
-
var r = E;
|
|
1112
|
-
r !== null && (r.f & 8192) !== 0 && (e |= Yr);
|
|
1113
|
-
var n = {
|
|
1114
|
-
ctx: j,
|
|
1115
|
-
deps: null,
|
|
1116
|
-
nodes: null,
|
|
1117
|
-
f: e | J | 512,
|
|
1118
|
-
first: null,
|
|
1119
|
-
fn: t,
|
|
1120
|
-
last: null,
|
|
1121
|
-
next: null,
|
|
1122
|
-
parent: r,
|
|
1123
|
-
b: r && r.b,
|
|
1124
|
-
prev: null,
|
|
1125
|
-
teardown: null,
|
|
1126
|
-
wv: 0,
|
|
1127
|
-
ac: null
|
|
1128
|
-
};
|
|
1129
|
-
b?.register_created_effect(n);
|
|
1130
|
-
var i = n;
|
|
1131
|
-
if ((e & 4) !== 0)
|
|
1132
|
-
Wt !== null ? Wt.push(n) : at.ensure().schedule(n);
|
|
1133
|
-
else if (t !== null) {
|
|
1134
|
-
try {
|
|
1135
|
-
pt(n);
|
|
1136
|
-
} catch (o) {
|
|
1137
|
-
throw z(n), o;
|
|
1138
|
-
}
|
|
1139
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= Kr));
|
|
1140
|
-
}
|
|
1141
|
-
if (i !== null && (i.parent = r, r !== null && oa(i, r), q !== null && (q.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1142
|
-
var s = q;
|
|
1143
|
-
(s.effects ?? (s.effects = [])).push(i);
|
|
1144
|
-
}
|
|
1145
|
-
return n;
|
|
1146
|
-
}
|
|
1147
|
-
function sn() {
|
|
1148
|
-
return q !== null && !le;
|
|
1149
|
-
}
|
|
1150
|
-
function wi(e) {
|
|
1151
|
-
const t = xe(8, null);
|
|
1152
|
-
return C(t, te), t.teardown = e, t;
|
|
1153
|
-
}
|
|
1154
|
-
function qn(e) {
|
|
1155
|
-
aa("$effect");
|
|
1156
|
-
var t = E.f;
|
|
1157
|
-
if (!q && (t & 32) !== 0 && j !== null && !j.i) {
|
|
1158
|
-
var r = j;
|
|
1159
|
-
(r.e ?? (r.e = [])).push(e);
|
|
1160
|
-
} else return bi(e);
|
|
1161
|
-
}
|
|
1162
|
-
function bi(e) {
|
|
1163
|
-
return xe(4 | ps, e);
|
|
1164
|
-
}
|
|
1165
|
-
function la(e) {
|
|
1166
|
-
at.ensure();
|
|
1167
|
-
const t = xe(64 | gt, e);
|
|
1168
|
-
return () => {
|
|
1169
|
-
z(t);
|
|
1170
|
-
};
|
|
1171
|
-
}
|
|
1172
|
-
function fa(e) {
|
|
1173
|
-
at.ensure();
|
|
1174
|
-
const t = xe(64 | gt, e);
|
|
1175
|
-
return (r = {}) => new Promise((n) => {
|
|
1176
|
-
r.outro ? ot(t, () => {
|
|
1177
|
-
z(t), n(void 0);
|
|
1178
|
-
}) : (z(t), n(void 0));
|
|
1179
|
-
});
|
|
1180
|
-
}
|
|
1181
|
-
function ua(e) {
|
|
1182
|
-
return xe(4, e);
|
|
1183
|
-
}
|
|
1184
|
-
function ca(e) {
|
|
1185
|
-
return xe(gs | gt, e);
|
|
1186
|
-
}
|
|
1187
|
-
function an(e, t = 0) {
|
|
1188
|
-
return xe(8 | t, e);
|
|
1189
|
-
}
|
|
1190
|
-
function qe(e, t = [], r = [], n = []) {
|
|
1191
|
-
Hs(n, t, r, (i) => {
|
|
1192
|
-
xe(8, () => {
|
|
1193
|
-
e(...i.map(k));
|
|
1194
|
-
});
|
|
1195
|
-
});
|
|
1196
|
-
}
|
|
1197
|
-
function on(e, t = 0) {
|
|
1198
|
-
var r = xe(16 | t, e);
|
|
1199
|
-
return r;
|
|
1200
|
-
}
|
|
1201
|
-
function re(e) {
|
|
1202
|
-
return xe(32 | gt, e);
|
|
1203
|
-
}
|
|
1204
|
-
function ki(e) {
|
|
1205
|
-
var t = e.teardown;
|
|
1206
|
-
if (t !== null) {
|
|
1207
|
-
const r = Pe, n = q;
|
|
1208
|
-
Mn(!0), ne(null);
|
|
1209
|
-
try {
|
|
1210
|
-
t.call(null);
|
|
1211
|
-
} catch (i) {
|
|
1212
|
-
be(i, e.parent);
|
|
1213
|
-
} finally {
|
|
1214
|
-
Mn(r), ne(n);
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
function ln(e, t = !1) {
|
|
1219
|
-
var r = e.first;
|
|
1220
|
-
for (e.first = e.last = null; r !== null; ) {
|
|
1221
|
-
const i = r.ac;
|
|
1222
|
-
i !== null && yt(() => {
|
|
1223
|
-
i.abort(Dt);
|
|
1224
|
-
});
|
|
1225
|
-
var n = r.next;
|
|
1226
|
-
(r.f & 64) !== 0 ? r.parent = null : z(r, t), r = n;
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
function da(e) {
|
|
1230
|
-
for (var t = e.first; t !== null; ) {
|
|
1231
|
-
var r = t.next;
|
|
1232
|
-
(t.f & 32) === 0 && z(t), t = r;
|
|
1233
|
-
}
|
|
1234
|
-
}
|
|
1235
|
-
function z(e, t = !0) {
|
|
1236
|
-
var r = !1;
|
|
1237
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (va(e.nodes.start, e.nodes.end), r = !0), e.f |= mn, ln(e, t && !r), It(e, 0);
|
|
1238
|
-
var n = e.nodes && e.nodes.t;
|
|
1239
|
-
if (n !== null) for (const s of n) s.stop();
|
|
1240
|
-
ki(e), e.f ^= mn, e.f |= _s;
|
|
1241
|
-
var i = e.parent;
|
|
1242
|
-
i !== null && i.first !== null && $i(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1243
|
-
}
|
|
1244
|
-
function va(e, t) {
|
|
1245
|
-
for (; e !== null; ) {
|
|
1246
|
-
var r = e === t ? null : /* @__PURE__ */ Ee(e);
|
|
1247
|
-
e.remove(), e = r;
|
|
1248
|
-
}
|
|
1249
|
-
}
|
|
1250
|
-
function $i(e) {
|
|
1251
|
-
var t = e.parent, r = e.prev, n = e.next;
|
|
1252
|
-
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1253
|
-
}
|
|
1254
|
-
function ot(e, t, r = !0) {
|
|
1255
|
-
var n = [];
|
|
1256
|
-
e.f |= 256, Si(e, n, !0);
|
|
1257
|
-
var i = () => {
|
|
1258
|
-
r && z(e), t && t();
|
|
1259
|
-
}, s = n.length;
|
|
1260
|
-
if (s > 0) {
|
|
1261
|
-
var o = () => --s || i();
|
|
1262
|
-
for (var l of n) l.out(o);
|
|
1263
|
-
} else i();
|
|
1264
|
-
}
|
|
1265
|
-
function Si(e, t, r) {
|
|
1266
|
-
if ((e.f & 8192) === 0) {
|
|
1267
|
-
e.f ^= Yr;
|
|
1268
|
-
var n = e.nodes && e.nodes.t;
|
|
1269
|
-
if (n !== null)
|
|
1270
|
-
for (const l of n) (l.is_global || r) && t.push(l);
|
|
1271
|
-
for (var i = e.first; i !== null; ) {
|
|
1272
|
-
var s = i.next;
|
|
1273
|
-
if ((i.f & 64) === 0) {
|
|
1274
|
-
var o = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1275
|
-
Si(i, t, o ? r : !1);
|
|
1276
|
-
}
|
|
1277
|
-
i = s;
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
function pr(e) {
|
|
1282
|
-
e.f &= -257, Ei(e, !0);
|
|
1283
|
-
}
|
|
1284
|
-
function Ei(e, t) {
|
|
1285
|
-
if ((e.f & 256) === 0 && (e.f & 8192) !== 0) {
|
|
1286
|
-
e.f ^= Yr, (e.f & 1024) === 0 && (C(e, J), at.ensure().schedule(e));
|
|
1287
|
-
for (var r = e.first; r !== null; ) {
|
|
1288
|
-
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1289
|
-
Ei(r, i ? t : !1), r = n;
|
|
1290
|
-
}
|
|
1291
|
-
var s = e.nodes && e.nodes.t;
|
|
1292
|
-
if (s !== null)
|
|
1293
|
-
for (const o of s) (o.is_global || t) && o.in();
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
function fn(e, t) {
|
|
1297
|
-
if (e.nodes)
|
|
1298
|
-
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1299
|
-
var i = r === n ? null : /* @__PURE__ */ Ee(r);
|
|
1300
|
-
t.append(r), r = i;
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
var ha = null, tr = !1, Pe = !1;
|
|
1304
|
-
function Mn(e) {
|
|
1305
|
-
Pe = e;
|
|
1306
|
-
}
|
|
1307
|
-
var q = null, le = !1;
|
|
1308
|
-
function ne(e) {
|
|
1309
|
-
q = e;
|
|
1310
|
-
}
|
|
1311
|
-
var E = null;
|
|
1312
|
-
function $e(e) {
|
|
1313
|
-
E = e;
|
|
1314
|
-
}
|
|
1315
|
-
var ue = null;
|
|
1316
|
-
function xi(e) {
|
|
1317
|
-
q !== null && (!Se && (q.f & 2097152) !== 0 || (q.f & 2) !== 0) && (ue ?? (ue = /* @__PURE__ */ new Set())).add(e);
|
|
1318
|
-
}
|
|
1319
|
-
var V = null, G = 0, Z = null;
|
|
1320
|
-
function _a(e) {
|
|
1321
|
-
Z = e;
|
|
1322
|
-
}
|
|
1323
|
-
var qi = 1, Ze = 0, tt = Ze;
|
|
1324
|
-
function Tn(e) {
|
|
1325
|
-
tt = e;
|
|
1326
|
-
}
|
|
1327
|
-
function Mi() {
|
|
1328
|
-
return ++qi;
|
|
1329
|
-
}
|
|
1330
|
-
function Ht(e) {
|
|
1331
|
-
var t = e.f;
|
|
1332
|
-
if ((t & 2048) !== 0) return !0;
|
|
1333
|
-
if ((t & 4096) !== 0) {
|
|
1334
|
-
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1335
|
-
var s = r[i];
|
|
1336
|
-
if (Ht(s) && ti(s), s.wv > e.wv) return !0;
|
|
1337
|
-
}
|
|
1338
|
-
(t & 512) !== 0 && H === null && C(e, te);
|
|
1339
|
-
}
|
|
1340
|
-
return !1;
|
|
1341
|
-
}
|
|
1342
|
-
function Ti(e, t, r = !0) {
|
|
1343
|
-
var n = e.reactions;
|
|
1344
|
-
if (n !== null && !(!Se && ue !== null && ue.has(e)))
|
|
1345
|
-
for (var i = 0; i < n.length; i++) {
|
|
1346
|
-
var s = n[i];
|
|
1347
|
-
(s.f & 2) !== 0 ? Ti(s, t, !1) : t === s && (r ? C(s, J) : (s.f & 1024) !== 0 && C(s, st), tn(s));
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
function Ai(e) {
|
|
1351
|
-
var t = V, r = G, n = Z, i = q, s = ue, o = j, l = le, u = tt, v = e.f;
|
|
1352
|
-
V = null, G = 0, Z = null, q = (v & 96) === 0 ? e : null, ue = null, ht(e.ctx), le = !1, tt = ++Ze, e.ac !== null && (yt(() => {
|
|
1353
|
-
e.ac.abort(Dt);
|
|
1354
|
-
}), e.ac = null);
|
|
1355
|
-
try {
|
|
1356
|
-
e.f |= wn;
|
|
1357
|
-
var h = e.fn, d = h();
|
|
1358
|
-
e.f |= Gr;
|
|
1359
|
-
var c = An(e);
|
|
1360
|
-
if (Bt() && Z !== null && !le && c !== null && (e.f & 6146) === 0) for (var f = 0; f < Z.length; f++) Ti(Z[f], e);
|
|
1361
|
-
if (i !== null && i !== e) {
|
|
1362
|
-
if (Ze++, i.deps !== null) for (let p = 0; p < r; p += 1) i.deps[p].rv = Ze;
|
|
1363
|
-
if (t !== null) for (const p of t) p.rv = Ze;
|
|
1364
|
-
Z !== null && (n === null ? n = Z : n.push(...Z));
|
|
1365
|
-
}
|
|
1366
|
-
return (e.f & 8388608) !== 0 && (e.f ^= sr), d;
|
|
1367
|
-
} catch (p) {
|
|
1368
|
-
return An(e), sa(p);
|
|
1369
|
-
} finally {
|
|
1370
|
-
e.f ^= wn, V = t, G = r, Z = n, q = i, ue = s, ht(o), le = l, tt = u;
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
function An(e) {
|
|
1374
|
-
var t = e.deps, r = b?.is_fork;
|
|
1375
|
-
if (V !== null) {
|
|
1376
|
-
var n;
|
|
1377
|
-
if (r || It(e, G), t !== null && G > 0)
|
|
1378
|
-
for (t.length = G + V.length, n = 0; n < V.length; n++) t[G + n] = V[n];
|
|
1379
|
-
else e.deps = t = V;
|
|
1380
|
-
if (sn() && (e.f & 512) !== 0) for (n = G; n < t.length; n++) {
|
|
1381
|
-
var i;
|
|
1382
|
-
((i = t[n]).reactions ?? (i.reactions = [])).push(e);
|
|
1383
|
-
}
|
|
1384
|
-
} else !r && t !== null && G < t.length && (It(e, G), t.length = G);
|
|
1385
|
-
return t;
|
|
1386
|
-
}
|
|
1387
|
-
function pa(e, t) {
|
|
1388
|
-
let r = t.reactions;
|
|
1389
|
-
if (r !== null) {
|
|
1390
|
-
var n = os.call(r, e);
|
|
1391
|
-
if (n !== -1) {
|
|
1392
|
-
var i = r.length - 1;
|
|
1393
|
-
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
if (r === null && (t.f & 2) !== 0 && (V === null || !nr.call(V, t))) {
|
|
1397
|
-
var s = t;
|
|
1398
|
-
(s.f & 512) !== 0 && (s.f ^= 512), s.v !== W && Xr(s), s.ac !== null && yt(() => {
|
|
1399
|
-
s.ac.abort(Dt), s.ac = null, C(s, J);
|
|
1400
|
-
}), Gs(s), It(s, 0);
|
|
1401
|
-
}
|
|
1402
|
-
}
|
|
1403
|
-
function It(e, t) {
|
|
1404
|
-
var r = e.deps;
|
|
1405
|
-
if (r !== null)
|
|
1406
|
-
for (var n = t; n < r.length; n++) pa(e, r[n]);
|
|
1407
|
-
}
|
|
1408
|
-
function pt(e) {
|
|
1409
|
-
var t = e.f;
|
|
1410
|
-
if ((t & 16384) === 0) {
|
|
1411
|
-
C(e, te);
|
|
1412
|
-
var r = E, n = tr;
|
|
1413
|
-
if (E = e, tr = (t & 96) === 0, 0)
|
|
1414
|
-
var i, s;
|
|
1415
|
-
try {
|
|
1416
|
-
(t & 16777232) !== 0 ? da(e) : ln(e), ki(e);
|
|
1417
|
-
var o = Ai(e);
|
|
1418
|
-
if (e.teardown = typeof o == "function" ? o : null, e.wv = qi, 0)
|
|
1419
|
-
for (var l of e.deps) ;
|
|
1420
|
-
} finally {
|
|
1421
|
-
tr = n, E = r;
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
}
|
|
1425
|
-
async function ga() {
|
|
1426
|
-
if (Se) return new Promise((e) => {
|
|
1427
|
-
requestAnimationFrame(() => e()), setTimeout(() => e());
|
|
1428
|
-
});
|
|
1429
|
-
await Promise.resolve(), ae();
|
|
1430
|
-
}
|
|
1431
|
-
function k(e) {
|
|
1432
|
-
var t = (e.f & 2) !== 0;
|
|
1433
|
-
if (ha?.add(e), q !== null && !le && !(E !== null && (E.f & 16384) !== 0) && (ue === null || !ue.has(e))) {
|
|
1434
|
-
var r = q.deps;
|
|
1435
|
-
if ((q.f & 2097152) !== 0)
|
|
1436
|
-
e.rv < Ze && (e.rv = Ze, V === null && r !== null && r[G] === e ? G++ : V === null ? V = [e] : V.push(e));
|
|
1437
|
-
else {
|
|
1438
|
-
var n;
|
|
1439
|
-
(n = q).deps ?? (n.deps = []), nr.call(q.deps, e) || q.deps.push(e);
|
|
1440
|
-
var i = e.reactions;
|
|
1441
|
-
i === null ? e.reactions = [q] : nr.call(i, q) || i.push(q);
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1444
|
-
if (0) {
|
|
1445
|
-
if (!le && reactivity_loss_tracker && b === null && fr === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1446
|
-
var s;
|
|
1447
|
-
if (tracing_mode_flag && !le && tracing_expressions !== null && q !== null && tracing_expressions.reaction === q && !e.trace) {
|
|
1448
|
-
if (s)
|
|
1449
|
-
var o, l;
|
|
1450
|
-
}
|
|
1451
|
-
}
|
|
1452
|
-
if (Pe && we.has(e)) return we.get(e);
|
|
1453
|
-
if (t) {
|
|
1454
|
-
var u = e;
|
|
1455
|
-
if (Pe) {
|
|
1456
|
-
var v = u.v;
|
|
1457
|
-
return ((u.f & 1024) === 0 && u.reactions !== null || Oi(u)) && (v = Zr(u)), we.set(u, v), v;
|
|
1458
|
-
}
|
|
1459
|
-
var h = (u.f & 512) === 0 && !le && q !== null && (tr || (q.f & 512) !== 0), d = (u.f & Gr) === 0;
|
|
1460
|
-
Ht(u) && (h && (u.f |= 512), ti(u)), h && !d && (ri(u), Ri(u));
|
|
1461
|
-
}
|
|
1462
|
-
if (H?.has(e)) return H.get(e);
|
|
1463
|
-
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1464
|
-
return e.v;
|
|
1465
|
-
}
|
|
1466
|
-
function Ri(e) {
|
|
1467
|
-
if (e.f |= 512, e.deps !== null)
|
|
1468
|
-
for (const t of e.deps)
|
|
1469
|
-
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (ri(t), Ri(t));
|
|
1470
|
-
}
|
|
1471
|
-
function Oi(e) {
|
|
1472
|
-
if (e.v === W) return !0;
|
|
1473
|
-
if (e.deps === null) return !1;
|
|
1474
|
-
for (const t of e.deps)
|
|
1475
|
-
if (we.has(t) || (t.f & 2) !== 0 && Oi(t)) return !0;
|
|
1476
|
-
return !1;
|
|
1477
|
-
}
|
|
1478
|
-
function jt(e) {
|
|
1479
|
-
var t = le;
|
|
1480
|
-
try {
|
|
1481
|
-
return le = !0, e();
|
|
1482
|
-
} finally {
|
|
1483
|
-
le = t;
|
|
1484
|
-
}
|
|
1485
|
-
}
|
|
1486
|
-
var Yt = /* @__PURE__ */ Symbol("events"), ya = /* @__PURE__ */ new Set(), Rn = /* @__PURE__ */ new Set();
|
|
1487
|
-
function ma(e, t, r, n = {}) {
|
|
1488
|
-
function i(s) {
|
|
1489
|
-
if (n.capture || Fr.call(t, s), !s.cancelBubble) return yt(() => r?.call(this, s));
|
|
1490
|
-
}
|
|
1491
|
-
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? (i.__removed = !1, ke(() => {
|
|
1492
|
-
i.__removed || t.addEventListener(e, i, n);
|
|
1493
|
-
})) : t.addEventListener(e, i, n), i;
|
|
1494
|
-
}
|
|
1495
|
-
function wa(e, t, r, n, i) {
|
|
1496
|
-
var s = {
|
|
1497
|
-
capture: n,
|
|
1498
|
-
passive: i
|
|
1499
|
-
}, o = ma(e, t, r, s);
|
|
1500
|
-
(t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && wi(() => {
|
|
1501
|
-
o.__removed = !0, t.removeEventListener(e, o, s);
|
|
1502
|
-
});
|
|
1503
|
-
}
|
|
1504
|
-
var Mr = null, Tr = !1;
|
|
1505
|
-
function Fr(e) {
|
|
1506
|
-
var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], s = i[0] || e.target;
|
|
1507
|
-
Mr = e, Tr || (Tr = !0, setTimeout(() => {
|
|
1508
|
-
Tr = !1, Mr = null;
|
|
1509
|
-
}));
|
|
1510
|
-
var o = 0, l = Mr === e && e[Yt];
|
|
1511
|
-
if (l) {
|
|
1512
|
-
var u = i.indexOf(l);
|
|
1513
|
-
if (u !== -1 && (t === document || t === window)) {
|
|
1514
|
-
e[Yt] = t;
|
|
1515
|
-
return;
|
|
1516
|
-
}
|
|
1517
|
-
var v = i.indexOf(t);
|
|
1518
|
-
if (v === -1) return;
|
|
1519
|
-
u <= v && (o = u);
|
|
1520
|
-
}
|
|
1521
|
-
if (s = i[o] || e.target, s !== t) {
|
|
1522
|
-
Lt(e, "currentTarget", {
|
|
1523
|
-
configurable: !0,
|
|
1524
|
-
get() {
|
|
1525
|
-
return s || r;
|
|
1526
|
-
}
|
|
1527
|
-
});
|
|
1528
|
-
var h = q, d = E;
|
|
1529
|
-
ne(null), $e(null);
|
|
1530
|
-
try {
|
|
1531
|
-
for (var c, f = []; s !== null && s !== t; ) {
|
|
1532
|
-
try {
|
|
1533
|
-
var p = s[Yt]?.[n];
|
|
1534
|
-
p != null && (!s.disabled || e.target === s) && p.call(s, e);
|
|
1535
|
-
} catch (y) {
|
|
1536
|
-
c ? f.push(y) : c = y;
|
|
1537
|
-
}
|
|
1538
|
-
if (e.cancelBubble) break;
|
|
1539
|
-
o++, s = o < i.length ? i[o] : null;
|
|
1540
|
-
}
|
|
1541
|
-
if (c) {
|
|
1542
|
-
for (let y of f) queueMicrotask(() => {
|
|
1543
|
-
throw y;
|
|
1544
|
-
});
|
|
1545
|
-
throw c;
|
|
1546
|
-
}
|
|
1547
|
-
} finally {
|
|
1548
|
-
e[Yt] = t, delete e.currentTarget, ne(h), $e(d);
|
|
1549
|
-
}
|
|
1550
|
-
}
|
|
1551
|
-
}
|
|
1552
|
-
var ba = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1553
|
-
function ka(e) {
|
|
1554
|
-
return ba?.createHTML(e) ?? e;
|
|
1555
|
-
}
|
|
1556
|
-
function $a(e) {
|
|
1557
|
-
var t = rn("template");
|
|
1558
|
-
return t.innerHTML = ka(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1559
|
-
}
|
|
1560
|
-
function dt(e, t) {
|
|
1561
|
-
var r = E;
|
|
1562
|
-
r.nodes === null && (r.nodes = {
|
|
1563
|
-
start: e,
|
|
1564
|
-
end: t,
|
|
1565
|
-
a: null,
|
|
1566
|
-
t: null
|
|
1567
|
-
});
|
|
1568
|
-
}
|
|
1569
|
-
// @__NO_SIDE_EFFECTS__
|
|
1570
|
-
function ve(e, t) {
|
|
1571
|
-
var r = (t & 1) !== 0, n = (t & 2) !== 0, i, s = !e.startsWith("<!>");
|
|
1572
|
-
return () => {
|
|
1573
|
-
if (T)
|
|
1574
|
-
return dt(M, null), M;
|
|
1575
|
-
i === void 0 && (i = $a(s ? e : "<!>" + e), r || (i = /* @__PURE__ */ Be(i)));
|
|
1576
|
-
var o = n || _i ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1577
|
-
if (r) {
|
|
1578
|
-
var l = /* @__PURE__ */ Be(o), u = o.lastChild;
|
|
1579
|
-
dt(l, u);
|
|
1580
|
-
} else dt(o, o);
|
|
1581
|
-
return o;
|
|
1582
|
-
};
|
|
1583
|
-
}
|
|
1584
|
-
function Sa() {
|
|
1585
|
-
if (T)
|
|
1586
|
-
return dt(M, null), M;
|
|
1587
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), r = ee();
|
|
1588
|
-
return e.append(t, r), dt(t, r), e;
|
|
1589
|
-
}
|
|
1590
|
-
function U(e, t) {
|
|
1591
|
-
if (T) {
|
|
1592
|
-
var r = E;
|
|
1593
|
-
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = M), br();
|
|
1594
|
-
return;
|
|
1595
|
-
}
|
|
1596
|
-
e !== null && e.before(t);
|
|
1597
|
-
}
|
|
1598
|
-
var Ea = [
|
|
1599
|
-
"allowfullscreen",
|
|
1600
|
-
"async",
|
|
1601
|
-
"autofocus",
|
|
1602
|
-
"autoplay",
|
|
1603
|
-
"checked",
|
|
1604
|
-
"controls",
|
|
1605
|
-
"default",
|
|
1606
|
-
"disabled",
|
|
1607
|
-
"formnovalidate",
|
|
1608
|
-
"indeterminate",
|
|
1609
|
-
"inert",
|
|
1610
|
-
"ismap",
|
|
1611
|
-
"loop",
|
|
1612
|
-
"multiple",
|
|
1613
|
-
"muted",
|
|
1614
|
-
"nomodule",
|
|
1615
|
-
"novalidate",
|
|
1616
|
-
"open",
|
|
1617
|
-
"playsinline",
|
|
1618
|
-
"readonly",
|
|
1619
|
-
"required",
|
|
1620
|
-
"reversed",
|
|
1621
|
-
"seamless",
|
|
1622
|
-
"selected",
|
|
1623
|
-
"webkitdirectory",
|
|
1624
|
-
"defer",
|
|
1625
|
-
"disablepictureinpicture",
|
|
1626
|
-
"disableremoteplayback"
|
|
1627
|
-
], xo = [
|
|
1628
|
-
...Ea,
|
|
1629
|
-
"formNoValidate",
|
|
1630
|
-
"isMap",
|
|
1631
|
-
"noModule",
|
|
1632
|
-
"playsInline",
|
|
1633
|
-
"readOnly",
|
|
1634
|
-
"value",
|
|
1635
|
-
"volume",
|
|
1636
|
-
"defaultValue",
|
|
1637
|
-
"defaultChecked",
|
|
1638
|
-
"srcObject",
|
|
1639
|
-
"noValidate",
|
|
1640
|
-
"allowFullscreen",
|
|
1641
|
-
"disablePictureInPicture",
|
|
1642
|
-
"disableRemotePlayback"
|
|
1643
|
-
], xa = ["touchstart", "touchmove"];
|
|
1644
|
-
function qa(e) {
|
|
1645
|
-
return xa.includes(e);
|
|
1646
|
-
}
|
|
1647
|
-
var Ma = [
|
|
1648
|
-
"$state",
|
|
1649
|
-
"$state.raw",
|
|
1650
|
-
"$derived",
|
|
1651
|
-
"$derived.by"
|
|
1652
|
-
], qo = [
|
|
1653
|
-
...Ma,
|
|
1654
|
-
"$state.eager",
|
|
1655
|
-
"$state.snapshot",
|
|
1656
|
-
"$props",
|
|
1657
|
-
"$props.id",
|
|
1658
|
-
"$bindable",
|
|
1659
|
-
"$effect",
|
|
1660
|
-
"$effect.pre",
|
|
1661
|
-
"$effect.tracking",
|
|
1662
|
-
"$effect.root",
|
|
1663
|
-
"$effect.pending",
|
|
1664
|
-
"$inspect",
|
|
1665
|
-
"$inspect().with",
|
|
1666
|
-
"$inspect.trace",
|
|
1667
|
-
"$host"
|
|
1668
|
-
];
|
|
1669
|
-
function Ta(e) {
|
|
1670
|
-
let t = 0, r = it(0), n;
|
|
1671
|
-
return () => {
|
|
1672
|
-
sn() && (k(r), an(() => (t === 0 && (n = jt(() => e(() => Pt(r)))), t += 1, () => {
|
|
1673
|
-
ke(() => {
|
|
1674
|
-
t -= 1, t === 0 && (n?.(), n = void 0, Pt(r));
|
|
1675
|
-
});
|
|
1676
|
-
})));
|
|
1677
|
-
};
|
|
1678
|
-
}
|
|
1679
|
-
var Aa = Kr | gt;
|
|
1680
|
-
function Ra(e, t, r, n) {
|
|
1681
|
-
new Oa(e, t, r, n);
|
|
1682
|
-
}
|
|
1683
|
-
var ce = /* @__PURE__ */ new WeakMap(), Dr = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakSet(), Oa = class {
|
|
1684
|
-
constructor(e, t, r, n) {
|
|
1685
|
-
Qr(this, I), O(this, "parent", void 0), O(this, "is_pending", !1), O(this, "transform_error", void 0), $(this, ce, void 0), $(this, Dr, T ? M : null), $(this, me, void 0), $(this, Ft, void 0), $(this, K, void 0), $(this, de, null), $(this, X, null), $(this, fe, null), $(this, De, null), $(this, ut, 0), $(this, rt, 0), $(this, Gt, !1), $(this, Br, /* @__PURE__ */ new Set()), $(this, Hr, /* @__PURE__ */ new Set()), $(this, Ue, null), $(this, On, Ta(() => (m(Ue, this, it(a(ut, this))), () => {
|
|
1686
|
-
m(Ue, this, null);
|
|
1687
|
-
}))), m(ce, this, e), m(me, this, t), m(Ft, this, (i) => {
|
|
1688
|
-
var s = E;
|
|
1689
|
-
s.b = this, s.f |= 128, r(i);
|
|
1690
|
-
}), this.parent = E.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), m(K, this, on(() => {
|
|
1691
|
-
if (T) {
|
|
1692
|
-
const i = a(Dr, this);
|
|
1693
|
-
br();
|
|
1694
|
-
const s = i.data === "[!";
|
|
1695
|
-
if (i.data.startsWith("[?")) {
|
|
1696
|
-
const o = JSON.parse(i.data.slice(2));
|
|
1697
|
-
S(I, this, La).call(this, o);
|
|
1698
|
-
} else s ? S(I, this, Ca).call(this) : S(I, this, Pa).call(this);
|
|
1699
|
-
} else S(I, this, Li).call(this);
|
|
1700
|
-
}, Aa)), T && m(ce, this, M);
|
|
1701
|
-
}
|
|
1702
|
-
defer_effect(e) {
|
|
1703
|
-
Zn(e, a(Br, this), a(Hr, this));
|
|
1704
|
-
}
|
|
1705
|
-
is_rendered() {
|
|
1706
|
-
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
1707
|
-
}
|
|
1708
|
-
has_pending_snippet() {
|
|
1709
|
-
return !!a(me, this).pending;
|
|
1710
|
-
}
|
|
1711
|
-
update_pending_count(e, t) {
|
|
1712
|
-
S(I, this, Ci).call(this, e, t), m(ut, this, a(ut, this) + e), !(!a(Ue, this) || a(Gt, this)) && (m(Gt, this, !0), ke(() => {
|
|
1713
|
-
m(Gt, this, !1), a(Ue, this) && _t(a(Ue, this), a(ut, this));
|
|
1714
|
-
}));
|
|
1715
|
-
}
|
|
1716
|
-
get_effect_pending() {
|
|
1717
|
-
return a(On, this).call(this), k(a(Ue, this));
|
|
1718
|
-
}
|
|
1719
|
-
error(e) {
|
|
1720
|
-
if (!a(me, this).onerror && !a(me, this).failed) throw e;
|
|
1721
|
-
b?.is_fork ? (a(de, this) && b.skip_effect(a(de, this)), a(X, this) && b.skip_effect(a(X, this)), a(fe, this) && b.skip_effect(a(fe, this)), b.oncommit(() => {
|
|
1722
|
-
S(I, this, Pn).call(this, e);
|
|
1723
|
-
})) : S(I, this, Pn).call(this, e);
|
|
1724
|
-
}
|
|
1725
|
-
};
|
|
1726
|
-
function Pa() {
|
|
1727
|
-
try {
|
|
1728
|
-
m(de, this, re(() => a(Ft, this).call(this, a(ce, this))));
|
|
1729
|
-
} catch (e) {
|
|
1730
|
-
this.error(e);
|
|
1731
|
-
}
|
|
1732
|
-
}
|
|
1733
|
-
function La(e) {
|
|
1734
|
-
const t = a(me, this).failed, { reset: r, invoke_onerror: n } = S(I, this, Pi).call(this, e);
|
|
1735
|
-
ke(n), t && m(fe, this, re(() => {
|
|
1736
|
-
t(a(ce, this), () => e, () => r);
|
|
1737
|
-
}));
|
|
1738
|
-
}
|
|
1739
|
-
function Pi(e) {
|
|
1740
|
-
var t = !1, r = !1;
|
|
1741
|
-
const n = () => {
|
|
1742
|
-
if (t) {
|
|
1743
|
-
Ss();
|
|
1744
|
-
return;
|
|
1745
|
-
}
|
|
1746
|
-
t = !0, r && Is(), a(fe, this) !== null && ot(a(fe, this), () => {
|
|
1747
|
-
m(fe, this, null);
|
|
1748
|
-
}), S(I, this, un).call(this, () => {
|
|
1749
|
-
S(I, this, Li).call(this);
|
|
1750
|
-
});
|
|
1751
|
-
};
|
|
1752
|
-
return {
|
|
1753
|
-
reset: n,
|
|
1754
|
-
invoke_onerror: () => {
|
|
1755
|
-
try {
|
|
1756
|
-
r = !0, a(me, this).onerror?.(e, n), r = !1;
|
|
1757
|
-
} catch (s) {
|
|
1758
|
-
be(s, a(K, this) && a(K, this).parent);
|
|
1759
|
-
}
|
|
1760
|
-
}
|
|
1761
|
-
};
|
|
1762
|
-
}
|
|
1763
|
-
function Ca() {
|
|
1764
|
-
const e = a(me, this).pending;
|
|
1765
|
-
e && (this.is_pending = !0, m(X, this, re(() => e(a(ce, this)))), ke(() => {
|
|
1766
|
-
var t = m(De, this, document.createDocumentFragment()), r = ee(), n = !1;
|
|
1767
|
-
if (t.append(r), m(de, this, S(I, this, un).call(this, () => {
|
|
1768
|
-
try {
|
|
1769
|
-
return re(() => a(Ft, this).call(this, r));
|
|
1770
|
-
} catch (i) {
|
|
1771
|
-
try {
|
|
1772
|
-
this.error(i), n = !0;
|
|
1773
|
-
} catch (s) {
|
|
1774
|
-
be(s, a(K, this).parent);
|
|
1775
|
-
}
|
|
1776
|
-
return null;
|
|
1777
|
-
}
|
|
1778
|
-
})), a(de, this) === null) {
|
|
1779
|
-
m(De, this, null), n && S(I, this, gr).call(this, b);
|
|
1780
|
-
return;
|
|
1781
|
-
}
|
|
1782
|
-
a(rt, this) === 0 && (a(ce, this).before(t), m(De, this, null), ot(a(X, this), () => {
|
|
1783
|
-
m(X, this, null);
|
|
1784
|
-
}), S(I, this, gr).call(this, b));
|
|
1785
|
-
}));
|
|
1786
|
-
}
|
|
1787
|
-
function Li() {
|
|
1788
|
-
try {
|
|
1789
|
-
if (this.is_pending = this.has_pending_snippet(), m(rt, this, 0), m(ut, this, 0), m(de, this, re(() => {
|
|
1790
|
-
a(Ft, this).call(this, a(ce, this));
|
|
1791
|
-
})), a(rt, this) > 0) {
|
|
1792
|
-
var e = m(De, this, document.createDocumentFragment());
|
|
1793
|
-
fn(a(de, this), e);
|
|
1794
|
-
const t = a(me, this).pending;
|
|
1795
|
-
m(X, this, re(() => t(a(ce, this))));
|
|
1796
|
-
} else S(I, this, gr).call(this, b);
|
|
1797
|
-
} catch (t) {
|
|
1798
|
-
this.error(t);
|
|
1799
|
-
}
|
|
1800
|
-
}
|
|
1801
|
-
function gr(e) {
|
|
1802
|
-
this.is_pending = !1, e.transfer_effects(a(Br, this), a(Hr, this));
|
|
1803
|
-
}
|
|
1804
|
-
function un(e) {
|
|
1805
|
-
var t = E, r = q, n = j;
|
|
1806
|
-
$e(a(K, this)), ne(a(K, this)), ht(a(K, this).ctx);
|
|
1807
|
-
try {
|
|
1808
|
-
return at.ensure(), e();
|
|
1809
|
-
} finally {
|
|
1810
|
-
$e(t), ne(r), ht(n);
|
|
1811
|
-
}
|
|
1812
|
-
}
|
|
1813
|
-
function Ci(e, t) {
|
|
1814
|
-
if (!this.has_pending_snippet()) {
|
|
1815
|
-
if (this.parent) {
|
|
1816
|
-
var r;
|
|
1817
|
-
S(I, r = this.parent, Ci).call(r, e, t);
|
|
1818
|
-
}
|
|
1819
|
-
return;
|
|
1820
|
-
}
|
|
1821
|
-
m(rt, this, a(rt, this) + e), a(rt, this) === 0 && (S(I, this, gr).call(this, t), a(X, this) && ot(a(X, this), () => {
|
|
1822
|
-
m(X, this, null);
|
|
1823
|
-
}), a(De, this) && (a(ce, this).before(a(De, this)), m(De, this, null)));
|
|
1824
|
-
}
|
|
1825
|
-
function Pn(e) {
|
|
1826
|
-
a(de, this) && (z(a(de, this)), m(de, this, null)), a(X, this) && (z(a(X, this)), m(X, this, null)), a(fe, this) && (z(a(fe, this)), m(fe, this, null)), T && (Y(a(Dr, this)), Es(), Y(ar()));
|
|
1827
|
-
let t = a(me, this).failed;
|
|
1828
|
-
const r = (n) => {
|
|
1829
|
-
const { reset: i, invoke_onerror: s } = S(I, this, Pi).call(this, n);
|
|
1830
|
-
s(), t && m(fe, this, S(I, this, un).call(this, () => {
|
|
1831
|
-
try {
|
|
1832
|
-
return re(() => {
|
|
1833
|
-
var o = E;
|
|
1834
|
-
o.b = this, o.f |= 128, t(a(ce, this), () => n, () => i);
|
|
1835
|
-
});
|
|
1836
|
-
} catch (o) {
|
|
1837
|
-
return be(o, a(K, this).parent), null;
|
|
1838
|
-
}
|
|
1839
|
-
}));
|
|
1840
|
-
};
|
|
1841
|
-
ke(() => {
|
|
1842
|
-
var n;
|
|
1843
|
-
try {
|
|
1844
|
-
n = this.transform_error(e);
|
|
1845
|
-
} catch (i) {
|
|
1846
|
-
be(i, a(K, this) && a(K, this).parent);
|
|
1847
|
-
return;
|
|
1848
|
-
}
|
|
1849
|
-
n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => be(i, a(K, this) && a(K, this).parent)) : r(n);
|
|
1850
|
-
});
|
|
1851
|
-
}
|
|
1852
|
-
var Ln = !0;
|
|
1853
|
-
function Me(e, t) {
|
|
1854
|
-
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1855
|
-
r !== (e[Qt] ?? (e[Qt] = e.nodeValue)) && (e[Qt] = r, e.nodeValue = `${r}`);
|
|
1856
|
-
}
|
|
1857
|
-
function Ni(e, t) {
|
|
1858
|
-
return Wi(e, t);
|
|
1859
|
-
}
|
|
1860
|
-
function Na(e, t) {
|
|
1861
|
-
jr(), t.intro = t.intro ?? !1;
|
|
1862
|
-
const r = t.target, n = T, i = M;
|
|
1863
|
-
try {
|
|
1864
|
-
for (var s = /* @__PURE__ */ Be(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ Ee(s);
|
|
1865
|
-
if (!s) throw vt;
|
|
1866
|
-
Re(!0), Y(s);
|
|
1867
|
-
const o = Wi(e, {
|
|
1868
|
-
...t,
|
|
1869
|
-
anchor: s
|
|
1870
|
-
});
|
|
1871
|
-
return Re(!1), o;
|
|
1872
|
-
} catch (o) {
|
|
1873
|
-
if (o instanceof Error && o.message.split(`
|
|
1874
|
-
`).some((l) => l.startsWith("https://svelte.dev/e/"))) throw o;
|
|
1875
|
-
return o !== vt && console.warn("Failed to hydrate: ", o), t.recover === !1 && Ps(), jr(), yi(r), Re(!1), Ni(e, t);
|
|
1876
|
-
} finally {
|
|
1877
|
-
Re(n), Y(i);
|
|
1878
|
-
}
|
|
1879
|
-
}
|
|
1880
|
-
var Kt = /* @__PURE__ */ new Map();
|
|
1881
|
-
function Wi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: o = !0, transformError: l }) {
|
|
1882
|
-
jr();
|
|
1883
|
-
var u = void 0, v = fa(() => {
|
|
1884
|
-
var h = r ?? t.appendChild(ee());
|
|
1885
|
-
Ra(h, { pending: () => {
|
|
1886
|
-
} }, (f) => {
|
|
1887
|
-
Gn({});
|
|
1888
|
-
var p = j;
|
|
1889
|
-
if (s && (p.c = s), i && (n.$$events = i), T && dt(f, null), Ln = o, u = e(f, n) || Xn(), Ln = !0, T && (E.nodes.end = M, M === null || M.nodeType !== 8 || M.data !== "]"))
|
|
1890
|
-
throw wr(), vt;
|
|
1891
|
-
Kn();
|
|
1892
|
-
}, l);
|
|
1893
|
-
var d = /* @__PURE__ */ new Set(), c = (f) => {
|
|
1894
|
-
for (var p = 0; p < f.length; p++) {
|
|
1895
|
-
var y = f[p];
|
|
1896
|
-
if (!d.has(y)) {
|
|
1897
|
-
d.add(y);
|
|
1898
|
-
var _ = qa(y);
|
|
1899
|
-
for (const N of [t, document]) {
|
|
1900
|
-
var g = Kt.get(N);
|
|
1901
|
-
g === void 0 && (g = /* @__PURE__ */ new Map(), Kt.set(N, g));
|
|
1902
|
-
var A = g.get(y);
|
|
1903
|
-
A === void 0 ? (N.addEventListener(y, Fr, { passive: _ }), g.set(y, 1)) : g.set(y, A + 1);
|
|
1904
|
-
}
|
|
1905
|
-
}
|
|
1906
|
-
}
|
|
1907
|
-
};
|
|
1908
|
-
return c(mr(ya)), Rn.add(c), () => {
|
|
1909
|
-
for (var f of d) for (const _ of [t, document]) {
|
|
1910
|
-
var p = Kt.get(_), y = p.get(f);
|
|
1911
|
-
--y == 0 ? (_.removeEventListener(f, Fr), p.delete(f), p.size === 0 && Kt.delete(_)) : p.set(f, y);
|
|
1912
|
-
}
|
|
1913
|
-
Rn.delete(c), h !== r && h.parentNode?.removeChild(h);
|
|
1914
|
-
};
|
|
1915
|
-
});
|
|
1916
|
-
return zr.set(u, v), u;
|
|
1917
|
-
}
|
|
1918
|
-
var zr = /* @__PURE__ */ new WeakMap();
|
|
1919
|
-
function Wa(e, t) {
|
|
1920
|
-
const r = zr.get(e);
|
|
1921
|
-
return r ? (zr.delete(e), r(t)) : Promise.resolve();
|
|
1922
|
-
}
|
|
1923
|
-
var Te = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), Ia = class {
|
|
1924
|
-
constructor(e, t = !0) {
|
|
1925
|
-
O(this, "anchor", void 0), $(this, Te, /* @__PURE__ */ new Map()), $(this, We, /* @__PURE__ */ new Map()), $(this, se, /* @__PURE__ */ new Map()), $(this, kt, /* @__PURE__ */ new Set()), $(this, Ar, !0), $(this, Rr, (r) => {
|
|
1926
|
-
if (a(Te, this).has(r)) {
|
|
1927
|
-
var n = a(Te, this).get(r), i = a(We, this).get(n);
|
|
1928
|
-
if (i)
|
|
1929
|
-
pr(i), a(kt, this).delete(n);
|
|
1930
|
-
else {
|
|
1931
|
-
var s = a(se, this).get(n);
|
|
1932
|
-
s && (pr(s.effect), a(We, this).set(n, s.effect), a(se, this).delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), i = s.effect);
|
|
1933
|
-
}
|
|
1934
|
-
for (const [o, l] of a(Te, this)) {
|
|
1935
|
-
if (a(Te, this).delete(o), o === r) break;
|
|
1936
|
-
const u = a(se, this).get(l);
|
|
1937
|
-
u && (z(u.effect), a(se, this).delete(l));
|
|
1938
|
-
}
|
|
1939
|
-
for (const [o, l] of a(We, this)) {
|
|
1940
|
-
if (o === n || a(kt, this).has(o)) continue;
|
|
1941
|
-
const u = () => {
|
|
1942
|
-
if (Array.from(a(Te, this).values()).includes(o)) {
|
|
1943
|
-
var v = document.createDocumentFragment();
|
|
1944
|
-
fn(l, v), v.append(ee()), a(se, this).set(o, {
|
|
1945
|
-
effect: l,
|
|
1946
|
-
fragment: v
|
|
1947
|
-
});
|
|
1948
|
-
} else z(l);
|
|
1949
|
-
a(kt, this).delete(o), a(We, this).delete(o);
|
|
1950
|
-
};
|
|
1951
|
-
a(Ar, this) || !i ? (a(kt, this).add(o), ot(l, u, !1)) : u();
|
|
1952
|
-
}
|
|
1953
|
-
}
|
|
1954
|
-
}), $(this, Cn, (r) => {
|
|
1955
|
-
a(Te, this).delete(r);
|
|
1956
|
-
const n = Array.from(a(Te, this).values());
|
|
1957
|
-
for (const [i, s] of a(se, this)) n.includes(i) || (z(s.effect), a(se, this).delete(i));
|
|
1958
|
-
}), this.anchor = e, m(Ar, this, t);
|
|
1959
|
-
}
|
|
1960
|
-
ensure(e, t) {
|
|
1961
|
-
var r = b, n = mi();
|
|
1962
|
-
if (t && !a(We, this).has(e) && !a(se, this).has(e))
|
|
1963
|
-
if (n) {
|
|
1964
|
-
var i = document.createDocumentFragment(), s = ee();
|
|
1965
|
-
i.append(s), a(se, this).set(e, {
|
|
1966
|
-
effect: re(() => t(s)),
|
|
1967
|
-
fragment: i
|
|
1968
|
-
});
|
|
1969
|
-
} else a(We, this).set(e, re(() => t(this.anchor)));
|
|
1970
|
-
if (a(Te, this).set(r, e), n) {
|
|
1971
|
-
for (const [o, l] of a(We, this)) o === e ? r.unskip_effect(l) : r.skip_effect(l);
|
|
1972
|
-
for (const [o, l] of a(se, this)) o === e ? r.unskip_effect(l.effect) : r.skip_effect(l.effect);
|
|
1973
|
-
r.oncommit(a(Rr, this)), r.ondiscard(a(Cn, this));
|
|
1974
|
-
} else
|
|
1975
|
-
T && (this.anchor = M), a(Rr, this).call(this, r);
|
|
1976
|
-
}
|
|
1977
|
-
};
|
|
1978
|
-
function $t(e, t, r = !1) {
|
|
1979
|
-
var n;
|
|
1980
|
-
T && (n = M, br());
|
|
1981
|
-
var i = new Ia(e), s = r ? Kr : 0;
|
|
1982
|
-
function o(l, u) {
|
|
1983
|
-
if (T) {
|
|
1984
|
-
var v = Un(n);
|
|
1985
|
-
if (l !== parseInt(v.substring(1))) {
|
|
1986
|
-
var h = ar();
|
|
1987
|
-
Y(h), i.anchor = h, Re(!1), i.ensure(l, u), Re(!0);
|
|
1988
|
-
return;
|
|
1989
|
-
}
|
|
1990
|
-
}
|
|
1991
|
-
i.ensure(l, u);
|
|
1992
|
-
}
|
|
1993
|
-
on(() => {
|
|
1994
|
-
var l = !1;
|
|
1995
|
-
t((u, v = 0) => {
|
|
1996
|
-
l = !0, o(v, u);
|
|
1997
|
-
}), l || o(-1, null);
|
|
1998
|
-
}, s);
|
|
1999
|
-
}
|
|
2000
|
-
function ja(e, t) {
|
|
2001
|
-
return t;
|
|
2002
|
-
}
|
|
2003
|
-
function Fa(e, t, r) {
|
|
2004
|
-
for (var n = [], i = t.length, s, o = t.length, l = 0; l < i; l++) {
|
|
2005
|
-
let d = t[l];
|
|
2006
|
-
ot(d, () => {
|
|
2007
|
-
if (s) {
|
|
2008
|
-
if (s.pending.delete(d), s.done.add(d), s.pending.size === 0) {
|
|
2009
|
-
var c = e.outrogroups;
|
|
2010
|
-
Ur(e, mr(s.done)), c.delete(s), c.size === 0 && (e.outrogroups = null);
|
|
2011
|
-
}
|
|
2012
|
-
} else o -= 1;
|
|
2013
|
-
}, !1);
|
|
2014
|
-
}
|
|
2015
|
-
if (o === 0) {
|
|
2016
|
-
var u = n.length === 0 && r !== null && e.pending.size === 0;
|
|
2017
|
-
if (u) {
|
|
2018
|
-
var v = r, h = v.parentNode;
|
|
2019
|
-
yi(h), h.append(v), e.items.clear();
|
|
2020
|
-
}
|
|
2021
|
-
Ur(e, t, !u);
|
|
2022
|
-
} else
|
|
2023
|
-
s = {
|
|
2024
|
-
pending: new Set(t),
|
|
2025
|
-
done: /* @__PURE__ */ new Set()
|
|
2026
|
-
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(s);
|
|
2027
|
-
}
|
|
2028
|
-
function Ur(e, t, r = !0) {
|
|
2029
|
-
var n;
|
|
2030
|
-
if (e.pending.size > 0) {
|
|
2031
|
-
n = /* @__PURE__ */ new Set();
|
|
2032
|
-
for (const o of e.pending.values()) for (const l of o) n.add(e.items.get(l).e);
|
|
2033
|
-
}
|
|
2034
|
-
for (var i = 0; i < t.length; i++) {
|
|
2035
|
-
var s = t[i];
|
|
2036
|
-
if (n?.has(s)) {
|
|
2037
|
-
s.f |= At;
|
|
2038
|
-
const o = document.createDocumentFragment();
|
|
2039
|
-
fn(s, o);
|
|
2040
|
-
} else z(t[i], r);
|
|
2041
|
-
}
|
|
2042
|
-
}
|
|
2043
|
-
var Xt;
|
|
2044
|
-
function Nn(e, t, r, n, i, s = null) {
|
|
2045
|
-
var o = e, l = /* @__PURE__ */ new Map();
|
|
2046
|
-
if ((t & 4) !== 0) {
|
|
2047
|
-
var u = e;
|
|
2048
|
-
o = T ? Y(/* @__PURE__ */ Be(u)) : u.appendChild(ee());
|
|
2049
|
-
}
|
|
2050
|
-
T && br();
|
|
2051
|
-
var v = null, h = /* @__PURE__ */ Jr(() => {
|
|
2052
|
-
var g = r();
|
|
2053
|
-
return Fn(g) ? g : g == null ? [] : mr(g);
|
|
2054
|
-
}), d, c = /* @__PURE__ */ new Map(), f = !0;
|
|
2055
|
-
function p(g) {
|
|
2056
|
-
(_.effect.f & 16384) === 0 && (_.pending.delete(g), _.fallback = v, Da(_, d, o, t, n), v !== null && (d.length === 0 ? (v.f & 33554432) === 0 ? pr(v) : (v.f ^= At, Tt(v, null, o)) : ot(v, () => {
|
|
2057
|
-
v = null;
|
|
2058
|
-
})));
|
|
2059
|
-
}
|
|
2060
|
-
function y(g) {
|
|
2061
|
-
_.pending.delete(g);
|
|
2062
|
-
}
|
|
2063
|
-
var _ = {
|
|
2064
|
-
effect: on(() => {
|
|
2065
|
-
d = k(h);
|
|
2066
|
-
var g = d.length;
|
|
2067
|
-
let A = !1;
|
|
2068
|
-
T && Un(o) === "[!" != (g === 0) && (o = ar(), Y(o), Re(!1), A = !0);
|
|
2069
|
-
for (var N = /* @__PURE__ */ new Set(), x = b, w = mi(), R = 0; R < g; R += 1) {
|
|
2070
|
-
T && M.nodeType === 8 && M.data === "]" && (o = M, A = !0, Re(!1));
|
|
2071
|
-
var D = d[R], ie = n(D, R);
|
|
2072
|
-
if (0)
|
|
2073
|
-
var He;
|
|
2074
|
-
var F = f ? null : l.get(ie);
|
|
2075
|
-
F ? (F.v && _t(F.v, D), F.i && _t(F.i, R), w && x.unskip_effect(F.e)) : (F = Ba(l, f ? o : Xt ?? (Xt = ee()), D, ie, R, i, t, r), f || (F.e.f |= At), l.set(ie, F)), N.add(ie);
|
|
2076
|
-
}
|
|
2077
|
-
if (g === 0 && s && !v && (f ? v = re(() => s(o)) : (v = re(() => s(Xt ?? (Xt = ee()))), v.f |= At)), g > N.size && Ms("", "", ""), T && g > 0 && Y(ar()), !f)
|
|
2078
|
-
if (c.set(x, N), w) {
|
|
2079
|
-
for (const [zt, $r] of l) N.has(zt) || x.skip_effect($r.e);
|
|
2080
|
-
x.oncommit(p), x.ondiscard(y);
|
|
2081
|
-
} else p(x);
|
|
2082
|
-
A && Re(!0), k(h);
|
|
2083
|
-
}),
|
|
2084
|
-
flags: t,
|
|
2085
|
-
items: l,
|
|
2086
|
-
pending: c,
|
|
2087
|
-
outrogroups: null,
|
|
2088
|
-
fallback: v
|
|
2089
|
-
};
|
|
2090
|
-
f = !1, T && (o = M);
|
|
2091
|
-
}
|
|
2092
|
-
function St(e) {
|
|
2093
|
-
for (; e !== null && (e.f & 32) === 0; ) e = e.next;
|
|
2094
|
-
return e;
|
|
2095
|
-
}
|
|
2096
|
-
function Da(e, t, r, n, i) {
|
|
2097
|
-
var s = (n & 8) !== 0, o = t.length, l = e.items, u = St(e.effect.first), v, h = null, d, c = [], f = [], p, y, _, g;
|
|
2098
|
-
if (s) for (g = 0; g < o; g += 1)
|
|
2099
|
-
p = t[g], y = i(p, g), _ = l.get(y).e, (_.f & 33554432) === 0 && (_.nodes?.a?.measure(), (d ?? (d = /* @__PURE__ */ new Set())).add(_));
|
|
2100
|
-
for (g = 0; g < o; g += 1) {
|
|
2101
|
-
if (p = t[g], y = i(p, g), _ = l.get(y).e, e.outrogroups !== null) for (const F of e.outrogroups)
|
|
2102
|
-
F.pending.delete(_), F.done.delete(_);
|
|
2103
|
-
if ((_.f & 8192) !== 0 && (pr(_), s && (_.nodes?.a?.unfix(), (d ?? (d = /* @__PURE__ */ new Set())).delete(_))), (_.f & 33554432) !== 0)
|
|
2104
|
-
if (_.f ^= At, _ === u) Tt(_, null, r);
|
|
2105
|
-
else {
|
|
2106
|
-
var A = h ? h.next : u;
|
|
2107
|
-
_ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Ie(e, h, _), Ie(e, _, A), Tt(_, A, r), h = _, c = [], f = [], u = St(h.next);
|
|
2108
|
-
continue;
|
|
2109
|
-
}
|
|
2110
|
-
if (_ !== u) {
|
|
2111
|
-
if (v !== void 0 && v.has(_)) {
|
|
2112
|
-
if (c.length < f.length) {
|
|
2113
|
-
var N = f[0], x;
|
|
2114
|
-
h = N.prev;
|
|
2115
|
-
var w = c[0], R = c[c.length - 1];
|
|
2116
|
-
for (x = 0; x < c.length; x += 1) Tt(c[x], N, r);
|
|
2117
|
-
for (x = 0; x < f.length; x += 1) v.delete(f[x]);
|
|
2118
|
-
Ie(e, w.prev, R.next), Ie(e, h, w), Ie(e, R, N), u = N, h = R, g -= 1, c = [], f = [];
|
|
2119
|
-
} else
|
|
2120
|
-
v.delete(_), Tt(_, u, r), Ie(e, _.prev, _.next), Ie(e, _, h === null ? e.effect.first : h.next), Ie(e, h, _), h = _;
|
|
2121
|
-
continue;
|
|
2122
|
-
}
|
|
2123
|
-
for (c = [], f = []; u !== null && u !== _; )
|
|
2124
|
-
(v ?? (v = /* @__PURE__ */ new Set())).add(u), f.push(u), u = St(u.next);
|
|
2125
|
-
if (u === null) continue;
|
|
2126
|
-
}
|
|
2127
|
-
(_.f & 33554432) === 0 && c.push(_), h = _, u = St(_.next);
|
|
2128
|
-
}
|
|
2129
|
-
if (e.outrogroups !== null) {
|
|
2130
|
-
for (const F of e.outrogroups) F.pending.size === 0 && (Ur(e, mr(F.done)), e.outrogroups?.delete(F));
|
|
2131
|
-
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2132
|
-
}
|
|
2133
|
-
if (u !== null || v !== void 0) {
|
|
2134
|
-
var D = [];
|
|
2135
|
-
if (v !== void 0)
|
|
2136
|
-
for (_ of v) (_.f & 8192) === 0 && D.push(_);
|
|
2137
|
-
for (; u !== null; )
|
|
2138
|
-
(u.f & 8192) === 0 && u !== e.fallback && D.push(u), u = St(u.next);
|
|
2139
|
-
var ie = D.length;
|
|
2140
|
-
if (ie > 0) {
|
|
2141
|
-
var He = (n & 4) !== 0 && o === 0 ? r : null;
|
|
2142
|
-
if (s) {
|
|
2143
|
-
for (g = 0; g < ie; g += 1) D[g].nodes?.a?.measure();
|
|
2144
|
-
for (g = 0; g < ie; g += 1) D[g].nodes?.a?.fix();
|
|
2145
|
-
}
|
|
2146
|
-
Fa(e, D, He);
|
|
2147
|
-
}
|
|
2148
|
-
}
|
|
2149
|
-
s && ke(() => {
|
|
2150
|
-
if (d !== void 0)
|
|
2151
|
-
for (_ of d) _.nodes?.a?.apply();
|
|
2152
|
-
});
|
|
2153
|
-
}
|
|
2154
|
-
function Ba(e, t, r, n, i, s, o, l) {
|
|
2155
|
-
var u = (o & 1) !== 0 ? (o & 16) === 0 ? /* @__PURE__ */ vi(r, !1, !1) : it(r) : null, v = (o & 2) !== 0 ? it(i) : null;
|
|
2156
|
-
return {
|
|
2157
|
-
v: u,
|
|
2158
|
-
i: v,
|
|
2159
|
-
e: re(() => (s(t, u ?? r, v ?? i, l), () => {
|
|
2160
|
-
e.delete(n);
|
|
2161
|
-
}))
|
|
2162
|
-
};
|
|
2163
|
-
}
|
|
2164
|
-
function Tt(e, t, r) {
|
|
2165
|
-
if (e.nodes)
|
|
2166
|
-
for (var n = e.nodes.start, i = e.nodes.end, s = t && (t.f & 33554432) === 0 ? t.nodes.start : r; n !== null; ) {
|
|
2167
|
-
var o = /* @__PURE__ */ Ee(n);
|
|
2168
|
-
if (s.before(n), n === i) return;
|
|
2169
|
-
n = o;
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
|
-
function Ie(e, t, r) {
|
|
2173
|
-
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
2174
|
-
}
|
|
2175
|
-
function Ha(e, t) {
|
|
2176
|
-
ua(() => {
|
|
2177
|
-
e = E?.parent?.nodes?.start ?? e;
|
|
2178
|
-
var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
2179
|
-
if (!n.querySelector("#" + t.hash)) {
|
|
2180
|
-
const i = rn("style");
|
|
2181
|
-
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
2182
|
-
}
|
|
2183
|
-
});
|
|
2184
|
-
}
|
|
2185
|
-
var za = /* @__PURE__ */ Symbol("is custom element"), Ua = /* @__PURE__ */ Symbol("is html"), Va = ks ? "link" : "LINK";
|
|
2186
|
-
function Ya(e) {
|
|
2187
|
-
if (T) {
|
|
2188
|
-
var t = !1, r = () => {
|
|
2189
|
-
if (!t) {
|
|
2190
|
-
if (t = !0, e.hasAttribute("value")) {
|
|
2191
|
-
var n = e.value;
|
|
2192
|
-
Vr(e, "value", null), e.value = n;
|
|
2193
|
-
}
|
|
2194
|
-
if (e.hasAttribute("checked")) {
|
|
2195
|
-
var i = e.checked;
|
|
2196
|
-
Vr(e, "checked", null), e.checked = i;
|
|
2197
|
-
}
|
|
2198
|
-
}
|
|
2199
|
-
};
|
|
2200
|
-
e[Rt] = r, ke(r), Qn();
|
|
2201
|
-
}
|
|
2202
|
-
}
|
|
2203
|
-
function Vr(e, t, r, n) {
|
|
2204
|
-
var i = Ga(e);
|
|
2205
|
-
if (T && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Va)) {
|
|
2206
|
-
n || void 0;
|
|
2207
|
-
return;
|
|
2208
|
-
}
|
|
2209
|
-
i[t] !== (i[t] = r) && (t === "loading" && (e[ys] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Ka(e).has(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2210
|
-
}
|
|
2211
|
-
function Ga(e) {
|
|
2212
|
-
return e[Cr] ?? (e[Cr] = {
|
|
2213
|
-
[za]: e.nodeName.includes("-"),
|
|
2214
|
-
[Ua]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2215
|
-
});
|
|
2216
|
-
}
|
|
2217
|
-
var Wn = /* @__PURE__ */ new Map();
|
|
2218
|
-
function Ka(e) {
|
|
2219
|
-
var t = e.getAttribute("is") || e.nodeName, r = Wn.get(t);
|
|
2220
|
-
if (r) return r;
|
|
2221
|
-
Wn.set(t, r = /* @__PURE__ */ new Set());
|
|
2222
|
-
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
2223
|
-
n = ls(i);
|
|
2224
|
-
for (var o in n) n[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && r.add(o);
|
|
2225
|
-
i = Dn(i);
|
|
2226
|
-
}
|
|
2227
|
-
return r;
|
|
2228
|
-
}
|
|
2229
|
-
function Xa(e, t, r = t) {
|
|
2230
|
-
var n = /* @__PURE__ */ new WeakSet();
|
|
2231
|
-
Bs(e, "input", async (i) => {
|
|
2232
|
-
var s = i ? e.defaultValue : e.value;
|
|
2233
|
-
if (s = Or(e) ? Pr(s) : s, r(s), b !== null && n.add(b), await ga(), s !== (s = t())) {
|
|
2234
|
-
var o = e.selectionStart, l = e.selectionEnd, u = e.value.length;
|
|
2235
|
-
if (e.value = s ?? "", l !== null) {
|
|
2236
|
-
var v = e.value.length;
|
|
2237
|
-
o === l && l === u && v > u ? (e.selectionStart = v, e.selectionEnd = v) : (e.selectionStart = o, e.selectionEnd = Math.min(l, v));
|
|
2238
|
-
}
|
|
2239
|
-
}
|
|
2240
|
-
}), (T && e.defaultValue !== e.value || jt(t) == null && e.value) && (r(Or(e) ? Pr(e.value) : e.value), b !== null && n.add(b)), an(() => {
|
|
2241
|
-
var i = t();
|
|
2242
|
-
if (e === document.activeElement) {
|
|
2243
|
-
var s = Se ? fr : b;
|
|
2244
|
-
if (n.has(s)) return;
|
|
2245
|
-
}
|
|
2246
|
-
Or(e) && i === Pr(e.value) || e.type === "date" && !i && !e.value || i !== e.value && (e.value = i ?? "");
|
|
2247
|
-
});
|
|
2248
|
-
}
|
|
2249
|
-
function Or(e) {
|
|
2250
|
-
var t = e.type;
|
|
2251
|
-
return t === "number" || t === "range";
|
|
2252
|
-
}
|
|
2253
|
-
function Pr(e) {
|
|
2254
|
-
return e === "" ? null : +e;
|
|
2255
|
-
}
|
|
2256
|
-
var Ii, ct = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakSet(), ji = class {
|
|
2257
|
-
constructor(e) {
|
|
2258
|
-
Qr(this, In), $(this, ct, /* @__PURE__ */ new WeakMap()), $(this, yr, void 0), $(this, Lr, void 0), m(Lr, this, e);
|
|
2259
|
-
}
|
|
2260
|
-
observe(e, t) {
|
|
2261
|
-
var r = a(ct, this).get(e) || /* @__PURE__ */ new Set();
|
|
2262
|
-
return r.add(t), a(ct, this).set(e, r), S(In, this, Ja).call(this).observe(e, a(Lr, this)), () => {
|
|
2263
|
-
var n = a(ct, this).get(e);
|
|
2264
|
-
n.delete(t), n.size === 0 && (a(ct, this).delete(e), a(yr, this).unobserve(e));
|
|
2265
|
-
};
|
|
2266
|
-
}
|
|
2267
|
-
};
|
|
2268
|
-
Ii = ji;
|
|
2269
|
-
function Ja() {
|
|
2270
|
-
return a(yr, this) ?? m(yr, this, new ResizeObserver((e) => {
|
|
2271
|
-
for (var t of e) {
|
|
2272
|
-
Ii.entries.set(t.target, t);
|
|
2273
|
-
for (var r of a(ct, this).get(t.target) || []) r(t);
|
|
2274
|
-
}
|
|
2275
|
-
}));
|
|
2276
|
-
}
|
|
2277
|
-
O(ji, "entries", /* @__PURE__ */ new WeakMap());
|
|
2278
|
-
var Jt = !1;
|
|
2279
|
-
function Za(e) {
|
|
2280
|
-
var t = Jt;
|
|
2281
|
-
try {
|
|
2282
|
-
return Jt = !1, [e(), Jt];
|
|
2283
|
-
} finally {
|
|
2284
|
-
Jt = t;
|
|
2285
|
-
}
|
|
2286
|
-
}
|
|
2287
|
-
function Ae(e, t, r, n) {
|
|
2288
|
-
var i = !kr || (r & 2) !== 0, s = (r & 8) !== 0, o = (r & 16) !== 0, l = n, u = !0, v = void 0, h = () => o && i ? (v ?? (v = /* @__PURE__ */ Nt(n)), k(v)) : (u && (u = !1, l = o ? jt(n) : n), l);
|
|
2289
|
-
let d;
|
|
2290
|
-
if (s) {
|
|
2291
|
-
var c = Zt in e || zn in e;
|
|
2292
|
-
d = Qe(e, t)?.set ?? (c && t in e ? (x) => e[t] = x : void 0);
|
|
2293
|
-
}
|
|
2294
|
-
var f, p = !1;
|
|
2295
|
-
s ? [f, p] = Za(() => e[t]) : f = e[t], f === void 0 && n !== void 0 && (f = h(), d && (i && Ls(t), d(f)));
|
|
2296
|
-
var y;
|
|
2297
|
-
if (i ? y = () => {
|
|
2298
|
-
var x = e[t];
|
|
2299
|
-
return x === void 0 ? h() : (u = !0, x);
|
|
2300
|
-
} : y = () => {
|
|
2301
|
-
var x = e[t];
|
|
2302
|
-
return x !== void 0 && (l = void 0), x === void 0 ? l : x;
|
|
2303
|
-
}, i && (r & 4) === 0) return y;
|
|
2304
|
-
if (d) {
|
|
2305
|
-
var _ = e.$$legacy;
|
|
2306
|
-
return (function(x, w) {
|
|
2307
|
-
return arguments.length > 0 ? ((!i || !w || _ || p) && d(w ? y() : x), x) : y();
|
|
2308
|
-
});
|
|
2309
|
-
}
|
|
2310
|
-
var g = !1, A = ((r & 1) !== 0 ? Nt : Jr)(() => (g = !1, y()));
|
|
2311
|
-
s && k(A);
|
|
2312
|
-
var N = E;
|
|
2313
|
-
return (function(x, w) {
|
|
2314
|
-
if (arguments.length > 0) {
|
|
2315
|
-
const R = w ? k(A) : i && s ? Je(x) : x;
|
|
2316
|
-
return Q(A, R), g = !0, l !== void 0 && (l = R), x;
|
|
2317
|
-
}
|
|
2318
|
-
return Pe && g || (N.f & 16384) !== 0 ? A.v : k(A);
|
|
2319
|
-
});
|
|
2320
|
-
}
|
|
2321
|
-
function Qa(e) {
|
|
2322
|
-
return new eo(e);
|
|
2323
|
-
}
|
|
2324
|
-
var Ve = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), eo = class {
|
|
2325
|
-
constructor(e) {
|
|
2326
|
-
$(this, Ve, void 0), $(this, _e, void 0);
|
|
2327
|
-
var t = /* @__PURE__ */ new Map(), r = (i, s) => {
|
|
2328
|
-
var o = /* @__PURE__ */ vi(s, !1, !1);
|
|
2329
|
-
return t.set(i, o), o;
|
|
2330
|
-
};
|
|
2331
|
-
const n = new Proxy({
|
|
2332
|
-
...e.props || {},
|
|
2333
|
-
$$events: {}
|
|
2334
|
-
}, {
|
|
2335
|
-
get(i, s) {
|
|
2336
|
-
return k(t.get(s) ?? r(s, Reflect.get(i, s)));
|
|
2337
|
-
},
|
|
2338
|
-
has(i, s) {
|
|
2339
|
-
return s === zn ? !0 : (k(t.get(s) ?? r(s, Reflect.get(i, s))), Reflect.has(i, s));
|
|
2340
|
-
},
|
|
2341
|
-
set(i, s, o) {
|
|
2342
|
-
return Q(t.get(s) ?? r(s, o), o), Reflect.set(i, s, o);
|
|
2343
|
-
}
|
|
2344
|
-
});
|
|
2345
|
-
m(_e, this, (e.hydrate ? Na : Ni)(e.component, {
|
|
2346
|
-
target: e.target,
|
|
2347
|
-
anchor: e.anchor,
|
|
2348
|
-
props: n,
|
|
2349
|
-
context: e.context,
|
|
2350
|
-
intro: e.intro ?? !1,
|
|
2351
|
-
recover: e.recover,
|
|
2352
|
-
transformError: e.transformError
|
|
2353
|
-
})), !Se && (!e?.props?.$$host || e.sync === !1) && ae(), m(Ve, this, n.$$events);
|
|
2354
|
-
for (const i of Object.keys(a(_e, this)))
|
|
2355
|
-
i === "$set" || i === "$destroy" || i === "$on" || Lt(this, i, {
|
|
2356
|
-
get() {
|
|
2357
|
-
return a(_e, this)[i];
|
|
2358
|
-
},
|
|
2359
|
-
set(s) {
|
|
2360
|
-
a(_e, this)[i] = s;
|
|
2361
|
-
},
|
|
2362
|
-
enumerable: !0
|
|
2363
|
-
});
|
|
2364
|
-
a(_e, this).$set = (i) => {
|
|
2365
|
-
Object.assign(n, i);
|
|
2366
|
-
}, a(_e, this).$destroy = () => {
|
|
2367
|
-
Wa(a(_e, this));
|
|
2368
|
-
};
|
|
2369
|
-
}
|
|
2370
|
-
$set(e) {
|
|
2371
|
-
a(_e, this).$set(e);
|
|
2372
|
-
}
|
|
2373
|
-
$on(e, t) {
|
|
2374
|
-
a(Ve, this)[e] = a(Ve, this)[e] || [];
|
|
2375
|
-
const r = (...n) => t.call(this, ...n);
|
|
2376
|
-
return a(Ve, this)[e].push(r), () => {
|
|
2377
|
-
a(Ve, this)[e] = a(Ve, this)[e].filter((n) => n !== r);
|
|
2378
|
-
};
|
|
2379
|
-
}
|
|
2380
|
-
$destroy() {
|
|
2381
|
-
a(_e, this).$destroy();
|
|
2382
|
-
}
|
|
2383
|
-
}, Fi;
|
|
2384
|
-
typeof HTMLElement == "function" && (Fi = class extends HTMLElement {
|
|
2385
|
-
constructor(e, t, r) {
|
|
2386
|
-
super(), O(this, "$$ctor", void 0), O(this, "$$s", void 0), O(this, "$$c", void 0), O(this, "$$cn", !1), O(this, "$$d", {}), O(this, "$$r", !1), O(this, "$$p_d", {}), O(this, "$$l", {}), O(this, "$$l_u", /* @__PURE__ */ new Map()), O(this, "$$me", void 0), O(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2387
|
-
}
|
|
2388
|
-
addEventListener(e, t, r) {
|
|
2389
|
-
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
2390
|
-
const n = this.$$c.$on(e, t);
|
|
2391
|
-
this.$$l_u.set(t, n);
|
|
2392
|
-
}
|
|
2393
|
-
super.addEventListener(e, t, r);
|
|
2394
|
-
}
|
|
2395
|
-
removeEventListener(e, t, r) {
|
|
2396
|
-
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
2397
|
-
const n = this.$$l_u.get(t);
|
|
2398
|
-
n && (n(), this.$$l_u.delete(t));
|
|
2399
|
-
}
|
|
2400
|
-
}
|
|
2401
|
-
async connectedCallback() {
|
|
2402
|
-
if (this.$$cn = !0, !this.$$c) {
|
|
2403
|
-
let e = function(n) {
|
|
2404
|
-
return (i) => {
|
|
2405
|
-
const s = rn("slot");
|
|
2406
|
-
n !== "default" && (s.name = n), U(i, s);
|
|
2407
|
-
};
|
|
2408
|
-
};
|
|
2409
|
-
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2410
|
-
const t = {}, r = to(this);
|
|
2411
|
-
for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2412
|
-
for (const n of this.attributes) {
|
|
2413
|
-
const i = this.$$g_p(n.name);
|
|
2414
|
-
i in this.$$d || (this.$$d[i] = rr(i, n.value, this.$$p_d, "toProp"));
|
|
2415
|
-
}
|
|
2416
|
-
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2417
|
-
this.$$c = Qa({
|
|
2418
|
-
component: this.$$ctor,
|
|
2419
|
-
target: this.$$shadowRoot || this,
|
|
2420
|
-
props: {
|
|
2421
|
-
...this.$$d,
|
|
2422
|
-
$$slots: t,
|
|
2423
|
-
$$host: this
|
|
2424
|
-
}
|
|
2425
|
-
}), this.$$me = la(() => {
|
|
2426
|
-
an(() => {
|
|
2427
|
-
this.$$r = !0;
|
|
2428
|
-
for (const n of ir(this.$$c)) {
|
|
2429
|
-
if (!this.$$p_d[n]?.reflect) continue;
|
|
2430
|
-
this.$$d[n] = this.$$c[n];
|
|
2431
|
-
const i = rr(n, this.$$d[n], this.$$p_d, "toAttribute");
|
|
2432
|
-
i == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, i);
|
|
2433
|
-
}
|
|
2434
|
-
this.$$r = !1;
|
|
2435
|
-
});
|
|
2436
|
-
});
|
|
2437
|
-
for (const n in this.$$l) for (const i of this.$$l[n]) {
|
|
2438
|
-
const s = this.$$c.$on(n, i);
|
|
2439
|
-
this.$$l_u.set(i, s);
|
|
2440
|
-
}
|
|
2441
|
-
this.$$l = {};
|
|
2442
|
-
}
|
|
2443
|
-
}
|
|
2444
|
-
attributeChangedCallback(e, t, r) {
|
|
2445
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] = rr(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2446
|
-
}
|
|
2447
|
-
disconnectedCallback() {
|
|
2448
|
-
this.$$cn = !1, Promise.resolve().then(() => {
|
|
2449
|
-
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$me(), this.$$c = void 0);
|
|
2450
|
-
});
|
|
2451
|
-
}
|
|
2452
|
-
$$g_p(e) {
|
|
2453
|
-
return ir(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2454
|
-
}
|
|
2455
|
-
});
|
|
2456
|
-
function rr(e, t, r, n) {
|
|
2457
|
-
const i = r[e]?.type;
|
|
2458
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e]) return t;
|
|
2459
|
-
if (n === "toAttribute") switch (i) {
|
|
2460
|
-
case "Object":
|
|
2461
|
-
case "Array":
|
|
2462
|
-
return t == null ? null : JSON.stringify(t);
|
|
2463
|
-
case "Boolean":
|
|
2464
|
-
return t ? "" : null;
|
|
2465
|
-
case "Number":
|
|
2466
|
-
return t ?? null;
|
|
2467
|
-
default:
|
|
2468
|
-
return t;
|
|
2469
|
-
}
|
|
2470
|
-
else switch (i) {
|
|
2471
|
-
case "Object":
|
|
2472
|
-
case "Array":
|
|
2473
|
-
return t && JSON.parse(t);
|
|
2474
|
-
case "Boolean":
|
|
2475
|
-
return t;
|
|
2476
|
-
case "Number":
|
|
2477
|
-
return t != null ? +t : t;
|
|
2478
|
-
default:
|
|
2479
|
-
return t;
|
|
2480
|
-
}
|
|
2481
|
-
}
|
|
2482
|
-
function to(e) {
|
|
2483
|
-
const t = {};
|
|
2484
|
-
return e.childNodes.forEach((r) => {
|
|
2485
|
-
t[r.slot || "default"] = !0;
|
|
2486
|
-
}), t;
|
|
2487
|
-
}
|
|
2488
|
-
function ro(e, t, r, n, i, s) {
|
|
2489
|
-
let o = class extends Fi {
|
|
2490
|
-
constructor() {
|
|
2491
|
-
super(e, r, i), this.$$p_d = t;
|
|
2492
|
-
}
|
|
2493
|
-
static get observedAttributes() {
|
|
2494
|
-
return ir(t).map((l) => (t[l].attribute || l).toLowerCase());
|
|
2495
|
-
}
|
|
2496
|
-
};
|
|
2497
|
-
return ir(t).forEach((l) => {
|
|
2498
|
-
Lt(o.prototype, l, {
|
|
2499
|
-
get() {
|
|
2500
|
-
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
2501
|
-
},
|
|
2502
|
-
set(u) {
|
|
2503
|
-
u = rr(l, u, t), this.$$d[l] = u;
|
|
2504
|
-
var v = this.$$c;
|
|
2505
|
-
v && (Qe(v, l)?.get ? v[l] = u : v.$set({ [l]: u }));
|
|
2506
|
-
}
|
|
2507
|
-
});
|
|
2508
|
-
}), n.forEach((l) => {
|
|
2509
|
-
Lt(o.prototype, l, { get() {
|
|
2510
|
-
return this.$$c?.[l];
|
|
2511
|
-
} });
|
|
2512
|
-
}), s && (o = s(o)), e.element = o, o;
|
|
2513
|
-
}
|
|
2514
|
-
var Di = "dictionary";
|
|
2515
|
-
function no(e) {
|
|
2516
|
-
if (!e || typeof e != "object") return null;
|
|
2517
|
-
const t = e, r = typeof t.word == "string" ? t.word.trim() : "";
|
|
2518
|
-
if (!r) return null;
|
|
2519
|
-
const n = Array.isArray(t.senses) ? t.senses : [], i = [];
|
|
2520
|
-
for (const s of n) {
|
|
2521
|
-
if (!s || typeof s != "object") continue;
|
|
2522
|
-
const o = s, l = typeof o.definition == "string" ? o.definition.trim() : "";
|
|
2523
|
-
l && i.push({
|
|
2524
|
-
definition: l,
|
|
2525
|
-
partOfSpeech: typeof o.partOfSpeech == "string" ? o.partOfSpeech : void 0,
|
|
2526
|
-
example: typeof o.example == "string" ? o.example : void 0
|
|
2527
|
-
});
|
|
2528
|
-
}
|
|
2529
|
-
return i.length === 0 ? null : {
|
|
2530
|
-
word: r,
|
|
2531
|
-
pronunciation: typeof t.pronunciation == "string" ? t.pronunciation : void 0,
|
|
2532
|
-
senses: i
|
|
2533
|
-
};
|
|
2534
|
-
}
|
|
2535
|
-
function io(e) {
|
|
2536
|
-
return ss(e, {
|
|
2537
|
-
serviceLabel: Di,
|
|
2538
|
-
keys: ["entries"],
|
|
2539
|
-
toItem: no
|
|
2540
|
-
});
|
|
2541
|
-
}
|
|
2542
|
-
function so(e) {
|
|
2543
|
-
return ns({
|
|
2544
|
-
...e,
|
|
2545
|
-
serviceLabel: Di,
|
|
2546
|
-
readResponse: io
|
|
2547
|
-
});
|
|
2548
|
-
}
|
|
2549
|
-
var ao = /* @__PURE__ */ ve('<p class="pie-tool-dictionary__notice svelte-1qfqsgt">No dictionary service is configured for this assessment.</p>'), oo = /* @__PURE__ */ ve('<p class="pie-tool-dictionary__notice svelte-1qfqsgt">Type a word to look it up.</p>'), jn = /* @__PURE__ */ ve('<p class="pie-tool-dictionary__notice svelte-1qfqsgt"> </p>'), lo = /* @__PURE__ */ ve('<p class="pie-tool-dictionary__error svelte-1qfqsgt" role="alert"> </p>'), fo = /* @__PURE__ */ ve('<span class="pie-tool-dictionary__pronunciation svelte-1qfqsgt"> </span>'), uo = /* @__PURE__ */ ve('<span class="pie-tool-dictionary__pos svelte-1qfqsgt"> </span>'), co = /* @__PURE__ */ ve('<span class="pie-tool-dictionary__example svelte-1qfqsgt"> </span>'), vo = /* @__PURE__ */ ve('<li class="pie-tool-dictionary__sense svelte-1qfqsgt"><!> <span class="pie-tool-dictionary__definition"> </span> <!></li>'), ho = /* @__PURE__ */ ve('<li class="pie-tool-dictionary__entry svelte-1qfqsgt"><p class="pie-tool-dictionary__word svelte-1qfqsgt"> <!></p> <ol class="pie-tool-dictionary__senses svelte-1qfqsgt"></ol></li>'), _o = /* @__PURE__ */ ve('<ul class="pie-tool-dictionary__entries svelte-1qfqsgt"></ul>'), po = /* @__PURE__ */ ve('<div class="pie-tool-dictionary svelte-1qfqsgt" role="dialog" aria-label="Dictionary"><form class="pie-tool-dictionary__search svelte-1qfqsgt"><label class="pie-tool-dictionary__label svelte-1qfqsgt" for="pie-tool-dictionary-term">Word or phrase</label> <div class="pie-tool-dictionary__row svelte-1qfqsgt"><input id="pie-tool-dictionary-term" class="pie-tool-dictionary__input svelte-1qfqsgt" type="text" autocomplete="off" spellcheck="false"/> <button class="pie-tool-dictionary__submit svelte-1qfqsgt" type="submit">Look up</button></div></form> <div class="pie-tool-dictionary__status svelte-1qfqsgt" role="status" aria-live="polite"> </div> <div class="pie-tool-dictionary__body svelte-1qfqsgt"><!></div></div>'), go = {
|
|
2550
|
-
hash: "svelte-1qfqsgt",
|
|
2551
|
-
code: `.pie-tool-dictionary.svelte-1qfqsgt {display:flex;flex-direction:column;gap:0.5rem;height:100%;min-height:0;padding:0.75rem;box-sizing:border-box;color:var(--pie-text, #1f2937);background:var(--pie-background, #fff);font-size:0.95rem;}.pie-tool-dictionary__search.svelte-1qfqsgt {display:flex;flex-direction:column;gap:0.25rem;}.pie-tool-dictionary__label.svelte-1qfqsgt {font-size:0.8rem;font-weight:600;}.pie-tool-dictionary__row.svelte-1qfqsgt {display:flex;gap:0.5rem;}.pie-tool-dictionary__input.svelte-1qfqsgt {flex:1 1 auto;min-width:0;padding:0.35rem 0.5rem;border:1px solid var(--pie-border-light, #e5e7eb);border-radius:0.375rem;background:var(--pie-background, #fff);color:inherit;font:inherit;}.pie-tool-dictionary__submit.svelte-1qfqsgt {flex:0 0 auto;padding:0.35rem 0.75rem;border:1px solid var(--pie-border-light, #e5e7eb);border-radius:0.375rem;background:var(--pie-secondary-background, #f9fafb);color:inherit;font:inherit;cursor:pointer;}.pie-tool-dictionary__submit.svelte-1qfqsgt:disabled {opacity:0.5;cursor:not-allowed;}
|
|
1
|
+
import{coerceBooleanAttributes as as}from"@pie-players/pie-players-shared/ui/attribute-coercion";import{connectToolRuntimeContext as ls}from"@pie-players/pie-assessment-toolkit/tools/registration";import{resolveInterfaceI18n as os}from"@pie-players/pie-players-shared/i18n/provider";import{TermLookupSession as fs,createEndpointTermLookup as us,normalizeTerm as cs,readTermLookupPayload as hs,termPanelStatusMessage as vs,termResultLanguage as ds}from"@pie-players/pie-players-shared/tools/term-lookup";if(typeof window<"u"){var $n,kn;(($n=(kn=window).__svelte??(kn.__svelte={})).v??($n.v=new Set)).add("5")}var Ne={},D=Symbol("uninitialized"),Sn=Array.isArray,_s=Array.prototype.indexOf,Mt=Array.prototype.includes,Xt=Array.from,Zt=Object.keys,Tt=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,ps=Object.getOwnPropertyDescriptors,gs=Object.prototype,ms=Array.prototype,xn=Object.getPrototypeOf,qn=Object.isExtensible,ys=()=>{};function ws(e){for(var t=0;t<e.length;t++)e[t]()}function En(){var e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}function Rt(e){"@babel/helpers - typeof";return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rt(e)}function bs(e,t){if(Rt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $s(e){var t=bs(e,"string");return Rt(t)=="symbol"?t:t+""}function R(e,t,r){return(t=$s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ne=1024,Y=2048,Ie=4096,Er=8192,Mn=16384,Mr=32768,Tr=1<<25,Rr=65536,ht=1<<19,ks=1<<20,At=1<<25,Tn=1<<21,Ss=1<<22,Qt=1<<23,Ot=Symbol("$state"),Rn=Symbol("component"),An=Symbol("legacy props"),xs=Symbol(""),Ar=Symbol("attributes"),qs=Symbol("class"),Es=Symbol("style"),er=Symbol("text"),Ct=Symbol("form reset"),Lt=new class extends Error{constructor(...t){super(...t),R(this,"name","StaleReactionError"),R(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Ms=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function Ts(){console.warn("https://svelte.dev/e/derived_inert")}function tr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Rs(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var T=!1;function Re(e){T=e}var M;function U(e){if(e===null)throw tr(),Ne;return M=e}function rr(){return U(Se(M))}function ye(e){if(T){if(Se(M)!==null)throw tr(),Ne;M=e}}function As(e=1){if(T){for(var t=e,r=M;t--;)r=Se(r);M=r}}function nr(e=!0){for(var t=0,r=M;;){if(r.nodeType===8){var n=r.data;if(n==="]"){if(t===0)return r;t-=1}else(n==="["||n==="[!"||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=Se(r);e&&r.remove(),r=i}}function Or(e){if(!e||e.nodeType!==8)throw tr(),Ne;return e.data}function On(e){return e===this.v}function Os(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Cn(e){return!Os(e,this.v)}function Cs(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ls(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Ps(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ws(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ns(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Is(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function js(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ds(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function zs(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Fs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Bs(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Hs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var we=!1,ir=!1,j=null;function vt(e){j=e}function Ln(e,t=!1,r){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:x,l:ir&&!t?{s:null,u:null,$:[]}:null}}function Pn(e){var t=j,r=t.e;if(r!==null){t.e=null;for(var n of r)ui(n)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,Cr(e)}function Cr(e={}){return Tt(e,Rn,{value:!0}),e}function Pt(){return!ir||j!==null&&j.l===null}var Je=[];function Wn(){var e=Je;Je=[],ws(e)}function be(e){if(Je.length===0&&!It){var t=Je;queueMicrotask(()=>{t===Je&&Wn()})}Je.push(e)}function Vs(){for(;Je.length>0;)Wn()}var Ys=~(Y|Ie|ne);function I(e,t){e.f=e.f&Ys|t}function Lr(e){(e.f&512)!==0||e.deps===null?I(e,ne):I(e,Ie)}function Nn(e,t){(e.f&2048)!==0?t.set(e,Y):(e.f&4096)!==0&&t.get(e)!==2048&&t.set(e,Ie),I(e,ne)}var In=!1;function jn(){In||(In=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t[Ct]?.()})},{capture:!0}))}function dt(e){var t=q,r=x;ue(null),Ee(null);try{return e()}finally{ue(t),Ee(r)}}function Us(e,t,r,n=r){e.addEventListener(t,()=>dt(r));const i=e[Ct];i?e[Ct]=()=>{i(),n(!0)}:e[Ct]=()=>n(!0),jn()}function Gs(e,t,r,n){const i=Pt()?Wt:Pr;var s=e.filter(d=>!d.settled),a=t.map(i);if(r.length===0&&s.length===0){n(a);return}var o=x,f=Ks(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function c(d){if((o.f&16384)===0){f();try{n([...a,...d])}catch(w){xe(w,o)}sr()}}var h=Dn();if(r.length===0){u.then(()=>c([])).finally(h);return}function v(){Promise.all(r.map(d=>Js(d))).then(c).catch(d=>xe(d,o)).finally(h)}u?u.then(()=>{if((o.f&16384)!==0){h();return}f(),v(),sr()}):v()}function Ks(){var e=x,t=q,r=j,n=k;return function(s=!0){Ee(e),ue(t),vt(r),s&&(e.f&16384)===0&&(n?.activate(),n?.apply())}}function sr(e=!0){Ee(null),ue(null),vt(null),e&&k?.deactivate()}function Dn(){var e=x,t=e.b,r=k,n=!!t?.is_rendered();return t?.update_pending_count(1,r),r.increment(n,e),()=>{t?.update_pending_count(-1,r),r.decrement(n,e)}}function Wt(e){var t=2|Y;return x!==null&&(x.f|=ht),{ctx:j,deps:null,effects:null,equals:On,f:t,fn:e,reactions:null,rv:0,v:D,wv:0,parent:x,ac:null}}var Nt=Symbol("obsolete");function Js(e,t,r){let n=x;n===null&&Cs();var i=void 0,s=tt(D),a=!q,o=new Set;return ha(()=>{var f=x,u=En();i=u.promise;try{Promise.resolve(e()).then(u.resolve,d=>{d!==Lt&&u.reject(d)}).finally(sr)}catch(d){u.reject(d),sr()}var c=k;if(a){if((f.f&32768)!==0)var h=Dn();if(n.b?.is_rendered())c.async_deriveds.get(f)?.reject(Nt);else for(const d of o.values())d.reject(Nt);o.add(u),c.async_deriveds.set(f,u)}const v=(d,w=void 0)=>{h?.(),o.delete(u),w!==Nt&&(c.activate(),w?(s.f|=Qt,gt(s,w)):((s.f&8388608)!==0&&(s.f^=Qt),gt(s,d)),c.deactivate())};u.promise.then(v,d=>v(null,d||"unknown"))}),fi(()=>{for(const f of o)f.reject(Nt)}),new Promise(f=>{function u(c){function h(){c===i?f(s):u(i)}c.then(h,h)}u(i)})}function ar(e){const t=Wt(e);return we||gi(t),t}function Pr(e){const t=Wt(e);return t.equals=Cn,t}function Xs(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)H(t[r])}}function Wr(e){var t,r=x,n=e.parent;if(!Ae&&n!==null&&e.v!==D&&(n.f&24576)!==0)return Ts(),e.v;Ee(n);try{Xs(e),t=$i(e)}finally{Ee(r)}return t}function zn(e){var t=Wr(e);if(!e.equals(t)&&(e.wv=wi(),(!k?.is_fork||e.deps===null)&&(k!==null?(k.capture(e,t,!0),Xe?.capture(e,t,!0)):e.v=t,e.deps===null))){I(e,ne);return}Ae||(B!==null?(Ur()||k?.is_fork)&&B.set(e,t):Lr(e))}function Zs(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&dt(()=>{t.ac.abort(Lt),t.ac=null}),t.fn!==null&&(t.teardown=ys),Vt(t,0),Jr(t))}function Fn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&mt(t)}function Bn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Nr(e,t){Bn(e,t),t.add(e)}function S(e,t,r){Bn(e,t),t.set(e,r)}function g(e,t,r){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function l(e,t){return e.get(g(e,t))}function $(e,t,r){return e.set(g(e,t),r),r}var Hn,lr=null,_t=null,k=null,Xe=null,B=null,Ir=null,It=!1,jr=!1,jt=null,or=null,Vn=0,Qs=1,fr=new WeakMap,ur=new WeakMap,pt=new WeakMap,Ze=new WeakMap,Dt=new WeakMap,Qe=new WeakMap,Dr=new WeakMap,je=new WeakMap,De=new WeakMap,cr=new WeakMap,zt=new WeakMap,A=new WeakSet,et=class Bi{constructor(){Nr(this,A),R(this,"id",Qs++),R(this,"started",!1),R(this,"linked",!0),R(this,"prev",null),R(this,"next",null),R(this,"async_deriveds",new Map),R(this,"current",new Map),R(this,"previous",new Map),S(this,fr,new Set),S(this,ur,new Set),S(this,pt,0),S(this,Ze,new Map),S(this,Dt,null),S(this,Qe,[]),S(this,Dr,[]),S(this,je,new Map),S(this,De,new Map),S(this,cr,new Set),R(this,"is_fork",!1),S(this,zt,!1),_t===null?lr=_t=this:(_t.next=this,this.prev=_t),_t=this}skip_effect(t){l(De,this).has(t)||l(De,this).set(t,{d:[],m:[]}),l(cr,this).delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=l(De,this).get(t);if(n){l(De,this).delete(t);for(var i of n.d)I(i,Y),r(i);for(i of n.m)I(i,Ie),r(i)}l(cr,this).add(t)}capture(t,r,n=!1){t.v!==D&&!this.previous.has(t)&&this.previous.set(t,t.v),(t.f&8388608)===0&&(this.current.set(t,[r,n]),B?.set(t,r)),this.is_fork||(t.v=r)}activate(){k=this}deactivate(){k=null,B=null}flush(){try{jr=!0,k=this,g(A,this,hr).call(this)}finally{Vn=0,Ir=null,jt=null,or=null,jr=!1,k=null,B=null,ke.clear()}}discard(){for(const t of l(ur,this))t(this);l(ur,this).clear();for(const t of this.async_deriveds.values())t.reject(Nt);g(A,this,vr).call(this),l(Dt,this)?.resolve()}register_created_effect(t){l(Dr,this).push(t)}increment(t,r){if($(pt,this,l(pt,this)+1),t){let n=l(Ze,this).get(r)??0;l(Ze,this).set(r,n+1)}}decrement(t,r){if($(pt,this,l(pt,this)-1),t){let n=l(Ze,this).get(r)??0;n===1?l(Ze,this).delete(r):l(Ze,this).set(r,n-1)}l(zt,this)||($(zt,this,!0),be(()=>{$(zt,this,!1),this.linked&&this.flush()}))}transfer_reactions(t){for(const[r,n]of t)this.add_dirty_reaction(r,n);t.clear()}add_dirty_reaction(t,r){(r===2048||l(je,this).get(t)!==2048)&&l(je,this).set(t,r)}oncommit(t){l(fr,this).add(t)}ondiscard(t){l(ur,this).add(t)}settled(){return(l(Dt,this)??$(Dt,this,En())).promise}static ensure(){if(k===null){const t=k=new Bi;!jr&&!It&&be(()=>{t.started||t.flush()})}return k}apply(){if(!we||!this.is_fork&&this.prev===null&&this.next===null){B=null;return}B=new Map;for(const[t,[r]]of this.current)B.set(t,r);for(let t=lr;t!==null;t=t.next)if(!(t===this||t.is_fork)&&(t.id>=this.id||!g(A,t,Kn).call(t,this)))for(const[r,n]of t.previous)B.has(r)||B.set(r,n)}schedule(t){if(Ir=t,t.b?.is_pending&&(t.f&16777228)!==0&&(t.f&32768)===0){t.b.defer_effect(t);return}l(Qe,this).push(t)}};Hn=et;function Yn(){if(this.is_fork)return!0;for(const e of l(Ze,this).keys())if(!g(A,this,ea).call(this,e))return!0;return!1}function ea(e){for(var t=e;t!==null;t=t.parent)if(l(De,this).has(t))return!0;return!1}function Un(){var e=[];for(const i of l(Qe,this))if(!((i.f&16384)!==0||(i.f&6144)===0)){for(var t=i,r=!1;t.parent!==null;){t=t.parent;var n=t.f;if((n&96)!==0){if((n&1024)===0){r=!0;break}t.f^=ne}}r||e.push(t)}return $(Qe,this,[]),e}function hr(){this.started=!0;for(const[a,o]of l(je,this))I(a,o),this.schedule(a);this.apply();for(var e=jt=[],t=[],r=or=[];l(Qe,this).length>0;){Vn++>1e3&&(g(A,this,vr).call(this),ia());for(const a of g(A,this,Un).call(this))try{g(A,this,Gn).call(this,a,e,t)}catch(o){throw Qn(a),g(A,this,Yn).call(this)||this.discard(),o}}if(k=null,r.length>0){var n=Hn.ensure();for(const a of r)n.schedule(a)}if(jt=null,or=null,g(A,this,Yn).call(this)){g(A,this,Ft).call(this,t),g(A,this,Ft).call(this,e);for(const[a,o]of l(De,this))Zn(a,o);r.length>0&&g(A,k,hr).call(k);return}const i=g(A,this,ta).call(this);if(i){g(A,this,Ft).call(this,t),g(A,this,Ft).call(this,e),g(A,i,ra).call(i,this);return}l(je,this).clear();for(const a of l(fr,this))a(this);l(fr,this).clear(),Xe=this,Jn(t),Jn(e),Xe=null,l(Dt,this)?.resolve();var s=k;l(pt,this)===0&&(l(Qe,this).length===0||s!==null)&&(g(A,this,vr).call(this),we&&(g(A,this,na).call(this),k=s)),s!==null&&(ke.clear(),g(A,s,hr).call(s))}function Gn(e,t,r){e.f^=ne;for(var n=e.first;n!==null;){var i=n.f,s=(i&96)!==0;if(!(s&&(i&1024)!==0||(i&8192)!==0||l(De,this).has(n))&&n.fn!==null){s?n.f^=ne:(i&4)!==0?t.push(n):we&&(i&16777224)!==0?r.push(n):Ht(n)&&((i&16)!==0&&this.add_dirty_reaction(n,Ie),mt(n));var a=n.first;if(a!==null){n=a;continue}}for(;n!==null;){var o=n.next;if(o!==null){n=o;break}n=n.parent}}}function ta(){for(var e=this.prev;e!==null;e=e.prev)if(!e.is_fork&&g(A,this,Kn).call(this,e))return e;return null}function Kn(e){for(const[t,[,r]]of this.current)if(!r&&e.current.has(t))return!0;return!1}function ra(e){for(const[r,n]of e.current)!this.previous.has(r)&&e.previous.has(r)&&this.previous.set(r,e.previous.get(r)),this.current.set(r,n);for(const[r,n]of e.async_deriveds){const i=this.async_deriveds.get(r);i&&n.promise.then(i.resolve).catch(i.reject)}e.async_deriveds.clear(),this.transfer_reactions(l(je,e));const t=r=>{var n=r.reactions;if(n!==null&&!((r.f&2)!==0&&(r.f&6144)===0))for(const a of n){var i=a.f;if((i&2)!==0)t(a);else{var s=a;i&4194320&&!this.async_deriveds.has(s)&&(l(je,this).delete(s),I(s,Y),this.schedule(s))}}};for(const r of this.current.keys())t(r);this.oncommit(()=>e.discard()),g(A,e,vr).call(e),k=this,g(A,this,hr).call(this)}function Ft(e){for(var t=0;t<e.length;t+=1)Nn(e[t],l(je,this))}function na(){for(let c=lr;c!==null;c=c.next){var e=c.id<this.id,t=[];for(const[h,[v,d]]of this.current){if(c.current.has(h)){var r=c.current.get(h)[0];if(e&&v!==r)c.current.set(h,[v,d]);else continue}t.push(h)}if(e)for(const[h,v]of this.async_deriveds){const d=c.async_deriveds.get(h);d&&v.promise.then(d.resolve).catch(d.reject)}var n=[...c.current.keys()].filter(h=>!c.current.get(h)[1]);if(!(!c.started||n.length===0)){var i=n.filter(h=>!this.current.has(h));if(i.length===0)e&&c.discard();else if(t.length>0){if(e)for(const h of l(cr,this))c.unskip_effect(h,v=>{(v.f&4194320)!==0?c.schedule(v):g(A,c,Ft).call(c,[v])});c.activate();var s=new Set,a=new Map;for(var o of t)Xn(o,i,s,a);a=new Map;var f=[...c.current].filter(([h,v])=>{const d=this.current.get(h);return d?d[0]!==v[0]||d[1]!==v[1]:!0}).map(([h])=>h);if(f.length>0)for(const h of l(Dr,this))(h.f&155648)===0&&zr(h,f,a)&&((h.f&4194320)!==0?(I(h,Y),c.schedule(h)):c.add_dirty_reaction(h,Y));if(l(Qe,c).length>0&&!l(zt,c)){c.apply();for(var u of g(A,c,Un).call(c))g(A,c,Gn).call(c,u,[],[])}c.deactivate()}}}}function vr(){if(this.linked){var e=this.prev,t=this.next;e===null?lr=t:e.next=t,t===null?_t=e:t.prev=e,this.linked=!1}}function ie(e){var t=It,r=Xe;Xe=null,It=!0;try{var n;for(e&&(ie(),n=e());;){if(Vs(),k===null)return n;k.flush()}}finally{It=t,Xe=r}}function ia(){try{Is()}catch(e){xe(e,Ir)}}var $e=null;function Jn(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&24576)===0&&Ht(n)&&($e=new Set,mt(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&vi(n),$e?.size>0)){ke.clear();for(const i of $e){if((i.f&24576)!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)$e.has(a)&&($e.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const f=s[o];(f.f&24576)===0&&mt(f)}}$e.clear()}}$e=null}}function Xn(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&2)!==0?Xn(i,t,r,n):(s&4194320)!==0&&(s&2048)===0&&zr(i,t,n)&&(I(i,Y),Fr(i))}}function zr(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(Mt.call(t,i))return!0;if((i.f&2)!==0&&zr(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Fr(e){k.schedule(e)}function Zn(e,t){if(!((e.f&32)!==0&&(e.f&1024)!==0)){(e.f&2048)!==0?t.d.push(e):(e.f&4096)!==0&&t.m.push(e),I(e,ne);for(var r=e.first;r!==null;)Zn(r,t),r=r.next}}function Qn(e){I(e,ne);for(var t=e.first;t!==null;)Qn(t),t=t.next}var dr=new Set,ke=new Map,ei=!1;function tt(e,t){return{f:0,v:e,reactions:null,equals:On,rv:0,wv:0}}function se(e,t){const r=tt(e,t);return gi(r),r}function ti(e,t=!1,r=!0){const n=tt(e);if(t||(n.equals=Cn),ir&&r&&j!==null&&j.l!==null){var i;((i=j.l).s??(i.s=[])).push(n)}return n}function G(e,t,r=!1){return q!==null&&(!he||(q.f&131072)!==0)&&Pt()&&(q.f&4325394)!==0&&(ve===null||!ve.has(e))&&Bs(),gt(e,r?nt(t):t,or)}var rt=null,Br=0;function gt(e,t,r=null){if(!e.equals(t)){Ae?ke.set(e,t):ke.has(e)||ke.set(e,e.v);var n=et.ensure();if(n.capture(e,t),(e.f&2)!==0){const i=e;(e.f&2048)!==0&&Wr(i),B===null&&Lr(i)}e.wv=wi(),rt=null,Br=0,ri(e,Y,r),rt=null,Pt()&&x!==null&&(x.f&1024)!==0&&(x.f&96)===0&&(ce===null?pa([e]):ce.push(e)),!n.is_fork&&dr.size>0&&!ei&&sa()}return t}function sa(){ei=!1;for(const e of dr){(e.f&1024)!==0&&I(e,Ie);let t;try{t=Ht(e)}catch{t=!0}t&&mt(e)}dr.clear()}function Bt(e){G(e,e.v+1)}function ri(e,t,r){var n=e.reactions;if(n!==null){var i=Pt(),s=n.length;if(Br+=s,Br>1e5&&rt===null&&(rt=new Set),rt!==null){if(rt.has(e))return;rt.add(e)}for(var a=0;a<s;a++){var o=n[a],f=o.f;if(!(!i&&o===x)){var u=(f&Y)===0;if(u&&I(o,t),(f&131072)!==0)dr.add(o);else if((f&2)!==0){var c=o;B?.delete(c),ri(c,Ie,r)}else if(u){var h=o;(f&16)!==0&&$e!==null&&$e.add(h),r!==null?r.push(h):Fr(h)}}}}}function nt(e){if(typeof e!="object"||e===null||Ot in e||Rn in e)return e;const t=xn(e);if(t!==gs&&t!==ms)return e;var r=new Map,n=Sn(e),i=se(0),s=null,a=at,o=f=>{if(at===a)return f();var u=q,c=at;ue(null),yi(a);var h=f();return ue(u),yi(c),h};return n&&r.set("length",se(e.length,s)),new Proxy(e,{defineProperty(f,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&zs();var h=r.get(u);return h===void 0?o(()=>{var v=se(c.value,s);return r.set(u,v),v}):G(h,c.value,!0),!0},deleteProperty(f,u){var c=r.get(u);if(c===void 0){if(u in f){const h=o(()=>se(D,s));r.set(u,h),Bt(i)}}else G(c,D),Bt(i);return!0},get(f,u,c){if(u===Ot)return e;var h=r.get(u),v=u in f;if(h===void 0&&(!v||Ke(f,u)?.writable)&&(h=o(()=>se(nt(v?f[u]:D),s)),r.set(u,h)),h!==void 0){var d=p(h);return d===D?void 0:d}return Reflect.get(f,u,c)},getOwnPropertyDescriptor(f,u){this.has?.(f,u);var c=Reflect.getOwnPropertyDescriptor(f,u),h=r.get(u);if(h!==void 0){var v=p(h);if(v===D)return;if(c&&"value"in c)c.value=v;else return{enumerable:!0,configurable:!0,value:v,writable:!0}}return c},has(f,u){if(u===Ot)return!0;var c=r.get(u),h=c!==void 0&&c.v!==D||Reflect.has(f,u);return(c!==void 0||(x!==null||q!==null)&&(!h||Ke(f,u)?.writable))&&(c===void 0&&(c=o(()=>se(h?nt(f[u]):D,s)),r.set(u,c)),p(c)===D)?!1:h},set(f,u,c,h){var v=r.get(u),d=u in f;if(n&&u==="length")for(var w=c;w<v.v;w+=1){var m=r.get(w+"");m!==void 0?G(m,D):w in f&&(m=o(()=>se(D,s)),r.set(w+"",m))}if(v===void 0)(!d||Ke(f,u)?.writable)&&(v=o(()=>se(void 0,s)),G(v,nt(c)),r.set(u,v));else{d=v.v!==D;var _=o(()=>nt(c));G(v,_)}var b=Reflect.getOwnPropertyDescriptor(f,u);if(b?.set&&b.set.call(h,c),!d){if(n&&typeof u=="string"){var W=r.get("length"),N=Number(u);Number.isInteger(N)&&N>=W.v&&G(W,N+1)}Bt(i)}return!0},ownKeys(f){p(i);var u=Reflect.ownKeys(f).filter(v=>{var d=r.get(v);return d===void 0||d.v!==D});for(var[c,h]of r)h.v!==D&&!(c in f)&&u.push(c);return u},setPrototypeOf(){Fs()}})}var ni,ii,si,ai;function Hr(){if(ni===void 0){ni=window,ii=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;si=Ke(t,"firstChild").get,ai=Ke(t,"nextSibling").get,qn(e)&&(e[qs]=void 0,e[Ar]=null,e[Es]=void 0,e.__e=void 0),qn(r)&&(r[er]=void 0)}}function ae(e=""){return document.createTextNode(e)}function ze(e){return si.call(e)}function Se(e){return ai.call(e)}function Fe(e,t){if(!T)return ze(e);var r=ze(M);if(r===null)r=M.appendChild(ae());else if(t&&r.nodeType!==3){var n=ae();return r?.before(n),U(n),n}return t&&Yr(r),U(r),r}function aa(e,t=!1){if(!T){var r=ze(e);return r instanceof Comment&&r.data===""?Se(r):r}if(t){if(M?.nodeType!==3){var n=ae();return M?.before(n),U(n),n}Yr(M)}return M}function le(e,t=!1){if(!T)return ze(e);var r=Fe(e,t);return ye(e),r}function Be(e,t=1,r=!1){let n=T?M:e;for(var i;t--;)i=n,n=Se(n);if(!T)return n;if(r){if(n?.nodeType!==3){var s=ae();return n===null?i?.after(s):n.before(s),U(s),s}Yr(n)}return U(n),n}function li(e){e.textContent=""}function oi(){return!we||$e!==null?!1:(x.f&Mr)!==0}function Vr(e,t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?r?document.createElement(e,{is:r}):document.createElement(e):r?document.createElementNS(t,e,{is:r}):document.createElementNS(t,e)}function Yr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function la(e){var t=x;if(t===null)return q.f|=Qt,e;if((t.f&32768)===0&&(t.f&4)===0)throw e;xe(e,t)}function xe(e,t){if(e===Ne)throw e;if(!(t!==null&&(t.f&16384)!==0)){for(;t!==null;){if((t.f&128)!==0&&(t.f&33570816)===0){if((t.f&32768)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}}function oa(e){x===null&&(q===null&&Ns(e),Ws()),Ae&&Ps(e)}function fa(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function qe(e,t){var r=x;r!==null&&(r.f&8192)!==0&&(e|=Er);var n={ctx:j,deps:null,nodes:null,f:e|Y|512,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};k?.register_created_effect(n);var i=n;if((e&4)!==0)jt!==null?jt.push(n):et.ensure().schedule(n);else if(t!==null){try{mt(n)}catch(a){throw H(n),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&524288)===0&&(i=i.first,(e&16)!==0&&(e&65536)!==0&&i!==null&&(i.f|=Rr))}if(i!==null&&(i.parent=r,r!==null&&fa(i,r),q!==null&&(q.f&2)!==0&&(e&64)===0)){var s=q;(s.effects??(s.effects=[])).push(i)}return n}function Ur(){return q!==null&&!he}function fi(e){const t=qe(8,null);return I(t,ne),t.teardown=e,t}function Gr(e){oa("$effect");var t=x.f;if(!q&&(t&32)!==0&&j!==null&&!j.i){var r=j;(r.e??(r.e=[])).push(e)}else return ui(e)}function ui(e){return qe(4|ks,e)}function ua(e){et.ensure();const t=qe(64|ht,e);return()=>{H(t)}}function ca(e){et.ensure();const t=qe(64|ht,e);return(r={})=>new Promise(n=>{r.outro?it(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function ci(e){return qe(4,e)}function ha(e){return qe(Ss|ht,e)}function _r(e,t=0){return qe(8|t,e)}function oe(e,t=[],r=[],n=[]){Gs(n,t,r,i=>{qe(8,()=>{e(...i.map(p))})})}function Kr(e,t=0){return qe(16|t,e)}function fe(e){return qe(32|ht,e)}function hi(e){var t=e.teardown;if(t!==null){const r=Ae,n=q;pi(!0),ue(null);try{t.call(null)}catch(i){xe(i,e.parent)}finally{pi(r),ue(n)}}}function Jr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&dt(()=>{i.abort(Lt)});var n=r.next;(r.f&64)!==0?r.parent=null:H(r,t),r=n}}function va(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&32)===0&&H(t),t=r}}function H(e,t=!0){var r=!1;(t||(e.f&262144)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(da(e.nodes.start,e.nodes.end),r=!0),e.f|=Tr,Jr(e,t&&!r),Vt(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();hi(e),e.f^=Tr,e.f|=Mn;var i=e.parent;i!==null&&i.first!==null&&vi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function da(e,t){for(;e!==null;){var r=e===t?null:Se(e);e.remove(),e=r}}function vi(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function it(e,t,r=!0){var n=[];e.f|=256,di(e,n,!0);var i=()=>{r&&H(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var o of n)o.out(a)}else i()}function di(e,t,r){if((e.f&8192)===0){e.f^=Er;var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||r)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next;if((i.f&64)===0){var a=(i.f&65536)!==0||(i.f&32)!==0&&(e.f&16)!==0;di(i,t,a?r:!1)}i=s}}}function pr(e){e.f&=-257,_i(e,!0)}function _i(e,t){if((e.f&256)===0&&(e.f&8192)!==0){e.f^=Er,(e.f&1024)===0&&(I(e,Y),et.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&65536)!==0||(r.f&32)!==0;_i(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const a of s)(a.is_global||t)&&a.in()}}function Xr(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Se(r);t.append(r),r=i}}var _a=null,Ae=!1;function pi(e){Ae=e}var q=null,he=!1;function ue(e){q=e}var x=null;function Ee(e){x=e}var ve=null;function gi(e){q!==null&&(!we&&(q.f&2097152)!==0||(q.f&2)!==0)&&(ve??(ve=new Set)).add(e)}var K=null,Z=0,ce=null;function pa(e){ce=e}var mi=1,st=0,at=st;function yi(e){at=e}function wi(){return++mi}function Ht(e){var t=e.f;if((t&2048)!==0)return!0;if((t&4096)!==0){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Ht(s)&&zn(s),s.wv>e.wv)return!0}(t&512)!==0&&B===null&&I(e,ne)}return!1}function bi(e,t,r=!0){var n=e.reactions;if(n!==null&&!(!we&&ve!==null&&ve.has(e)))for(var i=0;i<n.length;i++){var s=n[i];(s.f&2)!==0?bi(s,t,!1):t===s&&(r?I(s,Y):(s.f&1024)!==0&&I(s,Ie),Fr(s))}}function $i(e){var t=K,r=Z,n=ce,i=q,s=ve,a=j,o=he,f=at,u=e.f;K=null,Z=0,ce=null,q=(u&96)===0?e:null,ve=null,vt(e.ctx),he=!1,at=++st,e.ac!==null&&(dt(()=>{e.ac.abort(Lt)}),e.ac=null);try{e.f|=Tn;var c=e.fn,h=c();e.f|=Mr;var v=ki(e);if(Pt()&&ce!==null&&!he&&v!==null&&(e.f&6146)===0)for(var d=0;d<ce.length;d++)bi(ce[d],e);if(i!==null&&i!==e){if(st++,i.deps!==null)for(let w=0;w<r;w+=1)i.deps[w].rv=st;if(t!==null)for(const w of t)w.rv=st;ce!==null&&(n===null?n=ce:n.push(...ce))}return(e.f&8388608)!==0&&(e.f^=Qt),h}catch(w){return ki(e),la(w)}finally{e.f^=Tn,K=t,Z=r,ce=n,q=i,ve=s,vt(a),he=o,at=f}}function ki(e){var t=e.deps,r=k?.is_fork;if(K!==null){var n;if(r||Vt(e,Z),t!==null&&Z>0)for(t.length=Z+K.length,n=0;n<K.length;n++)t[Z+n]=K[n];else e.deps=t=K;if(Ur()&&(e.f&512)!==0)for(n=Z;n<t.length;n++){var i;((i=t[n]).reactions??(i.reactions=[])).push(e)}}else!r&&t!==null&&Z<t.length&&(Vt(e,Z),t.length=Z);return t}function ga(e,t){let r=t.reactions;if(r!==null){var n=_s.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(t.f&2)!==0&&(K===null||!Mt.call(K,t))){var s=t;(s.f&512)!==0&&(s.f^=512),s.v!==D&&Lr(s),s.ac!==null&&dt(()=>{s.ac.abort(Lt),s.ac=null,I(s,Y)}),Zs(s),Vt(s,0)}}function Vt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ga(e,r[n])}function mt(e){var t=e.f;if((t&16384)===0){I(e,ne);var r=x;x=e;try{(t&16777232)!==0?va(e):Jr(e),hi(e);var n=$i(e);e.teardown=typeof n=="function"?n:null,e.wv=mi}finally{x=r}}}async function ma(){if(we)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),ie()}function p(e){var t=(e.f&2)!==0;if(_a?.add(e),q!==null&&!he&&!(x!==null&&(x.f&16384)!==0)&&(ve===null||!ve.has(e))){var r=q.deps;if((q.f&2097152)!==0)e.rv<st&&(e.rv=st,K===null&&r!==null&&r[Z]===e?Z++:K===null?K=[e]:K.push(e));else{var n;(n=q).deps??(n.deps=[]),Mt.call(q.deps,e)||q.deps.push(e);var i=e.reactions;i===null?e.reactions=[q]:Mt.call(i,q)||i.push(q)}}if(Ae&&ke.has(e))return ke.get(e);if(t){var s=e;if(Ae){var a=s.v;return((s.f&1024)===0&&s.reactions!==null||xi(s))&&(a=Wr(s)),ke.set(s,a),a}var o=(s.f&512)===0&&!he&&q!==null&&(q.f&512)!==0,f=(s.f&Mr)===0;Ht(s)&&(o&&(s.f|=512),zn(s)),o&&!f&&(Fn(s),Si(s))}if(B?.has(e))return B.get(e);if((e.f&8388608)!==0)throw e.v;return e.v}function Si(e){if(e.f|=512,e.deps!==null)for(const r of e.deps){var t=r.reactions;t===null?r.reactions=[e]:Mt.call(t,e)||t.push(e),(r.f&2)!==0&&(r.f&512)===0&&(Fn(r),Si(r))}}function xi(e){if(e.v===D)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ke.has(t)||(t.f&2)!==0&&xi(t))return!0;return!1}function yt(e){var t=he;try{return he=!0,e()}finally{he=t}}var gr=Symbol("events"),ya=new Set,qi=new Set;function wa(e,t,r,n={}){function i(s){if(n.capture||en.call(t,s),!s.cancelBubble)return dt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?(i.__removed=!1,be(()=>{i.__removed||t.addEventListener(e,i,n)})):t.addEventListener(e,i,n),i}function ba(e,t,r,n,i){var s={capture:n,passive:i},a=wa(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&fi(()=>{a.__removed=!0,t.removeEventListener(e,a,s)})}var Zr=null,Qr=!1;function en(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Zr=e,Qr||(Qr=!0,setTimeout(()=>{Qr=!1,Zr=null}));var a=0,o=Zr===e&&e[gr];if(o){var f=i.indexOf(o);if(f!==-1&&(t===document||t===window)){e[gr]=t;return}var u=i.indexOf(t);if(u===-1)return;f<=u&&(a=f)}if(s=i[a]||e.target,s!==t){Tt(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=q,h=x;ue(null),Ee(null);try{for(var v,d=[];s!==null&&s!==t;){try{var w=s[gr]?.[n];w!=null&&(!s.disabled||e.target===s)&&w.call(s,e)}catch(m){v?d.push(m):v=m}if(e.cancelBubble)break;a++,s=a<i.length?i[a]:null}if(v){for(let m of d)queueMicrotask(()=>{throw m});throw v}}finally{e[gr]=t,delete e.currentTarget,ue(c),Ee(h)}}}var $a=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ka(e){return $a?.createHTML(e)??e}function Sa(e){var t=Vr("template");return t.innerHTML=ka(e.replaceAll("<!>","<!---->")),t.content}function wt(e,t){var r=x;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Oe(e,t){var r=(t&1)!==0,n=(t&2)!==0,i,s=!e.startsWith("<!>");return()=>{if(T)return wt(M,null),M;i===void 0&&(i=Sa(s?e:"<!>"+e),r||(i=ze(i)));var a=n||ii?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=ze(a),f=a.lastChild;wt(o,f)}else wt(a,a);return a}}function xa(){if(T)return wt(M,null),M;var e=document.createDocumentFragment(),t=document.createComment(""),r=ae();return e.append(t,r),wt(t,r),e}function J(e,t){if(T){var r=x;((r.f&32768)===0||r.nodes.end===null)&&(r.nodes.end=M),rr();return}e!==null&&e.before(t)}var qa=["touchstart","touchmove"];function Ea(e){return qa.includes(e)}function Ma(e){let t=0,r=tt(0),n;return()=>{Ur()&&(p(r),_r(()=>(t===0&&(n=yt(()=>e(()=>Bt(r)))),t+=1,()=>{be(()=>{t-=1,t===0&&(n?.(),n=void 0,Bt(r))})})))}}var Ta=Rr|ht;function Ra(e,t,r,n){new Aa(e,t,r,n)}var de=new WeakMap,tn=new WeakMap,Me=new WeakMap,Yt=new WeakMap,X=new WeakMap,_e=new WeakMap,Q=new WeakMap,pe=new WeakMap,He=new WeakMap,bt=new WeakMap,lt=new WeakMap,mr=new WeakMap,rn=new WeakMap,ot=new WeakMap,Ei=new WeakMap,O=new WeakSet,Aa=class{constructor(e,t,r,n){Nr(this,O),R(this,"parent",void 0),R(this,"is_pending",!1),R(this,"transform_error",void 0),S(this,de,void 0),S(this,tn,T?M:null),S(this,Me,void 0),S(this,Yt,void 0),S(this,X,void 0),S(this,_e,null),S(this,Q,null),S(this,pe,null),S(this,He,null),S(this,bt,0),S(this,lt,0),S(this,mr,!1),S(this,rn,new Map),S(this,ot,null),S(this,Ei,Ma(()=>($(ot,this,tt(l(bt,this))),()=>{$(ot,this,null)}))),$(de,this,e),$(Me,this,t),$(Yt,this,i=>{var s=x;s.b=this,s.f|=128,r(i)}),this.parent=x.b,this.transform_error=n??this.parent?.transform_error??(i=>i),$(X,this,Kr(()=>{if(T){const i=Or(l(tn,this));rr();const s=i==="[!";if(i.startsWith("[?")){const a=JSON.parse(i.slice(2));g(O,this,Ca).call(this,a)}else s?g(O,this,La).call(this):g(O,this,Oa).call(this)}else g(O,this,Ti).call(this)},Ta)),T&&$(de,this,M)}defer_effect(e){Nn(e,l(rn,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!l(Me,this).pending}update_pending_count(e,t){g(O,this,Ri).call(this,e,t),$(bt,this,l(bt,this)+e),!(!l(ot,this)||l(mr,this))&&($(mr,this,!0),be(()=>{$(mr,this,!1),l(ot,this)&>(l(ot,this),l(bt,this))}))}get_effect_pending(){return l(Ei,this).call(this),p(l(ot,this))}error(e){if(e===Ne||!l(Me,this).onerror&&!l(Me,this).failed)throw e;k?.is_fork?(l(_e,this)&&k.skip_effect(l(_e,this)),l(Q,this)&&k.skip_effect(l(Q,this)),l(pe,this)&&k.skip_effect(l(pe,this)),k.oncommit(()=>{g(O,this,ft).call(this)||g(O,this,Ai).call(this,e)})):g(O,this,Ai).call(this,e)}};function Oa(){try{$(_e,this,fe(()=>l(Yt,this).call(this,l(de,this))))}catch(e){this.error(e)}}function Ca(e){const t=l(Me,this).failed,{reset:r,invoke_onerror:n}=g(O,this,Mi).call(this,e);be(n),t&&$(pe,this,fe(()=>{t(l(de,this),()=>e,()=>r)}))}function Mi(e){var t=!1,r=!1;const n=()=>{if(!g(O,this,ft).call(this)){if(t){Rs();return}t=!0,r&&Hs(),l(pe,this)!==null&&it(l(pe,this),()=>{$(pe,this,null)}),g(O,this,nn).call(this,()=>{g(O,this,Ti).call(this)})}};return{reset:n,invoke_onerror:()=>{if(!g(O,this,ft).call(this))try{r=!0,l(Me,this).onerror?.(e,n),r=!1}catch(s){xe(s,l(X,this)&&l(X,this).parent)}}}}function ft(){return(l(X,this).f&(Mn|Tr))!==0}function La(){const e=l(Me,this).pending;e&&(this.is_pending=!0,$(Q,this,fe(()=>e(l(de,this)))),be(()=>{if(!g(O,this,ft).call(this)){var t=$(He,this,document.createDocumentFragment()),r=ae(),n=!1;if(t.append(r),$(_e,this,g(O,this,nn).call(this,()=>{try{return fe(()=>l(Yt,this).call(this,r))}catch(i){try{this.error(i),n=!0}catch(s){xe(s,l(X,this).parent)}return null}})),l(_e,this)===null){$(He,this,null),n&&g(O,this,yr).call(this,k);return}l(lt,this)===0&&(l(de,this).before(t),$(He,this,null),it(l(Q,this),()=>{$(Q,this,null)}),g(O,this,yr).call(this,k))}}))}function Ti(){try{if(this.is_pending=this.has_pending_snippet(),$(lt,this,0),$(bt,this,0),$(_e,this,fe(()=>{l(Yt,this).call(this,l(de,this))})),l(lt,this)>0){var e=$(He,this,document.createDocumentFragment());Xr(l(_e,this),e);const t=l(Me,this).pending;$(Q,this,fe(()=>t(l(de,this))))}else g(O,this,yr).call(this,k)}catch(t){this.error(t)}}function yr(e){this.is_pending=!1,e.transfer_reactions(l(rn,this))}function nn(e){var t=x,r=q,n=j;Ee(l(X,this)),ue(l(X,this)),vt(l(X,this).ctx);try{return et.ensure(),e()}finally{Ee(t),ue(r),vt(n)}}function Ri(e,t){if(!this.has_pending_snippet()){if(this.parent){var r;g(O,r=this.parent,Ri).call(r,e,t)}return}$(lt,this,l(lt,this)+e),l(lt,this)===0&&(g(O,this,yr).call(this,t),l(Q,this)&&it(l(Q,this),()=>{$(Q,this,null)}),l(He,this)&&(l(de,this).before(l(He,this)),$(He,this,null)))}function Ai(e){l(_e,this)&&(H(l(_e,this)),$(_e,this,null)),l(Q,this)&&(H(l(Q,this)),$(Q,this,null)),l(pe,this)&&(H(l(pe,this)),$(pe,this,null)),T&&(U(l(tn,this)),As(),U(nr()));let t=l(Me,this).failed;const r=n=>{if(g(O,this,ft).call(this))return;const{reset:i,invoke_onerror:s}=g(O,this,Mi).call(this,n);s(),t&&!g(O,this,ft).call(this)&&$(pe,this,g(O,this,nn).call(this,()=>{try{return fe(()=>{var a=x;a.b=this,a.f|=128,t(l(de,this),()=>n,()=>i)})}catch(a){return xe(a,l(X,this).parent),null}}))};be(()=>{if(!g(O,this,ft).call(this)){var n;try{n=this.transform_error(e)}catch(i){xe(i,l(X,this)&&l(X,this).parent);return}n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(r,i=>xe(i,l(X,this)&&l(X,this).parent)):r(n)}})}function ee(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e[er]??(e[er]=e.nodeValue))&&(e[er]=r,e.nodeValue=`${r}`)}function Oi(e,t){return Ci(e,t)}function Pa(e,t){Hr(),t.intro=t.intro??!1;const r=t.target,n=T,i=M;try{for(var s=ze(r);s&&(s.nodeType!==8||s.data!=="[");)s=Se(s);if(!s)throw Ne;Re(!0),U(s);const a=Ci(e,{...t,anchor:s});return Re(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Ne&&console.warn("Failed to hydrate: ",a),t.recover===!1&&js(),Hr(),li(r),Re(!1),Oi(e,t)}finally{Re(n),U(i)}}var wr=new Map;function Ci(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0,transformError:o}){Hr();var f=void 0,u=ca(()=>{var c=r??t.appendChild(ae());Ra(c,{pending:()=>{}},d=>{Ln({});var w=j;if(s&&(w.c=s),i&&(n.$$events=i),T&&wt(d,null),f=e(d,n)||Cr(),T&&(x.nodes.end=M,M===null||M.nodeType!==8||M.data!=="]"))throw tr(),Ne;Pn()},o);var h=new Set,v=d=>{for(var w=0;w<d.length;w++){var m=d[w];if(!h.has(m)){h.add(m);var _=Ea(m);for(const N of[t,document]){var b=wr.get(N);b===void 0&&(b=new Map,wr.set(N,b));var W=b.get(m);W===void 0?(N.addEventListener(m,en,{passive:_}),b.set(m,1)):b.set(m,W+1)}}}};return v(Xt(ya)),qi.add(v),()=>{for(var d of h)for(const _ of[t,document]){var w=wr.get(_),m=w.get(d);--m==0?(_.removeEventListener(d,en),w.delete(d),w.size===0&&wr.delete(_)):w.set(d,m)}qi.delete(v),c!==r&&c.parentNode?.removeChild(c)}});return sn.set(f,u),f}var sn=new WeakMap;function Wa(e,t){const r=sn.get(e);return r?(sn.delete(e),r(t)):Promise.resolve()}var Ce=new WeakMap,Ve=new WeakMap,ge=new WeakMap,Ut=new WeakMap,an=new WeakMap,ln=new WeakMap,Li=new WeakMap,Na=class{constructor(e,t=!0){R(this,"anchor",void 0),S(this,Ce,new Map),S(this,Ve,new Map),S(this,ge,new Map),S(this,Ut,new Set),S(this,an,!0),S(this,ln,r=>{if(l(Ce,this).has(r)){var n=l(Ce,this).get(r),i=l(Ve,this).get(n);if(i)pr(i),l(Ut,this).delete(n);else{var s=l(ge,this).get(n);s&&(pr(s.effect),l(Ve,this).set(n,s.effect),l(ge,this).delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[a,o]of l(Ce,this)){if(l(Ce,this).delete(a),a===r)break;const f=l(ge,this).get(o);f&&(H(f.effect),l(ge,this).delete(o))}for(const[a,o]of l(Ve,this)){if(a===n||l(Ut,this).has(a))continue;const f=()=>{if(Array.from(l(Ce,this).values()).includes(a)){var u=document.createDocumentFragment();Xr(o,u),u.append(ae()),l(ge,this).set(a,{effect:o,fragment:u})}else H(o);l(Ut,this).delete(a),l(Ve,this).delete(a)};l(an,this)||!i?(l(Ut,this).add(a),it(o,f,!1)):f()}}}),S(this,Li,r=>{l(Ce,this).delete(r);const n=Array.from(l(Ce,this).values());for(const[i,s]of l(ge,this))n.includes(i)||(H(s.effect),l(ge,this).delete(i))}),this.anchor=e,$(an,this,t)}ensure(e,t){var r=k,n=oi();if(t&&!l(Ve,this).has(e)&&!l(ge,this).has(e))if(n){var i=document.createDocumentFragment(),s=ae();i.append(s),l(ge,this).set(e,{effect:fe(()=>t(s)),fragment:i})}else l(Ve,this).set(e,fe(()=>t(this.anchor)));if(l(Ce,this).set(r,e),n){for(const[a,o]of l(Ve,this))a===e?r.unskip_effect(o):r.skip_effect(o);for(const[a,o]of l(ge,this))a===e?r.unskip_effect(o.effect):r.skip_effect(o.effect);r.oncommit(l(ln,this)),r.ondiscard(l(Li,this))}else T&&(this.anchor=M),l(ln,this).call(this,r)}};function Gt(e,t,r=!1){var n;T&&(n=M,rr());var i=new Na(e),s=r?Rr:0;function a(o,f){if(T){var u=Or(n);if(o!==parseInt(u.substring(1))){var c=nr();U(c),i.anchor=c,Re(!1),i.ensure(o,f),Re(!0);return}}i.ensure(o,f)}Kr(()=>{var o=!1;t((f,u=0)=>{o=!0,a(u,f)}),o||a(-1,null)},s)}function Ia(e,t){return t}function ja(e,t,r){for(var n=[],i=t.length,s,a=t.length,o=0;o<i;o++){let h=t[o];it(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var v=e.outrogroups;on(e,Xt(s.done)),v.delete(s),v.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var f=n.length===0&&r!==null&&e.pending.size===0;if(f){var u=r,c=u.parentNode;li(c),c.append(u),e.items.clear()}on(e,t,!f)}else s={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(s)}function on(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const a of e.pending.values())for(const o of a)n.add(e.items.get(o).e)}for(var i=0;i<t.length;i++){var s=t[i];n?.has(s)?(s.f|=At,Xr(s,document.createDocumentFragment())):H(t[i],r)}}var br;function Pi(e,t,r,n,i,s=null){var a=e,o=new Map;if((t&4)!==0){var f=e;a=T?U(ze(f)):f.appendChild(ae())}T&&rr();var u=null,c=Pr(()=>{var _=r();return Sn(_)?_:_==null?[]:Xt(_)}),h=new Map,v=!0;function d(_){if((m.effect.f&16384)===0){m.pending.delete(_);var b=p(c);m.fallback=u,Da(m,b,a,t,n),u!==null&&(b.length===0?(u.f&33554432)===0?pr(u):(u.f^=At,Jt(u,null,a)):it(u,()=>{u=null}))}}function w(_){m.pending.delete(_)}var m={effect:Kr(()=>{var _=p(c),b=_.length;let W=!1;T&&Or(a)==="[!"!=(b===0)&&(a=nr(),U(a),Re(!1),W=!0);for(var N=new Set,E=k,te=oi(),z=0;z<b;z+=1){T&&M.nodeType===8&&M.data==="]"&&(a=M,W=!0,Re(!1));var re=_[z],me=n(re,z),y=v?null:o.get(me);y?(y.v&>(y.v,re),y.i&>(y.i,z),te&&E.unskip_effect(y.e)):(y=za(o,v?a:br??(br=ae()),re,me,z,i,t,r),v||(y.e.f|=At),o.set(me,y)),N.add(me)}if(b===0&&s&&!u&&(v?u=fe(()=>s(a)):(u=fe(()=>s(br??(br=ae()))),u.f|=At)),b>N.size&&Ls("","",""),T&&b>0&&U(nr()),!v)if(h.set(E,N),te){for(const[P,Pe]of o)N.has(P)||E.skip_effect(Pe.e);E.oncommit(d),E.ondiscard(w)}else d(E);W&&Re(!0),p(c)}),flags:t,items:o,pending:h,outrogroups:null,fallback:u};v=!1,T&&(a=M)}function Kt(e){for(;e!==null&&(e.f&32)===0;)e=e.next;return e}function Da(e,t,r,n,i){var s=(n&8)!==0,a=t.length,o=e.items,f=Kt(e.effect.first),u,c=null,h,v=[],d=[],w,m,_,b;if(s)for(b=0;b<a;b+=1)w=t[b],m=i(w,b),_=o.get(m).e,(_.f&33554432)===0&&(_.nodes?.a?.measure(),(h??(h=new Set)).add(_));for(b=0;b<a;b+=1){if(w=t[b],m=i(w,b),_=o.get(m).e,e.outrogroups!==null)for(const P of e.outrogroups)P.pending.delete(_),P.done.delete(_);if((_.f&8192)!==0&&(pr(_),s&&(_.nodes?.a?.unfix(),(h??(h=new Set)).delete(_))),(_.f&33554432)!==0)if(_.f^=At,_===f)Jt(_,null,r);else{var W=c?c.next:f;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Ye(e,c,_),Ye(e,_,W),Jt(_,W,r),c=_,v=[],d=[],f=Kt(c.next);continue}if(_!==f){if(u!==void 0&&u.has(_)){if(v.length<d.length){var N=d[0],E;c=N.prev;var te=v[0],z=v[v.length-1];for(E=0;E<v.length;E+=1)Jt(v[E],N,r);for(E=0;E<d.length;E+=1)u.delete(d[E]);Ye(e,te.prev,z.next),Ye(e,c,te),Ye(e,z,N),f=N,c=z,b-=1,v=[],d=[]}else u.delete(_),Jt(_,f,r),Ye(e,_.prev,_.next),Ye(e,_,c===null?e.effect.first:c.next),Ye(e,c,_),c=_;continue}for(v=[],d=[];f!==null&&f!==_;)(u??(u=new Set)).add(f),d.push(f),f=Kt(f.next);if(f===null)continue}(_.f&33554432)===0&&v.push(_),c=_,f=Kt(_.next)}if(e.outrogroups!==null){for(const P of e.outrogroups)P.pending.size===0&&(on(e,Xt(P.done)),e.outrogroups?.delete(P));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||u!==void 0){var re=[];if(u!==void 0)for(_ of u)(_.f&8192)===0&&re.push(_);for(;f!==null;)(f.f&8192)===0&&f!==e.fallback&&re.push(f),f=Kt(f.next);var me=re.length;if(me>0){var y=(n&4)!==0&&a===0?r:null;if(s){for(b=0;b<me;b+=1)re[b].nodes?.a?.measure();for(b=0;b<me;b+=1)re[b].nodes?.a?.fix()}ja(e,re,y)}}s&&be(()=>{if(h!==void 0)for(_ of h)_.nodes?.a?.apply()})}function za(e,t,r,n,i,s,a,o){var f=(a&1)!==0?(a&16)===0?ti(r,!1,!1):tt(r):null,u=(a&2)!==0?tt(i):null;return{v:f,i:u,e:fe(()=>(s(t,f??r,u??i,o),()=>{e.delete(n)}))}}function Jt(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&(t.f&33554432)===0?t.nodes.start:r;n!==null;){var a=Se(n);if(s.before(n),n===i)return;n=a}}function Ye(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Fa(e,t){ci(()=>{e=x?.parent?.nodes?.start??e;var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=Vr("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}var Ba=Symbol("is custom element"),Ha=Symbol("is html"),Va=Ms?"link":"LINK";function Ya(e){if(T){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;Ue(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;Ue(e,"checked",null),e.checked=i}}};e[Ct]=r,be(r),jn()}}function Ue(e,t,r,n){var i=Ua(e);if(!(T&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Va))){var s=i[t];s!==(i[t]=r)&&(t==="loading"&&(e[xs]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ga(e).has(t)?e[t]=r:T&&(typeof r=="number"||typeof r=="boolean")&&s===String(r)||e.setAttribute(t,r))}}function Ua(e){return e[Ar]??(e[Ar]={[Ba]:e.nodeName.includes("-"),[Ha]:e.namespaceURI==="http://www.w3.org/1999/xhtml"})}var Wi=new Map;function Ga(e){var t=e.getAttribute("is")||e.nodeName,r=Wi.get(t);if(r)return r;Wi.set(t,r=new Set);for(var n,i=e,s=Element.prototype;s!==i;){n=ps(i);for(var a in n)n[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&r.add(a);i=xn(i)}return r}function Ka(e,t,r=t){var n=new WeakSet;Us(e,"input",async i=>{var s=i?e.defaultValue:e.value;if(s=fn(e)?un(s):s,r(s),k!==null&&n.add(k),await ma(),s!==(s=t())){var a=e.selectionStart,o=e.selectionEnd,f=e.value.length;if(e.value=s??"",o!==null){var u=e.value.length;a===o&&o===f&&u>f?(e.selectionStart=u,e.selectionEnd=u):(e.selectionStart=a,e.selectionEnd=Math.min(o,u))}}}),(T&&e.defaultValue!==e.value||yt(t)==null&&e.value)&&(r(fn(e)?un(e.value):e.value),k!==null&&n.add(k)),_r(()=>{var i=t();if(e===document.activeElement){var s=we?Xe:k;if(n.has(s))return}fn(e)&&i===un(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function fn(e){var t=e.type;return t==="number"||t==="range"}function un(e){return e===""?null:+e}var Ni,$t=new WeakMap,$r=new WeakMap,cn=new WeakMap,Ii=new WeakSet,ji=class{constructor(e){Nr(this,Ii),S(this,$t,new WeakMap),S(this,$r,void 0),S(this,cn,void 0),$(cn,this,e)}observe(e,t){var r=l($t,this).get(e)||new Set;return r.add(t),l($t,this).set(e,r),g(Ii,this,Ja).call(this).observe(e,l(cn,this)),()=>{var n=l($t,this).get(e);n.delete(t),n.size===0&&(l($t,this).delete(e),l($r,this).unobserve(e))}}};Ni=ji;function Ja(){return l($r,this)??$($r,this,new ResizeObserver(e=>{for(var t of e){Ni.entries.set(t.target,t);for(var r of l($t,this).get(t.target)||[])r(t)}}))}R(ji,"entries",new WeakMap);function hn(e,t){return e===t||e?.[Ot]===t}function Xa(e=Cr(),t,r,n){var i=j.r,s=x;return ci(()=>{var a,o;return _r(()=>{a=o,o=n?.()||[],yt(()=>{hn(r(...o),e)||(t(e,...o),a&&hn(r(...a),e)&&t(null,...a))})}),()=>{let f=s;for(;f!==i&&f.parent!==null&&f.parent.f&33554432;)f=f.parent;const u=()=>{o&&hn(r(...o),e)&&t(null,...o)},c=f.teardown;f.teardown=()=>{u(),c?.()}}}),e}var kr=!1;function Za(e){var t=kr;try{return kr=!1,[e(),kr]}finally{kr=t}}function Le(e,t,r,n){var i=!ir||(r&2)!==0,s=(r&8)!==0,a=(r&16)!==0,o=n,f=!0,u=void 0,c=()=>a&&i?(u??(u=Wt(n)),p(u)):(f&&(f=!1,o=a?yt(n):n),o);let h;if(s){var v=Ot in e||An in e;h=Ke(e,t)?.set??(v&&t in e?E=>e[t]=E:void 0)}var d,w=!1;s?[d,w]=Za(()=>e[t]):d=e[t],d===void 0&&n!==void 0&&(d=c(),h&&(i&&Ds(t),h(d)));var m;if(i?m=()=>{var E=e[t];return E===void 0?c():(f=!0,E)}:m=()=>{var E=e[t];return E!==void 0&&(o=void 0),E===void 0?o:E},i&&(r&4)===0)return m;if(h){var _=e.$$legacy;return(function(E,te){return arguments.length>0?((!i||!te||_||w)&&h(te?m():E),E):m()})}var b=!1,W=((r&1)!==0?Wt:Pr)(()=>(b=!1,m()));s&&p(W);var N=x;return(function(E,te){if(arguments.length>0){const z=te?p(W):i&&s?nt(E):E;return G(W,z),b=!0,o!==void 0&&(o=z),E}return Ae&&b||(N.f&16384)!==0?W.v:p(W)})}function Qa(e){return new el(e)}var ut=new WeakMap,Te=new WeakMap,el=class{constructor(e){S(this,ut,void 0),S(this,Te,void 0);var t=new Map,r=(i,s)=>{var a=ti(s,!1,!1);return t.set(i,a),a};const n=new Proxy({...e.props||{},$$events:{}},{get(i,s){return p(t.get(s)??r(s,Reflect.get(i,s)))},has(i,s){return s===An?!0:(p(t.get(s)??r(s,Reflect.get(i,s))),Reflect.has(i,s))},set(i,s,a){return G(t.get(s)??r(s,a),a),Reflect.set(i,s,a)}});$(Te,this,(e.hydrate?Pa:Oi)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError})),!we&&(!e?.props?.$$host||e.sync===!1)&&ie(),$(ut,this,n.$$events);for(const i of Object.keys(l(Te,this)))i==="$set"||i==="$destroy"||i==="$on"||Tt(this,i,{get(){return l(Te,this)[i]},set(s){l(Te,this)[i]=s},enumerable:!0});l(Te,this).$set=i=>{Object.assign(n,i)},l(Te,this).$destroy=()=>{Wa(l(Te,this))}}$set(e){l(Te,this).$set(e)}$on(e,t){l(ut,this)[e]=l(ut,this)[e]||[];const r=(...n)=>t.call(this,...n);return l(ut,this)[e].push(r),()=>{l(ut,this)[e]=l(ut,this)[e].filter(n=>n!==r)}}$destroy(){l(Te,this).$destroy()}},Di;typeof HTMLElement=="function"&&(Di=class extends HTMLElement{constructor(e,t,r){super(),R(this,"$$ctor",void 0),R(this,"$$s",void 0),R(this,"$$c",void 0),R(this,"$$cn",!1),R(this,"$$d",{}),R(this,"$$r",!1),R(this,"$$p_d",{}),R(this,"$$l",{}),R(this,"$$l_u",new Map),R(this,"$$me",void 0),R(this,"$$shadowRoot",null),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=Vr("slot");n!=="default"&&(s.name=n),J(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=tl(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Sr(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Qa({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ua(()=>{_r(()=>{this.$$r=!0;for(const n of Zt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Sr(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Sr(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Zt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Sr(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function tl(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function rl(e,t,r,n,i,s){let a=class extends Di{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Zt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Zt(t).forEach(o=>{Tt(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(f){f=Sr(o,f,t),this.$$d[o]=f;var u=this.$$c;u&&(Ke(u,o)?.get?u[o]=f:u.$set({[o]:f}))}})}),n.forEach(o=>{Tt(a.prototype,o,{get(){return this.$$c?.[o]}})}),s&&(a=s(a)),e.element=a,a}var zi="dictionary";function nl(e){if(!e||typeof e!="object")return null;const t=e,r=typeof t.word=="string"?t.word.trim():"";if(!r)return null;const n=Array.isArray(t.senses)?t.senses:[],i=[];for(const s of n){if(!s||typeof s!="object")continue;const a=s,o=typeof a.definition=="string"?a.definition.trim():"";o&&i.push({definition:o,partOfSpeech:typeof a.partOfSpeech=="string"?a.partOfSpeech:void 0,example:typeof a.example=="string"?a.example:void 0})}return i.length===0?null:{word:r,pronunciation:typeof t.pronunciation=="string"?t.pronunciation:void 0,senses:i}}function il(e){return hs(e,{serviceLabel:zi,keys:["entries"],toItem:nl})}function sl(e){return us({...e,serviceLabel:zi,readResponse:il})}var xr=Oe('<p class="pie-tool-dictionary__notice svelte-1qfqsgt"> </p>'),al=Oe('<p class="pie-tool-dictionary__error svelte-1qfqsgt" role="alert"> </p>'),ll=Oe('<span class="pie-tool-dictionary__pronunciation svelte-1qfqsgt"> </span>'),ol=Oe('<span class="pie-tool-dictionary__pos svelte-1qfqsgt"> </span>'),fl=Oe('<span class="pie-tool-dictionary__example svelte-1qfqsgt"> </span>'),ul=Oe('<li class="pie-tool-dictionary__sense svelte-1qfqsgt"><!> <span class="pie-tool-dictionary__definition"> </span> <!></li>'),cl=Oe('<li class="pie-tool-dictionary__entry svelte-1qfqsgt"><p class="pie-tool-dictionary__word svelte-1qfqsgt"> <!></p> <ol class="pie-tool-dictionary__senses svelte-1qfqsgt"></ol></li>'),hl=Oe('<ul class="pie-tool-dictionary__entries svelte-1qfqsgt"></ul>'),vl=Oe('<div class="pie-tool-dictionary svelte-1qfqsgt" role="dialog"><form class="pie-tool-dictionary__search svelte-1qfqsgt"><label class="pie-tool-dictionary__label svelte-1qfqsgt" for="pie-tool-dictionary-term"> </label> <div class="pie-tool-dictionary__row svelte-1qfqsgt"><input id="pie-tool-dictionary-term" class="pie-tool-dictionary__input svelte-1qfqsgt" type="text" autocomplete="off" spellcheck="false" dir="auto"/> <button class="pie-tool-dictionary__submit svelte-1qfqsgt" type="submit"> </button></div></form> <div class="pie-tool-dictionary__status svelte-1qfqsgt" role="status" aria-live="polite"> </div> <div class="pie-tool-dictionary__body svelte-1qfqsgt"><!></div></div>'),dl={hash:"svelte-1qfqsgt",code:`.pie-tool-dictionary.svelte-1qfqsgt {display:flex;flex-direction:column;gap:0.5rem;height:100%;min-height:0;padding:0.75rem;box-sizing:border-box;color:var(--pie-text, #1f2937);background:var(--pie-background, #fff);font-size:0.95rem;}.pie-tool-dictionary__search.svelte-1qfqsgt {display:flex;flex-direction:column;gap:0.25rem;}.pie-tool-dictionary__label.svelte-1qfqsgt {font-size:0.8rem;font-weight:600;}.pie-tool-dictionary__row.svelte-1qfqsgt {display:flex;gap:0.5rem;}.pie-tool-dictionary__input.svelte-1qfqsgt {flex:1 1 auto;min-width:0;padding:0.35rem 0.5rem;border:1px solid var(--pie-border-light, #e5e7eb);border-radius:0.375rem;background:var(--pie-background, #fff);color:inherit;font:inherit;}.pie-tool-dictionary__submit.svelte-1qfqsgt {flex:0 0 auto;padding:0.35rem 0.75rem;border:1px solid var(--pie-border-light, #e5e7eb);border-radius:0.375rem;background:var(--pie-secondary-background, #f9fafb);color:inherit;font:inherit;cursor:pointer;}.pie-tool-dictionary__submit.svelte-1qfqsgt:disabled {opacity:0.5;cursor:not-allowed;}
|
|
2552
3
|
|
|
2553
4
|
/* Visible focus is not optional: this panel is the keyboard route into the tool. */.pie-tool-dictionary__input.svelte-1qfqsgt:focus-visible,
|
|
2554
5
|
.pie-tool-dictionary__submit.svelte-1qfqsgt:focus-visible {outline:2px solid var(--pie-button-focus-outline, #2563eb);outline-offset:2px;}.pie-tool-dictionary__status.svelte-1qfqsgt {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}.pie-tool-dictionary__body.svelte-1qfqsgt {flex:1 1 auto;min-height:0;overflow-y:auto;}.pie-tool-dictionary__notice.svelte-1qfqsgt,
|
|
2555
6
|
.pie-tool-dictionary__error.svelte-1qfqsgt {margin:0.25rem 0;}.pie-tool-dictionary__entries.svelte-1qfqsgt,
|
|
2556
|
-
.pie-tool-dictionary__senses.svelte-1qfqsgt {margin:0;padding:0
|
|
2557
|
-
};
|
|
2558
|
-
function yo(e, t) {
|
|
2559
|
-
Gn(t, !0), Ha(e, go);
|
|
2560
|
-
let r = Ae(t, "visible", 7, !1), n = Ae(t, "toolId", 7, "dictionary"), i = Ae(t, "term", 7, ""), s = Ae(t, "termRequestId", 7, void 0), o = Ae(t, "endpoint", 7, ""), l = Ae(t, "language", 7, ""), u = Ae(t, "lookup", 7, void 0), v = Ae(t, "headers", 7, void 0), h = Ae(t, "credentials", 7, void 0), d = /* @__PURE__ */ ge(""), c = /* @__PURE__ */ ge(Je({ kind: "idle" }));
|
|
2561
|
-
const f = /* @__PURE__ */ $n(() => u() ?? (o() ? so({
|
|
2562
|
-
endpoint: o(),
|
|
2563
|
-
headers: v(),
|
|
2564
|
-
credentials: h()
|
|
2565
|
-
}) : null)), p = new rs({
|
|
2566
|
-
resolver: () => k(f),
|
|
2567
|
-
max: 6,
|
|
2568
|
-
language: () => l(),
|
|
2569
|
-
onState: (w) => {
|
|
2570
|
-
Q(c, w, !0);
|
|
2571
|
-
}
|
|
2572
|
-
});
|
|
2573
|
-
qn(() => {
|
|
2574
|
-
k(f), jt(() => p.syncConfigured(k(c)));
|
|
2575
|
-
}), qn(() => {
|
|
2576
|
-
const w = is(i()), R = s(), D = r();
|
|
2577
|
-
jt(() => {
|
|
2578
|
-
p.syncRequestedTerm({
|
|
2579
|
-
term: w,
|
|
2580
|
-
requestId: R,
|
|
2581
|
-
visible: D
|
|
2582
|
-
}) && Q(d, w, !0);
|
|
2583
|
-
});
|
|
2584
|
-
});
|
|
2585
|
-
function y(w) {
|
|
2586
|
-
w.preventDefault(), p.run(k(d));
|
|
2587
|
-
}
|
|
2588
|
-
const _ = /* @__PURE__ */ $n(() => as(k(c), {
|
|
2589
|
-
countLabel: (w) => `${w} ${w === 1 ? "entry" : "entries"}`,
|
|
2590
|
-
emptyLabel: (w) => `No dictionary entry for ${w}`
|
|
2591
|
-
}));
|
|
2592
|
-
var g = {
|
|
2593
|
-
get visible() {
|
|
2594
|
-
return r();
|
|
2595
|
-
},
|
|
2596
|
-
set visible(w = !1) {
|
|
2597
|
-
r(w), ae();
|
|
2598
|
-
},
|
|
2599
|
-
get toolId() {
|
|
2600
|
-
return n();
|
|
2601
|
-
},
|
|
2602
|
-
set toolId(w = "dictionary") {
|
|
2603
|
-
n(w), ae();
|
|
2604
|
-
},
|
|
2605
|
-
get term() {
|
|
2606
|
-
return i();
|
|
2607
|
-
},
|
|
2608
|
-
set term(w = "") {
|
|
2609
|
-
i(w), ae();
|
|
2610
|
-
},
|
|
2611
|
-
get termRequestId() {
|
|
2612
|
-
return s();
|
|
2613
|
-
},
|
|
2614
|
-
set termRequestId(w = void 0) {
|
|
2615
|
-
s(w), ae();
|
|
2616
|
-
},
|
|
2617
|
-
get endpoint() {
|
|
2618
|
-
return o();
|
|
2619
|
-
},
|
|
2620
|
-
set endpoint(w = "") {
|
|
2621
|
-
o(w), ae();
|
|
2622
|
-
},
|
|
2623
|
-
get language() {
|
|
2624
|
-
return l();
|
|
2625
|
-
},
|
|
2626
|
-
set language(w = "") {
|
|
2627
|
-
l(w), ae();
|
|
2628
|
-
},
|
|
2629
|
-
get lookup() {
|
|
2630
|
-
return u();
|
|
2631
|
-
},
|
|
2632
|
-
set lookup(w = void 0) {
|
|
2633
|
-
u(w), ae();
|
|
2634
|
-
},
|
|
2635
|
-
get headers() {
|
|
2636
|
-
return v();
|
|
2637
|
-
},
|
|
2638
|
-
set headers(w = void 0) {
|
|
2639
|
-
v(w), ae();
|
|
2640
|
-
},
|
|
2641
|
-
get credentials() {
|
|
2642
|
-
return h();
|
|
2643
|
-
},
|
|
2644
|
-
set credentials(w = void 0) {
|
|
2645
|
-
h(w), ae();
|
|
2646
|
-
}
|
|
2647
|
-
}, A = Sa(), N = ia(A), x = (w) => {
|
|
2648
|
-
var R = po(), D = je(R), ie = Ne(je(D), 2), He = je(ie);
|
|
2649
|
-
Ya(He);
|
|
2650
|
-
var F = Ne(He, 2);
|
|
2651
|
-
pe(ie), pe(D);
|
|
2652
|
-
var zt = Ne(D, 2), $r = Ce(zt, !0), cn = Ne(zt, 2), Bi = je(cn), Hi = (L) => {
|
|
2653
|
-
var B = ao();
|
|
2654
|
-
U(L, B);
|
|
2655
|
-
}, zi = (L) => {
|
|
2656
|
-
var B = oo();
|
|
2657
|
-
U(L, B);
|
|
2658
|
-
}, Ui = (L) => {
|
|
2659
|
-
var B = jn(), he = Ce(B);
|
|
2660
|
-
qe(() => Me(he, `Looking up “${k(c).term ?? ""}”…`)), U(L, B);
|
|
2661
|
-
}, Vi = (L) => {
|
|
2662
|
-
var B = jn(), he = Ce(B);
|
|
2663
|
-
qe(() => Me(he, `No entry for “${k(c).term ?? ""}”.`)), U(L, B);
|
|
2664
|
-
}, Yi = (L) => {
|
|
2665
|
-
var B = lo(), he = Ce(B, !0);
|
|
2666
|
-
qe(() => Me(he, k(c).reason)), U(L, B);
|
|
2667
|
-
}, Gi = (L) => {
|
|
2668
|
-
var B = _o();
|
|
2669
|
-
Nn(B, 21, () => k(c).items, (he) => he.word + he.senses.length, (he, Ut) => {
|
|
2670
|
-
var Sr = ho(), Er = je(Sr), dn = je(Er), Ki = Ne(dn), Xi = (mt) => {
|
|
2671
|
-
var Le = fo(), wt = Ce(Le, !0);
|
|
2672
|
-
qe(() => Me(wt, k(Ut).pronunciation)), U(mt, Le);
|
|
2673
|
-
};
|
|
2674
|
-
$t(Ki, (mt) => {
|
|
2675
|
-
k(Ut).pronunciation && mt(Xi);
|
|
2676
|
-
}), pe(Er);
|
|
2677
|
-
var vn = Ne(Er, 2);
|
|
2678
|
-
Nn(vn, 21, () => k(Ut).senses, ja, (mt, Le) => {
|
|
2679
|
-
var wt = vo(), hn = je(wt), Ji = (ze) => {
|
|
2680
|
-
var bt = uo(), xr = Ce(bt, !0);
|
|
2681
|
-
qe(() => Me(xr, k(Le).partOfSpeech)), U(ze, bt);
|
|
2682
|
-
};
|
|
2683
|
-
$t(hn, (ze) => {
|
|
2684
|
-
k(Le).partOfSpeech && ze(Ji);
|
|
2685
|
-
});
|
|
2686
|
-
var _n = Ne(hn, 2), Zi = Ce(_n, !0), Qi = Ne(_n, 2), es = (ze) => {
|
|
2687
|
-
var bt = co(), xr = Ce(bt);
|
|
2688
|
-
qe(() => Me(xr, `“${k(Le).example ?? ""}”`)), U(ze, bt);
|
|
2689
|
-
};
|
|
2690
|
-
$t(Qi, (ze) => {
|
|
2691
|
-
k(Le).example && ze(es);
|
|
2692
|
-
}), pe(wt), qe(() => Me(Zi, k(Le).definition)), U(mt, wt);
|
|
2693
|
-
}), pe(vn), pe(Sr), qe(() => Me(dn, `${k(Ut).word ?? ""} `)), U(he, Sr);
|
|
2694
|
-
}), pe(B), U(L, B);
|
|
2695
|
-
};
|
|
2696
|
-
$t(Bi, (L) => {
|
|
2697
|
-
k(c).kind === "unconfigured" ? L(Hi) : k(c).kind === "idle" ? L(zi, 1) : k(c).kind === "searching" ? L(Ui, 2) : k(c).kind === "empty" ? L(Vi, 3) : k(c).kind === "error" ? L(Yi, 4) : L(Gi, -1);
|
|
2698
|
-
}), pe(cn), pe(R), qe((L) => {
|
|
2699
|
-
Vr(R, "data-pie-tool-id", n()), He.disabled = k(c).kind === "unconfigured", F.disabled = L, Me($r, k(_));
|
|
2700
|
-
}, [() => k(c).kind === "unconfigured" || !k(d).trim()]), wa("submit", D, y), Xa(He, () => k(d), (L) => Q(d, L)), U(w, R);
|
|
2701
|
-
};
|
|
2702
|
-
return $t(N, (w) => {
|
|
2703
|
-
r() && w(x);
|
|
2704
|
-
}), U(e, A), Kn(g);
|
|
2705
|
-
}
|
|
2706
|
-
mo("pie-tool-dictionary", ro(yo, {
|
|
2707
|
-
visible: {
|
|
2708
|
-
attribute: "visible",
|
|
2709
|
-
type: "Boolean"
|
|
2710
|
-
},
|
|
2711
|
-
toolId: {
|
|
2712
|
-
attribute: "tool-id",
|
|
2713
|
-
type: "String"
|
|
2714
|
-
},
|
|
2715
|
-
term: {
|
|
2716
|
-
attribute: "term",
|
|
2717
|
-
type: "String"
|
|
2718
|
-
},
|
|
2719
|
-
endpoint: {
|
|
2720
|
-
attribute: "endpoint",
|
|
2721
|
-
type: "String"
|
|
2722
|
-
},
|
|
2723
|
-
language: {
|
|
2724
|
-
attribute: "language",
|
|
2725
|
-
type: "String"
|
|
2726
|
-
},
|
|
2727
|
-
termRequestId: {},
|
|
2728
|
-
lookup: {},
|
|
2729
|
-
headers: {},
|
|
2730
|
-
credentials: {}
|
|
2731
|
-
}, [], [], { mode: "open" }, ts));
|
|
2732
|
-
function mo(e, t) {
|
|
2733
|
-
customElements.get(e) || customElements.define(e, t);
|
|
2734
|
-
}
|
|
2735
|
-
export {
|
|
2736
|
-
yo as default
|
|
2737
|
-
};
|
|
7
|
+
.pie-tool-dictionary__senses.svelte-1qfqsgt {margin:0;padding:0;padding-inline-start:1.1rem;}.pie-tool-dictionary__entries.svelte-1qfqsgt {list-style:none;padding-inline-start:0;}.pie-tool-dictionary__entry.svelte-1qfqsgt + .pie-tool-dictionary__entry:where(.svelte-1qfqsgt) {margin-top:0.75rem;padding-top:0.75rem;border-top:1px solid var(--pie-border-light, #e5e7eb);}.pie-tool-dictionary__word.svelte-1qfqsgt {margin:0 0 0.25rem;font-weight:700;}.pie-tool-dictionary__pronunciation.svelte-1qfqsgt {margin-inline-start:0.4rem;font-weight:400;opacity:0.75;}.pie-tool-dictionary__sense.svelte-1qfqsgt {margin-bottom:0.35rem;}.pie-tool-dictionary__pos.svelte-1qfqsgt {margin-inline-end:0.3rem;font-style:italic;opacity:0.8;}.pie-tool-dictionary__example.svelte-1qfqsgt {display:block;opacity:0.8;}`};function Fi(e,t){Ln(t,!0),Fa(e,dl);let r=Le(t,"visible",7,!1),n=Le(t,"toolId",7,"dictionary"),i=Le(t,"term",7,""),s=Le(t,"termRequestId",7,void 0),a=Le(t,"endpoint",7,""),o=Le(t,"language",7,""),f=Le(t,"lookup",7,void 0),u=Le(t,"headers",7,void 0),c=Le(t,"credentials",7,void 0),h=se(""),v=se(nt({kind:"idle"})),d=se(null),w=se(null);const m=ar(()=>os(p(w)));Gr(()=>{const y=p(d);if(y)return ls(y,P=>{G(w,P,!0)})});const _=ar(()=>ds(o())),b=ar(()=>f()??(a()?sl({endpoint:a(),headers:u(),credentials:c()}):null)),W=new fs({resolver:()=>p(b),max:6,language:()=>o(),onState:y=>{G(v,y,!0)}});Gr(()=>{p(b),yt(()=>W.syncConfigured(p(v)))}),Gr(()=>{const y=cs(i()),P=s(),Pe=r();yt(()=>{W.syncRequestedTerm({term:y,requestId:P,visible:Pe})&&G(h,y,!0)})});function N(y){y.preventDefault(),W.run(p(h))}const E=ar(()=>vs(p(v),{countLabel:y=>p(m).plural?.("tools.dictionary.entriesCount",{count:y})??p(m).t("tools.dictionary.entriesCount",{count:y}),emptyLabel:y=>p(m).t("tools.dictionary.noEntryStatusFor",{term:y})}));var te={get visible(){return r()},set visible(y=!1){r(y),ie()},get toolId(){return n()},set toolId(y="dictionary"){n(y),ie()},get term(){return i()},set term(y=""){i(y),ie()},get termRequestId(){return s()},set termRequestId(y=void 0){s(y),ie()},get endpoint(){return a()},set endpoint(y=""){a(y),ie()},get language(){return o()},set language(y=""){o(y),ie()},get lookup(){return f()},set lookup(y=void 0){f(y),ie()},get headers(){return u()},set headers(y=void 0){u(y),ie()},get credentials(){return c()},set credentials(y=void 0){c(y),ie()}},z=xa(),re=aa(z),me=y=>{var P=vl(),Pe=Fe(P),vn=Fe(Pe),Hi=le(vn,!0),dn=Be(vn,2),ct=Fe(dn);Ya(ct);var _n=Be(ct,2),Vi=le(_n,!0);ye(dn),ye(Pe);var pn=Be(Pe,2),Yi=le(pn,!0),gn=Be(pn,2),Ui=Fe(gn),Gi=C=>{var L=xr(),F=le(L,!0);oe(V=>ee(F,V),[()=>p(m).t("tools.dictionary.notConfigured")]),J(C,L)},Ki=C=>{var L=xr(),F=le(L,!0);oe(V=>ee(F,V),[()=>p(m).t("tools.dictionary.idleHint")]),J(C,L)},Ji=C=>{var L=xr(),F=le(L,!0);oe(V=>ee(F,V),[()=>p(m).t("tools.dictionary.lookingUp",{term:p(v).term})]),J(C,L)},Xi=C=>{var L=xr(),F=le(L,!0);oe(V=>ee(F,V),[()=>p(m).t("tools.dictionary.noEntryFor",{term:p(v).term})]),J(C,L)},Zi=C=>{var L=al(),F=le(L,!0);oe(()=>ee(F,p(v).reason)),J(C,L)},Qi=C=>{var L=hl();Pi(L,21,()=>p(v).items,F=>F.word+F.senses.length,(F,V)=>{var kt=cl(),St=Fe(kt),mn=Fe(St),es=Be(mn),ts=xt=>{var We=ll(),qt=le(We,!0);oe(()=>ee(qt,p(V).pronunciation)),J(xt,We)};Gt(es,xt=>{p(V).pronunciation&&xt(ts)}),ye(St);var yn=Be(St,2);Pi(yn,21,()=>p(V).senses,Ia,(xt,We)=>{var qt=ul(),wn=Fe(qt),rs=Ge=>{var Et=ol(),qr=le(Et,!0);oe(()=>ee(qr,p(We).partOfSpeech)),J(Ge,Et)};Gt(wn,Ge=>{p(We).partOfSpeech&&Ge(rs)});var bn=Be(wn,2),ns=le(bn,!0),is=Be(bn,2),ss=Ge=>{var Et=fl(),qr=le(Et);oe(()=>ee(qr,`“${p(We).example??""}”`)),J(Ge,Et)};Gt(is,Ge=>{p(We).example&&Ge(ss)}),ye(qt),oe(()=>ee(ns,p(We).definition)),J(xt,qt)}),ye(yn),ye(kt),oe(()=>ee(mn,`${p(V).word??""} `)),J(F,kt)}),ye(L),oe(()=>{Ue(L,"lang",p(_).lang),Ue(L,"dir",p(_).dir),L.dir=L.dir}),J(C,L)};Gt(Ui,C=>{p(v).kind==="unconfigured"?C(Gi):p(v).kind==="idle"?C(Ki,1):p(v).kind==="searching"?C(Ji,2):p(v).kind==="empty"?C(Xi,3):p(v).kind==="error"?C(Zi,4):C(Qi,-1)}),ye(gn),ye(P),Xa(P,C=>G(d,C),()=>p(d)),oe((C,L,F,V,kt,St)=>{Ue(P,"data-pie-tool-id",n()),Ue(P,"aria-label",C),Ue(P,"lang",L),Ue(P,"dir",F),ee(Hi,V),ct.disabled=p(v).kind==="unconfigured",ct.dir=ct.dir,_n.disabled=kt,ee(Vi,St),ee(Yi,p(E)),P.dir=P.dir},[()=>p(m).t("tools.dictionary.name"),()=>p(m).getLocale(),()=>p(m).getDirection?.()??"ltr",()=>p(m).t("common.wordOrPhrase"),()=>p(v).kind==="unconfigured"||!p(h).trim(),()=>p(m).t("common.lookUp")]),ba("submit",Pe,N),Ka(ct,()=>p(h),C=>G(h,C)),J(y,P)};return Gt(re,y=>{r()&&y(me)}),J(e,z),Pn(te)}_l("pie-tool-dictionary",rl(Fi,{visible:{attribute:"visible",type:"Boolean"},toolId:{attribute:"tool-id",type:"String"},term:{attribute:"term",type:"String"},endpoint:{attribute:"endpoint",type:"String"},language:{attribute:"language",type:"String"},termRequestId:{},lookup:{},headers:{},credentials:{}},[],[],{mode:"open"},as));function _l(e,t){customElements.get(e)||customElements.define(e,t)}export{Fi as default};
|