@everymatrix/loyalty-marketing-content 0.1.23 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/LoyaltyMarketingContent-BPQkkmgl.cjs +8 -0
- package/components/{LoyaltyMarketingContent-CM703ntv.js → LoyaltyMarketingContent-C0t78SGq.js} +1155 -1129
- package/components/{LoyaltyMarketingContent-DUTiyunh.js → LoyaltyMarketingContent-DL8aJQ7R.js} +1667 -1641
- package/components/LoyaltyMarketingContent-DP7irbD-.cjs +8 -0
- package/es2015/loyalty-marketing-content.cjs +1 -1
- package/es2015/loyalty-marketing-content.js +2 -2
- package/esnext/loyalty-marketing-content.cjs +1 -1
- package/esnext/loyalty-marketing-content.js +2 -2
- package/package.json +1 -1
- package/components/LoyaltyMarketingContent-B4x_jhji.cjs +0 -8
- package/components/LoyaltyMarketingContent-Sr7y1Aoo.cjs +0 -8
package/components/{LoyaltyMarketingContent-CM703ntv.js → LoyaltyMarketingContent-C0t78SGq.js}
RENAMED
|
@@ -5,24 +5,24 @@ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
|
5
5
|
} });
|
|
6
6
|
const ds = "5";
|
|
7
7
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(ds);
|
|
8
|
-
const ps = 1, vs = 2, ms = 16, gs = 2,
|
|
9
|
-
var
|
|
8
|
+
const ps = 1, vs = 2, ms = 16, gs = 2, qn = "[", Qr = "[!", vn = "[?", Yr = "]", ft = {}, z = Symbol("uninitialized"), _s = "http://www.w3.org/1999/xhtml", Vn = !1;
|
|
9
|
+
var zn = Array.isArray, bs = Array.prototype.indexOf, Yt = Array.prototype.includes, sr = Array.from, Zt = Object.keys, ht = Object.defineProperty, ot = Object.getOwnPropertyDescriptor, ys = Object.getOwnPropertyDescriptors, Es = Object.prototype, xs = Array.prototype, Wn = Object.getPrototypeOf, mn = Object.isExtensible;
|
|
10
10
|
const Be = () => {
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function Xn(e) {
|
|
13
13
|
for (var t = 0; t < e.length; t++)
|
|
14
14
|
e[t]();
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Qn() {
|
|
17
17
|
var e, t, r = new Promise((n, i) => {
|
|
18
18
|
e = n, t = i;
|
|
19
19
|
});
|
|
20
20
|
return { promise: r, resolve: e, reject: t };
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const Z = 2, ct = 4, ar = 8, Yn = 1 << 24, de = 16, ge = 32, Se = 64, Tr = 128, Zr = 256, me = 512, W = 1024, q = 2048, oe = 4096, K = 8192, ee = 16384, Je = 32768, Ar = 1 << 25, Ct = 65536, Jt = 1 << 17, ws = 1 << 18, Ke = 1 << 19, Ss = 1 << 20, Oe = 1 << 25, Kt = 1 << 21, ut = 1 << 22, ke = 1 << 23, pr = Symbol("$state"), Zn = Symbol("component"), Ts = Symbol("legacy props"), Jn = Symbol("attributes"), Nr = Symbol("class"), As = Symbol("style"), Hr = Symbol("text"), kt = new class extends Error {
|
|
23
23
|
name = "StaleReactionError";
|
|
24
24
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
25
|
-
}(),
|
|
25
|
+
}(), Jr = 3, Ft = 8;
|
|
26
26
|
function Ns() {
|
|
27
27
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
28
28
|
}
|
|
@@ -33,22 +33,22 @@ function Hs() {
|
|
|
33
33
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
34
34
|
}
|
|
35
35
|
let L = !1;
|
|
36
|
-
function
|
|
36
|
+
function Ve(e) {
|
|
37
37
|
L = e;
|
|
38
38
|
}
|
|
39
39
|
let k;
|
|
40
40
|
function ue(e) {
|
|
41
41
|
if (e === null)
|
|
42
|
-
throw or(),
|
|
42
|
+
throw or(), ft;
|
|
43
43
|
return k = e;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Kr() {
|
|
46
46
|
return ue(/* @__PURE__ */ Pe(k));
|
|
47
47
|
}
|
|
48
48
|
function st(e) {
|
|
49
49
|
if (L) {
|
|
50
50
|
if (/* @__PURE__ */ Pe(k) !== null)
|
|
51
|
-
throw or(),
|
|
51
|
+
throw or(), ft;
|
|
52
52
|
k = e;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -67,10 +67,10 @@ function Or(e = !0) {
|
|
|
67
67
|
/** @type {Comment} */
|
|
68
68
|
r.data
|
|
69
69
|
);
|
|
70
|
-
if (n ===
|
|
70
|
+
if (n === Yr) {
|
|
71
71
|
if (t === 0) return r;
|
|
72
72
|
t -= 1;
|
|
73
|
-
} else (n ===
|
|
73
|
+
} else (n === qn || n === Qr || // "[1", "[2", etc. for if blocks
|
|
74
74
|
n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
|
|
75
75
|
}
|
|
76
76
|
var i = (
|
|
@@ -82,20 +82,20 @@ function Or(e = !0) {
|
|
|
82
82
|
}
|
|
83
83
|
function $s(e) {
|
|
84
84
|
if (!e || e.nodeType !== Ft)
|
|
85
|
-
throw or(),
|
|
85
|
+
throw or(), ft;
|
|
86
86
|
return (
|
|
87
87
|
/** @type {Comment} */
|
|
88
88
|
e.data
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Kn(e) {
|
|
92
92
|
return e === this.v;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function ei(e, t) {
|
|
95
95
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
return !
|
|
97
|
+
function ti(e) {
|
|
98
|
+
return !ei(e, this.v);
|
|
99
99
|
}
|
|
100
100
|
function Bs() {
|
|
101
101
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
@@ -122,10 +122,10 @@ function Ds() {
|
|
|
122
122
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
123
123
|
}
|
|
124
124
|
let ks = !1, _e = null;
|
|
125
|
-
function
|
|
125
|
+
function dt(e) {
|
|
126
126
|
_e = e;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function en(e, t = !1, r) {
|
|
129
129
|
_e = {
|
|
130
130
|
p: _e,
|
|
131
131
|
i: !1,
|
|
@@ -135,12 +135,12 @@ function Kr(e, t = !1, r) {
|
|
|
135
135
|
x: null,
|
|
136
136
|
r: (
|
|
137
137
|
/** @type {Effect} */
|
|
138
|
-
|
|
138
|
+
$
|
|
139
139
|
),
|
|
140
140
|
l: null
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function tn(e) {
|
|
144
144
|
var t = (
|
|
145
145
|
/** @type {ComponentContext} */
|
|
146
146
|
_e
|
|
@@ -148,171 +148,46 @@ function en(e) {
|
|
|
148
148
|
if (r !== null) {
|
|
149
149
|
t.e = null;
|
|
150
150
|
for (var n of r)
|
|
151
|
-
|
|
151
|
+
ea(n);
|
|
152
152
|
}
|
|
153
|
-
return e !== void 0 && (t.x = e), t.i = !0, _e = t.p,
|
|
153
|
+
return e !== void 0 && (t.x = e), t.i = !0, _e = t.p, ri(e);
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
return
|
|
155
|
+
function ri(e = {}) {
|
|
156
|
+
return ht(e, Zn, { value: !0 }), e;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function ni() {
|
|
159
159
|
return !0;
|
|
160
160
|
}
|
|
161
|
-
let
|
|
162
|
-
function
|
|
163
|
-
var e =
|
|
164
|
-
|
|
161
|
+
let ze = [];
|
|
162
|
+
function ii() {
|
|
163
|
+
var e = ze;
|
|
164
|
+
ze = [], Xn(e);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
if (
|
|
168
|
-
var t =
|
|
166
|
+
function We(e) {
|
|
167
|
+
if (ze.length === 0 && !Mt) {
|
|
168
|
+
var t = ze;
|
|
169
169
|
queueMicrotask(() => {
|
|
170
|
-
t ===
|
|
170
|
+
t === ze && ii();
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
|
|
173
|
+
ze.push(e);
|
|
174
174
|
}
|
|
175
175
|
function Fs() {
|
|
176
|
-
for (;
|
|
177
|
-
|
|
176
|
+
for (; ze.length > 0; )
|
|
177
|
+
ii();
|
|
178
178
|
}
|
|
179
179
|
const Gs = -7169;
|
|
180
180
|
function G(e, t) {
|
|
181
181
|
e.f = e.f & Gs | t;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
e.f &
|
|
185
|
-
}
|
|
186
|
-
function ii(e) {
|
|
187
|
-
if (e !== null)
|
|
188
|
-
for (const t of e)
|
|
189
|
-
!(t.f & Q) || !(t.f & Qe) || (t.f ^= Qe, ii(
|
|
190
|
-
/** @type {Derived} */
|
|
191
|
-
t.deps
|
|
192
|
-
));
|
|
183
|
+
function rn(e) {
|
|
184
|
+
e.f & me || e.deps === null ? G(e, W) : G(e, oe);
|
|
193
185
|
}
|
|
194
186
|
function si(e, t, r) {
|
|
195
|
-
e.f & q ? t.add(e) : e.f &
|
|
196
|
-
}
|
|
197
|
-
function rn(e, t, r) {
|
|
198
|
-
if (e == null)
|
|
199
|
-
return t(void 0), r && r(void 0), Be;
|
|
200
|
-
const n = Ii(
|
|
201
|
-
() => e.subscribe(
|
|
202
|
-
t,
|
|
203
|
-
// @ts-expect-error
|
|
204
|
-
r
|
|
205
|
-
)
|
|
206
|
-
);
|
|
207
|
-
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
208
|
-
}
|
|
209
|
-
const nt = [];
|
|
210
|
-
function Us(e, t) {
|
|
211
|
-
return {
|
|
212
|
-
subscribe: ur(e, t).subscribe
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
function ur(e, t = Be) {
|
|
216
|
-
let r = null;
|
|
217
|
-
const n = /* @__PURE__ */ new Set();
|
|
218
|
-
function i(o) {
|
|
219
|
-
if (Kn(e, o) && (e = o, r)) {
|
|
220
|
-
const l = !nt.length;
|
|
221
|
-
for (const u of n)
|
|
222
|
-
u[1](), nt.push(u, e);
|
|
223
|
-
if (l) {
|
|
224
|
-
for (let u = 0; u < nt.length; u += 2)
|
|
225
|
-
nt[u][0](nt[u + 1]);
|
|
226
|
-
nt.length = 0;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
function s(o) {
|
|
231
|
-
i(o(
|
|
232
|
-
/** @type {T} */
|
|
233
|
-
e
|
|
234
|
-
));
|
|
235
|
-
}
|
|
236
|
-
function a(o, l = Be) {
|
|
237
|
-
const u = [o, l];
|
|
238
|
-
return n.add(u), n.size === 1 && (r = t(i, s) || Be), o(
|
|
239
|
-
/** @type {T} */
|
|
240
|
-
e
|
|
241
|
-
), () => {
|
|
242
|
-
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
return { set: i, update: s, subscribe: a };
|
|
187
|
+
e.f & q ? t.add(e) : e.f & oe && r.add(e), G(e, W);
|
|
246
188
|
}
|
|
247
|
-
function
|
|
248
|
-
|
|
249
|
-
if (!i.every(Boolean))
|
|
250
|
-
throw new Error("derived() expects stores as input, got a falsy value");
|
|
251
|
-
const s = t.length < 2;
|
|
252
|
-
return Us(r, (a, o) => {
|
|
253
|
-
let l = !1;
|
|
254
|
-
const u = [];
|
|
255
|
-
let f = 0, h = Be;
|
|
256
|
-
const c = () => {
|
|
257
|
-
if (f)
|
|
258
|
-
return;
|
|
259
|
-
h();
|
|
260
|
-
const d = t(n ? u[0] : u, a, o);
|
|
261
|
-
s ? a(d) : h = typeof d == "function" ? d : Be;
|
|
262
|
-
}, p = i.map(
|
|
263
|
-
(d, b) => rn(
|
|
264
|
-
d,
|
|
265
|
-
(P) => {
|
|
266
|
-
u[b] = P, f &= ~(1 << b), l && c();
|
|
267
|
-
},
|
|
268
|
-
() => {
|
|
269
|
-
f |= 1 << b;
|
|
270
|
-
}
|
|
271
|
-
)
|
|
272
|
-
);
|
|
273
|
-
return l = !0, c(), function() {
|
|
274
|
-
Wn(p), h(), l = !1;
|
|
275
|
-
};
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
function js(e) {
|
|
279
|
-
let t;
|
|
280
|
-
return rn(e, (r) => t = r)(), t;
|
|
281
|
-
}
|
|
282
|
-
let $r = Symbol("unmounted");
|
|
283
|
-
function qs(e, t, r) {
|
|
284
|
-
const n = r[t] ??= {
|
|
285
|
-
store: null,
|
|
286
|
-
source: /* @__PURE__ */ un(void 0),
|
|
287
|
-
unsubscribe: Be
|
|
288
|
-
};
|
|
289
|
-
if (n.store !== e && !($r in r))
|
|
290
|
-
if (n.unsubscribe(), n.store = e ?? null, e == null)
|
|
291
|
-
n.source.v = void 0, n.unsubscribe = Be;
|
|
292
|
-
else {
|
|
293
|
-
var i = !0;
|
|
294
|
-
n.unsubscribe = rn(e, (s) => {
|
|
295
|
-
i ? n.source.v = s : ce(n.source, s);
|
|
296
|
-
}), i = !1;
|
|
297
|
-
}
|
|
298
|
-
return e && $r in r ? js(e) : j(n.source);
|
|
299
|
-
}
|
|
300
|
-
function Vs() {
|
|
301
|
-
const e = {};
|
|
302
|
-
function t() {
|
|
303
|
-
bi(() => {
|
|
304
|
-
for (var r in e)
|
|
305
|
-
e[r].unsubscribe();
|
|
306
|
-
ct(e, $r, {
|
|
307
|
-
enumerable: !1,
|
|
308
|
-
value: !0
|
|
309
|
-
});
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
return [e, t];
|
|
313
|
-
}
|
|
314
|
-
function lr(e) {
|
|
315
|
-
var t = $, r = A;
|
|
189
|
+
function ur(e) {
|
|
190
|
+
var t = O, r = $;
|
|
316
191
|
fe(null), Te(null);
|
|
317
192
|
try {
|
|
318
193
|
return e();
|
|
@@ -320,24 +195,24 @@ function lr(e) {
|
|
|
320
195
|
fe(t), Te(r);
|
|
321
196
|
}
|
|
322
197
|
}
|
|
323
|
-
function
|
|
198
|
+
function Us(e, t, r, n) {
|
|
324
199
|
const i = nn;
|
|
325
|
-
var s = e.filter((p) => !p.settled),
|
|
200
|
+
var s = e.filter((p) => !p.settled), o = t.map(i);
|
|
326
201
|
if (r.length === 0 && s.length === 0) {
|
|
327
|
-
n(
|
|
202
|
+
n(o);
|
|
328
203
|
return;
|
|
329
204
|
}
|
|
330
|
-
var
|
|
205
|
+
var a = (
|
|
331
206
|
/** @type {Effect} */
|
|
332
|
-
|
|
333
|
-
), l =
|
|
207
|
+
$
|
|
208
|
+
), l = js(), u = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((p) => p.promise)) : null;
|
|
334
209
|
function f(p) {
|
|
335
|
-
if (!(
|
|
210
|
+
if (!(a.f & ee)) {
|
|
336
211
|
l();
|
|
337
212
|
try {
|
|
338
|
-
n([...
|
|
213
|
+
n([...o, ...p]);
|
|
339
214
|
} catch (d) {
|
|
340
|
-
ye(d,
|
|
215
|
+
ye(d, a);
|
|
341
216
|
}
|
|
342
217
|
er();
|
|
343
218
|
}
|
|
@@ -348,34 +223,34 @@ function zs(e, t, r, n) {
|
|
|
348
223
|
return;
|
|
349
224
|
}
|
|
350
225
|
function c() {
|
|
351
|
-
Promise.all(r.map((p) => /* @__PURE__ */
|
|
226
|
+
Promise.all(r.map((p) => /* @__PURE__ */ qs(p))).then(f).catch((p) => ye(p, a)).finally(h);
|
|
352
227
|
}
|
|
353
228
|
u ? u.then(() => {
|
|
354
229
|
l(), c(), er();
|
|
355
230
|
}) : c();
|
|
356
231
|
}
|
|
357
|
-
function
|
|
232
|
+
function js() {
|
|
358
233
|
var e = (
|
|
359
234
|
/** @type {Effect} */
|
|
360
|
-
|
|
361
|
-
), t =
|
|
235
|
+
$
|
|
236
|
+
), t = O, r = _e, n = (
|
|
362
237
|
/** @type {Batch} */
|
|
363
|
-
|
|
238
|
+
H
|
|
364
239
|
);
|
|
365
240
|
return function(s = !0) {
|
|
366
|
-
Te(e), fe(t),
|
|
241
|
+
Te(e), fe(t), dt(r), s && !(e.f & ee) && (n?.activate(), n?.apply());
|
|
367
242
|
};
|
|
368
243
|
}
|
|
369
244
|
function er(e = !0) {
|
|
370
|
-
Te(null), fe(null),
|
|
245
|
+
Te(null), fe(null), dt(null), e && H?.deactivate();
|
|
371
246
|
}
|
|
372
247
|
function ai() {
|
|
373
248
|
var e = (
|
|
374
249
|
/** @type {Effect} */
|
|
375
|
-
|
|
250
|
+
$
|
|
376
251
|
), t = e.b, r = (
|
|
377
252
|
/** @type {Batch} */
|
|
378
|
-
|
|
253
|
+
H
|
|
379
254
|
), n = !!t?.is_rendered();
|
|
380
255
|
return t?.update_pending_count(1, r), r.increment(n, e), () => {
|
|
381
256
|
t?.update_pending_count(-1, r), r.decrement(n, e);
|
|
@@ -383,12 +258,12 @@ function ai() {
|
|
|
383
258
|
}
|
|
384
259
|
// @__NO_SIDE_EFFECTS__
|
|
385
260
|
function nn(e) {
|
|
386
|
-
var t =
|
|
387
|
-
return
|
|
261
|
+
var t = Z | q;
|
|
262
|
+
return $ !== null && ($.f |= Ke), {
|
|
388
263
|
ctx: _e,
|
|
389
264
|
deps: null,
|
|
390
265
|
effects: null,
|
|
391
|
-
equals:
|
|
266
|
+
equals: Kn,
|
|
392
267
|
f: t,
|
|
393
268
|
fn: e,
|
|
394
269
|
reactions: null,
|
|
@@ -398,16 +273,16 @@ function nn(e) {
|
|
|
398
273
|
z
|
|
399
274
|
),
|
|
400
275
|
wv: 0,
|
|
401
|
-
parent:
|
|
276
|
+
parent: $,
|
|
402
277
|
ac: null
|
|
403
278
|
};
|
|
404
279
|
}
|
|
405
|
-
const
|
|
280
|
+
const Ht = Symbol("obsolete");
|
|
406
281
|
// @__NO_SIDE_EFFECTS__
|
|
407
|
-
function
|
|
282
|
+
function qs(e, t, r) {
|
|
408
283
|
let n = (
|
|
409
284
|
/** @type {Effect | null} */
|
|
410
|
-
|
|
285
|
+
$
|
|
411
286
|
);
|
|
412
287
|
n === null && Bs();
|
|
413
288
|
var i = (
|
|
@@ -417,12 +292,12 @@ function Xs(e, t, r) {
|
|
|
417
292
|
), s = Ye(
|
|
418
293
|
/** @type {V} */
|
|
419
294
|
z
|
|
420
|
-
),
|
|
421
|
-
return
|
|
295
|
+
), o = !O, a = /* @__PURE__ */ new Set();
|
|
296
|
+
return ia(() => {
|
|
422
297
|
var l = (
|
|
423
298
|
/** @type {Effect} */
|
|
424
|
-
|
|
425
|
-
), u =
|
|
299
|
+
$
|
|
300
|
+
), u = Qn();
|
|
426
301
|
i = u.promise;
|
|
427
302
|
try {
|
|
428
303
|
Promise.resolve(e()).then(u.resolve, (p) => {
|
|
@@ -433,28 +308,28 @@ function Xs(e, t, r) {
|
|
|
433
308
|
}
|
|
434
309
|
var f = (
|
|
435
310
|
/** @type {Batch} */
|
|
436
|
-
|
|
311
|
+
H
|
|
437
312
|
);
|
|
438
|
-
if (
|
|
313
|
+
if (o) {
|
|
439
314
|
if (l.f & Je)
|
|
440
315
|
var h = ai();
|
|
441
316
|
if (
|
|
442
317
|
// boundary can be null if the async derived is inside an $effect.root not connected to the component render tree
|
|
443
318
|
n.b?.is_rendered()
|
|
444
319
|
)
|
|
445
|
-
f.async_deriveds.get(l)?.reject(
|
|
320
|
+
f.async_deriveds.get(l)?.reject(Ht);
|
|
446
321
|
else
|
|
447
|
-
for (const p of
|
|
448
|
-
p.reject(
|
|
449
|
-
|
|
322
|
+
for (const p of a.values())
|
|
323
|
+
p.reject(Ht);
|
|
324
|
+
a.add(u), f.async_deriveds.set(l, u);
|
|
450
325
|
}
|
|
451
326
|
const c = (p, d = void 0) => {
|
|
452
|
-
h?.(),
|
|
327
|
+
h?.(), a.delete(u), d !== Ht && (f.activate(), d ? (s.f |= ke, pt(s, d)) : (s.f & ke && (s.f ^= ke), pt(s, p)), f.deactivate());
|
|
453
328
|
};
|
|
454
329
|
u.promise.then(c, (p) => c(null, p || "unknown"));
|
|
455
330
|
}), bi(() => {
|
|
456
|
-
for (const l of
|
|
457
|
-
l.reject(
|
|
331
|
+
for (const l of a)
|
|
332
|
+
l.reject(Ht);
|
|
458
333
|
}), new Promise((l) => {
|
|
459
334
|
function u(f) {
|
|
460
335
|
function h() {
|
|
@@ -466,11 +341,11 @@ function Xs(e, t, r) {
|
|
|
466
341
|
});
|
|
467
342
|
}
|
|
468
343
|
// @__NO_SIDE_EFFECTS__
|
|
469
|
-
function
|
|
344
|
+
function Vs(e) {
|
|
470
345
|
const t = /* @__PURE__ */ nn(e);
|
|
471
|
-
return t.equals =
|
|
346
|
+
return t.equals = ti, t;
|
|
472
347
|
}
|
|
473
|
-
function
|
|
348
|
+
function zs(e) {
|
|
474
349
|
var t = e.effects;
|
|
475
350
|
if (t !== null) {
|
|
476
351
|
e.effects = null;
|
|
@@ -482,13 +357,13 @@ function Ys(e) {
|
|
|
482
357
|
}
|
|
483
358
|
}
|
|
484
359
|
function sn(e) {
|
|
485
|
-
var t, r =
|
|
360
|
+
var t, r = $, n = e.parent;
|
|
486
361
|
if (!Ge && n !== null && e.v !== z && // if it was never evaluated before, it's guaranteed to fail downstream, so we try to execute instead
|
|
487
|
-
n.f & (
|
|
362
|
+
n.f & (ee | K))
|
|
488
363
|
return Ns(), e.v;
|
|
489
364
|
Te(n);
|
|
490
365
|
try {
|
|
491
|
-
|
|
366
|
+
zs(e), t = Bi(e);
|
|
492
367
|
} finally {
|
|
493
368
|
Te(r);
|
|
494
369
|
}
|
|
@@ -496,34 +371,34 @@ function sn(e) {
|
|
|
496
371
|
}
|
|
497
372
|
function oi(e) {
|
|
498
373
|
var t = sn(e);
|
|
499
|
-
if (!e.equals(t) && (e.wv = Oi(), (!
|
|
374
|
+
if (!e.equals(t) && (e.wv = Oi(), (!H?.is_fork || e.deps === null) && (H !== null ? (H.capture(e, t, !0), $r?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
500
375
|
G(e, W);
|
|
501
376
|
return;
|
|
502
377
|
}
|
|
503
|
-
Ge || (pe !== null ? (fn() ||
|
|
378
|
+
Ge || (pe !== null ? (fn() || H?.is_fork) && pe.set(e, t) : rn(e));
|
|
504
379
|
}
|
|
505
|
-
function
|
|
380
|
+
function Ws(e) {
|
|
506
381
|
if (e.effects !== null)
|
|
507
382
|
for (const t of e.effects)
|
|
508
|
-
(t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
383
|
+
(t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && ur(() => {
|
|
509
384
|
t.ac.abort(kt), t.ac = null;
|
|
510
385
|
}), t.fn !== null && (t.teardown = Be), Lt(t, 0), hn(t));
|
|
511
386
|
}
|
|
512
387
|
function ui(e) {
|
|
513
388
|
if (e.effects !== null)
|
|
514
389
|
for (const t of e.effects)
|
|
515
|
-
t.teardown && t.fn !== null &&
|
|
390
|
+
t.teardown && t.fn !== null && mt(t);
|
|
516
391
|
}
|
|
517
|
-
let vr = null,
|
|
518
|
-
var
|
|
519
|
-
let
|
|
392
|
+
let vr = null, nt = null, H = null, $r = null, pe = null, Br = null, Mt = !1, mr = !1, Pt = null, Vt = null;
|
|
393
|
+
var gn = 0;
|
|
394
|
+
let Xs = 1;
|
|
520
395
|
class Me {
|
|
521
|
-
id =
|
|
396
|
+
id = Xs++;
|
|
522
397
|
/** True as soon as `#process` was called */
|
|
523
398
|
#e = !1;
|
|
524
399
|
linked = !0;
|
|
525
400
|
/** @type {Batch | null} */
|
|
526
|
-
#
|
|
401
|
+
#r = null;
|
|
527
402
|
/** @type {Batch | null} */
|
|
528
403
|
#s = null;
|
|
529
404
|
/** @type {Map<Effect, ReturnType<typeof deferred<any>>>} */
|
|
@@ -546,7 +421,7 @@ class Me {
|
|
|
546
421
|
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
547
422
|
* @type {Set<(batch: Batch) => void>}
|
|
548
423
|
*/
|
|
549
|
-
#
|
|
424
|
+
#d = /* @__PURE__ */ new Set();
|
|
550
425
|
/**
|
|
551
426
|
* If a fork is discarded, we need to destroy any effects that are no longer needed
|
|
552
427
|
* @type {Set<(batch: Batch) => void>}
|
|
@@ -568,15 +443,22 @@ class Me {
|
|
|
568
443
|
*/
|
|
569
444
|
#o = null;
|
|
570
445
|
/**
|
|
571
|
-
*
|
|
446
|
+
* Effects that were scheduled in this batch but not yet 'resolved' into the
|
|
447
|
+
* root effects that need to be flushed. Resolving — the upwards traversal that
|
|
448
|
+
* marks the path to each effect on the shared effect tree (see #resolve) — is
|
|
449
|
+
* deferred until the batch is processed, so that the markers are created and
|
|
450
|
+
* consumed within a single traversal. Scheduling into other batches (which can
|
|
451
|
+
* happen concurrently, e.g. while a batch is committed) can therefore never
|
|
452
|
+
* observe (and be confused by) this batch's markers.
|
|
453
|
+
* May contain duplicates — deduplication happens during resolving
|
|
572
454
|
* @type {Effect[]}
|
|
573
455
|
*/
|
|
574
|
-
#
|
|
456
|
+
#n = [];
|
|
575
457
|
/**
|
|
576
458
|
* Effects created while this batch was active.
|
|
577
459
|
* @type {Effect[]}
|
|
578
460
|
*/
|
|
579
|
-
#
|
|
461
|
+
#p = [];
|
|
580
462
|
/**
|
|
581
463
|
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
582
464
|
* @type {Set<Effect>}
|
|
@@ -603,7 +485,7 @@ class Me {
|
|
|
603
485
|
is_fork = !1;
|
|
604
486
|
#f = !1;
|
|
605
487
|
constructor() {
|
|
606
|
-
|
|
488
|
+
nt === null ? vr = nt = this : (nt.#s = this, this.#r = nt), nt = this;
|
|
607
489
|
}
|
|
608
490
|
#b() {
|
|
609
491
|
if (this.is_fork) return !0;
|
|
@@ -640,55 +522,85 @@ class Me {
|
|
|
640
522
|
for (var i of n.d)
|
|
641
523
|
G(i, q), r(i);
|
|
642
524
|
for (i of n.m)
|
|
643
|
-
G(i,
|
|
525
|
+
G(i, oe), r(i);
|
|
644
526
|
}
|
|
645
527
|
this.#m.add(t);
|
|
646
528
|
}
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
529
|
+
/**
|
|
530
|
+
* Convert the effects that were scheduled in this batch into the root effects
|
|
531
|
+
* that need to be traversed, marking the path to each effect (by clearing the
|
|
532
|
+
* `CLEAN` flag on ancestor branches) so that the traversal can find them.
|
|
533
|
+
* This happens right before traversal rather than at scheduling time, so that
|
|
534
|
+
* the markers left on the (shared) effect tree are created and consumed within
|
|
535
|
+
* a single traversal — scheduling into other batches can never observe them
|
|
536
|
+
* @returns {Effect[]}
|
|
537
|
+
*/
|
|
538
|
+
#y() {
|
|
539
|
+
var t = [];
|
|
540
|
+
for (const s of this.#n)
|
|
541
|
+
if (!(s.f & ee || !(s.f & (q | oe)))) {
|
|
542
|
+
for (var r = s, n = !1; r.parent !== null; ) {
|
|
543
|
+
r = r.parent;
|
|
544
|
+
var i = r.f;
|
|
545
|
+
if (i & (Se | ge)) {
|
|
546
|
+
if (!(i & W)) {
|
|
547
|
+
n = !0;
|
|
548
|
+
break;
|
|
549
|
+
}
|
|
550
|
+
r.f ^= W;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
n || t.push(r);
|
|
661
554
|
}
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
555
|
+
return this.#n = [], t;
|
|
556
|
+
}
|
|
557
|
+
#g() {
|
|
558
|
+
this.#e = !0;
|
|
559
|
+
for (const a of this.#u)
|
|
560
|
+
this.#l.delete(a), G(a, q), this.schedule(a);
|
|
561
|
+
for (const a of this.#l)
|
|
562
|
+
G(a, oe), this.schedule(a);
|
|
563
|
+
this.apply();
|
|
564
|
+
for (var t = Pt = [], r = [], n = Vt = []; this.#n.length > 0; ) {
|
|
565
|
+
gn++ > 1e3 && (this.#v(), Qs());
|
|
566
|
+
for (const a of this.#y())
|
|
567
|
+
try {
|
|
568
|
+
this.#_(a, t, r);
|
|
569
|
+
} catch (l) {
|
|
570
|
+
throw hi(a), this.#b() || this.discard(), l;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
if (H = null, n.length > 0) {
|
|
574
|
+
var i = Me.ensure();
|
|
575
|
+
for (const a of n)
|
|
576
|
+
i.schedule(a);
|
|
666
577
|
}
|
|
667
|
-
if (
|
|
668
|
-
this.#
|
|
669
|
-
for (const [
|
|
670
|
-
fi(
|
|
671
|
-
|
|
672
|
-
|
|
578
|
+
if (Pt = null, Vt = null, this.#b()) {
|
|
579
|
+
this.#c(r), this.#c(t);
|
|
580
|
+
for (const [a, l] of this.#h)
|
|
581
|
+
fi(a, l);
|
|
582
|
+
n.length > 0 && /** @type {unknown} */
|
|
583
|
+
H.#g();
|
|
673
584
|
return;
|
|
674
585
|
}
|
|
675
|
-
const
|
|
676
|
-
if (
|
|
677
|
-
this.#
|
|
586
|
+
const s = this.#w();
|
|
587
|
+
if (s) {
|
|
588
|
+
this.#c(r), this.#c(t), s.#E(this);
|
|
678
589
|
return;
|
|
679
590
|
}
|
|
680
591
|
this.#u.clear(), this.#l.clear();
|
|
681
|
-
for (const
|
|
682
|
-
this.#
|
|
592
|
+
for (const a of this.#d) a(this);
|
|
593
|
+
this.#d.clear(), $r = this, _n(r), _n(t), $r = null, this.#o?.resolve();
|
|
683
594
|
var o = (
|
|
684
595
|
/** @type {Batch | null} */
|
|
685
596
|
/** @type {unknown} */
|
|
686
|
-
|
|
597
|
+
H
|
|
687
598
|
);
|
|
688
|
-
if (this.#a === 0 && (this.#
|
|
599
|
+
if (this.#a === 0 && (this.#n.length === 0 || o !== null) && this.#v(), this.#n.length > 0)
|
|
689
600
|
if (o !== null) {
|
|
690
|
-
const
|
|
691
|
-
|
|
601
|
+
for (const a of this.#n)
|
|
602
|
+
o.#n.push(a);
|
|
603
|
+
this.#n = [];
|
|
692
604
|
} else
|
|
693
605
|
o = this;
|
|
694
606
|
o !== null && (xe.clear(), o.#g());
|
|
@@ -700,12 +612,12 @@ class Me {
|
|
|
700
612
|
* @param {Effect[]} effects
|
|
701
613
|
* @param {Effect[]} render_effects
|
|
702
614
|
*/
|
|
703
|
-
#
|
|
615
|
+
#_(t, r, n) {
|
|
704
616
|
t.f ^= W;
|
|
705
617
|
for (var i = t.first; i !== null; ) {
|
|
706
|
-
var s = i.f,
|
|
618
|
+
var s = i.f, o = (s & (ge | Se)) !== 0, a = o && (s & W) !== 0, l = a || (s & K) !== 0 || this.#h.has(i);
|
|
707
619
|
if (!l && i.fn !== null) {
|
|
708
|
-
|
|
620
|
+
o ? i.f ^= W : s & ct ? r.push(i) : Gt(i) && (s & de && this.#l.add(i), mt(i));
|
|
709
621
|
var u = i.first;
|
|
710
622
|
if (u !== null) {
|
|
711
623
|
i = u;
|
|
@@ -722,21 +634,21 @@ class Me {
|
|
|
722
634
|
}
|
|
723
635
|
}
|
|
724
636
|
}
|
|
725
|
-
#
|
|
726
|
-
for (var t = this.#
|
|
637
|
+
#w() {
|
|
638
|
+
for (var t = this.#r; t !== null; ) {
|
|
727
639
|
if (!t.is_fork) {
|
|
728
640
|
for (const [r, [, n]] of this.current)
|
|
729
641
|
if (t.current.has(r) && !n)
|
|
730
642
|
return t;
|
|
731
643
|
}
|
|
732
|
-
t = t.#
|
|
644
|
+
t = t.#r;
|
|
733
645
|
}
|
|
734
646
|
return null;
|
|
735
647
|
}
|
|
736
648
|
/**
|
|
737
649
|
* @param {Batch} batch
|
|
738
650
|
*/
|
|
739
|
-
#
|
|
651
|
+
#E(t) {
|
|
740
652
|
for (const [n, i] of t.current)
|
|
741
653
|
!this.previous.has(n) && t.previous.has(n) && this.previous.set(n, t.previous.get(n)), this.current.set(n, i);
|
|
742
654
|
for (const [n, i] of t.async_deriveds) {
|
|
@@ -746,31 +658,31 @@ class Me {
|
|
|
746
658
|
t.async_deriveds.clear(), this.transfer_effects(t.#u, t.#l);
|
|
747
659
|
const r = (n) => {
|
|
748
660
|
var i = n.reactions;
|
|
749
|
-
if (i !== null && !(n.f &
|
|
750
|
-
for (const
|
|
751
|
-
var s =
|
|
752
|
-
if (s &
|
|
661
|
+
if (i !== null && !(n.f & Z && !(n.f & (q | oe))))
|
|
662
|
+
for (const a of i) {
|
|
663
|
+
var s = a.f;
|
|
664
|
+
if (s & Z)
|
|
753
665
|
r(
|
|
754
666
|
/** @type {Derived} */
|
|
755
|
-
|
|
667
|
+
a
|
|
756
668
|
);
|
|
757
669
|
else {
|
|
758
|
-
var
|
|
670
|
+
var o = (
|
|
759
671
|
/** @type {Effect} */
|
|
760
|
-
|
|
672
|
+
a
|
|
761
673
|
);
|
|
762
|
-
s & (
|
|
674
|
+
s & (ut | de) && !this.async_deriveds.has(o) && (this.#l.delete(o), G(o, q), this.schedule(o));
|
|
763
675
|
}
|
|
764
676
|
}
|
|
765
677
|
};
|
|
766
678
|
for (const n of this.current.keys())
|
|
767
679
|
r(n);
|
|
768
|
-
this.oncommit(() => t.discard()), t.#
|
|
680
|
+
this.oncommit(() => t.discard()), t.#v(), H = this, this.#g();
|
|
769
681
|
}
|
|
770
682
|
/**
|
|
771
683
|
* @param {Effect[]} effects
|
|
772
684
|
*/
|
|
773
|
-
#
|
|
685
|
+
#c(t) {
|
|
774
686
|
for (var r = 0; r < t.length; r += 1)
|
|
775
687
|
si(t[r], this.#u, this.#l);
|
|
776
688
|
}
|
|
@@ -785,32 +697,32 @@ class Me {
|
|
|
785
697
|
t.v !== z && !this.previous.has(t) && this.previous.set(t, t.v), t.f & ke || (this.current.set(t, [r, n]), pe?.set(t, r)), this.is_fork || (t.v = r);
|
|
786
698
|
}
|
|
787
699
|
activate() {
|
|
788
|
-
|
|
700
|
+
H = this;
|
|
789
701
|
}
|
|
790
702
|
deactivate() {
|
|
791
|
-
|
|
703
|
+
H = null, pe = null;
|
|
792
704
|
}
|
|
793
705
|
flush() {
|
|
794
706
|
try {
|
|
795
|
-
mr = !0,
|
|
707
|
+
mr = !0, H = this, this.#g();
|
|
796
708
|
} finally {
|
|
797
|
-
|
|
709
|
+
gn = 0, Br = null, Pt = null, Vt = null, mr = !1, H = null, pe = null, xe.clear();
|
|
798
710
|
}
|
|
799
711
|
}
|
|
800
712
|
discard() {
|
|
801
713
|
for (const t of this.#i) t(this);
|
|
802
714
|
this.#i.clear();
|
|
803
715
|
for (const t of this.async_deriveds.values())
|
|
804
|
-
t.reject(
|
|
805
|
-
this.#
|
|
716
|
+
t.reject(Ht);
|
|
717
|
+
this.#v(), this.#o?.resolve();
|
|
806
718
|
}
|
|
807
719
|
/**
|
|
808
720
|
* @param {Effect} effect
|
|
809
721
|
*/
|
|
810
722
|
register_created_effect(t) {
|
|
811
|
-
this.#
|
|
723
|
+
this.#p.push(t);
|
|
812
724
|
}
|
|
813
|
-
#
|
|
725
|
+
#x() {
|
|
814
726
|
for (let h = vr; h !== null; h = h.#s) {
|
|
815
727
|
var t = h.id < this.id, r = [];
|
|
816
728
|
for (const [c, [p, d]] of this.current) {
|
|
@@ -843,25 +755,24 @@ class Me {
|
|
|
843
755
|
if (t)
|
|
844
756
|
for (const c of this.#m)
|
|
845
757
|
h.unskip_effect(c, (p) => {
|
|
846
|
-
p.f & (de |
|
|
758
|
+
p.f & (de | ut) ? h.schedule(p) : h.#c([p]);
|
|
847
759
|
});
|
|
848
760
|
h.activate();
|
|
849
|
-
var
|
|
761
|
+
var o = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
|
|
850
762
|
for (var l of r)
|
|
851
|
-
li(l, s,
|
|
852
|
-
|
|
763
|
+
li(l, s, o, a);
|
|
764
|
+
a = /* @__PURE__ */ new Map();
|
|
853
765
|
var u = [...h.current].filter(([c, p]) => {
|
|
854
766
|
const d = this.current.get(c);
|
|
855
767
|
return d ? d[0] !== p[0] || d[1] !== p[1] : !0;
|
|
856
768
|
}).map(([c]) => c);
|
|
857
769
|
if (u.length > 0)
|
|
858
|
-
for (const c of this.#
|
|
859
|
-
!(c.f & (
|
|
860
|
-
if (h.#
|
|
770
|
+
for (const c of this.#p)
|
|
771
|
+
!(c.f & (ee | K | Jt)) && an(c, u, a) && (c.f & (ut | de) ? (G(c, q), h.schedule(c)) : h.#u.add(c));
|
|
772
|
+
if (h.#n.length > 0 && !h.#f) {
|
|
861
773
|
h.apply();
|
|
862
|
-
for (var f of h.#
|
|
863
|
-
h.#
|
|
864
|
-
h.#r = [];
|
|
774
|
+
for (var f of h.#y())
|
|
775
|
+
h.#_(f, [], []);
|
|
865
776
|
}
|
|
866
777
|
h.deactivate();
|
|
867
778
|
}
|
|
@@ -887,7 +798,7 @@ class Me {
|
|
|
887
798
|
let n = this.#t.get(r) ?? 0;
|
|
888
799
|
n === 1 ? this.#t.delete(r) : this.#t.set(r, n - 1);
|
|
889
800
|
}
|
|
890
|
-
this.#f || (this.#f = !0,
|
|
801
|
+
this.#f || (this.#f = !0, We(() => {
|
|
891
802
|
this.#f = !1, this.linked && this.flush();
|
|
892
803
|
}));
|
|
893
804
|
}
|
|
@@ -904,23 +815,23 @@ class Me {
|
|
|
904
815
|
}
|
|
905
816
|
/** @param {(batch: Batch) => void} fn */
|
|
906
817
|
oncommit(t) {
|
|
907
|
-
this.#
|
|
818
|
+
this.#d.add(t);
|
|
908
819
|
}
|
|
909
820
|
/** @param {(batch: Batch) => void} fn */
|
|
910
821
|
ondiscard(t) {
|
|
911
822
|
this.#i.add(t);
|
|
912
823
|
}
|
|
913
824
|
settled() {
|
|
914
|
-
return (this.#o ??=
|
|
825
|
+
return (this.#o ??= Qn()).promise;
|
|
915
826
|
}
|
|
916
827
|
static ensure() {
|
|
917
|
-
if (
|
|
918
|
-
const t =
|
|
919
|
-
!mr && !
|
|
828
|
+
if (H === null) {
|
|
829
|
+
const t = H = new Me();
|
|
830
|
+
!mr && !Mt && We(() => {
|
|
920
831
|
t.#e || t.flush();
|
|
921
832
|
});
|
|
922
833
|
}
|
|
923
|
-
return
|
|
834
|
+
return H;
|
|
924
835
|
}
|
|
925
836
|
apply() {
|
|
926
837
|
{
|
|
@@ -933,70 +844,59 @@ class Me {
|
|
|
933
844
|
* @param {Effect} effect
|
|
934
845
|
*/
|
|
935
846
|
schedule(t) {
|
|
936
|
-
if (
|
|
847
|
+
if (Br = t, t.b?.is_pending && t.f & (ct | ar | Yn) && !(t.f & Je)) {
|
|
937
848
|
t.b.defer_effect(t);
|
|
938
849
|
return;
|
|
939
850
|
}
|
|
940
|
-
|
|
941
|
-
r = r.parent;
|
|
942
|
-
var n = r.f;
|
|
943
|
-
if (at !== null && r === A && ($ === null || !($.f & Q)))
|
|
944
|
-
return;
|
|
945
|
-
if (n & (Se | ge)) {
|
|
946
|
-
if (!(n & W))
|
|
947
|
-
return;
|
|
948
|
-
r.f ^= W;
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
this.#r.push(r);
|
|
851
|
+
this.#n.push(t);
|
|
952
852
|
}
|
|
953
|
-
#
|
|
853
|
+
#v() {
|
|
954
854
|
if (this.linked) {
|
|
955
|
-
var t = this.#
|
|
956
|
-
t === null ? vr = r : t.#s = r, r === null ?
|
|
855
|
+
var t = this.#r, r = this.#s;
|
|
856
|
+
t === null ? vr = r : t.#s = r, r === null ? nt = t : r.#r = t, this.linked = !1;
|
|
957
857
|
}
|
|
958
858
|
}
|
|
959
859
|
}
|
|
960
860
|
function $e(e) {
|
|
961
|
-
var t =
|
|
962
|
-
|
|
861
|
+
var t = Mt;
|
|
862
|
+
Mt = !0;
|
|
963
863
|
try {
|
|
964
864
|
for (var r; ; ) {
|
|
965
|
-
if (Fs(),
|
|
865
|
+
if (Fs(), H === null)
|
|
966
866
|
return (
|
|
967
867
|
/** @type {T} */
|
|
968
868
|
r
|
|
969
869
|
);
|
|
970
|
-
|
|
870
|
+
H.flush();
|
|
971
871
|
}
|
|
972
872
|
} finally {
|
|
973
|
-
|
|
873
|
+
Mt = t;
|
|
974
874
|
}
|
|
975
875
|
}
|
|
976
|
-
function
|
|
876
|
+
function Qs() {
|
|
977
877
|
try {
|
|
978
878
|
Ps();
|
|
979
879
|
} catch (e) {
|
|
980
|
-
ye(e,
|
|
880
|
+
ye(e, Br);
|
|
981
881
|
}
|
|
982
882
|
}
|
|
983
883
|
let He = null;
|
|
984
|
-
function
|
|
884
|
+
function _n(e) {
|
|
985
885
|
var t = e.length;
|
|
986
886
|
if (t !== 0) {
|
|
987
887
|
for (var r = 0; r < t; ) {
|
|
988
888
|
var n = e[r++];
|
|
989
|
-
if (!(n.f & (
|
|
889
|
+
if (!(n.f & (ee | K)) && Gt(n) && (He = /* @__PURE__ */ new Set(), mt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && wi(n), He?.size > 0)) {
|
|
990
890
|
xe.clear();
|
|
991
891
|
for (const i of He) {
|
|
992
|
-
if (i.f & (
|
|
892
|
+
if (i.f & (ee | K)) continue;
|
|
993
893
|
const s = [i];
|
|
994
|
-
let
|
|
995
|
-
for (;
|
|
996
|
-
He.has(
|
|
997
|
-
for (let
|
|
998
|
-
const l = s[
|
|
999
|
-
l.f & (
|
|
894
|
+
let o = i.parent;
|
|
895
|
+
for (; o !== null; )
|
|
896
|
+
He.has(o) && (He.delete(o), s.push(o)), o = o.parent;
|
|
897
|
+
for (let a = s.length - 1; a >= 0; a--) {
|
|
898
|
+
const l = s[a];
|
|
899
|
+
l.f & (ee | K) || mt(l);
|
|
1000
900
|
}
|
|
1001
901
|
}
|
|
1002
902
|
He.clear();
|
|
@@ -1009,13 +909,13 @@ function li(e, t, r, n) {
|
|
|
1009
909
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
1010
910
|
for (const i of e.reactions) {
|
|
1011
911
|
const s = i.f;
|
|
1012
|
-
s &
|
|
912
|
+
s & Z ? li(
|
|
1013
913
|
/** @type {Derived} */
|
|
1014
914
|
i,
|
|
1015
915
|
t,
|
|
1016
916
|
r,
|
|
1017
917
|
n
|
|
1018
|
-
) : s & (
|
|
918
|
+
) : s & (ut | de) && !(s & q) && an(i, t, n) && (G(i, q), on(
|
|
1019
919
|
/** @type {Effect} */
|
|
1020
920
|
i
|
|
1021
921
|
));
|
|
@@ -1028,7 +928,7 @@ function an(e, t, r) {
|
|
|
1028
928
|
for (const i of e.deps) {
|
|
1029
929
|
if (Yt.call(t, i))
|
|
1030
930
|
return !0;
|
|
1031
|
-
if (i.f &
|
|
931
|
+
if (i.f & Z && an(
|
|
1032
932
|
/** @type {Derived} */
|
|
1033
933
|
i,
|
|
1034
934
|
t,
|
|
@@ -1043,11 +943,11 @@ function an(e, t, r) {
|
|
|
1043
943
|
return r.set(e, !1), !1;
|
|
1044
944
|
}
|
|
1045
945
|
function on(e) {
|
|
1046
|
-
|
|
946
|
+
H.schedule(e);
|
|
1047
947
|
}
|
|
1048
948
|
function fi(e, t) {
|
|
1049
949
|
if (!(e.f & ge && e.f & W)) {
|
|
1050
|
-
e.f & q ? t.d.push(e) : e.f &
|
|
950
|
+
e.f & q ? t.d.push(e) : e.f & oe && t.m.push(e), G(e, W);
|
|
1051
951
|
for (var r = e.first; r !== null; )
|
|
1052
952
|
fi(r, t), r = r.next;
|
|
1053
953
|
}
|
|
@@ -1066,7 +966,7 @@ function Ye(e, t) {
|
|
|
1066
966
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
1067
967
|
v: e,
|
|
1068
968
|
reactions: null,
|
|
1069
|
-
equals:
|
|
969
|
+
equals: Kn,
|
|
1070
970
|
rv: 0,
|
|
1071
971
|
wv: 0
|
|
1072
972
|
};
|
|
@@ -1075,46 +975,47 @@ function Ye(e, t) {
|
|
|
1075
975
|
// @__NO_SIDE_EFFECTS__
|
|
1076
976
|
function Ne(e, t) {
|
|
1077
977
|
const r = Ye(e);
|
|
1078
|
-
return
|
|
978
|
+
return ua(r), r;
|
|
1079
979
|
}
|
|
1080
980
|
// @__NO_SIDE_EFFECTS__
|
|
1081
981
|
function un(e, t = !1, r = !0) {
|
|
1082
982
|
const n = Ye(e);
|
|
1083
|
-
return t || (n.equals =
|
|
983
|
+
return t || (n.equals = ti), n;
|
|
1084
984
|
}
|
|
1085
985
|
function ce(e, t, r = !1) {
|
|
1086
|
-
|
|
986
|
+
O !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1087
987
|
// to ensure we error if state is set inside an inspect effect
|
|
1088
|
-
(!ve ||
|
|
1089
|
-
let n = r ?
|
|
1090
|
-
return
|
|
988
|
+
(!ve || O.f & Jt) && ni() && O.f & (Z | de | ut | Jt) && (we === null || !we.has(e)) && Rs();
|
|
989
|
+
let n = r ? at(t) : t;
|
|
990
|
+
return pt(e, n, Vt);
|
|
1091
991
|
}
|
|
1092
|
-
|
|
992
|
+
var qe = null, Mr = 0;
|
|
993
|
+
function pt(e, t, r = null) {
|
|
1093
994
|
if (!e.equals(t)) {
|
|
1094
995
|
Ge ? xe.set(e, t) : xe.has(e) || xe.set(e, e.v);
|
|
1095
996
|
var n = Me.ensure();
|
|
1096
|
-
if (n.capture(e, t), e.f &
|
|
997
|
+
if (n.capture(e, t), e.f & Z) {
|
|
1097
998
|
const i = (
|
|
1098
999
|
/** @type {Derived} */
|
|
1099
1000
|
e
|
|
1100
1001
|
);
|
|
1101
|
-
e.f & q && sn(i), pe === null &&
|
|
1002
|
+
e.f & q && sn(i), pe === null && rn(i);
|
|
1102
1003
|
}
|
|
1103
|
-
e.wv = Oi(), di(e, q, r),
|
|
1004
|
+
e.wv = Oi(), qe = null, Mr = 0, di(e, q, r), qe = null, $ !== null && $.f & W && !($.f & (ge | Se)) && (ae === null ? la([e]) : ae.push(e)), !n.is_fork && tr.size > 0 && !ci && Ys();
|
|
1104
1005
|
}
|
|
1105
1006
|
return t;
|
|
1106
1007
|
}
|
|
1107
|
-
function
|
|
1008
|
+
function Ys() {
|
|
1108
1009
|
ci = !1;
|
|
1109
1010
|
for (const e of tr) {
|
|
1110
|
-
e.f & W && G(e,
|
|
1011
|
+
e.f & W && G(e, oe);
|
|
1111
1012
|
let t;
|
|
1112
1013
|
try {
|
|
1113
1014
|
t = Gt(e);
|
|
1114
1015
|
} catch {
|
|
1115
1016
|
t = !0;
|
|
1116
1017
|
}
|
|
1117
|
-
t &&
|
|
1018
|
+
t && mt(e);
|
|
1118
1019
|
}
|
|
1119
1020
|
tr.clear();
|
|
1120
1021
|
}
|
|
@@ -1123,42 +1024,48 @@ function It(e) {
|
|
|
1123
1024
|
}
|
|
1124
1025
|
function di(e, t, r) {
|
|
1125
1026
|
var n = e.reactions;
|
|
1126
|
-
if (n !== null)
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
if (
|
|
1027
|
+
if (n !== null) {
|
|
1028
|
+
var i = n.length;
|
|
1029
|
+
if (Mr += i, Mr > 1e5 && qe === null && (qe = /* @__PURE__ */ new Set()), qe !== null) {
|
|
1030
|
+
if (qe.has(e)) return;
|
|
1031
|
+
qe.add(e);
|
|
1032
|
+
}
|
|
1033
|
+
for (var s = 0; s < i; s++) {
|
|
1034
|
+
var o = n[s], a = o.f, l = (a & q) === 0;
|
|
1035
|
+
if (l && G(o, t), a & Jt)
|
|
1130
1036
|
tr.add(
|
|
1131
1037
|
/** @type {Effect} */
|
|
1132
|
-
|
|
1038
|
+
o
|
|
1133
1039
|
);
|
|
1134
|
-
else if (
|
|
1040
|
+
else if (a & Z) {
|
|
1135
1041
|
var u = (
|
|
1136
1042
|
/** @type {Derived} */
|
|
1137
|
-
|
|
1043
|
+
o
|
|
1138
1044
|
);
|
|
1139
|
-
pe?.delete(u),
|
|
1045
|
+
pe?.delete(u), di(u, oe, r);
|
|
1140
1046
|
} else if (l) {
|
|
1141
1047
|
var f = (
|
|
1142
1048
|
/** @type {Effect} */
|
|
1143
|
-
|
|
1049
|
+
o
|
|
1144
1050
|
);
|
|
1145
|
-
|
|
1051
|
+
a & de && He !== null && He.add(f), r !== null ? r.push(f) : on(f);
|
|
1146
1052
|
}
|
|
1147
1053
|
}
|
|
1054
|
+
}
|
|
1148
1055
|
}
|
|
1149
|
-
function
|
|
1150
|
-
if (typeof e != "object" || e === null || pr in e ||
|
|
1056
|
+
function at(e) {
|
|
1057
|
+
if (typeof e != "object" || e === null || pr in e || Zn in e)
|
|
1151
1058
|
return e;
|
|
1152
|
-
const t =
|
|
1059
|
+
const t = Wn(e);
|
|
1153
1060
|
if (t !== Es && t !== xs)
|
|
1154
1061
|
return e;
|
|
1155
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
1156
|
-
if (
|
|
1157
|
-
return
|
|
1158
|
-
var l =
|
|
1159
|
-
fe(null),
|
|
1160
|
-
var f =
|
|
1161
|
-
return fe(l),
|
|
1062
|
+
var r = /* @__PURE__ */ new Map(), n = zn(e), i = /* @__PURE__ */ Ne(0), s = Qe, o = (a) => {
|
|
1063
|
+
if (Qe === s)
|
|
1064
|
+
return a();
|
|
1065
|
+
var l = O, u = Qe;
|
|
1066
|
+
fe(null), wn(s);
|
|
1067
|
+
var f = a();
|
|
1068
|
+
return fe(l), wn(u), f;
|
|
1162
1069
|
};
|
|
1163
1070
|
return n && r.set("length", /* @__PURE__ */ Ne(
|
|
1164
1071
|
/** @type {any[]} */
|
|
@@ -1167,62 +1074,64 @@ function ot(e) {
|
|
|
1167
1074
|
/** @type {any} */
|
|
1168
1075
|
e,
|
|
1169
1076
|
{
|
|
1170
|
-
defineProperty(
|
|
1077
|
+
defineProperty(a, l, u) {
|
|
1171
1078
|
(!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Cs();
|
|
1172
1079
|
var f = r.get(l);
|
|
1173
|
-
return f === void 0 ?
|
|
1080
|
+
return f === void 0 ? o(() => {
|
|
1174
1081
|
var h = /* @__PURE__ */ Ne(u.value);
|
|
1175
1082
|
return r.set(l, h), h;
|
|
1176
1083
|
}) : ce(f, u.value, !0), !0;
|
|
1177
1084
|
},
|
|
1178
|
-
deleteProperty(
|
|
1085
|
+
deleteProperty(a, l) {
|
|
1179
1086
|
var u = r.get(l);
|
|
1180
1087
|
if (u === void 0) {
|
|
1181
|
-
if (l in
|
|
1182
|
-
const f =
|
|
1088
|
+
if (l in a) {
|
|
1089
|
+
const f = o(() => /* @__PURE__ */ Ne(z));
|
|
1183
1090
|
r.set(l, f), It(i);
|
|
1184
1091
|
}
|
|
1185
1092
|
} else
|
|
1186
1093
|
ce(u, z), It(i);
|
|
1187
1094
|
return !0;
|
|
1188
1095
|
},
|
|
1189
|
-
get(
|
|
1096
|
+
get(a, l, u) {
|
|
1190
1097
|
if (l === pr)
|
|
1191
1098
|
return e;
|
|
1192
|
-
var f = r.get(l), h = l in
|
|
1193
|
-
if (f === void 0 && (!h ||
|
|
1194
|
-
var p =
|
|
1099
|
+
var f = r.get(l), h = l in a;
|
|
1100
|
+
if (f === void 0 && (!h || ot(a, l)?.writable) && (f = o(() => {
|
|
1101
|
+
var p = at(h ? a[l] : z), d = /* @__PURE__ */ Ne(p);
|
|
1195
1102
|
return d;
|
|
1196
1103
|
}), r.set(l, f)), f !== void 0) {
|
|
1197
1104
|
var c = j(f);
|
|
1198
1105
|
return c === z ? void 0 : c;
|
|
1199
1106
|
}
|
|
1200
|
-
return Reflect.get(
|
|
1107
|
+
return Reflect.get(a, l, u);
|
|
1201
1108
|
},
|
|
1202
|
-
getOwnPropertyDescriptor(
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
if (
|
|
1109
|
+
getOwnPropertyDescriptor(a, l) {
|
|
1110
|
+
this.has?.(a, l);
|
|
1111
|
+
var u = Reflect.getOwnPropertyDescriptor(a, l), f = r.get(l);
|
|
1112
|
+
if (f !== void 0) {
|
|
1113
|
+
var h = j(f);
|
|
1114
|
+
if (h === z)
|
|
1115
|
+
return;
|
|
1116
|
+
if (u && "value" in u)
|
|
1117
|
+
u.value = h;
|
|
1118
|
+
else
|
|
1210
1119
|
return {
|
|
1211
1120
|
enumerable: !0,
|
|
1212
1121
|
configurable: !0,
|
|
1213
|
-
value:
|
|
1122
|
+
value: h,
|
|
1214
1123
|
writable: !0
|
|
1215
1124
|
};
|
|
1216
1125
|
}
|
|
1217
1126
|
return u;
|
|
1218
1127
|
},
|
|
1219
|
-
has(
|
|
1128
|
+
has(a, l) {
|
|
1220
1129
|
if (l === pr)
|
|
1221
1130
|
return !0;
|
|
1222
|
-
var u = r.get(l), f = u !== void 0 && u.v !== z || Reflect.has(
|
|
1223
|
-
if (u !== void 0 ||
|
|
1224
|
-
u === void 0 && (u =
|
|
1225
|
-
var c = f ?
|
|
1131
|
+
var u = r.get(l), f = u !== void 0 && u.v !== z || Reflect.has(a, l);
|
|
1132
|
+
if (u !== void 0 || $ !== null && (!f || ot(a, l)?.writable)) {
|
|
1133
|
+
u === void 0 && (u = o(() => {
|
|
1134
|
+
var c = f ? at(a[l]) : z, p = /* @__PURE__ */ Ne(c);
|
|
1226
1135
|
return p;
|
|
1227
1136
|
}), r.set(l, u));
|
|
1228
1137
|
var h = j(u);
|
|
@@ -1231,22 +1140,22 @@ function ot(e) {
|
|
|
1231
1140
|
}
|
|
1232
1141
|
return f;
|
|
1233
1142
|
},
|
|
1234
|
-
set(
|
|
1235
|
-
var h = r.get(l), c = l in
|
|
1143
|
+
set(a, l, u, f) {
|
|
1144
|
+
var h = r.get(l), c = l in a;
|
|
1236
1145
|
if (n && l === "length")
|
|
1237
1146
|
for (var p = u; p < /** @type {Source<number>} */
|
|
1238
1147
|
h.v; p += 1) {
|
|
1239
1148
|
var d = r.get(p + "");
|
|
1240
|
-
d !== void 0 ? ce(d, z) : p in
|
|
1149
|
+
d !== void 0 ? ce(d, z) : p in a && (d = o(() => /* @__PURE__ */ Ne(z)), r.set(p + "", d));
|
|
1241
1150
|
}
|
|
1242
1151
|
if (h === void 0)
|
|
1243
|
-
(!c ||
|
|
1152
|
+
(!c || ot(a, l)?.writable) && (h = o(() => /* @__PURE__ */ Ne(void 0)), ce(h, at(u)), r.set(l, h));
|
|
1244
1153
|
else {
|
|
1245
1154
|
c = h.v !== z;
|
|
1246
|
-
var b =
|
|
1155
|
+
var b = o(() => at(u));
|
|
1247
1156
|
ce(h, b);
|
|
1248
1157
|
}
|
|
1249
|
-
var P = Reflect.getOwnPropertyDescriptor(
|
|
1158
|
+
var P = Reflect.getOwnPropertyDescriptor(a, l);
|
|
1250
1159
|
if (P?.set && P.set.call(f, u), !c) {
|
|
1251
1160
|
if (n && typeof l == "string") {
|
|
1252
1161
|
var x = (
|
|
@@ -1259,14 +1168,14 @@ function ot(e) {
|
|
|
1259
1168
|
}
|
|
1260
1169
|
return !0;
|
|
1261
1170
|
},
|
|
1262
|
-
ownKeys(
|
|
1171
|
+
ownKeys(a) {
|
|
1263
1172
|
j(i);
|
|
1264
|
-
var l = Reflect.ownKeys(
|
|
1173
|
+
var l = Reflect.ownKeys(a).filter((h) => {
|
|
1265
1174
|
var c = r.get(h);
|
|
1266
1175
|
return c === void 0 || c.v !== z;
|
|
1267
1176
|
});
|
|
1268
1177
|
for (var [u, f] of r)
|
|
1269
|
-
f.v !== z && !(u in
|
|
1178
|
+
f.v !== z && !(u in a) && l.push(u);
|
|
1270
1179
|
return l;
|
|
1271
1180
|
},
|
|
1272
1181
|
setPrototypeOf() {
|
|
@@ -1275,19 +1184,19 @@ function ot(e) {
|
|
|
1275
1184
|
}
|
|
1276
1185
|
);
|
|
1277
1186
|
}
|
|
1278
|
-
var
|
|
1187
|
+
var bn, pi, vi, mi;
|
|
1279
1188
|
function Pr() {
|
|
1280
|
-
if (
|
|
1281
|
-
|
|
1189
|
+
if (bn === void 0) {
|
|
1190
|
+
bn = window, pi = /Firefox/.test(navigator.userAgent);
|
|
1282
1191
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1283
|
-
vi =
|
|
1192
|
+
vi = ot(t, "firstChild").get, mi = ot(t, "nextSibling").get, mn(e) && (e[Nr] = void 0, e[Jn] = null, e[As] = void 0, e.__e = void 0), mn(r) && (r[Hr] = void 0);
|
|
1284
1193
|
}
|
|
1285
1194
|
}
|
|
1286
1195
|
function Fe(e = "") {
|
|
1287
1196
|
return document.createTextNode(e);
|
|
1288
1197
|
}
|
|
1289
1198
|
// @__NO_SIDE_EFFECTS__
|
|
1290
|
-
function
|
|
1199
|
+
function vt(e) {
|
|
1291
1200
|
return (
|
|
1292
1201
|
/** @type {TemplateNode | null} */
|
|
1293
1202
|
vi.call(e)
|
|
@@ -1300,13 +1209,13 @@ function Pe(e) {
|
|
|
1300
1209
|
mi.call(e)
|
|
1301
1210
|
);
|
|
1302
1211
|
}
|
|
1303
|
-
function
|
|
1212
|
+
function Ot(e, t) {
|
|
1304
1213
|
if (!L)
|
|
1305
|
-
return /* @__PURE__ */
|
|
1306
|
-
var r = /* @__PURE__ */
|
|
1214
|
+
return /* @__PURE__ */ vt(e);
|
|
1215
|
+
var r = /* @__PURE__ */ vt(k);
|
|
1307
1216
|
if (r === null)
|
|
1308
1217
|
r = k.appendChild(Fe());
|
|
1309
|
-
else if (t && r.nodeType !==
|
|
1218
|
+
else if (t && r.nodeType !== Jr) {
|
|
1310
1219
|
var n = Fe();
|
|
1311
1220
|
return r?.before(n), ue(n), n;
|
|
1312
1221
|
}
|
|
@@ -1315,13 +1224,13 @@ function $t(e, t) {
|
|
|
1315
1224
|
r
|
|
1316
1225
|
), ue(r), r;
|
|
1317
1226
|
}
|
|
1318
|
-
function
|
|
1227
|
+
function yn(e, t = !1) {
|
|
1319
1228
|
if (!L)
|
|
1320
|
-
return /* @__PURE__ */
|
|
1321
|
-
var r =
|
|
1229
|
+
return /* @__PURE__ */ vt(e);
|
|
1230
|
+
var r = Ot(e, t);
|
|
1322
1231
|
return st(e), r;
|
|
1323
1232
|
}
|
|
1324
|
-
function
|
|
1233
|
+
function En(e, t = 1, r = !1) {
|
|
1325
1234
|
let n = L ? k : e;
|
|
1326
1235
|
for (var i; t--; )
|
|
1327
1236
|
i = n, n = /** @type {TemplateNode} */
|
|
@@ -1329,7 +1238,7 @@ function yn(e, t = 1, r = !1) {
|
|
|
1329
1238
|
if (!L)
|
|
1330
1239
|
return n;
|
|
1331
1240
|
if (r) {
|
|
1332
|
-
if (n?.nodeType !==
|
|
1241
|
+
if (n?.nodeType !== Jr) {
|
|
1333
1242
|
var s = Fe();
|
|
1334
1243
|
return n === null ? i?.after(s) : n.before(s), ue(s), s;
|
|
1335
1244
|
}
|
|
@@ -1343,7 +1252,7 @@ function yn(e, t = 1, r = !1) {
|
|
|
1343
1252
|
function gi(e) {
|
|
1344
1253
|
e.textContent = "";
|
|
1345
1254
|
}
|
|
1346
|
-
function
|
|
1255
|
+
function Zs() {
|
|
1347
1256
|
return !1;
|
|
1348
1257
|
}
|
|
1349
1258
|
function ln(e, t, r) {
|
|
@@ -1359,22 +1268,22 @@ function _i(e) {
|
|
|
1359
1268
|
)
|
|
1360
1269
|
return;
|
|
1361
1270
|
let t = e.nextSibling;
|
|
1362
|
-
for (; t !== null && t.nodeType ===
|
|
1271
|
+
for (; t !== null && t.nodeType === Jr; )
|
|
1363
1272
|
t.remove(), e.nodeValue += /** @type {string} */
|
|
1364
1273
|
t.nodeValue, t = e.nextSibling;
|
|
1365
1274
|
}
|
|
1366
|
-
function
|
|
1367
|
-
var t =
|
|
1275
|
+
function Js(e) {
|
|
1276
|
+
var t = $;
|
|
1368
1277
|
if (t === null)
|
|
1369
|
-
return
|
|
1370
|
-
if (!(t.f & Je) && !(t.f &
|
|
1278
|
+
return O.f |= ke, e;
|
|
1279
|
+
if (!(t.f & Je) && !(t.f & ct))
|
|
1371
1280
|
throw e;
|
|
1372
1281
|
ye(e, t);
|
|
1373
1282
|
}
|
|
1374
1283
|
function ye(e, t) {
|
|
1375
|
-
if (!(t !== null && t.f &
|
|
1284
|
+
if (!(t !== null && t.f & ee)) {
|
|
1376
1285
|
for (; t !== null; ) {
|
|
1377
|
-
if (t.f & Tr && !(t.f & (
|
|
1286
|
+
if (t.f & Tr && !(t.f & (ee | Ar))) {
|
|
1378
1287
|
if (!(t.f & Je))
|
|
1379
1288
|
throw e;
|
|
1380
1289
|
try {
|
|
@@ -1389,18 +1298,18 @@ function ye(e, t) {
|
|
|
1389
1298
|
throw e;
|
|
1390
1299
|
}
|
|
1391
1300
|
}
|
|
1392
|
-
function
|
|
1301
|
+
function Ks(e, t) {
|
|
1393
1302
|
var r = t.last;
|
|
1394
1303
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1395
1304
|
}
|
|
1396
1305
|
function Ae(e, t) {
|
|
1397
|
-
var r =
|
|
1306
|
+
var r = $;
|
|
1398
1307
|
r !== null && r.f & K && (e |= K);
|
|
1399
1308
|
var n = {
|
|
1400
1309
|
ctx: _e,
|
|
1401
1310
|
deps: null,
|
|
1402
1311
|
nodes: null,
|
|
1403
|
-
f: e | q |
|
|
1312
|
+
f: e | q | me,
|
|
1404
1313
|
first: null,
|
|
1405
1314
|
fn: t,
|
|
1406
1315
|
last: null,
|
|
@@ -1412,65 +1321,65 @@ function Ae(e, t) {
|
|
|
1412
1321
|
wv: 0,
|
|
1413
1322
|
ac: null
|
|
1414
1323
|
};
|
|
1415
|
-
|
|
1324
|
+
H?.register_created_effect(n);
|
|
1416
1325
|
var i = n;
|
|
1417
|
-
if (e &
|
|
1418
|
-
|
|
1326
|
+
if (e & ct)
|
|
1327
|
+
Pt !== null ? Pt.push(n) : Me.ensure().schedule(n);
|
|
1419
1328
|
else if (t !== null) {
|
|
1420
1329
|
try {
|
|
1421
|
-
|
|
1422
|
-
} catch (
|
|
1423
|
-
throw le(n),
|
|
1330
|
+
mt(n);
|
|
1331
|
+
} catch (o) {
|
|
1332
|
+
throw le(n), o;
|
|
1424
1333
|
}
|
|
1425
1334
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
|
|
1426
1335
|
!(i.f & Ke) && (i = i.first, e & de && e & Ct && i !== null && (i.f |= Ct));
|
|
1427
1336
|
}
|
|
1428
|
-
if (i !== null && (i.parent = r, r !== null &&
|
|
1337
|
+
if (i !== null && (i.parent = r, r !== null && Ks(i, r), O !== null && O.f & Z && !(e & Se))) {
|
|
1429
1338
|
var s = (
|
|
1430
1339
|
/** @type {Derived} */
|
|
1431
|
-
|
|
1340
|
+
O
|
|
1432
1341
|
);
|
|
1433
1342
|
(s.effects ??= []).push(i);
|
|
1434
1343
|
}
|
|
1435
1344
|
return n;
|
|
1436
1345
|
}
|
|
1437
1346
|
function fn() {
|
|
1438
|
-
return
|
|
1347
|
+
return O !== null && !ve;
|
|
1439
1348
|
}
|
|
1440
1349
|
function bi(e) {
|
|
1441
1350
|
const t = Ae(ar, null);
|
|
1442
1351
|
return G(t, W), t.teardown = e, t;
|
|
1443
1352
|
}
|
|
1444
|
-
function
|
|
1445
|
-
return Ae(
|
|
1353
|
+
function ea(e) {
|
|
1354
|
+
return Ae(ct | Ss, e);
|
|
1446
1355
|
}
|
|
1447
|
-
function
|
|
1356
|
+
function ta(e) {
|
|
1448
1357
|
Me.ensure();
|
|
1449
1358
|
const t = Ae(Se | Ke, e);
|
|
1450
1359
|
return () => {
|
|
1451
1360
|
le(t);
|
|
1452
1361
|
};
|
|
1453
1362
|
}
|
|
1454
|
-
function
|
|
1363
|
+
function ra(e) {
|
|
1455
1364
|
Me.ensure();
|
|
1456
1365
|
const t = Ae(Se | Ke, e);
|
|
1457
1366
|
return (r = {}) => new Promise((n) => {
|
|
1458
|
-
r.outro ?
|
|
1367
|
+
r.outro ? lt(t, () => {
|
|
1459
1368
|
le(t), n(void 0);
|
|
1460
1369
|
}) : (le(t), n(void 0));
|
|
1461
1370
|
});
|
|
1462
1371
|
}
|
|
1463
|
-
function
|
|
1464
|
-
return Ae(
|
|
1372
|
+
function na(e) {
|
|
1373
|
+
return Ae(ct, e);
|
|
1465
1374
|
}
|
|
1466
|
-
function
|
|
1467
|
-
return Ae(
|
|
1375
|
+
function ia(e) {
|
|
1376
|
+
return Ae(ut | Ke, e);
|
|
1468
1377
|
}
|
|
1469
1378
|
function yi(e, t = 0) {
|
|
1470
1379
|
return Ae(ar | t, e);
|
|
1471
1380
|
}
|
|
1472
|
-
function
|
|
1473
|
-
|
|
1381
|
+
function sa(e, t = [], r = [], n = []) {
|
|
1382
|
+
Us(n, t, r, (i) => {
|
|
1474
1383
|
Ae(ar, () => {
|
|
1475
1384
|
e(...i.map(j));
|
|
1476
1385
|
});
|
|
@@ -1486,14 +1395,14 @@ function be(e) {
|
|
|
1486
1395
|
function xi(e) {
|
|
1487
1396
|
var t = e.teardown;
|
|
1488
1397
|
if (t !== null) {
|
|
1489
|
-
const r = Ge, n =
|
|
1490
|
-
|
|
1398
|
+
const r = Ge, n = O;
|
|
1399
|
+
xn(!0), fe(null);
|
|
1491
1400
|
try {
|
|
1492
1401
|
t.call(null);
|
|
1493
1402
|
} catch (i) {
|
|
1494
1403
|
ye(i, e.parent);
|
|
1495
1404
|
} finally {
|
|
1496
|
-
|
|
1405
|
+
xn(r), fe(n);
|
|
1497
1406
|
}
|
|
1498
1407
|
}
|
|
1499
1408
|
}
|
|
@@ -1501,14 +1410,14 @@ function hn(e, t = !1) {
|
|
|
1501
1410
|
var r = e.first;
|
|
1502
1411
|
for (e.first = e.last = null; r !== null; ) {
|
|
1503
1412
|
const i = r.ac;
|
|
1504
|
-
i !== null &&
|
|
1413
|
+
i !== null && ur(() => {
|
|
1505
1414
|
i.abort(kt);
|
|
1506
1415
|
});
|
|
1507
1416
|
var n = r.next;
|
|
1508
1417
|
r.f & Se ? r.parent = null : le(r, t), r = n;
|
|
1509
1418
|
}
|
|
1510
1419
|
}
|
|
1511
|
-
function
|
|
1420
|
+
function aa(e) {
|
|
1512
1421
|
for (var t = e.first; t !== null; ) {
|
|
1513
1422
|
var r = t.next;
|
|
1514
1423
|
t.f & ge || le(t), t = r;
|
|
@@ -1516,7 +1425,7 @@ function fa(e) {
|
|
|
1516
1425
|
}
|
|
1517
1426
|
function le(e, t = !0) {
|
|
1518
1427
|
var r = !1;
|
|
1519
|
-
(t || e.f & ws) && e.nodes !== null && e.nodes.end !== null && (
|
|
1428
|
+
(t || e.f & ws) && e.nodes !== null && e.nodes.end !== null && (oa(
|
|
1520
1429
|
e.nodes.start,
|
|
1521
1430
|
/** @type {TemplateNode} */
|
|
1522
1431
|
e.nodes.end
|
|
@@ -1525,11 +1434,11 @@ function le(e, t = !0) {
|
|
|
1525
1434
|
if (n !== null)
|
|
1526
1435
|
for (const s of n)
|
|
1527
1436
|
s.stop();
|
|
1528
|
-
xi(e), e.f ^= Ar, e.f |=
|
|
1437
|
+
xi(e), e.f ^= Ar, e.f |= ee;
|
|
1529
1438
|
var i = e.parent;
|
|
1530
1439
|
i !== null && i.first !== null && wi(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1531
1440
|
}
|
|
1532
|
-
function
|
|
1441
|
+
function oa(e, t) {
|
|
1533
1442
|
for (; e !== null; ) {
|
|
1534
1443
|
var r = e === t ? null : /* @__PURE__ */ Pe(e);
|
|
1535
1444
|
e.remove(), e = r;
|
|
@@ -1539,16 +1448,16 @@ function wi(e) {
|
|
|
1539
1448
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1540
1449
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1541
1450
|
}
|
|
1542
|
-
function
|
|
1451
|
+
function lt(e, t, r = !0) {
|
|
1543
1452
|
var n = [];
|
|
1544
|
-
e.f |=
|
|
1453
|
+
e.f |= Zr, Si(e, n, !0);
|
|
1545
1454
|
var i = () => {
|
|
1546
1455
|
r && le(e), t && t();
|
|
1547
1456
|
}, s = n.length;
|
|
1548
1457
|
if (s > 0) {
|
|
1549
|
-
var
|
|
1550
|
-
for (var
|
|
1551
|
-
|
|
1458
|
+
var o = () => --s || i();
|
|
1459
|
+
for (var a of n)
|
|
1460
|
+
a.out(o);
|
|
1552
1461
|
} else
|
|
1553
1462
|
i();
|
|
1554
1463
|
}
|
|
@@ -1557,26 +1466,26 @@ function Si(e, t, r) {
|
|
|
1557
1466
|
e.f ^= K;
|
|
1558
1467
|
var n = e.nodes && e.nodes.t;
|
|
1559
1468
|
if (n !== null)
|
|
1560
|
-
for (const
|
|
1561
|
-
(
|
|
1469
|
+
for (const a of n)
|
|
1470
|
+
(a.is_global || r) && t.push(a);
|
|
1562
1471
|
for (var i = e.first; i !== null; ) {
|
|
1563
1472
|
var s = i.next;
|
|
1564
1473
|
if (!(i.f & Se)) {
|
|
1565
|
-
var
|
|
1474
|
+
var o = (i.f & Ct) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1566
1475
|
// it means the parent block effect was pruned. In that case,
|
|
1567
1476
|
// transparency information was transferred to the branch effect.
|
|
1568
1477
|
(i.f & ge) !== 0 && (e.f & de) !== 0;
|
|
1569
|
-
Si(i, t,
|
|
1478
|
+
Si(i, t, o ? r : !1);
|
|
1570
1479
|
}
|
|
1571
1480
|
i = s;
|
|
1572
1481
|
}
|
|
1573
1482
|
}
|
|
1574
1483
|
}
|
|
1575
1484
|
function Ti(e) {
|
|
1576
|
-
e.f &= ~
|
|
1485
|
+
e.f &= ~Zr, Ai(e, !0);
|
|
1577
1486
|
}
|
|
1578
1487
|
function Ai(e, t) {
|
|
1579
|
-
if (!(e.f &
|
|
1488
|
+
if (!(e.f & Zr) && e.f & K) {
|
|
1580
1489
|
e.f ^= K, e.f & W || (G(e, q), Me.ensure().schedule(e));
|
|
1581
1490
|
for (var r = e.first; r !== null; ) {
|
|
1582
1491
|
var n = r.next, i = (r.f & Ct) !== 0 || (r.f & ge) !== 0;
|
|
@@ -1584,8 +1493,8 @@ function Ai(e, t) {
|
|
|
1584
1493
|
}
|
|
1585
1494
|
var s = e.nodes && e.nodes.t;
|
|
1586
1495
|
if (s !== null)
|
|
1587
|
-
for (const
|
|
1588
|
-
(
|
|
1496
|
+
for (const o of s)
|
|
1497
|
+
(o.is_global || t) && o.in();
|
|
1589
1498
|
}
|
|
1590
1499
|
}
|
|
1591
1500
|
function Ni(e, t) {
|
|
@@ -1596,28 +1505,28 @@ function Ni(e, t) {
|
|
|
1596
1505
|
}
|
|
1597
1506
|
}
|
|
1598
1507
|
let zt = !1, Ge = !1;
|
|
1599
|
-
function
|
|
1508
|
+
function xn(e) {
|
|
1600
1509
|
Ge = e;
|
|
1601
1510
|
}
|
|
1602
|
-
let
|
|
1511
|
+
let O = null, ve = !1;
|
|
1603
1512
|
function fe(e) {
|
|
1604
|
-
|
|
1513
|
+
O = e;
|
|
1605
1514
|
}
|
|
1606
|
-
let
|
|
1515
|
+
let $ = null;
|
|
1607
1516
|
function Te(e) {
|
|
1608
|
-
|
|
1517
|
+
$ = e;
|
|
1609
1518
|
}
|
|
1610
1519
|
let we = null;
|
|
1611
|
-
function
|
|
1612
|
-
|
|
1520
|
+
function ua(e) {
|
|
1521
|
+
O !== null && (O.f & Kt || O.f & Z) && (we ??= /* @__PURE__ */ new Set()).add(e);
|
|
1613
1522
|
}
|
|
1614
|
-
let
|
|
1615
|
-
function
|
|
1523
|
+
let re = null, ne = 0, ae = null;
|
|
1524
|
+
function la(e) {
|
|
1616
1525
|
ae = e;
|
|
1617
1526
|
}
|
|
1618
|
-
let Hi = 1,
|
|
1619
|
-
function
|
|
1620
|
-
|
|
1527
|
+
let Hi = 1, Xe = 0, Qe = Xe;
|
|
1528
|
+
function wn(e) {
|
|
1529
|
+
Qe = e;
|
|
1621
1530
|
}
|
|
1622
1531
|
function Oi() {
|
|
1623
1532
|
return ++Hi;
|
|
@@ -1626,7 +1535,7 @@ function Gt(e) {
|
|
|
1626
1535
|
var t = e.f;
|
|
1627
1536
|
if (t & q)
|
|
1628
1537
|
return !0;
|
|
1629
|
-
if (t &
|
|
1538
|
+
if (t & oe) {
|
|
1630
1539
|
for (var r = (
|
|
1631
1540
|
/** @type {Value[]} */
|
|
1632
1541
|
e.deps
|
|
@@ -1641,7 +1550,7 @@ function Gt(e) {
|
|
|
1641
1550
|
), s.wv > e.wv)
|
|
1642
1551
|
return !0;
|
|
1643
1552
|
}
|
|
1644
|
-
t &
|
|
1553
|
+
t & me && // During time traveling we don't want to reset the status so that
|
|
1645
1554
|
// traversal of the graph in the other batches still happens
|
|
1646
1555
|
pe === null && G(e, W);
|
|
1647
1556
|
}
|
|
@@ -1652,21 +1561,21 @@ function $i(e, t, r = !0) {
|
|
|
1652
1561
|
if (n !== null && !(we !== null && we.has(e)))
|
|
1653
1562
|
for (var i = 0; i < n.length; i++) {
|
|
1654
1563
|
var s = n[i];
|
|
1655
|
-
s.f &
|
|
1564
|
+
s.f & Z ? $i(
|
|
1656
1565
|
/** @type {Derived} */
|
|
1657
1566
|
s,
|
|
1658
1567
|
t,
|
|
1659
1568
|
!1
|
|
1660
|
-
) : t === s && (r ? G(s, q) : s.f & W && G(s,
|
|
1569
|
+
) : t === s && (r ? G(s, q) : s.f & W && G(s, oe), on(
|
|
1661
1570
|
/** @type {Effect} */
|
|
1662
1571
|
s
|
|
1663
1572
|
));
|
|
1664
1573
|
}
|
|
1665
1574
|
}
|
|
1666
1575
|
function Bi(e) {
|
|
1667
|
-
var t =
|
|
1668
|
-
|
|
1669
|
-
null, ne = 0, ae = null,
|
|
1576
|
+
var t = re, r = ne, n = ae, i = O, s = we, o = _e, a = ve, l = Qe, u = e.f;
|
|
1577
|
+
re = /** @type {null | Value[]} */
|
|
1578
|
+
null, ne = 0, ae = null, O = u & (ge | Se) ? null : e, we = null, dt(e.ctx), ve = !1, Qe = ++Xe, e.ac !== null && (ur(() => {
|
|
1670
1579
|
e.ac.abort(kt);
|
|
1671
1580
|
}), e.ac = null);
|
|
1672
1581
|
try {
|
|
@@ -1676,8 +1585,8 @@ function Bi(e) {
|
|
|
1676
1585
|
e.fn
|
|
1677
1586
|
), h = f();
|
|
1678
1587
|
e.f |= Je;
|
|
1679
|
-
var c =
|
|
1680
|
-
if (
|
|
1588
|
+
var c = Sn(e);
|
|
1589
|
+
if (ni() && ae !== null && !ve && c !== null && !(e.f & (Z | oe | q)))
|
|
1681
1590
|
for (var p = 0; p < /** @type {Source[]} */
|
|
1682
1591
|
ae.length; p++)
|
|
1683
1592
|
$i(
|
|
@@ -1686,38 +1595,38 @@ function Bi(e) {
|
|
|
1686
1595
|
e
|
|
1687
1596
|
);
|
|
1688
1597
|
if (i !== null && i !== e) {
|
|
1689
|
-
if (
|
|
1598
|
+
if (Xe++, i.deps !== null)
|
|
1690
1599
|
for (let d = 0; d < r; d += 1)
|
|
1691
|
-
i.deps[d].rv =
|
|
1600
|
+
i.deps[d].rv = Xe;
|
|
1692
1601
|
if (t !== null)
|
|
1693
1602
|
for (const d of t)
|
|
1694
|
-
d.rv =
|
|
1603
|
+
d.rv = Xe;
|
|
1695
1604
|
ae !== null && (n === null ? n = ae : n.push(.../** @type {Source[]} */
|
|
1696
1605
|
ae));
|
|
1697
1606
|
}
|
|
1698
1607
|
return e.f & ke && (e.f ^= ke), h;
|
|
1699
1608
|
} catch (d) {
|
|
1700
|
-
return
|
|
1609
|
+
return Sn(e), Js(d);
|
|
1701
1610
|
} finally {
|
|
1702
|
-
e.f ^= Kt,
|
|
1611
|
+
e.f ^= Kt, re = t, ne = r, ae = n, O = i, we = s, dt(o), ve = a, Qe = l;
|
|
1703
1612
|
}
|
|
1704
1613
|
}
|
|
1705
|
-
function
|
|
1706
|
-
var t = e.deps, r =
|
|
1707
|
-
if (
|
|
1614
|
+
function Sn(e) {
|
|
1615
|
+
var t = e.deps, r = H?.is_fork;
|
|
1616
|
+
if (re !== null) {
|
|
1708
1617
|
var n;
|
|
1709
1618
|
if (r || Lt(e, ne), t !== null && ne > 0)
|
|
1710
|
-
for (t.length = ne +
|
|
1711
|
-
t[ne + n] =
|
|
1619
|
+
for (t.length = ne + re.length, n = 0; n < re.length; n++)
|
|
1620
|
+
t[ne + n] = re[n];
|
|
1712
1621
|
else
|
|
1713
|
-
e.deps = t =
|
|
1714
|
-
if (fn() && e.f &
|
|
1622
|
+
e.deps = t = re;
|
|
1623
|
+
if (fn() && e.f & me)
|
|
1715
1624
|
for (n = ne; n < t.length; n++)
|
|
1716
1625
|
(t[n].reactions ??= []).push(e);
|
|
1717
1626
|
} else !r && t !== null && ne < t.length && (Lt(e, ne), t.length = ne);
|
|
1718
1627
|
return t;
|
|
1719
1628
|
}
|
|
1720
|
-
function
|
|
1629
|
+
function fa(e, t) {
|
|
1721
1630
|
let r = t.reactions;
|
|
1722
1631
|
if (r !== null) {
|
|
1723
1632
|
var n = bs.call(r, e);
|
|
@@ -1726,70 +1635,70 @@ function pa(e, t) {
|
|
|
1726
1635
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1727
1636
|
}
|
|
1728
1637
|
}
|
|
1729
|
-
if (r === null && t.f &
|
|
1638
|
+
if (r === null && t.f & Z && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1730
1639
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1731
1640
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1732
|
-
(
|
|
1641
|
+
(re === null || !Yt.call(re, t))) {
|
|
1733
1642
|
var s = (
|
|
1734
1643
|
/** @type {Derived} */
|
|
1735
1644
|
t
|
|
1736
1645
|
);
|
|
1737
|
-
s.f &
|
|
1646
|
+
s.f & me && (s.f ^= me), s.v !== z && rn(s), s.ac !== null && ur(() => {
|
|
1738
1647
|
s.ac.abort(kt), s.ac = null, G(s, q);
|
|
1739
|
-
}),
|
|
1648
|
+
}), Ws(s), Lt(s, 0);
|
|
1740
1649
|
}
|
|
1741
1650
|
}
|
|
1742
1651
|
function Lt(e, t) {
|
|
1743
1652
|
var r = e.deps;
|
|
1744
1653
|
if (r !== null)
|
|
1745
1654
|
for (var n = t; n < r.length; n++)
|
|
1746
|
-
|
|
1655
|
+
fa(e, r[n]);
|
|
1747
1656
|
}
|
|
1748
|
-
function
|
|
1657
|
+
function mt(e) {
|
|
1749
1658
|
var t = e.f;
|
|
1750
|
-
if (!(t &
|
|
1659
|
+
if (!(t & ee)) {
|
|
1751
1660
|
G(e, W);
|
|
1752
|
-
var r =
|
|
1753
|
-
|
|
1661
|
+
var r = $, n = zt;
|
|
1662
|
+
$ = e, zt = (t & (ge | Se)) === 0;
|
|
1754
1663
|
try {
|
|
1755
|
-
t & (de |
|
|
1664
|
+
t & (de | Yn) ? aa(e) : hn(e), xi(e);
|
|
1756
1665
|
var i = Bi(e);
|
|
1757
1666
|
e.teardown = typeof i == "function" ? i : null, e.wv = Hi;
|
|
1758
1667
|
var s;
|
|
1759
|
-
|
|
1668
|
+
Vn && ks && e.f & q && e.deps;
|
|
1760
1669
|
} finally {
|
|
1761
|
-
zt = n,
|
|
1670
|
+
zt = n, $ = r;
|
|
1762
1671
|
}
|
|
1763
1672
|
}
|
|
1764
1673
|
}
|
|
1765
1674
|
function j(e) {
|
|
1766
|
-
var t = e.f, r = (t &
|
|
1767
|
-
if (
|
|
1768
|
-
var n =
|
|
1675
|
+
var t = e.f, r = (t & Z) !== 0;
|
|
1676
|
+
if (O !== null && !ve) {
|
|
1677
|
+
var n = $ !== null && ($.f & ee) !== 0;
|
|
1769
1678
|
if (!n && (we === null || !we.has(e))) {
|
|
1770
|
-
var i =
|
|
1771
|
-
if (
|
|
1772
|
-
e.rv <
|
|
1679
|
+
var i = O.deps;
|
|
1680
|
+
if (O.f & Kt)
|
|
1681
|
+
e.rv < Xe && (e.rv = Xe, re === null && i !== null && i[ne] === e ? ne++ : re === null ? re = [e] : re.push(e));
|
|
1773
1682
|
else {
|
|
1774
|
-
|
|
1683
|
+
O.deps ??= [], Yt.call(O.deps, e) || O.deps.push(e);
|
|
1775
1684
|
var s = e.reactions;
|
|
1776
|
-
s === null ? e.reactions = [
|
|
1685
|
+
s === null ? e.reactions = [O] : Yt.call(s, O) || s.push(O);
|
|
1777
1686
|
}
|
|
1778
1687
|
}
|
|
1779
1688
|
}
|
|
1780
1689
|
if (Ge && xe.has(e))
|
|
1781
1690
|
return xe.get(e);
|
|
1782
1691
|
if (r) {
|
|
1783
|
-
var
|
|
1692
|
+
var o = (
|
|
1784
1693
|
/** @type {Derived} */
|
|
1785
1694
|
e
|
|
1786
1695
|
);
|
|
1787
1696
|
if (Ge) {
|
|
1788
|
-
var
|
|
1789
|
-
return (!(
|
|
1697
|
+
var a = o.v;
|
|
1698
|
+
return (!(o.f & W) && o.reactions !== null || Pi(o)) && (a = sn(o)), xe.set(o, a), a;
|
|
1790
1699
|
}
|
|
1791
|
-
var l = (
|
|
1792
|
-
Gt(
|
|
1700
|
+
var l = (o.f & me) === 0 && !ve && O !== null && (zt || (O.f & me) !== 0), u = (o.f & Je) === 0;
|
|
1701
|
+
Gt(o) && (l && (o.f |= me), oi(o)), l && !u && (ui(o), Mi(o));
|
|
1793
1702
|
}
|
|
1794
1703
|
if (pe?.has(e))
|
|
1795
1704
|
return pe.get(e);
|
|
@@ -1798,9 +1707,9 @@ function j(e) {
|
|
|
1798
1707
|
return e.v;
|
|
1799
1708
|
}
|
|
1800
1709
|
function Mi(e) {
|
|
1801
|
-
if (e.f |=
|
|
1710
|
+
if (e.f |= me, e.deps !== null)
|
|
1802
1711
|
for (const t of e.deps)
|
|
1803
|
-
(t.reactions ??= []).push(e), t.f &
|
|
1712
|
+
(t.reactions ??= []).push(e), t.f & Z && !(t.f & me) && (ui(
|
|
1804
1713
|
/** @type {Derived} */
|
|
1805
1714
|
t
|
|
1806
1715
|
), Mi(
|
|
@@ -1812,7 +1721,7 @@ function Pi(e) {
|
|
|
1812
1721
|
if (e.v === z) return !0;
|
|
1813
1722
|
if (e.deps === null) return !1;
|
|
1814
1723
|
for (const t of e.deps)
|
|
1815
|
-
if (xe.has(t) || t.f &
|
|
1724
|
+
if (xe.has(t) || t.f & Z && Pi(
|
|
1816
1725
|
/** @type {Derived} */
|
|
1817
1726
|
t
|
|
1818
1727
|
))
|
|
@@ -1827,18 +1736,18 @@ function Ii(e) {
|
|
|
1827
1736
|
ve = t;
|
|
1828
1737
|
}
|
|
1829
1738
|
}
|
|
1830
|
-
const
|
|
1831
|
-
function
|
|
1832
|
-
(t[
|
|
1739
|
+
const $t = Symbol("events"), Ci = /* @__PURE__ */ new Set(), Ir = /* @__PURE__ */ new Set();
|
|
1740
|
+
function ha(e, t, r) {
|
|
1741
|
+
(t[$t] ??= {})[e] = r;
|
|
1833
1742
|
}
|
|
1834
|
-
function
|
|
1743
|
+
function ca(e) {
|
|
1835
1744
|
for (var t = 0; t < e.length; t++)
|
|
1836
1745
|
Ci.add(e[t]);
|
|
1837
1746
|
for (var r of Ir)
|
|
1838
1747
|
r(e);
|
|
1839
1748
|
}
|
|
1840
1749
|
let gr = null, _r = !1;
|
|
1841
|
-
function
|
|
1750
|
+
function Tn(e) {
|
|
1842
1751
|
var t = this, r = (
|
|
1843
1752
|
/** @type {Node} */
|
|
1844
1753
|
t.ownerDocument
|
|
@@ -1849,33 +1758,33 @@ function Sn(e) {
|
|
|
1849
1758
|
gr = e, _r || (_r = !0, setTimeout(() => {
|
|
1850
1759
|
_r = !1, gr = null;
|
|
1851
1760
|
}));
|
|
1852
|
-
var
|
|
1853
|
-
if (
|
|
1854
|
-
var l = i.indexOf(
|
|
1761
|
+
var o = 0, a = gr === e && e[$t];
|
|
1762
|
+
if (a) {
|
|
1763
|
+
var l = i.indexOf(a);
|
|
1855
1764
|
if (l !== -1 && (t === document || t === /** @type {any} */
|
|
1856
1765
|
window)) {
|
|
1857
|
-
e[
|
|
1766
|
+
e[$t] = t;
|
|
1858
1767
|
return;
|
|
1859
1768
|
}
|
|
1860
1769
|
var u = i.indexOf(t);
|
|
1861
1770
|
if (u === -1)
|
|
1862
1771
|
return;
|
|
1863
|
-
l <= u && (
|
|
1772
|
+
l <= u && (o = l);
|
|
1864
1773
|
}
|
|
1865
1774
|
if (s = /** @type {Element} */
|
|
1866
|
-
i[
|
|
1867
|
-
|
|
1775
|
+
i[o] || e.target, s !== t) {
|
|
1776
|
+
ht(e, "currentTarget", {
|
|
1868
1777
|
configurable: !0,
|
|
1869
1778
|
get() {
|
|
1870
1779
|
return s || r;
|
|
1871
1780
|
}
|
|
1872
1781
|
});
|
|
1873
|
-
var f =
|
|
1782
|
+
var f = O, h = $;
|
|
1874
1783
|
fe(null), Te(null);
|
|
1875
1784
|
try {
|
|
1876
1785
|
for (var c, p = []; s !== null && s !== t; ) {
|
|
1877
1786
|
try {
|
|
1878
|
-
var d = s[
|
|
1787
|
+
var d = s[$t]?.[n];
|
|
1879
1788
|
d != null && (!/** @type {any} */
|
|
1880
1789
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1881
1790
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
@@ -1884,9 +1793,9 @@ function Sn(e) {
|
|
|
1884
1793
|
c ? p.push(b) : c = b;
|
|
1885
1794
|
}
|
|
1886
1795
|
if (e.cancelBubble) break;
|
|
1887
|
-
|
|
1796
|
+
o++, s = o < i.length ? (
|
|
1888
1797
|
/** @type {Element} */
|
|
1889
|
-
i[
|
|
1798
|
+
i[o]
|
|
1890
1799
|
) : null;
|
|
1891
1800
|
}
|
|
1892
1801
|
if (c) {
|
|
@@ -1897,31 +1806,31 @@ function Sn(e) {
|
|
|
1897
1806
|
throw c;
|
|
1898
1807
|
}
|
|
1899
1808
|
} finally {
|
|
1900
|
-
e[
|
|
1809
|
+
e[$t] = t, delete e.currentTarget, fe(f), Te(h);
|
|
1901
1810
|
}
|
|
1902
1811
|
}
|
|
1903
1812
|
}
|
|
1904
|
-
const
|
|
1813
|
+
const da = (
|
|
1905
1814
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
1906
1815
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
1907
1816
|
/** @param {string} html */
|
|
1908
1817
|
createHTML: (e) => e
|
|
1909
1818
|
})
|
|
1910
1819
|
);
|
|
1911
|
-
function
|
|
1820
|
+
function pa(e) {
|
|
1912
1821
|
return (
|
|
1913
1822
|
/** @type {string} */
|
|
1914
|
-
|
|
1823
|
+
da?.createHTML(e) ?? e
|
|
1915
1824
|
);
|
|
1916
1825
|
}
|
|
1917
|
-
function
|
|
1826
|
+
function va(e) {
|
|
1918
1827
|
var t = ln("template");
|
|
1919
|
-
return t.innerHTML =
|
|
1828
|
+
return t.innerHTML = pa(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1920
1829
|
}
|
|
1921
1830
|
function Cr(e, t) {
|
|
1922
1831
|
var r = (
|
|
1923
1832
|
/** @type {Effect} */
|
|
1924
|
-
|
|
1833
|
+
$
|
|
1925
1834
|
);
|
|
1926
1835
|
r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
|
|
1927
1836
|
}
|
|
@@ -1931,8 +1840,8 @@ function Li(e, t) {
|
|
|
1931
1840
|
return () => {
|
|
1932
1841
|
if (L)
|
|
1933
1842
|
return Cr(k, null), k;
|
|
1934
|
-
n === void 0 && (n =
|
|
1935
|
-
/* @__PURE__ */
|
|
1843
|
+
n === void 0 && (n = va(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
|
|
1844
|
+
/* @__PURE__ */ vt(n));
|
|
1936
1845
|
var s = (
|
|
1937
1846
|
/** @type {TemplateNode} */
|
|
1938
1847
|
r || pi ? document.importNode(n, !0) : n.cloneNode(!0)
|
|
@@ -1944,9 +1853,9 @@ function Lr(e, t) {
|
|
|
1944
1853
|
if (L) {
|
|
1945
1854
|
var r = (
|
|
1946
1855
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1947
|
-
|
|
1856
|
+
$
|
|
1948
1857
|
);
|
|
1949
|
-
(!(r.f & Je) || r.nodes.end === null) && (r.nodes.end = k),
|
|
1858
|
+
(!(r.f & Je) || r.nodes.end === null) && (r.nodes.end = k), Kr();
|
|
1950
1859
|
return;
|
|
1951
1860
|
}
|
|
1952
1861
|
e !== null && e.before(
|
|
@@ -1954,25 +1863,25 @@ function Lr(e, t) {
|
|
|
1954
1863
|
t
|
|
1955
1864
|
);
|
|
1956
1865
|
}
|
|
1957
|
-
const
|
|
1958
|
-
function
|
|
1959
|
-
return
|
|
1866
|
+
const ma = ["touchstart", "touchmove"];
|
|
1867
|
+
function ga(e) {
|
|
1868
|
+
return ma.includes(e);
|
|
1960
1869
|
}
|
|
1961
|
-
function
|
|
1870
|
+
function _a(e) {
|
|
1962
1871
|
let t = 0, r = Ye(0), n;
|
|
1963
1872
|
return () => {
|
|
1964
1873
|
fn() && (j(r), yi(() => (t === 0 && (n = Ii(() => e(() => It(r)))), t += 1, () => {
|
|
1965
|
-
|
|
1874
|
+
We(() => {
|
|
1966
1875
|
t -= 1, t === 0 && (n?.(), n = void 0, It(r));
|
|
1967
1876
|
});
|
|
1968
1877
|
})));
|
|
1969
1878
|
};
|
|
1970
1879
|
}
|
|
1971
|
-
var
|
|
1972
|
-
function
|
|
1973
|
-
new
|
|
1880
|
+
var ba = Ct | Ke;
|
|
1881
|
+
function ya(e, t, r, n) {
|
|
1882
|
+
new Ea(e, t, r, n);
|
|
1974
1883
|
}
|
|
1975
|
-
class
|
|
1884
|
+
class Ea {
|
|
1976
1885
|
/** @type {Boundary | null} */
|
|
1977
1886
|
parent;
|
|
1978
1887
|
is_pending = !1;
|
|
@@ -1985,11 +1894,11 @@ class Ta {
|
|
|
1985
1894
|
/** @type {TemplateNode} */
|
|
1986
1895
|
#e;
|
|
1987
1896
|
/** @type {TemplateNode | null} */
|
|
1988
|
-
#
|
|
1897
|
+
#r = L ? k : null;
|
|
1989
1898
|
/** @type {BoundaryProps} */
|
|
1990
1899
|
#s;
|
|
1991
1900
|
/** @type {((anchor: Node) => void)} */
|
|
1992
|
-
#
|
|
1901
|
+
#d;
|
|
1993
1902
|
/** @type {Effect} */
|
|
1994
1903
|
#i;
|
|
1995
1904
|
/** @type {Effect | null} */
|
|
@@ -1999,8 +1908,8 @@ class Ta {
|
|
|
1999
1908
|
/** @type {Effect | null} */
|
|
2000
1909
|
#o = null;
|
|
2001
1910
|
/** @type {DocumentFragment | null} */
|
|
2002
|
-
#
|
|
2003
|
-
#
|
|
1911
|
+
#n = null;
|
|
1912
|
+
#p = 0;
|
|
2004
1913
|
#u = 0;
|
|
2005
1914
|
#l = !1;
|
|
2006
1915
|
/** @type {Set<Effect>} */
|
|
@@ -2015,7 +1924,7 @@ class Ta {
|
|
|
2015
1924
|
* @type {Source<number> | null}
|
|
2016
1925
|
*/
|
|
2017
1926
|
#f = null;
|
|
2018
|
-
#b =
|
|
1927
|
+
#b = _a(() => (this.#f = Ye(this.#p), () => {
|
|
2019
1928
|
this.#f = null;
|
|
2020
1929
|
}));
|
|
2021
1930
|
/**
|
|
@@ -2025,32 +1934,32 @@ class Ta {
|
|
|
2025
1934
|
* @param {((error: unknown) => unknown) | undefined} [transform_error]
|
|
2026
1935
|
*/
|
|
2027
1936
|
constructor(t, r, n, i) {
|
|
2028
|
-
this.#e = t, this.#s = r, this.#
|
|
2029
|
-
var
|
|
1937
|
+
this.#e = t, this.#s = r, this.#d = (s) => {
|
|
1938
|
+
var o = (
|
|
2030
1939
|
/** @type {Effect} */
|
|
2031
|
-
|
|
1940
|
+
$
|
|
2032
1941
|
);
|
|
2033
|
-
|
|
1942
|
+
o.b = this, o.f |= Tr, n(s);
|
|
2034
1943
|
}, this.parent = /** @type {Effect} */
|
|
2035
|
-
|
|
1944
|
+
$.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i = Ei(() => {
|
|
2036
1945
|
if (L) {
|
|
2037
1946
|
const s = (
|
|
2038
1947
|
/** @type {Comment} */
|
|
2039
|
-
this.#
|
|
1948
|
+
this.#r
|
|
2040
1949
|
);
|
|
2041
|
-
|
|
2042
|
-
const
|
|
2043
|
-
if (s.data.startsWith(
|
|
2044
|
-
const l = JSON.parse(s.data.slice(
|
|
2045
|
-
this.#
|
|
2046
|
-
} else
|
|
1950
|
+
Kr();
|
|
1951
|
+
const o = s.data === Qr;
|
|
1952
|
+
if (s.data.startsWith(vn)) {
|
|
1953
|
+
const l = JSON.parse(s.data.slice(vn.length));
|
|
1954
|
+
this.#g(l);
|
|
1955
|
+
} else o ? this.#w() : this.#y();
|
|
2047
1956
|
} else
|
|
2048
|
-
this.#
|
|
2049
|
-
},
|
|
1957
|
+
this.#E();
|
|
1958
|
+
}, ba), L && (this.#e = k);
|
|
2050
1959
|
}
|
|
2051
|
-
#
|
|
1960
|
+
#y() {
|
|
2052
1961
|
try {
|
|
2053
|
-
this.#a = be(() => this.#
|
|
1962
|
+
this.#a = be(() => this.#d(this.#e));
|
|
2054
1963
|
} catch (t) {
|
|
2055
1964
|
this.error(t);
|
|
2056
1965
|
}
|
|
@@ -2058,9 +1967,9 @@ class Ta {
|
|
|
2058
1967
|
/**
|
|
2059
1968
|
* @param {unknown} error The deserialized error from the server's hydration comment
|
|
2060
1969
|
*/
|
|
2061
|
-
#
|
|
2062
|
-
const r = this.#s.failed, { reset: n, invoke_onerror: i } = this.#
|
|
2063
|
-
|
|
1970
|
+
#g(t) {
|
|
1971
|
+
const r = this.#s.failed, { reset: n, invoke_onerror: i } = this.#_(t);
|
|
1972
|
+
We(i), r && (this.#o = be(() => {
|
|
2064
1973
|
r(
|
|
2065
1974
|
this.#e,
|
|
2066
1975
|
() => t,
|
|
@@ -2074,67 +1983,67 @@ class Ta {
|
|
|
2074
1983
|
* @param {unknown} error
|
|
2075
1984
|
* @returns {{ reset: () => void, invoke_onerror: () => void }}
|
|
2076
1985
|
*/
|
|
2077
|
-
#
|
|
1986
|
+
#_(t) {
|
|
2078
1987
|
var r = !1, n = !1;
|
|
2079
1988
|
const i = () => {
|
|
2080
1989
|
if (r) {
|
|
2081
1990
|
Hs();
|
|
2082
1991
|
return;
|
|
2083
1992
|
}
|
|
2084
|
-
r = !0, n && Ds(), this.#o !== null &&
|
|
1993
|
+
r = !0, n && Ds(), this.#o !== null && lt(this.#o, () => {
|
|
2085
1994
|
this.#o = null;
|
|
2086
|
-
}), this.#
|
|
2087
|
-
this.#
|
|
1995
|
+
}), this.#x(() => {
|
|
1996
|
+
this.#E();
|
|
2088
1997
|
});
|
|
2089
1998
|
};
|
|
2090
1999
|
return { reset: i, invoke_onerror: () => {
|
|
2091
2000
|
try {
|
|
2092
2001
|
n = !0, this.#s.onerror?.(t, i), n = !1;
|
|
2093
|
-
} catch (
|
|
2094
|
-
ye(
|
|
2002
|
+
} catch (o) {
|
|
2003
|
+
ye(o, this.#i && this.#i.parent);
|
|
2095
2004
|
}
|
|
2096
2005
|
} };
|
|
2097
2006
|
}
|
|
2098
|
-
#
|
|
2007
|
+
#w() {
|
|
2099
2008
|
const t = this.#s.pending;
|
|
2100
|
-
t && (this.is_pending = !0, this.#t = be(() => t(this.#e)),
|
|
2101
|
-
var r = this.#
|
|
2102
|
-
if (r.append(n), this.#a = this.#
|
|
2009
|
+
t && (this.is_pending = !0, this.#t = be(() => t(this.#e)), We(() => {
|
|
2010
|
+
var r = this.#n = document.createDocumentFragment(), n = Fe(), i = !1;
|
|
2011
|
+
if (r.append(n), this.#a = this.#x(() => {
|
|
2103
2012
|
try {
|
|
2104
|
-
return be(() => this.#
|
|
2013
|
+
return be(() => this.#d(n));
|
|
2105
2014
|
} catch (s) {
|
|
2106
2015
|
try {
|
|
2107
2016
|
this.error(s), i = !0;
|
|
2108
|
-
} catch (
|
|
2109
|
-
ye(
|
|
2017
|
+
} catch (o) {
|
|
2018
|
+
ye(o, this.#i.parent);
|
|
2110
2019
|
}
|
|
2111
2020
|
return null;
|
|
2112
2021
|
}
|
|
2113
2022
|
}), this.#a === null) {
|
|
2114
|
-
this.#
|
|
2023
|
+
this.#n = null, i && this.#c(
|
|
2115
2024
|
/** @type {Batch} */
|
|
2116
|
-
|
|
2025
|
+
H
|
|
2117
2026
|
);
|
|
2118
2027
|
return;
|
|
2119
2028
|
}
|
|
2120
|
-
this.#u === 0 && (this.#e.before(r), this.#
|
|
2029
|
+
this.#u === 0 && (this.#e.before(r), this.#n = null, lt(
|
|
2121
2030
|
/** @type {Effect} */
|
|
2122
2031
|
this.#t,
|
|
2123
2032
|
() => {
|
|
2124
2033
|
this.#t = null;
|
|
2125
2034
|
}
|
|
2126
|
-
), this.#
|
|
2035
|
+
), this.#c(
|
|
2127
2036
|
/** @type {Batch} */
|
|
2128
|
-
|
|
2037
|
+
H
|
|
2129
2038
|
));
|
|
2130
2039
|
}));
|
|
2131
2040
|
}
|
|
2132
|
-
#
|
|
2041
|
+
#E() {
|
|
2133
2042
|
try {
|
|
2134
|
-
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#
|
|
2135
|
-
this.#
|
|
2043
|
+
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#p = 0, this.#a = be(() => {
|
|
2044
|
+
this.#d(this.#e);
|
|
2136
2045
|
}), this.#u > 0) {
|
|
2137
|
-
var t = this.#
|
|
2046
|
+
var t = this.#n = document.createDocumentFragment();
|
|
2138
2047
|
Ni(this.#a, t);
|
|
2139
2048
|
const r = (
|
|
2140
2049
|
/** @type {(anchor: Node) => void} */
|
|
@@ -2142,9 +2051,9 @@ class Ta {
|
|
|
2142
2051
|
);
|
|
2143
2052
|
this.#t = be(() => r(this.#e));
|
|
2144
2053
|
} else
|
|
2145
|
-
this.#
|
|
2054
|
+
this.#c(
|
|
2146
2055
|
/** @type {Batch} */
|
|
2147
|
-
|
|
2056
|
+
H
|
|
2148
2057
|
);
|
|
2149
2058
|
} catch (r) {
|
|
2150
2059
|
this.error(r);
|
|
@@ -2153,7 +2062,7 @@ class Ta {
|
|
|
2153
2062
|
/**
|
|
2154
2063
|
* @param {Batch} batch
|
|
2155
2064
|
*/
|
|
2156
|
-
#
|
|
2065
|
+
#c(t) {
|
|
2157
2066
|
this.is_pending = !1, t.transfer_effects(this.#h, this.#m);
|
|
2158
2067
|
}
|
|
2159
2068
|
/**
|
|
@@ -2177,13 +2086,13 @@ class Ta {
|
|
|
2177
2086
|
* @template T
|
|
2178
2087
|
* @param {() => T} fn
|
|
2179
2088
|
*/
|
|
2180
|
-
#
|
|
2181
|
-
var r =
|
|
2182
|
-
Te(this.#i), fe(this.#i),
|
|
2089
|
+
#x(t) {
|
|
2090
|
+
var r = $, n = O, i = _e;
|
|
2091
|
+
Te(this.#i), fe(this.#i), dt(this.#i.ctx);
|
|
2183
2092
|
try {
|
|
2184
2093
|
return Me.ensure(), t();
|
|
2185
2094
|
} finally {
|
|
2186
|
-
Te(r), fe(n),
|
|
2095
|
+
Te(r), fe(n), dt(i);
|
|
2187
2096
|
}
|
|
2188
2097
|
}
|
|
2189
2098
|
/**
|
|
@@ -2192,14 +2101,14 @@ class Ta {
|
|
|
2192
2101
|
* @param {1 | -1} d
|
|
2193
2102
|
* @param {Batch} batch
|
|
2194
2103
|
*/
|
|
2195
|
-
#
|
|
2104
|
+
#v(t, r) {
|
|
2196
2105
|
if (!this.has_pending_snippet()) {
|
|
2197
|
-
this.parent && this.parent.#
|
|
2106
|
+
this.parent && this.parent.#v(t, r);
|
|
2198
2107
|
return;
|
|
2199
2108
|
}
|
|
2200
|
-
this.#u += t, this.#u === 0 && (this.#
|
|
2109
|
+
this.#u += t, this.#u === 0 && (this.#c(r), this.#t && lt(this.#t, () => {
|
|
2201
2110
|
this.#t = null;
|
|
2202
|
-
}), this.#
|
|
2111
|
+
}), this.#n && (this.#e.before(this.#n), this.#n = null));
|
|
2203
2112
|
}
|
|
2204
2113
|
/**
|
|
2205
2114
|
* Update the source that powers `$effect.pending()` inside this boundary,
|
|
@@ -2209,8 +2118,8 @@ class Ta {
|
|
|
2209
2118
|
* @param {Batch} batch
|
|
2210
2119
|
*/
|
|
2211
2120
|
update_pending_count(t, r) {
|
|
2212
|
-
this.#
|
|
2213
|
-
this.#l = !1, this.#f &&
|
|
2121
|
+
this.#v(t, r), this.#p += t, !(!this.#f || this.#l) && (this.#l = !0, We(() => {
|
|
2122
|
+
this.#l = !1, this.#f && pt(this.#f, this.#p);
|
|
2214
2123
|
}));
|
|
2215
2124
|
}
|
|
2216
2125
|
get_effect_pending() {
|
|
@@ -2223,7 +2132,7 @@ class Ta {
|
|
|
2223
2132
|
error(t) {
|
|
2224
2133
|
if (!this.#s.onerror && !this.#s.failed)
|
|
2225
2134
|
throw t;
|
|
2226
|
-
|
|
2135
|
+
H?.is_fork ? (this.#a && H.skip_effect(this.#a), this.#t && H.skip_effect(this.#t), this.#o && H.skip_effect(this.#o), H.oncommit(() => {
|
|
2227
2136
|
this.#S(t);
|
|
2228
2137
|
})) : this.#S(t);
|
|
2229
2138
|
}
|
|
@@ -2233,34 +2142,34 @@ class Ta {
|
|
|
2233
2142
|
#S(t) {
|
|
2234
2143
|
this.#a && (le(this.#a), this.#a = null), this.#t && (le(this.#t), this.#t = null), this.#o && (le(this.#o), this.#o = null), L && (ue(
|
|
2235
2144
|
/** @type {TemplateNode} */
|
|
2236
|
-
this.#
|
|
2145
|
+
this.#r
|
|
2237
2146
|
), Os(), ue(Or()));
|
|
2238
2147
|
let r = this.#s.failed;
|
|
2239
2148
|
const n = (i) => {
|
|
2240
|
-
const { reset: s, invoke_onerror:
|
|
2241
|
-
|
|
2149
|
+
const { reset: s, invoke_onerror: o } = this.#_(i);
|
|
2150
|
+
o(), r && (this.#o = this.#x(() => {
|
|
2242
2151
|
try {
|
|
2243
2152
|
return be(() => {
|
|
2244
|
-
var
|
|
2153
|
+
var a = (
|
|
2245
2154
|
/** @type {Effect} */
|
|
2246
|
-
|
|
2155
|
+
$
|
|
2247
2156
|
);
|
|
2248
|
-
|
|
2157
|
+
a.b = this, a.f |= Tr, r(
|
|
2249
2158
|
this.#e,
|
|
2250
2159
|
() => i,
|
|
2251
2160
|
() => s
|
|
2252
2161
|
);
|
|
2253
2162
|
});
|
|
2254
|
-
} catch (
|
|
2163
|
+
} catch (a) {
|
|
2255
2164
|
return ye(
|
|
2256
|
-
|
|
2165
|
+
a,
|
|
2257
2166
|
/** @type {Effect} */
|
|
2258
2167
|
this.#i.parent
|
|
2259
2168
|
), null;
|
|
2260
2169
|
}
|
|
2261
2170
|
}));
|
|
2262
2171
|
};
|
|
2263
|
-
|
|
2172
|
+
We(() => {
|
|
2264
2173
|
var i;
|
|
2265
2174
|
try {
|
|
2266
2175
|
i = this.transform_error(t);
|
|
@@ -2277,7 +2186,7 @@ class Ta {
|
|
|
2277
2186
|
});
|
|
2278
2187
|
}
|
|
2279
2188
|
}
|
|
2280
|
-
function
|
|
2189
|
+
function An(e, t) {
|
|
2281
2190
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
2282
2191
|
r !== /** @type {any} */
|
|
2283
2192
|
(e[Hr] ??= e.nodeValue) && (e[Hr] = r, e.nodeValue = `${r}`);
|
|
@@ -2285,37 +2194,37 @@ function Tn(e, t) {
|
|
|
2285
2194
|
function Ri(e, t) {
|
|
2286
2195
|
return Di(e, t);
|
|
2287
2196
|
}
|
|
2288
|
-
function
|
|
2197
|
+
function xa(e, t) {
|
|
2289
2198
|
Pr(), t.intro = t.intro ?? !1;
|
|
2290
2199
|
const r = t.target, n = L, i = k;
|
|
2291
2200
|
try {
|
|
2292
|
-
for (var s = /* @__PURE__ */
|
|
2293
|
-
s.data !==
|
|
2201
|
+
for (var s = /* @__PURE__ */ vt(r); s && (s.nodeType !== Ft || /** @type {Comment} */
|
|
2202
|
+
s.data !== qn); )
|
|
2294
2203
|
s = /* @__PURE__ */ Pe(s);
|
|
2295
2204
|
if (!s)
|
|
2296
|
-
throw
|
|
2297
|
-
|
|
2205
|
+
throw ft;
|
|
2206
|
+
Ve(!0), ue(
|
|
2298
2207
|
/** @type {Comment} */
|
|
2299
2208
|
s
|
|
2300
2209
|
);
|
|
2301
|
-
const
|
|
2302
|
-
return
|
|
2303
|
-
|
|
2304
|
-
} catch (
|
|
2305
|
-
if (
|
|
2306
|
-
`).some((
|
|
2307
|
-
throw
|
|
2308
|
-
return
|
|
2210
|
+
const o = Di(e, { ...t, anchor: s });
|
|
2211
|
+
return Ve(!1), /** @type {Exports} */
|
|
2212
|
+
o;
|
|
2213
|
+
} catch (o) {
|
|
2214
|
+
if (o instanceof Error && o.message.split(`
|
|
2215
|
+
`).some((a) => a.startsWith("https://svelte.dev/e/")))
|
|
2216
|
+
throw o;
|
|
2217
|
+
return o !== ft && console.warn("Failed to hydrate: ", o), t.recover === !1 && Is(), Pr(), gi(r), Ve(!1), Ri(e, t);
|
|
2309
2218
|
} finally {
|
|
2310
|
-
|
|
2219
|
+
Ve(n), ue(i);
|
|
2311
2220
|
}
|
|
2312
2221
|
}
|
|
2313
2222
|
const jt = /* @__PURE__ */ new Map();
|
|
2314
|
-
function Di(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro:
|
|
2223
|
+
function Di(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: o = !0, transformError: a }) {
|
|
2315
2224
|
Pr();
|
|
2316
|
-
var l = void 0, u =
|
|
2225
|
+
var l = void 0, u = ra(() => {
|
|
2317
2226
|
var f = r ?? t.appendChild(Fe());
|
|
2318
|
-
|
|
2227
|
+
ya(
|
|
2319
2228
|
/** @type {TemplateNode} */
|
|
2320
2229
|
f,
|
|
2321
2230
|
{
|
|
@@ -2323,7 +2232,7 @@ function Di(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2323
2232
|
}
|
|
2324
2233
|
},
|
|
2325
2234
|
(p) => {
|
|
2326
|
-
|
|
2235
|
+
en({});
|
|
2327
2236
|
var d = (
|
|
2328
2237
|
/** @type {ComponentContext} */
|
|
2329
2238
|
_e
|
|
@@ -2332,24 +2241,24 @@ function Di(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2332
2241
|
/** @type {TemplateNode} */
|
|
2333
2242
|
p,
|
|
2334
2243
|
null
|
|
2335
|
-
), l = e(p, n) ||
|
|
2336
|
-
k.data !==
|
|
2337
|
-
throw or(),
|
|
2338
|
-
|
|
2244
|
+
), l = e(p, n) || ri(), L && ($.nodes.end = k, k === null || k.nodeType !== Ft || /** @type {Comment} */
|
|
2245
|
+
k.data !== Yr))
|
|
2246
|
+
throw or(), ft;
|
|
2247
|
+
tn();
|
|
2339
2248
|
},
|
|
2340
|
-
|
|
2249
|
+
a
|
|
2341
2250
|
);
|
|
2342
2251
|
var h = /* @__PURE__ */ new Set(), c = (p) => {
|
|
2343
2252
|
for (var d = 0; d < p.length; d++) {
|
|
2344
2253
|
var b = p[d];
|
|
2345
2254
|
if (!h.has(b)) {
|
|
2346
2255
|
h.add(b);
|
|
2347
|
-
var P =
|
|
2256
|
+
var P = ga(b);
|
|
2348
2257
|
for (const B of [t, document]) {
|
|
2349
2258
|
var x = jt.get(B);
|
|
2350
2259
|
x === void 0 && (x = /* @__PURE__ */ new Map(), jt.set(B, x));
|
|
2351
2260
|
var y = x.get(b);
|
|
2352
|
-
y === void 0 ? (B.addEventListener(b,
|
|
2261
|
+
y === void 0 ? (B.addEventListener(b, Tn, { passive: P }), x.set(b, 1)) : x.set(b, y + 1);
|
|
2353
2262
|
}
|
|
2354
2263
|
}
|
|
2355
2264
|
}
|
|
@@ -2364,7 +2273,7 @@ function Di(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2364
2273
|
/** @type {number} */
|
|
2365
2274
|
d.get(p)
|
|
2366
2275
|
);
|
|
2367
|
-
--b == 0 ? (P.removeEventListener(p,
|
|
2276
|
+
--b == 0 ? (P.removeEventListener(p, Tn), d.delete(p), d.size === 0 && jt.delete(P)) : d.set(p, b);
|
|
2368
2277
|
}
|
|
2369
2278
|
Ir.delete(c), f !== r && f.parentNode?.removeChild(f);
|
|
2370
2279
|
};
|
|
@@ -2372,17 +2281,17 @@ function Di(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2372
2281
|
return Rr.set(l, u), l;
|
|
2373
2282
|
}
|
|
2374
2283
|
let Rr = /* @__PURE__ */ new WeakMap();
|
|
2375
|
-
function
|
|
2284
|
+
function wa(e, t) {
|
|
2376
2285
|
const r = Rr.get(e);
|
|
2377
2286
|
return r ? (Rr.delete(e), r(t)) : Promise.resolve();
|
|
2378
2287
|
}
|
|
2379
|
-
function
|
|
2288
|
+
function Sa(e, t) {
|
|
2380
2289
|
return t;
|
|
2381
2290
|
}
|
|
2382
|
-
function
|
|
2383
|
-
for (var n = [], i = t.length, s,
|
|
2384
|
-
let h = t[
|
|
2385
|
-
|
|
2291
|
+
function Ta(e, t, r) {
|
|
2292
|
+
for (var n = [], i = t.length, s, o = t.length, a = 0; a < i; a++) {
|
|
2293
|
+
let h = t[a];
|
|
2294
|
+
lt(
|
|
2386
2295
|
h,
|
|
2387
2296
|
() => {
|
|
2388
2297
|
if (s) {
|
|
@@ -2394,12 +2303,12 @@ function Oa(e, t, r) {
|
|
|
2394
2303
|
Dr(e, sr(s.done)), c.delete(s), c.size === 0 && (e.outrogroups = null);
|
|
2395
2304
|
}
|
|
2396
2305
|
} else
|
|
2397
|
-
|
|
2306
|
+
o -= 1;
|
|
2398
2307
|
},
|
|
2399
2308
|
!1
|
|
2400
2309
|
);
|
|
2401
2310
|
}
|
|
2402
|
-
if (
|
|
2311
|
+
if (o === 0) {
|
|
2403
2312
|
var l = n.length === 0 && r !== null && e.pending.size === 0;
|
|
2404
2313
|
if (l) {
|
|
2405
2314
|
var u = (
|
|
@@ -2422,43 +2331,43 @@ function Dr(e, t, r = !0) {
|
|
|
2422
2331
|
var n;
|
|
2423
2332
|
if (e.pending.size > 0) {
|
|
2424
2333
|
n = /* @__PURE__ */ new Set();
|
|
2425
|
-
for (const
|
|
2426
|
-
for (const
|
|
2334
|
+
for (const o of e.pending.values())
|
|
2335
|
+
for (const a of o)
|
|
2427
2336
|
n.add(
|
|
2428
2337
|
/** @type {EachItem} */
|
|
2429
|
-
e.items.get(
|
|
2338
|
+
e.items.get(a).e
|
|
2430
2339
|
);
|
|
2431
2340
|
}
|
|
2432
2341
|
for (var i = 0; i < t.length; i++) {
|
|
2433
2342
|
var s = t[i];
|
|
2434
2343
|
if (n?.has(s)) {
|
|
2435
2344
|
s.f |= Oe;
|
|
2436
|
-
const
|
|
2437
|
-
Ni(s,
|
|
2345
|
+
const o = document.createDocumentFragment();
|
|
2346
|
+
Ni(s, o);
|
|
2438
2347
|
} else
|
|
2439
2348
|
le(t[i], r);
|
|
2440
2349
|
}
|
|
2441
2350
|
}
|
|
2442
|
-
var
|
|
2443
|
-
function
|
|
2444
|
-
var
|
|
2351
|
+
var Nn;
|
|
2352
|
+
function Aa(e, t, r, n, i, s = null) {
|
|
2353
|
+
var o = e, a = /* @__PURE__ */ new Map();
|
|
2445
2354
|
{
|
|
2446
2355
|
var l = (
|
|
2447
2356
|
/** @type {Element} */
|
|
2448
2357
|
e
|
|
2449
2358
|
);
|
|
2450
|
-
|
|
2359
|
+
o = L ? ue(/* @__PURE__ */ vt(l)) : l.appendChild(Fe());
|
|
2451
2360
|
}
|
|
2452
|
-
L &&
|
|
2453
|
-
var u = null, f = /* @__PURE__ */
|
|
2361
|
+
L && Kr();
|
|
2362
|
+
var u = null, f = /* @__PURE__ */ Vs(() => {
|
|
2454
2363
|
var y = r();
|
|
2455
2364
|
return (
|
|
2456
2365
|
/** @type {V[]} */
|
|
2457
|
-
|
|
2366
|
+
zn(y) ? y : y == null ? [] : sr(y)
|
|
2458
2367
|
);
|
|
2459
2368
|
}), h, c = /* @__PURE__ */ new Map(), p = !0;
|
|
2460
2369
|
function d(y) {
|
|
2461
|
-
x.effect.f &
|
|
2370
|
+
x.effect.f & ee || (x.pending.delete(y), x.fallback = u, Na(x, h, o, t, n), u !== null && (h.length === 0 ? u.f & Oe ? (u.f ^= Oe, Bt(u, null, o)) : Ti(u) : lt(u, () => {
|
|
2462
2371
|
u = null;
|
|
2463
2372
|
})));
|
|
2464
2373
|
}
|
|
@@ -2471,131 +2380,131 @@ function $a(e, t, r, n, i, s = null) {
|
|
|
2471
2380
|
var y = h.length;
|
|
2472
2381
|
let B = !1;
|
|
2473
2382
|
if (L) {
|
|
2474
|
-
var
|
|
2475
|
-
|
|
2383
|
+
var Q = $s(o) === Qr;
|
|
2384
|
+
Q !== (y === 0) && (o = Or(), ue(o), Ve(!1), B = !0);
|
|
2476
2385
|
}
|
|
2477
2386
|
for (var M = /* @__PURE__ */ new Set(), R = (
|
|
2478
2387
|
/** @type {Batch} */
|
|
2479
|
-
|
|
2480
|
-
), ie =
|
|
2388
|
+
H
|
|
2389
|
+
), ie = Zs(), V = 0; V < y; V += 1) {
|
|
2481
2390
|
L && k.nodeType === Ft && /** @type {Comment} */
|
|
2482
|
-
k.data ===
|
|
2483
|
-
k, B = !0,
|
|
2484
|
-
var he = h[V], I = n(he, V), w = p ? null :
|
|
2485
|
-
w ? (w.v &&
|
|
2486
|
-
|
|
2487
|
-
p ?
|
|
2391
|
+
k.data === Yr && (o = /** @type {Comment} */
|
|
2392
|
+
k, B = !0, Ve(!1));
|
|
2393
|
+
var he = h[V], I = n(he, V), w = p ? null : a.get(I);
|
|
2394
|
+
w ? (w.v && pt(w.v, he), w.i && pt(w.i, V), ie && R.unskip_effect(w.e)) : (w = Ha(
|
|
2395
|
+
a,
|
|
2396
|
+
p ? o : Nn ??= Fe(),
|
|
2488
2397
|
he,
|
|
2489
2398
|
I,
|
|
2490
2399
|
V,
|
|
2491
2400
|
i,
|
|
2492
2401
|
t,
|
|
2493
2402
|
r
|
|
2494
|
-
), p || (w.e.f |= Oe),
|
|
2403
|
+
), p || (w.e.f |= Oe), a.set(I, w)), M.add(I);
|
|
2495
2404
|
}
|
|
2496
|
-
if (y === 0 && s && !u && (p ? u = be(() => s(
|
|
2405
|
+
if (y === 0 && s && !u && (p ? u = be(() => s(o)) : (u = be(() => s(Nn ??= Fe())), u.f |= Oe)), y > M.size && Ms(), L && y > 0 && ue(Or()), !p)
|
|
2497
2406
|
if (c.set(R, M), ie) {
|
|
2498
|
-
for (const [Ie, tt] of
|
|
2407
|
+
for (const [Ie, tt] of a)
|
|
2499
2408
|
M.has(Ie) || R.skip_effect(tt.e);
|
|
2500
2409
|
R.oncommit(d), R.ondiscard(b);
|
|
2501
2410
|
} else
|
|
2502
2411
|
d(R);
|
|
2503
|
-
B &&
|
|
2504
|
-
}), x = { effect: P, items:
|
|
2505
|
-
p = !1, L && (
|
|
2412
|
+
B && Ve(!0), j(f);
|
|
2413
|
+
}), x = { effect: P, items: a, pending: c, outrogroups: null, fallback: u };
|
|
2414
|
+
p = !1, L && (o = k);
|
|
2506
2415
|
}
|
|
2507
|
-
function
|
|
2416
|
+
function At(e) {
|
|
2508
2417
|
for (; e !== null && !(e.f & ge); )
|
|
2509
2418
|
e = e.next;
|
|
2510
2419
|
return e;
|
|
2511
2420
|
}
|
|
2512
|
-
function
|
|
2513
|
-
var s = t.length,
|
|
2421
|
+
function Na(e, t, r, n, i) {
|
|
2422
|
+
var s = t.length, o = e.items, a = At(e.effect.first), l, u = null, f = [], h = [], c, p, d, b;
|
|
2514
2423
|
for (b = 0; b < s; b += 1) {
|
|
2515
2424
|
if (c = t[b], p = i(c, b), d = /** @type {EachItem} */
|
|
2516
|
-
|
|
2425
|
+
o.get(p).e, e.outrogroups !== null)
|
|
2517
2426
|
for (const V of e.outrogroups)
|
|
2518
2427
|
V.pending.delete(d), V.done.delete(d);
|
|
2519
2428
|
if (d.f & K && Ti(d), d.f & Oe)
|
|
2520
|
-
if (d.f ^= Oe, d ===
|
|
2521
|
-
|
|
2429
|
+
if (d.f ^= Oe, d === a)
|
|
2430
|
+
Bt(d, null, r);
|
|
2522
2431
|
else {
|
|
2523
|
-
var P = u ? u.next :
|
|
2524
|
-
d === e.effect.last && (e.effect.last = d.prev), d.prev && (d.prev.next = d.next), d.next && (d.next.prev = d.prev), Le(e, u, d), Le(e, d, P),
|
|
2432
|
+
var P = u ? u.next : a;
|
|
2433
|
+
d === e.effect.last && (e.effect.last = d.prev), d.prev && (d.prev.next = d.next), d.next && (d.next.prev = d.prev), Le(e, u, d), Le(e, d, P), Bt(d, P, r), u = d, f = [], h = [], a = At(u.next);
|
|
2525
2434
|
continue;
|
|
2526
2435
|
}
|
|
2527
|
-
if (d !==
|
|
2436
|
+
if (d !== a) {
|
|
2528
2437
|
if (l !== void 0 && l.has(d)) {
|
|
2529
2438
|
if (f.length < h.length) {
|
|
2530
2439
|
var x = h[0], y;
|
|
2531
2440
|
u = x.prev;
|
|
2532
|
-
var B = f[0],
|
|
2441
|
+
var B = f[0], Q = f[f.length - 1];
|
|
2533
2442
|
for (y = 0; y < f.length; y += 1)
|
|
2534
|
-
|
|
2443
|
+
Bt(f[y], x, r);
|
|
2535
2444
|
for (y = 0; y < h.length; y += 1)
|
|
2536
2445
|
l.delete(h[y]);
|
|
2537
|
-
Le(e, B.prev,
|
|
2446
|
+
Le(e, B.prev, Q.next), Le(e, u, B), Le(e, Q, x), a = x, u = Q, b -= 1, f = [], h = [];
|
|
2538
2447
|
} else
|
|
2539
|
-
l.delete(d),
|
|
2448
|
+
l.delete(d), Bt(d, a, r), Le(e, d.prev, d.next), Le(e, d, u === null ? e.effect.first : u.next), Le(e, u, d), u = d;
|
|
2540
2449
|
continue;
|
|
2541
2450
|
}
|
|
2542
|
-
for (f = [], h = [];
|
|
2543
|
-
(l ??= /* @__PURE__ */ new Set()).add(
|
|
2544
|
-
if (
|
|
2451
|
+
for (f = [], h = []; a !== null && a !== d; )
|
|
2452
|
+
(l ??= /* @__PURE__ */ new Set()).add(a), h.push(a), a = At(a.next);
|
|
2453
|
+
if (a === null)
|
|
2545
2454
|
continue;
|
|
2546
2455
|
}
|
|
2547
|
-
d.f & Oe || f.push(d), u = d,
|
|
2456
|
+
d.f & Oe || f.push(d), u = d, a = At(d.next);
|
|
2548
2457
|
}
|
|
2549
2458
|
if (e.outrogroups !== null) {
|
|
2550
2459
|
for (const V of e.outrogroups)
|
|
2551
2460
|
V.pending.size === 0 && (Dr(e, sr(V.done)), e.outrogroups?.delete(V));
|
|
2552
2461
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2553
2462
|
}
|
|
2554
|
-
if (
|
|
2463
|
+
if (a !== null || l !== void 0) {
|
|
2555
2464
|
var M = [];
|
|
2556
2465
|
if (l !== void 0)
|
|
2557
2466
|
for (d of l)
|
|
2558
2467
|
d.f & K || M.push(d);
|
|
2559
|
-
for (;
|
|
2560
|
-
!(
|
|
2468
|
+
for (; a !== null; )
|
|
2469
|
+
!(a.f & K) && a !== e.fallback && M.push(a), a = At(a.next);
|
|
2561
2470
|
var R = M.length;
|
|
2562
2471
|
if (R > 0) {
|
|
2563
2472
|
var ie = s === 0 ? r : null;
|
|
2564
|
-
|
|
2473
|
+
Ta(e, M, ie);
|
|
2565
2474
|
}
|
|
2566
2475
|
}
|
|
2567
2476
|
}
|
|
2568
|
-
function
|
|
2569
|
-
var l =
|
|
2477
|
+
function Ha(e, t, r, n, i, s, o, a) {
|
|
2478
|
+
var l = o & ps ? o & ms ? Ye(r) : /* @__PURE__ */ un(r, !1, !1) : null, u = o & vs ? Ye(i) : null;
|
|
2570
2479
|
return {
|
|
2571
2480
|
v: l,
|
|
2572
2481
|
i: u,
|
|
2573
|
-
e: be(() => (s(t, l ?? r, u ?? i,
|
|
2482
|
+
e: be(() => (s(t, l ?? r, u ?? i, a), () => {
|
|
2574
2483
|
e.delete(n);
|
|
2575
2484
|
}))
|
|
2576
2485
|
};
|
|
2577
2486
|
}
|
|
2578
|
-
function
|
|
2487
|
+
function Bt(e, t, r) {
|
|
2579
2488
|
if (e.nodes)
|
|
2580
2489
|
for (var n = e.nodes.start, i = e.nodes.end, s = t && !(t.f & Oe) ? (
|
|
2581
2490
|
/** @type {EffectNodes} */
|
|
2582
2491
|
t.nodes.start
|
|
2583
2492
|
) : r; n !== null; ) {
|
|
2584
|
-
var
|
|
2493
|
+
var o = (
|
|
2585
2494
|
/** @type {TemplateNode} */
|
|
2586
2495
|
/* @__PURE__ */ Pe(n)
|
|
2587
2496
|
);
|
|
2588
2497
|
if (s.before(n), n === i)
|
|
2589
2498
|
return;
|
|
2590
|
-
n =
|
|
2499
|
+
n = o;
|
|
2591
2500
|
}
|
|
2592
2501
|
}
|
|
2593
2502
|
function Le(e, t, r) {
|
|
2594
2503
|
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
2595
2504
|
}
|
|
2596
|
-
function
|
|
2597
|
-
|
|
2598
|
-
e =
|
|
2505
|
+
function Oa(e, t) {
|
|
2506
|
+
na(() => {
|
|
2507
|
+
e = $?.parent?.nodes?.start ?? e;
|
|
2599
2508
|
var r = e.getRootNode(), n = (
|
|
2600
2509
|
/** @type {ShadowRoot} */
|
|
2601
2510
|
r.host ? (
|
|
@@ -2613,30 +2522,30 @@ function Pa(e, t) {
|
|
|
2613
2522
|
}
|
|
2614
2523
|
});
|
|
2615
2524
|
}
|
|
2616
|
-
const
|
|
2525
|
+
const Hn = [...`
|
|
2617
2526
|
\r\f \v\uFEFF`];
|
|
2618
|
-
function
|
|
2527
|
+
function $a(e, t, r) {
|
|
2619
2528
|
var n = e == null ? "" : "" + e;
|
|
2620
2529
|
if (r) {
|
|
2621
2530
|
for (var i of Object.keys(r))
|
|
2622
2531
|
if (r[i])
|
|
2623
2532
|
n = n ? n + " " + i : i;
|
|
2624
2533
|
else if (n.length)
|
|
2625
|
-
for (var s = i.length,
|
|
2626
|
-
var
|
|
2627
|
-
(
|
|
2534
|
+
for (var s = i.length, o = 0; (o = n.indexOf(i, o)) >= 0; ) {
|
|
2535
|
+
var a = o + s;
|
|
2536
|
+
(o === 0 || Hn.includes(n[o - 1])) && (a === n.length || Hn.includes(n[a])) ? n = (o === 0 ? "" : n.substring(0, o)) + n.substring(a + 1) : o = a;
|
|
2628
2537
|
}
|
|
2629
2538
|
}
|
|
2630
2539
|
return n === "" ? null : n;
|
|
2631
2540
|
}
|
|
2632
|
-
function
|
|
2633
|
-
var
|
|
2541
|
+
function On(e, t, r, n, i, s) {
|
|
2542
|
+
var o = (
|
|
2634
2543
|
/** @type {any} */
|
|
2635
2544
|
e[Nr]
|
|
2636
2545
|
);
|
|
2637
|
-
if (L ||
|
|
2638
|
-
var
|
|
2639
|
-
(!L ||
|
|
2546
|
+
if (L || o !== r || o === void 0) {
|
|
2547
|
+
var a = $a(r, n, s);
|
|
2548
|
+
(!L || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : e.className = a), e[Nr] = r;
|
|
2640
2549
|
} else if (s && i !== s)
|
|
2641
2550
|
for (var l in s) {
|
|
2642
2551
|
var u = !!s[l];
|
|
@@ -2644,54 +2553,171 @@ function Hn(e, t, r, n, i, s) {
|
|
|
2644
2553
|
}
|
|
2645
2554
|
return s;
|
|
2646
2555
|
}
|
|
2647
|
-
const
|
|
2648
|
-
function
|
|
2649
|
-
var i =
|
|
2650
|
-
L && (i[t] = e.getAttribute(t)), i[t] !== (i[t] = r) && (r == null ? e.removeAttribute(t) : typeof r != "string" &&
|
|
2556
|
+
const Ba = Symbol("is custom element"), Ma = Symbol("is html");
|
|
2557
|
+
function Pa(e, t, r, n) {
|
|
2558
|
+
var i = Ia(e);
|
|
2559
|
+
L && (i[t] = e.getAttribute(t)), i[t] !== (i[t] = r) && (r == null ? e.removeAttribute(t) : typeof r != "string" && Ca(e).has(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2651
2560
|
}
|
|
2652
|
-
function
|
|
2561
|
+
function Ia(e) {
|
|
2653
2562
|
return (
|
|
2654
2563
|
/** @type {Record<string | symbol, unknown>} **/
|
|
2655
2564
|
/** @type {any} */
|
|
2656
|
-
e[
|
|
2657
|
-
[
|
|
2658
|
-
[
|
|
2565
|
+
e[Jn] ??= {
|
|
2566
|
+
[Ba]: e.nodeName.includes("-"),
|
|
2567
|
+
[Ma]: e.namespaceURI === _s
|
|
2659
2568
|
}
|
|
2660
2569
|
);
|
|
2661
2570
|
}
|
|
2662
|
-
var
|
|
2663
|
-
function
|
|
2664
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
2571
|
+
var $n = /* @__PURE__ */ new Map();
|
|
2572
|
+
function Ca(e) {
|
|
2573
|
+
var t = e.getAttribute("is") || e.nodeName, r = $n.get(t);
|
|
2665
2574
|
if (r) return r;
|
|
2666
|
-
|
|
2575
|
+
$n.set(t, r = /* @__PURE__ */ new Set());
|
|
2667
2576
|
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
2668
2577
|
n = ys(i);
|
|
2669
|
-
for (var
|
|
2670
|
-
n[
|
|
2671
|
-
|
|
2672
|
-
i =
|
|
2578
|
+
for (var o in n)
|
|
2579
|
+
n[o].set && // better safe than sorry, we don't want spread attributes to mess with HTML content
|
|
2580
|
+
o !== "innerHTML" && o !== "textContent" && o !== "innerText" && r.add(o);
|
|
2581
|
+
i = Wn(i);
|
|
2673
2582
|
}
|
|
2674
2583
|
return r;
|
|
2675
2584
|
}
|
|
2585
|
+
function cn(e, t, r) {
|
|
2586
|
+
if (e == null)
|
|
2587
|
+
return t(void 0), r && r(void 0), Be;
|
|
2588
|
+
const n = Ii(
|
|
2589
|
+
() => e.subscribe(
|
|
2590
|
+
t,
|
|
2591
|
+
// @ts-expect-error
|
|
2592
|
+
r
|
|
2593
|
+
)
|
|
2594
|
+
);
|
|
2595
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
2596
|
+
}
|
|
2597
|
+
const it = [];
|
|
2598
|
+
function La(e, t) {
|
|
2599
|
+
return {
|
|
2600
|
+
subscribe: lr(e, t).subscribe
|
|
2601
|
+
};
|
|
2602
|
+
}
|
|
2603
|
+
function lr(e, t = Be) {
|
|
2604
|
+
let r = null;
|
|
2605
|
+
const n = /* @__PURE__ */ new Set();
|
|
2606
|
+
function i(a) {
|
|
2607
|
+
if (ei(e, a) && (e = a, r)) {
|
|
2608
|
+
const l = !it.length;
|
|
2609
|
+
for (const u of n)
|
|
2610
|
+
u[1](), it.push(u, e);
|
|
2611
|
+
if (l) {
|
|
2612
|
+
for (let u = 0; u < it.length; u += 2)
|
|
2613
|
+
it[u][0](it[u + 1]);
|
|
2614
|
+
it.length = 0;
|
|
2615
|
+
}
|
|
2616
|
+
}
|
|
2617
|
+
}
|
|
2618
|
+
function s(a) {
|
|
2619
|
+
i(a(
|
|
2620
|
+
/** @type {T} */
|
|
2621
|
+
e
|
|
2622
|
+
));
|
|
2623
|
+
}
|
|
2624
|
+
function o(a, l = Be) {
|
|
2625
|
+
const u = [a, l];
|
|
2626
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || Be), a(
|
|
2627
|
+
/** @type {T} */
|
|
2628
|
+
e
|
|
2629
|
+
), () => {
|
|
2630
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
2631
|
+
};
|
|
2632
|
+
}
|
|
2633
|
+
return { set: i, update: s, subscribe: o };
|
|
2634
|
+
}
|
|
2635
|
+
function Et(e, t, r) {
|
|
2636
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
2637
|
+
if (!i.every(Boolean))
|
|
2638
|
+
throw new Error("derived() expects stores as input, got a falsy value");
|
|
2639
|
+
const s = t.length < 2;
|
|
2640
|
+
return La(r, (o, a) => {
|
|
2641
|
+
let l = !1;
|
|
2642
|
+
const u = [];
|
|
2643
|
+
let f = 0, h = Be;
|
|
2644
|
+
const c = () => {
|
|
2645
|
+
if (f)
|
|
2646
|
+
return;
|
|
2647
|
+
h();
|
|
2648
|
+
const d = t(n ? u[0] : u, o, a);
|
|
2649
|
+
s ? o(d) : h = typeof d == "function" ? d : Be;
|
|
2650
|
+
}, p = i.map(
|
|
2651
|
+
(d, b) => cn(
|
|
2652
|
+
d,
|
|
2653
|
+
(P) => {
|
|
2654
|
+
u[b] = P, f &= ~(1 << b), l && c();
|
|
2655
|
+
},
|
|
2656
|
+
() => {
|
|
2657
|
+
f |= 1 << b;
|
|
2658
|
+
}
|
|
2659
|
+
)
|
|
2660
|
+
);
|
|
2661
|
+
return l = !0, c(), function() {
|
|
2662
|
+
Xn(p), h(), l = !1;
|
|
2663
|
+
};
|
|
2664
|
+
});
|
|
2665
|
+
}
|
|
2666
|
+
function Ra(e) {
|
|
2667
|
+
let t;
|
|
2668
|
+
return cn(e, (r) => t = r)(), t;
|
|
2669
|
+
}
|
|
2670
|
+
let kr = Symbol("unmounted");
|
|
2671
|
+
function Da(e, t, r) {
|
|
2672
|
+
const n = r[t] ??= {
|
|
2673
|
+
store: null,
|
|
2674
|
+
source: /* @__PURE__ */ un(void 0),
|
|
2675
|
+
unsubscribe: Be
|
|
2676
|
+
};
|
|
2677
|
+
if (n.store !== e && !(kr in r))
|
|
2678
|
+
if (n.unsubscribe(), n.store = e ?? null, e == null)
|
|
2679
|
+
n.source.v = void 0, n.unsubscribe = Be;
|
|
2680
|
+
else {
|
|
2681
|
+
var i = !0;
|
|
2682
|
+
n.unsubscribe = cn(e, (s) => {
|
|
2683
|
+
i ? n.source.v = s : ce(n.source, s);
|
|
2684
|
+
}), i = !1;
|
|
2685
|
+
}
|
|
2686
|
+
return e && kr in r ? Ra(e) : j(n.source);
|
|
2687
|
+
}
|
|
2688
|
+
function ka() {
|
|
2689
|
+
const e = {};
|
|
2690
|
+
function t() {
|
|
2691
|
+
bi(() => {
|
|
2692
|
+
for (var r in e)
|
|
2693
|
+
e[r].unsubscribe();
|
|
2694
|
+
ht(e, kr, {
|
|
2695
|
+
enumerable: !1,
|
|
2696
|
+
value: !0
|
|
2697
|
+
});
|
|
2698
|
+
});
|
|
2699
|
+
}
|
|
2700
|
+
return [e, t];
|
|
2701
|
+
}
|
|
2676
2702
|
function Re(e, t, r, n) {
|
|
2677
2703
|
var i = (
|
|
2678
2704
|
/** @type {V} */
|
|
2679
2705
|
n
|
|
2680
|
-
), s = !0,
|
|
2681
|
-
n), i),
|
|
2682
|
-
|
|
2683
|
-
e[t],
|
|
2706
|
+
), s = !0, o = () => (s && (s = !1, i = /** @type {V} */
|
|
2707
|
+
n), i), a;
|
|
2708
|
+
a = /** @type {V} */
|
|
2709
|
+
e[t], a === void 0 && n !== void 0 && (a = o());
|
|
2684
2710
|
var l;
|
|
2685
2711
|
l = () => {
|
|
2686
2712
|
var c = (
|
|
2687
2713
|
/** @type {V} */
|
|
2688
2714
|
e[t]
|
|
2689
2715
|
);
|
|
2690
|
-
return c === void 0 ?
|
|
2716
|
+
return c === void 0 ? o() : (s = !0, c);
|
|
2691
2717
|
};
|
|
2692
2718
|
var u = !1, f = /* @__PURE__ */ nn(() => (u = !1, l())), h = (
|
|
2693
2719
|
/** @type {Effect} */
|
|
2694
|
-
|
|
2720
|
+
$
|
|
2695
2721
|
);
|
|
2696
2722
|
return (
|
|
2697
2723
|
/** @type {() => V} */
|
|
@@ -2700,7 +2726,7 @@ function Re(e, t, r, n) {
|
|
|
2700
2726
|
const d = p ? j(f) : c;
|
|
2701
2727
|
return ce(f, d), u = !0, i !== void 0 && (i = d), c;
|
|
2702
2728
|
}
|
|
2703
|
-
return Ge && u || h.f &
|
|
2729
|
+
return Ge && u || h.f & ee ? f.v : j(f);
|
|
2704
2730
|
}
|
|
2705
2731
|
);
|
|
2706
2732
|
}
|
|
@@ -2711,32 +2737,32 @@ class Ga {
|
|
|
2711
2737
|
/** @type {any} */
|
|
2712
2738
|
#e;
|
|
2713
2739
|
/** @type {Record<string, any>} */
|
|
2714
|
-
#
|
|
2740
|
+
#r;
|
|
2715
2741
|
/**
|
|
2716
2742
|
* @param {ComponentConstructorOptions & {
|
|
2717
2743
|
* component: any;
|
|
2718
2744
|
* }} options
|
|
2719
2745
|
*/
|
|
2720
2746
|
constructor(t) {
|
|
2721
|
-
var r = /* @__PURE__ */ new Map(), n = (s,
|
|
2722
|
-
var
|
|
2723
|
-
return r.set(s,
|
|
2747
|
+
var r = /* @__PURE__ */ new Map(), n = (s, o) => {
|
|
2748
|
+
var a = /* @__PURE__ */ un(o, !1, !1);
|
|
2749
|
+
return r.set(s, a), a;
|
|
2724
2750
|
};
|
|
2725
2751
|
const i = new Proxy(
|
|
2726
2752
|
{ ...t.props || {}, $$events: {} },
|
|
2727
2753
|
{
|
|
2728
|
-
get(s,
|
|
2729
|
-
return j(r.get(
|
|
2754
|
+
get(s, o) {
|
|
2755
|
+
return j(r.get(o) ?? n(o, Reflect.get(s, o)));
|
|
2730
2756
|
},
|
|
2731
|
-
has(s,
|
|
2732
|
-
return
|
|
2757
|
+
has(s, o) {
|
|
2758
|
+
return o === Ts ? !0 : (j(r.get(o) ?? n(o, Reflect.get(s, o))), Reflect.has(s, o));
|
|
2733
2759
|
},
|
|
2734
|
-
set(s,
|
|
2735
|
-
return ce(r.get(
|
|
2760
|
+
set(s, o, a) {
|
|
2761
|
+
return ce(r.get(o) ?? n(o, a), a), Reflect.set(s, o, a);
|
|
2736
2762
|
}
|
|
2737
2763
|
}
|
|
2738
2764
|
);
|
|
2739
|
-
this.#
|
|
2765
|
+
this.#r = (t.hydrate ? xa : Ri)(t.component, {
|
|
2740
2766
|
target: t.target,
|
|
2741
2767
|
anchor: t.anchor,
|
|
2742
2768
|
props: i,
|
|
@@ -2745,27 +2771,27 @@ class Ga {
|
|
|
2745
2771
|
recover: t.recover,
|
|
2746
2772
|
transformError: t.transformError
|
|
2747
2773
|
}), (!t?.props?.$$host || t.sync === !1) && $e(), this.#e = i.$$events;
|
|
2748
|
-
for (const s of Object.keys(this.#
|
|
2749
|
-
s === "$set" || s === "$destroy" || s === "$on" ||
|
|
2774
|
+
for (const s of Object.keys(this.#r))
|
|
2775
|
+
s === "$set" || s === "$destroy" || s === "$on" || ht(this, s, {
|
|
2750
2776
|
get() {
|
|
2751
|
-
return this.#
|
|
2777
|
+
return this.#r[s];
|
|
2752
2778
|
},
|
|
2753
2779
|
/** @param {any} value */
|
|
2754
|
-
set(
|
|
2755
|
-
this.#
|
|
2780
|
+
set(o) {
|
|
2781
|
+
this.#r[s] = o;
|
|
2756
2782
|
},
|
|
2757
2783
|
enumerable: !0
|
|
2758
2784
|
});
|
|
2759
|
-
this.#
|
|
2785
|
+
this.#r.$set = /** @param {Record<string, any>} next */
|
|
2760
2786
|
(s) => {
|
|
2761
2787
|
Object.assign(i, s);
|
|
2762
|
-
}, this.#
|
|
2763
|
-
|
|
2788
|
+
}, this.#r.$destroy = () => {
|
|
2789
|
+
wa(this.#r);
|
|
2764
2790
|
};
|
|
2765
2791
|
}
|
|
2766
2792
|
/** @param {Record<string, any>} props */
|
|
2767
2793
|
$set(t) {
|
|
2768
|
-
this.#
|
|
2794
|
+
this.#r.$set(t);
|
|
2769
2795
|
}
|
|
2770
2796
|
/**
|
|
2771
2797
|
* @param {string} event
|
|
@@ -2783,7 +2809,7 @@ class Ga {
|
|
|
2783
2809
|
};
|
|
2784
2810
|
}
|
|
2785
2811
|
$destroy() {
|
|
2786
|
-
this.#
|
|
2812
|
+
this.#r.$destroy();
|
|
2787
2813
|
}
|
|
2788
2814
|
}
|
|
2789
2815
|
let ki;
|
|
@@ -2868,7 +2894,7 @@ typeof HTMLElement == "function" && (ki = class extends HTMLElement {
|
|
|
2868
2894
|
$$slots: t,
|
|
2869
2895
|
$$host: this
|
|
2870
2896
|
}
|
|
2871
|
-
}), this.$$me =
|
|
2897
|
+
}), this.$$me = ta(() => {
|
|
2872
2898
|
yi(() => {
|
|
2873
2899
|
this.$$r = !0;
|
|
2874
2900
|
for (const n of Zt(this.$$c)) {
|
|
@@ -2956,38 +2982,38 @@ function Ua(e) {
|
|
|
2956
2982
|
}), t;
|
|
2957
2983
|
}
|
|
2958
2984
|
function Fi(e, t, r, n, i, s) {
|
|
2959
|
-
let
|
|
2985
|
+
let o = class extends ki {
|
|
2960
2986
|
constructor() {
|
|
2961
2987
|
super(e, r, i), this.$$p_d = t;
|
|
2962
2988
|
}
|
|
2963
2989
|
static get observedAttributes() {
|
|
2964
2990
|
return Zt(t).map(
|
|
2965
|
-
(
|
|
2991
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
2966
2992
|
);
|
|
2967
2993
|
}
|
|
2968
2994
|
};
|
|
2969
|
-
return Zt(t).forEach((
|
|
2970
|
-
|
|
2995
|
+
return Zt(t).forEach((a) => {
|
|
2996
|
+
ht(o.prototype, a, {
|
|
2971
2997
|
get() {
|
|
2972
|
-
return this.$$c &&
|
|
2998
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2973
2999
|
},
|
|
2974
3000
|
set(l) {
|
|
2975
|
-
l = Wt(
|
|
3001
|
+
l = Wt(a, l, t), this.$$d[a] = l;
|
|
2976
3002
|
var u = this.$$c;
|
|
2977
3003
|
if (u) {
|
|
2978
|
-
var f =
|
|
2979
|
-
f ? u[
|
|
3004
|
+
var f = ot(u, a)?.get;
|
|
3005
|
+
f ? u[a] = l : u.$set({ [a]: l });
|
|
2980
3006
|
}
|
|
2981
3007
|
}
|
|
2982
3008
|
});
|
|
2983
|
-
}), n.forEach((
|
|
2984
|
-
|
|
3009
|
+
}), n.forEach((a) => {
|
|
3010
|
+
ht(o.prototype, a, {
|
|
2985
3011
|
get() {
|
|
2986
|
-
return this.$$c?.[
|
|
3012
|
+
return this.$$c?.[a];
|
|
2987
3013
|
}
|
|
2988
3014
|
});
|
|
2989
3015
|
}), e.element = /** @type {any} */
|
|
2990
|
-
|
|
3016
|
+
o, o;
|
|
2991
3017
|
}
|
|
2992
3018
|
var ja = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2993
3019
|
function qa(e) {
|
|
@@ -2998,13 +3024,13 @@ var Va = { exports: {} };
|
|
|
2998
3024
|
(function(r, n) {
|
|
2999
3025
|
e.exports = n();
|
|
3000
3026
|
})(ja, function() {
|
|
3001
|
-
var r = 1e3, n = 6e4, i = 36e5, s = "millisecond",
|
|
3027
|
+
var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", o = "second", a = "minute", l = "hour", u = "day", f = "week", h = "month", c = "quarter", p = "year", d = "date", b = "Invalid Date", P = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(E) {
|
|
3002
3028
|
var m = ["th", "st", "nd", "rd"], v = E % 100;
|
|
3003
3029
|
return "[" + E + (m[(v - 20) % 10] || m[v] || m[0]) + "]";
|
|
3004
3030
|
} }, B = function(E, m, v) {
|
|
3005
3031
|
var _ = String(E);
|
|
3006
3032
|
return !_ || _.length >= m ? E : "" + Array(m + 1 - _.length).join(v) + E;
|
|
3007
|
-
},
|
|
3033
|
+
}, Q = { s: B, z: function(E) {
|
|
3008
3034
|
var m = -E.utcOffset(), v = Math.abs(m), _ = Math.floor(v / 60), g = v % 60;
|
|
3009
3035
|
return (m <= 0 ? "+" : "-") + B(_, 2, "0") + ":" + B(g, 2, "0");
|
|
3010
3036
|
}, m: function E(m, v) {
|
|
@@ -3014,7 +3040,7 @@ var Va = { exports: {} };
|
|
|
3014
3040
|
}, a: function(E) {
|
|
3015
3041
|
return E < 0 ? Math.ceil(E) || 0 : Math.floor(E);
|
|
3016
3042
|
}, p: function(E) {
|
|
3017
|
-
return { M: h, y: p, w: f, d: u, D: d, h: l, m:
|
|
3043
|
+
return { M: h, y: p, w: f, d: u, D: d, h: l, m: a, s: o, ms: s, Q: c }[E] || String(E || "").toLowerCase().replace(/s$/, "");
|
|
3018
3044
|
}, u: function(E) {
|
|
3019
3045
|
return E === void 0;
|
|
3020
3046
|
} }, M = "en", R = {};
|
|
@@ -3038,7 +3064,7 @@ var Va = { exports: {} };
|
|
|
3038
3064
|
if (V(E)) return E.clone();
|
|
3039
3065
|
var v = typeof m == "object" ? m : {};
|
|
3040
3066
|
return v.date = E, v.args = arguments, new Ie(v);
|
|
3041
|
-
}, w =
|
|
3067
|
+
}, w = Q;
|
|
3042
3068
|
w.l = he, w.i = V, w.w = function(E, m) {
|
|
3043
3069
|
return I(E, { locale: m.$L, utc: m.$u, x: m.$x, $offset: m.$offset });
|
|
3044
3070
|
};
|
|
@@ -3083,28 +3109,28 @@ var Va = { exports: {} };
|
|
|
3083
3109
|
}, m.valueOf = function() {
|
|
3084
3110
|
return this.$d.getTime();
|
|
3085
3111
|
}, m.startOf = function(v, _) {
|
|
3086
|
-
var g = this, S = !!w.u(_) || _, T = w.p(v), C = function(je,
|
|
3087
|
-
var Ce = w.w(g.$u ? Date.UTC(g.$y,
|
|
3112
|
+
var g = this, S = !!w.u(_) || _, T = w.p(v), C = function(je, te) {
|
|
3113
|
+
var Ce = w.w(g.$u ? Date.UTC(g.$y, te, je) : new Date(g.$y, te, je), g);
|
|
3088
3114
|
return S ? Ce : Ce.endOf(u);
|
|
3089
|
-
}, U = function(je,
|
|
3090
|
-
return w.w(g.toDate()[je].apply(g.toDate("s"), (S ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(
|
|
3091
|
-
}, X = this.$W,
|
|
3115
|
+
}, U = function(je, te) {
|
|
3116
|
+
return w.w(g.toDate()[je].apply(g.toDate("s"), (S ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), g);
|
|
3117
|
+
}, X = this.$W, Y = this.$M, se = this.$D, rt = "set" + (this.$u ? "UTC" : "");
|
|
3092
3118
|
switch (T) {
|
|
3093
3119
|
case p:
|
|
3094
3120
|
return S ? C(1, 0) : C(31, 11);
|
|
3095
3121
|
case h:
|
|
3096
|
-
return S ? C(1,
|
|
3122
|
+
return S ? C(1, Y) : C(0, Y + 1);
|
|
3097
3123
|
case f:
|
|
3098
|
-
var Ue = this.$locale().weekStart || 0,
|
|
3099
|
-
return C(S ? se -
|
|
3124
|
+
var Ue = this.$locale().weekStart || 0, St = (X < Ue ? X + 7 : X) - Ue;
|
|
3125
|
+
return C(S ? se - St : se + (6 - St), Y);
|
|
3100
3126
|
case u:
|
|
3101
3127
|
case d:
|
|
3102
3128
|
return U(rt + "Hours", 0);
|
|
3103
3129
|
case l:
|
|
3104
3130
|
return U(rt + "Minutes", 1);
|
|
3105
|
-
case o:
|
|
3106
|
-
return U(rt + "Seconds", 2);
|
|
3107
3131
|
case a:
|
|
3132
|
+
return U(rt + "Seconds", 2);
|
|
3133
|
+
case o:
|
|
3108
3134
|
return U(rt + "Milliseconds", 3);
|
|
3109
3135
|
default:
|
|
3110
3136
|
return this.clone();
|
|
@@ -3112,7 +3138,7 @@ var Va = { exports: {} };
|
|
|
3112
3138
|
}, m.endOf = function(v) {
|
|
3113
3139
|
return this.startOf(v, !1);
|
|
3114
3140
|
}, m.$set = function(v, _) {
|
|
3115
|
-
var g, S = w.p(v), T = "set" + (this.$u ? "UTC" : ""), C = (g = {}, g[u] = T + "Date", g[d] = T + "Date", g[h] = T + "Month", g[p] = T + "FullYear", g[l] = T + "Hours", g[
|
|
3141
|
+
var g, S = w.p(v), T = "set" + (this.$u ? "UTC" : ""), C = (g = {}, g[u] = T + "Date", g[d] = T + "Date", g[h] = T + "Month", g[p] = T + "FullYear", g[l] = T + "Hours", g[a] = T + "Minutes", g[o] = T + "Seconds", g[s] = T + "Milliseconds", g)[S], U = S === u ? this.$D + (_ - this.$W) : _;
|
|
3116
3142
|
if (S === h || S === p) {
|
|
3117
3143
|
var X = this.clone().set(d, 1);
|
|
3118
3144
|
X.$d[C](U), X.init(), this.$d = X.set(d, Math.min(this.$D, X.daysInMonth())).$d;
|
|
@@ -3125,32 +3151,32 @@ var Va = { exports: {} };
|
|
|
3125
3151
|
}, m.add = function(v, _) {
|
|
3126
3152
|
var g, S = this;
|
|
3127
3153
|
v = Number(v);
|
|
3128
|
-
var T = w.p(_), C = function(
|
|
3154
|
+
var T = w.p(_), C = function(Y) {
|
|
3129
3155
|
var se = I(S);
|
|
3130
|
-
return w.w(se.date(se.date() + Math.round(
|
|
3156
|
+
return w.w(se.date(se.date() + Math.round(Y * v)), S);
|
|
3131
3157
|
};
|
|
3132
3158
|
if (T === h) return this.set(h, this.$M + v);
|
|
3133
3159
|
if (T === p) return this.set(p, this.$y + v);
|
|
3134
3160
|
if (T === u) return C(1);
|
|
3135
3161
|
if (T === f) return C(7);
|
|
3136
|
-
var U = (g = {}, g[
|
|
3162
|
+
var U = (g = {}, g[a] = n, g[l] = i, g[o] = r, g)[T] || 1, X = this.$d.getTime() + v * U;
|
|
3137
3163
|
return w.w(X, this);
|
|
3138
3164
|
}, m.subtract = function(v, _) {
|
|
3139
3165
|
return this.add(-1 * v, _);
|
|
3140
3166
|
}, m.format = function(v) {
|
|
3141
3167
|
var _ = this, g = this.$locale();
|
|
3142
3168
|
if (!this.isValid()) return g.invalidDate || b;
|
|
3143
|
-
var S = v || "YYYY-MM-DDTHH:mm:ssZ", T = w.z(this), C = this.$H, U = this.$m, X = this.$M,
|
|
3144
|
-
return
|
|
3145
|
-
},
|
|
3146
|
-
return w.s(C % 12 || 12,
|
|
3147
|
-
}, je = rt || function(
|
|
3148
|
-
var Ut =
|
|
3149
|
-
return
|
|
3169
|
+
var S = v || "YYYY-MM-DDTHH:mm:ssZ", T = w.z(this), C = this.$H, U = this.$m, X = this.$M, Y = g.weekdays, se = g.months, rt = g.meridiem, Ue = function(te, Ce, Tt, Ut) {
|
|
3170
|
+
return te && (te[Ce] || te(_, S)) || Tt[Ce].slice(0, Ut);
|
|
3171
|
+
}, St = function(te) {
|
|
3172
|
+
return w.s(C % 12 || 12, te, "0");
|
|
3173
|
+
}, je = rt || function(te, Ce, Tt) {
|
|
3174
|
+
var Ut = te < 12 ? "AM" : "PM";
|
|
3175
|
+
return Tt ? Ut.toLowerCase() : Ut;
|
|
3150
3176
|
};
|
|
3151
|
-
return S.replace(x, function(
|
|
3152
|
-
return Ce || function(
|
|
3153
|
-
switch (
|
|
3177
|
+
return S.replace(x, function(te, Ce) {
|
|
3178
|
+
return Ce || function(Tt) {
|
|
3179
|
+
switch (Tt) {
|
|
3154
3180
|
case "YY":
|
|
3155
3181
|
return String(_.$y).slice(-2);
|
|
3156
3182
|
case "YYYY":
|
|
@@ -3170,19 +3196,19 @@ var Va = { exports: {} };
|
|
|
3170
3196
|
case "d":
|
|
3171
3197
|
return String(_.$W);
|
|
3172
3198
|
case "dd":
|
|
3173
|
-
return Ue(g.weekdaysMin, _.$W,
|
|
3199
|
+
return Ue(g.weekdaysMin, _.$W, Y, 2);
|
|
3174
3200
|
case "ddd":
|
|
3175
|
-
return Ue(g.weekdaysShort, _.$W,
|
|
3201
|
+
return Ue(g.weekdaysShort, _.$W, Y, 3);
|
|
3176
3202
|
case "dddd":
|
|
3177
|
-
return
|
|
3203
|
+
return Y[_.$W];
|
|
3178
3204
|
case "H":
|
|
3179
3205
|
return String(C);
|
|
3180
3206
|
case "HH":
|
|
3181
3207
|
return w.s(C, 2, "0");
|
|
3182
3208
|
case "h":
|
|
3183
|
-
return
|
|
3209
|
+
return St(1);
|
|
3184
3210
|
case "hh":
|
|
3185
|
-
return
|
|
3211
|
+
return St(2);
|
|
3186
3212
|
case "a":
|
|
3187
3213
|
return je(C, U, !0);
|
|
3188
3214
|
case "A":
|
|
@@ -3201,12 +3227,12 @@ var Va = { exports: {} };
|
|
|
3201
3227
|
return T;
|
|
3202
3228
|
}
|
|
3203
3229
|
return null;
|
|
3204
|
-
}(
|
|
3230
|
+
}(te) || T.replace(":", "");
|
|
3205
3231
|
});
|
|
3206
3232
|
}, m.utcOffset = function() {
|
|
3207
3233
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
3208
3234
|
}, m.diff = function(v, _, g) {
|
|
3209
|
-
var S, T = this, C = w.p(_), U = I(v), X = (U.utcOffset() - this.utcOffset()) * n,
|
|
3235
|
+
var S, T = this, C = w.p(_), U = I(v), X = (U.utcOffset() - this.utcOffset()) * n, Y = this - U, se = function() {
|
|
3210
3236
|
return w.m(T, U);
|
|
3211
3237
|
};
|
|
3212
3238
|
switch (C) {
|
|
@@ -3220,22 +3246,22 @@ var Va = { exports: {} };
|
|
|
3220
3246
|
S = se() / 3;
|
|
3221
3247
|
break;
|
|
3222
3248
|
case f:
|
|
3223
|
-
S = (
|
|
3249
|
+
S = (Y - X) / 6048e5;
|
|
3224
3250
|
break;
|
|
3225
3251
|
case u:
|
|
3226
|
-
S = (
|
|
3252
|
+
S = (Y - X) / 864e5;
|
|
3227
3253
|
break;
|
|
3228
3254
|
case l:
|
|
3229
|
-
S =
|
|
3230
|
-
break;
|
|
3231
|
-
case o:
|
|
3232
|
-
S = Z / n;
|
|
3255
|
+
S = Y / i;
|
|
3233
3256
|
break;
|
|
3234
3257
|
case a:
|
|
3235
|
-
S =
|
|
3258
|
+
S = Y / n;
|
|
3259
|
+
break;
|
|
3260
|
+
case o:
|
|
3261
|
+
S = Y / r;
|
|
3236
3262
|
break;
|
|
3237
3263
|
default:
|
|
3238
|
-
S =
|
|
3264
|
+
S = Y;
|
|
3239
3265
|
}
|
|
3240
3266
|
return g ? S : w.a(S);
|
|
3241
3267
|
}, m.daysInMonth = function() {
|
|
@@ -3258,7 +3284,7 @@ var Va = { exports: {} };
|
|
|
3258
3284
|
return this.$d.toUTCString();
|
|
3259
3285
|
}, E;
|
|
3260
3286
|
}(), tt = Ie.prototype;
|
|
3261
|
-
return I.prototype = tt, [["$ms", s], ["$s",
|
|
3287
|
+
return I.prototype = tt, [["$ms", s], ["$s", o], ["$m", a], ["$H", l], ["$W", u], ["$M", h], ["$y", p], ["$D", d]].forEach(function(E) {
|
|
3262
3288
|
tt[E[1]] = function(m) {
|
|
3263
3289
|
return this.$g(m, E[0], E[1]);
|
|
3264
3290
|
};
|
|
@@ -3287,7 +3313,7 @@ function Ja(e) {
|
|
|
3287
3313
|
return Array.isArray(e) ? [] : {};
|
|
3288
3314
|
}
|
|
3289
3315
|
function Rt(e, t) {
|
|
3290
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
3316
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? gt(Ja(e), e, t) : e;
|
|
3291
3317
|
}
|
|
3292
3318
|
function Ka(e, t, r) {
|
|
3293
3319
|
return e.concat(t).map(function(n) {
|
|
@@ -3296,16 +3322,16 @@ function Ka(e, t, r) {
|
|
|
3296
3322
|
}
|
|
3297
3323
|
function eo(e, t) {
|
|
3298
3324
|
if (!t.customMerge)
|
|
3299
|
-
return
|
|
3325
|
+
return gt;
|
|
3300
3326
|
var r = t.customMerge(e);
|
|
3301
|
-
return typeof r == "function" ? r :
|
|
3327
|
+
return typeof r == "function" ? r : gt;
|
|
3302
3328
|
}
|
|
3303
3329
|
function to(e) {
|
|
3304
3330
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
3305
3331
|
return Object.propertyIsEnumerable.call(e, t);
|
|
3306
3332
|
}) : [];
|
|
3307
3333
|
}
|
|
3308
|
-
function
|
|
3334
|
+
function Bn(e) {
|
|
3309
3335
|
return Object.keys(e).concat(to(e));
|
|
3310
3336
|
}
|
|
3311
3337
|
function Gi(e, t) {
|
|
@@ -3320,37 +3346,37 @@ function ro(e, t) {
|
|
|
3320
3346
|
}
|
|
3321
3347
|
function no(e, t, r) {
|
|
3322
3348
|
var n = {};
|
|
3323
|
-
return r.isMergeableObject(e) &&
|
|
3349
|
+
return r.isMergeableObject(e) && Bn(e).forEach(function(i) {
|
|
3324
3350
|
n[i] = Rt(e[i], r);
|
|
3325
|
-
}),
|
|
3351
|
+
}), Bn(t).forEach(function(i) {
|
|
3326
3352
|
ro(e, i) || (Gi(e, i) && r.isMergeableObject(t[i]) ? n[i] = eo(i, r)(e[i], t[i], r) : n[i] = Rt(t[i], r));
|
|
3327
3353
|
}), n;
|
|
3328
3354
|
}
|
|
3329
|
-
function
|
|
3355
|
+
function gt(e, t, r) {
|
|
3330
3356
|
r = r || {}, r.arrayMerge = r.arrayMerge || Ka, r.isMergeableObject = r.isMergeableObject || za, r.cloneUnlessOtherwiseSpecified = Rt;
|
|
3331
3357
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
3332
3358
|
return s ? n ? r.arrayMerge(e, t, r) : no(e, t, r) : Rt(t, r);
|
|
3333
3359
|
}
|
|
3334
|
-
|
|
3360
|
+
gt.all = function(t, r) {
|
|
3335
3361
|
if (!Array.isArray(t))
|
|
3336
3362
|
throw new Error("first argument should be an array");
|
|
3337
3363
|
return t.reduce(function(n, i) {
|
|
3338
|
-
return
|
|
3364
|
+
return gt(n, i, r);
|
|
3339
3365
|
}, {});
|
|
3340
3366
|
};
|
|
3341
|
-
var io =
|
|
3367
|
+
var io = gt, so = io;
|
|
3342
3368
|
const ao = /* @__PURE__ */ qa(so);
|
|
3343
|
-
var
|
|
3344
|
-
return
|
|
3369
|
+
var Fr = function(e, t) {
|
|
3370
|
+
return Fr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
3345
3371
|
r.__proto__ = n;
|
|
3346
3372
|
} || function(r, n) {
|
|
3347
3373
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
3348
|
-
},
|
|
3374
|
+
}, Fr(e, t);
|
|
3349
3375
|
};
|
|
3350
3376
|
function fr(e, t) {
|
|
3351
3377
|
if (typeof t != "function" && t !== null)
|
|
3352
3378
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
3353
|
-
|
|
3379
|
+
Fr(e, t);
|
|
3354
3380
|
function r() {
|
|
3355
3381
|
this.constructor = e;
|
|
3356
3382
|
}
|
|
@@ -3435,19 +3461,19 @@ var co = function() {
|
|
|
3435
3461
|
return t;
|
|
3436
3462
|
}, rr.apply(this, arguments);
|
|
3437
3463
|
};
|
|
3438
|
-
var
|
|
3464
|
+
var A;
|
|
3439
3465
|
(function(e) {
|
|
3440
3466
|
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";
|
|
3441
|
-
})(
|
|
3467
|
+
})(A || (A = {}));
|
|
3442
3468
|
var D;
|
|
3443
3469
|
(function(e) {
|
|
3444
3470
|
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";
|
|
3445
3471
|
})(D || (D = {}));
|
|
3446
|
-
var
|
|
3472
|
+
var _t;
|
|
3447
3473
|
(function(e) {
|
|
3448
3474
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
3449
|
-
})(
|
|
3450
|
-
function
|
|
3475
|
+
})(_t || (_t = {}));
|
|
3476
|
+
function Mn(e) {
|
|
3451
3477
|
return e.type === D.literal;
|
|
3452
3478
|
}
|
|
3453
3479
|
function mo(e) {
|
|
@@ -3475,10 +3501,10 @@ function Qi(e) {
|
|
|
3475
3501
|
return e.type === D.tag;
|
|
3476
3502
|
}
|
|
3477
3503
|
function Yi(e) {
|
|
3478
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
3504
|
+
return !!(e && typeof e == "object" && e.type === _t.number);
|
|
3479
3505
|
}
|
|
3480
|
-
function
|
|
3481
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
3506
|
+
function Gr(e) {
|
|
3507
|
+
return !!(e && typeof e == "object" && e.type === _t.dateTime);
|
|
3482
3508
|
}
|
|
3483
3509
|
var Zi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, _o = /(?:[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;
|
|
3484
3510
|
function bo(e) {
|
|
@@ -3588,23 +3614,23 @@ function Eo(e) {
|
|
|
3588
3614
|
for (var t = e.split(yo).filter(function(c) {
|
|
3589
3615
|
return c.length > 0;
|
|
3590
3616
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
3591
|
-
var s = i[n],
|
|
3592
|
-
if (
|
|
3617
|
+
var s = i[n], o = s.split("/");
|
|
3618
|
+
if (o.length === 0)
|
|
3593
3619
|
throw new Error("Invalid number skeleton");
|
|
3594
|
-
for (var
|
|
3620
|
+
for (var a = o[0], l = o.slice(1), u = 0, f = l; u < f.length; u++) {
|
|
3595
3621
|
var h = f[u];
|
|
3596
3622
|
if (h.length === 0)
|
|
3597
3623
|
throw new Error("Invalid number skeleton");
|
|
3598
3624
|
}
|
|
3599
|
-
r.push({ stem:
|
|
3625
|
+
r.push({ stem: a, options: l });
|
|
3600
3626
|
}
|
|
3601
3627
|
return r;
|
|
3602
3628
|
}
|
|
3603
3629
|
function xo(e) {
|
|
3604
3630
|
return e.replace(/^(.*?)-/, "");
|
|
3605
3631
|
}
|
|
3606
|
-
var
|
|
3607
|
-
function
|
|
3632
|
+
var Pn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ji = /^(@+)?(\+|#+)?[rs]?$/g, wo = /(\*)(0+)|(#+)(0+)|(0+)/g, Ki = /^(0+)$/;
|
|
3633
|
+
function In(e) {
|
|
3608
3634
|
var t = {};
|
|
3609
3635
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ji, function(r, n, i) {
|
|
3610
3636
|
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)), "";
|
|
@@ -3664,7 +3690,7 @@ function So(e) {
|
|
|
3664
3690
|
}
|
|
3665
3691
|
return t;
|
|
3666
3692
|
}
|
|
3667
|
-
function
|
|
3693
|
+
function Cn(e) {
|
|
3668
3694
|
var t = {}, r = es(e);
|
|
3669
3695
|
return r || t;
|
|
3670
3696
|
}
|
|
@@ -3704,12 +3730,12 @@ function To(e) {
|
|
|
3704
3730
|
continue;
|
|
3705
3731
|
case "scientific":
|
|
3706
3732
|
t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
3707
|
-
return F(F({}, l),
|
|
3733
|
+
return F(F({}, l), Cn(u));
|
|
3708
3734
|
}, {}));
|
|
3709
3735
|
continue;
|
|
3710
3736
|
case "engineering":
|
|
3711
3737
|
t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
3712
|
-
return F(F({}, l),
|
|
3738
|
+
return F(F({}, l), Cn(u));
|
|
3713
3739
|
}, {}));
|
|
3714
3740
|
continue;
|
|
3715
3741
|
case "notation-simple":
|
|
@@ -3771,24 +3797,24 @@ function To(e) {
|
|
|
3771
3797
|
t.minimumIntegerDigits = i.stem.length;
|
|
3772
3798
|
continue;
|
|
3773
3799
|
}
|
|
3774
|
-
if (
|
|
3800
|
+
if (Pn.test(i.stem)) {
|
|
3775
3801
|
if (i.options.length > 1)
|
|
3776
3802
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
3777
|
-
i.stem.replace(
|
|
3803
|
+
i.stem.replace(Pn, function(l, u, f, h, c, p) {
|
|
3778
3804
|
return f === "*" ? t.minimumFractionDigits = u.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
3779
3805
|
});
|
|
3780
3806
|
var s = i.options[0];
|
|
3781
|
-
s === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = F(F({}, t),
|
|
3807
|
+
s === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = F(F({}, t), In(s)));
|
|
3782
3808
|
continue;
|
|
3783
3809
|
}
|
|
3784
3810
|
if (Ji.test(i.stem)) {
|
|
3785
|
-
t = F(F({}, t),
|
|
3811
|
+
t = F(F({}, t), In(i.stem));
|
|
3786
3812
|
continue;
|
|
3787
3813
|
}
|
|
3788
|
-
var
|
|
3789
|
-
a && (t = F(F({}, t), a));
|
|
3790
|
-
var o = So(i.stem);
|
|
3814
|
+
var o = es(i.stem);
|
|
3791
3815
|
o && (t = F(F({}, t), o));
|
|
3816
|
+
var a = So(i.stem);
|
|
3817
|
+
a && (t = F(F({}, t), a));
|
|
3792
3818
|
}
|
|
3793
3819
|
return t;
|
|
3794
3820
|
}
|
|
@@ -5213,10 +5239,10 @@ function Ao(e, t) {
|
|
|
5213
5239
|
if (i === "j") {
|
|
5214
5240
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
5215
5241
|
s++, n++;
|
|
5216
|
-
var
|
|
5217
|
-
for ((u == "H" || u == "k") && (
|
|
5242
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = No(t);
|
|
5243
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
5218
5244
|
r += l;
|
|
5219
|
-
for (;
|
|
5245
|
+
for (; o-- > 0; )
|
|
5220
5246
|
r = u + r;
|
|
5221
5247
|
} else i === "J" ? r += "H" : r += i;
|
|
5222
5248
|
}
|
|
@@ -5245,19 +5271,19 @@ function No(e) {
|
|
|
5245
5271
|
return i[0];
|
|
5246
5272
|
}
|
|
5247
5273
|
var xr, Ho = new RegExp("^".concat(Zi.source, "*")), Oo = new RegExp("".concat(Zi.source, "*$"));
|
|
5248
|
-
function
|
|
5274
|
+
function N(e, t) {
|
|
5249
5275
|
return { start: e, end: t };
|
|
5250
5276
|
}
|
|
5251
5277
|
var $o = !!String.prototype.startsWith && "_a".startsWith("a", 1), Bo = !!String.fromCodePoint, Mo = !!Object.fromEntries, Po = !!String.prototype.codePointAt, Io = !!String.prototype.trimStart, Co = !!String.prototype.trimEnd, Lo = !!Number.isSafeInteger, Ro = Lo ? Number.isSafeInteger : function(e) {
|
|
5252
5278
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
5253
|
-
},
|
|
5279
|
+
}, Ur = !0;
|
|
5254
5280
|
try {
|
|
5255
5281
|
var Do = rs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
5256
|
-
|
|
5282
|
+
Ur = ((xr = Do.exec("a")) === null || xr === void 0 ? void 0 : xr[0]) === "a";
|
|
5257
5283
|
} catch {
|
|
5258
|
-
|
|
5284
|
+
Ur = !1;
|
|
5259
5285
|
}
|
|
5260
|
-
var
|
|
5286
|
+
var Ln = $o ? (
|
|
5261
5287
|
// Native
|
|
5262
5288
|
function(t, r, n) {
|
|
5263
5289
|
return t.startsWith(r, n);
|
|
@@ -5267,26 +5293,26 @@ var Cn = $o ? (
|
|
|
5267
5293
|
function(t, r, n) {
|
|
5268
5294
|
return t.slice(n, n + r.length) === r;
|
|
5269
5295
|
}
|
|
5270
|
-
),
|
|
5296
|
+
), jr = Bo ? String.fromCodePoint : (
|
|
5271
5297
|
// IE11
|
|
5272
5298
|
function() {
|
|
5273
5299
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
5274
5300
|
t[r] = arguments[r];
|
|
5275
|
-
for (var n = "", i = t.length, s = 0,
|
|
5276
|
-
if (
|
|
5277
|
-
throw RangeError(
|
|
5278
|
-
n +=
|
|
5301
|
+
for (var n = "", i = t.length, s = 0, o; i > s; ) {
|
|
5302
|
+
if (o = t[s++], o > 1114111)
|
|
5303
|
+
throw RangeError(o + " is not a valid code point");
|
|
5304
|
+
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
5279
5305
|
}
|
|
5280
5306
|
return n;
|
|
5281
5307
|
}
|
|
5282
|
-
),
|
|
5308
|
+
), Rn = (
|
|
5283
5309
|
// native
|
|
5284
5310
|
Mo ? Object.fromEntries : (
|
|
5285
5311
|
// Ponyfill
|
|
5286
5312
|
function(t) {
|
|
5287
5313
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
5288
|
-
var s = i[n],
|
|
5289
|
-
r[
|
|
5314
|
+
var s = i[n], o = s[0], a = s[1];
|
|
5315
|
+
r[o] = a;
|
|
5290
5316
|
}
|
|
5291
5317
|
return r;
|
|
5292
5318
|
}
|
|
@@ -5329,24 +5355,24 @@ var Cn = $o ? (
|
|
|
5329
5355
|
function rs(e, t) {
|
|
5330
5356
|
return new RegExp(e, t);
|
|
5331
5357
|
}
|
|
5332
|
-
var
|
|
5333
|
-
if (
|
|
5334
|
-
var
|
|
5335
|
-
|
|
5358
|
+
var qr;
|
|
5359
|
+
if (Ur) {
|
|
5360
|
+
var Dn = rs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
5361
|
+
qr = function(t, r) {
|
|
5336
5362
|
var n;
|
|
5337
|
-
|
|
5338
|
-
var i =
|
|
5363
|
+
Dn.lastIndex = r;
|
|
5364
|
+
var i = Dn.exec(t);
|
|
5339
5365
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
5340
5366
|
};
|
|
5341
5367
|
} else
|
|
5342
|
-
|
|
5368
|
+
qr = function(t, r) {
|
|
5343
5369
|
for (var n = []; ; ) {
|
|
5344
5370
|
var i = ts(t, r);
|
|
5345
5371
|
if (i === void 0 || ns(i) || qo(i))
|
|
5346
5372
|
break;
|
|
5347
5373
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
5348
5374
|
}
|
|
5349
|
-
return
|
|
5375
|
+
return jr.apply(void 0, n);
|
|
5350
5376
|
};
|
|
5351
5377
|
var Go = (
|
|
5352
5378
|
/** @class */
|
|
@@ -5362,33 +5388,33 @@ var Go = (
|
|
|
5362
5388
|
for (var i = []; !this.isEOF(); ) {
|
|
5363
5389
|
var s = this.char();
|
|
5364
5390
|
if (s === 123) {
|
|
5365
|
-
var
|
|
5366
|
-
if (
|
|
5367
|
-
return
|
|
5368
|
-
i.push(
|
|
5391
|
+
var o = this.parseArgument(t, n);
|
|
5392
|
+
if (o.err)
|
|
5393
|
+
return o;
|
|
5394
|
+
i.push(o.val);
|
|
5369
5395
|
} else {
|
|
5370
5396
|
if (s === 125 && t > 0)
|
|
5371
5397
|
break;
|
|
5372
5398
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
5373
|
-
var
|
|
5399
|
+
var a = this.clonePosition();
|
|
5374
5400
|
this.bump(), i.push({
|
|
5375
5401
|
type: D.pound,
|
|
5376
|
-
location:
|
|
5402
|
+
location: N(a, this.clonePosition())
|
|
5377
5403
|
});
|
|
5378
5404
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
5379
5405
|
if (n)
|
|
5380
5406
|
break;
|
|
5381
|
-
return this.error(
|
|
5382
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
5383
|
-
var
|
|
5384
|
-
if (
|
|
5385
|
-
return
|
|
5386
|
-
i.push(
|
|
5407
|
+
return this.error(A.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
|
|
5408
|
+
} else if (s === 60 && !this.ignoreTag && Vr(this.peek() || 0)) {
|
|
5409
|
+
var o = this.parseTag(t, r);
|
|
5410
|
+
if (o.err)
|
|
5411
|
+
return o;
|
|
5412
|
+
i.push(o.val);
|
|
5387
5413
|
} else {
|
|
5388
|
-
var
|
|
5389
|
-
if (
|
|
5390
|
-
return
|
|
5391
|
-
i.push(
|
|
5414
|
+
var o = this.parseLiteral(t, r);
|
|
5415
|
+
if (o.err)
|
|
5416
|
+
return o;
|
|
5417
|
+
i.push(o.val);
|
|
5392
5418
|
}
|
|
5393
5419
|
}
|
|
5394
5420
|
}
|
|
@@ -5402,7 +5428,7 @@ var Go = (
|
|
|
5402
5428
|
val: {
|
|
5403
5429
|
type: D.literal,
|
|
5404
5430
|
value: "<".concat(i, "/>"),
|
|
5405
|
-
location:
|
|
5431
|
+
location: N(n, this.clonePosition())
|
|
5406
5432
|
},
|
|
5407
5433
|
err: null
|
|
5408
5434
|
};
|
|
@@ -5410,24 +5436,24 @@ var Go = (
|
|
|
5410
5436
|
var s = this.parseMessage(t + 1, r, !0);
|
|
5411
5437
|
if (s.err)
|
|
5412
5438
|
return s;
|
|
5413
|
-
var
|
|
5439
|
+
var o = s.val, a = this.clonePosition();
|
|
5414
5440
|
if (this.bumpIf("</")) {
|
|
5415
|
-
if (this.isEOF() || !
|
|
5416
|
-
return this.error(
|
|
5441
|
+
if (this.isEOF() || !Vr(this.char()))
|
|
5442
|
+
return this.error(A.INVALID_TAG, N(a, this.clonePosition()));
|
|
5417
5443
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
5418
|
-
return i !== u ? this.error(
|
|
5444
|
+
return i !== u ? this.error(A.UNMATCHED_CLOSING_TAG, N(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
5419
5445
|
val: {
|
|
5420
5446
|
type: D.tag,
|
|
5421
5447
|
value: i,
|
|
5422
|
-
children:
|
|
5423
|
-
location:
|
|
5448
|
+
children: o,
|
|
5449
|
+
location: N(n, this.clonePosition())
|
|
5424
5450
|
},
|
|
5425
5451
|
err: null
|
|
5426
|
-
} : this.error(
|
|
5452
|
+
} : this.error(A.INVALID_TAG, N(a, this.clonePosition())));
|
|
5427
5453
|
} else
|
|
5428
|
-
return this.error(
|
|
5454
|
+
return this.error(A.UNCLOSED_TAG, N(n, this.clonePosition()));
|
|
5429
5455
|
} else
|
|
5430
|
-
return this.error(
|
|
5456
|
+
return this.error(A.INVALID_TAG, N(n, this.clonePosition()));
|
|
5431
5457
|
}, e.prototype.parseTagName = function() {
|
|
5432
5458
|
var t = this.offset();
|
|
5433
5459
|
for (this.bump(); !this.isEOF() && jo(this.char()); )
|
|
@@ -5440,19 +5466,19 @@ var Go = (
|
|
|
5440
5466
|
i += s;
|
|
5441
5467
|
continue;
|
|
5442
5468
|
}
|
|
5443
|
-
var
|
|
5444
|
-
if (a) {
|
|
5445
|
-
i += a;
|
|
5446
|
-
continue;
|
|
5447
|
-
}
|
|
5448
|
-
var o = this.tryParseLeftAngleBracket();
|
|
5469
|
+
var o = this.tryParseUnquoted(t, r);
|
|
5449
5470
|
if (o) {
|
|
5450
5471
|
i += o;
|
|
5451
5472
|
continue;
|
|
5452
5473
|
}
|
|
5474
|
+
var a = this.tryParseLeftAngleBracket();
|
|
5475
|
+
if (a) {
|
|
5476
|
+
i += a;
|
|
5477
|
+
continue;
|
|
5478
|
+
}
|
|
5453
5479
|
break;
|
|
5454
5480
|
}
|
|
5455
|
-
var l =
|
|
5481
|
+
var l = N(n, this.clonePosition());
|
|
5456
5482
|
return {
|
|
5457
5483
|
val: { type: D.literal, value: i, location: l },
|
|
5458
5484
|
err: null
|
|
@@ -5493,23 +5519,23 @@ var Go = (
|
|
|
5493
5519
|
r.push(n);
|
|
5494
5520
|
this.bump();
|
|
5495
5521
|
}
|
|
5496
|
-
return
|
|
5522
|
+
return jr.apply(void 0, r);
|
|
5497
5523
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
5498
5524
|
if (this.isEOF())
|
|
5499
5525
|
return null;
|
|
5500
5526
|
var n = this.char();
|
|
5501
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
5527
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), jr(n));
|
|
5502
5528
|
}, e.prototype.parseArgument = function(t, r) {
|
|
5503
5529
|
var n = this.clonePosition();
|
|
5504
5530
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
5505
|
-
return this.error(
|
|
5531
|
+
return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition()));
|
|
5506
5532
|
if (this.char() === 125)
|
|
5507
|
-
return this.bump(), this.error(
|
|
5533
|
+
return this.bump(), this.error(A.EMPTY_ARGUMENT, N(n, this.clonePosition()));
|
|
5508
5534
|
var i = this.parseIdentifierIfPossible().value;
|
|
5509
5535
|
if (!i)
|
|
5510
|
-
return this.error(
|
|
5536
|
+
return this.error(A.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
|
|
5511
5537
|
if (this.bumpSpace(), this.isEOF())
|
|
5512
|
-
return this.error(
|
|
5538
|
+
return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition()));
|
|
5513
5539
|
switch (this.char()) {
|
|
5514
5540
|
case 125:
|
|
5515
5541
|
return this.bump(), {
|
|
@@ -5517,25 +5543,25 @@ var Go = (
|
|
|
5517
5543
|
type: D.argument,
|
|
5518
5544
|
// value does not include the opening and closing braces.
|
|
5519
5545
|
value: i,
|
|
5520
|
-
location:
|
|
5546
|
+
location: N(n, this.clonePosition())
|
|
5521
5547
|
},
|
|
5522
5548
|
err: null
|
|
5523
5549
|
};
|
|
5524
5550
|
case 44:
|
|
5525
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
5551
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
5526
5552
|
default:
|
|
5527
|
-
return this.error(
|
|
5553
|
+
return this.error(A.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
|
|
5528
5554
|
}
|
|
5529
5555
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
5530
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
5556
|
+
var t = this.clonePosition(), r = this.offset(), n = qr(this.message, r), i = r + n.length;
|
|
5531
5557
|
this.bumpTo(i);
|
|
5532
|
-
var s = this.clonePosition(),
|
|
5533
|
-
return { value: n, location:
|
|
5558
|
+
var s = this.clonePosition(), o = N(t, s);
|
|
5559
|
+
return { value: n, location: o };
|
|
5534
5560
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
5535
|
-
var s,
|
|
5536
|
-
switch (
|
|
5561
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
5562
|
+
switch (a) {
|
|
5537
5563
|
case "":
|
|
5538
|
-
return this.error(
|
|
5564
|
+
return this.error(A.EXPECT_ARGUMENT_TYPE, N(o, l));
|
|
5539
5565
|
case "number":
|
|
5540
5566
|
case "date":
|
|
5541
5567
|
case "time": {
|
|
@@ -5548,17 +5574,17 @@ var Go = (
|
|
|
5548
5574
|
return h;
|
|
5549
5575
|
var c = Fo(h.val);
|
|
5550
5576
|
if (c.length === 0)
|
|
5551
|
-
return this.error(
|
|
5552
|
-
var p =
|
|
5577
|
+
return this.error(A.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
|
|
5578
|
+
var p = N(f, this.clonePosition());
|
|
5553
5579
|
u = { style: c, styleLocation: p };
|
|
5554
5580
|
}
|
|
5555
5581
|
var d = this.tryParseArgumentClose(i);
|
|
5556
5582
|
if (d.err)
|
|
5557
5583
|
return d;
|
|
5558
|
-
var b =
|
|
5559
|
-
if (u &&
|
|
5584
|
+
var b = N(i, this.clonePosition());
|
|
5585
|
+
if (u && Ln(u?.style, "::", 0)) {
|
|
5560
5586
|
var P = ko(u.style.slice(2));
|
|
5561
|
-
if (
|
|
5587
|
+
if (a === "number") {
|
|
5562
5588
|
var h = this.parseNumberSkeletonFromString(P, u.styleLocation);
|
|
5563
5589
|
return h.err ? h : {
|
|
5564
5590
|
val: { type: D.number, value: n, location: b, style: h.val },
|
|
@@ -5566,15 +5592,15 @@ var Go = (
|
|
|
5566
5592
|
};
|
|
5567
5593
|
} else {
|
|
5568
5594
|
if (P.length === 0)
|
|
5569
|
-
return this.error(
|
|
5595
|
+
return this.error(A.EXPECT_DATE_TIME_SKELETON, b);
|
|
5570
5596
|
var x = P;
|
|
5571
5597
|
this.locale && (x = Ao(P, this.locale));
|
|
5572
5598
|
var c = {
|
|
5573
|
-
type:
|
|
5599
|
+
type: _t.dateTime,
|
|
5574
5600
|
pattern: x,
|
|
5575
5601
|
location: u.styleLocation,
|
|
5576
5602
|
parsedOptions: this.shouldParseSkeletons ? bo(x) : {}
|
|
5577
|
-
}, y =
|
|
5603
|
+
}, y = a === "date" ? D.date : D.time;
|
|
5578
5604
|
return {
|
|
5579
5605
|
val: { type: y, value: n, location: b, style: c },
|
|
5580
5606
|
err: null
|
|
@@ -5583,7 +5609,7 @@ var Go = (
|
|
|
5583
5609
|
}
|
|
5584
5610
|
return {
|
|
5585
5611
|
val: {
|
|
5586
|
-
type:
|
|
5612
|
+
type: a === "number" ? D.number : a === "date" ? D.date : D.time,
|
|
5587
5613
|
value: n,
|
|
5588
5614
|
location: b,
|
|
5589
5615
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
@@ -5596,30 +5622,30 @@ var Go = (
|
|
|
5596
5622
|
case "select": {
|
|
5597
5623
|
var B = this.clonePosition();
|
|
5598
5624
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
5599
|
-
return this.error(
|
|
5625
|
+
return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, N(B, rr({}, B)));
|
|
5600
5626
|
this.bumpSpace();
|
|
5601
|
-
var
|
|
5602
|
-
if (
|
|
5627
|
+
var Q = this.parseIdentifierIfPossible(), M = 0;
|
|
5628
|
+
if (a !== "select" && Q.value === "offset") {
|
|
5603
5629
|
if (!this.bumpIf(":"))
|
|
5604
|
-
return this.error(
|
|
5630
|
+
return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
|
|
5605
5631
|
this.bumpSpace();
|
|
5606
|
-
var h = this.tryParseDecimalInteger(
|
|
5632
|
+
var h = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
5607
5633
|
if (h.err)
|
|
5608
5634
|
return h;
|
|
5609
|
-
this.bumpSpace(),
|
|
5635
|
+
this.bumpSpace(), Q = this.parseIdentifierIfPossible(), M = h.val;
|
|
5610
5636
|
}
|
|
5611
|
-
var R = this.tryParsePluralOrSelectOptions(t,
|
|
5637
|
+
var R = this.tryParsePluralOrSelectOptions(t, a, r, Q);
|
|
5612
5638
|
if (R.err)
|
|
5613
5639
|
return R;
|
|
5614
5640
|
var d = this.tryParseArgumentClose(i);
|
|
5615
5641
|
if (d.err)
|
|
5616
5642
|
return d;
|
|
5617
|
-
var ie =
|
|
5618
|
-
return
|
|
5643
|
+
var ie = N(i, this.clonePosition());
|
|
5644
|
+
return a === "select" ? {
|
|
5619
5645
|
val: {
|
|
5620
5646
|
type: D.select,
|
|
5621
5647
|
value: n,
|
|
5622
|
-
options:
|
|
5648
|
+
options: Rn(R.val),
|
|
5623
5649
|
location: ie
|
|
5624
5650
|
},
|
|
5625
5651
|
err: null
|
|
@@ -5627,19 +5653,19 @@ var Go = (
|
|
|
5627
5653
|
val: {
|
|
5628
5654
|
type: D.plural,
|
|
5629
5655
|
value: n,
|
|
5630
|
-
options:
|
|
5656
|
+
options: Rn(R.val),
|
|
5631
5657
|
offset: M,
|
|
5632
|
-
pluralType:
|
|
5658
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
5633
5659
|
location: ie
|
|
5634
5660
|
},
|
|
5635
5661
|
err: null
|
|
5636
5662
|
};
|
|
5637
5663
|
}
|
|
5638
5664
|
default:
|
|
5639
|
-
return this.error(
|
|
5665
|
+
return this.error(A.INVALID_ARGUMENT_TYPE, N(o, l));
|
|
5640
5666
|
}
|
|
5641
5667
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
5642
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
5668
|
+
return this.isEOF() || this.char() !== 125 ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, N(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
5643
5669
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
5644
5670
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
5645
5671
|
var n = this.char();
|
|
@@ -5648,7 +5674,7 @@ var Go = (
|
|
|
5648
5674
|
this.bump();
|
|
5649
5675
|
var i = this.clonePosition();
|
|
5650
5676
|
if (!this.bumpUntil("'"))
|
|
5651
|
-
return this.error(
|
|
5677
|
+
return this.error(A.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, N(i, this.clonePosition()));
|
|
5652
5678
|
this.bump();
|
|
5653
5679
|
break;
|
|
5654
5680
|
}
|
|
@@ -5680,11 +5706,11 @@ var Go = (
|
|
|
5680
5706
|
try {
|
|
5681
5707
|
n = Eo(t);
|
|
5682
5708
|
} catch {
|
|
5683
|
-
return this.error(
|
|
5709
|
+
return this.error(A.INVALID_NUMBER_SKELETON, r);
|
|
5684
5710
|
}
|
|
5685
5711
|
return {
|
|
5686
5712
|
val: {
|
|
5687
|
-
type:
|
|
5713
|
+
type: _t.number,
|
|
5688
5714
|
tokens: n,
|
|
5689
5715
|
location: r,
|
|
5690
5716
|
parsedOptions: this.shouldParseSkeletons ? To(n) : {}
|
|
@@ -5692,50 +5718,50 @@ var Go = (
|
|
|
5692
5718
|
err: null
|
|
5693
5719
|
};
|
|
5694
5720
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
5695
|
-
for (var s,
|
|
5721
|
+
for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
|
|
5696
5722
|
if (u.length === 0) {
|
|
5697
5723
|
var h = this.clonePosition();
|
|
5698
5724
|
if (r !== "select" && this.bumpIf("=")) {
|
|
5699
|
-
var c = this.tryParseDecimalInteger(
|
|
5725
|
+
var c = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
5700
5726
|
if (c.err)
|
|
5701
5727
|
return c;
|
|
5702
|
-
f =
|
|
5728
|
+
f = N(h, this.clonePosition()), u = this.message.slice(h.offset, this.offset());
|
|
5703
5729
|
} else
|
|
5704
5730
|
break;
|
|
5705
5731
|
}
|
|
5706
5732
|
if (l.has(u))
|
|
5707
|
-
return this.error(r === "select" ?
|
|
5708
|
-
u === "other" && (
|
|
5733
|
+
return this.error(r === "select" ? A.DUPLICATE_SELECT_ARGUMENT_SELECTOR : A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
5734
|
+
u === "other" && (o = !0), this.bumpSpace();
|
|
5709
5735
|
var p = this.clonePosition();
|
|
5710
5736
|
if (!this.bumpIf("{"))
|
|
5711
|
-
return this.error(r === "select" ?
|
|
5737
|
+
return this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
|
|
5712
5738
|
var d = this.parseMessage(t + 1, r, n);
|
|
5713
5739
|
if (d.err)
|
|
5714
5740
|
return d;
|
|
5715
5741
|
var b = this.tryParseArgumentClose(p);
|
|
5716
5742
|
if (b.err)
|
|
5717
5743
|
return b;
|
|
5718
|
-
|
|
5744
|
+
a.push([
|
|
5719
5745
|
u,
|
|
5720
5746
|
{
|
|
5721
5747
|
value: d.val,
|
|
5722
|
-
location:
|
|
5748
|
+
location: N(p, this.clonePosition())
|
|
5723
5749
|
}
|
|
5724
5750
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, f = s.location;
|
|
5725
5751
|
}
|
|
5726
|
-
return
|
|
5752
|
+
return a.length === 0 ? this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR : A.EXPECT_PLURAL_ARGUMENT_SELECTOR, N(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(A.MISSING_OTHER_CLAUSE, N(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
5727
5753
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
5728
5754
|
var n = 1, i = this.clonePosition();
|
|
5729
5755
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
5730
|
-
for (var s = !1,
|
|
5731
|
-
var
|
|
5732
|
-
if (
|
|
5733
|
-
s = !0,
|
|
5756
|
+
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
5757
|
+
var a = this.char();
|
|
5758
|
+
if (a >= 48 && a <= 57)
|
|
5759
|
+
s = !0, o = o * 10 + (a - 48), this.bump();
|
|
5734
5760
|
else
|
|
5735
5761
|
break;
|
|
5736
5762
|
}
|
|
5737
|
-
var l =
|
|
5738
|
-
return s ? (
|
|
5763
|
+
var l = N(i, this.clonePosition());
|
|
5764
|
+
return s ? (o *= n, Ro(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
5739
5765
|
}, e.prototype.offset = function() {
|
|
5740
5766
|
return this.position.offset;
|
|
5741
5767
|
}, e.prototype.isEOF = function() {
|
|
@@ -5769,7 +5795,7 @@ var Go = (
|
|
|
5769
5795
|
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);
|
|
5770
5796
|
}
|
|
5771
5797
|
}, e.prototype.bumpIf = function(t) {
|
|
5772
|
-
if (
|
|
5798
|
+
if (Ln(this.message, t, this.offset())) {
|
|
5773
5799
|
for (var r = 0; r < t.length; r++)
|
|
5774
5800
|
this.bump();
|
|
5775
5801
|
return !0;
|
|
@@ -5801,11 +5827,11 @@ var Go = (
|
|
|
5801
5827
|
}, e;
|
|
5802
5828
|
}()
|
|
5803
5829
|
);
|
|
5804
|
-
function
|
|
5830
|
+
function Vr(e) {
|
|
5805
5831
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
5806
5832
|
}
|
|
5807
5833
|
function Uo(e) {
|
|
5808
|
-
return
|
|
5834
|
+
return Vr(e) || e === 47;
|
|
5809
5835
|
}
|
|
5810
5836
|
function jo(e) {
|
|
5811
5837
|
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;
|
|
@@ -5816,27 +5842,27 @@ function ns(e) {
|
|
|
5816
5842
|
function qo(e) {
|
|
5817
5843
|
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;
|
|
5818
5844
|
}
|
|
5819
|
-
function
|
|
5845
|
+
function zr(e) {
|
|
5820
5846
|
e.forEach(function(t) {
|
|
5821
5847
|
if (delete t.location, Wi(t) || Xi(t))
|
|
5822
5848
|
for (var r in t.options)
|
|
5823
|
-
delete t.options[r].location,
|
|
5824
|
-
else qi(t) && Yi(t.style) || (Vi(t) || zi(t)) &&
|
|
5849
|
+
delete t.options[r].location, zr(t.options[r].value);
|
|
5850
|
+
else qi(t) && Yi(t.style) || (Vi(t) || zi(t)) && Gr(t.style) ? delete t.style.location : Qi(t) && zr(t.children);
|
|
5825
5851
|
});
|
|
5826
5852
|
}
|
|
5827
5853
|
function Vo(e, t) {
|
|
5828
5854
|
t === void 0 && (t = {}), t = rr({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
5829
5855
|
var r = new Go(e, t).parse();
|
|
5830
5856
|
if (r.err) {
|
|
5831
|
-
var n = SyntaxError(
|
|
5857
|
+
var n = SyntaxError(A[r.err.kind]);
|
|
5832
5858
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
5833
5859
|
}
|
|
5834
|
-
return t?.captureLocation ||
|
|
5860
|
+
return t?.captureLocation || zr(r.val), r.val;
|
|
5835
5861
|
}
|
|
5836
|
-
var
|
|
5862
|
+
var bt;
|
|
5837
5863
|
(function(e) {
|
|
5838
5864
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
5839
|
-
})(
|
|
5865
|
+
})(bt || (bt = {}));
|
|
5840
5866
|
var hr = (
|
|
5841
5867
|
/** @class */
|
|
5842
5868
|
function(e) {
|
|
@@ -5849,12 +5875,12 @@ var hr = (
|
|
|
5849
5875
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
5850
5876
|
}, t;
|
|
5851
5877
|
}(Error)
|
|
5852
|
-
),
|
|
5878
|
+
), kn = (
|
|
5853
5879
|
/** @class */
|
|
5854
5880
|
function(e) {
|
|
5855
5881
|
fr(t, e);
|
|
5856
5882
|
function t(r, n, i, s) {
|
|
5857
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
5883
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), bt.INVALID_VALUE, s) || this;
|
|
5858
5884
|
}
|
|
5859
5885
|
return t;
|
|
5860
5886
|
}(hr)
|
|
@@ -5863,7 +5889,7 @@ var hr = (
|
|
|
5863
5889
|
function(e) {
|
|
5864
5890
|
fr(t, e);
|
|
5865
5891
|
function t(r, n, i) {
|
|
5866
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
5892
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), bt.INVALID_VALUE, i) || this;
|
|
5867
5893
|
}
|
|
5868
5894
|
return t;
|
|
5869
5895
|
}(hr)
|
|
@@ -5872,7 +5898,7 @@ var hr = (
|
|
|
5872
5898
|
function(e) {
|
|
5873
5899
|
fr(t, e);
|
|
5874
5900
|
function t(r, n) {
|
|
5875
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
5901
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), bt.MISSING_VALUE, n) || this;
|
|
5876
5902
|
}
|
|
5877
5903
|
return t;
|
|
5878
5904
|
}(hr)
|
|
@@ -5889,25 +5915,25 @@ function Xo(e) {
|
|
|
5889
5915
|
function Qo(e) {
|
|
5890
5916
|
return typeof e == "function";
|
|
5891
5917
|
}
|
|
5892
|
-
function Xt(e, t, r, n, i, s,
|
|
5893
|
-
if (e.length === 1 &&
|
|
5918
|
+
function Xt(e, t, r, n, i, s, o) {
|
|
5919
|
+
if (e.length === 1 && Mn(e[0]))
|
|
5894
5920
|
return [
|
|
5895
5921
|
{
|
|
5896
5922
|
type: J.literal,
|
|
5897
5923
|
value: e[0].value
|
|
5898
5924
|
}
|
|
5899
5925
|
];
|
|
5900
|
-
for (var
|
|
5926
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
5901
5927
|
var f = u[l];
|
|
5902
|
-
if (
|
|
5903
|
-
|
|
5928
|
+
if (Mn(f)) {
|
|
5929
|
+
a.push({
|
|
5904
5930
|
type: J.literal,
|
|
5905
5931
|
value: f.value
|
|
5906
5932
|
});
|
|
5907
5933
|
continue;
|
|
5908
5934
|
}
|
|
5909
5935
|
if (go(f)) {
|
|
5910
|
-
typeof s == "number" &&
|
|
5936
|
+
typeof s == "number" && a.push({
|
|
5911
5937
|
type: J.literal,
|
|
5912
5938
|
value: r.getNumberFormat(t).format(s)
|
|
5913
5939
|
});
|
|
@@ -5915,26 +5941,26 @@ function Xt(e, t, r, n, i, s, a) {
|
|
|
5915
5941
|
}
|
|
5916
5942
|
var h = f.value;
|
|
5917
5943
|
if (!(i && h in i))
|
|
5918
|
-
throw new Wo(h,
|
|
5944
|
+
throw new Wo(h, o);
|
|
5919
5945
|
var c = i[h];
|
|
5920
5946
|
if (mo(f)) {
|
|
5921
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
5947
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
5922
5948
|
type: typeof c == "string" ? J.literal : J.object,
|
|
5923
5949
|
value: c
|
|
5924
5950
|
});
|
|
5925
5951
|
continue;
|
|
5926
5952
|
}
|
|
5927
5953
|
if (Vi(f)) {
|
|
5928
|
-
var p = typeof f.style == "string" ? n.date[f.style] :
|
|
5929
|
-
|
|
5954
|
+
var p = typeof f.style == "string" ? n.date[f.style] : Gr(f.style) ? f.style.parsedOptions : void 0;
|
|
5955
|
+
a.push({
|
|
5930
5956
|
type: J.literal,
|
|
5931
5957
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
5932
5958
|
});
|
|
5933
5959
|
continue;
|
|
5934
5960
|
}
|
|
5935
5961
|
if (zi(f)) {
|
|
5936
|
-
var p = typeof f.style == "string" ? n.time[f.style] :
|
|
5937
|
-
|
|
5962
|
+
var p = typeof f.style == "string" ? n.time[f.style] : Gr(f.style) ? f.style.parsedOptions : n.time.medium;
|
|
5963
|
+
a.push({
|
|
5938
5964
|
type: J.literal,
|
|
5939
5965
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
5940
5966
|
});
|
|
@@ -5942,7 +5968,7 @@ function Xt(e, t, r, n, i, s, a) {
|
|
|
5942
5968
|
}
|
|
5943
5969
|
if (qi(f)) {
|
|
5944
5970
|
var p = typeof f.style == "string" ? n.number[f.style] : Yi(f.style) ? f.style.parsedOptions : void 0;
|
|
5945
|
-
p && p.scale && (c = c * (p.scale || 1)),
|
|
5971
|
+
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
5946
5972
|
type: J.literal,
|
|
5947
5973
|
value: r.getNumberFormat(t, p).format(c)
|
|
5948
5974
|
});
|
|
@@ -5951,11 +5977,11 @@ function Xt(e, t, r, n, i, s, a) {
|
|
|
5951
5977
|
if (Qi(f)) {
|
|
5952
5978
|
var d = f.children, b = f.value, P = i[b];
|
|
5953
5979
|
if (!Qo(P))
|
|
5954
|
-
throw new zo(b, "function",
|
|
5980
|
+
throw new zo(b, "function", o);
|
|
5955
5981
|
var x = Xt(d, t, r, n, i, s), y = P(x.map(function(M) {
|
|
5956
5982
|
return M.value;
|
|
5957
5983
|
}));
|
|
5958
|
-
Array.isArray(y) || (y = [y]),
|
|
5984
|
+
Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(M) {
|
|
5959
5985
|
return {
|
|
5960
5986
|
type: typeof M == "string" ? J.literal : J.object,
|
|
5961
5987
|
value: M
|
|
@@ -5965,8 +5991,8 @@ function Xt(e, t, r, n, i, s, a) {
|
|
|
5965
5991
|
if (Wi(f)) {
|
|
5966
5992
|
var B = f.options[c] || f.options.other;
|
|
5967
5993
|
if (!B)
|
|
5968
|
-
throw new
|
|
5969
|
-
|
|
5994
|
+
throw new kn(f.value, c, Object.keys(f.options), o);
|
|
5995
|
+
a.push.apply(a, Xt(B.value, t, r, n, i));
|
|
5970
5996
|
continue;
|
|
5971
5997
|
}
|
|
5972
5998
|
if (Xi(f)) {
|
|
@@ -5975,17 +6001,17 @@ function Xt(e, t, r, n, i, s, a) {
|
|
|
5975
6001
|
if (!Intl.PluralRules)
|
|
5976
6002
|
throw new hr(`Intl.PluralRules is not available in this environment.
|
|
5977
6003
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5978
|
-
`,
|
|
5979
|
-
var
|
|
5980
|
-
B = f.options[
|
|
6004
|
+
`, bt.MISSING_INTL_API, o);
|
|
6005
|
+
var Q = r.getPluralRules(t, { type: f.pluralType }).select(c - (f.offset || 0));
|
|
6006
|
+
B = f.options[Q] || f.options.other;
|
|
5981
6007
|
}
|
|
5982
6008
|
if (!B)
|
|
5983
|
-
throw new
|
|
5984
|
-
|
|
6009
|
+
throw new kn(f.value, c, Object.keys(f.options), o);
|
|
6010
|
+
a.push.apply(a, Xt(B.value, t, r, n, i, c - (f.offset || 0)));
|
|
5985
6011
|
continue;
|
|
5986
6012
|
}
|
|
5987
6013
|
}
|
|
5988
|
-
return Xo(
|
|
6014
|
+
return Xo(a);
|
|
5989
6015
|
}
|
|
5990
6016
|
function Yo(e, t) {
|
|
5991
6017
|
return t ? Ee(Ee(Ee({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
@@ -6073,10 +6099,10 @@ var Ko = (
|
|
|
6073
6099
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
6074
6100
|
if (this.message = t, !e.__parse)
|
|
6075
6101
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
6076
|
-
var
|
|
6077
|
-
|
|
6078
|
-
var
|
|
6079
|
-
this.ast = e.__parse(t, Ee(Ee({},
|
|
6102
|
+
var o = i || {};
|
|
6103
|
+
o.formatters;
|
|
6104
|
+
var a = oo(o, ["formatters"]);
|
|
6105
|
+
this.ast = e.__parse(t, Ee(Ee({}, a), { locale: this.resolvedLocale }));
|
|
6080
6106
|
} else
|
|
6081
6107
|
this.ast = t;
|
|
6082
6108
|
if (!Array.isArray(this.ast))
|
|
@@ -6188,13 +6214,13 @@ const De = {}, tu = (e, t, r) => r && (t in De || (De[t] = {}), e in De[t] || (D
|
|
|
6188
6214
|
return tu(e, t, s);
|
|
6189
6215
|
}
|
|
6190
6216
|
};
|
|
6191
|
-
let
|
|
6192
|
-
const
|
|
6217
|
+
let dn;
|
|
6218
|
+
const xt = lr({});
|
|
6193
6219
|
function ru(e) {
|
|
6194
|
-
return
|
|
6220
|
+
return dn[e] || null;
|
|
6195
6221
|
}
|
|
6196
6222
|
function ss(e) {
|
|
6197
|
-
return e in
|
|
6223
|
+
return e in dn;
|
|
6198
6224
|
}
|
|
6199
6225
|
function nu(e, t) {
|
|
6200
6226
|
if (!ss(e))
|
|
@@ -6213,13 +6239,13 @@ function iu(e) {
|
|
|
6213
6239
|
}
|
|
6214
6240
|
}
|
|
6215
6241
|
function as(e, ...t) {
|
|
6216
|
-
delete De[e],
|
|
6242
|
+
delete De[e], xt.update((r) => (r[e] = ao.all([r[e] || {}, ...t]), r));
|
|
6217
6243
|
}
|
|
6218
|
-
|
|
6219
|
-
[
|
|
6244
|
+
Et(
|
|
6245
|
+
[xt],
|
|
6220
6246
|
([e]) => Object.keys(e)
|
|
6221
6247
|
);
|
|
6222
|
-
|
|
6248
|
+
xt.subscribe((e) => dn = e);
|
|
6223
6249
|
const Qt = {};
|
|
6224
6250
|
function su(e, t) {
|
|
6225
6251
|
Qt[e].delete(t), Qt[e].size === 0 && delete Qt[e];
|
|
@@ -6233,7 +6259,7 @@ function au(e) {
|
|
|
6233
6259
|
return [t, r ? [...r] : []];
|
|
6234
6260
|
}).filter(([, t]) => t.length > 0);
|
|
6235
6261
|
}
|
|
6236
|
-
function
|
|
6262
|
+
function Wr(e) {
|
|
6237
6263
|
return e == null ? !1 : cr(e).some(
|
|
6238
6264
|
(t) => {
|
|
6239
6265
|
var r;
|
|
@@ -6246,20 +6272,20 @@ function ou(e, t) {
|
|
|
6246
6272
|
t.map((n) => (su(e, n), n().then((i) => i.default || i)))
|
|
6247
6273
|
).then((n) => as(e, ...n));
|
|
6248
6274
|
}
|
|
6249
|
-
const
|
|
6275
|
+
const Nt = {};
|
|
6250
6276
|
function us(e) {
|
|
6251
|
-
if (!
|
|
6252
|
-
return e in
|
|
6277
|
+
if (!Wr(e))
|
|
6278
|
+
return e in Nt ? Nt[e] : Promise.resolve();
|
|
6253
6279
|
const t = au(e);
|
|
6254
|
-
return
|
|
6280
|
+
return Nt[e] = Promise.all(
|
|
6255
6281
|
t.map(
|
|
6256
6282
|
([r, n]) => ou(r, n)
|
|
6257
6283
|
)
|
|
6258
6284
|
).then(() => {
|
|
6259
|
-
if (
|
|
6285
|
+
if (Wr(e))
|
|
6260
6286
|
return us(e);
|
|
6261
|
-
delete
|
|
6262
|
-
}),
|
|
6287
|
+
delete Nt[e];
|
|
6288
|
+
}), Nt[e];
|
|
6263
6289
|
}
|
|
6264
6290
|
const uu = {
|
|
6265
6291
|
number: {
|
|
@@ -6298,36 +6324,36 @@ const uu = {
|
|
|
6298
6324
|
handleMissingMessage: void 0,
|
|
6299
6325
|
ignoreTag: !0
|
|
6300
6326
|
}, fu = lu;
|
|
6301
|
-
function
|
|
6327
|
+
function yt() {
|
|
6302
6328
|
return fu;
|
|
6303
6329
|
}
|
|
6304
|
-
const Sr =
|
|
6305
|
-
var hu = Object.defineProperty, cu = Object.defineProperties, du = Object.getOwnPropertyDescriptors,
|
|
6330
|
+
const Sr = lr(!1);
|
|
6331
|
+
var hu = Object.defineProperty, cu = Object.defineProperties, du = Object.getOwnPropertyDescriptors, Fn = Object.getOwnPropertySymbols, pu = Object.prototype.hasOwnProperty, vu = Object.prototype.propertyIsEnumerable, Gn = (e, t, r) => t in e ? hu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mu = (e, t) => {
|
|
6306
6332
|
for (var r in t || (t = {}))
|
|
6307
|
-
pu.call(t, r) &&
|
|
6308
|
-
if (
|
|
6309
|
-
for (var r of
|
|
6310
|
-
vu.call(t, r) &&
|
|
6333
|
+
pu.call(t, r) && Gn(e, r, t[r]);
|
|
6334
|
+
if (Fn)
|
|
6335
|
+
for (var r of Fn(t))
|
|
6336
|
+
vu.call(t, r) && Gn(e, r, t[r]);
|
|
6311
6337
|
return e;
|
|
6312
6338
|
}, gu = (e, t) => cu(e, du(t));
|
|
6313
|
-
let
|
|
6314
|
-
const nr =
|
|
6315
|
-
function
|
|
6339
|
+
let Xr;
|
|
6340
|
+
const nr = lr(null);
|
|
6341
|
+
function Un(e) {
|
|
6316
6342
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
6317
6343
|
}
|
|
6318
|
-
function cr(e, t =
|
|
6319
|
-
const r =
|
|
6320
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
6344
|
+
function cr(e, t = yt().fallbackLocale) {
|
|
6345
|
+
const r = Un(e);
|
|
6346
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Un(t)])] : r;
|
|
6321
6347
|
}
|
|
6322
6348
|
function et() {
|
|
6323
|
-
return
|
|
6349
|
+
return Xr ?? void 0;
|
|
6324
6350
|
}
|
|
6325
6351
|
nr.subscribe((e) => {
|
|
6326
|
-
|
|
6352
|
+
Xr = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
6327
6353
|
});
|
|
6328
6354
|
const _u = (e) => {
|
|
6329
|
-
if (e && iu(e) &&
|
|
6330
|
-
const { loadingDelay: t } =
|
|
6355
|
+
if (e && iu(e) && Wr(e)) {
|
|
6356
|
+
const { loadingDelay: t } = yt();
|
|
6331
6357
|
let r;
|
|
6332
6358
|
return typeof window < "u" && et() != null && t ? r = window.setTimeout(
|
|
6333
6359
|
() => Sr.set(!0),
|
|
@@ -6348,14 +6374,14 @@ const _u = (e) => {
|
|
|
6348
6374
|
return i in t ? t[i] : t[i] = e(n);
|
|
6349
6375
|
};
|
|
6350
6376
|
};
|
|
6351
|
-
var bu = Object.defineProperty, ir = Object.getOwnPropertySymbols, ls = Object.prototype.hasOwnProperty, fs = Object.prototype.propertyIsEnumerable,
|
|
6377
|
+
var bu = Object.defineProperty, ir = Object.getOwnPropertySymbols, ls = Object.prototype.hasOwnProperty, fs = Object.prototype.propertyIsEnumerable, jn = (e, t, r) => t in e ? bu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pn = (e, t) => {
|
|
6352
6378
|
for (var r in t || (t = {}))
|
|
6353
|
-
ls.call(t, r) &&
|
|
6379
|
+
ls.call(t, r) && jn(e, r, t[r]);
|
|
6354
6380
|
if (ir)
|
|
6355
6381
|
for (var r of ir(t))
|
|
6356
|
-
fs.call(t, r) &&
|
|
6382
|
+
fs.call(t, r) && jn(e, r, t[r]);
|
|
6357
6383
|
return e;
|
|
6358
|
-
},
|
|
6384
|
+
}, wt = (e, t) => {
|
|
6359
6385
|
var r = {};
|
|
6360
6386
|
for (var n in e)
|
|
6361
6387
|
ls.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -6365,27 +6391,27 @@ var bu = Object.defineProperty, ir = Object.getOwnPropertySymbols, ls = Object.p
|
|
|
6365
6391
|
return r;
|
|
6366
6392
|
};
|
|
6367
6393
|
const Dt = (e, t) => {
|
|
6368
|
-
const { formats: r } =
|
|
6394
|
+
const { formats: r } = yt();
|
|
6369
6395
|
if (e in r && t in r[e])
|
|
6370
6396
|
return r[e][t];
|
|
6371
6397
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
6372
6398
|
}, yu = dr(
|
|
6373
6399
|
(e) => {
|
|
6374
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6400
|
+
var t = e, { locale: r, format: n } = t, i = wt(t, ["locale", "format"]);
|
|
6375
6401
|
if (r == null)
|
|
6376
6402
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
6377
6403
|
return n && (i = Dt("number", n)), new Intl.NumberFormat(r, i);
|
|
6378
6404
|
}
|
|
6379
6405
|
), Eu = dr(
|
|
6380
6406
|
(e) => {
|
|
6381
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6407
|
+
var t = e, { locale: r, format: n } = t, i = wt(t, ["locale", "format"]);
|
|
6382
6408
|
if (r == null)
|
|
6383
6409
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
6384
6410
|
return n ? i = Dt("date", n) : Object.keys(i).length === 0 && (i = Dt("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
6385
6411
|
}
|
|
6386
6412
|
), xu = dr(
|
|
6387
6413
|
(e) => {
|
|
6388
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6414
|
+
var t = e, { locale: r, format: n } = t, i = wt(t, ["locale", "format"]);
|
|
6389
6415
|
if (r == null)
|
|
6390
6416
|
throw new Error(
|
|
6391
6417
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
@@ -6395,54 +6421,54 @@ const Dt = (e, t) => {
|
|
|
6395
6421
|
), wu = (e = {}) => {
|
|
6396
6422
|
var t = e, {
|
|
6397
6423
|
locale: r = et()
|
|
6398
|
-
} = t, n =
|
|
6424
|
+
} = t, n = wt(t, [
|
|
6399
6425
|
"locale"
|
|
6400
6426
|
]);
|
|
6401
|
-
return yu(
|
|
6427
|
+
return yu(pn({ locale: r }, n));
|
|
6402
6428
|
}, Su = (e = {}) => {
|
|
6403
6429
|
var t = e, {
|
|
6404
6430
|
locale: r = et()
|
|
6405
|
-
} = t, n =
|
|
6431
|
+
} = t, n = wt(t, [
|
|
6406
6432
|
"locale"
|
|
6407
6433
|
]);
|
|
6408
|
-
return Eu(
|
|
6434
|
+
return Eu(pn({ locale: r }, n));
|
|
6409
6435
|
}, Tu = (e = {}) => {
|
|
6410
6436
|
var t = e, {
|
|
6411
6437
|
locale: r = et()
|
|
6412
|
-
} = t, n =
|
|
6438
|
+
} = t, n = wt(t, [
|
|
6413
6439
|
"locale"
|
|
6414
6440
|
]);
|
|
6415
|
-
return xu(
|
|
6441
|
+
return xu(pn({ locale: r }, n));
|
|
6416
6442
|
}, Au = dr(
|
|
6417
6443
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
6418
|
-
(e, t = et()) => new Ko(e, t,
|
|
6419
|
-
ignoreTag:
|
|
6444
|
+
(e, t = et()) => new Ko(e, t, yt().formats, {
|
|
6445
|
+
ignoreTag: yt().ignoreTag
|
|
6420
6446
|
})
|
|
6421
6447
|
), Nu = (e, t = {}) => {
|
|
6422
6448
|
var r, n, i, s;
|
|
6423
|
-
let
|
|
6424
|
-
typeof e == "object" && (
|
|
6449
|
+
let o = t;
|
|
6450
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
6425
6451
|
const {
|
|
6426
|
-
values:
|
|
6452
|
+
values: a,
|
|
6427
6453
|
locale: l = et(),
|
|
6428
6454
|
default: u
|
|
6429
|
-
} =
|
|
6455
|
+
} = o;
|
|
6430
6456
|
if (l == null)
|
|
6431
6457
|
throw new Error(
|
|
6432
6458
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
6433
6459
|
);
|
|
6434
6460
|
let f = is(e, l);
|
|
6435
6461
|
if (!f)
|
|
6436
|
-
f = (s = (i = (n = (r =
|
|
6462
|
+
f = (s = (i = (n = (r = yt()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
6437
6463
|
else if (typeof f != "string")
|
|
6438
6464
|
return console.warn(
|
|
6439
6465
|
`[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.`
|
|
6440
6466
|
), f;
|
|
6441
|
-
if (!
|
|
6467
|
+
if (!a)
|
|
6442
6468
|
return f;
|
|
6443
6469
|
let h = f;
|
|
6444
6470
|
try {
|
|
6445
|
-
h = Au(f, l).format(
|
|
6471
|
+
h = Au(f, l).format(a);
|
|
6446
6472
|
} catch (c) {
|
|
6447
6473
|
c instanceof Error && console.warn(
|
|
6448
6474
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -6450,14 +6476,14 @@ const Dt = (e, t) => {
|
|
|
6450
6476
|
);
|
|
6451
6477
|
}
|
|
6452
6478
|
return h;
|
|
6453
|
-
}, Hu = (e, t) => Tu(t).format(e), Ou = (e, t) => Su(t).format(e), $u = (e, t) => wu(t).format(e), Bu = (e, t = et()) => is(e, t), Mu =
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6479
|
+
}, Hu = (e, t) => Tu(t).format(e), Ou = (e, t) => Su(t).format(e), $u = (e, t) => wu(t).format(e), Bu = (e, t = et()) => is(e, t), Mu = Et([Ze, xt], () => Nu);
|
|
6480
|
+
Et([Ze], () => Hu);
|
|
6481
|
+
Et([Ze], () => Ou);
|
|
6482
|
+
Et([Ze], () => $u);
|
|
6483
|
+
Et([Ze, xt], () => Bu);
|
|
6458
6484
|
function Pu({ withLocale: e, translations: t }) {
|
|
6459
6485
|
Ze.subscribe((r) => {
|
|
6460
|
-
r == null && (
|
|
6486
|
+
r == null && (xt.set(t), Ze.set(e));
|
|
6461
6487
|
});
|
|
6462
6488
|
}
|
|
6463
6489
|
function Iu(e, t) {
|
|
@@ -6544,8 +6570,8 @@ const Du = {
|
|
|
6544
6570
|
transform 0.25s ease;}.faq__answer.svelte-tlosd8 {overflow:hidden;font-size:12px;font-weight:500;line-height:1.5;color:var(--text-subtle, #DFE3E8);}.faq__answer-wrapper.open.svelte-tlosd8 {grid-template-rows:1fr;opacity:1;transform:translateY(0);padding-top:16px;}`
|
|
6545
6571
|
};
|
|
6546
6572
|
function hs(e, t) {
|
|
6547
|
-
|
|
6548
|
-
const r = () =>
|
|
6573
|
+
en(t, !0), Oa(e, Du);
|
|
6574
|
+
const r = () => Da(Mu, "$_", n), [n, i] = ka(), s = Re(t, "apiEndpoint", 7, ""), o = Re(t, "operatorName", 7, ""), a = Re(t, "locale", 7, "en"), l = Re(t, "isExpanded", 7, !0), u = l() === !0 || l() === "true", f = [
|
|
6549
6575
|
{ questionKey: "faqBestQuestion", answerKey: "faqBestAnswer" },
|
|
6550
6576
|
{
|
|
6551
6577
|
questionKey: "faqWinningsQuestion",
|
|
@@ -6557,10 +6583,10 @@ function hs(e, t) {
|
|
|
6557
6583
|
answerKey: "faqSupportAnswer"
|
|
6558
6584
|
}
|
|
6559
6585
|
];
|
|
6560
|
-
Pu({ withLocale:
|
|
6586
|
+
Pu({ withLocale: a(), translations: {} }), Object.entries(Cu).forEach(([x, y]) => {
|
|
6561
6587
|
Iu(x, y);
|
|
6562
6588
|
});
|
|
6563
|
-
let h = /* @__PURE__ */ Ne(
|
|
6589
|
+
let h = /* @__PURE__ */ Ne(at(Object.fromEntries(f.map((x, y) => [y, u]))));
|
|
6564
6590
|
const c = (x) => {
|
|
6565
6591
|
ce(h, { ...j(h), [x]: !j(h)[x] }, !0);
|
|
6566
6592
|
};
|
|
@@ -6572,16 +6598,16 @@ function hs(e, t) {
|
|
|
6572
6598
|
s(x), $e();
|
|
6573
6599
|
},
|
|
6574
6600
|
get operatorName() {
|
|
6575
|
-
return
|
|
6601
|
+
return o();
|
|
6576
6602
|
},
|
|
6577
6603
|
set operatorName(x = "") {
|
|
6578
|
-
|
|
6604
|
+
o(x), $e();
|
|
6579
6605
|
},
|
|
6580
6606
|
get locale() {
|
|
6581
|
-
return
|
|
6607
|
+
return a();
|
|
6582
6608
|
},
|
|
6583
6609
|
set locale(x = "en") {
|
|
6584
|
-
|
|
6610
|
+
a(x), $e();
|
|
6585
6611
|
},
|
|
6586
6612
|
get isExpanded() {
|
|
6587
6613
|
return l();
|
|
@@ -6589,28 +6615,28 @@ function hs(e, t) {
|
|
|
6589
6615
|
set isExpanded(x = !0) {
|
|
6590
6616
|
l(x), $e();
|
|
6591
6617
|
}
|
|
6592
|
-
}, d = Ru(), b =
|
|
6593
|
-
|
|
6594
|
-
var
|
|
6618
|
+
}, d = Ru(), b = Ot(d);
|
|
6619
|
+
Aa(b, 21, () => f, Sa, (x, y, B) => {
|
|
6620
|
+
var Q = Lu(), M = Ot(Q), R = Ot(M), ie = yn(R, !0), V = En(R, 2);
|
|
6595
6621
|
let he;
|
|
6596
6622
|
st(M);
|
|
6597
|
-
var I =
|
|
6623
|
+
var I = En(M, 2);
|
|
6598
6624
|
let w;
|
|
6599
|
-
var Ie =
|
|
6600
|
-
st(I), st(
|
|
6625
|
+
var Ie = Ot(I), tt = yn(Ie, !0);
|
|
6626
|
+
st(I), st(Q), sa(
|
|
6601
6627
|
(E, m) => {
|
|
6602
|
-
|
|
6628
|
+
Pa(M, "aria-expanded", !!j(h)[B]), An(ie, E), he = On(V, 1, "faq__icon svelte-tlosd8", null, he, { "faq__icon--open": j(h)[B] }), w = On(I, 1, "faq__answer-wrapper svelte-tlosd8", null, w, { open: j(h)[B] }), An(tt, m);
|
|
6603
6629
|
},
|
|
6604
6630
|
[
|
|
6605
|
-
() => r()(j(y).questionKey, { values: { operatorName:
|
|
6606
|
-
() => r()(j(y).answerKey, { values: { operatorName:
|
|
6631
|
+
() => r()(j(y).questionKey, { values: { operatorName: o() } }),
|
|
6632
|
+
() => r()(j(y).answerKey, { values: { operatorName: o() } })
|
|
6607
6633
|
]
|
|
6608
|
-
),
|
|
6634
|
+
), ha("click", M, () => c(B)), Lr(x, Q);
|
|
6609
6635
|
}), st(b), st(d), Lr(e, d);
|
|
6610
|
-
var P =
|
|
6636
|
+
var P = tn(p);
|
|
6611
6637
|
return i(), P;
|
|
6612
6638
|
}
|
|
6613
|
-
|
|
6639
|
+
ca(["click"]);
|
|
6614
6640
|
Fi(
|
|
6615
6641
|
hs,
|
|
6616
6642
|
{
|
|
@@ -6624,32 +6650,32 @@ Fi(
|
|
|
6624
6650
|
{ mode: "open" }
|
|
6625
6651
|
);
|
|
6626
6652
|
function cs(e, t) {
|
|
6627
|
-
|
|
6653
|
+
en(t, !0);
|
|
6628
6654
|
let r = Re(t, "apiEndpoint", 7, ""), n = Re(t, "operatorName", 7, ""), i = Re(t, "locale", 7, "en"), s = Re(t, "isExpanded", 7, !0);
|
|
6629
|
-
var
|
|
6655
|
+
var o = {
|
|
6630
6656
|
get apiEndpoint() {
|
|
6631
6657
|
return r();
|
|
6632
6658
|
},
|
|
6633
|
-
set apiEndpoint(
|
|
6634
|
-
r(
|
|
6659
|
+
set apiEndpoint(a = "") {
|
|
6660
|
+
r(a), $e();
|
|
6635
6661
|
},
|
|
6636
6662
|
get operatorName() {
|
|
6637
6663
|
return n();
|
|
6638
6664
|
},
|
|
6639
|
-
set operatorName(
|
|
6640
|
-
n(
|
|
6665
|
+
set operatorName(a = "") {
|
|
6666
|
+
n(a), $e();
|
|
6641
6667
|
},
|
|
6642
6668
|
get locale() {
|
|
6643
6669
|
return i();
|
|
6644
6670
|
},
|
|
6645
|
-
set locale(
|
|
6646
|
-
i(
|
|
6671
|
+
set locale(a = "en") {
|
|
6672
|
+
i(a), $e();
|
|
6647
6673
|
},
|
|
6648
6674
|
get isExpanded() {
|
|
6649
6675
|
return s();
|
|
6650
6676
|
},
|
|
6651
|
-
set isExpanded(
|
|
6652
|
-
s(
|
|
6677
|
+
set isExpanded(a = !0) {
|
|
6678
|
+
s(a), $e();
|
|
6653
6679
|
}
|
|
6654
6680
|
};
|
|
6655
6681
|
return hs(e, {
|
|
@@ -6665,7 +6691,7 @@ function cs(e, t) {
|
|
|
6665
6691
|
get isExpanded() {
|
|
6666
6692
|
return s();
|
|
6667
6693
|
}
|
|
6668
|
-
}),
|
|
6694
|
+
}), tn(o);
|
|
6669
6695
|
}
|
|
6670
6696
|
customElements.define("loyalty-marketing-content", Fi(
|
|
6671
6697
|
cs,
|