@everymatrix/casino-most-played-section-nd 1.54.12 → 1.56.0

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.
Files changed (27) hide show
  1. package/components/{CasinoFilter-D8-OnnVG.js → CasinoFilter-BlA5EvOu.js} +1004 -984
  2. package/components/{CasinoFilter-TkJI4TQp.js → CasinoFilter-DVHRX3S2.js} +1045 -1025
  3. package/components/CasinoFilter-DxebOfLA.cjs +5 -0
  4. package/components/{CasinoGameThumbnailNd-CkuM82aL.js → CasinoGameThumbnailNd-DEaWO6-c.js} +1335 -1338
  5. package/components/{CasinoGameThumbnailNd-Dl_FCa6I.js → CasinoGameThumbnailNd-DQIfeqFh.js} +1335 -1338
  6. package/components/CasinoGameThumbnailNd-Da5XVIno.cjs +39 -0
  7. package/components/CasinoGamesCategorySectionNd-C_cr-8XV.cjs +1 -0
  8. package/components/CasinoGamesCategorySectionNd-DPJ26rHt.js +3056 -0
  9. package/components/{CasinoGamesCategorySectionNd-Dgaq2U8v.js → CasinoGamesCategorySectionNd-RtiMrhFL.js} +1110 -1111
  10. package/components/CasinoMostPlayedSectionNd-B0iTiMcv.cjs +1 -0
  11. package/components/{CasinoMostPlayedSectionNd-CYDsHan_.js → CasinoMostPlayedSectionNd-BDeuziSO.js} +194 -185
  12. package/components/{CasinoMostPlayedSectionNd-8Uv9E8st.js → CasinoMostPlayedSectionNd-DqPK4fZ8.js} +194 -185
  13. package/components/CasinoSort-Bch5mHG4.js +427 -0
  14. package/components/CasinoSort-C7NjCzaD.cjs +1 -0
  15. package/components/CasinoSort-DbSrQJ60.js +428 -0
  16. package/es2015/casino-most-played-section-nd.cjs +1 -1
  17. package/es2015/casino-most-played-section-nd.js +1 -1
  18. package/esnext/casino-most-played-section-nd.js +1 -1
  19. package/package.json +1 -1
  20. package/components/CasinoFilter-DoXQDU0g.cjs +0 -5
  21. package/components/CasinoGameThumbnailNd-CHpXjHVm.cjs +0 -39
  22. package/components/CasinoGamesCategorySectionNd-Bc2nDk9e.cjs +0 -1
  23. package/components/CasinoGamesCategorySectionNd-CjRIzy0Z.js +0 -3003
  24. package/components/CasinoMostPlayedSectionNd-DTqNLA_u.cjs +0 -1
  25. package/components/CasinoSort-D9xoCFAb.js +0 -432
  26. package/components/CasinoSort-DMl4ZrR2.js +0 -431
  27. package/components/CasinoSort-DjA47XS5.cjs +0 -1
