@everymatrix/casino-header-bets-button 1.86.4 → 1.86.6

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