@everymatrix/casino-categories-providers 1.59.2 → 1.59.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.
@@ -1,17 +1,17 @@
1
- var tr = Object.defineProperty, rr = Object.defineProperties;
2
- var nr = Object.getOwnPropertyDescriptors;
3
- var Je = Object.getOwnPropertySymbols;
4
- var ir = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable;
5
- var Ce = (e, t, r) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
1
+ var Kt = Object.defineProperty, er = Object.defineProperties;
2
+ var tr = Object.getOwnPropertyDescriptors;
3
+ var Qe = Object.getOwnPropertySymbols;
4
+ var rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable;
5
+ var Ce = (e, t, r) => t in e ? Kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- ir.call(t, r) && Ce(e, r, t[r]);
8
- if (Je)
9
- for (var r of Je(t))
10
- sr.call(t, r) && Ce(e, r, t[r]);
7
+ rr.call(t, r) && Ce(e, r, t[r]);
8
+ if (Qe)
9
+ for (var r of Qe(t))
10
+ nr.call(t, r) && Ce(e, r, t[r]);
11
11
  return e;
12
- }, Ke = (e, t) => rr(e, nr(t));
12
+ }, Je = (e, t) => er(e, tr(t));
13
13
  var L = (e, t, r) => (Ce(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var et = (e, t, r) => new Promise((n, i) => {
14
+ var Ye = (e, t, r) => new Promise((n, i) => {
15
15
  var s = (h) => {
16
16
  try {
17
17
  u(r.next(h));
@@ -29,29 +29,29 @@ var et = (e, t, r) => new Promise((n, i) => {
29
29
  });
30
30
  function I() {
31
31
  }
32
- function Tt(e) {
32
+ function Et(e) {
33
33
  return e();
34
34
  }
35
- function tt() {
35
+ function Ke() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
38
  function ae(e) {
39
- e.forEach(Tt);
39
+ e.forEach(Et);
40
40
  }
41
41
  function Ve(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Ct(e, t) {
44
+ function vt(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
47
  let le;
48
48
  function de(e, t) {
49
49
  return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
50
50
  }
51
- function or(e) {
51
+ function ir(e) {
52
52
  return Object.keys(e).length === 0;
53
53
  }
54
- function Ht(e, ...t) {
54
+ function Tt(e, ...t) {
55
55
  if (e == null) {
56
56
  for (const n of t)
57
57
  n(void 0);
@@ -60,20 +60,20 @@ function Ht(e, ...t) {
60
60
  const r = e.subscribe(...t);
61
61
  return r.unsubscribe ? () => r.unsubscribe() : r;
62
62
  }
63
- function ar(e, t, r) {
64
- e.$$.on_destroy.push(Ht(t, r));
63
+ function sr(e, t, r) {
64
+ e.$$.on_destroy.push(Tt(t, r));
65
65
  }
66
66
  function v(e, t) {
67
67
  e.appendChild(t);
68
68
  }
69
- function ur(e, t, r) {
70
- const n = hr(e);
69
+ function or(e, t, r) {
70
+ const n = ar(e);
71
71
  if (!n.getElementById(t)) {
72
- const i = w("style");
73
- i.id = t, i.textContent = r, lr(n, i);
72
+ const i = O("style");
73
+ i.id = t, i.textContent = r, ur(n, i);
74
74
  }
75
75
  }
76
- function hr(e) {
76
+ function ar(e) {
77
77
  if (!e)
78
78
  return document;
79
79
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -83,7 +83,7 @@ function hr(e) {
83
83
  t
84
84
  ) : e.ownerDocument;
85
85
  }
86
- function lr(e, t) {
86
+ function ur(e, t) {
87
87
  return v(
88
88
  /** @type {Document} */
89
89
  e.head || e,
@@ -96,11 +96,11 @@ function Y(e, t, r) {
96
96
  function j(e) {
97
97
  e.parentNode && e.parentNode.removeChild(e);
98
98
  }
99
- function rt(e, t) {
99
+ function et(e, t) {
100
100
  for (let r = 0; r < e.length; r += 1)
101
101
  e[r] && e[r].d(t);
102
102
  }
103
- function w(e) {
103
+ function O(e) {
104
104
  return document.createElement(e);
105
105
  }
106
106
  function U(e) {
@@ -109,27 +109,27 @@ function U(e) {
109
109
  function R() {
110
110
  return U(" ");
111
111
  }
112
- function Ai() {
112
+ function Hi() {
113
113
  return U("");
114
114
  }
115
- function At(e, t, r, n) {
115
+ function Ct(e, t, r, n) {
116
116
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
117
117
  }
118
118
  function H(e, t, r) {
119
119
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
120
120
  }
121
- function Bi(e, t, r) {
121
+ function Ai(e, t, r) {
122
122
  const n = t.toLowerCase();
123
123
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
124
124
  }
125
- function cr(e) {
125
+ function hr(e) {
126
126
  return Array.from(e.childNodes);
127
127
  }
128
128
  function G(e, t) {
129
129
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
130
130
  t);
131
131
  }
132
- function fr(e) {
132
+ function lr(e) {
133
133
  const t = {};
134
134
  return e.childNodes.forEach(
135
135
  /** @param {Element} node */
@@ -142,20 +142,20 @@ let ie;
142
142
  function ne(e) {
143
143
  ie = e;
144
144
  }
145
- function gr() {
145
+ function fr() {
146
146
  if (!ie)
147
147
  throw new Error("Function called outside component initialization");
148
148
  return ie;
149
149
  }
150
- function mr(e) {
151
- gr().$$.on_mount.push(e);
150
+ function cr(e) {
151
+ fr().$$.on_mount.push(e);
152
152
  }
153
153
  const z = [], Ne = [];
154
154
  let W = [];
155
- const nt = [], pr = /* @__PURE__ */ Promise.resolve();
155
+ const tt = [], gr = /* @__PURE__ */ Promise.resolve();
156
156
  let Le = !1;
157
- function dr() {
158
- Le || (Le = !0, pr.then(M));
157
+ function mr() {
158
+ Le || (Le = !0, gr.then(M));
159
159
  }
160
160
  function Ie(e) {
161
161
  W.push(e);
@@ -170,7 +170,7 @@ function M() {
170
170
  try {
171
171
  for (; V < z.length; ) {
172
172
  const t = z[V];
173
- V++, ne(t), br(t.$$);
173
+ V++, ne(t), pr(t.$$);
174
174
  }
175
175
  } catch (t) {
176
176
  throw z.length = 0, V = 0, t;
@@ -183,43 +183,43 @@ function M() {
183
183
  }
184
184
  W.length = 0;
185
185
  } while (z.length);
186
- for (; nt.length; )
187
- nt.pop()();
186
+ for (; tt.length; )
187
+ tt.pop()();
188
188
  Le = !1, He.clear(), ne(e);
189
189
  }
190
- function br(e) {
190
+ function pr(e) {
191
191
  if (e.fragment !== null) {
192
192
  e.update(), ae(e.before_update);
193
193
  const t = e.dirty;
194
194
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
195
195
  }
196
196
  }
197
- function yr(e) {
197
+ function dr(e) {
198
198
  const t = [], r = [];
199
199
  W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
200
200
  }
201
- const _r = /* @__PURE__ */ new Set();
202
- function xr(e, t) {
203
- e && e.i && (_r.delete(e), e.i(t));
201
+ const br = /* @__PURE__ */ new Set();
202
+ function yr(e, t) {
203
+ e && e.i && (br.delete(e), e.i(t));
204
204
  }
205
- function ce(e) {
205
+ function fe(e) {
206
206
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
207
207
  }
208
- function Er(e, t, r) {
208
+ function _r(e, t, r) {
209
209
  const { fragment: n, after_update: i } = e.$$;
210
210
  n && n.m(t, r), Ie(() => {
211
- const s = e.$$.on_mount.map(Tt).filter(Ve);
211
+ const s = e.$$.on_mount.map(Et).filter(Ve);
212
212
  e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ae(s), e.$$.on_mount = [];
213
213
  }), i.forEach(Ie);
214
214
  }
215
- function vr(e, t) {
215
+ function xr(e, t) {
216
216
  const r = e.$$;
217
- r.fragment !== null && (yr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
217
+ r.fragment !== null && (dr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
218
218
  }
219
- function Tr(e, t) {
220
- e.$$.dirty[0] === -1 && (z.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
219
+ function Er(e, t) {
220
+ e.$$.dirty[0] === -1 && (z.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
221
221
  }
222
- function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
222
+ function vr(e, t, r, n, i, s, o = null, u = [-1]) {
223
223
  const h = ie;
224
224
  ne(e);
225
225
  const a = e.$$ = {
@@ -229,7 +229,7 @@ function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
229
229
  props: s,
230
230
  update: I,
231
231
  not_equal: i,
232
- bound: tt(),
232
+ bound: Ke(),
233
233
  // lifecycle
234
234
  on_mount: [],
235
235
  on_destroy: [],
@@ -238,28 +238,28 @@ function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
238
238
  after_update: [],
239
239
  context: new Map(t.context || (h ? h.$$.context : [])),
240
240
  // everything else
241
- callbacks: tt(),
241
+ callbacks: Ke(),
242
242
  dirty: u,
243
243
  skip_bound: !1,
244
244
  root: t.target || h.$$.root
245
245
  };
246
246
  o && o(a.root);
247
247
  let l = !1;
248
- if (a.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
249
- const d = p.length ? p[0] : c;
250
- return a.ctx && i(a.ctx[f], a.ctx[f] = d) && (!a.skip_bound && a.bound[f] && a.bound[f](d), l && Tr(e, f)), c;
248
+ if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
249
+ const d = p.length ? p[0] : f;
250
+ return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && Er(e, c)), f;
251
251
  }) : [], a.update(), l = !0, ae(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
252
252
  if (t.hydrate) {
253
- const f = cr(t.target);
254
- a.fragment && a.fragment.l(f), f.forEach(j);
253
+ const c = hr(t.target);
254
+ a.fragment && a.fragment.l(c), c.forEach(j);
255
255
  } else
256
256
  a.fragment && a.fragment.c();
257
- t.intro && xr(e.$$.fragment), Er(e, t.target, t.anchor), M();
257
+ t.intro && yr(e.$$.fragment), _r(e, t.target, t.anchor), M();
258
258
  }
259
259
  ne(h);
260
260
  }
261
- let Bt;
262
- typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
261
+ let Ht;
262
+ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
263
263
  constructor(t, r, n) {
264
264
  super();
265
265
  /** The Svelte component constructor */
@@ -296,14 +296,14 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
296
296
  }
297
297
  }
298
298
  connectedCallback() {
299
- return et(this, null, function* () {
299
+ return Ye(this, null, function* () {
300
300
  if (this.$$cn = !0, !this.$$c) {
301
301
  let t = function(s) {
302
302
  return () => {
303
303
  let o;
304
304
  return {
305
305
  c: function() {
306
- o = w("slot"), s !== "default" && H(o, "name", s);
306
+ o = O("slot"), s !== "default" && H(o, "name", s);
307
307
  },
308
308
  /**
309
309
  * @param {HTMLElement} target
@@ -320,7 +320,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
320
320
  };
321
321
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
322
322
  return;
323
- const r = {}, n = fr(this);
323
+ const r = {}, n = lr(this);
324
324
  for (const s of this.$$s)
325
325
  s in n && (r[s] = [t(s)]);
326
326
  for (const s of this.attributes) {
@@ -331,7 +331,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
331
331
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
332
332
  this.$$c = new this.$$ctor({
333
333
  target: this.shadowRoot || this,
334
- props: Ke(Ye({}, this.$$d), {
334
+ props: Je(qe({}, this.$$d), {
335
335
  $$slots: r,
336
336
  $$scope: {
337
337
  ctx: []
@@ -409,8 +409,8 @@ function ge(e, t, r, n) {
409
409
  return t;
410
410
  }
411
411
  }
412
- function Hr(e, t, r, n, i, s) {
413
- let o = class extends Bt {
412
+ function Tr(e, t, r, n, i, s) {
413
+ let o = class extends Ht {
414
414
  constructor() {
415
415
  super(e, r, i), this.$$p_d = t;
416
416
  }
@@ -440,7 +440,7 @@ function Hr(e, t, r, n, i, s) {
440
440
  }), e.element = /** @type {any} */
441
441
  o, o;
442
442
  }
443
- class Ar {
443
+ class Cr {
444
444
  constructor() {
445
445
  /**
446
446
  * ### PRIVATE API
@@ -461,7 +461,7 @@ class Ar {
461
461
  }
462
462
  /** @returns {void} */
463
463
  $destroy() {
464
- vr(this, 1), this.$destroy = I;
464
+ xr(this, 1), this.$destroy = I;
465
465
  }
466
466
  /**
467
467
  * @template {Extract<keyof Events, string>} K
@@ -483,13 +483,13 @@ class Ar {
483
483
  * @returns {void}
484
484
  */
485
485
  $set(t) {
486
- this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
486
+ this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
487
487
  }
488
488
  }
489
- const Br = "4";
490
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
489
+ const Hr = "4";
490
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
491
491
  const X = [];
492
- function Sr(e, t) {
492
+ function Ar(e, t) {
493
493
  return {
494
494
  subscribe: _e(e, t).subscribe
495
495
  };
@@ -498,7 +498,7 @@ function _e(e, t = I) {
498
498
  let r;
499
499
  const n = /* @__PURE__ */ new Set();
500
500
  function i(u) {
501
- if (Ct(e, u) && (e = u, r)) {
501
+ if (vt(e, u) && (e = u, r)) {
502
502
  const h = !X.length;
503
503
  for (const a of n)
504
504
  a[1](), X.push(a, e);
@@ -525,96 +525,96 @@ function K(e, t, r) {
525
525
  if (!i.every(Boolean))
526
526
  throw new Error("derived() expects stores as input, got a falsy value");
527
527
  const s = t.length < 2;
528
- return Sr(r, (o, u) => {
528
+ return Ar(r, (o, u) => {
529
529
  let h = !1;
530
530
  const a = [];
531
- let l = 0, f = I;
532
- const c = () => {
531
+ let l = 0, c = I;
532
+ const f = () => {
533
533
  if (l)
534
534
  return;
535
- f();
535
+ c();
536
536
  const d = t(n ? a[0] : a, o, u);
537
- s ? o(d) : f = Ve(d) ? d : I;
537
+ s ? o(d) : c = Ve(d) ? d : I;
538
538
  }, p = i.map(
539
- (d, g) => Ht(
539
+ (d, g) => Tt(
540
540
  d,
541
541
  (E) => {
542
- a[g] = E, l &= ~(1 << g), h && c();
542
+ a[g] = E, l &= ~(1 << g), h && f();
543
543
  },
544
544
  () => {
545
545
  l |= 1 << g;
546
546
  }
547
547
  )
548
548
  );
549
- return h = !0, c(), function() {
550
- ae(p), f(), h = !1;
549
+ return h = !0, f(), function() {
550
+ ae(p), c(), h = !1;
551
551
  };
552
552
  });
553
553
  }
554
- function wr(e) {
554
+ function Br(e) {
555
555
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
556
556
  }
557
- var Or = function(t) {
558
- return Pr(t) && !Nr(t);
557
+ var Sr = function(t) {
558
+ return Or(t) && !wr(t);
559
559
  };
560
- function Pr(e) {
560
+ function Or(e) {
561
561
  return !!e && typeof e == "object";
562
562
  }
563
- function Nr(e) {
563
+ function wr(e) {
564
564
  var t = Object.prototype.toString.call(e);
565
- return t === "[object RegExp]" || t === "[object Date]" || Mr(e);
565
+ return t === "[object RegExp]" || t === "[object Date]" || Lr(e);
566
566
  }
567
- var Lr = typeof Symbol == "function" && Symbol.for, Ir = Lr ? Symbol.for("react.element") : 60103;
568
- function Mr(e) {
569
- return e.$$typeof === Ir;
567
+ var Pr = typeof Symbol == "function" && Symbol.for, Nr = Pr ? Symbol.for("react.element") : 60103;
568
+ function Lr(e) {
569
+ return e.$$typeof === Nr;
570
570
  }
571
- function $r(e) {
571
+ function Ir(e) {
572
572
  return Array.isArray(e) ? [] : {};
573
573
  }
574
574
  function se(e, t) {
575
- return t.clone !== !1 && t.isMergeableObject(e) ? Z($r(e), e, t) : e;
575
+ return t.clone !== !1 && t.isMergeableObject(e) ? Z(Ir(e), e, t) : e;
576
576
  }
577
- function Rr(e, t, r) {
577
+ function Mr(e, t, r) {
578
578
  return e.concat(t).map(function(n) {
579
579
  return se(n, r);
580
580
  });
581
581
  }
582
- function Ur(e, t) {
582
+ function $r(e, t) {
583
583
  if (!t.customMerge)
584
584
  return Z;
585
585
  var r = t.customMerge(e);
586
586
  return typeof r == "function" ? r : Z;
587
587
  }
588
- function Dr(e) {
588
+ function Rr(e) {
589
589
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
590
590
  return Object.propertyIsEnumerable.call(e, t);
591
591
  }) : [];
592
592
  }
593
- function it(e) {
594
- return Object.keys(e).concat(Dr(e));
593
+ function rt(e) {
594
+ return Object.keys(e).concat(Rr(e));
595
595
  }
596
- function St(e, t) {
596
+ function At(e, t) {
597
597
  try {
598
598
  return t in e;
599
599
  } catch (r) {
600
600
  return !1;
601
601
  }
602
602
  }
603
- function Gr(e, t) {
604
- return St(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
603
+ function Ur(e, t) {
604
+ return At(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
605
605
  }
606
- function Fr(e, t, r) {
606
+ function Dr(e, t, r) {
607
607
  var n = {};
608
- return r.isMergeableObject(e) && it(e).forEach(function(i) {
608
+ return r.isMergeableObject(e) && rt(e).forEach(function(i) {
609
609
  n[i] = se(e[i], r);
610
- }), it(t).forEach(function(i) {
611
- Gr(e, i) || (St(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ur(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
610
+ }), rt(t).forEach(function(i) {
611
+ Ur(e, i) || (At(e, i) && r.isMergeableObject(t[i]) ? n[i] = $r(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
612
612
  }), n;
613
613
  }
614
614
  function Z(e, t, r) {
615
- r = r || {}, r.arrayMerge = r.arrayMerge || Rr, r.isMergeableObject = r.isMergeableObject || Or, r.cloneUnlessOtherwiseSpecified = se;
615
+ r = r || {}, r.arrayMerge = r.arrayMerge || Mr, r.isMergeableObject = r.isMergeableObject || Sr, r.cloneUnlessOtherwiseSpecified = se;
616
616
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
617
- return s ? n ? r.arrayMerge(e, t, r) : Fr(e, t, r) : se(t, r);
617
+ return s ? n ? r.arrayMerge(e, t, r) : Dr(e, t, r) : se(t, r);
618
618
  }
619
619
  Z.all = function(t, r) {
620
620
  if (!Array.isArray(t))
@@ -623,8 +623,8 @@ Z.all = function(t, r) {
623
623
  return Z(n, i, r);
624
624
  }, {});
625
625
  };
626
- var jr = Z, kr = jr;
627
- const Vr = /* @__PURE__ */ wr(kr);
626
+ var Gr = Z, Fr = Gr;
627
+ const jr = /* @__PURE__ */ Br(Fr);
628
628
  /*! *****************************************************************************
629
629
  Copyright (c) Microsoft Corporation.
630
630
 
@@ -666,7 +666,7 @@ var x = function() {
666
666
  return t;
667
667
  }, x.apply(this, arguments);
668
668
  };
669
- function Xr(e, t) {
669
+ function kr(e, t) {
670
670
  var r = {};
671
671
  for (var n in e)
672
672
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -682,55 +682,53 @@ function Ae(e, t, r) {
682
682
  return e.concat(s || t);
683
683
  }
684
684
  function Be(e, t) {
685
- var r = t && t.cache ? t.cache : Jr, n = t && t.serializer ? t.serializer : qr, i = t && t.strategy ? t.strategy : Wr;
685
+ var r = t && t.cache ? t.cache : qr, n = t && t.serializer ? t.serializer : Zr, i = t && t.strategy ? t.strategy : zr;
686
686
  return i(e, {
687
687
  cache: r,
688
688
  serializer: n
689
689
  });
690
690
  }
691
- function zr(e) {
691
+ function Vr(e) {
692
692
  return e == null || typeof e == "number" || typeof e == "boolean";
693
693
  }
694
- function wt(e, t, r, n) {
695
- var i = zr(n) ? n : r(n), s = t.get(i);
694
+ function Xr(e, t, r, n) {
695
+ var i = Vr(n) ? n : r(n), s = t.get(i);
696
696
  return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
697
697
  }
698
- function Ot(e, t, r) {
698
+ function Bt(e, t, r) {
699
699
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
700
700
  return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
701
701
  }
702
- function Xe(e, t, r, n, i) {
702
+ function St(e, t, r, n, i) {
703
703
  return r.bind(t, e, n, i);
704
704
  }
705
- function Wr(e, t) {
706
- var r = e.length === 1 ? wt : Ot;
707
- return Xe(e, this, r, t.cache.create(), t.serializer);
708
- }
709
- function Zr(e, t) {
710
- return Xe(e, this, Ot, t.cache.create(), t.serializer);
705
+ function zr(e, t) {
706
+ var r = e.length === 1 ? Xr : Bt;
707
+ return St(e, this, r, t.cache.create(), t.serializer);
711
708
  }
712
- function Qr(e, t) {
713
- return Xe(e, this, wt, t.cache.create(), t.serializer);
709
+ function Wr(e, t) {
710
+ return St(e, this, Bt, t.cache.create(), t.serializer);
714
711
  }
715
- var qr = function() {
712
+ var Zr = function() {
716
713
  return JSON.stringify(arguments);
717
- };
718
- function ze() {
719
- this.cache = /* @__PURE__ */ Object.create(null);
720
- }
721
- ze.prototype.get = function(e) {
722
- return this.cache[e];
723
- };
724
- ze.prototype.set = function(e, t) {
725
- this.cache[e] = t;
726
- };
727
- var Jr = {
714
+ }, Qr = (
715
+ /** @class */
716
+ function() {
717
+ function e() {
718
+ this.cache = /* @__PURE__ */ Object.create(null);
719
+ }
720
+ return e.prototype.get = function(t) {
721
+ return this.cache[t];
722
+ }, e.prototype.set = function(t, r) {
723
+ this.cache[t] = r;
724
+ }, e;
725
+ }()
726
+ ), qr = {
728
727
  create: function() {
729
- return new ze();
728
+ return new Qr();
730
729
  }
731
730
  }, Se = {
732
- variadic: Zr,
733
- monadic: Qr
731
+ variadic: Wr
734
732
  }, y;
735
733
  (function(e) {
736
734
  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";
@@ -743,43 +741,43 @@ var Q;
743
741
  (function(e) {
744
742
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
745
743
  })(Q || (Q = {}));
746
- function st(e) {
744
+ function nt(e) {
747
745
  return e.type === T.literal;
748
746
  }
749
- function Yr(e) {
747
+ function Jr(e) {
750
748
  return e.type === T.argument;
751
749
  }
752
- function Pt(e) {
750
+ function Ot(e) {
753
751
  return e.type === T.number;
754
752
  }
755
- function Nt(e) {
753
+ function wt(e) {
756
754
  return e.type === T.date;
757
755
  }
758
- function Lt(e) {
756
+ function Pt(e) {
759
757
  return e.type === T.time;
760
758
  }
761
- function It(e) {
759
+ function Nt(e) {
762
760
  return e.type === T.select;
763
761
  }
764
- function Mt(e) {
762
+ function Lt(e) {
765
763
  return e.type === T.plural;
766
764
  }
767
- function Kr(e) {
765
+ function Yr(e) {
768
766
  return e.type === T.pound;
769
767
  }
770
- function $t(e) {
768
+ function It(e) {
771
769
  return e.type === T.tag;
772
770
  }
773
- function Rt(e) {
771
+ function Mt(e) {
774
772
  return !!(e && typeof e == "object" && e.type === Q.number);
775
773
  }
776
774
  function $e(e) {
777
775
  return !!(e && typeof e == "object" && e.type === Q.dateTime);
778
776
  }
779
- var Ut = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, en = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
780
- function tn(e) {
777
+ var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Kr = /(?:[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;
778
+ function en(e) {
781
779
  var t = {};
782
- return e.replace(en, function(r) {
780
+ return e.replace(Kr, function(r) {
783
781
  var n = r.length;
784
782
  switch (r[0]) {
785
783
  case "G":
@@ -868,36 +866,36 @@ function tn(e) {
868
866
  return "";
869
867
  }), t;
870
868
  }
871
- var rn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
872
- function nn(e) {
869
+ var tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
870
+ function rn(e) {
873
871
  if (e.length === 0)
874
872
  throw new Error("Number skeleton cannot be empty");
875
- for (var t = e.split(rn).filter(function(c) {
876
- return c.length > 0;
873
+ for (var t = e.split(tn).filter(function(f) {
874
+ return f.length > 0;
877
875
  }), r = [], n = 0, i = t; n < i.length; n++) {
878
876
  var s = i[n], o = s.split("/");
879
877
  if (o.length === 0)
880
878
  throw new Error("Invalid number skeleton");
881
879
  for (var u = o[0], h = o.slice(1), a = 0, l = h; a < l.length; a++) {
882
- var f = l[a];
883
- if (f.length === 0)
880
+ var c = l[a];
881
+ if (c.length === 0)
884
882
  throw new Error("Invalid number skeleton");
885
883
  }
886
884
  r.push({ stem: u, options: h });
887
885
  }
888
886
  return r;
889
887
  }
890
- function sn(e) {
888
+ function nn(e) {
891
889
  return e.replace(/^(.*?)-/, "");
892
890
  }
893
- var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, on = /(\*)(0+)|(#+)(0+)|(0+)/g, Gt = /^(0+)$/;
894
- function at(e) {
891
+ var it = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
892
+ function st(e) {
895
893
  var t = {};
896
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
894
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
897
895
  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)), "";
898
896
  }), t;
899
897
  }
900
- function Ft(e) {
898
+ function Dt(e) {
901
899
  switch (e) {
902
900
  case "sign-auto":
903
901
  return {
@@ -937,7 +935,7 @@ function Ft(e) {
937
935
  };
938
936
  }
939
937
  }
940
- function an(e) {
938
+ function on(e) {
941
939
  var t;
942
940
  if (e[0] === "E" && e[1] === "E" ? (t = {
943
941
  notation: "engineering"
@@ -945,17 +943,17 @@ function an(e) {
945
943
  notation: "scientific"
946
944
  }, e = e.slice(1)), t) {
947
945
  var r = e.slice(0, 2);
948
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Gt.test(e))
946
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ut.test(e))
949
947
  throw new Error("Malformed concise eng/scientific notation");
950
948
  t.minimumIntegerDigits = e.length;
951
949
  }
952
950
  return t;
953
951
  }
954
- function ut(e) {
955
- var t = {}, r = Ft(e);
952
+ function ot(e) {
953
+ var t = {}, r = Dt(e);
956
954
  return r || t;
957
955
  }
958
- function un(e) {
956
+ function an(e) {
959
957
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
960
958
  var i = n[r];
961
959
  switch (i.stem) {
@@ -979,7 +977,7 @@ function un(e) {
979
977
  continue;
980
978
  case "measure-unit":
981
979
  case "unit":
982
- t.style = "unit", t.unit = sn(i.options[0]);
980
+ t.style = "unit", t.unit = nn(i.options[0]);
983
981
  continue;
984
982
  case "compact-short":
985
983
  case "K":
@@ -991,12 +989,12 @@ function un(e) {
991
989
  continue;
992
990
  case "scientific":
993
991
  t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
994
- return x(x({}, h), ut(a));
992
+ return x(x({}, h), ot(a));
995
993
  }, {}));
996
994
  continue;
997
995
  case "engineering":
998
996
  t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
999
- return x(x({}, h), ut(a));
997
+ return x(x({}, h), ot(a));
1000
998
  }, {}));
1001
999
  continue;
1002
1000
  case "notation-simple":
@@ -1041,11 +1039,11 @@ function un(e) {
1041
1039
  case "integer-width":
1042
1040
  if (i.options.length > 1)
1043
1041
  throw new RangeError("integer-width stems only accept a single optional option");
1044
- i.options[0].replace(on, function(h, a, l, f, c, p) {
1042
+ i.options[0].replace(sn, function(h, a, l, c, f, p) {
1045
1043
  if (a)
1046
1044
  t.minimumIntegerDigits = l.length;
1047
1045
  else {
1048
- if (f && c)
1046
+ if (c && f)
1049
1047
  throw new Error("We currently do not support maximum integer digits");
1050
1048
  if (p)
1051
1049
  throw new Error("We currently do not support exact integer digits");
@@ -1054,32 +1052,32 @@ function un(e) {
1054
1052
  });
1055
1053
  continue;
1056
1054
  }
1057
- if (Gt.test(i.stem)) {
1055
+ if (Ut.test(i.stem)) {
1058
1056
  t.minimumIntegerDigits = i.stem.length;
1059
1057
  continue;
1060
1058
  }
1061
- if (ot.test(i.stem)) {
1059
+ if (it.test(i.stem)) {
1062
1060
  if (i.options.length > 1)
1063
1061
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1064
- i.stem.replace(ot, function(h, a, l, f, c, p) {
1065
- return l === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1062
+ i.stem.replace(it, function(h, a, l, c, f, p) {
1063
+ return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1066
1064
  });
1067
1065
  var s = i.options[0];
1068
- s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), at(s)));
1066
+ s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), st(s)));
1069
1067
  continue;
1070
1068
  }
1071
- if (Dt.test(i.stem)) {
1072
- t = x(x({}, t), at(i.stem));
1069
+ if (Rt.test(i.stem)) {
1070
+ t = x(x({}, t), st(i.stem));
1073
1071
  continue;
1074
1072
  }
1075
- var o = Ft(i.stem);
1073
+ var o = Dt(i.stem);
1076
1074
  o && (t = x(x({}, t), o));
1077
- var u = an(i.stem);
1075
+ var u = on(i.stem);
1078
1076
  u && (t = x(x({}, t), u));
1079
1077
  }
1080
1078
  return t;
1081
1079
  }
1082
- var fe = {
1080
+ var ce = {
1083
1081
  "001": [
1084
1082
  "H",
1085
1083
  "h"
@@ -2494,13 +2492,13 @@ var fe = {
2494
2492
  "h"
2495
2493
  ]
2496
2494
  };
2497
- function hn(e, t) {
2495
+ function un(e, t) {
2498
2496
  for (var r = "", n = 0; n < e.length; n++) {
2499
2497
  var i = e.charAt(n);
2500
2498
  if (i === "j") {
2501
2499
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2502
2500
  s++, n++;
2503
- var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = ln(t);
2501
+ var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = hn(t);
2504
2502
  for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
2505
2503
  r += h;
2506
2504
  for (; o-- > 0; )
@@ -2510,7 +2508,7 @@ function hn(e, t) {
2510
2508
  }
2511
2509
  return r;
2512
2510
  }
2513
- function ln(e) {
2511
+ function hn(e) {
2514
2512
  var t = e.hourCycle;
2515
2513
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2516
2514
  e.hourCycles && // @ts-ignore
@@ -2529,23 +2527,23 @@ function ln(e) {
2529
2527
  }
2530
2528
  var r = e.language, n;
2531
2529
  r !== "root" && (n = e.maximize().region);
2532
- var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
2530
+ var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
2533
2531
  return i[0];
2534
2532
  }
2535
- var we, cn = new RegExp("^".concat(Ut.source, "*")), fn = new RegExp("".concat(Ut.source, "*$"));
2533
+ var Oe, ln = new RegExp("^".concat($t.source, "*")), fn = new RegExp("".concat($t.source, "*$"));
2536
2534
  function _(e, t) {
2537
2535
  return { start: e, end: t };
2538
2536
  }
2539
- var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), mn = !!String.fromCodePoint, pn = !!Object.fromEntries, dn = !!String.prototype.codePointAt, bn = !!String.prototype.trimStart, yn = !!String.prototype.trimEnd, _n = !!Number.isSafeInteger, xn = _n ? Number.isSafeInteger : function(e) {
2537
+ var cn = !!String.prototype.startsWith && "_a".startsWith("a", 1), gn = !!String.fromCodePoint, mn = !!Object.fromEntries, pn = !!String.prototype.codePointAt, dn = !!String.prototype.trimStart, bn = !!String.prototype.trimEnd, yn = !!Number.isSafeInteger, _n = yn ? Number.isSafeInteger : function(e) {
2540
2538
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2541
2539
  }, Re = !0;
2542
2540
  try {
2543
- var En = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2544
- Re = ((we = En.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
2541
+ var xn = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2542
+ Re = ((Oe = xn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
2545
2543
  } catch (e) {
2546
2544
  Re = !1;
2547
2545
  }
2548
- var ht = gn ? (
2546
+ var at = cn ? (
2549
2547
  // Native
2550
2548
  function(t, r, n) {
2551
2549
  return t.startsWith(r, n);
@@ -2555,7 +2553,7 @@ var ht = gn ? (
2555
2553
  function(t, r, n) {
2556
2554
  return t.slice(n, n + r.length) === r;
2557
2555
  }
2558
- ), Ue = mn ? String.fromCodePoint : (
2556
+ ), Ue = gn ? String.fromCodePoint : (
2559
2557
  // IE11
2560
2558
  function() {
2561
2559
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2567,9 +2565,9 @@ var ht = gn ? (
2567
2565
  }
2568
2566
  return n;
2569
2567
  }
2570
- ), lt = (
2568
+ ), ut = (
2571
2569
  // native
2572
- pn ? Object.fromEntries : (
2570
+ mn ? Object.fromEntries : (
2573
2571
  // Ponyfill
2574
2572
  function(t) {
2575
2573
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2579,7 +2577,7 @@ var ht = gn ? (
2579
2577
  return r;
2580
2578
  }
2581
2579
  )
2582
- ), jt = dn ? (
2580
+ ), Gt = pn ? (
2583
2581
  // Native
2584
2582
  function(t, r) {
2585
2583
  return t.codePointAt(r);
@@ -2593,7 +2591,7 @@ var ht = gn ? (
2593
2591
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2594
2592
  }
2595
2593
  }
2596
- ), vn = bn ? (
2594
+ ), En = dn ? (
2597
2595
  // Native
2598
2596
  function(t) {
2599
2597
  return t.trimStart();
@@ -2601,9 +2599,9 @@ var ht = gn ? (
2601
2599
  ) : (
2602
2600
  // Ponyfill
2603
2601
  function(t) {
2604
- return t.replace(cn, "");
2602
+ return t.replace(ln, "");
2605
2603
  }
2606
- ), Tn = yn ? (
2604
+ ), vn = bn ? (
2607
2605
  // Native
2608
2606
  function(t) {
2609
2607
  return t.trimEnd();
@@ -2614,29 +2612,29 @@ var ht = gn ? (
2614
2612
  return t.replace(fn, "");
2615
2613
  }
2616
2614
  );
2617
- function kt(e, t) {
2615
+ function Ft(e, t) {
2618
2616
  return new RegExp(e, t);
2619
2617
  }
2620
2618
  var De;
2621
2619
  if (Re) {
2622
- var ct = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2620
+ var ht = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2623
2621
  De = function(t, r) {
2624
2622
  var n;
2625
- ct.lastIndex = r;
2626
- var i = ct.exec(t);
2623
+ ht.lastIndex = r;
2624
+ var i = ht.exec(t);
2627
2625
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2628
2626
  };
2629
2627
  } else
2630
2628
  De = function(t, r) {
2631
2629
  for (var n = []; ; ) {
2632
- var i = jt(t, r);
2633
- if (i === void 0 || Vt(i) || Bn(i))
2630
+ var i = Gt(t, r);
2631
+ if (i === void 0 || jt(i) || An(i))
2634
2632
  break;
2635
2633
  n.push(i), r += i >= 65536 ? 2 : 1;
2636
2634
  }
2637
2635
  return Ue.apply(void 0, n);
2638
2636
  };
2639
- var Cn = (
2637
+ var Tn = (
2640
2638
  /** @class */
2641
2639
  function() {
2642
2640
  function e(t, r) {
@@ -2718,7 +2716,7 @@ var Cn = (
2718
2716
  return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
2719
2717
  }, e.prototype.parseTagName = function() {
2720
2718
  var t = this.offset();
2721
- for (this.bump(); !this.isEOF() && An(this.char()); )
2719
+ for (this.bump(); !this.isEOF() && Hn(this.char()); )
2722
2720
  this.bump();
2723
2721
  return this.message.slice(t, this.offset());
2724
2722
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2747,7 +2745,7 @@ var Cn = (
2747
2745
  };
2748
2746
  }, e.prototype.tryParseLeftAngleBracket = function() {
2749
2747
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2750
- !Hn(this.peek() || 0)) ? (this.bump(), "<") : null;
2748
+ !Cn(this.peek() || 0)) ? (this.bump(), "<") : null;
2751
2749
  }, e.prototype.tryParseQuote = function(t) {
2752
2750
  if (this.isEOF() || this.char() !== 39)
2753
2751
  return null;
@@ -2831,40 +2829,40 @@ var Cn = (
2831
2829
  var a = null;
2832
2830
  if (this.bumpIf(",")) {
2833
2831
  this.bumpSpace();
2834
- var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2835
- if (f.err)
2836
- return f;
2837
- var c = Tn(f.val);
2838
- if (c.length === 0)
2832
+ var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2833
+ if (c.err)
2834
+ return c;
2835
+ var f = vn(c.val);
2836
+ if (f.length === 0)
2839
2837
  return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
2840
2838
  var p = _(l, this.clonePosition());
2841
- a = { style: c, styleLocation: p };
2839
+ a = { style: f, styleLocation: p };
2842
2840
  }
2843
2841
  var d = this.tryParseArgumentClose(i);
2844
2842
  if (d.err)
2845
2843
  return d;
2846
2844
  var g = _(i, this.clonePosition());
2847
- if (a && ht(a == null ? void 0 : a.style, "::", 0)) {
2848
- var E = vn(a.style.slice(2));
2845
+ if (a && at(a == null ? void 0 : a.style, "::", 0)) {
2846
+ var E = En(a.style.slice(2));
2849
2847
  if (u === "number") {
2850
- var f = this.parseNumberSkeletonFromString(E, a.styleLocation);
2851
- return f.err ? f : {
2852
- val: { type: T.number, value: n, location: g, style: f.val },
2848
+ var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
2849
+ return c.err ? c : {
2850
+ val: { type: T.number, value: n, location: g, style: c.val },
2853
2851
  err: null
2854
2852
  };
2855
2853
  } else {
2856
2854
  if (E.length === 0)
2857
2855
  return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
2858
2856
  var m = E;
2859
- this.locale && (m = hn(E, this.locale));
2860
- var c = {
2857
+ this.locale && (m = un(E, this.locale));
2858
+ var f = {
2861
2859
  type: Q.dateTime,
2862
2860
  pattern: m,
2863
2861
  location: a.styleLocation,
2864
- parsedOptions: this.shouldParseSkeletons ? tn(m) : {}
2862
+ parsedOptions: this.shouldParseSkeletons ? en(m) : {}
2865
2863
  }, C = u === "date" ? T.date : T.time;
2866
2864
  return {
2867
- val: { type: C, value: n, location: g, style: c },
2865
+ val: { type: C, value: n, location: g, style: f },
2868
2866
  err: null
2869
2867
  };
2870
2868
  }
@@ -2891,10 +2889,10 @@ var Cn = (
2891
2889
  if (!this.bumpIf(":"))
2892
2890
  return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
2893
2891
  this.bumpSpace();
2894
- var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2895
- if (f.err)
2896
- return f;
2897
- this.bumpSpace(), P = this.parseIdentifierIfPossible(), S = f.val;
2892
+ var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2893
+ if (c.err)
2894
+ return c;
2895
+ this.bumpSpace(), P = this.parseIdentifierIfPossible(), S = c.val;
2898
2896
  }
2899
2897
  var A = this.tryParsePluralOrSelectOptions(t, u, r, P);
2900
2898
  if (A.err)
@@ -2907,7 +2905,7 @@ var Cn = (
2907
2905
  val: {
2908
2906
  type: T.select,
2909
2907
  value: n,
2910
- options: lt(A.val),
2908
+ options: ut(A.val),
2911
2909
  location: N
2912
2910
  },
2913
2911
  err: null
@@ -2915,7 +2913,7 @@ var Cn = (
2915
2913
  val: {
2916
2914
  type: T.plural,
2917
2915
  value: n,
2918
- options: lt(A.val),
2916
+ options: ut(A.val),
2919
2917
  offset: S,
2920
2918
  pluralType: u === "plural" ? "cardinal" : "ordinal",
2921
2919
  location: N
@@ -2966,7 +2964,7 @@ var Cn = (
2966
2964
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2967
2965
  var n = [];
2968
2966
  try {
2969
- n = nn(t);
2967
+ n = rn(t);
2970
2968
  } catch (i) {
2971
2969
  return this.error(y.INVALID_NUMBER_SKELETON, r);
2972
2970
  }
@@ -2975,19 +2973,19 @@ var Cn = (
2975
2973
  type: Q.number,
2976
2974
  tokens: n,
2977
2975
  location: r,
2978
- parsedOptions: this.shouldParseSkeletons ? un(n) : {}
2976
+ parsedOptions: this.shouldParseSkeletons ? an(n) : {}
2979
2977
  },
2980
2978
  err: null
2981
2979
  };
2982
2980
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2983
2981
  for (var s, o = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
2984
2982
  if (a.length === 0) {
2985
- var f = this.clonePosition();
2983
+ var c = this.clonePosition();
2986
2984
  if (r !== "select" && this.bumpIf("=")) {
2987
- var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
2988
- if (c.err)
2989
- return c;
2990
- l = _(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
2985
+ var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
2986
+ if (f.err)
2987
+ return f;
2988
+ l = _(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
2991
2989
  } else
2992
2990
  break;
2993
2991
  }
@@ -3023,7 +3021,7 @@ var Cn = (
3023
3021
  break;
3024
3022
  }
3025
3023
  var h = _(i, this.clonePosition());
3026
- return s ? (o *= n, xn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3024
+ return s ? (o *= n, _n(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3027
3025
  }, e.prototype.offset = function() {
3028
3026
  return this.position.offset;
3029
3027
  }, e.prototype.isEOF = function() {
@@ -3038,7 +3036,7 @@ var Cn = (
3038
3036
  var t = this.position.offset;
3039
3037
  if (t >= this.message.length)
3040
3038
  throw Error("out of bound");
3041
- var r = jt(this.message, t);
3039
+ var r = Gt(this.message, t);
3042
3040
  if (r === void 0)
3043
3041
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3044
3042
  return r;
@@ -3057,7 +3055,7 @@ var Cn = (
3057
3055
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3058
3056
  }
3059
3057
  }, e.prototype.bumpIf = function(t) {
3060
- if (ht(this.message, t, this.offset())) {
3058
+ if (at(this.message, t, this.offset())) {
3061
3059
  for (var r = 0; r < t.length; r++)
3062
3060
  this.bump();
3063
3061
  return !0;
@@ -3079,7 +3077,7 @@ var Cn = (
3079
3077
  break;
3080
3078
  }
3081
3079
  }, e.prototype.bumpSpace = function() {
3082
- for (; !this.isEOF() && Vt(this.char()); )
3080
+ for (; !this.isEOF() && jt(this.char()); )
3083
3081
  this.bump();
3084
3082
  }, e.prototype.peek = function() {
3085
3083
  if (this.isEOF())
@@ -3092,30 +3090,30 @@ var Cn = (
3092
3090
  function Ge(e) {
3093
3091
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3094
3092
  }
3095
- function Hn(e) {
3093
+ function Cn(e) {
3096
3094
  return Ge(e) || e === 47;
3097
3095
  }
3098
- function An(e) {
3096
+ function Hn(e) {
3099
3097
  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;
3100
3098
  }
3101
- function Vt(e) {
3099
+ function jt(e) {
3102
3100
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3103
3101
  }
3104
- function Bn(e) {
3102
+ function An(e) {
3105
3103
  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;
3106
3104
  }
3107
3105
  function Fe(e) {
3108
3106
  e.forEach(function(t) {
3109
- if (delete t.location, It(t) || Mt(t))
3107
+ if (delete t.location, Nt(t) || Lt(t))
3110
3108
  for (var r in t.options)
3111
3109
  delete t.options[r].location, Fe(t.options[r].value);
3112
3110
  else
3113
- Pt(t) && Rt(t.style) || (Nt(t) || Lt(t)) && $e(t.style) ? delete t.style.location : $t(t) && Fe(t.children);
3111
+ Ot(t) && Mt(t.style) || (wt(t) || Pt(t)) && $e(t.style) ? delete t.style.location : It(t) && Fe(t.children);
3114
3112
  });
3115
3113
  }
3116
- function Sn(e, t) {
3114
+ function Bn(e, t) {
3117
3115
  t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3118
- var r = new Cn(e, t).parse();
3116
+ var r = new Tn(e, t).parse();
3119
3117
  if (r.err) {
3120
3118
  var n = SyntaxError(y[r.err.kind]);
3121
3119
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
@@ -3138,7 +3136,7 @@ var Ee = (
3138
3136
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3139
3137
  }, t;
3140
3138
  }(Error)
3141
- ), ft = (
3139
+ ), lt = (
3142
3140
  /** @class */
3143
3141
  function(e) {
3144
3142
  xe(t, e);
@@ -3147,7 +3145,7 @@ var Ee = (
3147
3145
  }
3148
3146
  return t;
3149
3147
  }(Ee)
3150
- ), wn = (
3148
+ ), Sn = (
3151
3149
  /** @class */
3152
3150
  function(e) {
3153
3151
  xe(t, e);
@@ -3165,128 +3163,128 @@ var Ee = (
3165
3163
  }
3166
3164
  return t;
3167
3165
  }(Ee)
3168
- ), O;
3166
+ ), w;
3169
3167
  (function(e) {
3170
3168
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3171
- })(O || (O = {}));
3172
- function Pn(e) {
3169
+ })(w || (w = {}));
3170
+ function wn(e) {
3173
3171
  return e.length < 2 ? e : e.reduce(function(t, r) {
3174
3172
  var n = t[t.length - 1];
3175
- return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3173
+ return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
3176
3174
  }, []);
3177
3175
  }
3178
- function Nn(e) {
3176
+ function Pn(e) {
3179
3177
  return typeof e == "function";
3180
3178
  }
3181
3179
  function me(e, t, r, n, i, s, o) {
3182
- if (e.length === 1 && st(e[0]))
3180
+ if (e.length === 1 && nt(e[0]))
3183
3181
  return [
3184
3182
  {
3185
- type: O.literal,
3183
+ type: w.literal,
3186
3184
  value: e[0].value
3187
3185
  }
3188
3186
  ];
3189
3187
  for (var u = [], h = 0, a = e; h < a.length; h++) {
3190
3188
  var l = a[h];
3191
- if (st(l)) {
3189
+ if (nt(l)) {
3192
3190
  u.push({
3193
- type: O.literal,
3191
+ type: w.literal,
3194
3192
  value: l.value
3195
3193
  });
3196
3194
  continue;
3197
3195
  }
3198
- if (Kr(l)) {
3196
+ if (Yr(l)) {
3199
3197
  typeof s == "number" && u.push({
3200
- type: O.literal,
3198
+ type: w.literal,
3201
3199
  value: r.getNumberFormat(t).format(s)
3202
3200
  });
3203
3201
  continue;
3204
3202
  }
3205
- var f = l.value;
3206
- if (!(i && f in i))
3207
- throw new On(f, o);
3208
- var c = i[f];
3209
- if (Yr(l)) {
3210
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
3211
- type: typeof c == "string" ? O.literal : O.object,
3212
- value: c
3203
+ var c = l.value;
3204
+ if (!(i && c in i))
3205
+ throw new On(c, o);
3206
+ var f = i[c];
3207
+ if (Jr(l)) {
3208
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
3209
+ type: typeof f == "string" ? w.literal : w.object,
3210
+ value: f
3213
3211
  });
3214
3212
  continue;
3215
3213
  }
3216
- if (Nt(l)) {
3214
+ if (wt(l)) {
3217
3215
  var p = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
3218
3216
  u.push({
3219
- type: O.literal,
3220
- value: r.getDateTimeFormat(t, p).format(c)
3217
+ type: w.literal,
3218
+ value: r.getDateTimeFormat(t, p).format(f)
3221
3219
  });
3222
3220
  continue;
3223
3221
  }
3224
- if (Lt(l)) {
3222
+ if (Pt(l)) {
3225
3223
  var p = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
3226
3224
  u.push({
3227
- type: O.literal,
3228
- value: r.getDateTimeFormat(t, p).format(c)
3225
+ type: w.literal,
3226
+ value: r.getDateTimeFormat(t, p).format(f)
3229
3227
  });
3230
3228
  continue;
3231
3229
  }
3232
- if (Pt(l)) {
3233
- var p = typeof l.style == "string" ? n.number[l.style] : Rt(l.style) ? l.style.parsedOptions : void 0;
3234
- p && p.scale && (c = c * (p.scale || 1)), u.push({
3235
- type: O.literal,
3236
- value: r.getNumberFormat(t, p).format(c)
3230
+ if (Ot(l)) {
3231
+ var p = typeof l.style == "string" ? n.number[l.style] : Mt(l.style) ? l.style.parsedOptions : void 0;
3232
+ p && p.scale && (f = f * (p.scale || 1)), u.push({
3233
+ type: w.literal,
3234
+ value: r.getNumberFormat(t, p).format(f)
3237
3235
  });
3238
3236
  continue;
3239
3237
  }
3240
- if ($t(l)) {
3238
+ if (It(l)) {
3241
3239
  var d = l.children, g = l.value, E = i[g];
3242
- if (!Nn(E))
3243
- throw new wn(g, "function", o);
3240
+ if (!Pn(E))
3241
+ throw new Sn(g, "function", o);
3244
3242
  var m = me(d, t, r, n, i, s), C = E(m.map(function(S) {
3245
3243
  return S.value;
3246
3244
  }));
3247
3245
  Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(S) {
3248
3246
  return {
3249
- type: typeof S == "string" ? O.literal : O.object,
3247
+ type: typeof S == "string" ? w.literal : w.object,
3250
3248
  value: S
3251
3249
  };
3252
3250
  }));
3253
3251
  }
3254
- if (It(l)) {
3255
- var B = l.options[c] || l.options.other;
3252
+ if (Nt(l)) {
3253
+ var B = l.options[f] || l.options.other;
3256
3254
  if (!B)
3257
- throw new ft(l.value, c, Object.keys(l.options), o);
3255
+ throw new lt(l.value, f, Object.keys(l.options), o);
3258
3256
  u.push.apply(u, me(B.value, t, r, n, i));
3259
3257
  continue;
3260
3258
  }
3261
- if (Mt(l)) {
3262
- var B = l.options["=".concat(c)];
3259
+ if (Lt(l)) {
3260
+ var B = l.options["=".concat(f)];
3263
3261
  if (!B) {
3264
3262
  if (!Intl.PluralRules)
3265
3263
  throw new Ee(`Intl.PluralRules is not available in this environment.
3266
3264
  Try polyfilling it using "@formatjs/intl-pluralrules"
3267
3265
  `, q.MISSING_INTL_API, o);
3268
- var P = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3266
+ var P = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3269
3267
  B = l.options[P] || l.options.other;
3270
3268
  }
3271
3269
  if (!B)
3272
- throw new ft(l.value, c, Object.keys(l.options), o);
3273
- u.push.apply(u, me(B.value, t, r, n, i, c - (l.offset || 0)));
3270
+ throw new lt(l.value, f, Object.keys(l.options), o);
3271
+ u.push.apply(u, me(B.value, t, r, n, i, f - (l.offset || 0)));
3274
3272
  continue;
3275
3273
  }
3276
3274
  }
3277
- return Pn(u);
3275
+ return wn(u);
3278
3276
  }
3279
- function Ln(e, t) {
3277
+ function Nn(e, t) {
3280
3278
  return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3281
3279
  return r[n] = x(x({}, e[n]), t[n] || {}), r;
3282
3280
  }, {})) : e;
3283
3281
  }
3284
- function In(e, t) {
3282
+ function Ln(e, t) {
3285
3283
  return t ? Object.keys(e).reduce(function(r, n) {
3286
- return r[n] = Ln(e[n], t[n]), r;
3284
+ return r[n] = Nn(e[n], t[n]), r;
3287
3285
  }, x({}, e)) : e;
3288
3286
  }
3289
- function Oe(e) {
3287
+ function we(e) {
3290
3288
  return {
3291
3289
  create: function() {
3292
3290
  return {
@@ -3300,7 +3298,7 @@ function Oe(e) {
3300
3298
  }
3301
3299
  };
3302
3300
  }
3303
- function Mn(e) {
3301
+ function In(e) {
3304
3302
  return e === void 0 && (e = {
3305
3303
  number: {},
3306
3304
  dateTime: {},
@@ -3311,7 +3309,7 @@ function Mn(e) {
3311
3309
  r[n] = arguments[n];
3312
3310
  return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
3313
3311
  }, {
3314
- cache: Oe(e.number),
3312
+ cache: we(e.number),
3315
3313
  strategy: Se.variadic
3316
3314
  }),
3317
3315
  getDateTimeFormat: Be(function() {
@@ -3319,7 +3317,7 @@ function Mn(e) {
3319
3317
  r[n] = arguments[n];
3320
3318
  return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
3321
3319
  }, {
3322
- cache: Oe(e.dateTime),
3320
+ cache: we(e.dateTime),
3323
3321
  strategy: Se.variadic
3324
3322
  }),
3325
3323
  getPluralRules: Be(function() {
@@ -3327,12 +3325,12 @@ function Mn(e) {
3327
3325
  r[n] = arguments[n];
3328
3326
  return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
3329
3327
  }, {
3330
- cache: Oe(e.pluralRules),
3328
+ cache: we(e.pluralRules),
3331
3329
  strategy: Se.variadic
3332
3330
  })
3333
3331
  };
3334
3332
  }
3335
- var $n = (
3333
+ var Mn = (
3336
3334
  /** @class */
3337
3335
  function() {
3338
3336
  function e(t, r, n, i) {
@@ -3346,8 +3344,8 @@ var $n = (
3346
3344
  var a = s.formatToParts(h);
3347
3345
  if (a.length === 1)
3348
3346
  return a[0].value;
3349
- var l = a.reduce(function(f, c) {
3350
- return !f.length || c.type !== O.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3347
+ var l = a.reduce(function(c, f) {
3348
+ return !c.length || f.type !== w.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3351
3349
  }, []);
3352
3350
  return l.length <= 1 ? l[0] || "" : l;
3353
3351
  }, this.formatToParts = function(h) {
@@ -3364,13 +3362,13 @@ var $n = (
3364
3362
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3365
3363
  var o = i || {};
3366
3364
  o.formatters;
3367
- var u = Xr(o, ["formatters"]);
3365
+ var u = kr(o, ["formatters"]);
3368
3366
  this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
3369
3367
  } else
3370
3368
  this.ast = t;
3371
3369
  if (!Array.isArray(this.ast))
3372
3370
  throw new TypeError("A message must be provided as a String or AST.");
3373
- this.formats = In(e.formats, n), this.formatters = i && i.formatters || Mn(this.formatterCache);
3371
+ this.formats = Ln(e.formats, n), this.formatters = i && i.formatters || In(this.formatterCache);
3374
3372
  }
3375
3373
  return Object.defineProperty(e, "defaultLocale", {
3376
3374
  get: function() {
@@ -3383,7 +3381,7 @@ var $n = (
3383
3381
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3384
3382
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3385
3383
  }
3386
- }, e.__parse = Sn, e.formats = {
3384
+ }, e.__parse = Bn, e.formats = {
3387
3385
  number: {
3388
3386
  integer: {
3389
3387
  maximumFractionDigits: 0
@@ -3444,7 +3442,7 @@ var $n = (
3444
3442
  }, e;
3445
3443
  }()
3446
3444
  );
3447
- function Rn(e, t) {
3445
+ function $n(e, t) {
3448
3446
  if (t == null)
3449
3447
  return;
3450
3448
  if (t in e)
@@ -3465,60 +3463,60 @@ function Rn(e, t) {
3465
3463
  n = void 0;
3466
3464
  return n;
3467
3465
  }
3468
- const D = {}, Un = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Xt = (e, t) => {
3466
+ const D = {}, Rn = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), kt = (e, t) => {
3469
3467
  if (t == null)
3470
3468
  return;
3471
3469
  if (t in D && e in D[t])
3472
3470
  return D[t][e];
3473
3471
  const r = ve(t);
3474
3472
  for (let n = 0; n < r.length; n++) {
3475
- const i = r[n], s = Gn(i, e);
3473
+ const i = r[n], s = Dn(i, e);
3476
3474
  if (s)
3477
- return Un(e, t, s);
3475
+ return Rn(e, t, s);
3478
3476
  }
3479
3477
  };
3480
- let We;
3478
+ let Xe;
3481
3479
  const ue = _e({});
3482
- function Dn(e) {
3483
- return We[e] || null;
3480
+ function Un(e) {
3481
+ return Xe[e] || null;
3484
3482
  }
3485
- function zt(e) {
3486
- return e in We;
3483
+ function Vt(e) {
3484
+ return e in Xe;
3487
3485
  }
3488
- function Gn(e, t) {
3489
- if (!zt(e))
3486
+ function Dn(e, t) {
3487
+ if (!Vt(e))
3490
3488
  return null;
3491
- const r = Dn(e);
3492
- return Rn(r, t);
3489
+ const r = Un(e);
3490
+ return $n(r, t);
3493
3491
  }
3494
- function Fn(e) {
3492
+ function Gn(e) {
3495
3493
  if (e == null)
3496
3494
  return;
3497
3495
  const t = ve(e);
3498
3496
  for (let r = 0; r < t.length; r++) {
3499
3497
  const n = t[r];
3500
- if (zt(n))
3498
+ if (Vt(n))
3501
3499
  return n;
3502
3500
  }
3503
3501
  }
3504
- function Wt(e, ...t) {
3505
- delete D[e], ue.update((r) => (r[e] = Vr.all([r[e] || {}, ...t]), r));
3502
+ function Xt(e, ...t) {
3503
+ delete D[e], ue.update((r) => (r[e] = jr.all([r[e] || {}, ...t]), r));
3506
3504
  }
3507
3505
  K(
3508
3506
  [ue],
3509
3507
  ([e]) => Object.keys(e)
3510
3508
  );
3511
- ue.subscribe((e) => We = e);
3509
+ ue.subscribe((e) => Xe = e);
3512
3510
  const pe = {};
3513
- function jn(e, t) {
3511
+ function Fn(e, t) {
3514
3512
  pe[e].delete(t), pe[e].size === 0 && delete pe[e];
3515
3513
  }
3516
- function Zt(e) {
3514
+ function zt(e) {
3517
3515
  return pe[e];
3518
3516
  }
3519
- function kn(e) {
3517
+ function jn(e) {
3520
3518
  return ve(e).map((t) => {
3521
- const r = Zt(t);
3519
+ const r = zt(t);
3522
3520
  return [t, r ? [...r] : []];
3523
3521
  }).filter(([, t]) => t.length > 0);
3524
3522
  }
@@ -3526,31 +3524,31 @@ function je(e) {
3526
3524
  return e == null ? !1 : ve(e).some(
3527
3525
  (t) => {
3528
3526
  var r;
3529
- return (r = Zt(t)) == null ? void 0 : r.size;
3527
+ return (r = zt(t)) == null ? void 0 : r.size;
3530
3528
  }
3531
3529
  );
3532
3530
  }
3533
- function Vn(e, t) {
3531
+ function kn(e, t) {
3534
3532
  return Promise.all(
3535
- t.map((n) => (jn(e, n), n().then((i) => i.default || i)))
3536
- ).then((n) => Wt(e, ...n));
3533
+ t.map((n) => (Fn(e, n), n().then((i) => i.default || i)))
3534
+ ).then((n) => Xt(e, ...n));
3537
3535
  }
3538
3536
  const re = {};
3539
- function Qt(e) {
3537
+ function Wt(e) {
3540
3538
  if (!je(e))
3541
3539
  return e in re ? re[e] : Promise.resolve();
3542
- const t = kn(e);
3540
+ const t = jn(e);
3543
3541
  return re[e] = Promise.all(
3544
3542
  t.map(
3545
- ([r, n]) => Vn(r, n)
3543
+ ([r, n]) => kn(r, n)
3546
3544
  )
3547
3545
  ).then(() => {
3548
3546
  if (je(e))
3549
- return Qt(e);
3547
+ return Wt(e);
3550
3548
  delete re[e];
3551
3549
  }), re[e];
3552
3550
  }
3553
- const Xn = {
3551
+ const Vn = {
3554
3552
  number: {
3555
3553
  scientific: { notation: "scientific" },
3556
3554
  engineering: { notation: "engineering" },
@@ -3579,34 +3577,34 @@ const Xn = {
3579
3577
  timeZoneName: "short"
3580
3578
  }
3581
3579
  }
3582
- }, zn = {
3580
+ }, Xn = {
3583
3581
  fallbackLocale: null,
3584
3582
  loadingDelay: 200,
3585
- formats: Xn,
3583
+ formats: Vn,
3586
3584
  warnOnMissingMessages: !0,
3587
3585
  handleMissingMessage: void 0,
3588
3586
  ignoreTag: !0
3589
- }, Wn = zn;
3587
+ }, zn = Xn;
3590
3588
  function J() {
3591
- return Wn;
3589
+ return zn;
3592
3590
  }
3593
3591
  const Pe = _e(!1);
3594
- var Zn = Object.defineProperty, Qn = Object.defineProperties, qn = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Kn = (e, t) => {
3592
+ var Wn = Object.defineProperty, Zn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
3595
3593
  for (var r in t || (t = {}))
3596
- Jn.call(t, r) && mt(e, r, t[r]);
3597
- if (gt)
3598
- for (var r of gt(t))
3599
- Yn.call(t, r) && mt(e, r, t[r]);
3594
+ qn.call(t, r) && ct(e, r, t[r]);
3595
+ if (ft)
3596
+ for (var r of ft(t))
3597
+ Jn.call(t, r) && ct(e, r, t[r]);
3600
3598
  return e;
3601
- }, ei = (e, t) => Qn(e, qn(t));
3599
+ }, Kn = (e, t) => Zn(e, Qn(t));
3602
3600
  let ke;
3603
3601
  const be = _e(null);
3604
- function pt(e) {
3602
+ function gt(e) {
3605
3603
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3606
3604
  }
3607
3605
  function ve(e, t = J().fallbackLocale) {
3608
- const r = pt(e);
3609
- return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
3606
+ const r = gt(e);
3607
+ return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
3610
3608
  }
3611
3609
  function k() {
3612
3610
  return ke != null ? ke : void 0;
@@ -3614,22 +3612,22 @@ function k() {
3614
3612
  be.subscribe((e) => {
3615
3613
  ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3616
3614
  });
3617
- const ti = (e) => {
3618
- if (e && Fn(e) && je(e)) {
3615
+ const ei = (e) => {
3616
+ if (e && Gn(e) && je(e)) {
3619
3617
  const { loadingDelay: t } = J();
3620
3618
  let r;
3621
3619
  return typeof window != "undefined" && k() != null && t ? r = window.setTimeout(
3622
3620
  () => Pe.set(!0),
3623
3621
  t
3624
- ) : Pe.set(!0), Qt(e).then(() => {
3622
+ ) : Pe.set(!0), Wt(e).then(() => {
3625
3623
  be.set(e);
3626
3624
  }).finally(() => {
3627
3625
  clearTimeout(r), Pe.set(!1);
3628
3626
  });
3629
3627
  }
3630
3628
  return be.set(e);
3631
- }, ee = ei(Kn({}, be), {
3632
- set: ti
3629
+ }, ee = Kn(Yn({}, be), {
3630
+ set: ei
3633
3631
  }), Te = (e) => {
3634
3632
  const t = /* @__PURE__ */ Object.create(null);
3635
3633
  return (n) => {
@@ -3637,20 +3635,20 @@ const ti = (e) => {
3637
3635
  return i in t ? t[i] : t[i] = e(n);
3638
3636
  };
3639
3637
  };
3640
- var ri = Object.defineProperty, ye = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
3638
+ var ti = Object.defineProperty, ye = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
3641
3639
  for (var r in t || (t = {}))
3642
- qt.call(t, r) && dt(e, r, t[r]);
3640
+ Zt.call(t, r) && mt(e, r, t[r]);
3643
3641
  if (ye)
3644
3642
  for (var r of ye(t))
3645
- Jt.call(t, r) && dt(e, r, t[r]);
3643
+ Qt.call(t, r) && mt(e, r, t[r]);
3646
3644
  return e;
3647
3645
  }, te = (e, t) => {
3648
3646
  var r = {};
3649
3647
  for (var n in e)
3650
- qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3648
+ Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3651
3649
  if (e != null && ye)
3652
3650
  for (var n of ye(e))
3653
- t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
3651
+ t.indexOf(n) < 0 && Qt.call(e, n) && (r[n] = e[n]);
3654
3652
  return r;
3655
3653
  };
3656
3654
  const oe = (e, t) => {
@@ -3658,21 +3656,21 @@ const oe = (e, t) => {
3658
3656
  if (e in r && t in r[e])
3659
3657
  return r[e][t];
3660
3658
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3661
- }, ni = Te(
3659
+ }, ri = Te(
3662
3660
  (e) => {
3663
3661
  var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3664
3662
  if (r == null)
3665
3663
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3666
3664
  return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
3667
3665
  }
3668
- ), ii = Te(
3666
+ ), ni = Te(
3669
3667
  (e) => {
3670
3668
  var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3671
3669
  if (r == null)
3672
3670
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3673
3671
  return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
3674
3672
  }
3675
- ), si = Te(
3673
+ ), ii = Te(
3676
3674
  (e) => {
3677
3675
  var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3678
3676
  if (r == null)
@@ -3681,33 +3679,33 @@ const oe = (e, t) => {
3681
3679
  );
3682
3680
  return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
3683
3681
  }
3684
- ), oi = (e = {}) => {
3682
+ ), si = (e = {}) => {
3685
3683
  var t = e, {
3686
3684
  locale: r = k()
3687
3685
  } = t, n = te(t, [
3688
3686
  "locale"
3689
3687
  ]);
3690
- return ni(Ze({ locale: r }, n));
3691
- }, ai = (e = {}) => {
3688
+ return ri(ze({ locale: r }, n));
3689
+ }, oi = (e = {}) => {
3692
3690
  var t = e, {
3693
3691
  locale: r = k()
3694
3692
  } = t, n = te(t, [
3695
3693
  "locale"
3696
3694
  ]);
3697
- return ii(Ze({ locale: r }, n));
3698
- }, ui = (e = {}) => {
3695
+ return ni(ze({ locale: r }, n));
3696
+ }, ai = (e = {}) => {
3699
3697
  var t = e, {
3700
3698
  locale: r = k()
3701
3699
  } = t, n = te(t, [
3702
3700
  "locale"
3703
3701
  ]);
3704
- return si(Ze({ locale: r }, n));
3705
- }, hi = Te(
3702
+ return ii(ze({ locale: r }, n));
3703
+ }, ui = Te(
3706
3704
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3707
- (e, t = k()) => new $n(e, t, J().formats, {
3705
+ (e, t = k()) => new Mn(e, t, J().formats, {
3708
3706
  ignoreTag: J().ignoreTag
3709
3707
  })
3710
- ), li = (e, t = {}) => {
3708
+ ), hi = (e, t = {}) => {
3711
3709
  var r, n, i, s;
3712
3710
  let o = t;
3713
3711
  typeof e == "object" && (o = e, e = o.id);
@@ -3720,7 +3718,7 @@ const oe = (e, t) => {
3720
3718
  throw new Error(
3721
3719
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3722
3720
  );
3723
- let l = Xt(e, h);
3721
+ let l = kt(e, h);
3724
3722
  if (!l)
3725
3723
  l = (s = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3726
3724
  else if (typeof l != "string")
@@ -3729,28 +3727,28 @@ const oe = (e, t) => {
3729
3727
  ), l;
3730
3728
  if (!u)
3731
3729
  return l;
3732
- let f = l;
3730
+ let c = l;
3733
3731
  try {
3734
- f = hi(l, h).format(u);
3735
- } catch (c) {
3736
- c instanceof Error && console.warn(
3732
+ c = ui(l, h).format(u);
3733
+ } catch (f) {
3734
+ f instanceof Error && console.warn(
3737
3735
  `[svelte-i18n] Message "${e}" has syntax error:`,
3738
- c.message
3736
+ f.message
3739
3737
  );
3740
3738
  }
3741
- return f;
3742
- }, ci = (e, t) => ui(t).format(e), fi = (e, t) => ai(t).format(e), gi = (e, t) => oi(t).format(e), mi = (e, t = k()) => Xt(e, t), pi = K([ee, ue], () => li);
3743
- K([ee], () => ci);
3739
+ return c;
3740
+ }, li = (e, t) => ai(t).format(e), fi = (e, t) => oi(t).format(e), ci = (e, t) => si(t).format(e), gi = (e, t = k()) => kt(e, t), mi = K([ee, ue], () => hi);
3741
+ K([ee], () => li);
3744
3742
  K([ee], () => fi);
3745
- K([ee], () => gi);
3746
- K([ee, ue], () => mi);
3747
- function di(e, t) {
3743
+ K([ee], () => ci);
3744
+ K([ee, ue], () => gi);
3745
+ function pi(e, t) {
3748
3746
  if (e) {
3749
3747
  const r = document.createElement("style");
3750
3748
  r.innerHTML = t, e.appendChild(r);
3751
3749
  }
3752
3750
  }
3753
- function bi(e, t) {
3751
+ function di(e, t) {
3754
3752
  const r = new URL(t);
3755
3753
  fetch(r.href).then((n) => n.text()).then((n) => {
3756
3754
  const i = document.createElement("style");
@@ -3759,7 +3757,7 @@ function bi(e, t) {
3759
3757
  console.error("There was an error while trying to load client styling from URL", n);
3760
3758
  });
3761
3759
  }
3762
- function yi(e, t, r) {
3760
+ function bi(e, t, r) {
3763
3761
  if (window.emMessageBus) {
3764
3762
  const n = document.createElement("style");
3765
3763
  window.emMessageBus.subscribe(t, (i) => {
@@ -3767,13 +3765,13 @@ function yi(e, t, r) {
3767
3765
  });
3768
3766
  }
3769
3767
  }
3770
- function bt(e, t) {
3771
- Wt(e, t);
3768
+ function pt(e, t) {
3769
+ Xt(e, t);
3772
3770
  }
3773
- function _i(e) {
3771
+ function yi(e) {
3774
3772
  ee.set(e);
3775
3773
  }
3776
- const yt = {
3774
+ const dt = {
3777
3775
  en: {
3778
3776
  topCategories: "Top Categories",
3779
3777
  otherCategories: "Other Categories",
@@ -3883,50 +3881,50 @@ const yt = {
3883
3881
  games: "games"
3884
3882
  }
3885
3883
  };
3886
- function xi(e) {
3887
- ur(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
3884
+ function _i(e) {
3885
+ or(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
3888
3886
  }
3889
- function _t(e, t, r) {
3887
+ function bt(e, t, r) {
3890
3888
  const n = e.slice();
3891
3889
  return n[23] = t[r], n;
3892
3890
  }
3893
- function xt(e, t, r) {
3891
+ function yt(e, t, r) {
3894
3892
  const n = e.slice();
3895
3893
  return n[23] = t[r], n;
3896
3894
  }
3897
- function Ei(e) {
3895
+ function xi(e) {
3898
3896
  let t, r, n = (
3899
3897
  /*$_*/
3900
3898
  e[5]("topCategories") + ""
3901
3899
  ), i, s, o, u, h = (
3902
3900
  /*$_*/
3903
3901
  e[5]("otherCategories") + ""
3904
- ), a, l, f = ce(
3902
+ ), a, l, c = fe(
3905
3903
  /*topCategories*/
3906
3904
  e[3]
3907
- ), c = [];
3908
- for (let g = 0; g < f.length; g += 1)
3909
- c[g] = Et(xt(e, f, g));
3910
- let p = ce(
3905
+ ), f = [];
3906
+ for (let g = 0; g < c.length; g += 1)
3907
+ f[g] = _t(yt(e, c, g));
3908
+ let p = fe(
3911
3909
  /*otherCategories*/
3912
3910
  e[4]
3913
3911
  ), d = [];
3914
3912
  for (let g = 0; g < p.length; g += 1)
3915
- d[g] = vt(_t(e, p, g));
3913
+ d[g] = xt(bt(e, p, g));
3916
3914
  return {
3917
3915
  c() {
3918
- t = w("div"), r = w("h4"), i = U(n), s = R();
3919
- for (let g = 0; g < c.length; g += 1)
3920
- c[g].c();
3921
- o = R(), u = w("h4"), a = U(h), l = R();
3916
+ t = O("div"), r = O("h4"), i = U(n), s = R();
3917
+ for (let g = 0; g < f.length; g += 1)
3918
+ f[g].c();
3919
+ o = R(), u = O("h4"), a = U(h), l = R();
3922
3920
  for (let g = 0; g < d.length; g += 1)
3923
3921
  d[g].c();
3924
3922
  H(r, "class", "CategoryTitle"), H(u, "class", "CategoryTitle"), H(t, "class", "CasinoCategories");
3925
3923
  },
3926
3924
  m(g, E) {
3927
3925
  Y(g, t, E), v(t, r), v(r, i), v(t, s);
3928
- for (let m = 0; m < c.length; m += 1)
3929
- c[m] && c[m].m(t, null);
3926
+ for (let m = 0; m < f.length; m += 1)
3927
+ f[m] && f[m].m(t, null);
3930
3928
  v(t, o), v(t, u), v(u, a), v(t, l);
3931
3929
  for (let m = 0; m < d.length; m += 1)
3932
3930
  d[m] && d[m].m(t, null);
@@ -3936,31 +3934,31 @@ function Ei(e) {
3936
3934
  32 && n !== (n = /*$_*/
3937
3935
  g[5]("topCategories") + "") && G(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
3938
3936
  105) {
3939
- f = ce(
3937
+ c = fe(
3940
3938
  /*topCategories*/
3941
3939
  g[3]
3942
3940
  );
3943
3941
  let m;
3944
- for (m = 0; m < f.length; m += 1) {
3945
- const C = xt(g, f, m);
3946
- c[m] ? c[m].p(C, E) : (c[m] = Et(C), c[m].c(), c[m].m(t, o));
3942
+ for (m = 0; m < c.length; m += 1) {
3943
+ const C = yt(g, c, m);
3944
+ f[m] ? f[m].p(C, E) : (f[m] = _t(C), f[m].c(), f[m].m(t, o));
3947
3945
  }
3948
- for (; m < c.length; m += 1)
3949
- c[m].d(1);
3950
- c.length = f.length;
3946
+ for (; m < f.length; m += 1)
3947
+ f[m].d(1);
3948
+ f.length = c.length;
3951
3949
  }
3952
3950
  if (E & /*$_*/
3953
3951
  32 && h !== (h = /*$_*/
3954
3952
  g[5]("otherCategories") + "") && G(a, h), E & /*activecategory, otherCategories, openGameCategory, $_*/
3955
3953
  113) {
3956
- p = ce(
3954
+ p = fe(
3957
3955
  /*otherCategories*/
3958
3956
  g[4]
3959
3957
  );
3960
3958
  let m;
3961
3959
  for (m = 0; m < p.length; m += 1) {
3962
- const C = _t(g, p, m);
3963
- d[m] ? d[m].p(C, E) : (d[m] = vt(C), d[m].c(), d[m].m(t, null));
3960
+ const C = bt(g, p, m);
3961
+ d[m] ? d[m].p(C, E) : (d[m] = xt(C), d[m].c(), d[m].m(t, null));
3964
3962
  }
3965
3963
  for (; m < d.length; m += 1)
3966
3964
  d[m].d(1);
@@ -3968,15 +3966,15 @@ function Ei(e) {
3968
3966
  }
3969
3967
  },
3970
3968
  d(g) {
3971
- g && j(t), rt(c, g), rt(d, g);
3969
+ g && j(t), et(f, g), et(d, g);
3972
3970
  }
3973
3971
  };
3974
3972
  }
3975
- function vi(e) {
3973
+ function Ei(e) {
3976
3974
  let t;
3977
3975
  return {
3978
3976
  c() {
3979
- t = w("p"), t.textContent = "Loading, please wait...", H(t, "class", "Message");
3977
+ t = O("p"), t.textContent = "Loading, please wait...", H(t, "class", "Message");
3980
3978
  },
3981
3979
  m(r, n) {
3982
3980
  Y(r, t, n);
@@ -3987,11 +3985,11 @@ function vi(e) {
3987
3985
  }
3988
3986
  };
3989
3987
  }
3990
- function Et(e) {
3988
+ function _t(e) {
3991
3989
  let t, r, n, i, s, o, u, h = (
3992
3990
  /*category*/
3993
3991
  e[23].name + ""
3994
- ), a, l, f, c = (
3992
+ ), a, l, c, f = (
3995
3993
  /*category*/
3996
3994
  e[23].games.count + ""
3997
3995
  ), p, d, g = (
@@ -4009,14 +4007,14 @@ function Et(e) {
4009
4007
  }
4010
4008
  return {
4011
4009
  c() {
4012
- t = w("div"), r = w("img"), s = R(), o = w("div"), u = w("p"), a = U(h), l = R(), f = w("p"), p = U(c), d = R(), E = U(g), de(r.src, n = /*category*/
4010
+ t = O("div"), r = O("img"), s = R(), o = O("div"), u = O("p"), a = U(h), l = R(), c = O("p"), p = U(f), d = R(), E = U(g), de(r.src, n = /*category*/
4013
4011
  e[23].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
4014
4012
  e[23].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", m = "Category " + /*activecategory*/
4015
4013
  (e[0] === /*category*/
4016
4014
  e[23].id ? "Active" : ""));
4017
4015
  },
4018
4016
  m(S, A) {
4019
- Y(S, t, A), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, f), v(f, p), v(f, d), v(f, E), C || (B = At(t, "click", P), C = !0);
4017
+ Y(S, t, A), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, p), v(c, d), v(c, E), C || (B = Ct(t, "click", P), C = !0);
4020
4018
  },
4021
4019
  p(S, A) {
4022
4020
  e = S, A & /*topCategories*/
@@ -4026,8 +4024,8 @@ function Et(e) {
4026
4024
  e[23].name) && H(r, "alt", i), A & /*topCategories*/
4027
4025
  8 && h !== (h = /*category*/
4028
4026
  e[23].name + "") && G(a, h), A & /*topCategories*/
4029
- 8 && c !== (c = /*category*/
4030
- e[23].games.count + "") && G(p, c), A & /*$_*/
4027
+ 8 && f !== (f = /*category*/
4028
+ e[23].games.count + "") && G(p, f), A & /*$_*/
4031
4029
  32 && g !== (g = /*$_*/
4032
4030
  e[5]("games") + "") && G(E, g), A & /*activecategory, topCategories*/
4033
4031
  9 && m !== (m = "Category " + /*activecategory*/
@@ -4039,11 +4037,11 @@ function Et(e) {
4039
4037
  }
4040
4038
  };
4041
4039
  }
4042
- function vt(e) {
4040
+ function xt(e) {
4043
4041
  let t, r, n, i, s, o, u, h = (
4044
4042
  /*category*/
4045
4043
  e[23].name + ""
4046
- ), a, l, f, c = (
4044
+ ), a, l, c, f = (
4047
4045
  /*category*/
4048
4046
  e[23].games.count + ""
4049
4047
  ), p, d, g = (
@@ -4061,14 +4059,14 @@ function vt(e) {
4061
4059
  }
4062
4060
  return {
4063
4061
  c() {
4064
- t = w("div"), r = w("img"), s = R(), o = w("div"), u = w("p"), a = U(h), l = R(), f = w("p"), p = U(c), d = R(), E = U(g), m = R(), de(r.src, n = /*category*/
4062
+ t = O("div"), r = O("img"), s = R(), o = O("div"), u = O("p"), a = U(h), l = R(), c = O("p"), p = U(f), d = R(), E = U(g), m = R(), de(r.src, n = /*category*/
4065
4063
  e[23].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
4066
4064
  e[23].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", C = "Category " + /*activecategory*/
4067
4065
  (e[0] === /*category*/
4068
4066
  e[23].id ? "Active" : ""));
4069
4067
  },
4070
4068
  m(A, N) {
4071
- Y(A, t, N), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, f), v(f, p), v(f, d), v(f, E), v(t, m), B || (P = At(t, "click", S), B = !0);
4069
+ Y(A, t, N), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, p), v(c, d), v(c, E), v(t, m), B || (P = Ct(t, "click", S), B = !0);
4072
4070
  },
4073
4071
  p(A, N) {
4074
4072
  e = A, N & /*otherCategories*/
@@ -4078,8 +4076,8 @@ function vt(e) {
4078
4076
  e[23].name) && H(r, "alt", i), N & /*otherCategories*/
4079
4077
  16 && h !== (h = /*category*/
4080
4078
  e[23].name + "") && G(a, h), N & /*otherCategories*/
4081
- 16 && c !== (c = /*category*/
4082
- e[23].games.count + "") && G(p, c), N & /*$_*/
4079
+ 16 && f !== (f = /*category*/
4080
+ e[23].games.count + "") && G(p, f), N & /*$_*/
4083
4081
  32 && g !== (g = /*$_*/
4084
4082
  e[5]("games") + "") && G(E, g), N & /*activecategory, otherCategories*/
4085
4083
  17 && C !== (C = "Category " + /*activecategory*/
@@ -4091,18 +4089,18 @@ function vt(e) {
4091
4089
  }
4092
4090
  };
4093
4091
  }
4094
- function Ti(e) {
4092
+ function vi(e) {
4095
4093
  let t;
4096
4094
  function r(s, o) {
4097
4095
  return (
4098
4096
  /*isLoading*/
4099
- s[2] ? vi : Ei
4097
+ s[2] ? Ei : xi
4100
4098
  );
4101
4099
  }
4102
4100
  let n = r(e), i = n(e);
4103
4101
  return {
4104
4102
  c() {
4105
- t = w("div"), i.c();
4103
+ t = O("div"), i.c();
4106
4104
  },
4107
4105
  m(s, o) {
4108
4106
  Y(s, t, o), i.m(t, null), e[17](t);
@@ -4117,19 +4115,19 @@ function Ti(e) {
4117
4115
  }
4118
4116
  };
4119
4117
  }
4120
- function Ci(e, t, r) {
4118
+ function Ti(e, t, r) {
4121
4119
  let n;
4122
- ar(e, pi, (b) => r(5, n = b));
4123
- let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: c } = t, p, d = !1;
4120
+ sr(e, mi, (b) => r(5, n = b));
4121
+ let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, p, d = !1;
4124
4122
  const g = [];
4125
4123
  let E = [], m = [];
4126
- Object.keys(yt).forEach((b) => {
4127
- bt(b, yt[b]);
4124
+ Object.keys(dt).forEach((b) => {
4125
+ pt(b, dt[b]);
4128
4126
  });
4129
4127
  const C = () => {
4130
- fetch(f).then(($) => $.json()).then(($) => {
4128
+ fetch(c).then(($) => $.json()).then(($) => {
4131
4129
  Object.keys($).forEach((he) => {
4132
- bt(he, $[he]);
4130
+ pt(he, $[he]);
4133
4131
  });
4134
4132
  }).catch(($) => {
4135
4133
  console.log($);
@@ -4141,35 +4139,35 @@ function Ci(e, t, r) {
4141
4139
  r(2, d = !1);
4142
4140
  const he = h.split(",").map((F) => F.trim());
4143
4141
  g.push(...$.items);
4144
- const Qe = g.filter((F) => !he.some((er) => {
4145
- var qe;
4146
- return ((qe = F.flags) == null ? void 0 : qe.indexOf(er)) >= 0;
4142
+ const We = g.filter((F) => !he.some((Yt) => {
4143
+ var Ze;
4144
+ return ((Ze = F.flags) == null ? void 0 : Ze.indexOf(Yt)) >= 0;
4147
4145
  }));
4148
- r(3, E = Qe.filter((F) => F.isTopCategory === !0)), r(4, m = Qe.filter((F) => F.isTopCategory === !1));
4146
+ r(3, E = We.filter((F) => F.isTopCategory === !0)), r(4, m = We.filter((F) => F.isTopCategory === !1));
4149
4147
  });
4150
4148
  }, P = (b) => {
4151
4149
  window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
4152
4150
  }, S = () => {
4153
- _i(o);
4151
+ yi(o);
4154
4152
  };
4155
- mr(() => () => {
4153
+ cr(() => () => {
4156
4154
  });
4157
4155
  const A = (b) => P(b.id), N = (b) => P(b.id);
4158
- function Kt(b) {
4156
+ function Jt(b) {
4159
4157
  Ne[b ? "unshift" : "push"](() => {
4160
4158
  p = b, r(1, p);
4161
4159
  });
4162
4160
  }
4163
4161
  return e.$$set = (b) => {
4164
- "endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, f = b.translationurl), "mbsource" in b && r(14, c = b.mbsource);
4162
+ "endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
4165
4163
  }, e.$$.update = () => {
4166
4164
  e.$$.dirty & /*endpoint, datasource*/
4167
4165
  384 && i && s && B(), e.$$.dirty & /*translationurl*/
4168
- 8192 && f && C(), e.$$.dirty & /*lang*/
4166
+ 8192 && c && C(), e.$$.dirty & /*lang*/
4169
4167
  512 && o && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4170
- 2050 && a && p && di(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4171
- 4098 && l && p && bi(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4172
- 16386 && c && p && yi(p, `${c}.Style`);
4168
+ 2050 && a && p && pi(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4169
+ 4098 && l && p && di(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4170
+ 16386 && f && p && bi(p, `${f}.Style`);
4173
4171
  }, [
4174
4172
  u,
4175
4173
  p,
@@ -4184,21 +4182,21 @@ function Ci(e, t, r) {
4184
4182
  h,
4185
4183
  a,
4186
4184
  l,
4187
- f,
4188
4185
  c,
4186
+ f,
4189
4187
  A,
4190
4188
  N,
4191
- Kt
4189
+ Jt
4192
4190
  ];
4193
4191
  }
4194
- class Yt extends Ar {
4192
+ class qt extends Cr {
4195
4193
  constructor(t) {
4196
- super(), Cr(
4194
+ super(), vr(
4197
4195
  this,
4198
4196
  t,
4199
- Ci,
4200
4197
  Ti,
4201
- Ct,
4198
+ vi,
4199
+ vt,
4202
4200
  {
4203
4201
  endpoint: 7,
4204
4202
  datasource: 8,
@@ -4210,7 +4208,7 @@ class Yt extends Ar {
4210
4208
  translationurl: 13,
4211
4209
  mbsource: 14
4212
4210
  },
4213
- xi
4211
+ _i
4214
4212
  );
4215
4213
  }
4216
4214
  get endpoint() {
@@ -4268,42 +4266,42 @@ class Yt extends Ar {
4268
4266
  this.$$set({ mbsource: t }), M();
4269
4267
  }
4270
4268
  }
4271
- Hr(Yt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
4272
- const Si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4269
+ Tr(qt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
4270
+ const Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4273
4271
  __proto__: null,
4274
- default: Yt
4272
+ default: qt
4275
4273
  }, Symbol.toStringTag, { value: "Module" }));
4276
4274
  export {
4277
4275
  ee as $,
4278
- Ai as A,
4279
- rt as B,
4276
+ et as A,
4277
+ Hi as B,
4280
4278
  de as C,
4281
- Si as D,
4282
- Ar as S,
4283
- Wt as a,
4284
- ur as b,
4285
- Hr as c,
4286
- R as d,
4287
- w as e,
4279
+ Bi as D,
4280
+ Cr as S,
4281
+ Xt as a,
4282
+ or as b,
4283
+ Tr as c,
4284
+ j as d,
4285
+ G as e,
4288
4286
  M as f,
4289
4287
  H as g,
4290
- Bi as h,
4291
- Cr as i,
4288
+ Ai as h,
4289
+ vr as i,
4292
4290
  Y as j,
4293
4291
  v as k,
4294
- At as l,
4295
- G as m,
4292
+ Ct as l,
4293
+ O as m,
4296
4294
  I as n,
4297
- j as o,
4298
- ar as p,
4299
- mr as q,
4295
+ R as o,
4296
+ sr as p,
4297
+ cr as q,
4300
4298
  ae as r,
4301
- Ct as s,
4299
+ vt as s,
4302
4300
  U as t,
4303
- bi as u,
4304
- yi as v,
4305
- Ne as w,
4301
+ Ne as u,
4302
+ mi as v,
4303
+ pi as w,
4306
4304
  di as x,
4307
- pi as y,
4308
- ce as z
4305
+ bi as y,
4306
+ fe as z
4309
4307
  };