@everymatrix/tournament-details 0.1.23 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{TournamentDetails-uWxiLqO7.cjs → TournamentDetails-CrSyTX0N.cjs} +7 -7
- package/components/{TournamentDetails-r33Uzhwi.cjs → TournamentDetails-DL8rGWYM.cjs} +7 -7
- package/components/{TournamentDetails-DItS_Ce1.js → TournamentDetails-DhUMGnjr.js} +904 -878
- package/components/{TournamentDetails-KeWpfUMg.js → TournamentDetails-rqIpT26P.js} +1767 -1741
- package/es2015/tournament-details.cjs +1 -1
- package/es2015/tournament-details.js +2 -2
- package/esnext/tournament-details.cjs +1 -1
- package/esnext/tournament-details.js +2 -2
- package/package.json +1 -1
|
@@ -5,27 +5,27 @@ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
|
5
5
|
} });
|
|
6
6
|
const la = "5";
|
|
7
7
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(la);
|
|
8
|
-
const fa = 2,
|
|
9
|
-
var ca = Array.isArray, da = Array.prototype.indexOf, Dr = Array.prototype.includes, va = Array.from, Lr = Object.keys,
|
|
8
|
+
const fa = 2, Bi = "[", Ni = "[!", ti = "[?", Hi = "]", Ft = {}, ye = Symbol("uninitialized"), ha = "http://www.w3.org/1999/xhtml", Ci = !1;
|
|
9
|
+
var ca = Array.isArray, da = Array.prototype.indexOf, Dr = Array.prototype.includes, va = Array.from, Lr = Object.keys, Vt = Object.defineProperty, jt = Object.getOwnPropertyDescriptor, pa = Object.getOwnPropertyDescriptors, ma = Object.prototype, ga = Array.prototype, Di = Object.getPrototypeOf, ri = Object.isExtensible;
|
|
10
10
|
const bt = () => {
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function Li(e) {
|
|
13
13
|
for (var t = 0; t < e.length; t++)
|
|
14
14
|
e[t]();
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Ii() {
|
|
17
17
|
var e, t, r = new Promise((n, i) => {
|
|
18
18
|
e = n, t = i;
|
|
19
19
|
});
|
|
20
20
|
return { promise: r, resolve: e, reject: t };
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const Se = 2, Wt = 4, gr = 8, Ri = 1 << 24, Ke = 16, et = 32, lt = 64, pn = 128, Gn = 256, $e = 512, be = 1024, pe = 2048, Ve = 4096, We = 8192, Le = 16384, Lt = 32768, mn = 1 << 25, Jt = 65536, Ir = 1 << 17, ya = 1 << 18, It = 1 << 19, zi = 1 << 20, Rr = 1 << 21, Xt = 1 << 22, St = 1 << 23, rn = Symbol("$state"), Gi = Symbol("component"), ba = Symbol("legacy props"), xa = Symbol(""), Ui = Symbol("attributes"), gn = Symbol("class"), yn = Symbol("style"), bn = Symbol("text"), yr = new class extends Error {
|
|
23
23
|
name = "StaleReactionError";
|
|
24
24
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
25
25
|
}(), wa = (
|
|
26
26
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
27
27
|
!!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
|
|
28
|
-
),
|
|
28
|
+
), Un = 3, jr = 8;
|
|
29
29
|
function Ea() {
|
|
30
30
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
31
31
|
}
|
|
@@ -42,20 +42,20 @@ function Yt(e) {
|
|
|
42
42
|
let de;
|
|
43
43
|
function ft(e) {
|
|
44
44
|
if (e === null)
|
|
45
|
-
throw Xr(),
|
|
45
|
+
throw Xr(), Ft;
|
|
46
46
|
return de = e;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function kn() {
|
|
49
49
|
return ft(/* @__PURE__ */ Pt(de));
|
|
50
50
|
}
|
|
51
51
|
function rt(e) {
|
|
52
52
|
if (ue) {
|
|
53
53
|
if (/* @__PURE__ */ Pt(de) !== null)
|
|
54
|
-
throw Xr(),
|
|
54
|
+
throw Xr(), Ft;
|
|
55
55
|
de = e;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function ki(e = 1) {
|
|
59
59
|
if (ue) {
|
|
60
60
|
for (var t = e, r = de; t--; )
|
|
61
61
|
r = /** @type {TemplateNode} */
|
|
@@ -63,17 +63,17 @@ function Ui(e = 1) {
|
|
|
63
63
|
de = r;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Yi(e = !0) {
|
|
67
67
|
for (var t = 0, r = de; ; ) {
|
|
68
68
|
if (r.nodeType === jr) {
|
|
69
69
|
var n = (
|
|
70
70
|
/** @type {Comment} */
|
|
71
71
|
r.data
|
|
72
72
|
);
|
|
73
|
-
if (n ===
|
|
73
|
+
if (n === Hi) {
|
|
74
74
|
if (t === 0) return r;
|
|
75
75
|
t -= 1;
|
|
76
|
-
} else (n ===
|
|
76
|
+
} else (n === Bi || n === Ni || // "[1", "[2", etc. for if blocks
|
|
77
77
|
n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
|
|
78
78
|
}
|
|
79
79
|
var i = (
|
|
@@ -85,22 +85,22 @@ function ki(e = !0) {
|
|
|
85
85
|
}
|
|
86
86
|
function Ma(e) {
|
|
87
87
|
if (!e || e.nodeType !== jr)
|
|
88
|
-
throw Xr(),
|
|
88
|
+
throw Xr(), Ft;
|
|
89
89
|
return (
|
|
90
90
|
/** @type {Comment} */
|
|
91
91
|
e.data
|
|
92
92
|
);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Zi(e) {
|
|
95
95
|
return e === this.v;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function ji(e, t) {
|
|
98
98
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
99
99
|
}
|
|
100
100
|
function Sa(e) {
|
|
101
|
-
return !
|
|
101
|
+
return !ji(e, this.v);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Xi(e) {
|
|
104
104
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
105
105
|
}
|
|
106
106
|
function Pa() {
|
|
@@ -133,13 +133,13 @@ function La() {
|
|
|
133
133
|
function Ia() {
|
|
134
134
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
135
135
|
}
|
|
136
|
-
let Ra = !1,
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
let Ra = !1, Me = null;
|
|
137
|
+
function Qt(e) {
|
|
138
|
+
Me = e;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
142
|
-
p:
|
|
140
|
+
function Yn(e, t = !1, r) {
|
|
141
|
+
Me = {
|
|
142
|
+
p: Me,
|
|
143
143
|
i: !1,
|
|
144
144
|
c: null,
|
|
145
145
|
e: null,
|
|
@@ -147,184 +147,59 @@ function kn(e, t = !1, r) {
|
|
|
147
147
|
x: null,
|
|
148
148
|
r: (
|
|
149
149
|
/** @type {Effect} */
|
|
150
|
-
|
|
150
|
+
W
|
|
151
151
|
),
|
|
152
152
|
l: null
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Zn(e) {
|
|
156
156
|
var t = (
|
|
157
157
|
/** @type {ComponentContext} */
|
|
158
|
-
|
|
158
|
+
Me
|
|
159
159
|
), r = t.e;
|
|
160
160
|
if (r !== null) {
|
|
161
161
|
t.e = null;
|
|
162
162
|
for (var n of r)
|
|
163
163
|
hs(n);
|
|
164
164
|
}
|
|
165
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
165
|
+
return e !== void 0 && (t.x = e), t.i = !0, Me = t.p, Fi(e);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
return
|
|
167
|
+
function Fi(e = {}) {
|
|
168
|
+
return Vt(e, Gi, { value: !0 }), e;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function Vi() {
|
|
171
171
|
return !0;
|
|
172
172
|
}
|
|
173
|
-
let
|
|
174
|
-
function
|
|
175
|
-
var e =
|
|
176
|
-
|
|
173
|
+
let Bt = [];
|
|
174
|
+
function Wi() {
|
|
175
|
+
var e = Bt;
|
|
176
|
+
Bt = [], Li(e);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
if (
|
|
180
|
-
var t =
|
|
178
|
+
function Nt(e) {
|
|
179
|
+
if (Bt.length === 0 && !lr) {
|
|
180
|
+
var t = Bt;
|
|
181
181
|
queueMicrotask(() => {
|
|
182
|
-
t ===
|
|
182
|
+
t === Bt && Wi();
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
-
|
|
185
|
+
Bt.push(e);
|
|
186
186
|
}
|
|
187
187
|
function za() {
|
|
188
|
-
for (;
|
|
189
|
-
|
|
188
|
+
for (; Bt.length > 0; )
|
|
189
|
+
Wi();
|
|
190
190
|
}
|
|
191
191
|
const Ga = -7169;
|
|
192
192
|
function ce(e, t) {
|
|
193
193
|
e.f = e.f & Ga | t;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
e.f &
|
|
197
|
-
}
|
|
198
|
-
function Wi(e) {
|
|
199
|
-
if (e !== null)
|
|
200
|
-
for (const t of e)
|
|
201
|
-
!(t.f & Te) || !(t.f & Ct) || (t.f ^= Ct, Wi(
|
|
202
|
-
/** @type {Derived} */
|
|
203
|
-
t.deps
|
|
204
|
-
));
|
|
195
|
+
function jn(e) {
|
|
196
|
+
e.f & $e || e.deps === null ? ce(e, be) : ce(e, Ve);
|
|
205
197
|
}
|
|
206
198
|
function Ji(e, t, r) {
|
|
207
|
-
e.f &
|
|
208
|
-
}
|
|
209
|
-
function jn(e, t, r) {
|
|
210
|
-
if (e == null)
|
|
211
|
-
return t(void 0), r && r(void 0), bt;
|
|
212
|
-
const n = Wr(
|
|
213
|
-
() => e.subscribe(
|
|
214
|
-
t,
|
|
215
|
-
// @ts-expect-error
|
|
216
|
-
r
|
|
217
|
-
)
|
|
218
|
-
);
|
|
219
|
-
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
220
|
-
}
|
|
221
|
-
const Ut = [];
|
|
222
|
-
function Ua(e, t) {
|
|
223
|
-
return {
|
|
224
|
-
subscribe: Fr(e, t).subscribe
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
function Fr(e, t = bt) {
|
|
228
|
-
let r = null;
|
|
229
|
-
const n = /* @__PURE__ */ new Set();
|
|
230
|
-
function i(o) {
|
|
231
|
-
if (Zi(e, o) && (e = o, r)) {
|
|
232
|
-
const u = !Ut.length;
|
|
233
|
-
for (const l of n)
|
|
234
|
-
l[1](), Ut.push(l, e);
|
|
235
|
-
if (u) {
|
|
236
|
-
for (let l = 0; l < Ut.length; l += 2)
|
|
237
|
-
Ut[l][0](Ut[l + 1]);
|
|
238
|
-
Ut.length = 0;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
function s(o) {
|
|
243
|
-
i(o(
|
|
244
|
-
/** @type {T} */
|
|
245
|
-
e
|
|
246
|
-
));
|
|
247
|
-
}
|
|
248
|
-
function a(o, u = bt) {
|
|
249
|
-
const l = [o, u];
|
|
250
|
-
return n.add(l), n.size === 1 && (r = t(i, s) || bt), o(
|
|
251
|
-
/** @type {T} */
|
|
252
|
-
e
|
|
253
|
-
), () => {
|
|
254
|
-
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
return { set: i, update: s, subscribe: a };
|
|
199
|
+
e.f & pe ? t.add(e) : e.f & Ve && r.add(e), ce(e, be);
|
|
258
200
|
}
|
|
259
|
-
function
|
|
260
|
-
|
|
261
|
-
if (!i.every(Boolean))
|
|
262
|
-
throw new Error("derived() expects stores as input, got a falsy value");
|
|
263
|
-
const s = t.length < 2;
|
|
264
|
-
return Ua(r, (a, o) => {
|
|
265
|
-
let u = !1;
|
|
266
|
-
const l = [];
|
|
267
|
-
let f = 0, h = bt;
|
|
268
|
-
const c = () => {
|
|
269
|
-
if (f)
|
|
270
|
-
return;
|
|
271
|
-
h();
|
|
272
|
-
const m = t(n ? l[0] : l, a, o);
|
|
273
|
-
s ? a(m) : h = typeof m == "function" ? m : bt;
|
|
274
|
-
}, v = i.map(
|
|
275
|
-
(m, I) => jn(
|
|
276
|
-
m,
|
|
277
|
-
(M) => {
|
|
278
|
-
l[I] = M, f &= ~(1 << I), u && c();
|
|
279
|
-
},
|
|
280
|
-
() => {
|
|
281
|
-
f |= 1 << I;
|
|
282
|
-
}
|
|
283
|
-
)
|
|
284
|
-
);
|
|
285
|
-
return u = !0, c(), function() {
|
|
286
|
-
Di(v), h(), u = !1;
|
|
287
|
-
};
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
function ka(e) {
|
|
291
|
-
let t;
|
|
292
|
-
return jn(e, (r) => t = r)(), t;
|
|
293
|
-
}
|
|
294
|
-
let xn = Symbol("unmounted");
|
|
295
|
-
function Ya(e, t, r) {
|
|
296
|
-
const n = r[t] ??= {
|
|
297
|
-
store: null,
|
|
298
|
-
source: /* @__PURE__ */ ns(void 0),
|
|
299
|
-
unsubscribe: bt
|
|
300
|
-
};
|
|
301
|
-
if (n.store !== e && !(xn in r))
|
|
302
|
-
if (n.unsubscribe(), n.store = e ?? null, e == null)
|
|
303
|
-
n.source.v = void 0, n.unsubscribe = bt;
|
|
304
|
-
else {
|
|
305
|
-
var i = !0;
|
|
306
|
-
n.unsubscribe = jn(e, (s) => {
|
|
307
|
-
i ? n.source.v = s : Fe(n.source, s);
|
|
308
|
-
}), i = !1;
|
|
309
|
-
}
|
|
310
|
-
return e && xn in r ? ka(e) : ve(n.source);
|
|
311
|
-
}
|
|
312
|
-
function Za() {
|
|
313
|
-
const e = {};
|
|
314
|
-
function t() {
|
|
315
|
-
fs(() => {
|
|
316
|
-
for (var r in e)
|
|
317
|
-
e[r].unsubscribe();
|
|
318
|
-
Wt(e, xn, {
|
|
319
|
-
enumerable: !1,
|
|
320
|
-
value: !0
|
|
321
|
-
});
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
return [e, t];
|
|
325
|
-
}
|
|
326
|
-
function Vr(e) {
|
|
327
|
-
var t = W, r = j;
|
|
201
|
+
function Fr(e) {
|
|
202
|
+
var t = V, r = W;
|
|
328
203
|
Je(null), ht(null);
|
|
329
204
|
try {
|
|
330
205
|
return e();
|
|
@@ -332,7 +207,7 @@ function Vr(e) {
|
|
|
332
207
|
Je(t), ht(r);
|
|
333
208
|
}
|
|
334
209
|
}
|
|
335
|
-
function
|
|
210
|
+
function Ua(e, t, r, n) {
|
|
336
211
|
const i = Ki;
|
|
337
212
|
var s = e.filter((v) => !v.settled), a = t.map(i);
|
|
338
213
|
if (r.length === 0 && s.length === 0) {
|
|
@@ -341,10 +216,10 @@ function ja(e, t, r, n) {
|
|
|
341
216
|
}
|
|
342
217
|
var o = (
|
|
343
218
|
/** @type {Effect} */
|
|
344
|
-
|
|
345
|
-
), u =
|
|
219
|
+
W
|
|
220
|
+
), u = ka(), l = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((v) => v.promise)) : null;
|
|
346
221
|
function f(v) {
|
|
347
|
-
if (!(o.f &
|
|
222
|
+
if (!(o.f & Le)) {
|
|
348
223
|
u();
|
|
349
224
|
try {
|
|
350
225
|
n([...a, ...v]);
|
|
@@ -360,31 +235,31 @@ function ja(e, t, r, n) {
|
|
|
360
235
|
return;
|
|
361
236
|
}
|
|
362
237
|
function c() {
|
|
363
|
-
Promise.all(r.map((v) => /* @__PURE__ */
|
|
238
|
+
Promise.all(r.map((v) => /* @__PURE__ */ Ya(v))).then(f).catch((v) => st(v, o)).finally(h);
|
|
364
239
|
}
|
|
365
240
|
l ? l.then(() => {
|
|
366
241
|
u(), c(), zr();
|
|
367
242
|
}) : c();
|
|
368
243
|
}
|
|
369
|
-
function
|
|
244
|
+
function ka() {
|
|
370
245
|
var e = (
|
|
371
246
|
/** @type {Effect} */
|
|
372
|
-
|
|
373
|
-
), t =
|
|
247
|
+
W
|
|
248
|
+
), t = V, r = Me, n = (
|
|
374
249
|
/** @type {Batch} */
|
|
375
250
|
$
|
|
376
251
|
);
|
|
377
252
|
return function(s = !0) {
|
|
378
|
-
ht(e), Je(t),
|
|
253
|
+
ht(e), Je(t), Qt(r), s && !(e.f & Le) && (n?.activate(), n?.apply());
|
|
379
254
|
};
|
|
380
255
|
}
|
|
381
256
|
function zr(e = !0) {
|
|
382
|
-
ht(null), Je(null),
|
|
257
|
+
ht(null), Je(null), Qt(null), e && $?.deactivate();
|
|
383
258
|
}
|
|
384
259
|
function Qi() {
|
|
385
260
|
var e = (
|
|
386
261
|
/** @type {Effect} */
|
|
387
|
-
|
|
262
|
+
W
|
|
388
263
|
), t = e.b, r = (
|
|
389
264
|
/** @type {Batch} */
|
|
390
265
|
$
|
|
@@ -395,12 +270,12 @@ function Qi() {
|
|
|
395
270
|
}
|
|
396
271
|
// @__NO_SIDE_EFFECTS__
|
|
397
272
|
function Ki(e) {
|
|
398
|
-
var t =
|
|
399
|
-
return
|
|
400
|
-
ctx:
|
|
273
|
+
var t = Se | pe;
|
|
274
|
+
return W !== null && (W.f |= It), {
|
|
275
|
+
ctx: Me,
|
|
401
276
|
deps: null,
|
|
402
277
|
effects: null,
|
|
403
|
-
equals:
|
|
278
|
+
equals: Zi,
|
|
404
279
|
f: t,
|
|
405
280
|
fn: e,
|
|
406
281
|
reactions: null,
|
|
@@ -410,16 +285,16 @@ function Ki(e) {
|
|
|
410
285
|
ye
|
|
411
286
|
),
|
|
412
287
|
wv: 0,
|
|
413
|
-
parent:
|
|
288
|
+
parent: W,
|
|
414
289
|
ac: null
|
|
415
290
|
};
|
|
416
291
|
}
|
|
417
|
-
const
|
|
292
|
+
const or = Symbol("obsolete");
|
|
418
293
|
// @__NO_SIDE_EFFECTS__
|
|
419
|
-
function
|
|
294
|
+
function Ya(e, t, r) {
|
|
420
295
|
let n = (
|
|
421
296
|
/** @type {Effect | null} */
|
|
422
|
-
|
|
297
|
+
W
|
|
423
298
|
);
|
|
424
299
|
n === null && Pa();
|
|
425
300
|
var i = (
|
|
@@ -429,12 +304,12 @@ function Fa(e, t, r) {
|
|
|
429
304
|
), s = br(
|
|
430
305
|
/** @type {V} */
|
|
431
306
|
ye
|
|
432
|
-
), a = !
|
|
433
|
-
return
|
|
307
|
+
), a = !V, o = /* @__PURE__ */ new Set();
|
|
308
|
+
return to(() => {
|
|
434
309
|
var u = (
|
|
435
310
|
/** @type {Effect} */
|
|
436
|
-
|
|
437
|
-
), l =
|
|
311
|
+
W
|
|
312
|
+
), l = Ii();
|
|
438
313
|
i = l.promise;
|
|
439
314
|
try {
|
|
440
315
|
Promise.resolve(e()).then(l.resolve, (v) => {
|
|
@@ -454,19 +329,19 @@ function Fa(e, t, r) {
|
|
|
454
329
|
// boundary can be null if the async derived is inside an $effect.root not connected to the component render tree
|
|
455
330
|
n.b?.is_rendered()
|
|
456
331
|
)
|
|
457
|
-
f.async_deriveds.get(u)?.reject(
|
|
332
|
+
f.async_deriveds.get(u)?.reject(or);
|
|
458
333
|
else
|
|
459
334
|
for (const v of o.values())
|
|
460
|
-
v.reject(
|
|
335
|
+
v.reject(or);
|
|
461
336
|
o.add(l), f.async_deriveds.set(u, l);
|
|
462
337
|
}
|
|
463
338
|
const c = (v, m = void 0) => {
|
|
464
|
-
h?.(), o.delete(l), m !==
|
|
339
|
+
h?.(), o.delete(l), m !== or && (f.activate(), m ? (s.f |= St, Ur(s, m)) : (s.f & St && (s.f ^= St), Ur(s, v)), f.deactivate());
|
|
465
340
|
};
|
|
466
341
|
l.promise.then(c, (v) => c(null, v || "unknown"));
|
|
467
342
|
}), fs(() => {
|
|
468
343
|
for (const u of o)
|
|
469
|
-
u.reject(
|
|
344
|
+
u.reject(or);
|
|
470
345
|
}), new Promise((u) => {
|
|
471
346
|
function l(f) {
|
|
472
347
|
function h() {
|
|
@@ -477,25 +352,25 @@ function Fa(e, t, r) {
|
|
|
477
352
|
l(i);
|
|
478
353
|
});
|
|
479
354
|
}
|
|
480
|
-
function
|
|
355
|
+
function Za(e) {
|
|
481
356
|
var t = e.effects;
|
|
482
357
|
if (t !== null) {
|
|
483
358
|
e.effects = null;
|
|
484
359
|
for (var r = 0; r < t.length; r += 1)
|
|
485
|
-
|
|
360
|
+
Ie(
|
|
486
361
|
/** @type {Effect} */
|
|
487
362
|
t[r]
|
|
488
363
|
);
|
|
489
364
|
}
|
|
490
365
|
}
|
|
491
366
|
function Xn(e) {
|
|
492
|
-
var t, r =
|
|
367
|
+
var t, r = W, n = e.parent;
|
|
493
368
|
if (!wt && n !== null && e.v !== ye && // if it was never evaluated before, it's guaranteed to fail downstream, so we try to execute instead
|
|
494
|
-
n.f & (
|
|
369
|
+
n.f & (Le | We))
|
|
495
370
|
return Ea(), e.v;
|
|
496
371
|
ht(n);
|
|
497
372
|
try {
|
|
498
|
-
|
|
373
|
+
Za(e), t = Es(e);
|
|
499
374
|
} finally {
|
|
500
375
|
ht(r);
|
|
501
376
|
}
|
|
@@ -503,29 +378,29 @@ function Xn(e) {
|
|
|
503
378
|
}
|
|
504
379
|
function qi(e) {
|
|
505
380
|
var t = Xn(e);
|
|
506
|
-
if (!e.equals(t) && (e.wv = xs(), (!$?.is_fork || e.deps === null) && ($ !== null ? ($.capture(e, t, !0),
|
|
381
|
+
if (!e.equals(t) && (e.wv = xs(), (!$?.is_fork || e.deps === null) && ($ !== null ? ($.capture(e, t, !0), xn?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
507
382
|
ce(e, be);
|
|
508
383
|
return;
|
|
509
384
|
}
|
|
510
|
-
wt || (qe !== null ? (Jn() || $?.is_fork) && qe.set(e, t) :
|
|
385
|
+
wt || (qe !== null ? (Jn() || $?.is_fork) && qe.set(e, t) : jn(e));
|
|
511
386
|
}
|
|
512
|
-
function
|
|
387
|
+
function ja(e) {
|
|
513
388
|
if (e.effects !== null)
|
|
514
389
|
for (const t of e.effects)
|
|
515
|
-
(t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
390
|
+
(t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Fr(() => {
|
|
516
391
|
t.ac.abort(yr), t.ac = null;
|
|
517
392
|
}), t.fn !== null && (t.teardown = bt), vr(t, 0), Qn(t));
|
|
518
393
|
}
|
|
519
394
|
function _i(e) {
|
|
520
395
|
if (e.effects !== null)
|
|
521
396
|
for (const t of e.effects)
|
|
522
|
-
t.teardown && t.fn !== null &&
|
|
397
|
+
t.teardown && t.fn !== null && Kt(t);
|
|
523
398
|
}
|
|
524
|
-
let nn = null,
|
|
525
|
-
var
|
|
526
|
-
let
|
|
399
|
+
let nn = null, Ut = null, $ = null, xn = null, qe = null, wn = null, lr = !1, sn = !1, fr = null, Ar = null;
|
|
400
|
+
var ni = 0;
|
|
401
|
+
let Xa = 1;
|
|
527
402
|
class xt {
|
|
528
|
-
id =
|
|
403
|
+
id = Xa++;
|
|
529
404
|
/** True as soon as `#process` was called */
|
|
530
405
|
#e = !1;
|
|
531
406
|
linked = !0;
|
|
@@ -575,7 +450,14 @@ class xt {
|
|
|
575
450
|
*/
|
|
576
451
|
#o = null;
|
|
577
452
|
/**
|
|
578
|
-
*
|
|
453
|
+
* Effects that were scheduled in this batch but not yet 'resolved' into the
|
|
454
|
+
* root effects that need to be flushed. Resolving — the upwards traversal that
|
|
455
|
+
* marks the path to each effect on the shared effect tree (see #resolve) — is
|
|
456
|
+
* deferred until the batch is processed, so that the markers are created and
|
|
457
|
+
* consumed within a single traversal. Scheduling into other batches (which can
|
|
458
|
+
* happen concurrently, e.g. while a batch is committed) can therefore never
|
|
459
|
+
* observe (and be confused by) this batch's markers.
|
|
460
|
+
* May contain duplicates — deduplication happens during resolving
|
|
579
461
|
* @type {Effect[]}
|
|
580
462
|
*/
|
|
581
463
|
#s = [];
|
|
@@ -583,7 +465,7 @@ class xt {
|
|
|
583
465
|
* Effects created while this batch was active.
|
|
584
466
|
* @type {Effect[]}
|
|
585
467
|
*/
|
|
586
|
-
#
|
|
468
|
+
#v = [];
|
|
587
469
|
/**
|
|
588
470
|
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
589
471
|
* @type {Set<Effect>}
|
|
@@ -610,7 +492,7 @@ class xt {
|
|
|
610
492
|
is_fork = !1;
|
|
611
493
|
#h = !1;
|
|
612
494
|
constructor() {
|
|
613
|
-
|
|
495
|
+
Ut === null ? nn = Ut = this : (Ut.#r = this, this.#t = Ut), Ut = this;
|
|
614
496
|
}
|
|
615
497
|
#b() {
|
|
616
498
|
if (this.is_fork) return !0;
|
|
@@ -645,60 +527,90 @@ class xt {
|
|
|
645
527
|
if (n) {
|
|
646
528
|
this.#c.delete(t);
|
|
647
529
|
for (var i of n.d)
|
|
648
|
-
ce(i,
|
|
530
|
+
ce(i, pe), r(i);
|
|
649
531
|
for (i of n.m)
|
|
650
|
-
ce(i,
|
|
532
|
+
ce(i, Ve), r(i);
|
|
651
533
|
}
|
|
652
534
|
this.#m.add(t);
|
|
653
535
|
}
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
536
|
+
/**
|
|
537
|
+
* Convert the effects that were scheduled in this batch into the root effects
|
|
538
|
+
* that need to be traversed, marking the path to each effect (by clearing the
|
|
539
|
+
* `CLEAN` flag on ancestor branches) so that the traversal can find them.
|
|
540
|
+
* This happens right before traversal rather than at scheduling time, so that
|
|
541
|
+
* the markers left on the (shared) effect tree are created and consumed within
|
|
542
|
+
* a single traversal — scheduling into other batches can never observe them
|
|
543
|
+
* @returns {Effect[]}
|
|
544
|
+
*/
|
|
545
|
+
#x() {
|
|
546
|
+
var t = [];
|
|
547
|
+
for (const s of this.#s)
|
|
548
|
+
if (!(s.f & Le || !(s.f & (pe | Ve)))) {
|
|
549
|
+
for (var r = s, n = !1; r.parent !== null; ) {
|
|
550
|
+
r = r.parent;
|
|
551
|
+
var i = r.f;
|
|
552
|
+
if (i & (lt | et)) {
|
|
553
|
+
if (!(i & be)) {
|
|
554
|
+
n = !0;
|
|
555
|
+
break;
|
|
556
|
+
}
|
|
557
|
+
r.f ^= be;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
n || t.push(r);
|
|
668
561
|
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
562
|
+
return this.#s = [], t;
|
|
563
|
+
}
|
|
564
|
+
#g() {
|
|
565
|
+
this.#e = !0;
|
|
566
|
+
for (const o of this.#l)
|
|
567
|
+
this.#f.delete(o), ce(o, pe), this.schedule(o);
|
|
568
|
+
for (const o of this.#f)
|
|
569
|
+
ce(o, Ve), this.schedule(o);
|
|
570
|
+
this.apply();
|
|
571
|
+
for (var t = fr = [], r = [], n = Ar = []; this.#s.length > 0; ) {
|
|
572
|
+
ni++ > 1e3 && (this.#p(), Fa());
|
|
573
|
+
for (const o of this.#x())
|
|
574
|
+
try {
|
|
575
|
+
this.#y(o, t, r);
|
|
576
|
+
} catch (u) {
|
|
577
|
+
throw ts(o), this.#b() || this.discard(), u;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
if ($ = null, n.length > 0) {
|
|
581
|
+
var i = xt.ensure();
|
|
582
|
+
for (const o of n)
|
|
583
|
+
i.schedule(o);
|
|
673
584
|
}
|
|
674
|
-
if (
|
|
675
|
-
this.#d(
|
|
676
|
-
for (const [
|
|
677
|
-
es(
|
|
678
|
-
|
|
585
|
+
if (fr = null, Ar = null, this.#b()) {
|
|
586
|
+
this.#d(r), this.#d(t);
|
|
587
|
+
for (const [o, u] of this.#c)
|
|
588
|
+
es(o, u);
|
|
589
|
+
n.length > 0 && /** @type {unknown} */
|
|
679
590
|
$.#g();
|
|
680
591
|
return;
|
|
681
592
|
}
|
|
682
|
-
const
|
|
683
|
-
if (
|
|
684
|
-
this.#d(
|
|
593
|
+
const s = this.#T();
|
|
594
|
+
if (s) {
|
|
595
|
+
this.#d(r), this.#d(t), s.#w(this);
|
|
685
596
|
return;
|
|
686
597
|
}
|
|
687
598
|
this.#l.clear(), this.#f.clear();
|
|
688
|
-
for (const
|
|
689
|
-
this.#u.clear(),
|
|
690
|
-
var
|
|
599
|
+
for (const o of this.#u) o(this);
|
|
600
|
+
this.#u.clear(), xn = this, ii(r), ii(t), xn = null, this.#o?.resolve();
|
|
601
|
+
var a = (
|
|
691
602
|
/** @type {Batch | null} */
|
|
692
603
|
/** @type {unknown} */
|
|
693
604
|
$
|
|
694
605
|
);
|
|
695
|
-
if (this.#a === 0 && (this.#s.length === 0 ||
|
|
696
|
-
if (
|
|
697
|
-
const
|
|
698
|
-
|
|
606
|
+
if (this.#a === 0 && (this.#s.length === 0 || a !== null) && this.#p(), this.#s.length > 0)
|
|
607
|
+
if (a !== null) {
|
|
608
|
+
for (const o of this.#s)
|
|
609
|
+
a.#s.push(o);
|
|
610
|
+
this.#s = [];
|
|
699
611
|
} else
|
|
700
|
-
|
|
701
|
-
|
|
612
|
+
a = this;
|
|
613
|
+
a !== null && (ot.clear(), a.#g());
|
|
702
614
|
}
|
|
703
615
|
/**
|
|
704
616
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -707,12 +619,12 @@ class xt {
|
|
|
707
619
|
* @param {Effect[]} effects
|
|
708
620
|
* @param {Effect[]} render_effects
|
|
709
621
|
*/
|
|
710
|
-
#
|
|
622
|
+
#y(t, r, n) {
|
|
711
623
|
t.f ^= be;
|
|
712
624
|
for (var i = t.first; i !== null; ) {
|
|
713
625
|
var s = i.f, a = (s & (et | lt)) !== 0, o = a && (s & be) !== 0, u = o || (s & We) !== 0 || this.#c.has(i);
|
|
714
626
|
if (!u && i.fn !== null) {
|
|
715
|
-
a ? i.f ^= be : s &
|
|
627
|
+
a ? i.f ^= be : s & Wt ? r.push(i) : xr(i) && (s & Ke && this.#f.add(i), Kt(i));
|
|
716
628
|
var l = i.first;
|
|
717
629
|
if (l !== null) {
|
|
718
630
|
i = l;
|
|
@@ -729,7 +641,7 @@ class xt {
|
|
|
729
641
|
}
|
|
730
642
|
}
|
|
731
643
|
}
|
|
732
|
-
#
|
|
644
|
+
#T() {
|
|
733
645
|
for (var t = this.#t; t !== null; ) {
|
|
734
646
|
if (!t.is_fork) {
|
|
735
647
|
for (const [r, [, n]] of this.current)
|
|
@@ -743,7 +655,7 @@ class xt {
|
|
|
743
655
|
/**
|
|
744
656
|
* @param {Batch} batch
|
|
745
657
|
*/
|
|
746
|
-
#
|
|
658
|
+
#w(t) {
|
|
747
659
|
for (const [n, i] of t.current)
|
|
748
660
|
!this.previous.has(n) && t.previous.has(n) && this.previous.set(n, t.previous.get(n)), this.current.set(n, i);
|
|
749
661
|
for (const [n, i] of t.async_deriveds) {
|
|
@@ -753,10 +665,10 @@ class xt {
|
|
|
753
665
|
t.async_deriveds.clear(), this.transfer_effects(t.#l, t.#f);
|
|
754
666
|
const r = (n) => {
|
|
755
667
|
var i = n.reactions;
|
|
756
|
-
if (i !== null && !(n.f &
|
|
668
|
+
if (i !== null && !(n.f & Se && !(n.f & (pe | Ve))))
|
|
757
669
|
for (const o of i) {
|
|
758
670
|
var s = o.f;
|
|
759
|
-
if (s &
|
|
671
|
+
if (s & Se)
|
|
760
672
|
r(
|
|
761
673
|
/** @type {Derived} */
|
|
762
674
|
o
|
|
@@ -766,13 +678,13 @@ class xt {
|
|
|
766
678
|
/** @type {Effect} */
|
|
767
679
|
o
|
|
768
680
|
);
|
|
769
|
-
s & (
|
|
681
|
+
s & (Xt | Ke) && !this.async_deriveds.has(a) && (this.#f.delete(a), ce(a, pe), this.schedule(a));
|
|
770
682
|
}
|
|
771
683
|
}
|
|
772
684
|
};
|
|
773
685
|
for (const n of this.current.keys())
|
|
774
686
|
r(n);
|
|
775
|
-
this.oncommit(() => t.discard()), t.#
|
|
687
|
+
this.oncommit(() => t.discard()), t.#p(), $ = this, this.#g();
|
|
776
688
|
}
|
|
777
689
|
/**
|
|
778
690
|
* @param {Effect[]} effects
|
|
@@ -801,23 +713,23 @@ class xt {
|
|
|
801
713
|
try {
|
|
802
714
|
sn = !0, $ = this, this.#g();
|
|
803
715
|
} finally {
|
|
804
|
-
|
|
716
|
+
ni = 0, wn = null, fr = null, Ar = null, sn = !1, $ = null, qe = null, ot.clear();
|
|
805
717
|
}
|
|
806
718
|
}
|
|
807
719
|
discard() {
|
|
808
720
|
for (const t of this.#i) t(this);
|
|
809
721
|
this.#i.clear();
|
|
810
722
|
for (const t of this.async_deriveds.values())
|
|
811
|
-
t.reject(
|
|
812
|
-
this.#
|
|
723
|
+
t.reject(or);
|
|
724
|
+
this.#p(), this.#o?.resolve();
|
|
813
725
|
}
|
|
814
726
|
/**
|
|
815
727
|
* @param {Effect} effect
|
|
816
728
|
*/
|
|
817
729
|
register_created_effect(t) {
|
|
818
|
-
this.#
|
|
730
|
+
this.#v.push(t);
|
|
819
731
|
}
|
|
820
|
-
#
|
|
732
|
+
#E() {
|
|
821
733
|
for (let h = nn; h !== null; h = h.#r) {
|
|
822
734
|
var t = h.id < this.id, r = [];
|
|
823
735
|
for (const [c, [v, m]] of this.current) {
|
|
@@ -850,7 +762,7 @@ class xt {
|
|
|
850
762
|
if (t)
|
|
851
763
|
for (const c of this.#m)
|
|
852
764
|
h.unskip_effect(c, (v) => {
|
|
853
|
-
v.f & (Ke |
|
|
765
|
+
v.f & (Ke | Xt) ? h.schedule(v) : h.#d([v]);
|
|
854
766
|
});
|
|
855
767
|
h.activate();
|
|
856
768
|
var a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
@@ -862,13 +774,12 @@ class xt {
|
|
|
862
774
|
return m ? m[0] !== v[0] || m[1] !== v[1] : !0;
|
|
863
775
|
}).map(([c]) => c);
|
|
864
776
|
if (l.length > 0)
|
|
865
|
-
for (const c of this.#
|
|
866
|
-
!(c.f & (
|
|
777
|
+
for (const c of this.#v)
|
|
778
|
+
!(c.f & (Le | We | Ir)) && Fn(c, l, o) && (c.f & (Xt | Ke) ? (ce(c, pe), h.schedule(c)) : h.#l.add(c));
|
|
867
779
|
if (h.#s.length > 0 && !h.#h) {
|
|
868
780
|
h.apply();
|
|
869
|
-
for (var f of h.#
|
|
870
|
-
h.#
|
|
871
|
-
h.#s = [];
|
|
781
|
+
for (var f of h.#x())
|
|
782
|
+
h.#y(f, [], []);
|
|
872
783
|
}
|
|
873
784
|
h.deactivate();
|
|
874
785
|
}
|
|
@@ -894,7 +805,7 @@ class xt {
|
|
|
894
805
|
let n = this.#n.get(r) ?? 0;
|
|
895
806
|
n === 1 ? this.#n.delete(r) : this.#n.set(r, n - 1);
|
|
896
807
|
}
|
|
897
|
-
this.#h || (this.#h = !0,
|
|
808
|
+
this.#h || (this.#h = !0, Nt(() => {
|
|
898
809
|
this.#h = !1, this.linked && this.flush();
|
|
899
810
|
}));
|
|
900
811
|
}
|
|
@@ -918,12 +829,12 @@ class xt {
|
|
|
918
829
|
this.#i.add(t);
|
|
919
830
|
}
|
|
920
831
|
settled() {
|
|
921
|
-
return (this.#o ??=
|
|
832
|
+
return (this.#o ??= Ii()).promise;
|
|
922
833
|
}
|
|
923
834
|
static ensure() {
|
|
924
835
|
if ($ === null) {
|
|
925
836
|
const t = $ = new xt();
|
|
926
|
-
!sn && !
|
|
837
|
+
!sn && !lr && Nt(() => {
|
|
927
838
|
t.#e || t.flush();
|
|
928
839
|
});
|
|
929
840
|
}
|
|
@@ -940,33 +851,22 @@ class xt {
|
|
|
940
851
|
* @param {Effect} effect
|
|
941
852
|
*/
|
|
942
853
|
schedule(t) {
|
|
943
|
-
if (
|
|
854
|
+
if (wn = t, t.b?.is_pending && t.f & (Wt | gr | Ri) && !(t.f & Lt)) {
|
|
944
855
|
t.b.defer_effect(t);
|
|
945
856
|
return;
|
|
946
857
|
}
|
|
947
|
-
|
|
948
|
-
r = r.parent;
|
|
949
|
-
var n = r.f;
|
|
950
|
-
if (Zt !== null && r === j && (W === null || !(W.f & Te)))
|
|
951
|
-
return;
|
|
952
|
-
if (n & (lt | et)) {
|
|
953
|
-
if (!(n & be))
|
|
954
|
-
return;
|
|
955
|
-
r.f ^= be;
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
this.#s.push(r);
|
|
858
|
+
this.#s.push(t);
|
|
959
859
|
}
|
|
960
|
-
#
|
|
860
|
+
#p() {
|
|
961
861
|
if (this.linked) {
|
|
962
862
|
var t = this.#t, r = this.#r;
|
|
963
|
-
t === null ? nn = r : t.#r = r, r === null ?
|
|
863
|
+
t === null ? nn = r : t.#r = r, r === null ? Ut = t : r.#t = t, this.linked = !1;
|
|
964
864
|
}
|
|
965
865
|
}
|
|
966
866
|
}
|
|
967
867
|
function yt(e) {
|
|
968
|
-
var t =
|
|
969
|
-
|
|
868
|
+
var t = lr;
|
|
869
|
+
lr = !0;
|
|
970
870
|
try {
|
|
971
871
|
for (var r; ; ) {
|
|
972
872
|
if (za(), $ === null)
|
|
@@ -977,33 +877,33 @@ function yt(e) {
|
|
|
977
877
|
$.flush();
|
|
978
878
|
}
|
|
979
879
|
} finally {
|
|
980
|
-
|
|
880
|
+
lr = t;
|
|
981
881
|
}
|
|
982
882
|
}
|
|
983
|
-
function
|
|
883
|
+
function Fa() {
|
|
984
884
|
try {
|
|
985
885
|
Na();
|
|
986
886
|
} catch (e) {
|
|
987
|
-
st(e,
|
|
887
|
+
st(e, wn);
|
|
988
888
|
}
|
|
989
889
|
}
|
|
990
890
|
let mt = null;
|
|
991
|
-
function
|
|
891
|
+
function ii(e) {
|
|
992
892
|
var t = e.length;
|
|
993
893
|
if (t !== 0) {
|
|
994
894
|
for (var r = 0; r < t; ) {
|
|
995
895
|
var n = e[r++];
|
|
996
|
-
if (!(n.f & (
|
|
896
|
+
if (!(n.f & (Le | We)) && xr(n) && (mt = /* @__PURE__ */ new Set(), Kt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && ps(n), mt?.size > 0)) {
|
|
997
897
|
ot.clear();
|
|
998
898
|
for (const i of mt) {
|
|
999
|
-
if (i.f & (
|
|
899
|
+
if (i.f & (Le | We)) continue;
|
|
1000
900
|
const s = [i];
|
|
1001
901
|
let a = i.parent;
|
|
1002
902
|
for (; a !== null; )
|
|
1003
903
|
mt.has(a) && (mt.delete(a), s.push(a)), a = a.parent;
|
|
1004
904
|
for (let o = s.length - 1; o >= 0; o--) {
|
|
1005
905
|
const u = s[o];
|
|
1006
|
-
u.f & (
|
|
906
|
+
u.f & (Le | We) || Kt(u);
|
|
1007
907
|
}
|
|
1008
908
|
}
|
|
1009
909
|
mt.clear();
|
|
@@ -1016,13 +916,13 @@ function $i(e, t, r, n) {
|
|
|
1016
916
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
1017
917
|
for (const i of e.reactions) {
|
|
1018
918
|
const s = i.f;
|
|
1019
|
-
s &
|
|
919
|
+
s & Se ? $i(
|
|
1020
920
|
/** @type {Derived} */
|
|
1021
921
|
i,
|
|
1022
922
|
t,
|
|
1023
923
|
r,
|
|
1024
924
|
n
|
|
1025
|
-
) : s & (
|
|
925
|
+
) : s & (Xt | Ke) && !(s & pe) && Fn(i, t, n) && (ce(i, pe), Vn(
|
|
1026
926
|
/** @type {Effect} */
|
|
1027
927
|
i
|
|
1028
928
|
));
|
|
@@ -1035,7 +935,7 @@ function Fn(e, t, r) {
|
|
|
1035
935
|
for (const i of e.deps) {
|
|
1036
936
|
if (Dr.call(t, i))
|
|
1037
937
|
return !0;
|
|
1038
|
-
if (i.f &
|
|
938
|
+
if (i.f & Se && Fn(
|
|
1039
939
|
/** @type {Derived} */
|
|
1040
940
|
i,
|
|
1041
941
|
t,
|
|
@@ -1054,7 +954,7 @@ function Vn(e) {
|
|
|
1054
954
|
}
|
|
1055
955
|
function es(e, t) {
|
|
1056
956
|
if (!(e.f & et && e.f & be)) {
|
|
1057
|
-
e.f &
|
|
957
|
+
e.f & pe ? t.d.push(e) : e.f & Ve && t.m.push(e), ce(e, be);
|
|
1058
958
|
for (var r = e.first; r !== null; )
|
|
1059
959
|
es(r, t), r = r.next;
|
|
1060
960
|
}
|
|
@@ -1073,7 +973,7 @@ function br(e, t) {
|
|
|
1073
973
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
1074
974
|
v: e,
|
|
1075
975
|
reactions: null,
|
|
1076
|
-
equals:
|
|
976
|
+
equals: Zi,
|
|
1077
977
|
rv: 0,
|
|
1078
978
|
wv: 0
|
|
1079
979
|
};
|
|
@@ -1082,7 +982,7 @@ function br(e, t) {
|
|
|
1082
982
|
// @__NO_SIDE_EFFECTS__
|
|
1083
983
|
function it(e, t) {
|
|
1084
984
|
const r = br(e);
|
|
1085
|
-
return
|
|
985
|
+
return io(r), r;
|
|
1086
986
|
}
|
|
1087
987
|
// @__NO_SIDE_EFFECTS__
|
|
1088
988
|
function ns(e, t = !1, r = !0) {
|
|
@@ -1090,38 +990,39 @@ function ns(e, t = !1, r = !0) {
|
|
|
1090
990
|
return t || (n.equals = Sa), n;
|
|
1091
991
|
}
|
|
1092
992
|
function Fe(e, t, r = !1) {
|
|
1093
|
-
|
|
993
|
+
V !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1094
994
|
// to ensure we error if state is set inside an inspect effect
|
|
1095
|
-
(!_e ||
|
|
1096
|
-
let n = r ?
|
|
995
|
+
(!_e || V.f & Ir) && Vi() && V.f & (Se | Ke | Xt | Ir) && (ut === null || !ut.has(e)) && La();
|
|
996
|
+
let n = r ? Zt(t) : t;
|
|
1097
997
|
return Ur(e, n, Ar);
|
|
1098
998
|
}
|
|
999
|
+
var Ot = null, En = 0;
|
|
1099
1000
|
function Ur(e, t, r = null) {
|
|
1100
1001
|
if (!e.equals(t)) {
|
|
1101
1002
|
wt ? ot.set(e, t) : ot.has(e) || ot.set(e, e.v);
|
|
1102
1003
|
var n = xt.ensure();
|
|
1103
|
-
if (n.capture(e, t), e.f &
|
|
1004
|
+
if (n.capture(e, t), e.f & Se) {
|
|
1104
1005
|
const i = (
|
|
1105
1006
|
/** @type {Derived} */
|
|
1106
1007
|
e
|
|
1107
1008
|
);
|
|
1108
|
-
e.f &
|
|
1009
|
+
e.f & pe && Xn(i), qe === null && jn(i);
|
|
1109
1010
|
}
|
|
1110
|
-
e.wv = xs(), is(e,
|
|
1011
|
+
e.wv = xs(), Ot = null, En = 0, is(e, pe, r), Ot = null, W !== null && W.f & be && !(W.f & (et | lt)) && (Xe === null ? so([e]) : Xe.push(e)), !n.is_fork && Gr.size > 0 && !rs && Va();
|
|
1111
1012
|
}
|
|
1112
1013
|
return t;
|
|
1113
1014
|
}
|
|
1114
|
-
function
|
|
1015
|
+
function Va() {
|
|
1115
1016
|
rs = !1;
|
|
1116
1017
|
for (const e of Gr) {
|
|
1117
|
-
e.f & be && ce(e,
|
|
1018
|
+
e.f & be && ce(e, Ve);
|
|
1118
1019
|
let t;
|
|
1119
1020
|
try {
|
|
1120
1021
|
t = xr(e);
|
|
1121
1022
|
} catch {
|
|
1122
1023
|
t = !0;
|
|
1123
1024
|
}
|
|
1124
|
-
t &&
|
|
1025
|
+
t && Kt(e);
|
|
1125
1026
|
}
|
|
1126
1027
|
Gr.clear();
|
|
1127
1028
|
}
|
|
@@ -1130,20 +1031,25 @@ function hr(e) {
|
|
|
1130
1031
|
}
|
|
1131
1032
|
function is(e, t, r) {
|
|
1132
1033
|
var n = e.reactions;
|
|
1133
|
-
if (n !== null)
|
|
1134
|
-
|
|
1135
|
-
|
|
1034
|
+
if (n !== null) {
|
|
1035
|
+
var i = n.length;
|
|
1036
|
+
if (En += i, En > 1e5 && Ot === null && (Ot = /* @__PURE__ */ new Set()), Ot !== null) {
|
|
1037
|
+
if (Ot.has(e)) return;
|
|
1038
|
+
Ot.add(e);
|
|
1039
|
+
}
|
|
1040
|
+
for (var s = 0; s < i; s++) {
|
|
1041
|
+
var a = n[s], o = a.f, u = (o & pe) === 0;
|
|
1136
1042
|
if (u && ce(a, t), o & Ir)
|
|
1137
1043
|
Gr.add(
|
|
1138
1044
|
/** @type {Effect} */
|
|
1139
1045
|
a
|
|
1140
1046
|
);
|
|
1141
|
-
else if (o &
|
|
1047
|
+
else if (o & Se) {
|
|
1142
1048
|
var l = (
|
|
1143
1049
|
/** @type {Derived} */
|
|
1144
1050
|
a
|
|
1145
1051
|
);
|
|
1146
|
-
qe?.delete(l),
|
|
1052
|
+
qe?.delete(l), is(l, Ve, r);
|
|
1147
1053
|
} else if (u) {
|
|
1148
1054
|
var f = (
|
|
1149
1055
|
/** @type {Effect} */
|
|
@@ -1152,20 +1058,21 @@ function is(e, t, r) {
|
|
|
1152
1058
|
o & Ke && mt !== null && mt.add(f), r !== null ? r.push(f) : Vn(f);
|
|
1153
1059
|
}
|
|
1154
1060
|
}
|
|
1061
|
+
}
|
|
1155
1062
|
}
|
|
1156
|
-
function
|
|
1157
|
-
if (typeof e != "object" || e === null || rn in e ||
|
|
1063
|
+
function Zt(e) {
|
|
1064
|
+
if (typeof e != "object" || e === null || rn in e || Gi in e)
|
|
1158
1065
|
return e;
|
|
1159
|
-
const t =
|
|
1066
|
+
const t = Di(e);
|
|
1160
1067
|
if (t !== ma && t !== ga)
|
|
1161
1068
|
return e;
|
|
1162
|
-
var r = /* @__PURE__ */ new Map(), n = ca(e), i = /* @__PURE__ */ it(0), s =
|
|
1163
|
-
if (
|
|
1069
|
+
var r = /* @__PURE__ */ new Map(), n = ca(e), i = /* @__PURE__ */ it(0), s = Ct, a = (o) => {
|
|
1070
|
+
if (Ct === s)
|
|
1164
1071
|
return o();
|
|
1165
|
-
var u =
|
|
1166
|
-
Je(null),
|
|
1072
|
+
var u = V, l = Ct;
|
|
1073
|
+
Je(null), ui(s);
|
|
1167
1074
|
var f = o();
|
|
1168
|
-
return Je(u),
|
|
1075
|
+
return Je(u), ui(l), f;
|
|
1169
1076
|
};
|
|
1170
1077
|
return n && r.set("length", /* @__PURE__ */ it(
|
|
1171
1078
|
/** @type {any[]} */
|
|
@@ -1197,8 +1104,8 @@ function jt(e) {
|
|
|
1197
1104
|
if (u === rn)
|
|
1198
1105
|
return e;
|
|
1199
1106
|
var f = r.get(u), h = u in o;
|
|
1200
|
-
if (f === void 0 && (!h ||
|
|
1201
|
-
var v =
|
|
1107
|
+
if (f === void 0 && (!h || jt(o, u)?.writable) && (f = a(() => {
|
|
1108
|
+
var v = Zt(h ? o[u] : ye), m = /* @__PURE__ */ it(v);
|
|
1202
1109
|
return m;
|
|
1203
1110
|
}), r.set(u, f)), f !== void 0) {
|
|
1204
1111
|
var c = ve(f);
|
|
@@ -1207,17 +1114,19 @@ function jt(e) {
|
|
|
1207
1114
|
return Reflect.get(o, u, l);
|
|
1208
1115
|
},
|
|
1209
1116
|
getOwnPropertyDescriptor(o, u) {
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
if (
|
|
1117
|
+
this.has?.(o, u);
|
|
1118
|
+
var l = Reflect.getOwnPropertyDescriptor(o, u), f = r.get(u);
|
|
1119
|
+
if (f !== void 0) {
|
|
1120
|
+
var h = ve(f);
|
|
1121
|
+
if (h === ye)
|
|
1122
|
+
return;
|
|
1123
|
+
if (l && "value" in l)
|
|
1124
|
+
l.value = h;
|
|
1125
|
+
else
|
|
1217
1126
|
return {
|
|
1218
1127
|
enumerable: !0,
|
|
1219
1128
|
configurable: !0,
|
|
1220
|
-
value:
|
|
1129
|
+
value: h,
|
|
1221
1130
|
writable: !0
|
|
1222
1131
|
};
|
|
1223
1132
|
}
|
|
@@ -1227,9 +1136,9 @@ function jt(e) {
|
|
|
1227
1136
|
if (u === rn)
|
|
1228
1137
|
return !0;
|
|
1229
1138
|
var l = r.get(u), f = l !== void 0 && l.v !== ye || Reflect.has(o, u);
|
|
1230
|
-
if (l !== void 0 ||
|
|
1139
|
+
if (l !== void 0 || W !== null && (!f || jt(o, u)?.writable)) {
|
|
1231
1140
|
l === void 0 && (l = a(() => {
|
|
1232
|
-
var c = f ?
|
|
1141
|
+
var c = f ? Zt(o[u]) : ye, v = /* @__PURE__ */ it(c);
|
|
1233
1142
|
return v;
|
|
1234
1143
|
}), r.set(u, l));
|
|
1235
1144
|
var h = ve(l);
|
|
@@ -1247,10 +1156,10 @@ function jt(e) {
|
|
|
1247
1156
|
m !== void 0 ? Fe(m, ye) : v in o && (m = a(() => /* @__PURE__ */ it(ye)), r.set(v + "", m));
|
|
1248
1157
|
}
|
|
1249
1158
|
if (h === void 0)
|
|
1250
|
-
(!c ||
|
|
1159
|
+
(!c || jt(o, u)?.writable) && (h = a(() => /* @__PURE__ */ it(void 0)), Fe(h, Zt(l)), r.set(u, h));
|
|
1251
1160
|
else {
|
|
1252
1161
|
c = h.v !== ye;
|
|
1253
|
-
var I = a(() =>
|
|
1162
|
+
var I = a(() => Zt(l));
|
|
1254
1163
|
Fe(h, I);
|
|
1255
1164
|
}
|
|
1256
1165
|
var M = Reflect.getOwnPropertyDescriptor(o, u);
|
|
@@ -1282,12 +1191,12 @@ function jt(e) {
|
|
|
1282
1191
|
}
|
|
1283
1192
|
);
|
|
1284
1193
|
}
|
|
1285
|
-
var
|
|
1194
|
+
var si, ss, as, os;
|
|
1286
1195
|
function Tn() {
|
|
1287
|
-
if (
|
|
1288
|
-
|
|
1196
|
+
if (si === void 0) {
|
|
1197
|
+
si = window, ss = /Firefox/.test(navigator.userAgent);
|
|
1289
1198
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1290
|
-
as =
|
|
1199
|
+
as = jt(t, "firstChild").get, os = jt(t, "nextSibling").get, ri(e) && (e[gn] = void 0, e[Ui] = null, e[yn] = void 0, e.__e = void 0), ri(r) && (r[bn] = void 0);
|
|
1291
1200
|
}
|
|
1292
1201
|
}
|
|
1293
1202
|
function Dt(e = "") {
|
|
@@ -1313,7 +1222,7 @@ function nt(e, t) {
|
|
|
1313
1222
|
var r = /* @__PURE__ */ dr(de);
|
|
1314
1223
|
if (r === null)
|
|
1315
1224
|
r = de.appendChild(Dt());
|
|
1316
|
-
else if (t && r.nodeType !==
|
|
1225
|
+
else if (t && r.nodeType !== Un) {
|
|
1317
1226
|
var n = Dt();
|
|
1318
1227
|
return r?.before(n), ft(n), n;
|
|
1319
1228
|
}
|
|
@@ -1322,7 +1231,7 @@ function nt(e, t) {
|
|
|
1322
1231
|
r
|
|
1323
1232
|
), ft(r), r;
|
|
1324
1233
|
}
|
|
1325
|
-
function
|
|
1234
|
+
function ke(e, t = !1) {
|
|
1326
1235
|
if (!ue)
|
|
1327
1236
|
return /* @__PURE__ */ dr(e);
|
|
1328
1237
|
var r = nt(e, t);
|
|
@@ -1336,7 +1245,7 @@ function He(e, t = 1, r = !1) {
|
|
|
1336
1245
|
if (!ue)
|
|
1337
1246
|
return n;
|
|
1338
1247
|
if (r) {
|
|
1339
|
-
if (n?.nodeType !==
|
|
1248
|
+
if (n?.nodeType !== Un) {
|
|
1340
1249
|
var s = Dt();
|
|
1341
1250
|
return n === null ? i?.after(s) : n.before(s), ft(s), s;
|
|
1342
1251
|
}
|
|
@@ -1347,10 +1256,10 @@ function He(e, t = 1, r = !1) {
|
|
|
1347
1256
|
}
|
|
1348
1257
|
return ft(n), n;
|
|
1349
1258
|
}
|
|
1350
|
-
function
|
|
1259
|
+
function Wa(e) {
|
|
1351
1260
|
e.textContent = "";
|
|
1352
1261
|
}
|
|
1353
|
-
function
|
|
1262
|
+
function Ja() {
|
|
1354
1263
|
return !1;
|
|
1355
1264
|
}
|
|
1356
1265
|
function Wn(e, t, r) {
|
|
@@ -1366,22 +1275,22 @@ function us(e) {
|
|
|
1366
1275
|
)
|
|
1367
1276
|
return;
|
|
1368
1277
|
let t = e.nextSibling;
|
|
1369
|
-
for (; t !== null && t.nodeType ===
|
|
1278
|
+
for (; t !== null && t.nodeType === Un; )
|
|
1370
1279
|
t.remove(), e.nodeValue += /** @type {string} */
|
|
1371
1280
|
t.nodeValue, t = e.nextSibling;
|
|
1372
1281
|
}
|
|
1373
|
-
function
|
|
1374
|
-
var t =
|
|
1282
|
+
function Qa(e) {
|
|
1283
|
+
var t = W;
|
|
1375
1284
|
if (t === null)
|
|
1376
|
-
return
|
|
1377
|
-
if (!(t.f & Lt) && !(t.f &
|
|
1285
|
+
return V.f |= St, e;
|
|
1286
|
+
if (!(t.f & Lt) && !(t.f & Wt))
|
|
1378
1287
|
throw e;
|
|
1379
1288
|
st(e, t);
|
|
1380
1289
|
}
|
|
1381
1290
|
function st(e, t) {
|
|
1382
|
-
if (!(t !== null && t.f &
|
|
1291
|
+
if (!(t !== null && t.f & Le)) {
|
|
1383
1292
|
for (; t !== null; ) {
|
|
1384
|
-
if (t.f & pn && !(t.f & (
|
|
1293
|
+
if (t.f & pn && !(t.f & (Le | mn))) {
|
|
1385
1294
|
if (!(t.f & Lt))
|
|
1386
1295
|
throw e;
|
|
1387
1296
|
try {
|
|
@@ -1397,20 +1306,20 @@ function st(e, t) {
|
|
|
1397
1306
|
}
|
|
1398
1307
|
}
|
|
1399
1308
|
function ls(e) {
|
|
1400
|
-
|
|
1309
|
+
W === null && (V === null && Ba(), Oa()), wt && Aa();
|
|
1401
1310
|
}
|
|
1402
|
-
function
|
|
1311
|
+
function Ka(e, t) {
|
|
1403
1312
|
var r = t.last;
|
|
1404
1313
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1405
1314
|
}
|
|
1406
1315
|
function tt(e, t) {
|
|
1407
|
-
var r =
|
|
1316
|
+
var r = W;
|
|
1408
1317
|
r !== null && r.f & We && (e |= We);
|
|
1409
1318
|
var n = {
|
|
1410
|
-
ctx:
|
|
1319
|
+
ctx: Me,
|
|
1411
1320
|
deps: null,
|
|
1412
1321
|
nodes: null,
|
|
1413
|
-
f: e |
|
|
1322
|
+
f: e | pe | $e,
|
|
1414
1323
|
first: null,
|
|
1415
1324
|
fn: t,
|
|
1416
1325
|
last: null,
|
|
@@ -1424,28 +1333,28 @@ function tt(e, t) {
|
|
|
1424
1333
|
};
|
|
1425
1334
|
$?.register_created_effect(n);
|
|
1426
1335
|
var i = n;
|
|
1427
|
-
if (e &
|
|
1428
|
-
|
|
1336
|
+
if (e & Wt)
|
|
1337
|
+
fr !== null ? fr.push(n) : xt.ensure().schedule(n);
|
|
1429
1338
|
else if (t !== null) {
|
|
1430
1339
|
try {
|
|
1431
|
-
|
|
1340
|
+
Kt(n);
|
|
1432
1341
|
} catch (a) {
|
|
1433
|
-
throw
|
|
1342
|
+
throw Ie(n), a;
|
|
1434
1343
|
}
|
|
1435
1344
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
|
|
1436
|
-
!(i.f & It) && (i = i.first, e & Ke && e &
|
|
1345
|
+
!(i.f & It) && (i = i.first, e & Ke && e & Jt && i !== null && (i.f |= Jt));
|
|
1437
1346
|
}
|
|
1438
|
-
if (i !== null && (i.parent = r, r !== null &&
|
|
1347
|
+
if (i !== null && (i.parent = r, r !== null && Ka(i, r), V !== null && V.f & Se && !(e & lt))) {
|
|
1439
1348
|
var s = (
|
|
1440
1349
|
/** @type {Derived} */
|
|
1441
|
-
|
|
1350
|
+
V
|
|
1442
1351
|
);
|
|
1443
1352
|
(s.effects ??= []).push(i);
|
|
1444
1353
|
}
|
|
1445
1354
|
return n;
|
|
1446
1355
|
}
|
|
1447
1356
|
function Jn() {
|
|
1448
|
-
return
|
|
1357
|
+
return V !== null && !_e;
|
|
1449
1358
|
}
|
|
1450
1359
|
function fs(e) {
|
|
1451
1360
|
const t = tt(gr, null);
|
|
@@ -1455,50 +1364,50 @@ function Mn(e) {
|
|
|
1455
1364
|
ls();
|
|
1456
1365
|
var t = (
|
|
1457
1366
|
/** @type {Effect} */
|
|
1458
|
-
|
|
1459
|
-
), r = !
|
|
1367
|
+
W.f
|
|
1368
|
+
), r = !V && (t & et) !== 0 && Me !== null && !Me.i;
|
|
1460
1369
|
if (r) {
|
|
1461
1370
|
var n = (
|
|
1462
1371
|
/** @type {ComponentContext} */
|
|
1463
|
-
|
|
1372
|
+
Me
|
|
1464
1373
|
);
|
|
1465
1374
|
(n.e ??= []).push(e);
|
|
1466
1375
|
} else
|
|
1467
1376
|
return hs(e);
|
|
1468
1377
|
}
|
|
1469
1378
|
function hs(e) {
|
|
1470
|
-
return tt(
|
|
1379
|
+
return tt(Wt | zi, e);
|
|
1471
1380
|
}
|
|
1472
|
-
function
|
|
1473
|
-
return ls(), tt(gr |
|
|
1381
|
+
function qa(e) {
|
|
1382
|
+
return ls(), tt(gr | zi, e);
|
|
1474
1383
|
}
|
|
1475
|
-
function
|
|
1384
|
+
function _a(e) {
|
|
1476
1385
|
xt.ensure();
|
|
1477
1386
|
const t = tt(lt | It, e);
|
|
1478
1387
|
return () => {
|
|
1479
|
-
|
|
1388
|
+
Ie(t);
|
|
1480
1389
|
};
|
|
1481
1390
|
}
|
|
1482
|
-
function
|
|
1391
|
+
function $a(e) {
|
|
1483
1392
|
xt.ensure();
|
|
1484
1393
|
const t = tt(lt | It, e);
|
|
1485
1394
|
return (r = {}) => new Promise((n) => {
|
|
1486
1395
|
r.outro ? cr(t, () => {
|
|
1487
|
-
|
|
1488
|
-
}) : (
|
|
1396
|
+
Ie(t), n(void 0);
|
|
1397
|
+
}) : (Ie(t), n(void 0));
|
|
1489
1398
|
});
|
|
1490
1399
|
}
|
|
1491
|
-
function
|
|
1492
|
-
return tt(
|
|
1400
|
+
function eo(e) {
|
|
1401
|
+
return tt(Wt, e);
|
|
1493
1402
|
}
|
|
1494
|
-
function
|
|
1495
|
-
return tt(
|
|
1403
|
+
function to(e) {
|
|
1404
|
+
return tt(Xt | It, e);
|
|
1496
1405
|
}
|
|
1497
1406
|
function cs(e, t = 0) {
|
|
1498
1407
|
return tt(gr | t, e);
|
|
1499
1408
|
}
|
|
1500
1409
|
function an(e, t = [], r = [], n = []) {
|
|
1501
|
-
|
|
1410
|
+
Ua(n, t, r, (i) => {
|
|
1502
1411
|
tt(gr, () => {
|
|
1503
1412
|
e(...i.map(ve));
|
|
1504
1413
|
});
|
|
@@ -1514,14 +1423,14 @@ function gt(e) {
|
|
|
1514
1423
|
function vs(e) {
|
|
1515
1424
|
var t = e.teardown;
|
|
1516
1425
|
if (t !== null) {
|
|
1517
|
-
const r = wt, n =
|
|
1518
|
-
|
|
1426
|
+
const r = wt, n = V;
|
|
1427
|
+
oi(!0), Je(null);
|
|
1519
1428
|
try {
|
|
1520
1429
|
t.call(null);
|
|
1521
1430
|
} catch (i) {
|
|
1522
1431
|
st(i, e.parent);
|
|
1523
1432
|
} finally {
|
|
1524
|
-
|
|
1433
|
+
oi(r), Je(n);
|
|
1525
1434
|
}
|
|
1526
1435
|
}
|
|
1527
1436
|
}
|
|
@@ -1529,22 +1438,22 @@ function Qn(e, t = !1) {
|
|
|
1529
1438
|
var r = e.first;
|
|
1530
1439
|
for (e.first = e.last = null; r !== null; ) {
|
|
1531
1440
|
const i = r.ac;
|
|
1532
|
-
i !== null &&
|
|
1441
|
+
i !== null && Fr(() => {
|
|
1533
1442
|
i.abort(yr);
|
|
1534
1443
|
});
|
|
1535
1444
|
var n = r.next;
|
|
1536
|
-
r.f & lt ? r.parent = null :
|
|
1445
|
+
r.f & lt ? r.parent = null : Ie(r, t), r = n;
|
|
1537
1446
|
}
|
|
1538
1447
|
}
|
|
1539
|
-
function
|
|
1448
|
+
function ro(e) {
|
|
1540
1449
|
for (var t = e.first; t !== null; ) {
|
|
1541
1450
|
var r = t.next;
|
|
1542
|
-
t.f & et ||
|
|
1451
|
+
t.f & et || Ie(t), t = r;
|
|
1543
1452
|
}
|
|
1544
1453
|
}
|
|
1545
|
-
function
|
|
1454
|
+
function Ie(e, t = !0) {
|
|
1546
1455
|
var r = !1;
|
|
1547
|
-
(t || e.f & ya) && e.nodes !== null && e.nodes.end !== null && (
|
|
1456
|
+
(t || e.f & ya) && e.nodes !== null && e.nodes.end !== null && (no(
|
|
1548
1457
|
e.nodes.start,
|
|
1549
1458
|
/** @type {TemplateNode} */
|
|
1550
1459
|
e.nodes.end
|
|
@@ -1553,11 +1462,11 @@ function Le(e, t = !0) {
|
|
|
1553
1462
|
if (n !== null)
|
|
1554
1463
|
for (const s of n)
|
|
1555
1464
|
s.stop();
|
|
1556
|
-
vs(e), e.f ^= mn, e.f |=
|
|
1465
|
+
vs(e), e.f ^= mn, e.f |= Le;
|
|
1557
1466
|
var i = e.parent;
|
|
1558
1467
|
i !== null && i.first !== null && ps(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1559
1468
|
}
|
|
1560
|
-
function
|
|
1469
|
+
function no(e, t) {
|
|
1561
1470
|
for (; e !== null; ) {
|
|
1562
1471
|
var r = e === t ? null : /* @__PURE__ */ Pt(e);
|
|
1563
1472
|
e.remove(), e = r;
|
|
@@ -1569,9 +1478,9 @@ function ps(e) {
|
|
|
1569
1478
|
}
|
|
1570
1479
|
function cr(e, t, r = !0) {
|
|
1571
1480
|
var n = [];
|
|
1572
|
-
e.f |=
|
|
1481
|
+
e.f |= Gn, ms(e, n, !0);
|
|
1573
1482
|
var i = () => {
|
|
1574
|
-
r &&
|
|
1483
|
+
r && Ie(e), t && t();
|
|
1575
1484
|
}, s = n.length;
|
|
1576
1485
|
if (s > 0) {
|
|
1577
1486
|
var a = () => --s || i();
|
|
@@ -1590,7 +1499,7 @@ function ms(e, t, r) {
|
|
|
1590
1499
|
for (var i = e.first; i !== null; ) {
|
|
1591
1500
|
var s = i.next;
|
|
1592
1501
|
if (!(i.f & lt)) {
|
|
1593
|
-
var a = (i.f &
|
|
1502
|
+
var a = (i.f & Jt) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1594
1503
|
// it means the parent block effect was pruned. In that case,
|
|
1595
1504
|
// transparency information was transferred to the branch effect.
|
|
1596
1505
|
(i.f & et) !== 0 && (e.f & Ke) !== 0;
|
|
@@ -1600,14 +1509,14 @@ function ms(e, t, r) {
|
|
|
1600
1509
|
}
|
|
1601
1510
|
}
|
|
1602
1511
|
}
|
|
1603
|
-
function
|
|
1604
|
-
e.f &= ~
|
|
1512
|
+
function ai(e) {
|
|
1513
|
+
e.f &= ~Gn, gs(e, !0);
|
|
1605
1514
|
}
|
|
1606
1515
|
function gs(e, t) {
|
|
1607
|
-
if (!(e.f &
|
|
1608
|
-
e.f ^= We, e.f & be || (ce(e,
|
|
1516
|
+
if (!(e.f & Gn) && e.f & We) {
|
|
1517
|
+
e.f ^= We, e.f & be || (ce(e, pe), xt.ensure().schedule(e));
|
|
1609
1518
|
for (var r = e.first; r !== null; ) {
|
|
1610
|
-
var n = r.next, i = (r.f &
|
|
1519
|
+
var n = r.next, i = (r.f & Jt) !== 0 || (r.f & et) !== 0;
|
|
1611
1520
|
gs(r, i ? t : !1), r = n;
|
|
1612
1521
|
}
|
|
1613
1522
|
var s = e.nodes && e.nodes.t;
|
|
@@ -1624,37 +1533,37 @@ function ys(e, t) {
|
|
|
1624
1533
|
}
|
|
1625
1534
|
}
|
|
1626
1535
|
let Or = !1, wt = !1;
|
|
1627
|
-
function
|
|
1536
|
+
function oi(e) {
|
|
1628
1537
|
wt = e;
|
|
1629
1538
|
}
|
|
1630
|
-
let
|
|
1539
|
+
let V = null, _e = !1;
|
|
1631
1540
|
function Je(e) {
|
|
1632
|
-
|
|
1541
|
+
V = e;
|
|
1633
1542
|
}
|
|
1634
|
-
let
|
|
1543
|
+
let W = null;
|
|
1635
1544
|
function ht(e) {
|
|
1636
|
-
|
|
1545
|
+
W = e;
|
|
1637
1546
|
}
|
|
1638
1547
|
let ut = null;
|
|
1639
|
-
function
|
|
1640
|
-
|
|
1548
|
+
function io(e) {
|
|
1549
|
+
V !== null && (V.f & Rr || V.f & Se) && (ut ??= /* @__PURE__ */ new Set()).add(e);
|
|
1641
1550
|
}
|
|
1642
|
-
let De = null,
|
|
1643
|
-
function
|
|
1551
|
+
let De = null, Ye = 0, Xe = null;
|
|
1552
|
+
function so(e) {
|
|
1644
1553
|
Xe = e;
|
|
1645
1554
|
}
|
|
1646
|
-
let bs = 1,
|
|
1647
|
-
function
|
|
1648
|
-
|
|
1555
|
+
let bs = 1, Ht = 0, Ct = Ht;
|
|
1556
|
+
function ui(e) {
|
|
1557
|
+
Ct = e;
|
|
1649
1558
|
}
|
|
1650
1559
|
function xs() {
|
|
1651
1560
|
return ++bs;
|
|
1652
1561
|
}
|
|
1653
1562
|
function xr(e) {
|
|
1654
1563
|
var t = e.f;
|
|
1655
|
-
if (t &
|
|
1564
|
+
if (t & pe)
|
|
1656
1565
|
return !0;
|
|
1657
|
-
if (t &
|
|
1566
|
+
if (t & Ve) {
|
|
1658
1567
|
for (var r = (
|
|
1659
1568
|
/** @type {Value[]} */
|
|
1660
1569
|
e.deps
|
|
@@ -1669,7 +1578,7 @@ function xr(e) {
|
|
|
1669
1578
|
), s.wv > e.wv)
|
|
1670
1579
|
return !0;
|
|
1671
1580
|
}
|
|
1672
|
-
t &
|
|
1581
|
+
t & $e && // During time traveling we don't want to reset the status so that
|
|
1673
1582
|
// traversal of the graph in the other batches still happens
|
|
1674
1583
|
qe === null && ce(e, be);
|
|
1675
1584
|
}
|
|
@@ -1680,21 +1589,21 @@ function ws(e, t, r = !0) {
|
|
|
1680
1589
|
if (n !== null && !(ut !== null && ut.has(e)))
|
|
1681
1590
|
for (var i = 0; i < n.length; i++) {
|
|
1682
1591
|
var s = n[i];
|
|
1683
|
-
s.f &
|
|
1592
|
+
s.f & Se ? ws(
|
|
1684
1593
|
/** @type {Derived} */
|
|
1685
1594
|
s,
|
|
1686
1595
|
t,
|
|
1687
1596
|
!1
|
|
1688
|
-
) : t === s && (r ? ce(s,
|
|
1597
|
+
) : t === s && (r ? ce(s, pe) : s.f & be && ce(s, Ve), Vn(
|
|
1689
1598
|
/** @type {Effect} */
|
|
1690
1599
|
s
|
|
1691
1600
|
));
|
|
1692
1601
|
}
|
|
1693
1602
|
}
|
|
1694
1603
|
function Es(e) {
|
|
1695
|
-
var t = De, r =
|
|
1604
|
+
var t = De, r = Ye, n = Xe, i = V, s = ut, a = Me, o = _e, u = Ct, l = e.f;
|
|
1696
1605
|
De = /** @type {null | Value[]} */
|
|
1697
|
-
null,
|
|
1606
|
+
null, Ye = 0, Xe = null, V = l & (et | lt) ? null : e, ut = null, Qt(e.ctx), _e = !1, Ct = ++Ht, e.ac !== null && (Fr(() => {
|
|
1698
1607
|
e.ac.abort(yr);
|
|
1699
1608
|
}), e.ac = null);
|
|
1700
1609
|
try {
|
|
@@ -1704,8 +1613,8 @@ function Es(e) {
|
|
|
1704
1613
|
e.fn
|
|
1705
1614
|
), h = f();
|
|
1706
1615
|
e.f |= Lt;
|
|
1707
|
-
var c =
|
|
1708
|
-
if (
|
|
1616
|
+
var c = li(e);
|
|
1617
|
+
if (Vi() && Xe !== null && !_e && c !== null && !(e.f & (Se | Ve | pe)))
|
|
1709
1618
|
for (var v = 0; v < /** @type {Source[]} */
|
|
1710
1619
|
Xe.length; v++)
|
|
1711
1620
|
ws(
|
|
@@ -1714,38 +1623,38 @@ function Es(e) {
|
|
|
1714
1623
|
e
|
|
1715
1624
|
);
|
|
1716
1625
|
if (i !== null && i !== e) {
|
|
1717
|
-
if (
|
|
1626
|
+
if (Ht++, i.deps !== null)
|
|
1718
1627
|
for (let m = 0; m < r; m += 1)
|
|
1719
|
-
i.deps[m].rv =
|
|
1628
|
+
i.deps[m].rv = Ht;
|
|
1720
1629
|
if (t !== null)
|
|
1721
1630
|
for (const m of t)
|
|
1722
|
-
m.rv =
|
|
1631
|
+
m.rv = Ht;
|
|
1723
1632
|
Xe !== null && (n === null ? n = Xe : n.push(.../** @type {Source[]} */
|
|
1724
1633
|
Xe));
|
|
1725
1634
|
}
|
|
1726
1635
|
return e.f & St && (e.f ^= St), h;
|
|
1727
1636
|
} catch (m) {
|
|
1728
|
-
return
|
|
1637
|
+
return li(e), Qa(m);
|
|
1729
1638
|
} finally {
|
|
1730
|
-
e.f ^= Rr, De = t,
|
|
1639
|
+
e.f ^= Rr, De = t, Ye = r, Xe = n, V = i, ut = s, Qt(a), _e = o, Ct = u;
|
|
1731
1640
|
}
|
|
1732
1641
|
}
|
|
1733
|
-
function
|
|
1642
|
+
function li(e) {
|
|
1734
1643
|
var t = e.deps, r = $?.is_fork;
|
|
1735
1644
|
if (De !== null) {
|
|
1736
1645
|
var n;
|
|
1737
|
-
if (r || vr(e,
|
|
1738
|
-
for (t.length =
|
|
1739
|
-
t[
|
|
1646
|
+
if (r || vr(e, Ye), t !== null && Ye > 0)
|
|
1647
|
+
for (t.length = Ye + De.length, n = 0; n < De.length; n++)
|
|
1648
|
+
t[Ye + n] = De[n];
|
|
1740
1649
|
else
|
|
1741
1650
|
e.deps = t = De;
|
|
1742
|
-
if (Jn() && e.f &
|
|
1743
|
-
for (n =
|
|
1651
|
+
if (Jn() && e.f & $e)
|
|
1652
|
+
for (n = Ye; n < t.length; n++)
|
|
1744
1653
|
(t[n].reactions ??= []).push(e);
|
|
1745
|
-
} else !r && t !== null &&
|
|
1654
|
+
} else !r && t !== null && Ye < t.length && (vr(e, Ye), t.length = Ye);
|
|
1746
1655
|
return t;
|
|
1747
1656
|
}
|
|
1748
|
-
function
|
|
1657
|
+
function ao(e, t) {
|
|
1749
1658
|
let r = t.reactions;
|
|
1750
1659
|
if (r !== null) {
|
|
1751
1660
|
var n = da.call(r, e);
|
|
@@ -1754,7 +1663,7 @@ function fo(e, t) {
|
|
|
1754
1663
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1755
1664
|
}
|
|
1756
1665
|
}
|
|
1757
|
-
if (r === null && t.f &
|
|
1666
|
+
if (r === null && t.f & Se && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1758
1667
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1759
1668
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1760
1669
|
(De === null || !Dr.call(De, t))) {
|
|
@@ -1762,46 +1671,46 @@ function fo(e, t) {
|
|
|
1762
1671
|
/** @type {Derived} */
|
|
1763
1672
|
t
|
|
1764
1673
|
);
|
|
1765
|
-
s.f &
|
|
1766
|
-
s.ac.abort(yr), s.ac = null, ce(s,
|
|
1767
|
-
}),
|
|
1674
|
+
s.f & $e && (s.f ^= $e), s.v !== ye && jn(s), s.ac !== null && Fr(() => {
|
|
1675
|
+
s.ac.abort(yr), s.ac = null, ce(s, pe);
|
|
1676
|
+
}), ja(s), vr(s, 0);
|
|
1768
1677
|
}
|
|
1769
1678
|
}
|
|
1770
1679
|
function vr(e, t) {
|
|
1771
1680
|
var r = e.deps;
|
|
1772
1681
|
if (r !== null)
|
|
1773
1682
|
for (var n = t; n < r.length; n++)
|
|
1774
|
-
|
|
1683
|
+
ao(e, r[n]);
|
|
1775
1684
|
}
|
|
1776
|
-
function
|
|
1685
|
+
function Kt(e) {
|
|
1777
1686
|
var t = e.f;
|
|
1778
|
-
if (!(t &
|
|
1687
|
+
if (!(t & Le)) {
|
|
1779
1688
|
ce(e, be);
|
|
1780
|
-
var r =
|
|
1781
|
-
|
|
1689
|
+
var r = W, n = Or;
|
|
1690
|
+
W = e, Or = (t & (et | lt)) === 0;
|
|
1782
1691
|
try {
|
|
1783
|
-
t & (Ke |
|
|
1692
|
+
t & (Ke | Ri) ? ro(e) : Qn(e), vs(e);
|
|
1784
1693
|
var i = Es(e);
|
|
1785
1694
|
e.teardown = typeof i == "function" ? i : null, e.wv = bs;
|
|
1786
1695
|
var s;
|
|
1787
|
-
|
|
1696
|
+
Ci && Ra && e.f & pe && e.deps;
|
|
1788
1697
|
} finally {
|
|
1789
|
-
Or = n,
|
|
1698
|
+
Or = n, W = r;
|
|
1790
1699
|
}
|
|
1791
1700
|
}
|
|
1792
1701
|
}
|
|
1793
1702
|
function ve(e) {
|
|
1794
|
-
var t = e.f, r = (t &
|
|
1795
|
-
if (
|
|
1796
|
-
var n =
|
|
1703
|
+
var t = e.f, r = (t & Se) !== 0;
|
|
1704
|
+
if (V !== null && !_e) {
|
|
1705
|
+
var n = W !== null && (W.f & Le) !== 0;
|
|
1797
1706
|
if (!n && (ut === null || !ut.has(e))) {
|
|
1798
|
-
var i =
|
|
1799
|
-
if (
|
|
1800
|
-
e.rv <
|
|
1707
|
+
var i = V.deps;
|
|
1708
|
+
if (V.f & Rr)
|
|
1709
|
+
e.rv < Ht && (e.rv = Ht, De === null && i !== null && i[Ye] === e ? Ye++ : De === null ? De = [e] : De.push(e));
|
|
1801
1710
|
else {
|
|
1802
|
-
|
|
1711
|
+
V.deps ??= [], Dr.call(V.deps, e) || V.deps.push(e);
|
|
1803
1712
|
var s = e.reactions;
|
|
1804
|
-
s === null ? e.reactions = [
|
|
1713
|
+
s === null ? e.reactions = [V] : Dr.call(s, V) || s.push(V);
|
|
1805
1714
|
}
|
|
1806
1715
|
}
|
|
1807
1716
|
}
|
|
@@ -1816,8 +1725,8 @@ function ve(e) {
|
|
|
1816
1725
|
var o = a.v;
|
|
1817
1726
|
return (!(a.f & be) && a.reactions !== null || Ms(a)) && (o = Xn(a)), ot.set(a, o), o;
|
|
1818
1727
|
}
|
|
1819
|
-
var u = (a.f &
|
|
1820
|
-
xr(a) && (u && (a.f |=
|
|
1728
|
+
var u = (a.f & $e) === 0 && !_e && V !== null && (Or || (V.f & $e) !== 0), l = (a.f & Lt) === 0;
|
|
1729
|
+
xr(a) && (u && (a.f |= $e), qi(a)), u && !l && (_i(a), Ts(a));
|
|
1821
1730
|
}
|
|
1822
1731
|
if (qe?.has(e))
|
|
1823
1732
|
return qe.get(e);
|
|
@@ -1826,9 +1735,9 @@ function ve(e) {
|
|
|
1826
1735
|
return e.v;
|
|
1827
1736
|
}
|
|
1828
1737
|
function Ts(e) {
|
|
1829
|
-
if (e.f |=
|
|
1738
|
+
if (e.f |= $e, e.deps !== null)
|
|
1830
1739
|
for (const t of e.deps)
|
|
1831
|
-
(t.reactions ??= []).push(e), t.f &
|
|
1740
|
+
(t.reactions ??= []).push(e), t.f & Se && !(t.f & $e) && (_i(
|
|
1832
1741
|
/** @type {Derived} */
|
|
1833
1742
|
t
|
|
1834
1743
|
), Ts(
|
|
@@ -1840,14 +1749,14 @@ function Ms(e) {
|
|
|
1840
1749
|
if (e.v === ye) return !0;
|
|
1841
1750
|
if (e.deps === null) return !1;
|
|
1842
1751
|
for (const t of e.deps)
|
|
1843
|
-
if (ot.has(t) || t.f &
|
|
1752
|
+
if (ot.has(t) || t.f & Se && Ms(
|
|
1844
1753
|
/** @type {Derived} */
|
|
1845
1754
|
t
|
|
1846
1755
|
))
|
|
1847
1756
|
return !0;
|
|
1848
1757
|
return !1;
|
|
1849
1758
|
}
|
|
1850
|
-
function
|
|
1759
|
+
function Vr(e) {
|
|
1851
1760
|
var t = _e;
|
|
1852
1761
|
try {
|
|
1853
1762
|
return _e = !0, e();
|
|
@@ -1855,18 +1764,18 @@ function Wr(e) {
|
|
|
1855
1764
|
_e = t;
|
|
1856
1765
|
}
|
|
1857
1766
|
}
|
|
1858
|
-
const
|
|
1859
|
-
function
|
|
1860
|
-
(t[
|
|
1767
|
+
const ur = Symbol("events"), Ss = /* @__PURE__ */ new Set(), Sn = /* @__PURE__ */ new Set();
|
|
1768
|
+
function oo(e, t, r) {
|
|
1769
|
+
(t[ur] ??= {})[e] = r;
|
|
1861
1770
|
}
|
|
1862
|
-
function
|
|
1771
|
+
function uo(e) {
|
|
1863
1772
|
for (var t = 0; t < e.length; t++)
|
|
1864
1773
|
Ss.add(e[t]);
|
|
1865
1774
|
for (var r of Sn)
|
|
1866
1775
|
r(e);
|
|
1867
1776
|
}
|
|
1868
1777
|
let on = null, un = !1;
|
|
1869
|
-
function
|
|
1778
|
+
function fi(e) {
|
|
1870
1779
|
var t = this, r = (
|
|
1871
1780
|
/** @type {Node} */
|
|
1872
1781
|
t.ownerDocument
|
|
@@ -1877,12 +1786,12 @@ function li(e) {
|
|
|
1877
1786
|
on = e, un || (un = !0, setTimeout(() => {
|
|
1878
1787
|
un = !1, on = null;
|
|
1879
1788
|
}));
|
|
1880
|
-
var a = 0, o = on === e && e[
|
|
1789
|
+
var a = 0, o = on === e && e[ur];
|
|
1881
1790
|
if (o) {
|
|
1882
1791
|
var u = i.indexOf(o);
|
|
1883
1792
|
if (u !== -1 && (t === document || t === /** @type {any} */
|
|
1884
1793
|
window)) {
|
|
1885
|
-
e[
|
|
1794
|
+
e[ur] = t;
|
|
1886
1795
|
return;
|
|
1887
1796
|
}
|
|
1888
1797
|
var l = i.indexOf(t);
|
|
@@ -1892,18 +1801,18 @@ function li(e) {
|
|
|
1892
1801
|
}
|
|
1893
1802
|
if (s = /** @type {Element} */
|
|
1894
1803
|
i[a] || e.target, s !== t) {
|
|
1895
|
-
|
|
1804
|
+
Vt(e, "currentTarget", {
|
|
1896
1805
|
configurable: !0,
|
|
1897
1806
|
get() {
|
|
1898
1807
|
return s || r;
|
|
1899
1808
|
}
|
|
1900
1809
|
});
|
|
1901
|
-
var f =
|
|
1810
|
+
var f = V, h = W;
|
|
1902
1811
|
Je(null), ht(null);
|
|
1903
1812
|
try {
|
|
1904
1813
|
for (var c, v = []; s !== null && s !== t; ) {
|
|
1905
1814
|
try {
|
|
1906
|
-
var m = s[
|
|
1815
|
+
var m = s[ur]?.[n];
|
|
1907
1816
|
m != null && (!/** @type {any} */
|
|
1908
1817
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1909
1818
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
@@ -1925,31 +1834,31 @@ function li(e) {
|
|
|
1925
1834
|
throw c;
|
|
1926
1835
|
}
|
|
1927
1836
|
} finally {
|
|
1928
|
-
e[
|
|
1837
|
+
e[ur] = t, delete e.currentTarget, Je(f), ht(h);
|
|
1929
1838
|
}
|
|
1930
1839
|
}
|
|
1931
1840
|
}
|
|
1932
|
-
const
|
|
1841
|
+
const lo = (
|
|
1933
1842
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
1934
1843
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
1935
1844
|
/** @param {string} html */
|
|
1936
1845
|
createHTML: (e) => e
|
|
1937
1846
|
})
|
|
1938
1847
|
);
|
|
1939
|
-
function
|
|
1848
|
+
function fo(e) {
|
|
1940
1849
|
return (
|
|
1941
1850
|
/** @type {string} */
|
|
1942
|
-
|
|
1851
|
+
lo?.createHTML(e) ?? e
|
|
1943
1852
|
);
|
|
1944
1853
|
}
|
|
1945
|
-
function
|
|
1854
|
+
function ho(e) {
|
|
1946
1855
|
var t = Wn("template");
|
|
1947
|
-
return t.innerHTML =
|
|
1856
|
+
return t.innerHTML = fo(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1948
1857
|
}
|
|
1949
1858
|
function Pn(e, t) {
|
|
1950
1859
|
var r = (
|
|
1951
1860
|
/** @type {Effect} */
|
|
1952
|
-
|
|
1861
|
+
W
|
|
1953
1862
|
);
|
|
1954
1863
|
r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
|
|
1955
1864
|
}
|
|
@@ -1959,7 +1868,7 @@ function Kn(e, t) {
|
|
|
1959
1868
|
return () => {
|
|
1960
1869
|
if (ue)
|
|
1961
1870
|
return Pn(de, null), de;
|
|
1962
|
-
n === void 0 && (n =
|
|
1871
|
+
n === void 0 && (n = ho(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
|
|
1963
1872
|
/* @__PURE__ */ dr(n));
|
|
1964
1873
|
var s = (
|
|
1965
1874
|
/** @type {TemplateNode} */
|
|
@@ -1972,9 +1881,9 @@ function Br(e, t) {
|
|
|
1972
1881
|
if (ue) {
|
|
1973
1882
|
var r = (
|
|
1974
1883
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1975
|
-
|
|
1884
|
+
W
|
|
1976
1885
|
);
|
|
1977
|
-
(!(r.f & Lt) || r.nodes.end === null) && (r.nodes.end = de),
|
|
1886
|
+
(!(r.f & Lt) || r.nodes.end === null) && (r.nodes.end = de), kn();
|
|
1978
1887
|
return;
|
|
1979
1888
|
}
|
|
1980
1889
|
e !== null && e.before(
|
|
@@ -1982,25 +1891,25 @@ function Br(e, t) {
|
|
|
1982
1891
|
t
|
|
1983
1892
|
);
|
|
1984
1893
|
}
|
|
1985
|
-
const
|
|
1986
|
-
function
|
|
1987
|
-
return
|
|
1894
|
+
const co = ["touchstart", "touchmove"];
|
|
1895
|
+
function vo(e) {
|
|
1896
|
+
return co.includes(e);
|
|
1988
1897
|
}
|
|
1989
|
-
function
|
|
1898
|
+
function po(e) {
|
|
1990
1899
|
let t = 0, r = br(0), n;
|
|
1991
1900
|
return () => {
|
|
1992
|
-
Jn() && (ve(r), cs(() => (t === 0 && (n =
|
|
1993
|
-
|
|
1901
|
+
Jn() && (ve(r), cs(() => (t === 0 && (n = Vr(() => e(() => hr(r)))), t += 1, () => {
|
|
1902
|
+
Nt(() => {
|
|
1994
1903
|
t -= 1, t === 0 && (n?.(), n = void 0, hr(r));
|
|
1995
1904
|
});
|
|
1996
1905
|
})));
|
|
1997
1906
|
};
|
|
1998
1907
|
}
|
|
1999
|
-
var
|
|
2000
|
-
function
|
|
2001
|
-
new
|
|
1908
|
+
var mo = Jt | It;
|
|
1909
|
+
function go(e, t, r, n) {
|
|
1910
|
+
new yo(e, t, r, n);
|
|
2002
1911
|
}
|
|
2003
|
-
class
|
|
1912
|
+
class yo {
|
|
2004
1913
|
/** @type {Boundary | null} */
|
|
2005
1914
|
parent;
|
|
2006
1915
|
is_pending = !1;
|
|
@@ -2028,7 +1937,7 @@ class Eo {
|
|
|
2028
1937
|
#o = null;
|
|
2029
1938
|
/** @type {DocumentFragment | null} */
|
|
2030
1939
|
#s = null;
|
|
2031
|
-
#
|
|
1940
|
+
#v = 0;
|
|
2032
1941
|
#l = 0;
|
|
2033
1942
|
#f = !1;
|
|
2034
1943
|
/** @type {Set<Effect>} */
|
|
@@ -2043,7 +1952,7 @@ class Eo {
|
|
|
2043
1952
|
* @type {Source<number> | null}
|
|
2044
1953
|
*/
|
|
2045
1954
|
#h = null;
|
|
2046
|
-
#b =
|
|
1955
|
+
#b = po(() => (this.#h = br(this.#v), () => {
|
|
2047
1956
|
this.#h = null;
|
|
2048
1957
|
}));
|
|
2049
1958
|
/**
|
|
@@ -2056,27 +1965,27 @@ class Eo {
|
|
|
2056
1965
|
this.#e = t, this.#r = r, this.#u = (s) => {
|
|
2057
1966
|
var a = (
|
|
2058
1967
|
/** @type {Effect} */
|
|
2059
|
-
|
|
1968
|
+
W
|
|
2060
1969
|
);
|
|
2061
1970
|
a.b = this, a.f |= pn, n(s);
|
|
2062
1971
|
}, this.parent = /** @type {Effect} */
|
|
2063
|
-
|
|
1972
|
+
W.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i = ds(() => {
|
|
2064
1973
|
if (ue) {
|
|
2065
1974
|
const s = (
|
|
2066
1975
|
/** @type {Comment} */
|
|
2067
1976
|
this.#t
|
|
2068
1977
|
);
|
|
2069
|
-
|
|
2070
|
-
const a = s.data ===
|
|
2071
|
-
if (s.data.startsWith(
|
|
2072
|
-
const u = JSON.parse(s.data.slice(
|
|
2073
|
-
this.#
|
|
2074
|
-
} else a ? this.#
|
|
1978
|
+
kn();
|
|
1979
|
+
const a = s.data === Ni;
|
|
1980
|
+
if (s.data.startsWith(ti)) {
|
|
1981
|
+
const u = JSON.parse(s.data.slice(ti.length));
|
|
1982
|
+
this.#g(u);
|
|
1983
|
+
} else a ? this.#T() : this.#x();
|
|
2075
1984
|
} else
|
|
2076
|
-
this.#
|
|
2077
|
-
},
|
|
1985
|
+
this.#w();
|
|
1986
|
+
}, mo), ue && (this.#e = de);
|
|
2078
1987
|
}
|
|
2079
|
-
#
|
|
1988
|
+
#x() {
|
|
2080
1989
|
try {
|
|
2081
1990
|
this.#a = gt(() => this.#u(this.#e));
|
|
2082
1991
|
} catch (t) {
|
|
@@ -2086,9 +1995,9 @@ class Eo {
|
|
|
2086
1995
|
/**
|
|
2087
1996
|
* @param {unknown} error The deserialized error from the server's hydration comment
|
|
2088
1997
|
*/
|
|
2089
|
-
#
|
|
2090
|
-
const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#
|
|
2091
|
-
|
|
1998
|
+
#g(t) {
|
|
1999
|
+
const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#y(t);
|
|
2000
|
+
Nt(i), r && (this.#o = gt(() => {
|
|
2092
2001
|
r(
|
|
2093
2002
|
this.#e,
|
|
2094
2003
|
() => t,
|
|
@@ -2102,7 +2011,7 @@ class Eo {
|
|
|
2102
2011
|
* @param {unknown} error
|
|
2103
2012
|
* @returns {{ reset: () => void, invoke_onerror: () => void }}
|
|
2104
2013
|
*/
|
|
2105
|
-
#
|
|
2014
|
+
#y(t) {
|
|
2106
2015
|
var r = !1, n = !1;
|
|
2107
2016
|
const i = () => {
|
|
2108
2017
|
if (r) {
|
|
@@ -2111,8 +2020,8 @@ class Eo {
|
|
|
2111
2020
|
}
|
|
2112
2021
|
r = !0, n && Ia(), this.#o !== null && cr(this.#o, () => {
|
|
2113
2022
|
this.#o = null;
|
|
2114
|
-
}), this.#
|
|
2115
|
-
this.#
|
|
2023
|
+
}), this.#E(() => {
|
|
2024
|
+
this.#w();
|
|
2116
2025
|
});
|
|
2117
2026
|
};
|
|
2118
2027
|
return { reset: i, invoke_onerror: () => {
|
|
@@ -2123,11 +2032,11 @@ class Eo {
|
|
|
2123
2032
|
}
|
|
2124
2033
|
} };
|
|
2125
2034
|
}
|
|
2126
|
-
#
|
|
2035
|
+
#T() {
|
|
2127
2036
|
const t = this.#r.pending;
|
|
2128
|
-
t && (this.is_pending = !0, this.#n = gt(() => t(this.#e)),
|
|
2037
|
+
t && (this.is_pending = !0, this.#n = gt(() => t(this.#e)), Nt(() => {
|
|
2129
2038
|
var r = this.#s = document.createDocumentFragment(), n = Dt(), i = !1;
|
|
2130
|
-
if (r.append(n), this.#a = this.#
|
|
2039
|
+
if (r.append(n), this.#a = this.#E(() => {
|
|
2131
2040
|
try {
|
|
2132
2041
|
return gt(() => this.#u(n));
|
|
2133
2042
|
} catch (s) {
|
|
@@ -2139,7 +2048,7 @@ class Eo {
|
|
|
2139
2048
|
return null;
|
|
2140
2049
|
}
|
|
2141
2050
|
}), this.#a === null) {
|
|
2142
|
-
this.#s = null, i && this.#
|
|
2051
|
+
this.#s = null, i && this.#d(
|
|
2143
2052
|
/** @type {Batch} */
|
|
2144
2053
|
$
|
|
2145
2054
|
);
|
|
@@ -2151,15 +2060,15 @@ class Eo {
|
|
|
2151
2060
|
() => {
|
|
2152
2061
|
this.#n = null;
|
|
2153
2062
|
}
|
|
2154
|
-
), this.#
|
|
2063
|
+
), this.#d(
|
|
2155
2064
|
/** @type {Batch} */
|
|
2156
2065
|
$
|
|
2157
2066
|
));
|
|
2158
2067
|
}));
|
|
2159
2068
|
}
|
|
2160
|
-
#
|
|
2069
|
+
#w() {
|
|
2161
2070
|
try {
|
|
2162
|
-
if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#
|
|
2071
|
+
if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#v = 0, this.#a = gt(() => {
|
|
2163
2072
|
this.#u(this.#e);
|
|
2164
2073
|
}), this.#l > 0) {
|
|
2165
2074
|
var t = this.#s = document.createDocumentFragment();
|
|
@@ -2170,7 +2079,7 @@ class Eo {
|
|
|
2170
2079
|
);
|
|
2171
2080
|
this.#n = gt(() => r(this.#e));
|
|
2172
2081
|
} else
|
|
2173
|
-
this.#
|
|
2082
|
+
this.#d(
|
|
2174
2083
|
/** @type {Batch} */
|
|
2175
2084
|
$
|
|
2176
2085
|
);
|
|
@@ -2181,7 +2090,7 @@ class Eo {
|
|
|
2181
2090
|
/**
|
|
2182
2091
|
* @param {Batch} batch
|
|
2183
2092
|
*/
|
|
2184
|
-
#
|
|
2093
|
+
#d(t) {
|
|
2185
2094
|
this.is_pending = !1, t.transfer_effects(this.#c, this.#m);
|
|
2186
2095
|
}
|
|
2187
2096
|
/**
|
|
@@ -2205,13 +2114,13 @@ class Eo {
|
|
|
2205
2114
|
* @template T
|
|
2206
2115
|
* @param {() => T} fn
|
|
2207
2116
|
*/
|
|
2208
|
-
#
|
|
2209
|
-
var r =
|
|
2210
|
-
ht(this.#i), Je(this.#i),
|
|
2117
|
+
#E(t) {
|
|
2118
|
+
var r = W, n = V, i = Me;
|
|
2119
|
+
ht(this.#i), Je(this.#i), Qt(this.#i.ctx);
|
|
2211
2120
|
try {
|
|
2212
2121
|
return xt.ensure(), t();
|
|
2213
2122
|
} finally {
|
|
2214
|
-
ht(r), Je(n),
|
|
2123
|
+
ht(r), Je(n), Qt(i);
|
|
2215
2124
|
}
|
|
2216
2125
|
}
|
|
2217
2126
|
/**
|
|
@@ -2220,12 +2129,12 @@ class Eo {
|
|
|
2220
2129
|
* @param {1 | -1} d
|
|
2221
2130
|
* @param {Batch} batch
|
|
2222
2131
|
*/
|
|
2223
|
-
#
|
|
2132
|
+
#p(t, r) {
|
|
2224
2133
|
if (!this.has_pending_snippet()) {
|
|
2225
|
-
this.parent && this.parent.#
|
|
2134
|
+
this.parent && this.parent.#p(t, r);
|
|
2226
2135
|
return;
|
|
2227
2136
|
}
|
|
2228
|
-
this.#l += t, this.#l === 0 && (this.#
|
|
2137
|
+
this.#l += t, this.#l === 0 && (this.#d(r), this.#n && cr(this.#n, () => {
|
|
2229
2138
|
this.#n = null;
|
|
2230
2139
|
}), this.#s && (this.#e.before(this.#s), this.#s = null));
|
|
2231
2140
|
}
|
|
@@ -2237,8 +2146,8 @@ class Eo {
|
|
|
2237
2146
|
* @param {Batch} batch
|
|
2238
2147
|
*/
|
|
2239
2148
|
update_pending_count(t, r) {
|
|
2240
|
-
this.#
|
|
2241
|
-
this.#f = !1, this.#h && Ur(this.#h, this.#
|
|
2149
|
+
this.#p(t, r), this.#v += t, !(!this.#h || this.#f) && (this.#f = !0, Nt(() => {
|
|
2150
|
+
this.#f = !1, this.#h && Ur(this.#h, this.#v);
|
|
2242
2151
|
}));
|
|
2243
2152
|
}
|
|
2244
2153
|
get_effect_pending() {
|
|
@@ -2259,19 +2168,19 @@ class Eo {
|
|
|
2259
2168
|
* @param {unknown} error
|
|
2260
2169
|
*/
|
|
2261
2170
|
#M(t) {
|
|
2262
|
-
this.#a && (
|
|
2171
|
+
this.#a && (Ie(this.#a), this.#a = null), this.#n && (Ie(this.#n), this.#n = null), this.#o && (Ie(this.#o), this.#o = null), ue && (ft(
|
|
2263
2172
|
/** @type {TemplateNode} */
|
|
2264
2173
|
this.#t
|
|
2265
|
-
),
|
|
2174
|
+
), ki(), ft(Yi()));
|
|
2266
2175
|
let r = this.#r.failed;
|
|
2267
2176
|
const n = (i) => {
|
|
2268
|
-
const { reset: s, invoke_onerror: a } = this.#
|
|
2269
|
-
a(), r && (this.#o = this.#
|
|
2177
|
+
const { reset: s, invoke_onerror: a } = this.#y(i);
|
|
2178
|
+
a(), r && (this.#o = this.#E(() => {
|
|
2270
2179
|
try {
|
|
2271
2180
|
return gt(() => {
|
|
2272
2181
|
var o = (
|
|
2273
2182
|
/** @type {Effect} */
|
|
2274
|
-
|
|
2183
|
+
W
|
|
2275
2184
|
);
|
|
2276
2185
|
o.b = this, o.f |= pn, r(
|
|
2277
2186
|
this.#e,
|
|
@@ -2288,7 +2197,7 @@ class Eo {
|
|
|
2288
2197
|
}
|
|
2289
2198
|
}));
|
|
2290
2199
|
};
|
|
2291
|
-
|
|
2200
|
+
Nt(() => {
|
|
2292
2201
|
var i;
|
|
2293
2202
|
try {
|
|
2294
2203
|
i = this.transform_error(t);
|
|
@@ -2313,15 +2222,15 @@ function Ce(e, t) {
|
|
|
2313
2222
|
function Ps(e, t) {
|
|
2314
2223
|
return As(e, t);
|
|
2315
2224
|
}
|
|
2316
|
-
function
|
|
2225
|
+
function bo(e, t) {
|
|
2317
2226
|
Tn(), t.intro = t.intro ?? !1;
|
|
2318
2227
|
const r = t.target, n = ue, i = de;
|
|
2319
2228
|
try {
|
|
2320
2229
|
for (var s = /* @__PURE__ */ dr(r); s && (s.nodeType !== jr || /** @type {Comment} */
|
|
2321
|
-
s.data !==
|
|
2230
|
+
s.data !== Bi); )
|
|
2322
2231
|
s = /* @__PURE__ */ Pt(s);
|
|
2323
2232
|
if (!s)
|
|
2324
|
-
throw
|
|
2233
|
+
throw Ft;
|
|
2325
2234
|
Yt(!0), ft(
|
|
2326
2235
|
/** @type {Comment} */
|
|
2327
2236
|
s
|
|
@@ -2333,7 +2242,7 @@ function To(e, t) {
|
|
|
2333
2242
|
if (a instanceof Error && a.message.split(`
|
|
2334
2243
|
`).some((o) => o.startsWith("https://svelte.dev/e/")))
|
|
2335
2244
|
throw a;
|
|
2336
|
-
return a !==
|
|
2245
|
+
return a !== Ft && console.warn("Failed to hydrate: ", a), t.recover === !1 && Ha(), Tn(), Wa(r), Yt(!1), Ps(e, t);
|
|
2337
2246
|
} finally {
|
|
2338
2247
|
Yt(n), ft(i);
|
|
2339
2248
|
}
|
|
@@ -2341,9 +2250,9 @@ function To(e, t) {
|
|
|
2341
2250
|
const Mr = /* @__PURE__ */ new Map();
|
|
2342
2251
|
function As(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: a = !0, transformError: o }) {
|
|
2343
2252
|
Tn();
|
|
2344
|
-
var u = void 0, l =
|
|
2253
|
+
var u = void 0, l = $a(() => {
|
|
2345
2254
|
var f = r ?? t.appendChild(Dt());
|
|
2346
|
-
|
|
2255
|
+
go(
|
|
2347
2256
|
/** @type {TemplateNode} */
|
|
2348
2257
|
f,
|
|
2349
2258
|
{
|
|
@@ -2351,19 +2260,19 @@ function As(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2351
2260
|
}
|
|
2352
2261
|
},
|
|
2353
2262
|
(v) => {
|
|
2354
|
-
|
|
2263
|
+
Yn({});
|
|
2355
2264
|
var m = (
|
|
2356
2265
|
/** @type {ComponentContext} */
|
|
2357
|
-
|
|
2266
|
+
Me
|
|
2358
2267
|
);
|
|
2359
2268
|
if (s && (m.c = s), i && (n.$$events = i), ue && Pn(
|
|
2360
2269
|
/** @type {TemplateNode} */
|
|
2361
2270
|
v,
|
|
2362
2271
|
null
|
|
2363
|
-
), u = e(v, n) ||
|
|
2364
|
-
de.data !==
|
|
2365
|
-
throw Xr(),
|
|
2366
|
-
|
|
2272
|
+
), u = e(v, n) || Fi(), ue && (W.nodes.end = de, de === null || de.nodeType !== jr || /** @type {Comment} */
|
|
2273
|
+
de.data !== Hi))
|
|
2274
|
+
throw Xr(), Ft;
|
|
2275
|
+
Zn();
|
|
2367
2276
|
},
|
|
2368
2277
|
o
|
|
2369
2278
|
);
|
|
@@ -2372,12 +2281,12 @@ function As(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2372
2281
|
var I = v[m];
|
|
2373
2282
|
if (!h.has(I)) {
|
|
2374
2283
|
h.add(I);
|
|
2375
|
-
var M =
|
|
2284
|
+
var M = vo(I);
|
|
2376
2285
|
for (const A of [t, document]) {
|
|
2377
2286
|
var B = Mr.get(A);
|
|
2378
2287
|
B === void 0 && (B = /* @__PURE__ */ new Map(), Mr.set(A, B));
|
|
2379
2288
|
var z = B.get(I);
|
|
2380
|
-
z === void 0 ? (A.addEventListener(I,
|
|
2289
|
+
z === void 0 ? (A.addEventListener(I, fi, { passive: M }), B.set(I, 1)) : B.set(I, z + 1);
|
|
2381
2290
|
}
|
|
2382
2291
|
}
|
|
2383
2292
|
}
|
|
@@ -2392,7 +2301,7 @@ function As(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2392
2301
|
/** @type {number} */
|
|
2393
2302
|
m.get(v)
|
|
2394
2303
|
);
|
|
2395
|
-
--I == 0 ? (M.removeEventListener(v,
|
|
2304
|
+
--I == 0 ? (M.removeEventListener(v, fi), m.delete(v), m.size === 0 && Mr.delete(M)) : m.set(v, I);
|
|
2396
2305
|
}
|
|
2397
2306
|
Sn.delete(c), f !== r && f.parentNode?.removeChild(f);
|
|
2398
2307
|
};
|
|
@@ -2400,11 +2309,11 @@ function As(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2400
2309
|
return An.set(u, l), u;
|
|
2401
2310
|
}
|
|
2402
2311
|
let An = /* @__PURE__ */ new WeakMap();
|
|
2403
|
-
function
|
|
2312
|
+
function xo(e, t) {
|
|
2404
2313
|
const r = An.get(e);
|
|
2405
2314
|
return r ? (An.delete(e), r(t)) : Promise.resolve();
|
|
2406
2315
|
}
|
|
2407
|
-
class
|
|
2316
|
+
class wo {
|
|
2408
2317
|
/** @type {TemplateNode} */
|
|
2409
2318
|
anchor;
|
|
2410
2319
|
/** @type {Map<Batch, Key>} */
|
|
@@ -2457,16 +2366,16 @@ class So {
|
|
|
2457
2366
|
this.#e.get(t)
|
|
2458
2367
|
), n = this.#t.get(r);
|
|
2459
2368
|
if (n)
|
|
2460
|
-
|
|
2369
|
+
ai(n), this.#u.delete(r);
|
|
2461
2370
|
else {
|
|
2462
2371
|
var i = this.#r.get(r);
|
|
2463
|
-
i && (
|
|
2372
|
+
i && (ai(i.effect), this.#t.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
|
|
2464
2373
|
}
|
|
2465
2374
|
for (const [s, a] of this.#e) {
|
|
2466
2375
|
if (this.#e.delete(s), s === t)
|
|
2467
2376
|
break;
|
|
2468
2377
|
const o = this.#r.get(a);
|
|
2469
|
-
o && (
|
|
2378
|
+
o && (Ie(o.effect), this.#r.delete(a));
|
|
2470
2379
|
}
|
|
2471
2380
|
for (const [s, a] of this.#t) {
|
|
2472
2381
|
if (s === r || this.#u.has(s)) continue;
|
|
@@ -2475,7 +2384,7 @@ class So {
|
|
|
2475
2384
|
var l = document.createDocumentFragment();
|
|
2476
2385
|
ys(a, l), l.append(Dt()), this.#r.set(s, { effect: a, fragment: l });
|
|
2477
2386
|
} else
|
|
2478
|
-
|
|
2387
|
+
Ie(a);
|
|
2479
2388
|
this.#u.delete(s), this.#t.delete(s);
|
|
2480
2389
|
};
|
|
2481
2390
|
this.#i || !n ? (this.#u.add(s), cr(a, o, !1)) : o();
|
|
@@ -2489,7 +2398,7 @@ class So {
|
|
|
2489
2398
|
this.#e.delete(t);
|
|
2490
2399
|
const r = Array.from(this.#e.values());
|
|
2491
2400
|
for (const [n, i] of this.#r)
|
|
2492
|
-
r.includes(n) || (
|
|
2401
|
+
r.includes(n) || (Ie(i.effect), this.#r.delete(n));
|
|
2493
2402
|
};
|
|
2494
2403
|
/**
|
|
2495
2404
|
*
|
|
@@ -2500,7 +2409,7 @@ class So {
|
|
|
2500
2409
|
var n = (
|
|
2501
2410
|
/** @type {Batch} */
|
|
2502
2411
|
$
|
|
2503
|
-
), i =
|
|
2412
|
+
), i = Ja();
|
|
2504
2413
|
if (r && !this.#t.has(t) && !this.#r.has(t))
|
|
2505
2414
|
if (i) {
|
|
2506
2415
|
var s = document.createDocumentFragment(), a = Dt();
|
|
@@ -2523,22 +2432,22 @@ class So {
|
|
|
2523
2432
|
ue && (this.anchor = de), this.#a(n);
|
|
2524
2433
|
}
|
|
2525
2434
|
}
|
|
2526
|
-
function
|
|
2527
|
-
|
|
2528
|
-
const t =
|
|
2435
|
+
function Eo(e) {
|
|
2436
|
+
Me === null && Xi(), Mn(() => {
|
|
2437
|
+
const t = Vr(e);
|
|
2529
2438
|
if (typeof t == "function") return (
|
|
2530
2439
|
/** @type {() => void} */
|
|
2531
2440
|
t
|
|
2532
2441
|
);
|
|
2533
2442
|
});
|
|
2534
2443
|
}
|
|
2535
|
-
function
|
|
2536
|
-
|
|
2444
|
+
function To(e) {
|
|
2445
|
+
Me === null && Xi(), Eo(() => () => Vr(e));
|
|
2537
2446
|
}
|
|
2538
|
-
function
|
|
2447
|
+
function hi(e, t, r = !1) {
|
|
2539
2448
|
var n;
|
|
2540
|
-
ue && (n = de,
|
|
2541
|
-
var i = new
|
|
2449
|
+
ue && (n = de, kn());
|
|
2450
|
+
var i = new wo(e), s = r ? Jt : 0;
|
|
2542
2451
|
function a(o, u) {
|
|
2543
2452
|
if (ue) {
|
|
2544
2453
|
var l = Ma(
|
|
@@ -2546,7 +2455,7 @@ function fi(e, t, r = !1) {
|
|
|
2546
2455
|
n
|
|
2547
2456
|
);
|
|
2548
2457
|
if (o !== parseInt(l.substring(1))) {
|
|
2549
|
-
var f =
|
|
2458
|
+
var f = Yi();
|
|
2550
2459
|
ft(f), i.anchor = f, Yt(!1), i.ensure(o, u), Yt(!0);
|
|
2551
2460
|
return;
|
|
2552
2461
|
}
|
|
@@ -2560,9 +2469,9 @@ function fi(e, t, r = !1) {
|
|
|
2560
2469
|
}), o || a(-1, null);
|
|
2561
2470
|
}, s);
|
|
2562
2471
|
}
|
|
2563
|
-
function
|
|
2564
|
-
|
|
2565
|
-
e =
|
|
2472
|
+
function Mo(e, t) {
|
|
2473
|
+
eo(() => {
|
|
2474
|
+
e = W?.parent?.nodes?.start ?? e;
|
|
2566
2475
|
var r = e.getRootNode(), n = (
|
|
2567
2476
|
/** @type {ShadowRoot} */
|
|
2568
2477
|
r.host ? (
|
|
@@ -2589,18 +2498,18 @@ function Os(e) {
|
|
|
2589
2498
|
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
2590
2499
|
return n;
|
|
2591
2500
|
}
|
|
2592
|
-
function
|
|
2501
|
+
function So() {
|
|
2593
2502
|
for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = Os(e)) && (n && (n += " "), n += t);
|
|
2594
2503
|
return n;
|
|
2595
2504
|
}
|
|
2596
|
-
function
|
|
2597
|
-
return typeof e == "object" ?
|
|
2505
|
+
function Po(e) {
|
|
2506
|
+
return typeof e == "object" ? So(e) : e ?? "";
|
|
2598
2507
|
}
|
|
2599
|
-
function
|
|
2508
|
+
function Ao(e, t, r) {
|
|
2600
2509
|
var n = e == null ? "" : "" + e;
|
|
2601
2510
|
return n = n ? n + " " + t : t, n === "" ? null : n;
|
|
2602
2511
|
}
|
|
2603
|
-
function
|
|
2512
|
+
function Oo(e, t) {
|
|
2604
2513
|
return e == null ? null : String(e);
|
|
2605
2514
|
}
|
|
2606
2515
|
function Sr(e, t, r, n, i, s) {
|
|
@@ -2609,51 +2518,168 @@ function Sr(e, t, r, n, i, s) {
|
|
|
2609
2518
|
e[gn]
|
|
2610
2519
|
);
|
|
2611
2520
|
if (ue || a !== r || a === void 0) {
|
|
2612
|
-
var o =
|
|
2521
|
+
var o = Ao(r, n);
|
|
2613
2522
|
(!ue || o !== e.getAttribute("class")) && (o == null ? e.removeAttribute("class") : e.className = o), e[gn] = r;
|
|
2614
2523
|
}
|
|
2615
2524
|
return s;
|
|
2616
2525
|
}
|
|
2617
|
-
function
|
|
2526
|
+
function Bo(e, t, r, n) {
|
|
2618
2527
|
var i = (
|
|
2619
2528
|
/** @type {any} */
|
|
2620
2529
|
e[yn]
|
|
2621
2530
|
);
|
|
2622
2531
|
if (ue || i !== t) {
|
|
2623
|
-
var s =
|
|
2532
|
+
var s = Oo(t);
|
|
2624
2533
|
(!ue || s !== e.getAttribute("style")) && (s == null ? e.removeAttribute("style") : e.style.cssText = s), e[yn] = t;
|
|
2625
2534
|
}
|
|
2626
2535
|
return n;
|
|
2627
2536
|
}
|
|
2628
|
-
const
|
|
2629
|
-
function
|
|
2630
|
-
var i =
|
|
2631
|
-
ue && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
2537
|
+
const No = Symbol("is custom element"), Ho = Symbol("is html"), Co = wa ? "link" : "LINK";
|
|
2538
|
+
function ci(e, t, r, n) {
|
|
2539
|
+
var i = Do(e);
|
|
2540
|
+
ue && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Co) || i[t] !== (i[t] = r) && (t === "loading" && (e[xa] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Lo(e).has(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2632
2541
|
}
|
|
2633
|
-
function
|
|
2542
|
+
function Do(e) {
|
|
2634
2543
|
return (
|
|
2635
2544
|
/** @type {Record<string | symbol, unknown>} **/
|
|
2636
2545
|
/** @type {any} */
|
|
2637
|
-
e[
|
|
2638
|
-
[
|
|
2639
|
-
[
|
|
2546
|
+
e[Ui] ??= {
|
|
2547
|
+
[No]: e.nodeName.includes("-"),
|
|
2548
|
+
[Ho]: e.namespaceURI === ha
|
|
2640
2549
|
}
|
|
2641
2550
|
);
|
|
2642
2551
|
}
|
|
2643
|
-
var
|
|
2644
|
-
function
|
|
2645
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
2552
|
+
var di = /* @__PURE__ */ new Map();
|
|
2553
|
+
function Lo(e) {
|
|
2554
|
+
var t = e.getAttribute("is") || e.nodeName, r = di.get(t);
|
|
2646
2555
|
if (r) return r;
|
|
2647
|
-
|
|
2556
|
+
di.set(t, r = /* @__PURE__ */ new Set());
|
|
2648
2557
|
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
2649
2558
|
n = pa(i);
|
|
2650
2559
|
for (var a in n)
|
|
2651
2560
|
n[a].set && // better safe than sorry, we don't want spread attributes to mess with HTML content
|
|
2652
2561
|
a !== "innerHTML" && a !== "textContent" && a !== "innerText" && r.add(a);
|
|
2653
|
-
i =
|
|
2562
|
+
i = Di(i);
|
|
2654
2563
|
}
|
|
2655
2564
|
return r;
|
|
2656
2565
|
}
|
|
2566
|
+
function qn(e, t, r) {
|
|
2567
|
+
if (e == null)
|
|
2568
|
+
return t(void 0), r && r(void 0), bt;
|
|
2569
|
+
const n = Vr(
|
|
2570
|
+
() => e.subscribe(
|
|
2571
|
+
t,
|
|
2572
|
+
// @ts-expect-error
|
|
2573
|
+
r
|
|
2574
|
+
)
|
|
2575
|
+
);
|
|
2576
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
2577
|
+
}
|
|
2578
|
+
const kt = [];
|
|
2579
|
+
function Io(e, t) {
|
|
2580
|
+
return {
|
|
2581
|
+
subscribe: Wr(e, t).subscribe
|
|
2582
|
+
};
|
|
2583
|
+
}
|
|
2584
|
+
function Wr(e, t = bt) {
|
|
2585
|
+
let r = null;
|
|
2586
|
+
const n = /* @__PURE__ */ new Set();
|
|
2587
|
+
function i(o) {
|
|
2588
|
+
if (ji(e, o) && (e = o, r)) {
|
|
2589
|
+
const u = !kt.length;
|
|
2590
|
+
for (const l of n)
|
|
2591
|
+
l[1](), kt.push(l, e);
|
|
2592
|
+
if (u) {
|
|
2593
|
+
for (let l = 0; l < kt.length; l += 2)
|
|
2594
|
+
kt[l][0](kt[l + 1]);
|
|
2595
|
+
kt.length = 0;
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
function s(o) {
|
|
2600
|
+
i(o(
|
|
2601
|
+
/** @type {T} */
|
|
2602
|
+
e
|
|
2603
|
+
));
|
|
2604
|
+
}
|
|
2605
|
+
function a(o, u = bt) {
|
|
2606
|
+
const l = [o, u];
|
|
2607
|
+
return n.add(l), n.size === 1 && (r = t(i, s) || bt), o(
|
|
2608
|
+
/** @type {T} */
|
|
2609
|
+
e
|
|
2610
|
+
), () => {
|
|
2611
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
2612
|
+
};
|
|
2613
|
+
}
|
|
2614
|
+
return { set: i, update: s, subscribe: a };
|
|
2615
|
+
}
|
|
2616
|
+
function tr(e, t, r) {
|
|
2617
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
2618
|
+
if (!i.every(Boolean))
|
|
2619
|
+
throw new Error("derived() expects stores as input, got a falsy value");
|
|
2620
|
+
const s = t.length < 2;
|
|
2621
|
+
return Io(r, (a, o) => {
|
|
2622
|
+
let u = !1;
|
|
2623
|
+
const l = [];
|
|
2624
|
+
let f = 0, h = bt;
|
|
2625
|
+
const c = () => {
|
|
2626
|
+
if (f)
|
|
2627
|
+
return;
|
|
2628
|
+
h();
|
|
2629
|
+
const m = t(n ? l[0] : l, a, o);
|
|
2630
|
+
s ? a(m) : h = typeof m == "function" ? m : bt;
|
|
2631
|
+
}, v = i.map(
|
|
2632
|
+
(m, I) => qn(
|
|
2633
|
+
m,
|
|
2634
|
+
(M) => {
|
|
2635
|
+
l[I] = M, f &= ~(1 << I), u && c();
|
|
2636
|
+
},
|
|
2637
|
+
() => {
|
|
2638
|
+
f |= 1 << I;
|
|
2639
|
+
}
|
|
2640
|
+
)
|
|
2641
|
+
);
|
|
2642
|
+
return u = !0, c(), function() {
|
|
2643
|
+
Li(v), h(), u = !1;
|
|
2644
|
+
};
|
|
2645
|
+
});
|
|
2646
|
+
}
|
|
2647
|
+
function Ro(e) {
|
|
2648
|
+
let t;
|
|
2649
|
+
return qn(e, (r) => t = r)(), t;
|
|
2650
|
+
}
|
|
2651
|
+
let On = Symbol("unmounted");
|
|
2652
|
+
function zo(e, t, r) {
|
|
2653
|
+
const n = r[t] ??= {
|
|
2654
|
+
store: null,
|
|
2655
|
+
source: /* @__PURE__ */ ns(void 0),
|
|
2656
|
+
unsubscribe: bt
|
|
2657
|
+
};
|
|
2658
|
+
if (n.store !== e && !(On in r))
|
|
2659
|
+
if (n.unsubscribe(), n.store = e ?? null, e == null)
|
|
2660
|
+
n.source.v = void 0, n.unsubscribe = bt;
|
|
2661
|
+
else {
|
|
2662
|
+
var i = !0;
|
|
2663
|
+
n.unsubscribe = qn(e, (s) => {
|
|
2664
|
+
i ? n.source.v = s : Fe(n.source, s);
|
|
2665
|
+
}), i = !1;
|
|
2666
|
+
}
|
|
2667
|
+
return e && On in r ? Ro(e) : ve(n.source);
|
|
2668
|
+
}
|
|
2669
|
+
function Go() {
|
|
2670
|
+
const e = {};
|
|
2671
|
+
function t() {
|
|
2672
|
+
fs(() => {
|
|
2673
|
+
for (var r in e)
|
|
2674
|
+
e[r].unsubscribe();
|
|
2675
|
+
Vt(e, On, {
|
|
2676
|
+
enumerable: !1,
|
|
2677
|
+
value: !0
|
|
2678
|
+
});
|
|
2679
|
+
});
|
|
2680
|
+
}
|
|
2681
|
+
return [e, t];
|
|
2682
|
+
}
|
|
2657
2683
|
function Tt(e, t, r, n) {
|
|
2658
2684
|
var i = (
|
|
2659
2685
|
/** @type {V} */
|
|
@@ -2672,7 +2698,7 @@ function Tt(e, t, r, n) {
|
|
|
2672
2698
|
};
|
|
2673
2699
|
var l = !1, f = /* @__PURE__ */ Ki(() => (l = !1, u())), h = (
|
|
2674
2700
|
/** @type {Effect} */
|
|
2675
|
-
|
|
2701
|
+
W
|
|
2676
2702
|
);
|
|
2677
2703
|
return (
|
|
2678
2704
|
/** @type {() => V} */
|
|
@@ -2681,7 +2707,7 @@ function Tt(e, t, r, n) {
|
|
|
2681
2707
|
const m = v ? ve(f) : c;
|
|
2682
2708
|
return Fe(f, m), l = !0, i !== void 0 && (i = m), c;
|
|
2683
2709
|
}
|
|
2684
|
-
return wt && l || h.f &
|
|
2710
|
+
return wt && l || h.f & Le ? f.v : ve(f);
|
|
2685
2711
|
}
|
|
2686
2712
|
);
|
|
2687
2713
|
}
|
|
@@ -2717,7 +2743,7 @@ class ko {
|
|
|
2717
2743
|
}
|
|
2718
2744
|
}
|
|
2719
2745
|
);
|
|
2720
|
-
this.#t = (t.hydrate ?
|
|
2746
|
+
this.#t = (t.hydrate ? bo : Ps)(t.component, {
|
|
2721
2747
|
target: t.target,
|
|
2722
2748
|
anchor: t.anchor,
|
|
2723
2749
|
props: i,
|
|
@@ -2727,7 +2753,7 @@ class ko {
|
|
|
2727
2753
|
transformError: t.transformError
|
|
2728
2754
|
}), (!t?.props?.$$host || t.sync === !1) && yt(), this.#e = i.$$events;
|
|
2729
2755
|
for (const s of Object.keys(this.#t))
|
|
2730
|
-
s === "$set" || s === "$destroy" || s === "$on" ||
|
|
2756
|
+
s === "$set" || s === "$destroy" || s === "$on" || Vt(this, s, {
|
|
2731
2757
|
get() {
|
|
2732
2758
|
return this.#t[s];
|
|
2733
2759
|
},
|
|
@@ -2741,7 +2767,7 @@ class ko {
|
|
|
2741
2767
|
(s) => {
|
|
2742
2768
|
Object.assign(i, s);
|
|
2743
2769
|
}, this.#t.$destroy = () => {
|
|
2744
|
-
|
|
2770
|
+
xo(this.#t);
|
|
2745
2771
|
};
|
|
2746
2772
|
}
|
|
2747
2773
|
/** @param {Record<string, any>} props */
|
|
@@ -2849,7 +2875,7 @@ typeof HTMLElement == "function" && (Bs = class extends HTMLElement {
|
|
|
2849
2875
|
$$slots: t,
|
|
2850
2876
|
$$host: this
|
|
2851
2877
|
}
|
|
2852
|
-
}), this.$$me =
|
|
2878
|
+
}), this.$$me = _a(() => {
|
|
2853
2879
|
cs(() => {
|
|
2854
2880
|
this.$$r = !0;
|
|
2855
2881
|
for (const n of Lr(this.$$c)) {
|
|
@@ -2948,7 +2974,7 @@ function Ns(e, t, r, n, i, s) {
|
|
|
2948
2974
|
}
|
|
2949
2975
|
};
|
|
2950
2976
|
return Lr(t).forEach((o) => {
|
|
2951
|
-
|
|
2977
|
+
Vt(a.prototype, o, {
|
|
2952
2978
|
get() {
|
|
2953
2979
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
2954
2980
|
},
|
|
@@ -2956,13 +2982,13 @@ function Ns(e, t, r, n, i, s) {
|
|
|
2956
2982
|
u = Nr(o, u, t), this.$$d[o] = u;
|
|
2957
2983
|
var l = this.$$c;
|
|
2958
2984
|
if (l) {
|
|
2959
|
-
var f =
|
|
2985
|
+
var f = jt(l, o)?.get;
|
|
2960
2986
|
f ? l[o] = u : l.$set({ [o]: u });
|
|
2961
2987
|
}
|
|
2962
2988
|
}
|
|
2963
2989
|
});
|
|
2964
2990
|
}), n.forEach((o) => {
|
|
2965
|
-
|
|
2991
|
+
Vt(a.prototype, o, {
|
|
2966
2992
|
get() {
|
|
2967
2993
|
return this.$$c?.[o];
|
|
2968
2994
|
}
|
|
@@ -2974,7 +3000,7 @@ var Jr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2974
3000
|
function Qr(e) {
|
|
2975
3001
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2976
3002
|
}
|
|
2977
|
-
var
|
|
3003
|
+
var vi = { exports: {} };
|
|
2978
3004
|
/** @license
|
|
2979
3005
|
* eventsource.js
|
|
2980
3006
|
* Available under MIT License (MIT)
|
|
@@ -3042,8 +3068,8 @@ var di = { exports: {} };
|
|
|
3042
3068
|
throw new Error();
|
|
3043
3069
|
}
|
|
3044
3070
|
for (var b = 65533, U = "", D = this.bitsNeeded, Z = this.codePoint, ae = 0; ae < d.length; ae += 1) {
|
|
3045
|
-
var
|
|
3046
|
-
D !== 0 && (
|
|
3071
|
+
var j = d[ae];
|
|
3072
|
+
D !== 0 && (j < 128 || j > 191 || !w(Z << 6 | j & 63, D - 6, P(D, Z))) && (D = 0, Z = b, U += String.fromCharCode(Z)), D === 0 ? (j >= 0 && j <= 127 ? (D = 0, Z = j) : j >= 192 && j <= 223 ? (D = 6 * 1, Z = j & 31) : j >= 224 && j <= 239 ? (D = 6 * 2, Z = j & 15) : j >= 240 && j <= 247 ? (D = 6 * 3, Z = j & 7) : (D = 0, Z = b), D !== 0 && !w(Z, D, P(D, Z)) && (D = 0, Z = b)) : (D -= 6, Z = Z << 6 | j & 63), D === 0 && (Z <= 65535 ? U += String.fromCharCode(Z) : (U += String.fromCharCode(55296 + (Z - 65535 - 1 >> 10)), U += String.fromCharCode(56320 + (Z - 65535 - 1 & 1023))));
|
|
3047
3073
|
}
|
|
3048
3074
|
return this.bitsNeeded = D, this.codePoint = Z, U;
|
|
3049
3075
|
};
|
|
@@ -3090,7 +3116,7 @@ var di = { exports: {} };
|
|
|
3090
3116
|
}
|
|
3091
3117
|
P.readyState = 3, P.responseText = k, P.onprogress();
|
|
3092
3118
|
}
|
|
3093
|
-
},
|
|
3119
|
+
}, j = function(k, le) {
|
|
3094
3120
|
if ((le == null || le.preventDefault == null) && (le = {
|
|
3095
3121
|
preventDefault: A
|
|
3096
3122
|
}), ae(), U === 1 || U === 2 || U === 3) {
|
|
@@ -3105,18 +3131,18 @@ var di = { exports: {} };
|
|
|
3105
3131
|
P.onreadystatechange();
|
|
3106
3132
|
}
|
|
3107
3133
|
}, ne = function(k) {
|
|
3108
|
-
b != null && (b.readyState === 4 ? (!("onload" in b) || !("onerror" in b) || !("onabort" in b)) &&
|
|
3134
|
+
b != null && (b.readyState === 4 ? (!("onload" in b) || !("onerror" in b) || !("onabort" in b)) && j(b.responseText === "" ? "error" : "load", k) : b.readyState === 3 ? "onprogress" in b || ae() : b.readyState === 2 && Z());
|
|
3109
3135
|
}, se = function() {
|
|
3110
3136
|
D = n(function() {
|
|
3111
3137
|
se();
|
|
3112
3138
|
}, 500), b.readyState === 3 && ae();
|
|
3113
3139
|
};
|
|
3114
3140
|
"onload" in b && (b.onload = function(k) {
|
|
3115
|
-
|
|
3141
|
+
j("load", k);
|
|
3116
3142
|
}), "onerror" in b && (b.onerror = function(k) {
|
|
3117
|
-
|
|
3143
|
+
j("error", k);
|
|
3118
3144
|
}), "onabort" in b && (b.onabort = function(k) {
|
|
3119
|
-
|
|
3145
|
+
j("abort", k);
|
|
3120
3146
|
}), "onprogress" in b && (b.onprogress = ae), "onreadystatechange" in b && (b.onreadystatechange = function(k) {
|
|
3121
3147
|
ne(k);
|
|
3122
3148
|
}), ("contentType" in b || !("ontimeout" in s.prototype)) && (w += (w.indexOf("?") === -1 ? "?" : "&") + "padding=true"), b.open(d, w, !0), "readyState" in b && (D = n(function() {
|
|
@@ -3183,8 +3209,8 @@ var di = { exports: {} };
|
|
|
3183
3209
|
w(ne, se, k, new R(le));
|
|
3184
3210
|
}
|
|
3185
3211
|
}, d.withCredentials = D;
|
|
3186
|
-
for (var
|
|
3187
|
-
Object.prototype.hasOwnProperty.call(Z,
|
|
3212
|
+
for (var j in Z)
|
|
3213
|
+
Object.prototype.hasOwnProperty.call(Z, j) && d.setRequestHeader(j, Z[j]);
|
|
3188
3214
|
return d.send(), d;
|
|
3189
3215
|
};
|
|
3190
3216
|
function x(d) {
|
|
@@ -3196,7 +3222,7 @@ var di = { exports: {} };
|
|
|
3196
3222
|
function G() {
|
|
3197
3223
|
}
|
|
3198
3224
|
G.prototype.open = function(d, w, P, b, U, D, Z) {
|
|
3199
|
-
var ae = null,
|
|
3225
|
+
var ae = null, j = new I(), ne = j.signal, se = new v();
|
|
3200
3226
|
return h(U, {
|
|
3201
3227
|
headers: Z,
|
|
3202
3228
|
credentials: D ? "include" : "same-origin",
|
|
@@ -3204,19 +3230,19 @@ var di = { exports: {} };
|
|
|
3204
3230
|
cache: "no-store"
|
|
3205
3231
|
}).then(function(k) {
|
|
3206
3232
|
return ae = k.body.getReader(), w(k.status, k.statusText, k.headers.get("Content-Type"), new x(k.headers)), new f(function(le, ct) {
|
|
3207
|
-
var
|
|
3208
|
-
ae.read().then(function(
|
|
3209
|
-
if (
|
|
3233
|
+
var ir = function() {
|
|
3234
|
+
ae.read().then(function(ze) {
|
|
3235
|
+
if (ze.done)
|
|
3210
3236
|
le(void 0);
|
|
3211
3237
|
else {
|
|
3212
|
-
var Ae = se.decode(
|
|
3213
|
-
P(Ae),
|
|
3238
|
+
var Ae = se.decode(ze.value, { stream: !0 });
|
|
3239
|
+
P(Ae), ir();
|
|
3214
3240
|
}
|
|
3215
|
-
}).catch(function(
|
|
3216
|
-
ct(
|
|
3241
|
+
}).catch(function(ze) {
|
|
3242
|
+
ct(ze);
|
|
3217
3243
|
});
|
|
3218
3244
|
};
|
|
3219
|
-
|
|
3245
|
+
ir();
|
|
3220
3246
|
});
|
|
3221
3247
|
}).catch(function(k) {
|
|
3222
3248
|
if (k.name !== "AbortError")
|
|
@@ -3225,7 +3251,7 @@ var di = { exports: {} };
|
|
|
3225
3251
|
b(k);
|
|
3226
3252
|
}), {
|
|
3227
3253
|
abort: function() {
|
|
3228
|
-
ae?.cancel(),
|
|
3254
|
+
ae?.cancel(), j.abort();
|
|
3229
3255
|
}
|
|
3230
3256
|
};
|
|
3231
3257
|
};
|
|
@@ -3280,11 +3306,11 @@ var di = { exports: {} };
|
|
|
3280
3306
|
Y.call(this, d), this.error = w.error;
|
|
3281
3307
|
}
|
|
3282
3308
|
y.prototype = Object.create(Y.prototype);
|
|
3283
|
-
var p = -1, E = 0, g = 1, N = 2, C = -1, L = 0, te = 1, re = 2, fe = 3,
|
|
3309
|
+
var p = -1, E = 0, g = 1, N = 2, C = -1, L = 0, te = 1, re = 2, fe = 3, me = /^text\/event\-stream(;.*)?$/i, Ze = 1e3, Re = 18e6, q = function(d, w) {
|
|
3284
3310
|
var P = d == null ? w : parseInt(d, 10);
|
|
3285
3311
|
return P !== P && (P = w), ie(P);
|
|
3286
3312
|
}, ie = function(d) {
|
|
3287
|
-
return Math.min(Math.max(d, Ze),
|
|
3313
|
+
return Math.min(Math.max(d, Ze), Re);
|
|
3288
3314
|
}, _ = function(d, w, P) {
|
|
3289
3315
|
try {
|
|
3290
3316
|
typeof w == "function" && w.call(d, P);
|
|
@@ -3292,7 +3318,7 @@ var di = { exports: {} };
|
|
|
3292
3318
|
O(b);
|
|
3293
3319
|
}
|
|
3294
3320
|
};
|
|
3295
|
-
function
|
|
3321
|
+
function X(d, w) {
|
|
3296
3322
|
H.call(this), w = w || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, je(this, d, w);
|
|
3297
3323
|
}
|
|
3298
3324
|
function xe() {
|
|
@@ -3301,45 +3327,45 @@ var di = { exports: {} };
|
|
|
3301
3327
|
var we = h != null && c != null && "body" in c.prototype;
|
|
3302
3328
|
function je(d, w, P) {
|
|
3303
3329
|
w = String(w);
|
|
3304
|
-
var b = !!P.withCredentials, U = P.lastEventIdQueryParameterName || "lastEventId", D = ie(1e3), Z = q(P.heartbeatTimeout, 45e3), ae = "",
|
|
3330
|
+
var b = !!P.withCredentials, U = P.lastEventIdQueryParameterName || "lastEventId", D = ie(1e3), Z = q(P.heartbeatTimeout, 45e3), ae = "", j = D, ne = !1, se = 0, k = P.headers || {}, le = P.Transport, ct = we && le == null ? void 0 : new ee(le != null ? new le() : xe()), ir = le != null && typeof le != "string" ? new le() : ct == null ? new G() : new S(), ze = void 0, Ae = 0, Qe = p, zt = "", Er = "", dt = "", Tr = "", Oe = L, en = 0, At = 0, oa = function(Ee, ge, Ge, Ue) {
|
|
3305
3331
|
if (Qe === E)
|
|
3306
|
-
if (Ee === 200 &&
|
|
3307
|
-
Qe = g, ne = Date.now(),
|
|
3332
|
+
if (Ee === 200 && Ge != null && me.test(Ge)) {
|
|
3333
|
+
Qe = g, ne = Date.now(), j = D, d.readyState = g;
|
|
3308
3334
|
var Be = new T("open", {
|
|
3309
3335
|
status: Ee,
|
|
3310
3336
|
statusText: ge,
|
|
3311
|
-
headers:
|
|
3337
|
+
headers: Ue
|
|
3312
3338
|
});
|
|
3313
3339
|
d.dispatchEvent(Be), _(d, d.onopen, Be);
|
|
3314
3340
|
} else {
|
|
3315
|
-
var
|
|
3316
|
-
Ee !== 200 ? (ge && (ge = ge.replace(/\s+/g, " ")),
|
|
3341
|
+
var Te = "";
|
|
3342
|
+
Ee !== 200 ? (ge && (ge = ge.replace(/\s+/g, " ")), Te = "EventSource's response has a status " + Ee + " " + ge + " that is not 200. Aborting the connection.") : Te = "EventSource's response has a Content-Type specifying an unsupported type: " + (Ge == null ? "-" : Ge.replace(/\s+/g, " ")) + ". Aborting the connection.", tn();
|
|
3317
3343
|
var Be = new T("error", {
|
|
3318
3344
|
status: Ee,
|
|
3319
3345
|
statusText: ge,
|
|
3320
|
-
headers:
|
|
3346
|
+
headers: Ue
|
|
3321
3347
|
});
|
|
3322
|
-
d.dispatchEvent(Be), _(d, d.onerror, Be), console.error(
|
|
3348
|
+
d.dispatchEvent(Be), _(d, d.onerror, Be), console.error(Te);
|
|
3323
3349
|
}
|
|
3324
3350
|
}, ua = function(Ee) {
|
|
3325
3351
|
if (Qe === g) {
|
|
3326
|
-
for (var ge = -1,
|
|
3327
|
-
var
|
|
3328
|
-
(
|
|
3352
|
+
for (var ge = -1, Ge = 0; Ge < Ee.length; Ge += 1) {
|
|
3353
|
+
var Ue = Ee.charCodeAt(Ge);
|
|
3354
|
+
(Ue === 10 || Ue === 13) && (ge = Ge);
|
|
3329
3355
|
}
|
|
3330
3356
|
var Be = (ge !== -1 ? Tr : "") + Ee.slice(0, ge + 1);
|
|
3331
3357
|
Tr = (ge === -1 ? Tr : "") + Ee.slice(ge + 1), Ee !== "" && (ne = Date.now(), se += Ee.length);
|
|
3332
|
-
for (var
|
|
3333
|
-
var
|
|
3334
|
-
if (Oe === C &&
|
|
3358
|
+
for (var Te = 0; Te < Be.length; Te += 1) {
|
|
3359
|
+
var Ue = Be.charCodeAt(Te);
|
|
3360
|
+
if (Oe === C && Ue === 10)
|
|
3335
3361
|
Oe = L;
|
|
3336
|
-
else if (Oe === C && (Oe = L),
|
|
3362
|
+
else if (Oe === C && (Oe = L), Ue === 13 || Ue === 10) {
|
|
3337
3363
|
if (Oe !== L) {
|
|
3338
|
-
Oe === te && (At =
|
|
3339
|
-
var vt = Be.slice(en, At - 1), pt = Be.slice(At + (At <
|
|
3364
|
+
Oe === te && (At = Te + 1);
|
|
3365
|
+
var vt = Be.slice(en, At - 1), pt = Be.slice(At + (At < Te && Be.charCodeAt(At) === 32 ? 1 : 0), Te);
|
|
3340
3366
|
vt === "data" ? (zt += `
|
|
3341
|
-
`, zt += pt) : vt === "id" ? Er = pt : vt === "event" ? dt = pt : vt === "retry" ? (D = q(pt, D),
|
|
3342
|
-
|
|
3367
|
+
`, zt += pt) : vt === "id" ? Er = pt : vt === "event" ? dt = pt : vt === "retry" ? (D = q(pt, D), j = D) : vt === "heartbeatTimeout" && (Z = q(pt, Z), Ae !== 0 && (i(Ae), Ae = n(function() {
|
|
3368
|
+
sr();
|
|
3343
3369
|
}, Z)));
|
|
3344
3370
|
}
|
|
3345
3371
|
if (Oe === L) {
|
|
@@ -3354,71 +3380,71 @@ var di = { exports: {} };
|
|
|
3354
3380
|
}
|
|
3355
3381
|
zt = "", dt = "";
|
|
3356
3382
|
}
|
|
3357
|
-
Oe =
|
|
3383
|
+
Oe = Ue === 13 ? C : L;
|
|
3358
3384
|
} else
|
|
3359
|
-
Oe === L && (en =
|
|
3385
|
+
Oe === L && (en = Te, Oe = te), Oe === te ? Ue === 58 && (At = Te + 1, Oe = re) : Oe === re && (Oe = fe);
|
|
3360
3386
|
}
|
|
3361
3387
|
}
|
|
3362
|
-
},
|
|
3388
|
+
}, ei = function(Ee) {
|
|
3363
3389
|
if (Qe === g || Qe === E) {
|
|
3364
3390
|
Qe = p, Ae !== 0 && (i(Ae), Ae = 0), Ae = n(function() {
|
|
3365
|
-
|
|
3366
|
-
},
|
|
3391
|
+
sr();
|
|
3392
|
+
}, j), j = ie(Math.min(D * 16, j * 2)), d.readyState = E;
|
|
3367
3393
|
var ge = new y("error", { error: Ee });
|
|
3368
3394
|
d.dispatchEvent(ge), _(d, d.onerror, ge), Ee != null && console.error(Ee);
|
|
3369
3395
|
}
|
|
3370
3396
|
}, tn = function() {
|
|
3371
|
-
Qe = N,
|
|
3372
|
-
},
|
|
3397
|
+
Qe = N, ze != null && (ze.abort(), ze = void 0), Ae !== 0 && (i(Ae), Ae = 0), d.readyState = N;
|
|
3398
|
+
}, sr = function() {
|
|
3373
3399
|
if (Ae = 0, Qe !== p) {
|
|
3374
|
-
if (!ne &&
|
|
3375
|
-
|
|
3400
|
+
if (!ne && ze != null)
|
|
3401
|
+
ei(new Error("No activity within " + Z + " milliseconds. " + (Qe === E ? "No response received." : se + " chars received.") + " Reconnecting.")), ze != null && (ze.abort(), ze = void 0);
|
|
3376
3402
|
else {
|
|
3377
3403
|
var Ee = Math.max((ne || Date.now()) + Z - Date.now(), 1);
|
|
3378
3404
|
ne = !1, Ae = n(function() {
|
|
3379
|
-
|
|
3405
|
+
sr();
|
|
3380
3406
|
}, Ee);
|
|
3381
3407
|
}
|
|
3382
3408
|
return;
|
|
3383
3409
|
}
|
|
3384
3410
|
ne = !1, se = 0, Ae = n(function() {
|
|
3385
|
-
|
|
3411
|
+
sr();
|
|
3386
3412
|
}, Z), Qe = E, zt = "", dt = "", Er = ae, Tr = "", en = 0, At = 0, Oe = L;
|
|
3387
3413
|
var ge = w;
|
|
3388
3414
|
if (w.slice(0, 5) !== "data:" && w.slice(0, 5) !== "blob:" && ae !== "") {
|
|
3389
|
-
var
|
|
3390
|
-
ge =
|
|
3415
|
+
var Ge = w.indexOf("?");
|
|
3416
|
+
ge = Ge === -1 ? w : w.slice(0, Ge + 1) + w.slice(Ge + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(pt, Gt) {
|
|
3391
3417
|
return Gt === U ? "" : pt;
|
|
3392
3418
|
}), ge += (w.indexOf("?") === -1 ? "?" : "&") + U + "=" + encodeURIComponent(ae);
|
|
3393
3419
|
}
|
|
3394
|
-
var
|
|
3420
|
+
var Ue = d.withCredentials, Be = {};
|
|
3395
3421
|
Be.Accept = "text/event-stream";
|
|
3396
|
-
var
|
|
3397
|
-
if (
|
|
3398
|
-
for (var vt in
|
|
3399
|
-
Object.prototype.hasOwnProperty.call(
|
|
3422
|
+
var Te = d.headers;
|
|
3423
|
+
if (Te != null)
|
|
3424
|
+
for (var vt in Te)
|
|
3425
|
+
Object.prototype.hasOwnProperty.call(Te, vt) && (Be[vt] = Te[vt]);
|
|
3400
3426
|
try {
|
|
3401
|
-
|
|
3427
|
+
ze = ir.open(ct, oa, ua, ei, ge, Ue, Be);
|
|
3402
3428
|
} catch (pt) {
|
|
3403
3429
|
throw tn(), pt;
|
|
3404
3430
|
}
|
|
3405
3431
|
};
|
|
3406
|
-
d.url = w, d.readyState = E, d.withCredentials = b, d.headers = k, d._close = tn,
|
|
3432
|
+
d.url = w, d.readyState = E, d.withCredentials = b, d.headers = k, d._close = tn, sr();
|
|
3407
3433
|
}
|
|
3408
|
-
|
|
3434
|
+
X.prototype = Object.create(H.prototype), X.prototype.CONNECTING = E, X.prototype.OPEN = g, X.prototype.CLOSED = N, X.prototype.close = function() {
|
|
3409
3435
|
this._close();
|
|
3410
|
-
},
|
|
3436
|
+
}, X.CONNECTING = E, X.OPEN = g, X.CLOSED = N, X.prototype.withCredentials = void 0;
|
|
3411
3437
|
var Pe = u;
|
|
3412
|
-
s != null && (u == null || !("withCredentials" in u.prototype)) && (Pe =
|
|
3438
|
+
s != null && (u == null || !("withCredentials" in u.prototype)) && (Pe = X), function(d) {
|
|
3413
3439
|
{
|
|
3414
3440
|
var w = d(t);
|
|
3415
3441
|
w !== void 0 && (e.exports = w);
|
|
3416
3442
|
}
|
|
3417
3443
|
}(function(d) {
|
|
3418
|
-
d.EventSourcePolyfill =
|
|
3444
|
+
d.EventSourcePolyfill = X, d.NativeEventSource = u, d.EventSource = Pe;
|
|
3419
3445
|
});
|
|
3420
3446
|
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Jr : globalThis);
|
|
3421
|
-
})(
|
|
3447
|
+
})(vi, vi.exports);
|
|
3422
3448
|
var Hs = { exports: {} };
|
|
3423
3449
|
(function(e, t) {
|
|
3424
3450
|
(function(r, n) {
|
|
@@ -3510,19 +3536,19 @@ var Hs = { exports: {} };
|
|
|
3510
3536
|
return this.$d.getTime();
|
|
3511
3537
|
}, y.startOf = function(p, E) {
|
|
3512
3538
|
var g = this, N = !!O.u(E) || E, C = O.p(p), L = function(ie, _) {
|
|
3513
|
-
var
|
|
3514
|
-
return N ?
|
|
3539
|
+
var X = O.w(g.$u ? Date.UTC(g.$y, _, ie) : new Date(g.$y, _, ie), g);
|
|
3540
|
+
return N ? X : X.endOf(l);
|
|
3515
3541
|
}, te = function(ie, _) {
|
|
3516
3542
|
return O.w(g.toDate()[ie].apply(g.toDate("s"), (N ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(_)), g);
|
|
3517
|
-
}, re = this.$W, fe = this.$M,
|
|
3543
|
+
}, re = this.$W, fe = this.$M, me = this.$D, Ze = "set" + (this.$u ? "UTC" : "");
|
|
3518
3544
|
switch (C) {
|
|
3519
3545
|
case v:
|
|
3520
3546
|
return N ? L(1, 0) : L(31, 11);
|
|
3521
3547
|
case h:
|
|
3522
3548
|
return N ? L(1, fe) : L(0, fe + 1);
|
|
3523
3549
|
case f:
|
|
3524
|
-
var
|
|
3525
|
-
return L(N ?
|
|
3550
|
+
var Re = this.$locale().weekStart || 0, q = (re < Re ? re + 7 : re) - Re;
|
|
3551
|
+
return L(N ? me - q : me + (6 - q), fe);
|
|
3526
3552
|
case l:
|
|
3527
3553
|
case m:
|
|
3528
3554
|
return te(Ze + "Hours", 0);
|
|
@@ -3552,8 +3578,8 @@ var Hs = { exports: {} };
|
|
|
3552
3578
|
var g, N = this;
|
|
3553
3579
|
p = Number(p);
|
|
3554
3580
|
var C = O.p(E), L = function(fe) {
|
|
3555
|
-
var
|
|
3556
|
-
return O.w(
|
|
3581
|
+
var me = H(N);
|
|
3582
|
+
return O.w(me.date(me.date() + Math.round(fe * p)), N);
|
|
3557
3583
|
};
|
|
3558
3584
|
if (C === h) return this.set(h, this.$M + p);
|
|
3559
3585
|
if (C === v) return this.set(v, this.$y + p);
|
|
@@ -3566,16 +3592,16 @@ var Hs = { exports: {} };
|
|
|
3566
3592
|
}, y.format = function(p) {
|
|
3567
3593
|
var E = this, g = this.$locale();
|
|
3568
3594
|
if (!this.isValid()) return g.invalidDate || I;
|
|
3569
|
-
var N = p || "YYYY-MM-DDTHH:mm:ssZ", C = O.z(this), L = this.$H, te = this.$m, re = this.$M, fe = g.weekdays,
|
|
3570
|
-
return _ && (_[
|
|
3595
|
+
var N = p || "YYYY-MM-DDTHH:mm:ssZ", C = O.z(this), L = this.$H, te = this.$m, re = this.$M, fe = g.weekdays, me = g.months, Ze = g.meridiem, Re = function(_, X, xe, we) {
|
|
3596
|
+
return _ && (_[X] || _(E, N)) || xe[X].slice(0, we);
|
|
3571
3597
|
}, q = function(_) {
|
|
3572
3598
|
return O.s(L % 12 || 12, _, "0");
|
|
3573
|
-
}, ie = Ze || function(_,
|
|
3599
|
+
}, ie = Ze || function(_, X, xe) {
|
|
3574
3600
|
var we = _ < 12 ? "AM" : "PM";
|
|
3575
3601
|
return xe ? we.toLowerCase() : we;
|
|
3576
3602
|
};
|
|
3577
|
-
return N.replace(B, function(_,
|
|
3578
|
-
return
|
|
3603
|
+
return N.replace(B, function(_, X) {
|
|
3604
|
+
return X || function(xe) {
|
|
3579
3605
|
switch (xe) {
|
|
3580
3606
|
case "YY":
|
|
3581
3607
|
return String(E.$y).slice(-2);
|
|
@@ -3586,9 +3612,9 @@ var Hs = { exports: {} };
|
|
|
3586
3612
|
case "MM":
|
|
3587
3613
|
return O.s(re + 1, 2, "0");
|
|
3588
3614
|
case "MMM":
|
|
3589
|
-
return
|
|
3615
|
+
return Re(g.monthsShort, re, me, 3);
|
|
3590
3616
|
case "MMMM":
|
|
3591
|
-
return
|
|
3617
|
+
return Re(me, re);
|
|
3592
3618
|
case "D":
|
|
3593
3619
|
return E.$D;
|
|
3594
3620
|
case "DD":
|
|
@@ -3596,9 +3622,9 @@ var Hs = { exports: {} };
|
|
|
3596
3622
|
case "d":
|
|
3597
3623
|
return String(E.$W);
|
|
3598
3624
|
case "dd":
|
|
3599
|
-
return
|
|
3625
|
+
return Re(g.weekdaysMin, E.$W, fe, 2);
|
|
3600
3626
|
case "ddd":
|
|
3601
|
-
return
|
|
3627
|
+
return Re(g.weekdaysShort, E.$W, fe, 3);
|
|
3602
3628
|
case "dddd":
|
|
3603
3629
|
return fe[E.$W];
|
|
3604
3630
|
case "H":
|
|
@@ -3632,18 +3658,18 @@ var Hs = { exports: {} };
|
|
|
3632
3658
|
}, y.utcOffset = function() {
|
|
3633
3659
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
3634
3660
|
}, y.diff = function(p, E, g) {
|
|
3635
|
-
var N, C = this, L = O.p(E), te = H(p), re = (te.utcOffset() - this.utcOffset()) * n, fe = this - te,
|
|
3661
|
+
var N, C = this, L = O.p(E), te = H(p), re = (te.utcOffset() - this.utcOffset()) * n, fe = this - te, me = function() {
|
|
3636
3662
|
return O.m(C, te);
|
|
3637
3663
|
};
|
|
3638
3664
|
switch (L) {
|
|
3639
3665
|
case v:
|
|
3640
|
-
N =
|
|
3666
|
+
N = me() / 12;
|
|
3641
3667
|
break;
|
|
3642
3668
|
case h:
|
|
3643
|
-
N =
|
|
3669
|
+
N = me();
|
|
3644
3670
|
break;
|
|
3645
3671
|
case c:
|
|
3646
|
-
N =
|
|
3672
|
+
N = me() / 3;
|
|
3647
3673
|
break;
|
|
3648
3674
|
case f:
|
|
3649
3675
|
N = (fe - re) / 6048e5;
|
|
@@ -3796,9 +3822,9 @@ var Cs = { exports: {} };
|
|
|
3796
3822
|
O && (J = x[2]), u = this.$locale(), !H && J && (u = z.Ls[J]), this.$d = function(E, g, N, C) {
|
|
3797
3823
|
try {
|
|
3798
3824
|
if (["x", "X"].indexOf(g) > -1) return new Date((g === "X" ? 1e3 : 1) * E);
|
|
3799
|
-
var L = I(g)(E), te = L.year, re = L.month, fe = L.day,
|
|
3800
|
-
te && !re || (je = re > 0 ? re - 1 :
|
|
3801
|
-
var Pe, d =
|
|
3825
|
+
var L = I(g)(E), te = L.year, re = L.month, fe = L.day, me = L.hours, Ze = L.minutes, Re = L.seconds, q = L.milliseconds, ie = L.zone, _ = L.week, X = /* @__PURE__ */ new Date(), xe = fe || (te || re ? 1 : X.getDate()), we = te || X.getFullYear(), je = 0;
|
|
3826
|
+
te && !re || (je = re > 0 ? re - 1 : X.getMonth());
|
|
3827
|
+
var Pe, d = me || 0, w = Ze || 0, P = Re || 0, b = q || 0;
|
|
3802
3828
|
return ie ? new Date(Date.UTC(we, je, xe, d, w, P, b + 60 * ie.offset * 1e3)) : N ? new Date(Date.UTC(we, je, xe, d, w, P, b)) : (Pe = new Date(we, je, xe, d, w, P, b), _ && (Pe = C(Pe).week(_).toDate()), Pe);
|
|
3803
3829
|
} catch {
|
|
3804
3830
|
return /* @__PURE__ */ new Date("");
|
|
@@ -3840,7 +3866,7 @@ function _o(e) {
|
|
|
3840
3866
|
return Array.isArray(e) ? [] : {};
|
|
3841
3867
|
}
|
|
3842
3868
|
function pr(e, t) {
|
|
3843
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
3869
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? qt(_o(e), e, t) : e;
|
|
3844
3870
|
}
|
|
3845
3871
|
function $o(e, t, r) {
|
|
3846
3872
|
return e.concat(t).map(function(n) {
|
|
@@ -3849,16 +3875,16 @@ function $o(e, t, r) {
|
|
|
3849
3875
|
}
|
|
3850
3876
|
function eu(e, t) {
|
|
3851
3877
|
if (!t.customMerge)
|
|
3852
|
-
return
|
|
3878
|
+
return qt;
|
|
3853
3879
|
var r = t.customMerge(e);
|
|
3854
|
-
return typeof r == "function" ? r :
|
|
3880
|
+
return typeof r == "function" ? r : qt;
|
|
3855
3881
|
}
|
|
3856
3882
|
function tu(e) {
|
|
3857
3883
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
3858
3884
|
return Object.propertyIsEnumerable.call(e, t);
|
|
3859
3885
|
}) : [];
|
|
3860
3886
|
}
|
|
3861
|
-
function
|
|
3887
|
+
function pi(e) {
|
|
3862
3888
|
return Object.keys(e).concat(tu(e));
|
|
3863
3889
|
}
|
|
3864
3890
|
function Ds(e, t) {
|
|
@@ -3873,37 +3899,37 @@ function ru(e, t) {
|
|
|
3873
3899
|
}
|
|
3874
3900
|
function nu(e, t, r) {
|
|
3875
3901
|
var n = {};
|
|
3876
|
-
return r.isMergeableObject(e) &&
|
|
3902
|
+
return r.isMergeableObject(e) && pi(e).forEach(function(i) {
|
|
3877
3903
|
n[i] = pr(e[i], r);
|
|
3878
|
-
}),
|
|
3904
|
+
}), pi(t).forEach(function(i) {
|
|
3879
3905
|
ru(e, i) || (Ds(e, i) && r.isMergeableObject(t[i]) ? n[i] = eu(i, r)(e[i], t[i], r) : n[i] = pr(t[i], r));
|
|
3880
3906
|
}), n;
|
|
3881
3907
|
}
|
|
3882
|
-
function
|
|
3908
|
+
function qt(e, t, r) {
|
|
3883
3909
|
r = r || {}, r.arrayMerge = r.arrayMerge || $o, r.isMergeableObject = r.isMergeableObject || Vo, r.cloneUnlessOtherwiseSpecified = pr;
|
|
3884
3910
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
3885
3911
|
return s ? n ? r.arrayMerge(e, t, r) : nu(e, t, r) : pr(t, r);
|
|
3886
3912
|
}
|
|
3887
|
-
|
|
3913
|
+
qt.all = function(t, r) {
|
|
3888
3914
|
if (!Array.isArray(t))
|
|
3889
3915
|
throw new Error("first argument should be an array");
|
|
3890
3916
|
return t.reduce(function(n, i) {
|
|
3891
|
-
return
|
|
3917
|
+
return qt(n, i, r);
|
|
3892
3918
|
}, {});
|
|
3893
3919
|
};
|
|
3894
|
-
var iu =
|
|
3920
|
+
var iu = qt, su = iu;
|
|
3895
3921
|
const au = /* @__PURE__ */ Qr(su);
|
|
3896
|
-
var
|
|
3897
|
-
return
|
|
3922
|
+
var Bn = function(e, t) {
|
|
3923
|
+
return Bn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
3898
3924
|
r.__proto__ = n;
|
|
3899
3925
|
} || function(r, n) {
|
|
3900
3926
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
3901
|
-
},
|
|
3927
|
+
}, Bn(e, t);
|
|
3902
3928
|
};
|
|
3903
3929
|
function Kr(e, t) {
|
|
3904
3930
|
if (typeof t != "function" && t !== null)
|
|
3905
3931
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
3906
|
-
|
|
3932
|
+
Bn(e, t);
|
|
3907
3933
|
function r() {
|
|
3908
3934
|
this.constructor = e;
|
|
3909
3935
|
}
|
|
@@ -3988,19 +4014,19 @@ var cu = function() {
|
|
|
3988
4014
|
return t;
|
|
3989
4015
|
}, kr.apply(this, arguments);
|
|
3990
4016
|
};
|
|
3991
|
-
var
|
|
4017
|
+
var F;
|
|
3992
4018
|
(function(e) {
|
|
3993
4019
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
3994
|
-
})(
|
|
4020
|
+
})(F || (F = {}));
|
|
3995
4021
|
var oe;
|
|
3996
4022
|
(function(e) {
|
|
3997
4023
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
3998
4024
|
})(oe || (oe = {}));
|
|
3999
|
-
var
|
|
4025
|
+
var _t;
|
|
4000
4026
|
(function(e) {
|
|
4001
4027
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
4002
|
-
})(
|
|
4003
|
-
function
|
|
4028
|
+
})(_t || (_t = {}));
|
|
4029
|
+
function mi(e) {
|
|
4004
4030
|
return e.type === oe.literal;
|
|
4005
4031
|
}
|
|
4006
4032
|
function pu(e) {
|
|
@@ -4028,10 +4054,10 @@ function Ys(e) {
|
|
|
4028
4054
|
return e.type === oe.tag;
|
|
4029
4055
|
}
|
|
4030
4056
|
function Zs(e) {
|
|
4031
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
4057
|
+
return !!(e && typeof e == "object" && e.type === _t.number);
|
|
4032
4058
|
}
|
|
4033
|
-
function
|
|
4034
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
4059
|
+
function Nn(e) {
|
|
4060
|
+
return !!(e && typeof e == "object" && e.type === _t.dateTime);
|
|
4035
4061
|
}
|
|
4036
4062
|
var js = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gu = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
4037
4063
|
function yu(e) {
|
|
@@ -4156,8 +4182,8 @@ function xu(e) {
|
|
|
4156
4182
|
function wu(e) {
|
|
4157
4183
|
return e.replace(/^(.*?)-/, "");
|
|
4158
4184
|
}
|
|
4159
|
-
var
|
|
4160
|
-
function
|
|
4185
|
+
var gi = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Xs = /^(@+)?(\+|#+)?[rs]?$/g, Eu = /(\*)(0+)|(#+)(0+)|(0+)/g, Fs = /^(0+)$/;
|
|
4186
|
+
function yi(e) {
|
|
4161
4187
|
var t = {};
|
|
4162
4188
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Xs, function(r, n, i) {
|
|
4163
4189
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
@@ -4217,7 +4243,7 @@ function Tu(e) {
|
|
|
4217
4243
|
}
|
|
4218
4244
|
return t;
|
|
4219
4245
|
}
|
|
4220
|
-
function
|
|
4246
|
+
function bi(e) {
|
|
4221
4247
|
var t = {}, r = Vs(e);
|
|
4222
4248
|
return r || t;
|
|
4223
4249
|
}
|
|
@@ -4257,12 +4283,12 @@ function Mu(e) {
|
|
|
4257
4283
|
continue;
|
|
4258
4284
|
case "scientific":
|
|
4259
4285
|
t = he(he(he({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
4260
|
-
return he(he({}, u),
|
|
4286
|
+
return he(he({}, u), bi(l));
|
|
4261
4287
|
}, {}));
|
|
4262
4288
|
continue;
|
|
4263
4289
|
case "engineering":
|
|
4264
4290
|
t = he(he(he({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
4265
|
-
return he(he({}, u),
|
|
4291
|
+
return he(he({}, u), bi(l));
|
|
4266
4292
|
}, {}));
|
|
4267
4293
|
continue;
|
|
4268
4294
|
case "notation-simple":
|
|
@@ -4324,18 +4350,18 @@ function Mu(e) {
|
|
|
4324
4350
|
t.minimumIntegerDigits = i.stem.length;
|
|
4325
4351
|
continue;
|
|
4326
4352
|
}
|
|
4327
|
-
if (
|
|
4353
|
+
if (gi.test(i.stem)) {
|
|
4328
4354
|
if (i.options.length > 1)
|
|
4329
4355
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
4330
|
-
i.stem.replace(
|
|
4356
|
+
i.stem.replace(gi, function(u, l, f, h, c, v) {
|
|
4331
4357
|
return f === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : c && v ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + v.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
4332
4358
|
});
|
|
4333
4359
|
var s = i.options[0];
|
|
4334
|
-
s === "w" ? t = he(he({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = he(he({}, t),
|
|
4360
|
+
s === "w" ? t = he(he({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = he(he({}, t), yi(s)));
|
|
4335
4361
|
continue;
|
|
4336
4362
|
}
|
|
4337
4363
|
if (Xs.test(i.stem)) {
|
|
4338
|
-
t = he(he({}, t),
|
|
4364
|
+
t = he(he({}, t), yi(i.stem));
|
|
4339
4365
|
continue;
|
|
4340
4366
|
}
|
|
4341
4367
|
var a = Vs(i.stem);
|
|
@@ -5803,14 +5829,14 @@ function Q(e, t) {
|
|
|
5803
5829
|
}
|
|
5804
5830
|
var Bu = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nu = !!String.fromCodePoint, Hu = !!Object.fromEntries, Cu = !!String.prototype.codePointAt, Du = !!String.prototype.trimStart, Lu = !!String.prototype.trimEnd, Iu = !!Number.isSafeInteger, Ru = Iu ? Number.isSafeInteger : function(e) {
|
|
5805
5831
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
5806
|
-
},
|
|
5832
|
+
}, Hn = !0;
|
|
5807
5833
|
try {
|
|
5808
5834
|
var zu = Js("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
5809
|
-
|
|
5835
|
+
Hn = ((cn = zu.exec("a")) === null || cn === void 0 ? void 0 : cn[0]) === "a";
|
|
5810
5836
|
} catch {
|
|
5811
|
-
|
|
5837
|
+
Hn = !1;
|
|
5812
5838
|
}
|
|
5813
|
-
var
|
|
5839
|
+
var xi = Bu ? (
|
|
5814
5840
|
// Native
|
|
5815
5841
|
function(t, r, n) {
|
|
5816
5842
|
return t.startsWith(r, n);
|
|
@@ -5820,7 +5846,7 @@ var bi = Bu ? (
|
|
|
5820
5846
|
function(t, r, n) {
|
|
5821
5847
|
return t.slice(n, n + r.length) === r;
|
|
5822
5848
|
}
|
|
5823
|
-
),
|
|
5849
|
+
), Cn = Nu ? String.fromCodePoint : (
|
|
5824
5850
|
// IE11
|
|
5825
5851
|
function() {
|
|
5826
5852
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -5832,7 +5858,7 @@ var bi = Bu ? (
|
|
|
5832
5858
|
}
|
|
5833
5859
|
return n;
|
|
5834
5860
|
}
|
|
5835
|
-
),
|
|
5861
|
+
), wi = (
|
|
5836
5862
|
// native
|
|
5837
5863
|
Hu ? Object.fromEntries : (
|
|
5838
5864
|
// Ponyfill
|
|
@@ -5882,24 +5908,24 @@ var bi = Bu ? (
|
|
|
5882
5908
|
function Js(e, t) {
|
|
5883
5909
|
return new RegExp(e, t);
|
|
5884
5910
|
}
|
|
5885
|
-
var
|
|
5886
|
-
if (
|
|
5887
|
-
var
|
|
5888
|
-
|
|
5911
|
+
var Dn;
|
|
5912
|
+
if (Hn) {
|
|
5913
|
+
var Ei = Js("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
5914
|
+
Dn = function(t, r) {
|
|
5889
5915
|
var n;
|
|
5890
|
-
|
|
5891
|
-
var i =
|
|
5916
|
+
Ei.lastIndex = r;
|
|
5917
|
+
var i = Ei.exec(t);
|
|
5892
5918
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
5893
5919
|
};
|
|
5894
5920
|
} else
|
|
5895
|
-
|
|
5921
|
+
Dn = function(t, r) {
|
|
5896
5922
|
for (var n = []; ; ) {
|
|
5897
5923
|
var i = Ws(t, r);
|
|
5898
5924
|
if (i === void 0 || Qs(i) || ju(i))
|
|
5899
5925
|
break;
|
|
5900
5926
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
5901
5927
|
}
|
|
5902
|
-
return
|
|
5928
|
+
return Cn.apply(void 0, n);
|
|
5903
5929
|
};
|
|
5904
5930
|
var ku = (
|
|
5905
5931
|
/** @class */
|
|
@@ -5931,8 +5957,8 @@ var ku = (
|
|
|
5931
5957
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
5932
5958
|
if (n)
|
|
5933
5959
|
break;
|
|
5934
|
-
return this.error(
|
|
5935
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
5960
|
+
return this.error(F.UNMATCHED_CLOSING_TAG, Q(this.clonePosition(), this.clonePosition()));
|
|
5961
|
+
} else if (s === 60 && !this.ignoreTag && Ln(this.peek() || 0)) {
|
|
5936
5962
|
var a = this.parseTag(t, r);
|
|
5937
5963
|
if (a.err)
|
|
5938
5964
|
return a;
|
|
@@ -5965,10 +5991,10 @@ var ku = (
|
|
|
5965
5991
|
return s;
|
|
5966
5992
|
var a = s.val, o = this.clonePosition();
|
|
5967
5993
|
if (this.bumpIf("</")) {
|
|
5968
|
-
if (this.isEOF() || !
|
|
5969
|
-
return this.error(
|
|
5994
|
+
if (this.isEOF() || !Ln(this.char()))
|
|
5995
|
+
return this.error(F.INVALID_TAG, Q(o, this.clonePosition()));
|
|
5970
5996
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
5971
|
-
return i !== l ? this.error(
|
|
5997
|
+
return i !== l ? this.error(F.UNMATCHED_CLOSING_TAG, Q(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
5972
5998
|
val: {
|
|
5973
5999
|
type: oe.tag,
|
|
5974
6000
|
value: i,
|
|
@@ -5976,11 +6002,11 @@ var ku = (
|
|
|
5976
6002
|
location: Q(n, this.clonePosition())
|
|
5977
6003
|
},
|
|
5978
6004
|
err: null
|
|
5979
|
-
} : this.error(
|
|
6005
|
+
} : this.error(F.INVALID_TAG, Q(o, this.clonePosition())));
|
|
5980
6006
|
} else
|
|
5981
|
-
return this.error(
|
|
6007
|
+
return this.error(F.UNCLOSED_TAG, Q(n, this.clonePosition()));
|
|
5982
6008
|
} else
|
|
5983
|
-
return this.error(
|
|
6009
|
+
return this.error(F.INVALID_TAG, Q(n, this.clonePosition()));
|
|
5984
6010
|
}, e.prototype.parseTagName = function() {
|
|
5985
6011
|
var t = this.offset();
|
|
5986
6012
|
for (this.bump(); !this.isEOF() && Zu(this.char()); )
|
|
@@ -6046,23 +6072,23 @@ var ku = (
|
|
|
6046
6072
|
r.push(n);
|
|
6047
6073
|
this.bump();
|
|
6048
6074
|
}
|
|
6049
|
-
return
|
|
6075
|
+
return Cn.apply(void 0, r);
|
|
6050
6076
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
6051
6077
|
if (this.isEOF())
|
|
6052
6078
|
return null;
|
|
6053
6079
|
var n = this.char();
|
|
6054
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
6080
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Cn(n));
|
|
6055
6081
|
}, e.prototype.parseArgument = function(t, r) {
|
|
6056
6082
|
var n = this.clonePosition();
|
|
6057
6083
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
6058
|
-
return this.error(
|
|
6084
|
+
return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE, Q(n, this.clonePosition()));
|
|
6059
6085
|
if (this.char() === 125)
|
|
6060
|
-
return this.bump(), this.error(
|
|
6086
|
+
return this.bump(), this.error(F.EMPTY_ARGUMENT, Q(n, this.clonePosition()));
|
|
6061
6087
|
var i = this.parseIdentifierIfPossible().value;
|
|
6062
6088
|
if (!i)
|
|
6063
|
-
return this.error(
|
|
6089
|
+
return this.error(F.MALFORMED_ARGUMENT, Q(n, this.clonePosition()));
|
|
6064
6090
|
if (this.bumpSpace(), this.isEOF())
|
|
6065
|
-
return this.error(
|
|
6091
|
+
return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE, Q(n, this.clonePosition()));
|
|
6066
6092
|
switch (this.char()) {
|
|
6067
6093
|
case 125:
|
|
6068
6094
|
return this.bump(), {
|
|
@@ -6075,12 +6101,12 @@ var ku = (
|
|
|
6075
6101
|
err: null
|
|
6076
6102
|
};
|
|
6077
6103
|
case 44:
|
|
6078
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
6104
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE, Q(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
6079
6105
|
default:
|
|
6080
|
-
return this.error(
|
|
6106
|
+
return this.error(F.MALFORMED_ARGUMENT, Q(n, this.clonePosition()));
|
|
6081
6107
|
}
|
|
6082
6108
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
6083
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
6109
|
+
var t = this.clonePosition(), r = this.offset(), n = Dn(this.message, r), i = r + n.length;
|
|
6084
6110
|
this.bumpTo(i);
|
|
6085
6111
|
var s = this.clonePosition(), a = Q(t, s);
|
|
6086
6112
|
return { value: n, location: a };
|
|
@@ -6088,7 +6114,7 @@ var ku = (
|
|
|
6088
6114
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
6089
6115
|
switch (o) {
|
|
6090
6116
|
case "":
|
|
6091
|
-
return this.error(
|
|
6117
|
+
return this.error(F.EXPECT_ARGUMENT_TYPE, Q(a, u));
|
|
6092
6118
|
case "number":
|
|
6093
6119
|
case "date":
|
|
6094
6120
|
case "time": {
|
|
@@ -6101,7 +6127,7 @@ var ku = (
|
|
|
6101
6127
|
return h;
|
|
6102
6128
|
var c = Uu(h.val);
|
|
6103
6129
|
if (c.length === 0)
|
|
6104
|
-
return this.error(
|
|
6130
|
+
return this.error(F.EXPECT_ARGUMENT_STYLE, Q(this.clonePosition(), this.clonePosition()));
|
|
6105
6131
|
var v = Q(f, this.clonePosition());
|
|
6106
6132
|
l = { style: c, styleLocation: v };
|
|
6107
6133
|
}
|
|
@@ -6109,7 +6135,7 @@ var ku = (
|
|
|
6109
6135
|
if (m.err)
|
|
6110
6136
|
return m;
|
|
6111
6137
|
var I = Q(i, this.clonePosition());
|
|
6112
|
-
if (l &&
|
|
6138
|
+
if (l && xi(l?.style, "::", 0)) {
|
|
6113
6139
|
var M = Gu(l.style.slice(2));
|
|
6114
6140
|
if (o === "number") {
|
|
6115
6141
|
var h = this.parseNumberSkeletonFromString(M, l.styleLocation);
|
|
@@ -6119,11 +6145,11 @@ var ku = (
|
|
|
6119
6145
|
};
|
|
6120
6146
|
} else {
|
|
6121
6147
|
if (M.length === 0)
|
|
6122
|
-
return this.error(
|
|
6148
|
+
return this.error(F.EXPECT_DATE_TIME_SKELETON, I);
|
|
6123
6149
|
var B = M;
|
|
6124
6150
|
this.locale && (B = Su(M, this.locale));
|
|
6125
6151
|
var c = {
|
|
6126
|
-
type:
|
|
6152
|
+
type: _t.dateTime,
|
|
6127
6153
|
pattern: B,
|
|
6128
6154
|
location: l.styleLocation,
|
|
6129
6155
|
parsedOptions: this.shouldParseSkeletons ? yu(B) : {}
|
|
@@ -6149,14 +6175,14 @@ var ku = (
|
|
|
6149
6175
|
case "select": {
|
|
6150
6176
|
var A = this.clonePosition();
|
|
6151
6177
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
6152
|
-
return this.error(
|
|
6178
|
+
return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS, Q(A, kr({}, A)));
|
|
6153
6179
|
this.bumpSpace();
|
|
6154
6180
|
var ee = this.parseIdentifierIfPossible(), K = 0;
|
|
6155
6181
|
if (o !== "select" && ee.value === "offset") {
|
|
6156
6182
|
if (!this.bumpIf(":"))
|
|
6157
|
-
return this.error(
|
|
6183
|
+
return this.error(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, Q(this.clonePosition(), this.clonePosition()));
|
|
6158
6184
|
this.bumpSpace();
|
|
6159
|
-
var h = this.tryParseDecimalInteger(
|
|
6185
|
+
var h = this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
6160
6186
|
if (h.err)
|
|
6161
6187
|
return h;
|
|
6162
6188
|
this.bumpSpace(), ee = this.parseIdentifierIfPossible(), K = h.val;
|
|
@@ -6172,7 +6198,7 @@ var ku = (
|
|
|
6172
6198
|
val: {
|
|
6173
6199
|
type: oe.select,
|
|
6174
6200
|
value: n,
|
|
6175
|
-
options:
|
|
6201
|
+
options: wi(R.val),
|
|
6176
6202
|
location: S
|
|
6177
6203
|
},
|
|
6178
6204
|
err: null
|
|
@@ -6180,7 +6206,7 @@ var ku = (
|
|
|
6180
6206
|
val: {
|
|
6181
6207
|
type: oe.plural,
|
|
6182
6208
|
value: n,
|
|
6183
|
-
options:
|
|
6209
|
+
options: wi(R.val),
|
|
6184
6210
|
offset: K,
|
|
6185
6211
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
6186
6212
|
location: S
|
|
@@ -6189,10 +6215,10 @@ var ku = (
|
|
|
6189
6215
|
};
|
|
6190
6216
|
}
|
|
6191
6217
|
default:
|
|
6192
|
-
return this.error(
|
|
6218
|
+
return this.error(F.INVALID_ARGUMENT_TYPE, Q(a, u));
|
|
6193
6219
|
}
|
|
6194
6220
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
6195
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
6221
|
+
return this.isEOF() || this.char() !== 125 ? this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE, Q(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
6196
6222
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
6197
6223
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
6198
6224
|
var n = this.char();
|
|
@@ -6201,7 +6227,7 @@ var ku = (
|
|
|
6201
6227
|
this.bump();
|
|
6202
6228
|
var i = this.clonePosition();
|
|
6203
6229
|
if (!this.bumpUntil("'"))
|
|
6204
|
-
return this.error(
|
|
6230
|
+
return this.error(F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, Q(i, this.clonePosition()));
|
|
6205
6231
|
this.bump();
|
|
6206
6232
|
break;
|
|
6207
6233
|
}
|
|
@@ -6233,11 +6259,11 @@ var ku = (
|
|
|
6233
6259
|
try {
|
|
6234
6260
|
n = xu(t);
|
|
6235
6261
|
} catch {
|
|
6236
|
-
return this.error(
|
|
6262
|
+
return this.error(F.INVALID_NUMBER_SKELETON, r);
|
|
6237
6263
|
}
|
|
6238
6264
|
return {
|
|
6239
6265
|
val: {
|
|
6240
|
-
type:
|
|
6266
|
+
type: _t.number,
|
|
6241
6267
|
tokens: n,
|
|
6242
6268
|
location: r,
|
|
6243
6269
|
parsedOptions: this.shouldParseSkeletons ? Mu(n) : {}
|
|
@@ -6249,7 +6275,7 @@ var ku = (
|
|
|
6249
6275
|
if (l.length === 0) {
|
|
6250
6276
|
var h = this.clonePosition();
|
|
6251
6277
|
if (r !== "select" && this.bumpIf("=")) {
|
|
6252
|
-
var c = this.tryParseDecimalInteger(
|
|
6278
|
+
var c = this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_SELECTOR, F.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
6253
6279
|
if (c.err)
|
|
6254
6280
|
return c;
|
|
6255
6281
|
f = Q(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
|
|
@@ -6257,11 +6283,11 @@ var ku = (
|
|
|
6257
6283
|
break;
|
|
6258
6284
|
}
|
|
6259
6285
|
if (u.has(l))
|
|
6260
|
-
return this.error(r === "select" ?
|
|
6286
|
+
return this.error(r === "select" ? F.DUPLICATE_SELECT_ARGUMENT_SELECTOR : F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
6261
6287
|
l === "other" && (a = !0), this.bumpSpace();
|
|
6262
6288
|
var v = this.clonePosition();
|
|
6263
6289
|
if (!this.bumpIf("{"))
|
|
6264
|
-
return this.error(r === "select" ?
|
|
6290
|
+
return this.error(r === "select" ? F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, Q(this.clonePosition(), this.clonePosition()));
|
|
6265
6291
|
var m = this.parseMessage(t + 1, r, n);
|
|
6266
6292
|
if (m.err)
|
|
6267
6293
|
return m;
|
|
@@ -6276,7 +6302,7 @@ var ku = (
|
|
|
6276
6302
|
}
|
|
6277
6303
|
]), u.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, f = s.location;
|
|
6278
6304
|
}
|
|
6279
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
6305
|
+
return o.length === 0 ? this.error(r === "select" ? F.EXPECT_SELECT_ARGUMENT_SELECTOR : F.EXPECT_PLURAL_ARGUMENT_SELECTOR, Q(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(F.MISSING_OTHER_CLAUSE, Q(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
6280
6306
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
6281
6307
|
var n = 1, i = this.clonePosition();
|
|
6282
6308
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -6322,7 +6348,7 @@ var ku = (
|
|
|
6322
6348
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
6323
6349
|
}
|
|
6324
6350
|
}, e.prototype.bumpIf = function(t) {
|
|
6325
|
-
if (
|
|
6351
|
+
if (xi(this.message, t, this.offset())) {
|
|
6326
6352
|
for (var r = 0; r < t.length; r++)
|
|
6327
6353
|
this.bump();
|
|
6328
6354
|
return !0;
|
|
@@ -6354,11 +6380,11 @@ var ku = (
|
|
|
6354
6380
|
}, e;
|
|
6355
6381
|
}()
|
|
6356
6382
|
);
|
|
6357
|
-
function
|
|
6383
|
+
function Ln(e) {
|
|
6358
6384
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
6359
6385
|
}
|
|
6360
6386
|
function Yu(e) {
|
|
6361
|
-
return
|
|
6387
|
+
return Ln(e) || e === 47;
|
|
6362
6388
|
}
|
|
6363
6389
|
function Zu(e) {
|
|
6364
6390
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
@@ -6369,27 +6395,27 @@ function Qs(e) {
|
|
|
6369
6395
|
function ju(e) {
|
|
6370
6396
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
6371
6397
|
}
|
|
6372
|
-
function
|
|
6398
|
+
function In(e) {
|
|
6373
6399
|
e.forEach(function(t) {
|
|
6374
6400
|
if (delete t.location, Us(t) || ks(t))
|
|
6375
6401
|
for (var r in t.options)
|
|
6376
|
-
delete t.options[r].location,
|
|
6377
|
-
else Rs(t) && Zs(t.style) || (zs(t) || Gs(t)) &&
|
|
6402
|
+
delete t.options[r].location, In(t.options[r].value);
|
|
6403
|
+
else Rs(t) && Zs(t.style) || (zs(t) || Gs(t)) && Nn(t.style) ? delete t.style.location : Ys(t) && In(t.children);
|
|
6378
6404
|
});
|
|
6379
6405
|
}
|
|
6380
6406
|
function Xu(e, t) {
|
|
6381
6407
|
t === void 0 && (t = {}), t = kr({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
6382
6408
|
var r = new ku(e, t).parse();
|
|
6383
6409
|
if (r.err) {
|
|
6384
|
-
var n = SyntaxError(
|
|
6410
|
+
var n = SyntaxError(F[r.err.kind]);
|
|
6385
6411
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
6386
6412
|
}
|
|
6387
|
-
return t?.captureLocation ||
|
|
6413
|
+
return t?.captureLocation || In(r.val), r.val;
|
|
6388
6414
|
}
|
|
6389
|
-
var
|
|
6415
|
+
var $t;
|
|
6390
6416
|
(function(e) {
|
|
6391
6417
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
6392
|
-
})(
|
|
6418
|
+
})($t || ($t = {}));
|
|
6393
6419
|
var qr = (
|
|
6394
6420
|
/** @class */
|
|
6395
6421
|
function(e) {
|
|
@@ -6402,12 +6428,12 @@ var qr = (
|
|
|
6402
6428
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
6403
6429
|
}, t;
|
|
6404
6430
|
}(Error)
|
|
6405
|
-
),
|
|
6431
|
+
), Ti = (
|
|
6406
6432
|
/** @class */
|
|
6407
6433
|
function(e) {
|
|
6408
6434
|
Kr(t, e);
|
|
6409
6435
|
function t(r, n, i, s) {
|
|
6410
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
6436
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $t.INVALID_VALUE, s) || this;
|
|
6411
6437
|
}
|
|
6412
6438
|
return t;
|
|
6413
6439
|
}(qr)
|
|
@@ -6416,7 +6442,7 @@ var qr = (
|
|
|
6416
6442
|
function(e) {
|
|
6417
6443
|
Kr(t, e);
|
|
6418
6444
|
function t(r, n, i) {
|
|
6419
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
6445
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), $t.INVALID_VALUE, i) || this;
|
|
6420
6446
|
}
|
|
6421
6447
|
return t;
|
|
6422
6448
|
}(qr)
|
|
@@ -6425,7 +6451,7 @@ var qr = (
|
|
|
6425
6451
|
function(e) {
|
|
6426
6452
|
Kr(t, e);
|
|
6427
6453
|
function t(r, n) {
|
|
6428
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
6454
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), $t.MISSING_VALUE, n) || this;
|
|
6429
6455
|
}
|
|
6430
6456
|
return t;
|
|
6431
6457
|
}(qr)
|
|
@@ -6443,7 +6469,7 @@ function Ju(e) {
|
|
|
6443
6469
|
return typeof e == "function";
|
|
6444
6470
|
}
|
|
6445
6471
|
function Hr(e, t, r, n, i, s, a) {
|
|
6446
|
-
if (e.length === 1 &&
|
|
6472
|
+
if (e.length === 1 && mi(e[0]))
|
|
6447
6473
|
return [
|
|
6448
6474
|
{
|
|
6449
6475
|
type: Ne.literal,
|
|
@@ -6452,7 +6478,7 @@ function Hr(e, t, r, n, i, s, a) {
|
|
|
6452
6478
|
];
|
|
6453
6479
|
for (var o = [], u = 0, l = e; u < l.length; u++) {
|
|
6454
6480
|
var f = l[u];
|
|
6455
|
-
if (
|
|
6481
|
+
if (mi(f)) {
|
|
6456
6482
|
o.push({
|
|
6457
6483
|
type: Ne.literal,
|
|
6458
6484
|
value: f.value
|
|
@@ -6478,7 +6504,7 @@ function Hr(e, t, r, n, i, s, a) {
|
|
|
6478
6504
|
continue;
|
|
6479
6505
|
}
|
|
6480
6506
|
if (zs(f)) {
|
|
6481
|
-
var v = typeof f.style == "string" ? n.date[f.style] :
|
|
6507
|
+
var v = typeof f.style == "string" ? n.date[f.style] : Nn(f.style) ? f.style.parsedOptions : void 0;
|
|
6482
6508
|
o.push({
|
|
6483
6509
|
type: Ne.literal,
|
|
6484
6510
|
value: r.getDateTimeFormat(t, v).format(c)
|
|
@@ -6486,7 +6512,7 @@ function Hr(e, t, r, n, i, s, a) {
|
|
|
6486
6512
|
continue;
|
|
6487
6513
|
}
|
|
6488
6514
|
if (Gs(f)) {
|
|
6489
|
-
var v = typeof f.style == "string" ? n.time[f.style] :
|
|
6515
|
+
var v = typeof f.style == "string" ? n.time[f.style] : Nn(f.style) ? f.style.parsedOptions : n.time.medium;
|
|
6490
6516
|
o.push({
|
|
6491
6517
|
type: Ne.literal,
|
|
6492
6518
|
value: r.getDateTimeFormat(t, v).format(c)
|
|
@@ -6518,7 +6544,7 @@ function Hr(e, t, r, n, i, s, a) {
|
|
|
6518
6544
|
if (Us(f)) {
|
|
6519
6545
|
var A = f.options[c] || f.options.other;
|
|
6520
6546
|
if (!A)
|
|
6521
|
-
throw new
|
|
6547
|
+
throw new Ti(f.value, c, Object.keys(f.options), a);
|
|
6522
6548
|
o.push.apply(o, Hr(A.value, t, r, n, i));
|
|
6523
6549
|
continue;
|
|
6524
6550
|
}
|
|
@@ -6528,12 +6554,12 @@ function Hr(e, t, r, n, i, s, a) {
|
|
|
6528
6554
|
if (!Intl.PluralRules)
|
|
6529
6555
|
throw new qr(`Intl.PluralRules is not available in this environment.
|
|
6530
6556
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
6531
|
-
`,
|
|
6557
|
+
`, $t.MISSING_INTL_API, a);
|
|
6532
6558
|
var ee = r.getPluralRules(t, { type: f.pluralType }).select(c - (f.offset || 0));
|
|
6533
6559
|
A = f.options[ee] || f.options.other;
|
|
6534
6560
|
}
|
|
6535
6561
|
if (!A)
|
|
6536
|
-
throw new
|
|
6562
|
+
throw new Ti(f.value, c, Object.keys(f.options), a);
|
|
6537
6563
|
o.push.apply(o, Hr(A.value, t, r, n, i, c - (f.offset || 0)));
|
|
6538
6564
|
continue;
|
|
6539
6565
|
}
|
|
@@ -6741,13 +6767,13 @@ const Mt = {}, el = (e, t, r) => r && (t in Mt || (Mt[t] = {}), e in Mt[t] || (M
|
|
|
6741
6767
|
return el(e, t, s);
|
|
6742
6768
|
}
|
|
6743
6769
|
};
|
|
6744
|
-
let
|
|
6745
|
-
const wr =
|
|
6770
|
+
let _n;
|
|
6771
|
+
const wr = Wr({});
|
|
6746
6772
|
function tl(e) {
|
|
6747
|
-
return
|
|
6773
|
+
return _n[e] || null;
|
|
6748
6774
|
}
|
|
6749
6775
|
function qs(e) {
|
|
6750
|
-
return e in
|
|
6776
|
+
return e in _n;
|
|
6751
6777
|
}
|
|
6752
6778
|
function rl(e, t) {
|
|
6753
6779
|
if (!qs(e))
|
|
@@ -6768,11 +6794,11 @@ function nl(e) {
|
|
|
6768
6794
|
function _s(e, ...t) {
|
|
6769
6795
|
delete Mt[e], wr.update((r) => (r[e] = au.all([r[e] || {}, ...t]), r));
|
|
6770
6796
|
}
|
|
6771
|
-
|
|
6797
|
+
tr(
|
|
6772
6798
|
[wr],
|
|
6773
6799
|
([e]) => Object.keys(e)
|
|
6774
6800
|
);
|
|
6775
|
-
wr.subscribe((e) =>
|
|
6801
|
+
wr.subscribe((e) => _n = e);
|
|
6776
6802
|
const Cr = {};
|
|
6777
6803
|
function il(e, t) {
|
|
6778
6804
|
Cr[e].delete(t), Cr[e].size === 0 && delete Cr[e];
|
|
@@ -6786,7 +6812,7 @@ function sl(e) {
|
|
|
6786
6812
|
return [t, r ? [...r] : []];
|
|
6787
6813
|
}).filter(([, t]) => t.length > 0);
|
|
6788
6814
|
}
|
|
6789
|
-
function
|
|
6815
|
+
function Rn(e) {
|
|
6790
6816
|
return e == null ? !1 : _r(e).some(
|
|
6791
6817
|
(t) => {
|
|
6792
6818
|
var r;
|
|
@@ -6799,20 +6825,20 @@ function al(e, t) {
|
|
|
6799
6825
|
t.map((n) => (il(e, n), n().then((i) => i.default || i)))
|
|
6800
6826
|
).then((n) => _s(e, ...n));
|
|
6801
6827
|
}
|
|
6802
|
-
const
|
|
6828
|
+
const ar = {};
|
|
6803
6829
|
function ea(e) {
|
|
6804
|
-
if (!
|
|
6805
|
-
return e in
|
|
6830
|
+
if (!Rn(e))
|
|
6831
|
+
return e in ar ? ar[e] : Promise.resolve();
|
|
6806
6832
|
const t = sl(e);
|
|
6807
|
-
return
|
|
6833
|
+
return ar[e] = Promise.all(
|
|
6808
6834
|
t.map(
|
|
6809
6835
|
([r, n]) => al(r, n)
|
|
6810
6836
|
)
|
|
6811
6837
|
).then(() => {
|
|
6812
|
-
if (
|
|
6838
|
+
if (Rn(e))
|
|
6813
6839
|
return ea(e);
|
|
6814
|
-
delete
|
|
6815
|
-
}),
|
|
6840
|
+
delete ar[e];
|
|
6841
|
+
}), ar[e];
|
|
6816
6842
|
}
|
|
6817
6843
|
const ol = {
|
|
6818
6844
|
number: {
|
|
@@ -6851,36 +6877,36 @@ const ol = {
|
|
|
6851
6877
|
handleMissingMessage: void 0,
|
|
6852
6878
|
ignoreTag: !0
|
|
6853
6879
|
}, ll = ul;
|
|
6854
|
-
function
|
|
6880
|
+
function er() {
|
|
6855
6881
|
return ll;
|
|
6856
6882
|
}
|
|
6857
|
-
const vn =
|
|
6858
|
-
var fl = Object.defineProperty, hl = Object.defineProperties, cl = Object.getOwnPropertyDescriptors,
|
|
6883
|
+
const vn = Wr(!1);
|
|
6884
|
+
var fl = Object.defineProperty, hl = Object.defineProperties, cl = Object.getOwnPropertyDescriptors, Mi = Object.getOwnPropertySymbols, dl = Object.prototype.hasOwnProperty, vl = Object.prototype.propertyIsEnumerable, Si = (e, t, r) => t in e ? fl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pl = (e, t) => {
|
|
6859
6885
|
for (var r in t || (t = {}))
|
|
6860
|
-
dl.call(t, r) &&
|
|
6861
|
-
if (
|
|
6862
|
-
for (var r of
|
|
6863
|
-
vl.call(t, r) &&
|
|
6886
|
+
dl.call(t, r) && Si(e, r, t[r]);
|
|
6887
|
+
if (Mi)
|
|
6888
|
+
for (var r of Mi(t))
|
|
6889
|
+
vl.call(t, r) && Si(e, r, t[r]);
|
|
6864
6890
|
return e;
|
|
6865
6891
|
}, ml = (e, t) => hl(e, cl(t));
|
|
6866
|
-
let
|
|
6867
|
-
const Yr =
|
|
6868
|
-
function
|
|
6892
|
+
let zn;
|
|
6893
|
+
const Yr = Wr(null);
|
|
6894
|
+
function Pi(e) {
|
|
6869
6895
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
6870
6896
|
}
|
|
6871
|
-
function _r(e, t =
|
|
6872
|
-
const r =
|
|
6873
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
6897
|
+
function _r(e, t = er().fallbackLocale) {
|
|
6898
|
+
const r = Pi(e);
|
|
6899
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Pi(t)])] : r;
|
|
6874
6900
|
}
|
|
6875
6901
|
function Rt() {
|
|
6876
|
-
return
|
|
6902
|
+
return zn ?? void 0;
|
|
6877
6903
|
}
|
|
6878
6904
|
Yr.subscribe((e) => {
|
|
6879
|
-
|
|
6905
|
+
zn = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
6880
6906
|
});
|
|
6881
6907
|
const gl = (e) => {
|
|
6882
|
-
if (e && nl(e) &&
|
|
6883
|
-
const { loadingDelay: t } =
|
|
6908
|
+
if (e && nl(e) && Rn(e)) {
|
|
6909
|
+
const { loadingDelay: t } = er();
|
|
6884
6910
|
let r;
|
|
6885
6911
|
return typeof window < "u" && Rt() != null && t ? r = window.setTimeout(
|
|
6886
6912
|
() => vn.set(!0),
|
|
@@ -6892,7 +6918,7 @@ const gl = (e) => {
|
|
|
6892
6918
|
});
|
|
6893
6919
|
}
|
|
6894
6920
|
return Yr.set(e);
|
|
6895
|
-
},
|
|
6921
|
+
}, rr = ml(pl({}, Yr), {
|
|
6896
6922
|
set: gl
|
|
6897
6923
|
}), $r = (e) => {
|
|
6898
6924
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -6901,14 +6927,14 @@ const gl = (e) => {
|
|
|
6901
6927
|
return i in t ? t[i] : t[i] = e(n);
|
|
6902
6928
|
};
|
|
6903
6929
|
};
|
|
6904
|
-
var yl = Object.defineProperty, Zr = Object.getOwnPropertySymbols, ta = Object.prototype.hasOwnProperty, ra = Object.prototype.propertyIsEnumerable,
|
|
6930
|
+
var yl = Object.defineProperty, Zr = Object.getOwnPropertySymbols, ta = Object.prototype.hasOwnProperty, ra = Object.prototype.propertyIsEnumerable, Ai = (e, t, r) => t in e ? yl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $n = (e, t) => {
|
|
6905
6931
|
for (var r in t || (t = {}))
|
|
6906
|
-
ta.call(t, r) &&
|
|
6932
|
+
ta.call(t, r) && Ai(e, r, t[r]);
|
|
6907
6933
|
if (Zr)
|
|
6908
6934
|
for (var r of Zr(t))
|
|
6909
|
-
ra.call(t, r) &&
|
|
6935
|
+
ra.call(t, r) && Ai(e, r, t[r]);
|
|
6910
6936
|
return e;
|
|
6911
|
-
},
|
|
6937
|
+
}, nr = (e, t) => {
|
|
6912
6938
|
var r = {};
|
|
6913
6939
|
for (var n in e)
|
|
6914
6940
|
ta.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -6918,27 +6944,27 @@ var yl = Object.defineProperty, Zr = Object.getOwnPropertySymbols, ta = Object.p
|
|
|
6918
6944
|
return r;
|
|
6919
6945
|
};
|
|
6920
6946
|
const mr = (e, t) => {
|
|
6921
|
-
const { formats: r } =
|
|
6947
|
+
const { formats: r } = er();
|
|
6922
6948
|
if (e in r && t in r[e])
|
|
6923
6949
|
return r[e][t];
|
|
6924
6950
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
6925
6951
|
}, bl = $r(
|
|
6926
6952
|
(e) => {
|
|
6927
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6953
|
+
var t = e, { locale: r, format: n } = t, i = nr(t, ["locale", "format"]);
|
|
6928
6954
|
if (r == null)
|
|
6929
6955
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
6930
6956
|
return n && (i = mr("number", n)), new Intl.NumberFormat(r, i);
|
|
6931
6957
|
}
|
|
6932
6958
|
), xl = $r(
|
|
6933
6959
|
(e) => {
|
|
6934
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6960
|
+
var t = e, { locale: r, format: n } = t, i = nr(t, ["locale", "format"]);
|
|
6935
6961
|
if (r == null)
|
|
6936
6962
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
6937
6963
|
return n ? i = mr("date", n) : Object.keys(i).length === 0 && (i = mr("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
6938
6964
|
}
|
|
6939
6965
|
), wl = $r(
|
|
6940
6966
|
(e) => {
|
|
6941
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6967
|
+
var t = e, { locale: r, format: n } = t, i = nr(t, ["locale", "format"]);
|
|
6942
6968
|
if (r == null)
|
|
6943
6969
|
throw new Error(
|
|
6944
6970
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
@@ -6948,28 +6974,28 @@ const mr = (e, t) => {
|
|
|
6948
6974
|
), El = (e = {}) => {
|
|
6949
6975
|
var t = e, {
|
|
6950
6976
|
locale: r = Rt()
|
|
6951
|
-
} = t, n =
|
|
6977
|
+
} = t, n = nr(t, [
|
|
6952
6978
|
"locale"
|
|
6953
6979
|
]);
|
|
6954
|
-
return bl(
|
|
6980
|
+
return bl($n({ locale: r }, n));
|
|
6955
6981
|
}, Tl = (e = {}) => {
|
|
6956
6982
|
var t = e, {
|
|
6957
6983
|
locale: r = Rt()
|
|
6958
|
-
} = t, n =
|
|
6984
|
+
} = t, n = nr(t, [
|
|
6959
6985
|
"locale"
|
|
6960
6986
|
]);
|
|
6961
|
-
return xl(
|
|
6987
|
+
return xl($n({ locale: r }, n));
|
|
6962
6988
|
}, Ml = (e = {}) => {
|
|
6963
6989
|
var t = e, {
|
|
6964
6990
|
locale: r = Rt()
|
|
6965
|
-
} = t, n =
|
|
6991
|
+
} = t, n = nr(t, [
|
|
6966
6992
|
"locale"
|
|
6967
6993
|
]);
|
|
6968
|
-
return wl(
|
|
6994
|
+
return wl($n({ locale: r }, n));
|
|
6969
6995
|
}, Sl = $r(
|
|
6970
6996
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
6971
|
-
(e, t = Rt()) => new _u(e, t,
|
|
6972
|
-
ignoreTag:
|
|
6997
|
+
(e, t = Rt()) => new _u(e, t, er().formats, {
|
|
6998
|
+
ignoreTag: er().ignoreTag
|
|
6973
6999
|
})
|
|
6974
7000
|
), Pl = (e, t = {}) => {
|
|
6975
7001
|
var r, n, i, s;
|
|
@@ -6986,7 +7012,7 @@ const mr = (e, t) => {
|
|
|
6986
7012
|
);
|
|
6987
7013
|
let f = Ks(e, u);
|
|
6988
7014
|
if (!f)
|
|
6989
|
-
f = (s = (i = (n = (r =
|
|
7015
|
+
f = (s = (i = (n = (r = er()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
|
6990
7016
|
else if (typeof f != "string")
|
|
6991
7017
|
return console.warn(
|
|
6992
7018
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -7003,16 +7029,16 @@ const mr = (e, t) => {
|
|
|
7003
7029
|
);
|
|
7004
7030
|
}
|
|
7005
7031
|
return h;
|
|
7006
|
-
}, Al = (e, t) => Ml(t).format(e), Ol = (e, t) => Tl(t).format(e), Bl = (e, t) => El(t).format(e), Nl = (e, t = Rt()) => Ks(e, t), Hl =
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7032
|
+
}, Al = (e, t) => Ml(t).format(e), Ol = (e, t) => Tl(t).format(e), Bl = (e, t) => El(t).format(e), Nl = (e, t = Rt()) => Ks(e, t), Hl = tr([rr, wr], () => Pl);
|
|
7033
|
+
tr([rr], () => Al);
|
|
7034
|
+
tr([rr], () => Ol);
|
|
7035
|
+
tr([rr], () => Bl);
|
|
7036
|
+
tr([rr, wr], () => Nl);
|
|
7011
7037
|
function na(e, t) {
|
|
7012
7038
|
_s(e, t);
|
|
7013
7039
|
}
|
|
7014
|
-
function
|
|
7015
|
-
|
|
7040
|
+
function Oi(e) {
|
|
7041
|
+
rr.set(e);
|
|
7016
7042
|
}
|
|
7017
7043
|
function Cl(e) {
|
|
7018
7044
|
Object.keys(e).forEach((t) => {
|
|
@@ -7256,20 +7282,20 @@ const Yl = {
|
|
|
7256
7282
|
.svelte-6xk5v3::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}:host {height:100%;}.Hidden.svelte-6xk5v3 {display:none;}.TournamentGamesWrapper.svelte-6xk5v3 {display:grid;gap:12px;grid-template-columns:repeat(auto-fit, minmax(min(150px, 100%), 1fr));}.TournamentDetailsWrapper.svelte-6xk5v3 {background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding:16px 16px 0 16px;height:100%;display:flex;flex-direction:column;.TournamentImageWrapper:where(.svelte-6xk5v3) {position:relative;border-radius:14px;background-color:var(--emw-color-bg-primary, #212121);max-width:370px;.StatusBadgesWrapper:where(.svelte-6xk5v3) {position:absolute;top:10px;right:10px;display:flex;gap:10px;.StatusBadge:where(.svelte-6xk5v3) {background-color:var(--emw-color-primary, #FF1D4E);color:var(--emw-color-typography, #ffffff);font-size:14px;border-radius:14px;padding:5px 10px;z-index:1;&.Live {background-color:var(--emw-color-green, #2DCB70);}&.Upcoming {background-color:var(--emw-color-green, #5A88D7);}&.Ended {background-color:var(--emw-color-green, #F3514B);}}}img:where(.svelte-6xk5v3) {border-radius:6px;width:100%;min-height:200px;height:200px;object-fit:cover;}}.TournamentDetails:where(.svelte-6xk5v3) {color:var(--emw-color-typography, #ffffff);margin-top:10px;display:flex;flex-direction:column;gap:10px;flex:1;justify-content:space-between;.TournamentStartDate:where(.svelte-6xk5v3) {font-size:12px;opacity:70%;font-weight:300;}.TournamentTitle:where(.svelte-6xk5v3) {font-size:20px;font-weight:500;word-wrap:break-word;}.TournamentCriteria:where(.svelte-6xk5v3) {font-size:12px;opacity:70%;font-weight:200;padding:0;margin:0;}}.ViewPrizesContainer:where(.svelte-6xk5v3) {display:flex;justify-content:space-between;align-items:center;background-color:var(--emw-color-bg-elements, #4A4A4A);color:var(--emw-color-typography, #ffffff);border-radius:6px;width:100%;margin:10px 0;padding:10px;p:where(.svelte-6xk5v3) {opacity:70%;font-size:14px;font-weight:400;max-width:55%;word-wrap:break-word;}.ViewPrizeButton:where(.svelte-6xk5v3) {background-color:transparent;border-radius:6px;color:var(--emw-color-typography, #ffffff);border:1px solid var(--emw-color-primary, #FF1D4E);padding:6px 12px;display:flex;align-items:center;font-size:12px;margin-left:6px;transition:background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;&:hover {box-shadow:0 0 8px 0px var(--emw-color-primary, #FF1D4E);transform:scale(1.05);cursor:pointer;}&:active {transform:scale(0.95);}svg:where(.svelte-6xk5v3) {margin-left:5px;justify-self:center;}}}.TimeSegment:where(.svelte-6xk5v3) {background-color:var(--emw-color-bg-elements, #4A4A4A);color:var(--emw-color-typography, #ffffff);padding:6px;border-radius:6px;}.TimeToEndTournament:where(.svelte-6xk5v3) > p:where(.svelte-6xk5v3) {margin-bottom:6px;font-size:12px;font-weight:400;opacity:70%;}.TimeToEndTournament:where(.svelte-6xk5v3) {display:flex;flex-direction:column;gap:6px;}.ViewDetailsButton:where(.svelte-6xk5v3) {width:100%;background-color:var(--emw-color-bg-elements, #4A4A4A);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:8px 0;border:none;outline:none;}}`
|
|
7257
7283
|
};
|
|
7258
7284
|
function sa(e, t) {
|
|
7259
|
-
|
|
7260
|
-
const r = () =>
|
|
7285
|
+
Yn(t, !0), Mo(e, Yl);
|
|
7286
|
+
const r = () => zo(Hl, "$_", n), [n, i] = Go();
|
|
7261
7287
|
Et.extend(zl);
|
|
7262
7288
|
const s = Tt(t, "tournament"), a = Tt(t, "language", 7, "en"), o = Tt(t, "enrolled"), u = Tt(t, "translationurl");
|
|
7263
|
-
Cl(Ll),
|
|
7289
|
+
Cl(Ll), Oi(a());
|
|
7264
7290
|
const l = () => {
|
|
7265
|
-
|
|
7291
|
+
Oi(a());
|
|
7266
7292
|
};
|
|
7267
|
-
|
|
7293
|
+
qa(() => {
|
|
7268
7294
|
u() && Dl(u());
|
|
7269
7295
|
}), Mn(() => {
|
|
7270
7296
|
l();
|
|
7271
7297
|
});
|
|
7272
|
-
let f = /* @__PURE__ */ it(
|
|
7298
|
+
let f = /* @__PURE__ */ it(Zt({})), h = /* @__PURE__ */ it(!1), c;
|
|
7273
7299
|
const v = () => {
|
|
7274
7300
|
if (!s()) return;
|
|
7275
7301
|
const q = Et();
|
|
@@ -7279,7 +7305,7 @@ function sa(e, t) {
|
|
|
7279
7305
|
} else
|
|
7280
7306
|
m(), c = setInterval(m, 1e3);
|
|
7281
7307
|
}, m = () => {
|
|
7282
|
-
const q = Et(), _ = Et(s().endTime).diff(q),
|
|
7308
|
+
const q = Et(), _ = Et(s().endTime).diff(q), X = Et.duration(_), xe = Math.floor(X.asDays()), we = X.hours(), je = X.minutes(), Pe = X.seconds();
|
|
7283
7309
|
Fe(
|
|
7284
7310
|
f,
|
|
7285
7311
|
{
|
|
@@ -7300,7 +7326,7 @@ function sa(e, t) {
|
|
|
7300
7326
|
};
|
|
7301
7327
|
Mn(() => {
|
|
7302
7328
|
s() && v();
|
|
7303
|
-
}),
|
|
7329
|
+
}), To(() => {
|
|
7304
7330
|
c && clearInterval(c);
|
|
7305
7331
|
});
|
|
7306
7332
|
var B = {
|
|
@@ -7328,30 +7354,30 @@ function sa(e, t) {
|
|
|
7328
7354
|
set translationurl(q) {
|
|
7329
7355
|
u(q), yt();
|
|
7330
7356
|
}
|
|
7331
|
-
}, z = kl(), A = nt(z), ee = nt(A), K = nt(ee), R =
|
|
7357
|
+
}, z = kl(), A = nt(z), ee = nt(A), K = nt(ee), R = ke(K, !0), S = He(K, 2);
|
|
7332
7358
|
{
|
|
7333
7359
|
var x = (q) => {
|
|
7334
7360
|
var ie = Gl();
|
|
7335
7361
|
Sr(ie, 1, "StatusBadge Enrolled", "svelte-6xk5v3");
|
|
7336
|
-
var _ =
|
|
7337
|
-
an((
|
|
7362
|
+
var _ = ke(ie, !0);
|
|
7363
|
+
an((X) => Ce(_, X), [() => r()("enrolled")]), Br(q, ie);
|
|
7338
7364
|
};
|
|
7339
|
-
|
|
7365
|
+
hi(S, (q) => {
|
|
7340
7366
|
o() && q(x);
|
|
7341
7367
|
});
|
|
7342
7368
|
}
|
|
7343
7369
|
rt(ee);
|
|
7344
7370
|
var G = He(ee, 2);
|
|
7345
7371
|
rt(A);
|
|
7346
|
-
var H = He(A, 2), O = nt(H), Y =
|
|
7372
|
+
var H = He(A, 2), O = nt(H), Y = ke(O), J = He(O, 2), T = ke(J, !0), y = He(J, 2), p = nt(y), E = ke(p), g = He(p, 2), N = ke(g);
|
|
7347
7373
|
rt(y);
|
|
7348
7374
|
var C = He(y, 2);
|
|
7349
7375
|
{
|
|
7350
7376
|
var L = (q) => {
|
|
7351
|
-
var ie = Ul(), _ = nt(ie),
|
|
7377
|
+
var ie = Ul(), _ = nt(ie), X = ke(_, !0), xe = He(_, 2), we = nt(xe), je = ke(we, !0), Pe = He(we, 2), d = ke(Pe, !0), w = He(Pe, 2), P = ke(w, !0), b = He(w, 2), U = ke(b, !0), D = He(b, 2), Z = ke(D, !0);
|
|
7352
7378
|
rt(xe), rt(ie), an(
|
|
7353
|
-
(ae,
|
|
7354
|
-
Ce(
|
|
7379
|
+
(ae, j) => {
|
|
7380
|
+
Ce(X, ae), Sr(we, 1, `TimeSegment ${ve(f).days === 0 ? "Hidden" : ""}`, "svelte-6xk5v3"), Ce(je, j), Sr(Pe, 1, Po(ve(f).days === 0 ? "Hidden" : ""), "svelte-6xk5v3"), Ce(d, ve(f).days > 0 ? " - " : null), Ce(P, ve(f).hours), Ce(U, ve(f).minutes), Ce(Z, ve(f).seconds);
|
|
7355
7381
|
},
|
|
7356
7382
|
[
|
|
7357
7383
|
() => r()("endsInLabel"),
|
|
@@ -7359,14 +7385,14 @@ function sa(e, t) {
|
|
|
7359
7385
|
]
|
|
7360
7386
|
), Br(q, ie);
|
|
7361
7387
|
};
|
|
7362
|
-
|
|
7388
|
+
hi(C, (q) => {
|
|
7363
7389
|
ve(h) || q(L);
|
|
7364
7390
|
});
|
|
7365
7391
|
}
|
|
7366
|
-
var te = He(C, 2), re = nt(te), fe =
|
|
7367
|
-
|
|
7368
|
-
(q, ie, _,
|
|
7369
|
-
Sr(K, 1, `StatusBadge ${I[s().state]}`, "svelte-6xk5v3"), Ce(R, q),
|
|
7392
|
+
var te = He(C, 2), re = nt(te), fe = ke(re), me = He(re, 2), Ze = nt(me);
|
|
7393
|
+
ki(), rt(me), rt(te), rt(H), rt(z), an(
|
|
7394
|
+
(q, ie, _, X, xe, we, je, Pe) => {
|
|
7395
|
+
Sr(K, 1, `StatusBadge ${I[s().state]}`, "svelte-6xk5v3"), Ce(R, q), ci(G, "src", s()?.thumbnail?.length > 0 ? s()?.thumbnail : Il), ci(G, "fetchpriority", s()?.thumbnail?.length > 0 ? "high" : "auto"), Bo(G, s().state === "Closed" && "filter: saturate(20%)"), Ce(Y, `${ie ?? ""} ${_ ?? ""}`), Ce(T, s().nameOrTitle), Ce(E, `${X ?? ""}: ${xe ?? ""}`), Ce(N, `(${we ?? ""} ${s().minBetCount ?? ""})`), Ce(fe, `${je ?? ""}: ${s().prizes[0].name ?? ""}`), Ce(Ze, `${Pe ?? ""} `);
|
|
7370
7396
|
},
|
|
7371
7397
|
[
|
|
7372
7398
|
() => r()(s().state),
|
|
@@ -7378,11 +7404,11 @@ function sa(e, t) {
|
|
|
7378
7404
|
() => r()("topPrize"),
|
|
7379
7405
|
() => r()("viewPrizes")
|
|
7380
7406
|
]
|
|
7381
|
-
),
|
|
7382
|
-
var
|
|
7383
|
-
return i(),
|
|
7407
|
+
), oo("click", me, M), Br(e, z);
|
|
7408
|
+
var Re = Zn(B);
|
|
7409
|
+
return i(), Re;
|
|
7384
7410
|
}
|
|
7385
|
-
|
|
7411
|
+
uo(["click"]);
|
|
7386
7412
|
Ns(
|
|
7387
7413
|
sa,
|
|
7388
7414
|
{
|
|
@@ -7396,7 +7422,7 @@ Ns(
|
|
|
7396
7422
|
{ mode: "open" }
|
|
7397
7423
|
);
|
|
7398
7424
|
function aa(e, t) {
|
|
7399
|
-
|
|
7425
|
+
Yn(t, !0);
|
|
7400
7426
|
let r = Tt(t, "tournament"), n = Tt(t, "language", 7, "en"), i = Tt(t, "translationurl"), s = Tt(t, "enrolled");
|
|
7401
7427
|
var a = {
|
|
7402
7428
|
get tournament() {
|
|
@@ -7437,7 +7463,7 @@ function aa(e, t) {
|
|
|
7437
7463
|
get translationurl() {
|
|
7438
7464
|
return i();
|
|
7439
7465
|
}
|
|
7440
|
-
}),
|
|
7466
|
+
}), Zn(a);
|
|
7441
7467
|
}
|
|
7442
7468
|
customElements.define("tournament-details", Ns(
|
|
7443
7469
|
aa,
|