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