@everymatrix/loyalty-points-card 0.1.29 → 0.2.1
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/{LoyaltyPointsCard-CR1jlktX.js → LoyaltyPointsCard-BopfOmYI.js} +1118 -1099
- package/components/LoyaltyPointsCard-CIdJiKaY.cjs +21 -0
- package/components/LoyaltyPointsCard-DNCBv9CA.cjs +21 -0
- package/components/{LoyaltyPointsCard-DdZkDi4L.js → LoyaltyPointsCard-Dl5epM_y.js} +1216 -1199
- package/es2015/loyalty-points-card.cjs +1 -1
- package/es2015/loyalty-points-card.js +2 -2
- package/esnext/loyalty-points-card.cjs +1 -1
- package/esnext/loyalty-points-card.js +2 -2
- package/package.json +1 -1
- package/components/LoyaltyPointsCard-B_DMeKlZ.cjs +0 -21
- package/components/LoyaltyPointsCard-Dxmx5_Co.cjs +0 -21
|
@@ -5,50 +5,50 @@ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
|
5
5
|
} });
|
|
6
6
|
const ss = "5";
|
|
7
7
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(ss);
|
|
8
|
-
const as = 2,
|
|
9
|
-
var os = Array.isArray, us = Array.prototype.indexOf,
|
|
10
|
-
const
|
|
8
|
+
const as = 2, Cn = "[", Rn = "[!", un = "[?", Dn = "]", De = {}, j = Symbol("uninitialized"), kn = !1;
|
|
9
|
+
var os = Array.isArray, us = Array.prototype.indexOf, Bt = Array.prototype.includes, ls = Array.from, zt = Object.keys, at = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, fs = Object.prototype, hs = Array.prototype, cs = Object.getPrototypeOf, ln = Object.isExtensible;
|
|
10
|
+
const Oe = () => {
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function Fn(e) {
|
|
13
13
|
for (var t = 0; t < e.length; t++)
|
|
14
14
|
e[t]();
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Un() {
|
|
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 Z = 2, ot = 4, sr = 8, Gn = 1 << 24, de = 16, we = 32, Be = 64, $r = 128, Vr = 256, _e = 512, V = 1024, k = 2048, fe = 4096, he = 8192, q = 16384, ze = 32768, qt = 1 << 25, ut = 65536, Zt = 1 << 17, ds = 1 << 18, qe = 1 << 19, ps = 1 << 20, Jt = 1 << 21, it = 1 << 22, Re = 1 << 23, vr = Symbol("$state"), jn = Symbol("component"), vs = Symbol("legacy props"), _s = Symbol("attributes"), ms = Symbol("class"), gs = Symbol("style"), Or = Symbol("text"), It = new class extends Error {
|
|
23
23
|
name = "StaleReactionError";
|
|
24
24
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
25
|
-
}(),
|
|
25
|
+
}(), ar = 3, or = 8;
|
|
26
26
|
function bs() {
|
|
27
27
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function ur(e) {
|
|
30
30
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
31
31
|
}
|
|
32
32
|
function ys() {
|
|
33
33
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
34
34
|
}
|
|
35
35
|
let F = !1;
|
|
36
|
-
function
|
|
36
|
+
function rt(e) {
|
|
37
37
|
F = e;
|
|
38
38
|
}
|
|
39
39
|
let L;
|
|
40
|
-
function
|
|
40
|
+
function me(e) {
|
|
41
41
|
if (e === null)
|
|
42
|
-
throw
|
|
42
|
+
throw ur(), De;
|
|
43
43
|
return L = e;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
return
|
|
45
|
+
function Wr() {
|
|
46
|
+
return me(/* @__PURE__ */ Ne(L));
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Gt(e) {
|
|
49
49
|
if (F) {
|
|
50
50
|
if (/* @__PURE__ */ Ne(L) !== null)
|
|
51
|
-
throw
|
|
51
|
+
throw ur(), De;
|
|
52
52
|
L = e;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -60,17 +60,17 @@ function Es(e = 1) {
|
|
|
60
60
|
L = r;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Vn(e = !0) {
|
|
64
64
|
for (var t = 0, r = L; ; ) {
|
|
65
|
-
if (r.nodeType ===
|
|
65
|
+
if (r.nodeType === or) {
|
|
66
66
|
var n = (
|
|
67
67
|
/** @type {Comment} */
|
|
68
68
|
r.data
|
|
69
69
|
);
|
|
70
|
-
if (n ===
|
|
70
|
+
if (n === Dn) {
|
|
71
71
|
if (t === 0) return r;
|
|
72
72
|
t -= 1;
|
|
73
|
-
} else (n ===
|
|
73
|
+
} else (n === Cn || n === Rn || // "[1", "[2", etc. for if blocks
|
|
74
74
|
n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
|
|
75
75
|
}
|
|
76
76
|
var i = (
|
|
@@ -80,9 +80,9 @@ function Wn(e = !0) {
|
|
|
80
80
|
e && r.remove(), r = i;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
if (!e || e.nodeType !==
|
|
85
|
-
throw
|
|
83
|
+
function Wn(e) {
|
|
84
|
+
if (!e || e.nodeType !== or)
|
|
85
|
+
throw ur(), De;
|
|
86
86
|
return (
|
|
87
87
|
/** @type {Comment} */
|
|
88
88
|
e.data
|
|
@@ -94,44 +94,44 @@ function Xn(e) {
|
|
|
94
94
|
function Yn(e, t) {
|
|
95
95
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function xs(e) {
|
|
98
98
|
return !Yn(e, this.v);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function ws() {
|
|
101
101
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Ts(e) {
|
|
104
104
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Ss() {
|
|
107
107
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Hs(e) {
|
|
110
110
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function As() {
|
|
113
113
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function $s() {
|
|
116
116
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Os() {
|
|
119
119
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Bs() {
|
|
122
122
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Ls() {
|
|
125
125
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Ps() {
|
|
128
128
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
129
129
|
}
|
|
130
|
-
let
|
|
131
|
-
function
|
|
130
|
+
let Ms = !1, ie = null;
|
|
131
|
+
function lt(e) {
|
|
132
132
|
ie = e;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Xr(e, t = !1, r) {
|
|
135
135
|
ie = {
|
|
136
136
|
p: ie,
|
|
137
137
|
i: !1,
|
|
@@ -146,7 +146,7 @@ function Yr(e, t = !1, r) {
|
|
|
146
146
|
l: null
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Yr(e) {
|
|
150
150
|
var t = (
|
|
151
151
|
/** @type {ComponentContext} */
|
|
152
152
|
ie
|
|
@@ -159,50 +159,50 @@ function zr(e) {
|
|
|
159
159
|
return e !== void 0 && (t.x = e), t.i = !0, ie = t.p, zn(e);
|
|
160
160
|
}
|
|
161
161
|
function zn(e = {}) {
|
|
162
|
-
return
|
|
162
|
+
return at(e, jn, { value: !0 }), e;
|
|
163
163
|
}
|
|
164
164
|
function qn() {
|
|
165
165
|
return !0;
|
|
166
166
|
}
|
|
167
|
-
let
|
|
167
|
+
let je = [];
|
|
168
168
|
function Zn() {
|
|
169
|
-
var e =
|
|
170
|
-
|
|
169
|
+
var e = je;
|
|
170
|
+
je = [], Fn(e);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
if (
|
|
174
|
-
var t =
|
|
172
|
+
function Ve(e) {
|
|
173
|
+
if (je.length === 0 && !Ht) {
|
|
174
|
+
var t = je;
|
|
175
175
|
queueMicrotask(() => {
|
|
176
|
-
t ===
|
|
176
|
+
t === je && Zn();
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
|
|
179
|
+
je.push(e);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
for (;
|
|
181
|
+
function Ns() {
|
|
182
|
+
for (; je.length > 0; )
|
|
183
183
|
Zn();
|
|
184
184
|
}
|
|
185
|
-
const
|
|
185
|
+
const Is = -7169;
|
|
186
186
|
function C(e, t) {
|
|
187
|
-
e.f = e.f &
|
|
187
|
+
e.f = e.f & Is | t;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function zr(e) {
|
|
190
190
|
e.f & _e || e.deps === null ? C(e, V) : C(e, fe);
|
|
191
191
|
}
|
|
192
192
|
function Jn(e, t, r) {
|
|
193
193
|
e.f & k ? t.add(e) : e.f & fe && r.add(e), C(e, V);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function lr(e) {
|
|
196
196
|
var t = T, r = S;
|
|
197
|
-
ce(null),
|
|
197
|
+
ce(null), Te(null);
|
|
198
198
|
try {
|
|
199
199
|
return e();
|
|
200
200
|
} finally {
|
|
201
|
-
ce(t),
|
|
201
|
+
ce(t), Te(r);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
const i =
|
|
204
|
+
function Cs(e, t, r, n) {
|
|
205
|
+
const i = qr;
|
|
206
206
|
var s = e.filter((d) => !d.settled), o = t.map(i);
|
|
207
207
|
if (r.length === 0 && s.length === 0) {
|
|
208
208
|
n(o);
|
|
@@ -211,16 +211,16 @@ function Rs(e, t, r, n) {
|
|
|
211
211
|
var a = (
|
|
212
212
|
/** @type {Effect} */
|
|
213
213
|
S
|
|
214
|
-
), u =
|
|
214
|
+
), u = Rs(), l = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((d) => d.promise)) : null;
|
|
215
215
|
function f(d) {
|
|
216
|
-
if (!(a.f &
|
|
216
|
+
if (!(a.f & q)) {
|
|
217
217
|
u();
|
|
218
218
|
try {
|
|
219
219
|
n([...o, ...d]);
|
|
220
220
|
} catch (p) {
|
|
221
|
-
|
|
221
|
+
ge(p, a);
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
Qt();
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
var h = Qn();
|
|
@@ -229,13 +229,17 @@ function Rs(e, t, r, n) {
|
|
|
229
229
|
return;
|
|
230
230
|
}
|
|
231
231
|
function c() {
|
|
232
|
-
Promise.all(r.map((d) => /* @__PURE__ */
|
|
232
|
+
Promise.all(r.map((d) => /* @__PURE__ */ Ds(d))).then(f).catch((d) => ge(d, a)).finally(h);
|
|
233
233
|
}
|
|
234
234
|
l ? l.then(() => {
|
|
235
|
-
|
|
235
|
+
if (a.f & q) {
|
|
236
|
+
h();
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
u(), c(), Qt();
|
|
236
240
|
}) : c();
|
|
237
241
|
}
|
|
238
|
-
function
|
|
242
|
+
function Rs() {
|
|
239
243
|
var e = (
|
|
240
244
|
/** @type {Effect} */
|
|
241
245
|
S
|
|
@@ -244,11 +248,11 @@ function Ds() {
|
|
|
244
248
|
A
|
|
245
249
|
);
|
|
246
250
|
return function(s = !0) {
|
|
247
|
-
|
|
251
|
+
Te(e), ce(t), lt(r), s && !(e.f & q) && (n?.activate(), n?.apply());
|
|
248
252
|
};
|
|
249
253
|
}
|
|
250
|
-
function
|
|
251
|
-
|
|
254
|
+
function Qt(e = !0) {
|
|
255
|
+
Te(null), ce(null), lt(null), e && A?.deactivate();
|
|
252
256
|
}
|
|
253
257
|
function Qn() {
|
|
254
258
|
var e = (
|
|
@@ -263,9 +267,9 @@ function Qn() {
|
|
|
263
267
|
};
|
|
264
268
|
}
|
|
265
269
|
// @__NO_SIDE_EFFECTS__
|
|
266
|
-
function
|
|
267
|
-
var t =
|
|
268
|
-
return S !== null && (S.f |=
|
|
270
|
+
function qr(e) {
|
|
271
|
+
var t = Z | k;
|
|
272
|
+
return S !== null && (S.f |= qe), {
|
|
269
273
|
ctx: ie,
|
|
270
274
|
deps: null,
|
|
271
275
|
effects: null,
|
|
@@ -283,59 +287,59 @@ function Zr(e) {
|
|
|
283
287
|
ac: null
|
|
284
288
|
};
|
|
285
289
|
}
|
|
286
|
-
const
|
|
290
|
+
const wt = Symbol("obsolete");
|
|
287
291
|
// @__NO_SIDE_EFFECTS__
|
|
288
|
-
function
|
|
292
|
+
function Ds(e, t, r) {
|
|
289
293
|
let n = (
|
|
290
294
|
/** @type {Effect | null} */
|
|
291
295
|
S
|
|
292
296
|
);
|
|
293
|
-
n === null &&
|
|
297
|
+
n === null && ws();
|
|
294
298
|
var i = (
|
|
295
299
|
/** @type {Promise<V>} */
|
|
296
300
|
/** @type {unknown} */
|
|
297
301
|
void 0
|
|
298
|
-
), s =
|
|
302
|
+
), s = Ct(
|
|
299
303
|
/** @type {V} */
|
|
300
304
|
j
|
|
301
305
|
), o = !T, a = /* @__PURE__ */ new Set();
|
|
302
|
-
return
|
|
306
|
+
return Ks(() => {
|
|
303
307
|
var u = (
|
|
304
308
|
/** @type {Effect} */
|
|
305
309
|
S
|
|
306
|
-
), l =
|
|
310
|
+
), l = Un();
|
|
307
311
|
i = l.promise;
|
|
308
312
|
try {
|
|
309
313
|
Promise.resolve(e()).then(l.resolve, (d) => {
|
|
310
|
-
d !==
|
|
311
|
-
}).finally(
|
|
314
|
+
d !== It && l.reject(d);
|
|
315
|
+
}).finally(Qt);
|
|
312
316
|
} catch (d) {
|
|
313
|
-
l.reject(d),
|
|
317
|
+
l.reject(d), Qt();
|
|
314
318
|
}
|
|
315
319
|
var f = (
|
|
316
320
|
/** @type {Batch} */
|
|
317
321
|
A
|
|
318
322
|
);
|
|
319
323
|
if (o) {
|
|
320
|
-
if (u.f &
|
|
324
|
+
if (u.f & ze)
|
|
321
325
|
var h = Qn();
|
|
322
326
|
if (
|
|
323
327
|
// boundary can be null if the async derived is inside an $effect.root not connected to the component render tree
|
|
324
328
|
n.b?.is_rendered()
|
|
325
329
|
)
|
|
326
|
-
f.async_deriveds.get(u)?.reject(
|
|
330
|
+
f.async_deriveds.get(u)?.reject(wt);
|
|
327
331
|
else
|
|
328
332
|
for (const d of a.values())
|
|
329
|
-
d.reject(
|
|
333
|
+
d.reject(wt);
|
|
330
334
|
a.add(l), f.async_deriveds.set(u, l);
|
|
331
335
|
}
|
|
332
336
|
const c = (d, p = void 0) => {
|
|
333
|
-
h?.(), a.delete(l), p !==
|
|
337
|
+
h?.(), a.delete(l), p !== wt && (f.activate(), p ? (s.f |= Re, er(s, p)) : (s.f & Re && (s.f ^= Re), er(s, d)), f.deactivate());
|
|
334
338
|
};
|
|
335
339
|
l.promise.then(c, (d) => c(null, d || "unknown"));
|
|
336
340
|
}), fi(() => {
|
|
337
341
|
for (const u of a)
|
|
338
|
-
u.reject(
|
|
342
|
+
u.reject(wt);
|
|
339
343
|
}), new Promise((u) => {
|
|
340
344
|
function l(f) {
|
|
341
345
|
function h() {
|
|
@@ -347,11 +351,11 @@ function ks(e, t, r) {
|
|
|
347
351
|
});
|
|
348
352
|
}
|
|
349
353
|
// @__NO_SIDE_EFFECTS__
|
|
350
|
-
function
|
|
351
|
-
const t = /* @__PURE__ */
|
|
354
|
+
function Ke(e) {
|
|
355
|
+
const t = /* @__PURE__ */ qr(e);
|
|
352
356
|
return bi(t), t;
|
|
353
357
|
}
|
|
354
|
-
function
|
|
358
|
+
function ks(e) {
|
|
355
359
|
var t = e.effects;
|
|
356
360
|
if (t !== null) {
|
|
357
361
|
e.effects = null;
|
|
@@ -362,44 +366,44 @@ function Fs(e) {
|
|
|
362
366
|
);
|
|
363
367
|
}
|
|
364
368
|
}
|
|
365
|
-
function
|
|
369
|
+
function Zr(e) {
|
|
366
370
|
var t, r = S, n = e.parent;
|
|
367
371
|
if (!Me && n !== null && e.v !== j && // if it was never evaluated before, it's guaranteed to fail downstream, so we try to execute instead
|
|
368
|
-
n.f & (
|
|
372
|
+
n.f & (q | he))
|
|
369
373
|
return bs(), e.v;
|
|
370
|
-
|
|
374
|
+
Te(n);
|
|
371
375
|
try {
|
|
372
|
-
|
|
376
|
+
ks(e), t = wi(e);
|
|
373
377
|
} finally {
|
|
374
|
-
|
|
378
|
+
Te(r);
|
|
375
379
|
}
|
|
376
380
|
return t;
|
|
377
381
|
}
|
|
378
382
|
function Kn(e) {
|
|
379
|
-
var t =
|
|
380
|
-
if (!e.equals(t) && (e.wv = Ei(), (!A?.is_fork || e.deps === null) && (A !== null ? (A.capture(e, t, !0),
|
|
383
|
+
var t = Zr(e);
|
|
384
|
+
if (!e.equals(t) && (e.wv = Ei(), (!A?.is_fork || e.deps === null) && (A !== null ? (A.capture(e, t, !0), st?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
381
385
|
C(e, V);
|
|
382
386
|
return;
|
|
383
387
|
}
|
|
384
|
-
Me || (pe !== null ? (
|
|
388
|
+
Me || (pe !== null ? (tn() || A?.is_fork) && pe.set(e, t) : zr(e));
|
|
385
389
|
}
|
|
386
|
-
function
|
|
390
|
+
function Fs(e) {
|
|
387
391
|
if (e.effects !== null)
|
|
388
392
|
for (const t of e.effects)
|
|
389
|
-
(t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
390
|
-
t.ac.abort(
|
|
391
|
-
}), t.fn !== null && (t.teardown =
|
|
393
|
+
(t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && lr(() => {
|
|
394
|
+
t.ac.abort(It), t.ac = null;
|
|
395
|
+
}), t.fn !== null && (t.teardown = Oe), Lt(t, 0), rn(t));
|
|
392
396
|
}
|
|
393
397
|
function ei(e) {
|
|
394
398
|
if (e.effects !== null)
|
|
395
399
|
for (const t of e.effects)
|
|
396
|
-
t.teardown && t.fn !== null &&
|
|
400
|
+
t.teardown && t.fn !== null && ht(t);
|
|
397
401
|
}
|
|
398
|
-
let
|
|
399
|
-
var
|
|
400
|
-
let
|
|
402
|
+
let _r = null, et = null, A = null, st = null, pe = null, Br = null, Ht = !1, mr = !1, At = null, jt = null;
|
|
403
|
+
var fn = 0;
|
|
404
|
+
let Us = 1;
|
|
401
405
|
class Le {
|
|
402
|
-
id =
|
|
406
|
+
id = Us++;
|
|
403
407
|
/** True as soon as `#process` was called */
|
|
404
408
|
#e = !1;
|
|
405
409
|
linked = !0;
|
|
@@ -464,7 +468,7 @@ class Le {
|
|
|
464
468
|
* Effects created while this batch was active.
|
|
465
469
|
* @type {Effect[]}
|
|
466
470
|
*/
|
|
467
|
-
#
|
|
471
|
+
#_ = [];
|
|
468
472
|
/**
|
|
469
473
|
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
470
474
|
* @type {Set<Effect>}
|
|
@@ -487,13 +491,13 @@ class Le {
|
|
|
487
491
|
* Inverse of #skipped_branches which we need to tell prior batches to unskip them when committing
|
|
488
492
|
* @type {Set<Effect>}
|
|
489
493
|
*/
|
|
490
|
-
#
|
|
494
|
+
#m = /* @__PURE__ */ new Set();
|
|
491
495
|
is_fork = !1;
|
|
492
496
|
#h = !1;
|
|
493
497
|
constructor() {
|
|
494
|
-
|
|
498
|
+
et === null ? _r = et = this : (et.#r = this, this.#t = et), et = this;
|
|
495
499
|
}
|
|
496
|
-
#
|
|
500
|
+
#E() {
|
|
497
501
|
if (this.is_fork) return !0;
|
|
498
502
|
for (const n of this.#n.keys()) {
|
|
499
503
|
for (var t = n, r = !1; t.parent !== null; ) {
|
|
@@ -513,7 +517,7 @@ class Le {
|
|
|
513
517
|
* @param {Effect} effect
|
|
514
518
|
*/
|
|
515
519
|
skip_effect(t) {
|
|
516
|
-
this.#c.has(t) || this.#c.set(t, { d: [], m: [] }), this.#
|
|
520
|
+
this.#c.has(t) || this.#c.set(t, { d: [], m: [] }), this.#m.delete(t);
|
|
517
521
|
}
|
|
518
522
|
/**
|
|
519
523
|
* Remove an effect from the #skipped_branches map and reschedule
|
|
@@ -530,7 +534,7 @@ class Le {
|
|
|
530
534
|
for (i of n.m)
|
|
531
535
|
C(i, fe), r(i);
|
|
532
536
|
}
|
|
533
|
-
this.#
|
|
537
|
+
this.#m.add(t);
|
|
534
538
|
}
|
|
535
539
|
/**
|
|
536
540
|
* Convert the effects that were scheduled in this batch into the root effects
|
|
@@ -541,14 +545,14 @@ class Le {
|
|
|
541
545
|
* a single traversal — scheduling into other batches can never observe them
|
|
542
546
|
* @returns {Effect[]}
|
|
543
547
|
*/
|
|
544
|
-
#
|
|
548
|
+
#x() {
|
|
545
549
|
var t = [];
|
|
546
550
|
for (const s of this.#s)
|
|
547
|
-
if (!(s.f &
|
|
551
|
+
if (!(s.f & q || !(s.f & (k | fe)))) {
|
|
548
552
|
for (var r = s, n = !1; r.parent !== null; ) {
|
|
549
553
|
r = r.parent;
|
|
550
554
|
var i = r.f;
|
|
551
|
-
if (i & (
|
|
555
|
+
if (i & (Be | we)) {
|
|
552
556
|
if (!(i & V)) {
|
|
553
557
|
n = !0;
|
|
554
558
|
break;
|
|
@@ -560,20 +564,20 @@ class Le {
|
|
|
560
564
|
}
|
|
561
565
|
return this.#s = [], t;
|
|
562
566
|
}
|
|
563
|
-
#
|
|
567
|
+
#g() {
|
|
564
568
|
this.#e = !0;
|
|
565
569
|
for (const a of this.#l)
|
|
566
570
|
this.#f.delete(a), C(a, k), this.schedule(a);
|
|
567
571
|
for (const a of this.#f)
|
|
568
572
|
C(a, fe), this.schedule(a);
|
|
569
573
|
this.apply();
|
|
570
|
-
for (var t =
|
|
571
|
-
|
|
572
|
-
for (const a of this.#
|
|
574
|
+
for (var t = At = [], r = [], n = jt = []; this.#s.length > 0; ) {
|
|
575
|
+
fn++ > 1e3 && (this.#v(), Gs());
|
|
576
|
+
for (const a of this.#x())
|
|
573
577
|
try {
|
|
574
|
-
this.#
|
|
578
|
+
this.#b(a, t, r);
|
|
575
579
|
} catch (u) {
|
|
576
|
-
throw ni(a), this.#
|
|
580
|
+
throw ni(a), this.#E() || this.discard(), u;
|
|
577
581
|
}
|
|
578
582
|
}
|
|
579
583
|
if (A = null, n.length > 0) {
|
|
@@ -581,22 +585,22 @@ class Le {
|
|
|
581
585
|
for (const a of n)
|
|
582
586
|
i.schedule(a);
|
|
583
587
|
}
|
|
584
|
-
if (
|
|
585
|
-
this.#
|
|
588
|
+
if (At = null, jt = null, this.#E()) {
|
|
589
|
+
this.#p(r), this.#p(t);
|
|
586
590
|
for (const [a, u] of this.#c)
|
|
587
591
|
ri(a, u);
|
|
588
592
|
n.length > 0 && /** @type {unknown} */
|
|
589
|
-
A.#
|
|
593
|
+
A.#g();
|
|
590
594
|
return;
|
|
591
595
|
}
|
|
592
|
-
const s = this.#
|
|
596
|
+
const s = this.#d();
|
|
593
597
|
if (s) {
|
|
594
|
-
this.#
|
|
598
|
+
this.#p(r), this.#p(t), s.#w(this);
|
|
595
599
|
return;
|
|
596
600
|
}
|
|
597
601
|
this.#l.clear(), this.#f.clear();
|
|
598
602
|
for (const a of this.#u) a(this);
|
|
599
|
-
this.#u.clear(),
|
|
603
|
+
this.#u.clear(), st = this, hn(r), hn(t), st = null, this.#o?.resolve();
|
|
600
604
|
var o = (
|
|
601
605
|
/** @type {Batch | null} */
|
|
602
606
|
/** @type {unknown} */
|
|
@@ -609,7 +613,7 @@ class Le {
|
|
|
609
613
|
this.#s = [];
|
|
610
614
|
} else
|
|
611
615
|
o = this;
|
|
612
|
-
o !== null && (
|
|
616
|
+
o !== null && (Ee.clear(), o.#g());
|
|
613
617
|
}
|
|
614
618
|
/**
|
|
615
619
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -618,12 +622,12 @@ class Le {
|
|
|
618
622
|
* @param {Effect[]} effects
|
|
619
623
|
* @param {Effect[]} render_effects
|
|
620
624
|
*/
|
|
621
|
-
#
|
|
625
|
+
#b(t, r, n) {
|
|
622
626
|
t.f ^= V;
|
|
623
627
|
for (var i = t.first; i !== null; ) {
|
|
624
|
-
var s = i.f, o = (s & (
|
|
628
|
+
var s = i.f, o = (s & (we | Be)) !== 0, a = o && (s & V) !== 0, u = a || (s & he) !== 0 || this.#c.has(i);
|
|
625
629
|
if (!u && i.fn !== null) {
|
|
626
|
-
o ? i.f ^= V : s &
|
|
630
|
+
o ? i.f ^= V : s & ot ? r.push(i) : Rt(i) && (s & de && this.#f.add(i), ht(i));
|
|
627
631
|
var l = i.first;
|
|
628
632
|
if (l !== null) {
|
|
629
633
|
i = l;
|
|
@@ -640,7 +644,7 @@ class Le {
|
|
|
640
644
|
}
|
|
641
645
|
}
|
|
642
646
|
}
|
|
643
|
-
#
|
|
647
|
+
#d() {
|
|
644
648
|
for (var t = this.#t; t !== null; ) {
|
|
645
649
|
if (!t.is_fork) {
|
|
646
650
|
for (const [r, [, n]] of this.current)
|
|
@@ -654,7 +658,7 @@ class Le {
|
|
|
654
658
|
/**
|
|
655
659
|
* @param {Batch} batch
|
|
656
660
|
*/
|
|
657
|
-
#
|
|
661
|
+
#w(t) {
|
|
658
662
|
for (const [n, i] of t.current)
|
|
659
663
|
!this.previous.has(n) && t.previous.has(n) && this.previous.set(n, t.previous.get(n)), this.current.set(n, i);
|
|
660
664
|
for (const [n, i] of t.async_deriveds) {
|
|
@@ -664,10 +668,10 @@ class Le {
|
|
|
664
668
|
t.async_deriveds.clear(), this.transfer_effects(t.#l, t.#f);
|
|
665
669
|
const r = (n) => {
|
|
666
670
|
var i = n.reactions;
|
|
667
|
-
if (i !== null && !(n.f &
|
|
671
|
+
if (i !== null && !(n.f & Z && !(n.f & (k | fe))))
|
|
668
672
|
for (const a of i) {
|
|
669
673
|
var s = a.f;
|
|
670
|
-
if (s &
|
|
674
|
+
if (s & Z)
|
|
671
675
|
r(
|
|
672
676
|
/** @type {Derived} */
|
|
673
677
|
a
|
|
@@ -677,18 +681,18 @@ class Le {
|
|
|
677
681
|
/** @type {Effect} */
|
|
678
682
|
a
|
|
679
683
|
);
|
|
680
|
-
s & (
|
|
684
|
+
s & (it | de) && !this.async_deriveds.has(o) && (this.#f.delete(o), C(o, k), this.schedule(o));
|
|
681
685
|
}
|
|
682
686
|
}
|
|
683
687
|
};
|
|
684
688
|
for (const n of this.current.keys())
|
|
685
689
|
r(n);
|
|
686
|
-
this.oncommit(() => t.discard()), t.#v(), A = this, this.#
|
|
690
|
+
this.oncommit(() => t.discard()), t.#v(), A = this, this.#g();
|
|
687
691
|
}
|
|
688
692
|
/**
|
|
689
693
|
* @param {Effect[]} effects
|
|
690
694
|
*/
|
|
691
|
-
#
|
|
695
|
+
#p(t) {
|
|
692
696
|
for (var r = 0; r < t.length; r += 1)
|
|
693
697
|
Jn(t[r], this.#l, this.#f);
|
|
694
698
|
}
|
|
@@ -710,26 +714,26 @@ class Le {
|
|
|
710
714
|
}
|
|
711
715
|
flush() {
|
|
712
716
|
try {
|
|
713
|
-
|
|
717
|
+
mr = !0, A = this, this.#g();
|
|
714
718
|
} finally {
|
|
715
|
-
|
|
719
|
+
fn = 0, Br = null, At = null, jt = null, mr = !1, A = null, pe = null, Ee.clear();
|
|
716
720
|
}
|
|
717
721
|
}
|
|
718
722
|
discard() {
|
|
719
723
|
for (const t of this.#i) t(this);
|
|
720
724
|
this.#i.clear();
|
|
721
725
|
for (const t of this.async_deriveds.values())
|
|
722
|
-
t.reject(
|
|
726
|
+
t.reject(wt);
|
|
723
727
|
this.#v(), this.#o?.resolve();
|
|
724
728
|
}
|
|
725
729
|
/**
|
|
726
730
|
* @param {Effect} effect
|
|
727
731
|
*/
|
|
728
732
|
register_created_effect(t) {
|
|
729
|
-
this.#
|
|
733
|
+
this.#_.push(t);
|
|
730
734
|
}
|
|
731
|
-
#
|
|
732
|
-
for (let h =
|
|
735
|
+
#y() {
|
|
736
|
+
for (let h = _r; h !== null; h = h.#r) {
|
|
733
737
|
var t = h.id < this.id, r = [];
|
|
734
738
|
for (const [c, [d, p]] of this.current) {
|
|
735
739
|
if (h.current.has(c)) {
|
|
@@ -759,9 +763,9 @@ class Le {
|
|
|
759
763
|
t && h.discard();
|
|
760
764
|
else if (r.length > 0) {
|
|
761
765
|
if (t)
|
|
762
|
-
for (const c of this.#
|
|
766
|
+
for (const c of this.#m)
|
|
763
767
|
h.unskip_effect(c, (d) => {
|
|
764
|
-
d.f & (de |
|
|
768
|
+
d.f & (de | it) ? h.schedule(d) : h.#p([d]);
|
|
765
769
|
});
|
|
766
770
|
h.activate();
|
|
767
771
|
var o = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
|
|
@@ -773,12 +777,12 @@ class Le {
|
|
|
773
777
|
return p ? p[0] !== d[0] || p[1] !== d[1] : !0;
|
|
774
778
|
}).map(([c]) => c);
|
|
775
779
|
if (l.length > 0)
|
|
776
|
-
for (const c of this.#
|
|
777
|
-
!(c.f & (
|
|
780
|
+
for (const c of this.#_)
|
|
781
|
+
!(c.f & (q | he | Zt)) && Jr(c, l, a) && (c.f & (it | de) ? (C(c, k), h.schedule(c)) : h.#l.add(c));
|
|
778
782
|
if (h.#s.length > 0 && !h.#h) {
|
|
779
783
|
h.apply();
|
|
780
|
-
for (var f of h.#
|
|
781
|
-
h.#
|
|
784
|
+
for (var f of h.#x())
|
|
785
|
+
h.#b(f, [], []);
|
|
782
786
|
}
|
|
783
787
|
h.deactivate();
|
|
784
788
|
}
|
|
@@ -804,7 +808,7 @@ class Le {
|
|
|
804
808
|
let n = this.#n.get(r) ?? 0;
|
|
805
809
|
n === 1 ? this.#n.delete(r) : this.#n.set(r, n - 1);
|
|
806
810
|
}
|
|
807
|
-
this.#h || (this.#h = !0,
|
|
811
|
+
this.#h || (this.#h = !0, Ve(() => {
|
|
808
812
|
this.#h = !1, this.linked && this.flush();
|
|
809
813
|
}));
|
|
810
814
|
}
|
|
@@ -828,12 +832,12 @@ class Le {
|
|
|
828
832
|
this.#i.add(t);
|
|
829
833
|
}
|
|
830
834
|
settled() {
|
|
831
|
-
return (this.#o ??=
|
|
835
|
+
return (this.#o ??= Un()).promise;
|
|
832
836
|
}
|
|
833
837
|
static ensure() {
|
|
834
838
|
if (A === null) {
|
|
835
839
|
const t = A = new Le();
|
|
836
|
-
!
|
|
840
|
+
!mr && !Ht && Ve(() => {
|
|
837
841
|
t.#e || t.flush();
|
|
838
842
|
});
|
|
839
843
|
}
|
|
@@ -850,7 +854,7 @@ class Le {
|
|
|
850
854
|
* @param {Effect} effect
|
|
851
855
|
*/
|
|
852
856
|
schedule(t) {
|
|
853
|
-
if (
|
|
857
|
+
if (Br = t, t.b?.is_pending && t.f & (ot | sr | Gn) && !(t.f & ze)) {
|
|
854
858
|
t.b.defer_effect(t);
|
|
855
859
|
return;
|
|
856
860
|
}
|
|
@@ -859,82 +863,82 @@ class Le {
|
|
|
859
863
|
#v() {
|
|
860
864
|
if (this.linked) {
|
|
861
865
|
var t = this.#t, r = this.#r;
|
|
862
|
-
t === null ?
|
|
866
|
+
t === null ? _r = r : t.#r = r, r === null ? et = t : r.#t = t, this.linked = !1;
|
|
863
867
|
}
|
|
864
868
|
}
|
|
865
869
|
}
|
|
866
870
|
function le(e) {
|
|
867
|
-
var t =
|
|
868
|
-
|
|
871
|
+
var t = Ht, r = st;
|
|
872
|
+
st = null, Ht = !0;
|
|
869
873
|
try {
|
|
870
|
-
for (var
|
|
871
|
-
if (
|
|
874
|
+
for (var n; ; ) {
|
|
875
|
+
if (Ns(), A === null)
|
|
872
876
|
return (
|
|
873
877
|
/** @type {T} */
|
|
874
|
-
|
|
878
|
+
n
|
|
875
879
|
);
|
|
876
880
|
A.flush();
|
|
877
881
|
}
|
|
878
882
|
} finally {
|
|
879
|
-
|
|
883
|
+
Ht = t, st = r;
|
|
880
884
|
}
|
|
881
885
|
}
|
|
882
|
-
function
|
|
886
|
+
function Gs() {
|
|
883
887
|
try {
|
|
884
|
-
|
|
888
|
+
As();
|
|
885
889
|
} catch (e) {
|
|
886
|
-
|
|
890
|
+
ge(e, Br);
|
|
887
891
|
}
|
|
888
892
|
}
|
|
889
|
-
let
|
|
890
|
-
function
|
|
893
|
+
let Ae = null;
|
|
894
|
+
function hn(e) {
|
|
891
895
|
var t = e.length;
|
|
892
896
|
if (t !== 0) {
|
|
893
897
|
for (var r = 0; r < t; ) {
|
|
894
898
|
var n = e[r++];
|
|
895
|
-
if (!(n.f & (
|
|
896
|
-
|
|
897
|
-
for (const i of
|
|
898
|
-
if (i.f & (
|
|
899
|
+
if (!(n.f & (q | he)) && Rt(n) && (Ae = /* @__PURE__ */ new Set(), ht(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && vi(n), Ae?.size > 0)) {
|
|
900
|
+
Ee.clear();
|
|
901
|
+
for (const i of Ae) {
|
|
902
|
+
if (i.f & (q | he)) continue;
|
|
899
903
|
const s = [i];
|
|
900
904
|
let o = i.parent;
|
|
901
905
|
for (; o !== null; )
|
|
902
|
-
|
|
906
|
+
Ae.has(o) && (Ae.delete(o), s.push(o)), o = o.parent;
|
|
903
907
|
for (let a = s.length - 1; a >= 0; a--) {
|
|
904
908
|
const u = s[a];
|
|
905
|
-
u.f & (
|
|
909
|
+
u.f & (q | he) || ht(u);
|
|
906
910
|
}
|
|
907
911
|
}
|
|
908
|
-
|
|
912
|
+
Ae.clear();
|
|
909
913
|
}
|
|
910
914
|
}
|
|
911
|
-
|
|
915
|
+
Ae = null;
|
|
912
916
|
}
|
|
913
917
|
}
|
|
914
918
|
function ti(e, t, r, n) {
|
|
915
919
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
916
920
|
for (const i of e.reactions) {
|
|
917
921
|
const s = i.f;
|
|
918
|
-
s &
|
|
922
|
+
s & Z ? ti(
|
|
919
923
|
/** @type {Derived} */
|
|
920
924
|
i,
|
|
921
925
|
t,
|
|
922
926
|
r,
|
|
923
927
|
n
|
|
924
|
-
) : s & (
|
|
928
|
+
) : s & (it | de) && !(s & k) && Jr(i, t, n) && (C(i, k), Qr(
|
|
925
929
|
/** @type {Effect} */
|
|
926
930
|
i
|
|
927
931
|
));
|
|
928
932
|
}
|
|
929
933
|
}
|
|
930
|
-
function
|
|
934
|
+
function Jr(e, t, r) {
|
|
931
935
|
const n = r.get(e);
|
|
932
936
|
if (n !== void 0) return n;
|
|
933
937
|
if (e.deps !== null)
|
|
934
938
|
for (const i of e.deps) {
|
|
935
|
-
if (
|
|
939
|
+
if (Bt.call(t, i))
|
|
936
940
|
return !0;
|
|
937
|
-
if (i.f &
|
|
941
|
+
if (i.f & Z && Jr(
|
|
938
942
|
/** @type {Derived} */
|
|
939
943
|
i,
|
|
940
944
|
t,
|
|
@@ -948,11 +952,11 @@ function Qr(e, t, r) {
|
|
|
948
952
|
}
|
|
949
953
|
return r.set(e, !1), !1;
|
|
950
954
|
}
|
|
951
|
-
function
|
|
955
|
+
function Qr(e) {
|
|
952
956
|
A.schedule(e);
|
|
953
957
|
}
|
|
954
958
|
function ri(e, t) {
|
|
955
|
-
if (!(e.f &
|
|
959
|
+
if (!(e.f & we && e.f & V)) {
|
|
956
960
|
e.f & k ? t.d.push(e) : e.f & fe && t.m.push(e), C(e, V);
|
|
957
961
|
for (var r = e.first; r !== null; )
|
|
958
962
|
ri(r, t), r = r.next;
|
|
@@ -963,10 +967,10 @@ function ni(e) {
|
|
|
963
967
|
for (var t = e.first; t !== null; )
|
|
964
968
|
ni(t), t = t.next;
|
|
965
969
|
}
|
|
966
|
-
let
|
|
967
|
-
const
|
|
970
|
+
let Kt = /* @__PURE__ */ new Set();
|
|
971
|
+
const Ee = /* @__PURE__ */ new Map();
|
|
968
972
|
let ii = !1;
|
|
969
|
-
function
|
|
973
|
+
function Ct(e, t) {
|
|
970
974
|
var r = {
|
|
971
975
|
f: 0,
|
|
972
976
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
@@ -979,71 +983,71 @@ function Nt(e, t) {
|
|
|
979
983
|
return r;
|
|
980
984
|
}
|
|
981
985
|
// @__NO_SIDE_EFFECTS__
|
|
982
|
-
function
|
|
983
|
-
const r =
|
|
986
|
+
function re(e, t) {
|
|
987
|
+
const r = Ct(e);
|
|
984
988
|
return bi(r), r;
|
|
985
989
|
}
|
|
986
990
|
// @__NO_SIDE_EFFECTS__
|
|
987
991
|
function si(e, t = !1, r = !0) {
|
|
988
|
-
const n =
|
|
989
|
-
return t || (n.equals =
|
|
992
|
+
const n = Ct(e);
|
|
993
|
+
return t || (n.equals = xs), n;
|
|
990
994
|
}
|
|
991
995
|
function Y(e, t, r = !1) {
|
|
992
996
|
T !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
993
997
|
// to ensure we error if state is set inside an inspect effect
|
|
994
|
-
(!ve || T.f &
|
|
995
|
-
let n = r ?
|
|
996
|
-
return
|
|
998
|
+
(!ve || T.f & Zt) && qn() && T.f & (Z | de | it | Zt) && (xe === null || !xe.has(e)) && Ls();
|
|
999
|
+
let n = r ? Tt(t) : t;
|
|
1000
|
+
return er(e, n, jt);
|
|
997
1001
|
}
|
|
998
|
-
var
|
|
999
|
-
function
|
|
1002
|
+
var Ge = null, Lr = 0;
|
|
1003
|
+
function er(e, t, r = null) {
|
|
1000
1004
|
if (!e.equals(t)) {
|
|
1001
|
-
Me ?
|
|
1005
|
+
Me ? Ee.set(e, t) : Ee.has(e) || Ee.set(e, e.v);
|
|
1002
1006
|
var n = Le.ensure();
|
|
1003
|
-
if (n.capture(e, t), e.f &
|
|
1007
|
+
if (n.capture(e, t), e.f & Z) {
|
|
1004
1008
|
const i = (
|
|
1005
1009
|
/** @type {Derived} */
|
|
1006
1010
|
e
|
|
1007
1011
|
);
|
|
1008
|
-
e.f & k &&
|
|
1012
|
+
e.f & k && Zr(i), pe === null && zr(i);
|
|
1009
1013
|
}
|
|
1010
|
-
e.wv = Ei(),
|
|
1014
|
+
e.wv = Ei(), Ge = null, Lr = 0, ai(e, k, r), Ge = null, S !== null && S.f & V && !(S.f & (we | Be)) && (ue === null ? ra([e]) : ue.push(e)), !n.is_fork && Kt.size > 0 && !ii && js();
|
|
1011
1015
|
}
|
|
1012
1016
|
return t;
|
|
1013
1017
|
}
|
|
1014
|
-
function
|
|
1018
|
+
function js() {
|
|
1015
1019
|
ii = !1;
|
|
1016
|
-
for (const e of
|
|
1020
|
+
for (const e of Kt) {
|
|
1017
1021
|
e.f & V && C(e, fe);
|
|
1018
1022
|
let t;
|
|
1019
1023
|
try {
|
|
1020
|
-
t =
|
|
1024
|
+
t = Rt(e);
|
|
1021
1025
|
} catch {
|
|
1022
1026
|
t = !0;
|
|
1023
1027
|
}
|
|
1024
|
-
t &&
|
|
1028
|
+
t && ht(e);
|
|
1025
1029
|
}
|
|
1026
|
-
|
|
1030
|
+
Kt.clear();
|
|
1027
1031
|
}
|
|
1028
|
-
function
|
|
1032
|
+
function $t(e) {
|
|
1029
1033
|
Y(e, e.v + 1);
|
|
1030
1034
|
}
|
|
1031
1035
|
function ai(e, t, r) {
|
|
1032
1036
|
var n = e.reactions;
|
|
1033
1037
|
if (n !== null) {
|
|
1034
1038
|
var i = n.length;
|
|
1035
|
-
if (
|
|
1036
|
-
if (
|
|
1037
|
-
|
|
1039
|
+
if (Lr += i, Lr > 1e5 && Ge === null && (Ge = /* @__PURE__ */ new Set()), Ge !== null) {
|
|
1040
|
+
if (Ge.has(e)) return;
|
|
1041
|
+
Ge.add(e);
|
|
1038
1042
|
}
|
|
1039
1043
|
for (var s = 0; s < i; s++) {
|
|
1040
1044
|
var o = n[s], a = o.f, u = (a & k) === 0;
|
|
1041
|
-
if (u && C(o, t), a &
|
|
1042
|
-
|
|
1045
|
+
if (u && C(o, t), a & Zt)
|
|
1046
|
+
Kt.add(
|
|
1043
1047
|
/** @type {Effect} */
|
|
1044
1048
|
o
|
|
1045
1049
|
);
|
|
1046
|
-
else if (a &
|
|
1050
|
+
else if (a & Z) {
|
|
1047
1051
|
var l = (
|
|
1048
1052
|
/** @type {Derived} */
|
|
1049
1053
|
o
|
|
@@ -1054,26 +1058,26 @@ function ai(e, t, r) {
|
|
|
1054
1058
|
/** @type {Effect} */
|
|
1055
1059
|
o
|
|
1056
1060
|
);
|
|
1057
|
-
a & de &&
|
|
1061
|
+
a & de && Ae !== null && Ae.add(f), r !== null ? r.push(f) : Qr(f);
|
|
1058
1062
|
}
|
|
1059
1063
|
}
|
|
1060
1064
|
}
|
|
1061
1065
|
}
|
|
1062
|
-
function
|
|
1063
|
-
if (typeof e != "object" || e === null ||
|
|
1066
|
+
function Tt(e) {
|
|
1067
|
+
if (typeof e != "object" || e === null || vr in e || jn in e)
|
|
1064
1068
|
return e;
|
|
1065
1069
|
const t = cs(e);
|
|
1066
1070
|
if (t !== fs && t !== hs)
|
|
1067
1071
|
return e;
|
|
1068
|
-
var r = /* @__PURE__ */ new Map(), n = os(e), i = /* @__PURE__ */
|
|
1069
|
-
if (
|
|
1072
|
+
var r = /* @__PURE__ */ new Map(), n = os(e), i = /* @__PURE__ */ re(0), s = Xe, o = (a) => {
|
|
1073
|
+
if (Xe === s)
|
|
1070
1074
|
return a();
|
|
1071
|
-
var u = T, l =
|
|
1072
|
-
ce(null),
|
|
1075
|
+
var u = T, l = Xe;
|
|
1076
|
+
ce(null), gn(s);
|
|
1073
1077
|
var f = a();
|
|
1074
|
-
return ce(u),
|
|
1078
|
+
return ce(u), gn(l), f;
|
|
1075
1079
|
};
|
|
1076
|
-
return n && r.set("length", /* @__PURE__ */
|
|
1080
|
+
return n && r.set("length", /* @__PURE__ */ re(
|
|
1077
1081
|
/** @type {any[]} */
|
|
1078
1082
|
e.length
|
|
1079
1083
|
)), new Proxy(
|
|
@@ -1081,10 +1085,10 @@ function wt(e) {
|
|
|
1081
1085
|
e,
|
|
1082
1086
|
{
|
|
1083
1087
|
defineProperty(a, u, l) {
|
|
1084
|
-
(!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) &&
|
|
1088
|
+
(!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && Os();
|
|
1085
1089
|
var f = r.get(u);
|
|
1086
1090
|
return f === void 0 ? o(() => {
|
|
1087
|
-
var h = /* @__PURE__ */
|
|
1091
|
+
var h = /* @__PURE__ */ re(l.value);
|
|
1088
1092
|
return r.set(u, h), h;
|
|
1089
1093
|
}) : Y(f, l.value, !0), !0;
|
|
1090
1094
|
},
|
|
@@ -1092,19 +1096,19 @@ function wt(e) {
|
|
|
1092
1096
|
var l = r.get(u);
|
|
1093
1097
|
if (l === void 0) {
|
|
1094
1098
|
if (u in a) {
|
|
1095
|
-
const f = o(() => /* @__PURE__ */
|
|
1096
|
-
r.set(u, f),
|
|
1099
|
+
const f = o(() => /* @__PURE__ */ re(j));
|
|
1100
|
+
r.set(u, f), $t(i);
|
|
1097
1101
|
}
|
|
1098
1102
|
} else
|
|
1099
|
-
Y(l, j),
|
|
1103
|
+
Y(l, j), $t(i);
|
|
1100
1104
|
return !0;
|
|
1101
1105
|
},
|
|
1102
1106
|
get(a, u, l) {
|
|
1103
|
-
if (u ===
|
|
1107
|
+
if (u === vr)
|
|
1104
1108
|
return e;
|
|
1105
1109
|
var f = r.get(u), h = u in a;
|
|
1106
|
-
if (f === void 0 && (!h ||
|
|
1107
|
-
var d =
|
|
1110
|
+
if (f === void 0 && (!h || nt(a, u)?.writable) && (f = o(() => {
|
|
1111
|
+
var d = Tt(h ? a[u] : j), p = /* @__PURE__ */ re(d);
|
|
1108
1112
|
return p;
|
|
1109
1113
|
}), r.set(u, f)), f !== void 0) {
|
|
1110
1114
|
var c = $(f);
|
|
@@ -1132,12 +1136,12 @@ function wt(e) {
|
|
|
1132
1136
|
return l;
|
|
1133
1137
|
},
|
|
1134
1138
|
has(a, u) {
|
|
1135
|
-
if (u ===
|
|
1139
|
+
if (u === vr)
|
|
1136
1140
|
return !0;
|
|
1137
1141
|
var l = r.get(u), f = l !== void 0 && l.v !== j || Reflect.has(a, u);
|
|
1138
|
-
if (l !== void 0 || S !== null && (!f ||
|
|
1142
|
+
if (l !== void 0 || S !== null && (!f || nt(a, u)?.writable)) {
|
|
1139
1143
|
l === void 0 && (l = o(() => {
|
|
1140
|
-
var c = f ?
|
|
1144
|
+
var c = f ? Tt(a[u]) : j, d = /* @__PURE__ */ re(c);
|
|
1141
1145
|
return d;
|
|
1142
1146
|
}), r.set(u, l));
|
|
1143
1147
|
var h = $(l);
|
|
@@ -1152,13 +1156,13 @@ function wt(e) {
|
|
|
1152
1156
|
for (var d = l; d < /** @type {Source<number>} */
|
|
1153
1157
|
h.v; d += 1) {
|
|
1154
1158
|
var p = r.get(d + "");
|
|
1155
|
-
p !== void 0 ? Y(p, j) : d in a && (p = o(() => /* @__PURE__ */
|
|
1159
|
+
p !== void 0 ? Y(p, j) : d in a && (p = o(() => /* @__PURE__ */ re(j)), r.set(d + "", p));
|
|
1156
1160
|
}
|
|
1157
1161
|
if (h === void 0)
|
|
1158
|
-
(!c ||
|
|
1162
|
+
(!c || nt(a, u)?.writable) && (h = o(() => /* @__PURE__ */ re(void 0)), Y(h, Tt(l)), r.set(u, h));
|
|
1159
1163
|
else {
|
|
1160
1164
|
c = h.v !== j;
|
|
1161
|
-
var b = o(() =>
|
|
1165
|
+
var b = o(() => Tt(l));
|
|
1162
1166
|
Y(h, b);
|
|
1163
1167
|
}
|
|
1164
1168
|
var N = Reflect.getOwnPropertyDescriptor(a, u);
|
|
@@ -1170,7 +1174,7 @@ function wt(e) {
|
|
|
1170
1174
|
), W = Number(u);
|
|
1171
1175
|
Number.isInteger(W) && W >= G.v && Y(G, W + 1);
|
|
1172
1176
|
}
|
|
1173
|
-
|
|
1177
|
+
$t(i);
|
|
1174
1178
|
}
|
|
1175
1179
|
return !0;
|
|
1176
1180
|
},
|
|
@@ -1185,24 +1189,24 @@ function wt(e) {
|
|
|
1185
1189
|
return u;
|
|
1186
1190
|
},
|
|
1187
1191
|
setPrototypeOf() {
|
|
1188
|
-
|
|
1192
|
+
Bs();
|
|
1189
1193
|
}
|
|
1190
1194
|
}
|
|
1191
1195
|
);
|
|
1192
1196
|
}
|
|
1193
|
-
var
|
|
1194
|
-
function
|
|
1195
|
-
if (
|
|
1196
|
-
|
|
1197
|
+
var cn, oi, ui, li;
|
|
1198
|
+
function Pr() {
|
|
1199
|
+
if (cn === void 0) {
|
|
1200
|
+
cn = window, oi = /Firefox/.test(navigator.userAgent);
|
|
1197
1201
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1198
|
-
ui =
|
|
1202
|
+
ui = nt(t, "firstChild").get, li = nt(t, "nextSibling").get, ln(e) && (e[ms] = void 0, e[_s] = null, e[gs] = void 0, e.__e = void 0), ln(r) && (r[Or] = void 0);
|
|
1199
1203
|
}
|
|
1200
1204
|
}
|
|
1201
1205
|
function Pe(e = "") {
|
|
1202
1206
|
return document.createTextNode(e);
|
|
1203
1207
|
}
|
|
1204
1208
|
// @__NO_SIDE_EFFECTS__
|
|
1205
|
-
function
|
|
1209
|
+
function ft(e) {
|
|
1206
1210
|
return (
|
|
1207
1211
|
/** @type {TemplateNode | null} */
|
|
1208
1212
|
ui.call(e)
|
|
@@ -1215,45 +1219,45 @@ function Ne(e) {
|
|
|
1215
1219
|
li.call(e)
|
|
1216
1220
|
);
|
|
1217
1221
|
}
|
|
1218
|
-
function
|
|
1222
|
+
function Vt(e, t) {
|
|
1219
1223
|
if (!F)
|
|
1220
|
-
return /* @__PURE__ */
|
|
1221
|
-
var r = /* @__PURE__ */
|
|
1224
|
+
return /* @__PURE__ */ ft(e);
|
|
1225
|
+
var r = /* @__PURE__ */ ft(L);
|
|
1222
1226
|
if (r === null)
|
|
1223
1227
|
r = L.appendChild(Pe());
|
|
1224
|
-
else if (t && r.nodeType !==
|
|
1228
|
+
else if (t && r.nodeType !== ar) {
|
|
1225
1229
|
var n = Pe();
|
|
1226
|
-
return r?.before(n),
|
|
1230
|
+
return r?.before(n), me(n), n;
|
|
1227
1231
|
}
|
|
1228
|
-
return t &&
|
|
1232
|
+
return t && en(
|
|
1229
1233
|
/** @type {Text} */
|
|
1230
1234
|
r
|
|
1231
|
-
),
|
|
1235
|
+
), me(r), r;
|
|
1232
1236
|
}
|
|
1233
|
-
function
|
|
1237
|
+
function Vs(e, t = !1) {
|
|
1234
1238
|
if (!F) {
|
|
1235
|
-
var r = /* @__PURE__ */
|
|
1239
|
+
var r = /* @__PURE__ */ ft(e);
|
|
1236
1240
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Ne(r) : r;
|
|
1237
1241
|
}
|
|
1238
1242
|
if (t) {
|
|
1239
|
-
if (L?.nodeType !==
|
|
1243
|
+
if (L?.nodeType !== ar) {
|
|
1240
1244
|
var n = Pe();
|
|
1241
|
-
return L?.before(n),
|
|
1245
|
+
return L?.before(n), me(n), n;
|
|
1242
1246
|
}
|
|
1243
|
-
|
|
1247
|
+
en(
|
|
1244
1248
|
/** @type {Text} */
|
|
1245
1249
|
L
|
|
1246
1250
|
);
|
|
1247
1251
|
}
|
|
1248
1252
|
return L;
|
|
1249
1253
|
}
|
|
1250
|
-
function
|
|
1254
|
+
function gr(e, t = !1) {
|
|
1251
1255
|
if (!F)
|
|
1252
|
-
return /* @__PURE__ */
|
|
1253
|
-
var r =
|
|
1254
|
-
return
|
|
1256
|
+
return /* @__PURE__ */ ft(e);
|
|
1257
|
+
var r = Vt(e, t);
|
|
1258
|
+
return Gt(e), r;
|
|
1255
1259
|
}
|
|
1256
|
-
function
|
|
1260
|
+
function dn(e, t = 1, r = !1) {
|
|
1257
1261
|
let n = F ? L : e;
|
|
1258
1262
|
for (var i; t--; )
|
|
1259
1263
|
i = n, n = /** @type {TemplateNode} */
|
|
@@ -1261,53 +1265,55 @@ function pn(e, t = 1, r = !1) {
|
|
|
1261
1265
|
if (!F)
|
|
1262
1266
|
return n;
|
|
1263
1267
|
if (r) {
|
|
1264
|
-
if (n?.nodeType !==
|
|
1268
|
+
if (n?.nodeType !== ar) {
|
|
1265
1269
|
var s = Pe();
|
|
1266
|
-
return n === null ? i?.after(s) : n.before(s),
|
|
1270
|
+
return n === null ? i?.after(s) : n.before(s), me(s), s;
|
|
1267
1271
|
}
|
|
1268
|
-
|
|
1272
|
+
en(
|
|
1269
1273
|
/** @type {Text} */
|
|
1270
1274
|
n
|
|
1271
1275
|
);
|
|
1272
1276
|
}
|
|
1273
|
-
return
|
|
1277
|
+
return me(n), n;
|
|
1274
1278
|
}
|
|
1275
|
-
function
|
|
1279
|
+
function Ws(e) {
|
|
1276
1280
|
e.textContent = "";
|
|
1277
1281
|
}
|
|
1278
|
-
function
|
|
1282
|
+
function Xs() {
|
|
1279
1283
|
return !1;
|
|
1280
1284
|
}
|
|
1281
|
-
function
|
|
1285
|
+
function Kr(e, t, r) {
|
|
1282
1286
|
return (
|
|
1283
1287
|
/** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
|
|
1284
1288
|
document.createElement(e)
|
|
1285
1289
|
);
|
|
1286
1290
|
}
|
|
1287
|
-
function
|
|
1291
|
+
function en(e) {
|
|
1288
1292
|
if (
|
|
1289
1293
|
/** @type {string} */
|
|
1290
1294
|
e.nodeValue.length < 65536
|
|
1291
1295
|
)
|
|
1292
1296
|
return;
|
|
1293
1297
|
let t = e.nextSibling;
|
|
1294
|
-
for (; t !== null && t.nodeType ===
|
|
1298
|
+
for (; t !== null && t.nodeType === ar; )
|
|
1295
1299
|
t.remove(), e.nodeValue += /** @type {string} */
|
|
1296
1300
|
t.nodeValue, t = e.nextSibling;
|
|
1297
1301
|
}
|
|
1298
|
-
function
|
|
1302
|
+
function Ys(e) {
|
|
1299
1303
|
var t = S;
|
|
1300
1304
|
if (t === null)
|
|
1301
1305
|
return T.f |= Re, e;
|
|
1302
|
-
if (!(t.f &
|
|
1306
|
+
if (!(t.f & ze) && !(t.f & ot))
|
|
1303
1307
|
throw e;
|
|
1304
|
-
|
|
1308
|
+
ge(e, t);
|
|
1305
1309
|
}
|
|
1306
|
-
function
|
|
1307
|
-
if (
|
|
1310
|
+
function ge(e, t) {
|
|
1311
|
+
if (e === De)
|
|
1312
|
+
throw e;
|
|
1313
|
+
if (!(t !== null && t.f & q)) {
|
|
1308
1314
|
for (; t !== null; ) {
|
|
1309
|
-
if (t.f &
|
|
1310
|
-
if (!(t.f &
|
|
1315
|
+
if (t.f & $r && !(t.f & (q | qt))) {
|
|
1316
|
+
if (!(t.f & ze))
|
|
1311
1317
|
throw e;
|
|
1312
1318
|
try {
|
|
1313
1319
|
t.b.error(e);
|
|
@@ -1321,14 +1327,14 @@ function be(e, t) {
|
|
|
1321
1327
|
throw e;
|
|
1322
1328
|
}
|
|
1323
1329
|
}
|
|
1324
|
-
function
|
|
1325
|
-
S === null && (T === null &&
|
|
1330
|
+
function zs(e) {
|
|
1331
|
+
S === null && (T === null && Hs(), Ss()), Me && Ts();
|
|
1326
1332
|
}
|
|
1327
|
-
function
|
|
1333
|
+
function qs(e, t) {
|
|
1328
1334
|
var r = t.last;
|
|
1329
1335
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1330
1336
|
}
|
|
1331
|
-
function
|
|
1337
|
+
function Se(e, t) {
|
|
1332
1338
|
var r = S;
|
|
1333
1339
|
r !== null && r.f & he && (e |= he);
|
|
1334
1340
|
var n = {
|
|
@@ -1349,18 +1355,18 @@ function He(e, t) {
|
|
|
1349
1355
|
};
|
|
1350
1356
|
A?.register_created_effect(n);
|
|
1351
1357
|
var i = n;
|
|
1352
|
-
if (e &
|
|
1353
|
-
|
|
1358
|
+
if (e & ot)
|
|
1359
|
+
At !== null ? At.push(n) : Le.ensure().schedule(n);
|
|
1354
1360
|
else if (t !== null) {
|
|
1355
1361
|
try {
|
|
1356
|
-
|
|
1362
|
+
ht(n);
|
|
1357
1363
|
} catch (o) {
|
|
1358
1364
|
throw se(n), o;
|
|
1359
1365
|
}
|
|
1360
1366
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
|
|
1361
|
-
!(i.f &
|
|
1367
|
+
!(i.f & qe) && (i = i.first, e & de && e & ut && i !== null && (i.f |= ut));
|
|
1362
1368
|
}
|
|
1363
|
-
if (i !== null && (i.parent = r, r !== null &&
|
|
1369
|
+
if (i !== null && (i.parent = r, r !== null && qs(i, r), T !== null && T.f & Z && !(e & Be))) {
|
|
1364
1370
|
var s = (
|
|
1365
1371
|
/** @type {Derived} */
|
|
1366
1372
|
T
|
|
@@ -1369,19 +1375,19 @@ function He(e, t) {
|
|
|
1369
1375
|
}
|
|
1370
1376
|
return n;
|
|
1371
1377
|
}
|
|
1372
|
-
function
|
|
1378
|
+
function tn() {
|
|
1373
1379
|
return T !== null && !ve;
|
|
1374
1380
|
}
|
|
1375
1381
|
function fi(e) {
|
|
1376
|
-
const t =
|
|
1382
|
+
const t = Se(sr, null);
|
|
1377
1383
|
return C(t, V), t.teardown = e, t;
|
|
1378
1384
|
}
|
|
1379
|
-
function
|
|
1380
|
-
|
|
1385
|
+
function pn(e) {
|
|
1386
|
+
zs();
|
|
1381
1387
|
var t = (
|
|
1382
1388
|
/** @type {Effect} */
|
|
1383
1389
|
S.f
|
|
1384
|
-
), r = !T && (t &
|
|
1390
|
+
), r = !T && (t & we) !== 0 && ie !== null && !ie.i;
|
|
1385
1391
|
if (r) {
|
|
1386
1392
|
var n = (
|
|
1387
1393
|
/** @type {ComponentContext} */
|
|
@@ -1392,94 +1398,94 @@ function vn(e) {
|
|
|
1392
1398
|
return hi(e);
|
|
1393
1399
|
}
|
|
1394
1400
|
function hi(e) {
|
|
1395
|
-
return
|
|
1401
|
+
return Se(ot | ps, e);
|
|
1396
1402
|
}
|
|
1397
|
-
function
|
|
1403
|
+
function Zs(e) {
|
|
1398
1404
|
Le.ensure();
|
|
1399
|
-
const t =
|
|
1405
|
+
const t = Se(Be | qe, e);
|
|
1400
1406
|
return () => {
|
|
1401
1407
|
se(t);
|
|
1402
1408
|
};
|
|
1403
1409
|
}
|
|
1404
|
-
function
|
|
1410
|
+
function Js(e) {
|
|
1405
1411
|
Le.ensure();
|
|
1406
|
-
const t =
|
|
1412
|
+
const t = Se(Be | qe, e);
|
|
1407
1413
|
return (r = {}) => new Promise((n) => {
|
|
1408
|
-
r.outro ?
|
|
1414
|
+
r.outro ? Ot(t, () => {
|
|
1409
1415
|
se(t), n(void 0);
|
|
1410
1416
|
}) : (se(t), n(void 0));
|
|
1411
1417
|
});
|
|
1412
1418
|
}
|
|
1413
|
-
function
|
|
1414
|
-
return
|
|
1419
|
+
function Qs(e) {
|
|
1420
|
+
return Se(ot, e);
|
|
1415
1421
|
}
|
|
1416
|
-
function
|
|
1417
|
-
return
|
|
1422
|
+
function Ks(e) {
|
|
1423
|
+
return Se(it | qe, e);
|
|
1418
1424
|
}
|
|
1419
1425
|
function ci(e, t = 0) {
|
|
1420
|
-
return
|
|
1426
|
+
return Se(sr | t, e);
|
|
1421
1427
|
}
|
|
1422
|
-
function
|
|
1423
|
-
|
|
1424
|
-
|
|
1428
|
+
function vn(e, t = [], r = [], n = []) {
|
|
1429
|
+
Cs(n, t, r, (i) => {
|
|
1430
|
+
Se(sr, () => {
|
|
1425
1431
|
e(...i.map($));
|
|
1426
1432
|
});
|
|
1427
1433
|
});
|
|
1428
1434
|
}
|
|
1429
1435
|
function di(e, t = 0) {
|
|
1430
|
-
var r =
|
|
1436
|
+
var r = Se(de | t, e);
|
|
1431
1437
|
return r;
|
|
1432
1438
|
}
|
|
1433
|
-
function
|
|
1434
|
-
return
|
|
1439
|
+
function $e(e) {
|
|
1440
|
+
return Se(we | qe, e);
|
|
1435
1441
|
}
|
|
1436
1442
|
function pi(e) {
|
|
1437
1443
|
var t = e.teardown;
|
|
1438
1444
|
if (t !== null) {
|
|
1439
1445
|
const r = Me, n = T;
|
|
1440
|
-
|
|
1446
|
+
mn(!0), ce(null);
|
|
1441
1447
|
try {
|
|
1442
1448
|
t.call(null);
|
|
1443
1449
|
} catch (i) {
|
|
1444
|
-
|
|
1450
|
+
ge(i, e.parent);
|
|
1445
1451
|
} finally {
|
|
1446
|
-
|
|
1452
|
+
mn(r), ce(n);
|
|
1447
1453
|
}
|
|
1448
1454
|
}
|
|
1449
1455
|
}
|
|
1450
|
-
function
|
|
1456
|
+
function rn(e, t = !1) {
|
|
1451
1457
|
var r = e.first;
|
|
1452
1458
|
for (e.first = e.last = null; r !== null; ) {
|
|
1453
1459
|
const i = r.ac;
|
|
1454
|
-
i !== null &&
|
|
1455
|
-
i.abort(
|
|
1460
|
+
i !== null && lr(() => {
|
|
1461
|
+
i.abort(It);
|
|
1456
1462
|
});
|
|
1457
1463
|
var n = r.next;
|
|
1458
|
-
r.f &
|
|
1464
|
+
r.f & Be ? r.parent = null : se(r, t), r = n;
|
|
1459
1465
|
}
|
|
1460
1466
|
}
|
|
1461
|
-
function
|
|
1467
|
+
function ea(e) {
|
|
1462
1468
|
for (var t = e.first; t !== null; ) {
|
|
1463
1469
|
var r = t.next;
|
|
1464
|
-
t.f &
|
|
1470
|
+
t.f & we || se(t), t = r;
|
|
1465
1471
|
}
|
|
1466
1472
|
}
|
|
1467
1473
|
function se(e, t = !0) {
|
|
1468
1474
|
var r = !1;
|
|
1469
|
-
(t || e.f & ds) && e.nodes !== null && e.nodes.end !== null && (
|
|
1475
|
+
(t || e.f & ds) && e.nodes !== null && e.nodes.end !== null && (ta(
|
|
1470
1476
|
e.nodes.start,
|
|
1471
1477
|
/** @type {TemplateNode} */
|
|
1472
1478
|
e.nodes.end
|
|
1473
|
-
), r = !0), e.f |=
|
|
1479
|
+
), r = !0), e.f |= qt, rn(e, t && !r), Lt(e, 0);
|
|
1474
1480
|
var n = e.nodes && e.nodes.t;
|
|
1475
1481
|
if (n !== null)
|
|
1476
1482
|
for (const s of n)
|
|
1477
1483
|
s.stop();
|
|
1478
|
-
pi(e), e.f ^=
|
|
1484
|
+
pi(e), e.f ^= qt, e.f |= q;
|
|
1479
1485
|
var i = e.parent;
|
|
1480
1486
|
i !== null && i.first !== null && vi(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1481
1487
|
}
|
|
1482
|
-
function
|
|
1488
|
+
function ta(e, t) {
|
|
1483
1489
|
for (; e !== null; ) {
|
|
1484
1490
|
var r = e === t ? null : /* @__PURE__ */ Ne(e);
|
|
1485
1491
|
e.remove(), e = r;
|
|
@@ -1489,9 +1495,9 @@ function vi(e) {
|
|
|
1489
1495
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1490
1496
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1491
1497
|
}
|
|
1492
|
-
function
|
|
1498
|
+
function Ot(e, t, r = !0) {
|
|
1493
1499
|
var n = [];
|
|
1494
|
-
e.f |=
|
|
1500
|
+
e.f |= Vr, _i(e, n, !0);
|
|
1495
1501
|
var i = () => {
|
|
1496
1502
|
r && se(e), t && t();
|
|
1497
1503
|
}, s = n.length;
|
|
@@ -1511,25 +1517,25 @@ function _i(e, t, r) {
|
|
|
1511
1517
|
(a.is_global || r) && t.push(a);
|
|
1512
1518
|
for (var i = e.first; i !== null; ) {
|
|
1513
1519
|
var s = i.next;
|
|
1514
|
-
if (!(i.f &
|
|
1515
|
-
var o = (i.f &
|
|
1520
|
+
if (!(i.f & Be)) {
|
|
1521
|
+
var o = (i.f & ut) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1516
1522
|
// it means the parent block effect was pruned. In that case,
|
|
1517
1523
|
// transparency information was transferred to the branch effect.
|
|
1518
|
-
(i.f &
|
|
1524
|
+
(i.f & we) !== 0 && (e.f & de) !== 0;
|
|
1519
1525
|
_i(i, t, o ? r : !1);
|
|
1520
1526
|
}
|
|
1521
1527
|
i = s;
|
|
1522
1528
|
}
|
|
1523
1529
|
}
|
|
1524
1530
|
}
|
|
1525
|
-
function
|
|
1526
|
-
e.f &= ~
|
|
1531
|
+
function _n(e) {
|
|
1532
|
+
e.f &= ~Vr, mi(e, !0);
|
|
1527
1533
|
}
|
|
1528
1534
|
function mi(e, t) {
|
|
1529
|
-
if (!(e.f &
|
|
1535
|
+
if (!(e.f & Vr) && e.f & he) {
|
|
1530
1536
|
e.f ^= he, e.f & V || (C(e, k), Le.ensure().schedule(e));
|
|
1531
1537
|
for (var r = e.first; r !== null; ) {
|
|
1532
|
-
var n = r.next, i = (r.f &
|
|
1538
|
+
var n = r.next, i = (r.f & ut) !== 0 || (r.f & we) !== 0;
|
|
1533
1539
|
mi(r, i ? t : !1), r = n;
|
|
1534
1540
|
}
|
|
1535
1541
|
var s = e.nodes && e.nodes.t;
|
|
@@ -1545,8 +1551,8 @@ function gi(e, t) {
|
|
|
1545
1551
|
t.append(r), r = i;
|
|
1546
1552
|
}
|
|
1547
1553
|
}
|
|
1548
|
-
let
|
|
1549
|
-
function
|
|
1554
|
+
let Me = !1;
|
|
1555
|
+
function mn(e) {
|
|
1550
1556
|
Me = e;
|
|
1551
1557
|
}
|
|
1552
1558
|
let T = null, ve = !1;
|
|
@@ -1554,25 +1560,25 @@ function ce(e) {
|
|
|
1554
1560
|
T = e;
|
|
1555
1561
|
}
|
|
1556
1562
|
let S = null;
|
|
1557
|
-
function
|
|
1563
|
+
function Te(e) {
|
|
1558
1564
|
S = e;
|
|
1559
1565
|
}
|
|
1560
|
-
let
|
|
1566
|
+
let xe = null;
|
|
1561
1567
|
function bi(e) {
|
|
1562
|
-
T !== null && (T.f &
|
|
1568
|
+
T !== null && (T.f & Jt || T.f & Z) && (xe ??= /* @__PURE__ */ new Set()).add(e);
|
|
1563
1569
|
}
|
|
1564
|
-
let
|
|
1565
|
-
function
|
|
1570
|
+
let ne = null, ae = 0, ue = null;
|
|
1571
|
+
function ra(e) {
|
|
1566
1572
|
ue = e;
|
|
1567
1573
|
}
|
|
1568
|
-
let yi = 1,
|
|
1569
|
-
function
|
|
1570
|
-
|
|
1574
|
+
let yi = 1, We = 0, Xe = We;
|
|
1575
|
+
function gn(e) {
|
|
1576
|
+
Xe = e;
|
|
1571
1577
|
}
|
|
1572
1578
|
function Ei() {
|
|
1573
1579
|
return ++yi;
|
|
1574
1580
|
}
|
|
1575
|
-
function
|
|
1581
|
+
function Rt(e) {
|
|
1576
1582
|
var t = e.f;
|
|
1577
1583
|
if (t & k)
|
|
1578
1584
|
return !0;
|
|
@@ -1582,7 +1588,7 @@ function It(e) {
|
|
|
1582
1588
|
e.deps
|
|
1583
1589
|
), n = r.length, i = 0; i < n; i++) {
|
|
1584
1590
|
var s = r[i];
|
|
1585
|
-
if (
|
|
1591
|
+
if (Rt(
|
|
1586
1592
|
/** @type {Derived} */
|
|
1587
1593
|
s
|
|
1588
1594
|
) && Kn(
|
|
@@ -1599,35 +1605,35 @@ function It(e) {
|
|
|
1599
1605
|
}
|
|
1600
1606
|
function xi(e, t, r = !0) {
|
|
1601
1607
|
var n = e.reactions;
|
|
1602
|
-
if (n !== null && !(
|
|
1608
|
+
if (n !== null && !(xe !== null && xe.has(e)))
|
|
1603
1609
|
for (var i = 0; i < n.length; i++) {
|
|
1604
1610
|
var s = n[i];
|
|
1605
|
-
s.f &
|
|
1611
|
+
s.f & Z ? xi(
|
|
1606
1612
|
/** @type {Derived} */
|
|
1607
1613
|
s,
|
|
1608
1614
|
t,
|
|
1609
1615
|
!1
|
|
1610
|
-
) : t === s && (r ? C(s, k) : s.f & V && C(s, fe),
|
|
1616
|
+
) : t === s && (r ? C(s, k) : s.f & V && C(s, fe), Qr(
|
|
1611
1617
|
/** @type {Effect} */
|
|
1612
1618
|
s
|
|
1613
1619
|
));
|
|
1614
1620
|
}
|
|
1615
1621
|
}
|
|
1616
1622
|
function wi(e) {
|
|
1617
|
-
var t =
|
|
1618
|
-
|
|
1619
|
-
null, ae = 0, ue = null, T = l & (
|
|
1620
|
-
e.ac.abort(
|
|
1623
|
+
var t = ne, r = ae, n = ue, i = T, s = xe, o = ie, a = ve, u = Xe, l = e.f;
|
|
1624
|
+
ne = /** @type {null | Value[]} */
|
|
1625
|
+
null, ae = 0, ue = null, T = l & (we | Be) ? null : e, xe = null, lt(e.ctx), ve = !1, Xe = ++We, e.ac !== null && (lr(() => {
|
|
1626
|
+
e.ac.abort(It);
|
|
1621
1627
|
}), e.ac = null);
|
|
1622
1628
|
try {
|
|
1623
|
-
e.f |=
|
|
1629
|
+
e.f |= Jt;
|
|
1624
1630
|
var f = (
|
|
1625
1631
|
/** @type {Function} */
|
|
1626
1632
|
e.fn
|
|
1627
1633
|
), h = f();
|
|
1628
|
-
e.f |=
|
|
1629
|
-
var c =
|
|
1630
|
-
if (qn() && ue !== null && !ve && c !== null && !(e.f & (
|
|
1634
|
+
e.f |= ze;
|
|
1635
|
+
var c = bn(e);
|
|
1636
|
+
if (qn() && ue !== null && !ve && c !== null && !(e.f & (Z | fe | k)))
|
|
1631
1637
|
for (var d = 0; d < /** @type {Source[]} */
|
|
1632
1638
|
ue.length; d++)
|
|
1633
1639
|
xi(
|
|
@@ -1636,38 +1642,38 @@ function wi(e) {
|
|
|
1636
1642
|
e
|
|
1637
1643
|
);
|
|
1638
1644
|
if (i !== null && i !== e) {
|
|
1639
|
-
if (
|
|
1645
|
+
if (We++, i.deps !== null)
|
|
1640
1646
|
for (let p = 0; p < r; p += 1)
|
|
1641
|
-
i.deps[p].rv =
|
|
1647
|
+
i.deps[p].rv = We;
|
|
1642
1648
|
if (t !== null)
|
|
1643
1649
|
for (const p of t)
|
|
1644
|
-
p.rv =
|
|
1650
|
+
p.rv = We;
|
|
1645
1651
|
ue !== null && (n === null ? n = ue : n.push(.../** @type {Source[]} */
|
|
1646
1652
|
ue));
|
|
1647
1653
|
}
|
|
1648
1654
|
return e.f & Re && (e.f ^= Re), h;
|
|
1649
1655
|
} catch (p) {
|
|
1650
|
-
return
|
|
1656
|
+
return bn(e), Ys(p);
|
|
1651
1657
|
} finally {
|
|
1652
|
-
e.f ^=
|
|
1658
|
+
e.f ^= Jt, ne = t, ae = r, ue = n, T = i, xe = s, lt(o), ve = a, Xe = u;
|
|
1653
1659
|
}
|
|
1654
1660
|
}
|
|
1655
|
-
function
|
|
1661
|
+
function bn(e) {
|
|
1656
1662
|
var t = e.deps, r = A?.is_fork;
|
|
1657
|
-
if (
|
|
1663
|
+
if (ne !== null) {
|
|
1658
1664
|
var n;
|
|
1659
|
-
if (r ||
|
|
1660
|
-
for (t.length = ae +
|
|
1661
|
-
t[ae + n] =
|
|
1665
|
+
if (r || Lt(e, ae), t !== null && ae > 0)
|
|
1666
|
+
for (t.length = ae + ne.length, n = 0; n < ne.length; n++)
|
|
1667
|
+
t[ae + n] = ne[n];
|
|
1662
1668
|
else
|
|
1663
|
-
e.deps = t =
|
|
1664
|
-
if (
|
|
1669
|
+
e.deps = t = ne;
|
|
1670
|
+
if (tn() && e.f & _e)
|
|
1665
1671
|
for (n = ae; n < t.length; n++)
|
|
1666
1672
|
(t[n].reactions ??= []).push(e);
|
|
1667
|
-
} else !r && t !== null && ae < t.length && (
|
|
1673
|
+
} else !r && t !== null && ae < t.length && (Lt(e, ae), t.length = ae);
|
|
1668
1674
|
return t;
|
|
1669
1675
|
}
|
|
1670
|
-
function
|
|
1676
|
+
function na(e, t) {
|
|
1671
1677
|
let r = t.reactions;
|
|
1672
1678
|
if (r !== null) {
|
|
1673
1679
|
var n = us.call(r, e);
|
|
@@ -1676,62 +1682,62 @@ function ia(e, t) {
|
|
|
1676
1682
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1677
1683
|
}
|
|
1678
1684
|
}
|
|
1679
|
-
if (r === null && t.f &
|
|
1685
|
+
if (r === null && t.f & Z && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1680
1686
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1681
1687
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1682
|
-
(
|
|
1688
|
+
(ne === null || !Bt.call(ne, t))) {
|
|
1683
1689
|
var s = (
|
|
1684
1690
|
/** @type {Derived} */
|
|
1685
1691
|
t
|
|
1686
1692
|
);
|
|
1687
|
-
s.f & _e && (s.f ^= _e), s.v !== j &&
|
|
1688
|
-
s.ac.abort(
|
|
1689
|
-
}),
|
|
1693
|
+
s.f & _e && (s.f ^= _e), s.v !== j && zr(s), s.ac !== null && lr(() => {
|
|
1694
|
+
s.ac.abort(It), s.ac = null, C(s, k);
|
|
1695
|
+
}), Fs(s), Lt(s, 0);
|
|
1690
1696
|
}
|
|
1691
1697
|
}
|
|
1692
|
-
function
|
|
1698
|
+
function Lt(e, t) {
|
|
1693
1699
|
var r = e.deps;
|
|
1694
1700
|
if (r !== null)
|
|
1695
1701
|
for (var n = t; n < r.length; n++)
|
|
1696
|
-
|
|
1702
|
+
na(e, r[n]);
|
|
1697
1703
|
}
|
|
1698
|
-
function
|
|
1704
|
+
function ht(e) {
|
|
1699
1705
|
var t = e.f;
|
|
1700
|
-
if (!(t &
|
|
1706
|
+
if (!(t & q)) {
|
|
1701
1707
|
C(e, V);
|
|
1702
|
-
var r = S
|
|
1703
|
-
S = e
|
|
1708
|
+
var r = S;
|
|
1709
|
+
S = e;
|
|
1704
1710
|
try {
|
|
1705
|
-
t & (de |
|
|
1706
|
-
var
|
|
1707
|
-
e.teardown = typeof
|
|
1708
|
-
var
|
|
1709
|
-
|
|
1711
|
+
t & (de | Gn) ? ea(e) : rn(e), pi(e);
|
|
1712
|
+
var n = wi(e);
|
|
1713
|
+
e.teardown = typeof n == "function" ? n : null, e.wv = yi;
|
|
1714
|
+
var i;
|
|
1715
|
+
kn && Ms && e.f & k && e.deps;
|
|
1710
1716
|
} finally {
|
|
1711
|
-
|
|
1717
|
+
S = r;
|
|
1712
1718
|
}
|
|
1713
1719
|
}
|
|
1714
1720
|
}
|
|
1715
|
-
async function
|
|
1721
|
+
async function ia() {
|
|
1716
1722
|
await Promise.resolve(), le();
|
|
1717
1723
|
}
|
|
1718
1724
|
function $(e) {
|
|
1719
|
-
var t = e.f, r = (t &
|
|
1725
|
+
var t = e.f, r = (t & Z) !== 0;
|
|
1720
1726
|
if (T !== null && !ve) {
|
|
1721
|
-
var n = S !== null && (S.f &
|
|
1722
|
-
if (!n && (
|
|
1727
|
+
var n = S !== null && (S.f & q) !== 0;
|
|
1728
|
+
if (!n && (xe === null || !xe.has(e))) {
|
|
1723
1729
|
var i = T.deps;
|
|
1724
|
-
if (T.f &
|
|
1725
|
-
e.rv <
|
|
1730
|
+
if (T.f & Jt)
|
|
1731
|
+
e.rv < We && (e.rv = We, ne === null && i !== null && i[ae] === e ? ae++ : ne === null ? ne = [e] : ne.push(e));
|
|
1726
1732
|
else {
|
|
1727
|
-
T.deps ??= [],
|
|
1733
|
+
T.deps ??= [], Bt.call(T.deps, e) || T.deps.push(e);
|
|
1728
1734
|
var s = e.reactions;
|
|
1729
|
-
s === null ? e.reactions = [T] :
|
|
1735
|
+
s === null ? e.reactions = [T] : Bt.call(s, T) || s.push(T);
|
|
1730
1736
|
}
|
|
1731
1737
|
}
|
|
1732
1738
|
}
|
|
1733
|
-
if (Me &&
|
|
1734
|
-
return
|
|
1739
|
+
if (Me && Ee.has(e))
|
|
1740
|
+
return Ee.get(e);
|
|
1735
1741
|
if (r) {
|
|
1736
1742
|
var o = (
|
|
1737
1743
|
/** @type {Derived} */
|
|
@@ -1739,10 +1745,10 @@ function $(e) {
|
|
|
1739
1745
|
);
|
|
1740
1746
|
if (Me) {
|
|
1741
1747
|
var a = o.v;
|
|
1742
|
-
return (!(o.f & V) && o.reactions !== null || Si(o)) && (a =
|
|
1748
|
+
return (!(o.f & V) && o.reactions !== null || Si(o)) && (a = Zr(o)), Ee.set(o, a), a;
|
|
1743
1749
|
}
|
|
1744
|
-
var u = (o.f & _e) === 0 && !ve && T !== null && (
|
|
1745
|
-
|
|
1750
|
+
var u = (o.f & _e) === 0 && !ve && T !== null && (T.f & _e) !== 0, l = (o.f & ze) === 0;
|
|
1751
|
+
Rt(o) && (u && (o.f |= _e), Kn(o)), u && !l && (ei(o), Ti(o));
|
|
1746
1752
|
}
|
|
1747
1753
|
if (pe?.has(e))
|
|
1748
1754
|
return pe.get(e);
|
|
@@ -1752,20 +1758,22 @@ function $(e) {
|
|
|
1752
1758
|
}
|
|
1753
1759
|
function Ti(e) {
|
|
1754
1760
|
if (e.f |= _e, e.deps !== null)
|
|
1755
|
-
for (const
|
|
1756
|
-
|
|
1761
|
+
for (const r of e.deps) {
|
|
1762
|
+
var t = r.reactions;
|
|
1763
|
+
t === null ? r.reactions = [e] : Bt.call(t, e) || t.push(e), r.f & Z && !(r.f & _e) && (ei(
|
|
1757
1764
|
/** @type {Derived} */
|
|
1758
|
-
|
|
1765
|
+
r
|
|
1759
1766
|
), Ti(
|
|
1760
1767
|
/** @type {Derived} */
|
|
1761
|
-
|
|
1768
|
+
r
|
|
1762
1769
|
));
|
|
1770
|
+
}
|
|
1763
1771
|
}
|
|
1764
1772
|
function Si(e) {
|
|
1765
1773
|
if (e.v === j) return !0;
|
|
1766
1774
|
if (e.deps === null) return !1;
|
|
1767
1775
|
for (const t of e.deps)
|
|
1768
|
-
if (
|
|
1776
|
+
if (Ee.has(t) || t.f & Z && Si(
|
|
1769
1777
|
/** @type {Derived} */
|
|
1770
1778
|
t
|
|
1771
1779
|
))
|
|
@@ -1780,9 +1788,9 @@ function Hi(e) {
|
|
|
1780
1788
|
ve = t;
|
|
1781
1789
|
}
|
|
1782
1790
|
}
|
|
1783
|
-
const
|
|
1784
|
-
let
|
|
1785
|
-
function
|
|
1791
|
+
const kt = Symbol("events"), sa = /* @__PURE__ */ new Set(), yn = /* @__PURE__ */ new Set();
|
|
1792
|
+
let br = null, yr = !1;
|
|
1793
|
+
function En(e) {
|
|
1786
1794
|
var t = this, r = (
|
|
1787
1795
|
/** @type {Node} */
|
|
1788
1796
|
t.ownerDocument
|
|
@@ -1790,15 +1798,15 @@ function xn(e) {
|
|
|
1790
1798
|
/** @type {null | Element} */
|
|
1791
1799
|
i[0] || e.target
|
|
1792
1800
|
);
|
|
1793
|
-
|
|
1794
|
-
|
|
1801
|
+
br = e, yr || (yr = !0, setTimeout(() => {
|
|
1802
|
+
yr = !1, br = null;
|
|
1795
1803
|
}));
|
|
1796
|
-
var o = 0, a =
|
|
1804
|
+
var o = 0, a = br === e && e[kt];
|
|
1797
1805
|
if (a) {
|
|
1798
1806
|
var u = i.indexOf(a);
|
|
1799
1807
|
if (u !== -1 && (t === document || t === /** @type {any} */
|
|
1800
1808
|
window)) {
|
|
1801
|
-
e[
|
|
1809
|
+
e[kt] = t;
|
|
1802
1810
|
return;
|
|
1803
1811
|
}
|
|
1804
1812
|
var l = i.indexOf(t);
|
|
@@ -1808,18 +1816,18 @@ function xn(e) {
|
|
|
1808
1816
|
}
|
|
1809
1817
|
if (s = /** @type {Element} */
|
|
1810
1818
|
i[o] || e.target, s !== t) {
|
|
1811
|
-
|
|
1819
|
+
at(e, "currentTarget", {
|
|
1812
1820
|
configurable: !0,
|
|
1813
1821
|
get() {
|
|
1814
1822
|
return s || r;
|
|
1815
1823
|
}
|
|
1816
1824
|
});
|
|
1817
1825
|
var f = T, h = S;
|
|
1818
|
-
ce(null),
|
|
1826
|
+
ce(null), Te(null);
|
|
1819
1827
|
try {
|
|
1820
1828
|
for (var c, d = []; s !== null && s !== t; ) {
|
|
1821
1829
|
try {
|
|
1822
|
-
var p = s[
|
|
1830
|
+
var p = s[kt]?.[n];
|
|
1823
1831
|
p != null && (!/** @type {any} */
|
|
1824
1832
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1825
1833
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
@@ -1841,28 +1849,28 @@ function xn(e) {
|
|
|
1841
1849
|
throw c;
|
|
1842
1850
|
}
|
|
1843
1851
|
} finally {
|
|
1844
|
-
e[
|
|
1852
|
+
e[kt] = t, delete e.currentTarget, ce(f), Te(h);
|
|
1845
1853
|
}
|
|
1846
1854
|
}
|
|
1847
1855
|
}
|
|
1848
|
-
const
|
|
1856
|
+
const aa = (
|
|
1849
1857
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
1850
1858
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
1851
1859
|
/** @param {string} html */
|
|
1852
1860
|
createHTML: (e) => e
|
|
1853
1861
|
})
|
|
1854
1862
|
);
|
|
1855
|
-
function
|
|
1863
|
+
function oa(e) {
|
|
1856
1864
|
return (
|
|
1857
1865
|
/** @type {string} */
|
|
1858
|
-
|
|
1866
|
+
aa?.createHTML(e) ?? e
|
|
1859
1867
|
);
|
|
1860
1868
|
}
|
|
1861
|
-
function
|
|
1862
|
-
var t =
|
|
1863
|
-
return t.innerHTML =
|
|
1869
|
+
function ua(e) {
|
|
1870
|
+
var t = Kr("template");
|
|
1871
|
+
return t.innerHTML = oa(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1864
1872
|
}
|
|
1865
|
-
function
|
|
1873
|
+
function Pt(e, t) {
|
|
1866
1874
|
var r = (
|
|
1867
1875
|
/** @type {Effect} */
|
|
1868
1876
|
S
|
|
@@ -1870,33 +1878,33 @@ function Bt(e, t) {
|
|
|
1870
1878
|
r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
|
|
1871
1879
|
}
|
|
1872
1880
|
// @__NO_SIDE_EFFECTS__
|
|
1873
|
-
function
|
|
1881
|
+
function nn(e, t) {
|
|
1874
1882
|
var r = (t & as) !== 0, n, i = !e.startsWith("<!>");
|
|
1875
1883
|
return () => {
|
|
1876
1884
|
if (F)
|
|
1877
|
-
return
|
|
1878
|
-
n === void 0 && (n =
|
|
1879
|
-
/* @__PURE__ */
|
|
1885
|
+
return Pt(L, null), L;
|
|
1886
|
+
n === void 0 && (n = ua(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
|
|
1887
|
+
/* @__PURE__ */ ft(n));
|
|
1880
1888
|
var s = (
|
|
1881
1889
|
/** @type {TemplateNode} */
|
|
1882
1890
|
r || oi ? document.importNode(n, !0) : n.cloneNode(!0)
|
|
1883
1891
|
);
|
|
1884
|
-
return
|
|
1892
|
+
return Pt(s, s), s;
|
|
1885
1893
|
};
|
|
1886
1894
|
}
|
|
1887
|
-
function
|
|
1895
|
+
function la() {
|
|
1888
1896
|
if (F)
|
|
1889
|
-
return
|
|
1897
|
+
return Pt(L, null), L;
|
|
1890
1898
|
var e = document.createDocumentFragment(), t = document.createComment(""), r = Pe();
|
|
1891
|
-
return e.append(t, r),
|
|
1899
|
+
return e.append(t, r), Pt(t, r), e;
|
|
1892
1900
|
}
|
|
1893
|
-
function
|
|
1901
|
+
function St(e, t) {
|
|
1894
1902
|
if (F) {
|
|
1895
1903
|
var r = (
|
|
1896
1904
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1897
1905
|
S
|
|
1898
1906
|
);
|
|
1899
|
-
(!(r.f &
|
|
1907
|
+
(!(r.f & ze) || r.nodes.end === null) && (r.nodes.end = L), Wr();
|
|
1900
1908
|
return;
|
|
1901
1909
|
}
|
|
1902
1910
|
e !== null && e.before(
|
|
@@ -1904,25 +1912,25 @@ function Tt(e, t) {
|
|
|
1904
1912
|
t
|
|
1905
1913
|
);
|
|
1906
1914
|
}
|
|
1907
|
-
const
|
|
1908
|
-
function
|
|
1909
|
-
return
|
|
1915
|
+
const fa = ["touchstart", "touchmove"];
|
|
1916
|
+
function ha(e) {
|
|
1917
|
+
return fa.includes(e);
|
|
1910
1918
|
}
|
|
1911
|
-
function
|
|
1912
|
-
let t = 0, r =
|
|
1919
|
+
function ca(e) {
|
|
1920
|
+
let t = 0, r = Ct(0), n;
|
|
1913
1921
|
return () => {
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
t -= 1, t === 0 && (n?.(), n = void 0,
|
|
1922
|
+
tn() && ($(r), ci(() => (t === 0 && (n = Hi(() => e(() => $t(r)))), t += 1, () => {
|
|
1923
|
+
Ve(() => {
|
|
1924
|
+
t -= 1, t === 0 && (n?.(), n = void 0, $t(r));
|
|
1917
1925
|
});
|
|
1918
1926
|
})));
|
|
1919
1927
|
};
|
|
1920
1928
|
}
|
|
1921
|
-
var
|
|
1922
|
-
function
|
|
1923
|
-
new
|
|
1929
|
+
var da = ut | qe;
|
|
1930
|
+
function pa(e, t, r, n) {
|
|
1931
|
+
new va(e, t, r, n);
|
|
1924
1932
|
}
|
|
1925
|
-
class
|
|
1933
|
+
class va {
|
|
1926
1934
|
/** @type {Boundary | null} */
|
|
1927
1935
|
parent;
|
|
1928
1936
|
is_pending = !1;
|
|
@@ -1950,13 +1958,13 @@ class _a {
|
|
|
1950
1958
|
#o = null;
|
|
1951
1959
|
/** @type {DocumentFragment | null} */
|
|
1952
1960
|
#s = null;
|
|
1953
|
-
#
|
|
1961
|
+
#_ = 0;
|
|
1954
1962
|
#l = 0;
|
|
1955
1963
|
#f = !1;
|
|
1956
1964
|
/** @type {Set<Effect>} */
|
|
1957
1965
|
#c = /* @__PURE__ */ new Set();
|
|
1958
1966
|
/** @type {Set<Effect>} */
|
|
1959
|
-
#
|
|
1967
|
+
#m = /* @__PURE__ */ new Set();
|
|
1960
1968
|
/**
|
|
1961
1969
|
* A source containing the number of pending async deriveds/expressions.
|
|
1962
1970
|
* Only created if `$effect.pending()` is used inside the boundary,
|
|
@@ -1965,7 +1973,7 @@ class _a {
|
|
|
1965
1973
|
* @type {Source<number> | null}
|
|
1966
1974
|
*/
|
|
1967
1975
|
#h = null;
|
|
1968
|
-
#
|
|
1976
|
+
#E = ca(() => (this.#h = Ct(this.#_), () => {
|
|
1969
1977
|
this.#h = null;
|
|
1970
1978
|
}));
|
|
1971
1979
|
/**
|
|
@@ -1980,27 +1988,27 @@ class _a {
|
|
|
1980
1988
|
/** @type {Effect} */
|
|
1981
1989
|
S
|
|
1982
1990
|
);
|
|
1983
|
-
o.b = this, o.f |=
|
|
1991
|
+
o.b = this, o.f |= $r, n(s);
|
|
1984
1992
|
}, this.parent = /** @type {Effect} */
|
|
1985
1993
|
S.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i = di(() => {
|
|
1986
1994
|
if (F) {
|
|
1987
|
-
const s = (
|
|
1988
|
-
/** @type {
|
|
1995
|
+
const s = Wn(
|
|
1996
|
+
/** @type {TemplateNode} */
|
|
1989
1997
|
this.#t
|
|
1990
1998
|
);
|
|
1991
|
-
|
|
1992
|
-
const o = s
|
|
1993
|
-
if (s.
|
|
1994
|
-
const u = JSON.parse(s.
|
|
1995
|
-
this.#
|
|
1996
|
-
} else o ? this.#w() : this.#
|
|
1999
|
+
Wr();
|
|
2000
|
+
const o = s === Rn;
|
|
2001
|
+
if (s.startsWith(un)) {
|
|
2002
|
+
const u = JSON.parse(s.slice(un.length));
|
|
2003
|
+
this.#g(u);
|
|
2004
|
+
} else o ? this.#w() : this.#x();
|
|
1997
2005
|
} else
|
|
1998
|
-
this.#
|
|
1999
|
-
},
|
|
2006
|
+
this.#p();
|
|
2007
|
+
}, da), F && (this.#e = L);
|
|
2000
2008
|
}
|
|
2001
|
-
#
|
|
2009
|
+
#x() {
|
|
2002
2010
|
try {
|
|
2003
|
-
this.#a =
|
|
2011
|
+
this.#a = $e(() => this.#u(this.#e));
|
|
2004
2012
|
} catch (t) {
|
|
2005
2013
|
this.error(t);
|
|
2006
2014
|
}
|
|
@@ -2008,9 +2016,9 @@ class _a {
|
|
|
2008
2016
|
/**
|
|
2009
2017
|
* @param {unknown} error The deserialized error from the server's hydration comment
|
|
2010
2018
|
*/
|
|
2011
|
-
#
|
|
2012
|
-
const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#
|
|
2013
|
-
|
|
2019
|
+
#g(t) {
|
|
2020
|
+
const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#b(t);
|
|
2021
|
+
Ve(i), r && (this.#o = $e(() => {
|
|
2014
2022
|
r(
|
|
2015
2023
|
this.#e,
|
|
2016
2024
|
() => t,
|
|
@@ -2024,64 +2032,72 @@ class _a {
|
|
|
2024
2032
|
* @param {unknown} error
|
|
2025
2033
|
* @returns {{ reset: () => void, invoke_onerror: () => void }}
|
|
2026
2034
|
*/
|
|
2027
|
-
#
|
|
2035
|
+
#b(t) {
|
|
2028
2036
|
var r = !1, n = !1;
|
|
2029
2037
|
const i = () => {
|
|
2030
|
-
if (
|
|
2031
|
-
|
|
2032
|
-
|
|
2038
|
+
if (!this.#d()) {
|
|
2039
|
+
if (r) {
|
|
2040
|
+
ys();
|
|
2041
|
+
return;
|
|
2042
|
+
}
|
|
2043
|
+
r = !0, n && Ps(), this.#o !== null && Ot(this.#o, () => {
|
|
2044
|
+
this.#o = null;
|
|
2045
|
+
}), this.#v(() => {
|
|
2046
|
+
this.#p();
|
|
2047
|
+
});
|
|
2033
2048
|
}
|
|
2034
|
-
r = !0, n && Ms(), this.#o !== null && $t(this.#o, () => {
|
|
2035
|
-
this.#o = null;
|
|
2036
|
-
}), this.#x(() => {
|
|
2037
|
-
this.#E();
|
|
2038
|
-
});
|
|
2039
2049
|
};
|
|
2040
2050
|
return { reset: i, invoke_onerror: () => {
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2051
|
+
if (!this.#d())
|
|
2052
|
+
try {
|
|
2053
|
+
n = !0, this.#r.onerror?.(t, i), n = !1;
|
|
2054
|
+
} catch (o) {
|
|
2055
|
+
ge(o, this.#i && this.#i.parent);
|
|
2056
|
+
}
|
|
2046
2057
|
} };
|
|
2047
2058
|
}
|
|
2059
|
+
#d() {
|
|
2060
|
+
return (this.#i.f & (q | qt)) !== 0;
|
|
2061
|
+
}
|
|
2048
2062
|
#w() {
|
|
2049
2063
|
const t = this.#r.pending;
|
|
2050
|
-
t && (this.is_pending = !0, this.#n =
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
return Oe(() => this.#u(n));
|
|
2055
|
-
} catch (s) {
|
|
2064
|
+
t && (this.is_pending = !0, this.#n = $e(() => t(this.#e)), Ve(() => {
|
|
2065
|
+
if (!this.#d()) {
|
|
2066
|
+
var r = this.#s = document.createDocumentFragment(), n = Pe(), i = !1;
|
|
2067
|
+
if (r.append(n), this.#a = this.#v(() => {
|
|
2056
2068
|
try {
|
|
2057
|
-
|
|
2058
|
-
} catch (
|
|
2059
|
-
|
|
2069
|
+
return $e(() => this.#u(n));
|
|
2070
|
+
} catch (s) {
|
|
2071
|
+
try {
|
|
2072
|
+
this.error(s), i = !0;
|
|
2073
|
+
} catch (o) {
|
|
2074
|
+
ge(o, this.#i.parent);
|
|
2075
|
+
}
|
|
2076
|
+
return null;
|
|
2060
2077
|
}
|
|
2061
|
-
|
|
2078
|
+
}), this.#a === null) {
|
|
2079
|
+
this.#s = null, i && this.#y(
|
|
2080
|
+
/** @type {Batch} */
|
|
2081
|
+
A
|
|
2082
|
+
);
|
|
2083
|
+
return;
|
|
2062
2084
|
}
|
|
2063
|
-
|
|
2064
|
-
|
|
2085
|
+
this.#l === 0 && (this.#e.before(r), this.#s = null, Ot(
|
|
2086
|
+
/** @type {Effect} */
|
|
2087
|
+
this.#n,
|
|
2088
|
+
() => {
|
|
2089
|
+
this.#n = null;
|
|
2090
|
+
}
|
|
2091
|
+
), this.#y(
|
|
2065
2092
|
/** @type {Batch} */
|
|
2066
2093
|
A
|
|
2067
|
-
);
|
|
2068
|
-
return;
|
|
2094
|
+
));
|
|
2069
2095
|
}
|
|
2070
|
-
this.#l === 0 && (this.#e.before(r), this.#s = null, $t(
|
|
2071
|
-
/** @type {Effect} */
|
|
2072
|
-
this.#n,
|
|
2073
|
-
() => {
|
|
2074
|
-
this.#n = null;
|
|
2075
|
-
}
|
|
2076
|
-
), this.#d(
|
|
2077
|
-
/** @type {Batch} */
|
|
2078
|
-
A
|
|
2079
|
-
));
|
|
2080
2096
|
}));
|
|
2081
2097
|
}
|
|
2082
|
-
#
|
|
2098
|
+
#p() {
|
|
2083
2099
|
try {
|
|
2084
|
-
if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#
|
|
2100
|
+
if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#_ = 0, this.#a = $e(() => {
|
|
2085
2101
|
this.#u(this.#e);
|
|
2086
2102
|
}), this.#l > 0) {
|
|
2087
2103
|
var t = this.#s = document.createDocumentFragment();
|
|
@@ -2090,9 +2106,9 @@ class _a {
|
|
|
2090
2106
|
/** @type {(anchor: Node) => void} */
|
|
2091
2107
|
this.#r.pending
|
|
2092
2108
|
);
|
|
2093
|
-
this.#n =
|
|
2109
|
+
this.#n = $e(() => r(this.#e));
|
|
2094
2110
|
} else
|
|
2095
|
-
this.#
|
|
2111
|
+
this.#y(
|
|
2096
2112
|
/** @type {Batch} */
|
|
2097
2113
|
A
|
|
2098
2114
|
);
|
|
@@ -2103,15 +2119,15 @@ class _a {
|
|
|
2103
2119
|
/**
|
|
2104
2120
|
* @param {Batch} batch
|
|
2105
2121
|
*/
|
|
2106
|
-
#
|
|
2107
|
-
this.is_pending = !1, t.transfer_effects(this.#c, this.#
|
|
2122
|
+
#y(t) {
|
|
2123
|
+
this.is_pending = !1, t.transfer_effects(this.#c, this.#m);
|
|
2108
2124
|
}
|
|
2109
2125
|
/**
|
|
2110
2126
|
* Defer an effect inside a pending boundary until the boundary resolves
|
|
2111
2127
|
* @param {Effect} effect
|
|
2112
2128
|
*/
|
|
2113
2129
|
defer_effect(t) {
|
|
2114
|
-
Jn(t, this.#c, this.#
|
|
2130
|
+
Jn(t, this.#c, this.#m);
|
|
2115
2131
|
}
|
|
2116
2132
|
/**
|
|
2117
2133
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -2127,13 +2143,13 @@ class _a {
|
|
|
2127
2143
|
* @template T
|
|
2128
2144
|
* @param {() => T} fn
|
|
2129
2145
|
*/
|
|
2130
|
-
#
|
|
2146
|
+
#v(t) {
|
|
2131
2147
|
var r = S, n = T, i = ie;
|
|
2132
|
-
|
|
2148
|
+
Te(this.#i), ce(this.#i), lt(this.#i.ctx);
|
|
2133
2149
|
try {
|
|
2134
2150
|
return Le.ensure(), t();
|
|
2135
2151
|
} finally {
|
|
2136
|
-
|
|
2152
|
+
Te(r), ce(n), lt(i);
|
|
2137
2153
|
}
|
|
2138
2154
|
}
|
|
2139
2155
|
/**
|
|
@@ -2142,12 +2158,12 @@ class _a {
|
|
|
2142
2158
|
* @param {1 | -1} d
|
|
2143
2159
|
* @param {Batch} batch
|
|
2144
2160
|
*/
|
|
2145
|
-
#
|
|
2161
|
+
#T(t, r) {
|
|
2146
2162
|
if (!this.has_pending_snippet()) {
|
|
2147
|
-
this.parent && this.parent.#
|
|
2163
|
+
this.parent && this.parent.#T(t, r);
|
|
2148
2164
|
return;
|
|
2149
2165
|
}
|
|
2150
|
-
this.#l += t, this.#l === 0 && (this.#
|
|
2166
|
+
this.#l += t, this.#l === 0 && (this.#y(r), this.#n && Ot(this.#n, () => {
|
|
2151
2167
|
this.#n = null;
|
|
2152
2168
|
}), this.#s && (this.#e.before(this.#s), this.#s = null));
|
|
2153
2169
|
}
|
|
@@ -2159,50 +2175,51 @@ class _a {
|
|
|
2159
2175
|
* @param {Batch} batch
|
|
2160
2176
|
*/
|
|
2161
2177
|
update_pending_count(t, r) {
|
|
2162
|
-
this.#
|
|
2163
|
-
this.#f = !1, this.#h &&
|
|
2178
|
+
this.#T(t, r), this.#_ += t, !(!this.#h || this.#f) && (this.#f = !0, Ve(() => {
|
|
2179
|
+
this.#f = !1, this.#h && er(this.#h, this.#_);
|
|
2164
2180
|
}));
|
|
2165
2181
|
}
|
|
2166
2182
|
get_effect_pending() {
|
|
2167
|
-
return this.#
|
|
2183
|
+
return this.#E(), $(
|
|
2168
2184
|
/** @type {Source<number>} */
|
|
2169
2185
|
this.#h
|
|
2170
2186
|
);
|
|
2171
2187
|
}
|
|
2172
2188
|
/** @param {unknown} error */
|
|
2173
2189
|
error(t) {
|
|
2174
|
-
if (!this.#r.onerror && !this.#r.failed)
|
|
2190
|
+
if (t === De || !this.#r.onerror && !this.#r.failed)
|
|
2175
2191
|
throw t;
|
|
2176
2192
|
A?.is_fork ? (this.#a && A.skip_effect(this.#a), this.#n && A.skip_effect(this.#n), this.#o && A.skip_effect(this.#o), A.oncommit(() => {
|
|
2177
|
-
this.#
|
|
2178
|
-
})) : this.#
|
|
2193
|
+
this.#d() || this.#S(t);
|
|
2194
|
+
})) : this.#S(t);
|
|
2179
2195
|
}
|
|
2180
2196
|
/**
|
|
2181
2197
|
* @param {unknown} error
|
|
2182
2198
|
*/
|
|
2183
|
-
#
|
|
2184
|
-
this.#a && (se(this.#a), this.#a = null), this.#n && (se(this.#n), this.#n = null), this.#o && (se(this.#o), this.#o = null), F && (
|
|
2199
|
+
#S(t) {
|
|
2200
|
+
this.#a && (se(this.#a), this.#a = null), this.#n && (se(this.#n), this.#n = null), this.#o && (se(this.#o), this.#o = null), F && (me(
|
|
2185
2201
|
/** @type {TemplateNode} */
|
|
2186
2202
|
this.#t
|
|
2187
|
-
), Es(),
|
|
2203
|
+
), Es(), me(Vn()));
|
|
2188
2204
|
let r = this.#r.failed;
|
|
2189
2205
|
const n = (i) => {
|
|
2190
|
-
|
|
2191
|
-
|
|
2206
|
+
if (this.#d()) return;
|
|
2207
|
+
const { reset: s, invoke_onerror: o } = this.#b(i);
|
|
2208
|
+
o(), r && !this.#d() && (this.#o = this.#v(() => {
|
|
2192
2209
|
try {
|
|
2193
|
-
return
|
|
2210
|
+
return $e(() => {
|
|
2194
2211
|
var a = (
|
|
2195
2212
|
/** @type {Effect} */
|
|
2196
2213
|
S
|
|
2197
2214
|
);
|
|
2198
|
-
a.b = this, a.f |=
|
|
2215
|
+
a.b = this, a.f |= $r, r(
|
|
2199
2216
|
this.#e,
|
|
2200
2217
|
() => i,
|
|
2201
2218
|
() => s
|
|
2202
2219
|
);
|
|
2203
2220
|
});
|
|
2204
2221
|
} catch (a) {
|
|
2205
|
-
return
|
|
2222
|
+
return ge(
|
|
2206
2223
|
a,
|
|
2207
2224
|
/** @type {Effect} */
|
|
2208
2225
|
this.#i.parent
|
|
@@ -2210,24 +2227,26 @@ class _a {
|
|
|
2210
2227
|
}
|
|
2211
2228
|
}));
|
|
2212
2229
|
};
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2230
|
+
Ve(() => {
|
|
2231
|
+
if (!this.#d()) {
|
|
2232
|
+
var i;
|
|
2233
|
+
try {
|
|
2234
|
+
i = this.transform_error(t);
|
|
2235
|
+
} catch (s) {
|
|
2236
|
+
ge(s, this.#i && this.#i.parent);
|
|
2237
|
+
return;
|
|
2238
|
+
}
|
|
2239
|
+
i !== null && typeof i == "object" && typeof /** @type {any} */
|
|
2240
|
+
i.then == "function" ? i.then(
|
|
2241
|
+
n,
|
|
2242
|
+
/** @param {unknown} e */
|
|
2243
|
+
(s) => ge(s, this.#i && this.#i.parent)
|
|
2244
|
+
) : n(i);
|
|
2220
2245
|
}
|
|
2221
|
-
i !== null && typeof i == "object" && typeof /** @type {any} */
|
|
2222
|
-
i.then == "function" ? i.then(
|
|
2223
|
-
n,
|
|
2224
|
-
/** @param {unknown} e */
|
|
2225
|
-
(s) => be(s, this.#i && this.#i.parent)
|
|
2226
|
-
) : n(i);
|
|
2227
2246
|
});
|
|
2228
2247
|
}
|
|
2229
2248
|
}
|
|
2230
|
-
function
|
|
2249
|
+
function Er(e, t) {
|
|
2231
2250
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
2232
2251
|
r !== /** @type {any} */
|
|
2233
2252
|
(e[Or] ??= e.nodeValue) && (e[Or] = r, e.nodeValue = `${r}`);
|
|
@@ -2235,37 +2254,37 @@ function yr(e, t) {
|
|
|
2235
2254
|
function Ai(e, t) {
|
|
2236
2255
|
return $i(e, t);
|
|
2237
2256
|
}
|
|
2238
|
-
function
|
|
2239
|
-
|
|
2257
|
+
function _a(e, t) {
|
|
2258
|
+
Pr(), t.intro = t.intro ?? !1;
|
|
2240
2259
|
const r = t.target, n = F, i = L;
|
|
2241
2260
|
try {
|
|
2242
|
-
for (var s = /* @__PURE__ */
|
|
2243
|
-
s.data !==
|
|
2261
|
+
for (var s = /* @__PURE__ */ ft(r); s && (s.nodeType !== or || /** @type {Comment} */
|
|
2262
|
+
s.data !== Cn); )
|
|
2244
2263
|
s = /* @__PURE__ */ Ne(s);
|
|
2245
2264
|
if (!s)
|
|
2246
|
-
throw
|
|
2247
|
-
|
|
2265
|
+
throw De;
|
|
2266
|
+
rt(!0), me(
|
|
2248
2267
|
/** @type {Comment} */
|
|
2249
2268
|
s
|
|
2250
2269
|
);
|
|
2251
2270
|
const o = $i(e, { ...t, anchor: s });
|
|
2252
|
-
return
|
|
2271
|
+
return rt(!1), /** @type {Exports} */
|
|
2253
2272
|
o;
|
|
2254
2273
|
} catch (o) {
|
|
2255
2274
|
if (o instanceof Error && o.message.split(`
|
|
2256
2275
|
`).some((a) => a.startsWith("https://svelte.dev/e/")))
|
|
2257
2276
|
throw o;
|
|
2258
|
-
return o !==
|
|
2277
|
+
return o !== De && console.warn("Failed to hydrate: ", o), t.recover === !1 && $s(), Pr(), Ws(r), rt(!1), Ai(e, t);
|
|
2259
2278
|
} finally {
|
|
2260
|
-
|
|
2279
|
+
rt(n), me(i);
|
|
2261
2280
|
}
|
|
2262
2281
|
}
|
|
2263
|
-
const
|
|
2282
|
+
const Ft = /* @__PURE__ */ new Map();
|
|
2264
2283
|
function $i(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: o = !0, transformError: a }) {
|
|
2265
|
-
|
|
2266
|
-
var u = void 0, l =
|
|
2284
|
+
Pr();
|
|
2285
|
+
var u = void 0, l = Js(() => {
|
|
2267
2286
|
var f = r ?? t.appendChild(Pe());
|
|
2268
|
-
|
|
2287
|
+
pa(
|
|
2269
2288
|
/** @type {TemplateNode} */
|
|
2270
2289
|
f,
|
|
2271
2290
|
{
|
|
@@ -2273,19 +2292,19 @@ function $i(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2273
2292
|
}
|
|
2274
2293
|
},
|
|
2275
2294
|
(d) => {
|
|
2276
|
-
|
|
2295
|
+
Xr({});
|
|
2277
2296
|
var p = (
|
|
2278
2297
|
/** @type {ComponentContext} */
|
|
2279
2298
|
ie
|
|
2280
2299
|
);
|
|
2281
|
-
if (s && (p.c = s), i && (n.$$events = i), F &&
|
|
2300
|
+
if (s && (p.c = s), i && (n.$$events = i), F && Pt(
|
|
2282
2301
|
/** @type {TemplateNode} */
|
|
2283
2302
|
d,
|
|
2284
2303
|
null
|
|
2285
|
-
), u = e(d, n) || zn(), F && (S.nodes.end = L, L === null || L.nodeType !==
|
|
2286
|
-
L.data !==
|
|
2287
|
-
throw
|
|
2288
|
-
|
|
2304
|
+
), u = e(d, n) || zn(), F && (S.nodes.end = L, L === null || L.nodeType !== or || /** @type {Comment} */
|
|
2305
|
+
L.data !== Dn))
|
|
2306
|
+
throw ur(), De;
|
|
2307
|
+
Yr();
|
|
2289
2308
|
},
|
|
2290
2309
|
a
|
|
2291
2310
|
);
|
|
@@ -2294,39 +2313,39 @@ function $i(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2294
2313
|
var b = d[p];
|
|
2295
2314
|
if (!h.has(b)) {
|
|
2296
2315
|
h.add(b);
|
|
2297
|
-
var N =
|
|
2316
|
+
var N = ha(b);
|
|
2298
2317
|
for (const U of [t, document]) {
|
|
2299
|
-
var G =
|
|
2300
|
-
G === void 0 && (G = /* @__PURE__ */ new Map(),
|
|
2318
|
+
var G = Ft.get(U);
|
|
2319
|
+
G === void 0 && (G = /* @__PURE__ */ new Map(), Ft.set(U, G));
|
|
2301
2320
|
var W = G.get(b);
|
|
2302
|
-
W === void 0 ? (U.addEventListener(b,
|
|
2321
|
+
W === void 0 ? (U.addEventListener(b, En, { passive: N }), G.set(b, 1)) : G.set(b, W + 1);
|
|
2303
2322
|
}
|
|
2304
2323
|
}
|
|
2305
2324
|
}
|
|
2306
2325
|
};
|
|
2307
|
-
return c(ls(
|
|
2326
|
+
return c(ls(sa)), yn.add(c), () => {
|
|
2308
2327
|
for (var d of h)
|
|
2309
2328
|
for (const N of [t, document]) {
|
|
2310
2329
|
var p = (
|
|
2311
2330
|
/** @type {Map<string, number>} */
|
|
2312
|
-
|
|
2331
|
+
Ft.get(N)
|
|
2313
2332
|
), b = (
|
|
2314
2333
|
/** @type {number} */
|
|
2315
2334
|
p.get(d)
|
|
2316
2335
|
);
|
|
2317
|
-
--b == 0 ? (N.removeEventListener(d,
|
|
2336
|
+
--b == 0 ? (N.removeEventListener(d, En), p.delete(d), p.size === 0 && Ft.delete(N)) : p.set(d, b);
|
|
2318
2337
|
}
|
|
2319
|
-
|
|
2338
|
+
yn.delete(c), f !== r && f.parentNode?.removeChild(f);
|
|
2320
2339
|
};
|
|
2321
2340
|
});
|
|
2322
|
-
return
|
|
2341
|
+
return Mr.set(u, l), u;
|
|
2323
2342
|
}
|
|
2324
|
-
let
|
|
2325
|
-
function
|
|
2326
|
-
const r =
|
|
2327
|
-
return r ? (
|
|
2343
|
+
let Mr = /* @__PURE__ */ new WeakMap();
|
|
2344
|
+
function ma(e, t) {
|
|
2345
|
+
const r = Mr.get(e);
|
|
2346
|
+
return r ? (Mr.delete(e), r(t)) : Promise.resolve();
|
|
2328
2347
|
}
|
|
2329
|
-
class
|
|
2348
|
+
class ga {
|
|
2330
2349
|
/** @type {TemplateNode} */
|
|
2331
2350
|
anchor;
|
|
2332
2351
|
/** @type {Map<Batch, Key>} */
|
|
@@ -2379,10 +2398,10 @@ class ba {
|
|
|
2379
2398
|
this.#e.get(t)
|
|
2380
2399
|
), n = this.#t.get(r);
|
|
2381
2400
|
if (n)
|
|
2382
|
-
|
|
2401
|
+
_n(n), this.#u.delete(r);
|
|
2383
2402
|
else {
|
|
2384
2403
|
var i = this.#r.get(r);
|
|
2385
|
-
i && (
|
|
2404
|
+
i && (_n(i.effect), this.#t.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
|
|
2386
2405
|
}
|
|
2387
2406
|
for (const [s, o] of this.#e) {
|
|
2388
2407
|
if (this.#e.delete(s), s === t)
|
|
@@ -2400,7 +2419,7 @@ class ba {
|
|
|
2400
2419
|
se(o);
|
|
2401
2420
|
this.#u.delete(s), this.#t.delete(s);
|
|
2402
2421
|
};
|
|
2403
|
-
this.#i || !n ? (this.#u.add(s),
|
|
2422
|
+
this.#i || !n ? (this.#u.add(s), Ot(o, a, !1)) : a();
|
|
2404
2423
|
}
|
|
2405
2424
|
}
|
|
2406
2425
|
};
|
|
@@ -2422,18 +2441,18 @@ class ba {
|
|
|
2422
2441
|
var n = (
|
|
2423
2442
|
/** @type {Batch} */
|
|
2424
2443
|
A
|
|
2425
|
-
), i =
|
|
2444
|
+
), i = Xs();
|
|
2426
2445
|
if (r && !this.#t.has(t) && !this.#r.has(t))
|
|
2427
2446
|
if (i) {
|
|
2428
2447
|
var s = document.createDocumentFragment(), o = Pe();
|
|
2429
2448
|
s.append(o), this.#r.set(t, {
|
|
2430
|
-
effect:
|
|
2449
|
+
effect: $e(() => r(o)),
|
|
2431
2450
|
fragment: s
|
|
2432
2451
|
});
|
|
2433
2452
|
} else
|
|
2434
2453
|
this.#t.set(
|
|
2435
2454
|
t,
|
|
2436
|
-
|
|
2455
|
+
$e(() => r(this.anchor))
|
|
2437
2456
|
);
|
|
2438
2457
|
if (this.#e.set(n, t), i) {
|
|
2439
2458
|
for (const [a, u] of this.#t)
|
|
@@ -2445,19 +2464,19 @@ class ba {
|
|
|
2445
2464
|
F && (this.anchor = L), this.#a(n);
|
|
2446
2465
|
}
|
|
2447
2466
|
}
|
|
2448
|
-
function
|
|
2467
|
+
function xn(e, t, r = !1) {
|
|
2449
2468
|
var n;
|
|
2450
|
-
F && (n = L,
|
|
2451
|
-
var i = new
|
|
2469
|
+
F && (n = L, Wr());
|
|
2470
|
+
var i = new ga(e), s = r ? ut : 0;
|
|
2452
2471
|
function o(a, u) {
|
|
2453
2472
|
if (F) {
|
|
2454
|
-
var l =
|
|
2473
|
+
var l = Wn(
|
|
2455
2474
|
/** @type {TemplateNode} */
|
|
2456
2475
|
n
|
|
2457
2476
|
);
|
|
2458
2477
|
if (a !== parseInt(l.substring(1))) {
|
|
2459
|
-
var f =
|
|
2460
|
-
|
|
2478
|
+
var f = Vn();
|
|
2479
|
+
me(f), i.anchor = f, rt(!1), i.ensure(a, u), rt(!0);
|
|
2461
2480
|
return;
|
|
2462
2481
|
}
|
|
2463
2482
|
}
|
|
@@ -2470,8 +2489,8 @@ function wn(e, t, r = !1) {
|
|
|
2470
2489
|
}), a || o(-1, null);
|
|
2471
2490
|
}, s);
|
|
2472
2491
|
}
|
|
2473
|
-
function
|
|
2474
|
-
|
|
2492
|
+
function ba(e, t) {
|
|
2493
|
+
Qs(() => {
|
|
2475
2494
|
e = S?.parent?.nodes?.start ?? e;
|
|
2476
2495
|
var r = e.getRootNode(), n = (
|
|
2477
2496
|
/** @type {ShadowRoot} */
|
|
@@ -2485,14 +2504,14 @@ function ya(e, t) {
|
|
|
2485
2504
|
)
|
|
2486
2505
|
);
|
|
2487
2506
|
if (!n.querySelector("#" + t.hash)) {
|
|
2488
|
-
const i =
|
|
2507
|
+
const i = Kr("style");
|
|
2489
2508
|
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
2490
2509
|
}
|
|
2491
2510
|
});
|
|
2492
2511
|
}
|
|
2493
|
-
function
|
|
2512
|
+
function sn(e, t, r) {
|
|
2494
2513
|
if (e == null)
|
|
2495
|
-
return t(void 0), r && r(void 0),
|
|
2514
|
+
return t(void 0), r && r(void 0), Oe;
|
|
2496
2515
|
const n = Hi(
|
|
2497
2516
|
() => e.subscribe(
|
|
2498
2517
|
t,
|
|
@@ -2502,24 +2521,24 @@ function an(e, t, r) {
|
|
|
2502
2521
|
);
|
|
2503
2522
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
2504
2523
|
}
|
|
2505
|
-
const
|
|
2506
|
-
function
|
|
2524
|
+
const tt = [];
|
|
2525
|
+
function ya(e, t) {
|
|
2507
2526
|
return {
|
|
2508
|
-
subscribe:
|
|
2527
|
+
subscribe: fr(e, t).subscribe
|
|
2509
2528
|
};
|
|
2510
2529
|
}
|
|
2511
|
-
function
|
|
2530
|
+
function fr(e, t = Oe) {
|
|
2512
2531
|
let r = null;
|
|
2513
2532
|
const n = /* @__PURE__ */ new Set();
|
|
2514
2533
|
function i(a) {
|
|
2515
2534
|
if (Yn(e, a) && (e = a, r)) {
|
|
2516
|
-
const u = !
|
|
2535
|
+
const u = !tt.length;
|
|
2517
2536
|
for (const l of n)
|
|
2518
|
-
l[1](),
|
|
2537
|
+
l[1](), tt.push(l, e);
|
|
2519
2538
|
if (u) {
|
|
2520
|
-
for (let l = 0; l <
|
|
2521
|
-
|
|
2522
|
-
|
|
2539
|
+
for (let l = 0; l < tt.length; l += 2)
|
|
2540
|
+
tt[l][0](tt[l + 1]);
|
|
2541
|
+
tt.length = 0;
|
|
2523
2542
|
}
|
|
2524
2543
|
}
|
|
2525
2544
|
}
|
|
@@ -2529,9 +2548,9 @@ function lr(e, t = Be) {
|
|
|
2529
2548
|
e
|
|
2530
2549
|
));
|
|
2531
2550
|
}
|
|
2532
|
-
function o(a, u =
|
|
2551
|
+
function o(a, u = Oe) {
|
|
2533
2552
|
const l = [a, u];
|
|
2534
|
-
return n.add(l), n.size === 1 && (r = t(i, s) ||
|
|
2553
|
+
return n.add(l), n.size === 1 && (r = t(i, s) || Oe), a(
|
|
2535
2554
|
/** @type {T} */
|
|
2536
2555
|
e
|
|
2537
2556
|
), () => {
|
|
@@ -2540,23 +2559,23 @@ function lr(e, t = Be) {
|
|
|
2540
2559
|
}
|
|
2541
2560
|
return { set: i, update: s, subscribe: o };
|
|
2542
2561
|
}
|
|
2543
|
-
function
|
|
2562
|
+
function _t(e, t, r) {
|
|
2544
2563
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
2545
2564
|
if (!i.every(Boolean))
|
|
2546
2565
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
2547
2566
|
const s = t.length < 2;
|
|
2548
|
-
return
|
|
2567
|
+
return ya(r, (o, a) => {
|
|
2549
2568
|
let u = !1;
|
|
2550
2569
|
const l = [];
|
|
2551
|
-
let f = 0, h =
|
|
2570
|
+
let f = 0, h = Oe;
|
|
2552
2571
|
const c = () => {
|
|
2553
2572
|
if (f)
|
|
2554
2573
|
return;
|
|
2555
2574
|
h();
|
|
2556
2575
|
const p = t(n ? l[0] : l, o, a);
|
|
2557
|
-
s ? o(p) : h = typeof p == "function" ? p :
|
|
2576
|
+
s ? o(p) : h = typeof p == "function" ? p : Oe;
|
|
2558
2577
|
}, d = i.map(
|
|
2559
|
-
(p, b) =>
|
|
2578
|
+
(p, b) => sn(
|
|
2560
2579
|
p,
|
|
2561
2580
|
(N) => {
|
|
2562
2581
|
l[b] = N, f &= ~(1 << b), u && c();
|
|
@@ -2567,39 +2586,39 @@ function vt(e, t, r) {
|
|
|
2567
2586
|
)
|
|
2568
2587
|
);
|
|
2569
2588
|
return u = !0, c(), function() {
|
|
2570
|
-
|
|
2589
|
+
Fn(d), h(), u = !1;
|
|
2571
2590
|
};
|
|
2572
2591
|
});
|
|
2573
2592
|
}
|
|
2574
|
-
function
|
|
2593
|
+
function Ea(e) {
|
|
2575
2594
|
let t;
|
|
2576
|
-
return
|
|
2595
|
+
return sn(e, (r) => t = r)(), t;
|
|
2577
2596
|
}
|
|
2578
|
-
let
|
|
2579
|
-
function
|
|
2597
|
+
let Nr = Symbol("unmounted");
|
|
2598
|
+
function xa(e, t, r) {
|
|
2580
2599
|
const n = r[t] ??= {
|
|
2581
2600
|
store: null,
|
|
2582
2601
|
source: /* @__PURE__ */ si(void 0),
|
|
2583
|
-
unsubscribe:
|
|
2602
|
+
unsubscribe: Oe
|
|
2584
2603
|
};
|
|
2585
|
-
if (n.store !== e && !(
|
|
2604
|
+
if (n.store !== e && !(Nr in r))
|
|
2586
2605
|
if (n.unsubscribe(), n.store = e ?? null, e == null)
|
|
2587
|
-
n.source.v = void 0, n.unsubscribe =
|
|
2606
|
+
n.source.v = void 0, n.unsubscribe = Oe;
|
|
2588
2607
|
else {
|
|
2589
2608
|
var i = !0;
|
|
2590
|
-
n.unsubscribe =
|
|
2609
|
+
n.unsubscribe = sn(e, (s) => {
|
|
2591
2610
|
i ? n.source.v = s : Y(n.source, s);
|
|
2592
2611
|
}), i = !1;
|
|
2593
2612
|
}
|
|
2594
|
-
return e &&
|
|
2613
|
+
return e && Nr in r ? Ea(e) : $(n.source);
|
|
2595
2614
|
}
|
|
2596
|
-
function
|
|
2615
|
+
function wa() {
|
|
2597
2616
|
const e = {};
|
|
2598
2617
|
function t() {
|
|
2599
2618
|
fi(() => {
|
|
2600
2619
|
for (var r in e)
|
|
2601
2620
|
e[r].unsubscribe();
|
|
2602
|
-
|
|
2621
|
+
at(e, Nr, {
|
|
2603
2622
|
enumerable: !1,
|
|
2604
2623
|
value: !0
|
|
2605
2624
|
});
|
|
@@ -2607,7 +2626,7 @@ function Ta() {
|
|
|
2607
2626
|
}
|
|
2608
2627
|
return [e, t];
|
|
2609
2628
|
}
|
|
2610
|
-
function
|
|
2629
|
+
function be(e, t, r, n) {
|
|
2611
2630
|
var i = (
|
|
2612
2631
|
/** @type {V} */
|
|
2613
2632
|
n
|
|
@@ -2623,7 +2642,7 @@ function ye(e, t, r, n) {
|
|
|
2623
2642
|
);
|
|
2624
2643
|
return c === void 0 ? o() : (s = !0, c);
|
|
2625
2644
|
};
|
|
2626
|
-
var l = !1, f = /* @__PURE__ */
|
|
2645
|
+
var l = !1, f = /* @__PURE__ */ qr(() => (l = !1, u())), h = (
|
|
2627
2646
|
/** @type {Effect} */
|
|
2628
2647
|
S
|
|
2629
2648
|
);
|
|
@@ -2634,14 +2653,14 @@ function ye(e, t, r, n) {
|
|
|
2634
2653
|
const p = d ? $(f) : c;
|
|
2635
2654
|
return Y(f, p), l = !0, i !== void 0 && (i = p), c;
|
|
2636
2655
|
}
|
|
2637
|
-
return Me && l || h.f &
|
|
2656
|
+
return Me && l || h.f & q ? f.v : $(f);
|
|
2638
2657
|
}
|
|
2639
2658
|
);
|
|
2640
2659
|
}
|
|
2641
|
-
function
|
|
2642
|
-
return new
|
|
2660
|
+
function Ta(e) {
|
|
2661
|
+
return new Sa(e);
|
|
2643
2662
|
}
|
|
2644
|
-
class
|
|
2663
|
+
class Sa {
|
|
2645
2664
|
/** @type {any} */
|
|
2646
2665
|
#e;
|
|
2647
2666
|
/** @type {Record<string, any>} */
|
|
@@ -2670,7 +2689,7 @@ class Ha {
|
|
|
2670
2689
|
}
|
|
2671
2690
|
}
|
|
2672
2691
|
);
|
|
2673
|
-
this.#t = (t.hydrate ?
|
|
2692
|
+
this.#t = (t.hydrate ? _a : Ai)(t.component, {
|
|
2674
2693
|
target: t.target,
|
|
2675
2694
|
anchor: t.anchor,
|
|
2676
2695
|
props: i,
|
|
@@ -2680,7 +2699,7 @@ class Ha {
|
|
|
2680
2699
|
transformError: t.transformError
|
|
2681
2700
|
}), (!t?.props?.$$host || t.sync === !1) && le(), this.#e = i.$$events;
|
|
2682
2701
|
for (const s of Object.keys(this.#t))
|
|
2683
|
-
s === "$set" || s === "$destroy" || s === "$on" ||
|
|
2702
|
+
s === "$set" || s === "$destroy" || s === "$on" || at(this, s, {
|
|
2684
2703
|
get() {
|
|
2685
2704
|
return this.#t[s];
|
|
2686
2705
|
},
|
|
@@ -2694,7 +2713,7 @@ class Ha {
|
|
|
2694
2713
|
(s) => {
|
|
2695
2714
|
Object.assign(i, s);
|
|
2696
2715
|
}, this.#t.$destroy = () => {
|
|
2697
|
-
|
|
2716
|
+
ma(this.#t);
|
|
2698
2717
|
};
|
|
2699
2718
|
}
|
|
2700
2719
|
/** @param {Record<string, any>} props */
|
|
@@ -2779,22 +2798,22 @@ typeof HTMLElement == "function" && (Oi = class extends HTMLElement {
|
|
|
2779
2798
|
if (this.$$cn = !0, !this.$$c) {
|
|
2780
2799
|
let e = function(n) {
|
|
2781
2800
|
return (i) => {
|
|
2782
|
-
const s =
|
|
2783
|
-
n !== "default" && (s.name = n),
|
|
2801
|
+
const s = Kr("slot");
|
|
2802
|
+
n !== "default" && (s.name = n), St(i, s);
|
|
2784
2803
|
};
|
|
2785
2804
|
};
|
|
2786
2805
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
2787
2806
|
return;
|
|
2788
|
-
const t = {}, r =
|
|
2807
|
+
const t = {}, r = Ha(this);
|
|
2789
2808
|
for (const n of this.$$s)
|
|
2790
2809
|
n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2791
2810
|
for (const n of this.attributes) {
|
|
2792
2811
|
const i = this.$$g_p(n.name);
|
|
2793
|
-
i in this.$$d || (this.$$d[i] =
|
|
2812
|
+
i in this.$$d || (this.$$d[i] = Wt(i, n.value, this.$$p_d, "toProp"));
|
|
2794
2813
|
}
|
|
2795
2814
|
for (const n in this.$$p_d)
|
|
2796
2815
|
!(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2797
|
-
this.$$c =
|
|
2816
|
+
this.$$c = Ta({
|
|
2798
2817
|
component: this.$$ctor,
|
|
2799
2818
|
target: this.$$shadowRoot || this,
|
|
2800
2819
|
props: {
|
|
@@ -2802,13 +2821,13 @@ typeof HTMLElement == "function" && (Oi = class extends HTMLElement {
|
|
|
2802
2821
|
$$slots: t,
|
|
2803
2822
|
$$host: this
|
|
2804
2823
|
}
|
|
2805
|
-
}), this.$$me =
|
|
2824
|
+
}), this.$$me = Zs(() => {
|
|
2806
2825
|
ci(() => {
|
|
2807
2826
|
this.$$r = !0;
|
|
2808
2827
|
for (const n of zt(this.$$c)) {
|
|
2809
2828
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
2810
2829
|
this.$$d[n] = this.$$c[n];
|
|
2811
|
-
const i =
|
|
2830
|
+
const i = Wt(
|
|
2812
2831
|
n,
|
|
2813
2832
|
this.$$d[n],
|
|
2814
2833
|
this.$$p_d,
|
|
@@ -2835,7 +2854,7 @@ typeof HTMLElement == "function" && (Oi = class extends HTMLElement {
|
|
|
2835
2854
|
* @param {string} newValue
|
|
2836
2855
|
*/
|
|
2837
2856
|
attributeChangedCallback(e, t, r) {
|
|
2838
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2857
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Wt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2839
2858
|
}
|
|
2840
2859
|
disconnectedCallback() {
|
|
2841
2860
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2851,7 +2870,7 @@ typeof HTMLElement == "function" && (Oi = class extends HTMLElement {
|
|
|
2851
2870
|
) || e;
|
|
2852
2871
|
}
|
|
2853
2872
|
});
|
|
2854
|
-
function
|
|
2873
|
+
function Wt(e, t, r, n) {
|
|
2855
2874
|
const i = r[e]?.type;
|
|
2856
2875
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
2857
2876
|
return t;
|
|
@@ -2880,7 +2899,7 @@ function Vt(e, t, r, n) {
|
|
|
2880
2899
|
return t;
|
|
2881
2900
|
}
|
|
2882
2901
|
}
|
|
2883
|
-
function
|
|
2902
|
+
function Ha(e) {
|
|
2884
2903
|
const t = {};
|
|
2885
2904
|
return e.childNodes.forEach((r) => {
|
|
2886
2905
|
t[
|
|
@@ -2901,21 +2920,21 @@ function Bi(e, t, r, n, i, s) {
|
|
|
2901
2920
|
}
|
|
2902
2921
|
};
|
|
2903
2922
|
return zt(t).forEach((a) => {
|
|
2904
|
-
|
|
2923
|
+
at(o.prototype, a, {
|
|
2905
2924
|
get() {
|
|
2906
2925
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2907
2926
|
},
|
|
2908
2927
|
set(u) {
|
|
2909
|
-
u =
|
|
2928
|
+
u = Wt(a, u, t), this.$$d[a] = u;
|
|
2910
2929
|
var l = this.$$c;
|
|
2911
2930
|
if (l) {
|
|
2912
|
-
var f =
|
|
2931
|
+
var f = nt(l, a)?.get;
|
|
2913
2932
|
f ? l[a] = u : l.$set({ [a]: u });
|
|
2914
2933
|
}
|
|
2915
2934
|
}
|
|
2916
2935
|
});
|
|
2917
2936
|
}), n.forEach((a) => {
|
|
2918
|
-
|
|
2937
|
+
at(o.prototype, a, {
|
|
2919
2938
|
get() {
|
|
2920
2939
|
return this.$$c?.[a];
|
|
2921
2940
|
}
|
|
@@ -2923,29 +2942,29 @@ function Bi(e, t, r, n, i, s) {
|
|
|
2923
2942
|
}), e.element = /** @type {any} */
|
|
2924
2943
|
o, o;
|
|
2925
2944
|
}
|
|
2926
|
-
class
|
|
2945
|
+
class Aa extends Error {
|
|
2927
2946
|
constructor(t, r) {
|
|
2928
2947
|
super(r), this.code = t, this.name = "ElevateApiError";
|
|
2929
2948
|
}
|
|
2930
2949
|
}
|
|
2931
|
-
const
|
|
2950
|
+
const $a = async (e) => {
|
|
2932
2951
|
const t = new URL(`${e.apiEndpoint}/elevate/playerInfo?language=${e.locale ?? ""}`), r = new Headers({ "Content-Type": "application/json" });
|
|
2933
2952
|
e.userSession && r.append("X-SessionId", e.userSession);
|
|
2934
2953
|
const i = await (await fetch(t.href, { method: "GET", headers: r })).json();
|
|
2935
2954
|
if (!i.success)
|
|
2936
|
-
throw new
|
|
2955
|
+
throw new Aa(i.errorCode, i.errorMessage);
|
|
2937
2956
|
return i.data;
|
|
2938
|
-
},
|
|
2957
|
+
}, Oa = async (e) => {
|
|
2939
2958
|
const t = new URL(`${e.apiEndpoint}/elevate/levels?language=${e.locale ?? ""}`);
|
|
2940
2959
|
return (await (await fetch(t.href, { method: "GET" })).json()).data;
|
|
2941
|
-
},
|
|
2960
|
+
}, tr = "DD/MM/YYYY HH:mm:ss", Ba = (e, t) => {
|
|
2942
2961
|
const r = [...e].sort((i, s) => i.firstEntryPoints > s.firstEntryPoints ? 1 : -1);
|
|
2943
2962
|
let n = 0;
|
|
2944
2963
|
return r.forEach((i, s) => {
|
|
2945
2964
|
t > i.firstEntryPoints && (n = s);
|
|
2946
2965
|
}), n;
|
|
2947
2966
|
};
|
|
2948
|
-
var
|
|
2967
|
+
var La = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2949
2968
|
function Li(e) {
|
|
2950
2969
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2951
2970
|
}
|
|
@@ -2953,14 +2972,14 @@ var Pi = { exports: {} };
|
|
|
2953
2972
|
(function(e, t) {
|
|
2954
2973
|
(function(r, n) {
|
|
2955
2974
|
e.exports = n();
|
|
2956
|
-
})(
|
|
2975
|
+
})(La, function() {
|
|
2957
2976
|
var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", o = "second", a = "minute", u = "hour", l = "day", f = "week", h = "month", c = "quarter", d = "year", p = "date", b = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, G = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, W = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(y) {
|
|
2958
2977
|
var m = ["th", "st", "nd", "rd"], v = y % 100;
|
|
2959
2978
|
return "[" + y + (m[(v - 20) % 10] || m[v] || m[0]) + "]";
|
|
2960
2979
|
} }, U = function(y, m, v) {
|
|
2961
2980
|
var g = String(y);
|
|
2962
2981
|
return !g || g.length >= m ? y : "" + Array(m + 1 - g.length).join(v) + y;
|
|
2963
|
-
},
|
|
2982
|
+
}, He = { s: U, z: function(y) {
|
|
2964
2983
|
var m = -y.utcOffset(), v = Math.abs(m), g = Math.floor(v / 60), _ = v % 60;
|
|
2965
2984
|
return (m <= 0 ? "+" : "-") + U(g, 2, "0") + ":" + U(_, 2, "0");
|
|
2966
2985
|
}, m: function y(m, v) {
|
|
@@ -2973,34 +2992,34 @@ var Pi = { exports: {} };
|
|
|
2973
2992
|
return { M: h, y: d, w: f, d: l, D: p, h: u, m: a, s: o, ms: s, Q: c }[y] || String(y || "").toLowerCase().replace(/s$/, "");
|
|
2974
2993
|
}, u: function(y) {
|
|
2975
2994
|
return y === void 0;
|
|
2976
|
-
} },
|
|
2977
|
-
|
|
2978
|
-
var B = "$isDayjsObject",
|
|
2979
|
-
return y instanceof
|
|
2980
|
-
},
|
|
2995
|
+
} }, J = "en", K = {};
|
|
2996
|
+
K[J] = W;
|
|
2997
|
+
var B = "$isDayjsObject", ee = function(y) {
|
|
2998
|
+
return y instanceof Je || !(!y || !y[B]);
|
|
2999
|
+
}, ke = function y(m, v, g) {
|
|
2981
3000
|
var _;
|
|
2982
|
-
if (!m) return
|
|
3001
|
+
if (!m) return J;
|
|
2983
3002
|
if (typeof m == "string") {
|
|
2984
3003
|
var E = m.toLowerCase();
|
|
2985
|
-
|
|
3004
|
+
K[E] && (_ = E), v && (K[E] = v, _ = E);
|
|
2986
3005
|
var x = m.split("-");
|
|
2987
3006
|
if (!_ && x.length > 1) return y(x[0]);
|
|
2988
3007
|
} else {
|
|
2989
3008
|
var P = m.name;
|
|
2990
|
-
|
|
3009
|
+
K[P] = m, _ = P;
|
|
2991
3010
|
}
|
|
2992
|
-
return !g && _ && (
|
|
3011
|
+
return !g && _ && (J = _), _ || !g && J;
|
|
2993
3012
|
}, R = function(y, m) {
|
|
2994
|
-
if (
|
|
3013
|
+
if (ee(y)) return y.clone();
|
|
2995
3014
|
var v = typeof m == "object" ? m : {};
|
|
2996
|
-
return v.date = y, v.args = arguments, new
|
|
2997
|
-
}, O =
|
|
2998
|
-
O.l =
|
|
3015
|
+
return v.date = y, v.args = arguments, new Je(v);
|
|
3016
|
+
}, O = He;
|
|
3017
|
+
O.l = ke, O.i = ee, O.w = function(y, m) {
|
|
2999
3018
|
return R(y, { locale: m.$L, utc: m.$u, x: m.$x, $offset: m.$offset });
|
|
3000
3019
|
};
|
|
3001
|
-
var
|
|
3020
|
+
var Je = function() {
|
|
3002
3021
|
function y(v) {
|
|
3003
|
-
this.$L =
|
|
3022
|
+
this.$L = ke(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[B] = !0;
|
|
3004
3023
|
}
|
|
3005
3024
|
var m = y.prototype;
|
|
3006
3025
|
return m.parse = function(v) {
|
|
@@ -3039,29 +3058,29 @@ var Pi = { exports: {} };
|
|
|
3039
3058
|
}, m.valueOf = function() {
|
|
3040
3059
|
return this.$d.getTime();
|
|
3041
3060
|
}, m.startOf = function(v, g) {
|
|
3042
|
-
var _ = this, E = !!O.u(g) || g, x = O.p(v), P = function(
|
|
3043
|
-
var Ie = O.w(_.$u ? Date.UTC(_.$y,
|
|
3061
|
+
var _ = this, E = !!O.u(g) || g, x = O.p(v), P = function(Ue, te) {
|
|
3062
|
+
var Ie = O.w(_.$u ? Date.UTC(_.$y, te, Ue) : new Date(_.$y, te, Ue), _);
|
|
3044
3063
|
return E ? Ie : Ie.endOf(l);
|
|
3045
|
-
}, D = function(
|
|
3046
|
-
return O.w(_.toDate()[
|
|
3047
|
-
}, X = this.$W, z = this.$M, oe = this.$D,
|
|
3064
|
+
}, D = function(Ue, te) {
|
|
3065
|
+
return O.w(_.toDate()[Ue].apply(_.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), _);
|
|
3066
|
+
}, X = this.$W, z = this.$M, oe = this.$D, Qe = "set" + (this.$u ? "UTC" : "");
|
|
3048
3067
|
switch (x) {
|
|
3049
3068
|
case d:
|
|
3050
3069
|
return E ? P(1, 0) : P(31, 11);
|
|
3051
3070
|
case h:
|
|
3052
3071
|
return E ? P(1, z) : P(0, z + 1);
|
|
3053
3072
|
case f:
|
|
3054
|
-
var
|
|
3055
|
-
return P(E ? oe -
|
|
3073
|
+
var Fe = this.$locale().weekStart || 0, yt = (X < Fe ? X + 7 : X) - Fe;
|
|
3074
|
+
return P(E ? oe - yt : oe + (6 - yt), z);
|
|
3056
3075
|
case l:
|
|
3057
3076
|
case p:
|
|
3058
|
-
return D(
|
|
3077
|
+
return D(Qe + "Hours", 0);
|
|
3059
3078
|
case u:
|
|
3060
|
-
return D(
|
|
3079
|
+
return D(Qe + "Minutes", 1);
|
|
3061
3080
|
case a:
|
|
3062
|
-
return D(
|
|
3081
|
+
return D(Qe + "Seconds", 2);
|
|
3063
3082
|
case o:
|
|
3064
|
-
return D(
|
|
3083
|
+
return D(Qe + "Milliseconds", 3);
|
|
3065
3084
|
default:
|
|
3066
3085
|
return this.clone();
|
|
3067
3086
|
}
|
|
@@ -3096,17 +3115,17 @@ var Pi = { exports: {} };
|
|
|
3096
3115
|
}, m.format = function(v) {
|
|
3097
3116
|
var g = this, _ = this.$locale();
|
|
3098
3117
|
if (!this.isValid()) return _.invalidDate || b;
|
|
3099
|
-
var E = v || "YYYY-MM-DDTHH:mm:ssZ", x = O.z(this), P = this.$H, D = this.$m, X = this.$M, z = _.weekdays, oe = _.months,
|
|
3100
|
-
return
|
|
3101
|
-
},
|
|
3102
|
-
return O.s(P % 12 || 12,
|
|
3103
|
-
},
|
|
3104
|
-
var
|
|
3105
|
-
return
|
|
3118
|
+
var E = v || "YYYY-MM-DDTHH:mm:ssZ", x = O.z(this), P = this.$H, D = this.$m, X = this.$M, z = _.weekdays, oe = _.months, Qe = _.meridiem, Fe = function(te, Ie, Et, Dt) {
|
|
3119
|
+
return te && (te[Ie] || te(g, E)) || Et[Ie].slice(0, Dt);
|
|
3120
|
+
}, yt = function(te) {
|
|
3121
|
+
return O.s(P % 12 || 12, te, "0");
|
|
3122
|
+
}, Ue = Qe || function(te, Ie, Et) {
|
|
3123
|
+
var Dt = te < 12 ? "AM" : "PM";
|
|
3124
|
+
return Et ? Dt.toLowerCase() : Dt;
|
|
3106
3125
|
};
|
|
3107
|
-
return E.replace(G, function(
|
|
3108
|
-
return Ie || function(
|
|
3109
|
-
switch (
|
|
3126
|
+
return E.replace(G, function(te, Ie) {
|
|
3127
|
+
return Ie || function(Et) {
|
|
3128
|
+
switch (Et) {
|
|
3110
3129
|
case "YY":
|
|
3111
3130
|
return String(g.$y).slice(-2);
|
|
3112
3131
|
case "YYYY":
|
|
@@ -3116,9 +3135,9 @@ var Pi = { exports: {} };
|
|
|
3116
3135
|
case "MM":
|
|
3117
3136
|
return O.s(X + 1, 2, "0");
|
|
3118
3137
|
case "MMM":
|
|
3119
|
-
return
|
|
3138
|
+
return Fe(_.monthsShort, X, oe, 3);
|
|
3120
3139
|
case "MMMM":
|
|
3121
|
-
return
|
|
3140
|
+
return Fe(oe, X);
|
|
3122
3141
|
case "D":
|
|
3123
3142
|
return g.$D;
|
|
3124
3143
|
case "DD":
|
|
@@ -3126,9 +3145,9 @@ var Pi = { exports: {} };
|
|
|
3126
3145
|
case "d":
|
|
3127
3146
|
return String(g.$W);
|
|
3128
3147
|
case "dd":
|
|
3129
|
-
return
|
|
3148
|
+
return Fe(_.weekdaysMin, g.$W, z, 2);
|
|
3130
3149
|
case "ddd":
|
|
3131
|
-
return
|
|
3150
|
+
return Fe(_.weekdaysShort, g.$W, z, 3);
|
|
3132
3151
|
case "dddd":
|
|
3133
3152
|
return z[g.$W];
|
|
3134
3153
|
case "H":
|
|
@@ -3136,13 +3155,13 @@ var Pi = { exports: {} };
|
|
|
3136
3155
|
case "HH":
|
|
3137
3156
|
return O.s(P, 2, "0");
|
|
3138
3157
|
case "h":
|
|
3139
|
-
return
|
|
3158
|
+
return yt(1);
|
|
3140
3159
|
case "hh":
|
|
3141
|
-
return
|
|
3160
|
+
return yt(2);
|
|
3142
3161
|
case "a":
|
|
3143
|
-
return
|
|
3162
|
+
return Ue(P, D, !0);
|
|
3144
3163
|
case "A":
|
|
3145
|
-
return
|
|
3164
|
+
return Ue(P, D, !1);
|
|
3146
3165
|
case "m":
|
|
3147
3166
|
return String(D);
|
|
3148
3167
|
case "mm":
|
|
@@ -3157,7 +3176,7 @@ var Pi = { exports: {} };
|
|
|
3157
3176
|
return x;
|
|
3158
3177
|
}
|
|
3159
3178
|
return null;
|
|
3160
|
-
}(
|
|
3179
|
+
}(te) || x.replace(":", "");
|
|
3161
3180
|
});
|
|
3162
3181
|
}, m.utcOffset = function() {
|
|
3163
3182
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
@@ -3197,10 +3216,10 @@ var Pi = { exports: {} };
|
|
|
3197
3216
|
}, m.daysInMonth = function() {
|
|
3198
3217
|
return this.endOf(h).$D;
|
|
3199
3218
|
}, m.$locale = function() {
|
|
3200
|
-
return
|
|
3219
|
+
return K[this.$L];
|
|
3201
3220
|
}, m.locale = function(v, g) {
|
|
3202
3221
|
if (!v) return this.$L;
|
|
3203
|
-
var _ = this.clone(), E =
|
|
3222
|
+
var _ = this.clone(), E = ke(v, g, !0);
|
|
3204
3223
|
return E && (_.$L = E), _;
|
|
3205
3224
|
}, m.clone = function() {
|
|
3206
3225
|
return O.w(this.$d, this);
|
|
@@ -3213,61 +3232,61 @@ var Pi = { exports: {} };
|
|
|
3213
3232
|
}, m.toString = function() {
|
|
3214
3233
|
return this.$d.toUTCString();
|
|
3215
3234
|
}, y;
|
|
3216
|
-
}(),
|
|
3217
|
-
return R.prototype =
|
|
3218
|
-
|
|
3235
|
+
}(), bt = Je.prototype;
|
|
3236
|
+
return R.prototype = bt, [["$ms", s], ["$s", o], ["$m", a], ["$H", u], ["$W", l], ["$M", h], ["$y", d], ["$D", p]].forEach(function(y) {
|
|
3237
|
+
bt[y[1]] = function(m) {
|
|
3219
3238
|
return this.$g(m, y[0], y[1]);
|
|
3220
3239
|
};
|
|
3221
3240
|
}), R.extend = function(y, m) {
|
|
3222
|
-
return y.$i || (y(m,
|
|
3223
|
-
}, R.locale =
|
|
3241
|
+
return y.$i || (y(m, Je, R), y.$i = !0), R;
|
|
3242
|
+
}, R.locale = ke, R.isDayjs = ee, R.unix = function(y) {
|
|
3224
3243
|
return R(1e3 * y);
|
|
3225
|
-
}, R.en =
|
|
3244
|
+
}, R.en = K[J], R.Ls = K, R.p = {}, R;
|
|
3226
3245
|
});
|
|
3227
3246
|
})(Pi);
|
|
3228
|
-
var
|
|
3229
|
-
const
|
|
3230
|
-
const r =
|
|
3247
|
+
var Pa = Pi.exports;
|
|
3248
|
+
const Ma = /* @__PURE__ */ Li(Pa), Na = (e, t = "DD/MM/YYYY") => {
|
|
3249
|
+
const r = Ma(e);
|
|
3231
3250
|
return r.isValid() ? r.format(t) : "";
|
|
3232
3251
|
};
|
|
3233
|
-
var
|
|
3234
|
-
return
|
|
3252
|
+
var Ia = function(t) {
|
|
3253
|
+
return Ca(t) && !Ra(t);
|
|
3235
3254
|
};
|
|
3236
|
-
function
|
|
3255
|
+
function Ca(e) {
|
|
3237
3256
|
return !!e && typeof e == "object";
|
|
3238
3257
|
}
|
|
3239
|
-
function
|
|
3258
|
+
function Ra(e) {
|
|
3240
3259
|
var t = Object.prototype.toString.call(e);
|
|
3241
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
3260
|
+
return t === "[object RegExp]" || t === "[object Date]" || Fa(e);
|
|
3242
3261
|
}
|
|
3243
|
-
var
|
|
3244
|
-
function
|
|
3245
|
-
return e.$$typeof ===
|
|
3262
|
+
var Da = typeof Symbol == "function" && Symbol.for, ka = Da ? Symbol.for("react.element") : 60103;
|
|
3263
|
+
function Fa(e) {
|
|
3264
|
+
return e.$$typeof === ka;
|
|
3246
3265
|
}
|
|
3247
|
-
function
|
|
3266
|
+
function Ua(e) {
|
|
3248
3267
|
return Array.isArray(e) ? [] : {};
|
|
3249
3268
|
}
|
|
3250
|
-
function
|
|
3251
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
3269
|
+
function Mt(e, t) {
|
|
3270
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ct(Ua(e), e, t) : e;
|
|
3252
3271
|
}
|
|
3253
|
-
function
|
|
3272
|
+
function Ga(e, t, r) {
|
|
3254
3273
|
return e.concat(t).map(function(n) {
|
|
3255
|
-
return
|
|
3274
|
+
return Mt(n, r);
|
|
3256
3275
|
});
|
|
3257
3276
|
}
|
|
3258
|
-
function
|
|
3277
|
+
function ja(e, t) {
|
|
3259
3278
|
if (!t.customMerge)
|
|
3260
|
-
return
|
|
3279
|
+
return ct;
|
|
3261
3280
|
var r = t.customMerge(e);
|
|
3262
|
-
return typeof r == "function" ? r :
|
|
3281
|
+
return typeof r == "function" ? r : ct;
|
|
3263
3282
|
}
|
|
3264
|
-
function
|
|
3283
|
+
function Va(e) {
|
|
3265
3284
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
3266
3285
|
return Object.propertyIsEnumerable.call(e, t);
|
|
3267
3286
|
}) : [];
|
|
3268
3287
|
}
|
|
3269
|
-
function
|
|
3270
|
-
return Object.keys(e).concat(
|
|
3288
|
+
function wn(e) {
|
|
3289
|
+
return Object.keys(e).concat(Va(e));
|
|
3271
3290
|
}
|
|
3272
3291
|
function Mi(e, t) {
|
|
3273
3292
|
try {
|
|
@@ -3276,57 +3295,57 @@ function Mi(e, t) {
|
|
|
3276
3295
|
return !1;
|
|
3277
3296
|
}
|
|
3278
3297
|
}
|
|
3279
|
-
function
|
|
3298
|
+
function Wa(e, t) {
|
|
3280
3299
|
return Mi(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
3281
3300
|
}
|
|
3282
|
-
function
|
|
3301
|
+
function Xa(e, t, r) {
|
|
3283
3302
|
var n = {};
|
|
3284
|
-
return r.isMergeableObject(e) &&
|
|
3285
|
-
n[i] =
|
|
3286
|
-
}),
|
|
3287
|
-
|
|
3303
|
+
return r.isMergeableObject(e) && wn(e).forEach(function(i) {
|
|
3304
|
+
n[i] = Mt(e[i], r);
|
|
3305
|
+
}), wn(t).forEach(function(i) {
|
|
3306
|
+
Wa(e, i) || (Mi(e, i) && r.isMergeableObject(t[i]) ? n[i] = ja(i, r)(e[i], t[i], r) : n[i] = Mt(t[i], r));
|
|
3288
3307
|
}), n;
|
|
3289
3308
|
}
|
|
3290
|
-
function
|
|
3291
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
3309
|
+
function ct(e, t, r) {
|
|
3310
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ga, r.isMergeableObject = r.isMergeableObject || Ia, r.cloneUnlessOtherwiseSpecified = Mt;
|
|
3292
3311
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
3293
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
3312
|
+
return s ? n ? r.arrayMerge(e, t, r) : Xa(e, t, r) : Mt(t, r);
|
|
3294
3313
|
}
|
|
3295
|
-
|
|
3314
|
+
ct.all = function(t, r) {
|
|
3296
3315
|
if (!Array.isArray(t))
|
|
3297
3316
|
throw new Error("first argument should be an array");
|
|
3298
3317
|
return t.reduce(function(n, i) {
|
|
3299
|
-
return
|
|
3318
|
+
return ct(n, i, r);
|
|
3300
3319
|
}, {});
|
|
3301
3320
|
};
|
|
3302
|
-
var
|
|
3303
|
-
const
|
|
3304
|
-
var
|
|
3305
|
-
return
|
|
3321
|
+
var Ya = ct, za = Ya;
|
|
3322
|
+
const qa = /* @__PURE__ */ Li(za);
|
|
3323
|
+
var Ir = function(e, t) {
|
|
3324
|
+
return Ir = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
3306
3325
|
r.__proto__ = n;
|
|
3307
3326
|
} || function(r, n) {
|
|
3308
3327
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
3309
|
-
},
|
|
3328
|
+
}, Ir(e, t);
|
|
3310
3329
|
};
|
|
3311
|
-
function
|
|
3330
|
+
function hr(e, t) {
|
|
3312
3331
|
if (typeof t != "function" && t !== null)
|
|
3313
3332
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
3314
|
-
|
|
3333
|
+
Ir(e, t);
|
|
3315
3334
|
function r() {
|
|
3316
3335
|
this.constructor = e;
|
|
3317
3336
|
}
|
|
3318
3337
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
3319
3338
|
}
|
|
3320
|
-
var
|
|
3321
|
-
return
|
|
3339
|
+
var ye = function() {
|
|
3340
|
+
return ye = Object.assign || function(t) {
|
|
3322
3341
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
3323
3342
|
r = arguments[n];
|
|
3324
3343
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
3325
3344
|
}
|
|
3326
3345
|
return t;
|
|
3327
|
-
},
|
|
3346
|
+
}, ye.apply(this, arguments);
|
|
3328
3347
|
};
|
|
3329
|
-
function
|
|
3348
|
+
function Za(e, t) {
|
|
3330
3349
|
var r = {};
|
|
3331
3350
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3332
3351
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -3334,23 +3353,23 @@ function Ja(e, t) {
|
|
|
3334
3353
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
3335
3354
|
return r;
|
|
3336
3355
|
}
|
|
3337
|
-
function
|
|
3356
|
+
function xr(e, t, r) {
|
|
3338
3357
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
3339
3358
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
3340
3359
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
3341
3360
|
}
|
|
3342
|
-
function
|
|
3343
|
-
var r = t && t.cache ? t.cache :
|
|
3361
|
+
function wr(e, t) {
|
|
3362
|
+
var r = t && t.cache ? t.cache : no, n = t && t.serializer ? t.serializer : to, i = t && t.strategy ? t.strategy : Ka;
|
|
3344
3363
|
return i(e, {
|
|
3345
3364
|
cache: r,
|
|
3346
3365
|
serializer: n
|
|
3347
3366
|
});
|
|
3348
3367
|
}
|
|
3349
|
-
function
|
|
3368
|
+
function Ja(e) {
|
|
3350
3369
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
3351
3370
|
}
|
|
3352
|
-
function
|
|
3353
|
-
var i =
|
|
3371
|
+
function Qa(e, t, r, n) {
|
|
3372
|
+
var i = Ja(n) ? n : r(n), s = t.get(i);
|
|
3354
3373
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
3355
3374
|
}
|
|
3356
3375
|
function Ni(e, t, r) {
|
|
@@ -3360,16 +3379,16 @@ function Ni(e, t, r) {
|
|
|
3360
3379
|
function Ii(e, t, r, n, i) {
|
|
3361
3380
|
return r.bind(t, e, n, i);
|
|
3362
3381
|
}
|
|
3363
|
-
function
|
|
3364
|
-
var r = e.length === 1 ?
|
|
3382
|
+
function Ka(e, t) {
|
|
3383
|
+
var r = e.length === 1 ? Qa : Ni;
|
|
3365
3384
|
return Ii(e, this, r, t.cache.create(), t.serializer);
|
|
3366
3385
|
}
|
|
3367
|
-
function
|
|
3386
|
+
function eo(e, t) {
|
|
3368
3387
|
return Ii(e, this, Ni, t.cache.create(), t.serializer);
|
|
3369
3388
|
}
|
|
3370
|
-
var
|
|
3389
|
+
var to = function() {
|
|
3371
3390
|
return JSON.stringify(arguments);
|
|
3372
|
-
},
|
|
3391
|
+
}, ro = (
|
|
3373
3392
|
/** @class */
|
|
3374
3393
|
function() {
|
|
3375
3394
|
function e() {
|
|
@@ -3381,20 +3400,20 @@ var ro = function() {
|
|
|
3381
3400
|
this.cache[t] = r;
|
|
3382
3401
|
}, e;
|
|
3383
3402
|
}()
|
|
3384
|
-
),
|
|
3403
|
+
), no = {
|
|
3385
3404
|
create: function() {
|
|
3386
|
-
return new
|
|
3405
|
+
return new ro();
|
|
3387
3406
|
}
|
|
3388
|
-
},
|
|
3389
|
-
variadic:
|
|
3390
|
-
},
|
|
3391
|
-
return
|
|
3407
|
+
}, Tr = {
|
|
3408
|
+
variadic: eo
|
|
3409
|
+
}, rr = function() {
|
|
3410
|
+
return rr = Object.assign || function(t) {
|
|
3392
3411
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
3393
3412
|
r = arguments[n];
|
|
3394
3413
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
3395
3414
|
}
|
|
3396
3415
|
return t;
|
|
3397
|
-
},
|
|
3416
|
+
}, rr.apply(this, arguments);
|
|
3398
3417
|
};
|
|
3399
3418
|
var w;
|
|
3400
3419
|
(function(e) {
|
|
@@ -3404,14 +3423,14 @@ var M;
|
|
|
3404
3423
|
(function(e) {
|
|
3405
3424
|
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";
|
|
3406
3425
|
})(M || (M = {}));
|
|
3407
|
-
var
|
|
3426
|
+
var dt;
|
|
3408
3427
|
(function(e) {
|
|
3409
3428
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
3410
|
-
})(
|
|
3411
|
-
function
|
|
3429
|
+
})(dt || (dt = {}));
|
|
3430
|
+
function Tn(e) {
|
|
3412
3431
|
return e.type === M.literal;
|
|
3413
3432
|
}
|
|
3414
|
-
function
|
|
3433
|
+
function io(e) {
|
|
3415
3434
|
return e.type === M.argument;
|
|
3416
3435
|
}
|
|
3417
3436
|
function Ci(e) {
|
|
@@ -3429,22 +3448,22 @@ function ki(e) {
|
|
|
3429
3448
|
function Fi(e) {
|
|
3430
3449
|
return e.type === M.plural;
|
|
3431
3450
|
}
|
|
3432
|
-
function
|
|
3451
|
+
function so(e) {
|
|
3433
3452
|
return e.type === M.pound;
|
|
3434
3453
|
}
|
|
3435
3454
|
function Ui(e) {
|
|
3436
3455
|
return e.type === M.tag;
|
|
3437
3456
|
}
|
|
3438
3457
|
function Gi(e) {
|
|
3439
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
3458
|
+
return !!(e && typeof e == "object" && e.type === dt.number);
|
|
3440
3459
|
}
|
|
3441
|
-
function
|
|
3442
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
3460
|
+
function Cr(e) {
|
|
3461
|
+
return !!(e && typeof e == "object" && e.type === dt.dateTime);
|
|
3443
3462
|
}
|
|
3444
|
-
var ji = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
3445
|
-
function
|
|
3463
|
+
var ji = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ao = /(?:[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;
|
|
3464
|
+
function oo(e) {
|
|
3446
3465
|
var t = {};
|
|
3447
|
-
return e.replace(
|
|
3466
|
+
return e.replace(ao, function(r) {
|
|
3448
3467
|
var n = r.length;
|
|
3449
3468
|
switch (r[0]) {
|
|
3450
3469
|
case "G":
|
|
@@ -3542,11 +3561,11 @@ var I = function() {
|
|
|
3542
3561
|
return t;
|
|
3543
3562
|
}, I.apply(this, arguments);
|
|
3544
3563
|
};
|
|
3545
|
-
var
|
|
3546
|
-
function
|
|
3564
|
+
var uo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
3565
|
+
function lo(e) {
|
|
3547
3566
|
if (e.length === 0)
|
|
3548
3567
|
throw new Error("Number skeleton cannot be empty");
|
|
3549
|
-
for (var t = e.split(
|
|
3568
|
+
for (var t = e.split(uo).filter(function(c) {
|
|
3550
3569
|
return c.length > 0;
|
|
3551
3570
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
3552
3571
|
var s = i[n], o = s.split("/");
|
|
@@ -3561,11 +3580,11 @@ function fo(e) {
|
|
|
3561
3580
|
}
|
|
3562
3581
|
return r;
|
|
3563
3582
|
}
|
|
3564
|
-
function
|
|
3583
|
+
function fo(e) {
|
|
3565
3584
|
return e.replace(/^(.*?)-/, "");
|
|
3566
3585
|
}
|
|
3567
|
-
var
|
|
3568
|
-
function
|
|
3586
|
+
var Sn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vi = /^(@+)?(\+|#+)?[rs]?$/g, ho = /(\*)(0+)|(#+)(0+)|(0+)/g, Wi = /^(0+)$/;
|
|
3587
|
+
function Hn(e) {
|
|
3569
3588
|
var t = {};
|
|
3570
3589
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vi, function(r, n, i) {
|
|
3571
3590
|
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)), "";
|
|
@@ -3611,7 +3630,7 @@ function Xi(e) {
|
|
|
3611
3630
|
};
|
|
3612
3631
|
}
|
|
3613
3632
|
}
|
|
3614
|
-
function
|
|
3633
|
+
function co(e) {
|
|
3615
3634
|
var t;
|
|
3616
3635
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
3617
3636
|
notation: "engineering"
|
|
@@ -3625,11 +3644,11 @@ function po(e) {
|
|
|
3625
3644
|
}
|
|
3626
3645
|
return t;
|
|
3627
3646
|
}
|
|
3628
|
-
function
|
|
3647
|
+
function An(e) {
|
|
3629
3648
|
var t = {}, r = Xi(e);
|
|
3630
3649
|
return r || t;
|
|
3631
3650
|
}
|
|
3632
|
-
function
|
|
3651
|
+
function po(e) {
|
|
3633
3652
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
3634
3653
|
var i = n[r];
|
|
3635
3654
|
switch (i.stem) {
|
|
@@ -3653,7 +3672,7 @@ function vo(e) {
|
|
|
3653
3672
|
continue;
|
|
3654
3673
|
case "measure-unit":
|
|
3655
3674
|
case "unit":
|
|
3656
|
-
t.style = "unit", t.unit =
|
|
3675
|
+
t.style = "unit", t.unit = fo(i.options[0]);
|
|
3657
3676
|
continue;
|
|
3658
3677
|
case "compact-short":
|
|
3659
3678
|
case "K":
|
|
@@ -3665,12 +3684,12 @@ function vo(e) {
|
|
|
3665
3684
|
continue;
|
|
3666
3685
|
case "scientific":
|
|
3667
3686
|
t = I(I(I({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
3668
|
-
return I(I({}, u),
|
|
3687
|
+
return I(I({}, u), An(l));
|
|
3669
3688
|
}, {}));
|
|
3670
3689
|
continue;
|
|
3671
3690
|
case "engineering":
|
|
3672
3691
|
t = I(I(I({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
3673
|
-
return I(I({}, u),
|
|
3692
|
+
return I(I({}, u), An(l));
|
|
3674
3693
|
}, {}));
|
|
3675
3694
|
continue;
|
|
3676
3695
|
case "notation-simple":
|
|
@@ -3715,7 +3734,7 @@ function vo(e) {
|
|
|
3715
3734
|
case "integer-width":
|
|
3716
3735
|
if (i.options.length > 1)
|
|
3717
3736
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
3718
|
-
i.options[0].replace(
|
|
3737
|
+
i.options[0].replace(ho, function(u, l, f, h, c, d) {
|
|
3719
3738
|
if (l)
|
|
3720
3739
|
t.minimumIntegerDigits = f.length;
|
|
3721
3740
|
else {
|
|
@@ -3732,28 +3751,28 @@ function vo(e) {
|
|
|
3732
3751
|
t.minimumIntegerDigits = i.stem.length;
|
|
3733
3752
|
continue;
|
|
3734
3753
|
}
|
|
3735
|
-
if (
|
|
3754
|
+
if (Sn.test(i.stem)) {
|
|
3736
3755
|
if (i.options.length > 1)
|
|
3737
3756
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
3738
|
-
i.stem.replace(
|
|
3757
|
+
i.stem.replace(Sn, function(u, l, f, h, c, d) {
|
|
3739
3758
|
return f === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
3740
3759
|
});
|
|
3741
3760
|
var s = i.options[0];
|
|
3742
|
-
s === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = I(I({}, t),
|
|
3761
|
+
s === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = I(I({}, t), Hn(s)));
|
|
3743
3762
|
continue;
|
|
3744
3763
|
}
|
|
3745
3764
|
if (Vi.test(i.stem)) {
|
|
3746
|
-
t = I(I({}, t),
|
|
3765
|
+
t = I(I({}, t), Hn(i.stem));
|
|
3747
3766
|
continue;
|
|
3748
3767
|
}
|
|
3749
3768
|
var o = Xi(i.stem);
|
|
3750
3769
|
o && (t = I(I({}, t), o));
|
|
3751
|
-
var a =
|
|
3770
|
+
var a = co(i.stem);
|
|
3752
3771
|
a && (t = I(I({}, t), a));
|
|
3753
3772
|
}
|
|
3754
3773
|
return t;
|
|
3755
3774
|
}
|
|
3756
|
-
var
|
|
3775
|
+
var Ut = {
|
|
3757
3776
|
"001": [
|
|
3758
3777
|
"H",
|
|
3759
3778
|
"h"
|
|
@@ -5168,13 +5187,13 @@ var kt = {
|
|
|
5168
5187
|
"h"
|
|
5169
5188
|
]
|
|
5170
5189
|
};
|
|
5171
|
-
function
|
|
5190
|
+
function vo(e, t) {
|
|
5172
5191
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
5173
5192
|
var i = e.charAt(n);
|
|
5174
5193
|
if (i === "j") {
|
|
5175
5194
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
5176
5195
|
s++, n++;
|
|
5177
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), u = "a", l =
|
|
5196
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), u = "a", l = _o(t);
|
|
5178
5197
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
5179
5198
|
r += u;
|
|
5180
5199
|
for (; o-- > 0; )
|
|
@@ -5183,7 +5202,7 @@ function _o(e, t) {
|
|
|
5183
5202
|
}
|
|
5184
5203
|
return r;
|
|
5185
5204
|
}
|
|
5186
|
-
function
|
|
5205
|
+
function _o(e) {
|
|
5187
5206
|
var t = e.hourCycle;
|
|
5188
5207
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
5189
5208
|
e.hourCycles && // @ts-ignore
|
|
@@ -5202,23 +5221,23 @@ function mo(e) {
|
|
|
5202
5221
|
}
|
|
5203
5222
|
var r = e.language, n;
|
|
5204
5223
|
r !== "root" && (n = e.maximize().region);
|
|
5205
|
-
var i =
|
|
5224
|
+
var i = Ut[n || ""] || Ut[r || ""] || Ut["".concat(r, "-001")] || Ut["001"];
|
|
5206
5225
|
return i[0];
|
|
5207
5226
|
}
|
|
5208
|
-
var
|
|
5227
|
+
var Sr, mo = new RegExp("^".concat(ji.source, "*")), go = new RegExp("".concat(ji.source, "*$"));
|
|
5209
5228
|
function H(e, t) {
|
|
5210
5229
|
return { start: e, end: t };
|
|
5211
5230
|
}
|
|
5212
|
-
var
|
|
5231
|
+
var bo = !!String.prototype.startsWith && "_a".startsWith("a", 1), yo = !!String.fromCodePoint, Eo = !!Object.fromEntries, xo = !!String.prototype.codePointAt, wo = !!String.prototype.trimStart, To = !!String.prototype.trimEnd, So = !!Number.isSafeInteger, Ho = So ? Number.isSafeInteger : function(e) {
|
|
5213
5232
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
5214
|
-
},
|
|
5233
|
+
}, Rr = !0;
|
|
5215
5234
|
try {
|
|
5216
|
-
var
|
|
5217
|
-
|
|
5235
|
+
var Ao = zi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
5236
|
+
Rr = ((Sr = Ao.exec("a")) === null || Sr === void 0 ? void 0 : Sr[0]) === "a";
|
|
5218
5237
|
} catch {
|
|
5219
|
-
|
|
5238
|
+
Rr = !1;
|
|
5220
5239
|
}
|
|
5221
|
-
var
|
|
5240
|
+
var $n = bo ? (
|
|
5222
5241
|
// Native
|
|
5223
5242
|
function(t, r, n) {
|
|
5224
5243
|
return t.startsWith(r, n);
|
|
@@ -5228,7 +5247,7 @@ var On = yo ? (
|
|
|
5228
5247
|
function(t, r, n) {
|
|
5229
5248
|
return t.slice(n, n + r.length) === r;
|
|
5230
5249
|
}
|
|
5231
|
-
),
|
|
5250
|
+
), Dr = yo ? String.fromCodePoint : (
|
|
5232
5251
|
// IE11
|
|
5233
5252
|
function() {
|
|
5234
5253
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -5240,9 +5259,9 @@ var On = yo ? (
|
|
|
5240
5259
|
}
|
|
5241
5260
|
return n;
|
|
5242
5261
|
}
|
|
5243
|
-
),
|
|
5262
|
+
), On = (
|
|
5244
5263
|
// native
|
|
5245
|
-
|
|
5264
|
+
Eo ? Object.fromEntries : (
|
|
5246
5265
|
// Ponyfill
|
|
5247
5266
|
function(t) {
|
|
5248
5267
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -5252,7 +5271,7 @@ var On = yo ? (
|
|
|
5252
5271
|
return r;
|
|
5253
5272
|
}
|
|
5254
5273
|
)
|
|
5255
|
-
), Yi =
|
|
5274
|
+
), Yi = xo ? (
|
|
5256
5275
|
// Native
|
|
5257
5276
|
function(t, r) {
|
|
5258
5277
|
return t.codePointAt(r);
|
|
@@ -5266,7 +5285,7 @@ var On = yo ? (
|
|
|
5266
5285
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
5267
5286
|
}
|
|
5268
5287
|
}
|
|
5269
|
-
),
|
|
5288
|
+
), $o = wo ? (
|
|
5270
5289
|
// Native
|
|
5271
5290
|
function(t) {
|
|
5272
5291
|
return t.trimStart();
|
|
@@ -5274,9 +5293,9 @@ var On = yo ? (
|
|
|
5274
5293
|
) : (
|
|
5275
5294
|
// Ponyfill
|
|
5276
5295
|
function(t) {
|
|
5277
|
-
return t.replace(
|
|
5296
|
+
return t.replace(mo, "");
|
|
5278
5297
|
}
|
|
5279
|
-
),
|
|
5298
|
+
), Oo = To ? (
|
|
5280
5299
|
// Native
|
|
5281
5300
|
function(t) {
|
|
5282
5301
|
return t.trimEnd();
|
|
@@ -5284,32 +5303,32 @@ var On = yo ? (
|
|
|
5284
5303
|
) : (
|
|
5285
5304
|
// Ponyfill
|
|
5286
5305
|
function(t) {
|
|
5287
|
-
return t.replace(
|
|
5306
|
+
return t.replace(go, "");
|
|
5288
5307
|
}
|
|
5289
5308
|
);
|
|
5290
5309
|
function zi(e, t) {
|
|
5291
5310
|
return new RegExp(e, t);
|
|
5292
5311
|
}
|
|
5293
|
-
var
|
|
5294
|
-
if (
|
|
5295
|
-
var
|
|
5296
|
-
|
|
5312
|
+
var kr;
|
|
5313
|
+
if (Rr) {
|
|
5314
|
+
var Bn = zi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
5315
|
+
kr = function(t, r) {
|
|
5297
5316
|
var n;
|
|
5298
|
-
|
|
5299
|
-
var i =
|
|
5317
|
+
Bn.lastIndex = r;
|
|
5318
|
+
var i = Bn.exec(t);
|
|
5300
5319
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
5301
5320
|
};
|
|
5302
5321
|
} else
|
|
5303
|
-
|
|
5322
|
+
kr = function(t, r) {
|
|
5304
5323
|
for (var n = []; ; ) {
|
|
5305
5324
|
var i = Yi(t, r);
|
|
5306
|
-
if (i === void 0 || qi(i) ||
|
|
5325
|
+
if (i === void 0 || qi(i) || Mo(i))
|
|
5307
5326
|
break;
|
|
5308
5327
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
5309
5328
|
}
|
|
5310
|
-
return
|
|
5329
|
+
return Dr.apply(void 0, n);
|
|
5311
5330
|
};
|
|
5312
|
-
var
|
|
5331
|
+
var Bo = (
|
|
5313
5332
|
/** @class */
|
|
5314
5333
|
function() {
|
|
5315
5334
|
function e(t, r) {
|
|
@@ -5340,7 +5359,7 @@ var Lo = (
|
|
|
5340
5359
|
if (n)
|
|
5341
5360
|
break;
|
|
5342
5361
|
return this.error(w.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
|
|
5343
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
5362
|
+
} else if (s === 60 && !this.ignoreTag && Fr(this.peek() || 0)) {
|
|
5344
5363
|
var o = this.parseTag(t, r);
|
|
5345
5364
|
if (o.err)
|
|
5346
5365
|
return o;
|
|
@@ -5373,7 +5392,7 @@ var Lo = (
|
|
|
5373
5392
|
return s;
|
|
5374
5393
|
var o = s.val, a = this.clonePosition();
|
|
5375
5394
|
if (this.bumpIf("</")) {
|
|
5376
|
-
if (this.isEOF() || !
|
|
5395
|
+
if (this.isEOF() || !Fr(this.char()))
|
|
5377
5396
|
return this.error(w.INVALID_TAG, H(a, this.clonePosition()));
|
|
5378
5397
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
5379
5398
|
return i !== l ? this.error(w.UNMATCHED_CLOSING_TAG, H(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -5391,7 +5410,7 @@ var Lo = (
|
|
|
5391
5410
|
return this.error(w.INVALID_TAG, H(n, this.clonePosition()));
|
|
5392
5411
|
}, e.prototype.parseTagName = function() {
|
|
5393
5412
|
var t = this.offset();
|
|
5394
|
-
for (this.bump(); !this.isEOF() &&
|
|
5413
|
+
for (this.bump(); !this.isEOF() && Po(this.char()); )
|
|
5395
5414
|
this.bump();
|
|
5396
5415
|
return this.message.slice(t, this.offset());
|
|
5397
5416
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -5420,7 +5439,7 @@ var Lo = (
|
|
|
5420
5439
|
};
|
|
5421
5440
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
5422
5441
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
5423
|
-
!
|
|
5442
|
+
!Lo(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
5424
5443
|
}, e.prototype.tryParseQuote = function(t) {
|
|
5425
5444
|
if (this.isEOF() || this.char() !== 39)
|
|
5426
5445
|
return null;
|
|
@@ -5454,12 +5473,12 @@ var Lo = (
|
|
|
5454
5473
|
r.push(n);
|
|
5455
5474
|
this.bump();
|
|
5456
5475
|
}
|
|
5457
|
-
return
|
|
5476
|
+
return Dr.apply(void 0, r);
|
|
5458
5477
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
5459
5478
|
if (this.isEOF())
|
|
5460
5479
|
return null;
|
|
5461
5480
|
var n = this.char();
|
|
5462
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
5481
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Dr(n));
|
|
5463
5482
|
}, e.prototype.parseArgument = function(t, r) {
|
|
5464
5483
|
var n = this.clonePosition();
|
|
5465
5484
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -5488,7 +5507,7 @@ var Lo = (
|
|
|
5488
5507
|
return this.error(w.MALFORMED_ARGUMENT, H(n, this.clonePosition()));
|
|
5489
5508
|
}
|
|
5490
5509
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
5491
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
5510
|
+
var t = this.clonePosition(), r = this.offset(), n = kr(this.message, r), i = r + n.length;
|
|
5492
5511
|
this.bumpTo(i);
|
|
5493
5512
|
var s = this.clonePosition(), o = H(t, s);
|
|
5494
5513
|
return { value: n, location: o };
|
|
@@ -5507,7 +5526,7 @@ var Lo = (
|
|
|
5507
5526
|
var f = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
|
5508
5527
|
if (h.err)
|
|
5509
5528
|
return h;
|
|
5510
|
-
var c =
|
|
5529
|
+
var c = Oo(h.val);
|
|
5511
5530
|
if (c.length === 0)
|
|
5512
5531
|
return this.error(w.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
|
|
5513
5532
|
var d = H(f, this.clonePosition());
|
|
@@ -5517,8 +5536,8 @@ var Lo = (
|
|
|
5517
5536
|
if (p.err)
|
|
5518
5537
|
return p;
|
|
5519
5538
|
var b = H(i, this.clonePosition());
|
|
5520
|
-
if (l &&
|
|
5521
|
-
var N =
|
|
5539
|
+
if (l && $n(l?.style, "::", 0)) {
|
|
5540
|
+
var N = $o(l.style.slice(2));
|
|
5522
5541
|
if (a === "number") {
|
|
5523
5542
|
var h = this.parseNumberSkeletonFromString(N, l.styleLocation);
|
|
5524
5543
|
return h.err ? h : {
|
|
@@ -5529,12 +5548,12 @@ var Lo = (
|
|
|
5529
5548
|
if (N.length === 0)
|
|
5530
5549
|
return this.error(w.EXPECT_DATE_TIME_SKELETON, b);
|
|
5531
5550
|
var G = N;
|
|
5532
|
-
this.locale && (G =
|
|
5551
|
+
this.locale && (G = vo(N, this.locale));
|
|
5533
5552
|
var c = {
|
|
5534
|
-
type:
|
|
5553
|
+
type: dt.dateTime,
|
|
5535
5554
|
pattern: G,
|
|
5536
5555
|
location: l.styleLocation,
|
|
5537
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
5556
|
+
parsedOptions: this.shouldParseSkeletons ? oo(G) : {}
|
|
5538
5557
|
}, W = a === "date" ? M.date : M.time;
|
|
5539
5558
|
return {
|
|
5540
5559
|
val: { type: W, value: n, location: b, style: c },
|
|
@@ -5557,21 +5576,21 @@ var Lo = (
|
|
|
5557
5576
|
case "select": {
|
|
5558
5577
|
var U = this.clonePosition();
|
|
5559
5578
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
5560
|
-
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, H(U,
|
|
5579
|
+
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, H(U, rr({}, U)));
|
|
5561
5580
|
this.bumpSpace();
|
|
5562
|
-
var
|
|
5563
|
-
if (a !== "select" &&
|
|
5581
|
+
var He = this.parseIdentifierIfPossible(), J = 0;
|
|
5582
|
+
if (a !== "select" && He.value === "offset") {
|
|
5564
5583
|
if (!this.bumpIf(":"))
|
|
5565
5584
|
return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
|
|
5566
5585
|
this.bumpSpace();
|
|
5567
5586
|
var h = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
5568
5587
|
if (h.err)
|
|
5569
5588
|
return h;
|
|
5570
|
-
this.bumpSpace(),
|
|
5589
|
+
this.bumpSpace(), He = this.parseIdentifierIfPossible(), J = h.val;
|
|
5571
5590
|
}
|
|
5572
|
-
var
|
|
5573
|
-
if (
|
|
5574
|
-
return
|
|
5591
|
+
var K = this.tryParsePluralOrSelectOptions(t, a, r, He);
|
|
5592
|
+
if (K.err)
|
|
5593
|
+
return K;
|
|
5575
5594
|
var p = this.tryParseArgumentClose(i);
|
|
5576
5595
|
if (p.err)
|
|
5577
5596
|
return p;
|
|
@@ -5580,7 +5599,7 @@ var Lo = (
|
|
|
5580
5599
|
val: {
|
|
5581
5600
|
type: M.select,
|
|
5582
5601
|
value: n,
|
|
5583
|
-
options:
|
|
5602
|
+
options: On(K.val),
|
|
5584
5603
|
location: B
|
|
5585
5604
|
},
|
|
5586
5605
|
err: null
|
|
@@ -5588,8 +5607,8 @@ var Lo = (
|
|
|
5588
5607
|
val: {
|
|
5589
5608
|
type: M.plural,
|
|
5590
5609
|
value: n,
|
|
5591
|
-
options:
|
|
5592
|
-
offset:
|
|
5610
|
+
options: On(K.val),
|
|
5611
|
+
offset: J,
|
|
5593
5612
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
5594
5613
|
location: B
|
|
5595
5614
|
},
|
|
@@ -5639,16 +5658,16 @@ var Lo = (
|
|
|
5639
5658
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
5640
5659
|
var n = [];
|
|
5641
5660
|
try {
|
|
5642
|
-
n =
|
|
5661
|
+
n = lo(t);
|
|
5643
5662
|
} catch {
|
|
5644
5663
|
return this.error(w.INVALID_NUMBER_SKELETON, r);
|
|
5645
5664
|
}
|
|
5646
5665
|
return {
|
|
5647
5666
|
val: {
|
|
5648
|
-
type:
|
|
5667
|
+
type: dt.number,
|
|
5649
5668
|
tokens: n,
|
|
5650
5669
|
location: r,
|
|
5651
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
5670
|
+
parsedOptions: this.shouldParseSkeletons ? po(n) : {}
|
|
5652
5671
|
},
|
|
5653
5672
|
err: null
|
|
5654
5673
|
};
|
|
@@ -5696,7 +5715,7 @@ var Lo = (
|
|
|
5696
5715
|
break;
|
|
5697
5716
|
}
|
|
5698
5717
|
var u = H(i, this.clonePosition());
|
|
5699
|
-
return s ? (o *= n,
|
|
5718
|
+
return s ? (o *= n, Ho(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
|
|
5700
5719
|
}, e.prototype.offset = function() {
|
|
5701
5720
|
return this.position.offset;
|
|
5702
5721
|
}, e.prototype.isEOF = function() {
|
|
@@ -5730,7 +5749,7 @@ var Lo = (
|
|
|
5730
5749
|
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);
|
|
5731
5750
|
}
|
|
5732
5751
|
}, e.prototype.bumpIf = function(t) {
|
|
5733
|
-
if (
|
|
5752
|
+
if ($n(this.message, t, this.offset())) {
|
|
5734
5753
|
for (var r = 0; r < t.length; r++)
|
|
5735
5754
|
this.bump();
|
|
5736
5755
|
return !0;
|
|
@@ -5762,46 +5781,46 @@ var Lo = (
|
|
|
5762
5781
|
}, e;
|
|
5763
5782
|
}()
|
|
5764
5783
|
);
|
|
5765
|
-
function
|
|
5784
|
+
function Fr(e) {
|
|
5766
5785
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
5767
5786
|
}
|
|
5768
|
-
function
|
|
5769
|
-
return
|
|
5787
|
+
function Lo(e) {
|
|
5788
|
+
return Fr(e) || e === 47;
|
|
5770
5789
|
}
|
|
5771
|
-
function
|
|
5790
|
+
function Po(e) {
|
|
5772
5791
|
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;
|
|
5773
5792
|
}
|
|
5774
5793
|
function qi(e) {
|
|
5775
5794
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
5776
5795
|
}
|
|
5777
|
-
function
|
|
5796
|
+
function Mo(e) {
|
|
5778
5797
|
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;
|
|
5779
5798
|
}
|
|
5780
|
-
function
|
|
5799
|
+
function Ur(e) {
|
|
5781
5800
|
e.forEach(function(t) {
|
|
5782
5801
|
if (delete t.location, ki(t) || Fi(t))
|
|
5783
5802
|
for (var r in t.options)
|
|
5784
|
-
delete t.options[r].location,
|
|
5785
|
-
else Ci(t) && Gi(t.style) || (Ri(t) || Di(t)) &&
|
|
5803
|
+
delete t.options[r].location, Ur(t.options[r].value);
|
|
5804
|
+
else Ci(t) && Gi(t.style) || (Ri(t) || Di(t)) && Cr(t.style) ? delete t.style.location : Ui(t) && Ur(t.children);
|
|
5786
5805
|
});
|
|
5787
5806
|
}
|
|
5788
|
-
function
|
|
5789
|
-
t === void 0 && (t = {}), t =
|
|
5790
|
-
var r = new
|
|
5807
|
+
function No(e, t) {
|
|
5808
|
+
t === void 0 && (t = {}), t = rr({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
5809
|
+
var r = new Bo(e, t).parse();
|
|
5791
5810
|
if (r.err) {
|
|
5792
5811
|
var n = SyntaxError(w[r.err.kind]);
|
|
5793
5812
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
5794
5813
|
}
|
|
5795
|
-
return t?.captureLocation ||
|
|
5814
|
+
return t?.captureLocation || Ur(r.val), r.val;
|
|
5796
5815
|
}
|
|
5797
|
-
var
|
|
5816
|
+
var pt;
|
|
5798
5817
|
(function(e) {
|
|
5799
5818
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
5800
|
-
})(
|
|
5801
|
-
var
|
|
5819
|
+
})(pt || (pt = {}));
|
|
5820
|
+
var cr = (
|
|
5802
5821
|
/** @class */
|
|
5803
5822
|
function(e) {
|
|
5804
|
-
|
|
5823
|
+
hr(t, e);
|
|
5805
5824
|
function t(r, n, i) {
|
|
5806
5825
|
var s = e.call(this, r) || this;
|
|
5807
5826
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -5810,93 +5829,93 @@ var hr = (
|
|
|
5810
5829
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
5811
5830
|
}, t;
|
|
5812
5831
|
}(Error)
|
|
5813
|
-
),
|
|
5832
|
+
), Ln = (
|
|
5814
5833
|
/** @class */
|
|
5815
5834
|
function(e) {
|
|
5816
|
-
|
|
5835
|
+
hr(t, e);
|
|
5817
5836
|
function t(r, n, i, s) {
|
|
5818
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
5837
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), pt.INVALID_VALUE, s) || this;
|
|
5819
5838
|
}
|
|
5820
5839
|
return t;
|
|
5821
|
-
}(
|
|
5822
|
-
),
|
|
5840
|
+
}(cr)
|
|
5841
|
+
), Io = (
|
|
5823
5842
|
/** @class */
|
|
5824
5843
|
function(e) {
|
|
5825
|
-
|
|
5844
|
+
hr(t, e);
|
|
5826
5845
|
function t(r, n, i) {
|
|
5827
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
5846
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), pt.INVALID_VALUE, i) || this;
|
|
5828
5847
|
}
|
|
5829
5848
|
return t;
|
|
5830
|
-
}(
|
|
5831
|
-
),
|
|
5849
|
+
}(cr)
|
|
5850
|
+
), Co = (
|
|
5832
5851
|
/** @class */
|
|
5833
5852
|
function(e) {
|
|
5834
|
-
|
|
5853
|
+
hr(t, e);
|
|
5835
5854
|
function t(r, n) {
|
|
5836
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
5855
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), pt.MISSING_VALUE, n) || this;
|
|
5837
5856
|
}
|
|
5838
5857
|
return t;
|
|
5839
|
-
}(
|
|
5840
|
-
),
|
|
5858
|
+
}(cr)
|
|
5859
|
+
), Q;
|
|
5841
5860
|
(function(e) {
|
|
5842
5861
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
5843
|
-
})(
|
|
5844
|
-
function
|
|
5862
|
+
})(Q || (Q = {}));
|
|
5863
|
+
function Ro(e) {
|
|
5845
5864
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
5846
5865
|
var n = t[t.length - 1];
|
|
5847
|
-
return !n || n.type !==
|
|
5866
|
+
return !n || n.type !== Q.literal || r.type !== Q.literal ? t.push(r) : n.value += r.value, t;
|
|
5848
5867
|
}, []);
|
|
5849
5868
|
}
|
|
5850
|
-
function
|
|
5869
|
+
function Do(e) {
|
|
5851
5870
|
return typeof e == "function";
|
|
5852
5871
|
}
|
|
5853
|
-
function
|
|
5854
|
-
if (e.length === 1 &&
|
|
5872
|
+
function Xt(e, t, r, n, i, s, o) {
|
|
5873
|
+
if (e.length === 1 && Tn(e[0]))
|
|
5855
5874
|
return [
|
|
5856
5875
|
{
|
|
5857
|
-
type:
|
|
5876
|
+
type: Q.literal,
|
|
5858
5877
|
value: e[0].value
|
|
5859
5878
|
}
|
|
5860
5879
|
];
|
|
5861
5880
|
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
5862
5881
|
var f = l[u];
|
|
5863
|
-
if (
|
|
5882
|
+
if (Tn(f)) {
|
|
5864
5883
|
a.push({
|
|
5865
|
-
type:
|
|
5884
|
+
type: Q.literal,
|
|
5866
5885
|
value: f.value
|
|
5867
5886
|
});
|
|
5868
5887
|
continue;
|
|
5869
5888
|
}
|
|
5870
|
-
if (
|
|
5889
|
+
if (so(f)) {
|
|
5871
5890
|
typeof s == "number" && a.push({
|
|
5872
|
-
type:
|
|
5891
|
+
type: Q.literal,
|
|
5873
5892
|
value: r.getNumberFormat(t).format(s)
|
|
5874
5893
|
});
|
|
5875
5894
|
continue;
|
|
5876
5895
|
}
|
|
5877
5896
|
var h = f.value;
|
|
5878
5897
|
if (!(i && h in i))
|
|
5879
|
-
throw new
|
|
5898
|
+
throw new Co(h, o);
|
|
5880
5899
|
var c = i[h];
|
|
5881
|
-
if (
|
|
5900
|
+
if (io(f)) {
|
|
5882
5901
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
5883
|
-
type: typeof c == "string" ?
|
|
5902
|
+
type: typeof c == "string" ? Q.literal : Q.object,
|
|
5884
5903
|
value: c
|
|
5885
5904
|
});
|
|
5886
5905
|
continue;
|
|
5887
5906
|
}
|
|
5888
5907
|
if (Ri(f)) {
|
|
5889
|
-
var d = typeof f.style == "string" ? n.date[f.style] :
|
|
5908
|
+
var d = typeof f.style == "string" ? n.date[f.style] : Cr(f.style) ? f.style.parsedOptions : void 0;
|
|
5890
5909
|
a.push({
|
|
5891
|
-
type:
|
|
5910
|
+
type: Q.literal,
|
|
5892
5911
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
5893
5912
|
});
|
|
5894
5913
|
continue;
|
|
5895
5914
|
}
|
|
5896
5915
|
if (Di(f)) {
|
|
5897
|
-
var d = typeof f.style == "string" ? n.time[f.style] :
|
|
5916
|
+
var d = typeof f.style == "string" ? n.time[f.style] : Cr(f.style) ? f.style.parsedOptions : n.time.medium;
|
|
5898
5917
|
a.push({
|
|
5899
|
-
type:
|
|
5918
|
+
type: Q.literal,
|
|
5900
5919
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
5901
5920
|
});
|
|
5902
5921
|
continue;
|
|
@@ -5904,61 +5923,61 @@ function Wt(e, t, r, n, i, s, o) {
|
|
|
5904
5923
|
if (Ci(f)) {
|
|
5905
5924
|
var d = typeof f.style == "string" ? n.number[f.style] : Gi(f.style) ? f.style.parsedOptions : void 0;
|
|
5906
5925
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
5907
|
-
type:
|
|
5926
|
+
type: Q.literal,
|
|
5908
5927
|
value: r.getNumberFormat(t, d).format(c)
|
|
5909
5928
|
});
|
|
5910
5929
|
continue;
|
|
5911
5930
|
}
|
|
5912
5931
|
if (Ui(f)) {
|
|
5913
5932
|
var p = f.children, b = f.value, N = i[b];
|
|
5914
|
-
if (!
|
|
5915
|
-
throw new
|
|
5916
|
-
var G =
|
|
5917
|
-
return
|
|
5933
|
+
if (!Do(N))
|
|
5934
|
+
throw new Io(b, "function", o);
|
|
5935
|
+
var G = Xt(p, t, r, n, i, s), W = N(G.map(function(J) {
|
|
5936
|
+
return J.value;
|
|
5918
5937
|
}));
|
|
5919
|
-
Array.isArray(W) || (W = [W]), a.push.apply(a, W.map(function(
|
|
5938
|
+
Array.isArray(W) || (W = [W]), a.push.apply(a, W.map(function(J) {
|
|
5920
5939
|
return {
|
|
5921
|
-
type: typeof
|
|
5922
|
-
value:
|
|
5940
|
+
type: typeof J == "string" ? Q.literal : Q.object,
|
|
5941
|
+
value: J
|
|
5923
5942
|
};
|
|
5924
5943
|
}));
|
|
5925
5944
|
}
|
|
5926
5945
|
if (ki(f)) {
|
|
5927
5946
|
var U = f.options[c] || f.options.other;
|
|
5928
5947
|
if (!U)
|
|
5929
|
-
throw new
|
|
5930
|
-
a.push.apply(a,
|
|
5948
|
+
throw new Ln(f.value, c, Object.keys(f.options), o);
|
|
5949
|
+
a.push.apply(a, Xt(U.value, t, r, n, i));
|
|
5931
5950
|
continue;
|
|
5932
5951
|
}
|
|
5933
5952
|
if (Fi(f)) {
|
|
5934
5953
|
var U = f.options["=".concat(c)];
|
|
5935
5954
|
if (!U) {
|
|
5936
5955
|
if (!Intl.PluralRules)
|
|
5937
|
-
throw new
|
|
5956
|
+
throw new cr(`Intl.PluralRules is not available in this environment.
|
|
5938
5957
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5939
|
-
`,
|
|
5940
|
-
var
|
|
5941
|
-
U = f.options[
|
|
5958
|
+
`, pt.MISSING_INTL_API, o);
|
|
5959
|
+
var He = r.getPluralRules(t, { type: f.pluralType }).select(c - (f.offset || 0));
|
|
5960
|
+
U = f.options[He] || f.options.other;
|
|
5942
5961
|
}
|
|
5943
5962
|
if (!U)
|
|
5944
|
-
throw new
|
|
5945
|
-
a.push.apply(a,
|
|
5963
|
+
throw new Ln(f.value, c, Object.keys(f.options), o);
|
|
5964
|
+
a.push.apply(a, Xt(U.value, t, r, n, i, c - (f.offset || 0)));
|
|
5946
5965
|
continue;
|
|
5947
5966
|
}
|
|
5948
5967
|
}
|
|
5949
|
-
return
|
|
5968
|
+
return Ro(a);
|
|
5950
5969
|
}
|
|
5951
|
-
function
|
|
5952
|
-
return t ?
|
|
5953
|
-
return r[n] =
|
|
5970
|
+
function ko(e, t) {
|
|
5971
|
+
return t ? ye(ye(ye({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
5972
|
+
return r[n] = ye(ye({}, e[n]), t[n] || {}), r;
|
|
5954
5973
|
}, {})) : e;
|
|
5955
5974
|
}
|
|
5956
|
-
function
|
|
5975
|
+
function Fo(e, t) {
|
|
5957
5976
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
5958
|
-
return r[n] =
|
|
5959
|
-
},
|
|
5977
|
+
return r[n] = ko(e[n], t[n]), r;
|
|
5978
|
+
}, ye({}, e)) : e;
|
|
5960
5979
|
}
|
|
5961
|
-
function
|
|
5980
|
+
function Hr(e) {
|
|
5962
5981
|
return {
|
|
5963
5982
|
create: function() {
|
|
5964
5983
|
return {
|
|
@@ -5972,39 +5991,39 @@ function Sr(e) {
|
|
|
5972
5991
|
}
|
|
5973
5992
|
};
|
|
5974
5993
|
}
|
|
5975
|
-
function
|
|
5994
|
+
function Uo(e) {
|
|
5976
5995
|
return e === void 0 && (e = {
|
|
5977
5996
|
number: {},
|
|
5978
5997
|
dateTime: {},
|
|
5979
5998
|
pluralRules: {}
|
|
5980
5999
|
}), {
|
|
5981
|
-
getNumberFormat:
|
|
6000
|
+
getNumberFormat: wr(function() {
|
|
5982
6001
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
5983
6002
|
r[n] = arguments[n];
|
|
5984
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
6003
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, xr([void 0], r, !1)))();
|
|
5985
6004
|
}, {
|
|
5986
|
-
cache:
|
|
5987
|
-
strategy:
|
|
6005
|
+
cache: Hr(e.number),
|
|
6006
|
+
strategy: Tr.variadic
|
|
5988
6007
|
}),
|
|
5989
|
-
getDateTimeFormat:
|
|
6008
|
+
getDateTimeFormat: wr(function() {
|
|
5990
6009
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
5991
6010
|
r[n] = arguments[n];
|
|
5992
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
6011
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, xr([void 0], r, !1)))();
|
|
5993
6012
|
}, {
|
|
5994
|
-
cache:
|
|
5995
|
-
strategy:
|
|
6013
|
+
cache: Hr(e.dateTime),
|
|
6014
|
+
strategy: Tr.variadic
|
|
5996
6015
|
}),
|
|
5997
|
-
getPluralRules:
|
|
6016
|
+
getPluralRules: wr(function() {
|
|
5998
6017
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
5999
6018
|
r[n] = arguments[n];
|
|
6000
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
6019
|
+
return new ((t = Intl.PluralRules).bind.apply(t, xr([void 0], r, !1)))();
|
|
6001
6020
|
}, {
|
|
6002
|
-
cache:
|
|
6003
|
-
strategy:
|
|
6021
|
+
cache: Hr(e.pluralRules),
|
|
6022
|
+
strategy: Tr.variadic
|
|
6004
6023
|
})
|
|
6005
6024
|
};
|
|
6006
6025
|
}
|
|
6007
|
-
var
|
|
6026
|
+
var Go = (
|
|
6008
6027
|
/** @class */
|
|
6009
6028
|
function() {
|
|
6010
6029
|
function e(t, r, n, i) {
|
|
@@ -6019,11 +6038,11 @@ var jo = (
|
|
|
6019
6038
|
if (l.length === 1)
|
|
6020
6039
|
return l[0].value;
|
|
6021
6040
|
var f = l.reduce(function(h, c) {
|
|
6022
|
-
return !h.length || c.type !==
|
|
6041
|
+
return !h.length || c.type !== Q.literal || typeof h[h.length - 1] != "string" ? h.push(c.value) : h[h.length - 1] += c.value, h;
|
|
6023
6042
|
}, []);
|
|
6024
6043
|
return f.length <= 1 ? f[0] || "" : f;
|
|
6025
6044
|
}, this.formatToParts = function(u) {
|
|
6026
|
-
return
|
|
6045
|
+
return Xt(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
|
|
6027
6046
|
}, this.resolvedOptions = function() {
|
|
6028
6047
|
var u;
|
|
6029
6048
|
return {
|
|
@@ -6036,13 +6055,13 @@ var jo = (
|
|
|
6036
6055
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
6037
6056
|
var o = i || {};
|
|
6038
6057
|
o.formatters;
|
|
6039
|
-
var a =
|
|
6040
|
-
this.ast = e.__parse(t,
|
|
6058
|
+
var a = Za(o, ["formatters"]);
|
|
6059
|
+
this.ast = e.__parse(t, ye(ye({}, a), { locale: this.resolvedLocale }));
|
|
6041
6060
|
} else
|
|
6042
6061
|
this.ast = t;
|
|
6043
6062
|
if (!Array.isArray(this.ast))
|
|
6044
6063
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
6045
|
-
this.formats =
|
|
6064
|
+
this.formats = Fo(e.formats, n), this.formatters = i && i.formatters || Uo(this.formatterCache);
|
|
6046
6065
|
}
|
|
6047
6066
|
return Object.defineProperty(e, "defaultLocale", {
|
|
6048
6067
|
get: function() {
|
|
@@ -6055,7 +6074,7 @@ var jo = (
|
|
|
6055
6074
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
6056
6075
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
6057
6076
|
}
|
|
6058
|
-
}, e.__parse =
|
|
6077
|
+
}, e.__parse = No, e.formats = {
|
|
6059
6078
|
number: {
|
|
6060
6079
|
integer: {
|
|
6061
6080
|
maximumFractionDigits: 0
|
|
@@ -6116,7 +6135,7 @@ var jo = (
|
|
|
6116
6135
|
}, e;
|
|
6117
6136
|
}()
|
|
6118
6137
|
);
|
|
6119
|
-
function
|
|
6138
|
+
function jo(e, t) {
|
|
6120
6139
|
if (t == null)
|
|
6121
6140
|
return;
|
|
6122
6141
|
if (t in e)
|
|
@@ -6137,36 +6156,36 @@ function Vo(e, t) {
|
|
|
6137
6156
|
n = void 0;
|
|
6138
6157
|
return n;
|
|
6139
6158
|
}
|
|
6140
|
-
const Ce = {},
|
|
6159
|
+
const Ce = {}, Vo = (e, t, r) => r && (t in Ce || (Ce[t] = {}), e in Ce[t] || (Ce[t][e] = r), r), Zi = (e, t) => {
|
|
6141
6160
|
if (t == null)
|
|
6142
6161
|
return;
|
|
6143
6162
|
if (t in Ce && e in Ce[t])
|
|
6144
6163
|
return Ce[t][e];
|
|
6145
|
-
const r =
|
|
6164
|
+
const r = dr(t);
|
|
6146
6165
|
for (let n = 0; n < r.length; n++) {
|
|
6147
|
-
const i = r[n], s =
|
|
6166
|
+
const i = r[n], s = Xo(i, e);
|
|
6148
6167
|
if (s)
|
|
6149
|
-
return
|
|
6168
|
+
return Vo(e, t, s);
|
|
6150
6169
|
}
|
|
6151
6170
|
};
|
|
6152
|
-
let
|
|
6153
|
-
const
|
|
6154
|
-
function
|
|
6155
|
-
return
|
|
6171
|
+
let an;
|
|
6172
|
+
const mt = fr({});
|
|
6173
|
+
function Wo(e) {
|
|
6174
|
+
return an[e] || null;
|
|
6156
6175
|
}
|
|
6157
6176
|
function Ji(e) {
|
|
6158
|
-
return e in
|
|
6177
|
+
return e in an;
|
|
6159
6178
|
}
|
|
6160
|
-
function
|
|
6179
|
+
function Xo(e, t) {
|
|
6161
6180
|
if (!Ji(e))
|
|
6162
6181
|
return null;
|
|
6163
|
-
const r =
|
|
6164
|
-
return
|
|
6182
|
+
const r = Wo(e);
|
|
6183
|
+
return jo(r, t);
|
|
6165
6184
|
}
|
|
6166
|
-
function
|
|
6185
|
+
function Yo(e) {
|
|
6167
6186
|
if (e == null)
|
|
6168
6187
|
return;
|
|
6169
|
-
const t =
|
|
6188
|
+
const t = dr(e);
|
|
6170
6189
|
for (let r = 0; r < t.length; r++) {
|
|
6171
6190
|
const n = t[r];
|
|
6172
6191
|
if (Ji(n))
|
|
@@ -6174,55 +6193,55 @@ function zo(e) {
|
|
|
6174
6193
|
}
|
|
6175
6194
|
}
|
|
6176
6195
|
function Qi(e, ...t) {
|
|
6177
|
-
delete Ce[e],
|
|
6196
|
+
delete Ce[e], mt.update((r) => (r[e] = qa.all([r[e] || {}, ...t]), r));
|
|
6178
6197
|
}
|
|
6179
|
-
|
|
6180
|
-
[
|
|
6198
|
+
_t(
|
|
6199
|
+
[mt],
|
|
6181
6200
|
([e]) => Object.keys(e)
|
|
6182
6201
|
);
|
|
6183
|
-
|
|
6184
|
-
const
|
|
6185
|
-
function
|
|
6186
|
-
|
|
6202
|
+
mt.subscribe((e) => an = e);
|
|
6203
|
+
const Yt = {};
|
|
6204
|
+
function zo(e, t) {
|
|
6205
|
+
Yt[e].delete(t), Yt[e].size === 0 && delete Yt[e];
|
|
6187
6206
|
}
|
|
6188
6207
|
function Ki(e) {
|
|
6189
|
-
return
|
|
6208
|
+
return Yt[e];
|
|
6190
6209
|
}
|
|
6191
|
-
function
|
|
6192
|
-
return
|
|
6210
|
+
function qo(e) {
|
|
6211
|
+
return dr(e).map((t) => {
|
|
6193
6212
|
const r = Ki(t);
|
|
6194
6213
|
return [t, r ? [...r] : []];
|
|
6195
6214
|
}).filter(([, t]) => t.length > 0);
|
|
6196
6215
|
}
|
|
6197
|
-
function
|
|
6198
|
-
return e == null ? !1 :
|
|
6216
|
+
function Gr(e) {
|
|
6217
|
+
return e == null ? !1 : dr(e).some(
|
|
6199
6218
|
(t) => {
|
|
6200
6219
|
var r;
|
|
6201
6220
|
return (r = Ki(t)) == null ? void 0 : r.size;
|
|
6202
6221
|
}
|
|
6203
6222
|
);
|
|
6204
6223
|
}
|
|
6205
|
-
function
|
|
6224
|
+
function Zo(e, t) {
|
|
6206
6225
|
return Promise.all(
|
|
6207
|
-
t.map((n) => (
|
|
6226
|
+
t.map((n) => (zo(e, n), n().then((i) => i.default || i)))
|
|
6208
6227
|
).then((n) => Qi(e, ...n));
|
|
6209
6228
|
}
|
|
6210
|
-
const
|
|
6229
|
+
const xt = {};
|
|
6211
6230
|
function es(e) {
|
|
6212
|
-
if (!
|
|
6213
|
-
return e in
|
|
6214
|
-
const t =
|
|
6215
|
-
return
|
|
6231
|
+
if (!Gr(e))
|
|
6232
|
+
return e in xt ? xt[e] : Promise.resolve();
|
|
6233
|
+
const t = qo(e);
|
|
6234
|
+
return xt[e] = Promise.all(
|
|
6216
6235
|
t.map(
|
|
6217
|
-
([r, n]) =>
|
|
6236
|
+
([r, n]) => Zo(r, n)
|
|
6218
6237
|
)
|
|
6219
6238
|
).then(() => {
|
|
6220
|
-
if (
|
|
6239
|
+
if (Gr(e))
|
|
6221
6240
|
return es(e);
|
|
6222
|
-
delete
|
|
6223
|
-
}),
|
|
6241
|
+
delete xt[e];
|
|
6242
|
+
}), xt[e];
|
|
6224
6243
|
}
|
|
6225
|
-
const
|
|
6244
|
+
const Jo = {
|
|
6226
6245
|
number: {
|
|
6227
6246
|
scientific: { notation: "scientific" },
|
|
6228
6247
|
engineering: { notation: "engineering" },
|
|
@@ -6251,141 +6270,141 @@ const Qo = {
|
|
|
6251
6270
|
timeZoneName: "short"
|
|
6252
6271
|
}
|
|
6253
6272
|
}
|
|
6254
|
-
},
|
|
6273
|
+
}, Qo = {
|
|
6255
6274
|
fallbackLocale: null,
|
|
6256
6275
|
loadingDelay: 200,
|
|
6257
|
-
formats:
|
|
6276
|
+
formats: Jo,
|
|
6258
6277
|
warnOnMissingMessages: !0,
|
|
6259
6278
|
handleMissingMessage: void 0,
|
|
6260
6279
|
ignoreTag: !0
|
|
6261
|
-
},
|
|
6262
|
-
function
|
|
6263
|
-
return
|
|
6280
|
+
}, Ko = Qo;
|
|
6281
|
+
function vt() {
|
|
6282
|
+
return Ko;
|
|
6264
6283
|
}
|
|
6265
|
-
const
|
|
6266
|
-
var
|
|
6284
|
+
const Ar = fr(!1);
|
|
6285
|
+
var eu = Object.defineProperty, tu = Object.defineProperties, ru = Object.getOwnPropertyDescriptors, Pn = Object.getOwnPropertySymbols, nu = Object.prototype.hasOwnProperty, iu = Object.prototype.propertyIsEnumerable, Mn = (e, t, r) => t in e ? eu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, su = (e, t) => {
|
|
6267
6286
|
for (var r in t || (t = {}))
|
|
6268
|
-
|
|
6269
|
-
if (
|
|
6270
|
-
for (var r of
|
|
6271
|
-
|
|
6287
|
+
nu.call(t, r) && Mn(e, r, t[r]);
|
|
6288
|
+
if (Pn)
|
|
6289
|
+
for (var r of Pn(t))
|
|
6290
|
+
iu.call(t, r) && Mn(e, r, t[r]);
|
|
6272
6291
|
return e;
|
|
6273
|
-
},
|
|
6274
|
-
let
|
|
6275
|
-
const
|
|
6276
|
-
function
|
|
6292
|
+
}, au = (e, t) => tu(e, ru(t));
|
|
6293
|
+
let jr;
|
|
6294
|
+
const nr = fr(null);
|
|
6295
|
+
function Nn(e) {
|
|
6277
6296
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
6278
6297
|
}
|
|
6279
|
-
function
|
|
6280
|
-
const r =
|
|
6281
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
6298
|
+
function dr(e, t = vt().fallbackLocale) {
|
|
6299
|
+
const r = Nn(e);
|
|
6300
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Nn(t)])] : r;
|
|
6282
6301
|
}
|
|
6283
|
-
function
|
|
6284
|
-
return
|
|
6302
|
+
function Ze() {
|
|
6303
|
+
return jr ?? void 0;
|
|
6285
6304
|
}
|
|
6286
|
-
|
|
6287
|
-
|
|
6305
|
+
nr.subscribe((e) => {
|
|
6306
|
+
jr = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
6288
6307
|
});
|
|
6289
|
-
const
|
|
6290
|
-
if (e &&
|
|
6291
|
-
const { loadingDelay: t } =
|
|
6308
|
+
const ou = (e) => {
|
|
6309
|
+
if (e && Yo(e) && Gr(e)) {
|
|
6310
|
+
const { loadingDelay: t } = vt();
|
|
6292
6311
|
let r;
|
|
6293
|
-
return typeof window < "u" &&
|
|
6294
|
-
() =>
|
|
6312
|
+
return typeof window < "u" && Ze() != null && t ? r = window.setTimeout(
|
|
6313
|
+
() => Ar.set(!0),
|
|
6295
6314
|
t
|
|
6296
|
-
) :
|
|
6297
|
-
|
|
6315
|
+
) : Ar.set(!0), es(e).then(() => {
|
|
6316
|
+
nr.set(e);
|
|
6298
6317
|
}).finally(() => {
|
|
6299
|
-
clearTimeout(r),
|
|
6318
|
+
clearTimeout(r), Ar.set(!1);
|
|
6300
6319
|
});
|
|
6301
6320
|
}
|
|
6302
|
-
return
|
|
6303
|
-
},
|
|
6304
|
-
set:
|
|
6305
|
-
}),
|
|
6321
|
+
return nr.set(e);
|
|
6322
|
+
}, Ye = au(su({}, nr), {
|
|
6323
|
+
set: ou
|
|
6324
|
+
}), pr = (e) => {
|
|
6306
6325
|
const t = /* @__PURE__ */ Object.create(null);
|
|
6307
6326
|
return (n) => {
|
|
6308
6327
|
const i = JSON.stringify(n);
|
|
6309
6328
|
return i in t ? t[i] : t[i] = e(n);
|
|
6310
6329
|
};
|
|
6311
6330
|
};
|
|
6312
|
-
var
|
|
6331
|
+
var uu = Object.defineProperty, ir = Object.getOwnPropertySymbols, ts = Object.prototype.hasOwnProperty, rs = Object.prototype.propertyIsEnumerable, In = (e, t, r) => t in e ? uu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, on = (e, t) => {
|
|
6313
6332
|
for (var r in t || (t = {}))
|
|
6314
|
-
ts.call(t, r) &&
|
|
6315
|
-
if (
|
|
6316
|
-
for (var r of
|
|
6317
|
-
rs.call(t, r) &&
|
|
6333
|
+
ts.call(t, r) && In(e, r, t[r]);
|
|
6334
|
+
if (ir)
|
|
6335
|
+
for (var r of ir(t))
|
|
6336
|
+
rs.call(t, r) && In(e, r, t[r]);
|
|
6318
6337
|
return e;
|
|
6319
|
-
},
|
|
6338
|
+
}, gt = (e, t) => {
|
|
6320
6339
|
var r = {};
|
|
6321
6340
|
for (var n in e)
|
|
6322
6341
|
ts.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
6323
|
-
if (e != null &&
|
|
6324
|
-
for (var n of
|
|
6342
|
+
if (e != null && ir)
|
|
6343
|
+
for (var n of ir(e))
|
|
6325
6344
|
t.indexOf(n) < 0 && rs.call(e, n) && (r[n] = e[n]);
|
|
6326
6345
|
return r;
|
|
6327
6346
|
};
|
|
6328
|
-
const
|
|
6329
|
-
const { formats: r } =
|
|
6347
|
+
const Nt = (e, t) => {
|
|
6348
|
+
const { formats: r } = vt();
|
|
6330
6349
|
if (e in r && t in r[e])
|
|
6331
6350
|
return r[e][t];
|
|
6332
6351
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
6333
|
-
},
|
|
6352
|
+
}, lu = pr(
|
|
6334
6353
|
(e) => {
|
|
6335
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6354
|
+
var t = e, { locale: r, format: n } = t, i = gt(t, ["locale", "format"]);
|
|
6336
6355
|
if (r == null)
|
|
6337
6356
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
6338
|
-
return n && (i =
|
|
6357
|
+
return n && (i = Nt("number", n)), new Intl.NumberFormat(r, i);
|
|
6339
6358
|
}
|
|
6340
|
-
),
|
|
6359
|
+
), fu = pr(
|
|
6341
6360
|
(e) => {
|
|
6342
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6361
|
+
var t = e, { locale: r, format: n } = t, i = gt(t, ["locale", "format"]);
|
|
6343
6362
|
if (r == null)
|
|
6344
6363
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
6345
|
-
return n ? i =
|
|
6364
|
+
return n ? i = Nt("date", n) : Object.keys(i).length === 0 && (i = Nt("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
6346
6365
|
}
|
|
6347
|
-
),
|
|
6366
|
+
), hu = pr(
|
|
6348
6367
|
(e) => {
|
|
6349
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6368
|
+
var t = e, { locale: r, format: n } = t, i = gt(t, ["locale", "format"]);
|
|
6350
6369
|
if (r == null)
|
|
6351
6370
|
throw new Error(
|
|
6352
6371
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
6353
6372
|
);
|
|
6354
|
-
return n ? i =
|
|
6373
|
+
return n ? i = Nt("time", n) : Object.keys(i).length === 0 && (i = Nt("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
6355
6374
|
}
|
|
6356
|
-
),
|
|
6375
|
+
), cu = (e = {}) => {
|
|
6357
6376
|
var t = e, {
|
|
6358
|
-
locale: r =
|
|
6359
|
-
} = t, n =
|
|
6377
|
+
locale: r = Ze()
|
|
6378
|
+
} = t, n = gt(t, [
|
|
6360
6379
|
"locale"
|
|
6361
6380
|
]);
|
|
6362
|
-
return
|
|
6363
|
-
},
|
|
6381
|
+
return lu(on({ locale: r }, n));
|
|
6382
|
+
}, du = (e = {}) => {
|
|
6364
6383
|
var t = e, {
|
|
6365
|
-
locale: r =
|
|
6366
|
-
} = t, n =
|
|
6384
|
+
locale: r = Ze()
|
|
6385
|
+
} = t, n = gt(t, [
|
|
6367
6386
|
"locale"
|
|
6368
6387
|
]);
|
|
6369
|
-
return
|
|
6370
|
-
},
|
|
6388
|
+
return fu(on({ locale: r }, n));
|
|
6389
|
+
}, pu = (e = {}) => {
|
|
6371
6390
|
var t = e, {
|
|
6372
|
-
locale: r =
|
|
6373
|
-
} = t, n =
|
|
6391
|
+
locale: r = Ze()
|
|
6392
|
+
} = t, n = gt(t, [
|
|
6374
6393
|
"locale"
|
|
6375
6394
|
]);
|
|
6376
|
-
return
|
|
6377
|
-
},
|
|
6395
|
+
return hu(on({ locale: r }, n));
|
|
6396
|
+
}, vu = pr(
|
|
6378
6397
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
6379
|
-
(e, t =
|
|
6380
|
-
ignoreTag:
|
|
6398
|
+
(e, t = Ze()) => new Go(e, t, vt().formats, {
|
|
6399
|
+
ignoreTag: vt().ignoreTag
|
|
6381
6400
|
})
|
|
6382
|
-
),
|
|
6401
|
+
), _u = (e, t = {}) => {
|
|
6383
6402
|
var r, n, i, s;
|
|
6384
6403
|
let o = t;
|
|
6385
6404
|
typeof e == "object" && (o = e, e = o.id);
|
|
6386
6405
|
const {
|
|
6387
6406
|
values: a,
|
|
6388
|
-
locale: u =
|
|
6407
|
+
locale: u = Ze(),
|
|
6389
6408
|
default: l
|
|
6390
6409
|
} = o;
|
|
6391
6410
|
if (u == null)
|
|
@@ -6394,7 +6413,7 @@ const Pt = (e, t) => {
|
|
|
6394
6413
|
);
|
|
6395
6414
|
let f = Zi(e, u);
|
|
6396
6415
|
if (!f)
|
|
6397
|
-
f = (s = (i = (n = (r =
|
|
6416
|
+
f = (s = (i = (n = (r = vt()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
|
6398
6417
|
else if (typeof f != "string")
|
|
6399
6418
|
return console.warn(
|
|
6400
6419
|
`[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.`
|
|
@@ -6403,7 +6422,7 @@ const Pt = (e, t) => {
|
|
|
6403
6422
|
return f;
|
|
6404
6423
|
let h = f;
|
|
6405
6424
|
try {
|
|
6406
|
-
h =
|
|
6425
|
+
h = vu(f, u).format(a);
|
|
6407
6426
|
} catch (c) {
|
|
6408
6427
|
c instanceof Error && console.warn(
|
|
6409
6428
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -6411,28 +6430,28 @@ const Pt = (e, t) => {
|
|
|
6411
6430
|
);
|
|
6412
6431
|
}
|
|
6413
6432
|
return h;
|
|
6414
|
-
},
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
function
|
|
6420
|
-
|
|
6421
|
-
r == null && (
|
|
6433
|
+
}, mu = (e, t) => pu(t).format(e), gu = (e, t) => du(t).format(e), bu = (e, t) => cu(t).format(e), yu = (e, t = Ze()) => Zi(e, t), Eu = _t([Ye, mt], () => _u);
|
|
6434
|
+
_t([Ye], () => mu);
|
|
6435
|
+
_t([Ye], () => gu);
|
|
6436
|
+
_t([Ye], () => bu);
|
|
6437
|
+
_t([Ye, mt], () => yu);
|
|
6438
|
+
function xu({ withLocale: e, translations: t }) {
|
|
6439
|
+
Ye.subscribe((r) => {
|
|
6440
|
+
r == null && (mt.set(t), Ye.set(e));
|
|
6422
6441
|
});
|
|
6423
6442
|
}
|
|
6424
|
-
function
|
|
6443
|
+
function wu(e, t) {
|
|
6425
6444
|
Qi(e, t);
|
|
6426
6445
|
}
|
|
6427
|
-
const
|
|
6428
|
-
let t = /* @__PURE__ */
|
|
6446
|
+
const Tu = (e) => {
|
|
6447
|
+
let t = /* @__PURE__ */ re(void 0), r = /* @__PURE__ */ re(void 0), n = /* @__PURE__ */ re(void 0), i = /* @__PURE__ */ re(void 0), s = /* @__PURE__ */ re(!1), o = /* @__PURE__ */ re(void 0);
|
|
6429
6448
|
const a = async () => {
|
|
6430
6449
|
const { apiEndpoint: u, userSession: l, locale: f, loadLevels: h, onLevelLoaded: c } = e();
|
|
6431
6450
|
if (!(!u || !l)) {
|
|
6432
6451
|
Y(s, !0), Y(o, void 0);
|
|
6433
6452
|
try {
|
|
6434
6453
|
const d = [
|
|
6435
|
-
|
|
6454
|
+
$a({ apiEndpoint: u, userSession: l, locale: f }).then((p) => {
|
|
6436
6455
|
const b = p.level;
|
|
6437
6456
|
b.name = b.presentation?.displayName || b.name, b.spendablePoints = p.spendableWallet?.total.points || 0, Y(t, b, !0), Y(n, p.loyaltyWallet?.total, !0), Y(i, p.spendableWallet?.total, !0), c?.({ elevateLevel: b }), c?.({
|
|
6438
6457
|
elevateLevelWalletTotal: p.spendableWallet?.total,
|
|
@@ -6440,10 +6459,10 @@ const Su = (e) => {
|
|
|
6440
6459
|
});
|
|
6441
6460
|
})
|
|
6442
6461
|
];
|
|
6443
|
-
h && d.push(
|
|
6462
|
+
h && d.push(Oa({ apiEndpoint: u, userSession: l, locale: f }).then((p) => {
|
|
6444
6463
|
Y(r, p, !0);
|
|
6445
|
-
})), await Promise.all(d), await
|
|
6446
|
-
calculatedLevelFlag:
|
|
6464
|
+
})), await Promise.all(d), await ia(), $(r) && $(t) && c?.({
|
|
6465
|
+
calculatedLevelFlag: Ba($(r), $(t).loyaltyPoints ?? 0)
|
|
6447
6466
|
});
|
|
6448
6467
|
} catch (d) {
|
|
6449
6468
|
Y(o, d, !0), console.error("Failed to load elevate info:", d);
|
|
@@ -6452,10 +6471,10 @@ const Su = (e) => {
|
|
|
6452
6471
|
}
|
|
6453
6472
|
}
|
|
6454
6473
|
};
|
|
6455
|
-
return
|
|
6474
|
+
return pn(() => {
|
|
6456
6475
|
const { apiEndpoint: u, userSession: l, locale: f, loadLevels: h } = e();
|
|
6457
6476
|
a();
|
|
6458
|
-
}),
|
|
6477
|
+
}), pn(() => {
|
|
6459
6478
|
const u = () => {
|
|
6460
6479
|
a();
|
|
6461
6480
|
};
|
|
@@ -6481,7 +6500,7 @@ const Su = (e) => {
|
|
|
6481
6500
|
},
|
|
6482
6501
|
reload: a
|
|
6483
6502
|
};
|
|
6484
|
-
},
|
|
6503
|
+
}, Su = {
|
|
6485
6504
|
en: {
|
|
6486
6505
|
tokens: "Tokens",
|
|
6487
6506
|
tokenBalance: "Token Balance",
|
|
@@ -6525,8 +6544,8 @@ const Su = (e) => {
|
|
|
6525
6544
|
pointsToExpire: "{points} token lejár ekkor: {date}"
|
|
6526
6545
|
}
|
|
6527
6546
|
};
|
|
6528
|
-
var
|
|
6529
|
-
const
|
|
6547
|
+
var Hu = /* @__PURE__ */ nn('<div class="loyalty-points svelte-1hsy08w"><div class="loyalty-points__content svelte-1hsy08w"><div class="loyalty-points__value svelte-1hsy08w"><span class="loyalty-points__skeleton loyalty-points__skeleton--amount svelte-1hsy08w"></span> <span class="loyalty-points__skeleton loyalty-points__skeleton--description svelte-1hsy08w"></span></div></div></div>'), Au = /* @__PURE__ */ nn('<span class="loyalty-points__expiry svelte-1hsy08w"> </span>'), $u = /* @__PURE__ */ nn('<div class="loyalty-points svelte-1hsy08w"><div class="loyalty-points__content svelte-1hsy08w"><div class="loyalty-points__value svelte-1hsy08w"><span class="loyalty-points__amount svelte-1hsy08w"> </span> <span class="loyalty-points__description svelte-1hsy08w"> </span> <!></div></div></div>');
|
|
6548
|
+
const Ou = {
|
|
6530
6549
|
hash: "svelte-1hsy08w",
|
|
6531
6550
|
code: `.loyalty-points.svelte-1hsy08w {padding:11px 16px;display:inline-flex;flex-direction:column;background-color:var(--app-container-bg-default, #022652);border-radius:6px;border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));width:100%;box-sizing:border-box;}.loyalty-points__content.svelte-1hsy08w {display:flex;align-items:center;justify-content:space-between;gap:12px;}.loyalty-points__value.svelte-1hsy08w {display:flex;flex-direction:column;gap:6px;}.loyalty-points__amount.svelte-1hsy08w {color:var(--text-default, #FFFFFF);font-size:16px;font-weight:700;line-height:140%;}.loyalty-points__description.svelte-1hsy08w {color:var(--text-subtle, #DFE3E8);font-size:14px;font-weight:400;}.loyalty-points__expiry.svelte-1hsy08w {color:var(--text-super-subtle, #DFE3E8);font-size:12px;font-weight:400;}.loyalty-points__skeleton.svelte-1hsy08w {display:block;border-radius:6px;background:linear-gradient(
|
|
6532
6551
|
90deg,
|
|
@@ -6547,19 +6566,19 @@ const Bu = {
|
|
|
6547
6566
|
}`
|
|
6548
6567
|
};
|
|
6549
6568
|
function ns(e, t) {
|
|
6550
|
-
|
|
6551
|
-
const r = () =>
|
|
6569
|
+
Xr(t, !0), ba(e, Ou);
|
|
6570
|
+
const r = () => xa(Eu, "$_", n), [n, i] = wa(), s = be(t, "apiEndpoint", 7, ""), o = be(t, "userSession", 7, ""), a = be(t, "locale", 7, ""), u = be(t, "dateFormat", 7, tr), l = be(t, "onLevelLoaded", 7, (B) => {
|
|
6552
6571
|
});
|
|
6553
|
-
|
|
6554
|
-
|
|
6572
|
+
xu({ withLocale: a(), translations: {} }), Object.entries(Su).forEach(([B, ee]) => {
|
|
6573
|
+
wu(B, ee);
|
|
6555
6574
|
});
|
|
6556
|
-
const f =
|
|
6575
|
+
const f = Tu(() => ({
|
|
6557
6576
|
apiEndpoint: s(),
|
|
6558
6577
|
userSession: o(),
|
|
6559
6578
|
locale: a(),
|
|
6560
6579
|
loadLevels: !1,
|
|
6561
6580
|
onLevelLoaded: l()
|
|
6562
|
-
})), h = /* @__PURE__ */
|
|
6581
|
+
})), h = /* @__PURE__ */ Ke(() => f.spendableWalletTotal), c = /* @__PURE__ */ Ke(() => $(h)?.points ?? 0), d = /* @__PURE__ */ Ke(() => $(c).toLocaleString()), p = /* @__PURE__ */ Ke(() => f.loading && $(h) === void 0), b = /* @__PURE__ */ Ke(() => [...$(h)?.aboutToExpire ?? []].filter((B) => B.points > 0).sort((B, ee) => new Date(B.expireTime).getTime() - new Date(ee.expireTime).getTime())[0]), N = /* @__PURE__ */ Ke(() => $(b) ? Na($(b).expireTime, u()) : "");
|
|
6563
6582
|
var G = {
|
|
6564
6583
|
get apiEndpoint() {
|
|
6565
6584
|
return s();
|
|
@@ -6582,54 +6601,54 @@ function ns(e, t) {
|
|
|
6582
6601
|
get dateFormat() {
|
|
6583
6602
|
return u();
|
|
6584
6603
|
},
|
|
6585
|
-
set dateFormat(B =
|
|
6604
|
+
set dateFormat(B = tr) {
|
|
6586
6605
|
u(B), le();
|
|
6587
6606
|
},
|
|
6588
6607
|
get onLevelLoaded() {
|
|
6589
6608
|
return l();
|
|
6590
6609
|
},
|
|
6591
|
-
set onLevelLoaded(B = (
|
|
6610
|
+
set onLevelLoaded(B = (ee) => {
|
|
6592
6611
|
}) {
|
|
6593
6612
|
l(B), le();
|
|
6594
6613
|
}
|
|
6595
|
-
}, W =
|
|
6614
|
+
}, W = la(), U = Vs(W);
|
|
6596
6615
|
{
|
|
6597
|
-
var
|
|
6598
|
-
var
|
|
6599
|
-
|
|
6600
|
-
},
|
|
6601
|
-
var
|
|
6616
|
+
var He = (B) => {
|
|
6617
|
+
var ee = Hu();
|
|
6618
|
+
St(B, ee);
|
|
6619
|
+
}, J = (B) => {
|
|
6620
|
+
var ee = $u(), ke = Vt(ee), R = Vt(ke), O = Vt(R), Je = gr(O), bt = dn(O, 2), y = gr(bt, !0), m = dn(bt, 2);
|
|
6602
6621
|
{
|
|
6603
6622
|
var v = (g) => {
|
|
6604
|
-
var _ =
|
|
6605
|
-
|
|
6623
|
+
var _ = Au(), E = gr(_, !0);
|
|
6624
|
+
vn((x) => Er(E, x), [
|
|
6606
6625
|
() => r()("pointsToExpire", {
|
|
6607
6626
|
values: {
|
|
6608
6627
|
points: $(b).points.toLocaleString(),
|
|
6609
6628
|
date: $(N)
|
|
6610
6629
|
}
|
|
6611
6630
|
})
|
|
6612
|
-
]),
|
|
6631
|
+
]), St(g, _);
|
|
6613
6632
|
};
|
|
6614
|
-
|
|
6633
|
+
xn(m, (g) => {
|
|
6615
6634
|
$(b) && g(v);
|
|
6616
6635
|
});
|
|
6617
6636
|
}
|
|
6618
|
-
|
|
6637
|
+
Gt(R), Gt(ke), Gt(ee), vn(
|
|
6619
6638
|
(g, _) => {
|
|
6620
|
-
|
|
6621
|
-
${g ?? ""}`),
|
|
6639
|
+
Er(Je, `${$(d) ?? ""}
|
|
6640
|
+
${g ?? ""}`), Er(y, _);
|
|
6622
6641
|
},
|
|
6623
6642
|
[() => r()("tokens"), () => r()("tokenBalance")]
|
|
6624
|
-
),
|
|
6643
|
+
), St(B, ee);
|
|
6625
6644
|
};
|
|
6626
|
-
|
|
6627
|
-
$(p) ? B(
|
|
6645
|
+
xn(U, (B) => {
|
|
6646
|
+
$(p) ? B(He) : B(J, -1);
|
|
6628
6647
|
});
|
|
6629
6648
|
}
|
|
6630
|
-
|
|
6631
|
-
var
|
|
6632
|
-
return i(),
|
|
6649
|
+
St(e, W);
|
|
6650
|
+
var K = Yr(G);
|
|
6651
|
+
return i(), K;
|
|
6633
6652
|
}
|
|
6634
6653
|
Bi(
|
|
6635
6654
|
ns,
|
|
@@ -6645,8 +6664,8 @@ Bi(
|
|
|
6645
6664
|
{ mode: "open" }
|
|
6646
6665
|
);
|
|
6647
6666
|
function is(e, t) {
|
|
6648
|
-
|
|
6649
|
-
let r =
|
|
6667
|
+
Xr(t, !0);
|
|
6668
|
+
let r = be(t, "apiEndpoint", 7, ""), n = be(t, "userSession", 7, ""), i = be(t, "locale", 7, ""), s = be(t, "dateFormat", 7, tr), o = be(t, "onLevelLoaded");
|
|
6650
6669
|
var a = {
|
|
6651
6670
|
get apiEndpoint() {
|
|
6652
6671
|
return r();
|
|
@@ -6669,7 +6688,7 @@ function is(e, t) {
|
|
|
6669
6688
|
get dateFormat() {
|
|
6670
6689
|
return s();
|
|
6671
6690
|
},
|
|
6672
|
-
set dateFormat(u =
|
|
6691
|
+
set dateFormat(u = tr) {
|
|
6673
6692
|
s(u), le();
|
|
6674
6693
|
},
|
|
6675
6694
|
get onLevelLoaded() {
|
|
@@ -6695,7 +6714,7 @@ function is(e, t) {
|
|
|
6695
6714
|
get onLevelLoaded() {
|
|
6696
6715
|
return o();
|
|
6697
6716
|
}
|
|
6698
|
-
}),
|
|
6717
|
+
}), Yr(a);
|
|
6699
6718
|
}
|
|
6700
6719
|
customElements.define("loyalty-points-card", Bi(
|
|
6701
6720
|
is,
|
|
@@ -6709,11 +6728,11 @@ customElements.define("loyalty-points-card", Bi(
|
|
|
6709
6728
|
[],
|
|
6710
6729
|
[]
|
|
6711
6730
|
));
|
|
6712
|
-
const
|
|
6731
|
+
const Lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6713
6732
|
__proto__: null,
|
|
6714
6733
|
default: is
|
|
6715
6734
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6716
6735
|
export {
|
|
6717
6736
|
ns as L,
|
|
6718
|
-
|
|
6737
|
+
Lu as a
|
|
6719
6738
|
};
|