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