livevegas-ui-kit 1.0.150 → 1.0.151
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.
- package/dist/livevegas-ui-kit.es.js +74 -51
- package/dist/livevegas-ui-kit.umd.js +36 -16
- package/package.json +1 -1
|
@@ -55,10 +55,10 @@ function Mi() {
|
|
|
55
55
|
{
|
|
56
56
|
var L = v.ReactDebugCurrentFrame, G = L.getStackAddendum();
|
|
57
57
|
G !== "" && (x += "%s", w = w.concat([G]));
|
|
58
|
-
var
|
|
58
|
+
var X = w.map(function(R) {
|
|
59
59
|
return String(R);
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
X.unshift("Warning: " + x), Function.prototype.apply.call(console[h], console, X);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
var j = !1, T = !1, I = !1, A = !1, H = !1, N;
|
|
@@ -115,9 +115,9 @@ function Mi() {
|
|
|
115
115
|
var L = h.displayName || null;
|
|
116
116
|
return L !== null ? L : W(h.type) || "Memo";
|
|
117
117
|
case p: {
|
|
118
|
-
var G = h,
|
|
118
|
+
var G = h, X = G._payload, R = G._init;
|
|
119
119
|
try {
|
|
120
|
-
return W(R(
|
|
120
|
+
return W(R(X));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -218,8 +218,8 @@ function Mi() {
|
|
|
218
218
|
Ce = !0;
|
|
219
219
|
var G = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
|
-
var
|
|
222
|
-
|
|
221
|
+
var X;
|
|
222
|
+
X = xe.current, xe.current = null, pe();
|
|
223
223
|
try {
|
|
224
224
|
if (x) {
|
|
225
225
|
var R = function() {
|
|
@@ -272,7 +272,7 @@ function Mi() {
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
Ce = !1, xe.current =
|
|
275
|
+
Ce = !1, xe.current = X, ye(), Error.prepareStackTrace = G;
|
|
276
276
|
}
|
|
277
277
|
var Ke = h ? h.displayName || h.name : "", ze = Ke ? we(Ke) : "";
|
|
278
278
|
return typeof h == "function" && Te.set(h, ze), ze;
|
|
@@ -304,9 +304,9 @@ function Mi() {
|
|
|
304
304
|
case f:
|
|
305
305
|
return mt(h.type, x, w);
|
|
306
306
|
case p: {
|
|
307
|
-
var L = h, G = L._payload,
|
|
307
|
+
var L = h, G = L._payload, X = L._init;
|
|
308
308
|
try {
|
|
309
|
-
return mt(
|
|
309
|
+
return mt(X(G), x, w);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
@@ -323,9 +323,9 @@ function Mi() {
|
|
|
323
323
|
}
|
|
324
324
|
function hi(h, x, w, L, G) {
|
|
325
325
|
{
|
|
326
|
-
var
|
|
326
|
+
var X = Function.call.bind(at);
|
|
327
327
|
for (var R in h)
|
|
328
|
-
if (
|
|
328
|
+
if (X(h, R)) {
|
|
329
329
|
var M = void 0;
|
|
330
330
|
try {
|
|
331
331
|
if (typeof h[R] != "function") {
|
|
@@ -411,7 +411,7 @@ function Mi() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
var Ci = function(h, x, w, L, G,
|
|
414
|
+
var Ci = function(h, x, w, L, G, X, R) {
|
|
415
415
|
var M = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
417
|
$$typeof: t,
|
|
@@ -421,7 +421,7 @@ function Mi() {
|
|
|
421
421
|
ref: w,
|
|
422
422
|
props: R,
|
|
423
423
|
// Record the component responsible for creating this element.
|
|
424
|
-
_owner:
|
|
424
|
+
_owner: X
|
|
425
425
|
};
|
|
426
426
|
return M._store = {}, Object.defineProperty(M._store, "validated", {
|
|
427
427
|
configurable: !1,
|
|
@@ -442,14 +442,14 @@ function Mi() {
|
|
|
442
442
|
};
|
|
443
443
|
function ki(h, x, w, L, G) {
|
|
444
444
|
{
|
|
445
|
-
var
|
|
445
|
+
var X, R = {}, M = null, ce = null;
|
|
446
446
|
w !== void 0 && (Qa(w), M = "" + w), bi(x) && (Qa(x.key), M = "" + x.key), gi(x) && (ce = x.ref, yi(x, G));
|
|
447
|
-
for (
|
|
448
|
-
at.call(x,
|
|
447
|
+
for (X in x)
|
|
448
|
+
at.call(x, X) && !mi.hasOwnProperty(X) && (R[X] = x[X]);
|
|
449
449
|
if (h && h.defaultProps) {
|
|
450
450
|
var _ = h.defaultProps;
|
|
451
|
-
for (
|
|
452
|
-
R[
|
|
451
|
+
for (X in _)
|
|
452
|
+
R[X] === void 0 && (R[X] = _[X]);
|
|
453
453
|
}
|
|
454
454
|
if (M || ce) {
|
|
455
455
|
var te = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
|
|
@@ -526,7 +526,7 @@ Check the top-level render call using <` + w + ">.");
|
|
|
526
526
|
else if (h) {
|
|
527
527
|
var G = k(h);
|
|
528
528
|
if (typeof G == "function" && G !== h.entries)
|
|
529
|
-
for (var
|
|
529
|
+
for (var X = G.call(h), R; !(R = X.next()).done; )
|
|
530
530
|
la(R.value) && nn(R.value, x);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
@@ -569,7 +569,7 @@ Check the top-level render call using <` + w + ">.");
|
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
var sn = {};
|
|
572
|
-
function on(h, x, w, L, G,
|
|
572
|
+
function on(h, x, w, L, G, X) {
|
|
573
573
|
{
|
|
574
574
|
var R = F(h);
|
|
575
575
|
if (!R) {
|
|
@@ -580,7 +580,7 @@ Check the top-level render call using <` + w + ">.");
|
|
|
580
580
|
var _;
|
|
581
581
|
h === null ? _ = "null" : ia(h) ? _ = "array" : h !== void 0 && h.$$typeof === t ? (_ = "<" + (W(h.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof h, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, M);
|
|
582
582
|
}
|
|
583
|
-
var te = ki(h, x, w, G,
|
|
583
|
+
var te = ki(h, x, w, G, X);
|
|
584
584
|
if (te == null)
|
|
585
585
|
return te;
|
|
586
586
|
if (R) {
|
|
@@ -4857,7 +4857,7 @@ const _o = {
|
|
|
4857
4857
|
return "";
|
|
4858
4858
|
}
|
|
4859
4859
|
};
|
|
4860
|
-
var
|
|
4860
|
+
var Z = /* @__PURE__ */ ((e) => (e[e.Ante = 0] = "Ante", e[e.Insurance = 3] = "Insurance", e[e.Tip = 9] = "Tip", e[e.Hit = 10] = "Hit", e[e.Double = 11] = "Double", e[e.Split = 12] = "Split", e[e.Stand = 13] = "Stand", e[e.Surrender = 14] = "Surrender", e[e.TwentyOnePlusThree = 15] = "TwentyOnePlusThree", e[e.PerfectPairs = 16] = "PerfectPairs", e[e.DraftAnte = 17] = "DraftAnte", e[e.DraftTwentyOnePlusThree = 18] = "DraftTwentyOnePlusThree", e[e.DraftPerfectPairs = 19] = "DraftPerfectPairs", e[e.Occupy = 20] = "Occupy", e[e.Leave = 21] = "Leave", e[e.DraftBetBehind = 22] = "DraftBetBehind", e[e.BetBehind = 23] = "BetBehind", e[e.Undo = 24] = "Undo", e[e.Repeat = 25] = "Repeat", e[e.Deal = 26] = "Deal", e[e.DoubleBets = 27] = "DoubleBets", e[e.StandAll = 49] = "StandAll", e))(Z || {}), Re = /* @__PURE__ */ ((e) => (e[e.WaitingForInit = 0] = "WaitingForInit", e[e.WaitingRoundStart = 1] = "WaitingRoundStart", e[e.WaitingForBet = 2] = "WaitingForBet", e[e.WaitingCard = 3] = "WaitingCard", e[e.WaitingForUserAction = 4] = "WaitingForUserAction", e[e.WaitingOpenDealerCards = 5] = "WaitingOpenDealerCards", e[e.WaitingDealerCards = 6] = "WaitingDealerCards", e[e.WaitingForWins = 7] = "WaitingForWins", e[e.WaitingRoundEnd = 8] = "WaitingRoundEnd", e[e.WaitingInsurance = 9] = "WaitingInsurance", e[e.CalculateWins = 10] = "CalculateWins", e[e.WaitingRebuyCards = 11] = "WaitingRebuyCards", e[e.RoundEnd = 12] = "RoundEnd", e[e.CancelRound = 13] = "CancelRound", e[e.WaitingOpenBoxCards = 14] = "WaitingOpenBoxCards", e[e.CrashRound = 16] = "CrashRound", e))(Re || {});
|
|
4861
4861
|
const i1 = {
|
|
4862
4862
|
0: "Ante",
|
|
4863
4863
|
3: "Insurance",
|
|
@@ -5610,10 +5610,10 @@ const pt = Array(4).fill([
|
|
|
5610
5610
|
isMobile: r = !0
|
|
5611
5611
|
}) => {
|
|
5612
5612
|
const { t: i } = U(), s = [
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5613
|
+
Z.Ante,
|
|
5614
|
+
Z.Insurance,
|
|
5615
|
+
Z.PerfectPairs,
|
|
5616
|
+
Z.TwentyOnePlusThree
|
|
5617
5617
|
], o = r ? 32 : 48, l = r ? 26 : 38;
|
|
5618
5618
|
return /* @__PURE__ */ a.jsxs(h1, { children: [
|
|
5619
5619
|
/* @__PURE__ */ a.jsxs(u1, { children: [
|
|
@@ -9444,18 +9444,18 @@ const Sl = ["Min", "Low", "Med", "High", "Auto"], Il = ({
|
|
|
9444
9444
|
)
|
|
9445
9445
|
}
|
|
9446
9446
|
), T2 = {
|
|
9447
|
-
[
|
|
9448
|
-
[
|
|
9449
|
-
[
|
|
9450
|
-
[
|
|
9451
|
-
[
|
|
9447
|
+
[Z.Double]: "#eb6200",
|
|
9448
|
+
[Z.Hit]: "#33A54C",
|
|
9449
|
+
[Z.Stand]: "#E34747",
|
|
9450
|
+
[Z.Split]: "#C344FA",
|
|
9451
|
+
[Z.Surrender]: "#11111199"
|
|
9452
9452
|
};
|
|
9453
9453
|
var Xt = /* @__PURE__ */ ((e) => (e[e.Small = 0] = "Small", e[e.Big = 1] = "Big", e))(Xt || {});
|
|
9454
9454
|
const D2 = {
|
|
9455
|
-
[
|
|
9456
|
-
[
|
|
9457
|
-
[
|
|
9458
|
-
[
|
|
9455
|
+
[Z.Double]: { buttonSize: 60, iconSize: 32, radius: 12 },
|
|
9456
|
+
[Z.Hit]: { buttonSize: 80, iconSize: 40, radius: 12 },
|
|
9457
|
+
[Z.Stand]: { buttonSize: 80, iconSize: 40, radius: 12 },
|
|
9458
|
+
[Z.Split]: { buttonSize: 60, iconSize: 32, radius: 12 }
|
|
9459
9459
|
}, _n = (e, t) => ({
|
|
9460
9460
|
0: { buttonSize: 18, iconSize: 12, radius: 4 },
|
|
9461
9461
|
1: D2[t] || {
|
|
@@ -9465,48 +9465,48 @@ const D2 = {
|
|
|
9465
9465
|
}
|
|
9466
9466
|
})[e], N2 = [
|
|
9467
9467
|
{
|
|
9468
|
-
betType:
|
|
9468
|
+
betType: Z.Double,
|
|
9469
9469
|
name: "Double",
|
|
9470
9470
|
icon: ra
|
|
9471
9471
|
},
|
|
9472
9472
|
{
|
|
9473
|
-
betType:
|
|
9473
|
+
betType: Z.Hit,
|
|
9474
9474
|
name: "Hit",
|
|
9475
9475
|
icon: ri
|
|
9476
9476
|
},
|
|
9477
9477
|
{
|
|
9478
|
-
betType:
|
|
9478
|
+
betType: Z.Stand,
|
|
9479
9479
|
name: "Stand",
|
|
9480
9480
|
icon: ii
|
|
9481
9481
|
},
|
|
9482
9482
|
{
|
|
9483
|
-
betType:
|
|
9483
|
+
betType: Z.Split,
|
|
9484
9484
|
name: "Split",
|
|
9485
9485
|
icon: Ka
|
|
9486
9486
|
}
|
|
9487
9487
|
], z2 = [
|
|
9488
9488
|
{
|
|
9489
|
-
betType:
|
|
9489
|
+
betType: Z.Double,
|
|
9490
9490
|
name: "Double",
|
|
9491
9491
|
icon: ra
|
|
9492
9492
|
},
|
|
9493
9493
|
{
|
|
9494
|
-
betType:
|
|
9494
|
+
betType: Z.Hit,
|
|
9495
9495
|
name: "Hit",
|
|
9496
9496
|
icon: ri
|
|
9497
9497
|
},
|
|
9498
9498
|
{
|
|
9499
|
-
betType:
|
|
9499
|
+
betType: Z.Stand,
|
|
9500
9500
|
name: "Stand",
|
|
9501
9501
|
icon: ii
|
|
9502
9502
|
},
|
|
9503
9503
|
{
|
|
9504
|
-
betType:
|
|
9504
|
+
betType: Z.Split,
|
|
9505
9505
|
name: "Split",
|
|
9506
9506
|
icon: Ka
|
|
9507
9507
|
},
|
|
9508
9508
|
{
|
|
9509
|
-
betType:
|
|
9509
|
+
betType: Z.Surrender,
|
|
9510
9510
|
name: "Surrender",
|
|
9511
9511
|
icon: ni
|
|
9512
9512
|
}
|
|
@@ -9587,21 +9587,22 @@ const D2 = {
|
|
|
9587
9587
|
}
|
|
9588
9588
|
|
|
9589
9589
|
&.animated-active {
|
|
9590
|
-
animation: buttonActive 1s ease
|
|
9590
|
+
animation: buttonActive 1s ease forwards;
|
|
9591
9591
|
}
|
|
9592
9592
|
|
|
9593
9593
|
&.animated-unactive {
|
|
9594
|
-
animation: buttonActive 0.3s ease
|
|
9594
|
+
animation: buttonActive 0.3s ease forwards;
|
|
9595
9595
|
}
|
|
9596
9596
|
|
|
9597
9597
|
@keyframes buttonActive {
|
|
9598
|
-
|
|
9598
|
+
from {
|
|
9599
9599
|
opacity: 1;
|
|
9600
9600
|
}
|
|
9601
|
-
|
|
9601
|
+
to {
|
|
9602
9602
|
opacity: 0;
|
|
9603
9603
|
}
|
|
9604
9604
|
}
|
|
9605
|
+
|
|
9605
9606
|
}
|
|
9606
9607
|
.last-boton {
|
|
9607
9608
|
display: flex;
|
|
@@ -9634,6 +9635,25 @@ const D2 = {
|
|
|
9634
9635
|
color: #ffffff;
|
|
9635
9636
|
}
|
|
9636
9637
|
|
|
9638
|
+
|
|
9639
|
+
&.animated-active {
|
|
9640
|
+
animation: buttonActive 1s ease forwards;
|
|
9641
|
+
}
|
|
9642
|
+
|
|
9643
|
+
&.animated-unactive {
|
|
9644
|
+
animation: buttonActive 0.2s ease forwards;
|
|
9645
|
+
}
|
|
9646
|
+
|
|
9647
|
+
@keyframes buttonActive {
|
|
9648
|
+
from {
|
|
9649
|
+
opacity: 1;
|
|
9650
|
+
}
|
|
9651
|
+
to {
|
|
9652
|
+
opacity: 0;
|
|
9653
|
+
}
|
|
9654
|
+
}
|
|
9655
|
+
|
|
9656
|
+
|
|
9637
9657
|
.icon {
|
|
9638
9658
|
transform: scale(1);
|
|
9639
9659
|
transition-duration: 200ms;
|
|
@@ -9684,10 +9704,13 @@ const D2 = {
|
|
|
9684
9704
|
/* @__PURE__ */ a.jsx("div", { className: "last-boton", children: o && /* @__PURE__ */ a.jsxs(
|
|
9685
9705
|
M2,
|
|
9686
9706
|
{
|
|
9687
|
-
|
|
9707
|
+
className: `${!!i && (i === Z.Surrender ? "animated-active" : "animated-unactive")}`,
|
|
9708
|
+
onClick: () => {
|
|
9709
|
+
t[Z.Surrender].onHandle(), s(Z.Surrender);
|
|
9710
|
+
},
|
|
9688
9711
|
$surrender: !0,
|
|
9689
|
-
$isDisabled: t[
|
|
9690
|
-
disabled: t[
|
|
9712
|
+
$isDisabled: t[Z.Surrender].isDisabled,
|
|
9713
|
+
disabled: t[Z.Surrender].isDisabled,
|
|
9691
9714
|
children: [
|
|
9692
9715
|
/* @__PURE__ */ a.jsx("div", { className: "icon", children: /* @__PURE__ */ a.jsx(ni, { size: n === Xt.Big ? 20 : 12 }) }),
|
|
9693
9716
|
/* @__PURE__ */ a.jsx("p", { className: "name", children: l("Surrender") })
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Xa;function si(){return Xa||(Xa=1,process.env.NODE_ENV!=="production"&&function(){var e=C,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=Symbol.iterator,y="@@iterator";function v(h){if(h===null||typeof h!="object")return null;var x=b&&h[b]||h[y];return typeof x=="function"?x:null}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(h){{for(var x=arguments.length,w=new Array(x>1?x-1:0),T=1;T<x;T++)w[T-1]=arguments[T];I("error",h,w)}}function I(h,x,w){{var T=A.ReactDebugCurrentFrame,K=T.getStackAddendum();K!==""&&(x+="%s",w=w.concat([K]));var
|
|
18
|
-
`+M+h}}var ve=!1,Ne;{var $e=typeof WeakMap=="function"?WeakMap:Map;Ne=new $e}function Ae(h,x){if(!h||ve)return"";{var w=Ne.get(h);if(w!==void 0)return w}var T;ve=!0;var K=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var
|
|
17
|
+
*/var Xa;function si(){return Xa||(Xa=1,process.env.NODE_ENV!=="production"&&function(){var e=C,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=Symbol.iterator,y="@@iterator";function v(h){if(h===null||typeof h!="object")return null;var x=b&&h[b]||h[y];return typeof x=="function"?x:null}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(h){{for(var x=arguments.length,w=new Array(x>1?x-1:0),T=1;T<x;T++)w[T-1]=arguments[T];I("error",h,w)}}function I(h,x,w){{var T=A.ReactDebugCurrentFrame,K=T.getStackAddendum();K!==""&&(x+="%s",w=w.concat([K]));var q=w.map(function(W){return String(W)});q.unshift("Warning: "+x),Function.prototype.apply.call(console[h],console,q)}}var j=!1,D=!1,L=!1,S=!1,O=!1,P;P=Symbol.for("react.module.reference");function R(h){return!!(typeof h=="string"||typeof h=="function"||h===r||h===s||O||h===i||h===d||h===u||S||h===g||j||D||L||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===f||h.$$typeof===o||h.$$typeof===l||h.$$typeof===c||h.$$typeof===P||h.getModuleId!==void 0))}function $(h,x,w){var T=h.displayName;if(T)return T;var K=x.displayName||x.name||"";return K!==""?w+"("+K+")":w}function pe(h){return h.displayName||"Context"}function V(h){if(h==null)return null;if(typeof h.tag=="number"&&k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case u:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case l:var x=h;return pe(x)+".Consumer";case o:var w=h;return pe(w._context)+".Provider";case c:return $(h,h.render,"ForwardRef");case f:var T=h.displayName||null;return T!==null?T:V(h.type)||"Memo";case p:{var K=h,q=K._payload,W=K._init;try{return V(W(q))}catch{return null}}}return null}var Z=Object.assign,ie=0,_,ae,se,N,oe,X,J;function ce(){}ce.__reactDisabledLog=!0;function me(){{if(ie===0){_=console.log,ae=console.info,se=console.warn,N=console.error,oe=console.group,X=console.groupCollapsed,J=console.groupEnd;var h={configurable:!0,enumerable:!0,value:ce,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}ie++}}function we(){{if(ie--,ie===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Z({},h,{value:_}),info:Z({},h,{value:ae}),warn:Z({},h,{value:se}),error:Z({},h,{value:N}),group:Z({},h,{value:oe}),groupCollapsed:Z({},h,{value:X}),groupEnd:Z({},h,{value:J})})}ie<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ce=A.ReactCurrentDispatcher,M;function ke(h,x,w){{if(M===void 0)try{throw Error()}catch(K){var T=K.stack.trim().match(/\n( *(at )?)/);M=T&&T[1]||""}return`
|
|
18
|
+
`+M+h}}var ve=!1,Ne;{var $e=typeof WeakMap=="function"?WeakMap:Map;Ne=new $e}function Ae(h,x){if(!h||ve)return"";{var w=Ne.get(h);if(w!==void 0)return w}var T;ve=!0;var K=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var q;q=Ce.current,Ce.current=null,me();try{if(x){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(ue){T=ue}Reflect.construct(h,[],W)}else{try{W.call()}catch(ue){T=ue}h.call(W.prototype)}}else{try{throw Error()}catch(ue){T=ue}h()}}catch(ue){if(ue&&T&&typeof ue.stack=="string"){for(var F=ue.stack.split(`
|
|
19
19
|
`),de=T.stack.split(`
|
|
20
20
|
`),ee=F.length-1,ne=de.length-1;ee>=1&&ne>=0&&F[ee]!==de[ne];)ne--;for(;ee>=1&&ne>=0;ee--,ne--)if(F[ee]!==de[ne]){if(ee!==1||ne!==1)do if(ee--,ne--,ne<0||F[ee]!==de[ne]){var be=`
|
|
21
|
-
`+F[ee].replace(" at new "," at ");return h.displayName&&be.includes("<anonymous>")&&(be=be.replace("<anonymous>",h.displayName)),typeof h=="function"&&Ne.set(h,be),be}while(ee>=1&&ne>=0);break}}}finally{ve=!1,Ce.current=
|
|
21
|
+
`+F[ee].replace(" at new "," at ");return h.displayName&&be.includes("<anonymous>")&&(be=be.replace("<anonymous>",h.displayName)),typeof h=="function"&&Ne.set(h,be),be}while(ee>=1&&ne>=0);break}}}finally{ve=!1,Ce.current=q,we(),Error.prepareStackTrace=K}var et=h?h.displayName||h.name:"",Ge=et?ke(et):"";return typeof h=="function"&&Ne.set(h,Ge),Ge}function Tc(h,x,w){return Ae(h,!1)}function Dc(h){var x=h.prototype;return!!(x&&x.isReactComponent)}function na(h,x,w){if(h==null)return"";if(typeof h=="function")return Ae(h,Dc(h));if(typeof h=="string")return ke(h);switch(h){case d:return ke("Suspense");case u:return ke("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case c:return Tc(h.render);case f:return na(h.type,x,w);case p:{var T=h,K=T._payload,q=T._init;try{return na(q(K),x,w)}catch{}}}return""}var pt=Object.prototype.hasOwnProperty,Kr={},Yr=A.ReactDebugCurrentFrame;function ra(h){if(h){var x=h._owner,w=na(h.type,h._source,x?x.type:null);Yr.setExtraStackFrame(w)}else Yr.setExtraStackFrame(null)}function Nc(h,x,w,T,K){{var q=Function.call.bind(pt);for(var W in h)if(q(h,W)){var F=void 0;try{if(typeof h[W]!="function"){var de=Error((T||"React class")+": "+w+" type `"+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[W]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw de.name="Invariant Violation",de}F=h[W](x,W,T,w,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ee){F=ee}F&&!(F instanceof Error)&&(ra(K),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",T||"React class",w,W,typeof F),ra(null)),F instanceof Error&&!(F.message in Kr)&&(Kr[F.message]=!0,ra(K),k("Failed %s type: %s",w,F.message),ra(null))}}}var Hc=Array.isArray;function Va(h){return Hc(h)}function Pc(h){{var x=typeof Symbol=="function"&&Symbol.toStringTag,w=x&&h[Symbol.toStringTag]||h.constructor.name||"Object";return w}}function zc(h){try{return Zr(h),!1}catch{return!0}}function Zr(h){return""+h}function Xr(h){if(zc(h))return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Pc(h)),Zr(h)}var qr=A.ReactCurrentOwner,Oc={key:!0,ref:!0,__self:!0,__source:!0},Qr,Jr;function Mc(h){if(pt.call(h,"ref")){var x=Object.getOwnPropertyDescriptor(h,"ref").get;if(x&&x.isReactWarning)return!1}return h.ref!==void 0}function Fc(h){if(pt.call(h,"key")){var x=Object.getOwnPropertyDescriptor(h,"key").get;if(x&&x.isReactWarning)return!1}return h.key!==void 0}function Rc(h,x){typeof h.ref=="string"&&qr.current}function Wc(h,x){{var w=function(){Qr||(Qr=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",x))};w.isReactWarning=!0,Object.defineProperty(h,"key",{get:w,configurable:!0})}}function Gc(h,x){{var w=function(){Jr||(Jr=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",x))};w.isReactWarning=!0,Object.defineProperty(h,"ref",{get:w,configurable:!0})}}var Vc=function(h,x,w,T,K,q,W){var F={$$typeof:t,type:h,key:x,ref:w,props:W,_owner:q};return F._store={},Object.defineProperty(F._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(F,"_self",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.defineProperty(F,"_source",{configurable:!1,enumerable:!1,writable:!1,value:K}),Object.freeze&&(Object.freeze(F.props),Object.freeze(F)),F};function Ec(h,x,w,T,K){{var q,W={},F=null,de=null;w!==void 0&&(Xr(w),F=""+w),Fc(x)&&(Xr(x.key),F=""+x.key),Mc(x)&&(de=x.ref,Rc(x,K));for(q in x)pt.call(x,q)&&!Oc.hasOwnProperty(q)&&(W[q]=x[q]);if(h&&h.defaultProps){var ee=h.defaultProps;for(q in ee)W[q]===void 0&&(W[q]=ee[q])}if(F||de){var ne=typeof h=="function"?h.displayName||h.name||"Unknown":h;F&&Wc(W,ne),de&&Gc(W,ne)}return Vc(h,F,de,K,T,qr.current,W)}}var Ea=A.ReactCurrentOwner,$r=A.ReactDebugCurrentFrame;function _e(h){if(h){var x=h._owner,w=na(h.type,h._source,x?x.type:null);$r.setExtraStackFrame(w)}else $r.setExtraStackFrame(null)}var Ua;Ua=!1;function Ka(h){return typeof h=="object"&&h!==null&&h.$$typeof===t}function _r(){{if(Ea.current){var h=V(Ea.current.type);if(h)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+h+"`."}return""}}function Uc(h){return""}var ei={};function Kc(h){{var x=_r();if(!x){var w=typeof h=="string"?h:h.displayName||h.name;w&&(x=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+w+">.")}return x}}function ti(h,x){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var w=Kc(x);if(ei[w])return;ei[w]=!0;var T="";h&&h._owner&&h._owner!==Ea.current&&(T=" It was passed a child from "+V(h._owner.type)+"."),_e(h),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',w,T),_e(null)}}function ai(h,x){{if(typeof h!="object")return;if(Va(h))for(var w=0;w<h.length;w++){var T=h[w];Ka(T)&&ti(T,x)}else if(Ka(h))h._store&&(h._store.validated=!0);else if(h){var K=v(h);if(typeof K=="function"&&K!==h.entries)for(var
|
|
25
|
+
Check the top-level render call using <`+w+">.")}return x}}function ti(h,x){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var w=Kc(x);if(ei[w])return;ei[w]=!0;var T="";h&&h._owner&&h._owner!==Ea.current&&(T=" It was passed a child from "+V(h._owner.type)+"."),_e(h),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',w,T),_e(null)}}function ai(h,x){{if(typeof h!="object")return;if(Va(h))for(var w=0;w<h.length;w++){var T=h[w];Ka(T)&&ti(T,x)}else if(Ka(h))h._store&&(h._store.validated=!0);else if(h){var K=v(h);if(typeof K=="function"&&K!==h.entries)for(var q=K.call(h),W;!(W=q.next()).done;)Ka(W.value)&&ti(W.value,x)}}}function Yc(h){{var x=h.type;if(x==null||typeof x=="string")return;var w;if(typeof x=="function")w=x.propTypes;else if(typeof x=="object"&&(x.$$typeof===c||x.$$typeof===f))w=x.propTypes;else return;if(w){var T=V(x);Nc(w,h.props,"prop",T,h)}else if(x.PropTypes!==void 0&&!Ua){Ua=!0;var K=V(x);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",K||"Unknown")}typeof x.getDefaultProps=="function"&&!x.getDefaultProps.isReactClassApproved&&k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Zc(h){{for(var x=Object.keys(h.props),w=0;w<x.length;w++){var T=x[w];if(T!=="children"&&T!=="key"){_e(h),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",T),_e(null);break}}h.ref!==null&&(_e(h),k("Invalid attribute `ref` supplied to `React.Fragment`."),_e(null))}}var ni={};function ri(h,x,w,T,K,q){{var W=R(h);if(!W){var F="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(F+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var de=Uc();de?F+=de:F+=_r();var ee;h===null?ee="null":Va(h)?ee="array":h!==void 0&&h.$$typeof===t?(ee="<"+(V(h.type)||"Unknown")+" />",F=" Did you accidentally export a JSX literal instead of a component?"):ee=typeof h,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ee,F)}var ne=Ec(h,x,w,K,q);if(ne==null)return ne;if(W){var be=x.children;if(be!==void 0)if(T)if(Va(be)){for(var et=0;et<be.length;et++)ai(be[et],h);Object.freeze&&Object.freeze(be)}else k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ai(be,h)}if(pt.call(x,"key")){var Ge=V(h),ue=Object.keys(x).filter(function(_c){return _c!=="key"}),Ya=ue.length>0?"{key: someKey, "+ue.join(": ..., ")+": ...}":"{key: someKey}";if(!ni[Ge+Ya]){var $c=ue.length>0?"{"+ue.join(": ..., ")+": ...}":"{}";k(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -73,7 +73,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
73
73
|
|
|
74
74
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
75
75
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
76
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function is(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,s=e.length;i<s;i+=1)r.push(e[i]);return r.forEach(function(o){n=n.replace(/%[a-z]/,o)}),n}function qe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(is.apply(void 0,Pe([rs[e]],t,!1)).trim())}var ss=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,s=i;t>=s;)if((s<<=1)<0)throw qe(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var o=i;o<s;o++)this.groupSizes[o]=0}for(var l=this.indexOfGroup(t+1),c=(o=0,n.length);o<c;o++)this.tag.insertRule(l,n[o])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var s=r;s<i;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),s=i+r,o=i;o<s;o++)n+="".concat(this.tag.getRule(o)).concat(ma);return n},e}(),os=1<<30,Lt=new Map,Bt=new Map,Tt=1,Dt=function(e){if(Lt.has(e))return Lt.get(e);for(;Bt.has(Tt);)Tt++;var t=Tt++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>os))throw qe(16,"".concat(t));return Lt.set(e,t),Bt.set(t,e),t},ls=function(e,t){Tt=t+1,Lt.set(e,t),Bt.set(t,e)},cs="style[".concat(Oe,"][").concat(un,'="').concat(vt,'"]'),ds=new RegExp("^".concat(Oe,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),hs=function(e,t,n){for(var r,i=n.split(","),s=0,o=i.length;s<o;s++)(r=i[s])&&e.registerName(t,r)},us=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(ma),i=[],s=0,o=r.length;s<o;s++){var l=r[s].trim();if(l){var c=l.match(ds);if(c){var d=0|parseInt(c[1],10),u=c[2];d!==0&&(ls(u,d),hs(e,u,c[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(l)}}},In=function(e){for(var t=document.querySelectorAll(cs),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(Oe)!==hn&&(us(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function fs(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Ln=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(l){var c=Array.from(l.querySelectorAll("style[".concat(Oe,"]")));return c[c.length-1]}(n),s=i!==void 0?i.nextSibling:null;r.setAttribute(Oe,hn),r.setAttribute(un,vt);var o=fs();return o&&r.setAttribute("nonce",o),n.insertBefore(r,s),r},ps=function(){function e(t){this.element=Ln(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,s=r.length;i<s;i++){var o=r[i];if(o.ownerNode===n)return o}throw qe(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),ms=function(){function e(t){this.element=Ln(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),gs=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Bn=At,bs={isServer:!At,useCSSOMInjection:!Ui},Tn=function(){function e(t,n,r){t===void 0&&(t=Ye),n===void 0&&(n={});var i=this;this.options=he(he({},bs),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&At&&Bn&&(Bn=!1,In(this)),va(this,function(){return function(s){for(var o=s.getTag(),l=o.length,c="",d=function(f){var p=function(A){return Bt.get(A)}(f);if(p===void 0)return"continue";var g=s.names.get(p),b=o.getGroup(f);if(g===void 0||!g.size||b.length===0)return"continue";var y="".concat(Oe,".g").concat(f,'[id="').concat(p,'"]'),v="";g!==void 0&&g.forEach(function(A){A.length>0&&(v+="".concat(A,","))}),c+="".concat(b).concat(y,'{content:"').concat(v,'"}').concat(ma)},u=0;u<l;u++)d(u);return c}(i)})}return e.registerId=function(t){return Dt(t)},e.prototype.rehydrate=function(){!this.server&&At&&In(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(he(he({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new gs(i):r?new ps(i):new ms(i)}(this.options),new ss(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Dt(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Dt(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Dt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ys=/&/g,xs=/^\s*\/\/.*$/gm;function Dn(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Dn(n.children,t)),n})}function ws(e){var t,n,r,i=Ye,s=i.options,o=s===void 0?Ye:s,l=i.plugins,c=l===void 0?jt:l,d=function(p,g,b){return b.startsWith(n)&&b.endsWith(n)&&b.replaceAll(n,"").length>0?".".concat(t):p},u=c.slice();u.push(function(p){p.type===mt&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(ys,n).replace(r,d))}),o.prefix&&u.push(Vi),u.push(Ri);var f=function(p,g,b,y){g===void 0&&(g=""),b===void 0&&(b=""),y===void 0&&(y="&"),t=y,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var v=p.replace(xs,""),A=Mi(b||g?"".concat(b," ").concat(g," { ").concat(v," }"):v);o.namespace&&(A=Dn(A,o.namespace));var k=[];return kt(A,Wi(u.concat(Gi(function(I){return k.push(I)})))),k};return f.hash=c.length?c.reduce(function(p,g){return g.name||qe(15),Me(p,g.name)},gn).toString():"",f}var Cs=new Tn,Aa=ws(),Nn=C.createContext({shouldForwardProp:void 0,styleSheet:Cs,stylis:Aa});Nn.Consumer,C.createContext(void 0);function Hn(){return C.useContext(Nn)}var Sa=function(){function e(t,n){var r=this;this.inject=function(i,s){s===void 0&&(s=Aa);var o=r.name+s.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,s(r.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,va(this,function(){throw qe(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Aa),this.name+t.hash},e}(),ks=function(e){return e>="A"&&e<="Z"};function Pn(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;ks(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var zn=function(e){return e==null||e===!1||e===""},On=function(e){var t,n,r=[];for(var i in e){var s=e[i];e.hasOwnProperty(i)&&!zn(s)&&(Array.isArray(s)&&s.isCss||Ze(s)?r.push("".concat(Pn(i),":"),s,";"):Xe(s)?r.push.apply(r,Pe(Pe(["".concat(i," {")],On(s),!1),["}"],!1)):r.push("".concat(Pn(i),": ").concat((t=i,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Ei||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Re(e,t,n,r){if(zn(e))return[];if(wa(e))return[".".concat(e.styledComponentId)];if(Ze(e)){if(!Ze(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof Sa||Xe(i)||i===null||console.error("".concat(xn(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Re(i,t,n,r)}var s;return e instanceof Sa?n?(e.inject(n,r),[e.getName(r)]):[e]:Xe(e)?On(e):Array.isArray(e)?Array.prototype.concat.apply(jt,e.map(function(o){return Re(o,t,n,r)})):[e.toString()]}function vs(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ze(n)&&!wa(n))return!1}return!0}var As=bn(vt),Ss=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&vs(t),this.componentId=n,this.baseHash=Me(As,n),this.baseStyle=r,Tn.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=Fe(i,this.staticRulesId);else{var s=Ca(Re(this.rules,t,n,r)),o=ba(Me(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,o)){var l=r(s,".".concat(o),void 0,this.componentId);n.insertRules(this.componentId,o,l)}i=Fe(i,o),this.staticRulesId=o}else{for(var c=Me(this.baseHash,r.hash),d="",u=0;u<this.rules.length;u++){var f=this.rules[u];if(typeof f=="string")d+=f,process.env.NODE_ENV!=="production"&&(c=Me(c,f));else if(f){var p=Ca(Re(f,t,n,r));c=Me(c,p+u),d+=p}}if(d){var g=ba(c>>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(d,".".concat(g),void 0,this.componentId)),i=Fe(i,g)}}return i},e}(),Mn=C.createContext(void 0);Mn.Consumer;var ja={},Fn=new Set;function js(e,t,n){var r=wa(e),i=e,s=!xa(e),o=t.attrs,l=o===void 0?jt:o,c=t.componentId,d=c===void 0?function(j,D){var L=typeof j!="string"?"sc":pn(j);ja[L]=(ja[L]||0)+1;var S="".concat(L,"-").concat(yn(vt+L+ja[L]));return D?"".concat(D,"-").concat(S):S}(t.displayName,t.parentComponentId):c,u=t.displayName,f=u===void 0?function(j){return xa(j)?"styled.".concat(j):"Styled(".concat(xn(j),")")}(e):u,p=t.displayName&&t.componentId?"".concat(pn(t.displayName),"-").concat(t.componentId):t.componentId||d,g=r&&i.attrs?i.attrs.concat(l).filter(Boolean):l,b=t.shouldForwardProp;if(r&&i.shouldForwardProp){var y=i.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;b=function(j,D){return y(j,D)&&v(j,D)}}else b=y}var A=new Ss(n,p,r?i.componentStyle:void 0);function k(j,D){return function(L,S,O){var P=L.attrs,R=L.componentStyle,$=L.defaultProps,pe=L.foldedComponentIds,V=L.styledComponentId,Y=L.target,ie=C.useContext(Mn),_=Hn(),ae=L.shouldForwardProp||_.shouldForwardProp;process.env.NODE_ENV!=="production"&&C.useDebugValue(V);var se=Yi(S,ie,$)||Ye,N=function(we,Ce,M){for(var ke,ve=he(he({},Ce),{className:void 0,theme:M}),Ne=0;Ne<we.length;Ne+=1){var $e=Ze(ke=we[Ne])?ke(ve):ke;for(var Ae in $e)ve[Ae]=Ae==="className"?Fe(ve[Ae],$e[Ae]):Ae==="style"?he(he({},ve[Ae]),$e[Ae]):$e[Ae]}return Ce.className&&(ve.className=Fe(ve.className,Ce.className)),ve}(P,S,se),oe=N.as||Y,Z={};for(var J in N)N[J]===void 0||J[0]==="$"||J==="as"||J==="theme"&&N.theme===se||(J==="forwardedAs"?Z.as=N.forwardedAs:ae&&!ae(J,oe)||(Z[J]=N[J],ae||process.env.NODE_ENV!=="development"||Ai(J)||Fn.has(J)||!ga.has(oe)||(Fn.add(J),console.warn('styled-components: it looks like an unknown prop "'.concat(J,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var ce=function(we,Ce){var M=Hn(),ke=we.generateAndInjectStyles(Ce,M.styleSheet,M.stylis);return process.env.NODE_ENV!=="production"&&C.useDebugValue(ke),ke}(R,N);process.env.NODE_ENV!=="production"&&L.warnTooManyClasses&&L.warnTooManyClasses(ce);var me=Fe(pe,V);return ce&&(me+=" "+ce),N.className&&(me+=" "+N.className),Z[xa(oe)&&!ga.has(oe)?"class":"className"]=me,O&&(Z.ref=O),C.createElement(oe,Z)}(I,j,D)}k.displayName=f;var I=C.forwardRef(k);return I.attrs=g,I.componentStyle=A,I.displayName=f,I.shouldForwardProp=b,I.foldedComponentIds=r?Fe(i.foldedComponentIds,i.styledComponentId):"",I.styledComponentId=p,I.target=r?i.target:e,Object.defineProperty(I,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(j){this._foldedDefaultProps=r?function(D){for(var L=[],S=1;S<arguments.length;S++)L[S-1]=arguments[S];for(var O=0,P=L;O<P.length;O++)ka(D,P[O],!0);return D}({},i.defaultProps,j):j}}),process.env.NODE_ENV!=="production"&&(Ki(f,p),I.warnTooManyClasses=function(j,D){var L={},S=!1;return function(O){if(!S&&(L[O]=!0,Object.keys(L).length>=200)){var P=D?' with the id of "'.concat(D,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(j).concat(P,`.
|
|
76
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function is(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,s=e.length;i<s;i+=1)r.push(e[i]);return r.forEach(function(o){n=n.replace(/%[a-z]/,o)}),n}function qe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(is.apply(void 0,Pe([rs[e]],t,!1)).trim())}var ss=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,s=i;t>=s;)if((s<<=1)<0)throw qe(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var o=i;o<s;o++)this.groupSizes[o]=0}for(var l=this.indexOfGroup(t+1),c=(o=0,n.length);o<c;o++)this.tag.insertRule(l,n[o])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var s=r;s<i;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),s=i+r,o=i;o<s;o++)n+="".concat(this.tag.getRule(o)).concat(ma);return n},e}(),os=1<<30,Lt=new Map,Bt=new Map,Tt=1,Dt=function(e){if(Lt.has(e))return Lt.get(e);for(;Bt.has(Tt);)Tt++;var t=Tt++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>os))throw qe(16,"".concat(t));return Lt.set(e,t),Bt.set(t,e),t},ls=function(e,t){Tt=t+1,Lt.set(e,t),Bt.set(t,e)},cs="style[".concat(Oe,"][").concat(un,'="').concat(vt,'"]'),ds=new RegExp("^".concat(Oe,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),hs=function(e,t,n){for(var r,i=n.split(","),s=0,o=i.length;s<o;s++)(r=i[s])&&e.registerName(t,r)},us=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(ma),i=[],s=0,o=r.length;s<o;s++){var l=r[s].trim();if(l){var c=l.match(ds);if(c){var d=0|parseInt(c[1],10),u=c[2];d!==0&&(ls(u,d),hs(e,u,c[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(l)}}},In=function(e){for(var t=document.querySelectorAll(cs),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(Oe)!==hn&&(us(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function fs(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Ln=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(l){var c=Array.from(l.querySelectorAll("style[".concat(Oe,"]")));return c[c.length-1]}(n),s=i!==void 0?i.nextSibling:null;r.setAttribute(Oe,hn),r.setAttribute(un,vt);var o=fs();return o&&r.setAttribute("nonce",o),n.insertBefore(r,s),r},ps=function(){function e(t){this.element=Ln(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,s=r.length;i<s;i++){var o=r[i];if(o.ownerNode===n)return o}throw qe(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),ms=function(){function e(t){this.element=Ln(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),gs=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Bn=At,bs={isServer:!At,useCSSOMInjection:!Ui},Tn=function(){function e(t,n,r){t===void 0&&(t=Ye),n===void 0&&(n={});var i=this;this.options=he(he({},bs),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&At&&Bn&&(Bn=!1,In(this)),va(this,function(){return function(s){for(var o=s.getTag(),l=o.length,c="",d=function(f){var p=function(A){return Bt.get(A)}(f);if(p===void 0)return"continue";var g=s.names.get(p),b=o.getGroup(f);if(g===void 0||!g.size||b.length===0)return"continue";var y="".concat(Oe,".g").concat(f,'[id="').concat(p,'"]'),v="";g!==void 0&&g.forEach(function(A){A.length>0&&(v+="".concat(A,","))}),c+="".concat(b).concat(y,'{content:"').concat(v,'"}').concat(ma)},u=0;u<l;u++)d(u);return c}(i)})}return e.registerId=function(t){return Dt(t)},e.prototype.rehydrate=function(){!this.server&&At&&In(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(he(he({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new gs(i):r?new ps(i):new ms(i)}(this.options),new ss(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Dt(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Dt(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Dt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ys=/&/g,xs=/^\s*\/\/.*$/gm;function Dn(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Dn(n.children,t)),n})}function ws(e){var t,n,r,i=Ye,s=i.options,o=s===void 0?Ye:s,l=i.plugins,c=l===void 0?jt:l,d=function(p,g,b){return b.startsWith(n)&&b.endsWith(n)&&b.replaceAll(n,"").length>0?".".concat(t):p},u=c.slice();u.push(function(p){p.type===mt&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(ys,n).replace(r,d))}),o.prefix&&u.push(Vi),u.push(Ri);var f=function(p,g,b,y){g===void 0&&(g=""),b===void 0&&(b=""),y===void 0&&(y="&"),t=y,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var v=p.replace(xs,""),A=Mi(b||g?"".concat(b," ").concat(g," { ").concat(v," }"):v);o.namespace&&(A=Dn(A,o.namespace));var k=[];return kt(A,Wi(u.concat(Gi(function(I){return k.push(I)})))),k};return f.hash=c.length?c.reduce(function(p,g){return g.name||qe(15),Me(p,g.name)},gn).toString():"",f}var Cs=new Tn,Aa=ws(),Nn=C.createContext({shouldForwardProp:void 0,styleSheet:Cs,stylis:Aa});Nn.Consumer,C.createContext(void 0);function Hn(){return C.useContext(Nn)}var Sa=function(){function e(t,n){var r=this;this.inject=function(i,s){s===void 0&&(s=Aa);var o=r.name+s.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,s(r.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,va(this,function(){throw qe(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Aa),this.name+t.hash},e}(),ks=function(e){return e>="A"&&e<="Z"};function Pn(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;ks(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var zn=function(e){return e==null||e===!1||e===""},On=function(e){var t,n,r=[];for(var i in e){var s=e[i];e.hasOwnProperty(i)&&!zn(s)&&(Array.isArray(s)&&s.isCss||Ze(s)?r.push("".concat(Pn(i),":"),s,";"):Xe(s)?r.push.apply(r,Pe(Pe(["".concat(i," {")],On(s),!1),["}"],!1)):r.push("".concat(Pn(i),": ").concat((t=i,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Ei||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Re(e,t,n,r){if(zn(e))return[];if(wa(e))return[".".concat(e.styledComponentId)];if(Ze(e)){if(!Ze(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof Sa||Xe(i)||i===null||console.error("".concat(xn(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Re(i,t,n,r)}var s;return e instanceof Sa?n?(e.inject(n,r),[e.getName(r)]):[e]:Xe(e)?On(e):Array.isArray(e)?Array.prototype.concat.apply(jt,e.map(function(o){return Re(o,t,n,r)})):[e.toString()]}function vs(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ze(n)&&!wa(n))return!1}return!0}var As=bn(vt),Ss=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&vs(t),this.componentId=n,this.baseHash=Me(As,n),this.baseStyle=r,Tn.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=Fe(i,this.staticRulesId);else{var s=Ca(Re(this.rules,t,n,r)),o=ba(Me(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,o)){var l=r(s,".".concat(o),void 0,this.componentId);n.insertRules(this.componentId,o,l)}i=Fe(i,o),this.staticRulesId=o}else{for(var c=Me(this.baseHash,r.hash),d="",u=0;u<this.rules.length;u++){var f=this.rules[u];if(typeof f=="string")d+=f,process.env.NODE_ENV!=="production"&&(c=Me(c,f));else if(f){var p=Ca(Re(f,t,n,r));c=Me(c,p+u),d+=p}}if(d){var g=ba(c>>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(d,".".concat(g),void 0,this.componentId)),i=Fe(i,g)}}return i},e}(),Mn=C.createContext(void 0);Mn.Consumer;var ja={},Fn=new Set;function js(e,t,n){var r=wa(e),i=e,s=!xa(e),o=t.attrs,l=o===void 0?jt:o,c=t.componentId,d=c===void 0?function(j,D){var L=typeof j!="string"?"sc":pn(j);ja[L]=(ja[L]||0)+1;var S="".concat(L,"-").concat(yn(vt+L+ja[L]));return D?"".concat(D,"-").concat(S):S}(t.displayName,t.parentComponentId):c,u=t.displayName,f=u===void 0?function(j){return xa(j)?"styled.".concat(j):"Styled(".concat(xn(j),")")}(e):u,p=t.displayName&&t.componentId?"".concat(pn(t.displayName),"-").concat(t.componentId):t.componentId||d,g=r&&i.attrs?i.attrs.concat(l).filter(Boolean):l,b=t.shouldForwardProp;if(r&&i.shouldForwardProp){var y=i.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;b=function(j,D){return y(j,D)&&v(j,D)}}else b=y}var A=new Ss(n,p,r?i.componentStyle:void 0);function k(j,D){return function(L,S,O){var P=L.attrs,R=L.componentStyle,$=L.defaultProps,pe=L.foldedComponentIds,V=L.styledComponentId,Z=L.target,ie=C.useContext(Mn),_=Hn(),ae=L.shouldForwardProp||_.shouldForwardProp;process.env.NODE_ENV!=="production"&&C.useDebugValue(V);var se=Yi(S,ie,$)||Ye,N=function(we,Ce,M){for(var ke,ve=he(he({},Ce),{className:void 0,theme:M}),Ne=0;Ne<we.length;Ne+=1){var $e=Ze(ke=we[Ne])?ke(ve):ke;for(var Ae in $e)ve[Ae]=Ae==="className"?Fe(ve[Ae],$e[Ae]):Ae==="style"?he(he({},ve[Ae]),$e[Ae]):$e[Ae]}return Ce.className&&(ve.className=Fe(ve.className,Ce.className)),ve}(P,S,se),oe=N.as||Z,X={};for(var J in N)N[J]===void 0||J[0]==="$"||J==="as"||J==="theme"&&N.theme===se||(J==="forwardedAs"?X.as=N.forwardedAs:ae&&!ae(J,oe)||(X[J]=N[J],ae||process.env.NODE_ENV!=="development"||Ai(J)||Fn.has(J)||!ga.has(oe)||(Fn.add(J),console.warn('styled-components: it looks like an unknown prop "'.concat(J,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var ce=function(we,Ce){var M=Hn(),ke=we.generateAndInjectStyles(Ce,M.styleSheet,M.stylis);return process.env.NODE_ENV!=="production"&&C.useDebugValue(ke),ke}(R,N);process.env.NODE_ENV!=="production"&&L.warnTooManyClasses&&L.warnTooManyClasses(ce);var me=Fe(pe,V);return ce&&(me+=" "+ce),N.className&&(me+=" "+N.className),X[xa(oe)&&!ga.has(oe)?"class":"className"]=me,O&&(X.ref=O),C.createElement(oe,X)}(I,j,D)}k.displayName=f;var I=C.forwardRef(k);return I.attrs=g,I.componentStyle=A,I.displayName=f,I.shouldForwardProp=b,I.foldedComponentIds=r?Fe(i.foldedComponentIds,i.styledComponentId):"",I.styledComponentId=p,I.target=r?i.target:e,Object.defineProperty(I,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(j){this._foldedDefaultProps=r?function(D){for(var L=[],S=1;S<arguments.length;S++)L[S-1]=arguments[S];for(var O=0,P=L;O<P.length;O++)ka(D,P[O],!0);return D}({},i.defaultProps,j):j}}),process.env.NODE_ENV!=="production"&&(Ki(f,p),I.warnTooManyClasses=function(j,D){var L={},S=!1;return function(O){if(!S&&(L[O]=!0,Object.keys(L).length>=200)){var P=D?' with the id of "'.concat(D,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(j).concat(P,`.
|
|
77
77
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
78
78
|
Example:
|
|
79
79
|
const Component = styled.div.attrs(props => ({
|
|
@@ -219,7 +219,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Nt]+=1);const Is=m.div`
|
|
|
219
219
|
accent-color: #aef;
|
|
220
220
|
cursor: pointer;
|
|
221
221
|
${({$isSettings:e})=>e&&"width: 120px"}
|
|
222
|
-
`,Ta=({isSettings:e,volumeTitle:t,volume:n,setVolume:r})=>{const{t:i}=E();return a.jsxs(zs,{$isSettings:e,children:[a.jsx("p",{children:i(t??"")}),a.jsx(Os,{min:0,max:100,step:.01,value:n,onClick:s=>s.stopPropagation(),onChange:s=>{s.preventDefault(),r(parseFloat(s.target.value))},$isSettings:e})]})},it=({icon:e,onClick:t,buttonInfo:n,isActive:r,isValueButton:i=!1,width:s=32,height:o=32,text:l,textStyle:c,isActiveBlue:d,streamVolume:u,setStreamVolume:f,isHoverActive:p=!0,positonHover:g="bottom"})=>{const[b,y]=C.useState(!1),{t:v}=E(),A=()=>{if(n)return a.jsxs(Ds,{$positonHover:g,"data-testid":"button-info",children:[a.jsx(Ps,{position:g}),v(n)]});if(i&&f&&typeof u=="number")return a.jsx(Ns,{children:a.jsx(Ta,{setVolume:f,volume:u})})};return a.jsx(a.Fragment,{children:a.jsxs(Ts,{width:s,height:o,$isValueButton:i,$isActive:r,$isActiveBlue:d,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),onClick:t,"data-testid":"custom-button",$isTournament:n==="Tournament",$isHoverActive:p,children:[c&&l&&a.jsx("p",{className:c,children:v(l)}),e,b&&!r&&A()]})})},Ms=(e,t)=>{const n=e.reduce((i,s,o)=>s===t||s<t?i=o:i,0);return[["#D8B30F","#E8BE01","#ECCB37"],["#1C5A2A","#216D32","#31A049"],["#7A2525","#7E2626","#B33636"],["#1E2C5E","#1F3164","#2E4091"],["#3886CA","#2E97F2","#53AFFF"],["#1A1A1A","#2A2A2A","#404040"],["#64167E","#7A1CA5","#910AD4"],["#CB5621","#D25C21","#F06428"],["#C63EC3","#E258D4","#F065DB"]][n]},Un=e=>e>999999999?`${Ht(e/1e9)}B`:e>999999?`${Ht(e/1e6)}M`:e>999?`${Ht(e/1e3)}K`:Ht(e),Ht=e=>new Intl.NumberFormat("ru").format(Number(e)),Fs=[{x:10,y:2,size:0},{x:2,y:2,size:0},{x:2,y:-1,size:-.6},{x:0,y:-2,size:-.8},{x:0,y:-2,size:-1},{x:0,y:-3,size:-1.1},{x:0,y:-3,size:-1.2},{x:0,y:-3,size:-1.3}],Da={x:15,y:40,size:1.8},Rs=e=>{const t=e.length,n=e[t-1],r=n==="K"||n==="M"||n==="B";let i;return r&&t===2?i={x:2,y:0,size:-.4}:i=Fs[t-1]??{x:0,y:0,size:0},{x:Da.x+i.x,y:Da.y+i.y,size:Da.size+i.size}},st=({chipAmounts:e,amount:t,width:n=64,height:r=67,isDisabled:i=!1,onClick:s})=>{const o=Ms(e,t),l=Un(t),c=Rs(l);return a.jsxs("svg",{onClick:()=>!!s&&s(t),width:n,height:r,viewBox:"0 0 64 67",xmlns:"http://www.w3.org/2000/svg",fill:o[1],style:{cursor:"pointer"},className:i?"disabled":"",children:[a.jsx("path",{d:"M64 32.9821C64 35.9872 63.5861 38.8956 62.8119 41.6533C61.2245 47.3133 58.1211 52.3385 53.9679 56.2619C50.2148 59.8095 45.6054 62.4566 40.4815 63.862C37.7805 64.6035 34.9367 64.9992 32 64.9992C29.0633 64.9992 26.0996 64.5866 23.3472 63.8144C17.976 62.3091 13.1762 59.4361 9.34626 55.5949C5.33359 51.5709 2.38533 46.4842 0.959201 40.7927C0.332533 38.2932 0 35.6768 0 32.9821C0 30.7107 0.236536 28.4947 0.685802 26.3578C1.89767 20.5941 4.65854 15.4021 8.51301 11.2367C12.5203 6.90531 17.7095 3.685 23.5684 2.08829C25.3509 1.6019 27.1955 1.26612 29.0878 1.09554C29.4073 1.06788 29.7283 1.04559 30.0486 1.02869C32.0054 1.0041 33.9253 0.92726 35.8644 1.20311C36.1847 1.23769 36.5003 1.27918 36.8144 1.32452C38.133 1.52353 39.4256 1.80322 40.6858 2.15822C46.4149 3.77106 51.4927 6.93912 55.4348 11.1799C59.3207 15.3591 62.1023 20.5788 63.3173 26.3755C63.765 28.507 64 30.7169 64 32.9821Z",fill:`url(#paint0_linear_757_1992_${t})`},t),a.jsx("g",{filter:`url(#filter0_d_757_1992_${t})`,children:a.jsx("path",{d:"M40.6858 2.15919L39.5684 5.86051C37.1201 5.17665 34.5866 4.83164 32 4.83164C29.4135 4.83164 27.0535 5.1536 24.682 5.79136L23.5684 2.08927C25.3509 1.60288 27.1956 1.2671 29.0879 1.09651C29.4073 1.06885 29.7284 1.04657 30.0486 1.02966C32.0054 1.00508 33.9253 0.928237 35.8645 1.20409C36.1847 1.23867 36.5004 1.28016 36.8145 1.32549C38.1331 1.52451 39.4256 1.8042 40.6858 2.15919Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter1_d_757_1992_${t})`,children:a.jsx("path",{d:"M40.4815 63.8627C37.7806 64.6042 34.9367 64.9999 32 64.9999C29.0633 64.9999 26.0997 64.5873 23.3472 63.815L24.4539 60.146C26.8953 60.826 29.4219 61.1687 32 61.1687C34.5781 61.1687 36.988 60.8414 39.3779 60.1929L40.4815 63.8627Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter2_d_757_1992_${t})`,children:a.jsx("path",{d:"M62.5692 42.4202C60.8367 48.0372 57.6051 52.981 53.352 56.796L50.8691 53.8731C51.0404 53.7178 51.2109 53.5596 51.3783 53.4005C54.0301 50.881 56.1367 47.9219 57.6396 44.6048C58.1211 43.5429 58.5335 42.4579 58.8768 41.3545L62.5685 42.4202H62.5692Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter3_d_757_1992_${t})`,children:a.jsx("path",{d:"M12.4527 53.4964C12.6393 53.6754 12.8282 53.8513 13.0187 54.0242L10.5696 56.8811C6.33424 53.0468 3.12487 48.0884 1.41766 42.4638L5.01563 41.4419C5.352 42.5384 5.75749 43.6164 6.23133 44.6722C7.71967 47.9962 9.81394 50.9645 12.4527 53.4964Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter4_d_757_1992_${t})`,children:a.jsx("path",{d:"M62.6936 24.174L59.0396 25.1283C58.7355 24.081 58.3692 23.0491 57.9406 22.0356C56.523 18.6816 54.4932 15.6687 51.9074 13.0816C51.6955 12.8695 51.4804 12.6613 51.2623 12.4569L53.8496 9.56543C58.0028 13.4888 61.1062 18.5141 62.6936 24.174Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter5_d_757_1992_${t})`,children:a.jsx("path",{d:"M12.6662 12.523C12.4727 12.7058 12.2807 12.8925 12.0918 13.0816C9.50678 15.6687 7.47625 18.6816 6.05857 22.0356C5.6262 23.0591 5.25603 24.101 4.95038 25.1598L1.17578 24.174C2.76319 18.5141 5.86657 13.4888 10.0198 9.56543L12.6662 12.523Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter6_d_757_1992_${t})`,children:a.jsx("path",{d:"M50.3354 32.9998C50.3354 22.868 42.1264 14.6546 32 14.6546C21.8737 14.6546 13.6646 22.868 13.6646 32.9998C13.6646 43.1316 21.8737 51.3451 32 51.3451C42.1264 51.3451 50.3354 43.1316 50.3354 32.9998ZM53.4073 32.9998C53.4073 44.8291 43.823 54.4186 32 54.4186C20.1771 54.4186 10.5927 44.8291 10.5927 32.9998C10.5927 21.1706 20.1771 11.5811 32 11.5811C43.823 11.5811 53.4073 21.1706 53.4073 32.9998Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter7_d_757_1992_${t})`,children:a.jsx("path",{d:"M47.3047 7.29899L44.6224 7.75146L45.0747 10.4352L47.757 9.98274L47.3047 7.29899Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter8_d_757_1992_${t})`,children:a.jsx("path",{d:"M59.8872 31.6251L57.9756 33.5376L59.8872 35.4501L61.7987 33.5376L59.8872 31.6251Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter9_d_757_1992_${t})`,children:a.jsx("path",{d:"M16.6074 7.29867L16.1552 9.98242L18.8375 10.4349L19.2897 7.75115L16.6074 7.29867Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter10_d_757_1992_${t})`,children:a.jsx("path",{d:"M19.1639 55.6978L16.5338 56.3921L17.2277 59.0237L19.8579 58.3294L19.1639 55.6978Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter11_d_757_1992_${t})`,children:a.jsx("path",{d:"M44.8533 55.6221L44.0948 58.2358L46.7071 58.9947L47.4656 56.381L44.8533 55.6221Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter12_d_757_1992_${t})`,children:a.jsx("path",{d:"M4.02411 31.6256L2.11261 33.5381L4.02411 35.4506L5.93562 33.5381L4.02411 31.6256Z",fill:"white"})}),a.jsxs("defs",{children:[a.jsxs("filter",{id:`filter0_d_757_1992_${t}`,x:"22.8004",y:"0.616977",width:"18.6534",height:"6.39538",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter1_d_757_1992_${t}`,x:"22.5792",y:"59.762",width:"18.6703",height:"6.39",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter2_d_757_1992_${t}`,x:"50.1011",y:"40.9705",width:"13.2361",height:"16.9774",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter3_d_757_1992_${t}`,x:"0.649664",y:"41.0579",width:"13.137",height:"16.975",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter4_d_757_1992_${t}`,x:"50.4943",y:"9.18143",width:"12.9673",height:"17.099",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter5_d_757_1992_${t}`,x:"0.407781",y:"9.18143",width:"13.0264",height:"17.1302",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter6_d_757_1992_${t}`,x:"9.82471",y:"11.1971",width:"44.3506",height:"44.3734",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter7_d_757_1992_${t}`,x:"43.8544",y:"6.91483",width:"4.67052",height:"4.67223",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter8_d_757_1992_${t}`,x:"57.2076",y:"31.241",width:"5.359",height:"5.3612",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter9_d_757_1992_${t}`,x:"15.3872",y:"6.91483",width:"4.67052",height:"4.67223",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter10_d_757_1992_${t}`,x:"15.7658",y:"55.3138",width:"4.8601",height:"4.86168",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter11_d_757_1992_${t}`,x:"43.3268",y:"55.2381",width:"4.90673",height:"4.90856",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter12_d_757_1992_${t}`,x:"1.34461",y:"31.2415",width:"5.359",height:"5.3612",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("linearGradient",{id:`paint0_linear_757_1992_${t}`,x1:"47.6882",y1:"59.7588",x2:"7.98215",y2:"-7.93826",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{offset:"0.12",stopColor:o[0]}),a.jsx("stop",{offset:"0.31",stopColor:o[1]}),a.jsx("stop",{offset:"0.69",stopColor:o[2]})]})]}),a.jsx("text",{style:{fontSize:`${c==null?void 0:c.size}em`},className:"amount",fill:"#fff",children:a.jsx("tspan",{y:c==null?void 0:c.y,x:c==null?void 0:c.x,children:l})})]},t)};var Kn=(e=>(e.Launch="launch",e.GameChange="GameChange",e.SendMessage="SendMessage",e.GetBalance="GetBalance",e.PlaceBet="PlaceBet",e.GetPlayerState="GetPlayerState",e.PlaceBetBulk="PlaceBetBulk",e.SitOutPlayer="SitOutPlayer",e.SetNickname="SetNickname",e.GetHistory="GetHistory",e.SendTip="SendTip",e.ChangeDealerLanguage="ChangeDealerLanguage",e))(Kn||{});const Ws={undoArray:"undoArray"},Gs="https://livelobby8.livevegas.live",Na=(e,t,n)=>{const{tableId:r,gameId:i,lang:s,playerId:o,token:l,exitUrl:c}=n;localStorage.setItem(Ws.undoArray,JSON.stringify([])),t==null||t.invoke(Kn.SitOutPlayer,{tableId:Number(r),gameId:Number(i)});const d={name:"closed",sender:"game"},f={name:"closeFrame",url:`${Gs}/?lang=${s}&playerId=${o}&token=${l}&gameId=${i}&gameType=8&exitUrl=${c}&partnerId=${e}`};window.parent.postMessage(d,"*"),window.parent.postMessage(f,"*"),window.parent.postMessage("closeGame","*")},Yn=e=>{const t=new Date(e.calculationEndDate),n=new Date,r=t.getTime()-n.getTime();return r<=0?{days:0,hours:0,minutes:0,seconds:0}:{days:Math.floor(r/(1e3*60*60*24)),hours:Math.floor(r/(1e3*60*60)%24),minutes:Math.floor(r/1e3/60%60),seconds:Math.floor(r/1e3%60)}},Vs={1:"Session not found, try to log in again.",2:"Please return to the site and log in again.",3:"Please return to the site and log in again.",4:"Player blocked",5:"Not enough balance",8:"Currency is wrong, please refresh the page",11:"Incorrect credentials",21:"Nickname already exists",22:"Nickname is not allowed",31:"Chat is blocked",33:"Bet Amount is less or greater from limits",35:"Nick already selected",52:"The loss limit reached",54:"Round has been canceled!",506:"Insurance Is Not Allowed",508:"Player Invalid State",525:"Bet Is Not Accepted",999:"Something went wrong"};var De=(e=>(e[e.Money=1]="Money",e[e.Cashback=2]="Cashback",e[e.Rakeback=3]="Rakeback",e[e.FreeSpin=4]="FreeSpin",e[e.Tournament=5]="Tournament",e))(De||{});function Zn(e){return{USD:"$",RUB:"₽",AMD:"֏",AOA:"AOA",AZN:"₼",BAM:"BAM",BGN:"BGN",BIF:"BIF",BMD:"BD$",BND:"B$",BOB:"BOB",BRL:"R$",BTC:"₿",CDF:"FC",CNY:"¥",CRC:"₡",CZK:"CZK",DKK:"kr",DOP:"RD$",EGP:"E£",ETB:"Br",ETH:"Ξ",EUR:"€",GBP:"£",GEL:"₾",GTQ:"Q",HKD:"HK$",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",INR:"₹",JMD:"J$",JPY:"¥",KES:"KSh",KGS:"KGS",KHR:"៛",KRW:"₩",KWD:"ك",KZT:"₸",LAT:"Ls",LTL:"Lt",LVL:"Ls",MAD:"dh",MET:"MT",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MUR:"₨",NGN:"₦",NIS:"₪",NPR:"रू",PKR:"Rs",PLN:"zł",QAR:"ر.ق",RMB:"¥",RON:"lei",RDS:"дин",RWF:"R₣",SAO:"Db",SEK:"kr",SGD:"S$",SSP:"SS£",SYP:"SYP",THB:"฿",TRY:"₺",TWD:"NT$",UAH:"₴",USDT:"USD₮",UYU:"$U",VEF:"Bs",VND:"₫",XAF:"FCFA",XOF:"CFA",ZAR:"R",ZMW:"ZK"}[e]||e}var Ha=(e=>(e[e.BetConstruct=2]="BetConstruct",e[e.PokerDom=32]="PokerDom",e[e.Test=49]="Test",e[e.BetArabia=67]="BetArabia",e[e.Betrupi=69]="Betrupi",e[e.Galabet=155]="Galabet",e[e.Lynon=156]="Lynon",e[e.Demo=160]="Demo",e[e.HiltonBet=204]="HiltonBet",e))(Ha||{});const Xn=()=>a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M8 0.818001C9.44828 0.818026 10.8627 1.25591 12.0577 2.07417C13.2526 2.89244 14.1723 4.05286 14.696 5.40315C15.2196 6.75343 15.3228 8.23049 14.992 9.64048C14.6612 11.0505 13.9118 12.3275 12.8423 13.304C11.7727 14.2805 10.4329 14.9108 8.99872 15.1122C7.56452 15.3136 6.10294 15.0767 4.80577 14.4326C3.50861 13.7885 2.43649 12.7673 1.7301 11.503C1.02371 10.2387 0.716059 8.79033 0.84753 7.34803C0.856961 7.24366 0.886859 7.14216 0.935515 7.04934C0.984172 6.95652 1.05063 6.87419 1.13111 6.80706C1.21158 6.73992 1.30449 6.68929 1.40453 6.65806C1.50457 6.62683 1.60978 6.61561 1.71416 6.62505C1.81853 6.63448 1.92003 6.66438 2.01285 6.71303C2.10567 6.76169 2.188 6.82815 2.25514 6.90862C2.32227 6.9891 2.3729 7.08201 2.40413 7.18205C2.43536 7.28209 2.44658 7.3873 2.43715 7.49167C2.36041 8.30778 2.46522 9.13074 2.74405 9.90156C3.02288 10.6724 3.46883 11.372 4.0499 11.9501C4.34915 12.2494 4.68192 12.5143 5.04102 12.7385C5.9304 13.2937 6.95809 13.5875 8.00654 13.5861C9.055 13.5847 10.0819 13.2882 10.9698 12.7307C11.8577 12.1731 12.5708 11.3769 13.0274 10.4331C13.4841 9.48932 13.6659 8.43606 13.5521 7.3938C13.4383 6.35153 13.0335 5.36233 12.384 4.53932C11.7344 3.71632 10.8663 3.09274 9.87901 2.7399C8.89171 2.38706 7.82503 2.3192 6.80097 2.54409C5.77692 2.76898 4.83682 3.27754 4.08821 4.0116L5.20541 4.01239C5.40996 4.011 5.60725 4.08821 5.75651 4.22808C5.90578 4.36796 5.99563 4.55981 6.00751 4.76403C6.01939 4.96825 5.95239 5.16923 5.82035 5.32547C5.68831 5.48171 5.50132 5.58127 5.29798 5.60361L5.20541 5.60839H2.01181C1.81635 5.60837 1.6277 5.53661 1.48164 5.40673C1.33558 5.27685 1.24227 5.09787 1.2194 4.90376L1.21381 4.81039V1.61839C1.21241 1.41384 1.28963 1.21655 1.4295 1.06729C1.56938 0.918021 1.76123 0.82817 1.96545 0.816289C2.16966 0.804409 2.37065 0.871407 2.52689 1.00345C2.68313 1.13549 2.78269 1.32249 2.80502 1.52583L2.80981 1.61919V3.03484C3.47991 2.33336 4.28542 1.7752 5.17756 1.39415C6.0697 1.01309 7.0299 0.817089 8 0.818001ZM7.4015 4.01C7.54613 4.01001 7.68586 4.06238 7.79486 4.15744C7.90386 4.25251 7.97475 4.38382 7.99442 4.5271L8 4.6085V8H9.7955C9.94714 8.00005 10.0931 8.05765 10.2039 8.16117C10.3147 8.2647 10.3821 8.40642 10.3924 8.55771C10.4028 8.70899 10.3553 8.85856 10.2596 8.97619C10.1639 9.09382 10.0271 9.17074 9.8769 9.19141L9.7955 9.197H7.4015C7.25688 9.19699 7.11714 9.14462 7.00814 9.04956C6.89915 8.9545 6.82826 8.82318 6.80859 8.6799L6.803 8.5985V4.6085C6.803 4.44977 6.86606 4.29754 6.9783 4.1853C7.09054 4.07306 7.24277 4.01 7.4015 4.01Z",fill:"white"})}),qn=()=>a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M7.99996 0.39917C12.1982 0.39917 15.6015 3.80245 15.6015 8.00069C15.6015 12.1982 12.1982 15.6014 7.99996 15.6014C3.80172 15.6014 0.398438 12.1982 0.398438 8.00069C0.398437 3.80245 3.80172 0.39917 7.99996 0.39917ZM7.99692 6.66917C7.81067 6.66942 7.63099 6.73806 7.49201 6.86205C7.35303 6.98604 7.26442 7.15675 7.243 7.34177L7.23768 7.42993L7.23996 11.6114L7.24528 11.7004C7.2667 11.8857 7.35556 12.0567 7.49493 12.1808C7.6343 12.3048 7.81443 12.3733 8.00101 12.3731C8.1876 12.3729 8.3676 12.3041 8.50671 12.1798C8.64583 12.0554 8.73435 11.8842 8.7554 11.6988L8.75996 11.6099L8.75768 7.42917L8.75236 7.34025C8.73039 7.15539 8.64133 6.98501 8.50209 6.86146C8.36284 6.7379 8.18308 6.66975 7.99692 6.66993V6.66917ZM7.99996 3.81993C7.7477 3.81993 7.50577 3.92014 7.3274 4.09851C7.14903 4.27688 7.04882 4.51881 7.04882 4.77107C7.04882 5.02333 7.14903 5.26525 7.3274 5.44363C7.50577 5.622 7.7477 5.72221 7.99996 5.72221C8.25221 5.72221 8.49414 5.622 8.67251 5.44363C8.85089 5.26525 8.9511 5.02333 8.9511 4.77107C8.9511 4.51881 8.85089 4.27688 8.67251 4.09851C8.49414 3.92014 8.25221 3.81993 7.99996 3.81993Z",fill:"white"})}),Qn=()=>a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M7.99999 0.626709C12.0724 0.626709 15.3735 3.92783 15.3735 8.00023C15.3735 12.0726 12.0724 15.3737 7.99999 15.3737C6.80712 15.3753 5.63183 15.0863 4.57573 14.5317L1.41249 15.3553C1.30679 15.3828 1.19574 15.3823 1.09033 15.3537C0.984926 15.325 0.888826 15.2694 0.811558 15.1922C0.73429 15.115 0.678535 15.019 0.649821 14.9136C0.621107 14.8082 0.620429 14.6971 0.647855 14.5914L1.47074 11.4289C0.914629 10.3717 0.624828 9.19478 0.626472 8.00023C0.626472 3.92783 3.9276 0.626709 7.99999 0.626709ZM8.92316 8.73758H5.6036L5.52839 8.74274C5.39603 8.76095 5.27473 8.82647 5.18693 8.92718C5.09913 9.02789 5.05075 9.15698 5.05075 9.29059C5.05075 9.4242 5.09913 9.5533 5.18693 9.65401C5.27473 9.75472 5.39603 9.82024 5.52839 9.83845L5.6036 9.84361H8.92316L8.99763 9.83845C9.12999 9.82024 9.25129 9.75472 9.33909 9.65401C9.42689 9.5533 9.47526 9.4242 9.47526 9.29059C9.47526 9.15698 9.42689 9.02789 9.33909 8.92718C9.25129 8.82647 9.12999 8.76095 8.99763 8.74274L8.92316 8.73758ZM10.3964 6.15685H5.6036L5.52839 6.16201C5.39603 6.18022 5.27473 6.24574 5.18693 6.34645C5.09913 6.44716 5.05075 6.57625 5.05075 6.70986C5.05075 6.84347 5.09913 6.97257 5.18693 7.07328C5.27473 7.17399 5.39603 7.2395 5.52839 7.25772L5.6036 7.26288H10.3964L10.4716 7.25772C10.604 7.2395 10.7253 7.17399 10.8131 7.07328C10.9009 6.97257 10.9492 6.84347 10.9492 6.70986C10.9492 6.57625 10.9009 6.44716 10.8131 6.34645C10.7253 6.24574 10.604 6.18022 10.4716 6.16201L10.3964 6.15685Z",fill:"white"})}),Jn=()=>a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M1.5649 0.61447C1.77202 0.627228 1.96726 0.710458 2.10916 0.846923C2.25073 0.983355 2.32913 1.16359 2.32959 1.3503V14.6482L2.32237 14.7484C2.29404 14.9338 2.18863 15.104 2.0274 15.2221C1.86635 15.3401 1.66058 15.3982 1.45348 15.3856C1.24629 15.3728 1.05188 15.289 0.910021 15.1524C0.768089 15.0156 0.688054 14.8354 0.687988 14.6482V1.3503L0.696004 1.25091C0.724466 1.06585 0.830082 0.896783 0.990979 0.778791C1.15211 0.660819 1.35768 0.601849 1.5649 0.61447ZM4.19883 12.4519C4.48644 12.1652 4.93246 12.1301 5.28895 12.3261C5.4857 12.4343 5.6787 12.5223 5.88612 12.589C6.31321 12.7265 6.66737 13.0791 6.66764 13.5252V14.3404C6.66752 14.6531 6.45573 14.9144 6.17468 14.9769H5.91177C5.26266 14.8467 4.63859 14.6269 4.05615 14.3276C3.84833 14.2208 3.72518 14.0026 3.72511 13.7689V13.1974C3.72511 13.023 3.7948 12.8557 3.91828 12.7325L4.19883 12.4519ZM9.34245 12.3261C9.69807 12.1286 10.1433 12.1636 10.431 12.4503L11.069 13.0868C11.3723 13.3896 11.3308 13.8789 10.9576 14.0911C10.5413 14.3277 10.1243 14.5361 10.055 14.5705C10.0482 14.5738 10.0413 14.5764 10.0342 14.5793C9.61349 14.7522 9.1792 14.8844 8.73728 14.9736C8.72972 14.9752 8.72156 14.9756 8.71403 14.9769H8.50562C8.19949 14.9246 7.96463 14.6457 7.96457 14.31V13.5276C7.96466 13.0805 8.32146 12.7273 8.7493 12.589C8.95613 12.5221 9.14732 12.4345 9.34245 12.3261ZM13.5354 9.07576C13.9714 9.076 14.3071 9.464 14.1927 9.88213C13.9919 10.6158 13.6735 11.3166 13.2453 11.9558C13.189 12.0398 13.131 12.123 13.0713 12.2043C12.8306 12.5315 12.3558 12.541 12.0678 12.2539L11.4698 11.6584C11.1543 11.3438 11.1435 10.8431 11.3752 10.4633C11.5196 10.2266 11.6434 9.97844 11.7439 9.72101C11.8879 9.35254 12.2255 9.07576 12.6232 9.07576H13.5354ZM7.31691 4.77217C8.17576 4.77333 8.99957 5.114 9.60697 5.71962C10.2145 6.32559 10.5558 7.14794 10.5568 8.00487C10.5568 8.64405 10.367 9.26969 10.011 9.80117C9.65493 10.3323 9.14874 10.7461 8.55692 10.9907C7.96477 11.2353 7.3123 11.2997 6.68367 11.175C6.05535 11.0503 5.47832 10.7419 5.02524 10.2901C4.57216 9.83816 4.26301 9.26252 4.13791 8.6357C4.01288 8.00877 4.07709 7.35864 4.32227 6.76806C4.56759 6.17743 4.98363 5.67161 5.5166 5.31643C6.04936 4.96163 6.67628 4.77222 7.31691 4.77217ZM12.4036 4.26879C12.7087 3.96475 13.2169 3.99825 13.4376 4.36738C13.9435 5.21337 14.2699 6.15766 14.3915 7.14159C14.4346 7.49092 14.1476 7.78269 13.7935 7.78284H12.8797C12.4232 7.78257 12.0546 7.42283 11.9563 6.97967C11.8784 6.62802 11.7612 6.28573 11.6053 5.96009C11.4401 5.61512 11.4758 5.19429 11.7471 4.92367L12.4036 4.26879ZM7.96457 1.69979C7.96457 1.28303 8.32653 0.952595 8.73728 1.03609C9.74411 1.24149 10.6974 1.66209 11.5283 2.2697C11.8552 2.50892 11.8645 2.97857 11.578 3.26443L10.9849 3.85518C10.6679 4.1712 10.1627 4.18186 9.77931 3.94977C9.57445 3.82567 9.35894 3.71661 9.13565 3.62433C8.99026 3.56429 8.84216 3.51154 8.69239 3.46643C8.28382 3.34343 7.96481 2.99209 7.96457 2.56788V1.69979ZM5.89654 1.03609C6.3071 0.953302 6.66764 1.28334 6.66764 1.69979V3.02717C6.66764 3.18819 6.54829 3.32245 6.3895 3.35421C5.84399 3.46246 5.32382 3.66534 4.8529 3.94977C4.59496 4.10547 4.28244 4.15106 4.00886 4.0684C3.81512 4.00984 3.72512 3.80429 3.72511 3.60189V2.24004C3.72511 2.00615 3.84885 1.7881 4.05695 1.68135C4.63848 1.38308 5.25748 1.16546 5.89654 1.03609Z",fill:"white"})}),Es=()=>a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M7.99992 0.399292C12.1982 0.399292 15.6014 3.80255 15.6014 8.00078C15.6014 12.1983 12.1982 15.6015 7.99992 15.6015C3.8017 15.6015 0.398438 12.1982 0.398438 8.00078C0.398448 3.80256 3.80171 0.399311 7.99992 0.399292ZM5.68875 4.35293C5.57808 4.36 5.47399 4.40736 5.39559 4.48578L3.57426 6.31007L3.53566 6.35312C3.46773 6.44088 3.43362 6.55111 3.44066 6.66187C3.44785 6.77245 3.49583 6.87673 3.57426 6.95503L3.6173 6.99289C3.70498 7.06075 3.81466 7.0941 3.92531 7.08714C4.03602 7.08003 4.14083 7.03279 4.21922 6.95429L5.26422 5.90707V11.1914L5.26719 11.2449C5.28015 11.3558 5.33371 11.4586 5.41711 11.5328C5.50049 11.607 5.60833 11.6478 5.71992 11.6479L5.77336 11.6457C5.88433 11.6326 5.98712 11.5785 6.06133 11.495C6.13547 11.4115 6.17572 11.3031 6.17563 11.1914V5.91003L7.22211 6.95429L7.26441 6.99289C7.35602 7.06458 7.47218 7.09859 7.58801 7.08789C7.70389 7.07712 7.81172 7.02237 7.88859 6.935C7.96536 6.84771 8.00539 6.73424 8.00141 6.61808C7.99733 6.50182 7.94907 6.39111 7.86633 6.30933L6.0398 4.48503L5.9975 4.44793C5.90975 4.37995 5.79952 4.34591 5.68875 4.35293ZM10.2265 4.35664C10.1157 4.36974 10.0134 4.42323 9.93926 4.50656C9.86509 4.58996 9.82429 4.69777 9.82422 4.80937V10.0893L8.77848 9.04578L8.73543 9.00718C8.64374 8.93629 8.52795 8.90264 8.41258 8.91367C8.29733 8.92472 8.19077 8.97971 8.11422 9.06656C8.03763 9.15355 7.99626 9.26689 7.99992 9.38273C8.00367 9.49833 8.05181 9.60813 8.13352 9.69L9.9593 11.5143L10.0016 11.5529C10.0894 11.6209 10.1996 11.6534 10.3104 11.6464C10.4211 11.6393 10.5258 11.5928 10.6043 11.5143L12.4256 9.69L12.4642 9.64695C12.5321 9.55923 12.5662 9.44964 12.5592 9.33894C12.5521 9.22813 12.5042 9.12349 12.4256 9.04503L12.3825 9.00718C12.2949 8.93938 12.1851 8.9052 12.0745 8.91218C11.9638 8.91929 11.859 8.96726 11.7806 9.04578L10.7364 10.0915V4.80937L10.7327 4.75668C10.7197 4.6457 10.6662 4.54301 10.5827 4.46871C10.4994 4.39463 10.3914 4.35376 10.2799 4.35367L10.2265 4.35664Z",fill:"white",fillOpacity:"0.6"})}),Us=()=>a.jsx(a.Fragment,{children:a.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M1.68016 2.43991C1.68016 2.23835 1.76023 2.04504 1.90276 1.90251C2.04528 1.75998 2.23859 1.67991 2.44016 1.67991H3.96016C4.16172 1.67991 4.35503 1.59984 4.49756 1.45731C4.64008 1.31479 4.72016 1.12148 4.72016 0.919912C4.72016 0.718348 4.64008 0.525039 4.49756 0.382511C4.35503 0.239983 4.16172 0.159912 3.96016 0.159912H2.44016C1.83546 0.159912 1.25554 0.400126 0.827953 0.827709C0.40037 1.25529 0.160156 1.83522 0.160156 2.43991V3.95991C0.160156 4.16148 0.240227 4.35479 0.382755 4.49731C0.525283 4.63984 0.718592 4.71991 0.920156 4.71991C1.12172 4.71991 1.31503 4.63984 1.45756 4.49731C1.60008 4.35479 1.68016 4.16148 1.68016 3.95991V2.43991ZM1.68016 11.5599C1.68016 11.7615 1.76023 11.9548 1.90276 12.0973C2.04528 12.2398 2.23859 12.3199 2.44016 12.3199H3.96016C4.16172 12.3199 4.35503 12.4 4.49756 12.5425C4.64008 12.685 4.72016 12.8783 4.72016 13.0799C4.72016 13.2815 4.64008 13.4748 4.49756 13.6173C4.35503 13.7598 4.16172 13.8399 3.96016 13.8399H2.44016C1.83546 13.8399 1.25554 13.5997 0.827953 13.1721C0.40037 12.7445 0.160156 12.1646 0.160156 11.5599V10.0399C0.160156 9.83835 0.240227 9.64504 0.382755 9.50251C0.525283 9.35998 0.718592 9.27991 0.920156 9.27991C1.12172 9.27991 1.31503 9.35998 1.45756 9.50251C1.60008 9.64504 1.68016 9.83835 1.68016 10.0399V11.5599ZM11.5602 1.67991C11.7617 1.67991 11.955 1.75998 12.0976 1.90251C12.2401 2.04504 12.3202 2.23835 12.3202 2.43991V3.95991C12.3202 4.16148 12.4002 4.35479 12.5428 4.49731C12.6853 4.63984 12.8786 4.71991 13.0802 4.71991C13.2817 4.71991 13.475 4.63984 13.6176 4.49731C13.7601 4.35479 13.8402 4.16148 13.8402 3.95991V2.43991C13.8402 1.83522 13.5999 1.25529 13.1724 0.827709C12.7448 0.400126 12.1648 0.159912 11.5602 0.159912H10.0402C9.83859 0.159912 9.64528 0.239983 9.50276 0.382511C9.36023 0.525039 9.28016 0.718348 9.28016 0.919912C9.28016 1.12148 9.36023 1.31479 9.50276 1.45731C9.64528 1.59984 9.83859 1.67991 10.0402 1.67991H11.5602ZM12.3202 11.5599C12.3202 11.7615 12.2401 11.9548 12.0976 12.0973C11.955 12.2398 11.7617 12.3199 11.5602 12.3199H10.0402C9.83859 12.3199 9.64528 12.4 9.50276 12.5425C9.36023 12.685 9.28016 12.8783 9.28016 13.0799C9.28016 13.2815 9.36023 13.4748 9.50276 13.6173C9.64528 13.7598 9.83859 13.8399 10.0402 13.8399H11.5602C12.1648 13.8399 12.7448 13.5997 13.1724 13.1721C13.5999 12.7445 13.8402 12.1646 13.8402 11.5599V10.0399C13.8402 9.83835 13.7601 9.64504 13.6176 9.50251C13.475 9.35998 13.2817 9.27991 13.0802 9.27991C12.8786 9.27991 12.6853 9.35998 12.5428 9.50251C12.4002 9.64504 12.3202 9.83835 12.3202 10.0399V11.5599Z",fill:"white"})})}),$n=()=>a.jsx(a.Fragment,{children:a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M8.00889 0.590088C8.56673 0.596168 9.12229 0.660768 9.66721 0.782368C9.78314 0.808246 9.88809 0.869694 9.96739 0.958126C10.0467 1.04656 10.0964 1.15756 10.1095 1.27561L10.2387 2.43613C10.257 2.59974 10.3134 2.75679 10.4034 2.89464C10.4934 3.03249 10.6145 3.14728 10.757 3.22979C10.8994 3.31229 11.0593 3.36021 11.2236 3.36967C11.388 3.37914 11.5523 3.34989 11.7033 3.28429L12.768 2.81689C12.8761 2.76927 12.9964 2.75642 13.1121 2.78011C13.2278 2.8038 13.3333 2.86286 13.414 2.94913C14.1831 3.77076 14.7558 4.75611 15.0891 5.83105C15.124 5.94401 15.1229 6.06505 15.086 6.17739C15.0491 6.28973 14.9782 6.38781 14.8831 6.45805L13.9392 7.15421C13.8064 7.25171 13.6985 7.37909 13.6241 7.52604C13.5497 7.67299 13.511 7.83538 13.511 8.00009C13.511 8.16479 13.5497 8.32719 13.6241 8.47414C13.6985 8.62108 13.8064 8.74846 13.9392 8.84597L14.8839 9.54137C14.9793 9.61156 15.0504 9.70972 15.0875 9.82223C15.1245 9.93473 15.1256 10.056 15.0906 10.1691C14.7572 11.244 14.1845 12.2293 13.4155 13.051C13.335 13.1371 13.2298 13.1961 13.1144 13.2199C12.999 13.2438 12.879 13.2312 12.7711 13.184L11.7017 12.7151C11.5509 12.649 11.3867 12.6193 11.2223 12.6285C11.0579 12.6376 10.898 12.6853 10.7555 12.7678C10.6129 12.8502 10.4918 12.965 10.4019 13.103C10.312 13.2409 10.2559 13.3981 10.238 13.5618L10.1095 14.7215C10.0966 14.8383 10.0479 14.9482 9.97005 15.0362C9.89223 15.1243 9.78912 15.1861 9.67481 15.2132C8.57399 15.4752 7.42708 15.4752 6.32625 15.2132C6.21195 15.1861 6.10884 15.1243 6.03102 15.0362C5.9532 14.9482 5.90448 14.8383 5.89153 14.7215L5.76385 13.5633C5.74524 13.4 5.68857 13.2434 5.59841 13.106C5.50826 12.9686 5.38713 12.8543 5.24476 12.7723C5.10239 12.6902 4.94275 12.6427 4.77868 12.6336C4.61461 12.6245 4.45069 12.6539 4.30009 12.7197L3.23153 13.1878C3.12345 13.2352 3.00333 13.2478 2.88775 13.224C2.77218 13.2002 2.66685 13.1411 2.58629 13.0548C1.81695 12.2322 1.24424 11.2458 0.911253 10.1699C0.876214 10.0567 0.877294 9.93549 0.914341 9.82299C0.951388 9.71048 1.02256 9.61232 1.11797 9.54213L2.06265 8.84597C2.19554 8.74856 2.3036 8.62122 2.37809 8.47425C2.45258 8.32729 2.4914 8.16485 2.4914 8.00009C2.4914 7.83533 2.45258 7.67288 2.37809 7.52592C2.3036 7.37896 2.19554 7.25162 2.06265 7.15421L1.11797 6.45957C1.0227 6.38928 0.951674 6.29107 0.914765 6.17857C0.877856 6.06607 0.876894 5.94488 0.912013 5.83181C1.24529 4.75688 1.818 3.77153 2.58705 2.94989C2.66775 2.86362 2.77326 2.80456 2.88899 2.78087C3.00472 2.75718 3.12495 2.77003 3.23305 2.81765L4.29705 3.28505C4.44831 3.35061 4.61283 3.37979 4.77741 3.37023C4.94199 3.36068 5.10203 3.31265 5.24468 3.23002C5.38733 3.14739 5.50861 3.03245 5.59877 2.89444C5.68894 2.75643 5.74548 2.5992 5.76385 2.43537L5.89305 1.27561C5.90609 1.15732 5.95583 1.04608 6.03529 0.957483C6.11476 0.86889 6.21995 0.80739 6.33613 0.781608C6.88105 0.660768 7.43813 0.596928 8.00889 0.590088ZM7.99977 5.72009C7.39508 5.72009 6.81515 5.9603 6.38757 6.38788C5.95999 6.81547 5.71977 7.39539 5.71977 8.00009C5.71977 8.60478 5.95999 9.18471 6.38757 9.61229C6.81515 10.0399 7.39508 10.2801 7.99977 10.2801C8.60447 10.2801 9.18439 10.0399 9.61198 9.61229C10.0396 9.18471 10.2798 8.60478 10.2798 8.00009C10.2798 7.39539 10.0396 6.81547 9.61198 6.38788C9.18439 5.9603 8.60447 5.72009 7.99977 5.72009Z",fill:"white"})})}),Ks=()=>a.jsxs("svg",{width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M9.45402 0.399902C9.87463 0.399915 10.2805 0.554948 10.594 0.835361C10.9075 1.11577 11.1066 1.50189 11.1534 1.9199H12.1171C12.4507 1.92011 12.7721 2.04571 13.0175 2.2718C13.2628 2.49788 13.4143 2.80794 13.4417 3.14046L13.4463 3.2499V5.5299C13.4463 6.16081 13.205 6.76781 12.7717 7.2264C12.3384 7.68498 11.746 7.96038 11.1161 7.9961L10.9565 8.00066C10.7032 8.79031 10.2308 9.49174 9.59422 10.0232C8.95765 10.5547 8.18316 10.8944 7.36098 11.0027V12.1799H8.69326C9.32403 12.1801 9.93085 12.4215 10.3893 12.8548C10.8477 13.2881 11.123 13.8803 11.1587 14.5101L11.1633 14.6499V15.0299C11.1632 15.1678 11.1132 15.3009 11.0226 15.4048C10.9319 15.5086 10.8066 15.576 10.67 15.5946L10.5933 15.5999H2.99174C2.85387 15.6001 2.72061 15.5503 2.61664 15.4597C2.51267 15.3692 2.44505 15.244 2.4263 15.1074L2.42174 15.0299V14.6499C2.42169 14.0191 2.66296 13.4122 3.09609 12.9537C3.52922 12.4951 4.12138 12.2196 4.75114 12.1837L4.89174 12.1799H6.22174V11.0027C5.39983 10.8941 4.62567 10.5543 3.98939 10.0229C3.3531 9.49138 2.88088 8.7901 2.6277 8.00066L2.60794 7.9999C1.95285 7.9999 1.3246 7.73967 0.861386 7.27646C0.398171 6.81324 0.137939 6.18499 0.137939 5.5299V3.2499C0.137939 2.51574 0.733779 1.9199 1.46794 1.9199H2.43162C2.47837 1.50176 2.67763 1.11554 2.9913 0.835108C3.30496 0.554677 3.711 0.399728 4.13174 0.399902H9.45402ZM12.1171 3.0599H11.164V6.84698C11.4613 6.80474 11.7355 6.66316 11.9421 6.44527C12.1486 6.22739 12.2754 5.94602 12.3017 5.64694L12.3071 5.5299V3.2499C12.307 3.2071 12.2925 3.16557 12.2658 3.13205C12.2392 3.09853 12.2021 3.07498 12.1604 3.06522L12.1171 3.0599ZM2.42174 3.0599H1.46794C1.41755 3.0599 1.36922 3.07992 1.33359 3.11555C1.29796 3.15118 1.27794 3.19951 1.27794 3.2499V5.5299C1.2779 5.85041 1.3936 6.16016 1.60375 6.40215C1.81391 6.64415 2.10439 6.80211 2.42174 6.84698V3.0599Z",fill:"url(#paint0_linear_851_570)"}),a.jsx("defs",{children:a.jsxs("linearGradient",{id:"paint0_linear_851_570",x1:"-0.221746",y1:"-2.13343",x2:"19.2003",y2:"7.59061",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#B97304"}),a.jsx("stop",{offset:"0.368995",stopColor:"#FFC15D"}),a.jsx("stop",{offset:"0.5",stopColor:"#FFD38B"}),a.jsx("stop",{offset:"0.611316",stopColor:"#FFC15D"}),a.jsx("stop",{offset:"1",stopColor:"#B97304"})]})})]}),Pa=()=>a.jsx(a.Fragment,{children:a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M10.2804 1.10977V12.8867C10.2804 13.706 9.31215 14.1407 8.69959 13.5966L5.28567 10.5611C5.18145 10.4683 5.04678 10.4169 4.90719 10.4167H2.11039C1.657 10.4167 1.22217 10.2367 0.901507 9.91615C0.580841 9.59563 0.400592 9.16088 0.400391 8.70749V5.28977C0.400391 4.83625 0.580551 4.40131 0.901238 4.08062C1.22193 3.75993 1.65687 3.57977 2.11039 3.57977H4.90719C5.04678 3.57961 5.18145 3.52822 5.28567 3.43537L8.69883 0.400692C9.31215 -0.144988 10.2804 0.288972 10.2804 1.10977ZM13.3143 2.36149C13.3745 2.31698 13.4429 2.28475 13.5155 2.26666C13.5881 2.24856 13.6636 2.24495 13.7376 2.25603C13.8117 2.26711 13.8828 2.29267 13.947 2.33123C14.0111 2.3698 14.067 2.42063 14.1116 2.48081C15.0807 3.78793 15.6028 5.37257 15.6004 6.99977C15.6025 8.62705 15.0802 10.2117 14.1108 11.5187C14.019 11.6348 13.8856 11.7106 13.7389 11.7301C13.5921 11.7496 13.4436 11.7113 13.3246 11.6232C13.2057 11.5352 13.1256 11.4043 13.1014 11.2583C13.0772 11.1122 13.1108 10.9625 13.195 10.8408C14.019 9.72993 14.4628 8.38291 14.4604 6.99977C14.4628 5.61664 14.019 4.26962 13.195 3.15873C13.1505 3.09855 13.1183 3.03019 13.1002 2.95755C13.0821 2.88492 13.0785 2.80943 13.0895 2.7354C13.1006 2.66137 13.1262 2.59025 13.1647 2.52609C13.2033 2.46193 13.2541 2.406 13.3143 2.36149ZM11.9091 4.24097C11.9749 4.20531 12.0472 4.18297 12.1217 4.17524C12.1962 4.16751 12.2715 4.17454 12.3433 4.19593C12.415 4.21731 12.4819 4.25264 12.54 4.29988C12.5981 4.34712 12.6464 4.40536 12.682 4.47125C13.0894 5.22365 13.3204 6.08625 13.3204 7.00053C13.3217 7.88365 13.1022 8.75308 12.682 9.52981C12.6464 9.59568 12.5981 9.65389 12.54 9.70111C12.4819 9.74834 12.415 9.78365 12.3432 9.80503C12.2715 9.82641 12.1962 9.83345 12.1217 9.82574C12.0472 9.81803 11.9749 9.79572 11.9091 9.76009C11.8432 9.72446 11.785 9.67621 11.7378 9.61808C11.6905 9.55996 11.6552 9.4931 11.6339 9.42133C11.6125 9.34955 11.6054 9.27427 11.6131 9.19978C11.6209 9.12529 11.6432 9.05304 11.6788 8.98717C11.998 8.39665 12.1804 7.72101 12.1804 7.00053C12.1804 6.28005 11.998 5.60441 11.6788 5.01389C11.6431 4.94803 11.6208 4.87578 11.6131 4.80128C11.6053 4.72678 11.6124 4.65149 11.6337 4.57971C11.6551 4.50793 11.6905 4.44106 11.7377 4.38294C11.7849 4.32482 11.8432 4.27658 11.9091 4.24097Z",fill:"white"})})});var z=(e=>(e[e.Message=1]="Message",e[e.Support=2]="Support",e[e.Tip=3]="Tip",e[e.History=4]="History",e[e.Info=5]="Info",e[e.Settings=6]="Settings",e[e.VolumeOn=7]="VolumeOn",e[e.FullScreen=8]="FullScreen",e[e.Tournament=9]="Tournament",e[e.closeMenu=10]="closeMenu",e[e.Limit=11]="Limit",e))(z||{});const Ys=[{name:"Tournament",buttonType:9,icon:Ks()},{name:"Message",buttonType:1,icon:Qn()},{name:"Tip",buttonType:3,icon:Jn()},{name:"History",buttonType:4,icon:Xn()},{name:"Info",buttonType:5,icon:qn()},{name:"Settings",buttonType:6,icon:$n()},{buttonType:7,icon:Pa()},{name:"FullScreen",buttonType:8,icon:Us()}],Zs=(e,t)=>{switch(e){case 6:return{header:"Settings",height:412,width:300};case 4:return{header:t?"Bet Details":"History",height:520,width:500};case 3:return{header:"Send Tip",height:176,width:300};case 9:return{header:"Golden Chip Tournament",height:450,width:500};case 5:return{header:"Help",height:450,width:500};default:return null}},Xs=[{name:"Message",buttonType:z.Message,icon:Qn()},{name:"Send Tip",buttonType:z.Tip,icon:Jn()}],qs=[{name:"History",buttonType:z.History,icon:Xn()},{name:"Help",buttonType:z.Info,icon:qn()},{name:"Limits & Payouts",buttonType:z.Limit,icon:Es()}],Qs=(e,t,n)=>{switch(e){case z.Message:return{header:"Message",height:100,width:100};case z.Support:return{header:"Support",height:100,width:100};case z.Tip:return{header:"Send Tip",height:t?100:38,width:t?50:100};case z.History:return{header:n?"Bet Details":"History",height:t?100:82.5,width:100};case z.Info:return{header:"Help",height:82.5,width:100};case z.Tournament:return{header:"Golden Chip Tournament",height:t?100:82.5,width:100};case z.Settings:return{header:"Settings",height:100,width:100};case z.Limit:return{header:"Limits & Payouts",height:100,width:100};default:return null}},Js=(e,t)=>{t(e.touches[0].clientY)},$s=(e,t,n)=>{if(!t)return;const i=e.touches[0].clientY-t;i>0&&i<300&&(e.currentTarget.style.transform=`translateY(${i}px)`),i>120&&n(!1)},_s=(e,t)=>{e.currentTarget.style.transform="translateY(0px)",t(0)},B=e=>typeof e=="string",ot=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},_n=e=>e==null?"":""+e,eo=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},to=/###/g,er=e=>e&&e.indexOf("###")>-1?e.replace(to,"."):e,tr=e=>!e||B(e),lt=(e,t,n)=>{const r=B(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(tr(e))return{};const s=er(r[i]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++i}return tr(e)?{}:{obj:e,k:er(r[i])}},ar=(e,t,n)=>{const{obj:r,k:i}=lt(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let s=t[t.length-1],o=t.slice(0,t.length-1),l=lt(e,o,Object);for(;l.obj===void 0&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),l=lt(e,o,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${s}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${s}`]=n},ao=(e,t,n,r)=>{const{obj:i,k:s}=lt(e,t,Object);i[s]=i[s]||[],i[s].push(n)},Pt=(e,t)=>{const{obj:n,k:r}=lt(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},no=(e,t,n)=>{const r=Pt(e,n);return r!==void 0?r:Pt(t,n)},nr=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?B(e[r])||e[r]instanceof String||B(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):nr(e[r],t[r],n):e[r]=t[r]);return e},Qe=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ro={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const io=e=>B(e)?e.replace(/[&<>"'\/]/g,t=>ro[t]):e;class so{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const oo=[" ",",","?","!",";"],lo=new so(20),co=(e,t,n)=>{t=t||"",n=n||"";const r=oo.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=lo.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!i.test(e);if(!s){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(s=!0)}return s},za=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let i=e;for(let s=0;s<r.length;){if(!i||typeof i!="object")return;let o,l="";for(let c=s;c<r.length;++c)if(c!==s&&(l+=n),l+=r[c],o=i[l],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&c<r.length-1)continue;s+=c-s+1;break}i=o}return i},ct=e=>e==null?void 0:e.replace("_","-"),ho={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class zt{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||ho,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(B(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new zt(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new zt(this.logger,t)}}var je=new zt;class Ot{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,s])=>{for(let o=0;o<s;o++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,s])=>{for(let o=0;o<s;o++)i.apply(i,[t,...n])})}}class rr extends Ot{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,i={}){var d,u;const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):B(r)&&s?l.push(...r.split(s)):l.push(r)));const c=Pt(this.data,l);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),c||!o||!B(r)?c:za((u=(d=this.data)==null?void 0:d[t])==null?void 0:u[n],r,s)}addResource(t,n,r,i,s={silent:!1}){const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(l=t.split("."),i=n,n=l[1]),this.addNamespaces(n),ar(this.data,l,i),s.silent||this.emit("added",t,n,r,i)}addResources(t,n,r,i={silent:!1}){for(const s in r)(B(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,s,o={silent:!1,skipCopy:!1}){let l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let c=Pt(this.data,l)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?nr(c,r,s):c={...c,...r},ar(this.data,l,c),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var ir={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(s=>{var o;t=((o=this.processors[s])==null?void 0:o.process(t,n,r,i))??t}),t}};const sr=Symbol("i18next/PATH_KEY");function uo(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>{var s;return(s=n==null?void 0:n.revoke)==null||s.call(n),i===sr?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function fo(e,t){const{[sr]:n}=e(uo());return n.join((t==null?void 0:t.keySeparator)??".")}const or={},lr=e=>!B(e)&&typeof e!="boolean"&&typeof e!="number";class Mt extends Ot{constructor(t,n={}){super(),eo(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=je.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const i=this.resolve(t,r);return(i==null?void 0:i.res)!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!co(t,r,i);if(o&&!l){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:B(s)?[s]:s};const d=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(d[0])>-1)&&(s=d.shift()),t=d.join(i)}return{key:t,namespaces:B(s)?[s]:s}}translate(t,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=fo(t,i)),Array.isArray(t)||(t=[String(t)]);const s=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:l,namespaces:c}=this.extractFromKey(t[t.length-1],i),d=c[c.length-1];let u=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const f=i.lng||this.language,p=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((f==null?void 0:f.toLowerCase())==="cimode")return p?s?{res:`${d}${u}${l}`,usedKey:l,exactUsedKey:l,usedLng:f,usedNS:d,usedParams:this.getUsedParamsDetails(i)}:`${d}${u}${l}`:s?{res:l,usedKey:l,exactUsedKey:l,usedLng:f,usedNS:d,usedParams:this.getUsedParamsDetails(i)}:l;const g=this.resolve(t,i);let b=g==null?void 0:g.res;const y=(g==null?void 0:g.usedKey)||l,v=(g==null?void 0:g.exactUsedKey)||l,A=["[object Number]","[object Function]","[object RegExp]"],k=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject,j=i.count!==void 0&&!B(i.count),D=Mt.hasDefaultValue(i),L=j?this.pluralResolver.getSuffix(f,i.count,i):"",S=i.ordinal&&j?this.pluralResolver.getSuffix(f,i.count,{ordinal:!1}):"",O=j&&!i.ordinal&&i.count===0,P=O&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${L}`]||i[`defaultValue${S}`]||i.defaultValue;let R=b;I&&!b&&D&&(R=P);const $=lr(R),pe=Object.prototype.toString.apply(R);if(I&&R&&$&&A.indexOf(pe)<0&&!(B(k)&&Array.isArray(R))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const V=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,R,{...i,ns:c}):`key '${l} (${this.language})' returned an object instead of string.`;return s?(g.res=V,g.usedParams=this.getUsedParamsDetails(i),g):V}if(o){const V=Array.isArray(R),Y=V?[]:{},ie=V?v:y;for(const _ in R)if(Object.prototype.hasOwnProperty.call(R,_)){const ae=`${ie}${o}${_}`;D&&!b?Y[_]=this.translate(ae,{...i,defaultValue:lr(P)?P[_]:void 0,joinArrays:!1,ns:c}):Y[_]=this.translate(ae,{...i,joinArrays:!1,ns:c}),Y[_]===ae&&(Y[_]=R[_])}b=Y}}else if(I&&B(k)&&Array.isArray(b))b=b.join(k),b&&(b=this.extendTranslation(b,t,i,r));else{let V=!1,Y=!1;!this.isValidLookup(b)&&D&&(V=!0,b=P),this.isValidLookup(b)||(Y=!0,b=l);const _=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Y?void 0:b,ae=D&&P!==b&&this.options.updateMissing;if(Y||V||ae){if(this.logger.log(ae?"updateKey":"missingKey",f,d,l,ae?P:b),o){const Z=this.resolve(l,{...i,keySeparator:!1});Z&&Z.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let se=[];const N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&N&&N[0])for(let Z=0;Z<N.length;Z++)se.push(N[Z]);else this.options.saveMissingTo==="all"?se=this.languageUtils.toResolveHierarchy(i.lng||this.language):se.push(i.lng||this.language);const oe=(Z,J,ce)=>{var we;const me=D&&ce!==b?ce:_;this.options.missingKeyHandler?this.options.missingKeyHandler(Z,d,J,me,ae,i):(we=this.backendConnector)!=null&&we.saveMissing&&this.backendConnector.saveMissing(Z,d,J,me,ae,i),this.emit("missingKey",Z,d,J,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&j?se.forEach(Z=>{const J=this.pluralResolver.getSuffixes(Z,i);O&&i[`defaultValue${this.options.pluralSeparator}zero`]&&J.indexOf(`${this.options.pluralSeparator}zero`)<0&&J.push(`${this.options.pluralSeparator}zero`),J.forEach(ce=>{oe([Z],l+ce,i[`defaultValue${ce}`]||P)})}):oe(se,l,P))}b=this.extendTranslation(b,t,i,g,r),Y&&b===l&&this.options.appendNamespaceToMissingKey&&(b=`${d}${u}${l}`),(Y||V)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${u}${l}`:l,V?b:void 0,i))}return s?(g.res=b,g.usedParams=this.getUsedParamsDetails(i),g):b}extendTranslation(t,n,r,i,s){var c,d;if((c=this.i18nFormat)!=null&&c.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=B(t)&&(((d=r==null?void 0:r.interpolation)==null?void 0:d.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(u){const g=t.match(this.interpolator.nestingRegexp);f=g&&g.length}let p=r.replace&&!B(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language||i.usedLng,r),u){const g=t.match(this.interpolator.nestingRegexp),b=g&&g.length;f<b&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...g)=>(s==null?void 0:s[0])===g[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${n[0]}`),null):this.translate(...g,n),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,l=B(o)?[o]:o;return t!=null&&(l!=null&&l.length)&&r.applyPostProcessor!==!1&&(t=ir.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,i,s,o,l;return B(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const d=this.extractFromKey(c,n),u=d.key;i=u;let f=d.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&!B(n.count),g=p&&!n.ordinal&&n.count===0,b=n.context!==void 0&&(B(n.context)||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(v=>{var A,k;this.isValidLookup(r)||(l=v,!or[`${y[0]}-${v}`]&&((A=this.utils)!=null&&A.hasLoadedNamespace)&&!((k=this.utils)!=null&&k.hasLoadedNamespace(l))&&(or[`${y[0]}-${v}`]=!0,this.logger.warn(`key "${i}" for languages "${y.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(I=>{var L;if(this.isValidLookup(r))return;o=I;const j=[u];if((L=this.i18nFormat)!=null&&L.addLookupKeys)this.i18nFormat.addLookupKeys(j,u,I,v,n);else{let S;p&&(S=this.pluralResolver.getSuffix(I,n.count,n));const O=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(n.ordinal&&S.indexOf(P)===0&&j.push(u+S.replace(P,this.options.pluralSeparator)),j.push(u+S),g&&j.push(u+O)),b){const R=`${u}${this.options.contextSeparator||"_"}${n.context}`;j.push(R),p&&(n.ordinal&&S.indexOf(P)===0&&j.push(R+S.replace(P,this.options.pluralSeparator)),j.push(R+S),g&&j.push(R+O))}}let D;for(;D=j.pop();)this.isValidLookup(r)||(s=D,r=this.getResource(I,v,D,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:o,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,i={}){var s;return(s=this.i18nFormat)!=null&&s.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!B(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const s of n)delete i[s]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class cr{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=je.create("languageUtils")}getScriptPartFromCode(t){if(t=ct(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=ct(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(B(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(o=>{if(o===s)return o;if(!(o.indexOf("-")<0&&s.indexOf("-")<0)&&(o.indexOf("-")>0&&s.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===s||o.indexOf(s)===0&&s.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),B(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],s=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return B(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):B(t)&&s(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&s(this.formatLanguageCode(o))}),i}}const dr={zero:0,one:1,two:2,few:3,many:4,other:5},hr={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class po{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=je.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=ct(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let o;try{o=new Intl.PluralRules(r,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),hr;if(!t.match(/-|_/))return hr;const c=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(c,n)}return this.pluralRulesCache[s]=o,o}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,s)=>dr[i]-dr[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,r={}){const i=this.getRule(t,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const ur=(e,t,n,r=".",i=!0)=>{let s=no(e,t,n);return!s&&i&&B(n)&&(s=za(e,n,r),s===void 0&&(s=za(t,n,r))),s},Oa=e=>e.replace(/\$/g,"$$$$");class mo{constructor(t={}){var n;this.logger=je.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:o,suffix:l,suffixEscaped:c,formatSeparator:d,unescapeSuffix:u,unescapePrefix:f,nestingPrefix:p,nestingPrefixEscaped:g,nestingSuffix:b,nestingSuffixEscaped:y,nestingOptionsSeparator:v,maxReplaces:A,alwaysFormat:k}=t.interpolation;this.escape=n!==void 0?n:io,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?Qe(s):o||"{{",this.suffix=l?Qe(l):c||"}}",this.formatSeparator=d||",",this.unescapePrefix=u?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=p?Qe(p):g||Qe("$t("),this.nestingSuffix=b?Qe(b):y||Qe(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=A||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,i){var g;let s,o,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=b=>{if(b.indexOf(this.formatSeparator)<0){const k=ur(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(k,void 0,r,{...i,...n,interpolationkey:b}):k}const y=b.split(this.formatSeparator),v=y.shift().trim(),A=y.join(this.formatSeparator).trim();return this.format(ur(n,c,v,this.options.keySeparator,this.options.ignoreJSONStructure),A,r,{...i,...n,interpolationkey:v})};this.resetRegExp();const u=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((g=i==null?void 0:i.interpolation)==null?void 0:g.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>Oa(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?Oa(this.escape(b)):Oa(b)}].forEach(b=>{for(l=0;s=b.regex.exec(t);){const y=s[1].trim();if(o=d(y),o===void 0)if(typeof u=="function"){const A=u(t,s,i);o=B(A)?A:""}else if(i&&Object.prototype.hasOwnProperty.call(i,y))o="";else if(f){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),o="";else!B(o)&&!this.useRawValueToEscape&&(o=_n(o));const v=b.safeValue(o);if(t=t.replace(s[0],v),f?(b.regex.lastIndex+=o.length,b.regex.lastIndex-=s[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n,r={}){let i,s,o;const l=(c,d)=>{const u=this.nestingOptionsSeparator;if(c.indexOf(u)<0)return c;const f=c.split(new RegExp(`${u}[ ]*{`));let p=`{${f[1]}`;c=f[0],p=this.interpolate(p,o);const g=p.match(/'/g),b=p.match(/"/g);(((g==null?void 0:g.length)??0)%2===0&&!b||b.length%2!==0)&&(p=p.replace(/'/g,'"'));try{o=JSON.parse(p),d&&(o={...d,...o})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,y),`${c}${u}${p}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,c};for(;i=this.nestingRegexp.exec(t);){let c=[];o={...r},o=o.replace&&!B(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const d=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(d!==-1&&(c=i[1].slice(d).split(this.formatSeparator).map(u=>u.trim()).filter(Boolean),i[1]=i[1].slice(0,d)),s=n(l.call(this,i[1].trim(),o),o),s&&i[0]===t&&!B(s))return s;B(s)||(s=_n(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),c.length&&(s=c.reduce((u,f)=>this.format(u,f,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}}const go=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[l,...c]=o.split(":"),d=c.join(":").trim().replace(/^'+|'+$/g,""),u=l.trim();n[u]||(n[u]=d),d==="false"&&(n[u]=!1),d==="true"&&(n[u]=!0),isNaN(d)||(n[u]=parseInt(d,10))}})}return{formatName:t,formatOptions:n}},fr=e=>{const t={};return(n,r,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});const o=r+JSON.stringify(s);let l=t[o];return l||(l=e(ct(r),i),t[o]=l),l(n)}},bo=e=>(t,n,r)=>e(ct(n),r)(t);class yo{constructor(t={}){this.logger=je.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?fr:bo;this.formats={number:r((i,s)=>{const o=new Intl.NumberFormat(i,{...s});return l=>o.format(l)}),currency:r((i,s)=>{const o=new Intl.NumberFormat(i,{...s,style:"currency"});return l=>o.format(l)}),datetime:r((i,s)=>{const o=new Intl.DateTimeFormat(i,{...s});return l=>o.format(l)}),relativetime:r((i,s)=>{const o=new Intl.RelativeTimeFormat(i,{...s});return l=>o.format(l,s.range||"day")}),list:r((i,s)=>{const o=new Intl.ListFormat(i,{...s});return l=>o.format(l)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=fr(n)}format(t,n,r,i={}){const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(l=>l.indexOf(")")>-1)){const l=s.findIndex(c=>c.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,l)].join(this.formatSeparator)}return s.reduce((l,c)=>{var f;const{formatName:d,formatOptions:u}=go(c);if(this.formats[d]){let p=l;try{const g=((f=i==null?void 0:i.formatParams)==null?void 0:f[i.interpolationkey])||{},b=g.locale||g.lng||i.locale||i.lng||r;p=this.formats[d](l,b,{...u,...i,...g})}catch(g){this.logger.warn(g)}return p}else this.logger.warn(`there was no format function for ${d}`);return l},t)}}const xo=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class wo extends Ot{constructor(t,n,r,i={}){var s,o;super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=je.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(o=(s=this.backend)==null?void 0:s.init)==null||o.call(s,r,i.backend,i)}queueLoad(t,n,r,i){const s={},o={},l={},c={};return t.forEach(d=>{let u=!0;n.forEach(f=>{const p=`${d}|${f}`;!r.reload&&this.store.hasResourceBundle(d,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?o[p]===void 0&&(o[p]=!0):(this.state[p]=1,u=!1,o[p]===void 0&&(o[p]=!0),s[p]===void 0&&(s[p]=!0),c[f]===void 0&&(c[f]=!0)))}),u||(l[d]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const i=t.split("|"),s=i[0],o=i[1];n&&this.emit("failedLoading",s,o,n),!n&&r&&this.store.addResourceBundle(s,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(c=>{ao(c.loaded,[s],o),xo(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(d=>{l[d]||(l[d]={});const u=c.loaded[d];u.length&&u.forEach(f=>{l[d][f]===void 0&&(l[d][f]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r,i=0,s=this.retryTimeout,o){if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:s,callback:o});return}this.readingCalls++;const l=(d,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(d&&u&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,s*2,o)},s);return}o(d,u)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const d=c(t,n);d&&typeof d.then=="function"?d.then(u=>l(null,u)).catch(l):l(null,d)}catch(d){l(d)}return}return c(t,n,l)}prepareLoading(t,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();B(t)&&(t=this.languageUtils.toResolveHierarchy(t)),B(n)&&(n=[n]);const s=this.queueLoad(t,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,o),!o&&l&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,l),this.loaded(t,o,l)})}saveMissing(t,n,r,i,s,o={},l=()=>{}){var c,d,u,f,p;if((d=(c=this.services)==null?void 0:c.utils)!=null&&d.hasLoadedNamespace&&!((f=(u=this.services)==null?void 0:u.utils)!=null&&f.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((p=this.backend)!=null&&p.create){const g={...o,isUpdate:s},b=this.backend.create.bind(this.backend);if(b.length<6)try{let y;b.length===5?y=b(t,n,r,i,g):y=b(t,n,r,i),y&&typeof y.then=="function"?y.then(v=>l(null,v)).catch(l):l(null,y)}catch(y){l(y)}else b(t,n,r,i,l,g)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const pr=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),B(e[1])&&(t.defaultValue=e[1]),B(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),mr=e=>{var t,n;return B(e.ns)&&(e.ns=[e.ns]),B(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),B(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Ft=()=>{},Co=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class dt extends Ot{constructor(t={},n){if(super(),this.options=mr(t),this.services={},this.logger=je,this.modules={external:[]},Co(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(B(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=pr();this.options={...r,...this.options,...mr(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?je.init(i(this.modules.logger),this.options):je.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=yo;const u=new cr(this.options);this.store=new rr(this.options.resources,this.options);const f=this.services;f.logger=je,f.resourceStore=this.store,f.languageUtils=u,f.pluralResolver=new po(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),d&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(f.formatter=i(d),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new mo(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new wo(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(g,...b)=>{this.emit(g,...b)}),this.modules.languageDetector&&(f.languageDetector=i(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=i(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Mt(this.services,this.options),this.translator.on("*",(g,...b)=>{this.emit(g,...b)}),this.modules.external.forEach(g=>{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ft),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=(...u)=>this.store[d](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...u)=>(this.store[d](...u),this)});const l=ot(),c=()=>{const d=(u,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),n(u,f)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),l}loadResources(t,n=Ft){var s,o;let r=n;const i=B(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const l=[],c=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(f=>{f!=="cimode"&&l.indexOf(f)<0&&l.push(f)})};i?c(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>c(u)),(o=(s=this.options.preload)==null?void 0:s.forEach)==null||o.call(s,d=>c(d)),this.services.backendConnector.load(l,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(d)})}else r(null)}reloadResources(t,n,r){const i=ot();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Ft),this.services.backendConnector.reload(t,n,s=>{i.resolve(),r(s)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ir.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=ot();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?this.isLanguageChangingTo===t&&(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve((...d)=>this.t(...d)),n&&n(l,(...d)=>this.t(...d))},o=l=>{var u,f;!t&&!l&&this.services.languageDetector&&(l=[]);const c=B(l)?l:l&&l[0],d=this.store.hasLanguageSomeTranslations(c)?c:this.services.languageUtils.getBestMatchFromCodes(B(l)?[l]:l);d&&(this.language||i(d),this.translator.language||this.translator.changeLanguage(d),(f=(u=this.services.languageDetector)==null?void 0:u.cacheUserLanguage)==null||f.call(u,d)),this.loadResources(d,p=>{s(p,d)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),r}getFixedT(t,n,r){const i=(s,o,...l)=>{let c;typeof o!="object"?c=this.options.overloadTranslationOptionHandler([s,o].concat(l)):c={...o},c.lng=c.lng||i.lng,c.lngs=c.lngs||i.lngs,c.ns=c.ns||i.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||i.keyPrefix);const d=this.options.keySeparator||".";let u;return c.keyPrefix&&Array.isArray(s)?u=s.map(f=>`${c.keyPrefix}${d}${f}`):u=c.keyPrefix?`${c.keyPrefix}${d}${s}`:s,this.t(u,c)};return B(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(l,c)=>{const d=this.services.backendConnector.state[`${l}|${c}`];return d===-1||d===0||d===2};if(n.precheck){const l=n.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(s,t)))}loadNamespaces(t,n){const r=ot();return this.options.ns?(B(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ot();B(t)&&(t=[t]);const i=this.options.preload||[],s=t.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return s.length?(this.options.preload=i.concat(s),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){var i,s;if(t||(t=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const l=o.getTextInfo();if(l&&l.direction)return l.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((s=this.services)==null?void 0:s.languageUtils)||new cr(pr());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new dt(t,n)}cloneInstance(t={},n=Ft){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},s=new dt(i);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(l=>{s[l]=this[l]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const l=Object.keys(this.store.data).reduce((c,d)=>(c[d]={...this.store.data[d]},c[d]=Object.keys(c[d]).reduce((u,f)=>(u[f]={...c[d][f]},u),c[d]),c),{});s.store=new rr(l,i),s.services.resourceStore=s.store}return s.translator=new Mt(s.services,i),s.translator.on("*",(l,...c)=>{s.emit(l,...c)}),s.init(i,n),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const le=dt.createInstance();le.createInstance=dt.createInstance,le.createInstance,le.dir,le.init,le.loadResources,le.reloadResources,le.use,le.changeLanguage,le.getFixedT;const xe=le.t;le.exists,le.setDefaultNamespace,le.hasLoadedNamespace,le.loadNamespaces,le.loadLanguages;const ko={bottom:"270deg",left:"0deg",right:"180deg",top:"90deg",forLobby:"0deg"},Ie=({position:e="forLobby",width:t=9,height:n=14})=>a.jsxs(a.Fragment,{children:[a.jsx("svg",{width:String(t),height:String(n),style:{rotate:ko[e]},viewBox:"0 0 9 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M8.08915 0.577485C8.24538 0.733758 8.33314 0.945681 8.33314 1.16665C8.33314 1.38762 8.24538 1.59954 8.08915 1.75582L2.84498 6.99998L8.08915 12.2442C8.24095 12.4013 8.32495 12.6118 8.32305 12.8303C8.32115 13.0488 8.23351 13.2578 8.079 13.4123C7.92449 13.5668 7.71548 13.6545 7.49699 13.6564C7.27849 13.6583 7.06799 13.5743 6.91082 13.4225L1.07748 7.58915C0.921259 7.43288 0.833496 7.22095 0.833496 6.99998C0.833496 6.77901 0.921259 6.56709 1.07748 6.41082L6.91082 0.577485C7.06709 0.421259 7.27902 0.333496 7.49999 0.333496C7.72096 0.333496 7.93288 0.421259 8.08915 0.577485Z",fill:"white",fillOpacity:"0.8"})}),e==="forLobby"&&a.jsx("span",{className:"text",children:xe("Lobby")})]}),gr="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.45402%200.399902C9.87463%200.399915%2010.2805%200.554948%2010.594%200.835361C10.9075%201.11577%2011.1066%201.50189%2011.1534%201.9199H12.1171C12.4507%201.92011%2012.7721%202.04571%2013.0175%202.2718C13.2628%202.49788%2013.4143%202.80794%2013.4417%203.14046L13.4463%203.2499V5.5299C13.4463%206.16081%2013.205%206.76781%2012.7717%207.2264C12.3384%207.68498%2011.746%207.96038%2011.1161%207.9961L10.9565%208.00066C10.7032%208.79031%2010.2308%209.49174%209.59422%2010.0232C8.95765%2010.5547%208.18316%2010.8944%207.36098%2011.0027V12.1799H8.69326C9.32403%2012.1801%209.93085%2012.4215%2010.3893%2012.8548C10.8477%2013.2881%2011.123%2013.8803%2011.1587%2014.5101L11.1633%2014.6499V15.0299C11.1632%2015.1678%2011.1132%2015.3009%2011.0226%2015.4048C10.9319%2015.5086%2010.8066%2015.576%2010.67%2015.5946L10.5933%2015.5999H2.99174C2.85387%2015.6001%202.72061%2015.5503%202.61664%2015.4597C2.51267%2015.3692%202.44505%2015.244%202.4263%2015.1074L2.42174%2015.0299V14.6499C2.42169%2014.0191%202.66296%2013.4122%203.09609%2012.9537C3.52922%2012.4951%204.12138%2012.2196%204.75114%2012.1837L4.89174%2012.1799H6.22174V11.0027C5.39983%2010.8941%204.62567%2010.5543%203.98939%2010.0229C3.3531%209.49138%202.88088%208.7901%202.6277%208.00066L2.60794%207.9999C1.95285%207.9999%201.3246%207.73967%200.861386%207.27646C0.398171%206.81324%200.137939%206.18499%200.137939%205.5299V3.2499C0.137939%202.51574%200.733779%201.9199%201.46794%201.9199H2.43162C2.47837%201.50176%202.67763%201.11554%202.9913%200.835108C3.30496%200.554677%203.711%200.399728%204.13174%200.399902H9.45402ZM12.1171%203.0599H11.164V6.84698C11.4613%206.80474%2011.7355%206.66316%2011.9421%206.44527C12.1486%206.22739%2012.2754%205.94602%2012.3017%205.64694L12.3071%205.5299V3.2499C12.307%203.2071%2012.2925%203.16557%2012.2658%203.13205C12.2392%203.09853%2012.2021%203.07498%2012.1604%203.06522L12.1171%203.0599ZM2.42174%203.0599H1.46794C1.41755%203.0599%201.36922%203.07992%201.33359%203.11555C1.29796%203.15118%201.27794%203.19951%201.27794%203.2499V5.5299C1.2779%205.85041%201.3936%206.16016%201.60375%206.40215C1.81391%206.64415%202.10439%206.80211%202.42174%206.84698V3.0599Z'%20fill='url(%23paint0_linear_851_822)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_851_822'%20x1='-0.221746'%20y1='-2.13343'%20x2='19.2003'%20y2='7.59061'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23B97304'/%3e%3cstop%20offset='0.368995'%20stop-color='%23FFC15D'/%3e%3cstop%20offset='0.5'%20stop-color='%23FFD38B'/%3e%3cstop%20offset='0.611316'%20stop-color='%23FFC15D'/%3e%3cstop%20offset='1'%20stop-color='%23B97304'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",vo=()=>a.jsx("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M7.00085 21H25.0008C25.2557 21.0003 25.5009 21.0979 25.6862 21.2728C25.8715 21.4478 25.9831 21.687 25.998 21.9414C26.013 22.1958 25.9302 22.4464 25.7666 22.6418C25.603 22.8373 25.3709 22.9629 25.1178 22.993L25.0008 23H7.00085C6.74597 22.9997 6.50081 22.9021 6.31548 22.7272C6.13014 22.5522 6.01861 22.313 6.00367 22.0586C5.98874 21.8042 6.07152 21.5536 6.23511 21.3582C6.3987 21.1627 6.63075 21.0371 6.88385 21.007L7.00085 21ZM7.00085 15L25.0008 14.998C25.2557 14.9983 25.5009 15.0959 25.6862 15.2708C25.8715 15.4458 25.9831 15.685 25.998 15.9394C26.013 16.1938 25.9302 16.4444 25.7666 16.6398C25.603 16.8353 25.3709 16.9609 25.1178 16.991L25.0008 16.998L7.00085 17C6.74597 16.9997 6.50081 16.9021 6.31548 16.7272C6.13014 16.5522 6.01861 16.313 6.00367 16.0586C5.98874 15.8042 6.07152 15.5536 6.23511 15.3582C6.3987 15.1627 6.63075 15.0371 6.88385 15.007L7.00085 15ZM7.00085 9H25.0008C25.2557 9.00028 25.5009 9.09788 25.6862 9.27285C25.8715 9.44782 25.9831 9.68695 25.998 9.94139C26.013 10.1958 25.9302 10.4464 25.7666 10.6418C25.603 10.8373 25.3709 10.9629 25.1178 10.993L25.0008 11H7.00085C6.74597 10.9997 6.50081 10.9021 6.31548 10.7272C6.13014 10.5522 6.01861 10.313 6.00367 10.0586C5.98874 9.80416 6.07152 9.55362 6.23511 9.35817C6.3987 9.16271 6.63075 9.0371 6.88385 9.007L7.00085 9Z",fill:"white",fillOpacity:"0.6"})}),Ao=m.div`
|
|
222
|
+
`,Ta=({isSettings:e,volumeTitle:t,volume:n,setVolume:r})=>{const{t:i}=E();return a.jsxs(zs,{$isSettings:e,children:[a.jsx("p",{children:i(t??"")}),a.jsx(Os,{min:0,max:100,step:.01,value:n,onClick:s=>s.stopPropagation(),onChange:s=>{s.preventDefault(),r(parseFloat(s.target.value))},$isSettings:e})]})},it=({icon:e,onClick:t,buttonInfo:n,isActive:r,isValueButton:i=!1,width:s=32,height:o=32,text:l,textStyle:c,isActiveBlue:d,streamVolume:u,setStreamVolume:f,isHoverActive:p=!0,positonHover:g="bottom"})=>{const[b,y]=C.useState(!1),{t:v}=E(),A=()=>{if(n)return a.jsxs(Ds,{$positonHover:g,"data-testid":"button-info",children:[a.jsx(Ps,{position:g}),v(n)]});if(i&&f&&typeof u=="number")return a.jsx(Ns,{children:a.jsx(Ta,{setVolume:f,volume:u})})};return a.jsx(a.Fragment,{children:a.jsxs(Ts,{width:s,height:o,$isValueButton:i,$isActive:r,$isActiveBlue:d,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),onClick:t,"data-testid":"custom-button",$isTournament:n==="Tournament",$isHoverActive:p,children:[c&&l&&a.jsx("p",{className:c,children:v(l)}),e,b&&!r&&A()]})})},Ms=(e,t)=>{const n=e.reduce((i,s,o)=>s===t||s<t?i=o:i,0);return[["#D8B30F","#E8BE01","#ECCB37"],["#1C5A2A","#216D32","#31A049"],["#7A2525","#7E2626","#B33636"],["#1E2C5E","#1F3164","#2E4091"],["#3886CA","#2E97F2","#53AFFF"],["#1A1A1A","#2A2A2A","#404040"],["#64167E","#7A1CA5","#910AD4"],["#CB5621","#D25C21","#F06428"],["#C63EC3","#E258D4","#F065DB"]][n]},Un=e=>e>999999999?`${Ht(e/1e9)}B`:e>999999?`${Ht(e/1e6)}M`:e>999?`${Ht(e/1e3)}K`:Ht(e),Ht=e=>new Intl.NumberFormat("ru").format(Number(e)),Fs=[{x:10,y:2,size:0},{x:2,y:2,size:0},{x:2,y:-1,size:-.6},{x:0,y:-2,size:-.8},{x:0,y:-2,size:-1},{x:0,y:-3,size:-1.1},{x:0,y:-3,size:-1.2},{x:0,y:-3,size:-1.3}],Da={x:15,y:40,size:1.8},Rs=e=>{const t=e.length,n=e[t-1],r=n==="K"||n==="M"||n==="B";let i;return r&&t===2?i={x:2,y:0,size:-.4}:i=Fs[t-1]??{x:0,y:0,size:0},{x:Da.x+i.x,y:Da.y+i.y,size:Da.size+i.size}},st=({chipAmounts:e,amount:t,width:n=64,height:r=67,isDisabled:i=!1,onClick:s})=>{const o=Ms(e,t),l=Un(t),c=Rs(l);return a.jsxs("svg",{onClick:()=>!!s&&s(t),width:n,height:r,viewBox:"0 0 64 67",xmlns:"http://www.w3.org/2000/svg",fill:o[1],style:{cursor:"pointer"},className:i?"disabled":"",children:[a.jsx("path",{d:"M64 32.9821C64 35.9872 63.5861 38.8956 62.8119 41.6533C61.2245 47.3133 58.1211 52.3385 53.9679 56.2619C50.2148 59.8095 45.6054 62.4566 40.4815 63.862C37.7805 64.6035 34.9367 64.9992 32 64.9992C29.0633 64.9992 26.0996 64.5866 23.3472 63.8144C17.976 62.3091 13.1762 59.4361 9.34626 55.5949C5.33359 51.5709 2.38533 46.4842 0.959201 40.7927C0.332533 38.2932 0 35.6768 0 32.9821C0 30.7107 0.236536 28.4947 0.685802 26.3578C1.89767 20.5941 4.65854 15.4021 8.51301 11.2367C12.5203 6.90531 17.7095 3.685 23.5684 2.08829C25.3509 1.6019 27.1955 1.26612 29.0878 1.09554C29.4073 1.06788 29.7283 1.04559 30.0486 1.02869C32.0054 1.0041 33.9253 0.92726 35.8644 1.20311C36.1847 1.23769 36.5003 1.27918 36.8144 1.32452C38.133 1.52353 39.4256 1.80322 40.6858 2.15822C46.4149 3.77106 51.4927 6.93912 55.4348 11.1799C59.3207 15.3591 62.1023 20.5788 63.3173 26.3755C63.765 28.507 64 30.7169 64 32.9821Z",fill:`url(#paint0_linear_757_1992_${t})`},t),a.jsx("g",{filter:`url(#filter0_d_757_1992_${t})`,children:a.jsx("path",{d:"M40.6858 2.15919L39.5684 5.86051C37.1201 5.17665 34.5866 4.83164 32 4.83164C29.4135 4.83164 27.0535 5.1536 24.682 5.79136L23.5684 2.08927C25.3509 1.60288 27.1956 1.2671 29.0879 1.09651C29.4073 1.06885 29.7284 1.04657 30.0486 1.02966C32.0054 1.00508 33.9253 0.928237 35.8645 1.20409C36.1847 1.23867 36.5004 1.28016 36.8145 1.32549C38.1331 1.52451 39.4256 1.8042 40.6858 2.15919Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter1_d_757_1992_${t})`,children:a.jsx("path",{d:"M40.4815 63.8627C37.7806 64.6042 34.9367 64.9999 32 64.9999C29.0633 64.9999 26.0997 64.5873 23.3472 63.815L24.4539 60.146C26.8953 60.826 29.4219 61.1687 32 61.1687C34.5781 61.1687 36.988 60.8414 39.3779 60.1929L40.4815 63.8627Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter2_d_757_1992_${t})`,children:a.jsx("path",{d:"M62.5692 42.4202C60.8367 48.0372 57.6051 52.981 53.352 56.796L50.8691 53.8731C51.0404 53.7178 51.2109 53.5596 51.3783 53.4005C54.0301 50.881 56.1367 47.9219 57.6396 44.6048C58.1211 43.5429 58.5335 42.4579 58.8768 41.3545L62.5685 42.4202H62.5692Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter3_d_757_1992_${t})`,children:a.jsx("path",{d:"M12.4527 53.4964C12.6393 53.6754 12.8282 53.8513 13.0187 54.0242L10.5696 56.8811C6.33424 53.0468 3.12487 48.0884 1.41766 42.4638L5.01563 41.4419C5.352 42.5384 5.75749 43.6164 6.23133 44.6722C7.71967 47.9962 9.81394 50.9645 12.4527 53.4964Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter4_d_757_1992_${t})`,children:a.jsx("path",{d:"M62.6936 24.174L59.0396 25.1283C58.7355 24.081 58.3692 23.0491 57.9406 22.0356C56.523 18.6816 54.4932 15.6687 51.9074 13.0816C51.6955 12.8695 51.4804 12.6613 51.2623 12.4569L53.8496 9.56543C58.0028 13.4888 61.1062 18.5141 62.6936 24.174Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter5_d_757_1992_${t})`,children:a.jsx("path",{d:"M12.6662 12.523C12.4727 12.7058 12.2807 12.8925 12.0918 13.0816C9.50678 15.6687 7.47625 18.6816 6.05857 22.0356C5.6262 23.0591 5.25603 24.101 4.95038 25.1598L1.17578 24.174C2.76319 18.5141 5.86657 13.4888 10.0198 9.56543L12.6662 12.523Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter6_d_757_1992_${t})`,children:a.jsx("path",{d:"M50.3354 32.9998C50.3354 22.868 42.1264 14.6546 32 14.6546C21.8737 14.6546 13.6646 22.868 13.6646 32.9998C13.6646 43.1316 21.8737 51.3451 32 51.3451C42.1264 51.3451 50.3354 43.1316 50.3354 32.9998ZM53.4073 32.9998C53.4073 44.8291 43.823 54.4186 32 54.4186C20.1771 54.4186 10.5927 44.8291 10.5927 32.9998C10.5927 21.1706 20.1771 11.5811 32 11.5811C43.823 11.5811 53.4073 21.1706 53.4073 32.9998Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter7_d_757_1992_${t})`,children:a.jsx("path",{d:"M47.3047 7.29899L44.6224 7.75146L45.0747 10.4352L47.757 9.98274L47.3047 7.29899Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter8_d_757_1992_${t})`,children:a.jsx("path",{d:"M59.8872 31.6251L57.9756 33.5376L59.8872 35.4501L61.7987 33.5376L59.8872 31.6251Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter9_d_757_1992_${t})`,children:a.jsx("path",{d:"M16.6074 7.29867L16.1552 9.98242L18.8375 10.4349L19.2897 7.75115L16.6074 7.29867Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter10_d_757_1992_${t})`,children:a.jsx("path",{d:"M19.1639 55.6978L16.5338 56.3921L17.2277 59.0237L19.8579 58.3294L19.1639 55.6978Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter11_d_757_1992_${t})`,children:a.jsx("path",{d:"M44.8533 55.6221L44.0948 58.2358L46.7071 58.9947L47.4656 56.381L44.8533 55.6221Z",fill:"white"})}),a.jsx("g",{filter:`url(#filter12_d_757_1992_${t})`,children:a.jsx("path",{d:"M4.02411 31.6256L2.11261 33.5381L4.02411 35.4506L5.93562 33.5381L4.02411 31.6256Z",fill:"white"})}),a.jsxs("defs",{children:[a.jsxs("filter",{id:`filter0_d_757_1992_${t}`,x:"22.8004",y:"0.616977",width:"18.6534",height:"6.39538",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter1_d_757_1992_${t}`,x:"22.5792",y:"59.762",width:"18.6703",height:"6.39",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter2_d_757_1992_${t}`,x:"50.1011",y:"40.9705",width:"13.2361",height:"16.9774",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter3_d_757_1992_${t}`,x:"0.649664",y:"41.0579",width:"13.137",height:"16.975",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter4_d_757_1992_${t}`,x:"50.4943",y:"9.18143",width:"12.9673",height:"17.099",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter5_d_757_1992_${t}`,x:"0.407781",y:"9.18143",width:"13.0264",height:"17.1302",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter6_d_757_1992_${t}`,x:"9.82471",y:"11.1971",width:"44.3506",height:"44.3734",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter7_d_757_1992_${t}`,x:"43.8544",y:"6.91483",width:"4.67052",height:"4.67223",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter8_d_757_1992_${t}`,x:"57.2076",y:"31.241",width:"5.359",height:"5.3612",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter9_d_757_1992_${t}`,x:"15.3872",y:"6.91483",width:"4.67052",height:"4.67223",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter10_d_757_1992_${t}`,x:"15.7658",y:"55.3138",width:"4.8601",height:"4.86168",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter11_d_757_1992_${t}`,x:"43.3268",y:"55.2381",width:"4.90673",height:"4.90856",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("filter",{id:`filter12_d_757_1992_${t}`,x:"1.34461",y:"31.2415",width:"5.359",height:"5.3612",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[a.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),a.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),a.jsx("feOffset",{dy:"0.384"}),a.jsx("feGaussianBlur",{stdDeviation:"0.384"}),a.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),a.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0 0.0666667 0 0 0 0.6 0"}),a.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_757_1992"}),a.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_757_1992",result:"shape"})]}),a.jsxs("linearGradient",{id:`paint0_linear_757_1992_${t}`,x1:"47.6882",y1:"59.7588",x2:"7.98215",y2:"-7.93826",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{offset:"0.12",stopColor:o[0]}),a.jsx("stop",{offset:"0.31",stopColor:o[1]}),a.jsx("stop",{offset:"0.69",stopColor:o[2]})]})]}),a.jsx("text",{style:{fontSize:`${c==null?void 0:c.size}em`},className:"amount",fill:"#fff",children:a.jsx("tspan",{y:c==null?void 0:c.y,x:c==null?void 0:c.x,children:l})})]},t)};var Kn=(e=>(e.Launch="launch",e.GameChange="GameChange",e.SendMessage="SendMessage",e.GetBalance="GetBalance",e.PlaceBet="PlaceBet",e.GetPlayerState="GetPlayerState",e.PlaceBetBulk="PlaceBetBulk",e.SitOutPlayer="SitOutPlayer",e.SetNickname="SetNickname",e.GetHistory="GetHistory",e.SendTip="SendTip",e.ChangeDealerLanguage="ChangeDealerLanguage",e))(Kn||{});const Ws={undoArray:"undoArray"},Gs="https://livelobby8.livevegas.live",Na=(e,t,n)=>{const{tableId:r,gameId:i,lang:s,playerId:o,token:l,exitUrl:c}=n;localStorage.setItem(Ws.undoArray,JSON.stringify([])),t==null||t.invoke(Kn.SitOutPlayer,{tableId:Number(r),gameId:Number(i)});const d={name:"closed",sender:"game"},f={name:"closeFrame",url:`${Gs}/?lang=${s}&playerId=${o}&token=${l}&gameId=${i}&gameType=8&exitUrl=${c}&partnerId=${e}`};window.parent.postMessage(d,"*"),window.parent.postMessage(f,"*"),window.parent.postMessage("closeGame","*")},Yn=e=>{const t=new Date(e.calculationEndDate),n=new Date,r=t.getTime()-n.getTime();return r<=0?{days:0,hours:0,minutes:0,seconds:0}:{days:Math.floor(r/(1e3*60*60*24)),hours:Math.floor(r/(1e3*60*60)%24),minutes:Math.floor(r/1e3/60%60),seconds:Math.floor(r/1e3%60)}},Vs={1:"Session not found, try to log in again.",2:"Please return to the site and log in again.",3:"Please return to the site and log in again.",4:"Player blocked",5:"Not enough balance",8:"Currency is wrong, please refresh the page",11:"Incorrect credentials",21:"Nickname already exists",22:"Nickname is not allowed",31:"Chat is blocked",33:"Bet Amount is less or greater from limits",35:"Nick already selected",52:"The loss limit reached",54:"Round has been canceled!",506:"Insurance Is Not Allowed",508:"Player Invalid State",525:"Bet Is Not Accepted",999:"Something went wrong"};var De=(e=>(e[e.Money=1]="Money",e[e.Cashback=2]="Cashback",e[e.Rakeback=3]="Rakeback",e[e.FreeSpin=4]="FreeSpin",e[e.Tournament=5]="Tournament",e))(De||{});function Zn(e){return{USD:"$",RUB:"₽",AMD:"֏",AOA:"AOA",AZN:"₼",BAM:"BAM",BGN:"BGN",BIF:"BIF",BMD:"BD$",BND:"B$",BOB:"BOB",BRL:"R$",BTC:"₿",CDF:"FC",CNY:"¥",CRC:"₡",CZK:"CZK",DKK:"kr",DOP:"RD$",EGP:"E£",ETB:"Br",ETH:"Ξ",EUR:"€",GBP:"£",GEL:"₾",GTQ:"Q",HKD:"HK$",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",INR:"₹",JMD:"J$",JPY:"¥",KES:"KSh",KGS:"KGS",KHR:"៛",KRW:"₩",KWD:"ك",KZT:"₸",LAT:"Ls",LTL:"Lt",LVL:"Ls",MAD:"dh",MET:"MT",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MUR:"₨",NGN:"₦",NIS:"₪",NPR:"रू",PKR:"Rs",PLN:"zł",QAR:"ر.ق",RMB:"¥",RON:"lei",RDS:"дин",RWF:"R₣",SAO:"Db",SEK:"kr",SGD:"S$",SSP:"SS£",SYP:"SYP",THB:"฿",TRY:"₺",TWD:"NT$",UAH:"₴",USDT:"USD₮",UYU:"$U",VEF:"Bs",VND:"₫",XAF:"FCFA",XOF:"CFA",ZAR:"R",ZMW:"ZK"}[e]||e}var Ha=(e=>(e[e.BetConstruct=2]="BetConstruct",e[e.PokerDom=32]="PokerDom",e[e.Test=49]="Test",e[e.BetArabia=67]="BetArabia",e[e.Betrupi=69]="Betrupi",e[e.Galabet=155]="Galabet",e[e.Lynon=156]="Lynon",e[e.Demo=160]="Demo",e[e.HiltonBet=204]="HiltonBet",e))(Ha||{});const Xn=()=>a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M8 0.818001C9.44828 0.818026 10.8627 1.25591 12.0577 2.07417C13.2526 2.89244 14.1723 4.05286 14.696 5.40315C15.2196 6.75343 15.3228 8.23049 14.992 9.64048C14.6612 11.0505 13.9118 12.3275 12.8423 13.304C11.7727 14.2805 10.4329 14.9108 8.99872 15.1122C7.56452 15.3136 6.10294 15.0767 4.80577 14.4326C3.50861 13.7885 2.43649 12.7673 1.7301 11.503C1.02371 10.2387 0.716059 8.79033 0.84753 7.34803C0.856961 7.24366 0.886859 7.14216 0.935515 7.04934C0.984172 6.95652 1.05063 6.87419 1.13111 6.80706C1.21158 6.73992 1.30449 6.68929 1.40453 6.65806C1.50457 6.62683 1.60978 6.61561 1.71416 6.62505C1.81853 6.63448 1.92003 6.66438 2.01285 6.71303C2.10567 6.76169 2.188 6.82815 2.25514 6.90862C2.32227 6.9891 2.3729 7.08201 2.40413 7.18205C2.43536 7.28209 2.44658 7.3873 2.43715 7.49167C2.36041 8.30778 2.46522 9.13074 2.74405 9.90156C3.02288 10.6724 3.46883 11.372 4.0499 11.9501C4.34915 12.2494 4.68192 12.5143 5.04102 12.7385C5.9304 13.2937 6.95809 13.5875 8.00654 13.5861C9.055 13.5847 10.0819 13.2882 10.9698 12.7307C11.8577 12.1731 12.5708 11.3769 13.0274 10.4331C13.4841 9.48932 13.6659 8.43606 13.5521 7.3938C13.4383 6.35153 13.0335 5.36233 12.384 4.53932C11.7344 3.71632 10.8663 3.09274 9.87901 2.7399C8.89171 2.38706 7.82503 2.3192 6.80097 2.54409C5.77692 2.76898 4.83682 3.27754 4.08821 4.0116L5.20541 4.01239C5.40996 4.011 5.60725 4.08821 5.75651 4.22808C5.90578 4.36796 5.99563 4.55981 6.00751 4.76403C6.01939 4.96825 5.95239 5.16923 5.82035 5.32547C5.68831 5.48171 5.50132 5.58127 5.29798 5.60361L5.20541 5.60839H2.01181C1.81635 5.60837 1.6277 5.53661 1.48164 5.40673C1.33558 5.27685 1.24227 5.09787 1.2194 4.90376L1.21381 4.81039V1.61839C1.21241 1.41384 1.28963 1.21655 1.4295 1.06729C1.56938 0.918021 1.76123 0.82817 1.96545 0.816289C2.16966 0.804409 2.37065 0.871407 2.52689 1.00345C2.68313 1.13549 2.78269 1.32249 2.80502 1.52583L2.80981 1.61919V3.03484C3.47991 2.33336 4.28542 1.7752 5.17756 1.39415C6.0697 1.01309 7.0299 0.817089 8 0.818001ZM7.4015 4.01C7.54613 4.01001 7.68586 4.06238 7.79486 4.15744C7.90386 4.25251 7.97475 4.38382 7.99442 4.5271L8 4.6085V8H9.7955C9.94714 8.00005 10.0931 8.05765 10.2039 8.16117C10.3147 8.2647 10.3821 8.40642 10.3924 8.55771C10.4028 8.70899 10.3553 8.85856 10.2596 8.97619C10.1639 9.09382 10.0271 9.17074 9.8769 9.19141L9.7955 9.197H7.4015C7.25688 9.19699 7.11714 9.14462 7.00814 9.04956C6.89915 8.9545 6.82826 8.82318 6.80859 8.6799L6.803 8.5985V4.6085C6.803 4.44977 6.86606 4.29754 6.9783 4.1853C7.09054 4.07306 7.24277 4.01 7.4015 4.01Z",fill:"white"})}),qn=()=>a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M7.99996 0.39917C12.1982 0.39917 15.6015 3.80245 15.6015 8.00069C15.6015 12.1982 12.1982 15.6014 7.99996 15.6014C3.80172 15.6014 0.398438 12.1982 0.398438 8.00069C0.398437 3.80245 3.80172 0.39917 7.99996 0.39917ZM7.99692 6.66917C7.81067 6.66942 7.63099 6.73806 7.49201 6.86205C7.35303 6.98604 7.26442 7.15675 7.243 7.34177L7.23768 7.42993L7.23996 11.6114L7.24528 11.7004C7.2667 11.8857 7.35556 12.0567 7.49493 12.1808C7.6343 12.3048 7.81443 12.3733 8.00101 12.3731C8.1876 12.3729 8.3676 12.3041 8.50671 12.1798C8.64583 12.0554 8.73435 11.8842 8.7554 11.6988L8.75996 11.6099L8.75768 7.42917L8.75236 7.34025C8.73039 7.15539 8.64133 6.98501 8.50209 6.86146C8.36284 6.7379 8.18308 6.66975 7.99692 6.66993V6.66917ZM7.99996 3.81993C7.7477 3.81993 7.50577 3.92014 7.3274 4.09851C7.14903 4.27688 7.04882 4.51881 7.04882 4.77107C7.04882 5.02333 7.14903 5.26525 7.3274 5.44363C7.50577 5.622 7.7477 5.72221 7.99996 5.72221C8.25221 5.72221 8.49414 5.622 8.67251 5.44363C8.85089 5.26525 8.9511 5.02333 8.9511 4.77107C8.9511 4.51881 8.85089 4.27688 8.67251 4.09851C8.49414 3.92014 8.25221 3.81993 7.99996 3.81993Z",fill:"white"})}),Qn=()=>a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M7.99999 0.626709C12.0724 0.626709 15.3735 3.92783 15.3735 8.00023C15.3735 12.0726 12.0724 15.3737 7.99999 15.3737C6.80712 15.3753 5.63183 15.0863 4.57573 14.5317L1.41249 15.3553C1.30679 15.3828 1.19574 15.3823 1.09033 15.3537C0.984926 15.325 0.888826 15.2694 0.811558 15.1922C0.73429 15.115 0.678535 15.019 0.649821 14.9136C0.621107 14.8082 0.620429 14.6971 0.647855 14.5914L1.47074 11.4289C0.914629 10.3717 0.624828 9.19478 0.626472 8.00023C0.626472 3.92783 3.9276 0.626709 7.99999 0.626709ZM8.92316 8.73758H5.6036L5.52839 8.74274C5.39603 8.76095 5.27473 8.82647 5.18693 8.92718C5.09913 9.02789 5.05075 9.15698 5.05075 9.29059C5.05075 9.4242 5.09913 9.5533 5.18693 9.65401C5.27473 9.75472 5.39603 9.82024 5.52839 9.83845L5.6036 9.84361H8.92316L8.99763 9.83845C9.12999 9.82024 9.25129 9.75472 9.33909 9.65401C9.42689 9.5533 9.47526 9.4242 9.47526 9.29059C9.47526 9.15698 9.42689 9.02789 9.33909 8.92718C9.25129 8.82647 9.12999 8.76095 8.99763 8.74274L8.92316 8.73758ZM10.3964 6.15685H5.6036L5.52839 6.16201C5.39603 6.18022 5.27473 6.24574 5.18693 6.34645C5.09913 6.44716 5.05075 6.57625 5.05075 6.70986C5.05075 6.84347 5.09913 6.97257 5.18693 7.07328C5.27473 7.17399 5.39603 7.2395 5.52839 7.25772L5.6036 7.26288H10.3964L10.4716 7.25772C10.604 7.2395 10.7253 7.17399 10.8131 7.07328C10.9009 6.97257 10.9492 6.84347 10.9492 6.70986C10.9492 6.57625 10.9009 6.44716 10.8131 6.34645C10.7253 6.24574 10.604 6.18022 10.4716 6.16201L10.3964 6.15685Z",fill:"white"})}),Jn=()=>a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M1.5649 0.61447C1.77202 0.627228 1.96726 0.710458 2.10916 0.846923C2.25073 0.983355 2.32913 1.16359 2.32959 1.3503V14.6482L2.32237 14.7484C2.29404 14.9338 2.18863 15.104 2.0274 15.2221C1.86635 15.3401 1.66058 15.3982 1.45348 15.3856C1.24629 15.3728 1.05188 15.289 0.910021 15.1524C0.768089 15.0156 0.688054 14.8354 0.687988 14.6482V1.3503L0.696004 1.25091C0.724466 1.06585 0.830082 0.896783 0.990979 0.778791C1.15211 0.660819 1.35768 0.601849 1.5649 0.61447ZM4.19883 12.4519C4.48644 12.1652 4.93246 12.1301 5.28895 12.3261C5.4857 12.4343 5.6787 12.5223 5.88612 12.589C6.31321 12.7265 6.66737 13.0791 6.66764 13.5252V14.3404C6.66752 14.6531 6.45573 14.9144 6.17468 14.9769H5.91177C5.26266 14.8467 4.63859 14.6269 4.05615 14.3276C3.84833 14.2208 3.72518 14.0026 3.72511 13.7689V13.1974C3.72511 13.023 3.7948 12.8557 3.91828 12.7325L4.19883 12.4519ZM9.34245 12.3261C9.69807 12.1286 10.1433 12.1636 10.431 12.4503L11.069 13.0868C11.3723 13.3896 11.3308 13.8789 10.9576 14.0911C10.5413 14.3277 10.1243 14.5361 10.055 14.5705C10.0482 14.5738 10.0413 14.5764 10.0342 14.5793C9.61349 14.7522 9.1792 14.8844 8.73728 14.9736C8.72972 14.9752 8.72156 14.9756 8.71403 14.9769H8.50562C8.19949 14.9246 7.96463 14.6457 7.96457 14.31V13.5276C7.96466 13.0805 8.32146 12.7273 8.7493 12.589C8.95613 12.5221 9.14732 12.4345 9.34245 12.3261ZM13.5354 9.07576C13.9714 9.076 14.3071 9.464 14.1927 9.88213C13.9919 10.6158 13.6735 11.3166 13.2453 11.9558C13.189 12.0398 13.131 12.123 13.0713 12.2043C12.8306 12.5315 12.3558 12.541 12.0678 12.2539L11.4698 11.6584C11.1543 11.3438 11.1435 10.8431 11.3752 10.4633C11.5196 10.2266 11.6434 9.97844 11.7439 9.72101C11.8879 9.35254 12.2255 9.07576 12.6232 9.07576H13.5354ZM7.31691 4.77217C8.17576 4.77333 8.99957 5.114 9.60697 5.71962C10.2145 6.32559 10.5558 7.14794 10.5568 8.00487C10.5568 8.64405 10.367 9.26969 10.011 9.80117C9.65493 10.3323 9.14874 10.7461 8.55692 10.9907C7.96477 11.2353 7.3123 11.2997 6.68367 11.175C6.05535 11.0503 5.47832 10.7419 5.02524 10.2901C4.57216 9.83816 4.26301 9.26252 4.13791 8.6357C4.01288 8.00877 4.07709 7.35864 4.32227 6.76806C4.56759 6.17743 4.98363 5.67161 5.5166 5.31643C6.04936 4.96163 6.67628 4.77222 7.31691 4.77217ZM12.4036 4.26879C12.7087 3.96475 13.2169 3.99825 13.4376 4.36738C13.9435 5.21337 14.2699 6.15766 14.3915 7.14159C14.4346 7.49092 14.1476 7.78269 13.7935 7.78284H12.8797C12.4232 7.78257 12.0546 7.42283 11.9563 6.97967C11.8784 6.62802 11.7612 6.28573 11.6053 5.96009C11.4401 5.61512 11.4758 5.19429 11.7471 4.92367L12.4036 4.26879ZM7.96457 1.69979C7.96457 1.28303 8.32653 0.952595 8.73728 1.03609C9.74411 1.24149 10.6974 1.66209 11.5283 2.2697C11.8552 2.50892 11.8645 2.97857 11.578 3.26443L10.9849 3.85518C10.6679 4.1712 10.1627 4.18186 9.77931 3.94977C9.57445 3.82567 9.35894 3.71661 9.13565 3.62433C8.99026 3.56429 8.84216 3.51154 8.69239 3.46643C8.28382 3.34343 7.96481 2.99209 7.96457 2.56788V1.69979ZM5.89654 1.03609C6.3071 0.953302 6.66764 1.28334 6.66764 1.69979V3.02717C6.66764 3.18819 6.54829 3.32245 6.3895 3.35421C5.84399 3.46246 5.32382 3.66534 4.8529 3.94977C4.59496 4.10547 4.28244 4.15106 4.00886 4.0684C3.81512 4.00984 3.72512 3.80429 3.72511 3.60189V2.24004C3.72511 2.00615 3.84885 1.7881 4.05695 1.68135C4.63848 1.38308 5.25748 1.16546 5.89654 1.03609Z",fill:"white"})}),Es=()=>a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M7.99992 0.399292C12.1982 0.399292 15.6014 3.80255 15.6014 8.00078C15.6014 12.1983 12.1982 15.6015 7.99992 15.6015C3.8017 15.6015 0.398438 12.1982 0.398438 8.00078C0.398448 3.80256 3.80171 0.399311 7.99992 0.399292ZM5.68875 4.35293C5.57808 4.36 5.47399 4.40736 5.39559 4.48578L3.57426 6.31007L3.53566 6.35312C3.46773 6.44088 3.43362 6.55111 3.44066 6.66187C3.44785 6.77245 3.49583 6.87673 3.57426 6.95503L3.6173 6.99289C3.70498 7.06075 3.81466 7.0941 3.92531 7.08714C4.03602 7.08003 4.14083 7.03279 4.21922 6.95429L5.26422 5.90707V11.1914L5.26719 11.2449C5.28015 11.3558 5.33371 11.4586 5.41711 11.5328C5.50049 11.607 5.60833 11.6478 5.71992 11.6479L5.77336 11.6457C5.88433 11.6326 5.98712 11.5785 6.06133 11.495C6.13547 11.4115 6.17572 11.3031 6.17563 11.1914V5.91003L7.22211 6.95429L7.26441 6.99289C7.35602 7.06458 7.47218 7.09859 7.58801 7.08789C7.70389 7.07712 7.81172 7.02237 7.88859 6.935C7.96536 6.84771 8.00539 6.73424 8.00141 6.61808C7.99733 6.50182 7.94907 6.39111 7.86633 6.30933L6.0398 4.48503L5.9975 4.44793C5.90975 4.37995 5.79952 4.34591 5.68875 4.35293ZM10.2265 4.35664C10.1157 4.36974 10.0134 4.42323 9.93926 4.50656C9.86509 4.58996 9.82429 4.69777 9.82422 4.80937V10.0893L8.77848 9.04578L8.73543 9.00718C8.64374 8.93629 8.52795 8.90264 8.41258 8.91367C8.29733 8.92472 8.19077 8.97971 8.11422 9.06656C8.03763 9.15355 7.99626 9.26689 7.99992 9.38273C8.00367 9.49833 8.05181 9.60813 8.13352 9.69L9.9593 11.5143L10.0016 11.5529C10.0894 11.6209 10.1996 11.6534 10.3104 11.6464C10.4211 11.6393 10.5258 11.5928 10.6043 11.5143L12.4256 9.69L12.4642 9.64695C12.5321 9.55923 12.5662 9.44964 12.5592 9.33894C12.5521 9.22813 12.5042 9.12349 12.4256 9.04503L12.3825 9.00718C12.2949 8.93938 12.1851 8.9052 12.0745 8.91218C11.9638 8.91929 11.859 8.96726 11.7806 9.04578L10.7364 10.0915V4.80937L10.7327 4.75668C10.7197 4.6457 10.6662 4.54301 10.5827 4.46871C10.4994 4.39463 10.3914 4.35376 10.2799 4.35367L10.2265 4.35664Z",fill:"white",fillOpacity:"0.6"})}),Us=()=>a.jsx(a.Fragment,{children:a.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M1.68016 2.43991C1.68016 2.23835 1.76023 2.04504 1.90276 1.90251C2.04528 1.75998 2.23859 1.67991 2.44016 1.67991H3.96016C4.16172 1.67991 4.35503 1.59984 4.49756 1.45731C4.64008 1.31479 4.72016 1.12148 4.72016 0.919912C4.72016 0.718348 4.64008 0.525039 4.49756 0.382511C4.35503 0.239983 4.16172 0.159912 3.96016 0.159912H2.44016C1.83546 0.159912 1.25554 0.400126 0.827953 0.827709C0.40037 1.25529 0.160156 1.83522 0.160156 2.43991V3.95991C0.160156 4.16148 0.240227 4.35479 0.382755 4.49731C0.525283 4.63984 0.718592 4.71991 0.920156 4.71991C1.12172 4.71991 1.31503 4.63984 1.45756 4.49731C1.60008 4.35479 1.68016 4.16148 1.68016 3.95991V2.43991ZM1.68016 11.5599C1.68016 11.7615 1.76023 11.9548 1.90276 12.0973C2.04528 12.2398 2.23859 12.3199 2.44016 12.3199H3.96016C4.16172 12.3199 4.35503 12.4 4.49756 12.5425C4.64008 12.685 4.72016 12.8783 4.72016 13.0799C4.72016 13.2815 4.64008 13.4748 4.49756 13.6173C4.35503 13.7598 4.16172 13.8399 3.96016 13.8399H2.44016C1.83546 13.8399 1.25554 13.5997 0.827953 13.1721C0.40037 12.7445 0.160156 12.1646 0.160156 11.5599V10.0399C0.160156 9.83835 0.240227 9.64504 0.382755 9.50251C0.525283 9.35998 0.718592 9.27991 0.920156 9.27991C1.12172 9.27991 1.31503 9.35998 1.45756 9.50251C1.60008 9.64504 1.68016 9.83835 1.68016 10.0399V11.5599ZM11.5602 1.67991C11.7617 1.67991 11.955 1.75998 12.0976 1.90251C12.2401 2.04504 12.3202 2.23835 12.3202 2.43991V3.95991C12.3202 4.16148 12.4002 4.35479 12.5428 4.49731C12.6853 4.63984 12.8786 4.71991 13.0802 4.71991C13.2817 4.71991 13.475 4.63984 13.6176 4.49731C13.7601 4.35479 13.8402 4.16148 13.8402 3.95991V2.43991C13.8402 1.83522 13.5999 1.25529 13.1724 0.827709C12.7448 0.400126 12.1648 0.159912 11.5602 0.159912H10.0402C9.83859 0.159912 9.64528 0.239983 9.50276 0.382511C9.36023 0.525039 9.28016 0.718348 9.28016 0.919912C9.28016 1.12148 9.36023 1.31479 9.50276 1.45731C9.64528 1.59984 9.83859 1.67991 10.0402 1.67991H11.5602ZM12.3202 11.5599C12.3202 11.7615 12.2401 11.9548 12.0976 12.0973C11.955 12.2398 11.7617 12.3199 11.5602 12.3199H10.0402C9.83859 12.3199 9.64528 12.4 9.50276 12.5425C9.36023 12.685 9.28016 12.8783 9.28016 13.0799C9.28016 13.2815 9.36023 13.4748 9.50276 13.6173C9.64528 13.7598 9.83859 13.8399 10.0402 13.8399H11.5602C12.1648 13.8399 12.7448 13.5997 13.1724 13.1721C13.5999 12.7445 13.8402 12.1646 13.8402 11.5599V10.0399C13.8402 9.83835 13.7601 9.64504 13.6176 9.50251C13.475 9.35998 13.2817 9.27991 13.0802 9.27991C12.8786 9.27991 12.6853 9.35998 12.5428 9.50251C12.4002 9.64504 12.3202 9.83835 12.3202 10.0399V11.5599Z",fill:"white"})})}),$n=()=>a.jsx(a.Fragment,{children:a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M8.00889 0.590088C8.56673 0.596168 9.12229 0.660768 9.66721 0.782368C9.78314 0.808246 9.88809 0.869694 9.96739 0.958126C10.0467 1.04656 10.0964 1.15756 10.1095 1.27561L10.2387 2.43613C10.257 2.59974 10.3134 2.75679 10.4034 2.89464C10.4934 3.03249 10.6145 3.14728 10.757 3.22979C10.8994 3.31229 11.0593 3.36021 11.2236 3.36967C11.388 3.37914 11.5523 3.34989 11.7033 3.28429L12.768 2.81689C12.8761 2.76927 12.9964 2.75642 13.1121 2.78011C13.2278 2.8038 13.3333 2.86286 13.414 2.94913C14.1831 3.77076 14.7558 4.75611 15.0891 5.83105C15.124 5.94401 15.1229 6.06505 15.086 6.17739C15.0491 6.28973 14.9782 6.38781 14.8831 6.45805L13.9392 7.15421C13.8064 7.25171 13.6985 7.37909 13.6241 7.52604C13.5497 7.67299 13.511 7.83538 13.511 8.00009C13.511 8.16479 13.5497 8.32719 13.6241 8.47414C13.6985 8.62108 13.8064 8.74846 13.9392 8.84597L14.8839 9.54137C14.9793 9.61156 15.0504 9.70972 15.0875 9.82223C15.1245 9.93473 15.1256 10.056 15.0906 10.1691C14.7572 11.244 14.1845 12.2293 13.4155 13.051C13.335 13.1371 13.2298 13.1961 13.1144 13.2199C12.999 13.2438 12.879 13.2312 12.7711 13.184L11.7017 12.7151C11.5509 12.649 11.3867 12.6193 11.2223 12.6285C11.0579 12.6376 10.898 12.6853 10.7555 12.7678C10.6129 12.8502 10.4918 12.965 10.4019 13.103C10.312 13.2409 10.2559 13.3981 10.238 13.5618L10.1095 14.7215C10.0966 14.8383 10.0479 14.9482 9.97005 15.0362C9.89223 15.1243 9.78912 15.1861 9.67481 15.2132C8.57399 15.4752 7.42708 15.4752 6.32625 15.2132C6.21195 15.1861 6.10884 15.1243 6.03102 15.0362C5.9532 14.9482 5.90448 14.8383 5.89153 14.7215L5.76385 13.5633C5.74524 13.4 5.68857 13.2434 5.59841 13.106C5.50826 12.9686 5.38713 12.8543 5.24476 12.7723C5.10239 12.6902 4.94275 12.6427 4.77868 12.6336C4.61461 12.6245 4.45069 12.6539 4.30009 12.7197L3.23153 13.1878C3.12345 13.2352 3.00333 13.2478 2.88775 13.224C2.77218 13.2002 2.66685 13.1411 2.58629 13.0548C1.81695 12.2322 1.24424 11.2458 0.911253 10.1699C0.876214 10.0567 0.877294 9.93549 0.914341 9.82299C0.951388 9.71048 1.02256 9.61232 1.11797 9.54213L2.06265 8.84597C2.19554 8.74856 2.3036 8.62122 2.37809 8.47425C2.45258 8.32729 2.4914 8.16485 2.4914 8.00009C2.4914 7.83533 2.45258 7.67288 2.37809 7.52592C2.3036 7.37896 2.19554 7.25162 2.06265 7.15421L1.11797 6.45957C1.0227 6.38928 0.951674 6.29107 0.914765 6.17857C0.877856 6.06607 0.876894 5.94488 0.912013 5.83181C1.24529 4.75688 1.818 3.77153 2.58705 2.94989C2.66775 2.86362 2.77326 2.80456 2.88899 2.78087C3.00472 2.75718 3.12495 2.77003 3.23305 2.81765L4.29705 3.28505C4.44831 3.35061 4.61283 3.37979 4.77741 3.37023C4.94199 3.36068 5.10203 3.31265 5.24468 3.23002C5.38733 3.14739 5.50861 3.03245 5.59877 2.89444C5.68894 2.75643 5.74548 2.5992 5.76385 2.43537L5.89305 1.27561C5.90609 1.15732 5.95583 1.04608 6.03529 0.957483C6.11476 0.86889 6.21995 0.80739 6.33613 0.781608C6.88105 0.660768 7.43813 0.596928 8.00889 0.590088ZM7.99977 5.72009C7.39508 5.72009 6.81515 5.9603 6.38757 6.38788C5.95999 6.81547 5.71977 7.39539 5.71977 8.00009C5.71977 8.60478 5.95999 9.18471 6.38757 9.61229C6.81515 10.0399 7.39508 10.2801 7.99977 10.2801C8.60447 10.2801 9.18439 10.0399 9.61198 9.61229C10.0396 9.18471 10.2798 8.60478 10.2798 8.00009C10.2798 7.39539 10.0396 6.81547 9.61198 6.38788C9.18439 5.9603 8.60447 5.72009 7.99977 5.72009Z",fill:"white"})})}),Ks=()=>a.jsxs("svg",{width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M9.45402 0.399902C9.87463 0.399915 10.2805 0.554948 10.594 0.835361C10.9075 1.11577 11.1066 1.50189 11.1534 1.9199H12.1171C12.4507 1.92011 12.7721 2.04571 13.0175 2.2718C13.2628 2.49788 13.4143 2.80794 13.4417 3.14046L13.4463 3.2499V5.5299C13.4463 6.16081 13.205 6.76781 12.7717 7.2264C12.3384 7.68498 11.746 7.96038 11.1161 7.9961L10.9565 8.00066C10.7032 8.79031 10.2308 9.49174 9.59422 10.0232C8.95765 10.5547 8.18316 10.8944 7.36098 11.0027V12.1799H8.69326C9.32403 12.1801 9.93085 12.4215 10.3893 12.8548C10.8477 13.2881 11.123 13.8803 11.1587 14.5101L11.1633 14.6499V15.0299C11.1632 15.1678 11.1132 15.3009 11.0226 15.4048C10.9319 15.5086 10.8066 15.576 10.67 15.5946L10.5933 15.5999H2.99174C2.85387 15.6001 2.72061 15.5503 2.61664 15.4597C2.51267 15.3692 2.44505 15.244 2.4263 15.1074L2.42174 15.0299V14.6499C2.42169 14.0191 2.66296 13.4122 3.09609 12.9537C3.52922 12.4951 4.12138 12.2196 4.75114 12.1837L4.89174 12.1799H6.22174V11.0027C5.39983 10.8941 4.62567 10.5543 3.98939 10.0229C3.3531 9.49138 2.88088 8.7901 2.6277 8.00066L2.60794 7.9999C1.95285 7.9999 1.3246 7.73967 0.861386 7.27646C0.398171 6.81324 0.137939 6.18499 0.137939 5.5299V3.2499C0.137939 2.51574 0.733779 1.9199 1.46794 1.9199H2.43162C2.47837 1.50176 2.67763 1.11554 2.9913 0.835108C3.30496 0.554677 3.711 0.399728 4.13174 0.399902H9.45402ZM12.1171 3.0599H11.164V6.84698C11.4613 6.80474 11.7355 6.66316 11.9421 6.44527C12.1486 6.22739 12.2754 5.94602 12.3017 5.64694L12.3071 5.5299V3.2499C12.307 3.2071 12.2925 3.16557 12.2658 3.13205C12.2392 3.09853 12.2021 3.07498 12.1604 3.06522L12.1171 3.0599ZM2.42174 3.0599H1.46794C1.41755 3.0599 1.36922 3.07992 1.33359 3.11555C1.29796 3.15118 1.27794 3.19951 1.27794 3.2499V5.5299C1.2779 5.85041 1.3936 6.16016 1.60375 6.40215C1.81391 6.64415 2.10439 6.80211 2.42174 6.84698V3.0599Z",fill:"url(#paint0_linear_851_570)"}),a.jsx("defs",{children:a.jsxs("linearGradient",{id:"paint0_linear_851_570",x1:"-0.221746",y1:"-2.13343",x2:"19.2003",y2:"7.59061",gradientUnits:"userSpaceOnUse",children:[a.jsx("stop",{stopColor:"#B97304"}),a.jsx("stop",{offset:"0.368995",stopColor:"#FFC15D"}),a.jsx("stop",{offset:"0.5",stopColor:"#FFD38B"}),a.jsx("stop",{offset:"0.611316",stopColor:"#FFC15D"}),a.jsx("stop",{offset:"1",stopColor:"#B97304"})]})})]}),Pa=()=>a.jsx(a.Fragment,{children:a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M10.2804 1.10977V12.8867C10.2804 13.706 9.31215 14.1407 8.69959 13.5966L5.28567 10.5611C5.18145 10.4683 5.04678 10.4169 4.90719 10.4167H2.11039C1.657 10.4167 1.22217 10.2367 0.901507 9.91615C0.580841 9.59563 0.400592 9.16088 0.400391 8.70749V5.28977C0.400391 4.83625 0.580551 4.40131 0.901238 4.08062C1.22193 3.75993 1.65687 3.57977 2.11039 3.57977H4.90719C5.04678 3.57961 5.18145 3.52822 5.28567 3.43537L8.69883 0.400692C9.31215 -0.144988 10.2804 0.288972 10.2804 1.10977ZM13.3143 2.36149C13.3745 2.31698 13.4429 2.28475 13.5155 2.26666C13.5881 2.24856 13.6636 2.24495 13.7376 2.25603C13.8117 2.26711 13.8828 2.29267 13.947 2.33123C14.0111 2.3698 14.067 2.42063 14.1116 2.48081C15.0807 3.78793 15.6028 5.37257 15.6004 6.99977C15.6025 8.62705 15.0802 10.2117 14.1108 11.5187C14.019 11.6348 13.8856 11.7106 13.7389 11.7301C13.5921 11.7496 13.4436 11.7113 13.3246 11.6232C13.2057 11.5352 13.1256 11.4043 13.1014 11.2583C13.0772 11.1122 13.1108 10.9625 13.195 10.8408C14.019 9.72993 14.4628 8.38291 14.4604 6.99977C14.4628 5.61664 14.019 4.26962 13.195 3.15873C13.1505 3.09855 13.1183 3.03019 13.1002 2.95755C13.0821 2.88492 13.0785 2.80943 13.0895 2.7354C13.1006 2.66137 13.1262 2.59025 13.1647 2.52609C13.2033 2.46193 13.2541 2.406 13.3143 2.36149ZM11.9091 4.24097C11.9749 4.20531 12.0472 4.18297 12.1217 4.17524C12.1962 4.16751 12.2715 4.17454 12.3433 4.19593C12.415 4.21731 12.4819 4.25264 12.54 4.29988C12.5981 4.34712 12.6464 4.40536 12.682 4.47125C13.0894 5.22365 13.3204 6.08625 13.3204 7.00053C13.3217 7.88365 13.1022 8.75308 12.682 9.52981C12.6464 9.59568 12.5981 9.65389 12.54 9.70111C12.4819 9.74834 12.415 9.78365 12.3432 9.80503C12.2715 9.82641 12.1962 9.83345 12.1217 9.82574C12.0472 9.81803 11.9749 9.79572 11.9091 9.76009C11.8432 9.72446 11.785 9.67621 11.7378 9.61808C11.6905 9.55996 11.6552 9.4931 11.6339 9.42133C11.6125 9.34955 11.6054 9.27427 11.6131 9.19978C11.6209 9.12529 11.6432 9.05304 11.6788 8.98717C11.998 8.39665 12.1804 7.72101 12.1804 7.00053C12.1804 6.28005 11.998 5.60441 11.6788 5.01389C11.6431 4.94803 11.6208 4.87578 11.6131 4.80128C11.6053 4.72678 11.6124 4.65149 11.6337 4.57971C11.6551 4.50793 11.6905 4.44106 11.7377 4.38294C11.7849 4.32482 11.8432 4.27658 11.9091 4.24097Z",fill:"white"})})});var z=(e=>(e[e.Message=1]="Message",e[e.Support=2]="Support",e[e.Tip=3]="Tip",e[e.History=4]="History",e[e.Info=5]="Info",e[e.Settings=6]="Settings",e[e.VolumeOn=7]="VolumeOn",e[e.FullScreen=8]="FullScreen",e[e.Tournament=9]="Tournament",e[e.closeMenu=10]="closeMenu",e[e.Limit=11]="Limit",e))(z||{});const Ys=[{name:"Tournament",buttonType:9,icon:Ks()},{name:"Message",buttonType:1,icon:Qn()},{name:"Tip",buttonType:3,icon:Jn()},{name:"History",buttonType:4,icon:Xn()},{name:"Info",buttonType:5,icon:qn()},{name:"Settings",buttonType:6,icon:$n()},{buttonType:7,icon:Pa()},{name:"FullScreen",buttonType:8,icon:Us()}],Zs=(e,t)=>{switch(e){case 6:return{header:"Settings",height:412,width:300};case 4:return{header:t?"Bet Details":"History",height:520,width:500};case 3:return{header:"Send Tip",height:176,width:300};case 9:return{header:"Golden Chip Tournament",height:450,width:500};case 5:return{header:"Help",height:450,width:500};default:return null}},Xs=[{name:"Message",buttonType:z.Message,icon:Qn()},{name:"Send Tip",buttonType:z.Tip,icon:Jn()}],qs=[{name:"History",buttonType:z.History,icon:Xn()},{name:"Help",buttonType:z.Info,icon:qn()},{name:"Limits & Payouts",buttonType:z.Limit,icon:Es()}],Qs=(e,t,n)=>{switch(e){case z.Message:return{header:"Message",height:100,width:100};case z.Support:return{header:"Support",height:100,width:100};case z.Tip:return{header:"Send Tip",height:t?100:38,width:t?50:100};case z.History:return{header:n?"Bet Details":"History",height:t?100:82.5,width:100};case z.Info:return{header:"Help",height:82.5,width:100};case z.Tournament:return{header:"Golden Chip Tournament",height:t?100:82.5,width:100};case z.Settings:return{header:"Settings",height:100,width:100};case z.Limit:return{header:"Limits & Payouts",height:100,width:100};default:return null}},Js=(e,t)=>{t(e.touches[0].clientY)},$s=(e,t,n)=>{if(!t)return;const i=e.touches[0].clientY-t;i>0&&i<300&&(e.currentTarget.style.transform=`translateY(${i}px)`),i>120&&n(!1)},_s=(e,t)=>{e.currentTarget.style.transform="translateY(0px)",t(0)},B=e=>typeof e=="string",ot=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},_n=e=>e==null?"":""+e,eo=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},to=/###/g,er=e=>e&&e.indexOf("###")>-1?e.replace(to,"."):e,tr=e=>!e||B(e),lt=(e,t,n)=>{const r=B(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(tr(e))return{};const s=er(r[i]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++i}return tr(e)?{}:{obj:e,k:er(r[i])}},ar=(e,t,n)=>{const{obj:r,k:i}=lt(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let s=t[t.length-1],o=t.slice(0,t.length-1),l=lt(e,o,Object);for(;l.obj===void 0&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),l=lt(e,o,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${s}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${s}`]=n},ao=(e,t,n,r)=>{const{obj:i,k:s}=lt(e,t,Object);i[s]=i[s]||[],i[s].push(n)},Pt=(e,t)=>{const{obj:n,k:r}=lt(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},no=(e,t,n)=>{const r=Pt(e,n);return r!==void 0?r:Pt(t,n)},nr=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?B(e[r])||e[r]instanceof String||B(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):nr(e[r],t[r],n):e[r]=t[r]);return e},Qe=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ro={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const io=e=>B(e)?e.replace(/[&<>"'\/]/g,t=>ro[t]):e;class so{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const oo=[" ",",","?","!",";"],lo=new so(20),co=(e,t,n)=>{t=t||"",n=n||"";const r=oo.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=lo.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!i.test(e);if(!s){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(s=!0)}return s},za=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let i=e;for(let s=0;s<r.length;){if(!i||typeof i!="object")return;let o,l="";for(let c=s;c<r.length;++c)if(c!==s&&(l+=n),l+=r[c],o=i[l],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&c<r.length-1)continue;s+=c-s+1;break}i=o}return i},ct=e=>e==null?void 0:e.replace("_","-"),ho={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class zt{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||ho,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(B(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new zt(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new zt(this.logger,t)}}var je=new zt;class Ot{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,s])=>{for(let o=0;o<s;o++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,s])=>{for(let o=0;o<s;o++)i.apply(i,[t,...n])})}}class rr extends Ot{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,i={}){var d,u;const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):B(r)&&s?l.push(...r.split(s)):l.push(r)));const c=Pt(this.data,l);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),c||!o||!B(r)?c:za((u=(d=this.data)==null?void 0:d[t])==null?void 0:u[n],r,s)}addResource(t,n,r,i,s={silent:!1}){const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(l=t.split("."),i=n,n=l[1]),this.addNamespaces(n),ar(this.data,l,i),s.silent||this.emit("added",t,n,r,i)}addResources(t,n,r,i={silent:!1}){for(const s in r)(B(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,s,o={silent:!1,skipCopy:!1}){let l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let c=Pt(this.data,l)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?nr(c,r,s):c={...c,...r},ar(this.data,l,c),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var ir={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(s=>{var o;t=((o=this.processors[s])==null?void 0:o.process(t,n,r,i))??t}),t}};const sr=Symbol("i18next/PATH_KEY");function uo(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>{var s;return(s=n==null?void 0:n.revoke)==null||s.call(n),i===sr?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function fo(e,t){const{[sr]:n}=e(uo());return n.join((t==null?void 0:t.keySeparator)??".")}const or={},lr=e=>!B(e)&&typeof e!="boolean"&&typeof e!="number";class Mt extends Ot{constructor(t,n={}){super(),eo(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=je.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const i=this.resolve(t,r);return(i==null?void 0:i.res)!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!co(t,r,i);if(o&&!l){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:B(s)?[s]:s};const d=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(d[0])>-1)&&(s=d.shift()),t=d.join(i)}return{key:t,namespaces:B(s)?[s]:s}}translate(t,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=fo(t,i)),Array.isArray(t)||(t=[String(t)]);const s=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:l,namespaces:c}=this.extractFromKey(t[t.length-1],i),d=c[c.length-1];let u=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const f=i.lng||this.language,p=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((f==null?void 0:f.toLowerCase())==="cimode")return p?s?{res:`${d}${u}${l}`,usedKey:l,exactUsedKey:l,usedLng:f,usedNS:d,usedParams:this.getUsedParamsDetails(i)}:`${d}${u}${l}`:s?{res:l,usedKey:l,exactUsedKey:l,usedLng:f,usedNS:d,usedParams:this.getUsedParamsDetails(i)}:l;const g=this.resolve(t,i);let b=g==null?void 0:g.res;const y=(g==null?void 0:g.usedKey)||l,v=(g==null?void 0:g.exactUsedKey)||l,A=["[object Number]","[object Function]","[object RegExp]"],k=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject,j=i.count!==void 0&&!B(i.count),D=Mt.hasDefaultValue(i),L=j?this.pluralResolver.getSuffix(f,i.count,i):"",S=i.ordinal&&j?this.pluralResolver.getSuffix(f,i.count,{ordinal:!1}):"",O=j&&!i.ordinal&&i.count===0,P=O&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${L}`]||i[`defaultValue${S}`]||i.defaultValue;let R=b;I&&!b&&D&&(R=P);const $=lr(R),pe=Object.prototype.toString.apply(R);if(I&&R&&$&&A.indexOf(pe)<0&&!(B(k)&&Array.isArray(R))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const V=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,R,{...i,ns:c}):`key '${l} (${this.language})' returned an object instead of string.`;return s?(g.res=V,g.usedParams=this.getUsedParamsDetails(i),g):V}if(o){const V=Array.isArray(R),Z=V?[]:{},ie=V?v:y;for(const _ in R)if(Object.prototype.hasOwnProperty.call(R,_)){const ae=`${ie}${o}${_}`;D&&!b?Z[_]=this.translate(ae,{...i,defaultValue:lr(P)?P[_]:void 0,joinArrays:!1,ns:c}):Z[_]=this.translate(ae,{...i,joinArrays:!1,ns:c}),Z[_]===ae&&(Z[_]=R[_])}b=Z}}else if(I&&B(k)&&Array.isArray(b))b=b.join(k),b&&(b=this.extendTranslation(b,t,i,r));else{let V=!1,Z=!1;!this.isValidLookup(b)&&D&&(V=!0,b=P),this.isValidLookup(b)||(Z=!0,b=l);const _=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:b,ae=D&&P!==b&&this.options.updateMissing;if(Z||V||ae){if(this.logger.log(ae?"updateKey":"missingKey",f,d,l,ae?P:b),o){const X=this.resolve(l,{...i,keySeparator:!1});X&&X.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let se=[];const N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&N&&N[0])for(let X=0;X<N.length;X++)se.push(N[X]);else this.options.saveMissingTo==="all"?se=this.languageUtils.toResolveHierarchy(i.lng||this.language):se.push(i.lng||this.language);const oe=(X,J,ce)=>{var we;const me=D&&ce!==b?ce:_;this.options.missingKeyHandler?this.options.missingKeyHandler(X,d,J,me,ae,i):(we=this.backendConnector)!=null&&we.saveMissing&&this.backendConnector.saveMissing(X,d,J,me,ae,i),this.emit("missingKey",X,d,J,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&j?se.forEach(X=>{const J=this.pluralResolver.getSuffixes(X,i);O&&i[`defaultValue${this.options.pluralSeparator}zero`]&&J.indexOf(`${this.options.pluralSeparator}zero`)<0&&J.push(`${this.options.pluralSeparator}zero`),J.forEach(ce=>{oe([X],l+ce,i[`defaultValue${ce}`]||P)})}):oe(se,l,P))}b=this.extendTranslation(b,t,i,g,r),Z&&b===l&&this.options.appendNamespaceToMissingKey&&(b=`${d}${u}${l}`),(Z||V)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${u}${l}`:l,V?b:void 0,i))}return s?(g.res=b,g.usedParams=this.getUsedParamsDetails(i),g):b}extendTranslation(t,n,r,i,s){var c,d;if((c=this.i18nFormat)!=null&&c.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=B(t)&&(((d=r==null?void 0:r.interpolation)==null?void 0:d.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(u){const g=t.match(this.interpolator.nestingRegexp);f=g&&g.length}let p=r.replace&&!B(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language||i.usedLng,r),u){const g=t.match(this.interpolator.nestingRegexp),b=g&&g.length;f<b&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...g)=>(s==null?void 0:s[0])===g[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${n[0]}`),null):this.translate(...g,n),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,l=B(o)?[o]:o;return t!=null&&(l!=null&&l.length)&&r.applyPostProcessor!==!1&&(t=ir.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,i,s,o,l;return B(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const d=this.extractFromKey(c,n),u=d.key;i=u;let f=d.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&!B(n.count),g=p&&!n.ordinal&&n.count===0,b=n.context!==void 0&&(B(n.context)||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(v=>{var A,k;this.isValidLookup(r)||(l=v,!or[`${y[0]}-${v}`]&&((A=this.utils)!=null&&A.hasLoadedNamespace)&&!((k=this.utils)!=null&&k.hasLoadedNamespace(l))&&(or[`${y[0]}-${v}`]=!0,this.logger.warn(`key "${i}" for languages "${y.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(I=>{var L;if(this.isValidLookup(r))return;o=I;const j=[u];if((L=this.i18nFormat)!=null&&L.addLookupKeys)this.i18nFormat.addLookupKeys(j,u,I,v,n);else{let S;p&&(S=this.pluralResolver.getSuffix(I,n.count,n));const O=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(n.ordinal&&S.indexOf(P)===0&&j.push(u+S.replace(P,this.options.pluralSeparator)),j.push(u+S),g&&j.push(u+O)),b){const R=`${u}${this.options.contextSeparator||"_"}${n.context}`;j.push(R),p&&(n.ordinal&&S.indexOf(P)===0&&j.push(R+S.replace(P,this.options.pluralSeparator)),j.push(R+S),g&&j.push(R+O))}}let D;for(;D=j.pop();)this.isValidLookup(r)||(s=D,r=this.getResource(I,v,D,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:o,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,i={}){var s;return(s=this.i18nFormat)!=null&&s.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!B(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const s of n)delete i[s]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class cr{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=je.create("languageUtils")}getScriptPartFromCode(t){if(t=ct(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=ct(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(B(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(o=>{if(o===s)return o;if(!(o.indexOf("-")<0&&s.indexOf("-")<0)&&(o.indexOf("-")>0&&s.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===s||o.indexOf(s)===0&&s.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),B(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],s=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return B(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):B(t)&&s(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&s(this.formatLanguageCode(o))}),i}}const dr={zero:0,one:1,two:2,few:3,many:4,other:5},hr={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class po{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=je.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=ct(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let o;try{o=new Intl.PluralRules(r,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),hr;if(!t.match(/-|_/))return hr;const c=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(c,n)}return this.pluralRulesCache[s]=o,o}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,s)=>dr[i]-dr[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,r={}){const i=this.getRule(t,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const ur=(e,t,n,r=".",i=!0)=>{let s=no(e,t,n);return!s&&i&&B(n)&&(s=za(e,n,r),s===void 0&&(s=za(t,n,r))),s},Oa=e=>e.replace(/\$/g,"$$$$");class mo{constructor(t={}){var n;this.logger=je.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:o,suffix:l,suffixEscaped:c,formatSeparator:d,unescapeSuffix:u,unescapePrefix:f,nestingPrefix:p,nestingPrefixEscaped:g,nestingSuffix:b,nestingSuffixEscaped:y,nestingOptionsSeparator:v,maxReplaces:A,alwaysFormat:k}=t.interpolation;this.escape=n!==void 0?n:io,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?Qe(s):o||"{{",this.suffix=l?Qe(l):c||"}}",this.formatSeparator=d||",",this.unescapePrefix=u?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=p?Qe(p):g||Qe("$t("),this.nestingSuffix=b?Qe(b):y||Qe(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=A||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,i){var g;let s,o,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=b=>{if(b.indexOf(this.formatSeparator)<0){const k=ur(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(k,void 0,r,{...i,...n,interpolationkey:b}):k}const y=b.split(this.formatSeparator),v=y.shift().trim(),A=y.join(this.formatSeparator).trim();return this.format(ur(n,c,v,this.options.keySeparator,this.options.ignoreJSONStructure),A,r,{...i,...n,interpolationkey:v})};this.resetRegExp();const u=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((g=i==null?void 0:i.interpolation)==null?void 0:g.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>Oa(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?Oa(this.escape(b)):Oa(b)}].forEach(b=>{for(l=0;s=b.regex.exec(t);){const y=s[1].trim();if(o=d(y),o===void 0)if(typeof u=="function"){const A=u(t,s,i);o=B(A)?A:""}else if(i&&Object.prototype.hasOwnProperty.call(i,y))o="";else if(f){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),o="";else!B(o)&&!this.useRawValueToEscape&&(o=_n(o));const v=b.safeValue(o);if(t=t.replace(s[0],v),f?(b.regex.lastIndex+=o.length,b.regex.lastIndex-=s[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n,r={}){let i,s,o;const l=(c,d)=>{const u=this.nestingOptionsSeparator;if(c.indexOf(u)<0)return c;const f=c.split(new RegExp(`${u}[ ]*{`));let p=`{${f[1]}`;c=f[0],p=this.interpolate(p,o);const g=p.match(/'/g),b=p.match(/"/g);(((g==null?void 0:g.length)??0)%2===0&&!b||b.length%2!==0)&&(p=p.replace(/'/g,'"'));try{o=JSON.parse(p),d&&(o={...d,...o})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,y),`${c}${u}${p}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,c};for(;i=this.nestingRegexp.exec(t);){let c=[];o={...r},o=o.replace&&!B(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const d=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(d!==-1&&(c=i[1].slice(d).split(this.formatSeparator).map(u=>u.trim()).filter(Boolean),i[1]=i[1].slice(0,d)),s=n(l.call(this,i[1].trim(),o),o),s&&i[0]===t&&!B(s))return s;B(s)||(s=_n(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),c.length&&(s=c.reduce((u,f)=>this.format(u,f,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}}const go=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[l,...c]=o.split(":"),d=c.join(":").trim().replace(/^'+|'+$/g,""),u=l.trim();n[u]||(n[u]=d),d==="false"&&(n[u]=!1),d==="true"&&(n[u]=!0),isNaN(d)||(n[u]=parseInt(d,10))}})}return{formatName:t,formatOptions:n}},fr=e=>{const t={};return(n,r,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});const o=r+JSON.stringify(s);let l=t[o];return l||(l=e(ct(r),i),t[o]=l),l(n)}},bo=e=>(t,n,r)=>e(ct(n),r)(t);class yo{constructor(t={}){this.logger=je.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?fr:bo;this.formats={number:r((i,s)=>{const o=new Intl.NumberFormat(i,{...s});return l=>o.format(l)}),currency:r((i,s)=>{const o=new Intl.NumberFormat(i,{...s,style:"currency"});return l=>o.format(l)}),datetime:r((i,s)=>{const o=new Intl.DateTimeFormat(i,{...s});return l=>o.format(l)}),relativetime:r((i,s)=>{const o=new Intl.RelativeTimeFormat(i,{...s});return l=>o.format(l,s.range||"day")}),list:r((i,s)=>{const o=new Intl.ListFormat(i,{...s});return l=>o.format(l)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=fr(n)}format(t,n,r,i={}){const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(l=>l.indexOf(")")>-1)){const l=s.findIndex(c=>c.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,l)].join(this.formatSeparator)}return s.reduce((l,c)=>{var f;const{formatName:d,formatOptions:u}=go(c);if(this.formats[d]){let p=l;try{const g=((f=i==null?void 0:i.formatParams)==null?void 0:f[i.interpolationkey])||{},b=g.locale||g.lng||i.locale||i.lng||r;p=this.formats[d](l,b,{...u,...i,...g})}catch(g){this.logger.warn(g)}return p}else this.logger.warn(`there was no format function for ${d}`);return l},t)}}const xo=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class wo extends Ot{constructor(t,n,r,i={}){var s,o;super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=je.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(o=(s=this.backend)==null?void 0:s.init)==null||o.call(s,r,i.backend,i)}queueLoad(t,n,r,i){const s={},o={},l={},c={};return t.forEach(d=>{let u=!0;n.forEach(f=>{const p=`${d}|${f}`;!r.reload&&this.store.hasResourceBundle(d,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?o[p]===void 0&&(o[p]=!0):(this.state[p]=1,u=!1,o[p]===void 0&&(o[p]=!0),s[p]===void 0&&(s[p]=!0),c[f]===void 0&&(c[f]=!0)))}),u||(l[d]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const i=t.split("|"),s=i[0],o=i[1];n&&this.emit("failedLoading",s,o,n),!n&&r&&this.store.addResourceBundle(s,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(c=>{ao(c.loaded,[s],o),xo(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(d=>{l[d]||(l[d]={});const u=c.loaded[d];u.length&&u.forEach(f=>{l[d][f]===void 0&&(l[d][f]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r,i=0,s=this.retryTimeout,o){if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:s,callback:o});return}this.readingCalls++;const l=(d,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(d&&u&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,s*2,o)},s);return}o(d,u)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const d=c(t,n);d&&typeof d.then=="function"?d.then(u=>l(null,u)).catch(l):l(null,d)}catch(d){l(d)}return}return c(t,n,l)}prepareLoading(t,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();B(t)&&(t=this.languageUtils.toResolveHierarchy(t)),B(n)&&(n=[n]);const s=this.queueLoad(t,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,o),!o&&l&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,l),this.loaded(t,o,l)})}saveMissing(t,n,r,i,s,o={},l=()=>{}){var c,d,u,f,p;if((d=(c=this.services)==null?void 0:c.utils)!=null&&d.hasLoadedNamespace&&!((f=(u=this.services)==null?void 0:u.utils)!=null&&f.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((p=this.backend)!=null&&p.create){const g={...o,isUpdate:s},b=this.backend.create.bind(this.backend);if(b.length<6)try{let y;b.length===5?y=b(t,n,r,i,g):y=b(t,n,r,i),y&&typeof y.then=="function"?y.then(v=>l(null,v)).catch(l):l(null,y)}catch(y){l(y)}else b(t,n,r,i,l,g)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const pr=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),B(e[1])&&(t.defaultValue=e[1]),B(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),mr=e=>{var t,n;return B(e.ns)&&(e.ns=[e.ns]),B(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),B(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Ft=()=>{},Co=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class dt extends Ot{constructor(t={},n){if(super(),this.options=mr(t),this.services={},this.logger=je,this.modules={external:[]},Co(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(B(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=pr();this.options={...r,...this.options,...mr(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?je.init(i(this.modules.logger),this.options):je.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=yo;const u=new cr(this.options);this.store=new rr(this.options.resources,this.options);const f=this.services;f.logger=je,f.resourceStore=this.store,f.languageUtils=u,f.pluralResolver=new po(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),d&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(f.formatter=i(d),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new mo(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new wo(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(g,...b)=>{this.emit(g,...b)}),this.modules.languageDetector&&(f.languageDetector=i(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=i(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Mt(this.services,this.options),this.translator.on("*",(g,...b)=>{this.emit(g,...b)}),this.modules.external.forEach(g=>{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ft),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=(...u)=>this.store[d](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...u)=>(this.store[d](...u),this)});const l=ot(),c=()=>{const d=(u,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),n(u,f)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),l}loadResources(t,n=Ft){var s,o;let r=n;const i=B(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const l=[],c=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(f=>{f!=="cimode"&&l.indexOf(f)<0&&l.push(f)})};i?c(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>c(u)),(o=(s=this.options.preload)==null?void 0:s.forEach)==null||o.call(s,d=>c(d)),this.services.backendConnector.load(l,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(d)})}else r(null)}reloadResources(t,n,r){const i=ot();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Ft),this.services.backendConnector.reload(t,n,s=>{i.resolve(),r(s)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ir.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=ot();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?this.isLanguageChangingTo===t&&(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve((...d)=>this.t(...d)),n&&n(l,(...d)=>this.t(...d))},o=l=>{var u,f;!t&&!l&&this.services.languageDetector&&(l=[]);const c=B(l)?l:l&&l[0],d=this.store.hasLanguageSomeTranslations(c)?c:this.services.languageUtils.getBestMatchFromCodes(B(l)?[l]:l);d&&(this.language||i(d),this.translator.language||this.translator.changeLanguage(d),(f=(u=this.services.languageDetector)==null?void 0:u.cacheUserLanguage)==null||f.call(u,d)),this.loadResources(d,p=>{s(p,d)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),r}getFixedT(t,n,r){const i=(s,o,...l)=>{let c;typeof o!="object"?c=this.options.overloadTranslationOptionHandler([s,o].concat(l)):c={...o},c.lng=c.lng||i.lng,c.lngs=c.lngs||i.lngs,c.ns=c.ns||i.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||i.keyPrefix);const d=this.options.keySeparator||".";let u;return c.keyPrefix&&Array.isArray(s)?u=s.map(f=>`${c.keyPrefix}${d}${f}`):u=c.keyPrefix?`${c.keyPrefix}${d}${s}`:s,this.t(u,c)};return B(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(l,c)=>{const d=this.services.backendConnector.state[`${l}|${c}`];return d===-1||d===0||d===2};if(n.precheck){const l=n.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(s,t)))}loadNamespaces(t,n){const r=ot();return this.options.ns?(B(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ot();B(t)&&(t=[t]);const i=this.options.preload||[],s=t.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return s.length?(this.options.preload=i.concat(s),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){var i,s;if(t||(t=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const l=o.getTextInfo();if(l&&l.direction)return l.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((s=this.services)==null?void 0:s.languageUtils)||new cr(pr());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new dt(t,n)}cloneInstance(t={},n=Ft){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},s=new dt(i);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(l=>{s[l]=this[l]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const l=Object.keys(this.store.data).reduce((c,d)=>(c[d]={...this.store.data[d]},c[d]=Object.keys(c[d]).reduce((u,f)=>(u[f]={...c[d][f]},u),c[d]),c),{});s.store=new rr(l,i),s.services.resourceStore=s.store}return s.translator=new Mt(s.services,i),s.translator.on("*",(l,...c)=>{s.emit(l,...c)}),s.init(i,n),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const le=dt.createInstance();le.createInstance=dt.createInstance,le.createInstance,le.dir,le.init,le.loadResources,le.reloadResources,le.use,le.changeLanguage,le.getFixedT;const xe=le.t;le.exists,le.setDefaultNamespace,le.hasLoadedNamespace,le.loadNamespaces,le.loadLanguages;const ko={bottom:"270deg",left:"0deg",right:"180deg",top:"90deg",forLobby:"0deg"},Ie=({position:e="forLobby",width:t=9,height:n=14})=>a.jsxs(a.Fragment,{children:[a.jsx("svg",{width:String(t),height:String(n),style:{rotate:ko[e]},viewBox:"0 0 9 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M8.08915 0.577485C8.24538 0.733758 8.33314 0.945681 8.33314 1.16665C8.33314 1.38762 8.24538 1.59954 8.08915 1.75582L2.84498 6.99998L8.08915 12.2442C8.24095 12.4013 8.32495 12.6118 8.32305 12.8303C8.32115 13.0488 8.23351 13.2578 8.079 13.4123C7.92449 13.5668 7.71548 13.6545 7.49699 13.6564C7.27849 13.6583 7.06799 13.5743 6.91082 13.4225L1.07748 7.58915C0.921259 7.43288 0.833496 7.22095 0.833496 6.99998C0.833496 6.77901 0.921259 6.56709 1.07748 6.41082L6.91082 0.577485C7.06709 0.421259 7.27902 0.333496 7.49999 0.333496C7.72096 0.333496 7.93288 0.421259 8.08915 0.577485Z",fill:"white",fillOpacity:"0.8"})}),e==="forLobby"&&a.jsx("span",{className:"text",children:xe("Lobby")})]}),gr="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.45402%200.399902C9.87463%200.399915%2010.2805%200.554948%2010.594%200.835361C10.9075%201.11577%2011.1066%201.50189%2011.1534%201.9199H12.1171C12.4507%201.92011%2012.7721%202.04571%2013.0175%202.2718C13.2628%202.49788%2013.4143%202.80794%2013.4417%203.14046L13.4463%203.2499V5.5299C13.4463%206.16081%2013.205%206.76781%2012.7717%207.2264C12.3384%207.68498%2011.746%207.96038%2011.1161%207.9961L10.9565%208.00066C10.7032%208.79031%2010.2308%209.49174%209.59422%2010.0232C8.95765%2010.5547%208.18316%2010.8944%207.36098%2011.0027V12.1799H8.69326C9.32403%2012.1801%209.93085%2012.4215%2010.3893%2012.8548C10.8477%2013.2881%2011.123%2013.8803%2011.1587%2014.5101L11.1633%2014.6499V15.0299C11.1632%2015.1678%2011.1132%2015.3009%2011.0226%2015.4048C10.9319%2015.5086%2010.8066%2015.576%2010.67%2015.5946L10.5933%2015.5999H2.99174C2.85387%2015.6001%202.72061%2015.5503%202.61664%2015.4597C2.51267%2015.3692%202.44505%2015.244%202.4263%2015.1074L2.42174%2015.0299V14.6499C2.42169%2014.0191%202.66296%2013.4122%203.09609%2012.9537C3.52922%2012.4951%204.12138%2012.2196%204.75114%2012.1837L4.89174%2012.1799H6.22174V11.0027C5.39983%2010.8941%204.62567%2010.5543%203.98939%2010.0229C3.3531%209.49138%202.88088%208.7901%202.6277%208.00066L2.60794%207.9999C1.95285%207.9999%201.3246%207.73967%200.861386%207.27646C0.398171%206.81324%200.137939%206.18499%200.137939%205.5299V3.2499C0.137939%202.51574%200.733779%201.9199%201.46794%201.9199H2.43162C2.47837%201.50176%202.67763%201.11554%202.9913%200.835108C3.30496%200.554677%203.711%200.399728%204.13174%200.399902H9.45402ZM12.1171%203.0599H11.164V6.84698C11.4613%206.80474%2011.7355%206.66316%2011.9421%206.44527C12.1486%206.22739%2012.2754%205.94602%2012.3017%205.64694L12.3071%205.5299V3.2499C12.307%203.2071%2012.2925%203.16557%2012.2658%203.13205C12.2392%203.09853%2012.2021%203.07498%2012.1604%203.06522L12.1171%203.0599ZM2.42174%203.0599H1.46794C1.41755%203.0599%201.36922%203.07992%201.33359%203.11555C1.29796%203.15118%201.27794%203.19951%201.27794%203.2499V5.5299C1.2779%205.85041%201.3936%206.16016%201.60375%206.40215C1.81391%206.64415%202.10439%206.80211%202.42174%206.84698V3.0599Z'%20fill='url(%23paint0_linear_851_822)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_851_822'%20x1='-0.221746'%20y1='-2.13343'%20x2='19.2003'%20y2='7.59061'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23B97304'/%3e%3cstop%20offset='0.368995'%20stop-color='%23FFC15D'/%3e%3cstop%20offset='0.5'%20stop-color='%23FFD38B'/%3e%3cstop%20offset='0.611316'%20stop-color='%23FFC15D'/%3e%3cstop%20offset='1'%20stop-color='%23B97304'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",vo=()=>a.jsx("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M7.00085 21H25.0008C25.2557 21.0003 25.5009 21.0979 25.6862 21.2728C25.8715 21.4478 25.9831 21.687 25.998 21.9414C26.013 22.1958 25.9302 22.4464 25.7666 22.6418C25.603 22.8373 25.3709 22.9629 25.1178 22.993L25.0008 23H7.00085C6.74597 22.9997 6.50081 22.9021 6.31548 22.7272C6.13014 22.5522 6.01861 22.313 6.00367 22.0586C5.98874 21.8042 6.07152 21.5536 6.23511 21.3582C6.3987 21.1627 6.63075 21.0371 6.88385 21.007L7.00085 21ZM7.00085 15L25.0008 14.998C25.2557 14.9983 25.5009 15.0959 25.6862 15.2708C25.8715 15.4458 25.9831 15.685 25.998 15.9394C26.013 16.1938 25.9302 16.4444 25.7666 16.6398C25.603 16.8353 25.3709 16.9609 25.1178 16.991L25.0008 16.998L7.00085 17C6.74597 16.9997 6.50081 16.9021 6.31548 16.7272C6.13014 16.5522 6.01861 16.313 6.00367 16.0586C5.98874 15.8042 6.07152 15.5536 6.23511 15.3582C6.3987 15.1627 6.63075 15.0371 6.88385 15.007L7.00085 15ZM7.00085 9H25.0008C25.2557 9.00028 25.5009 9.09788 25.6862 9.27285C25.8715 9.44782 25.9831 9.68695 25.998 9.94139C26.013 10.1958 25.9302 10.4464 25.7666 10.6418C25.603 10.8373 25.3709 10.9629 25.1178 10.993L25.0008 11H7.00085C6.74597 10.9997 6.50081 10.9021 6.31548 10.7272C6.13014 10.5522 6.01861 10.313 6.00367 10.0586C5.98874 9.80416 6.07152 9.55362 6.23511 9.35817C6.3987 9.16271 6.63075 9.0371 6.88385 9.007L7.00085 9Z",fill:"white",fillOpacity:"0.6"})}),Ao=m.div`
|
|
223
223
|
border-radius: 0px;
|
|
224
224
|
background-color: #111111cc;
|
|
225
225
|
position: absolute;
|
|
@@ -258,7 +258,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Nt]+=1);const Is=m.div`
|
|
|
258
258
|
`,So=m.div`
|
|
259
259
|
max-width: 100%;
|
|
260
260
|
height: calc(100% - 55px);
|
|
261
|
-
`,Rt=({isMobile:e=!0})=>a.jsx("svg",{width:e?"24":"12",height:e?"24":"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer"},children:a.jsx("path",{d:"M6.00001 6.87814L1.77251 11.1058C1.65709 11.2211 1.51202 11.2801 1.3373 11.2829C1.16272 11.2856 1.01501 11.2265 0.894176 11.1058C0.773482 10.985 0.713135 10.8386 0.713135 10.6667C0.713135 10.4947 0.773482 10.3483 0.894176 10.2275L5.12189 6.00001L0.894176 1.77251C0.778899 1.65709 0.719871 1.51202 0.717093 1.3373C0.714454 1.16272 0.773482 1.01501 0.894176 0.894176C1.01501 0.773482 1.1614 0.713135 1.33334 0.713135C1.50529 0.713135 1.65168 0.773482 1.77251 0.894176L6.00001 5.12188L10.2275 0.894176C10.3429 0.778899 10.488 0.719871 10.6627 0.717093C10.8373 0.714454 10.985 0.773482 11.1058 0.894176C11.2265 1.01501 11.2869 1.1614 11.2869 1.33334C11.2869 1.50529 11.2265 1.65168 11.1058 1.77251L6.87814 6.00001L11.1058 10.2275C11.2211 10.3429 11.2801 10.488 11.2829 10.6627C11.2856 10.8373 11.2265 10.985 11.1058 11.1058C10.985 11.2265 10.8386 11.2869 10.6667 11.2869C10.4947 11.2869 10.3483 11.2265 10.2275 11.1058L6.00001 6.87814Z",fill:"white",fillOpacity:"0.6"})}),jo=({header:e,close:t,width:n,height:r,children:i,isLandscape:s,headerClick:o,dealerName:l})=>a.jsxs(Ao,{$height:r,$width:n,$isLandscape:s,children:[a.jsxs("div",{className:"header",children:[a.jsxs("div",{className:"icon",onClick:o,children:[o&&a.jsx(Ie,{height:7,width:12,position:"left"}),a.jsxs("p",{children:[xe(e)," ",a.jsx("span",{children:!!l&&`${xe("Dealer")} ${l}`})]})]}),a.jsx("div",{onClick:t,children:a.jsx(Rt,{})})]}),a.jsx(So,{children:i})]}),Io=e=>{switch(e){case 57:return"Speed BlackJack P";case 11:return"Speed BlackJack";case 29:return"BlackJack 1";case 30:return"BlackJack 2";case 56:return"BlackJack P";case 16:return"BlackJack";default:return""}};var
|
|
261
|
+
`,Rt=({isMobile:e=!0})=>a.jsx("svg",{width:e?"24":"12",height:e?"24":"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer"},children:a.jsx("path",{d:"M6.00001 6.87814L1.77251 11.1058C1.65709 11.2211 1.51202 11.2801 1.3373 11.2829C1.16272 11.2856 1.01501 11.2265 0.894176 11.1058C0.773482 10.985 0.713135 10.8386 0.713135 10.6667C0.713135 10.4947 0.773482 10.3483 0.894176 10.2275L5.12189 6.00001L0.894176 1.77251C0.778899 1.65709 0.719871 1.51202 0.717093 1.3373C0.714454 1.16272 0.773482 1.01501 0.894176 0.894176C1.01501 0.773482 1.1614 0.713135 1.33334 0.713135C1.50529 0.713135 1.65168 0.773482 1.77251 0.894176L6.00001 5.12188L10.2275 0.894176C10.3429 0.778899 10.488 0.719871 10.6627 0.717093C10.8373 0.714454 10.985 0.773482 11.1058 0.894176C11.2265 1.01501 11.2869 1.1614 11.2869 1.33334C11.2869 1.50529 11.2265 1.65168 11.1058 1.77251L6.87814 6.00001L11.1058 10.2275C11.2211 10.3429 11.2801 10.488 11.2829 10.6627C11.2856 10.8373 11.2265 10.985 11.1058 11.1058C10.985 11.2265 10.8386 11.2869 10.6667 11.2869C10.4947 11.2869 10.3483 11.2265 10.2275 11.1058L6.00001 6.87814Z",fill:"white",fillOpacity:"0.6"})}),jo=({header:e,close:t,width:n,height:r,children:i,isLandscape:s,headerClick:o,dealerName:l})=>a.jsxs(Ao,{$height:r,$width:n,$isLandscape:s,children:[a.jsxs("div",{className:"header",children:[a.jsxs("div",{className:"icon",onClick:o,children:[o&&a.jsx(Ie,{height:7,width:12,position:"left"}),a.jsxs("p",{children:[xe(e)," ",a.jsx("span",{children:!!l&&`${xe("Dealer")} ${l}`})]})]}),a.jsx("div",{onClick:t,children:a.jsx(Rt,{})})]}),a.jsx(So,{children:i})]}),Io=e=>{switch(e){case 57:return"Speed BlackJack P";case 11:return"Speed BlackJack";case 29:return"BlackJack 1";case 30:return"BlackJack 2";case 56:return"BlackJack P";case 16:return"BlackJack";default:return""}};var Y=(e=>(e[e.Ante=0]="Ante",e[e.Insurance=3]="Insurance",e[e.Tip=9]="Tip",e[e.Hit=10]="Hit",e[e.Double=11]="Double",e[e.Split=12]="Split",e[e.Stand=13]="Stand",e[e.Surrender=14]="Surrender",e[e.TwentyOnePlusThree=15]="TwentyOnePlusThree",e[e.PerfectPairs=16]="PerfectPairs",e[e.DraftAnte=17]="DraftAnte",e[e.DraftTwentyOnePlusThree=18]="DraftTwentyOnePlusThree",e[e.DraftPerfectPairs=19]="DraftPerfectPairs",e[e.Occupy=20]="Occupy",e[e.Leave=21]="Leave",e[e.DraftBetBehind=22]="DraftBetBehind",e[e.BetBehind=23]="BetBehind",e[e.Undo=24]="Undo",e[e.Repeat=25]="Repeat",e[e.Deal=26]="Deal",e[e.DoubleBets=27]="DoubleBets",e[e.StandAll=49]="StandAll",e))(Y||{}),We=(e=>(e[e.WaitingForInit=0]="WaitingForInit",e[e.WaitingRoundStart=1]="WaitingRoundStart",e[e.WaitingForBet=2]="WaitingForBet",e[e.WaitingCard=3]="WaitingCard",e[e.WaitingForUserAction=4]="WaitingForUserAction",e[e.WaitingOpenDealerCards=5]="WaitingOpenDealerCards",e[e.WaitingDealerCards=6]="WaitingDealerCards",e[e.WaitingForWins=7]="WaitingForWins",e[e.WaitingRoundEnd=8]="WaitingRoundEnd",e[e.WaitingInsurance=9]="WaitingInsurance",e[e.CalculateWins=10]="CalculateWins",e[e.WaitingRebuyCards=11]="WaitingRebuyCards",e[e.RoundEnd=12]="RoundEnd",e[e.CancelRound=13]="CancelRound",e[e.WaitingOpenBoxCards=14]="WaitingOpenBoxCards",e[e.CrashRound=16]="CrashRound",e))(We||{});const Lo={0:"Ante",3:"Insurance",9:"Tip",10:"Hit",11:"Double",12:"Split",13:"Stand",14:"Surrender",15:"TwentyOnePlusThree",16:"PerfectPairs",17:"DraftAnte",18:"DraftTwentyOnePlusThree",19:"DraftPerfectPairs",20:"Occupy",21:"Leave",22:"DraftBetBehind",23:"BetBehind",24:"Undo",25:"Repeat",26:"Deal",27:"DoubleBets",49:"StandAll"},ht=e=>e.toString().padStart(2,"0"),Bo=e=>{const t=new Date(e);return`${ht(t.getDate())}.${ht(t.getMonth()+1)}.${t.getFullYear()} ${ht(t.getHours())}:${ht(t.getMinutes())}:${ht(t.getSeconds())}`},To=["0px, -5px","30px, 10px","65px, 20px","100px, 25px","135px, 20px","165px, 10px","195px, -5px"],Do=m.div`
|
|
262
262
|
display: flex;
|
|
263
263
|
max-width: 100%;
|
|
264
264
|
min-width: 100%;
|
|
@@ -732,7 +732,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Nt]+=1);const Is=m.div`
|
|
|
732
732
|
line-height: 16px;
|
|
733
733
|
color: ${({color:e})=>e};
|
|
734
734
|
}
|
|
735
|
-
`,Et=({color:e,value:t,suit:n})=>a.jsxs(s1,{color:e,children:[a.jsx("p",{className:"p",children:t}),a.jsx("svg",{width:"12",height:"12",viewBox:"0 0 21 26",children:a.jsx("g",{clipPath:"url(#clip0_647_1135)",children:a.jsx("path",{d:n,fill:e})})})]}),o1=({roundData:e,handleClickRound:t,indexHistory:n,isMobile:r=!0})=>{const{t:i}=E(),s=[
|
|
735
|
+
`,Et=({color:e,value:t,suit:n})=>a.jsxs(s1,{color:e,children:[a.jsx("p",{className:"p",children:t}),a.jsx("svg",{width:"12",height:"12",viewBox:"0 0 21 26",children:a.jsx("g",{clipPath:"url(#clip0_647_1135)",children:a.jsx("path",{d:n,fill:e})})})]}),o1=({roundData:e,handleClickRound:t,indexHistory:n,isMobile:r=!0})=>{const{t:i}=E(),s=[Y.Ante,Y.Insurance,Y.PerfectPairs,Y.TwentyOnePlusThree],o=r?32:48,l=r?26:38;return a.jsxs(Po,{children:[a.jsxs(zo,{children:[a.jsxs("div",{className:"item",children:[a.jsx("p",{className:"title",children:i("Dealer")}),a.jsx("p",{className:"text",children:e.dealer.nickname})]}),a.jsxs("div",{className:"item",children:[a.jsx("p",{className:"title",children:i("Round")}),a.jsx("p",{className:"text",children:e.currentRoundId})]}),a.jsxs("div",{className:"item",children:[a.jsx("p",{className:"title",children:i("Bet Amount")}),a.jsxs("p",{className:"text",children:[e.player.gameCurrencyId,e.player.boxes.reduce((c,d)=>c+d.totalBet,0)]})]}),a.jsxs("div",{className:"item",children:[a.jsx("p",{className:"title",children:i("Win Amount")}),a.jsxs("p",{className:"text",children:[e.player.gameCurrencyId,e.player.winAmount]})]})]}),a.jsx(br,{}),a.jsxs(Oo,{children:[a.jsxs("div",{className:"dealerCards",children:[a.jsx("p",{className:"title",children:i("Dealer Cards")}),a.jsxs("div",{className:"cards",children:[e.player.dealerBox.hand.cards.map((c,d)=>a.jsx("div",{className:"card-style",children:a.jsx(Vt,{index:c.scannerIndex,cardHeight:o,cardWidth:l})},d)),a.jsx("span",{className:"final-value",children:e.player.dealerBox.hand.finalValue})]})]}),a.jsxs("div",{className:"dealerCards",children:[a.jsx("p",{className:"title",children:i("Your Seats")}),a.jsx("div",{className:"playerSeats",children:e.player.boxes.map((c,d)=>a.jsx(Fo,{$isActive:!!c.playerNick,$index:d,children:d+1},d))})]})]}),a.jsx(br,{}),a.jsx(Ro,{children:a.jsxs("table",{className:"table",children:[a.jsx("thead",{children:a.jsxs("tr",{className:"boxes",children:[a.jsx("th",{className:"title",children:i("Seat")}),a.jsx("th",{className:"title",children:i("Bet Type")}),a.jsx("th",{className:"title",children:i("Cards & Score")}),a.jsx("th",{className:"title",children:i("Amount")}),a.jsx("th",{className:"title",children:i("Win/Lose")})]})}),a.jsx("tbody",{children:e.player.boxes.map((c,d)=>{if(c.playerId)return a.jsxs("tr",{className:"boxes",children:[a.jsx("td",{children:a.jsx("p",{className:"text",children:d+1})}),a.jsx("td",{children:c.bets.map(u=>{if(s.includes(u.betType))return a.jsx("p",{className:"text",children:i(Lo[u.betType])},u.betType)})}),a.jsxs("td",{className:"cards",children:[c.splittedHands.length===0&&a.jsxs("div",{className:"hand",children:[a.jsx("span",{className:"final-value",children:c.hand.finalValue}),c.hand.cards.map(({scannerIndex:u},f)=>{const p=ut[u-1].value,g=Wt(u),b=Gt(u);return a.jsx(Et,{color:b,value:p,suit:g},f)})]}),c.splittedHands.map(({cards:u,finalValue:f},p)=>a.jsxs("div",{className:"hand",children:[a.jsx("span",{className:"final-value",children:f}),u.map(({scannerIndex:g},b)=>{const y=ut[g-1].value,v=Wt(g),A=Gt(g);return a.jsx(a.Fragment,{children:a.jsx(Et,{color:A,value:y,suit:v},b)})}),a.jsx(Ma,{})]}))]}),a.jsx("td",{children:c.bets.map(u=>{if(s.includes(u.betType))return a.jsxs("p",{className:"text amount-text",children:[u.amount,e.player.gameCurrencyId]},u.betType)})}),a.jsx("td",{children:c.bets.map(u=>{if(s.includes(u.betType))return a.jsx(yr,{$isWin:!!u.winAmount,children:u.winAmount?a.jsxs(a.Fragment,{children:[u.winAmount,e.player.gameCurrencyId]}):a.jsx(a.Fragment,{children:i("Lost")})},u.betType)})})]},d)})})]})}),a.jsx(Mo,{}),a.jsx(i1,{handleClickRound:t,indexHistory:n})]})},l1=({historyData:e,getHistory:t,setOpenRoundHistory:n,openRoundHistory:r,isMobile:i=!0})=>{const[s,o]=C.useState(1),[l,c]=C.useState(null),[d,u]=C.useState(null);C.useEffect(()=>{t(s)},[s]);const f=p=>{c(e.rounds[p]),u(p),n(1)};return C.useEffect(()=>{(d===null||d<0)&&n(0)},[d]),C.useEffect(()=>{r===2&&(n(0),c(null),u(null))},[r]),a.jsx(xr,{children:l?a.jsx(o1,{roundData:l,handleClickRound:f,indexHistory:d,isMobile:i}):a.jsx(Vo,{active:s,count:Math.ceil((e==null?void 0:e.totalCount)/10),setActive:o,handleClickRound:f,historyData:e})})},c1=m.div`
|
|
736
736
|
max-width: 100%;
|
|
737
737
|
max-height: 100%;
|
|
738
738
|
display: flex;
|
|
@@ -1777,7 +1777,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Nt]+=1);const Is=m.div`
|
|
|
1777
1777
|
position: absolute;
|
|
1778
1778
|
right: 4px;
|
|
1779
1779
|
bottom: 20px;
|
|
1780
|
-
`,sl=({name:e,round:t,partnerId:n,socket:r,urlParam:i,messages:s,historyData:o,onSendMessage:l,tournamentData:c,isTournamentActive:d,chipAmounts:u,messagesSupport:f,onSendMessageSupport:p,isLandscape:g,streamVolume:b,balance:y,currencyId:v,effectsVolume:A,setEffectsVolume:k,setStreamVolume:I,getHistory:j,limits:D,sendTip:L,handleStreamQualityChange:S,streamQuality:O,nickNameChange:P,nickName:R,dealerName:$,errorCode:pe})=>{const[V,
|
|
1780
|
+
`,sl=({name:e,round:t,partnerId:n,socket:r,urlParam:i,messages:s,historyData:o,onSendMessage:l,tournamentData:c,isTournamentActive:d,chipAmounts:u,messagesSupport:f,onSendMessageSupport:p,isLandscape:g,streamVolume:b,balance:y,currencyId:v,effectsVolume:A,setEffectsVolume:k,setStreamVolume:I,getHistory:j,limits:D,sendTip:L,handleStreamQualityChange:S,streamQuality:O,nickNameChange:P,nickName:R,dealerName:$,errorCode:pe})=>{const[V,Z]=C.useState(0),[ie,_]=C.useState(null),[ae,se]=C.useState(!1),{t:N}=E(),[oe,X]=C.useState(0),J=()=>_(null),ce=Qs(ie,g,V===1),me=M=>{if(M===z.VolumeOn){I(b===0?100:0);return}else M!==z.closeMenu&&_(M);se(!1)},we=V===1?{headerClick:()=>Z(2)}:{},Ce=M=>[{name:"Settings",buttonType:z.Settings,icon:$n()},{buttonType:z.VolumeOn,icon:M===0?Lr():Pa()},{buttonType:z.closeMenu,icon:Rt({isMobile:!0})}];return a.jsxs(a.Fragment,{children:[a.jsx(il,{onClick:()=>se(!0),children:a.jsx(vo,{})}),ie&&ce&&a.jsx(jo,{isLandscape:g,close:J,...ce,...we,dealerName:ie===z.Tip?$:"",children:a.jsx(Fa,{tournamentData:c,getHistory:j,streamVolume:b,effectsVolume:A,setEffectsVolume:k,setStreamVolume:I,activeAction:ie,messages:s,currencyId:v,onSendMessage:l,chipAmounts:u,balance:y,messagesSupport:f,onSendMessageSupport:p,historyData:o,isMobile:!0,isLandscape:g,openRoundHistory:V,setOpenRoundHistory:Z,limits:D,sendTip:M=>{_(null),se(!1),L(M)},handleStreamQualityChange:S,streamQuality:O,nickNameChange:P,nickName:R,errorCode:pe})}),ae&&a.jsxs(el,{onTouchStart:M=>Js(M,X),onTouchMove:M=>$s(M,oe,se),onTouchEnd:M=>_s(M,X),$isLandscape:g,children:[a.jsxs(tl,{children:[a.jsxs(al,{children:[a.jsx("div",{className:"name-contener",children:a.jsx("p",{className:"name","data-testid":"game-name",children:N(e)})}),a.jsxs("div",{className:"round-contener",children:[a.jsxs("p",{className:"round-text",children:[N("round"),":"]}),a.jsx("p",{className:"round","data-testid":"game-round",children:t})]})]}),a.jsx("div",{className:"button-wrapper",children:Ce(b).map(M=>a.jsx("button",{className:"button",onClick:()=>me(M.buttonType),children:M.icon},M.buttonType))})]}),a.jsxs(nl,{children:[a.jsxs(Br,{$isLandscape:g,onClick:()=>Na(n,r,i),children:[a.jsx(Ie,{position:"left"}),a.jsx("p",{className:"text",children:N("Back To Lobby")})]}),a.jsxs(rl,{$isLandscape:g,children:[a.jsx("div",{className:"menu-line",children:Xs.map(M=>{if(!(n===Ha.Galabet&&M.name==="Send Tip"))return a.jsxs(Tr,{$isLandscape:g,onClick:()=>me(M.buttonType),children:[M.icon,a.jsx("p",{className:"p",children:N(M.name)})]},M.buttonType)})}),a.jsx("div",{className:"menu-line",children:qs.map(M=>a.jsxs(Tr,{$isLandscape:g,onClick:()=>me(M.buttonType),children:[M.icon,a.jsx("p",{className:"p",children:N(M.name)})]},M.buttonType))})]}),d&&a.jsxs(Br,{$isLandscape:g,$tournament:!0,onClick:()=>me(z.Tournament),children:[a.jsx("img",{src:gr,alt:"Gold"}),a.jsx("p",{className:"text",children:N("Tournament")})]})]})]})]})},ol=m.div`
|
|
1781
1781
|
border-radius: 8px;
|
|
1782
1782
|
background-color: #111111cc;
|
|
1783
1783
|
margin-top: 10px;
|
|
@@ -1968,7 +1968,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Nt]+=1);const Is=m.div`
|
|
|
1968
1968
|
align-items: center;
|
|
1969
1969
|
justify-content: end;
|
|
1970
1970
|
align-items: end;
|
|
1971
|
-
`,yl=()=>a.jsx(a.Fragment,{children:a.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M6.26402 1.704C6.26402 1.46212 6.16794 1.23015 5.9969 1.05912C5.82587 0.888085 5.5939 0.792 5.35202 0.792C5.11015 0.792 4.87817 0.888085 4.70714 1.05912C4.53611 1.23015 4.44002 1.46212 4.44002 1.704V3.984C4.44002 4.10494 4.39198 4.22092 4.30646 4.30644C4.22095 4.39196 4.10496 4.44 3.98402 4.44H1.70402C1.46215 4.44 1.23017 4.53609 1.05914 4.70712C0.888108 4.87815 0.792023 5.11012 0.792023 5.352C0.792023 5.59388 0.888108 5.82585 1.05914 5.99688C1.23017 6.16791 1.46215 6.264 1.70402 6.264H3.98402C4.58872 6.264 5.16864 6.02379 5.59623 5.5962C6.02381 5.16862 6.26402 4.58869 6.26402 3.984V1.704ZM6.26402 16.296C6.26402 16.5379 6.16794 16.7698 5.9969 16.9409C5.82587 17.1119 5.5939 17.208 5.35202 17.208C5.11015 17.208 4.87817 17.1119 4.70714 16.9409C4.53611 16.7698 4.44002 16.5379 4.44002 16.296V14.016C4.44002 13.8951 4.39198 13.7791 4.30646 13.6936C4.22095 13.608 4.10496 13.56 3.98402 13.56H1.70402C1.46215 13.56 1.23017 13.4639 1.05914 13.2929C0.888108 13.1218 0.792023 12.8899 0.792023 12.648C0.792023 12.4061 0.888108 12.1742 1.05914 12.0031C1.23017 11.8321 1.46215 11.736 1.70402 11.736H3.98402C4.58872 11.736 5.16864 11.9762 5.59623 12.4038C6.02381 12.8314 6.26402 13.4113 6.26402 14.016V16.296ZM12.648 0.792C12.4061 0.792 12.1742 0.888085 12.0031 1.05912C11.8321 1.23015 11.736 1.46212 11.736 1.704V3.984C11.736 4.58869 11.9762 5.16862 12.4038 5.5962C12.8314 6.02379 13.4113 6.264 14.016 6.264H16.296C16.5379 6.264 16.7699 6.16791 16.9409 5.99688C17.1119 5.82585 17.208 5.59388 17.208 5.352C17.208 5.11012 17.1119 4.87815 16.9409 4.70712C16.7699 4.53609 16.5379 4.44 16.296 4.44H14.016C13.8951 4.44 13.7791 4.39196 13.6936 4.30644C13.6081 4.22092 13.56 4.10494 13.56 3.984V1.704C13.56 1.46212 13.4639 1.23015 13.2929 1.05912C13.1219 0.888085 12.8899 0.792 12.648 0.792ZM11.736 16.296C11.736 16.5379 11.8321 16.7698 12.0031 16.9409C12.1742 17.1119 12.4061 17.208 12.648 17.208C12.8899 17.208 13.1219 17.1119 13.2929 16.9409C13.4639 16.7698 13.56 16.5379 13.56 16.296V14.016C13.56 13.8951 13.6081 13.7791 13.6936 13.6936C13.7791 13.608 13.8951 13.56 14.016 13.56H16.296C16.5379 13.56 16.7699 13.4639 16.9409 13.2929C17.1119 13.1218 17.208 12.8899 17.208 12.648C17.208 12.4061 17.1119 12.1742 16.9409 12.0031C16.7699 11.8321 16.5379 11.736 16.296 11.736H14.016C13.4113 11.736 12.8314 11.9762 12.4038 12.4038C11.9762 12.8314 11.736 13.4113 11.736 14.016V16.296Z",fill:"white"})})}),xl=({messages:e,onSendMessage:t,isTournamentActive:n,chipAmounts:r,messagesSupport:i,onSendMessageSupport:s,historyData:o,balance:l,isFullscreen:c,toggleFullscreen:d,streamVolume:u,effectsVolume:f,setEffectsVolume:p,setStreamVolume:g,tournamentData:b,isTournamentDetailsVisible:y,getHistory:v,sendTip:A,currencyId:k,handleStreamQualityChange:I,streamQuality:j,nickNameChange:D,nickName:L,dealerName:S,errorCode:O,playerId:P,partnerId:R})=>{const[$,pe]=C.useState(null),[V,
|
|
1971
|
+
`,yl=()=>a.jsx(a.Fragment,{children:a.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M6.26402 1.704C6.26402 1.46212 6.16794 1.23015 5.9969 1.05912C5.82587 0.888085 5.5939 0.792 5.35202 0.792C5.11015 0.792 4.87817 0.888085 4.70714 1.05912C4.53611 1.23015 4.44002 1.46212 4.44002 1.704V3.984C4.44002 4.10494 4.39198 4.22092 4.30646 4.30644C4.22095 4.39196 4.10496 4.44 3.98402 4.44H1.70402C1.46215 4.44 1.23017 4.53609 1.05914 4.70712C0.888108 4.87815 0.792023 5.11012 0.792023 5.352C0.792023 5.59388 0.888108 5.82585 1.05914 5.99688C1.23017 6.16791 1.46215 6.264 1.70402 6.264H3.98402C4.58872 6.264 5.16864 6.02379 5.59623 5.5962C6.02381 5.16862 6.26402 4.58869 6.26402 3.984V1.704ZM6.26402 16.296C6.26402 16.5379 6.16794 16.7698 5.9969 16.9409C5.82587 17.1119 5.5939 17.208 5.35202 17.208C5.11015 17.208 4.87817 17.1119 4.70714 16.9409C4.53611 16.7698 4.44002 16.5379 4.44002 16.296V14.016C4.44002 13.8951 4.39198 13.7791 4.30646 13.6936C4.22095 13.608 4.10496 13.56 3.98402 13.56H1.70402C1.46215 13.56 1.23017 13.4639 1.05914 13.2929C0.888108 13.1218 0.792023 12.8899 0.792023 12.648C0.792023 12.4061 0.888108 12.1742 1.05914 12.0031C1.23017 11.8321 1.46215 11.736 1.70402 11.736H3.98402C4.58872 11.736 5.16864 11.9762 5.59623 12.4038C6.02381 12.8314 6.26402 13.4113 6.26402 14.016V16.296ZM12.648 0.792C12.4061 0.792 12.1742 0.888085 12.0031 1.05912C11.8321 1.23015 11.736 1.46212 11.736 1.704V3.984C11.736 4.58869 11.9762 5.16862 12.4038 5.5962C12.8314 6.02379 13.4113 6.264 14.016 6.264H16.296C16.5379 6.264 16.7699 6.16791 16.9409 5.99688C17.1119 5.82585 17.208 5.59388 17.208 5.352C17.208 5.11012 17.1119 4.87815 16.9409 4.70712C16.7699 4.53609 16.5379 4.44 16.296 4.44H14.016C13.8951 4.44 13.7791 4.39196 13.6936 4.30644C13.6081 4.22092 13.56 4.10494 13.56 3.984V1.704C13.56 1.46212 13.4639 1.23015 13.2929 1.05912C13.1219 0.888085 12.8899 0.792 12.648 0.792ZM11.736 16.296C11.736 16.5379 11.8321 16.7698 12.0031 16.9409C12.1742 17.1119 12.4061 17.208 12.648 17.208C12.8899 17.208 13.1219 17.1119 13.2929 16.9409C13.4639 16.7698 13.56 16.5379 13.56 16.296V14.016C13.56 13.8951 13.6081 13.7791 13.6936 13.6936C13.7791 13.608 13.8951 13.56 14.016 13.56H16.296C16.5379 13.56 16.7699 13.4639 16.9409 13.2929C17.1119 13.1218 17.208 12.8899 17.208 12.648C17.208 12.4061 17.1119 12.1742 16.9409 12.0031C16.7699 11.8321 16.5379 11.736 16.296 11.736H14.016C13.4113 11.736 12.8314 11.9762 12.4038 12.4038C11.9762 12.8314 11.736 13.4113 11.736 14.016V16.296Z",fill:"white"})})}),xl=({messages:e,onSendMessage:t,isTournamentActive:n,chipAmounts:r,messagesSupport:i,onSendMessageSupport:s,historyData:o,balance:l,isFullscreen:c,toggleFullscreen:d,streamVolume:u,effectsVolume:f,setEffectsVolume:p,setStreamVolume:g,tournamentData:b,isTournamentDetailsVisible:y,getHistory:v,sendTip:A,currencyId:k,handleStreamQualityChange:I,streamQuality:j,nickNameChange:D,nickName:L,dealerName:S,errorCode:O,playerId:P,partnerId:R})=>{const[$,pe]=C.useState(null),[V,Z]=C.useState(0),ie=Zs($,V===1),_=(N,oe)=>{if(N.buttonType===z.FullScreen&&d(),N.buttonType===z.VolumeOn){g(u===0?100:0);return}else pe(oe?null:N.buttonType)},ae=N=>N.buttonType===z.FullScreen&&c?yl():N.buttonType===z.VolumeOn?u===0?Lr():Pa():N.icon;C.useEffect(()=>{y&&pe(z.Tournament)},[y]);const se=V===1?{headerClick:()=>Z(2)}:{};return a.jsxs(bl,{children:[a.jsx(gl,{children:Ys.map((N,oe)=>{const X=$===N.buttonType;if(N.buttonType===z.Tournament&&!n)return null;if(!(R===Ha.Galabet&&N.buttonType===z.Tip))return a.jsx(it,{icon:ae(N),isValueButton:N.buttonType===z.VolumeOn,isActive:X,onClick:()=>_(N,X),buttonInfo:N==null?void 0:N.name,setStreamVolume:g,streamVolume:u},oe)})}),$&&a.jsx(a.Fragment,{children:ie?a.jsx(Ra,{close:()=>pe(null),...ie,...se,dealerName:$===z.Tip?S:"",children:a.jsx(Fa,{getHistory:v,historyData:o,setOpenRoundHistory:Z,activeAction:$,openRoundHistory:V,messages:e,currencyId:k,onSendMessage:t,chipAmounts:r,balance:l,messagesSupport:i,onSendMessageSupport:s,streamVolume:u,effectsVolume:f,setEffectsVolume:p,setStreamVolume:g,tournamentData:b,sendTip:N=>{pe(null),A(N)},handleStreamQualityChange:I,streamQuality:j,nickNameChange:D,nickName:L,errorCode:O,playerId:P})}):a.jsx(Fa,{getHistory:v,setOpenRoundHistory:Z,activeAction:$,openRoundHistory:V,historyData:o,messages:e,onSendMessage:t,chipAmounts:r,messagesSupport:i,currencyId:k,balance:l,onSendMessageSupport:s,streamVolume:u,effectsVolume:f,setEffectsVolume:p,setStreamVolume:g,tournamentData:b,handleStreamQualityChange:I,streamQuality:j,nickNameChange:D,nickName:L,errorCode:O,playerId:P})})]})},wl=m.div`
|
|
1972
1972
|
width: 320px;
|
|
1973
1973
|
height: 300px;
|
|
1974
1974
|
background: rgba(17, 17, 17);
|
|
@@ -2596,7 +2596,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Nt]+=1);const Is=m.div`
|
|
|
2596
2596
|
background: ${({type:e="error"})=>r2[e]};
|
|
2597
2597
|
position: absolute;
|
|
2598
2598
|
top: -25px;
|
|
2599
|
-
`,l2=({code:e,type:t="error"})=>{const{t:n}=E(),r=Vs[e]||n("Unknown error");return a.jsxs(i2,{type:t,children:[a.jsx(o2,{type:t}),a.jsx(s2,{children:n(r)})]})},Or=({size:e=17})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M0.949219 1.15565C0.949219 0.988752 1.01552 0.828692 1.13353 0.710679C1.25154 0.592666 1.4116 0.526367 1.5785 0.526367H15.426C15.5429 0.526367 15.6574 0.55891 15.7568 0.62035C15.8563 0.681789 15.9366 0.769698 15.9889 0.874225C16.0411 0.978752 16.0632 1.09577 16.0528 1.21216C16.0423 1.32855 15.9996 1.43972 15.9294 1.53322L12.4357 6.19073L15.9294 10.8491C15.9996 10.9426 16.0423 11.0537 16.0528 11.1701C16.0632 11.2865 16.0411 11.4035 15.9889 11.5081C15.9366 11.6126 15.8563 11.7005 15.7568 11.7619C15.6574 11.8234 15.5429 11.8559 15.426 11.8559H2.20778V15.8405C2.20777 15.9926 2.1527 16.1395 2.05275 16.2541C1.9528 16.3687 1.81473 16.4433 1.66408 16.4639L1.5785 16.4706C1.42643 16.4706 1.27951 16.4156 1.16491 16.3156C1.05031 16.2157 0.975773 16.0776 0.955092 15.9269L0.949219 15.8405V1.15565Z",fill:"white"})}),Mr=({size:e})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M12.3933 3.79838L12.5 3.79199C12.7234 3.79202 12.939 3.87403 13.1059 4.02247C13.2728 4.1709 13.3795 4.37544 13.4056 4.59729L13.412 4.70399V11.088H19.796C20.0194 11.088 20.235 11.17 20.4019 11.3185C20.5688 11.4669 20.6755 11.6714 20.7016 11.8933L20.708 12C20.708 12.2234 20.626 12.439 20.4775 12.6059C20.3291 12.7728 20.1245 12.8795 19.9027 12.9056L19.796 12.912H13.412V19.296C13.412 19.5194 13.33 19.735 13.1815 19.9019C13.0331 20.0688 12.8285 20.1755 12.6067 20.2016L12.5 20.208C12.2766 20.208 12.061 20.126 11.8941 19.9775C11.7272 19.8291 11.6205 19.6245 11.5944 19.4027L11.588 19.296V12.912H5.20399C4.98061 12.912 4.76501 12.83 4.59808 12.6815C4.43116 12.5331 4.32451 12.3285 4.29838 12.1067L4.29199 12C4.29202 11.7766 4.37403 11.561 4.52247 11.3941C4.6709 11.2272 4.87544 11.1205 5.09729 11.0944L5.20399 11.088H11.588V4.70399C11.588 4.48061 11.67 4.26501 11.8185 4.09808C11.9669 3.93116 12.1714 3.82451 12.3933 3.79838Z",fill:"white"})}),Fr=({size:e=20})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 15 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M4.7641 2.93193C4.7641 2.69006 4.66802 2.45808 4.49698 2.28705C4.32595 2.11602 4.09398 2.01993 3.8521 2.01993C3.61022 2.01993 3.37825 2.11602 3.20722 2.28705C3.03619 2.45808 2.9401 2.69006 2.9401 2.93193V9.08611C2.9401 9.20705 2.89206 9.32303 2.80654 9.40855C2.72103 9.49407 2.60504 9.54211 2.4841 9.54211C2.36316 9.54211 2.24718 9.49407 2.16166 9.40855C2.07614 9.32303 2.0281 9.20705 2.0281 9.08611V4.52611C2.0281 4.28423 1.93202 4.05226 1.76098 3.88123C1.58995 3.71019 1.35798 3.61411 1.1161 3.61411C0.874224 3.61411 0.642254 3.71019 0.47122 3.88123C0.300187 4.05226 0.204102 4.28423 0.204102 4.52611V12.5116C0.204102 14.4997 1.26932 16.6247 1.94967 17.7911C2.45674 18.6612 3.39063 19.1218 4.34185 19.1218H6.31906C6.86957 19.1217 7.4092 18.9684 7.87746 18.6789C8.34573 18.3895 8.72413 17.9753 8.97025 17.4829L9.09154 17.2394C9.47458 16.4715 9.95338 15.7547 10.5161 15.1062L12.5334 12.7788L14.5325 11.2238C14.6147 11.1598 14.6811 11.0779 14.7268 10.9844C14.7724 10.8908 14.7962 10.7881 14.7961 10.6839C14.7961 10.2416 14.559 9.91329 14.2562 9.71721C13.9862 9.54393 13.6634 9.46915 13.3789 9.43449C12.7988 9.36609 12.0929 9.43632 11.4737 9.5567C11.0399 9.64509 10.6224 9.80014 10.2361 10.0163V2.93193C10.2361 2.69006 10.14 2.45808 9.96898 2.28705C9.79795 2.11602 9.56598 2.01993 9.3241 2.01993C9.08222 2.01993 8.85025 2.11602 8.67922 2.28705C8.50819 2.45808 8.4121 2.69006 8.4121 2.93193V8.63193C8.4121 8.75287 8.36406 8.86886 8.27854 8.95437C8.19303 9.03989 8.07704 9.08793 7.9561 9.08793C7.83516 9.08793 7.71918 9.03989 7.63366 8.95437C7.54814 8.86886 7.5001 8.75287 7.5001 8.63193V1.7892C7.5001 1.54732 7.40402 1.31535 7.23298 1.14432C7.06195 0.973283 6.82998 0.877197 6.5881 0.877197C6.34622 0.877197 6.11425 0.973283 5.94322 1.14432C5.77219 1.31535 5.6761 1.54732 5.6761 1.7892V8.63193C5.6761 8.75287 5.62806 8.86886 5.54254 8.95437C5.45703 9.03989 5.34104 9.08793 5.2201 9.08793C5.09916 9.08793 4.98318 9.03989 4.89766 8.95437C4.81214 8.86886 4.7641 8.75287 4.7641 8.63193V2.93193Z",fill:"white"})}),c2={[
|
|
2599
|
+
`,l2=({code:e,type:t="error"})=>{const{t:n}=E(),r=Vs[e]||n("Unknown error");return a.jsxs(i2,{type:t,children:[a.jsx(o2,{type:t}),a.jsx(s2,{children:n(r)})]})},Or=({size:e=17})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M0.949219 1.15565C0.949219 0.988752 1.01552 0.828692 1.13353 0.710679C1.25154 0.592666 1.4116 0.526367 1.5785 0.526367H15.426C15.5429 0.526367 15.6574 0.55891 15.7568 0.62035C15.8563 0.681789 15.9366 0.769698 15.9889 0.874225C16.0411 0.978752 16.0632 1.09577 16.0528 1.21216C16.0423 1.32855 15.9996 1.43972 15.9294 1.53322L12.4357 6.19073L15.9294 10.8491C15.9996 10.9426 16.0423 11.0537 16.0528 11.1701C16.0632 11.2865 16.0411 11.4035 15.9889 11.5081C15.9366 11.6126 15.8563 11.7005 15.7568 11.7619C15.6574 11.8234 15.5429 11.8559 15.426 11.8559H2.20778V15.8405C2.20777 15.9926 2.1527 16.1395 2.05275 16.2541C1.9528 16.3687 1.81473 16.4433 1.66408 16.4639L1.5785 16.4706C1.42643 16.4706 1.27951 16.4156 1.16491 16.3156C1.05031 16.2157 0.975773 16.0776 0.955092 15.9269L0.949219 15.8405V1.15565Z",fill:"white"})}),Mr=({size:e})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M12.3933 3.79838L12.5 3.79199C12.7234 3.79202 12.939 3.87403 13.1059 4.02247C13.2728 4.1709 13.3795 4.37544 13.4056 4.59729L13.412 4.70399V11.088H19.796C20.0194 11.088 20.235 11.17 20.4019 11.3185C20.5688 11.4669 20.6755 11.6714 20.7016 11.8933L20.708 12C20.708 12.2234 20.626 12.439 20.4775 12.6059C20.3291 12.7728 20.1245 12.8795 19.9027 12.9056L19.796 12.912H13.412V19.296C13.412 19.5194 13.33 19.735 13.1815 19.9019C13.0331 20.0688 12.8285 20.1755 12.6067 20.2016L12.5 20.208C12.2766 20.208 12.061 20.126 11.8941 19.9775C11.7272 19.8291 11.6205 19.6245 11.5944 19.4027L11.588 19.296V12.912H5.20399C4.98061 12.912 4.76501 12.83 4.59808 12.6815C4.43116 12.5331 4.32451 12.3285 4.29838 12.1067L4.29199 12C4.29202 11.7766 4.37403 11.561 4.52247 11.3941C4.6709 11.2272 4.87544 11.1205 5.09729 11.0944L5.20399 11.088H11.588V4.70399C11.588 4.48061 11.67 4.26501 11.8185 4.09808C11.9669 3.93116 12.1714 3.82451 12.3933 3.79838Z",fill:"white"})}),Fr=({size:e=20})=>a.jsx("svg",{width:e,height:e,viewBox:"0 0 15 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M4.7641 2.93193C4.7641 2.69006 4.66802 2.45808 4.49698 2.28705C4.32595 2.11602 4.09398 2.01993 3.8521 2.01993C3.61022 2.01993 3.37825 2.11602 3.20722 2.28705C3.03619 2.45808 2.9401 2.69006 2.9401 2.93193V9.08611C2.9401 9.20705 2.89206 9.32303 2.80654 9.40855C2.72103 9.49407 2.60504 9.54211 2.4841 9.54211C2.36316 9.54211 2.24718 9.49407 2.16166 9.40855C2.07614 9.32303 2.0281 9.20705 2.0281 9.08611V4.52611C2.0281 4.28423 1.93202 4.05226 1.76098 3.88123C1.58995 3.71019 1.35798 3.61411 1.1161 3.61411C0.874224 3.61411 0.642254 3.71019 0.47122 3.88123C0.300187 4.05226 0.204102 4.28423 0.204102 4.52611V12.5116C0.204102 14.4997 1.26932 16.6247 1.94967 17.7911C2.45674 18.6612 3.39063 19.1218 4.34185 19.1218H6.31906C6.86957 19.1217 7.4092 18.9684 7.87746 18.6789C8.34573 18.3895 8.72413 17.9753 8.97025 17.4829L9.09154 17.2394C9.47458 16.4715 9.95338 15.7547 10.5161 15.1062L12.5334 12.7788L14.5325 11.2238C14.6147 11.1598 14.6811 11.0779 14.7268 10.9844C14.7724 10.8908 14.7962 10.7881 14.7961 10.6839C14.7961 10.2416 14.559 9.91329 14.2562 9.71721C13.9862 9.54393 13.6634 9.46915 13.3789 9.43449C12.7988 9.36609 12.0929 9.43632 11.4737 9.5567C11.0399 9.64509 10.6224 9.80014 10.2361 10.0163V2.93193C10.2361 2.69006 10.14 2.45808 9.96898 2.28705C9.79795 2.11602 9.56598 2.01993 9.3241 2.01993C9.08222 2.01993 8.85025 2.11602 8.67922 2.28705C8.50819 2.45808 8.4121 2.69006 8.4121 2.93193V8.63193C8.4121 8.75287 8.36406 8.86886 8.27854 8.95437C8.19303 9.03989 8.07704 9.08793 7.9561 9.08793C7.83516 9.08793 7.71918 9.03989 7.63366 8.95437C7.54814 8.86886 7.5001 8.75287 7.5001 8.63193V1.7892C7.5001 1.54732 7.40402 1.31535 7.23298 1.14432C7.06195 0.973283 6.82998 0.877197 6.5881 0.877197C6.34622 0.877197 6.11425 0.973283 5.94322 1.14432C5.77219 1.31535 5.6761 1.54732 5.6761 1.7892V8.63193C5.6761 8.75287 5.62806 8.86886 5.54254 8.95437C5.45703 9.03989 5.34104 9.08793 5.2201 9.08793C5.09916 9.08793 4.98318 9.03989 4.89766 8.95437C4.81214 8.86886 4.7641 8.75287 4.7641 8.63193V2.93193Z",fill:"white"})}),c2={[Y.Double]:"#eb6200",[Y.Hit]:"#33A54C",[Y.Stand]:"#E34747",[Y.Split]:"#C344FA",[Y.Surrender]:"#11111199"};var ea=(e=>(e[e.Small=0]="Small",e[e.Big=1]="Big",e))(ea||{});const d2={[Y.Double]:{buttonSize:60,iconSize:32,radius:12},[Y.Hit]:{buttonSize:80,iconSize:40,radius:12},[Y.Stand]:{buttonSize:80,iconSize:40,radius:12},[Y.Split]:{buttonSize:60,iconSize:32,radius:12}},Rr=(e,t)=>({0:{buttonSize:18,iconSize:12,radius:4},1:d2[t]||{buttonSize:44,iconSize:24,radius:12}})[e],h2=[{betType:Y.Double,name:"Double",icon:$t},{betType:Y.Hit,name:"Hit",icon:Mr},{betType:Y.Stand,name:"Stand",icon:Fr},{betType:Y.Split,name:"Split",icon:Ma}],u2=[[{betType:Y.Double,name:"Double",icon:$t},{betType:Y.Hit,name:"Hit",icon:Mr},{betType:Y.Stand,name:"Stand",icon:Fr},{betType:Y.Split,name:"Split",icon:Ma},{betType:Y.Surrender,name:"Surrender",icon:Or}],h2],f2=m.button`
|
|
2600
2600
|
width: ${({$size:e})=>e.buttonSize}px;
|
|
2601
2601
|
height: ${({$size:e})=>e.buttonSize}px;
|
|
2602
2602
|
border-radius: ${({$size:e})=>e.radius}px;
|
|
@@ -2656,21 +2656,22 @@ See https://s-c.sh/2BAXzed for more info.`),window[Nt]+=1);const Is=m.div`
|
|
|
2656
2656
|
}
|
|
2657
2657
|
|
|
2658
2658
|
&.animated-active {
|
|
2659
|
-
animation: buttonActive 1s ease
|
|
2659
|
+
animation: buttonActive 1s ease forwards;
|
|
2660
2660
|
}
|
|
2661
2661
|
|
|
2662
2662
|
&.animated-unactive {
|
|
2663
|
-
animation: buttonActive 0.3s ease
|
|
2663
|
+
animation: buttonActive 0.3s ease forwards;
|
|
2664
2664
|
}
|
|
2665
2665
|
|
|
2666
2666
|
@keyframes buttonActive {
|
|
2667
|
-
|
|
2667
|
+
from {
|
|
2668
2668
|
opacity: 1;
|
|
2669
2669
|
}
|
|
2670
|
-
|
|
2670
|
+
to {
|
|
2671
2671
|
opacity: 0;
|
|
2672
2672
|
}
|
|
2673
2673
|
}
|
|
2674
|
+
|
|
2674
2675
|
}
|
|
2675
2676
|
.last-boton {
|
|
2676
2677
|
display: flex;
|
|
@@ -2703,6 +2704,25 @@ See https://s-c.sh/2BAXzed for more info.`),window[Nt]+=1);const Is=m.div`
|
|
|
2703
2704
|
color: #ffffff;
|
|
2704
2705
|
}
|
|
2705
2706
|
|
|
2707
|
+
|
|
2708
|
+
&.animated-active {
|
|
2709
|
+
animation: buttonActive 1s ease forwards;
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2712
|
+
&.animated-unactive {
|
|
2713
|
+
animation: buttonActive 0.2s ease forwards;
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
@keyframes buttonActive {
|
|
2717
|
+
from {
|
|
2718
|
+
opacity: 1;
|
|
2719
|
+
}
|
|
2720
|
+
to {
|
|
2721
|
+
opacity: 0;
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2724
|
+
|
|
2725
|
+
|
|
2706
2726
|
.icon {
|
|
2707
2727
|
transform: scale(1);
|
|
2708
2728
|
transition-duration: 200ms;
|
|
@@ -2714,7 +2734,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Nt]+=1);const Is=m.div`
|
|
|
2714
2734
|
transform: scale(1.3);
|
|
2715
2735
|
}
|
|
2716
2736
|
}
|
|
2717
|
-
`,g2=({time:e,actionsHandler:t,size:n,isMobile:r})=>{const[i,s]=C.useState(null),o=n===ea.Big,{t:l}=E();return a.jsxs(p2,{$isBig:o,$isMobile:r,children:[o&&!r&&a.jsx(_t,{time:e,timerType:We.WaitingForUserAction}),a.jsx("div",{className:"aciton",children:u2[n].map((c,d)=>{const{isDisabled:u,onHandle:f}=t[c.betType];return a.jsxs("div",{className:`button ${!!i&&(i===c.betType?"animated-active":"animated-unactive")}`,children:[a.jsx(Wr,{buttonType:c.betType,icon:c.icon,onClick:()=>{f(),s(c.betType)},isDisabled:u,size:n}),o&&a.jsx("p",{className:"name",children:l(c.name)})]},d)})}),a.jsx("div",{className:"last-boton",children:o&&a.jsxs(m2,{onClick:t[
|
|
2737
|
+
`,g2=({time:e,actionsHandler:t,size:n,isMobile:r})=>{const[i,s]=C.useState(null),o=n===ea.Big,{t:l}=E();return a.jsxs(p2,{$isBig:o,$isMobile:r,children:[o&&!r&&a.jsx(_t,{time:e,timerType:We.WaitingForUserAction}),a.jsx("div",{className:"aciton",children:u2[n].map((c,d)=>{const{isDisabled:u,onHandle:f}=t[c.betType];return a.jsxs("div",{className:`button ${!!i&&(i===c.betType?"animated-active":"animated-unactive")}`,children:[a.jsx(Wr,{buttonType:c.betType,icon:c.icon,onClick:()=>{f(),s(c.betType)},isDisabled:u,size:n}),o&&a.jsx("p",{className:"name",children:l(c.name)})]},d)})}),a.jsx("div",{className:"last-boton",children:o&&a.jsxs(m2,{className:`${!!i&&(i===Y.Surrender?"animated-active":"animated-unactive")}`,onClick:()=>{t[Y.Surrender].onHandle(),s(Y.Surrender)},$surrender:!0,$isDisabled:t[Y.Surrender].isDisabled,disabled:t[Y.Surrender].isDisabled,children:[a.jsx("div",{className:"icon",children:a.jsx(Or,{size:n===ea.Big?20:12})}),a.jsx("p",{className:"name",children:l("Surrender")})]})})]})},b2=m.div`
|
|
2718
2738
|
width: 135px;
|
|
2719
2739
|
height: 69px;
|
|
2720
2740
|
position: absolute;
|