@everymatrix/casino-header-controller 1.98.25 → 1.98.26

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 (29) hide show
  1. package/components/{CasinoHamburgerMenu-DsqrBU9E.cjs → CasinoHamburgerMenu-CIskFOQa.cjs} +1 -1
  2. package/components/{CasinoHamburgerMenu-qdgiJIO3.js → CasinoHamburgerMenu-DGX6UBM6.js} +1 -1
  3. package/components/{CasinoHamburgerMenu-Uhues3Sq.js → CasinoHamburgerMenu-z8Wckclx.js} +1 -1
  4. package/components/{CasinoHeaderController-DRURDus_.js → CasinoHeaderController-C4AKLxls.js} +5 -5
  5. package/components/{CasinoHeaderController-k6rtWvK0.js → CasinoHeaderController-DHj2MOij.js} +5 -5
  6. package/components/{CasinoHeaderController-DpHzdNo8.cjs → CasinoHeaderController-DW5ITlRB.cjs} +2 -2
  7. package/components/{CasinoSlider-BBR6cdtP.cjs → CasinoSlider-BYAAkIE4.cjs} +1 -1
  8. package/components/{CasinoSlider-BXSvj9tl.js → CasinoSlider-CTjP5iju.js} +1 -1
  9. package/components/{CasinoSlider-BuZW2O6w.js → CasinoSlider-D1JN31YL.js} +1 -1
  10. package/components/{PlayerAccountBalanceModal-G-uFSdF5.cjs → PlayerAccountBalanceModal-BVRVIaGi.cjs} +1 -1
  11. package/components/{PlayerAccountBalanceModal-6v7UUp8Y.js → PlayerAccountBalanceModal-C_1ozayG.js} +1 -1
  12. package/components/{PlayerAccountBalanceModal-BGcevrN3.js → PlayerAccountBalanceModal-CvQga8xI.js} +1 -1
  13. package/components/{PlayerDeposit-lioGwDAF.js → PlayerDeposit-BM-oAJ5K.js} +1 -1
  14. package/components/{PlayerDeposit-Be93fmoB.js → PlayerDeposit-D_GcGldR.js} +1 -1
  15. package/components/{PlayerDeposit-DdKIoAix.cjs → PlayerDeposit-jpTEnGbq.cjs} +1 -1
  16. package/es2015/casino-header-controller.cjs +1 -1
  17. package/es2015/casino-header-controller.js +1 -1
  18. package/esnext/casino-header-controller.js +1 -1
  19. package/package.json +1 -1
  20. package/stencil/{index-2ff63899-B-SHyDkB.js → index-2ff63899-Bmsl_n53.js} +1 -1
  21. package/stencil/{index-2ff63899-qt1Vej8s.cjs → index-2ff63899-Dbgz67H0.cjs} +1 -1
  22. package/stencil/{index-2ff63899-C4RDeFFL.js → index-2ff63899-M3OBLBOo.js} +1 -1
  23. package/stencil/{player-step-up-auth_2-CulwZtfL.js → player-step-up-auth_2-CTrT3eAX.js} +322 -313
  24. package/stencil/{player-step-up-auth_2--4edZ0-c.cjs → player-step-up-auth_2-CVz7ufDp.cjs} +5 -5
  25. package/stencil/{player-step-up-auth_2-C8kJebfy.js → player-step-up-auth_2-sIyE7PcU.js} +381 -370
  26. package/stencil/{user-deposit-withdrawal-DdykoVsb.cjs → user-deposit-withdrawal-CwSgIH1b.cjs} +1 -1
  27. package/stencil/user-deposit-withdrawal-Ds_hHXZo.js +25 -0
  28. package/stencil/{user-deposit-withdrawal-RlkaIhto.js → user-deposit-withdrawal-vUNB12t8.js} +4 -4
  29. package/stencil/user-deposit-withdrawal-HSAXua7b.js +0 -25
