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