@everymatrix/player-account-controller 1.43.4 → 1.45.0

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.
Files changed (79) hide show
  1. package/components/GeneralLogout-PMsAgsr8.js +4832 -0
  2. package/components/GeneralLogout-WbaN9lE3.cjs +8 -0
  3. package/components/PlayerAccountBettingHistory-C5O_N5I6.js +328 -0
  4. package/components/PlayerAccountBettingHistory-CvFzGDm4.cjs +1 -0
  5. package/components/PlayerAccountBiometrics--Rc4hXU1.cjs +1 -0
  6. package/components/PlayerAccountBiometrics-BIZ77T9P.js +300 -0
  7. package/components/PlayerAccountClosure-DIRkc6kA.cjs +1 -0
  8. package/components/PlayerAccountClosure-O9rY7FHF.js +339 -0
  9. package/components/PlayerAccountController-1M1FKlrd.cjs +1 -0
  10. package/components/PlayerAccountController-DRQpN2gW.js +6176 -0
  11. package/components/PlayerAccountGamingLimits-BnH1h5ZI.js +758 -0
  12. package/components/PlayerAccountGamingLimits-Dtw0RzGI.cjs +1 -0
  13. package/components/PlayerAccountGamingLimitsConfirmationModal-CHBpCAi7.js +306 -0
  14. package/components/PlayerAccountGamingLimitsConfirmationModal-Cvsvauqa.cjs +1 -0
  15. package/components/PlayerAccountGamingLimitsGroupEdit-QO4BtCS2.js +4148 -0
  16. package/components/PlayerAccountGamingLimitsGroupEdit-tfKhIo7R.cjs +10 -0
  17. package/components/PlayerAccountGamingLimitsHistory2-CJxOlPZu.js +734 -0
  18. package/components/PlayerAccountGamingLimitsHistory2-_p2IXses.cjs +1 -0
  19. package/components/PlayerAccountGamingLimitsInfoCard--AbjEx7s.cjs +1 -0
  20. package/components/PlayerAccountGamingLimitsInfoCard-GwIjd7fB.js +1488 -0
  21. package/components/PlayerAccountGamingLimitsPage2Gm16-DcGsK_Nq.js +2794 -0
  22. package/components/PlayerAccountGamingLimitsPage2Gm16-Dymt7LmL.cjs +21 -0
  23. package/components/PlayerAccountGamingLimitsPopup-DO2f_4IF.js +337 -0
  24. package/components/PlayerAccountGamingLimitsPopup-DVEuryoE.cjs +1 -0
  25. package/components/PlayerAccountGamingLimitsWrapper2-BZ-Ax67a.cjs +1 -0
  26. package/components/PlayerAccountGamingLimitsWrapper2-CQClFTjE.js +844 -0
  27. package/components/PlayerAccountMenu-1kpYtr6Q.cjs +1 -0
  28. package/components/PlayerAccountMenu-C9YFW_X4.js +576 -0
  29. package/components/PlayerAccountModal-BPuDqVwe.js +198 -0
  30. package/components/PlayerAccountModal-DpMfe1gv.cjs +1 -0
  31. package/components/PlayerAccountNotifications-DfLcLCTk.js +261 -0
  32. package/components/PlayerAccountNotifications-Dwb_RDr0.cjs +1 -0
  33. package/components/PlayerAccountSelfExclusion-BR4bl6bz.js +16404 -0
  34. package/components/PlayerAccountSelfExclusion-CA2oAuhb.cjs +3693 -0
  35. package/components/PlayerAccountTimeout-Df9mSPXx.js +448 -0
  36. package/components/PlayerAccountTimeout-dxzuaoP9.cjs +1 -0
  37. package/components/PlayerActiveBonuses-BJtk2_80.js +986 -0
  38. package/components/PlayerActiveBonuses-D0-qI8iz.cjs +1 -0
  39. package/components/PlayerBonusCard-BoENnXsd.cjs +1 -0
  40. package/components/PlayerBonusCard-D4MZsrSK.js +565 -0
  41. package/components/PlayerBonusHistory-3B1tPB8g.cjs +1 -0
  42. package/components/PlayerBonusHistory-CDA_Ahs-.js +840 -0
  43. package/components/PlayerChangePassword-C69CRrvS.js +1161 -0
  44. package/components/PlayerChangePassword-RpQIhFff.cjs +3 -0
  45. package/components/PlayerDeposit-BK_UhkqG.js +395 -0
  46. package/components/PlayerDeposit-COhpfcRx.cjs +1 -0
  47. package/components/PlayerGamingHistory-C8Kvaq7b.cjs +1 -0
  48. package/components/PlayerGamingHistory-CCSGdevP.js +920 -0
  49. package/components/PlayerPendingWithdrawals-CVBvRj42.cjs +1 -0
  50. package/components/PlayerPendingWithdrawals-DIp1o6Bq.js +307 -0
  51. package/components/PlayerProfileInfo-BeD6hzPW.cjs +1 -0
  52. package/components/PlayerProfileInfo-CkcYNGGP.js +1707 -0
  53. package/components/PlayerRealityCheck-B37H9_Rn.cjs +1 -0
  54. package/components/PlayerRealityCheck-UaRdeADU.js +587 -0
  55. package/components/PlayerTransactionHistory-CxYO3lnm.cjs +1 -0
  56. package/components/PlayerTransactionHistory-Da2H2goa.js +311 -0
  57. package/components/PlayerWithdrawal-DK_JxD9z.js +365 -0
  58. package/components/PlayerWithdrawal-DYkzBPcQ.cjs +1 -0
  59. package/es2015/player-account-controller.cjs +1 -0
  60. package/es2015/player-account-controller.js +16 -0
  61. package/package.json +38 -32
  62. package/CHANGELOG.md +0 -19
  63. package/README.md +0 -0
  64. package/assets/arrow-down.svg +0 -3
  65. package/dist/player-account-controller.js +0 -2221
  66. package/dist/player-account-controller.js.map +0 -1
  67. package/documentation.md +0 -166
  68. package/index.html +0 -46
  69. package/index.js +0 -1
  70. package/public/favicon.png +0 -0
  71. package/public/reset.css +0 -48
  72. package/rollup.config.js +0 -67
  73. package/src/PlayerAccountController.svelte +0 -732
  74. package/src/PlayerAccountController.types.ts +0 -5
  75. package/src/i18n.js +0 -27
  76. package/src/index.ts +0 -4
  77. package/src/translations.js +0 -102
  78. package/stories/PlayerAccountPage.stories.js +0 -13
  79. package/tsconfig.json +0 -6
