@everymatrix/casino-categories-providers 1.55.0 → 1.56.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- function I() {
1
+ function L() {
2
2
  }
3
3
  function dt(e) {
4
4
  return e();
@@ -9,43 +9,44 @@ function Ze() {
9
9
  function oe(e) {
10
10
  e.forEach(dt);
11
11
  }
12
- function Fe(e) {
12
+ function je(e) {
13
13
  return typeof e == "function";
14
14
  }
15
15
  function bt(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- let ue;
19
- function me(e, t) {
20
- return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
18
+ let he;
19
+ function pe(e, t) {
20
+ return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
21
21
  }
22
- function Qt(e) {
22
+ function Zt(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
25
  function yt(e, ...t) {
26
26
  if (e == null) {
27
27
  for (const n of t)
28
28
  n(void 0);
29
- return I;
29
+ return L;
30
30
  }
31
31
  const r = e.subscribe(...t);
32
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
33
33
  }
34
- function qt(e, t, r) {
34
+ function Qt(e, t, r) {
35
35
  e.$$.on_destroy.push(yt(t, r));
36
36
  }
37
37
  function v(e, t) {
38
38
  e.appendChild(t);
39
39
  }
40
- function Jt(e, t, r) {
41
- const n = Yt(e);
40
+ function qt(e, t, r) {
41
+ const n = Jt(e);
42
42
  if (!n.getElementById(t)) {
43
- const i = O("style");
44
- i.id = t, i.textContent = r, Kt(n, i);
43
+ const i = w("style");
44
+ i.id = t, i.textContent = r, Yt(n, i);
45
45
  }
46
46
  }
47
- function Yt(e) {
48
- if (!e) return document;
47
+ function Jt(e) {
48
+ if (!e)
49
+ return document;
49
50
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
50
51
  return t && /** @type {ShadowRoot} */
51
52
  t.host ? (
@@ -53,24 +54,24 @@ function Yt(e) {
53
54
  t
54
55
  ) : e.ownerDocument;
55
56
  }
56
- function Kt(e, t) {
57
+ function Yt(e, t) {
57
58
  return v(
58
59
  /** @type {Document} */
59
60
  e.head || e,
60
61
  t
61
62
  ), t.sheet;
62
63
  }
63
- function Y(e, t, r) {
64
+ function J(e, t, r) {
64
65
  e.insertBefore(t, r || null);
65
66
  }
66
- function j(e) {
67
+ function F(e) {
67
68
  e.parentNode && e.parentNode.removeChild(e);
68
69
  }
69
70
  function Qe(e, t) {
70
71
  for (let r = 0; r < e.length; r += 1)
71
72
  e[r] && e[r].d(t);
72
73
  }
73
- function O(e) {
74
+ function w(e) {
74
75
  return document.createElement(e);
75
76
  }
76
77
  function R(e) {
@@ -79,7 +80,7 @@ function R(e) {
79
80
  function $() {
80
81
  return R(" ");
81
82
  }
82
- function hi() {
83
+ function gi() {
83
84
  return R("");
84
85
  }
85
86
  function _t(e, t, r, n) {
@@ -88,18 +89,18 @@ function _t(e, t, r, n) {
88
89
  function H(e, t, r) {
89
90
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
90
91
  }
91
- function li(e, t, r) {
92
+ function mi(e, t, r) {
92
93
  const n = t.toLowerCase();
93
94
  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);
94
95
  }
95
- function er(e) {
96
+ function Kt(e) {
96
97
  return Array.from(e.childNodes);
97
98
  }
98
99
  function D(e, t) {
99
100
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
100
101
  t);
101
102
  }
102
- function tr(e) {
103
+ function er(e) {
103
104
  const t = {};
104
105
  return e.childNodes.forEach(
105
106
  /** @param {Element} node */
@@ -108,87 +109,96 @@ function tr(e) {
108
109
  }
109
110
  ), t;
110
111
  }
111
- let je;
112
- function ne(e) {
113
- je = e;
112
+ let ne;
113
+ function re(e) {
114
+ ne = e;
115
+ }
116
+ function tr() {
117
+ if (!ne)
118
+ throw new Error("Function called outside component initialization");
119
+ return ne;
114
120
  }
115
- const z = [], Oe = [];
116
- let W = [];
117
- const qe = [], rr = /* @__PURE__ */ Promise.resolve();
121
+ function rr(e) {
122
+ tr().$$.on_mount.push(e);
123
+ }
124
+ const X = [], Oe = [];
125
+ let z = [];
126
+ const qe = [], nr = /* @__PURE__ */ Promise.resolve();
118
127
  let Pe = !1;
119
- function nr() {
120
- Pe || (Pe = !0, rr.then(M));
128
+ function ir() {
129
+ Pe || (Pe = !0, nr.then(I));
121
130
  }
122
- function we(e) {
123
- W.push(e);
131
+ function Ne(e) {
132
+ z.push(e);
124
133
  }
125
- const ve = /* @__PURE__ */ new Set();
126
- let V = 0;
127
- function M() {
128
- if (V !== 0)
134
+ const Te = /* @__PURE__ */ new Set();
135
+ let k = 0;
136
+ function I() {
137
+ if (k !== 0)
129
138
  return;
130
- const e = je;
139
+ const e = ne;
131
140
  do {
132
141
  try {
133
- for (; V < z.length; ) {
134
- const t = z[V];
135
- V++, ne(t), ir(t.$$);
142
+ for (; k < X.length; ) {
143
+ const t = X[k];
144
+ k++, re(t), sr(t.$$);
136
145
  }
137
146
  } catch (t) {
138
- throw z.length = 0, V = 0, t;
147
+ throw X.length = 0, k = 0, t;
139
148
  }
140
- for (ne(null), z.length = 0, V = 0; Oe.length; ) Oe.pop()();
141
- for (let t = 0; t < W.length; t += 1) {
142
- const r = W[t];
143
- ve.has(r) || (ve.add(r), r());
149
+ for (re(null), X.length = 0, k = 0; Oe.length; )
150
+ Oe.pop()();
151
+ for (let t = 0; t < z.length; t += 1) {
152
+ const r = z[t];
153
+ Te.has(r) || (Te.add(r), r());
144
154
  }
145
- W.length = 0;
146
- } while (z.length);
155
+ z.length = 0;
156
+ } while (X.length);
147
157
  for (; qe.length; )
148
158
  qe.pop()();
149
- Pe = !1, ve.clear(), ne(e);
159
+ Pe = !1, Te.clear(), re(e);
150
160
  }
151
- function ir(e) {
161
+ function sr(e) {
152
162
  if (e.fragment !== null) {
153
163
  e.update(), oe(e.before_update);
154
164
  const t = e.dirty;
155
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(we);
165
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
156
166
  }
157
167
  }
158
- function sr(e) {
168
+ function or(e) {
159
169
  const t = [], r = [];
160
- W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
170
+ z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), z = t;
161
171
  }
162
- const or = /* @__PURE__ */ new Set();
163
- function ar(e, t) {
164
- e && e.i && (or.delete(e), e.i(t));
172
+ const ar = /* @__PURE__ */ new Set();
173
+ function ur(e, t) {
174
+ e && e.i && (ar.delete(e), e.i(t));
165
175
  }
166
- function he(e) {
176
+ function le(e) {
167
177
  return e?.length !== void 0 ? e : Array.from(e);
168
178
  }
169
- function ur(e, t, r) {
179
+ function hr(e, t, r) {
170
180
  const { fragment: n, after_update: i } = e.$$;
171
- n && n.m(t, r), we(() => {
172
- const s = e.$$.on_mount.map(dt).filter(Fe);
181
+ n && n.m(t, r), Ne(() => {
182
+ const s = e.$$.on_mount.map(dt).filter(je);
173
183
  e.$$.on_destroy ? e.$$.on_destroy.push(...s) : oe(s), e.$$.on_mount = [];
174
- }), i.forEach(we);
184
+ }), i.forEach(Ne);
175
185
  }
176
- function hr(e, t) {
186
+ function lr(e, t) {
177
187
  const r = e.$$;
178
- r.fragment !== null && (sr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
188
+ r.fragment !== null && (or(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
179
189
  }
180
- function lr(e, t) {
181
- e.$$.dirty[0] === -1 && (z.push(e), nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
190
+ function cr(e, t) {
191
+ e.$$.dirty[0] === -1 && (X.push(e), ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
182
192
  }
183
193
  function fr(e, t, r, n, i, s, o = null, u = [-1]) {
184
- const f = je;
185
- ne(e);
194
+ const l = ne;
195
+ re(e);
186
196
  const a = e.$$ = {
187
197
  fragment: null,
188
198
  ctx: [],
189
199
  // state
190
200
  props: s,
191
- update: I,
201
+ update: L,
192
202
  not_equal: i,
193
203
  bound: Ze(),
194
204
  // lifecycle
@@ -197,27 +207,27 @@ function fr(e, t, r, n, i, s, o = null, u = [-1]) {
197
207
  on_disconnect: [],
198
208
  before_update: [],
199
209
  after_update: [],
200
- context: new Map(t.context || (f ? f.$$.context : [])),
210
+ context: new Map(t.context || (l ? l.$$.context : [])),
201
211
  // everything else
202
212
  callbacks: Ze(),
203
213
  dirty: u,
204
214
  skip_bound: !1,
205
- root: t.target || f.$$.root
215
+ root: t.target || l.$$.root
206
216
  };
207
217
  o && o(a.root);
208
218
  let h = !1;
209
- if (a.ctx = r ? r(e, t.props || {}, (c, l, ...d) => {
210
- const p = d.length ? d[0] : l;
211
- return a.ctx && i(a.ctx[c], a.ctx[c] = p) && (!a.skip_bound && a.bound[c] && a.bound[c](p), h && lr(e, c)), l;
219
+ if (a.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
220
+ const d = p.length ? p[0] : c;
221
+ return a.ctx && i(a.ctx[f], a.ctx[f] = d) && (!a.skip_bound && a.bound[f] && a.bound[f](d), h && cr(e, f)), c;
212
222
  }) : [], a.update(), h = !0, oe(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
213
223
  if (t.hydrate) {
214
- const c = er(t.target);
215
- a.fragment && a.fragment.l(c), c.forEach(j);
224
+ const f = Kt(t.target);
225
+ a.fragment && a.fragment.l(f), f.forEach(F);
216
226
  } else
217
227
  a.fragment && a.fragment.c();
218
- t.intro && ar(e.$$.fragment), ur(e, t.target, t.anchor), M();
228
+ t.intro && ur(e.$$.fragment), hr(e, t.target, t.anchor), I();
219
229
  }
220
- ne(f);
230
+ re(l);
221
231
  }
222
232
  let xt;
223
233
  typeof HTMLElement == "function" && (xt = class extends HTMLElement {
@@ -262,24 +272,24 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
262
272
  let s;
263
273
  return {
264
274
  c: function() {
265
- s = O("slot"), i !== "default" && H(s, "name", i);
275
+ s = w("slot"), i !== "default" && H(s, "name", i);
266
276
  },
267
277
  /**
268
278
  * @param {HTMLElement} target
269
279
  * @param {HTMLElement} [anchor]
270
280
  */
271
- m: function(f, a) {
272
- Y(f, s, a);
281
+ m: function(l, a) {
282
+ J(l, s, a);
273
283
  },
274
- d: function(f) {
275
- f && j(s);
284
+ d: function(l) {
285
+ l && F(s);
276
286
  }
277
287
  };
278
288
  };
279
289
  };
280
290
  if (await Promise.resolve(), !this.$$cn || this.$$c)
281
291
  return;
282
- const t = {}, r = tr(this);
292
+ const t = {}, r = er(this);
283
293
  for (const i of this.$$s)
284
294
  i in r && (t[i] = [e(i)]);
285
295
  for (const i of this.attributes) {
@@ -366,7 +376,7 @@ function fe(e, t, r, n) {
366
376
  return t;
367
377
  }
368
378
  }
369
- function cr(e, t, r, n, i, s) {
379
+ function gr(e, t, r, n, i, s) {
370
380
  let o = class extends xt {
371
381
  constructor() {
372
382
  super(e, r, i), this.$$p_d = t;
@@ -382,8 +392,8 @@ function cr(e, t, r, n, i, s) {
382
392
  get() {
383
393
  return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
384
394
  },
385
- set(f) {
386
- f = fe(u, f, t), this.$$d[u] = f, this.$$c?.$set({ [u]: f });
395
+ set(l) {
396
+ l = fe(u, l, t), this.$$d[u] = l, this.$$c?.$set({ [u]: l });
387
397
  }
388
398
  });
389
399
  }), n.forEach((u) => {
@@ -395,7 +405,7 @@ function cr(e, t, r, n, i, s) {
395
405
  }), e.element = /** @type {any} */
396
406
  o, o;
397
407
  }
398
- class gr {
408
+ class mr {
399
409
  /**
400
410
  * ### PRIVATE API
401
411
  *
@@ -414,7 +424,7 @@ class gr {
414
424
  $$set = void 0;
415
425
  /** @returns {void} */
416
426
  $destroy() {
417
- hr(this, 1), this.$destroy = I;
427
+ lr(this, 1), this.$destroy = L;
418
428
  }
419
429
  /**
420
430
  * @template {Extract<keyof Events, string>} K
@@ -423,8 +433,8 @@ class gr {
423
433
  * @returns {() => void}
424
434
  */
425
435
  $on(t, r) {
426
- if (!Fe(r))
427
- return I;
436
+ if (!je(r))
437
+ return L;
428
438
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
429
439
  return n.push(r), () => {
430
440
  const i = n.indexOf(r);
@@ -436,115 +446,115 @@ class gr {
436
446
  * @returns {void}
437
447
  */
438
448
  $set(t) {
439
- this.$$set && !Qt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
449
+ this.$$set && !Zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
440
450
  }
441
451
  }
442
- const mr = "4";
443
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mr);
444
- const X = [];
445
- function pr(e, t) {
452
+ const pr = "4";
453
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pr);
454
+ const V = [];
455
+ function dr(e, t) {
446
456
  return {
447
- subscribe: be(e, t).subscribe
457
+ subscribe: ye(e, t).subscribe
448
458
  };
449
459
  }
450
- function be(e, t = I) {
460
+ function ye(e, t = L) {
451
461
  let r;
452
462
  const n = /* @__PURE__ */ new Set();
453
463
  function i(u) {
454
464
  if (bt(e, u) && (e = u, r)) {
455
- const f = !X.length;
465
+ const l = !V.length;
456
466
  for (const a of n)
457
- a[1](), X.push(a, e);
458
- if (f) {
459
- for (let a = 0; a < X.length; a += 2)
460
- X[a][0](X[a + 1]);
461
- X.length = 0;
467
+ a[1](), V.push(a, e);
468
+ if (l) {
469
+ for (let a = 0; a < V.length; a += 2)
470
+ V[a][0](V[a + 1]);
471
+ V.length = 0;
462
472
  }
463
473
  }
464
474
  }
465
475
  function s(u) {
466
476
  i(u(e));
467
477
  }
468
- function o(u, f = I) {
469
- const a = [u, f];
470
- return n.add(a), n.size === 1 && (r = t(i, s) || I), u(e), () => {
478
+ function o(u, l = L) {
479
+ const a = [u, l];
480
+ return n.add(a), n.size === 1 && (r = t(i, s) || L), u(e), () => {
471
481
  n.delete(a), n.size === 0 && r && (r(), r = null);
472
482
  };
473
483
  }
474
484
  return { set: i, update: s, subscribe: o };
475
485
  }
476
- function K(e, t, r) {
486
+ function Y(e, t, r) {
477
487
  const n = !Array.isArray(e), i = n ? [e] : e;
478
488
  if (!i.every(Boolean))
479
489
  throw new Error("derived() expects stores as input, got a falsy value");
480
490
  const s = t.length < 2;
481
- return pr(r, (o, u) => {
482
- let f = !1;
491
+ return dr(r, (o, u) => {
492
+ let l = !1;
483
493
  const a = [];
484
- let h = 0, c = I;
485
- const l = () => {
494
+ let h = 0, f = L;
495
+ const c = () => {
486
496
  if (h)
487
497
  return;
488
- c();
489
- const p = t(n ? a[0] : a, o, u);
490
- s ? o(p) : c = Fe(p) ? p : I;
491
- }, d = i.map(
492
- (p, g) => yt(
493
- p,
498
+ f();
499
+ const d = t(n ? a[0] : a, o, u);
500
+ s ? o(d) : f = je(d) ? d : L;
501
+ }, p = i.map(
502
+ (d, g) => yt(
503
+ d,
494
504
  (E) => {
495
- a[g] = E, h &= ~(1 << g), f && l();
505
+ a[g] = E, h &= ~(1 << g), l && c();
496
506
  },
497
507
  () => {
498
508
  h |= 1 << g;
499
509
  }
500
510
  )
501
511
  );
502
- return f = !0, l(), function() {
503
- oe(d), c(), f = !1;
512
+ return l = !0, c(), function() {
513
+ oe(p), f(), l = !1;
504
514
  };
505
515
  });
506
516
  }
507
- function dr(e) {
517
+ function br(e) {
508
518
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
509
519
  }
510
- var br = function(t) {
511
- return yr(t) && !_r(t);
520
+ var yr = function(t) {
521
+ return _r(t) && !xr(t);
512
522
  };
513
- function yr(e) {
523
+ function _r(e) {
514
524
  return !!e && typeof e == "object";
515
525
  }
516
- function _r(e) {
526
+ function xr(e) {
517
527
  var t = Object.prototype.toString.call(e);
518
- return t === "[object RegExp]" || t === "[object Date]" || vr(e);
528
+ return t === "[object RegExp]" || t === "[object Date]" || Tr(e);
519
529
  }
520
- var xr = typeof Symbol == "function" && Symbol.for, Er = xr ? Symbol.for("react.element") : 60103;
521
- function vr(e) {
522
- return e.$$typeof === Er;
530
+ var Er = typeof Symbol == "function" && Symbol.for, vr = Er ? Symbol.for("react.element") : 60103;
531
+ function Tr(e) {
532
+ return e.$$typeof === vr;
523
533
  }
524
534
  function Cr(e) {
525
535
  return Array.isArray(e) ? [] : {};
526
536
  }
527
537
  function ie(e, t) {
528
- return t.clone !== !1 && t.isMergeableObject(e) ? Z(Cr(e), e, t) : e;
538
+ return t.clone !== !1 && t.isMergeableObject(e) ? W(Cr(e), e, t) : e;
529
539
  }
530
- function Tr(e, t, r) {
540
+ function Hr(e, t, r) {
531
541
  return e.concat(t).map(function(n) {
532
542
  return ie(n, r);
533
543
  });
534
544
  }
535
- function Hr(e, t) {
545
+ function Ar(e, t) {
536
546
  if (!t.customMerge)
537
- return Z;
547
+ return W;
538
548
  var r = t.customMerge(e);
539
- return typeof r == "function" ? r : Z;
549
+ return typeof r == "function" ? r : W;
540
550
  }
541
- function Ar(e) {
551
+ function Br(e) {
542
552
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
543
553
  return Object.propertyIsEnumerable.call(e, t);
544
554
  }) : [];
545
555
  }
546
556
  function Je(e) {
547
- return Object.keys(e).concat(Ar(e));
557
+ return Object.keys(e).concat(Br(e));
548
558
  }
549
559
  function Et(e, t) {
550
560
  try {
@@ -556,39 +566,54 @@ function Et(e, t) {
556
566
  function Sr(e, t) {
557
567
  return Et(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
558
568
  }
559
- function Br(e, t, r) {
569
+ function wr(e, t, r) {
560
570
  var n = {};
561
571
  return r.isMergeableObject(e) && Je(e).forEach(function(i) {
562
572
  n[i] = ie(e[i], r);
563
573
  }), Je(t).forEach(function(i) {
564
- Sr(e, i) || (Et(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hr(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
574
+ Sr(e, i) || (Et(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ar(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
565
575
  }), n;
566
576
  }
567
- function Z(e, t, r) {
568
- r = r || {}, r.arrayMerge = r.arrayMerge || Tr, r.isMergeableObject = r.isMergeableObject || br, r.cloneUnlessOtherwiseSpecified = ie;
577
+ function W(e, t, r) {
578
+ r = r || {}, r.arrayMerge = r.arrayMerge || Hr, r.isMergeableObject = r.isMergeableObject || yr, r.cloneUnlessOtherwiseSpecified = ie;
569
579
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
570
- return s ? n ? r.arrayMerge(e, t, r) : Br(e, t, r) : ie(t, r);
580
+ return s ? n ? r.arrayMerge(e, t, r) : wr(e, t, r) : ie(t, r);
571
581
  }
572
- Z.all = function(t, r) {
582
+ W.all = function(t, r) {
573
583
  if (!Array.isArray(t))
574
584
  throw new Error("first argument should be an array");
575
585
  return t.reduce(function(n, i) {
576
- return Z(n, i, r);
586
+ return W(n, i, r);
577
587
  }, {});
578
588
  };
579
- var Or = Z, Pr = Or;
580
- const wr = /* @__PURE__ */ dr(Pr);
581
- var Ne = function(e, t) {
582
- return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
589
+ var Or = W, Pr = Or;
590
+ const Nr = /* @__PURE__ */ br(Pr);
591
+ /*! *****************************************************************************
592
+ Copyright (c) Microsoft Corporation.
593
+
594
+ Permission to use, copy, modify, and/or distribute this software for any
595
+ purpose with or without fee is hereby granted.
596
+
597
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
598
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
599
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
600
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
601
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
602
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
603
+ PERFORMANCE OF THIS SOFTWARE.
604
+ ***************************************************************************** */
605
+ var Le = function(e, t) {
606
+ return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
583
607
  r.__proto__ = n;
584
608
  } || function(r, n) {
585
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
586
- }, Ne(e, t);
609
+ for (var i in n)
610
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
611
+ }, Le(e, t);
587
612
  };
588
- function ye(e, t) {
613
+ function _e(e, t) {
589
614
  if (typeof t != "function" && t !== null)
590
615
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
591
- Ne(e, t);
616
+ Le(e, t);
592
617
  function r() {
593
618
  this.constructor = e;
594
619
  }
@@ -598,56 +623,59 @@ var x = function() {
598
623
  return x = Object.assign || function(t) {
599
624
  for (var r, n = 1, i = arguments.length; n < i; n++) {
600
625
  r = arguments[n];
601
- for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
626
+ for (var s in r)
627
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
602
628
  }
603
629
  return t;
604
630
  }, x.apply(this, arguments);
605
631
  };
606
- function Nr(e, t) {
632
+ function Lr(e, t) {
607
633
  var r = {};
608
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
634
+ for (var n in e)
635
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
609
636
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
610
637
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
611
638
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
612
639
  return r;
613
640
  }
614
641
  function Ce(e, t, r) {
615
- if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
616
- (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
617
- return e.concat(s || Array.prototype.slice.call(t));
642
+ if (arguments.length === 2)
643
+ for (var n = 0, i = t.length, s; n < i; n++)
644
+ (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
645
+ return e.concat(s || t);
618
646
  }
619
- function Te(e, t) {
620
- var r = t && t.cache ? t.cache : Ur, n = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Ir;
647
+ function He(e, t) {
648
+ var r = t && t.cache ? t.cache : Dr, n = t && t.serializer ? t.serializer : Ur, i = t && t.strategy ? t.strategy : Mr;
621
649
  return i(e, {
622
650
  cache: r,
623
651
  serializer: n
624
652
  });
625
653
  }
626
- function Lr(e) {
654
+ function Ir(e) {
627
655
  return e == null || typeof e == "number" || typeof e == "boolean";
628
656
  }
629
657
  function vt(e, t, r, n) {
630
- var i = Lr(n) ? n : r(n), s = t.get(i);
658
+ var i = Ir(n) ? n : r(n), s = t.get(i);
631
659
  return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
632
660
  }
633
- function Ct(e, t, r) {
661
+ function Tt(e, t, r) {
634
662
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
635
663
  return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
636
664
  }
637
665
  function ke(e, t, r, n, i) {
638
666
  return r.bind(t, e, n, i);
639
667
  }
640
- function Ir(e, t) {
641
- var r = e.length === 1 ? vt : Ct;
642
- return ke(e, this, r, t.cache.create(), t.serializer);
643
- }
644
668
  function Mr(e, t) {
645
- return ke(e, this, Ct, t.cache.create(), t.serializer);
669
+ var r = e.length === 1 ? vt : Tt;
670
+ return ke(e, this, r, t.cache.create(), t.serializer);
646
671
  }
647
672
  function $r(e, t) {
673
+ return ke(e, this, Tt, t.cache.create(), t.serializer);
674
+ }
675
+ function Rr(e, t) {
648
676
  return ke(e, this, vt, t.cache.create(), t.serializer);
649
677
  }
650
- var Rr = function() {
678
+ var Ur = function() {
651
679
  return JSON.stringify(arguments);
652
680
  };
653
681
  function Ve() {
@@ -659,62 +687,62 @@ Ve.prototype.get = function(e) {
659
687
  Ve.prototype.set = function(e, t) {
660
688
  this.cache[e] = t;
661
689
  };
662
- var Ur = {
690
+ var Dr = {
663
691
  create: function() {
664
692
  return new Ve();
665
693
  }
666
- }, He = {
667
- variadic: Mr,
668
- monadic: $r
694
+ }, Ae = {
695
+ variadic: $r,
696
+ monadic: Rr
669
697
  }, y;
670
698
  (function(e) {
671
699
  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";
672
700
  })(y || (y = {}));
673
- var C;
701
+ var T;
674
702
  (function(e) {
675
703
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
676
- })(C || (C = {}));
677
- var Q;
704
+ })(T || (T = {}));
705
+ var Z;
678
706
  (function(e) {
679
707
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
680
- })(Q || (Q = {}));
708
+ })(Z || (Z = {}));
681
709
  function Ye(e) {
682
- return e.type === C.literal;
710
+ return e.type === T.literal;
683
711
  }
684
712
  function Gr(e) {
685
- return e.type === C.argument;
713
+ return e.type === T.argument;
686
714
  }
687
- function Tt(e) {
688
- return e.type === C.number;
715
+ function Ct(e) {
716
+ return e.type === T.number;
689
717
  }
690
718
  function Ht(e) {
691
- return e.type === C.date;
719
+ return e.type === T.date;
692
720
  }
693
721
  function At(e) {
694
- return e.type === C.time;
722
+ return e.type === T.time;
723
+ }
724
+ function Bt(e) {
725
+ return e.type === T.select;
695
726
  }
696
727
  function St(e) {
697
- return e.type === C.select;
728
+ return e.type === T.plural;
698
729
  }
699
- function Bt(e) {
700
- return e.type === C.plural;
730
+ function Fr(e) {
731
+ return e.type === T.pound;
701
732
  }
702
- function Dr(e) {
703
- return e.type === C.pound;
733
+ function wt(e) {
734
+ return e.type === T.tag;
704
735
  }
705
736
  function Ot(e) {
706
- return e.type === C.tag;
707
- }
708
- function Pt(e) {
709
- return !!(e && typeof e == "object" && e.type === Q.number);
737
+ return !!(e && typeof e == "object" && e.type === Z.number);
710
738
  }
711
- function Le(e) {
712
- return !!(e && typeof e == "object" && e.type === Q.dateTime);
739
+ function Ie(e) {
740
+ return !!(e && typeof e == "object" && e.type === Z.dateTime);
713
741
  }
714
- var wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Fr = /(?:[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;
715
- function jr(e) {
742
+ var Pt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, jr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
743
+ function kr(e) {
716
744
  var t = {};
717
- return e.replace(Fr, function(r) {
745
+ return e.replace(jr, function(r) {
718
746
  var n = r.length;
719
747
  switch (r[0]) {
720
748
  case "G":
@@ -803,29 +831,29 @@ function jr(e) {
803
831
  return "";
804
832
  }), t;
805
833
  }
806
- var kr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
807
- function Vr(e) {
834
+ var Vr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
835
+ function Xr(e) {
808
836
  if (e.length === 0)
809
837
  throw new Error("Number skeleton cannot be empty");
810
- for (var t = e.split(kr).filter(function(l) {
811
- return l.length > 0;
838
+ for (var t = e.split(Vr).filter(function(c) {
839
+ return c.length > 0;
812
840
  }), r = [], n = 0, i = t; n < i.length; n++) {
813
841
  var s = i[n], o = s.split("/");
814
842
  if (o.length === 0)
815
843
  throw new Error("Invalid number skeleton");
816
- for (var u = o[0], f = o.slice(1), a = 0, h = f; a < h.length; a++) {
817
- var c = h[a];
818
- if (c.length === 0)
844
+ for (var u = o[0], l = o.slice(1), a = 0, h = l; a < h.length; a++) {
845
+ var f = h[a];
846
+ if (f.length === 0)
819
847
  throw new Error("Invalid number skeleton");
820
848
  }
821
- r.push({ stem: u, options: f });
849
+ r.push({ stem: u, options: l });
822
850
  }
823
851
  return r;
824
852
  }
825
- function Xr(e) {
853
+ function zr(e) {
826
854
  return e.replace(/^(.*?)-/, "");
827
855
  }
828
- var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nt = /^(@+)?(\+|#+)?[rs]?$/g, zr = /(\*)(0+)|(#+)(0+)|(0+)/g, Lt = /^(0+)$/;
856
+ var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nt = /^(@+)?(\+|#+)?[rs]?$/g, Wr = /(\*)(0+)|(#+)(0+)|(0+)/g, Lt = /^(0+)$/;
829
857
  function et(e) {
830
858
  var t = {};
831
859
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Nt, function(r, n, i) {
@@ -872,7 +900,7 @@ function It(e) {
872
900
  };
873
901
  }
874
902
  }
875
- function Wr(e) {
903
+ function Zr(e) {
876
904
  var t;
877
905
  if (e[0] === "E" && e[1] === "E" ? (t = {
878
906
  notation: "engineering"
@@ -890,7 +918,7 @@ function tt(e) {
890
918
  var t = {}, r = It(e);
891
919
  return r || t;
892
920
  }
893
- function Zr(e) {
921
+ function Qr(e) {
894
922
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
895
923
  var i = n[r];
896
924
  switch (i.stem) {
@@ -914,7 +942,7 @@ function Zr(e) {
914
942
  continue;
915
943
  case "measure-unit":
916
944
  case "unit":
917
- t.style = "unit", t.unit = Xr(i.options[0]);
945
+ t.style = "unit", t.unit = zr(i.options[0]);
918
946
  continue;
919
947
  case "compact-short":
920
948
  case "K":
@@ -925,13 +953,13 @@ function Zr(e) {
925
953
  t.notation = "compact", t.compactDisplay = "long";
926
954
  continue;
927
955
  case "scientific":
928
- t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(f, a) {
929
- return x(x({}, f), tt(a));
956
+ t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
957
+ return x(x({}, l), tt(a));
930
958
  }, {}));
931
959
  continue;
932
960
  case "engineering":
933
- t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(f, a) {
934
- return x(x({}, f), tt(a));
961
+ t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
962
+ return x(x({}, l), tt(a));
935
963
  }, {}));
936
964
  continue;
937
965
  case "notation-simple":
@@ -976,13 +1004,13 @@ function Zr(e) {
976
1004
  case "integer-width":
977
1005
  if (i.options.length > 1)
978
1006
  throw new RangeError("integer-width stems only accept a single optional option");
979
- i.options[0].replace(zr, function(f, a, h, c, l, d) {
1007
+ i.options[0].replace(Wr, function(l, a, h, f, c, p) {
980
1008
  if (a)
981
1009
  t.minimumIntegerDigits = h.length;
982
1010
  else {
983
- if (c && l)
1011
+ if (f && c)
984
1012
  throw new Error("We currently do not support maximum integer digits");
985
- if (d)
1013
+ if (p)
986
1014
  throw new Error("We currently do not support exact integer digits");
987
1015
  }
988
1016
  return "";
@@ -996,8 +1024,8 @@ function Zr(e) {
996
1024
  if (Ke.test(i.stem)) {
997
1025
  if (i.options.length > 1)
998
1026
  throw new RangeError("Fraction-precision stems only accept a single optional option");
999
- i.stem.replace(Ke, function(f, a, h, c, l, d) {
1000
- return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : l && d ? (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1027
+ i.stem.replace(Ke, function(l, a, h, f, c, p) {
1028
+ return h === "*" ? 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), "";
1001
1029
  });
1002
1030
  var s = i.options[0];
1003
1031
  s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), et(s)));
@@ -1009,12 +1037,12 @@ function Zr(e) {
1009
1037
  }
1010
1038
  var o = It(i.stem);
1011
1039
  o && (t = x(x({}, t), o));
1012
- var u = Wr(i.stem);
1040
+ var u = Zr(i.stem);
1013
1041
  u && (t = x(x({}, t), u));
1014
1042
  }
1015
1043
  return t;
1016
1044
  }
1017
- var le = {
1045
+ var ce = {
1018
1046
  "001": [
1019
1047
  "H",
1020
1048
  "h"
@@ -2429,22 +2457,23 @@ var le = {
2429
2457
  "h"
2430
2458
  ]
2431
2459
  };
2432
- function Qr(e, t) {
2460
+ function qr(e, t) {
2433
2461
  for (var r = "", n = 0; n < e.length; n++) {
2434
2462
  var i = e.charAt(n);
2435
2463
  if (i === "j") {
2436
2464
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2437
2465
  s++, n++;
2438
- var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), f = "a", a = qr(t);
2466
+ var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = Jr(t);
2439
2467
  for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
2440
- r += f;
2468
+ r += l;
2441
2469
  for (; o-- > 0; )
2442
2470
  r = a + r;
2443
- } else i === "J" ? r += "H" : r += i;
2471
+ } else
2472
+ i === "J" ? r += "H" : r += i;
2444
2473
  }
2445
2474
  return r;
2446
2475
  }
2447
- function qr(e) {
2476
+ function Jr(e) {
2448
2477
  var t = e.hourCycle;
2449
2478
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2450
2479
  e.hourCycles && // @ts-ignore
@@ -2463,23 +2492,23 @@ function qr(e) {
2463
2492
  }
2464
2493
  var r = e.language, n;
2465
2494
  r !== "root" && (n = e.maximize().region);
2466
- var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
2495
+ var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
2467
2496
  return i[0];
2468
2497
  }
2469
- var Ae, Jr = new RegExp("^".concat(wt.source, "*")), Yr = new RegExp("".concat(wt.source, "*$"));
2498
+ var Be, Yr = new RegExp("^".concat(Pt.source, "*")), Kr = new RegExp("".concat(Pt.source, "*$"));
2470
2499
  function _(e, t) {
2471
2500
  return { start: e, end: t };
2472
2501
  }
2473
- var Kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), en = !!String.fromCodePoint, tn = !!Object.fromEntries, rn = !!String.prototype.codePointAt, nn = !!String.prototype.trimStart, sn = !!String.prototype.trimEnd, on = !!Number.isSafeInteger, an = on ? Number.isSafeInteger : function(e) {
2502
+ var en = !!String.prototype.startsWith && "_a".startsWith("a", 1), tn = !!String.fromCodePoint, rn = !!Object.fromEntries, nn = !!String.prototype.codePointAt, sn = !!String.prototype.trimStart, on = !!String.prototype.trimEnd, an = !!Number.isSafeInteger, un = an ? Number.isSafeInteger : function(e) {
2474
2503
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2475
- }, Ie = !0;
2504
+ }, Me = !0;
2476
2505
  try {
2477
- var un = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2478
- Ie = ((Ae = un.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
2506
+ var hn = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2507
+ Me = ((Be = hn.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
2479
2508
  } catch {
2480
- Ie = !1;
2509
+ Me = !1;
2481
2510
  }
2482
- var rt = Kr ? (
2511
+ var rt = en ? (
2483
2512
  // Native
2484
2513
  function(t, r, n) {
2485
2514
  return t.startsWith(r, n);
@@ -2489,7 +2518,7 @@ var rt = Kr ? (
2489
2518
  function(t, r, n) {
2490
2519
  return t.slice(n, n + r.length) === r;
2491
2520
  }
2492
- ), Me = en ? String.fromCodePoint : (
2521
+ ), $e = tn ? String.fromCodePoint : (
2493
2522
  // IE11
2494
2523
  function() {
2495
2524
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2503,7 +2532,7 @@ var rt = Kr ? (
2503
2532
  }
2504
2533
  ), nt = (
2505
2534
  // native
2506
- tn ? Object.fromEntries : (
2535
+ rn ? Object.fromEntries : (
2507
2536
  // Ponyfill
2508
2537
  function(t) {
2509
2538
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2513,7 +2542,7 @@ var rt = Kr ? (
2513
2542
  return r;
2514
2543
  }
2515
2544
  )
2516
- ), Mt = rn ? (
2545
+ ), Mt = nn ? (
2517
2546
  // Native
2518
2547
  function(t, r) {
2519
2548
  return t.codePointAt(r);
@@ -2527,7 +2556,7 @@ var rt = Kr ? (
2527
2556
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2528
2557
  }
2529
2558
  }
2530
- ), hn = nn ? (
2559
+ ), ln = sn ? (
2531
2560
  // Native
2532
2561
  function(t) {
2533
2562
  return t.trimStart();
@@ -2535,9 +2564,9 @@ var rt = Kr ? (
2535
2564
  ) : (
2536
2565
  // Ponyfill
2537
2566
  function(t) {
2538
- return t.replace(Jr, "");
2567
+ return t.replace(Yr, "");
2539
2568
  }
2540
- ), ln = sn ? (
2569
+ ), cn = on ? (
2541
2570
  // Native
2542
2571
  function(t) {
2543
2572
  return t.trimEnd();
@@ -2545,30 +2574,30 @@ var rt = Kr ? (
2545
2574
  ) : (
2546
2575
  // Ponyfill
2547
2576
  function(t) {
2548
- return t.replace(Yr, "");
2577
+ return t.replace(Kr, "");
2549
2578
  }
2550
2579
  );
2551
2580
  function $t(e, t) {
2552
2581
  return new RegExp(e, t);
2553
2582
  }
2554
- var $e;
2555
- if (Ie) {
2583
+ var Re;
2584
+ if (Me) {
2556
2585
  var it = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2557
- $e = function(t, r) {
2586
+ Re = function(t, r) {
2558
2587
  var n;
2559
2588
  it.lastIndex = r;
2560
2589
  var i = it.exec(t);
2561
2590
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2562
2591
  };
2563
2592
  } else
2564
- $e = function(t, r) {
2593
+ Re = function(t, r) {
2565
2594
  for (var n = []; ; ) {
2566
2595
  var i = Mt(t, r);
2567
- if (i === void 0 || Rt(i) || mn(i))
2596
+ if (i === void 0 || Rt(i) || pn(i))
2568
2597
  break;
2569
2598
  n.push(i), r += i >= 65536 ? 2 : 1;
2570
2599
  }
2571
- return Me.apply(void 0, n);
2600
+ return $e.apply(void 0, n);
2572
2601
  };
2573
2602
  var fn = (
2574
2603
  /** @class */
@@ -2594,14 +2623,14 @@ var fn = (
2594
2623
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2595
2624
  var u = this.clonePosition();
2596
2625
  this.bump(), i.push({
2597
- type: C.pound,
2626
+ type: T.pound,
2598
2627
  location: _(u, this.clonePosition())
2599
2628
  });
2600
2629
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2601
2630
  if (n)
2602
2631
  break;
2603
2632
  return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
2604
- } else if (s === 60 && !this.ignoreTag && Re(this.peek() || 0)) {
2633
+ } else if (s === 60 && !this.ignoreTag && Ue(this.peek() || 0)) {
2605
2634
  var o = this.parseTag(t, r);
2606
2635
  if (o.err)
2607
2636
  return o;
@@ -2622,7 +2651,7 @@ var fn = (
2622
2651
  if (this.bumpSpace(), this.bumpIf("/>"))
2623
2652
  return {
2624
2653
  val: {
2625
- type: C.literal,
2654
+ type: T.literal,
2626
2655
  value: "<".concat(i, "/>"),
2627
2656
  location: _(n, this.clonePosition())
2628
2657
  },
@@ -2634,12 +2663,12 @@ var fn = (
2634
2663
  return s;
2635
2664
  var o = s.val, u = this.clonePosition();
2636
2665
  if (this.bumpIf("</")) {
2637
- if (this.isEOF() || !Re(this.char()))
2666
+ if (this.isEOF() || !Ue(this.char()))
2638
2667
  return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
2639
- var f = this.clonePosition(), a = this.parseTagName();
2640
- return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2668
+ var l = this.clonePosition(), a = this.parseTagName();
2669
+ return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2641
2670
  val: {
2642
- type: C.tag,
2671
+ type: T.tag,
2643
2672
  value: i,
2644
2673
  children: o,
2645
2674
  location: _(n, this.clonePosition())
@@ -2652,7 +2681,7 @@ var fn = (
2652
2681
  return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
2653
2682
  }, e.prototype.parseTagName = function() {
2654
2683
  var t = this.offset();
2655
- for (this.bump(); !this.isEOF() && gn(this.char()); )
2684
+ for (this.bump(); !this.isEOF() && mn(this.char()); )
2656
2685
  this.bump();
2657
2686
  return this.message.slice(t, this.offset());
2658
2687
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2674,14 +2703,14 @@ var fn = (
2674
2703
  }
2675
2704
  break;
2676
2705
  }
2677
- var f = _(n, this.clonePosition());
2706
+ var l = _(n, this.clonePosition());
2678
2707
  return {
2679
- val: { type: C.literal, value: i, location: f },
2708
+ val: { type: T.literal, value: i, location: l },
2680
2709
  err: null
2681
2710
  };
2682
2711
  }, e.prototype.tryParseLeftAngleBracket = function() {
2683
2712
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2684
- !cn(this.peek() || 0)) ? (this.bump(), "<") : null;
2713
+ !gn(this.peek() || 0)) ? (this.bump(), "<") : null;
2685
2714
  }, e.prototype.tryParseQuote = function(t) {
2686
2715
  if (this.isEOF() || this.char() !== 39)
2687
2716
  return null;
@@ -2715,12 +2744,12 @@ var fn = (
2715
2744
  r.push(n);
2716
2745
  this.bump();
2717
2746
  }
2718
- return Me.apply(void 0, r);
2747
+ return $e.apply(void 0, r);
2719
2748
  }, e.prototype.tryParseUnquoted = function(t, r) {
2720
2749
  if (this.isEOF())
2721
2750
  return null;
2722
2751
  var n = this.char();
2723
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Me(n));
2752
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), $e(n));
2724
2753
  }, e.prototype.parseArgument = function(t, r) {
2725
2754
  var n = this.clonePosition();
2726
2755
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2736,7 +2765,7 @@ var fn = (
2736
2765
  case 125:
2737
2766
  return this.bump(), {
2738
2767
  val: {
2739
- type: C.argument,
2768
+ type: T.argument,
2740
2769
  // value does not include the opening and closing braces.
2741
2770
  value: i,
2742
2771
  location: _(n, this.clonePosition())
@@ -2749,15 +2778,15 @@ var fn = (
2749
2778
  return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
2750
2779
  }
2751
2780
  }, e.prototype.parseIdentifierIfPossible = function() {
2752
- var t = this.clonePosition(), r = this.offset(), n = $e(this.message, r), i = r + n.length;
2781
+ var t = this.clonePosition(), r = this.offset(), n = Re(this.message, r), i = r + n.length;
2753
2782
  this.bumpTo(i);
2754
2783
  var s = this.clonePosition(), o = _(t, s);
2755
2784
  return { value: n, location: o };
2756
2785
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2757
- var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, f = this.clonePosition();
2786
+ var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2758
2787
  switch (u) {
2759
2788
  case "":
2760
- return this.error(y.EXPECT_ARGUMENT_TYPE, _(o, f));
2789
+ return this.error(y.EXPECT_ARGUMENT_TYPE, _(o, l));
2761
2790
  case "number":
2762
2791
  case "date":
2763
2792
  case "time": {
@@ -2765,47 +2794,47 @@ var fn = (
2765
2794
  var a = null;
2766
2795
  if (this.bumpIf(",")) {
2767
2796
  this.bumpSpace();
2768
- var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2769
- if (c.err)
2770
- return c;
2771
- var l = ln(c.val);
2772
- if (l.length === 0)
2797
+ var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2798
+ if (f.err)
2799
+ return f;
2800
+ var c = cn(f.val);
2801
+ if (c.length === 0)
2773
2802
  return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
2774
- var d = _(h, this.clonePosition());
2775
- a = { style: l, styleLocation: d };
2803
+ var p = _(h, this.clonePosition());
2804
+ a = { style: c, styleLocation: p };
2776
2805
  }
2777
- var p = this.tryParseArgumentClose(i);
2778
- if (p.err)
2779
- return p;
2806
+ var d = this.tryParseArgumentClose(i);
2807
+ if (d.err)
2808
+ return d;
2780
2809
  var g = _(i, this.clonePosition());
2781
2810
  if (a && rt(a?.style, "::", 0)) {
2782
- var E = hn(a.style.slice(2));
2811
+ var E = ln(a.style.slice(2));
2783
2812
  if (u === "number") {
2784
- var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
2785
- return c.err ? c : {
2786
- val: { type: C.number, value: n, location: g, style: c.val },
2813
+ var f = this.parseNumberSkeletonFromString(E, a.styleLocation);
2814
+ return f.err ? f : {
2815
+ val: { type: T.number, value: n, location: g, style: f.val },
2787
2816
  err: null
2788
2817
  };
2789
2818
  } else {
2790
2819
  if (E.length === 0)
2791
2820
  return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
2792
2821
  var m = E;
2793
- this.locale && (m = Qr(E, this.locale));
2794
- var l = {
2795
- type: Q.dateTime,
2822
+ this.locale && (m = qr(E, this.locale));
2823
+ var c = {
2824
+ type: Z.dateTime,
2796
2825
  pattern: m,
2797
2826
  location: a.styleLocation,
2798
- parsedOptions: this.shouldParseSkeletons ? jr(m) : {}
2799
- }, T = u === "date" ? C.date : C.time;
2827
+ parsedOptions: this.shouldParseSkeletons ? kr(m) : {}
2828
+ }, C = u === "date" ? T.date : T.time;
2800
2829
  return {
2801
- val: { type: T, value: n, location: g, style: l },
2830
+ val: { type: C, value: n, location: g, style: c },
2802
2831
  err: null
2803
2832
  };
2804
2833
  }
2805
2834
  }
2806
2835
  return {
2807
2836
  val: {
2808
- type: u === "number" ? C.number : u === "date" ? C.date : C.time,
2837
+ type: u === "number" ? T.number : u === "date" ? T.date : T.time,
2809
2838
  value: n,
2810
2839
  location: g,
2811
2840
  style: (s = a?.style) !== null && s !== void 0 ? s : null
@@ -2816,49 +2845,49 @@ var fn = (
2816
2845
  case "plural":
2817
2846
  case "selectordinal":
2818
2847
  case "select": {
2819
- var A = this.clonePosition();
2848
+ var B = this.clonePosition();
2820
2849
  if (this.bumpSpace(), !this.bumpIf(","))
2821
- return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(A, x({}, A)));
2850
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(B, x({}, B)));
2822
2851
  this.bumpSpace();
2823
- var L = this.parseIdentifierIfPossible(), B = 0;
2824
- if (u !== "select" && L.value === "offset") {
2852
+ var P = this.parseIdentifierIfPossible(), S = 0;
2853
+ if (u !== "select" && P.value === "offset") {
2825
2854
  if (!this.bumpIf(":"))
2826
2855
  return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
2827
2856
  this.bumpSpace();
2828
- var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2829
- if (c.err)
2830
- return c;
2831
- this.bumpSpace(), L = this.parseIdentifierIfPossible(), B = c.val;
2857
+ var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2858
+ if (f.err)
2859
+ return f;
2860
+ this.bumpSpace(), P = this.parseIdentifierIfPossible(), S = f.val;
2832
2861
  }
2833
- var S = this.tryParsePluralOrSelectOptions(t, u, r, L);
2834
- if (S.err)
2835
- return S;
2836
- var p = this.tryParseArgumentClose(i);
2837
- if (p.err)
2838
- return p;
2839
- var w = _(i, this.clonePosition());
2862
+ var A = this.tryParsePluralOrSelectOptions(t, u, r, P);
2863
+ if (A.err)
2864
+ return A;
2865
+ var d = this.tryParseArgumentClose(i);
2866
+ if (d.err)
2867
+ return d;
2868
+ var N = _(i, this.clonePosition());
2840
2869
  return u === "select" ? {
2841
2870
  val: {
2842
- type: C.select,
2871
+ type: T.select,
2843
2872
  value: n,
2844
- options: nt(S.val),
2845
- location: w
2873
+ options: nt(A.val),
2874
+ location: N
2846
2875
  },
2847
2876
  err: null
2848
2877
  } : {
2849
2878
  val: {
2850
- type: C.plural,
2879
+ type: T.plural,
2851
2880
  value: n,
2852
- options: nt(S.val),
2853
- offset: B,
2881
+ options: nt(A.val),
2882
+ offset: S,
2854
2883
  pluralType: u === "plural" ? "cardinal" : "ordinal",
2855
- location: w
2884
+ location: N
2856
2885
  },
2857
2886
  err: null
2858
2887
  };
2859
2888
  }
2860
2889
  default:
2861
- return this.error(y.INVALID_ARGUMENT_TYPE, _(o, f));
2890
+ return this.error(y.INVALID_ARGUMENT_TYPE, _(o, l));
2862
2891
  }
2863
2892
  }, e.prototype.tryParseArgumentClose = function(t) {
2864
2893
  return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2900,50 +2929,50 @@ var fn = (
2900
2929
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2901
2930
  var n = [];
2902
2931
  try {
2903
- n = Vr(t);
2932
+ n = Xr(t);
2904
2933
  } catch {
2905
2934
  return this.error(y.INVALID_NUMBER_SKELETON, r);
2906
2935
  }
2907
2936
  return {
2908
2937
  val: {
2909
- type: Q.number,
2938
+ type: Z.number,
2910
2939
  tokens: n,
2911
2940
  location: r,
2912
- parsedOptions: this.shouldParseSkeletons ? Zr(n) : {}
2941
+ parsedOptions: this.shouldParseSkeletons ? Qr(n) : {}
2913
2942
  },
2914
2943
  err: null
2915
2944
  };
2916
2945
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2917
- for (var s, o = !1, u = [], f = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
2946
+ for (var s, o = !1, u = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
2918
2947
  if (a.length === 0) {
2919
- var c = this.clonePosition();
2948
+ var f = this.clonePosition();
2920
2949
  if (r !== "select" && this.bumpIf("=")) {
2921
- var l = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
2922
- if (l.err)
2923
- return l;
2924
- h = _(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
2950
+ var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
2951
+ if (c.err)
2952
+ return c;
2953
+ h = _(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
2925
2954
  } else
2926
2955
  break;
2927
2956
  }
2928
- if (f.has(a))
2957
+ if (l.has(a))
2929
2958
  return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2930
2959
  a === "other" && (o = !0), this.bumpSpace();
2931
- var d = this.clonePosition();
2960
+ var p = this.clonePosition();
2932
2961
  if (!this.bumpIf("{"))
2933
2962
  return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
2934
- var p = this.parseMessage(t + 1, r, n);
2935
- if (p.err)
2936
- return p;
2937
- var g = this.tryParseArgumentClose(d);
2963
+ var d = this.parseMessage(t + 1, r, n);
2964
+ if (d.err)
2965
+ return d;
2966
+ var g = this.tryParseArgumentClose(p);
2938
2967
  if (g.err)
2939
2968
  return g;
2940
2969
  u.push([
2941
2970
  a,
2942
2971
  {
2943
- value: p.val,
2944
- location: _(d, this.clonePosition())
2972
+ value: d.val,
2973
+ location: _(p, this.clonePosition())
2945
2974
  }
2946
- ]), f.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
2975
+ ]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
2947
2976
  }
2948
2977
  return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
2949
2978
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
@@ -2956,8 +2985,8 @@ var fn = (
2956
2985
  else
2957
2986
  break;
2958
2987
  }
2959
- var f = _(i, this.clonePosition());
2960
- return s ? (o *= n, an(o) ? { val: o, err: null } : this.error(r, f)) : this.error(t, f);
2988
+ var l = _(i, this.clonePosition());
2989
+ return s ? (o *= n, un(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
2961
2990
  }, e.prototype.offset = function() {
2962
2991
  return this.position.offset;
2963
2992
  }, e.prototype.isEOF = function() {
@@ -3023,46 +3052,47 @@ var fn = (
3023
3052
  }, e;
3024
3053
  }()
3025
3054
  );
3026
- function Re(e) {
3055
+ function Ue(e) {
3027
3056
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3028
3057
  }
3029
- function cn(e) {
3030
- return Re(e) || e === 47;
3031
- }
3032
3058
  function gn(e) {
3059
+ return Ue(e) || e === 47;
3060
+ }
3061
+ function mn(e) {
3033
3062
  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;
3034
3063
  }
3035
3064
  function Rt(e) {
3036
3065
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3037
3066
  }
3038
- function mn(e) {
3067
+ function pn(e) {
3039
3068
  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;
3040
3069
  }
3041
- function Ue(e) {
3070
+ function De(e) {
3042
3071
  e.forEach(function(t) {
3043
- if (delete t.location, St(t) || Bt(t))
3072
+ if (delete t.location, Bt(t) || St(t))
3044
3073
  for (var r in t.options)
3045
- delete t.options[r].location, Ue(t.options[r].value);
3046
- else Tt(t) && Pt(t.style) || (Ht(t) || At(t)) && Le(t.style) ? delete t.style.location : Ot(t) && Ue(t.children);
3074
+ delete t.options[r].location, De(t.options[r].value);
3075
+ else
3076
+ Ct(t) && Ot(t.style) || (Ht(t) || At(t)) && Ie(t.style) ? delete t.style.location : wt(t) && De(t.children);
3047
3077
  });
3048
3078
  }
3049
- function pn(e, t) {
3079
+ function dn(e, t) {
3050
3080
  t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3051
3081
  var r = new fn(e, t).parse();
3052
3082
  if (r.err) {
3053
3083
  var n = SyntaxError(y[r.err.kind]);
3054
3084
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3055
3085
  }
3056
- return t?.captureLocation || Ue(r.val), r.val;
3086
+ return t?.captureLocation || De(r.val), r.val;
3057
3087
  }
3058
- var q;
3088
+ var Q;
3059
3089
  (function(e) {
3060
3090
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3061
- })(q || (q = {}));
3062
- var _e = (
3091
+ })(Q || (Q = {}));
3092
+ var xe = (
3063
3093
  /** @class */
3064
3094
  function(e) {
3065
- ye(t, e);
3095
+ _e(t, e);
3066
3096
  function t(r, n, i) {
3067
3097
  var s = e.call(this, r) || this;
3068
3098
  return s.code = n, s.originalMessage = i, s;
@@ -3074,149 +3104,149 @@ var _e = (
3074
3104
  ), st = (
3075
3105
  /** @class */
3076
3106
  function(e) {
3077
- ye(t, e);
3107
+ _e(t, e);
3078
3108
  function t(r, n, i, s) {
3079
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, s) || this;
3109
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, s) || this;
3080
3110
  }
3081
3111
  return t;
3082
- }(_e)
3083
- ), dn = (
3112
+ }(xe)
3113
+ ), bn = (
3084
3114
  /** @class */
3085
3115
  function(e) {
3086
- ye(t, e);
3116
+ _e(t, e);
3087
3117
  function t(r, n, i) {
3088
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
3118
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
3089
3119
  }
3090
3120
  return t;
3091
- }(_e)
3092
- ), bn = (
3121
+ }(xe)
3122
+ ), yn = (
3093
3123
  /** @class */
3094
3124
  function(e) {
3095
- ye(t, e);
3125
+ _e(t, e);
3096
3126
  function t(r, n) {
3097
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
3127
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
3098
3128
  }
3099
3129
  return t;
3100
- }(_e)
3101
- ), P;
3130
+ }(xe)
3131
+ ), O;
3102
3132
  (function(e) {
3103
3133
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3104
- })(P || (P = {}));
3105
- function yn(e) {
3134
+ })(O || (O = {}));
3135
+ function _n(e) {
3106
3136
  return e.length < 2 ? e : e.reduce(function(t, r) {
3107
3137
  var n = t[t.length - 1];
3108
- return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
3138
+ return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3109
3139
  }, []);
3110
3140
  }
3111
- function _n(e) {
3141
+ function xn(e) {
3112
3142
  return typeof e == "function";
3113
3143
  }
3114
- function ce(e, t, r, n, i, s, o) {
3144
+ function ge(e, t, r, n, i, s, o) {
3115
3145
  if (e.length === 1 && Ye(e[0]))
3116
3146
  return [
3117
3147
  {
3118
- type: P.literal,
3148
+ type: O.literal,
3119
3149
  value: e[0].value
3120
3150
  }
3121
3151
  ];
3122
- for (var u = [], f = 0, a = e; f < a.length; f++) {
3123
- var h = a[f];
3152
+ for (var u = [], l = 0, a = e; l < a.length; l++) {
3153
+ var h = a[l];
3124
3154
  if (Ye(h)) {
3125
3155
  u.push({
3126
- type: P.literal,
3156
+ type: O.literal,
3127
3157
  value: h.value
3128
3158
  });
3129
3159
  continue;
3130
3160
  }
3131
- if (Dr(h)) {
3161
+ if (Fr(h)) {
3132
3162
  typeof s == "number" && u.push({
3133
- type: P.literal,
3163
+ type: O.literal,
3134
3164
  value: r.getNumberFormat(t).format(s)
3135
3165
  });
3136
3166
  continue;
3137
3167
  }
3138
- var c = h.value;
3139
- if (!(i && c in i))
3140
- throw new bn(c, o);
3141
- var l = i[c];
3168
+ var f = h.value;
3169
+ if (!(i && f in i))
3170
+ throw new yn(f, o);
3171
+ var c = i[f];
3142
3172
  if (Gr(h)) {
3143
- (!l || typeof l == "string" || typeof l == "number") && (l = typeof l == "string" || typeof l == "number" ? String(l) : ""), u.push({
3144
- type: typeof l == "string" ? P.literal : P.object,
3145
- value: l
3173
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
3174
+ type: typeof c == "string" ? O.literal : O.object,
3175
+ value: c
3146
3176
  });
3147
3177
  continue;
3148
3178
  }
3149
3179
  if (Ht(h)) {
3150
- var d = typeof h.style == "string" ? n.date[h.style] : Le(h.style) ? h.style.parsedOptions : void 0;
3180
+ var p = typeof h.style == "string" ? n.date[h.style] : Ie(h.style) ? h.style.parsedOptions : void 0;
3151
3181
  u.push({
3152
- type: P.literal,
3153
- value: r.getDateTimeFormat(t, d).format(l)
3182
+ type: O.literal,
3183
+ value: r.getDateTimeFormat(t, p).format(c)
3154
3184
  });
3155
3185
  continue;
3156
3186
  }
3157
3187
  if (At(h)) {
3158
- var d = typeof h.style == "string" ? n.time[h.style] : Le(h.style) ? h.style.parsedOptions : n.time.medium;
3188
+ var p = typeof h.style == "string" ? n.time[h.style] : Ie(h.style) ? h.style.parsedOptions : n.time.medium;
3159
3189
  u.push({
3160
- type: P.literal,
3161
- value: r.getDateTimeFormat(t, d).format(l)
3190
+ type: O.literal,
3191
+ value: r.getDateTimeFormat(t, p).format(c)
3162
3192
  });
3163
3193
  continue;
3164
3194
  }
3165
- if (Tt(h)) {
3166
- var d = typeof h.style == "string" ? n.number[h.style] : Pt(h.style) ? h.style.parsedOptions : void 0;
3167
- d && d.scale && (l = l * (d.scale || 1)), u.push({
3168
- type: P.literal,
3169
- value: r.getNumberFormat(t, d).format(l)
3195
+ if (Ct(h)) {
3196
+ var p = typeof h.style == "string" ? n.number[h.style] : Ot(h.style) ? h.style.parsedOptions : void 0;
3197
+ p && p.scale && (c = c * (p.scale || 1)), u.push({
3198
+ type: O.literal,
3199
+ value: r.getNumberFormat(t, p).format(c)
3170
3200
  });
3171
3201
  continue;
3172
3202
  }
3173
- if (Ot(h)) {
3174
- var p = h.children, g = h.value, E = i[g];
3175
- if (!_n(E))
3176
- throw new dn(g, "function", o);
3177
- var m = ce(p, t, r, n, i, s), T = E(m.map(function(B) {
3178
- return B.value;
3203
+ if (wt(h)) {
3204
+ var d = h.children, g = h.value, E = i[g];
3205
+ if (!xn(E))
3206
+ throw new bn(g, "function", o);
3207
+ var m = ge(d, t, r, n, i, s), C = E(m.map(function(S) {
3208
+ return S.value;
3179
3209
  }));
3180
- Array.isArray(T) || (T = [T]), u.push.apply(u, T.map(function(B) {
3210
+ Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(S) {
3181
3211
  return {
3182
- type: typeof B == "string" ? P.literal : P.object,
3183
- value: B
3212
+ type: typeof S == "string" ? O.literal : O.object,
3213
+ value: S
3184
3214
  };
3185
3215
  }));
3186
3216
  }
3187
- if (St(h)) {
3188
- var A = h.options[l] || h.options.other;
3189
- if (!A)
3190
- throw new st(h.value, l, Object.keys(h.options), o);
3191
- u.push.apply(u, ce(A.value, t, r, n, i));
3217
+ if (Bt(h)) {
3218
+ var B = h.options[c] || h.options.other;
3219
+ if (!B)
3220
+ throw new st(h.value, c, Object.keys(h.options), o);
3221
+ u.push.apply(u, ge(B.value, t, r, n, i));
3192
3222
  continue;
3193
3223
  }
3194
- if (Bt(h)) {
3195
- var A = h.options["=".concat(l)];
3196
- if (!A) {
3224
+ if (St(h)) {
3225
+ var B = h.options["=".concat(c)];
3226
+ if (!B) {
3197
3227
  if (!Intl.PluralRules)
3198
- throw new _e(`Intl.PluralRules is not available in this environment.
3228
+ throw new xe(`Intl.PluralRules is not available in this environment.
3199
3229
  Try polyfilling it using "@formatjs/intl-pluralrules"
3200
- `, q.MISSING_INTL_API, o);
3201
- var L = r.getPluralRules(t, { type: h.pluralType }).select(l - (h.offset || 0));
3202
- A = h.options[L] || h.options.other;
3230
+ `, Q.MISSING_INTL_API, o);
3231
+ var P = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3232
+ B = h.options[P] || h.options.other;
3203
3233
  }
3204
- if (!A)
3205
- throw new st(h.value, l, Object.keys(h.options), o);
3206
- u.push.apply(u, ce(A.value, t, r, n, i, l - (h.offset || 0)));
3234
+ if (!B)
3235
+ throw new st(h.value, c, Object.keys(h.options), o);
3236
+ u.push.apply(u, ge(B.value, t, r, n, i, c - (h.offset || 0)));
3207
3237
  continue;
3208
3238
  }
3209
3239
  }
3210
- return yn(u);
3240
+ return _n(u);
3211
3241
  }
3212
- function xn(e, t) {
3242
+ function En(e, t) {
3213
3243
  return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3214
3244
  return r[n] = x(x({}, e[n]), t[n] || {}), r;
3215
3245
  }, {})) : e;
3216
3246
  }
3217
- function En(e, t) {
3247
+ function vn(e, t) {
3218
3248
  return t ? Object.keys(e).reduce(function(r, n) {
3219
- return r[n] = xn(e[n], t[n]), r;
3249
+ return r[n] = En(e[n], t[n]), r;
3220
3250
  }, x({}, e)) : e;
3221
3251
  }
3222
3252
  function Se(e) {
@@ -3233,35 +3263,35 @@ function Se(e) {
3233
3263
  }
3234
3264
  };
3235
3265
  }
3236
- function vn(e) {
3266
+ function Tn(e) {
3237
3267
  return e === void 0 && (e = {
3238
3268
  number: {},
3239
3269
  dateTime: {},
3240
3270
  pluralRules: {}
3241
3271
  }), {
3242
- getNumberFormat: Te(function() {
3272
+ getNumberFormat: He(function() {
3243
3273
  for (var t, r = [], n = 0; n < arguments.length; n++)
3244
3274
  r[n] = arguments[n];
3245
3275
  return new ((t = Intl.NumberFormat).bind.apply(t, Ce([void 0], r, !1)))();
3246
3276
  }, {
3247
3277
  cache: Se(e.number),
3248
- strategy: He.variadic
3278
+ strategy: Ae.variadic
3249
3279
  }),
3250
- getDateTimeFormat: Te(function() {
3280
+ getDateTimeFormat: He(function() {
3251
3281
  for (var t, r = [], n = 0; n < arguments.length; n++)
3252
3282
  r[n] = arguments[n];
3253
3283
  return new ((t = Intl.DateTimeFormat).bind.apply(t, Ce([void 0], r, !1)))();
3254
3284
  }, {
3255
3285
  cache: Se(e.dateTime),
3256
- strategy: He.variadic
3286
+ strategy: Ae.variadic
3257
3287
  }),
3258
- getPluralRules: Te(function() {
3288
+ getPluralRules: He(function() {
3259
3289
  for (var t, r = [], n = 0; n < arguments.length; n++)
3260
3290
  r[n] = arguments[n];
3261
3291
  return new ((t = Intl.PluralRules).bind.apply(t, Ce([void 0], r, !1)))();
3262
3292
  }, {
3263
3293
  cache: Se(e.pluralRules),
3264
- strategy: He.variadic
3294
+ strategy: Ae.variadic
3265
3295
  })
3266
3296
  };
3267
3297
  }
@@ -3275,20 +3305,20 @@ var Cn = (
3275
3305
  number: {},
3276
3306
  dateTime: {},
3277
3307
  pluralRules: {}
3278
- }, this.format = function(f) {
3279
- var a = s.formatToParts(f);
3308
+ }, this.format = function(l) {
3309
+ var a = s.formatToParts(l);
3280
3310
  if (a.length === 1)
3281
3311
  return a[0].value;
3282
- var h = a.reduce(function(c, l) {
3283
- return !c.length || l.type !== P.literal || typeof c[c.length - 1] != "string" ? c.push(l.value) : c[c.length - 1] += l.value, c;
3312
+ var h = a.reduce(function(f, c) {
3313
+ return !f.length || c.type !== O.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3284
3314
  }, []);
3285
3315
  return h.length <= 1 ? h[0] || "" : h;
3286
- }, this.formatToParts = function(f) {
3287
- return ce(s.ast, s.locales, s.formatters, s.formats, f, void 0, s.message);
3316
+ }, this.formatToParts = function(l) {
3317
+ return ge(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3288
3318
  }, this.resolvedOptions = function() {
3289
- var f;
3319
+ var l;
3290
3320
  return {
3291
- locale: ((f = s.resolvedLocale) === null || f === void 0 ? void 0 : f.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3321
+ locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3292
3322
  };
3293
3323
  }, this.getAst = function() {
3294
3324
  return s.ast;
@@ -3297,13 +3327,13 @@ var Cn = (
3297
3327
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3298
3328
  var o = i || {};
3299
3329
  o.formatters;
3300
- var u = Nr(o, ["formatters"]);
3330
+ var u = Lr(o, ["formatters"]);
3301
3331
  this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
3302
3332
  } else
3303
3333
  this.ast = t;
3304
3334
  if (!Array.isArray(this.ast))
3305
3335
  throw new TypeError("A message must be provided as a String or AST.");
3306
- this.formats = En(e.formats, n), this.formatters = i && i.formatters || vn(this.formatterCache);
3336
+ this.formats = vn(e.formats, n), this.formatters = i && i.formatters || Tn(this.formatterCache);
3307
3337
  }
3308
3338
  return Object.defineProperty(e, "defaultLocale", {
3309
3339
  get: function() {
@@ -3316,7 +3346,7 @@ var Cn = (
3316
3346
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3317
3347
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3318
3348
  }
3319
- }, e.__parse = pn, e.formats = {
3349
+ }, e.__parse = dn, e.formats = {
3320
3350
  number: {
3321
3351
  integer: {
3322
3352
  maximumFractionDigits: 0
@@ -3377,7 +3407,7 @@ var Cn = (
3377
3407
  }, e;
3378
3408
  }()
3379
3409
  );
3380
- function Tn(e, t) {
3410
+ function Hn(e, t) {
3381
3411
  if (t == null)
3382
3412
  return;
3383
3413
  if (t in e)
@@ -3398,92 +3428,92 @@ function Tn(e, t) {
3398
3428
  n = void 0;
3399
3429
  return n;
3400
3430
  }
3401
- const G = {}, Hn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Ut = (e, t) => {
3431
+ const U = {}, An = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), Ut = (e, t) => {
3402
3432
  if (t == null)
3403
3433
  return;
3404
- if (t in G && e in G[t])
3405
- return G[t][e];
3406
- const r = xe(t);
3434
+ if (t in U && e in U[t])
3435
+ return U[t][e];
3436
+ const r = Ee(t);
3407
3437
  for (let n = 0; n < r.length; n++) {
3408
3438
  const i = r[n], s = Sn(i, e);
3409
3439
  if (s)
3410
- return Hn(e, t, s);
3440
+ return An(e, t, s);
3411
3441
  }
3412
3442
  };
3413
3443
  let Xe;
3414
- const ae = be({});
3415
- function An(e) {
3444
+ const ae = ye({});
3445
+ function Bn(e) {
3416
3446
  return Xe[e] || null;
3417
3447
  }
3418
- function Gt(e) {
3448
+ function Dt(e) {
3419
3449
  return e in Xe;
3420
3450
  }
3421
3451
  function Sn(e, t) {
3422
- if (!Gt(e))
3452
+ if (!Dt(e))
3423
3453
  return null;
3424
- const r = An(e);
3425
- return Tn(r, t);
3454
+ const r = Bn(e);
3455
+ return Hn(r, t);
3426
3456
  }
3427
- function Bn(e) {
3457
+ function wn(e) {
3428
3458
  if (e == null)
3429
3459
  return;
3430
- const t = xe(e);
3460
+ const t = Ee(e);
3431
3461
  for (let r = 0; r < t.length; r++) {
3432
3462
  const n = t[r];
3433
- if (Gt(n))
3463
+ if (Dt(n))
3434
3464
  return n;
3435
3465
  }
3436
3466
  }
3437
- function Dt(e, ...t) {
3438
- delete G[e], ae.update((r) => (r[e] = wr.all([r[e] || {}, ...t]), r));
3467
+ function Gt(e, ...t) {
3468
+ delete U[e], ae.update((r) => (r[e] = Nr.all([r[e] || {}, ...t]), r));
3439
3469
  }
3440
- K(
3470
+ Y(
3441
3471
  [ae],
3442
3472
  ([e]) => Object.keys(e)
3443
3473
  );
3444
3474
  ae.subscribe((e) => Xe = e);
3445
- const ge = {};
3475
+ const me = {};
3446
3476
  function On(e, t) {
3447
- ge[e].delete(t), ge[e].size === 0 && delete ge[e];
3477
+ me[e].delete(t), me[e].size === 0 && delete me[e];
3448
3478
  }
3449
3479
  function Ft(e) {
3450
- return ge[e];
3480
+ return me[e];
3451
3481
  }
3452
3482
  function Pn(e) {
3453
- return xe(e).map((t) => {
3483
+ return Ee(e).map((t) => {
3454
3484
  const r = Ft(t);
3455
3485
  return [t, r ? [...r] : []];
3456
3486
  }).filter(([, t]) => t.length > 0);
3457
3487
  }
3458
3488
  function Ge(e) {
3459
- return e == null ? !1 : xe(e).some(
3489
+ return e == null ? !1 : Ee(e).some(
3460
3490
  (t) => {
3461
3491
  var r;
3462
3492
  return (r = Ft(t)) == null ? void 0 : r.size;
3463
3493
  }
3464
3494
  );
3465
3495
  }
3466
- function wn(e, t) {
3496
+ function Nn(e, t) {
3467
3497
  return Promise.all(
3468
3498
  t.map((n) => (On(e, n), n().then((i) => i.default || i)))
3469
- ).then((n) => Dt(e, ...n));
3499
+ ).then((n) => Gt(e, ...n));
3470
3500
  }
3471
- const re = {};
3501
+ const te = {};
3472
3502
  function jt(e) {
3473
3503
  if (!Ge(e))
3474
- return e in re ? re[e] : Promise.resolve();
3504
+ return e in te ? te[e] : Promise.resolve();
3475
3505
  const t = Pn(e);
3476
- return re[e] = Promise.all(
3506
+ return te[e] = Promise.all(
3477
3507
  t.map(
3478
- ([r, n]) => wn(r, n)
3508
+ ([r, n]) => Nn(r, n)
3479
3509
  )
3480
3510
  ).then(() => {
3481
3511
  if (Ge(e))
3482
3512
  return jt(e);
3483
- delete re[e];
3484
- }), re[e];
3513
+ delete te[e];
3514
+ }), te[e];
3485
3515
  }
3486
- const Nn = {
3516
+ const Ln = {
3487
3517
  number: {
3488
3518
  scientific: { notation: "scientific" },
3489
3519
  engineering: { notation: "engineering" },
@@ -3512,178 +3542,201 @@ const Nn = {
3512
3542
  timeZoneName: "short"
3513
3543
  }
3514
3544
  }
3515
- }, Ln = {
3545
+ }, In = {
3516
3546
  fallbackLocale: null,
3517
3547
  loadingDelay: 200,
3518
- formats: Nn,
3548
+ formats: Ln,
3519
3549
  warnOnMissingMessages: !0,
3520
3550
  handleMissingMessage: void 0,
3521
3551
  ignoreTag: !0
3522
- }, In = Ln;
3523
- function J() {
3524
- return In;
3552
+ }, Mn = In;
3553
+ function q() {
3554
+ return Mn;
3525
3555
  }
3526
- const Be = be(!1);
3527
- var Mn = Object.defineProperty, $n = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, ot = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Dn = (e, t) => {
3556
+ const we = ye(!1);
3557
+ var $n = Object.defineProperty, Rn = Object.defineProperties, Un = Object.getOwnPropertyDescriptors, ot = Object.getOwnPropertySymbols, Dn = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? $n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fn = (e, t) => {
3528
3558
  for (var r in t || (t = {}))
3529
- Un.call(t, r) && at(e, r, t[r]);
3559
+ Dn.call(t, r) && at(e, r, t[r]);
3530
3560
  if (ot)
3531
3561
  for (var r of ot(t))
3532
3562
  Gn.call(t, r) && at(e, r, t[r]);
3533
3563
  return e;
3534
- }, Fn = (e, t) => $n(e, Rn(t));
3535
- let De;
3536
- const pe = be(null);
3564
+ }, jn = (e, t) => Rn(e, Un(t));
3565
+ let Fe;
3566
+ const de = ye(null);
3537
3567
  function ut(e) {
3538
3568
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3539
3569
  }
3540
- function xe(e, t = J().fallbackLocale) {
3570
+ function Ee(e, t = q().fallbackLocale) {
3541
3571
  const r = ut(e);
3542
3572
  return t ? [.../* @__PURE__ */ new Set([...r, ...ut(t)])] : r;
3543
3573
  }
3544
- function k() {
3545
- return De ?? void 0;
3574
+ function j() {
3575
+ return Fe ?? void 0;
3546
3576
  }
3547
- pe.subscribe((e) => {
3548
- De = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3577
+ de.subscribe((e) => {
3578
+ Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3549
3579
  });
3550
- const jn = (e) => {
3551
- if (e && Bn(e) && Ge(e)) {
3552
- const { loadingDelay: t } = J();
3580
+ const kn = (e) => {
3581
+ if (e && wn(e) && Ge(e)) {
3582
+ const { loadingDelay: t } = q();
3553
3583
  let r;
3554
- return typeof window < "u" && k() != null && t ? r = window.setTimeout(
3555
- () => Be.set(!0),
3584
+ return typeof window < "u" && j() != null && t ? r = window.setTimeout(
3585
+ () => we.set(!0),
3556
3586
  t
3557
- ) : Be.set(!0), jt(e).then(() => {
3558
- pe.set(e);
3587
+ ) : we.set(!0), jt(e).then(() => {
3588
+ de.set(e);
3559
3589
  }).finally(() => {
3560
- clearTimeout(r), Be.set(!1);
3590
+ clearTimeout(r), we.set(!1);
3561
3591
  });
3562
3592
  }
3563
- return pe.set(e);
3564
- }, ee = Fn(Dn({}, pe), {
3565
- set: jn
3566
- }), Ee = (e) => {
3593
+ return de.set(e);
3594
+ }, K = jn(Fn({}, de), {
3595
+ set: kn
3596
+ }), ve = (e) => {
3567
3597
  const t = /* @__PURE__ */ Object.create(null);
3568
3598
  return (n) => {
3569
3599
  const i = JSON.stringify(n);
3570
3600
  return i in t ? t[i] : t[i] = e(n);
3571
3601
  };
3572
3602
  };
3573
- var kn = Object.defineProperty, de = Object.getOwnPropertySymbols, kt = Object.prototype.hasOwnProperty, Vt = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
3603
+ var Vn = Object.defineProperty, be = Object.getOwnPropertySymbols, kt = Object.prototype.hasOwnProperty, Vt = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
3574
3604
  for (var r in t || (t = {}))
3575
3605
  kt.call(t, r) && ht(e, r, t[r]);
3576
- if (de)
3577
- for (var r of de(t))
3606
+ if (be)
3607
+ for (var r of be(t))
3578
3608
  Vt.call(t, r) && ht(e, r, t[r]);
3579
3609
  return e;
3580
- }, te = (e, t) => {
3610
+ }, ee = (e, t) => {
3581
3611
  var r = {};
3582
3612
  for (var n in e)
3583
3613
  kt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3584
- if (e != null && de)
3585
- for (var n of de(e))
3614
+ if (e != null && be)
3615
+ for (var n of be(e))
3586
3616
  t.indexOf(n) < 0 && Vt.call(e, n) && (r[n] = e[n]);
3587
3617
  return r;
3588
3618
  };
3589
3619
  const se = (e, t) => {
3590
- const { formats: r } = J();
3620
+ const { formats: r } = q();
3591
3621
  if (e in r && t in r[e])
3592
3622
  return r[e][t];
3593
3623
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3594
- }, Vn = Ee(
3624
+ }, Xn = ve(
3595
3625
  (e) => {
3596
- var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3626
+ var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
3597
3627
  if (r == null)
3598
3628
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3599
3629
  return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
3600
3630
  }
3601
- ), Xn = Ee(
3631
+ ), zn = ve(
3602
3632
  (e) => {
3603
- var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3633
+ var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
3604
3634
  if (r == null)
3605
3635
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3606
3636
  return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
3607
3637
  }
3608
- ), zn = Ee(
3638
+ ), Wn = ve(
3609
3639
  (e) => {
3610
- var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3640
+ var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
3611
3641
  if (r == null)
3612
3642
  throw new Error(
3613
3643
  '[svelte-i18n] A "locale" must be set to format time values'
3614
3644
  );
3615
3645
  return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
3616
3646
  }
3617
- ), Wn = (e = {}) => {
3647
+ ), Zn = (e = {}) => {
3618
3648
  var t = e, {
3619
- locale: r = k()
3620
- } = t, n = te(t, [
3621
- "locale"
3622
- ]);
3623
- return Vn(ze({ locale: r }, n));
3624
- }, Zn = (e = {}) => {
3625
- var t = e, {
3626
- locale: r = k()
3627
- } = t, n = te(t, [
3649
+ locale: r = j()
3650
+ } = t, n = ee(t, [
3628
3651
  "locale"
3629
3652
  ]);
3630
3653
  return Xn(ze({ locale: r }, n));
3631
3654
  }, Qn = (e = {}) => {
3632
3655
  var t = e, {
3633
- locale: r = k()
3634
- } = t, n = te(t, [
3656
+ locale: r = j()
3657
+ } = t, n = ee(t, [
3635
3658
  "locale"
3636
3659
  ]);
3637
3660
  return zn(ze({ locale: r }, n));
3638
- }, qn = Ee(
3661
+ }, qn = (e = {}) => {
3662
+ var t = e, {
3663
+ locale: r = j()
3664
+ } = t, n = ee(t, [
3665
+ "locale"
3666
+ ]);
3667
+ return Wn(ze({ locale: r }, n));
3668
+ }, Jn = ve(
3639
3669
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3640
- (e, t = k()) => new Cn(e, t, J().formats, {
3641
- ignoreTag: J().ignoreTag
3670
+ (e, t = j()) => new Cn(e, t, q().formats, {
3671
+ ignoreTag: q().ignoreTag
3642
3672
  })
3643
- ), Jn = (e, t = {}) => {
3673
+ ), Yn = (e, t = {}) => {
3644
3674
  var r, n, i, s;
3645
3675
  let o = t;
3646
3676
  typeof e == "object" && (o = e, e = o.id);
3647
3677
  const {
3648
3678
  values: u,
3649
- locale: f = k(),
3679
+ locale: l = j(),
3650
3680
  default: a
3651
3681
  } = o;
3652
- if (f == null)
3682
+ if (l == null)
3653
3683
  throw new Error(
3654
3684
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3655
3685
  );
3656
- let h = Ut(e, f);
3686
+ let h = Ut(e, l);
3657
3687
  if (!h)
3658
- h = (s = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3688
+ h = (s = (i = (n = (r = q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3659
3689
  else if (typeof h != "string")
3660
3690
  return console.warn(
3661
3691
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3662
3692
  ), h;
3663
3693
  if (!u)
3664
3694
  return h;
3665
- let c = h;
3695
+ let f = h;
3666
3696
  try {
3667
- c = qn(h, f).format(u);
3668
- } catch (l) {
3669
- l instanceof Error && console.warn(
3697
+ f = Jn(h, l).format(u);
3698
+ } catch (c) {
3699
+ c instanceof Error && console.warn(
3670
3700
  `[svelte-i18n] Message "${e}" has syntax error:`,
3671
- l.message
3701
+ c.message
3672
3702
  );
3673
3703
  }
3674
- return c;
3675
- }, Yn = (e, t) => Qn(t).format(e), Kn = (e, t) => Zn(t).format(e), ei = (e, t) => Wn(t).format(e), ti = (e, t = k()) => Ut(e, t), ri = K([ee, ae], () => Jn);
3676
- K([ee], () => Yn);
3677
- K([ee], () => Kn);
3678
- K([ee], () => ei);
3679
- K([ee, ae], () => ti);
3704
+ return f;
3705
+ }, Kn = (e, t) => qn(t).format(e), ei = (e, t) => Qn(t).format(e), ti = (e, t) => Zn(t).format(e), ri = (e, t = j()) => Ut(e, t), ni = Y([K, ae], () => Yn);
3706
+ Y([K], () => Kn);
3707
+ Y([K], () => ei);
3708
+ Y([K], () => ti);
3709
+ Y([K, ae], () => ri);
3710
+ function ii(e, t) {
3711
+ if (e) {
3712
+ const r = document.createElement("style");
3713
+ r.innerHTML = t, e.appendChild(r);
3714
+ }
3715
+ }
3716
+ function si(e, t) {
3717
+ const r = new URL(t);
3718
+ fetch(r.href).then((n) => n.text()).then((n) => {
3719
+ const i = document.createElement("style");
3720
+ i.innerHTML = n, e && e.appendChild(i);
3721
+ }).catch((n) => {
3722
+ console.error("There was an error while trying to load client styling from URL", n);
3723
+ });
3724
+ }
3725
+ function oi(e, t, r) {
3726
+ if (window.emMessageBus) {
3727
+ const n = document.createElement("style");
3728
+ window.emMessageBus.subscribe(t, (i) => {
3729
+ n.innerHTML = i, e && e.appendChild(n);
3730
+ });
3731
+ }
3732
+ }
3680
3733
  function lt(e, t) {
3681
- Dt(e, t);
3734
+ Gt(e, t);
3682
3735
  }
3683
- function ni(e) {
3684
- ee.set(e);
3736
+ function ai(e) {
3737
+ K.set(e);
3685
3738
  }
3686
- const ft = {
3739
+ const ct = {
3687
3740
  en: {
3688
3741
  topCategories: "Top Categories",
3689
3742
  otherCategories: "Other Categories",
@@ -3793,330 +3846,318 @@ const ft = {
3793
3846
  games: "games"
3794
3847
  }
3795
3848
  };
3796
- function ii(e) {
3797
- Jt(e, "svelte-131a9uf", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.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}");
3849
+ function ui(e) {
3850
+ qt(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}");
3798
3851
  }
3799
- function ct(e, t, r) {
3852
+ function ft(e, t, r) {
3800
3853
  const n = e.slice();
3801
- return n[24] = t[r], n;
3854
+ return n[23] = t[r], n;
3802
3855
  }
3803
3856
  function gt(e, t, r) {
3804
3857
  const n = e.slice();
3805
- return n[24] = t[r], n;
3858
+ return n[23] = t[r], n;
3806
3859
  }
3807
- function si(e) {
3860
+ function hi(e) {
3808
3861
  let t, r, n = (
3809
3862
  /*$_*/
3810
3863
  e[5]("topCategories") + ""
3811
- ), i, s, o, u, f = (
3864
+ ), i, s, o, u, l = (
3812
3865
  /*$_*/
3813
3866
  e[5]("otherCategories") + ""
3814
- ), a, h, c = he(
3867
+ ), a, h, f = le(
3815
3868
  /*topCategories*/
3816
3869
  e[3]
3817
- ), l = [];
3818
- for (let g = 0; g < c.length; g += 1)
3819
- l[g] = mt(gt(e, c, g));
3820
- let d = he(
3870
+ ), c = [];
3871
+ for (let g = 0; g < f.length; g += 1)
3872
+ c[g] = mt(gt(e, f, g));
3873
+ let p = le(
3821
3874
  /*otherCategories*/
3822
3875
  e[4]
3823
- ), p = [];
3824
- for (let g = 0; g < d.length; g += 1)
3825
- p[g] = pt(ct(e, d, g));
3876
+ ), d = [];
3877
+ for (let g = 0; g < p.length; g += 1)
3878
+ d[g] = pt(ft(e, p, g));
3826
3879
  return {
3827
3880
  c() {
3828
- t = O("div"), r = O("h4"), i = R(n), s = $();
3829
- for (let g = 0; g < l.length; g += 1)
3830
- l[g].c();
3831
- o = $(), u = O("h4"), a = R(f), h = $();
3832
- for (let g = 0; g < p.length; g += 1)
3833
- p[g].c();
3881
+ t = w("div"), r = w("h4"), i = R(n), s = $();
3882
+ for (let g = 0; g < c.length; g += 1)
3883
+ c[g].c();
3884
+ o = $(), u = w("h4"), a = R(l), h = $();
3885
+ for (let g = 0; g < d.length; g += 1)
3886
+ d[g].c();
3834
3887
  H(r, "class", "CategoryTitle"), H(u, "class", "CategoryTitle"), H(t, "class", "CasinoCategories");
3835
3888
  },
3836
3889
  m(g, E) {
3837
- Y(g, t, E), v(t, r), v(r, i), v(t, s);
3838
- for (let m = 0; m < l.length; m += 1)
3839
- l[m] && l[m].m(t, null);
3890
+ J(g, t, E), v(t, r), v(r, i), v(t, s);
3891
+ for (let m = 0; m < c.length; m += 1)
3892
+ c[m] && c[m].m(t, null);
3840
3893
  v(t, o), v(t, u), v(u, a), v(t, h);
3841
- for (let m = 0; m < p.length; m += 1)
3842
- p[m] && p[m].m(t, null);
3894
+ for (let m = 0; m < d.length; m += 1)
3895
+ d[m] && d[m].m(t, null);
3843
3896
  },
3844
3897
  p(g, E) {
3845
3898
  if (E & /*$_*/
3846
3899
  32 && n !== (n = /*$_*/
3847
3900
  g[5]("topCategories") + "") && D(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
3848
3901
  105) {
3849
- c = he(
3902
+ f = le(
3850
3903
  /*topCategories*/
3851
3904
  g[3]
3852
3905
  );
3853
3906
  let m;
3854
- for (m = 0; m < c.length; m += 1) {
3855
- const T = gt(g, c, m);
3856
- l[m] ? l[m].p(T, E) : (l[m] = mt(T), l[m].c(), l[m].m(t, o));
3907
+ for (m = 0; m < f.length; m += 1) {
3908
+ const C = gt(g, f, m);
3909
+ c[m] ? c[m].p(C, E) : (c[m] = mt(C), c[m].c(), c[m].m(t, o));
3857
3910
  }
3858
- for (; m < l.length; m += 1)
3859
- l[m].d(1);
3860
- l.length = c.length;
3911
+ for (; m < c.length; m += 1)
3912
+ c[m].d(1);
3913
+ c.length = f.length;
3861
3914
  }
3862
3915
  if (E & /*$_*/
3863
- 32 && f !== (f = /*$_*/
3864
- g[5]("otherCategories") + "") && D(a, f), E & /*activecategory, otherCategories, openGameCategory, $_*/
3916
+ 32 && l !== (l = /*$_*/
3917
+ g[5]("otherCategories") + "") && D(a, l), E & /*activecategory, otherCategories, openGameCategory, $_*/
3865
3918
  113) {
3866
- d = he(
3919
+ p = le(
3867
3920
  /*otherCategories*/
3868
3921
  g[4]
3869
3922
  );
3870
3923
  let m;
3871
- for (m = 0; m < d.length; m += 1) {
3872
- const T = ct(g, d, m);
3873
- p[m] ? p[m].p(T, E) : (p[m] = pt(T), p[m].c(), p[m].m(t, null));
3924
+ for (m = 0; m < p.length; m += 1) {
3925
+ const C = ft(g, p, m);
3926
+ d[m] ? d[m].p(C, E) : (d[m] = pt(C), d[m].c(), d[m].m(t, null));
3874
3927
  }
3875
- for (; m < p.length; m += 1)
3876
- p[m].d(1);
3877
- p.length = d.length;
3928
+ for (; m < d.length; m += 1)
3929
+ d[m].d(1);
3930
+ d.length = p.length;
3878
3931
  }
3879
3932
  },
3880
3933
  d(g) {
3881
- g && j(t), Qe(l, g), Qe(p, g);
3934
+ g && F(t), Qe(c, g), Qe(d, g);
3882
3935
  }
3883
3936
  };
3884
3937
  }
3885
- function oi(e) {
3938
+ function li(e) {
3886
3939
  let t;
3887
3940
  return {
3888
3941
  c() {
3889
- t = O("p"), t.textContent = "Loading, please wait...", H(t, "class", "Message");
3942
+ t = w("p"), t.textContent = "Loading, please wait...", H(t, "class", "Message");
3890
3943
  },
3891
3944
  m(r, n) {
3892
- Y(r, t, n);
3945
+ J(r, t, n);
3893
3946
  },
3894
- p: I,
3947
+ p: L,
3895
3948
  d(r) {
3896
- r && j(t);
3949
+ r && F(t);
3897
3950
  }
3898
3951
  };
3899
3952
  }
3900
3953
  function mt(e) {
3901
- let t, r, n, i, s, o, u, f = (
3954
+ let t, r, n, i, s, o, u, l = (
3902
3955
  /*category*/
3903
- e[24].name + ""
3904
- ), a, h, c, l = (
3956
+ e[23].name + ""
3957
+ ), a, h, f, c = (
3905
3958
  /*category*/
3906
- e[24].games.count + ""
3907
- ), d, p, g = (
3959
+ e[23].games.count + ""
3960
+ ), p, d, g = (
3908
3961
  /*$_*/
3909
3962
  e[5]("games") + ""
3910
- ), E, m, T, A;
3911
- function L() {
3963
+ ), E, m, C, B;
3964
+ function P() {
3912
3965
  return (
3913
3966
  /*click_handler*/
3914
- e[14](
3967
+ e[15](
3915
3968
  /*category*/
3916
- e[24]
3969
+ e[23]
3917
3970
  )
3918
3971
  );
3919
3972
  }
3920
3973
  return {
3921
3974
  c() {
3922
- t = O("div"), r = O("img"), s = $(), o = O("div"), u = O("p"), a = R(f), h = $(), c = O("p"), d = R(l), p = $(), E = R(g), me(r.src, n = /*category*/
3923
- e[24].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
3924
- e[24].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", m = "Category " + /*activecategory*/
3975
+ t = w("div"), r = w("img"), s = $(), o = w("div"), u = w("p"), a = R(l), h = $(), f = w("p"), p = R(c), d = $(), E = R(g), pe(r.src, n = /*category*/
3976
+ e[23].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
3977
+ e[23].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", m = "Category " + /*activecategory*/
3925
3978
  (e[0] === /*category*/
3926
- e[24].id ? "Active" : ""));
3979
+ e[23].id ? "Active" : ""));
3927
3980
  },
3928
- m(B, S) {
3929
- Y(B, t, S), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o, c), v(c, d), v(c, p), v(c, E), T || (A = _t(t, "click", L), T = !0);
3981
+ m(S, A) {
3982
+ J(S, t, A), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o, f), v(f, p), v(f, d), v(f, E), C || (B = _t(t, "click", P), C = !0);
3930
3983
  },
3931
- p(B, S) {
3932
- e = B, S & /*topCategories*/
3933
- 8 && !me(r.src, n = /*category*/
3934
- e[24].icon) && H(r, "src", n), S & /*topCategories*/
3984
+ p(S, A) {
3985
+ e = S, A & /*topCategories*/
3986
+ 8 && !pe(r.src, n = /*category*/
3987
+ e[23].icon) && H(r, "src", n), A & /*topCategories*/
3935
3988
  8 && i !== (i = /*category*/
3936
- e[24].name) && H(r, "alt", i), S & /*topCategories*/
3937
- 8 && f !== (f = /*category*/
3938
- e[24].name + "") && D(a, f), S & /*topCategories*/
3989
+ e[23].name) && H(r, "alt", i), A & /*topCategories*/
3939
3990
  8 && l !== (l = /*category*/
3940
- e[24].games.count + "") && D(d, l), S & /*$_*/
3991
+ e[23].name + "") && D(a, l), A & /*topCategories*/
3992
+ 8 && c !== (c = /*category*/
3993
+ e[23].games.count + "") && D(p, c), A & /*$_*/
3941
3994
  32 && g !== (g = /*$_*/
3942
- e[5]("games") + "") && D(E, g), S & /*activecategory, topCategories*/
3995
+ e[5]("games") + "") && D(E, g), A & /*activecategory, topCategories*/
3943
3996
  9 && m !== (m = "Category " + /*activecategory*/
3944
3997
  (e[0] === /*category*/
3945
- e[24].id ? "Active" : "")) && H(t, "class", m);
3998
+ e[23].id ? "Active" : "")) && H(t, "class", m);
3946
3999
  },
3947
- d(B) {
3948
- B && j(t), T = !1, A();
4000
+ d(S) {
4001
+ S && F(t), C = !1, B();
3949
4002
  }
3950
4003
  };
3951
4004
  }
3952
4005
  function pt(e) {
3953
- let t, r, n, i, s, o, u, f = (
4006
+ let t, r, n, i, s, o, u, l = (
3954
4007
  /*category*/
3955
- e[24].name + ""
3956
- ), a, h, c, l = (
4008
+ e[23].name + ""
4009
+ ), a, h, f, c = (
3957
4010
  /*category*/
3958
- e[24].games.count + ""
3959
- ), d, p, g = (
4011
+ e[23].games.count + ""
4012
+ ), p, d, g = (
3960
4013
  /*$_*/
3961
4014
  e[5]("games") + ""
3962
- ), E, m, T, A, L;
3963
- function B() {
4015
+ ), E, m, C, B, P;
4016
+ function S() {
3964
4017
  return (
3965
4018
  /*click_handler_1*/
3966
- e[15](
4019
+ e[16](
3967
4020
  /*category*/
3968
- e[24]
4021
+ e[23]
3969
4022
  )
3970
4023
  );
3971
4024
  }
3972
4025
  return {
3973
4026
  c() {
3974
- t = O("div"), r = O("img"), s = $(), o = O("div"), u = O("p"), a = R(f), h = $(), c = O("p"), d = R(l), p = $(), E = R(g), m = $(), me(r.src, n = /*category*/
3975
- e[24].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
3976
- e[24].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", T = "Category " + /*activecategory*/
4027
+ t = w("div"), r = w("img"), s = $(), o = w("div"), u = w("p"), a = R(l), h = $(), f = w("p"), p = R(c), d = $(), E = R(g), m = $(), pe(r.src, n = /*category*/
4028
+ e[23].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
4029
+ e[23].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", C = "Category " + /*activecategory*/
3977
4030
  (e[0] === /*category*/
3978
- e[24].id ? "Active" : ""));
4031
+ e[23].id ? "Active" : ""));
3979
4032
  },
3980
- m(S, w) {
3981
- Y(S, t, w), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o, c), v(c, d), v(c, p), v(c, E), v(t, m), A || (L = _t(t, "click", B), A = !0);
4033
+ m(A, N) {
4034
+ J(A, t, N), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o, f), v(f, p), v(f, d), v(f, E), v(t, m), B || (P = _t(t, "click", S), B = !0);
3982
4035
  },
3983
- p(S, w) {
3984
- e = S, w & /*otherCategories*/
3985
- 16 && !me(r.src, n = /*category*/
3986
- e[24].icon) && H(r, "src", n), w & /*otherCategories*/
4036
+ p(A, N) {
4037
+ e = A, N & /*otherCategories*/
4038
+ 16 && !pe(r.src, n = /*category*/
4039
+ e[23].icon) && H(r, "src", n), N & /*otherCategories*/
3987
4040
  16 && i !== (i = /*category*/
3988
- e[24].name) && H(r, "alt", i), w & /*otherCategories*/
3989
- 16 && f !== (f = /*category*/
3990
- e[24].name + "") && D(a, f), w & /*otherCategories*/
4041
+ e[23].name) && H(r, "alt", i), N & /*otherCategories*/
3991
4042
  16 && l !== (l = /*category*/
3992
- e[24].games.count + "") && D(d, l), w & /*$_*/
4043
+ e[23].name + "") && D(a, l), N & /*otherCategories*/
4044
+ 16 && c !== (c = /*category*/
4045
+ e[23].games.count + "") && D(p, c), N & /*$_*/
3993
4046
  32 && g !== (g = /*$_*/
3994
- e[5]("games") + "") && D(E, g), w & /*activecategory, otherCategories*/
3995
- 17 && T !== (T = "Category " + /*activecategory*/
4047
+ e[5]("games") + "") && D(E, g), N & /*activecategory, otherCategories*/
4048
+ 17 && C !== (C = "Category " + /*activecategory*/
3996
4049
  (e[0] === /*category*/
3997
- e[24].id ? "Active" : "")) && H(t, "class", T);
4050
+ e[23].id ? "Active" : "")) && H(t, "class", C);
3998
4051
  },
3999
- d(S) {
4000
- S && j(t), A = !1, L();
4052
+ d(A) {
4053
+ A && F(t), B = !1, P();
4001
4054
  }
4002
4055
  };
4003
4056
  }
4004
- function ai(e) {
4057
+ function ci(e) {
4005
4058
  let t;
4006
4059
  function r(s, o) {
4007
4060
  return (
4008
4061
  /*isLoading*/
4009
- s[2] ? oi : si
4062
+ s[2] ? li : hi
4010
4063
  );
4011
4064
  }
4012
4065
  let n = r(e), i = n(e);
4013
4066
  return {
4014
4067
  c() {
4015
- t = O("div"), i.c();
4068
+ t = w("div"), i.c();
4016
4069
  },
4017
4070
  m(s, o) {
4018
- Y(s, t, o), i.m(t, null), e[16](t);
4071
+ J(s, t, o), i.m(t, null), e[17](t);
4019
4072
  },
4020
4073
  p(s, [o]) {
4021
4074
  n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
4022
4075
  },
4023
- i: I,
4024
- o: I,
4076
+ i: L,
4077
+ o: L,
4025
4078
  d(s) {
4026
- s && j(t), i.d(), e[16](null);
4079
+ s && F(t), i.d(), e[17](null);
4027
4080
  }
4028
4081
  };
4029
4082
  }
4030
- function ui(e, t, r) {
4083
+ function fi(e, t, r) {
4031
4084
  let n;
4032
- qt(e, ri, (b) => r(5, n = b));
4033
- let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: f = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, l, d = !1;
4034
- const p = [];
4035
- let g = [], E = [];
4036
- Object.keys(ft).forEach((b) => {
4037
- lt(b, ft[b]);
4085
+ Qt(e, ni, (b) => r(5, n = b));
4086
+ let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, { mbsource: c } = t, p, d = !1;
4087
+ const g = [];
4088
+ let E = [], m = [];
4089
+ Object.keys(ct).forEach((b) => {
4090
+ lt(b, ct[b]);
4038
4091
  });
4039
- const m = () => {
4040
- fetch(c).then((N) => N.json()).then((N) => {
4041
- Object.keys(N).forEach((U) => {
4042
- lt(U, N[U]);
4092
+ const C = () => {
4093
+ fetch(f).then((M) => M.json()).then((M) => {
4094
+ Object.keys(M).forEach((ue) => {
4095
+ lt(ue, M[ue]);
4043
4096
  });
4044
- }).catch((N) => {
4045
- console.log(N);
4097
+ }).catch((M) => {
4098
+ console.log(M);
4046
4099
  });
4047
- }, T = () => {
4100
+ }, B = () => {
4048
4101
  r(2, d = !0);
4049
4102
  const b = new URL(`${i}/v1/casino/groups/${s}`);
4050
- b.searchParams.append("language", o), fetch(b).then((N) => N.json()).then((N) => {
4103
+ b.searchParams.append("language", o), fetch(b).then((M) => M.json()).then((M) => {
4051
4104
  r(2, d = !1);
4052
- const U = f.split(",").map((F) => F.trim());
4053
- p.push(...N.items);
4054
- const We = p.filter((F) => !U.some((Zt) => F.flags?.indexOf(Zt) >= 0));
4055
- r(3, g = We.filter((F) => F.isTopCategory === !0)), r(4, E = We.filter((F) => F.isTopCategory === !1));
4105
+ const ue = l.split(",").map((G) => G.trim());
4106
+ g.push(...M.items);
4107
+ const We = g.filter((G) => !ue.some((Wt) => G.flags?.indexOf(Wt) >= 0));
4108
+ r(3, E = We.filter((G) => G.isTopCategory === !0)), r(4, m = We.filter((G) => G.isTopCategory === !1));
4056
4109
  });
4057
- }, A = (b) => {
4110
+ }, P = (b) => {
4058
4111
  window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
4059
- }, L = () => {
4060
- ni(o);
4061
- }, B = () => {
4062
- let b = document.createElement("style");
4063
- b.innerHTML = a, l.appendChild(b);
4064
4112
  }, S = () => {
4065
- let b = new URL(h), N = document.createElement("style");
4066
- fetch(b.href).then((U) => U.text()).then((U) => {
4067
- N.innerHTML = U, setTimeout(
4068
- () => {
4069
- l.appendChild(N);
4070
- },
4071
- 1
4072
- ), setTimeout(
4073
- () => {
4074
- },
4075
- 500
4076
- );
4077
- });
4078
- }, w = (b) => A(b.id), zt = (b) => A(b.id);
4079
- function Wt(b) {
4113
+ ai(o);
4114
+ };
4115
+ rr(() => () => {
4116
+ });
4117
+ const A = (b) => P(b.id), N = (b) => P(b.id);
4118
+ function zt(b) {
4080
4119
  Oe[b ? "unshift" : "push"](() => {
4081
- l = b, r(1, l);
4120
+ p = b, r(1, p);
4082
4121
  });
4083
4122
  }
4084
4123
  return e.$$set = (b) => {
4085
- "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, f = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, h = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl);
4124
+ "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, l = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, h = b.clientstylingurl), "translationurl" in b && r(13, f = b.translationurl), "mbsource" in b && r(14, c = b.mbsource);
4086
4125
  }, e.$$.update = () => {
4087
4126
  e.$$.dirty & /*endpoint, datasource*/
4088
- 384 && i && s && T(), e.$$.dirty & /*translationurl*/
4089
- 8192 && c && m(), e.$$.dirty & /*lang*/
4090
- 512 && o && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4091
- 2050 && a && l && B(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4092
- 4098 && h && l && S();
4127
+ 384 && i && s && B(), e.$$.dirty & /*translationurl*/
4128
+ 8192 && f && C(), e.$$.dirty & /*lang*/
4129
+ 512 && o && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4130
+ 2050 && a && p && ii(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4131
+ 4098 && h && p && si(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4132
+ 16386 && c && p && oi(p, `${c}.Style`);
4093
4133
  }, [
4094
4134
  u,
4095
- l,
4135
+ p,
4096
4136
  d,
4097
- g,
4098
4137
  E,
4138
+ m,
4099
4139
  n,
4100
- A,
4140
+ P,
4101
4141
  i,
4102
4142
  s,
4103
4143
  o,
4104
- f,
4144
+ l,
4105
4145
  a,
4106
4146
  h,
4147
+ f,
4107
4148
  c,
4108
- w,
4109
- zt,
4110
- Wt
4149
+ A,
4150
+ N,
4151
+ zt
4111
4152
  ];
4112
4153
  }
4113
- class Xt extends gr {
4154
+ class Xt extends mr {
4114
4155
  constructor(t) {
4115
4156
  super(), fr(
4116
4157
  this,
4117
4158
  t,
4118
- ui,
4119
- ai,
4159
+ fi,
4160
+ ci,
4120
4161
  bt,
4121
4162
  {
4122
4163
  endpoint: 7,
@@ -4126,92 +4167,103 @@ class Xt extends gr {
4126
4167
  excludedflags: 10,
4127
4168
  clientstyling: 11,
4128
4169
  clientstylingurl: 12,
4129
- translationurl: 13
4170
+ translationurl: 13,
4171
+ mbsource: 14
4130
4172
  },
4131
- ii
4173
+ ui
4132
4174
  );
4133
4175
  }
4134
4176
  get endpoint() {
4135
4177
  return this.$$.ctx[7];
4136
4178
  }
4137
4179
  set endpoint(t) {
4138
- this.$$set({ endpoint: t }), M();
4180
+ this.$$set({ endpoint: t }), I();
4139
4181
  }
4140
4182
  get datasource() {
4141
4183
  return this.$$.ctx[8];
4142
4184
  }
4143
4185
  set datasource(t) {
4144
- this.$$set({ datasource: t }), M();
4186
+ this.$$set({ datasource: t }), I();
4145
4187
  }
4146
4188
  get lang() {
4147
4189
  return this.$$.ctx[9];
4148
4190
  }
4149
4191
  set lang(t) {
4150
- this.$$set({ lang: t }), M();
4192
+ this.$$set({ lang: t }), I();
4151
4193
  }
4152
4194
  get activecategory() {
4153
4195
  return this.$$.ctx[0];
4154
4196
  }
4155
4197
  set activecategory(t) {
4156
- this.$$set({ activecategory: t }), M();
4198
+ this.$$set({ activecategory: t }), I();
4157
4199
  }
4158
4200
  get excludedflags() {
4159
4201
  return this.$$.ctx[10];
4160
4202
  }
4161
4203
  set excludedflags(t) {
4162
- this.$$set({ excludedflags: t }), M();
4204
+ this.$$set({ excludedflags: t }), I();
4163
4205
  }
4164
4206
  get clientstyling() {
4165
4207
  return this.$$.ctx[11];
4166
4208
  }
4167
4209
  set clientstyling(t) {
4168
- this.$$set({ clientstyling: t }), M();
4210
+ this.$$set({ clientstyling: t }), I();
4169
4211
  }
4170
4212
  get clientstylingurl() {
4171
4213
  return this.$$.ctx[12];
4172
4214
  }
4173
4215
  set clientstylingurl(t) {
4174
- this.$$set({ clientstylingurl: t }), M();
4216
+ this.$$set({ clientstylingurl: t }), I();
4175
4217
  }
4176
4218
  get translationurl() {
4177
4219
  return this.$$.ctx[13];
4178
4220
  }
4179
4221
  set translationurl(t) {
4180
- this.$$set({ translationurl: t }), M();
4222
+ this.$$set({ translationurl: t }), I();
4223
+ }
4224
+ get mbsource() {
4225
+ return this.$$.ctx[14];
4226
+ }
4227
+ set mbsource(t) {
4228
+ this.$$set({ mbsource: t }), I();
4181
4229
  }
4182
4230
  }
4183
- cr(Xt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4184
- const fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4231
+ gr(Xt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
4232
+ const pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4185
4233
  __proto__: null,
4186
4234
  default: Xt
4187
4235
  }, Symbol.toStringTag, { value: "Module" }));
4188
4236
  export {
4189
- ee as $,
4190
- fi as C,
4191
- gr as S,
4192
- Dt as a,
4193
- Jt as b,
4194
- cr as c,
4237
+ K as $,
4238
+ gi as A,
4239
+ Qe as B,
4240
+ pe as C,
4241
+ pi as D,
4242
+ mr as S,
4243
+ Gt as a,
4244
+ qt as b,
4245
+ gr as c,
4195
4246
  $ as d,
4196
- O as e,
4197
- M as f,
4247
+ w as e,
4248
+ I as f,
4198
4249
  H as g,
4199
- li as h,
4250
+ mi as h,
4200
4251
  fr as i,
4201
- Y as j,
4252
+ J as j,
4202
4253
  v as k,
4203
4254
  _t as l,
4204
4255
  D as m,
4205
- I as n,
4206
- j as o,
4207
- qt as p,
4208
- Oe as q,
4256
+ L as n,
4257
+ F as o,
4258
+ Qt as p,
4259
+ rr as q,
4209
4260
  oe as r,
4210
4261
  bt as s,
4211
4262
  R as t,
4212
- ri as u,
4213
- he as v,
4214
- hi as w,
4215
- Qe as x,
4216
- me as y
4263
+ si as u,
4264
+ oi as v,
4265
+ Oe as w,
4266
+ ii as x,
4267
+ ni as y,
4268
+ le as z
4217
4269
  };