@@ -1,20 +1,20 @@
1
- var we = (e, t, i) => new Promise((n, h) => {
2
- var b = (E) => {
1
+ var ce = (e, t, i) => new Promise((n, h) => {
2
+ var S = (b) => {
3
3
  try {
4
- P(i.next(E));
5
- } catch (L) {
6
- h(L);
4
+ P(i.next(b));
5
+ } catch (x) {
6
+ h(x);
7
7
  }
8
- }, U = (E) => {
8
+ }, U = (b) => {
9
9
  try {
10
- P(i.throw(E));
11
- } catch (L) {
12
- h(L);
10
+ P(i.throw(b));
11
+ } catch (x) {
12
+ h(x);
13
13
  }
14
- }, P = (E) => E.done ? n(E.value) : Promise.resolve(E.value).then(b, U);
14
+ }, P = (b) => b.done ? n(b.value) : Promise.resolve(b.value).then(S, U);
15
15
  P((i = i.apply(e, t)).next());
16
16
  });
17
- import { r as Ke, h as p, F as We, g as ot, H as st } from "./index-2ff63899-C4RDeFFL.js";
17
+ import { r as Ze, h as p, F as We, g as ot, H as dt } from "./index-2ff63899-M3OBLBOo.js";
18
18
  const xe = "__WIDGET_GLOBAL_STYLE_CACHE__";
19
19
  function Ue(e, t) {
20
20
  if (e) {
@@ -33,42 +33,42 @@ function He(e, t) {
33
33
  console.error("There was an error while trying to load client styling from URL", n);
34
34
  });
35
35
  }
36
- function Ze(e, t, i, n = !1) {
36
+ function Qe(e, t, i, n = !1) {
37
37
  if (!window.emMessageBus)
38
38
  return;
39
39
  if (!("adoptedStyleSheets" in Document.prototype) || !n)
40
- return i = dt(e, t), i;
41
- window[xe] || (window[xe] = {}), i = lt(e, t);
42
- const b = i.unsubscribe.bind(i), U = () => {
40
+ return i = lt(e, t), i;
41
+ window[xe] || (window[xe] = {}), i = ut(e, t);
42
+ const S = i.unsubscribe.bind(i), U = () => {
43
43
  if (window[xe][t]) {
44
44
  const P = window[xe][t];
45
45
  P.refCount > 1 ? P.refCount = P.refCount - 1 : delete window[xe][t];
46
46
  }
47
- b();
47
+ S();
48
48
  };
49
49
  return i.unsubscribe = U, i;
50
50
  }
51
- function dt(e, t) {
51
+ function lt(e, t) {
52
52
  const i = document.createElement("style");
53
53
  return window.emMessageBus.subscribe(t, (n) => {
54
54
  e && (i.innerHTML = n, e.appendChild(i));
55
55
  });
56
56
  }
57
- function lt(e, t) {
57
+ function ut(e, t) {
58
58
  return window.emMessageBus.subscribe(t, (i) => {
59
59
  if (!e)
60
60
  return;
61
61
  const n = e.getRootNode(), h = window[xe];
62
- let b = h[t] && h[t].sheet;
63
- b ? h[t].refCount = h[t].refCount + 1 : (b = new CSSStyleSheet(), b.replaceSync(i), h[t] = {
64
- sheet: b,
62
+ let S = h[t] && h[t].sheet;
63
+ S ? h[t].refCount = h[t].refCount + 1 : (S = new CSSStyleSheet(), S.replaceSync(i), h[t] = {
64
+ sheet: S,
65
65
  refCount: 1
66
66
  });
67
67
  const U = n.adoptedStyleSheets || [];
68
- U.includes(b) || (n.adoptedStyleSheets = [...U, b]);
68
+ U.includes(S) || (n.adoptedStyleSheets = [...U, S]);
69
69
  });
70
70
  }
71
- const ut = "en", Qe = {
71
+ const ct = "en", Je = {
72
72
  en: {
73
73
  popupMessage: "Please enter the security code received on your email address to perform the update.",
74
74
  popupMessageLastWarning: "If the next validation attempt is failed, you will be logged out and blocked temporarily.",
@@ -289,13 +289,13 @@ const ut = "en", Qe = {
289
289
  fetch(e).then((i) => i.json()).then((i) => {
290
290
  Object.keys(i).forEach((n) => {
291
291
  for (let h in i[n])
292
- Qe[n][h] = i[n][h];
292
+ Je[n][h] = i[n][h];
293
293
  }), t(!0);
294
294
  });
295
- }), k = (e, t) => {
295
+ }), _ = (e, t) => {
296
296
  const i = t;
297
- return Qe[i !== void 0 ? i : ut][e];
298
- }, ct = ".OtpPopupOverlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--emw--color-overlay, rgba(0, 0, 0, 0.5));display:flex;align-items:center;justify-content:center}.OtpButton{font-family:var(--emw--button-typography);border:var(--emw--button-border, none);border-radius:var(--emw--button-border-radius, 3px);border-color:var(--emw--button-border-color);background-color:var(--emw--button-background-color, var(--emw--color-primary, #007bff));color:var(--emw--button-typography, var(--emw--color-white, #fff));padding:10px 20px;cursor:pointer;font-size:16px}.OtpButton.error{background:var(--emw--color-error, #dd3434)}.OtpPopupContent{position:relative;background:var(--emw--color-white, #fff);padding:20px;border-radius:5px;text-align:center;min-width:25%;min-height:200px;display:flex;flex-direction:column;justify-content:center;gap:20px}.OtpPopupContent .OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpPopupContent .OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px}.OtpPopupContent .OtpError h2{margin:0}.OtpPopupContent .OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpField{display:flex;justify-content:center}.OtpField input{width:24px;font-size:32px;padding:10px;text-align:center;border-radius:5px;margin:2px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:bold;outline:none;transition:all 0.1s}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{border:2px solid var(--emw--color-primary, #007bff);box-shadow:0 0 2px 2px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}.OtpSuccessOverlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(var(--emw--color-green-rgb, 255, 255, 255), 0.95);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;z-index:10}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}", ht = ct, pt = class {
297
+ return Je[i !== void 0 ? i : ct][e];
298
+ }, ht = ".OtpPopupOverlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--emw--color-overlay, rgba(0, 0, 0, 0.5));display:flex;align-items:center;justify-content:center}.OtpButton{font-family:var(--emw--button-typography);border:var(--emw--button-border, none);border-radius:var(--emw--button-border-radius, 3px);border-color:var(--emw--button-border-color);background-color:var(--emw--button-background-color, var(--emw--color-primary, #007bff));color:var(--emw--button-typography, var(--emw--color-white, #fff));padding:10px 20px;cursor:pointer;font-size:16px}.OtpButton.error{background:var(--emw--color-error, #dd3434)}.OtpPopupContent{position:relative;background:var(--emw--color-white, #fff);padding:20px;border-radius:5px;text-align:center;min-width:25%;min-height:200px;display:flex;flex-direction:column;justify-content:center;gap:20px}.OtpPopupContent .OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpPopupContent .OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px}.OtpPopupContent .OtpError h2{margin:0}.OtpPopupContent .OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpField{display:flex;justify-content:center}.OtpField input{width:24px;font-size:32px;padding:10px;text-align:center;border-radius:5px;margin:2px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:bold;outline:none;transition:all 0.1s}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{border:2px solid var(--emw--color-primary, #007bff);box-shadow:0 0 2px 2px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}.OtpSuccessOverlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(var(--emw--color-green-rgb, 255, 255, 255), 0.95);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;z-index:10}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}", pt = ht, ft = class {
299
299
  /**
300
300
  * Watch for changes in the translation URL and fetch new translations
301
301
  */
@@ -334,11 +334,11 @@ const ut = "en", Qe = {
334
334
  * }
335
335
  */
336
336
  handleStepUpAuthEvent(e) {
337
- return we(this, null, function* () {
337
+ return ce(this, null, function* () {
338
338
  var t;
339
339
  if (!((t = e.detail) === null || t === void 0) && t["x-step-up-required"]) {
340
340
  if (this.hasConfigErrors = !1, this.hasErrors = !1, this.errorMessage = "", this.showPopup = !0, this.token = e.detail["x-step-up-token"], this.flow = e.detail.flow, !this.token || !this.flow) {
341
- this.isLoading = !1, this.hasConfigErrors = !0, this.errorMessage = k("configError", this.language);
341
+ this.isLoading = !1, this.hasConfigErrors = !0, this.errorMessage = _("configError", this.language);
342
342
  return;
343
343
  }
344
344
  yield this.getConfig();
@@ -355,7 +355,7 @@ const ut = "en", Qe = {
355
355
  * Class constructor
356
356
  */
357
357
  constructor(e) {
358
- Ke(this, e), this.otpInputs = [], this.countdownTimer = null, this.expirationTimestamp = 0, this.mbSource = void 0, this.clientStyling = void 0, this.clientStylingUrl = void 0, this.language = "en", this.endpoint = void 0, this.userSession = void 0, this.translationUrl = "", this.mode = "numeric", this.showPopup = !1, this.otp = void 0, this.isLoading = !0, this.config = null, this.timeLeft = 0, this.expirationTime = "", this.serverTime = "", this.hasErrors = !1, this.hasConfigErrors = !1, this.errorMessage = "", this.token = "", this.flow = "", this.showResendOtp = !1, this.isLastWarning = !1, this.inputDisabled = !1, this.isValidating = !1, this.isSuccess = !1, this.shakeError = !1, this.handleResendOtp = this.handleResendOtp.bind(this), this.submitOtp = this.submitOtp.bind(this), this.handleCloseWidget = this.handleCloseWidget.bind(this), this.manualClosePopup = this.manualClosePopup.bind(this);
358
+ Ze(this, e), this.otpInputs = [], this.countdownTimer = null, this.expirationTimestamp = 0, this.mbSource = void 0, this.clientStyling = void 0, this.clientStylingUrl = void 0, this.language = "en", this.endpoint = void 0, this.userSession = void 0, this.translationUrl = "", this.mode = "numeric", this.showPopup = !1, this.otp = void 0, this.isLoading = !0, this.config = null, this.timeLeft = 0, this.expirationTime = "", this.serverTime = "", this.hasErrors = !1, this.hasConfigErrors = !1, this.errorMessage = "", this.token = "", this.flow = "", this.showResendOtp = !1, this.isLastWarning = !1, this.inputDisabled = !1, this.isValidating = !1, this.isSuccess = !1, this.shakeError = !1, this.handleResendOtp = this.handleResendOtp.bind(this), this.submitOtp = this.submitOtp.bind(this), this.handleCloseWidget = this.handleCloseWidget.bind(this), this.manualClosePopup = this.manualClosePopup.bind(this);
359
359
  }
360
360
  /**
361
361
  * Fetches OTP configuration from the endpoint.
@@ -363,14 +363,14 @@ const ut = "en", Qe = {
363
363
  * Handles specific errors like max attempts exceeded by closing the widget.
364
364
  */
365
365
  getConfig() {
366
- return we(this, null, function* () {
366
+ return ce(this, null, function* () {
367
367
  if (this.endpoint)
368
368
  try {
369
369
  const e = new URL(`/api/v1/mfa/challenge/${this.token}/config`, this.endpoint);
370
370
  this.isLoading = !0;
371
371
  const t = yield fetch(e.href), i = yield t.json();
372
372
  if (t.ok)
373
- this.config = i, this.otp = Array(this.config.inputLength).fill(""), this.isLoading = !1, this.isValidating = !1, this.showResendOtp = !1, this.expirationTime = this.config.expirationTime, this.serverTime = this.config.serverTime, this.config.numberOfValidateAttempts !== 0 && (this.hasErrors = !0, this.errorMessage = k("invalidOtp", this.language)), this.config.numberOfValidateAttempts === this.config.maxValidationAttempts - 1 && (this.isLastWarning = !0), this.calculateTimeLeft(), this.startCountdown();
373
+ this.config = i, this.otp = Array(this.config.inputLength).fill(""), this.isLoading = !1, this.isValidating = !1, this.showResendOtp = !1, this.expirationTime = this.config.expirationTime, this.serverTime = this.config.serverTime, this.config.numberOfValidateAttempts !== 0 && (this.hasErrors = !0, this.errorMessage = _("invalidOtp", this.language)), this.config.numberOfValidateAttempts === this.config.maxValidationAttempts - 1 && (this.isLastWarning = !0), this.calculateTimeLeft(), this.startCountdown();
374
374
  else if (i && i.details === "gm.twofa.token_max_attempts_exceeded")
375
375
  this.handleCloseWidget();
376
376
  else {
@@ -378,7 +378,7 @@ const ut = "en", Qe = {
378
378
  throw new Error(n);
379
379
  }
380
380
  } catch (e) {
381
- this.isLoading = !1, this.isValidating = !1, this.hasConfigErrors = !0, this.errorMessage = k("configError", this.language), console.error("Error loading 2FA config:", e);
381
+ this.isLoading = !1, this.isValidating = !1, this.hasConfigErrors = !0, this.errorMessage = _("configError", this.language), console.error("Error loading 2FA config:", e);
382
382
  }
383
383
  });
384
384
  }
@@ -389,8 +389,8 @@ const ut = "en", Qe = {
389
389
  calculateTimeLeft() {
390
390
  const e = new Date(this.expirationTime), t = new Date(this.serverTime), i = /* @__PURE__ */ new Date(), n = t.getTime() - i.getTime();
391
391
  this.expirationTimestamp = e.getTime() - n;
392
- const h = Date.now(), b = Math.max(0, Math.floor((this.expirationTimestamp - h) / 1e3));
393
- this.timeLeft = b;
392
+ const h = Date.now(), S = Math.max(0, Math.floor((this.expirationTimestamp - h) / 1e3));
393
+ this.timeLeft = S;
394
394
  }
395
395
  /**
396
396
  * Starts a 1-second interval countdown for OTP expiration.
@@ -440,8 +440,8 @@ const ut = "en", Qe = {
440
440
  handleOnPasteOtp(e) {
441
441
  var t, i, n;
442
442
  e.preventDefault();
443
- const b = (((i = (t = e.clipboardData) === null || t === void 0 ? void 0 : t.getData("text")) === null || i === void 0 ? void 0 : i.trim()) || "").slice(0, this.config.inputLength).split("");
444
- this.otp = [...b, ...Array(this.config.inputLength - b.length).fill("")], (n = this.otpInputs[b.length]) === null || n === void 0 || n.focus(), b.length === this.config.inputLength && this.submitOtp();
443
+ const S = (((i = (t = e.clipboardData) === null || t === void 0 ? void 0 : t.getData("text")) === null || i === void 0 ? void 0 : i.trim()) || "").slice(0, this.config.inputLength).split("");
444
+ this.otp = [...S, ...Array(this.config.inputLength - S.length).fill("")], (n = this.otpInputs[S.length]) === null || n === void 0 || n.focus(), S.length === this.config.inputLength && this.submitOtp();
445
445
  }
446
446
  /**
447
447
  * Handles OTP input changes.
@@ -492,13 +492,13 @@ const ut = "en", Qe = {
492
492
  * Sends a request to the endpoint with the OTP and handles the response.
493
493
  */
494
494
  submitOtp() {
495
- return we(this, null, function* () {
495
+ return ce(this, null, function* () {
496
496
  if (this.otp.join("").length !== this.config.inputLength) {
497
- this.hasErrors = !0, this.errorMessage = k("invalidOtp", this.language), this.triggerShakeAnimation();
497
+ this.hasErrors = !0, this.errorMessage = _("invalidOtp", this.language), this.triggerShakeAnimation();
498
498
  return;
499
499
  }
500
500
  if (this.timeLeft <= 0) {
501
- this.hasErrors = !0, this.errorMessage = k("otpExpiredMessage", this.language), this.triggerShakeAnimation(), yield this.getConfig();
501
+ this.hasErrors = !0, this.errorMessage = _("otpExpiredMessage", this.language), this.triggerShakeAnimation(), yield this.getConfig();
502
502
  return;
503
503
  }
504
504
  this.isLoading = !0, this.isValidating = !0, this.hasErrors = !1, this.errorMessage = "";
@@ -527,7 +527,7 @@ const ut = "en", Qe = {
527
527
  * @param otpValue - Otp code.
528
528
  */
529
529
  handleOtpStateful(e) {
530
- return we(this, null, function* () {
530
+ return ce(this, null, function* () {
531
531
  const t = new URL(`/api/v1/mfa/challenge/${this.token}/validate`, this.endpoint);
532
532
  t.searchParams.append("input", e);
533
533
  try {
@@ -538,7 +538,7 @@ const ut = "en", Qe = {
538
538
  }
539
539
  const h = (yield i.json()).message || "";
540
540
  if (h.toLowerCase().includes("expired")) {
541
- this.hasErrors = !0, this.errorMessage = k("otpExpiredMessage", this.language), this.triggerShakeAnimation(), yield this.getConfig();
541
+ this.hasErrors = !0, this.errorMessage = _("otpExpiredMessage", this.language), this.triggerShakeAnimation(), yield this.getConfig();
542
542
  return;
543
543
  }
544
544
  throw new Error(h);
@@ -549,15 +549,15 @@ const ut = "en", Qe = {
549
549
  type: "WidgetNotification",
550
550
  data: {
551
551
  type: "error",
552
- message: k("accountBlocked", this.language)
552
+ message: _("accountBlocked", this.language)
553
553
  }
554
554
  }, window.location.href), this.handleCloseWidget();
555
555
  return;
556
556
  }
557
- this.hasErrors = !0, this.errorMessage = k("invalidOtp", this.language), this.triggerShakeAnimation(), this.getConfig();
557
+ this.hasErrors = !0, this.errorMessage = _("invalidOtp", this.language), this.triggerShakeAnimation(), this.getConfig();
558
558
  return;
559
559
  }
560
- console.error("OTP submission failed:", i), this.hasErrors = !0, this.errorMessage = k("submissionError", this.language), this.triggerShakeAnimation();
560
+ console.error("OTP submission failed:", i), this.hasErrors = !0, this.errorMessage = _("submissionError", this.language), this.triggerShakeAnimation();
561
561
  } finally {
562
562
  this.isLoading = !1, this.isValidating = !1;
563
563
  }
@@ -568,7 +568,7 @@ const ut = "en", Qe = {
568
568
  * Closes the popup upon successful authentication.
569
569
  */
570
570
  handleSuccess() {
571
- return we(this, null, function* () {
571
+ return ce(this, null, function* () {
572
572
  this.isSuccess = !0, yield new Promise((e) => setTimeout(e, 1200)), window.dispatchEvent(new CustomEvent("otpSuccess", {
573
573
  detail: { message: "User successfully authenticated" }
574
574
  })), this.handleCloseWidget();
@@ -599,7 +599,7 @@ const ut = "en", Qe = {
599
599
  * Lifecycle method: Fetch translations on component load
600
600
  */
601
601
  componentWillLoad() {
602
- return we(this, null, function* () {
602
+ return ce(this, null, function* () {
603
603
  this.translationUrl.length > 2 && (yield Ye(this.translationUrl));
604
604
  });
605
605
  }
@@ -607,17 +607,17 @@ const ut = "en", Qe = {
607
607
  * Lifecycle method: Set up event listeners after the component is rendered
608
608
  */
609
609
  componentDidLoad() {
610
- this.stylingContainer && (window.emMessageBuss != null ? Ze(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling && Ue(this.stylingContainer, this.clientStyling), this.clientStylingUrl && He(this.stylingContainer, this.clientStylingUrl)));
610
+ this.stylingContainer && (window.emMessageBuss != null ? Qe(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling && Ue(this.stylingContainer, this.clientStyling), this.clientStylingUrl && He(this.stylingContainer, this.clientStylingUrl)));
611
611
  }
612
612
  /**
613
613
  * Renders the OTP authentication component.
614
614
  * Displays the OTP popup, input fields, timer, and action buttons.
615
615
  */
616
616
  render() {
617
- return p("div", { key: "fda28b7364d091f4a13bfea34e5687756cb00b39", ref: (e) => this.stylingContainer = e }, this.showPopup && p("div", { key: "0166357e829d1f6bc35b88ce1605ca72a691f447", class: "OtpPopupOverlay" }, p("div", { key: "4c616fdeb7d5624a972865e93b0e84778e668995", class: `OtpPopupContent ${this.shakeError ? "shake" : ""}` }, this.isLoading ? p("div", { class: "OtpLoaderContainer" }, p("span", { class: "OtpLoader" })) : this.hasConfigErrors ? p("div", { class: "OtpError" }, p("div", { class: "OtpErrorHeader" }, p("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, p("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z" })), p("h2", null, k("errorHeader", this.language))), p("p", null, this.errorMessage), p("button", { class: "OtpButton error", onClick: this.manualClosePopup, "aria-label": k("close", this.language) }, k("close", this.language))) : p(We, null, p("div", { class: "otp-description" }, this.showResendOtp ? p("p", { class: "OtpNoticeMessage", role: "alert" }, k("otpExpiredMessage", this.language)) : p(We, null, p("p", { class: this.isLastWarning ? "LastWarningMessage" : "" }, k(this.isLastWarning ? "popupMessageLastWarning" : "popupMessage", this.language)), this.hasErrors && p("p", { class: "OtpErrorMessage", role: "alert" }, this.errorMessage))), p("div", { class: "OtpFieldWrapper" }, p("h2", null, k("otpHeading", this.language)), p("div", { class: "OtpField" }, this.otp.map((e, t) => {
617
+ return p("div", { key: "fda28b7364d091f4a13bfea34e5687756cb00b39", ref: (e) => this.stylingContainer = e }, this.showPopup && p("div", { key: "0166357e829d1f6bc35b88ce1605ca72a691f447", class: "OtpPopupOverlay" }, p("div", { key: "4c616fdeb7d5624a972865e93b0e84778e668995", class: `OtpPopupContent ${this.shakeError ? "shake" : ""}` }, this.isLoading ? p("div", { class: "OtpLoaderContainer" }, p("span", { class: "OtpLoader" })) : this.hasConfigErrors ? p("div", { class: "OtpError" }, p("div", { class: "OtpErrorHeader" }, p("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, p("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z" })), p("h2", null, _("errorHeader", this.language))), p("p", null, this.errorMessage), p("button", { class: "OtpButton error", onClick: this.manualClosePopup, "aria-label": _("close", this.language) }, _("close", this.language))) : p(We, null, p("div", { class: "otp-description" }, this.showResendOtp ? p("p", { class: "OtpNoticeMessage", role: "alert" }, _("otpExpiredMessage", this.language)) : p(We, null, p("p", { class: this.isLastWarning ? "LastWarningMessage" : "" }, _(this.isLastWarning ? "popupMessageLastWarning" : "popupMessage", this.language)), this.hasErrors && p("p", { class: "OtpErrorMessage", role: "alert" }, this.errorMessage))), p("div", { class: "OtpFieldWrapper" }, p("h2", null, _("otpHeading", this.language)), p("div", { class: "OtpField" }, this.otp.map((e, t) => {
618
618
  const i = this.config.inputLength % 2 === 0 && t === this.config.inputLength / 2 - 1;
619
- return p("input", { key: t, ref: (n) => this.setOtpInputRef(n, t), id: `otp-input-${t}`, type: "text", inputmode: this.mode, pattern: this.mode === "numeric" ? "[0-9]" : void 0, class: `otp-box ${i ? "space" : ""} ${e ? "filled" : ""} ${this.hasErrors ? "error" : ""}`, maxLength: 1, value: e, onInput: (n) => this.handleOtpInput(n, t), onKeyDown: (n) => this.handleKeyDown(n, t), onPaste: (n) => this.handleOnPasteOtp(n), disabled: this.inputDisabled, autoComplete: "off", "aria-label": `${k("otpDigit", this.language)} ${t + 1}`, "aria-invalid": this.hasErrors });
620
- })), p("div", { class: "OtpTimerContainer" }, p("div", { class: `OtpTimer ${this.isLastWarning ? "warning" : ""} ${this.timeLeft < 60 ? "critical" : ""}`, role: "timer", "aria-live": "polite" }, p("svg", { class: "timer-icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, p("path", { d: "M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z" })), p("span", { class: "timer-text" }, this.formatTime(this.timeLeft), " ", k("minutes", this.language))))), this.isSuccess && p("div", { class: "OtpSuccessOverlay" }, p("svg", { class: "success-icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, p("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" })), p("span", null, k("otpVerified", this.language))), p("div", { class: "OtpActionButtons" }, this.showResendOtp ? p("button", { class: "OtpButton primary", onClick: this.handleResendOtp, disabled: this.isLoading, "aria-label": k("resendOtp", this.language) }, k("resendOtp", this.language)) : p("button", { class: `OtpButton primary ${this.isValidating ? "loading" : ""}`, onClick: this.submitOtp, disabled: this.otp.join("").length !== this.config.inputLength || this.isValidating || this.isLoading, "aria-label": k("submit", this.language), "aria-busy": this.isValidating }, this.isValidating ? p(We, null, p("span", { class: "button-spinner" }), p("span", { class: "button-text" }, k("verifying", this.language))) : p("span", { class: "button-text" }, k("submit", this.language))), p("button", { class: "OtpButton secondary", onClick: this.manualClosePopup, disabled: this.isValidating, "aria-label": k("close", this.language) }, k("close", this.language)))))));
619
+ return p("input", { key: t, ref: (n) => this.setOtpInputRef(n, t), id: `otp-input-${t}`, type: "text", inputmode: this.mode, pattern: this.mode === "numeric" ? "[0-9]" : void 0, class: `otp-box ${i ? "space" : ""} ${e ? "filled" : ""} ${this.hasErrors ? "error" : ""}`, maxLength: 1, value: e, onInput: (n) => this.handleOtpInput(n, t), onKeyDown: (n) => this.handleKeyDown(n, t), onPaste: (n) => this.handleOnPasteOtp(n), disabled: this.inputDisabled, autoComplete: "off", "aria-label": `${_("otpDigit", this.language)} ${t + 1}`, "aria-invalid": this.hasErrors });
620
+ })), p("div", { class: "OtpTimerContainer" }, p("div", { class: `OtpTimer ${this.isLastWarning ? "warning" : ""} ${this.timeLeft < 60 ? "critical" : ""}`, role: "timer", "aria-live": "polite" }, p("svg", { class: "timer-icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, p("path", { d: "M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z" })), p("span", { class: "timer-text" }, this.formatTime(this.timeLeft), " ", _("minutes", this.language))))), this.isSuccess && p("div", { class: "OtpSuccessOverlay" }, p("svg", { class: "success-icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, p("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" })), p("span", null, _("otpVerified", this.language))), p("div", { class: "OtpActionButtons" }, this.showResendOtp ? p("button", { class: "OtpButton primary", onClick: this.handleResendOtp, disabled: this.isLoading, "aria-label": _("resendOtp", this.language) }, _("resendOtp", this.language)) : p("button", { class: `OtpButton primary ${this.isValidating ? "loading" : ""}`, onClick: this.submitOtp, disabled: this.otp.join("").length !== this.config.inputLength || this.isValidating || this.isLoading, "aria-label": _("submit", this.language), "aria-busy": this.isValidating }, this.isValidating ? p(We, null, p("span", { class: "button-spinner" }), p("span", { class: "button-text" }, _("verifying", this.language))) : p("span", { class: "button-text" }, _("submit", this.language))), p("button", { class: "OtpButton secondary", onClick: this.manualClosePopup, disabled: this.isValidating, "aria-label": _("close", this.language) }, _("close", this.language)))))));
621
621
  }
622
622
  get el() {
623
623
  return ot(this);
@@ -630,8 +630,8 @@ const ut = "en", Qe = {
630
630
  };
631
631
  }
632
632
  };
633
- pt.style = ht;
634
- const ft = "en", gt = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es", "de", "pt", "tr"], Je = {
633
+ ft.style = pt;
634
+ const gt = "en", mt = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es", "de", "pt", "tr"], et = {
635
635
  en: {
636
636
  Deposit: "Deposit",
637
637
  Withdraw: "Withdraw",
@@ -703,6 +703,7 @@ const ft = "en", gt = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es",
703
703
  denyDeposit: "Informamos que atualmente não tem permissão para iniciar transações de depósito.",
704
704
  denyWithdrawal: "Informamos que atualmente não tem permissão para iniciar transações de levantamento.",
705
705
  notFoundErrorCode: "Código de erro não encontrado",
706
+ errorCode21121: "Caro jogador! Informamos que de momento só pode iniciar transações de levantamento na sua conta. Código de erro: 21121",
706
707
  errorCode21122: "Caro jogador! Informamos que atualmente não tem permissão para iniciar uma transação de levantamento na sua conta de jogador. Código de erro: 21122",
707
708
  errorCode21123: "Caro jogador! Informamos que atualmente não tem permissão para realizar um depósito na sua conta de jogador. Código de erro: 21123"
708
709
  },
@@ -733,97 +734,97 @@ const ft = "en", gt = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es",
733
734
  errorCode21122: "Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınızdan para çekme işlemi başlatamayacağınızı bilgilerinize sunarız. Hata Kodu: 21122",
734
735
  errorCode21123: "Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınıza para yatırma işlemi yapamayacağınızı bilgilerinize sunarız. Hata Kodu: 21123"
735
736
  }
736
- }, mt = (e) => new Promise((t) => {
737
+ }, Ge = (e) => new Promise((t) => {
737
738
  fetch(e).then((i) => i.json()).then((i) => {
738
739
  Object.keys(i).forEach((n) => {
739
740
  for (let h in i[n])
740
- Je[n][h] = i[n][h];
741
+ et[n][h] = i[n][h];
741
742
  }), t(!0);
742
743
  });
743
- }), Ce = (e, t) => {
744
+ }), we = (e, t) => {
744
745
  const i = t;
745
- return Je[i !== void 0 && gt.includes(i) ? i : ft][e];
746
+ return et[i !== void 0 && mt.includes(i) ? i : gt][e];
746
747
  }, vt = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), yt = (e) => {
747
748
  if (!e || typeof e != "string")
748
749
  return !1;
749
750
  const t = e.toLowerCase();
750
751
  return t.includes("voucher") || t.includes("offline");
751
752
  };
752
- var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, et = { exports: {} };
753
+ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, tt = { exports: {} };
753
754
  (function(e, t) {
754
755
  (function(i, n) {
755
756
  e.exports = n();
756
757
  })(Ve, function() {
757
- var i = 1e3, n = 6e4, h = 36e5, b = "millisecond", U = "second", P = "minute", E = "hour", L = "day", Se = "week", W = "month", Te = "quarter", q = "year", re = "date", v = "Invalid Date", Y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ue = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, ce = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(g) {
758
+ var i = 1e3, n = 6e4, h = 36e5, S = "millisecond", U = "second", P = "minute", b = "hour", x = "day", Ee = "week", W = "month", Te = "quarter", q = "year", re = "date", v = "Invalid Date", Y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ue = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, he = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(g) {
758
759
  var l = ["th", "st", "nd", "rd"], a = g % 100;
759
760
  return "[" + g + (l[(a - 20) % 10] || l[a] || l[0]) + "]";
760
- } }, x = function(g, l, a) {
761
+ } }, R = function(g, l, a) {
761
762
  var u = String(g);
762
763
  return !u || u.length >= l ? g : "" + Array(l + 1 - u.length).join(a) + g;
763
- }, ie = { s: x, z: function(g) {
764
- var l = -g.utcOffset(), a = Math.abs(l), u = Math.floor(a / 60), s = a % 60;
765
- return (l <= 0 ? "+" : "-") + x(u, 2, "0") + ":" + x(s, 2, "0");
764
+ }, ie = { s: R, z: function(g) {
765
+ var l = -g.utcOffset(), a = Math.abs(l), u = Math.floor(a / 60), o = a % 60;
766
+ return (l <= 0 ? "+" : "-") + R(u, 2, "0") + ":" + R(o, 2, "0");
766
767
  }, m: function g(l, a) {
767
768
  if (l.date() < a.date())
768
769
  return -g(a, l);
769
- var u = 12 * (a.year() - l.year()) + (a.month() - l.month()), s = l.clone().add(u, W), m = a - s < 0, y = l.clone().add(u + (m ? -1 : 1), W);
770
- return +(-(u + (a - s) / (m ? s - y : y - s)) || 0);
770
+ var u = 12 * (a.year() - l.year()) + (a.month() - l.month()), o = l.clone().add(u, W), m = a - o < 0, y = l.clone().add(u + (m ? -1 : 1), W);
771
+ return +(-(u + (a - o) / (m ? o - y : y - o)) || 0);
771
772
  }, a: function(g) {
772
773
  return g < 0 ? Math.ceil(g) || 0 : Math.floor(g);
773
774
  }, p: function(g) {
774
- return { M: W, y: q, w: Se, d: L, D: re, h: E, m: P, s: U, ms: b, Q: Te }[g] || String(g || "").toLowerCase().replace(/s$/, "");
775
+ return { M: W, y: q, w: Ee, d: x, D: re, h: b, m: P, s: U, ms: S, Q: Te }[g] || String(g || "").toLowerCase().replace(/s$/, "");
775
776
  }, u: function(g) {
776
777
  return g === void 0;
777
778
  } }, ne = "en", Q = {};
778
- Q[ne] = ce;
779
- var he = "$isDayjsObject", Ee = function(g) {
780
- return g instanceof oe || !(!g || !g[he]);
779
+ Q[ne] = he;
780
+ var pe = "$isDayjsObject", be = function(g) {
781
+ return g instanceof se || !(!g || !g[pe]);
781
782
  }, ae = function g(l, a, u) {
782
- var s;
783
+ var o;
783
784
  if (!l)
784
785
  return ne;
785
786
  if (typeof l == "string") {
786
787
  var m = l.toLowerCase();
787
- Q[m] && (s = m), a && (Q[m] = a, s = m);
788
+ Q[m] && (o = m), a && (Q[m] = a, o = m);
788
789
  var y = l.split("-");
789
- if (!s && y.length > 1)
790
+ if (!o && y.length > 1)
790
791
  return g(y[0]);
791
792
  } else {
792
793
  var T = l.name;
793
- Q[T] = l, s = T;
794
+ Q[T] = l, o = T;
794
795
  }
795
- return !u && s && (ne = s), s || !u && ne;
796
- }, _ = function(g, l) {
797
- if (Ee(g))
796
+ return !u && o && (ne = o), o || !u && ne;
797
+ }, L = function(g, l) {
798
+ if (be(g))
798
799
  return g.clone();
799
800
  var a = typeof l == "object" ? l : {};
800
- return a.date = g, a.args = arguments, new oe(a);
801
+ return a.date = g, a.args = arguments, new se(a);
801
802
  }, M = ie;
802
- M.l = ae, M.i = Ee, M.w = function(g, l) {
803
- return _(g, { locale: l.$L, utc: l.$u, x: l.$x, $offset: l.$offset });
803
+ M.l = ae, M.i = be, M.w = function(g, l) {
804
+ return L(g, { locale: l.$L, utc: l.$u, x: l.$x, $offset: l.$offset });
804
805
  };
805
- var oe = function() {
806
+ var se = function() {
806
807
  function g(a) {
807
- this.$L = ae(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[he] = !0;
808
+ this.$L = ae(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[pe] = !0;
808
809
  }
809
810
  var l = g.prototype;
810
811
  return l.parse = function(a) {
811
812
  this.$d = function(u) {
812
- var s = u.date, m = u.utc;
813
- if (s === null)
813
+ var o = u.date, m = u.utc;
814
+ if (o === null)
814
815
  return /* @__PURE__ */ new Date(NaN);
815
- if (M.u(s))
816
+ if (M.u(o))
816
817
  return /* @__PURE__ */ new Date();
817
- if (s instanceof Date)
818
- return new Date(s);
819
- if (typeof s == "string" && !/Z$/i.test(s)) {
820
- var y = s.match(Y);
818
+ if (o instanceof Date)
819
+ return new Date(o);
820
+ if (typeof o == "string" && !/Z$/i.test(o)) {
821
+ var y = o.match(Y);
821
822
  if (y) {
822
- var T = y[2] - 1 || 0, R = (y[7] || "0").substring(0, 3);
823
- return m ? new Date(Date.UTC(y[1], T, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, R)) : new Date(y[1], T, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, R);
823
+ var T = y[2] - 1 || 0, k = (y[7] || "0").substring(0, 3);
824
+ return m ? new Date(Date.UTC(y[1], T, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, k)) : new Date(y[1], T, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, k);
824
825
  }
825
826
  }
826
- return new Date(s);
827
+ return new Date(o);
827
828
  }(a), this.init();
828
829
  }, l.init = function() {
829
830
  var a = this.$d;
@@ -833,92 +834,92 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
833
834
  }, l.isValid = function() {
834
835
  return this.$d.toString() !== v;
835
836
  }, l.isSame = function(a, u) {
836
- var s = _(a);
837
- return this.startOf(u) <= s && s <= this.endOf(u);
837
+ var o = L(a);
838
+ return this.startOf(u) <= o && o <= this.endOf(u);
838
839
  }, l.isAfter = function(a, u) {
839
- return _(a) < this.startOf(u);
840
+ return L(a) < this.startOf(u);
840
841
  }, l.isBefore = function(a, u) {
841
- return this.endOf(u) < _(a);
842
- }, l.$g = function(a, u, s) {
843
- return M.u(a) ? this[u] : this.set(s, a);
842
+ return this.endOf(u) < L(a);
843
+ }, l.$g = function(a, u, o) {
844
+ return M.u(a) ? this[u] : this.set(o, a);
844
845
  }, l.unix = function() {
845
846
  return Math.floor(this.valueOf() / 1e3);
846
847
  }, l.valueOf = function() {
847
848
  return this.$d.getTime();
848
849
  }, l.startOf = function(a, u) {
849
- var s = this, m = !!M.u(u) || u, y = M.p(a), T = function(se, j) {
850
- var z = M.w(s.$u ? Date.UTC(s.$y, j, se) : new Date(s.$y, j, se), s);
851
- return m ? z : z.endOf(L);
852
- }, R = function(se, j) {
853
- return M.w(s.toDate()[se].apply(s.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(j)), s);
854
- }, H = this.$W, N = this.$M, Z = this.$D, be = "set" + (this.$u ? "UTC" : "");
850
+ var o = this, m = !!M.u(u) || u, y = M.p(a), T = function(oe, j) {
851
+ var F = M.w(o.$u ? Date.UTC(o.$y, j, oe) : new Date(o.$y, j, oe), o);
852
+ return m ? F : F.endOf(x);
853
+ }, k = function(oe, j) {
854
+ return M.w(o.toDate()[oe].apply(o.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(j)), o);
855
+ }, H = this.$W, N = this.$M, Z = this.$D, Ce = "set" + (this.$u ? "UTC" : "");
855
856
  switch (y) {
856
857
  case q:
857
858
  return m ? T(1, 0) : T(31, 11);
858
859
  case W:
859
860
  return m ? T(1, N) : T(0, N + 1);
860
- case Se:
861
- var pe = this.$locale().weekStart || 0, fe = (H < pe ? H + 7 : H) - pe;
862
- return T(m ? Z - fe : Z + (6 - fe), N);
863
- case L:
861
+ case Ee:
862
+ var fe = this.$locale().weekStart || 0, ge = (H < fe ? H + 7 : H) - fe;
863
+ return T(m ? Z - ge : Z + (6 - ge), N);
864
+ case x:
864
865
  case re:
865
- return R(be + "Hours", 0);
866
- case E:
867
- return R(be + "Minutes", 1);
866
+ return k(Ce + "Hours", 0);
867
+ case b:
868
+ return k(Ce + "Minutes", 1);
868
869
  case P:
869
- return R(be + "Seconds", 2);
870
+ return k(Ce + "Seconds", 2);
870
871
  case U:
871
- return R(be + "Milliseconds", 3);
872
+ return k(Ce + "Milliseconds", 3);
872
873
  default:
873
874
  return this.clone();
874
875
  }
875
876
  }, l.endOf = function(a) {
876
877
  return this.startOf(a, !1);
877
878
  }, l.$set = function(a, u) {
878
- var s, m = M.p(a), y = "set" + (this.$u ? "UTC" : ""), T = (s = {}, s[L] = y + "Date", s[re] = y + "Date", s[W] = y + "Month", s[q] = y + "FullYear", s[E] = y + "Hours", s[P] = y + "Minutes", s[U] = y + "Seconds", s[b] = y + "Milliseconds", s)[m], R = m === L ? this.$D + (u - this.$W) : u;
879
+ var o, m = M.p(a), y = "set" + (this.$u ? "UTC" : ""), T = (o = {}, o[x] = y + "Date", o[re] = y + "Date", o[W] = y + "Month", o[q] = y + "FullYear", o[b] = y + "Hours", o[P] = y + "Minutes", o[U] = y + "Seconds", o[S] = y + "Milliseconds", o)[m], k = m === x ? this.$D + (u - this.$W) : u;
879
880
  if (m === W || m === q) {
880
881
  var H = this.clone().set(re, 1);
881
- H.$d[T](R), H.init(), this.$d = H.set(re, Math.min(this.$D, H.daysInMonth())).$d;
882
+ H.$d[T](k), H.init(), this.$d = H.set(re, Math.min(this.$D, H.daysInMonth())).$d;
882
883
  } else
883
- T && this.$d[T](R);
884
+ T && this.$d[T](k);
884
885
  return this.init(), this;
885
886
  }, l.set = function(a, u) {
886
887
  return this.clone().$set(a, u);
887
888
  }, l.get = function(a) {
888
889
  return this[M.p(a)]();
889
890
  }, l.add = function(a, u) {
890
- var s, m = this;
891
+ var o, m = this;
891
892
  a = Number(a);
892
893
  var y = M.p(u), T = function(N) {
893
- var Z = _(m);
894
+ var Z = L(m);
894
895
  return M.w(Z.date(Z.date() + Math.round(N * a)), m);
895
896
  };
896
897
  if (y === W)
897
898
  return this.set(W, this.$M + a);
898
899
  if (y === q)
899
900
  return this.set(q, this.$y + a);
900
- if (y === L)
901
+ if (y === x)
901
902
  return T(1);
902
- if (y === Se)
903
+ if (y === Ee)
903
904
  return T(7);
904
- var R = (s = {}, s[P] = n, s[E] = h, s[U] = i, s)[y] || 1, H = this.$d.getTime() + a * R;
905
+ var k = (o = {}, o[P] = n, o[b] = h, o[U] = i, o)[y] || 1, H = this.$d.getTime() + a * k;
905
906
  return M.w(H, this);
906
907
  }, l.subtract = function(a, u) {
907
908
  return this.add(-1 * a, u);
908
909
  }, l.format = function(a) {
909
- var u = this, s = this.$locale();
910
+ var u = this, o = this.$locale();
910
911
  if (!this.isValid())
911
- return s.invalidDate || v;
912
- var m = a || "YYYY-MM-DDTHH:mm:ssZ", y = M.z(this), T = this.$H, R = this.$m, H = this.$M, N = s.weekdays, Z = s.months, be = s.meridiem, pe = function(j, z, Oe, De) {
913
- return j && (j[z] || j(u, m)) || Oe[z].slice(0, De);
914
- }, fe = function(j) {
912
+ return o.invalidDate || v;
913
+ var m = a || "YYYY-MM-DDTHH:mm:ssZ", y = M.z(this), T = this.$H, k = this.$m, H = this.$M, N = o.weekdays, Z = o.months, Ce = o.meridiem, fe = function(j, F, Oe, De) {
914
+ return j && (j[F] || j(u, m)) || Oe[F].slice(0, De);
915
+ }, ge = function(j) {
915
916
  return M.s(T % 12 || 12, j, "0");
916
- }, se = be || function(j, z, Oe) {
917
+ }, oe = Ce || function(j, F, Oe) {
917
918
  var De = j < 12 ? "AM" : "PM";
918
919
  return Oe ? De.toLowerCase() : De;
919
920
  };
920
- return m.replace(ue, function(j, z) {
921
- return z || function(Oe) {
921
+ return m.replace(ue, function(j, F) {
922
+ return F || function(Oe) {
922
923
  switch (Oe) {
923
924
  case "YY":
924
925
  return String(u.$y).slice(-2);
@@ -929,9 +930,9 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
929
930
  case "MM":
930
931
  return M.s(H + 1, 2, "0");
931
932
  case "MMM":
932
- return pe(s.monthsShort, H, Z, 3);
933
+ return fe(o.monthsShort, H, Z, 3);
933
934
  case "MMMM":
934
- return pe(Z, H);
935
+ return fe(Z, H);
935
936
  case "D":
936
937
  return u.$D;
937
938
  case "DD":
@@ -939,9 +940,9 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
939
940
  case "d":
940
941
  return String(u.$W);
941
942
  case "dd":
942
- return pe(s.weekdaysMin, u.$W, N, 2);
943
+ return fe(o.weekdaysMin, u.$W, N, 2);
943
944
  case "ddd":
944
- return pe(s.weekdaysShort, u.$W, N, 3);
945
+ return fe(o.weekdaysShort, u.$W, N, 3);
945
946
  case "dddd":
946
947
  return N[u.$W];
947
948
  case "H":
@@ -949,17 +950,17 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
949
950
  case "HH":
950
951
  return M.s(T, 2, "0");
951
952
  case "h":
952
- return fe(1);
953
+ return ge(1);
953
954
  case "hh":
954
- return fe(2);
955
+ return ge(2);
955
956
  case "a":
956
- return se(T, R, !0);
957
+ return oe(T, k, !0);
957
958
  case "A":
958
- return se(T, R, !1);
959
+ return oe(T, k, !1);
959
960
  case "m":
960
- return String(R);
961
+ return String(k);
961
962
  case "mm":
962
- return M.s(R, 2, "0");
963
+ return M.s(k, 2, "0");
963
964
  case "s":
964
965
  return String(u.$s);
965
966
  case "ss":
@@ -974,9 +975,9 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
974
975
  });
975
976
  }, l.utcOffset = function() {
976
977
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
977
- }, l.diff = function(a, u, s) {
978
- var m, y = this, T = M.p(u), R = _(a), H = (R.utcOffset() - this.utcOffset()) * n, N = this - R, Z = function() {
979
- return M.m(y, R);
978
+ }, l.diff = function(a, u, o) {
979
+ var m, y = this, T = M.p(u), k = L(a), H = (k.utcOffset() - this.utcOffset()) * n, N = this - k, Z = function() {
980
+ return M.m(y, k);
980
981
  };
981
982
  switch (T) {
982
983
  case q:
@@ -988,13 +989,13 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
988
989
  case Te:
989
990
  m = Z() / 3;
990
991
  break;
991
- case Se:
992
+ case Ee:
992
993
  m = (N - H) / 6048e5;
993
994
  break;
994
- case L:
995
+ case x:
995
996
  m = (N - H) / 864e5;
996
997
  break;
997
- case E:
998
+ case b:
998
999
  m = N / h;
999
1000
  break;
1000
1001
  case P:
@@ -1006,7 +1007,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
1006
1007
  default:
1007
1008
  m = N;
1008
1009
  }
1009
- return s ? m : M.a(m);
1010
+ return o ? m : M.a(m);
1010
1011
  }, l.daysInMonth = function() {
1011
1012
  return this.endOf(W).$D;
1012
1013
  }, l.$locale = function() {
@@ -1014,8 +1015,8 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
1014
1015
  }, l.locale = function(a, u) {
1015
1016
  if (!a)
1016
1017
  return this.$L;
1017
- var s = this.clone(), m = ae(a, u, !0);
1018
- return m && (s.$L = m), s;
1018
+ var o = this.clone(), m = ae(a, u, !0);
1019
+ return m && (o.$L = m), o;
1019
1020
  }, l.clone = function() {
1020
1021
  return M.w(this.$d, this);
1021
1022
  }, l.toDate = function() {
@@ -1027,50 +1028,50 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
1027
1028
  }, l.toString = function() {
1028
1029
  return this.$d.toUTCString();
1029
1030
  }, g;
1030
- }(), Re = oe.prototype;
1031
- return _.prototype = Re, [["$ms", b], ["$s", U], ["$m", P], ["$H", E], ["$W", L], ["$M", W], ["$y", q], ["$D", re]].forEach(function(g) {
1031
+ }(), Re = se.prototype;
1032
+ return L.prototype = Re, [["$ms", S], ["$s", U], ["$m", P], ["$H", b], ["$W", x], ["$M", W], ["$y", q], ["$D", re]].forEach(function(g) {
1032
1033
  Re[g[1]] = function(l) {
1033
1034
  return this.$g(l, g[0], g[1]);
1034
1035
  };
1035
- }), _.extend = function(g, l) {
1036
- return g.$i || (g(l, oe, _), g.$i = !0), _;
1037
- }, _.locale = ae, _.isDayjs = Ee, _.unix = function(g) {
1038
- return _(1e3 * g);
1039
- }, _.en = Q[ne], _.Ls = Q, _.p = {}, _;
1036
+ }), L.extend = function(g, l) {
1037
+ return g.$i || (g(l, se, L), g.$i = !0), L;
1038
+ }, L.locale = ae, L.isDayjs = be, L.unix = function(g) {
1039
+ return L(1e3 * g);
1040
+ }, L.en = Q[ne], L.Ls = Q, L.p = {}, L;
1040
1041
  });
1041
- })(et);
1042
- const tt = et.exports;
1043
- var rt = { exports: {} };
1042
+ })(tt);
1043
+ const rt = tt.exports;
1044
+ var it = { exports: {} };
1044
1045
  (function(e, t) {
1045
1046
  (function(i, n) {
1046
1047
  e.exports = n();
1047
1048
  })(Ve, function() {
1048
1049
  var i = "minute", n = /[+-]\d\d(?::?\d\d)?/g, h = /([+-]|\d\d)/g;
1049
- return function(b, U, P) {
1050
- var E = U.prototype;
1050
+ return function(S, U, P) {
1051
+ var b = U.prototype;
1051
1052
  P.utc = function(v) {
1052
1053
  var Y = { date: v, utc: !0, args: arguments };
1053
1054
  return new U(Y);
1054
- }, E.utc = function(v) {
1055
+ }, b.utc = function(v) {
1055
1056
  var Y = P(this.toDate(), { locale: this.$L, utc: !0 });
1056
1057
  return v ? Y.add(this.utcOffset(), i) : Y;
1057
- }, E.local = function() {
1058
+ }, b.local = function() {
1058
1059
  return P(this.toDate(), { locale: this.$L, utc: !1 });
1059
1060
  };
1060
- var L = E.parse;
1061
- E.parse = function(v) {
1062
- v.utc && (this.$u = !0), this.$utils().u(v.$offset) || (this.$offset = v.$offset), L.call(this, v);
1061
+ var x = b.parse;
1062
+ b.parse = function(v) {
1063
+ v.utc && (this.$u = !0), this.$utils().u(v.$offset) || (this.$offset = v.$offset), x.call(this, v);
1063
1064
  };
1064
- var Se = E.init;
1065
- E.init = function() {
1065
+ var Ee = b.init;
1066
+ b.init = function() {
1066
1067
  if (this.$u) {
1067
1068
  var v = this.$d;
1068
1069
  this.$y = v.getUTCFullYear(), this.$M = v.getUTCMonth(), this.$D = v.getUTCDate(), this.$W = v.getUTCDay(), this.$H = v.getUTCHours(), this.$m = v.getUTCMinutes(), this.$s = v.getUTCSeconds(), this.$ms = v.getUTCMilliseconds();
1069
1070
  } else
1070
- Se.call(this);
1071
+ Ee.call(this);
1071
1072
  };
1072
- var W = E.utcOffset;
1073
- E.utcOffset = function(v, Y) {
1073
+ var W = b.utcOffset;
1074
+ b.utcOffset = function(v, Y) {
1074
1075
  var ue = this.$utils().u;
1075
1076
  if (ue(v))
1076
1077
  return this.$u ? 0 : ue(this.$offset) ? W.call(this) : this.$offset;
@@ -1079,49 +1080,49 @@ var rt = { exports: {} };
1079
1080
  var Q = ne.match(n);
1080
1081
  if (!Q)
1081
1082
  return null;
1082
- var he = ("" + Q[0]).match(h) || ["-", 0, 0], Ee = he[0], ae = 60 * +he[1] + +he[2];
1083
- return ae === 0 ? 0 : Ee === "+" ? ae : -ae;
1083
+ var pe = ("" + Q[0]).match(h) || ["-", 0, 0], be = pe[0], ae = 60 * +pe[1] + +pe[2];
1084
+ return ae === 0 ? 0 : be === "+" ? ae : -ae;
1084
1085
  }(v), v === null))
1085
1086
  return this;
1086
- var ce = Math.abs(v) <= 16 ? 60 * v : v, x = this;
1087
+ var he = Math.abs(v) <= 16 ? 60 * v : v, R = this;
1087
1088
  if (Y)
1088
- return x.$offset = ce, x.$u = v === 0, x;
1089
+ return R.$offset = he, R.$u = v === 0, R;
1089
1090
  if (v !== 0) {
1090
1091
  var ie = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1091
- (x = this.local().add(ce + ie, i)).$offset = ce, x.$x.$localOffset = ie;
1092
+ (R = this.local().add(he + ie, i)).$offset = he, R.$x.$localOffset = ie;
1092
1093
  } else
1093
- x = this.utc();
1094
- return x;
1094
+ R = this.utc();
1095
+ return R;
1095
1096
  };
1096
- var Te = E.format;
1097
- E.format = function(v) {
1097
+ var Te = b.format;
1098
+ b.format = function(v) {
1098
1099
  var Y = v || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
1099
1100
  return Te.call(this, Y);
1100
- }, E.valueOf = function() {
1101
+ }, b.valueOf = function() {
1101
1102
  var v = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
1102
1103
  return this.$d.valueOf() - 6e4 * v;
1103
- }, E.isUTC = function() {
1104
+ }, b.isUTC = function() {
1104
1105
  return !!this.$u;
1105
- }, E.toISOString = function() {
1106
+ }, b.toISOString = function() {
1106
1107
  return this.toDate().toISOString();
1107
- }, E.toString = function() {
1108
+ }, b.toString = function() {
1108
1109
  return this.toDate().toUTCString();
1109
1110
  };
1110
- var q = E.toDate;
1111
- E.toDate = function(v) {
1111
+ var q = b.toDate;
1112
+ b.toDate = function(v) {
1112
1113
  return v === "s" && this.$offset ? P(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : q.call(this);
1113
1114
  };
1114
- var re = E.diff;
1115
- E.diff = function(v, Y, ue) {
1115
+ var re = b.diff;
1116
+ b.diff = function(v, Y, ue) {
1116
1117
  if (v && this.$u === v.$u)
1117
1118
  return re.call(this, v, Y, ue);
1118
- var ce = this.local(), x = P(v).local();
1119
- return re.call(ce, x, Y, ue);
1119
+ var he = this.local(), R = P(v).local();
1120
+ return re.call(he, R, Y, ue);
1120
1121
  };
1121
1122
  };
1122
1123
  });
1123
- })(rt);
1124
- const wt = rt.exports;
1124
+ })(it);
1125
+ const St = it.exports;
1125
1126
  var je = { exports: {} };
1126
1127
  /** @license
1127
1128
  * eventsource.js
@@ -1130,10 +1131,10 @@ var je = { exports: {} };
1130
1131
  */
1131
1132
  (function(e, t) {
1132
1133
  (function(i) {
1133
- var n = i.setTimeout, h = i.clearTimeout, b = i.XMLHttpRequest, U = i.XDomainRequest, P = i.ActiveXObject, E = i.EventSource, L = i.document, Se = i.Promise, W = i.fetch, Te = i.Response, q = i.TextDecoder, re = i.TextEncoder, v = i.AbortController;
1134
- if (typeof window != "undefined" && typeof L != "undefined" && !("readyState" in L) && L.body == null && (L.readyState = "loading", window.addEventListener("load", function(r) {
1135
- L.readyState = "complete";
1136
- }, !1)), b == null && P != null && (b = function() {
1134
+ var n = i.setTimeout, h = i.clearTimeout, S = i.XMLHttpRequest, U = i.XDomainRequest, P = i.ActiveXObject, b = i.EventSource, x = i.document, Ee = i.Promise, W = i.fetch, Te = i.Response, q = i.TextDecoder, re = i.TextEncoder, v = i.AbortController;
1135
+ if (typeof window != "undefined" && typeof x != "undefined" && !("readyState" in x) && x.body == null && (x.readyState = "loading", window.addEventListener("load", function(r) {
1136
+ x.readyState = "complete";
1137
+ }, !1)), S == null && P != null && (S = function() {
1137
1138
  return new P("Microsoft.XMLHTTP");
1138
1139
  }), Object.create == null && (Object.create = function(r) {
1139
1140
  function d() {
@@ -1145,12 +1146,12 @@ var je = { exports: {} };
1145
1146
  var Y = W;
1146
1147
  W = function(r, d) {
1147
1148
  var c = d.signal;
1148
- return Y(r, { headers: d.headers, credentials: d.credentials, cache: d.cache }).then(function(o) {
1149
- var w = o.body.getReader();
1149
+ return Y(r, { headers: d.headers, credentials: d.credentials, cache: d.cache }).then(function(s) {
1150
+ var w = s.body.getReader();
1150
1151
  return c._reader = w, c._aborted && c._reader.cancel(), {
1151
- status: o.status,
1152
- statusText: o.statusText,
1153
- headers: o.headers,
1152
+ status: s.status,
1153
+ statusText: s.statusText,
1154
+ headers: s.headers,
1154
1155
  body: {
1155
1156
  getReader: function() {
1156
1157
  return w;
@@ -1171,12 +1172,12 @@ var je = { exports: {} };
1171
1172
  this.bitsNeeded = 0, this.codePoint = 0;
1172
1173
  }
1173
1174
  ue.prototype.decode = function(r) {
1174
- function d(D, A, S) {
1175
- if (S === 1)
1175
+ function d(D, A, E) {
1176
+ if (E === 1)
1176
1177
  return D >= 128 >> A && D << A <= 2047;
1177
- if (S === 2)
1178
+ if (E === 2)
1178
1179
  return D >= 2048 >> A && D << A <= 55295 || D >= 57344 >> A && D << A <= 65535;
1179
- if (S === 3)
1180
+ if (E === 3)
1180
1181
  return D >= 65536 >> A && D << A <= 1114111;
1181
1182
  throw new Error();
1182
1183
  }
@@ -1189,13 +1190,13 @@ var je = { exports: {} };
1189
1190
  return 3;
1190
1191
  throw new Error();
1191
1192
  }
1192
- for (var o = 65533, w = "", f = this.bitsNeeded, C = this.codePoint, $ = 0; $ < r.length; $ += 1) {
1193
+ for (var s = 65533, w = "", f = this.bitsNeeded, C = this.codePoint, $ = 0; $ < r.length; $ += 1) {
1193
1194
  var O = r[$];
1194
- f !== 0 && (O < 128 || O > 191 || !d(C << 6 | O & 63, f - 6, c(f, C))) && (f = 0, C = o, w += String.fromCharCode(C)), f === 0 ? (O >= 0 && O <= 127 ? (f = 0, C = O) : O >= 192 && O <= 223 ? (f = 6 * 1, C = O & 31) : O >= 224 && O <= 239 ? (f = 6 * 2, C = O & 15) : O >= 240 && O <= 247 ? (f = 6 * 3, C = O & 7) : (f = 0, C = o), f !== 0 && !d(C, f, c(f, C)) && (f = 0, C = o)) : (f -= 6, C = C << 6 | O & 63), f === 0 && (C <= 65535 ? w += String.fromCharCode(C) : (w += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), w += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
1195
+ f !== 0 && (O < 128 || O > 191 || !d(C << 6 | O & 63, f - 6, c(f, C))) && (f = 0, C = s, w += String.fromCharCode(C)), f === 0 ? (O >= 0 && O <= 127 ? (f = 0, C = O) : O >= 192 && O <= 223 ? (f = 6 * 1, C = O & 31) : O >= 224 && O <= 239 ? (f = 6 * 2, C = O & 15) : O >= 240 && O <= 247 ? (f = 6 * 3, C = O & 7) : (f = 0, C = s), f !== 0 && !d(C, f, c(f, C)) && (f = 0, C = s)) : (f -= 6, C = C << 6 | O & 63), f === 0 && (C <= 65535 ? w += String.fromCharCode(C) : (w += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), w += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
1195
1196
  }
1196
1197
  return this.bitsNeeded = f, this.codePoint = C, w;
1197
1198
  };
1198
- var ce = function() {
1199
+ var he = function() {
1199
1200
  try {
1200
1201
  return new q().decode(new re().encode("test"), { stream: !0 }) === "test";
1201
1202
  } catch (r) {
@@ -1203,71 +1204,71 @@ var je = { exports: {} };
1203
1204
  }
1204
1205
  return !1;
1205
1206
  };
1206
- (q == null || re == null || !ce()) && (q = ue);
1207
- var x = function() {
1207
+ (q == null || re == null || !he()) && (q = ue);
1208
+ var R = function() {
1208
1209
  };
1209
1210
  function ie(r) {
1210
- 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 = r, this._sendTimeout = 0, this._abort = x;
1211
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = R, this.onload = R, this.onerror = R, this.onreadystatechange = R, this._contentType = "", this._xhr = r, this._sendTimeout = 0, this._abort = R;
1211
1212
  }
1212
1213
  ie.prototype.open = function(r, d) {
1213
1214
  this._abort(!0);
1214
- var c = this, o = this._xhr, w = 1, f = 0;
1215
- this._abort = function(S) {
1216
- c._sendTimeout !== 0 && (h(c._sendTimeout), c._sendTimeout = 0), (w === 1 || w === 2 || w === 3) && (w = 4, o.onload = x, o.onerror = x, o.onabort = x, o.onprogress = x, o.onreadystatechange = x, o.abort(), f !== 0 && (h(f), f = 0), S || (c.readyState = 4, c.onabort(null), c.onreadystatechange())), w = 0;
1215
+ var c = this, s = this._xhr, w = 1, f = 0;
1216
+ this._abort = function(E) {
1217
+ c._sendTimeout !== 0 && (h(c._sendTimeout), c._sendTimeout = 0), (w === 1 || w === 2 || w === 3) && (w = 4, s.onload = R, s.onerror = R, s.onabort = R, s.onprogress = R, s.onreadystatechange = R, s.abort(), f !== 0 && (h(f), f = 0), E || (c.readyState = 4, c.onabort(null), c.onreadystatechange())), w = 0;
1217
1218
  };
1218
1219
  var C = function() {
1219
1220
  if (w === 1) {
1220
- var S = 0, I = "", ge = void 0;
1221
- if ("contentType" in o)
1222
- S = 200, I = "OK", ge = o.contentType;
1221
+ var E = 0, I = "", me = void 0;
1222
+ if ("contentType" in s)
1223
+ E = 200, I = "OK", me = s.contentType;
1223
1224
  else
1224
1225
  try {
1225
- S = o.status, I = o.statusText, ge = o.getResponseHeader("Content-Type");
1226
+ E = s.status, I = s.statusText, me = s.getResponseHeader("Content-Type");
1226
1227
  } catch (ke) {
1227
- S = 0, I = "", ge = void 0;
1228
+ E = 0, I = "", me = void 0;
1228
1229
  }
1229
- S !== 0 && (w = 2, c.readyState = 2, c.status = S, c.statusText = I, c._contentType = ge, c.onreadystatechange());
1230
+ E !== 0 && (w = 2, c.readyState = 2, c.status = E, c.statusText = I, c._contentType = me, c.onreadystatechange());
1230
1231
  }
1231
1232
  }, $ = function() {
1232
1233
  if (C(), w === 2 || w === 3) {
1233
1234
  w = 3;
1234
- var S = "";
1235
+ var E = "";
1235
1236
  try {
1236
- S = o.responseText;
1237
+ E = s.responseText;
1237
1238
  } catch (I) {
1238
1239
  }
1239
- c.readyState = 3, c.responseText = S, c.onprogress();
1240
+ c.readyState = 3, c.responseText = E, c.onprogress();
1240
1241
  }
1241
- }, O = function(S, I) {
1242
+ }, O = function(E, I) {
1242
1243
  if ((I == null || I.preventDefault == null) && (I = {
1243
- preventDefault: x
1244
+ preventDefault: R
1244
1245
  }), $(), w === 1 || w === 2 || w === 3) {
1245
- if (w = 4, f !== 0 && (h(f), f = 0), c.readyState = 4, S === "load")
1246
+ if (w = 4, f !== 0 && (h(f), f = 0), c.readyState = 4, E === "load")
1246
1247
  c.onload(I);
1247
- else if (S === "error")
1248
+ else if (E === "error")
1248
1249
  c.onerror(I);
1249
- else if (S === "abort")
1250
+ else if (E === "abort")
1250
1251
  c.onabort(I);
1251
1252
  else
1252
1253
  throw new TypeError();
1253
1254
  c.onreadystatechange();
1254
1255
  }
1255
- }, D = function(S) {
1256
- o != null && (o.readyState === 4 ? (!("onload" in o) || !("onerror" in o) || !("onabort" in o)) && O(o.responseText === "" ? "error" : "load", S) : o.readyState === 3 ? "onprogress" in o || $() : o.readyState === 2 && C());
1256
+ }, D = function(E) {
1257
+ s != null && (s.readyState === 4 ? (!("onload" in s) || !("onerror" in s) || !("onabort" in s)) && O(s.responseText === "" ? "error" : "load", E) : s.readyState === 3 ? "onprogress" in s || $() : s.readyState === 2 && C());
1257
1258
  }, A = function() {
1258
1259
  f = n(function() {
1259
1260
  A();
1260
- }, 500), o.readyState === 3 && $();
1261
+ }, 500), s.readyState === 3 && $();
1261
1262
  };
1262
- "onload" in o && (o.onload = function(S) {
1263
- O("load", S);
1264
- }), "onerror" in o && (o.onerror = function(S) {
1265
- O("error", S);
1266
- }), "onabort" in o && (o.onabort = function(S) {
1267
- O("abort", S);
1268
- }), "onprogress" in o && (o.onprogress = $), "onreadystatechange" in o && (o.onreadystatechange = function(S) {
1269
- D(S);
1270
- }), ("contentType" in o || !("ontimeout" in b.prototype)) && (d += (d.indexOf("?") === -1 ? "?" : "&") + "padding=true"), o.open(r, d, !0), "readyState" in o && (f = n(function() {
1263
+ "onload" in s && (s.onload = function(E) {
1264
+ O("load", E);
1265
+ }), "onerror" in s && (s.onerror = function(E) {
1266
+ O("error", E);
1267
+ }), "onabort" in s && (s.onabort = function(E) {
1268
+ O("abort", E);
1269
+ }), "onprogress" in s && (s.onprogress = $), "onreadystatechange" in s && (s.onreadystatechange = function(E) {
1270
+ D(E);
1271
+ }), ("contentType" in s || !("ontimeout" in S.prototype)) && (d += (d.indexOf("?") === -1 ? "?" : "&") + "padding=true"), s.open(r, d, !0), "readyState" in s && (f = n(function() {
1271
1272
  A();
1272
1273
  }, 0));
1273
1274
  }, ie.prototype.abort = function() {
@@ -1280,7 +1281,7 @@ var je = { exports: {} };
1280
1281
  }, ie.prototype.getAllResponseHeaders = function() {
1281
1282
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
1282
1283
  }, ie.prototype.send = function() {
1283
- if ((!("ontimeout" in b.prototype) || !("sendAsBinary" in b.prototype) && !("mozAnon" in b.prototype)) && L != null && L.readyState != null && L.readyState !== "complete") {
1284
+ if ((!("ontimeout" in S.prototype) || !("sendAsBinary" in S.prototype) && !("mozAnon" in S.prototype)) && x != null && x.readyState != null && x.readyState !== "complete") {
1284
1285
  var r = this;
1285
1286
  r._sendTimeout = n(function() {
1286
1287
  r._sendTimeout = 0, r.send();
@@ -1302,56 +1303,56 @@ var je = { exports: {} };
1302
1303
  }
1303
1304
  function Q(r) {
1304
1305
  for (var d = /* @__PURE__ */ Object.create(null), c = r.split(`\r
1305
- `), o = 0; o < c.length; o += 1) {
1306
- var w = c[o], f = w.split(": "), C = f.shift(), $ = f.join(": ");
1306
+ `), s = 0; s < c.length; s += 1) {
1307
+ var w = c[s], f = w.split(": "), C = f.shift(), $ = f.join(": ");
1307
1308
  d[ne(C)] = $;
1308
1309
  }
1309
1310
  this._map = d;
1310
1311
  }
1311
1312
  Q.prototype.get = function(r) {
1312
1313
  return this._map[ne(r)];
1313
- }, b != null && b.HEADERS_RECEIVED == null && (b.HEADERS_RECEIVED = 2);
1314
- function he() {
1314
+ }, S != null && S.HEADERS_RECEIVED == null && (S.HEADERS_RECEIVED = 2);
1315
+ function pe() {
1315
1316
  }
1316
- he.prototype.open = function(r, d, c, o, w, f, C) {
1317
+ pe.prototype.open = function(r, d, c, s, w, f, C) {
1317
1318
  r.open("GET", w);
1318
1319
  var $ = 0;
1319
1320
  r.onprogress = function() {
1320
1321
  var D = r.responseText, A = D.slice($);
1321
1322
  $ += A.length, c(A);
1322
1323
  }, r.onerror = function(D) {
1323
- D.preventDefault(), o(new Error("NetworkError"));
1324
+ D.preventDefault(), s(new Error("NetworkError"));
1324
1325
  }, r.onload = function() {
1325
- o(null);
1326
+ s(null);
1326
1327
  }, r.onabort = function() {
1327
- o(null);
1328
+ s(null);
1328
1329
  }, r.onreadystatechange = function() {
1329
- if (r.readyState === b.HEADERS_RECEIVED) {
1330
- var D = r.status, A = r.statusText, S = r.getResponseHeader("Content-Type"), I = r.getAllResponseHeaders();
1331
- d(D, A, S, new Q(I));
1330
+ if (r.readyState === S.HEADERS_RECEIVED) {
1331
+ var D = r.status, A = r.statusText, E = r.getResponseHeader("Content-Type"), I = r.getAllResponseHeaders();
1332
+ d(D, A, E, new Q(I));
1332
1333
  }
1333
1334
  }, r.withCredentials = f;
1334
1335
  for (var O in C)
1335
1336
  Object.prototype.hasOwnProperty.call(C, O) && r.setRequestHeader(O, C[O]);
1336
1337
  return r.send(), r;
1337
1338
  };
1338
- function Ee(r) {
1339
+ function be(r) {
1339
1340
  this._headers = r;
1340
1341
  }
1341
- Ee.prototype.get = function(r) {
1342
+ be.prototype.get = function(r) {
1342
1343
  return this._headers.get(r);
1343
1344
  };
1344
1345
  function ae() {
1345
1346
  }
1346
- ae.prototype.open = function(r, d, c, o, w, f, C) {
1347
+ ae.prototype.open = function(r, d, c, s, w, f, C) {
1347
1348
  var $ = null, O = new v(), D = O.signal, A = new q();
1348
1349
  return W(w, {
1349
1350
  headers: C,
1350
1351
  credentials: f ? "include" : "same-origin",
1351
1352
  signal: D,
1352
1353
  cache: "no-store"
1353
- }).then(function(S) {
1354
- return $ = S.body.getReader(), d(S.status, S.statusText, S.headers.get("Content-Type"), new Ee(S.headers)), new Se(function(I, ge) {
1354
+ }).then(function(E) {
1355
+ return $ = E.body.getReader(), d(E.status, E.statusText, E.headers.get("Content-Type"), new be(E.headers)), new Ee(function(I, me) {
1355
1356
  var ke = function() {
1356
1357
  $.read().then(function(J) {
1357
1358
  if (J.done)
@@ -1361,23 +1362,23 @@ var je = { exports: {} };
1361
1362
  c(G), ke();
1362
1363
  }
1363
1364
  }).catch(function(J) {
1364
- ge(J);
1365
+ me(J);
1365
1366
  });
1366
1367
  };
1367
1368
  ke();
1368
1369
  });
1369
- }).catch(function(S) {
1370
- if (S.name !== "AbortError")
1371
- return S;
1372
- }).then(function(S) {
1373
- o(S);
1370
+ }).catch(function(E) {
1371
+ if (E.name !== "AbortError")
1372
+ return E;
1373
+ }).then(function(E) {
1374
+ s(E);
1374
1375
  }), {
1375
1376
  abort: function() {
1376
1377
  $ != null && $.cancel(), O.abort();
1377
1378
  }
1378
1379
  };
1379
1380
  };
1380
- function _() {
1381
+ function L() {
1381
1382
  this._listeners = /* @__PURE__ */ Object.create(null);
1382
1383
  }
1383
1384
  function M(r) {
@@ -1385,137 +1386,137 @@ var je = { exports: {} };
1385
1386
  throw r;
1386
1387
  }, 0);
1387
1388
  }
1388
- _.prototype.dispatchEvent = function(r) {
1389
+ L.prototype.dispatchEvent = function(r) {
1389
1390
  r.target = this;
1390
1391
  var d = this._listeners[r.type];
1391
1392
  if (d != null)
1392
- for (var c = d.length, o = 0; o < c; o += 1) {
1393
- var w = d[o];
1393
+ for (var c = d.length, s = 0; s < c; s += 1) {
1394
+ var w = d[s];
1394
1395
  try {
1395
1396
  typeof w.handleEvent == "function" ? w.handleEvent(r) : w.call(this, r);
1396
1397
  } catch (f) {
1397
1398
  M(f);
1398
1399
  }
1399
1400
  }
1400
- }, _.prototype.addEventListener = function(r, d) {
1401
+ }, L.prototype.addEventListener = function(r, d) {
1401
1402
  r = String(r);
1402
- var c = this._listeners, o = c[r];
1403
- o == null && (o = [], c[r] = o);
1404
- for (var w = !1, f = 0; f < o.length; f += 1)
1405
- o[f] === d && (w = !0);
1406
- w || o.push(d);
1407
- }, _.prototype.removeEventListener = function(r, d) {
1403
+ var c = this._listeners, s = c[r];
1404
+ s == null && (s = [], c[r] = s);
1405
+ for (var w = !1, f = 0; f < s.length; f += 1)
1406
+ s[f] === d && (w = !0);
1407
+ w || s.push(d);
1408
+ }, L.prototype.removeEventListener = function(r, d) {
1408
1409
  r = String(r);
1409
- var c = this._listeners, o = c[r];
1410
- if (o != null) {
1411
- for (var w = [], f = 0; f < o.length; f += 1)
1412
- o[f] !== d && w.push(o[f]);
1410
+ var c = this._listeners, s = c[r];
1411
+ if (s != null) {
1412
+ for (var w = [], f = 0; f < s.length; f += 1)
1413
+ s[f] !== d && w.push(s[f]);
1413
1414
  w.length === 0 ? delete c[r] : c[r] = w;
1414
1415
  }
1415
1416
  };
1416
- function oe(r) {
1417
+ function se(r) {
1417
1418
  this.type = r, this.target = void 0;
1418
1419
  }
1419
1420
  function Re(r, d) {
1420
- oe.call(this, r), this.data = d.data, this.lastEventId = d.lastEventId;
1421
+ se.call(this, r), this.data = d.data, this.lastEventId = d.lastEventId;
1421
1422
  }
1422
- Re.prototype = Object.create(oe.prototype);
1423
+ Re.prototype = Object.create(se.prototype);
1423
1424
  function g(r, d) {
1424
- oe.call(this, r), this.status = d.status, this.statusText = d.statusText, this.headers = d.headers;
1425
+ se.call(this, r), this.status = d.status, this.statusText = d.statusText, this.headers = d.headers;
1425
1426
  }
1426
- g.prototype = Object.create(oe.prototype);
1427
+ g.prototype = Object.create(se.prototype);
1427
1428
  function l(r, d) {
1428
- oe.call(this, r), this.error = d.error;
1429
+ se.call(this, r), this.error = d.error;
1429
1430
  }
1430
- l.prototype = Object.create(oe.prototype);
1431
- var a = -1, u = 0, s = 1, m = 2, y = -1, T = 0, R = 1, H = 2, N = 3, Z = /^text\/event\-stream(;.*)?$/i, be = 1e3, pe = 18e6, fe = function(r, d) {
1431
+ l.prototype = Object.create(se.prototype);
1432
+ var a = -1, u = 0, o = 1, m = 2, y = -1, T = 0, k = 1, H = 2, N = 3, Z = /^text\/event\-stream(;.*)?$/i, Ce = 1e3, fe = 18e6, ge = function(r, d) {
1432
1433
  var c = r == null ? d : parseInt(r, 10);
1433
- return c !== c && (c = d), se(c);
1434
- }, se = function(r) {
1435
- return Math.min(Math.max(r, be), pe);
1434
+ return c !== c && (c = d), oe(c);
1435
+ }, oe = function(r) {
1436
+ return Math.min(Math.max(r, Ce), fe);
1436
1437
  }, j = function(r, d, c) {
1437
1438
  try {
1438
1439
  typeof d == "function" && d.call(r, c);
1439
- } catch (o) {
1440
- M(o);
1440
+ } catch (s) {
1441
+ M(s);
1441
1442
  }
1442
1443
  };
1443
- function z(r, d) {
1444
- _.call(this), d = d || {}, 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, it(this, r, d);
1444
+ function F(r, d) {
1445
+ L.call(this), d = d || {}, 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, nt(this, r, d);
1445
1446
  }
1446
1447
  function Oe() {
1447
- return b != null && "withCredentials" in b.prototype || U == null ? new b() : new U();
1448
+ return S != null && "withCredentials" in S.prototype || U == null ? new S() : new U();
1448
1449
  }
1449
1450
  var De = W != null && Te != null && "body" in Te.prototype;
1450
- function it(r, d, c) {
1451
+ function nt(r, d, c) {
1451
1452
  d = String(d);
1452
- var o = !!c.withCredentials, w = c.lastEventIdQueryParameterName || "lastEventId", f = se(1e3), C = fe(c.heartbeatTimeout, 45e3), $ = "", O = f, D = !1, A = 0, S = c.headers || {}, I = c.Transport, ge = De && I == null ? void 0 : new ie(I != null ? new I() : Oe()), ke = I != null && typeof I != "string" ? new I() : ge == null ? new ae() : new he(), J = void 0, G = 0, de = a, Pe = "", Le = "", me = "", $e = "", X = T, ze = 0, Me = 0, nt = function(V, F, ee, te) {
1453
+ var s = !!c.withCredentials, w = c.lastEventIdQueryParameterName || "lastEventId", f = oe(1e3), C = ge(c.heartbeatTimeout, 45e3), $ = "", O = f, D = !1, A = 0, E = c.headers || {}, I = c.Transport, me = De && I == null ? void 0 : new ie(I != null ? new I() : Oe()), ke = I != null && typeof I != "string" ? new I() : me == null ? new ae() : new pe(), J = void 0, G = 0, de = a, Pe = "", Le = "", ve = "", $e = "", K = T, Fe = 0, Me = 0, at = function(V, z, ee, te) {
1453
1454
  if (de === u)
1454
1455
  if (V === 200 && ee != null && Z.test(ee)) {
1455
- de = s, D = Date.now(), O = f, r.readyState = s;
1456
- var K = new g("open", {
1456
+ de = o, D = Date.now(), O = f, r.readyState = o;
1457
+ var X = new g("open", {
1457
1458
  status: V,
1458
- statusText: F,
1459
+ statusText: z,
1459
1460
  headers: te
1460
1461
  });
1461
- r.dispatchEvent(K), j(r, r.onopen, K);
1462
+ r.dispatchEvent(X), j(r, r.onopen, X);
1462
1463
  } else {
1463
1464
  var B = "";
1464
- V !== 200 ? (F && (F = F.replace(/\s+/g, " ")), B = "EventSource's response has a status " + V + " " + F + " that is not 200. Aborting the connection.") : B = "EventSource's response has a Content-Type specifying an unsupported type: " + (ee == null ? "-" : ee.replace(/\s+/g, " ")) + ". Aborting the connection.", Fe();
1465
- var K = new g("error", {
1465
+ V !== 200 ? (z && (z = z.replace(/\s+/g, " ")), B = "EventSource's response has a status " + V + " " + z + " that is not 200. Aborting the connection.") : B = "EventSource's response has a Content-Type specifying an unsupported type: " + (ee == null ? "-" : ee.replace(/\s+/g, " ")) + ". Aborting the connection.", ze();
1466
+ var X = new g("error", {
1466
1467
  status: V,
1467
- statusText: F,
1468
+ statusText: z,
1468
1469
  headers: te
1469
1470
  });
1470
- r.dispatchEvent(K), j(r, r.onerror, K), console.error(B);
1471
+ r.dispatchEvent(X), j(r, r.onerror, X), console.error(B);
1471
1472
  }
1472
- }, at = function(V) {
1473
- if (de === s) {
1474
- for (var F = -1, ee = 0; ee < V.length; ee += 1) {
1473
+ }, st = function(V) {
1474
+ if (de === o) {
1475
+ for (var z = -1, ee = 0; ee < V.length; ee += 1) {
1475
1476
  var te = V.charCodeAt(ee);
1476
- (te === 10 || te === 13) && (F = ee);
1477
+ (te === 10 || te === 13) && (z = ee);
1477
1478
  }
1478
- var K = (F !== -1 ? $e : "") + V.slice(0, F + 1);
1479
- $e = (F === -1 ? $e : "") + V.slice(F + 1), V !== "" && (D = Date.now(), A += V.length);
1480
- for (var B = 0; B < K.length; B += 1) {
1481
- var te = K.charCodeAt(B);
1482
- if (X === y && te === 10)
1483
- X = T;
1484
- else if (X === y && (X = T), te === 13 || te === 10) {
1485
- if (X !== T) {
1486
- X === R && (Me = B + 1);
1487
- var ve = K.slice(ze, Me - 1), ye = K.slice(Me + (Me < B && K.charCodeAt(Me) === 32 ? 1 : 0), B);
1488
- ve === "data" ? (Pe += `
1489
- `, Pe += ye) : ve === "id" ? Le = ye : ve === "event" ? me = ye : ve === "retry" ? (f = fe(ye, f), O = f) : ve === "heartbeatTimeout" && (C = fe(ye, C), G !== 0 && (h(G), G = n(function() {
1479
+ var X = (z !== -1 ? $e : "") + V.slice(0, z + 1);
1480
+ $e = (z === -1 ? $e : "") + V.slice(z + 1), V !== "" && (D = Date.now(), A += V.length);
1481
+ for (var B = 0; B < X.length; B += 1) {
1482
+ var te = X.charCodeAt(B);
1483
+ if (K === y && te === 10)
1484
+ K = T;
1485
+ else if (K === y && (K = T), te === 13 || te === 10) {
1486
+ if (K !== T) {
1487
+ K === k && (Me = B + 1);
1488
+ var ye = X.slice(Fe, Me - 1), Se = X.slice(Me + (Me < B && X.charCodeAt(Me) === 32 ? 1 : 0), B);
1489
+ ye === "data" ? (Pe += `
1490
+ `, Pe += Se) : ye === "id" ? Le = Se : ye === "event" ? ve = Se : ye === "retry" ? (f = ge(Se, f), O = f) : ye === "heartbeatTimeout" && (C = ge(Se, C), G !== 0 && (h(G), G = n(function() {
1490
1491
  _e();
1491
1492
  }, C)));
1492
1493
  }
1493
- if (X === T) {
1494
+ if (K === T) {
1494
1495
  if (Pe !== "") {
1495
- $ = Le, me === "" && (me = "message");
1496
- var Ae = new Re(me, {
1496
+ $ = Le, ve === "" && (ve = "message");
1497
+ var Ae = new Re(ve, {
1497
1498
  data: Pe.slice(1),
1498
1499
  lastEventId: Le
1499
1500
  });
1500
- if (r.dispatchEvent(Ae), me === "open" ? j(r, r.onopen, Ae) : me === "message" ? j(r, r.onmessage, Ae) : me === "error" && j(r, r.onerror, Ae), de === m)
1501
+ if (r.dispatchEvent(Ae), ve === "open" ? j(r, r.onopen, Ae) : ve === "message" ? j(r, r.onmessage, Ae) : ve === "error" && j(r, r.onerror, Ae), de === m)
1501
1502
  return;
1502
1503
  }
1503
- Pe = "", me = "";
1504
+ Pe = "", ve = "";
1504
1505
  }
1505
- X = te === 13 ? y : T;
1506
+ K = te === 13 ? y : T;
1506
1507
  } else
1507
- X === T && (ze = B, X = R), X === R ? te === 58 && (Me = B + 1, X = H) : X === H && (X = N);
1508
+ K === T && (Fe = B, K = k), K === k ? te === 58 && (Me = B + 1, K = H) : K === H && (K = N);
1508
1509
  }
1509
1510
  }
1510
1511
  }, qe = function(V) {
1511
- if (de === s || de === u) {
1512
+ if (de === o || de === u) {
1512
1513
  de = a, G !== 0 && (h(G), G = 0), G = n(function() {
1513
1514
  _e();
1514
- }, O), O = se(Math.min(f * 16, O * 2)), r.readyState = u;
1515
- var F = new l("error", { error: V });
1516
- r.dispatchEvent(F), j(r, r.onerror, F), V != null && console.error(V);
1515
+ }, O), O = oe(Math.min(f * 16, O * 2)), r.readyState = u;
1516
+ var z = new l("error", { error: V });
1517
+ r.dispatchEvent(z), j(r, r.onerror, z), V != null && console.error(V);
1517
1518
  }
1518
- }, Fe = function() {
1519
+ }, ze = function() {
1519
1520
  de = m, J != null && (J.abort(), J = void 0), G !== 0 && (h(G), G = 0), r.readyState = m;
1520
1521
  }, _e = function() {
1521
1522
  if (G = 0, de !== a) {
@@ -1531,43 +1532,43 @@ var je = { exports: {} };
1531
1532
  }
1532
1533
  D = !1, A = 0, G = n(function() {
1533
1534
  _e();
1534
- }, C), de = u, Pe = "", me = "", Le = $, $e = "", ze = 0, Me = 0, X = T;
1535
- var F = d;
1535
+ }, C), de = u, Pe = "", ve = "", Le = $, $e = "", Fe = 0, Me = 0, K = T;
1536
+ var z = d;
1536
1537
  if (d.slice(0, 5) !== "data:" && d.slice(0, 5) !== "blob:" && $ !== "") {
1537
1538
  var ee = d.indexOf("?");
1538
- F = ee === -1 ? d : d.slice(0, ee + 1) + d.slice(ee + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ye, Ae) {
1539
- return Ae === w ? "" : ye;
1540
- }), F += (d.indexOf("?") === -1 ? "?" : "&") + w + "=" + encodeURIComponent($);
1539
+ z = ee === -1 ? d : d.slice(0, ee + 1) + d.slice(ee + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Se, Ae) {
1540
+ return Ae === w ? "" : Se;
1541
+ }), z += (d.indexOf("?") === -1 ? "?" : "&") + w + "=" + encodeURIComponent($);
1541
1542
  }
1542
- var te = r.withCredentials, K = {};
1543
- K.Accept = "text/event-stream";
1543
+ var te = r.withCredentials, X = {};
1544
+ X.Accept = "text/event-stream";
1544
1545
  var B = r.headers;
1545
1546
  if (B != null)
1546
- for (var ve in B)
1547
- Object.prototype.hasOwnProperty.call(B, ve) && (K[ve] = B[ve]);
1547
+ for (var ye in B)
1548
+ Object.prototype.hasOwnProperty.call(B, ye) && (X[ye] = B[ye]);
1548
1549
  try {
1549
- J = ke.open(ge, nt, at, qe, F, te, K);
1550
- } catch (ye) {
1551
- throw Fe(), ye;
1550
+ J = ke.open(me, at, st, qe, z, te, X);
1551
+ } catch (Se) {
1552
+ throw ze(), Se;
1552
1553
  }
1553
1554
  };
1554
- r.url = d, r.readyState = u, r.withCredentials = o, r.headers = S, r._close = Fe, _e();
1555
+ r.url = d, r.readyState = u, r.withCredentials = s, r.headers = E, r._close = ze, _e();
1555
1556
  }
1556
- z.prototype = Object.create(_.prototype), z.prototype.CONNECTING = u, z.prototype.OPEN = s, z.prototype.CLOSED = m, z.prototype.close = function() {
1557
+ F.prototype = Object.create(L.prototype), F.prototype.CONNECTING = u, F.prototype.OPEN = o, F.prototype.CLOSED = m, F.prototype.close = function() {
1557
1558
  this._close();
1558
- }, z.CONNECTING = u, z.OPEN = s, z.CLOSED = m, z.prototype.withCredentials = void 0;
1559
- var Be = E;
1560
- b != null && (E == null || !("withCredentials" in E.prototype)) && (Be = z), function(r) {
1559
+ }, F.CONNECTING = u, F.OPEN = o, F.CLOSED = m, F.prototype.withCredentials = void 0;
1560
+ var Be = b;
1561
+ S != null && (b == null || !("withCredentials" in b.prototype)) && (Be = F), function(r) {
1561
1562
  {
1562
1563
  var d = r(t);
1563
1564
  d !== void 0 && (e.exports = d);
1564
1565
  }
1565
1566
  }(function(r) {
1566
- r.EventSourcePolyfill = z, r.NativeEventSource = E, r.EventSource = Be;
1567
+ r.EventSourcePolyfill = F, r.NativeEventSource = b, r.EventSource = Be;
1567
1568
  });
1568
1569
  })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Ve : globalThis);
1569
1570
  })(je, je.exports);
1570
- const Ge = "user-deposit-withdrawal", Xe = [
1571
+ const Ke = "user-deposit-withdrawal", Xe = [
1571
1572
  "mm-hcback-to-merchant",
1572
1573
  "mm-hc-back-tomerchant",
1573
1574
  "mm-hc-sports",
@@ -1578,7 +1579,7 @@ const Ge = "user-deposit-withdrawal", Xe = [
1578
1579
  ], Ne = {
1579
1580
  TWO_FACTOR_AUTH: "TWO_FACTOR_AUTH_NOTIFICATION",
1580
1581
  SESSION_EXPIRATION: "SESSION_EXPIRATION"
1581
- }, St = {
1582
+ }, wt = {
1582
1583
  FAILED_2FA: "failed2FA"
1583
1584
  }, le = {
1584
1585
  OPEN_FULL_CASHIER: "MMFE:openFullCashier",
@@ -1666,10 +1667,10 @@ const Ge = "user-deposit-withdrawal", Xe = [
1666
1667
  overflow: visible;
1667
1668
  }
1668
1669
  }`, Ct = bt;
1669
- tt.extend(wt);
1670
+ rt.extend(St);
1670
1671
  const Tt = class {
1671
1672
  constructor(e) {
1672
- Ke(this, e), this.sseStream = null, this.selectedPaymentMethod = null, this.sseReconnectAttempts = 0, this.sseReconnectTimer = null, this.sseShouldStayConnected = !1, this.SSE_MAX_RECONNECT_ATTEMPTS = 5, this.SSE_RECONNECT_DELAY_BASE_MS = 1e3, this.bindedHandler = this.handleMessage.bind(this), this.userAgent = window.navigator.userAgent, this.isMobile = vt(this.userAgent), this.errorCodes = [
1673
+ Ze(this, e), this.errorMessageKey = null, this.sseStream = null, this.selectedPaymentMethod = null, this.sseReconnectAttempts = 0, this.sseReconnectTimer = null, this.sseShouldStayConnected = !1, this.SSE_MAX_RECONNECT_ATTEMPTS = 5, this.SSE_RECONNECT_DELAY_BASE_MS = 1e3, this.bindedHandler = this.handleMessage.bind(this), this.userAgent = window.navigator.userAgent, this.isMobile = vt(this.userAgent), this.errorCodes = [
1673
1674
  "21123",
1674
1675
  "21122",
1675
1676
  "21121",
@@ -1816,22 +1817,30 @@ const Tt = class {
1816
1817
  handleClientStylingChangeURL(e, t) {
1817
1818
  e != t && this.clientStylingUrl && He(this.stylingContainer, this.clientStylingUrl);
1818
1819
  }
1820
+ handleLanguageChange(e, t) {
1821
+ e !== t && this.errorMessageKey && (this.errorMessage = we(this.errorMessageKey, e));
1822
+ }
1823
+ handleTranslationUrlChange(e, t) {
1824
+ return ce(this, null, function* () {
1825
+ e && e !== t && (yield Ge(e), this.errorMessageKey && (this.errorMessage = we(this.errorMessageKey, this.language)));
1826
+ });
1827
+ }
1819
1828
  componentWillLoad() {
1820
- return we(this, null, function* () {
1821
- this.translationUrl && (yield mt(this.translationUrl)), yield this.loadWidget();
1829
+ return ce(this, null, function* () {
1830
+ this.translationUrl && (yield Ge(this.translationUrl)), yield this.loadWidget();
1822
1831
  });
1823
1832
  }
1824
1833
  componentDidLoad() {
1825
- this.stylingContainer && (window.emMessageBus != null ? Ze(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling && Ue(this.stylingContainer, this.clientStyling), this.clientStylingUrl && He(this.stylingContainer, this.clientStylingUrl))), window.addEventListener("message", this.bindedHandler, !1);
1834
+ this.stylingContainer && (window.emMessageBus != null ? Qe(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling && Ue(this.stylingContainer, this.clientStyling), this.clientStylingUrl && He(this.stylingContainer, this.clientStylingUrl))), window.addEventListener("message", this.bindedHandler, !1);
1826
1835
  }
1827
1836
  disconnectedCallback() {
1828
1837
  window.removeEventListener("message", this.bindedHandler, !1), this.stylingSubscription && this.stylingSubscription.unsubscribe(), this.closeSSEStream();
1829
1838
  }
1830
1839
  render() {
1831
- return p(st, { key: "338fa8bd00485e7d7c1a92ddbc7622e4eb6bd020" }, this.enableStepUpAuth && p("player-step-up-auth", { key: "b0076f39d95d35b3cae6d6bb0a039feb39764f47", endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl }), p("div", { key: "00f02636ed279a41dd203bdaea54f41eacaa8f86", ref: (e) => this.stylingContainer = e, class: "" }, p("div", { key: "120c160a3f0729e5aae360e9fc7b99e33c93e01c", class: `DepositWithdrawalWrapper ${this.isShortCashier ? "ShortCashier" : ""}` }, !(this.isMobile && !this.isShortCashier) && p("h2", { key: "664216161b01c6e49bc36b738eb02ae622eeda09", class: "CategoryTitle" }, Ce(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language)), p("div", { key: "f57113548723235044ac51485b37e2e9b6e3ee4c", style: { marginTop: this.isShortCashier ? "30px" : "0" } }, this.isMobile && !this.isShortCashier ? p("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, p("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, p("defs", null), p("g", { transform: "translate(-20 -158)" }, p("g", { transform: "translate(20 158)" }, p("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), p("h2", { class: "CategoryTitleMobile" }, Ce(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language))) : null), this.cashierInfoUrl ? p("iframe", { ref: (e) => this.cashierIframeRef = e, width: "100%", allow: "payment", height: this.dynamicHeight, src: this.cashierInfoUrl }) : this.errorFromApi ? p("h3", { class: "ErrorMessage" }, this.errorMessage) : p("h3", { innerHTML: this.errorMessage || (this.type === "deposit" ? Ce("denyDeposit", this.language) : Ce("denyWithdrawal", this.language)), class: "ErrorMessage" }))));
1840
+ return p(dt, { key: "c81d1d4ee68c09136853e395106baedbb49b4db5" }, this.enableStepUpAuth && p("player-step-up-auth", { key: "ddad8ca99ed6b1012a48dcf3ec00eaf66842e17c", endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl }), p("div", { key: "eeaeed0b00a1e130792b8871d130bfbcb9c9876c", ref: (e) => this.stylingContainer = e, class: "" }, p("div", { key: "e792348abc087994792e6c9f8cbd0f4487477e8f", class: `DepositWithdrawalWrapper ${this.isShortCashier ? "ShortCashier" : ""}` }, !(this.isMobile && !this.isShortCashier) && p("h2", { key: "b1cf66df335ea3f764063cfbab14f461db12e644", class: "CategoryTitle" }, we(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language)), p("div", { key: "4d7e164ec587b9c43fc77c02666bdeb775e98e46", style: { marginTop: this.isShortCashier ? "30px" : "0" } }, this.isMobile && !this.isShortCashier ? p("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, p("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, p("defs", null), p("g", { transform: "translate(-20 -158)" }, p("g", { transform: "translate(20 158)" }, p("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), p("h2", { class: "CategoryTitleMobile" }, we(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language))) : null), this.cashierInfoUrl ? p("iframe", { ref: (e) => this.cashierIframeRef = e, width: "100%", allow: "payment", height: this.dynamicHeight, src: this.cashierInfoUrl }) : this.errorFromApi ? p("h3", { class: "ErrorMessage" }, this.errorMessage) : p("h3", { innerHTML: this.errorMessage || (this.type === "deposit" ? we("denyDeposit", this.language) : we("denyWithdrawal", this.language)), class: "ErrorMessage" }))));
1832
1841
  }
1833
1842
  loadWidget() {
1834
- return we(this, null, function* () {
1843
+ return ce(this, null, function* () {
1835
1844
  const e = {
1836
1845
  Channel: this.channel,
1837
1846
  Type: this.typeParameter,
@@ -1851,7 +1860,7 @@ const Tt = class {
1851
1860
  headers: {
1852
1861
  "X-Sessionid": this.session,
1853
1862
  "Content-Type": "application/json",
1854
- "X-Client-Request-Timestamp": tt.utc().format("YYYY-MM-DD HH:mm:ss.SSS")
1863
+ "X-Client-Request-Timestamp": rt.utc().format("YYYY-MM-DD HH:mm:ss.SSS")
1855
1864
  },
1856
1865
  body: JSON.stringify(e)
1857
1866
  }), n = yield i.json();
@@ -1860,16 +1869,16 @@ const Tt = class {
1860
1869
  if (n.CashierInfo)
1861
1870
  this.cashierInfoUrl = n.CashierInfo.Url;
1862
1871
  else {
1863
- let h;
1872
+ let h, S = null;
1864
1873
  if (n.ResponseMessage) {
1865
- let U = this.errorCodes.find((E) => n.ResponseMessage.includes(E)) || null;
1866
- const P = U ? Ce(`errorCode${U}`, this.language) : void 0;
1867
- P ? h = P : this.showApiErrorMessage ? (h = n.ResponseMessage, this.errorFromApi = !0) : h = Ce("notFoundErrorCode", this.language);
1874
+ let P = this.errorCodes.find((x) => n.ResponseMessage.includes(x)) || null;
1875
+ const b = P ? we(`errorCode${P}`, this.language) : void 0;
1876
+ b ? (h = b, S = `errorCode${P}`) : this.showApiErrorMessage ? (h = n.ResponseMessage, this.errorFromApi = !0) : (h = we("notFoundErrorCode", this.language), S = "notFoundErrorCode");
1868
1877
  } else
1869
- h = this.type === "deposit" ? Ce("denyDeposit", this.language) : Ce("denyWithdrawal", this.language);
1870
- this.showApiErrorMessage && (this.errorMessage = h);
1871
- const b = { type: "error", message: h };
1872
- window.postMessage({ type: "DenyDepositOrWithdrawal", data: b }, window.location.href);
1878
+ S = this.type === "deposit" ? "denyDeposit" : "denyWithdrawal", h = we(S, this.language);
1879
+ this.showApiErrorMessage && (this.errorMessageKey = S, this.errorMessage = h);
1880
+ const U = { type: "error", message: h };
1881
+ window.postMessage({ type: "DenyDepositOrWithdrawal", data: U }, window.location.href);
1873
1882
  }
1874
1883
  } catch (t) {
1875
1884
  console.error(t);
@@ -1907,7 +1916,7 @@ const Tt = class {
1907
1916
  }
1908
1917
  if (e["MMFE:vendorRedirect"]) {
1909
1918
  const t = e["MMFE:vendorRedirect"];
1910
- window.postMessage({ type: `${Ge}:mm-open-vendor`, url: t }, window.location.href);
1919
+ window.postMessage({ type: `${Ke}:mm-open-vendor`, url: t }, window.location.href);
1911
1920
  }
1912
1921
  }
1913
1922
  resolveRedirectPlan(e) {
@@ -1936,7 +1945,7 @@ const Tt = class {
1936
1945
  if (!this.forwardCashierRedirects)
1937
1946
  return !1;
1938
1947
  const i = {
1939
- type: `${Ge}:${t}`,
1948
+ type: `${Ke}:${t}`,
1940
1949
  originalType: t,
1941
1950
  payload: e.data,
1942
1951
  origin: e.origin
@@ -1993,7 +2002,7 @@ const Tt = class {
1993
2002
  const { body: { challengeId: n } = {} } = t;
1994
2003
  n ? this.triggerStepUpAuth(n) : console.error(`${Ne.TWO_FACTOR_AUTH} received but challengeId not found in body`);
1995
2004
  } else
1996
- i === Ne.SESSION_EXPIRATION && (console.info("[SSE] SESSION_EXPIRATION received, closing connection"), window.postMessage({ type: "SessionExpiration", reason: St.FAILED_2FA }, window.location.href), this.closeSSEStream());
2005
+ i === Ne.SESSION_EXPIRATION && (console.info("[SSE] SESSION_EXPIRATION received, closing connection"), window.postMessage({ type: "SessionExpiration", reason: wt.FAILED_2FA }, window.location.href), this.closeSSEStream());
1997
2006
  } catch (t) {
1998
2007
  console.error("Error parsing SSE message:", t);
1999
2008
  }
@@ -2064,12 +2073,14 @@ const Tt = class {
2064
2073
  return {
2065
2074
  clientStyling: ["handleClientStylingChange"],
2066
2075
  clientStylingUrl: ["handleClientStylingChangeURL"],
2076
+ language: ["handleLanguageChange"],
2077
+ translationUrl: ["handleTranslationUrlChange"],
2067
2078
  enableStepUpAuth: ["handleEnableStepUpAuthChange"]
2068
2079
  };
2069
2080
  }
2070
2081
  };
2071
2082
  Tt.style = Ct;
2072
2083
  export {
2073
- pt as player_step_up_auth,
2084
+ ft as player_step_up_auth,
2074
2085
  Tt as user_deposit_withdrawal
2075
2086
  };