@@ -1,50 +1,50 @@
1
- function G() {
1
+ function k() {
2
2
  }
3
- function Wt(e) {
3
+ function Xt(e) {
4
4
  return e();
5
5
  }
6
- function gt() {
6
+ function bt() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
9
  function Y(e) {
10
- e.forEach(Wt);
10
+ e.forEach(Xt);
11
11
  }
12
12
  function dt(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function zt(e, t) {
15
+ function Wt(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
18
  let Fe;
19
- function vt(e, t) {
19
+ function gt(e, t) {
20
20
  return e === t ? !0 : (Fe || (Fe = document.createElement("a")), Fe.href = t, e === Fe.href);
21
21
  }
22
22
  function Fr(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function Zt(e, ...t) {
25
+ function zt(e, ...t) {
26
26
  if (e == null) {
27
27
  for (const n of t)
28
28
  n(void 0);
29
- return G;
29
+ return k;
30
30
  }
31
31
  const r = e.subscribe(...t);
32
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
33
33
  }
34
- function Br(e, t, r) {
35
- e.$$.on_destroy.push(Zt(t, r));
34
+ function Cr(e, t, r) {
35
+ e.$$.on_destroy.push(zt(t, r));
36
36
  }
37
- function y(e, t) {
37
+ function _(e, t) {
38
38
  e.appendChild(t);
39
39
  }
40
- function Or(e, t, r) {
41
- const n = Ir(e);
40
+ function Br(e, t, r) {
41
+ const n = Or(e);
42
42
  if (!n.getElementById(t)) {
43
43
  const i = F("style");
44
- i.id = t, i.textContent = r, Lr(n, i);
44
+ i.id = t, i.textContent = r, Ir(n, i);
45
45
  }
46
46
  }
47
- function Ir(e) {
47
+ function Or(e) {
48
48
  if (!e) return document;
49
49
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
50
50
  return t && /** @type {ShadowRoot} */
@@ -53,20 +53,20 @@ function Ir(e) {
53
53
  t
54
54
  ) : e.ownerDocument;
55
55
  }
56
- function Lr(e, t) {
57
- return y(
56
+ function Ir(e, t) {
57
+ return _(
58
58
  /** @type {Document} */
59
59
  e.head || e,
60
60
  t
61
61
  ), t.sheet;
62
62
  }
63
- function X(e, t, r) {
63
+ function W(e, t, r) {
64
64
  e.insertBefore(t, r || null);
65
65
  }
66
- function k(e) {
66
+ function j(e) {
67
67
  e.parentNode && e.parentNode.removeChild(e);
68
68
  }
69
- function Nr(e, t) {
69
+ function Lr(e, t) {
70
70
  for (let r = 0; r < e.length; r += 1)
71
71
  e[r] && e[r].d(t);
72
72
  }
@@ -76,26 +76,26 @@ function F(e) {
76
76
  function Ee(e) {
77
77
  return document.createElementNS("http://www.w3.org/2000/svg", e);
78
78
  }
79
- function U(e) {
79
+ function G(e) {
80
80
  return document.createTextNode(e);
81
81
  }
82
- function V() {
83
- return U(" ");
82
+ function X() {
83
+ return G(" ");
84
84
  }
85
- function co() {
86
- return U("");
85
+ function po() {
86
+ return G("");
87
87
  }
88
- function Re(e, t, r, n) {
88
+ function Me(e, t, r, n) {
89
89
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
90
90
  }
91
- function g(e, t, r) {
91
+ function m(e, t, r) {
92
92
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
93
93
  }
94
- function fo(e, t, r) {
94
+ function mo(e, t, r) {
95
95
  const n = t.toLowerCase();
96
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : g(e, t, r);
96
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : m(e, t, r);
97
97
  }
98
- function Mr(e) {
98
+ function Nr(e) {
99
99
  return Array.from(e.childNodes);
100
100
  }
101
101
  function q(e, t) {
@@ -105,13 +105,13 @@ function q(e, t) {
105
105
  function yt(e, t) {
106
106
  e.value = t ?? "";
107
107
  }
108
- function po(e, t, r, n) {
108
+ function bo(e, t, r, n) {
109
109
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
110
110
  }
111
- function mo(e, t, r) {
111
+ function go(e, t, r) {
112
112
  e.classList.toggle(t, !!r);
113
113
  }
114
- class bo {
114
+ class yo {
115
115
  /**
116
116
  * @private
117
117
  * @default false
@@ -166,7 +166,7 @@ class bo {
166
166
  * @returns {void} */
167
167
  i(t) {
168
168
  for (let r = 0; r < this.n.length; r += 1)
169
- X(this.t, this.n[r], t);
169
+ W(this.t, this.n[r], t);
170
170
  }
171
171
  /**
172
172
  * @param {string} html
@@ -178,10 +178,10 @@ class bo {
178
178
  /**
179
179
  * @returns {void} */
180
180
  d() {
181
- this.n.forEach(k);
181
+ this.n.forEach(j);
182
182
  }
183
183
  }
184
- function Rr(e) {
184
+ function Mr(e) {
185
185
  const t = {};
186
186
  return e.childNodes.forEach(
187
187
  /** @param {Element} node */
@@ -194,113 +194,113 @@ let Se;
194
194
  function we(e) {
195
195
  Se = e;
196
196
  }
197
- function $r() {
197
+ function Rr() {
198
198
  if (!Se) throw new Error("Function called outside component initialization");
199
199
  return Se;
200
200
  }
201
201
  function Dr(e) {
202
- $r().$$.on_mount.push(e);
202
+ Rr().$$.on_mount.push(e);
203
203
  }
204
- const ce = [], Ye = [];
205
- let fe = [];
206
- const _t = [], Jt = /* @__PURE__ */ Promise.resolve();
207
- let Ke = !1;
208
- function Qt() {
209
- Ke || (Ke = !0, Jt.then(D));
204
+ const he = [], qe = [];
205
+ let ce = [];
206
+ const vt = [], Zt = /* @__PURE__ */ Promise.resolve();
207
+ let Ye = !1;
208
+ function Jt() {
209
+ Ye || (Ye = !0, Zt.then(U));
210
210
  }
211
- function go() {
212
- return Qt(), Jt;
211
+ function vo() {
212
+ return Jt(), Zt;
213
213
  }
214
- function et(e) {
215
- fe.push(e);
214
+ function Ke(e) {
215
+ ce.push(e);
216
216
  }
217
- const Xe = /* @__PURE__ */ new Set();
218
- let ue = 0;
219
- function D() {
220
- if (ue !== 0)
217
+ const Ve = /* @__PURE__ */ new Set();
218
+ let le = 0;
219
+ function U() {
220
+ if (le !== 0)
221
221
  return;
222
222
  const e = Se;
223
223
  do {
224
224
  try {
225
- for (; ue < ce.length; ) {
226
- const t = ce[ue];
227
- ue++, we(t), Ur(t.$$);
225
+ for (; le < he.length; ) {
226
+ const t = he[le];
227
+ le++, we(t), Ur(t.$$);
228
228
  }
229
229
  } catch (t) {
230
- throw ce.length = 0, ue = 0, t;
230
+ throw he.length = 0, le = 0, t;
231
231
  }
232
- for (we(null), ce.length = 0, ue = 0; Ye.length; ) Ye.pop()();
233
- for (let t = 0; t < fe.length; t += 1) {
234
- const r = fe[t];
235
- Xe.has(r) || (Xe.add(r), r());
232
+ for (we(null), he.length = 0, le = 0; qe.length; ) qe.pop()();
233
+ for (let t = 0; t < ce.length; t += 1) {
234
+ const r = ce[t];
235
+ Ve.has(r) || (Ve.add(r), r());
236
236
  }
237
- fe.length = 0;
238
- } while (ce.length);
239
- for (; _t.length; )
240
- _t.pop()();
241
- Ke = !1, Xe.clear(), we(e);
237
+ ce.length = 0;
238
+ } while (he.length);
239
+ for (; vt.length; )
240
+ vt.pop()();
241
+ Ye = !1, Ve.clear(), we(e);
242
242
  }
243
243
  function Ur(e) {
244
244
  if (e.fragment !== null) {
245
245
  e.update(), Y(e.before_update);
246
246
  const t = e.dirty;
247
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(et);
247
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ke);
248
248
  }
249
249
  }
250
- function Gr(e) {
250
+ function $r(e) {
251
251
  const t = [], r = [];
252
- fe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), fe = t;
252
+ ce.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ce = t;
253
253
  }
254
- const kr = /* @__PURE__ */ new Set();
255
- function qt(e, t) {
256
- e && e.i && (kr.delete(e), e.i(t));
254
+ const Gr = /* @__PURE__ */ new Set();
255
+ function Qt(e, t) {
256
+ e && e.i && (Gr.delete(e), e.i(t));
257
257
  }
258
- function xt(e) {
258
+ function _t(e) {
259
259
  return e?.length !== void 0 ? e : Array.from(e);
260
260
  }
261
- function vo(e, t) {
261
+ function _o(e, t) {
262
262
  e.d(1), t.delete(e.key);
263
263
  }
264
- function yo(e, t, r, n, i, o, s, a, h, l, u, p) {
265
- let c = e.length, m = o.length, b = c;
266
- const _ = {};
267
- for (; b--; ) _[e[b].key] = b;
268
- const T = [], v = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), E = [];
269
- for (b = m; b--; ) {
270
- const A = p(i, o, b), I = r(A);
271
- let M = s.get(I);
272
- M ? E.push(() => M.p(A, t)) : (M = l(I, A), M.c()), v.set(I, T[b] = M), I in _ && H.set(I, Math.abs(b - _[I]));
264
+ function xo(e, t, r, n, i, o, s, a, h, l, u, f) {
265
+ let c = e.length, p = o.length, y = c;
266
+ const g = {};
267
+ for (; y--; ) g[e[y].key] = y;
268
+ const A = [], w = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), x = [];
269
+ for (y = p; y--; ) {
270
+ const S = f(i, o, y), O = r(S);
271
+ let M = s.get(O);
272
+ M ? x.push(() => M.p(S, t)) : (M = l(O, S), M.c()), w.set(O, A[y] = M), O in g && v.set(O, Math.abs(y - g[O]));
273
273
  }
274
- const N = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
275
- function O(A) {
276
- qt(A, 1), A.m(a, u), s.set(A.key, A), u = A.first, m--;
274
+ const L = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set();
275
+ function R(S) {
276
+ Qt(S, 1), S.m(a, u), s.set(S.key, S), u = S.first, p--;
277
277
  }
278
- for (; c && m; ) {
279
- const A = T[m - 1], I = e[c - 1], M = A.key, W = I.key;
280
- A === I ? (u = A.first, c--, m--) : v.has(W) ? !s.has(M) || N.has(M) ? O(A) : L.has(W) ? c-- : H.get(M) > H.get(W) ? (L.add(M), O(A)) : (N.add(W), c--) : (h(I, s), c--);
278
+ for (; c && p; ) {
279
+ const S = A[p - 1], O = e[c - 1], M = S.key, V = O.key;
280
+ S === O ? (u = S.first, c--, p--) : w.has(V) ? !s.has(M) || L.has(M) ? R(S) : N.has(V) ? c-- : v.get(M) > v.get(V) ? (N.add(M), R(S)) : (L.add(V), c--) : (h(O, s), c--);
281
281
  }
282
282
  for (; c--; ) {
283
- const A = e[c];
284
- v.has(A.key) || h(A, s);
283
+ const S = e[c];
284
+ w.has(S.key) || h(S, s);
285
285
  }
286
- for (; m; ) O(T[m - 1]);
287
- return Y(E), T;
286
+ for (; p; ) R(A[p - 1]);
287
+ return Y(x), A;
288
288
  }
289
- function jr(e, t, r) {
289
+ function kr(e, t, r) {
290
290
  const { fragment: n, after_update: i } = e.$$;
291
- n && n.m(t, r), et(() => {
292
- const o = e.$$.on_mount.map(Wt).filter(dt);
291
+ n && n.m(t, r), Ke(() => {
292
+ const o = e.$$.on_mount.map(Xt).filter(dt);
293
293
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Y(o), e.$$.on_mount = [];
294
- }), i.forEach(et);
294
+ }), i.forEach(Ke);
295
295
  }
296
- function Vr(e, t) {
296
+ function jr(e, t) {
297
297
  const r = e.$$;
298
- r.fragment !== null && (Gr(r.after_update), Y(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
298
+ r.fragment !== null && ($r(r.after_update), Y(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
299
299
  }
300
- function Xr(e, t) {
301
- e.$$.dirty[0] === -1 && (ce.push(e), Qt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
300
+ function Vr(e, t) {
301
+ e.$$.dirty[0] === -1 && (he.push(e), Jt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
302
302
  }
303
- function Wr(e, t, r, n, i, o, s = null, a = [-1]) {
303
+ function Xr(e, t, r, n, i, o, s = null, a = [-1]) {
304
304
  const h = Se;
305
305
  we(e);
306
306
  const l = e.$$ = {
@@ -308,9 +308,9 @@ function Wr(e, t, r, n, i, o, s = null, a = [-1]) {
308
308
  ctx: [],
309
309
  // state
310
310
  props: o,
311
- update: G,
311
+ update: k,
312
312
  not_equal: i,
313
- bound: gt(),
313
+ bound: bt(),
314
314
  // lifecycle
315
315
  on_mount: [],
316
316
  on_destroy: [],
@@ -319,28 +319,28 @@ function Wr(e, t, r, n, i, o, s = null, a = [-1]) {
319
319
  after_update: [],
320
320
  context: new Map(t.context || (h ? h.$$.context : [])),
321
321
  // everything else
322
- callbacks: gt(),
322
+ callbacks: bt(),
323
323
  dirty: a,
324
324
  skip_bound: !1,
325
325
  root: t.target || h.$$.root
326
326
  };
327
327
  s && s(l.root);
328
328
  let u = !1;
329
- if (l.ctx = r ? r(e, t.props || {}, (p, c, ...m) => {
330
- const b = m.length ? m[0] : c;
331
- return l.ctx && i(l.ctx[p], l.ctx[p] = b) && (!l.skip_bound && l.bound[p] && l.bound[p](b), u && Xr(e, p)), c;
329
+ if (l.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
330
+ const y = p.length ? p[0] : c;
331
+ return l.ctx && i(l.ctx[f], l.ctx[f] = y) && (!l.skip_bound && l.bound[f] && l.bound[f](y), u && Vr(e, f)), c;
332
332
  }) : [], l.update(), u = !0, Y(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
333
333
  if (t.hydrate) {
334
- const p = Mr(t.target);
335
- l.fragment && l.fragment.l(p), p.forEach(k);
334
+ const f = Nr(t.target);
335
+ l.fragment && l.fragment.l(f), f.forEach(j);
336
336
  } else
337
337
  l.fragment && l.fragment.c();
338
- t.intro && qt(e.$$.fragment), jr(e, t.target, t.anchor), D();
338
+ t.intro && Qt(e.$$.fragment), kr(e, t.target, t.anchor), U();
339
339
  }
340
340
  we(h);
341
341
  }
342
- let Yt;
343
- typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
342
+ let qt;
343
+ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
344
344
  /** The Svelte component constructor */
345
345
  $$ctor;
346
346
  /** Slots */
@@ -382,29 +382,29 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
382
382
  let o;
383
383
  return {
384
384
  c: function() {
385
- o = F("slot"), i !== "default" && g(o, "name", i);
385
+ o = F("slot"), i !== "default" && m(o, "name", i);
386
386
  },
387
387
  /**
388
388
  * @param {HTMLElement} target
389
389
  * @param {HTMLElement} [anchor]
390
390
  */
391
391
  m: function(h, l) {
392
- X(h, o, l);
392
+ W(h, o, l);
393
393
  },
394
394
  d: function(h) {
395
- h && k(o);
395
+ h && j(o);
396
396
  }
397
397
  };
398
398
  };
399
399
  };
400
400
  if (await Promise.resolve(), !this.$$cn || this.$$c)
401
401
  return;
402
- const t = {}, r = Rr(this);
402
+ const t = {}, r = Mr(this);
403
403
  for (const i of this.$$s)
404
404
  i in r && (t[i] = [e(i)]);
405
405
  for (const i of this.attributes) {
406
406
  const o = this.$$g_p(i.name);
407
- o in this.$$d || (this.$$d[o] = Ie(o, i.value, this.$$p_d, "toProp"));
407
+ o in this.$$d || (this.$$d[o] = Oe(o, i.value, this.$$p_d, "toProp"));
408
408
  }
409
409
  for (const i in this.$$p_d)
410
410
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -422,7 +422,7 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
422
422
  this.$$r = !0;
423
423
  for (const i in this.$$p_d)
424
424
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
425
- const o = Ie(
425
+ const o = Oe(
426
426
  i,
427
427
  this.$$d[i],
428
428
  this.$$p_d,
@@ -444,7 +444,7 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
444
444
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
445
445
  // and setting attributes through setAttribute etc, this is helpful
446
446
  attributeChangedCallback(e, t, r) {
447
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ie(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
447
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Oe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
448
448
  }
449
449
  disconnectedCallback() {
450
450
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -457,7 +457,7 @@ typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
457
457
  ) || e;
458
458
  }
459
459
  });
460
- function Ie(e, t, r, n) {
460
+ function Oe(e, t, r, n) {
461
461
  const i = r[e]?.type;
462
462
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
463
463
  return t;
@@ -486,8 +486,8 @@ function Ie(e, t, r, n) {
486
486
  return t;
487
487
  }
488
488
  }
489
- function zr(e, t, r, n, i, o) {
490
- let s = class extends Yt {
489
+ function Wr(e, t, r, n, i, o) {
490
+ let s = class extends qt {
491
491
  constructor() {
492
492
  super(e, r, i), this.$$p_d = t;
493
493
  }
@@ -503,7 +503,7 @@ function zr(e, t, r, n, i, o) {
503
503
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
504
504
  },
505
505
  set(h) {
506
- h = Ie(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
506
+ h = Oe(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
507
507
  }
508
508
  });
509
509
  }), n.forEach((a) => {
@@ -515,7 +515,7 @@ function zr(e, t, r, n, i, o) {
515
515
  }), e.element = /** @type {any} */
516
516
  s, s;
517
517
  }
518
- class Zr {
518
+ class zr {
519
519
  /**
520
520
  * ### PRIVATE API
521
521
  *
@@ -534,7 +534,7 @@ class Zr {
534
534
  $$set = void 0;
535
535
  /** @returns {void} */
536
536
  $destroy() {
537
- Vr(this, 1), this.$destroy = G;
537
+ jr(this, 1), this.$destroy = k;
538
538
  }
539
539
  /**
540
540
  * @template {Extract<keyof Events, string>} K
@@ -544,7 +544,7 @@ class Zr {
544
544
  */
545
545
  $on(t, r) {
546
546
  if (!dt(r))
547
- return G;
547
+ return k;
548
548
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
549
549
  return n.push(r), () => {
550
550
  const i = n.indexOf(r);
@@ -559,34 +559,34 @@ class Zr {
559
559
  this.$$set && !Fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
560
560
  }
561
561
  }
562
- const Jr = "4";
563
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Jr);
564
- var tt = function(e, t) {
565
- return tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
562
+ const Zr = "4";
563
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Zr);
564
+ var et = function(e, t) {
565
+ return et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
566
566
  r.__proto__ = n;
567
567
  } || function(r, n) {
568
568
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
569
- }, tt(e, t);
569
+ }, et(e, t);
570
570
  };
571
- function Z(e, t) {
571
+ function J(e, t) {
572
572
  if (typeof t != "function" && t !== null)
573
573
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
574
- tt(e, t);
574
+ et(e, t);
575
575
  function r() {
576
576
  this.constructor = e;
577
577
  }
578
578
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
579
579
  }
580
- var S = function() {
581
- return S = Object.assign || function(t) {
580
+ var P = function() {
581
+ return P = Object.assign || function(t) {
582
582
  for (var r, n = 1, i = arguments.length; n < i; n++) {
583
583
  r = arguments[n];
584
584
  for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
585
585
  }
586
586
  return t;
587
- }, S.apply(this, arguments);
587
+ }, P.apply(this, arguments);
588
588
  };
589
- function Qr(e, t) {
589
+ function Jr(e, t) {
590
590
  var r = {};
591
591
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
592
592
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -594,7 +594,7 @@ function Qr(e, t) {
594
594
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
595
595
  return r;
596
596
  }
597
- function rt(e) {
597
+ function tt(e) {
598
598
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
599
599
  if (r) return r.call(e);
600
600
  if (e && typeof e.length == "number") return {
@@ -604,7 +604,7 @@ function rt(e) {
604
604
  };
605
605
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
606
606
  }
607
- function nt(e, t) {
607
+ function rt(e, t) {
608
608
  var r = typeof Symbol == "function" && e[Symbol.iterator];
609
609
  if (!r) return e;
610
610
  var n = r.call(e), i, o = [], s;
@@ -621,21 +621,21 @@ function nt(e, t) {
621
621
  }
622
622
  return o;
623
623
  }
624
- function pe(e, t, r) {
624
+ function fe(e, t, r) {
625
625
  if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
626
626
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
627
627
  return e.concat(o || Array.prototype.slice.call(t));
628
628
  }
629
- function z(e) {
629
+ function Z(e) {
630
630
  return typeof e == "function";
631
631
  }
632
- function Kt(e) {
632
+ function Yt(e) {
633
633
  var t = function(n) {
634
634
  Error.call(n), n.stack = new Error().stack;
635
635
  }, r = e(t);
636
636
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
637
637
  }
638
- var We = Kt(function(e) {
638
+ var Xe = Yt(function(e) {
639
639
  return function(r) {
640
640
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
641
641
  ` + r.map(function(n, i) {
@@ -644,7 +644,7 @@ var We = Kt(function(e) {
644
644
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
645
645
  };
646
646
  });
647
- function it(e, t) {
647
+ function nt(e, t) {
648
648
  if (e) {
649
649
  var r = e.indexOf(t);
650
650
  0 <= r && e.splice(r, 1);
@@ -662,12 +662,12 @@ var Ue = function() {
662
662
  if (s)
663
663
  if (this._parentage = null, Array.isArray(s))
664
664
  try {
665
- for (var a = rt(s), h = a.next(); !h.done; h = a.next()) {
665
+ for (var a = tt(s), h = a.next(); !h.done; h = a.next()) {
666
666
  var l = h.value;
667
667
  l.remove(this);
668
668
  }
669
- } catch (_) {
670
- t = { error: _ };
669
+ } catch (g) {
670
+ t = { error: g };
671
671
  } finally {
672
672
  try {
673
673
  h && !h.done && (r = a.return) && r.call(a);
@@ -678,42 +678,42 @@ var Ue = function() {
678
678
  else
679
679
  s.remove(this);
680
680
  var u = this.initialTeardown;
681
- if (z(u))
681
+ if (Z(u))
682
682
  try {
683
683
  u();
684
- } catch (_) {
685
- o = _ instanceof We ? _.errors : [_];
684
+ } catch (g) {
685
+ o = g instanceof Xe ? g.errors : [g];
686
686
  }
687
- var p = this._finalizers;
688
- if (p) {
687
+ var f = this._finalizers;
688
+ if (f) {
689
689
  this._finalizers = null;
690
690
  try {
691
- for (var c = rt(p), m = c.next(); !m.done; m = c.next()) {
692
- var b = m.value;
691
+ for (var c = tt(f), p = c.next(); !p.done; p = c.next()) {
692
+ var y = p.value;
693
693
  try {
694
- Et(b);
695
- } catch (_) {
696
- o = o ?? [], _ instanceof We ? o = pe(pe([], nt(o)), nt(_.errors)) : o.push(_);
694
+ xt(y);
695
+ } catch (g) {
696
+ o = o ?? [], g instanceof Xe ? o = fe(fe([], rt(o)), rt(g.errors)) : o.push(g);
697
697
  }
698
698
  }
699
- } catch (_) {
700
- n = { error: _ };
699
+ } catch (g) {
700
+ n = { error: g };
701
701
  } finally {
702
702
  try {
703
- m && !m.done && (i = c.return) && i.call(c);
703
+ p && !p.done && (i = c.return) && i.call(c);
704
704
  } finally {
705
705
  if (n) throw n.error;
706
706
  }
707
707
  }
708
708
  }
709
709
  if (o)
710
- throw new We(o);
710
+ throw new Xe(o);
711
711
  }
712
712
  }, e.prototype.add = function(t) {
713
713
  var r;
714
714
  if (t && t !== this)
715
715
  if (this.closed)
716
- Et(t);
716
+ xt(t);
717
717
  else {
718
718
  if (t instanceof e) {
719
719
  if (t.closed || t._hasParent(this))
@@ -730,52 +730,52 @@ var Ue = function() {
730
730
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
731
731
  }, e.prototype._removeParent = function(t) {
732
732
  var r = this._parentage;
733
- r === t ? this._parentage = null : Array.isArray(r) && it(r, t);
733
+ r === t ? this._parentage = null : Array.isArray(r) && nt(r, t);
734
734
  }, e.prototype.remove = function(t) {
735
735
  var r = this._finalizers;
736
- r && it(r, t), t instanceof e && t._removeParent(this);
736
+ r && nt(r, t), t instanceof e && t._removeParent(this);
737
737
  }, e.EMPTY = function() {
738
738
  var t = new e();
739
739
  return t.closed = !0, t;
740
740
  }(), e;
741
- }(), er = Ue.EMPTY;
742
- function tr(e) {
743
- return e instanceof Ue || e && "closed" in e && z(e.remove) && z(e.add) && z(e.unsubscribe);
741
+ }(), Kt = Ue.EMPTY;
742
+ function er(e) {
743
+ return e instanceof Ue || e && "closed" in e && Z(e.remove) && Z(e.add) && Z(e.unsubscribe);
744
744
  }
745
- function Et(e) {
746
- z(e) ? e() : e.unsubscribe();
745
+ function xt(e) {
746
+ Z(e) ? e() : e.unsubscribe();
747
747
  }
748
- var qr = {
748
+ var Qr = {
749
749
  Promise: void 0
750
- }, Yr = {
750
+ }, qr = {
751
751
  setTimeout: function(e, t) {
752
752
  for (var r = [], n = 2; n < arguments.length; n++)
753
753
  r[n - 2] = arguments[n];
754
- return setTimeout.apply(void 0, pe([e, t], nt(r)));
754
+ return setTimeout.apply(void 0, fe([e, t], rt(r)));
755
755
  },
756
756
  clearTimeout: function(e) {
757
757
  return clearTimeout(e);
758
758
  },
759
759
  delegate: void 0
760
760
  };
761
- function Kr(e) {
762
- Yr.setTimeout(function() {
761
+ function Yr(e) {
762
+ qr.setTimeout(function() {
763
763
  throw e;
764
764
  });
765
765
  }
766
- function wt() {
766
+ function Et() {
767
767
  }
768
- function Le(e) {
768
+ function Ie(e) {
769
769
  e();
770
770
  }
771
- var rr = function(e) {
772
- Z(t, e);
771
+ var tr = function(e) {
772
+ J(t, e);
773
773
  function t(r) {
774
774
  var n = e.call(this) || this;
775
- return n.isStopped = !1, r ? (n.destination = r, tr(r) && r.add(n)) : n.destination = rn, n;
775
+ return n.isStopped = !1, r ? (n.destination = r, er(r) && r.add(n)) : n.destination = tn, n;
776
776
  }
777
777
  return t.create = function(r, n, i) {
778
- return new ot(r, n, i);
778
+ return new it(r, n, i);
779
779
  }, t.prototype.next = function(r) {
780
780
  this.isStopped || this._next(r);
781
781
  }, t.prototype.error = function(r) {
@@ -799,7 +799,7 @@ var rr = function(e) {
799
799
  this.unsubscribe();
800
800
  }
801
801
  }, t;
802
- }(Ue), en = function() {
802
+ }(Ue), Kr = function() {
803
803
  function e(t) {
804
804
  this.partialObserver = t;
805
805
  }
@@ -809,7 +809,7 @@ var rr = function(e) {
809
809
  try {
810
810
  r.next(t);
811
811
  } catch (n) {
812
- Be(n);
812
+ Ce(n);
813
813
  }
814
814
  }, e.prototype.error = function(t) {
815
815
  var r = this.partialObserver;
@@ -817,56 +817,56 @@ var rr = function(e) {
817
817
  try {
818
818
  r.error(t);
819
819
  } catch (n) {
820
- Be(n);
820
+ Ce(n);
821
821
  }
822
822
  else
823
- Be(t);
823
+ Ce(t);
824
824
  }, e.prototype.complete = function() {
825
825
  var t = this.partialObserver;
826
826
  if (t.complete)
827
827
  try {
828
828
  t.complete();
829
829
  } catch (r) {
830
- Be(r);
830
+ Ce(r);
831
831
  }
832
832
  }, e;
833
- }(), ot = function(e) {
834
- Z(t, e);
833
+ }(), it = function(e) {
834
+ J(t, e);
835
835
  function t(r, n, i) {
836
836
  var o = e.call(this) || this, s;
837
- return z(r) || !r ? s = {
837
+ return Z(r) || !r ? s = {
838
838
  next: r ?? void 0,
839
839
  error: n ?? void 0,
840
840
  complete: i ?? void 0
841
- } : s = r, o.destination = new en(s), o;
841
+ } : s = r, o.destination = new Kr(s), o;
842
842
  }
843
843
  return t;
844
- }(rr);
845
- function Be(e) {
846
- Kr(e);
844
+ }(tr);
845
+ function Ce(e) {
846
+ Yr(e);
847
847
  }
848
- function tn(e) {
848
+ function en(e) {
849
849
  throw e;
850
850
  }
851
- var rn = {
851
+ var tn = {
852
852
  closed: !0,
853
- next: wt,
854
- error: tn,
855
- complete: wt
856
- }, nn = function() {
853
+ next: Et,
854
+ error: en,
855
+ complete: Et
856
+ }, rn = function() {
857
857
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
858
858
  }();
859
- function on(e) {
859
+ function nn(e) {
860
860
  return e;
861
861
  }
862
- function sn(e) {
863
- return e.length === 0 ? on : e.length === 1 ? e[0] : function(r) {
862
+ function on(e) {
863
+ return e.length === 0 ? nn : e.length === 1 ? e[0] : function(r) {
864
864
  return e.reduce(function(n, i) {
865
865
  return i(n);
866
866
  }, r);
867
867
  };
868
868
  }
869
- var St = function() {
869
+ var wt = function() {
870
870
  function e(t) {
871
871
  t && (this._subscribe = t);
872
872
  }
@@ -874,8 +874,8 @@ var St = function() {
874
874
  var r = new e();
875
875
  return r.source = this, r.operator = t, r;
876
876
  }, e.prototype.subscribe = function(t, r, n) {
877
- var i = this, o = ln(t) ? t : new ot(t, r, n);
878
- return Le(function() {
877
+ var i = this, o = an(t) ? t : new it(t, r, n);
878
+ return Ie(function() {
879
879
  var s = i, a = s.operator, h = s.source;
880
880
  o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
881
881
  }), o;
@@ -887,8 +887,8 @@ var St = function() {
887
887
  }
888
888
  }, e.prototype.forEach = function(t, r) {
889
889
  var n = this;
890
- return r = Tt(r), new r(function(i, o) {
891
- var s = new ot({
890
+ return r = St(r), new r(function(i, o) {
891
+ var s = new it({
892
892
  next: function(a) {
893
893
  try {
894
894
  t(a);
@@ -904,15 +904,15 @@ var St = function() {
904
904
  }, e.prototype._subscribe = function(t) {
905
905
  var r;
906
906
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
907
- }, e.prototype[nn] = function() {
907
+ }, e.prototype[rn] = function() {
908
908
  return this;
909
909
  }, e.prototype.pipe = function() {
910
910
  for (var t = [], r = 0; r < arguments.length; r++)
911
911
  t[r] = arguments[r];
912
- return sn(t)(this);
912
+ return on(t)(this);
913
913
  }, e.prototype.toPromise = function(t) {
914
914
  var r = this;
915
- return t = Tt(t), new t(function(n, i) {
915
+ return t = St(t), new t(function(n, i) {
916
916
  var o;
917
917
  r.subscribe(function(s) {
918
918
  return o = s;
@@ -926,40 +926,40 @@ var St = function() {
926
926
  return new e(t);
927
927
  }, e;
928
928
  }();
929
- function Tt(e) {
929
+ function St(e) {
930
930
  var t;
931
- return (t = e ?? qr.Promise) !== null && t !== void 0 ? t : Promise;
931
+ return (t = e ?? Qr.Promise) !== null && t !== void 0 ? t : Promise;
932
932
  }
933
- function an(e) {
934
- return e && z(e.next) && z(e.error) && z(e.complete);
933
+ function sn(e) {
934
+ return e && Z(e.next) && Z(e.error) && Z(e.complete);
935
935
  }
936
- function ln(e) {
937
- return e && e instanceof rr || an(e) && tr(e);
936
+ function an(e) {
937
+ return e && e instanceof tr || sn(e) && er(e);
938
938
  }
939
- var un = Kt(function(e) {
939
+ var ln = Yt(function(e) {
940
940
  return function() {
941
941
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
942
942
  };
943
- }), nr = function(e) {
944
- Z(t, e);
943
+ }), rr = function(e) {
944
+ J(t, e);
945
945
  function t() {
946
946
  var r = e.call(this) || this;
947
947
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
948
948
  }
949
949
  return t.prototype.lift = function(r) {
950
- var n = new Ht(this, this);
950
+ var n = new Tt(this, this);
951
951
  return n.operator = r, n;
952
952
  }, t.prototype._throwIfClosed = function() {
953
953
  if (this.closed)
954
- throw new un();
954
+ throw new ln();
955
955
  }, t.prototype.next = function(r) {
956
956
  var n = this;
957
- Le(function() {
957
+ Ie(function() {
958
958
  var i, o;
959
959
  if (n._throwIfClosed(), !n.isStopped) {
960
960
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
961
961
  try {
962
- for (var s = rt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
962
+ for (var s = tt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
963
963
  var h = a.value;
964
964
  h.next(r);
965
965
  }
@@ -976,7 +976,7 @@ var un = Kt(function(e) {
976
976
  });
977
977
  }, t.prototype.error = function(r) {
978
978
  var n = this;
979
- Le(function() {
979
+ Ie(function() {
980
980
  if (n._throwIfClosed(), !n.isStopped) {
981
981
  n.hasError = n.isStopped = !0, n.thrownError = r;
982
982
  for (var i = n.observers; i.length; )
@@ -985,7 +985,7 @@ var un = Kt(function(e) {
985
985
  });
986
986
  }, t.prototype.complete = function() {
987
987
  var r = this;
988
- Le(function() {
988
+ Ie(function() {
989
989
  if (r._throwIfClosed(), !r.isStopped) {
990
990
  r.isStopped = !0;
991
991
  for (var n = r.observers; n.length; )
@@ -1007,20 +1007,20 @@ var un = Kt(function(e) {
1007
1007
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
1008
1008
  }, t.prototype._innerSubscribe = function(r) {
1009
1009
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
1010
- return o || s ? er : (this.currentObservers = null, a.push(r), new Ue(function() {
1011
- n.currentObservers = null, it(a, r);
1010
+ return o || s ? Kt : (this.currentObservers = null, a.push(r), new Ue(function() {
1011
+ n.currentObservers = null, nt(a, r);
1012
1012
  }));
1013
1013
  }, t.prototype._checkFinalizedStatuses = function(r) {
1014
1014
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
1015
1015
  i ? r.error(o) : s && r.complete();
1016
1016
  }, t.prototype.asObservable = function() {
1017
- var r = new St();
1017
+ var r = new wt();
1018
1018
  return r.source = this, r;
1019
1019
  }, t.create = function(r, n) {
1020
- return new Ht(r, n);
1020
+ return new Tt(r, n);
1021
1021
  }, t;
1022
- }(St), Ht = function(e) {
1023
- Z(t, e);
1022
+ }(wt), Tt = function(e) {
1023
+ J(t, e);
1024
1024
  function t(r, n) {
1025
1025
  var i = e.call(this) || this;
1026
1026
  return i.destination = r, i.source = n, i;
@@ -1036,17 +1036,17 @@ var un = Kt(function(e) {
1036
1036
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1037
1037
  }, t.prototype._subscribe = function(r) {
1038
1038
  var n, i;
1039
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : er;
1039
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Kt;
1040
1040
  }, t;
1041
- }(nr), ir = {
1041
+ }(rr), nr = {
1042
1042
  now: function() {
1043
- return (ir.delegate || Date).now();
1043
+ return (nr.delegate || Date).now();
1044
1044
  },
1045
1045
  delegate: void 0
1046
- }, hn = function(e) {
1047
- Z(t, e);
1046
+ }, un = function(e) {
1047
+ J(t, e);
1048
1048
  function t(r, n, i) {
1049
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = ir);
1049
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = nr);
1050
1050
  var o = e.call(this) || this;
1051
1051
  return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
1052
1052
  }
@@ -1066,140 +1066,140 @@ var un = Kt(function(e) {
1066
1066
  l && o.splice(0, l + 1);
1067
1067
  }
1068
1068
  }, t;
1069
- }(nr);
1070
- const Pt = [], At = {}, cn = (e, t = 0) => {
1071
- if (Pt.indexOf(e) == -1) {
1072
- const r = new hn(t);
1073
- At[e] = r, Pt.push(e);
1069
+ }(rr);
1070
+ const Ht = [], Pt = {}, hn = (e, t = 0) => {
1071
+ if (Ht.indexOf(e) == -1) {
1072
+ const r = new un(t);
1073
+ Pt[e] = r, Ht.push(e);
1074
1074
  }
1075
- return At[e];
1076
- }, he = [];
1077
- function fn(e, t) {
1075
+ return Pt[e];
1076
+ }, ue = [];
1077
+ function cn(e, t) {
1078
1078
  return {
1079
- subscribe: Ge(e, t).subscribe
1079
+ subscribe: $e(e, t).subscribe
1080
1080
  };
1081
1081
  }
1082
- function Ge(e, t = G) {
1082
+ function $e(e, t = k) {
1083
1083
  let r;
1084
1084
  const n = /* @__PURE__ */ new Set();
1085
1085
  function i(a) {
1086
- if (zt(e, a) && (e = a, r)) {
1087
- const h = !he.length;
1086
+ if (Wt(e, a) && (e = a, r)) {
1087
+ const h = !ue.length;
1088
1088
  for (const l of n)
1089
- l[1](), he.push(l, e);
1089
+ l[1](), ue.push(l, e);
1090
1090
  if (h) {
1091
- for (let l = 0; l < he.length; l += 2)
1092
- he[l][0](he[l + 1]);
1093
- he.length = 0;
1091
+ for (let l = 0; l < ue.length; l += 2)
1092
+ ue[l][0](ue[l + 1]);
1093
+ ue.length = 0;
1094
1094
  }
1095
1095
  }
1096
1096
  }
1097
1097
  function o(a) {
1098
1098
  i(a(e));
1099
1099
  }
1100
- function s(a, h = G) {
1100
+ function s(a, h = k) {
1101
1101
  const l = [a, h];
1102
- return n.add(l), n.size === 1 && (r = t(i, o) || G), a(e), () => {
1102
+ return n.add(l), n.size === 1 && (r = t(i, o) || k), a(e), () => {
1103
1103
  n.delete(l), n.size === 0 && r && (r(), r = null);
1104
1104
  };
1105
1105
  }
1106
1106
  return { set: i, update: o, subscribe: s };
1107
1107
  }
1108
- function ve(e, t, r) {
1108
+ function ge(e, t, r) {
1109
1109
  const n = !Array.isArray(e), i = n ? [e] : e;
1110
1110
  if (!i.every(Boolean))
1111
1111
  throw new Error("derived() expects stores as input, got a falsy value");
1112
1112
  const o = t.length < 2;
1113
- return fn(r, (s, a) => {
1113
+ return cn(r, (s, a) => {
1114
1114
  let h = !1;
1115
1115
  const l = [];
1116
- let u = 0, p = G;
1116
+ let u = 0, f = k;
1117
1117
  const c = () => {
1118
1118
  if (u)
1119
1119
  return;
1120
- p();
1121
- const b = t(n ? l[0] : l, s, a);
1122
- o ? s(b) : p = dt(b) ? b : G;
1123
- }, m = i.map(
1124
- (b, _) => Zt(
1125
- b,
1126
- (T) => {
1127
- l[_] = T, u &= ~(1 << _), h && c();
1120
+ f();
1121
+ const y = t(n ? l[0] : l, s, a);
1122
+ o ? s(y) : f = dt(y) ? y : k;
1123
+ }, p = i.map(
1124
+ (y, g) => zt(
1125
+ y,
1126
+ (A) => {
1127
+ l[g] = A, u &= ~(1 << g), h && c();
1128
1128
  },
1129
1129
  () => {
1130
- u |= 1 << _;
1130
+ u |= 1 << g;
1131
1131
  }
1132
1132
  )
1133
1133
  );
1134
1134
  return h = !0, c(), function() {
1135
- Y(m), p(), h = !1;
1135
+ Y(p), f(), h = !1;
1136
1136
  };
1137
1137
  });
1138
1138
  }
1139
- function pn(e) {
1139
+ function fn(e) {
1140
1140
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1141
1141
  }
1142
1142
  var dn = function(t) {
1143
- return mn(t) && !bn(t);
1143
+ return pn(t) && !mn(t);
1144
1144
  };
1145
- function mn(e) {
1145
+ function pn(e) {
1146
1146
  return !!e && typeof e == "object";
1147
1147
  }
1148
- function bn(e) {
1148
+ function mn(e) {
1149
1149
  var t = Object.prototype.toString.call(e);
1150
1150
  return t === "[object RegExp]" || t === "[object Date]" || yn(e);
1151
1151
  }
1152
- var gn = typeof Symbol == "function" && Symbol.for, vn = gn ? Symbol.for("react.element") : 60103;
1152
+ var bn = typeof Symbol == "function" && Symbol.for, gn = bn ? Symbol.for("react.element") : 60103;
1153
1153
  function yn(e) {
1154
- return e.$$typeof === vn;
1154
+ return e.$$typeof === gn;
1155
1155
  }
1156
- function _n(e) {
1156
+ function vn(e) {
1157
1157
  return Array.isArray(e) ? [] : {};
1158
1158
  }
1159
1159
  function Te(e, t) {
1160
- return t.clone !== !1 && t.isMergeableObject(e) ? de(_n(e), e, t) : e;
1160
+ return t.clone !== !1 && t.isMergeableObject(e) ? de(vn(e), e, t) : e;
1161
1161
  }
1162
- function xn(e, t, r) {
1162
+ function _n(e, t, r) {
1163
1163
  return e.concat(t).map(function(n) {
1164
1164
  return Te(n, r);
1165
1165
  });
1166
1166
  }
1167
- function En(e, t) {
1167
+ function xn(e, t) {
1168
1168
  if (!t.customMerge)
1169
1169
  return de;
1170
1170
  var r = t.customMerge(e);
1171
1171
  return typeof r == "function" ? r : de;
1172
1172
  }
1173
- function wn(e) {
1173
+ function En(e) {
1174
1174
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1175
1175
  return Object.propertyIsEnumerable.call(e, t);
1176
1176
  }) : [];
1177
1177
  }
1178
- function Ct(e) {
1179
- return Object.keys(e).concat(wn(e));
1178
+ function At(e) {
1179
+ return Object.keys(e).concat(En(e));
1180
1180
  }
1181
- function or(e, t) {
1181
+ function ir(e, t) {
1182
1182
  try {
1183
1183
  return t in e;
1184
1184
  } catch {
1185
1185
  return !1;
1186
1186
  }
1187
1187
  }
1188
- function Sn(e, t) {
1189
- return or(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1188
+ function wn(e, t) {
1189
+ return ir(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1190
1190
  }
1191
- function Tn(e, t, r) {
1191
+ function Sn(e, t, r) {
1192
1192
  var n = {};
1193
- return r.isMergeableObject(e) && Ct(e).forEach(function(i) {
1193
+ return r.isMergeableObject(e) && At(e).forEach(function(i) {
1194
1194
  n[i] = Te(e[i], r);
1195
- }), Ct(t).forEach(function(i) {
1196
- Sn(e, i) || (or(e, i) && r.isMergeableObject(t[i]) ? n[i] = En(i, r)(e[i], t[i], r) : n[i] = Te(t[i], r));
1195
+ }), At(t).forEach(function(i) {
1196
+ wn(e, i) || (ir(e, i) && r.isMergeableObject(t[i]) ? n[i] = xn(i, r)(e[i], t[i], r) : n[i] = Te(t[i], r));
1197
1197
  }), n;
1198
1198
  }
1199
1199
  function de(e, t, r) {
1200
- r = r || {}, r.arrayMerge = r.arrayMerge || xn, r.isMergeableObject = r.isMergeableObject || dn, r.cloneUnlessOtherwiseSpecified = Te;
1200
+ r = r || {}, r.arrayMerge = r.arrayMerge || _n, r.isMergeableObject = r.isMergeableObject || dn, r.cloneUnlessOtherwiseSpecified = Te;
1201
1201
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1202
- return o ? n ? r.arrayMerge(e, t, r) : Tn(e, t, r) : Te(t, r);
1202
+ return o ? n ? r.arrayMerge(e, t, r) : Sn(e, t, r) : Te(t, r);
1203
1203
  }
1204
1204
  de.all = function(t, r) {
1205
1205
  if (!Array.isArray(t))
@@ -1208,39 +1208,39 @@ de.all = function(t, r) {
1208
1208
  return de(n, i, r);
1209
1209
  }, {});
1210
1210
  };
1211
- var Hn = de, Pn = Hn;
1212
- const An = /* @__PURE__ */ pn(Pn);
1213
- function ze(e, t) {
1214
- var r = t && t.cache ? t.cache : Nn, n = t && t.serializer ? t.serializer : In, i = t && t.strategy ? t.strategy : Bn;
1211
+ var Tn = de, Hn = Tn;
1212
+ const Pn = /* @__PURE__ */ fn(Hn);
1213
+ function We(e, t) {
1214
+ var r = t && t.cache ? t.cache : Ln, n = t && t.serializer ? t.serializer : On, i = t && t.strategy ? t.strategy : Cn;
1215
1215
  return i(e, {
1216
1216
  cache: r,
1217
1217
  serializer: n
1218
1218
  });
1219
1219
  }
1220
- function Cn(e) {
1220
+ function An(e) {
1221
1221
  return e == null || typeof e == "number" || typeof e == "boolean";
1222
1222
  }
1223
1223
  function Fn(e, t, r, n) {
1224
- var i = Cn(n) ? n : r(n), o = t.get(i);
1224
+ var i = An(n) ? n : r(n), o = t.get(i);
1225
1225
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1226
1226
  }
1227
- function sr(e, t, r) {
1227
+ function or(e, t, r) {
1228
1228
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1229
1229
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1230
1230
  }
1231
- function ar(e, t, r, n, i) {
1231
+ function sr(e, t, r, n, i) {
1232
1232
  return r.bind(t, e, n, i);
1233
1233
  }
1234
- function Bn(e, t) {
1235
- var r = e.length === 1 ? Fn : sr;
1236
- return ar(e, this, r, t.cache.create(), t.serializer);
1234
+ function Cn(e, t) {
1235
+ var r = e.length === 1 ? Fn : or;
1236
+ return sr(e, this, r, t.cache.create(), t.serializer);
1237
1237
  }
1238
- function On(e, t) {
1239
- return ar(e, this, sr, t.cache.create(), t.serializer);
1238
+ function Bn(e, t) {
1239
+ return sr(e, this, or, t.cache.create(), t.serializer);
1240
1240
  }
1241
- var In = function() {
1241
+ var On = function() {
1242
1242
  return JSON.stringify(arguments);
1243
- }, Ln = (
1243
+ }, In = (
1244
1244
  /** @class */
1245
1245
  function() {
1246
1246
  function e() {
@@ -1252,61 +1252,61 @@ var In = function() {
1252
1252
  this.cache[t] = r;
1253
1253
  }, e;
1254
1254
  }()
1255
- ), Nn = {
1255
+ ), Ln = {
1256
1256
  create: function() {
1257
- return new Ln();
1257
+ return new In();
1258
1258
  }
1259
- }, Ze = {
1260
- variadic: On
1261
- }, x;
1259
+ }, ze = {
1260
+ variadic: Bn
1261
+ }, E;
1262
1262
  (function(e) {
1263
1263
  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";
1264
- })(x || (x = {}));
1264
+ })(E || (E = {}));
1265
1265
  var B;
1266
1266
  (function(e) {
1267
1267
  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";
1268
1268
  })(B || (B = {}));
1269
- var me;
1269
+ var pe;
1270
1270
  (function(e) {
1271
1271
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1272
- })(me || (me = {}));
1272
+ })(pe || (pe = {}));
1273
1273
  function Ft(e) {
1274
1274
  return e.type === B.literal;
1275
1275
  }
1276
- function Mn(e) {
1276
+ function Nn(e) {
1277
1277
  return e.type === B.argument;
1278
1278
  }
1279
- function lr(e) {
1279
+ function ar(e) {
1280
1280
  return e.type === B.number;
1281
1281
  }
1282
- function ur(e) {
1282
+ function lr(e) {
1283
1283
  return e.type === B.date;
1284
1284
  }
1285
- function hr(e) {
1285
+ function ur(e) {
1286
1286
  return e.type === B.time;
1287
1287
  }
1288
- function cr(e) {
1288
+ function hr(e) {
1289
1289
  return e.type === B.select;
1290
1290
  }
1291
- function fr(e) {
1291
+ function cr(e) {
1292
1292
  return e.type === B.plural;
1293
1293
  }
1294
- function Rn(e) {
1294
+ function Mn(e) {
1295
1295
  return e.type === B.pound;
1296
1296
  }
1297
- function pr(e) {
1297
+ function fr(e) {
1298
1298
  return e.type === B.tag;
1299
1299
  }
1300
1300
  function dr(e) {
1301
- return !!(e && typeof e == "object" && e.type === me.number);
1301
+ return !!(e && typeof e == "object" && e.type === pe.number);
1302
1302
  }
1303
- function st(e) {
1304
- return !!(e && typeof e == "object" && e.type === me.dateTime);
1303
+ function ot(e) {
1304
+ return !!(e && typeof e == "object" && e.type === pe.dateTime);
1305
1305
  }
1306
- var mr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, $n = /(?:[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;
1306
+ var pr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Rn = /(?:[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;
1307
1307
  function Dn(e) {
1308
1308
  var t = {};
1309
- return e.replace($n, function(r) {
1309
+ return e.replace(Rn, function(r) {
1310
1310
  var n = r.length;
1311
1311
  switch (r[0]) {
1312
1312
  case "G":
@@ -1396,7 +1396,7 @@ function Dn(e) {
1396
1396
  }), t;
1397
1397
  }
1398
1398
  var Un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1399
- function Gn(e) {
1399
+ function $n(e) {
1400
1400
  if (e.length === 0)
1401
1401
  throw new Error("Number skeleton cannot be empty");
1402
1402
  for (var t = e.split(Un).filter(function(c) {
@@ -1406,25 +1406,25 @@ function Gn(e) {
1406
1406
  if (s.length === 0)
1407
1407
  throw new Error("Invalid number skeleton");
1408
1408
  for (var a = s[0], h = s.slice(1), l = 0, u = h; l < u.length; l++) {
1409
- var p = u[l];
1410
- if (p.length === 0)
1409
+ var f = u[l];
1410
+ if (f.length === 0)
1411
1411
  throw new Error("Invalid number skeleton");
1412
1412
  }
1413
1413
  r.push({ stem: a, options: h });
1414
1414
  }
1415
1415
  return r;
1416
1416
  }
1417
- function kn(e) {
1417
+ function Gn(e) {
1418
1418
  return e.replace(/^(.*?)-/, "");
1419
1419
  }
1420
- var Bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, br = /^(@+)?(\+|#+)?[rs]?$/g, jn = /(\*)(0+)|(#+)(0+)|(0+)/g, gr = /^(0+)$/;
1421
- function Ot(e) {
1420
+ var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mr = /^(@+)?(\+|#+)?[rs]?$/g, kn = /(\*)(0+)|(#+)(0+)|(0+)/g, br = /^(0+)$/;
1421
+ function Bt(e) {
1422
1422
  var t = {};
1423
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(br, function(r, n, i) {
1423
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(mr, function(r, n, i) {
1424
1424
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1425
1425
  }), t;
1426
1426
  }
1427
- function vr(e) {
1427
+ function gr(e) {
1428
1428
  switch (e) {
1429
1429
  case "sign-auto":
1430
1430
  return {
@@ -1464,7 +1464,7 @@ function vr(e) {
1464
1464
  };
1465
1465
  }
1466
1466
  }
1467
- function Vn(e) {
1467
+ function jn(e) {
1468
1468
  var t;
1469
1469
  if (e[0] === "E" && e[1] === "E" ? (t = {
1470
1470
  notation: "engineering"
@@ -1472,17 +1472,17 @@ function Vn(e) {
1472
1472
  notation: "scientific"
1473
1473
  }, e = e.slice(1)), t) {
1474
1474
  var r = e.slice(0, 2);
1475
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !gr.test(e))
1475
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !br.test(e))
1476
1476
  throw new Error("Malformed concise eng/scientific notation");
1477
1477
  t.minimumIntegerDigits = e.length;
1478
1478
  }
1479
1479
  return t;
1480
1480
  }
1481
- function It(e) {
1482
- var t = {}, r = vr(e);
1481
+ function Ot(e) {
1482
+ var t = {}, r = gr(e);
1483
1483
  return r || t;
1484
1484
  }
1485
- function Xn(e) {
1485
+ function Vn(e) {
1486
1486
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1487
1487
  var i = n[r];
1488
1488
  switch (i.stem) {
@@ -1506,7 +1506,7 @@ function Xn(e) {
1506
1506
  continue;
1507
1507
  case "measure-unit":
1508
1508
  case "unit":
1509
- t.style = "unit", t.unit = kn(i.options[0]);
1509
+ t.style = "unit", t.unit = Gn(i.options[0]);
1510
1510
  continue;
1511
1511
  case "compact-short":
1512
1512
  case "K":
@@ -1517,13 +1517,13 @@ function Xn(e) {
1517
1517
  t.notation = "compact", t.compactDisplay = "long";
1518
1518
  continue;
1519
1519
  case "scientific":
1520
- t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
1521
- return S(S({}, h), It(l));
1520
+ t = P(P(P({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
1521
+ return P(P({}, h), Ot(l));
1522
1522
  }, {}));
1523
1523
  continue;
1524
1524
  case "engineering":
1525
- t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
1526
- return S(S({}, h), It(l));
1525
+ t = P(P(P({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
1526
+ return P(P({}, h), Ot(l));
1527
1527
  }, {}));
1528
1528
  continue;
1529
1529
  case "notation-simple":
@@ -1568,45 +1568,45 @@ function Xn(e) {
1568
1568
  case "integer-width":
1569
1569
  if (i.options.length > 1)
1570
1570
  throw new RangeError("integer-width stems only accept a single optional option");
1571
- i.options[0].replace(jn, function(h, l, u, p, c, m) {
1571
+ i.options[0].replace(kn, function(h, l, u, f, c, p) {
1572
1572
  if (l)
1573
1573
  t.minimumIntegerDigits = u.length;
1574
1574
  else {
1575
- if (p && c)
1575
+ if (f && c)
1576
1576
  throw new Error("We currently do not support maximum integer digits");
1577
- if (m)
1577
+ if (p)
1578
1578
  throw new Error("We currently do not support exact integer digits");
1579
1579
  }
1580
1580
  return "";
1581
1581
  });
1582
1582
  continue;
1583
1583
  }
1584
- if (gr.test(i.stem)) {
1584
+ if (br.test(i.stem)) {
1585
1585
  t.minimumIntegerDigits = i.stem.length;
1586
1586
  continue;
1587
1587
  }
1588
- if (Bt.test(i.stem)) {
1588
+ if (Ct.test(i.stem)) {
1589
1589
  if (i.options.length > 1)
1590
1590
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1591
- i.stem.replace(Bt, function(h, l, u, p, c, m) {
1592
- return u === "*" ? t.minimumFractionDigits = l.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1591
+ i.stem.replace(Ct, function(h, l, u, f, c, p) {
1592
+ return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1593
1593
  });
1594
1594
  var o = i.options[0];
1595
- o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), Ot(o)));
1595
+ o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t), Bt(o)));
1596
1596
  continue;
1597
1597
  }
1598
- if (br.test(i.stem)) {
1599
- t = S(S({}, t), Ot(i.stem));
1598
+ if (mr.test(i.stem)) {
1599
+ t = P(P({}, t), Bt(i.stem));
1600
1600
  continue;
1601
1601
  }
1602
- var s = vr(i.stem);
1603
- s && (t = S(S({}, t), s));
1604
- var a = Vn(i.stem);
1605
- a && (t = S(S({}, t), a));
1602
+ var s = gr(i.stem);
1603
+ s && (t = P(P({}, t), s));
1604
+ var a = jn(i.stem);
1605
+ a && (t = P(P({}, t), a));
1606
1606
  }
1607
1607
  return t;
1608
1608
  }
1609
- var Oe = {
1609
+ var Be = {
1610
1610
  "001": [
1611
1611
  "H",
1612
1612
  "h"
@@ -3021,13 +3021,13 @@ var Oe = {
3021
3021
  "h"
3022
3022
  ]
3023
3023
  };
3024
- function Wn(e, t) {
3024
+ function Xn(e, t) {
3025
3025
  for (var r = "", n = 0; n < e.length; n++) {
3026
3026
  var i = e.charAt(n);
3027
3027
  if (i === "j") {
3028
3028
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3029
3029
  o++, n++;
3030
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = zn(t);
3030
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = Wn(t);
3031
3031
  for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
3032
3032
  r += h;
3033
3033
  for (; s-- > 0; )
@@ -3036,7 +3036,7 @@ function Wn(e, t) {
3036
3036
  }
3037
3037
  return r;
3038
3038
  }
3039
- function zn(e) {
3039
+ function Wn(e) {
3040
3040
  var t = e.hourCycle;
3041
3041
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3042
3042
  e.hourCycles && // @ts-ignore
@@ -3055,23 +3055,23 @@ function zn(e) {
3055
3055
  }
3056
3056
  var r = e.language, n;
3057
3057
  r !== "root" && (n = e.maximize().region);
3058
- var i = Oe[n || ""] || Oe[r || ""] || Oe["".concat(r, "-001")] || Oe["001"];
3058
+ var i = Be[n || ""] || Be[r || ""] || Be["".concat(r, "-001")] || Be["001"];
3059
3059
  return i[0];
3060
3060
  }
3061
- var Je, Zn = new RegExp("^".concat(mr.source, "*")), Jn = new RegExp("".concat(mr.source, "*$"));
3062
- function w(e, t) {
3061
+ var Ze, zn = new RegExp("^".concat(pr.source, "*")), Zn = new RegExp("".concat(pr.source, "*$"));
3062
+ function T(e, t) {
3063
3063
  return { start: e, end: t };
3064
3064
  }
3065
- var Qn = !!String.prototype.startsWith && "_a".startsWith("a", 1), qn = !!String.fromCodePoint, Yn = !!Object.fromEntries, Kn = !!String.prototype.codePointAt, ei = !!String.prototype.trimStart, ti = !!String.prototype.trimEnd, ri = !!Number.isSafeInteger, ni = ri ? Number.isSafeInteger : function(e) {
3065
+ var Jn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Qn = !!String.fromCodePoint, qn = !!Object.fromEntries, Yn = !!String.prototype.codePointAt, Kn = !!String.prototype.trimStart, ei = !!String.prototype.trimEnd, ti = !!Number.isSafeInteger, ri = ti ? Number.isSafeInteger : function(e) {
3066
3066
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3067
- }, at = !0;
3067
+ }, st = !0;
3068
3068
  try {
3069
- var ii = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3070
- at = ((Je = ii.exec("a")) === null || Je === void 0 ? void 0 : Je[0]) === "a";
3069
+ var ni = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3070
+ st = ((Ze = ni.exec("a")) === null || Ze === void 0 ? void 0 : Ze[0]) === "a";
3071
3071
  } catch {
3072
- at = !1;
3072
+ st = !1;
3073
3073
  }
3074
- var Lt = Qn ? (
3074
+ var It = Jn ? (
3075
3075
  // Native
3076
3076
  function(t, r, n) {
3077
3077
  return t.startsWith(r, n);
@@ -3081,7 +3081,7 @@ var Lt = Qn ? (
3081
3081
  function(t, r, n) {
3082
3082
  return t.slice(n, n + r.length) === r;
3083
3083
  }
3084
- ), lt = qn ? String.fromCodePoint : (
3084
+ ), at = Qn ? String.fromCodePoint : (
3085
3085
  // IE11
3086
3086
  function() {
3087
3087
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3093,9 +3093,9 @@ var Lt = Qn ? (
3093
3093
  }
3094
3094
  return n;
3095
3095
  }
3096
- ), Nt = (
3096
+ ), Lt = (
3097
3097
  // native
3098
- Yn ? Object.fromEntries : (
3098
+ qn ? Object.fromEntries : (
3099
3099
  // Ponyfill
3100
3100
  function(t) {
3101
3101
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3105,7 +3105,7 @@ var Lt = Qn ? (
3105
3105
  return r;
3106
3106
  }
3107
3107
  )
3108
- ), yr = Kn ? (
3108
+ ), yr = Yn ? (
3109
3109
  // Native
3110
3110
  function(t, r) {
3111
3111
  return t.codePointAt(r);
@@ -3119,7 +3119,7 @@ var Lt = Qn ? (
3119
3119
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3120
3120
  }
3121
3121
  }
3122
- ), oi = ei ? (
3122
+ ), ii = Kn ? (
3123
3123
  // Native
3124
3124
  function(t) {
3125
3125
  return t.trimStart();
@@ -3127,9 +3127,9 @@ var Lt = Qn ? (
3127
3127
  ) : (
3128
3128
  // Ponyfill
3129
3129
  function(t) {
3130
- return t.replace(Zn, "");
3130
+ return t.replace(zn, "");
3131
3131
  }
3132
- ), si = ti ? (
3132
+ ), oi = ei ? (
3133
3133
  // Native
3134
3134
  function(t) {
3135
3135
  return t.trimEnd();
@@ -3137,32 +3137,32 @@ var Lt = Qn ? (
3137
3137
  ) : (
3138
3138
  // Ponyfill
3139
3139
  function(t) {
3140
- return t.replace(Jn, "");
3140
+ return t.replace(Zn, "");
3141
3141
  }
3142
3142
  );
3143
- function _r(e, t) {
3143
+ function vr(e, t) {
3144
3144
  return new RegExp(e, t);
3145
3145
  }
3146
- var ut;
3147
- if (at) {
3148
- var Mt = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3149
- ut = function(t, r) {
3146
+ var lt;
3147
+ if (st) {
3148
+ var Nt = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3149
+ lt = function(t, r) {
3150
3150
  var n;
3151
- Mt.lastIndex = r;
3152
- var i = Mt.exec(t);
3151
+ Nt.lastIndex = r;
3152
+ var i = Nt.exec(t);
3153
3153
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3154
3154
  };
3155
3155
  } else
3156
- ut = function(t, r) {
3156
+ lt = function(t, r) {
3157
3157
  for (var n = []; ; ) {
3158
3158
  var i = yr(t, r);
3159
- if (i === void 0 || xr(i) || hi(i))
3159
+ if (i === void 0 || _r(i) || ui(i))
3160
3160
  break;
3161
3161
  n.push(i), r += i >= 65536 ? 2 : 1;
3162
3162
  }
3163
- return lt.apply(void 0, n);
3163
+ return at.apply(void 0, n);
3164
3164
  };
3165
- var ai = (
3165
+ var si = (
3166
3166
  /** @class */
3167
3167
  function() {
3168
3168
  function e(t, r) {
@@ -3187,13 +3187,13 @@ var ai = (
3187
3187
  var a = this.clonePosition();
3188
3188
  this.bump(), i.push({
3189
3189
  type: B.pound,
3190
- location: w(a, this.clonePosition())
3190
+ location: T(a, this.clonePosition())
3191
3191
  });
3192
3192
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3193
3193
  if (n)
3194
3194
  break;
3195
- return this.error(x.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
3196
- } else if (o === 60 && !this.ignoreTag && ht(this.peek() || 0)) {
3195
+ return this.error(E.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
3196
+ } else if (o === 60 && !this.ignoreTag && ut(this.peek() || 0)) {
3197
3197
  var s = this.parseTag(t, r);
3198
3198
  if (s.err)
3199
3199
  return s;
@@ -3216,7 +3216,7 @@ var ai = (
3216
3216
  val: {
3217
3217
  type: B.literal,
3218
3218
  value: "<".concat(i, "/>"),
3219
- location: w(n, this.clonePosition())
3219
+ location: T(n, this.clonePosition())
3220
3220
  },
3221
3221
  err: null
3222
3222
  };
@@ -3226,25 +3226,25 @@ var ai = (
3226
3226
  return o;
3227
3227
  var s = o.val, a = this.clonePosition();
3228
3228
  if (this.bumpIf("</")) {
3229
- if (this.isEOF() || !ht(this.char()))
3230
- return this.error(x.INVALID_TAG, w(a, this.clonePosition()));
3229
+ if (this.isEOF() || !ut(this.char()))
3230
+ return this.error(E.INVALID_TAG, T(a, this.clonePosition()));
3231
3231
  var h = this.clonePosition(), l = this.parseTagName();
3232
- return i !== l ? this.error(x.UNMATCHED_CLOSING_TAG, w(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3232
+ return i !== l ? this.error(E.UNMATCHED_CLOSING_TAG, T(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3233
3233
  val: {
3234
3234
  type: B.tag,
3235
3235
  value: i,
3236
3236
  children: s,
3237
- location: w(n, this.clonePosition())
3237
+ location: T(n, this.clonePosition())
3238
3238
  },
3239
3239
  err: null
3240
- } : this.error(x.INVALID_TAG, w(a, this.clonePosition())));
3240
+ } : this.error(E.INVALID_TAG, T(a, this.clonePosition())));
3241
3241
  } else
3242
- return this.error(x.UNCLOSED_TAG, w(n, this.clonePosition()));
3242
+ return this.error(E.UNCLOSED_TAG, T(n, this.clonePosition()));
3243
3243
  } else
3244
- return this.error(x.INVALID_TAG, w(n, this.clonePosition()));
3244
+ return this.error(E.INVALID_TAG, T(n, this.clonePosition()));
3245
3245
  }, e.prototype.parseTagName = function() {
3246
3246
  var t = this.offset();
3247
- for (this.bump(); !this.isEOF() && ui(this.char()); )
3247
+ for (this.bump(); !this.isEOF() && li(this.char()); )
3248
3248
  this.bump();
3249
3249
  return this.message.slice(t, this.offset());
3250
3250
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3266,14 +3266,14 @@ var ai = (
3266
3266
  }
3267
3267
  break;
3268
3268
  }
3269
- var h = w(n, this.clonePosition());
3269
+ var h = T(n, this.clonePosition());
3270
3270
  return {
3271
3271
  val: { type: B.literal, value: i, location: h },
3272
3272
  err: null
3273
3273
  };
3274
3274
  }, e.prototype.tryParseLeftAngleBracket = function() {
3275
3275
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3276
- !li(this.peek() || 0)) ? (this.bump(), "<") : null;
3276
+ !ai(this.peek() || 0)) ? (this.bump(), "<") : null;
3277
3277
  }, e.prototype.tryParseQuote = function(t) {
3278
3278
  if (this.isEOF() || this.char() !== 39)
3279
3279
  return null;
@@ -3307,23 +3307,23 @@ var ai = (
3307
3307
  r.push(n);
3308
3308
  this.bump();
3309
3309
  }
3310
- return lt.apply(void 0, r);
3310
+ return at.apply(void 0, r);
3311
3311
  }, e.prototype.tryParseUnquoted = function(t, r) {
3312
3312
  if (this.isEOF())
3313
3313
  return null;
3314
3314
  var n = this.char();
3315
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), lt(n));
3315
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), at(n));
3316
3316
  }, e.prototype.parseArgument = function(t, r) {
3317
3317
  var n = this.clonePosition();
3318
3318
  if (this.bump(), this.bumpSpace(), this.isEOF())
3319
- return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
3319
+ return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
3320
3320
  if (this.char() === 125)
3321
- return this.bump(), this.error(x.EMPTY_ARGUMENT, w(n, this.clonePosition()));
3321
+ return this.bump(), this.error(E.EMPTY_ARGUMENT, T(n, this.clonePosition()));
3322
3322
  var i = this.parseIdentifierIfPossible().value;
3323
3323
  if (!i)
3324
- return this.error(x.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
3324
+ return this.error(E.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
3325
3325
  if (this.bumpSpace(), this.isEOF())
3326
- return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
3326
+ return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
3327
3327
  switch (this.char()) {
3328
3328
  case 125:
3329
3329
  return this.bump(), {
@@ -3331,25 +3331,25 @@ var ai = (
3331
3331
  type: B.argument,
3332
3332
  // value does not include the opening and closing braces.
3333
3333
  value: i,
3334
- location: w(n, this.clonePosition())
3334
+ location: T(n, this.clonePosition())
3335
3335
  },
3336
3336
  err: null
3337
3337
  };
3338
3338
  case 44:
3339
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3339
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3340
3340
  default:
3341
- return this.error(x.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
3341
+ return this.error(E.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
3342
3342
  }
3343
3343
  }, e.prototype.parseIdentifierIfPossible = function() {
3344
- var t = this.clonePosition(), r = this.offset(), n = ut(this.message, r), i = r + n.length;
3344
+ var t = this.clonePosition(), r = this.offset(), n = lt(this.message, r), i = r + n.length;
3345
3345
  this.bumpTo(i);
3346
- var o = this.clonePosition(), s = w(t, o);
3346
+ var o = this.clonePosition(), s = T(t, o);
3347
3347
  return { value: n, location: s };
3348
3348
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3349
3349
  var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
3350
3350
  switch (a) {
3351
3351
  case "":
3352
- return this.error(x.EXPECT_ARGUMENT_TYPE, w(s, h));
3352
+ return this.error(E.EXPECT_ARGUMENT_TYPE, T(s, h));
3353
3353
  case "number":
3354
3354
  case "date":
3355
3355
  case "time": {
@@ -3357,40 +3357,40 @@ var ai = (
3357
3357
  var l = null;
3358
3358
  if (this.bumpIf(",")) {
3359
3359
  this.bumpSpace();
3360
- var u = this.clonePosition(), p = this.parseSimpleArgStyleIfPossible();
3361
- if (p.err)
3362
- return p;
3363
- var c = si(p.val);
3360
+ var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3361
+ if (f.err)
3362
+ return f;
3363
+ var c = oi(f.val);
3364
3364
  if (c.length === 0)
3365
- return this.error(x.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
3366
- var m = w(u, this.clonePosition());
3367
- l = { style: c, styleLocation: m };
3365
+ return this.error(E.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
3366
+ var p = T(u, this.clonePosition());
3367
+ l = { style: c, styleLocation: p };
3368
3368
  }
3369
- var b = this.tryParseArgumentClose(i);
3370
- if (b.err)
3371
- return b;
3372
- var _ = w(i, this.clonePosition());
3373
- if (l && Lt(l?.style, "::", 0)) {
3374
- var T = oi(l.style.slice(2));
3369
+ var y = this.tryParseArgumentClose(i);
3370
+ if (y.err)
3371
+ return y;
3372
+ var g = T(i, this.clonePosition());
3373
+ if (l && It(l?.style, "::", 0)) {
3374
+ var A = ii(l.style.slice(2));
3375
3375
  if (a === "number") {
3376
- var p = this.parseNumberSkeletonFromString(T, l.styleLocation);
3377
- return p.err ? p : {
3378
- val: { type: B.number, value: n, location: _, style: p.val },
3376
+ var f = this.parseNumberSkeletonFromString(A, l.styleLocation);
3377
+ return f.err ? f : {
3378
+ val: { type: B.number, value: n, location: g, style: f.val },
3379
3379
  err: null
3380
3380
  };
3381
3381
  } else {
3382
- if (T.length === 0)
3383
- return this.error(x.EXPECT_DATE_TIME_SKELETON, _);
3384
- var v = T;
3385
- this.locale && (v = Wn(T, this.locale));
3382
+ if (A.length === 0)
3383
+ return this.error(E.EXPECT_DATE_TIME_SKELETON, g);
3384
+ var w = A;
3385
+ this.locale && (w = Xn(A, this.locale));
3386
3386
  var c = {
3387
- type: me.dateTime,
3388
- pattern: v,
3387
+ type: pe.dateTime,
3388
+ pattern: w,
3389
3389
  location: l.styleLocation,
3390
- parsedOptions: this.shouldParseSkeletons ? Dn(v) : {}
3391
- }, H = a === "date" ? B.date : B.time;
3390
+ parsedOptions: this.shouldParseSkeletons ? Dn(w) : {}
3391
+ }, v = a === "date" ? B.date : B.time;
3392
3392
  return {
3393
- val: { type: H, value: n, location: _, style: c },
3393
+ val: { type: v, value: n, location: g, style: c },
3394
3394
  err: null
3395
3395
  };
3396
3396
  }
@@ -3399,7 +3399,7 @@ var ai = (
3399
3399
  val: {
3400
3400
  type: a === "number" ? B.number : a === "date" ? B.date : B.time,
3401
3401
  value: n,
3402
- location: _,
3402
+ location: g,
3403
3403
  style: (o = l?.style) !== null && o !== void 0 ? o : null
3404
3404
  },
3405
3405
  err: null
@@ -3408,52 +3408,52 @@ var ai = (
3408
3408
  case "plural":
3409
3409
  case "selectordinal":
3410
3410
  case "select": {
3411
- var E = this.clonePosition();
3411
+ var x = this.clonePosition();
3412
3412
  if (this.bumpSpace(), !this.bumpIf(","))
3413
- return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, w(E, S({}, E)));
3413
+ return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, T(x, P({}, x)));
3414
3414
  this.bumpSpace();
3415
- var N = this.parseIdentifierIfPossible(), L = 0;
3416
- if (a !== "select" && N.value === "offset") {
3415
+ var L = this.parseIdentifierIfPossible(), N = 0;
3416
+ if (a !== "select" && L.value === "offset") {
3417
3417
  if (!this.bumpIf(":"))
3418
- return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
3418
+ return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
3419
3419
  this.bumpSpace();
3420
- var p = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3421
- if (p.err)
3422
- return p;
3423
- this.bumpSpace(), N = this.parseIdentifierIfPossible(), L = p.val;
3420
+ var f = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3421
+ if (f.err)
3422
+ return f;
3423
+ this.bumpSpace(), L = this.parseIdentifierIfPossible(), N = f.val;
3424
3424
  }
3425
- var O = this.tryParsePluralOrSelectOptions(t, a, r, N);
3426
- if (O.err)
3427
- return O;
3428
- var b = this.tryParseArgumentClose(i);
3429
- if (b.err)
3430
- return b;
3431
- var A = w(i, this.clonePosition());
3425
+ var R = this.tryParsePluralOrSelectOptions(t, a, r, L);
3426
+ if (R.err)
3427
+ return R;
3428
+ var y = this.tryParseArgumentClose(i);
3429
+ if (y.err)
3430
+ return y;
3431
+ var S = T(i, this.clonePosition());
3432
3432
  return a === "select" ? {
3433
3433
  val: {
3434
3434
  type: B.select,
3435
3435
  value: n,
3436
- options: Nt(O.val),
3437
- location: A
3436
+ options: Lt(R.val),
3437
+ location: S
3438
3438
  },
3439
3439
  err: null
3440
3440
  } : {
3441
3441
  val: {
3442
3442
  type: B.plural,
3443
3443
  value: n,
3444
- options: Nt(O.val),
3445
- offset: L,
3444
+ options: Lt(R.val),
3445
+ offset: N,
3446
3446
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3447
- location: A
3447
+ location: S
3448
3448
  },
3449
3449
  err: null
3450
3450
  };
3451
3451
  }
3452
3452
  default:
3453
- return this.error(x.INVALID_ARGUMENT_TYPE, w(s, h));
3453
+ return this.error(E.INVALID_ARGUMENT_TYPE, T(s, h));
3454
3454
  }
3455
3455
  }, e.prototype.tryParseArgumentClose = function(t) {
3456
- return this.isEOF() || this.char() !== 125 ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3456
+ return this.isEOF() || this.char() !== 125 ? this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3457
3457
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3458
3458
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3459
3459
  var n = this.char();
@@ -3462,7 +3462,7 @@ var ai = (
3462
3462
  this.bump();
3463
3463
  var i = this.clonePosition();
3464
3464
  if (!this.bumpUntil("'"))
3465
- return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(i, this.clonePosition()));
3465
+ return this.error(E.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, T(i, this.clonePosition()));
3466
3466
  this.bump();
3467
3467
  break;
3468
3468
  }
@@ -3492,52 +3492,52 @@ var ai = (
3492
3492
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3493
3493
  var n = [];
3494
3494
  try {
3495
- n = Gn(t);
3495
+ n = $n(t);
3496
3496
  } catch {
3497
- return this.error(x.INVALID_NUMBER_SKELETON, r);
3497
+ return this.error(E.INVALID_NUMBER_SKELETON, r);
3498
3498
  }
3499
3499
  return {
3500
3500
  val: {
3501
- type: me.number,
3501
+ type: pe.number,
3502
3502
  tokens: n,
3503
3503
  location: r,
3504
- parsedOptions: this.shouldParseSkeletons ? Xn(n) : {}
3504
+ parsedOptions: this.shouldParseSkeletons ? Vn(n) : {}
3505
3505
  },
3506
3506
  err: null
3507
3507
  };
3508
3508
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3509
3509
  for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
3510
3510
  if (l.length === 0) {
3511
- var p = this.clonePosition();
3511
+ var f = this.clonePosition();
3512
3512
  if (r !== "select" && this.bumpIf("=")) {
3513
- var c = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR, x.INVALID_PLURAL_ARGUMENT_SELECTOR);
3513
+ var c = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_SELECTOR, E.INVALID_PLURAL_ARGUMENT_SELECTOR);
3514
3514
  if (c.err)
3515
3515
  return c;
3516
- u = w(p, this.clonePosition()), l = this.message.slice(p.offset, this.offset());
3516
+ u = T(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
3517
3517
  } else
3518
3518
  break;
3519
3519
  }
3520
3520
  if (h.has(l))
3521
- return this.error(r === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
3521
+ return this.error(r === "select" ? E.DUPLICATE_SELECT_ARGUMENT_SELECTOR : E.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
3522
3522
  l === "other" && (s = !0), this.bumpSpace();
3523
- var m = this.clonePosition();
3523
+ var p = this.clonePosition();
3524
3524
  if (!this.bumpIf("{"))
3525
- return this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
3526
- var b = this.parseMessage(t + 1, r, n);
3527
- if (b.err)
3528
- return b;
3529
- var _ = this.tryParseArgumentClose(m);
3530
- if (_.err)
3531
- return _;
3525
+ return this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : E.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
3526
+ var y = this.parseMessage(t + 1, r, n);
3527
+ if (y.err)
3528
+ return y;
3529
+ var g = this.tryParseArgumentClose(p);
3530
+ if (g.err)
3531
+ return g;
3532
3532
  a.push([
3533
3533
  l,
3534
3534
  {
3535
- value: b.val,
3536
- location: w(m, this.clonePosition())
3535
+ value: y.val,
3536
+ location: T(p, this.clonePosition())
3537
3537
  }
3538
3538
  ]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
3539
3539
  }
3540
- return a.length === 0 ? this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(x.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3540
+ return a.length === 0 ? this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR : E.EXPECT_PLURAL_ARGUMENT_SELECTOR, T(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(E.MISSING_OTHER_CLAUSE, T(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3541
3541
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3542
3542
  var n = 1, i = this.clonePosition();
3543
3543
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3548,8 +3548,8 @@ var ai = (
3548
3548
  else
3549
3549
  break;
3550
3550
  }
3551
- var h = w(i, this.clonePosition());
3552
- return o ? (s *= n, ni(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3551
+ var h = T(i, this.clonePosition());
3552
+ return o ? (s *= n, ri(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3553
3553
  }, e.prototype.offset = function() {
3554
3554
  return this.position.offset;
3555
3555
  }, e.prototype.isEOF = function() {
@@ -3583,7 +3583,7 @@ var ai = (
3583
3583
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3584
3584
  }
3585
3585
  }, e.prototype.bumpIf = function(t) {
3586
- if (Lt(this.message, t, this.offset())) {
3586
+ if (It(this.message, t, this.offset())) {
3587
3587
  for (var r = 0; r < t.length; r++)
3588
3588
  this.bump();
3589
3589
  return !0;
@@ -3605,7 +3605,7 @@ var ai = (
3605
3605
  break;
3606
3606
  }
3607
3607
  }, e.prototype.bumpSpace = function() {
3608
- for (; !this.isEOF() && xr(this.char()); )
3608
+ for (; !this.isEOF() && _r(this.char()); )
3609
3609
  this.bump();
3610
3610
  }, e.prototype.peek = function() {
3611
3611
  if (this.isEOF())
@@ -3615,46 +3615,46 @@ var ai = (
3615
3615
  }, e;
3616
3616
  }()
3617
3617
  );
3618
- function ht(e) {
3618
+ function ut(e) {
3619
3619
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3620
3620
  }
3621
- function li(e) {
3622
- return ht(e) || e === 47;
3621
+ function ai(e) {
3622
+ return ut(e) || e === 47;
3623
3623
  }
3624
- function ui(e) {
3624
+ function li(e) {
3625
3625
  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;
3626
3626
  }
3627
- function xr(e) {
3627
+ function _r(e) {
3628
3628
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3629
3629
  }
3630
- function hi(e) {
3630
+ function ui(e) {
3631
3631
  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;
3632
3632
  }
3633
- function ct(e) {
3633
+ function ht(e) {
3634
3634
  e.forEach(function(t) {
3635
- if (delete t.location, cr(t) || fr(t))
3635
+ if (delete t.location, hr(t) || cr(t))
3636
3636
  for (var r in t.options)
3637
- delete t.options[r].location, ct(t.options[r].value);
3638
- else lr(t) && dr(t.style) || (ur(t) || hr(t)) && st(t.style) ? delete t.style.location : pr(t) && ct(t.children);
3637
+ delete t.options[r].location, ht(t.options[r].value);
3638
+ else ar(t) && dr(t.style) || (lr(t) || ur(t)) && ot(t.style) ? delete t.style.location : fr(t) && ht(t.children);
3639
3639
  });
3640
3640
  }
3641
- function ci(e, t) {
3642
- t === void 0 && (t = {}), t = S({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3643
- var r = new ai(e, t).parse();
3641
+ function hi(e, t) {
3642
+ t === void 0 && (t = {}), t = P({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3643
+ var r = new si(e, t).parse();
3644
3644
  if (r.err) {
3645
- var n = SyntaxError(x[r.err.kind]);
3645
+ var n = SyntaxError(E[r.err.kind]);
3646
3646
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3647
3647
  }
3648
- return t?.captureLocation || ct(r.val), r.val;
3648
+ return t?.captureLocation || ht(r.val), r.val;
3649
3649
  }
3650
- var be;
3650
+ var me;
3651
3651
  (function(e) {
3652
3652
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3653
- })(be || (be = {}));
3654
- var ke = (
3653
+ })(me || (me = {}));
3654
+ var Ge = (
3655
3655
  /** @class */
3656
3656
  function(e) {
3657
- Z(t, e);
3657
+ J(t, e);
3658
3658
  function t(r, n, i) {
3659
3659
  var o = e.call(this, r) || this;
3660
3660
  return o.code = n, o.originalMessage = i, o;
@@ -3663,51 +3663,51 @@ var ke = (
3663
3663
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3664
3664
  }, t;
3665
3665
  }(Error)
3666
- ), Rt = (
3666
+ ), Mt = (
3667
3667
  /** @class */
3668
3668
  function(e) {
3669
- Z(t, e);
3669
+ J(t, e);
3670
3670
  function t(r, n, i, o) {
3671
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), be.INVALID_VALUE, o) || this;
3671
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), me.INVALID_VALUE, o) || this;
3672
3672
  }
3673
3673
  return t;
3674
- }(ke)
3675
- ), fi = (
3674
+ }(Ge)
3675
+ ), ci = (
3676
3676
  /** @class */
3677
3677
  function(e) {
3678
- Z(t, e);
3678
+ J(t, e);
3679
3679
  function t(r, n, i) {
3680
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), be.INVALID_VALUE, i) || this;
3680
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), me.INVALID_VALUE, i) || this;
3681
3681
  }
3682
3682
  return t;
3683
- }(ke)
3684
- ), pi = (
3683
+ }(Ge)
3684
+ ), fi = (
3685
3685
  /** @class */
3686
3686
  function(e) {
3687
- Z(t, e);
3687
+ J(t, e);
3688
3688
  function t(r, n) {
3689
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), be.MISSING_VALUE, n) || this;
3689
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), me.MISSING_VALUE, n) || this;
3690
3690
  }
3691
3691
  return t;
3692
- }(ke)
3693
- ), R;
3692
+ }(Ge)
3693
+ ), D;
3694
3694
  (function(e) {
3695
3695
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3696
- })(R || (R = {}));
3696
+ })(D || (D = {}));
3697
3697
  function di(e) {
3698
3698
  return e.length < 2 ? e : e.reduce(function(t, r) {
3699
3699
  var n = t[t.length - 1];
3700
- return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
3700
+ return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
3701
3701
  }, []);
3702
3702
  }
3703
- function mi(e) {
3703
+ function pi(e) {
3704
3704
  return typeof e == "function";
3705
3705
  }
3706
- function Ne(e, t, r, n, i, o, s) {
3706
+ function Le(e, t, r, n, i, o, s) {
3707
3707
  if (e.length === 1 && Ft(e[0]))
3708
3708
  return [
3709
3709
  {
3710
- type: R.literal,
3710
+ type: D.literal,
3711
3711
  value: e[0].value
3712
3712
  }
3713
3713
  ];
@@ -3715,103 +3715,103 @@ function Ne(e, t, r, n, i, o, s) {
3715
3715
  var u = l[h];
3716
3716
  if (Ft(u)) {
3717
3717
  a.push({
3718
- type: R.literal,
3718
+ type: D.literal,
3719
3719
  value: u.value
3720
3720
  });
3721
3721
  continue;
3722
3722
  }
3723
- if (Rn(u)) {
3723
+ if (Mn(u)) {
3724
3724
  typeof o == "number" && a.push({
3725
- type: R.literal,
3725
+ type: D.literal,
3726
3726
  value: r.getNumberFormat(t).format(o)
3727
3727
  });
3728
3728
  continue;
3729
3729
  }
3730
- var p = u.value;
3731
- if (!(i && p in i))
3732
- throw new pi(p, s);
3733
- var c = i[p];
3734
- if (Mn(u)) {
3730
+ var f = u.value;
3731
+ if (!(i && f in i))
3732
+ throw new fi(f, s);
3733
+ var c = i[f];
3734
+ if (Nn(u)) {
3735
3735
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3736
- type: typeof c == "string" ? R.literal : R.object,
3736
+ type: typeof c == "string" ? D.literal : D.object,
3737
3737
  value: c
3738
3738
  });
3739
3739
  continue;
3740
3740
  }
3741
- if (ur(u)) {
3742
- var m = typeof u.style == "string" ? n.date[u.style] : st(u.style) ? u.style.parsedOptions : void 0;
3741
+ if (lr(u)) {
3742
+ var p = typeof u.style == "string" ? n.date[u.style] : ot(u.style) ? u.style.parsedOptions : void 0;
3743
3743
  a.push({
3744
- type: R.literal,
3745
- value: r.getDateTimeFormat(t, m).format(c)
3744
+ type: D.literal,
3745
+ value: r.getDateTimeFormat(t, p).format(c)
3746
3746
  });
3747
3747
  continue;
3748
3748
  }
3749
- if (hr(u)) {
3750
- var m = typeof u.style == "string" ? n.time[u.style] : st(u.style) ? u.style.parsedOptions : n.time.medium;
3749
+ if (ur(u)) {
3750
+ var p = typeof u.style == "string" ? n.time[u.style] : ot(u.style) ? u.style.parsedOptions : n.time.medium;
3751
3751
  a.push({
3752
- type: R.literal,
3753
- value: r.getDateTimeFormat(t, m).format(c)
3752
+ type: D.literal,
3753
+ value: r.getDateTimeFormat(t, p).format(c)
3754
3754
  });
3755
3755
  continue;
3756
3756
  }
3757
- if (lr(u)) {
3758
- var m = typeof u.style == "string" ? n.number[u.style] : dr(u.style) ? u.style.parsedOptions : void 0;
3759
- m && m.scale && (c = c * (m.scale || 1)), a.push({
3760
- type: R.literal,
3761
- value: r.getNumberFormat(t, m).format(c)
3757
+ if (ar(u)) {
3758
+ var p = typeof u.style == "string" ? n.number[u.style] : dr(u.style) ? u.style.parsedOptions : void 0;
3759
+ p && p.scale && (c = c * (p.scale || 1)), a.push({
3760
+ type: D.literal,
3761
+ value: r.getNumberFormat(t, p).format(c)
3762
3762
  });
3763
3763
  continue;
3764
3764
  }
3765
- if (pr(u)) {
3766
- var b = u.children, _ = u.value, T = i[_];
3767
- if (!mi(T))
3768
- throw new fi(_, "function", s);
3769
- var v = Ne(b, t, r, n, i, o), H = T(v.map(function(L) {
3770
- return L.value;
3765
+ if (fr(u)) {
3766
+ var y = u.children, g = u.value, A = i[g];
3767
+ if (!pi(A))
3768
+ throw new ci(g, "function", s);
3769
+ var w = Le(y, t, r, n, i, o), v = A(w.map(function(N) {
3770
+ return N.value;
3771
3771
  }));
3772
- Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(L) {
3772
+ Array.isArray(v) || (v = [v]), a.push.apply(a, v.map(function(N) {
3773
3773
  return {
3774
- type: typeof L == "string" ? R.literal : R.object,
3775
- value: L
3774
+ type: typeof N == "string" ? D.literal : D.object,
3775
+ value: N
3776
3776
  };
3777
3777
  }));
3778
3778
  }
3779
- if (cr(u)) {
3780
- var E = u.options[c] || u.options.other;
3781
- if (!E)
3782
- throw new Rt(u.value, c, Object.keys(u.options), s);
3783
- a.push.apply(a, Ne(E.value, t, r, n, i));
3779
+ if (hr(u)) {
3780
+ var x = u.options[c] || u.options.other;
3781
+ if (!x)
3782
+ throw new Mt(u.value, c, Object.keys(u.options), s);
3783
+ a.push.apply(a, Le(x.value, t, r, n, i));
3784
3784
  continue;
3785
3785
  }
3786
- if (fr(u)) {
3787
- var E = u.options["=".concat(c)];
3788
- if (!E) {
3786
+ if (cr(u)) {
3787
+ var x = u.options["=".concat(c)];
3788
+ if (!x) {
3789
3789
  if (!Intl.PluralRules)
3790
- throw new ke(`Intl.PluralRules is not available in this environment.
3790
+ throw new Ge(`Intl.PluralRules is not available in this environment.
3791
3791
  Try polyfilling it using "@formatjs/intl-pluralrules"
3792
- `, be.MISSING_INTL_API, s);
3793
- var N = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
3794
- E = u.options[N] || u.options.other;
3792
+ `, me.MISSING_INTL_API, s);
3793
+ var L = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
3794
+ x = u.options[L] || u.options.other;
3795
3795
  }
3796
- if (!E)
3797
- throw new Rt(u.value, c, Object.keys(u.options), s);
3798
- a.push.apply(a, Ne(E.value, t, r, n, i, c - (u.offset || 0)));
3796
+ if (!x)
3797
+ throw new Mt(u.value, c, Object.keys(u.options), s);
3798
+ a.push.apply(a, Le(x.value, t, r, n, i, c - (u.offset || 0)));
3799
3799
  continue;
3800
3800
  }
3801
3801
  }
3802
3802
  return di(a);
3803
3803
  }
3804
- function bi(e, t) {
3805
- return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3806
- return r[n] = S(S({}, e[n]), t[n] || {}), r;
3804
+ function mi(e, t) {
3805
+ return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3806
+ return r[n] = P(P({}, e[n]), t[n] || {}), r;
3807
3807
  }, {})) : e;
3808
3808
  }
3809
- function gi(e, t) {
3809
+ function bi(e, t) {
3810
3810
  return t ? Object.keys(e).reduce(function(r, n) {
3811
- return r[n] = bi(e[n], t[n]), r;
3812
- }, S({}, e)) : e;
3811
+ return r[n] = mi(e[n], t[n]), r;
3812
+ }, P({}, e)) : e;
3813
3813
  }
3814
- function Qe(e) {
3814
+ function Je(e) {
3815
3815
  return {
3816
3816
  create: function() {
3817
3817
  return {
@@ -3825,35 +3825,35 @@ function Qe(e) {
3825
3825
  }
3826
3826
  };
3827
3827
  }
3828
- function vi(e) {
3828
+ function gi(e) {
3829
3829
  return e === void 0 && (e = {
3830
3830
  number: {},
3831
3831
  dateTime: {},
3832
3832
  pluralRules: {}
3833
3833
  }), {
3834
- getNumberFormat: ze(function() {
3834
+ getNumberFormat: We(function() {
3835
3835
  for (var t, r = [], n = 0; n < arguments.length; n++)
3836
3836
  r[n] = arguments[n];
3837
- return new ((t = Intl.NumberFormat).bind.apply(t, pe([void 0], r, !1)))();
3837
+ return new ((t = Intl.NumberFormat).bind.apply(t, fe([void 0], r, !1)))();
3838
3838
  }, {
3839
- cache: Qe(e.number),
3840
- strategy: Ze.variadic
3839
+ cache: Je(e.number),
3840
+ strategy: ze.variadic
3841
3841
  }),
3842
- getDateTimeFormat: ze(function() {
3842
+ getDateTimeFormat: We(function() {
3843
3843
  for (var t, r = [], n = 0; n < arguments.length; n++)
3844
3844
  r[n] = arguments[n];
3845
- return new ((t = Intl.DateTimeFormat).bind.apply(t, pe([void 0], r, !1)))();
3845
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, fe([void 0], r, !1)))();
3846
3846
  }, {
3847
- cache: Qe(e.dateTime),
3848
- strategy: Ze.variadic
3847
+ cache: Je(e.dateTime),
3848
+ strategy: ze.variadic
3849
3849
  }),
3850
- getPluralRules: ze(function() {
3850
+ getPluralRules: We(function() {
3851
3851
  for (var t, r = [], n = 0; n < arguments.length; n++)
3852
3852
  r[n] = arguments[n];
3853
- return new ((t = Intl.PluralRules).bind.apply(t, pe([void 0], r, !1)))();
3853
+ return new ((t = Intl.PluralRules).bind.apply(t, fe([void 0], r, !1)))();
3854
3854
  }, {
3855
- cache: Qe(e.pluralRules),
3856
- strategy: Ze.variadic
3855
+ cache: Je(e.pluralRules),
3856
+ strategy: ze.variadic
3857
3857
  })
3858
3858
  };
3859
3859
  }
@@ -3871,12 +3871,12 @@ var yi = (
3871
3871
  var l = o.formatToParts(h);
3872
3872
  if (l.length === 1)
3873
3873
  return l[0].value;
3874
- var u = l.reduce(function(p, c) {
3875
- return !p.length || c.type !== R.literal || typeof p[p.length - 1] != "string" ? p.push(c.value) : p[p.length - 1] += c.value, p;
3874
+ var u = l.reduce(function(f, c) {
3875
+ return !f.length || c.type !== D.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3876
3876
  }, []);
3877
3877
  return u.length <= 1 ? u[0] || "" : u;
3878
3878
  }, this.formatToParts = function(h) {
3879
- return Ne(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3879
+ return Le(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3880
3880
  }, this.resolvedOptions = function() {
3881
3881
  var h;
3882
3882
  return {
@@ -3889,13 +3889,13 @@ var yi = (
3889
3889
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3890
3890
  var s = i || {};
3891
3891
  s.formatters;
3892
- var a = Qr(s, ["formatters"]);
3893
- this.ast = e.__parse(t, S(S({}, a), { locale: this.resolvedLocale }));
3892
+ var a = Jr(s, ["formatters"]);
3893
+ this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
3894
3894
  } else
3895
3895
  this.ast = t;
3896
3896
  if (!Array.isArray(this.ast))
3897
3897
  throw new TypeError("A message must be provided as a String or AST.");
3898
- this.formats = gi(e.formats, n), this.formatters = i && i.formatters || vi(this.formatterCache);
3898
+ this.formats = bi(e.formats, n), this.formatters = i && i.formatters || gi(this.formatterCache);
3899
3899
  }
3900
3900
  return Object.defineProperty(e, "defaultLocale", {
3901
3901
  get: function() {
@@ -3908,7 +3908,7 @@ var yi = (
3908
3908
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3909
3909
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3910
3910
  }
3911
- }, e.__parse = ci, e.formats = {
3911
+ }, e.__parse = hi, e.formats = {
3912
3912
  number: {
3913
3913
  integer: {
3914
3914
  maximumFractionDigits: 0
@@ -3969,7 +3969,7 @@ var yi = (
3969
3969
  }, e;
3970
3970
  }()
3971
3971
  );
3972
- function _i(e, t) {
3972
+ function vi(e, t) {
3973
3973
  if (t == null)
3974
3974
  return;
3975
3975
  if (t in e)
@@ -3990,92 +3990,92 @@ function _i(e, t) {
3990
3990
  n = void 0;
3991
3991
  return n;
3992
3992
  }
3993
- const Q = {}, xi = (e, t, r) => r && (t in Q || (Q[t] = {}), e in Q[t] || (Q[t][e] = r), r), Er = (e, t) => {
3993
+ const Q = {}, _i = (e, t, r) => r && (t in Q || (Q[t] = {}), e in Q[t] || (Q[t][e] = r), r), xr = (e, t) => {
3994
3994
  if (t == null)
3995
3995
  return;
3996
3996
  if (t in Q && e in Q[t])
3997
3997
  return Q[t][e];
3998
- const r = je(t);
3998
+ const r = ke(t);
3999
3999
  for (let n = 0; n < r.length; n++) {
4000
- const i = r[n], o = wi(i, e);
4000
+ const i = r[n], o = Ei(i, e);
4001
4001
  if (o)
4002
- return xi(e, t, o);
4002
+ return _i(e, t, o);
4003
4003
  }
4004
4004
  };
4005
- let mt;
4006
- const ye = Ge({});
4007
- function Ei(e) {
4008
- return mt[e] || null;
4005
+ let pt;
4006
+ const ye = $e({});
4007
+ function xi(e) {
4008
+ return pt[e] || null;
4009
4009
  }
4010
- function wr(e) {
4011
- return e in mt;
4010
+ function Er(e) {
4011
+ return e in pt;
4012
4012
  }
4013
- function wi(e, t) {
4014
- if (!wr(e))
4013
+ function Ei(e, t) {
4014
+ if (!Er(e))
4015
4015
  return null;
4016
- const r = Ei(e);
4017
- return _i(r, t);
4016
+ const r = xi(e);
4017
+ return vi(r, t);
4018
4018
  }
4019
- function Si(e) {
4019
+ function wi(e) {
4020
4020
  if (e == null)
4021
4021
  return;
4022
- const t = je(e);
4022
+ const t = ke(e);
4023
4023
  for (let r = 0; r < t.length; r++) {
4024
4024
  const n = t[r];
4025
- if (wr(n))
4025
+ if (Er(n))
4026
4026
  return n;
4027
4027
  }
4028
4028
  }
4029
- function Sr(e, ...t) {
4030
- delete Q[e], ye.update((r) => (r[e] = An.all([r[e] || {}, ...t]), r));
4029
+ function wr(e, ...t) {
4030
+ delete Q[e], ye.update((r) => (r[e] = Pn.all([r[e] || {}, ...t]), r));
4031
4031
  }
4032
- ve(
4032
+ ge(
4033
4033
  [ye],
4034
4034
  ([e]) => Object.keys(e)
4035
4035
  );
4036
- ye.subscribe((e) => mt = e);
4037
- const Me = {};
4038
- function Ti(e, t) {
4039
- Me[e].delete(t), Me[e].size === 0 && delete Me[e];
4036
+ ye.subscribe((e) => pt = e);
4037
+ const Ne = {};
4038
+ function Si(e, t) {
4039
+ Ne[e].delete(t), Ne[e].size === 0 && delete Ne[e];
4040
4040
  }
4041
- function Tr(e) {
4042
- return Me[e];
4041
+ function Sr(e) {
4042
+ return Ne[e];
4043
4043
  }
4044
- function Hi(e) {
4045
- return je(e).map((t) => {
4046
- const r = Tr(t);
4044
+ function Ti(e) {
4045
+ return ke(e).map((t) => {
4046
+ const r = Sr(t);
4047
4047
  return [t, r ? [...r] : []];
4048
4048
  }).filter(([, t]) => t.length > 0);
4049
4049
  }
4050
- function ft(e) {
4051
- return e == null ? !1 : je(e).some(
4050
+ function ct(e) {
4051
+ return e == null ? !1 : ke(e).some(
4052
4052
  (t) => {
4053
4053
  var r;
4054
- return (r = Tr(t)) == null ? void 0 : r.size;
4054
+ return (r = Sr(t)) == null ? void 0 : r.size;
4055
4055
  }
4056
4056
  );
4057
4057
  }
4058
- function Pi(e, t) {
4058
+ function Hi(e, t) {
4059
4059
  return Promise.all(
4060
- t.map((n) => (Ti(e, n), n().then((i) => i.default || i)))
4061
- ).then((n) => Sr(e, ...n));
4060
+ t.map((n) => (Si(e, n), n().then((i) => i.default || i)))
4061
+ ).then((n) => wr(e, ...n));
4062
4062
  }
4063
4063
  const xe = {};
4064
- function Hr(e) {
4065
- if (!ft(e))
4064
+ function Tr(e) {
4065
+ if (!ct(e))
4066
4066
  return e in xe ? xe[e] : Promise.resolve();
4067
- const t = Hi(e);
4067
+ const t = Ti(e);
4068
4068
  return xe[e] = Promise.all(
4069
4069
  t.map(
4070
- ([r, n]) => Pi(r, n)
4070
+ ([r, n]) => Hi(r, n)
4071
4071
  )
4072
4072
  ).then(() => {
4073
- if (ft(e))
4074
- return Hr(e);
4073
+ if (ct(e))
4074
+ return Tr(e);
4075
4075
  delete xe[e];
4076
4076
  }), xe[e];
4077
4077
  }
4078
- const Ai = {
4078
+ const Pi = {
4079
4079
  number: {
4080
4080
  scientific: { notation: "scientific" },
4081
4081
  engineering: { notation: "engineering" },
@@ -4104,176 +4104,176 @@ const Ai = {
4104
4104
  timeZoneName: "short"
4105
4105
  }
4106
4106
  }
4107
- }, Ci = {
4107
+ }, Ai = {
4108
4108
  fallbackLocale: null,
4109
4109
  loadingDelay: 200,
4110
- formats: Ai,
4110
+ formats: Pi,
4111
4111
  warnOnMissingMessages: !0,
4112
4112
  handleMissingMessage: void 0,
4113
4113
  ignoreTag: !0
4114
- }, Fi = Ci;
4115
- function ge() {
4114
+ }, Fi = Ai;
4115
+ function be() {
4116
4116
  return Fi;
4117
4117
  }
4118
- const qe = Ge(!1);
4119
- var Bi = Object.defineProperty, Oi = Object.defineProperties, Ii = Object.getOwnPropertyDescriptors, $t = Object.getOwnPropertySymbols, Li = Object.prototype.hasOwnProperty, Ni = Object.prototype.propertyIsEnumerable, Dt = (e, t, r) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mi = (e, t) => {
4118
+ const Qe = $e(!1);
4119
+ var Ci = Object.defineProperty, Bi = Object.defineProperties, Oi = Object.getOwnPropertyDescriptors, Rt = Object.getOwnPropertySymbols, Ii = Object.prototype.hasOwnProperty, Li = Object.prototype.propertyIsEnumerable, Dt = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ni = (e, t) => {
4120
4120
  for (var r in t || (t = {}))
4121
- Li.call(t, r) && Dt(e, r, t[r]);
4122
- if ($t)
4123
- for (var r of $t(t))
4124
- Ni.call(t, r) && Dt(e, r, t[r]);
4121
+ Ii.call(t, r) && Dt(e, r, t[r]);
4122
+ if (Rt)
4123
+ for (var r of Rt(t))
4124
+ Li.call(t, r) && Dt(e, r, t[r]);
4125
4125
  return e;
4126
- }, Ri = (e, t) => Oi(e, Ii(t));
4127
- let pt;
4128
- const $e = Ge(null);
4126
+ }, Mi = (e, t) => Bi(e, Oi(t));
4127
+ let ft;
4128
+ const Re = $e(null);
4129
4129
  function Ut(e) {
4130
4130
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4131
4131
  }
4132
- function je(e, t = ge().fallbackLocale) {
4132
+ function ke(e, t = be().fallbackLocale) {
4133
4133
  const r = Ut(e);
4134
4134
  return t ? [.../* @__PURE__ */ new Set([...r, ...Ut(t)])] : r;
4135
4135
  }
4136
- function re() {
4137
- return pt ?? void 0;
4136
+ function ie() {
4137
+ return ft ?? void 0;
4138
4138
  }
4139
- $e.subscribe((e) => {
4140
- pt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4139
+ Re.subscribe((e) => {
4140
+ ft = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4141
4141
  });
4142
- const $i = (e) => {
4143
- if (e && Si(e) && ft(e)) {
4144
- const { loadingDelay: t } = ge();
4142
+ const Ri = (e) => {
4143
+ if (e && wi(e) && ct(e)) {
4144
+ const { loadingDelay: t } = be();
4145
4145
  let r;
4146
- return typeof window < "u" && re() != null && t ? r = window.setTimeout(
4147
- () => qe.set(!0),
4146
+ return typeof window < "u" && ie() != null && t ? r = window.setTimeout(
4147
+ () => Qe.set(!0),
4148
4148
  t
4149
- ) : qe.set(!0), Hr(e).then(() => {
4150
- $e.set(e);
4149
+ ) : Qe.set(!0), Tr(e).then(() => {
4150
+ Re.set(e);
4151
4151
  }).finally(() => {
4152
- clearTimeout(r), qe.set(!1);
4152
+ clearTimeout(r), Qe.set(!1);
4153
4153
  });
4154
4154
  }
4155
- return $e.set(e);
4156
- }, te = Ri(Mi({}, $e), {
4157
- set: $i
4158
- }), Ve = (e) => {
4155
+ return Re.set(e);
4156
+ }, ne = Mi(Ni({}, Re), {
4157
+ set: Ri
4158
+ }), je = (e) => {
4159
4159
  const t = /* @__PURE__ */ Object.create(null);
4160
4160
  return (n) => {
4161
4161
  const i = JSON.stringify(n);
4162
4162
  return i in t ? t[i] : t[i] = e(n);
4163
4163
  };
4164
4164
  };
4165
- var Di = Object.defineProperty, De = Object.getOwnPropertySymbols, Pr = Object.prototype.hasOwnProperty, Ar = Object.prototype.propertyIsEnumerable, Gt = (e, t, r) => t in e ? Di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bt = (e, t) => {
4165
+ var Di = Object.defineProperty, De = Object.getOwnPropertySymbols, Hr = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? Di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mt = (e, t) => {
4166
4166
  for (var r in t || (t = {}))
4167
- Pr.call(t, r) && Gt(e, r, t[r]);
4167
+ Hr.call(t, r) && $t(e, r, t[r]);
4168
4168
  if (De)
4169
4169
  for (var r of De(t))
4170
- Ar.call(t, r) && Gt(e, r, t[r]);
4170
+ Pr.call(t, r) && $t(e, r, t[r]);
4171
4171
  return e;
4172
- }, _e = (e, t) => {
4172
+ }, ve = (e, t) => {
4173
4173
  var r = {};
4174
4174
  for (var n in e)
4175
- Pr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4175
+ Hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4176
4176
  if (e != null && De)
4177
4177
  for (var n of De(e))
4178
- t.indexOf(n) < 0 && Ar.call(e, n) && (r[n] = e[n]);
4178
+ t.indexOf(n) < 0 && Pr.call(e, n) && (r[n] = e[n]);
4179
4179
  return r;
4180
4180
  };
4181
4181
  const He = (e, t) => {
4182
- const { formats: r } = ge();
4182
+ const { formats: r } = be();
4183
4183
  if (e in r && t in r[e])
4184
4184
  return r[e][t];
4185
4185
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4186
- }, Ui = Ve(
4186
+ }, Ui = je(
4187
4187
  (e) => {
4188
- var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
4188
+ var t = e, { locale: r, format: n } = t, i = ve(t, ["locale", "format"]);
4189
4189
  if (r == null)
4190
4190
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4191
4191
  return n && (i = He("number", n)), new Intl.NumberFormat(r, i);
4192
4192
  }
4193
- ), Gi = Ve(
4193
+ ), $i = je(
4194
4194
  (e) => {
4195
- var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
4195
+ var t = e, { locale: r, format: n } = t, i = ve(t, ["locale", "format"]);
4196
4196
  if (r == null)
4197
4197
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4198
4198
  return n ? i = He("date", n) : Object.keys(i).length === 0 && (i = He("date", "short")), new Intl.DateTimeFormat(r, i);
4199
4199
  }
4200
- ), ki = Ve(
4200
+ ), Gi = je(
4201
4201
  (e) => {
4202
- var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
4202
+ var t = e, { locale: r, format: n } = t, i = ve(t, ["locale", "format"]);
4203
4203
  if (r == null)
4204
4204
  throw new Error(
4205
4205
  '[svelte-i18n] A "locale" must be set to format time values'
4206
4206
  );
4207
4207
  return n ? i = He("time", n) : Object.keys(i).length === 0 && (i = He("time", "short")), new Intl.DateTimeFormat(r, i);
4208
4208
  }
4209
- ), ji = (e = {}) => {
4209
+ ), ki = (e = {}) => {
4210
4210
  var t = e, {
4211
- locale: r = re()
4212
- } = t, n = _e(t, [
4211
+ locale: r = ie()
4212
+ } = t, n = ve(t, [
4213
4213
  "locale"
4214
4214
  ]);
4215
- return Ui(bt({ locale: r }, n));
4216
- }, Vi = (e = {}) => {
4215
+ return Ui(mt({ locale: r }, n));
4216
+ }, ji = (e = {}) => {
4217
4217
  var t = e, {
4218
- locale: r = re()
4219
- } = t, n = _e(t, [
4218
+ locale: r = ie()
4219
+ } = t, n = ve(t, [
4220
4220
  "locale"
4221
4221
  ]);
4222
- return Gi(bt({ locale: r }, n));
4223
- }, Xi = (e = {}) => {
4222
+ return $i(mt({ locale: r }, n));
4223
+ }, Vi = (e = {}) => {
4224
4224
  var t = e, {
4225
- locale: r = re()
4226
- } = t, n = _e(t, [
4225
+ locale: r = ie()
4226
+ } = t, n = ve(t, [
4227
4227
  "locale"
4228
4228
  ]);
4229
- return ki(bt({ locale: r }, n));
4230
- }, Wi = Ve(
4229
+ return Gi(mt({ locale: r }, n));
4230
+ }, Xi = je(
4231
4231
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4232
- (e, t = re()) => new yi(e, t, ge().formats, {
4233
- ignoreTag: ge().ignoreTag
4232
+ (e, t = ie()) => new yi(e, t, be().formats, {
4233
+ ignoreTag: be().ignoreTag
4234
4234
  })
4235
- ), zi = (e, t = {}) => {
4235
+ ), Wi = (e, t = {}) => {
4236
4236
  var r, n, i, o;
4237
4237
  let s = t;
4238
4238
  typeof e == "object" && (s = e, e = s.id);
4239
4239
  const {
4240
4240
  values: a,
4241
- locale: h = re(),
4241
+ locale: h = ie(),
4242
4242
  default: l
4243
4243
  } = s;
4244
4244
  if (h == null)
4245
4245
  throw new Error(
4246
4246
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4247
4247
  );
4248
- let u = Er(e, h);
4248
+ let u = xr(e, h);
4249
4249
  if (!u)
4250
- u = (o = (i = (n = (r = ge()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
4250
+ u = (o = (i = (n = (r = be()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
4251
4251
  else if (typeof u != "string")
4252
4252
  return console.warn(
4253
4253
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4254
4254
  ), u;
4255
4255
  if (!a)
4256
4256
  return u;
4257
- let p = u;
4257
+ let f = u;
4258
4258
  try {
4259
- p = Wi(u, h).format(a);
4259
+ f = Xi(u, h).format(a);
4260
4260
  } catch (c) {
4261
4261
  c instanceof Error && console.warn(
4262
4262
  `[svelte-i18n] Message "${e}" has syntax error:`,
4263
4263
  c.message
4264
4264
  );
4265
4265
  }
4266
- return p;
4267
- }, Zi = (e, t) => Xi(t).format(e), Ji = (e, t) => Vi(t).format(e), Qi = (e, t) => ji(t).format(e), qi = (e, t = re()) => Er(e, t), Yi = ve([te, ye], () => zi);
4268
- ve([te], () => Zi);
4269
- ve([te], () => Ji);
4270
- ve([te], () => Qi);
4271
- ve([te, ye], () => qi);
4272
- window.emWidgets = { topic: cn };
4273
- const Ki = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), eo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4274
- function _o(e, t) {
4266
+ return f;
4267
+ }, zi = (e, t) => Vi(t).format(e), Zi = (e, t) => ji(t).format(e), Ji = (e, t) => ki(t).format(e), Qi = (e, t = ie()) => xr(e, t), qi = ge([ne, ye], () => Wi);
4268
+ ge([ne], () => zi);
4269
+ ge([ne], () => Zi);
4270
+ ge([ne], () => Ji);
4271
+ ge([ne, ye], () => Qi);
4272
+ window.emWidgets = { topic: hn };
4273
+ const Yi = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), Ki = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4274
+ function Eo(e, t) {
4275
4275
  const r = window.navigator.userAgent;
4276
- return Ki(r) ? t = e.filter((n) => {
4276
+ return Yi(r) ? t = e.filter((n) => {
4277
4277
  if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
4278
4278
  return n;
4279
4279
  }) : t = e.filter((n) => {
@@ -4281,15 +4281,38 @@ function _o(e, t) {
4281
4281
  return n;
4282
4282
  }), t;
4283
4283
  }
4284
- function to({ withLocale: e, translations: t }) {
4285
- te.subscribe((r) => {
4286
- r == null && (ye.set(t), te.set(e));
4284
+ function eo(e, t) {
4285
+ if (e) {
4286
+ const r = document.createElement("style");
4287
+ r.innerHTML = t, e.appendChild(r);
4288
+ }
4289
+ }
4290
+ function to(e, t) {
4291
+ const r = new URL(t);
4292
+ fetch(r.href).then((n) => n.text()).then((n) => {
4293
+ const i = document.createElement("style");
4294
+ i.innerHTML = n, e && e.appendChild(i);
4295
+ }).catch((n) => {
4296
+ console.error("There was an error while trying to load client styling from URL", n);
4297
+ });
4298
+ }
4299
+ function ro(e, t, r) {
4300
+ if (window.emMessageBus) {
4301
+ const n = document.createElement("style");
4302
+ window.emMessageBus.subscribe(t, (i) => {
4303
+ n.innerHTML = i, e && e.appendChild(n);
4304
+ });
4305
+ }
4306
+ }
4307
+ function no({ withLocale: e, translations: t }) {
4308
+ ne.subscribe((r) => {
4309
+ r == null && (ye.set(t), ne.set(e));
4287
4310
  });
4288
4311
  }
4289
- function kt(e, t) {
4290
- Sr(e, t);
4312
+ function Gt(e, t) {
4313
+ wr(e, t);
4291
4314
  }
4292
- const jt = {
4315
+ const kt = {
4293
4316
  en: {
4294
4317
  providers: "Providers:",
4295
4318
  filterby: "Filter by:",
@@ -4399,123 +4422,123 @@ const jt = {
4399
4422
  clear: "Clear all"
4400
4423
  }
4401
4424
  };
4402
- function ro(e) {
4403
- Or(e, "svelte-1v7rv6n", ':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}');
4425
+ function io(e) {
4426
+ Br(e, "svelte-1v7rv6n", ':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}');
4404
4427
  }
4405
- function Vt(e, t, r) {
4428
+ function jt(e, t, r) {
4406
4429
  const n = e.slice();
4407
4430
  return n[36] = t[r], n[37] = t, n[38] = r, n;
4408
4431
  }
4409
- function no(e) {
4432
+ function oo(e) {
4410
4433
  let t, r, n, i, o, s, a, h, l = (
4411
4434
  /*$_*/
4412
4435
  e[11]("filterby") + ""
4413
- ), u, p, c, m, b = (
4436
+ ), u, f, c, p, y = (
4414
4437
  /*$_*/
4415
4438
  e[11]("providers") + ""
4416
- ), _, T, v, H, E, N, L, O, A, I, M, W, j, ne = (
4439
+ ), g, A, w, v, x, L, N, R, S, O, M, V, z, K = (
4417
4440
  /*$_*/
4418
4441
  e[11]("clear") + ""
4419
- ), ie, K, oe, ee, se, Pe;
4420
- function Ae(d, C) {
4442
+ ), oe, se, ee, te, _e, Pe;
4443
+ function Ae(b, C) {
4421
4444
  return (
4422
4445
  /*fullSelection*/
4423
- d[7] ? so : oo
4446
+ b[7] ? lo : ao
4424
4447
  );
4425
4448
  }
4426
- let ae = Ae(e), $ = ae(e), J = xt(
4449
+ let ae = Ae(e), $ = ae(e), d = _t(
4427
4450
  /*vendorArray*/
4428
4451
  e[5]
4429
- ), f = [];
4430
- for (let d = 0; d < J.length; d += 1)
4431
- f[d] = Xt(Vt(e, J, d));
4452
+ ), H = [];
4453
+ for (let b = 0; b < d.length; b += 1)
4454
+ H[b] = Vt(jt(e, d, b));
4432
4455
  return {
4433
4456
  c() {
4434
- t = F("div"), r = F("div"), n = F("div"), i = Ee("svg"), o = Ee("path"), s = V(), a = F("div"), h = F("span"), u = U(l), p = V(), c = F("div"), m = F("span"), _ = U(b), T = V(), $.c(), v = V(), H = F("span"), E = Ee("svg"), N = Ee("path"), A = V(), I = F("div"), M = F("ul");
4435
- for (let d = 0; d < f.length; d += 1)
4436
- f[d].c();
4437
- W = V(), j = F("button"), ie = U(ne), g(o, "id", "noun_filter_736223"), g(o, "d", "M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"), g(o, "transform", "translate(-5 -6.2)"), g(o, "fill", "#fff"), g(i, "xmlns", "http://www.w3.org/2000/svg"), g(i, "width", "16"), g(i, "height", "16"), g(i, "viewBox", "0 0 16 16"), g(h, "class", "FilterName"), g(c, "class", "FilterValueContainer"), g(a, "class", "FilterTextContainer"), g(n, "class", "FilterMainArea"), g(N, "id", "arrow"), g(N, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), g(N, "transform", "translate(-274.511 -441.088)"), g(N, "fill", "#d1d1d1"), g(E, "xmlns", "http://www.w3.org/2000/svg"), g(E, "width", "14"), g(E, "height", "6.835"), g(E, "viewBox", "0 0 14 6.835"), g(H, "class", L = "TriangleInactive " + /*isFilterActive*/
4438
- (e[4] ? "TriangleActive" : "")), g(r, "class", O = "FilterSelector " + /*isFilterActive*/
4439
- (e[4] ? "FilterSelectorOpen" : "")), g(M, "class", "FilterDropdown"), g(j, "class", "ClearFilters"), j.disabled = K = /*fullSelection*/
4457
+ t = F("div"), r = F("div"), n = F("div"), i = Ee("svg"), o = Ee("path"), s = X(), a = F("div"), h = F("span"), u = G(l), f = X(), c = F("div"), p = F("span"), g = G(y), A = X(), $.c(), w = X(), v = F("span"), x = Ee("svg"), L = Ee("path"), S = X(), O = F("div"), M = F("ul");
4458
+ for (let b = 0; b < H.length; b += 1)
4459
+ H[b].c();
4460
+ V = X(), z = F("button"), oe = G(K), m(o, "id", "noun_filter_736223"), m(o, "d", "M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"), m(o, "transform", "translate(-5 -6.2)"), m(o, "fill", "#fff"), m(i, "xmlns", "http://www.w3.org/2000/svg"), m(i, "width", "16"), m(i, "height", "16"), m(i, "viewBox", "0 0 16 16"), m(h, "class", "FilterName"), m(c, "class", "FilterValueContainer"), m(a, "class", "FilterTextContainer"), m(n, "class", "FilterMainArea"), m(L, "id", "arrow"), m(L, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), m(L, "transform", "translate(-274.511 -441.088)"), m(L, "fill", "#d1d1d1"), m(x, "xmlns", "http://www.w3.org/2000/svg"), m(x, "width", "14"), m(x, "height", "6.835"), m(x, "viewBox", "0 0 14 6.835"), m(v, "class", N = "TriangleInactive " + /*isFilterActive*/
4461
+ (e[4] ? "TriangleActive" : "")), m(r, "class", R = "FilterSelector " + /*isFilterActive*/
4462
+ (e[4] ? "FilterSelectorOpen" : "")), m(M, "class", "FilterDropdown"), m(z, "class", "ClearFilters"), z.disabled = se = /*fullSelection*/
4440
4463
  e[7] && /*selectedVendorArray*/
4441
4464
  e[6].length != /*vendorArray*/
4442
- e[5].length, g(I, "class", oe = "FilterDropdownContainer " + /*isFilterActive*/
4443
- (e[4] ? "FilterOpen" : "")), g(t, "class", ee = "FilterContainer " + /*addfilterselector*/
4465
+ e[5].length, m(O, "class", ee = "FilterDropdownContainer " + /*isFilterActive*/
4466
+ (e[4] ? "FilterOpen" : "")), m(t, "class", te = "FilterContainer " + /*addfilterselector*/
4444
4467
  (e[0] == "true" && /*addsortingselector*/
4445
4468
  e[1] == "true" ? "FilerContainerSplit" : ""));
4446
4469
  },
4447
- m(d, C) {
4448
- X(d, t, C), y(t, r), y(r, n), y(n, i), y(i, o), y(n, s), y(n, a), y(a, h), y(h, u), y(a, p), y(a, c), y(c, m), y(m, _), y(c, T), $.m(c, null), y(r, v), y(r, H), y(H, E), y(E, N), y(t, A), y(t, I), y(I, M);
4449
- for (let P = 0; P < f.length; P += 1)
4450
- f[P] && f[P].m(M, null);
4451
- y(I, W), y(I, j), y(j, ie), se || (Pe = [
4452
- Re(
4470
+ m(b, C) {
4471
+ W(b, t, C), _(t, r), _(r, n), _(n, i), _(i, o), _(n, s), _(n, a), _(a, h), _(h, u), _(a, f), _(a, c), _(c, p), _(p, g), _(c, A), $.m(c, null), _(r, w), _(r, v), _(v, x), _(x, L), _(t, S), _(t, O), _(O, M);
4472
+ for (let I = 0; I < H.length; I += 1)
4473
+ H[I] && H[I].m(M, null);
4474
+ _(O, V), _(O, z), _(z, oe), _e || (Pe = [
4475
+ Me(
4453
4476
  r,
4454
4477
  "click",
4455
4478
  /*click_handler*/
4456
- e[22]
4479
+ e[23]
4457
4480
  ),
4458
- Re(
4459
- j,
4481
+ Me(
4482
+ z,
4460
4483
  "click",
4461
4484
  /*click_handler_2*/
4462
- e[25]
4485
+ e[26]
4463
4486
  )
4464
- ], se = !0);
4487
+ ], _e = !0);
4465
4488
  },
4466
- p(d, C) {
4489
+ p(b, C) {
4467
4490
  if (C[0] & /*$_*/
4468
4491
  2048 && l !== (l = /*$_*/
4469
- d[11]("filterby") + "") && q(u, l), C[0] & /*$_*/
4470
- 2048 && b !== (b = /*$_*/
4471
- d[11]("providers") + "") && q(_, b), ae === (ae = Ae(d)) && $ ? $.p(d, C) : ($.d(1), $ = ae(d), $ && ($.c(), $.m(c, null))), C[0] & /*isFilterActive*/
4472
- 16 && L !== (L = "TriangleInactive " + /*isFilterActive*/
4473
- (d[4] ? "TriangleActive" : "")) && g(H, "class", L), C[0] & /*isFilterActive*/
4474
- 16 && O !== (O = "FilterSelector " + /*isFilterActive*/
4475
- (d[4] ? "FilterSelectorOpen" : "")) && g(r, "class", O), C[0] & /*filterbylogo, vendorArray, filterByVendors*/
4492
+ b[11]("filterby") + "") && q(u, l), C[0] & /*$_*/
4493
+ 2048 && y !== (y = /*$_*/
4494
+ b[11]("providers") + "") && q(g, y), ae === (ae = Ae(b)) && $ ? $.p(b, C) : ($.d(1), $ = ae(b), $ && ($.c(), $.m(c, null))), C[0] & /*isFilterActive*/
4495
+ 16 && N !== (N = "TriangleInactive " + /*isFilterActive*/
4496
+ (b[4] ? "TriangleActive" : "")) && m(v, "class", N), C[0] & /*isFilterActive*/
4497
+ 16 && R !== (R = "FilterSelector " + /*isFilterActive*/
4498
+ (b[4] ? "FilterSelectorOpen" : "")) && m(r, "class", R), C[0] & /*filterbylogo, vendorArray, filterByVendors*/
4476
4499
  8228) {
4477
- J = xt(
4500
+ d = _t(
4478
4501
  /*vendorArray*/
4479
- d[5]
4502
+ b[5]
4480
4503
  );
4481
- let P;
4482
- for (P = 0; P < J.length; P += 1) {
4483
- const le = Vt(d, J, P);
4484
- f[P] ? f[P].p(le, C) : (f[P] = Xt(le), f[P].c(), f[P].m(M, null));
4504
+ let I;
4505
+ for (I = 0; I < d.length; I += 1) {
4506
+ const re = jt(b, d, I);
4507
+ H[I] ? H[I].p(re, C) : (H[I] = Vt(re), H[I].c(), H[I].m(M, null));
4485
4508
  }
4486
- for (; P < f.length; P += 1)
4487
- f[P].d(1);
4488
- f.length = J.length;
4509
+ for (; I < H.length; I += 1)
4510
+ H[I].d(1);
4511
+ H.length = d.length;
4489
4512
  }
4490
4513
  C[0] & /*$_*/
4491
- 2048 && ne !== (ne = /*$_*/
4492
- d[11]("clear") + "") && q(ie, ne), C[0] & /*fullSelection, selectedVendorArray, vendorArray*/
4493
- 224 && K !== (K = /*fullSelection*/
4494
- d[7] && /*selectedVendorArray*/
4495
- d[6].length != /*vendorArray*/
4496
- d[5].length) && (j.disabled = K), C[0] & /*isFilterActive*/
4497
- 16 && oe !== (oe = "FilterDropdownContainer " + /*isFilterActive*/
4498
- (d[4] ? "FilterOpen" : "")) && g(I, "class", oe), C[0] & /*addfilterselector, addsortingselector*/
4499
- 3 && ee !== (ee = "FilterContainer " + /*addfilterselector*/
4500
- (d[0] == "true" && /*addsortingselector*/
4501
- d[1] == "true" ? "FilerContainerSplit" : "")) && g(t, "class", ee);
4514
+ 2048 && K !== (K = /*$_*/
4515
+ b[11]("clear") + "") && q(oe, K), C[0] & /*fullSelection, selectedVendorArray, vendorArray*/
4516
+ 224 && se !== (se = /*fullSelection*/
4517
+ b[7] && /*selectedVendorArray*/
4518
+ b[6].length != /*vendorArray*/
4519
+ b[5].length) && (z.disabled = se), C[0] & /*isFilterActive*/
4520
+ 16 && ee !== (ee = "FilterDropdownContainer " + /*isFilterActive*/
4521
+ (b[4] ? "FilterOpen" : "")) && m(O, "class", ee), C[0] & /*addfilterselector, addsortingselector*/
4522
+ 3 && te !== (te = "FilterContainer " + /*addfilterselector*/
4523
+ (b[0] == "true" && /*addsortingselector*/
4524
+ b[1] == "true" ? "FilerContainerSplit" : "")) && m(t, "class", te);
4502
4525
  },
4503
- d(d) {
4504
- d && k(t), $.d(), Nr(f, d), se = !1, Y(Pe);
4526
+ d(b) {
4527
+ b && j(t), $.d(), Lr(H, b), _e = !1, Y(Pe);
4505
4528
  }
4506
4529
  };
4507
4530
  }
4508
- function io(e) {
4531
+ function so(e) {
4509
4532
  let t, r = (
4510
4533
  /*$_*/
4511
4534
  e[11]("500") + ""
4512
4535
  ), n;
4513
4536
  return {
4514
4537
  c() {
4515
- t = F("p"), n = U(r), g(t, "class", "SearchLoading");
4538
+ t = F("p"), n = G(r), m(t, "class", "SearchLoading");
4516
4539
  },
4517
4540
  m(i, o) {
4518
- X(i, t, o), y(t, n);
4541
+ W(i, t, o), _(t, n);
4519
4542
  },
4520
4543
  p(i, o) {
4521
4544
  o[0] & /*$_*/
@@ -4523,21 +4546,21 @@ function io(e) {
4523
4546
  i[11]("500") + "") && q(n, r);
4524
4547
  },
4525
4548
  d(i) {
4526
- i && k(t);
4549
+ i && j(t);
4527
4550
  }
4528
4551
  };
4529
4552
  }
4530
- function oo(e) {
4553
+ function ao(e) {
4531
4554
  let t, r;
4532
4555
  return {
4533
4556
  c() {
4534
- t = F("span"), r = U(
4557
+ t = F("span"), r = G(
4535
4558
  /*selectionNumber*/
4536
4559
  e[8]
4537
- ), g(t, "class", "FilterCounter");
4560
+ ), m(t, "class", "FilterCounter");
4538
4561
  },
4539
4562
  m(n, i) {
4540
- X(n, t, i), y(t, r);
4563
+ W(n, t, i), _(t, r);
4541
4564
  },
4542
4565
  p(n, i) {
4543
4566
  i[0] & /*selectionNumber*/
@@ -4548,21 +4571,21 @@ function oo(e) {
4548
4571
  );
4549
4572
  },
4550
4573
  d(n) {
4551
- n && k(t);
4574
+ n && j(t);
4552
4575
  }
4553
4576
  };
4554
4577
  }
4555
- function so(e) {
4578
+ function lo(e) {
4556
4579
  let t, r = (
4557
4580
  /*$_*/
4558
4581
  e[11]("all") + ""
4559
4582
  ), n;
4560
4583
  return {
4561
4584
  c() {
4562
- t = F("span"), n = U(r), g(t, "class", "FilterCounter");
4585
+ t = F("span"), n = G(r), m(t, "class", "FilterCounter");
4563
4586
  },
4564
4587
  m(i, o) {
4565
- X(i, t, o), y(t, n);
4588
+ W(i, t, o), _(t, n);
4566
4589
  },
4567
4590
  p(i, o) {
4568
4591
  o[0] & /*$_*/
@@ -4570,31 +4593,31 @@ function so(e) {
4570
4593
  i[11]("all") + "") && q(n, r);
4571
4594
  },
4572
4595
  d(i) {
4573
- i && k(t);
4596
+ i && j(t);
4574
4597
  }
4575
4598
  };
4576
4599
  }
4577
- function ao(e) {
4600
+ function uo(e) {
4578
4601
  let t, r;
4579
4602
  return {
4580
4603
  c() {
4581
- t = F("img"), vt(t.src, r = /*vendor*/
4582
- e[36].logo) || g(t, "src", r), g(t, "alt", "vendor logo");
4604
+ t = F("img"), gt(t.src, r = /*vendor*/
4605
+ e[36].logo) || m(t, "src", r), m(t, "alt", "vendor logo");
4583
4606
  },
4584
4607
  m(n, i) {
4585
- X(n, t, i);
4608
+ W(n, t, i);
4586
4609
  },
4587
4610
  p(n, i) {
4588
4611
  i[0] & /*vendorArray*/
4589
- 32 && !vt(t.src, r = /*vendor*/
4590
- n[36].logo) && g(t, "src", r);
4612
+ 32 && !gt(t.src, r = /*vendor*/
4613
+ n[36].logo) && m(t, "src", r);
4591
4614
  },
4592
4615
  d(n) {
4593
- n && k(t);
4616
+ n && j(t);
4594
4617
  }
4595
4618
  };
4596
4619
  }
4597
- function lo(e) {
4620
+ function ho(e) {
4598
4621
  let t, r, n = (
4599
4622
  /*vendor*/
4600
4623
  e[36].name + ""
@@ -4604,27 +4627,27 @@ function lo(e) {
4604
4627
  ), l, u;
4605
4628
  return {
4606
4629
  c() {
4607
- t = F("div"), r = F("span"), i = U(n), o = V(), s = F("span"), a = U("("), l = U(h), u = U(")"), g(r, "class", "VendorName"), g(t, "class", "FilterItemLabel");
4630
+ t = F("div"), r = F("span"), i = G(n), o = X(), s = F("span"), a = G("("), l = G(h), u = G(")"), m(r, "class", "VendorName"), m(t, "class", "FilterItemLabel");
4608
4631
  },
4609
- m(p, c) {
4610
- X(p, t, c), y(t, r), y(r, i), y(t, o), y(t, s), y(s, a), y(s, l), y(s, u);
4632
+ m(f, c) {
4633
+ W(f, t, c), _(t, r), _(r, i), _(t, o), _(t, s), _(s, a), _(s, l), _(s, u);
4611
4634
  },
4612
- p(p, c) {
4635
+ p(f, c) {
4613
4636
  c[0] & /*vendorArray*/
4614
4637
  32 && n !== (n = /*vendor*/
4615
- p[36].name + "") && q(i, n), c[0] & /*vendorArray*/
4638
+ f[36].name + "") && q(i, n), c[0] & /*vendorArray*/
4616
4639
  32 && h !== (h = /*vendor*/
4617
- p[36].games.count + "") && q(l, h);
4640
+ f[36].games.count + "") && q(l, h);
4618
4641
  },
4619
- d(p) {
4620
- p && k(t);
4642
+ d(f) {
4643
+ f && j(t);
4621
4644
  }
4622
4645
  };
4623
4646
  }
4624
- function Xt(e) {
4625
- let t, r, n, i, o, s, a, h, l, u, p, c;
4626
- function m() {
4627
- e[23].call(
4647
+ function Vt(e) {
4648
+ let t, r, n, i, o, s, a, h, l, u, f, c;
4649
+ function p() {
4650
+ e[24].call(
4628
4651
  n,
4629
4652
  /*each_value*/
4630
4653
  e[37],
@@ -4632,65 +4655,65 @@ function Xt(e) {
4632
4655
  e[38]
4633
4656
  );
4634
4657
  }
4635
- function b() {
4658
+ function y() {
4636
4659
  return (
4637
4660
  /*click_handler_1*/
4638
- e[24](
4661
+ e[25](
4639
4662
  /*vendor*/
4640
4663
  e[36]
4641
4664
  )
4642
4665
  );
4643
4666
  }
4644
- function _(H, E) {
4667
+ function g(v, x) {
4645
4668
  if (
4646
4669
  /*filterbylogo*/
4647
- H[2] === "false"
4648
- ) return lo;
4670
+ v[2] === "false"
4671
+ ) return ho;
4649
4672
  if (
4650
4673
  /*filterbylogo*/
4651
- H[2] === "true"
4652
- ) return ao;
4674
+ v[2] === "true"
4675
+ ) return uo;
4653
4676
  }
4654
- let T = _(e), v = T && T(e);
4677
+ let A = g(e), w = A && A(e);
4655
4678
  return {
4656
4679
  c() {
4657
- t = F("li"), r = F("label"), n = F("input"), o = V(), s = F("span"), a = V(), v && v.c(), h = V(), g(n, "type", "checkbox"), g(n, "name", "checkbox"), n.__value = i = /*vendor*/
4658
- e[36].name, yt(n, n.__value), g(s, "class", "FiltersCheckmark"), g(r, "class", "FilterLabel"), g(t, "class", l = "FilterItem " + /*filterbylogo*/
4680
+ t = F("li"), r = F("label"), n = F("input"), o = X(), s = F("span"), a = X(), w && w.c(), h = X(), m(n, "type", "checkbox"), m(n, "name", "checkbox"), n.__value = i = /*vendor*/
4681
+ e[36].name, yt(n, n.__value), m(s, "class", "FiltersCheckmark"), m(r, "class", "FilterLabel"), m(t, "class", l = "FilterItem " + /*filterbylogo*/
4659
4682
  (e[2] === "true" ? "FilterItemWithLogos" : "")), t.value = u = /*vendor*/
4660
4683
  e[36].name;
4661
4684
  },
4662
- m(H, E) {
4663
- X(H, t, E), y(t, r), y(r, n), n.checked = /*vendor*/
4664
- e[36].isFilterSelected, y(r, o), y(r, s), y(r, a), v && v.m(r, null), y(t, h), p || (c = [
4665
- Re(n, "change", m),
4666
- Re(n, "click", b)
4667
- ], p = !0);
4685
+ m(v, x) {
4686
+ W(v, t, x), _(t, r), _(r, n), n.checked = /*vendor*/
4687
+ e[36].isFilterSelected, _(r, o), _(r, s), _(r, a), w && w.m(r, null), _(t, h), f || (c = [
4688
+ Me(n, "change", p),
4689
+ Me(n, "click", y)
4690
+ ], f = !0);
4668
4691
  },
4669
- p(H, E) {
4670
- e = H, E[0] & /*vendorArray*/
4692
+ p(v, x) {
4693
+ e = v, x[0] & /*vendorArray*/
4671
4694
  32 && i !== (i = /*vendor*/
4672
- e[36].name) && (n.__value = i, yt(n, n.__value)), E[0] & /*vendorArray*/
4695
+ e[36].name) && (n.__value = i, yt(n, n.__value)), x[0] & /*vendorArray*/
4673
4696
  32 && (n.checked = /*vendor*/
4674
- e[36].isFilterSelected), T === (T = _(e)) && v ? v.p(e, E) : (v && v.d(1), v = T && T(e), v && (v.c(), v.m(r, null))), E[0] & /*filterbylogo*/
4697
+ e[36].isFilterSelected), A === (A = g(e)) && w ? w.p(e, x) : (w && w.d(1), w = A && A(e), w && (w.c(), w.m(r, null))), x[0] & /*filterbylogo*/
4675
4698
  4 && l !== (l = "FilterItem " + /*filterbylogo*/
4676
- (e[2] === "true" ? "FilterItemWithLogos" : "")) && g(t, "class", l), E[0] & /*vendorArray*/
4699
+ (e[2] === "true" ? "FilterItemWithLogos" : "")) && m(t, "class", l), x[0] & /*vendorArray*/
4677
4700
  32 && u !== (u = /*vendor*/
4678
4701
  e[36].name) && (t.value = u);
4679
4702
  },
4680
- d(H) {
4681
- H && k(t), v && v.d(), p = !1, Y(c);
4703
+ d(v) {
4704
+ v && j(t), w && w.d(), f = !1, Y(c);
4682
4705
  }
4683
4706
  };
4684
4707
  }
4685
- function uo(e) {
4708
+ function co(e) {
4686
4709
  let t;
4687
4710
  function r(o, s) {
4688
4711
  if (
4689
4712
  /*hasErrors*/
4690
4713
  o[10]
4691
- ) return io;
4714
+ ) return so;
4692
4715
  if (!/*isLoading*/
4693
- o[9]) return no;
4716
+ o[9]) return oo;
4694
4717
  }
4695
4718
  let n = r(e), i = n && n(e);
4696
4719
  return {
@@ -4698,117 +4721,103 @@ function uo(e) {
4698
4721
  t = F("div"), i && i.c();
4699
4722
  },
4700
4723
  m(o, s) {
4701
- X(o, t, s), i && i.m(t, null), e[26](t);
4724
+ W(o, t, s), i && i.m(t, null), e[27](t);
4702
4725
  },
4703
4726
  p(o, s) {
4704
4727
  n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
4705
4728
  },
4706
- i: G,
4707
- o: G,
4729
+ i: k,
4730
+ o: k,
4708
4731
  d(o) {
4709
- o && k(t), i && i.d(), e[26](null);
4732
+ o && j(t), i && i.d(), e[27](null);
4710
4733
  }
4711
4734
  };
4712
4735
  }
4713
- function ho(e, t, r) {
4736
+ function fo(e, t, r) {
4714
4737
  let n;
4715
- Br(e, Yi, (f) => r(11, n = f));
4716
- let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: u = "" } = t, { addfilterselector: p = "false" } = t, { addsortingselector: c = "false" } = t, { filterbylogo: m = "false" } = t, b = !1, _ = window.navigator.userAgent, T = [], v = [], H = {}, E = !1, N = 0, L = !0, O, A = !1;
4717
- to({ withLocale: "en", translations: {} });
4718
- const I = () => {
4719
- fetch(a).then((d) => d.json()).then((d) => {
4720
- Object.keys(d).forEach((C) => {
4721
- kt(C, d[C]);
4722
- });
4723
- }).catch((d) => {
4724
- console.log(d);
4725
- });
4726
- };
4727
- Object.keys(jt).forEach((f) => {
4728
- kt(f, jt[f]);
4729
- });
4738
+ Cr(e, qi, (d) => r(11, n = d));
4739
+ let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: u = "" } = t, { addfilterselector: f = "false" } = t, { addsortingselector: c = "false" } = t, { filterbylogo: p = "false" } = t, { mbsource: y } = t, g = !1, A = window.navigator.userAgent, w = [], v = [], x = {}, L = !1, N = 0, R = !0, S, O = !1;
4740
+ no({ withLocale: "en", translations: {} });
4730
4741
  const M = () => {
4731
- let f = document.createElement("style");
4732
- f.innerHTML = h, O.appendChild(f);
4733
- }, W = () => {
4734
- let f = document.createElement("style");
4735
- fetch(new URL(l)).then((d) => d.text()).then((d) => {
4736
- f.innerHTML = d, setTimeout(
4737
- () => {
4738
- O.appendChild(f);
4739
- },
4740
- 1
4741
- );
4742
+ fetch(a).then((H) => H.json()).then((H) => {
4743
+ Object.keys(H).forEach((b) => {
4744
+ Gt(b, H[b]);
4745
+ });
4746
+ }).catch((H) => {
4747
+ console.log(H);
4742
4748
  });
4743
4749
  };
4744
- H[u] && (H = { [u]: [] });
4745
- const j = () => {
4746
- r(4, b = !b), window.postMessage({ type: "FilterOpened" }, window.location.href);
4747
- }, ne = (f) => (r(9, L = !0), new Promise((d, C) => {
4748
- fetch(f).then((P) => P.json()).then((P) => {
4749
- P = P.items, d(P.items), r(6, v = []);
4750
- let le = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
4751
- P.forEach((Ce) => {
4752
- le || (le = { currentCategoryId: [] }), le[u]?.indexOf(Ce.id) >= 0 ? (Ce.isFilterSelected = !0, v.push(Ce)) : Ce.isFilterSelected = !1;
4753
- }), r(5, T = P), K();
4754
- }).catch((P) => {
4755
- console.error(P), r(10, A = !0), C(P);
4750
+ Object.keys(kt).forEach((d) => {
4751
+ Gt(d, kt[d]);
4752
+ }), x[u] && (x = { [u]: [] });
4753
+ const V = () => {
4754
+ r(4, g = !g), window.postMessage({ type: "FilterOpened" }, window.location.href);
4755
+ }, z = (d) => (r(9, R = !0), new Promise((H, b) => {
4756
+ fetch(d).then((C) => C.json()).then((C) => {
4757
+ C = C.items, H(C.items), r(6, v = []);
4758
+ let I = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
4759
+ C.forEach((re) => {
4760
+ I || (I = { currentCategoryId: [] }), I[u]?.indexOf(re.id) >= 0 ? (re.isFilterSelected = !0, v.push(re)) : re.isFilterSelected = !1;
4761
+ }), r(5, w = C), oe();
4762
+ }).catch((C) => {
4763
+ console.error(C), r(10, O = !0), b(C);
4756
4764
  }).finally(() => {
4757
- r(9, L = !1);
4765
+ r(9, R = !1);
4758
4766
  });
4759
- })), ie = (f) => {
4760
- let d = localStorage.getItem("vendorFiltersByCategory");
4761
- f.isFilterSelected = !f.isFilterSelected, !v.length || v.filter((C) => C.name === f.name).length == 0 ? v.push(f) : r(6, v = v.filter((C) => C.name !== f.name)), d == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(H = {
4762
- [u]: v.map((C) => C.id)
4763
- })) : (d = JSON.parse(d), d[u] = v.map((C) => C.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(d))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), K();
4764
- }, K = () => {
4765
- r(7, E = v.length === T.length || v.length == 0), r(8, N = v.length);
4767
+ })), K = (d) => {
4768
+ let H = localStorage.getItem("vendorFiltersByCategory");
4769
+ d.isFilterSelected = !d.isFilterSelected, !v.length || v.filter((b) => b.name === d.name).length == 0 ? v.push(d) : r(6, v = v.filter((b) => b.name !== d.name)), H == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(x = {
4770
+ [u]: v.map((b) => b.id)
4771
+ })) : (H = JSON.parse(H), H[u] = v.map((b) => b.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(H))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), oe();
4766
4772
  }, oe = () => {
4767
- const f = new URL(`${i}/v1/casino/vendors`);
4768
- r(4, b = !1), f.searchParams.append("fields", "id,name,logo,subVendors,games"), f.searchParams.append("language", s), f.searchParams.append("datasource", o), f.searchParams.append("platform", eo(_)), (u.match(/\$/g) || []).length > 1 ? (f.searchParams.append("filter", `games(subGroups=${u})`), f.searchParams.append("subVendors", `games(subGroups=${u})`)) : f.searchParams.append("filter", `games(groups=${u})`), ne(f);
4773
+ r(7, L = v.length === w.length || v.length == 0), r(8, N = v.length);
4774
+ }, se = () => {
4775
+ const d = new URL(`${i}/v1/casino/vendors`);
4776
+ r(4, g = !1), d.searchParams.append("fields", "id,name,logo,subVendors,games"), d.searchParams.append("language", s), d.searchParams.append("datasource", o), d.searchParams.append("platform", Ki(A)), (u.match(/\$/g) || []).length > 1 ? (d.searchParams.append("filter", `games(subGroups=${u})`), d.searchParams.append("subVendors", `games(subGroups=${u})`)) : d.searchParams.append("filter", `games(groups=${u})`), z(d);
4769
4777
  }, ee = () => {
4770
- r(6, v = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(H = {
4771
- [u]: v.map((f) => f.id)
4772
- })), T.forEach((f) => f.isFilterSelected = !1), r(5, T), window.postMessage({ type: "ApplyFilters" }, window.location.href), r(7, E = !0), r(4, b = !1);
4773
- }, se = (f) => {
4774
- f.data.type == "SortingOpened" && r(4, b = !1);
4778
+ r(6, v = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(x = {
4779
+ [u]: v.map((d) => d.id)
4780
+ })), w.forEach((d) => d.isFilterSelected = !1), r(5, w), window.postMessage({ type: "ApplyFilters" }, window.location.href), r(7, L = !0), r(4, g = !1);
4781
+ }, te = (d) => {
4782
+ d.data.type == "SortingOpened" && r(4, g = !1);
4775
4783
  };
4776
- Dr(() => (window.addEventListener("message", se, !1), () => {
4777
- window.removeEventListener("message", se);
4784
+ Dr(() => (window.addEventListener("message", te, !1), () => {
4785
+ window.removeEventListener("message", te);
4778
4786
  }));
4779
- const Pe = () => j();
4780
- function Ae(f, d) {
4781
- f[d].isFilterSelected = this.checked, r(5, T);
4787
+ const _e = () => V();
4788
+ function Pe(d, H) {
4789
+ d[H].isFilterSelected = this.checked, r(5, w);
4782
4790
  }
4783
- const ae = (f) => ie(f), $ = () => ee();
4784
- function J(f) {
4785
- Ye[f ? "unshift" : "push"](() => {
4786
- O = f, r(3, O);
4791
+ const Ae = (d) => K(d), ae = () => ee();
4792
+ function $(d) {
4793
+ qe[d ? "unshift" : "push"](() => {
4794
+ S = d, r(3, S);
4787
4795
  });
4788
4796
  }
4789
- return e.$$set = (f) => {
4790
- "endpoint" in f && r(15, i = f.endpoint), "datasource" in f && r(16, o = f.datasource), "lang" in f && r(17, s = f.lang), "translationurl" in f && r(18, a = f.translationurl), "clientstyling" in f && r(19, h = f.clientstyling), "clientstylingurl" in f && r(20, l = f.clientstylingurl), "categoryid" in f && r(21, u = f.categoryid), "addfilterselector" in f && r(0, p = f.addfilterselector), "addsortingselector" in f && r(1, c = f.addsortingselector), "filterbylogo" in f && r(2, m = f.filterbylogo);
4797
+ return e.$$set = (d) => {
4798
+ "endpoint" in d && r(15, i = d.endpoint), "datasource" in d && r(16, o = d.datasource), "lang" in d && r(17, s = d.lang), "translationurl" in d && r(18, a = d.translationurl), "clientstyling" in d && r(19, h = d.clientstyling), "clientstylingurl" in d && r(20, l = d.clientstylingurl), "categoryid" in d && r(21, u = d.categoryid), "addfilterselector" in d && r(0, f = d.addfilterselector), "addsortingselector" in d && r(1, c = d.addsortingselector), "filterbylogo" in d && r(2, p = d.filterbylogo), "mbsource" in d && r(22, y = d.mbsource);
4791
4799
  }, e.$$.update = () => {
4792
4800
  e.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
4793
- 2195460 && i && o && u && m && oe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4794
- 524296 && h && O && M(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4795
- 1048584 && l && O && W(), e.$$.dirty[0] & /*translationurl*/
4796
- 262144 && a && I();
4801
+ 2195460 && i && o && u && p && se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4802
+ 524296 && h && S && eo(S, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4803
+ 1048584 && l && S && to(S, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4804
+ 4194312 && S && ro(S, `${y}.Style`), e.$$.dirty[0] & /*translationurl*/
4805
+ 262144 && a && M();
4797
4806
  }, [
4798
- p,
4807
+ f,
4799
4808
  c,
4800
- m,
4801
- O,
4802
- b,
4803
- T,
4809
+ p,
4810
+ S,
4811
+ g,
4812
+ w,
4804
4813
  v,
4805
- E,
4806
- N,
4807
4814
  L,
4808
- A,
4815
+ N,
4816
+ R,
4817
+ O,
4809
4818
  n,
4810
- j,
4811
- ie,
4819
+ V,
4820
+ K,
4812
4821
  ee,
4813
4822
  i,
4814
4823
  o,
@@ -4817,21 +4826,22 @@ function ho(e, t, r) {
4817
4826
  h,
4818
4827
  l,
4819
4828
  u,
4829
+ y,
4830
+ _e,
4820
4831
  Pe,
4821
4832
  Ae,
4822
4833
  ae,
4823
- $,
4824
- J
4834
+ $
4825
4835
  ];
4826
4836
  }
4827
- class Cr extends Zr {
4837
+ class Ar extends zr {
4828
4838
  constructor(t) {
4829
- super(), Wr(
4839
+ super(), Xr(
4830
4840
  this,
4831
4841
  t,
4832
- ho,
4833
- uo,
4834
- zt,
4842
+ fo,
4843
+ co,
4844
+ Wt,
4835
4845
  {
4836
4846
  endpoint: 15,
4837
4847
  datasource: 16,
@@ -4842,9 +4852,10 @@ class Cr extends Zr {
4842
4852
  categoryid: 21,
4843
4853
  addfilterselector: 0,
4844
4854
  addsortingselector: 1,
4845
- filterbylogo: 2
4855
+ filterbylogo: 2,
4856
+ mbsource: 22
4846
4857
  },
4847
- ro,
4858
+ io,
4848
4859
  [-1, -1]
4849
4860
  );
4850
4861
  }
@@ -4852,106 +4863,115 @@ class Cr extends Zr {
4852
4863
  return this.$$.ctx[15];
4853
4864
  }
4854
4865
  set endpoint(t) {
4855
- this.$$set({ endpoint: t }), D();
4866
+ this.$$set({ endpoint: t }), U();
4856
4867
  }
4857
4868
  get datasource() {
4858
4869
  return this.$$.ctx[16];
4859
4870
  }
4860
4871
  set datasource(t) {
4861
- this.$$set({ datasource: t }), D();
4872
+ this.$$set({ datasource: t }), U();
4862
4873
  }
4863
4874
  get lang() {
4864
4875
  return this.$$.ctx[17];
4865
4876
  }
4866
4877
  set lang(t) {
4867
- this.$$set({ lang: t }), D();
4878
+ this.$$set({ lang: t }), U();
4868
4879
  }
4869
4880
  get translationurl() {
4870
4881
  return this.$$.ctx[18];
4871
4882
  }
4872
4883
  set translationurl(t) {
4873
- this.$$set({ translationurl: t }), D();
4884
+ this.$$set({ translationurl: t }), U();
4874
4885
  }
4875
4886
  get clientstyling() {
4876
4887
  return this.$$.ctx[19];
4877
4888
  }
4878
4889
  set clientstyling(t) {
4879
- this.$$set({ clientstyling: t }), D();
4890
+ this.$$set({ clientstyling: t }), U();
4880
4891
  }
4881
4892
  get clientstylingurl() {
4882
4893
  return this.$$.ctx[20];
4883
4894
  }
4884
4895
  set clientstylingurl(t) {
4885
- this.$$set({ clientstylingurl: t }), D();
4896
+ this.$$set({ clientstylingurl: t }), U();
4886
4897
  }
4887
4898
  get categoryid() {
4888
4899
  return this.$$.ctx[21];
4889
4900
  }
4890
4901
  set categoryid(t) {
4891
- this.$$set({ categoryid: t }), D();
4902
+ this.$$set({ categoryid: t }), U();
4892
4903
  }
4893
4904
  get addfilterselector() {
4894
4905
  return this.$$.ctx[0];
4895
4906
  }
4896
4907
  set addfilterselector(t) {
4897
- this.$$set({ addfilterselector: t }), D();
4908
+ this.$$set({ addfilterselector: t }), U();
4898
4909
  }
4899
4910
  get addsortingselector() {
4900
4911
  return this.$$.ctx[1];
4901
4912
  }
4902
4913
  set addsortingselector(t) {
4903
- this.$$set({ addsortingselector: t }), D();
4914
+ this.$$set({ addsortingselector: t }), U();
4904
4915
  }
4905
4916
  get filterbylogo() {
4906
4917
  return this.$$.ctx[2];
4907
4918
  }
4908
4919
  set filterbylogo(t) {
4909
- this.$$set({ filterbylogo: t }), D();
4920
+ this.$$set({ filterbylogo: t }), U();
4921
+ }
4922
+ get mbsource() {
4923
+ return this.$$.ctx[22];
4924
+ }
4925
+ set mbsource(t) {
4926
+ this.$$set({ mbsource: t }), U();
4910
4927
  }
4911
4928
  }
4912
- zr(Cr, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {} }, [], [], !0);
4913
- const xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4929
+ Wr(Ar, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {}, mbsource: {} }, [], [], !0);
4930
+ const wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4914
4931
  __proto__: null,
4915
- default: Cr
4932
+ default: Ar
4916
4933
  }, Symbol.toStringTag, { value: "Module" }));
4917
4934
  export {
4918
- te as $,
4919
- Nr as A,
4920
- go as B,
4921
- zr as C,
4922
- Yi as D,
4923
- _o as E,
4924
- yo as F,
4925
- fo as G,
4926
- bo as H,
4927
- vo as I,
4928
- ye as J,
4929
- xo as K,
4930
- Zr as S,
4931
- Sr as a,
4932
- Or as b,
4933
- vt as c,
4934
- k as d,
4935
- g as e,
4936
- D as f,
4937
- X as g,
4938
- y as h,
4939
- Wr as i,
4935
+ ne as $,
4936
+ _t as A,
4937
+ Lr as B,
4938
+ vo as C,
4939
+ eo as D,
4940
+ ro as E,
4941
+ Wr as F,
4942
+ qi as G,
4943
+ yo as H,
4944
+ Eo as I,
4945
+ xo as J,
4946
+ mo as K,
4947
+ _o as L,
4948
+ ye as M,
4949
+ wo as N,
4950
+ zr as S,
4951
+ wr as a,
4952
+ Br as b,
4953
+ gt as c,
4954
+ j as d,
4955
+ m as e,
4956
+ U as f,
4957
+ W as g,
4958
+ _ as h,
4959
+ Xr as i,
4940
4960
  F as j,
4941
- V as k,
4942
- Br as l,
4943
- Ki as m,
4944
- G as n,
4961
+ X as k,
4962
+ Cr as l,
4963
+ to as m,
4964
+ k as n,
4945
4965
  Dr as o,
4946
- q as p,
4947
- Re as q,
4948
- U as r,
4949
- zt as s,
4950
- mo as t,
4951
- co as u,
4952
- eo as v,
4953
- Ye as w,
4954
- Ee as x,
4955
- po as y,
4956
- xt as z
4966
+ Yi as p,
4967
+ q,
4968
+ Me as r,
4969
+ Wt as s,
4970
+ go as t,
4971
+ G as u,
4972
+ po as v,
4973
+ Ki as w,
4974
+ qe as x,
4975
+ Ee as y,
4976
+ bo as z
4957
4977
  };