@everymatrix/casino-tournaments-controller 1.56.0 → 1.56.2

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 (30) hide show
  1. package/components/{CasinoTournamentsController-UUtBZIFh.js → CasinoTournamentsController--v7Db-nS.js} +628 -574
  2. package/components/{CasinoTournamentsController-CD_5uyUc.js → CasinoTournamentsController-B7T1o6MJ.js} +786 -732
  3. package/components/CasinoTournamentsController-CZ-9rz_b.cjs +27 -0
  4. package/components/{CasinoTournamentsFilterController-C6PNRuAN.js → CasinoTournamentsFilterController-D87dskAM.js} +20 -20
  5. package/components/{CasinoTournamentsFilterController-CDD660uA.cjs → CasinoTournamentsFilterController-NmQFysPE.cjs} +1 -1
  6. package/components/{CasinoTournamentsFilterController-C8EhVpC4.js → CasinoTournamentsFilterController-dCThVL3G.js} +22 -22
  7. package/components/{CasinoTournamentsListController-wgytIhYX.js → CasinoTournamentsListController-C0Tn6XLC.js} +1164 -1218
  8. package/components/{CasinoTournamentsListController-l8AH-AQy.js → CasinoTournamentsListController-CVKwStEk.js} +1164 -1218
  9. package/components/CasinoTournamentsListController-qLXWt65S.cjs +13 -0
  10. package/components/{CasinoTournamentsThumbnail-C1PdhLiD.js → CasinoTournamentsThumbnail-B6vVUkXU.js} +36 -36
  11. package/components/{CasinoTournamentsThumbnail-BVAQJY4f.cjs → CasinoTournamentsThumbnail-CutNBEY9.cjs} +1 -1
  12. package/components/{CasinoTournamentsThumbnail-CfBfOQ6y.js → CasinoTournamentsThumbnail-Dh5yOBII.js} +41 -41
  13. package/components/{CasinoTournamentsThumbnailController-B5QfYW6Q.cjs → CasinoTournamentsThumbnailController-B4LzyUAt.cjs} +1 -1
  14. package/components/{CasinoTournamentsThumbnailController-neX5M-sd.js → CasinoTournamentsThumbnailController-Csobnf4h.js} +83 -78
  15. package/components/{CasinoTournamentsThumbnailController-DBjAq9-k.js → CasinoTournamentsThumbnailController-ImrFDGq7.js} +53 -48
  16. package/components/{CasinoTournamentsThumbnailDuration-CGgR5XoL.js → CasinoTournamentsThumbnailDuration-BIHBBD4m.js} +48 -44
  17. package/components/{CasinoTournamentsThumbnailDuration-sMRWK6Da.js → CasinoTournamentsThumbnailDuration-BOSDqPIP.js} +54 -50
  18. package/components/{CasinoTournamentsThumbnailDuration-DFP9BWRc.cjs → CasinoTournamentsThumbnailDuration-DLOov4TV.cjs} +1 -1
  19. package/components/{CasinoTournamentsThumbnailGamesSlider-BUainTMh.js → CasinoTournamentsThumbnailGamesSlider-BKEUZ6M0.js} +38 -37
  20. package/components/{CasinoTournamentsThumbnailGamesSlider-CU3QiSRS.cjs → CasinoTournamentsThumbnailGamesSlider-Blv_3Sia.cjs} +1 -1
  21. package/components/{CasinoTournamentsThumbnailGamesSlider-Bcgbm6UZ.js → CasinoTournamentsThumbnailGamesSlider-C7uGGzGz.js} +56 -55
  22. package/components/{CasinoTournamentsThumbnailPrizes-Cb6ucU30.js → CasinoTournamentsThumbnailPrizes-BmPaa3r7.js} +15 -15
  23. package/components/{CasinoTournamentsThumbnailPrizes-D5o6hcAd.cjs → CasinoTournamentsThumbnailPrizes-CdcFiTcf.cjs} +1 -1
  24. package/components/{CasinoTournamentsThumbnailPrizes-pB7CeUbv.js → CasinoTournamentsThumbnailPrizes-Cgjahh7G.js} +15 -15
  25. package/es2015/casino-tournaments-controller.cjs +1 -1
  26. package/es2015/casino-tournaments-controller.js +1 -1
  27. package/esnext/casino-tournaments-controller.js +1 -1
  28. package/package.json +1 -1
  29. package/components/CasinoTournamentsController-C1dCP4c5.cjs +0 -14
  30. package/components/CasinoTournamentsListController-fm8TCneo.cjs +0 -13
@@ -1,28 +1,28 @@
1
1
  function fe() {
2
2
  }
