@everymatrix/casino-header-bets-button 1.86.2 → 1.86.3

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.
@@ -6,16 +6,16 @@ function tt(e) {
6
6
  function Re() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function q(e) {
9
+ function J(e) {
10
10
  e.forEach(tt);
11
11
  }
12
- function we(e) {
12
+ function Ne(e) {
13
13
  return typeof e == "function";
14
14
  }
15
15
  function rt(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function Ot(e) {
18
+ function Nt(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
21
  function nt(e, ...t) {
@@ -27,16 +27,16 @@ function nt(e, ...t) {
27
27
  const r = e.subscribe(...t);
28
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
29
29
  }
30
- function Nt(e, t, r) {
30
+ function Ot(e, t, r) {
31
31
  e.$$.on_destroy.push(nt(t, r));
32
32
  }
33
- function T(e, t) {
33
+ function S(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
36
  function wt(e, t, r) {
37
37
  const n = It(e);
38
38
  if (!n.getElementById(t)) {
39
- const i = P("style");
39
+ const i = A("style");
40
40
  i.id = t, i.textContent = r, Lt(n, i);
41
41
  }
42
42
  }
@@ -51,7 +51,7 @@ function It(e) {
51
51
  ) : e.ownerDocument;
52
52
  }
53
53
  function Lt(e, t) {
54
- return T(
54
+ return S(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
@@ -60,22 +60,22 @@ function Lt(e, t) {
60
60
  function it(e, t, r) {
61
61
  e.insertBefore(t, r || null);
62
62
  }
63
- function Ie(e) {
63
+ function Oe(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function P(e) {
66
+ function A(e) {
67
67
  return document.createElement(e);
68
68
  }
69
- function Ee(e) {
69
+ function ge(e) {
70
70
  return document.createTextNode(e);
71
71
  }
72
72
  function Ct() {
73
- return Ee(" ");
73
+ return ge(" ");
74
74
  }
75
75
  function $t(e, t, r, n) {
76
76
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
77
77
  }
78
- function $(e, t, r) {
78
+ function C(e, t, r) {
79
79
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
80
80
  }
81
81
  function Rt(e) {
@@ -94,65 +94,65 @@ function Ut(e) {
94
94
  }
95
95
  ), t;
96
96
  }
97
- let Z;
98
- function z(e) {
99
- Z = e;
97
+ let z;
98
+ function W(e) {
99
+ z = e;
100
100
  }
101
101
  function Dt() {
102
- if (!Z)
102
+ if (!z)
103
103
  throw new Error("Function called outside component initialization");
104
- return Z;
104
+ return z;
105
105
  }
106
106
  function Gt(e) {
107
107
  Dt().$$.on_mount.push(e);
108
108
  }
109
- const R = [], xe = [];
110
- let U = [];
109
+ const $ = [], ye = [];
110
+ let R = [];
111
111
  const De = [], Ft = /* @__PURE__ */ Promise.resolve();
112
- let ve = !1;
112
+ let xe = !1;
113
113
  function jt() {
114
- ve || (ve = !0, Ft.then(w));
114
+ xe || (xe = !0, Ft.then(O));
115
115
  }
116
- function _e(e) {
117
- U.push(e);
116
+ function Ee(e) {
117
+ R.push(e);
118
118
  }
119
- const ce = /* @__PURE__ */ new Set();
120
- let L = 0;
121
- function w() {
122
- if (L !== 0)
119
+ const le = /* @__PURE__ */ new Set();
120
+ let I = 0;
121
+ function O() {
122
+ if (I !== 0)
123
123
  return;
124
- const e = Z;
124
+ const e = z;
125
125
  do {
126
126
  try {
127
- for (; L < R.length; ) {
128
- const t = R[L];
129
- L++, z(t), kt(t.$$);
127
+ for (; I < $.length; ) {
128
+ const t = $[I];
129
+ I++, W(t), kt(t.$$);
130
130
  }
131
131
  } catch (t) {
132
- throw R.length = 0, L = 0, t;
132
+ throw $.length = 0, I = 0, t;
133
133
  }
134
- for (z(null), R.length = 0, L = 0; xe.length; )
135
- xe.pop()();
136
- for (let t = 0; t < U.length; t += 1) {
137
- const r = U[t];
138
- ce.has(r) || (ce.add(r), r());
134
+ for (W(null), $.length = 0, I = 0; ye.length; )
135
+ ye.pop()();
136
+ for (let t = 0; t < R.length; t += 1) {
137
+ const r = R[t];
138
+ le.has(r) || (le.add(r), r());
139
139
  }
140
- U.length = 0;
141
- } while (R.length);
140
+ R.length = 0;
141
+ } while ($.length);
142
142
  for (; De.length; )
143
143
  De.pop()();
144
- ve = !1, ce.clear(), z(e);
144
+ xe = !1, le.clear(), W(e);
145
145
  }
146
146
  function kt(e) {
147
147
  if (e.fragment !== null) {
148
- e.update(), q(e.before_update);
148
+ e.update(), J(e.before_update);
149
149
  const t = e.dirty;
150
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_e);
150
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ee);
151
151
  }
152
152
  }
153
153
  function Vt(e) {
154
154
  const t = [], r = [];
155
- U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
155
+ R.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), R = t;
156
156
  }
157
157
  const Xt = /* @__PURE__ */ new Set();
158
158
  function Wt(e, t) {
@@ -160,21 +160,21 @@ function Wt(e, t) {
160
160
  }
161
161
  function zt(e, t, r) {
162
162
  const { fragment: n, after_update: i } = e.$$;
163
- n && n.m(t, r), _e(() => {
164
- const s = e.$$.on_mount.map(tt).filter(we);
165
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : q(s), e.$$.on_mount = [];
166
- }), i.forEach(_e);
163
+ n && n.m(t, r), Ee(() => {
164
+ const s = e.$$.on_mount.map(tt).filter(Ne);
165
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : J(s), e.$$.on_mount = [];
166
+ }), i.forEach(Ee);
167
167
  }
168
168
  function Zt(e, t) {
169
169
  const r = e.$$;
170
- r.fragment !== null && (Vt(r.after_update), q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
170
+ r.fragment !== null && (Vt(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
171
171
  }
172
172
  function Qt(e, t) {
173
- e.$$.dirty[0] === -1 && (R.push(e), jt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
173
+ e.$$.dirty[0] === -1 && ($.push(e), jt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
174
174
  }
175
175
  function Jt(e, t, r, n, i, s, u = null, a = [-1]) {
176
- const l = Z;
177
- z(e);
176
+ const l = z;
177
+ W(e);
178
178
  const o = e.$$ = {
179
179
  fragment: null,
180
180
  ctx: [],
@@ -198,18 +198,18 @@ function Jt(e, t, r, n, i, s, u = null, a = [-1]) {
198
198
  };
199
199
  u && u(o.root);
200
200
  let h = !1;
201
- if (o.ctx = r ? r(e, t.props || {}, (f, c, ...g) => {
202
- const d = g.length ? g[0] : c;
203
- return o.ctx && i(o.ctx[f], o.ctx[f] = d) && (!o.skip_bound && o.bound[f] && o.bound[f](d), h && Qt(e, f)), c;
204
- }) : [], o.update(), h = !0, q(o.before_update), o.fragment = n ? n(o.ctx) : !1, t.target) {
201
+ if (o.ctx = r ? r(e, t.props || {}, (f, c, ...y) => {
202
+ const g = y.length ? y[0] : c;
203
+ return o.ctx && i(o.ctx[f], o.ctx[f] = g) && (!o.skip_bound && o.bound[f] && o.bound[f](g), h && Qt(e, f)), c;
204
+ }) : [], o.update(), h = !0, J(o.before_update), o.fragment = n ? n(o.ctx) : !1, t.target) {
205
205
  if (t.hydrate) {
206
206
  const f = Rt(t.target);
207
- o.fragment && o.fragment.l(f), f.forEach(Ie);
207
+ o.fragment && o.fragment.l(f), f.forEach(Oe);
208
208
  } else
209
209
  o.fragment && o.fragment.c();
210
- t.intro && Wt(e.$$.fragment), zt(e, t.target, t.anchor), w();
210
+ t.intro && Wt(e.$$.fragment), zt(e, t.target, t.anchor), O();
211
211
  }
212
- z(l);
212
+ W(l);
213
213
  }
214
214
  let st;
215
215
  typeof HTMLElement == "function" && (st = class extends HTMLElement {
@@ -254,7 +254,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
254
254
  let s;
255
255
  return {
256
256
  c: function() {
257
- s = P("slot"), i !== "default" && $(s, "name", i);
257
+ s = A("slot"), i !== "default" && C(s, "name", i);
258
258
  },
259
259
  /**
260
260
  * @param {HTMLElement} target
@@ -264,7 +264,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
264
264
  it(l, s, o);
265
265
  },
266
266
  d: function(l) {
267
- l && Ie(s);
267
+ l && Oe(s);
268
268
  }
269
269
  };
270
270
  };
@@ -276,7 +276,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
276
276
  i in r && (t[i] = [e(i)]);
277
277
  for (const i of this.attributes) {
278
278
  const s = this.$$g_p(i.name);
279
- s in this.$$d || (this.$$d[s] = te(s, i.value, this.$$p_d, "toProp"));
279
+ s in this.$$d || (this.$$d[s] = ee(s, i.value, this.$$p_d, "toProp"));
280
280
  }
281
281
  for (const i in this.$$p_d)
282
282
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -294,7 +294,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
294
294
  this.$$r = !0;
295
295
  for (const i in this.$$p_d)
296
296
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
297
- const s = te(
297
+ const s = ee(
298
298
  i,
299
299
  this.$$d[i],
300
300
  this.$$p_d,
@@ -316,7 +316,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
316
316
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
317
317
  // and setting attributes through setAttribute etc, this is helpful
318
318
  attributeChangedCallback(e, t, r) {
319
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = te(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
319
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ee(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
320
320
  }
321
321
  disconnectedCallback() {
322
322
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -329,7 +329,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
329
329
  ) || e;
330
330
  }
331
331
  });
332
- function te(e, t, r, n) {
332
+ function ee(e, t, r, n) {
333
333
  const i = r[e]?.type;
334
334
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
335
335
  return t;
@@ -375,7 +375,7 @@ function qt(e, t, r, n, i, s) {
375
375
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
376
376
  },
377
377
  set(l) {
378
- l = te(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
378
+ l = ee(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
379
379
  }
380
380
  });
381
381
  }), n.forEach((a) => {
@@ -415,7 +415,7 @@ class Yt {
415
415
  * @returns {() => void}
416
416
  */
417
417
  $on(t, r) {
418
- if (!we(r))
418
+ if (!Ne(r))
419
419
  return H;
420
420
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
421
421
  return n.push(r), () => {
@@ -428,7 +428,7 @@ class Yt {
428
428
  * @returns {void}
429
429
  */
430
430
  $set(t) {
431
- this.$$set && !Ot(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
431
+ this.$$set && !Nt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
432
432
  }
433
433
  }
434
434
  const Kt = "4";
@@ -458,24 +458,24 @@ function rr(e, t, r) {
458
458
  });
459
459
  }
460
460
  }
461
- const C = [];
461
+ const L = [];
462
462
  function nr(e, t) {
463
463
  return {
464
- subscribe: ae(e, t).subscribe
464
+ subscribe: se(e, t).subscribe
465
465
  };
466
466
  }
467
- function ae(e, t = H) {
467
+ function se(e, t = H) {
468
468
  let r;
469
469
  const n = /* @__PURE__ */ new Set();
470
470
  function i(a) {
471
471
  if (rt(e, a) && (e = a, r)) {
472
- const l = !C.length;
472
+ const l = !L.length;
473
473
  for (const o of n)
474
- o[1](), C.push(o, e);
474
+ o[1](), L.push(o, e);
475
475
  if (l) {
476
- for (let o = 0; o < C.length; o += 2)
477
- C[o][0](C[o + 1]);
478
- C.length = 0;
476
+ for (let o = 0; o < L.length; o += 2)
477
+ L[o][0](L[o + 1]);
478
+ L.length = 0;
479
479
  }
480
480
  }
481
481
  }
@@ -490,7 +490,7 @@ function ae(e, t = H) {
490
490
  }
491
491
  return { set: i, update: s, subscribe: u };
492
492
  }
493
- function k(e, t, r) {
493
+ function j(e, t, r) {
494
494
  const n = !Array.isArray(e), i = n ? [e] : e;
495
495
  if (!i.every(Boolean))
496
496
  throw new Error("derived() expects stores as input, got a falsy value");
@@ -503,11 +503,11 @@ function k(e, t, r) {
503
503
  if (h)
504
504
  return;
505
505
  f();
506
- const d = t(n ? o[0] : o, u, a);
507
- s ? u(d) : f = we(d) ? d : H;
508
- }, g = i.map(
509
- (d, E) => nt(
510
- d,
506
+ const g = t(n ? o[0] : o, u, a);
507
+ s ? u(g) : f = Ne(g) ? g : H;
508
+ }, y = i.map(
509
+ (g, E) => nt(
510
+ g,
511
511
  (B) => {
512
512
  o[E] = B, h &= ~(1 << E), l && c();
513
513
  },
@@ -517,7 +517,7 @@ function k(e, t, r) {
517
517
  )
518
518
  );
519
519
  return l = !0, c(), function() {
520
- q(g), f(), l = !1;
520
+ J(y), f(), l = !1;
521
521
  };
522
522
  });
523
523
  }
@@ -541,19 +541,19 @@ function lr(e) {
541
541
  function fr(e) {
542
542
  return Array.isArray(e) ? [] : {};
543
543
  }
544
- function Q(e, t) {
545
- return t.clone !== !1 && t.isMergeableObject(e) ? D(fr(e), e, t) : e;
544
+ function Z(e, t) {
545
+ return t.clone !== !1 && t.isMergeableObject(e) ? U(fr(e), e, t) : e;
546
546
  }
547
547
  function cr(e, t, r) {
548
548
  return e.concat(t).map(function(n) {
549
- return Q(n, r);
549
+ return Z(n, r);
550
550
  });
551
551
  }
552
552
  function mr(e, t) {
553
553
  if (!t.customMerge)
554
- return D;
554
+ return U;
555
555
  var r = t.customMerge(e);
556
- return typeof r == "function" ? r : D;
556
+ return typeof r == "function" ? r : U;
557
557
  }
558
558
  function pr(e) {
559
559
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
@@ -576,53 +576,67 @@ function br(e, t) {
576
576
  function dr(e, t, r) {
577
577
  var n = {};
578
578
  return r.isMergeableObject(e) && Ge(e).forEach(function(i) {
579
- n[i] = Q(e[i], r);
579
+ n[i] = Z(e[i], r);
580
580
  }), Ge(t).forEach(function(i) {
581
- br(e, i) || (ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = mr(i, r)(e[i], t[i], r) : n[i] = Q(t[i], r));
581
+ br(e, i) || (ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = mr(i, r)(e[i], t[i], r) : n[i] = Z(t[i], r));
582
582
  }), n;
583
583
  }
584
- function D(e, t, r) {
585
- r = r || {}, r.arrayMerge = r.arrayMerge || cr, r.isMergeableObject = r.isMergeableObject || sr, r.cloneUnlessOtherwiseSpecified = Q;
584
+ function U(e, t, r) {
585
+ r = r || {}, r.arrayMerge = r.arrayMerge || cr, r.isMergeableObject = r.isMergeableObject || sr, r.cloneUnlessOtherwiseSpecified = Z;
586
586
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
587
- return s ? n ? r.arrayMerge(e, t, r) : dr(e, t, r) : Q(t, r);
587
+ return s ? n ? r.arrayMerge(e, t, r) : dr(e, t, r) : Z(t, r);
588
588
  }
589
- D.all = function(t, r) {
589
+ U.all = function(t, r) {
590
590
  if (!Array.isArray(t))
591
591
  throw new Error("first argument should be an array");
592
592
  return t.reduce(function(n, i) {
593
- return D(n, i, r);
593
+ return U(n, i, r);
594
594
  }, {});
595
595
  };
596
- var gr = D, yr = gr;
597
- const Er = /* @__PURE__ */ ir(yr);
598
- var Be = function(e, t) {
599
- return Be = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
596
+ var gr = U, yr = gr;
597
+ const xr = /* @__PURE__ */ ir(yr);
598
+ /*! *****************************************************************************
599
+ Copyright (c) Microsoft Corporation.
600
+
601
+ Permission to use, copy, modify, and/or distribute this software for any
602
+ purpose with or without fee is hereby granted.
603
+
604
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
605
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
606
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
607
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
608
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
609
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
610
+ PERFORMANCE OF THIS SOFTWARE.
611
+ ***************************************************************************** */
612
+ var _e = function(e, t) {
613
+ return _e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
600
614
  r.__proto__ = n;
601
615
  } || function(r, n) {
602
616
  for (var i in n)
603
617
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
604
- }, Be(e, t);
618
+ }, _e(e, t);
605
619
  };
606
- function ue(e, t) {
620
+ function oe(e, t) {
607
621
  if (typeof t != "function" && t !== null)
608
622
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
609
- Be(e, t);
623
+ _e(e, t);
610
624
  function r() {
611
625
  this.constructor = e;
612
626
  }
613
627
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
614
628
  }
615
- var A = function() {
616
- return A = Object.assign || function(t) {
629
+ var d = function() {
630
+ return d = Object.assign || function(t) {
617
631
  for (var r, n = 1, i = arguments.length; n < i; n++) {
618
632
  r = arguments[n];
619
633
  for (var s in r)
620
634
  Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
621
635
  }
622
636
  return t;
623
- }, A.apply(this, arguments);
637
+ }, d.apply(this, arguments);
624
638
  };
625
- function xr(e, t) {
639
+ function Er(e, t) {
626
640
  var r = {};
627
641
  for (var n in e)
628
642
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -631,119 +645,111 @@ function xr(e, t) {
631
645
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
632
646
  return r;
633
647
  }
634
- function me(e, t, r) {
635
- if (r || arguments.length === 2)
648
+ function fe(e, t, r) {
649
+ if (arguments.length === 2)
636
650
  for (var n = 0, i = t.length, s; n < i; n++)
637
651
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
638
- return e.concat(s || Array.prototype.slice.call(t));
652
+ return e.concat(s || t);
639
653
  }
640
- function pe(e, t) {
641
- var r = t && t.cache ? t.cache : Ar, n = t && t.serializer ? t.serializer : Sr, i = t && t.strategy ? t.strategy : Br;
654
+ function ce(e, t) {
655
+ var r = t && t.cache ? t.cache : Sr, n = t && t.serializer ? t.serializer : Tr, i = t && t.strategy ? t.strategy : vr;
642
656
  return i(e, {
643
657
  cache: r,
644
658
  serializer: n
645
659
  });
646
660
  }
647
- function vr(e) {
661
+ function _r(e) {
648
662
  return e == null || typeof e == "number" || typeof e == "boolean";
649
663
  }
650
- function _r(e, t, r, n) {
651
- var i = vr(n) ? n : r(n), s = t.get(i);
664
+ function at(e, t, r, n) {
665
+ var i = _r(n) ? n : r(n), s = t.get(i);
652
666
  return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
653
667
  }
654
- function at(e, t, r) {
668
+ function ut(e, t, r) {
655
669
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
656
670
  return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
657
671
  }
658
- function ut(e, t, r, n, i) {
672
+ function we(e, t, r, n, i) {
659
673
  return r.bind(t, e, n, i);
660
674
  }
675
+ function vr(e, t) {
676
+ var r = e.length === 1 ? at : ut;
677
+ return we(e, this, r, t.cache.create(), t.serializer);
678
+ }
661
679
  function Br(e, t) {
662
- var r = e.length === 1 ? _r : at;
663
- return ut(e, this, r, t.cache.create(), t.serializer);
680
+ return we(e, this, ut, t.cache.create(), t.serializer);
664
681
  }
665
682
  function Hr(e, t) {
666
- return ut(e, this, at, t.cache.create(), t.serializer);
683
+ return we(e, this, at, t.cache.create(), t.serializer);
667
684
  }
668
- var Sr = function() {
685
+ var Tr = function() {
669
686
  return JSON.stringify(arguments);
670
- }, Tr = (
671
- /** @class */
672
- function() {
673
- function e() {
674
- this.cache = /* @__PURE__ */ Object.create(null);
675
- }
676
- return e.prototype.get = function(t) {
677
- return this.cache[t];
678
- }, e.prototype.set = function(t, r) {
679
- this.cache[t] = r;
680
- }, e;
681
- }()
682
- ), Ar = {
687
+ };
688
+ function Ie() {
689
+ this.cache = /* @__PURE__ */ Object.create(null);
690
+ }
691
+ Ie.prototype.get = function(e) {
692
+ return this.cache[e];
693
+ };
694
+ Ie.prototype.set = function(e, t) {
695
+ this.cache[e] = t;
696
+ };
697
+ var Sr = {
683
698
  create: function() {
684
- return new Tr();
699
+ return new Ie();
685
700
  }
686
- }, be = {
687
- variadic: Hr
688
- }, ie = function() {
689
- return ie = Object.assign || function(t) {
690
- for (var r, n = 1, i = arguments.length; n < i; n++) {
691
- r = arguments[n];
692
- for (var s in r)
693
- Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
694
- }
695
- return t;
696
- }, ie.apply(this, arguments);
697
- };
698
- var p;
701
+ }, me = {
702
+ variadic: Br,
703
+ monadic: Hr
704
+ }, p;
699
705
  (function(e) {
700
706
  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";
701
707
  })(p || (p = {}));
702
- var y;
708
+ var x;
703
709
  (function(e) {
704
710
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
705
- })(y || (y = {}));
706
- var G;
711
+ })(x || (x = {}));
712
+ var D;
707
713
  (function(e) {
708
714
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
709
- })(G || (G = {}));
715
+ })(D || (D = {}));
710
716
  function Fe(e) {
711
- return e.type === y.literal;
717
+ return e.type === x.literal;
712
718
  }
713
- function Pr(e) {
714
- return e.type === y.argument;
719
+ function Ar(e) {
720
+ return e.type === x.argument;
715
721
  }
716
722
  function ht(e) {
717
- return e.type === y.number;
723
+ return e.type === x.number;
718
724
  }
719
725
  function lt(e) {
720
- return e.type === y.date;
726
+ return e.type === x.date;
721
727
  }
722
728
  function ft(e) {
723
- return e.type === y.time;
729
+ return e.type === x.time;
724
730
  }
725
731
  function ct(e) {
726
- return e.type === y.select;
732
+ return e.type === x.select;
727
733
  }
728
734
  function mt(e) {
729
- return e.type === y.plural;
735
+ return e.type === x.plural;
730
736
  }
731
737
  function Mr(e) {
732
- return e.type === y.pound;
738
+ return e.type === x.pound;
733
739
  }
734
740
  function pt(e) {
735
- return e.type === y.tag;
741
+ return e.type === x.tag;
736
742
  }
737
743
  function bt(e) {
738
- return !!(e && typeof e == "object" && e.type === G.number);
744
+ return !!(e && typeof e == "object" && e.type === D.number);
739
745
  }
740
- function He(e) {
741
- return !!(e && typeof e == "object" && e.type === G.dateTime);
746
+ function ve(e) {
747
+ return !!(e && typeof e == "object" && e.type === D.dateTime);
742
748
  }
743
- var dt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Or = /(?:[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;
749
+ var dt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pr = /(?:[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;
744
750
  function Nr(e) {
745
751
  var t = {};
746
- return e.replace(Or, function(r) {
752
+ return e.replace(Pr, function(r) {
747
753
  var n = r.length;
748
754
  switch (r[0]) {
749
755
  case "G":
@@ -832,21 +838,11 @@ function Nr(e) {
832
838
  return "";
833
839
  }), t;
834
840
  }
835
- var x = function() {
836
- return x = Object.assign || function(t) {
837
- for (var r, n = 1, i = arguments.length; n < i; n++) {
838
- r = arguments[n];
839
- for (var s in r)
840
- Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
841
- }
842
- return t;
843
- }, x.apply(this, arguments);
844
- };
845
- var wr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
846
- function Ir(e) {
841
+ var Or = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
842
+ function wr(e) {
847
843
  if (e.length === 0)
848
844
  throw new Error("Number skeleton cannot be empty");
849
- for (var t = e.split(wr).filter(function(c) {
845
+ for (var t = e.split(Or).filter(function(c) {
850
846
  return c.length > 0;
851
847
  }), r = [], n = 0, i = t; n < i.length; n++) {
852
848
  var s = i[n], u = s.split("/");
@@ -861,17 +857,17 @@ function Ir(e) {
861
857
  }
862
858
  return r;
863
859
  }
864
- function Lr(e) {
860
+ function Ir(e) {
865
861
  return e.replace(/^(.*?)-/, "");
866
862
  }
867
- var je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gt = /^(@+)?(\+|#+)?[rs]?$/g, Cr = /(\*)(0+)|(#+)(0+)|(0+)/g, yt = /^(0+)$/;
863
+ var je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gt = /^(@+)?(\+|#+)?[rs]?$/g, Lr = /(\*)(0+)|(#+)(0+)|(0+)/g, yt = /^(0+)$/;
868
864
  function ke(e) {
869
865
  var t = {};
870
866
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(gt, function(r, n, i) {
871
867
  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)), "";
872
868
  }), t;
873
869
  }
874
- function Et(e) {
870
+ function xt(e) {
875
871
  switch (e) {
876
872
  case "sign-auto":
877
873
  return {
@@ -911,7 +907,7 @@ function Et(e) {
911
907
  };
912
908
  }
913
909
  }
914
- function $r(e) {
910
+ function Cr(e) {
915
911
  var t;
916
912
  if (e[0] === "E" && e[1] === "E" ? (t = {
917
913
  notation: "engineering"
@@ -926,10 +922,10 @@ function $r(e) {
926
922
  return t;
927
923
  }
928
924
  function Ve(e) {
929
- var t = {}, r = Et(e);
925
+ var t = {}, r = xt(e);
930
926
  return r || t;
931
927
  }
932
- function Rr(e) {
928
+ function $r(e) {
933
929
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
934
930
  var i = n[r];
935
931
  switch (i.stem) {
@@ -953,7 +949,7 @@ function Rr(e) {
953
949
  continue;
954
950
  case "measure-unit":
955
951
  case "unit":
956
- t.style = "unit", t.unit = Lr(i.options[0]);
952
+ t.style = "unit", t.unit = Ir(i.options[0]);
957
953
  continue;
958
954
  case "compact-short":
959
955
  case "K":
@@ -964,13 +960,13 @@ function Rr(e) {
964
960
  t.notation = "compact", t.compactDisplay = "long";
965
961
  continue;
966
962
  case "scientific":
967
- t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, o) {
968
- return x(x({}, l), Ve(o));
963
+ t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(l, o) {
964
+ return d(d({}, l), Ve(o));
969
965
  }, {}));
970
966
  continue;
971
967
  case "engineering":
972
- t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, o) {
973
- return x(x({}, l), Ve(o));
968
+ t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(l, o) {
969
+ return d(d({}, l), Ve(o));
974
970
  }, {}));
975
971
  continue;
976
972
  case "notation-simple":
@@ -1015,13 +1011,13 @@ function Rr(e) {
1015
1011
  case "integer-width":
1016
1012
  if (i.options.length > 1)
1017
1013
  throw new RangeError("integer-width stems only accept a single optional option");
1018
- i.options[0].replace(Cr, function(l, o, h, f, c, g) {
1014
+ i.options[0].replace(Lr, function(l, o, h, f, c, y) {
1019
1015
  if (o)
1020
1016
  t.minimumIntegerDigits = h.length;
1021
1017
  else {
1022
1018
  if (f && c)
1023
1019
  throw new Error("We currently do not support maximum integer digits");
1024
- if (g)
1020
+ if (y)
1025
1021
  throw new Error("We currently do not support exact integer digits");
1026
1022
  }
1027
1023
  return "";
@@ -1035,25 +1031,25 @@ function Rr(e) {
1035
1031
  if (je.test(i.stem)) {
1036
1032
  if (i.options.length > 1)
1037
1033
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1038
- i.stem.replace(je, function(l, o, h, f, c, g) {
1039
- return h === "*" ? t.minimumFractionDigits = o.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && g ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + g.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.length), "";
1034
+ i.stem.replace(je, function(l, o, h, f, c, y) {
1035
+ return h === "*" ? t.minimumFractionDigits = o.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && y ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + y.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.length), "";
1040
1036
  });
1041
1037
  var s = i.options[0];
1042
- s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), ke(s)));
1038
+ s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), ke(s)));
1043
1039
  continue;
1044
1040
  }
1045
1041
  if (gt.test(i.stem)) {
1046
- t = x(x({}, t), ke(i.stem));
1042
+ t = d(d({}, t), ke(i.stem));
1047
1043
  continue;
1048
1044
  }
1049
- var u = Et(i.stem);
1050
- u && (t = x(x({}, t), u));
1051
- var a = $r(i.stem);
1052
- a && (t = x(x({}, t), a));
1045
+ var u = xt(i.stem);
1046
+ u && (t = d(d({}, t), u));
1047
+ var a = Cr(i.stem);
1048
+ a && (t = d(d({}, t), a));
1053
1049
  }
1054
1050
  return t;
1055
1051
  }
1056
- var ee = {
1052
+ var K = {
1057
1053
  "001": [
1058
1054
  "H",
1059
1055
  "h"
@@ -2468,13 +2464,13 @@ var ee = {
2468
2464
  "h"
2469
2465
  ]
2470
2466
  };
2471
- function Ur(e, t) {
2467
+ function Rr(e, t) {
2472
2468
  for (var r = "", n = 0; n < e.length; n++) {
2473
2469
  var i = e.charAt(n);
2474
2470
  if (i === "j") {
2475
2471
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2476
2472
  s++, n++;
2477
- var u = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", o = Dr(t);
2473
+ var u = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", o = Ur(t);
2478
2474
  for ((o == "H" || o == "k") && (a = 0); a-- > 0; )
2479
2475
  r += l;
2480
2476
  for (; u-- > 0; )
@@ -2484,7 +2480,7 @@ function Ur(e, t) {
2484
2480
  }
2485
2481
  return r;
2486
2482
  }
2487
- function Dr(e) {
2483
+ function Ur(e) {
2488
2484
  var t = e.hourCycle;
2489
2485
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2490
2486
  e.hourCycles && // @ts-ignore
@@ -2503,23 +2499,23 @@ function Dr(e) {
2503
2499
  }
2504
2500
  var r = e.language, n;
2505
2501
  r !== "root" && (n = e.maximize().region);
2506
- var i = ee[n || ""] || ee[r || ""] || ee["".concat(r, "-001")] || ee["001"];
2502
+ var i = K[n || ""] || K[r || ""] || K["".concat(r, "-001")] || K["001"];
2507
2503
  return i[0];
2508
2504
  }
2509
- var de, Gr = new RegExp("^".concat(dt.source, "*")), Fr = new RegExp("".concat(dt.source, "*$"));
2505
+ var pe, Dr = new RegExp("^".concat(dt.source, "*")), Gr = new RegExp("".concat(dt.source, "*$"));
2510
2506
  function b(e, t) {
2511
2507
  return { start: e, end: t };
2512
2508
  }
2513
- var jr = !!String.prototype.startsWith && "_a".startsWith("a", 1), kr = !!String.fromCodePoint, Vr = !!Object.fromEntries, Xr = !!String.prototype.codePointAt, Wr = !!String.prototype.trimStart, zr = !!String.prototype.trimEnd, Zr = !!Number.isSafeInteger, Qr = Zr ? Number.isSafeInteger : function(e) {
2509
+ var Fr = !!String.prototype.startsWith && "_a".startsWith("a", 1), jr = !!String.fromCodePoint, kr = !!Object.fromEntries, Vr = !!String.prototype.codePointAt, Xr = !!String.prototype.trimStart, Wr = !!String.prototype.trimEnd, zr = !!Number.isSafeInteger, Zr = zr ? Number.isSafeInteger : function(e) {
2514
2510
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2515
- }, Se = !0;
2511
+ }, Be = !0;
2516
2512
  try {
2517
- var Jr = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2518
- Se = ((de = Jr.exec("a")) === null || de === void 0 ? void 0 : de[0]) === "a";
2513
+ var Qr = _t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2514
+ Be = ((pe = Qr.exec("a")) === null || pe === void 0 ? void 0 : pe[0]) === "a";
2519
2515
  } catch {
2520
- Se = !1;
2516
+ Be = !1;
2521
2517
  }
2522
- var Xe = jr ? (
2518
+ var Xe = Fr ? (
2523
2519
  // Native
2524
2520
  function(t, r, n) {
2525
2521
  return t.startsWith(r, n);
@@ -2529,7 +2525,7 @@ var Xe = jr ? (
2529
2525
  function(t, r, n) {
2530
2526
  return t.slice(n, n + r.length) === r;
2531
2527
  }
2532
- ), Te = kr ? String.fromCodePoint : (
2528
+ ), He = jr ? String.fromCodePoint : (
2533
2529
  // IE11
2534
2530
  function() {
2535
2531
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2543,7 +2539,7 @@ var Xe = jr ? (
2543
2539
  }
2544
2540
  ), We = (
2545
2541
  // native
2546
- Vr ? Object.fromEntries : (
2542
+ kr ? Object.fromEntries : (
2547
2543
  // Ponyfill
2548
2544
  function(t) {
2549
2545
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2553,7 +2549,7 @@ var Xe = jr ? (
2553
2549
  return r;
2554
2550
  }
2555
2551
  )
2556
- ), xt = Xr ? (
2552
+ ), Et = Vr ? (
2557
2553
  // Native
2558
2554
  function(t, r) {
2559
2555
  return t.codePointAt(r);
@@ -2567,7 +2563,7 @@ var Xe = jr ? (
2567
2563
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2568
2564
  }
2569
2565
  }
2570
- ), qr = Wr ? (
2566
+ ), Jr = Xr ? (
2571
2567
  // Native
2572
2568
  function(t) {
2573
2569
  return t.trimStart();
@@ -2575,9 +2571,9 @@ var Xe = jr ? (
2575
2571
  ) : (
2576
2572
  // Ponyfill
2577
2573
  function(t) {
2578
- return t.replace(Gr, "");
2574
+ return t.replace(Dr, "");
2579
2575
  }
2580
- ), Yr = zr ? (
2576
+ ), qr = Wr ? (
2581
2577
  // Native
2582
2578
  function(t) {
2583
2579
  return t.trimEnd();
@@ -2585,32 +2581,32 @@ var Xe = jr ? (
2585
2581
  ) : (
2586
2582
  // Ponyfill
2587
2583
  function(t) {
2588
- return t.replace(Fr, "");
2584
+ return t.replace(Gr, "");
2589
2585
  }
2590
2586
  );
2591
- function vt(e, t) {
2587
+ function _t(e, t) {
2592
2588
  return new RegExp(e, t);
2593
2589
  }
2594
- var Ae;
2595
- if (Se) {
2596
- var ze = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2597
- Ae = function(t, r) {
2590
+ var Te;
2591
+ if (Be) {
2592
+ var ze = _t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2593
+ Te = function(t, r) {
2598
2594
  var n;
2599
2595
  ze.lastIndex = r;
2600
2596
  var i = ze.exec(t);
2601
2597
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2602
2598
  };
2603
2599
  } else
2604
- Ae = function(t, r) {
2600
+ Te = function(t, r) {
2605
2601
  for (var n = []; ; ) {
2606
- var i = xt(t, r);
2607
- if (i === void 0 || _t(i) || rn(i))
2602
+ var i = Et(t, r);
2603
+ if (i === void 0 || vt(i) || tn(i))
2608
2604
  break;
2609
2605
  n.push(i), r += i >= 65536 ? 2 : 1;
2610
2606
  }
2611
- return Te.apply(void 0, n);
2607
+ return He.apply(void 0, n);
2612
2608
  };
2613
- var Kr = (
2609
+ var Yr = (
2614
2610
  /** @class */
2615
2611
  function() {
2616
2612
  function e(t, r) {
@@ -2634,14 +2630,14 @@ var Kr = (
2634
2630
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2635
2631
  var a = this.clonePosition();
2636
2632
  this.bump(), i.push({
2637
- type: y.pound,
2633
+ type: x.pound,
2638
2634
  location: b(a, this.clonePosition())
2639
2635
  });
2640
2636
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2641
2637
  if (n)
2642
2638
  break;
2643
2639
  return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
2644
- } else if (s === 60 && !this.ignoreTag && Pe(this.peek() || 0)) {
2640
+ } else if (s === 60 && !this.ignoreTag && Se(this.peek() || 0)) {
2645
2641
  var u = this.parseTag(t, r);
2646
2642
  if (u.err)
2647
2643
  return u;
@@ -2662,7 +2658,7 @@ var Kr = (
2662
2658
  if (this.bumpSpace(), this.bumpIf("/>"))
2663
2659
  return {
2664
2660
  val: {
2665
- type: y.literal,
2661
+ type: x.literal,
2666
2662
  value: "<".concat(i, "/>"),
2667
2663
  location: b(n, this.clonePosition())
2668
2664
  },
@@ -2674,12 +2670,12 @@ var Kr = (
2674
2670
  return s;
2675
2671
  var u = s.val, a = this.clonePosition();
2676
2672
  if (this.bumpIf("</")) {
2677
- if (this.isEOF() || !Pe(this.char()))
2673
+ if (this.isEOF() || !Se(this.char()))
2678
2674
  return this.error(p.INVALID_TAG, b(a, this.clonePosition()));
2679
2675
  var l = this.clonePosition(), o = this.parseTagName();
2680
2676
  return i !== o ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2681
2677
  val: {
2682
- type: y.tag,
2678
+ type: x.tag,
2683
2679
  value: i,
2684
2680
  children: u,
2685
2681
  location: b(n, this.clonePosition())
@@ -2692,7 +2688,7 @@ var Kr = (
2692
2688
  return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
2693
2689
  }, e.prototype.parseTagName = function() {
2694
2690
  var t = this.offset();
2695
- for (this.bump(); !this.isEOF() && tn(this.char()); )
2691
+ for (this.bump(); !this.isEOF() && en(this.char()); )
2696
2692
  this.bump();
2697
2693
  return this.message.slice(t, this.offset());
2698
2694
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2716,12 +2712,12 @@ var Kr = (
2716
2712
  }
2717
2713
  var l = b(n, this.clonePosition());
2718
2714
  return {
2719
- val: { type: y.literal, value: i, location: l },
2715
+ val: { type: x.literal, value: i, location: l },
2720
2716
  err: null
2721
2717
  };
2722
2718
  }, e.prototype.tryParseLeftAngleBracket = function() {
2723
2719
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2724
- !en(this.peek() || 0)) ? (this.bump(), "<") : null;
2720
+ !Kr(this.peek() || 0)) ? (this.bump(), "<") : null;
2725
2721
  }, e.prototype.tryParseQuote = function(t) {
2726
2722
  if (this.isEOF() || this.char() !== 39)
2727
2723
  return null;
@@ -2755,12 +2751,12 @@ var Kr = (
2755
2751
  r.push(n);
2756
2752
  this.bump();
2757
2753
  }
2758
- return Te.apply(void 0, r);
2754
+ return He.apply(void 0, r);
2759
2755
  }, e.prototype.tryParseUnquoted = function(t, r) {
2760
2756
  if (this.isEOF())
2761
2757
  return null;
2762
2758
  var n = this.char();
2763
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Te(n));
2759
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), He(n));
2764
2760
  }, e.prototype.parseArgument = function(t, r) {
2765
2761
  var n = this.clonePosition();
2766
2762
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2776,7 +2772,7 @@ var Kr = (
2776
2772
  case 125:
2777
2773
  return this.bump(), {
2778
2774
  val: {
2779
- type: y.argument,
2775
+ type: x.argument,
2780
2776
  // value does not include the opening and closing braces.
2781
2777
  value: i,
2782
2778
  location: b(n, this.clonePosition())
@@ -2789,7 +2785,7 @@ var Kr = (
2789
2785
  return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2790
2786
  }
2791
2787
  }, e.prototype.parseIdentifierIfPossible = function() {
2792
- var t = this.clonePosition(), r = this.offset(), n = Ae(this.message, r), i = r + n.length;
2788
+ var t = this.clonePosition(), r = this.offset(), n = Te(this.message, r), i = r + n.length;
2793
2789
  this.bumpTo(i);
2794
2790
  var s = this.clonePosition(), u = b(t, s);
2795
2791
  return { value: n, location: u };
@@ -2808,35 +2804,35 @@ var Kr = (
2808
2804
  var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2809
2805
  if (f.err)
2810
2806
  return f;
2811
- var c = Yr(f.val);
2807
+ var c = qr(f.val);
2812
2808
  if (c.length === 0)
2813
2809
  return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2814
- var g = b(h, this.clonePosition());
2815
- o = { style: c, styleLocation: g };
2810
+ var y = b(h, this.clonePosition());
2811
+ o = { style: c, styleLocation: y };
2816
2812
  }
2817
- var d = this.tryParseArgumentClose(i);
2818
- if (d.err)
2819
- return d;
2813
+ var g = this.tryParseArgumentClose(i);
2814
+ if (g.err)
2815
+ return g;
2820
2816
  var E = b(i, this.clonePosition());
2821
2817
  if (o && Xe(o?.style, "::", 0)) {
2822
- var B = qr(o.style.slice(2));
2818
+ var B = Jr(o.style.slice(2));
2823
2819
  if (a === "number") {
2824
2820
  var f = this.parseNumberSkeletonFromString(B, o.styleLocation);
2825
2821
  return f.err ? f : {
2826
- val: { type: y.number, value: n, location: E, style: f.val },
2822
+ val: { type: x.number, value: n, location: E, style: f.val },
2827
2823
  err: null
2828
2824
  };
2829
2825
  } else {
2830
2826
  if (B.length === 0)
2831
2827
  return this.error(p.EXPECT_DATE_TIME_SKELETON, E);
2832
- var O = B;
2833
- this.locale && (O = Ur(B, this.locale));
2828
+ var P = B;
2829
+ this.locale && (P = Rr(B, this.locale));
2834
2830
  var c = {
2835
- type: G.dateTime,
2836
- pattern: O,
2831
+ type: D.dateTime,
2832
+ pattern: P,
2837
2833
  location: o.styleLocation,
2838
- parsedOptions: this.shouldParseSkeletons ? Nr(O) : {}
2839
- }, m = a === "date" ? y.date : y.time;
2834
+ parsedOptions: this.shouldParseSkeletons ? Nr(P) : {}
2835
+ }, m = a === "date" ? x.date : x.time;
2840
2836
  return {
2841
2837
  val: { type: m, value: n, location: E, style: c },
2842
2838
  err: null
@@ -2845,7 +2841,7 @@ var Kr = (
2845
2841
  }
2846
2842
  return {
2847
2843
  val: {
2848
- type: a === "number" ? y.number : a === "date" ? y.date : y.time,
2844
+ type: a === "number" ? x.number : a === "date" ? x.date : x.time,
2849
2845
  value: n,
2850
2846
  location: E,
2851
2847
  style: (s = o?.style) !== null && s !== void 0 ? s : null
@@ -2856,40 +2852,40 @@ var Kr = (
2856
2852
  case "plural":
2857
2853
  case "selectordinal":
2858
2854
  case "select": {
2859
- var v = this.clonePosition();
2855
+ var _ = this.clonePosition();
2860
2856
  if (this.bumpSpace(), !this.bumpIf(","))
2861
- return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v, ie({}, v)));
2857
+ return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(_, d({}, _)));
2862
2858
  this.bumpSpace();
2863
- var S = this.parseIdentifierIfPossible(), N = 0;
2864
- if (a !== "select" && S.value === "offset") {
2859
+ var T = this.parseIdentifierIfPossible(), N = 0;
2860
+ if (a !== "select" && T.value === "offset") {
2865
2861
  if (!this.bumpIf(":"))
2866
2862
  return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
2867
2863
  this.bumpSpace();
2868
2864
  var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2869
2865
  if (f.err)
2870
2866
  return f;
2871
- this.bumpSpace(), S = this.parseIdentifierIfPossible(), N = f.val;
2867
+ this.bumpSpace(), T = this.parseIdentifierIfPossible(), N = f.val;
2872
2868
  }
2873
- var K = this.tryParsePluralOrSelectOptions(t, a, r, S);
2874
- if (K.err)
2875
- return K;
2876
- var d = this.tryParseArgumentClose(i);
2877
- if (d.err)
2878
- return d;
2869
+ var Y = this.tryParsePluralOrSelectOptions(t, a, r, T);
2870
+ if (Y.err)
2871
+ return Y;
2872
+ var g = this.tryParseArgumentClose(i);
2873
+ if (g.err)
2874
+ return g;
2879
2875
  var $e = b(i, this.clonePosition());
2880
2876
  return a === "select" ? {
2881
2877
  val: {
2882
- type: y.select,
2878
+ type: x.select,
2883
2879
  value: n,
2884
- options: We(K.val),
2880
+ options: We(Y.val),
2885
2881
  location: $e
2886
2882
  },
2887
2883
  err: null
2888
2884
  } : {
2889
2885
  val: {
2890
- type: y.plural,
2886
+ type: x.plural,
2891
2887
  value: n,
2892
- options: We(K.val),
2888
+ options: We(Y.val),
2893
2889
  offset: N,
2894
2890
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2895
2891
  location: $e
@@ -2940,16 +2936,16 @@ var Kr = (
2940
2936
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2941
2937
  var n = [];
2942
2938
  try {
2943
- n = Ir(t);
2939
+ n = wr(t);
2944
2940
  } catch {
2945
2941
  return this.error(p.INVALID_NUMBER_SKELETON, r);
2946
2942
  }
2947
2943
  return {
2948
2944
  val: {
2949
- type: G.number,
2945
+ type: D.number,
2950
2946
  tokens: n,
2951
2947
  location: r,
2952
- parsedOptions: this.shouldParseSkeletons ? Rr(n) : {}
2948
+ parsedOptions: this.shouldParseSkeletons ? $r(n) : {}
2953
2949
  },
2954
2950
  err: null
2955
2951
  };
@@ -2968,20 +2964,20 @@ var Kr = (
2968
2964
  if (l.has(o))
2969
2965
  return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2970
2966
  o === "other" && (u = !0), this.bumpSpace();
2971
- var g = this.clonePosition();
2967
+ var y = this.clonePosition();
2972
2968
  if (!this.bumpIf("{"))
2973
2969
  return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
2974
- var d = this.parseMessage(t + 1, r, n);
2975
- if (d.err)
2976
- return d;
2977
- var E = this.tryParseArgumentClose(g);
2970
+ var g = this.parseMessage(t + 1, r, n);
2971
+ if (g.err)
2972
+ return g;
2973
+ var E = this.tryParseArgumentClose(y);
2978
2974
  if (E.err)
2979
2975
  return E;
2980
2976
  a.push([
2981
2977
  o,
2982
2978
  {
2983
- value: d.val,
2984
- location: b(g, this.clonePosition())
2979
+ value: g.val,
2980
+ location: b(y, this.clonePosition())
2985
2981
  }
2986
2982
  ]), l.add(o), this.bumpSpace(), s = this.parseIdentifierIfPossible(), o = s.value, h = s.location;
2987
2983
  }
@@ -2997,7 +2993,7 @@ var Kr = (
2997
2993
  break;
2998
2994
  }
2999
2995
  var l = b(i, this.clonePosition());
3000
- return s ? (u *= n, Qr(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
2996
+ return s ? (u *= n, Zr(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
3001
2997
  }, e.prototype.offset = function() {
3002
2998
  return this.position.offset;
3003
2999
  }, e.prototype.isEOF = function() {
@@ -3012,7 +3008,7 @@ var Kr = (
3012
3008
  var t = this.position.offset;
3013
3009
  if (t >= this.message.length)
3014
3010
  throw Error("out of bound");
3015
- var r = xt(this.message, t);
3011
+ var r = Et(this.message, t);
3016
3012
  if (r === void 0)
3017
3013
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3018
3014
  return r;
@@ -3053,7 +3049,7 @@ var Kr = (
3053
3049
  break;
3054
3050
  }
3055
3051
  }, e.prototype.bumpSpace = function() {
3056
- for (; !this.isEOF() && _t(this.char()); )
3052
+ for (; !this.isEOF() && vt(this.char()); )
3057
3053
  this.bump();
3058
3054
  }, e.prototype.peek = function() {
3059
3055
  if (this.isEOF())
@@ -3063,47 +3059,47 @@ var Kr = (
3063
3059
  }, e;
3064
3060
  }()
3065
3061
  );
3066
- function Pe(e) {
3062
+ function Se(e) {
3067
3063
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3068
3064
  }
3069
- function en(e) {
3070
- return Pe(e) || e === 47;
3065
+ function Kr(e) {
3066
+ return Se(e) || e === 47;
3071
3067
  }
3072
- function tn(e) {
3068
+ function en(e) {
3073
3069
  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;
3074
3070
  }
3075
- function _t(e) {
3071
+ function vt(e) {
3076
3072
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3077
3073
  }
3078
- function rn(e) {
3074
+ function tn(e) {
3079
3075
  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;
3080
3076
  }
3081
- function Me(e) {
3077
+ function Ae(e) {
3082
3078
  e.forEach(function(t) {
3083
3079
  if (delete t.location, ct(t) || mt(t))
3084
3080
  for (var r in t.options)
3085
- delete t.options[r].location, Me(t.options[r].value);
3081
+ delete t.options[r].location, Ae(t.options[r].value);
3086
3082
  else
3087
- ht(t) && bt(t.style) || (lt(t) || ft(t)) && He(t.style) ? delete t.style.location : pt(t) && Me(t.children);
3083
+ ht(t) && bt(t.style) || (lt(t) || ft(t)) && ve(t.style) ? delete t.style.location : pt(t) && Ae(t.children);
3088
3084
  });
3089
3085
  }
3090
- function nn(e, t) {
3091
- t === void 0 && (t = {}), t = ie({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3092
- var r = new Kr(e, t).parse();
3086
+ function rn(e, t) {
3087
+ t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3088
+ var r = new Yr(e, t).parse();
3093
3089
  if (r.err) {
3094
3090
  var n = SyntaxError(p[r.err.kind]);
3095
3091
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3096
3092
  }
3097
- return t?.captureLocation || Me(r.val), r.val;
3093
+ return t?.captureLocation || Ae(r.val), r.val;
3098
3094
  }
3099
- var F;
3095
+ var G;
3100
3096
  (function(e) {
3101
3097
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3102
- })(F || (F = {}));
3103
- var he = (
3098
+ })(G || (G = {}));
3099
+ var ae = (
3104
3100
  /** @class */
3105
3101
  function(e) {
3106
- ue(t, e);
3102
+ oe(t, e);
3107
3103
  function t(r, n, i) {
3108
3104
  var s = e.call(this, r) || this;
3109
3105
  return s.code = n, s.originalMessage = i, s;
@@ -3115,48 +3111,48 @@ var he = (
3115
3111
  ), Ze = (
3116
3112
  /** @class */
3117
3113
  function(e) {
3118
- ue(t, e);
3114
+ oe(t, e);
3119
3115
  function t(r, n, i, s) {
3120
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), F.INVALID_VALUE, s) || this;
3116
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), G.INVALID_VALUE, s) || this;
3121
3117
  }
3122
3118
  return t;
3123
- }(he)
3124
- ), sn = (
3119
+ }(ae)
3120
+ ), nn = (
3125
3121
  /** @class */
3126
3122
  function(e) {
3127
- ue(t, e);
3123
+ oe(t, e);
3128
3124
  function t(r, n, i) {
3129
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), F.INVALID_VALUE, i) || this;
3125
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), G.INVALID_VALUE, i) || this;
3130
3126
  }
3131
3127
  return t;
3132
- }(he)
3133
- ), on = (
3128
+ }(ae)
3129
+ ), sn = (
3134
3130
  /** @class */
3135
3131
  function(e) {
3136
- ue(t, e);
3132
+ oe(t, e);
3137
3133
  function t(r, n) {
3138
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), F.MISSING_VALUE, n) || this;
3134
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), G.MISSING_VALUE, n) || this;
3139
3135
  }
3140
3136
  return t;
3141
- }(he)
3142
- ), _;
3137
+ }(ae)
3138
+ ), v;
3143
3139
  (function(e) {
3144
3140
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3145
- })(_ || (_ = {}));
3146
- function an(e) {
3141
+ })(v || (v = {}));
3142
+ function on(e) {
3147
3143
  return e.length < 2 ? e : e.reduce(function(t, r) {
3148
3144
  var n = t[t.length - 1];
3149
- return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
3145
+ return !n || n.type !== v.literal || r.type !== v.literal ? t.push(r) : n.value += r.value, t;
3150
3146
  }, []);
3151
3147
  }
3152
- function un(e) {
3148
+ function an(e) {
3153
3149
  return typeof e == "function";
3154
3150
  }
3155
- function re(e, t, r, n, i, s, u) {
3151
+ function te(e, t, r, n, i, s, u) {
3156
3152
  if (e.length === 1 && Fe(e[0]))
3157
3153
  return [
3158
3154
  {
3159
- type: _.literal,
3155
+ type: v.literal,
3160
3156
  value: e[0].value
3161
3157
  }
3162
3158
  ];
@@ -3164,103 +3160,103 @@ function re(e, t, r, n, i, s, u) {
3164
3160
  var h = o[l];
3165
3161
  if (Fe(h)) {
3166
3162
  a.push({
3167
- type: _.literal,
3163
+ type: v.literal,
3168
3164
  value: h.value
3169
3165
  });
3170
3166
  continue;
3171
3167
  }
3172
3168
  if (Mr(h)) {
3173
3169
  typeof s == "number" && a.push({
3174
- type: _.literal,
3170
+ type: v.literal,
3175
3171
  value: r.getNumberFormat(t).format(s)
3176
3172
  });
3177
3173
  continue;
3178
3174
  }
3179
3175
  var f = h.value;
3180
3176
  if (!(i && f in i))
3181
- throw new on(f, u);
3177
+ throw new sn(f, u);
3182
3178
  var c = i[f];
3183
- if (Pr(h)) {
3179
+ if (Ar(h)) {
3184
3180
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3185
- type: typeof c == "string" ? _.literal : _.object,
3181
+ type: typeof c == "string" ? v.literal : v.object,
3186
3182
  value: c
3187
3183
  });
3188
3184
  continue;
3189
3185
  }
3190
3186
  if (lt(h)) {
3191
- var g = typeof h.style == "string" ? n.date[h.style] : He(h.style) ? h.style.parsedOptions : void 0;
3187
+ var y = typeof h.style == "string" ? n.date[h.style] : ve(h.style) ? h.style.parsedOptions : void 0;
3192
3188
  a.push({
3193
- type: _.literal,
3194
- value: r.getDateTimeFormat(t, g).format(c)
3189
+ type: v.literal,
3190
+ value: r.getDateTimeFormat(t, y).format(c)
3195
3191
  });
3196
3192
  continue;
3197
3193
  }
3198
3194
  if (ft(h)) {
3199
- var g = typeof h.style == "string" ? n.time[h.style] : He(h.style) ? h.style.parsedOptions : n.time.medium;
3195
+ var y = typeof h.style == "string" ? n.time[h.style] : ve(h.style) ? h.style.parsedOptions : n.time.medium;
3200
3196
  a.push({
3201
- type: _.literal,
3202
- value: r.getDateTimeFormat(t, g).format(c)
3197
+ type: v.literal,
3198
+ value: r.getDateTimeFormat(t, y).format(c)
3203
3199
  });
3204
3200
  continue;
3205
3201
  }
3206
3202
  if (ht(h)) {
3207
- var g = typeof h.style == "string" ? n.number[h.style] : bt(h.style) ? h.style.parsedOptions : void 0;
3208
- g && g.scale && (c = c * (g.scale || 1)), a.push({
3209
- type: _.literal,
3210
- value: r.getNumberFormat(t, g).format(c)
3203
+ var y = typeof h.style == "string" ? n.number[h.style] : bt(h.style) ? h.style.parsedOptions : void 0;
3204
+ y && y.scale && (c = c * (y.scale || 1)), a.push({
3205
+ type: v.literal,
3206
+ value: r.getNumberFormat(t, y).format(c)
3211
3207
  });
3212
3208
  continue;
3213
3209
  }
3214
3210
  if (pt(h)) {
3215
- var d = h.children, E = h.value, B = i[E];
3216
- if (!un(B))
3217
- throw new sn(E, "function", u);
3218
- var O = re(d, t, r, n, i, s), m = B(O.map(function(N) {
3211
+ var g = h.children, E = h.value, B = i[E];
3212
+ if (!an(B))
3213
+ throw new nn(E, "function", u);
3214
+ var P = te(g, t, r, n, i, s), m = B(P.map(function(N) {
3219
3215
  return N.value;
3220
3216
  }));
3221
3217
  Array.isArray(m) || (m = [m]), a.push.apply(a, m.map(function(N) {
3222
3218
  return {
3223
- type: typeof N == "string" ? _.literal : _.object,
3219
+ type: typeof N == "string" ? v.literal : v.object,
3224
3220
  value: N
3225
3221
  };
3226
3222
  }));
3227
3223
  }
3228
3224
  if (ct(h)) {
3229
- var v = h.options[c] || h.options.other;
3230
- if (!v)
3225
+ var _ = h.options[c] || h.options.other;
3226
+ if (!_)
3231
3227
  throw new Ze(h.value, c, Object.keys(h.options), u);
3232
- a.push.apply(a, re(v.value, t, r, n, i));
3228
+ a.push.apply(a, te(_.value, t, r, n, i));
3233
3229
  continue;
3234
3230
  }
3235
3231
  if (mt(h)) {
3236
- var v = h.options["=".concat(c)];
3237
- if (!v) {
3232
+ var _ = h.options["=".concat(c)];
3233
+ if (!_) {
3238
3234
  if (!Intl.PluralRules)
3239
- throw new he(`Intl.PluralRules is not available in this environment.
3235
+ throw new ae(`Intl.PluralRules is not available in this environment.
3240
3236
  Try polyfilling it using "@formatjs/intl-pluralrules"
3241
- `, F.MISSING_INTL_API, u);
3242
- var S = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3243
- v = h.options[S] || h.options.other;
3237
+ `, G.MISSING_INTL_API, u);
3238
+ var T = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3239
+ _ = h.options[T] || h.options.other;
3244
3240
  }
3245
- if (!v)
3241
+ if (!_)
3246
3242
  throw new Ze(h.value, c, Object.keys(h.options), u);
3247
- a.push.apply(a, re(v.value, t, r, n, i, c - (h.offset || 0)));
3243
+ a.push.apply(a, te(_.value, t, r, n, i, c - (h.offset || 0)));
3248
3244
  continue;
3249
3245
  }
3250
3246
  }
3251
- return an(a);
3247
+ return on(a);
3252
3248
  }
3253
- function hn(e, t) {
3254
- return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3255
- return r[n] = A(A({}, e[n]), t[n] || {}), r;
3249
+ function un(e, t) {
3250
+ return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3251
+ return r[n] = d(d({}, e[n]), t[n] || {}), r;
3256
3252
  }, {})) : e;
3257
3253
  }
3258
- function ln(e, t) {
3254
+ function hn(e, t) {
3259
3255
  return t ? Object.keys(e).reduce(function(r, n) {
3260
- return r[n] = hn(e[n], t[n]), r;
3261
- }, A({}, e)) : e;
3256
+ return r[n] = un(e[n], t[n]), r;
3257
+ }, d({}, e)) : e;
3262
3258
  }
3263
- function ge(e) {
3259
+ function be(e) {
3264
3260
  return {
3265
3261
  create: function() {
3266
3262
  return {
@@ -3274,39 +3270,39 @@ function ge(e) {
3274
3270
  }
3275
3271
  };
3276
3272
  }
3277
- function fn(e) {
3273
+ function ln(e) {
3278
3274
  return e === void 0 && (e = {
3279
3275
  number: {},
3280
3276
  dateTime: {},
3281
3277
  pluralRules: {}
3282
3278
  }), {
3283
- getNumberFormat: pe(function() {
3279
+ getNumberFormat: ce(function() {
3284
3280
  for (var t, r = [], n = 0; n < arguments.length; n++)
3285
3281
  r[n] = arguments[n];
3286
- return new ((t = Intl.NumberFormat).bind.apply(t, me([void 0], r, !1)))();
3282
+ return new ((t = Intl.NumberFormat).bind.apply(t, fe([void 0], r, !1)))();
3287
3283
  }, {
3288
- cache: ge(e.number),
3289
- strategy: be.variadic
3284
+ cache: be(e.number),
3285
+ strategy: me.variadic
3290
3286
  }),
3291
- getDateTimeFormat: pe(function() {
3287
+ getDateTimeFormat: ce(function() {
3292
3288
  for (var t, r = [], n = 0; n < arguments.length; n++)
3293
3289
  r[n] = arguments[n];
3294
- return new ((t = Intl.DateTimeFormat).bind.apply(t, me([void 0], r, !1)))();
3290
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, fe([void 0], r, !1)))();
3295
3291
  }, {
3296
- cache: ge(e.dateTime),
3297
- strategy: be.variadic
3292
+ cache: be(e.dateTime),
3293
+ strategy: me.variadic
3298
3294
  }),
3299
- getPluralRules: pe(function() {
3295
+ getPluralRules: ce(function() {
3300
3296
  for (var t, r = [], n = 0; n < arguments.length; n++)
3301
3297
  r[n] = arguments[n];
3302
- return new ((t = Intl.PluralRules).bind.apply(t, me([void 0], r, !1)))();
3298
+ return new ((t = Intl.PluralRules).bind.apply(t, fe([void 0], r, !1)))();
3303
3299
  }, {
3304
- cache: ge(e.pluralRules),
3305
- strategy: be.variadic
3300
+ cache: be(e.pluralRules),
3301
+ strategy: me.variadic
3306
3302
  })
3307
3303
  };
3308
3304
  }
3309
- var cn = (
3305
+ var fn = (
3310
3306
  /** @class */
3311
3307
  function() {
3312
3308
  function e(t, r, n, i) {
@@ -3321,11 +3317,11 @@ var cn = (
3321
3317
  if (o.length === 1)
3322
3318
  return o[0].value;
3323
3319
  var h = o.reduce(function(f, c) {
3324
- return !f.length || c.type !== _.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3320
+ return !f.length || c.type !== v.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3325
3321
  }, []);
3326
3322
  return h.length <= 1 ? h[0] || "" : h;
3327
3323
  }, this.formatToParts = function(l) {
3328
- return re(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3324
+ return te(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3329
3325
  }, this.resolvedOptions = function() {
3330
3326
  var l;
3331
3327
  return {
@@ -3338,13 +3334,13 @@ var cn = (
3338
3334
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3339
3335
  var u = i || {};
3340
3336
  u.formatters;
3341
- var a = xr(u, ["formatters"]);
3342
- this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
3337
+ var a = Er(u, ["formatters"]);
3338
+ this.ast = e.__parse(t, d(d({}, a), { locale: this.resolvedLocale }));
3343
3339
  } else
3344
3340
  this.ast = t;
3345
3341
  if (!Array.isArray(this.ast))
3346
3342
  throw new TypeError("A message must be provided as a String or AST.");
3347
- this.formats = ln(e.formats, n), this.formatters = i && i.formatters || fn(this.formatterCache);
3343
+ this.formats = hn(e.formats, n), this.formatters = i && i.formatters || ln(this.formatterCache);
3348
3344
  }
3349
3345
  return Object.defineProperty(e, "defaultLocale", {
3350
3346
  get: function() {
@@ -3357,7 +3353,7 @@ var cn = (
3357
3353
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3358
3354
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3359
3355
  }
3360
- }, e.__parse = nn, e.formats = {
3356
+ }, e.__parse = rn, e.formats = {
3361
3357
  number: {
3362
3358
  integer: {
3363
3359
  maximumFractionDigits: 0
@@ -3418,7 +3414,7 @@ var cn = (
3418
3414
  }, e;
3419
3415
  }()
3420
3416
  );
3421
- function mn(e, t) {
3417
+ function cn(e, t) {
3422
3418
  if (t == null)
3423
3419
  return;
3424
3420
  if (t in e)
@@ -3439,92 +3435,92 @@ function mn(e, t) {
3439
3435
  n = void 0;
3440
3436
  return n;
3441
3437
  }
3442
- const M = {}, pn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Bt = (e, t) => {
3438
+ const M = {}, mn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Bt = (e, t) => {
3443
3439
  if (t == null)
3444
3440
  return;
3445
3441
  if (t in M && e in M[t])
3446
3442
  return M[t][e];
3447
- const r = le(t);
3443
+ const r = ue(t);
3448
3444
  for (let n = 0; n < r.length; n++) {
3449
- const i = r[n], s = dn(i, e);
3445
+ const i = r[n], s = bn(i, e);
3450
3446
  if (s)
3451
- return pn(e, t, s);
3447
+ return mn(e, t, s);
3452
3448
  }
3453
3449
  };
3454
3450
  let Le;
3455
- const Y = ae({});
3456
- function bn(e) {
3451
+ const q = se({});
3452
+ function pn(e) {
3457
3453
  return Le[e] || null;
3458
3454
  }
3459
3455
  function Ht(e) {
3460
3456
  return e in Le;
3461
3457
  }
3462
- function dn(e, t) {
3458
+ function bn(e, t) {
3463
3459
  if (!Ht(e))
3464
3460
  return null;
3465
- const r = bn(e);
3466
- return mn(r, t);
3461
+ const r = pn(e);
3462
+ return cn(r, t);
3467
3463
  }
3468
- function gn(e) {
3464
+ function dn(e) {
3469
3465
  if (e == null)
3470
3466
  return;
3471
- const t = le(e);
3467
+ const t = ue(e);
3472
3468
  for (let r = 0; r < t.length; r++) {
3473
3469
  const n = t[r];
3474
3470
  if (Ht(n))
3475
3471
  return n;
3476
3472
  }
3477
3473
  }
3478
- function St(e, ...t) {
3479
- delete M[e], Y.update((r) => (r[e] = Er.all([r[e] || {}, ...t]), r));
3474
+ function Tt(e, ...t) {
3475
+ delete M[e], q.update((r) => (r[e] = xr.all([r[e] || {}, ...t]), r));
3480
3476
  }
3481
- k(
3482
- [Y],
3477
+ j(
3478
+ [q],
3483
3479
  ([e]) => Object.keys(e)
3484
3480
  );
3485
- Y.subscribe((e) => Le = e);
3486
- const ne = {};
3487
- function yn(e, t) {
3488
- ne[e].delete(t), ne[e].size === 0 && delete ne[e];
3481
+ q.subscribe((e) => Le = e);
3482
+ const re = {};
3483
+ function gn(e, t) {
3484
+ re[e].delete(t), re[e].size === 0 && delete re[e];
3489
3485
  }
3490
- function Tt(e) {
3491
- return ne[e];
3486
+ function St(e) {
3487
+ return re[e];
3492
3488
  }
3493
- function En(e) {
3494
- return le(e).map((t) => {
3495
- const r = Tt(t);
3489
+ function yn(e) {
3490
+ return ue(e).map((t) => {
3491
+ const r = St(t);
3496
3492
  return [t, r ? [...r] : []];
3497
3493
  }).filter(([, t]) => t.length > 0);
3498
3494
  }
3499
- function Oe(e) {
3500
- return e == null ? !1 : le(e).some(
3495
+ function Me(e) {
3496
+ return e == null ? !1 : ue(e).some(
3501
3497
  (t) => {
3502
3498
  var r;
3503
- return (r = Tt(t)) == null ? void 0 : r.size;
3499
+ return (r = St(t)) == null ? void 0 : r.size;
3504
3500
  }
3505
3501
  );
3506
3502
  }
3507
3503
  function xn(e, t) {
3508
3504
  return Promise.all(
3509
- t.map((n) => (yn(e, n), n().then((i) => i.default || i)))
3510
- ).then((n) => St(e, ...n));
3505
+ t.map((n) => (gn(e, n), n().then((i) => i.default || i)))
3506
+ ).then((n) => Tt(e, ...n));
3511
3507
  }
3512
- const W = {};
3508
+ const X = {};
3513
3509
  function At(e) {
3514
- if (!Oe(e))
3515
- return e in W ? W[e] : Promise.resolve();
3516
- const t = En(e);
3517
- return W[e] = Promise.all(
3510
+ if (!Me(e))
3511
+ return e in X ? X[e] : Promise.resolve();
3512
+ const t = yn(e);
3513
+ return X[e] = Promise.all(
3518
3514
  t.map(
3519
3515
  ([r, n]) => xn(r, n)
3520
3516
  )
3521
3517
  ).then(() => {
3522
- if (Oe(e))
3518
+ if (Me(e))
3523
3519
  return At(e);
3524
- delete W[e];
3525
- }), W[e];
3520
+ delete X[e];
3521
+ }), X[e];
3526
3522
  }
3527
- const vn = {
3523
+ const En = {
3528
3524
  number: {
3529
3525
  scientific: { notation: "scientific" },
3530
3526
  engineering: { notation: "engineering" },
@@ -3556,138 +3552,138 @@ const vn = {
3556
3552
  }, _n = {
3557
3553
  fallbackLocale: null,
3558
3554
  loadingDelay: 200,
3559
- formats: vn,
3555
+ formats: En,
3560
3556
  warnOnMissingMessages: !0,
3561
3557
  handleMissingMessage: void 0,
3562
3558
  ignoreTag: !0
3563
- }, Bn = _n;
3564
- function j() {
3565
- return Bn;
3559
+ }, vn = _n;
3560
+ function F() {
3561
+ return vn;
3566
3562
  }
3567
- const ye = ae(!1);
3568
- var Hn = Object.defineProperty, Sn = Object.defineProperties, Tn = Object.getOwnPropertyDescriptors, Qe = Object.getOwnPropertySymbols, An = Object.prototype.hasOwnProperty, Pn = Object.prototype.propertyIsEnumerable, Je = (e, t, r) => t in e ? Hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mn = (e, t) => {
3563
+ const de = se(!1);
3564
+ var Bn = Object.defineProperty, Hn = Object.defineProperties, Tn = Object.getOwnPropertyDescriptors, Qe = Object.getOwnPropertySymbols, Sn = Object.prototype.hasOwnProperty, An = Object.prototype.propertyIsEnumerable, Je = (e, t, r) => t in e ? Bn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mn = (e, t) => {
3569
3565
  for (var r in t || (t = {}))
3570
- An.call(t, r) && Je(e, r, t[r]);
3566
+ Sn.call(t, r) && Je(e, r, t[r]);
3571
3567
  if (Qe)
3572
3568
  for (var r of Qe(t))
3573
- Pn.call(t, r) && Je(e, r, t[r]);
3569
+ An.call(t, r) && Je(e, r, t[r]);
3574
3570
  return e;
3575
- }, On = (e, t) => Sn(e, Tn(t));
3576
- let Ne;
3577
- const se = ae(null);
3571
+ }, Pn = (e, t) => Hn(e, Tn(t));
3572
+ let Pe;
3573
+ const ne = se(null);
3578
3574
  function qe(e) {
3579
3575
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3580
3576
  }
3581
- function le(e, t = j().fallbackLocale) {
3577
+ function ue(e, t = F().fallbackLocale) {
3582
3578
  const r = qe(e);
3583
3579
  return t ? [.../* @__PURE__ */ new Set([...r, ...qe(t)])] : r;
3584
3580
  }
3585
- function I() {
3586
- return Ne ?? void 0;
3581
+ function w() {
3582
+ return Pe ?? void 0;
3587
3583
  }
3588
- se.subscribe((e) => {
3589
- Ne = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3584
+ ne.subscribe((e) => {
3585
+ Pe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3590
3586
  });
3591
3587
  const Nn = (e) => {
3592
- if (e && gn(e) && Oe(e)) {
3593
- const { loadingDelay: t } = j();
3588
+ if (e && dn(e) && Me(e)) {
3589
+ const { loadingDelay: t } = F();
3594
3590
  let r;
3595
- return typeof window < "u" && I() != null && t ? r = window.setTimeout(
3596
- () => ye.set(!0),
3591
+ return typeof window < "u" && w() != null && t ? r = window.setTimeout(
3592
+ () => de.set(!0),
3597
3593
  t
3598
- ) : ye.set(!0), At(e).then(() => {
3599
- se.set(e);
3594
+ ) : de.set(!0), At(e).then(() => {
3595
+ ne.set(e);
3600
3596
  }).finally(() => {
3601
- clearTimeout(r), ye.set(!1);
3597
+ clearTimeout(r), de.set(!1);
3602
3598
  });
3603
3599
  }
3604
- return se.set(e);
3605
- }, V = On(Mn({}, se), {
3600
+ return ne.set(e);
3601
+ }, k = Pn(Mn({}, ne), {
3606
3602
  set: Nn
3607
- }), fe = (e) => {
3603
+ }), he = (e) => {
3608
3604
  const t = /* @__PURE__ */ Object.create(null);
3609
3605
  return (n) => {
3610
3606
  const i = JSON.stringify(n);
3611
3607
  return i in t ? t[i] : t[i] = e(n);
3612
3608
  };
3613
3609
  };
3614
- var wn = Object.defineProperty, oe = Object.getOwnPropertySymbols, Pt = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, Ye = (e, t, r) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ce = (e, t) => {
3610
+ var On = Object.defineProperty, ie = Object.getOwnPropertySymbols, Mt = Object.prototype.hasOwnProperty, Pt = Object.prototype.propertyIsEnumerable, Ye = (e, t, r) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ce = (e, t) => {
3615
3611
  for (var r in t || (t = {}))
3616
- Pt.call(t, r) && Ye(e, r, t[r]);
3617
- if (oe)
3618
- for (var r of oe(t))
3619
- Mt.call(t, r) && Ye(e, r, t[r]);
3612
+ Mt.call(t, r) && Ye(e, r, t[r]);
3613
+ if (ie)
3614
+ for (var r of ie(t))
3615
+ Pt.call(t, r) && Ye(e, r, t[r]);
3620
3616
  return e;
3621
- }, X = (e, t) => {
3617
+ }, V = (e, t) => {
3622
3618
  var r = {};
3623
3619
  for (var n in e)
3624
- Pt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3625
- if (e != null && oe)
3626
- for (var n of oe(e))
3627
- t.indexOf(n) < 0 && Mt.call(e, n) && (r[n] = e[n]);
3620
+ Mt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3621
+ if (e != null && ie)
3622
+ for (var n of ie(e))
3623
+ t.indexOf(n) < 0 && Pt.call(e, n) && (r[n] = e[n]);
3628
3624
  return r;
3629
3625
  };
3630
- const J = (e, t) => {
3631
- const { formats: r } = j();
3626
+ const Q = (e, t) => {
3627
+ const { formats: r } = F();
3632
3628
  if (e in r && t in r[e])
3633
3629
  return r[e][t];
3634
3630
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3635
- }, In = fe(
3631
+ }, wn = he(
3636
3632
  (e) => {
3637
- var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
3633
+ var t = e, { locale: r, format: n } = t, i = V(t, ["locale", "format"]);
3638
3634
  if (r == null)
3639
3635
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3640
- return n && (i = J("number", n)), new Intl.NumberFormat(r, i);
3636
+ return n && (i = Q("number", n)), new Intl.NumberFormat(r, i);
3641
3637
  }
3642
- ), Ln = fe(
3638
+ ), In = he(
3643
3639
  (e) => {
3644
- var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
3640
+ var t = e, { locale: r, format: n } = t, i = V(t, ["locale", "format"]);
3645
3641
  if (r == null)
3646
3642
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3647
- return n ? i = J("date", n) : Object.keys(i).length === 0 && (i = J("date", "short")), new Intl.DateTimeFormat(r, i);
3643
+ return n ? i = Q("date", n) : Object.keys(i).length === 0 && (i = Q("date", "short")), new Intl.DateTimeFormat(r, i);
3648
3644
  }
3649
- ), Cn = fe(
3645
+ ), Ln = he(
3650
3646
  (e) => {
3651
- var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
3647
+ var t = e, { locale: r, format: n } = t, i = V(t, ["locale", "format"]);
3652
3648
  if (r == null)
3653
3649
  throw new Error(
3654
3650
  '[svelte-i18n] A "locale" must be set to format time values'
3655
3651
  );
3656
- return n ? i = J("time", n) : Object.keys(i).length === 0 && (i = J("time", "short")), new Intl.DateTimeFormat(r, i);
3652
+ return n ? i = Q("time", n) : Object.keys(i).length === 0 && (i = Q("time", "short")), new Intl.DateTimeFormat(r, i);
3657
3653
  }
3658
- ), $n = (e = {}) => {
3654
+ ), Cn = (e = {}) => {
3659
3655
  var t = e, {
3660
- locale: r = I()
3661
- } = t, n = X(t, [
3656
+ locale: r = w()
3657
+ } = t, n = V(t, [
3662
3658
  "locale"
3663
3659
  ]);
3664
- return In(Ce({ locale: r }, n));
3665
- }, Rn = (e = {}) => {
3660
+ return wn(Ce({ locale: r }, n));
3661
+ }, $n = (e = {}) => {
3666
3662
  var t = e, {
3667
- locale: r = I()
3668
- } = t, n = X(t, [
3663
+ locale: r = w()
3664
+ } = t, n = V(t, [
3669
3665
  "locale"
3670
3666
  ]);
3671
- return Ln(Ce({ locale: r }, n));
3672
- }, Un = (e = {}) => {
3667
+ return In(Ce({ locale: r }, n));
3668
+ }, Rn = (e = {}) => {
3673
3669
  var t = e, {
3674
- locale: r = I()
3675
- } = t, n = X(t, [
3670
+ locale: r = w()
3671
+ } = t, n = V(t, [
3676
3672
  "locale"
3677
3673
  ]);
3678
- return Cn(Ce({ locale: r }, n));
3679
- }, Dn = fe(
3674
+ return Ln(Ce({ locale: r }, n));
3675
+ }, Un = he(
3680
3676
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3681
- (e, t = I()) => new cn(e, t, j().formats, {
3682
- ignoreTag: j().ignoreTag
3677
+ (e, t = w()) => new fn(e, t, F().formats, {
3678
+ ignoreTag: F().ignoreTag
3683
3679
  })
3684
- ), Gn = (e, t = {}) => {
3680
+ ), Dn = (e, t = {}) => {
3685
3681
  var r, n, i, s;
3686
3682
  let u = t;
3687
3683
  typeof e == "object" && (u = e, e = u.id);
3688
3684
  const {
3689
3685
  values: a,
3690
- locale: l = I(),
3686
+ locale: l = w(),
3691
3687
  default: o
3692
3688
  } = u;
3693
3689
  if (l == null)
@@ -3696,7 +3692,7 @@ const J = (e, t) => {
3696
3692
  );
3697
3693
  let h = Bt(e, l);
3698
3694
  if (!h)
3699
- h = (s = (i = (n = (r = j()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
3695
+ h = (s = (i = (n = (r = F()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
3700
3696
  else if (typeof h != "string")
3701
3697
  return console.warn(
3702
3698
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -3705,7 +3701,7 @@ const J = (e, t) => {
3705
3701
  return h;
3706
3702
  let f = h;
3707
3703
  try {
3708
- f = Dn(h, l).format(a);
3704
+ f = Un(h, l).format(a);
3709
3705
  } catch (c) {
3710
3706
  c instanceof Error && console.warn(
3711
3707
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3713,16 +3709,16 @@ const J = (e, t) => {
3713
3709
  );
3714
3710
  }
3715
3711
  return f;
3716
- }, Fn = (e, t) => Un(t).format(e), jn = (e, t) => Rn(t).format(e), kn = (e, t) => $n(t).format(e), Vn = (e, t = I()) => Bt(e, t), Xn = k([V, Y], () => Gn);
3717
- k([V], () => Fn);
3718
- k([V], () => jn);
3719
- k([V], () => kn);
3720
- k([V, Y], () => Vn);
3712
+ }, Gn = (e, t) => Rn(t).format(e), Fn = (e, t) => $n(t).format(e), jn = (e, t) => Cn(t).format(e), kn = (e, t = w()) => Bt(e, t), Vn = j([k, q], () => Dn);
3713
+ j([k], () => Gn);
3714
+ j([k], () => Fn);
3715
+ j([k], () => jn);
3716
+ j([k, q], () => kn);
3721
3717
  function Ke(e, t) {
3722
- St(e, t);
3718
+ Tt(e, t);
3723
3719
  }
3724
- function Wn(e) {
3725
- V.set(e);
3720
+ function Xn(e) {
3721
+ k.set(e);
3726
3722
  }
3727
3723
  const et = {
3728
3724
  en: {
@@ -3765,92 +3761,92 @@ const et = {
3765
3761
  betsButtonString: "My Bets"
3766
3762
  }
3767
3763
  };
3768
- function zn(e) {
3764
+ function Wn(e) {
3769
3765
  wt(e, "svelte-ikpaqv", '.MyBetsButton{cursor:pointer}@container (min-width:991px){.MyBetsButton{margin:0 5px}}.MyBetsButton .MyBetsButtonWrapper{display:flex;align-content:center;justify-content:center;flex-direction:column;background-color:transparent;border:none;width:100%;min-width:60px}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonCount{margin:auto}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonCount .MyBetsCountNumber{background-color:var(--emw--button-contrast-background, #FD2839);height:21px;display:flex;justify-content:center;align-items:center;border-radius:100%;width:22px}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonCount .MyBetsCountNumber p{margin:0;font-size:12px;font-weight:500;color:var(--emw--color-white, #FFFFFF);font-family:var(--emw--font-family, "Roboto")}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonTitle{margin-top:5px;text-align:center}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonTitle p{margin:0;font-size:12px;text-transform:uppercase;font-weight:500;color:var(--emw--color-white, #FFFFFF);font-family:var(--emw--font-family, "Roboto")}');
3770
3766
  }
3771
- function Zn(e) {
3767
+ function zn(e) {
3772
3768
  let t, r, n, i, s, u, a, l, o, h = (
3773
3769
  /*$_*/
3774
3770
  e[2]("betsButtonString") + ""
3775
- ), f, c, g;
3771
+ ), f, c, y;
3776
3772
  return {
3777
3773
  c() {
3778
- t = P("div"), r = P("button"), n = P("div"), i = P("span"), s = P("p"), u = Ee(
3774
+ t = A("div"), r = A("button"), n = A("div"), i = A("span"), s = A("p"), u = ge(
3779
3775
  /*betsData*/
3780
3776
  e[1]
3781
- ), a = Ct(), l = P("div"), o = P("p"), f = Ee(h), $(i, "class", "MyBetsCountNumber"), $(n, "class", "MyBetsButtonCount"), $(l, "class", "MyBetsButtonTitle"), $(r, "class", "MyBetsButtonWrapper"), $(t, "class", "MyBetsButton");
3777
+ ), a = Ct(), l = A("div"), o = A("p"), f = ge(h), C(i, "class", "MyBetsCountNumber"), C(n, "class", "MyBetsButtonCount"), C(l, "class", "MyBetsButtonTitle"), C(r, "class", "MyBetsButtonWrapper"), C(t, "class", "MyBetsButton");
3782
3778
  },
3783
- m(d, E) {
3784
- it(d, t, E), T(t, r), T(r, n), T(n, i), T(i, s), T(s, u), T(r, a), T(r, l), T(l, o), T(o, f), e[10](t), c || (g = $t(
3779
+ m(g, E) {
3780
+ it(g, t, E), S(t, r), S(r, n), S(n, i), S(i, s), S(s, u), S(r, a), S(r, l), S(l, o), S(o, f), e[10](t), c || (y = $t(
3785
3781
  r,
3786
3782
  "click",
3787
3783
  /*click_handler*/
3788
3784
  e[9]
3789
3785
  ), c = !0);
3790
3786
  },
3791
- p(d, [E]) {
3787
+ p(g, [E]) {
3792
3788
  E & /*betsData*/
3793
3789
  2 && Ue(
3794
3790
  u,
3795
3791
  /*betsData*/
3796
- d[1]
3792
+ g[1]
3797
3793
  ), E & /*$_*/
3798
3794
  4 && h !== (h = /*$_*/
3799
- d[2]("betsButtonString") + "") && Ue(f, h);
3795
+ g[2]("betsButtonString") + "") && Ue(f, h);
3800
3796
  },
3801
3797
  i: H,
3802
3798
  o: H,
3803
- d(d) {
3804
- d && Ie(t), e[10](null), c = !1, g();
3799
+ d(g) {
3800
+ g && Oe(t), e[10](null), c = !1, y();
3805
3801
  }
3806
3802
  };
3807
3803
  }
3808
- function Qn(e, t, r) {
3804
+ function Zn(e, t, r) {
3809
3805
  let n;
3810
- Nt(e, Xn, (m) => r(2, n = m));
3806
+ Ot(e, Vn, (m) => r(2, n = m));
3811
3807
  let { lang: i = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: a } = t, { translationurl: l = "" } = t, o, h = 0;
3812
3808
  const f = () => {
3813
- fetch(l).then((v) => v.json()).then((v) => {
3814
- Object.keys(v).forEach((S) => {
3815
- Ke(S, v[S]);
3809
+ fetch(l).then((_) => _.json()).then((_) => {
3810
+ Object.keys(_).forEach((T) => {
3811
+ Ke(T, _[T]);
3816
3812
  });
3817
- }).catch((v) => {
3818
- console.log(v);
3813
+ }).catch((_) => {
3814
+ console.log(_);
3819
3815
  });
3820
3816
  }, c = () => {
3821
- Wn(i);
3822
- }, g = (m, v) => {
3817
+ Xn(i);
3818
+ }, y = (m, _) => {
3823
3819
  o.dispatchEvent(new CustomEvent(
3824
3820
  m,
3825
3821
  {
3826
- detail: v,
3822
+ detail: _,
3827
3823
  composed: !0,
3828
3824
  bubbles: !0
3829
3825
  // propagate across the shadow DOM
3830
3826
  }
3831
3827
  ));
3832
- }, d = () => {
3828
+ }, g = () => {
3833
3829
  window.postMessage({ type: "OMFE:getBetslipSelectionsCount" }, "*");
3834
3830
  }, E = (m) => {
3835
- const { type: v, payload: S } = m.data;
3831
+ const { type: _, payload: T } = m.data;
3836
3832
  if (m.data)
3837
- switch (v) {
3833
+ switch (_) {
3838
3834
  case "OMFE:betslipSelectionsCount":
3839
- r(1, h = S.count), localStorage.setItem("OMFE:betSlipCount", h.toString());
3835
+ r(1, h = T.count), localStorage.setItem("OMFE:betSlipCount", h.toString());
3840
3836
  break;
3841
3837
  }
3842
3838
  };
3843
3839
  Gt(() => {
3844
3840
  const m = localStorage.getItem("OMFE:betSlipCount");
3845
- return r(1, h = m !== null ? Number(m) : 0), d(), window.addEventListener("message", E, !1), () => {
3841
+ return r(1, h = m !== null ? Number(m) : 0), g(), window.addEventListener("message", E, !1), () => {
3846
3842
  window.removeEventListener("message", E);
3847
3843
  };
3848
3844
  }), Object.keys(et).forEach((m) => {
3849
3845
  Ke(m, et[m]);
3850
3846
  });
3851
- const B = (m) => g("betslipClick", {});
3852
- function O(m) {
3853
- xe[m ? "unshift" : "push"](() => {
3847
+ const B = (m) => y("betslipClick", {});
3848
+ function P(m) {
3849
+ ye[m ? "unshift" : "push"](() => {
3854
3850
  o = m, r(0, o);
3855
3851
  });
3856
3852
  }
@@ -3867,23 +3863,23 @@ function Qn(e, t, r) {
3867
3863
  o,
3868
3864
  h,
3869
3865
  n,
3870
- g,
3866
+ y,
3871
3867
  i,
3872
3868
  s,
3873
3869
  u,
3874
3870
  a,
3875
3871
  l,
3876
3872
  B,
3877
- O
3873
+ P
3878
3874
  ];
3879
3875
  }
3880
- class Jn extends Yt {
3876
+ class Qn extends Yt {
3881
3877
  constructor(t) {
3882
3878
  super(), Jt(
3883
3879
  this,
3884
3880
  t,
3885
- Qn,
3886
3881
  Zn,
3882
+ zn,
3887
3883
  rt,
3888
3884
  {
3889
3885
  lang: 4,
@@ -3892,41 +3888,41 @@ class Jn extends Yt {
3892
3888
  mbsource: 7,
3893
3889
  translationurl: 8
3894
3890
  },
3895
- zn
3891
+ Wn
3896
3892
  );
3897
3893
  }
3898
3894
  get lang() {
3899
3895
  return this.$$.ctx[4];
3900
3896
  }
3901
3897
  set lang(t) {
3902
- this.$$set({ lang: t }), w();
3898
+ this.$$set({ lang: t }), O();
3903
3899
  }
3904
3900
  get clientstyling() {
3905
3901
  return this.$$.ctx[5];
3906
3902
  }
3907
3903
  set clientstyling(t) {
3908
- this.$$set({ clientstyling: t }), w();
3904
+ this.$$set({ clientstyling: t }), O();
3909
3905
  }
3910
3906
  get clientstylingurl() {
3911
3907
  return this.$$.ctx[6];
3912
3908
  }
3913
3909
  set clientstylingurl(t) {
3914
- this.$$set({ clientstylingurl: t }), w();
3910
+ this.$$set({ clientstylingurl: t }), O();
3915
3911
  }
3916
3912
  get mbsource() {
3917
3913
  return this.$$.ctx[7];
3918
3914
  }
3919
3915
  set mbsource(t) {
3920
- this.$$set({ mbsource: t }), w();
3916
+ this.$$set({ mbsource: t }), O();
3921
3917
  }
3922
3918
  get translationurl() {
3923
3919
  return this.$$.ctx[8];
3924
3920
  }
3925
3921
  set translationurl(t) {
3926
- this.$$set({ translationurl: t }), w();
3922
+ this.$$set({ translationurl: t }), O();
3927
3923
  }
3928
3924
  }
3929
- qt(Jn, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
3925
+ qt(Qn, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
3930
3926
  export {
3931
- Jn as C
3927
+ Qn as C
3932
3928
  };