@everymatrix/casino-header-controller 1.53.0 → 1.53.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,39 +1,11 @@
1
- var ht = Object.defineProperty, mt = Object.defineProperties;
2
- var gt = Object.getOwnPropertyDescriptors;
3
- var Qe = Object.getOwnPropertySymbols;
4
- var yt = Object.prototype.hasOwnProperty, vt = Object.prototype.propertyIsEnumerable;
5
- var Ze = (o, e, t) => e in o ? ht(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, $e = (o, e) => {
6
- for (var t in e || (e = {}))
7
- yt.call(e, t) && Ze(o, t, e[t]);
8
- if (Qe)
9
- for (var t of Qe(e))
10
- vt.call(e, t) && Ze(o, t, e[t]);
11
- return o;
12
- }, et = (o, e) => mt(o, gt(e));
13
- var tt = (o, e, t) => new Promise((r, c) => {
14
- var u = (m) => {
15
- try {
16
- f(t.next(m));
17
- } catch (y) {
18
- c(y);
19
- }
20
- }, g = (m) => {
21
- try {
22
- f(t.throw(m));
23
- } catch (y) {
24
- c(y);
25
- }
26
- }, f = (m) => m.done ? r(m.value) : Promise.resolve(m.value).then(u, g);
27
- f((t = t.apply(o, e)).next());
28
- });
29
- import { b as wt, $ as bt, L as Bt, S as Ct, i as Tt, f as Y, c as St, s as _t, d as At, g as N, e as oe, u as V, j as fe, v as R, n as qe, k as pe, l as Rt, o as Et, w as Ve, p as xt, t as ue, B as Dt, x as de, r as je, y as ut, z as Lt, D as Mt } from "./CasinoHamburgerMenu-1MgwMavL.js";
30
- function nt(o, e) {
31
- wt(o, e);
1
+ import { b as ct, $ as ut, L as dt, S as ft, i as pt, f as Y, c as ht, s as mt, d as gt, g as N, e as oe, u as V, j as fe, v as R, n as qe, k as pe, l as yt, o as vt, w as Ve, p as wt, t as ue, B as bt, x as de, r as je, y as rt, z as Bt, D as Ct } from "./CasinoHamburgerMenu-Didvw1sl.js";
2
+ function Qe(o, e) {
3
+ ct(o, e);
32
4
  }
33
- function Ft(o) {
34
- bt.set(o);
5
+ function Tt(o) {
6
+ ut.set(o);
35
7
  }
36
- const at = {
8
+ const Ze = {
37
9
  en: {
38
10
  Title: "Your Balance",
39
11
  Total: "Total Balance",
@@ -240,31 +212,31 @@ var We = { exports: {} };
240
212
  * https://github.com/Yaffle/EventSource/
241
213
  */
242
214
  (function(o, e) {
243
- (function(t) {
244
- var r = t.setTimeout, c = t.clearTimeout, u = t.XMLHttpRequest, g = t.XDomainRequest, f = t.ActiveXObject, m = t.EventSource, y = t.document, x = t.Promise, F = t.fetch, B = t.Response, C = t.TextDecoder, _ = t.TextEncoder, U = t.AbortController;
245
- if (typeof window != "undefined" && typeof y != "undefined" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(n) {
215
+ (function(n) {
216
+ var r = n.setTimeout, l = n.clearTimeout, u = n.XMLHttpRequest, m = n.XDomainRequest, p = n.ActiveXObject, g = n.EventSource, y = n.document, x = n.Promise, F = n.fetch, B = n.Response, C = n.TextDecoder, _ = n.TextEncoder, U = n.AbortController;
217
+ if (typeof window < "u" && typeof y < "u" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(t) {
246
218
  y.readyState = "complete";
247
- }, !1)), u == null && f != null && (u = function() {
248
- return new f("Microsoft.XMLHTTP");
249
- }), Object.create == null && (Object.create = function(n) {
219
+ }, !1)), u == null && p != null && (u = function() {
220
+ return new p("Microsoft.XMLHTTP");
221
+ }), Object.create == null && (Object.create = function(t) {
250
222
  function a() {
251
223
  }
252
- return a.prototype = n, new a();
224
+ return a.prototype = t, new a();
253
225
  }), Date.now || (Date.now = function() {
254
226
  return (/* @__PURE__ */ new Date()).getTime();
255
227
  }), U == null) {
256
228
  var M = F;
257
- F = function(n, a) {
258
- var l = a.signal;
259
- return M(n, { headers: a.headers, credentials: a.credentials, cache: a.cache }).then(function(i) {
260
- var s = i.body.getReader();
261
- return l._reader = s, l._aborted && l._reader.cancel(), {
229
+ F = function(t, a) {
230
+ var s = a.signal;
231
+ return M(t, { headers: a.headers, credentials: a.credentials, cache: a.cache }).then(function(i) {
232
+ var d = i.body.getReader();
233
+ return s._reader = d, s._aborted && s._reader.cancel(), {
262
234
  status: i.status,
263
235
  statusText: i.statusText,
264
236
  headers: i.headers,
265
237
  body: {
266
238
  getReader: function() {
267
- return s;
239
+ return d;
268
240
  }
269
241
  }
270
242
  };
@@ -281,7 +253,7 @@ var We = { exports: {} };
281
253
  function H() {
282
254
  this.bitsNeeded = 0, this.codePoint = 0;
283
255
  }
284
- H.prototype.decode = function(n) {
256
+ H.prototype.decode = function(t) {
285
257
  function a(E, L, v) {
286
258
  if (v === 1)
287
259
  return E >= 128 >> L && E << L <= 2047;
@@ -291,7 +263,7 @@ var We = { exports: {} };
291
263
  return E >= 65536 >> L && E << L <= 1114111;
292
264
  throw new Error();
293
265
  }
294
- function l(E, L) {
266
+ function s(E, L) {
295
267
  if (E === 6 * 1)
296
268
  return L >> 6 > 15 ? 3 : L > 31 ? 2 : 1;
297
269
  if (E === 6 * 2)
@@ -300,68 +272,68 @@ var We = { exports: {} };
300
272
  return 3;
301
273
  throw new Error();
302
274
  }
303
- for (var i = 65533, s = "", h = this.bitsNeeded, w = this.codePoint, k = 0; k < n.length; k += 1) {
304
- var S = n[k];
305
- h !== 0 && (S < 128 || S > 191 || !a(w << 6 | S & 63, h - 6, l(h, w))) && (h = 0, w = i, s += String.fromCharCode(w)), h === 0 ? (S >= 0 && S <= 127 ? (h = 0, w = S) : S >= 192 && S <= 223 ? (h = 6 * 1, w = S & 31) : S >= 224 && S <= 239 ? (h = 6 * 2, w = S & 15) : S >= 240 && S <= 247 ? (h = 6 * 3, w = S & 7) : (h = 0, w = i), h !== 0 && !a(w, h, l(h, w)) && (h = 0, w = i)) : (h -= 6, w = w << 6 | S & 63), h === 0 && (w <= 65535 ? s += String.fromCharCode(w) : (s += String.fromCharCode(55296 + (w - 65535 - 1 >> 10)), s += String.fromCharCode(56320 + (w - 65535 - 1 & 1023))));
275
+ for (var i = 65533, d = "", h = this.bitsNeeded, w = this.codePoint, k = 0; k < t.length; k += 1) {
276
+ var S = t[k];
277
+ h !== 0 && (S < 128 || S > 191 || !a(w << 6 | S & 63, h - 6, s(h, w))) && (h = 0, w = i, d += String.fromCharCode(w)), h === 0 ? (S >= 0 && S <= 127 ? (h = 0, w = S) : S >= 192 && S <= 223 ? (h = 6 * 1, w = S & 31) : S >= 224 && S <= 239 ? (h = 6 * 2, w = S & 15) : S >= 240 && S <= 247 ? (h = 6 * 3, w = S & 7) : (h = 0, w = i), h !== 0 && !a(w, h, s(h, w)) && (h = 0, w = i)) : (h -= 6, w = w << 6 | S & 63), h === 0 && (w <= 65535 ? d += String.fromCharCode(w) : (d += String.fromCharCode(55296 + (w - 65535 - 1 >> 10)), d += String.fromCharCode(56320 + (w - 65535 - 1 & 1023))));
306
278
  }
307
- return this.bitsNeeded = h, this.codePoint = w, s;
279
+ return this.bitsNeeded = h, this.codePoint = w, d;
308
280
  };
309
281
  var P = function() {
310
282
  try {
311
283
  return new C().decode(new _().encode("test"), { stream: !0 }) === "test";
312
- } catch (n) {
313
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + n);
284
+ } catch (t) {
285
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + t);
314
286
  }
315
287
  return !1;
316
288
  };
317
289
  (C == null || _ == null || !P()) && (C = H);
318
290
  var T = function() {
319
291
  };
320
- function A(n) {
321
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = T, this.onload = T, this.onerror = T, this.onreadystatechange = T, this._contentType = "", this._xhr = n, this._sendTimeout = 0, this._abort = T;
292
+ function A(t) {
293
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = T, this.onload = T, this.onerror = T, this.onreadystatechange = T, this._contentType = "", this._xhr = t, this._sendTimeout = 0, this._abort = T;
322
294
  }
323
- A.prototype.open = function(n, a) {
295
+ A.prototype.open = function(t, a) {
324
296
  this._abort(!0);
325
- var l = this, i = this._xhr, s = 1, h = 0;
297
+ var s = this, i = this._xhr, d = 1, h = 0;
326
298
  this._abort = function(v) {
327
- l._sendTimeout !== 0 && (c(l._sendTimeout), l._sendTimeout = 0), (s === 1 || s === 2 || s === 3) && (s = 4, i.onload = T, i.onerror = T, i.onabort = T, i.onprogress = T, i.onreadystatechange = T, i.abort(), h !== 0 && (c(h), h = 0), v || (l.readyState = 4, l.onabort(null), l.onreadystatechange())), s = 0;
299
+ s._sendTimeout !== 0 && (l(s._sendTimeout), s._sendTimeout = 0), (d === 1 || d === 2 || d === 3) && (d = 4, i.onload = T, i.onerror = T, i.onabort = T, i.onprogress = T, i.onreadystatechange = T, i.abort(), h !== 0 && (l(h), h = 0), v || (s.readyState = 4, s.onabort(null), s.onreadystatechange())), d = 0;
328
300
  };
329
301
  var w = function() {
330
- if (s === 1) {
302
+ if (d === 1) {
331
303
  var v = 0, O = "", ie = void 0;
332
304
  if ("contentType" in i)
333
305
  v = 200, O = "OK", ie = i.contentType;
334
306
  else
335
307
  try {
336
308
  v = i.status, O = i.statusText, ie = i.getResponseHeader("Content-Type");
337
- } catch (Le) {
309
+ } catch {
338
310
  v = 0, O = "", ie = void 0;
339
311
  }
340
- v !== 0 && (s = 2, l.readyState = 2, l.status = v, l.statusText = O, l._contentType = ie, l.onreadystatechange());
312
+ v !== 0 && (d = 2, s.readyState = 2, s.status = v, s.statusText = O, s._contentType = ie, s.onreadystatechange());
341
313
  }
342
314
  }, k = function() {
343
- if (w(), s === 2 || s === 3) {
344
- s = 3;
315
+ if (w(), d === 2 || d === 3) {
316
+ d = 3;
345
317
  var v = "";
346
318
  try {
347
319
  v = i.responseText;
348
- } catch (O) {
320
+ } catch {
349
321
  }
350
- l.readyState = 3, l.responseText = v, l.onprogress();
322
+ s.readyState = 3, s.responseText = v, s.onprogress();
351
323
  }
352
324
  }, S = function(v, O) {
353
325
  if ((O == null || O.preventDefault == null) && (O = {
354
326
  preventDefault: T
355
- }), k(), s === 1 || s === 2 || s === 3) {
356
- if (s = 4, h !== 0 && (c(h), h = 0), l.readyState = 4, v === "load")
357
- l.onload(O);
327
+ }), k(), d === 1 || d === 2 || d === 3) {
328
+ if (d = 4, h !== 0 && (l(h), h = 0), s.readyState = 4, v === "load")
329
+ s.onload(O);
358
330
  else if (v === "error")
359
- l.onerror(O);
331
+ s.onerror(O);
360
332
  else if (v === "abort")
361
- l.onabort(O);
333
+ s.onabort(O);
362
334
  else
363
335
  throw new TypeError();
364
- l.onreadystatechange();
336
+ s.onreadystatechange();
365
337
  }
366
338
  }, E = function(v) {
367
339
  i != null && (i.readyState === 4 ? (!("onload" in i) || !("onerror" in i) || !("onabort" in i)) && S(i.responseText === "" ? "error" : "load", v) : i.readyState === 3 ? "onprogress" in i || k() : i.readyState === 2 && w());
@@ -378,23 +350,23 @@ var We = { exports: {} };
378
350
  S("abort", v);
379
351
  }), "onprogress" in i && (i.onprogress = k), "onreadystatechange" in i && (i.onreadystatechange = function(v) {
380
352
  E(v);
381
- }), ("contentType" in i || !("ontimeout" in u.prototype)) && (a += (a.indexOf("?") === -1 ? "?" : "&") + "padding=true"), i.open(n, a, !0), "readyState" in i && (h = r(function() {
353
+ }), ("contentType" in i || !("ontimeout" in u.prototype)) && (a += (a.indexOf("?") === -1 ? "?" : "&") + "padding=true"), i.open(t, a, !0), "readyState" in i && (h = r(function() {
382
354
  L();
383
355
  }, 0));
384
356
  }, A.prototype.abort = function() {
385
357
  this._abort(!1);
386
- }, A.prototype.getResponseHeader = function(n) {
358
+ }, A.prototype.getResponseHeader = function(t) {
387
359
  return this._contentType;
388
- }, A.prototype.setRequestHeader = function(n, a) {
389
- var l = this._xhr;
390
- "setRequestHeader" in l && l.setRequestHeader(n, a);
360
+ }, A.prototype.setRequestHeader = function(t, a) {
361
+ var s = this._xhr;
362
+ "setRequestHeader" in s && s.setRequestHeader(t, a);
391
363
  }, A.prototype.getAllResponseHeaders = function() {
392
364
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
393
365
  }, A.prototype.send = function() {
394
366
  if ((!("ontimeout" in u.prototype) || !("sendAsBinary" in u.prototype) && !("mozAnon" in u.prototype)) && y != null && y.readyState != null && y.readyState !== "complete") {
395
- var n = this;
396
- n._sendTimeout = r(function() {
397
- n._sendTimeout = 0, n.send();
367
+ var t = this;
368
+ t._sendTimeout = r(function() {
369
+ t._sendTimeout = 0, t.send();
398
370
  }, 4);
399
371
  return;
400
372
  }
@@ -402,61 +374,61 @@ var We = { exports: {} };
402
374
  "withCredentials" in a && (a.withCredentials = this.withCredentials);
403
375
  try {
404
376
  a.send(void 0);
405
- } catch (l) {
406
- throw l;
377
+ } catch (s) {
378
+ throw s;
407
379
  }
408
380
  };
409
- function G(n) {
410
- return n.replace(/[A-Z]/g, function(a) {
381
+ function G(t) {
382
+ return t.replace(/[A-Z]/g, function(a) {
411
383
  return String.fromCharCode(a.charCodeAt(0) + 32);
412
384
  });
413
385
  }
414
- function D(n) {
415
- for (var a = /* @__PURE__ */ Object.create(null), l = n.split(`\r
416
- `), i = 0; i < l.length; i += 1) {
417
- var s = l[i], h = s.split(": "), w = h.shift(), k = h.join(": ");
386
+ function D(t) {
387
+ for (var a = /* @__PURE__ */ Object.create(null), s = t.split(`\r
388
+ `), i = 0; i < s.length; i += 1) {
389
+ var d = s[i], h = d.split(": "), w = h.shift(), k = h.join(": ");
418
390
  a[G(w)] = k;
419
391
  }
420
392
  this._map = a;
421
393
  }
422
- D.prototype.get = function(n) {
423
- return this._map[G(n)];
394
+ D.prototype.get = function(t) {
395
+ return this._map[G(t)];
424
396
  }, u != null && u.HEADERS_RECEIVED == null && (u.HEADERS_RECEIVED = 2);
425
397
  function W() {
426
398
  }
427
- W.prototype.open = function(n, a, l, i, s, h, w) {
428
- n.open("GET", s);
399
+ W.prototype.open = function(t, a, s, i, d, h, w) {
400
+ t.open("GET", d);
429
401
  var k = 0;
430
- n.onprogress = function() {
431
- var E = n.responseText, L = E.slice(k);
432
- k += L.length, l(L);
433
- }, n.onerror = function(E) {
402
+ t.onprogress = function() {
403
+ var E = t.responseText, L = E.slice(k);
404
+ k += L.length, s(L);
405
+ }, t.onerror = function(E) {
434
406
  E.preventDefault(), i(new Error("NetworkError"));
435
- }, n.onload = function() {
407
+ }, t.onload = function() {
436
408
  i(null);
437
- }, n.onabort = function() {
409
+ }, t.onabort = function() {
438
410
  i(null);
439
- }, n.onreadystatechange = function() {
440
- if (n.readyState === u.HEADERS_RECEIVED) {
441
- var E = n.status, L = n.statusText, v = n.getResponseHeader("Content-Type"), O = n.getAllResponseHeaders();
411
+ }, t.onreadystatechange = function() {
412
+ if (t.readyState === u.HEADERS_RECEIVED) {
413
+ var E = t.status, L = t.statusText, v = t.getResponseHeader("Content-Type"), O = t.getAllResponseHeaders();
442
414
  a(E, L, v, new D(O));
443
415
  }
444
- }, n.withCredentials = h;
416
+ }, t.withCredentials = h;
445
417
  for (var S in w)
446
- Object.prototype.hasOwnProperty.call(w, S) && n.setRequestHeader(S, w[S]);
447
- return n.send(), n;
418
+ Object.prototype.hasOwnProperty.call(w, S) && t.setRequestHeader(S, w[S]);
419
+ return t.send(), t;
448
420
  };
449
- function he(n) {
450
- this._headers = n;
421
+ function he(t) {
422
+ this._headers = t;
451
423
  }
452
- he.prototype.get = function(n) {
453
- return this._headers.get(n);
424
+ he.prototype.get = function(t) {
425
+ return this._headers.get(t);
454
426
  };
455
427
  function me() {
456
428
  }
457
- me.prototype.open = function(n, a, l, i, s, h, w) {
429
+ me.prototype.open = function(t, a, s, i, d, h, w) {
458
430
  var k = null, S = new U(), E = S.signal, L = new C();
459
- return F(s, {
431
+ return F(d, {
460
432
  headers: w,
461
433
  credentials: h ? "include" : "same-origin",
462
434
  signal: E,
@@ -469,7 +441,7 @@ var We = { exports: {} };
469
441
  O(void 0);
470
442
  else {
471
443
  var X = L.decode(Q.value, { stream: !0 });
472
- l(X), Le();
444
+ s(X), Le();
473
445
  }
474
446
  }).catch(function(Q) {
475
447
  ie(Q);
@@ -484,92 +456,92 @@ var We = { exports: {} };
484
456
  i(v);
485
457
  }), {
486
458
  abort: function() {
487
- k != null && k.cancel(), S.abort();
459
+ k?.cancel(), S.abort();
488
460
  }
489
461
  };
490
462
  };
491
- function p() {
463
+ function f() {
492
464
  this._listeners = /* @__PURE__ */ Object.create(null);
493
465
  }
494
- function ge(n) {
466
+ function ge(t) {
495
467
  r(function() {
496
- throw n;
468
+ throw t;
497
469
  }, 0);
498
470
  }
499
- p.prototype.dispatchEvent = function(n) {
500
- n.target = this;
501
- var a = this._listeners[n.type];
471
+ f.prototype.dispatchEvent = function(t) {
472
+ t.target = this;
473
+ var a = this._listeners[t.type];
502
474
  if (a != null)
503
- for (var l = a.length, i = 0; i < l; i += 1) {
504
- var s = a[i];
475
+ for (var s = a.length, i = 0; i < s; i += 1) {
476
+ var d = a[i];
505
477
  try {
506
- typeof s.handleEvent == "function" ? s.handleEvent(n) : s.call(this, n);
478
+ typeof d.handleEvent == "function" ? d.handleEvent(t) : d.call(this, t);
507
479
  } catch (h) {
508
480
  ge(h);
509
481
  }
510
482
  }
511
- }, p.prototype.addEventListener = function(n, a) {
512
- n = String(n);
513
- var l = this._listeners, i = l[n];
514
- i == null && (i = [], l[n] = i);
515
- for (var s = !1, h = 0; h < i.length; h += 1)
516
- i[h] === a && (s = !0);
517
- s || i.push(a);
518
- }, p.prototype.removeEventListener = function(n, a) {
519
- n = String(n);
520
- var l = this._listeners, i = l[n];
483
+ }, f.prototype.addEventListener = function(t, a) {
484
+ t = String(t);
485
+ var s = this._listeners, i = s[t];
486
+ i == null && (i = [], s[t] = i);
487
+ for (var d = !1, h = 0; h < i.length; h += 1)
488
+ i[h] === a && (d = !0);
489
+ d || i.push(a);
490
+ }, f.prototype.removeEventListener = function(t, a) {
491
+ t = String(t);
492
+ var s = this._listeners, i = s[t];
521
493
  if (i != null) {
522
- for (var s = [], h = 0; h < i.length; h += 1)
523
- i[h] !== a && s.push(i[h]);
524
- s.length === 0 ? delete l[n] : l[n] = s;
494
+ for (var d = [], h = 0; h < i.length; h += 1)
495
+ i[h] !== a && d.push(i[h]);
496
+ d.length === 0 ? delete s[t] : s[t] = d;
525
497
  }
526
498
  };
527
- function ye(n) {
528
- this.type = n, this.target = void 0;
499
+ function ye(t) {
500
+ this.type = t, this.target = void 0;
529
501
  }
530
- function Se(n, a) {
531
- ye.call(this, n), this.data = a.data, this.lastEventId = a.lastEventId;
502
+ function Se(t, a) {
503
+ ye.call(this, t), this.data = a.data, this.lastEventId = a.lastEventId;
532
504
  }
533
505
  Se.prototype = Object.create(ye.prototype);
534
- function _e(n, a) {
535
- ye.call(this, n), this.status = a.status, this.statusText = a.statusText, this.headers = a.headers;
506
+ function _e(t, a) {
507
+ ye.call(this, t), this.status = a.status, this.statusText = a.statusText, this.headers = a.headers;
536
508
  }
537
509
  _e.prototype = Object.create(ye.prototype);
538
- function Fe(n, a) {
539
- ye.call(this, n), this.error = a.error;
510
+ function Fe(t, a) {
511
+ ye.call(this, t), this.error = a.error;
540
512
  }
541
513
  Fe.prototype = Object.create(ye.prototype);
542
- var Ae = -1, ee = 0, re = 1, we = 2, be = -1, te = 0, Re = 1, Ee = 2, He = 3, ze = /^text\/event\-stream(;.*)?$/i, ke = 1e3, Ue = 18e6, xe = function(n, a) {
543
- var l = n == null ? a : parseInt(n, 10);
544
- return l !== l && (l = a), De(l);
545
- }, De = function(n) {
546
- return Math.min(Math.max(n, ke), Ue);
547
- }, ve = function(n, a, l) {
514
+ var Ae = -1, ee = 0, re = 1, we = 2, be = -1, te = 0, Re = 1, Ee = 2, He = 3, ze = /^text\/event\-stream(;.*)?$/i, ke = 1e3, Ue = 18e6, xe = function(t, a) {
515
+ var s = t == null ? a : parseInt(t, 10);
516
+ return s !== s && (s = a), De(s);
517
+ }, De = function(t) {
518
+ return Math.min(Math.max(t, ke), Ue);
519
+ }, ve = function(t, a, s) {
548
520
  try {
549
- typeof a == "function" && a.call(n, l);
521
+ typeof a == "function" && a.call(t, s);
550
522
  } catch (i) {
551
523
  ge(i);
552
524
  }
553
525
  };
554
- function J(n, a) {
555
- p.call(this), a = a || {}, 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, d(this, n, a);
526
+ function J(t, a) {
527
+ f.call(this), a = a || {}, 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, c(this, t, a);
556
528
  }
557
529
  function Pe() {
558
- return u != null && "withCredentials" in u.prototype || g == null ? new u() : new g();
530
+ return u != null && "withCredentials" in u.prototype || m == null ? new u() : new m();
559
531
  }
560
532
  var Ge = F != null && B != null && "body" in B.prototype;
561
- function d(n, a, l) {
533
+ function c(t, a, s) {
562
534
  a = String(a);
563
- var i = !!l.withCredentials, s = l.lastEventIdQueryParameterName || "lastEventId", h = De(1e3), w = xe(l.heartbeatTimeout, 45e3), k = "", S = h, E = !1, L = 0, v = l.headers || {}, O = l.Transport, ie = Ge && O == null ? void 0 : new A(O != null ? new O() : Pe()), Le = O != null && typeof O != "string" ? new O() : ie == null ? new me() : new W(), Q = void 0, X = 0, ne = Ae, Ce = "", Oe = "", se = "", Ne = "", K = te, Xe = 0, Be = 0, ft = function(j, I, Z, $) {
535
+ var i = !!s.withCredentials, d = s.lastEventIdQueryParameterName || "lastEventId", h = De(1e3), w = xe(s.heartbeatTimeout, 45e3), k = "", S = h, E = !1, L = 0, v = s.headers || {}, O = s.Transport, ie = Ge && O == null ? void 0 : new A(O != null ? new O() : Pe()), Le = O != null && typeof O != "string" ? new O() : ie == null ? new me() : new W(), Q = void 0, X = 0, ne = Ae, Ce = "", Oe = "", se = "", Ne = "", K = te, Xe = 0, Be = 0, st = function(j, I, Z, $) {
564
536
  if (ne === ee)
565
537
  if (j === 200 && Z != null && ze.test(Z)) {
566
- ne = re, E = Date.now(), S = h, n.readyState = re;
538
+ ne = re, E = Date.now(), S = h, t.readyState = re;
567
539
  var q = new _e("open", {
568
540
  status: j,
569
541
  statusText: I,
570
542
  headers: $
571
543
  });
572
- n.dispatchEvent(q), ve(n, n.onopen, q);
544
+ t.dispatchEvent(q), ve(t, t.onopen, q);
573
545
  } else {
574
546
  var z = "";
575
547
  j !== 200 ? (I && (I = I.replace(/\s+/g, " ")), z = "EventSource's response has a status " + j + " " + I + " that is not 200. Aborting the connection.") : z = "EventSource's response has a Content-Type specifying an unsupported type: " + (Z == null ? "-" : Z.replace(/\s+/g, " ")) + ". Aborting the connection.", Ke();
@@ -578,9 +550,9 @@ var We = { exports: {} };
578
550
  statusText: I,
579
551
  headers: $
580
552
  });
581
- n.dispatchEvent(q), ve(n, n.onerror, q), console.error(z);
553
+ t.dispatchEvent(q), ve(t, t.onerror, q), console.error(z);
582
554
  }
583
- }, pt = function(j) {
555
+ }, lt = function(j) {
584
556
  if (ne === re) {
585
557
  for (var I = -1, Z = 0; Z < j.length; Z += 1) {
586
558
  var $ = j.charCodeAt(Z);
@@ -597,7 +569,7 @@ var We = { exports: {} };
597
569
  K === Re && (Be = z + 1);
598
570
  var le = q.slice(Xe, Be - 1), ce = q.slice(Be + (Be < z && q.charCodeAt(Be) === 32 ? 1 : 0), z);
599
571
  le === "data" ? (Ce += `
600
- `, Ce += ce) : le === "id" ? Oe = ce : le === "event" ? se = ce : le === "retry" ? (h = xe(ce, h), S = h) : le === "heartbeatTimeout" && (w = xe(ce, w), X !== 0 && (c(X), X = r(function() {
572
+ `, Ce += ce) : le === "id" ? Oe = ce : le === "event" ? se = ce : le === "retry" ? (h = xe(ce, h), S = h) : le === "heartbeatTimeout" && (w = xe(ce, w), X !== 0 && (l(X), X = r(function() {
601
573
  Me();
602
574
  }, w)));
603
575
  }
@@ -608,7 +580,7 @@ var We = { exports: {} };
608
580
  data: Ce.slice(1),
609
581
  lastEventId: Oe
610
582
  });
611
- if (n.dispatchEvent(Te), se === "open" ? ve(n, n.onopen, Te) : se === "message" ? ve(n, n.onmessage, Te) : se === "error" && ve(n, n.onerror, Te), ne === we)
583
+ if (t.dispatchEvent(Te), se === "open" ? ve(t, t.onopen, Te) : se === "message" ? ve(t, t.onmessage, Te) : se === "error" && ve(t, t.onerror, Te), ne === we)
612
584
  return;
613
585
  }
614
586
  Ce = "", se = "";
@@ -620,14 +592,14 @@ var We = { exports: {} };
620
592
  }
621
593
  }, Je = function(j) {
622
594
  if (ne === re || ne === ee) {
623
- ne = Ae, X !== 0 && (c(X), X = 0), X = r(function() {
595
+ ne = Ae, X !== 0 && (l(X), X = 0), X = r(function() {
624
596
  Me();
625
- }, S), S = De(Math.min(h * 16, S * 2)), n.readyState = ee;
597
+ }, S), S = De(Math.min(h * 16, S * 2)), t.readyState = ee;
626
598
  var I = new Fe("error", { error: j });
627
- n.dispatchEvent(I), ve(n, n.onerror, I), j != null && console.error(j);
599
+ t.dispatchEvent(I), ve(t, t.onerror, I), j != null && console.error(j);
628
600
  }
629
601
  }, Ke = function() {
630
- ne = we, Q != null && (Q.abort(), Q = void 0), X !== 0 && (c(X), X = 0), n.readyState = we;
602
+ ne = we, Q != null && (Q.abort(), Q = void 0), X !== 0 && (l(X), X = 0), t.readyState = we;
631
603
  }, Me = function() {
632
604
  if (X = 0, ne !== Ae) {
633
605
  if (!E && Q != null)
@@ -647,38 +619,38 @@ var We = { exports: {} };
647
619
  if (a.slice(0, 5) !== "data:" && a.slice(0, 5) !== "blob:" && k !== "") {
648
620
  var Z = a.indexOf("?");
649
621
  I = Z === -1 ? a : a.slice(0, Z + 1) + a.slice(Z + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ce, Te) {
650
- return Te === s ? "" : ce;
651
- }), I += (a.indexOf("?") === -1 ? "?" : "&") + s + "=" + encodeURIComponent(k);
622
+ return Te === d ? "" : ce;
623
+ }), I += (a.indexOf("?") === -1 ? "?" : "&") + d + "=" + encodeURIComponent(k);
652
624
  }
653
- var $ = n.withCredentials, q = {};
625
+ var $ = t.withCredentials, q = {};
654
626
  q.Accept = "text/event-stream";
655
- var z = n.headers;
627
+ var z = t.headers;
656
628
  if (z != null)
657
629
  for (var le in z)
658
630
  Object.prototype.hasOwnProperty.call(z, le) && (q[le] = z[le]);
659
631
  try {
660
- Q = Le.open(ie, ft, pt, Je, I, $, q);
632
+ Q = Le.open(ie, st, lt, Je, I, $, q);
661
633
  } catch (ce) {
662
634
  throw Ke(), ce;
663
635
  }
664
636
  };
665
- n.url = a, n.readyState = ee, n.withCredentials = i, n.headers = v, n._close = Ke, Me();
637
+ t.url = a, t.readyState = ee, t.withCredentials = i, t.headers = v, t._close = Ke, Me();
666
638
  }
667
- J.prototype = Object.create(p.prototype), J.prototype.CONNECTING = ee, J.prototype.OPEN = re, J.prototype.CLOSED = we, J.prototype.close = function() {
639
+ J.prototype = Object.create(f.prototype), J.prototype.CONNECTING = ee, J.prototype.OPEN = re, J.prototype.CLOSED = we, J.prototype.close = function() {
668
640
  this._close();
669
641
  }, J.CONNECTING = ee, J.OPEN = re, J.CLOSED = we, J.prototype.withCredentials = void 0;
670
- var b = m;
671
- u != null && (m == null || !("withCredentials" in m.prototype)) && (b = J), function(n) {
642
+ var b = g;
643
+ u != null && (g == null || !("withCredentials" in g.prototype)) && (b = J), function(t) {
672
644
  {
673
- var a = n(e);
645
+ var a = t(e);
674
646
  a !== void 0 && (o.exports = a);
675
647
  }
676
- }(function(n) {
677
- n.EventSourcePolyfill = J, n.NativeEventSource = m, n.EventSource = b;
648
+ }(function(t) {
649
+ t.EventSourcePolyfill = J, t.NativeEventSource = g, t.EventSource = b;
678
650
  });
679
- })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Bt : globalThis);
651
+ })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : dt : globalThis);
680
652
  })(We, We.exports);
681
- var kt = We.exports;
653
+ var St = We.exports;
682
654
  /*!
683
655
  * currency.js - v2.0.4
684
656
  * http://scurker.github.io/currency.js
@@ -686,7 +658,7 @@ var kt = We.exports;
686
658
  * Copyright (c) 2021 Jason Wilson
687
659
  * Released under MIT license
688
660
  */
689
- var Ot = {
661
+ var _t = {
690
662
  symbol: "$",
691
663
  separator: ",",
692
664
  decimal: ".",
@@ -694,41 +666,41 @@ var Ot = {
694
666
  precision: 2,
695
667
  pattern: "!#",
696
668
  negativePattern: "-!#",
697
- format: jt,
669
+ format: xt,
698
670
  fromCents: !1
699
- }, dt = function(e) {
671
+ }, it = function(e) {
700
672
  return Math.round(e);
701
673
  }, Ye = function(e) {
702
674
  return Math.pow(10, e);
703
- }, Nt = function(e, t) {
704
- return dt(e / t) * t;
705
- }, It = /(\d)(?=(\d{3})+\b)/g, Vt = /(\d)(?=(\d\d)+\d\b)/g;
675
+ }, At = function(e, n) {
676
+ return it(e / n) * n;
677
+ }, Rt = /(\d)(?=(\d{3})+\b)/g, Et = /(\d)(?=(\d\d)+\d\b)/g;
706
678
  function ae(o, e) {
707
- var t = this;
708
- if (!(t instanceof ae))
679
+ var n = this;
680
+ if (!(n instanceof ae))
709
681
  return new ae(o, e);
710
- var r = Object.assign({}, Ot, e), c = Ye(r.precision), u = Ie(o, r);
711
- t.intValue = u, t.value = u / c, r.increment = r.increment || 1 / c, r.useVedic ? r.groups = Vt : r.groups = It, this.s = r, this.p = c;
682
+ var r = Object.assign({}, _t, e), l = Ye(r.precision), u = Ie(o, r);
683
+ n.intValue = u, n.value = u / l, r.increment = r.increment || 1 / l, r.useVedic ? r.groups = Et : r.groups = Rt, this.s = r, this.p = l;
712
684
  }
713
685
  function Ie(o, e) {
714
- var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, c = e.decimal, u = e.errorOnInvalid, g = e.precision, f = e.fromCents, m = Ye(g), y = typeof o == "number", x = o instanceof ae;
715
- if (x && f)
686
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, l = e.decimal, u = e.errorOnInvalid, m = e.precision, p = e.fromCents, g = Ye(m), y = typeof o == "number", x = o instanceof ae;
687
+ if (x && p)
716
688
  return o.intValue;
717
689
  if (y || x)
718
690
  r = x ? o.value : o;
719
691
  else if (typeof o == "string") {
720
- var F = new RegExp("[^-\\d" + c + "]", "g"), B = new RegExp("\\" + c, "g");
692
+ var F = new RegExp("[^-\\d" + l + "]", "g"), B = new RegExp("\\" + l, "g");
721
693
  r = o.replace(/\((.*)\)/, "-$1").replace(F, "").replace(B, "."), r = r || 0;
722
694
  } else {
723
695
  if (u)
724
696
  throw Error("Invalid Input");
725
697
  r = 0;
726
698
  }
727
- return f || (r *= m, r = r.toFixed(4)), t ? dt(r) : r;
699
+ return p || (r *= g, r = r.toFixed(4)), n ? it(r) : r;
728
700
  }
729
- function jt(o, e) {
730
- var t = e.pattern, r = e.negativePattern, c = e.symbol, u = e.separator, g = e.decimal, f = e.groups, m = ("" + o).replace(/^-/, "").split("."), y = m[0], x = m[1];
731
- return (o.value >= 0 ? t : r).replace("!", c).replace("#", y.replace(f, "$1" + u) + (x ? g + x : ""));
701
+ function xt(o, e) {
702
+ var n = e.pattern, r = e.negativePattern, l = e.symbol, u = e.separator, m = e.decimal, p = e.groups, g = ("" + o).replace(/^-/, "").split("."), y = g[0], x = g[1];
703
+ return (o.value >= 0 ? n : r).replace("!", l).replace("#", y.replace(p, "$1" + u) + (x ? m + x : ""));
732
704
  }
733
705
  ae.prototype = {
734
706
  /**
@@ -737,8 +709,8 @@ ae.prototype = {
737
709
  * @returns {currency}
738
710
  */
739
711
  add: function(e) {
740
- var t = this.intValue, r = this.s, c = this.p;
741
- return ae((t += Ie(e, r)) / (r.fromCents ? 1 : c), r);
712
+ var n = this.intValue, r = this.s, l = this.p;
713
+ return ae((n += Ie(e, r)) / (r.fromCents ? 1 : l), r);
742
714
  },
743
715
  /**
744
716
  * Subtracts value.
@@ -746,8 +718,8 @@ ae.prototype = {
746
718
  * @returns {currency}
747
719
  */
748
720
  subtract: function(e) {
749
- var t = this.intValue, r = this.s, c = this.p;
750
- return ae((t -= Ie(e, r)) / (r.fromCents ? 1 : c), r);
721
+ var n = this.intValue, r = this.s, l = this.p;
722
+ return ae((n -= Ie(e, r)) / (r.fromCents ? 1 : l), r);
751
723
  },
752
724
  /**
753
725
  * Multiplies values.
@@ -755,8 +727,8 @@ ae.prototype = {
755
727
  * @returns {currency}
756
728
  */
757
729
  multiply: function(e) {
758
- var t = this.intValue, r = this.s;
759
- return ae((t *= e) / (r.fromCents ? 1 : Ye(r.precision)), r);
730
+ var n = this.intValue, r = this.s;
731
+ return ae((n *= e) / (r.fromCents ? 1 : Ye(r.precision)), r);
760
732
  },
761
733
  /**
762
734
  * Divides value.
@@ -764,8 +736,8 @@ ae.prototype = {
764
736
  * @returns {currency}
765
737
  */
766
738
  divide: function(e) {
767
- var t = this.intValue, r = this.s;
768
- return ae(t /= Ie(e, r, !1), r);
739
+ var n = this.intValue, r = this.s;
740
+ return ae(n /= Ie(e, r, !1), r);
769
741
  },
770
742
  /**
771
743
  * Takes the currency amount and distributes the values evenly. Any extra pennies
@@ -774,9 +746,9 @@ ae.prototype = {
774
746
  * @returns {array}
775
747
  */
776
748
  distribute: function(e) {
777
- for (var t = this.intValue, r = this.p, c = this.s, u = [], g = Math[t >= 0 ? "floor" : "ceil"](t / e), f = Math.abs(t - g * e), m = c.fromCents ? 1 : r; e !== 0; e--) {
778
- var y = ae(g / m, c);
779
- f-- > 0 && (y = y[t >= 0 ? "add" : "subtract"](1 / m)), u.push(y);
749
+ for (var n = this.intValue, r = this.p, l = this.s, u = [], m = Math[n >= 0 ? "floor" : "ceil"](n / e), p = Math.abs(n - m * e), g = l.fromCents ? 1 : r; e !== 0; e--) {
750
+ var y = ae(m / g, l);
751
+ p-- > 0 && (y = y[n >= 0 ? "add" : "subtract"](1 / g)), u.push(y);
780
752
  }
781
753
  return u;
782
754
  },
@@ -792,8 +764,8 @@ ae.prototype = {
792
764
  * @returns {number}
793
765
  */
794
766
  cents: function() {
795
- var e = this.intValue, t = this.p;
796
- return ~~(e % t);
767
+ var e = this.intValue, n = this.p;
768
+ return ~~(e % n);
797
769
  },
798
770
  /**
799
771
  * Formats the value as a string according to the formatting settings.
@@ -801,16 +773,16 @@ ae.prototype = {
801
773
  * @returns {string}
802
774
  */
803
775
  format: function(e) {
804
- var t = this.s;
805
- return typeof e == "function" ? e(this, t) : t.format(this, Object.assign({}, t, e));
776
+ var n = this.s;
777
+ return typeof e == "function" ? e(this, n) : n.format(this, Object.assign({}, n, e));
806
778
  },
807
779
  /**
808
780
  * Formats the value as a string according to the formatting settings.
809
781
  * @returns {string}
810
782
  */
811
783
  toString: function() {
812
- var e = this.intValue, t = this.p, r = this.s;
813
- return Nt(e / t, r.increment).toFixed(r.precision);
784
+ var e = this.intValue, n = this.p, r = this.s;
785
+ return At(e / n, r.increment).toFixed(r.precision);
814
786
  },
815
787
  /**
816
788
  * Value for JSON serialization.
@@ -820,19 +792,19 @@ ae.prototype = {
820
792
  return this.value;
821
793
  }
822
794
  };
823
- function Ht(o) {
824
- At(o, "svelte-113krup", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.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}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));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, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.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, #07072A))}.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, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
795
+ function Dt(o) {
796
+ gt(o, "svelte-113krup", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.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}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));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, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.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, #07072A))}.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, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
825
797
  }
826
- function ot(o, e, t) {
798
+ function $e(o, e, n) {
827
799
  const r = o.slice();
828
- return r[47] = e[t], r;
800
+ return r[47] = e[n], r;
829
801
  }
830
- function rt(o, e, t) {
802
+ function et(o, e, n) {
831
803
  const r = o.slice();
832
- return r[50] = e[t], r;
804
+ return r[50] = e[n], r;
833
805
  }
834
- function zt(o) {
835
- let e, t = (
806
+ function Lt(o) {
807
+ let e, n = (
836
808
  /*balances*/
837
809
  (o[4].Total ? (
838
810
  /*formatBalance*/
@@ -841,19 +813,19 @@ function zt(o) {
841
813
  o[4].Total[0].amount
842
814
  )
843
815
  ) : "0") + ""
844
- ), r, c, u, g, f, m, y, x, F, B = (
816
+ ), r, l, u, m, p, g, y, x, F, B = (
845
817
  /*showBalance*/
846
- o[2] && it(o)
818
+ o[2] && tt(o)
847
819
  );
848
820
  return {
849
821
  c() {
850
- e = N("p"), r = ue(t), c = oe(), u = ue(
822
+ e = N("p"), r = ue(n), l = oe(), u = ue(
851
823
  /*currency*/
852
824
  o[3]
853
- ), g = oe(), f = N("span"), f.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', m = oe(), B && B.c(), y = Dt(), V(e, "class", "BalanceValue"), V(e, "part", "BalanceValue");
825
+ ), m = oe(), p = N("span"), p.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', g = oe(), B && B.c(), y = bt(), V(e, "class", "BalanceValue"), V(e, "part", "BalanceValue");
854
826
  },
855
827
  m(C, _) {
856
- fe(C, e, _), R(e, r), R(e, c), R(e, u), R(e, g), R(e, f), fe(C, m, _), B && B.m(C, _), fe(C, y, _), x || (F = Ve(
828
+ fe(C, e, _), R(e, r), R(e, l), R(e, u), R(e, m), R(e, p), fe(C, g, _), B && B.m(C, _), fe(C, y, _), x || (F = Ve(
857
829
  e,
858
830
  "click",
859
831
  /*click_handler*/
@@ -862,53 +834,53 @@ function zt(o) {
862
834
  },
863
835
  p(C, _) {
864
836
  _[0] & /*balances*/
865
- 16 && t !== (t = /*balances*/
837
+ 16 && n !== (n = /*balances*/
866
838
  (C[4].Total ? (
867
839
  /*formatBalance*/
868
840
  C[6](
869
841
  /*balances*/
870
842
  C[4].Total[0].amount
871
843
  )
872
- ) : "0") + "") && de(r, t), _[0] & /*currency*/
844
+ ) : "0") + "") && de(r, n), _[0] & /*currency*/
873
845
  8 && de(
874
846
  u,
875
847
  /*currency*/
876
848
  C[3]
877
849
  ), /*showBalance*/
878
- C[2] ? B ? B.p(C, _) : (B = it(C), B.c(), B.m(y.parentNode, y)) : B && (B.d(1), B = null);
850
+ C[2] ? B ? B.p(C, _) : (B = tt(C), B.c(), B.m(y.parentNode, y)) : B && (B.d(1), B = null);
879
851
  },
880
852
  d(C) {
881
- C && (pe(e), pe(m), pe(y)), B && B.d(C), x = !1, F();
853
+ C && (pe(e), pe(g), pe(y)), B && B.d(C), x = !1, F();
882
854
  }
883
855
  };
884
856
  }
885
- function Ut(o) {
886
- let e, t = (
857
+ function Mt(o) {
858
+ let e, n = (
887
859
  /*$_*/
888
860
  o[5]("Loading") + ""
889
861
  ), r;
890
862
  return {
891
863
  c() {
892
- e = N("p"), r = ue(t);
864
+ e = N("p"), r = ue(n);
893
865
  },
894
- m(c, u) {
895
- fe(c, e, u), R(e, r);
866
+ m(l, u) {
867
+ fe(l, e, u), R(e, r);
896
868
  },
897
- p(c, u) {
869
+ p(l, u) {
898
870
  u[0] & /*$_*/
899
- 32 && t !== (t = /*$_*/
900
- c[5]("Loading") + "") && de(r, t);
871
+ 32 && n !== (n = /*$_*/
872
+ l[5]("Loading") + "") && de(r, n);
901
873
  },
902
- d(c) {
903
- c && pe(e);
874
+ d(l) {
875
+ l && pe(e);
904
876
  }
905
877
  };
906
878
  }
907
- function it(o) {
908
- let e, t, r, c, u, g, f = (
879
+ function tt(o) {
880
+ let e, n, r, l, u, m, p = (
909
881
  /*$_*/
910
882
  o[5]("Title") + ""
911
- ), m, y, x, F, B, C, _ = (
883
+ ), g, y, x, F, B, C, _ = (
912
884
  /*$_*/
913
885
  o[5]("DepositButton") + ""
914
886
  ), U, M, H, P = je(Object.keys(
@@ -916,21 +888,21 @@ function it(o) {
916
888
  o[4]
917
889
  )), T = [];
918
890
  for (let A = 0; A < P.length; A += 1)
919
- T[A] = lt(ot(o, P, A));
891
+ T[A] = at($e(o, P, A));
920
892
  return {
921
893
  c() {
922
- e = N("div"), t = N("div"), r = oe(), c = N("div"), u = N("div"), g = N("p"), m = ue(f), y = oe(), x = N("div");
894
+ e = N("div"), n = N("div"), r = oe(), l = N("div"), u = N("div"), m = N("p"), g = ue(p), y = oe(), x = N("div");
923
895
  for (let A = 0; A < T.length; A += 1)
924
896
  T[A].c();
925
- F = oe(), B = N("div"), C = N("button"), U = ue(_), V(t, "class", "BalanceModalClose"), V(g, "class", "BalanceModalTitle"), V(u, "class", "BalanceModalHeader"), V(x, "class", "BalanceModalBody"), V(C, "class", "BalanceModalAction"), V(B, "class", "BalanceModalFooter"), V(c, "class", "BalanceModal"), V(e, "class", "BalanceModalWrapper");
897
+ F = oe(), B = N("div"), C = N("button"), U = ue(_), V(n, "class", "BalanceModalClose"), V(m, "class", "BalanceModalTitle"), V(u, "class", "BalanceModalHeader"), V(x, "class", "BalanceModalBody"), V(C, "class", "BalanceModalAction"), V(B, "class", "BalanceModalFooter"), V(l, "class", "BalanceModal"), V(e, "class", "BalanceModalWrapper");
926
898
  },
927
899
  m(A, G) {
928
- fe(A, e, G), R(e, t), R(e, r), R(e, c), R(c, u), R(u, g), R(g, m), R(c, y), R(c, x);
900
+ fe(A, e, G), R(e, n), R(e, r), R(e, l), R(l, u), R(u, m), R(m, g), R(l, y), R(l, x);
929
901
  for (let D = 0; D < T.length; D += 1)
930
902
  T[D] && T[D].m(x, null);
931
- R(c, F), R(c, B), R(B, C), R(C, U), M || (H = [
903
+ R(l, F), R(l, B), R(B, C), R(C, U), M || (H = [
932
904
  Ve(
933
- t,
905
+ n,
934
906
  "click",
935
907
  /*click_handler_1*/
936
908
  o[23]
@@ -945,8 +917,8 @@ function it(o) {
945
917
  },
946
918
  p(A, G) {
947
919
  if (G[0] & /*$_*/
948
- 32 && f !== (f = /*$_*/
949
- A[5]("Title") + "") && de(m, f), G[0] & /*balances, currency, formatBalance, $_*/
920
+ 32 && p !== (p = /*$_*/
921
+ A[5]("Title") + "") && de(g, p), G[0] & /*balances, currency, formatBalance, $_*/
950
922
  120) {
951
923
  P = je(Object.keys(
952
924
  /*balances*/
@@ -954,8 +926,8 @@ function it(o) {
954
926
  ));
955
927
  let D;
956
928
  for (D = 0; D < P.length; D += 1) {
957
- const W = ot(A, P, D);
958
- T[D] ? T[D].p(W, G) : (T[D] = lt(W), T[D].c(), T[D].m(x, null));
929
+ const W = $e(A, P, D);
930
+ T[D] ? T[D].p(W, G) : (T[D] = at(W), T[D].c(), T[D].m(x, null));
959
931
  }
960
932
  for (; D < T.length; D += 1)
961
933
  T[D].d(1);
@@ -966,18 +938,18 @@ function it(o) {
966
938
  A[5]("DepositButton") + "") && de(U, _);
967
939
  },
968
940
  d(A) {
969
- A && pe(e), ut(T, A), M = !1, Lt(H);
941
+ A && pe(e), rt(T, A), M = !1, Bt(H);
970
942
  }
971
943
  };
972
944
  }
973
- function st(o) {
974
- let e, t, r = (
945
+ function nt(o) {
946
+ let e, n, r = (
975
947
  /*$_*/
976
948
  o[5](
977
949
  /*k*/
978
950
  o[47]
979
951
  ) + ""
980
- ), c, u, g = (
952
+ ), l, u, m = (
981
953
  /*b*/
982
954
  (o[50].productType ? (
983
955
  /*$_*/
@@ -986,7 +958,7 @@ function st(o) {
986
958
  o[50].productType
987
959
  )
988
960
  ) : "") + ""
989
- ), f, m, y, x, F = (
961
+ ), p, g, y, x, F = (
990
962
  /*b*/
991
963
  (o[50].amount ? (
992
964
  /*formatBalance*/
@@ -998,13 +970,13 @@ function st(o) {
998
970
  ), B, C, _, U;
999
971
  return {
1000
972
  c() {
1001
- e = N("div"), t = N("p"), c = ue(r), u = oe(), f = ue(g), m = oe(), y = N("p"), x = N("span"), B = ue(F), C = oe(), _ = N("span"), U = ue(
973
+ e = N("div"), n = N("p"), l = ue(r), u = oe(), p = ue(m), g = oe(), y = N("p"), x = N("span"), B = ue(F), C = oe(), _ = N("span"), U = ue(
1002
974
  /*currency*/
1003
975
  o[3]
1004
- ), V(t, "class", "BalanceModalText"), V(x, "class", "BalanceModalAmount"), V(_, "class", "BalanceModalCurrency"), V(y, "class", "BalanceModalValue"), V(e, "class", "BalanceModalRowLine");
976
+ ), V(n, "class", "BalanceModalText"), V(x, "class", "BalanceModalAmount"), V(_, "class", "BalanceModalCurrency"), V(y, "class", "BalanceModalValue"), V(e, "class", "BalanceModalRowLine");
1005
977
  },
1006
978
  m(M, H) {
1007
- fe(M, e, H), R(e, t), R(t, c), R(t, u), R(t, f), R(e, m), R(e, y), R(y, x), R(x, B), R(y, C), R(y, _), R(_, U);
979
+ fe(M, e, H), R(e, n), R(n, l), R(n, u), R(n, p), R(e, g), R(e, y), R(y, x), R(x, B), R(y, C), R(y, _), R(_, U);
1008
980
  },
1009
981
  p(M, H) {
1010
982
  H[0] & /*$_, balances*/
@@ -1012,15 +984,15 @@ function st(o) {
1012
984
  M[5](
1013
985
  /*k*/
1014
986
  M[47]
1015
- ) + "") && de(c, r), H[0] & /*balances, $_*/
1016
- 48 && g !== (g = /*b*/
987
+ ) + "") && de(l, r), H[0] & /*balances, $_*/
988
+ 48 && m !== (m = /*b*/
1017
989
  (M[50].productType ? (
1018
990
  /*$_*/
1019
991
  M[5](
1020
992
  /*b*/
1021
993
  M[50].productType
1022
994
  )
1023
- ) : "") + "") && de(f, g), H[0] & /*balances*/
995
+ ) : "") + "") && de(p, m), H[0] & /*balances*/
1024
996
  16 && F !== (F = /*b*/
1025
997
  (M[50].amount ? (
1026
998
  /*formatBalance*/
@@ -1040,31 +1012,31 @@ function st(o) {
1040
1012
  }
1041
1013
  };
1042
1014
  }
1043
- function lt(o) {
1044
- let e, t, r = je(
1015
+ function at(o) {
1016
+ let e, n, r = je(
1045
1017
  /*balances*/
1046
1018
  o[4][
1047
1019
  /*k*/
1048
1020
  o[47]
1049
1021
  ]
1050
- ), c = [];
1022
+ ), l = [];
1051
1023
  for (let u = 0; u < r.length; u += 1)
1052
- c[u] = st(rt(o, r, u));
1024
+ l[u] = nt(et(o, r, u));
1053
1025
  return {
1054
1026
  c() {
1055
1027
  e = N("div");
1056
- for (let u = 0; u < c.length; u += 1)
1057
- c[u].c();
1058
- t = oe(), V(e, "class", "BalanceModalRowBoth");
1028
+ for (let u = 0; u < l.length; u += 1)
1029
+ l[u].c();
1030
+ n = oe(), V(e, "class", "BalanceModalRowBoth");
1059
1031
  },
1060
- m(u, g) {
1061
- fe(u, e, g);
1062
- for (let f = 0; f < c.length; f += 1)
1063
- c[f] && c[f].m(e, null);
1064
- R(e, t);
1032
+ m(u, m) {
1033
+ fe(u, e, m);
1034
+ for (let p = 0; p < l.length; p += 1)
1035
+ l[p] && l[p].m(e, null);
1036
+ R(e, n);
1065
1037
  },
1066
- p(u, g) {
1067
- if (g[0] & /*currency, balances, formatBalance, $_*/
1038
+ p(u, m) {
1039
+ if (m[0] & /*currency, balances, formatBalance, $_*/
1068
1040
  120) {
1069
1041
  r = je(
1070
1042
  /*balances*/
@@ -1073,150 +1045,149 @@ function lt(o) {
1073
1045
  u[47]
1074
1046
  ]
1075
1047
  );
1076
- let f;
1077
- for (f = 0; f < r.length; f += 1) {
1078
- const m = rt(u, r, f);
1079
- c[f] ? c[f].p(m, g) : (c[f] = st(m), c[f].c(), c[f].m(e, t));
1048
+ let p;
1049
+ for (p = 0; p < r.length; p += 1) {
1050
+ const g = et(u, r, p);
1051
+ l[p] ? l[p].p(g, m) : (l[p] = nt(g), l[p].c(), l[p].m(e, n));
1080
1052
  }
1081
- for (; f < c.length; f += 1)
1082
- c[f].d(1);
1083
- c.length = r.length;
1053
+ for (; p < l.length; p += 1)
1054
+ l[p].d(1);
1055
+ l.length = r.length;
1084
1056
  }
1085
1057
  },
1086
1058
  d(u) {
1087
- u && pe(e), ut(c, u);
1059
+ u && pe(e), rt(l, u);
1088
1060
  }
1089
1061
  };
1090
1062
  }
1091
- function ct(o) {
1092
- let e, t, r;
1063
+ function ot(o) {
1064
+ let e, n, r;
1093
1065
  return {
1094
1066
  c() {
1095
1067
  e = N("div"), V(e, "class", "ShowBalanceModalOverlay");
1096
1068
  },
1097
- m(c, u) {
1098
- fe(c, e, u), t || (r = Ve(
1069
+ m(l, u) {
1070
+ fe(l, e, u), n || (r = Ve(
1099
1071
  e,
1100
1072
  "click",
1101
1073
  /*click_handler_3*/
1102
1074
  o[25]
1103
- ), t = !0);
1075
+ ), n = !0);
1104
1076
  },
1105
1077
  p: qe,
1106
- d(c) {
1107
- c && pe(e), t = !1, r();
1078
+ d(l) {
1079
+ l && pe(e), n = !1, r();
1108
1080
  }
1109
1081
  };
1110
1082
  }
1111
- function Pt(o) {
1112
- let e, t, r;
1113
- function c(m, y) {
1083
+ function Ft(o) {
1084
+ let e, n, r;
1085
+ function l(g, y) {
1114
1086
  return (
1115
1087
  /*isLoading*/
1116
- m[1] ? Ut : zt
1088
+ g[1] ? Mt : Lt
1117
1089
  );
1118
1090
  }
1119
- let u = c(o), g = u(o), f = (
1091
+ let u = l(o), m = u(o), p = (
1120
1092
  /*showBalance*/
1121
- o[2] && ct(o)
1093
+ o[2] && ot(o)
1122
1094
  );
1123
1095
  return {
1124
1096
  c() {
1125
- e = N("div"), t = N("div"), g.c(), r = oe(), f && f.c(), V(t, "class", "ShowBalance"), V(t, "part", "ShowBalance");
1097
+ e = N("div"), n = N("div"), m.c(), r = oe(), p && p.c(), V(n, "class", "ShowBalance"), V(n, "part", "ShowBalance");
1126
1098
  },
1127
- m(m, y) {
1128
- fe(m, e, y), R(e, t), g.m(t, null), R(e, r), f && f.m(e, null), o[26](e);
1099
+ m(g, y) {
1100
+ fe(g, e, y), R(e, n), m.m(n, null), R(e, r), p && p.m(e, null), o[26](e);
1129
1101
  },
1130
- p(m, y) {
1131
- u === (u = c(m)) && g ? g.p(m, y) : (g.d(1), g = u(m), g && (g.c(), g.m(t, null))), /*showBalance*/
1132
- m[2] ? f ? f.p(m, y) : (f = ct(m), f.c(), f.m(e, null)) : f && (f.d(1), f = null);
1102
+ p(g, y) {
1103
+ u === (u = l(g)) && m ? m.p(g, y) : (m.d(1), m = u(g), m && (m.c(), m.m(n, null))), /*showBalance*/
1104
+ g[2] ? p ? p.p(g, y) : (p = ot(g), p.c(), p.m(e, null)) : p && (p.d(1), p = null);
1133
1105
  },
1134
1106
  i: qe,
1135
1107
  o: qe,
1136
- d(m) {
1137
- m && pe(e), g.d(), f && f.d(), o[26](null);
1108
+ d(g) {
1109
+ g && pe(e), m.d(), p && p.d(), o[26](null);
1138
1110
  }
1139
1111
  };
1140
1112
  }
1141
- function Gt(o, e, t) {
1113
+ function kt(o, e, n) {
1142
1114
  let r;
1143
- Rt(o, Mt, (d) => t(5, r = d));
1144
- let { userid: c = "" } = e, { session: u = "" } = e, { endpoint: g = "" } = e, { lang: f = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: x = "" } = e, { customlocaleidentifier: F = "" } = e, { gmversion: B = "gm16" } = e, { displaybalanceoption: C = "All" } = e, { totalcalculationmode: _ = "totalCashAmount" } = e, { currencyseparator: U = "" } = e, { currencydecimal: M = "" } = e, { currencyprecision: H = "" } = e, P, T, A, G = !1, D = "", W = [], he, me = !1;
1145
- const p = {}, ge = ["totalCashAmount", "totalRealAmount"], ye = () => {
1146
- fetch(x).then((d) => d.json()).then((d) => Object.keys(d).forEach((b) => nt(b, d[b]))).catch((d) => console.log(d));
1115
+ yt(o, Ct, (c) => n(5, r = c));
1116
+ let { userid: l = "" } = e, { session: u = "" } = e, { endpoint: m = "" } = e, { lang: p = "en" } = e, { clientstyling: g = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: x = "" } = e, { customlocaleidentifier: F = "" } = e, { gmversion: B = "gm16" } = e, { displaybalanceoption: C = "All" } = e, { totalcalculationmode: _ = "totalCashAmount" } = e, { currencyseparator: U = "" } = e, { currencydecimal: M = "" } = e, { currencyprecision: H = "" } = e, P, T, A, G = !1, D = "", W = [], he, me = !1;
1117
+ const f = {}, ge = ["totalCashAmount", "totalRealAmount"], ye = () => {
1118
+ fetch(x).then((c) => c.json()).then((c) => Object.keys(c).forEach((b) => Qe(b, c[b]))).catch((c) => console.log(c));
1147
1119
  };
1148
- Object.keys(at).forEach((d) => nt(d, at[d]));
1120
+ Object.keys(Ze).forEach((c) => Qe(c, Ze[c]));
1149
1121
  const Se = () => {
1150
- if (F.includes(f))
1122
+ if (F.includes(p))
1151
1123
  return F;
1152
- }, _e = (d) => F ? new Intl.NumberFormat(Se(), { useGrouping: !0 }).format(d) : U && M ? ae(d, {
1124
+ }, _e = (c) => F ? new Intl.NumberFormat(Se(), { useGrouping: !0 }).format(c) : U && M ? ae(c, {
1153
1125
  separator: U,
1154
1126
  decimal: M,
1155
1127
  symbol: "",
1156
1128
  precision: parseInt(H || "2", 10)
1157
- }).format() : ae(d, {
1129
+ }).format() : ae(c, {
1158
1130
  separator: ".",
1159
1131
  decimal: ",",
1160
1132
  symbol: "",
1161
1133
  precision: parseInt(H || "2", 10)
1162
- }).format(), Fe = () => tt(this, null, function* () {
1163
- var b, n, a;
1164
- t(1, P = !0);
1165
- const d = new URL(`${g}/v1/player/${c}/account`);
1134
+ }).format(), Fe = async () => {
1135
+ n(1, P = !0);
1136
+ const c = new URL(`${m}/v1/player/${l}/account`);
1166
1137
  try {
1167
- const l = yield fetch(d, {
1138
+ const b = await fetch(c, {
1168
1139
  method: "GET",
1169
1140
  headers: { "X-SessionID": u }
1170
- }), i = yield l.json();
1171
- if (l.ok)
1172
- W = i.items, t(3, D = (b = W.find((s) => s.displayName === "Casino")) == null ? void 0 : b.currency), t(4, p.Total = [{ amount: i.totalAmount[D] }], p), t(
1141
+ }), t = await b.json();
1142
+ if (b.ok)
1143
+ W = t.items, n(3, D = W.find((a) => a.displayName === "Casino")?.currency), n(4, f.Total = [{ amount: t.totalAmount[D] }], f), n(
1173
1144
  4,
1174
- p.Real = [
1145
+ f.Real = [
1175
1146
  {
1176
- amount: (n = W.find((s) => s.displayName === "Casino")) == null ? void 0 : n.balanceAmount
1147
+ amount: W.find((a) => a.displayName === "Casino")?.balanceAmount
1177
1148
  }
1178
1149
  ],
1179
- p
1180
- ), t(
1150
+ f
1151
+ ), n(
1181
1152
  4,
1182
- p.Bonus = [
1153
+ f.Bonus = [
1183
1154
  {
1184
- amount: (a = W.find((s) => s.displayName === "UBS")) == null ? void 0 : a.balanceAmount
1155
+ amount: W.find((a) => a.displayName === "UBS")?.balanceAmount
1185
1156
  }
1186
1157
  ],
1187
- p
1158
+ f
1188
1159
  );
1189
1160
  else
1190
1161
  throw new Error("Failed to fetch balance data !");
1191
- } catch (l) {
1192
- console.log("Balance error: ", l);
1162
+ } catch (b) {
1163
+ console.log("Balance error: ", b);
1193
1164
  } finally {
1194
- t(1, P = !1);
1165
+ n(1, P = !1);
1195
1166
  }
1196
- }), Ae = () => {
1197
- t(1, P = !0);
1198
- const d = new URL(`${g}/v2/player/${c}/balance`), b = new Headers();
1199
- b.append("X-SessionID", u), fetch(d, { method: "GET", headers: b }).then((a) => a.json()).then((a) => {
1200
- a[_] || t(8, _ = ge[0]);
1201
- const l = a.items.find((s) => s.type === "Real" && s.walletAccountType === "Ordinary");
1202
- if (t(3, D = l.currency), me = !!l.productType, t(4, p.Total = [{ amount: 0 }], p), t(4, p.Real = [], p), t(4, p.Bonus = [], p), t(4, p.Credit = [], p), !me) {
1167
+ }, Ae = () => {
1168
+ n(1, P = !0);
1169
+ const c = new URL(`${m}/v2/player/${l}/balance`), b = new Headers();
1170
+ b.append("X-SessionID", u), fetch(c, { method: "GET", headers: b }).then((a) => a.json()).then((a) => {
1171
+ a[_] || n(8, _ = ge[0]);
1172
+ const s = a.items.find((d) => d.type === "Real" && d.walletAccountType === "Ordinary");
1173
+ if (n(3, D = s.currency), me = !!s.productType, n(4, f.Total = [{ amount: 0 }], f), n(4, f.Real = [], f), n(4, f.Bonus = [], f), n(4, f.Credit = [], f), !me) {
1203
1174
  he = {
1204
1175
  lastOrdinaryAfterAmount: 0,
1205
1176
  showCreditLineAfterAmount: !1
1206
- }, t(4, p.Total[0].amount = a[_][D], p);
1207
- for (const s of a.items)
1208
- switch (s.type) {
1177
+ }, n(4, f.Total[0].amount = a[_][D], f);
1178
+ for (const d of a.items)
1179
+ switch (d.type) {
1209
1180
  case "Bonus":
1210
- p.Bonus.length === 0 ? p.Bonus.push({ amount: s.amount }) : t(4, p.Bonus[0].amount += s.amount, p);
1181
+ f.Bonus.length === 0 ? f.Bonus.push({ amount: d.amount }) : n(4, f.Bonus[0].amount += d.amount, f);
1211
1182
  break;
1212
1183
  case "Real":
1213
- if (s.creditLine && p.Credit.length === 0 && p.Credit.push({ amount: s.creditLine }), _ === "totalRealAmount") continue;
1214
- p.Real.length === 0 ? p.Real.push({ amount: s.amount }) : t(4, p.Real[0].amount += s.amount, p);
1184
+ if (d.creditLine && f.Credit.length === 0 && f.Credit.push({ amount: d.creditLine }), _ === "totalRealAmount") continue;
1185
+ f.Real.length === 0 ? f.Real.push({ amount: d.amount }) : n(4, f.Real[0].amount += d.amount, f);
1215
1186
  break;
1216
1187
  }
1217
- for (const [s, h] of Object.entries(p))
1218
- h.length < 1 && delete p[s];
1219
- t(1, P = !1);
1188
+ for (const [d, h] of Object.entries(f))
1189
+ h.length < 1 && delete f[d];
1190
+ n(1, P = !1);
1220
1191
  return;
1221
1192
  }
1222
1193
  he = {
@@ -1230,125 +1201,125 @@ function Gt(o, e, t) {
1230
1201
  }
1231
1202
  };
1232
1203
  let i = a.items;
1233
- C && C !== "All" && (i = a.items.filter((s) => s.productType === C));
1234
- for (const s of i) {
1204
+ C && C !== "All" && (i = a.items.filter((d) => d.productType === C));
1205
+ for (const d of i) {
1235
1206
  let h;
1236
- switch (s.type) {
1207
+ switch (d.type) {
1237
1208
  case "Bonus":
1238
- h = p.Bonus.findIndex((w) => w.productType === s.productType), h > 0 ? t(4, p.Bonus[h].amount += s.amount, p) : p.Bonus.push({
1239
- amount: s.amount,
1240
- productType: s.productType
1209
+ h = f.Bonus.findIndex((w) => w.productType === d.productType), h > 0 ? n(4, f.Bonus[h].amount += d.amount, f) : f.Bonus.push({
1210
+ amount: d.amount,
1211
+ productType: d.productType
1241
1212
  });
1242
1213
  break;
1243
1214
  case "Real":
1244
- s.creditLine && p.Credit.push({
1245
- amount: s.creditLine,
1246
- productType: s.productType
1247
- }), h = p.Real.findIndex((w) => w.productType === s.productType), h > 0 ? t(4, p.Real[h].amount += s.amount, p) : p.Real.push({
1248
- amount: s.amount,
1249
- productType: s.productType
1215
+ d.creditLine && f.Credit.push({
1216
+ amount: d.creditLine,
1217
+ productType: d.productType
1218
+ }), h = f.Real.findIndex((w) => w.productType === d.productType), h > 0 ? n(4, f.Real[h].amount += d.amount, f) : f.Real.push({
1219
+ amount: d.amount,
1220
+ productType: d.productType
1250
1221
  });
1251
1222
  break;
1252
1223
  }
1253
1224
  }
1254
1225
  te();
1255
- for (const [s, h] of Object.entries(p))
1256
- h.length < 1 && delete p[s];
1257
- t(1, P = !1);
1226
+ for (const [d, h] of Object.entries(f))
1227
+ h.length < 1 && delete f[d];
1228
+ n(1, P = !1);
1258
1229
  }).catch((a) => {
1259
- throw t(1, P = !1), new Error("Failed to fetch balance data !");
1230
+ throw n(1, P = !1), new Error("Failed to fetch balance data !");
1260
1231
  });
1261
1232
  }, ee = () => {
1262
1233
  if (A && A.close(), u.length < 1) return;
1263
- let d, b;
1234
+ let c, b;
1264
1235
  switch (B) {
1265
1236
  case "gm16":
1266
- d = new URL(`${g}/v2/player/${c}/information/updates`), b = (l) => Re(l);
1237
+ c = new URL(`${m}/v2/player/${l}/information/updates`), b = (s) => Re(s);
1267
1238
  break;
1268
1239
  case "gmcore":
1269
- d = new URL(`${g}/v1/player/${c}/balance/updates`), b = (l) => we(l);
1240
+ c = new URL(`${m}/v1/player/${l}/balance/updates`), b = (s) => we(s);
1270
1241
  break;
1271
1242
  }
1272
- const n = {
1243
+ const t = {
1273
1244
  accept: "text/event-stream",
1274
1245
  "X-SessionId": u
1275
- }, a = new kt.EventSourcePolyfill(d, { headers: n });
1246
+ }, a = new St.EventSourcePolyfill(c, { headers: t });
1276
1247
  A = a, a.addEventListener("message", b);
1277
- }, re = (d) => {
1248
+ }, re = (c) => {
1278
1249
  let b;
1279
1250
  try {
1280
- b = JSON.parse(d);
1281
- } catch (n) {
1282
- console.log("Balance stream failed: ", n);
1251
+ b = JSON.parse(c);
1252
+ } catch (t) {
1253
+ console.log("Balance stream failed: ", t);
1283
1254
  return;
1284
1255
  }
1285
1256
  return b;
1286
- }, we = (d) => {
1287
- var l, i;
1288
- const b = re(d.data);
1257
+ }, we = (c) => {
1258
+ const b = re(c.data);
1289
1259
  if (!b) {
1290
1260
  ee();
1291
1261
  return;
1292
1262
  }
1293
- let n = "0";
1263
+ let t = "0";
1294
1264
  const a = b.balanceChange;
1295
- W = W.map((s) => (a && a[s.id] && (s = et($e({}, s), {
1265
+ W = W.map((s) => (a && a[s.id] && (s = {
1266
+ ...s,
1296
1267
  balanceAmount: a[s.id].afterAmount
1297
- })), n = (parseFloat(s == null ? void 0 : s.balanceAmount) + parseFloat(n)).toString(), s)), t(4, p.Real = [{ amount: (l = W[0]) == null ? void 0 : l.balanceAmount }], p), t(4, p.Bonus = [{ amount: (i = W[1]) == null ? void 0 : i.balanceAmount }], p), t(4, p.Total = [{ amount: Number(n) }], p);
1298
- }, be = (d, b, n) => {
1268
+ }), t = (parseFloat(s?.balanceAmount) + parseFloat(t)).toString(), s)), n(4, f.Real = [{ amount: W[0]?.balanceAmount }], f), n(4, f.Bonus = [{ amount: W[1]?.balanceAmount }], f), n(4, f.Total = [{ amount: Number(t) }], f);
1269
+ }, be = (c, b, t) => {
1299
1270
  let a = null;
1300
- switch (n.walletAccountType) {
1271
+ switch (t.walletAccountType) {
1301
1272
  case "Ordinary":
1302
- n.afterAmount !== n.affectedAmount && (b.lastOrdinaryAfterAmount = n.afterAmount, b.showCreditLineAfterAmount || (a = n.afterAmount));
1273
+ t.afterAmount !== t.affectedAmount && (b.lastOrdinaryAfterAmount = t.afterAmount, b.showCreditLineAfterAmount || (a = t.afterAmount));
1303
1274
  break;
1304
1275
  case "CreditLine":
1305
- n.afterAmount !== 0 ? (a = n.afterAmount, b.showCreditLineAfterAmount = !0) : (a = b.lastOrdinaryAfterAmount, b.showCreditLineAfterAmount = !1);
1276
+ t.afterAmount !== 0 ? (a = t.afterAmount, b.showCreditLineAfterAmount = !0) : (a = b.lastOrdinaryAfterAmount, b.showCreditLineAfterAmount = !1);
1306
1277
  break;
1307
1278
  default:
1308
- a = n.afterAmount;
1279
+ a = t.afterAmount;
1309
1280
  }
1310
- return a === null ? d : a;
1281
+ return a === null ? c : a;
1311
1282
  }, te = () => {
1312
1283
  switch (_) {
1313
1284
  case "totalCashAmount":
1314
- let d = 0;
1315
- for (const n of ["Real", "Bonus"])
1316
- for (const a of p[n])
1317
- d += Math.max(a.amount, 0);
1318
- t(4, p.Total[0].amount = d, p);
1285
+ let c = 0;
1286
+ for (const t of ["Real", "Bonus"])
1287
+ for (const a of f[t])
1288
+ c += Math.max(a.amount, 0);
1289
+ n(4, f.Total[0].amount = c, f);
1319
1290
  break;
1320
1291
  case "totalRealAmount":
1321
1292
  if (!me) return;
1322
1293
  let b = 0;
1323
- for (const n of p.Real)
1324
- b += n.amount;
1325
- t(4, p.Total[0].amount = b, p);
1294
+ for (const t of f.Real)
1295
+ b += t.amount;
1296
+ n(4, f.Total[0].amount = b, f);
1326
1297
  }
1327
- }, Re = (d) => {
1328
- const b = re(d.data);
1298
+ }, Re = (c) => {
1299
+ const b = re(c.data);
1329
1300
  if (!b) {
1330
1301
  ee();
1331
1302
  return;
1332
1303
  }
1333
1304
  if (b.type !== "BALANCE_UPDATE_V2")
1334
1305
  return;
1335
- const n = b.body.balanceChange;
1336
- for (const [a, l] of Object.entries(n))
1337
- if (_ === "totalRealAmount" && a === "Real" && !me && t(4, p.Total[0].amount = be(p.Total[0].amount, he, l), p), !!p[a])
1338
- for (const i of p[a]) {
1306
+ const t = b.body.balanceChange;
1307
+ for (const [a, s] of Object.entries(t))
1308
+ if (_ === "totalRealAmount" && a === "Real" && !me && n(4, f.Total[0].amount = be(f.Total[0].amount, he, s), f), !!f[a])
1309
+ for (const i of f[a]) {
1339
1310
  if (!me) {
1340
- i.amount = a === "Real" ? be(i.amount, he, l) : l.afterAmount;
1311
+ i.amount = a === "Real" ? be(i.amount, he, s) : s.afterAmount;
1341
1312
  continue;
1342
1313
  }
1343
- l.productType === i.productType && (i.amount = a === "Real" ? be(i.amount, he[i.productType], l) : l.afterAmount);
1314
+ s.productType === i.productType && (i.amount = a === "Real" ? be(i.amount, he[i.productType], s) : s.afterAmount);
1344
1315
  }
1345
1316
  te();
1346
1317
  }, Ee = () => {
1347
- t(2, G = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
1318
+ n(2, G = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
1348
1319
  }, He = () => {
1349
- ge.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ge}. Using default value ('${ge[0]}').`), t(8, _ = ge[0]));
1320
+ ge.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ge}. Using default value ('${ge[0]}').`), n(8, _ = ge[0]));
1350
1321
  }, ze = () => {
1351
- switch (Ft(f), He(), B) {
1322
+ switch (Tt(p), He(), B) {
1352
1323
  case "gmcore":
1353
1324
  Fe();
1354
1325
  break;
@@ -1358,13 +1329,13 @@ function Gt(o, e, t) {
1358
1329
  default:
1359
1330
  throw Error(`Invalid apiversion attribute: ${B}`);
1360
1331
  }
1361
- }, ke = (d) => d.data && d.data.type === "LogoutSuccessfull" && A.close(), Ue = () => {
1362
- const d = document.createElement("style");
1363
- d.innerHTML = m, T.appendChild(d);
1332
+ }, ke = (c) => c.data && c.data.type === "LogoutSuccessfull" && A.close(), Ue = () => {
1333
+ const c = document.createElement("style");
1334
+ c.innerHTML = g, T.appendChild(c);
1364
1335
  }, xe = () => {
1365
- const d = new URL(y), b = document.createElement("style");
1366
- fetch(d.href).then((n) => n.text()).then((n) => {
1367
- b.innerHTML = n, setTimeout(
1336
+ const c = new URL(y), b = document.createElement("style");
1337
+ fetch(c.href).then((t) => t.text()).then((t) => {
1338
+ b.innerHTML = t, setTimeout(
1368
1339
  () => {
1369
1340
  T.appendChild(b);
1370
1341
  },
@@ -1372,23 +1343,23 @@ function Gt(o, e, t) {
1372
1343
  );
1373
1344
  });
1374
1345
  };
1375
- Et(() => (window.addEventListener("message", ke, !1), () => {
1346
+ vt(() => (window.addEventListener("message", ke, !1), () => {
1376
1347
  window.removeEventListener("message", ke), A && A.close();
1377
1348
  }));
1378
- const De = () => t(2, G = !0), ve = () => t(2, G = !1), J = () => Ee(), Pe = () => t(2, G = !1);
1379
- function Ge(d) {
1380
- xt[d ? "unshift" : "push"](() => {
1381
- T = d, t(0, T);
1349
+ const De = () => n(2, G = !0), ve = () => n(2, G = !1), J = () => Ee(), Pe = () => n(2, G = !1);
1350
+ function Ge(c) {
1351
+ wt[c ? "unshift" : "push"](() => {
1352
+ T = c, n(0, T);
1382
1353
  });
1383
1354
  }
1384
- return o.$$set = (d) => {
1385
- "userid" in d && t(9, c = d.userid), "session" in d && t(10, u = d.session), "endpoint" in d && t(11, g = d.endpoint), "lang" in d && t(12, f = d.lang), "clientstyling" in d && t(13, m = d.clientstyling), "clientstylingurl" in d && t(14, y = d.clientstylingurl), "translationurl" in d && t(15, x = d.translationurl), "customlocaleidentifier" in d && t(16, F = d.customlocaleidentifier), "gmversion" in d && t(17, B = d.gmversion), "displaybalanceoption" in d && t(18, C = d.displaybalanceoption), "totalcalculationmode" in d && t(8, _ = d.totalcalculationmode), "currencyseparator" in d && t(19, U = d.currencyseparator), "currencydecimal" in d && t(20, M = d.currencydecimal), "currencyprecision" in d && t(21, H = d.currencyprecision);
1355
+ return o.$$set = (c) => {
1356
+ "userid" in c && n(9, l = c.userid), "session" in c && n(10, u = c.session), "endpoint" in c && n(11, m = c.endpoint), "lang" in c && n(12, p = c.lang), "clientstyling" in c && n(13, g = c.clientstyling), "clientstylingurl" in c && n(14, y = c.clientstylingurl), "translationurl" in c && n(15, x = c.translationurl), "customlocaleidentifier" in c && n(16, F = c.customlocaleidentifier), "gmversion" in c && n(17, B = c.gmversion), "displaybalanceoption" in c && n(18, C = c.displaybalanceoption), "totalcalculationmode" in c && n(8, _ = c.totalcalculationmode), "currencyseparator" in c && n(19, U = c.currencyseparator), "currencydecimal" in c && n(20, M = c.currencydecimal), "currencyprecision" in c && n(21, H = c.currencyprecision);
1386
1357
  }, o.$$.update = () => {
1387
1358
  o.$$.dirty[0] & /*lang*/
1388
- 4096 && f && Se(), o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1389
- 400896 && g && c && u && f && B && C && ze(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1390
- 134656 && g && c && u && B && ee(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1391
- 8193 && m && T && Ue(), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1359
+ 4096 && p && Se(), o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1360
+ 400896 && m && l && u && p && B && C && ze(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1361
+ 134656 && m && l && u && B && ee(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1362
+ 8193 && g && T && Ue(), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1392
1363
  16385 && y && T && xe(), o.$$.dirty[0] & /*translationurl*/
1393
1364
  32768 && x && ye();
1394
1365
  }, [
@@ -1396,16 +1367,16 @@ function Gt(o, e, t) {
1396
1367
  P,
1397
1368
  G,
1398
1369
  D,
1399
- p,
1370
+ f,
1400
1371
  r,
1401
1372
  _e,
1402
1373
  Ee,
1403
1374
  _,
1404
- c,
1375
+ l,
1405
1376
  u,
1406
- g,
1407
- f,
1408
1377
  m,
1378
+ p,
1379
+ g,
1409
1380
  y,
1410
1381
  x,
1411
1382
  F,
@@ -1421,14 +1392,14 @@ function Gt(o, e, t) {
1421
1392
  Ge
1422
1393
  ];
1423
1394
  }
1424
- class Xt extends Ct {
1395
+ class Ot extends ft {
1425
1396
  constructor(e) {
1426
- super(), Tt(
1397
+ super(), pt(
1427
1398
  this,
1428
1399
  e,
1429
- Gt,
1430
- Pt,
1431
- _t,
1400
+ kt,
1401
+ Ft,
1402
+ mt,
1432
1403
  {
1433
1404
  userid: 9,
1434
1405
  session: 10,
@@ -1445,7 +1416,7 @@ class Xt extends Ct {
1445
1416
  currencydecimal: 20,
1446
1417
  currencyprecision: 21
1447
1418
  },
1448
- Ht,
1419
+ Dt,
1449
1420
  [-1, -1]
1450
1421
  );
1451
1422
  }
@@ -1534,7 +1505,7 @@ class Xt extends Ct {
1534
1505
  this.$$set({ currencyprecision: e }), Y();
1535
1506
  }
1536
1507
  }
1537
- St(Xt, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
1508
+ ht(Ot, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
1538
1509
  export {
1539
- Xt as default
1510
+ Ot as default
1540
1511
  };