@everymatrix/casino-header-controller-nd 1.64.0 → 1.64.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,27 +10,27 @@ var Ze = (o, t, n) => t in o ? gt(o, t, { enumerable: !0, configurable: !0, writ
10
10
  wt.call(t, n) && Ze(o, n, t[n]);
11
11
  return o;
12
12
  }, et = (o, t) => mt(o, yt(t));
13
- var tt = (o, t, n) => new Promise((i, d) => {
13
+ var tt = (o, t, n) => new Promise((i, u) => {
14
14
  var c = (m) => {
15
15
  try {
16
16
  p(n.next(m));
17
17
  } catch (y) {
18
- d(y);
18
+ u(y);
19
19
  }
20
20
  }, g = (m) => {
21
21
  try {
22
22
  p(n.throw(m));
23
23
  } catch (y) {
24
- d(y);
24
+ u(y);
25
25
  }
26
26
  }, p = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(c, g);
27
27
  p((n = n.apply(o, t)).next());
28
28
  });
29
- import { b as bt, $ as Bt, N as Tt, S as St, i as Ct, s as _t, f as W, d as At, z as qe, g as pe, m as he, n as B, p as z, q as oe, r as _, v as Rt, w as Et, o as Ve, A as xt, D as ue, E as fe, F as nt, y as Mt, G as je, H as ut, C as Dt, K as Lt, L as Ot, M as kt, c as Ft, J as Nt } from "./CasinoHamburgerMenuNd-CeWCMWYl.js";
29
+ import { b as bt, $ as Bt, N as Tt, S as St, i as Ct, s as _t, f as W, d as At, z as qe, g as pe, m as he, n as B, p as j, q as oe, r as C, v as Rt, w as Et, o as Ve, A as xt, D as de, E as fe, F as nt, y as Mt, G as je, H as dt, C as Dt, K as Lt, L as Ot, M as kt, c as Ft, J as It } from "./CasinoHamburgerMenuNd-kNSb5kzp.js";
30
30
  function at(o, t) {
31
31
  bt(o, t);
32
32
  }
33
- function It(o) {
33
+ function Nt(o) {
34
34
  Bt.set(o);
35
35
  }
36
36
  const ot = {
@@ -241,7 +241,7 @@ var We = { exports: {} };
241
241
  */
242
242
  (function(o, t) {
243
243
  (function(n) {
244
- var i = n.setTimeout, d = n.clearTimeout, c = n.XMLHttpRequest, g = n.XDomainRequest, p = n.ActiveXObject, m = n.EventSource, y = n.document, A = n.Promise, D = n.fetch, L = n.Response, O = n.TextDecoder, N = n.TextEncoder, E = n.AbortController;
244
+ var i = n.setTimeout, u = n.clearTimeout, c = n.XMLHttpRequest, g = n.XDomainRequest, p = n.ActiveXObject, m = n.EventSource, y = n.document, A = n.Promise, k = n.fetch, F = n.Response, I = n.TextDecoder, N = n.TextEncoder, E = n.AbortController;
245
245
  if (typeof window != "undefined" && typeof y != "undefined" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(e) {
246
246
  y.readyState = "complete";
247
247
  }, !1)), c == null && p != null && (c = function() {
@@ -253,8 +253,8 @@ var We = { exports: {} };
253
253
  }), Date.now || (Date.now = function() {
254
254
  return (/* @__PURE__ */ new Date()).getTime();
255
255
  }), E == null) {
256
- var w = D;
257
- D = function(e, r) {
256
+ var w = k;
257
+ k = function(e, r) {
258
258
  var s = r.signal;
259
259
  return w(e, { headers: r.headers, credentials: r.credentials, cache: r.cache }).then(function(a) {
260
260
  var h = a.body.getReader();
@@ -282,93 +282,93 @@ var We = { exports: {} };
282
282
  this.bitsNeeded = 0, this.codePoint = 0;
283
283
  }
284
284
  T.prototype.decode = function(e) {
285
- function r(R, M, v) {
285
+ function r(R, D, v) {
286
286
  if (v === 1)
287
- return R >= 128 >> M && R << M <= 2047;
287
+ return R >= 128 >> D && R << D <= 2047;
288
288
  if (v === 2)
289
- return R >= 2048 >> M && R << M <= 55295 || R >= 57344 >> M && R << M <= 65535;
289
+ return R >= 2048 >> D && R << D <= 55295 || R >= 57344 >> D && R << D <= 65535;
290
290
  if (v === 3)
291
- return R >= 65536 >> M && R << M <= 1114111;
291
+ return R >= 65536 >> D && R << D <= 1114111;
292
292
  throw new Error();
293
293
  }
294
- function s(R, M) {
294
+ function s(R, D) {
295
295
  if (R === 6 * 1)
296
- return M >> 6 > 15 ? 3 : M > 31 ? 2 : 1;
296
+ return D >> 6 > 15 ? 3 : D > 31 ? 2 : 1;
297
297
  if (R === 6 * 2)
298
- return M > 15 ? 3 : 2;
298
+ return D > 15 ? 3 : 2;
299
299
  if (R === 6 * 3)
300
300
  return 3;
301
301
  throw new Error();
302
302
  }
303
- for (var a = 65533, h = "", f = this.bitsNeeded, l = this.codePoint, C = 0; C < e.length; C += 1) {
304
- var b = e[C];
303
+ for (var a = 65533, h = "", f = this.bitsNeeded, l = this.codePoint, S = 0; S < e.length; S += 1) {
304
+ var b = e[S];
305
305
  f !== 0 && (b < 128 || b > 191 || !r(l << 6 | b & 63, f - 6, s(f, l))) && (f = 0, l = a, h += String.fromCharCode(l)), f === 0 ? (b >= 0 && b <= 127 ? (f = 0, l = b) : b >= 192 && b <= 223 ? (f = 6 * 1, l = b & 31) : b >= 224 && b <= 239 ? (f = 6 * 2, l = b & 15) : b >= 240 && b <= 247 ? (f = 6 * 3, l = b & 7) : (f = 0, l = a), f !== 0 && !r(l, f, s(f, l)) && (f = 0, l = a)) : (f -= 6, l = l << 6 | b & 63), f === 0 && (l <= 65535 ? h += String.fromCharCode(l) : (h += String.fromCharCode(55296 + (l - 65535 - 1 >> 10)), h += String.fromCharCode(56320 + (l - 65535 - 1 & 1023))));
306
306
  }
307
307
  return this.bitsNeeded = f, this.codePoint = l, h;
308
308
  };
309
309
  var H = function() {
310
310
  try {
311
- return new O().decode(new N().encode("test"), { stream: !0 }) === "test";
311
+ return new I().decode(new N().encode("test"), { stream: !0 }) === "test";
312
312
  } catch (e) {
313
313
  console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + e);
314
314
  }
315
315
  return !1;
316
316
  };
317
- (O == null || N == null || !H()) && (O = T);
318
- var k = function() {
317
+ (I == null || N == null || !H()) && (I = T);
318
+ var x = function() {
319
319
  };
320
- function V(e) {
321
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = k, this.onload = k, this.onerror = k, this.onreadystatechange = k, this._contentType = "", this._xhr = e, this._sendTimeout = 0, this._abort = k;
320
+ function z(e) {
321
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = x, this.onload = x, this.onerror = x, this.onreadystatechange = x, this._contentType = "", this._xhr = e, this._sendTimeout = 0, this._abort = x;
322
322
  }
323
- V.prototype.open = function(e, r) {
323
+ z.prototype.open = function(e, r) {
324
324
  this._abort(!0);
325
325
  var s = this, a = this._xhr, h = 1, f = 0;
326
326
  this._abort = function(v) {
327
- s._sendTimeout !== 0 && (d(s._sendTimeout), s._sendTimeout = 0), (h === 1 || h === 2 || h === 3) && (h = 4, a.onload = k, a.onerror = k, a.onabort = k, a.onprogress = k, a.onreadystatechange = k, a.abort(), f !== 0 && (d(f), f = 0), v || (s.readyState = 4, s.onabort(null), s.onreadystatechange())), h = 0;
327
+ s._sendTimeout !== 0 && (u(s._sendTimeout), s._sendTimeout = 0), (h === 1 || h === 2 || h === 3) && (h = 4, a.onload = x, a.onerror = x, a.onabort = x, a.onprogress = x, a.onreadystatechange = x, a.abort(), f !== 0 && (u(f), f = 0), v || (s.readyState = 4, s.onabort(null), s.onreadystatechange())), h = 0;
328
328
  };
329
329
  var l = function() {
330
330
  if (h === 1) {
331
- var v = 0, I = "", se = void 0;
331
+ var v = 0, V = "", se = void 0;
332
332
  if ("contentType" in a)
333
- v = 200, I = "OK", se = a.contentType;
333
+ v = 200, V = "OK", se = a.contentType;
334
334
  else
335
335
  try {
336
- v = a.status, I = a.statusText, se = a.getResponseHeader("Content-Type");
336
+ v = a.status, V = a.statusText, se = a.getResponseHeader("Content-Type");
337
337
  } catch (Me) {
338
- v = 0, I = "", se = void 0;
338
+ v = 0, V = "", se = void 0;
339
339
  }
340
- v !== 0 && (h = 2, s.readyState = 2, s.status = v, s.statusText = I, s._contentType = se, s.onreadystatechange());
340
+ v !== 0 && (h = 2, s.readyState = 2, s.status = v, s.statusText = V, s._contentType = se, s.onreadystatechange());
341
341
  }
342
- }, C = function() {
342
+ }, S = function() {
343
343
  if (l(), h === 2 || h === 3) {
344
344
  h = 3;
345
345
  var v = "";
346
346
  try {
347
347
  v = a.responseText;
348
- } catch (I) {
348
+ } catch (V) {
349
349
  }
350
350
  s.readyState = 3, s.responseText = v, s.onprogress();
351
351
  }
352
- }, b = function(v, I) {
353
- if ((I == null || I.preventDefault == null) && (I = {
354
- preventDefault: k
355
- }), C(), h === 1 || h === 2 || h === 3) {
356
- if (h = 4, f !== 0 && (d(f), f = 0), s.readyState = 4, v === "load")
357
- s.onload(I);
352
+ }, b = function(v, V) {
353
+ if ((V == null || V.preventDefault == null) && (V = {
354
+ preventDefault: x
355
+ }), S(), h === 1 || h === 2 || h === 3) {
356
+ if (h = 4, f !== 0 && (u(f), f = 0), s.readyState = 4, v === "load")
357
+ s.onload(V);
358
358
  else if (v === "error")
359
- s.onerror(I);
359
+ s.onerror(V);
360
360
  else if (v === "abort")
361
- s.onabort(I);
361
+ s.onabort(V);
362
362
  else
363
363
  throw new TypeError();
364
364
  s.onreadystatechange();
365
365
  }
366
366
  }, R = function(v) {
367
- a != null && (a.readyState === 4 ? (!("onload" in a) || !("onerror" in a) || !("onabort" in a)) && b(a.responseText === "" ? "error" : "load", v) : a.readyState === 3 ? "onprogress" in a || C() : a.readyState === 2 && l());
368
- }, M = function() {
367
+ a != null && (a.readyState === 4 ? (!("onload" in a) || !("onerror" in a) || !("onabort" in a)) && b(a.responseText === "" ? "error" : "load", v) : a.readyState === 3 ? "onprogress" in a || S() : a.readyState === 2 && l());
368
+ }, D = function() {
369
369
  f = i(function() {
370
- M();
371
- }, 500), a.readyState === 3 && C();
370
+ D();
371
+ }, 500), a.readyState === 3 && S();
372
372
  };
373
373
  "onload" in a && (a.onload = function(v) {
374
374
  b("load", v);
@@ -376,21 +376,21 @@ var We = { exports: {} };
376
376
  b("error", v);
377
377
  }), "onabort" in a && (a.onabort = function(v) {
378
378
  b("abort", v);
379
- }), "onprogress" in a && (a.onprogress = C), "onreadystatechange" in a && (a.onreadystatechange = function(v) {
379
+ }), "onprogress" in a && (a.onprogress = S), "onreadystatechange" in a && (a.onreadystatechange = function(v) {
380
380
  R(v);
381
381
  }), ("contentType" in a || !("ontimeout" in c.prototype)) && (r += (r.indexOf("?") === -1 ? "?" : "&") + "padding=true"), a.open(e, r, !0), "readyState" in a && (f = i(function() {
382
- M();
382
+ D();
383
383
  }, 0));
384
- }, V.prototype.abort = function() {
384
+ }, z.prototype.abort = function() {
385
385
  this._abort(!1);
386
- }, V.prototype.getResponseHeader = function(e) {
386
+ }, z.prototype.getResponseHeader = function(e) {
387
387
  return this._contentType;
388
- }, V.prototype.setRequestHeader = function(e, r) {
388
+ }, z.prototype.setRequestHeader = function(e, r) {
389
389
  var s = this._xhr;
390
390
  "setRequestHeader" in s && s.setRequestHeader(e, r);
391
- }, V.prototype.getAllResponseHeaders = function() {
391
+ }, z.prototype.getAllResponseHeaders = function() {
392
392
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
393
- }, V.prototype.send = function() {
393
+ }, z.prototype.send = function() {
394
394
  if ((!("ontimeout" in c.prototype) || !("sendAsBinary" in c.prototype) && !("mozAnon" in c.prototype)) && y != null && y.readyState != null && y.readyState !== "complete") {
395
395
  var e = this;
396
396
  e._sendTimeout = i(function() {
@@ -414,8 +414,8 @@ var We = { exports: {} };
414
414
  function ee(e) {
415
415
  for (var r = /* @__PURE__ */ Object.create(null), s = e.split(`\r
416
416
  `), a = 0; a < s.length; a += 1) {
417
- var h = s[a], f = h.split(": "), l = f.shift(), C = f.join(": ");
418
- r[re(l)] = C;
417
+ var h = s[a], f = h.split(": "), l = f.shift(), S = f.join(": ");
418
+ r[re(l)] = S;
419
419
  }
420
420
  this._map = r;
421
421
  }
@@ -426,10 +426,10 @@ var We = { exports: {} };
426
426
  }
427
427
  Y.prototype.open = function(e, r, s, a, h, f, l) {
428
428
  e.open("GET", h);
429
- var C = 0;
429
+ var S = 0;
430
430
  e.onprogress = function() {
431
- var R = e.responseText, M = R.slice(C);
432
- C += M.length, s(M);
431
+ var R = e.responseText, D = R.slice(S);
432
+ S += D.length, s(D);
433
433
  }, e.onerror = function(R) {
434
434
  R.preventDefault(), a(new Error("NetworkError"));
435
435
  }, e.onload = function() {
@@ -438,37 +438,37 @@ var We = { exports: {} };
438
438
  a(null);
439
439
  }, e.onreadystatechange = function() {
440
440
  if (e.readyState === c.HEADERS_RECEIVED) {
441
- var R = e.status, M = e.statusText, v = e.getResponseHeader("Content-Type"), I = e.getAllResponseHeaders();
442
- r(R, M, v, new ee(I));
441
+ var R = e.status, D = e.statusText, v = e.getResponseHeader("Content-Type"), V = e.getAllResponseHeaders();
442
+ r(R, D, v, new ee(V));
443
443
  }
444
444
  }, e.withCredentials = f;
445
445
  for (var b in l)
446
446
  Object.prototype.hasOwnProperty.call(l, b) && e.setRequestHeader(b, l[b]);
447
447
  return e.send(), e;
448
448
  };
449
- function F(e) {
449
+ function L(e) {
450
450
  this._headers = e;
451
451
  }
452
- F.prototype.get = function(e) {
452
+ L.prototype.get = function(e) {
453
453
  return this._headers.get(e);
454
454
  };
455
- function S() {
455
+ function _() {
456
456
  }
457
- S.prototype.open = function(e, r, s, a, h, f, l) {
458
- var C = null, b = new E(), R = b.signal, M = new O();
459
- return D(h, {
457
+ _.prototype.open = function(e, r, s, a, h, f, l) {
458
+ var S = null, b = new E(), R = b.signal, D = new I();
459
+ return k(h, {
460
460
  headers: l,
461
461
  credentials: f ? "include" : "same-origin",
462
462
  signal: R,
463
463
  cache: "no-store"
464
464
  }).then(function(v) {
465
- return C = v.body.getReader(), r(v.status, v.statusText, v.headers.get("Content-Type"), new F(v.headers)), new A(function(I, se) {
465
+ return S = v.body.getReader(), r(v.status, v.statusText, v.headers.get("Content-Type"), new L(v.headers)), new A(function(V, se) {
466
466
  var Me = function() {
467
- C.read().then(function(Q) {
467
+ S.read().then(function(Q) {
468
468
  if (Q.done)
469
- I(void 0);
469
+ V(void 0);
470
470
  else {
471
- var X = M.decode(Q.value, { stream: !0 });
471
+ var X = D.decode(Q.value, { stream: !0 });
472
472
  s(X), Me();
473
473
  }
474
474
  }).catch(function(Q) {
@@ -484,19 +484,19 @@ var We = { exports: {} };
484
484
  a(v);
485
485
  }), {
486
486
  abort: function() {
487
- C != null && C.cancel(), b.abort();
487
+ S != null && S.cancel(), b.abort();
488
488
  }
489
489
  };
490
490
  };
491
- function j() {
491
+ function O() {
492
492
  this._listeners = /* @__PURE__ */ Object.create(null);
493
493
  }
494
- function x(e) {
494
+ function M(e) {
495
495
  i(function() {
496
496
  throw e;
497
497
  }, 0);
498
498
  }
499
- j.prototype.dispatchEvent = function(e) {
499
+ O.prototype.dispatchEvent = function(e) {
500
500
  e.target = this;
501
501
  var r = this._listeners[e.type];
502
502
  if (r != null)
@@ -505,17 +505,17 @@ var We = { exports: {} };
505
505
  try {
506
506
  typeof h.handleEvent == "function" ? h.handleEvent(e) : h.call(this, e);
507
507
  } catch (f) {
508
- x(f);
508
+ M(f);
509
509
  }
510
510
  }
511
- }, j.prototype.addEventListener = function(e, r) {
511
+ }, O.prototype.addEventListener = function(e, r) {
512
512
  e = String(e);
513
513
  var s = this._listeners, a = s[e];
514
514
  a == null && (a = [], s[e] = a);
515
515
  for (var h = !1, f = 0; f < a.length; f += 1)
516
516
  a[f] === r && (h = !0);
517
517
  h || a.push(r);
518
- }, j.prototype.removeEventListener = function(e, r) {
518
+ }, O.prototype.removeEventListener = function(e, r) {
519
519
  e = String(e);
520
520
  var s = this._listeners, a = s[e];
521
521
  if (a != null) {
@@ -524,45 +524,45 @@ var We = { exports: {} };
524
524
  h.length === 0 ? delete s[e] : s[e] = h;
525
525
  }
526
526
  };
527
- function u(e) {
527
+ function d(e) {
528
528
  this.type = e, this.target = void 0;
529
529
  }
530
530
  function ge(e, r) {
531
- u.call(this, e), this.data = r.data, this.lastEventId = r.lastEventId;
531
+ d.call(this, e), this.data = r.data, this.lastEventId = r.lastEventId;
532
532
  }
533
- ge.prototype = Object.create(u.prototype);
533
+ ge.prototype = Object.create(d.prototype);
534
534
  function Re(e, r) {
535
- u.call(this, e), this.status = r.status, this.statusText = r.statusText, this.headers = r.headers;
535
+ d.call(this, e), this.status = r.status, this.statusText = r.statusText, this.headers = r.headers;
536
536
  }
537
- Re.prototype = Object.create(u.prototype);
537
+ Re.prototype = Object.create(d.prototype);
538
538
  function me(e, r) {
539
- u.call(this, e), this.error = r.error;
539
+ d.call(this, e), this.error = r.error;
540
540
  }
541
- me.prototype = Object.create(u.prototype);
542
- var Te = -1, ie = 0, ye = 1, we = 2, be = -1, te = 0, Ee = 1, Se = 2, Le = 3, ze = /^text\/event\-stream(;.*)?$/i, Oe = 1e3, He = 18e6, xe = function(e, r) {
541
+ me.prototype = Object.create(d.prototype);
542
+ var Te = -1, ie = 0, ye = 1, we = 2, be = -1, te = 0, Ee = 1, Se = 2, Le = 3, He = /^text\/event\-stream(;.*)?$/i, Oe = 1e3, ze = 18e6, xe = function(e, r) {
543
543
  var s = e == null ? r : parseInt(e, 10);
544
544
  return s !== s && (s = r), Ce(s);
545
545
  }, Ce = function(e) {
546
- return Math.min(Math.max(e, Oe), He);
546
+ return Math.min(Math.max(e, Oe), ze);
547
547
  }, ve = function(e, r, s) {
548
548
  try {
549
549
  typeof r == "function" && r.call(e, s);
550
550
  } catch (a) {
551
- x(a);
551
+ M(a);
552
552
  }
553
553
  };
554
554
  function J(e, r) {
555
- j.call(this), r = r || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Ge(this, e, r);
555
+ O.call(this), r = r || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Ge(this, e, r);
556
556
  }
557
557
  function Ue() {
558
558
  return c != null && "withCredentials" in c.prototype || g == null ? new c() : new g();
559
559
  }
560
- var Pe = D != null && L != null && "body" in L.prototype;
560
+ var Pe = k != null && F != null && "body" in F.prototype;
561
561
  function Ge(e, r, s) {
562
562
  r = String(r);
563
- var a = !!s.withCredentials, h = s.lastEventIdQueryParameterName || "lastEventId", f = Ce(1e3), l = xe(s.heartbeatTimeout, 45e3), C = "", b = f, R = !1, M = 0, v = s.headers || {}, I = s.Transport, se = Pe && I == null ? void 0 : new V(I != null ? new I() : Ue()), Me = I != null && typeof I != "string" ? new I() : se == null ? new S() : new Y(), Q = void 0, X = 0, ne = Te, _e = "", Fe = "", le = "", Ne = "", K = te, Xe = 0, Be = 0, pt = function(P, U, Z, $) {
563
+ var a = !!s.withCredentials, h = s.lastEventIdQueryParameterName || "lastEventId", f = Ce(1e3), l = xe(s.heartbeatTimeout, 45e3), S = "", b = f, R = !1, D = 0, v = s.headers || {}, V = s.Transport, se = Pe && V == null ? void 0 : new z(V != null ? new V() : Ue()), Me = V != null && typeof V != "string" ? new V() : se == null ? new _() : new Y(), Q = void 0, X = 0, ne = Te, _e = "", Fe = "", le = "", Ie = "", K = te, Xe = 0, Be = 0, pt = function(P, U, Z, $) {
564
564
  if (ne === ie)
565
- if (P === 200 && Z != null && ze.test(Z)) {
565
+ if (P === 200 && Z != null && He.test(Z)) {
566
566
  ne = ye, R = Date.now(), b = f, e.readyState = ye;
567
567
  var q = new Re("open", {
568
568
  status: P,
@@ -586,8 +586,8 @@ var We = { exports: {} };
586
586
  var $ = P.charCodeAt(Z);
587
587
  ($ === 10 || $ === 13) && (U = Z);
588
588
  }
589
- var q = (U !== -1 ? Ne : "") + P.slice(0, U + 1);
590
- Ne = (U === -1 ? Ne : "") + P.slice(U + 1), P !== "" && (R = Date.now(), M += P.length);
589
+ var q = (U !== -1 ? Ie : "") + P.slice(0, U + 1);
590
+ Ie = (U === -1 ? Ie : "") + P.slice(U + 1), P !== "" && (R = Date.now(), D += P.length);
591
591
  for (var G = 0; G < q.length; G += 1) {
592
592
  var $ = q.charCodeAt(G);
593
593
  if (K === be && $ === 10)
@@ -595,15 +595,15 @@ var We = { exports: {} };
595
595
  else if (K === be && (K = te), $ === 13 || $ === 10) {
596
596
  if (K !== te) {
597
597
  K === Ee && (Be = G + 1);
598
- var ce = q.slice(Xe, Be - 1), de = q.slice(Be + (Be < G && q.charCodeAt(Be) === 32 ? 1 : 0), G);
598
+ var ce = q.slice(Xe, Be - 1), ue = q.slice(Be + (Be < G && q.charCodeAt(Be) === 32 ? 1 : 0), G);
599
599
  ce === "data" ? (_e += `
600
- `, _e += de) : ce === "id" ? Fe = de : ce === "event" ? le = de : ce === "retry" ? (f = xe(de, f), b = f) : ce === "heartbeatTimeout" && (l = xe(de, l), X !== 0 && (d(X), X = i(function() {
600
+ `, _e += ue) : ce === "id" ? Fe = ue : ce === "event" ? le = ue : ce === "retry" ? (f = xe(ue, f), b = f) : ce === "heartbeatTimeout" && (l = xe(ue, l), X !== 0 && (u(X), X = i(function() {
601
601
  De();
602
602
  }, l)));
603
603
  }
604
604
  if (K === te) {
605
605
  if (_e !== "") {
606
- C = Fe, le === "" && (le = "message");
606
+ S = Fe, le === "" && (le = "message");
607
607
  var Ae = new ge(le, {
608
608
  data: _e.slice(1),
609
609
  lastEventId: Fe
@@ -620,18 +620,18 @@ var We = { exports: {} };
620
620
  }
621
621
  }, Je = function(P) {
622
622
  if (ne === ye || ne === ie) {
623
- ne = Te, X !== 0 && (d(X), X = 0), X = i(function() {
623
+ ne = Te, X !== 0 && (u(X), X = 0), X = i(function() {
624
624
  De();
625
625
  }, b), b = Ce(Math.min(f * 16, b * 2)), e.readyState = ie;
626
626
  var U = new me("error", { error: P });
627
627
  e.dispatchEvent(U), ve(e, e.onerror, U), P != null && console.error(P);
628
628
  }
629
629
  }, Ke = function() {
630
- ne = we, Q != null && (Q.abort(), Q = void 0), X !== 0 && (d(X), X = 0), e.readyState = we;
630
+ ne = we, Q != null && (Q.abort(), Q = void 0), X !== 0 && (u(X), X = 0), e.readyState = we;
631
631
  }, De = function() {
632
632
  if (X = 0, ne !== Te) {
633
633
  if (!R && Q != null)
634
- Je(new Error("No activity within " + l + " milliseconds. " + (ne === ie ? "No response received." : M + " chars received.") + " Reconnecting.")), Q != null && (Q.abort(), Q = void 0);
634
+ Je(new Error("No activity within " + l + " milliseconds. " + (ne === ie ? "No response received." : D + " chars received.") + " Reconnecting.")), Q != null && (Q.abort(), Q = void 0);
635
635
  else {
636
636
  var P = Math.max((R || Date.now()) + l - Date.now(), 1);
637
637
  R = !1, X = i(function() {
@@ -640,15 +640,15 @@ var We = { exports: {} };
640
640
  }
641
641
  return;
642
642
  }
643
- R = !1, M = 0, X = i(function() {
643
+ R = !1, D = 0, X = i(function() {
644
644
  De();
645
- }, l), ne = ie, _e = "", le = "", Fe = C, Ne = "", Xe = 0, Be = 0, K = te;
645
+ }, l), ne = ie, _e = "", le = "", Fe = S, Ie = "", Xe = 0, Be = 0, K = te;
646
646
  var U = r;
647
- if (r.slice(0, 5) !== "data:" && r.slice(0, 5) !== "blob:" && C !== "") {
647
+ if (r.slice(0, 5) !== "data:" && r.slice(0, 5) !== "blob:" && S !== "") {
648
648
  var Z = r.indexOf("?");
649
- U = Z === -1 ? r : r.slice(0, Z + 1) + r.slice(Z + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(de, Ae) {
650
- return Ae === h ? "" : de;
651
- }), U += (r.indexOf("?") === -1 ? "?" : "&") + h + "=" + encodeURIComponent(C);
649
+ U = Z === -1 ? r : r.slice(0, Z + 1) + r.slice(Z + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ue, Ae) {
650
+ return Ae === h ? "" : ue;
651
+ }), U += (r.indexOf("?") === -1 ? "?" : "&") + h + "=" + encodeURIComponent(S);
652
652
  }
653
653
  var $ = e.withCredentials, q = {};
654
654
  q.Accept = "text/event-stream";
@@ -658,13 +658,13 @@ var We = { exports: {} };
658
658
  Object.prototype.hasOwnProperty.call(G, ce) && (q[ce] = G[ce]);
659
659
  try {
660
660
  Q = Me.open(se, pt, ht, Je, U, $, q);
661
- } catch (de) {
662
- throw Ke(), de;
661
+ } catch (ue) {
662
+ throw Ke(), ue;
663
663
  }
664
664
  };
665
665
  e.url = r, e.readyState = ie, e.withCredentials = a, e.headers = v, e._close = Ke, De();
666
666
  }
667
- J.prototype = Object.create(j.prototype), J.prototype.CONNECTING = ie, J.prototype.OPEN = ye, J.prototype.CLOSED = we, J.prototype.close = function() {
667
+ J.prototype = Object.create(O.prototype), J.prototype.CONNECTING = ie, J.prototype.OPEN = ye, J.prototype.CLOSED = we, J.prototype.close = function() {
668
668
  this._close();
669
669
  }, J.CONNECTING = ie, J.OPEN = ye, J.CLOSED = we, J.prototype.withCredentials = void 0;
670
670
  var ke = m;
@@ -700,25 +700,25 @@ var jt = {
700
700
  return Math.round(t);
701
701
  }, Ye = function(t) {
702
702
  return Math.pow(10, t);
703
- }, zt = function(t, n) {
703
+ }, Ht = function(t, n) {
704
704
  return ft(t / n) * n;
705
- }, Ht = /(\d)(?=(\d{3})+\b)/g, Ut = /(\d)(?=(\d\d)+\d\b)/g;
705
+ }, zt = /(\d)(?=(\d{3})+\b)/g, Ut = /(\d)(?=(\d\d)+\d\b)/g;
706
706
  function ae(o, t) {
707
707
  var n = this;
708
708
  if (!(n instanceof ae))
709
709
  return new ae(o, t);
710
- var i = Object.assign({}, jt, t), d = Ye(i.precision), c = Ie(o, i);
711
- n.intValue = c, n.value = c / d, i.increment = i.increment || 1 / d, i.useVedic ? i.groups = Ut : i.groups = Ht, this.s = i, this.p = d;
710
+ var i = Object.assign({}, jt, t), u = Ye(i.precision), c = Ne(o, i);
711
+ n.intValue = c, n.value = c / u, i.increment = i.increment || 1 / u, i.useVedic ? i.groups = Ut : i.groups = zt, this.s = i, this.p = u;
712
712
  }
713
- function Ie(o, t) {
714
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, i = 0, d = t.decimal, c = t.errorOnInvalid, g = t.precision, p = t.fromCents, m = Ye(g), y = typeof o == "number", A = o instanceof ae;
713
+ function Ne(o, t) {
714
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, i = 0, u = t.decimal, c = t.errorOnInvalid, g = t.precision, p = t.fromCents, m = Ye(g), y = typeof o == "number", A = o instanceof ae;
715
715
  if (A && p)
716
716
  return o.intValue;
717
717
  if (y || A)
718
718
  i = A ? o.value : o;
719
719
  else if (typeof o == "string") {
720
- var D = new RegExp("[^-\\d" + d + "]", "g"), L = new RegExp("\\" + d, "g");
721
- i = o.replace(/\((.*)\)/, "-$1").replace(D, "").replace(L, "."), i = i || 0;
720
+ var k = new RegExp("[^-\\d" + u + "]", "g"), F = new RegExp("\\" + u, "g");
721
+ i = o.replace(/\((.*)\)/, "-$1").replace(k, "").replace(F, "."), i = i || 0;
722
722
  } else {
723
723
  if (c)
724
724
  throw Error("Invalid Input");
@@ -727,8 +727,8 @@ function Ie(o, t) {
727
727
  return p || (i *= m, i = i.toFixed(4)), n ? ft(i) : i;
728
728
  }
729
729
  function Pt(o, t) {
730
- var n = t.pattern, i = t.negativePattern, d = t.symbol, c = t.separator, g = t.decimal, p = t.groups, m = ("" + o).replace(/^-/, "").split("."), y = m[0], A = m[1];
731
- return (o.value >= 0 ? n : i).replace("!", d).replace("#", y.replace(p, "$1" + c) + (A ? g + A : ""));
730
+ var n = t.pattern, i = t.negativePattern, u = t.symbol, c = t.separator, g = t.decimal, p = t.groups, m = ("" + o).replace(/^-/, "").split("."), y = m[0], A = m[1];
731
+ return (o.value >= 0 ? n : i).replace("!", u).replace("#", y.replace(p, "$1" + c) + (A ? g + A : ""));
732
732
  }
733
733
  ae.prototype = {
734
734
  /**
@@ -737,8 +737,8 @@ ae.prototype = {
737
737
  * @returns {currency}
738
738
  */
739
739
  add: function(t) {
740
- var n = this.intValue, i = this.s, d = this.p;
741
- return ae((n += Ie(t, i)) / (i.fromCents ? 1 : d), i);
740
+ var n = this.intValue, i = this.s, u = this.p;
741
+ return ae((n += Ne(t, i)) / (i.fromCents ? 1 : u), i);
742
742
  },
743
743
  /**
744
744
  * Subtracts value.
@@ -746,8 +746,8 @@ ae.prototype = {
746
746
  * @returns {currency}
747
747
  */
748
748
  subtract: function(t) {
749
- var n = this.intValue, i = this.s, d = this.p;
750
- return ae((n -= Ie(t, i)) / (i.fromCents ? 1 : d), i);
749
+ var n = this.intValue, i = this.s, u = this.p;
750
+ return ae((n -= Ne(t, i)) / (i.fromCents ? 1 : u), i);
751
751
  },
752
752
  /**
753
753
  * Multiplies values.
@@ -765,7 +765,7 @@ ae.prototype = {
765
765
  */
766
766
  divide: function(t) {
767
767
  var n = this.intValue, i = this.s;
768
- return ae(n /= Ie(t, i, !1), i);
768
+ return ae(n /= Ne(t, i, !1), i);
769
769
  },
770
770
  /**
771
771
  * Takes the currency amount and distributes the values evenly. Any extra pennies
@@ -774,8 +774,8 @@ ae.prototype = {
774
774
  * @returns {array}
775
775
  */
776
776
  distribute: function(t) {
777
- for (var n = this.intValue, i = this.p, d = this.s, c = [], g = Math[n >= 0 ? "floor" : "ceil"](n / t), p = Math.abs(n - g * t), m = d.fromCents ? 1 : i; t !== 0; t--) {
778
- var y = ae(g / m, d);
777
+ for (var n = this.intValue, i = this.p, u = this.s, c = [], g = Math[n >= 0 ? "floor" : "ceil"](n / t), p = Math.abs(n - g * t), m = u.fromCents ? 1 : i; t !== 0; t--) {
778
+ var y = ae(g / m, u);
779
779
  p-- > 0 && (y = y[n >= 0 ? "add" : "subtract"](1 / m)), c.push(y);
780
780
  }
781
781
  return c;
@@ -810,7 +810,7 @@ ae.prototype = {
810
810
  */
811
811
  toString: function() {
812
812
  var t = this.intValue, n = this.p, i = this.s;
813
- return zt(t / n, i.increment).toFixed(i.precision);
813
+ return Ht(t / n, i.increment).toFixed(i.precision);
814
814
  },
815
815
  /**
816
816
  * Value for JSON serialization.
@@ -821,7 +821,7 @@ ae.prototype = {
821
821
  }
822
822
  };
823
823
  function Gt(o) {
824
- At(o, "svelte-138w7kz", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
824
+ At(o, "svelte-lfsn3o", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
825
825
  }
826
826
  function rt(o, t, n) {
827
827
  const i = o.slice();
@@ -841,20 +841,20 @@ function Xt(o) {
841
841
  o[1].Total[0].amount
842
842
  )
843
843
  ) : "0") + ""
844
- ), d, c, g, p, m, y, A, D, L, O, N, E, w = (
844
+ ), u, c, g, p, m, y, A, k, F, I, N, E, w = (
845
845
  /*showBalance*/
846
846
  o[4] && st(o)
847
847
  );
848
848
  return {
849
849
  c() {
850
- t = z("div"), n = z("p"), d = fe(i), c = oe(), g = fe(
850
+ t = j("button"), n = j("p"), u = fe(i), c = oe(), g = fe(
851
851
  /*currency*/
852
852
  o[5]
853
- ), p = oe(), m = z("span"), y = nt("svg"), A = nt("path"), L = oe(), w && w.c(), O = Mt(), _(A, "id", "arrow"), _(A, "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"), _(A, "transform", "translate(-274.511 -441.088)"), _(A, "fill", "#d1d1d1"), _(y, "xmlns", "http://www.w3.org/2000/svg"), _(y, "width", "14"), _(y, "height", "6.835"), _(y, "viewBox", "0 0 14 6.835"), _(m, "class", D = /*modalOpened*/
854
- o[3] ? "TriangleActive" : "TriangleInactive"), _(t, "class", "BalanceValue");
853
+ ), p = oe(), m = j("span"), y = nt("svg"), A = nt("path"), F = oe(), w && w.c(), I = Mt(), C(A, "id", "arrow"), C(A, "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"), C(A, "transform", "translate(-274.511 -441.088)"), C(A, "fill", "#d1d1d1"), C(y, "xmlns", "http://www.w3.org/2000/svg"), C(y, "width", "14"), C(y, "height", "6.835"), C(y, "viewBox", "0 0 14 6.835"), C(m, "class", k = /*isModalDisplayed*/
854
+ o[3] ? "TriangleActive" : "TriangleInactive"), C(t, "class", "BalanceValue");
855
855
  },
856
856
  m(T, H) {
857
- he(T, t, H), B(t, n), B(n, d), B(n, c), B(n, g), B(t, p), B(t, m), B(m, y), B(y, A), he(T, L, H), w && w.m(T, H), he(T, O, H), N || (E = Ve(
857
+ he(T, t, H), B(t, n), B(n, u), B(n, c), B(n, g), B(t, p), B(t, m), B(m, y), B(y, A), he(T, F, H), w && w.m(T, H), he(T, I, H), N || (E = Ve(
858
858
  t,
859
859
  "click",
860
860
  /*click_handler*/
@@ -870,18 +870,18 @@ function Xt(o) {
870
870
  /*balances*/
871
871
  T[1].Total[0].amount
872
872
  )
873
- ) : "0") + "") && ue(d, i), H[0] & /*currency*/
874
- 32 && ue(
873
+ ) : "0") + "") && de(u, i), H[0] & /*currency*/
874
+ 32 && de(
875
875
  g,
876
876
  /*currency*/
877
877
  T[5]
878
- ), H[0] & /*modalOpened*/
879
- 8 && D !== (D = /*modalOpened*/
880
- T[3] ? "TriangleActive" : "TriangleInactive") && _(m, "class", D), /*showBalance*/
881
- T[4] ? w ? w.p(T, H) : (w = st(T), w.c(), w.m(O.parentNode, O)) : w && (w.d(1), w = null);
878
+ ), H[0] & /*isModalDisplayed*/
879
+ 8 && k !== (k = /*isModalDisplayed*/
880
+ T[3] ? "TriangleActive" : "TriangleInactive") && C(m, "class", k), /*showBalance*/
881
+ T[4] ? w ? w.p(T, H) : (w = st(T), w.c(), w.m(I.parentNode, I)) : w && (w.d(1), w = null);
882
882
  },
883
883
  d(T) {
884
- T && (pe(t), pe(L), pe(O)), w && w.d(T), N = !1, E();
884
+ T && (pe(t), pe(F), pe(I)), w && w.d(T), N = !1, E();
885
885
  }
886
886
  };
887
887
  }
@@ -892,50 +892,50 @@ function Kt(o) {
892
892
  ), i;
893
893
  return {
894
894
  c() {
895
- t = z("p"), i = fe(n), _(t, "class", "Loading");
895
+ t = j("p"), i = fe(n), C(t, "class", "Loading");
896
896
  },
897
- m(d, c) {
898
- he(d, t, c), B(t, i);
897
+ m(u, c) {
898
+ he(u, t, c), B(t, i);
899
899
  },
900
- p(d, c) {
900
+ p(u, c) {
901
901
  c[0] & /*$_*/
902
902
  64 && n !== (n = /*$_*/
903
- d[6]("Loading") + "") && ue(i, n);
903
+ u[6]("Loading") + "") && de(i, n);
904
904
  },
905
- d(d) {
906
- d && pe(t);
905
+ d(u) {
906
+ u && pe(t);
907
907
  }
908
908
  };
909
909
  }
910
910
  function st(o) {
911
- let t, n, i, d, c, g, p, m, y = (
911
+ let t, n, i, u, c, g, p, m, y = (
912
912
  /*$_*/
913
913
  o[6]("Title") + ""
914
- ), A, D, L, O, N, E, w = (
914
+ ), A, k, F, I, N, E, w = (
915
915
  /*$_*/
916
916
  o[6]("DepositButton") + ""
917
- ), T, H, k, V, re, ee, Y = je(Object.keys(
917
+ ), T, H, x, z, re, ee, Y = je(Object.keys(
918
918
  /*balances*/
919
919
  o[1]
920
- )), F = [];
921
- for (let S = 0; S < Y.length; S += 1)
922
- F[S] = ct(rt(o, Y, S));
920
+ )), L = [];
921
+ for (let _ = 0; _ < Y.length; _ += 1)
922
+ L[_] = ct(rt(o, Y, _));
923
923
  return {
924
924
  c() {
925
- t = z("div"), n = z("div"), d = oe(), c = z("div"), g = z("div"), p = z("div"), m = z("p"), A = fe(y), D = oe(), L = z("div");
926
- for (let S = 0; S < F.length; S += 1)
927
- F[S].c();
928
- O = oe(), N = z("div"), E = z("button"), T = fe(w), _(n, "class", i = "BalanceModalClose " + /*modalOpened*/
929
- (o[3] ? "Open" : "")), _(m, "class", "BalanceModalTitle"), _(p, "class", "BalanceModalHeader"), _(L, "class", "BalanceModalBody"), _(E, "class", "BalanceModalAction"), _(N, "class", "BalanceModalFooter"), _(g, "class", H = "ModalContent " + /*modalOpened*/
930
- (o[3] ? "Open" : "")), _(c, "class", k = "BalanceModal " + /*modalOpened*/
931
- (o[3] ? "Open" : "")), _(t, "class", V = "BalanceModalWrapper " + /*modalOpened*/
925
+ t = j("div"), n = j("button"), u = oe(), c = j("div"), g = j("div"), p = j("div"), m = j("p"), A = fe(y), k = oe(), F = j("div");
926
+ for (let _ = 0; _ < L.length; _ += 1)
927
+ L[_].c();
928
+ I = oe(), N = j("div"), E = j("button"), T = fe(w), C(n, "class", i = "BalanceModalClose " + /*isModalDisplayed*/
929
+ (o[3] ? "Open" : "")), C(m, "class", "BalanceModalTitle"), C(p, "class", "BalanceModalHeader"), C(F, "class", "BalanceModalBody"), C(E, "class", "BalanceModalAction"), C(N, "class", "BalanceModalFooter"), C(g, "class", H = "ModalContent " + /*isModalDisplayed*/
930
+ (o[3] ? "Open" : "")), C(c, "class", x = "BalanceModal " + /*isModalDisplayed*/
931
+ (o[3] ? "Open" : "")), C(t, "class", z = "BalanceModalWrapper " + /*isModalDisplayed*/
932
932
  (o[3] ? "Open" : ""));
933
933
  },
934
- m(S, j) {
935
- he(S, t, j), B(t, n), B(t, d), B(t, c), B(c, g), B(g, p), B(p, m), B(m, A), B(g, D), B(g, L);
936
- for (let x = 0; x < F.length; x += 1)
937
- F[x] && F[x].m(L, null);
938
- B(g, O), B(g, N), B(N, E), B(E, T), re || (ee = [
934
+ m(_, O) {
935
+ he(_, t, O), B(t, n), B(t, u), B(t, c), B(c, g), B(g, p), B(p, m), B(m, A), B(g, k), B(g, F);
936
+ for (let M = 0; M < L.length; M += 1)
937
+ L[M] && L[M].m(F, null);
938
+ B(g, I), B(g, N), B(N, E), B(E, T), re || (ee = [
939
939
  Ve(
940
940
  n,
941
941
  "click",
@@ -950,38 +950,38 @@ function st(o) {
950
950
  )
951
951
  ], re = !0);
952
952
  },
953
- p(S, j) {
954
- if (j[0] & /*modalOpened*/
955
- 8 && i !== (i = "BalanceModalClose " + /*modalOpened*/
956
- (S[3] ? "Open" : "")) && _(n, "class", i), j[0] & /*$_*/
953
+ p(_, O) {
954
+ if (O[0] & /*isModalDisplayed*/
955
+ 8 && i !== (i = "BalanceModalClose " + /*isModalDisplayed*/
956
+ (_[3] ? "Open" : "")) && C(n, "class", i), O[0] & /*$_*/
957
957
  64 && y !== (y = /*$_*/
958
- S[6]("Title") + "") && ue(A, y), j[0] & /*balances, currency, formatBalance, $_*/
958
+ _[6]("Title") + "") && de(A, y), O[0] & /*balances, currency, formatBalance, $_*/
959
959
  354) {
960
960
  Y = je(Object.keys(
961
961
  /*balances*/
962
- S[1]
962
+ _[1]
963
963
  ));
964
- let x;
965
- for (x = 0; x < Y.length; x += 1) {
966
- const u = rt(S, Y, x);
967
- F[x] ? F[x].p(u, j) : (F[x] = ct(u), F[x].c(), F[x].m(L, null));
964
+ let M;
965
+ for (M = 0; M < Y.length; M += 1) {
966
+ const d = rt(_, Y, M);
967
+ L[M] ? L[M].p(d, O) : (L[M] = ct(d), L[M].c(), L[M].m(F, null));
968
968
  }
969
- for (; x < F.length; x += 1)
970
- F[x].d(1);
971
- F.length = Y.length;
969
+ for (; M < L.length; M += 1)
970
+ L[M].d(1);
971
+ L.length = Y.length;
972
972
  }
973
- j[0] & /*$_*/
973
+ O[0] & /*$_*/
974
974
  64 && w !== (w = /*$_*/
975
- S[6]("DepositButton") + "") && ue(T, w), j[0] & /*modalOpened*/
976
- 8 && H !== (H = "ModalContent " + /*modalOpened*/
977
- (S[3] ? "Open" : "")) && _(g, "class", H), j[0] & /*modalOpened*/
978
- 8 && k !== (k = "BalanceModal " + /*modalOpened*/
979
- (S[3] ? "Open" : "")) && _(c, "class", k), j[0] & /*modalOpened*/
980
- 8 && V !== (V = "BalanceModalWrapper " + /*modalOpened*/
981
- (S[3] ? "Open" : "")) && _(t, "class", V);
975
+ _[6]("DepositButton") + "") && de(T, w), O[0] & /*isModalDisplayed*/
976
+ 8 && H !== (H = "ModalContent " + /*isModalDisplayed*/
977
+ (_[3] ? "Open" : "")) && C(g, "class", H), O[0] & /*isModalDisplayed*/
978
+ 8 && x !== (x = "BalanceModal " + /*isModalDisplayed*/
979
+ (_[3] ? "Open" : "")) && C(c, "class", x), O[0] & /*isModalDisplayed*/
980
+ 8 && z !== (z = "BalanceModalWrapper " + /*isModalDisplayed*/
981
+ (_[3] ? "Open" : "")) && C(t, "class", z);
982
982
  },
983
- d(S) {
984
- S && pe(t), ut(F, S), re = !1, Dt(ee);
983
+ d(_) {
984
+ _ && pe(t), dt(L, _), re = !1, Dt(ee);
985
985
  }
986
986
  };
987
987
  }
@@ -992,7 +992,7 @@ function lt(o) {
992
992
  /*k*/
993
993
  o[50]
994
994
  ) + ""
995
- ), d, c, g = (
995
+ ), u, c, g = (
996
996
  /*b*/
997
997
  (o[53].productType ? (
998
998
  /*$_*/
@@ -1001,7 +1001,7 @@ function lt(o) {
1001
1001
  o[53].productType
1002
1002
  )
1003
1003
  ) : "") + ""
1004
- ), p, m, y, A, D = (
1004
+ ), p, m, y, A, k = (
1005
1005
  /*b*/
1006
1006
  (o[53].amount ? (
1007
1007
  /*formatBalance*/
@@ -1010,16 +1010,16 @@ function lt(o) {
1010
1010
  o[53].amount
1011
1011
  )
1012
1012
  ) : "0") + ""
1013
- ), L, O, N, E;
1013
+ ), F, I, N, E;
1014
1014
  return {
1015
1015
  c() {
1016
- t = z("div"), n = z("p"), d = fe(i), c = oe(), p = fe(g), m = oe(), y = z("p"), A = z("span"), L = fe(D), O = oe(), N = z("span"), E = fe(
1016
+ t = j("div"), n = j("p"), u = fe(i), c = oe(), p = fe(g), m = oe(), y = j("p"), A = j("span"), F = fe(k), I = oe(), N = j("span"), E = fe(
1017
1017
  /*currency*/
1018
1018
  o[5]
1019
- ), _(n, "class", "BalanceModalText"), _(A, "class", "BalanceModalAmount"), _(N, "class", "BalanceModalCurrency"), _(y, "class", "BalanceModalValue"), _(t, "class", "BalanceModalRowLine");
1019
+ ), C(n, "class", "BalanceModalText"), C(A, "class", "BalanceModalAmount"), C(N, "class", "BalanceModalCurrency"), C(y, "class", "BalanceModalValue"), C(t, "class", "BalanceModalRowLine");
1020
1020
  },
1021
1021
  m(w, T) {
1022
- he(w, t, T), B(t, n), B(n, d), B(n, c), B(n, p), B(t, m), B(t, y), B(y, A), B(A, L), B(y, O), B(y, N), B(N, E);
1022
+ he(w, t, T), B(t, n), B(n, u), B(n, c), B(n, p), B(t, m), B(t, y), B(y, A), B(A, F), B(y, I), B(y, N), B(N, E);
1023
1023
  },
1024
1024
  p(w, T) {
1025
1025
  T[0] & /*$_, balances*/
@@ -1027,7 +1027,7 @@ function lt(o) {
1027
1027
  w[6](
1028
1028
  /*k*/
1029
1029
  w[50]
1030
- ) + "") && ue(d, i), T[0] & /*balances, $_*/
1030
+ ) + "") && de(u, i), T[0] & /*balances, $_*/
1031
1031
  66 && g !== (g = /*b*/
1032
1032
  (w[53].productType ? (
1033
1033
  /*$_*/
@@ -1035,16 +1035,16 @@ function lt(o) {
1035
1035
  /*b*/
1036
1036
  w[53].productType
1037
1037
  )
1038
- ) : "") + "") && ue(p, g), T[0] & /*balances*/
1039
- 2 && D !== (D = /*b*/
1038
+ ) : "") + "") && de(p, g), T[0] & /*balances*/
1039
+ 2 && k !== (k = /*b*/
1040
1040
  (w[53].amount ? (
1041
1041
  /*formatBalance*/
1042
1042
  w[8](
1043
1043
  /*b*/
1044
1044
  w[53].amount
1045
1045
  )
1046
- ) : "0") + "") && ue(L, D), T[0] & /*currency*/
1047
- 32 && ue(
1046
+ ) : "0") + "") && de(F, k), T[0] & /*currency*/
1047
+ 32 && de(
1048
1048
  E,
1049
1049
  /*currency*/
1050
1050
  w[5]
@@ -1062,20 +1062,20 @@ function ct(o) {
1062
1062
  /*k*/
1063
1063
  o[50]
1064
1064
  ]
1065
- ), d = [];
1065
+ ), u = [];
1066
1066
  for (let c = 0; c < i.length; c += 1)
1067
- d[c] = lt(it(o, i, c));
1067
+ u[c] = lt(it(o, i, c));
1068
1068
  return {
1069
1069
  c() {
1070
- t = z("div");
1071
- for (let c = 0; c < d.length; c += 1)
1072
- d[c].c();
1073
- n = oe(), _(t, "class", "BalanceModalRowBoth");
1070
+ t = j("div");
1071
+ for (let c = 0; c < u.length; c += 1)
1072
+ u[c].c();
1073
+ n = oe(), C(t, "class", "BalanceModalRowBoth");
1074
1074
  },
1075
1075
  m(c, g) {
1076
1076
  he(c, t, g);
1077
- for (let p = 0; p < d.length; p += 1)
1078
- d[p] && d[p].m(t, null);
1077
+ for (let p = 0; p < u.length; p += 1)
1078
+ u[p] && u[p].m(t, null);
1079
1079
  B(t, n);
1080
1080
  },
1081
1081
  p(c, g) {
@@ -1091,26 +1091,26 @@ function ct(o) {
1091
1091
  let p;
1092
1092
  for (p = 0; p < i.length; p += 1) {
1093
1093
  const m = it(c, i, p);
1094
- d[p] ? d[p].p(m, g) : (d[p] = lt(m), d[p].c(), d[p].m(t, n));
1094
+ u[p] ? u[p].p(m, g) : (u[p] = lt(m), u[p].c(), u[p].m(t, n));
1095
1095
  }
1096
- for (; p < d.length; p += 1)
1097
- d[p].d(1);
1098
- d.length = i.length;
1096
+ for (; p < u.length; p += 1)
1097
+ u[p].d(1);
1098
+ u.length = i.length;
1099
1099
  }
1100
1100
  },
1101
1101
  d(c) {
1102
- c && pe(t), ut(d, c);
1102
+ c && pe(t), dt(u, c);
1103
1103
  }
1104
1104
  };
1105
1105
  }
1106
- function dt(o) {
1106
+ function ut(o) {
1107
1107
  let t, n, i;
1108
1108
  return {
1109
1109
  c() {
1110
- t = z("div"), _(t, "class", "ShowBalanceModalOverlay");
1110
+ t = j("button"), C(t, "class", "ShowBalanceModalOverlay");
1111
1111
  },
1112
- m(d, c) {
1113
- he(d, t, c), n || (i = Ve(
1112
+ m(u, c) {
1113
+ he(u, t, c), n || (i = Ve(
1114
1114
  t,
1115
1115
  "click",
1116
1116
  /*click_handler_3*/
@@ -1118,33 +1118,33 @@ function dt(o) {
1118
1118
  ), n = !0);
1119
1119
  },
1120
1120
  p: qe,
1121
- d(d) {
1122
- d && pe(t), n = !1, i();
1121
+ d(u) {
1122
+ u && pe(t), n = !1, i();
1123
1123
  }
1124
1124
  };
1125
1125
  }
1126
1126
  function qt(o) {
1127
1127
  let t, n, i;
1128
- function d(m, y) {
1128
+ function u(m, y) {
1129
1129
  return (
1130
1130
  /*isLoading*/
1131
1131
  m[2] ? Kt : Xt
1132
1132
  );
1133
1133
  }
1134
- let c = d(o), g = c(o), p = (
1134
+ let c = u(o), g = c(o), p = (
1135
1135
  /*showBalance*/
1136
- o[4] && dt(o)
1136
+ o[4] && ut(o)
1137
1137
  );
1138
1138
  return {
1139
1139
  c() {
1140
- t = z("div"), n = z("div"), g.c(), i = oe(), p && p.c(), _(n, "class", "ShowBalance");
1140
+ t = j("div"), n = j("div"), g.c(), i = oe(), p && p.c(), C(n, "class", "ShowBalance");
1141
1141
  },
1142
1142
  m(m, y) {
1143
1143
  he(m, t, y), B(t, n), g.m(n, null), B(t, i), p && p.m(t, null), o[29](t);
1144
1144
  },
1145
1145
  p(m, y) {
1146
- c === (c = d(m)) && g ? g.p(m, y) : (g.d(1), g = c(m), g && (g.c(), g.m(n, null))), /*showBalance*/
1147
- m[4] ? p ? p.p(m, y) : (p = dt(m), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
1146
+ c === (c = u(m)) && g ? g.p(m, y) : (g.d(1), g = c(m), g && (g.c(), g.m(n, null))), /*showBalance*/
1147
+ m[4] ? p ? p.p(m, y) : (p = ut(m), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
1148
1148
  },
1149
1149
  i: qe,
1150
1150
  o: qe,
@@ -1155,10 +1155,10 @@ function qt(o) {
1155
1155
  }
1156
1156
  function Wt(o, t, n) {
1157
1157
  let i;
1158
- Rt(o, Nt, (e) => n(6, i = e));
1159
- let { userid: d = "" } = t, { session: c = "" } = t, { endpoint: g = "" } = t, { lang: p = "en" } = t, { mbsource: m } = t, { clientstyling: y = "" } = t, { clientstylingurl: A = "" } = t, { translationurl: D = "" } = t, { customlocaleidentifier: L = "" } = t, { gmversion: O = "gm16" } = t, { displaybalanceoption: N = "All" } = t, { totalcalculationmode: E = "totalCashAmount" } = t, { currencyseparator: w = "" } = t, { currencydecimal: T = "" } = t, { currencyprecision: H = "" } = t, k, V, re, ee, Y = !1, F = "", S = [], j, x = !1;
1160
- const u = {}, ge = ["totalCashAmount", "totalRealAmount"], Re = () => {
1161
- fetch(D).then((e) => e.json()).then((e) => Object.keys(e).forEach((r) => at(r, e[r]))).catch((e) => console.log(e));
1158
+ Rt(o, It, (e) => n(6, i = e));
1159
+ let { userid: u = "" } = t, { session: c = "" } = t, { endpoint: g = "" } = t, { lang: p = "en" } = t, { mbsource: m } = t, { clientstyling: y = "" } = t, { clientstylingurl: A = "" } = t, { translationurl: k = "" } = t, { customlocaleidentifier: F = "" } = t, { gmversion: I = "gm16" } = t, { displaybalanceoption: N = "All" } = t, { totalcalculationmode: E = "totalCashAmount" } = t, { currencyseparator: w = "" } = t, { currencydecimal: T = "" } = t, { currencyprecision: H = "" } = t, x, z = !0, re = !1, ee = !1, Y = !1, L, _ = "", O = [], M;
1160
+ const d = {}, ge = ["totalCashAmount", "totalRealAmount"], Re = () => {
1161
+ fetch(k).then((e) => e.json()).then((e) => Object.keys(e).forEach((r) => at(r, e[r]))).catch((e) => console.log(e));
1162
1162
  };
1163
1163
  Object.keys(ot).forEach((e) => at(e, ot[e]));
1164
1164
  const me = (e) => {
@@ -1188,9 +1188,9 @@ function Wt(o, t, n) {
1188
1188
  break;
1189
1189
  }
1190
1190
  }, Te = () => {
1191
- if (L.includes(p))
1192
- return L;
1193
- }, ie = (e) => L ? new Intl.NumberFormat(Te(), { useGrouping: !0 }).format(e) : w && T ? ae(e, {
1191
+ if (F.includes(p))
1192
+ return F;
1193
+ }, ie = (e) => F ? new Intl.NumberFormat(Te(), { useGrouping: !0 }).format(e) : w && T ? ae(e, {
1194
1194
  separator: w,
1195
1195
  decimal: T,
1196
1196
  symbol: "",
@@ -1202,66 +1202,66 @@ function Wt(o, t, n) {
1202
1202
  precision: parseInt(H || "2", 10)
1203
1203
  }).format(), ye = () => tt(this, null, function* () {
1204
1204
  var r, s, a;
1205
- n(2, k = !0);
1206
- const e = new URL(`${g}/v1/player/${d}/account`);
1205
+ n(2, z = !0);
1206
+ const e = new URL(`${g}/v1/player/${u}/account`);
1207
1207
  try {
1208
1208
  const h = yield fetch(e, {
1209
1209
  method: "GET",
1210
1210
  headers: { "X-SessionID": c }
1211
1211
  }), f = yield h.json();
1212
1212
  if (h.ok)
1213
- window.postMessage({ type: "BalancedFetched" }, window.location.href), S = f.items, n(5, F = (r = S.find((l) => l.displayName === "Casino")) == null ? void 0 : r.currency), n(1, u.Total = [{ amount: f.totalAmount[F] }], u), n(
1213
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), O = f.items, n(5, _ = (r = O.find((l) => l.displayName === "Casino")) == null ? void 0 : r.currency), n(1, d.Total = [{ amount: f.totalAmount[_] }], d), n(
1214
1214
  1,
1215
- u.Real = [
1215
+ d.Real = [
1216
1216
  {
1217
- amount: (s = S.find((l) => l.displayName === "Casino")) == null ? void 0 : s.balanceAmount
1217
+ amount: (s = O.find((l) => l.displayName === "Casino")) == null ? void 0 : s.balanceAmount
1218
1218
  }
1219
1219
  ],
1220
- u
1220
+ d
1221
1221
  ), n(
1222
1222
  1,
1223
- u.Bonus = [
1223
+ d.Bonus = [
1224
1224
  {
1225
- amount: (a = S.find((l) => l.displayName === "UBS")) == null ? void 0 : a.balanceAmount
1225
+ amount: (a = O.find((l) => l.displayName === "UBS")) == null ? void 0 : a.balanceAmount
1226
1226
  }
1227
1227
  ],
1228
- u
1228
+ d
1229
1229
  );
1230
1230
  else
1231
1231
  throw new Error("Failed to fetch balance data !");
1232
1232
  } catch (h) {
1233
1233
  console.log("Balance error: ", h);
1234
1234
  } finally {
1235
- n(2, k = !1);
1235
+ n(2, z = !1);
1236
1236
  }
1237
1237
  }), we = () => {
1238
- n(2, k = !0);
1239
- const e = new URL(`${g}/v2/player/${d}/balance`), r = new Headers();
1238
+ n(2, z = !0);
1239
+ const e = new URL(`${g}/v2/player/${u}/balance`), r = new Headers();
1240
1240
  r.append("X-SessionID", c), fetch(e, { method: "GET", headers: r }).then((a) => a.json()).then((a) => {
1241
1241
  a[E] || n(10, E = ge[0]);
1242
1242
  const h = a.items.find((l) => l.type === "Real" && l.walletAccountType === "Ordinary");
1243
- if (n(5, F = h.currency), x = !!h.productType, n(1, u.Total = [{ amount: 0 }], u), n(1, u.Real = [], u), n(1, u.Bonus = [], u), n(1, u.Credit = [], u), !x) {
1244
- j = {
1243
+ if (n(5, _ = h.currency), ee = !!h.productType, n(1, d.Total = [{ amount: 0 }], d), n(1, d.Real = [], d), n(1, d.Bonus = [], d), n(1, d.Credit = [], d), !ee) {
1244
+ M = {
1245
1245
  lastOrdinaryAfterAmount: 0,
1246
1246
  showCreditLineAfterAmount: !1
1247
- }, n(1, u.Total[0].amount = a[E][F], u);
1247
+ }, n(1, d.Total[0].amount = a[E][_], d);
1248
1248
  for (const l of a.items)
1249
1249
  switch (l.type) {
1250
1250
  case "Bonus":
1251
- u.Bonus.length === 0 ? u.Bonus.push({ amount: l.amount }) : n(1, u.Bonus[0].amount += l.amount, u);
1251
+ d.Bonus.length === 0 ? d.Bonus.push({ amount: l.amount }) : n(1, d.Bonus[0].amount += l.amount, d);
1252
1252
  break;
1253
1253
  case "Real":
1254
- if (l.creditLine && u.Credit.length === 0 && u.Credit.push({ amount: l.creditLine }), E === "totalRealAmount")
1254
+ if (l.creditLine && d.Credit.length === 0 && d.Credit.push({ amount: l.creditLine }), E === "totalRealAmount")
1255
1255
  continue;
1256
- u.Real.length === 0 ? u.Real.push({ amount: l.amount }) : n(1, u.Real[0].amount += l.amount, u);
1256
+ d.Real.length === 0 ? d.Real.push({ amount: l.amount }) : n(1, d.Real[0].amount += l.amount, d);
1257
1257
  break;
1258
1258
  }
1259
- for (const [l, C] of Object.entries(u))
1260
- C.length < 1 && delete u[l];
1261
- n(2, k = !1);
1259
+ for (const [l, S] of Object.entries(d))
1260
+ S.length < 1 && delete d[l];
1261
+ n(2, z = !1);
1262
1262
  return;
1263
1263
  }
1264
- j = {
1264
+ M = {
1265
1265
  Casino: {
1266
1266
  lastOrdinaryAfterAmount: 0,
1267
1267
  showCreditLineAfterAmount: !1
@@ -1274,19 +1274,19 @@ function Wt(o, t, n) {
1274
1274
  let f = a.items;
1275
1275
  N && N !== "All" && (f = a.items.filter((l) => l.productType === N));
1276
1276
  for (const l of f) {
1277
- let C;
1277
+ let S;
1278
1278
  switch (l.type) {
1279
1279
  case "Bonus":
1280
- C = u.Bonus.findIndex((b) => b.productType === l.productType), C > 0 ? n(1, u.Bonus[C].amount += l.amount, u) : u.Bonus.push({
1280
+ S = d.Bonus.findIndex((b) => b.productType === l.productType), S > 0 ? n(1, d.Bonus[S].amount += l.amount, d) : d.Bonus.push({
1281
1281
  amount: l.amount,
1282
1282
  productType: l.productType
1283
1283
  });
1284
1284
  break;
1285
1285
  case "Real":
1286
- l.creditLine && u.Credit.push({
1286
+ l.creditLine && d.Credit.push({
1287
1287
  amount: l.creditLine,
1288
1288
  productType: l.productType
1289
- }), C = u.Real.findIndex((b) => b.productType === l.productType), C > 0 ? n(1, u.Real[C].amount += l.amount, u) : u.Real.push({
1289
+ }), S = d.Real.findIndex((b) => b.productType === l.productType), S > 0 ? n(1, d.Real[S].amount += l.amount, d) : d.Real.push({
1290
1290
  amount: l.amount,
1291
1291
  productType: l.productType
1292
1292
  });
@@ -1294,29 +1294,29 @@ function Wt(o, t, n) {
1294
1294
  }
1295
1295
  }
1296
1296
  Le();
1297
- for (const [l, C] of Object.entries(u))
1298
- C.length < 1 && delete u[l];
1299
- n(2, k = !1);
1297
+ for (const [l, S] of Object.entries(d))
1298
+ S.length < 1 && delete d[l];
1299
+ n(2, z = !1);
1300
1300
  }).catch((a) => {
1301
- throw n(2, k = !1), new Error("Failed to fetch balance data !");
1301
+ throw n(2, z = !1), console.log("Balance fetch error", a), new Error("Failed to fetch balance data!");
1302
1302
  });
1303
1303
  }, be = () => {
1304
- if (ee && ee.close(), c.length < 1)
1304
+ if (L && L.close(), c.length < 1)
1305
1305
  return;
1306
1306
  let e, r;
1307
- switch (O) {
1307
+ switch (I) {
1308
1308
  case "gm16":
1309
- e = new URL(`${g}/v2/player/${d}/information/updates`), r = (h) => ze(h);
1309
+ e = new URL(`${g}/v2/player/${u}/information/updates`), r = (h) => He(h);
1310
1310
  break;
1311
1311
  case "gmcore":
1312
- e = new URL(`${g}/v1/player/${d}/balance/updates`), r = (h) => Ee(h);
1312
+ e = new URL(`${g}/v1/player/${u}/balance/updates`), r = (h) => Ee(h);
1313
1313
  break;
1314
1314
  }
1315
1315
  const s = {
1316
1316
  accept: "text/event-stream",
1317
1317
  "X-SessionId": c
1318
1318
  }, a = new Vt.EventSourcePolyfill(e, { headers: s });
1319
- ee = a, a.addEventListener("message", r);
1319
+ L = a, a.addEventListener("message", r);
1320
1320
  }, te = (e) => {
1321
1321
  let r;
1322
1322
  try {
@@ -1335,14 +1335,14 @@ function Wt(o, t, n) {
1335
1335
  }
1336
1336
  let s = "0";
1337
1337
  const a = r.balanceChange;
1338
- S = S.map((l) => (a && a[l.id] && (l = et($e({}, l), {
1338
+ O = O.map((l) => (a && a[l.id] && (l = et($e({}, l), {
1339
1339
  balanceAmount: a[l.id].afterAmount
1340
- })), s = (parseFloat(l == null ? void 0 : l.balanceAmount) + parseFloat(s)).toString(), l)), n(1, u.Real = [{ amount: (h = S[0]) == null ? void 0 : h.balanceAmount }], u), n(1, u.Bonus = [{ amount: (f = S[1]) == null ? void 0 : f.balanceAmount }], u), n(1, u.Total = [{ amount: Number(s) }], u);
1340
+ })), s = (parseFloat(l == null ? void 0 : l.balanceAmount) + parseFloat(s)).toString(), l)), n(1, d.Real = [{ amount: (h = O[0]) == null ? void 0 : h.balanceAmount }], d), n(1, d.Bonus = [{ amount: (f = O[1]) == null ? void 0 : f.balanceAmount }], d), n(1, d.Total = [{ amount: Number(s) }], d);
1341
1341
  }, Se = (e, r, s) => {
1342
1342
  let a = null;
1343
1343
  switch (s.walletAccountType) {
1344
1344
  case "Ordinary":
1345
- s.afterAmount !== s.affectedAmount && (r.lastOrdinaryAfterAmount = s.afterAmount, r.showCreditLineAfterAmount || (a = s.afterAmount));
1345
+ (s.afterAmount !== s.affectedAmount || r.lastOrdinaryAfterAmount === 0) && (r.lastOrdinaryAfterAmount = s.afterAmount, r.showCreditLineAfterAmount || (a = s.afterAmount));
1346
1346
  break;
1347
1347
  case "CreditLine":
1348
1348
  s.afterAmount !== 0 ? (a = s.afterAmount, r.showCreditLineAfterAmount = !0) : (a = r.lastOrdinaryAfterAmount, r.showCreditLineAfterAmount = !1);
@@ -1356,19 +1356,19 @@ function Wt(o, t, n) {
1356
1356
  case "totalCashAmount":
1357
1357
  let e = 0;
1358
1358
  for (const s of ["Real", "Bonus"])
1359
- for (const a of u[s])
1359
+ for (const a of d[s])
1360
1360
  e += Math.max(a.amount, 0);
1361
- n(1, u.Total[0].amount = e, u);
1361
+ n(1, d.Total[0].amount = e, d);
1362
1362
  break;
1363
1363
  case "totalRealAmount":
1364
- if (!x)
1364
+ if (!ee)
1365
1365
  return;
1366
1366
  let r = 0;
1367
- for (const s of u.Real)
1367
+ for (const s of d.Real)
1368
1368
  r += s.amount;
1369
- n(1, u.Total[0].amount = r, u);
1369
+ n(1, d.Total[0].amount = r, d);
1370
1370
  }
1371
- }, ze = (e) => {
1371
+ }, He = (e) => {
1372
1372
  const r = te(e.data);
1373
1373
  if (!r) {
1374
1374
  be();
@@ -1378,21 +1378,21 @@ function Wt(o, t, n) {
1378
1378
  return;
1379
1379
  const s = r.body.balanceChange;
1380
1380
  for (const [a, h] of Object.entries(s))
1381
- if (E === "totalRealAmount" && a === "Real" && !x && n(1, u.Total[0].amount = Se(u.Total[0].amount, j, h), u), !!u[a])
1382
- for (const f of u[a]) {
1383
- if (!x) {
1384
- f.amount = a === "Real" ? Se(f.amount, j, h) : h.afterAmount;
1381
+ if (E === "totalRealAmount" && a === "Real" && !ee && n(1, d.Total[0].amount = Se(d.Total[0].amount, M, h), d), !!d[a])
1382
+ for (const f of d[a]) {
1383
+ if (!ee) {
1384
+ f.amount = a === "Real" ? Se(f.amount, M, h) : h.afterAmount;
1385
1385
  continue;
1386
1386
  }
1387
- h.productType === f.productType && (f.amount = a === "Real" ? Se(f.amount, j[f.productType], h) : h.afterAmount);
1387
+ h.productType === f.productType && (f.amount = a === "Real" ? Se(f.amount, M[f.productType], h) : h.afterAmount);
1388
1388
  }
1389
1389
  Le();
1390
1390
  }, Oe = () => {
1391
1391
  me("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
1392
- }, He = () => {
1392
+ }, ze = () => {
1393
1393
  ge.includes(E) || (console.error(`Unsupported value ('${E}') for totalcalculationmode parameter. Only the following values are supported ${ge}. Using default value ('${ge[0]}').`), n(10, E = ge[0]));
1394
1394
  }, xe = () => {
1395
- switch (It(p), He(), O) {
1395
+ switch (Nt(p), ze(), I) {
1396
1396
  case "gmcore":
1397
1397
  ye();
1398
1398
  break;
@@ -1400,54 +1400,54 @@ function Wt(o, t, n) {
1400
1400
  we();
1401
1401
  break;
1402
1402
  default:
1403
- throw Error(`Invalid apiversion attribute: ${O}`);
1403
+ throw Error(`Invalid apiversion attribute: ${I}`);
1404
1404
  }
1405
- }, Ce = (e) => e.data && e.data.type === "LogoutSuccessfull" && ee.close(), ve = () => {
1405
+ }, Ce = (e) => e.data && e.data.type === "LogoutSuccessfull" && L.close(), ve = () => {
1406
1406
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
1407
1407
  };
1408
1408
  Et(() => (window.addEventListener("message", Ce, !1), () => {
1409
- window.removeEventListener("message", Ce), ee && ee.close();
1409
+ window.removeEventListener("message", Ce), L && L.close();
1410
1410
  }));
1411
1411
  const J = () => me("balance"), Ue = () => me("closebalance"), Pe = () => Oe(), Ge = () => me("closeBalance");
1412
1412
  function ke(e) {
1413
1413
  xt[e ? "unshift" : "push"](() => {
1414
- V = e, n(0, V);
1414
+ x = e, n(0, x);
1415
1415
  });
1416
1416
  }
1417
1417
  return o.$$set = (e) => {
1418
- "userid" in e && n(11, d = e.userid), "session" in e && n(12, c = e.session), "endpoint" in e && n(13, g = e.endpoint), "lang" in e && n(14, p = e.lang), "mbsource" in e && n(15, m = e.mbsource), "clientstyling" in e && n(16, y = e.clientstyling), "clientstylingurl" in e && n(17, A = e.clientstylingurl), "translationurl" in e && n(18, D = e.translationurl), "customlocaleidentifier" in e && n(19, L = e.customlocaleidentifier), "gmversion" in e && n(20, O = e.gmversion), "displaybalanceoption" in e && n(21, N = e.displaybalanceoption), "totalcalculationmode" in e && n(10, E = e.totalcalculationmode), "currencyseparator" in e && n(22, w = e.currencyseparator), "currencydecimal" in e && n(23, T = e.currencydecimal), "currencyprecision" in e && n(24, H = e.currencyprecision);
1418
+ "userid" in e && n(11, u = e.userid), "session" in e && n(12, c = e.session), "endpoint" in e && n(13, g = e.endpoint), "lang" in e && n(14, p = e.lang), "mbsource" in e && n(15, m = e.mbsource), "clientstyling" in e && n(16, y = e.clientstyling), "clientstylingurl" in e && n(17, A = e.clientstylingurl), "translationurl" in e && n(18, k = e.translationurl), "customlocaleidentifier" in e && n(19, F = e.customlocaleidentifier), "gmversion" in e && n(20, I = e.gmversion), "displaybalanceoption" in e && n(21, N = e.displaybalanceoption), "totalcalculationmode" in e && n(10, E = e.totalcalculationmode), "currencyseparator" in e && n(22, w = e.currencyseparator), "currencydecimal" in e && n(23, T = e.currencydecimal), "currencyprecision" in e && n(24, H = e.currencyprecision);
1419
1419
  }, o.$$.update = () => {
1420
1420
  o.$$.dirty[0] & /*lang*/
1421
1421
  16384 && p && Te(), o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1422
- 3176448 && g && d && c && p && O && N && xe(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1423
- 1062912 && g && d && c && O && be(), o.$$.dirty[0] & /*translationurl*/
1424
- 262144 && D && Re(), o.$$.dirty[0] & /*balances*/
1425
- 2 && u.Total && ve(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1426
- 65537 && y && V && Lt(V, y), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1427
- 131073 && A && V && Ot(V, A), o.$$.dirty[0] & /*mbsource, customStylingContainer*/
1428
- 32769 && m && V && kt(V, `${m}.Style`);
1422
+ 3176448 && g && u && c && p && I && N && xe(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1423
+ 1062912 && g && u && c && I && be(), o.$$.dirty[0] & /*translationurl*/
1424
+ 262144 && k && Re(), o.$$.dirty[0] & /*balances*/
1425
+ 2 && d.Total && ve(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1426
+ 65537 && y && x && Lt(x, y), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1427
+ 131073 && A && x && Ot(x, A), o.$$.dirty[0] & /*mbsource, customStylingContainer*/
1428
+ 32769 && m && x && kt(x, `${m}.Style`);
1429
1429
  }, [
1430
- V,
1431
- u,
1432
- k,
1430
+ x,
1431
+ d,
1432
+ z,
1433
1433
  re,
1434
1434
  Y,
1435
- F,
1435
+ _,
1436
1436
  i,
1437
1437
  me,
1438
1438
  ie,
1439
1439
  Oe,
1440
1440
  E,
1441
- d,
1441
+ u,
1442
1442
  c,
1443
1443
  g,
1444
1444
  p,
1445
1445
  m,
1446
1446
  y,
1447
1447
  A,
1448
- D,
1449
- L,
1450
- O,
1448
+ k,
1449
+ F,
1450
+ I,
1451
1451
  N,
1452
1452
  w,
1453
1453
  T,