3
- function Dr(e) {
3
+ function Gr(e) {
4
4
  return e();
5
5
  }
6
- function hr() {
6
+ function dr() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
9
  function ut(e) {
10
- e.forEach(Dr);
10
+ e.forEach(Gr);
11
11
  }
12
12
  function wt(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function Fr(e, t) {
15
+ function jr(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
18
  let dt;
19
- function us(e, t) {
19
+ function fs(e, t) {
20
20
  return e === t ? !0 : (dt || (dt = document.createElement("a")), dt.href = t, e === dt.href);
21
21
  }
22
- function En(e) {
22
+ function Tn(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function Ur(e, ...t) {
25
+ function $r(e, ...t) {
26
26
  if (e == null) {
27
27
  for (const n of t)
28
28
  n(void 0);
@@ -31,24 +31,25 @@ function Ur(e, ...t) {
31
31
  const r = e.subscribe(...t);
32
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
33
33
  }
34
- function _n(e, t, r) {
35
- e.$$.on_destroy.push(Ur(t, r));
34
+ function Sn(e, t, r) {
35
+ e.$$.on_destroy.push($r(t, r));
36
36
  }
37
- function ls(e) {
37
+ function cs(e) {
38
38
  return e && wt(e.destroy) ? e.destroy : fe;
39
39
  }
40
40
  function re(e, t) {
41
41
  e.appendChild(t);
42
42
  }
43
- function xn(e, t, r) {
44
- const n = wn(e);
43
+ function An(e, t, r) {
44
+ const n = Hn(e);
45
45
  if (!n.getElementById(t)) {
46
46
  const i = z("style");
47
- i.id = t, i.textContent = r, Tn(n, i);
47
+ i.id = t, i.textContent = r, Bn(n, i);
48
48
  }
49
49
  }
50
- function wn(e) {
51
- if (!e) return document;
50
+ function Hn(e) {
51
+ if (!e)
52
+ return document;
52
53
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
53
54
  return t && /** @type {ShadowRoot} */
54
55
  t.host ? (
@@ -56,7 +57,7 @@ function wn(e) {
56
57
  t
57
58
  ) : e.ownerDocument;
58
59
  }
59
- function Tn(e, t) {
60
+ function Bn(e, t) {
60
61
  return re(
61
62
  /** @type {Document} */
62
63
  e.head || e,
@@ -69,26 +70,26 @@ function ce(e, t, r) {
69
70
  function ne(e) {
70
71
  e.parentNode && e.parentNode.removeChild(e);
71
72
  }
72
- function hs(e, t) {
73
+ function ds(e, t) {
73
74
  for (let r = 0; r < e.length; r += 1)
74
75
  e[r] && e[r].d(t);
75
76
  }
76
77
  function z(e) {
77
78
  return document.createElement(e);
78
79
  }
79
- function fs(e) {
80
+ function ms(e) {
80
81
  return document.createElementNS("http://www.w3.org/2000/svg", e);
81
82
  }
82
83
  function Ie(e) {
83
84
  return document.createTextNode(e);
84
85
  }
85
- function $t() {
86
+ function kt() {
86
87
  return Ie(" ");
87
88
  }
88
- function Sn() {
89
+ function Pn() {
89
90
  return Ie("");
90
91
  }
91
- function kt(e, t, r, n) {
92
+ function Vt(e, t, r, n) {
92
93
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
93
94
  }
94
95
  function U(e, t, r) {
@@ -98,18 +99,18 @@ function w(e, t, r) {
98
99
  const n = t.toLowerCase();
99
100
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : U(e, t, r);
100
101
  }
101
- function An(e) {
102
+ function Cn(e) {
102
103
  return Array.from(e.childNodes);
103
104
  }
104
105
  function it(e, t) {
105
106
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
106
107
  t);
107
108
  }
108
- function cs(e, t, r, n) {
109
+ function ps(e, t, r, n) {
109
110
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
110
111
  }
111
112
  let mt;
112
- function Hn() {
113
+ function On() {
113
114
  if (mt === void 0) {
114
115
  mt = !1;
115
116
  try {
@@ -120,32 +121,32 @@ function Hn() {
120
121
  }
121
122
  return mt;
122
123
  }
123
- function ds(e, t) {
124
+ function bs(e, t) {
124
125
  getComputedStyle(e).position === "static" && (e.style.position = "relative");
125
126
  const n = z("iframe");
126
127
  n.setAttribute(
127
128
  "style",
128
129
  "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
129
130
  ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
130
- const i = Hn();
131
+ const i = On();
131
132
  let o;
132
- return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = kt(
133
+ return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = Vt(
133
134
  window,
134
135
  "message",
135
136
  /** @param {MessageEvent} event */
136
- (s) => {
137
- s.source === n.contentWindow && t();
137
+ (a) => {
138
+ a.source === n.contentWindow && t();
138
139
  }
139
140
  )) : (n.src = "about:blank", n.onload = () => {
140
- o = kt(n.contentWindow, "resize", t), t();
141
+ o = Vt(n.contentWindow, "resize", t), t();
141
142
  }), re(e, n), () => {
142
143
  (i || o && n.contentWindow) && o(), ne(n);
143
144
  };
144
145
  }
145
- function ms(e, t, r) {
146
+ function gs(e, t, r) {
146
147
  e.classList.toggle(t, !!r);
147
148
  }
148
- function Bn(e) {
149
+ function In(e) {
149
150
  const t = {};
150
151
  return e.childNodes.forEach(
151
152
  /** @param {Element} node */
@@ -158,21 +159,22 @@ let ot;
158
159
  function nt(e) {
159
160
  ot = e;
160
161
  }
161
- function Pn() {
162
- if (!ot) throw new Error("Function called outside component initialization");
162
+ function Ln() {
163
+ if (!ot)
164
+ throw new Error("Function called outside component initialization");
163
165
  return ot;
164
166
  }
165
- function Cn(e) {
166
- Pn().$$.on_mount.push(e);
167
+ function Nn(e) {
168
+ Ln().$$.on_mount.push(e);
167
169
  }
168
- const Ge = [], Vt = [];
170
+ const Ge = [], Xt = [];
169
171
  let je = [];
170
- const fr = [], On = /* @__PURE__ */ Promise.resolve();
171
- let Xt = !1;
172
- function In() {
173
- Xt || (Xt = !0, On.then(F));
172
+ const mr = [], Mn = /* @__PURE__ */ Promise.resolve();
173
+ let zt = !1;
174
+ function Rn() {
175
+ zt || (zt = !0, Mn.then(F));
174
176
  }
175
- function zt(e) {
177
+ function Wt(e) {
176
178
  je.push(e);
177
179
  }
178
180
  const Nt = /* @__PURE__ */ new Set();
@@ -185,55 +187,56 @@ function F() {
185
187
  try {
186
188
  for (; Fe < Ge.length; ) {
187
189
  const t = Ge[Fe];
188
- Fe++, nt(t), Ln(t.$$);
190
+ Fe++, nt(t), Dn(t.$$);
189
191
  }
190
192
  } catch (t) {
191
193
  throw Ge.length = 0, Fe = 0, t;
192
194
  }
193
- for (nt(null), Ge.length = 0, Fe = 0; Vt.length; ) Vt.pop()();
195
+ for (nt(null), Ge.length = 0, Fe = 0; Xt.length; )
196
+ Xt.pop()();
194
197
  for (let t = 0; t < je.length; t += 1) {
195
198
  const r = je[t];
196
199
  Nt.has(r) || (Nt.add(r), r());
197
200
  }
198
201
  je.length = 0;
199
202
  } while (Ge.length);
200
- for (; fr.length; )
201
- fr.pop()();
202
- Xt = !1, Nt.clear(), nt(e);
203
+ for (; mr.length; )
204
+ mr.pop()();
205
+ zt = !1, Nt.clear(), nt(e);
203
206
  }
204
- function Ln(e) {
207
+ function Dn(e) {
205
208
  if (e.fragment !== null) {
206
209
  e.update(), ut(e.before_update);
207
210
  const t = e.dirty;
208
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(zt);
211
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Wt);
209
212
  }
210
213
  }
211
- function Nn(e) {
214
+ function Fn(e) {
212
215
  const t = [], r = [];
213
216
  je.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), je = t;
214
217
  }
215
- const Mn = /* @__PURE__ */ new Set();
216
- function Rn(e, t) {
217
- e && e.i && (Mn.delete(e), e.i(t));
218
+ const Un = /* @__PURE__ */ new Set();
219
+ function Gn(e, t) {
220
+ e && e.i && (Un.delete(e), e.i(t));
218
221
  }
219
- function ps(e) {
222
+ function vs(e) {
220
223
  return e?.length !== void 0 ? e : Array.from(e);
221
224
  }
222
- function Dn(e, t, r) {
225
+ function jn(e, t, r) {
223
226
  const { fragment: n, after_update: i } = e.$$;
224
- n && n.m(t, r), zt(() => {
225
- const o = e.$$.on_mount.map(Dr).filter(wt);
227
+ n && n.m(t, r), Wt(() => {
228
+ const o = e.$$.on_mount.map(Gr).filter(wt);
226
229
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ut(o), e.$$.on_mount = [];
227
- }), i.forEach(zt);
230
+ }), i.forEach(Wt);
228
231
  }
229
- function Fn(e, t) {
232
+ function $n(e, t) {
230
233
  const r = e.$$;
231
- r.fragment !== null && (Nn(r.after_update), ut(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
234
+ r.fragment !== null && (Fn(r.after_update), ut(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
232
235
  }
233
- function Un(e, t) {
234
- e.$$.dirty[0] === -1 && (Ge.push(e), In(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
236
+ function kn(e, t) {
237
+ e.$$.dirty[0] === -1 && (Ge.push(e), Rn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
235
238
  }
236
- function Gn(e, t, r, n, i, o, s = null, a = [-1]) {
239
+ function Vn(e, t, r, n, i, o, a = null, s = [-1]) {
237
240
  const f = ot;
238
241
  nt(e);
239
242
  const h = e.$$ = {
@@ -243,7 +246,7 @@ function Gn(e, t, r, n, i, o, s = null, a = [-1]) {
243
246
  props: o,
244
247
  update: fe,
245
248
  not_equal: i,
246
- bound: hr(),
249
+ bound: dr(),
247
250
  // lifecycle
248
251
  on_mount: [],
249
252
  on_destroy: [],
@@ -252,28 +255,28 @@ function Gn(e, t, r, n, i, o, s = null, a = [-1]) {
252
255
  after_update: [],
253
256
  context: new Map(t.context || (f ? f.$$.context : [])),
254
257
  // everything else
255
- callbacks: hr(),
256
- dirty: a,
258
+ callbacks: dr(),
259
+ dirty: s,
257
260
  skip_bound: !1,
258
261
  root: t.target || f.$$.root
259
262
  };
260
- s && s(h.root);
263
+ a && a(h.root);
261
264
  let c = !1;
262
265
  if (h.ctx = r ? r(e, t.props || {}, (d, p, ..._) => {
263
266
  const O = _.length ? _[0] : p;
264
- return h.ctx && i(h.ctx[d], h.ctx[d] = O) && (!h.skip_bound && h.bound[d] && h.bound[d](O), c && Un(e, d)), p;
267
+ return h.ctx && i(h.ctx[d], h.ctx[d] = O) && (!h.skip_bound && h.bound[d] && h.bound[d](O), c && kn(e, d)), p;
265
268
  }) : [], h.update(), c = !0, ut(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
266
269
  if (t.hydrate) {
267
- const d = An(t.target);
270
+ const d = Cn(t.target);
268
271
  h.fragment && h.fragment.l(d), d.forEach(ne);
269
272
  } else
270
273
  h.fragment && h.fragment.c();
271
- t.intro && Rn(e.$$.fragment), Dn(e, t.target, t.anchor), F();
274
+ t.intro && Gn(e.$$.fragment), jn(e, t.target, t.anchor), F();
272
275
  }
273
276
  nt(f);
274
277
  }
275
- let Gr;
276
- typeof HTMLElement == "function" && (Gr = class extends HTMLElement {
278
+ let kr;
279
+ typeof HTMLElement == "function" && (kr = class extends HTMLElement {
277
280
  /** The Svelte component constructor */
278
281
  $$ctor;
279
282
  /** Slots */
@@ -332,7 +335,7 @@ typeof HTMLElement == "function" && (Gr = class extends HTMLElement {
332
335
  };
333
336
  if (await Promise.resolve(), !this.$$cn || this.$$c)
334
337
  return;
335
- const t = {}, r = Bn(this);
338
+ const t = {}, r = In(this);
336
339
  for (const i of this.$$s)
337
340
  i in r && (t[i] = [e(i)]);
338
341
  for (const i of this.attributes) {
@@ -368,8 +371,8 @@ typeof HTMLElement == "function" && (Gr = class extends HTMLElement {
368
371
  this.$$c.$$.after_update.push(n), n();
369
372
  for (const i in this.$$l)
370
373
  for (const o of this.$$l[i]) {
371
- const s = this.$$c.$on(i, o);
372
- this.$$l_u.set(o, s);
374
+ const a = this.$$c.$on(i, o);
375
+ this.$$l_u.set(o, a);
373
376
  }
374
377
  this.$$l = {};
375
378
  }
@@ -419,36 +422,36 @@ function gt(e, t, r, n) {
419
422
  return t;
420
423
  }
421
424
  }
422
- function jn(e, t, r, n, i, o) {
423
- let s = class extends Gr {
425
+ function Xn(e, t, r, n, i, o) {
426
+ let a = class extends kr {
424
427
  constructor() {
425
428
  super(e, r, i), this.$$p_d = t;
426
429
  }
427
430
  static get observedAttributes() {
428
431
  return Object.keys(t).map(
429
- (a) => (t[a].attribute || a).toLowerCase()
432
+ (s) => (t[s].attribute || s).toLowerCase()
430
433
  );
431
434
  }
432
435
  };
433
- return Object.keys(t).forEach((a) => {
434
- Object.defineProperty(s.prototype, a, {
436
+ return Object.keys(t).forEach((s) => {
437
+ Object.defineProperty(a.prototype, s, {
435
438
  get() {
436
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
439
+ return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
437
440
  },
438
441
  set(f) {
439
- f = gt(a, f, t), this.$$d[a] = f, this.$$c?.$set({ [a]: f });
442
+ f = gt(s, f, t), this.$$d[s] = f, this.$$c?.$set({ [s]: f });
440
443
  }
441
444
  });
442
- }), n.forEach((a) => {
443
- Object.defineProperty(s.prototype, a, {
445
+ }), n.forEach((s) => {
446
+ Object.defineProperty(a.prototype, s, {
444
447
  get() {
445
- return this.$$c?.[a];
448
+ return this.$$c?.[s];
446
449
  }
447
450
  });
448
451
  }), e.element = /** @type {any} */
449
- s, s;
452
+ a, a;
450
453
  }
451
- class $n {
454
+ class zn {
452
455
  /**
453
456
  * ### PRIVATE API
454
457
  *
@@ -467,7 +470,7 @@ class $n {
467
470
  $$set = void 0;
468
471
  /** @returns {void} */
469
472
  $destroy() {
470
- Fn(this, 1), this.$destroy = fe;
473
+ $n(this, 1), this.$destroy = fe;
471
474
  }
472
475
  /**
473
476
  * @template {Extract<keyof Events, string>} K
@@ -489,22 +492,37 @@ class $n {
489
492
  * @returns {void}
490
493
  */
491
494
  $set(t) {
492
- this.$$set && !En(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
495
+ this.$$set && !Tn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
493
496
  }
494
497
  }
495
- const kn = "4";
496
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(kn);
497
- var Wt = function(e, t) {
498
- return Wt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
498
+ const Wn = "4";
499
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Wn);
500
+ /*! *****************************************************************************
501
+ Copyright (c) Microsoft Corporation.
502
+
503
+ Permission to use, copy, modify, and/or distribute this software for any
504
+ purpose with or without fee is hereby granted.
505
+
506
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
507
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
508
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
509
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
510
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
511
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
512
+ PERFORMANCE OF THIS SOFTWARE.
513
+ ***************************************************************************** */
514
+ var qt = function(e, t) {
515
+ return qt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
499
516
  r.__proto__ = n;
500
517
  } || function(r, n) {
501
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
502
- }, Wt(e, t);
518
+ for (var i in n)
519
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
520
+ }, qt(e, t);
503
521
  };
504
522
  function xe(e, t) {
505
523
  if (typeof t != "function" && t !== null)
506
524
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
507
- Wt(e, t);
525
+ qt(e, t);
508
526
  function r() {
509
527
  this.constructor = e;
510
528
  }
@@ -514,61 +532,69 @@ var P = function() {
514
532
  return P = Object.assign || function(t) {
515
533
  for (var r, n = 1, i = arguments.length; n < i; n++) {
516
534
  r = arguments[n];
517
- for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
535
+ for (var o in r)
536
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
518
537
  }
519
538
  return t;
520
539
  }, P.apply(this, arguments);
521
540
  };
522
- function Vn(e, t) {
541
+ function qn(e, t) {
523
542
  var r = {};
524
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
543
+ for (var n in e)
544
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
525
545
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
526
546
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
527
547
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
528
548
  return r;
529
549
  }
530
- function qt(e) {
550
+ function Zt(e) {
531
551
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
532
- if (r) return r.call(e);
533
- if (e && typeof e.length == "number") return {
534
- next: function() {
535
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
536
- }
537
- };
552
+ if (r)
553
+ return r.call(e);
554
+ if (e && typeof e.length == "number")
555
+ return {
556
+ next: function() {
557
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
558
+ }
559
+ };
538
560
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
539
561
  }
540
- function Zt(e, t) {
562
+ function Jt(e, t) {
541
563
  var r = typeof Symbol == "function" && e[Symbol.iterator];
542
- if (!r) return e;
543
- var n = r.call(e), i, o = [], s;
564
+ if (!r)
565
+ return e;
566
+ var n = r.call(e), i, o = [], a;
544
567
  try {
545
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
546
- } catch (a) {
547
- s = { error: a };
568
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
569
+ o.push(i.value);
570
+ } catch (s) {
571
+ a = { error: s };
548
572
  } finally {
549
573
  try {
550
574
  i && !i.done && (r = n.return) && r.call(n);
551
575
  } finally {
552
- if (s) throw s.error;
576
+ if (a)
577
+ throw a.error;
553
578
  }
554
579
  }
555
580
  return o;
556
581
  }
557
582
  function $e(e, t, r) {
558
- if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
559
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
560
- return e.concat(o || Array.prototype.slice.call(t));
583
+ if (r || arguments.length === 2)
584
+ for (var n = 0, i = t.length, o; n < i; n++)
585
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
586
+ return e.concat(o || t);
561
587
  }
562
588
  function _e(e) {
563
589
  return typeof e == "function";
564
590
  }
565
- function jr(e) {
591
+ function Vr(e) {
566
592
  var t = function(n) {
567
593
  Error.call(n), n.stack = new Error().stack;
568
594
  }, r = e(t);
569
595
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
570
596
  }
571
- var Mt = jr(function(e) {
597
+ var Mt = Vr(function(e) {
572
598
  return function(r) {
573
599
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
574
600
  ` + r.map(function(n, i) {
@@ -577,7 +603,7 @@ var Mt = jr(function(e) {
577
603
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
578
604
  };
579
605
  });
580
- function Jt(e, t) {
606
+ function Qt(e, t) {
581
607
  if (e) {
582
608
  var r = e.indexOf(t);
583
609
  0 <= r && e.splice(r, 1);
@@ -591,11 +617,11 @@ var Tt = function() {
591
617
  var t, r, n, i, o;
592
618
  if (!this.closed) {
593
619
  this.closed = !0;
594
- var s = this._parentage;
595
- if (s)
596
- if (this._parentage = null, Array.isArray(s))
620
+ var a = this._parentage;
621
+ if (a)
622
+ if (this._parentage = null, Array.isArray(a))
597
623
  try {
598
- for (var a = qt(s), f = a.next(); !f.done; f = a.next()) {
624
+ for (var s = Zt(a), f = s.next(); !f.done; f = s.next()) {
599
625
  var h = f.value;
600
626
  h.remove(this);
601
627
  }
@@ -603,13 +629,14 @@ var Tt = function() {
603
629
  t = { error: B };
604
630
  } finally {
605
631
  try {
606
- f && !f.done && (r = a.return) && r.call(a);
632
+ f && !f.done && (r = s.return) && r.call(s);
607
633
  } finally {
608
- if (t) throw t.error;
634
+ if (t)
635
+ throw t.error;
609
636
  }
610
637
  }
611
638
  else
612
- s.remove(this);
639
+ a.remove(this);
613
640
  var c = this.initialTeardown;
614
641
  if (_e(c))
615
642
  try {
@@ -621,12 +648,12 @@ var Tt = function() {
621
648
  if (d) {
622
649
  this._finalizers = null;
623
650
  try {
624
- for (var p = qt(d), _ = p.next(); !_.done; _ = p.next()) {
651
+ for (var p = Zt(d), _ = p.next(); !_.done; _ = p.next()) {
625
652
  var O = _.value;
626
653
  try {
627
- cr(O);
654
+ pr(O);
628
655
  } catch (B) {
629
- o = o ?? [], B instanceof Mt ? o = $e($e([], Zt(o)), Zt(B.errors)) : o.push(B);
656
+ o = o ?? [], B instanceof Mt ? o = $e($e([], Jt(o)), Jt(B.errors)) : o.push(B);
630
657
  }
631
658
  }
632
659
  } catch (B) {
@@ -635,7 +662,8 @@ var Tt = function() {
635
662
  try {
636
663
  _ && !_.done && (i = p.return) && i.call(p);
637
664
  } finally {
638
- if (n) throw n.error;
665
+ if (n)
666
+ throw n.error;
639
667
  }
640
668
  }
641
669
  }
@@ -646,7 +674,7 @@ var Tt = function() {
646
674
  var r;
647
675
  if (t && t !== this)
648
676
  if (this.closed)
649
- cr(t);
677
+ pr(t);
650
678
  else {
651
679
  if (t instanceof e) {
652
680
  if (t.closed || t._hasParent(this))
@@ -663,52 +691,56 @@ var Tt = function() {
663
691
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
664
692
  }, e.prototype._removeParent = function(t) {
665
693
  var r = this._parentage;
666
- r === t ? this._parentage = null : Array.isArray(r) && Jt(r, t);
694
+ r === t ? this._parentage = null : Array.isArray(r) && Qt(r, t);
667
695
  }, e.prototype.remove = function(t) {
668
696
  var r = this._finalizers;
669
- r && Jt(r, t), t instanceof e && t._removeParent(this);
697
+ r && Qt(r, t), t instanceof e && t._removeParent(this);
670
698
  }, e.EMPTY = function() {
671
699
  var t = new e();
672
700
  return t.closed = !0, t;
673
701
  }(), e;
674
- }(), $r = Tt.EMPTY;
675
- function kr(e) {
702
+ }(), Xr = Tt.EMPTY;
703
+ function zr(e) {
676
704
  return e instanceof Tt || e && "closed" in e && _e(e.remove) && _e(e.add) && _e(e.unsubscribe);
677
705
  }
678
- function cr(e) {
706
+ function pr(e) {
679
707
  _e(e) ? e() : e.unsubscribe();
680
708
  }
681
- var Xn = {
682
- Promise: void 0
683
- }, zn = {
709
+ var Wr = {
710
+ onUnhandledError: null,
711
+ onStoppedNotification: null,
712
+ Promise: void 0,
713
+ useDeprecatedSynchronousErrorHandling: !1,
714
+ useDeprecatedNextContext: !1
715
+ }, Zn = {
684
716
  setTimeout: function(e, t) {
685
717
  for (var r = [], n = 2; n < arguments.length; n++)
686
718
  r[n - 2] = arguments[n];
687
- return setTimeout.apply(void 0, $e([e, t], Zt(r)));
719
+ return setTimeout.apply(void 0, $e([e, t], Jt(r)));
688
720
  },
689
721
  clearTimeout: function(e) {
690
722
  return clearTimeout(e);
691
723
  },
692
724
  delegate: void 0
693
725
  };
694
- function Wn(e) {
695
- zn.setTimeout(function() {
726
+ function Jn(e) {
727
+ Zn.setTimeout(function() {
696
728
  throw e;
697
729
  });
698
730
  }
699
- function dr() {
731
+ function br() {
700
732
  }
701
733
  function vt(e) {
702
734
  e();
703
735
  }
704
- var Vr = function(e) {
736
+ var qr = function(e) {
705
737
  xe(t, e);
706
738
  function t(r) {
707
739
  var n = e.call(this) || this;
708
- return n.isStopped = !1, r ? (n.destination = r, kr(r) && r.add(n)) : n.destination = Jn, n;
740
+ return n.isStopped = !1, r ? (n.destination = r, zr(r) && r.add(n)) : n.destination = ei, n;
709
741
  }
710
742
  return t.create = function(r, n, i) {
711
- return new Qt(r, n, i);
743
+ return new Yt(r, n, i);
712
744
  }, t.prototype.next = function(r) {
713
745
  this.isStopped || this._next(r);
714
746
  }, t.prototype.error = function(r) {
@@ -732,7 +764,11 @@ var Vr = function(e) {
732
764
  this.unsubscribe();
733
765
  }
734
766
  }, t;
735
- }(Tt), qn = function() {
767
+ }(Tt), Qn = Function.prototype.bind;
768
+ function Rt(e, t) {
769
+ return Qn.call(e, t);
770
+ }
771
+ var Yn = function() {
736
772
  function e(t) {
737
773
  this.partialObserver = t;
738
774
  }
@@ -763,43 +799,55 @@ var Vr = function(e) {
763
799
  pt(r);
764
800
  }
765
801
  }, e;
766
- }(), Qt = function(e) {
802
+ }(), Yt = function(e) {
767
803
  xe(t, e);
768
804
  function t(r, n, i) {
769
- var o = e.call(this) || this, s;
770
- return _e(r) || !r ? s = {
771
- next: r ?? void 0,
772
- error: n ?? void 0,
773
- complete: i ?? void 0
774
- } : s = r, o.destination = new qn(s), o;
805
+ var o = e.call(this) || this, a;
806
+ if (_e(r) || !r)
807
+ a = {
808
+ next: r ?? void 0,
809
+ error: n ?? void 0,
810
+ complete: i ?? void 0
811
+ };
812
+ else {
813
+ var s;
814
+ o && Wr.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
815
+ return o.unsubscribe();
816
+ }, a = {
817
+ next: r.next && Rt(r.next, s),
818
+ error: r.error && Rt(r.error, s),
819
+ complete: r.complete && Rt(r.complete, s)
820
+ }) : a = r;
821
+ }
822
+ return o.destination = new Yn(a), o;
775
823
  }
776
824
  return t;
777
- }(Vr);
825
+ }(qr);
778
826
  function pt(e) {
779
- Wn(e);
827
+ Jn(e);
780
828
  }
781
- function Zn(e) {
829
+ function Kn(e) {
782
830
  throw e;
783
831
  }
784
- var Jn = {
832
+ var ei = {
785
833
  closed: !0,
786
- next: dr,
787
- error: Zn,
788
- complete: dr
789
- }, Qn = function() {
834
+ next: br,
835
+ error: Kn,
836
+ complete: br
837
+ }, ti = function() {
790
838
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
791
839
  }();
792
- function Yn(e) {
840
+ function ri(e) {
793
841
  return e;
794
842
  }
795
- function Kn(e) {
796
- return e.length === 0 ? Yn : e.length === 1 ? e[0] : function(r) {
843
+ function ni(e) {
844
+ return e.length === 0 ? ri : e.length === 1 ? e[0] : function(r) {
797
845
  return e.reduce(function(n, i) {
798
846
  return i(n);
799
847
  }, r);
800
848
  };
801
849
  }
802
- var mr = function() {
850
+ var gr = function() {
803
851
  function e(t) {
804
852
  t && (this._subscribe = t);
805
853
  }
@@ -807,10 +855,10 @@ var mr = function() {
807
855
  var r = new e();
808
856
  return r.source = this, r.operator = t, r;
809
857
  }, e.prototype.subscribe = function(t, r, n) {
810
- var i = this, o = ti(t) ? t : new Qt(t, r, n);
858
+ var i = this, o = oi(t) ? t : new Yt(t, r, n);
811
859
  return vt(function() {
812
- var s = i, a = s.operator, f = s.source;
813
- o.add(a ? a.call(o, f) : f ? i._subscribe(o) : i._trySubscribe(o));
860
+ var a = i, s = a.operator, f = a.source;
861
+ o.add(s ? s.call(o, f) : f ? i._subscribe(o) : i._trySubscribe(o));
814
862
  }), o;
815
863
  }, e.prototype._trySubscribe = function(t) {
816
864
  try {
@@ -820,37 +868,37 @@ var mr = function() {
820
868
  }
821
869
  }, e.prototype.forEach = function(t, r) {
822
870
  var n = this;
823
- return r = pr(r), new r(function(i, o) {
824
- var s = new Qt({
825
- next: function(a) {
871
+ return r = vr(r), new r(function(i, o) {
872
+ var a = new Yt({
873
+ next: function(s) {
826
874
  try {
827
- t(a);
875
+ t(s);
828
876
  } catch (f) {
829
- o(f), s.unsubscribe();
877
+ o(f), a.unsubscribe();
830
878
  }
831
879
  },
832
880
  error: o,
833
881
  complete: i
834
882
  });
835
- n.subscribe(s);
883
+ n.subscribe(a);
836
884
  });
837
885
  }, e.prototype._subscribe = function(t) {
838
886
  var r;
839
887
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
840
- }, e.prototype[Qn] = function() {
888
+ }, e.prototype[ti] = function() {
841
889
  return this;
842
890
  }, e.prototype.pipe = function() {
843
891
  for (var t = [], r = 0; r < arguments.length; r++)
844
892
  t[r] = arguments[r];
845
- return Kn(t)(this);
893
+ return ni(t)(this);
846
894
  }, e.prototype.toPromise = function(t) {
847
895
  var r = this;
848
- return t = pr(t), new t(function(n, i) {
896
+ return t = vr(t), new t(function(n, i) {
849
897
  var o;
850
- r.subscribe(function(s) {
851
- return o = s;
852
- }, function(s) {
853
- return i(s);
898
+ r.subscribe(function(a) {
899
+ return o = a;
900
+ }, function(a) {
901
+ return i(a);
854
902
  }, function() {
855
903
  return n(o);
856
904
  });
@@ -859,32 +907,32 @@ var mr = function() {
859
907
  return new e(t);
860
908
  }, e;
861
909
  }();
862
- function pr(e) {
910
+ function vr(e) {
863
911
  var t;
864
- return (t = e ?? Xn.Promise) !== null && t !== void 0 ? t : Promise;
912
+ return (t = e ?? Wr.Promise) !== null && t !== void 0 ? t : Promise;
865
913
  }
866
- function ei(e) {
914
+ function ii(e) {
867
915
  return e && _e(e.next) && _e(e.error) && _e(e.complete);
868
916
  }
869
- function ti(e) {
870
- return e && e instanceof Vr || ei(e) && kr(e);
917
+ function oi(e) {
918
+ return e && e instanceof qr || ii(e) && zr(e);
871
919
  }
872
- var ri = jr(function(e) {
920
+ var si = Vr(function(e) {
873
921
  return function() {
874
922
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
875
923
  };
876
- }), Xr = function(e) {
924
+ }), Zr = function(e) {
877
925
  xe(t, e);
878
926
  function t() {
879
927
  var r = e.call(this) || this;
880
928
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
881
929
  }
882
930
  return t.prototype.lift = function(r) {
883
- var n = new br(this, this);
931
+ var n = new yr(this, this);
884
932
  return n.operator = r, n;
885
933
  }, t.prototype._throwIfClosed = function() {
886
934
  if (this.closed)
887
- throw new ri();
935
+ throw new si();
888
936
  }, t.prototype.next = function(r) {
889
937
  var n = this;
890
938
  vt(function() {
@@ -892,17 +940,18 @@ var ri = jr(function(e) {
892
940
  if (n._throwIfClosed(), !n.isStopped) {
893
941
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
894
942
  try {
895
- for (var s = qt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
896
- var f = a.value;
943
+ for (var a = Zt(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
944
+ var f = s.value;
897
945
  f.next(r);
898
946
  }
899
947
  } catch (h) {
900
948
  i = { error: h };
901
949
  } finally {
902
950
  try {
903
- a && !a.done && (o = s.return) && o.call(s);
951
+ s && !s.done && (o = a.return) && o.call(a);
904
952
  } finally {
905
- if (i) throw i.error;
953
+ if (i)
954
+ throw i.error;
906
955
  }
907
956
  }
908
957
  }
@@ -939,20 +988,20 @@ var ri = jr(function(e) {
939
988
  }, t.prototype._subscribe = function(r) {
940
989
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
941
990
  }, t.prototype._innerSubscribe = function(r) {
942
- var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
943
- return o || s ? $r : (this.currentObservers = null, a.push(r), new Tt(function() {
944
- n.currentObservers = null, Jt(a, r);
991
+ var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
992
+ return o || a ? Xr : (this.currentObservers = null, s.push(r), new Tt(function() {
993
+ n.currentObservers = null, Qt(s, r);
945
994
  }));
946
995
  }, t.prototype._checkFinalizedStatuses = function(r) {
947
- var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
948
- i ? r.error(o) : s && r.complete();
996
+ var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
997
+ i ? r.error(o) : a && r.complete();
949
998
  }, t.prototype.asObservable = function() {
950
- var r = new mr();
999
+ var r = new gr();
951
1000
  return r.source = this, r;
952
1001
  }, t.create = function(r, n) {
953
- return new br(r, n);
1002
+ return new yr(r, n);
954
1003
  }, t;
955
- }(mr), br = function(e) {
1004
+ }(gr), yr = function(e) {
956
1005
  xe(t, e);
957
1006
  function t(r, n) {
958
1007
  var i = e.call(this) || this;
@@ -969,45 +1018,45 @@ var ri = jr(function(e) {
969
1018
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
970
1019
  }, t.prototype._subscribe = function(r) {
971
1020
  var n, i;
972
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : $r;
1021
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Xr;
973
1022
  }, t;
974
- }(Xr), zr = {
1023
+ }(Zr), Jr = {
975
1024
  now: function() {
976
- return (zr.delegate || Date).now();
1025
+ return (Jr.delegate || Date).now();
977
1026
  },
978
1027
  delegate: void 0
979
- }, ni = function(e) {
1028
+ }, ai = function(e) {
980
1029
  xe(t, e);
981
1030
  function t(r, n, i) {
982
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = zr);
1031
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Jr);
983
1032
  var o = e.call(this) || this;
984
1033
  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;
985
1034
  }
986
1035
  return t.prototype.next = function(r) {
987
- var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, f = n._windowTime;
988
- i || (o.push(r), !s && o.push(a.now() + f)), this._trimBuffer(), e.prototype.next.call(this, r);
1036
+ var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, f = n._windowTime;
1037
+ i || (o.push(r), !a && o.push(s.now() + f)), this._trimBuffer(), e.prototype.next.call(this, r);
989
1038
  }, t.prototype._subscribe = function(r) {
990
1039
  this._throwIfClosed(), this._trimBuffer();
991
- for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), f = 0; f < a.length && !r.closed; f += o ? 1 : 2)
992
- r.next(a[f]);
1040
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), f = 0; f < s.length && !r.closed; f += o ? 1 : 2)
1041
+ r.next(s[f]);
993
1042
  return this._checkFinalizedStatuses(r), n;
994
1043
  }, t.prototype._trimBuffer = function() {
995
- var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
996
- if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
1044
+ var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
1045
+ if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
997
1046
  for (var f = i.now(), h = 0, c = 1; c < o.length && o[c] <= f; c += 2)
998
1047
  h = c;
999
1048
  h && o.splice(0, h + 1);
1000
1049
  }
1001
1050
  }, t;
1002
- }(Xr);
1003
- const gr = [], vr = {}, ii = (e, t = 0) => {
1004
- if (gr.indexOf(e) == -1) {
1005
- const r = new ni(t);
1006
- vr[e] = r, gr.push(e);
1051
+ }(Zr);
1052
+ const Er = [], _r = {}, ui = (e, t = 0) => {
1053
+ if (Er.indexOf(e) == -1) {
1054
+ const r = new ai(t);
1055
+ _r[e] = r, Er.push(e);
1007
1056
  }
1008
- return vr[e];
1057
+ return _r[e];
1009
1058
  }, Ue = [];
1010
- function oi(e, t) {
1059
+ function li(e, t) {
1011
1060
  return {
1012
1061
  subscribe: St(e, t).subscribe
1013
1062
  };
@@ -1015,8 +1064,8 @@ function oi(e, t) {
1015
1064
  function St(e, t = fe) {
1016
1065
  let r;
1017
1066
  const n = /* @__PURE__ */ new Set();
1018
- function i(a) {
1019
- if (Fr(e, a) && (e = a, r)) {
1067
+ function i(s) {
1068
+ if (jr(e, s) && (e = s, r)) {
1020
1069
  const f = !Ue.length;
1021
1070
  for (const h of n)
1022
1071
  h[1](), Ue.push(h, e);
@@ -1027,23 +1076,23 @@ function St(e, t = fe) {
1027
1076
  }
1028
1077
  }
1029
1078
  }
1030
- function o(a) {
1031
- i(a(e));
1079
+ function o(s) {
1080
+ i(s(e));
1032
1081
  }
1033
- function s(a, f = fe) {
1034
- const h = [a, f];
1035
- return n.add(h), n.size === 1 && (r = t(i, o) || fe), a(e), () => {
1082
+ function a(s, f = fe) {
1083
+ const h = [s, f];
1084
+ return n.add(h), n.size === 1 && (r = t(i, o) || fe), s(e), () => {
1036
1085
  n.delete(h), n.size === 0 && r && (r(), r = null);
1037
1086
  };
1038
1087
  }
1039
- return { set: i, update: o, subscribe: s };
1088
+ return { set: i, update: o, subscribe: a };
1040
1089
  }
1041
1090
  function We(e, t, r) {
1042
1091
  const n = !Array.isArray(e), i = n ? [e] : e;
1043
1092
  if (!i.every(Boolean))
1044
1093
  throw new Error("derived() expects stores as input, got a falsy value");
1045
1094
  const o = t.length < 2;
1046
- return oi(r, (s, a) => {
1095
+ return li(r, (a, s) => {
1047
1096
  let f = !1;
1048
1097
  const h = [];
1049
1098
  let c = 0, d = fe;
@@ -1051,10 +1100,10 @@ function We(e, t, r) {
1051
1100
  if (c)
1052
1101
  return;
1053
1102
  d();
1054
- const O = t(n ? h[0] : h, s, a);
1055
- o ? s(O) : d = wt(O) ? O : fe;
1103
+ const O = t(n ? h[0] : h, a, s);
1104
+ o ? a(O) : d = wt(O) ? O : fe;
1056
1105
  }, _ = i.map(
1057
- (O, B) => Ur(
1106
+ (O, B) => $r(
1058
1107
  O,
1059
1108
  (ee) => {
1060
1109
  h[B] = ee, c &= ~(1 << B), f && p();
@@ -1069,71 +1118,71 @@ function We(e, t, r) {
1069
1118
  };
1070
1119
  });
1071
1120
  }
1072
- var si = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1073
- function ai(e) {
1121
+ var hi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1122
+ function fi(e) {
1074
1123
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1075
1124
  }
1076
- var ui = function(t) {
1077
- return li(t) && !hi(t);
1125
+ var ci = function(t) {
1126
+ return di(t) && !mi(t);
1078
1127
  };
1079
- function li(e) {
1128
+ function di(e) {
1080
1129
  return !!e && typeof e == "object";
1081
1130
  }
1082
- function hi(e) {
1131
+ function mi(e) {
1083
1132
  var t = Object.prototype.toString.call(e);
1084
- return t === "[object RegExp]" || t === "[object Date]" || di(e);
1133
+ return t === "[object RegExp]" || t === "[object Date]" || gi(e);
1085
1134
  }
1086
- var fi = typeof Symbol == "function" && Symbol.for, ci = fi ? Symbol.for("react.element") : 60103;
1087
- function di(e) {
1088
- return e.$$typeof === ci;
1135
+ var pi = typeof Symbol == "function" && Symbol.for, bi = pi ? Symbol.for("react.element") : 60103;
1136
+ function gi(e) {
1137
+ return e.$$typeof === bi;
1089
1138
  }
1090
- function mi(e) {
1139
+ function vi(e) {
1091
1140
  return Array.isArray(e) ? [] : {};
1092
1141
  }
1093
1142
  function st(e, t) {
1094
- return t.clone !== !1 && t.isMergeableObject(e) ? ke(mi(e), e, t) : e;
1143
+ return t.clone !== !1 && t.isMergeableObject(e) ? ke(vi(e), e, t) : e;
1095
1144
  }
1096
- function pi(e, t, r) {
1145
+ function yi(e, t, r) {
1097
1146
  return e.concat(t).map(function(n) {
1098
1147
  return st(n, r);
1099
1148
  });
1100
1149
  }
1101
- function bi(e, t) {
1150
+ function Ei(e, t) {
1102
1151
  if (!t.customMerge)
1103
1152
  return ke;
1104
1153
  var r = t.customMerge(e);
1105
1154
  return typeof r == "function" ? r : ke;
1106
1155
  }
1107
- function gi(e) {
1156
+ function _i(e) {
1108
1157
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1109
1158
  return Object.propertyIsEnumerable.call(e, t);
1110
1159
  }) : [];
1111
1160
  }
1112
- function yr(e) {
1113
- return Object.keys(e).concat(gi(e));
1161
+ function xr(e) {
1162
+ return Object.keys(e).concat(_i(e));
1114
1163
  }
1115
- function Wr(e, t) {
1164
+ function Qr(e, t) {
1116
1165
  try {
1117
1166
  return t in e;
1118
1167
  } catch {
1119
1168
  return !1;
1120
1169
  }
1121
1170
  }
1122
- function vi(e, t) {
1123
- return Wr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1171
+ function xi(e, t) {
1172
+ return Qr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1124
1173
  }
1125
- function yi(e, t, r) {
1174
+ function wi(e, t, r) {
1126
1175
  var n = {};
1127
- return r.isMergeableObject(e) && yr(e).forEach(function(i) {
1176
+ return r.isMergeableObject(e) && xr(e).forEach(function(i) {
1128
1177
  n[i] = st(e[i], r);
1129
- }), yr(t).forEach(function(i) {
1130
- vi(e, i) || (Wr(e, i) && r.isMergeableObject(t[i]) ? n[i] = bi(i, r)(e[i], t[i], r) : n[i] = st(t[i], r));
1178
+ }), xr(t).forEach(function(i) {
1179
+ xi(e, i) || (Qr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ei(i, r)(e[i], t[i], r) : n[i] = st(t[i], r));
1131
1180
  }), n;
1132
1181
  }
1133
1182
  function ke(e, t, r) {
1134
- r = r || {}, r.arrayMerge = r.arrayMerge || pi, r.isMergeableObject = r.isMergeableObject || ui, r.cloneUnlessOtherwiseSpecified = st;
1183
+ r = r || {}, r.arrayMerge = r.arrayMerge || yi, r.isMergeableObject = r.isMergeableObject || ci, r.cloneUnlessOtherwiseSpecified = st;
1135
1184
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1136
- return o ? n ? r.arrayMerge(e, t, r) : yi(e, t, r) : st(t, r);
1185
+ return o ? n ? r.arrayMerge(e, t, r) : wi(e, t, r) : st(t, r);
1137
1186
  }
1138
1187
  ke.all = function(t, r) {
1139
1188
  if (!Array.isArray(t))
@@ -1142,56 +1191,58 @@ ke.all = function(t, r) {
1142
1191
  return ke(n, i, r);
1143
1192
  }, {});
1144
1193
  };
1145
- var Ei = ke, _i = Ei;
1146
- const xi = /* @__PURE__ */ ai(_i);
1147
- function Rt(e, t) {
1148
- var r = t && t.cache ? t.cache : Pi, n = t && t.serializer ? t.serializer : Hi, i = t && t.strategy ? t.strategy : Si;
1194
+ var Ti = ke, Si = Ti;
1195
+ const Ai = /* @__PURE__ */ fi(Si);
1196
+ function Dt(e, t) {
1197
+ var r = t && t.cache ? t.cache : Ii, n = t && t.serializer ? t.serializer : Oi, i = t && t.strategy ? t.strategy : Bi;
1149
1198
  return i(e, {
1150
1199
  cache: r,
1151
1200
  serializer: n
1152
1201
  });
1153
1202
  }
1154
- function wi(e) {
1203
+ function Hi(e) {
1155
1204
  return e == null || typeof e == "number" || typeof e == "boolean";
1156
1205
  }
1157
- function Ti(e, t, r, n) {
1158
- var i = wi(n) ? n : r(n), o = t.get(i);
1206
+ function Yr(e, t, r, n) {
1207
+ var i = Hi(n) ? n : r(n), o = t.get(i);
1159
1208
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1160
1209
  }
1161
- function qr(e, t, r) {
1210
+ function Kr(e, t, r) {
1162
1211
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1163
1212
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1164
1213
  }
1165
- function Zr(e, t, r, n, i) {
1214
+ function ur(e, t, r, n, i) {
1166
1215
  return r.bind(t, e, n, i);
1167
1216
  }
1168
- function Si(e, t) {
1169
- var r = e.length === 1 ? Ti : qr;
1170
- return Zr(e, this, r, t.cache.create(), t.serializer);
1217
+ function Bi(e, t) {
1218
+ var r = e.length === 1 ? Yr : Kr;
1219
+ return ur(e, this, r, t.cache.create(), t.serializer);
1220
+ }
1221
+ function Pi(e, t) {
1222
+ return ur(e, this, Kr, t.cache.create(), t.serializer);
1171
1223
  }
1172
- function Ai(e, t) {
1173
- return Zr(e, this, qr, t.cache.create(), t.serializer);
1224
+ function Ci(e, t) {
1225
+ return ur(e, this, Yr, t.cache.create(), t.serializer);
1174
1226
  }
1175
- var Hi = function() {
1227
+ var Oi = function() {
1176
1228
  return JSON.stringify(arguments);
1177
- }, Bi = (
1178
- /** @class */
1179
- function() {
1180
- function e() {
1181
- this.cache = /* @__PURE__ */ Object.create(null);
1182
- }
1183
- return e.prototype.get = function(t) {
1184
- return this.cache[t];
1185
- }, e.prototype.set = function(t, r) {
1186
- this.cache[t] = r;
1187
- }, e;
1188
- }()
1189
- ), Pi = {
1229
+ };
1230
+ function lr() {
1231
+ this.cache = /* @__PURE__ */ Object.create(null);
1232
+ }
1233
+ lr.prototype.get = function(e) {
1234
+ return this.cache[e];
1235
+ };
1236
+ lr.prototype.set = function(e, t) {
1237
+ this.cache[e] = t;
1238
+ };
1239
+ var Ii = {
1190
1240
  create: function() {
1191
- return new Bi();
1241
+ return new lr();
1192
1242
  }
1193
- }, Dt = {
1194
- variadic: Ai
1243
+ }, Ft = {
1244
+ variadic: Pi,
1245
+ monadic: Ci
1195
1246
  }, A;
1196
1247
  (function(e) {
1197
1248
  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";
@@ -1204,43 +1255,43 @@ var Ve;
1204
1255
  (function(e) {
1205
1256
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1206
1257
  })(Ve || (Ve = {}));
1207
- function Er(e) {
1258
+ function wr(e) {
1208
1259
  return e.type === D.literal;
1209
1260
  }
1210
- function Ci(e) {
1261
+ function Li(e) {
1211
1262
  return e.type === D.argument;
1212
1263
  }
1213
- function Jr(e) {
1264
+ function en(e) {
1214
1265
  return e.type === D.number;
1215
1266
  }
1216
- function Qr(e) {
1267
+ function tn(e) {
1217
1268
  return e.type === D.date;
1218
1269
  }
1219
- function Yr(e) {
1270
+ function rn(e) {
1220
1271
  return e.type === D.time;
1221
1272
  }
1222
- function Kr(e) {
1273
+ function nn(e) {
1223
1274
  return e.type === D.select;
1224
1275
  }
1225
- function en(e) {
1276
+ function on(e) {
1226
1277
  return e.type === D.plural;
1227
1278
  }
1228
- function Oi(e) {
1279
+ function Ni(e) {
1229
1280
  return e.type === D.pound;
1230
1281
  }
1231
- function tn(e) {
1282
+ function sn(e) {
1232
1283
  return e.type === D.tag;
1233
1284
  }
1234
- function rn(e) {
1285
+ function an(e) {
1235
1286
  return !!(e && typeof e == "object" && e.type === Ve.number);
1236
1287
  }
1237
- function Yt(e) {
1288
+ function Kt(e) {
1238
1289
  return !!(e && typeof e == "object" && e.type === Ve.dateTime);
1239
1290
  }
1240
- var nn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ii = /(?:[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;
1241
- function Li(e) {
1291
+ var un = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Mi = /(?:[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;
1292
+ function Ri(e) {
1242
1293
  var t = {};
1243
- return e.replace(Ii, function(r) {
1294
+ return e.replace(Mi, function(r) {
1244
1295
  var n = r.length;
1245
1296
  switch (r[0]) {
1246
1297
  case "G":
@@ -1329,36 +1380,36 @@ function Li(e) {
1329
1380
  return "";
1330
1381
  }), t;
1331
1382
  }
1332
- var Ni = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1333
- function Mi(e) {
1383
+ var Di = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1384
+ function Fi(e) {
1334
1385
  if (e.length === 0)
1335
1386
  throw new Error("Number skeleton cannot be empty");
1336
- for (var t = e.split(Ni).filter(function(p) {
1387
+ for (var t = e.split(Di).filter(function(p) {
1337
1388
  return p.length > 0;
1338
1389
  }), r = [], n = 0, i = t; n < i.length; n++) {
1339
- var o = i[n], s = o.split("/");
1340
- if (s.length === 0)
1390
+ var o = i[n], a = o.split("/");
1391
+ if (a.length === 0)
1341
1392
  throw new Error("Invalid number skeleton");
1342
- for (var a = s[0], f = s.slice(1), h = 0, c = f; h < c.length; h++) {
1393
+ for (var s = a[0], f = a.slice(1), h = 0, c = f; h < c.length; h++) {
1343
1394
  var d = c[h];
1344
1395
  if (d.length === 0)
1345
1396
  throw new Error("Invalid number skeleton");
1346
1397
  }
1347
- r.push({ stem: a, options: f });
1398
+ r.push({ stem: s, options: f });
1348
1399
  }
1349
1400
  return r;
1350
1401
  }
1351
- function Ri(e) {
1402
+ function Ui(e) {
1352
1403
  return e.replace(/^(.*?)-/, "");
1353
1404
  }
1354
- var _r = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, on = /^(@+)?(\+|#+)?[rs]?$/g, Di = /(\*)(0+)|(#+)(0+)|(0+)/g, sn = /^(0+)$/;
1355
- function xr(e) {
1405
+ var Tr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ln = /^(@+)?(\+|#+)?[rs]?$/g, Gi = /(\*)(0+)|(#+)(0+)|(0+)/g, hn = /^(0+)$/;
1406
+ function Sr(e) {
1356
1407
  var t = {};
1357
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(on, function(r, n, i) {
1408
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ln, function(r, n, i) {
1358
1409
  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)), "";
1359
1410
  }), t;
1360
1411
  }
1361
- function an(e) {
1412
+ function fn(e) {
1362
1413
  switch (e) {
1363
1414
  case "sign-auto":
1364
1415
  return {
@@ -1398,7 +1449,7 @@ function an(e) {
1398
1449
  };
1399
1450
  }
1400
1451
  }
1401
- function Fi(e) {
1452
+ function ji(e) {
1402
1453
  var t;
1403
1454
  if (e[0] === "E" && e[1] === "E" ? (t = {
1404
1455
  notation: "engineering"
@@ -1406,17 +1457,17 @@ function Fi(e) {
1406
1457
  notation: "scientific"
1407
1458
  }, e = e.slice(1)), t) {
1408
1459
  var r = e.slice(0, 2);
1409
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !sn.test(e))
1460
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !hn.test(e))
1410
1461
  throw new Error("Malformed concise eng/scientific notation");
1411
1462
  t.minimumIntegerDigits = e.length;
1412
1463
  }
1413
1464
  return t;
1414
1465
  }
1415
- function wr(e) {
1416
- var t = {}, r = an(e);
1466
+ function Ar(e) {
1467
+ var t = {}, r = fn(e);
1417
1468
  return r || t;
1418
1469
  }
1419
- function Ui(e) {
1470
+ function $i(e) {
1420
1471
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1421
1472
  var i = n[r];
1422
1473
  switch (i.stem) {
@@ -1440,7 +1491,7 @@ function Ui(e) {
1440
1491
  continue;
1441
1492
  case "measure-unit":
1442
1493
  case "unit":
1443
- t.style = "unit", t.unit = Ri(i.options[0]);
1494
+ t.style = "unit", t.unit = Ui(i.options[0]);
1444
1495
  continue;
1445
1496
  case "compact-short":
1446
1497
  case "K":
@@ -1452,12 +1503,12 @@ function Ui(e) {
1452
1503
  continue;
1453
1504
  case "scientific":
1454
1505
  t = P(P(P({}, t), { notation: "scientific" }), i.options.reduce(function(f, h) {
1455
- return P(P({}, f), wr(h));
1506
+ return P(P({}, f), Ar(h));
1456
1507
  }, {}));
1457
1508
  continue;
1458
1509
  case "engineering":
1459
1510
  t = P(P(P({}, t), { notation: "engineering" }), i.options.reduce(function(f, h) {
1460
- return P(P({}, f), wr(h));
1511
+ return P(P({}, f), Ar(h));
1461
1512
  }, {}));
1462
1513
  continue;
1463
1514
  case "notation-simple":
@@ -1502,7 +1553,7 @@ function Ui(e) {
1502
1553
  case "integer-width":
1503
1554
  if (i.options.length > 1)
1504
1555
  throw new RangeError("integer-width stems only accept a single optional option");
1505
- i.options[0].replace(Di, function(f, h, c, d, p, _) {
1556
+ i.options[0].replace(Gi, function(f, h, c, d, p, _) {
1506
1557
  if (h)
1507
1558
  t.minimumIntegerDigits = c.length;
1508
1559
  else {
@@ -1515,28 +1566,28 @@ function Ui(e) {
1515
1566
  });
1516
1567
  continue;
1517
1568
  }
1518
- if (sn.test(i.stem)) {
1569
+ if (hn.test(i.stem)) {
1519
1570
  t.minimumIntegerDigits = i.stem.length;
1520
1571
  continue;
1521
1572
  }
1522
- if (_r.test(i.stem)) {
1573
+ if (Tr.test(i.stem)) {
1523
1574
  if (i.options.length > 1)
1524
1575
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1525
- i.stem.replace(_r, function(f, h, c, d, p, _) {
1576
+ i.stem.replace(Tr, function(f, h, c, d, p, _) {
1526
1577
  return c === "*" ? t.minimumFractionDigits = h.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : p && _ ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + _.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
1527
1578
  });
1528
1579
  var o = i.options[0];
1529
- o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t), xr(o)));
1580
+ o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t), Sr(o)));
1530
1581
  continue;
1531
1582
  }
1532
- if (on.test(i.stem)) {
1533
- t = P(P({}, t), xr(i.stem));
1583
+ if (ln.test(i.stem)) {
1584
+ t = P(P({}, t), Sr(i.stem));
1534
1585
  continue;
1535
1586
  }
1536
- var s = an(i.stem);
1537
- s && (t = P(P({}, t), s));
1538
- var a = Fi(i.stem);
1587
+ var a = fn(i.stem);
1539
1588
  a && (t = P(P({}, t), a));
1589
+ var s = ji(i.stem);
1590
+ s && (t = P(P({}, t), s));
1540
1591
  }
1541
1592
  return t;
1542
1593
  }
@@ -2955,22 +3006,23 @@ var bt = {
2955
3006
  "h"
2956
3007
  ]
2957
3008
  };
2958
- function Gi(e, t) {
3009
+ function ki(e, t) {
2959
3010
  for (var r = "", n = 0; n < e.length; n++) {
2960
3011
  var i = e.charAt(n);
2961
3012
  if (i === "j") {
2962
3013
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2963
3014
  o++, n++;
2964
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), f = "a", h = ji(t);
2965
- for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
3015
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), f = "a", h = Vi(t);
3016
+ for ((h == "H" || h == "k") && (s = 0); s-- > 0; )
2966
3017
  r += f;
2967
- for (; s-- > 0; )
3018
+ for (; a-- > 0; )
2968
3019
  r = h + r;
2969
- } else i === "J" ? r += "H" : r += i;
3020
+ } else
3021
+ i === "J" ? r += "H" : r += i;
2970
3022
  }
2971
3023
  return r;
2972
3024
  }
2973
- function ji(e) {
3025
+ function Vi(e) {
2974
3026
  var t = e.hourCycle;
2975
3027
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2976
3028
  e.hourCycles && // @ts-ignore
@@ -2992,20 +3044,20 @@ function ji(e) {
2992
3044
  var i = bt[n || ""] || bt[r || ""] || bt["".concat(r, "-001")] || bt["001"];
2993
3045
  return i[0];
2994
3046
  }
2995
- var Ft, $i = new RegExp("^".concat(nn.source, "*")), ki = new RegExp("".concat(nn.source, "*$"));
3047
+ var Ut, Xi = new RegExp("^".concat(un.source, "*")), zi = new RegExp("".concat(un.source, "*$"));
2996
3048
  function H(e, t) {
2997
3049
  return { start: e, end: t };
2998
3050
  }
2999
- var Vi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Xi = !!String.fromCodePoint, zi = !!Object.fromEntries, Wi = !!String.prototype.codePointAt, qi = !!String.prototype.trimStart, Zi = !!String.prototype.trimEnd, Ji = !!Number.isSafeInteger, Qi = Ji ? Number.isSafeInteger : function(e) {
3051
+ var Wi = !!String.prototype.startsWith && "_a".startsWith("a", 1), qi = !!String.fromCodePoint, Zi = !!Object.fromEntries, Ji = !!String.prototype.codePointAt, Qi = !!String.prototype.trimStart, Yi = !!String.prototype.trimEnd, Ki = !!Number.isSafeInteger, eo = Ki ? Number.isSafeInteger : function(e) {
3000
3052
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3001
- }, Kt = !0;
3053
+ }, er = !0;
3002
3054
  try {
3003
- var Yi = ln("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3004
- Kt = ((Ft = Yi.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
3055
+ var to = dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3056
+ er = ((Ut = to.exec("a")) === null || Ut === void 0 ? void 0 : Ut[0]) === "a";
3005
3057
  } catch {
3006
- Kt = !1;
3058
+ er = !1;
3007
3059
  }
3008
- var Tr = Vi ? (
3060
+ var Hr = Wi ? (
3009
3061
  // Native
3010
3062
  function(t, r, n) {
3011
3063
  return t.startsWith(r, n);
@@ -3015,31 +3067,31 @@ var Tr = Vi ? (
3015
3067
  function(t, r, n) {
3016
3068
  return t.slice(n, n + r.length) === r;
3017
3069
  }
3018
- ), er = Xi ? String.fromCodePoint : (
3070
+ ), tr = qi ? String.fromCodePoint : (
3019
3071
  // IE11
3020
3072
  function() {
3021
3073
  for (var t = [], r = 0; r < arguments.length; r++)
3022
3074
  t[r] = arguments[r];
3023
- for (var n = "", i = t.length, o = 0, s; i > o; ) {
3024
- if (s = t[o++], s > 1114111)
3025
- throw RangeError(s + " is not a valid code point");
3026
- n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
3075
+ for (var n = "", i = t.length, o = 0, a; i > o; ) {
3076
+ if (a = t[o++], a > 1114111)
3077
+ throw RangeError(a + " is not a valid code point");
3078
+ n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
3027
3079
  }
3028
3080
  return n;
3029
3081
  }
3030
- ), Sr = (
3082
+ ), Br = (
3031
3083
  // native
3032
- zi ? Object.fromEntries : (
3084
+ Zi ? Object.fromEntries : (
3033
3085
  // Ponyfill
3034
3086
  function(t) {
3035
3087
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
3036
- var o = i[n], s = o[0], a = o[1];
3037
- r[s] = a;
3088
+ var o = i[n], a = o[0], s = o[1];
3089
+ r[a] = s;
3038
3090
  }
3039
3091
  return r;
3040
3092
  }
3041
3093
  )
3042
- ), un = Wi ? (
3094
+ ), cn = Ji ? (
3043
3095
  // Native
3044
3096
  function(t, r) {
3045
3097
  return t.codePointAt(r);
@@ -3053,7 +3105,7 @@ var Tr = Vi ? (
3053
3105
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3054
3106
  }
3055
3107
  }
3056
- ), Ki = qi ? (
3108
+ ), ro = Qi ? (
3057
3109
  // Native
3058
3110
  function(t) {
3059
3111
  return t.trimStart();
@@ -3061,9 +3113,9 @@ var Tr = Vi ? (
3061
3113
  ) : (
3062
3114
  // Ponyfill
3063
3115
  function(t) {
3064
- return t.replace($i, "");
3116
+ return t.replace(Xi, "");
3065
3117
  }
3066
- ), eo = Zi ? (
3118
+ ), no = Yi ? (
3067
3119
  // Native
3068
3120
  function(t) {
3069
3121
  return t.trimEnd();
@@ -3071,32 +3123,32 @@ var Tr = Vi ? (
3071
3123
  ) : (
3072
3124
  // Ponyfill
3073
3125
  function(t) {
3074
- return t.replace(ki, "");
3126
+ return t.replace(zi, "");
3075
3127
  }
3076
3128
  );
3077
- function ln(e, t) {
3129
+ function dn(e, t) {
3078
3130
  return new RegExp(e, t);
3079
3131
  }
3080
- var tr;
3081
- if (Kt) {
3082
- var Ar = ln("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3083
- tr = function(t, r) {
3132
+ var rr;
3133
+ if (er) {
3134
+ var Pr = dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3135
+ rr = function(t, r) {
3084
3136
  var n;
3085
- Ar.lastIndex = r;
3086
- var i = Ar.exec(t);
3137
+ Pr.lastIndex = r;
3138
+ var i = Pr.exec(t);
3087
3139
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3088
3140
  };
3089
3141
  } else
3090
- tr = function(t, r) {
3142
+ rr = function(t, r) {
3091
3143
  for (var n = []; ; ) {
3092
- var i = un(t, r);
3093
- if (i === void 0 || hn(i) || io(i))
3144
+ var i = cn(t, r);
3145
+ if (i === void 0 || mn(i) || ao(i))
3094
3146
  break;
3095
3147
  n.push(i), r += i >= 65536 ? 2 : 1;
3096
3148
  }
3097
- return er.apply(void 0, n);
3149
+ return tr.apply(void 0, n);
3098
3150
  };
3099
- var to = (
3151
+ var io = (
3100
3152
  /** @class */
3101
3153
  function() {
3102
3154
  function e(t, r) {
@@ -3110,33 +3162,33 @@ var to = (
3110
3162
  for (var i = []; !this.isEOF(); ) {
3111
3163
  var o = this.char();
3112
3164
  if (o === 123) {
3113
- var s = this.parseArgument(t, n);
3114
- if (s.err)
3115
- return s;
3116
- i.push(s.val);
3165
+ var a = this.parseArgument(t, n);
3166
+ if (a.err)
3167
+ return a;
3168
+ i.push(a.val);
3117
3169
  } else {
3118
3170
  if (o === 125 && t > 0)
3119
3171
  break;
3120
3172
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3121
- var a = this.clonePosition();
3173
+ var s = this.clonePosition();
3122
3174
  this.bump(), i.push({
3123
3175
  type: D.pound,
3124
- location: H(a, this.clonePosition())
3176
+ location: H(s, this.clonePosition())
3125
3177
  });
3126
3178
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3127
3179
  if (n)
3128
3180
  break;
3129
3181
  return this.error(A.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
3130
- } else if (o === 60 && !this.ignoreTag && rr(this.peek() || 0)) {
3131
- var s = this.parseTag(t, r);
3132
- if (s.err)
3133
- return s;
3134
- i.push(s.val);
3182
+ } else if (o === 60 && !this.ignoreTag && nr(this.peek() || 0)) {
3183
+ var a = this.parseTag(t, r);
3184
+ if (a.err)
3185
+ return a;
3186
+ i.push(a.val);
3135
3187
  } else {
3136
- var s = this.parseLiteral(t, r);
3137
- if (s.err)
3138
- return s;
3139
- i.push(s.val);
3188
+ var a = this.parseLiteral(t, r);
3189
+ if (a.err)
3190
+ return a;
3191
+ i.push(a.val);
3140
3192
  }
3141
3193
  }
3142
3194
  }
@@ -3158,27 +3210,27 @@ var to = (
3158
3210
  var o = this.parseMessage(t + 1, r, !0);
3159
3211
  if (o.err)
3160
3212
  return o;
3161
- var s = o.val, a = this.clonePosition();
3213
+ var a = o.val, s = this.clonePosition();
3162
3214
  if (this.bumpIf("</")) {
3163
- if (this.isEOF() || !rr(this.char()))
3164
- return this.error(A.INVALID_TAG, H(a, this.clonePosition()));
3215
+ if (this.isEOF() || !nr(this.char()))
3216
+ return this.error(A.INVALID_TAG, H(s, this.clonePosition()));
3165
3217
  var f = this.clonePosition(), h = this.parseTagName();
3166
3218
  return i !== h ? this.error(A.UNMATCHED_CLOSING_TAG, H(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3167
3219
  val: {
3168
3220
  type: D.tag,
3169
3221
  value: i,
3170
- children: s,
3222
+ children: a,
3171
3223
  location: H(n, this.clonePosition())
3172
3224
  },
3173
3225
  err: null
3174
- } : this.error(A.INVALID_TAG, H(a, this.clonePosition())));
3226
+ } : this.error(A.INVALID_TAG, H(s, this.clonePosition())));
3175
3227
  } else
3176
3228
  return this.error(A.UNCLOSED_TAG, H(n, this.clonePosition()));
3177
3229
  } else
3178
3230
  return this.error(A.INVALID_TAG, H(n, this.clonePosition()));
3179
3231
  }, e.prototype.parseTagName = function() {
3180
3232
  var t = this.offset();
3181
- for (this.bump(); !this.isEOF() && no(this.char()); )
3233
+ for (this.bump(); !this.isEOF() && so(this.char()); )
3182
3234
  this.bump();
3183
3235
  return this.message.slice(t, this.offset());
3184
3236
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3188,16 +3240,16 @@ var to = (
3188
3240
  i += o;
3189
3241
  continue;
3190
3242
  }
3191
- var s = this.tryParseUnquoted(t, r);
3192
- if (s) {
3193
- i += s;
3194
- continue;
3195
- }
3196
- var a = this.tryParseLeftAngleBracket();
3243
+ var a = this.tryParseUnquoted(t, r);
3197
3244
  if (a) {
3198
3245
  i += a;
3199
3246
  continue;
3200
3247
  }
3248
+ var s = this.tryParseLeftAngleBracket();
3249
+ if (s) {
3250
+ i += s;
3251
+ continue;
3252
+ }
3201
3253
  break;
3202
3254
  }
3203
3255
  var f = H(n, this.clonePosition());
@@ -3207,7 +3259,7 @@ var to = (
3207
3259
  };
3208
3260
  }, e.prototype.tryParseLeftAngleBracket = function() {
3209
3261
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3210
- !ro(this.peek() || 0)) ? (this.bump(), "<") : null;
3262
+ !oo(this.peek() || 0)) ? (this.bump(), "<") : null;
3211
3263
  }, e.prototype.tryParseQuote = function(t) {
3212
3264
  if (this.isEOF() || this.char() !== 39)
3213
3265
  return null;
@@ -3241,12 +3293,12 @@ var to = (
3241
3293
  r.push(n);
3242
3294
  this.bump();
3243
3295
  }
3244
- return er.apply(void 0, r);
3296
+ return tr.apply(void 0, r);
3245
3297
  }, e.prototype.tryParseUnquoted = function(t, r) {
3246
3298
  if (this.isEOF())
3247
3299
  return null;
3248
3300
  var n = this.char();
3249
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), er(n));
3301
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), tr(n));
3250
3302
  }, e.prototype.parseArgument = function(t, r) {
3251
3303
  var n = this.clonePosition();
3252
3304
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3275,15 +3327,15 @@ var to = (
3275
3327
  return this.error(A.MALFORMED_ARGUMENT, H(n, this.clonePosition()));
3276
3328
  }
3277
3329
  }, e.prototype.parseIdentifierIfPossible = function() {
3278
- var t = this.clonePosition(), r = this.offset(), n = tr(this.message, r), i = r + n.length;
3330
+ var t = this.clonePosition(), r = this.offset(), n = rr(this.message, r), i = r + n.length;
3279
3331
  this.bumpTo(i);
3280
- var o = this.clonePosition(), s = H(t, o);
3281
- return { value: n, location: s };
3332
+ var o = this.clonePosition(), a = H(t, o);
3333
+ return { value: n, location: a };
3282
3334
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3283
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, f = this.clonePosition();
3284
- switch (a) {
3335
+ var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, f = this.clonePosition();
3336
+ switch (s) {
3285
3337
  case "":
3286
- return this.error(A.EXPECT_ARGUMENT_TYPE, H(s, f));
3338
+ return this.error(A.EXPECT_ARGUMENT_TYPE, H(a, f));
3287
3339
  case "number":
3288
3340
  case "date":
3289
3341
  case "time": {
@@ -3294,7 +3346,7 @@ var to = (
3294
3346
  var c = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
3295
3347
  if (d.err)
3296
3348
  return d;
3297
- var p = eo(d.val);
3349
+ var p = no(d.val);
3298
3350
  if (p.length === 0)
3299
3351
  return this.error(A.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
3300
3352
  var _ = H(c, this.clonePosition());
@@ -3304,9 +3356,9 @@ var to = (
3304
3356
  if (O.err)
3305
3357
  return O;
3306
3358
  var B = H(i, this.clonePosition());
3307
- if (h && Tr(h?.style, "::", 0)) {
3308
- var ee = Ki(h.style.slice(2));
3309
- if (a === "number") {
3359
+ if (h && Hr(h?.style, "::", 0)) {
3360
+ var ee = ro(h.style.slice(2));
3361
+ if (s === "number") {
3310
3362
  var d = this.parseNumberSkeletonFromString(ee, h.styleLocation);
3311
3363
  return d.err ? d : {
3312
3364
  val: { type: D.number, value: n, location: B, style: d.val },
@@ -3316,13 +3368,13 @@ var to = (
3316
3368
  if (ee.length === 0)
3317
3369
  return this.error(A.EXPECT_DATE_TIME_SKELETON, B);
3318
3370
  var de = ee;
3319
- this.locale && (de = Gi(ee, this.locale));
3371
+ this.locale && (de = ki(ee, this.locale));
3320
3372
  var p = {
3321
3373
  type: Ve.dateTime,
3322
3374
  pattern: de,
3323
3375
  location: h.styleLocation,
3324
- parsedOptions: this.shouldParseSkeletons ? Li(de) : {}
3325
- }, ie = a === "date" ? D.date : D.time;
3376
+ parsedOptions: this.shouldParseSkeletons ? Ri(de) : {}
3377
+ }, ie = s === "date" ? D.date : D.time;
3326
3378
  return {
3327
3379
  val: { type: ie, value: n, location: B, style: p },
3328
3380
  err: null
@@ -3331,7 +3383,7 @@ var to = (
3331
3383
  }
3332
3384
  return {
3333
3385
  val: {
3334
- type: a === "number" ? D.number : a === "date" ? D.date : D.time,
3386
+ type: s === "number" ? D.number : s === "date" ? D.date : D.time,
3335
3387
  value: n,
3336
3388
  location: B,
3337
3389
  style: (o = h?.style) !== null && o !== void 0 ? o : null
@@ -3347,7 +3399,7 @@ var to = (
3347
3399
  return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, H(M, P({}, M)));
3348
3400
  this.bumpSpace();
3349
3401
  var $ = this.parseIdentifierIfPossible(), Z = 0;
3350
- if (a !== "select" && $.value === "offset") {
3402
+ if (s !== "select" && $.value === "offset") {
3351
3403
  if (!this.bumpIf(":"))
3352
3404
  return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
3353
3405
  this.bumpSpace();
@@ -3356,18 +3408,18 @@ var to = (
3356
3408
  return d;
3357
3409
  this.bumpSpace(), $ = this.parseIdentifierIfPossible(), Z = d.val;
3358
3410
  }
3359
- var le = this.tryParsePluralOrSelectOptions(t, a, r, $);
3411
+ var le = this.tryParsePluralOrSelectOptions(t, s, r, $);
3360
3412
  if (le.err)
3361
3413
  return le;
3362
3414
  var O = this.tryParseArgumentClose(i);
3363
3415
  if (O.err)
3364
3416
  return O;
3365
3417
  var be = H(i, this.clonePosition());
3366
- return a === "select" ? {
3418
+ return s === "select" ? {
3367
3419
  val: {
3368
3420
  type: D.select,
3369
3421
  value: n,
3370
- options: Sr(le.val),
3422
+ options: Br(le.val),
3371
3423
  location: be
3372
3424
  },
3373
3425
  err: null
@@ -3375,16 +3427,16 @@ var to = (
3375
3427
  val: {
3376
3428
  type: D.plural,
3377
3429
  value: n,
3378
- options: Sr(le.val),
3430
+ options: Br(le.val),
3379
3431
  offset: Z,
3380
- pluralType: a === "plural" ? "cardinal" : "ordinal",
3432
+ pluralType: s === "plural" ? "cardinal" : "ordinal",
3381
3433
  location: be
3382
3434
  },
3383
3435
  err: null
3384
3436
  };
3385
3437
  }
3386
3438
  default:
3387
- return this.error(A.INVALID_ARGUMENT_TYPE, H(s, f));
3439
+ return this.error(A.INVALID_ARGUMENT_TYPE, H(a, f));
3388
3440
  }
3389
3441
  }, e.prototype.tryParseArgumentClose = function(t) {
3390
3442
  return this.isEOF() || this.char() !== 125 ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3426,7 +3478,7 @@ var to = (
3426
3478
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3427
3479
  var n = [];
3428
3480
  try {
3429
- n = Mi(t);
3481
+ n = Fi(t);
3430
3482
  } catch {
3431
3483
  return this.error(A.INVALID_NUMBER_SKELETON, r);
3432
3484
  }
@@ -3435,12 +3487,12 @@ var to = (
3435
3487
  type: Ve.number,
3436
3488
  tokens: n,
3437
3489
  location: r,
3438
- parsedOptions: this.shouldParseSkeletons ? Ui(n) : {}
3490
+ parsedOptions: this.shouldParseSkeletons ? $i(n) : {}
3439
3491
  },
3440
3492
  err: null
3441
3493
  };
3442
3494
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3443
- for (var o, s = !1, a = [], f = /* @__PURE__ */ new Set(), h = i.value, c = i.location; ; ) {
3495
+ for (var o, a = !1, s = [], f = /* @__PURE__ */ new Set(), h = i.value, c = i.location; ; ) {
3444
3496
  if (h.length === 0) {
3445
3497
  var d = this.clonePosition();
3446
3498
  if (r !== "select" && this.bumpIf("=")) {
@@ -3453,7 +3505,7 @@ var to = (
3453
3505
  }
3454
3506
  if (f.has(h))
3455
3507
  return this.error(r === "select" ? A.DUPLICATE_SELECT_ARGUMENT_SELECTOR : A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3456
- h === "other" && (s = !0), this.bumpSpace();
3508
+ h === "other" && (a = !0), this.bumpSpace();
3457
3509
  var _ = this.clonePosition();
3458
3510
  if (!this.bumpIf("{"))
3459
3511
  return this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
@@ -3463,7 +3515,7 @@ var to = (
3463
3515
  var B = this.tryParseArgumentClose(_);
3464
3516
  if (B.err)
3465
3517
  return B;
3466
- a.push([
3518
+ s.push([
3467
3519
  h,
3468
3520
  {
3469
3521
  value: O.val,
@@ -3471,19 +3523,19 @@ var to = (
3471
3523
  }
3472
3524
  ]), f.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, c = o.location;
3473
3525
  }
3474
- return a.length === 0 ? this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR : A.EXPECT_PLURAL_ARGUMENT_SELECTOR, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(A.MISSING_OTHER_CLAUSE, H(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3526
+ return s.length === 0 ? this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR : A.EXPECT_PLURAL_ARGUMENT_SELECTOR, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(A.MISSING_OTHER_CLAUSE, H(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3475
3527
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3476
3528
  var n = 1, i = this.clonePosition();
3477
3529
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3478
- for (var o = !1, s = 0; !this.isEOF(); ) {
3479
- var a = this.char();
3480
- if (a >= 48 && a <= 57)
3481
- o = !0, s = s * 10 + (a - 48), this.bump();
3530
+ for (var o = !1, a = 0; !this.isEOF(); ) {
3531
+ var s = this.char();
3532
+ if (s >= 48 && s <= 57)
3533
+ o = !0, a = a * 10 + (s - 48), this.bump();
3482
3534
  else
3483
3535
  break;
3484
3536
  }
3485
3537
  var f = H(i, this.clonePosition());
3486
- return o ? (s *= n, Qi(s) ? { val: s, err: null } : this.error(r, f)) : this.error(t, f);
3538
+ return o ? (a *= n, eo(a) ? { val: a, err: null } : this.error(r, f)) : this.error(t, f);
3487
3539
  }, e.prototype.offset = function() {
3488
3540
  return this.position.offset;
3489
3541
  }, e.prototype.isEOF = function() {
@@ -3498,7 +3550,7 @@ var to = (
3498
3550
  var t = this.position.offset;
3499
3551
  if (t >= this.message.length)
3500
3552
  throw Error("out of bound");
3501
- var r = un(this.message, t);
3553
+ var r = cn(this.message, t);
3502
3554
  if (r === void 0)
3503
3555
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3504
3556
  return r;
@@ -3517,7 +3569,7 @@ var to = (
3517
3569
  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);
3518
3570
  }
3519
3571
  }, e.prototype.bumpIf = function(t) {
3520
- if (Tr(this.message, t, this.offset())) {
3572
+ if (Hr(this.message, t, this.offset())) {
3521
3573
  for (var r = 0; r < t.length; r++)
3522
3574
  this.bump();
3523
3575
  return !0;
@@ -3539,7 +3591,7 @@ var to = (
3539
3591
  break;
3540
3592
  }
3541
3593
  }, e.prototype.bumpSpace = function() {
3542
- for (; !this.isEOF() && hn(this.char()); )
3594
+ for (; !this.isEOF() && mn(this.char()); )
3543
3595
  this.bump();
3544
3596
  }, e.prototype.peek = function() {
3545
3597
  if (this.isEOF())
@@ -3549,37 +3601,38 @@ var to = (
3549
3601
  }, e;
3550
3602
  }()
3551
3603
  );
3552
- function rr(e) {
3604
+ function nr(e) {
3553
3605
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3554
3606
  }
3555
- function ro(e) {
3556
- return rr(e) || e === 47;
3607
+ function oo(e) {
3608
+ return nr(e) || e === 47;
3557
3609
  }
3558
- function no(e) {
3610
+ function so(e) {
3559
3611
  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;
3560
3612
  }
3561
- function hn(e) {
3613
+ function mn(e) {
3562
3614
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3563
3615
  }
3564
- function io(e) {
3616
+ function ao(e) {
3565
3617
  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;
3566
3618
  }
3567
- function nr(e) {
3619
+ function ir(e) {
3568
3620
  e.forEach(function(t) {
3569
- if (delete t.location, Kr(t) || en(t))
3621
+ if (delete t.location, nn(t) || on(t))
3570
3622
  for (var r in t.options)
3571
- delete t.options[r].location, nr(t.options[r].value);
3572
- else Jr(t) && rn(t.style) || (Qr(t) || Yr(t)) && Yt(t.style) ? delete t.style.location : tn(t) && nr(t.children);
3623
+ delete t.options[r].location, ir(t.options[r].value);
3624
+ else
3625
+ en(t) && an(t.style) || (tn(t) || rn(t)) && Kt(t.style) ? delete t.style.location : sn(t) && ir(t.children);
3573
3626
  });
3574
3627
  }
3575
- function oo(e, t) {
3628
+ function uo(e, t) {
3576
3629
  t === void 0 && (t = {}), t = P({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3577
- var r = new to(e, t).parse();
3630
+ var r = new io(e, t).parse();
3578
3631
  if (r.err) {
3579
3632
  var n = SyntaxError(A[r.err.kind]);
3580
3633
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3581
3634
  }
3582
- return t?.captureLocation || nr(r.val), r.val;
3635
+ return t?.captureLocation || ir(r.val), r.val;
3583
3636
  }
3584
3637
  var Xe;
3585
3638
  (function(e) {
@@ -3597,7 +3650,7 @@ var At = (
3597
3650
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3598
3651
  }, t;
3599
3652
  }(Error)
3600
- ), Hr = (
3653
+ ), Cr = (
3601
3654
  /** @class */
3602
3655
  function(e) {
3603
3656
  xe(t, e);
@@ -3606,7 +3659,7 @@ var At = (
3606
3659
  }
3607
3660
  return t;
3608
3661
  }(At)
3609
- ), so = (
3662
+ ), lo = (
3610
3663
  /** @class */
3611
3664
  function(e) {
3612
3665
  xe(t, e);
@@ -3615,7 +3668,7 @@ var At = (
3615
3668
  }
3616
3669
  return t;
3617
3670
  }(At)
3618
- ), ao = (
3671
+ ), ho = (
3619
3672
  /** @class */
3620
3673
  function(e) {
3621
3674
  xe(t, e);
@@ -3628,34 +3681,34 @@ var At = (
3628
3681
  (function(e) {
3629
3682
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3630
3683
  })(K || (K = {}));
3631
- function uo(e) {
3684
+ function fo(e) {
3632
3685
  return e.length < 2 ? e : e.reduce(function(t, r) {
3633
3686
  var n = t[t.length - 1];
3634
3687
  return !n || n.type !== K.literal || r.type !== K.literal ? t.push(r) : n.value += r.value, t;
3635
3688
  }, []);
3636
3689
  }
3637
- function lo(e) {
3690
+ function co(e) {
3638
3691
  return typeof e == "function";
3639
3692
  }
3640
- function yt(e, t, r, n, i, o, s) {
3641
- if (e.length === 1 && Er(e[0]))
3693
+ function yt(e, t, r, n, i, o, a) {
3694
+ if (e.length === 1 && wr(e[0]))
3642
3695
  return [
3643
3696
  {
3644
3697
  type: K.literal,
3645
3698
  value: e[0].value
3646
3699
  }
3647
3700
  ];
3648
- for (var a = [], f = 0, h = e; f < h.length; f++) {
3701
+ for (var s = [], f = 0, h = e; f < h.length; f++) {
3649
3702
  var c = h[f];
3650
- if (Er(c)) {
3651
- a.push({
3703
+ if (wr(c)) {
3704
+ s.push({
3652
3705
  type: K.literal,
3653
3706
  value: c.value
3654
3707
  });
3655
3708
  continue;
3656
3709
  }
3657
- if (Oi(c)) {
3658
- typeof o == "number" && a.push({
3710
+ if (Ni(c)) {
3711
+ typeof o == "number" && s.push({
3659
3712
  type: K.literal,
3660
3713
  value: r.getNumberFormat(t).format(o)
3661
3714
  });
@@ -3663,89 +3716,89 @@ function yt(e, t, r, n, i, o, s) {
3663
3716
  }
3664
3717
  var d = c.value;
3665
3718
  if (!(i && d in i))
3666
- throw new ao(d, s);
3719
+ throw new ho(d, a);
3667
3720
  var p = i[d];
3668
- if (Ci(c)) {
3669
- (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), a.push({
3721
+ if (Li(c)) {
3722
+ (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), s.push({
3670
3723
  type: typeof p == "string" ? K.literal : K.object,
3671
3724
  value: p
3672
3725
  });
3673
3726
  continue;
3674
3727
  }
3675
- if (Qr(c)) {
3676
- var _ = typeof c.style == "string" ? n.date[c.style] : Yt(c.style) ? c.style.parsedOptions : void 0;
3677
- a.push({
3728
+ if (tn(c)) {
3729
+ var _ = typeof c.style == "string" ? n.date[c.style] : Kt(c.style) ? c.style.parsedOptions : void 0;
3730
+ s.push({
3678
3731
  type: K.literal,
3679
3732
  value: r.getDateTimeFormat(t, _).format(p)
3680
3733
  });
3681
3734
  continue;
3682
3735
  }
3683
- if (Yr(c)) {
3684
- var _ = typeof c.style == "string" ? n.time[c.style] : Yt(c.style) ? c.style.parsedOptions : n.time.medium;
3685
- a.push({
3736
+ if (rn(c)) {
3737
+ var _ = typeof c.style == "string" ? n.time[c.style] : Kt(c.style) ? c.style.parsedOptions : n.time.medium;
3738
+ s.push({
3686
3739
  type: K.literal,
3687
3740
  value: r.getDateTimeFormat(t, _).format(p)
3688
3741
  });
3689
3742
  continue;
3690
3743
  }
3691
- if (Jr(c)) {
3692
- var _ = typeof c.style == "string" ? n.number[c.style] : rn(c.style) ? c.style.parsedOptions : void 0;
3693
- _ && _.scale && (p = p * (_.scale || 1)), a.push({
3744
+ if (en(c)) {
3745
+ var _ = typeof c.style == "string" ? n.number[c.style] : an(c.style) ? c.style.parsedOptions : void 0;
3746
+ _ && _.scale && (p = p * (_.scale || 1)), s.push({
3694
3747
  type: K.literal,
3695
3748
  value: r.getNumberFormat(t, _).format(p)
3696
3749
  });
3697
3750
  continue;
3698
3751
  }
3699
- if (tn(c)) {
3752
+ if (sn(c)) {
3700
3753
  var O = c.children, B = c.value, ee = i[B];
3701
- if (!lo(ee))
3702
- throw new so(B, "function", s);
3754
+ if (!co(ee))
3755
+ throw new lo(B, "function", a);
3703
3756
  var de = yt(O, t, r, n, i, o), ie = ee(de.map(function(Z) {
3704
3757
  return Z.value;
3705
3758
  }));
3706
- Array.isArray(ie) || (ie = [ie]), a.push.apply(a, ie.map(function(Z) {
3759
+ Array.isArray(ie) || (ie = [ie]), s.push.apply(s, ie.map(function(Z) {
3707
3760
  return {
3708
3761
  type: typeof Z == "string" ? K.literal : K.object,
3709
3762
  value: Z
3710
3763
  };
3711
3764
  }));
3712
3765
  }
3713
- if (Kr(c)) {
3766
+ if (nn(c)) {
3714
3767
  var M = c.options[p] || c.options.other;
3715
3768
  if (!M)
3716
- throw new Hr(c.value, p, Object.keys(c.options), s);
3717
- a.push.apply(a, yt(M.value, t, r, n, i));
3769
+ throw new Cr(c.value, p, Object.keys(c.options), a);
3770
+ s.push.apply(s, yt(M.value, t, r, n, i));
3718
3771
  continue;
3719
3772
  }
3720
- if (en(c)) {
3773
+ if (on(c)) {
3721
3774
  var M = c.options["=".concat(p)];
3722
3775
  if (!M) {
3723
3776
  if (!Intl.PluralRules)
3724
3777
  throw new At(`Intl.PluralRules is not available in this environment.
3725
3778
  Try polyfilling it using "@formatjs/intl-pluralrules"
3726
- `, Xe.MISSING_INTL_API, s);
3779
+ `, Xe.MISSING_INTL_API, a);
3727
3780
  var $ = r.getPluralRules(t, { type: c.pluralType }).select(p - (c.offset || 0));
3728
3781
  M = c.options[$] || c.options.other;
3729
3782
  }
3730
3783
  if (!M)
3731
- throw new Hr(c.value, p, Object.keys(c.options), s);
3732
- a.push.apply(a, yt(M.value, t, r, n, i, p - (c.offset || 0)));
3784
+ throw new Cr(c.value, p, Object.keys(c.options), a);
3785
+ s.push.apply(s, yt(M.value, t, r, n, i, p - (c.offset || 0)));
3733
3786
  continue;
3734
3787
  }
3735
3788
  }
3736
- return uo(a);
3789
+ return fo(s);
3737
3790
  }
3738
- function ho(e, t) {
3791
+ function mo(e, t) {
3739
3792
  return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3740
3793
  return r[n] = P(P({}, e[n]), t[n] || {}), r;
3741
3794
  }, {})) : e;
3742
3795
  }
3743
- function fo(e, t) {
3796
+ function po(e, t) {
3744
3797
  return t ? Object.keys(e).reduce(function(r, n) {
3745
- return r[n] = ho(e[n], t[n]), r;
3798
+ return r[n] = mo(e[n], t[n]), r;
3746
3799
  }, P({}, e)) : e;
3747
3800
  }
3748
- function Ut(e) {
3801
+ function Gt(e) {
3749
3802
  return {
3750
3803
  create: function() {
3751
3804
  return {
@@ -3759,39 +3812,39 @@ function Ut(e) {
3759
3812
  }
3760
3813
  };
3761
3814
  }
3762
- function co(e) {
3815
+ function bo(e) {
3763
3816
  return e === void 0 && (e = {
3764
3817
  number: {},
3765
3818
  dateTime: {},
3766
3819
  pluralRules: {}
3767
3820
  }), {
3768
- getNumberFormat: Rt(function() {
3821
+ getNumberFormat: Dt(function() {
3769
3822
  for (var t, r = [], n = 0; n < arguments.length; n++)
3770
3823
  r[n] = arguments[n];
3771
3824
  return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], r, !1)))();
3772
3825
  }, {
3773
- cache: Ut(e.number),
3774
- strategy: Dt.variadic
3826
+ cache: Gt(e.number),
3827
+ strategy: Ft.variadic
3775
3828
  }),
3776
- getDateTimeFormat: Rt(function() {
3829
+ getDateTimeFormat: Dt(function() {
3777
3830
  for (var t, r = [], n = 0; n < arguments.length; n++)
3778
3831
  r[n] = arguments[n];
3779
3832
  return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], r, !1)))();
3780
3833
  }, {
3781
- cache: Ut(e.dateTime),
3782
- strategy: Dt.variadic
3834
+ cache: Gt(e.dateTime),
3835
+ strategy: Ft.variadic
3783
3836
  }),
3784
- getPluralRules: Rt(function() {
3837
+ getPluralRules: Dt(function() {
3785
3838
  for (var t, r = [], n = 0; n < arguments.length; n++)
3786
3839
  r[n] = arguments[n];
3787
3840
  return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], r, !1)))();
3788
3841
  }, {
3789
- cache: Ut(e.pluralRules),
3790
- strategy: Dt.variadic
3842
+ cache: Gt(e.pluralRules),
3843
+ strategy: Ft.variadic
3791
3844
  })
3792
3845
  };
3793
3846
  }
3794
- var mo = (
3847
+ var go = (
3795
3848
  /** @class */
3796
3849
  function() {
3797
3850
  function e(t, r, n, i) {
@@ -3821,15 +3874,15 @@ var mo = (
3821
3874
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3822
3875
  if (this.message = t, !e.__parse)
3823
3876
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3824
- var s = i || {};
3825
- s.formatters;
3826
- var a = Vn(s, ["formatters"]);
3827
- this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
3877
+ var a = i || {};
3878
+ a.formatters;
3879
+ var s = qn(a, ["formatters"]);
3880
+ this.ast = e.__parse(t, P(P({}, s), { locale: this.resolvedLocale }));
3828
3881
  } else
3829
3882
  this.ast = t;
3830
3883
  if (!Array.isArray(this.ast))
3831
3884
  throw new TypeError("A message must be provided as a String or AST.");
3832
- this.formats = fo(e.formats, n), this.formatters = i && i.formatters || co(this.formatterCache);
3885
+ this.formats = po(e.formats, n), this.formatters = i && i.formatters || bo(this.formatterCache);
3833
3886
  }
3834
3887
  return Object.defineProperty(e, "defaultLocale", {
3835
3888
  get: function() {
@@ -3842,7 +3895,7 @@ var mo = (
3842
3895
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3843
3896
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3844
3897
  }
3845
- }, e.__parse = oo, e.formats = {
3898
+ }, e.__parse = uo, e.formats = {
3846
3899
  number: {
3847
3900
  integer: {
3848
3901
  maximumFractionDigits: 0
@@ -3903,7 +3956,7 @@ var mo = (
3903
3956
  }, e;
3904
3957
  }()
3905
3958
  );
3906
- function po(e, t) {
3959
+ function vo(e, t) {
3907
3960
  if (t == null)
3908
3961
  return;
3909
3962
  if (t in e)
@@ -3924,92 +3977,92 @@ function po(e, t) {
3924
3977
  n = void 0;
3925
3978
  return n;
3926
3979
  }
3927
- const Se = {}, bo = (e, t, r) => r && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = r), r), fn = (e, t) => {
3980
+ const Se = {}, yo = (e, t, r) => r && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = r), r), pn = (e, t) => {
3928
3981
  if (t == null)
3929
3982
  return;
3930
3983
  if (t in Se && e in Se[t])
3931
3984
  return Se[t][e];
3932
3985
  const r = Ht(t);
3933
3986
  for (let n = 0; n < r.length; n++) {
3934
- const i = r[n], o = vo(i, e);
3987
+ const i = r[n], o = _o(i, e);
3935
3988
  if (o)
3936
- return bo(e, t, o);
3989
+ return yo(e, t, o);
3937
3990
  }
3938
3991
  };
3939
- let ar;
3992
+ let hr;
3940
3993
  const qe = St({});
3941
- function go(e) {
3942
- return ar[e] || null;
3994
+ function Eo(e) {
3995
+ return hr[e] || null;
3943
3996
  }
3944
- function cn(e) {
3945
- return e in ar;
3997
+ function bn(e) {
3998
+ return e in hr;
3946
3999
  }
3947
- function vo(e, t) {
3948
- if (!cn(e))
4000
+ function _o(e, t) {
4001
+ if (!bn(e))
3949
4002
  return null;
3950
- const r = go(e);
3951
- return po(r, t);
4003
+ const r = Eo(e);
4004
+ return vo(r, t);
3952
4005
  }
3953
- function yo(e) {
4006
+ function xo(e) {
3954
4007
  if (e == null)
3955
4008
  return;
3956
4009
  const t = Ht(e);
3957
4010
  for (let r = 0; r < t.length; r++) {
3958
4011
  const n = t[r];
3959
- if (cn(n))
4012
+ if (bn(n))
3960
4013
  return n;
3961
4014
  }
3962
4015
  }
3963
- function dn(e, ...t) {
3964
- delete Se[e], qe.update((r) => (r[e] = xi.all([r[e] || {}, ...t]), r));
4016
+ function gn(e, ...t) {
4017
+ delete Se[e], qe.update((r) => (r[e] = Ai.all([r[e] || {}, ...t]), r));
3965
4018
  }
3966
4019
  We(
3967
4020
  [qe],
3968
4021
  ([e]) => Object.keys(e)
3969
4022
  );
3970
- qe.subscribe((e) => ar = e);
4023
+ qe.subscribe((e) => hr = e);
3971
4024
  const Et = {};
3972
- function Eo(e, t) {
4025
+ function wo(e, t) {
3973
4026
  Et[e].delete(t), Et[e].size === 0 && delete Et[e];
3974
4027
  }
3975
- function mn(e) {
4028
+ function vn(e) {
3976
4029
  return Et[e];
3977
4030
  }
3978
- function _o(e) {
4031
+ function To(e) {
3979
4032
  return Ht(e).map((t) => {
3980
- const r = mn(t);
4033
+ const r = vn(t);
3981
4034
  return [t, r ? [...r] : []];
3982
4035
  }).filter(([, t]) => t.length > 0);
3983
4036
  }
3984
- function ir(e) {
4037
+ function or(e) {
3985
4038
  return e == null ? !1 : Ht(e).some(
3986
4039
  (t) => {
3987
4040
  var r;
3988
- return (r = mn(t)) == null ? void 0 : r.size;
4041
+ return (r = vn(t)) == null ? void 0 : r.size;
3989
4042
  }
3990
4043
  );
3991
4044
  }
3992
- function xo(e, t) {
4045
+ function So(e, t) {
3993
4046
  return Promise.all(
3994
- t.map((n) => (Eo(e, n), n().then((i) => i.default || i)))
3995
- ).then((n) => dn(e, ...n));
4047
+ t.map((n) => (wo(e, n), n().then((i) => i.default || i)))
4048
+ ).then((n) => gn(e, ...n));
3996
4049
  }
3997
4050
  const rt = {};
3998
- function pn(e) {
3999
- if (!ir(e))
4051
+ function yn(e) {
4052
+ if (!or(e))
4000
4053
  return e in rt ? rt[e] : Promise.resolve();
4001
- const t = _o(e);
4054
+ const t = To(e);
4002
4055
  return rt[e] = Promise.all(
4003
4056
  t.map(
4004
- ([r, n]) => xo(r, n)
4057
+ ([r, n]) => So(r, n)
4005
4058
  )
4006
4059
  ).then(() => {
4007
- if (ir(e))
4008
- return pn(e);
4060
+ if (or(e))
4061
+ return yn(e);
4009
4062
  delete rt[e];
4010
4063
  }), rt[e];
4011
4064
  }
4012
- const wo = {
4065
+ const Ao = {
4013
4066
  number: {
4014
4067
  scientific: { notation: "scientific" },
4015
4068
  engineering: { notation: "engineering" },
@@ -4038,57 +4091,57 @@ const wo = {
4038
4091
  timeZoneName: "short"
4039
4092
  }
4040
4093
  }
4041
- }, To = {
4094
+ }, Ho = {
4042
4095
  fallbackLocale: null,
4043
4096
  loadingDelay: 200,
4044
- formats: wo,
4097
+ formats: Ao,
4045
4098
  warnOnMissingMessages: !0,
4046
4099
  handleMissingMessage: void 0,
4047
4100
  ignoreTag: !0
4048
- }, So = To;
4101
+ }, Bo = Ho;
4049
4102
  function ze() {
4050
- return So;
4103
+ return Bo;
4051
4104
  }
4052
- const Gt = St(!1);
4053
- var Ao = Object.defineProperty, Ho = Object.defineProperties, Bo = Object.getOwnPropertyDescriptors, Br = Object.getOwnPropertySymbols, Po = Object.prototype.hasOwnProperty, Co = Object.prototype.propertyIsEnumerable, Pr = (e, t, r) => t in e ? Ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Oo = (e, t) => {
4105
+ const jt = St(!1);
4106
+ var Po = Object.defineProperty, Co = Object.defineProperties, Oo = Object.getOwnPropertyDescriptors, Or = Object.getOwnPropertySymbols, Io = Object.prototype.hasOwnProperty, Lo = Object.prototype.propertyIsEnumerable, Ir = (e, t, r) => t in e ? Po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, No = (e, t) => {
4054
4107
  for (var r in t || (t = {}))
4055
- Po.call(t, r) && Pr(e, r, t[r]);
4056
- if (Br)
4057
- for (var r of Br(t))
4058
- Co.call(t, r) && Pr(e, r, t[r]);
4108
+ Io.call(t, r) && Ir(e, r, t[r]);
4109
+ if (Or)
4110
+ for (var r of Or(t))
4111
+ Lo.call(t, r) && Ir(e, r, t[r]);
4059
4112
  return e;
4060
- }, Io = (e, t) => Ho(e, Bo(t));
4061
- let or;
4113
+ }, Mo = (e, t) => Co(e, Oo(t));
4114
+ let sr;
4062
4115
  const _t = St(null);
4063
- function Cr(e) {
4116
+ function Lr(e) {
4064
4117
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4065
4118
  }
4066
4119
  function Ht(e, t = ze().fallbackLocale) {
4067
- const r = Cr(e);
4068
- return t ? [.../* @__PURE__ */ new Set([...r, ...Cr(t)])] : r;
4120
+ const r = Lr(e);
4121
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Lr(t)])] : r;
4069
4122
  }
4070
4123
  function Le() {
4071
- return or ?? void 0;
4124
+ return sr ?? void 0;
4072
4125
  }
4073
4126
  _t.subscribe((e) => {
4074
- or = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4127
+ sr = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4075
4128
  });
4076
- const Lo = (e) => {
4077
- if (e && yo(e) && ir(e)) {
4129
+ const Ro = (e) => {
4130
+ if (e && xo(e) && or(e)) {
4078
4131
  const { loadingDelay: t } = ze();
4079
4132
  let r;
4080
4133
  return typeof window < "u" && Le() != null && t ? r = window.setTimeout(
4081
- () => Gt.set(!0),
4134
+ () => jt.set(!0),
4082
4135
  t
4083
- ) : Gt.set(!0), pn(e).then(() => {
4136
+ ) : jt.set(!0), yn(e).then(() => {
4084
4137
  _t.set(e);
4085
4138
  }).finally(() => {
4086
- clearTimeout(r), Gt.set(!1);
4139
+ clearTimeout(r), jt.set(!1);
4087
4140
  });
4088
4141
  }
4089
4142
  return _t.set(e);
4090
- }, Ae = Io(Oo({}, _t), {
4091
- set: Lo
4143
+ }, Ae = Mo(No({}, _t), {
4144
+ set: Ro
4092
4145
  }), Bt = (e) => {
4093
4146
  const t = /* @__PURE__ */ Object.create(null);
4094
4147
  return (n) => {
@@ -4096,20 +4149,20 @@ const Lo = (e) => {
4096
4149
  return i in t ? t[i] : t[i] = e(n);
4097
4150
  };
4098
4151
  };
4099
- var No = Object.defineProperty, xt = Object.getOwnPropertySymbols, bn = Object.prototype.hasOwnProperty, gn = Object.prototype.propertyIsEnumerable, Or = (e, t, r) => t in e ? No(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ur = (e, t) => {
4152
+ var Do = Object.defineProperty, xt = Object.getOwnPropertySymbols, En = Object.prototype.hasOwnProperty, _n = Object.prototype.propertyIsEnumerable, Nr = (e, t, r) => t in e ? Do(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fr = (e, t) => {
4100
4153
  for (var r in t || (t = {}))
4101
- bn.call(t, r) && Or(e, r, t[r]);
4154
+ En.call(t, r) && Nr(e, r, t[r]);
4102
4155
  if (xt)
4103
4156
  for (var r of xt(t))
4104
- gn.call(t, r) && Or(e, r, t[r]);
4157
+ _n.call(t, r) && Nr(e, r, t[r]);
4105
4158
  return e;
4106
4159
  }, Ze = (e, t) => {
4107
4160
  var r = {};
4108
4161
  for (var n in e)
4109
- bn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4162
+ En.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4110
4163
  if (e != null && xt)
4111
4164
  for (var n of xt(e))
4112
- t.indexOf(n) < 0 && gn.call(e, n) && (r[n] = e[n]);
4165
+ t.indexOf(n) < 0 && _n.call(e, n) && (r[n] = e[n]);
4113
4166
  return r;
4114
4167
  };
4115
4168
  const at = (e, t) => {
@@ -4117,21 +4170,21 @@ const at = (e, t) => {
4117
4170
  if (e in r && t in r[e])
4118
4171
  return r[e][t];
4119
4172
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4120
- }, Mo = Bt(
4173
+ }, Fo = Bt(
4121
4174
  (e) => {
4122
4175
  var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
4123
4176
  if (r == null)
4124
4177
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4125
4178
  return n && (i = at("number", n)), new Intl.NumberFormat(r, i);
4126
4179
  }
4127
- ), Ro = Bt(
4180
+ ), Uo = Bt(
4128
4181
  (e) => {
4129
4182
  var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
4130
4183
  if (r == null)
4131
4184
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4132
4185
  return n ? i = at("date", n) : Object.keys(i).length === 0 && (i = at("date", "short")), new Intl.DateTimeFormat(r, i);
4133
4186
  }
4134
- ), Do = Bt(
4187
+ ), Go = Bt(
4135
4188
  (e) => {
4136
4189
  var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
4137
4190
  if (r == null)
@@ -4140,57 +4193,57 @@ const at = (e, t) => {
4140
4193
  );
4141
4194
  return n ? i = at("time", n) : Object.keys(i).length === 0 && (i = at("time", "short")), new Intl.DateTimeFormat(r, i);
4142
4195
  }
4143
- ), Fo = (e = {}) => {
4196
+ ), jo = (e = {}) => {
4144
4197
  var t = e, {
4145
4198
  locale: r = Le()
4146
4199
  } = t, n = Ze(t, [
4147
4200
  "locale"
4148
4201
  ]);
4149
- return Mo(ur({ locale: r }, n));
4150
- }, Uo = (e = {}) => {
4202
+ return Fo(fr({ locale: r }, n));
4203
+ }, $o = (e = {}) => {
4151
4204
  var t = e, {
4152
4205
  locale: r = Le()
4153
4206
  } = t, n = Ze(t, [
4154
4207
  "locale"
4155
4208
  ]);
4156
- return Ro(ur({ locale: r }, n));
4157
- }, Go = (e = {}) => {
4209
+ return Uo(fr({ locale: r }, n));
4210
+ }, ko = (e = {}) => {
4158
4211
  var t = e, {
4159
4212
  locale: r = Le()
4160
4213
  } = t, n = Ze(t, [
4161
4214
  "locale"
4162
4215
  ]);
4163
- return Do(ur({ locale: r }, n));
4164
- }, jo = Bt(
4216
+ return Go(fr({ locale: r }, n));
4217
+ }, Vo = Bt(
4165
4218
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4166
- (e, t = Le()) => new mo(e, t, ze().formats, {
4219
+ (e, t = Le()) => new go(e, t, ze().formats, {
4167
4220
  ignoreTag: ze().ignoreTag
4168
4221
  })
4169
- ), $o = (e, t = {}) => {
4222
+ ), Xo = (e, t = {}) => {
4170
4223
  var r, n, i, o;
4171
- let s = t;
4172
- typeof e == "object" && (s = e, e = s.id);
4224
+ let a = t;
4225
+ typeof e == "object" && (a = e, e = a.id);
4173
4226
  const {
4174
- values: a,
4227
+ values: s,
4175
4228
  locale: f = Le(),
4176
4229
  default: h
4177
- } = s;
4230
+ } = a;
4178
4231
  if (f == null)
4179
4232
  throw new Error(
4180
4233
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4181
4234
  );
4182
- let c = fn(e, f);
4235
+ let c = pn(e, f);
4183
4236
  if (!c)
4184
4237
  c = (o = (i = (n = (r = ze()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
4185
4238
  else if (typeof c != "string")
4186
4239
  return console.warn(
4187
4240
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4188
4241
  ), c;
4189
- if (!a)
4242
+ if (!s)
4190
4243
  return c;
4191
4244
  let d = c;
4192
4245
  try {
4193
- d = jo(c, f).format(a);
4246
+ d = Vo(c, f).format(s);
4194
4247
  } catch (p) {
4195
4248
  p instanceof Error && console.warn(
4196
4249
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4198,25 +4251,25 @@ const at = (e, t) => {
4198
4251
  );
4199
4252
  }
4200
4253
  return d;
4201
- }, ko = (e, t) => Go(t).format(e), Vo = (e, t) => Uo(t).format(e), Xo = (e, t) => Fo(t).format(e), zo = (e, t = Le()) => fn(e, t), Wo = We([Ae, qe], () => $o);
4202
- We([Ae], () => ko);
4203
- We([Ae], () => Vo);
4204
- We([Ae], () => Xo);
4205
- We([Ae, qe], () => zo);
4206
- window.emWidgets = { topic: ii };
4207
- const bs = (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)), qo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4208
- function Zo({ withLocale: e, translations: t }) {
4254
+ }, zo = (e, t) => ko(t).format(e), Wo = (e, t) => $o(t).format(e), qo = (e, t) => jo(t).format(e), Zo = (e, t = Le()) => pn(e, t), Jo = We([Ae, qe], () => Xo);
4255
+ We([Ae], () => zo);
4256
+ We([Ae], () => Wo);
4257
+ We([Ae], () => qo);
4258
+ We([Ae, qe], () => Zo);
4259
+ window.emWidgets = { topic: ui };
4260
+ const ys = (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)), Qo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4261
+ function Yo({ withLocale: e, translations: t }) {
4209
4262
  Ae.subscribe((r) => {
4210
4263
  r == null && (qe.set(t), Ae.set(e));
4211
4264
  });
4212
4265
  }
4213
- function jt(e, t) {
4214
- dn(e, t);
4266
+ function $t(e, t) {
4267
+ gn(e, t);
4215
4268
  }
4216
- function Ir(e) {
4269
+ function Mr(e) {
4217
4270
  Ae.set(e);
4218
4271
  }
4219
- const Lr = {
4272
+ const Rr = {
4220
4273
  en: {
4221
4274
  500: "500 - Internal server error",
4222
4275
  showMore: "Show more",
@@ -4284,7 +4337,7 @@ const Lr = {
4284
4337
  noTournaments: "No tournaments found"
4285
4338
  }
4286
4339
  };
4287
- var sr = { exports: {} };
4340
+ var ar = { exports: {} };
4288
4341
  /** @license
4289
4342
  * eventsource.js
4290
4343
  * Available under MIT License (MIT)
@@ -4292,11 +4345,11 @@ var sr = { exports: {} };
4292
4345
  */
4293
4346
  (function(e, t) {
4294
4347
  (function(r) {
4295
- var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, f = r.EventSource, h = r.document, c = r.Promise, d = r.fetch, p = r.Response, _ = r.TextDecoder, O = r.TextEncoder, B = r.AbortController;
4348
+ var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, a = r.XDomainRequest, s = r.ActiveXObject, f = r.EventSource, h = r.document, c = r.Promise, d = r.fetch, p = r.Response, _ = r.TextDecoder, O = r.TextEncoder, B = r.AbortController;
4296
4349
  if (typeof window < "u" && typeof h < "u" && !("readyState" in h) && h.body == null && (h.readyState = "loading", window.addEventListener("load", function(u) {
4297
4350
  h.readyState = "complete";
4298
- }, !1)), o == null && a != null && (o = function() {
4299
- return new a("Microsoft.XMLHTTP");
4351
+ }, !1)), o == null && s != null && (o = function() {
4352
+ return new s("Microsoft.XMLHTTP");
4300
4353
  }), Object.create == null && (Object.create = function(u) {
4301
4354
  function b() {
4302
4355
  }
@@ -4606,12 +4659,12 @@ var sr = { exports: {} };
4606
4659
  me.call(this), b = b || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, ft(this, u, b);
4607
4660
  }
4608
4661
  function Ct() {
4609
- return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
4662
+ return o != null && "withCredentials" in o.prototype || a == null ? new o() : new a();
4610
4663
  }
4611
4664
  var Ot = d != null && p != null && "body" in p.prototype;
4612
4665
  function ft(u, b, g) {
4613
4666
  b = String(b);
4614
- var m = !!g.withCredentials, y = g.lastEventIdQueryParameterName || "lastEventId", v = Me(1e3), x = Ke(g.heartbeatTimeout, 45e3), R = "", T = v, C = !1, L = 0, E = g.headers || {}, l = g.Transport, S = Ot && l == null ? void 0 : new $(l != null ? new l() : Ct()), N = l != null && typeof l != "string" ? new l() : S == null ? new He() : new be(), I = void 0, k = 0, q = Ce, Te = "", et = "", G = "", ct = "", Q = se, It = 0, Oe = 0, vn = function(V, j, ae, ue) {
4667
+ var m = !!g.withCredentials, y = g.lastEventIdQueryParameterName || "lastEventId", v = Me(1e3), x = Ke(g.heartbeatTimeout, 45e3), R = "", T = v, C = !1, L = 0, E = g.headers || {}, l = g.Transport, S = Ot && l == null ? void 0 : new $(l != null ? new l() : Ct()), N = l != null && typeof l != "string" ? new l() : S == null ? new He() : new be(), I = void 0, k = 0, q = Ce, Te = "", et = "", G = "", ct = "", Q = se, It = 0, Oe = 0, xn = function(V, j, ae, ue) {
4615
4668
  if (q === W)
4616
4669
  if (V === 200 && ae != null && Ye.test(ae)) {
4617
4670
  q = he, C = Date.now(), T = v, u.readyState = he;
@@ -4631,7 +4684,7 @@ var sr = { exports: {} };
4631
4684
  });
4632
4685
  u.dispatchEvent(Y), we(u, u.onerror, Y), console.error(X);
4633
4686
  }
4634
- }, yn = function(V) {
4687
+ }, wn = function(V) {
4635
4688
  if (q === he) {
4636
4689
  for (var j = -1, ae = 0; ae < V.length; ae += 1) {
4637
4690
  var ue = V.charCodeAt(ae);
@@ -4669,7 +4722,7 @@ var sr = { exports: {} };
4669
4722
  Q === se && (It = X, Q = ve), Q === ve ? ue === 58 && (Oe = X + 1, Q = Qe) : Q === Qe && (Q = pe);
4670
4723
  }
4671
4724
  }
4672
- }, lr = function(V) {
4725
+ }, cr = function(V) {
4673
4726
  if (q === he || q === W) {
4674
4727
  q = Ce, k !== 0 && (i(k), k = 0), k = n(function() {
4675
4728
  tt();
@@ -4682,7 +4735,7 @@ var sr = { exports: {} };
4682
4735
  }, tt = function() {
4683
4736
  if (k = 0, q !== Ce) {
4684
4737
  if (!C && I != null)
4685
- lr(new Error("No activity within " + x + " milliseconds. " + (q === W ? "No response received." : L + " chars received.") + " Reconnecting.")), I != null && (I.abort(), I = void 0);
4738
+ cr(new Error("No activity within " + x + " milliseconds. " + (q === W ? "No response received." : L + " chars received.") + " Reconnecting.")), I != null && (I.abort(), I = void 0);
4686
4739
  else {
4687
4740
  var V = Math.max((C || Date.now()) + x - Date.now(), 1);
4688
4741
  C = !1, k = n(function() {
@@ -4708,7 +4761,7 @@ var sr = { exports: {} };
4708
4761
  for (var ye in X)
4709
4762
  Object.prototype.hasOwnProperty.call(X, ye) && (Y[ye] = X[ye]);
4710
4763
  try {
4711
- I = N.open(S, vn, yn, lr, j, ue, Y);
4764
+ I = N.open(S, xn, wn, cr, j, ue, Y);
4712
4765
  } catch (Ee) {
4713
4766
  throw Lt(), Ee;
4714
4767
  }
@@ -4727,9 +4780,9 @@ var sr = { exports: {} };
4727
4780
  }(function(u) {
4728
4781
  u.EventSourcePolyfill = J, u.NativeEventSource = f, u.EventSource = Re;
4729
4782
  });
4730
- })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : si : globalThis);
4731
- })(sr, sr.exports);
4732
- var Jo = sr.exports;
4783
+ })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : hi : globalThis);
4784
+ })(ar, ar.exports);
4785
+ var Ko = ar.exports;
4733
4786
  if (typeof window < "u") {
4734
4787
  let e = function(t) {
4735
4788
  return function(...r) {
@@ -4742,7 +4795,7 @@ if (typeof window < "u") {
4742
4795
  }
4743
4796
  };
4744
4797
  };
4745
- customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-C6PNRuAN.js").then(({ default: t }) => {
4798
+ customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-D87dskAM.js").then(({ default: t }) => {
4746
4799
  !customElements.get("casino-tournaments-filter-controller") && customElements.define("casino-tournaments-filter-controller", t.element);
4747
4800
  });
4748
4801
  }
@@ -4758,75 +4811,75 @@ if (typeof window < "u") {
4758
4811
  }
4759
4812
  };
4760
4813
  };
4761
- customElements.define = e(customElements.define), import("./CasinoTournamentsListController-l8AH-AQy.js").then(({ default: t }) => {
4814
+ customElements.define = e(customElements.define), import("./CasinoTournamentsListController-CVKwStEk.js").then(({ default: t }) => {
4762
4815
  !customElements.get("casino-tournaments-list-controller") && customElements.define("casino-tournaments-list-controller", t.element);
4763
4816
  });
4764
4817
  }
4765
- const Nr = (e) => e.length > 0 && e != "false";
4766
- function Qo(e) {
4767
- xn(e, "svelte-v0e19m", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ShowMoreButton{background:var(--emw--color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{min-height:100vh;background:var(--emw--color-contrast, #07072A);overflow-x:hidden}.Tournaments{color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1300px;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}");
4818
+ const Dr = (e) => e.length > 0 && e != "false";
4819
+ function es(e) {
4820
+ An(e, "svelte-v0e19m", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ShowMoreButton{background:var(--emw--color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{min-height:100vh;background:var(--emw--color-contrast, #07072A);overflow-x:hidden}.Tournaments{color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1300px;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}");
4768
4821
  }
4769
- function Yo(e) {
4770
- let t, r, n, i, o, s, a = (
4822
+ function ts(e) {
4823
+ let t, r, n, i, o, a, s = (
4771
4824
  /*filtersLoaded*/
4772
- e[19] && Mr(e)
4825
+ e[19] && Fr(e)
4773
4826
  );
4774
4827
  function f(p, _) {
4775
4828
  return (
4776
4829
  /*tournamentsNumber*/
4777
- p[20] == 0 ? ts : es
4830
+ p[20] == 0 ? is : ns
4778
4831
  );
4779
4832
  }
4780
4833
  let h = f(e), c = h(e), d = !/*allTournamentsShown*/
4781
- e[21] && Rr(e);
4834
+ e[21] && Ur(e);
4782
4835
  return {
4783
4836
  c() {
4784
- t = z("div"), r = z("div"), n = z("div"), a && a.c(), i = $t(), o = z("div"), c.c(), s = $t(), d && d.c(), U(n, "class", "FirstRow"), U(n, "part", "FirstRow"), U(o, "class", "SecondRow"), U(o, "part", "SecondRow"), U(r, "class", "Tournaments"), U(r, "part", "Tournaments"), U(t, "class", "TournamentsWrapper"), U(t, "part", "TournamentsWrapper");
4837
+ t = z("div"), r = z("div"), n = z("div"), s && s.c(), i = kt(), o = z("div"), c.c(), a = kt(), d && d.c(), U(n, "class", "FirstRow"), U(n, "part", "FirstRow"), U(o, "class", "SecondRow"), U(o, "part", "SecondRow"), U(r, "class", "Tournaments"), U(r, "part", "Tournaments"), U(t, "class", "TournamentsWrapper"), U(t, "part", "TournamentsWrapper");
4785
4838
  },
4786
4839
  m(p, _) {
4787
- ce(p, t, _), re(t, r), re(r, n), a && a.m(n, null), re(r, i), re(r, o), c.m(o, null), re(r, s), d && d.m(r, null);
4840
+ ce(p, t, _), re(t, r), re(r, n), s && s.m(n, null), re(r, i), re(r, o), c.m(o, null), re(r, a), d && d.m(r, null);
4788
4841
  },
4789
4842
  p(p, _) {
4790
4843
  /*filtersLoaded*/
4791
- p[19] ? a ? a.p(p, _) : (a = Mr(p), a.c(), a.m(n, null)) : a && (a.d(1), a = null), h === (h = f(p)) && c ? c.p(p, _) : (c.d(1), c = h(p), c && (c.c(), c.m(o, null))), /*allTournamentsShown*/
4792
- p[21] ? d && (d.d(1), d = null) : d ? d.p(p, _) : (d = Rr(p), d.c(), d.m(r, null));
4844
+ p[19] ? s ? s.p(p, _) : (s = Fr(p), s.c(), s.m(n, null)) : s && (s.d(1), s = null), h === (h = f(p)) && c ? c.p(p, _) : (c.d(1), c = h(p), c && (c.c(), c.m(o, null))), /*allTournamentsShown*/
4845
+ p[21] ? d && (d.d(1), d = null) : d ? d.p(p, _) : (d = Ur(p), d.c(), d.m(r, null));
4793
4846
  },
4794
4847
  d(p) {
4795
- p && ne(t), a && a.d(), c.d(), d && d.d();
4848
+ p && ne(t), s && s.d(), c.d(), d && d.d();
4796
4849
  }
4797
4850
  };
4798
4851
  }
4799
- function Ko(e) {
4852
+ function rs(e) {
4800
4853
  let t, r = (
4801
4854
  /*$_*/
4802
4855
  e[22]("500") + ""
4803
- ), n, i, o, s;
4856
+ ), n, i, o, a;
4804
4857
  return {
4805
4858
  c() {
4806
- t = z("p"), n = Ie(r), i = $t(), o = z("p"), s = Ie(
4859
+ t = z("p"), n = Ie(r), i = kt(), o = z("p"), a = Ie(
4807
4860
  /*error*/
4808
4861
  e[17]
4809
4862
  );
4810
4863
  },
4811
- m(a, f) {
4812
- ce(a, t, f), re(t, n), ce(a, i, f), ce(a, o, f), re(o, s);
4864
+ m(s, f) {
4865
+ ce(s, t, f), re(t, n), ce(s, i, f), ce(s, o, f), re(o, a);
4813
4866
  },
4814
- p(a, f) {
4867
+ p(s, f) {
4815
4868
  f[0] & /*$_*/
4816
4869
  4194304 && r !== (r = /*$_*/
4817
- a[22]("500") + "") && it(n, r), f[0] & /*error*/
4870
+ s[22]("500") + "") && it(n, r), f[0] & /*error*/
4818
4871
  131072 && it(
4819
- s,
4872
+ a,
4820
4873
  /*error*/
4821
- a[17]
4874
+ s[17]
4822
4875
  );
4823
4876
  },
4824
- d(a) {
4825
- a && (ne(t), ne(i), ne(o));
4877
+ d(s) {
4878
+ s && (ne(t), ne(i), ne(o));
4826
4879
  }
4827
4880
  };
4828
4881
  }
4829
- function Mr(e) {
4882
+ function Fr(e) {
4830
4883
  let t;
4831
4884
  return {
4832
4885
  c() {
@@ -4845,7 +4898,7 @@ function Mr(e) {
4845
4898
  "translationurl",
4846
4899
  /*translationurl*/
4847
4900
  e[4]
4848
- ), w(t, "filters", os), w(
4901
+ ), w(t, "filters", us), w(
4849
4902
  t,
4850
4903
  "activefilters",
4851
4904
  /*filters*/
@@ -4887,7 +4940,7 @@ function Mr(e) {
4887
4940
  }
4888
4941
  };
4889
4942
  }
4890
- function es(e) {
4943
+ function ns(e) {
4891
4944
  let t;
4892
4945
  return {
4893
4946
  c() {
@@ -5061,31 +5114,31 @@ function es(e) {
5061
5114
  }
5062
5115
  };
5063
5116
  }
5064
- function ts(e) {
5117
+ function is(e) {
5065
5118
  let t;
5066
- function r(o, s) {
5119
+ function r(o, a) {
5067
5120
  return (
5068
5121
  /*isLoading*/
5069
- o[18] ? ns : rs
5122
+ o[18] ? ss : os
5070
5123
  );
5071
5124
  }
5072
5125
  let n = r(e), i = n(e);
5073
5126
  return {
5074
5127
  c() {
5075
- i.c(), t = Sn();
5128
+ i.c(), t = Pn();
5076
5129
  },
5077
- m(o, s) {
5078
- i.m(o, s), ce(o, t, s);
5130
+ m(o, a) {
5131
+ i.m(o, a), ce(o, t, a);
5079
5132
  },
5080
- p(o, s) {
5081
- n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t.parentNode, t)));
5133
+ p(o, a) {
5134
+ n === (n = r(o)) && i ? i.p(o, a) : (i.d(1), i = n(o), i && (i.c(), i.m(t.parentNode, t)));
5082
5135
  },
5083
5136
  d(o) {
5084
5137
  o && ne(t), i.d(o);
5085
5138
  }
5086
5139
  };
5087
5140
  }
5088
- function rs(e) {
5141
+ function os(e) {
5089
5142
  let t, r = (
5090
5143
  /*$_*/
5091
5144
  e[22]("noTournaments") + ""
@@ -5107,7 +5160,7 @@ function rs(e) {
5107
5160
  }
5108
5161
  };
5109
5162
  }
5110
- function ns(e) {
5163
+ function ss(e) {
5111
5164
  let t, r = (
5112
5165
  /*$_*/
5113
5166
  e[22]("loading") + ""
@@ -5129,22 +5182,22 @@ function ns(e) {
5129
5182
  }
5130
5183
  };
5131
5184
  }
5132
- function Rr(e) {
5185
+ function Ur(e) {
5133
5186
  let t, r, n, i = (
5134
5187
  /*$_*/
5135
5188
  e[22]("showMore") + ""
5136
- ), o, s, a;
5189
+ ), o, a, s;
5137
5190
  return {
5138
5191
  c() {
5139
5192
  t = z("div"), r = z("div"), n = z("button"), o = Ie(i), U(n, "class", "ShowMoreButton"), U(n, "part", "ShowMoreButton"), U(n, "title", "Show More"), U(r, "class", "CenterButton"), U(r, "part", "CenterButton"), U(t, "class", "ThirdRow"), U(t, "part", "ThirdRow");
5140
5193
  },
5141
5194
  m(f, h) {
5142
- ce(f, t, h), re(t, r), re(r, n), re(n, o), s || (a = kt(
5195
+ ce(f, t, h), re(t, r), re(r, n), re(n, o), a || (s = Vt(
5143
5196
  n,
5144
5197
  "click",
5145
5198
  /*click_handler*/
5146
5199
  e[32]
5147
- ), s = !0);
5200
+ ), a = !0);
5148
5201
  },
5149
5202
  p(f, h) {
5150
5203
  h[0] & /*$_*/
@@ -5152,16 +5205,16 @@ function Rr(e) {
5152
5205
  f[22]("showMore") + "") && it(o, i);
5153
5206
  },
5154
5207
  d(f) {
5155
- f && ne(t), s = !1, a();
5208
+ f && ne(t), a = !1, s();
5156
5209
  }
5157
5210
  };
5158
5211
  }
5159
- function is(e) {
5212
+ function as(e) {
5160
5213
  let t;
5161
- function r(o, s) {
5214
+ function r(o, a) {
5162
5215
  return (
5163
5216
  /*hasErrors*/
5164
- o[16] ? Ko : Yo
5217
+ o[16] ? rs : ts
5165
5218
  );
5166
5219
  }
5167
5220
  let n = r(e), i = n(e);
@@ -5169,11 +5222,11 @@ function is(e) {
5169
5222
  c() {
5170
5223
  t = z("div"), i.c();
5171
5224
  },
5172
- m(o, s) {
5173
- ce(o, t, s), i.m(t, null), e[33](t);
5225
+ m(o, a) {
5226
+ ce(o, t, a), i.m(t, null), e[33](t);
5174
5227
  },
5175
- p(o, s) {
5176
- n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
5228
+ p(o, a) {
5229
+ n === (n = r(o)) && i ? i.p(o, a) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
5177
5230
  },
5178
5231
  i: fe,
5179
5232
  o: fe,
@@ -5182,30 +5235,30 @@ function is(e) {
5182
5235
  }
5183
5236
  };
5184
5237
  }
5185
- let os = "All,Scheduled,Ongoing,Finished";
5186
- function ss(e, t, r) {
5238
+ let us = "All,Scheduled,Ongoing,Finished";
5239
+ function ls(e, t, r) {
5187
5240
  let n;
5188
- _n(e, Wo, (l) => r(22, n = l));
5189
- let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { translationurl: f = "" } = t, { numberoftournaments: h = "6" } = t, { showmorestep: c = "2" } = t, { filters: d = "All" } = t, { loginevent: p = "" } = t, { registerevent: _ = "" } = t, { loginurl: O = "" } = t, { registerurl: B = "" } = t, { currency: ee = "EUR" } = t, { keepbrowsercontext: de = "false" } = t, { sorttype: ie = "" } = t, { sortorder: M = "" } = t, { starttimeafter: $ = "" } = t, { showanonymoustournaments: Z = "true" } = t, { clientstyling: le = "" } = t, { clientstylingurl: be = "" } = t, { delaybeforeload: Ne = 1e3 } = t, He = !1, me = "", Be = !1, te = "", lt = window.navigator.userAgent, Pe = !0, Je = !1, Ce = !1, W, he = 0, ge = !1, oe = 6, se = !0, ve = [], Qe, pe, Ye = !1, ht;
5190
- Zo({ withLocale: "en", translations: {} });
5241
+ Sn(e, Jo, (l) => r(22, n = l));
5242
+ let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { lang: s = "en" } = t, { translationurl: f = "" } = t, { numberoftournaments: h = "6" } = t, { showmorestep: c = "2" } = t, { filters: d = "All" } = t, { loginevent: p = "" } = t, { registerevent: _ = "" } = t, { loginurl: O = "" } = t, { registerurl: B = "" } = t, { currency: ee = "EUR" } = t, { keepbrowsercontext: de = "false" } = t, { sorttype: ie = "" } = t, { sortorder: M = "" } = t, { starttimeafter: $ = "" } = t, { showanonymoustournaments: Z = "true" } = t, { clientstyling: le = "" } = t, { clientstylingurl: be = "" } = t, { delaybeforeload: Ne = 1e3 } = t, He = !1, me = "", Be = !1, te = "", lt = window.navigator.userAgent, Pe = !0, Je = !1, Ce = !1, W, he = 0, ge = !1, oe = 6, se = !0, ve = [], Qe, pe, Ye = !1, ht;
5243
+ Yo({ withLocale: "en", translations: {} });
5191
5244
  const Pt = () => {
5192
5245
  fetch(f).then((S) => S.json()).then((S) => {
5193
5246
  ht = S, Object.keys(S).forEach((N) => {
5194
- jt(N, S[N]);
5247
+ $t(N, S[N]);
5195
5248
  });
5196
5249
  }).catch((S) => {
5197
5250
  console.log(S);
5198
5251
  });
5199
5252
  }, Ke = (l) => {
5200
5253
  l && Object.keys(l).forEach((S) => {
5201
- jt(S, l[S]);
5254
+ $t(S, l[S]);
5202
5255
  });
5203
5256
  };
5204
- Object.keys(Lr).forEach((l) => {
5205
- jt(l, Lr[l]);
5257
+ Object.keys(Rr).forEach((l) => {
5258
+ $t(l, Rr[l]);
5206
5259
  });
5207
5260
  const Me = (l) => {
5208
- l.data && l.data.type === "UserSessionID" && (Be = !0, r(30, te = l.data.session), l.data.userid, J(s, 0, oe)), l.data && l.data.type === "TournamentsFiltersSelected" && (ve = l.data.filters, J(s, 0, oe)), l.data && l.data.type === "TournamentThumbnailMounted" && Ke(ht);
5261
+ l.data && l.data.type === "UserSessionID" && (Be = !0, r(30, te = l.data.session), l.data.userid, J(a, 0, oe)), l.data && l.data.type === "TournamentsFiltersSelected" && (ve = l.data.filters, J(a, 0, oe)), l.data && l.data.type === "TournamentThumbnailMounted" && Ke(ht);
5209
5262
  }, we = (l) => l == "Scheduled" ? "Unstarted" : l == "Ongoing" ? "Running" : "Closing|Closed", J = async (l, S, N) => {
5210
5263
  r(18, Pe = !0), r(20, he = 0);
5211
5264
  const I = await ft(l, S, N);
@@ -5235,11 +5288,11 @@ function ss(e, t, r) {
5235
5288
  return $ ? l.setDate(l.getDate() - Number($)) : l.setMonth(l.getMonth() - 1), l.toISOString().substring(0, 10);
5236
5289
  }, ft = async (l, S, N) => {
5237
5290
  let I = new URL(`${l}/v1/tournaments`), k = new Headers();
5238
- I.searchParams.append("pagination", `offset=${S},limit=${N}`), I.searchParams.append("sortField", "StartTime"), I.searchParams.append("sortOrder", M || "desc"), I.searchParams.append("language", a);
5291
+ I.searchParams.append("pagination", `offset=${S},limit=${N}`), I.searchParams.append("sortField", "StartTime"), I.searchParams.append("sortOrder", M || "desc"), I.searchParams.append("language", s);
5239
5292
  const q = { StartTimeAfter: Ot() };
5240
- !Nr(i) && Z === "false" && (q.tags = "no-role-set"), ve.length > 0 && ve[0] != "All" && (q.state = ve.map((G) => we(G)).join("|"));
5293
+ !Dr(i) && Z === "false" && (q.tags = "no-role-set"), ve.length > 0 && ve[0] != "All" && (q.state = ve.map((G) => we(G)).join("|"));
5241
5294
  const Te = Object.keys(q).map((G) => `${G}=${q[G]}`).join(",");
5242
- return I.searchParams.append("filter", Te), I.searchParams.append("platform", qo(lt)), ie && I.searchParams.append("sortType", ie), Be && k.append("X-SessionID", te), fetch(I, {
5295
+ return I.searchParams.append("filter", Te), I.searchParams.append("platform", Qo(lt)), ie && I.searchParams.append("sortType", ie), Be && k.append("X-SessionID", te), fetch(I, {
5243
5296
  method: "GET",
5244
5297
  headers: k,
5245
5298
  cache: "no-cache"
@@ -5277,8 +5330,8 @@ function ss(e, t, r) {
5277
5330
  },
5278
5331
  1e3
5279
5332
  ), pe && (pe.removeEventListener("message", Re), pe.close());
5280
- let l = `${s}/v1/tournaments/updates?${Qe}`;
5281
- pe = new Jo.EventSourcePolyfill(
5333
+ let l = `${a}/v1/tournaments/updates?${Qe}`;
5334
+ pe = new Ko.EventSourcePolyfill(
5282
5335
  l,
5283
5336
  {
5284
5337
  headers: {
@@ -5297,16 +5350,17 @@ function ss(e, t, r) {
5297
5350
  limit: oe
5298
5351
  },
5299
5352
  window.location.href
5300
- ), await Ct(s, l, S), oe >= he && r(21, se = !0);
5301
- }, g = () => (s || (r(17, me = "Endpoint is missing! Please provide a valid endpointURL."), r(16, He = !0), console.error(me)), (!a || a.length != 2) && (r(17, me = "Language is missing! Please provide a valid language (alpha2code)"), r(16, He = !0), console.error(me)), He), m = () => {
5302
- if (!ge) return !1;
5303
- g() || (oe = parseInt(h, 10), Ir(a), J(s, 0, oe));
5353
+ ), await Ct(a, l, S), oe >= he && r(21, se = !0);
5354
+ }, g = () => (a || (r(17, me = "Endpoint is missing! Please provide a valid endpointURL."), r(16, He = !0), console.error(me)), (!s || s.length != 2) && (r(17, me = "Language is missing! Please provide a valid language (alpha2code)"), r(16, He = !0), console.error(me)), He), m = () => {
5355
+ if (!ge)
5356
+ return !1;
5357
+ g() || (oe = parseInt(h, 10), Mr(s), J(a, 0, oe));
5304
5358
  }, y = () => {
5305
- Ir(a);
5359
+ Mr(s);
5306
5360
  }, v = () => {
5307
5361
  ve = d.split(","), r(19, Je = !0);
5308
5362
  }, x = () => {
5309
- Nr(i) ? (Be = !0, r(30, te = i)) : (Be = !1, r(30, te = ""));
5363
+ Dr(i) ? (Be = !0, r(30, te = i)) : (Be = !1, r(30, te = ""));
5310
5364
  }, R = async () => {
5311
5365
  Ye || (Ye = !0, await m(), Ye = !1);
5312
5366
  }, T = () => {
@@ -5327,7 +5381,7 @@ function ss(e, t, r) {
5327
5381
  );
5328
5382
  });
5329
5383
  };
5330
- Cn(() => (setTimeout(
5384
+ Nn(() => (setTimeout(
5331
5385
  () => {
5332
5386
  r(31, ge = !0);
5333
5387
  },
@@ -5337,29 +5391,29 @@ function ss(e, t, r) {
5337
5391
  }));
5338
5392
  const L = () => b();
5339
5393
  function E(l) {
5340
- Vt[l ? "unshift" : "push"](() => {
5394
+ Xt[l ? "unshift" : "push"](() => {
5341
5395
  W = l, r(15, W);
5342
5396
  });
5343
5397
  }
5344
5398
  return e.$$set = (l) => {
5345
- "session" in l && r(0, i = l.session), "userid" in l && r(1, o = l.userid), "endpoint" in l && r(2, s = l.endpoint), "lang" in l && r(3, a = l.lang), "translationurl" in l && r(4, f = l.translationurl), "numberoftournaments" in l && r(5, h = l.numberoftournaments), "showmorestep" in l && r(24, c = l.showmorestep), "filters" in l && r(6, d = l.filters), "loginevent" in l && r(7, p = l.loginevent), "registerevent" in l && r(8, _ = l.registerevent), "loginurl" in l && r(9, O = l.loginurl), "registerurl" in l && r(10, B = l.registerurl), "currency" in l && r(11, ee = l.currency), "keepbrowsercontext" in l && r(12, de = l.keepbrowsercontext), "sorttype" in l && r(25, ie = l.sorttype), "sortorder" in l && r(26, M = l.sortorder), "starttimeafter" in l && r(27, $ = l.starttimeafter), "showanonymoustournaments" in l && r(28, Z = l.showanonymoustournaments), "clientstyling" in l && r(13, le = l.clientstyling), "clientstylingurl" in l && r(14, be = l.clientstylingurl), "delaybeforeload" in l && r(29, Ne = l.delaybeforeload);
5399
+ "session" in l && r(0, i = l.session), "userid" in l && r(1, o = l.userid), "endpoint" in l && r(2, a = l.endpoint), "lang" in l && r(3, s = l.lang), "translationurl" in l && r(4, f = l.translationurl), "numberoftournaments" in l && r(5, h = l.numberoftournaments), "showmorestep" in l && r(24, c = l.showmorestep), "filters" in l && r(6, d = l.filters), "loginevent" in l && r(7, p = l.loginevent), "registerevent" in l && r(8, _ = l.registerevent), "loginurl" in l && r(9, O = l.loginurl), "registerurl" in l && r(10, B = l.registerurl), "currency" in l && r(11, ee = l.currency), "keepbrowsercontext" in l && r(12, de = l.keepbrowsercontext), "sorttype" in l && r(25, ie = l.sorttype), "sortorder" in l && r(26, M = l.sortorder), "starttimeafter" in l && r(27, $ = l.starttimeafter), "showanonymoustournaments" in l && r(28, Z = l.showanonymoustournaments), "clientstyling" in l && r(13, le = l.clientstyling), "clientstylingurl" in l && r(14, be = l.clientstylingurl), "delaybeforeload" in l && r(29, Ne = l.delaybeforeload);
5346
5400
  }, e.$$.update = () => {
5347
5401
  e.$$.dirty[0] & /*customStylingContainer, clientstyling*/
5348
5402
  40960 && W && le && T(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
5349
5403
  49152 && W && be && C(), e.$$.dirty[0] & /*userid*/
5350
5404
  2, e.$$.dirty[0] & /*filters*/
5351
5405
  64 && d && v(), e.$$.dirty[0] & /*lang*/
5352
- 8 && a && y(), e.$$.dirty[0] & /*translationurl*/
5406
+ 8 && s && y(), e.$$.dirty[0] & /*translationurl*/
5353
5407
  16 && f && Pt(), e.$$.dirty[1] & /*isMounted*/
5354
5408
  1 && ge && m(), e.$$.dirty[0] & /*session*/
5355
5409
  1 && (i === "" || i) && x(), e.$$.dirty[0] & /*sessionID*/
5356
5410
  1073741824 && (te === "" || te) && R(), e.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang, showanonymoustournaments*/
5357
- 285212716 && s && h && c && a && Z && R();
5411
+ 285212716 && a && h && c && s && Z && R();
5358
5412
  }, [
5359
5413
  i,
5360
5414
  o,
5361
- s,
5362
5415
  a,
5416
+ s,
5363
5417
  f,
5364
5418
  h,
5365
5419
  d,
@@ -5392,14 +5446,14 @@ function ss(e, t, r) {
5392
5446
  E
5393
5447
  ];
5394
5448
  }
5395
- class as extends $n {
5449
+ class hs extends zn {
5396
5450
  constructor(t) {
5397
- super(), Gn(
5451
+ super(), Vn(
5398
5452
  this,
5399
5453
  t,
5400
- ss,
5401
- is,
5402
- Fr,
5454
+ ls,
5455
+ as,
5456
+ jr,
5403
5457
  {
5404
5458
  session: 0,
5405
5459
  userid: 1,
@@ -5423,7 +5477,7 @@ class as extends $n {
5423
5477
  clientstylingurl: 14,
5424
5478
  delaybeforeload: 29
5425
5479
  },
5426
- Qo,
5480
+ es,
5427
5481
  [-1, -1, -1]
5428
5482
  );
5429
5483
  }
@@ -5554,45 +5608,45 @@ class as extends $n {
5554
5608
  this.$$set({ delaybeforeload: t }), F();
5555
5609
  }
5556
5610
  }
5557
- jn(as, { session: {}, userid: {}, endpoint: {}, lang: {}, translationurl: {}, numberoftournaments: {}, showmorestep: {}, filters: {}, loginevent: {}, registerevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, sorttype: {}, sortorder: {}, starttimeafter: {}, showanonymoustournaments: {}, clientstyling: {}, clientstylingurl: {}, delaybeforeload: {} }, [], [], !0);
5611
+ Xn(hs, { session: {}, userid: {}, endpoint: {}, lang: {}, translationurl: {}, numberoftournaments: {}, showmorestep: {}, filters: {}, loginevent: {}, registerevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, sorttype: {}, sortorder: {}, starttimeafter: {}, showanonymoustournaments: {}, clientstyling: {}, clientstylingurl: {}, delaybeforeload: {} }, [], [], !0);
5558
5612
  export {
5559
- Wo as $,
5560
- ls as A,
5561
- ut as B,
5562
- cs as C,
5563
- wt as D,
5613
+ Jo as $,
5614
+ cs as A,
5615
+ wt as B,
5616
+ ut as C,
5617
+ ps as D,
5564
5618
  qe as E,
5565
- qo as F,
5566
- ms as G,
5567
- ds as H,
5568
- zt as I,
5569
- us as J,
5570
- as as K,
5571
- $n as S,
5572
- dn as a,
5573
- xn as b,
5574
- jn as c,
5575
- ne as d,
5576
- ce as e,
5619
+ Qo as F,
5620
+ gs as G,
5621
+ Wt as H,
5622
+ bs as I,
5623
+ fs as J,
5624
+ hs as K,
5625
+ zn as S,
5626
+ gn as a,
5627
+ An as b,
5628
+ Xn as c,
5629
+ U as d,
5630
+ z as e,
5577
5631
  F as f,
5578
- z as g,
5579
- U as h,
5580
- Gn as i,
5581
- bs as j,
5582
- _n as k,
5583
- ps as l,
5584
- hs as m,
5632
+ ys as g,
5633
+ ce as h,
5634
+ Vn as i,
5635
+ ne as j,
5636
+ Sn as k,
5637
+ vs as l,
5638
+ kt as m,
5585
5639
  fe as n,
5586
- it as o,
5587
- re as p,
5588
- $t as q,
5640
+ re as o,
5641
+ it as p,
5642
+ ds as q,
5589
5643
  Vt as r,
5590
- Fr as s,
5644
+ jr as s,
5591
5645
  Ie as t,
5592
- kt as u,
5593
- fs as v,
5594
- Cn as w,
5595
- Sn as x,
5646
+ Xt as u,
5647
+ ms as v,
5648
+ Nn as w,
5649
+ Pn as x,
5596
5650
  w as y,
5597
5651
  Ae as z
5598
5652
  };