@everymatrix/tournament-details-page 0.2.9 → 0.2.11
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/{ChartIcon-DuKiw7u5.js → ChartIcon-Blzn9spT.js} +1 -1
- package/components/{ChartIcon-uPX4pn_8.cjs → ChartIcon-CUZqwurw.cjs} +1 -1
- package/components/{ChartIcon-1VNK59HN.cjs → ChartIcon-Cw-ps_bp.cjs} +1 -1
- package/components/{ChartIcon-BCD2T3pr.js → ChartIcon-DTycW2Vl.js} +1 -1
- package/components/{CoinStackIcon-DM9NcHQ5.js → CoinStackIcon-BD5tT_tT.js} +1 -1
- package/components/{CoinStackIcon-eqomsX-S.cjs → CoinStackIcon-Bnki4Mhy.cjs} +1 -1
- package/components/{CoinStackIcon-KPPIHJNs.cjs → CoinStackIcon-C1RJWO7K.cjs} +1 -1
- package/components/{CoinStackIcon-BAmgBB85.js → CoinStackIcon-DqsuE1F0.js} +1 -1
- package/components/{DocumentsIcon-BCxtjV4b.js → DocumentsIcon-BHpILBlx.js} +1 -1
- package/components/{DocumentsIcon-ybQ34JvX.cjs → DocumentsIcon-C3IlZ6WJ.cjs} +1 -1
- package/components/{DocumentsIcon-C3uX-QgI.js → DocumentsIcon-Cm14nY4z.js} +1 -1
- package/components/{DocumentsIcon-CuoHtezG.cjs → DocumentsIcon-D5PG1nXk.cjs} +1 -1
- package/components/{FootballIcon-CRNec7hA.js → FootballIcon-BCg6M4ct.js} +1 -1
- package/components/{FootballIcon-BFvdlXO8.js → FootballIcon-Br4Pg_o9.js} +1 -1
- package/components/{FootballIcon-BvMeDAc-.cjs → FootballIcon-D9UFEeGx.cjs} +1 -1
- package/components/{FootballIcon--xyr5pSV.cjs → FootballIcon-DIJ72roh.cjs} +1 -1
- package/components/{PeopleIcon-CTynDgRc.js → PeopleIcon-BjvGwqnC.js} +1 -1
- package/components/{PeopleIcon-BJVZWHbw.cjs → PeopleIcon-BmSO8yTl.cjs} +1 -1
- package/components/{PeopleIcon-DMwpUYVZ.js → PeopleIcon-Bx81zHiT.js} +1 -1
- package/components/{PeopleIcon-C0YZ6Byl.cjs → PeopleIcon-Ccm9dG4u.cjs} +1 -1
- package/components/{RankArrowIcon-B91KawRb.js → RankArrowIcon-B7grti5j.js} +1 -1
- package/components/{RankArrowIcon-7zr8voOs.js → RankArrowIcon-CT9c2W4q.js} +1 -1
- package/components/{RankArrowIcon-B6OTua9f.cjs → RankArrowIcon-WosSBK6M.cjs} +1 -1
- package/components/{RankArrowIcon-BsJ3uMM9.cjs → RankArrowIcon-jMbfVZRN.cjs} +1 -1
- package/components/{SlotMachineIcon-DwU5WLpS.cjs → SlotMachineIcon--h4e8Eo7.cjs} +1 -1
- package/components/{SlotMachineIcon-CtyJP6bu.js → SlotMachineIcon-BFFKtGUs.js} +1 -1
- package/components/{SlotMachineIcon-C4kcsdcN.js → SlotMachineIcon-BYpTbiRT.js} +1 -1
- package/components/{SlotMachineIcon-K8BLDYcw.cjs → SlotMachineIcon-C2_AnFhk.cjs} +1 -1
- package/components/{StatusBadge-BAE3_ETq.js → StatusBadge-BSXTxxcz.js} +1834 -1841
- package/components/StatusBadge-CLgXaeUr.cjs +11 -0
- package/components/{StatusBadge-CIl0p91w.js → StatusBadge-DCptA39M.js} +569 -574
- package/components/StatusBadge-DPVVNwvB.cjs +11 -0
- package/components/{TournamentActions-CgG6Jz4v.js → TournamentActions-CSlVeM6D.js} +2 -2
- package/components/{TournamentActions-DtYg77xG.cjs → TournamentActions-Ck_hQS7u.cjs} +1 -1
- package/components/{TournamentActions-BcDCX2gB.cjs → TournamentActions-Cwtjzkq3.cjs} +1 -1
- package/components/{TournamentActions-Ba94CC_5.js → TournamentActions-DZHe7Gpj.js} +2 -2
- package/components/{TournamentDetailsPage-CeLbd00R.js → TournamentDetailsPage-Bd1xfeIz.js} +9 -9
- package/components/{TournamentDetailsPage-Do6sKgz3.cjs → TournamentDetailsPage-CC2uzNc9.cjs} +1 -1
- package/components/{TournamentDetailsPage-CqZlANVl.js → TournamentDetailsPage-CrVWh3XC.js} +9 -9
- package/components/{TournamentDetailsPage--Yr72F8w.cjs → TournamentDetailsPage-vxtHfTNg.cjs} +1 -1
- package/components/{TournamentDetailsSkeleton-CUo4iRP_.js → TournamentDetailsSkeleton-D5Ewcqd_.js} +2 -2
- package/components/{TournamentDetailsSkeleton-B2byX8IM.cjs → TournamentDetailsSkeleton-DEy1z8og.cjs} +1 -1
- package/components/{TournamentDetailsSkeleton-DRW4FvQ9.js → TournamentDetailsSkeleton-DbOfNIhi.js} +2 -2
- package/components/{TournamentDetailsSkeleton-C9BvT2Rk.cjs → TournamentDetailsSkeleton-i1T3j7Qq.cjs} +1 -1
- package/components/{TournamentGames-BsUkryYF.js → TournamentGames-BF7OeXui.js} +2 -2
- package/components/{TournamentGames-Cem62SpM.js → TournamentGames-DAjzIgPs.js} +2 -2
- package/components/{TournamentGames-C1r676ga.cjs → TournamentGames-DJjfni63.cjs} +1 -1
- package/components/{TournamentGames-CLQDDtNH.cjs → TournamentGames-DVa28wi4.cjs} +1 -1
- package/components/{TournamentImage-BRBTjpgk.js → TournamentImage-BFdrBdGO.js} +1 -1
- package/components/{TournamentImage-C-jz7jkY.cjs → TournamentImage-BiNRe7dv.cjs} +1 -1
- package/components/{TournamentImage-BB7apy_G.cjs → TournamentImage-Cd1Q-NUY.cjs} +1 -1
- package/components/{TournamentImage-IEZVeOsk.js → TournamentImage-R-XD_M4F.js} +1 -1
- package/components/{TournamentLeaderboard-BB-GdMbp.js → TournamentLeaderboard-BDGFWDLo.js} +1 -1
- package/components/{TournamentLeaderboard-gmN3m4vF.cjs → TournamentLeaderboard-BdILz34a.cjs} +1 -1
- package/components/{TournamentLeaderboard-Bi6acFkr.cjs → TournamentLeaderboard-DIobabGN.cjs} +1 -1
- package/components/{TournamentLeaderboard-kAWDrQWs.js → TournamentLeaderboard-WaAjyMOL.js} +1 -1
- package/components/{TournamentRules-EhfL6W2n.cjs → TournamentRules-Bk6j_-Pc.cjs} +1 -1
- package/components/{TournamentRules-CWop086v.js → TournamentRules-Btf8PwHL.js} +8 -8
- package/components/{TournamentRules-D2R0IrAb.cjs → TournamentRules-UIHBqJg_.cjs} +1 -1
- package/components/{TournamentRules-BcYOkeoA.js → TournamentRules-ZWCVyT0d.js} +8 -8
- package/components/{TournamentSummary-WRV0hIFk.cjs → TournamentSummary-B21DioQa.cjs} +1 -1
- package/components/{TournamentSummary-CpIFuP0K.js → TournamentSummary-BU1VaGeN.js} +6 -6
- package/components/{TournamentSummary-By_d1pcv.js → TournamentSummary-C8zrUjm-.js} +6 -6
- package/components/{TournamentSummary-CxDmOw7q.cjs → TournamentSummary-Culm_VmG.cjs} +1 -1
- package/components/{TournamentTabs-BQfmKwE3.js → TournamentTabs-Bfe7mMQv.js} +2 -2
- package/components/{TournamentTabs-BtJktsF6.cjs → TournamentTabs-CJg68zB4.cjs} +1 -1
- package/components/{TournamentTabs-DiRenUJ3.cjs → TournamentTabs-DIZkooA2.cjs} +1 -1
- package/components/{TournamentTabs-D7NvgwSf.js → TournamentTabs-LsLUozgb.js} +2 -2
- package/components/{TrophyIcon-ELMsvX95.js → TrophyIcon-Bqno7aoE.js} +1 -1
- package/components/{TrophyIcon-CUSwVmg1.cjs → TrophyIcon-DuAfQSZa.cjs} +1 -1
- package/components/{TrophyIcon-t9hOLzWD.cjs → TrophyIcon-gG04OTK9.cjs} +1 -1
- package/components/{TrophyIcon-MdlbB9Nh.js → TrophyIcon-qzOxAsqk.js} +1 -1
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +2 -2
- package/esnext/tournament-details-page.cjs +1 -1
- package/esnext/tournament-details-page.js +2 -2
- package/package.json +1 -1
- package/components/StatusBadge-BAx3jnro.cjs +0 -11
- package/components/StatusBadge-LVE00UFO.cjs +0 -11
|
@@ -6,8 +6,8 @@ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
|
6
6
|
} });
|
|
7
7
|
const Bs = "5";
|
|
8
8
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(Bs);
|
|
9
|
-
const Ps = 1, Is = 2, Jn = 4, Cs = 8, Ms = 16, Ls = 1, Rs = 4, $s = 8, Ds = 16, Us = 1, Fs = 2, Kn = "[", tn = "[!", wn = "[?", rn = "]", ye = {}, L = Symbol("uninitialized"), ei = "http://www.w3.org/1999/xhtml", Gs = "http://www.w3.org/2000/svg",
|
|
10
|
-
var ri = Array.isArray,
|
|
9
|
+
const Ps = 1, Is = 2, Jn = 4, Cs = 8, Ms = 16, Ls = 1, Rs = 4, $s = 8, Ds = 16, Us = 1, Fs = 2, Kn = "[", tn = "[!", wn = "[?", rn = "]", ye = {}, L = Symbol("uninitialized"), ei = "http://www.w3.org/1999/xhtml", Gs = "http://www.w3.org/2000/svg", ks = "http://www.w3.org/1998/Math/MathML", ti = !1;
|
|
10
|
+
var ri = Array.isArray, js = Array.prototype.indexOf, wt = Array.prototype.includes, or = Array.from, Zt = Object.keys, Ke = Object.defineProperty, $e = Object.getOwnPropertyDescriptor, ni = Object.getOwnPropertyDescriptors, Vs = Object.prototype, Xs = Array.prototype, nn = Object.getPrototypeOf, Tn = Object.isExtensible;
|
|
11
11
|
const Ee = () => {
|
|
12
12
|
};
|
|
13
13
|
function ii(e) {
|
|
@@ -20,7 +20,7 @@ function si() {
|
|
|
20
20
|
});
|
|
21
21
|
return { promise: r, resolve: e, reject: t };
|
|
22
22
|
}
|
|
23
|
-
const G = 2, et = 4, Ot = 8, ai = 1 << 24, ne = 16, oe = 32, xe = 64, Cr = 128, sn = 256, ae = 512, R = 1024,
|
|
23
|
+
const G = 2, et = 4, Ot = 8, ai = 1 << 24, ne = 16, oe = 32, xe = 64, Cr = 128, sn = 256, ae = 512, R = 1024, B = 2048, Q = 4096, V = 8192, U = 16384, Ve = 32768, Tt = 1 << 25, Ge = 65536, Qt = 1 << 17, qs = 1 << 18, Xe = 1 << 19, oi = 1 << 20, de = 1 << 25, Jt = 1 << 21, Qe = 1 << 22, Be = 1 << 23, De = Symbol("$state"), ui = Symbol("component"), li = Symbol("legacy props"), zs = Symbol(""), fi = Symbol("attributes"), Mr = Symbol("class"), Lr = Symbol("style"), Rr = Symbol("text"), Bt = new class extends Error {
|
|
24
24
|
name = "StaleReactionError";
|
|
25
25
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
26
26
|
}(), Ws = (
|
|
@@ -46,10 +46,10 @@ function F(e) {
|
|
|
46
46
|
throw It(), ye;
|
|
47
47
|
return E = e;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function ke() {
|
|
50
50
|
return F(/* @__PURE__ */ ue(E));
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function jt(e) {
|
|
53
53
|
if (g) {
|
|
54
54
|
if (/* @__PURE__ */ ue(E) !== null)
|
|
55
55
|
throw It(), ye;
|
|
@@ -175,7 +175,7 @@ function vi() {
|
|
|
175
175
|
return !0;
|
|
176
176
|
}
|
|
177
177
|
let Le = [];
|
|
178
|
-
function
|
|
178
|
+
function _i() {
|
|
179
179
|
var e = Le;
|
|
180
180
|
Le = [], ii(e);
|
|
181
181
|
}
|
|
@@ -183,32 +183,32 @@ function be(e) {
|
|
|
183
183
|
if (Le.length === 0 && !Et) {
|
|
184
184
|
var t = Le;
|
|
185
185
|
queueMicrotask(() => {
|
|
186
|
-
t === Le &&
|
|
186
|
+
t === Le && _i();
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
Le.push(e);
|
|
190
190
|
}
|
|
191
191
|
function ha() {
|
|
192
192
|
for (; Le.length > 0; )
|
|
193
|
-
|
|
193
|
+
_i();
|
|
194
194
|
}
|
|
195
195
|
const ca = -7169;
|
|
196
|
-
function
|
|
196
|
+
function C(e, t) {
|
|
197
197
|
e.f = e.f & ca | t;
|
|
198
198
|
}
|
|
199
199
|
function ln(e) {
|
|
200
|
-
e.f & ae || e.deps === null ?
|
|
200
|
+
e.f & ae || e.deps === null ? C(e, R) : C(e, Q);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
e.f &
|
|
202
|
+
function mi(e, t) {
|
|
203
|
+
e.f & B ? t.set(e, B) : e.f & Q && t.get(e) !== B && t.set(e, Q), C(e, R);
|
|
204
204
|
}
|
|
205
205
|
function Ct(e) {
|
|
206
|
-
var t =
|
|
207
|
-
te(null),
|
|
206
|
+
var t = x, r = y;
|
|
207
|
+
te(null), _e(null);
|
|
208
208
|
try {
|
|
209
209
|
return e();
|
|
210
210
|
} finally {
|
|
211
|
-
te(t),
|
|
211
|
+
te(t), _e(r);
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
function da(e, t, r, n) {
|
|
@@ -253,16 +253,16 @@ function pa() {
|
|
|
253
253
|
var e = (
|
|
254
254
|
/** @type {Effect} */
|
|
255
255
|
y
|
|
256
|
-
), t =
|
|
256
|
+
), t = x, r = X, n = (
|
|
257
257
|
/** @type {Batch} */
|
|
258
258
|
S
|
|
259
259
|
);
|
|
260
260
|
return function(s = !0) {
|
|
261
|
-
|
|
261
|
+
_e(e), te(t), tt(r), s && !(e.f & U) && (n?.activate(), n?.apply());
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
function er(e = !0) {
|
|
265
|
-
|
|
265
|
+
_e(null), te(null), tt(null), e && S?.deactivate();
|
|
266
266
|
}
|
|
267
267
|
function gi() {
|
|
268
268
|
var e = (
|
|
@@ -278,7 +278,7 @@ function gi() {
|
|
|
278
278
|
}
|
|
279
279
|
// @__NO_SIDE_EFFECTS__
|
|
280
280
|
function St(e) {
|
|
281
|
-
var t = G |
|
|
281
|
+
var t = G | B;
|
|
282
282
|
return y !== null && (y.f |= Xe), {
|
|
283
283
|
ctx: X,
|
|
284
284
|
deps: null,
|
|
@@ -297,7 +297,7 @@ function St(e) {
|
|
|
297
297
|
ac: null
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
const
|
|
300
|
+
const _t = Symbol("obsolete");
|
|
301
301
|
// @__NO_SIDE_EFFECTS__
|
|
302
302
|
function va(e, t, r) {
|
|
303
303
|
let n = (
|
|
@@ -309,10 +309,10 @@ function va(e, t, r) {
|
|
|
309
309
|
/** @type {Promise<V>} */
|
|
310
310
|
/** @type {unknown} */
|
|
311
311
|
void 0
|
|
312
|
-
), s =
|
|
312
|
+
), s = je(
|
|
313
313
|
/** @type {V} */
|
|
314
314
|
L
|
|
315
|
-
), a = !
|
|
315
|
+
), a = !x, o = /* @__PURE__ */ new Set();
|
|
316
316
|
return Aa(() => {
|
|
317
317
|
var u = (
|
|
318
318
|
/** @type {Effect} */
|
|
@@ -337,19 +337,19 @@ function va(e, t, r) {
|
|
|
337
337
|
// boundary can be null if the async derived is inside an $effect.root not connected to the component render tree
|
|
338
338
|
n.b?.is_rendered()
|
|
339
339
|
)
|
|
340
|
-
f.async_deriveds.get(u)?.reject(
|
|
340
|
+
f.async_deriveds.get(u)?.reject(_t);
|
|
341
341
|
else
|
|
342
342
|
for (const d of o.values())
|
|
343
|
-
d.reject(
|
|
343
|
+
d.reject(_t);
|
|
344
344
|
o.add(l), f.async_deriveds.set(u, l);
|
|
345
345
|
}
|
|
346
346
|
const c = (d, p = void 0) => {
|
|
347
|
-
h?.(), o.delete(l), p !==
|
|
347
|
+
h?.(), o.delete(l), p !== _t && (f.activate(), p ? (s.f |= Be, rt(s, p)) : (s.f & Be && (s.f ^= Be), rt(s, d)), f.deactivate());
|
|
348
348
|
};
|
|
349
349
|
l.promise.then(c, (d) => c(null, d || "unknown"));
|
|
350
350
|
}), pn(() => {
|
|
351
351
|
for (const u of o)
|
|
352
|
-
u.reject(
|
|
352
|
+
u.reject(_t);
|
|
353
353
|
}), new Promise((u) => {
|
|
354
354
|
function l(f) {
|
|
355
355
|
function h() {
|
|
@@ -370,7 +370,7 @@ function bi(e) {
|
|
|
370
370
|
const t = /* @__PURE__ */ St(e);
|
|
371
371
|
return t.equals = ci, t;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function _a(e) {
|
|
374
374
|
var t = e.effects;
|
|
375
375
|
if (t !== null) {
|
|
376
376
|
e.effects = null;
|
|
@@ -386,28 +386,28 @@ function fn(e) {
|
|
|
386
386
|
if (!Te && n !== null && e.v !== L && // if it was never evaluated before, it's guaranteed to fail downstream, so we try to execute instead
|
|
387
387
|
n.f & (U | V))
|
|
388
388
|
return Ys(), e.v;
|
|
389
|
-
|
|
389
|
+
_e(n);
|
|
390
390
|
try {
|
|
391
|
-
|
|
391
|
+
_a(e), t = ji(e);
|
|
392
392
|
} finally {
|
|
393
|
-
|
|
393
|
+
_e(r);
|
|
394
394
|
}
|
|
395
395
|
return t;
|
|
396
396
|
}
|
|
397
397
|
function Ei(e) {
|
|
398
398
|
var t = fn(e);
|
|
399
399
|
if (!e.equals(t) && (e.wv = Gi(), (!S?.is_fork || e.deps === null) && (S !== null ? (S.capture(e, t, !0), Je?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
400
|
-
|
|
400
|
+
C(e, R);
|
|
401
401
|
return;
|
|
402
402
|
}
|
|
403
403
|
Te || (ie !== null ? (fr() || S?.is_fork) && ie.set(e, t) : ln(e));
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function ma(e) {
|
|
406
406
|
if (e.effects !== null)
|
|
407
407
|
for (const t of e.effects)
|
|
408
408
|
(t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Ct(() => {
|
|
409
409
|
t.ac.abort(Bt), t.ac = null;
|
|
410
|
-
}), t.fn !== null && (t.teardown = Ee), At(t, 0),
|
|
410
|
+
}), t.fn !== null && (t.teardown = Ee), At(t, 0), _n(t));
|
|
411
411
|
}
|
|
412
412
|
function yi(e) {
|
|
413
413
|
if (e.effects !== null)
|
|
@@ -420,24 +420,24 @@ let ga = 1;
|
|
|
420
420
|
class we {
|
|
421
421
|
id = ga++;
|
|
422
422
|
/** True as soon as `#process` was called */
|
|
423
|
-
|
|
423
|
+
started = !1;
|
|
424
424
|
linked = !0;
|
|
425
425
|
/** @type {Batch | null} */
|
|
426
|
-
|
|
426
|
+
prev = null;
|
|
427
427
|
/** @type {Batch | null} */
|
|
428
|
-
|
|
428
|
+
next = null;
|
|
429
429
|
/** @type {Map<Effect, ReturnType<typeof deferred<any>>>} */
|
|
430
430
|
async_deriveds = /* @__PURE__ */ new Map();
|
|
431
431
|
/**
|
|
432
432
|
* The current values of any signals that are updated in this batch.
|
|
433
433
|
* Tuple format: [value, is_derived] (note: is_derived is false for deriveds, too, if they were overridden via assignment)
|
|
434
|
-
*
|
|
434
|
+
* The keys of this map are identical to `this.previous`
|
|
435
435
|
* @type {Map<Value, [any, boolean]>}
|
|
436
436
|
*/
|
|
437
437
|
current = /* @__PURE__ */ new Map();
|
|
438
438
|
/**
|
|
439
439
|
* The values of any signals (sources and deriveds) that are updated in this batch _before_ those updates took place.
|
|
440
|
-
*
|
|
440
|
+
* The keys of this map are identical to `this.current`
|
|
441
441
|
* @type {Map<Value, any>}
|
|
442
442
|
*/
|
|
443
443
|
previous = /* @__PURE__ */ new Map();
|
|
@@ -446,27 +446,27 @@ class we {
|
|
|
446
446
|
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
447
447
|
* @type {Set<(batch: Batch) => void>}
|
|
448
448
|
*/
|
|
449
|
-
#
|
|
449
|
+
#e = /* @__PURE__ */ new Set();
|
|
450
450
|
/**
|
|
451
451
|
* If a fork is discarded, we need to destroy any effects that are no longer needed
|
|
452
452
|
* @type {Set<(batch: Batch) => void>}
|
|
453
453
|
*/
|
|
454
|
-
#
|
|
454
|
+
#t = /* @__PURE__ */ new Set();
|
|
455
455
|
/**
|
|
456
456
|
* The number of async effects that are currently in flight
|
|
457
457
|
*/
|
|
458
|
-
#
|
|
458
|
+
#r = 0;
|
|
459
459
|
/**
|
|
460
460
|
* Async effects that are currently in flight, _not_ inside a pending boundary
|
|
461
461
|
* @type {Map<Effect, number>}
|
|
462
462
|
*/
|
|
463
|
-
#
|
|
463
|
+
#o = /* @__PURE__ */ new Map();
|
|
464
464
|
/**
|
|
465
465
|
* A deferred that resolves when the batch is committed, used with `settled()`
|
|
466
466
|
* TODO replace with Promise.withResolvers once supported widely enough
|
|
467
467
|
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
468
468
|
*/
|
|
469
|
-
#
|
|
469
|
+
#n = null;
|
|
470
470
|
/**
|
|
471
471
|
* Effects that were scheduled in this batch but not yet 'resolved' into the
|
|
472
472
|
* root effects that need to be flushed. Resolving — the upwards traversal that
|
|
@@ -478,22 +478,17 @@ class we {
|
|
|
478
478
|
* May contain duplicates — deduplication happens during resolving
|
|
479
479
|
* @type {Effect[]}
|
|
480
480
|
*/
|
|
481
|
-
#
|
|
481
|
+
#i = [];
|
|
482
482
|
/**
|
|
483
483
|
* Effects created while this batch was active.
|
|
484
484
|
* @type {Effect[]}
|
|
485
485
|
*/
|
|
486
|
-
#
|
|
487
|
-
/**
|
|
488
|
-
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
489
|
-
* @type {Set<Effect>}
|
|
490
|
-
*/
|
|
491
|
-
#l = /* @__PURE__ */ new Set();
|
|
486
|
+
#a = [];
|
|
492
487
|
/**
|
|
493
|
-
* Deferred effects
|
|
494
|
-
* @type {
|
|
488
|
+
* Deferred effects (which run after async work has completed) and their status (DIRTY or MAYBE_DIRTY)
|
|
489
|
+
* @type {Map<Effect, number>}
|
|
495
490
|
*/
|
|
496
|
-
#
|
|
491
|
+
#s = /* @__PURE__ */ new Map();
|
|
497
492
|
/**
|
|
498
493
|
* A map of branches that still exist, but will be destroyed when this batch
|
|
499
494
|
* is committed — we skip over these during `process`.
|
|
@@ -501,30 +496,34 @@ class we {
|
|
|
501
496
|
* so they can be rescheduled if the branch survives.
|
|
502
497
|
* @type {Map<Effect, { d: Effect[], m: Effect[] }>}
|
|
503
498
|
*/
|
|
504
|
-
#
|
|
499
|
+
#u = /* @__PURE__ */ new Map();
|
|
505
500
|
/**
|
|
506
501
|
* Inverse of #skipped_branches which we need to tell prior batches to unskip them when committing
|
|
507
502
|
* @type {Set<Effect>}
|
|
508
503
|
*/
|
|
509
|
-
#
|
|
504
|
+
#d = /* @__PURE__ */ new Set();
|
|
510
505
|
is_fork = !1;
|
|
511
|
-
#
|
|
506
|
+
#l = !1;
|
|
512
507
|
constructor() {
|
|
513
|
-
ze === null ? Er = ze = this : (ze
|
|
508
|
+
ze === null ? Er = ze = this : (ze.next = this, this.prev = ze), ze = this;
|
|
514
509
|
}
|
|
515
|
-
#
|
|
510
|
+
#v() {
|
|
516
511
|
if (this.is_fork) return !0;
|
|
517
|
-
for (const
|
|
518
|
-
|
|
519
|
-
if (this.#c.has(t)) {
|
|
520
|
-
r = !0;
|
|
521
|
-
break;
|
|
522
|
-
}
|
|
523
|
-
t = t.parent;
|
|
524
|
-
}
|
|
525
|
-
if (!r)
|
|
512
|
+
for (const t of this.#o.keys())
|
|
513
|
+
if (!this.#m(t))
|
|
526
514
|
return !0;
|
|
527
|
-
|
|
515
|
+
return !1;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Whether `effect` is inside a branch that this batch skips
|
|
519
|
+
* @param {Effect} effect
|
|
520
|
+
*/
|
|
521
|
+
#m(t) {
|
|
522
|
+
for (var r = (
|
|
523
|
+
/** @type {Effect | null} */
|
|
524
|
+
t
|
|
525
|
+
); r !== null; r = r.parent)
|
|
526
|
+
if (this.#u.has(r)) return !0;
|
|
528
527
|
return !1;
|
|
529
528
|
}
|
|
530
529
|
/**
|
|
@@ -532,7 +531,7 @@ class we {
|
|
|
532
531
|
* @param {Effect} effect
|
|
533
532
|
*/
|
|
534
533
|
skip_effect(t) {
|
|
535
|
-
this.#
|
|
534
|
+
this.#u.has(t) || this.#u.set(t, { d: [], m: [] }), this.#d.delete(t);
|
|
536
535
|
}
|
|
537
536
|
/**
|
|
538
537
|
* Remove an effect from the #skipped_branches map and reschedule
|
|
@@ -541,15 +540,15 @@ class we {
|
|
|
541
540
|
* @param {(e: Effect) => void} callback
|
|
542
541
|
*/
|
|
543
542
|
unskip_effect(t, r = (n) => this.schedule(n)) {
|
|
544
|
-
var n = this.#
|
|
543
|
+
var n = this.#u.get(t);
|
|
545
544
|
if (n) {
|
|
546
|
-
this.#
|
|
545
|
+
this.#u.delete(t);
|
|
547
546
|
for (var i of n.d)
|
|
548
|
-
|
|
547
|
+
C(i, B), r(i);
|
|
549
548
|
for (i of n.m)
|
|
550
|
-
|
|
549
|
+
C(i, Q), r(i);
|
|
551
550
|
}
|
|
552
|
-
this.#
|
|
551
|
+
this.#d.add(t);
|
|
553
552
|
}
|
|
554
553
|
/**
|
|
555
554
|
* Convert the effects that were scheduled in this batch into the root effects
|
|
@@ -560,10 +559,10 @@ class we {
|
|
|
560
559
|
* a single traversal — scheduling into other batches can never observe them
|
|
561
560
|
* @returns {Effect[]}
|
|
562
561
|
*/
|
|
563
|
-
#
|
|
562
|
+
#f() {
|
|
564
563
|
var t = [];
|
|
565
|
-
for (const s of this.#
|
|
566
|
-
if (!(s.f & U || !(s.f & (
|
|
564
|
+
for (const s of this.#i)
|
|
565
|
+
if (!(s.f & U || !(s.f & (B | Q)))) {
|
|
567
566
|
for (var r = s, n = !1; r.parent !== null; ) {
|
|
568
567
|
r = r.parent;
|
|
569
568
|
var i = r.f;
|
|
@@ -577,22 +576,20 @@ class we {
|
|
|
577
576
|
}
|
|
578
577
|
n || t.push(r);
|
|
579
578
|
}
|
|
580
|
-
return this.#
|
|
579
|
+
return this.#i = [], t;
|
|
581
580
|
}
|
|
582
|
-
#
|
|
583
|
-
this
|
|
584
|
-
for (const o of this.#
|
|
585
|
-
|
|
586
|
-
for (const o of this.#f)
|
|
587
|
-
I(o, ee), this.schedule(o);
|
|
581
|
+
#_() {
|
|
582
|
+
this.started = !0;
|
|
583
|
+
for (const [o, u] of this.#s)
|
|
584
|
+
C(o, u), this.schedule(o);
|
|
588
585
|
this.apply();
|
|
589
|
-
for (var t = yt = [], r = [], n = Vt = []; this.#
|
|
590
|
-
An++ > 1e3 && (this.#
|
|
591
|
-
for (const o of this.#
|
|
586
|
+
for (var t = yt = [], r = [], n = Vt = []; this.#i.length > 0; ) {
|
|
587
|
+
An++ > 1e3 && (this.#c(), ba());
|
|
588
|
+
for (const o of this.#f())
|
|
592
589
|
try {
|
|
593
|
-
this.#
|
|
590
|
+
this.#g(o, t, r);
|
|
594
591
|
} catch (u) {
|
|
595
|
-
throw Ti(o), this.#
|
|
592
|
+
throw Ti(o), this.#v() || this.discard(), u;
|
|
596
593
|
}
|
|
597
594
|
}
|
|
598
595
|
if (S = null, n.length > 0) {
|
|
@@ -600,35 +597,28 @@ class we {
|
|
|
600
597
|
for (const o of n)
|
|
601
598
|
i.schedule(o);
|
|
602
599
|
}
|
|
603
|
-
if (yt = null, Vt = null, this.#
|
|
600
|
+
if (yt = null, Vt = null, this.#v()) {
|
|
604
601
|
this.#p(r), this.#p(t);
|
|
605
|
-
for (const [o, u] of this.#
|
|
602
|
+
for (const [o, u] of this.#u)
|
|
606
603
|
wi(o, u);
|
|
607
604
|
n.length > 0 && /** @type {unknown} */
|
|
608
|
-
S.#
|
|
605
|
+
S.#_();
|
|
609
606
|
return;
|
|
610
607
|
}
|
|
611
|
-
const s = this.#
|
|
608
|
+
const s = this.#E();
|
|
612
609
|
if (s) {
|
|
613
|
-
this.#p(r), this.#p(t), s.#
|
|
610
|
+
this.#p(r), this.#p(t), s.#h(this);
|
|
614
611
|
return;
|
|
615
612
|
}
|
|
616
|
-
this.#
|
|
617
|
-
for (const o of this.#
|
|
618
|
-
this.#
|
|
613
|
+
this.#s.clear();
|
|
614
|
+
for (const o of this.#e) o(this);
|
|
615
|
+
this.#e.clear(), Je = this, Hn(r), Hn(t), Je = null, this.#n?.resolve();
|
|
619
616
|
var a = (
|
|
620
617
|
/** @type {Batch | null} */
|
|
621
618
|
/** @type {unknown} */
|
|
622
619
|
S
|
|
623
620
|
);
|
|
624
|
-
|
|
625
|
-
if (a !== null) {
|
|
626
|
-
for (const o of this.#s)
|
|
627
|
-
a.#s.push(o);
|
|
628
|
-
this.#s = [];
|
|
629
|
-
} else
|
|
630
|
-
a = this;
|
|
631
|
-
a !== null && (pe.clear(), a.#g());
|
|
621
|
+
this.#r === 0 && (this.#i.length === 0 || a !== null) && this.#c(), a !== null && (pe.clear(), a.#_());
|
|
632
622
|
}
|
|
633
623
|
/**
|
|
634
624
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -637,12 +627,12 @@ class we {
|
|
|
637
627
|
* @param {Effect[]} effects
|
|
638
628
|
* @param {Effect[]} render_effects
|
|
639
629
|
*/
|
|
640
|
-
#
|
|
630
|
+
#g(t, r, n) {
|
|
641
631
|
t.f ^= R;
|
|
642
632
|
for (var i = t.first; i !== null; ) {
|
|
643
|
-
var s = i.f, a = (s & (oe | xe)) !== 0, o = a && (s & R) !== 0, u = o || (s & V) !== 0 || this.#
|
|
633
|
+
var s = i.f, a = (s & (oe | xe)) !== 0, o = a && (s & R) !== 0, u = o || (s & V) !== 0 || this.#u.has(i);
|
|
644
634
|
if (!u && i.fn !== null) {
|
|
645
|
-
a ? i.f ^= R : s & et ? r.push(i) : Lt(i) && (s & ne && this
|
|
635
|
+
a ? i.f ^= R : s & et ? r.push(i) : Lt(i) && (s & ne && this.add_dirty_reaction(i, Q), nt(i));
|
|
646
636
|
var l = i.first;
|
|
647
637
|
if (l !== null) {
|
|
648
638
|
i = l;
|
|
@@ -659,31 +649,32 @@ class we {
|
|
|
659
649
|
}
|
|
660
650
|
}
|
|
661
651
|
}
|
|
662
|
-
#
|
|
663
|
-
for (var t = this
|
|
664
|
-
if (!t.is_fork)
|
|
665
|
-
for (const [r, [, n]] of this.current)
|
|
666
|
-
if (t.current.has(r) && !n)
|
|
667
|
-
return t;
|
|
668
|
-
}
|
|
669
|
-
t = t.#t;
|
|
670
|
-
}
|
|
652
|
+
#E() {
|
|
653
|
+
for (var t = this.prev; t !== null; t = t.prev)
|
|
654
|
+
if (!t.is_fork && this.#b(t)) return t;
|
|
671
655
|
return null;
|
|
672
656
|
}
|
|
657
|
+
/** @param {Batch} batch */
|
|
658
|
+
#b(t) {
|
|
659
|
+
for (const [r, [, n]] of this.current)
|
|
660
|
+
if (!n && t.current.has(r))
|
|
661
|
+
return !0;
|
|
662
|
+
return !1;
|
|
663
|
+
}
|
|
673
664
|
/**
|
|
674
665
|
* @param {Batch} batch
|
|
675
666
|
*/
|
|
676
|
-
#
|
|
667
|
+
#h(t) {
|
|
677
668
|
for (const [n, i] of t.current)
|
|
678
669
|
!this.previous.has(n) && t.previous.has(n) && this.previous.set(n, t.previous.get(n)), this.current.set(n, i);
|
|
679
670
|
for (const [n, i] of t.async_deriveds) {
|
|
680
671
|
const s = this.async_deriveds.get(n);
|
|
681
672
|
s && i.promise.then(s.resolve).catch(s.reject);
|
|
682
673
|
}
|
|
683
|
-
t.async_deriveds.clear(), this.
|
|
674
|
+
t.async_deriveds.clear(), this.transfer_reactions(t.#s);
|
|
684
675
|
const r = (n) => {
|
|
685
676
|
var i = n.reactions;
|
|
686
|
-
if (i !== null && !(n.f & G && !(n.f & (
|
|
677
|
+
if (i !== null && !(n.f & G && !(n.f & (B | Q))))
|
|
687
678
|
for (const o of i) {
|
|
688
679
|
var s = o.f;
|
|
689
680
|
if (s & G)
|
|
@@ -696,20 +687,20 @@ class we {
|
|
|
696
687
|
/** @type {Effect} */
|
|
697
688
|
o
|
|
698
689
|
);
|
|
699
|
-
s & (Qe | ne) && !this.async_deriveds.has(a) && (this.#
|
|
690
|
+
s & (Qe | ne) && !this.async_deriveds.has(a) && (this.#s.delete(a), C(a, B), this.schedule(a));
|
|
700
691
|
}
|
|
701
692
|
}
|
|
702
693
|
};
|
|
703
694
|
for (const n of this.current.keys())
|
|
704
695
|
r(n);
|
|
705
|
-
this.oncommit(() => t.discard()), t.#
|
|
696
|
+
this.oncommit(() => t.discard()), t.#c(), S = this, this.#_();
|
|
706
697
|
}
|
|
707
698
|
/**
|
|
708
699
|
* @param {Effect[]} effects
|
|
709
700
|
*/
|
|
710
701
|
#p(t) {
|
|
711
702
|
for (var r = 0; r < t.length; r += 1)
|
|
712
|
-
|
|
703
|
+
mi(t[r], this.#s);
|
|
713
704
|
}
|
|
714
705
|
/**
|
|
715
706
|
* Associate a change to a given source with the current
|
|
@@ -729,26 +720,26 @@ class we {
|
|
|
729
720
|
}
|
|
730
721
|
flush() {
|
|
731
722
|
try {
|
|
732
|
-
yr = !0, S = this, this.#
|
|
723
|
+
yr = !0, S = this, this.#_();
|
|
733
724
|
} finally {
|
|
734
725
|
An = 0, $r = null, yt = null, Vt = null, yr = !1, S = null, ie = null, pe.clear();
|
|
735
726
|
}
|
|
736
727
|
}
|
|
737
728
|
discard() {
|
|
738
|
-
for (const t of this.#
|
|
739
|
-
this.#
|
|
729
|
+
for (const t of this.#t) t(this);
|
|
730
|
+
this.#t.clear();
|
|
740
731
|
for (const t of this.async_deriveds.values())
|
|
741
|
-
t.reject(
|
|
742
|
-
this.#
|
|
732
|
+
t.reject(_t);
|
|
733
|
+
this.#c(), this.#n?.resolve();
|
|
743
734
|
}
|
|
744
735
|
/**
|
|
745
736
|
* @param {Effect} effect
|
|
746
737
|
*/
|
|
747
738
|
register_created_effect(t) {
|
|
748
|
-
this.#
|
|
739
|
+
this.#a.push(t);
|
|
749
740
|
}
|
|
750
|
-
#
|
|
751
|
-
for (let h = Er; h !== null; h = h
|
|
741
|
+
#y() {
|
|
742
|
+
for (let h = Er; h !== null; h = h.next) {
|
|
752
743
|
var t = h.id < this.id, r = [];
|
|
753
744
|
for (const [c, [d, p]] of this.current) {
|
|
754
745
|
if (h.current.has(c)) {
|
|
@@ -772,13 +763,13 @@ class we {
|
|
|
772
763
|
(c) => !/** @type {[any, boolean]} */
|
|
773
764
|
h.current.get(c)[1]
|
|
774
765
|
);
|
|
775
|
-
if (!(!h
|
|
766
|
+
if (!(!h.started || i.length === 0)) {
|
|
776
767
|
var s = i.filter((c) => !this.current.has(c));
|
|
777
768
|
if (s.length === 0)
|
|
778
769
|
t && h.discard();
|
|
779
770
|
else if (r.length > 0) {
|
|
780
771
|
if (t)
|
|
781
|
-
for (const c of this.#
|
|
772
|
+
for (const c of this.#d)
|
|
782
773
|
h.unskip_effect(c, (d) => {
|
|
783
774
|
d.f & (ne | Qe) ? h.schedule(d) : h.#p([d]);
|
|
784
775
|
});
|
|
@@ -792,12 +783,12 @@ class we {
|
|
|
792
783
|
return p ? p[0] !== d[0] || p[1] !== d[1] : !0;
|
|
793
784
|
}).map(([c]) => c);
|
|
794
785
|
if (l.length > 0)
|
|
795
|
-
for (const c of this.#
|
|
796
|
-
!(c.f & (U | V | Qt)) && hn(c, l, o) && (c.f & (Qe | ne) ? (
|
|
797
|
-
if (h.#
|
|
786
|
+
for (const c of this.#a)
|
|
787
|
+
!(c.f & (U | V | Qt)) && hn(c, l, o) && (c.f & (Qe | ne) ? (C(c, B), h.schedule(c)) : h.add_dirty_reaction(c, B));
|
|
788
|
+
if (h.#i.length > 0 && !h.#l) {
|
|
798
789
|
h.apply();
|
|
799
|
-
for (var f of h.#
|
|
800
|
-
h.#
|
|
790
|
+
for (var f of h.#f())
|
|
791
|
+
h.#g(f, [], []);
|
|
801
792
|
}
|
|
802
793
|
h.deactivate();
|
|
803
794
|
}
|
|
@@ -809,9 +800,9 @@ class we {
|
|
|
809
800
|
* @param {Effect} effect
|
|
810
801
|
*/
|
|
811
802
|
increment(t, r) {
|
|
812
|
-
if (this.#
|
|
813
|
-
let n = this.#
|
|
814
|
-
this.#
|
|
803
|
+
if (this.#r += 1, t) {
|
|
804
|
+
let n = this.#o.get(r) ?? 0;
|
|
805
|
+
this.#o.set(r, n + 1);
|
|
815
806
|
}
|
|
816
807
|
}
|
|
817
808
|
/**
|
|
@@ -819,41 +810,45 @@ class we {
|
|
|
819
810
|
* @param {Effect} effect
|
|
820
811
|
*/
|
|
821
812
|
decrement(t, r) {
|
|
822
|
-
if (this.#
|
|
823
|
-
let n = this.#
|
|
824
|
-
n === 1 ? this.#
|
|
813
|
+
if (this.#r -= 1, t) {
|
|
814
|
+
let n = this.#o.get(r) ?? 0;
|
|
815
|
+
n === 1 ? this.#o.delete(r) : this.#o.set(r, n - 1);
|
|
825
816
|
}
|
|
826
|
-
this.#
|
|
827
|
-
this.#
|
|
817
|
+
this.#l || (this.#l = !0, be(() => {
|
|
818
|
+
this.#l = !1, this.linked && this.flush();
|
|
828
819
|
}));
|
|
829
820
|
}
|
|
830
821
|
/**
|
|
831
|
-
* @param {
|
|
832
|
-
* @param {Set<Effect>} maybe_dirty_effects
|
|
822
|
+
* @param {Map<Effect, number>} dirty_reactions
|
|
833
823
|
*/
|
|
834
|
-
|
|
835
|
-
for (const n of t)
|
|
836
|
-
this
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
824
|
+
transfer_reactions(t) {
|
|
825
|
+
for (const [r, n] of t)
|
|
826
|
+
this.add_dirty_reaction(r, n);
|
|
827
|
+
t.clear();
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* @param {Effect} effect
|
|
831
|
+
* @param {number} status
|
|
832
|
+
*/
|
|
833
|
+
add_dirty_reaction(t, r) {
|
|
834
|
+
(r === B || this.#s.get(t) !== B) && this.#s.set(t, r);
|
|
840
835
|
}
|
|
841
836
|
/** @param {(batch: Batch) => void} fn */
|
|
842
837
|
oncommit(t) {
|
|
843
|
-
this.#
|
|
838
|
+
this.#e.add(t);
|
|
844
839
|
}
|
|
845
840
|
/** @param {(batch: Batch) => void} fn */
|
|
846
841
|
ondiscard(t) {
|
|
847
|
-
this.#
|
|
842
|
+
this.#t.add(t);
|
|
848
843
|
}
|
|
849
844
|
settled() {
|
|
850
|
-
return (this.#
|
|
845
|
+
return (this.#n ??= si()).promise;
|
|
851
846
|
}
|
|
852
847
|
static ensure() {
|
|
853
848
|
if (S === null) {
|
|
854
849
|
const t = S = new we();
|
|
855
850
|
!yr && !Et && be(() => {
|
|
856
|
-
t
|
|
851
|
+
t.started || t.flush();
|
|
857
852
|
});
|
|
858
853
|
}
|
|
859
854
|
return S;
|
|
@@ -873,12 +868,12 @@ class we {
|
|
|
873
868
|
t.b.defer_effect(t);
|
|
874
869
|
return;
|
|
875
870
|
}
|
|
876
|
-
this.#
|
|
871
|
+
this.#i.push(t);
|
|
877
872
|
}
|
|
878
|
-
#
|
|
873
|
+
#c() {
|
|
879
874
|
if (this.linked) {
|
|
880
|
-
var t = this
|
|
881
|
-
t === null ? Er = r : t
|
|
875
|
+
var t = this.prev, r = this.next;
|
|
876
|
+
t === null ? Er = r : t.next = r, r === null ? ze = t : r.prev = t, this.linked = !1;
|
|
882
877
|
}
|
|
883
878
|
}
|
|
884
879
|
}
|
|
@@ -905,29 +900,29 @@ function ba() {
|
|
|
905
900
|
he(e, $r);
|
|
906
901
|
}
|
|
907
902
|
}
|
|
908
|
-
let
|
|
903
|
+
let me = null;
|
|
909
904
|
function Hn(e) {
|
|
910
905
|
var t = e.length;
|
|
911
906
|
if (t !== 0) {
|
|
912
907
|
for (var r = 0; r < t; ) {
|
|
913
908
|
var n = e[r++];
|
|
914
|
-
if (!(n.f & (U | V)) && Lt(n) && (
|
|
909
|
+
if (!(n.f & (U | V)) && Lt(n) && (me = /* @__PURE__ */ new Set(), nt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Ri(n), me?.size > 0)) {
|
|
915
910
|
pe.clear();
|
|
916
|
-
for (const i of
|
|
911
|
+
for (const i of me) {
|
|
917
912
|
if (i.f & (U | V)) continue;
|
|
918
913
|
const s = [i];
|
|
919
914
|
let a = i.parent;
|
|
920
915
|
for (; a !== null; )
|
|
921
|
-
|
|
916
|
+
me.has(a) && (me.delete(a), s.push(a)), a = a.parent;
|
|
922
917
|
for (let o = s.length - 1; o >= 0; o--) {
|
|
923
918
|
const u = s[o];
|
|
924
919
|
u.f & (U | V) || nt(u);
|
|
925
920
|
}
|
|
926
921
|
}
|
|
927
|
-
|
|
922
|
+
me.clear();
|
|
928
923
|
}
|
|
929
924
|
}
|
|
930
|
-
|
|
925
|
+
me = null;
|
|
931
926
|
}
|
|
932
927
|
}
|
|
933
928
|
function xi(e, t, r, n) {
|
|
@@ -940,7 +935,7 @@ function xi(e, t, r, n) {
|
|
|
940
935
|
t,
|
|
941
936
|
r,
|
|
942
937
|
n
|
|
943
|
-
) : s & (Qe | ne) && !(s &
|
|
938
|
+
) : s & (Qe | ne) && !(s & B) && hn(i, t, n) && (C(i, B), cn(
|
|
944
939
|
/** @type {Effect} */
|
|
945
940
|
i
|
|
946
941
|
));
|
|
@@ -972,23 +967,22 @@ function cn(e) {
|
|
|
972
967
|
}
|
|
973
968
|
function wi(e, t) {
|
|
974
969
|
if (!(e.f & oe && e.f & R)) {
|
|
975
|
-
e.f &
|
|
970
|
+
e.f & B ? t.d.push(e) : e.f & Q && t.m.push(e), C(e, R);
|
|
976
971
|
for (var r = e.first; r !== null; )
|
|
977
972
|
wi(r, t), r = r.next;
|
|
978
973
|
}
|
|
979
974
|
}
|
|
980
975
|
function Ti(e) {
|
|
981
|
-
|
|
976
|
+
C(e, R);
|
|
982
977
|
for (var t = e.first; t !== null; )
|
|
983
978
|
Ti(t), t = t.next;
|
|
984
979
|
}
|
|
985
980
|
let tr = /* @__PURE__ */ new Set();
|
|
986
981
|
const pe = /* @__PURE__ */ new Map();
|
|
987
982
|
let Si = !1;
|
|
988
|
-
function
|
|
983
|
+
function je(e, t) {
|
|
989
984
|
var r = {
|
|
990
985
|
f: 0,
|
|
991
|
-
// TODO ideally we could skip this altogether, but it causes type errors
|
|
992
986
|
v: e,
|
|
993
987
|
reactions: null,
|
|
994
988
|
equals: hi,
|
|
@@ -999,18 +993,18 @@ function ke(e, t) {
|
|
|
999
993
|
}
|
|
1000
994
|
// @__NO_SIDE_EFFECTS__
|
|
1001
995
|
function Ae(e, t) {
|
|
1002
|
-
const r =
|
|
996
|
+
const r = je(e);
|
|
1003
997
|
return Ui(r), r;
|
|
1004
998
|
}
|
|
1005
999
|
// @__NO_SIDE_EFFECTS__
|
|
1006
1000
|
function dn(e, t = !1, r = !0) {
|
|
1007
|
-
const n =
|
|
1001
|
+
const n = je(e);
|
|
1008
1002
|
return t || (n.equals = ci), n;
|
|
1009
1003
|
}
|
|
1010
1004
|
function fe(e, t, r = !1) {
|
|
1011
|
-
|
|
1005
|
+
x !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1012
1006
|
// to ensure we error if state is set inside an inspect effect
|
|
1013
|
-
(!se ||
|
|
1007
|
+
(!se || x.f & Qt) && vi() && x.f & (G | ne | Qe | Qt) && (ve === null || !ve.has(e)) && ua();
|
|
1014
1008
|
let n = r ? Ze(t) : t;
|
|
1015
1009
|
return rt(e, n, Vt);
|
|
1016
1010
|
}
|
|
@@ -1024,16 +1018,16 @@ function rt(e, t, r = null) {
|
|
|
1024
1018
|
/** @type {Derived} */
|
|
1025
1019
|
e
|
|
1026
1020
|
);
|
|
1027
|
-
e.f &
|
|
1021
|
+
e.f & B && fn(i), ie === null && ln(i);
|
|
1028
1022
|
}
|
|
1029
|
-
e.wv = Gi(), Me = null, Dr = 0, Ai(e,
|
|
1023
|
+
e.wv = Gi(), Me = null, Dr = 0, Ai(e, B, r), Me = null, y !== null && y.f & R && !(y.f & (oe | xe)) && (K === null ? Na([e]) : K.push(e)), !n.is_fork && tr.size > 0 && !Si && Ea();
|
|
1030
1024
|
}
|
|
1031
1025
|
return t;
|
|
1032
1026
|
}
|
|
1033
1027
|
function Ea() {
|
|
1034
1028
|
Si = !1;
|
|
1035
1029
|
for (const e of tr) {
|
|
1036
|
-
e.f & R &&
|
|
1030
|
+
e.f & R && C(e, Q);
|
|
1037
1031
|
let t;
|
|
1038
1032
|
try {
|
|
1039
1033
|
t = Lt(e);
|
|
@@ -1056,8 +1050,8 @@ function Ai(e, t, r) {
|
|
|
1056
1050
|
Me.add(e);
|
|
1057
1051
|
}
|
|
1058
1052
|
for (var s = 0; s < i; s++) {
|
|
1059
|
-
var a = n[s], o = a.f, u = (o &
|
|
1060
|
-
if (u &&
|
|
1053
|
+
var a = n[s], o = a.f, u = (o & B) === 0;
|
|
1054
|
+
if (u && C(a, t), o & Qt)
|
|
1061
1055
|
tr.add(
|
|
1062
1056
|
/** @type {Effect} */
|
|
1063
1057
|
a
|
|
@@ -1067,13 +1061,13 @@ function Ai(e, t, r) {
|
|
|
1067
1061
|
/** @type {Derived} */
|
|
1068
1062
|
a
|
|
1069
1063
|
);
|
|
1070
|
-
ie?.delete(l), Ai(l,
|
|
1064
|
+
ie?.delete(l), Ai(l, Q, r);
|
|
1071
1065
|
} else if (u) {
|
|
1072
1066
|
var f = (
|
|
1073
1067
|
/** @type {Effect} */
|
|
1074
1068
|
a
|
|
1075
1069
|
);
|
|
1076
|
-
o & ne &&
|
|
1070
|
+
o & ne && me !== null && me.add(f), r !== null ? r.push(f) : cn(f);
|
|
1077
1071
|
}
|
|
1078
1072
|
}
|
|
1079
1073
|
}
|
|
@@ -1087,7 +1081,7 @@ function Ze(e) {
|
|
|
1087
1081
|
var r = /* @__PURE__ */ new Map(), n = ri(e), i = /* @__PURE__ */ Ae(0), s = Fe, a = (o) => {
|
|
1088
1082
|
if (Fe === s)
|
|
1089
1083
|
return o();
|
|
1090
|
-
var u =
|
|
1084
|
+
var u = x, l = Fe;
|
|
1091
1085
|
te(null), Bn(s);
|
|
1092
1086
|
var f = o();
|
|
1093
1087
|
return te(u), Bn(l), f;
|
|
@@ -1154,7 +1148,7 @@ function Ze(e) {
|
|
|
1154
1148
|
if (u === De)
|
|
1155
1149
|
return !0;
|
|
1156
1150
|
var l = r.get(u), f = l !== void 0 && l.v !== L || Reflect.has(o, u);
|
|
1157
|
-
if (l !== void 0 || y !== null && (!f || $e(o, u)?.writable)) {
|
|
1151
|
+
if (l !== void 0 || (y !== null || x !== null) && (!f || $e(o, u)?.writable)) {
|
|
1158
1152
|
l === void 0 && (l = a(() => {
|
|
1159
1153
|
var c = f ? Ze(o[u]) : L, d = /* @__PURE__ */ Ae(c);
|
|
1160
1154
|
return d;
|
|
@@ -1177,17 +1171,17 @@ function Ze(e) {
|
|
|
1177
1171
|
(!c || $e(o, u)?.writable) && (h = a(() => /* @__PURE__ */ Ae(void 0)), fe(h, Ze(l)), r.set(u, h));
|
|
1178
1172
|
else {
|
|
1179
1173
|
c = h.v !== L;
|
|
1180
|
-
var
|
|
1181
|
-
fe(h,
|
|
1174
|
+
var _ = a(() => Ze(l));
|
|
1175
|
+
fe(h, _);
|
|
1182
1176
|
}
|
|
1183
1177
|
var v = Reflect.getOwnPropertyDescriptor(o, u);
|
|
1184
1178
|
if (v?.set && v.set.call(f, l), !c) {
|
|
1185
1179
|
if (n && typeof u == "string") {
|
|
1186
|
-
var
|
|
1180
|
+
var m = (
|
|
1187
1181
|
/** @type {Source<number>} */
|
|
1188
1182
|
r.get("length")
|
|
1189
1183
|
), b = Number(u);
|
|
1190
|
-
Number.isInteger(b) && b >=
|
|
1184
|
+
Number.isInteger(b) && b >= m.v && fe(m, b + 1);
|
|
1191
1185
|
}
|
|
1192
1186
|
xt(i);
|
|
1193
1187
|
}
|
|
@@ -1221,7 +1215,7 @@ function Y(e = "") {
|
|
|
1221
1215
|
return document.createTextNode(e);
|
|
1222
1216
|
}
|
|
1223
1217
|
// @__NO_SIDE_EFFECTS__
|
|
1224
|
-
function
|
|
1218
|
+
function j(e) {
|
|
1225
1219
|
return (
|
|
1226
1220
|
/** @type {TemplateNode | null} */
|
|
1227
1221
|
Ni.call(e)
|
|
@@ -1236,8 +1230,8 @@ function ue(e) {
|
|
|
1236
1230
|
}
|
|
1237
1231
|
function Xt(e, t) {
|
|
1238
1232
|
if (!g)
|
|
1239
|
-
return /* @__PURE__ */
|
|
1240
|
-
var r = /* @__PURE__ */
|
|
1233
|
+
return /* @__PURE__ */ j(e);
|
|
1234
|
+
var r = /* @__PURE__ */ j(E);
|
|
1241
1235
|
if (r === null)
|
|
1242
1236
|
r = E.appendChild(Y());
|
|
1243
1237
|
else if (t && r.nodeType !== Pt) {
|
|
@@ -1251,7 +1245,7 @@ function Xt(e, t) {
|
|
|
1251
1245
|
}
|
|
1252
1246
|
function ya(e, t = !1) {
|
|
1253
1247
|
if (!g) {
|
|
1254
|
-
var r = /* @__PURE__ */
|
|
1248
|
+
var r = /* @__PURE__ */ j(e);
|
|
1255
1249
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ ue(r) : r;
|
|
1256
1250
|
}
|
|
1257
1251
|
if (t) {
|
|
@@ -1268,9 +1262,9 @@ function ya(e, t = !1) {
|
|
|
1268
1262
|
}
|
|
1269
1263
|
function Dt(e, t = !1) {
|
|
1270
1264
|
if (!g)
|
|
1271
|
-
return /* @__PURE__ */
|
|
1265
|
+
return /* @__PURE__ */ j(e);
|
|
1272
1266
|
var r = Xt(e, t);
|
|
1273
|
-
return
|
|
1267
|
+
return jt(e), r;
|
|
1274
1268
|
}
|
|
1275
1269
|
function dt(e, t = 1, r = !1) {
|
|
1276
1270
|
let n = g ? E : e;
|
|
@@ -1320,7 +1314,7 @@ function lr(e) {
|
|
|
1320
1314
|
function xa(e) {
|
|
1321
1315
|
var t = y;
|
|
1322
1316
|
if (t === null)
|
|
1323
|
-
return
|
|
1317
|
+
return x.f |= Be, e;
|
|
1324
1318
|
if (!(t.f & Ve) && !(t.f & et))
|
|
1325
1319
|
throw e;
|
|
1326
1320
|
he(e, t);
|
|
@@ -1346,7 +1340,7 @@ function he(e, t) {
|
|
|
1346
1340
|
}
|
|
1347
1341
|
}
|
|
1348
1342
|
function Ii(e) {
|
|
1349
|
-
y === null && (
|
|
1343
|
+
y === null && (x === null && ra(), ta()), Te && ea();
|
|
1350
1344
|
}
|
|
1351
1345
|
function wa(e, t) {
|
|
1352
1346
|
var r = t.last;
|
|
@@ -1359,7 +1353,7 @@ function le(e, t) {
|
|
|
1359
1353
|
ctx: X,
|
|
1360
1354
|
deps: null,
|
|
1361
1355
|
nodes: null,
|
|
1362
|
-
f: e |
|
|
1356
|
+
f: e | B | ae,
|
|
1363
1357
|
first: null,
|
|
1364
1358
|
fn: t,
|
|
1365
1359
|
last: null,
|
|
@@ -1384,28 +1378,28 @@ function le(e, t) {
|
|
|
1384
1378
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
|
|
1385
1379
|
!(i.f & Xe) && (i = i.first, e & ne && e & Ge && i !== null && (i.f |= Ge));
|
|
1386
1380
|
}
|
|
1387
|
-
if (i !== null && (i.parent = r, r !== null && wa(i, r),
|
|
1381
|
+
if (i !== null && (i.parent = r, r !== null && wa(i, r), x !== null && x.f & G && !(e & xe))) {
|
|
1388
1382
|
var s = (
|
|
1389
1383
|
/** @type {Derived} */
|
|
1390
|
-
|
|
1384
|
+
x
|
|
1391
1385
|
);
|
|
1392
1386
|
(s.effects ??= []).push(i);
|
|
1393
1387
|
}
|
|
1394
1388
|
return n;
|
|
1395
1389
|
}
|
|
1396
1390
|
function fr() {
|
|
1397
|
-
return
|
|
1391
|
+
return x !== null && !se;
|
|
1398
1392
|
}
|
|
1399
1393
|
function pn(e) {
|
|
1400
1394
|
const t = le(Ot, null);
|
|
1401
|
-
return
|
|
1395
|
+
return C(t, R), t.teardown = e, t;
|
|
1402
1396
|
}
|
|
1403
1397
|
function dl(e) {
|
|
1404
1398
|
Ii();
|
|
1405
1399
|
var t = (
|
|
1406
1400
|
/** @type {Effect} */
|
|
1407
1401
|
y.f
|
|
1408
|
-
), r = !
|
|
1402
|
+
), r = !x && (t & oe) !== 0 && X !== null && !X.i;
|
|
1409
1403
|
if (r) {
|
|
1410
1404
|
var n = (
|
|
1411
1405
|
/** @type {ComponentContext} */
|
|
@@ -1457,13 +1451,13 @@ function Mt(e, t = 0) {
|
|
|
1457
1451
|
var r = le(ne | t, e);
|
|
1458
1452
|
return r;
|
|
1459
1453
|
}
|
|
1460
|
-
function
|
|
1454
|
+
function ee(e) {
|
|
1461
1455
|
return le(oe | Xe, e);
|
|
1462
1456
|
}
|
|
1463
1457
|
function Mi(e) {
|
|
1464
1458
|
var t = e.teardown;
|
|
1465
1459
|
if (t !== null) {
|
|
1466
|
-
const r = Te, n =
|
|
1460
|
+
const r = Te, n = x;
|
|
1467
1461
|
On(!0), te(null);
|
|
1468
1462
|
try {
|
|
1469
1463
|
t.call(null);
|
|
@@ -1474,7 +1468,7 @@ function Mi(e) {
|
|
|
1474
1468
|
}
|
|
1475
1469
|
}
|
|
1476
1470
|
}
|
|
1477
|
-
function
|
|
1471
|
+
function _n(e, t = !1) {
|
|
1478
1472
|
var r = e.first;
|
|
1479
1473
|
for (e.first = e.last = null; r !== null; ) {
|
|
1480
1474
|
const i = r.ac;
|
|
@@ -1497,7 +1491,7 @@ function q(e, t = !0) {
|
|
|
1497
1491
|
e.nodes.start,
|
|
1498
1492
|
/** @type {TemplateNode} */
|
|
1499
1493
|
e.nodes.end
|
|
1500
|
-
), r = !0), e.f |= Tt,
|
|
1494
|
+
), r = !0), e.f |= Tt, _n(e, t && !r), At(e, 0);
|
|
1501
1495
|
var n = e.nodes && e.nodes.t;
|
|
1502
1496
|
if (n !== null)
|
|
1503
1497
|
for (const s of n)
|
|
@@ -1554,7 +1548,7 @@ function rr(e) {
|
|
|
1554
1548
|
}
|
|
1555
1549
|
function Di(e, t) {
|
|
1556
1550
|
if (!(e.f & sn) && e.f & V) {
|
|
1557
|
-
e.f ^= V, e.f & R || (
|
|
1551
|
+
e.f ^= V, e.f & R || (C(e, B), we.ensure().schedule(e));
|
|
1558
1552
|
for (var r = e.first; r !== null; ) {
|
|
1559
1553
|
var n = r.next, i = (r.f & Ge) !== 0 || (r.f & oe) !== 0;
|
|
1560
1554
|
Di(r, i ? t : !1), r = n;
|
|
@@ -1565,7 +1559,7 @@ function Di(e, t) {
|
|
|
1565
1559
|
(a.is_global || t) && a.in();
|
|
1566
1560
|
}
|
|
1567
1561
|
}
|
|
1568
|
-
function
|
|
1562
|
+
function mn(e, t) {
|
|
1569
1563
|
if (e.nodes)
|
|
1570
1564
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1571
1565
|
var i = r === n ? null : /* @__PURE__ */ ue(r);
|
|
@@ -1576,21 +1570,21 @@ let Te = !1;
|
|
|
1576
1570
|
function On(e) {
|
|
1577
1571
|
Te = e;
|
|
1578
1572
|
}
|
|
1579
|
-
let
|
|
1573
|
+
let x = null, se = !1;
|
|
1580
1574
|
function te(e) {
|
|
1581
|
-
|
|
1575
|
+
x = e;
|
|
1582
1576
|
}
|
|
1583
1577
|
let y = null;
|
|
1584
|
-
function
|
|
1578
|
+
function _e(e) {
|
|
1585
1579
|
y = e;
|
|
1586
1580
|
}
|
|
1587
1581
|
let ve = null;
|
|
1588
1582
|
function Ui(e) {
|
|
1589
|
-
|
|
1583
|
+
x !== null && (x.f & Jt || x.f & G) && (ve ??= /* @__PURE__ */ new Set()).add(e);
|
|
1590
1584
|
}
|
|
1591
|
-
let W = null, Z = 0,
|
|
1585
|
+
let W = null, Z = 0, K = null;
|
|
1592
1586
|
function Na(e) {
|
|
1593
|
-
|
|
1587
|
+
K = e;
|
|
1594
1588
|
}
|
|
1595
1589
|
let Fi = 1, Re = 0, Fe = Re;
|
|
1596
1590
|
function Bn(e) {
|
|
@@ -1601,9 +1595,9 @@ function Gi() {
|
|
|
1601
1595
|
}
|
|
1602
1596
|
function Lt(e) {
|
|
1603
1597
|
var t = e.f;
|
|
1604
|
-
if (t &
|
|
1598
|
+
if (t & B)
|
|
1605
1599
|
return !0;
|
|
1606
|
-
if (t &
|
|
1600
|
+
if (t & Q) {
|
|
1607
1601
|
for (var r = (
|
|
1608
1602
|
/** @type {Value[]} */
|
|
1609
1603
|
e.deps
|
|
@@ -1620,30 +1614,30 @@ function Lt(e) {
|
|
|
1620
1614
|
}
|
|
1621
1615
|
t & ae && // During time traveling we don't want to reset the status so that
|
|
1622
1616
|
// traversal of the graph in the other batches still happens
|
|
1623
|
-
ie === null &&
|
|
1617
|
+
ie === null && C(e, R);
|
|
1624
1618
|
}
|
|
1625
1619
|
return !1;
|
|
1626
1620
|
}
|
|
1627
|
-
function
|
|
1621
|
+
function ki(e, t, r = !0) {
|
|
1628
1622
|
var n = e.reactions;
|
|
1629
1623
|
if (n !== null && !(ve !== null && ve.has(e)))
|
|
1630
1624
|
for (var i = 0; i < n.length; i++) {
|
|
1631
1625
|
var s = n[i];
|
|
1632
|
-
s.f & G ?
|
|
1626
|
+
s.f & G ? ki(
|
|
1633
1627
|
/** @type {Derived} */
|
|
1634
1628
|
s,
|
|
1635
1629
|
t,
|
|
1636
1630
|
!1
|
|
1637
|
-
) : t === s && (r ?
|
|
1631
|
+
) : t === s && (r ? C(s, B) : s.f & R && C(s, Q), cn(
|
|
1638
1632
|
/** @type {Effect} */
|
|
1639
1633
|
s
|
|
1640
1634
|
));
|
|
1641
1635
|
}
|
|
1642
1636
|
}
|
|
1643
|
-
function
|
|
1644
|
-
var t = W, r = Z, n =
|
|
1637
|
+
function ji(e) {
|
|
1638
|
+
var t = W, r = Z, n = K, i = x, s = ve, a = X, o = se, u = Fe, l = e.f;
|
|
1645
1639
|
W = /** @type {null | Value[]} */
|
|
1646
|
-
null, Z = 0,
|
|
1640
|
+
null, Z = 0, K = null, x = l & (oe | xe) ? null : e, ve = null, tt(e.ctx), se = !1, Fe = ++Re, e.ac !== null && (Ct(() => {
|
|
1647
1641
|
e.ac.abort(Bt);
|
|
1648
1642
|
}), e.ac = null);
|
|
1649
1643
|
try {
|
|
@@ -1654,11 +1648,11 @@ function ki(e) {
|
|
|
1654
1648
|
), h = f();
|
|
1655
1649
|
e.f |= Ve;
|
|
1656
1650
|
var c = Pn(e);
|
|
1657
|
-
if (vi() &&
|
|
1651
|
+
if (vi() && K !== null && !se && c !== null && !(e.f & (G | Q | B)))
|
|
1658
1652
|
for (var d = 0; d < /** @type {Source[]} */
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1653
|
+
K.length; d++)
|
|
1654
|
+
ki(
|
|
1655
|
+
K[d],
|
|
1662
1656
|
/** @type {Effect} */
|
|
1663
1657
|
e
|
|
1664
1658
|
);
|
|
@@ -1669,14 +1663,14 @@ function ki(e) {
|
|
|
1669
1663
|
if (t !== null)
|
|
1670
1664
|
for (const p of t)
|
|
1671
1665
|
p.rv = Re;
|
|
1672
|
-
|
|
1673
|
-
|
|
1666
|
+
K !== null && (n === null ? n = K : n.push(.../** @type {Source[]} */
|
|
1667
|
+
K));
|
|
1674
1668
|
}
|
|
1675
1669
|
return e.f & Be && (e.f ^= Be), h;
|
|
1676
1670
|
} catch (p) {
|
|
1677
1671
|
return Pn(e), xa(p);
|
|
1678
1672
|
} finally {
|
|
1679
|
-
e.f ^= Jt, W = t, Z = r,
|
|
1673
|
+
e.f ^= Jt, W = t, Z = r, K = n, x = i, ve = s, tt(a), se = o, Fe = u;
|
|
1680
1674
|
}
|
|
1681
1675
|
}
|
|
1682
1676
|
function Pn(e) {
|
|
@@ -1697,7 +1691,7 @@ function Pn(e) {
|
|
|
1697
1691
|
function Oa(e, t) {
|
|
1698
1692
|
let r = t.reactions;
|
|
1699
1693
|
if (r !== null) {
|
|
1700
|
-
var n =
|
|
1694
|
+
var n = js.call(r, e);
|
|
1701
1695
|
if (n !== -1) {
|
|
1702
1696
|
var i = r.length - 1;
|
|
1703
1697
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
@@ -1712,8 +1706,8 @@ function Oa(e, t) {
|
|
|
1712
1706
|
t
|
|
1713
1707
|
);
|
|
1714
1708
|
s.f & ae && (s.f ^= ae), s.v !== L && ln(s), s.ac !== null && Ct(() => {
|
|
1715
|
-
s.ac.abort(Bt), s.ac = null,
|
|
1716
|
-
}),
|
|
1709
|
+
s.ac.abort(Bt), s.ac = null, C(s, B);
|
|
1710
|
+
}), ma(s), At(s, 0);
|
|
1717
1711
|
}
|
|
1718
1712
|
}
|
|
1719
1713
|
function At(e, t) {
|
|
@@ -1725,15 +1719,15 @@ function At(e, t) {
|
|
|
1725
1719
|
function nt(e) {
|
|
1726
1720
|
var t = e.f;
|
|
1727
1721
|
if (!(t & U)) {
|
|
1728
|
-
|
|
1722
|
+
C(e, R);
|
|
1729
1723
|
var r = y;
|
|
1730
1724
|
y = e;
|
|
1731
1725
|
try {
|
|
1732
|
-
t & (ne | ai) ? Ha(e) :
|
|
1733
|
-
var n =
|
|
1726
|
+
t & (ne | ai) ? Ha(e) : _n(e), Mi(e);
|
|
1727
|
+
var n = ji(e);
|
|
1734
1728
|
e.teardown = typeof n == "function" ? n : null, e.wv = Fi;
|
|
1735
1729
|
var i;
|
|
1736
|
-
ti && fa && e.f &
|
|
1730
|
+
ti && fa && e.f & B && e.deps;
|
|
1737
1731
|
} finally {
|
|
1738
1732
|
y = r;
|
|
1739
1733
|
}
|
|
@@ -1744,16 +1738,16 @@ async function vl() {
|
|
|
1744
1738
|
}
|
|
1745
1739
|
function N(e) {
|
|
1746
1740
|
var t = e.f, r = (t & G) !== 0;
|
|
1747
|
-
if (
|
|
1741
|
+
if (x !== null && !se) {
|
|
1748
1742
|
var n = y !== null && (y.f & U) !== 0;
|
|
1749
1743
|
if (!n && (ve === null || !ve.has(e))) {
|
|
1750
|
-
var i =
|
|
1751
|
-
if (
|
|
1744
|
+
var i = x.deps;
|
|
1745
|
+
if (x.f & Jt)
|
|
1752
1746
|
e.rv < Re && (e.rv = Re, W === null && i !== null && i[Z] === e ? Z++ : W === null ? W = [e] : W.push(e));
|
|
1753
1747
|
else {
|
|
1754
|
-
|
|
1748
|
+
x.deps ??= [], wt.call(x.deps, e) || x.deps.push(e);
|
|
1755
1749
|
var s = e.reactions;
|
|
1756
|
-
s === null ? e.reactions = [
|
|
1750
|
+
s === null ? e.reactions = [x] : wt.call(s, x) || s.push(x);
|
|
1757
1751
|
}
|
|
1758
1752
|
}
|
|
1759
1753
|
}
|
|
@@ -1768,7 +1762,7 @@ function N(e) {
|
|
|
1768
1762
|
var o = a.v;
|
|
1769
1763
|
return (!(a.f & R) && a.reactions !== null || Xi(a)) && (o = fn(a)), pe.set(a, o), o;
|
|
1770
1764
|
}
|
|
1771
|
-
var u = (a.f & ae) === 0 && !se &&
|
|
1765
|
+
var u = (a.f & ae) === 0 && !se && x !== null && (x.f & ae) !== 0, l = (a.f & Ve) === 0;
|
|
1772
1766
|
Lt(a) && (u && (a.f |= ae), Ei(a)), u && !l && (yi(a), Vi(a));
|
|
1773
1767
|
}
|
|
1774
1768
|
if (ie?.has(e))
|
|
@@ -1843,8 +1837,8 @@ function Fr(e, t = /* @__PURE__ */ new Set()) {
|
|
|
1843
1837
|
}
|
|
1844
1838
|
}
|
|
1845
1839
|
}
|
|
1846
|
-
const
|
|
1847
|
-
function
|
|
1840
|
+
const mt = Symbol("events"), qi = /* @__PURE__ */ new Set(), Gr = /* @__PURE__ */ new Set();
|
|
1841
|
+
function _l(e) {
|
|
1848
1842
|
if (!g) return;
|
|
1849
1843
|
e.removeAttribute("onload"), e.removeAttribute("onerror");
|
|
1850
1844
|
const t = e.__e;
|
|
@@ -1854,14 +1848,14 @@ function ml(e) {
|
|
|
1854
1848
|
}
|
|
1855
1849
|
function Pa(e, t, r, n = {}) {
|
|
1856
1850
|
function i(s) {
|
|
1857
|
-
if (n.capture ||
|
|
1851
|
+
if (n.capture || kr.call(t, s), !s.cancelBubble)
|
|
1858
1852
|
return Ct(() => r?.call(this, s));
|
|
1859
1853
|
}
|
|
1860
1854
|
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? (i.__removed = !1, be(() => {
|
|
1861
1855
|
i.__removed || t.addEventListener(e, i, n);
|
|
1862
1856
|
})) : t.addEventListener(e, i, n), i;
|
|
1863
1857
|
}
|
|
1864
|
-
function
|
|
1858
|
+
function ml(e, t, r, n, i) {
|
|
1865
1859
|
var s = { capture: n, passive: i }, a = Pa(e, t, r, s);
|
|
1866
1860
|
(t === document.body || // @ts-ignore
|
|
1867
1861
|
t === window || // @ts-ignore
|
|
@@ -1871,7 +1865,7 @@ function _l(e, t, r, n, i) {
|
|
|
1871
1865
|
});
|
|
1872
1866
|
}
|
|
1873
1867
|
function gl(e, t, r) {
|
|
1874
|
-
(t[
|
|
1868
|
+
(t[mt] ??= {})[e] = r;
|
|
1875
1869
|
}
|
|
1876
1870
|
function bl(e) {
|
|
1877
1871
|
for (var t = 0; t < e.length; t++)
|
|
@@ -1880,7 +1874,7 @@ function bl(e) {
|
|
|
1880
1874
|
r(e);
|
|
1881
1875
|
}
|
|
1882
1876
|
let xr = null, wr = !1;
|
|
1883
|
-
function
|
|
1877
|
+
function kr(e) {
|
|
1884
1878
|
var t = this, r = (
|
|
1885
1879
|
/** @type {Node} */
|
|
1886
1880
|
t.ownerDocument
|
|
@@ -1891,12 +1885,12 @@ function jr(e) {
|
|
|
1891
1885
|
xr = e, wr || (wr = !0, setTimeout(() => {
|
|
1892
1886
|
wr = !1, xr = null;
|
|
1893
1887
|
}));
|
|
1894
|
-
var a = 0, o = xr === e && e[
|
|
1888
|
+
var a = 0, o = xr === e && e[mt];
|
|
1895
1889
|
if (o) {
|
|
1896
1890
|
var u = i.indexOf(o);
|
|
1897
1891
|
if (u !== -1 && (t === document || t === /** @type {any} */
|
|
1898
1892
|
window)) {
|
|
1899
|
-
e[
|
|
1893
|
+
e[mt] = t;
|
|
1900
1894
|
return;
|
|
1901
1895
|
}
|
|
1902
1896
|
var l = i.indexOf(t);
|
|
@@ -1912,18 +1906,18 @@ function jr(e) {
|
|
|
1912
1906
|
return s || r;
|
|
1913
1907
|
}
|
|
1914
1908
|
});
|
|
1915
|
-
var f =
|
|
1916
|
-
te(null),
|
|
1909
|
+
var f = x, h = y;
|
|
1910
|
+
te(null), _e(null);
|
|
1917
1911
|
try {
|
|
1918
1912
|
for (var c, d = []; s !== null && s !== t; ) {
|
|
1919
1913
|
try {
|
|
1920
|
-
var p = s[
|
|
1914
|
+
var p = s[mt]?.[n];
|
|
1921
1915
|
p != null && (!/** @type {any} */
|
|
1922
1916
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1923
1917
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1924
1918
|
e.target === s) && p.call(s, e);
|
|
1925
|
-
} catch (
|
|
1926
|
-
c ? d.push(
|
|
1919
|
+
} catch (_) {
|
|
1920
|
+
c ? d.push(_) : c = _;
|
|
1927
1921
|
}
|
|
1928
1922
|
if (e.cancelBubble) break;
|
|
1929
1923
|
a++, s = a < i.length ? (
|
|
@@ -1932,14 +1926,14 @@ function jr(e) {
|
|
|
1932
1926
|
) : null;
|
|
1933
1927
|
}
|
|
1934
1928
|
if (c) {
|
|
1935
|
-
for (let
|
|
1929
|
+
for (let _ of d)
|
|
1936
1930
|
queueMicrotask(() => {
|
|
1937
|
-
throw
|
|
1931
|
+
throw _;
|
|
1938
1932
|
});
|
|
1939
1933
|
throw c;
|
|
1940
1934
|
}
|
|
1941
1935
|
} finally {
|
|
1942
|
-
e[
|
|
1936
|
+
e[mt] = t, delete e.currentTarget, te(f), _e(h);
|
|
1943
1937
|
}
|
|
1944
1938
|
}
|
|
1945
1939
|
}
|
|
@@ -1960,7 +1954,7 @@ function zi(e) {
|
|
|
1960
1954
|
var t = ur("template");
|
|
1961
1955
|
return t.innerHTML = Ca(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1962
1956
|
}
|
|
1963
|
-
function
|
|
1957
|
+
function J(e, t) {
|
|
1964
1958
|
var r = (
|
|
1965
1959
|
/** @type {Effect} */
|
|
1966
1960
|
y
|
|
@@ -1972,9 +1966,9 @@ function cr(e, t) {
|
|
|
1972
1966
|
var r = (t & Us) !== 0, n = (t & Fs) !== 0, i, s = !e.startsWith("<!>");
|
|
1973
1967
|
return () => {
|
|
1974
1968
|
if (g)
|
|
1975
|
-
return
|
|
1969
|
+
return J(E, null), E;
|
|
1976
1970
|
i === void 0 && (i = zi(s ? e : "<!>" + e), r || (i = /** @type {TemplateNode} */
|
|
1977
|
-
/* @__PURE__ */
|
|
1971
|
+
/* @__PURE__ */ j(i)));
|
|
1978
1972
|
var a = (
|
|
1979
1973
|
/** @type {TemplateNode} */
|
|
1980
1974
|
n || Hi ? document.importNode(i, !0) : i.cloneNode(!0)
|
|
@@ -1982,14 +1976,14 @@ function cr(e, t) {
|
|
|
1982
1976
|
if (r) {
|
|
1983
1977
|
var o = (
|
|
1984
1978
|
/** @type {TemplateNode} */
|
|
1985
|
-
/* @__PURE__ */
|
|
1979
|
+
/* @__PURE__ */ j(a)
|
|
1986
1980
|
), u = (
|
|
1987
1981
|
/** @type {TemplateNode} */
|
|
1988
1982
|
a.lastChild
|
|
1989
1983
|
);
|
|
1990
|
-
|
|
1984
|
+
J(o, u);
|
|
1991
1985
|
} else
|
|
1992
|
-
|
|
1986
|
+
J(a, a);
|
|
1993
1987
|
return a;
|
|
1994
1988
|
};
|
|
1995
1989
|
}
|
|
@@ -1998,23 +1992,23 @@ function Ma(e, t, r = "svg") {
|
|
|
1998
1992
|
var n = !e.startsWith("<!>"), i = `<${r}>${n ? e : "<!>" + e}</${r}>`, s;
|
|
1999
1993
|
return () => {
|
|
2000
1994
|
if (g)
|
|
2001
|
-
return
|
|
1995
|
+
return J(E, null), E;
|
|
2002
1996
|
if (!s) {
|
|
2003
1997
|
var a = (
|
|
2004
1998
|
/** @type {DocumentFragment} */
|
|
2005
1999
|
zi(i)
|
|
2006
2000
|
), o = (
|
|
2007
2001
|
/** @type {Element} */
|
|
2008
|
-
/* @__PURE__ */
|
|
2002
|
+
/* @__PURE__ */ j(a)
|
|
2009
2003
|
);
|
|
2010
2004
|
s = /** @type {Element} */
|
|
2011
|
-
/* @__PURE__ */
|
|
2005
|
+
/* @__PURE__ */ j(o);
|
|
2012
2006
|
}
|
|
2013
2007
|
var u = (
|
|
2014
2008
|
/** @type {TemplateNode} */
|
|
2015
2009
|
s.cloneNode(!0)
|
|
2016
2010
|
);
|
|
2017
|
-
return
|
|
2011
|
+
return J(u, u), u;
|
|
2018
2012
|
};
|
|
2019
2013
|
}
|
|
2020
2014
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2024,19 +2018,19 @@ function El(e, t) {
|
|
|
2024
2018
|
function yl(e = "") {
|
|
2025
2019
|
if (!g) {
|
|
2026
2020
|
var t = Y(e + "");
|
|
2027
|
-
return
|
|
2021
|
+
return J(t, t), t;
|
|
2028
2022
|
}
|
|
2029
2023
|
var r = E;
|
|
2030
2024
|
return r.nodeType !== Pt ? (r.before(r = Y()), F(r)) : lr(
|
|
2031
2025
|
/** @type {Text} */
|
|
2032
2026
|
r
|
|
2033
|
-
),
|
|
2027
|
+
), J(r, r), r;
|
|
2034
2028
|
}
|
|
2035
2029
|
function xl() {
|
|
2036
2030
|
if (g)
|
|
2037
|
-
return
|
|
2031
|
+
return J(E, null), E;
|
|
2038
2032
|
var e = document.createDocumentFragment(), t = document.createComment(""), r = Y();
|
|
2039
|
-
return e.append(t, r),
|
|
2033
|
+
return e.append(t, r), J(t, r), e;
|
|
2040
2034
|
}
|
|
2041
2035
|
function gt(e, t) {
|
|
2042
2036
|
if (g) {
|
|
@@ -2044,7 +2038,7 @@ function gt(e, t) {
|
|
|
2044
2038
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
2045
2039
|
y
|
|
2046
2040
|
);
|
|
2047
|
-
(!(r.f & Ve) || r.nodes.end === null) && (r.nodes.end = E),
|
|
2041
|
+
(!(r.f & Ve) || r.nodes.end === null) && (r.nodes.end = E), ke();
|
|
2048
2042
|
return;
|
|
2049
2043
|
}
|
|
2050
2044
|
e !== null && e.before(
|
|
@@ -2057,7 +2051,7 @@ function Ra(e) {
|
|
|
2057
2051
|
return La.includes(e);
|
|
2058
2052
|
}
|
|
2059
2053
|
function Wi(e) {
|
|
2060
|
-
let t = 0, r =
|
|
2054
|
+
let t = 0, r = je(0), n;
|
|
2061
2055
|
return () => {
|
|
2062
2056
|
fr() && (N(r), hr(() => (t === 0 && (n = Rt(() => e(() => xt(r)))), t += 1, () => {
|
|
2063
2057
|
be(() => {
|
|
@@ -2087,24 +2081,22 @@ class Ua {
|
|
|
2087
2081
|
/** @type {BoundaryProps} */
|
|
2088
2082
|
#r;
|
|
2089
2083
|
/** @type {((anchor: Node) => void)} */
|
|
2090
|
-
#
|
|
2084
|
+
#o;
|
|
2091
2085
|
/** @type {Effect} */
|
|
2092
|
-
#
|
|
2086
|
+
#n;
|
|
2093
2087
|
/** @type {Effect | null} */
|
|
2094
|
-
#
|
|
2088
|
+
#i = null;
|
|
2095
2089
|
/** @type {Effect | null} */
|
|
2096
|
-
#
|
|
2090
|
+
#a = null;
|
|
2097
2091
|
/** @type {Effect | null} */
|
|
2098
|
-
#o = null;
|
|
2099
|
-
/** @type {DocumentFragment | null} */
|
|
2100
2092
|
#s = null;
|
|
2101
|
-
|
|
2093
|
+
/** @type {DocumentFragment | null} */
|
|
2094
|
+
#u = null;
|
|
2095
|
+
#d = 0;
|
|
2102
2096
|
#l = 0;
|
|
2103
|
-
#
|
|
2104
|
-
/** @type {
|
|
2105
|
-
#
|
|
2106
|
-
/** @type {Set<Effect>} */
|
|
2107
|
-
#_ = /* @__PURE__ */ new Set();
|
|
2097
|
+
#v = !1;
|
|
2098
|
+
/** @type {Map<Effect, number>} */
|
|
2099
|
+
#m = /* @__PURE__ */ new Map();
|
|
2108
2100
|
/**
|
|
2109
2101
|
* A source containing the number of pending async deriveds/expressions.
|
|
2110
2102
|
* Only created if `$effect.pending()` is used inside the boundary,
|
|
@@ -2112,9 +2104,9 @@ class Ua {
|
|
|
2112
2104
|
* calls followed by no-op flushes
|
|
2113
2105
|
* @type {Source<number> | null}
|
|
2114
2106
|
*/
|
|
2115
|
-
#
|
|
2116
|
-
#
|
|
2117
|
-
this.#
|
|
2107
|
+
#f = null;
|
|
2108
|
+
#_ = Wi(() => (this.#f = je(this.#d), () => {
|
|
2109
|
+
this.#f = null;
|
|
2118
2110
|
}));
|
|
2119
2111
|
/**
|
|
2120
2112
|
* @param {TemplateNode} node
|
|
@@ -2123,32 +2115,32 @@ class Ua {
|
|
|
2123
2115
|
* @param {((error: unknown) => unknown) | undefined} [transform_error]
|
|
2124
2116
|
*/
|
|
2125
2117
|
constructor(t, r, n, i) {
|
|
2126
|
-
this.#e = t, this.#r = r, this.#
|
|
2118
|
+
this.#e = t, this.#r = r, this.#o = (s) => {
|
|
2127
2119
|
var a = (
|
|
2128
2120
|
/** @type {Effect} */
|
|
2129
2121
|
y
|
|
2130
2122
|
);
|
|
2131
2123
|
a.b = this, a.f |= Cr, n(s);
|
|
2132
2124
|
}, this.parent = /** @type {Effect} */
|
|
2133
|
-
y.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#
|
|
2125
|
+
y.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#n = Mt(() => {
|
|
2134
2126
|
if (g) {
|
|
2135
2127
|
const s = an(
|
|
2136
2128
|
/** @type {TemplateNode} */
|
|
2137
2129
|
this.#t
|
|
2138
2130
|
);
|
|
2139
|
-
|
|
2131
|
+
ke();
|
|
2140
2132
|
const a = s === tn;
|
|
2141
2133
|
if (s.startsWith(wn)) {
|
|
2142
2134
|
const u = JSON.parse(s.slice(wn.length));
|
|
2143
|
-
this.#
|
|
2144
|
-
} else a ? this.#
|
|
2135
|
+
this.#E(u);
|
|
2136
|
+
} else a ? this.#p() : this.#g();
|
|
2145
2137
|
} else
|
|
2146
|
-
this.#
|
|
2138
|
+
this.#y();
|
|
2147
2139
|
}, $a), g && (this.#e = E);
|
|
2148
2140
|
}
|
|
2149
|
-
#
|
|
2141
|
+
#g() {
|
|
2150
2142
|
try {
|
|
2151
|
-
this.#
|
|
2143
|
+
this.#i = ee(() => this.#o(this.#e));
|
|
2152
2144
|
} catch (t) {
|
|
2153
2145
|
this.error(t);
|
|
2154
2146
|
}
|
|
@@ -2156,9 +2148,9 @@ class Ua {
|
|
|
2156
2148
|
/**
|
|
2157
2149
|
* @param {unknown} error The deserialized error from the server's hydration comment
|
|
2158
2150
|
*/
|
|
2159
|
-
#
|
|
2151
|
+
#E(t) {
|
|
2160
2152
|
const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#b(t);
|
|
2161
|
-
be(i), r && (this.#
|
|
2153
|
+
be(i), r && (this.#s = ee(() => {
|
|
2162
2154
|
r(
|
|
2163
2155
|
this.#e,
|
|
2164
2156
|
() => t,
|
|
@@ -2175,80 +2167,80 @@ class Ua {
|
|
|
2175
2167
|
#b(t) {
|
|
2176
2168
|
var r = !1, n = !1;
|
|
2177
2169
|
const i = () => {
|
|
2178
|
-
if (!this.#
|
|
2170
|
+
if (!this.#h()) {
|
|
2179
2171
|
if (r) {
|
|
2180
2172
|
Zs();
|
|
2181
2173
|
return;
|
|
2182
2174
|
}
|
|
2183
|
-
r = !0, n && la(), this.#
|
|
2184
|
-
this.#
|
|
2185
|
-
}), this.#
|
|
2186
|
-
this.#
|
|
2175
|
+
r = !0, n && la(), this.#s !== null && Ue(this.#s, () => {
|
|
2176
|
+
this.#s = null;
|
|
2177
|
+
}), this.#x(() => {
|
|
2178
|
+
this.#y();
|
|
2187
2179
|
});
|
|
2188
2180
|
}
|
|
2189
2181
|
};
|
|
2190
2182
|
return { reset: i, invoke_onerror: () => {
|
|
2191
|
-
if (!this.#
|
|
2183
|
+
if (!this.#h())
|
|
2192
2184
|
try {
|
|
2193
2185
|
n = !0, this.#r.onerror?.(t, i), n = !1;
|
|
2194
2186
|
} catch (a) {
|
|
2195
|
-
he(a, this.#
|
|
2187
|
+
he(a, this.#n && this.#n.parent);
|
|
2196
2188
|
}
|
|
2197
2189
|
} };
|
|
2198
2190
|
}
|
|
2199
|
-
#
|
|
2200
|
-
return (this.#
|
|
2191
|
+
#h() {
|
|
2192
|
+
return (this.#n.f & (U | Tt)) !== 0;
|
|
2201
2193
|
}
|
|
2202
|
-
#
|
|
2194
|
+
#p() {
|
|
2203
2195
|
const t = this.#r.pending;
|
|
2204
|
-
t && (this.is_pending = !0, this.#
|
|
2205
|
-
if (!this.#
|
|
2206
|
-
var r = this.#
|
|
2207
|
-
if (r.append(n), this.#
|
|
2196
|
+
t && (this.is_pending = !0, this.#a = ee(() => t(this.#e)), be(() => {
|
|
2197
|
+
if (!this.#h()) {
|
|
2198
|
+
var r = this.#u = document.createDocumentFragment(), n = Y(), i = !1;
|
|
2199
|
+
if (r.append(n), this.#i = this.#x(() => {
|
|
2208
2200
|
try {
|
|
2209
|
-
return
|
|
2201
|
+
return ee(() => this.#o(n));
|
|
2210
2202
|
} catch (s) {
|
|
2211
2203
|
try {
|
|
2212
2204
|
this.error(s), i = !0;
|
|
2213
2205
|
} catch (a) {
|
|
2214
|
-
he(a, this.#
|
|
2206
|
+
he(a, this.#n.parent);
|
|
2215
2207
|
}
|
|
2216
2208
|
return null;
|
|
2217
2209
|
}
|
|
2218
|
-
}), this.#
|
|
2219
|
-
this.#
|
|
2210
|
+
}), this.#i === null) {
|
|
2211
|
+
this.#u = null, i && this.#c(
|
|
2220
2212
|
/** @type {Batch} */
|
|
2221
2213
|
S
|
|
2222
2214
|
);
|
|
2223
2215
|
return;
|
|
2224
2216
|
}
|
|
2225
|
-
this.#l === 0 && (this.#e.before(r), this.#
|
|
2217
|
+
this.#l === 0 && (this.#e.before(r), this.#u = null, Ue(
|
|
2226
2218
|
/** @type {Effect} */
|
|
2227
|
-
this.#
|
|
2219
|
+
this.#a,
|
|
2228
2220
|
() => {
|
|
2229
|
-
this.#
|
|
2221
|
+
this.#a = null;
|
|
2230
2222
|
}
|
|
2231
|
-
), this.#
|
|
2223
|
+
), this.#c(
|
|
2232
2224
|
/** @type {Batch} */
|
|
2233
2225
|
S
|
|
2234
2226
|
));
|
|
2235
2227
|
}
|
|
2236
2228
|
}));
|
|
2237
2229
|
}
|
|
2238
|
-
#
|
|
2230
|
+
#y() {
|
|
2239
2231
|
try {
|
|
2240
|
-
if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#
|
|
2241
|
-
this.#
|
|
2232
|
+
if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#d = 0, this.#i = ee(() => {
|
|
2233
|
+
this.#o(this.#e);
|
|
2242
2234
|
}), this.#l > 0) {
|
|
2243
|
-
var t = this.#
|
|
2244
|
-
|
|
2235
|
+
var t = this.#u = document.createDocumentFragment();
|
|
2236
|
+
mn(this.#i, t);
|
|
2245
2237
|
const r = (
|
|
2246
2238
|
/** @type {(anchor: Node) => void} */
|
|
2247
2239
|
this.#r.pending
|
|
2248
2240
|
);
|
|
2249
|
-
this.#
|
|
2241
|
+
this.#a = ee(() => r(this.#e));
|
|
2250
2242
|
} else
|
|
2251
|
-
this.#
|
|
2243
|
+
this.#c(
|
|
2252
2244
|
/** @type {Batch} */
|
|
2253
2245
|
S
|
|
2254
2246
|
);
|
|
@@ -2259,15 +2251,15 @@ class Ua {
|
|
|
2259
2251
|
/**
|
|
2260
2252
|
* @param {Batch} batch
|
|
2261
2253
|
*/
|
|
2262
|
-
#
|
|
2263
|
-
this.is_pending = !1, t.
|
|
2254
|
+
#c(t) {
|
|
2255
|
+
this.is_pending = !1, t.transfer_reactions(this.#m);
|
|
2264
2256
|
}
|
|
2265
2257
|
/**
|
|
2266
2258
|
* Defer an effect inside a pending boundary until the boundary resolves
|
|
2267
2259
|
* @param {Effect} effect
|
|
2268
2260
|
*/
|
|
2269
2261
|
defer_effect(t) {
|
|
2270
|
-
|
|
2262
|
+
mi(t, this.#m);
|
|
2271
2263
|
}
|
|
2272
2264
|
/**
|
|
2273
2265
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -2283,13 +2275,13 @@ class Ua {
|
|
|
2283
2275
|
* @template T
|
|
2284
2276
|
* @param {() => T} fn
|
|
2285
2277
|
*/
|
|
2286
|
-
#
|
|
2287
|
-
var r = y, n =
|
|
2288
|
-
|
|
2278
|
+
#x(t) {
|
|
2279
|
+
var r = y, n = x, i = X;
|
|
2280
|
+
_e(this.#n), te(this.#n), tt(this.#n.ctx);
|
|
2289
2281
|
try {
|
|
2290
2282
|
return we.ensure(), t();
|
|
2291
2283
|
} finally {
|
|
2292
|
-
|
|
2284
|
+
_e(r), te(n), tt(i);
|
|
2293
2285
|
}
|
|
2294
2286
|
}
|
|
2295
2287
|
/**
|
|
@@ -2298,14 +2290,14 @@ class Ua {
|
|
|
2298
2290
|
* @param {1 | -1} d
|
|
2299
2291
|
* @param {Batch} batch
|
|
2300
2292
|
*/
|
|
2301
|
-
#
|
|
2293
|
+
#w(t, r) {
|
|
2302
2294
|
if (!this.has_pending_snippet()) {
|
|
2303
|
-
this.parent && this.parent.#
|
|
2295
|
+
this.parent && this.parent.#w(t, r);
|
|
2304
2296
|
return;
|
|
2305
2297
|
}
|
|
2306
|
-
this.#l += t, this.#l === 0 && (this.#
|
|
2307
|
-
this.#
|
|
2308
|
-
}), this.#
|
|
2298
|
+
this.#l += t, this.#l === 0 && (this.#c(r), this.#a && Ue(this.#a, () => {
|
|
2299
|
+
this.#a = null;
|
|
2300
|
+
}), this.#u && (this.#e.before(this.#u), this.#u = null));
|
|
2309
2301
|
}
|
|
2310
2302
|
/**
|
|
2311
2303
|
* Update the source that powers `$effect.pending()` inside this boundary,
|
|
@@ -2315,39 +2307,39 @@ class Ua {
|
|
|
2315
2307
|
* @param {Batch} batch
|
|
2316
2308
|
*/
|
|
2317
2309
|
update_pending_count(t, r) {
|
|
2318
|
-
this.#
|
|
2319
|
-
this.#
|
|
2310
|
+
this.#w(t, r), this.#d += t, !(!this.#f || this.#v) && (this.#v = !0, be(() => {
|
|
2311
|
+
this.#v = !1, this.#f && rt(this.#f, this.#d);
|
|
2320
2312
|
}));
|
|
2321
2313
|
}
|
|
2322
2314
|
get_effect_pending() {
|
|
2323
|
-
return this.#
|
|
2315
|
+
return this.#_(), N(
|
|
2324
2316
|
/** @type {Source<number>} */
|
|
2325
|
-
this.#
|
|
2317
|
+
this.#f
|
|
2326
2318
|
);
|
|
2327
2319
|
}
|
|
2328
2320
|
/** @param {unknown} error */
|
|
2329
2321
|
error(t) {
|
|
2330
2322
|
if (t === ye || !this.#r.onerror && !this.#r.failed)
|
|
2331
2323
|
throw t;
|
|
2332
|
-
S?.is_fork ? (this.#
|
|
2333
|
-
this.#
|
|
2334
|
-
})) : this.#
|
|
2324
|
+
S?.is_fork ? (this.#i && S.skip_effect(this.#i), this.#a && S.skip_effect(this.#a), this.#s && S.skip_effect(this.#s), S.oncommit(() => {
|
|
2325
|
+
this.#h() || this.#T(t);
|
|
2326
|
+
})) : this.#T(t);
|
|
2335
2327
|
}
|
|
2336
2328
|
/**
|
|
2337
2329
|
* @param {unknown} error
|
|
2338
2330
|
*/
|
|
2339
|
-
#
|
|
2340
|
-
this.#
|
|
2331
|
+
#T(t) {
|
|
2332
|
+
this.#i && (q(this.#i), this.#i = null), this.#a && (q(this.#a), this.#a = null), this.#s && (q(this.#s), this.#s = null), g && (F(
|
|
2341
2333
|
/** @type {TemplateNode} */
|
|
2342
2334
|
this.#t
|
|
2343
2335
|
), Qs(), F(Kt()));
|
|
2344
2336
|
let r = this.#r.failed;
|
|
2345
2337
|
const n = (i) => {
|
|
2346
|
-
if (this.#
|
|
2338
|
+
if (this.#h()) return;
|
|
2347
2339
|
const { reset: s, invoke_onerror: a } = this.#b(i);
|
|
2348
|
-
a(), r && !this.#
|
|
2340
|
+
a(), r && !this.#h() && (this.#s = this.#x(() => {
|
|
2349
2341
|
try {
|
|
2350
|
-
return
|
|
2342
|
+
return ee(() => {
|
|
2351
2343
|
var o = (
|
|
2352
2344
|
/** @type {Effect} */
|
|
2353
2345
|
y
|
|
@@ -2362,25 +2354,25 @@ class Ua {
|
|
|
2362
2354
|
return he(
|
|
2363
2355
|
o,
|
|
2364
2356
|
/** @type {Effect} */
|
|
2365
|
-
this.#
|
|
2357
|
+
this.#n.parent
|
|
2366
2358
|
), null;
|
|
2367
2359
|
}
|
|
2368
2360
|
}));
|
|
2369
2361
|
};
|
|
2370
2362
|
be(() => {
|
|
2371
|
-
if (!this.#
|
|
2363
|
+
if (!this.#h()) {
|
|
2372
2364
|
var i;
|
|
2373
2365
|
try {
|
|
2374
2366
|
i = this.transform_error(t);
|
|
2375
2367
|
} catch (s) {
|
|
2376
|
-
he(s, this.#
|
|
2368
|
+
he(s, this.#n && this.#n.parent);
|
|
2377
2369
|
return;
|
|
2378
2370
|
}
|
|
2379
2371
|
i !== null && typeof i == "object" && typeof /** @type {any} */
|
|
2380
2372
|
i.then == "function" ? i.then(
|
|
2381
2373
|
n,
|
|
2382
2374
|
/** @param {unknown} e */
|
|
2383
|
-
(s) => he(s, this.#
|
|
2375
|
+
(s) => he(s, this.#n && this.#n.parent)
|
|
2384
2376
|
) : n(i);
|
|
2385
2377
|
}
|
|
2386
2378
|
});
|
|
@@ -2398,7 +2390,7 @@ function Fa(e, t) {
|
|
|
2398
2390
|
Ur(), t.intro = t.intro ?? !1;
|
|
2399
2391
|
const r = t.target, n = g, i = E;
|
|
2400
2392
|
try {
|
|
2401
|
-
for (var s = /* @__PURE__ */
|
|
2393
|
+
for (var s = /* @__PURE__ */ j(r); s && (s.nodeType !== ut || /** @type {Comment} */
|
|
2402
2394
|
s.data !== Kn); )
|
|
2403
2395
|
s = /* @__PURE__ */ ue(s);
|
|
2404
2396
|
if (!s)
|
|
@@ -2437,7 +2429,7 @@ function Zi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2437
2429
|
/** @type {ComponentContext} */
|
|
2438
2430
|
X
|
|
2439
2431
|
);
|
|
2440
|
-
if (s && (p.c = s), i && (n.$$events = i), g &&
|
|
2432
|
+
if (s && (p.c = s), i && (n.$$events = i), g && J(
|
|
2441
2433
|
/** @type {TemplateNode} */
|
|
2442
2434
|
d,
|
|
2443
2435
|
null
|
|
@@ -2450,15 +2442,15 @@ function Zi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2450
2442
|
);
|
|
2451
2443
|
var h = /* @__PURE__ */ new Set(), c = (d) => {
|
|
2452
2444
|
for (var p = 0; p < d.length; p++) {
|
|
2453
|
-
var
|
|
2454
|
-
if (!h.has(
|
|
2455
|
-
h.add(
|
|
2456
|
-
var v = Ra(
|
|
2445
|
+
var _ = d[p];
|
|
2446
|
+
if (!h.has(_)) {
|
|
2447
|
+
h.add(_);
|
|
2448
|
+
var v = Ra(_);
|
|
2457
2449
|
for (const A of [t, document]) {
|
|
2458
|
-
var
|
|
2459
|
-
|
|
2460
|
-
var b =
|
|
2461
|
-
b === void 0 ? (A.addEventListener(
|
|
2450
|
+
var m = Ft.get(A);
|
|
2451
|
+
m === void 0 && (m = /* @__PURE__ */ new Map(), Ft.set(A, m));
|
|
2452
|
+
var b = m.get(_);
|
|
2453
|
+
b === void 0 ? (A.addEventListener(_, kr, { passive: v }), m.set(_, 1)) : m.set(_, b + 1);
|
|
2462
2454
|
}
|
|
2463
2455
|
}
|
|
2464
2456
|
}
|
|
@@ -2469,21 +2461,21 @@ function Zi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2469
2461
|
var p = (
|
|
2470
2462
|
/** @type {Map<string, number>} */
|
|
2471
2463
|
Ft.get(v)
|
|
2472
|
-
),
|
|
2464
|
+
), _ = (
|
|
2473
2465
|
/** @type {number} */
|
|
2474
2466
|
p.get(d)
|
|
2475
2467
|
);
|
|
2476
|
-
--
|
|
2468
|
+
--_ == 0 ? (v.removeEventListener(d, kr), p.delete(d), p.size === 0 && Ft.delete(v)) : p.set(d, _);
|
|
2477
2469
|
}
|
|
2478
2470
|
Gr.delete(c), f !== r && f.parentNode?.removeChild(f);
|
|
2479
2471
|
};
|
|
2480
2472
|
});
|
|
2481
|
-
return
|
|
2473
|
+
return jr.set(u, l), u;
|
|
2482
2474
|
}
|
|
2483
|
-
let
|
|
2475
|
+
let jr = /* @__PURE__ */ new WeakMap();
|
|
2484
2476
|
function Ga(e, t) {
|
|
2485
|
-
const r =
|
|
2486
|
-
return r ? (
|
|
2477
|
+
const r = jr.get(e);
|
|
2478
|
+
return r ? (jr.delete(e), r(t)) : Promise.resolve();
|
|
2487
2479
|
}
|
|
2488
2480
|
class gn {
|
|
2489
2481
|
/** @type {TemplateNode} */
|
|
@@ -2515,30 +2507,30 @@ class gn {
|
|
|
2515
2507
|
* Keys of effects that are currently outroing
|
|
2516
2508
|
* @type {Set<Key>}
|
|
2517
2509
|
*/
|
|
2518
|
-
#
|
|
2510
|
+
#o = /* @__PURE__ */ new Set();
|
|
2519
2511
|
/**
|
|
2520
2512
|
* Whether to pause (i.e. outro) on change, or destroy immediately.
|
|
2521
2513
|
* This is necessary for `<svelte:element>`
|
|
2522
2514
|
*/
|
|
2523
|
-
#
|
|
2515
|
+
#n = !0;
|
|
2524
2516
|
/**
|
|
2525
2517
|
* @param {TemplateNode} anchor
|
|
2526
2518
|
* @param {boolean} transition
|
|
2527
2519
|
*/
|
|
2528
2520
|
constructor(t, r = !0) {
|
|
2529
|
-
this.anchor = t, this.#
|
|
2521
|
+
this.anchor = t, this.#n = r;
|
|
2530
2522
|
}
|
|
2531
2523
|
/**
|
|
2532
2524
|
* @param {Batch} batch
|
|
2533
2525
|
*/
|
|
2534
|
-
#
|
|
2526
|
+
#i = (t) => {
|
|
2535
2527
|
if (this.#e.has(t)) {
|
|
2536
2528
|
var r = (
|
|
2537
2529
|
/** @type {Key} */
|
|
2538
2530
|
this.#e.get(t)
|
|
2539
2531
|
), n = this.#t.get(r);
|
|
2540
2532
|
if (n)
|
|
2541
|
-
rr(n), this.#
|
|
2533
|
+
rr(n), this.#o.delete(r);
|
|
2542
2534
|
else {
|
|
2543
2535
|
var i = this.#r.get(r);
|
|
2544
2536
|
i && (rr(i.effect), this.#t.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
|
|
@@ -2550,23 +2542,23 @@ class gn {
|
|
|
2550
2542
|
o && (q(o.effect), this.#r.delete(a));
|
|
2551
2543
|
}
|
|
2552
2544
|
for (const [s, a] of this.#t) {
|
|
2553
|
-
if (s === r || this.#
|
|
2545
|
+
if (s === r || this.#o.has(s)) continue;
|
|
2554
2546
|
const o = () => {
|
|
2555
2547
|
if (Array.from(this.#e.values()).includes(s)) {
|
|
2556
2548
|
var l = document.createDocumentFragment();
|
|
2557
|
-
|
|
2549
|
+
mn(a, l), l.append(Y()), this.#r.set(s, { effect: a, fragment: l });
|
|
2558
2550
|
} else
|
|
2559
2551
|
q(a);
|
|
2560
|
-
this.#
|
|
2552
|
+
this.#o.delete(s), this.#t.delete(s);
|
|
2561
2553
|
};
|
|
2562
|
-
this.#
|
|
2554
|
+
this.#n || !n ? (this.#o.add(s), Ue(a, o, !1)) : o();
|
|
2563
2555
|
}
|
|
2564
2556
|
}
|
|
2565
2557
|
};
|
|
2566
2558
|
/**
|
|
2567
2559
|
* @param {Batch} batch
|
|
2568
2560
|
*/
|
|
2569
|
-
#
|
|
2561
|
+
#a = (t) => {
|
|
2570
2562
|
this.#e.delete(t);
|
|
2571
2563
|
const r = Array.from(this.#e.values());
|
|
2572
2564
|
for (const [n, i] of this.#r)
|
|
@@ -2586,22 +2578,22 @@ class gn {
|
|
|
2586
2578
|
if (i) {
|
|
2587
2579
|
var s = document.createDocumentFragment(), a = Y();
|
|
2588
2580
|
s.append(a), this.#r.set(t, {
|
|
2589
|
-
effect:
|
|
2581
|
+
effect: ee(() => r(a)),
|
|
2590
2582
|
fragment: s
|
|
2591
2583
|
});
|
|
2592
2584
|
} else
|
|
2593
2585
|
this.#t.set(
|
|
2594
2586
|
t,
|
|
2595
|
-
|
|
2587
|
+
ee(() => r(this.anchor))
|
|
2596
2588
|
);
|
|
2597
2589
|
if (this.#e.set(n, t), i) {
|
|
2598
2590
|
for (const [o, u] of this.#t)
|
|
2599
2591
|
o === t ? n.unskip_effect(u) : n.skip_effect(u);
|
|
2600
2592
|
for (const [o, u] of this.#r)
|
|
2601
2593
|
o === t ? n.unskip_effect(u.effect) : n.skip_effect(u.effect);
|
|
2602
|
-
n.oncommit(this.#
|
|
2594
|
+
n.oncommit(this.#i), n.ondiscard(this.#a);
|
|
2603
2595
|
} else
|
|
2604
|
-
g && (this.anchor = E), this.#
|
|
2596
|
+
g && (this.anchor = E), this.#i(n);
|
|
2605
2597
|
}
|
|
2606
2598
|
}
|
|
2607
2599
|
function wl(e, t, ...r) {
|
|
@@ -2613,7 +2605,7 @@ function wl(e, t, ...r) {
|
|
|
2613
2605
|
}
|
|
2614
2606
|
function Tr(e, t, r = !1) {
|
|
2615
2607
|
var n;
|
|
2616
|
-
g && (n = E,
|
|
2608
|
+
g && (n = E, ke());
|
|
2617
2609
|
var i = new gn(e), s = r ? Ge : 0;
|
|
2618
2610
|
function a(o, u) {
|
|
2619
2611
|
if (g) {
|
|
@@ -2636,20 +2628,20 @@ function Tr(e, t, r = !1) {
|
|
|
2636
2628
|
}), o || a(-1, null);
|
|
2637
2629
|
}, s);
|
|
2638
2630
|
}
|
|
2639
|
-
const
|
|
2631
|
+
const ka = Symbol("NaN");
|
|
2640
2632
|
function Tl(e, t, r) {
|
|
2641
|
-
g &&
|
|
2633
|
+
g && ke();
|
|
2642
2634
|
var n = new gn(e);
|
|
2643
2635
|
Mt(() => {
|
|
2644
2636
|
var i = t();
|
|
2645
2637
|
i !== i && (i = /** @type {any} */
|
|
2646
|
-
|
|
2638
|
+
ka), n.ensure(i, r);
|
|
2647
2639
|
});
|
|
2648
2640
|
}
|
|
2649
2641
|
function Sl(e, t) {
|
|
2650
2642
|
return t;
|
|
2651
2643
|
}
|
|
2652
|
-
function
|
|
2644
|
+
function ja(e, t, r) {
|
|
2653
2645
|
for (var n = [], i = t.length, s, a = t.length, o = 0; o < i; o++) {
|
|
2654
2646
|
let h = t[o];
|
|
2655
2647
|
Ue(
|
|
@@ -2704,7 +2696,7 @@ function Vr(e, t, r = !0) {
|
|
|
2704
2696
|
if (n?.has(s)) {
|
|
2705
2697
|
s.f |= de;
|
|
2706
2698
|
const a = document.createDocumentFragment();
|
|
2707
|
-
|
|
2699
|
+
mn(s, a);
|
|
2708
2700
|
} else
|
|
2709
2701
|
q(t[i], r);
|
|
2710
2702
|
}
|
|
@@ -2717,9 +2709,9 @@ function Al(e, t, r, n, i, s = null) {
|
|
|
2717
2709
|
/** @type {Element} */
|
|
2718
2710
|
e
|
|
2719
2711
|
);
|
|
2720
|
-
a = g ? F(/* @__PURE__ */
|
|
2712
|
+
a = g ? F(/* @__PURE__ */ j(l)) : l.appendChild(Y());
|
|
2721
2713
|
}
|
|
2722
|
-
g &&
|
|
2714
|
+
g && ke();
|
|
2723
2715
|
var f = null, h = /* @__PURE__ */ bi(() => {
|
|
2724
2716
|
var b = r();
|
|
2725
2717
|
return (
|
|
@@ -2728,16 +2720,16 @@ function Al(e, t, r, n, i, s = null) {
|
|
|
2728
2720
|
);
|
|
2729
2721
|
}), c = /* @__PURE__ */ new Map(), d = !0;
|
|
2730
2722
|
function p(b) {
|
|
2731
|
-
if (!(
|
|
2732
|
-
|
|
2723
|
+
if (!(m.effect.f & U)) {
|
|
2724
|
+
m.pending.delete(b);
|
|
2733
2725
|
var A = N(h);
|
|
2734
|
-
|
|
2726
|
+
m.fallback = f, Va(m, A, a, t, n), f !== null && (A.length === 0 ? f.f & de ? (f.f ^= de, bt(f, null, a)) : rr(f) : Ue(f, () => {
|
|
2735
2727
|
f = null;
|
|
2736
2728
|
}));
|
|
2737
2729
|
}
|
|
2738
2730
|
}
|
|
2739
|
-
function
|
|
2740
|
-
|
|
2731
|
+
function _(b) {
|
|
2732
|
+
m.pending.delete(b);
|
|
2741
2733
|
}
|
|
2742
2734
|
var v = Mt(() => {
|
|
2743
2735
|
var b = (
|
|
@@ -2768,15 +2760,15 @@ function Al(e, t, r, n, i, s = null) {
|
|
|
2768
2760
|
r
|
|
2769
2761
|
), d || (re.e.f |= de), o.set(Ie, re)), $.add(Ie);
|
|
2770
2762
|
}
|
|
2771
|
-
if (A === 0 && s && !f && (d ? f =
|
|
2763
|
+
if (A === 0 && s && !f && (d ? f = ee(() => s(a)) : (f = ee(() => s(In ??= Y())), f.f |= de)), A > $.size && Ks(), g && A > 0 && F(Kt()), !d)
|
|
2772
2764
|
if (c.set(D, $), Se) {
|
|
2773
2765
|
for (const [gr, br] of o)
|
|
2774
2766
|
$.has(gr) || D.skip_effect(br.e);
|
|
2775
|
-
D.oncommit(p), D.ondiscard(
|
|
2767
|
+
D.oncommit(p), D.ondiscard(_);
|
|
2776
2768
|
} else
|
|
2777
2769
|
p(D);
|
|
2778
2770
|
H && ge(!0), N(h);
|
|
2779
|
-
}),
|
|
2771
|
+
}), m = { effect: v, items: o, pending: c, outrogroups: null, fallback: f };
|
|
2780
2772
|
d = !1, g && (a = E);
|
|
2781
2773
|
}
|
|
2782
2774
|
function pt(e) {
|
|
@@ -2785,14 +2777,14 @@ function pt(e) {
|
|
|
2785
2777
|
return e;
|
|
2786
2778
|
}
|
|
2787
2779
|
function Va(e, t, r, n, i) {
|
|
2788
|
-
var s = (n & Cs) !== 0, a = t.length, o = e.items, u = pt(e.effect.first), l, f = null, h, c = [], d = [], p,
|
|
2780
|
+
var s = (n & Cs) !== 0, a = t.length, o = e.items, u = pt(e.effect.first), l, f = null, h, c = [], d = [], p, _, v, m;
|
|
2789
2781
|
if (s)
|
|
2790
|
-
for (
|
|
2791
|
-
p = t[
|
|
2792
|
-
o.get(
|
|
2793
|
-
for (
|
|
2794
|
-
if (p = t[
|
|
2795
|
-
o.get(
|
|
2782
|
+
for (m = 0; m < a; m += 1)
|
|
2783
|
+
p = t[m], _ = i(p, m), v = /** @type {EachItem} */
|
|
2784
|
+
o.get(_).e, v.f & de || (v.nodes?.a?.measure(), (h ??= /* @__PURE__ */ new Set()).add(v));
|
|
2785
|
+
for (m = 0; m < a; m += 1) {
|
|
2786
|
+
if (p = t[m], _ = i(p, m), v = /** @type {EachItem} */
|
|
2787
|
+
o.get(_).e, e.outrogroups !== null)
|
|
2796
2788
|
for (const z of e.outrogroups)
|
|
2797
2789
|
z.pending.delete(v), z.done.delete(v);
|
|
2798
2790
|
if (v.f & V && (rr(v), s && (v.nodes?.a?.unfix(), (h ??= /* @__PURE__ */ new Set()).delete(v))), v.f & de)
|
|
@@ -2813,7 +2805,7 @@ function Va(e, t, r, n, i) {
|
|
|
2813
2805
|
bt(c[H], A, r);
|
|
2814
2806
|
for (H = 0; H < d.length; H += 1)
|
|
2815
2807
|
l.delete(d[H]);
|
|
2816
|
-
He(e, M.prev, $.next), He(e, f, M), He(e, $, A), u = A, f = $,
|
|
2808
|
+
He(e, M.prev, $.next), He(e, f, M), He(e, $, A), u = A, f = $, m -= 1, c = [], d = [];
|
|
2817
2809
|
} else
|
|
2818
2810
|
l.delete(v), bt(v, u, r), He(e, v.prev, v.next), He(e, v, f === null ? e.effect.first : f.next), He(e, f, v), f = v;
|
|
2819
2811
|
continue;
|
|
@@ -2841,12 +2833,12 @@ function Va(e, t, r, n, i) {
|
|
|
2841
2833
|
if (Se > 0) {
|
|
2842
2834
|
var O = n & Jn && a === 0 ? r : null;
|
|
2843
2835
|
if (s) {
|
|
2844
|
-
for (
|
|
2845
|
-
D[
|
|
2846
|
-
for (
|
|
2847
|
-
D[
|
|
2836
|
+
for (m = 0; m < Se; m += 1)
|
|
2837
|
+
D[m].nodes?.a?.measure();
|
|
2838
|
+
for (m = 0; m < Se; m += 1)
|
|
2839
|
+
D[m].nodes?.a?.fix();
|
|
2848
2840
|
}
|
|
2849
|
-
|
|
2841
|
+
ja(e, D, O);
|
|
2850
2842
|
}
|
|
2851
2843
|
}
|
|
2852
2844
|
s && be(() => {
|
|
@@ -2856,11 +2848,11 @@ function Va(e, t, r, n, i) {
|
|
|
2856
2848
|
});
|
|
2857
2849
|
}
|
|
2858
2850
|
function Xa(e, t, r, n, i, s, a, o) {
|
|
2859
|
-
var u = a & Ps ? a & Ms ?
|
|
2851
|
+
var u = a & Ps ? a & Ms ? je(r) : /* @__PURE__ */ dn(r, !1, !1) : null, l = a & Is ? je(i) : null;
|
|
2860
2852
|
return {
|
|
2861
2853
|
v: u,
|
|
2862
2854
|
i: l,
|
|
2863
|
-
e:
|
|
2855
|
+
e: ee(() => (s(t, u ?? r, l ?? i, o), () => {
|
|
2864
2856
|
e.delete(n);
|
|
2865
2857
|
}))
|
|
2866
2858
|
};
|
|
@@ -2890,7 +2882,7 @@ function Hl(e, t, r = !1, n = !1, i = !1, s = !1) {
|
|
|
2890
2882
|
/** @type {Element} */
|
|
2891
2883
|
e
|
|
2892
2884
|
);
|
|
2893
|
-
g && (a = F(/* @__PURE__ */
|
|
2885
|
+
g && (a = F(/* @__PURE__ */ j(u)));
|
|
2894
2886
|
}
|
|
2895
2887
|
qt(() => {
|
|
2896
2888
|
var l = (
|
|
@@ -2898,14 +2890,14 @@ function Hl(e, t, r = !1, n = !1, i = !1, s = !1) {
|
|
|
2898
2890
|
y
|
|
2899
2891
|
);
|
|
2900
2892
|
if (o === (o = t() ?? "")) {
|
|
2901
|
-
g &&
|
|
2893
|
+
g && ke();
|
|
2902
2894
|
return;
|
|
2903
2895
|
}
|
|
2904
2896
|
if (r && !g) {
|
|
2905
2897
|
l.nodes = null, u.innerHTML = /** @type {string} */
|
|
2906
|
-
o, o !== "" &&
|
|
2898
|
+
o, o !== "" && J(
|
|
2907
2899
|
/** @type {TemplateNode} */
|
|
2908
|
-
/* @__PURE__ */
|
|
2900
|
+
/* @__PURE__ */ j(u),
|
|
2909
2901
|
/** @type {TemplateNode} */
|
|
2910
2902
|
u.lastChild
|
|
2911
2903
|
);
|
|
@@ -2918,15 +2910,15 @@ function Hl(e, t, r = !1, n = !1, i = !1, s = !1) {
|
|
|
2918
2910
|
), l.nodes = null), o !== "") {
|
|
2919
2911
|
if (g) {
|
|
2920
2912
|
E.data;
|
|
2921
|
-
for (var f =
|
|
2913
|
+
for (var f = ke(), h = f; f !== null && (f.nodeType !== ut || /** @type {Comment} */
|
|
2922
2914
|
f.data !== ""); )
|
|
2923
2915
|
h = f, f = /* @__PURE__ */ ue(f);
|
|
2924
2916
|
if (f === null)
|
|
2925
2917
|
throw It(), ye;
|
|
2926
|
-
|
|
2918
|
+
J(E, h), a = F(f);
|
|
2927
2919
|
return;
|
|
2928
2920
|
}
|
|
2929
|
-
var c = n ? Gs : i ?
|
|
2921
|
+
var c = n ? Gs : i ? ks : void 0, d = (
|
|
2930
2922
|
/** @type {HTMLTemplateElement | SVGElement | MathMLElement} */
|
|
2931
2923
|
ur(n ? "svg" : i ? "math" : "template", c)
|
|
2932
2924
|
);
|
|
@@ -2936,16 +2928,16 @@ function Hl(e, t, r = !1, n = !1, i = !1, s = !1) {
|
|
|
2936
2928
|
/** @type {HTMLTemplateElement} */
|
|
2937
2929
|
d.content
|
|
2938
2930
|
);
|
|
2939
|
-
if (
|
|
2931
|
+
if (J(
|
|
2940
2932
|
/** @type {TemplateNode} */
|
|
2941
|
-
/* @__PURE__ */
|
|
2933
|
+
/* @__PURE__ */ j(p),
|
|
2942
2934
|
/** @type {TemplateNode} */
|
|
2943
2935
|
p.lastChild
|
|
2944
2936
|
), n || i)
|
|
2945
|
-
for (; /* @__PURE__ */
|
|
2937
|
+
for (; /* @__PURE__ */ j(p); )
|
|
2946
2938
|
a.before(
|
|
2947
2939
|
/** @type {TemplateNode} */
|
|
2948
|
-
/* @__PURE__ */
|
|
2940
|
+
/* @__PURE__ */ j(p)
|
|
2949
2941
|
);
|
|
2950
2942
|
else
|
|
2951
2943
|
a.before(p);
|
|
@@ -3058,7 +3050,10 @@ function Ol(e, t, r, n) {
|
|
|
3058
3050
|
const Ya = Symbol("is custom element"), Za = Symbol("is html"), Qa = Ws ? "link" : "LINK";
|
|
3059
3051
|
function Rn(e, t, r, n) {
|
|
3060
3052
|
var i = Ja(e);
|
|
3061
|
-
g && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Qa)
|
|
3053
|
+
if (!(g && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Qa))) {
|
|
3054
|
+
var s = i[t];
|
|
3055
|
+
s !== (i[t] = r) && (t === "loading" && (e[zs] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Ka(e).has(t) ? e[t] = r : g && (typeof r == "number" || typeof r == "boolean") && s === String(r) || e.setAttribute(t, r));
|
|
3056
|
+
}
|
|
3062
3057
|
}
|
|
3063
3058
|
function Ja(e) {
|
|
3064
3059
|
return (
|
|
@@ -3180,13 +3175,13 @@ function lt(e, t, r) {
|
|
|
3180
3175
|
const p = t(n ? l[0] : l, a, o);
|
|
3181
3176
|
s ? a(p) : h = typeof p == "function" ? p : Ee;
|
|
3182
3177
|
}, d = i.map(
|
|
3183
|
-
(p,
|
|
3178
|
+
(p, _) => bn(
|
|
3184
3179
|
p,
|
|
3185
3180
|
(v) => {
|
|
3186
|
-
l[
|
|
3181
|
+
l[_] = v, f &= ~(1 << _), u && c();
|
|
3187
3182
|
},
|
|
3188
3183
|
() => {
|
|
3189
|
-
f |= 1 <<
|
|
3184
|
+
f |= 1 << _;
|
|
3190
3185
|
}
|
|
3191
3186
|
)
|
|
3192
3187
|
);
|
|
@@ -3267,25 +3262,25 @@ function Ye(e, t, r, n) {
|
|
|
3267
3262
|
e[t]
|
|
3268
3263
|
)) : d = /** @type {V} */
|
|
3269
3264
|
e[t], d === void 0 && n !== void 0 && (d = f(), h && (sa(), h(d)));
|
|
3270
|
-
var
|
|
3271
|
-
if (
|
|
3265
|
+
var _;
|
|
3266
|
+
if (_ = () => {
|
|
3272
3267
|
var H = (
|
|
3273
3268
|
/** @type {V} */
|
|
3274
3269
|
e[t]
|
|
3275
3270
|
);
|
|
3276
3271
|
return H === void 0 ? f() : (u = !0, H);
|
|
3277
3272
|
}, !(r & Rs))
|
|
3278
|
-
return
|
|
3273
|
+
return _;
|
|
3279
3274
|
if (h) {
|
|
3280
3275
|
var v = e.$$legacy;
|
|
3281
3276
|
return (
|
|
3282
3277
|
/** @type {() => V} */
|
|
3283
3278
|
function(H, M) {
|
|
3284
|
-
return arguments.length > 0 ? ((!M || v || p) && h(M ?
|
|
3279
|
+
return arguments.length > 0 ? ((!M || v || p) && h(M ? _() : H), H) : _();
|
|
3285
3280
|
}
|
|
3286
3281
|
);
|
|
3287
3282
|
}
|
|
3288
|
-
var
|
|
3283
|
+
var m = !1, b = (r & Ls ? St : bi)(() => (m = !1, _()));
|
|
3289
3284
|
s && N(b);
|
|
3290
3285
|
var A = (
|
|
3291
3286
|
/** @type {Effect} */
|
|
@@ -3296,9 +3291,9 @@ function Ye(e, t, r, n) {
|
|
|
3296
3291
|
function(H, M) {
|
|
3297
3292
|
if (arguments.length > 0) {
|
|
3298
3293
|
const $ = M ? N(b) : s ? Ze(H) : H;
|
|
3299
|
-
return fe(b, $),
|
|
3294
|
+
return fe(b, $), m = !0, o !== void 0 && (o = $), H;
|
|
3300
3295
|
}
|
|
3301
|
-
return Te &&
|
|
3296
|
+
return Te && m || A.f & U ? b.v : N(b);
|
|
3302
3297
|
}
|
|
3303
3298
|
);
|
|
3304
3299
|
}
|
|
@@ -3630,13 +3625,13 @@ var co = typeof Symbol == "function" && Symbol.for, po = co ? Symbol.for("react.
|
|
|
3630
3625
|
function vo(e) {
|
|
3631
3626
|
return e.$$typeof === po;
|
|
3632
3627
|
}
|
|
3633
|
-
function
|
|
3628
|
+
function _o(e) {
|
|
3634
3629
|
return Array.isArray(e) ? [] : {};
|
|
3635
3630
|
}
|
|
3636
3631
|
function Ht(e, t) {
|
|
3637
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? it(
|
|
3632
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? it(_o(e), e, t) : e;
|
|
3638
3633
|
}
|
|
3639
|
-
function
|
|
3634
|
+
function mo(e, t, r) {
|
|
3640
3635
|
return e.concat(t).map(function(n) {
|
|
3641
3636
|
return Ht(n, r);
|
|
3642
3637
|
});
|
|
@@ -3674,7 +3669,7 @@ function yo(e, t, r) {
|
|
|
3674
3669
|
}), n;
|
|
3675
3670
|
}
|
|
3676
3671
|
function it(e, t, r) {
|
|
3677
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
3672
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || mo, r.isMergeableObject = r.isMergeableObject || lo, r.cloneUnlessOtherwiseSpecified = Ht;
|
|
3678
3673
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
3679
3674
|
return s ? n ? r.arrayMerge(e, t, r) : yo(e, t, r) : Ht(t, r);
|
|
3680
3675
|
}
|
|
@@ -3782,44 +3777,44 @@ var Bo = function() {
|
|
|
3782
3777
|
return t;
|
|
3783
3778
|
}, nr.apply(this, arguments);
|
|
3784
3779
|
};
|
|
3785
|
-
var
|
|
3780
|
+
var w;
|
|
3786
3781
|
(function(e) {
|
|
3787
3782
|
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";
|
|
3788
|
-
})(
|
|
3789
|
-
var
|
|
3783
|
+
})(w || (w = {}));
|
|
3784
|
+
var P;
|
|
3790
3785
|
(function(e) {
|
|
3791
3786
|
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";
|
|
3792
|
-
})(
|
|
3787
|
+
})(P || (P = {}));
|
|
3793
3788
|
var st;
|
|
3794
3789
|
(function(e) {
|
|
3795
3790
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
3796
3791
|
})(st || (st = {}));
|
|
3797
3792
|
function Un(e) {
|
|
3798
|
-
return e.type ===
|
|
3793
|
+
return e.type === P.literal;
|
|
3799
3794
|
}
|
|
3800
3795
|
function Co(e) {
|
|
3801
|
-
return e.type ===
|
|
3796
|
+
return e.type === P.argument;
|
|
3802
3797
|
}
|
|
3803
3798
|
function ns(e) {
|
|
3804
|
-
return e.type ===
|
|
3799
|
+
return e.type === P.number;
|
|
3805
3800
|
}
|
|
3806
3801
|
function is(e) {
|
|
3807
|
-
return e.type ===
|
|
3802
|
+
return e.type === P.date;
|
|
3808
3803
|
}
|
|
3809
3804
|
function ss(e) {
|
|
3810
|
-
return e.type ===
|
|
3805
|
+
return e.type === P.time;
|
|
3811
3806
|
}
|
|
3812
3807
|
function as(e) {
|
|
3813
|
-
return e.type ===
|
|
3808
|
+
return e.type === P.select;
|
|
3814
3809
|
}
|
|
3815
3810
|
function os(e) {
|
|
3816
|
-
return e.type ===
|
|
3811
|
+
return e.type === P.plural;
|
|
3817
3812
|
}
|
|
3818
3813
|
function Mo(e) {
|
|
3819
|
-
return e.type ===
|
|
3814
|
+
return e.type === P.pound;
|
|
3820
3815
|
}
|
|
3821
3816
|
function us(e) {
|
|
3822
|
-
return e.type ===
|
|
3817
|
+
return e.type === P.tag;
|
|
3823
3818
|
}
|
|
3824
3819
|
function ls(e) {
|
|
3825
3820
|
return !!(e && typeof e == "object" && e.type === st.number);
|
|
@@ -3919,14 +3914,14 @@ function Ro(e) {
|
|
|
3919
3914
|
return "";
|
|
3920
3915
|
}), t;
|
|
3921
3916
|
}
|
|
3922
|
-
var
|
|
3923
|
-
return
|
|
3917
|
+
var I = function() {
|
|
3918
|
+
return I = Object.assign || function(t) {
|
|
3924
3919
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
3925
3920
|
r = arguments[n];
|
|
3926
3921
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
3927
3922
|
}
|
|
3928
3923
|
return t;
|
|
3929
|
-
},
|
|
3924
|
+
}, I.apply(this, arguments);
|
|
3930
3925
|
};
|
|
3931
3926
|
var $o = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
3932
3927
|
function Do(e) {
|
|
@@ -4011,11 +4006,11 @@ function Go(e) {
|
|
|
4011
4006
|
}
|
|
4012
4007
|
return t;
|
|
4013
4008
|
}
|
|
4014
|
-
function
|
|
4009
|
+
function kn(e) {
|
|
4015
4010
|
var t = {}, r = ds(e);
|
|
4016
4011
|
return r || t;
|
|
4017
4012
|
}
|
|
4018
|
-
function
|
|
4013
|
+
function ko(e) {
|
|
4019
4014
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
4020
4015
|
var i = n[r];
|
|
4021
4016
|
switch (i.stem) {
|
|
@@ -4050,13 +4045,13 @@ function jo(e) {
|
|
|
4050
4045
|
t.notation = "compact", t.compactDisplay = "long";
|
|
4051
4046
|
continue;
|
|
4052
4047
|
case "scientific":
|
|
4053
|
-
t =
|
|
4054
|
-
return
|
|
4048
|
+
t = I(I(I({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
4049
|
+
return I(I({}, u), kn(l));
|
|
4055
4050
|
}, {}));
|
|
4056
4051
|
continue;
|
|
4057
4052
|
case "engineering":
|
|
4058
|
-
t =
|
|
4059
|
-
return
|
|
4053
|
+
t = I(I(I({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
4054
|
+
return I(I({}, u), kn(l));
|
|
4060
4055
|
}, {}));
|
|
4061
4056
|
continue;
|
|
4062
4057
|
case "notation-simple":
|
|
@@ -4125,21 +4120,21 @@ function jo(e) {
|
|
|
4125
4120
|
return f === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
4126
4121
|
});
|
|
4127
4122
|
var s = i.options[0];
|
|
4128
|
-
s === "w" ? t =
|
|
4123
|
+
s === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = I(I({}, t), Gn(s)));
|
|
4129
4124
|
continue;
|
|
4130
4125
|
}
|
|
4131
4126
|
if (hs.test(i.stem)) {
|
|
4132
|
-
t =
|
|
4127
|
+
t = I(I({}, t), Gn(i.stem));
|
|
4133
4128
|
continue;
|
|
4134
4129
|
}
|
|
4135
4130
|
var a = ds(i.stem);
|
|
4136
|
-
a && (t =
|
|
4131
|
+
a && (t = I(I({}, t), a));
|
|
4137
4132
|
var o = Go(i.stem);
|
|
4138
|
-
o && (t =
|
|
4133
|
+
o && (t = I(I({}, t), o));
|
|
4139
4134
|
}
|
|
4140
4135
|
return t;
|
|
4141
4136
|
}
|
|
4142
|
-
var
|
|
4137
|
+
var kt = {
|
|
4143
4138
|
"001": [
|
|
4144
4139
|
"H",
|
|
4145
4140
|
"h"
|
|
@@ -5554,7 +5549,7 @@ var jt = {
|
|
|
5554
5549
|
"h"
|
|
5555
5550
|
]
|
|
5556
5551
|
};
|
|
5557
|
-
function
|
|
5552
|
+
function jo(e, t) {
|
|
5558
5553
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
5559
5554
|
var i = e.charAt(n);
|
|
5560
5555
|
if (i === "j") {
|
|
@@ -5588,7 +5583,7 @@ function Vo(e) {
|
|
|
5588
5583
|
}
|
|
5589
5584
|
var r = e.language, n;
|
|
5590
5585
|
r !== "root" && (n = e.maximize().region);
|
|
5591
|
-
var i =
|
|
5586
|
+
var i = kt[n || ""] || kt[r || ""] || kt["".concat(r, "-001")] || kt["001"];
|
|
5592
5587
|
return i[0];
|
|
5593
5588
|
}
|
|
5594
5589
|
var Br, Xo = new RegExp("^".concat(fs.source, "*")), qo = new RegExp("".concat(fs.source, "*$"));
|
|
@@ -5604,7 +5599,7 @@ try {
|
|
|
5604
5599
|
} catch {
|
|
5605
5600
|
Wr = !1;
|
|
5606
5601
|
}
|
|
5607
|
-
var
|
|
5602
|
+
var jn = zo ? (
|
|
5608
5603
|
// Native
|
|
5609
5604
|
function(t, r, n) {
|
|
5610
5605
|
return t.startsWith(r, n);
|
|
@@ -5689,7 +5684,7 @@ if (Wr) {
|
|
|
5689
5684
|
Zr = function(t, r) {
|
|
5690
5685
|
for (var n = []; ; ) {
|
|
5691
5686
|
var i = ps(t, r);
|
|
5692
|
-
if (i === void 0 ||
|
|
5687
|
+
if (i === void 0 || _s(i) || ou(i))
|
|
5693
5688
|
break;
|
|
5694
5689
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
5695
5690
|
}
|
|
@@ -5719,13 +5714,13 @@ var iu = (
|
|
|
5719
5714
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
5720
5715
|
var o = this.clonePosition();
|
|
5721
5716
|
this.bump(), i.push({
|
|
5722
|
-
type:
|
|
5717
|
+
type: P.pound,
|
|
5723
5718
|
location: T(o, this.clonePosition())
|
|
5724
5719
|
});
|
|
5725
5720
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
5726
5721
|
if (n)
|
|
5727
5722
|
break;
|
|
5728
|
-
return this.error(
|
|
5723
|
+
return this.error(w.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
|
|
5729
5724
|
} else if (s === 60 && !this.ignoreTag && Qr(this.peek() || 0)) {
|
|
5730
5725
|
var a = this.parseTag(t, r);
|
|
5731
5726
|
if (a.err)
|
|
@@ -5747,7 +5742,7 @@ var iu = (
|
|
|
5747
5742
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
5748
5743
|
return {
|
|
5749
5744
|
val: {
|
|
5750
|
-
type:
|
|
5745
|
+
type: P.literal,
|
|
5751
5746
|
value: "<".concat(i, "/>"),
|
|
5752
5747
|
location: T(n, this.clonePosition())
|
|
5753
5748
|
},
|
|
@@ -5760,21 +5755,21 @@ var iu = (
|
|
|
5760
5755
|
var a = s.val, o = this.clonePosition();
|
|
5761
5756
|
if (this.bumpIf("</")) {
|
|
5762
5757
|
if (this.isEOF() || !Qr(this.char()))
|
|
5763
|
-
return this.error(
|
|
5758
|
+
return this.error(w.INVALID_TAG, T(o, this.clonePosition()));
|
|
5764
5759
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
5765
|
-
return i !== l ? this.error(
|
|
5760
|
+
return i !== l ? this.error(w.UNMATCHED_CLOSING_TAG, T(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
5766
5761
|
val: {
|
|
5767
|
-
type:
|
|
5762
|
+
type: P.tag,
|
|
5768
5763
|
value: i,
|
|
5769
5764
|
children: a,
|
|
5770
5765
|
location: T(n, this.clonePosition())
|
|
5771
5766
|
},
|
|
5772
5767
|
err: null
|
|
5773
|
-
} : this.error(
|
|
5768
|
+
} : this.error(w.INVALID_TAG, T(o, this.clonePosition())));
|
|
5774
5769
|
} else
|
|
5775
|
-
return this.error(
|
|
5770
|
+
return this.error(w.UNCLOSED_TAG, T(n, this.clonePosition()));
|
|
5776
5771
|
} else
|
|
5777
|
-
return this.error(
|
|
5772
|
+
return this.error(w.INVALID_TAG, T(n, this.clonePosition()));
|
|
5778
5773
|
}, e.prototype.parseTagName = function() {
|
|
5779
5774
|
var t = this.offset();
|
|
5780
5775
|
for (this.bump(); !this.isEOF() && au(this.char()); )
|
|
@@ -5801,7 +5796,7 @@ var iu = (
|
|
|
5801
5796
|
}
|
|
5802
5797
|
var u = T(n, this.clonePosition());
|
|
5803
5798
|
return {
|
|
5804
|
-
val: { type:
|
|
5799
|
+
val: { type: P.literal, value: i, location: u },
|
|
5805
5800
|
err: null
|
|
5806
5801
|
};
|
|
5807
5802
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -5849,19 +5844,19 @@ var iu = (
|
|
|
5849
5844
|
}, e.prototype.parseArgument = function(t, r) {
|
|
5850
5845
|
var n = this.clonePosition();
|
|
5851
5846
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
5852
|
-
return this.error(
|
|
5847
|
+
return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
|
|
5853
5848
|
if (this.char() === 125)
|
|
5854
|
-
return this.bump(), this.error(
|
|
5849
|
+
return this.bump(), this.error(w.EMPTY_ARGUMENT, T(n, this.clonePosition()));
|
|
5855
5850
|
var i = this.parseIdentifierIfPossible().value;
|
|
5856
5851
|
if (!i)
|
|
5857
|
-
return this.error(
|
|
5852
|
+
return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
|
5858
5853
|
if (this.bumpSpace(), this.isEOF())
|
|
5859
|
-
return this.error(
|
|
5854
|
+
return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
|
|
5860
5855
|
switch (this.char()) {
|
|
5861
5856
|
case 125:
|
|
5862
5857
|
return this.bump(), {
|
|
5863
5858
|
val: {
|
|
5864
|
-
type:
|
|
5859
|
+
type: P.argument,
|
|
5865
5860
|
// value does not include the opening and closing braces.
|
|
5866
5861
|
value: i,
|
|
5867
5862
|
location: T(n, this.clonePosition())
|
|
@@ -5869,9 +5864,9 @@ var iu = (
|
|
|
5869
5864
|
err: null
|
|
5870
5865
|
};
|
|
5871
5866
|
case 44:
|
|
5872
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
5867
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
5873
5868
|
default:
|
|
5874
|
-
return this.error(
|
|
5869
|
+
return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
|
5875
5870
|
}
|
|
5876
5871
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
5877
5872
|
var t = this.clonePosition(), r = this.offset(), n = Zr(this.message, r), i = r + n.length;
|
|
@@ -5882,7 +5877,7 @@ var iu = (
|
|
|
5882
5877
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
5883
5878
|
switch (o) {
|
|
5884
5879
|
case "":
|
|
5885
|
-
return this.error(
|
|
5880
|
+
return this.error(w.EXPECT_ARGUMENT_TYPE, T(a, u));
|
|
5886
5881
|
case "number":
|
|
5887
5882
|
case "date":
|
|
5888
5883
|
case "time": {
|
|
@@ -5895,44 +5890,44 @@ var iu = (
|
|
|
5895
5890
|
return h;
|
|
5896
5891
|
var c = nu(h.val);
|
|
5897
5892
|
if (c.length === 0)
|
|
5898
|
-
return this.error(
|
|
5893
|
+
return this.error(w.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
|
|
5899
5894
|
var d = T(f, this.clonePosition());
|
|
5900
5895
|
l = { style: c, styleLocation: d };
|
|
5901
5896
|
}
|
|
5902
5897
|
var p = this.tryParseArgumentClose(i);
|
|
5903
5898
|
if (p.err)
|
|
5904
5899
|
return p;
|
|
5905
|
-
var
|
|
5906
|
-
if (l &&
|
|
5900
|
+
var _ = T(i, this.clonePosition());
|
|
5901
|
+
if (l && jn(l?.style, "::", 0)) {
|
|
5907
5902
|
var v = ru(l.style.slice(2));
|
|
5908
5903
|
if (o === "number") {
|
|
5909
5904
|
var h = this.parseNumberSkeletonFromString(v, l.styleLocation);
|
|
5910
5905
|
return h.err ? h : {
|
|
5911
|
-
val: { type:
|
|
5906
|
+
val: { type: P.number, value: n, location: _, style: h.val },
|
|
5912
5907
|
err: null
|
|
5913
5908
|
};
|
|
5914
5909
|
} else {
|
|
5915
5910
|
if (v.length === 0)
|
|
5916
|
-
return this.error(
|
|
5917
|
-
var
|
|
5918
|
-
this.locale && (
|
|
5911
|
+
return this.error(w.EXPECT_DATE_TIME_SKELETON, _);
|
|
5912
|
+
var m = v;
|
|
5913
|
+
this.locale && (m = jo(v, this.locale));
|
|
5919
5914
|
var c = {
|
|
5920
5915
|
type: st.dateTime,
|
|
5921
|
-
pattern:
|
|
5916
|
+
pattern: m,
|
|
5922
5917
|
location: l.styleLocation,
|
|
5923
|
-
parsedOptions: this.shouldParseSkeletons ? Ro(
|
|
5924
|
-
}, b = o === "date" ?
|
|
5918
|
+
parsedOptions: this.shouldParseSkeletons ? Ro(m) : {}
|
|
5919
|
+
}, b = o === "date" ? P.date : P.time;
|
|
5925
5920
|
return {
|
|
5926
|
-
val: { type: b, value: n, location:
|
|
5921
|
+
val: { type: b, value: n, location: _, style: c },
|
|
5927
5922
|
err: null
|
|
5928
5923
|
};
|
|
5929
5924
|
}
|
|
5930
5925
|
}
|
|
5931
5926
|
return {
|
|
5932
5927
|
val: {
|
|
5933
|
-
type: o === "number" ?
|
|
5928
|
+
type: o === "number" ? P.number : o === "date" ? P.date : P.time,
|
|
5934
5929
|
value: n,
|
|
5935
|
-
location:
|
|
5930
|
+
location: _,
|
|
5936
5931
|
style: (s = l?.style) !== null && s !== void 0 ? s : null
|
|
5937
5932
|
},
|
|
5938
5933
|
err: null
|
|
@@ -5943,14 +5938,14 @@ var iu = (
|
|
|
5943
5938
|
case "select": {
|
|
5944
5939
|
var A = this.clonePosition();
|
|
5945
5940
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
5946
|
-
return this.error(
|
|
5941
|
+
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, T(A, nr({}, A)));
|
|
5947
5942
|
this.bumpSpace();
|
|
5948
5943
|
var H = this.parseIdentifierIfPossible(), M = 0;
|
|
5949
5944
|
if (o !== "select" && H.value === "offset") {
|
|
5950
5945
|
if (!this.bumpIf(":"))
|
|
5951
|
-
return this.error(
|
|
5946
|
+
return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
|
|
5952
5947
|
this.bumpSpace();
|
|
5953
|
-
var h = this.tryParseDecimalInteger(
|
|
5948
|
+
var h = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
5954
5949
|
if (h.err)
|
|
5955
5950
|
return h;
|
|
5956
5951
|
this.bumpSpace(), H = this.parseIdentifierIfPossible(), M = h.val;
|
|
@@ -5964,7 +5959,7 @@ var iu = (
|
|
|
5964
5959
|
var D = T(i, this.clonePosition());
|
|
5965
5960
|
return o === "select" ? {
|
|
5966
5961
|
val: {
|
|
5967
|
-
type:
|
|
5962
|
+
type: P.select,
|
|
5968
5963
|
value: n,
|
|
5969
5964
|
options: Vn($.val),
|
|
5970
5965
|
location: D
|
|
@@ -5972,7 +5967,7 @@ var iu = (
|
|
|
5972
5967
|
err: null
|
|
5973
5968
|
} : {
|
|
5974
5969
|
val: {
|
|
5975
|
-
type:
|
|
5970
|
+
type: P.plural,
|
|
5976
5971
|
value: n,
|
|
5977
5972
|
options: Vn($.val),
|
|
5978
5973
|
offset: M,
|
|
@@ -5983,10 +5978,10 @@ var iu = (
|
|
|
5983
5978
|
};
|
|
5984
5979
|
}
|
|
5985
5980
|
default:
|
|
5986
|
-
return this.error(
|
|
5981
|
+
return this.error(w.INVALID_ARGUMENT_TYPE, T(a, u));
|
|
5987
5982
|
}
|
|
5988
5983
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
5989
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
5984
|
+
return this.isEOF() || this.char() !== 125 ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
5990
5985
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
5991
5986
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
5992
5987
|
var n = this.char();
|
|
@@ -5995,7 +5990,7 @@ var iu = (
|
|
|
5995
5990
|
this.bump();
|
|
5996
5991
|
var i = this.clonePosition();
|
|
5997
5992
|
if (!this.bumpUntil("'"))
|
|
5998
|
-
return this.error(
|
|
5993
|
+
return this.error(w.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, T(i, this.clonePosition()));
|
|
5999
5994
|
this.bump();
|
|
6000
5995
|
break;
|
|
6001
5996
|
}
|
|
@@ -6027,14 +6022,14 @@ var iu = (
|
|
|
6027
6022
|
try {
|
|
6028
6023
|
n = Do(t);
|
|
6029
6024
|
} catch {
|
|
6030
|
-
return this.error(
|
|
6025
|
+
return this.error(w.INVALID_NUMBER_SKELETON, r);
|
|
6031
6026
|
}
|
|
6032
6027
|
return {
|
|
6033
6028
|
val: {
|
|
6034
6029
|
type: st.number,
|
|
6035
6030
|
tokens: n,
|
|
6036
6031
|
location: r,
|
|
6037
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
6032
|
+
parsedOptions: this.shouldParseSkeletons ? ko(n) : {}
|
|
6038
6033
|
},
|
|
6039
6034
|
err: null
|
|
6040
6035
|
};
|
|
@@ -6043,7 +6038,7 @@ var iu = (
|
|
|
6043
6038
|
if (l.length === 0) {
|
|
6044
6039
|
var h = this.clonePosition();
|
|
6045
6040
|
if (r !== "select" && this.bumpIf("=")) {
|
|
6046
|
-
var c = this.tryParseDecimalInteger(
|
|
6041
|
+
var c = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
6047
6042
|
if (c.err)
|
|
6048
6043
|
return c;
|
|
6049
6044
|
f = T(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
|
|
@@ -6051,17 +6046,17 @@ var iu = (
|
|
|
6051
6046
|
break;
|
|
6052
6047
|
}
|
|
6053
6048
|
if (u.has(l))
|
|
6054
|
-
return this.error(r === "select" ?
|
|
6049
|
+
return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
6055
6050
|
l === "other" && (a = !0), this.bumpSpace();
|
|
6056
6051
|
var d = this.clonePosition();
|
|
6057
6052
|
if (!this.bumpIf("{"))
|
|
6058
|
-
return this.error(r === "select" ?
|
|
6053
|
+
return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
|
|
6059
6054
|
var p = this.parseMessage(t + 1, r, n);
|
|
6060
6055
|
if (p.err)
|
|
6061
6056
|
return p;
|
|
6062
|
-
var
|
|
6063
|
-
if (
|
|
6064
|
-
return
|
|
6057
|
+
var _ = this.tryParseArgumentClose(d);
|
|
6058
|
+
if (_.err)
|
|
6059
|
+
return _;
|
|
6065
6060
|
o.push([
|
|
6066
6061
|
l,
|
|
6067
6062
|
{
|
|
@@ -6070,7 +6065,7 @@ var iu = (
|
|
|
6070
6065
|
}
|
|
6071
6066
|
]), u.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, f = s.location;
|
|
6072
6067
|
}
|
|
6073
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
6068
|
+
return o.length === 0 ? this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR : w.EXPECT_PLURAL_ARGUMENT_SELECTOR, T(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(w.MISSING_OTHER_CLAUSE, T(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
6074
6069
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
6075
6070
|
var n = 1, i = this.clonePosition();
|
|
6076
6071
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -6116,7 +6111,7 @@ var iu = (
|
|
|
6116
6111
|
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);
|
|
6117
6112
|
}
|
|
6118
6113
|
}, e.prototype.bumpIf = function(t) {
|
|
6119
|
-
if (
|
|
6114
|
+
if (jn(this.message, t, this.offset())) {
|
|
6120
6115
|
for (var r = 0; r < t.length; r++)
|
|
6121
6116
|
this.bump();
|
|
6122
6117
|
return !0;
|
|
@@ -6138,7 +6133,7 @@ var iu = (
|
|
|
6138
6133
|
break;
|
|
6139
6134
|
}
|
|
6140
6135
|
}, e.prototype.bumpSpace = function() {
|
|
6141
|
-
for (; !this.isEOF() &&
|
|
6136
|
+
for (; !this.isEOF() && _s(this.char()); )
|
|
6142
6137
|
this.bump();
|
|
6143
6138
|
}, e.prototype.peek = function() {
|
|
6144
6139
|
if (this.isEOF())
|
|
@@ -6157,7 +6152,7 @@ function su(e) {
|
|
|
6157
6152
|
function au(e) {
|
|
6158
6153
|
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;
|
|
6159
6154
|
}
|
|
6160
|
-
function
|
|
6155
|
+
function _s(e) {
|
|
6161
6156
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
6162
6157
|
}
|
|
6163
6158
|
function ou(e) {
|
|
@@ -6175,7 +6170,7 @@ function uu(e, t) {
|
|
|
6175
6170
|
t === void 0 && (t = {}), t = nr({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
6176
6171
|
var r = new iu(e, t).parse();
|
|
6177
6172
|
if (r.err) {
|
|
6178
|
-
var n = SyntaxError(
|
|
6173
|
+
var n = SyntaxError(w[r.err.kind]);
|
|
6179
6174
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
6180
6175
|
}
|
|
6181
6176
|
return t?.captureLocation || Jr(r.val), r.val;
|
|
@@ -6223,14 +6218,14 @@ var vr = (
|
|
|
6223
6218
|
}
|
|
6224
6219
|
return t;
|
|
6225
6220
|
}(vr)
|
|
6226
|
-
),
|
|
6221
|
+
), k;
|
|
6227
6222
|
(function(e) {
|
|
6228
6223
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
6229
|
-
})(
|
|
6224
|
+
})(k || (k = {}));
|
|
6230
6225
|
function hu(e) {
|
|
6231
6226
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
6232
6227
|
var n = t[t.length - 1];
|
|
6233
|
-
return !n || n.type !==
|
|
6228
|
+
return !n || n.type !== k.literal || r.type !== k.literal ? t.push(r) : n.value += r.value, t;
|
|
6234
6229
|
}, []);
|
|
6235
6230
|
}
|
|
6236
6231
|
function cu(e) {
|
|
@@ -6240,7 +6235,7 @@ function Wt(e, t, r, n, i, s, a) {
|
|
|
6240
6235
|
if (e.length === 1 && Un(e[0]))
|
|
6241
6236
|
return [
|
|
6242
6237
|
{
|
|
6243
|
-
type:
|
|
6238
|
+
type: k.literal,
|
|
6244
6239
|
value: e[0].value
|
|
6245
6240
|
}
|
|
6246
6241
|
];
|
|
@@ -6248,14 +6243,14 @@ function Wt(e, t, r, n, i, s, a) {
|
|
|
6248
6243
|
var f = l[u];
|
|
6249
6244
|
if (Un(f)) {
|
|
6250
6245
|
o.push({
|
|
6251
|
-
type:
|
|
6246
|
+
type: k.literal,
|
|
6252
6247
|
value: f.value
|
|
6253
6248
|
});
|
|
6254
6249
|
continue;
|
|
6255
6250
|
}
|
|
6256
6251
|
if (Mo(f)) {
|
|
6257
6252
|
typeof s == "number" && o.push({
|
|
6258
|
-
type:
|
|
6253
|
+
type: k.literal,
|
|
6259
6254
|
value: r.getNumberFormat(t).format(s)
|
|
6260
6255
|
});
|
|
6261
6256
|
continue;
|
|
@@ -6266,7 +6261,7 @@ function Wt(e, t, r, n, i, s, a) {
|
|
|
6266
6261
|
var c = i[h];
|
|
6267
6262
|
if (Co(f)) {
|
|
6268
6263
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
6269
|
-
type: typeof c == "string" ?
|
|
6264
|
+
type: typeof c == "string" ? k.literal : k.object,
|
|
6270
6265
|
value: c
|
|
6271
6266
|
});
|
|
6272
6267
|
continue;
|
|
@@ -6274,7 +6269,7 @@ function Wt(e, t, r, n, i, s, a) {
|
|
|
6274
6269
|
if (is(f)) {
|
|
6275
6270
|
var d = typeof f.style == "string" ? n.date[f.style] : zr(f.style) ? f.style.parsedOptions : void 0;
|
|
6276
6271
|
o.push({
|
|
6277
|
-
type:
|
|
6272
|
+
type: k.literal,
|
|
6278
6273
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
6279
6274
|
});
|
|
6280
6275
|
continue;
|
|
@@ -6282,7 +6277,7 @@ function Wt(e, t, r, n, i, s, a) {
|
|
|
6282
6277
|
if (ss(f)) {
|
|
6283
6278
|
var d = typeof f.style == "string" ? n.time[f.style] : zr(f.style) ? f.style.parsedOptions : n.time.medium;
|
|
6284
6279
|
o.push({
|
|
6285
|
-
type:
|
|
6280
|
+
type: k.literal,
|
|
6286
6281
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
6287
6282
|
});
|
|
6288
6283
|
continue;
|
|
@@ -6290,21 +6285,21 @@ function Wt(e, t, r, n, i, s, a) {
|
|
|
6290
6285
|
if (ns(f)) {
|
|
6291
6286
|
var d = typeof f.style == "string" ? n.number[f.style] : ls(f.style) ? f.style.parsedOptions : void 0;
|
|
6292
6287
|
d && d.scale && (c = c * (d.scale || 1)), o.push({
|
|
6293
|
-
type:
|
|
6288
|
+
type: k.literal,
|
|
6294
6289
|
value: r.getNumberFormat(t, d).format(c)
|
|
6295
6290
|
});
|
|
6296
6291
|
continue;
|
|
6297
6292
|
}
|
|
6298
6293
|
if (us(f)) {
|
|
6299
|
-
var p = f.children,
|
|
6294
|
+
var p = f.children, _ = f.value, v = i[_];
|
|
6300
6295
|
if (!cu(v))
|
|
6301
|
-
throw new lu(
|
|
6302
|
-
var
|
|
6296
|
+
throw new lu(_, "function", a);
|
|
6297
|
+
var m = Wt(p, t, r, n, i, s), b = v(m.map(function(M) {
|
|
6303
6298
|
return M.value;
|
|
6304
6299
|
}));
|
|
6305
6300
|
Array.isArray(b) || (b = [b]), o.push.apply(o, b.map(function(M) {
|
|
6306
6301
|
return {
|
|
6307
|
-
type: typeof M == "string" ?
|
|
6302
|
+
type: typeof M == "string" ? k.literal : k.object,
|
|
6308
6303
|
value: M
|
|
6309
6304
|
};
|
|
6310
6305
|
}));
|
|
@@ -6390,7 +6385,7 @@ function vu(e) {
|
|
|
6390
6385
|
})
|
|
6391
6386
|
};
|
|
6392
6387
|
}
|
|
6393
|
-
var
|
|
6388
|
+
var _u = (
|
|
6394
6389
|
/** @class */
|
|
6395
6390
|
function() {
|
|
6396
6391
|
function e(t, r, n, i) {
|
|
@@ -6405,7 +6400,7 @@ var mu = (
|
|
|
6405
6400
|
if (l.length === 1)
|
|
6406
6401
|
return l[0].value;
|
|
6407
6402
|
var f = l.reduce(function(h, c) {
|
|
6408
|
-
return !h.length || c.type !==
|
|
6403
|
+
return !h.length || c.type !== k.literal || typeof h[h.length - 1] != "string" ? h.push(c.value) : h[h.length - 1] += c.value, h;
|
|
6409
6404
|
}, []);
|
|
6410
6405
|
return f.length <= 1 ? f[0] || "" : f;
|
|
6411
6406
|
}, this.formatToParts = function(u) {
|
|
@@ -6502,7 +6497,7 @@ var mu = (
|
|
|
6502
6497
|
}, e;
|
|
6503
6498
|
}()
|
|
6504
6499
|
);
|
|
6505
|
-
function
|
|
6500
|
+
function mu(e, t) {
|
|
6506
6501
|
if (t == null)
|
|
6507
6502
|
return;
|
|
6508
6503
|
if (t in e)
|
|
@@ -6523,12 +6518,12 @@ function _u(e, t) {
|
|
|
6523
6518
|
n = void 0;
|
|
6524
6519
|
return n;
|
|
6525
6520
|
}
|
|
6526
|
-
const Oe = {}, gu = (e, t, r) => r && (t in Oe || (Oe[t] = {}), e in Oe[t] || (Oe[t][e] = r), r),
|
|
6521
|
+
const Oe = {}, gu = (e, t, r) => r && (t in Oe || (Oe[t] = {}), e in Oe[t] || (Oe[t][e] = r), r), ms = (e, t) => {
|
|
6527
6522
|
if (t == null)
|
|
6528
6523
|
return;
|
|
6529
6524
|
if (t in Oe && e in Oe[t])
|
|
6530
6525
|
return Oe[t][e];
|
|
6531
|
-
const r =
|
|
6526
|
+
const r = _r(t);
|
|
6532
6527
|
for (let n = 0; n < r.length; n++) {
|
|
6533
6528
|
const i = r[n], s = Eu(i, e);
|
|
6534
6529
|
if (s)
|
|
@@ -6547,12 +6542,12 @@ function Eu(e, t) {
|
|
|
6547
6542
|
if (!gs(e))
|
|
6548
6543
|
return null;
|
|
6549
6544
|
const r = bu(e);
|
|
6550
|
-
return
|
|
6545
|
+
return mu(r, t);
|
|
6551
6546
|
}
|
|
6552
6547
|
function yu(e) {
|
|
6553
6548
|
if (e == null)
|
|
6554
6549
|
return;
|
|
6555
|
-
const t =
|
|
6550
|
+
const t = _r(e);
|
|
6556
6551
|
for (let r = 0; r < t.length; r++) {
|
|
6557
6552
|
const n = t[r];
|
|
6558
6553
|
if (gs(n))
|
|
@@ -6575,13 +6570,13 @@ function Es(e) {
|
|
|
6575
6570
|
return Yt[e];
|
|
6576
6571
|
}
|
|
6577
6572
|
function wu(e) {
|
|
6578
|
-
return
|
|
6573
|
+
return _r(e).map((t) => {
|
|
6579
6574
|
const r = Es(t);
|
|
6580
6575
|
return [t, r ? [...r] : []];
|
|
6581
6576
|
}).filter(([, t]) => t.length > 0);
|
|
6582
6577
|
}
|
|
6583
6578
|
function Kr(e) {
|
|
6584
|
-
return e == null ? !1 :
|
|
6579
|
+
return e == null ? !1 : _r(e).some(
|
|
6585
6580
|
(t) => {
|
|
6586
6581
|
var r;
|
|
6587
6582
|
return (r = Es(t)) == null ? void 0 : r.size;
|
|
@@ -6662,7 +6657,7 @@ const ir = dr(null);
|
|
|
6662
6657
|
function Yn(e) {
|
|
6663
6658
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
6664
6659
|
}
|
|
6665
|
-
function
|
|
6660
|
+
function _r(e, t = ot().fallbackLocale) {
|
|
6666
6661
|
const r = Yn(e);
|
|
6667
6662
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Yn(t)])] : r;
|
|
6668
6663
|
}
|
|
@@ -6688,7 +6683,7 @@ const Lu = (e) => {
|
|
|
6688
6683
|
return ir.set(e);
|
|
6689
6684
|
}, Pe = Mu(Cu({}, ir), {
|
|
6690
6685
|
set: Lu
|
|
6691
|
-
}),
|
|
6686
|
+
}), mr = (e) => {
|
|
6692
6687
|
const t = /* @__PURE__ */ Object.create(null);
|
|
6693
6688
|
return (n) => {
|
|
6694
6689
|
const i = JSON.stringify(n);
|
|
@@ -6716,21 +6711,21 @@ const Nt = (e, t) => {
|
|
|
6716
6711
|
if (e in r && t in r[e])
|
|
6717
6712
|
return r[e][t];
|
|
6718
6713
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
6719
|
-
}, $u =
|
|
6714
|
+
}, $u = mr(
|
|
6720
6715
|
(e) => {
|
|
6721
6716
|
var t = e, { locale: r, format: n } = t, i = ht(t, ["locale", "format"]);
|
|
6722
6717
|
if (r == null)
|
|
6723
6718
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
6724
6719
|
return n && (i = Nt("number", n)), new Intl.NumberFormat(r, i);
|
|
6725
6720
|
}
|
|
6726
|
-
), Du =
|
|
6721
|
+
), Du = mr(
|
|
6727
6722
|
(e) => {
|
|
6728
6723
|
var t = e, { locale: r, format: n } = t, i = ht(t, ["locale", "format"]);
|
|
6729
6724
|
if (r == null)
|
|
6730
6725
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
6731
6726
|
return n ? i = Nt("date", n) : Object.keys(i).length === 0 && (i = Nt("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
6732
6727
|
}
|
|
6733
|
-
), Uu =
|
|
6728
|
+
), Uu = mr(
|
|
6734
6729
|
(e) => {
|
|
6735
6730
|
var t = e, { locale: r, format: n } = t, i = ht(t, ["locale", "format"]);
|
|
6736
6731
|
if (r == null)
|
|
@@ -6753,16 +6748,16 @@ const Nt = (e, t) => {
|
|
|
6753
6748
|
"locale"
|
|
6754
6749
|
]);
|
|
6755
6750
|
return Du(yn({ locale: r }, n));
|
|
6756
|
-
},
|
|
6751
|
+
}, ku = (e = {}) => {
|
|
6757
6752
|
var t = e, {
|
|
6758
6753
|
locale: r = qe()
|
|
6759
6754
|
} = t, n = ht(t, [
|
|
6760
6755
|
"locale"
|
|
6761
6756
|
]);
|
|
6762
6757
|
return Uu(yn({ locale: r }, n));
|
|
6763
|
-
},
|
|
6758
|
+
}, ju = mr(
|
|
6764
6759
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
6765
|
-
(e, t = qe()) => new
|
|
6760
|
+
(e, t = qe()) => new _u(e, t, ot().formats, {
|
|
6766
6761
|
ignoreTag: ot().ignoreTag
|
|
6767
6762
|
})
|
|
6768
6763
|
), Vu = (e, t = {}) => {
|
|
@@ -6778,7 +6773,7 @@ const Nt = (e, t) => {
|
|
|
6778
6773
|
throw new Error(
|
|
6779
6774
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
6780
6775
|
);
|
|
6781
|
-
let f =
|
|
6776
|
+
let f = ms(e, u);
|
|
6782
6777
|
if (!f)
|
|
6783
6778
|
f = (s = (i = (n = (r = ot()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
|
6784
6779
|
else if (typeof f != "string")
|
|
@@ -6789,7 +6784,7 @@ const Nt = (e, t) => {
|
|
|
6789
6784
|
return f;
|
|
6790
6785
|
let h = f;
|
|
6791
6786
|
try {
|
|
6792
|
-
h =
|
|
6787
|
+
h = ju(f, u).format(o);
|
|
6793
6788
|
} catch (c) {
|
|
6794
6789
|
c instanceof Error && console.warn(
|
|
6795
6790
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -6797,7 +6792,7 @@ const Nt = (e, t) => {
|
|
|
6797
6792
|
);
|
|
6798
6793
|
}
|
|
6799
6794
|
return h;
|
|
6800
|
-
}, Xu = (e, t) =>
|
|
6795
|
+
}, Xu = (e, t) => ku(t).format(e), qu = (e, t) => Gu(t).format(e), zu = (e, t) => Fu(t).format(e), Wu = (e, t = qe()) => ms(e, t), Yu = lt([Pe, ft], () => Vu);
|
|
6801
6796
|
lt([Pe], () => Xu);
|
|
6802
6797
|
lt([Pe], () => qu);
|
|
6803
6798
|
lt([Pe], () => zu);
|
|
@@ -6942,13 +6937,13 @@ function fl(e, t) {
|
|
|
6942
6937
|
set size(O = "default") {
|
|
6943
6938
|
f(O), Ne();
|
|
6944
6939
|
}
|
|
6945
|
-
},
|
|
6940
|
+
}, _ = ul();
|
|
6946
6941
|
let v;
|
|
6947
|
-
var
|
|
6942
|
+
var m = Xt(_), b = Xt(m);
|
|
6948
6943
|
let A;
|
|
6949
6944
|
var H = dt(b, 2), M = Dt(H, !0);
|
|
6950
|
-
|
|
6951
|
-
var $ = dt(
|
|
6945
|
+
jt(m);
|
|
6946
|
+
var $ = dt(m, 2);
|
|
6952
6947
|
{
|
|
6953
6948
|
var D = (O) => {
|
|
6954
6949
|
var z = ol(), Ie = Xt(z);
|
|
@@ -6978,15 +6973,15 @@ function fl(e, t) {
|
|
|
6978
6973
|
N(d).countdown && Ce(br);
|
|
6979
6974
|
});
|
|
6980
6975
|
}
|
|
6981
|
-
|
|
6976
|
+
jt(z), gt(O, z);
|
|
6982
6977
|
};
|
|
6983
6978
|
Tr($, (O) => {
|
|
6984
6979
|
(N(d).date || N(d).countdown) && O(D);
|
|
6985
6980
|
});
|
|
6986
6981
|
}
|
|
6987
|
-
|
|
6982
|
+
jt(_), qt(
|
|
6988
6983
|
(O) => {
|
|
6989
|
-
v = Ln(
|
|
6984
|
+
v = Ln(_, 1, "tournament-badge svelte-1gqjw6m", null, v, { "tournament-badge--large": f() === "large" }), Rn(_, "data-status", N(c)), Rn(m, "data-status", N(c)), A = Ln(b, 1, "dot dot-status svelte-1gqjw6m", null, A, {
|
|
6990
6985
|
new: N(c) === "new",
|
|
6991
6986
|
scheduled: N(c) === "scheduled",
|
|
6992
6987
|
ongoing: N(c) === "ongoing",
|
|
@@ -6994,7 +6989,7 @@ function fl(e, t) {
|
|
|
6994
6989
|
}), Ut(M, O);
|
|
6995
6990
|
},
|
|
6996
6991
|
[() => r()(`tournamentStatus.${N(c)}`)]
|
|
6997
|
-
), gt(e,
|
|
6992
|
+
), gt(e, _);
|
|
6998
6993
|
var Se = pi(p);
|
|
6999
6994
|
return i(), Se;
|
|
7000
6995
|
}
|
|
@@ -7047,7 +7042,7 @@ export {
|
|
|
7047
7042
|
gt as b,
|
|
7048
7043
|
ao as c,
|
|
7049
7044
|
pi as d,
|
|
7050
|
-
|
|
7045
|
+
ml as e,
|
|
7051
7046
|
cr as f,
|
|
7052
7047
|
di as g,
|
|
7053
7048
|
Xt as h,
|
|
@@ -7056,11 +7051,11 @@ export {
|
|
|
7056
7051
|
Ln as k,
|
|
7057
7052
|
Rn as l,
|
|
7058
7053
|
fe as m,
|
|
7059
|
-
|
|
7054
|
+
_l as n,
|
|
7060
7055
|
Ae as o,
|
|
7061
7056
|
Ye as p,
|
|
7062
7057
|
Ne as q,
|
|
7063
|
-
|
|
7058
|
+
jt as r,
|
|
7064
7059
|
dt as s,
|
|
7065
7060
|
qt as t,
|
|
7066
7061
|
Sn as u,
|