@everymatrix/player-account-balance-modal-nd 1.86.29 → 1.87.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.
@@ -12,19 +12,19 @@ var Ut = Math.pow, Dt = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configu
12
12
  }, Gt = (e, t) => In(e, Dn(t));
13
13
  var ye = (e, t, r) => (Dt(e, typeof t != "symbol" ? t + "" : t, r), r);
14
14
  var jt = (e, t, r) => new Promise((n, i) => {
15
- var o = (c) => {
15
+ var o = (u) => {
16
16
  try {
17
- s(r.next(c));
18
- } catch (u) {
19
- i(u);
17
+ s(r.next(u));
18
+ } catch (l) {
19
+ i(l);
20
20
  }
21
- }, a = (c) => {
21
+ }, a = (u) => {
22
22
  try {
23
- s(r.throw(c));
24
- } catch (u) {
25
- i(u);
23
+ s(r.throw(u));
24
+ } catch (l) {
25
+ i(l);
26
26
  }
27
- }, s = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(o, a);
27
+ }, s = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, a);
28
28
  s((r = r.apply(e, t)).next());
29
29
  });
30
30
  function ve() {
@@ -114,7 +114,7 @@ function Xn() {
114
114
  function ut(e, t, r, n) {
115
115
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
116
116
  }
117
- function M(e, t, r) {
117
+ function R(e, t, r) {
118
118
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
119
119
  }
120
120
  function zn(e) {
@@ -215,9 +215,9 @@ function ii(e, t) {
215
215
  e.$$.dirty[0] === -1 && (Xe.push(e), Qn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
216
216
  }
217
217
  function oi(e, t, r, n, i, o, a = null, s = [-1]) {
218
- const c = lt;
218
+ const u = lt;
219
219
  st(e);
220
- const u = e.$$ = {
220
+ const l = e.$$ = {
221
221
  fragment: null,
222
222
  ctx: [],
223
223
  // state
@@ -231,27 +231,27 @@ function oi(e, t, r, n, i, o, a = null, s = [-1]) {
231
231
  on_disconnect: [],
232
232
  before_update: [],
233
233
  after_update: [],
234
- context: new Map(t.context || (c ? c.$$.context : [])),
234
+ context: new Map(t.context || (u ? u.$$.context : [])),
235
235
  // everything else
236
236
  callbacks: _r(),
237
237
  dirty: s,
238
238
  skip_bound: !1,
239
- root: t.target || c.$$.root
239
+ root: t.target || u.$$.root
240
240
  };
241
- a && a(u.root);
241
+ a && a(l.root);
242
242
  let f = !1;
243
- if (u.ctx = r ? r(e, t.props || {}, (m, d, ...g) => {
243
+ if (l.ctx = r ? r(e, t.props || {}, (m, d, ...g) => {
244
244
  const v = g.length ? g[0] : d;
245
- return u.ctx && i(u.ctx[m], u.ctx[m] = v) && (!u.skip_bound && u.bound[m] && u.bound[m](v), f && ii(e, m)), d;
246
- }) : [], u.update(), f = !0, Qe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
245
+ return l.ctx && i(l.ctx[m], l.ctx[m] = v) && (!l.skip_bound && l.bound[m] && l.bound[m](v), f && ii(e, m)), d;
246
+ }) : [], l.update(), f = !0, Qe(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
247
247
  if (t.hydrate) {
248
248
  const m = zn(t.target);
249
- u.fragment && u.fragment.l(m), m.forEach(_e);
249
+ l.fragment && l.fragment.l(m), m.forEach(_e);
250
250
  } else
251
- u.fragment && u.fragment.c();
251
+ l.fragment && l.fragment.c();
252
252
  t.intro && ti(e.$$.fragment), ri(e, t.target, t.anchor), Z();
253
253
  }
254
- st(c);
254
+ st(u);
255
255
  }
256
256
  let rn;
257
257
  typeof HTMLElement == "function" && (rn = class extends HTMLElement {
@@ -298,17 +298,17 @@ typeof HTMLElement == "function" && (rn = class extends HTMLElement {
298
298
  let a;
299
299
  return {
300
300
  c: function() {
301
- a = X("slot"), o !== "default" && M(a, "name", o);
301
+ a = X("slot"), o !== "default" && R(a, "name", o);
302
302
  },
303
303
  /**
304
304
  * @param {HTMLElement} target
305
305
  * @param {HTMLElement} [anchor]
306
306
  */
307
- m: function(u, f) {
308
- Ee(u, a, f);
307
+ m: function(l, f) {
308
+ Ee(l, a, f);
309
309
  },
310
- d: function(u) {
311
- u && _e(a);
310
+ d: function(l) {
311
+ l && _e(a);
312
312
  }
313
313
  };
314
314
  };
@@ -420,16 +420,16 @@ function ai(e, t, r, n, i, o) {
420
420
  get() {
421
421
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
422
422
  },
423
- set(c) {
424
- var u;
425
- c = yt(s, c, t), this.$$d[s] = c, (u = this.$$c) == null || u.$set({ [s]: c });
423
+ set(u) {
424
+ var l;
425
+ u = yt(s, u, t), this.$$d[s] = u, (l = this.$$c) == null || l.$set({ [s]: u });
426
426
  }
427
427
  });
428
428
  }), n.forEach((s) => {
429
429
  Object.defineProperty(a.prototype, s, {
430
430
  get() {
431
- var c;
432
- return (c = this.$$c) == null ? void 0 : c[s];
431
+ var u;
432
+ return (u = this.$$c) == null ? void 0 : u[s];
433
433
  }
434
434
  });
435
435
  }), e.element = /** @type {any} */
@@ -519,12 +519,12 @@ function Tt(e, t = ve) {
519
519
  const n = /* @__PURE__ */ new Set();
520
520
  function i(s) {
521
521
  if (Kr(e, s) && (e = s, r)) {
522
- const c = !Ve.length;
523
- for (const u of n)
524
- u[1](), Ve.push(u, e);
525
- if (c) {
526
- for (let u = 0; u < Ve.length; u += 2)
527
- Ve[u][0](Ve[u + 1]);
522
+ const u = !Ve.length;
523
+ for (const l of n)
524
+ l[1](), Ve.push(l, e);
525
+ if (u) {
526
+ for (let l = 0; l < Ve.length; l += 2)
527
+ Ve[l][0](Ve[l + 1]);
528
528
  Ve.length = 0;
529
529
  }
530
530
  }
@@ -532,10 +532,10 @@ function Tt(e, t = ve) {
532
532
  function o(s) {
533
533
  i(s(e));
534
534
  }
535
- function a(s, c = ve) {
536
- const u = [s, c];
537
- return n.add(u), n.size === 1 && (r = t(i, o) || ve), s(e), () => {
538
- n.delete(u), n.size === 0 && r && (r(), r = null);
535
+ function a(s, u = ve) {
536
+ const l = [s, u];
537
+ return n.add(l), n.size === 1 && (r = t(i, o) || ve), s(e), () => {
538
+ n.delete(l), n.size === 0 && r && (r(), r = null);
539
539
  };
540
540
  }
541
541
  return { set: i, update: o, subscribe: a };
@@ -546,28 +546,28 @@ function Je(e, t, r) {
546
546
  throw new Error("derived() expects stores as input, got a falsy value");
547
547
  const o = t.length < 2;
548
548
  return fi(r, (a, s) => {
549
- let c = !1;
550
- const u = [];
549
+ let u = !1;
550
+ const l = [];
551
551
  let f = 0, m = ve;
552
552
  const d = () => {
553
553
  if (f)
554
554
  return;
555
555
  m();
556
- const v = t(n ? u[0] : u, a, s);
556
+ const v = t(n ? l[0] : l, a, s);
557
557
  o ? a(v) : m = mr(v) ? v : ve;
558
558
  }, g = i.map(
559
559
  (v, B) => en(
560
560
  v,
561
561
  (K) => {
562
- u[B] = K, f &= ~(1 << B), c && d();
562
+ l[B] = K, f &= ~(1 << B), u && d();
563
563
  },
564
564
  () => {
565
565
  f |= 1 << B;
566
566
  }
567
567
  )
568
568
  );
569
- return c = !0, d(), function() {
570
- Qe(g), m(), c = !1;
569
+ return u = !0, d(), function() {
570
+ Qe(g), m(), u = !1;
571
571
  };
572
572
  });
573
573
  }
@@ -746,10 +746,10 @@ var Ni = function() {
746
746
  return t;
747
747
  }, wt.apply(this, arguments);
748
748
  };
749
- var R;
749
+ var M;
750
750
  (function(e) {
751
751
  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";
752
- })(R || (R = {}));
752
+ })(M || (M = {}));
753
753
  var V;
754
754
  (function(e) {
755
755
  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";
@@ -903,12 +903,12 @@ function $i(e) {
903
903
  var o = i[n], a = o.split("/");
904
904
  if (a.length === 0)
905
905
  throw new Error("Invalid number skeleton");
906
- for (var s = a[0], c = a.slice(1), u = 0, f = c; u < f.length; u++) {
907
- var m = f[u];
906
+ for (var s = a[0], u = a.slice(1), l = 0, f = u; l < f.length; l++) {
907
+ var m = f[l];
908
908
  if (m.length === 0)
909
909
  throw new Error("Invalid number skeleton");
910
910
  }
911
- r.push({ stem: s, options: c });
911
+ r.push({ stem: s, options: u });
912
912
  }
913
913
  return r;
914
914
  }
@@ -1015,13 +1015,13 @@ function Wi(e) {
1015
1015
  t.notation = "compact", t.compactDisplay = "long";
1016
1016
  continue;
1017
1017
  case "scientific":
1018
- t = q(q(q({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
1019
- return q(q({}, c), Ar(u));
1018
+ t = q(q(q({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
1019
+ return q(q({}, u), Ar(l));
1020
1020
  }, {}));
1021
1021
  continue;
1022
1022
  case "engineering":
1023
- t = q(q(q({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
1024
- return q(q({}, c), Ar(u));
1023
+ t = q(q(q({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
1024
+ return q(q({}, u), Ar(l));
1025
1025
  }, {}));
1026
1026
  continue;
1027
1027
  case "notation-simple":
@@ -1066,8 +1066,8 @@ function Wi(e) {
1066
1066
  case "integer-width":
1067
1067
  if (i.options.length > 1)
1068
1068
  throw new RangeError("integer-width stems only accept a single optional option");
1069
- i.options[0].replace(Xi, function(c, u, f, m, d, g) {
1070
- if (u)
1069
+ i.options[0].replace(Xi, function(u, l, f, m, d, g) {
1070
+ if (l)
1071
1071
  t.minimumIntegerDigits = f.length;
1072
1072
  else {
1073
1073
  if (m && d)
@@ -1086,8 +1086,8 @@ function Wi(e) {
1086
1086
  if (Br.test(i.stem)) {
1087
1087
  if (i.options.length > 1)
1088
1088
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1089
- i.stem.replace(Br, function(c, u, f, m, d, g) {
1090
- return f === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : d && g ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1089
+ i.stem.replace(Br, function(u, l, f, m, d, g) {
1090
+ return f === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : d && g ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + g.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1091
1091
  });
1092
1092
  var o = i.options[0];
1093
1093
  o === "w" ? t = q(q({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = q(q({}, t), Tr(o)));
@@ -2525,11 +2525,11 @@ function Zi(e, t) {
2525
2525
  if (i === "j") {
2526
2526
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2527
2527
  o++, n++;
2528
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = qi(t);
2529
- for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2530
- r += c;
2528
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = qi(t);
2529
+ for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2530
+ r += u;
2531
2531
  for (; a-- > 0; )
2532
- r = u + r;
2532
+ r = l + r;
2533
2533
  } else
2534
2534
  i === "J" ? r += "H" : r += i;
2535
2535
  }
@@ -2691,7 +2691,7 @@ var lo = (
2691
2691
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2692
2692
  if (n)
2693
2693
  break;
2694
- return this.error(R.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
2694
+ return this.error(M.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
2695
2695
  } else if (o === 60 && !this.ignoreTag && ir(this.peek() || 0)) {
2696
2696
  var a = this.parseTag(t, r);
2697
2697
  if (a.err)
@@ -2726,9 +2726,9 @@ var lo = (
2726
2726
  var a = o.val, s = this.clonePosition();
2727
2727
  if (this.bumpIf("</")) {
2728
2728
  if (this.isEOF() || !ir(this.char()))
2729
- return this.error(R.INVALID_TAG, N(s, this.clonePosition()));
2730
- var c = this.clonePosition(), u = this.parseTagName();
2731
- return i !== u ? this.error(R.UNMATCHED_CLOSING_TAG, N(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2729
+ return this.error(M.INVALID_TAG, N(s, this.clonePosition()));
2730
+ var u = this.clonePosition(), l = this.parseTagName();
2731
+ return i !== l ? this.error(M.UNMATCHED_CLOSING_TAG, N(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2732
2732
  val: {
2733
2733
  type: V.tag,
2734
2734
  value: i,
@@ -2736,11 +2736,11 @@ var lo = (
2736
2736
  location: N(n, this.clonePosition())
2737
2737
  },
2738
2738
  err: null
2739
- } : this.error(R.INVALID_TAG, N(s, this.clonePosition())));
2739
+ } : this.error(M.INVALID_TAG, N(s, this.clonePosition())));
2740
2740
  } else
2741
- return this.error(R.UNCLOSED_TAG, N(n, this.clonePosition()));
2741
+ return this.error(M.UNCLOSED_TAG, N(n, this.clonePosition()));
2742
2742
  } else
2743
- return this.error(R.INVALID_TAG, N(n, this.clonePosition()));
2743
+ return this.error(M.INVALID_TAG, N(n, this.clonePosition()));
2744
2744
  }, e.prototype.parseTagName = function() {
2745
2745
  var t = this.offset();
2746
2746
  for (this.bump(); !this.isEOF() && ho(this.char()); )
@@ -2765,9 +2765,9 @@ var lo = (
2765
2765
  }
2766
2766
  break;
2767
2767
  }
2768
- var c = N(n, this.clonePosition());
2768
+ var u = N(n, this.clonePosition());
2769
2769
  return {
2770
- val: { type: V.literal, value: i, location: c },
2770
+ val: { type: V.literal, value: i, location: u },
2771
2771
  err: null
2772
2772
  };
2773
2773
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -2815,14 +2815,14 @@ var lo = (
2815
2815
  }, e.prototype.parseArgument = function(t, r) {
2816
2816
  var n = this.clonePosition();
2817
2817
  if (this.bump(), this.bumpSpace(), this.isEOF())
2818
- return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition()));
2818
+ return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition()));
2819
2819
  if (this.char() === 125)
2820
- return this.bump(), this.error(R.EMPTY_ARGUMENT, N(n, this.clonePosition()));
2820
+ return this.bump(), this.error(M.EMPTY_ARGUMENT, N(n, this.clonePosition()));
2821
2821
  var i = this.parseIdentifierIfPossible().value;
2822
2822
  if (!i)
2823
- return this.error(R.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
2823
+ return this.error(M.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
2824
2824
  if (this.bumpSpace(), this.isEOF())
2825
- return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition()));
2825
+ return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition()));
2826
2826
  switch (this.char()) {
2827
2827
  case 125:
2828
2828
  return this.bump(), {
@@ -2835,9 +2835,9 @@ var lo = (
2835
2835
  err: null
2836
2836
  };
2837
2837
  case 44:
2838
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2838
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2839
2839
  default:
2840
- return this.error(R.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
2840
+ return this.error(M.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
2841
2841
  }
2842
2842
  }, e.prototype.parseIdentifierIfPossible = function() {
2843
2843
  var t = this.clonePosition(), r = this.offset(), n = nr(this.message, r), i = r + n.length;
@@ -2845,15 +2845,15 @@ var lo = (
2845
2845
  var o = this.clonePosition(), a = N(t, o);
2846
2846
  return { value: n, location: a };
2847
2847
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2848
- var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2848
+ var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2849
2849
  switch (s) {
2850
2850
  case "":
2851
- return this.error(R.EXPECT_ARGUMENT_TYPE, N(a, c));
2851
+ return this.error(M.EXPECT_ARGUMENT_TYPE, N(a, u));
2852
2852
  case "number":
2853
2853
  case "date":
2854
2854
  case "time": {
2855
2855
  this.bumpSpace();
2856
- var u = null;
2856
+ var l = null;
2857
2857
  if (this.bumpIf(",")) {
2858
2858
  this.bumpSpace();
2859
2859
  var f = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
@@ -2861,31 +2861,31 @@ var lo = (
2861
2861
  return m;
2862
2862
  var d = uo(m.val);
2863
2863
  if (d.length === 0)
2864
- return this.error(R.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
2864
+ return this.error(M.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
2865
2865
  var g = N(f, this.clonePosition());
2866
- u = { style: d, styleLocation: g };
2866
+ l = { style: d, styleLocation: g };
2867
2867
  }
2868
2868
  var v = this.tryParseArgumentClose(i);
2869
2869
  if (v.err)
2870
2870
  return v;
2871
2871
  var B = N(i, this.clonePosition());
2872
- if (u && Cr(u == null ? void 0 : u.style, "::", 0)) {
2873
- var K = so(u.style.slice(2));
2872
+ if (l && Cr(l == null ? void 0 : l.style, "::", 0)) {
2873
+ var K = so(l.style.slice(2));
2874
2874
  if (s === "number") {
2875
- var m = this.parseNumberSkeletonFromString(K, u.styleLocation);
2875
+ var m = this.parseNumberSkeletonFromString(K, l.styleLocation);
2876
2876
  return m.err ? m : {
2877
2877
  val: { type: V.number, value: n, location: B, style: m.val },
2878
2878
  err: null
2879
2879
  };
2880
2880
  } else {
2881
2881
  if (K.length === 0)
2882
- return this.error(R.EXPECT_DATE_TIME_SKELETON, B);
2882
+ return this.error(M.EXPECT_DATE_TIME_SKELETON, B);
2883
2883
  var oe = K;
2884
2884
  this.locale && (oe = Zi(K, this.locale));
2885
2885
  var d = {
2886
2886
  type: Ze.dateTime,
2887
2887
  pattern: oe,
2888
- location: u.styleLocation,
2888
+ location: l.styleLocation,
2889
2889
  parsedOptions: this.shouldParseSkeletons ? ji(oe) : {}
2890
2890
  }, se = s === "date" ? V.date : V.time;
2891
2891
  return {
@@ -2899,7 +2899,7 @@ var lo = (
2899
2899
  type: s === "number" ? V.number : s === "date" ? V.date : V.time,
2900
2900
  value: n,
2901
2901
  location: B,
2902
- style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
2902
+ style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
2903
2903
  },
2904
2904
  err: null
2905
2905
  };
@@ -2909,14 +2909,14 @@ var lo = (
2909
2909
  case "select": {
2910
2910
  var D = this.clonePosition();
2911
2911
  if (this.bumpSpace(), !this.bumpIf(","))
2912
- return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS, N(D, wt({}, D)));
2912
+ return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS, N(D, wt({}, D)));
2913
2913
  this.bumpSpace();
2914
2914
  var j = this.parseIdentifierIfPossible(), Y = 0;
2915
2915
  if (s !== "select" && j.value === "offset") {
2916
2916
  if (!this.bumpIf(":"))
2917
- return this.error(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
2917
+ return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
2918
2918
  this.bumpSpace();
2919
- var m = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, R.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2919
+ var m = this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2920
2920
  if (m.err)
2921
2921
  return m;
2922
2922
  this.bumpSpace(), j = this.parseIdentifierIfPossible(), Y = m.val;
@@ -2949,10 +2949,10 @@ var lo = (
2949
2949
  };
2950
2950
  }
2951
2951
  default:
2952
- return this.error(R.INVALID_ARGUMENT_TYPE, N(a, c));
2952
+ return this.error(M.INVALID_ARGUMENT_TYPE, N(a, u));
2953
2953
  }
2954
2954
  }, e.prototype.tryParseArgumentClose = function(t) {
2955
- return this.isEOF() || this.char() !== 125 ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2955
+ return this.isEOF() || this.char() !== 125 ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, N(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2956
2956
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2957
2957
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2958
2958
  var n = this.char();
@@ -2961,7 +2961,7 @@ var lo = (
2961
2961
  this.bump();
2962
2962
  var i = this.clonePosition();
2963
2963
  if (!this.bumpUntil("'"))
2964
- return this.error(R.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, N(i, this.clonePosition()));
2964
+ return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, N(i, this.clonePosition()));
2965
2965
  this.bump();
2966
2966
  break;
2967
2967
  }
@@ -2993,7 +2993,7 @@ var lo = (
2993
2993
  try {
2994
2994
  n = $i(t);
2995
2995
  } catch (i) {
2996
- return this.error(R.INVALID_NUMBER_SKELETON, r);
2996
+ return this.error(M.INVALID_NUMBER_SKELETON, r);
2997
2997
  }
2998
2998
  return {
2999
2999
  val: {
@@ -3005,23 +3005,23 @@ var lo = (
3005
3005
  err: null
3006
3006
  };
3007
3007
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3008
- for (var o, a = !1, s = [], c = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
3009
- if (u.length === 0) {
3008
+ for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
3009
+ if (l.length === 0) {
3010
3010
  var m = this.clonePosition();
3011
3011
  if (r !== "select" && this.bumpIf("=")) {
3012
- var d = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_SELECTOR, R.INVALID_PLURAL_ARGUMENT_SELECTOR);
3012
+ var d = this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR, M.INVALID_PLURAL_ARGUMENT_SELECTOR);
3013
3013
  if (d.err)
3014
3014
  return d;
3015
- f = N(m, this.clonePosition()), u = this.message.slice(m.offset, this.offset());
3015
+ f = N(m, this.clonePosition()), l = this.message.slice(m.offset, this.offset());
3016
3016
  } else
3017
3017
  break;
3018
3018
  }
3019
- if (c.has(u))
3020
- return this.error(r === "select" ? R.DUPLICATE_SELECT_ARGUMENT_SELECTOR : R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3021
- u === "other" && (a = !0), this.bumpSpace();
3019
+ if (u.has(l))
3020
+ return this.error(r === "select" ? M.DUPLICATE_SELECT_ARGUMENT_SELECTOR : M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3021
+ l === "other" && (a = !0), this.bumpSpace();
3022
3022
  var g = this.clonePosition();
3023
3023
  if (!this.bumpIf("{"))
3024
- return this.error(r === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : R.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
3024
+ return this.error(r === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
3025
3025
  var v = this.parseMessage(t + 1, r, n);
3026
3026
  if (v.err)
3027
3027
  return v;
@@ -3029,14 +3029,14 @@ var lo = (
3029
3029
  if (B.err)
3030
3030
  return B;
3031
3031
  s.push([
3032
- u,
3032
+ l,
3033
3033
  {
3034
3034
  value: v.val,
3035
3035
  location: N(g, this.clonePosition())
3036
3036
  }
3037
- ]), c.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
3037
+ ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, f = o.location;
3038
3038
  }
3039
- return s.length === 0 ? this.error(r === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR : R.EXPECT_PLURAL_ARGUMENT_SELECTOR, N(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(R.MISSING_OTHER_CLAUSE, N(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3039
+ return s.length === 0 ? this.error(r === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR : M.EXPECT_PLURAL_ARGUMENT_SELECTOR, N(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(M.MISSING_OTHER_CLAUSE, N(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3040
3040
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3041
3041
  var n = 1, i = this.clonePosition();
3042
3042
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3047,8 +3047,8 @@ var lo = (
3047
3047
  else
3048
3048
  break;
3049
3049
  }
3050
- var c = N(i, this.clonePosition());
3051
- return o ? (a *= n, oo(a) ? { val: a, err: null } : this.error(r, c)) : this.error(t, c);
3050
+ var u = N(i, this.clonePosition());
3051
+ return o ? (a *= n, oo(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
3052
3052
  }, e.prototype.offset = function() {
3053
3053
  return this.position.offset;
3054
3054
  }, e.prototype.isEOF = function() {
@@ -3142,7 +3142,7 @@ function po(e, t) {
3142
3142
  t === void 0 && (t = {}), t = wt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3143
3143
  var r = new lo(e, t).parse();
3144
3144
  if (r.err) {
3145
- var n = SyntaxError(R[r.err.kind]);
3145
+ var n = SyntaxError(M[r.err.kind]);
3146
3146
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3147
3147
  }
3148
3148
  return t != null && t.captureLocation || or(r.val), r.val;
@@ -3211,8 +3211,8 @@ function vt(e, t, r, n, i, o, a) {
3211
3211
  value: e[0].value
3212
3212
  }
3213
3213
  ];
3214
- for (var s = [], c = 0, u = e; c < u.length; c++) {
3215
- var f = u[c];
3214
+ for (var s = [], u = 0, l = e; u < l.length; u++) {
3215
+ var f = l[u];
3216
3216
  if (Sr(f)) {
3217
3217
  s.push({
3218
3218
  type: he.literal,
@@ -3367,20 +3367,20 @@ var xo = (
3367
3367
  number: {},
3368
3368
  dateTime: {},
3369
3369
  pluralRules: {}
3370
- }, this.format = function(c) {
3371
- var u = o.formatToParts(c);
3372
- if (u.length === 1)
3373
- return u[0].value;
3374
- var f = u.reduce(function(m, d) {
3370
+ }, this.format = function(u) {
3371
+ var l = o.formatToParts(u);
3372
+ if (l.length === 1)
3373
+ return l[0].value;
3374
+ var f = l.reduce(function(m, d) {
3375
3375
  return !m.length || d.type !== he.literal || typeof m[m.length - 1] != "string" ? m.push(d.value) : m[m.length - 1] += d.value, m;
3376
3376
  }, []);
3377
3377
  return f.length <= 1 ? f[0] || "" : f;
3378
- }, this.formatToParts = function(c) {
3379
- return vt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3378
+ }, this.formatToParts = function(u) {
3379
+ return vt(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3380
3380
  }, this.resolvedOptions = function() {
3381
- var c;
3381
+ var u;
3382
3382
  return {
3383
- locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3383
+ locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3384
3384
  };
3385
3385
  }, this.getAst = function() {
3386
3386
  return o.ast;
@@ -3738,16 +3738,16 @@ const ht = (e, t) => {
3738
3738
  typeof e == "object" && (a = e, e = a.id);
3739
3739
  const {
3740
3740
  values: s,
3741
- locale: c = Fe(),
3742
- default: u
3741
+ locale: u = Fe(),
3742
+ default: l
3743
3743
  } = a;
3744
- if (c == null)
3744
+ if (u == null)
3745
3745
  throw new Error(
3746
3746
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3747
3747
  );
3748
- let f = En(e, c);
3748
+ let f = En(e, u);
3749
3749
  if (!f)
3750
- f = (o = (i = (n = (r = Ye()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3750
+ f = (o = (i = (n = (r = Ye()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3751
3751
  else if (typeof f != "string")
3752
3752
  return console.warn(
3753
3753
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -3756,7 +3756,7 @@ const ht = (e, t) => {
3756
3756
  return f;
3757
3757
  let m = f;
3758
3758
  try {
3759
- m = qo(f, c).format(s);
3759
+ m = qo(f, u).format(s);
3760
3760
  } catch (d) {
3761
3761
  d instanceof Error && console.warn(
3762
3762
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4001,9 +4001,9 @@ var ur = { exports: {} };
4001
4001
  */
4002
4002
  (function(e, t) {
4003
4003
  (function(r) {
4004
- var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, a = r.XDomainRequest, s = r.ActiveXObject, c = r.EventSource, u = r.document, f = r.Promise, m = r.fetch, d = r.Response, g = r.TextDecoder, v = r.TextEncoder, B = r.AbortController;
4005
- if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
4006
- u.readyState = "complete";
4004
+ var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, a = r.XDomainRequest, s = r.ActiveXObject, u = r.EventSource, l = r.document, f = r.Promise, m = r.fetch, d = r.Response, g = r.TextDecoder, v = r.TextEncoder, B = r.AbortController;
4005
+ if (typeof window != "undefined" && typeof l != "undefined" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(h) {
4006
+ l.readyState = "complete";
4007
4007
  }, !1)), o == null && s != null && (o = function() {
4008
4008
  return new s("Microsoft.XMLHTTP");
4009
4009
  }), Object.create == null && (Object.create = function(h) {
@@ -4042,12 +4042,12 @@ var ur = { exports: {} };
4042
4042
  this.bitsNeeded = 0, this.codePoint = 0;
4043
4043
  }
4044
4044
  oe.prototype.decode = function(h) {
4045
- function b(U, F, l) {
4046
- if (l === 1)
4045
+ function b(U, F, c) {
4046
+ if (c === 1)
4047
4047
  return U >= 128 >> F && U << F <= 2047;
4048
- if (l === 2)
4048
+ if (c === 2)
4049
4049
  return U >= 2048 >> F && U << F <= 55295 || U >= 57344 >> F && U << F <= 65535;
4050
- if (l === 3)
4050
+ if (c === 3)
4051
4051
  return U >= 65536 >> F && U << F <= 1114111;
4052
4052
  throw new Error();
4053
4053
  }
@@ -4083,61 +4083,61 @@ var ur = { exports: {} };
4083
4083
  j.prototype.open = function(h, b) {
4084
4084
  this._abort(!0);
4085
4085
  var E = this, p = this._xhr, T = 1, S = 0;
4086
- this._abort = function(l) {
4087
- E._sendTimeout !== 0 && (i(E._sendTimeout), E._sendTimeout = 0), (T === 1 || T === 2 || T === 3) && (T = 4, p.onload = D, p.onerror = D, p.onabort = D, p.onprogress = D, p.onreadystatechange = D, p.abort(), S !== 0 && (i(S), S = 0), l || (E.readyState = 4, E.onabort(null), E.onreadystatechange())), T = 0;
4086
+ this._abort = function(c) {
4087
+ E._sendTimeout !== 0 && (i(E._sendTimeout), E._sendTimeout = 0), (T === 1 || T === 2 || T === 3) && (T = 4, p.onload = D, p.onerror = D, p.onabort = D, p.onprogress = D, p.onreadystatechange = D, p.abort(), S !== 0 && (i(S), S = 0), c || (E.readyState = 4, E.onabort(null), E.onreadystatechange())), T = 0;
4088
4088
  };
4089
4089
  var H = function() {
4090
4090
  if (T === 1) {
4091
- var l = 0, y = "", w = void 0;
4091
+ var c = 0, y = "", w = void 0;
4092
4092
  if ("contentType" in p)
4093
- l = 200, y = "OK", w = p.contentType;
4093
+ c = 200, y = "OK", w = p.contentType;
4094
4094
  else
4095
4095
  try {
4096
- l = p.status, y = p.statusText, w = p.getResponseHeader("Content-Type");
4096
+ c = p.status, y = p.statusText, w = p.getResponseHeader("Content-Type");
4097
4097
  } catch (A) {
4098
- l = 0, y = "", w = void 0;
4098
+ c = 0, y = "", w = void 0;
4099
4099
  }
4100
- l !== 0 && (T = 2, E.readyState = 2, E.status = l, E.statusText = y, E._contentType = w, E.onreadystatechange());
4100
+ c !== 0 && (T = 2, E.readyState = 2, E.status = c, E.statusText = y, E._contentType = w, E.onreadystatechange());
4101
4101
  }
4102
4102
  }, k = function() {
4103
4103
  if (H(), T === 2 || T === 3) {
4104
4104
  T = 3;
4105
- var l = "";
4105
+ var c = "";
4106
4106
  try {
4107
- l = p.responseText;
4107
+ c = p.responseText;
4108
4108
  } catch (y) {
4109
4109
  }
4110
- E.readyState = 3, E.responseText = l, E.onprogress();
4110
+ E.readyState = 3, E.responseText = c, E.onprogress();
4111
4111
  }
4112
- }, L = function(l, y) {
4112
+ }, L = function(c, y) {
4113
4113
  if ((y == null || y.preventDefault == null) && (y = {
4114
4114
  preventDefault: D
4115
4115
  }), k(), T === 1 || T === 2 || T === 3) {
4116
- if (T = 4, S !== 0 && (i(S), S = 0), E.readyState = 4, l === "load")
4116
+ if (T = 4, S !== 0 && (i(S), S = 0), E.readyState = 4, c === "load")
4117
4117
  E.onload(y);
4118
- else if (l === "error")
4118
+ else if (c === "error")
4119
4119
  E.onerror(y);
4120
- else if (l === "abort")
4120
+ else if (c === "abort")
4121
4121
  E.onabort(y);
4122
4122
  else
4123
4123
  throw new TypeError();
4124
4124
  E.onreadystatechange();
4125
4125
  }
4126
- }, U = function(l) {
4127
- p != null && (p.readyState === 4 ? (!("onload" in p) || !("onerror" in p) || !("onabort" in p)) && L(p.responseText === "" ? "error" : "load", l) : p.readyState === 3 ? "onprogress" in p || k() : p.readyState === 2 && H());
4126
+ }, U = function(c) {
4127
+ p != null && (p.readyState === 4 ? (!("onload" in p) || !("onerror" in p) || !("onabort" in p)) && L(p.responseText === "" ? "error" : "load", c) : p.readyState === 3 ? "onprogress" in p || k() : p.readyState === 2 && H());
4128
4128
  }, F = function() {
4129
4129
  S = n(function() {
4130
4130
  F();
4131
4131
  }, 500), p.readyState === 3 && k();
4132
4132
  };
4133
- "onload" in p && (p.onload = function(l) {
4134
- L("load", l);
4135
- }), "onerror" in p && (p.onerror = function(l) {
4136
- L("error", l);
4137
- }), "onabort" in p && (p.onabort = function(l) {
4138
- L("abort", l);
4139
- }), "onprogress" in p && (p.onprogress = k), "onreadystatechange" in p && (p.onreadystatechange = function(l) {
4140
- U(l);
4133
+ "onload" in p && (p.onload = function(c) {
4134
+ L("load", c);
4135
+ }), "onerror" in p && (p.onerror = function(c) {
4136
+ L("error", c);
4137
+ }), "onabort" in p && (p.onabort = function(c) {
4138
+ L("abort", c);
4139
+ }), "onprogress" in p && (p.onprogress = k), "onreadystatechange" in p && (p.onreadystatechange = function(c) {
4140
+ U(c);
4141
4141
  }), ("contentType" in p || !("ontimeout" in o.prototype)) && (b += (b.indexOf("?") === -1 ? "?" : "&") + "padding=true"), p.open(h, b, !0), "readyState" in p && (S = n(function() {
4142
4142
  F();
4143
4143
  }, 0));
@@ -4151,7 +4151,7 @@ var ur = { exports: {} };
4151
4151
  }, j.prototype.getAllResponseHeaders = function() {
4152
4152
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4153
4153
  }, j.prototype.send = function() {
4154
- if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4154
+ if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && l != null && l.readyState != null && l.readyState !== "complete") {
4155
4155
  var h = this;
4156
4156
  h._sendTimeout = n(function() {
4157
4157
  h._sendTimeout = 0, h.send();
@@ -4198,8 +4198,8 @@ var ur = { exports: {} };
4198
4198
  p(null);
4199
4199
  }, h.onreadystatechange = function() {
4200
4200
  if (h.readyState === o.HEADERS_RECEIVED) {
4201
- var U = h.status, F = h.statusText, l = h.getResponseHeader("Content-Type"), y = h.getAllResponseHeaders();
4202
- b(U, F, l, new ae(y));
4201
+ var U = h.status, F = h.statusText, c = h.getResponseHeader("Content-Type"), y = h.getAllResponseHeaders();
4202
+ b(U, F, c, new ae(y));
4203
4203
  }
4204
4204
  }, h.withCredentials = S;
4205
4205
  for (var L in H)
@@ -4221,8 +4221,8 @@ var ur = { exports: {} };
4221
4221
  credentials: S ? "include" : "same-origin",
4222
4222
  signal: U,
4223
4223
  cache: "no-store"
4224
- }).then(function(l) {
4225
- return k = l.body.getReader(), b(l.status, l.statusText, l.headers.get("Content-Type"), new ee(l.headers)), new f(function(y, w) {
4224
+ }).then(function(c) {
4225
+ return k = c.body.getReader(), b(c.status, c.statusText, c.headers.get("Content-Type"), new ee(c.headers)), new f(function(y, w) {
4226
4226
  var A = function() {
4227
4227
  k.read().then(function(O) {
4228
4228
  if (O.done)
@@ -4237,11 +4237,11 @@ var ur = { exports: {} };
4237
4237
  };
4238
4238
  A();
4239
4239
  });
4240
- }).catch(function(l) {
4241
- if (l.name !== "AbortError")
4242
- return l;
4243
- }).then(function(l) {
4244
- p(l);
4240
+ }).catch(function(c) {
4241
+ if (c.name !== "AbortError")
4242
+ return c;
4243
+ }).then(function(c) {
4244
+ p(c);
4245
4245
  }), {
4246
4246
  abort: function() {
4247
4247
  k != null && k.cancel(), L.abort();
@@ -4320,7 +4320,7 @@ var ur = { exports: {} };
4320
4320
  var Nt = m != null && d != null && "body" in d.prototype;
4321
4321
  function nt(h, b, E) {
4322
4322
  b = String(b);
4323
- var p = !!E.withCredentials, T = E.lastEventIdQueryParameterName || "lastEventId", S = Ge(1e3), H = De(E.heartbeatTimeout, 45e3), k = "", L = S, U = !1, F = 0, l = E.headers || {}, y = E.Transport, w = Nt && y == null ? void 0 : new j(y != null ? new y() : pt()), A = y != null && typeof y != "string" ? new y() : w == null ? new G() : new me(), O = void 0, C = 0, x = xe, Q = "", ge = "", le = "", je = "", J = fe, it = 0, we = 0, Ue = function(re, te, de, pe) {
4323
+ var p = !!E.withCredentials, T = E.lastEventIdQueryParameterName || "lastEventId", S = Ge(1e3), H = De(E.heartbeatTimeout, 45e3), k = "", L = S, U = !1, F = 0, c = E.headers || {}, y = E.Transport, w = Nt && y == null ? void 0 : new j(y != null ? new y() : pt()), A = y != null && typeof y != "string" ? new y() : w == null ? new G() : new me(), O = void 0, C = 0, x = xe, Q = "", ge = "", le = "", je = "", J = fe, it = 0, we = 0, Ue = function(re, te, de, pe) {
4324
4324
  if (x === ne)
4325
4325
  if (re === 200 && de != null && Rt.test(de)) {
4326
4326
  x = be, U = Date.now(), L = S, h.readyState = be;
@@ -4422,19 +4422,19 @@ var ur = { exports: {} };
4422
4422
  throw It(), Oe;
4423
4423
  }
4424
4424
  };
4425
- h.url = b, h.readyState = ne, h.withCredentials = p, h.headers = l, h._close = It, ot();
4425
+ h.url = b, h.readyState = ne, h.withCredentials = p, h.headers = c, h._close = It, ot();
4426
4426
  }
4427
4427
  ue.prototype = Object.create($.prototype), ue.prototype.CONNECTING = ne, ue.prototype.OPEN = be, ue.prototype.CLOSED = Me, ue.prototype.close = function() {
4428
4428
  this._close();
4429
4429
  }, ue.CONNECTING = ne, ue.OPEN = be, ue.CLOSED = Me, ue.prototype.withCredentials = void 0;
4430
- var mt = c;
4431
- o != null && (c == null || !("withCredentials" in c.prototype)) && (mt = ue), function(h) {
4430
+ var mt = u;
4431
+ o != null && (u == null || !("withCredentials" in u.prototype)) && (mt = ue), function(h) {
4432
4432
  {
4433
4433
  var b = h(t);
4434
4434
  b !== void 0 && (e.exports = b);
4435
4435
  }
4436
4436
  }(function(h) {
4437
- h.EventSourcePolyfill = ue, h.NativeEventSource = c, h.EventSource = mt;
4437
+ h.EventSourcePolyfill = ue, h.NativeEventSource = u, h.EventSource = mt;
4438
4438
  });
4439
4439
  })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : di : globalThis);
4440
4440
  })(ur, ur.exports);
@@ -4544,15 +4544,15 @@ var Lt = function() {
4544
4544
  if (a)
4545
4545
  if (this._parentage = null, Array.isArray(a))
4546
4546
  try {
4547
- for (var s = cr(a), c = s.next(); !c.done; c = s.next()) {
4548
- var u = c.value;
4549
- u.remove(this);
4547
+ for (var s = cr(a), u = s.next(); !u.done; u = s.next()) {
4548
+ var l = u.value;
4549
+ l.remove(this);
4550
4550
  }
4551
4551
  } catch (B) {
4552
4552
  t = { error: B };
4553
4553
  } finally {
4554
4554
  try {
4555
- c && !c.done && (r = s.return) && r.call(s);
4555
+ u && !u.done && (r = s.return) && r.call(s);
4556
4556
  } finally {
4557
4557
  if (t)
4558
4558
  throw t.error;
@@ -4760,8 +4760,8 @@ var Gr = function() {
4760
4760
  }, e.prototype.subscribe = function(t, r, n) {
4761
4761
  var i = this, o = pa(t) ? t : new pr(t, r, n);
4762
4762
  return Et(function() {
4763
- var a = i, s = a.operator, c = a.source;
4764
- o.add(s ? s.call(o, c) : c ? i._subscribe(o) : i._trySubscribe(o));
4763
+ var a = i, s = a.operator, u = a.source;
4764
+ o.add(s ? s.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
4765
4765
  }), o;
4766
4766
  }, e.prototype._trySubscribe = function(t) {
4767
4767
  try {
@@ -4776,8 +4776,8 @@ var Gr = function() {
4776
4776
  next: function(s) {
4777
4777
  try {
4778
4778
  t(s);
4779
- } catch (c) {
4780
- o(c), a.unsubscribe();
4779
+ } catch (u) {
4780
+ o(u), a.unsubscribe();
4781
4781
  }
4782
4782
  },
4783
4783
  error: o,
@@ -4844,11 +4844,11 @@ var ma = Cn(function(e) {
4844
4844
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
4845
4845
  try {
4846
4846
  for (var a = cr(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
4847
- var c = s.value;
4848
- c.next(r);
4847
+ var u = s.value;
4848
+ u.next(r);
4849
4849
  }
4850
- } catch (u) {
4851
- i = { error: u };
4850
+ } catch (l) {
4851
+ i = { error: l };
4852
4852
  } finally {
4853
4853
  try {
4854
4854
  s && !s.done && (o = a.return) && o.call(a);
@@ -4936,19 +4936,19 @@ var ma = Cn(function(e) {
4936
4936
  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;
4937
4937
  }
4938
4938
  return t.prototype.next = function(r) {
4939
- var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, c = n._windowTime;
4940
- i || (o.push(r), !a && o.push(s.now() + c)), this._trimBuffer(), e.prototype.next.call(this, r);
4939
+ var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, u = n._windowTime;
4940
+ i || (o.push(r), !a && o.push(s.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
4941
4941
  }, t.prototype._subscribe = function(r) {
4942
4942
  this._throwIfClosed(), this._trimBuffer();
4943
- for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), c = 0; c < s.length && !r.closed; c += o ? 1 : 2)
4944
- r.next(s[c]);
4943
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), u = 0; u < s.length && !r.closed; u += o ? 1 : 2)
4944
+ r.next(s[u]);
4945
4945
  return this._checkFinalizedStatuses(r), n;
4946
4946
  }, t.prototype._trimBuffer = function() {
4947
4947
  var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
4948
4948
  if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
4949
- for (var c = i.now(), u = 0, f = 1; f < o.length && o[f] <= c; f += 2)
4950
- u = f;
4951
- u && o.splice(0, u + 1);
4949
+ for (var u = i.now(), l = 0, f = 1; f < o.length && o[f] <= u; f += 2)
4950
+ l = f;
4951
+ l && o.splice(0, l + 1);
4952
4952
  }
4953
4953
  }, t;
4954
4954
  }(Rn);
@@ -4974,7 +4974,7 @@ function zr(e, t, r) {
4974
4974
  return n[64] = t[r], n;
4975
4975
  }
4976
4976
  function _a(e) {
4977
- let t, r, n, i, o, a, s, c, u, f, m, d, g = (
4977
+ let t, r, n, i, o, a, s, u, l, f, m, d, g = (
4978
4978
  /*showBalance*/
4979
4979
  e[5] && Wr(e)
4980
4980
  );
@@ -4983,11 +4983,11 @@ function _a(e) {
4983
4983
  t = X("button"), r = X("p"), n = Te(
4984
4984
  /*displayBalance*/
4985
4985
  e[7]
4986
- ), i = Be(), o = X("span"), a = Er("svg"), s = Er("path"), u = Be(), g && g.c(), f = Xn(), M(s, "id", "arrow"), M(s, "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(s, "transform", "translate(-274.511 -441.088)"), M(s, "fill", "#d1d1d1"), M(a, "xmlns", "http://www.w3.org/2000/svg"), M(a, "width", "14"), M(a, "height", "6.835"), M(a, "viewBox", "0 0 14 6.835"), M(o, "class", c = /*isModalDisplayed*/
4987
- e[4] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
4986
+ ), i = Be(), o = X("span"), a = Er("svg"), s = Er("path"), l = Be(), g && g.c(), f = Xn(), R(s, "id", "arrow"), R(s, "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"), R(s, "transform", "translate(-274.511 -441.088)"), R(s, "fill", "#d1d1d1"), R(a, "xmlns", "http://www.w3.org/2000/svg"), R(a, "width", "14"), R(a, "height", "6.835"), R(a, "viewBox", "0 0 14 6.835"), R(o, "class", u = /*isModalDisplayed*/
4987
+ e[4] ? "TriangleActive" : "TriangleInactive"), R(t, "class", "BalanceValue");
4988
4988
  },
4989
4989
  m(v, B) {
4990
- Ee(v, t, B), I(t, r), I(r, n), I(t, i), I(t, o), I(o, a), I(a, s), Ee(v, u, B), g && g.m(v, B), Ee(v, f, B), m || (d = ut(
4990
+ Ee(v, t, B), I(t, r), I(r, n), I(t, i), I(t, o), I(o, a), I(a, s), Ee(v, l, B), g && g.m(v, B), Ee(v, f, B), m || (d = ut(
4991
4991
  t,
4992
4992
  "click",
4993
4993
  /*click_handler*/
@@ -5001,12 +5001,12 @@ function _a(e) {
5001
5001
  /*displayBalance*/
5002
5002
  v[7]
5003
5003
  ), B[0] & /*isModalDisplayed*/
5004
- 16 && c !== (c = /*isModalDisplayed*/
5005
- v[4] ? "TriangleActive" : "TriangleInactive") && M(o, "class", c), /*showBalance*/
5004
+ 16 && u !== (u = /*isModalDisplayed*/
5005
+ v[4] ? "TriangleActive" : "TriangleInactive") && R(o, "class", u), /*showBalance*/
5006
5006
  v[5] ? g ? g.p(v, B) : (g = Wr(v), g.c(), g.m(f.parentNode, f)) : g && (g.d(1), g = null);
5007
5007
  },
5008
5008
  d(v) {
5009
- v && (_e(t), _e(u), _e(f)), g && g.d(v), m = !1, d();
5009
+ v && (_e(t), _e(l), _e(f)), g && g.d(v), m = !1, d();
5010
5010
  }
5011
5011
  };
5012
5012
  }
@@ -5017,7 +5017,7 @@ function Ea(e) {
5017
5017
  ), n;
5018
5018
  return {
5019
5019
  c() {
5020
- t = X("p"), n = Te(r), M(t, "class", "Loading");
5020
+ t = X("p"), n = Te(r), R(t, "class", "Loading");
5021
5021
  },
5022
5022
  m(i, o) {
5023
5023
  Ee(i, t, o), I(t, n);
@@ -5033,7 +5033,7 @@ function Ea(e) {
5033
5033
  };
5034
5034
  }
5035
5035
  function Wr(e) {
5036
- let t, r, n, i, o, a, s, c, u = (
5036
+ let t, r, n, i, o, a, s, u, l = (
5037
5037
  /*$_*/
5038
5038
  e[8]("Title") + ""
5039
5039
  ), f, m, d, g, v, B, K = (
@@ -5051,17 +5051,17 @@ function Wr(e) {
5051
5051
  );
5052
5052
  return {
5053
5053
  c() {
5054
- t = X("div"), r = X("button"), i = Be(), o = X("div"), a = X("div"), s = X("div"), c = X("p"), f = Te(u), m = Be(), d = X("div");
5054
+ t = X("div"), r = X("button"), i = Be(), o = X("div"), a = X("div"), s = X("div"), u = X("p"), f = Te(l), m = Be(), d = X("div");
5055
5055
  for (let P = 0; P < G.length; P += 1)
5056
5056
  G[P].c();
5057
- g = Be(), v = X("div"), B = X("button"), oe = Te(K), se = Be(), $ && $.c(), M(r, "class", n = "BalanceModalClose " + /*isModalDisplayed*/
5058
- (e[4] ? "Open" : "")), M(c, "class", "BalanceModalTitle"), M(s, "class", "BalanceModalHeader"), M(d, "class", "BalanceModalBody"), M(B, "class", "BalanceModalAction DepositButton"), M(v, "class", "BalanceModalFooter"), M(a, "class", D = "ModalContent " + /*isModalDisplayed*/
5059
- (e[4] ? "Open" : "")), M(o, "class", j = "BalanceModal " + /*isModalDisplayed*/
5060
- (e[4] ? "Open" : "")), M(t, "class", Y = "BalanceModalWrapper " + /*isModalDisplayed*/
5057
+ g = Be(), v = X("div"), B = X("button"), oe = Te(K), se = Be(), $ && $.c(), R(r, "class", n = "BalanceModalClose " + /*isModalDisplayed*/
5058
+ (e[4] ? "Open" : "")), R(u, "class", "BalanceModalTitle"), R(s, "class", "BalanceModalHeader"), R(d, "class", "BalanceModalBody"), R(B, "class", "BalanceModalAction DepositButton"), R(v, "class", "BalanceModalFooter"), R(a, "class", D = "ModalContent " + /*isModalDisplayed*/
5059
+ (e[4] ? "Open" : "")), R(o, "class", j = "BalanceModal " + /*isModalDisplayed*/
5060
+ (e[4] ? "Open" : "")), R(t, "class", Y = "BalanceModalWrapper " + /*isModalDisplayed*/
5061
5061
  (e[4] ? "Open" : ""));
5062
5062
  },
5063
5063
  m(P, W) {
5064
- Ee(P, t, W), I(t, r), I(t, i), I(t, o), I(o, a), I(a, s), I(s, c), I(c, f), I(a, m), I(a, d);
5064
+ Ee(P, t, W), I(t, r), I(t, i), I(t, o), I(o, a), I(a, s), I(s, u), I(u, f), I(a, m), I(a, d);
5065
5065
  for (let z = 0; z < G.length; z += 1)
5066
5066
  G[z] && G[z].m(d, null);
5067
5067
  I(a, g), I(a, v), I(v, B), I(B, oe), I(v, se), $ && $.m(v, null), ae || (me = [
@@ -5082,9 +5082,9 @@ function Wr(e) {
5082
5082
  p(P, W) {
5083
5083
  if (W[0] & /*isModalDisplayed*/
5084
5084
  16 && n !== (n = "BalanceModalClose " + /*isModalDisplayed*/
5085
- (P[4] ? "Open" : "")) && M(r, "class", n), W[0] & /*$_*/
5086
- 256 && u !== (u = /*$_*/
5087
- P[8]("Title") + "") && Ie(f, u), W[0] & /*balances, formatBalance, getProductType, $_*/
5085
+ (P[4] ? "Open" : "")) && R(r, "class", n), W[0] & /*$_*/
5086
+ 256 && l !== (l = /*$_*/
5087
+ P[8]("Title") + "") && Ie(f, l), W[0] & /*balances, formatBalance, getProductType, $_*/
5088
5088
  5380) {
5089
5089
  ee = xt(Object.keys(
5090
5090
  /*balances*/
@@ -5104,11 +5104,11 @@ function Wr(e) {
5104
5104
  P[8]("DepositButton") + "") && Ie(oe, K), /*balancelimitsbutton*/
5105
5105
  P[0] === "true" ? $ ? $.p(P, W) : ($ = Yr(P), $.c(), $.m(v, null)) : $ && ($.d(1), $ = null), W[0] & /*isModalDisplayed*/
5106
5106
  16 && D !== (D = "ModalContent " + /*isModalDisplayed*/
5107
- (P[4] ? "Open" : "")) && M(a, "class", D), W[0] & /*isModalDisplayed*/
5107
+ (P[4] ? "Open" : "")) && R(a, "class", D), W[0] & /*isModalDisplayed*/
5108
5108
  16 && j !== (j = "BalanceModal " + /*isModalDisplayed*/
5109
- (P[4] ? "Open" : "")) && M(o, "class", j), W[0] & /*isModalDisplayed*/
5109
+ (P[4] ? "Open" : "")) && R(o, "class", j), W[0] & /*isModalDisplayed*/
5110
5110
  16 && Y !== (Y = "BalanceModalWrapper " + /*isModalDisplayed*/
5111
- (P[4] ? "Open" : "")) && M(t, "class", Y);
5111
+ (P[4] ? "Open" : "")) && R(t, "class", Y);
5112
5112
  },
5113
5113
  d(P) {
5114
5114
  P && _e(t), tn(G, P), $ && $.d(), ae = !1, Qe(me);
@@ -5128,7 +5128,7 @@ function Zr(e) {
5128
5128
  /*balance*/
5129
5129
  e[64]
5130
5130
  ) + ""
5131
- ), s, c, u, f, m = (
5131
+ ), s, u, l, f, m = (
5132
5132
  /*formatBalance*/
5133
5133
  e[10](
5134
5134
  /*balance*/
@@ -5137,10 +5137,10 @@ function Zr(e) {
5137
5137
  ), d;
5138
5138
  return {
5139
5139
  c() {
5140
- t = X("div"), r = X("p"), i = Te(n), o = Be(), s = Te(a), c = Be(), u = X("p"), f = X("span"), d = Te(m), M(r, "class", "BalanceModalText"), M(f, "class", "BalanceModalAmount"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
5140
+ t = X("div"), r = X("p"), i = Te(n), o = Be(), s = Te(a), u = Be(), l = X("p"), f = X("span"), d = Te(m), R(r, "class", "BalanceModalText"), R(f, "class", "BalanceModalAmount"), R(l, "class", "BalanceModalValue"), R(t, "class", "BalanceModalRowLine");
5141
5141
  },
5142
5142
  m(g, v) {
5143
- Ee(g, t, v), I(t, r), I(r, i), I(r, o), I(r, s), I(t, c), I(t, u), I(u, f), I(f, d);
5143
+ Ee(g, t, v), I(t, r), I(r, i), I(r, o), I(r, s), I(t, u), I(t, l), I(l, f), I(f, d);
5144
5144
  },
5145
5145
  p(g, v) {
5146
5146
  v[0] & /*$_, balances*/
@@ -5166,50 +5166,54 @@ function Zr(e) {
5166
5166
  };
5167
5167
  }
5168
5168
  function qr(e) {
5169
- let t, r, n = xt(
5169
+ let t, r, n, i = xt(
5170
5170
  /*balances*/
5171
5171
  e[2][
5172
5172
  /*k*/
5173
5173
  e[61]
5174
5174
  ]
5175
- ), i = [];
5176
- for (let o = 0; o < n.length; o += 1)
5177
- i[o] = Zr(zr(e, n, o));
5175
+ ), o = [];
5176
+ for (let a = 0; a < i.length; a += 1)
5177
+ o[a] = Zr(zr(e, i, a));
5178
5178
  return {
5179
5179
  c() {
5180
5180
  t = X("div");
5181
- for (let o = 0; o < i.length; o += 1)
5182
- i[o].c();
5183
- r = Be(), M(t, "class", "BalanceModalRowBoth");
5181
+ for (let a = 0; a < o.length; a += 1)
5182
+ o[a].c();
5183
+ r = Be(), R(t, "class", n = "BalanceModalRowBoth " + /*k*/
5184
+ e[61]);
5184
5185
  },
5185
- m(o, a) {
5186
- Ee(o, t, a);
5187
- for (let s = 0; s < i.length; s += 1)
5188
- i[s] && i[s].m(t, null);
5186
+ m(a, s) {
5187
+ Ee(a, t, s);
5188
+ for (let u = 0; u < o.length; u += 1)
5189
+ o[u] && o[u].m(t, null);
5189
5190
  I(t, r);
5190
5191
  },
5191
- p(o, a) {
5192
- if (a[0] & /*formatBalance, balances, getProductType, $_*/
5192
+ p(a, s) {
5193
+ if (s[0] & /*formatBalance, balances, getProductType, $_*/
5193
5194
  5380) {
5194
- n = xt(
5195
+ i = xt(
5195
5196
  /*balances*/
5196
- o[2][
5197
+ a[2][
5197
5198
  /*k*/
5198
- o[61]
5199
+ a[61]
5199
5200
  ]
5200
5201
  );
5201
- let s;
5202
- for (s = 0; s < n.length; s += 1) {
5203
- const c = zr(o, n, s);
5204
- i[s] ? i[s].p(c, a) : (i[s] = Zr(c), i[s].c(), i[s].m(t, r));
5202
+ let u;
5203
+ for (u = 0; u < i.length; u += 1) {
5204
+ const l = zr(a, i, u);
5205
+ o[u] ? o[u].p(l, s) : (o[u] = Zr(l), o[u].c(), o[u].m(t, r));
5205
5206
  }
5206
- for (; s < i.length; s += 1)
5207
- i[s].d(1);
5208
- i.length = n.length;
5207
+ for (; u < o.length; u += 1)
5208
+ o[u].d(1);
5209
+ o.length = i.length;
5209
5210
  }
5211
+ s[0] & /*balances*/
5212
+ 4 && n !== (n = "BalanceModalRowBoth " + /*k*/
5213
+ a[61]) && R(t, "class", n);
5210
5214
  },
5211
- d(o) {
5212
- o && _e(t), tn(i, o);
5215
+ d(a) {
5216
+ a && _e(t), tn(o, a);
5213
5217
  }
5214
5218
  };
5215
5219
  }
@@ -5220,7 +5224,7 @@ function Yr(e) {
5220
5224
  ), n, i, o;
5221
5225
  return {
5222
5226
  c() {
5223
- t = X("button"), n = Te(r), M(t, "class", "BalanceModalAction LimitsButton");
5227
+ t = X("button"), n = Te(r), R(t, "class", "BalanceModalAction LimitsButton");
5224
5228
  },
5225
5229
  m(a, s) {
5226
5230
  Ee(a, t, s), I(t, n), i || (o = ut(
@@ -5244,7 +5248,7 @@ function Qr(e) {
5244
5248
  let t, r, n;
5245
5249
  return {
5246
5250
  c() {
5247
- t = X("button"), M(t, "class", "ShowBalanceModalOverlay");
5251
+ t = X("button"), R(t, "class", "ShowBalanceModalOverlay");
5248
5252
  },
5249
5253
  m(i, o) {
5250
5254
  Ee(i, t, o), r || (n = ut(
@@ -5262,47 +5266,47 @@ function Qr(e) {
5262
5266
  }
5263
5267
  function xa(e) {
5264
5268
  let t, r, n, i;
5265
- function o(u, f) {
5269
+ function o(l, f) {
5266
5270
  return (
5267
5271
  /*isLoading*/
5268
- u[3] ? Ea : _a
5272
+ l[3] ? Ea : _a
5269
5273
  );
5270
5274
  }
5271
- let a = o(e), s = a(e), c = (
5275
+ let a = o(e), s = a(e), u = (
5272
5276
  /*showBalance*/
5273
5277
  e[5] && Qr(e)
5274
5278
  );
5275
5279
  return {
5276
5280
  c() {
5277
- t = X("div"), r = X("div"), s.c(), i = Be(), c && c.c(), M(r, "class", n = "ShowBalance " + /*mobileView*/
5281
+ t = X("div"), r = X("div"), s.c(), i = Be(), u && u.c(), R(r, "class", n = "ShowBalance " + /*mobileView*/
5278
5282
  (e[6] ? "Mobile" : ""));
5279
5283
  },
5280
- m(u, f) {
5281
- Ee(u, t, f), I(t, r), s.m(r, null), I(t, i), c && c.m(t, null), e[37](t);
5284
+ m(l, f) {
5285
+ Ee(l, t, f), I(t, r), s.m(r, null), I(t, i), u && u.m(t, null), e[37](t);
5282
5286
  },
5283
- p(u, f) {
5284
- a === (a = o(u)) && s ? s.p(u, f) : (s.d(1), s = a(u), s && (s.c(), s.m(r, null))), f[0] & /*mobileView*/
5287
+ p(l, f) {
5288
+ a === (a = o(l)) && s ? s.p(l, f) : (s.d(1), s = a(l), s && (s.c(), s.m(r, null))), f[0] & /*mobileView*/
5285
5289
  64 && n !== (n = "ShowBalance " + /*mobileView*/
5286
- (u[6] ? "Mobile" : "")) && M(r, "class", n), /*showBalance*/
5287
- u[5] ? c ? c.p(u, f) : (c = Qr(u), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
5290
+ (l[6] ? "Mobile" : "")) && R(r, "class", n), /*showBalance*/
5291
+ l[5] ? u ? u.p(l, f) : (u = Qr(l), u.c(), u.m(t, null)) : u && (u.d(1), u = null);
5288
5292
  },
5289
5293
  i: ve,
5290
5294
  o: ve,
5291
- d(u) {
5292
- u && _e(t), s.d(), c && c.d(), e[37](null);
5295
+ d(l) {
5296
+ l && _e(t), s.d(), u && u.d(), e[37](null);
5293
5297
  }
5294
5298
  };
5295
5299
  }
5296
5300
  function wa(e, t, r) {
5297
5301
  let n;
5298
- jn(e, ta, (l) => r(8, n = l));
5299
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: a = "" } = t, { lang: s = "en" } = t, { mbsource: c = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: m = "" } = t, { gmversion: d = "gm16" } = t, { displaybalanceoption: g = "All" } = t, { totalcalculationmode: v = "totalCashAmount" } = t, { primarybalancemode: B } = t, { balancelimitsbutton: K = "false" } = t, { hideproducttype: oe = "" } = t, { currencylocale: se = "en" } = t, { currencydisplay: D = "symbol" } = t, { maximumfractiondigits: j = "2" } = t, { minimumfractiondigits: Y = "0" } = t, { customdisplayformat: ae = "" } = t, { alwaysshowdecimals: me = "true" } = t, ee, G = !0, $ = !1, P = !1, W = !1, z = !1, Re = window.navigator.userAgent, Ae, xe = "", ne = [], be, Me = "0";
5302
+ jn(e, ta, (c) => r(8, n = c));
5303
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: a = "" } = t, { lang: s = "en" } = t, { mbsource: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: m = "" } = t, { gmversion: d = "gm16" } = t, { displaybalanceoption: g = "All" } = t, { totalcalculationmode: v = "totalCashAmount" } = t, { primarybalancemode: B } = t, { balancelimitsbutton: K = "false" } = t, { hideproducttype: oe = "" } = t, { currencylocale: se = "en" } = t, { currencydisplay: D = "symbol" } = t, { maximumfractiondigits: j = "2" } = t, { minimumfractiondigits: Y = "0" } = t, { customdisplayformat: ae = "" } = t, { alwaysshowdecimals: me = "true" } = t, ee, G = !0, $ = !1, P = !1, W = !1, z = !1, Re = window.navigator.userAgent, Ae, xe = "", ne = [], be, Me = "0";
5300
5304
  const _ = {}, fe = ["totalCashAmount", "totalRealAmount"], tt = () => {
5301
- fetch(m).then((l) => l.json()).then((l) => Object.keys(l).forEach((y) => Ir(y, l[y]))).catch((l) => console.log(l));
5305
+ fetch(m).then((c) => c.json()).then((c) => Object.keys(c).forEach((y) => Ir(y, c[y]))).catch((c) => console.log(c));
5302
5306
  };
5303
- Object.keys(Dr).forEach((l) => Ir(l, Dr[l]));
5304
- const Ce = (l) => {
5305
- switch (l) {
5307
+ Object.keys(Dr).forEach((c) => Ir(c, Dr[c]));
5308
+ const Ce = (c) => {
5309
+ switch (c) {
5306
5310
  case "balance":
5307
5311
  window.postMessage(
5308
5312
  {
@@ -5327,9 +5331,9 @@ function wa(e, t, r) {
5327
5331
  );
5328
5332
  break;
5329
5333
  }
5330
- }, rt = (l) => {
5334
+ }, rt = (c) => {
5331
5335
  if (ae)
5332
- return Rt(l);
5336
+ return Rt(c);
5333
5337
  const y = se || s, w = {
5334
5338
  style: "currency",
5335
5339
  currency: xe,
@@ -5338,8 +5342,8 @@ function wa(e, t, r) {
5338
5342
  maximumFractionDigits: j === "" || isNaN(Number(j)) ? 2 : Number(j),
5339
5343
  minimumFractionDigits: Y === "" || isNaN(Number(Y)) ? 0 : Number(Y)
5340
5344
  };
5341
- return new Intl.NumberFormat(y, w).format(l);
5342
- }, Rt = (l) => {
5345
+ return new Intl.NumberFormat(y, w).format(c);
5346
+ }, Rt = (c) => {
5343
5347
  const y = [];
5344
5348
  let w = "";
5345
5349
  for (const A of ae)
@@ -5357,7 +5361,7 @@ function wa(e, t, r) {
5357
5361
  else if (O.toLowerCase() === "amount") {
5358
5362
  let x = ",", Q = ".", ge = 2;
5359
5363
  C && (C[0] !== " " && (x = C[0]), C[1] !== " " && (Q = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (ge = Number(C[2])));
5360
- let [le, je] = String(Math.floor(l * Ut(10, ge)) / Ut(10, ge)).split(".");
5364
+ let [le, je] = String(Math.floor(c * Ut(10, ge)) / Ut(10, ge)).split(".");
5361
5365
  w += le[0];
5362
5366
  for (let Ue = 1; Ue < le.length; ++Ue)
5363
5367
  (le.length - Ue) % 3 === 0 ? w += x + le[Ue] : w += le[Ue];
@@ -5376,9 +5380,9 @@ function wa(e, t, r) {
5376
5380
  }, Mt = () => jt(this, null, function* () {
5377
5381
  var y, w, A;
5378
5382
  r(3, G = !0);
5379
- const l = new URL(`${a}/v1/player/${i}/account`);
5383
+ const c = new URL(`${a}/v1/player/${i}/account`);
5380
5384
  try {
5381
- const O = yield fetch(l, {
5385
+ const O = yield fetch(c, {
5382
5386
  method: "GET",
5383
5387
  headers: { "X-SessionID": o }
5384
5388
  }), C = yield O.json();
@@ -5409,8 +5413,8 @@ function wa(e, t, r) {
5409
5413
  }
5410
5414
  }), Pt = () => {
5411
5415
  r(3, G = !0);
5412
- const l = new URL(`${a}/v2/player/${i}/balance`), y = new Headers();
5413
- y.append("X-SessionID", o), fetch(l, { method: "GET", headers: y }).then((A) => A.json()).then((A) => {
5416
+ const c = new URL(`${a}/v2/player/${i}/balance`), y = new Headers();
5417
+ y.append("X-SessionID", o), fetch(c, { method: "GET", headers: y }).then((A) => A.json()).then((A) => {
5414
5418
  A[v] || r(13, v = fe[0]);
5415
5419
  const O = A.items.find((x) => x.type === "Real" && x.walletAccountType === "Ordinary");
5416
5420
  if (xe = O.currency, P = !!O.productType, r(2, _.Total = [{ amount: 0 }], _), r(2, _.Real = [], _), r(2, _.Bonus = [], _), r(2, _.Credit = [], _), !P) {
@@ -5476,32 +5480,32 @@ function wa(e, t, r) {
5476
5480
  }, De = () => {
5477
5481
  if (Ae && Ae.close(), o.length < 1)
5478
5482
  return;
5479
- let l, y;
5483
+ let c, y;
5480
5484
  switch (d) {
5481
5485
  case "gm16":
5482
- l = new URL(`${a}/v2/player/${i}/information/updates`), y = (O) => Nt(O);
5486
+ c = new URL(`${a}/v2/player/${i}/information/updates`), y = (O) => Nt(O);
5483
5487
  break;
5484
5488
  case "gmcore":
5485
- l = new URL(`${a}/v1/player/${i}/balance/updates`), y = (O) => Pe(O);
5489
+ c = new URL(`${a}/v1/player/${i}/balance/updates`), y = (O) => Pe(O);
5486
5490
  break;
5487
5491
  }
5488
5492
  const w = {
5489
5493
  accept: "text/event-stream",
5490
5494
  "X-SessionId": o
5491
- }, A = new na.EventSourcePolyfill(l, { headers: w });
5495
+ }, A = new na.EventSourcePolyfill(c, { headers: w });
5492
5496
  Ae = A, A.addEventListener("message", y);
5493
- }, Ge = (l) => {
5497
+ }, Ge = (c) => {
5494
5498
  let y;
5495
5499
  try {
5496
- y = JSON.parse(l);
5500
+ y = JSON.parse(c);
5497
5501
  } catch (w) {
5498
5502
  console.log("Balance stream failed: ", w);
5499
5503
  return;
5500
5504
  }
5501
5505
  return y;
5502
- }, Pe = (l) => {
5506
+ }, Pe = (c) => {
5503
5507
  var O, C;
5504
- const y = Ge(l.data);
5508
+ const y = Ge(c.data);
5505
5509
  if (!y) {
5506
5510
  De();
5507
5511
  return;
@@ -5511,7 +5515,7 @@ function wa(e, t, r) {
5511
5515
  ne = ne.map((x) => (A && A[x.id] && (x = Gt(Ft({}, x), {
5512
5516
  balanceAmount: A[x.id].afterAmount
5513
5517
  })), w = (parseFloat(x == null ? void 0 : x.balanceAmount) + parseFloat(w)).toString(), x)), r(2, _.Real = [{ amount: (O = ne[0]) == null ? void 0 : O.balanceAmount }], _), r(2, _.Bonus = [{ amount: (C = ne[1]) == null ? void 0 : C.balanceAmount }], _), r(2, _.Total = [{ amount: Number(w) }], _);
5514
- }, ue = (l, y, w) => {
5518
+ }, ue = (c, y, w) => {
5515
5519
  let A = null;
5516
5520
  switch (w.walletAccountType) {
5517
5521
  case "Ordinary":
@@ -5523,15 +5527,15 @@ function wa(e, t, r) {
5523
5527
  default:
5524
5528
  A = w.afterAmount;
5525
5529
  }
5526
- return A === null ? l : A;
5530
+ return A === null ? c : A;
5527
5531
  }, pt = () => {
5528
5532
  switch (v) {
5529
5533
  case "totalCashAmount":
5530
- let l = 0;
5534
+ let c = 0;
5531
5535
  for (const w of ["Real", "Bonus"])
5532
5536
  for (const A of _[w])
5533
- l += Math.max(A.amount, 0);
5534
- r(2, _.Total[0].amount = l, _);
5537
+ c += Math.max(A.amount, 0);
5538
+ r(2, _.Total[0].amount = c, _);
5535
5539
  break;
5536
5540
  case "totalRealAmount":
5537
5541
  if (!P)
@@ -5541,8 +5545,8 @@ function wa(e, t, r) {
5541
5545
  y += w.amount;
5542
5546
  r(2, _.Total[0].amount = y, _);
5543
5547
  }
5544
- }, Nt = (l) => {
5545
- const y = Ge(l.data);
5548
+ }, Nt = (c) => {
5549
+ const y = Ge(c.data);
5546
5550
  if (!y) {
5547
5551
  De();
5548
5552
  return;
@@ -5560,8 +5564,8 @@ function wa(e, t, r) {
5560
5564
  O.productType === C.productType && (C.amount = A === "Real" ? ue(C.amount, be[C.productType], O) : O.afterAmount);
5561
5565
  }
5562
5566
  pt();
5563
- }, nt = (l) => {
5564
- switch (Ce("closebalance"), l) {
5567
+ }, nt = (c) => {
5568
+ switch (Ce("closebalance"), c) {
5565
5569
  case "deposit":
5566
5570
  window.postMessage({ type: "GoToDeposit" }, window.location.href);
5567
5571
  break;
@@ -5570,7 +5574,7 @@ function wa(e, t, r) {
5570
5574
  break;
5571
5575
  }
5572
5576
  typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5573
- }, mt = (l) => l === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, h = () => {
5577
+ }, mt = (c) => c === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, h = () => {
5574
5578
  fe.includes(v) || (console.error(`Unsupported value ('${v}') for totalcalculationmode parameter. Only the following values are supported ${fe}. Using default value ('${fe[0]}').`), r(13, v = fe[0]));
5575
5579
  }, b = () => {
5576
5580
  switch (ra(s), h(), d) {
@@ -5583,8 +5587,8 @@ function wa(e, t, r) {
5583
5587
  default:
5584
5588
  throw Error(`Invalid apiversion attribute: ${d}`);
5585
5589
  }
5586
- }, E = (l) => {
5587
- const { data: { type: y } = {} } = l || {};
5590
+ }, E = (c) => {
5591
+ const { data: { type: y } = {} } = c || {};
5588
5592
  switch (y) {
5589
5593
  case "LogoutSuccessfull":
5590
5594
  Ae.close();
@@ -5595,30 +5599,30 @@ function wa(e, t, r) {
5595
5599
  }
5596
5600
  }, p = () => {
5597
5601
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5598
- }, T = (l) => {
5602
+ }, T = (c) => {
5599
5603
  const y = oe.split(",").map((w) => w.trim());
5600
- return !l.productType || y.includes(l.productType) ? "" : n(l.productType);
5604
+ return !c.productType || y.includes(c.productType) ? "" : n(c.productType);
5601
5605
  };
5602
5606
  qn(() => (window.addEventListener("message", E, !1), r(6, z = ya(Re)), () => {
5603
5607
  window.removeEventListener("message", E), Ae && Ae.close();
5604
5608
  }));
5605
5609
  const S = () => Ce("balance"), H = () => Ce("closebalance"), k = () => nt("deposit"), L = () => nt("limits"), U = () => Ce("closebalance");
5606
- function F(l) {
5607
- Yt[l ? "unshift" : "push"](() => {
5608
- ee = l, r(1, ee);
5610
+ function F(c) {
5611
+ Yt[c ? "unshift" : "push"](() => {
5612
+ ee = c, r(1, ee);
5609
5613
  });
5610
5614
  }
5611
- return e.$$set = (l) => {
5612
- "userid" in l && r(14, i = l.userid), "session" in l && r(15, o = l.session), "endpoint" in l && r(16, a = l.endpoint), "lang" in l && r(17, s = l.lang), "mbsource" in l && r(18, c = l.mbsource), "clientstyling" in l && r(19, u = l.clientstyling), "clientstylingurl" in l && r(20, f = l.clientstylingurl), "translationurl" in l && r(21, m = l.translationurl), "gmversion" in l && r(22, d = l.gmversion), "displaybalanceoption" in l && r(23, g = l.displaybalanceoption), "totalcalculationmode" in l && r(13, v = l.totalcalculationmode), "primarybalancemode" in l && r(24, B = l.primarybalancemode), "balancelimitsbutton" in l && r(0, K = l.balancelimitsbutton), "hideproducttype" in l && r(25, oe = l.hideproducttype), "currencylocale" in l && r(26, se = l.currencylocale), "currencydisplay" in l && r(27, D = l.currencydisplay), "maximumfractiondigits" in l && r(28, j = l.maximumfractiondigits), "minimumfractiondigits" in l && r(29, Y = l.minimumfractiondigits), "customdisplayformat" in l && r(30, ae = l.customdisplayformat), "alwaysshowdecimals" in l && r(31, me = l.alwaysshowdecimals);
5615
+ return e.$$set = (c) => {
5616
+ "userid" in c && r(14, i = c.userid), "session" in c && r(15, o = c.session), "endpoint" in c && r(16, a = c.endpoint), "lang" in c && r(17, s = c.lang), "mbsource" in c && r(18, u = c.mbsource), "clientstyling" in c && r(19, l = c.clientstyling), "clientstylingurl" in c && r(20, f = c.clientstylingurl), "translationurl" in c && r(21, m = c.translationurl), "gmversion" in c && r(22, d = c.gmversion), "displaybalanceoption" in c && r(23, g = c.displaybalanceoption), "totalcalculationmode" in c && r(13, v = c.totalcalculationmode), "primarybalancemode" in c && r(24, B = c.primarybalancemode), "balancelimitsbutton" in c && r(0, K = c.balancelimitsbutton), "hideproducttype" in c && r(25, oe = c.hideproducttype), "currencylocale" in c && r(26, se = c.currencylocale), "currencydisplay" in c && r(27, D = c.currencydisplay), "maximumfractiondigits" in c && r(28, j = c.maximumfractiondigits), "minimumfractiondigits" in c && r(29, Y = c.minimumfractiondigits), "customdisplayformat" in c && r(30, ae = c.customdisplayformat), "alwaysshowdecimals" in c && r(31, me = c.alwaysshowdecimals);
5613
5617
  }, e.$$.update = () => {
5614
5618
  e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5615
5619
  12828672 && a && i && o && s && d && g && b(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5616
5620
  4308992 && a && i && o && d && De(), e.$$.dirty[0] & /*translationurl*/
5617
5621
  2097152 && m && tt(), e.$$.dirty[0] & /*balances*/
5618
5622
  4 && _.Total && p(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5619
- 524290 && u && ee && li(ee, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5623
+ 524290 && l && ee && li(ee, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5620
5624
  1048578 && f && ee && ci(ee, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5621
- 262146 && c && ee && hi(ee, `${c}.Style`), e.$$.dirty[0] & /*primarybalancemode, balances*/
5625
+ 262146 && u && ee && hi(ee, `${u}.Style`), e.$$.dirty[0] & /*primarybalancemode, balances*/
5622
5626
  16777220 && r(7, Me = (() => {
5623
5627
  switch (B) {
5624
5628
  case "Real":
@@ -5646,8 +5650,8 @@ function wa(e, t, r) {
5646
5650
  o,
5647
5651
  a,
5648
5652
  s,
5649
- c,
5650
5653
  u,
5654
+ l,
5651
5655
  f,
5652
5656
  m,
5653
5657
  d,