@@ -0,0 +1,4832 @@
1
+ var Lr = Object.defineProperty, Cr = Object.defineProperties;
2
+ var Nr = Object.getOwnPropertyDescriptors;
3
+ var ht = Object.getOwnPropertySymbols;
4
+ var Mr = Object.prototype.hasOwnProperty, $r = Object.prototype.propertyIsEnumerable;
5
+ var Ce = (e, t, r) => t in e ? Lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
6
+ for (var r in t || (t = {}))
7
+ Mr.call(t, r) && Ce(e, r, t[r]);
8
+ if (ht)
9
+ for (var r of ht(t))
10
+ $r.call(t, r) && Ce(e, r, t[r]);
11
+ return e;
12
+ }, ft = (e, t) => Cr(e, Nr(t));
13
+ var O = (e, t, r) => Ce(e, typeof t != "symbol" ? t + "" : t, r);
14
+ var pt = (e, t, r) => new Promise((n, i) => {
15
+ var o = (u) => {
16
+ try {
17
+ a(r.next(u));
18
+ } catch (l) {
19
+ i(l);
20
+ }
21
+ }, s = (u) => {
22
+ try {
23
+ a(r.throw(u));
24
+ } catch (l) {
25
+ i(l);
26
+ }
27
+ }, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
28
+ a((r = r.apply(e, t)).next());
29
+ });
30
+ function A() {
31
+ }
32
+ const Rr = (e) => e;
33
+ function Ur(e, t) {
34
+ for (const r in t) e[r] = t[r];
35
+ return (
36
+ /** @type {T & S} */
37
+ e
38
+ );
39
+ }
40
+ function Dt(e) {
41
+ return e();
42
+ }
43
+ function dt() {
44
+ return /* @__PURE__ */ Object.create(null);
45
+ }
46
+ function F(e) {
47
+ e.forEach(Dt);
48
+ }
49
+ function he(e) {
50
+ return typeof e == "function";
51
+ }
52
+ function Gt(e, t) {
53
+ return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
54
+ }
55
+ let me;
56
+ function To(e, t) {
57
+ return e === t ? !0 : (me || (me = document.createElement("a")), me.href = t, e === me.href);
58
+ }
59
+ function Dr(e) {
60
+ return Object.keys(e).length === 0;
61
+ }
62
+ function Ft(e, ...t) {
63
+ if (e == null) {
64
+ for (const n of t)
65
+ n(void 0);
66
+ return A;
67
+ }
68
+ const r = e.subscribe(...t);
69
+ return r.unsubscribe ? () => r.unsubscribe() : r;
70
+ }
71
+ function Gr(e, t, r) {
72
+ e.$$.on_destroy.push(Ft(t, r));
73
+ }
74
+ function wo(e, t, r, n) {
75
+ if (e) {
76
+ const i = jt(e, t, r, n);
77
+ return e[0](i);
78
+ }
79
+ }
80
+ function jt(e, t, r, n) {
81
+ return e[1] && n ? Ur(r.ctx.slice(), e[1](n(t))) : r.ctx;
82
+ }
83
+ function Ho(e, t, r, n) {
84
+ if (e[2] && n) {
85
+ const i = e[2](n(r));
86
+ if (t.dirty === void 0)
87
+ return i;
88
+ if (typeof i == "object") {
89
+ const o = [], s = Math.max(t.dirty.length, i.length);
90
+ for (let a = 0; a < s; a += 1)
91
+ o[a] = t.dirty[a] | i[a];
92
+ return o;
93
+ }
94
+ return t.dirty | i;
95
+ }
96
+ return t.dirty;
97
+ }
98
+ function Bo(e, t, r, n, i, o) {
99
+ if (i) {
100
+ const s = jt(t, r, n, o);
101
+ e.p(s, i);
102
+ }
103
+ }
104
+ function Ao(e) {
105
+ if (e.ctx.length > 32) {
106
+ const t = [], r = e.ctx.length / 32;
107
+ for (let n = 0; n < r; n++)
108
+ t[n] = -1;
109
+ return t;
110
+ }
111
+ return -1;
112
+ }
113
+ function Po(e) {
114
+ return e == null ? "" : e;
115
+ }
116
+ function Oo(e) {
117
+ return e && he(e.destroy) ? e.destroy : A;
118
+ }
119
+ const kt = typeof window != "undefined";
120
+ let Fr = kt ? () => window.performance.now() : () => Date.now(), it = kt ? (e) => requestAnimationFrame(e) : A;
121
+ const z = /* @__PURE__ */ new Set();
122
+ function Vt(e) {
123
+ z.forEach((t) => {
124
+ t.c(e) || (z.delete(t), t.f());
125
+ }), z.size !== 0 && it(Vt);
126
+ }
127
+ function jr(e) {
128
+ let t;
129
+ return z.size === 0 && it(Vt), {
130
+ promise: new Promise((r) => {
131
+ z.add(t = { c: e, f: r });
132
+ }),
133
+ abort() {
134
+ z.delete(t);
135
+ }
136
+ };
137
+ }
138
+ const Io = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : (
139
+ // @ts-ignore Node typings have this
140
+ global
141
+ );
142
+ function P(e, t) {
143
+ e.appendChild(t);
144
+ }
145
+ function kr(e, t, r) {
146
+ const n = ot(e);
147
+ if (!n.getElementById(t)) {
148
+ const i = C("style");
149
+ i.id = t, i.textContent = r, Xt(n, i);
150
+ }
151
+ }
152
+ function ot(e) {
153
+ if (!e) return document;
154
+ const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
155
+ return t && /** @type {ShadowRoot} */
156
+ t.host ? (
157
+ /** @type {ShadowRoot} */
158
+ t
159
+ ) : e.ownerDocument;
160
+ }
161
+ function Vr(e) {
162
+ const t = C("style");
163
+ return t.textContent = "/* empty */", Xt(ot(e), t), t.sheet;
164
+ }
165
+ function Xt(e, t) {
166
+ return P(
167
+ /** @type {Document} */
168
+ e.head || e,
169
+ t
170
+ ), t.sheet;
171
+ }
172
+ function ce(e, t, r) {
173
+ e.insertBefore(t, r || null);
174
+ }
175
+ function j(e) {
176
+ e.parentNode && e.parentNode.removeChild(e);
177
+ }
178
+ function Lo(e, t) {
179
+ for (let r = 0; r < e.length; r += 1)
180
+ e[r] && e[r].d(t);
181
+ }
182
+ function C(e) {
183
+ return document.createElement(e);
184
+ }
185
+ function ne(e) {
186
+ return document.createElementNS("http://www.w3.org/2000/svg", e);
187
+ }
188
+ function fe(e) {
189
+ return document.createTextNode(e);
190
+ }
191
+ function Xr() {
192
+ return fe(" ");
193
+ }
194
+ function Co() {
195
+ return fe("");
196
+ }
197
+ function Wt(e, t, r, n) {
198
+ return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
199
+ }
200
+ function No(e) {
201
+ return function(t) {
202
+ return t.preventDefault(), e.call(this, t);
203
+ };
204
+ }
205
+ function x(e, t, r) {
206
+ r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
207
+ }
208
+ function Mo(e, t, r) {
209
+ const n = t.toLowerCase();
210
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : x(e, t, r);
211
+ }
212
+ function $o(e) {
213
+ let t;
214
+ return {
215
+ /* push */
216
+ p(...r) {
217
+ t = r, t.forEach((n) => e.push(n));
218
+ },
219
+ /* remove */
220
+ r() {
221
+ t.forEach((r) => e.splice(e.indexOf(r), 1));
222
+ }
223
+ };
224
+ }
225
+ function Ro(e) {
226
+ return e === "" ? null : +e;
227
+ }
228
+ function Wr(e) {
229
+ return Array.from(e.childNodes);
230
+ }
231
+ function zt(e, t) {
232
+ t = "" + t, e.data !== t && (e.data = /** @type {string} */
233
+ t);
234
+ }
235
+ function Uo(e, t) {
236
+ e.value = t == null ? "" : t;
237
+ }
238
+ function zr(e, t, r, n) {
239
+ r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
240
+ }
241
+ function Do(e, t, r) {
242
+ for (let n = 0; n < e.options.length; n += 1) {
243
+ const i = e.options[n];
244
+ if (i.__value === t) {
245
+ i.selected = !0;
246
+ return;
247
+ }
248
+ }
249
+ (!r || t !== void 0) && (e.selectedIndex = -1);
250
+ }
251
+ function Go(e) {
252
+ const t = e.querySelector(":checked");
253
+ return t && t.__value;
254
+ }
255
+ function Fo(e, t, r) {
256
+ e.classList.toggle(t, !!r);
257
+ }
258
+ function Zr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
259
+ return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
260
+ }
261
+ function Qr(e) {
262
+ const t = {};
263
+ return e.childNodes.forEach(
264
+ /** @param {Element} node */
265
+ (r) => {
266
+ t[r.slot || "default"] = !0;
267
+ }
268
+ ), t;
269
+ }
270
+ const Se = /* @__PURE__ */ new Map();
271
+ let Te = 0;
272
+ function qr(e) {
273
+ let t = 5381, r = e.length;
274
+ for (; r--; ) t = (t << 5) - t ^ e.charCodeAt(r);
275
+ return t >>> 0;
276
+ }
277
+ function Jr(e, t) {
278
+ const r = { stylesheet: Vr(t), rules: {} };
279
+ return Se.set(e, r), r;
280
+ }
281
+ function mt(e, t, r, n, i, o, s, a = 0) {
282
+ const u = 16.666 / n;
283
+ let l = `{
284
+ `;
285
+ for (let E = 0; E <= 1; E += u) {
286
+ const w = t + (r - t) * o(E);
287
+ l += E * 100 + `%{${s(w, 1 - w)}}
288
+ `;
289
+ }
290
+ const h = l + `100% {${s(r, 1 - r)}}
291
+ }`, c = `__svelte_${qr(h)}_${a}`, f = ot(e), { stylesheet: p, rules: d } = Se.get(f) || Jr(f, e);
292
+ d[c] || (d[c] = !0, p.insertRule(`@keyframes ${c} ${h}`, p.cssRules.length));
293
+ const m = e.style.animation || "";
294
+ return e.style.animation = `${m ? `${m}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, Te += 1, c;
295
+ }
296
+ function Yr(e, t) {
297
+ const r = (e.style.animation || "").split(", "), n = r.filter(
298
+ t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
299
+ // remove all Svelte animations
300
+ ), i = r.length - n.length;
301
+ i && (e.style.animation = n.join(", "), Te -= i, Te || Kr());
302
+ }
303
+ function Kr() {
304
+ it(() => {
305
+ Te || (Se.forEach((e) => {
306
+ const { ownerNode: t } = e.stylesheet;
307
+ t && j(t);
308
+ }), Se.clear());
309
+ });
310
+ }
311
+ let ae;
312
+ function se(e) {
313
+ ae = e;
314
+ }
315
+ function en() {
316
+ if (!ae) throw new Error("Function called outside component initialization");
317
+ return ae;
318
+ }
319
+ function jo(e) {
320
+ en().$$.on_mount.push(e);
321
+ }
322
+ const W = [], ke = [];
323
+ let Z = [];
324
+ const bt = [], Zt = /* @__PURE__ */ Promise.resolve();
325
+ let Ve = !1;
326
+ function Qt() {
327
+ Ve || (Ve = !0, Zt.then(N));
328
+ }
329
+ function ko() {
330
+ return Qt(), Zt;
331
+ }
332
+ function we(e) {
333
+ Z.push(e);
334
+ }
335
+ const Ne = /* @__PURE__ */ new Set();
336
+ let V = 0;
337
+ function N() {
338
+ if (V !== 0)
339
+ return;
340
+ const e = ae;
341
+ do {
342
+ try {
343
+ for (; V < W.length; ) {
344
+ const t = W[V];
345
+ V++, se(t), tn(t.$$);
346
+ }
347
+ } catch (t) {
348
+ throw W.length = 0, V = 0, t;
349
+ }
350
+ for (se(null), W.length = 0, V = 0; ke.length; ) ke.pop()();
351
+ for (let t = 0; t < Z.length; t += 1) {
352
+ const r = Z[t];
353
+ Ne.has(r) || (Ne.add(r), r());
354
+ }
355
+ Z.length = 0;
356
+ } while (W.length);
357
+ for (; bt.length; )
358
+ bt.pop()();
359
+ Ve = !1, Ne.clear(), se(e);
360
+ }
361
+ function tn(e) {
362
+ if (e.fragment !== null) {
363
+ e.update(), F(e.before_update);
364
+ const t = e.dirty;
365
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(we);
366
+ }
367
+ }
368
+ function rn(e) {
369
+ const t = [], r = [];
370
+ Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
371
+ }
372
+ let ie;
373
+ function nn() {
374
+ return ie || (ie = Promise.resolve(), ie.then(() => {
375
+ ie = null;
376
+ })), ie;
377
+ }
378
+ function Me(e, t, r) {
379
+ e.dispatchEvent(Zr(`${t ? "intro" : "outro"}${r}`));
380
+ }
381
+ const ge = /* @__PURE__ */ new Set();
382
+ let M;
383
+ function Vo() {
384
+ M = {
385
+ r: 0,
386
+ c: [],
387
+ p: M
388
+ // parent group
389
+ };
390
+ }
391
+ function Xo() {
392
+ M.r || F(M.c), M = M.p;
393
+ }
394
+ function on(e, t) {
395
+ e && e.i && (ge.delete(e), e.i(t));
396
+ }
397
+ function Wo(e, t, r, n) {
398
+ if (e && e.o) {
399
+ if (ge.has(e)) return;
400
+ ge.add(e), M.c.push(() => {
401
+ ge.delete(e), n && (r && e.d(1), n());
402
+ }), e.o(t);
403
+ } else n && n();
404
+ }
405
+ const sn = { duration: 0 };
406
+ function zo(e, t, r, n) {
407
+ let o = t(e, r, { direction: "both" }), s = n ? 0 : 1, a = null, u = null, l = null, h;
408
+ function c() {
409
+ l && Yr(e, l);
410
+ }
411
+ function f(d, m) {
412
+ const E = (
413
+ /** @type {Program['d']} */
414
+ d.b - s
415
+ );
416
+ return m *= Math.abs(E), {
417
+ a: s,
418
+ b: d.b,
419
+ d: E,
420
+ duration: m,
421
+ start: d.start,
422
+ end: d.start + m,
423
+ group: d.group
424
+ };
425
+ }
426
+ function p(d) {
427
+ const {
428
+ delay: m = 0,
429
+ duration: E = 300,
430
+ easing: w = Rr,
431
+ tick: H = A,
432
+ css: S
433
+ } = o || sn, I = {
434
+ start: Fr() + m,
435
+ b: d
436
+ };
437
+ d || (I.group = M, M.r += 1), "inert" in e && (d ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
438
+ e.inert, e.inert = !0)), a || u ? u = I : (S && (c(), l = mt(e, s, d, E, m, w, S)), d && H(0, 1), a = f(I, E), we(() => Me(e, d, "start")), jr((B) => {
439
+ if (u && B > u.start && (a = f(u, E), u = null, Me(e, a.b, "start"), S && (c(), l = mt(
440
+ e,
441
+ s,
442
+ a.b,
443
+ a.duration,
444
+ 0,
445
+ w,
446
+ o.css
447
+ ))), a) {
448
+ if (B >= a.end)
449
+ H(s = a.b, 1 - s), Me(e, a.b, "end"), u || (a.b ? c() : --a.group.r || F(a.group.c)), a = null;
450
+ else if (B >= a.start) {
451
+ const U = B - a.start;
452
+ s = a.a + a.d * w(U / a.duration), H(s, 1 - s);
453
+ }
454
+ }
455
+ return !!(a || u);
456
+ }));
457
+ }
458
+ return {
459
+ run(d) {
460
+ he(o) ? nn().then(() => {
461
+ o = o({ direction: d ? "in" : "out" }), p(d);
462
+ }) : p(d);
463
+ },
464
+ end() {
465
+ c(), a = u = null;
466
+ }
467
+ };
468
+ }
469
+ function Zo(e) {
470
+ return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
471
+ }
472
+ function an(e, t, r) {
473
+ const { fragment: n, after_update: i } = e.$$;
474
+ n && n.m(t, r), we(() => {
475
+ const o = e.$$.on_mount.map(Dt).filter(he);
476
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : F(o), e.$$.on_mount = [];
477
+ }), i.forEach(we);
478
+ }
479
+ function un(e, t) {
480
+ const r = e.$$;
481
+ r.fragment !== null && (rn(r.after_update), F(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
482
+ }
483
+ function ln(e, t) {
484
+ e.$$.dirty[0] === -1 && (W.push(e), Qt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
485
+ }
486
+ function hn(e, t, r, n, i, o, s = null, a = [-1]) {
487
+ const u = ae;
488
+ se(e);
489
+ const l = e.$$ = {
490
+ fragment: null,
491
+ ctx: [],
492
+ // state
493
+ props: o,
494
+ update: A,
495
+ not_equal: i,
496
+ bound: dt(),
497
+ // lifecycle
498
+ on_mount: [],
499
+ on_destroy: [],
500
+ on_disconnect: [],
501
+ before_update: [],
502
+ after_update: [],
503
+ context: new Map(t.context || (u ? u.$$.context : [])),
504
+ // everything else
505
+ callbacks: dt(),
506
+ dirty: a,
507
+ skip_bound: !1,
508
+ root: t.target || u.$$.root
509
+ };
510
+ s && s(l.root);
511
+ let h = !1;
512
+ if (l.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
513
+ const d = p.length ? p[0] : f;
514
+ return l.ctx && i(l.ctx[c], l.ctx[c] = d) && (!l.skip_bound && l.bound[c] && l.bound[c](d), h && ln(e, c)), f;
515
+ }) : [], l.update(), h = !0, F(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
516
+ if (t.hydrate) {
517
+ const c = Wr(t.target);
518
+ l.fragment && l.fragment.l(c), c.forEach(j);
519
+ } else
520
+ l.fragment && l.fragment.c();
521
+ t.intro && on(e.$$.fragment), an(e, t.target, t.anchor), N();
522
+ }
523
+ se(u);
524
+ }
525
+ let qt;
526
+ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
527
+ constructor(t, r, n) {
528
+ super();
529
+ /** The Svelte component constructor */
530
+ O(this, "$$ctor");
531
+ /** Slots */
532
+ O(this, "$$s");
533
+ /** The Svelte component instance */
534
+ O(this, "$$c");
535
+ /** Whether or not the custom element is connected */
536
+ O(this, "$$cn", !1);
537
+ /** Component props data */
538
+ O(this, "$$d", {});
539
+ /** `true` if currently in the process of reflecting component props back to attributes */
540
+ O(this, "$$r", !1);
541
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
542
+ O(this, "$$p_d", {});
543
+ /** @type {Record<string, Function[]>} Event listeners */
544
+ O(this, "$$l", {});
545
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
546
+ O(this, "$$l_u", /* @__PURE__ */ new Map());
547
+ this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
548
+ }
549
+ addEventListener(t, r, n) {
550
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
551
+ const i = this.$$c.$on(t, r);
552
+ this.$$l_u.set(r, i);
553
+ }
554
+ super.addEventListener(t, r, n);
555
+ }
556
+ removeEventListener(t, r, n) {
557
+ if (super.removeEventListener(t, r, n), this.$$c) {
558
+ const i = this.$$l_u.get(r);
559
+ i && (i(), this.$$l_u.delete(r));
560
+ }
561
+ }
562
+ connectedCallback() {
563
+ return pt(this, null, function* () {
564
+ if (this.$$cn = !0, !this.$$c) {
565
+ let t = function(o) {
566
+ return () => {
567
+ let s;
568
+ return {
569
+ c: function() {
570
+ s = C("slot"), o !== "default" && x(s, "name", o);
571
+ },
572
+ /**
573
+ * @param {HTMLElement} target
574
+ * @param {HTMLElement} [anchor]
575
+ */
576
+ m: function(l, h) {
577
+ ce(l, s, h);
578
+ },
579
+ d: function(l) {
580
+ l && j(s);
581
+ }
582
+ };
583
+ };
584
+ };
585
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
586
+ return;
587
+ const r = {}, n = Qr(this);
588
+ for (const o of this.$$s)
589
+ o in n && (r[o] = [t(o)]);
590
+ for (const o of this.attributes) {
591
+ const s = this.$$g_p(o.name);
592
+ s in this.$$d || (this.$$d[s] = ve(s, o.value, this.$$p_d, "toProp"));
593
+ }
594
+ for (const o in this.$$p_d)
595
+ !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
596
+ this.$$c = new this.$$ctor({
597
+ target: this.shadowRoot || this,
598
+ props: ft(ct({}, this.$$d), {
599
+ $$slots: r,
600
+ $$scope: {
601
+ ctx: []
602
+ }
603
+ })
604
+ });
605
+ const i = () => {
606
+ this.$$r = !0;
607
+ for (const o in this.$$p_d)
608
+ if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
609
+ const s = ve(
610
+ o,
611
+ this.$$d[o],
612
+ this.$$p_d,
613
+ "toAttribute"
614
+ );
615
+ s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
616
+ }
617
+ this.$$r = !1;
618
+ };
619
+ this.$$c.$$.after_update.push(i), i();
620
+ for (const o in this.$$l)
621
+ for (const s of this.$$l[o]) {
622
+ const a = this.$$c.$on(o, s);
623
+ this.$$l_u.set(s, a);
624
+ }
625
+ this.$$l = {};
626
+ }
627
+ });
628
+ }
629
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
630
+ // and setting attributes through setAttribute etc, this is helpful
631
+ attributeChangedCallback(t, r, n) {
632
+ var i;
633
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ve(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
634
+ }
635
+ disconnectedCallback() {
636
+ this.$$cn = !1, Promise.resolve().then(() => {
637
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
638
+ });
639
+ }
640
+ $$g_p(t) {
641
+ return Object.keys(this.$$p_d).find(
642
+ (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
643
+ ) || t;
644
+ }
645
+ });
646
+ function ve(e, t, r, n) {
647
+ var o;
648
+ const i = (o = r[e]) == null ? void 0 : o.type;
649
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
650
+ return t;
651
+ if (n === "toAttribute")
652
+ switch (i) {
653
+ case "Object":
654
+ case "Array":
655
+ return t == null ? null : JSON.stringify(t);
656
+ case "Boolean":
657
+ return t ? "" : null;
658
+ case "Number":
659
+ return t == null ? null : t;
660
+ default:
661
+ return t;
662
+ }
663
+ else
664
+ switch (i) {
665
+ case "Object":
666
+ case "Array":
667
+ return t && JSON.parse(t);
668
+ case "Boolean":
669
+ return t;
670
+ case "Number":
671
+ return t != null ? +t : t;
672
+ default:
673
+ return t;
674
+ }
675
+ }
676
+ function cn(e, t, r, n, i, o) {
677
+ let s = class extends qt {
678
+ constructor() {
679
+ super(e, r, i), this.$$p_d = t;
680
+ }
681
+ static get observedAttributes() {
682
+ return Object.keys(t).map(
683
+ (a) => (t[a].attribute || a).toLowerCase()
684
+ );
685
+ }
686
+ };
687
+ return Object.keys(t).forEach((a) => {
688
+ Object.defineProperty(s.prototype, a, {
689
+ get() {
690
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
691
+ },
692
+ set(u) {
693
+ var l;
694
+ u = ve(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
695
+ }
696
+ });
697
+ }), n.forEach((a) => {
698
+ Object.defineProperty(s.prototype, a, {
699
+ get() {
700
+ var u;
701
+ return (u = this.$$c) == null ? void 0 : u[a];
702
+ }
703
+ });
704
+ }), e.element = /** @type {any} */
705
+ s, s;
706
+ }
707
+ class fn {
708
+ constructor() {
709
+ /**
710
+ * ### PRIVATE API
711
+ *
712
+ * Do not use, may change at any time
713
+ *
714
+ * @type {any}
715
+ */
716
+ O(this, "$$");
717
+ /**
718
+ * ### PRIVATE API
719
+ *
720
+ * Do not use, may change at any time
721
+ *
722
+ * @type {any}
723
+ */
724
+ O(this, "$$set");
725
+ }
726
+ /** @returns {void} */
727
+ $destroy() {
728
+ un(this, 1), this.$destroy = A;
729
+ }
730
+ /**
731
+ * @template {Extract<keyof Events, string>} K
732
+ * @param {K} type
733
+ * @param {((e: Events[K]) => void) | null | undefined} callback
734
+ * @returns {() => void}
735
+ */
736
+ $on(t, r) {
737
+ if (!he(r))
738
+ return A;
739
+ const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
740
+ return n.push(r), () => {
741
+ const i = n.indexOf(r);
742
+ i !== -1 && n.splice(i, 1);
743
+ };
744
+ }
745
+ /**
746
+ * @param {Partial<Props>} props
747
+ * @returns {void}
748
+ */
749
+ $set(t) {
750
+ this.$$set && !Dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
751
+ }
752
+ }
753
+ const pn = "4";
754
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pn);
755
+ var Xe = function(e, t) {
756
+ return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
757
+ r.__proto__ = n;
758
+ } || function(r, n) {
759
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
760
+ }, Xe(e, t);
761
+ };
762
+ function R(e, t) {
763
+ if (typeof t != "function" && t !== null)
764
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
765
+ Xe(e, t);
766
+ function r() {
767
+ this.constructor = e;
768
+ }
769
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
770
+ }
771
+ var v = function() {
772
+ return v = Object.assign || function(t) {
773
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
774
+ r = arguments[n];
775
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
776
+ }
777
+ return t;
778
+ }, v.apply(this, arguments);
779
+ };
780
+ function dn(e, t) {
781
+ var r = {};
782
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
783
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
784
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
785
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
786
+ return r;
787
+ }
788
+ function We(e) {
789
+ var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
790
+ if (r) return r.call(e);
791
+ if (e && typeof e.length == "number") return {
792
+ next: function() {
793
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
794
+ }
795
+ };
796
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
797
+ }
798
+ function ze(e, t) {
799
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
800
+ if (!r) return e;
801
+ var n = r.call(e), i, o = [], s;
802
+ try {
803
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
804
+ } catch (a) {
805
+ s = { error: a };
806
+ } finally {
807
+ try {
808
+ i && !i.done && (r = n.return) && r.call(n);
809
+ } finally {
810
+ if (s) throw s.error;
811
+ }
812
+ }
813
+ return o;
814
+ }
815
+ function Q(e, t, r) {
816
+ if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
817
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
818
+ return e.concat(o || Array.prototype.slice.call(t));
819
+ }
820
+ function $(e) {
821
+ return typeof e == "function";
822
+ }
823
+ function Jt(e) {
824
+ var t = function(n) {
825
+ Error.call(n), n.stack = new Error().stack;
826
+ }, r = e(t);
827
+ return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
828
+ }
829
+ var $e = Jt(function(e) {
830
+ return function(r) {
831
+ e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
832
+ ` + r.map(function(n, i) {
833
+ return i + 1 + ") " + n.toString();
834
+ }).join(`
835
+ `) : "", this.name = "UnsubscriptionError", this.errors = r;
836
+ };
837
+ });
838
+ function Ze(e, t) {
839
+ if (e) {
840
+ var r = e.indexOf(t);
841
+ 0 <= r && e.splice(r, 1);
842
+ }
843
+ }
844
+ var Ae = function() {
845
+ function e(t) {
846
+ this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
847
+ }
848
+ return e.prototype.unsubscribe = function() {
849
+ var t, r, n, i, o;
850
+ if (!this.closed) {
851
+ this.closed = !0;
852
+ var s = this._parentage;
853
+ if (s)
854
+ if (this._parentage = null, Array.isArray(s))
855
+ try {
856
+ for (var a = We(s), u = a.next(); !u.done; u = a.next()) {
857
+ var l = u.value;
858
+ l.remove(this);
859
+ }
860
+ } catch (m) {
861
+ t = { error: m };
862
+ } finally {
863
+ try {
864
+ u && !u.done && (r = a.return) && r.call(a);
865
+ } finally {
866
+ if (t) throw t.error;
867
+ }
868
+ }
869
+ else
870
+ s.remove(this);
871
+ var h = this.initialTeardown;
872
+ if ($(h))
873
+ try {
874
+ h();
875
+ } catch (m) {
876
+ o = m instanceof $e ? m.errors : [m];
877
+ }
878
+ var c = this._finalizers;
879
+ if (c) {
880
+ this._finalizers = null;
881
+ try {
882
+ for (var f = We(c), p = f.next(); !p.done; p = f.next()) {
883
+ var d = p.value;
884
+ try {
885
+ yt(d);
886
+ } catch (m) {
887
+ o = o != null ? o : [], m instanceof $e ? o = Q(Q([], ze(o)), ze(m.errors)) : o.push(m);
888
+ }
889
+ }
890
+ } catch (m) {
891
+ n = { error: m };
892
+ } finally {
893
+ try {
894
+ p && !p.done && (i = f.return) && i.call(f);
895
+ } finally {
896
+ if (n) throw n.error;
897
+ }
898
+ }
899
+ }
900
+ if (o)
901
+ throw new $e(o);
902
+ }
903
+ }, e.prototype.add = function(t) {
904
+ var r;
905
+ if (t && t !== this)
906
+ if (this.closed)
907
+ yt(t);
908
+ else {
909
+ if (t instanceof e) {
910
+ if (t.closed || t._hasParent(this))
911
+ return;
912
+ t._addParent(this);
913
+ }
914
+ (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
915
+ }
916
+ }, e.prototype._hasParent = function(t) {
917
+ var r = this._parentage;
918
+ return r === t || Array.isArray(r) && r.includes(t);
919
+ }, e.prototype._addParent = function(t) {
920
+ var r = this._parentage;
921
+ this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
922
+ }, e.prototype._removeParent = function(t) {
923
+ var r = this._parentage;
924
+ r === t ? this._parentage = null : Array.isArray(r) && Ze(r, t);
925
+ }, e.prototype.remove = function(t) {
926
+ var r = this._finalizers;
927
+ r && Ze(r, t), t instanceof e && t._removeParent(this);
928
+ }, e.EMPTY = function() {
929
+ var t = new e();
930
+ return t.closed = !0, t;
931
+ }(), e;
932
+ }(), Yt = Ae.EMPTY;
933
+ function Kt(e) {
934
+ return e instanceof Ae || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
935
+ }
936
+ function yt(e) {
937
+ $(e) ? e() : e.unsubscribe();
938
+ }
939
+ var er = {
940
+ onUnhandledError: null,
941
+ onStoppedNotification: null,
942
+ Promise: void 0,
943
+ useDeprecatedSynchronousErrorHandling: !1,
944
+ useDeprecatedNextContext: !1
945
+ }, tr = {
946
+ setTimeout: function(e, t) {
947
+ for (var r = [], n = 2; n < arguments.length; n++)
948
+ r[n - 2] = arguments[n];
949
+ return setTimeout.apply(void 0, Q([e, t], ze(r)));
950
+ },
951
+ clearTimeout: function(e) {
952
+ var t = tr.delegate;
953
+ return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e);
954
+ },
955
+ delegate: void 0
956
+ };
957
+ function mn(e) {
958
+ tr.setTimeout(function() {
959
+ throw e;
960
+ });
961
+ }
962
+ function gt() {
963
+ }
964
+ function _e(e) {
965
+ e();
966
+ }
967
+ var rr = function(e) {
968
+ R(t, e);
969
+ function t(r) {
970
+ var n = e.call(this) || this;
971
+ return n.isStopped = !1, r ? (n.destination = r, Kt(r) && r.add(n)) : n.destination = vn, n;
972
+ }
973
+ return t.create = function(r, n, i) {
974
+ return new Qe(r, n, i);
975
+ }, t.prototype.next = function(r) {
976
+ this.isStopped || this._next(r);
977
+ }, t.prototype.error = function(r) {
978
+ this.isStopped || (this.isStopped = !0, this._error(r));
979
+ }, t.prototype.complete = function() {
980
+ this.isStopped || (this.isStopped = !0, this._complete());
981
+ }, t.prototype.unsubscribe = function() {
982
+ this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
983
+ }, t.prototype._next = function(r) {
984
+ this.destination.next(r);
985
+ }, t.prototype._error = function(r) {
986
+ try {
987
+ this.destination.error(r);
988
+ } finally {
989
+ this.unsubscribe();
990
+ }
991
+ }, t.prototype._complete = function() {
992
+ try {
993
+ this.destination.complete();
994
+ } finally {
995
+ this.unsubscribe();
996
+ }
997
+ }, t;
998
+ }(Ae), bn = Function.prototype.bind;
999
+ function Re(e, t) {
1000
+ return bn.call(e, t);
1001
+ }
1002
+ var yn = function() {
1003
+ function e(t) {
1004
+ this.partialObserver = t;
1005
+ }
1006
+ return e.prototype.next = function(t) {
1007
+ var r = this.partialObserver;
1008
+ if (r.next)
1009
+ try {
1010
+ r.next(t);
1011
+ } catch (n) {
1012
+ be(n);
1013
+ }
1014
+ }, e.prototype.error = function(t) {
1015
+ var r = this.partialObserver;
1016
+ if (r.error)
1017
+ try {
1018
+ r.error(t);
1019
+ } catch (n) {
1020
+ be(n);
1021
+ }
1022
+ else
1023
+ be(t);
1024
+ }, e.prototype.complete = function() {
1025
+ var t = this.partialObserver;
1026
+ if (t.complete)
1027
+ try {
1028
+ t.complete();
1029
+ } catch (r) {
1030
+ be(r);
1031
+ }
1032
+ }, e;
1033
+ }(), Qe = function(e) {
1034
+ R(t, e);
1035
+ function t(r, n, i) {
1036
+ var o = e.call(this) || this, s;
1037
+ if ($(r) || !r)
1038
+ s = {
1039
+ next: r != null ? r : void 0,
1040
+ error: n != null ? n : void 0,
1041
+ complete: i != null ? i : void 0
1042
+ };
1043
+ else {
1044
+ var a;
1045
+ o && er.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
1046
+ return o.unsubscribe();
1047
+ }, s = {
1048
+ next: r.next && Re(r.next, a),
1049
+ error: r.error && Re(r.error, a),
1050
+ complete: r.complete && Re(r.complete, a)
1051
+ }) : s = r;
1052
+ }
1053
+ return o.destination = new yn(s), o;
1054
+ }
1055
+ return t;
1056
+ }(rr);
1057
+ function be(e) {
1058
+ mn(e);
1059
+ }
1060
+ function gn(e) {
1061
+ throw e;
1062
+ }
1063
+ var vn = {
1064
+ closed: !0,
1065
+ next: gt,
1066
+ error: gn,
1067
+ complete: gt
1068
+ }, _n = function() {
1069
+ return typeof Symbol == "function" && Symbol.observable || "@@observable";
1070
+ }();
1071
+ function En(e) {
1072
+ return e;
1073
+ }
1074
+ function xn(e) {
1075
+ return e.length === 0 ? En : e.length === 1 ? e[0] : function(r) {
1076
+ return e.reduce(function(n, i) {
1077
+ return i(n);
1078
+ }, r);
1079
+ };
1080
+ }
1081
+ var vt = function() {
1082
+ function e(t) {
1083
+ t && (this._subscribe = t);
1084
+ }
1085
+ return e.prototype.lift = function(t) {
1086
+ var r = new e();
1087
+ return r.source = this, r.operator = t, r;
1088
+ }, e.prototype.subscribe = function(t, r, n) {
1089
+ var i = this, o = Tn(t) ? t : new Qe(t, r, n);
1090
+ return _e(function() {
1091
+ var s = i, a = s.operator, u = s.source;
1092
+ o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
1093
+ }), o;
1094
+ }, e.prototype._trySubscribe = function(t) {
1095
+ try {
1096
+ return this._subscribe(t);
1097
+ } catch (r) {
1098
+ t.error(r);
1099
+ }
1100
+ }, e.prototype.forEach = function(t, r) {
1101
+ var n = this;
1102
+ return r = _t(r), new r(function(i, o) {
1103
+ var s = new Qe({
1104
+ next: function(a) {
1105
+ try {
1106
+ t(a);
1107
+ } catch (u) {
1108
+ o(u), s.unsubscribe();
1109
+ }
1110
+ },
1111
+ error: o,
1112
+ complete: i
1113
+ });
1114
+ n.subscribe(s);
1115
+ });
1116
+ }, e.prototype._subscribe = function(t) {
1117
+ var r;
1118
+ return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
1119
+ }, e.prototype[_n] = function() {
1120
+ return this;
1121
+ }, e.prototype.pipe = function() {
1122
+ for (var t = [], r = 0; r < arguments.length; r++)
1123
+ t[r] = arguments[r];
1124
+ return xn(t)(this);
1125
+ }, e.prototype.toPromise = function(t) {
1126
+ var r = this;
1127
+ return t = _t(t), new t(function(n, i) {
1128
+ var o;
1129
+ r.subscribe(function(s) {
1130
+ return o = s;
1131
+ }, function(s) {
1132
+ return i(s);
1133
+ }, function() {
1134
+ return n(o);
1135
+ });
1136
+ });
1137
+ }, e.create = function(t) {
1138
+ return new e(t);
1139
+ }, e;
1140
+ }();
1141
+ function _t(e) {
1142
+ var t;
1143
+ return (t = e != null ? e : er.Promise) !== null && t !== void 0 ? t : Promise;
1144
+ }
1145
+ function Sn(e) {
1146
+ return e && $(e.next) && $(e.error) && $(e.complete);
1147
+ }
1148
+ function Tn(e) {
1149
+ return e && e instanceof rr || Sn(e) && Kt(e);
1150
+ }
1151
+ var wn = Jt(function(e) {
1152
+ return function() {
1153
+ e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1154
+ };
1155
+ }), nr = function(e) {
1156
+ R(t, e);
1157
+ function t() {
1158
+ var r = e.call(this) || this;
1159
+ return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
1160
+ }
1161
+ return t.prototype.lift = function(r) {
1162
+ var n = new Et(this, this);
1163
+ return n.operator = r, n;
1164
+ }, t.prototype._throwIfClosed = function() {
1165
+ if (this.closed)
1166
+ throw new wn();
1167
+ }, t.prototype.next = function(r) {
1168
+ var n = this;
1169
+ _e(function() {
1170
+ var i, o;
1171
+ if (n._throwIfClosed(), !n.isStopped) {
1172
+ n.currentObservers || (n.currentObservers = Array.from(n.observers));
1173
+ try {
1174
+ for (var s = We(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
1175
+ var u = a.value;
1176
+ u.next(r);
1177
+ }
1178
+ } catch (l) {
1179
+ i = { error: l };
1180
+ } finally {
1181
+ try {
1182
+ a && !a.done && (o = s.return) && o.call(s);
1183
+ } finally {
1184
+ if (i) throw i.error;
1185
+ }
1186
+ }
1187
+ }
1188
+ });
1189
+ }, t.prototype.error = function(r) {
1190
+ var n = this;
1191
+ _e(function() {
1192
+ if (n._throwIfClosed(), !n.isStopped) {
1193
+ n.hasError = n.isStopped = !0, n.thrownError = r;
1194
+ for (var i = n.observers; i.length; )
1195
+ i.shift().error(r);
1196
+ }
1197
+ });
1198
+ }, t.prototype.complete = function() {
1199
+ var r = this;
1200
+ _e(function() {
1201
+ if (r._throwIfClosed(), !r.isStopped) {
1202
+ r.isStopped = !0;
1203
+ for (var n = r.observers; n.length; )
1204
+ n.shift().complete();
1205
+ }
1206
+ });
1207
+ }, t.prototype.unsubscribe = function() {
1208
+ this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
1209
+ }, Object.defineProperty(t.prototype, "observed", {
1210
+ get: function() {
1211
+ var r;
1212
+ return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
1213
+ },
1214
+ enumerable: !1,
1215
+ configurable: !0
1216
+ }), t.prototype._trySubscribe = function(r) {
1217
+ return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
1218
+ }, t.prototype._subscribe = function(r) {
1219
+ return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
1220
+ }, t.prototype._innerSubscribe = function(r) {
1221
+ var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
1222
+ return o || s ? Yt : (this.currentObservers = null, a.push(r), new Ae(function() {
1223
+ n.currentObservers = null, Ze(a, r);
1224
+ }));
1225
+ }, t.prototype._checkFinalizedStatuses = function(r) {
1226
+ var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
1227
+ i ? r.error(o) : s && r.complete();
1228
+ }, t.prototype.asObservable = function() {
1229
+ var r = new vt();
1230
+ return r.source = this, r;
1231
+ }, t.create = function(r, n) {
1232
+ return new Et(r, n);
1233
+ }, t;
1234
+ }(vt), Et = function(e) {
1235
+ R(t, e);
1236
+ function t(r, n) {
1237
+ var i = e.call(this) || this;
1238
+ return i.destination = r, i.source = n, i;
1239
+ }
1240
+ return t.prototype.next = function(r) {
1241
+ var n, i;
1242
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
1243
+ }, t.prototype.error = function(r) {
1244
+ var n, i;
1245
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
1246
+ }, t.prototype.complete = function() {
1247
+ var r, n;
1248
+ (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1249
+ }, t.prototype._subscribe = function(r) {
1250
+ var n, i;
1251
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Yt;
1252
+ }, t;
1253
+ }(nr), ir = {
1254
+ now: function() {
1255
+ return (ir.delegate || Date).now();
1256
+ },
1257
+ delegate: void 0
1258
+ }, Hn = function(e) {
1259
+ R(t, e);
1260
+ function t(r, n, i) {
1261
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = ir);
1262
+ var o = e.call(this) || this;
1263
+ return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
1264
+ }
1265
+ return t.prototype.next = function(r) {
1266
+ var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
1267
+ i || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
1268
+ }, t.prototype._subscribe = function(r) {
1269
+ this._throwIfClosed(), this._trimBuffer();
1270
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !r.closed; u += o ? 1 : 2)
1271
+ r.next(a[u]);
1272
+ return this._checkFinalizedStatuses(r), n;
1273
+ }, t.prototype._trimBuffer = function() {
1274
+ var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
1275
+ if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
1276
+ for (var u = i.now(), l = 0, h = 1; h < o.length && o[h] <= u; h += 2)
1277
+ l = h;
1278
+ l && o.splice(0, l + 1);
1279
+ }
1280
+ }, t;
1281
+ }(nr);
1282
+ const xt = [], St = {}, Bn = (e, t = 0) => {
1283
+ if (xt.indexOf(e) == -1) {
1284
+ const r = new Hn(t);
1285
+ St[e] = r, xt.push(e);
1286
+ }
1287
+ return St[e];
1288
+ }, X = [];
1289
+ function An(e, t) {
1290
+ return {
1291
+ subscribe: Pe(e, t).subscribe
1292
+ };
1293
+ }
1294
+ function Pe(e, t = A) {
1295
+ let r;
1296
+ const n = /* @__PURE__ */ new Set();
1297
+ function i(a) {
1298
+ if (Gt(e, a) && (e = a, r)) {
1299
+ const u = !X.length;
1300
+ for (const l of n)
1301
+ l[1](), X.push(l, e);
1302
+ if (u) {
1303
+ for (let l = 0; l < X.length; l += 2)
1304
+ X[l][0](X[l + 1]);
1305
+ X.length = 0;
1306
+ }
1307
+ }
1308
+ }
1309
+ function o(a) {
1310
+ i(a(e));
1311
+ }
1312
+ function s(a, u = A) {
1313
+ const l = [a, u];
1314
+ return n.add(l), n.size === 1 && (r = t(i, o) || A), a(e), () => {
1315
+ n.delete(l), n.size === 0 && r && (r(), r = null);
1316
+ };
1317
+ }
1318
+ return { set: i, update: o, subscribe: s };
1319
+ }
1320
+ function ee(e, t, r) {
1321
+ const n = !Array.isArray(e), i = n ? [e] : e;
1322
+ if (!i.every(Boolean))
1323
+ throw new Error("derived() expects stores as input, got a falsy value");
1324
+ const o = t.length < 2;
1325
+ return An(r, (s, a) => {
1326
+ let u = !1;
1327
+ const l = [];
1328
+ let h = 0, c = A;
1329
+ const f = () => {
1330
+ if (h)
1331
+ return;
1332
+ c();
1333
+ const d = t(n ? l[0] : l, s, a);
1334
+ o ? s(d) : c = he(d) ? d : A;
1335
+ }, p = i.map(
1336
+ (d, m) => Ft(
1337
+ d,
1338
+ (E) => {
1339
+ l[m] = E, h &= ~(1 << m), u && f();
1340
+ },
1341
+ () => {
1342
+ h |= 1 << m;
1343
+ }
1344
+ )
1345
+ );
1346
+ return u = !0, f(), function() {
1347
+ F(p), c(), u = !1;
1348
+ };
1349
+ });
1350
+ }
1351
+ var Qo = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
1352
+ function Pn(e) {
1353
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1354
+ }
1355
+ var On = function(t) {
1356
+ return In(t) && !Ln(t);
1357
+ };
1358
+ function In(e) {
1359
+ return !!e && typeof e == "object";
1360
+ }
1361
+ function Ln(e) {
1362
+ var t = Object.prototype.toString.call(e);
1363
+ return t === "[object RegExp]" || t === "[object Date]" || Mn(e);
1364
+ }
1365
+ var Cn = typeof Symbol == "function" && Symbol.for, Nn = Cn ? Symbol.for("react.element") : 60103;
1366
+ function Mn(e) {
1367
+ return e.$$typeof === Nn;
1368
+ }
1369
+ function $n(e) {
1370
+ return Array.isArray(e) ? [] : {};
1371
+ }
1372
+ function ue(e, t) {
1373
+ return t.clone !== !1 && t.isMergeableObject(e) ? q($n(e), e, t) : e;
1374
+ }
1375
+ function Rn(e, t, r) {
1376
+ return e.concat(t).map(function(n) {
1377
+ return ue(n, r);
1378
+ });
1379
+ }
1380
+ function Un(e, t) {
1381
+ if (!t.customMerge)
1382
+ return q;
1383
+ var r = t.customMerge(e);
1384
+ return typeof r == "function" ? r : q;
1385
+ }
1386
+ function Dn(e) {
1387
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1388
+ return Object.propertyIsEnumerable.call(e, t);
1389
+ }) : [];
1390
+ }
1391
+ function Tt(e) {
1392
+ return Object.keys(e).concat(Dn(e));
1393
+ }
1394
+ function or(e, t) {
1395
+ try {
1396
+ return t in e;
1397
+ } catch (r) {
1398
+ return !1;
1399
+ }
1400
+ }
1401
+ function Gn(e, t) {
1402
+ return or(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1403
+ }
1404
+ function Fn(e, t, r) {
1405
+ var n = {};
1406
+ return r.isMergeableObject(e) && Tt(e).forEach(function(i) {
1407
+ n[i] = ue(e[i], r);
1408
+ }), Tt(t).forEach(function(i) {
1409
+ Gn(e, i) || (or(e, i) && r.isMergeableObject(t[i]) ? n[i] = Un(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
1410
+ }), n;
1411
+ }
1412
+ function q(e, t, r) {
1413
+ r = r || {}, r.arrayMerge = r.arrayMerge || Rn, r.isMergeableObject = r.isMergeableObject || On, r.cloneUnlessOtherwiseSpecified = ue;
1414
+ var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1415
+ return o ? n ? r.arrayMerge(e, t, r) : Fn(e, t, r) : ue(t, r);
1416
+ }
1417
+ q.all = function(t, r) {
1418
+ if (!Array.isArray(t))
1419
+ throw new Error("first argument should be an array");
1420
+ return t.reduce(function(n, i) {
1421
+ return q(n, i, r);
1422
+ }, {});
1423
+ };
1424
+ var jn = q, kn = jn;
1425
+ const Vn = /* @__PURE__ */ Pn(kn);
1426
+ var b;
1427
+ (function(e) {
1428
+ 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";
1429
+ })(b || (b = {}));
1430
+ var _;
1431
+ (function(e) {
1432
+ 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";
1433
+ })(_ || (_ = {}));
1434
+ var J;
1435
+ (function(e) {
1436
+ e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1437
+ })(J || (J = {}));
1438
+ function wt(e) {
1439
+ return e.type === _.literal;
1440
+ }
1441
+ function Xn(e) {
1442
+ return e.type === _.argument;
1443
+ }
1444
+ function sr(e) {
1445
+ return e.type === _.number;
1446
+ }
1447
+ function ar(e) {
1448
+ return e.type === _.date;
1449
+ }
1450
+ function ur(e) {
1451
+ return e.type === _.time;
1452
+ }
1453
+ function lr(e) {
1454
+ return e.type === _.select;
1455
+ }
1456
+ function hr(e) {
1457
+ return e.type === _.plural;
1458
+ }
1459
+ function Wn(e) {
1460
+ return e.type === _.pound;
1461
+ }
1462
+ function cr(e) {
1463
+ return e.type === _.tag;
1464
+ }
1465
+ function fr(e) {
1466
+ return !!(e && typeof e == "object" && e.type === J.number);
1467
+ }
1468
+ function qe(e) {
1469
+ return !!(e && typeof e == "object" && e.type === J.dateTime);
1470
+ }
1471
+ var pr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1472
+ function Zn(e) {
1473
+ var t = {};
1474
+ return e.replace(zn, function(r) {
1475
+ var n = r.length;
1476
+ switch (r[0]) {
1477
+ case "G":
1478
+ t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1479
+ break;
1480
+ case "y":
1481
+ t.year = n === 2 ? "2-digit" : "numeric";
1482
+ break;
1483
+ case "Y":
1484
+ case "u":
1485
+ case "U":
1486
+ case "r":
1487
+ throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
1488
+ case "q":
1489
+ case "Q":
1490
+ throw new RangeError("`q/Q` (quarter) patterns are not supported");
1491
+ case "M":
1492
+ case "L":
1493
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
1494
+ break;
1495
+ case "w":
1496
+ case "W":
1497
+ throw new RangeError("`w/W` (week) patterns are not supported");
1498
+ case "d":
1499
+ t.day = ["numeric", "2-digit"][n - 1];
1500
+ break;
1501
+ case "D":
1502
+ case "F":
1503
+ case "g":
1504
+ throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
1505
+ case "E":
1506
+ t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1507
+ break;
1508
+ case "e":
1509
+ if (n < 4)
1510
+ throw new RangeError("`e..eee` (weekday) patterns are not supported");
1511
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
1512
+ break;
1513
+ case "c":
1514
+ if (n < 4)
1515
+ throw new RangeError("`c..ccc` (weekday) patterns are not supported");
1516
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
1517
+ break;
1518
+ case "a":
1519
+ t.hour12 = !0;
1520
+ break;
1521
+ case "b":
1522
+ case "B":
1523
+ throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
1524
+ case "h":
1525
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
1526
+ break;
1527
+ case "H":
1528
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
1529
+ break;
1530
+ case "K":
1531
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
1532
+ break;
1533
+ case "k":
1534
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
1535
+ break;
1536
+ case "j":
1537
+ case "J":
1538
+ case "C":
1539
+ throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
1540
+ case "m":
1541
+ t.minute = ["numeric", "2-digit"][n - 1];
1542
+ break;
1543
+ case "s":
1544
+ t.second = ["numeric", "2-digit"][n - 1];
1545
+ break;
1546
+ case "S":
1547
+ case "A":
1548
+ throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
1549
+ case "z":
1550
+ t.timeZoneName = n < 4 ? "short" : "long";
1551
+ break;
1552
+ case "Z":
1553
+ case "O":
1554
+ case "v":
1555
+ case "V":
1556
+ case "X":
1557
+ case "x":
1558
+ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
1559
+ }
1560
+ return "";
1561
+ }), t;
1562
+ }
1563
+ var Qn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1564
+ function qn(e) {
1565
+ if (e.length === 0)
1566
+ throw new Error("Number skeleton cannot be empty");
1567
+ for (var t = e.split(Qn).filter(function(f) {
1568
+ return f.length > 0;
1569
+ }), r = [], n = 0, i = t; n < i.length; n++) {
1570
+ var o = i[n], s = o.split("/");
1571
+ if (s.length === 0)
1572
+ throw new Error("Invalid number skeleton");
1573
+ for (var a = s[0], u = s.slice(1), l = 0, h = u; l < h.length; l++) {
1574
+ var c = h[l];
1575
+ if (c.length === 0)
1576
+ throw new Error("Invalid number skeleton");
1577
+ }
1578
+ r.push({ stem: a, options: u });
1579
+ }
1580
+ return r;
1581
+ }
1582
+ function Jn(e) {
1583
+ return e.replace(/^(.*?)-/, "");
1584
+ }
1585
+ var Ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dr = /^(@+)?(\+|#+)?[rs]?$/g, Yn = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
1586
+ function Bt(e) {
1587
+ var t = {};
1588
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(dr, function(r, n, i) {
1589
+ return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1590
+ }), t;
1591
+ }
1592
+ function br(e) {
1593
+ switch (e) {
1594
+ case "sign-auto":
1595
+ return {
1596
+ signDisplay: "auto"
1597
+ };
1598
+ case "sign-accounting":
1599
+ case "()":
1600
+ return {
1601
+ currencySign: "accounting"
1602
+ };
1603
+ case "sign-always":
1604
+ case "+!":
1605
+ return {
1606
+ signDisplay: "always"
1607
+ };
1608
+ case "sign-accounting-always":
1609
+ case "()!":
1610
+ return {
1611
+ signDisplay: "always",
1612
+ currencySign: "accounting"
1613
+ };
1614
+ case "sign-except-zero":
1615
+ case "+?":
1616
+ return {
1617
+ signDisplay: "exceptZero"
1618
+ };
1619
+ case "sign-accounting-except-zero":
1620
+ case "()?":
1621
+ return {
1622
+ signDisplay: "exceptZero",
1623
+ currencySign: "accounting"
1624
+ };
1625
+ case "sign-never":
1626
+ case "+_":
1627
+ return {
1628
+ signDisplay: "never"
1629
+ };
1630
+ }
1631
+ }
1632
+ function Kn(e) {
1633
+ var t;
1634
+ if (e[0] === "E" && e[1] === "E" ? (t = {
1635
+ notation: "engineering"
1636
+ }, e = e.slice(2)) : e[0] === "E" && (t = {
1637
+ notation: "scientific"
1638
+ }, e = e.slice(1)), t) {
1639
+ var r = e.slice(0, 2);
1640
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mr.test(e))
1641
+ throw new Error("Malformed concise eng/scientific notation");
1642
+ t.minimumIntegerDigits = e.length;
1643
+ }
1644
+ return t;
1645
+ }
1646
+ function At(e) {
1647
+ var t = {}, r = br(e);
1648
+ return r || t;
1649
+ }
1650
+ function ei(e) {
1651
+ for (var t = {}, r = 0, n = e; r < n.length; r++) {
1652
+ var i = n[r];
1653
+ switch (i.stem) {
1654
+ case "percent":
1655
+ case "%":
1656
+ t.style = "percent";
1657
+ continue;
1658
+ case "%x100":
1659
+ t.style = "percent", t.scale = 100;
1660
+ continue;
1661
+ case "currency":
1662
+ t.style = "currency", t.currency = i.options[0];
1663
+ continue;
1664
+ case "group-off":
1665
+ case ",_":
1666
+ t.useGrouping = !1;
1667
+ continue;
1668
+ case "precision-integer":
1669
+ case ".":
1670
+ t.maximumFractionDigits = 0;
1671
+ continue;
1672
+ case "measure-unit":
1673
+ case "unit":
1674
+ t.style = "unit", t.unit = Jn(i.options[0]);
1675
+ continue;
1676
+ case "compact-short":
1677
+ case "K":
1678
+ t.notation = "compact", t.compactDisplay = "short";
1679
+ continue;
1680
+ case "compact-long":
1681
+ case "KK":
1682
+ t.notation = "compact", t.compactDisplay = "long";
1683
+ continue;
1684
+ case "scientific":
1685
+ t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
1686
+ return v(v({}, u), At(l));
1687
+ }, {}));
1688
+ continue;
1689
+ case "engineering":
1690
+ t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
1691
+ return v(v({}, u), At(l));
1692
+ }, {}));
1693
+ continue;
1694
+ case "notation-simple":
1695
+ t.notation = "standard";
1696
+ continue;
1697
+ case "unit-width-narrow":
1698
+ t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
1699
+ continue;
1700
+ case "unit-width-short":
1701
+ t.currencyDisplay = "code", t.unitDisplay = "short";
1702
+ continue;
1703
+ case "unit-width-full-name":
1704
+ t.currencyDisplay = "name", t.unitDisplay = "long";
1705
+ continue;
1706
+ case "unit-width-iso-code":
1707
+ t.currencyDisplay = "symbol";
1708
+ continue;
1709
+ case "scale":
1710
+ t.scale = parseFloat(i.options[0]);
1711
+ continue;
1712
+ case "rounding-mode-floor":
1713
+ t.roundingMode = "floor";
1714
+ continue;
1715
+ case "rounding-mode-ceiling":
1716
+ t.roundingMode = "ceil";
1717
+ continue;
1718
+ case "rounding-mode-down":
1719
+ t.roundingMode = "trunc";
1720
+ continue;
1721
+ case "rounding-mode-up":
1722
+ t.roundingMode = "expand";
1723
+ continue;
1724
+ case "rounding-mode-half-even":
1725
+ t.roundingMode = "halfEven";
1726
+ continue;
1727
+ case "rounding-mode-half-down":
1728
+ t.roundingMode = "halfTrunc";
1729
+ continue;
1730
+ case "rounding-mode-half-up":
1731
+ t.roundingMode = "halfExpand";
1732
+ continue;
1733
+ case "integer-width":
1734
+ if (i.options.length > 1)
1735
+ throw new RangeError("integer-width stems only accept a single optional option");
1736
+ i.options[0].replace(Yn, function(u, l, h, c, f, p) {
1737
+ if (l)
1738
+ t.minimumIntegerDigits = h.length;
1739
+ else {
1740
+ if (c && f)
1741
+ throw new Error("We currently do not support maximum integer digits");
1742
+ if (p)
1743
+ throw new Error("We currently do not support exact integer digits");
1744
+ }
1745
+ return "";
1746
+ });
1747
+ continue;
1748
+ }
1749
+ if (mr.test(i.stem)) {
1750
+ t.minimumIntegerDigits = i.stem.length;
1751
+ continue;
1752
+ }
1753
+ if (Ht.test(i.stem)) {
1754
+ if (i.options.length > 1)
1755
+ throw new RangeError("Fraction-precision stems only accept a single optional option");
1756
+ i.stem.replace(Ht, function(u, l, h, c, f, p) {
1757
+ return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1758
+ });
1759
+ var o = i.options[0];
1760
+ o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), Bt(o)));
1761
+ continue;
1762
+ }
1763
+ if (dr.test(i.stem)) {
1764
+ t = v(v({}, t), Bt(i.stem));
1765
+ continue;
1766
+ }
1767
+ var s = br(i.stem);
1768
+ s && (t = v(v({}, t), s));
1769
+ var a = Kn(i.stem);
1770
+ a && (t = v(v({}, t), a));
1771
+ }
1772
+ return t;
1773
+ }
1774
+ var ye = {
1775
+ "001": [
1776
+ "H",
1777
+ "h"
1778
+ ],
1779
+ AC: [
1780
+ "H",
1781
+ "h",
1782
+ "hb",
1783
+ "hB"
1784
+ ],
1785
+ AD: [
1786
+ "H",
1787
+ "hB"
1788
+ ],
1789
+ AE: [
1790
+ "h",
1791
+ "hB",
1792
+ "hb",
1793
+ "H"
1794
+ ],
1795
+ AF: [
1796
+ "H",
1797
+ "hb",
1798
+ "hB",
1799
+ "h"
1800
+ ],
1801
+ AG: [
1802
+ "h",
1803
+ "hb",
1804
+ "H",
1805
+ "hB"
1806
+ ],
1807
+ AI: [
1808
+ "H",
1809
+ "h",
1810
+ "hb",
1811
+ "hB"
1812
+ ],
1813
+ AL: [
1814
+ "h",
1815
+ "H",
1816
+ "hB"
1817
+ ],
1818
+ AM: [
1819
+ "H",
1820
+ "hB"
1821
+ ],
1822
+ AO: [
1823
+ "H",
1824
+ "hB"
1825
+ ],
1826
+ AR: [
1827
+ "H",
1828
+ "h",
1829
+ "hB",
1830
+ "hb"
1831
+ ],
1832
+ AS: [
1833
+ "h",
1834
+ "H"
1835
+ ],
1836
+ AT: [
1837
+ "H",
1838
+ "hB"
1839
+ ],
1840
+ AU: [
1841
+ "h",
1842
+ "hb",
1843
+ "H",
1844
+ "hB"
1845
+ ],
1846
+ AW: [
1847
+ "H",
1848
+ "hB"
1849
+ ],
1850
+ AX: [
1851
+ "H"
1852
+ ],
1853
+ AZ: [
1854
+ "H",
1855
+ "hB",
1856
+ "h"
1857
+ ],
1858
+ BA: [
1859
+ "H",
1860
+ "hB",
1861
+ "h"
1862
+ ],
1863
+ BB: [
1864
+ "h",
1865
+ "hb",
1866
+ "H",
1867
+ "hB"
1868
+ ],
1869
+ BD: [
1870
+ "h",
1871
+ "hB",
1872
+ "H"
1873
+ ],
1874
+ BE: [
1875
+ "H",
1876
+ "hB"
1877
+ ],
1878
+ BF: [
1879
+ "H",
1880
+ "hB"
1881
+ ],
1882
+ BG: [
1883
+ "H",
1884
+ "hB",
1885
+ "h"
1886
+ ],
1887
+ BH: [
1888
+ "h",
1889
+ "hB",
1890
+ "hb",
1891
+ "H"
1892
+ ],
1893
+ BI: [
1894
+ "H",
1895
+ "h"
1896
+ ],
1897
+ BJ: [
1898
+ "H",
1899
+ "hB"
1900
+ ],
1901
+ BL: [
1902
+ "H",
1903
+ "hB"
1904
+ ],
1905
+ BM: [
1906
+ "h",
1907
+ "hb",
1908
+ "H",
1909
+ "hB"
1910
+ ],
1911
+ BN: [
1912
+ "hb",
1913
+ "hB",
1914
+ "h",
1915
+ "H"
1916
+ ],
1917
+ BO: [
1918
+ "H",
1919
+ "hB",
1920
+ "h",
1921
+ "hb"
1922
+ ],
1923
+ BQ: [
1924
+ "H"
1925
+ ],
1926
+ BR: [
1927
+ "H",
1928
+ "hB"
1929
+ ],
1930
+ BS: [
1931
+ "h",
1932
+ "hb",
1933
+ "H",
1934
+ "hB"
1935
+ ],
1936
+ BT: [
1937
+ "h",
1938
+ "H"
1939
+ ],
1940
+ BW: [
1941
+ "H",
1942
+ "h",
1943
+ "hb",
1944
+ "hB"
1945
+ ],
1946
+ BY: [
1947
+ "H",
1948
+ "h"
1949
+ ],
1950
+ BZ: [
1951
+ "H",
1952
+ "h",
1953
+ "hb",
1954
+ "hB"
1955
+ ],
1956
+ CA: [
1957
+ "h",
1958
+ "hb",
1959
+ "H",
1960
+ "hB"
1961
+ ],
1962
+ CC: [
1963
+ "H",
1964
+ "h",
1965
+ "hb",
1966
+ "hB"
1967
+ ],
1968
+ CD: [
1969
+ "hB",
1970
+ "H"
1971
+ ],
1972
+ CF: [
1973
+ "H",
1974
+ "h",
1975
+ "hB"
1976
+ ],
1977
+ CG: [
1978
+ "H",
1979
+ "hB"
1980
+ ],
1981
+ CH: [
1982
+ "H",
1983
+ "hB",
1984
+ "h"
1985
+ ],
1986
+ CI: [
1987
+ "H",
1988
+ "hB"
1989
+ ],
1990
+ CK: [
1991
+ "H",
1992
+ "h",
1993
+ "hb",
1994
+ "hB"
1995
+ ],
1996
+ CL: [
1997
+ "H",
1998
+ "h",
1999
+ "hB",
2000
+ "hb"
2001
+ ],
2002
+ CM: [
2003
+ "H",
2004
+ "h",
2005
+ "hB"
2006
+ ],
2007
+ CN: [
2008
+ "H",
2009
+ "hB",
2010
+ "hb",
2011
+ "h"
2012
+ ],
2013
+ CO: [
2014
+ "h",
2015
+ "H",
2016
+ "hB",
2017
+ "hb"
2018
+ ],
2019
+ CP: [
2020
+ "H"
2021
+ ],
2022
+ CR: [
2023
+ "H",
2024
+ "h",
2025
+ "hB",
2026
+ "hb"
2027
+ ],
2028
+ CU: [
2029
+ "H",
2030
+ "h",
2031
+ "hB",
2032
+ "hb"
2033
+ ],
2034
+ CV: [
2035
+ "H",
2036
+ "hB"
2037
+ ],
2038
+ CW: [
2039
+ "H",
2040
+ "hB"
2041
+ ],
2042
+ CX: [
2043
+ "H",
2044
+ "h",
2045
+ "hb",
2046
+ "hB"
2047
+ ],
2048
+ CY: [
2049
+ "h",
2050
+ "H",
2051
+ "hb",
2052
+ "hB"
2053
+ ],
2054
+ CZ: [
2055
+ "H"
2056
+ ],
2057
+ DE: [
2058
+ "H",
2059
+ "hB"
2060
+ ],
2061
+ DG: [
2062
+ "H",
2063
+ "h",
2064
+ "hb",
2065
+ "hB"
2066
+ ],
2067
+ DJ: [
2068
+ "h",
2069
+ "H"
2070
+ ],
2071
+ DK: [
2072
+ "H"
2073
+ ],
2074
+ DM: [
2075
+ "h",
2076
+ "hb",
2077
+ "H",
2078
+ "hB"
2079
+ ],
2080
+ DO: [
2081
+ "h",
2082
+ "H",
2083
+ "hB",
2084
+ "hb"
2085
+ ],
2086
+ DZ: [
2087
+ "h",
2088
+ "hB",
2089
+ "hb",
2090
+ "H"
2091
+ ],
2092
+ EA: [
2093
+ "H",
2094
+ "h",
2095
+ "hB",
2096
+ "hb"
2097
+ ],
2098
+ EC: [
2099
+ "H",
2100
+ "hB",
2101
+ "h",
2102
+ "hb"
2103
+ ],
2104
+ EE: [
2105
+ "H",
2106
+ "hB"
2107
+ ],
2108
+ EG: [
2109
+ "h",
2110
+ "hB",
2111
+ "hb",
2112
+ "H"
2113
+ ],
2114
+ EH: [
2115
+ "h",
2116
+ "hB",
2117
+ "hb",
2118
+ "H"
2119
+ ],
2120
+ ER: [
2121
+ "h",
2122
+ "H"
2123
+ ],
2124
+ ES: [
2125
+ "H",
2126
+ "hB",
2127
+ "h",
2128
+ "hb"
2129
+ ],
2130
+ ET: [
2131
+ "hB",
2132
+ "hb",
2133
+ "h",
2134
+ "H"
2135
+ ],
2136
+ FI: [
2137
+ "H"
2138
+ ],
2139
+ FJ: [
2140
+ "h",
2141
+ "hb",
2142
+ "H",
2143
+ "hB"
2144
+ ],
2145
+ FK: [
2146
+ "H",
2147
+ "h",
2148
+ "hb",
2149
+ "hB"
2150
+ ],
2151
+ FM: [
2152
+ "h",
2153
+ "hb",
2154
+ "H",
2155
+ "hB"
2156
+ ],
2157
+ FO: [
2158
+ "H",
2159
+ "h"
2160
+ ],
2161
+ FR: [
2162
+ "H",
2163
+ "hB"
2164
+ ],
2165
+ GA: [
2166
+ "H",
2167
+ "hB"
2168
+ ],
2169
+ GB: [
2170
+ "H",
2171
+ "h",
2172
+ "hb",
2173
+ "hB"
2174
+ ],
2175
+ GD: [
2176
+ "h",
2177
+ "hb",
2178
+ "H",
2179
+ "hB"
2180
+ ],
2181
+ GE: [
2182
+ "H",
2183
+ "hB",
2184
+ "h"
2185
+ ],
2186
+ GF: [
2187
+ "H",
2188
+ "hB"
2189
+ ],
2190
+ GG: [
2191
+ "H",
2192
+ "h",
2193
+ "hb",
2194
+ "hB"
2195
+ ],
2196
+ GH: [
2197
+ "h",
2198
+ "H"
2199
+ ],
2200
+ GI: [
2201
+ "H",
2202
+ "h",
2203
+ "hb",
2204
+ "hB"
2205
+ ],
2206
+ GL: [
2207
+ "H",
2208
+ "h"
2209
+ ],
2210
+ GM: [
2211
+ "h",
2212
+ "hb",
2213
+ "H",
2214
+ "hB"
2215
+ ],
2216
+ GN: [
2217
+ "H",
2218
+ "hB"
2219
+ ],
2220
+ GP: [
2221
+ "H",
2222
+ "hB"
2223
+ ],
2224
+ GQ: [
2225
+ "H",
2226
+ "hB",
2227
+ "h",
2228
+ "hb"
2229
+ ],
2230
+ GR: [
2231
+ "h",
2232
+ "H",
2233
+ "hb",
2234
+ "hB"
2235
+ ],
2236
+ GT: [
2237
+ "H",
2238
+ "h",
2239
+ "hB",
2240
+ "hb"
2241
+ ],
2242
+ GU: [
2243
+ "h",
2244
+ "hb",
2245
+ "H",
2246
+ "hB"
2247
+ ],
2248
+ GW: [
2249
+ "H",
2250
+ "hB"
2251
+ ],
2252
+ GY: [
2253
+ "h",
2254
+ "hb",
2255
+ "H",
2256
+ "hB"
2257
+ ],
2258
+ HK: [
2259
+ "h",
2260
+ "hB",
2261
+ "hb",
2262
+ "H"
2263
+ ],
2264
+ HN: [
2265
+ "H",
2266
+ "h",
2267
+ "hB",
2268
+ "hb"
2269
+ ],
2270
+ HR: [
2271
+ "H",
2272
+ "hB"
2273
+ ],
2274
+ HU: [
2275
+ "H",
2276
+ "h"
2277
+ ],
2278
+ IC: [
2279
+ "H",
2280
+ "h",
2281
+ "hB",
2282
+ "hb"
2283
+ ],
2284
+ ID: [
2285
+ "H"
2286
+ ],
2287
+ IE: [
2288
+ "H",
2289
+ "h",
2290
+ "hb",
2291
+ "hB"
2292
+ ],
2293
+ IL: [
2294
+ "H",
2295
+ "hB"
2296
+ ],
2297
+ IM: [
2298
+ "H",
2299
+ "h",
2300
+ "hb",
2301
+ "hB"
2302
+ ],
2303
+ IN: [
2304
+ "h",
2305
+ "H"
2306
+ ],
2307
+ IO: [
2308
+ "H",
2309
+ "h",
2310
+ "hb",
2311
+ "hB"
2312
+ ],
2313
+ IQ: [
2314
+ "h",
2315
+ "hB",
2316
+ "hb",
2317
+ "H"
2318
+ ],
2319
+ IR: [
2320
+ "hB",
2321
+ "H"
2322
+ ],
2323
+ IS: [
2324
+ "H"
2325
+ ],
2326
+ IT: [
2327
+ "H",
2328
+ "hB"
2329
+ ],
2330
+ JE: [
2331
+ "H",
2332
+ "h",
2333
+ "hb",
2334
+ "hB"
2335
+ ],
2336
+ JM: [
2337
+ "h",
2338
+ "hb",
2339
+ "H",
2340
+ "hB"
2341
+ ],
2342
+ JO: [
2343
+ "h",
2344
+ "hB",
2345
+ "hb",
2346
+ "H"
2347
+ ],
2348
+ JP: [
2349
+ "H",
2350
+ "K",
2351
+ "h"
2352
+ ],
2353
+ KE: [
2354
+ "hB",
2355
+ "hb",
2356
+ "H",
2357
+ "h"
2358
+ ],
2359
+ KG: [
2360
+ "H",
2361
+ "h",
2362
+ "hB",
2363
+ "hb"
2364
+ ],
2365
+ KH: [
2366
+ "hB",
2367
+ "h",
2368
+ "H",
2369
+ "hb"
2370
+ ],
2371
+ KI: [
2372
+ "h",
2373
+ "hb",
2374
+ "H",
2375
+ "hB"
2376
+ ],
2377
+ KM: [
2378
+ "H",
2379
+ "h",
2380
+ "hB",
2381
+ "hb"
2382
+ ],
2383
+ KN: [
2384
+ "h",
2385
+ "hb",
2386
+ "H",
2387
+ "hB"
2388
+ ],
2389
+ KP: [
2390
+ "h",
2391
+ "H",
2392
+ "hB",
2393
+ "hb"
2394
+ ],
2395
+ KR: [
2396
+ "h",
2397
+ "H",
2398
+ "hB",
2399
+ "hb"
2400
+ ],
2401
+ KW: [
2402
+ "h",
2403
+ "hB",
2404
+ "hb",
2405
+ "H"
2406
+ ],
2407
+ KY: [
2408
+ "h",
2409
+ "hb",
2410
+ "H",
2411
+ "hB"
2412
+ ],
2413
+ KZ: [
2414
+ "H",
2415
+ "hB"
2416
+ ],
2417
+ LA: [
2418
+ "H",
2419
+ "hb",
2420
+ "hB",
2421
+ "h"
2422
+ ],
2423
+ LB: [
2424
+ "h",
2425
+ "hB",
2426
+ "hb",
2427
+ "H"
2428
+ ],
2429
+ LC: [
2430
+ "h",
2431
+ "hb",
2432
+ "H",
2433
+ "hB"
2434
+ ],
2435
+ LI: [
2436
+ "H",
2437
+ "hB",
2438
+ "h"
2439
+ ],
2440
+ LK: [
2441
+ "H",
2442
+ "h",
2443
+ "hB",
2444
+ "hb"
2445
+ ],
2446
+ LR: [
2447
+ "h",
2448
+ "hb",
2449
+ "H",
2450
+ "hB"
2451
+ ],
2452
+ LS: [
2453
+ "h",
2454
+ "H"
2455
+ ],
2456
+ LT: [
2457
+ "H",
2458
+ "h",
2459
+ "hb",
2460
+ "hB"
2461
+ ],
2462
+ LU: [
2463
+ "H",
2464
+ "h",
2465
+ "hB"
2466
+ ],
2467
+ LV: [
2468
+ "H",
2469
+ "hB",
2470
+ "hb",
2471
+ "h"
2472
+ ],
2473
+ LY: [
2474
+ "h",
2475
+ "hB",
2476
+ "hb",
2477
+ "H"
2478
+ ],
2479
+ MA: [
2480
+ "H",
2481
+ "h",
2482
+ "hB",
2483
+ "hb"
2484
+ ],
2485
+ MC: [
2486
+ "H",
2487
+ "hB"
2488
+ ],
2489
+ MD: [
2490
+ "H",
2491
+ "hB"
2492
+ ],
2493
+ ME: [
2494
+ "H",
2495
+ "hB",
2496
+ "h"
2497
+ ],
2498
+ MF: [
2499
+ "H",
2500
+ "hB"
2501
+ ],
2502
+ MG: [
2503
+ "H",
2504
+ "h"
2505
+ ],
2506
+ MH: [
2507
+ "h",
2508
+ "hb",
2509
+ "H",
2510
+ "hB"
2511
+ ],
2512
+ MK: [
2513
+ "H",
2514
+ "h",
2515
+ "hb",
2516
+ "hB"
2517
+ ],
2518
+ ML: [
2519
+ "H"
2520
+ ],
2521
+ MM: [
2522
+ "hB",
2523
+ "hb",
2524
+ "H",
2525
+ "h"
2526
+ ],
2527
+ MN: [
2528
+ "H",
2529
+ "h",
2530
+ "hb",
2531
+ "hB"
2532
+ ],
2533
+ MO: [
2534
+ "h",
2535
+ "hB",
2536
+ "hb",
2537
+ "H"
2538
+ ],
2539
+ MP: [
2540
+ "h",
2541
+ "hb",
2542
+ "H",
2543
+ "hB"
2544
+ ],
2545
+ MQ: [
2546
+ "H",
2547
+ "hB"
2548
+ ],
2549
+ MR: [
2550
+ "h",
2551
+ "hB",
2552
+ "hb",
2553
+ "H"
2554
+ ],
2555
+ MS: [
2556
+ "H",
2557
+ "h",
2558
+ "hb",
2559
+ "hB"
2560
+ ],
2561
+ MT: [
2562
+ "H",
2563
+ "h"
2564
+ ],
2565
+ MU: [
2566
+ "H",
2567
+ "h"
2568
+ ],
2569
+ MV: [
2570
+ "H",
2571
+ "h"
2572
+ ],
2573
+ MW: [
2574
+ "h",
2575
+ "hb",
2576
+ "H",
2577
+ "hB"
2578
+ ],
2579
+ MX: [
2580
+ "H",
2581
+ "h",
2582
+ "hB",
2583
+ "hb"
2584
+ ],
2585
+ MY: [
2586
+ "hb",
2587
+ "hB",
2588
+ "h",
2589
+ "H"
2590
+ ],
2591
+ MZ: [
2592
+ "H",
2593
+ "hB"
2594
+ ],
2595
+ NA: [
2596
+ "h",
2597
+ "H",
2598
+ "hB",
2599
+ "hb"
2600
+ ],
2601
+ NC: [
2602
+ "H",
2603
+ "hB"
2604
+ ],
2605
+ NE: [
2606
+ "H"
2607
+ ],
2608
+ NF: [
2609
+ "H",
2610
+ "h",
2611
+ "hb",
2612
+ "hB"
2613
+ ],
2614
+ NG: [
2615
+ "H",
2616
+ "h",
2617
+ "hb",
2618
+ "hB"
2619
+ ],
2620
+ NI: [
2621
+ "H",
2622
+ "h",
2623
+ "hB",
2624
+ "hb"
2625
+ ],
2626
+ NL: [
2627
+ "H",
2628
+ "hB"
2629
+ ],
2630
+ NO: [
2631
+ "H",
2632
+ "h"
2633
+ ],
2634
+ NP: [
2635
+ "H",
2636
+ "h",
2637
+ "hB"
2638
+ ],
2639
+ NR: [
2640
+ "H",
2641
+ "h",
2642
+ "hb",
2643
+ "hB"
2644
+ ],
2645
+ NU: [
2646
+ "H",
2647
+ "h",
2648
+ "hb",
2649
+ "hB"
2650
+ ],
2651
+ NZ: [
2652
+ "h",
2653
+ "hb",
2654
+ "H",
2655
+ "hB"
2656
+ ],
2657
+ OM: [
2658
+ "h",
2659
+ "hB",
2660
+ "hb",
2661
+ "H"
2662
+ ],
2663
+ PA: [
2664
+ "h",
2665
+ "H",
2666
+ "hB",
2667
+ "hb"
2668
+ ],
2669
+ PE: [
2670
+ "H",
2671
+ "hB",
2672
+ "h",
2673
+ "hb"
2674
+ ],
2675
+ PF: [
2676
+ "H",
2677
+ "h",
2678
+ "hB"
2679
+ ],
2680
+ PG: [
2681
+ "h",
2682
+ "H"
2683
+ ],
2684
+ PH: [
2685
+ "h",
2686
+ "hB",
2687
+ "hb",
2688
+ "H"
2689
+ ],
2690
+ PK: [
2691
+ "h",
2692
+ "hB",
2693
+ "H"
2694
+ ],
2695
+ PL: [
2696
+ "H",
2697
+ "h"
2698
+ ],
2699
+ PM: [
2700
+ "H",
2701
+ "hB"
2702
+ ],
2703
+ PN: [
2704
+ "H",
2705
+ "h",
2706
+ "hb",
2707
+ "hB"
2708
+ ],
2709
+ PR: [
2710
+ "h",
2711
+ "H",
2712
+ "hB",
2713
+ "hb"
2714
+ ],
2715
+ PS: [
2716
+ "h",
2717
+ "hB",
2718
+ "hb",
2719
+ "H"
2720
+ ],
2721
+ PT: [
2722
+ "H",
2723
+ "hB"
2724
+ ],
2725
+ PW: [
2726
+ "h",
2727
+ "H"
2728
+ ],
2729
+ PY: [
2730
+ "H",
2731
+ "h",
2732
+ "hB",
2733
+ "hb"
2734
+ ],
2735
+ QA: [
2736
+ "h",
2737
+ "hB",
2738
+ "hb",
2739
+ "H"
2740
+ ],
2741
+ RE: [
2742
+ "H",
2743
+ "hB"
2744
+ ],
2745
+ RO: [
2746
+ "H",
2747
+ "hB"
2748
+ ],
2749
+ RS: [
2750
+ "H",
2751
+ "hB",
2752
+ "h"
2753
+ ],
2754
+ RU: [
2755
+ "H"
2756
+ ],
2757
+ RW: [
2758
+ "H",
2759
+ "h"
2760
+ ],
2761
+ SA: [
2762
+ "h",
2763
+ "hB",
2764
+ "hb",
2765
+ "H"
2766
+ ],
2767
+ SB: [
2768
+ "h",
2769
+ "hb",
2770
+ "H",
2771
+ "hB"
2772
+ ],
2773
+ SC: [
2774
+ "H",
2775
+ "h",
2776
+ "hB"
2777
+ ],
2778
+ SD: [
2779
+ "h",
2780
+ "hB",
2781
+ "hb",
2782
+ "H"
2783
+ ],
2784
+ SE: [
2785
+ "H"
2786
+ ],
2787
+ SG: [
2788
+ "h",
2789
+ "hb",
2790
+ "H",
2791
+ "hB"
2792
+ ],
2793
+ SH: [
2794
+ "H",
2795
+ "h",
2796
+ "hb",
2797
+ "hB"
2798
+ ],
2799
+ SI: [
2800
+ "H",
2801
+ "hB"
2802
+ ],
2803
+ SJ: [
2804
+ "H"
2805
+ ],
2806
+ SK: [
2807
+ "H"
2808
+ ],
2809
+ SL: [
2810
+ "h",
2811
+ "hb",
2812
+ "H",
2813
+ "hB"
2814
+ ],
2815
+ SM: [
2816
+ "H",
2817
+ "h",
2818
+ "hB"
2819
+ ],
2820
+ SN: [
2821
+ "H",
2822
+ "h",
2823
+ "hB"
2824
+ ],
2825
+ SO: [
2826
+ "h",
2827
+ "H"
2828
+ ],
2829
+ SR: [
2830
+ "H",
2831
+ "hB"
2832
+ ],
2833
+ SS: [
2834
+ "h",
2835
+ "hb",
2836
+ "H",
2837
+ "hB"
2838
+ ],
2839
+ ST: [
2840
+ "H",
2841
+ "hB"
2842
+ ],
2843
+ SV: [
2844
+ "H",
2845
+ "h",
2846
+ "hB",
2847
+ "hb"
2848
+ ],
2849
+ SX: [
2850
+ "H",
2851
+ "h",
2852
+ "hb",
2853
+ "hB"
2854
+ ],
2855
+ SY: [
2856
+ "h",
2857
+ "hB",
2858
+ "hb",
2859
+ "H"
2860
+ ],
2861
+ SZ: [
2862
+ "h",
2863
+ "hb",
2864
+ "H",
2865
+ "hB"
2866
+ ],
2867
+ TA: [
2868
+ "H",
2869
+ "h",
2870
+ "hb",
2871
+ "hB"
2872
+ ],
2873
+ TC: [
2874
+ "h",
2875
+ "hb",
2876
+ "H",
2877
+ "hB"
2878
+ ],
2879
+ TD: [
2880
+ "h",
2881
+ "H",
2882
+ "hB"
2883
+ ],
2884
+ TF: [
2885
+ "H",
2886
+ "h",
2887
+ "hB"
2888
+ ],
2889
+ TG: [
2890
+ "H",
2891
+ "hB"
2892
+ ],
2893
+ TH: [
2894
+ "H",
2895
+ "h"
2896
+ ],
2897
+ TJ: [
2898
+ "H",
2899
+ "h"
2900
+ ],
2901
+ TL: [
2902
+ "H",
2903
+ "hB",
2904
+ "hb",
2905
+ "h"
2906
+ ],
2907
+ TM: [
2908
+ "H",
2909
+ "h"
2910
+ ],
2911
+ TN: [
2912
+ "h",
2913
+ "hB",
2914
+ "hb",
2915
+ "H"
2916
+ ],
2917
+ TO: [
2918
+ "h",
2919
+ "H"
2920
+ ],
2921
+ TR: [
2922
+ "H",
2923
+ "hB"
2924
+ ],
2925
+ TT: [
2926
+ "h",
2927
+ "hb",
2928
+ "H",
2929
+ "hB"
2930
+ ],
2931
+ TW: [
2932
+ "hB",
2933
+ "hb",
2934
+ "h",
2935
+ "H"
2936
+ ],
2937
+ TZ: [
2938
+ "hB",
2939
+ "hb",
2940
+ "H",
2941
+ "h"
2942
+ ],
2943
+ UA: [
2944
+ "H",
2945
+ "hB",
2946
+ "h"
2947
+ ],
2948
+ UG: [
2949
+ "hB",
2950
+ "hb",
2951
+ "H",
2952
+ "h"
2953
+ ],
2954
+ UM: [
2955
+ "h",
2956
+ "hb",
2957
+ "H",
2958
+ "hB"
2959
+ ],
2960
+ US: [
2961
+ "h",
2962
+ "hb",
2963
+ "H",
2964
+ "hB"
2965
+ ],
2966
+ UY: [
2967
+ "H",
2968
+ "h",
2969
+ "hB",
2970
+ "hb"
2971
+ ],
2972
+ UZ: [
2973
+ "H",
2974
+ "hB",
2975
+ "h"
2976
+ ],
2977
+ VA: [
2978
+ "H",
2979
+ "h",
2980
+ "hB"
2981
+ ],
2982
+ VC: [
2983
+ "h",
2984
+ "hb",
2985
+ "H",
2986
+ "hB"
2987
+ ],
2988
+ VE: [
2989
+ "h",
2990
+ "H",
2991
+ "hB",
2992
+ "hb"
2993
+ ],
2994
+ VG: [
2995
+ "h",
2996
+ "hb",
2997
+ "H",
2998
+ "hB"
2999
+ ],
3000
+ VI: [
3001
+ "h",
3002
+ "hb",
3003
+ "H",
3004
+ "hB"
3005
+ ],
3006
+ VN: [
3007
+ "H",
3008
+ "h"
3009
+ ],
3010
+ VU: [
3011
+ "h",
3012
+ "H"
3013
+ ],
3014
+ WF: [
3015
+ "H",
3016
+ "hB"
3017
+ ],
3018
+ WS: [
3019
+ "h",
3020
+ "H"
3021
+ ],
3022
+ XK: [
3023
+ "H",
3024
+ "hB",
3025
+ "h"
3026
+ ],
3027
+ YE: [
3028
+ "h",
3029
+ "hB",
3030
+ "hb",
3031
+ "H"
3032
+ ],
3033
+ YT: [
3034
+ "H",
3035
+ "hB"
3036
+ ],
3037
+ ZA: [
3038
+ "H",
3039
+ "h",
3040
+ "hb",
3041
+ "hB"
3042
+ ],
3043
+ ZM: [
3044
+ "h",
3045
+ "hb",
3046
+ "H",
3047
+ "hB"
3048
+ ],
3049
+ ZW: [
3050
+ "H",
3051
+ "h"
3052
+ ],
3053
+ "af-ZA": [
3054
+ "H",
3055
+ "h",
3056
+ "hB",
3057
+ "hb"
3058
+ ],
3059
+ "ar-001": [
3060
+ "h",
3061
+ "hB",
3062
+ "hb",
3063
+ "H"
3064
+ ],
3065
+ "ca-ES": [
3066
+ "H",
3067
+ "h",
3068
+ "hB"
3069
+ ],
3070
+ "en-001": [
3071
+ "h",
3072
+ "hb",
3073
+ "H",
3074
+ "hB"
3075
+ ],
3076
+ "es-BO": [
3077
+ "H",
3078
+ "h",
3079
+ "hB",
3080
+ "hb"
3081
+ ],
3082
+ "es-BR": [
3083
+ "H",
3084
+ "h",
3085
+ "hB",
3086
+ "hb"
3087
+ ],
3088
+ "es-EC": [
3089
+ "H",
3090
+ "h",
3091
+ "hB",
3092
+ "hb"
3093
+ ],
3094
+ "es-ES": [
3095
+ "H",
3096
+ "h",
3097
+ "hB",
3098
+ "hb"
3099
+ ],
3100
+ "es-GQ": [
3101
+ "H",
3102
+ "h",
3103
+ "hB",
3104
+ "hb"
3105
+ ],
3106
+ "es-PE": [
3107
+ "H",
3108
+ "h",
3109
+ "hB",
3110
+ "hb"
3111
+ ],
3112
+ "fr-CA": [
3113
+ "H",
3114
+ "h",
3115
+ "hB"
3116
+ ],
3117
+ "gl-ES": [
3118
+ "H",
3119
+ "h",
3120
+ "hB"
3121
+ ],
3122
+ "gu-IN": [
3123
+ "hB",
3124
+ "hb",
3125
+ "h",
3126
+ "H"
3127
+ ],
3128
+ "hi-IN": [
3129
+ "hB",
3130
+ "h",
3131
+ "H"
3132
+ ],
3133
+ "it-CH": [
3134
+ "H",
3135
+ "h",
3136
+ "hB"
3137
+ ],
3138
+ "it-IT": [
3139
+ "H",
3140
+ "h",
3141
+ "hB"
3142
+ ],
3143
+ "kn-IN": [
3144
+ "hB",
3145
+ "h",
3146
+ "H"
3147
+ ],
3148
+ "ml-IN": [
3149
+ "hB",
3150
+ "h",
3151
+ "H"
3152
+ ],
3153
+ "mr-IN": [
3154
+ "hB",
3155
+ "hb",
3156
+ "h",
3157
+ "H"
3158
+ ],
3159
+ "pa-IN": [
3160
+ "hB",
3161
+ "hb",
3162
+ "h",
3163
+ "H"
3164
+ ],
3165
+ "ta-IN": [
3166
+ "hB",
3167
+ "h",
3168
+ "hb",
3169
+ "H"
3170
+ ],
3171
+ "te-IN": [
3172
+ "hB",
3173
+ "h",
3174
+ "H"
3175
+ ],
3176
+ "zu-ZA": [
3177
+ "H",
3178
+ "hB",
3179
+ "hb",
3180
+ "h"
3181
+ ]
3182
+ };
3183
+ function ti(e, t) {
3184
+ for (var r = "", n = 0; n < e.length; n++) {
3185
+ var i = e.charAt(n);
3186
+ if (i === "j") {
3187
+ for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3188
+ o++, n++;
3189
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = ri(t);
3190
+ for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
3191
+ r += u;
3192
+ for (; s-- > 0; )
3193
+ r = l + r;
3194
+ } else i === "J" ? r += "H" : r += i;
3195
+ }
3196
+ return r;
3197
+ }
3198
+ function ri(e) {
3199
+ var t = e.hourCycle;
3200
+ if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3201
+ e.hourCycles && // @ts-ignore
3202
+ e.hourCycles.length && (t = e.hourCycles[0]), t)
3203
+ switch (t) {
3204
+ case "h24":
3205
+ return "k";
3206
+ case "h23":
3207
+ return "H";
3208
+ case "h12":
3209
+ return "h";
3210
+ case "h11":
3211
+ return "K";
3212
+ default:
3213
+ throw new Error("Invalid hourCycle");
3214
+ }
3215
+ var r = e.language, n;
3216
+ r !== "root" && (n = e.maximize().region);
3217
+ var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
3218
+ return i[0];
3219
+ }
3220
+ var Ue, ni = new RegExp("^".concat(pr.source, "*")), ii = new RegExp("".concat(pr.source, "*$"));
3221
+ function y(e, t) {
3222
+ return { start: e, end: t };
3223
+ }
3224
+ var oi = !!String.prototype.startsWith && "_a".startsWith("a", 1), si = !!String.fromCodePoint, ai = !!Object.fromEntries, ui = !!String.prototype.codePointAt, li = !!String.prototype.trimStart, hi = !!String.prototype.trimEnd, ci = !!Number.isSafeInteger, fi = ci ? Number.isSafeInteger : function(e) {
3225
+ return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3226
+ }, Je = !0;
3227
+ try {
3228
+ var pi = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3229
+ Je = ((Ue = pi.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
3230
+ } catch (e) {
3231
+ Je = !1;
3232
+ }
3233
+ var Pt = oi ? (
3234
+ // Native
3235
+ function(t, r, n) {
3236
+ return t.startsWith(r, n);
3237
+ }
3238
+ ) : (
3239
+ // For IE11
3240
+ function(t, r, n) {
3241
+ return t.slice(n, n + r.length) === r;
3242
+ }
3243
+ ), Ye = si ? String.fromCodePoint : (
3244
+ // IE11
3245
+ function() {
3246
+ for (var t = [], r = 0; r < arguments.length; r++)
3247
+ t[r] = arguments[r];
3248
+ for (var n = "", i = t.length, o = 0, s; i > o; ) {
3249
+ if (s = t[o++], s > 1114111)
3250
+ throw RangeError(s + " is not a valid code point");
3251
+ n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
3252
+ }
3253
+ return n;
3254
+ }
3255
+ ), Ot = (
3256
+ // native
3257
+ ai ? Object.fromEntries : (
3258
+ // Ponyfill
3259
+ function(t) {
3260
+ for (var r = {}, n = 0, i = t; n < i.length; n++) {
3261
+ var o = i[n], s = o[0], a = o[1];
3262
+ r[s] = a;
3263
+ }
3264
+ return r;
3265
+ }
3266
+ )
3267
+ ), yr = ui ? (
3268
+ // Native
3269
+ function(t, r) {
3270
+ return t.codePointAt(r);
3271
+ }
3272
+ ) : (
3273
+ // IE 11
3274
+ function(t, r) {
3275
+ var n = t.length;
3276
+ if (!(r < 0 || r >= n)) {
3277
+ var i = t.charCodeAt(r), o;
3278
+ return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3279
+ }
3280
+ }
3281
+ ), di = li ? (
3282
+ // Native
3283
+ function(t) {
3284
+ return t.trimStart();
3285
+ }
3286
+ ) : (
3287
+ // Ponyfill
3288
+ function(t) {
3289
+ return t.replace(ni, "");
3290
+ }
3291
+ ), mi = hi ? (
3292
+ // Native
3293
+ function(t) {
3294
+ return t.trimEnd();
3295
+ }
3296
+ ) : (
3297
+ // Ponyfill
3298
+ function(t) {
3299
+ return t.replace(ii, "");
3300
+ }
3301
+ );
3302
+ function gr(e, t) {
3303
+ return new RegExp(e, t);
3304
+ }
3305
+ var Ke;
3306
+ if (Je) {
3307
+ var It = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3308
+ Ke = function(t, r) {
3309
+ var n;
3310
+ It.lastIndex = r;
3311
+ var i = It.exec(t);
3312
+ return (n = i[1]) !== null && n !== void 0 ? n : "";
3313
+ };
3314
+ } else
3315
+ Ke = function(t, r) {
3316
+ for (var n = []; ; ) {
3317
+ var i = yr(t, r);
3318
+ if (i === void 0 || vr(i) || vi(i))
3319
+ break;
3320
+ n.push(i), r += i >= 65536 ? 2 : 1;
3321
+ }
3322
+ return Ye.apply(void 0, n);
3323
+ };
3324
+ var bi = (
3325
+ /** @class */
3326
+ function() {
3327
+ function e(t, r) {
3328
+ r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
3329
+ }
3330
+ return e.prototype.parse = function() {
3331
+ if (this.offset() !== 0)
3332
+ throw Error("parser can only be used once");
3333
+ return this.parseMessage(0, "", !1);
3334
+ }, e.prototype.parseMessage = function(t, r, n) {
3335
+ for (var i = []; !this.isEOF(); ) {
3336
+ var o = this.char();
3337
+ if (o === 123) {
3338
+ var s = this.parseArgument(t, n);
3339
+ if (s.err)
3340
+ return s;
3341
+ i.push(s.val);
3342
+ } else {
3343
+ if (o === 125 && t > 0)
3344
+ break;
3345
+ if (o === 35 && (r === "plural" || r === "selectordinal")) {
3346
+ var a = this.clonePosition();
3347
+ this.bump(), i.push({
3348
+ type: _.pound,
3349
+ location: y(a, this.clonePosition())
3350
+ });
3351
+ } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3352
+ if (n)
3353
+ break;
3354
+ return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
3355
+ } else if (o === 60 && !this.ignoreTag && et(this.peek() || 0)) {
3356
+ var s = this.parseTag(t, r);
3357
+ if (s.err)
3358
+ return s;
3359
+ i.push(s.val);
3360
+ } else {
3361
+ var s = this.parseLiteral(t, r);
3362
+ if (s.err)
3363
+ return s;
3364
+ i.push(s.val);
3365
+ }
3366
+ }
3367
+ }
3368
+ return { val: i, err: null };
3369
+ }, e.prototype.parseTag = function(t, r) {
3370
+ var n = this.clonePosition();
3371
+ this.bump();
3372
+ var i = this.parseTagName();
3373
+ if (this.bumpSpace(), this.bumpIf("/>"))
3374
+ return {
3375
+ val: {
3376
+ type: _.literal,
3377
+ value: "<".concat(i, "/>"),
3378
+ location: y(n, this.clonePosition())
3379
+ },
3380
+ err: null
3381
+ };
3382
+ if (this.bumpIf(">")) {
3383
+ var o = this.parseMessage(t + 1, r, !0);
3384
+ if (o.err)
3385
+ return o;
3386
+ var s = o.val, a = this.clonePosition();
3387
+ if (this.bumpIf("</")) {
3388
+ if (this.isEOF() || !et(this.char()))
3389
+ return this.error(b.INVALID_TAG, y(a, this.clonePosition()));
3390
+ var u = this.clonePosition(), l = this.parseTagName();
3391
+ return i !== l ? this.error(b.UNMATCHED_CLOSING_TAG, y(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3392
+ val: {
3393
+ type: _.tag,
3394
+ value: i,
3395
+ children: s,
3396
+ location: y(n, this.clonePosition())
3397
+ },
3398
+ err: null
3399
+ } : this.error(b.INVALID_TAG, y(a, this.clonePosition())));
3400
+ } else
3401
+ return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
3402
+ } else
3403
+ return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
3404
+ }, e.prototype.parseTagName = function() {
3405
+ var t = this.offset();
3406
+ for (this.bump(); !this.isEOF() && gi(this.char()); )
3407
+ this.bump();
3408
+ return this.message.slice(t, this.offset());
3409
+ }, e.prototype.parseLiteral = function(t, r) {
3410
+ for (var n = this.clonePosition(), i = ""; ; ) {
3411
+ var o = this.tryParseQuote(r);
3412
+ if (o) {
3413
+ i += o;
3414
+ continue;
3415
+ }
3416
+ var s = this.tryParseUnquoted(t, r);
3417
+ if (s) {
3418
+ i += s;
3419
+ continue;
3420
+ }
3421
+ var a = this.tryParseLeftAngleBracket();
3422
+ if (a) {
3423
+ i += a;
3424
+ continue;
3425
+ }
3426
+ break;
3427
+ }
3428
+ var u = y(n, this.clonePosition());
3429
+ return {
3430
+ val: { type: _.literal, value: i, location: u },
3431
+ err: null
3432
+ };
3433
+ }, e.prototype.tryParseLeftAngleBracket = function() {
3434
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3435
+ !yi(this.peek() || 0)) ? (this.bump(), "<") : null;
3436
+ }, e.prototype.tryParseQuote = function(t) {
3437
+ if (this.isEOF() || this.char() !== 39)
3438
+ return null;
3439
+ switch (this.peek()) {
3440
+ case 39:
3441
+ return this.bump(), this.bump(), "'";
3442
+ case 123:
3443
+ case 60:
3444
+ case 62:
3445
+ case 125:
3446
+ break;
3447
+ case 35:
3448
+ if (t === "plural" || t === "selectordinal")
3449
+ break;
3450
+ return null;
3451
+ default:
3452
+ return null;
3453
+ }
3454
+ this.bump();
3455
+ var r = [this.char()];
3456
+ for (this.bump(); !this.isEOF(); ) {
3457
+ var n = this.char();
3458
+ if (n === 39)
3459
+ if (this.peek() === 39)
3460
+ r.push(39), this.bump();
3461
+ else {
3462
+ this.bump();
3463
+ break;
3464
+ }
3465
+ else
3466
+ r.push(n);
3467
+ this.bump();
3468
+ }
3469
+ return Ye.apply(void 0, r);
3470
+ }, e.prototype.tryParseUnquoted = function(t, r) {
3471
+ if (this.isEOF())
3472
+ return null;
3473
+ var n = this.char();
3474
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ye(n));
3475
+ }, e.prototype.parseArgument = function(t, r) {
3476
+ var n = this.clonePosition();
3477
+ if (this.bump(), this.bumpSpace(), this.isEOF())
3478
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
3479
+ if (this.char() === 125)
3480
+ return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
3481
+ var i = this.parseIdentifierIfPossible().value;
3482
+ if (!i)
3483
+ return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
3484
+ if (this.bumpSpace(), this.isEOF())
3485
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
3486
+ switch (this.char()) {
3487
+ case 125:
3488
+ return this.bump(), {
3489
+ val: {
3490
+ type: _.argument,
3491
+ // value does not include the opening and closing braces.
3492
+ value: i,
3493
+ location: y(n, this.clonePosition())
3494
+ },
3495
+ err: null
3496
+ };
3497
+ case 44:
3498
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3499
+ default:
3500
+ return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
3501
+ }
3502
+ }, e.prototype.parseIdentifierIfPossible = function() {
3503
+ var t = this.clonePosition(), r = this.offset(), n = Ke(this.message, r), i = r + n.length;
3504
+ this.bumpTo(i);
3505
+ var o = this.clonePosition(), s = y(t, o);
3506
+ return { value: n, location: s };
3507
+ }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3508
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
3509
+ switch (a) {
3510
+ case "":
3511
+ return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, u));
3512
+ case "number":
3513
+ case "date":
3514
+ case "time": {
3515
+ this.bumpSpace();
3516
+ var l = null;
3517
+ if (this.bumpIf(",")) {
3518
+ this.bumpSpace();
3519
+ var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3520
+ if (c.err)
3521
+ return c;
3522
+ var f = mi(c.val);
3523
+ if (f.length === 0)
3524
+ return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
3525
+ var p = y(h, this.clonePosition());
3526
+ l = { style: f, styleLocation: p };
3527
+ }
3528
+ var d = this.tryParseArgumentClose(i);
3529
+ if (d.err)
3530
+ return d;
3531
+ var m = y(i, this.clonePosition());
3532
+ if (l && Pt(l == null ? void 0 : l.style, "::", 0)) {
3533
+ var E = di(l.style.slice(2));
3534
+ if (a === "number") {
3535
+ var c = this.parseNumberSkeletonFromString(E, l.styleLocation);
3536
+ return c.err ? c : {
3537
+ val: { type: _.number, value: n, location: m, style: c.val },
3538
+ err: null
3539
+ };
3540
+ } else {
3541
+ if (E.length === 0)
3542
+ return this.error(b.EXPECT_DATE_TIME_SKELETON, m);
3543
+ var w = E;
3544
+ this.locale && (w = ti(E, this.locale));
3545
+ var f = {
3546
+ type: J.dateTime,
3547
+ pattern: w,
3548
+ location: l.styleLocation,
3549
+ parsedOptions: this.shouldParseSkeletons ? Zn(w) : {}
3550
+ }, H = a === "date" ? _.date : _.time;
3551
+ return {
3552
+ val: { type: H, value: n, location: m, style: f },
3553
+ err: null
3554
+ };
3555
+ }
3556
+ }
3557
+ return {
3558
+ val: {
3559
+ type: a === "number" ? _.number : a === "date" ? _.date : _.time,
3560
+ value: n,
3561
+ location: m,
3562
+ style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
3563
+ },
3564
+ err: null
3565
+ };
3566
+ }
3567
+ case "plural":
3568
+ case "selectordinal":
3569
+ case "select": {
3570
+ var S = this.clonePosition();
3571
+ if (this.bumpSpace(), !this.bumpIf(","))
3572
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(S, v({}, S)));
3573
+ this.bumpSpace();
3574
+ var I = this.parseIdentifierIfPossible(), B = 0;
3575
+ if (a !== "select" && I.value === "offset") {
3576
+ if (!this.bumpIf(":"))
3577
+ return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
3578
+ this.bumpSpace();
3579
+ var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3580
+ if (c.err)
3581
+ return c;
3582
+ this.bumpSpace(), I = this.parseIdentifierIfPossible(), B = c.val;
3583
+ }
3584
+ var U = this.tryParsePluralOrSelectOptions(t, a, r, I);
3585
+ if (U.err)
3586
+ return U;
3587
+ var d = this.tryParseArgumentClose(i);
3588
+ if (d.err)
3589
+ return d;
3590
+ var de = y(i, this.clonePosition());
3591
+ return a === "select" ? {
3592
+ val: {
3593
+ type: _.select,
3594
+ value: n,
3595
+ options: Ot(U.val),
3596
+ location: de
3597
+ },
3598
+ err: null
3599
+ } : {
3600
+ val: {
3601
+ type: _.plural,
3602
+ value: n,
3603
+ options: Ot(U.val),
3604
+ offset: B,
3605
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
3606
+ location: de
3607
+ },
3608
+ err: null
3609
+ };
3610
+ }
3611
+ default:
3612
+ return this.error(b.INVALID_ARGUMENT_TYPE, y(s, u));
3613
+ }
3614
+ }, e.prototype.tryParseArgumentClose = function(t) {
3615
+ return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3616
+ }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3617
+ for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3618
+ var n = this.char();
3619
+ switch (n) {
3620
+ case 39: {
3621
+ this.bump();
3622
+ var i = this.clonePosition();
3623
+ if (!this.bumpUntil("'"))
3624
+ return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
3625
+ this.bump();
3626
+ break;
3627
+ }
3628
+ case 123: {
3629
+ t += 1, this.bump();
3630
+ break;
3631
+ }
3632
+ case 125: {
3633
+ if (t > 0)
3634
+ t -= 1;
3635
+ else
3636
+ return {
3637
+ val: this.message.slice(r.offset, this.offset()),
3638
+ err: null
3639
+ };
3640
+ break;
3641
+ }
3642
+ default:
3643
+ this.bump();
3644
+ break;
3645
+ }
3646
+ }
3647
+ return {
3648
+ val: this.message.slice(r.offset, this.offset()),
3649
+ err: null
3650
+ };
3651
+ }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3652
+ var n = [];
3653
+ try {
3654
+ n = qn(t);
3655
+ } catch (i) {
3656
+ return this.error(b.INVALID_NUMBER_SKELETON, r);
3657
+ }
3658
+ return {
3659
+ val: {
3660
+ type: J.number,
3661
+ tokens: n,
3662
+ location: r,
3663
+ parsedOptions: this.shouldParseSkeletons ? ei(n) : {}
3664
+ },
3665
+ err: null
3666
+ };
3667
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3668
+ for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
3669
+ if (l.length === 0) {
3670
+ var c = this.clonePosition();
3671
+ if (r !== "select" && this.bumpIf("=")) {
3672
+ var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3673
+ if (f.err)
3674
+ return f;
3675
+ h = y(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
3676
+ } else
3677
+ break;
3678
+ }
3679
+ if (u.has(l))
3680
+ return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3681
+ l === "other" && (s = !0), this.bumpSpace();
3682
+ var p = this.clonePosition();
3683
+ if (!this.bumpIf("{"))
3684
+ return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3685
+ var d = this.parseMessage(t + 1, r, n);
3686
+ if (d.err)
3687
+ return d;
3688
+ var m = this.tryParseArgumentClose(p);
3689
+ if (m.err)
3690
+ return m;
3691
+ a.push([
3692
+ l,
3693
+ {
3694
+ value: d.val,
3695
+ location: y(p, this.clonePosition())
3696
+ }
3697
+ ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
3698
+ }
3699
+ return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3700
+ }, e.prototype.tryParseDecimalInteger = function(t, r) {
3701
+ var n = 1, i = this.clonePosition();
3702
+ this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3703
+ for (var o = !1, s = 0; !this.isEOF(); ) {
3704
+ var a = this.char();
3705
+ if (a >= 48 && a <= 57)
3706
+ o = !0, s = s * 10 + (a - 48), this.bump();
3707
+ else
3708
+ break;
3709
+ }
3710
+ var u = y(i, this.clonePosition());
3711
+ return o ? (s *= n, fi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
3712
+ }, e.prototype.offset = function() {
3713
+ return this.position.offset;
3714
+ }, e.prototype.isEOF = function() {
3715
+ return this.offset() === this.message.length;
3716
+ }, e.prototype.clonePosition = function() {
3717
+ return {
3718
+ offset: this.position.offset,
3719
+ line: this.position.line,
3720
+ column: this.position.column
3721
+ };
3722
+ }, e.prototype.char = function() {
3723
+ var t = this.position.offset;
3724
+ if (t >= this.message.length)
3725
+ throw Error("out of bound");
3726
+ var r = yr(this.message, t);
3727
+ if (r === void 0)
3728
+ throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3729
+ return r;
3730
+ }, e.prototype.error = function(t, r) {
3731
+ return {
3732
+ val: null,
3733
+ err: {
3734
+ kind: t,
3735
+ message: this.message,
3736
+ location: r
3737
+ }
3738
+ };
3739
+ }, e.prototype.bump = function() {
3740
+ if (!this.isEOF()) {
3741
+ var t = this.char();
3742
+ 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);
3743
+ }
3744
+ }, e.prototype.bumpIf = function(t) {
3745
+ if (Pt(this.message, t, this.offset())) {
3746
+ for (var r = 0; r < t.length; r++)
3747
+ this.bump();
3748
+ return !0;
3749
+ }
3750
+ return !1;
3751
+ }, e.prototype.bumpUntil = function(t) {
3752
+ var r = this.offset(), n = this.message.indexOf(t, r);
3753
+ return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3754
+ }, e.prototype.bumpTo = function(t) {
3755
+ if (this.offset() > t)
3756
+ throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3757
+ for (t = Math.min(t, this.message.length); ; ) {
3758
+ var r = this.offset();
3759
+ if (r === t)
3760
+ break;
3761
+ if (r > t)
3762
+ throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3763
+ if (this.bump(), this.isEOF())
3764
+ break;
3765
+ }
3766
+ }, e.prototype.bumpSpace = function() {
3767
+ for (; !this.isEOF() && vr(this.char()); )
3768
+ this.bump();
3769
+ }, e.prototype.peek = function() {
3770
+ if (this.isEOF())
3771
+ return null;
3772
+ var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3773
+ return n != null ? n : null;
3774
+ }, e;
3775
+ }()
3776
+ );
3777
+ function et(e) {
3778
+ return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3779
+ }
3780
+ function yi(e) {
3781
+ return et(e) || e === 47;
3782
+ }
3783
+ function gi(e) {
3784
+ 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;
3785
+ }
3786
+ function vr(e) {
3787
+ return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3788
+ }
3789
+ function vi(e) {
3790
+ return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3791
+ }
3792
+ function tt(e) {
3793
+ e.forEach(function(t) {
3794
+ if (delete t.location, lr(t) || hr(t))
3795
+ for (var r in t.options)
3796
+ delete t.options[r].location, tt(t.options[r].value);
3797
+ else sr(t) && fr(t.style) || (ar(t) || ur(t)) && qe(t.style) ? delete t.style.location : cr(t) && tt(t.children);
3798
+ });
3799
+ }
3800
+ function _i(e, t) {
3801
+ t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3802
+ var r = new bi(e, t).parse();
3803
+ if (r.err) {
3804
+ var n = SyntaxError(b[r.err.kind]);
3805
+ throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3806
+ }
3807
+ return t != null && t.captureLocation || tt(r.val), r.val;
3808
+ }
3809
+ function De(e, t) {
3810
+ var r = t && t.cache ? t.cache : Hi, n = t && t.serializer ? t.serializer : wi, i = t && t.strategy ? t.strategy : xi;
3811
+ return i(e, {
3812
+ cache: r,
3813
+ serializer: n
3814
+ });
3815
+ }
3816
+ function Ei(e) {
3817
+ return e == null || typeof e == "number" || typeof e == "boolean";
3818
+ }
3819
+ function _r(e, t, r, n) {
3820
+ var i = Ei(n) ? n : r(n), o = t.get(i);
3821
+ return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
3822
+ }
3823
+ function Er(e, t, r) {
3824
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
3825
+ return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
3826
+ }
3827
+ function st(e, t, r, n, i) {
3828
+ return r.bind(t, e, n, i);
3829
+ }
3830
+ function xi(e, t) {
3831
+ var r = e.length === 1 ? _r : Er;
3832
+ return st(e, this, r, t.cache.create(), t.serializer);
3833
+ }
3834
+ function Si(e, t) {
3835
+ return st(e, this, Er, t.cache.create(), t.serializer);
3836
+ }
3837
+ function Ti(e, t) {
3838
+ return st(e, this, _r, t.cache.create(), t.serializer);
3839
+ }
3840
+ var wi = function() {
3841
+ return JSON.stringify(arguments);
3842
+ };
3843
+ function at() {
3844
+ this.cache = /* @__PURE__ */ Object.create(null);
3845
+ }
3846
+ at.prototype.get = function(e) {
3847
+ return this.cache[e];
3848
+ };
3849
+ at.prototype.set = function(e, t) {
3850
+ this.cache[e] = t;
3851
+ };
3852
+ var Hi = {
3853
+ create: function() {
3854
+ return new at();
3855
+ }
3856
+ }, Ge = {
3857
+ variadic: Si,
3858
+ monadic: Ti
3859
+ }, Y;
3860
+ (function(e) {
3861
+ e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3862
+ })(Y || (Y = {}));
3863
+ var Oe = (
3864
+ /** @class */
3865
+ function(e) {
3866
+ R(t, e);
3867
+ function t(r, n, i) {
3868
+ var o = e.call(this, r) || this;
3869
+ return o.code = n, o.originalMessage = i, o;
3870
+ }
3871
+ return t.prototype.toString = function() {
3872
+ return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3873
+ }, t;
3874
+ }(Error)
3875
+ ), Lt = (
3876
+ /** @class */
3877
+ function(e) {
3878
+ R(t, e);
3879
+ function t(r, n, i, o) {
3880
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, o) || this;
3881
+ }
3882
+ return t;
3883
+ }(Oe)
3884
+ ), Bi = (
3885
+ /** @class */
3886
+ function(e) {
3887
+ R(t, e);
3888
+ function t(r, n, i) {
3889
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
3890
+ }
3891
+ return t;
3892
+ }(Oe)
3893
+ ), Ai = (
3894
+ /** @class */
3895
+ function(e) {
3896
+ R(t, e);
3897
+ function t(r, n) {
3898
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
3899
+ }
3900
+ return t;
3901
+ }(Oe)
3902
+ ), T;
3903
+ (function(e) {
3904
+ e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3905
+ })(T || (T = {}));
3906
+ function Pi(e) {
3907
+ return e.length < 2 ? e : e.reduce(function(t, r) {
3908
+ var n = t[t.length - 1];
3909
+ return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
3910
+ }, []);
3911
+ }
3912
+ function Oi(e) {
3913
+ return typeof e == "function";
3914
+ }
3915
+ function Ee(e, t, r, n, i, o, s) {
3916
+ if (e.length === 1 && wt(e[0]))
3917
+ return [
3918
+ {
3919
+ type: T.literal,
3920
+ value: e[0].value
3921
+ }
3922
+ ];
3923
+ for (var a = [], u = 0, l = e; u < l.length; u++) {
3924
+ var h = l[u];
3925
+ if (wt(h)) {
3926
+ a.push({
3927
+ type: T.literal,
3928
+ value: h.value
3929
+ });
3930
+ continue;
3931
+ }
3932
+ if (Wn(h)) {
3933
+ typeof o == "number" && a.push({
3934
+ type: T.literal,
3935
+ value: r.getNumberFormat(t).format(o)
3936
+ });
3937
+ continue;
3938
+ }
3939
+ var c = h.value;
3940
+ if (!(i && c in i))
3941
+ throw new Ai(c, s);
3942
+ var f = i[c];
3943
+ if (Xn(h)) {
3944
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3945
+ type: typeof f == "string" ? T.literal : T.object,
3946
+ value: f
3947
+ });
3948
+ continue;
3949
+ }
3950
+ if (ar(h)) {
3951
+ var p = typeof h.style == "string" ? n.date[h.style] : qe(h.style) ? h.style.parsedOptions : void 0;
3952
+ a.push({
3953
+ type: T.literal,
3954
+ value: r.getDateTimeFormat(t, p).format(f)
3955
+ });
3956
+ continue;
3957
+ }
3958
+ if (ur(h)) {
3959
+ var p = typeof h.style == "string" ? n.time[h.style] : qe(h.style) ? h.style.parsedOptions : n.time.medium;
3960
+ a.push({
3961
+ type: T.literal,
3962
+ value: r.getDateTimeFormat(t, p).format(f)
3963
+ });
3964
+ continue;
3965
+ }
3966
+ if (sr(h)) {
3967
+ var p = typeof h.style == "string" ? n.number[h.style] : fr(h.style) ? h.style.parsedOptions : void 0;
3968
+ p && p.scale && (f = f * (p.scale || 1)), a.push({
3969
+ type: T.literal,
3970
+ value: r.getNumberFormat(t, p).format(f)
3971
+ });
3972
+ continue;
3973
+ }
3974
+ if (cr(h)) {
3975
+ var d = h.children, m = h.value, E = i[m];
3976
+ if (!Oi(E))
3977
+ throw new Bi(m, "function", s);
3978
+ var w = Ee(d, t, r, n, i, o), H = E(w.map(function(B) {
3979
+ return B.value;
3980
+ }));
3981
+ Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(B) {
3982
+ return {
3983
+ type: typeof B == "string" ? T.literal : T.object,
3984
+ value: B
3985
+ };
3986
+ }));
3987
+ }
3988
+ if (lr(h)) {
3989
+ var S = h.options[f] || h.options.other;
3990
+ if (!S)
3991
+ throw new Lt(h.value, f, Object.keys(h.options), s);
3992
+ a.push.apply(a, Ee(S.value, t, r, n, i));
3993
+ continue;
3994
+ }
3995
+ if (hr(h)) {
3996
+ var S = h.options["=".concat(f)];
3997
+ if (!S) {
3998
+ if (!Intl.PluralRules)
3999
+ throw new Oe(`Intl.PluralRules is not available in this environment.
4000
+ Try polyfilling it using "@formatjs/intl-pluralrules"
4001
+ `, Y.MISSING_INTL_API, s);
4002
+ var I = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
4003
+ S = h.options[I] || h.options.other;
4004
+ }
4005
+ if (!S)
4006
+ throw new Lt(h.value, f, Object.keys(h.options), s);
4007
+ a.push.apply(a, Ee(S.value, t, r, n, i, f - (h.offset || 0)));
4008
+ continue;
4009
+ }
4010
+ }
4011
+ return Pi(a);
4012
+ }
4013
+ function Ii(e, t) {
4014
+ return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
4015
+ return r[n] = v(v({}, e[n]), t[n] || {}), r;
4016
+ }, {})) : e;
4017
+ }
4018
+ function Li(e, t) {
4019
+ return t ? Object.keys(e).reduce(function(r, n) {
4020
+ return r[n] = Ii(e[n], t[n]), r;
4021
+ }, v({}, e)) : e;
4022
+ }
4023
+ function Fe(e) {
4024
+ return {
4025
+ create: function() {
4026
+ return {
4027
+ get: function(t) {
4028
+ return e[t];
4029
+ },
4030
+ set: function(t, r) {
4031
+ e[t] = r;
4032
+ }
4033
+ };
4034
+ }
4035
+ };
4036
+ }
4037
+ function Ci(e) {
4038
+ return e === void 0 && (e = {
4039
+ number: {},
4040
+ dateTime: {},
4041
+ pluralRules: {}
4042
+ }), {
4043
+ getNumberFormat: De(function() {
4044
+ for (var t, r = [], n = 0; n < arguments.length; n++)
4045
+ r[n] = arguments[n];
4046
+ return new ((t = Intl.NumberFormat).bind.apply(t, Q([void 0], r, !1)))();
4047
+ }, {
4048
+ cache: Fe(e.number),
4049
+ strategy: Ge.variadic
4050
+ }),
4051
+ getDateTimeFormat: De(function() {
4052
+ for (var t, r = [], n = 0; n < arguments.length; n++)
4053
+ r[n] = arguments[n];
4054
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Q([void 0], r, !1)))();
4055
+ }, {
4056
+ cache: Fe(e.dateTime),
4057
+ strategy: Ge.variadic
4058
+ }),
4059
+ getPluralRules: De(function() {
4060
+ for (var t, r = [], n = 0; n < arguments.length; n++)
4061
+ r[n] = arguments[n];
4062
+ return new ((t = Intl.PluralRules).bind.apply(t, Q([void 0], r, !1)))();
4063
+ }, {
4064
+ cache: Fe(e.pluralRules),
4065
+ strategy: Ge.variadic
4066
+ })
4067
+ };
4068
+ }
4069
+ var Ni = (
4070
+ /** @class */
4071
+ function() {
4072
+ function e(t, r, n, i) {
4073
+ var o = this;
4074
+ if (r === void 0 && (r = e.defaultLocale), this.formatterCache = {
4075
+ number: {},
4076
+ dateTime: {},
4077
+ pluralRules: {}
4078
+ }, this.format = function(u) {
4079
+ var l = o.formatToParts(u);
4080
+ if (l.length === 1)
4081
+ return l[0].value;
4082
+ var h = l.reduce(function(c, f) {
4083
+ return !c.length || f.type !== T.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
4084
+ }, []);
4085
+ return h.length <= 1 ? h[0] || "" : h;
4086
+ }, this.formatToParts = function(u) {
4087
+ return Ee(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
4088
+ }, this.resolvedOptions = function() {
4089
+ var u;
4090
+ return {
4091
+ locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
4092
+ };
4093
+ }, this.getAst = function() {
4094
+ return o.ast;
4095
+ }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
4096
+ if (this.message = t, !e.__parse)
4097
+ throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
4098
+ var s = i || {};
4099
+ s.formatters;
4100
+ var a = dn(s, ["formatters"]);
4101
+ this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
4102
+ } else
4103
+ this.ast = t;
4104
+ if (!Array.isArray(this.ast))
4105
+ throw new TypeError("A message must be provided as a String or AST.");
4106
+ this.formats = Li(e.formats, n), this.formatters = i && i.formatters || Ci(this.formatterCache);
4107
+ }
4108
+ return Object.defineProperty(e, "defaultLocale", {
4109
+ get: function() {
4110
+ return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
4111
+ },
4112
+ enumerable: !1,
4113
+ configurable: !0
4114
+ }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
4115
+ if (typeof Intl.Locale != "undefined") {
4116
+ var r = Intl.NumberFormat.supportedLocalesOf(t);
4117
+ return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
4118
+ }
4119
+ }, e.__parse = _i, e.formats = {
4120
+ number: {
4121
+ integer: {
4122
+ maximumFractionDigits: 0
4123
+ },
4124
+ currency: {
4125
+ style: "currency"
4126
+ },
4127
+ percent: {
4128
+ style: "percent"
4129
+ }
4130
+ },
4131
+ date: {
4132
+ short: {
4133
+ month: "numeric",
4134
+ day: "numeric",
4135
+ year: "2-digit"
4136
+ },
4137
+ medium: {
4138
+ month: "short",
4139
+ day: "numeric",
4140
+ year: "numeric"
4141
+ },
4142
+ long: {
4143
+ month: "long",
4144
+ day: "numeric",
4145
+ year: "numeric"
4146
+ },
4147
+ full: {
4148
+ weekday: "long",
4149
+ month: "long",
4150
+ day: "numeric",
4151
+ year: "numeric"
4152
+ }
4153
+ },
4154
+ time: {
4155
+ short: {
4156
+ hour: "numeric",
4157
+ minute: "numeric"
4158
+ },
4159
+ medium: {
4160
+ hour: "numeric",
4161
+ minute: "numeric",
4162
+ second: "numeric"
4163
+ },
4164
+ long: {
4165
+ hour: "numeric",
4166
+ minute: "numeric",
4167
+ second: "numeric",
4168
+ timeZoneName: "short"
4169
+ },
4170
+ full: {
4171
+ hour: "numeric",
4172
+ minute: "numeric",
4173
+ second: "numeric",
4174
+ timeZoneName: "short"
4175
+ }
4176
+ }
4177
+ }, e;
4178
+ }()
4179
+ );
4180
+ function Mi(e, t) {
4181
+ if (t == null)
4182
+ return;
4183
+ if (t in e)
4184
+ return e[t];
4185
+ const r = t.split(".");
4186
+ let n = e;
4187
+ for (let i = 0; i < r.length; i++)
4188
+ if (typeof n == "object") {
4189
+ if (i > 0) {
4190
+ const o = r.slice(i, r.length).join(".");
4191
+ if (o in n) {
4192
+ n = n[o];
4193
+ break;
4194
+ }
4195
+ }
4196
+ n = n[r[i]];
4197
+ } else
4198
+ n = void 0;
4199
+ return n;
4200
+ }
4201
+ const D = {}, $i = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), xr = (e, t) => {
4202
+ if (t == null)
4203
+ return;
4204
+ if (t in D && e in D[t])
4205
+ return D[t][e];
4206
+ const r = Ie(t);
4207
+ for (let n = 0; n < r.length; n++) {
4208
+ const i = r[n], o = Ui(i, e);
4209
+ if (o)
4210
+ return $i(e, t, o);
4211
+ }
4212
+ };
4213
+ let ut;
4214
+ const pe = Pe({});
4215
+ function Ri(e) {
4216
+ return ut[e] || null;
4217
+ }
4218
+ function Sr(e) {
4219
+ return e in ut;
4220
+ }
4221
+ function Ui(e, t) {
4222
+ if (!Sr(e))
4223
+ return null;
4224
+ const r = Ri(e);
4225
+ return Mi(r, t);
4226
+ }
4227
+ function Di(e) {
4228
+ if (e == null)
4229
+ return;
4230
+ const t = Ie(e);
4231
+ for (let r = 0; r < t.length; r++) {
4232
+ const n = t[r];
4233
+ if (Sr(n))
4234
+ return n;
4235
+ }
4236
+ }
4237
+ function Tr(e, ...t) {
4238
+ delete D[e], pe.update((r) => (r[e] = Vn.all([r[e] || {}, ...t]), r));
4239
+ }
4240
+ ee(
4241
+ [pe],
4242
+ ([e]) => Object.keys(e)
4243
+ );
4244
+ pe.subscribe((e) => ut = e);
4245
+ const xe = {};
4246
+ function Gi(e, t) {
4247
+ xe[e].delete(t), xe[e].size === 0 && delete xe[e];
4248
+ }
4249
+ function wr(e) {
4250
+ return xe[e];
4251
+ }
4252
+ function Fi(e) {
4253
+ return Ie(e).map((t) => {
4254
+ const r = wr(t);
4255
+ return [t, r ? [...r] : []];
4256
+ }).filter(([, t]) => t.length > 0);
4257
+ }
4258
+ function rt(e) {
4259
+ return e == null ? !1 : Ie(e).some(
4260
+ (t) => {
4261
+ var r;
4262
+ return (r = wr(t)) == null ? void 0 : r.size;
4263
+ }
4264
+ );
4265
+ }
4266
+ function ji(e, t) {
4267
+ return Promise.all(
4268
+ t.map((n) => (Gi(e, n), n().then((i) => i.default || i)))
4269
+ ).then((n) => Tr(e, ...n));
4270
+ }
4271
+ const oe = {};
4272
+ function Hr(e) {
4273
+ if (!rt(e))
4274
+ return e in oe ? oe[e] : Promise.resolve();
4275
+ const t = Fi(e);
4276
+ return oe[e] = Promise.all(
4277
+ t.map(
4278
+ ([r, n]) => ji(r, n)
4279
+ )
4280
+ ).then(() => {
4281
+ if (rt(e))
4282
+ return Hr(e);
4283
+ delete oe[e];
4284
+ }), oe[e];
4285
+ }
4286
+ const ki = {
4287
+ number: {
4288
+ scientific: { notation: "scientific" },
4289
+ engineering: { notation: "engineering" },
4290
+ compactLong: { notation: "compact", compactDisplay: "long" },
4291
+ compactShort: { notation: "compact", compactDisplay: "short" }
4292
+ },
4293
+ date: {
4294
+ short: { month: "numeric", day: "numeric", year: "2-digit" },
4295
+ medium: { month: "short", day: "numeric", year: "numeric" },
4296
+ long: { month: "long", day: "numeric", year: "numeric" },
4297
+ full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
4298
+ },
4299
+ time: {
4300
+ short: { hour: "numeric", minute: "numeric" },
4301
+ medium: { hour: "numeric", minute: "numeric", second: "numeric" },
4302
+ long: {
4303
+ hour: "numeric",
4304
+ minute: "numeric",
4305
+ second: "numeric",
4306
+ timeZoneName: "short"
4307
+ },
4308
+ full: {
4309
+ hour: "numeric",
4310
+ minute: "numeric",
4311
+ second: "numeric",
4312
+ timeZoneName: "short"
4313
+ }
4314
+ }
4315
+ }, Vi = {
4316
+ fallbackLocale: null,
4317
+ loadingDelay: 200,
4318
+ formats: ki,
4319
+ warnOnMissingMessages: !0,
4320
+ handleMissingMessage: void 0,
4321
+ ignoreTag: !0
4322
+ }, Xi = Vi;
4323
+ function K() {
4324
+ return Xi;
4325
+ }
4326
+ const je = Pe(!1);
4327
+ var Wi = Object.defineProperty, zi = Object.defineProperties, Zi = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, Qi = Object.prototype.hasOwnProperty, qi = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ji = (e, t) => {
4328
+ for (var r in t || (t = {}))
4329
+ Qi.call(t, r) && Nt(e, r, t[r]);
4330
+ if (Ct)
4331
+ for (var r of Ct(t))
4332
+ qi.call(t, r) && Nt(e, r, t[r]);
4333
+ return e;
4334
+ }, Yi = (e, t) => zi(e, Zi(t));
4335
+ let nt;
4336
+ const He = Pe(null);
4337
+ function Mt(e) {
4338
+ return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4339
+ }
4340
+ function Ie(e, t = K().fallbackLocale) {
4341
+ const r = Mt(e);
4342
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Mt(t)])] : r;
4343
+ }
4344
+ function k() {
4345
+ return nt != null ? nt : void 0;
4346
+ }
4347
+ He.subscribe((e) => {
4348
+ nt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4349
+ });
4350
+ const Ki = (e) => {
4351
+ if (e && Di(e) && rt(e)) {
4352
+ const { loadingDelay: t } = K();
4353
+ let r;
4354
+ return typeof window != "undefined" && k() != null && t ? r = window.setTimeout(
4355
+ () => je.set(!0),
4356
+ t
4357
+ ) : je.set(!0), Hr(e).then(() => {
4358
+ He.set(e);
4359
+ }).finally(() => {
4360
+ clearTimeout(r), je.set(!1);
4361
+ });
4362
+ }
4363
+ return He.set(e);
4364
+ }, te = Yi(Ji({}, He), {
4365
+ set: Ki
4366
+ }), Le = (e) => {
4367
+ const t = /* @__PURE__ */ Object.create(null);
4368
+ return (n) => {
4369
+ const i = JSON.stringify(n);
4370
+ return i in t ? t[i] : t[i] = e(n);
4371
+ };
4372
+ };
4373
+ var eo = Object.defineProperty, Be = Object.getOwnPropertySymbols, Br = Object.prototype.hasOwnProperty, Ar = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
4374
+ for (var r in t || (t = {}))
4375
+ Br.call(t, r) && $t(e, r, t[r]);
4376
+ if (Be)
4377
+ for (var r of Be(t))
4378
+ Ar.call(t, r) && $t(e, r, t[r]);
4379
+ return e;
4380
+ }, re = (e, t) => {
4381
+ var r = {};
4382
+ for (var n in e)
4383
+ Br.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4384
+ if (e != null && Be)
4385
+ for (var n of Be(e))
4386
+ t.indexOf(n) < 0 && Ar.call(e, n) && (r[n] = e[n]);
4387
+ return r;
4388
+ };
4389
+ const le = (e, t) => {
4390
+ const { formats: r } = K();
4391
+ if (e in r && t in r[e])
4392
+ return r[e][t];
4393
+ throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4394
+ }, to = Le(
4395
+ (e) => {
4396
+ var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4397
+ if (r == null)
4398
+ throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4399
+ return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
4400
+ }
4401
+ ), ro = Le(
4402
+ (e) => {
4403
+ var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4404
+ if (r == null)
4405
+ throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4406
+ return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
4407
+ }
4408
+ ), no = Le(
4409
+ (e) => {
4410
+ var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4411
+ if (r == null)
4412
+ throw new Error(
4413
+ '[svelte-i18n] A "locale" must be set to format time values'
4414
+ );
4415
+ return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
4416
+ }
4417
+ ), io = (e = {}) => {
4418
+ var t = e, {
4419
+ locale: r = k()
4420
+ } = t, n = re(t, [
4421
+ "locale"
4422
+ ]);
4423
+ return to(lt({ locale: r }, n));
4424
+ }, oo = (e = {}) => {
4425
+ var t = e, {
4426
+ locale: r = k()
4427
+ } = t, n = re(t, [
4428
+ "locale"
4429
+ ]);
4430
+ return ro(lt({ locale: r }, n));
4431
+ }, so = (e = {}) => {
4432
+ var t = e, {
4433
+ locale: r = k()
4434
+ } = t, n = re(t, [
4435
+ "locale"
4436
+ ]);
4437
+ return no(lt({ locale: r }, n));
4438
+ }, ao = Le(
4439
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4440
+ (e, t = k()) => new Ni(e, t, K().formats, {
4441
+ ignoreTag: K().ignoreTag
4442
+ })
4443
+ ), uo = (e, t = {}) => {
4444
+ var r, n, i, o;
4445
+ let s = t;
4446
+ typeof e == "object" && (s = e, e = s.id);
4447
+ const {
4448
+ values: a,
4449
+ locale: u = k(),
4450
+ default: l
4451
+ } = s;
4452
+ if (u == null)
4453
+ throw new Error(
4454
+ "[svelte-i18n] Cannot format a message without first setting the initial locale."
4455
+ );
4456
+ let h = xr(e, u);
4457
+ if (!h)
4458
+ h = (o = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
4459
+ else if (typeof h != "string")
4460
+ return console.warn(
4461
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4462
+ ), h;
4463
+ if (!a)
4464
+ return h;
4465
+ let c = h;
4466
+ try {
4467
+ c = ao(h, u).format(a);
4468
+ } catch (f) {
4469
+ f instanceof Error && console.warn(
4470
+ `[svelte-i18n] Message "${e}" has syntax error:`,
4471
+ f.message
4472
+ );
4473
+ }
4474
+ return c;
4475
+ }, lo = (e, t) => so(t).format(e), ho = (e, t) => oo(t).format(e), co = (e, t) => io(t).format(e), fo = (e, t = k()) => xr(e, t), po = ee([te, pe], () => uo);
4476
+ ee([te], () => lo);
4477
+ ee([te], () => ho);
4478
+ ee([te], () => co);
4479
+ ee([te, pe], () => fo);
4480
+ window.emWidgets = { topic: Bn };
4481
+ const qo = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), mo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4482
+ function Rt(e, t) {
4483
+ Tr(e, t);
4484
+ }
4485
+ function bo(e) {
4486
+ te.set(e);
4487
+ }
4488
+ const Ut = {
4489
+ en: {
4490
+ logoutButton: "Logout"
4491
+ },
4492
+ "zh-hk": {
4493
+ logoutButton: "登出"
4494
+ },
4495
+ fr: {
4496
+ logoutButton: "Déconnexion"
4497
+ },
4498
+ tr: {
4499
+ logoutButton: "Çıkış Yap"
4500
+ },
4501
+ ro: {
4502
+ logoutButton: "Iesire"
4503
+ },
4504
+ es: {
4505
+ logoutButton: "Cerrar sesión"
4506
+ },
4507
+ pt: {
4508
+ logoutButton: "Sair"
4509
+ },
4510
+ hr: {
4511
+ logoutButton: "Odjava"
4512
+ },
4513
+ "pt-br": {
4514
+ logoutButton: "Fechar Sessão"
4515
+ },
4516
+ "es-mx": {
4517
+ logoutButton: "Cerrar sesión"
4518
+ }
4519
+ };
4520
+ function yo(e) {
4521
+ kr(e, "svelte-1oay3a3", ".svelte-1oay3a3.svelte-1oay3a3,.svelte-1oay3a3.svelte-1oay3a3::before,.svelte-1oay3a3.svelte-1oay3a3::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox.svelte-1oay3a3.svelte-1oay3a3{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox.svelte-1oay3a3 .PlayerLogoutText.svelte-1oay3a3{margin-left:20px}.PlayerAccountMenuItemBox.svelte-1oay3a3 svg.svelte-1oay3a3{fill:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox.svelte-1oay3a3.svelte-1oay3a3{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox.svelte-1oay3a3 svg.svelte-1oay3a3{fill:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-white, #FFFFFF))}");
4522
+ }
4523
+ function go(e) {
4524
+ let t, r, n, i = (
4525
+ /*$_*/
4526
+ e[2]("logoutButton") + ""
4527
+ ), o, s, a;
4528
+ return {
4529
+ c() {
4530
+ t = C("div"), r = C("button"), n = C("span"), o = fe(i), x(n, "class", "svelte-1oay3a3"), x(r, "class", "svelte-1oay3a3"), x(t, "class", "GeneralLogout svelte-1oay3a3");
4531
+ },
4532
+ m(u, l) {
4533
+ ce(u, t, l), P(t, r), P(r, n), P(n, o), s || (a = Wt(
4534
+ r,
4535
+ "click",
4536
+ /*click_handler_1*/
4537
+ e[13]
4538
+ ), s = !0);
4539
+ },
4540
+ p(u, l) {
4541
+ l & /*$_*/
4542
+ 4 && i !== (i = /*$_*/
4543
+ u[2]("logoutButton") + "") && zt(o, i);
4544
+ },
4545
+ d(u) {
4546
+ u && j(t), s = !1, a();
4547
+ }
4548
+ };
4549
+ }
4550
+ function vo(e) {
4551
+ let t, r, n, i, o, s, a, u, l, h, c, f = !/*isMobile*/
4552
+ e[3] && _o(e);
4553
+ return {
4554
+ c() {
4555
+ t = C("p"), r = C("span"), n = ne("svg"), i = ne("defs"), o = ne("style"), s = fe(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emfe-w-color-white, #FFFFFF);}"), a = ne("path"), u = ne("path"), l = Xr(), f && f.c(), x(o, "class", "svelte-1oay3a3"), x(i, "class", "svelte-1oay3a3"), x(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd svelte-1oay3a3"), x(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), x(u, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd svelte-1oay3a3"), x(u, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), x(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), x(n, "data-name", "Layer 1"), x(n, "xmlns", "http://www.w3.org/2000/svg"), x(n, "viewBox", "0 0 150 150"), x(n, "class", "svelte-1oay3a3"), zr(r, "width", /*isMobile*/
4556
+ e[3] ? (
4557
+ /*mediaQuery*/
4558
+ e[4].matches ? "50px" : "24px"
4559
+ ) : "20px"), x(r, "class", "svelte-1oay3a3"), x(t, "class", "PlayerAccountMenuItemBox " + /*isMobile*/
4560
+ (e[3] ? "PlayerAccountMenuItemBoxMobile" : "") + " " + /*mediaQuery*/
4561
+ (e[4].matches && /*isMobile*/
4562
+ e[3] ? "PlayerAccountMenuItemBoxTablet" : "") + " svelte-1oay3a3");
4563
+ },
4564
+ m(p, d) {
4565
+ ce(p, t, d), P(t, r), P(r, n), P(n, i), P(i, o), P(o, s), P(n, a), P(n, u), P(t, l), f && f.m(t, null), h || (c = Wt(
4566
+ t,
4567
+ "click",
4568
+ /*click_handler*/
4569
+ e[12]
4570
+ ), h = !0);
4571
+ },
4572
+ p(p, d) {
4573
+ /*isMobile*/
4574
+ p[3] || f.p(p, d);
4575
+ },
4576
+ d(p) {
4577
+ p && j(t), f && f.d(), h = !1, c();
4578
+ }
4579
+ };
4580
+ }
4581
+ function _o(e) {
4582
+ let t, r = (
4583
+ /*$_*/
4584
+ e[2]("logoutButton") + ""
4585
+ ), n;
4586
+ return {
4587
+ c() {
4588
+ t = C("span"), n = fe(r), x(t, "class", "PlayerLogoutText svelte-1oay3a3");
4589
+ },
4590
+ m(i, o) {
4591
+ ce(i, t, o), P(t, n);
4592
+ },
4593
+ p(i, o) {
4594
+ o & /*$_*/
4595
+ 4 && r !== (r = /*$_*/
4596
+ i[2]("logoutButton") + "") && zt(n, r);
4597
+ },
4598
+ d(i) {
4599
+ i && j(t);
4600
+ }
4601
+ };
4602
+ }
4603
+ function Eo(e) {
4604
+ let t;
4605
+ function r(o, s) {
4606
+ return (
4607
+ /*buttonlocation*/
4608
+ o[0] === "PlayerAccountMenu" ? vo : go
4609
+ );
4610
+ }
4611
+ let n = r(e), i = n(e);
4612
+ return {
4613
+ c() {
4614
+ t = C("div"), i.c(), x(t, "class", "svelte-1oay3a3");
4615
+ },
4616
+ m(o, s) {
4617
+ ce(o, t, s), i.m(t, null), e[14](t);
4618
+ },
4619
+ p(o, [s]) {
4620
+ n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
4621
+ },
4622
+ i: A,
4623
+ o: A,
4624
+ d(o) {
4625
+ o && j(t), i.d(), e[14](null);
4626
+ }
4627
+ };
4628
+ }
4629
+ function xo(e, t, r) {
4630
+ let n;
4631
+ Gr(e, po, (g) => r(2, n = g));
4632
+ let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: h = "" } = t, c = "", f = !1, p, d = window.navigator.userAgent, m = mo(d) !== "PC";
4633
+ const E = window.matchMedia("(min-width: 768px)"), w = () => {
4634
+ fetch(h).then((L) => L.json()).then((L) => {
4635
+ Object.keys(L).forEach((G) => {
4636
+ Rt(G, L[G]);
4637
+ });
4638
+ }).catch((L) => {
4639
+ console.log(L);
4640
+ });
4641
+ };
4642
+ Object.keys(Ut).forEach((g) => {
4643
+ Rt(g, Ut[g]);
4644
+ });
4645
+ const H = () => {
4646
+ let g = new Headers();
4647
+ g.append("Content-type", "application/json"), g.append("X-SessionID", o);
4648
+ let L = { method: "DELETE", headers: g };
4649
+ fetch(`${i}/v1/player/session/player`, L).then((G) => {
4650
+ window.postMessage({ type: "LogoutSuccessfull" }, window.location.href);
4651
+ });
4652
+ }, S = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", f = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", f = !0, console.error(c)), f), I = () => {
4653
+ bo(a);
4654
+ }, B = () => {
4655
+ let g = document.createElement("style");
4656
+ g.innerHTML = u, p.appendChild(g);
4657
+ }, U = () => {
4658
+ let g = new URL(l), L = document.createElement("style");
4659
+ fetch(g.href).then((G) => G.text()).then((G) => {
4660
+ L.innerHTML = G, setTimeout(
4661
+ () => {
4662
+ p.appendChild(L);
4663
+ },
4664
+ 1
4665
+ ), setTimeout(
4666
+ () => {
4667
+ },
4668
+ 500
4669
+ );
4670
+ });
4671
+ }, de = () => H(), Or = () => H();
4672
+ function Ir(g) {
4673
+ ke[g ? "unshift" : "push"](() => {
4674
+ p = g, r(1, p);
4675
+ });
4676
+ }
4677
+ return e.$$set = (g) => {
4678
+ "endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "buttonlocation" in g && r(0, s = g.buttonlocation), "lang" in g && r(8, a = g.lang), "clientstyling" in g && r(9, u = g.clientstyling), "clientstylingurl" in g && r(10, l = g.clientstylingurl), "translationurl" in g && r(11, h = g.translationurl);
4679
+ }, e.$$.update = () => {
4680
+ e.$$.dirty & /*endpoint, session, buttonlocation*/
4681
+ 193 && i && o && s && S(), e.$$.dirty & /*lang*/
4682
+ 256 && a && I(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4683
+ 514 && u && p && B(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4684
+ 1026 && l && p && U(), e.$$.dirty & /*translationurl*/
4685
+ 2048 && h && w();
4686
+ }, [
4687
+ s,
4688
+ p,
4689
+ n,
4690
+ m,
4691
+ E,
4692
+ H,
4693
+ i,
4694
+ o,
4695
+ a,
4696
+ u,
4697
+ l,
4698
+ h,
4699
+ de,
4700
+ Or,
4701
+ Ir
4702
+ ];
4703
+ }
4704
+ class Pr extends fn {
4705
+ constructor(t) {
4706
+ super(), hn(
4707
+ this,
4708
+ t,
4709
+ xo,
4710
+ Eo,
4711
+ Gt,
4712
+ {
4713
+ endpoint: 6,
4714
+ session: 7,
4715
+ buttonlocation: 0,
4716
+ lang: 8,
4717
+ clientstyling: 9,
4718
+ clientstylingurl: 10,
4719
+ translationurl: 11
4720
+ },
4721
+ yo
4722
+ );
4723
+ }
4724
+ get endpoint() {
4725
+ return this.$$.ctx[6];
4726
+ }
4727
+ set endpoint(t) {
4728
+ this.$$set({ endpoint: t }), N();
4729
+ }
4730
+ get session() {
4731
+ return this.$$.ctx[7];
4732
+ }
4733
+ set session(t) {
4734
+ this.$$set({ session: t }), N();
4735
+ }
4736
+ get buttonlocation() {
4737
+ return this.$$.ctx[0];
4738
+ }
4739
+ set buttonlocation(t) {
4740
+ this.$$set({ buttonlocation: t }), N();
4741
+ }
4742
+ get lang() {
4743
+ return this.$$.ctx[8];
4744
+ }
4745
+ set lang(t) {
4746
+ this.$$set({ lang: t }), N();
4747
+ }
4748
+ get clientstyling() {
4749
+ return this.$$.ctx[9];
4750
+ }
4751
+ set clientstyling(t) {
4752
+ this.$$set({ clientstyling: t }), N();
4753
+ }
4754
+ get clientstylingurl() {
4755
+ return this.$$.ctx[10];
4756
+ }
4757
+ set clientstylingurl(t) {
4758
+ this.$$set({ clientstylingurl: t }), N();
4759
+ }
4760
+ get translationurl() {
4761
+ return this.$$.ctx[11];
4762
+ }
4763
+ set translationurl(t) {
4764
+ this.$$set({ translationurl: t }), N();
4765
+ }
4766
+ }
4767
+ cn(Pr, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4768
+ const Jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4769
+ __proto__: null,
4770
+ default: Pr
4771
+ }, Symbol.toStringTag, { value: "Module" }));
4772
+ export {
4773
+ te as $,
4774
+ To as A,
4775
+ Io as B,
4776
+ ko as C,
4777
+ Co as D,
4778
+ Oo as E,
4779
+ wo as F,
4780
+ Bo as G,
4781
+ Ao as H,
4782
+ Ho as I,
4783
+ on as J,
4784
+ Wo as K,
4785
+ No as L,
4786
+ Zo as M,
4787
+ Lo as N,
4788
+ Go as O,
4789
+ Ro as P,
4790
+ Uo as Q,
4791
+ we as R,
4792
+ fn as S,
4793
+ Do as T,
4794
+ he as U,
4795
+ qo as V,
4796
+ Po as W,
4797
+ zr as X,
4798
+ Rr as Y,
4799
+ Xo as Z,
4800
+ zo as _,
4801
+ Tr as a,
4802
+ Vo as a0,
4803
+ Qo as a1,
4804
+ Pn as a2,
4805
+ $o as a3,
4806
+ Jo as a4,
4807
+ kr as b,
4808
+ cn as c,
4809
+ Xr as d,
4810
+ C as e,
4811
+ N as f,
4812
+ x as g,
4813
+ Fo as h,
4814
+ hn as i,
4815
+ Mo as j,
4816
+ ce as k,
4817
+ P as l,
4818
+ Wt as m,
4819
+ zt as n,
4820
+ A as o,
4821
+ j as p,
4822
+ Gr as q,
4823
+ F as r,
4824
+ Gt as s,
4825
+ fe as t,
4826
+ mo as u,
4827
+ jo as v,
4828
+ ne as w,
4829
+ ke as x,
4830
+ po as y,
4831
+ pe as z
4832
+ };