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