@everymatrix/casino-header-controller-nd 1.65.0 → 1.65.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.
Files changed (54) hide show
  1. package/components/CasinoHamburgerMenuNd-BMOc3TVZ.cjs +18 -0
  2. package/components/{CasinoHamburgerMenuNd-DZBpP_sl.js → CasinoHamburgerMenuNd-CRHTyzLa.js} +1089 -1068
  3. package/components/{CasinoHamburgerMenuNd-p3CEfpwg.js → CasinoHamburgerMenuNd-kNSb5kzp.js} +1109 -1088
  4. package/components/{CasinoHeaderControllerNd-R4IVulaQ.js → CasinoHeaderControllerNd-CCoWbJww.js} +87 -87
  5. package/components/{CasinoHeaderControllerNd-CKCJs_zB.js → CasinoHeaderControllerNd-D8Az5Lsw.js} +89 -89
  6. package/components/{CasinoHeaderControllerNd-CyQi7O0P.cjs → CasinoHeaderControllerNd-DLbDVPlL.cjs} +1 -1
  7. package/components/PlayerAccountBalanceModalNd-CKkqacyC.cjs +13 -0
  8. package/components/PlayerAccountBalanceModalNd-C_-z_ILo.js +1585 -0
  9. package/components/PlayerAccountBalanceModalNd-D5LR7cHC.js +1556 -0
  10. package/components/{PlayerDeposit-BxMbkqQJ.js → PlayerDeposit-8bunmKNP.js} +77 -77
  11. package/components/{PlayerDeposit-DWSy4Qrb.js → PlayerDeposit-CGZwpLsA.js} +77 -77
  12. package/components/PlayerDeposit-OEh7dNO5.cjs +1 -0
  13. package/es2015/casino-header-controller-nd.cjs +1 -1
  14. package/es2015/casino-header-controller-nd.js +1 -1
  15. package/esnext/casino-header-controller-nd.js +1 -1
  16. package/package.json +1 -1
  17. package/stencil/{gamification-dropdown-8eb8a896-CxTBD8Oq.js → gamification-dropdown-8eb8a896-Bcdjx9jM.js} +1 -1
  18. package/stencil/{gamification-dropdown-8eb8a896-BXV0d81L.cjs → gamification-dropdown-8eb8a896-CJqychmF.cjs} +1 -1
  19. package/stencil/{gamification-dropdown-8eb8a896-DsjvIRRh.js → gamification-dropdown-8eb8a896-zfRPKKB2.js} +1 -1
  20. package/stencil/{gamification-dropdown-BHrP0I2_.js → gamification-dropdown-CEfiiJz5.js} +1 -1
  21. package/stencil/{gamification-dropdown-B4Jz9HJK.js → gamification-dropdown-OTcvzYaZ.js} +1 -1
  22. package/stencil/{gamification-dropdown-C969ZHeI.cjs → gamification-dropdown-rFRkTMDc.cjs} +1 -1
  23. package/stencil/{gamification-dropdown_4-zImC9hF9.js → gamification-dropdown_4-BUCLkjbf.js} +58 -55
  24. package/stencil/{gamification-dropdown_4-Be_N4EeF.js → gamification-dropdown_4-SROB8ZNq.js} +60 -57
  25. package/stencil/gamification-dropdown_4-_zijAT3T.cjs +192 -0
  26. package/stencil/index-71b1bdfa-CSjh2jcj.cjs +1 -0
  27. package/stencil/{index-71b1bdfa-Dm7yvsrK.js → index-71b1bdfa-DL3YG9Ud.js} +264 -268
  28. package/stencil/index-71b1bdfa-DdHPuS3A.js +753 -0
  29. package/stencil/locale-B_6Rn5-v.cjs +1 -0
  30. package/stencil/{locale-DuSXBQwH.js → locale-TxlOHoKi.js} +11 -5
  31. package/stencil/{player-elevate-card-DL6XwNnq.js → player-elevate-card-CRl63tuY.js} +3 -3
  32. package/stencil/{player-elevate-card-Cmxvkrge.js → player-elevate-card-DX8jjll6.js} +3 -3
  33. package/stencil/{player-elevate-card-C6V7VROS.cjs → player-elevate-card-DtTKg95m.cjs} +1 -1
  34. package/stencil/player-elevate-card-items-5071deed-A_RG9TpE.cjs +102 -0
  35. package/stencil/player-elevate-card-items-5071deed-Ce0Sstbi.js +1391 -0
  36. package/stencil/player-elevate-card-items-5071deed-DG6rUxm1.js +1391 -0
  37. package/stencil/{player-elevate-pointcard-dDiPwAiV.js → player-elevate-pointcard-Bcq1MXZc.js} +3 -3
  38. package/stencil/{player-elevate-pointcard-CbCIvh8I.cjs → player-elevate-pointcard-CEXHhV9c.cjs} +1 -1
  39. package/stencil/{player-elevate-pointcard-DYOUbwi3.js → player-elevate-pointcard-hzoziusU.js} +3 -3
  40. package/stencil/{player-rakeback-card-BMHeEc3P.cjs → player-rakeback-card-BwjstuRr.cjs} +1 -1
  41. package/stencil/{player-rakeback-card-CxD8OOP-.js → player-rakeback-card-DYjFUdkd.js} +2 -2
  42. package/stencil/{player-rakeback-card-CixEJCwY.js → player-rakeback-card-Dtat6ZLL.js} +2 -2
  43. package/components/CasinoHamburgerMenuNd-BJbFpPq5.cjs +0 -18
  44. package/components/PlayerAccountBalanceModalNd-BrmAXe3O.cjs +0 -13
  45. package/components/PlayerAccountBalanceModalNd-C0yx4CZJ.js +0 -1556
  46. package/components/PlayerAccountBalanceModalNd-CrmOj-4r.js +0 -1585
  47. package/components/PlayerDeposit-C1vay-Ex.cjs +0 -1
  48. package/stencil/gamification-dropdown_4-DuMaGjcI.cjs +0 -192
  49. package/stencil/index-71b1bdfa-DzyepuUf.js +0 -757
  50. package/stencil/index-71b1bdfa-urw3SgKF.cjs +0 -1
  51. package/stencil/locale-DHn5ZpQu.cjs +0 -1
  52. package/stencil/player-elevate-card-items-66be34fb-BUkxBwF8.js +0 -1292
  53. package/stencil/player-elevate-card-items-66be34fb-BjQeJ-p9.js +0 -1292
  54. package/stencil/player-elevate-card-items-66be34fb-DeUY02M2.cjs +0 -1
