@everymatrix/loyalty-points-card 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/LoyaltyPointsCard-B0sTfuOS.cjs +21 -0
- package/components/{LoyaltyPointsCard-Cer570GO.js → LoyaltyPointsCard-BXP4Zc4w.js} +1817 -1605
- package/components/{LoyaltyPointsCard-Cx75tFCm.js → LoyaltyPointsCard-oERfKJkU.js} +1520 -1310
- package/es2015/loyalty-points-card.cjs +1 -1
- package/es2015/loyalty-points-card.js +1 -1
- package/package.json +1 -1
- package/components/LoyaltyPointsCard-PEIuWRgm.cjs +0 -5
|
@@ -1,122 +1,130 @@
|
|
|
1
|
-
const
|
|
2
|
-
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(
|
|
3
|
-
const
|
|
4
|
-
var
|
|
5
|
-
const
|
|
1
|
+
const ci = "5";
|
|
2
|
+
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(ci);
|
|
3
|
+
const di = 2, Gr = "[", ir = "[!", kr = "]", Ie = {}, N = Symbol(), kt = !1;
|
|
4
|
+
var pi = Array.isArray, vi = Array.prototype.indexOf, _i = Array.from, _t = Object.keys, Je = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, mi = Object.prototype, bi = Array.prototype, gi = Object.getPrototypeOf, br = Object.isExtensible;
|
|
5
|
+
const de = () => {
|
|
6
6
|
};
|
|
7
|
-
function
|
|
7
|
+
function jr(e) {
|
|
8
8
|
for (var t = 0; t < e.length; t++)
|
|
9
9
|
e[t]();
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Vr() {
|
|
12
12
|
var e, t, r = new Promise((n, i) => {
|
|
13
13
|
e = n, t = i;
|
|
14
14
|
});
|
|
15
15
|
return { promise: r, resolve: e, reject: t };
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const O = 2, mt = 4, St = 8, Xr = 1 << 24, ue = 16, le = 32, me = 64, sr = 128, X = 512, I = 1024, C = 2048, fe = 4096, K = 8192, ie = 16384, Ht = 32768, Re = 65536, gr = 1 << 17, Wr = 1 << 18, Se = 1 << 19, yi = 1 << 20, we = 32768, jt = 1 << 21, or = 1 << 22, pe = 1 << 23, Ct = Symbol("$state"), Ei = Symbol("legacy props"), Pe = new class extends Error {
|
|
18
18
|
name = "StaleReactionError";
|
|
19
19
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
20
|
-
}(),
|
|
21
|
-
function
|
|
20
|
+
}(), ar = 3, it = 8;
|
|
21
|
+
function xi() {
|
|
22
22
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function wi(e) {
|
|
25
25
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Ti() {
|
|
28
28
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Si(e) {
|
|
31
31
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Hi() {
|
|
34
34
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Ai() {
|
|
37
37
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Bi() {
|
|
40
40
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Pi() {
|
|
43
43
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Ni() {
|
|
46
46
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Oi() {
|
|
49
49
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function At(e) {
|
|
52
52
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Li() {
|
|
55
55
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
56
56
|
}
|
|
57
|
-
let
|
|
58
|
-
function
|
|
59
|
-
|
|
57
|
+
let A = !1;
|
|
58
|
+
function Ne(e) {
|
|
59
|
+
A = e;
|
|
60
60
|
}
|
|
61
|
-
let
|
|
62
|
-
function
|
|
61
|
+
let E;
|
|
62
|
+
function Y(e) {
|
|
63
63
|
if (e === null)
|
|
64
|
-
throw
|
|
65
|
-
return
|
|
64
|
+
throw At(), Ie;
|
|
65
|
+
return E = e;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
return
|
|
67
|
+
function ur() {
|
|
68
|
+
return Y(/* @__PURE__ */ he(E));
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
if (
|
|
72
|
-
if (/* @__PURE__ */
|
|
73
|
-
throw
|
|
74
|
-
|
|
70
|
+
function Xe(e) {
|
|
71
|
+
if (A) {
|
|
72
|
+
if (/* @__PURE__ */ he(E) !== null)
|
|
73
|
+
throw At(), Ie;
|
|
74
|
+
E = e;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
if (
|
|
79
|
-
for (var t = e, r =
|
|
77
|
+
function Ii(e = 1) {
|
|
78
|
+
if (A) {
|
|
79
|
+
for (var t = e, r = E; t--; )
|
|
80
80
|
r = /** @type {TemplateNode} */
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
|
|
81
|
+
/* @__PURE__ */ he(r);
|
|
82
|
+
E = r;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
for (var t = 0, r =
|
|
87
|
-
if (r.nodeType ===
|
|
85
|
+
function zr(e = !0) {
|
|
86
|
+
for (var t = 0, r = E; ; ) {
|
|
87
|
+
if (r.nodeType === it) {
|
|
88
88
|
var n = (
|
|
89
89
|
/** @type {Comment} */
|
|
90
90
|
r.data
|
|
91
91
|
);
|
|
92
|
-
if (n ===
|
|
92
|
+
if (n === kr) {
|
|
93
93
|
if (t === 0) return r;
|
|
94
94
|
t -= 1;
|
|
95
|
-
} else (n ===
|
|
95
|
+
} else (n === Gr || n === ir) && (t += 1);
|
|
96
96
|
}
|
|
97
97
|
var i = (
|
|
98
98
|
/** @type {TemplateNode} */
|
|
99
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ he(r)
|
|
100
100
|
);
|
|
101
101
|
e && r.remove(), r = i;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Ri(e) {
|
|
105
|
+
if (!e || e.nodeType !== it)
|
|
106
|
+
throw At(), Ie;
|
|
107
|
+
return (
|
|
108
|
+
/** @type {Comment} */
|
|
109
|
+
e.data
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
function qr(e) {
|
|
105
113
|
return e === this.v;
|
|
106
114
|
}
|
|
107
|
-
function
|
|
115
|
+
function Zr(e, t) {
|
|
108
116
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
109
117
|
}
|
|
110
|
-
function
|
|
111
|
-
return !
|
|
118
|
+
function Ci(e) {
|
|
119
|
+
return !Zr(e, this.v);
|
|
112
120
|
}
|
|
113
|
-
let
|
|
114
|
-
function
|
|
115
|
-
|
|
121
|
+
let Mi = !1, W = null;
|
|
122
|
+
function Ce(e) {
|
|
123
|
+
W = e;
|
|
116
124
|
}
|
|
117
|
-
function
|
|
118
|
-
|
|
119
|
-
p:
|
|
125
|
+
function Yr(e, t = !1, r) {
|
|
126
|
+
W = {
|
|
127
|
+
p: W,
|
|
120
128
|
i: !1,
|
|
121
129
|
c: null,
|
|
122
130
|
e: null,
|
|
@@ -125,55 +133,55 @@ function Wr(e, t = !1, r) {
|
|
|
125
133
|
l: null
|
|
126
134
|
};
|
|
127
135
|
}
|
|
128
|
-
function
|
|
136
|
+
function Qr(e) {
|
|
129
137
|
var t = (
|
|
130
138
|
/** @type {ComponentContext} */
|
|
131
|
-
|
|
139
|
+
W
|
|
132
140
|
), r = t.e;
|
|
133
141
|
if (r !== null) {
|
|
134
142
|
t.e = null;
|
|
135
143
|
for (var n of r)
|
|
136
|
-
|
|
144
|
+
mn(n);
|
|
137
145
|
}
|
|
138
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
146
|
+
return e !== void 0 && (t.x = e), t.i = !0, W = t.p, e ?? /** @type {T} */
|
|
139
147
|
{};
|
|
140
148
|
}
|
|
141
|
-
function
|
|
149
|
+
function Jr() {
|
|
142
150
|
return !0;
|
|
143
151
|
}
|
|
144
152
|
let ge = [];
|
|
145
|
-
function
|
|
153
|
+
function Kr() {
|
|
146
154
|
var e = ge;
|
|
147
|
-
ge = [],
|
|
155
|
+
ge = [], jr(e);
|
|
148
156
|
}
|
|
149
|
-
function
|
|
150
|
-
if (ge.length === 0 && !
|
|
157
|
+
function lr(e) {
|
|
158
|
+
if (ge.length === 0 && !Ze) {
|
|
151
159
|
var t = ge;
|
|
152
160
|
queueMicrotask(() => {
|
|
153
|
-
t === ge &&
|
|
161
|
+
t === ge && Kr();
|
|
154
162
|
});
|
|
155
163
|
}
|
|
156
164
|
ge.push(e);
|
|
157
165
|
}
|
|
158
|
-
function
|
|
166
|
+
function $i() {
|
|
159
167
|
for (; ge.length > 0; )
|
|
160
|
-
|
|
168
|
+
Kr();
|
|
161
169
|
}
|
|
162
|
-
function
|
|
170
|
+
function en(e) {
|
|
163
171
|
var t = g;
|
|
164
172
|
if (t === null)
|
|
165
|
-
return m.f |=
|
|
166
|
-
if (t.f &
|
|
167
|
-
|
|
173
|
+
return m.f |= pe, e;
|
|
174
|
+
if (t.f & Ht)
|
|
175
|
+
Me(e, t);
|
|
168
176
|
else {
|
|
169
|
-
if (!(t.f &
|
|
177
|
+
if (!(t.f & sr))
|
|
170
178
|
throw e;
|
|
171
179
|
t.b.error(e);
|
|
172
180
|
}
|
|
173
181
|
}
|
|
174
|
-
function
|
|
182
|
+
function Me(e, t) {
|
|
175
183
|
for (; t !== null; ) {
|
|
176
|
-
if (t.f &
|
|
184
|
+
if (t.f & sr)
|
|
177
185
|
try {
|
|
178
186
|
t.b.error(e);
|
|
179
187
|
return;
|
|
@@ -184,27 +192,27 @@ function Ie(e, t) {
|
|
|
184
192
|
}
|
|
185
193
|
throw e;
|
|
186
194
|
}
|
|
187
|
-
const
|
|
188
|
-
function
|
|
189
|
-
e.f = e.f &
|
|
195
|
+
const Di = -7169;
|
|
196
|
+
function P(e, t) {
|
|
197
|
+
e.f = e.f & Di | t;
|
|
190
198
|
}
|
|
191
|
-
function
|
|
192
|
-
e.f &
|
|
199
|
+
function fr(e) {
|
|
200
|
+
e.f & X || e.deps === null ? P(e, I) : P(e, fe);
|
|
193
201
|
}
|
|
194
|
-
function
|
|
202
|
+
function tn(e) {
|
|
195
203
|
if (e !== null)
|
|
196
204
|
for (const t of e)
|
|
197
|
-
!(t.f &
|
|
205
|
+
!(t.f & O) || !(t.f & we) || (t.f ^= we, tn(
|
|
198
206
|
/** @type {Derived} */
|
|
199
207
|
t.deps
|
|
200
208
|
));
|
|
201
209
|
}
|
|
202
|
-
function
|
|
203
|
-
e.f &
|
|
210
|
+
function rn(e, t, r) {
|
|
211
|
+
e.f & C ? t.add(e) : e.f & fe && r.add(e), tn(e.deps), P(e, I);
|
|
204
212
|
}
|
|
205
|
-
const
|
|
206
|
-
let
|
|
207
|
-
class
|
|
213
|
+
const at = /* @__PURE__ */ new Set();
|
|
214
|
+
let S = null, z = null, V = [], Bt = null, Vt = !1, Ze = !1;
|
|
215
|
+
class q {
|
|
208
216
|
committed = !1;
|
|
209
217
|
/**
|
|
210
218
|
* The current values of any sources that are updated in this batch
|
|
@@ -232,27 +240,27 @@ class z {
|
|
|
232
240
|
/**
|
|
233
241
|
* The number of async effects that are currently in flight
|
|
234
242
|
*/
|
|
235
|
-
#
|
|
243
|
+
#r = 0;
|
|
236
244
|
/**
|
|
237
245
|
* The number of async effects that are currently in flight, _not_ inside a pending boundary
|
|
238
246
|
*/
|
|
239
|
-
#
|
|
247
|
+
#s = 0;
|
|
240
248
|
/**
|
|
241
249
|
* A deferred that resolves when the batch is committed, used with `settled()`
|
|
242
250
|
* TODO replace with Promise.withResolvers once supported widely enough
|
|
243
251
|
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
244
252
|
*/
|
|
245
|
-
#
|
|
253
|
+
#o = null;
|
|
246
254
|
/**
|
|
247
255
|
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
248
256
|
* @type {Set<Effect>}
|
|
249
257
|
*/
|
|
250
|
-
#
|
|
258
|
+
#i = /* @__PURE__ */ new Set();
|
|
251
259
|
/**
|
|
252
260
|
* Deferred effects that are MAYBE_DIRTY
|
|
253
261
|
* @type {Set<Effect>}
|
|
254
262
|
*/
|
|
255
|
-
#
|
|
263
|
+
#n = /* @__PURE__ */ new Set();
|
|
256
264
|
/**
|
|
257
265
|
* A set of branches that still exist, but will be destroyed when this batch
|
|
258
266
|
* is committed — we skip over these during `process`
|
|
@@ -261,18 +269,18 @@ class z {
|
|
|
261
269
|
skipped_effects = /* @__PURE__ */ new Set();
|
|
262
270
|
is_fork = !1;
|
|
263
271
|
is_deferred() {
|
|
264
|
-
return this.is_fork || this.#
|
|
272
|
+
return this.is_fork || this.#s > 0;
|
|
265
273
|
}
|
|
266
274
|
/**
|
|
267
275
|
*
|
|
268
276
|
* @param {Effect[]} root_effects
|
|
269
277
|
*/
|
|
270
278
|
process(t) {
|
|
271
|
-
|
|
279
|
+
V = [], this.apply();
|
|
272
280
|
var r = [], n = [];
|
|
273
281
|
for (const i of t)
|
|
274
|
-
this.#
|
|
275
|
-
this.is_fork || this.#l(), this.is_deferred() ? (this.#u(n), this.#u(r)) : (
|
|
282
|
+
this.#a(i, r, n);
|
|
283
|
+
this.is_fork || this.#l(), this.is_deferred() ? (this.#u(n), this.#u(r)) : (S = null, yr(n), yr(r), this.#o?.resolve()), z = null;
|
|
276
284
|
}
|
|
277
285
|
/**
|
|
278
286
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -281,12 +289,12 @@ class z {
|
|
|
281
289
|
* @param {Effect[]} effects
|
|
282
290
|
* @param {Effect[]} render_effects
|
|
283
291
|
*/
|
|
284
|
-
#
|
|
292
|
+
#a(t, r, n) {
|
|
285
293
|
t.f ^= I;
|
|
286
294
|
for (var i = t.first, s = null; i !== null; ) {
|
|
287
|
-
var o = i.f, a = (o & (
|
|
288
|
-
if (!
|
|
289
|
-
a ? i.f ^= I : s !== null && o & (
|
|
295
|
+
var o = i.f, a = (o & (le | me)) !== 0, u = a && (o & I) !== 0, l = u || (o & K) !== 0 || this.skipped_effects.has(i);
|
|
296
|
+
if (!l && i.fn !== null) {
|
|
297
|
+
a ? i.f ^= I : s !== null && o & (mt | St | Xr) ? s.b.defer_effect(i) : o & mt ? r.push(i) : ot(i) && (o & ue && this.#i.add(i), et(i));
|
|
290
298
|
var f = i.first;
|
|
291
299
|
if (f !== null) {
|
|
292
300
|
i = f;
|
|
@@ -303,7 +311,7 @@ class z {
|
|
|
303
311
|
*/
|
|
304
312
|
#u(t) {
|
|
305
313
|
for (var r = 0; r < t.length; r += 1)
|
|
306
|
-
|
|
314
|
+
rn(t[r], this.#i, this.#n);
|
|
307
315
|
}
|
|
308
316
|
/**
|
|
309
317
|
* Associate a change to a given source with the current
|
|
@@ -312,19 +320,19 @@ class z {
|
|
|
312
320
|
* @param {any} value
|
|
313
321
|
*/
|
|
314
322
|
capture(t, r) {
|
|
315
|
-
r !==
|
|
323
|
+
r !== N && !this.previous.has(t) && this.previous.set(t, r), t.f & pe || (this.current.set(t, t.v), z?.set(t, t.v));
|
|
316
324
|
}
|
|
317
325
|
activate() {
|
|
318
|
-
|
|
326
|
+
S = this, this.apply();
|
|
319
327
|
}
|
|
320
328
|
deactivate() {
|
|
321
|
-
|
|
329
|
+
S === this && (S = null, z = null);
|
|
322
330
|
}
|
|
323
331
|
flush() {
|
|
324
|
-
if (this.activate(),
|
|
325
|
-
if (
|
|
332
|
+
if (this.activate(), V.length > 0) {
|
|
333
|
+
if (nn(), S !== null && S !== this)
|
|
326
334
|
return;
|
|
327
|
-
} else this.#
|
|
335
|
+
} else this.#r === 0 && this.process([]);
|
|
328
336
|
this.deactivate();
|
|
329
337
|
}
|
|
330
338
|
discard() {
|
|
@@ -332,26 +340,26 @@ class z {
|
|
|
332
340
|
this.#t.clear();
|
|
333
341
|
}
|
|
334
342
|
#l() {
|
|
335
|
-
if (this.#
|
|
343
|
+
if (this.#s === 0) {
|
|
336
344
|
for (const t of this.#e) t();
|
|
337
345
|
this.#e.clear();
|
|
338
346
|
}
|
|
339
|
-
this.#
|
|
347
|
+
this.#r === 0 && this.#f();
|
|
340
348
|
}
|
|
341
349
|
#f() {
|
|
342
|
-
if (
|
|
350
|
+
if (at.size > 1) {
|
|
343
351
|
this.previous.clear();
|
|
344
|
-
var t =
|
|
345
|
-
for (const i of
|
|
352
|
+
var t = z, r = !0;
|
|
353
|
+
for (const i of at) {
|
|
346
354
|
if (i === this) {
|
|
347
355
|
r = !1;
|
|
348
356
|
continue;
|
|
349
357
|
}
|
|
350
358
|
const s = [];
|
|
351
|
-
for (const [a,
|
|
359
|
+
for (const [a, u] of this.current) {
|
|
352
360
|
if (i.current.has(a))
|
|
353
|
-
if (r &&
|
|
354
|
-
i.current.set(a,
|
|
361
|
+
if (r && u !== i.current.get(a))
|
|
362
|
+
i.current.set(a, u);
|
|
355
363
|
else
|
|
356
364
|
continue;
|
|
357
365
|
s.push(a);
|
|
@@ -360,43 +368,43 @@ class z {
|
|
|
360
368
|
continue;
|
|
361
369
|
const o = [...i.current.keys()].filter((a) => !this.current.has(a));
|
|
362
370
|
if (o.length > 0) {
|
|
363
|
-
var n =
|
|
364
|
-
|
|
365
|
-
const a = /* @__PURE__ */ new Set(),
|
|
366
|
-
for (const
|
|
367
|
-
|
|
368
|
-
if (
|
|
369
|
-
|
|
370
|
-
for (const
|
|
371
|
-
i.#
|
|
371
|
+
var n = V;
|
|
372
|
+
V = [];
|
|
373
|
+
const a = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
|
|
374
|
+
for (const l of s)
|
|
375
|
+
sn(l, o, a, u);
|
|
376
|
+
if (V.length > 0) {
|
|
377
|
+
S = i, i.apply();
|
|
378
|
+
for (const l of V)
|
|
379
|
+
i.#a(l, [], []);
|
|
372
380
|
i.deactivate();
|
|
373
381
|
}
|
|
374
|
-
|
|
382
|
+
V = n;
|
|
375
383
|
}
|
|
376
384
|
}
|
|
377
|
-
|
|
385
|
+
S = null, z = t;
|
|
378
386
|
}
|
|
379
|
-
this.committed = !0,
|
|
387
|
+
this.committed = !0, at.delete(this);
|
|
380
388
|
}
|
|
381
389
|
/**
|
|
382
390
|
*
|
|
383
391
|
* @param {boolean} blocking
|
|
384
392
|
*/
|
|
385
393
|
increment(t) {
|
|
386
|
-
this.#
|
|
394
|
+
this.#r += 1, t && (this.#s += 1);
|
|
387
395
|
}
|
|
388
396
|
/**
|
|
389
397
|
*
|
|
390
398
|
* @param {boolean} blocking
|
|
391
399
|
*/
|
|
392
400
|
decrement(t) {
|
|
393
|
-
this.#
|
|
401
|
+
this.#r -= 1, t && (this.#s -= 1), this.revive();
|
|
394
402
|
}
|
|
395
403
|
revive() {
|
|
404
|
+
for (const t of this.#i)
|
|
405
|
+
this.#n.delete(t), P(t, C), oe(t);
|
|
396
406
|
for (const t of this.#n)
|
|
397
|
-
|
|
398
|
-
for (const t of this.#r)
|
|
399
|
-
N(t, se), he(t);
|
|
407
|
+
P(t, fe), oe(t);
|
|
400
408
|
this.flush();
|
|
401
409
|
}
|
|
402
410
|
/** @param {() => void} fn */
|
|
@@ -408,112 +416,112 @@ class z {
|
|
|
408
416
|
this.#t.add(t);
|
|
409
417
|
}
|
|
410
418
|
settled() {
|
|
411
|
-
return (this.#
|
|
419
|
+
return (this.#o ??= Vr()).promise;
|
|
412
420
|
}
|
|
413
421
|
static ensure() {
|
|
414
|
-
if (
|
|
415
|
-
const t =
|
|
416
|
-
|
|
417
|
-
|
|
422
|
+
if (S === null) {
|
|
423
|
+
const t = S = new q();
|
|
424
|
+
at.add(S), Ze || q.enqueue(() => {
|
|
425
|
+
S === t && t.flush();
|
|
418
426
|
});
|
|
419
427
|
}
|
|
420
|
-
return
|
|
428
|
+
return S;
|
|
421
429
|
}
|
|
422
430
|
/** @param {() => void} task */
|
|
423
431
|
static enqueue(t) {
|
|
424
|
-
|
|
432
|
+
lr(t);
|
|
425
433
|
}
|
|
426
434
|
apply() {
|
|
427
435
|
}
|
|
428
436
|
}
|
|
429
|
-
function
|
|
430
|
-
var t =
|
|
431
|
-
|
|
437
|
+
function Oe(e) {
|
|
438
|
+
var t = Ze;
|
|
439
|
+
Ze = !0;
|
|
432
440
|
try {
|
|
433
441
|
for (var r; ; ) {
|
|
434
|
-
if (
|
|
435
|
-
return
|
|
442
|
+
if ($i(), V.length === 0 && (S?.flush(), V.length === 0))
|
|
443
|
+
return Bt = null, /** @type {T} */
|
|
436
444
|
r;
|
|
437
|
-
|
|
445
|
+
nn();
|
|
438
446
|
}
|
|
439
447
|
} finally {
|
|
440
|
-
|
|
448
|
+
Ze = t;
|
|
441
449
|
}
|
|
442
450
|
}
|
|
443
|
-
function
|
|
451
|
+
function nn() {
|
|
444
452
|
var e = Ee;
|
|
445
|
-
|
|
453
|
+
Vt = !0;
|
|
446
454
|
var t = null;
|
|
447
455
|
try {
|
|
448
456
|
var r = 0;
|
|
449
|
-
for (
|
|
450
|
-
var n =
|
|
457
|
+
for (yt(!0); V.length > 0; ) {
|
|
458
|
+
var n = q.ensure();
|
|
451
459
|
if (r++ > 1e3) {
|
|
452
460
|
var i, s;
|
|
453
|
-
|
|
461
|
+
Fi();
|
|
454
462
|
}
|
|
455
|
-
n.process(
|
|
463
|
+
n.process(V), ve.clear();
|
|
456
464
|
}
|
|
457
465
|
} finally {
|
|
458
|
-
|
|
466
|
+
Vt = !1, yt(e), Bt = null;
|
|
459
467
|
}
|
|
460
468
|
}
|
|
461
|
-
function
|
|
469
|
+
function Fi() {
|
|
462
470
|
try {
|
|
463
|
-
|
|
471
|
+
Hi();
|
|
464
472
|
} catch (e) {
|
|
465
|
-
|
|
473
|
+
Me(e, Bt);
|
|
466
474
|
}
|
|
467
475
|
}
|
|
468
|
-
let
|
|
469
|
-
function
|
|
476
|
+
let re = null;
|
|
477
|
+
function yr(e) {
|
|
470
478
|
var t = e.length;
|
|
471
479
|
if (t !== 0) {
|
|
472
480
|
for (var r = 0; r < t; ) {
|
|
473
481
|
var n = e[r++];
|
|
474
|
-
if (!(n.f & (
|
|
475
|
-
|
|
476
|
-
for (const i of
|
|
477
|
-
if (i.f & (
|
|
482
|
+
if (!(n.f & (ie | K)) && ot(n) && (re = /* @__PURE__ */ new Set(), et(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ? xn(n) : n.fn = null), re?.size > 0)) {
|
|
483
|
+
ve.clear();
|
|
484
|
+
for (const i of re) {
|
|
485
|
+
if (i.f & (ie | K)) continue;
|
|
478
486
|
const s = [i];
|
|
479
487
|
let o = i.parent;
|
|
480
488
|
for (; o !== null; )
|
|
481
|
-
|
|
489
|
+
re.has(o) && (re.delete(o), s.push(o)), o = o.parent;
|
|
482
490
|
for (let a = s.length - 1; a >= 0; a--) {
|
|
483
|
-
const
|
|
484
|
-
|
|
491
|
+
const u = s[a];
|
|
492
|
+
u.f & (ie | K) || et(u);
|
|
485
493
|
}
|
|
486
494
|
}
|
|
487
|
-
|
|
495
|
+
re.clear();
|
|
488
496
|
}
|
|
489
497
|
}
|
|
490
|
-
|
|
498
|
+
re = null;
|
|
491
499
|
}
|
|
492
500
|
}
|
|
493
|
-
function
|
|
501
|
+
function sn(e, t, r, n) {
|
|
494
502
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
495
503
|
for (const i of e.reactions) {
|
|
496
504
|
const s = i.f;
|
|
497
|
-
s &
|
|
505
|
+
s & O ? sn(
|
|
498
506
|
/** @type {Derived} */
|
|
499
507
|
i,
|
|
500
508
|
t,
|
|
501
509
|
r,
|
|
502
510
|
n
|
|
503
|
-
) : s & (
|
|
511
|
+
) : s & (or | ue) && !(s & C) && on(i, t, n) && (P(i, C), oe(
|
|
504
512
|
/** @type {Effect} */
|
|
505
513
|
i
|
|
506
514
|
));
|
|
507
515
|
}
|
|
508
516
|
}
|
|
509
|
-
function
|
|
517
|
+
function on(e, t, r) {
|
|
510
518
|
const n = r.get(e);
|
|
511
519
|
if (n !== void 0) return n;
|
|
512
520
|
if (e.deps !== null)
|
|
513
521
|
for (const i of e.deps) {
|
|
514
522
|
if (t.includes(i))
|
|
515
523
|
return !0;
|
|
516
|
-
if (i.f &
|
|
524
|
+
if (i.f & O && on(
|
|
517
525
|
/** @type {Derived} */
|
|
518
526
|
i,
|
|
519
527
|
t,
|
|
@@ -527,53 +535,53 @@ function tn(e, t, r) {
|
|
|
527
535
|
}
|
|
528
536
|
return r.set(e, !1), !1;
|
|
529
537
|
}
|
|
530
|
-
function
|
|
531
|
-
for (var t =
|
|
538
|
+
function oe(e) {
|
|
539
|
+
for (var t = Bt = e; t.parent !== null; ) {
|
|
532
540
|
t = t.parent;
|
|
533
541
|
var r = t.f;
|
|
534
|
-
if (
|
|
542
|
+
if (Vt && t === g && r & ue && !(r & Wr))
|
|
535
543
|
return;
|
|
536
|
-
if (r & (
|
|
544
|
+
if (r & (me | le)) {
|
|
537
545
|
if (!(r & I)) return;
|
|
538
546
|
t.f ^= I;
|
|
539
547
|
}
|
|
540
548
|
}
|
|
541
|
-
|
|
549
|
+
V.push(t);
|
|
542
550
|
}
|
|
543
|
-
function
|
|
544
|
-
let t = 0, r =
|
|
551
|
+
function Ui(e) {
|
|
552
|
+
let t = 0, r = st(0), n;
|
|
545
553
|
return () => {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
t -= 1, t === 0 && (n?.(), n = void 0,
|
|
554
|
+
dr() && (y(r), bn(() => (t === 0 && (n = In(() => e(() => Ye(r)))), t += 1, () => {
|
|
555
|
+
lr(() => {
|
|
556
|
+
t -= 1, t === 0 && (n?.(), n = void 0, Ye(r));
|
|
549
557
|
});
|
|
550
558
|
})));
|
|
551
559
|
};
|
|
552
560
|
}
|
|
553
|
-
var
|
|
554
|
-
function
|
|
555
|
-
new
|
|
561
|
+
var Gi = Re | Se | sr;
|
|
562
|
+
function ki(e, t, r) {
|
|
563
|
+
new ji(e, t, r);
|
|
556
564
|
}
|
|
557
|
-
class
|
|
565
|
+
class ji {
|
|
558
566
|
/** @type {Boundary | null} */
|
|
559
567
|
parent;
|
|
560
568
|
is_pending = !1;
|
|
561
569
|
/** @type {TemplateNode} */
|
|
562
570
|
#e;
|
|
563
571
|
/** @type {TemplateNode | null} */
|
|
564
|
-
#t =
|
|
572
|
+
#t = A ? E : null;
|
|
565
573
|
/** @type {BoundaryProps} */
|
|
566
|
-
#
|
|
574
|
+
#r;
|
|
567
575
|
/** @type {((anchor: Node) => void)} */
|
|
568
|
-
#a;
|
|
569
|
-
/** @type {Effect} */
|
|
570
576
|
#s;
|
|
577
|
+
/** @type {Effect} */
|
|
578
|
+
#o;
|
|
571
579
|
/** @type {Effect | null} */
|
|
572
|
-
#
|
|
580
|
+
#i = null;
|
|
573
581
|
/** @type {Effect | null} */
|
|
574
|
-
#
|
|
582
|
+
#n = null;
|
|
575
583
|
/** @type {Effect | null} */
|
|
576
|
-
#
|
|
584
|
+
#a = null;
|
|
577
585
|
/** @type {DocumentFragment | null} */
|
|
578
586
|
#u = null;
|
|
579
587
|
/** @type {TemplateNode | null} */
|
|
@@ -593,7 +601,7 @@ class Li {
|
|
|
593
601
|
* @type {Source<number> | null}
|
|
594
602
|
*/
|
|
595
603
|
#c = null;
|
|
596
|
-
#y =
|
|
604
|
+
#y = Ui(() => (this.#c = st(this.#f), () => {
|
|
597
605
|
this.#c = null;
|
|
598
606
|
}));
|
|
599
607
|
/**
|
|
@@ -602,17 +610,17 @@ class Li {
|
|
|
602
610
|
* @param {((anchor: Node) => void)} children
|
|
603
611
|
*/
|
|
604
612
|
constructor(t, r, n) {
|
|
605
|
-
this.#e = t, this.#
|
|
606
|
-
g.b, this.is_pending = !!this.#
|
|
607
|
-
if (g.b = this,
|
|
613
|
+
this.#e = t, this.#r = r, this.#s = n, this.parent = /** @type {Effect} */
|
|
614
|
+
g.b, this.is_pending = !!this.#r.pending, this.#o = gn(() => {
|
|
615
|
+
if (g.b = this, A) {
|
|
608
616
|
const s = this.#t;
|
|
609
|
-
|
|
610
|
-
s.nodeType ===
|
|
611
|
-
s.data ===
|
|
617
|
+
ur(), /** @type {Comment} */
|
|
618
|
+
s.nodeType === it && /** @type {Comment} */
|
|
619
|
+
s.data === ir ? this.#x() : (this.#E(), this.#h === 0 && (this.is_pending = !1));
|
|
612
620
|
} else {
|
|
613
621
|
var i = this.#b();
|
|
614
622
|
try {
|
|
615
|
-
this.#
|
|
623
|
+
this.#i = ne(() => n(i));
|
|
616
624
|
} catch (s) {
|
|
617
625
|
this.error(s);
|
|
618
626
|
}
|
|
@@ -621,38 +629,38 @@ class Li {
|
|
|
621
629
|
return () => {
|
|
622
630
|
this.#l?.remove();
|
|
623
631
|
};
|
|
624
|
-
},
|
|
632
|
+
}, Gi), A && (this.#e = E);
|
|
625
633
|
}
|
|
626
634
|
#E() {
|
|
627
635
|
try {
|
|
628
|
-
this.#
|
|
636
|
+
this.#i = ne(() => this.#s(this.#e));
|
|
629
637
|
} catch (t) {
|
|
630
638
|
this.error(t);
|
|
631
639
|
}
|
|
632
640
|
}
|
|
633
641
|
#x() {
|
|
634
|
-
const t = this.#
|
|
635
|
-
t && (this.#
|
|
642
|
+
const t = this.#r.pending;
|
|
643
|
+
t && (this.#n = ne(() => t(this.#e)), q.enqueue(() => {
|
|
636
644
|
var r = this.#b();
|
|
637
|
-
this.#
|
|
645
|
+
this.#i = this.#_(() => (q.ensure(), ne(() => this.#s(r)))), this.#h > 0 ? this.#m() : (Qe(
|
|
638
646
|
/** @type {Effect} */
|
|
639
|
-
this.#
|
|
647
|
+
this.#n,
|
|
640
648
|
() => {
|
|
641
|
-
this.#
|
|
649
|
+
this.#n = null;
|
|
642
650
|
}
|
|
643
651
|
), this.is_pending = !1);
|
|
644
652
|
}));
|
|
645
653
|
}
|
|
646
654
|
#b() {
|
|
647
655
|
var t = this.#e;
|
|
648
|
-
return this.is_pending && (this.#l =
|
|
656
|
+
return this.is_pending && (this.#l = ae(), this.#e.before(this.#l), t = this.#l), t;
|
|
649
657
|
}
|
|
650
658
|
/**
|
|
651
659
|
* Defer an effect inside a pending boundary until the boundary resolves
|
|
652
660
|
* @param {Effect} effect
|
|
653
661
|
*/
|
|
654
662
|
defer_effect(t) {
|
|
655
|
-
|
|
663
|
+
rn(t, this.#p, this.#v);
|
|
656
664
|
}
|
|
657
665
|
/**
|
|
658
666
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -662,31 +670,31 @@ class Li {
|
|
|
662
670
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
663
671
|
}
|
|
664
672
|
has_pending_snippet() {
|
|
665
|
-
return !!this.#
|
|
673
|
+
return !!this.#r.pending;
|
|
666
674
|
}
|
|
667
675
|
/**
|
|
668
676
|
* @param {() => Effect | null} fn
|
|
669
677
|
*/
|
|
670
678
|
#_(t) {
|
|
671
|
-
var r = g, n = m, i =
|
|
672
|
-
|
|
679
|
+
var r = g, n = m, i = W;
|
|
680
|
+
ee(this.#o), D(this.#o), Ce(this.#o.ctx);
|
|
673
681
|
try {
|
|
674
682
|
return t();
|
|
675
683
|
} catch (s) {
|
|
676
|
-
return
|
|
684
|
+
return en(s), null;
|
|
677
685
|
} finally {
|
|
678
|
-
|
|
686
|
+
ee(r), D(n), Ce(i);
|
|
679
687
|
}
|
|
680
688
|
}
|
|
681
689
|
#m() {
|
|
682
690
|
const t = (
|
|
683
691
|
/** @type {(anchor: Node) => void} */
|
|
684
|
-
this.#
|
|
692
|
+
this.#r.pending
|
|
685
693
|
);
|
|
686
|
-
this.#
|
|
694
|
+
this.#i !== null && (this.#u = document.createDocumentFragment(), this.#u.append(
|
|
687
695
|
/** @type {TemplateNode} */
|
|
688
696
|
this.#l
|
|
689
|
-
),
|
|
697
|
+
), Sn(this.#i, this.#u)), this.#n === null && (this.#n = ne(() => t(this.#e)));
|
|
690
698
|
}
|
|
691
699
|
/**
|
|
692
700
|
* Updates the pending count associated with the currently visible pending snippet,
|
|
@@ -701,11 +709,11 @@ class Li {
|
|
|
701
709
|
if (this.#h += t, this.#h === 0) {
|
|
702
710
|
this.is_pending = !1;
|
|
703
711
|
for (const r of this.#p)
|
|
704
|
-
|
|
712
|
+
P(r, C), oe(r);
|
|
705
713
|
for (const r of this.#v)
|
|
706
|
-
|
|
707
|
-
this.#p.clear(), this.#v.clear(), this.#
|
|
708
|
-
this.#
|
|
714
|
+
P(r, fe), oe(r);
|
|
715
|
+
this.#p.clear(), this.#v.clear(), this.#n && Qe(this.#n, () => {
|
|
716
|
+
this.#n = null;
|
|
709
717
|
}), this.#u && (this.#e.before(this.#u), this.#u = null);
|
|
710
718
|
}
|
|
711
719
|
}
|
|
@@ -716,7 +724,7 @@ class Li {
|
|
|
716
724
|
* @param {1 | -1} d
|
|
717
725
|
*/
|
|
718
726
|
update_pending_count(t) {
|
|
719
|
-
this.#g(t), this.#f += t, this.#c &&
|
|
727
|
+
this.#g(t), this.#f += t, this.#c && gt(this.#c, this.#f);
|
|
720
728
|
}
|
|
721
729
|
get_effect_pending() {
|
|
722
730
|
return this.#y(), y(
|
|
@@ -726,48 +734,48 @@ class Li {
|
|
|
726
734
|
}
|
|
727
735
|
/** @param {unknown} error */
|
|
728
736
|
error(t) {
|
|
729
|
-
var r = this.#
|
|
730
|
-
let n = this.#
|
|
737
|
+
var r = this.#r.onerror;
|
|
738
|
+
let n = this.#r.failed;
|
|
731
739
|
if (this.#d || !r && !n)
|
|
732
740
|
throw t;
|
|
733
|
-
this.#
|
|
741
|
+
this.#i && (F(this.#i), this.#i = null), this.#n && (F(this.#n), this.#n = null), this.#a && (F(this.#a), this.#a = null), A && (Y(
|
|
734
742
|
/** @type {TemplateNode} */
|
|
735
743
|
this.#t
|
|
736
|
-
),
|
|
744
|
+
), Ii(), Y(zr()));
|
|
737
745
|
var i = !1, s = !1;
|
|
738
746
|
const o = () => {
|
|
739
747
|
if (i) {
|
|
740
|
-
|
|
748
|
+
Li();
|
|
741
749
|
return;
|
|
742
750
|
}
|
|
743
|
-
i = !0, s &&
|
|
744
|
-
this.#
|
|
745
|
-
}), this.is_pending = this.has_pending_snippet(), this.#
|
|
751
|
+
i = !0, s && Oi(), q.ensure(), this.#f = 0, this.#a !== null && Qe(this.#a, () => {
|
|
752
|
+
this.#a = null;
|
|
753
|
+
}), this.is_pending = this.has_pending_snippet(), this.#i = this.#_(() => (this.#d = !1, ne(() => this.#s(this.#e)))), this.#h > 0 ? this.#m() : this.is_pending = !1;
|
|
746
754
|
};
|
|
747
755
|
var a = m;
|
|
748
756
|
try {
|
|
749
|
-
|
|
750
|
-
} catch (
|
|
751
|
-
|
|
757
|
+
D(null), s = !0, r?.(t, o), s = !1;
|
|
758
|
+
} catch (u) {
|
|
759
|
+
Me(u, this.#o && this.#o.parent);
|
|
752
760
|
} finally {
|
|
753
|
-
|
|
761
|
+
D(a);
|
|
754
762
|
}
|
|
755
|
-
n &&
|
|
756
|
-
this.#
|
|
757
|
-
|
|
763
|
+
n && lr(() => {
|
|
764
|
+
this.#a = this.#_(() => {
|
|
765
|
+
q.ensure(), this.#d = !0;
|
|
758
766
|
try {
|
|
759
|
-
return
|
|
767
|
+
return ne(() => {
|
|
760
768
|
n(
|
|
761
769
|
this.#e,
|
|
762
770
|
() => t,
|
|
763
771
|
() => o
|
|
764
772
|
);
|
|
765
773
|
});
|
|
766
|
-
} catch (
|
|
767
|
-
return
|
|
768
|
-
|
|
774
|
+
} catch (u) {
|
|
775
|
+
return Me(
|
|
776
|
+
u,
|
|
769
777
|
/** @type {Effect} */
|
|
770
|
-
this.#
|
|
778
|
+
this.#o.parent
|
|
771
779
|
), null;
|
|
772
780
|
} finally {
|
|
773
781
|
this.#d = !1;
|
|
@@ -776,65 +784,65 @@ class Li {
|
|
|
776
784
|
});
|
|
777
785
|
}
|
|
778
786
|
}
|
|
779
|
-
function
|
|
780
|
-
const i =
|
|
787
|
+
function Vi(e, t, r, n) {
|
|
788
|
+
const i = hr;
|
|
781
789
|
if (r.length === 0 && e.length === 0) {
|
|
782
790
|
n(t.map(i));
|
|
783
791
|
return;
|
|
784
792
|
}
|
|
785
|
-
var s =
|
|
793
|
+
var s = S, o = (
|
|
786
794
|
/** @type {Effect} */
|
|
787
795
|
g
|
|
788
|
-
), a =
|
|
789
|
-
function
|
|
790
|
-
Promise.all(r.map((
|
|
796
|
+
), a = Xi();
|
|
797
|
+
function u() {
|
|
798
|
+
Promise.all(r.map((l) => /* @__PURE__ */ Wi(l))).then((l) => {
|
|
791
799
|
a();
|
|
792
800
|
try {
|
|
793
|
-
n([...t.map(i), ...
|
|
801
|
+
n([...t.map(i), ...l]);
|
|
794
802
|
} catch (f) {
|
|
795
|
-
o.f &
|
|
803
|
+
o.f & ie || Me(f, o);
|
|
796
804
|
}
|
|
797
|
-
s?.deactivate(),
|
|
798
|
-
}).catch((
|
|
799
|
-
|
|
805
|
+
s?.deactivate(), bt();
|
|
806
|
+
}).catch((l) => {
|
|
807
|
+
Me(l, o);
|
|
800
808
|
});
|
|
801
809
|
}
|
|
802
810
|
e.length > 0 ? Promise.all(e).then(() => {
|
|
803
811
|
a();
|
|
804
812
|
try {
|
|
805
|
-
return
|
|
813
|
+
return u();
|
|
806
814
|
} finally {
|
|
807
|
-
s?.deactivate(),
|
|
815
|
+
s?.deactivate(), bt();
|
|
808
816
|
}
|
|
809
|
-
}) :
|
|
817
|
+
}) : u();
|
|
810
818
|
}
|
|
811
|
-
function
|
|
812
|
-
var e = g, t = m, r =
|
|
819
|
+
function Xi() {
|
|
820
|
+
var e = g, t = m, r = W, n = S;
|
|
813
821
|
return function(s = !0) {
|
|
814
|
-
|
|
822
|
+
ee(e), D(t), Ce(r), s && n?.activate();
|
|
815
823
|
};
|
|
816
824
|
}
|
|
817
|
-
function
|
|
818
|
-
|
|
825
|
+
function bt() {
|
|
826
|
+
ee(null), D(null), Ce(null);
|
|
819
827
|
}
|
|
820
828
|
// @__NO_SIDE_EFFECTS__
|
|
821
|
-
function
|
|
822
|
-
var t =
|
|
829
|
+
function hr(e) {
|
|
830
|
+
var t = O | C, r = m !== null && m.f & O ? (
|
|
823
831
|
/** @type {Derived} */
|
|
824
832
|
m
|
|
825
833
|
) : null;
|
|
826
834
|
return g !== null && (g.f |= Se), {
|
|
827
|
-
ctx:
|
|
835
|
+
ctx: W,
|
|
828
836
|
deps: null,
|
|
829
837
|
effects: null,
|
|
830
|
-
equals:
|
|
838
|
+
equals: qr,
|
|
831
839
|
f: t,
|
|
832
840
|
fn: e,
|
|
833
841
|
reactions: null,
|
|
834
842
|
rv: 0,
|
|
835
843
|
v: (
|
|
836
844
|
/** @type {V} */
|
|
837
|
-
|
|
845
|
+
N
|
|
838
846
|
),
|
|
839
847
|
wv: 0,
|
|
840
848
|
parent: r ?? g,
|
|
@@ -842,12 +850,12 @@ function or(e) {
|
|
|
842
850
|
};
|
|
843
851
|
}
|
|
844
852
|
// @__NO_SIDE_EFFECTS__
|
|
845
|
-
function
|
|
853
|
+
function Wi(e, t, r) {
|
|
846
854
|
let n = (
|
|
847
855
|
/** @type {Effect | null} */
|
|
848
856
|
g
|
|
849
857
|
);
|
|
850
|
-
n === null &&
|
|
858
|
+
n === null && xi();
|
|
851
859
|
var i = (
|
|
852
860
|
/** @type {Boundary} */
|
|
853
861
|
n.b
|
|
@@ -855,48 +863,48 @@ function Ci(e, t, r) {
|
|
|
855
863
|
/** @type {Promise<V>} */
|
|
856
864
|
/** @type {unknown} */
|
|
857
865
|
void 0
|
|
858
|
-
), o =
|
|
866
|
+
), o = st(
|
|
859
867
|
/** @type {V} */
|
|
860
|
-
|
|
861
|
-
), a = !m,
|
|
862
|
-
return
|
|
863
|
-
var
|
|
864
|
-
s =
|
|
868
|
+
N
|
|
869
|
+
), a = !m, u = /* @__PURE__ */ new Map();
|
|
870
|
+
return is(() => {
|
|
871
|
+
var l = Vr();
|
|
872
|
+
s = l.promise;
|
|
865
873
|
try {
|
|
866
|
-
Promise.resolve(e()).then(
|
|
867
|
-
f ===
|
|
874
|
+
Promise.resolve(e()).then(l.resolve, l.reject).then(() => {
|
|
875
|
+
f === S && f.committed && f.deactivate(), bt();
|
|
868
876
|
});
|
|
869
877
|
} catch (d) {
|
|
870
|
-
|
|
878
|
+
l.reject(d), bt();
|
|
871
879
|
}
|
|
872
880
|
var f = (
|
|
873
881
|
/** @type {Batch} */
|
|
874
|
-
|
|
882
|
+
S
|
|
875
883
|
);
|
|
876
884
|
if (a) {
|
|
877
885
|
var c = i.is_rendered();
|
|
878
|
-
i.update_pending_count(1), f.increment(c),
|
|
886
|
+
i.update_pending_count(1), f.increment(c), u.get(f)?.reject(Pe), u.delete(f), u.set(f, l);
|
|
879
887
|
}
|
|
880
888
|
const h = (d, p = void 0) => {
|
|
881
889
|
if (f.activate(), p)
|
|
882
|
-
p !== Pe && (o.f |=
|
|
890
|
+
p !== Pe && (o.f |= pe, gt(o, p));
|
|
883
891
|
else {
|
|
884
|
-
o.f &
|
|
885
|
-
for (const [v,
|
|
886
|
-
if (
|
|
887
|
-
|
|
892
|
+
o.f & pe && (o.f ^= pe), gt(o, d);
|
|
893
|
+
for (const [v, H] of u) {
|
|
894
|
+
if (u.delete(v), v === f) break;
|
|
895
|
+
H.reject(Pe);
|
|
888
896
|
}
|
|
889
897
|
}
|
|
890
898
|
a && (i.update_pending_count(-1), f.decrement(c));
|
|
891
899
|
};
|
|
892
|
-
|
|
893
|
-
}),
|
|
894
|
-
for (const
|
|
895
|
-
|
|
896
|
-
}), new Promise((
|
|
900
|
+
l.promise.then(h, (d) => h(null, d || "unknown"));
|
|
901
|
+
}), _n(() => {
|
|
902
|
+
for (const l of u.values())
|
|
903
|
+
l.reject(Pe);
|
|
904
|
+
}), new Promise((l) => {
|
|
897
905
|
function f(c) {
|
|
898
906
|
function h() {
|
|
899
|
-
c === s ?
|
|
907
|
+
c === s ? l(o) : f(s);
|
|
900
908
|
}
|
|
901
909
|
c.then(h, h);
|
|
902
910
|
}
|
|
@@ -904,25 +912,25 @@ function Ci(e, t, r) {
|
|
|
904
912
|
});
|
|
905
913
|
}
|
|
906
914
|
// @__NO_SIDE_EFFECTS__
|
|
907
|
-
function
|
|
908
|
-
const t = /* @__PURE__ */
|
|
909
|
-
return
|
|
915
|
+
function ut(e) {
|
|
916
|
+
const t = /* @__PURE__ */ hr(e);
|
|
917
|
+
return Hn(t), t;
|
|
910
918
|
}
|
|
911
|
-
function
|
|
919
|
+
function an(e) {
|
|
912
920
|
var t = e.effects;
|
|
913
921
|
if (t !== null) {
|
|
914
922
|
e.effects = null;
|
|
915
923
|
for (var r = 0; r < t.length; r += 1)
|
|
916
|
-
|
|
924
|
+
F(
|
|
917
925
|
/** @type {Effect} */
|
|
918
926
|
t[r]
|
|
919
927
|
);
|
|
920
928
|
}
|
|
921
929
|
}
|
|
922
|
-
function
|
|
930
|
+
function zi(e) {
|
|
923
931
|
for (var t = e.parent; t !== null; ) {
|
|
924
|
-
if (!(t.f &
|
|
925
|
-
return t.f &
|
|
932
|
+
if (!(t.f & O))
|
|
933
|
+
return t.f & ie ? null : (
|
|
926
934
|
/** @type {Effect} */
|
|
927
935
|
t
|
|
928
936
|
);
|
|
@@ -930,169 +938,169 @@ function $i(e) {
|
|
|
930
938
|
}
|
|
931
939
|
return null;
|
|
932
940
|
}
|
|
933
|
-
function
|
|
941
|
+
function cr(e) {
|
|
934
942
|
var t, r = g;
|
|
935
|
-
|
|
943
|
+
ee(zi(e));
|
|
936
944
|
try {
|
|
937
|
-
e.f &= ~we,
|
|
945
|
+
e.f &= ~we, an(e), t = Nn(e);
|
|
938
946
|
} finally {
|
|
939
|
-
|
|
947
|
+
ee(r);
|
|
940
948
|
}
|
|
941
949
|
return t;
|
|
942
950
|
}
|
|
943
|
-
function
|
|
944
|
-
var t =
|
|
945
|
-
if (!e.equals(t) && (e.wv =
|
|
946
|
-
|
|
951
|
+
function un(e) {
|
|
952
|
+
var t = cr(e);
|
|
953
|
+
if (!e.equals(t) && (e.wv = Bn(), (!S?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
|
|
954
|
+
P(e, I);
|
|
947
955
|
return;
|
|
948
956
|
}
|
|
949
|
-
|
|
957
|
+
_e || (z !== null ? (dr() || S?.is_fork) && z.set(e, t) : fr(e));
|
|
950
958
|
}
|
|
951
|
-
let
|
|
952
|
-
const
|
|
953
|
-
let
|
|
954
|
-
function
|
|
959
|
+
let Xt = /* @__PURE__ */ new Set();
|
|
960
|
+
const ve = /* @__PURE__ */ new Map();
|
|
961
|
+
let ln = !1;
|
|
962
|
+
function st(e, t) {
|
|
955
963
|
var r = {
|
|
956
964
|
f: 0,
|
|
957
965
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
958
966
|
v: e,
|
|
959
967
|
reactions: null,
|
|
960
|
-
equals:
|
|
968
|
+
equals: qr,
|
|
961
969
|
rv: 0,
|
|
962
970
|
wv: 0
|
|
963
971
|
};
|
|
964
972
|
return r;
|
|
965
973
|
}
|
|
966
974
|
// @__NO_SIDE_EFFECTS__
|
|
967
|
-
function
|
|
968
|
-
const r =
|
|
969
|
-
return
|
|
975
|
+
function M(e, t) {
|
|
976
|
+
const r = st(e);
|
|
977
|
+
return Hn(r), r;
|
|
970
978
|
}
|
|
971
979
|
// @__NO_SIDE_EFFECTS__
|
|
972
|
-
function
|
|
973
|
-
const n =
|
|
974
|
-
return t || (n.equals =
|
|
980
|
+
function fn(e, t = !1, r = !0) {
|
|
981
|
+
const n = st(e);
|
|
982
|
+
return t || (n.equals = Ci), n;
|
|
975
983
|
}
|
|
976
|
-
function
|
|
984
|
+
function B(e, t, r = !1) {
|
|
977
985
|
m !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
978
986
|
// to ensure we error if state is set inside an inspect effect
|
|
979
|
-
(!
|
|
980
|
-
let n = r ?
|
|
981
|
-
return
|
|
987
|
+
(!Z || m.f & gr) && Jr() && m.f & (O | ue | or | gr) && !se?.includes(e) && Ni();
|
|
988
|
+
let n = r ? qe(t) : t;
|
|
989
|
+
return gt(e, n);
|
|
982
990
|
}
|
|
983
|
-
function
|
|
991
|
+
function gt(e, t) {
|
|
984
992
|
if (!e.equals(t)) {
|
|
985
993
|
var r = e.v;
|
|
986
|
-
|
|
987
|
-
var n =
|
|
988
|
-
if (n.capture(e, r), e.f &
|
|
994
|
+
_e ? ve.set(e, t) : ve.set(e, r), e.v = t;
|
|
995
|
+
var n = q.ensure();
|
|
996
|
+
if (n.capture(e, r), e.f & O) {
|
|
989
997
|
const i = (
|
|
990
998
|
/** @type {Derived} */
|
|
991
999
|
e
|
|
992
1000
|
);
|
|
993
|
-
e.f &
|
|
1001
|
+
e.f & C && cr(i), fr(i);
|
|
994
1002
|
}
|
|
995
|
-
e.wv =
|
|
1003
|
+
e.wv = Bn(), hn(e, C), g !== null && g.f & I && !(g.f & (le | me)) && (j === null ? ls([e]) : j.push(e)), !n.is_fork && Xt.size > 0 && !ln && qi();
|
|
996
1004
|
}
|
|
997
1005
|
return t;
|
|
998
1006
|
}
|
|
999
|
-
function
|
|
1000
|
-
|
|
1007
|
+
function qi() {
|
|
1008
|
+
ln = !1;
|
|
1001
1009
|
var e = Ee;
|
|
1002
|
-
|
|
1003
|
-
const t = Array.from(
|
|
1010
|
+
yt(!0);
|
|
1011
|
+
const t = Array.from(Xt);
|
|
1004
1012
|
try {
|
|
1005
1013
|
for (const r of t)
|
|
1006
|
-
r.f & I &&
|
|
1014
|
+
r.f & I && P(r, fe), ot(r) && et(r);
|
|
1007
1015
|
} finally {
|
|
1008
|
-
|
|
1016
|
+
yt(e);
|
|
1009
1017
|
}
|
|
1010
|
-
|
|
1018
|
+
Xt.clear();
|
|
1011
1019
|
}
|
|
1012
|
-
function
|
|
1013
|
-
|
|
1020
|
+
function Ye(e) {
|
|
1021
|
+
B(e, e.v + 1);
|
|
1014
1022
|
}
|
|
1015
|
-
function
|
|
1023
|
+
function hn(e, t) {
|
|
1016
1024
|
var r = e.reactions;
|
|
1017
1025
|
if (r !== null)
|
|
1018
1026
|
for (var n = r.length, i = 0; i < n; i++) {
|
|
1019
|
-
var s = r[i], o = s.f, a = (o &
|
|
1020
|
-
if (a &&
|
|
1021
|
-
var
|
|
1027
|
+
var s = r[i], o = s.f, a = (o & C) === 0;
|
|
1028
|
+
if (a && P(s, t), o & O) {
|
|
1029
|
+
var u = (
|
|
1022
1030
|
/** @type {Derived} */
|
|
1023
1031
|
s
|
|
1024
1032
|
);
|
|
1025
|
-
|
|
1026
|
-
} else a && (o &
|
|
1033
|
+
z?.delete(u), o & we || (o & X && (s.f |= we), hn(u, fe));
|
|
1034
|
+
} else a && (o & ue && re !== null && re.add(
|
|
1027
1035
|
/** @type {Effect} */
|
|
1028
1036
|
s
|
|
1029
|
-
),
|
|
1037
|
+
), oe(
|
|
1030
1038
|
/** @type {Effect} */
|
|
1031
1039
|
s
|
|
1032
1040
|
));
|
|
1033
1041
|
}
|
|
1034
1042
|
}
|
|
1035
|
-
function
|
|
1036
|
-
if (typeof e != "object" || e === null ||
|
|
1043
|
+
function qe(e) {
|
|
1044
|
+
if (typeof e != "object" || e === null || Ct in e)
|
|
1037
1045
|
return e;
|
|
1038
|
-
const t =
|
|
1039
|
-
if (t !==
|
|
1046
|
+
const t = gi(e);
|
|
1047
|
+
if (t !== mi && t !== bi)
|
|
1040
1048
|
return e;
|
|
1041
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
1049
|
+
var r = /* @__PURE__ */ new Map(), n = pi(e), i = /* @__PURE__ */ M(0), s = xe, o = (a) => {
|
|
1042
1050
|
if (xe === s)
|
|
1043
1051
|
return a();
|
|
1044
|
-
var
|
|
1045
|
-
|
|
1052
|
+
var u = m, l = xe;
|
|
1053
|
+
D(null), Tr(s);
|
|
1046
1054
|
var f = a();
|
|
1047
|
-
return
|
|
1055
|
+
return D(u), Tr(l), f;
|
|
1048
1056
|
};
|
|
1049
|
-
return n && r.set("length", /* @__PURE__ */
|
|
1057
|
+
return n && r.set("length", /* @__PURE__ */ M(
|
|
1050
1058
|
/** @type {any[]} */
|
|
1051
1059
|
e.length
|
|
1052
1060
|
)), new Proxy(
|
|
1053
1061
|
/** @type {any} */
|
|
1054
1062
|
e,
|
|
1055
1063
|
{
|
|
1056
|
-
defineProperty(a,
|
|
1057
|
-
(!("value" in
|
|
1058
|
-
var f = r.get(
|
|
1064
|
+
defineProperty(a, u, l) {
|
|
1065
|
+
(!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && Bi();
|
|
1066
|
+
var f = r.get(u);
|
|
1059
1067
|
return f === void 0 ? f = o(() => {
|
|
1060
|
-
var c = /* @__PURE__ */
|
|
1061
|
-
return r.set(
|
|
1062
|
-
}) :
|
|
1068
|
+
var c = /* @__PURE__ */ M(l.value);
|
|
1069
|
+
return r.set(u, c), c;
|
|
1070
|
+
}) : B(f, l.value, !0), !0;
|
|
1063
1071
|
},
|
|
1064
|
-
deleteProperty(a,
|
|
1065
|
-
var
|
|
1066
|
-
if (
|
|
1067
|
-
if (
|
|
1068
|
-
const f = o(() => /* @__PURE__ */
|
|
1069
|
-
r.set(
|
|
1072
|
+
deleteProperty(a, u) {
|
|
1073
|
+
var l = r.get(u);
|
|
1074
|
+
if (l === void 0) {
|
|
1075
|
+
if (u in a) {
|
|
1076
|
+
const f = o(() => /* @__PURE__ */ M(N));
|
|
1077
|
+
r.set(u, f), Ye(i);
|
|
1070
1078
|
}
|
|
1071
1079
|
} else
|
|
1072
|
-
|
|
1080
|
+
B(l, N), Ye(i);
|
|
1073
1081
|
return !0;
|
|
1074
1082
|
},
|
|
1075
|
-
get(a,
|
|
1076
|
-
if (
|
|
1083
|
+
get(a, u, l) {
|
|
1084
|
+
if (u === Ct)
|
|
1077
1085
|
return e;
|
|
1078
|
-
var f = r.get(
|
|
1079
|
-
if (f === void 0 && (!c ||
|
|
1080
|
-
var d =
|
|
1086
|
+
var f = r.get(u), c = u in a;
|
|
1087
|
+
if (f === void 0 && (!c || Le(a, u)?.writable) && (f = o(() => {
|
|
1088
|
+
var d = qe(c ? a[u] : N), p = /* @__PURE__ */ M(d);
|
|
1081
1089
|
return p;
|
|
1082
|
-
}), r.set(
|
|
1090
|
+
}), r.set(u, f)), f !== void 0) {
|
|
1083
1091
|
var h = y(f);
|
|
1084
|
-
return h ===
|
|
1092
|
+
return h === N ? void 0 : h;
|
|
1085
1093
|
}
|
|
1086
|
-
return Reflect.get(a,
|
|
1094
|
+
return Reflect.get(a, u, l);
|
|
1087
1095
|
},
|
|
1088
|
-
getOwnPropertyDescriptor(a,
|
|
1089
|
-
var
|
|
1090
|
-
if (
|
|
1091
|
-
var f = r.get(
|
|
1092
|
-
f && (
|
|
1093
|
-
} else if (
|
|
1094
|
-
var c = r.get(
|
|
1095
|
-
if (c !== void 0 && h !==
|
|
1096
|
+
getOwnPropertyDescriptor(a, u) {
|
|
1097
|
+
var l = Reflect.getOwnPropertyDescriptor(a, u);
|
|
1098
|
+
if (l && "value" in l) {
|
|
1099
|
+
var f = r.get(u);
|
|
1100
|
+
f && (l.value = y(f));
|
|
1101
|
+
} else if (l === void 0) {
|
|
1102
|
+
var c = r.get(u), h = c?.v;
|
|
1103
|
+
if (c !== void 0 && h !== N)
|
|
1096
1104
|
return {
|
|
1097
1105
|
enumerable: !0,
|
|
1098
1106
|
configurable: !0,
|
|
@@ -1100,144 +1108,158 @@ function Ve(e) {
|
|
|
1100
1108
|
writable: !0
|
|
1101
1109
|
};
|
|
1102
1110
|
}
|
|
1103
|
-
return
|
|
1111
|
+
return l;
|
|
1104
1112
|
},
|
|
1105
|
-
has(a,
|
|
1106
|
-
if (
|
|
1113
|
+
has(a, u) {
|
|
1114
|
+
if (u === Ct)
|
|
1107
1115
|
return !0;
|
|
1108
|
-
var
|
|
1109
|
-
if (
|
|
1110
|
-
|
|
1111
|
-
var h = f ?
|
|
1116
|
+
var l = r.get(u), f = l !== void 0 && l.v !== N || Reflect.has(a, u);
|
|
1117
|
+
if (l !== void 0 || g !== null && (!f || Le(a, u)?.writable)) {
|
|
1118
|
+
l === void 0 && (l = o(() => {
|
|
1119
|
+
var h = f ? qe(a[u]) : N, d = /* @__PURE__ */ M(h);
|
|
1112
1120
|
return d;
|
|
1113
|
-
}), r.set(
|
|
1114
|
-
var c = y(
|
|
1115
|
-
if (c ===
|
|
1121
|
+
}), r.set(u, l));
|
|
1122
|
+
var c = y(l);
|
|
1123
|
+
if (c === N)
|
|
1116
1124
|
return !1;
|
|
1117
1125
|
}
|
|
1118
1126
|
return f;
|
|
1119
1127
|
},
|
|
1120
|
-
set(a,
|
|
1121
|
-
var c = r.get(
|
|
1122
|
-
if (n &&
|
|
1123
|
-
for (var d =
|
|
1128
|
+
set(a, u, l, f) {
|
|
1129
|
+
var c = r.get(u), h = u in a;
|
|
1130
|
+
if (n && u === "length")
|
|
1131
|
+
for (var d = l; d < /** @type {Source<number>} */
|
|
1124
1132
|
c.v; d += 1) {
|
|
1125
1133
|
var p = r.get(d + "");
|
|
1126
|
-
p !== void 0 ?
|
|
1134
|
+
p !== void 0 ? B(p, N) : d in a && (p = o(() => /* @__PURE__ */ M(N)), r.set(d + "", p));
|
|
1127
1135
|
}
|
|
1128
1136
|
if (c === void 0)
|
|
1129
|
-
(!h ||
|
|
1137
|
+
(!h || Le(a, u)?.writable) && (c = o(() => /* @__PURE__ */ M(void 0)), B(c, qe(l)), r.set(u, c));
|
|
1130
1138
|
else {
|
|
1131
|
-
h = c.v !==
|
|
1132
|
-
var v = o(() =>
|
|
1133
|
-
|
|
1139
|
+
h = c.v !== N;
|
|
1140
|
+
var v = o(() => qe(l));
|
|
1141
|
+
B(c, v);
|
|
1134
1142
|
}
|
|
1135
|
-
var
|
|
1136
|
-
if (
|
|
1137
|
-
if (n && typeof
|
|
1138
|
-
var
|
|
1143
|
+
var H = Reflect.getOwnPropertyDescriptor(a, u);
|
|
1144
|
+
if (H?.set && H.set.call(f, l), !h) {
|
|
1145
|
+
if (n && typeof u == "string") {
|
|
1146
|
+
var Q = (
|
|
1139
1147
|
/** @type {Source<number>} */
|
|
1140
1148
|
r.get("length")
|
|
1141
|
-
), G = Number(
|
|
1142
|
-
Number.isInteger(G) && G >=
|
|
1149
|
+
), G = Number(u);
|
|
1150
|
+
Number.isInteger(G) && G >= Q.v && B(Q, G + 1);
|
|
1143
1151
|
}
|
|
1144
|
-
|
|
1152
|
+
Ye(i);
|
|
1145
1153
|
}
|
|
1146
1154
|
return !0;
|
|
1147
1155
|
},
|
|
1148
1156
|
ownKeys(a) {
|
|
1149
1157
|
y(i);
|
|
1150
|
-
var
|
|
1158
|
+
var u = Reflect.ownKeys(a).filter((c) => {
|
|
1151
1159
|
var h = r.get(c);
|
|
1152
|
-
return h === void 0 || h.v !==
|
|
1160
|
+
return h === void 0 || h.v !== N;
|
|
1153
1161
|
});
|
|
1154
|
-
for (var [
|
|
1155
|
-
f.v !==
|
|
1156
|
-
return
|
|
1162
|
+
for (var [l, f] of r)
|
|
1163
|
+
f.v !== N && !(l in a) && u.push(l);
|
|
1164
|
+
return u;
|
|
1157
1165
|
},
|
|
1158
1166
|
setPrototypeOf() {
|
|
1159
|
-
|
|
1167
|
+
Pi();
|
|
1160
1168
|
}
|
|
1161
1169
|
}
|
|
1162
1170
|
);
|
|
1163
1171
|
}
|
|
1164
|
-
var
|
|
1165
|
-
function
|
|
1166
|
-
if (
|
|
1167
|
-
|
|
1172
|
+
var Er, cn, dn, pn;
|
|
1173
|
+
function Wt() {
|
|
1174
|
+
if (Er === void 0) {
|
|
1175
|
+
Er = window, cn = /Firefox/.test(navigator.userAgent);
|
|
1168
1176
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1169
|
-
|
|
1177
|
+
dn = Le(t, "firstChild").get, pn = Le(t, "nextSibling").get, br(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), br(r) && (r.__t = void 0);
|
|
1170
1178
|
}
|
|
1171
1179
|
}
|
|
1172
|
-
function
|
|
1180
|
+
function ae(e = "") {
|
|
1173
1181
|
return document.createTextNode(e);
|
|
1174
1182
|
}
|
|
1175
1183
|
// @__NO_SIDE_EFFECTS__
|
|
1176
|
-
function
|
|
1184
|
+
function Ke(e) {
|
|
1177
1185
|
return (
|
|
1178
1186
|
/** @type {TemplateNode | null} */
|
|
1179
|
-
|
|
1187
|
+
dn.call(e)
|
|
1180
1188
|
);
|
|
1181
1189
|
}
|
|
1182
1190
|
// @__NO_SIDE_EFFECTS__
|
|
1183
|
-
function
|
|
1191
|
+
function he(e) {
|
|
1184
1192
|
return (
|
|
1185
1193
|
/** @type {TemplateNode | null} */
|
|
1186
|
-
|
|
1194
|
+
pn.call(e)
|
|
1187
1195
|
);
|
|
1188
1196
|
}
|
|
1189
|
-
function
|
|
1190
|
-
if (!
|
|
1191
|
-
return /* @__PURE__ */
|
|
1192
|
-
var r = /* @__PURE__ */
|
|
1197
|
+
function We(e, t) {
|
|
1198
|
+
if (!A)
|
|
1199
|
+
return /* @__PURE__ */ Ke(e);
|
|
1200
|
+
var r = /* @__PURE__ */ Ke(E);
|
|
1193
1201
|
if (r === null)
|
|
1194
|
-
r =
|
|
1195
|
-
else if (t && r.nodeType !==
|
|
1196
|
-
var n =
|
|
1197
|
-
return r?.before(n),
|
|
1202
|
+
r = E.appendChild(ae());
|
|
1203
|
+
else if (t && r.nodeType !== ar) {
|
|
1204
|
+
var n = ae();
|
|
1205
|
+
return r?.before(n), Y(n), n;
|
|
1206
|
+
}
|
|
1207
|
+
return Y(r), r;
|
|
1208
|
+
}
|
|
1209
|
+
function Zi(e, t = !1) {
|
|
1210
|
+
if (!A) {
|
|
1211
|
+
var r = /* @__PURE__ */ Ke(e);
|
|
1212
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ he(r) : r;
|
|
1213
|
+
}
|
|
1214
|
+
if (t && E?.nodeType !== ar) {
|
|
1215
|
+
var n = ae();
|
|
1216
|
+
return E?.before(n), Y(n), n;
|
|
1198
1217
|
}
|
|
1199
|
-
return
|
|
1218
|
+
return E;
|
|
1200
1219
|
}
|
|
1201
|
-
function
|
|
1202
|
-
let n =
|
|
1220
|
+
function Yi(e, t = 1, r = !1) {
|
|
1221
|
+
let n = A ? E : e;
|
|
1203
1222
|
for (var i; t--; )
|
|
1204
1223
|
i = n, n = /** @type {TemplateNode} */
|
|
1205
|
-
/* @__PURE__ */
|
|
1206
|
-
if (!
|
|
1224
|
+
/* @__PURE__ */ he(n);
|
|
1225
|
+
if (!A)
|
|
1207
1226
|
return n;
|
|
1208
|
-
if (r && n?.nodeType !==
|
|
1209
|
-
var s =
|
|
1210
|
-
return n === null ? i?.after(s) : n.before(s),
|
|
1227
|
+
if (r && n?.nodeType !== ar) {
|
|
1228
|
+
var s = ae();
|
|
1229
|
+
return n === null ? i?.after(s) : n.before(s), Y(s), s;
|
|
1211
1230
|
}
|
|
1212
|
-
return
|
|
1231
|
+
return Y(n), n;
|
|
1213
1232
|
}
|
|
1214
|
-
function
|
|
1233
|
+
function Qi(e) {
|
|
1215
1234
|
e.textContent = "";
|
|
1216
1235
|
}
|
|
1217
|
-
function
|
|
1236
|
+
function Ji() {
|
|
1237
|
+
return !1;
|
|
1238
|
+
}
|
|
1239
|
+
function vn(e) {
|
|
1218
1240
|
var t = m, r = g;
|
|
1219
|
-
|
|
1241
|
+
D(null), ee(null);
|
|
1220
1242
|
try {
|
|
1221
1243
|
return e();
|
|
1222
1244
|
} finally {
|
|
1223
|
-
|
|
1245
|
+
D(t), ee(r);
|
|
1224
1246
|
}
|
|
1225
1247
|
}
|
|
1226
|
-
function
|
|
1227
|
-
g === null && (m === null &&
|
|
1248
|
+
function Ki(e) {
|
|
1249
|
+
g === null && (m === null && Si(), Ti()), _e && wi();
|
|
1228
1250
|
}
|
|
1229
|
-
function
|
|
1251
|
+
function es(e, t) {
|
|
1230
1252
|
var r = t.last;
|
|
1231
1253
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1232
1254
|
}
|
|
1233
|
-
function
|
|
1255
|
+
function te(e, t, r) {
|
|
1234
1256
|
var n = g;
|
|
1235
|
-
n !== null && n.f &
|
|
1257
|
+
n !== null && n.f & K && (e |= K);
|
|
1236
1258
|
var i = {
|
|
1237
|
-
ctx:
|
|
1259
|
+
ctx: W,
|
|
1238
1260
|
deps: null,
|
|
1239
1261
|
nodes: null,
|
|
1240
|
-
f: e |
|
|
1262
|
+
f: e | C | X,
|
|
1241
1263
|
first: null,
|
|
1242
1264
|
fn: t,
|
|
1243
1265
|
last: null,
|
|
@@ -1251,14 +1273,14 @@ function J(e, t, r) {
|
|
|
1251
1273
|
};
|
|
1252
1274
|
if (r)
|
|
1253
1275
|
try {
|
|
1254
|
-
|
|
1276
|
+
et(i), i.f |= Ht;
|
|
1255
1277
|
} catch (a) {
|
|
1256
|
-
throw
|
|
1278
|
+
throw F(i), a;
|
|
1257
1279
|
}
|
|
1258
|
-
else t !== null &&
|
|
1280
|
+
else t !== null && oe(i);
|
|
1259
1281
|
var s = i;
|
|
1260
1282
|
if (r && s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
|
|
1261
|
-
!(s.f & Se) && (s = s.first, e &
|
|
1283
|
+
!(s.f & Se) && (s = s.first, e & ue && e & Re && s !== null && (s.f |= Re)), s !== null && (s.parent = n, n !== null && es(s, n), m !== null && m.f & O && !(e & me))) {
|
|
1262
1284
|
var o = (
|
|
1263
1285
|
/** @type {Derived} */
|
|
1264
1286
|
m
|
|
@@ -1267,127 +1289,127 @@ function J(e, t, r) {
|
|
|
1267
1289
|
}
|
|
1268
1290
|
return i;
|
|
1269
1291
|
}
|
|
1270
|
-
function
|
|
1271
|
-
return m !== null && !
|
|
1292
|
+
function dr() {
|
|
1293
|
+
return m !== null && !Z;
|
|
1272
1294
|
}
|
|
1273
|
-
function
|
|
1274
|
-
const t =
|
|
1275
|
-
return
|
|
1295
|
+
function _n(e) {
|
|
1296
|
+
const t = te(St, null, !1);
|
|
1297
|
+
return P(t, I), t.teardown = e, t;
|
|
1276
1298
|
}
|
|
1277
|
-
function
|
|
1278
|
-
|
|
1299
|
+
function xr(e) {
|
|
1300
|
+
Ki();
|
|
1279
1301
|
var t = (
|
|
1280
1302
|
/** @type {Effect} */
|
|
1281
1303
|
g.f
|
|
1282
|
-
), r = !m && (t &
|
|
1304
|
+
), r = !m && (t & le) !== 0 && (t & Ht) === 0;
|
|
1283
1305
|
if (r) {
|
|
1284
1306
|
var n = (
|
|
1285
1307
|
/** @type {ComponentContext} */
|
|
1286
|
-
|
|
1308
|
+
W
|
|
1287
1309
|
);
|
|
1288
1310
|
(n.e ??= []).push(e);
|
|
1289
1311
|
} else
|
|
1290
|
-
return
|
|
1312
|
+
return mn(e);
|
|
1291
1313
|
}
|
|
1292
|
-
function
|
|
1293
|
-
return
|
|
1314
|
+
function mn(e) {
|
|
1315
|
+
return te(mt | yi, e, !1);
|
|
1294
1316
|
}
|
|
1295
|
-
function
|
|
1296
|
-
|
|
1297
|
-
const t =
|
|
1317
|
+
function ts(e) {
|
|
1318
|
+
q.ensure();
|
|
1319
|
+
const t = te(me | Se, e, !0);
|
|
1298
1320
|
return () => {
|
|
1299
|
-
|
|
1321
|
+
F(t);
|
|
1300
1322
|
};
|
|
1301
1323
|
}
|
|
1302
|
-
function
|
|
1303
|
-
|
|
1304
|
-
const t =
|
|
1324
|
+
function rs(e) {
|
|
1325
|
+
q.ensure();
|
|
1326
|
+
const t = te(me | Se, e, !0);
|
|
1305
1327
|
return (r = {}) => new Promise((n) => {
|
|
1306
|
-
r.outro ?
|
|
1307
|
-
|
|
1308
|
-
}) : (
|
|
1328
|
+
r.outro ? Qe(t, () => {
|
|
1329
|
+
F(t), n(void 0);
|
|
1330
|
+
}) : (F(t), n(void 0));
|
|
1309
1331
|
});
|
|
1310
1332
|
}
|
|
1311
|
-
function
|
|
1312
|
-
return
|
|
1333
|
+
function ns(e) {
|
|
1334
|
+
return te(mt, e, !1);
|
|
1313
1335
|
}
|
|
1314
|
-
function
|
|
1315
|
-
return
|
|
1336
|
+
function is(e) {
|
|
1337
|
+
return te(or | Se, e, !0);
|
|
1316
1338
|
}
|
|
1317
|
-
function
|
|
1318
|
-
return
|
|
1339
|
+
function bn(e, t = 0) {
|
|
1340
|
+
return te(St | t, e, !0);
|
|
1319
1341
|
}
|
|
1320
|
-
function
|
|
1321
|
-
|
|
1322
|
-
|
|
1342
|
+
function ss(e, t = [], r = [], n = []) {
|
|
1343
|
+
Vi(n, t, r, (i) => {
|
|
1344
|
+
te(St, () => e(...i.map(y)), !0);
|
|
1323
1345
|
});
|
|
1324
1346
|
}
|
|
1325
|
-
function
|
|
1326
|
-
var r =
|
|
1347
|
+
function gn(e, t = 0) {
|
|
1348
|
+
var r = te(ue | t, e, !0);
|
|
1327
1349
|
return r;
|
|
1328
1350
|
}
|
|
1329
|
-
function
|
|
1330
|
-
return
|
|
1351
|
+
function ne(e) {
|
|
1352
|
+
return te(le | Se, e, !0);
|
|
1331
1353
|
}
|
|
1332
|
-
function
|
|
1354
|
+
function yn(e) {
|
|
1333
1355
|
var t = e.teardown;
|
|
1334
1356
|
if (t !== null) {
|
|
1335
|
-
const r =
|
|
1336
|
-
|
|
1357
|
+
const r = _e, n = m;
|
|
1358
|
+
wr(!0), D(null);
|
|
1337
1359
|
try {
|
|
1338
1360
|
t.call(null);
|
|
1339
1361
|
} finally {
|
|
1340
|
-
|
|
1362
|
+
wr(r), D(n);
|
|
1341
1363
|
}
|
|
1342
1364
|
}
|
|
1343
1365
|
}
|
|
1344
|
-
function
|
|
1366
|
+
function En(e, t = !1) {
|
|
1345
1367
|
var r = e.first;
|
|
1346
1368
|
for (e.first = e.last = null; r !== null; ) {
|
|
1347
1369
|
const i = r.ac;
|
|
1348
|
-
i !== null &&
|
|
1370
|
+
i !== null && vn(() => {
|
|
1349
1371
|
i.abort(Pe);
|
|
1350
1372
|
});
|
|
1351
1373
|
var n = r.next;
|
|
1352
|
-
r.f &
|
|
1374
|
+
r.f & me ? r.parent = null : F(r, t), r = n;
|
|
1353
1375
|
}
|
|
1354
1376
|
}
|
|
1355
|
-
function
|
|
1377
|
+
function os(e) {
|
|
1356
1378
|
for (var t = e.first; t !== null; ) {
|
|
1357
1379
|
var r = t.next;
|
|
1358
|
-
t.f &
|
|
1380
|
+
t.f & le || F(t), t = r;
|
|
1359
1381
|
}
|
|
1360
1382
|
}
|
|
1361
|
-
function
|
|
1383
|
+
function F(e, t = !0) {
|
|
1362
1384
|
var r = !1;
|
|
1363
|
-
(t || e.f &
|
|
1385
|
+
(t || e.f & Wr) && e.nodes !== null && e.nodes.end !== null && (as(
|
|
1364
1386
|
e.nodes.start,
|
|
1365
1387
|
/** @type {TemplateNode} */
|
|
1366
1388
|
e.nodes.end
|
|
1367
|
-
), r = !0),
|
|
1389
|
+
), r = !0), En(e, t && !r), Et(e, 0), P(e, ie);
|
|
1368
1390
|
var n = e.nodes && e.nodes.t;
|
|
1369
1391
|
if (n !== null)
|
|
1370
1392
|
for (const s of n)
|
|
1371
1393
|
s.stop();
|
|
1372
|
-
|
|
1394
|
+
yn(e);
|
|
1373
1395
|
var i = e.parent;
|
|
1374
|
-
i !== null && i.first !== null &&
|
|
1396
|
+
i !== null && i.first !== null && xn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1375
1397
|
}
|
|
1376
|
-
function
|
|
1398
|
+
function as(e, t) {
|
|
1377
1399
|
for (; e !== null; ) {
|
|
1378
|
-
var r = e === t ? null : /* @__PURE__ */
|
|
1400
|
+
var r = e === t ? null : /* @__PURE__ */ he(e);
|
|
1379
1401
|
e.remove(), e = r;
|
|
1380
1402
|
}
|
|
1381
1403
|
}
|
|
1382
|
-
function
|
|
1404
|
+
function xn(e) {
|
|
1383
1405
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1384
1406
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1385
1407
|
}
|
|
1386
|
-
function
|
|
1408
|
+
function Qe(e, t, r = !0) {
|
|
1387
1409
|
var n = [];
|
|
1388
|
-
|
|
1410
|
+
wn(e, n, !0);
|
|
1389
1411
|
var i = () => {
|
|
1390
|
-
r &&
|
|
1412
|
+
r && F(e), t && t();
|
|
1391
1413
|
}, s = n.length;
|
|
1392
1414
|
if (s > 0) {
|
|
1393
1415
|
var o = () => --s || i();
|
|
@@ -1396,128 +1418,144 @@ function ot(e, t, r = !0) {
|
|
|
1396
1418
|
} else
|
|
1397
1419
|
i();
|
|
1398
1420
|
}
|
|
1399
|
-
function
|
|
1400
|
-
if (!(e.f &
|
|
1401
|
-
e.f ^=
|
|
1421
|
+
function wn(e, t, r) {
|
|
1422
|
+
if (!(e.f & K)) {
|
|
1423
|
+
e.f ^= K;
|
|
1402
1424
|
var n = e.nodes && e.nodes.t;
|
|
1403
1425
|
if (n !== null)
|
|
1404
1426
|
for (const a of n)
|
|
1405
1427
|
(a.is_global || r) && t.push(a);
|
|
1406
1428
|
for (var i = e.first; i !== null; ) {
|
|
1407
|
-
var s = i.next, o = (i.f &
|
|
1429
|
+
var s = i.next, o = (i.f & Re) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1408
1430
|
// it means the parent block effect was pruned. In that case,
|
|
1409
1431
|
// transparency information was transferred to the branch effect.
|
|
1410
|
-
(i.f &
|
|
1411
|
-
|
|
1432
|
+
(i.f & le) !== 0 && (e.f & ue) !== 0;
|
|
1433
|
+
wn(i, t, o ? r : !1), i = s;
|
|
1412
1434
|
}
|
|
1413
1435
|
}
|
|
1414
1436
|
}
|
|
1415
|
-
function
|
|
1437
|
+
function us(e) {
|
|
1438
|
+
Tn(e, !0);
|
|
1439
|
+
}
|
|
1440
|
+
function Tn(e, t) {
|
|
1441
|
+
if (e.f & K) {
|
|
1442
|
+
e.f ^= K, e.f & I || (P(e, C), oe(e));
|
|
1443
|
+
for (var r = e.first; r !== null; ) {
|
|
1444
|
+
var n = r.next, i = (r.f & Re) !== 0 || (r.f & le) !== 0;
|
|
1445
|
+
Tn(r, i ? t : !1), r = n;
|
|
1446
|
+
}
|
|
1447
|
+
var s = e.nodes && e.nodes.t;
|
|
1448
|
+
if (s !== null)
|
|
1449
|
+
for (const o of s)
|
|
1450
|
+
(o.is_global || t) && o.in();
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
function Sn(e, t) {
|
|
1416
1454
|
if (e.nodes)
|
|
1417
1455
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1418
|
-
var i = r === n ? null : /* @__PURE__ */
|
|
1456
|
+
var i = r === n ? null : /* @__PURE__ */ he(r);
|
|
1419
1457
|
t.append(r), r = i;
|
|
1420
1458
|
}
|
|
1421
1459
|
}
|
|
1422
1460
|
let Ee = !1;
|
|
1423
|
-
function
|
|
1461
|
+
function yt(e) {
|
|
1424
1462
|
Ee = e;
|
|
1425
1463
|
}
|
|
1426
|
-
let
|
|
1427
|
-
function
|
|
1428
|
-
|
|
1464
|
+
let _e = !1;
|
|
1465
|
+
function wr(e) {
|
|
1466
|
+
_e = e;
|
|
1429
1467
|
}
|
|
1430
|
-
let m = null,
|
|
1431
|
-
function
|
|
1468
|
+
let m = null, Z = !1;
|
|
1469
|
+
function D(e) {
|
|
1432
1470
|
m = e;
|
|
1433
1471
|
}
|
|
1434
1472
|
let g = null;
|
|
1435
|
-
function
|
|
1473
|
+
function ee(e) {
|
|
1436
1474
|
g = e;
|
|
1437
1475
|
}
|
|
1438
|
-
let
|
|
1439
|
-
function
|
|
1440
|
-
m !== null && (
|
|
1476
|
+
let se = null;
|
|
1477
|
+
function Hn(e) {
|
|
1478
|
+
m !== null && (se === null ? se = [e] : se.push(e));
|
|
1441
1479
|
}
|
|
1442
|
-
let
|
|
1443
|
-
function
|
|
1480
|
+
let $ = null, U = 0, j = null;
|
|
1481
|
+
function ls(e) {
|
|
1444
1482
|
j = e;
|
|
1445
1483
|
}
|
|
1446
|
-
let
|
|
1447
|
-
function
|
|
1484
|
+
let An = 1, ye = 0, xe = ye;
|
|
1485
|
+
function Tr(e) {
|
|
1448
1486
|
xe = e;
|
|
1449
1487
|
}
|
|
1450
|
-
function
|
|
1451
|
-
return ++
|
|
1488
|
+
function Bn() {
|
|
1489
|
+
return ++An;
|
|
1452
1490
|
}
|
|
1453
|
-
function
|
|
1491
|
+
function ot(e) {
|
|
1454
1492
|
var t = e.f;
|
|
1455
|
-
if (t &
|
|
1493
|
+
if (t & C)
|
|
1456
1494
|
return !0;
|
|
1457
|
-
if (t &
|
|
1495
|
+
if (t & O && (e.f &= ~we), t & fe) {
|
|
1458
1496
|
for (var r = (
|
|
1459
1497
|
/** @type {Value[]} */
|
|
1460
1498
|
e.deps
|
|
1461
1499
|
), n = r.length, i = 0; i < n; i++) {
|
|
1462
1500
|
var s = r[i];
|
|
1463
|
-
if (
|
|
1501
|
+
if (ot(
|
|
1464
1502
|
/** @type {Derived} */
|
|
1465
1503
|
s
|
|
1466
|
-
) &&
|
|
1504
|
+
) && un(
|
|
1467
1505
|
/** @type {Derived} */
|
|
1468
1506
|
s
|
|
1469
1507
|
), s.wv > e.wv)
|
|
1470
1508
|
return !0;
|
|
1471
1509
|
}
|
|
1472
|
-
t &
|
|
1510
|
+
t & X && // During time traveling we don't want to reset the status so that
|
|
1473
1511
|
// traversal of the graph in the other batches still happens
|
|
1474
|
-
|
|
1512
|
+
z === null && P(e, I);
|
|
1475
1513
|
}
|
|
1476
1514
|
return !1;
|
|
1477
1515
|
}
|
|
1478
|
-
function
|
|
1516
|
+
function Pn(e, t, r = !0) {
|
|
1479
1517
|
var n = e.reactions;
|
|
1480
|
-
if (n !== null && !
|
|
1518
|
+
if (n !== null && !se?.includes(e))
|
|
1481
1519
|
for (var i = 0; i < n.length; i++) {
|
|
1482
1520
|
var s = n[i];
|
|
1483
|
-
s.f &
|
|
1521
|
+
s.f & O ? Pn(
|
|
1484
1522
|
/** @type {Derived} */
|
|
1485
1523
|
s,
|
|
1486
1524
|
t,
|
|
1487
1525
|
!1
|
|
1488
|
-
) : t === s && (r ?
|
|
1526
|
+
) : t === s && (r ? P(s, C) : s.f & I && P(s, fe), oe(
|
|
1489
1527
|
/** @type {Effect} */
|
|
1490
1528
|
s
|
|
1491
1529
|
));
|
|
1492
1530
|
}
|
|
1493
1531
|
}
|
|
1494
|
-
function
|
|
1495
|
-
var t =
|
|
1496
|
-
|
|
1497
|
-
null, U = 0, j = null, m =
|
|
1532
|
+
function Nn(e) {
|
|
1533
|
+
var t = $, r = U, n = j, i = m, s = se, o = W, a = Z, u = xe, l = e.f;
|
|
1534
|
+
$ = /** @type {null | Value[]} */
|
|
1535
|
+
null, U = 0, j = null, m = l & (le | me) ? null : e, se = null, Ce(e.ctx), Z = !1, xe = ++ye, e.ac !== null && (vn(() => {
|
|
1498
1536
|
e.ac.abort(Pe);
|
|
1499
1537
|
}), e.ac = null);
|
|
1500
1538
|
try {
|
|
1501
|
-
e.f |=
|
|
1539
|
+
e.f |= jt;
|
|
1502
1540
|
var f = (
|
|
1503
1541
|
/** @type {Function} */
|
|
1504
1542
|
e.fn
|
|
1505
1543
|
), c = f(), h = e.deps;
|
|
1506
|
-
if (
|
|
1544
|
+
if ($ !== null) {
|
|
1507
1545
|
var d;
|
|
1508
|
-
if (
|
|
1509
|
-
for (h.length = U +
|
|
1510
|
-
h[U + d] =
|
|
1546
|
+
if (Et(e, U), h !== null && U > 0)
|
|
1547
|
+
for (h.length = U + $.length, d = 0; d < $.length; d++)
|
|
1548
|
+
h[U + d] = $[d];
|
|
1511
1549
|
else
|
|
1512
|
-
e.deps = h =
|
|
1513
|
-
if (
|
|
1550
|
+
e.deps = h = $;
|
|
1551
|
+
if (dr() && e.f & X)
|
|
1514
1552
|
for (d = U; d < h.length; d++)
|
|
1515
1553
|
(h[d].reactions ??= []).push(e);
|
|
1516
|
-
} else h !== null && U < h.length && (
|
|
1517
|
-
if (
|
|
1554
|
+
} else h !== null && U < h.length && (Et(e, U), h.length = U);
|
|
1555
|
+
if (Jr() && j !== null && !Z && h !== null && !(e.f & (O | fe | C)))
|
|
1518
1556
|
for (d = 0; d < /** @type {Source[]} */
|
|
1519
1557
|
j.length; d++)
|
|
1520
|
-
|
|
1558
|
+
Pn(
|
|
1521
1559
|
j[d],
|
|
1522
1560
|
/** @type {Effect} */
|
|
1523
1561
|
e
|
|
@@ -1532,67 +1570,67 @@ function wn(e) {
|
|
|
1532
1570
|
j !== null && (n === null ? n = j : n.push(.../** @type {Source[]} */
|
|
1533
1571
|
j));
|
|
1534
1572
|
}
|
|
1535
|
-
return e.f &
|
|
1573
|
+
return e.f & pe && (e.f ^= pe), c;
|
|
1536
1574
|
} catch (p) {
|
|
1537
|
-
return
|
|
1575
|
+
return en(p);
|
|
1538
1576
|
} finally {
|
|
1539
|
-
e.f ^=
|
|
1577
|
+
e.f ^= jt, $ = t, U = r, j = n, m = i, se = s, Ce(o), Z = a, xe = u;
|
|
1540
1578
|
}
|
|
1541
1579
|
}
|
|
1542
|
-
function
|
|
1580
|
+
function fs(e, t) {
|
|
1543
1581
|
let r = t.reactions;
|
|
1544
1582
|
if (r !== null) {
|
|
1545
|
-
var n =
|
|
1583
|
+
var n = vi.call(r, e);
|
|
1546
1584
|
if (n !== -1) {
|
|
1547
1585
|
var i = r.length - 1;
|
|
1548
1586
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1549
1587
|
}
|
|
1550
1588
|
}
|
|
1551
|
-
if (r === null && t.f &
|
|
1589
|
+
if (r === null && t.f & O && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1552
1590
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1553
1591
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1554
|
-
(
|
|
1592
|
+
($ === null || !$.includes(t))) {
|
|
1555
1593
|
var s = (
|
|
1556
1594
|
/** @type {Derived} */
|
|
1557
1595
|
t
|
|
1558
1596
|
);
|
|
1559
|
-
s.f &
|
|
1597
|
+
s.f & X && (s.f ^= X, s.f &= ~we), fr(s), an(s), Et(s, 0);
|
|
1560
1598
|
}
|
|
1561
1599
|
}
|
|
1562
|
-
function
|
|
1600
|
+
function Et(e, t) {
|
|
1563
1601
|
var r = e.deps;
|
|
1564
1602
|
if (r !== null)
|
|
1565
1603
|
for (var n = t; n < r.length; n++)
|
|
1566
|
-
|
|
1604
|
+
fs(e, r[n]);
|
|
1567
1605
|
}
|
|
1568
|
-
function
|
|
1606
|
+
function et(e) {
|
|
1569
1607
|
var t = e.f;
|
|
1570
|
-
if (!(t &
|
|
1571
|
-
|
|
1608
|
+
if (!(t & ie)) {
|
|
1609
|
+
P(e, I);
|
|
1572
1610
|
var r = g, n = Ee;
|
|
1573
1611
|
g = e, Ee = !0;
|
|
1574
1612
|
try {
|
|
1575
|
-
t & (
|
|
1576
|
-
var i =
|
|
1577
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1613
|
+
t & (ue | Xr) ? os(e) : En(e), yn(e);
|
|
1614
|
+
var i = Nn(e);
|
|
1615
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = An;
|
|
1578
1616
|
var s;
|
|
1579
|
-
|
|
1617
|
+
kt && Mi && e.f & C && e.deps;
|
|
1580
1618
|
} finally {
|
|
1581
1619
|
Ee = n, g = r;
|
|
1582
1620
|
}
|
|
1583
1621
|
}
|
|
1584
1622
|
}
|
|
1585
|
-
async function
|
|
1586
|
-
await Promise.resolve(),
|
|
1623
|
+
async function hs() {
|
|
1624
|
+
await Promise.resolve(), Oe();
|
|
1587
1625
|
}
|
|
1588
1626
|
function y(e) {
|
|
1589
|
-
var t = e.f, r = (t &
|
|
1590
|
-
if (m !== null && !
|
|
1591
|
-
var n = g !== null && (g.f &
|
|
1592
|
-
if (!n && !
|
|
1627
|
+
var t = e.f, r = (t & O) !== 0;
|
|
1628
|
+
if (m !== null && !Z) {
|
|
1629
|
+
var n = g !== null && (g.f & ie) !== 0;
|
|
1630
|
+
if (!n && !se?.includes(e)) {
|
|
1593
1631
|
var i = m.deps;
|
|
1594
|
-
if (m.f &
|
|
1595
|
-
e.rv < ye && (e.rv = ye,
|
|
1632
|
+
if (m.f & jt)
|
|
1633
|
+
e.rv < ye && (e.rv = ye, $ === null && i !== null && i[U] === e ? U++ : $ === null ? $ = [e] : $.push(e));
|
|
1596
1634
|
else {
|
|
1597
1635
|
(m.deps ??= []).push(e);
|
|
1598
1636
|
var s = e.reactions;
|
|
@@ -1600,58 +1638,58 @@ function y(e) {
|
|
|
1600
1638
|
}
|
|
1601
1639
|
}
|
|
1602
1640
|
}
|
|
1603
|
-
if (
|
|
1604
|
-
return
|
|
1641
|
+
if (_e && ve.has(e))
|
|
1642
|
+
return ve.get(e);
|
|
1605
1643
|
if (r) {
|
|
1606
1644
|
var o = (
|
|
1607
1645
|
/** @type {Derived} */
|
|
1608
1646
|
e
|
|
1609
1647
|
);
|
|
1610
|
-
if (
|
|
1648
|
+
if (_e) {
|
|
1611
1649
|
var a = o.v;
|
|
1612
|
-
return (!(o.f & I) && o.reactions !== null ||
|
|
1650
|
+
return (!(o.f & I) && o.reactions !== null || Ln(o)) && (a = cr(o)), ve.set(o, a), a;
|
|
1613
1651
|
}
|
|
1614
|
-
var
|
|
1615
|
-
|
|
1652
|
+
var u = (o.f & X) === 0 && !Z && m !== null && (Ee || (m.f & X) !== 0), l = o.deps === null;
|
|
1653
|
+
ot(o) && (u && (o.f |= X), un(o)), u && !l && On(o);
|
|
1616
1654
|
}
|
|
1617
|
-
if (
|
|
1618
|
-
return
|
|
1619
|
-
if (e.f &
|
|
1655
|
+
if (z?.has(e))
|
|
1656
|
+
return z.get(e);
|
|
1657
|
+
if (e.f & pe)
|
|
1620
1658
|
throw e.v;
|
|
1621
1659
|
return e.v;
|
|
1622
1660
|
}
|
|
1623
|
-
function
|
|
1661
|
+
function On(e) {
|
|
1624
1662
|
if (e.deps !== null) {
|
|
1625
|
-
e.f |=
|
|
1663
|
+
e.f |= X;
|
|
1626
1664
|
for (const t of e.deps)
|
|
1627
|
-
(t.reactions ??= []).push(e), t.f &
|
|
1665
|
+
(t.reactions ??= []).push(e), t.f & O && !(t.f & X) && On(
|
|
1628
1666
|
/** @type {Derived} */
|
|
1629
1667
|
t
|
|
1630
1668
|
);
|
|
1631
1669
|
}
|
|
1632
1670
|
}
|
|
1633
|
-
function
|
|
1634
|
-
if (e.v ===
|
|
1671
|
+
function Ln(e) {
|
|
1672
|
+
if (e.v === N) return !0;
|
|
1635
1673
|
if (e.deps === null) return !1;
|
|
1636
1674
|
for (const t of e.deps)
|
|
1637
|
-
if (
|
|
1675
|
+
if (ve.has(t) || t.f & O && Ln(
|
|
1638
1676
|
/** @type {Derived} */
|
|
1639
1677
|
t
|
|
1640
1678
|
))
|
|
1641
1679
|
return !0;
|
|
1642
1680
|
return !1;
|
|
1643
1681
|
}
|
|
1644
|
-
function
|
|
1645
|
-
var t =
|
|
1682
|
+
function In(e) {
|
|
1683
|
+
var t = Z;
|
|
1646
1684
|
try {
|
|
1647
|
-
return
|
|
1685
|
+
return Z = !0, e();
|
|
1648
1686
|
} finally {
|
|
1649
|
-
|
|
1687
|
+
Z = t;
|
|
1650
1688
|
}
|
|
1651
1689
|
}
|
|
1652
|
-
const
|
|
1653
|
-
let
|
|
1654
|
-
function
|
|
1690
|
+
const cs = /* @__PURE__ */ new Set(), Sr = /* @__PURE__ */ new Set();
|
|
1691
|
+
let Hr = null;
|
|
1692
|
+
function lt(e) {
|
|
1655
1693
|
var t = this, r = (
|
|
1656
1694
|
/** @type {Node} */
|
|
1657
1695
|
t.ownerDocument
|
|
@@ -1659,30 +1697,30 @@ function nt(e) {
|
|
|
1659
1697
|
/** @type {null | Element} */
|
|
1660
1698
|
i[0] || e.target
|
|
1661
1699
|
);
|
|
1662
|
-
|
|
1663
|
-
var o = 0, a =
|
|
1700
|
+
Hr = e;
|
|
1701
|
+
var o = 0, a = Hr === e && e.__root;
|
|
1664
1702
|
if (a) {
|
|
1665
|
-
var
|
|
1666
|
-
if (
|
|
1703
|
+
var u = i.indexOf(a);
|
|
1704
|
+
if (u !== -1 && (t === document || t === /** @type {any} */
|
|
1667
1705
|
window)) {
|
|
1668
1706
|
e.__root = t;
|
|
1669
1707
|
return;
|
|
1670
1708
|
}
|
|
1671
|
-
var
|
|
1672
|
-
if (
|
|
1709
|
+
var l = i.indexOf(t);
|
|
1710
|
+
if (l === -1)
|
|
1673
1711
|
return;
|
|
1674
|
-
|
|
1712
|
+
u <= l && (o = u);
|
|
1675
1713
|
}
|
|
1676
1714
|
if (s = /** @type {Element} */
|
|
1677
1715
|
i[o] || e.target, s !== t) {
|
|
1678
|
-
|
|
1716
|
+
Je(e, "currentTarget", {
|
|
1679
1717
|
configurable: !0,
|
|
1680
1718
|
get() {
|
|
1681
1719
|
return s || r;
|
|
1682
1720
|
}
|
|
1683
1721
|
});
|
|
1684
1722
|
var f = m, c = g;
|
|
1685
|
-
|
|
1723
|
+
D(null), ee(null);
|
|
1686
1724
|
try {
|
|
1687
1725
|
for (var h, d = []; s !== null; ) {
|
|
1688
1726
|
var p = s.assignedSlot || s.parentNode || /** @type {any} */
|
|
@@ -1693,30 +1731,30 @@ function nt(e) {
|
|
|
1693
1731
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1694
1732
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1695
1733
|
e.target === s) && v.call(s, e);
|
|
1696
|
-
} catch (
|
|
1697
|
-
h ? d.push(
|
|
1734
|
+
} catch (H) {
|
|
1735
|
+
h ? d.push(H) : h = H;
|
|
1698
1736
|
}
|
|
1699
1737
|
if (e.cancelBubble || p === t || p === null)
|
|
1700
1738
|
break;
|
|
1701
1739
|
s = p;
|
|
1702
1740
|
}
|
|
1703
1741
|
if (h) {
|
|
1704
|
-
for (let
|
|
1742
|
+
for (let H of d)
|
|
1705
1743
|
queueMicrotask(() => {
|
|
1706
|
-
throw
|
|
1744
|
+
throw H;
|
|
1707
1745
|
});
|
|
1708
1746
|
throw h;
|
|
1709
1747
|
}
|
|
1710
1748
|
} finally {
|
|
1711
|
-
e.__root = t, delete e.currentTarget,
|
|
1749
|
+
e.__root = t, delete e.currentTarget, D(f), ee(c);
|
|
1712
1750
|
}
|
|
1713
1751
|
}
|
|
1714
1752
|
}
|
|
1715
|
-
function
|
|
1753
|
+
function ds(e) {
|
|
1716
1754
|
var t = document.createElement("template");
|
|
1717
1755
|
return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content;
|
|
1718
1756
|
}
|
|
1719
|
-
function
|
|
1757
|
+
function tt(e, t) {
|
|
1720
1758
|
var r = (
|
|
1721
1759
|
/** @type {Effect} */
|
|
1722
1760
|
g
|
|
@@ -1724,27 +1762,33 @@ function kt(e, t) {
|
|
|
1724
1762
|
r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
|
|
1725
1763
|
}
|
|
1726
1764
|
// @__NO_SIDE_EFFECTS__
|
|
1727
|
-
function
|
|
1728
|
-
var r = (t &
|
|
1765
|
+
function Rn(e, t) {
|
|
1766
|
+
var r = (t & di) !== 0, n, i = !e.startsWith("<!>");
|
|
1729
1767
|
return () => {
|
|
1730
|
-
if (
|
|
1731
|
-
return
|
|
1732
|
-
n === void 0 && (n =
|
|
1733
|
-
/* @__PURE__ */
|
|
1768
|
+
if (A)
|
|
1769
|
+
return tt(E, null), E;
|
|
1770
|
+
n === void 0 && (n = ds(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
|
|
1771
|
+
/* @__PURE__ */ Ke(n));
|
|
1734
1772
|
var s = (
|
|
1735
1773
|
/** @type {TemplateNode} */
|
|
1736
|
-
r ||
|
|
1774
|
+
r || cn ? document.importNode(n, !0) : n.cloneNode(!0)
|
|
1737
1775
|
);
|
|
1738
|
-
return
|
|
1776
|
+
return tt(s, s), s;
|
|
1739
1777
|
};
|
|
1740
1778
|
}
|
|
1741
|
-
function
|
|
1742
|
-
if (
|
|
1779
|
+
function ps() {
|
|
1780
|
+
if (A)
|
|
1781
|
+
return tt(E, null), E;
|
|
1782
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = ae();
|
|
1783
|
+
return e.append(t, r), tt(t, r), e;
|
|
1784
|
+
}
|
|
1785
|
+
function ct(e, t) {
|
|
1786
|
+
if (A) {
|
|
1743
1787
|
var r = (
|
|
1744
1788
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1745
1789
|
g
|
|
1746
1790
|
);
|
|
1747
|
-
(!(r.f &
|
|
1791
|
+
(!(r.f & Ht) || r.nodes.end === null) && (r.nodes.end = E), ur();
|
|
1748
1792
|
return;
|
|
1749
1793
|
}
|
|
1750
1794
|
e !== null && e.before(
|
|
@@ -1752,61 +1796,61 @@ function An(e, t) {
|
|
|
1752
1796
|
t
|
|
1753
1797
|
);
|
|
1754
1798
|
}
|
|
1755
|
-
const
|
|
1756
|
-
function
|
|
1757
|
-
return
|
|
1799
|
+
const vs = ["touchstart", "touchmove"];
|
|
1800
|
+
function _s(e) {
|
|
1801
|
+
return vs.includes(e);
|
|
1758
1802
|
}
|
|
1759
|
-
function
|
|
1803
|
+
function Ar(e, t) {
|
|
1760
1804
|
var r = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1761
1805
|
r !== (e.__t ??= e.nodeValue) && (e.__t = r, e.nodeValue = r + "");
|
|
1762
1806
|
}
|
|
1763
|
-
function
|
|
1764
|
-
return
|
|
1807
|
+
function Cn(e, t) {
|
|
1808
|
+
return Mn(e, t);
|
|
1765
1809
|
}
|
|
1766
|
-
function
|
|
1767
|
-
|
|
1768
|
-
const r = t.target, n =
|
|
1810
|
+
function ms(e, t) {
|
|
1811
|
+
Wt(), t.intro = t.intro ?? !1;
|
|
1812
|
+
const r = t.target, n = A, i = E;
|
|
1769
1813
|
try {
|
|
1770
|
-
for (var s = /* @__PURE__ */
|
|
1771
|
-
s.data !==
|
|
1772
|
-
s = /* @__PURE__ */
|
|
1814
|
+
for (var s = /* @__PURE__ */ Ke(r); s && (s.nodeType !== it || /** @type {Comment} */
|
|
1815
|
+
s.data !== Gr); )
|
|
1816
|
+
s = /* @__PURE__ */ he(s);
|
|
1773
1817
|
if (!s)
|
|
1774
|
-
throw
|
|
1775
|
-
|
|
1818
|
+
throw Ie;
|
|
1819
|
+
Ne(!0), Y(
|
|
1776
1820
|
/** @type {Comment} */
|
|
1777
1821
|
s
|
|
1778
1822
|
);
|
|
1779
|
-
const o =
|
|
1780
|
-
return
|
|
1823
|
+
const o = Mn(e, { ...t, anchor: s });
|
|
1824
|
+
return Ne(!1), /** @type {Exports} */
|
|
1781
1825
|
o;
|
|
1782
1826
|
} catch (o) {
|
|
1783
1827
|
if (o instanceof Error && o.message.split(`
|
|
1784
1828
|
`).some((a) => a.startsWith("https://svelte.dev/e/")))
|
|
1785
1829
|
throw o;
|
|
1786
|
-
return o !==
|
|
1830
|
+
return o !== Ie && console.warn("Failed to hydrate: ", o), t.recover === !1 && Ai(), Wt(), Qi(r), Ne(!1), Cn(e, t);
|
|
1787
1831
|
} finally {
|
|
1788
|
-
|
|
1832
|
+
Ne(n), Y(i);
|
|
1789
1833
|
}
|
|
1790
1834
|
}
|
|
1791
1835
|
const Ae = /* @__PURE__ */ new Map();
|
|
1792
|
-
function
|
|
1793
|
-
|
|
1794
|
-
var a = /* @__PURE__ */ new Set(),
|
|
1836
|
+
function Mn(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: o = !0 }) {
|
|
1837
|
+
Wt();
|
|
1838
|
+
var a = /* @__PURE__ */ new Set(), u = (c) => {
|
|
1795
1839
|
for (var h = 0; h < c.length; h++) {
|
|
1796
1840
|
var d = c[h];
|
|
1797
1841
|
if (!a.has(d)) {
|
|
1798
1842
|
a.add(d);
|
|
1799
|
-
var p =
|
|
1800
|
-
t.addEventListener(d,
|
|
1843
|
+
var p = _s(d);
|
|
1844
|
+
t.addEventListener(d, lt, { passive: p });
|
|
1801
1845
|
var v = Ae.get(d);
|
|
1802
|
-
v === void 0 ? (document.addEventListener(d,
|
|
1846
|
+
v === void 0 ? (document.addEventListener(d, lt, { passive: p }), Ae.set(d, 1)) : Ae.set(d, v + 1);
|
|
1803
1847
|
}
|
|
1804
1848
|
}
|
|
1805
1849
|
};
|
|
1806
|
-
|
|
1807
|
-
var
|
|
1808
|
-
var c = r ?? t.appendChild(
|
|
1809
|
-
return
|
|
1850
|
+
u(_i(cs)), Sr.add(u);
|
|
1851
|
+
var l = void 0, f = rs(() => {
|
|
1852
|
+
var c = r ?? t.appendChild(ae());
|
|
1853
|
+
return ki(
|
|
1810
1854
|
/** @type {TemplateNode} */
|
|
1811
1855
|
c,
|
|
1812
1856
|
{
|
|
@@ -1815,43 +1859,184 @@ function Pn(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
1815
1859
|
},
|
|
1816
1860
|
(h) => {
|
|
1817
1861
|
if (s) {
|
|
1818
|
-
|
|
1862
|
+
Yr({});
|
|
1819
1863
|
var d = (
|
|
1820
1864
|
/** @type {ComponentContext} */
|
|
1821
|
-
|
|
1865
|
+
W
|
|
1822
1866
|
);
|
|
1823
1867
|
d.c = s;
|
|
1824
1868
|
}
|
|
1825
|
-
if (i && (n.$$events = i),
|
|
1869
|
+
if (i && (n.$$events = i), A && tt(
|
|
1826
1870
|
/** @type {TemplateNode} */
|
|
1827
1871
|
h,
|
|
1828
1872
|
null
|
|
1829
|
-
),
|
|
1830
|
-
|
|
1831
|
-
throw
|
|
1832
|
-
s &&
|
|
1873
|
+
), l = e(h, n) || {}, A && (g.nodes.end = E, E === null || E.nodeType !== it || /** @type {Comment} */
|
|
1874
|
+
E.data !== kr))
|
|
1875
|
+
throw At(), Ie;
|
|
1876
|
+
s && Qr();
|
|
1833
1877
|
}
|
|
1834
1878
|
), () => {
|
|
1835
1879
|
for (var h of a) {
|
|
1836
|
-
t.removeEventListener(h,
|
|
1880
|
+
t.removeEventListener(h, lt);
|
|
1837
1881
|
var d = (
|
|
1838
1882
|
/** @type {number} */
|
|
1839
1883
|
Ae.get(h)
|
|
1840
1884
|
);
|
|
1841
|
-
--d === 0 ? (document.removeEventListener(h,
|
|
1885
|
+
--d === 0 ? (document.removeEventListener(h, lt), Ae.delete(h)) : Ae.set(h, d);
|
|
1842
1886
|
}
|
|
1843
|
-
|
|
1887
|
+
Sr.delete(u), c !== r && c.parentNode?.removeChild(c);
|
|
1844
1888
|
};
|
|
1845
1889
|
});
|
|
1846
|
-
return
|
|
1890
|
+
return zt.set(l, f), l;
|
|
1847
1891
|
}
|
|
1848
|
-
let
|
|
1849
|
-
function
|
|
1850
|
-
const r =
|
|
1851
|
-
return r ? (
|
|
1892
|
+
let zt = /* @__PURE__ */ new WeakMap();
|
|
1893
|
+
function bs(e, t) {
|
|
1894
|
+
const r = zt.get(e);
|
|
1895
|
+
return r ? (zt.delete(e), r(t)) : Promise.resolve();
|
|
1852
1896
|
}
|
|
1853
|
-
|
|
1854
|
-
|
|
1897
|
+
class gs {
|
|
1898
|
+
/** @type {TemplateNode} */
|
|
1899
|
+
anchor;
|
|
1900
|
+
/** @type {Map<Batch, Key>} */
|
|
1901
|
+
#e = /* @__PURE__ */ new Map();
|
|
1902
|
+
/**
|
|
1903
|
+
* Map of keys to effects that are currently rendered in the DOM.
|
|
1904
|
+
* These effects are visible and actively part of the document tree.
|
|
1905
|
+
* Example:
|
|
1906
|
+
* ```
|
|
1907
|
+
* {#if condition}
|
|
1908
|
+
* foo
|
|
1909
|
+
* {:else}
|
|
1910
|
+
* bar
|
|
1911
|
+
* {/if}
|
|
1912
|
+
* ```
|
|
1913
|
+
* Can result in the entries `true->Effect` and `false->Effect`
|
|
1914
|
+
* @type {Map<Key, Effect>}
|
|
1915
|
+
*/
|
|
1916
|
+
#t = /* @__PURE__ */ new Map();
|
|
1917
|
+
/**
|
|
1918
|
+
* Similar to #onscreen with respect to the keys, but contains branches that are not yet
|
|
1919
|
+
* in the DOM, because their insertion is deferred.
|
|
1920
|
+
* @type {Map<Key, Branch>}
|
|
1921
|
+
*/
|
|
1922
|
+
#r = /* @__PURE__ */ new Map();
|
|
1923
|
+
/**
|
|
1924
|
+
* Keys of effects that are currently outroing
|
|
1925
|
+
* @type {Set<Key>}
|
|
1926
|
+
*/
|
|
1927
|
+
#s = /* @__PURE__ */ new Set();
|
|
1928
|
+
/**
|
|
1929
|
+
* Whether to pause (i.e. outro) on change, or destroy immediately.
|
|
1930
|
+
* This is necessary for `<svelte:element>`
|
|
1931
|
+
*/
|
|
1932
|
+
#o = !0;
|
|
1933
|
+
/**
|
|
1934
|
+
* @param {TemplateNode} anchor
|
|
1935
|
+
* @param {boolean} transition
|
|
1936
|
+
*/
|
|
1937
|
+
constructor(t, r = !0) {
|
|
1938
|
+
this.anchor = t, this.#o = r;
|
|
1939
|
+
}
|
|
1940
|
+
#i = () => {
|
|
1941
|
+
var t = (
|
|
1942
|
+
/** @type {Batch} */
|
|
1943
|
+
S
|
|
1944
|
+
);
|
|
1945
|
+
if (this.#e.has(t)) {
|
|
1946
|
+
var r = (
|
|
1947
|
+
/** @type {Key} */
|
|
1948
|
+
this.#e.get(t)
|
|
1949
|
+
), n = this.#t.get(r);
|
|
1950
|
+
if (n)
|
|
1951
|
+
us(n), this.#s.delete(r);
|
|
1952
|
+
else {
|
|
1953
|
+
var i = this.#r.get(r);
|
|
1954
|
+
i && (this.#t.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
|
|
1955
|
+
}
|
|
1956
|
+
for (const [s, o] of this.#e) {
|
|
1957
|
+
if (this.#e.delete(s), s === t)
|
|
1958
|
+
break;
|
|
1959
|
+
const a = this.#r.get(o);
|
|
1960
|
+
a && (F(a.effect), this.#r.delete(o));
|
|
1961
|
+
}
|
|
1962
|
+
for (const [s, o] of this.#t) {
|
|
1963
|
+
if (s === r || this.#s.has(s)) continue;
|
|
1964
|
+
const a = () => {
|
|
1965
|
+
if (Array.from(this.#e.values()).includes(s)) {
|
|
1966
|
+
var l = document.createDocumentFragment();
|
|
1967
|
+
Sn(o, l), l.append(ae()), this.#r.set(s, { effect: o, fragment: l });
|
|
1968
|
+
} else
|
|
1969
|
+
F(o);
|
|
1970
|
+
this.#s.delete(s), this.#t.delete(s);
|
|
1971
|
+
};
|
|
1972
|
+
this.#o || !n ? (this.#s.add(s), Qe(o, a, !1)) : a();
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
};
|
|
1976
|
+
/**
|
|
1977
|
+
* @param {Batch} batch
|
|
1978
|
+
*/
|
|
1979
|
+
#n = (t) => {
|
|
1980
|
+
this.#e.delete(t);
|
|
1981
|
+
const r = Array.from(this.#e.values());
|
|
1982
|
+
for (const [n, i] of this.#r)
|
|
1983
|
+
r.includes(n) || (F(i.effect), this.#r.delete(n));
|
|
1984
|
+
};
|
|
1985
|
+
/**
|
|
1986
|
+
*
|
|
1987
|
+
* @param {any} key
|
|
1988
|
+
* @param {null | ((target: TemplateNode) => void)} fn
|
|
1989
|
+
*/
|
|
1990
|
+
ensure(t, r) {
|
|
1991
|
+
var n = (
|
|
1992
|
+
/** @type {Batch} */
|
|
1993
|
+
S
|
|
1994
|
+
), i = Ji();
|
|
1995
|
+
if (r && !this.#t.has(t) && !this.#r.has(t))
|
|
1996
|
+
if (i) {
|
|
1997
|
+
var s = document.createDocumentFragment(), o = ae();
|
|
1998
|
+
s.append(o), this.#r.set(t, {
|
|
1999
|
+
effect: ne(() => r(o)),
|
|
2000
|
+
fragment: s
|
|
2001
|
+
});
|
|
2002
|
+
} else
|
|
2003
|
+
this.#t.set(
|
|
2004
|
+
t,
|
|
2005
|
+
ne(() => r(this.anchor))
|
|
2006
|
+
);
|
|
2007
|
+
if (this.#e.set(n, t), i) {
|
|
2008
|
+
for (const [a, u] of this.#t)
|
|
2009
|
+
a === t ? n.skipped_effects.delete(u) : n.skipped_effects.add(u);
|
|
2010
|
+
for (const [a, u] of this.#r)
|
|
2011
|
+
a === t ? n.skipped_effects.delete(u.effect) : n.skipped_effects.add(u.effect);
|
|
2012
|
+
n.oncommit(this.#i), n.ondiscard(this.#n);
|
|
2013
|
+
} else
|
|
2014
|
+
A && (this.anchor = E), this.#i();
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
function ys(e, t, r = !1) {
|
|
2018
|
+
A && ur();
|
|
2019
|
+
var n = new gs(e), i = r ? Re : 0;
|
|
2020
|
+
function s(o, a) {
|
|
2021
|
+
if (A) {
|
|
2022
|
+
const l = Ri(e) === ir;
|
|
2023
|
+
if (o === l) {
|
|
2024
|
+
var u = zr();
|
|
2025
|
+
Y(u), n.anchor = u, Ne(!1), n.ensure(o, a), Ne(!0);
|
|
2026
|
+
return;
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
n.ensure(o, a);
|
|
2030
|
+
}
|
|
2031
|
+
gn(() => {
|
|
2032
|
+
var o = !1;
|
|
2033
|
+
t((a, u = !0) => {
|
|
2034
|
+
o = !0, s(u, a);
|
|
2035
|
+
}), o || s(!1, null);
|
|
2036
|
+
}, i);
|
|
2037
|
+
}
|
|
2038
|
+
function Es(e, t) {
|
|
2039
|
+
ns(() => {
|
|
1855
2040
|
var r = e.getRootNode(), n = (
|
|
1856
2041
|
/** @type {ShadowRoot} */
|
|
1857
2042
|
r.host ? (
|
|
@@ -1869,10 +2054,10 @@ function as(e, t) {
|
|
|
1869
2054
|
}
|
|
1870
2055
|
});
|
|
1871
2056
|
}
|
|
1872
|
-
function
|
|
2057
|
+
function pr(e, t, r) {
|
|
1873
2058
|
if (e == null)
|
|
1874
|
-
return t(void 0), r && r(void 0),
|
|
1875
|
-
const n =
|
|
2059
|
+
return t(void 0), r && r(void 0), de;
|
|
2060
|
+
const n = In(
|
|
1876
2061
|
() => e.subscribe(
|
|
1877
2062
|
t,
|
|
1878
2063
|
// @ts-expect-error
|
|
@@ -1882,22 +2067,22 @@ function lr(e, t, r) {
|
|
|
1882
2067
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
1883
2068
|
}
|
|
1884
2069
|
const Be = [];
|
|
1885
|
-
function
|
|
2070
|
+
function xs(e, t) {
|
|
1886
2071
|
return {
|
|
1887
|
-
subscribe:
|
|
2072
|
+
subscribe: Pt(e, t).subscribe
|
|
1888
2073
|
};
|
|
1889
2074
|
}
|
|
1890
|
-
function
|
|
2075
|
+
function Pt(e, t = de) {
|
|
1891
2076
|
let r = null;
|
|
1892
2077
|
const n = /* @__PURE__ */ new Set();
|
|
1893
2078
|
function i(a) {
|
|
1894
|
-
if (
|
|
1895
|
-
const
|
|
1896
|
-
for (const
|
|
1897
|
-
|
|
1898
|
-
if (
|
|
1899
|
-
for (let
|
|
1900
|
-
Be[
|
|
2079
|
+
if (Zr(e, a) && (e = a, r)) {
|
|
2080
|
+
const u = !Be.length;
|
|
2081
|
+
for (const l of n)
|
|
2082
|
+
l[1](), Be.push(l, e);
|
|
2083
|
+
if (u) {
|
|
2084
|
+
for (let l = 0; l < Be.length; l += 2)
|
|
2085
|
+
Be[l][0](Be[l + 1]);
|
|
1901
2086
|
Be.length = 0;
|
|
1902
2087
|
}
|
|
1903
2088
|
}
|
|
@@ -1908,77 +2093,77 @@ function St(e, t = ae) {
|
|
|
1908
2093
|
e
|
|
1909
2094
|
));
|
|
1910
2095
|
}
|
|
1911
|
-
function o(a,
|
|
1912
|
-
const
|
|
1913
|
-
return n.add(
|
|
2096
|
+
function o(a, u = de) {
|
|
2097
|
+
const l = [a, u];
|
|
2098
|
+
return n.add(l), n.size === 1 && (r = t(i, s) || de), a(
|
|
1914
2099
|
/** @type {T} */
|
|
1915
2100
|
e
|
|
1916
2101
|
), () => {
|
|
1917
|
-
n.delete(
|
|
2102
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1918
2103
|
};
|
|
1919
2104
|
}
|
|
1920
2105
|
return { set: i, update: s, subscribe: o };
|
|
1921
2106
|
}
|
|
1922
|
-
function
|
|
2107
|
+
function Ge(e, t, r) {
|
|
1923
2108
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1924
2109
|
if (!i.every(Boolean))
|
|
1925
2110
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1926
2111
|
const s = t.length < 2;
|
|
1927
|
-
return
|
|
1928
|
-
let
|
|
1929
|
-
const
|
|
1930
|
-
let f = 0, c =
|
|
2112
|
+
return xs(r, (o, a) => {
|
|
2113
|
+
let u = !1;
|
|
2114
|
+
const l = [];
|
|
2115
|
+
let f = 0, c = de;
|
|
1931
2116
|
const h = () => {
|
|
1932
2117
|
if (f)
|
|
1933
2118
|
return;
|
|
1934
2119
|
c();
|
|
1935
|
-
const p = t(n ?
|
|
1936
|
-
s ? o(p) : c = typeof p == "function" ? p :
|
|
2120
|
+
const p = t(n ? l[0] : l, o, a);
|
|
2121
|
+
s ? o(p) : c = typeof p == "function" ? p : de;
|
|
1937
2122
|
}, d = i.map(
|
|
1938
|
-
(p, v) =>
|
|
2123
|
+
(p, v) => pr(
|
|
1939
2124
|
p,
|
|
1940
|
-
(
|
|
1941
|
-
|
|
2125
|
+
(H) => {
|
|
2126
|
+
l[v] = H, f &= ~(1 << v), u && h();
|
|
1942
2127
|
},
|
|
1943
2128
|
() => {
|
|
1944
2129
|
f |= 1 << v;
|
|
1945
2130
|
}
|
|
1946
2131
|
)
|
|
1947
2132
|
);
|
|
1948
|
-
return
|
|
1949
|
-
|
|
2133
|
+
return u = !0, h(), function() {
|
|
2134
|
+
jr(d), c(), u = !1;
|
|
1950
2135
|
};
|
|
1951
2136
|
});
|
|
1952
2137
|
}
|
|
1953
|
-
function
|
|
2138
|
+
function ws(e) {
|
|
1954
2139
|
let t;
|
|
1955
|
-
return
|
|
2140
|
+
return pr(e, (r) => t = r)(), t;
|
|
1956
2141
|
}
|
|
1957
|
-
let
|
|
1958
|
-
function
|
|
2142
|
+
let qt = Symbol();
|
|
2143
|
+
function Ts(e, t, r) {
|
|
1959
2144
|
const n = r[t] ??= {
|
|
1960
2145
|
store: null,
|
|
1961
|
-
source: /* @__PURE__ */
|
|
1962
|
-
unsubscribe:
|
|
2146
|
+
source: /* @__PURE__ */ fn(void 0),
|
|
2147
|
+
unsubscribe: de
|
|
1963
2148
|
};
|
|
1964
|
-
if (n.store !== e && !(
|
|
2149
|
+
if (n.store !== e && !(qt in r))
|
|
1965
2150
|
if (n.unsubscribe(), n.store = e ?? null, e == null)
|
|
1966
|
-
n.source.v = void 0, n.unsubscribe =
|
|
2151
|
+
n.source.v = void 0, n.unsubscribe = de;
|
|
1967
2152
|
else {
|
|
1968
2153
|
var i = !0;
|
|
1969
|
-
n.unsubscribe =
|
|
1970
|
-
i ? n.source.v = s :
|
|
2154
|
+
n.unsubscribe = pr(e, (s) => {
|
|
2155
|
+
i ? n.source.v = s : B(n.source, s);
|
|
1971
2156
|
}), i = !1;
|
|
1972
2157
|
}
|
|
1973
|
-
return e &&
|
|
2158
|
+
return e && qt in r ? ws(e) : y(n.source);
|
|
1974
2159
|
}
|
|
1975
|
-
function
|
|
2160
|
+
function Ss() {
|
|
1976
2161
|
const e = {};
|
|
1977
2162
|
function t() {
|
|
1978
|
-
|
|
2163
|
+
_n(() => {
|
|
1979
2164
|
for (var r in e)
|
|
1980
2165
|
e[r].unsubscribe();
|
|
1981
|
-
|
|
2166
|
+
Je(e, qt, {
|
|
1982
2167
|
enumerable: !1,
|
|
1983
2168
|
value: !0
|
|
1984
2169
|
});
|
|
@@ -1986,7 +2171,7 @@ function hs() {
|
|
|
1986
2171
|
}
|
|
1987
2172
|
return [e, t];
|
|
1988
2173
|
}
|
|
1989
|
-
function
|
|
2174
|
+
function ft(e, t, r, n) {
|
|
1990
2175
|
var i = (
|
|
1991
2176
|
/** @type {V} */
|
|
1992
2177
|
n
|
|
@@ -1994,15 +2179,15 @@ function it(e, t, r, n) {
|
|
|
1994
2179
|
n), i), a;
|
|
1995
2180
|
a = /** @type {V} */
|
|
1996
2181
|
e[t], a === void 0 && n !== void 0 && (a = o());
|
|
1997
|
-
var
|
|
1998
|
-
|
|
2182
|
+
var u;
|
|
2183
|
+
u = () => {
|
|
1999
2184
|
var h = (
|
|
2000
2185
|
/** @type {V} */
|
|
2001
2186
|
e[t]
|
|
2002
2187
|
);
|
|
2003
2188
|
return h === void 0 ? o() : (s = !0, h);
|
|
2004
2189
|
};
|
|
2005
|
-
var
|
|
2190
|
+
var l = !1, f = /* @__PURE__ */ hr(() => (l = !1, u())), c = (
|
|
2006
2191
|
/** @type {Effect} */
|
|
2007
2192
|
g
|
|
2008
2193
|
);
|
|
@@ -2011,16 +2196,16 @@ function it(e, t, r, n) {
|
|
|
2011
2196
|
function(h, d) {
|
|
2012
2197
|
if (arguments.length > 0) {
|
|
2013
2198
|
const p = d ? y(f) : h;
|
|
2014
|
-
return
|
|
2199
|
+
return B(f, p), l = !0, i !== void 0 && (i = p), h;
|
|
2015
2200
|
}
|
|
2016
|
-
return
|
|
2201
|
+
return _e && l || c.f & ie ? f.v : y(f);
|
|
2017
2202
|
}
|
|
2018
2203
|
);
|
|
2019
2204
|
}
|
|
2020
|
-
function
|
|
2021
|
-
return new
|
|
2205
|
+
function Hs(e) {
|
|
2206
|
+
return new As(e);
|
|
2022
2207
|
}
|
|
2023
|
-
class
|
|
2208
|
+
class As {
|
|
2024
2209
|
/** @type {any} */
|
|
2025
2210
|
#e;
|
|
2026
2211
|
/** @type {Record<string, any>} */
|
|
@@ -2032,7 +2217,7 @@ class ds {
|
|
|
2032
2217
|
*/
|
|
2033
2218
|
constructor(t) {
|
|
2034
2219
|
var r = /* @__PURE__ */ new Map(), n = (s, o) => {
|
|
2035
|
-
var a = /* @__PURE__ */
|
|
2220
|
+
var a = /* @__PURE__ */ fn(o, !1, !1);
|
|
2036
2221
|
return r.set(s, a), a;
|
|
2037
2222
|
};
|
|
2038
2223
|
const i = new Proxy(
|
|
@@ -2042,23 +2227,23 @@ class ds {
|
|
|
2042
2227
|
return y(r.get(o) ?? n(o, Reflect.get(s, o)));
|
|
2043
2228
|
},
|
|
2044
2229
|
has(s, o) {
|
|
2045
|
-
return o ===
|
|
2230
|
+
return o === Ei ? !0 : (y(r.get(o) ?? n(o, Reflect.get(s, o))), Reflect.has(s, o));
|
|
2046
2231
|
},
|
|
2047
2232
|
set(s, o, a) {
|
|
2048
|
-
return
|
|
2233
|
+
return B(r.get(o) ?? n(o, a), a), Reflect.set(s, o, a);
|
|
2049
2234
|
}
|
|
2050
2235
|
}
|
|
2051
2236
|
);
|
|
2052
|
-
this.#t = (t.hydrate ?
|
|
2237
|
+
this.#t = (t.hydrate ? ms : Cn)(t.component, {
|
|
2053
2238
|
target: t.target,
|
|
2054
2239
|
anchor: t.anchor,
|
|
2055
2240
|
props: i,
|
|
2056
2241
|
context: t.context,
|
|
2057
2242
|
intro: t.intro ?? !1,
|
|
2058
2243
|
recover: t.recover
|
|
2059
|
-
}), (!t?.props?.$$host || t.sync === !1) &&
|
|
2244
|
+
}), (!t?.props?.$$host || t.sync === !1) && Oe(), this.#e = i.$$events;
|
|
2060
2245
|
for (const s of Object.keys(this.#t))
|
|
2061
|
-
s === "$set" || s === "$destroy" || s === "$on" ||
|
|
2246
|
+
s === "$set" || s === "$destroy" || s === "$on" || Je(this, s, {
|
|
2062
2247
|
get() {
|
|
2063
2248
|
return this.#t[s];
|
|
2064
2249
|
},
|
|
@@ -2072,7 +2257,7 @@ class ds {
|
|
|
2072
2257
|
(s) => {
|
|
2073
2258
|
Object.assign(i, s);
|
|
2074
2259
|
}, this.#t.$destroy = () => {
|
|
2075
|
-
|
|
2260
|
+
bs(this.#t);
|
|
2076
2261
|
};
|
|
2077
2262
|
}
|
|
2078
2263
|
/** @param {Record<string, any>} props */
|
|
@@ -2098,8 +2283,8 @@ class ds {
|
|
|
2098
2283
|
this.#t.$destroy();
|
|
2099
2284
|
}
|
|
2100
2285
|
}
|
|
2101
|
-
let
|
|
2102
|
-
typeof HTMLElement == "function" && (
|
|
2286
|
+
let $n;
|
|
2287
|
+
typeof HTMLElement == "function" && ($n = class extends HTMLElement {
|
|
2103
2288
|
/** The Svelte component constructor */
|
|
2104
2289
|
$$ctor;
|
|
2105
2290
|
/** Slots */
|
|
@@ -2156,21 +2341,21 @@ typeof HTMLElement == "function" && (Nn = class extends HTMLElement {
|
|
|
2156
2341
|
let e = function(n) {
|
|
2157
2342
|
return (i) => {
|
|
2158
2343
|
const s = document.createElement("slot");
|
|
2159
|
-
n !== "default" && (s.name = n),
|
|
2344
|
+
n !== "default" && (s.name = n), ct(i, s);
|
|
2160
2345
|
};
|
|
2161
2346
|
};
|
|
2162
2347
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
2163
2348
|
return;
|
|
2164
|
-
const t = {}, r =
|
|
2349
|
+
const t = {}, r = Bs(this);
|
|
2165
2350
|
for (const n of this.$$s)
|
|
2166
2351
|
n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2167
2352
|
for (const n of this.attributes) {
|
|
2168
2353
|
const i = this.$$g_p(n.name);
|
|
2169
|
-
i in this.$$d || (this.$$d[i] =
|
|
2354
|
+
i in this.$$d || (this.$$d[i] = dt(i, n.value, this.$$p_d, "toProp"));
|
|
2170
2355
|
}
|
|
2171
2356
|
for (const n in this.$$p_d)
|
|
2172
2357
|
!(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2173
|
-
this.$$c =
|
|
2358
|
+
this.$$c = Hs({
|
|
2174
2359
|
component: this.$$ctor,
|
|
2175
2360
|
target: this.shadowRoot || this,
|
|
2176
2361
|
props: {
|
|
@@ -2178,13 +2363,13 @@ typeof HTMLElement == "function" && (Nn = class extends HTMLElement {
|
|
|
2178
2363
|
$$slots: t,
|
|
2179
2364
|
$$host: this
|
|
2180
2365
|
}
|
|
2181
|
-
}), this.$$me =
|
|
2182
|
-
|
|
2366
|
+
}), this.$$me = ts(() => {
|
|
2367
|
+
bn(() => {
|
|
2183
2368
|
this.$$r = !0;
|
|
2184
|
-
for (const n of
|
|
2369
|
+
for (const n of _t(this.$$c)) {
|
|
2185
2370
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
2186
2371
|
this.$$d[n] = this.$$c[n];
|
|
2187
|
-
const i =
|
|
2372
|
+
const i = dt(
|
|
2188
2373
|
n,
|
|
2189
2374
|
this.$$d[n],
|
|
2190
2375
|
this.$$p_d,
|
|
@@ -2211,7 +2396,7 @@ typeof HTMLElement == "function" && (Nn = class extends HTMLElement {
|
|
|
2211
2396
|
* @param {string} newValue
|
|
2212
2397
|
*/
|
|
2213
2398
|
attributeChangedCallback(e, t, r) {
|
|
2214
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2399
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = dt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2215
2400
|
}
|
|
2216
2401
|
disconnectedCallback() {
|
|
2217
2402
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2222,12 +2407,12 @@ typeof HTMLElement == "function" && (Nn = class extends HTMLElement {
|
|
|
2222
2407
|
* @param {string} attribute_name
|
|
2223
2408
|
*/
|
|
2224
2409
|
$$g_p(e) {
|
|
2225
|
-
return
|
|
2410
|
+
return _t(this.$$p_d).find(
|
|
2226
2411
|
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
2227
2412
|
) || e;
|
|
2228
2413
|
}
|
|
2229
2414
|
});
|
|
2230
|
-
function
|
|
2415
|
+
function dt(e, t, r, n) {
|
|
2231
2416
|
const i = r[e]?.type;
|
|
2232
2417
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
2233
2418
|
return t;
|
|
@@ -2256,7 +2441,7 @@ function at(e, t, r, n) {
|
|
|
2256
2441
|
return t;
|
|
2257
2442
|
}
|
|
2258
2443
|
}
|
|
2259
|
-
function
|
|
2444
|
+
function Bs(e) {
|
|
2260
2445
|
const t = {};
|
|
2261
2446
|
return e.childNodes.forEach((r) => {
|
|
2262
2447
|
t[
|
|
@@ -2265,33 +2450,33 @@ function ps(e) {
|
|
|
2265
2450
|
] = !0;
|
|
2266
2451
|
}), t;
|
|
2267
2452
|
}
|
|
2268
|
-
function
|
|
2269
|
-
let o = class extends
|
|
2453
|
+
function Ps(e, t, r, n, i, s) {
|
|
2454
|
+
let o = class extends $n {
|
|
2270
2455
|
constructor() {
|
|
2271
2456
|
super(e, r, i), this.$$p_d = t;
|
|
2272
2457
|
}
|
|
2273
2458
|
static get observedAttributes() {
|
|
2274
|
-
return
|
|
2459
|
+
return _t(t).map(
|
|
2275
2460
|
(a) => (t[a].attribute || a).toLowerCase()
|
|
2276
2461
|
);
|
|
2277
2462
|
}
|
|
2278
2463
|
};
|
|
2279
|
-
return
|
|
2280
|
-
|
|
2464
|
+
return _t(t).forEach((a) => {
|
|
2465
|
+
Je(o.prototype, a, {
|
|
2281
2466
|
get() {
|
|
2282
2467
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2283
2468
|
},
|
|
2284
|
-
set(
|
|
2285
|
-
|
|
2286
|
-
var
|
|
2287
|
-
if (
|
|
2288
|
-
var f =
|
|
2289
|
-
f ?
|
|
2469
|
+
set(u) {
|
|
2470
|
+
u = dt(a, u, t), this.$$d[a] = u;
|
|
2471
|
+
var l = this.$$c;
|
|
2472
|
+
if (l) {
|
|
2473
|
+
var f = Le(l, a)?.get;
|
|
2474
|
+
f ? l[a] = u : l.$set({ [a]: u });
|
|
2290
2475
|
}
|
|
2291
2476
|
}
|
|
2292
2477
|
});
|
|
2293
2478
|
}), n.forEach((a) => {
|
|
2294
|
-
|
|
2479
|
+
Je(o.prototype, a, {
|
|
2295
2480
|
get() {
|
|
2296
2481
|
return this.$$c?.[a];
|
|
2297
2482
|
}
|
|
@@ -2299,66 +2484,63 @@ function vs(e, t, r, n, i, s) {
|
|
|
2299
2484
|
}), e.element = /** @type {any} */
|
|
2300
2485
|
o, o;
|
|
2301
2486
|
}
|
|
2302
|
-
class
|
|
2487
|
+
class Ns extends Error {
|
|
2303
2488
|
constructor(t, r) {
|
|
2304
2489
|
super(r), this.code = t, this.name = "ElevateApiError";
|
|
2305
2490
|
}
|
|
2306
2491
|
}
|
|
2307
|
-
const
|
|
2492
|
+
const Os = async (e) => {
|
|
2308
2493
|
const t = new URL(`${e.apiEndpoint}/elevate/playerInfo?language=${e.locale ?? ""}`), r = new Headers({ "Content-Type": "application/json" });
|
|
2309
2494
|
e.userSession && r.append("X-SessionId", e.userSession);
|
|
2310
2495
|
const i = await (await fetch(t.href, { method: "GET", headers: r })).json();
|
|
2311
2496
|
if (!i.success)
|
|
2312
|
-
throw new
|
|
2497
|
+
throw new Ns(i.errorCode, i.errorMessage);
|
|
2313
2498
|
return i.data;
|
|
2314
|
-
},
|
|
2499
|
+
}, Ls = async (e) => {
|
|
2315
2500
|
const t = new URL(`${e.apiEndpoint}/elevate/levels?language=${e.locale ?? ""}`);
|
|
2316
2501
|
return (await (await fetch(t.href, { method: "GET" })).json()).data;
|
|
2317
|
-
},
|
|
2502
|
+
}, Is = (e, t) => {
|
|
2318
2503
|
const r = [...e].sort((i, s) => i.firstEntryPoints > s.firstEntryPoints ? 1 : -1);
|
|
2319
2504
|
let n = 0;
|
|
2320
2505
|
return r.forEach((i, s) => {
|
|
2321
2506
|
t > i.firstEntryPoints && (n = s);
|
|
2322
2507
|
}), n;
|
|
2323
|
-
},
|
|
2324
|
-
|
|
2325
|
-
}, Es = (e) => {
|
|
2326
|
-
let t = /* @__PURE__ */ R(void 0), r = /* @__PURE__ */ R(void 0), n = /* @__PURE__ */ R(void 0), i = /* @__PURE__ */ R(void 0), s = /* @__PURE__ */ R(!1), o = /* @__PURE__ */ R(void 0);
|
|
2508
|
+
}, Rs = (e) => {
|
|
2509
|
+
let t = /* @__PURE__ */ M(void 0), r = /* @__PURE__ */ M(void 0), n = /* @__PURE__ */ M(void 0), i = /* @__PURE__ */ M(void 0), s = /* @__PURE__ */ M(!1), o = /* @__PURE__ */ M(void 0);
|
|
2327
2510
|
const a = async () => {
|
|
2328
|
-
const { apiEndpoint:
|
|
2329
|
-
if (!(!
|
|
2330
|
-
|
|
2511
|
+
const { apiEndpoint: u, userSession: l, locale: f, loadLevels: c, onLevelLoaded: h } = e();
|
|
2512
|
+
if (!(!u || !l)) {
|
|
2513
|
+
B(s, !0), B(o, void 0);
|
|
2331
2514
|
try {
|
|
2332
2515
|
const d = [
|
|
2333
|
-
|
|
2334
|
-
ys(p.level?.loyaltyPoints);
|
|
2516
|
+
Os({ apiEndpoint: u, userSession: l, locale: f }).then((p) => {
|
|
2335
2517
|
const v = p.level;
|
|
2336
|
-
v.name = v.presentation?.displayName || v.name, v.spendablePoints = p.spendableWallet?.total.points || 0,
|
|
2518
|
+
v.name = v.presentation?.displayName || v.name, v.spendablePoints = p.spendableWallet?.total.points || 0, B(t, v, !0), B(n, p.loyaltyWallet?.total, !0), B(i, p.spendableWallet?.total, !0), h?.({ elevateLevel: v }), h?.({
|
|
2337
2519
|
elevateLevelWalletTotal: p.spendableWallet?.total,
|
|
2338
2520
|
loyaltyWalletTotal: p.loyaltyWallet?.total
|
|
2339
2521
|
});
|
|
2340
2522
|
})
|
|
2341
2523
|
];
|
|
2342
|
-
c && d.push(
|
|
2343
|
-
|
|
2344
|
-
})), await Promise.all(d), await
|
|
2345
|
-
calculatedLevelFlag:
|
|
2524
|
+
c && d.push(Ls({ apiEndpoint: u, userSession: l, locale: f }).then((p) => {
|
|
2525
|
+
B(r, p, !0);
|
|
2526
|
+
})), await Promise.all(d), await hs(), y(r) && y(t) && h?.({
|
|
2527
|
+
calculatedLevelFlag: Is(y(r), y(t).loyaltyPoints ?? 0)
|
|
2346
2528
|
});
|
|
2347
2529
|
} catch (d) {
|
|
2348
|
-
|
|
2530
|
+
B(o, d, !0), console.error("Failed to load elevate info:", d);
|
|
2349
2531
|
} finally {
|
|
2350
|
-
|
|
2532
|
+
B(s, !1);
|
|
2351
2533
|
}
|
|
2352
2534
|
}
|
|
2353
2535
|
};
|
|
2354
|
-
return
|
|
2355
|
-
const { apiEndpoint:
|
|
2536
|
+
return xr(() => {
|
|
2537
|
+
const { apiEndpoint: u, userSession: l, locale: f, loadLevels: c } = e();
|
|
2356
2538
|
a();
|
|
2357
|
-
}),
|
|
2358
|
-
const
|
|
2539
|
+
}), xr(() => {
|
|
2540
|
+
const u = () => {
|
|
2359
2541
|
a();
|
|
2360
2542
|
};
|
|
2361
|
-
return window.addEventListener("redeemRewardButton",
|
|
2543
|
+
return window.addEventListener("redeemRewardButton", u), () => window.removeEventListener("redeemRewardButton", u);
|
|
2362
2544
|
}), {
|
|
2363
2545
|
get playerElevateLevel() {
|
|
2364
2546
|
return y(t);
|
|
@@ -2381,106 +2563,106 @@ const ms = async (e) => {
|
|
|
2381
2563
|
reload: a
|
|
2382
2564
|
};
|
|
2383
2565
|
};
|
|
2384
|
-
function
|
|
2566
|
+
function Cs(e) {
|
|
2385
2567
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2386
2568
|
}
|
|
2387
|
-
var
|
|
2388
|
-
return
|
|
2569
|
+
var Ms = function(t) {
|
|
2570
|
+
return $s(t) && !Ds(t);
|
|
2389
2571
|
};
|
|
2390
|
-
function
|
|
2572
|
+
function $s(e) {
|
|
2391
2573
|
return !!e && typeof e == "object";
|
|
2392
2574
|
}
|
|
2393
|
-
function
|
|
2575
|
+
function Ds(e) {
|
|
2394
2576
|
var t = Object.prototype.toString.call(e);
|
|
2395
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
2577
|
+
return t === "[object RegExp]" || t === "[object Date]" || Gs(e);
|
|
2396
2578
|
}
|
|
2397
|
-
var
|
|
2398
|
-
function
|
|
2399
|
-
return e.$$typeof ===
|
|
2579
|
+
var Fs = typeof Symbol == "function" && Symbol.for, Us = Fs ? Symbol.for("react.element") : 60103;
|
|
2580
|
+
function Gs(e) {
|
|
2581
|
+
return e.$$typeof === Us;
|
|
2400
2582
|
}
|
|
2401
|
-
function
|
|
2583
|
+
function ks(e) {
|
|
2402
2584
|
return Array.isArray(e) ? [] : {};
|
|
2403
2585
|
}
|
|
2404
|
-
function
|
|
2405
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
2586
|
+
function rt(e, t) {
|
|
2587
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? $e(ks(e), e, t) : e;
|
|
2406
2588
|
}
|
|
2407
|
-
function
|
|
2589
|
+
function js(e, t, r) {
|
|
2408
2590
|
return e.concat(t).map(function(n) {
|
|
2409
|
-
return
|
|
2591
|
+
return rt(n, r);
|
|
2410
2592
|
});
|
|
2411
2593
|
}
|
|
2412
|
-
function
|
|
2594
|
+
function Vs(e, t) {
|
|
2413
2595
|
if (!t.customMerge)
|
|
2414
|
-
return
|
|
2596
|
+
return $e;
|
|
2415
2597
|
var r = t.customMerge(e);
|
|
2416
|
-
return typeof r == "function" ? r :
|
|
2598
|
+
return typeof r == "function" ? r : $e;
|
|
2417
2599
|
}
|
|
2418
|
-
function
|
|
2600
|
+
function Xs(e) {
|
|
2419
2601
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
2420
2602
|
return Object.propertyIsEnumerable.call(e, t);
|
|
2421
2603
|
}) : [];
|
|
2422
2604
|
}
|
|
2423
|
-
function
|
|
2424
|
-
return Object.keys(e).concat(
|
|
2605
|
+
function Br(e) {
|
|
2606
|
+
return Object.keys(e).concat(Xs(e));
|
|
2425
2607
|
}
|
|
2426
|
-
function
|
|
2608
|
+
function Dn(e, t) {
|
|
2427
2609
|
try {
|
|
2428
2610
|
return t in e;
|
|
2429
2611
|
} catch {
|
|
2430
2612
|
return !1;
|
|
2431
2613
|
}
|
|
2432
2614
|
}
|
|
2433
|
-
function
|
|
2434
|
-
return
|
|
2615
|
+
function Ws(e, t) {
|
|
2616
|
+
return Dn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
2435
2617
|
}
|
|
2436
|
-
function
|
|
2618
|
+
function zs(e, t, r) {
|
|
2437
2619
|
var n = {};
|
|
2438
|
-
return r.isMergeableObject(e) &&
|
|
2439
|
-
n[i] =
|
|
2440
|
-
}),
|
|
2441
|
-
|
|
2620
|
+
return r.isMergeableObject(e) && Br(e).forEach(function(i) {
|
|
2621
|
+
n[i] = rt(e[i], r);
|
|
2622
|
+
}), Br(t).forEach(function(i) {
|
|
2623
|
+
Ws(e, i) || (Dn(e, i) && r.isMergeableObject(t[i]) ? n[i] = Vs(i, r)(e[i], t[i], r) : n[i] = rt(t[i], r));
|
|
2442
2624
|
}), n;
|
|
2443
2625
|
}
|
|
2444
|
-
function
|
|
2445
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
2626
|
+
function $e(e, t, r) {
|
|
2627
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || js, r.isMergeableObject = r.isMergeableObject || Ms, r.cloneUnlessOtherwiseSpecified = rt;
|
|
2446
2628
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
2447
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
2629
|
+
return s ? n ? r.arrayMerge(e, t, r) : zs(e, t, r) : rt(t, r);
|
|
2448
2630
|
}
|
|
2449
|
-
|
|
2631
|
+
$e.all = function(t, r) {
|
|
2450
2632
|
if (!Array.isArray(t))
|
|
2451
2633
|
throw new Error("first argument should be an array");
|
|
2452
2634
|
return t.reduce(function(n, i) {
|
|
2453
|
-
return
|
|
2635
|
+
return $e(n, i, r);
|
|
2454
2636
|
}, {});
|
|
2455
2637
|
};
|
|
2456
|
-
var
|
|
2457
|
-
const
|
|
2458
|
-
var
|
|
2459
|
-
return
|
|
2638
|
+
var qs = $e, Zs = qs;
|
|
2639
|
+
const Ys = /* @__PURE__ */ Cs(Zs);
|
|
2640
|
+
var Zt = function(e, t) {
|
|
2641
|
+
return Zt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
2460
2642
|
r.__proto__ = n;
|
|
2461
2643
|
} || function(r, n) {
|
|
2462
2644
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
2463
|
-
},
|
|
2645
|
+
}, Zt(e, t);
|
|
2464
2646
|
};
|
|
2465
|
-
function
|
|
2647
|
+
function Nt(e, t) {
|
|
2466
2648
|
if (typeof t != "function" && t !== null)
|
|
2467
2649
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
2468
|
-
|
|
2650
|
+
Zt(e, t);
|
|
2469
2651
|
function r() {
|
|
2470
2652
|
this.constructor = e;
|
|
2471
2653
|
}
|
|
2472
2654
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
2473
2655
|
}
|
|
2474
|
-
var
|
|
2475
|
-
return
|
|
2656
|
+
var J = function() {
|
|
2657
|
+
return J = Object.assign || function(t) {
|
|
2476
2658
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
2477
2659
|
r = arguments[n];
|
|
2478
2660
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
2479
2661
|
}
|
|
2480
2662
|
return t;
|
|
2481
|
-
},
|
|
2663
|
+
}, J.apply(this, arguments);
|
|
2482
2664
|
};
|
|
2483
|
-
function
|
|
2665
|
+
function Qs(e, t) {
|
|
2484
2666
|
var r = {};
|
|
2485
2667
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
2486
2668
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -2488,42 +2670,42 @@ function Ds(e, t) {
|
|
|
2488
2670
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
2489
2671
|
return r;
|
|
2490
2672
|
}
|
|
2491
|
-
function
|
|
2673
|
+
function Mt(e, t, r) {
|
|
2492
2674
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
2493
2675
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
2494
2676
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
2495
2677
|
}
|
|
2496
|
-
function
|
|
2497
|
-
var r = t && t.cache ? t.cache :
|
|
2678
|
+
function $t(e, t) {
|
|
2679
|
+
var r = t && t.cache ? t.cache : io, n = t && t.serializer ? t.serializer : ro, i = t && t.strategy ? t.strategy : eo;
|
|
2498
2680
|
return i(e, {
|
|
2499
2681
|
cache: r,
|
|
2500
2682
|
serializer: n
|
|
2501
2683
|
});
|
|
2502
2684
|
}
|
|
2503
|
-
function
|
|
2685
|
+
function Js(e) {
|
|
2504
2686
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
2505
2687
|
}
|
|
2506
|
-
function
|
|
2507
|
-
var i =
|
|
2688
|
+
function Ks(e, t, r, n) {
|
|
2689
|
+
var i = Js(n) ? n : r(n), s = t.get(i);
|
|
2508
2690
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
2509
2691
|
}
|
|
2510
|
-
function
|
|
2692
|
+
function Fn(e, t, r) {
|
|
2511
2693
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
2512
2694
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
2513
2695
|
}
|
|
2514
|
-
function
|
|
2696
|
+
function Un(e, t, r, n, i) {
|
|
2515
2697
|
return r.bind(t, e, n, i);
|
|
2516
2698
|
}
|
|
2517
|
-
function
|
|
2518
|
-
var r = e.length === 1 ?
|
|
2519
|
-
return
|
|
2699
|
+
function eo(e, t) {
|
|
2700
|
+
var r = e.length === 1 ? Ks : Fn;
|
|
2701
|
+
return Un(e, this, r, t.cache.create(), t.serializer);
|
|
2520
2702
|
}
|
|
2521
|
-
function
|
|
2522
|
-
return
|
|
2703
|
+
function to(e, t) {
|
|
2704
|
+
return Un(e, this, Fn, t.cache.create(), t.serializer);
|
|
2523
2705
|
}
|
|
2524
|
-
var
|
|
2706
|
+
var ro = function() {
|
|
2525
2707
|
return JSON.stringify(arguments);
|
|
2526
|
-
},
|
|
2708
|
+
}, no = (
|
|
2527
2709
|
/** @class */
|
|
2528
2710
|
function() {
|
|
2529
2711
|
function e() {
|
|
@@ -2535,70 +2717,70 @@ var ks = function() {
|
|
|
2535
2717
|
this.cache[t] = r;
|
|
2536
2718
|
}, e;
|
|
2537
2719
|
}()
|
|
2538
|
-
),
|
|
2720
|
+
), io = {
|
|
2539
2721
|
create: function() {
|
|
2540
|
-
return new
|
|
2722
|
+
return new no();
|
|
2541
2723
|
}
|
|
2542
|
-
},
|
|
2543
|
-
variadic:
|
|
2544
|
-
},
|
|
2545
|
-
return
|
|
2724
|
+
}, Dt = {
|
|
2725
|
+
variadic: to
|
|
2726
|
+
}, xt = function() {
|
|
2727
|
+
return xt = Object.assign || function(t) {
|
|
2546
2728
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
2547
2729
|
r = arguments[n];
|
|
2548
2730
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
2549
2731
|
}
|
|
2550
2732
|
return t;
|
|
2551
|
-
},
|
|
2733
|
+
}, xt.apply(this, arguments);
|
|
2552
2734
|
};
|
|
2553
2735
|
var _;
|
|
2554
2736
|
(function(e) {
|
|
2555
2737
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
2556
2738
|
})(_ || (_ = {}));
|
|
2557
|
-
var
|
|
2739
|
+
var x;
|
|
2558
2740
|
(function(e) {
|
|
2559
2741
|
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";
|
|
2560
|
-
})(
|
|
2561
|
-
var
|
|
2742
|
+
})(x || (x = {}));
|
|
2743
|
+
var De;
|
|
2562
2744
|
(function(e) {
|
|
2563
2745
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
2564
|
-
})(
|
|
2565
|
-
function
|
|
2566
|
-
return e.type ===
|
|
2746
|
+
})(De || (De = {}));
|
|
2747
|
+
function Pr(e) {
|
|
2748
|
+
return e.type === x.literal;
|
|
2567
2749
|
}
|
|
2568
|
-
function
|
|
2569
|
-
return e.type ===
|
|
2750
|
+
function so(e) {
|
|
2751
|
+
return e.type === x.argument;
|
|
2570
2752
|
}
|
|
2571
|
-
function
|
|
2572
|
-
return e.type ===
|
|
2753
|
+
function Gn(e) {
|
|
2754
|
+
return e.type === x.number;
|
|
2573
2755
|
}
|
|
2574
|
-
function
|
|
2575
|
-
return e.type ===
|
|
2756
|
+
function kn(e) {
|
|
2757
|
+
return e.type === x.date;
|
|
2576
2758
|
}
|
|
2577
|
-
function
|
|
2578
|
-
return e.type ===
|
|
2759
|
+
function jn(e) {
|
|
2760
|
+
return e.type === x.time;
|
|
2579
2761
|
}
|
|
2580
|
-
function
|
|
2581
|
-
return e.type ===
|
|
2762
|
+
function Vn(e) {
|
|
2763
|
+
return e.type === x.select;
|
|
2582
2764
|
}
|
|
2583
|
-
function
|
|
2584
|
-
return e.type ===
|
|
2765
|
+
function Xn(e) {
|
|
2766
|
+
return e.type === x.plural;
|
|
2585
2767
|
}
|
|
2586
|
-
function
|
|
2587
|
-
return e.type ===
|
|
2768
|
+
function oo(e) {
|
|
2769
|
+
return e.type === x.pound;
|
|
2588
2770
|
}
|
|
2589
|
-
function
|
|
2590
|
-
return e.type ===
|
|
2771
|
+
function Wn(e) {
|
|
2772
|
+
return e.type === x.tag;
|
|
2591
2773
|
}
|
|
2592
|
-
function
|
|
2593
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
2774
|
+
function zn(e) {
|
|
2775
|
+
return !!(e && typeof e == "object" && e.type === De.number);
|
|
2594
2776
|
}
|
|
2595
|
-
function
|
|
2596
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
2777
|
+
function Yt(e) {
|
|
2778
|
+
return !!(e && typeof e == "object" && e.type === De.dateTime);
|
|
2597
2779
|
}
|
|
2598
|
-
var
|
|
2599
|
-
function
|
|
2780
|
+
var qn = /[ \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;
|
|
2781
|
+
function uo(e) {
|
|
2600
2782
|
var t = {};
|
|
2601
|
-
return e.replace(
|
|
2783
|
+
return e.replace(ao, function(r) {
|
|
2602
2784
|
var n = r.length;
|
|
2603
2785
|
switch (r[0]) {
|
|
2604
2786
|
case "G":
|
|
@@ -2687,45 +2869,45 @@ function Zs(e) {
|
|
|
2687
2869
|
return "";
|
|
2688
2870
|
}), t;
|
|
2689
2871
|
}
|
|
2690
|
-
var
|
|
2691
|
-
return
|
|
2872
|
+
var T = function() {
|
|
2873
|
+
return T = Object.assign || function(t) {
|
|
2692
2874
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
2693
2875
|
r = arguments[n];
|
|
2694
2876
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
2695
2877
|
}
|
|
2696
2878
|
return t;
|
|
2697
|
-
},
|
|
2879
|
+
}, T.apply(this, arguments);
|
|
2698
2880
|
};
|
|
2699
|
-
var
|
|
2700
|
-
function
|
|
2881
|
+
var lo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
2882
|
+
function fo(e) {
|
|
2701
2883
|
if (e.length === 0)
|
|
2702
2884
|
throw new Error("Number skeleton cannot be empty");
|
|
2703
|
-
for (var t = e.split(
|
|
2885
|
+
for (var t = e.split(lo).filter(function(h) {
|
|
2704
2886
|
return h.length > 0;
|
|
2705
2887
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
2706
2888
|
var s = i[n], o = s.split("/");
|
|
2707
2889
|
if (o.length === 0)
|
|
2708
2890
|
throw new Error("Invalid number skeleton");
|
|
2709
|
-
for (var a = o[0],
|
|
2710
|
-
var c = f[
|
|
2891
|
+
for (var a = o[0], u = o.slice(1), l = 0, f = u; l < f.length; l++) {
|
|
2892
|
+
var c = f[l];
|
|
2711
2893
|
if (c.length === 0)
|
|
2712
2894
|
throw new Error("Invalid number skeleton");
|
|
2713
2895
|
}
|
|
2714
|
-
r.push({ stem: a, options:
|
|
2896
|
+
r.push({ stem: a, options: u });
|
|
2715
2897
|
}
|
|
2716
2898
|
return r;
|
|
2717
2899
|
}
|
|
2718
|
-
function
|
|
2900
|
+
function ho(e) {
|
|
2719
2901
|
return e.replace(/^(.*?)-/, "");
|
|
2720
2902
|
}
|
|
2721
|
-
var
|
|
2722
|
-
function
|
|
2903
|
+
var Nr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zn = /^(@+)?(\+|#+)?[rs]?$/g, co = /(\*)(0+)|(#+)(0+)|(0+)/g, Yn = /^(0+)$/;
|
|
2904
|
+
function Or(e) {
|
|
2723
2905
|
var t = {};
|
|
2724
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
2906
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zn, function(r, n, i) {
|
|
2725
2907
|
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)), "";
|
|
2726
2908
|
}), t;
|
|
2727
2909
|
}
|
|
2728
|
-
function
|
|
2910
|
+
function Qn(e) {
|
|
2729
2911
|
switch (e) {
|
|
2730
2912
|
case "sign-auto":
|
|
2731
2913
|
return {
|
|
@@ -2765,7 +2947,7 @@ function Vn(e) {
|
|
|
2765
2947
|
};
|
|
2766
2948
|
}
|
|
2767
2949
|
}
|
|
2768
|
-
function
|
|
2950
|
+
function po(e) {
|
|
2769
2951
|
var t;
|
|
2770
2952
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
2771
2953
|
notation: "engineering"
|
|
@@ -2773,17 +2955,17 @@ function eo(e) {
|
|
|
2773
2955
|
notation: "scientific"
|
|
2774
2956
|
}, e = e.slice(1)), t) {
|
|
2775
2957
|
var r = e.slice(0, 2);
|
|
2776
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
2958
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yn.test(e))
|
|
2777
2959
|
throw new Error("Malformed concise eng/scientific notation");
|
|
2778
2960
|
t.minimumIntegerDigits = e.length;
|
|
2779
2961
|
}
|
|
2780
2962
|
return t;
|
|
2781
2963
|
}
|
|
2782
|
-
function
|
|
2783
|
-
var t = {}, r =
|
|
2964
|
+
function Lr(e) {
|
|
2965
|
+
var t = {}, r = Qn(e);
|
|
2784
2966
|
return r || t;
|
|
2785
2967
|
}
|
|
2786
|
-
function
|
|
2968
|
+
function vo(e) {
|
|
2787
2969
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
2788
2970
|
var i = n[r];
|
|
2789
2971
|
switch (i.stem) {
|
|
@@ -2807,7 +2989,7 @@ function to(e) {
|
|
|
2807
2989
|
continue;
|
|
2808
2990
|
case "measure-unit":
|
|
2809
2991
|
case "unit":
|
|
2810
|
-
t.style = "unit", t.unit =
|
|
2992
|
+
t.style = "unit", t.unit = ho(i.options[0]);
|
|
2811
2993
|
continue;
|
|
2812
2994
|
case "compact-short":
|
|
2813
2995
|
case "K":
|
|
@@ -2818,13 +3000,13 @@ function to(e) {
|
|
|
2818
3000
|
t.notation = "compact", t.compactDisplay = "long";
|
|
2819
3001
|
continue;
|
|
2820
3002
|
case "scientific":
|
|
2821
|
-
t =
|
|
2822
|
-
return
|
|
3003
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
3004
|
+
return T(T({}, u), Lr(l));
|
|
2823
3005
|
}, {}));
|
|
2824
3006
|
continue;
|
|
2825
3007
|
case "engineering":
|
|
2826
|
-
t =
|
|
2827
|
-
return
|
|
3008
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
3009
|
+
return T(T({}, u), Lr(l));
|
|
2828
3010
|
}, {}));
|
|
2829
3011
|
continue;
|
|
2830
3012
|
case "notation-simple":
|
|
@@ -2869,8 +3051,8 @@ function to(e) {
|
|
|
2869
3051
|
case "integer-width":
|
|
2870
3052
|
if (i.options.length > 1)
|
|
2871
3053
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
2872
|
-
i.options[0].replace(
|
|
2873
|
-
if (
|
|
3054
|
+
i.options[0].replace(co, function(u, l, f, c, h, d) {
|
|
3055
|
+
if (l)
|
|
2874
3056
|
t.minimumIntegerDigits = f.length;
|
|
2875
3057
|
else {
|
|
2876
3058
|
if (c && h)
|
|
@@ -2882,32 +3064,32 @@ function to(e) {
|
|
|
2882
3064
|
});
|
|
2883
3065
|
continue;
|
|
2884
3066
|
}
|
|
2885
|
-
if (
|
|
3067
|
+
if (Yn.test(i.stem)) {
|
|
2886
3068
|
t.minimumIntegerDigits = i.stem.length;
|
|
2887
3069
|
continue;
|
|
2888
3070
|
}
|
|
2889
|
-
if (
|
|
3071
|
+
if (Nr.test(i.stem)) {
|
|
2890
3072
|
if (i.options.length > 1)
|
|
2891
3073
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
2892
|
-
i.stem.replace(
|
|
2893
|
-
return f === "*" ? t.minimumFractionDigits =
|
|
3074
|
+
i.stem.replace(Nr, function(u, l, f, c, h, d) {
|
|
3075
|
+
return f === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : h && d ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
2894
3076
|
});
|
|
2895
3077
|
var s = i.options[0];
|
|
2896
|
-
s === "w" ? t =
|
|
3078
|
+
s === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = T(T({}, t), Or(s)));
|
|
2897
3079
|
continue;
|
|
2898
3080
|
}
|
|
2899
|
-
if (
|
|
2900
|
-
t =
|
|
3081
|
+
if (Zn.test(i.stem)) {
|
|
3082
|
+
t = T(T({}, t), Or(i.stem));
|
|
2901
3083
|
continue;
|
|
2902
3084
|
}
|
|
2903
|
-
var o =
|
|
2904
|
-
o && (t =
|
|
2905
|
-
var a =
|
|
2906
|
-
a && (t =
|
|
3085
|
+
var o = Qn(i.stem);
|
|
3086
|
+
o && (t = T(T({}, t), o));
|
|
3087
|
+
var a = po(i.stem);
|
|
3088
|
+
a && (t = T(T({}, t), a));
|
|
2907
3089
|
}
|
|
2908
3090
|
return t;
|
|
2909
3091
|
}
|
|
2910
|
-
var
|
|
3092
|
+
var ht = {
|
|
2911
3093
|
"001": [
|
|
2912
3094
|
"H",
|
|
2913
3095
|
"h"
|
|
@@ -4322,22 +4504,22 @@ var st = {
|
|
|
4322
4504
|
"h"
|
|
4323
4505
|
]
|
|
4324
4506
|
};
|
|
4325
|
-
function
|
|
4507
|
+
function _o(e, t) {
|
|
4326
4508
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
4327
4509
|
var i = e.charAt(n);
|
|
4328
4510
|
if (i === "j") {
|
|
4329
4511
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
4330
4512
|
s++, n++;
|
|
4331
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1),
|
|
4332
|
-
for ((
|
|
4333
|
-
r +=
|
|
4513
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), u = "a", l = mo(t);
|
|
4514
|
+
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
4515
|
+
r += u;
|
|
4334
4516
|
for (; o-- > 0; )
|
|
4335
|
-
r =
|
|
4517
|
+
r = l + r;
|
|
4336
4518
|
} else i === "J" ? r += "H" : r += i;
|
|
4337
4519
|
}
|
|
4338
4520
|
return r;
|
|
4339
4521
|
}
|
|
4340
|
-
function
|
|
4522
|
+
function mo(e) {
|
|
4341
4523
|
var t = e.hourCycle;
|
|
4342
4524
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
4343
4525
|
e.hourCycles && // @ts-ignore
|
|
@@ -4356,23 +4538,23 @@ function no(e) {
|
|
|
4356
4538
|
}
|
|
4357
4539
|
var r = e.language, n;
|
|
4358
4540
|
r !== "root" && (n = e.maximize().region);
|
|
4359
|
-
var i =
|
|
4541
|
+
var i = ht[n || ""] || ht[r || ""] || ht["".concat(r, "-001")] || ht["001"];
|
|
4360
4542
|
return i[0];
|
|
4361
4543
|
}
|
|
4362
|
-
var
|
|
4544
|
+
var Ft, bo = new RegExp("^".concat(qn.source, "*")), go = new RegExp("".concat(qn.source, "*$"));
|
|
4363
4545
|
function b(e, t) {
|
|
4364
4546
|
return { start: e, end: t };
|
|
4365
4547
|
}
|
|
4366
|
-
var
|
|
4548
|
+
var yo = !!String.prototype.startsWith && "_a".startsWith("a", 1), Eo = !!String.fromCodePoint, xo = !!Object.fromEntries, wo = !!String.prototype.codePointAt, To = !!String.prototype.trimStart, So = !!String.prototype.trimEnd, Ho = !!Number.isSafeInteger, Ao = Ho ? Number.isSafeInteger : function(e) {
|
|
4367
4549
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
4368
|
-
},
|
|
4550
|
+
}, Qt = !0;
|
|
4369
4551
|
try {
|
|
4370
|
-
var
|
|
4371
|
-
|
|
4552
|
+
var Bo = Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
4553
|
+
Qt = ((Ft = Bo.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
|
|
4372
4554
|
} catch {
|
|
4373
|
-
|
|
4555
|
+
Qt = !1;
|
|
4374
4556
|
}
|
|
4375
|
-
var
|
|
4557
|
+
var Ir = yo ? (
|
|
4376
4558
|
// Native
|
|
4377
4559
|
function(t, r, n) {
|
|
4378
4560
|
return t.startsWith(r, n);
|
|
@@ -4382,7 +4564,7 @@ var Ar = oo ? (
|
|
|
4382
4564
|
function(t, r, n) {
|
|
4383
4565
|
return t.slice(n, n + r.length) === r;
|
|
4384
4566
|
}
|
|
4385
|
-
),
|
|
4567
|
+
), Jt = Eo ? String.fromCodePoint : (
|
|
4386
4568
|
// IE11
|
|
4387
4569
|
function() {
|
|
4388
4570
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -4394,9 +4576,9 @@ var Ar = oo ? (
|
|
|
4394
4576
|
}
|
|
4395
4577
|
return n;
|
|
4396
4578
|
}
|
|
4397
|
-
),
|
|
4579
|
+
), Rr = (
|
|
4398
4580
|
// native
|
|
4399
|
-
|
|
4581
|
+
xo ? Object.fromEntries : (
|
|
4400
4582
|
// Ponyfill
|
|
4401
4583
|
function(t) {
|
|
4402
4584
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -4406,7 +4588,7 @@ var Ar = oo ? (
|
|
|
4406
4588
|
return r;
|
|
4407
4589
|
}
|
|
4408
4590
|
)
|
|
4409
|
-
),
|
|
4591
|
+
), Jn = wo ? (
|
|
4410
4592
|
// Native
|
|
4411
4593
|
function(t, r) {
|
|
4412
4594
|
return t.codePointAt(r);
|
|
@@ -4420,7 +4602,7 @@ var Ar = oo ? (
|
|
|
4420
4602
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
4421
4603
|
}
|
|
4422
4604
|
}
|
|
4423
|
-
),
|
|
4605
|
+
), Po = To ? (
|
|
4424
4606
|
// Native
|
|
4425
4607
|
function(t) {
|
|
4426
4608
|
return t.trimStart();
|
|
@@ -4428,9 +4610,9 @@ var Ar = oo ? (
|
|
|
4428
4610
|
) : (
|
|
4429
4611
|
// Ponyfill
|
|
4430
4612
|
function(t) {
|
|
4431
|
-
return t.replace(
|
|
4613
|
+
return t.replace(bo, "");
|
|
4432
4614
|
}
|
|
4433
|
-
),
|
|
4615
|
+
), No = So ? (
|
|
4434
4616
|
// Native
|
|
4435
4617
|
function(t) {
|
|
4436
4618
|
return t.trimEnd();
|
|
@@ -4438,32 +4620,32 @@ var Ar = oo ? (
|
|
|
4438
4620
|
) : (
|
|
4439
4621
|
// Ponyfill
|
|
4440
4622
|
function(t) {
|
|
4441
|
-
return t.replace(
|
|
4623
|
+
return t.replace(go, "");
|
|
4442
4624
|
}
|
|
4443
4625
|
);
|
|
4444
|
-
function
|
|
4626
|
+
function Kn(e, t) {
|
|
4445
4627
|
return new RegExp(e, t);
|
|
4446
4628
|
}
|
|
4447
|
-
var
|
|
4448
|
-
if (
|
|
4449
|
-
var
|
|
4450
|
-
|
|
4629
|
+
var Kt;
|
|
4630
|
+
if (Qt) {
|
|
4631
|
+
var Cr = Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
4632
|
+
Kt = function(t, r) {
|
|
4451
4633
|
var n;
|
|
4452
|
-
|
|
4453
|
-
var i =
|
|
4634
|
+
Cr.lastIndex = r;
|
|
4635
|
+
var i = Cr.exec(t);
|
|
4454
4636
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
4455
4637
|
};
|
|
4456
4638
|
} else
|
|
4457
|
-
|
|
4639
|
+
Kt = function(t, r) {
|
|
4458
4640
|
for (var n = []; ; ) {
|
|
4459
|
-
var i =
|
|
4460
|
-
if (i === void 0 ||
|
|
4641
|
+
var i = Jn(t, r);
|
|
4642
|
+
if (i === void 0 || ei(i) || Ro(i))
|
|
4461
4643
|
break;
|
|
4462
4644
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
4463
4645
|
}
|
|
4464
|
-
return
|
|
4646
|
+
return Jt.apply(void 0, n);
|
|
4465
4647
|
};
|
|
4466
|
-
var
|
|
4648
|
+
var Oo = (
|
|
4467
4649
|
/** @class */
|
|
4468
4650
|
function() {
|
|
4469
4651
|
function e(t, r) {
|
|
@@ -4487,14 +4669,14 @@ var bo = (
|
|
|
4487
4669
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
4488
4670
|
var a = this.clonePosition();
|
|
4489
4671
|
this.bump(), i.push({
|
|
4490
|
-
type:
|
|
4672
|
+
type: x.pound,
|
|
4491
4673
|
location: b(a, this.clonePosition())
|
|
4492
4674
|
});
|
|
4493
4675
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
4494
4676
|
if (n)
|
|
4495
4677
|
break;
|
|
4496
4678
|
return this.error(_.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
4497
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
4679
|
+
} else if (s === 60 && !this.ignoreTag && er(this.peek() || 0)) {
|
|
4498
4680
|
var o = this.parseTag(t, r);
|
|
4499
4681
|
if (o.err)
|
|
4500
4682
|
return o;
|
|
@@ -4515,7 +4697,7 @@ var bo = (
|
|
|
4515
4697
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
4516
4698
|
return {
|
|
4517
4699
|
val: {
|
|
4518
|
-
type:
|
|
4700
|
+
type: x.literal,
|
|
4519
4701
|
value: "<".concat(i, "/>"),
|
|
4520
4702
|
location: b(n, this.clonePosition())
|
|
4521
4703
|
},
|
|
@@ -4527,12 +4709,12 @@ var bo = (
|
|
|
4527
4709
|
return s;
|
|
4528
4710
|
var o = s.val, a = this.clonePosition();
|
|
4529
4711
|
if (this.bumpIf("</")) {
|
|
4530
|
-
if (this.isEOF() || !
|
|
4712
|
+
if (this.isEOF() || !er(this.char()))
|
|
4531
4713
|
return this.error(_.INVALID_TAG, b(a, this.clonePosition()));
|
|
4532
|
-
var
|
|
4533
|
-
return i !==
|
|
4714
|
+
var u = this.clonePosition(), l = this.parseTagName();
|
|
4715
|
+
return i !== l ? this.error(_.UNMATCHED_CLOSING_TAG, b(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
4534
4716
|
val: {
|
|
4535
|
-
type:
|
|
4717
|
+
type: x.tag,
|
|
4536
4718
|
value: i,
|
|
4537
4719
|
children: o,
|
|
4538
4720
|
location: b(n, this.clonePosition())
|
|
@@ -4545,7 +4727,7 @@ var bo = (
|
|
|
4545
4727
|
return this.error(_.INVALID_TAG, b(n, this.clonePosition()));
|
|
4546
4728
|
}, e.prototype.parseTagName = function() {
|
|
4547
4729
|
var t = this.offset();
|
|
4548
|
-
for (this.bump(); !this.isEOF() &&
|
|
4730
|
+
for (this.bump(); !this.isEOF() && Io(this.char()); )
|
|
4549
4731
|
this.bump();
|
|
4550
4732
|
return this.message.slice(t, this.offset());
|
|
4551
4733
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -4567,14 +4749,14 @@ var bo = (
|
|
|
4567
4749
|
}
|
|
4568
4750
|
break;
|
|
4569
4751
|
}
|
|
4570
|
-
var
|
|
4752
|
+
var u = b(n, this.clonePosition());
|
|
4571
4753
|
return {
|
|
4572
|
-
val: { type:
|
|
4754
|
+
val: { type: x.literal, value: i, location: u },
|
|
4573
4755
|
err: null
|
|
4574
4756
|
};
|
|
4575
4757
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
4576
4758
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
4577
|
-
!
|
|
4759
|
+
!Lo(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
4578
4760
|
}, e.prototype.tryParseQuote = function(t) {
|
|
4579
4761
|
if (this.isEOF() || this.char() !== 39)
|
|
4580
4762
|
return null;
|
|
@@ -4608,12 +4790,12 @@ var bo = (
|
|
|
4608
4790
|
r.push(n);
|
|
4609
4791
|
this.bump();
|
|
4610
4792
|
}
|
|
4611
|
-
return
|
|
4793
|
+
return Jt.apply(void 0, r);
|
|
4612
4794
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
4613
4795
|
if (this.isEOF())
|
|
4614
4796
|
return null;
|
|
4615
4797
|
var n = this.char();
|
|
4616
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
4798
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Jt(n));
|
|
4617
4799
|
}, e.prototype.parseArgument = function(t, r) {
|
|
4618
4800
|
var n = this.clonePosition();
|
|
4619
4801
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -4629,7 +4811,7 @@ var bo = (
|
|
|
4629
4811
|
case 125:
|
|
4630
4812
|
return this.bump(), {
|
|
4631
4813
|
val: {
|
|
4632
|
-
type:
|
|
4814
|
+
type: x.argument,
|
|
4633
4815
|
// value does not include the opening and closing braces.
|
|
4634
4816
|
value: i,
|
|
4635
4817
|
location: b(n, this.clonePosition())
|
|
@@ -4642,54 +4824,54 @@ var bo = (
|
|
|
4642
4824
|
return this.error(_.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
4643
4825
|
}
|
|
4644
4826
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
4645
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
4827
|
+
var t = this.clonePosition(), r = this.offset(), n = Kt(this.message, r), i = r + n.length;
|
|
4646
4828
|
this.bumpTo(i);
|
|
4647
4829
|
var s = this.clonePosition(), o = b(t, s);
|
|
4648
4830
|
return { value: n, location: o };
|
|
4649
4831
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
4650
|
-
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
4832
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
4651
4833
|
switch (a) {
|
|
4652
4834
|
case "":
|
|
4653
|
-
return this.error(_.EXPECT_ARGUMENT_TYPE, b(o,
|
|
4835
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, b(o, u));
|
|
4654
4836
|
case "number":
|
|
4655
4837
|
case "date":
|
|
4656
4838
|
case "time": {
|
|
4657
4839
|
this.bumpSpace();
|
|
4658
|
-
var
|
|
4840
|
+
var l = null;
|
|
4659
4841
|
if (this.bumpIf(",")) {
|
|
4660
4842
|
this.bumpSpace();
|
|
4661
4843
|
var f = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
4662
4844
|
if (c.err)
|
|
4663
4845
|
return c;
|
|
4664
|
-
var h =
|
|
4846
|
+
var h = No(c.val);
|
|
4665
4847
|
if (h.length === 0)
|
|
4666
4848
|
return this.error(_.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
4667
4849
|
var d = b(f, this.clonePosition());
|
|
4668
|
-
|
|
4850
|
+
l = { style: h, styleLocation: d };
|
|
4669
4851
|
}
|
|
4670
4852
|
var p = this.tryParseArgumentClose(i);
|
|
4671
4853
|
if (p.err)
|
|
4672
4854
|
return p;
|
|
4673
4855
|
var v = b(i, this.clonePosition());
|
|
4674
|
-
if (
|
|
4675
|
-
var
|
|
4856
|
+
if (l && Ir(l?.style, "::", 0)) {
|
|
4857
|
+
var H = Po(l.style.slice(2));
|
|
4676
4858
|
if (a === "number") {
|
|
4677
|
-
var c = this.parseNumberSkeletonFromString(
|
|
4859
|
+
var c = this.parseNumberSkeletonFromString(H, l.styleLocation);
|
|
4678
4860
|
return c.err ? c : {
|
|
4679
|
-
val: { type:
|
|
4861
|
+
val: { type: x.number, value: n, location: v, style: c.val },
|
|
4680
4862
|
err: null
|
|
4681
4863
|
};
|
|
4682
4864
|
} else {
|
|
4683
|
-
if (
|
|
4865
|
+
if (H.length === 0)
|
|
4684
4866
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, v);
|
|
4685
|
-
var
|
|
4686
|
-
this.locale && (
|
|
4867
|
+
var Q = H;
|
|
4868
|
+
this.locale && (Q = _o(H, this.locale));
|
|
4687
4869
|
var h = {
|
|
4688
|
-
type:
|
|
4689
|
-
pattern:
|
|
4690
|
-
location:
|
|
4691
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
4692
|
-
}, G = a === "date" ?
|
|
4870
|
+
type: De.dateTime,
|
|
4871
|
+
pattern: Q,
|
|
4872
|
+
location: l.styleLocation,
|
|
4873
|
+
parsedOptions: this.shouldParseSkeletons ? uo(Q) : {}
|
|
4874
|
+
}, G = a === "date" ? x.date : x.time;
|
|
4693
4875
|
return {
|
|
4694
4876
|
val: { type: G, value: n, location: v, style: h },
|
|
4695
4877
|
err: null
|
|
@@ -4698,10 +4880,10 @@ var bo = (
|
|
|
4698
4880
|
}
|
|
4699
4881
|
return {
|
|
4700
4882
|
val: {
|
|
4701
|
-
type: a === "number" ?
|
|
4883
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
4702
4884
|
value: n,
|
|
4703
4885
|
location: v,
|
|
4704
|
-
style: (s =
|
|
4886
|
+
style: (s = l?.style) !== null && s !== void 0 ? s : null
|
|
4705
4887
|
},
|
|
4706
4888
|
err: null
|
|
4707
4889
|
};
|
|
@@ -4709,49 +4891,49 @@ var bo = (
|
|
|
4709
4891
|
case "plural":
|
|
4710
4892
|
case "selectordinal":
|
|
4711
4893
|
case "select": {
|
|
4712
|
-
var
|
|
4894
|
+
var k = this.clonePosition();
|
|
4713
4895
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
4714
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
4896
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, b(k, xt({}, k)));
|
|
4715
4897
|
this.bumpSpace();
|
|
4716
|
-
var
|
|
4717
|
-
if (a !== "select" &&
|
|
4898
|
+
var w = this.parseIdentifierIfPossible(), L = 0;
|
|
4899
|
+
if (a !== "select" && w.value === "offset") {
|
|
4718
4900
|
if (!this.bumpIf(":"))
|
|
4719
4901
|
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
4720
4902
|
this.bumpSpace();
|
|
4721
4903
|
var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
4722
4904
|
if (c.err)
|
|
4723
4905
|
return c;
|
|
4724
|
-
this.bumpSpace(),
|
|
4906
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), L = c.val;
|
|
4725
4907
|
}
|
|
4726
|
-
var
|
|
4727
|
-
if (
|
|
4728
|
-
return
|
|
4908
|
+
var be = this.tryParsePluralOrSelectOptions(t, a, r, w);
|
|
4909
|
+
if (be.err)
|
|
4910
|
+
return be;
|
|
4729
4911
|
var p = this.tryParseArgumentClose(i);
|
|
4730
4912
|
if (p.err)
|
|
4731
4913
|
return p;
|
|
4732
|
-
var
|
|
4914
|
+
var Ve = b(i, this.clonePosition());
|
|
4733
4915
|
return a === "select" ? {
|
|
4734
4916
|
val: {
|
|
4735
|
-
type:
|
|
4917
|
+
type: x.select,
|
|
4736
4918
|
value: n,
|
|
4737
|
-
options:
|
|
4738
|
-
location:
|
|
4919
|
+
options: Rr(be.val),
|
|
4920
|
+
location: Ve
|
|
4739
4921
|
},
|
|
4740
4922
|
err: null
|
|
4741
4923
|
} : {
|
|
4742
4924
|
val: {
|
|
4743
|
-
type:
|
|
4925
|
+
type: x.plural,
|
|
4744
4926
|
value: n,
|
|
4745
|
-
options:
|
|
4746
|
-
offset:
|
|
4927
|
+
options: Rr(be.val),
|
|
4928
|
+
offset: L,
|
|
4747
4929
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
4748
|
-
location:
|
|
4930
|
+
location: Ve
|
|
4749
4931
|
},
|
|
4750
4932
|
err: null
|
|
4751
4933
|
};
|
|
4752
4934
|
}
|
|
4753
4935
|
default:
|
|
4754
|
-
return this.error(_.INVALID_ARGUMENT_TYPE, b(o,
|
|
4936
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, b(o, u));
|
|
4755
4937
|
}
|
|
4756
4938
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
4757
4939
|
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -4793,34 +4975,34 @@ var bo = (
|
|
|
4793
4975
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
4794
4976
|
var n = [];
|
|
4795
4977
|
try {
|
|
4796
|
-
n =
|
|
4978
|
+
n = fo(t);
|
|
4797
4979
|
} catch {
|
|
4798
4980
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
4799
4981
|
}
|
|
4800
4982
|
return {
|
|
4801
4983
|
val: {
|
|
4802
|
-
type:
|
|
4984
|
+
type: De.number,
|
|
4803
4985
|
tokens: n,
|
|
4804
4986
|
location: r,
|
|
4805
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
4987
|
+
parsedOptions: this.shouldParseSkeletons ? vo(n) : {}
|
|
4806
4988
|
},
|
|
4807
4989
|
err: null
|
|
4808
4990
|
};
|
|
4809
4991
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
4810
|
-
for (var s, o = !1, a = [],
|
|
4811
|
-
if (
|
|
4992
|
+
for (var s, o = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
|
|
4993
|
+
if (l.length === 0) {
|
|
4812
4994
|
var c = this.clonePosition();
|
|
4813
4995
|
if (r !== "select" && this.bumpIf("=")) {
|
|
4814
4996
|
var h = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
4815
4997
|
if (h.err)
|
|
4816
4998
|
return h;
|
|
4817
|
-
f = b(c, this.clonePosition()),
|
|
4999
|
+
f = b(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
|
|
4818
5000
|
} else
|
|
4819
5001
|
break;
|
|
4820
5002
|
}
|
|
4821
|
-
if (
|
|
5003
|
+
if (u.has(l))
|
|
4822
5004
|
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
4823
|
-
|
|
5005
|
+
l === "other" && (o = !0), this.bumpSpace();
|
|
4824
5006
|
var d = this.clonePosition();
|
|
4825
5007
|
if (!this.bumpIf("{"))
|
|
4826
5008
|
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -4831,12 +5013,12 @@ var bo = (
|
|
|
4831
5013
|
if (v.err)
|
|
4832
5014
|
return v;
|
|
4833
5015
|
a.push([
|
|
4834
|
-
|
|
5016
|
+
l,
|
|
4835
5017
|
{
|
|
4836
5018
|
value: p.val,
|
|
4837
5019
|
location: b(d, this.clonePosition())
|
|
4838
5020
|
}
|
|
4839
|
-
]),
|
|
5021
|
+
]), u.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, f = s.location;
|
|
4840
5022
|
}
|
|
4841
5023
|
return a.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(_.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
4842
5024
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -4849,8 +5031,8 @@ var bo = (
|
|
|
4849
5031
|
else
|
|
4850
5032
|
break;
|
|
4851
5033
|
}
|
|
4852
|
-
var
|
|
4853
|
-
return s ? (o *= n,
|
|
5034
|
+
var u = b(i, this.clonePosition());
|
|
5035
|
+
return s ? (o *= n, Ao(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
|
|
4854
5036
|
}, e.prototype.offset = function() {
|
|
4855
5037
|
return this.position.offset;
|
|
4856
5038
|
}, e.prototype.isEOF = function() {
|
|
@@ -4865,7 +5047,7 @@ var bo = (
|
|
|
4865
5047
|
var t = this.position.offset;
|
|
4866
5048
|
if (t >= this.message.length)
|
|
4867
5049
|
throw Error("out of bound");
|
|
4868
|
-
var r =
|
|
5050
|
+
var r = Jn(this.message, t);
|
|
4869
5051
|
if (r === void 0)
|
|
4870
5052
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
4871
5053
|
return r;
|
|
@@ -4884,7 +5066,7 @@ var bo = (
|
|
|
4884
5066
|
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);
|
|
4885
5067
|
}
|
|
4886
5068
|
}, e.prototype.bumpIf = function(t) {
|
|
4887
|
-
if (
|
|
5069
|
+
if (Ir(this.message, t, this.offset())) {
|
|
4888
5070
|
for (var r = 0; r < t.length; r++)
|
|
4889
5071
|
this.bump();
|
|
4890
5072
|
return !0;
|
|
@@ -4906,7 +5088,7 @@ var bo = (
|
|
|
4906
5088
|
break;
|
|
4907
5089
|
}
|
|
4908
5090
|
}, e.prototype.bumpSpace = function() {
|
|
4909
|
-
for (; !this.isEOF() &&
|
|
5091
|
+
for (; !this.isEOF() && ei(this.char()); )
|
|
4910
5092
|
this.bump();
|
|
4911
5093
|
}, e.prototype.peek = function() {
|
|
4912
5094
|
if (this.isEOF())
|
|
@@ -4916,46 +5098,46 @@ var bo = (
|
|
|
4916
5098
|
}, e;
|
|
4917
5099
|
}()
|
|
4918
5100
|
);
|
|
4919
|
-
function
|
|
5101
|
+
function er(e) {
|
|
4920
5102
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
4921
5103
|
}
|
|
4922
|
-
function
|
|
4923
|
-
return
|
|
5104
|
+
function Lo(e) {
|
|
5105
|
+
return er(e) || e === 47;
|
|
4924
5106
|
}
|
|
4925
|
-
function
|
|
5107
|
+
function Io(e) {
|
|
4926
5108
|
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;
|
|
4927
5109
|
}
|
|
4928
|
-
function
|
|
5110
|
+
function ei(e) {
|
|
4929
5111
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
4930
5112
|
}
|
|
4931
|
-
function
|
|
5113
|
+
function Ro(e) {
|
|
4932
5114
|
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;
|
|
4933
5115
|
}
|
|
4934
|
-
function
|
|
5116
|
+
function tr(e) {
|
|
4935
5117
|
e.forEach(function(t) {
|
|
4936
|
-
if (delete t.location,
|
|
5118
|
+
if (delete t.location, Vn(t) || Xn(t))
|
|
4937
5119
|
for (var r in t.options)
|
|
4938
|
-
delete t.options[r].location,
|
|
4939
|
-
else
|
|
5120
|
+
delete t.options[r].location, tr(t.options[r].value);
|
|
5121
|
+
else Gn(t) && zn(t.style) || (kn(t) || jn(t)) && Yt(t.style) ? delete t.style.location : Wn(t) && tr(t.children);
|
|
4940
5122
|
});
|
|
4941
5123
|
}
|
|
4942
|
-
function
|
|
4943
|
-
t === void 0 && (t = {}), t =
|
|
4944
|
-
var r = new
|
|
5124
|
+
function Co(e, t) {
|
|
5125
|
+
t === void 0 && (t = {}), t = xt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
5126
|
+
var r = new Oo(e, t).parse();
|
|
4945
5127
|
if (r.err) {
|
|
4946
5128
|
var n = SyntaxError(_[r.err.kind]);
|
|
4947
5129
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
4948
5130
|
}
|
|
4949
|
-
return t?.captureLocation ||
|
|
5131
|
+
return t?.captureLocation || tr(r.val), r.val;
|
|
4950
5132
|
}
|
|
4951
|
-
var
|
|
5133
|
+
var Fe;
|
|
4952
5134
|
(function(e) {
|
|
4953
5135
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
4954
|
-
})(
|
|
4955
|
-
var
|
|
5136
|
+
})(Fe || (Fe = {}));
|
|
5137
|
+
var Ot = (
|
|
4956
5138
|
/** @class */
|
|
4957
5139
|
function(e) {
|
|
4958
|
-
|
|
5140
|
+
Nt(t, e);
|
|
4959
5141
|
function t(r, n, i) {
|
|
4960
5142
|
var s = e.call(this, r) || this;
|
|
4961
5143
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -4964,155 +5146,155 @@ var At = (
|
|
|
4964
5146
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
4965
5147
|
}, t;
|
|
4966
5148
|
}(Error)
|
|
4967
|
-
),
|
|
5149
|
+
), Mr = (
|
|
4968
5150
|
/** @class */
|
|
4969
5151
|
function(e) {
|
|
4970
|
-
|
|
5152
|
+
Nt(t, e);
|
|
4971
5153
|
function t(r, n, i, s) {
|
|
4972
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
5154
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Fe.INVALID_VALUE, s) || this;
|
|
4973
5155
|
}
|
|
4974
5156
|
return t;
|
|
4975
|
-
}(
|
|
4976
|
-
),
|
|
5157
|
+
}(Ot)
|
|
5158
|
+
), Mo = (
|
|
4977
5159
|
/** @class */
|
|
4978
5160
|
function(e) {
|
|
4979
|
-
|
|
5161
|
+
Nt(t, e);
|
|
4980
5162
|
function t(r, n, i) {
|
|
4981
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
5163
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Fe.INVALID_VALUE, i) || this;
|
|
4982
5164
|
}
|
|
4983
5165
|
return t;
|
|
4984
|
-
}(
|
|
4985
|
-
),
|
|
5166
|
+
}(Ot)
|
|
5167
|
+
), $o = (
|
|
4986
5168
|
/** @class */
|
|
4987
5169
|
function(e) {
|
|
4988
|
-
|
|
5170
|
+
Nt(t, e);
|
|
4989
5171
|
function t(r, n) {
|
|
4990
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
5172
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Fe.MISSING_VALUE, n) || this;
|
|
4991
5173
|
}
|
|
4992
5174
|
return t;
|
|
4993
|
-
}(
|
|
4994
|
-
),
|
|
5175
|
+
}(Ot)
|
|
5176
|
+
), R;
|
|
4995
5177
|
(function(e) {
|
|
4996
5178
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
4997
|
-
})(
|
|
4998
|
-
function
|
|
5179
|
+
})(R || (R = {}));
|
|
5180
|
+
function Do(e) {
|
|
4999
5181
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
5000
5182
|
var n = t[t.length - 1];
|
|
5001
|
-
return !n || n.type !==
|
|
5183
|
+
return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
|
|
5002
5184
|
}, []);
|
|
5003
5185
|
}
|
|
5004
|
-
function
|
|
5186
|
+
function Fo(e) {
|
|
5005
5187
|
return typeof e == "function";
|
|
5006
5188
|
}
|
|
5007
|
-
function
|
|
5008
|
-
if (e.length === 1 &&
|
|
5189
|
+
function pt(e, t, r, n, i, s, o) {
|
|
5190
|
+
if (e.length === 1 && Pr(e[0]))
|
|
5009
5191
|
return [
|
|
5010
5192
|
{
|
|
5011
|
-
type:
|
|
5193
|
+
type: R.literal,
|
|
5012
5194
|
value: e[0].value
|
|
5013
5195
|
}
|
|
5014
5196
|
];
|
|
5015
|
-
for (var a = [],
|
|
5016
|
-
var f = u
|
|
5017
|
-
if (
|
|
5197
|
+
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
5198
|
+
var f = l[u];
|
|
5199
|
+
if (Pr(f)) {
|
|
5018
5200
|
a.push({
|
|
5019
|
-
type:
|
|
5201
|
+
type: R.literal,
|
|
5020
5202
|
value: f.value
|
|
5021
5203
|
});
|
|
5022
5204
|
continue;
|
|
5023
5205
|
}
|
|
5024
|
-
if (
|
|
5206
|
+
if (oo(f)) {
|
|
5025
5207
|
typeof s == "number" && a.push({
|
|
5026
|
-
type:
|
|
5208
|
+
type: R.literal,
|
|
5027
5209
|
value: r.getNumberFormat(t).format(s)
|
|
5028
5210
|
});
|
|
5029
5211
|
continue;
|
|
5030
5212
|
}
|
|
5031
5213
|
var c = f.value;
|
|
5032
5214
|
if (!(i && c in i))
|
|
5033
|
-
throw new
|
|
5215
|
+
throw new $o(c, o);
|
|
5034
5216
|
var h = i[c];
|
|
5035
|
-
if (
|
|
5217
|
+
if (so(f)) {
|
|
5036
5218
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
|
|
5037
|
-
type: typeof h == "string" ?
|
|
5219
|
+
type: typeof h == "string" ? R.literal : R.object,
|
|
5038
5220
|
value: h
|
|
5039
5221
|
});
|
|
5040
5222
|
continue;
|
|
5041
5223
|
}
|
|
5042
|
-
if (
|
|
5043
|
-
var d = typeof f.style == "string" ? n.date[f.style] :
|
|
5224
|
+
if (kn(f)) {
|
|
5225
|
+
var d = typeof f.style == "string" ? n.date[f.style] : Yt(f.style) ? f.style.parsedOptions : void 0;
|
|
5044
5226
|
a.push({
|
|
5045
|
-
type:
|
|
5227
|
+
type: R.literal,
|
|
5046
5228
|
value: r.getDateTimeFormat(t, d).format(h)
|
|
5047
5229
|
});
|
|
5048
5230
|
continue;
|
|
5049
5231
|
}
|
|
5050
|
-
if (
|
|
5051
|
-
var d = typeof f.style == "string" ? n.time[f.style] :
|
|
5232
|
+
if (jn(f)) {
|
|
5233
|
+
var d = typeof f.style == "string" ? n.time[f.style] : Yt(f.style) ? f.style.parsedOptions : n.time.medium;
|
|
5052
5234
|
a.push({
|
|
5053
|
-
type:
|
|
5235
|
+
type: R.literal,
|
|
5054
5236
|
value: r.getDateTimeFormat(t, d).format(h)
|
|
5055
5237
|
});
|
|
5056
5238
|
continue;
|
|
5057
5239
|
}
|
|
5058
|
-
if (
|
|
5059
|
-
var d = typeof f.style == "string" ? n.number[f.style] :
|
|
5240
|
+
if (Gn(f)) {
|
|
5241
|
+
var d = typeof f.style == "string" ? n.number[f.style] : zn(f.style) ? f.style.parsedOptions : void 0;
|
|
5060
5242
|
d && d.scale && (h = h * (d.scale || 1)), a.push({
|
|
5061
|
-
type:
|
|
5243
|
+
type: R.literal,
|
|
5062
5244
|
value: r.getNumberFormat(t, d).format(h)
|
|
5063
5245
|
});
|
|
5064
5246
|
continue;
|
|
5065
5247
|
}
|
|
5066
|
-
if (
|
|
5067
|
-
var p = f.children, v = f.value,
|
|
5068
|
-
if (!
|
|
5069
|
-
throw new
|
|
5070
|
-
var
|
|
5071
|
-
return
|
|
5248
|
+
if (Wn(f)) {
|
|
5249
|
+
var p = f.children, v = f.value, H = i[v];
|
|
5250
|
+
if (!Fo(H))
|
|
5251
|
+
throw new Mo(v, "function", o);
|
|
5252
|
+
var Q = pt(p, t, r, n, i, s), G = H(Q.map(function(L) {
|
|
5253
|
+
return L.value;
|
|
5072
5254
|
}));
|
|
5073
|
-
Array.isArray(G) || (G = [G]), a.push.apply(a, G.map(function(
|
|
5255
|
+
Array.isArray(G) || (G = [G]), a.push.apply(a, G.map(function(L) {
|
|
5074
5256
|
return {
|
|
5075
|
-
type: typeof
|
|
5076
|
-
value:
|
|
5257
|
+
type: typeof L == "string" ? R.literal : R.object,
|
|
5258
|
+
value: L
|
|
5077
5259
|
};
|
|
5078
5260
|
}));
|
|
5079
5261
|
}
|
|
5080
|
-
if (
|
|
5081
|
-
var
|
|
5082
|
-
if (!
|
|
5083
|
-
throw new
|
|
5084
|
-
a.push.apply(a,
|
|
5262
|
+
if (Vn(f)) {
|
|
5263
|
+
var k = f.options[h] || f.options.other;
|
|
5264
|
+
if (!k)
|
|
5265
|
+
throw new Mr(f.value, h, Object.keys(f.options), o);
|
|
5266
|
+
a.push.apply(a, pt(k.value, t, r, n, i));
|
|
5085
5267
|
continue;
|
|
5086
5268
|
}
|
|
5087
|
-
if (
|
|
5088
|
-
var
|
|
5089
|
-
if (!
|
|
5269
|
+
if (Xn(f)) {
|
|
5270
|
+
var k = f.options["=".concat(h)];
|
|
5271
|
+
if (!k) {
|
|
5090
5272
|
if (!Intl.PluralRules)
|
|
5091
|
-
throw new
|
|
5273
|
+
throw new Ot(`Intl.PluralRules is not available in this environment.
|
|
5092
5274
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5093
|
-
`,
|
|
5094
|
-
var
|
|
5095
|
-
|
|
5275
|
+
`, Fe.MISSING_INTL_API, o);
|
|
5276
|
+
var w = r.getPluralRules(t, { type: f.pluralType }).select(h - (f.offset || 0));
|
|
5277
|
+
k = f.options[w] || f.options.other;
|
|
5096
5278
|
}
|
|
5097
|
-
if (!
|
|
5098
|
-
throw new
|
|
5099
|
-
a.push.apply(a,
|
|
5279
|
+
if (!k)
|
|
5280
|
+
throw new Mr(f.value, h, Object.keys(f.options), o);
|
|
5281
|
+
a.push.apply(a, pt(k.value, t, r, n, i, h - (f.offset || 0)));
|
|
5100
5282
|
continue;
|
|
5101
5283
|
}
|
|
5102
5284
|
}
|
|
5103
|
-
return
|
|
5285
|
+
return Do(a);
|
|
5104
5286
|
}
|
|
5105
|
-
function
|
|
5106
|
-
return t ?
|
|
5107
|
-
return r[n] =
|
|
5287
|
+
function Uo(e, t) {
|
|
5288
|
+
return t ? J(J(J({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
5289
|
+
return r[n] = J(J({}, e[n]), t[n] || {}), r;
|
|
5108
5290
|
}, {})) : e;
|
|
5109
5291
|
}
|
|
5110
|
-
function
|
|
5292
|
+
function Go(e, t) {
|
|
5111
5293
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
5112
|
-
return r[n] =
|
|
5113
|
-
},
|
|
5294
|
+
return r[n] = Uo(e[n], t[n]), r;
|
|
5295
|
+
}, J({}, e)) : e;
|
|
5114
5296
|
}
|
|
5115
|
-
function
|
|
5297
|
+
function Ut(e) {
|
|
5116
5298
|
return {
|
|
5117
5299
|
create: function() {
|
|
5118
5300
|
return {
|
|
@@ -5126,39 +5308,39 @@ function $t(e) {
|
|
|
5126
5308
|
}
|
|
5127
5309
|
};
|
|
5128
5310
|
}
|
|
5129
|
-
function
|
|
5311
|
+
function ko(e) {
|
|
5130
5312
|
return e === void 0 && (e = {
|
|
5131
5313
|
number: {},
|
|
5132
5314
|
dateTime: {},
|
|
5133
5315
|
pluralRules: {}
|
|
5134
5316
|
}), {
|
|
5135
|
-
getNumberFormat:
|
|
5317
|
+
getNumberFormat: $t(function() {
|
|
5136
5318
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
5137
5319
|
r[n] = arguments[n];
|
|
5138
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
5320
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Mt([void 0], r, !1)))();
|
|
5139
5321
|
}, {
|
|
5140
|
-
cache:
|
|
5141
|
-
strategy:
|
|
5322
|
+
cache: Ut(e.number),
|
|
5323
|
+
strategy: Dt.variadic
|
|
5142
5324
|
}),
|
|
5143
|
-
getDateTimeFormat:
|
|
5325
|
+
getDateTimeFormat: $t(function() {
|
|
5144
5326
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
5145
5327
|
r[n] = arguments[n];
|
|
5146
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
5328
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Mt([void 0], r, !1)))();
|
|
5147
5329
|
}, {
|
|
5148
|
-
cache:
|
|
5149
|
-
strategy:
|
|
5330
|
+
cache: Ut(e.dateTime),
|
|
5331
|
+
strategy: Dt.variadic
|
|
5150
5332
|
}),
|
|
5151
|
-
getPluralRules:
|
|
5333
|
+
getPluralRules: $t(function() {
|
|
5152
5334
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
5153
5335
|
r[n] = arguments[n];
|
|
5154
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
5336
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Mt([void 0], r, !1)))();
|
|
5155
5337
|
}, {
|
|
5156
|
-
cache:
|
|
5157
|
-
strategy:
|
|
5338
|
+
cache: Ut(e.pluralRules),
|
|
5339
|
+
strategy: Dt.variadic
|
|
5158
5340
|
})
|
|
5159
5341
|
};
|
|
5160
5342
|
}
|
|
5161
|
-
var
|
|
5343
|
+
var jo = (
|
|
5162
5344
|
/** @class */
|
|
5163
5345
|
function() {
|
|
5164
5346
|
function e(t, r, n, i) {
|
|
@@ -5168,20 +5350,20 @@ var No = (
|
|
|
5168
5350
|
number: {},
|
|
5169
5351
|
dateTime: {},
|
|
5170
5352
|
pluralRules: {}
|
|
5171
|
-
}, this.format = function(
|
|
5172
|
-
var
|
|
5173
|
-
if (
|
|
5174
|
-
return
|
|
5175
|
-
var f =
|
|
5176
|
-
return !c.length || h.type !==
|
|
5353
|
+
}, this.format = function(u) {
|
|
5354
|
+
var l = s.formatToParts(u);
|
|
5355
|
+
if (l.length === 1)
|
|
5356
|
+
return l[0].value;
|
|
5357
|
+
var f = l.reduce(function(c, h) {
|
|
5358
|
+
return !c.length || h.type !== R.literal || typeof c[c.length - 1] != "string" ? c.push(h.value) : c[c.length - 1] += h.value, c;
|
|
5177
5359
|
}, []);
|
|
5178
5360
|
return f.length <= 1 ? f[0] || "" : f;
|
|
5179
|
-
}, this.formatToParts = function(
|
|
5180
|
-
return
|
|
5361
|
+
}, this.formatToParts = function(u) {
|
|
5362
|
+
return pt(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
|
|
5181
5363
|
}, this.resolvedOptions = function() {
|
|
5182
|
-
var
|
|
5364
|
+
var u;
|
|
5183
5365
|
return {
|
|
5184
|
-
locale: ((
|
|
5366
|
+
locale: ((u = s.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
5185
5367
|
};
|
|
5186
5368
|
}, this.getAst = function() {
|
|
5187
5369
|
return s.ast;
|
|
@@ -5190,13 +5372,13 @@ var No = (
|
|
|
5190
5372
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
5191
5373
|
var o = i || {};
|
|
5192
5374
|
o.formatters;
|
|
5193
|
-
var a =
|
|
5194
|
-
this.ast = e.__parse(t,
|
|
5375
|
+
var a = Qs(o, ["formatters"]);
|
|
5376
|
+
this.ast = e.__parse(t, J(J({}, a), { locale: this.resolvedLocale }));
|
|
5195
5377
|
} else
|
|
5196
5378
|
this.ast = t;
|
|
5197
5379
|
if (!Array.isArray(this.ast))
|
|
5198
5380
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
5199
|
-
this.formats =
|
|
5381
|
+
this.formats = Go(e.formats, n), this.formatters = i && i.formatters || ko(this.formatterCache);
|
|
5200
5382
|
}
|
|
5201
5383
|
return Object.defineProperty(e, "defaultLocale", {
|
|
5202
5384
|
get: function() {
|
|
@@ -5209,7 +5391,7 @@ var No = (
|
|
|
5209
5391
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
5210
5392
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
5211
5393
|
}
|
|
5212
|
-
}, e.__parse =
|
|
5394
|
+
}, e.__parse = Co, e.formats = {
|
|
5213
5395
|
number: {
|
|
5214
5396
|
integer: {
|
|
5215
5397
|
maximumFractionDigits: 0
|
|
@@ -5270,7 +5452,7 @@ var No = (
|
|
|
5270
5452
|
}, e;
|
|
5271
5453
|
}()
|
|
5272
5454
|
);
|
|
5273
|
-
function
|
|
5455
|
+
function Vo(e, t) {
|
|
5274
5456
|
if (t == null)
|
|
5275
5457
|
return;
|
|
5276
5458
|
if (t in e)
|
|
@@ -5291,92 +5473,92 @@ function Oo(e, t) {
|
|
|
5291
5473
|
n = void 0;
|
|
5292
5474
|
return n;
|
|
5293
5475
|
}
|
|
5294
|
-
const
|
|
5476
|
+
const ce = {}, Xo = (e, t, r) => r && (t in ce || (ce[t] = {}), e in ce[t] || (ce[t][e] = r), r), ti = (e, t) => {
|
|
5295
5477
|
if (t == null)
|
|
5296
5478
|
return;
|
|
5297
|
-
if (t in
|
|
5298
|
-
return
|
|
5299
|
-
const r =
|
|
5479
|
+
if (t in ce && e in ce[t])
|
|
5480
|
+
return ce[t][e];
|
|
5481
|
+
const r = Lt(t);
|
|
5300
5482
|
for (let n = 0; n < r.length; n++) {
|
|
5301
|
-
const i = r[n], s =
|
|
5483
|
+
const i = r[n], s = zo(i, e);
|
|
5302
5484
|
if (s)
|
|
5303
|
-
return
|
|
5485
|
+
return Xo(e, t, s);
|
|
5304
5486
|
}
|
|
5305
5487
|
};
|
|
5306
|
-
let
|
|
5307
|
-
const
|
|
5308
|
-
function
|
|
5309
|
-
return
|
|
5488
|
+
let vr;
|
|
5489
|
+
const ke = Pt({});
|
|
5490
|
+
function Wo(e) {
|
|
5491
|
+
return vr[e] || null;
|
|
5310
5492
|
}
|
|
5311
|
-
function
|
|
5312
|
-
return e in
|
|
5493
|
+
function ri(e) {
|
|
5494
|
+
return e in vr;
|
|
5313
5495
|
}
|
|
5314
|
-
function
|
|
5315
|
-
if (!
|
|
5496
|
+
function zo(e, t) {
|
|
5497
|
+
if (!ri(e))
|
|
5316
5498
|
return null;
|
|
5317
|
-
const r =
|
|
5318
|
-
return
|
|
5499
|
+
const r = Wo(e);
|
|
5500
|
+
return Vo(r, t);
|
|
5319
5501
|
}
|
|
5320
|
-
function
|
|
5502
|
+
function qo(e) {
|
|
5321
5503
|
if (e == null)
|
|
5322
5504
|
return;
|
|
5323
|
-
const t =
|
|
5505
|
+
const t = Lt(e);
|
|
5324
5506
|
for (let r = 0; r < t.length; r++) {
|
|
5325
5507
|
const n = t[r];
|
|
5326
|
-
if (
|
|
5508
|
+
if (ri(n))
|
|
5327
5509
|
return n;
|
|
5328
5510
|
}
|
|
5329
5511
|
}
|
|
5330
|
-
function
|
|
5331
|
-
delete
|
|
5512
|
+
function ni(e, ...t) {
|
|
5513
|
+
delete ce[e], ke.update((r) => (r[e] = Ys.all([r[e] || {}, ...t]), r));
|
|
5332
5514
|
}
|
|
5333
|
-
|
|
5334
|
-
[
|
|
5515
|
+
Ge(
|
|
5516
|
+
[ke],
|
|
5335
5517
|
([e]) => Object.keys(e)
|
|
5336
5518
|
);
|
|
5337
|
-
|
|
5338
|
-
const
|
|
5339
|
-
function
|
|
5340
|
-
|
|
5519
|
+
ke.subscribe((e) => vr = e);
|
|
5520
|
+
const vt = {};
|
|
5521
|
+
function Zo(e, t) {
|
|
5522
|
+
vt[e].delete(t), vt[e].size === 0 && delete vt[e];
|
|
5341
5523
|
}
|
|
5342
|
-
function
|
|
5343
|
-
return
|
|
5524
|
+
function ii(e) {
|
|
5525
|
+
return vt[e];
|
|
5344
5526
|
}
|
|
5345
|
-
function
|
|
5346
|
-
return
|
|
5347
|
-
const r =
|
|
5527
|
+
function Yo(e) {
|
|
5528
|
+
return Lt(e).map((t) => {
|
|
5529
|
+
const r = ii(t);
|
|
5348
5530
|
return [t, r ? [...r] : []];
|
|
5349
5531
|
}).filter(([, t]) => t.length > 0);
|
|
5350
5532
|
}
|
|
5351
|
-
function
|
|
5352
|
-
return e == null ? !1 :
|
|
5533
|
+
function rr(e) {
|
|
5534
|
+
return e == null ? !1 : Lt(e).some(
|
|
5353
5535
|
(t) => {
|
|
5354
5536
|
var r;
|
|
5355
|
-
return (r =
|
|
5537
|
+
return (r = ii(t)) == null ? void 0 : r.size;
|
|
5356
5538
|
}
|
|
5357
5539
|
);
|
|
5358
5540
|
}
|
|
5359
|
-
function
|
|
5541
|
+
function Qo(e, t) {
|
|
5360
5542
|
return Promise.all(
|
|
5361
|
-
t.map((n) => (
|
|
5362
|
-
).then((n) =>
|
|
5363
|
-
}
|
|
5364
|
-
const
|
|
5365
|
-
function
|
|
5366
|
-
if (!
|
|
5367
|
-
return e in
|
|
5368
|
-
const t =
|
|
5369
|
-
return
|
|
5543
|
+
t.map((n) => (Zo(e, n), n().then((i) => i.default || i)))
|
|
5544
|
+
).then((n) => ni(e, ...n));
|
|
5545
|
+
}
|
|
5546
|
+
const ze = {};
|
|
5547
|
+
function si(e) {
|
|
5548
|
+
if (!rr(e))
|
|
5549
|
+
return e in ze ? ze[e] : Promise.resolve();
|
|
5550
|
+
const t = Yo(e);
|
|
5551
|
+
return ze[e] = Promise.all(
|
|
5370
5552
|
t.map(
|
|
5371
|
-
([r, n]) =>
|
|
5553
|
+
([r, n]) => Qo(r, n)
|
|
5372
5554
|
)
|
|
5373
5555
|
).then(() => {
|
|
5374
|
-
if (
|
|
5375
|
-
return
|
|
5376
|
-
delete
|
|
5377
|
-
}),
|
|
5556
|
+
if (rr(e))
|
|
5557
|
+
return si(e);
|
|
5558
|
+
delete ze[e];
|
|
5559
|
+
}), ze[e];
|
|
5378
5560
|
}
|
|
5379
|
-
const
|
|
5561
|
+
const Jo = {
|
|
5380
5562
|
number: {
|
|
5381
5563
|
scientific: { notation: "scientific" },
|
|
5382
5564
|
engineering: { notation: "engineering" },
|
|
@@ -5405,150 +5587,150 @@ const Uo = {
|
|
|
5405
5587
|
timeZoneName: "short"
|
|
5406
5588
|
}
|
|
5407
5589
|
}
|
|
5408
|
-
},
|
|
5590
|
+
}, Ko = {
|
|
5409
5591
|
fallbackLocale: null,
|
|
5410
5592
|
loadingDelay: 200,
|
|
5411
|
-
formats:
|
|
5593
|
+
formats: Jo,
|
|
5412
5594
|
warnOnMissingMessages: !0,
|
|
5413
5595
|
handleMissingMessage: void 0,
|
|
5414
5596
|
ignoreTag: !0
|
|
5415
|
-
},
|
|
5416
|
-
function
|
|
5417
|
-
return
|
|
5597
|
+
}, ea = Ko;
|
|
5598
|
+
function Ue() {
|
|
5599
|
+
return ea;
|
|
5418
5600
|
}
|
|
5419
|
-
const
|
|
5420
|
-
var
|
|
5601
|
+
const Gt = Pt(!1);
|
|
5602
|
+
var ta = Object.defineProperty, ra = Object.defineProperties, na = Object.getOwnPropertyDescriptors, $r = Object.getOwnPropertySymbols, ia = Object.prototype.hasOwnProperty, sa = Object.prototype.propertyIsEnumerable, Dr = (e, t, r) => t in e ? ta(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, oa = (e, t) => {
|
|
5421
5603
|
for (var r in t || (t = {}))
|
|
5422
|
-
|
|
5423
|
-
if (
|
|
5424
|
-
for (var r of
|
|
5425
|
-
|
|
5604
|
+
ia.call(t, r) && Dr(e, r, t[r]);
|
|
5605
|
+
if ($r)
|
|
5606
|
+
for (var r of $r(t))
|
|
5607
|
+
sa.call(t, r) && Dr(e, r, t[r]);
|
|
5426
5608
|
return e;
|
|
5427
|
-
},
|
|
5428
|
-
let
|
|
5429
|
-
const
|
|
5430
|
-
function
|
|
5609
|
+
}, aa = (e, t) => ra(e, na(t));
|
|
5610
|
+
let nr;
|
|
5611
|
+
const wt = Pt(null);
|
|
5612
|
+
function Fr(e) {
|
|
5431
5613
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
5432
5614
|
}
|
|
5433
|
-
function
|
|
5434
|
-
const r =
|
|
5435
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
5615
|
+
function Lt(e, t = Ue().fallbackLocale) {
|
|
5616
|
+
const r = Fr(e);
|
|
5617
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Fr(t)])] : r;
|
|
5436
5618
|
}
|
|
5437
5619
|
function He() {
|
|
5438
|
-
return
|
|
5620
|
+
return nr ?? void 0;
|
|
5439
5621
|
}
|
|
5440
|
-
|
|
5441
|
-
|
|
5622
|
+
wt.subscribe((e) => {
|
|
5623
|
+
nr = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
5442
5624
|
});
|
|
5443
|
-
const
|
|
5444
|
-
if (e &&
|
|
5445
|
-
const { loadingDelay: t } =
|
|
5625
|
+
const ua = (e) => {
|
|
5626
|
+
if (e && qo(e) && rr(e)) {
|
|
5627
|
+
const { loadingDelay: t } = Ue();
|
|
5446
5628
|
let r;
|
|
5447
5629
|
return typeof window < "u" && He() != null && t ? r = window.setTimeout(
|
|
5448
|
-
() =>
|
|
5630
|
+
() => Gt.set(!0),
|
|
5449
5631
|
t
|
|
5450
|
-
) :
|
|
5451
|
-
|
|
5632
|
+
) : Gt.set(!0), si(e).then(() => {
|
|
5633
|
+
wt.set(e);
|
|
5452
5634
|
}).finally(() => {
|
|
5453
|
-
clearTimeout(r),
|
|
5635
|
+
clearTimeout(r), Gt.set(!1);
|
|
5454
5636
|
});
|
|
5455
5637
|
}
|
|
5456
|
-
return
|
|
5457
|
-
}, Te =
|
|
5458
|
-
set:
|
|
5459
|
-
}),
|
|
5638
|
+
return wt.set(e);
|
|
5639
|
+
}, Te = aa(oa({}, wt), {
|
|
5640
|
+
set: ua
|
|
5641
|
+
}), It = (e) => {
|
|
5460
5642
|
const t = /* @__PURE__ */ Object.create(null);
|
|
5461
5643
|
return (n) => {
|
|
5462
5644
|
const i = JSON.stringify(n);
|
|
5463
5645
|
return i in t ? t[i] : t[i] = e(n);
|
|
5464
5646
|
};
|
|
5465
5647
|
};
|
|
5466
|
-
var
|
|
5648
|
+
var la = Object.defineProperty, Tt = Object.getOwnPropertySymbols, oi = Object.prototype.hasOwnProperty, ai = Object.prototype.propertyIsEnumerable, Ur = (e, t, r) => t in e ? la(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _r = (e, t) => {
|
|
5467
5649
|
for (var r in t || (t = {}))
|
|
5468
|
-
|
|
5469
|
-
if (
|
|
5470
|
-
for (var r of
|
|
5471
|
-
|
|
5650
|
+
oi.call(t, r) && Ur(e, r, t[r]);
|
|
5651
|
+
if (Tt)
|
|
5652
|
+
for (var r of Tt(t))
|
|
5653
|
+
ai.call(t, r) && Ur(e, r, t[r]);
|
|
5472
5654
|
return e;
|
|
5473
|
-
},
|
|
5655
|
+
}, je = (e, t) => {
|
|
5474
5656
|
var r = {};
|
|
5475
5657
|
for (var n in e)
|
|
5476
|
-
|
|
5477
|
-
if (e != null &&
|
|
5478
|
-
for (var n of
|
|
5479
|
-
t.indexOf(n) < 0 &&
|
|
5658
|
+
oi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
5659
|
+
if (e != null && Tt)
|
|
5660
|
+
for (var n of Tt(e))
|
|
5661
|
+
t.indexOf(n) < 0 && ai.call(e, n) && (r[n] = e[n]);
|
|
5480
5662
|
return r;
|
|
5481
5663
|
};
|
|
5482
|
-
const
|
|
5483
|
-
const { formats: r } =
|
|
5664
|
+
const nt = (e, t) => {
|
|
5665
|
+
const { formats: r } = Ue();
|
|
5484
5666
|
if (e in r && t in r[e])
|
|
5485
5667
|
return r[e][t];
|
|
5486
5668
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
5487
|
-
},
|
|
5669
|
+
}, fa = It(
|
|
5488
5670
|
(e) => {
|
|
5489
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
5671
|
+
var t = e, { locale: r, format: n } = t, i = je(t, ["locale", "format"]);
|
|
5490
5672
|
if (r == null)
|
|
5491
5673
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
5492
|
-
return n && (i =
|
|
5674
|
+
return n && (i = nt("number", n)), new Intl.NumberFormat(r, i);
|
|
5493
5675
|
}
|
|
5494
|
-
),
|
|
5676
|
+
), ha = It(
|
|
5495
5677
|
(e) => {
|
|
5496
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
5678
|
+
var t = e, { locale: r, format: n } = t, i = je(t, ["locale", "format"]);
|
|
5497
5679
|
if (r == null)
|
|
5498
5680
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
5499
|
-
return n ? i =
|
|
5681
|
+
return n ? i = nt("date", n) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
5500
5682
|
}
|
|
5501
|
-
),
|
|
5683
|
+
), ca = It(
|
|
5502
5684
|
(e) => {
|
|
5503
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
5685
|
+
var t = e, { locale: r, format: n } = t, i = je(t, ["locale", "format"]);
|
|
5504
5686
|
if (r == null)
|
|
5505
5687
|
throw new Error(
|
|
5506
5688
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
5507
5689
|
);
|
|
5508
|
-
return n ? i =
|
|
5690
|
+
return n ? i = nt("time", n) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
5509
5691
|
}
|
|
5510
|
-
),
|
|
5692
|
+
), da = (e = {}) => {
|
|
5511
5693
|
var t = e, {
|
|
5512
5694
|
locale: r = He()
|
|
5513
|
-
} = t, n =
|
|
5695
|
+
} = t, n = je(t, [
|
|
5514
5696
|
"locale"
|
|
5515
5697
|
]);
|
|
5516
|
-
return
|
|
5517
|
-
},
|
|
5698
|
+
return fa(_r({ locale: r }, n));
|
|
5699
|
+
}, pa = (e = {}) => {
|
|
5518
5700
|
var t = e, {
|
|
5519
5701
|
locale: r = He()
|
|
5520
|
-
} = t, n =
|
|
5702
|
+
} = t, n = je(t, [
|
|
5521
5703
|
"locale"
|
|
5522
5704
|
]);
|
|
5523
|
-
return
|
|
5524
|
-
},
|
|
5705
|
+
return ha(_r({ locale: r }, n));
|
|
5706
|
+
}, va = (e = {}) => {
|
|
5525
5707
|
var t = e, {
|
|
5526
5708
|
locale: r = He()
|
|
5527
|
-
} = t, n =
|
|
5709
|
+
} = t, n = je(t, [
|
|
5528
5710
|
"locale"
|
|
5529
5711
|
]);
|
|
5530
|
-
return
|
|
5531
|
-
},
|
|
5712
|
+
return ca(_r({ locale: r }, n));
|
|
5713
|
+
}, _a = It(
|
|
5532
5714
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
5533
|
-
(e, t = He()) => new
|
|
5534
|
-
ignoreTag:
|
|
5715
|
+
(e, t = He()) => new jo(e, t, Ue().formats, {
|
|
5716
|
+
ignoreTag: Ue().ignoreTag
|
|
5535
5717
|
})
|
|
5536
|
-
),
|
|
5718
|
+
), ma = (e, t = {}) => {
|
|
5537
5719
|
var r, n, i, s;
|
|
5538
5720
|
let o = t;
|
|
5539
5721
|
typeof e == "object" && (o = e, e = o.id);
|
|
5540
5722
|
const {
|
|
5541
5723
|
values: a,
|
|
5542
|
-
locale:
|
|
5543
|
-
default:
|
|
5724
|
+
locale: u = He(),
|
|
5725
|
+
default: l
|
|
5544
5726
|
} = o;
|
|
5545
|
-
if (
|
|
5727
|
+
if (u == null)
|
|
5546
5728
|
throw new Error(
|
|
5547
5729
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
5548
5730
|
);
|
|
5549
|
-
let f =
|
|
5731
|
+
let f = ti(e, u);
|
|
5550
5732
|
if (!f)
|
|
5551
|
-
f = (s = (i = (n = (r =
|
|
5733
|
+
f = (s = (i = (n = (r = Ue()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
|
5552
5734
|
else if (typeof f != "string")
|
|
5553
5735
|
return console.warn(
|
|
5554
5736
|
`[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.`
|
|
@@ -5557,7 +5739,7 @@ const Je = (e, t) => {
|
|
|
5557
5739
|
return f;
|
|
5558
5740
|
let c = f;
|
|
5559
5741
|
try {
|
|
5560
|
-
c =
|
|
5742
|
+
c = _a(f, u).format(a);
|
|
5561
5743
|
} catch (h) {
|
|
5562
5744
|
h instanceof Error && console.warn(
|
|
5563
5745
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -5565,20 +5747,20 @@ const Je = (e, t) => {
|
|
|
5565
5747
|
);
|
|
5566
5748
|
}
|
|
5567
5749
|
return c;
|
|
5568
|
-
},
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
function
|
|
5750
|
+
}, ba = (e, t) => va(t).format(e), ga = (e, t) => pa(t).format(e), ya = (e, t) => da(t).format(e), Ea = (e, t = He()) => ti(e, t), xa = Ge([Te, ke], () => ma);
|
|
5751
|
+
Ge([Te], () => ba);
|
|
5752
|
+
Ge([Te], () => ga);
|
|
5753
|
+
Ge([Te], () => ya);
|
|
5754
|
+
Ge([Te, ke], () => Ea);
|
|
5755
|
+
function wa({ withLocale: e, translations: t }) {
|
|
5574
5756
|
Te.subscribe((r) => {
|
|
5575
|
-
r == null && (
|
|
5757
|
+
r == null && (ke.set(t), Te.set(e));
|
|
5576
5758
|
});
|
|
5577
5759
|
}
|
|
5578
|
-
function
|
|
5579
|
-
|
|
5760
|
+
function Ta(e, t) {
|
|
5761
|
+
ni(e, t);
|
|
5580
5762
|
}
|
|
5581
|
-
const
|
|
5763
|
+
const Sa = {
|
|
5582
5764
|
en: {
|
|
5583
5765
|
tokens: "Tokens",
|
|
5584
5766
|
tokenBalance: "Token Balance",
|
|
@@ -5590,66 +5772,94 @@ const ca = {
|
|
|
5590
5772
|
requestRakeback: "Rakeback Talebi"
|
|
5591
5773
|
}
|
|
5592
5774
|
};
|
|
5593
|
-
var
|
|
5594
|
-
const
|
|
5775
|
+
var Ha = /* @__PURE__ */ Rn('<div class="loyalty-points svelte-x3lw9i"><div class="loyalty-points__content svelte-x3lw9i"><div class="loyalty-points__value svelte-x3lw9i"><span class="loyalty-points__skeleton loyalty-points__skeleton--amount svelte-x3lw9i"></span> <span class="loyalty-points__skeleton loyalty-points__skeleton--description svelte-x3lw9i"></span></div></div></div>'), Aa = /* @__PURE__ */ Rn('<div class="loyalty-points svelte-x3lw9i"><div class="loyalty-points__content svelte-x3lw9i"><div class="loyalty-points__value svelte-x3lw9i"><span class="loyalty-points__amount svelte-x3lw9i"> </span> <span class="loyalty-points__description svelte-x3lw9i"> </span></div></div></div>');
|
|
5776
|
+
const Ba = {
|
|
5595
5777
|
hash: "svelte-x3lw9i",
|
|
5596
|
-
code:
|
|
5778
|
+
code: `.loyalty-points.svelte-x3lw9i {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-x3lw9i {display:flex;align-items:center;justify-content:space-between;gap:12px;}.loyalty-points__value.svelte-x3lw9i {display:flex;flex-direction:column;gap:6px;}.loyalty-points__amount.svelte-x3lw9i {color:var(--text-default, #FFFFFF);font-size:16px;font-weight:700;line-height:140%;}.loyalty-points__description.svelte-x3lw9i {color:var(--text-subtle, #DFE3E8);font-size:14px;font-weight:400;}.loyalty-points__skeleton.svelte-x3lw9i {display:block;border-radius:6px;background:linear-gradient(
|
|
5779
|
+
90deg,
|
|
5780
|
+
var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 0%,
|
|
5781
|
+
color-mix(in srgb, var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 80%, white) 50%,
|
|
5782
|
+
var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 100%
|
|
5783
|
+
);background-size:200% 100%;
|
|
5784
|
+
animation: svelte-x3lw9i-shimmer 3s linear infinite;}.loyalty-points__skeleton--amount.svelte-x3lw9i {width:120px;height:22px;}.loyalty-points__skeleton--description.svelte-x3lw9i {width:90px;height:20px;}
|
|
5785
|
+
|
|
5786
|
+
@keyframes svelte-x3lw9i-shimmer {
|
|
5787
|
+
0% {
|
|
5788
|
+
background-position: 200% 0;
|
|
5789
|
+
}
|
|
5790
|
+
|
|
5791
|
+
100% {
|
|
5792
|
+
background-position: -200% 0;
|
|
5793
|
+
}
|
|
5794
|
+
}`
|
|
5597
5795
|
};
|
|
5598
|
-
function
|
|
5599
|
-
|
|
5600
|
-
const r = () =>
|
|
5796
|
+
function Pa(e, t) {
|
|
5797
|
+
Yr(t, !0), Es(e, Ba);
|
|
5798
|
+
const r = () => Ts(xa, "$_", n), [n, i] = Ss(), s = ft(t, "apiEndpoint", 7, ""), o = ft(t, "userSession", 7, ""), a = ft(t, "locale", 7, ""), u = ft(t, "onLevelLoaded", 7, (w) => {
|
|
5601
5799
|
});
|
|
5602
|
-
|
|
5603
|
-
|
|
5800
|
+
wa({ withLocale: a(), translations: {} }), Object.entries(Sa).forEach(([w, L]) => {
|
|
5801
|
+
Ta(w, L);
|
|
5604
5802
|
});
|
|
5605
|
-
const
|
|
5803
|
+
const l = Rs(() => ({
|
|
5606
5804
|
apiEndpoint: s(),
|
|
5607
5805
|
userSession: o(),
|
|
5608
5806
|
locale: a(),
|
|
5609
5807
|
loadLevels: !1,
|
|
5610
|
-
onLevelLoaded:
|
|
5611
|
-
})), f = /* @__PURE__ */
|
|
5612
|
-
var
|
|
5808
|
+
onLevelLoaded: u()
|
|
5809
|
+
})), f = /* @__PURE__ */ ut(() => l.spendableWalletTotal), c = /* @__PURE__ */ ut(() => y(f)?.points ?? 0), h = /* @__PURE__ */ ut(() => y(c).toLocaleString()), d = /* @__PURE__ */ ut(() => l.loading && y(f) === void 0);
|
|
5810
|
+
var p = {
|
|
5613
5811
|
get apiEndpoint() {
|
|
5614
5812
|
return s();
|
|
5615
5813
|
},
|
|
5616
|
-
set apiEndpoint(
|
|
5617
|
-
s(
|
|
5814
|
+
set apiEndpoint(w = "") {
|
|
5815
|
+
s(w), Oe();
|
|
5618
5816
|
},
|
|
5619
5817
|
get userSession() {
|
|
5620
5818
|
return o();
|
|
5621
5819
|
},
|
|
5622
|
-
set userSession(
|
|
5623
|
-
o(
|
|
5820
|
+
set userSession(w = "") {
|
|
5821
|
+
o(w), Oe();
|
|
5624
5822
|
},
|
|
5625
5823
|
get locale() {
|
|
5626
5824
|
return a();
|
|
5627
5825
|
},
|
|
5628
|
-
set locale(
|
|
5629
|
-
a(
|
|
5826
|
+
set locale(w = "") {
|
|
5827
|
+
a(w), Oe();
|
|
5630
5828
|
},
|
|
5631
5829
|
get onLevelLoaded() {
|
|
5632
|
-
return
|
|
5830
|
+
return u();
|
|
5633
5831
|
},
|
|
5634
|
-
set onLevelLoaded(
|
|
5832
|
+
set onLevelLoaded(w = (L) => {
|
|
5635
5833
|
}) {
|
|
5636
|
-
|
|
5834
|
+
u(w), Oe();
|
|
5637
5835
|
}
|
|
5638
|
-
},
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5836
|
+
}, v = ps(), H = Zi(v);
|
|
5837
|
+
{
|
|
5838
|
+
var Q = (w) => {
|
|
5839
|
+
var L = Ha();
|
|
5840
|
+
ct(w, L);
|
|
5841
|
+
}, G = (w) => {
|
|
5842
|
+
var L = Aa(), be = We(L), Ve = We(be), Rt = We(Ve), ui = We(Rt);
|
|
5843
|
+
Xe(Rt);
|
|
5844
|
+
var mr = Yi(Rt, 2), li = We(mr, !0);
|
|
5845
|
+
Xe(mr), Xe(Ve), Xe(be), Xe(L), ss(
|
|
5846
|
+
(fi, hi) => {
|
|
5847
|
+
Ar(ui, `${y(h) ?? ""}
|
|
5848
|
+
${fi ?? ""}`), Ar(li, hi);
|
|
5849
|
+
},
|
|
5850
|
+
[() => r()("tokens"), () => r()("tokenBalance")]
|
|
5851
|
+
), ct(w, L);
|
|
5852
|
+
};
|
|
5853
|
+
ys(H, (w) => {
|
|
5854
|
+
y(d) ? w(Q) : w(G, !1);
|
|
5855
|
+
});
|
|
5856
|
+
}
|
|
5857
|
+
ct(e, v);
|
|
5858
|
+
var k = Qr(p);
|
|
5859
|
+
return i(), k;
|
|
5650
5860
|
}
|
|
5651
|
-
customElements.define("loyalty-points-card",
|
|
5652
|
-
|
|
5861
|
+
customElements.define("loyalty-points-card", Ps(
|
|
5862
|
+
Pa,
|
|
5653
5863
|
{
|
|
5654
5864
|
apiEndpoint: {},
|
|
5655
5865
|
userSession: {},
|
|
@@ -5661,5 +5871,5 @@ customElements.define("loyalty-points-card", vs(
|
|
|
5661
5871
|
!1
|
|
5662
5872
|
));
|
|
5663
5873
|
export {
|
|
5664
|
-
|
|
5874
|
+
Pa as L
|
|
5665
5875
|
};
|