@everymatrix/casino-categories-providers 1.59.3 → 1.60.1

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