@@ -0,0 +1,1585 @@
1
+ var gt = Object.defineProperty, mt = Object.defineProperties;
2
+ var yt = Object.getOwnPropertyDescriptors;
3
+ var Qe = Object.getOwnPropertySymbols;
4
+ var vt = Object.prototype.hasOwnProperty, wt = Object.prototype.propertyIsEnumerable;
5
+ var Ze = (o, t, n) => t in o ? gt(o, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : o[t] = n, $e = (o, t) => {
6
+ for (var n in t || (t = {}))
7
+ vt.call(t, n) && Ze(o, n, t[n]);
8
+ if (Qe)
9
+ for (var n of Qe(t))
10
+ wt.call(t, n) && Ze(o, n, t[n]);
11
+ return o;
12
+ }, et = (o, t) => mt(o, yt(t));
13
+ var tt = (o, t, n) => new Promise((i, u) => {
14
+ var c = (m) => {
15
+ try {
16
+ p(n.next(m));
17
+ } catch (y) {
18
+ u(y);
19
+ }
20
+ }, g = (m) => {
21
+ try {
22
+ p(n.throw(m));
23
+ } catch (y) {
24
+ u(y);
25
+ }
26
+ }, p = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(c, g);
27
+ p((n = n.apply(o, t)).next());
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 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
+ function at(o, t) {
31
+ bt(o, t);
32
+ }
33
+ function Nt(o) {
34
+ Bt.set(o);
35
+ }
36
+ const ot = {
37
+ en: {
38
+ Title: "Your Balance",
39
+ Total: "Total Balance",
40
+ Real: "Cash Balance",
41
+ Bonus: "Bonus Balance",
42
+ Credit: "Credit Balance",
43
+ Casino: "Casino",
44
+ Sports: "Sports",
45
+ DepositButton: "Deposit",
46
+ Loading: "Loading ..."
47
+ },
48
+ "zh-hk": {
49
+ Title: "您的結餘",
50
+ Total: "總結餘",
51
+ Real: "現金結餘",
52
+ Bonus: "紅利結餘",
53
+ Credit: "信用結餘",
54
+ Casino: "賭場",
55
+ Sports: "體育",
56
+ DepositButton: "存款",
57
+ Loading: "載入中 ..."
58
+ },
59
+ de: {
60
+ Title: "Ihr Guthaben",
61
+ Total: "Gesamtguthaben",
62
+ Real: "Barguthaben",
63
+ Bonus: "Bonusguthaben",
64
+ Credit: "Kreditguthaben",
65
+ Casino: "Casino",
66
+ Sports: "Sport",
67
+ DepositButton: "Einzahlen",
68
+ Loading: "Wird geladen ..."
69
+ },
70
+ it: {
71
+ Title: "Il tuo saldo",
72
+ Total: "Saldo totale",
73
+ Real: "Saldo in contanti",
74
+ Bonus: "Saldo bonus",
75
+ Credit: "Saldo di credito",
76
+ Casino: "Casinò",
77
+ Sports: "Sport",
78
+ DepositButton: "Deposita",
79
+ Loading: "Caricamento ..."
80
+ },
81
+ fr: {
82
+ Title: "Votre solde",
83
+ Total: "Solde total",
84
+ Real: "Solde en espèces",
85
+ Bonus: "Solde bonus",
86
+ Credit: "Solde de crédit",
87
+ Casino: "Casino",
88
+ Sports: "Sports",
89
+ DepositButton: "Dépôt",
90
+ Loading: "Chargement ..."
91
+ },
92
+ es: {
93
+ Title: "Tu saldo",
94
+ Total: "Saldo total",
95
+ Real: "Saldo en efectivo",
96
+ Bonus: "Saldo de bono",
97
+ Credit: "Saldo de crédito",
98
+ Casino: "Casino",
99
+ Sports: "Deportes",
100
+ DepositButton: "Depósito",
101
+ Loading: "Cargando ..."
102
+ },
103
+ tr: {
104
+ Title: "Bakiyeniz",
105
+ Total: "Toplam Bakiye",
106
+ Real: "Nakit Bakiye",
107
+ Bonus: "Bonus Bakiyesi",
108
+ Credit: "Kredi Bakiyesi",
109
+ Casino: "Kumarhane",
110
+ Sports: "Spor",
111
+ DepositButton: "Yatır",
112
+ Loading: "Yükleniyor ..."
113
+ },
114
+ ru: {
115
+ Title: "Ваш баланс",
116
+ Total: "Общий баланс",
117
+ Real: "Денежный баланс",
118
+ Bonus: "Бонусный баланс",
119
+ Credit: "Кредитный баланс",
120
+ Casino: "Казино",
121
+ Sports: "Спорт",
122
+ DepositButton: "Депозит",
123
+ Loading: "Загружается ..."
124
+ },
125
+ ro: {
126
+ Title: "Soldul tău",
127
+ Total: "Sold total",
128
+ Real: "Sold în numerar",
129
+ Bonus: "Sold bonus",
130
+ Credit: "Sold credit",
131
+ Casino: "Cazinou",
132
+ Sports: "Sporturi",
133
+ DepositButton: "Depozit",
134
+ Loading: "Se încarcă ..."
135
+ },
136
+ hr: {
137
+ Title: "Vaš saldo",
138
+ Total: "Ukupni saldo",
139
+ Real: "Gotovinski saldo",
140
+ Bonus: "Bonus saldo",
141
+ Credit: "Kreditni saldo",
142
+ Casino: "Casino",
143
+ Sports: "Sportovi",
144
+ DepositButton: "Depozit",
145
+ Loading: "Učitavanje ..."
146
+ },
147
+ hu: {
148
+ Title: "Az egyenleged",
149
+ Total: "Teljes egyenleg",
150
+ Real: "Készpénz egyenleg",
151
+ Bonus: "Bónusz egyenleg",
152
+ Credit: "Hitel egyenleg",
153
+ Casino: "Kaszinó",
154
+ Sports: "Sport",
155
+ DepositButton: "Befizetés",
156
+ Loading: "Betöltés ..."
157
+ },
158
+ pl: {
159
+ Title: "Twoje saldo",
160
+ Total: "Całkowite saldo",
161
+ Real: "Saldo gotówkowe",
162
+ Bonus: "Saldo bonusowe",
163
+ Credit: "Saldo kredytowe",
164
+ Casino: "Kasyno",
165
+ Sports: "Sport",
166
+ DepositButton: "Wpłać",
167
+ Loading: "Ładowanie ..."
168
+ },
169
+ pt: {
170
+ Title: "Seu Saldo",
171
+ Total: "Saldo Total",
172
+ Real: "Saldo em Dinheiro",
173
+ Bonus: "Saldo de Bônus",
174
+ Credit: "Saldo de Crédito",
175
+ Casino: "Cassino",
176
+ Sports: "Esportes",
177
+ DepositButton: "Depositar",
178
+ Loading: "Carregando ..."
179
+ },
180
+ sl: {
181
+ Title: "Vaš saldo",
182
+ Total: "Skupni saldo",
183
+ Real: "Gotovinski saldo",
184
+ Bonus: "Bonus saldo",
185
+ Credit: "Kreditni saldo",
186
+ Casino: "Kasino",
187
+ Sports: "Šport",
188
+ DepositButton: "Depozit",
189
+ Loading: "Nalaganje ..."
190
+ },
191
+ sr: {
192
+ Title: "Vaš saldo",
193
+ Total: "Ukupan saldo",
194
+ Real: "Gotovinski saldo",
195
+ Bonus: "Bonus saldo",
196
+ Credit: "Kreditni saldo",
197
+ Casino: "Kasino",
198
+ Sports: "Sport",
199
+ DepositButton: "Depozit",
200
+ Loading: "Učitavanje ..."
201
+ },
202
+ "pt-br": {
203
+ Title: "Seu Saldo",
204
+ Total: "Saldo Total",
205
+ Real: "Saldo em Dinheiro",
206
+ Bonus: "Saldo de Bônus",
207
+ Credit: "Saldo de Crédito",
208
+ Casino: "Cassino",
209
+ Sports: "Esportes",
210
+ DepositButton: "Depositar",
211
+ Loading: "Carregando ..."
212
+ },
213
+ "es-mx": {
214
+ Title: "Tu saldo",
215
+ Total: "Saldo total",
216
+ Real: "Saldo en efectivo",
217
+ Bonus: "Saldo de bono",
218
+ Credit: "Saldo de crédito",
219
+ Casino: "Casino",
220
+ Sports: "Deportes",
221
+ DepositButton: "Depósito",
222
+ Loading: "Cargando ..."
223
+ },
224
+ "en-us": {
225
+ Title: "Your Balance",
226
+ Total: "Total Balance",
227
+ Real: "Cash Balance",
228
+ Bonus: "Bonus Balance",
229
+ Credit: "Credit Balance",
230
+ Casino: "Casino",
231
+ Sports: "Sports",
232
+ DepositButton: "Deposit",
233
+ Loading: "Loading ..."
234
+ }
235
+ };
236
+ var We = { exports: {} };
237
+ /** @license
238
+ * eventsource.js
239
+ * Available under MIT License (MIT)
240
+ * https://github.com/Yaffle/EventSource/
241
+ */
242
+ (function(o, t) {
243
+ (function(n) {
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
+ if (typeof window != "undefined" && typeof y != "undefined" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(e) {
246
+ y.readyState = "complete";
247
+ }, !1)), c == null && p != null && (c = function() {
248
+ return new p("Microsoft.XMLHTTP");
249
+ }), Object.create == null && (Object.create = function(e) {
250
+ function r() {
251
+ }
252
+ return r.prototype = e, new r();
253
+ }), Date.now || (Date.now = function() {
254
+ return (/* @__PURE__ */ new Date()).getTime();
255
+ }), E == null) {
256
+ var w = k;
257
+ k = function(e, r) {
258
+ var s = r.signal;
259
+ return w(e, { headers: r.headers, credentials: r.credentials, cache: r.cache }).then(function(a) {
260
+ var h = a.body.getReader();
261
+ return s._reader = h, s._aborted && s._reader.cancel(), {
262
+ status: a.status,
263
+ statusText: a.statusText,
264
+ headers: a.headers,
265
+ body: {
266
+ getReader: function() {
267
+ return h;
268
+ }
269
+ }
270
+ };
271
+ });
272
+ }, E = function() {
273
+ this.signal = {
274
+ _reader: null,
275
+ _aborted: !1
276
+ }, this.abort = function() {
277
+ this.signal._reader != null && this.signal._reader.cancel(), this.signal._aborted = !0;
278
+ };
279
+ };
280
+ }
281
+ function T() {
282
+ this.bitsNeeded = 0, this.codePoint = 0;
283
+ }
284
+ T.prototype.decode = function(e) {
285
+ function r(R, D, v) {
286
+ if (v === 1)
287
+ return R >= 128 >> D && R << D <= 2047;
288
+ if (v === 2)
289
+ return R >= 2048 >> D && R << D <= 55295 || R >= 57344 >> D && R << D <= 65535;
290
+ if (v === 3)
291
+ return R >= 65536 >> D && R << D <= 1114111;
292
+ throw new Error();
293
+ }
294
+ function s(R, D) {
295
+ if (R === 6 * 1)
296
+ return D >> 6 > 15 ? 3 : D > 31 ? 2 : 1;
297
+ if (R === 6 * 2)
298
+ return D > 15 ? 3 : 2;
299
+ if (R === 6 * 3)
300
+ return 3;
301
+ throw new Error();
302
+ }
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
+ 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
+ }
307
+ return this.bitsNeeded = f, this.codePoint = l, h;
308
+ };
309
+ var H = function() {
310
+ try {
311
+ return new I().decode(new N().encode("test"), { stream: !0 }) === "test";
312
+ } catch (e) {
313
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + e);
314
+ }
315
+ return !1;
316
+ };
317
+ (I == null || N == null || !H()) && (I = T);
318
+ var x = function() {
319
+ };
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
+ }
323
+ z.prototype.open = function(e, r) {
324
+ this._abort(!0);
325
+ var s = this, a = this._xhr, h = 1, f = 0;
326
+ this._abort = function(v) {
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
+ };
329
+ var l = function() {
330
+ if (h === 1) {
331
+ var v = 0, V = "", se = void 0;
332
+ if ("contentType" in a)
333
+ v = 200, V = "OK", se = a.contentType;
334
+ else
335
+ try {
336
+ v = a.status, V = a.statusText, se = a.getResponseHeader("Content-Type");
337
+ } catch (Me) {
338
+ v = 0, V = "", se = void 0;
339
+ }
340
+ v !== 0 && (h = 2, s.readyState = 2, s.status = v, s.statusText = V, s._contentType = se, s.onreadystatechange());
341
+ }
342
+ }, S = function() {
343
+ if (l(), h === 2 || h === 3) {
344
+ h = 3;
345
+ var v = "";
346
+ try {
347
+ v = a.responseText;
348
+ } catch (V) {
349
+ }
350
+ s.readyState = 3, s.responseText = v, s.onprogress();
351
+ }
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
+ else if (v === "error")
359
+ s.onerror(V);
360
+ else if (v === "abort")
361
+ s.onabort(V);
362
+ else
363
+ throw new TypeError();
364
+ s.onreadystatechange();
365
+ }
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 || S() : a.readyState === 2 && l());
368
+ }, D = function() {
369
+ f = i(function() {
370
+ D();
371
+ }, 500), a.readyState === 3 && S();
372
+ };
373
+ "onload" in a && (a.onload = function(v) {
374
+ b("load", v);
375
+ }), "onerror" in a && (a.onerror = function(v) {
376
+ b("error", v);
377
+ }), "onabort" in a && (a.onabort = function(v) {
378
+ b("abort", v);
379
+ }), "onprogress" in a && (a.onprogress = S), "onreadystatechange" in a && (a.onreadystatechange = function(v) {
380
+ R(v);
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
+ D();
383
+ }, 0));
384
+ }, z.prototype.abort = function() {
385
+ this._abort(!1);
386
+ }, z.prototype.getResponseHeader = function(e) {
387
+ return this._contentType;
388
+ }, z.prototype.setRequestHeader = function(e, r) {
389
+ var s = this._xhr;
390
+ "setRequestHeader" in s && s.setRequestHeader(e, r);
391
+ }, z.prototype.getAllResponseHeaders = function() {
392
+ return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
393
+ }, z.prototype.send = function() {
394
+ if ((!("ontimeout" in c.prototype) || !("sendAsBinary" in c.prototype) && !("mozAnon" in c.prototype)) && y != null && y.readyState != null && y.readyState !== "complete") {
395
+ var e = this;
396
+ e._sendTimeout = i(function() {
397
+ e._sendTimeout = 0, e.send();
398
+ }, 4);
399
+ return;
400
+ }
401
+ var r = this._xhr;
402
+ "withCredentials" in r && (r.withCredentials = this.withCredentials);
403
+ try {
404
+ r.send(void 0);
405
+ } catch (s) {
406
+ throw s;
407
+ }
408
+ };
409
+ function re(e) {
410
+ return e.replace(/[A-Z]/g, function(r) {
411
+ return String.fromCharCode(r.charCodeAt(0) + 32);
412
+ });
413
+ }
414
+ function ee(e) {
415
+ for (var r = /* @__PURE__ */ Object.create(null), s = e.split(`\r
416
+ `), a = 0; a < s.length; a += 1) {
417
+ var h = s[a], f = h.split(": "), l = f.shift(), S = f.join(": ");
418
+ r[re(l)] = S;
419
+ }
420
+ this._map = r;
421
+ }
422
+ ee.prototype.get = function(e) {
423
+ return this._map[re(e)];
424
+ }, c != null && c.HEADERS_RECEIVED == null && (c.HEADERS_RECEIVED = 2);
425
+ function Y() {
426
+ }
427
+ Y.prototype.open = function(e, r, s, a, h, f, l) {
428
+ e.open("GET", h);
429
+ var S = 0;
430
+ e.onprogress = function() {
431
+ var R = e.responseText, D = R.slice(S);
432
+ S += D.length, s(D);
433
+ }, e.onerror = function(R) {
434
+ R.preventDefault(), a(new Error("NetworkError"));
435
+ }, e.onload = function() {
436
+ a(null);
437
+ }, e.onabort = function() {
438
+ a(null);
439
+ }, e.onreadystatechange = function() {
440
+ if (e.readyState === c.HEADERS_RECEIVED) {
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
+ }
444
+ }, e.withCredentials = f;
445
+ for (var b in l)
446
+ Object.prototype.hasOwnProperty.call(l, b) && e.setRequestHeader(b, l[b]);
447
+ return e.send(), e;
448
+ };
449
+ function L(e) {
450
+ this._headers = e;
451
+ }
452
+ L.prototype.get = function(e) {
453
+ return this._headers.get(e);
454
+ };
455
+ function _() {
456
+ }
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
+ headers: l,
461
+ credentials: f ? "include" : "same-origin",
462
+ signal: R,
463
+ cache: "no-store"
464
+ }).then(function(v) {
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
+ var Me = function() {
467
+ S.read().then(function(Q) {
468
+ if (Q.done)
469
+ V(void 0);
470
+ else {
471
+ var X = D.decode(Q.value, { stream: !0 });
472
+ s(X), Me();
473
+ }
474
+ }).catch(function(Q) {
475
+ se(Q);
476
+ });
477
+ };
478
+ Me();
479
+ });
480
+ }).catch(function(v) {
481
+ if (v.name !== "AbortError")
482
+ return v;
483
+ }).then(function(v) {
484
+ a(v);
485
+ }), {
486
+ abort: function() {
487
+ S != null && S.cancel(), b.abort();
488
+ }
489
+ };
490
+ };
491
+ function O() {
492
+ this._listeners = /* @__PURE__ */ Object.create(null);
493
+ }
494
+ function M(e) {
495
+ i(function() {
496
+ throw e;
497
+ }, 0);
498
+ }
499
+ O.prototype.dispatchEvent = function(e) {
500
+ e.target = this;
501
+ var r = this._listeners[e.type];
502
+ if (r != null)
503
+ for (var s = r.length, a = 0; a < s; a += 1) {
504
+ var h = r[a];
505
+ try {
506
+ typeof h.handleEvent == "function" ? h.handleEvent(e) : h.call(this, e);
507
+ } catch (f) {
508
+ M(f);
509
+ }
510
+ }
511
+ }, O.prototype.addEventListener = function(e, r) {
512
+ e = String(e);
513
+ var s = this._listeners, a = s[e];
514
+ a == null && (a = [], s[e] = a);
515
+ for (var h = !1, f = 0; f < a.length; f += 1)
516
+ a[f] === r && (h = !0);
517
+ h || a.push(r);
518
+ }, O.prototype.removeEventListener = function(e, r) {
519
+ e = String(e);
520
+ var s = this._listeners, a = s[e];
521
+ if (a != null) {
522
+ for (var h = [], f = 0; f < a.length; f += 1)
523
+ a[f] !== r && h.push(a[f]);
524
+ h.length === 0 ? delete s[e] : s[e] = h;
525
+ }
526
+ };
527
+ function d(e) {
528
+ this.type = e, this.target = void 0;
529
+ }
530
+ function ge(e, r) {
531
+ d.call(this, e), this.data = r.data, this.lastEventId = r.lastEventId;
532
+ }
533
+ ge.prototype = Object.create(d.prototype);
534
+ function Re(e, r) {
535
+ d.call(this, e), this.status = r.status, this.statusText = r.statusText, this.headers = r.headers;
536
+ }
537
+ Re.prototype = Object.create(d.prototype);
538
+ function me(e, r) {
539
+ d.call(this, e), this.error = r.error;
540
+ }
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
+ var s = e == null ? r : parseInt(e, 10);
544
+ return s !== s && (s = r), Ce(s);
545
+ }, Ce = function(e) {
546
+ return Math.min(Math.max(e, Oe), ze);
547
+ }, ve = function(e, r, s) {
548
+ try {
549
+ typeof r == "function" && r.call(e, s);
550
+ } catch (a) {
551
+ M(a);
552
+ }
553
+ };
554
+ function J(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
+ }
557
+ function Ue() {
558
+ return c != null && "withCredentials" in c.prototype || g == null ? new c() : new g();
559
+ }
560
+ var Pe = k != null && F != null && "body" in F.prototype;
561
+ function Ge(e, r, s) {
562
+ r = String(r);
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
+ if (ne === ie)
565
+ if (P === 200 && Z != null && He.test(Z)) {
566
+ ne = ye, R = Date.now(), b = f, e.readyState = ye;
567
+ var q = new Re("open", {
568
+ status: P,
569
+ statusText: U,
570
+ headers: $
571
+ });
572
+ e.dispatchEvent(q), ve(e, e.onopen, q);
573
+ } else {
574
+ var G = "";
575
+ P !== 200 ? (U && (U = U.replace(/\s+/g, " ")), G = "EventSource's response has a status " + P + " " + U + " that is not 200. Aborting the connection.") : G = "EventSource's response has a Content-Type specifying an unsupported type: " + (Z == null ? "-" : Z.replace(/\s+/g, " ")) + ". Aborting the connection.", Ke();
576
+ var q = new Re("error", {
577
+ status: P,
578
+ statusText: U,
579
+ headers: $
580
+ });
581
+ e.dispatchEvent(q), ve(e, e.onerror, q), console.error(G);
582
+ }
583
+ }, ht = function(P) {
584
+ if (ne === ye) {
585
+ for (var U = -1, Z = 0; Z < P.length; Z += 1) {
586
+ var $ = P.charCodeAt(Z);
587
+ ($ === 10 || $ === 13) && (U = Z);
588
+ }
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
+ for (var G = 0; G < q.length; G += 1) {
592
+ var $ = q.charCodeAt(G);
593
+ if (K === be && $ === 10)
594
+ K = te;
595
+ else if (K === be && (K = te), $ === 13 || $ === 10) {
596
+ if (K !== te) {
597
+ K === Ee && (Be = G + 1);
598
+ var ce = q.slice(Xe, Be - 1), ue = q.slice(Be + (Be < G && q.charCodeAt(Be) === 32 ? 1 : 0), G);
599
+ ce === "data" ? (_e += `
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
+ De();
602
+ }, l)));
603
+ }
604
+ if (K === te) {
605
+ if (_e !== "") {
606
+ S = Fe, le === "" && (le = "message");
607
+ var Ae = new ge(le, {
608
+ data: _e.slice(1),
609
+ lastEventId: Fe
610
+ });
611
+ if (e.dispatchEvent(Ae), le === "open" ? ve(e, e.onopen, Ae) : le === "message" ? ve(e, e.onmessage, Ae) : le === "error" && ve(e, e.onerror, Ae), ne === we)
612
+ return;
613
+ }
614
+ _e = "", le = "";
615
+ }
616
+ K = $ === 13 ? be : te;
617
+ } else
618
+ K === te && (Xe = G, K = Ee), K === Ee ? $ === 58 && (Be = G + 1, K = Se) : K === Se && (K = Le);
619
+ }
620
+ }
621
+ }, Je = function(P) {
622
+ if (ne === ye || ne === ie) {
623
+ ne = Te, X !== 0 && (u(X), X = 0), X = i(function() {
624
+ De();
625
+ }, b), b = Ce(Math.min(f * 16, b * 2)), e.readyState = ie;
626
+ var U = new me("error", { error: P });
627
+ e.dispatchEvent(U), ve(e, e.onerror, U), P != null && console.error(P);
628
+ }
629
+ }, Ke = function() {
630
+ ne = we, Q != null && (Q.abort(), Q = void 0), X !== 0 && (u(X), X = 0), e.readyState = we;
631
+ }, De = function() {
632
+ if (X = 0, ne !== Te) {
633
+ if (!R && Q != null)
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
+ else {
636
+ var P = Math.max((R || Date.now()) + l - Date.now(), 1);
637
+ R = !1, X = i(function() {
638
+ De();
639
+ }, P);
640
+ }
641
+ return;
642
+ }
643
+ R = !1, D = 0, X = i(function() {
644
+ De();
645
+ }, l), ne = ie, _e = "", le = "", Fe = S, Ie = "", Xe = 0, Be = 0, K = te;
646
+ var U = r;
647
+ if (r.slice(0, 5) !== "data:" && r.slice(0, 5) !== "blob:" && S !== "") {
648
+ var Z = r.indexOf("?");
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
+ }
653
+ var $ = e.withCredentials, q = {};
654
+ q.Accept = "text/event-stream";
655
+ var G = e.headers;
656
+ if (G != null)
657
+ for (var ce in G)
658
+ Object.prototype.hasOwnProperty.call(G, ce) && (q[ce] = G[ce]);
659
+ try {
660
+ Q = Me.open(se, pt, ht, Je, U, $, q);
661
+ } catch (ue) {
662
+ throw Ke(), ue;
663
+ }
664
+ };
665
+ e.url = r, e.readyState = ie, e.withCredentials = a, e.headers = v, e._close = Ke, De();
666
+ }
667
+ J.prototype = Object.create(O.prototype), J.prototype.CONNECTING = ie, J.prototype.OPEN = ye, J.prototype.CLOSED = we, J.prototype.close = function() {
668
+ this._close();
669
+ }, J.CONNECTING = ie, J.OPEN = ye, J.CLOSED = we, J.prototype.withCredentials = void 0;
670
+ var ke = m;
671
+ c != null && (m == null || !("withCredentials" in m.prototype)) && (ke = J), function(e) {
672
+ {
673
+ var r = e(t);
674
+ r !== void 0 && (o.exports = r);
675
+ }
676
+ }(function(e) {
677
+ e.EventSourcePolyfill = J, e.NativeEventSource = m, e.EventSource = ke;
678
+ });
679
+ })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Tt : globalThis);
680
+ })(We, We.exports);
681
+ var Vt = We.exports;
682
+ /*!
683
+ * currency.js - v2.0.4
684
+ * http://scurker.github.io/currency.js
685
+ *
686
+ * Copyright (c) 2021 Jason Wilson
687
+ * Released under MIT license
688
+ */
689
+ var jt = {
690
+ symbol: "$",
691
+ separator: ",",
692
+ decimal: ".",
693
+ errorOnInvalid: !1,
694
+ precision: 2,
695
+ pattern: "!#",
696
+ negativePattern: "-!#",
697
+ format: Pt,
698
+ fromCents: !1
699
+ }, ft = function(t) {
700
+ return Math.round(t);
701
+ }, Ye = function(t) {
702
+ return Math.pow(10, t);
703
+ }, Ht = function(t, n) {
704
+ return ft(t / n) * n;
705
+ }, zt = /(\d)(?=(\d{3})+\b)/g, Ut = /(\d)(?=(\d\d)+\d\b)/g;
706
+ function ae(o, t) {
707
+ var n = this;
708
+ if (!(n instanceof ae))
709
+ return new ae(o, t);
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
+ }
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
+ if (A && p)
716
+ return o.intValue;
717
+ if (y || A)
718
+ i = A ? o.value : o;
719
+ else if (typeof o == "string") {
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
+ } else {
723
+ if (c)
724
+ throw Error("Invalid Input");
725
+ i = 0;
726
+ }
727
+ return p || (i *= m, i = i.toFixed(4)), n ? ft(i) : i;
728
+ }
729
+ function Pt(o, t) {
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
+ }
733
+ ae.prototype = {
734
+ /**
735
+ * Adds values together.
736
+ * @param {number} number
737
+ * @returns {currency}
738
+ */
739
+ add: function(t) {
740
+ var n = this.intValue, i = this.s, u = this.p;
741
+ return ae((n += Ne(t, i)) / (i.fromCents ? 1 : u), i);
742
+ },
743
+ /**
744
+ * Subtracts value.
745
+ * @param {number} number
746
+ * @returns {currency}
747
+ */
748
+ subtract: function(t) {
749
+ var n = this.intValue, i = this.s, u = this.p;
750
+ return ae((n -= Ne(t, i)) / (i.fromCents ? 1 : u), i);
751
+ },
752
+ /**
753
+ * Multiplies values.
754
+ * @param {number} number
755
+ * @returns {currency}
756
+ */
757
+ multiply: function(t) {
758
+ var n = this.intValue, i = this.s;
759
+ return ae((n *= t) / (i.fromCents ? 1 : Ye(i.precision)), i);
760
+ },
761
+ /**
762
+ * Divides value.
763
+ * @param {number} number
764
+ * @returns {currency}
765
+ */
766
+ divide: function(t) {
767
+ var n = this.intValue, i = this.s;
768
+ return ae(n /= Ne(t, i, !1), i);
769
+ },
770
+ /**
771
+ * Takes the currency amount and distributes the values evenly. Any extra pennies
772
+ * left over from the distribution will be stacked onto the first set of entries.
773
+ * @param {number} count
774
+ * @returns {array}
775
+ */
776
+ distribute: function(t) {
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
+ p-- > 0 && (y = y[n >= 0 ? "add" : "subtract"](1 / m)), c.push(y);
780
+ }
781
+ return c;
782
+ },
783
+ /**
784
+ * Returns the dollar value.
785
+ * @returns {number}
786
+ */
787
+ dollars: function() {
788
+ return ~~this.value;
789
+ },
790
+ /**
791
+ * Returns the cent value.
792
+ * @returns {number}
793
+ */
794
+ cents: function() {
795
+ var t = this.intValue, n = this.p;
796
+ return ~~(t % n);
797
+ },
798
+ /**
799
+ * Formats the value as a string according to the formatting settings.
800
+ * @param {boolean} useSymbol - format with currency symbol
801
+ * @returns {string}
802
+ */
803
+ format: function(t) {
804
+ var n = this.s;
805
+ return typeof t == "function" ? t(this, n) : n.format(this, Object.assign({}, n, t));
806
+ },
807
+ /**
808
+ * Formats the value as a string according to the formatting settings.
809
+ * @returns {string}
810
+ */
811
+ toString: function() {
812
+ var t = this.intValue, n = this.p, i = this.s;
813
+ return Ht(t / n, i.increment).toFixed(i.precision);
814
+ },
815
+ /**
816
+ * Value for JSON serialization.
817
+ * @returns {float}
818
+ */
819
+ toJSON: function() {
820
+ return this.value;
821
+ }
822
+ };
823
+ function Gt(o) {
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
+ }
826
+ function rt(o, t, n) {
827
+ const i = o.slice();
828
+ return i[50] = t[n], i;
829
+ }
830
+ function it(o, t, n) {
831
+ const i = o.slice();
832
+ return i[53] = t[n], i;
833
+ }
834
+ function Xt(o) {
835
+ let t, n, i = (
836
+ /*balances*/
837
+ (o[1].Total ? (
838
+ /*formatBalance*/
839
+ o[8](
840
+ /*balances*/
841
+ o[1].Total[0].amount
842
+ )
843
+ ) : "0") + ""
844
+ ), u, c, g, p, m, y, A, k, F, I, N, E, w = (
845
+ /*showBalance*/
846
+ o[4] && st(o)
847
+ );
848
+ return {
849
+ c() {
850
+ t = j("button"), n = j("p"), u = fe(i), c = oe(), g = fe(
851
+ /*currency*/
852
+ o[5]
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
+ },
856
+ m(T, H) {
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
+ t,
859
+ "click",
860
+ /*click_handler*/
861
+ o[25]
862
+ ), N = !0);
863
+ },
864
+ p(T, H) {
865
+ H[0] & /*balances*/
866
+ 2 && i !== (i = /*balances*/
867
+ (T[1].Total ? (
868
+ /*formatBalance*/
869
+ T[8](
870
+ /*balances*/
871
+ T[1].Total[0].amount
872
+ )
873
+ ) : "0") + "") && de(u, i), H[0] & /*currency*/
874
+ 32 && de(
875
+ g,
876
+ /*currency*/
877
+ T[5]
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
+ },
883
+ d(T) {
884
+ T && (pe(t), pe(F), pe(I)), w && w.d(T), N = !1, E();
885
+ }
886
+ };
887
+ }
888
+ function Kt(o) {
889
+ let t, n = (
890
+ /*$_*/
891
+ o[6]("Loading") + ""
892
+ ), i;
893
+ return {
894
+ c() {
895
+ t = j("p"), i = fe(n), C(t, "class", "Loading");
896
+ },
897
+ m(u, c) {
898
+ he(u, t, c), B(t, i);
899
+ },
900
+ p(u, c) {
901
+ c[0] & /*$_*/
902
+ 64 && n !== (n = /*$_*/
903
+ u[6]("Loading") + "") && de(i, n);
904
+ },
905
+ d(u) {
906
+ u && pe(t);
907
+ }
908
+ };
909
+ }
910
+ function st(o) {
911
+ let t, n, i, u, c, g, p, m, y = (
912
+ /*$_*/
913
+ o[6]("Title") + ""
914
+ ), A, k, F, I, N, E, w = (
915
+ /*$_*/
916
+ o[6]("DepositButton") + ""
917
+ ), T, H, x, z, re, ee, Y = je(Object.keys(
918
+ /*balances*/
919
+ o[1]
920
+ )), L = [];
921
+ for (let _ = 0; _ < Y.length; _ += 1)
922
+ L[_] = ct(rt(o, Y, _));
923
+ return {
924
+ c() {
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
+ (o[3] ? "Open" : ""));
933
+ },
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
+ Ve(
940
+ n,
941
+ "click",
942
+ /*click_handler_1*/
943
+ o[26]
944
+ ),
945
+ Ve(
946
+ E,
947
+ "click",
948
+ /*click_handler_2*/
949
+ o[27]
950
+ )
951
+ ], re = !0);
952
+ },
953
+ p(_, O) {
954
+ if (O[0] & /*isModalDisplayed*/
955
+ 8 && i !== (i = "BalanceModalClose " + /*isModalDisplayed*/
956
+ (_[3] ? "Open" : "")) && C(n, "class", i), O[0] & /*$_*/
957
+ 64 && y !== (y = /*$_*/
958
+ _[6]("Title") + "") && de(A, y), O[0] & /*balances, currency, formatBalance, $_*/
959
+ 354) {
960
+ Y = je(Object.keys(
961
+ /*balances*/
962
+ _[1]
963
+ ));
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
+ }
969
+ for (; M < L.length; M += 1)
970
+ L[M].d(1);
971
+ L.length = Y.length;
972
+ }
973
+ O[0] & /*$_*/
974
+ 64 && w !== (w = /*$_*/
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
+ },
983
+ d(_) {
984
+ _ && pe(t), dt(L, _), re = !1, Dt(ee);
985
+ }
986
+ };
987
+ }
988
+ function lt(o) {
989
+ let t, n, i = (
990
+ /*$_*/
991
+ o[6](
992
+ /*k*/
993
+ o[50]
994
+ ) + ""
995
+ ), u, c, g = (
996
+ /*b*/
997
+ (o[53].productType ? (
998
+ /*$_*/
999
+ o[6](
1000
+ /*b*/
1001
+ o[53].productType
1002
+ )
1003
+ ) : "") + ""
1004
+ ), p, m, y, A, k = (
1005
+ /*b*/
1006
+ (o[53].amount ? (
1007
+ /*formatBalance*/
1008
+ o[8](
1009
+ /*b*/
1010
+ o[53].amount
1011
+ )
1012
+ ) : "0") + ""
1013
+ ), F, I, N, E;
1014
+ return {
1015
+ c() {
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
+ /*currency*/
1018
+ o[5]
1019
+ ), C(n, "class", "BalanceModalText"), C(A, "class", "BalanceModalAmount"), C(N, "class", "BalanceModalCurrency"), C(y, "class", "BalanceModalValue"), C(t, "class", "BalanceModalRowLine");
1020
+ },
1021
+ m(w, T) {
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
+ },
1024
+ p(w, T) {
1025
+ T[0] & /*$_, balances*/
1026
+ 66 && i !== (i = /*$_*/
1027
+ w[6](
1028
+ /*k*/
1029
+ w[50]
1030
+ ) + "") && de(u, i), T[0] & /*balances, $_*/
1031
+ 66 && g !== (g = /*b*/
1032
+ (w[53].productType ? (
1033
+ /*$_*/
1034
+ w[6](
1035
+ /*b*/
1036
+ w[53].productType
1037
+ )
1038
+ ) : "") + "") && de(p, g), T[0] & /*balances*/
1039
+ 2 && k !== (k = /*b*/
1040
+ (w[53].amount ? (
1041
+ /*formatBalance*/
1042
+ w[8](
1043
+ /*b*/
1044
+ w[53].amount
1045
+ )
1046
+ ) : "0") + "") && de(F, k), T[0] & /*currency*/
1047
+ 32 && de(
1048
+ E,
1049
+ /*currency*/
1050
+ w[5]
1051
+ );
1052
+ },
1053
+ d(w) {
1054
+ w && pe(t);
1055
+ }
1056
+ };
1057
+ }
1058
+ function ct(o) {
1059
+ let t, n, i = je(
1060
+ /*balances*/
1061
+ o[1][
1062
+ /*k*/
1063
+ o[50]
1064
+ ]
1065
+ ), u = [];
1066
+ for (let c = 0; c < i.length; c += 1)
1067
+ u[c] = lt(it(o, i, c));
1068
+ return {
1069
+ c() {
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
+ },
1075
+ m(c, g) {
1076
+ he(c, t, g);
1077
+ for (let p = 0; p < u.length; p += 1)
1078
+ u[p] && u[p].m(t, null);
1079
+ B(t, n);
1080
+ },
1081
+ p(c, g) {
1082
+ if (g[0] & /*currency, balances, formatBalance, $_*/
1083
+ 354) {
1084
+ i = je(
1085
+ /*balances*/
1086
+ c[1][
1087
+ /*k*/
1088
+ c[50]
1089
+ ]
1090
+ );
1091
+ let p;
1092
+ for (p = 0; p < i.length; p += 1) {
1093
+ const m = it(c, i, p);
1094
+ u[p] ? u[p].p(m, g) : (u[p] = lt(m), u[p].c(), u[p].m(t, n));
1095
+ }
1096
+ for (; p < u.length; p += 1)
1097
+ u[p].d(1);
1098
+ u.length = i.length;
1099
+ }
1100
+ },
1101
+ d(c) {
1102
+ c && pe(t), dt(u, c);
1103
+ }
1104
+ };
1105
+ }
1106
+ function ut(o) {
1107
+ let t, n, i;
1108
+ return {
1109
+ c() {
1110
+ t = j("button"), C(t, "class", "ShowBalanceModalOverlay");
1111
+ },
1112
+ m(u, c) {
1113
+ he(u, t, c), n || (i = Ve(
1114
+ t,
1115
+ "click",
1116
+ /*click_handler_3*/
1117
+ o[28]
1118
+ ), n = !0);
1119
+ },
1120
+ p: qe,
1121
+ d(u) {
1122
+ u && pe(t), n = !1, i();
1123
+ }
1124
+ };
1125
+ }
1126
+ function qt(o) {
1127
+ let t, n, i;
1128
+ function u(m, y) {
1129
+ return (
1130
+ /*isLoading*/
1131
+ m[2] ? Kt : Xt
1132
+ );
1133
+ }
1134
+ let c = u(o), g = c(o), p = (
1135
+ /*showBalance*/
1136
+ o[4] && ut(o)
1137
+ );
1138
+ return {
1139
+ c() {
1140
+ t = j("div"), n = j("div"), g.c(), i = oe(), p && p.c(), C(n, "class", "ShowBalance");
1141
+ },
1142
+ m(m, y) {
1143
+ he(m, t, y), B(t, n), g.m(n, null), B(t, i), p && p.m(t, null), o[29](t);
1144
+ },
1145
+ p(m, y) {
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
+ },
1149
+ i: qe,
1150
+ o: qe,
1151
+ d(m) {
1152
+ m && pe(t), g.d(), p && p.d(), o[29](null);
1153
+ }
1154
+ };
1155
+ }
1156
+ function Wt(o, t, n) {
1157
+ let i;
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
+ };
1163
+ Object.keys(ot).forEach((e) => at(e, ot[e]));
1164
+ const me = (e) => {
1165
+ switch (e) {
1166
+ case "balance":
1167
+ window.postMessage(
1168
+ {
1169
+ type: "BalanceModalStatus",
1170
+ status: "open"
1171
+ },
1172
+ window.location.href
1173
+ ), n(4, Y = !0), setTimeout(() => n(3, re = !0), 150);
1174
+ break;
1175
+ case "closebalance":
1176
+ n(3, re = !1), window.postMessage(
1177
+ {
1178
+ type: "BalanceModalStatus",
1179
+ status: "close"
1180
+ },
1181
+ window.location.href
1182
+ ), setTimeout(
1183
+ () => {
1184
+ n(4, Y = !1);
1185
+ },
1186
+ 150
1187
+ );
1188
+ break;
1189
+ }
1190
+ }, Te = () => {
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
+ separator: w,
1195
+ decimal: T,
1196
+ symbol: "",
1197
+ precision: parseInt(H || "2", 10)
1198
+ }).format() : ae(e, {
1199
+ separator: ".",
1200
+ decimal: ",",
1201
+ symbol: "",
1202
+ precision: parseInt(H || "2", 10)
1203
+ }).format(), ye = () => tt(this, null, function* () {
1204
+ var r, s, a;
1205
+ n(2, z = !0);
1206
+ const e = new URL(`${g}/v1/player/${u}/account`);
1207
+ try {
1208
+ const h = yield fetch(e, {
1209
+ method: "GET",
1210
+ headers: { "X-SessionID": c }
1211
+ }), f = yield h.json();
1212
+ if (h.ok)
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
+ 1,
1215
+ d.Real = [
1216
+ {
1217
+ amount: (s = O.find((l) => l.displayName === "Casino")) == null ? void 0 : s.balanceAmount
1218
+ }
1219
+ ],
1220
+ d
1221
+ ), n(
1222
+ 1,
1223
+ d.Bonus = [
1224
+ {
1225
+ amount: (a = O.find((l) => l.displayName === "UBS")) == null ? void 0 : a.balanceAmount
1226
+ }
1227
+ ],
1228
+ d
1229
+ );
1230
+ else
1231
+ throw new Error("Failed to fetch balance data !");
1232
+ } catch (h) {
1233
+ console.log("Balance error: ", h);
1234
+ } finally {
1235
+ n(2, z = !1);
1236
+ }
1237
+ }), we = () => {
1238
+ n(2, z = !0);
1239
+ const e = new URL(`${g}/v2/player/${u}/balance`), r = new Headers();
1240
+ r.append("X-SessionID", c), fetch(e, { method: "GET", headers: r }).then((a) => a.json()).then((a) => {
1241
+ a[E] || n(10, E = ge[0]);
1242
+ const h = a.items.find((l) => l.type === "Real" && l.walletAccountType === "Ordinary");
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
+ lastOrdinaryAfterAmount: 0,
1246
+ showCreditLineAfterAmount: !1
1247
+ }, n(1, d.Total[0].amount = a[E][_], d);
1248
+ for (const l of a.items)
1249
+ switch (l.type) {
1250
+ case "Bonus":
1251
+ d.Bonus.length === 0 ? d.Bonus.push({ amount: l.amount }) : n(1, d.Bonus[0].amount += l.amount, d);
1252
+ break;
1253
+ case "Real":
1254
+ if (l.creditLine && d.Credit.length === 0 && d.Credit.push({ amount: l.creditLine }), E === "totalRealAmount")
1255
+ continue;
1256
+ d.Real.length === 0 ? d.Real.push({ amount: l.amount }) : n(1, d.Real[0].amount += l.amount, d);
1257
+ break;
1258
+ }
1259
+ for (const [l, S] of Object.entries(d))
1260
+ S.length < 1 && delete d[l];
1261
+ n(2, z = !1);
1262
+ return;
1263
+ }
1264
+ M = {
1265
+ Casino: {
1266
+ lastOrdinaryAfterAmount: 0,
1267
+ showCreditLineAfterAmount: !1
1268
+ },
1269
+ Sports: {
1270
+ lastOrdinaryAfterAmount: 0,
1271
+ showCreditLineAfterAmount: !1
1272
+ }
1273
+ };
1274
+ let f = a.items;
1275
+ N && N !== "All" && (f = a.items.filter((l) => l.productType === N));
1276
+ for (const l of f) {
1277
+ let S;
1278
+ switch (l.type) {
1279
+ case "Bonus":
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
+ amount: l.amount,
1282
+ productType: l.productType
1283
+ });
1284
+ break;
1285
+ case "Real":
1286
+ l.creditLine && d.Credit.push({
1287
+ amount: l.creditLine,
1288
+ productType: l.productType
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
+ amount: l.amount,
1291
+ productType: l.productType
1292
+ });
1293
+ break;
1294
+ }
1295
+ }
1296
+ Le();
1297
+ for (const [l, S] of Object.entries(d))
1298
+ S.length < 1 && delete d[l];
1299
+ n(2, z = !1);
1300
+ }).catch((a) => {
1301
+ throw n(2, z = !1), console.log("Balance fetch error", a), new Error("Failed to fetch balance data!");
1302
+ });
1303
+ }, be = () => {
1304
+ if (L && L.close(), c.length < 1)
1305
+ return;
1306
+ let e, r;
1307
+ switch (I) {
1308
+ case "gm16":
1309
+ e = new URL(`${g}/v2/player/${u}/information/updates`), r = (h) => He(h);
1310
+ break;
1311
+ case "gmcore":
1312
+ e = new URL(`${g}/v1/player/${u}/balance/updates`), r = (h) => Ee(h);
1313
+ break;
1314
+ }
1315
+ const s = {
1316
+ accept: "text/event-stream",
1317
+ "X-SessionId": c
1318
+ }, a = new Vt.EventSourcePolyfill(e, { headers: s });
1319
+ L = a, a.addEventListener("message", r);
1320
+ }, te = (e) => {
1321
+ let r;
1322
+ try {
1323
+ r = JSON.parse(e);
1324
+ } catch (s) {
1325
+ console.log("Balance stream failed: ", s);
1326
+ return;
1327
+ }
1328
+ return r;
1329
+ }, Ee = (e) => {
1330
+ var h, f;
1331
+ const r = te(e.data);
1332
+ if (!r) {
1333
+ be();
1334
+ return;
1335
+ }
1336
+ let s = "0";
1337
+ const a = r.balanceChange;
1338
+ O = O.map((l) => (a && a[l.id] && (l = et($e({}, l), {
1339
+ balanceAmount: a[l.id].afterAmount
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
+ }, Se = (e, r, s) => {
1342
+ let a = null;
1343
+ switch (s.walletAccountType) {
1344
+ case "Ordinary":
1345
+ (s.afterAmount !== s.affectedAmount || r.lastOrdinaryAfterAmount === 0) && (r.lastOrdinaryAfterAmount = s.afterAmount, r.showCreditLineAfterAmount || (a = s.afterAmount));
1346
+ break;
1347
+ case "CreditLine":
1348
+ s.afterAmount !== 0 ? (a = s.afterAmount, r.showCreditLineAfterAmount = !0) : (a = r.lastOrdinaryAfterAmount, r.showCreditLineAfterAmount = !1);
1349
+ break;
1350
+ default:
1351
+ a = s.afterAmount;
1352
+ }
1353
+ return a === null ? e : a;
1354
+ }, Le = () => {
1355
+ switch (E) {
1356
+ case "totalCashAmount":
1357
+ let e = 0;
1358
+ for (const s of ["Real", "Bonus"])
1359
+ for (const a of d[s])
1360
+ e += Math.max(a.amount, 0);
1361
+ n(1, d.Total[0].amount = e, d);
1362
+ break;
1363
+ case "totalRealAmount":
1364
+ if (!ee)
1365
+ return;
1366
+ let r = 0;
1367
+ for (const s of d.Real)
1368
+ r += s.amount;
1369
+ n(1, d.Total[0].amount = r, d);
1370
+ }
1371
+ }, He = (e) => {
1372
+ const r = te(e.data);
1373
+ if (!r) {
1374
+ be();
1375
+ return;
1376
+ }
1377
+ if (r.type !== "BALANCE_UPDATE_V2")
1378
+ return;
1379
+ const s = r.body.balanceChange;
1380
+ for (const [a, h] of Object.entries(s))
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
+ continue;
1386
+ }
1387
+ h.productType === f.productType && (f.amount = a === "Real" ? Se(f.amount, M[f.productType], h) : h.afterAmount);
1388
+ }
1389
+ Le();
1390
+ }, Oe = () => {
1391
+ me("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
1392
+ }, ze = () => {
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
+ }, xe = () => {
1395
+ switch (Nt(p), ze(), I) {
1396
+ case "gmcore":
1397
+ ye();
1398
+ break;
1399
+ case "gm16":
1400
+ we();
1401
+ break;
1402
+ default:
1403
+ throw Error(`Invalid apiversion attribute: ${I}`);
1404
+ }
1405
+ }, Ce = (e) => e.data && e.data.type === "LogoutSuccessfull" && L.close(), ve = () => {
1406
+ window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
1407
+ };
1408
+ Et(() => (window.addEventListener("message", Ce, !1), () => {
1409
+ window.removeEventListener("message", Ce), L && L.close();
1410
+ }));
1411
+ const J = () => me("balance"), Ue = () => me("closebalance"), Pe = () => Oe(), Ge = () => me("closeBalance");
1412
+ function ke(e) {
1413
+ xt[e ? "unshift" : "push"](() => {
1414
+ x = e, n(0, x);
1415
+ });
1416
+ }
1417
+ return o.$$set = (e) => {
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
+ }, o.$$.update = () => {
1420
+ o.$$.dirty[0] & /*lang*/
1421
+ 16384 && p && Te(), o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
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
+ }, [
1430
+ x,
1431
+ d,
1432
+ z,
1433
+ re,
1434
+ Y,
1435
+ _,
1436
+ i,
1437
+ me,
1438
+ ie,
1439
+ Oe,
1440
+ E,
1441
+ u,
1442
+ c,
1443
+ g,
1444
+ p,
1445
+ m,
1446
+ y,
1447
+ A,
1448
+ k,
1449
+ F,
1450
+ I,
1451
+ N,
1452
+ w,
1453
+ T,
1454
+ H,
1455
+ J,
1456
+ Ue,
1457
+ Pe,
1458
+ Ge,
1459
+ ke
1460
+ ];
1461
+ }
1462
+ class Yt extends St {
1463
+ constructor(t) {
1464
+ super(), Ct(
1465
+ this,
1466
+ t,
1467
+ Wt,
1468
+ qt,
1469
+ _t,
1470
+ {
1471
+ userid: 11,
1472
+ session: 12,
1473
+ endpoint: 13,
1474
+ lang: 14,
1475
+ mbsource: 15,
1476
+ clientstyling: 16,
1477
+ clientstylingurl: 17,
1478
+ translationurl: 18,
1479
+ customlocaleidentifier: 19,
1480
+ gmversion: 20,
1481
+ displaybalanceoption: 21,
1482
+ totalcalculationmode: 10,
1483
+ currencyseparator: 22,
1484
+ currencydecimal: 23,
1485
+ currencyprecision: 24
1486
+ },
1487
+ Gt,
1488
+ [-1, -1]
1489
+ );
1490
+ }
1491
+ get userid() {
1492
+ return this.$$.ctx[11];
1493
+ }
1494
+ set userid(t) {
1495
+ this.$$set({ userid: t }), W();
1496
+ }
1497
+ get session() {
1498
+ return this.$$.ctx[12];
1499
+ }
1500
+ set session(t) {
1501
+ this.$$set({ session: t }), W();
1502
+ }
1503
+ get endpoint() {
1504
+ return this.$$.ctx[13];
1505
+ }
1506
+ set endpoint(t) {
1507
+ this.$$set({ endpoint: t }), W();
1508
+ }
1509
+ get lang() {
1510
+ return this.$$.ctx[14];
1511
+ }
1512
+ set lang(t) {
1513
+ this.$$set({ lang: t }), W();
1514
+ }
1515
+ get mbsource() {
1516
+ return this.$$.ctx[15];
1517
+ }
1518
+ set mbsource(t) {
1519
+ this.$$set({ mbsource: t }), W();
1520
+ }
1521
+ get clientstyling() {
1522
+ return this.$$.ctx[16];
1523
+ }
1524
+ set clientstyling(t) {
1525
+ this.$$set({ clientstyling: t }), W();
1526
+ }
1527
+ get clientstylingurl() {
1528
+ return this.$$.ctx[17];
1529
+ }
1530
+ set clientstylingurl(t) {
1531
+ this.$$set({ clientstylingurl: t }), W();
1532
+ }
1533
+ get translationurl() {
1534
+ return this.$$.ctx[18];
1535
+ }
1536
+ set translationurl(t) {
1537
+ this.$$set({ translationurl: t }), W();
1538
+ }
1539
+ get customlocaleidentifier() {
1540
+ return this.$$.ctx[19];
1541
+ }
1542
+ set customlocaleidentifier(t) {
1543
+ this.$$set({ customlocaleidentifier: t }), W();
1544
+ }
1545
+ get gmversion() {
1546
+ return this.$$.ctx[20];
1547
+ }
1548
+ set gmversion(t) {
1549
+ this.$$set({ gmversion: t }), W();
1550
+ }
1551
+ get displaybalanceoption() {
1552
+ return this.$$.ctx[21];
1553
+ }
1554
+ set displaybalanceoption(t) {
1555
+ this.$$set({ displaybalanceoption: t }), W();
1556
+ }
1557
+ get totalcalculationmode() {
1558
+ return this.$$.ctx[10];
1559
+ }
1560
+ set totalcalculationmode(t) {
1561
+ this.$$set({ totalcalculationmode: t }), W();
1562
+ }
1563
+ get currencyseparator() {
1564
+ return this.$$.ctx[22];
1565
+ }
1566
+ set currencyseparator(t) {
1567
+ this.$$set({ currencyseparator: t }), W();
1568
+ }
1569
+ get currencydecimal() {
1570
+ return this.$$.ctx[23];
1571
+ }
1572
+ set currencydecimal(t) {
1573
+ this.$$set({ currencydecimal: t }), W();
1574
+ }
1575
+ get currencyprecision() {
1576
+ return this.$$.ctx[24];
1577
+ }
1578
+ set currencyprecision(t) {
1579
+ this.$$set({ currencyprecision: t }), W();
1580
+ }
1581
+ }
1582
+ Ft(Yt, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
1583
+ export {
1584
+ Yt as default
1585
+ };