@everymatrix/casino-tournaments-thumbnail 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.
@@ -1,24 +1,24 @@
1
1
  function D() {
2
2
  }
3
- function vt(e) {
3
+ function St(e) {
4
4
  return e();
5
5
  }
6
- function Ke() {
6
+ function tt() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
9
  function re(e) {
10
- e.forEach(vt);
10
+ e.forEach(St);
11
11
  }
12
12
  function ce(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function xt(e, t) {
15
+ function Tt(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function nr(e) {
18
+ function sr(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function St(e, ...t) {
21
+ function At(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const n of t)
24
24
  n(void 0);
@@ -27,8 +27,8 @@ function St(e, ...t) {
27
27
  const r = e.subscribe(...t);
28
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
29
29
  }
30
- function ir(e, t, r) {
31
- e.$$.on_destroy.push(St(t, r));
30
+ function ar(e, t, r) {
31
+ e.$$.on_destroy.push(At(t, r));
32
32
  }
33
33
  function fe(e) {
34
34
  return e && ce(e.destroy) ? e.destroy : D;
@@ -36,15 +36,16 @@ function fe(e) {
36
36
  function S(e, t) {
37
37
  e.appendChild(t);
38
38
  }
39
- function sr(e, t, r) {
40
- const n = ar(e);
39
+ function or(e, t, r) {
40
+ const n = ur(e);
41
41
  if (!n.getElementById(t)) {
42
42
  const i = I("style");
43
- i.id = t, i.textContent = r, or(n, i);
43
+ i.id = t, i.textContent = r, lr(n, i);
44
44
  }
45
45
  }
46
- function ar(e) {
47
- if (!e) return document;
46
+ function ur(e) {
47
+ if (!e)
48
+ return document;
48
49
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
49
50
  return t && /** @type {ShadowRoot} */
50
51
  t.host ? (
@@ -52,7 +53,7 @@ function ar(e) {
52
53
  t
53
54
  ) : e.ownerDocument;
54
55
  }
55
- function or(e, t) {
56
+ function lr(e, t) {
56
57
  return S(
57
58
  /** @type {Document} */
58
59
  e.head || e,
@@ -74,16 +75,16 @@ function M(e) {
74
75
  function J() {
75
76
  return M(" ");
76
77
  }
77
- function ur() {
78
+ function hr() {
78
79
  return M("");
79
80
  }
80
- function lr(e, t, r, n) {
81
+ function cr(e, t, r, n) {
81
82
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
82
83
  }
83
84
  function _(e, t, r) {
84
85
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
85
86
  }
86
- function hr(e) {
87
+ function fr(e) {
87
88
  return Array.from(e.childNodes);
88
89
  }
89
90
  function G(e, t) {
@@ -93,7 +94,7 @@ function G(e, t) {
93
94
  function Re(e, t, r, n) {
94
95
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
95
96
  }
96
- function cr(e) {
97
+ function mr(e) {
97
98
  const t = {};
98
99
  return e.childNodes.forEach(
99
100
  /** @param {Element} node */
@@ -106,19 +107,20 @@ let ue;
106
107
  function oe(e) {
107
108
  ue = e;
108
109
  }
109
- function fr() {
110
- if (!ue) throw new Error("Function called outside component initialization");
110
+ function dr() {
111
+ if (!ue)
112
+ throw new Error("Function called outside component initialization");
111
113
  return ue;
112
114
  }
113
- function mr(e) {
114
- fr().$$.on_mount.push(e);
115
+ function br(e) {
116
+ dr().$$.on_mount.push(e);
115
117
  }
116
118
  const Q = [], Le = [];
117
119
  let q = [];
118
- const et = [], dr = /* @__PURE__ */ Promise.resolve();
120
+ const rt = [], gr = /* @__PURE__ */ Promise.resolve();
119
121
  let De = !1;
120
- function br() {
121
- De || (De = !0, dr.then(N));
122
+ function pr() {
123
+ De || (De = !0, gr.then(N));
122
124
  }
123
125
  function ke(e) {
124
126
  q.push(e);
@@ -133,52 +135,53 @@ function N() {
133
135
  try {
134
136
  for (; X < Q.length; ) {
135
137
  const t = Q[X];
136
- X++, oe(t), gr(t.$$);
138
+ X++, oe(t), yr(t.$$);
137
139
  }
138
140
  } catch (t) {
139
141
  throw Q.length = 0, X = 0, t;
140
142
  }
141
- for (oe(null), Q.length = 0, X = 0; Le.length; ) Le.pop()();
143
+ for (oe(null), Q.length = 0, X = 0; Le.length; )
144
+ Le.pop()();
142
145
  for (let t = 0; t < q.length; t += 1) {
143
146
  const r = q[t];
144
147
  Be.has(r) || (Be.add(r), r());
145
148
  }
146
149
  q.length = 0;
147
150
  } while (Q.length);
148
- for (; et.length; )
149
- et.pop()();
151
+ for (; rt.length; )
152
+ rt.pop()();
150
153
  De = !1, Be.clear(), oe(e);
151
154
  }
152
- function gr(e) {
155
+ function yr(e) {
153
156
  if (e.fragment !== null) {
154
157
  e.update(), re(e.before_update);
155
158
  const t = e.dirty;
156
159
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ke);
157
160
  }
158
161
  }
159
- function pr(e) {
162
+ function _r(e) {
160
163
  const t = [], r = [];
161
164
  q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
162
165
  }
163
- const yr = /* @__PURE__ */ new Set();
164
- function _r(e, t) {
165
- e && e.i && (yr.delete(e), e.i(t));
166
+ const Er = /* @__PURE__ */ new Set();
167
+ function vr(e, t) {
168
+ e && e.i && (Er.delete(e), e.i(t));
166
169
  }
167
- function Er(e, t, r) {
170
+ function xr(e, t, r) {
168
171
  const { fragment: n, after_update: i } = e.$$;
169
172
  n && n.m(t, r), ke(() => {
170
- const s = e.$$.on_mount.map(vt).filter(ce);
173
+ const s = e.$$.on_mount.map(St).filter(ce);
171
174
  e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
172
175
  }), i.forEach(ke);
173
176
  }
174
- function vr(e, t) {
177
+ function Sr(e, t) {
175
178
  const r = e.$$;
176
- r.fragment !== null && (pr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
179
+ r.fragment !== null && (_r(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
177
180
  }
178
- function xr(e, t) {
179
- e.$$.dirty[0] === -1 && (Q.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
181
+ function Tr(e, t) {
182
+ e.$$.dirty[0] === -1 && (Q.push(e), pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
180
183
  }
181
- function Sr(e, t, r, n, i, s, a = null, o = [-1]) {
184
+ function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
182
185
  const h = ue;
183
186
  oe(e);
184
187
  const u = e.$$ = {
@@ -188,7 +191,7 @@ function Sr(e, t, r, n, i, s, a = null, o = [-1]) {
188
191
  props: s,
189
192
  update: D,
190
193
  not_equal: i,
191
- bound: Ke(),
194
+ bound: tt(),
192
195
  // lifecycle
193
196
  on_mount: [],
194
197
  on_destroy: [],
@@ -197,7 +200,7 @@ function Sr(e, t, r, n, i, s, a = null, o = [-1]) {
197
200
  after_update: [],
198
201
  context: new Map(t.context || (h ? h.$$.context : [])),
199
202
  // everything else
200
- callbacks: Ke(),
203
+ callbacks: tt(),
201
204
  dirty: o,
202
205
  skip_bound: !1,
203
206
  root: t.target || h.$$.root
@@ -206,19 +209,19 @@ function Sr(e, t, r, n, i, s, a = null, o = [-1]) {
206
209
  let l = !1;
207
210
  if (u.ctx = r ? r(e, t.props || {}, (c, f, ...E) => {
208
211
  const d = E.length ? E[0] : f;
209
- return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), l && xr(e, c)), f;
212
+ return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), l && Tr(e, c)), f;
210
213
  }) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
211
214
  if (t.hydrate) {
212
- const c = hr(t.target);
215
+ const c = fr(t.target);
213
216
  u.fragment && u.fragment.l(c), c.forEach(k);
214
217
  } else
215
218
  u.fragment && u.fragment.c();
216
- t.intro && _r(e.$$.fragment), Er(e, t.target, t.anchor), N();
219
+ t.intro && vr(e.$$.fragment), xr(e, t.target, t.anchor), N();
217
220
  }
218
221
  oe(h);
219
222
  }
220
- let Tt;
221
- typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
223
+ let Ht;
224
+ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
222
225
  /** The Svelte component constructor */
223
226
  $$ctor;
224
227
  /** Slots */
@@ -277,7 +280,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
277
280
  };
278
281
  if (await Promise.resolve(), !this.$$cn || this.$$c)
279
282
  return;
280
- const t = {}, r = cr(this);
283
+ const t = {}, r = mr(this);
281
284
  for (const i of this.$$s)
282
285
  i in r && (t[i] = [e(i)]);
283
286
  for (const i of this.attributes) {
@@ -364,8 +367,8 @@ function be(e, t, r, n) {
364
367
  return t;
365
368
  }
366
369
  }
367
- function Tr(e, t, r, n, i, s) {
368
- let a = class extends Tt {
370
+ function Hr(e, t, r, n, i, s) {
371
+ let a = class extends Ht {
369
372
  constructor() {
370
373
  super(e, r, i), this.$$p_d = t;
371
374
  }
@@ -393,7 +396,7 @@ function Tr(e, t, r, n, i, s) {
393
396
  }), e.element = /** @type {any} */
394
397
  a, a;
395
398
  }
396
- class Ar {
399
+ class Cr {
397
400
  /**
398
401
  * ### PRIVATE API
399
402
  *
@@ -412,7 +415,7 @@ class Ar {
412
415
  $$set = void 0;
413
416
  /** @returns {void} */
414
417
  $destroy() {
415
- vr(this, 1), this.$destroy = D;
418
+ Sr(this, 1), this.$destroy = D;
416
419
  }
417
420
  /**
418
421
  * @template {Extract<keyof Events, string>} K
@@ -434,13 +437,13 @@ class Ar {
434
437
  * @returns {void}
435
438
  */
436
439
  $set(t) {
437
- this.$$set && !nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
440
+ this.$$set && !sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
438
441
  }
439
442
  }
440
- const Hr = "4";
441
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
443
+ const Br = "4";
444
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
442
445
  const Z = [];
443
- function Cr(e, t) {
446
+ function Nr(e, t) {
444
447
  return {
445
448
  subscribe: Ee(e, t).subscribe
446
449
  };
@@ -449,7 +452,7 @@ function Ee(e, t = D) {
449
452
  let r;
450
453
  const n = /* @__PURE__ */ new Set();
451
454
  function i(o) {
452
- if (xt(e, o) && (e = o, r)) {
455
+ if (Tt(e, o) && (e = o, r)) {
453
456
  const h = !Z.length;
454
457
  for (const u of n)
455
458
  u[1](), Z.push(u, e);
@@ -476,7 +479,7 @@ function ne(e, t, r) {
476
479
  if (!i.every(Boolean))
477
480
  throw new Error("derived() expects stores as input, got a falsy value");
478
481
  const s = t.length < 2;
479
- return Cr(r, (a, o) => {
482
+ return Nr(r, (a, o) => {
480
483
  let h = !1;
481
484
  const u = [];
482
485
  let l = 0, c = D;
@@ -487,7 +490,7 @@ function ne(e, t, r) {
487
490
  const d = t(n ? u[0] : u, a, o);
488
491
  s ? a(d) : c = ce(d) ? d : D;
489
492
  }, E = i.map(
490
- (d, b) => St(
493
+ (d, b) => At(
491
494
  d,
492
495
  (g) => {
493
496
  u[b] = g, l &= ~(1 << b), h && f();
@@ -502,70 +505,70 @@ function ne(e, t, r) {
502
505
  };
503
506
  });
504
507
  }
505
- function Br(e) {
508
+ function Pr(e) {
506
509
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
507
510
  }
508
- var Nr = function(t) {
509
- return Pr(t) && !Ir(t);
511
+ var Ir = function(t) {
512
+ return Or(t) && !wr(t);
510
513
  };
511
- function Pr(e) {
514
+ function Or(e) {
512
515
  return !!e && typeof e == "object";
513
516
  }
514
- function Ir(e) {
517
+ function wr(e) {
515
518
  var t = Object.prototype.toString.call(e);
516
- return t === "[object RegExp]" || t === "[object Date]" || Mr(e);
519
+ return t === "[object RegExp]" || t === "[object Date]" || Lr(e);
517
520
  }
518
- var Or = typeof Symbol == "function" && Symbol.for, wr = Or ? Symbol.for("react.element") : 60103;
519
- function Mr(e) {
520
- return e.$$typeof === wr;
521
+ var Mr = typeof Symbol == "function" && Symbol.for, Rr = Mr ? Symbol.for("react.element") : 60103;
522
+ function Lr(e) {
523
+ return e.$$typeof === Rr;
521
524
  }
522
- function Rr(e) {
525
+ function Dr(e) {
523
526
  return Array.isArray(e) ? [] : {};
524
527
  }
525
528
  function le(e, t) {
526
- return t.clone !== !1 && t.isMergeableObject(e) ? Y(Rr(e), e, t) : e;
529
+ return t.clone !== !1 && t.isMergeableObject(e) ? Y(Dr(e), e, t) : e;
527
530
  }
528
- function Lr(e, t, r) {
531
+ function kr(e, t, r) {
529
532
  return e.concat(t).map(function(n) {
530
533
  return le(n, r);
531
534
  });
532
535
  }
533
- function Dr(e, t) {
536
+ function Ur(e, t) {
534
537
  if (!t.customMerge)
535
538
  return Y;
536
539
  var r = t.customMerge(e);
537
540
  return typeof r == "function" ? r : Y;
538
541
  }
539
- function kr(e) {
542
+ function Fr(e) {
540
543
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
541
544
  return Object.propertyIsEnumerable.call(e, t);
542
545
  }) : [];
543
546
  }
544
- function tt(e) {
545
- return Object.keys(e).concat(kr(e));
547
+ function nt(e) {
548
+ return Object.keys(e).concat(Fr(e));
546
549
  }
547
- function At(e, t) {
550
+ function Ct(e, t) {
548
551
  try {
549
552
  return t in e;
550
553
  } catch {
551
554
  return !1;
552
555
  }
553
556
  }
554
- function Ur(e, t) {
555
- return At(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
557
+ function Gr(e, t) {
558
+ return Ct(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
556
559
  }
557
- function Fr(e, t, r) {
560
+ function $r(e, t, r) {
558
561
  var n = {};
559
- return r.isMergeableObject(e) && tt(e).forEach(function(i) {
562
+ return r.isMergeableObject(e) && nt(e).forEach(function(i) {
560
563
  n[i] = le(e[i], r);
561
- }), tt(t).forEach(function(i) {
562
- Ur(e, i) || (At(e, i) && r.isMergeableObject(t[i]) ? n[i] = Dr(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
564
+ }), nt(t).forEach(function(i) {
565
+ Gr(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ur(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
563
566
  }), n;
564
567
  }
565
568
  function Y(e, t, r) {
566
- r = r || {}, r.arrayMerge = r.arrayMerge || Lr, r.isMergeableObject = r.isMergeableObject || Nr, r.cloneUnlessOtherwiseSpecified = le;
569
+ r = r || {}, r.arrayMerge = r.arrayMerge || kr, r.isMergeableObject = r.isMergeableObject || Ir, r.cloneUnlessOtherwiseSpecified = le;
567
570
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
568
- return s ? n ? r.arrayMerge(e, t, r) : Fr(e, t, r) : le(t, r);
571
+ return s ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) : le(t, r);
569
572
  }
570
573
  Y.all = function(t, r) {
571
574
  if (!Array.isArray(t))
@@ -574,13 +577,28 @@ Y.all = function(t, r) {
574
577
  return Y(n, i, r);
575
578
  }, {});
576
579
  };
577
- var Gr = Y, $r = Gr;
578
- const jr = /* @__PURE__ */ Br($r);
580
+ var jr = Y, Vr = jr;
581
+ const Jr = /* @__PURE__ */ Pr(Vr);
582
+ /*! *****************************************************************************
583
+ Copyright (c) Microsoft Corporation.
584
+
585
+ Permission to use, copy, modify, and/or distribute this software for any
586
+ purpose with or without fee is hereby granted.
587
+
588
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
589
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
590
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
591
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
592
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
593
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
594
+ PERFORMANCE OF THIS SOFTWARE.
595
+ ***************************************************************************** */
579
596
  var Ue = function(e, t) {
580
597
  return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
581
598
  r.__proto__ = n;
582
599
  } || function(r, n) {
583
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
600
+ for (var i in n)
601
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
584
602
  }, Ue(e, t);
585
603
  };
586
604
  function ve(e, t) {
@@ -596,72 +614,77 @@ var x = function() {
596
614
  return x = Object.assign || function(t) {
597
615
  for (var r, n = 1, i = arguments.length; n < i; n++) {
598
616
  r = arguments[n];
599
- for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
617
+ for (var s in r)
618
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
600
619
  }
601
620
  return t;
602
621
  }, x.apply(this, arguments);
603
622
  };
604
- function Vr(e, t) {
623
+ function zr(e, t) {
605
624
  var r = {};
606
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
625
+ for (var n in e)
626
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
607
627
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
608
628
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
609
629
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
610
630
  return r;
611
631
  }
612
632
  function Ne(e, t, r) {
613
- if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
614
- (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
615
- return e.concat(s || Array.prototype.slice.call(t));
633
+ if (arguments.length === 2)
634
+ for (var n = 0, i = t.length, s; n < i; n++)
635
+ (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
636
+ return e.concat(s || t);
616
637
  }
617
638
  function Pe(e, t) {
618
- var r = t && t.cache ? t.cache : qr, n = t && t.serializer ? t.serializer : Zr, i = t && t.strategy ? t.strategy : Wr;
639
+ var r = t && t.cache ? t.cache : Yr, n = t && t.serializer ? t.serializer : qr, i = t && t.strategy ? t.strategy : Xr;
619
640
  return i(e, {
620
641
  cache: r,
621
642
  serializer: n
622
643
  });
623
644
  }
624
- function Jr(e) {
645
+ function Wr(e) {
625
646
  return e == null || typeof e == "number" || typeof e == "boolean";
626
647
  }
627
- function zr(e, t, r, n) {
628
- var i = Jr(n) ? n : r(n), s = t.get(i);
648
+ function Bt(e, t, r, n) {
649
+ var i = Wr(n) ? n : r(n), s = t.get(i);
629
650
  return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
630
651
  }
631
- function Ht(e, t, r) {
652
+ function Nt(e, t, r) {
632
653
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
633
654
  return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
634
655
  }
635
- function Ct(e, t, r, n, i) {
656
+ function Xe(e, t, r, n, i) {
636
657
  return r.bind(t, e, n, i);
637
658
  }
638
- function Wr(e, t) {
639
- var r = e.length === 1 ? zr : Ht;
640
- return Ct(e, this, r, t.cache.create(), t.serializer);
641
- }
642
659
  function Xr(e, t) {
643
- return Ct(e, this, Ht, t.cache.create(), t.serializer);
660
+ var r = e.length === 1 ? Bt : Nt;
661
+ return Xe(e, this, r, t.cache.create(), t.serializer);
662
+ }
663
+ function Zr(e, t) {
664
+ return Xe(e, this, Nt, t.cache.create(), t.serializer);
644
665
  }
645
- var Zr = function() {
666
+ function Qr(e, t) {
667
+ return Xe(e, this, Bt, t.cache.create(), t.serializer);
668
+ }
669
+ var qr = function() {
646
670
  return JSON.stringify(arguments);
647
- }, Qr = (
648
- /** @class */
649
- function() {
650
- function e() {
651
- this.cache = /* @__PURE__ */ Object.create(null);
652
- }
653
- return e.prototype.get = function(t) {
654
- return this.cache[t];
655
- }, e.prototype.set = function(t, r) {
656
- this.cache[t] = r;
657
- }, e;
658
- }()
659
- ), qr = {
671
+ };
672
+ function Ze() {
673
+ this.cache = /* @__PURE__ */ Object.create(null);
674
+ }
675
+ Ze.prototype.get = function(e) {
676
+ return this.cache[e];
677
+ };
678
+ Ze.prototype.set = function(e, t) {
679
+ this.cache[e] = t;
680
+ };
681
+ var Yr = {
660
682
  create: function() {
661
- return new Qr();
683
+ return new Ze();
662
684
  }
663
685
  }, Ie = {
664
- variadic: Xr
686
+ variadic: Zr,
687
+ monadic: Qr
665
688
  }, y;
666
689
  (function(e) {
667
690
  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";
@@ -674,43 +697,43 @@ var K;
674
697
  (function(e) {
675
698
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
676
699
  })(K || (K = {}));
677
- function rt(e) {
700
+ function it(e) {
678
701
  return e.type === A.literal;
679
702
  }
680
- function Yr(e) {
703
+ function Kr(e) {
681
704
  return e.type === A.argument;
682
705
  }
683
- function Bt(e) {
706
+ function Pt(e) {
684
707
  return e.type === A.number;
685
708
  }
686
- function Nt(e) {
709
+ function It(e) {
687
710
  return e.type === A.date;
688
711
  }
689
- function Pt(e) {
712
+ function Ot(e) {
690
713
  return e.type === A.time;
691
714
  }
692
- function It(e) {
715
+ function wt(e) {
693
716
  return e.type === A.select;
694
717
  }
695
- function Ot(e) {
718
+ function Mt(e) {
696
719
  return e.type === A.plural;
697
720
  }
698
- function Kr(e) {
721
+ function en(e) {
699
722
  return e.type === A.pound;
700
723
  }
701
- function wt(e) {
724
+ function Rt(e) {
702
725
  return e.type === A.tag;
703
726
  }
704
- function Mt(e) {
727
+ function Lt(e) {
705
728
  return !!(e && typeof e == "object" && e.type === K.number);
706
729
  }
707
730
  function Fe(e) {
708
731
  return !!(e && typeof e == "object" && e.type === K.dateTime);
709
732
  }
710
- var Rt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, en = /(?:[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;
711
- function tn(e) {
733
+ var Dt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, tn = /(?:[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;
734
+ function rn(e) {
712
735
  var t = {};
713
- return e.replace(en, function(r) {
736
+ return e.replace(tn, function(r) {
714
737
  var n = r.length;
715
738
  switch (r[0]) {
716
739
  case "G":
@@ -799,11 +822,11 @@ function tn(e) {
799
822
  return "";
800
823
  }), t;
801
824
  }
802
- var rn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
803
- function nn(e) {
825
+ var nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
826
+ function sn(e) {
804
827
  if (e.length === 0)
805
828
  throw new Error("Number skeleton cannot be empty");
806
- for (var t = e.split(rn).filter(function(f) {
829
+ for (var t = e.split(nn).filter(function(f) {
807
830
  return f.length > 0;
808
831
  }), r = [], n = 0, i = t; n < i.length; n++) {
809
832
  var s = i[n], a = s.split("/");
@@ -818,17 +841,17 @@ function nn(e) {
818
841
  }
819
842
  return r;
820
843
  }
821
- function sn(e) {
844
+ function an(e) {
822
845
  return e.replace(/^(.*?)-/, "");
823
846
  }
824
- var nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Lt = /^(@+)?(\+|#+)?[rs]?$/g, an = /(\*)(0+)|(#+)(0+)|(0+)/g, Dt = /^(0+)$/;
825
- function it(e) {
847
+ var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, on = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
848
+ function at(e) {
826
849
  var t = {};
827
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Lt, function(r, n, i) {
850
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kt, function(r, n, i) {
828
851
  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)), "";
829
852
  }), t;
830
853
  }
831
- function kt(e) {
854
+ function Ft(e) {
832
855
  switch (e) {
833
856
  case "sign-auto":
834
857
  return {
@@ -868,7 +891,7 @@ function kt(e) {
868
891
  };
869
892
  }
870
893
  }
871
- function on(e) {
894
+ function un(e) {
872
895
  var t;
873
896
  if (e[0] === "E" && e[1] === "E" ? (t = {
874
897
  notation: "engineering"
@@ -876,17 +899,17 @@ function on(e) {
876
899
  notation: "scientific"
877
900
  }, e = e.slice(1)), t) {
878
901
  var r = e.slice(0, 2);
879
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dt.test(e))
902
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ut.test(e))
880
903
  throw new Error("Malformed concise eng/scientific notation");
881
904
  t.minimumIntegerDigits = e.length;
882
905
  }
883
906
  return t;
884
907
  }
885
- function st(e) {
886
- var t = {}, r = kt(e);
908
+ function ot(e) {
909
+ var t = {}, r = Ft(e);
887
910
  return r || t;
888
911
  }
889
- function un(e) {
912
+ function ln(e) {
890
913
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
891
914
  var i = n[r];
892
915
  switch (i.stem) {
@@ -910,7 +933,7 @@ function un(e) {
910
933
  continue;
911
934
  case "measure-unit":
912
935
  case "unit":
913
- t.style = "unit", t.unit = sn(i.options[0]);
936
+ t.style = "unit", t.unit = an(i.options[0]);
914
937
  continue;
915
938
  case "compact-short":
916
939
  case "K":
@@ -922,12 +945,12 @@ function un(e) {
922
945
  continue;
923
946
  case "scientific":
924
947
  t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
925
- return x(x({}, h), st(u));
948
+ return x(x({}, h), ot(u));
926
949
  }, {}));
927
950
  continue;
928
951
  case "engineering":
929
952
  t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
930
- return x(x({}, h), st(u));
953
+ return x(x({}, h), ot(u));
931
954
  }, {}));
932
955
  continue;
933
956
  case "notation-simple":
@@ -972,7 +995,7 @@ function un(e) {
972
995
  case "integer-width":
973
996
  if (i.options.length > 1)
974
997
  throw new RangeError("integer-width stems only accept a single optional option");
975
- i.options[0].replace(an, function(h, u, l, c, f, E) {
998
+ i.options[0].replace(on, function(h, u, l, c, f, E) {
976
999
  if (u)
977
1000
  t.minimumIntegerDigits = l.length;
978
1001
  else {
@@ -985,27 +1008,27 @@ function un(e) {
985
1008
  });
986
1009
  continue;
987
1010
  }
988
- if (Dt.test(i.stem)) {
1011
+ if (Ut.test(i.stem)) {
989
1012
  t.minimumIntegerDigits = i.stem.length;
990
1013
  continue;
991
1014
  }
992
- if (nt.test(i.stem)) {
1015
+ if (st.test(i.stem)) {
993
1016
  if (i.options.length > 1)
994
1017
  throw new RangeError("Fraction-precision stems only accept a single optional option");
995
- i.stem.replace(nt, function(h, u, l, c, f, E) {
1018
+ i.stem.replace(st, function(h, u, l, c, f, E) {
996
1019
  return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && E ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + E.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
997
1020
  });
998
1021
  var s = i.options[0];
999
- s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), it(s)));
1022
+ s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), at(s)));
1000
1023
  continue;
1001
1024
  }
1002
- if (Lt.test(i.stem)) {
1003
- t = x(x({}, t), it(i.stem));
1025
+ if (kt.test(i.stem)) {
1026
+ t = x(x({}, t), at(i.stem));
1004
1027
  continue;
1005
1028
  }
1006
- var a = kt(i.stem);
1029
+ var a = Ft(i.stem);
1007
1030
  a && (t = x(x({}, t), a));
1008
- var o = on(i.stem);
1031
+ var o = un(i.stem);
1009
1032
  o && (t = x(x({}, t), o));
1010
1033
  }
1011
1034
  return t;
@@ -2425,22 +2448,23 @@ var de = {
2425
2448
  "h"
2426
2449
  ]
2427
2450
  };
2428
- function ln(e, t) {
2451
+ function hn(e, t) {
2429
2452
  for (var r = "", n = 0; n < e.length; n++) {
2430
2453
  var i = e.charAt(n);
2431
2454
  if (i === "j") {
2432
2455
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2433
2456
  s++, n++;
2434
- var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = hn(t);
2457
+ var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = cn(t);
2435
2458
  for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
2436
2459
  r += h;
2437
2460
  for (; a-- > 0; )
2438
2461
  r = u + r;
2439
- } else i === "J" ? r += "H" : r += i;
2462
+ } else
2463
+ i === "J" ? r += "H" : r += i;
2440
2464
  }
2441
2465
  return r;
2442
2466
  }
2443
- function hn(e) {
2467
+ function cn(e) {
2444
2468
  var t = e.hourCycle;
2445
2469
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2446
2470
  e.hourCycles && // @ts-ignore
@@ -2462,20 +2486,20 @@ function hn(e) {
2462
2486
  var i = de[n || ""] || de[r || ""] || de["".concat(r, "-001")] || de["001"];
2463
2487
  return i[0];
2464
2488
  }
2465
- var Oe, cn = new RegExp("^".concat(Rt.source, "*")), fn = new RegExp("".concat(Rt.source, "*$"));
2489
+ var Oe, fn = new RegExp("^".concat(Dt.source, "*")), mn = new RegExp("".concat(Dt.source, "*$"));
2466
2490
  function v(e, t) {
2467
2491
  return { start: e, end: t };
2468
2492
  }
2469
- var mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), dn = !!String.fromCodePoint, bn = !!Object.fromEntries, gn = !!String.prototype.codePointAt, pn = !!String.prototype.trimStart, yn = !!String.prototype.trimEnd, _n = !!Number.isSafeInteger, En = _n ? Number.isSafeInteger : function(e) {
2493
+ var dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), bn = !!String.fromCodePoint, gn = !!Object.fromEntries, pn = !!String.prototype.codePointAt, yn = !!String.prototype.trimStart, _n = !!String.prototype.trimEnd, En = !!Number.isSafeInteger, vn = En ? Number.isSafeInteger : function(e) {
2470
2494
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2471
2495
  }, Ge = !0;
2472
2496
  try {
2473
- var vn = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2474
- Ge = ((Oe = vn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
2497
+ var xn = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2498
+ Ge = ((Oe = xn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
2475
2499
  } catch {
2476
2500
  Ge = !1;
2477
2501
  }
2478
- var at = mn ? (
2502
+ var ut = dn ? (
2479
2503
  // Native
2480
2504
  function(t, r, n) {
2481
2505
  return t.startsWith(r, n);
@@ -2485,7 +2509,7 @@ var at = mn ? (
2485
2509
  function(t, r, n) {
2486
2510
  return t.slice(n, n + r.length) === r;
2487
2511
  }
2488
- ), $e = dn ? String.fromCodePoint : (
2512
+ ), $e = bn ? String.fromCodePoint : (
2489
2513
  // IE11
2490
2514
  function() {
2491
2515
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2497,9 +2521,9 @@ var at = mn ? (
2497
2521
  }
2498
2522
  return n;
2499
2523
  }
2500
- ), ot = (
2524
+ ), lt = (
2501
2525
  // native
2502
- bn ? Object.fromEntries : (
2526
+ gn ? Object.fromEntries : (
2503
2527
  // Ponyfill
2504
2528
  function(t) {
2505
2529
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2509,7 +2533,7 @@ var at = mn ? (
2509
2533
  return r;
2510
2534
  }
2511
2535
  )
2512
- ), Ut = gn ? (
2536
+ ), Gt = pn ? (
2513
2537
  // Native
2514
2538
  function(t, r) {
2515
2539
  return t.codePointAt(r);
@@ -2523,7 +2547,7 @@ var at = mn ? (
2523
2547
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2524
2548
  }
2525
2549
  }
2526
- ), xn = pn ? (
2550
+ ), Sn = yn ? (
2527
2551
  // Native
2528
2552
  function(t) {
2529
2553
  return t.trimStart();
@@ -2531,9 +2555,9 @@ var at = mn ? (
2531
2555
  ) : (
2532
2556
  // Ponyfill
2533
2557
  function(t) {
2534
- return t.replace(cn, "");
2558
+ return t.replace(fn, "");
2535
2559
  }
2536
- ), Sn = yn ? (
2560
+ ), Tn = _n ? (
2537
2561
  // Native
2538
2562
  function(t) {
2539
2563
  return t.trimEnd();
@@ -2541,32 +2565,32 @@ var at = mn ? (
2541
2565
  ) : (
2542
2566
  // Ponyfill
2543
2567
  function(t) {
2544
- return t.replace(fn, "");
2568
+ return t.replace(mn, "");
2545
2569
  }
2546
2570
  );
2547
- function Ft(e, t) {
2571
+ function $t(e, t) {
2548
2572
  return new RegExp(e, t);
2549
2573
  }
2550
2574
  var je;
2551
2575
  if (Ge) {
2552
- var ut = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2576
+ var ht = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2553
2577
  je = function(t, r) {
2554
2578
  var n;
2555
- ut.lastIndex = r;
2556
- var i = ut.exec(t);
2579
+ ht.lastIndex = r;
2580
+ var i = ht.exec(t);
2557
2581
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2558
2582
  };
2559
2583
  } else
2560
2584
  je = function(t, r) {
2561
2585
  for (var n = []; ; ) {
2562
- var i = Ut(t, r);
2563
- if (i === void 0 || Gt(i) || Cn(i))
2586
+ var i = Gt(t, r);
2587
+ if (i === void 0 || jt(i) || Bn(i))
2564
2588
  break;
2565
2589
  n.push(i), r += i >= 65536 ? 2 : 1;
2566
2590
  }
2567
2591
  return $e.apply(void 0, n);
2568
2592
  };
2569
- var Tn = (
2593
+ var An = (
2570
2594
  /** @class */
2571
2595
  function() {
2572
2596
  function e(t, r) {
@@ -2648,7 +2672,7 @@ var Tn = (
2648
2672
  return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
2649
2673
  }, e.prototype.parseTagName = function() {
2650
2674
  var t = this.offset();
2651
- for (this.bump(); !this.isEOF() && Hn(this.char()); )
2675
+ for (this.bump(); !this.isEOF() && Cn(this.char()); )
2652
2676
  this.bump();
2653
2677
  return this.message.slice(t, this.offset());
2654
2678
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2677,7 +2701,7 @@ var Tn = (
2677
2701
  };
2678
2702
  }, e.prototype.tryParseLeftAngleBracket = function() {
2679
2703
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2680
- !An(this.peek() || 0)) ? (this.bump(), "<") : null;
2704
+ !Hn(this.peek() || 0)) ? (this.bump(), "<") : null;
2681
2705
  }, e.prototype.tryParseQuote = function(t) {
2682
2706
  if (this.isEOF() || this.char() !== 39)
2683
2707
  return null;
@@ -2764,7 +2788,7 @@ var Tn = (
2764
2788
  var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2765
2789
  if (c.err)
2766
2790
  return c;
2767
- var f = Sn(c.val);
2791
+ var f = Tn(c.val);
2768
2792
  if (f.length === 0)
2769
2793
  return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
2770
2794
  var E = v(l, this.clonePosition());
@@ -2774,8 +2798,8 @@ var Tn = (
2774
2798
  if (d.err)
2775
2799
  return d;
2776
2800
  var b = v(i, this.clonePosition());
2777
- if (u && at(u?.style, "::", 0)) {
2778
- var g = xn(u.style.slice(2));
2801
+ if (u && ut(u?.style, "::", 0)) {
2802
+ var g = Sn(u.style.slice(2));
2779
2803
  if (o === "number") {
2780
2804
  var c = this.parseNumberSkeletonFromString(g, u.styleLocation);
2781
2805
  return c.err ? c : {
@@ -2786,12 +2810,12 @@ var Tn = (
2786
2810
  if (g.length === 0)
2787
2811
  return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
2788
2812
  var p = g;
2789
- this.locale && (p = ln(g, this.locale));
2813
+ this.locale && (p = hn(g, this.locale));
2790
2814
  var f = {
2791
2815
  type: K.dateTime,
2792
2816
  pattern: p,
2793
2817
  location: u.styleLocation,
2794
- parsedOptions: this.shouldParseSkeletons ? tn(p) : {}
2818
+ parsedOptions: this.shouldParseSkeletons ? rn(p) : {}
2795
2819
  }, T = o === "date" ? A.date : A.time;
2796
2820
  return {
2797
2821
  val: { type: T, value: n, location: b, style: f },
@@ -2837,7 +2861,7 @@ var Tn = (
2837
2861
  val: {
2838
2862
  type: A.select,
2839
2863
  value: n,
2840
- options: ot(U.val),
2864
+ options: lt(U.val),
2841
2865
  location: L
2842
2866
  },
2843
2867
  err: null
@@ -2845,7 +2869,7 @@ var Tn = (
2845
2869
  val: {
2846
2870
  type: A.plural,
2847
2871
  value: n,
2848
- options: ot(U.val),
2872
+ options: lt(U.val),
2849
2873
  offset: C,
2850
2874
  pluralType: o === "plural" ? "cardinal" : "ordinal",
2851
2875
  location: L
@@ -2896,7 +2920,7 @@ var Tn = (
2896
2920
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2897
2921
  var n = [];
2898
2922
  try {
2899
- n = nn(t);
2923
+ n = sn(t);
2900
2924
  } catch {
2901
2925
  return this.error(y.INVALID_NUMBER_SKELETON, r);
2902
2926
  }
@@ -2905,7 +2929,7 @@ var Tn = (
2905
2929
  type: K.number,
2906
2930
  tokens: n,
2907
2931
  location: r,
2908
- parsedOptions: this.shouldParseSkeletons ? un(n) : {}
2932
+ parsedOptions: this.shouldParseSkeletons ? ln(n) : {}
2909
2933
  },
2910
2934
  err: null
2911
2935
  };
@@ -2953,7 +2977,7 @@ var Tn = (
2953
2977
  break;
2954
2978
  }
2955
2979
  var h = v(i, this.clonePosition());
2956
- return s ? (a *= n, En(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
2980
+ return s ? (a *= n, vn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
2957
2981
  }, e.prototype.offset = function() {
2958
2982
  return this.position.offset;
2959
2983
  }, e.prototype.isEOF = function() {
@@ -2968,7 +2992,7 @@ var Tn = (
2968
2992
  var t = this.position.offset;
2969
2993
  if (t >= this.message.length)
2970
2994
  throw Error("out of bound");
2971
- var r = Ut(this.message, t);
2995
+ var r = Gt(this.message, t);
2972
2996
  if (r === void 0)
2973
2997
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2974
2998
  return r;
@@ -2987,7 +3011,7 @@ var Tn = (
2987
3011
  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);
2988
3012
  }
2989
3013
  }, e.prototype.bumpIf = function(t) {
2990
- if (at(this.message, t, this.offset())) {
3014
+ if (ut(this.message, t, this.offset())) {
2991
3015
  for (var r = 0; r < t.length; r++)
2992
3016
  this.bump();
2993
3017
  return !0;
@@ -3009,7 +3033,7 @@ var Tn = (
3009
3033
  break;
3010
3034
  }
3011
3035
  }, e.prototype.bumpSpace = function() {
3012
- for (; !this.isEOF() && Gt(this.char()); )
3036
+ for (; !this.isEOF() && jt(this.char()); )
3013
3037
  this.bump();
3014
3038
  }, e.prototype.peek = function() {
3015
3039
  if (this.isEOF())
@@ -3022,29 +3046,30 @@ var Tn = (
3022
3046
  function Ve(e) {
3023
3047
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3024
3048
  }
3025
- function An(e) {
3049
+ function Hn(e) {
3026
3050
  return Ve(e) || e === 47;
3027
3051
  }
3028
- function Hn(e) {
3052
+ function Cn(e) {
3029
3053
  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;
3030
3054
  }
3031
- function Gt(e) {
3055
+ function jt(e) {
3032
3056
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3033
3057
  }
3034
- function Cn(e) {
3058
+ function Bn(e) {
3035
3059
  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;
3036
3060
  }
3037
3061
  function Je(e) {
3038
3062
  e.forEach(function(t) {
3039
- if (delete t.location, It(t) || Ot(t))
3063
+ if (delete t.location, wt(t) || Mt(t))
3040
3064
  for (var r in t.options)
3041
3065
  delete t.options[r].location, Je(t.options[r].value);
3042
- else Bt(t) && Mt(t.style) || (Nt(t) || Pt(t)) && Fe(t.style) ? delete t.style.location : wt(t) && Je(t.children);
3066
+ else
3067
+ Pt(t) && Lt(t.style) || (It(t) || Ot(t)) && Fe(t.style) ? delete t.style.location : Rt(t) && Je(t.children);
3043
3068
  });
3044
3069
  }
3045
- function Bn(e, t) {
3070
+ function Nn(e, t) {
3046
3071
  t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3047
- var r = new Tn(e, t).parse();
3072
+ var r = new An(e, t).parse();
3048
3073
  if (r.err) {
3049
3074
  var n = SyntaxError(y[r.err.kind]);
3050
3075
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
@@ -3067,7 +3092,7 @@ var xe = (
3067
3092
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3068
3093
  }, t;
3069
3094
  }(Error)
3070
- ), lt = (
3095
+ ), ct = (
3071
3096
  /** @class */
3072
3097
  function(e) {
3073
3098
  ve(t, e);
@@ -3076,7 +3101,7 @@ var xe = (
3076
3101
  }
3077
3102
  return t;
3078
3103
  }(xe)
3079
- ), Nn = (
3104
+ ), Pn = (
3080
3105
  /** @class */
3081
3106
  function(e) {
3082
3107
  ve(t, e);
@@ -3085,7 +3110,7 @@ var xe = (
3085
3110
  }
3086
3111
  return t;
3087
3112
  }(xe)
3088
- ), Pn = (
3113
+ ), In = (
3089
3114
  /** @class */
3090
3115
  function(e) {
3091
3116
  ve(t, e);
@@ -3098,17 +3123,17 @@ var xe = (
3098
3123
  (function(e) {
3099
3124
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3100
3125
  })(w || (w = {}));
3101
- function In(e) {
3126
+ function On(e) {
3102
3127
  return e.length < 2 ? e : e.reduce(function(t, r) {
3103
3128
  var n = t[t.length - 1];
3104
3129
  return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
3105
3130
  }, []);
3106
3131
  }
3107
- function On(e) {
3132
+ function wn(e) {
3108
3133
  return typeof e == "function";
3109
3134
  }
3110
3135
  function ge(e, t, r, n, i, s, a) {
3111
- if (e.length === 1 && rt(e[0]))
3136
+ if (e.length === 1 && it(e[0]))
3112
3137
  return [
3113
3138
  {
3114
3139
  type: w.literal,
@@ -3117,14 +3142,14 @@ function ge(e, t, r, n, i, s, a) {
3117
3142
  ];
3118
3143
  for (var o = [], h = 0, u = e; h < u.length; h++) {
3119
3144
  var l = u[h];
3120
- if (rt(l)) {
3145
+ if (it(l)) {
3121
3146
  o.push({
3122
3147
  type: w.literal,
3123
3148
  value: l.value
3124
3149
  });
3125
3150
  continue;
3126
3151
  }
3127
- if (Kr(l)) {
3152
+ if (en(l)) {
3128
3153
  typeof s == "number" && o.push({
3129
3154
  type: w.literal,
3130
3155
  value: r.getNumberFormat(t).format(s)
@@ -3133,16 +3158,16 @@ function ge(e, t, r, n, i, s, a) {
3133
3158
  }
3134
3159
  var c = l.value;
3135
3160
  if (!(i && c in i))
3136
- throw new Pn(c, a);
3161
+ throw new In(c, a);
3137
3162
  var f = i[c];
3138
- if (Yr(l)) {
3163
+ if (Kr(l)) {
3139
3164
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
3140
3165
  type: typeof f == "string" ? w.literal : w.object,
3141
3166
  value: f
3142
3167
  });
3143
3168
  continue;
3144
3169
  }
3145
- if (Nt(l)) {
3170
+ if (It(l)) {
3146
3171
  var E = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
3147
3172
  o.push({
3148
3173
  type: w.literal,
@@ -3150,7 +3175,7 @@ function ge(e, t, r, n, i, s, a) {
3150
3175
  });
3151
3176
  continue;
3152
3177
  }
3153
- if (Pt(l)) {
3178
+ if (Ot(l)) {
3154
3179
  var E = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
3155
3180
  o.push({
3156
3181
  type: w.literal,
@@ -3158,18 +3183,18 @@ function ge(e, t, r, n, i, s, a) {
3158
3183
  });
3159
3184
  continue;
3160
3185
  }
3161
- if (Bt(l)) {
3162
- var E = typeof l.style == "string" ? n.number[l.style] : Mt(l.style) ? l.style.parsedOptions : void 0;
3186
+ if (Pt(l)) {
3187
+ var E = typeof l.style == "string" ? n.number[l.style] : Lt(l.style) ? l.style.parsedOptions : void 0;
3163
3188
  E && E.scale && (f = f * (E.scale || 1)), o.push({
3164
3189
  type: w.literal,
3165
3190
  value: r.getNumberFormat(t, E).format(f)
3166
3191
  });
3167
3192
  continue;
3168
3193
  }
3169
- if (wt(l)) {
3194
+ if (Rt(l)) {
3170
3195
  var d = l.children, b = l.value, g = i[b];
3171
- if (!On(g))
3172
- throw new Nn(b, "function", a);
3196
+ if (!wn(g))
3197
+ throw new Pn(b, "function", a);
3173
3198
  var p = ge(d, t, r, n, i, s), T = g(p.map(function(C) {
3174
3199
  return C.value;
3175
3200
  }));
@@ -3180,14 +3205,14 @@ function ge(e, t, r, n, i, s, a) {
3180
3205
  };
3181
3206
  }));
3182
3207
  }
3183
- if (It(l)) {
3208
+ if (wt(l)) {
3184
3209
  var P = l.options[f] || l.options.other;
3185
3210
  if (!P)
3186
- throw new lt(l.value, f, Object.keys(l.options), a);
3211
+ throw new ct(l.value, f, Object.keys(l.options), a);
3187
3212
  o.push.apply(o, ge(P.value, t, r, n, i));
3188
3213
  continue;
3189
3214
  }
3190
- if (Ot(l)) {
3215
+ if (Mt(l)) {
3191
3216
  var P = l.options["=".concat(f)];
3192
3217
  if (!P) {
3193
3218
  if (!Intl.PluralRules)
@@ -3198,21 +3223,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3198
3223
  P = l.options[H] || l.options.other;
3199
3224
  }
3200
3225
  if (!P)
3201
- throw new lt(l.value, f, Object.keys(l.options), a);
3226
+ throw new ct(l.value, f, Object.keys(l.options), a);
3202
3227
  o.push.apply(o, ge(P.value, t, r, n, i, f - (l.offset || 0)));
3203
3228
  continue;
3204
3229
  }
3205
3230
  }
3206
- return In(o);
3231
+ return On(o);
3207
3232
  }
3208
- function wn(e, t) {
3233
+ function Mn(e, t) {
3209
3234
  return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3210
3235
  return r[n] = x(x({}, e[n]), t[n] || {}), r;
3211
3236
  }, {})) : e;
3212
3237
  }
3213
- function Mn(e, t) {
3238
+ function Rn(e, t) {
3214
3239
  return t ? Object.keys(e).reduce(function(r, n) {
3215
- return r[n] = wn(e[n], t[n]), r;
3240
+ return r[n] = Mn(e[n], t[n]), r;
3216
3241
  }, x({}, e)) : e;
3217
3242
  }
3218
3243
  function we(e) {
@@ -3229,7 +3254,7 @@ function we(e) {
3229
3254
  }
3230
3255
  };
3231
3256
  }
3232
- function Rn(e) {
3257
+ function Ln(e) {
3233
3258
  return e === void 0 && (e = {
3234
3259
  number: {},
3235
3260
  dateTime: {},
@@ -3261,7 +3286,7 @@ function Rn(e) {
3261
3286
  })
3262
3287
  };
3263
3288
  }
3264
- var Ln = (
3289
+ var Dn = (
3265
3290
  /** @class */
3266
3291
  function() {
3267
3292
  function e(t, r, n, i) {
@@ -3293,13 +3318,13 @@ var Ln = (
3293
3318
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3294
3319
  var a = i || {};
3295
3320
  a.formatters;
3296
- var o = Vr(a, ["formatters"]);
3321
+ var o = zr(a, ["formatters"]);
3297
3322
  this.ast = e.__parse(t, x(x({}, o), { locale: this.resolvedLocale }));
3298
3323
  } else
3299
3324
  this.ast = t;
3300
3325
  if (!Array.isArray(this.ast))
3301
3326
  throw new TypeError("A message must be provided as a String or AST.");
3302
- this.formats = Mn(e.formats, n), this.formatters = i && i.formatters || Rn(this.formatterCache);
3327
+ this.formats = Rn(e.formats, n), this.formatters = i && i.formatters || Ln(this.formatterCache);
3303
3328
  }
3304
3329
  return Object.defineProperty(e, "defaultLocale", {
3305
3330
  get: function() {
@@ -3312,7 +3337,7 @@ var Ln = (
3312
3337
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3313
3338
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3314
3339
  }
3315
- }, e.__parse = Bn, e.formats = {
3340
+ }, e.__parse = Nn, e.formats = {
3316
3341
  number: {
3317
3342
  integer: {
3318
3343
  maximumFractionDigits: 0
@@ -3373,7 +3398,7 @@ var Ln = (
3373
3398
  }, e;
3374
3399
  }()
3375
3400
  );
3376
- function Dn(e, t) {
3401
+ function kn(e, t) {
3377
3402
  if (t == null)
3378
3403
  return;
3379
3404
  if (t in e)
@@ -3394,60 +3419,60 @@ function Dn(e, t) {
3394
3419
  n = void 0;
3395
3420
  return n;
3396
3421
  }
3397
- const z = {}, kn = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), $t = (e, t) => {
3422
+ const z = {}, Un = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), Vt = (e, t) => {
3398
3423
  if (t == null)
3399
3424
  return;
3400
3425
  if (t in z && e in z[t])
3401
3426
  return z[t][e];
3402
3427
  const r = Se(t);
3403
3428
  for (let n = 0; n < r.length; n++) {
3404
- const i = r[n], s = Fn(i, e);
3429
+ const i = r[n], s = Gn(i, e);
3405
3430
  if (s)
3406
- return kn(e, t, s);
3431
+ return Un(e, t, s);
3407
3432
  }
3408
3433
  };
3409
- let Xe;
3434
+ let Qe;
3410
3435
  const me = Ee({});
3411
- function Un(e) {
3412
- return Xe[e] || null;
3436
+ function Fn(e) {
3437
+ return Qe[e] || null;
3413
3438
  }
3414
- function jt(e) {
3415
- return e in Xe;
3439
+ function Jt(e) {
3440
+ return e in Qe;
3416
3441
  }
3417
- function Fn(e, t) {
3418
- if (!jt(e))
3442
+ function Gn(e, t) {
3443
+ if (!Jt(e))
3419
3444
  return null;
3420
- const r = Un(e);
3421
- return Dn(r, t);
3445
+ const r = Fn(e);
3446
+ return kn(r, t);
3422
3447
  }
3423
- function Gn(e) {
3448
+ function $n(e) {
3424
3449
  if (e == null)
3425
3450
  return;
3426
3451
  const t = Se(e);
3427
3452
  for (let r = 0; r < t.length; r++) {
3428
3453
  const n = t[r];
3429
- if (jt(n))
3454
+ if (Jt(n))
3430
3455
  return n;
3431
3456
  }
3432
3457
  }
3433
- function Vt(e, ...t) {
3434
- delete z[e], me.update((r) => (r[e] = jr.all([r[e] || {}, ...t]), r));
3458
+ function zt(e, ...t) {
3459
+ delete z[e], me.update((r) => (r[e] = Jr.all([r[e] || {}, ...t]), r));
3435
3460
  }
3436
3461
  ne(
3437
3462
  [me],
3438
3463
  ([e]) => Object.keys(e)
3439
3464
  );
3440
- me.subscribe((e) => Xe = e);
3465
+ me.subscribe((e) => Qe = e);
3441
3466
  const pe = {};
3442
- function $n(e, t) {
3467
+ function jn(e, t) {
3443
3468
  pe[e].delete(t), pe[e].size === 0 && delete pe[e];
3444
3469
  }
3445
- function Jt(e) {
3470
+ function Wt(e) {
3446
3471
  return pe[e];
3447
3472
  }
3448
- function jn(e) {
3473
+ function Vn(e) {
3449
3474
  return Se(e).map((t) => {
3450
- const r = Jt(t);
3475
+ const r = Wt(t);
3451
3476
  return [t, r ? [...r] : []];
3452
3477
  }).filter(([, t]) => t.length > 0);
3453
3478
  }
@@ -3455,31 +3480,31 @@ function ze(e) {
3455
3480
  return e == null ? !1 : Se(e).some(
3456
3481
  (t) => {
3457
3482
  var r;
3458
- return (r = Jt(t)) == null ? void 0 : r.size;
3483
+ return (r = Wt(t)) == null ? void 0 : r.size;
3459
3484
  }
3460
3485
  );
3461
3486
  }
3462
- function Vn(e, t) {
3487
+ function Jn(e, t) {
3463
3488
  return Promise.all(
3464
- t.map((n) => ($n(e, n), n().then((i) => i.default || i)))
3465
- ).then((n) => Vt(e, ...n));
3489
+ t.map((n) => (jn(e, n), n().then((i) => i.default || i)))
3490
+ ).then((n) => zt(e, ...n));
3466
3491
  }
3467
3492
  const ae = {};
3468
- function zt(e) {
3493
+ function Xt(e) {
3469
3494
  if (!ze(e))
3470
3495
  return e in ae ? ae[e] : Promise.resolve();
3471
- const t = jn(e);
3496
+ const t = Vn(e);
3472
3497
  return ae[e] = Promise.all(
3473
3498
  t.map(
3474
- ([r, n]) => Vn(r, n)
3499
+ ([r, n]) => Jn(r, n)
3475
3500
  )
3476
3501
  ).then(() => {
3477
3502
  if (ze(e))
3478
- return zt(e);
3503
+ return Xt(e);
3479
3504
  delete ae[e];
3480
3505
  }), ae[e];
3481
3506
  }
3482
- const Jn = {
3507
+ const zn = {
3483
3508
  number: {
3484
3509
  scientific: { notation: "scientific" },
3485
3510
  engineering: { notation: "engineering" },
@@ -3508,34 +3533,34 @@ const Jn = {
3508
3533
  timeZoneName: "short"
3509
3534
  }
3510
3535
  }
3511
- }, zn = {
3536
+ }, Wn = {
3512
3537
  fallbackLocale: null,
3513
3538
  loadingDelay: 200,
3514
- formats: Jn,
3539
+ formats: zn,
3515
3540
  warnOnMissingMessages: !0,
3516
3541
  handleMissingMessage: void 0,
3517
3542
  ignoreTag: !0
3518
- }, Wn = zn;
3543
+ }, Xn = Wn;
3519
3544
  function te() {
3520
- return Wn;
3545
+ return Xn;
3521
3546
  }
3522
3547
  const Me = Ee(!1);
3523
- var Xn = Object.defineProperty, Zn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Kn = (e, t) => {
3548
+ var Zn = Object.defineProperty, Qn = Object.defineProperties, qn = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, Yn = Object.prototype.hasOwnProperty, Kn = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ei = (e, t) => {
3524
3549
  for (var r in t || (t = {}))
3525
- qn.call(t, r) && ct(e, r, t[r]);
3526
- if (ht)
3527
- for (var r of ht(t))
3528
- Yn.call(t, r) && ct(e, r, t[r]);
3550
+ Yn.call(t, r) && mt(e, r, t[r]);
3551
+ if (ft)
3552
+ for (var r of ft(t))
3553
+ Kn.call(t, r) && mt(e, r, t[r]);
3529
3554
  return e;
3530
- }, ei = (e, t) => Zn(e, Qn(t));
3555
+ }, ti = (e, t) => Qn(e, qn(t));
3531
3556
  let We;
3532
3557
  const ye = Ee(null);
3533
- function ft(e) {
3558
+ function dt(e) {
3534
3559
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3535
3560
  }
3536
3561
  function Se(e, t = te().fallbackLocale) {
3537
- const r = ft(e);
3538
- return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
3562
+ const r = dt(e);
3563
+ return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
3539
3564
  }
3540
3565
  function W() {
3541
3566
  return We ?? void 0;
@@ -3543,22 +3568,22 @@ function W() {
3543
3568
  ye.subscribe((e) => {
3544
3569
  We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3545
3570
  });
3546
- const ti = (e) => {
3547
- if (e && Gn(e) && ze(e)) {
3571
+ const ri = (e) => {
3572
+ if (e && $n(e) && ze(e)) {
3548
3573
  const { loadingDelay: t } = te();
3549
3574
  let r;
3550
3575
  return typeof window < "u" && W() != null && t ? r = window.setTimeout(
3551
3576
  () => Me.set(!0),
3552
3577
  t
3553
- ) : Me.set(!0), zt(e).then(() => {
3578
+ ) : Me.set(!0), Xt(e).then(() => {
3554
3579
  ye.set(e);
3555
3580
  }).finally(() => {
3556
3581
  clearTimeout(r), Me.set(!1);
3557
3582
  });
3558
3583
  }
3559
3584
  return ye.set(e);
3560
- }, ie = ei(Kn({}, ye), {
3561
- set: ti
3585
+ }, ie = ti(ei({}, ye), {
3586
+ set: ri
3562
3587
  }), Te = (e) => {
3563
3588
  const t = /* @__PURE__ */ Object.create(null);
3564
3589
  return (n) => {
@@ -3566,20 +3591,20 @@ const ti = (e) => {
3566
3591
  return i in t ? t[i] : t[i] = e(n);
3567
3592
  };
3568
3593
  };
3569
- var ri = Object.defineProperty, _e = Object.getOwnPropertySymbols, Wt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
3594
+ var ni = Object.defineProperty, _e = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
3570
3595
  for (var r in t || (t = {}))
3571
- Wt.call(t, r) && mt(e, r, t[r]);
3596
+ Zt.call(t, r) && bt(e, r, t[r]);
3572
3597
  if (_e)
3573
3598
  for (var r of _e(t))
3574
- Xt.call(t, r) && mt(e, r, t[r]);
3599
+ Qt.call(t, r) && bt(e, r, t[r]);
3575
3600
  return e;
3576
3601
  }, se = (e, t) => {
3577
3602
  var r = {};
3578
3603
  for (var n in e)
3579
- Wt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3604
+ Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3580
3605
  if (e != null && _e)
3581
3606
  for (var n of _e(e))
3582
- t.indexOf(n) < 0 && Xt.call(e, n) && (r[n] = e[n]);
3607
+ t.indexOf(n) < 0 && Qt.call(e, n) && (r[n] = e[n]);
3583
3608
  return r;
3584
3609
  };
3585
3610
  const he = (e, t) => {
@@ -3587,21 +3612,21 @@ const he = (e, t) => {
3587
3612
  if (e in r && t in r[e])
3588
3613
  return r[e][t];
3589
3614
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3590
- }, ni = Te(
3615
+ }, ii = Te(
3591
3616
  (e) => {
3592
3617
  var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3593
3618
  if (r == null)
3594
3619
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3595
3620
  return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
3596
3621
  }
3597
- ), ii = Te(
3622
+ ), si = Te(
3598
3623
  (e) => {
3599
3624
  var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3600
3625
  if (r == null)
3601
3626
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3602
3627
  return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
3603
3628
  }
3604
- ), si = Te(
3629
+ ), ai = Te(
3605
3630
  (e) => {
3606
3631
  var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3607
3632
  if (r == null)
@@ -3610,33 +3635,33 @@ const he = (e, t) => {
3610
3635
  );
3611
3636
  return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
3612
3637
  }
3613
- ), ai = (e = {}) => {
3638
+ ), oi = (e = {}) => {
3614
3639
  var t = e, {
3615
3640
  locale: r = W()
3616
3641
  } = t, n = se(t, [
3617
3642
  "locale"
3618
3643
  ]);
3619
- return ni(Ze({ locale: r }, n));
3620
- }, oi = (e = {}) => {
3644
+ return ii(qe({ locale: r }, n));
3645
+ }, ui = (e = {}) => {
3621
3646
  var t = e, {
3622
3647
  locale: r = W()
3623
3648
  } = t, n = se(t, [
3624
3649
  "locale"
3625
3650
  ]);
3626
- return ii(Ze({ locale: r }, n));
3627
- }, ui = (e = {}) => {
3651
+ return si(qe({ locale: r }, n));
3652
+ }, li = (e = {}) => {
3628
3653
  var t = e, {
3629
3654
  locale: r = W()
3630
3655
  } = t, n = se(t, [
3631
3656
  "locale"
3632
3657
  ]);
3633
- return si(Ze({ locale: r }, n));
3634
- }, li = Te(
3658
+ return ai(qe({ locale: r }, n));
3659
+ }, hi = Te(
3635
3660
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3636
- (e, t = W()) => new Ln(e, t, te().formats, {
3661
+ (e, t = W()) => new Dn(e, t, te().formats, {
3637
3662
  ignoreTag: te().ignoreTag
3638
3663
  })
3639
- ), hi = (e, t = {}) => {
3664
+ ), ci = (e, t = {}) => {
3640
3665
  var r, n, i, s;
3641
3666
  let a = t;
3642
3667
  typeof e == "object" && (a = e, e = a.id);
@@ -3649,7 +3674,7 @@ const he = (e, t) => {
3649
3674
  throw new Error(
3650
3675
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3651
3676
  );
3652
- let l = $t(e, h);
3677
+ let l = Vt(e, h);
3653
3678
  if (!l)
3654
3679
  l = (s = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3655
3680
  else if (typeof l != "string")
@@ -3660,7 +3685,7 @@ const he = (e, t) => {
3660
3685
  return l;
3661
3686
  let c = l;
3662
3687
  try {
3663
- c = li(l, h).format(o);
3688
+ c = hi(l, h).format(o);
3664
3689
  } catch (f) {
3665
3690
  f instanceof Error && console.warn(
3666
3691
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3668,18 +3693,18 @@ const he = (e, t) => {
3668
3693
  );
3669
3694
  }
3670
3695
  return c;
3671
- }, ci = (e, t) => ui(t).format(e), fi = (e, t) => oi(t).format(e), mi = (e, t) => ai(t).format(e), di = (e, t = W()) => $t(e, t), bi = ne([ie, me], () => hi);
3672
- ne([ie], () => ci);
3696
+ }, fi = (e, t) => li(t).format(e), mi = (e, t) => ui(t).format(e), di = (e, t) => oi(t).format(e), bi = (e, t = W()) => Vt(e, t), gi = ne([ie, me], () => ci);
3673
3697
  ne([ie], () => fi);
3674
3698
  ne([ie], () => mi);
3675
- ne([ie, me], () => di);
3676
- function dt(e, t) {
3677
- Vt(e, t);
3699
+ ne([ie], () => di);
3700
+ ne([ie, me], () => bi);
3701
+ function gt(e, t) {
3702
+ zt(e, t);
3678
3703
  }
3679
- function gi(e) {
3704
+ function pi(e) {
3680
3705
  ie.set(e);
3681
3706
  }
3682
- const bt = {
3707
+ const pt = {
3683
3708
  en: {
3684
3709
  enrolled: "Enrolled",
3685
3710
  scoreCriteria: "Score Criteria",
@@ -4011,10 +4036,10 @@ const bt = {
4011
4036
  December: "December"
4012
4037
  }
4013
4038
  };
4014
- function pi(e) {
4015
- sr(e, "svelte-1gxooas", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
4039
+ function yi(e) {
4040
+ or(e, "svelte-1gxooas", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
4016
4041
  }
4017
- function gt(e) {
4042
+ function yt(e) {
4018
4043
  let t, r, n, i, s, a;
4019
4044
  return {
4020
4045
  c() {
@@ -4048,28 +4073,28 @@ function gt(e) {
4048
4073
  }
4049
4074
  };
4050
4075
  }
4051
- function pt(e) {
4076
+ function _t(e) {
4052
4077
  let t, r = (
4053
4078
  /*userenrolled*/
4054
- e[5] && yt(e)
4079
+ e[5] && Et(e)
4055
4080
  );
4056
4081
  return {
4057
4082
  c() {
4058
- r && r.c(), t = ur();
4083
+ r && r.c(), t = hr();
4059
4084
  },
4060
4085
  m(n, i) {
4061
4086
  r && r.m(n, i), F(n, t, i);
4062
4087
  },
4063
4088
  p(n, i) {
4064
4089
  /*userenrolled*/
4065
- n[5] ? r ? r.p(n, i) : (r = yt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4090
+ n[5] ? r ? r.p(n, i) : (r = Et(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4066
4091
  },
4067
4092
  d(n) {
4068
4093
  n && k(t), r && r.d(n);
4069
4094
  }
4070
4095
  };
4071
4096
  }
4072
- function yt(e) {
4097
+ function Et(e) {
4073
4098
  let t, r = (
4074
4099
  /*$_*/
4075
4100
  e[16]("enrolled") + ""
@@ -4091,7 +4116,7 @@ function yt(e) {
4091
4116
  }
4092
4117
  };
4093
4118
  }
4094
- function yi(e) {
4119
+ function _i(e) {
4095
4120
  let t, r, n, i, s;
4096
4121
  return {
4097
4122
  c() {
@@ -4121,7 +4146,7 @@ function yi(e) {
4121
4146
  }
4122
4147
  };
4123
4148
  }
4124
- function _i(e) {
4149
+ function Ei(e) {
4125
4150
  let t, r, n, i, s;
4126
4151
  return {
4127
4152
  c() {
@@ -4154,7 +4179,7 @@ function _i(e) {
4154
4179
  }
4155
4180
  };
4156
4181
  }
4157
- function _t(e) {
4182
+ function vt(e) {
4158
4183
  let t, r, n, i, s;
4159
4184
  return {
4160
4185
  c() {
@@ -4190,7 +4215,7 @@ function _t(e) {
4190
4215
  }
4191
4216
  };
4192
4217
  }
4193
- function Et(e) {
4218
+ function xt(e) {
4194
4219
  let t, r, n = (
4195
4220
  /*$_*/
4196
4221
  e[16]("scoreCriteria") + ""
@@ -4229,7 +4254,7 @@ function Et(e) {
4229
4254
  /*matchScoreCriteria*/
4230
4255
  e[19].call(null, a)
4231
4256
  ),
4232
- lr(
4257
+ cr(
4233
4258
  H,
4234
4259
  "click",
4235
4260
  /*click_handler*/
@@ -4271,26 +4296,26 @@ function Et(e) {
4271
4296
  }
4272
4297
  };
4273
4298
  }
4274
- function Ei(e) {
4299
+ function vi(e) {
4275
4300
  let t, r, n, i, s, a, o, h, u, l = (
4276
4301
  /*status*/
4277
- e[0] && gt(e)
4302
+ e[0] && yt(e)
4278
4303
  ), c = (
4279
4304
  /*showenrolled*/
4280
- e[7] == "true" && pt(e)
4305
+ e[7] == "true" && _t(e)
4281
4306
  );
4282
4307
  function f(p, T) {
4283
4308
  return (
4284
4309
  /*thumbnail*/
4285
- p[4] ? _i : yi
4310
+ p[4] ? Ei : _i
4286
4311
  );
4287
4312
  }
4288
4313
  let E = f(e), d = E(e), b = (
4289
4314
  /*startdate*/
4290
- e[2] && _t(e)
4315
+ e[2] && vt(e)
4291
4316
  ), g = (
4292
4317
  /*isLoggedIn*/
4293
- e[12] && Et(e)
4318
+ e[12] && xt(e)
4294
4319
  );
4295
4320
  return {
4296
4321
  c() {
@@ -4304,15 +4329,15 @@ function Ei(e) {
4304
4329
  },
4305
4330
  p(p, T) {
4306
4331
  /*status*/
4307
- p[0] ? l ? l.p(p, T) : (l = gt(p), l.c(), l.m(t, r)) : l && (l.d(1), l = null), /*showenrolled*/
4308
- p[7] == "true" ? c ? c.p(p, T) : (c = pt(p), c.c(), c.m(t, n)) : c && (c.d(1), c = null), E === (E = f(p)) && d ? d.p(p, T) : (d.d(1), d = E(p), d && (d.c(), d.m(t, i))), T[0] & /*title*/
4332
+ p[0] ? l ? l.p(p, T) : (l = yt(p), l.c(), l.m(t, r)) : l && (l.d(1), l = null), /*showenrolled*/
4333
+ p[7] == "true" ? c ? c.p(p, T) : (c = _t(p), c.c(), c.m(t, n)) : c && (c.d(1), c = null), E === (E = f(p)) && d ? d.p(p, T) : (d.d(1), d = E(p), d && (d.c(), d.m(t, i))), T[0] & /*title*/
4309
4334
  2 && G(
4310
4335
  o,
4311
4336
  /*title*/
4312
4337
  p[1]
4313
4338
  ), /*startdate*/
4314
- p[2] ? b ? b.p(p, T) : (b = _t(p), b.c(), b.m(s, u)) : b && (b.d(1), b = null), /*isLoggedIn*/
4315
- p[12] ? g ? g.p(p, T) : (g = Et(p), g.c(), g.m(s, null)) : g && (g.d(1), g = null);
4339
+ p[2] ? b ? b.p(p, T) : (b = vt(p), b.c(), b.m(s, u)) : b && (b.d(1), b = null), /*isLoggedIn*/
4340
+ p[12] ? g ? g.p(p, T) : (g = xt(p), g.c(), g.m(s, null)) : g && (g.d(1), g = null);
4316
4341
  },
4317
4342
  i: D,
4318
4343
  o: D,
@@ -4321,45 +4346,45 @@ function Ei(e) {
4321
4346
  }
4322
4347
  };
4323
4348
  }
4324
- function vi(e, t, r) {
4349
+ function xi(e, t, r) {
4325
4350
  let n;
4326
- ir(e, bi, (m) => r(16, n = m));
4351
+ ar(e, gi, (m) => r(16, n = m));
4327
4352
  let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: o = "" } = t, { status: h = "" } = t, { tourid: u = "" } = t, { thumbnail: l = "" } = t, { userenrolled: c = "" } = t, { scorecriteria: f = "" } = t, { minbetcount: E = "" } = t, { showenrolled: d = "false" } = t, { gameurl: b = "" } = t, { lang: g = "en" } = t, { keepbrowsercontext: p = "false" } = t, { clientstyling: T = "" } = t, { clientstylingurl: P = "" } = t, { translationurl: H = "" } = t, C, U = "", L = !1, $ = "", j = "", B = "";
4328
4353
  const R = () => {
4329
4354
  fetch(H).then((O) => O.json()).then((O) => {
4330
4355
  Object.keys(O).forEach((V) => {
4331
- dt(V, O[V]);
4356
+ gt(V, O[V]);
4332
4357
  });
4333
4358
  }).catch((O) => {
4334
4359
  console.log(O);
4335
4360
  });
4336
4361
  };
4337
- Object.keys(bt).forEach((m) => {
4338
- dt(m, bt[m]);
4362
+ Object.keys(pt).forEach((m) => {
4363
+ gt(m, pt[m]);
4339
4364
  });
4340
- const Qe = (m) => {
4365
+ const Ye = (m) => {
4341
4366
  m.data && (m.data && m.data.type == "SessionID" && r(12, L = !0), m.data.type == `TournamentStatus_${u}` && r(0, h = m.data.status));
4342
4367
  }, Ae = () => {
4343
4368
  const m = { month: "long" };
4344
- let O = new Date(o), V = new Intl.DateTimeFormat("en", m).format(O), er = O.getDate(), tr = O.toLocaleString("en-GB", {
4369
+ let O = new Date(o), V = new Intl.DateTimeFormat("en", m).format(O), rr = O.getDate(), nr = O.toLocaleString("en-GB", {
4345
4370
  hour: "numeric",
4346
4371
  minute: "numeric",
4347
4372
  hour12: !1
4348
4373
  });
4349
- const rr = () => n(h === "Running" ? "startedAt" : "startingAt");
4350
- r(11, U = `${er} ` + n(`${V}`) + ", " + rr() + ` ${tr}`);
4374
+ const ir = () => n(h === "Running" ? "startedAt" : "startingAt");
4375
+ r(11, U = `${rr} ` + n(`${V}`) + ", " + ir() + ` ${nr}`);
4351
4376
  }, He = () => {
4352
4377
  h == "Unstarted" && (r(13, $ = n("scheduled")), r(15, B = "StatusUnstarted")), h == "Running" && (r(13, $ = n("ongoing")), r(15, B = "StatusRunning")), (h == "Closed" || h == "Closing") && r(13, $ = n("finished")), h == "Closed" && r(15, B = "StatusClosed"), h == "Closing" && r(15, B = "StatusClosing");
4353
4378
  }, Ce = () => {
4354
4379
  f == "BetCount" && r(14, j = n("betCount")), f == "MaxWinStakeRatio" && r(14, j = n("maxWinStakeRatio")), f == "WinStakeRatio" && r(14, j = n("winStakeRatio")), f == "Stake" && r(14, j = n("stake"));
4355
- }, qe = (m, O) => {
4380
+ }, Ke = (m, O) => {
4356
4381
  window.postMessage({ type: "tournamentGamesClicked", tourId: O }, window.location.href);
4357
- }, Zt = () => {
4382
+ }, qt = () => {
4358
4383
  i.length > 0 && i != "false" ? r(12, L = !0) : r(12, L = !1);
4359
- }, Qt = () => {
4384
+ }, Yt = () => {
4360
4385
  let m = document.createElement("style");
4361
4386
  m.innerHTML = T, C.appendChild(m);
4362
- }, qt = () => {
4387
+ }, Kt = () => {
4363
4388
  let m = new URL(P), O = document.createElement("style");
4364
4389
  fetch(m.href).then((V) => V.text()).then((V) => {
4365
4390
  O.innerHTML = V, setTimeout(
@@ -4374,13 +4399,13 @@ function vi(e, t, r) {
4374
4399
  );
4375
4400
  });
4376
4401
  };
4377
- mr(() => (setTimeout(() => Ye(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", Qe, !1), () => {
4378
- window.removeEventListener("message", Qe);
4402
+ br(() => (setTimeout(() => et(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", Ye, !1), () => {
4403
+ window.removeEventListener("message", Ye);
4379
4404
  }));
4380
- const Ye = () => {
4381
- gi(g), Ce(), He(), o && Ae();
4382
- }, Yt = () => qe();
4383
- function Kt(m) {
4405
+ const et = () => {
4406
+ pi(g), Ce(), He(), o && Ae();
4407
+ }, er = () => Ke();
4408
+ function tr(m) {
4384
4409
  Le[m ? "unshift" : "push"](() => {
4385
4410
  C = m, r(10, C);
4386
4411
  });
@@ -4389,12 +4414,12 @@ function vi(e, t, r) {
4389
4414
  "session" in m && r(21, i = m.session), "userid" in m && r(22, s = m.userid), "title" in m && r(1, a = m.title), "startdate" in m && r(2, o = m.startdate), "status" in m && r(0, h = m.status), "tourid" in m && r(3, u = m.tourid), "thumbnail" in m && r(4, l = m.thumbnail), "userenrolled" in m && r(5, c = m.userenrolled), "scorecriteria" in m && r(23, f = m.scorecriteria), "minbetcount" in m && r(6, E = m.minbetcount), "showenrolled" in m && r(7, d = m.showenrolled), "gameurl" in m && r(8, b = m.gameurl), "lang" in m && r(24, g = m.lang), "keepbrowsercontext" in m && r(9, p = m.keepbrowsercontext), "clientstyling" in m && r(25, T = m.clientstyling), "clientstylingurl" in m && r(26, P = m.clientstylingurl), "translationurl" in m && r(27, H = m.translationurl);
4390
4415
  }, e.$$.update = () => {
4391
4416
  e.$$.dirty[0] & /*customStylingContainer, clientstyling*/
4392
- 33555456 && C && T && Qt(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
4393
- 67109888 && C && P && qt(), e.$$.dirty[0] & /*translationurl*/
4417
+ 33555456 && C && T && Yt(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
4418
+ 67109888 && C && P && Kt(), e.$$.dirty[0] & /*translationurl*/
4394
4419
  134217728 && H && R(), e.$$.dirty[0] & /*session*/
4395
- 2097152 && i && Zt(), e.$$.dirty[0] & /*status*/
4420
+ 2097152 && i && qt(), e.$$.dirty[0] & /*status*/
4396
4421
  1 && h && He(), e.$$.dirty[0] & /*title, lang*/
4397
- 16777218 && a && g && Ye(), e.$$.dirty[0] & /*startdate*/
4422
+ 16777218 && a && g && et(), e.$$.dirty[0] & /*startdate*/
4398
4423
  4 && o && Ae(), e.$$.dirty[0] & /*scorecriteria*/
4399
4424
  8388608 && f && Ce();
4400
4425
  }, [
@@ -4418,7 +4443,7 @@ function vi(e, t, r) {
4418
4443
  Ae,
4419
4444
  He,
4420
4445
  Ce,
4421
- qe,
4446
+ Ke,
4422
4447
  i,
4423
4448
  s,
4424
4449
  f,
@@ -4426,18 +4451,18 @@ function vi(e, t, r) {
4426
4451
  T,
4427
4452
  P,
4428
4453
  H,
4429
- Yt,
4430
- Kt
4454
+ er,
4455
+ tr
4431
4456
  ];
4432
4457
  }
4433
- class xi extends Ar {
4458
+ class Si extends Cr {
4434
4459
  constructor(t) {
4435
- super(), Sr(
4460
+ super(), Ar(
4436
4461
  this,
4437
4462
  t,
4463
+ xi,
4438
4464
  vi,
4439
- Ei,
4440
- xt,
4465
+ Tt,
4441
4466
  {
4442
4467
  session: 21,
4443
4468
  userid: 22,
@@ -4457,7 +4482,7 @@ class xi extends Ar {
4457
4482
  clientstylingurl: 26,
4458
4483
  translationurl: 27
4459
4484
  },
4460
- pi,
4485
+ yi,
4461
4486
  [-1, -1]
4462
4487
  );
4463
4488
  }
@@ -4564,7 +4589,7 @@ class xi extends Ar {
4564
4589
  this.$$set({ translationurl: t }), N();
4565
4590
  }
4566
4591
  }
4567
- Tr(xi, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4592
+ Hr(Si, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4568
4593
  export {
4569
- xi as C
4594
+ Si as C
4570
4595
  };