@adstore/templates 2.1.5 → 2.1.6
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/templates.es.js +104 -89
- package/dist/templates.umd.js +2 -2
- package/package.json +1 -1
package/dist/templates.es.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { options as p, Component as se, createElement as Ye, Fragment as Qe, toChildArray as qe, createContext as mn, render as yn, cloneElement as $n } from "preact";
|
2
|
-
var
|
2
|
+
var be = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, He = {}, Nn = {
|
3
3
|
get exports() {
|
4
4
|
return He;
|
5
5
|
},
|
@@ -43,17 +43,17 @@ var ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
43
43
|
})();
|
44
44
|
})(Nn);
|
45
45
|
const j = He;
|
46
|
-
var Y, b, Pe, et, ie = 0, qt = [],
|
47
|
-
function
|
46
|
+
var Y, b, Pe, et, ie = 0, qt = [], ye = [], tt = p.__b, nt = p.__r, ot = p.diffed, rt = p.__c, at = p.unmount;
|
47
|
+
function de(e, t) {
|
48
48
|
p.__h && p.__h(b, e, ie || t), ie = 0;
|
49
49
|
var n = b.__H || (b.__H = { __: [], __h: [] });
|
50
|
-
return e >= n.__.length && n.__.push({ __V:
|
50
|
+
return e >= n.__.length && n.__.push({ __V: ye }), n.__[e];
|
51
51
|
}
|
52
|
-
function
|
52
|
+
function ue(e) {
|
53
53
|
return ie = 1, kn(Mt, e);
|
54
54
|
}
|
55
55
|
function kn(e, t, n) {
|
56
|
-
var o =
|
56
|
+
var o = de(Y++, 2);
|
57
57
|
if (o.t = e, !o.__c && (o.__ = [n ? n(t) : Mt(void 0, t), function(l) {
|
58
58
|
var i = o.__N ? o.__N[0] : o.__[0], _ = o.t(i, l);
|
59
59
|
i !== _ && (o.__N = [_, o.__[1]], o.__c.setState({}));
|
@@ -89,11 +89,11 @@ function kn(e, t, n) {
|
|
89
89
|
return o.__N || o.__;
|
90
90
|
}
|
91
91
|
function J(e, t) {
|
92
|
-
var n =
|
92
|
+
var n = de(Y++, 3);
|
93
93
|
!p.__s && Me(n.__H, t) && (n.__ = e, n.i = t, b.__H.__h.push(n));
|
94
94
|
}
|
95
95
|
function Ht(e, t) {
|
96
|
-
var n =
|
96
|
+
var n = de(Y++, 4);
|
97
97
|
!p.__s && Me(n.__H, t) && (n.__ = e, n.i = t, b.__h.push(n));
|
98
98
|
}
|
99
99
|
function E(e) {
|
@@ -111,18 +111,18 @@ function Et(e, t, n) {
|
|
111
111
|
}, n == null ? n : n.concat(e));
|
112
112
|
}
|
113
113
|
function Bt(e, t) {
|
114
|
-
var n =
|
114
|
+
var n = de(Y++, 7);
|
115
115
|
return Me(n.__H, t) ? (n.__V = e(), n.i = t, n.__h = e, n.__V) : n.__;
|
116
116
|
}
|
117
117
|
function wn(e) {
|
118
|
-
var t = b.context[e.__c], n =
|
118
|
+
var t = b.context[e.__c], n = de(Y++, 9);
|
119
119
|
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(b)), t.props.value) : e.__;
|
120
120
|
}
|
121
121
|
function xn() {
|
122
122
|
for (var e; e = qt.shift(); )
|
123
123
|
if (e.__P && e.__H)
|
124
124
|
try {
|
125
|
-
e.__H.__h.forEach(
|
125
|
+
e.__H.__h.forEach($e), e.__H.__h.forEach(Ee), e.__H.__h = [];
|
126
126
|
} catch (t) {
|
127
127
|
e.__H.__h = [], p.__e(t, e.__v);
|
128
128
|
}
|
@@ -133,18 +133,18 @@ p.__b = function(e) {
|
|
133
133
|
nt && nt(e), Y = 0;
|
134
134
|
var t = (b = e.__c).__H;
|
135
135
|
t && (Pe === b ? (t.__h = [], b.__h = [], t.__.forEach(function(n) {
|
136
|
-
n.__N && (n.__ = n.__N), n.__V =
|
137
|
-
})) : (t.__h.forEach(
|
136
|
+
n.__N && (n.__ = n.__N), n.__V = ye, n.__N = n.i = void 0;
|
137
|
+
})) : (t.__h.forEach($e), t.__h.forEach(Ee), t.__h = [])), Pe = b;
|
138
138
|
}, p.diffed = function(e) {
|
139
139
|
ot && ot(e);
|
140
140
|
var t = e.__c;
|
141
141
|
t && t.__H && (t.__H.__h.length && (qt.push(t) !== 1 && et === p.requestAnimationFrame || ((et = p.requestAnimationFrame) || On)(xn)), t.__H.__.forEach(function(n) {
|
142
|
-
n.i && (n.__H = n.i), n.__V !==
|
142
|
+
n.i && (n.__H = n.i), n.__V !== ye && (n.__ = n.__V), n.i = void 0, n.__V = ye;
|
143
143
|
})), Pe = b = null;
|
144
144
|
}, p.__c = function(e, t) {
|
145
145
|
t.some(function(n) {
|
146
146
|
try {
|
147
|
-
n.__h.forEach(
|
147
|
+
n.__h.forEach($e), n.__h = n.__h.filter(function(o) {
|
148
148
|
return !o.__ || Ee(o);
|
149
149
|
});
|
150
150
|
} catch (o) {
|
@@ -158,7 +158,7 @@ p.__b = function(e) {
|
|
158
158
|
var t, n = e.__c;
|
159
159
|
n && n.__H && (n.__H.__.forEach(function(o) {
|
160
160
|
try {
|
161
|
-
|
161
|
+
$e(o);
|
162
162
|
} catch (r) {
|
163
163
|
t = r;
|
164
164
|
}
|
@@ -171,7 +171,7 @@ function On(e) {
|
|
171
171
|
}, o = setTimeout(n, 100);
|
172
172
|
st && (t = requestAnimationFrame(n));
|
173
173
|
}
|
174
|
-
function
|
174
|
+
function $e(e) {
|
175
175
|
var t = b, n = e.__c;
|
176
176
|
typeof n == "function" && (e.__c = void 0, n()), b = t;
|
177
177
|
}
|
@@ -212,7 +212,7 @@ p.__b = function(e) {
|
|
212
212
|
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), lt && lt(e);
|
213
213
|
};
|
214
214
|
var Tn = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
215
|
-
function
|
215
|
+
function fe(e) {
|
216
216
|
function t(n) {
|
217
217
|
var o = Vt({}, n);
|
218
218
|
return delete o.ref, e(o, n.ref || null);
|
@@ -248,7 +248,7 @@ function Dt(e) {
|
|
248
248
|
var t = e.__.__c;
|
249
249
|
return t && t.__a && t.__a(e);
|
250
250
|
}
|
251
|
-
function
|
251
|
+
function me() {
|
252
252
|
this.u = null, this.o = null;
|
253
253
|
}
|
254
254
|
p.unmount = function(e) {
|
@@ -296,7 +296,7 @@ var dt = function(e, t, n) {
|
|
296
296
|
e.u = n = n[2];
|
297
297
|
}
|
298
298
|
};
|
299
|
-
(
|
299
|
+
(me.prototype = new se()).__a = function(e) {
|
300
300
|
var t = this, n = Dt(t.__v), o = t.o.get(e);
|
301
301
|
return o[0]++, function(r) {
|
302
302
|
var s = function() {
|
@@ -304,14 +304,14 @@ var dt = function(e, t, n) {
|
|
304
304
|
};
|
305
305
|
n ? n(s) : s();
|
306
306
|
};
|
307
|
-
},
|
307
|
+
}, me.prototype.render = function(e) {
|
308
308
|
this.u = null, this.o = /* @__PURE__ */ new Map();
|
309
309
|
var t = qe(e.children);
|
310
310
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
311
311
|
for (var n = t.length; n--; )
|
312
312
|
this.o.set(t[n], this.u = [1, 0, this.u]);
|
313
313
|
return e.children;
|
314
|
-
},
|
314
|
+
}, me.prototype.componentDidUpdate = me.prototype.componentDidMount = function() {
|
315
315
|
var e = this;
|
316
316
|
this.o.forEach(function(t, n) {
|
317
317
|
dt(e, n, t);
|
@@ -435,7 +435,7 @@ var vo = ho;
|
|
435
435
|
function go(e) {
|
436
436
|
return this.__data__.has(e);
|
437
437
|
}
|
438
|
-
var bo = go, mo = typeof
|
438
|
+
var bo = go, mo = typeof be == "object" && be && be.Object === Object && be, Ut = mo, yo = Ut, $o = typeof self == "object" && self && self.Object === Object && self, No = yo || $o || Function("return this")(), ee = No, ko = ee, wo = ko.Symbol, zt = wo, vt = zt, Wt = Object.prototype, xo = Wt.hasOwnProperty, Oo = Wt.toString, ae = vt ? vt.toStringTag : void 0;
|
439
439
|
function To(e) {
|
440
440
|
var t = xo.call(e, ae), n = e[ae];
|
441
441
|
try {
|
@@ -646,12 +646,12 @@ function Ma(e) {
|
|
646
646
|
return t;
|
647
647
|
};
|
648
648
|
}
|
649
|
-
var Va = Ma, Fa = Va, Ga = Fa(), Da = Ga,
|
649
|
+
var Va = Ma, Fa = Va, Ga = Fa(), Da = Ga, Ne = {}, Ua = {
|
650
650
|
get exports() {
|
651
|
-
return
|
651
|
+
return Ne;
|
652
652
|
},
|
653
653
|
set exports(e) {
|
654
|
-
|
654
|
+
Ne = e;
|
655
655
|
}
|
656
656
|
};
|
657
657
|
(function(e, t) {
|
@@ -663,7 +663,7 @@ var Va = Ma, Fa = Va, Ga = Fa(), Da = Ga, $e = {}, Ua = {
|
|
663
663
|
return _.copy(u), u;
|
664
664
|
}
|
665
665
|
e.exports = i;
|
666
|
-
})(Ua,
|
666
|
+
})(Ua, Ne);
|
667
667
|
var za = ee, Wa = za.Uint8Array, Ka = Wa, kt = Ka;
|
668
668
|
function Xa(e) {
|
669
669
|
var t = new e.constructor(e.byteLength);
|
@@ -712,11 +712,11 @@ var hs = ps;
|
|
712
712
|
function vs(e) {
|
713
713
|
return e != null && typeof e == "object";
|
714
714
|
}
|
715
|
-
var
|
715
|
+
var pe = vs, gs = Ae, bs = pe, ms = "[object Arguments]";
|
716
716
|
function ys(e) {
|
717
717
|
return bs(e) && gs(e) == ms;
|
718
718
|
}
|
719
|
-
var $s = ys, xt = $s, Ns =
|
719
|
+
var $s = ys, xt = $s, Ns = pe, Qt = Object.prototype, ks = Qt.hasOwnProperty, ws = Qt.propertyIsEnumerable, xs = xt(function() {
|
720
720
|
return arguments;
|
721
721
|
}()) ? xt : function(e) {
|
722
722
|
return Ns(e) && ks.call(e, "callee") && !ws.call(e, "callee");
|
@@ -728,7 +728,7 @@ var nn = Cs, As = Ve, js = nn;
|
|
728
728
|
function Ss(e) {
|
729
729
|
return e != null && js(e.length) && !As(e);
|
730
730
|
}
|
731
|
-
var De = Ss, Is = De, Ps =
|
731
|
+
var De = Ss, Is = De, Ps = pe;
|
732
732
|
function Ls(e) {
|
733
733
|
return Ps(e) && Is(e);
|
734
734
|
}
|
@@ -748,7 +748,7 @@ var Es = Hs;
|
|
748
748
|
var n = ee, o = Es, r = t && !t.nodeType && t, s = r && !0 && e && !e.nodeType && e, c = s && s.exports === r, l = c ? n.Buffer : void 0, i = l ? l.isBuffer : void 0, _ = i || o;
|
749
749
|
e.exports = _;
|
750
750
|
})(qs, ce);
|
751
|
-
var Bs = Ae, Ms = Zt, Vs =
|
751
|
+
var Bs = Ae, Ms = Zt, Vs = pe, Fs = "[object Object]", Gs = Function.prototype, Ds = Object.prototype, on = Gs.toString, Us = Ds.hasOwnProperty, zs = on.call(Object);
|
752
752
|
function Ws(e) {
|
753
753
|
if (!Vs(e) || Bs(e) != Fs)
|
754
754
|
return !1;
|
@@ -758,7 +758,7 @@ function Ws(e) {
|
|
758
758
|
var n = Us.call(t, "constructor") && t.constructor;
|
759
759
|
return typeof n == "function" && n instanceof n && on.call(n) == zs;
|
760
760
|
}
|
761
|
-
var Ks = Ws, Xs = Ae, Js = nn, Zs =
|
761
|
+
var Ks = Ws, Xs = Ae, Js = nn, Zs = pe, Ys = "[object Arguments]", Qs = "[object Array]", ei = "[object Boolean]", ti = "[object Date]", ni = "[object Error]", oi = "[object Function]", ri = "[object Map]", ai = "[object Number]", si = "[object Object]", ii = "[object RegExp]", ci = "[object Set]", li = "[object String]", _i = "[object WeakMap]", di = "[object ArrayBuffer]", ui = "[object DataView]", fi = "[object Float32Array]", pi = "[object Float64Array]", hi = "[object Int8Array]", vi = "[object Int16Array]", gi = "[object Int32Array]", bi = "[object Uint8Array]", mi = "[object Uint8ClampedArray]", yi = "[object Uint16Array]", $i = "[object Uint32Array]", v = {};
|
762
762
|
v[fi] = v[pi] = v[hi] = v[vi] = v[gi] = v[bi] = v[mi] = v[yi] = v[$i] = !0;
|
763
763
|
v[Ys] = v[Qs] = v[di] = v[ei] = v[ui] = v[ti] = v[ni] = v[oi] = v[ri] = v[ai] = v[si] = v[ii] = v[ci] = v[li] = v[_i] = !1;
|
764
764
|
function Ni(e) {
|
@@ -770,12 +770,12 @@ function wi(e) {
|
|
770
770
|
return e(t);
|
771
771
|
};
|
772
772
|
}
|
773
|
-
var xi = wi,
|
773
|
+
var xi = wi, ke = {}, Oi = {
|
774
774
|
get exports() {
|
775
|
-
return
|
775
|
+
return ke;
|
776
776
|
},
|
777
777
|
set exports(e) {
|
778
|
-
|
778
|
+
ke = e;
|
779
779
|
}
|
780
780
|
};
|
781
781
|
(function(e, t) {
|
@@ -787,8 +787,8 @@ var xi = wi, Ne = {}, Oi = {
|
|
787
787
|
}
|
788
788
|
}();
|
789
789
|
e.exports = l;
|
790
|
-
})(Oi,
|
791
|
-
var Ti = ki, Ci = xi, Ot =
|
790
|
+
})(Oi, ke);
|
791
|
+
var Ti = ki, Ci = xi, Ot = ke, Tt = Ot && Ot.isTypedArray, Ai = Tt ? Ci(Tt) : Ti, rn = Ai;
|
792
792
|
function ji(e, t) {
|
793
793
|
if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
|
794
794
|
return e[t];
|
@@ -855,7 +855,7 @@ var cn = pc, hc = Mi, vc = cn;
|
|
855
855
|
function gc(e) {
|
856
856
|
return hc(e, vc(e));
|
857
857
|
}
|
858
|
-
var bc = gc, Ct = Jt, mc =
|
858
|
+
var bc = gc, Ct = Jt, mc = Ne, yc = Qa, $c = ts, Nc = hs, At = en, jt = tn, kc = Rs, wc = ce, xc = Ve, Oc = z, Tc = Ks, Cc = rn, St = an, Ac = bc;
|
859
859
|
function jc(e, t, n, o, r, s, c) {
|
860
860
|
var l = St(e, n), i = St(t, n), _ = c.get(i);
|
861
861
|
if (_) {
|
@@ -961,12 +961,12 @@ var $l = yl, Nl = Bc, kl = $l;
|
|
961
961
|
kl(function(e, t, n) {
|
962
962
|
Nl(e, t, n);
|
963
963
|
});
|
964
|
-
const
|
964
|
+
const le = (e, t, n) => Array.isArray(e) ? e.map((o, r) => {
|
965
965
|
const s = [n, r].filter(L).join(".");
|
966
|
-
return
|
966
|
+
return le(t(r, o, s), t, s);
|
967
967
|
}) : typeof e == "object" && e ? Object.entries(e).reduce((o, [r, s]) => {
|
968
968
|
const c = [n, r].filter(L).join(".");
|
969
|
-
return o[r] =
|
969
|
+
return o[r] = le(t(r, s, c), t, c), o;
|
970
970
|
}, {}) : e, wl = (e) => {
|
971
971
|
const t = document.getElementsByTagName("head")[0], n = document.createElement("link");
|
972
972
|
Object.entries(e).forEach(([o, r]) => n.setAttribute(o, r)), t.appendChild(n);
|
@@ -982,7 +982,7 @@ const ke = (e, t, n) => Array.isArray(e) ? e.map((o, r) => {
|
|
982
982
|
reset: () => e = {}
|
983
983
|
};
|
984
984
|
}, un = (e) => !e && e == null, L = (e) => !un(e), Z = (e, ...t) => t.reduce((n, o) => (n[o] = e[o], n), {});
|
985
|
-
function
|
985
|
+
function he(e, ...t) {
|
986
986
|
const n = {
|
987
987
|
...e
|
988
988
|
};
|
@@ -1007,7 +1007,21 @@ const xl = (e, t, n) => {
|
|
1007
1007
|
g: parseInt(n[2], 16),
|
1008
1008
|
b: parseInt(n[3], 16)
|
1009
1009
|
} : void 0;
|
1010
|
-
}, Tl = (...e) => e.map((t) => JSON.stringify(t)).every((t, n, o) => t === o[0]), ff = (e) => "id" in e && "root" in e, Cl = (e, t = 1) => e.replace(")", `, ${t})`).replace("rgb", "rgba"),
|
1010
|
+
}, Tl = (...e) => e.map((t) => JSON.stringify(t)).every((t, n, o) => t === o[0]), ff = (e) => "id" in e && "root" in e, Cl = (e, t = 1) => e.replace(")", `, ${t})`).replace("rgb", "rgba"), pf = (e, t) => {
|
1011
|
+
try {
|
1012
|
+
le(e, (n, o, r) => {
|
1013
|
+
if (t(n, o, r))
|
1014
|
+
throw {
|
1015
|
+
key: n,
|
1016
|
+
value: o,
|
1017
|
+
path: r
|
1018
|
+
};
|
1019
|
+
return o;
|
1020
|
+
});
|
1021
|
+
} catch (n) {
|
1022
|
+
return n;
|
1023
|
+
}
|
1024
|
+
}, fn = ["desktop", "laptop", "tablet", "mobile"], Al = {
|
1011
1025
|
mobile: 320,
|
1012
1026
|
tablet: 768,
|
1013
1027
|
laptop: 1024,
|
@@ -1072,12 +1086,12 @@ const pn = mn(), W = ({
|
|
1072
1086
|
id: n
|
1073
1087
|
})
|
1074
1088
|
}), t);
|
1075
|
-
}, I = () => wn(pn), t_ = (e = {}) => typeof e == "object" && L(e) && fn.every((t) => t in e), n_ = (e, t) => e &&
|
1089
|
+
}, I = () => wn(pn), t_ = (e = {}) => typeof e == "object" && L(e) && fn.every((t) => t in e), n_ = (e, t) => e && le(e, (n, o) => {
|
1076
1090
|
if (t_(o)) {
|
1077
1091
|
const r = o[t];
|
1078
1092
|
return "parent" in r && L(r.parent) ? {
|
1079
1093
|
...o[r.parent],
|
1080
|
-
...
|
1094
|
+
...he(r, "parent")
|
1081
1095
|
} : r;
|
1082
1096
|
}
|
1083
1097
|
return o;
|
@@ -1087,7 +1101,7 @@ const pn = mn(), W = ({
|
|
1087
1101
|
parentKey: n = "device-container",
|
1088
1102
|
breakpoints: o = Al
|
1089
1103
|
}) => {
|
1090
|
-
const [r, s] =
|
1104
|
+
const [r, s] = ue("desktop"), c = (l) => {
|
1091
1105
|
var f;
|
1092
1106
|
const i = l.getBoundingClientRect().width || 0, _ = Object.entries({
|
1093
1107
|
...o
|
@@ -1135,7 +1149,7 @@ const pn = mn(), W = ({
|
|
1135
1149
|
}, e);
|
1136
1150
|
}, c_ = (e) => typeof e == "object" && !Array.isArray(e) && "parent" in e, C = (e) => L(e) ? Object.entries(e).reduce((t, [n, o]) => (t[n] = c_(o) ? i_({
|
1137
1151
|
...e[n]
|
1138
|
-
}, n) : o, t), {}) : e,
|
1152
|
+
}, n) : o, t), {}) : e, ve = ({
|
1139
1153
|
children: e,
|
1140
1154
|
...t
|
1141
1155
|
}) => {
|
@@ -1148,9 +1162,9 @@ const pn = mn(), W = ({
|
|
1148
1162
|
}
|
1149
1163
|
});
|
1150
1164
|
}, hn = () => {
|
1151
|
-
const [e, t] =
|
1165
|
+
const [e, t] = ue(!1);
|
1152
1166
|
return [e, () => t((n) => !n)];
|
1153
|
-
},
|
1167
|
+
}, ge = () => a("svg", {
|
1154
1168
|
xmlns: "http://www.w3.org/2000/svg",
|
1155
1169
|
width: "20",
|
1156
1170
|
height: "20",
|
@@ -1200,7 +1214,7 @@ const pn = mn(), W = ({
|
|
1200
1214
|
};
|
1201
1215
|
}, Ie = (e) => {
|
1202
1216
|
const t = /* @__PURE__ */ new Set([]);
|
1203
|
-
|
1217
|
+
le(e, (o, r) => (o === "fontFamily" && t.add(r), r));
|
1204
1218
|
const n = Bt(() => Array.from(t.values()).map((o) => ({
|
1205
1219
|
rel: "stylesheet",
|
1206
1220
|
href: `https://fonts.googleapis.com/css?family=${o}:300,400,500,700&display=swap`
|
@@ -1208,12 +1222,12 @@ const pn = mn(), W = ({
|
|
1208
1222
|
J(() => {
|
1209
1223
|
n.forEach((o) => wl(o));
|
1210
1224
|
}, [n]);
|
1211
|
-
},
|
1225
|
+
}, _e = ["backgroundColor", "backgroundColorOpacity", "backgroundImage", "backgroundFit"], __ = ["borderWidth", "borderColor", "borderStyle"], Lt = ["marginTop", "marginBottom", "marginLeft", "marginRight", "paddingTop", "paddingBottom", "paddingLeft", "paddingRight"], d_ = (e) => console.log(`Noop YaMektika reach goal: ${e}`), u_ = (e) => console.log(`Noop AdFox reach goal: ${e}`), f_ = ({
|
1212
1226
|
delay: e,
|
1213
1227
|
onOpen: t,
|
1214
1228
|
onAutoOpen: n
|
1215
1229
|
}) => {
|
1216
|
-
const [o, r] =
|
1230
|
+
const [o, r] = ue(!1), s = E(null), c = (i) => {
|
1217
1231
|
clearTimeout(s.current), s.current = null;
|
1218
1232
|
}, l = () => {
|
1219
1233
|
c(s.current), r((i) => !i);
|
@@ -1247,7 +1261,7 @@ const pn = mn(), W = ({
|
|
1247
1261
|
toggle: l,
|
1248
1262
|
click: () => n.current.emit("click")
|
1249
1263
|
};
|
1250
|
-
}, p_ =
|
1264
|
+
}, p_ = fe(({
|
1251
1265
|
id: e
|
1252
1266
|
}, t) => {
|
1253
1267
|
var w, $, A, B, V, F, G;
|
@@ -1299,7 +1313,7 @@ const pn = mn(), W = ({
|
|
1299
1313
|
className: m.close,
|
1300
1314
|
style: i == null ? void 0 : i.close,
|
1301
1315
|
onClick: y,
|
1302
|
-
children: a(
|
1316
|
+
children: a(ge, {})
|
1303
1317
|
}), a("div", {
|
1304
1318
|
className: m.container,
|
1305
1319
|
style: i == null ? void 0 : i.container,
|
@@ -1313,7 +1327,7 @@ const pn = mn(), W = ({
|
|
1313
1327
|
children: [a("div", {
|
1314
1328
|
className: m.logo,
|
1315
1329
|
style: i == null ? void 0 : i.logo
|
1316
|
-
}), a(
|
1330
|
+
}), a(ve, {
|
1317
1331
|
className: m.text,
|
1318
1332
|
style: i == null ? void 0 : i.text,
|
1319
1333
|
children: (A = i == null ? void 0 : i.text) == null ? void 0 : A.children
|
@@ -1349,7 +1363,7 @@ const pn = mn(), W = ({
|
|
1349
1363
|
})]
|
1350
1364
|
})]
|
1351
1365
|
});
|
1352
|
-
}),
|
1366
|
+
}), hf = K(a(p_, {})), h_ = "_root_1hrqs_1", v_ = "_icon_1hrqs_5", g_ = "_iconTarget_1hrqs_17", b_ = "_body_1hrqs_22", m_ = "_desktop_1hrqs_29", y_ = "_tablet_1hrqs_29", $_ = "_laptop_1hrqs_29", N_ = "_bodyOpen_1hrqs_33", k_ = "_complexGift_in_1hrqs_1", w_ = "_arrow_1hrqs_46", x_ = "_container_1hrqs_56", O_ = "_promotion_1hrqs_61", T_ = "_close_1hrqs_69", C_ = "_head_1hrqs_83", A_ = "_headIcon_1hrqs_90", j_ = "_headTitle_1hrqs_96", S_ = "_inner_1hrqs_103", I_ = "_fadein_1hrqs_1", P_ = "_pulse_1hrqs_1", L_ = "_gradient_1hrqs_1", R_ = "_wiggle_1hrqs_1", N = {
|
1353
1367
|
root: h_,
|
1354
1368
|
icon: v_,
|
1355
1369
|
iconTarget: g_,
|
@@ -1414,7 +1428,7 @@ const pn = mn(), W = ({
|
|
1414
1428
|
}), a("div", {
|
1415
1429
|
className: R.text,
|
1416
1430
|
style: t.text,
|
1417
|
-
children: a(
|
1431
|
+
children: a(ve, {
|
1418
1432
|
children: (s = t.text) == null ? void 0 : s.children
|
1419
1433
|
})
|
1420
1434
|
})]
|
@@ -1435,7 +1449,7 @@ const pn = mn(), W = ({
|
|
1435
1449
|
children: (l = t.legal) == null ? void 0 : l.children
|
1436
1450
|
})]
|
1437
1451
|
});
|
1438
|
-
}, W_ =
|
1452
|
+
}, W_ = fe(({
|
1439
1453
|
id: e
|
1440
1454
|
}, t) => {
|
1441
1455
|
var k, h, w, $;
|
@@ -1492,7 +1506,7 @@ const pn = mn(), W = ({
|
|
1492
1506
|
className: N.close,
|
1493
1507
|
style: c.close,
|
1494
1508
|
onClick: _,
|
1495
|
-
children: a(
|
1509
|
+
children: a(ge, {})
|
1496
1510
|
}), a("div", {
|
1497
1511
|
className: N.promotion,
|
1498
1512
|
style: c.promotion,
|
@@ -1519,7 +1533,7 @@ const pn = mn(), W = ({
|
|
1519
1533
|
})]
|
1520
1534
|
})]
|
1521
1535
|
});
|
1522
|
-
}),
|
1536
|
+
}), vf = K(a(W_, {})), K_ = "_root_15w5v_1", X_ = "_content_15w5v_11", J_ = "_laptop_15w5v_20", Z_ = "_tablet_15w5v_24", Y_ = "_desktop_15w5v_28", Q_ = "_wrapper_15w5v_32", ed = "_overlay_15w5v_36", td = "_close_15w5v_42", nd = "_body_15w5v_50", od = "_logo_15w5v_62", rd = "_text_15w5v_68", ad = "_button_15w5v_72", sd = "_legal_15w5v_87", P = {
|
1523
1537
|
root: K_,
|
1524
1538
|
content: X_,
|
1525
1539
|
laptop: J_,
|
@@ -1545,12 +1559,12 @@ const pn = mn(), W = ({
|
|
1545
1559
|
return a("div", {
|
1546
1560
|
className: cd.root,
|
1547
1561
|
style: t.root,
|
1548
|
-
children: a(
|
1562
|
+
children: a(ve, {
|
1549
1563
|
children: (n = t == null ? void 0 : t.root) == null ? void 0 : n.children
|
1550
1564
|
})
|
1551
1565
|
});
|
1552
1566
|
}, ze = (e) => {
|
1553
|
-
const t = E(dn()), [n, o] =
|
1567
|
+
const t = E(dn()), [n, o] = ue(!1), r = (i) => t.current.on("visible", i), s = (i) => t.current.on("click", i), c = () => o(!0), l = () => o(!1);
|
1554
1568
|
return J(() => {
|
1555
1569
|
t.current.emit("visible", n);
|
1556
1570
|
}, [n]), Et(e, () => ({
|
@@ -1564,7 +1578,7 @@ const pn = mn(), W = ({
|
|
1564
1578
|
hide: l,
|
1565
1579
|
click: () => t.current.emit("click")
|
1566
1580
|
};
|
1567
|
-
}, _d =
|
1581
|
+
}, _d = fe(({
|
1568
1582
|
id: e
|
1569
1583
|
}, t) => {
|
1570
1584
|
var g, y, k, h, w, $, A;
|
@@ -1604,7 +1618,7 @@ const pn = mn(), W = ({
|
|
1604
1618
|
color: ($ = _.close) == null ? void 0 : $.backgroundColor
|
1605
1619
|
},
|
1606
1620
|
onClick: r,
|
1607
|
-
children: a(
|
1621
|
+
children: a(ge, {})
|
1608
1622
|
}), a("a", {
|
1609
1623
|
href: (A = _.root) == null ? void 0 : A.offer,
|
1610
1624
|
target: "_blank",
|
@@ -1641,7 +1655,7 @@ const pn = mn(), W = ({
|
|
1641
1655
|
})]
|
1642
1656
|
})]
|
1643
1657
|
});
|
1644
|
-
}),
|
1658
|
+
}), gf = K(a(_d, {})), dd = "_root_1ifs0_1", ud = "_content_1ifs0_5", fd = "_desktop_1ifs0_18", pd = "_overlay_1ifs0_23", hd = "_close_1ifs0_29", vd = "_title_1ifs0_36", gd = "_wrapper_1ifs0_51", D = {
|
1645
1659
|
root: dd,
|
1646
1660
|
content: ud,
|
1647
1661
|
desktop: fd,
|
@@ -1671,7 +1685,7 @@ const pn = mn(), W = ({
|
|
1671
1685
|
className: j(M.root, {
|
1672
1686
|
[M.desktop]: o === "desktop"
|
1673
1687
|
}),
|
1674
|
-
style:
|
1688
|
+
style: he(n.root, ...Lt),
|
1675
1689
|
onClick: e,
|
1676
1690
|
children: [a("div", {
|
1677
1691
|
className: M.header,
|
@@ -1687,7 +1701,7 @@ const pn = mn(), W = ({
|
|
1687
1701
|
className: M.body,
|
1688
1702
|
children: [a("div", {
|
1689
1703
|
className: M.logo
|
1690
|
-
}), a(
|
1704
|
+
}), a(ve, {
|
1691
1705
|
className: M.text,
|
1692
1706
|
style: n.text,
|
1693
1707
|
children: (s = n.text) == null ? void 0 : s.children
|
@@ -1705,7 +1719,7 @@ const pn = mn(), W = ({
|
|
1705
1719
|
})]
|
1706
1720
|
})]
|
1707
1721
|
});
|
1708
|
-
}, Cd =
|
1722
|
+
}, Cd = fe(({
|
1709
1723
|
id: e
|
1710
1724
|
}, t) => {
|
1711
1725
|
var d, f;
|
@@ -1738,7 +1752,7 @@ const pn = mn(), W = ({
|
|
1738
1752
|
color: (d = _.close) == null ? void 0 : d.backgroundColor
|
1739
1753
|
},
|
1740
1754
|
onClick: r,
|
1741
|
-
children: a(
|
1755
|
+
children: a(ge, {})
|
1742
1756
|
}), a("div", {
|
1743
1757
|
className: D.title,
|
1744
1758
|
style: _.title,
|
@@ -1757,7 +1771,7 @@ const pn = mn(), W = ({
|
|
1757
1771
|
})]
|
1758
1772
|
})]
|
1759
1773
|
});
|
1760
|
-
}),
|
1774
|
+
}), bf = K(a(Cd, {})), Ad = "_root_14xbh_1", jd = "_content_14xbh_11", Sd = "_close_14xbh_19", Id = "_overlay_14xbh_27", Pd = "_body_14xbh_33", Ld = "_desktop_14xbh_43", Rd = "_laptop_14xbh_48", qd = "_tablet_14xbh_48", Hd = "_head_14xbh_53", Ed = "_title_14xbh_63", Bd = "_logo_14xbh_76", Md = "_wrapper_14xbh_82", Vd = "_text_14xbh_89", Fd = "_button_14xbh_104", Gd = "_buttonHead_14xbh_119", Dd = "_buttonTarget_14xbh_138", Ud = "_legal_14xbh_154", T = {
|
1761
1775
|
root: Ad,
|
1762
1776
|
content: jd,
|
1763
1777
|
close: Sd,
|
@@ -1852,7 +1866,7 @@ const pn = mn(), W = ({
|
|
1852
1866
|
})]
|
1853
1867
|
})]
|
1854
1868
|
});
|
1855
|
-
}, iu =
|
1869
|
+
}, iu = fe(({
|
1856
1870
|
id: e
|
1857
1871
|
}, t) => {
|
1858
1872
|
var k, h, w, $, A, B, V, F, G, We, Ke, Xe, Je, Ze;
|
@@ -1905,7 +1919,7 @@ const pn = mn(), W = ({
|
|
1905
1919
|
color: (F = _.close) == null ? void 0 : F.backgroundColor
|
1906
1920
|
},
|
1907
1921
|
onClick: r,
|
1908
|
-
children: a(
|
1922
|
+
children: a(ge, {})
|
1909
1923
|
}), a("a", {
|
1910
1924
|
ref: n,
|
1911
1925
|
href: (G = _.root) == null ? void 0 : G.offer,
|
@@ -1935,7 +1949,7 @@ const pn = mn(), W = ({
|
|
1935
1949
|
},
|
1936
1950
|
children: a(su, {})
|
1937
1951
|
}))
|
1938
|
-
}), a(
|
1952
|
+
}), a(ve, {
|
1939
1953
|
className: T.text,
|
1940
1954
|
style: u,
|
1941
1955
|
children: (Ke = _.text) == null ? void 0 : Ke.children
|
@@ -1960,7 +1974,7 @@ const pn = mn(), W = ({
|
|
1960
1974
|
})]
|
1961
1975
|
})]
|
1962
1976
|
});
|
1963
|
-
}),
|
1977
|
+
}), mf = K(a(iu, {})), cu = "_root_1slvw_1", lu = "_background_1slvw_20", _u = "_body_1slvw_29", du = "_bookmaker_1slvw_39", uu = "_button_1slvw_46", fu = "_rowFirst_1slvw_60", pu = "_rowSecond_1slvw_66", hu = "_legal_1slvw_72", vu = "_legalText_1slvw_88", gu = "_legalOpen_1slvw_98", bu = "_legalButton_1slvw_103", q = {
|
1964
1978
|
root: cu,
|
1965
1979
|
background: lu,
|
1966
1980
|
body: _u,
|
@@ -2032,7 +2046,7 @@ const pn = mn(), W = ({
|
|
2032
2046
|
children: a(mu, {})
|
2033
2047
|
}))
|
2034
2048
|
});
|
2035
|
-
},
|
2049
|
+
}, yf = K(a(yu, {})), $u = "_root_a3kem_1", Nu = "_desktop_a3kem_13", ku = "_laptop_a3kem_14", wu = "_promotion_a3kem_18", xu = "_background_a3kem_34", Ou = "_content_a3kem_43", Tu = "_variant2_a3kem_56", Cu = "_logo_a3kem_60", Au = "_left_a3kem_72", ju = "_center_a3kem_86", Su = "_slide_a3kem_92", Iu = "_slide_animated_default_a3kem_106", Pu = "_right_a3kem_116", Lu = "_buttonWrapper_a3kem_131", Ru = "_button_a3kem_131", qu = "_button_animated_a3kem_162", Hu = "_increase_a3kem_1", O = {
|
2036
2050
|
root: $u,
|
2037
2051
|
desktop: Nu,
|
2038
2052
|
laptop: ku,
|
@@ -2065,7 +2079,7 @@ const pn = mn(), W = ({
|
|
2065
2079
|
className: j(Rt.root, {
|
2066
2080
|
[Rt.desktop]: (e == null ? void 0 : e.device) === "desktop"
|
2067
2081
|
}),
|
2068
|
-
style:
|
2082
|
+
style: he(t.root, ..._e),
|
2069
2083
|
children: (n = t.root) == null ? void 0 : n.children
|
2070
2084
|
});
|
2071
2085
|
}, Vu = "_root_vjs41_1", Fu = "_odd_vjs41_7", Gu = "_oddReverse_vjs41_14", Du = "_oddLabel_vjs41_18", Uu = "_oddLogo_vjs41_30", zu = "_coef_vjs41_36", Wu = "_coefHead_vjs41_42", Ku = "_coefValue_vjs41_47", H = {
|
@@ -2079,7 +2093,7 @@ const pn = mn(), W = ({
|
|
2079
2093
|
coefValue: Ku
|
2080
2094
|
}, Xu = () => {
|
2081
2095
|
var o, r, s;
|
2082
|
-
const e = I(), t = C(e), n =
|
2096
|
+
const e = I(), t = C(e), n = he(t.root, ..._e);
|
2083
2097
|
return a("div", {
|
2084
2098
|
className: H.root,
|
2085
2099
|
children: [a("div", {
|
@@ -2135,7 +2149,7 @@ const pn = mn(), W = ({
|
|
2135
2149
|
[S.laptop]: (e == null ? void 0 : e.device) === "laptop",
|
2136
2150
|
[S.tablet]: (e == null ? void 0 : e.device) === "tablet"
|
2137
2151
|
}),
|
2138
|
-
style:
|
2152
|
+
style: he(t.root, ..._e),
|
2139
2153
|
children: [a("div", {
|
2140
2154
|
className: S.title,
|
2141
2155
|
children: [a("div", {
|
@@ -2181,7 +2195,7 @@ const pn = mn(), W = ({
|
|
2181
2195
|
});
|
2182
2196
|
}, lf = (e = []) => {
|
2183
2197
|
var s;
|
2184
|
-
const t = e.length, [n, o] =
|
2198
|
+
const t = e.length, [n, o] = ue(0), r = (s = e[n || 0]) == null ? void 0 : s.animationDuration;
|
2185
2199
|
return J(() => {
|
2186
2200
|
const l = setTimeout(() => {
|
2187
2201
|
o((i) => i + 1 < t ? i + 1 : 0);
|
@@ -2203,7 +2217,7 @@ const pn = mn(), W = ({
|
|
2203
2217
|
animationName: (w = h == null ? void 0 : h.root) == null ? void 0 : w.animationName,
|
2204
2218
|
animationDuration: (($ = h == null ? void 0 : h.root) == null ? void 0 : $.animationDuration) || _f
|
2205
2219
|
};
|
2206
|
-
}), i = lf(l), _ = C(l[i] || {}), d = (f = _ == null ? void 0 : _.root) != null && f.hasCustomBackground ? Z((_ == null ? void 0 : _.root) || {}, ...
|
2220
|
+
}), i = lf(l), _ = C(l[i] || {}), d = (f = _ == null ? void 0 : _.root) != null && f.hasCustomBackground ? Z((_ == null ? void 0 : _.root) || {}, ..._e) : Z(r.background, ..._e);
|
2207
2221
|
return a("a", {
|
2208
2222
|
ref: e,
|
2209
2223
|
href: (u = r.root) == null ? void 0 : u.offer,
|
@@ -2270,7 +2284,7 @@ const pn = mn(), W = ({
|
|
2270
2284
|
})]
|
2271
2285
|
})]
|
2272
2286
|
});
|
2273
|
-
},
|
2287
|
+
}, $f = K(a(df, {})), Nf = (e, t, n, o, r = fn) => {
|
2274
2288
|
const s = {
|
2275
2289
|
...e
|
2276
2290
|
};
|
@@ -2285,13 +2299,14 @@ const pn = mn(), W = ({
|
|
2285
2299
|
}), s;
|
2286
2300
|
};
|
2287
2301
|
export {
|
2288
|
-
|
2289
|
-
|
2290
|
-
|
2291
|
-
|
2292
|
-
|
2293
|
-
|
2294
|
-
|
2302
|
+
yf as BonusCard,
|
2303
|
+
vf as ComplexGift,
|
2304
|
+
bf as ComplexPopup,
|
2305
|
+
mf as ExpressPopup,
|
2306
|
+
hf as SimpleGift,
|
2307
|
+
gf as SimplePopup,
|
2308
|
+
$f as WideCard,
|
2309
|
+
pf as findDeep,
|
2295
2310
|
ff as isValidTemplate,
|
2296
|
-
|
2311
|
+
Nf as modifyState
|
2297
2312
|
};
|
package/dist/templates.umd.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
(function(
|
1
|
+
(function(A,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("preact")):typeof define=="function"&&define.amd?define(["exports","preact"],_):(A=typeof globalThis<"u"?globalThis:A||self,_(A["@adstore/templates"]={},A.preact))})(this,function(A,_){"use strict";var Ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ke={},Wo={get exports(){return Ke},set exports(e){Ke=e}};/*!
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
3
3
|
Licensed under the MIT License (MIT), see
|
4
4
|
http://jedwatson.github.io/classnames
|
5
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function o(){for(var n=[],r=0;r<arguments.length;r++){var a=arguments[r];if(a){var c=typeof a;if(c==="string"||c==="number")n.push(a);else if(Array.isArray(a)){if(a.length){var l=o.apply(null,a);l&&n.push(l)}}else if(c==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){n.push(a.toString());continue}for(var s in a)t.call(a,s)&&a[s]&&n.push(s)}}}return n.join(" ")}e.exports?(o.default=o,e.exports=o):window.classNames=o})()})(Wo);const A=Ke;var oe,b,Xe,_t,ue=0,ut=[],Ne=[],ft=_.options.__b,vt=_.options.__r,pt=_.options.diffed,ht=_.options.__c,gt=_.options.unmount;function fe(e,t){_.options.__h&&_.options.__h(b,e,ue||t),ue=0;var o=b.__H||(b.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({__V:Ne}),o.__[e]}function ve(e){return ue=1,Uo(wt,e)}function Uo(e,t,o){var n=fe(oe++,2);if(n.t=e,!n.__c&&(n.__=[o?o(t):wt(void 0,t),function(l){var s=n.__N?n.__N[0]:n.__[0],d=n.t(s,l);s!==d&&(n.__N=[d,n.__[1]],n.__c.setState({}))}],n.__c=b,!b.u)){var r=function(l,s,d){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(v){return v.__c});if(u.every(function(v){return!v.__N}))return!a||a.call(this,l,s,d);var f=!1;return u.forEach(function(v){if(v.__N){var h=v.__[0];v.__=v.__N,v.__N=void 0,h!==v.__[0]&&(f=!0)}}),!(!f&&n.__c.props===l)&&(!a||a.call(this,l,s,d))};b.u=!0;var a=b.shouldComponentUpdate,c=b.componentWillUpdate;b.componentWillUpdate=function(l,s,d){if(this.__e){var u=a;a=void 0,r(l,s,d),a=u}c&&c.call(this,l,s,d)},b.shouldComponentUpdate=r}return n.__N||n.__}function ne(e,t){var o=fe(oe++,3);!_.options.__s&&Ye(o.__H,t)&&(o.__=e,o.i=t,b.__H.__h.push(o))}function bt(e,t){var o=fe(oe++,4);!_.options.__s&&Ye(o.__H,t)&&(o.__=e,o.i=t,b.__h.push(o))}function L(e){return ue=5,yt(function(){return{current:e}},[])}function mt(e,t,o){ue=6,bt(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},o==null?o:o.concat(e))}function yt(e,t){var o=fe(oe++,7);return Ye(o.__H,t)?(o.__V=e(),o.i=t,o.__h=e,o.__V):o.__}function Ko(e){var t=b.context[e.__c],o=fe(oe++,9);return o.c=e,t?(o.__==null&&(o.__=!0,t.sub(b)),t.props.value):e.__}function Xo(){for(var e;e=ut.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ce),e.__H.__h.forEach(Je),e.__H.__h=[]}catch(t){e.__H.__h=[],_.options.__e(t,e.__v)}}_.options.__b=function(e){b=null,ft&&ft(e)},_.options.__r=function(e){vt&&vt(e),oe=0;var t=(b=e.__c).__H;t&&(Xe===b?(t.__h=[],b.__h=[],t.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=Ne,o.__N=o.i=void 0})):(t.__h.forEach(Ce),t.__h.forEach(Je),t.__h=[])),Xe=b},_.options.diffed=function(e){pt&&pt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ut.push(t)!==1&&_t===_.options.requestAnimationFrame||((_t=_.options.requestAnimationFrame)||Jo)(Xo)),t.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==Ne&&(o.__=o.__V),o.i=void 0,o.__V=Ne})),Xe=b=null},_.options.__c=function(e,t){t.some(function(o){try{o.__h.forEach(Ce),o.__h=o.__h.filter(function(n){return!n.__||Je(n)})}catch(n){t.some(function(r){r.__h&&(r.__h=[])}),t=[],_.options.__e(n,o.__v)}}),ht&&ht(e,t)},_.options.unmount=function(e){gt&>(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{Ce(n)}catch(r){t=r}}),o.__H=void 0,t&&_.options.__e(t,o.__v))};var $t=typeof requestAnimationFrame=="function";function Jo(e){var t,o=function(){clearTimeout(n),$t&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(o,100);$t&&(t=requestAnimationFrame(o))}function Ce(e){var t=b,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),b=t}function Je(e){var t=b;e.__c=e.__(),b=t}function Ye(e,t){return!e||e.length!==t.length||t.some(function(o,n){return o!==e[n]})}function wt(e,t){return typeof t=="function"?t(e):t}function xt(e,t){for(var o in t)e[o]=t[o];return e}function Ot(e,t){for(var o in e)if(o!=="__source"&&!(o in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function kt(e){this.props=e}(kt.prototype=new _.Component).isPureReactComponent=!0,kt.prototype.shouldComponentUpdate=function(e,t){return Ot(this.props,e)||Ot(this.state,t)};var Tt=_.options.__b;_.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Tt&&Tt(e)};var Yo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function pe(e){function t(o){var n=xt({},o);return delete n.ref,e(n,o.ref||null)}return t.$$typeof=Yo,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Zo=_.options.__e;_.options.__e=function(e,t,o,n){if(e.then){for(var r,a=t;a=a.__;)if((r=a.__c)&&r.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k),r.__c(e,t)}Zo(e,t,o,n)};var Nt=_.options.unmount;function Ct(e,t,o){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=xt({},e)).__c!=null&&(e.__c.__P===o&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Ct(n,t,o)})),e}function St(e,t,o){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return St(n,t,o)}),e.__c&&e.__c.__P===t&&(e.__e&&o.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=o)),e}function Ze(){this.__u=0,this.t=null,this.__b=null}function At(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Se(){this.u=null,this.o=null}_.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Nt&&Nt(e)},(Ze.prototype=new _.Component).__c=function(e,t){var o=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var r=At(n.__v),a=!1,c=function(){a||(a=!0,o.__R=null,r?r(l):l())};o.__R=c;var l=function(){if(!--n.__u){if(n.state.__a){var d=n.state.__a;n.__v.__k[0]=St(d,d.__c.__P,d.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.t.pop();)u.forceUpdate()}},s=t.__h===!0;n.__u++||s||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(c,c)},Ze.prototype.componentWillUnmount=function(){this.t=[]},Ze.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Ct(this.__b,o,n.__O=n.__P)}this.__b=null}var r=t.__a&&_.createElement(_.Fragment,null,e.fallback);return r&&(r.__h=null),[_.createElement(_.Fragment,null,t.__a?null:e.children),r]};var Rt=function(e,t,o){if(++o[1]===o[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(o=e.u;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;e.u=o=o[2]}};(Se.prototype=new _.Component).__a=function(e){var t=this,o=At(t.__v),n=t.o.get(e);return n[0]++,function(r){var a=function(){t.props.revealOrder?(n.push(r),Rt(t,e,n)):r()};o?o(a):a()}},Se.prototype.render=function(e){this.u=null,this.o=new Map;var t=_.toChildArray(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var o=t.length;o--;)this.o.set(t[o],this.u=[1,0,this.u]);return e.children},Se.prototype.componentDidUpdate=Se.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,o){Rt(e,o,t)})};var Qo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,en=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,tn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,on=/[A-Z0-9]/g,nn=typeof document<"u",rn=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};_.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(_.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var jt=_.options.event;function an(){}function sn(){return this.cancelBubble}function cn(){return this.defaultPrevented}_.options.event=function(e){return jt&&(e=jt(e)),e.persist=an,e.isPropagationStopped=sn,e.isDefaultPrevented=cn,e.nativeEvent=e};var ln={enumerable:!1,configurable:!0,get:function(){return this.class}},Et=_.options.vnode;_.options.vnode=function(e){typeof e.type=="string"&&function(t){var o=t.props,n=t.type,r={};for(var a in o){var c=o[a];if(!(a==="value"&&"defaultValue"in o&&c==null||nn&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in o&&o.value==null?a="value":a==="download"&&c===!0?c="":l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||rn(o.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":tn.test(a)?a=l:n.indexOf("-")===-1&&en.test(a)?a=a.replace(on,"-$&").toLowerCase():c===null&&(c=void 0):l=a="oninput",l==="oninput"&&r[a=l]&&(a="oninputCapture"),r[a]=c}}n=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=_.toChildArray(o.children).forEach(function(s){s.props.selected=r.value.indexOf(s.props.value)!=-1})),n=="select"&&r.defaultValue!=null&&(r.value=_.toChildArray(o.children).forEach(function(s){s.props.selected=r.multiple?r.defaultValue.indexOf(s.props.value)!=-1:r.defaultValue==s.props.value})),o.class&&!o.className?(r.class=o.class,Object.defineProperty(r,"className",ln)):(o.className&&!o.class||o.class&&o.className)&&(r.class=r.className=o.className),t.props=r}(e),e.$$typeof=Qo,Et&&Et(e)};var It=_.options.__r;_.options.__r=function(e){It&&It(e),e.__c};var Pt=_.options.diffed;_.options.diffed=function(e){Pt&&Pt(e);var t=e.props,o=e.__e;o!=null&&e.type==="textarea"&&"value"in t&&t.value!==o.value&&(o.value=t.value==null?"":t.value)};function dn(){this.__data__=[],this.size=0}var _n=dn;function un(e,t){return e===t||e!==e&&t!==t}var Ae=un,fn=Ae;function vn(e,t){for(var o=e.length;o--;)if(fn(e[o][0],t))return o;return-1}var Re=vn,pn=Re,hn=Array.prototype,gn=hn.splice;function bn(e){var t=this.__data__,o=pn(t,e);if(o<0)return!1;var n=t.length-1;return o==n?t.pop():gn.call(t,o,1),--this.size,!0}var mn=bn,yn=Re;function $n(e){var t=this.__data__,o=yn(t,e);return o<0?void 0:t[o][1]}var wn=$n,xn=Re;function On(e){return xn(this.__data__,e)>-1}var kn=On,Tn=Re;function Nn(e,t){var o=this.__data__,n=Tn(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}var Cn=Nn,Sn=_n,An=mn,Rn=wn,jn=kn,En=Cn;function re(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}re.prototype.clear=Sn,re.prototype.delete=An,re.prototype.get=Rn,re.prototype.has=jn,re.prototype.set=En;var je=re,In=je;function Pn(){this.__data__=new In,this.size=0}var Bn=Pn;function Ln(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}var zn=Ln;function qn(e){return this.__data__.get(e)}var Hn=qn;function Mn(e){return this.__data__.has(e)}var Dn=Mn,Vn=typeof Te=="object"&&Te&&Te.Object===Object&&Te,Bt=Vn,Fn=Bt,Gn=typeof self=="object"&&self&&self.Object===Object&&self,Wn=Fn||Gn||Function("return this")(),ae=Wn,Un=ae,Kn=Un.Symbol,Lt=Kn,zt=Lt,qt=Object.prototype,Xn=qt.hasOwnProperty,Jn=qt.toString,he=zt?zt.toStringTag:void 0;function Yn(e){var t=Xn.call(e,he),o=e[he];try{e[he]=void 0;var n=!0}catch{}var r=Jn.call(e);return n&&(t?e[he]=o:delete e[he]),r}var Zn=Yn,Qn=Object.prototype,er=Qn.toString;function tr(e){return er.call(e)}var or=tr,Ht=Lt,nr=Zn,rr=or,ar="[object Null]",ir="[object Undefined]",Mt=Ht?Ht.toStringTag:void 0;function sr(e){return e==null?e===void 0?ir:ar:Mt&&Mt in Object(e)?nr(e):rr(e)}var Ee=sr;function cr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var W=cr,lr=Ee,dr=W,_r="[object AsyncFunction]",ur="[object Function]",fr="[object GeneratorFunction]",vr="[object Proxy]";function pr(e){if(!dr(e))return!1;var t=lr(e);return t==ur||t==fr||t==_r||t==vr}var Qe=pr,hr=ae,gr=hr["__core-js_shared__"],br=gr,et=br,Dt=function(){var e=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function mr(e){return!!Dt&&Dt in e}var yr=mr,$r=Function.prototype,wr=$r.toString;function xr(e){if(e!=null){try{return wr.call(e)}catch{}try{return e+""}catch{}}return""}var Or=xr,kr=Qe,Tr=yr,Nr=W,Cr=Or,Sr=/[\\^$.*+?()[\]{}|]/g,Ar=/^\[object .+?Constructor\]$/,Rr=Function.prototype,jr=Object.prototype,Er=Rr.toString,Ir=jr.hasOwnProperty,Pr=RegExp("^"+Er.call(Ir).replace(Sr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Br(e){if(!Nr(e)||Tr(e))return!1;var t=kr(e)?Pr:Ar;return t.test(Cr(e))}var Lr=Br;function zr(e,t){return e==null?void 0:e[t]}var qr=zr,Hr=Lr,Mr=qr;function Dr(e,t){var o=Mr(e,t);return Hr(o)?o:void 0}var tt=Dr,Vr=tt,Fr=ae,Gr=Vr(Fr,"Map"),Vt=Gr,Wr=tt,Ur=Wr(Object,"create"),Ie=Ur,Ft=Ie;function Kr(){this.__data__=Ft?Ft(null):{},this.size=0}var Xr=Kr;function Jr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Yr=Jr,Zr=Ie,Qr="__lodash_hash_undefined__",ea=Object.prototype,ta=ea.hasOwnProperty;function oa(e){var t=this.__data__;if(Zr){var o=t[e];return o===Qr?void 0:o}return ta.call(t,e)?t[e]:void 0}var na=oa,ra=Ie,aa=Object.prototype,ia=aa.hasOwnProperty;function sa(e){var t=this.__data__;return ra?t[e]!==void 0:ia.call(t,e)}var ca=sa,la=Ie,da="__lodash_hash_undefined__";function _a(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=la&&t===void 0?da:t,this}var ua=_a,fa=Xr,va=Yr,pa=na,ha=ca,ga=ua;function ie(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}ie.prototype.clear=fa,ie.prototype.delete=va,ie.prototype.get=pa,ie.prototype.has=ha,ie.prototype.set=ga;var ba=ie,Gt=ba,ma=je,ya=Vt;function $a(){this.size=0,this.__data__={hash:new Gt,map:new(ya||ma),string:new Gt}}var wa=$a;function xa(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Oa=xa,ka=Oa;function Ta(e,t){var o=e.__data__;return ka(t)?o[typeof t=="string"?"string":"hash"]:o.map}var Pe=Ta,Na=Pe;function Ca(e){var t=Na(this,e).delete(e);return this.size-=t?1:0,t}var Sa=Ca,Aa=Pe;function Ra(e){return Aa(this,e).get(e)}var ja=Ra,Ea=Pe;function Ia(e){return Ea(this,e).has(e)}var Pa=Ia,Ba=Pe;function La(e,t){var o=Ba(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this}var za=La,qa=wa,Ha=Sa,Ma=ja,Da=Pa,Va=za;function se(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}se.prototype.clear=qa,se.prototype.delete=Ha,se.prototype.get=Ma,se.prototype.has=Da,se.prototype.set=Va;var Fa=se,Ga=je,Wa=Vt,Ua=Fa,Ka=200;function Xa(e,t){var o=this.__data__;if(o instanceof Ga){var n=o.__data__;if(!Wa||n.length<Ka-1)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new Ua(n)}return o.set(e,t),this.size=o.size,this}var Ja=Xa,Ya=je,Za=Bn,Qa=zn,ei=Hn,ti=Dn,oi=Ja;function ce(e){var t=this.__data__=new Ya(e);this.size=t.size}ce.prototype.clear=Za,ce.prototype.delete=Qa,ce.prototype.get=ei,ce.prototype.has=ti,ce.prototype.set=oi;var ni=ce,ri=tt,ai=function(){try{var e=ri(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Wt=ai,Ut=Wt;function ii(e,t,o){t=="__proto__"&&Ut?Ut(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}var ot=ii,si=ot,ci=Ae;function li(e,t,o){(o!==void 0&&!ci(e[t],o)||o===void 0&&!(t in e))&&si(e,t,o)}var Kt=li;function di(e){return function(t,o,n){for(var r=-1,a=Object(t),c=n(t),l=c.length;l--;){var s=c[e?l:++r];if(o(a[s],s,a)===!1)break}return t}}var _i=di,ui=_i,fi=ui(),vi=fi,Be={},pi={get exports(){return Be},set exports(e){Be=e}};(function(e,t){var o=ae,n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,a=r&&r.exports===n,c=a?o.Buffer:void 0,l=c?c.allocUnsafe:void 0;function s(d,u){if(u)return d.slice();var f=d.length,v=l?l(f):new d.constructor(f);return d.copy(v),v}e.exports=s})(pi,Be);var hi=ae,gi=hi.Uint8Array,bi=gi,Xt=bi;function mi(e){var t=new e.constructor(e.byteLength);return new Xt(t).set(new Xt(e)),t}var yi=mi,$i=yi;function wi(e,t){var o=t?$i(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}var xi=wi;function Oi(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t}var ki=Oi,Ti=W,Jt=Object.create,Ni=function(){function e(){}return function(t){if(!Ti(t))return{};if(Jt)return Jt(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}(),Ci=Ni;function Si(e,t){return function(o){return e(t(o))}}var Ai=Si,Ri=Ai,ji=Ri(Object.getPrototypeOf,Object),Yt=ji,Ei=Object.prototype;function Ii(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Ei;return e===o}var Zt=Ii,Pi=Ci,Bi=Yt,Li=Zt;function zi(e){return typeof e.constructor=="function"&&!Li(e)?Pi(Bi(e)):{}}var qi=zi;function Hi(e){return e!=null&&typeof e=="object"}var ge=Hi,Mi=Ee,Di=ge,Vi="[object Arguments]";function Fi(e){return Di(e)&&Mi(e)==Vi}var Gi=Fi,Qt=Gi,Wi=ge,eo=Object.prototype,Ui=eo.hasOwnProperty,Ki=eo.propertyIsEnumerable,Xi=Qt(function(){return arguments}())?Qt:function(e){return Wi(e)&&Ui.call(e,"callee")&&!Ki.call(e,"callee")},to=Xi,Ji=Array.isArray,oo=Ji,Yi=9007199254740991;function Zi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Yi}var no=Zi,Qi=Qe,es=no;function ts(e){return e!=null&&es(e.length)&&!Qi(e)}var nt=ts,os=nt,ns=ge;function rs(e){return ns(e)&&os(e)}var as=rs,be={},is={get exports(){return be},set exports(e){be=e}};function ss(){return!1}var cs=ss;(function(e,t){var o=ae,n=cs,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,c=a&&a.exports===r,l=c?o.Buffer:void 0,s=l?l.isBuffer:void 0,d=s||n;e.exports=d})(is,be);var ls=Ee,ds=Yt,_s=ge,us="[object Object]",fs=Function.prototype,vs=Object.prototype,ro=fs.toString,ps=vs.hasOwnProperty,hs=ro.call(Object);function gs(e){if(!_s(e)||ls(e)!=us)return!1;var t=ds(e);if(t===null)return!0;var o=ps.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&ro.call(o)==hs}var bs=gs,ms=Ee,ys=no,$s=ge,ws="[object Arguments]",xs="[object Array]",Os="[object Boolean]",ks="[object Date]",Ts="[object Error]",Ns="[object Function]",Cs="[object Map]",Ss="[object Number]",As="[object Object]",Rs="[object RegExp]",js="[object Set]",Es="[object String]",Is="[object WeakMap]",Ps="[object ArrayBuffer]",Bs="[object DataView]",Ls="[object Float32Array]",zs="[object Float64Array]",qs="[object Int8Array]",Hs="[object Int16Array]",Ms="[object Int32Array]",Ds="[object Uint8Array]",Vs="[object Uint8ClampedArray]",Fs="[object Uint16Array]",Gs="[object Uint32Array]",g={};g[Ls]=g[zs]=g[qs]=g[Hs]=g[Ms]=g[Ds]=g[Vs]=g[Fs]=g[Gs]=!0,g[ws]=g[xs]=g[Ps]=g[Os]=g[Bs]=g[ks]=g[Ts]=g[Ns]=g[Cs]=g[Ss]=g[As]=g[Rs]=g[js]=g[Es]=g[Is]=!1;function Ws(e){return $s(e)&&ys(e.length)&&!!g[ms(e)]}var Us=Ws;function Ks(e){return function(t){return e(t)}}var Xs=Ks,Le={},Js={get exports(){return Le},set exports(e){Le=e}};(function(e,t){var o=Bt,n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,a=r&&r.exports===n,c=a&&o.process,l=function(){try{var s=r&&r.require&&r.require("util").types;return s||c&&c.binding&&c.binding("util")}catch{}}();e.exports=l})(Js,Le);var Ys=Us,Zs=Xs,ao=Le,io=ao&&ao.isTypedArray,Qs=io?Zs(io):Ys,so=Qs;function ec(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var co=ec,tc=ot,oc=Ae,nc=Object.prototype,rc=nc.hasOwnProperty;function ac(e,t,o){var n=e[t];(!(rc.call(e,t)&&oc(n,o))||o===void 0&&!(t in e))&&tc(e,t,o)}var ic=ac,sc=ic,cc=ot;function lc(e,t,o,n){var r=!o;o||(o={});for(var a=-1,c=t.length;++a<c;){var l=t[a],s=n?n(o[l],e[l],l,o,e):void 0;s===void 0&&(s=e[l]),r?cc(o,l,s):sc(o,l,s)}return o}var dc=lc;function _c(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}var uc=_c,fc=9007199254740991,vc=/^(?:0|[1-9]\d*)$/;function pc(e,t){var o=typeof e;return t=t??fc,!!t&&(o=="number"||o!="symbol"&&vc.test(e))&&e>-1&&e%1==0&&e<t}var lo=pc,hc=uc,gc=to,bc=oo,mc=be,yc=lo,$c=so,wc=Object.prototype,xc=wc.hasOwnProperty;function Oc(e,t){var o=bc(e),n=!o&&gc(e),r=!o&&!n&&mc(e),a=!o&&!n&&!r&&$c(e),c=o||n||r||a,l=c?hc(e.length,String):[],s=l.length;for(var d in e)(t||xc.call(e,d))&&!(c&&(d=="length"||r&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||yc(d,s)))&&l.push(d);return l}var kc=Oc;function Tc(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var Nc=Tc,Cc=W,Sc=Zt,Ac=Nc,Rc=Object.prototype,jc=Rc.hasOwnProperty;function Ec(e){if(!Cc(e))return Ac(e);var t=Sc(e),o=[];for(var n in e)n=="constructor"&&(t||!jc.call(e,n))||o.push(n);return o}var Ic=Ec,Pc=kc,Bc=Ic,Lc=nt;function zc(e){return Lc(e)?Pc(e,!0):Bc(e)}var _o=zc,qc=dc,Hc=_o;function Mc(e){return qc(e,Hc(e))}var Dc=Mc,uo=Kt,Vc=Be,Fc=xi,Gc=ki,Wc=qi,fo=to,vo=oo,Uc=as,Kc=be,Xc=Qe,Jc=W,Yc=bs,Zc=so,po=co,Qc=Dc;function el(e,t,o,n,r,a,c){var l=po(e,o),s=po(t,o),d=c.get(s);if(d){uo(e,o,d);return}var u=a?a(l,s,o+"",e,t,c):void 0,f=u===void 0;if(f){var v=vo(s),h=!v&&Kc(s),y=!v&&!h&&Zc(s);u=s,v||h||y?vo(l)?u=l:Uc(l)?u=Gc(l):h?(f=!1,u=Vc(s,!0)):y?(f=!1,u=Fc(s,!0)):u=[]:Yc(s)||fo(s)?(u=l,fo(l)?u=Qc(l):(!Jc(l)||Xc(l))&&(u=Wc(s))):f=!1}f&&(c.set(s,u),r(u,s,n,a,c),c.delete(s)),uo(e,o,u)}var tl=el,ol=ni,nl=Kt,rl=vi,al=tl,il=W,sl=_o,cl=co;function ho(e,t,o,n,r){e!==t&&rl(t,function(a,c){if(r||(r=new ol),il(a))al(e,t,c,o,ho,n,r);else{var l=n?n(cl(e,c),a,c+"",e,t,r):void 0;l===void 0&&(l=a),nl(e,c,l)}},sl)}var ll=ho;function dl(e){return e}var go=dl;function _l(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}var ul=_l,fl=ul,bo=Math.max;function vl(e,t,o){return t=bo(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,a=bo(n.length-t,0),c=Array(a);++r<a;)c[r]=n[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=n[r];return l[t]=o(c),fl(e,this,l)}}var pl=vl;function hl(e){return function(){return e}}var gl=hl,bl=gl,mo=Wt,ml=go,yl=mo?function(e,t){return mo(e,"toString",{configurable:!0,enumerable:!1,value:bl(t),writable:!0})}:ml,$l=yl,wl=800,xl=16,Ol=Date.now;function kl(e){var t=0,o=0;return function(){var n=Ol(),r=xl-(n-o);if(o=n,r>0){if(++t>=wl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Tl=kl,Nl=$l,Cl=Tl,Sl=Cl(Nl),Al=Sl,Rl=go,jl=pl,El=Al;function Il(e,t){return El(jl(e,t,Rl),e+"")}var Pl=Il,Bl=Ae,Ll=nt,zl=lo,ql=W;function Hl(e,t,o){if(!ql(o))return!1;var n=typeof t;return(n=="number"?Ll(o)&&zl(t,o.length):n=="string"&&t in o)?Bl(o[t],e):!1}var Ml=Hl,Dl=Pl,Vl=Ml;function Fl(e){return Dl(function(t,o){var n=-1,r=o.length,a=r>1?o[r-1]:void 0,c=r>2?o[2]:void 0;for(a=e.length>3&&typeof a=="function"?(r--,a):void 0,c&&Vl(o[0],o[1],c)&&(a=r<3?void 0:a,r=1),t=Object(t);++n<r;){var l=o[n];l&&e(t,l,n,a)}return t})}var Gl=Fl,Wl=ll,Ul=Gl;Ul(function(e,t,o){Wl(e,t,o)});const ze=(e,t,o)=>Array.isArray(e)?e.map((n,r)=>{const a=[o,r].filter(I).join(".");return ze(t(r,n,a),t,a)}):typeof e=="object"&&e?Object.entries(e).reduce((n,[r,a])=>{const c=[o,r].filter(I).join(".");return n[r]=ze(t(r,a,c),t,c),n},{}):e,Kl=e=>{const t=document.getElementsByTagName("head")[0],o=document.createElement("link");Object.entries(e).forEach(([n,r])=>o.setAttribute(n,r)),t.appendChild(o)},yo=()=>{let e={};return{on:(c,l)=>{c in e?e[c].push(l):e[c]=[l]},has:c=>c in e,get:c=>e[c],emit:(c,...l)=>c in e?e[c].map(s=>s(...l)).filter(Boolean):[],reset:()=>e={}}},$o=e=>!e&&e==null,I=e=>!$o(e),le=(e,...t)=>t.reduce((o,n)=>(o[n]=e[n],o),{});function me(e,...t){const o={...e};return t.forEach(n=>{delete o[n]}),o}const Xl=(e,t,o)=>{if(!t)return;const r=(Array.isArray(t)?t:t.match(/([^[.\]])+/g)).reduce((a,c)=>a&&a[c],e);return r===void 0?o:r},qe=(e,t,o)=>{const n=Array.isArray(t)?t:t.match(/([^[.\]])+/g);return n.reduce((r,a,c)=>(r[a]===void 0&&(r[a]={}),c===n.length-1&&(r[a]=o),r[a]),e)},Jl=e=>{const t=e.slice(1);t.length===3&&(e=t.split("").map(n=>`${n}${n}`).join(""));const o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:void 0},Yl=(...e)=>e.map(t=>JSON.stringify(t)).every((t,o,n)=>t===n[0]),Zl=e=>"id"in e&&"root"in e,Ql=(e,t=1)=>e.replace(")",`, ${t})`).replace("rgb","rgba"),wo=["desktop","laptop","tablet","mobile"],ed={mobile:320,tablet:768,laptop:1024,desktop:1920},$={root:"_root_24bq9_1",icon:"_icon_24bq9_5",iconTarget:"_iconTarget_24bq9_17",body:"_body_24bq9_22",bodyOpen:"_bodyOpen_24bq9_30",simpleGift_in:"_simpleGift_in_24bq9_1",close:"_close_24bq9_43",arrow:"_arrow_24bq9_57",container:"_container_24bq9_68",inner:"_inner_24bq9_74",logo:"_logo_24bq9_81",text:"_text_24bq9_88",button:"_button_24bq9_103",buttonAnimated:"_buttonAnimated_24bq9_112",increase:"_increase_24bq9_1",legalGap:"_legalGap_24bq9_116",legalOpen:"_legalOpen_24bq9_120",legal:"_legal_24bq9_116",legalText:"_legalText_24bq9_148",legalButton:"_legalButton_24bq9_166",fadein:"_fadein_24bq9_1",pulse:"_pulse_24bq9_1",gradient:"_gradient_24bq9_1",wiggle:"_wiggle_24bq9_1"};var td=0;function i(e,t,o,n,r,a){var c,l,s={};for(l in t)l=="ref"?c=t[l]:s[l]=t[l];var d={type:e,props:s,key:o,ref:c,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--td,__source:r,__self:a};if(typeof e=="function"&&(c=e.defaultProps))for(l in c)s[l]===void 0&&(s[l]=c[l]);return _.options.vnode&&_.options.vnode(d),d}const xo=_.createContext(),U=({children:e,value:t})=>i(xo.Provider,{value:t,children:e}),K=e=>async({target:t,id:o,ref:n,state:r})=>{if(!("ResizeObserver"in window)){const a=await Promise.resolve().then(()=>r_);window.ResizeObserver=a.ResizeObserver}return _.render(i(U,{value:r,children:_.cloneElement(e,{ref:n,id:o})}),t)},j=()=>Ko(xo),od=(e={})=>typeof e=="object"&&I(e)&&wo.every(t=>t in e),nd=(e,t)=>e&&ze(e,(o,n)=>{if(od(n)){const r=n[t];return"parent"in r&&I(r.parent)?{...n[r.parent],...me(r,"parent")}:r}return n}),X=(e,t)=>nd(e,t),de=({id:e,targetRef:t,parentKey:o="device-container",breakpoints:n=ed})=>{const[r,a]=ve("desktop"),c=l=>{var f;const s=l.getBoundingClientRect().width||0,d=Object.entries({...n}).sort(([v,h],[y,x])=>h-x),u=((f=d.find(([v,h],y)=>{const[x,p]=d[y+1]||[];return s>=h&&s<p}))==null?void 0:f[0])||"desktop";a(u)};return bt(()=>{const l=t.current.closest(`[data-${o}='${e}']`)||document.body;l&&(new ResizeObserver(()=>c(l)).observe(l),c(l))},[]),r},He=(e,t)=>`${e}${t}`,rd=e=>e.startsWith("px_"),ad=e=>e.startsWith("percent_"),id=(e,t)=>{let o=e,n=t;return rd(o)&&(o=o.replace("px_",""),n=He(t,"px")),ad(o)&&(o=o.replace("percent_",""),n=He(t,"%")),{key:o,value:n}},sd=["borderWidth","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","minHeight","minWidth","maxWidth","maxHeight","fontSize","height","width","letterSpacing","fontSize","left","right","top","bottom","marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"],cd=(e,t)=>{const o=Object.keys(e);if((o.includes("innerHTML")||o.includes("innerText"))&&console.warn('Warning! InnerHTML and innerText is deprecated. Use "children" property.',t),typeof e!="object")return e;if("typography"in e&&"accentTypography"in e){const n=e.typography,r=e.accentTypography;e={...e,...n,"--font-family":r.fontFamily,"--accent-color":r.color,"px_--accent-size":r.fontSize}}return Object.entries(e).reduce((n,[r,a])=>{sd.includes(r)&&(a=He(a,"px"));const{key:c,value:l}=id(r,a);if(n[c]=l,c==="innerHTML"&&(n.innerHTML=I(l)?`${l}`:""),c==="innerText"&&(n.innerText=I(l)?`${l}`:""),c==="children"&&(n.children=typeof l=="string"?I(l)?`${l}`:"":l),(c==="innerHTML"||c==="innerText"||c==="children")&&(typeof l=="string"&&l.length===0||$o(l))&&(n.display="none"),c.includes("borderWidth")&&(n.borderStyle="solid"),c==="corner"&&(n.borderRadius=He(l,"px")),c==="backgroundFit"&&(n.backgroundSize=l),c==="backgroundImage"&&I(l)&&(n.backgroundImage=`url(${l})`,n.backgroundRepeat="no-repeat"),c==="backgroundColorOpacity"&&I(n.backgroundColorOpacity)&&I(n.backgroundColor)){const s=Jl(n.backgroundColor);s&&(n.backgroundColor=Ql(`rgb(${s.r}, ${s.g}, ${s.b})`,+n.backgroundColorOpacity/100))}return c==="isBold"&&(n.fontWeight=l?"bold":"initial"),c==="isItalic"&&(n.fontStyle=l?"italic":"initial"),c==="isThrough"&&(n.textDecoration=l?"line-through":"initial"),n},e)},ld=e=>typeof e=="object"&&!Array.isArray(e)&&"parent"in e,C=e=>I(e)?Object.entries(e).reduce((t,[o,n])=>(t[o]=ld(n)?cd({...e[o]},o):n,t),{}):e,ye=({children:e,...t})=>{var n;const o=(n=e==null?void 0:e.replace("script",""))==null?void 0:n.replace(/{{(.*?)}}/g,"<span>$1</span>");return i("div",{...t,dangerouslySetInnerHTML:{__html:o}})},Oo=()=>{const[e,t]=ve(!1);return[e,()=>t(o=>!o)]},$e=()=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",children:i("path",{d:"M17.659 4.929a1 1 0 1 1 1.414 1.414L13.416 12l5.657 5.657a1 1 0 0 1-1.415 1.414l-5.656-5.657-5.657 5.657a1 1 0 0 1-1.414-1.414L10.587 12 4.931 6.343A1 1 0 1 1 6.345 4.93l5.657 5.657 5.656-5.657Z",fill:"currentColor"})}),rt=()=>i("svg",{viewBox:"0 0 16 16",children:i("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.13 8H7v7.31H3.22a1.09 1.09 0 01-1.09-1.09zM9 15.34h3.81a1.09 1.09 0 001.09-1.09V8H9zm5.8-9.94v1.19a.48.48 0 01-.48.48H1.71a.48.48 0 01-.48-.48V5.4c0-.596.484-1.08 1.08-1.08H5a2.48 2.48 0 01-1.47-1.65 1.62 1.62 0 01.26-1.4 1.57 1.57 0 011-.58c.11-.01.22-.01.33 0a2.5 2.5 0 012 1A9 9 0 018 3.22a10.38 10.38 0 01.91-1.54 2.49 2.49 0 011.93-1h.36c.369.065.702.26.94.55.31.407.414.936.28 1.43a2.48 2.48 0 01-1.45 1.64h2.77a1.08 1.08 0 011.03 1.1zM8.66 4a9.81 9.81 0 001.9-.55 1.52 1.52 0 00.88-1 .68.68 0 00-.1-.59.6.6 0 00-.34-.22.58.58 0 00-.18 0 1.52 1.52 0 00-1.17.63A9.06 9.06 0 008.66 4zm-3.32-.58A9.62 9.62 0 007.25 4a8.59 8.59 0 00-1-1.72 1.51 1.51 0 00-1.18-.63h-.13a.66.66 0 00-.39.22.66.66 0 00-.09.57c.13.443.453.804.88.98z"})}),dd=e=>({fade:`${e.fade} 2s linear infinite`,pulse:`${e.pulse} .3s linear 0s infinite alternate forwards`,wiggle:`${e.wiggle} 2s linear infinite`,gradient:`${e.gradient} 3s ease infinite`}),ko=(e,t)=>{var u,f,v,h,y,x,p,w,m,k,B,M,F;const o=dd(t),n=C(e),r=(u=n==null?void 0:n.icon)==null?void 0:u.hasIcon,a={left:`${+(((f=e==null?void 0:e.container)==null?void 0:f.left)||0)*-1+8}px`,backgroundColor:(v=n==null?void 0:n.container)==null?void 0:v.backgroundColor,borderTopWidth:(h=n==null?void 0:n.container)==null?void 0:h.borderWidth,borderTopColor:(y=n==null?void 0:n.container)==null?void 0:y.borderColor,borderTopStyle:"solid",borderLeftWidth:(x=n==null?void 0:n.container)==null?void 0:x.borderWidth,borderLeftColor:(p=n==null?void 0:n.container)==null?void 0:p.borderColor,borderLeftStyle:"solid"},c={left:(w=n==null?void 0:n.container)==null?void 0:w.left},l=(((m=n==null?void 0:n.icon)==null?void 0:m.animations)||[]).map(G=>o[G]).join(", "),s=I((k=n==null?void 0:n.icon)==null?void 0:k.gradientColor)&&((B=n==null?void 0:n.icon)!=null&&B.animations.includes("gradient"))?{background:`linear-gradient(-90deg, ${(M=n.icon)==null?void 0:M.backgroundColor} 0%, ${(F=n==null?void 0:n.icon)==null?void 0:F.gradientColor} 100%) 0% 0% / 400% 400%`,backgroundSize:"400% 400%"}:n==null?void 0:n.icon,d={...(n==null?void 0:n.icon)||{},animation:l,...s};return{hasIcon:r,arrowRules:a,bodyRules:c,iconRules:d}},Me=e=>{const t=new Set([]);ze(e,(n,r)=>(n==="fontFamily"&&t.add(r),r));const o=yt(()=>Array.from(t.values()).map(n=>({rel:"stylesheet",href:`https://fonts.googleapis.com/css?family=${n}:300,400,500,700&display=swap`})),[t]);ne(()=>{o.forEach(n=>Kl(n))},[o])},we=["backgroundColor","backgroundColorOpacity","backgroundImage","backgroundFit"],_d=["borderWidth","borderColor","borderStyle"],To=["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"],ud=e=>console.log(`Noop YaMektika reach goal: ${e}`),fd=e=>console.log(`Noop AdFox reach goal: ${e}`),vd=({delay:e,onOpen:t,onAutoOpen:o})=>{const[n,r]=ve(!1),a=L(null),c=s=>{clearTimeout(a.current),a.current=null},l=()=>{c(a.current),r(s=>!s)};return ne(()=>(a.current=setTimeout(()=>{r(!0),o&&o()},e||1e3),()=>c(a.current)),[e]),ne(()=>{n&&!a.current&&t&&t()},[n]),{isOpen:n,toggle:l}},No=({ref:e,openDelay:t})=>{const o=L(yo()),n=s=>o.current.on("open",s),r=s=>o.current.on("click",s),a=s=>o.current.on("autoOpen",s),{isOpen:c,toggle:l}=vd({delay:t,onOpen:()=>o.current.emit("open"),onAutoOpen:()=>o.current.emit("autoOpen")});return mt(e,()=>({onOpen:n,onClick:r,onAutoOpen:a})),{isOpen:c,toggle:l,click:()=>o.current.emit("click")}},pd=pe(({id:e},t)=>{var w,m,k,B,M,F,G;const o=L(null),[n,r]=Oo(),a=j(),c=de({targetRef:o,id:e}),l=X(a,c),s=C(l),{hasIcon:d,iconRules:u,bodyRules:f,arrowRules:v}=ko(l,{fade:$.fadein,pulse:$.pulse,wiggle:$.wiggle,gradient:$.gradient}),{isOpen:h,toggle:y,click:x}=No({ref:t,openDelay:(w=l==null?void 0:l.container)==null?void 0:w.delay});Me(l);const p=n?le(s.container,..._d):{};return i("div",{className:A($.root,{[$.legalOpen]:n}),ref:o,children:[i("div",{className:$.icon,style:u,onClick:y,children:d&&i("div",{className:$.iconTarget,children:i(rt,{})})}),i("div",{className:A($.body,{[$.bodyOpen]:h}),style:f,children:[i("div",{className:$.arrow,style:v}),i("div",{className:$.close,style:s==null?void 0:s.close,onClick:y,children:i($e,{})}),i("div",{className:$.container,style:s==null?void 0:s.container,children:[i("a",{href:(m=s==null?void 0:s.root)==null?void 0:m.offer,target:"_blank",rel:"nofollow noopener noreferrer",onClick:x,children:[i("div",{className:$.inner,children:[i("div",{className:$.logo,style:s==null?void 0:s.logo}),i(ye,{className:$.text,style:s==null?void 0:s.text,children:(k=s==null?void 0:s.text)==null?void 0:k.children})]}),i("div",{className:A($.button,{[$.buttonAnimated]:s==null?void 0:s.button.isAnimated}),style:s==null?void 0:s.button,children:(B=s==null?void 0:s.button)==null?void 0:B.children})]}),i("div",{className:$.legalGap}),i("div",{className:$.legal,style:{...s==null?void 0:s.legal,...p},children:i("span",{className:$.legalText,children:i("span",{children:[i("span",{children:(M=s==null?void 0:s.legal)==null?void 0:M.children}),i("span",{className:$.legalButton,onClick:r,children:n?(F=s==null?void 0:s.legal)==null?void 0:F.buttonOpenText:(G=s==null?void 0:s.legal)==null?void 0:G.buttonHideText})]})})})]})]})]})}),hd=K(i(pd,{})),O={root:"_root_1hrqs_1",icon:"_icon_1hrqs_5",iconTarget:"_iconTarget_1hrqs_17",body:"_body_1hrqs_22",desktop:"_desktop_1hrqs_29",tablet:"_tablet_1hrqs_29",laptop:"_laptop_1hrqs_29",bodyOpen:"_bodyOpen_1hrqs_33",complexGift_in:"_complexGift_in_1hrqs_1",arrow:"_arrow_1hrqs_46",container:"_container_1hrqs_56",promotion:"_promotion_1hrqs_61",close:"_close_1hrqs_69",head:"_head_1hrqs_83",headIcon:"_headIcon_1hrqs_90",headTitle:"_headTitle_1hrqs_96",inner:"_inner_1hrqs_103",fadein:"_fadein_1hrqs_1",pulse:"_pulse_1hrqs_1",gradient:"_gradient_1hrqs_1",wiggle:"_wiggle_1hrqs_1"},z={root:"_root_tv8qf_1",body:"_body_tv8qf_30",bodyInner:"_bodyInner_tv8qf_38",line:"_line_tv8qf_43",text:"_text_tv8qf_53",button:"_button_tv8qf_69",logo:"_logo_tv8qf_81",variant2:"_variant2_tv8qf_87",buttonText:"_buttonText_tv8qf_91",legal:"_legal_tv8qf_108"},at=(e,t="root")=>{const o=L(),n=(e==null?void 0:e.yaReachGoal)||ud,r=(e==null?void 0:e.adfoxReachGoal)||fd,a=I(e)?le(e[t],"yaShow","yaClick","adfoxShow","adfoxClick"):{};return ne(()=>{Yl(o.current,a)||(a.yaShow&&n(a.yaShow),a.adfoxShow&&r(a.adfoxShow)),o.current=a},[a]),()=>{a.yaClick&&n(a.yaClick),a.adfoxClick&&r(a.adfoxClick)}},gd=()=>{var n,r,a,c,l;const e=j(),t=C(e),o=at(e);return i("a",{href:(n=t.root)==null?void 0:n.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:A(z.root,{[z.variant2]:((r=t.root)==null?void 0:r.variant)==="variant2"}),style:t.root,onClick:o,children:[i("div",{className:z.body,children:[i("div",{className:z.line,style:t.line}),i("div",{className:z.bodyInner,children:[i("div",{className:z.logo,style:t.logo}),i("div",{className:z.text,style:t.text,children:i(ye,{children:(a=t.text)==null?void 0:a.children})})]}),i("div",{className:z.button,style:t.button,children:[i("div",{className:z.logo,style:t.logo}),i("div",{className:z.buttonText,children:(c=t.button)==null?void 0:c.children})]})]}),i("div",{className:z.legal,style:t.legal,children:(l=t.legal)==null?void 0:l.children})]})},bd=pe(({id:e},t)=>{var x,p,w,m;const o=L(null),n=j(),r=de({targetRef:o,id:e}),a=X(n,r),c=C(a),{isOpen:l,click:s,toggle:d}=No({ref:t,openDelay:(x=a==null?void 0:a.container)==null?void 0:x.delay});Me(a);const{hasIcon:u,iconRules:f,bodyRules:v,arrowRules:h}=ko(a,{fade:O.fadein,pulse:O.pulse,wiggle:O.wiggle,gradient:O.gradient}),y=(p=c==null?void 0:c.title)==null?void 0:p.hasIcon;return i("div",{ref:o,className:A(O.root,{[O.desktop]:r==="desktop",[O.laptop]:r==="laptop",[O.tablet]:r==="tablet"}),children:[i("div",{className:O.icon,style:f,onClick:d,children:u&&i("div",{className:O.iconTarget,children:i(rt,{})})}),i("div",{className:A(O.body,{[O.bodyOpen]:l}),style:v,children:[i("div",{className:O.arrow,style:h}),i("div",{className:O.container,style:c.container,children:[i("div",{className:O.close,style:c.close,onClick:d,children:i($e,{})}),i("div",{className:O.promotion,style:c.promotion,children:(w=c.promotion)==null?void 0:w.children}),i("div",{className:O.head,children:[y&&i("div",{className:O.headIcon,style:le(c.title,"color"),children:i(rt,{})}),i("div",{className:O.headTitle,style:c.title,children:(m=c.title)==null?void 0:m.children})]}),i("div",{className:O.inner,onClick:s,children:(c.children||[]).map(k=>i(U,{value:k,children:i(gd,{})}))})]})]})]})}),md=K(i(bd,{})),P={root:"_root_15w5v_1",content:"_content_15w5v_11",laptop:"_laptop_15w5v_20",tablet:"_tablet_15w5v_24",desktop:"_desktop_15w5v_28",wrapper:"_wrapper_15w5v_32",overlay:"_overlay_15w5v_36",close:"_close_15w5v_42",body:"_body_15w5v_50",logo:"_logo_15w5v_62",text:"_text_15w5v_68",button:"_button_15w5v_72",legal:"_legal_15w5v_87"},J=e=>e&&{left:"flex-start",center:"center",right:"flex-end"}[e],yd={root:"_root_2ic16_1"},$d=()=>{var o;const e=j(),t=C(e);return i("div",{className:yd.root,style:t.root,children:i(ye,{children:(o=t==null?void 0:t.root)==null?void 0:o.children})})},it=e=>{const t=L(yo()),[o,n]=ve(!1),r=s=>t.current.on("visible",s),a=s=>t.current.on("click",s),c=()=>n(!0),l=()=>n(!1);return ne(()=>{t.current.emit("visible",o)},[o]),mt(e,()=>({onVisible:r,onClick:a,show:c,hide:l})),{isOpen:o,show:c,hide:l,click:()=>t.current.emit("click")}},wd=pe(({id:e},t)=>{var h,y,x,p,w,m,k;const o=L(null),{isOpen:n,hide:r,click:a}=it(t),c=de({targetRef:o,id:e}),l=j(),s=X(l,c);qe(s,"button.percent_width",(h=s==null?void 0:s.button)==null?void 0:h.width),qe(s,"legal.percent_width",(y=s==null?void 0:s.legal)==null?void 0:y.width);const d=C(s),u={alignItems:J((x=d.root)==null?void 0:x.align)},f={...d==null?void 0:d.button,justifyContent:J((p=d.root)==null?void 0:p.textAlign)},v={...d==null?void 0:d.legal,justifyContent:J((w=d.root)==null?void 0:w.textAlign)};return i("div",{className:P.root,ref:o,style:{display:n?"flex":"none"},children:[i("div",{className:P.overlay,style:d.overlay,onClick:r}),i("div",{className:P.wrapper,children:[i("div",{className:P.close,style:{color:(m=d.close)==null?void 0:m.backgroundColor},onClick:r,children:i($e,{})}),i("a",{href:(k=d.root)==null?void 0:k.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:A(P.content,{[P.desktop]:c==="desktop",[P.tablet]:c==="tablet",[P.laptop]:c==="laptop"}),style:d.root,onClick:a,children:i("div",{className:P.body,style:u,children:[i("div",{className:P.logo,style:d.logo}),i("div",{className:P.text,children:((d==null?void 0:d.children)||[]).map(B=>i(U,{value:B,children:i($d,{})}))}),i("div",{className:P.button,style:f,children:f==null?void 0:f.children}),i("div",{className:P.legal,style:v,children:v==null?void 0:v.children})]})})]})]})}),xd=K(i(wd,{})),Y={root:"_root_1ifs0_1",content:"_content_1ifs0_5",desktop:"_desktop_1ifs0_18",overlay:"_overlay_1ifs0_23",close:"_close_1ifs0_29",title:"_title_1ifs0_36",wrapper:"_wrapper_1ifs0_51"},D={root:"_root_1ska4_1",desktop:"_desktop_1ska4_10",header:"_header_1ska4_15",logo:"_logo_1ska4_26",container:"_container_1ska4_33",body:"_body_1ska4_44",text:"_text_1ska4_61",button:"_button_1ska4_84",legal:"_legal_1ska4_102"},Od=({onClick:e})=>{var r,a,c,l;const t=j(),o=C(t),n=(t==null?void 0:t.device)||"desktop";return i("a",{href:(r=o.root)==null?void 0:r.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:A(D.root,{[D.desktop]:n==="desktop"}),style:me(o.root,...To),onClick:e,children:[i("div",{className:D.header,style:o.header,children:i("div",{className:D.logo,style:o.logo})}),i("div",{className:D.container,style:le(o.root,...To),children:[i("div",{className:D.body,children:[i("div",{className:D.logo}),i(ye,{className:D.text,style:o.text,children:(a=o.text)==null?void 0:a.children})]}),i("div",{children:[i("div",{className:D.button,style:o.button,children:(c=o.button)==null?void 0:c.children}),i("div",{className:D.legal,style:o.legal,children:(l=o.legal)==null?void 0:l.children})]})]})]})},kd=pe(({id:e},t)=>{var u,f;const o=L(null),{isOpen:n,hide:r,click:a}=it(t),c=de({targetRef:o,id:e}),l=j(),s=X(l,c),d=C(s);return Me(s),i("div",{className:Y.root,style:{display:n?"flex":"none"},children:[i("div",{className:Y.overlay,style:d.overlay,onClick:r}),i("div",{ref:o,className:A(Y.content,{[Y.desktop]:c==="desktop"}),style:d.root,children:[i("div",{className:Y.close,style:{color:(u=d.close)==null?void 0:u.backgroundColor},onClick:r,children:i($e,{})}),i("div",{className:Y.title,style:d.title,children:(f=d.title)==null?void 0:f.children}),i("div",{className:Y.wrapper,children:(d.children||[]).map(v=>i(U,{value:{...v,device:c},children:i(Od,{onClick:a})}))})]})]})}),Td=K(i(kd,{})),S={root:"_root_14xbh_1",content:"_content_14xbh_11",close:"_close_14xbh_19",overlay:"_overlay_14xbh_27",body:"_body_14xbh_33",desktop:"_desktop_14xbh_43",laptop:"_laptop_14xbh_48",tablet:"_tablet_14xbh_48",head:"_head_14xbh_53",title:"_title_14xbh_63",logo:"_logo_14xbh_76",wrapper:"_wrapper_14xbh_82",text:"_text_14xbh_89",button:"_button_14xbh_104",buttonHead:"_buttonHead_14xbh_119",buttonTarget:"_buttonTarget_14xbh_138",legal:"_legal_14xbh_154"},T={root:"_root_14sq5_1",left:"_left_14sq5_8",desktop:"_desktop_14sq5_15",teams:"_teams_14sq5_19",logo:"_logo_14sq5_25",league:"_league_14sq5_32",name:"_name_14sq5_37",right:"_right_14sq5_43",odd:"_odd_14sq5_54",oddLabel:"_oddLabel_14sq5_67",oddValue:"_oddValue_14sq5_76",team:"_team_14sq5_19",teamLogo:"_teamLogo_14sq5_100",teamName:"_teamName_14sq5_106"},Nd=()=>{var n,r,a,c,l,s,d;const e=j(),t=C(e),o=(e==null?void 0:e.device)||"desktop";return i("div",{className:A(T.root,{[T.desktop]:o==="desktop"}),children:[i("div",{className:T.left,children:[i("div",{className:T.teams,children:[i("div",{className:T.logo}),i("div",{className:T.logo})]}),i("div",{className:T.body,children:[i("div",{className:T.league,style:t.league,children:(n=t.league)==null?void 0:n.children}),i("div",{className:T.name,style:t.teams,children:[(r=t.teams)==null?void 0:r.teamA," — ",(a=t.teams)==null?void 0:a.teamB]})]})]}),i("div",{className:T.right,children:[i("div",{className:T.team,children:[i("div",{className:T.teamLogo}),i("div",{className:T.teamName,style:t.teams,children:(c=t.teams)==null?void 0:c.teamA})]}),i("div",{className:T.odd,children:[i("div",{className:T.oddLabel,style:t.oddLabel,children:(l=t.oddLabel)==null?void 0:l.children}),i("div",{className:T.oddValue,style:t.oddValue,children:(s=t.oddValue)==null?void 0:s.children})]}),i("div",{className:T.team,children:[i("div",{className:T.teamLogo}),i("div",{className:T.teamName,style:t.teams,children:(d=t.teams)==null?void 0:d.teamB})]})]})]})},Cd=pe(({id:e},t)=>{var x,p,w,m,k,B,M,F,G,ee,te,We,Ue,ke;const o=L(null),{isOpen:n,hide:r,click:a}=it(t),c=de({targetRef:o,id:e}),l=j(),s=X(l,c);qe(s,"buttonWrapper.percent_width",(x=s==null?void 0:s.buttonWrapper)==null?void 0:x.width),qe(s,"legal.percent_width",(p=s==null?void 0:s.legal)==null?void 0:p.width);const d=C(s);Me(s);const u={...d.root,alignItems:J((w=d.root)==null?void 0:w.align)},f={...d.content,alignItems:J((m=d.root)==null?void 0:m.align)},v={...d.text,textAlign:(k=d.root)==null?void 0:k.align},h={...d==null?void 0:d.button,justifyContent:J((B=d.root)==null?void 0:B.textAlign)},y={...d==null?void 0:d.legal,justifyContent:J((M=d.root)==null?void 0:M.textAlign)};return i("div",{className:S.root,ref:o,style:{display:n?"flex":"none"},children:[i("div",{className:S.overlay,style:d.overlay,onClick:r}),i("div",{className:A(S.content,{[S.desktop]:c==="desktop",[S.laptop]:c==="laptop",[S.tablet]:c==="tablet"}),children:[i("div",{className:S.close,style:{color:(F=d.close)==null?void 0:F.backgroundColor},onClick:r,children:i($e,{})}),i("a",{ref:o,href:(G=d.root)==null?void 0:G.offer,target:"_blank",rel:"nofollow noopener noreferrer",onClick:a,children:i("div",{className:S.body,style:u,children:[i("div",{className:S.head,children:[i("div",{className:S.title,style:d.title,children:(ee=d.title)==null?void 0:ee.children}),i("div",{className:S.logo,style:d.logo})]}),i("div",{className:S.wrapper,style:f,children:(d.children||[]).map(a_=>i(U,{value:{...a_,device:c},children:i(Nd,{})}))}),i(ye,{className:S.text,style:v,children:(te=d.text)==null?void 0:te.children}),i("div",{className:S.button,style:d.buttonWrapper,children:[i("div",{className:S.buttonHead,style:d.buttonHead,children:(We=d.buttonHead)==null?void 0:We.children}),i("div",{className:S.buttonTarget,style:h,children:(Ue=d.button)==null?void 0:Ue.children})]}),i("div",{className:S.legal,style:y,children:(ke=d.legal)==null?void 0:ke.children})]})})]})]})}),Sd=K(i(Cd,{})),q={root:"_root_1slvw_1",background:"_background_1slvw_20",body:"_body_1slvw_29",bookmaker:"_bookmaker_1slvw_39",button:"_button_1slvw_46",rowFirst:"_rowFirst_1slvw_60",rowSecond:"_rowSecond_1slvw_66",legal:"_legal_1slvw_72",legalText:"_legalText_1slvw_88",legalOpen:"_legalOpen_1slvw_98",legalButton:"_legalButton_1slvw_103"},Ad=()=>{var a,c,l,s,d,u,f;const e=j(),t=C(e),[o,n]=Oo(),r=at(e);return i("div",{className:q.root,style:t.root,children:[i("div",{className:q.background,style:t.background}),i("a",{href:(a=t.root)==null?void 0:a.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:q.body,onClick:r,children:[i("div",{children:[i("div",{className:q.rowFirst,style:t.rowFirst,children:(c=t.rowFirst)==null?void 0:c.children}),i("div",{className:q.rowSecond,style:t.rowSecond,children:(l=t.rowSecond)==null?void 0:l.children}),i("div",{className:q.bookmaker,children:"winline"})]}),i("div",{className:q.button,style:t.button,children:(s=t.button)==null?void 0:s.children})]}),i("div",{className:A(q.legal,{[q.legalOpen]:o}),style:t.legalInfo,children:i("span",{className:q.legalText,children:[i("span",{children:(d=t.legalInfo)==null?void 0:d.children}),i("span",{className:q.legalButton,style:t.legalInfoButton,onClick:n,children:o?(u=t.legalInfoButton)==null?void 0:u.openText:(f=t.legalInfoButton)==null?void 0:f.closeText})]})})]})},Rd=K(i(()=>{const e=L(null),t=j(),n=X(t,"desktop"),r=C(n);return i("div",{ref:e,children:((r==null?void 0:r.children)||[]).map(a=>i(U,{value:a,children:i(Ad,{})}))})},{})),N={root:"_root_a3kem_1",desktop:"_desktop_a3kem_13",laptop:"_laptop_a3kem_14",promotion:"_promotion_a3kem_18",background:"_background_a3kem_34",content:"_content_a3kem_43",variant2:"_variant2_a3kem_56",logo:"_logo_a3kem_60",left:"_left_a3kem_72",center:"_center_a3kem_86",slide:"_slide_a3kem_92",slide_animated_default:"_slide_animated_default_a3kem_106","fade-in-out":"_fade-in-out_a3kem_1","slide_animated_bottom-top":"_slide_animated_bottom-top_a3kem_109","fade-in-bottom-out-top":"_fade-in-bottom-out-top_a3kem_1","slide_animated_top-bottom":"_slide_animated_top-bottom_a3kem_112",right:"_right_a3kem_116",buttonWrapper:"_buttonWrapper_a3kem_131",button:"_button_a3kem_131",button_animated:"_button_animated_a3kem_162",increase:"_increase_a3kem_1","fade-in-top-out-bottom":"_fade-in-top-out-bottom_a3kem_1"},Co={root:"_root_1cgtj_1",desktop:"_desktop_1cgtj_19"},jd=()=>{var o;const e=j(),t=C(e);return i("div",{className:A(Co.root,{[Co.desktop]:(e==null?void 0:e.device)==="desktop"}),style:me(t.root,...we),children:(o=t.root)==null?void 0:o.children})},H={root:"_root_vjs41_1",odd:"_odd_vjs41_7",oddReverse:"_oddReverse_vjs41_14",oddLabel:"_oddLabel_vjs41_18",oddLogo:"_oddLogo_vjs41_30",coef:"_coef_vjs41_36",coefHead:"_coefHead_vjs41_42",coefValue:"_coefValue_vjs41_47"},Ed=()=>{var n,r,a;const e=j(),t=C(e),o=me(t.root,...we);return i("div",{className:H.root,children:[i("div",{className:H.odd,children:[i("div",{className:H.oddLogo,style:o}),i("div",{className:H.oddLabel,style:o,children:(n=t.root)==null?void 0:n.valueOne})]}),i("div",{className:H.coef,children:[i("div",{className:H.coefHead,style:t.coef,children:"X"}),i("div",{className:H.coefValue,style:o,children:(r=t.root)==null?void 0:r.valueX})]}),i("div",{className:A(H.odd,H.oddReverse),children:[i("div",{className:H.oddLogo,style:o}),i("div",{className:H.oddLabel,style:o,children:(a=t.root)==null?void 0:a.valueTwo})]})]})},E={root:"_root_1va5h_1",title:"_title_1va5h_8",titleLabel:"_titleLabel_1va5h_12",tablet:"_tablet_1va5h_16",desktop:"_desktop_1va5h_19",laptop:"_laptop_1va5h_19",titleValue:"_titleValue_1va5h_23",team:"_team_1va5h_34",teamLogo:"_teamLogo_1va5h_44",teamName:"_teamName_1va5h_72",teamValue:"_teamValue_1va5h_84"},Id=()=>{const e=j(),t=C(e);return i("div",{className:A(E.root,{[E.desktop]:(e==null?void 0:e.device)==="desktop",[E.laptop]:(e==null?void 0:e.device)==="laptop",[E.tablet]:(e==null?void 0:e.device)==="tablet"}),style:me(t.root,...we),children:[i("div",{className:E.title,children:[i("div",{className:E.titleLabel,style:t.titleLabel,children:t.titleLabel.children}),i("div",{className:E.titleValue,style:t.titleValue,children:t.titleValue.children})]}),i("div",{children:[i("div",{className:E.team,children:[i("div",{className:E.teamLogo,style:t.logo}),i("div",{className:E.teamName,style:t.teamName,children:t.team1Name.children}),i("div",{className:E.teamValue,style:t.value,children:t.value1.children})]}),i("div",{className:E.team,children:[i("div",{className:E.teamLogo,style:t.logo}),i("div",{className:E.teamName,style:t.teamName,children:t.team2Name.children}),i("div",{className:E.teamValue,style:t.value,children:t.value2.children})]})]})]})},Pd=(e=[])=>{var a;const t=e.length,[o,n]=ve(0),r=(a=e[o||0])==null?void 0:a.animationDuration;return ne(()=>{const l=setTimeout(()=>{n(s=>s+1<t?s+1:0)},r);return()=>clearTimeout(l)},[n,t,r,o]),o},Bd=3700,Ld=K(i(()=>{var f,v,h,y,x;const e=L(null),t=j(),o=de({targetRef:e}),n=X(t,o),r=C(n),a=at(n),c=p=>({text:i(jd,{}),matches:i(Ed,{}),matchesOneTwo:i(Id,{})})[p],l=(r.children||[]).filter(Boolean).map(p=>{var w,m;return{...p,animationName:(w=p==null?void 0:p.root)==null?void 0:w.animationName,animationDuration:((m=p==null?void 0:p.root)==null?void 0:m.animationDuration)||Bd}}),s=Pd(l),d=C(l[s]||{}),u=(f=d==null?void 0:d.root)!=null&&f.hasCustomBackground?le((d==null?void 0:d.root)||{},...we):le(r.background,...we);return i("a",{ref:e,href:(v=r.root)==null?void 0:v.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:A(N.root,{[N.desktop]:o==="desktop",[N.laptop]:o==="laptop",[N.tablet]:o==="tablet",[N.variant2]:((h=r.root)==null?void 0:h.variant)==="variant2"}),style:r.root,onClick:a,children:[i("div",{className:N.background,style:u}),i("div",{className:N.promotion,style:r.promotion,children:(y=r.promotion)==null?void 0:y.children}),i("div",{className:N.content,children:[i("div",{className:N.left,children:i("div",{className:N.logo,style:r.logo})}),i("div",{className:N.center,children:(r.children||[]).map((p,w)=>{var m,k;return i("div",{className:N.slide,style:{animationName:s===w?N[((m=p.root)==null?void 0:m.animationName)||"fade-in-out"]:"none",animationDuration:`${(k=p.root)==null?void 0:k.animationDuration}ms`},children:i(U,{value:{...p,device:o},children:c(p.name)})})})}),i("div",{className:N.right,children:[i("div",{className:N.logo,style:r.logo}),i("div",{className:N.buttonWrapper,children:i("div",{className:N.button,style:r.button,children:[i("div",{className:N.logo,style:r.logo}),(x=r.button)==null?void 0:x.children]})})]})]})]})},{})),zd=(e,t,o,n,r=wo)=>{const a={...e};return r.forEach(c=>{a[t]={...a[t],[c]:{...a[t][c],[o]:typeof n=="function"?n(Xl(a,`${t}.${c}.${o}`)):n}}}),a};var Z=[],qd=function(){return Z.some(function(e){return e.activeTargets.length>0})},Hd=function(){return Z.some(function(e){return e.skippedTargets.length>0})},So="ResizeObserver loop completed with undelivered notifications.",Md=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:So}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=So),window.dispatchEvent(e)},xe;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(xe||(xe={}));var Q=function(e){return Object.freeze(e)},Ao=function(){function e(t,o){this.inlineSize=t,this.blockSize=o,Q(this)}return e}(),Ro=function(){function e(t,o,n,r){return this.x=t,this.y=o,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Q(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,n=t.y,r=t.top,a=t.right,c=t.bottom,l=t.left,s=t.width,d=t.height;return{x:o,y:n,top:r,right:a,bottom:c,left:l,width:s,height:d}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),st=function(e){return e instanceof SVGElement&&"getBBox"in e},jo=function(e){if(st(e)){var t=e.getBBox(),o=t.width,n=t.height;return!o&&!n}var r=e,a=r.offsetWidth,c=r.offsetHeight;return!(a||c||e.getClientRects().length)},Eo=function(e){var t;if(e instanceof Element)return!0;var o=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},Dd=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Oe=typeof window<"u"?window:{},De=new WeakMap,Io=/auto|scroll/,Vd=/^tb|vertical/,Fd=/msie|trident/i.test(Oe.navigator&&Oe.navigator.userAgent),V=function(e){return parseFloat(e||"0")},_e=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new Ao((o?t:e)||0,(o?e:t)||0)},Po=Q({devicePixelContentBoxSize:_e(),borderBoxSize:_e(),contentBoxSize:_e(),contentRect:new Ro(0,0,0,0)}),Bo=function(e,t){if(t===void 0&&(t=!1),De.has(e)&&!t)return De.get(e);if(jo(e))return De.set(e,Po),Po;var o=getComputedStyle(e),n=st(e)&&e.ownerSVGElement&&e.getBBox(),r=!Fd&&o.boxSizing==="border-box",a=Vd.test(o.writingMode||""),c=!n&&Io.test(o.overflowY||""),l=!n&&Io.test(o.overflowX||""),s=n?0:V(o.paddingTop),d=n?0:V(o.paddingRight),u=n?0:V(o.paddingBottom),f=n?0:V(o.paddingLeft),v=n?0:V(o.borderTopWidth),h=n?0:V(o.borderRightWidth),y=n?0:V(o.borderBottomWidth),x=n?0:V(o.borderLeftWidth),p=f+d,w=s+u,m=x+h,k=v+y,B=l?e.offsetHeight-k-e.clientHeight:0,M=c?e.offsetWidth-m-e.clientWidth:0,F=r?p+m:0,G=r?w+k:0,ee=n?n.width:V(o.width)-F-M,te=n?n.height:V(o.height)-G-B,We=ee+p+M+m,Ue=te+w+B+k,ke=Q({devicePixelContentBoxSize:_e(Math.round(ee*devicePixelRatio),Math.round(te*devicePixelRatio),a),borderBoxSize:_e(We,Ue,a),contentBoxSize:_e(ee,te,a),contentRect:new Ro(f,s,ee,te)});return De.set(e,ke),ke},Lo=function(e,t,o){var n=Bo(e,o),r=n.borderBoxSize,a=n.contentBoxSize,c=n.devicePixelContentBoxSize;switch(t){case xe.DEVICE_PIXEL_CONTENT_BOX:return c;case xe.BORDER_BOX:return r;default:return a}},zo=function(){function e(t){var o=Bo(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=Q([o.borderBoxSize]),this.contentBoxSize=Q([o.contentBoxSize]),this.devicePixelContentBoxSize=Q([o.devicePixelContentBoxSize])}return e}(),qo=function(e){if(jo(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},Gd=function(){var e=1/0,t=[];Z.forEach(function(c){if(c.activeTargets.length!==0){var l=[];c.activeTargets.forEach(function(d){var u=new zo(d.target),f=qo(d.target);l.push(u),d.lastReportedSize=Lo(d.target,d.observedBox),f<e&&(e=f)}),t.push(function(){c.callback.call(c.observer,l,c.observer)}),c.activeTargets.splice(0,c.activeTargets.length)}});for(var o=0,n=t;o<n.length;o++){var r=n[o];r()}return e},Ho=function(e){Z.forEach(function(o){o.activeTargets.splice(0,o.activeTargets.length),o.skippedTargets.splice(0,o.skippedTargets.length),o.observationTargets.forEach(function(r){r.isActive()&&(qo(r.target)>e?o.activeTargets.push(r):o.skippedTargets.push(r))})})},Wd=function(){var e=0;for(Ho(e);qd();)e=Gd(),Ho(e);return Hd()&&Md(),e>0},ct,Mo=[],Ud=function(){return Mo.splice(0).forEach(function(e){return e()})},Kd=function(e){if(!ct){var t=0,o=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return Ud()}).observe(o,n),ct=function(){o.textContent="".concat(t?t--:t++)}}Mo.push(e),ct()},Xd=function(e){Kd(function(){requestAnimationFrame(e)})},Ve=0,Jd=function(){return!!Ve},Yd=250,Zd={attributes:!0,characterData:!0,childList:!0,subtree:!0},Do=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Vo=function(e){return e===void 0&&(e=0),Date.now()+e},lt=!1,Qd=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var o=this;if(t===void 0&&(t=Yd),!lt){lt=!0;var n=Vo(t);Xd(function(){var r=!1;try{r=Wd()}finally{if(lt=!1,t=n-Vo(),!Jd())return;r?o.run(1e3):t>0?o.run(t):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,o=function(){return t.observer&&t.observer.observe(document.body,Zd)};document.body?o():Oe.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Do.forEach(function(o){return Oe.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Do.forEach(function(o){return Oe.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e}(),dt=new Qd,Fo=function(e){!Ve&&e>0&&dt.start(),Ve+=e,!Ve&&dt.stop()},e_=function(e){return!st(e)&&!Dd(e)&&getComputedStyle(e).display==="inline"},t_=function(){function e(t,o){this.target=t,this.observedBox=o||xe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Lo(this.target,this.observedBox,!0);return e_(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),o_=function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e}(),Fe=new WeakMap,Go=function(e,t){for(var o=0;o<e.length;o+=1)if(e[o].target===t)return o;return-1},Ge=function(){function e(){}return e.connect=function(t,o){var n=new o_(t,o);Fe.set(t,n)},e.observe=function(t,o,n){var r=Fe.get(t),a=r.observationTargets.length===0;Go(r.observationTargets,o)<0&&(a&&Z.push(r),r.observationTargets.push(new t_(o,n&&n.box)),Fo(1),dt.schedule())},e.unobserve=function(t,o){var n=Fe.get(t),r=Go(n.observationTargets,o),a=n.observationTargets.length===1;r>=0&&(a&&Z.splice(Z.indexOf(n),1),n.observationTargets.splice(r,1),Fo(-1))},e.disconnect=function(t){var o=this,n=Fe.get(t);n.observationTargets.slice().forEach(function(r){return o.unobserve(t,r.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),n_=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ge.connect(this,t)}return e.prototype.observe=function(t,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Eo(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ge.observe(this,t,o)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Eo(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ge.unobserve(this,t)},e.prototype.disconnect=function(){Ge.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const r_=Object.freeze(Object.defineProperty({__proto__:null,ResizeObserver:n_,ResizeObserverEntry:zo,ResizeObserverSize:Ao},Symbol.toStringTag,{value:"Module"}));R.BonusCard=Rd,R.ComplexGift=md,R.ComplexPopup=Td,R.ExpressPopup=Sd,R.SimpleGift=hd,R.SimplePopup=xd,R.WideCard=Ld,R.isValidTemplate=Zl,R.modifyState=zd,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|
5
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function o(){for(var n=[],r=0;r<arguments.length;r++){var a=arguments[r];if(a){var c=typeof a;if(c==="string"||c==="number")n.push(a);else if(Array.isArray(a)){if(a.length){var l=o.apply(null,a);l&&n.push(l)}}else if(c==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){n.push(a.toString());continue}for(var s in a)t.call(a,s)&&a[s]&&n.push(s)}}}return n.join(" ")}e.exports?(o.default=o,e.exports=o):window.classNames=o})()})(Wo);const R=Ke;var oe,b,Xe,_t,ue=0,ut=[],Ce=[],ft=_.options.__b,vt=_.options.__r,pt=_.options.diffed,ht=_.options.__c,gt=_.options.unmount;function fe(e,t){_.options.__h&&_.options.__h(b,e,ue||t),ue=0;var o=b.__H||(b.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({__V:Ce}),o.__[e]}function ve(e){return ue=1,Uo(wt,e)}function Uo(e,t,o){var n=fe(oe++,2);if(n.t=e,!n.__c&&(n.__=[o?o(t):wt(void 0,t),function(l){var s=n.__N?n.__N[0]:n.__[0],d=n.t(s,l);s!==d&&(n.__N=[d,n.__[1]],n.__c.setState({}))}],n.__c=b,!b.u)){var r=function(l,s,d){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(v){return v.__c});if(u.every(function(v){return!v.__N}))return!a||a.call(this,l,s,d);var f=!1;return u.forEach(function(v){if(v.__N){var h=v.__[0];v.__=v.__N,v.__N=void 0,h!==v.__[0]&&(f=!0)}}),!(!f&&n.__c.props===l)&&(!a||a.call(this,l,s,d))};b.u=!0;var a=b.shouldComponentUpdate,c=b.componentWillUpdate;b.componentWillUpdate=function(l,s,d){if(this.__e){var u=a;a=void 0,r(l,s,d),a=u}c&&c.call(this,l,s,d)},b.shouldComponentUpdate=r}return n.__N||n.__}function ne(e,t){var o=fe(oe++,3);!_.options.__s&&Ye(o.__H,t)&&(o.__=e,o.i=t,b.__H.__h.push(o))}function bt(e,t){var o=fe(oe++,4);!_.options.__s&&Ye(o.__H,t)&&(o.__=e,o.i=t,b.__h.push(o))}function L(e){return ue=5,yt(function(){return{current:e}},[])}function mt(e,t,o){ue=6,bt(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},o==null?o:o.concat(e))}function yt(e,t){var o=fe(oe++,7);return Ye(o.__H,t)?(o.__V=e(),o.i=t,o.__h=e,o.__V):o.__}function Ko(e){var t=b.context[e.__c],o=fe(oe++,9);return o.c=e,t?(o.__==null&&(o.__=!0,t.sub(b)),t.props.value):e.__}function Xo(){for(var e;e=ut.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Se),e.__H.__h.forEach(Je),e.__H.__h=[]}catch(t){e.__H.__h=[],_.options.__e(t,e.__v)}}_.options.__b=function(e){b=null,ft&&ft(e)},_.options.__r=function(e){vt&&vt(e),oe=0;var t=(b=e.__c).__H;t&&(Xe===b?(t.__h=[],b.__h=[],t.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=Ce,o.__N=o.i=void 0})):(t.__h.forEach(Se),t.__h.forEach(Je),t.__h=[])),Xe=b},_.options.diffed=function(e){pt&&pt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ut.push(t)!==1&&_t===_.options.requestAnimationFrame||((_t=_.options.requestAnimationFrame)||Jo)(Xo)),t.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==Ce&&(o.__=o.__V),o.i=void 0,o.__V=Ce})),Xe=b=null},_.options.__c=function(e,t){t.some(function(o){try{o.__h.forEach(Se),o.__h=o.__h.filter(function(n){return!n.__||Je(n)})}catch(n){t.some(function(r){r.__h&&(r.__h=[])}),t=[],_.options.__e(n,o.__v)}}),ht&&ht(e,t)},_.options.unmount=function(e){gt&>(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{Se(n)}catch(r){t=r}}),o.__H=void 0,t&&_.options.__e(t,o.__v))};var $t=typeof requestAnimationFrame=="function";function Jo(e){var t,o=function(){clearTimeout(n),$t&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(o,100);$t&&(t=requestAnimationFrame(o))}function Se(e){var t=b,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),b=t}function Je(e){var t=b;e.__c=e.__(),b=t}function Ye(e,t){return!e||e.length!==t.length||t.some(function(o,n){return o!==e[n]})}function wt(e,t){return typeof t=="function"?t(e):t}function xt(e,t){for(var o in t)e[o]=t[o];return e}function Ot(e,t){for(var o in e)if(o!=="__source"&&!(o in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Tt(e){this.props=e}(Tt.prototype=new _.Component).isPureReactComponent=!0,Tt.prototype.shouldComponentUpdate=function(e,t){return Ot(this.props,e)||Ot(this.state,t)};var kt=_.options.__b;_.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),kt&&kt(e)};var Yo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function pe(e){function t(o){var n=xt({},o);return delete n.ref,e(n,o.ref||null)}return t.$$typeof=Yo,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Zo=_.options.__e;_.options.__e=function(e,t,o,n){if(e.then){for(var r,a=t;a=a.__;)if((r=a.__c)&&r.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k),r.__c(e,t)}Zo(e,t,o,n)};var Nt=_.options.unmount;function Ct(e,t,o){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=xt({},e)).__c!=null&&(e.__c.__P===o&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Ct(n,t,o)})),e}function St(e,t,o){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return St(n,t,o)}),e.__c&&e.__c.__P===t&&(e.__e&&o.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=o)),e}function Ze(){this.__u=0,this.t=null,this.__b=null}function At(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ae(){this.u=null,this.o=null}_.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Nt&&Nt(e)},(Ze.prototype=new _.Component).__c=function(e,t){var o=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var r=At(n.__v),a=!1,c=function(){a||(a=!0,o.__R=null,r?r(l):l())};o.__R=c;var l=function(){if(!--n.__u){if(n.state.__a){var d=n.state.__a;n.__v.__k[0]=St(d,d.__c.__P,d.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.t.pop();)u.forceUpdate()}},s=t.__h===!0;n.__u++||s||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(c,c)},Ze.prototype.componentWillUnmount=function(){this.t=[]},Ze.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Ct(this.__b,o,n.__O=n.__P)}this.__b=null}var r=t.__a&&_.createElement(_.Fragment,null,e.fallback);return r&&(r.__h=null),[_.createElement(_.Fragment,null,t.__a?null:e.children),r]};var Rt=function(e,t,o){if(++o[1]===o[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(o=e.u;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;e.u=o=o[2]}};(Ae.prototype=new _.Component).__a=function(e){var t=this,o=At(t.__v),n=t.o.get(e);return n[0]++,function(r){var a=function(){t.props.revealOrder?(n.push(r),Rt(t,e,n)):r()};o?o(a):a()}},Ae.prototype.render=function(e){this.u=null,this.o=new Map;var t=_.toChildArray(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var o=t.length;o--;)this.o.set(t[o],this.u=[1,0,this.u]);return e.children},Ae.prototype.componentDidUpdate=Ae.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,o){Rt(e,o,t)})};var Qo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,en=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,tn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,on=/[A-Z0-9]/g,nn=typeof document<"u",rn=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};_.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(_.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var jt=_.options.event;function an(){}function sn(){return this.cancelBubble}function cn(){return this.defaultPrevented}_.options.event=function(e){return jt&&(e=jt(e)),e.persist=an,e.isPropagationStopped=sn,e.isDefaultPrevented=cn,e.nativeEvent=e};var ln={enumerable:!1,configurable:!0,get:function(){return this.class}},Et=_.options.vnode;_.options.vnode=function(e){typeof e.type=="string"&&function(t){var o=t.props,n=t.type,r={};for(var a in o){var c=o[a];if(!(a==="value"&&"defaultValue"in o&&c==null||nn&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in o&&o.value==null?a="value":a==="download"&&c===!0?c="":l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||rn(o.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":tn.test(a)?a=l:n.indexOf("-")===-1&&en.test(a)?a=a.replace(on,"-$&").toLowerCase():c===null&&(c=void 0):l=a="oninput",l==="oninput"&&r[a=l]&&(a="oninputCapture"),r[a]=c}}n=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=_.toChildArray(o.children).forEach(function(s){s.props.selected=r.value.indexOf(s.props.value)!=-1})),n=="select"&&r.defaultValue!=null&&(r.value=_.toChildArray(o.children).forEach(function(s){s.props.selected=r.multiple?r.defaultValue.indexOf(s.props.value)!=-1:r.defaultValue==s.props.value})),o.class&&!o.className?(r.class=o.class,Object.defineProperty(r,"className",ln)):(o.className&&!o.class||o.class&&o.className)&&(r.class=r.className=o.className),t.props=r}(e),e.$$typeof=Qo,Et&&Et(e)};var It=_.options.__r;_.options.__r=function(e){It&&It(e),e.__c};var Pt=_.options.diffed;_.options.diffed=function(e){Pt&&Pt(e);var t=e.props,o=e.__e;o!=null&&e.type==="textarea"&&"value"in t&&t.value!==o.value&&(o.value=t.value==null?"":t.value)};function dn(){this.__data__=[],this.size=0}var _n=dn;function un(e,t){return e===t||e!==e&&t!==t}var Re=un,fn=Re;function vn(e,t){for(var o=e.length;o--;)if(fn(e[o][0],t))return o;return-1}var je=vn,pn=je,hn=Array.prototype,gn=hn.splice;function bn(e){var t=this.__data__,o=pn(t,e);if(o<0)return!1;var n=t.length-1;return o==n?t.pop():gn.call(t,o,1),--this.size,!0}var mn=bn,yn=je;function $n(e){var t=this.__data__,o=yn(t,e);return o<0?void 0:t[o][1]}var wn=$n,xn=je;function On(e){return xn(this.__data__,e)>-1}var Tn=On,kn=je;function Nn(e,t){var o=this.__data__,n=kn(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}var Cn=Nn,Sn=_n,An=mn,Rn=wn,jn=Tn,En=Cn;function re(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}re.prototype.clear=Sn,re.prototype.delete=An,re.prototype.get=Rn,re.prototype.has=jn,re.prototype.set=En;var Ee=re,In=Ee;function Pn(){this.__data__=new In,this.size=0}var Bn=Pn;function Ln(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}var zn=Ln;function qn(e){return this.__data__.get(e)}var Hn=qn;function Dn(e){return this.__data__.has(e)}var Mn=Dn,Vn=typeof Ne=="object"&&Ne&&Ne.Object===Object&&Ne,Bt=Vn,Fn=Bt,Gn=typeof self=="object"&&self&&self.Object===Object&&self,Wn=Fn||Gn||Function("return this")(),ae=Wn,Un=ae,Kn=Un.Symbol,Lt=Kn,zt=Lt,qt=Object.prototype,Xn=qt.hasOwnProperty,Jn=qt.toString,he=zt?zt.toStringTag:void 0;function Yn(e){var t=Xn.call(e,he),o=e[he];try{e[he]=void 0;var n=!0}catch{}var r=Jn.call(e);return n&&(t?e[he]=o:delete e[he]),r}var Zn=Yn,Qn=Object.prototype,er=Qn.toString;function tr(e){return er.call(e)}var or=tr,Ht=Lt,nr=Zn,rr=or,ar="[object Null]",ir="[object Undefined]",Dt=Ht?Ht.toStringTag:void 0;function sr(e){return e==null?e===void 0?ir:ar:Dt&&Dt in Object(e)?nr(e):rr(e)}var Ie=sr;function cr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var W=cr,lr=Ie,dr=W,_r="[object AsyncFunction]",ur="[object Function]",fr="[object GeneratorFunction]",vr="[object Proxy]";function pr(e){if(!dr(e))return!1;var t=lr(e);return t==ur||t==fr||t==_r||t==vr}var Qe=pr,hr=ae,gr=hr["__core-js_shared__"],br=gr,et=br,Mt=function(){var e=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function mr(e){return!!Mt&&Mt in e}var yr=mr,$r=Function.prototype,wr=$r.toString;function xr(e){if(e!=null){try{return wr.call(e)}catch{}try{return e+""}catch{}}return""}var Or=xr,Tr=Qe,kr=yr,Nr=W,Cr=Or,Sr=/[\\^$.*+?()[\]{}|]/g,Ar=/^\[object .+?Constructor\]$/,Rr=Function.prototype,jr=Object.prototype,Er=Rr.toString,Ir=jr.hasOwnProperty,Pr=RegExp("^"+Er.call(Ir).replace(Sr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Br(e){if(!Nr(e)||kr(e))return!1;var t=Tr(e)?Pr:Ar;return t.test(Cr(e))}var Lr=Br;function zr(e,t){return e==null?void 0:e[t]}var qr=zr,Hr=Lr,Dr=qr;function Mr(e,t){var o=Dr(e,t);return Hr(o)?o:void 0}var tt=Mr,Vr=tt,Fr=ae,Gr=Vr(Fr,"Map"),Vt=Gr,Wr=tt,Ur=Wr(Object,"create"),Pe=Ur,Ft=Pe;function Kr(){this.__data__=Ft?Ft(null):{},this.size=0}var Xr=Kr;function Jr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Yr=Jr,Zr=Pe,Qr="__lodash_hash_undefined__",ea=Object.prototype,ta=ea.hasOwnProperty;function oa(e){var t=this.__data__;if(Zr){var o=t[e];return o===Qr?void 0:o}return ta.call(t,e)?t[e]:void 0}var na=oa,ra=Pe,aa=Object.prototype,ia=aa.hasOwnProperty;function sa(e){var t=this.__data__;return ra?t[e]!==void 0:ia.call(t,e)}var ca=sa,la=Pe,da="__lodash_hash_undefined__";function _a(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=la&&t===void 0?da:t,this}var ua=_a,fa=Xr,va=Yr,pa=na,ha=ca,ga=ua;function ie(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}ie.prototype.clear=fa,ie.prototype.delete=va,ie.prototype.get=pa,ie.prototype.has=ha,ie.prototype.set=ga;var ba=ie,Gt=ba,ma=Ee,ya=Vt;function $a(){this.size=0,this.__data__={hash:new Gt,map:new(ya||ma),string:new Gt}}var wa=$a;function xa(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Oa=xa,Ta=Oa;function ka(e,t){var o=e.__data__;return Ta(t)?o[typeof t=="string"?"string":"hash"]:o.map}var Be=ka,Na=Be;function Ca(e){var t=Na(this,e).delete(e);return this.size-=t?1:0,t}var Sa=Ca,Aa=Be;function Ra(e){return Aa(this,e).get(e)}var ja=Ra,Ea=Be;function Ia(e){return Ea(this,e).has(e)}var Pa=Ia,Ba=Be;function La(e,t){var o=Ba(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this}var za=La,qa=wa,Ha=Sa,Da=ja,Ma=Pa,Va=za;function se(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}se.prototype.clear=qa,se.prototype.delete=Ha,se.prototype.get=Da,se.prototype.has=Ma,se.prototype.set=Va;var Fa=se,Ga=Ee,Wa=Vt,Ua=Fa,Ka=200;function Xa(e,t){var o=this.__data__;if(o instanceof Ga){var n=o.__data__;if(!Wa||n.length<Ka-1)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new Ua(n)}return o.set(e,t),this.size=o.size,this}var Ja=Xa,Ya=Ee,Za=Bn,Qa=zn,ei=Hn,ti=Mn,oi=Ja;function ce(e){var t=this.__data__=new Ya(e);this.size=t.size}ce.prototype.clear=Za,ce.prototype.delete=Qa,ce.prototype.get=ei,ce.prototype.has=ti,ce.prototype.set=oi;var ni=ce,ri=tt,ai=function(){try{var e=ri(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Wt=ai,Ut=Wt;function ii(e,t,o){t=="__proto__"&&Ut?Ut(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}var ot=ii,si=ot,ci=Re;function li(e,t,o){(o!==void 0&&!ci(e[t],o)||o===void 0&&!(t in e))&&si(e,t,o)}var Kt=li;function di(e){return function(t,o,n){for(var r=-1,a=Object(t),c=n(t),l=c.length;l--;){var s=c[e?l:++r];if(o(a[s],s,a)===!1)break}return t}}var _i=di,ui=_i,fi=ui(),vi=fi,Le={},pi={get exports(){return Le},set exports(e){Le=e}};(function(e,t){var o=ae,n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,a=r&&r.exports===n,c=a?o.Buffer:void 0,l=c?c.allocUnsafe:void 0;function s(d,u){if(u)return d.slice();var f=d.length,v=l?l(f):new d.constructor(f);return d.copy(v),v}e.exports=s})(pi,Le);var hi=ae,gi=hi.Uint8Array,bi=gi,Xt=bi;function mi(e){var t=new e.constructor(e.byteLength);return new Xt(t).set(new Xt(e)),t}var yi=mi,$i=yi;function wi(e,t){var o=t?$i(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}var xi=wi;function Oi(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t}var Ti=Oi,ki=W,Jt=Object.create,Ni=function(){function e(){}return function(t){if(!ki(t))return{};if(Jt)return Jt(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}(),Ci=Ni;function Si(e,t){return function(o){return e(t(o))}}var Ai=Si,Ri=Ai,ji=Ri(Object.getPrototypeOf,Object),Yt=ji,Ei=Object.prototype;function Ii(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Ei;return e===o}var Zt=Ii,Pi=Ci,Bi=Yt,Li=Zt;function zi(e){return typeof e.constructor=="function"&&!Li(e)?Pi(Bi(e)):{}}var qi=zi;function Hi(e){return e!=null&&typeof e=="object"}var ge=Hi,Di=Ie,Mi=ge,Vi="[object Arguments]";function Fi(e){return Mi(e)&&Di(e)==Vi}var Gi=Fi,Qt=Gi,Wi=ge,eo=Object.prototype,Ui=eo.hasOwnProperty,Ki=eo.propertyIsEnumerable,Xi=Qt(function(){return arguments}())?Qt:function(e){return Wi(e)&&Ui.call(e,"callee")&&!Ki.call(e,"callee")},to=Xi,Ji=Array.isArray,oo=Ji,Yi=9007199254740991;function Zi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Yi}var no=Zi,Qi=Qe,es=no;function ts(e){return e!=null&&es(e.length)&&!Qi(e)}var nt=ts,os=nt,ns=ge;function rs(e){return ns(e)&&os(e)}var as=rs,be={},is={get exports(){return be},set exports(e){be=e}};function ss(){return!1}var cs=ss;(function(e,t){var o=ae,n=cs,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,c=a&&a.exports===r,l=c?o.Buffer:void 0,s=l?l.isBuffer:void 0,d=s||n;e.exports=d})(is,be);var ls=Ie,ds=Yt,_s=ge,us="[object Object]",fs=Function.prototype,vs=Object.prototype,ro=fs.toString,ps=vs.hasOwnProperty,hs=ro.call(Object);function gs(e){if(!_s(e)||ls(e)!=us)return!1;var t=ds(e);if(t===null)return!0;var o=ps.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&ro.call(o)==hs}var bs=gs,ms=Ie,ys=no,$s=ge,ws="[object Arguments]",xs="[object Array]",Os="[object Boolean]",Ts="[object Date]",ks="[object Error]",Ns="[object Function]",Cs="[object Map]",Ss="[object Number]",As="[object Object]",Rs="[object RegExp]",js="[object Set]",Es="[object String]",Is="[object WeakMap]",Ps="[object ArrayBuffer]",Bs="[object DataView]",Ls="[object Float32Array]",zs="[object Float64Array]",qs="[object Int8Array]",Hs="[object Int16Array]",Ds="[object Int32Array]",Ms="[object Uint8Array]",Vs="[object Uint8ClampedArray]",Fs="[object Uint16Array]",Gs="[object Uint32Array]",g={};g[Ls]=g[zs]=g[qs]=g[Hs]=g[Ds]=g[Ms]=g[Vs]=g[Fs]=g[Gs]=!0,g[ws]=g[xs]=g[Ps]=g[Os]=g[Bs]=g[Ts]=g[ks]=g[Ns]=g[Cs]=g[Ss]=g[As]=g[Rs]=g[js]=g[Es]=g[Is]=!1;function Ws(e){return $s(e)&&ys(e.length)&&!!g[ms(e)]}var Us=Ws;function Ks(e){return function(t){return e(t)}}var Xs=Ks,ze={},Js={get exports(){return ze},set exports(e){ze=e}};(function(e,t){var o=Bt,n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,a=r&&r.exports===n,c=a&&o.process,l=function(){try{var s=r&&r.require&&r.require("util").types;return s||c&&c.binding&&c.binding("util")}catch{}}();e.exports=l})(Js,ze);var Ys=Us,Zs=Xs,ao=ze,io=ao&&ao.isTypedArray,Qs=io?Zs(io):Ys,so=Qs;function ec(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var co=ec,tc=ot,oc=Re,nc=Object.prototype,rc=nc.hasOwnProperty;function ac(e,t,o){var n=e[t];(!(rc.call(e,t)&&oc(n,o))||o===void 0&&!(t in e))&&tc(e,t,o)}var ic=ac,sc=ic,cc=ot;function lc(e,t,o,n){var r=!o;o||(o={});for(var a=-1,c=t.length;++a<c;){var l=t[a],s=n?n(o[l],e[l],l,o,e):void 0;s===void 0&&(s=e[l]),r?cc(o,l,s):sc(o,l,s)}return o}var dc=lc;function _c(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}var uc=_c,fc=9007199254740991,vc=/^(?:0|[1-9]\d*)$/;function pc(e,t){var o=typeof e;return t=t??fc,!!t&&(o=="number"||o!="symbol"&&vc.test(e))&&e>-1&&e%1==0&&e<t}var lo=pc,hc=uc,gc=to,bc=oo,mc=be,yc=lo,$c=so,wc=Object.prototype,xc=wc.hasOwnProperty;function Oc(e,t){var o=bc(e),n=!o&&gc(e),r=!o&&!n&&mc(e),a=!o&&!n&&!r&&$c(e),c=o||n||r||a,l=c?hc(e.length,String):[],s=l.length;for(var d in e)(t||xc.call(e,d))&&!(c&&(d=="length"||r&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||yc(d,s)))&&l.push(d);return l}var Tc=Oc;function kc(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var Nc=kc,Cc=W,Sc=Zt,Ac=Nc,Rc=Object.prototype,jc=Rc.hasOwnProperty;function Ec(e){if(!Cc(e))return Ac(e);var t=Sc(e),o=[];for(var n in e)n=="constructor"&&(t||!jc.call(e,n))||o.push(n);return o}var Ic=Ec,Pc=Tc,Bc=Ic,Lc=nt;function zc(e){return Lc(e)?Pc(e,!0):Bc(e)}var _o=zc,qc=dc,Hc=_o;function Dc(e){return qc(e,Hc(e))}var Mc=Dc,uo=Kt,Vc=Le,Fc=xi,Gc=Ti,Wc=qi,fo=to,vo=oo,Uc=as,Kc=be,Xc=Qe,Jc=W,Yc=bs,Zc=so,po=co,Qc=Mc;function el(e,t,o,n,r,a,c){var l=po(e,o),s=po(t,o),d=c.get(s);if(d){uo(e,o,d);return}var u=a?a(l,s,o+"",e,t,c):void 0,f=u===void 0;if(f){var v=vo(s),h=!v&&Kc(s),y=!v&&!h&&Zc(s);u=s,v||h||y?vo(l)?u=l:Uc(l)?u=Gc(l):h?(f=!1,u=Vc(s,!0)):y?(f=!1,u=Fc(s,!0)):u=[]:Yc(s)||fo(s)?(u=l,fo(l)?u=Qc(l):(!Jc(l)||Xc(l))&&(u=Wc(s))):f=!1}f&&(c.set(s,u),r(u,s,n,a,c),c.delete(s)),uo(e,o,u)}var tl=el,ol=ni,nl=Kt,rl=vi,al=tl,il=W,sl=_o,cl=co;function ho(e,t,o,n,r){e!==t&&rl(t,function(a,c){if(r||(r=new ol),il(a))al(e,t,c,o,ho,n,r);else{var l=n?n(cl(e,c),a,c+"",e,t,r):void 0;l===void 0&&(l=a),nl(e,c,l)}},sl)}var ll=ho;function dl(e){return e}var go=dl;function _l(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}var ul=_l,fl=ul,bo=Math.max;function vl(e,t,o){return t=bo(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,a=bo(n.length-t,0),c=Array(a);++r<a;)c[r]=n[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=n[r];return l[t]=o(c),fl(e,this,l)}}var pl=vl;function hl(e){return function(){return e}}var gl=hl,bl=gl,mo=Wt,ml=go,yl=mo?function(e,t){return mo(e,"toString",{configurable:!0,enumerable:!1,value:bl(t),writable:!0})}:ml,$l=yl,wl=800,xl=16,Ol=Date.now;function Tl(e){var t=0,o=0;return function(){var n=Ol(),r=xl-(n-o);if(o=n,r>0){if(++t>=wl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var kl=Tl,Nl=$l,Cl=kl,Sl=Cl(Nl),Al=Sl,Rl=go,jl=pl,El=Al;function Il(e,t){return El(jl(e,t,Rl),e+"")}var Pl=Il,Bl=Re,Ll=nt,zl=lo,ql=W;function Hl(e,t,o){if(!ql(o))return!1;var n=typeof t;return(n=="number"?Ll(o)&&zl(t,o.length):n=="string"&&t in o)?Bl(o[t],e):!1}var Dl=Hl,Ml=Pl,Vl=Dl;function Fl(e){return Ml(function(t,o){var n=-1,r=o.length,a=r>1?o[r-1]:void 0,c=r>2?o[2]:void 0;for(a=e.length>3&&typeof a=="function"?(r--,a):void 0,c&&Vl(o[0],o[1],c)&&(a=r<3?void 0:a,r=1),t=Object(t);++n<r;){var l=o[n];l&&e(t,l,n,a)}return t})}var Gl=Fl,Wl=ll,Ul=Gl;Ul(function(e,t,o){Wl(e,t,o)});const me=(e,t,o)=>Array.isArray(e)?e.map((n,r)=>{const a=[o,r].filter(I).join(".");return me(t(r,n,a),t,a)}):typeof e=="object"&&e?Object.entries(e).reduce((n,[r,a])=>{const c=[o,r].filter(I).join(".");return n[r]=me(t(r,a,c),t,c),n},{}):e,Kl=e=>{const t=document.getElementsByTagName("head")[0],o=document.createElement("link");Object.entries(e).forEach(([n,r])=>o.setAttribute(n,r)),t.appendChild(o)},yo=()=>{let e={};return{on:(c,l)=>{c in e?e[c].push(l):e[c]=[l]},has:c=>c in e,get:c=>e[c],emit:(c,...l)=>c in e?e[c].map(s=>s(...l)).filter(Boolean):[],reset:()=>e={}}},$o=e=>!e&&e==null,I=e=>!$o(e),le=(e,...t)=>t.reduce((o,n)=>(o[n]=e[n],o),{});function ye(e,...t){const o={...e};return t.forEach(n=>{delete o[n]}),o}const Xl=(e,t,o)=>{if(!t)return;const r=(Array.isArray(t)?t:t.match(/([^[.\]])+/g)).reduce((a,c)=>a&&a[c],e);return r===void 0?o:r},qe=(e,t,o)=>{const n=Array.isArray(t)?t:t.match(/([^[.\]])+/g);return n.reduce((r,a,c)=>(r[a]===void 0&&(r[a]={}),c===n.length-1&&(r[a]=o),r[a]),e)},Jl=e=>{const t=e.slice(1);t.length===3&&(e=t.split("").map(n=>`${n}${n}`).join(""));const o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:void 0},Yl=(...e)=>e.map(t=>JSON.stringify(t)).every((t,o,n)=>t===n[0]),Zl=e=>"id"in e&&"root"in e,Ql=(e,t=1)=>e.replace(")",`, ${t})`).replace("rgb","rgba"),ed=(e,t)=>{try{me(e,(o,n,r)=>{if(t(o,n,r))throw{key:o,value:n,path:r};return n})}catch(o){return o}},wo=["desktop","laptop","tablet","mobile"],td={mobile:320,tablet:768,laptop:1024,desktop:1920},$={root:"_root_24bq9_1",icon:"_icon_24bq9_5",iconTarget:"_iconTarget_24bq9_17",body:"_body_24bq9_22",bodyOpen:"_bodyOpen_24bq9_30",simpleGift_in:"_simpleGift_in_24bq9_1",close:"_close_24bq9_43",arrow:"_arrow_24bq9_57",container:"_container_24bq9_68",inner:"_inner_24bq9_74",logo:"_logo_24bq9_81",text:"_text_24bq9_88",button:"_button_24bq9_103",buttonAnimated:"_buttonAnimated_24bq9_112",increase:"_increase_24bq9_1",legalGap:"_legalGap_24bq9_116",legalOpen:"_legalOpen_24bq9_120",legal:"_legal_24bq9_116",legalText:"_legalText_24bq9_148",legalButton:"_legalButton_24bq9_166",fadein:"_fadein_24bq9_1",pulse:"_pulse_24bq9_1",gradient:"_gradient_24bq9_1",wiggle:"_wiggle_24bq9_1"};var od=0;function i(e,t,o,n,r,a){var c,l,s={};for(l in t)l=="ref"?c=t[l]:s[l]=t[l];var d={type:e,props:s,key:o,ref:c,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--od,__source:r,__self:a};if(typeof e=="function"&&(c=e.defaultProps))for(l in c)s[l]===void 0&&(s[l]=c[l]);return _.options.vnode&&_.options.vnode(d),d}const xo=_.createContext(),U=({children:e,value:t})=>i(xo.Provider,{value:t,children:e}),K=e=>async({target:t,id:o,ref:n,state:r})=>{if(!("ResizeObserver"in window)){const a=await Promise.resolve().then(()=>a_);window.ResizeObserver=a.ResizeObserver}return _.render(i(U,{value:r,children:_.cloneElement(e,{ref:n,id:o})}),t)},j=()=>Ko(xo),nd=(e={})=>typeof e=="object"&&I(e)&&wo.every(t=>t in e),rd=(e,t)=>e&&me(e,(o,n)=>{if(nd(n)){const r=n[t];return"parent"in r&&I(r.parent)?{...n[r.parent],...ye(r,"parent")}:r}return n}),X=(e,t)=>rd(e,t),de=({id:e,targetRef:t,parentKey:o="device-container",breakpoints:n=td})=>{const[r,a]=ve("desktop"),c=l=>{var f;const s=l.getBoundingClientRect().width||0,d=Object.entries({...n}).sort(([v,h],[y,x])=>h-x),u=((f=d.find(([v,h],y)=>{const[x,p]=d[y+1]||[];return s>=h&&s<p}))==null?void 0:f[0])||"desktop";a(u)};return bt(()=>{const l=t.current.closest(`[data-${o}='${e}']`)||document.body;l&&(new ResizeObserver(()=>c(l)).observe(l),c(l))},[]),r},He=(e,t)=>`${e}${t}`,ad=e=>e.startsWith("px_"),id=e=>e.startsWith("percent_"),sd=(e,t)=>{let o=e,n=t;return ad(o)&&(o=o.replace("px_",""),n=He(t,"px")),id(o)&&(o=o.replace("percent_",""),n=He(t,"%")),{key:o,value:n}},cd=["borderWidth","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","minHeight","minWidth","maxWidth","maxHeight","fontSize","height","width","letterSpacing","fontSize","left","right","top","bottom","marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"],ld=(e,t)=>{const o=Object.keys(e);if((o.includes("innerHTML")||o.includes("innerText"))&&console.warn('Warning! InnerHTML and innerText is deprecated. Use "children" property.',t),typeof e!="object")return e;if("typography"in e&&"accentTypography"in e){const n=e.typography,r=e.accentTypography;e={...e,...n,"--font-family":r.fontFamily,"--accent-color":r.color,"px_--accent-size":r.fontSize}}return Object.entries(e).reduce((n,[r,a])=>{cd.includes(r)&&(a=He(a,"px"));const{key:c,value:l}=sd(r,a);if(n[c]=l,c==="innerHTML"&&(n.innerHTML=I(l)?`${l}`:""),c==="innerText"&&(n.innerText=I(l)?`${l}`:""),c==="children"&&(n.children=typeof l=="string"?I(l)?`${l}`:"":l),(c==="innerHTML"||c==="innerText"||c==="children")&&(typeof l=="string"&&l.length===0||$o(l))&&(n.display="none"),c.includes("borderWidth")&&(n.borderStyle="solid"),c==="corner"&&(n.borderRadius=He(l,"px")),c==="backgroundFit"&&(n.backgroundSize=l),c==="backgroundImage"&&I(l)&&(n.backgroundImage=`url(${l})`,n.backgroundRepeat="no-repeat"),c==="backgroundColorOpacity"&&I(n.backgroundColorOpacity)&&I(n.backgroundColor)){const s=Jl(n.backgroundColor);s&&(n.backgroundColor=Ql(`rgb(${s.r}, ${s.g}, ${s.b})`,+n.backgroundColorOpacity/100))}return c==="isBold"&&(n.fontWeight=l?"bold":"initial"),c==="isItalic"&&(n.fontStyle=l?"italic":"initial"),c==="isThrough"&&(n.textDecoration=l?"line-through":"initial"),n},e)},dd=e=>typeof e=="object"&&!Array.isArray(e)&&"parent"in e,C=e=>I(e)?Object.entries(e).reduce((t,[o,n])=>(t[o]=dd(n)?ld({...e[o]},o):n,t),{}):e,$e=({children:e,...t})=>{var n;const o=(n=e==null?void 0:e.replace("script",""))==null?void 0:n.replace(/{{(.*?)}}/g,"<span>$1</span>");return i("div",{...t,dangerouslySetInnerHTML:{__html:o}})},Oo=()=>{const[e,t]=ve(!1);return[e,()=>t(o=>!o)]},we=()=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",children:i("path",{d:"M17.659 4.929a1 1 0 1 1 1.414 1.414L13.416 12l5.657 5.657a1 1 0 0 1-1.415 1.414l-5.656-5.657-5.657 5.657a1 1 0 0 1-1.414-1.414L10.587 12 4.931 6.343A1 1 0 1 1 6.345 4.93l5.657 5.657 5.656-5.657Z",fill:"currentColor"})}),rt=()=>i("svg",{viewBox:"0 0 16 16",children:i("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.13 8H7v7.31H3.22a1.09 1.09 0 01-1.09-1.09zM9 15.34h3.81a1.09 1.09 0 001.09-1.09V8H9zm5.8-9.94v1.19a.48.48 0 01-.48.48H1.71a.48.48 0 01-.48-.48V5.4c0-.596.484-1.08 1.08-1.08H5a2.48 2.48 0 01-1.47-1.65 1.62 1.62 0 01.26-1.4 1.57 1.57 0 011-.58c.11-.01.22-.01.33 0a2.5 2.5 0 012 1A9 9 0 018 3.22a10.38 10.38 0 01.91-1.54 2.49 2.49 0 011.93-1h.36c.369.065.702.26.94.55.31.407.414.936.28 1.43a2.48 2.48 0 01-1.45 1.64h2.77a1.08 1.08 0 011.03 1.1zM8.66 4a9.81 9.81 0 001.9-.55 1.52 1.52 0 00.88-1 .68.68 0 00-.1-.59.6.6 0 00-.34-.22.58.58 0 00-.18 0 1.52 1.52 0 00-1.17.63A9.06 9.06 0 008.66 4zm-3.32-.58A9.62 9.62 0 007.25 4a8.59 8.59 0 00-1-1.72 1.51 1.51 0 00-1.18-.63h-.13a.66.66 0 00-.39.22.66.66 0 00-.09.57c.13.443.453.804.88.98z"})}),_d=e=>({fade:`${e.fade} 2s linear infinite`,pulse:`${e.pulse} .3s linear 0s infinite alternate forwards`,wiggle:`${e.wiggle} 2s linear infinite`,gradient:`${e.gradient} 3s ease infinite`}),To=(e,t)=>{var u,f,v,h,y,x,p,w,m,T,B,D,F;const o=_d(t),n=C(e),r=(u=n==null?void 0:n.icon)==null?void 0:u.hasIcon,a={left:`${+(((f=e==null?void 0:e.container)==null?void 0:f.left)||0)*-1+8}px`,backgroundColor:(v=n==null?void 0:n.container)==null?void 0:v.backgroundColor,borderTopWidth:(h=n==null?void 0:n.container)==null?void 0:h.borderWidth,borderTopColor:(y=n==null?void 0:n.container)==null?void 0:y.borderColor,borderTopStyle:"solid",borderLeftWidth:(x=n==null?void 0:n.container)==null?void 0:x.borderWidth,borderLeftColor:(p=n==null?void 0:n.container)==null?void 0:p.borderColor,borderLeftStyle:"solid"},c={left:(w=n==null?void 0:n.container)==null?void 0:w.left},l=(((m=n==null?void 0:n.icon)==null?void 0:m.animations)||[]).map(G=>o[G]).join(", "),s=I((T=n==null?void 0:n.icon)==null?void 0:T.gradientColor)&&((B=n==null?void 0:n.icon)!=null&&B.animations.includes("gradient"))?{background:`linear-gradient(-90deg, ${(D=n.icon)==null?void 0:D.backgroundColor} 0%, ${(F=n==null?void 0:n.icon)==null?void 0:F.gradientColor} 100%) 0% 0% / 400% 400%`,backgroundSize:"400% 400%"}:n==null?void 0:n.icon,d={...(n==null?void 0:n.icon)||{},animation:l,...s};return{hasIcon:r,arrowRules:a,bodyRules:c,iconRules:d}},De=e=>{const t=new Set([]);me(e,(n,r)=>(n==="fontFamily"&&t.add(r),r));const o=yt(()=>Array.from(t.values()).map(n=>({rel:"stylesheet",href:`https://fonts.googleapis.com/css?family=${n}:300,400,500,700&display=swap`})),[t]);ne(()=>{o.forEach(n=>Kl(n))},[o])},xe=["backgroundColor","backgroundColorOpacity","backgroundImage","backgroundFit"],ud=["borderWidth","borderColor","borderStyle"],ko=["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"],fd=e=>console.log(`Noop YaMektika reach goal: ${e}`),vd=e=>console.log(`Noop AdFox reach goal: ${e}`),pd=({delay:e,onOpen:t,onAutoOpen:o})=>{const[n,r]=ve(!1),a=L(null),c=s=>{clearTimeout(a.current),a.current=null},l=()=>{c(a.current),r(s=>!s)};return ne(()=>(a.current=setTimeout(()=>{r(!0),o&&o()},e||1e3),()=>c(a.current)),[e]),ne(()=>{n&&!a.current&&t&&t()},[n]),{isOpen:n,toggle:l}},No=({ref:e,openDelay:t})=>{const o=L(yo()),n=s=>o.current.on("open",s),r=s=>o.current.on("click",s),a=s=>o.current.on("autoOpen",s),{isOpen:c,toggle:l}=pd({delay:t,onOpen:()=>o.current.emit("open"),onAutoOpen:()=>o.current.emit("autoOpen")});return mt(e,()=>({onOpen:n,onClick:r,onAutoOpen:a})),{isOpen:c,toggle:l,click:()=>o.current.emit("click")}},hd=pe(({id:e},t)=>{var w,m,T,B,D,F,G;const o=L(null),[n,r]=Oo(),a=j(),c=de({targetRef:o,id:e}),l=X(a,c),s=C(l),{hasIcon:d,iconRules:u,bodyRules:f,arrowRules:v}=To(l,{fade:$.fadein,pulse:$.pulse,wiggle:$.wiggle,gradient:$.gradient}),{isOpen:h,toggle:y,click:x}=No({ref:t,openDelay:(w=l==null?void 0:l.container)==null?void 0:w.delay});De(l);const p=n?le(s.container,...ud):{};return i("div",{className:R($.root,{[$.legalOpen]:n}),ref:o,children:[i("div",{className:$.icon,style:u,onClick:y,children:d&&i("div",{className:$.iconTarget,children:i(rt,{})})}),i("div",{className:R($.body,{[$.bodyOpen]:h}),style:f,children:[i("div",{className:$.arrow,style:v}),i("div",{className:$.close,style:s==null?void 0:s.close,onClick:y,children:i(we,{})}),i("div",{className:$.container,style:s==null?void 0:s.container,children:[i("a",{href:(m=s==null?void 0:s.root)==null?void 0:m.offer,target:"_blank",rel:"nofollow noopener noreferrer",onClick:x,children:[i("div",{className:$.inner,children:[i("div",{className:$.logo,style:s==null?void 0:s.logo}),i($e,{className:$.text,style:s==null?void 0:s.text,children:(T=s==null?void 0:s.text)==null?void 0:T.children})]}),i("div",{className:R($.button,{[$.buttonAnimated]:s==null?void 0:s.button.isAnimated}),style:s==null?void 0:s.button,children:(B=s==null?void 0:s.button)==null?void 0:B.children})]}),i("div",{className:$.legalGap}),i("div",{className:$.legal,style:{...s==null?void 0:s.legal,...p},children:i("span",{className:$.legalText,children:i("span",{children:[i("span",{children:(D=s==null?void 0:s.legal)==null?void 0:D.children}),i("span",{className:$.legalButton,onClick:r,children:n?(F=s==null?void 0:s.legal)==null?void 0:F.buttonOpenText:(G=s==null?void 0:s.legal)==null?void 0:G.buttonHideText})]})})})]})]})]})}),gd=K(i(hd,{})),O={root:"_root_1hrqs_1",icon:"_icon_1hrqs_5",iconTarget:"_iconTarget_1hrqs_17",body:"_body_1hrqs_22",desktop:"_desktop_1hrqs_29",tablet:"_tablet_1hrqs_29",laptop:"_laptop_1hrqs_29",bodyOpen:"_bodyOpen_1hrqs_33",complexGift_in:"_complexGift_in_1hrqs_1",arrow:"_arrow_1hrqs_46",container:"_container_1hrqs_56",promotion:"_promotion_1hrqs_61",close:"_close_1hrqs_69",head:"_head_1hrqs_83",headIcon:"_headIcon_1hrqs_90",headTitle:"_headTitle_1hrqs_96",inner:"_inner_1hrqs_103",fadein:"_fadein_1hrqs_1",pulse:"_pulse_1hrqs_1",gradient:"_gradient_1hrqs_1",wiggle:"_wiggle_1hrqs_1"},z={root:"_root_tv8qf_1",body:"_body_tv8qf_30",bodyInner:"_bodyInner_tv8qf_38",line:"_line_tv8qf_43",text:"_text_tv8qf_53",button:"_button_tv8qf_69",logo:"_logo_tv8qf_81",variant2:"_variant2_tv8qf_87",buttonText:"_buttonText_tv8qf_91",legal:"_legal_tv8qf_108"},at=(e,t="root")=>{const o=L(),n=(e==null?void 0:e.yaReachGoal)||fd,r=(e==null?void 0:e.adfoxReachGoal)||vd,a=I(e)?le(e[t],"yaShow","yaClick","adfoxShow","adfoxClick"):{};return ne(()=>{Yl(o.current,a)||(a.yaShow&&n(a.yaShow),a.adfoxShow&&r(a.adfoxShow)),o.current=a},[a]),()=>{a.yaClick&&n(a.yaClick),a.adfoxClick&&r(a.adfoxClick)}},bd=()=>{var n,r,a,c,l;const e=j(),t=C(e),o=at(e);return i("a",{href:(n=t.root)==null?void 0:n.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:R(z.root,{[z.variant2]:((r=t.root)==null?void 0:r.variant)==="variant2"}),style:t.root,onClick:o,children:[i("div",{className:z.body,children:[i("div",{className:z.line,style:t.line}),i("div",{className:z.bodyInner,children:[i("div",{className:z.logo,style:t.logo}),i("div",{className:z.text,style:t.text,children:i($e,{children:(a=t.text)==null?void 0:a.children})})]}),i("div",{className:z.button,style:t.button,children:[i("div",{className:z.logo,style:t.logo}),i("div",{className:z.buttonText,children:(c=t.button)==null?void 0:c.children})]})]}),i("div",{className:z.legal,style:t.legal,children:(l=t.legal)==null?void 0:l.children})]})},md=pe(({id:e},t)=>{var x,p,w,m;const o=L(null),n=j(),r=de({targetRef:o,id:e}),a=X(n,r),c=C(a),{isOpen:l,click:s,toggle:d}=No({ref:t,openDelay:(x=a==null?void 0:a.container)==null?void 0:x.delay});De(a);const{hasIcon:u,iconRules:f,bodyRules:v,arrowRules:h}=To(a,{fade:O.fadein,pulse:O.pulse,wiggle:O.wiggle,gradient:O.gradient}),y=(p=c==null?void 0:c.title)==null?void 0:p.hasIcon;return i("div",{ref:o,className:R(O.root,{[O.desktop]:r==="desktop",[O.laptop]:r==="laptop",[O.tablet]:r==="tablet"}),children:[i("div",{className:O.icon,style:f,onClick:d,children:u&&i("div",{className:O.iconTarget,children:i(rt,{})})}),i("div",{className:R(O.body,{[O.bodyOpen]:l}),style:v,children:[i("div",{className:O.arrow,style:h}),i("div",{className:O.container,style:c.container,children:[i("div",{className:O.close,style:c.close,onClick:d,children:i(we,{})}),i("div",{className:O.promotion,style:c.promotion,children:(w=c.promotion)==null?void 0:w.children}),i("div",{className:O.head,children:[y&&i("div",{className:O.headIcon,style:le(c.title,"color"),children:i(rt,{})}),i("div",{className:O.headTitle,style:c.title,children:(m=c.title)==null?void 0:m.children})]}),i("div",{className:O.inner,onClick:s,children:(c.children||[]).map(T=>i(U,{value:T,children:i(bd,{})}))})]})]})]})}),yd=K(i(md,{})),P={root:"_root_15w5v_1",content:"_content_15w5v_11",laptop:"_laptop_15w5v_20",tablet:"_tablet_15w5v_24",desktop:"_desktop_15w5v_28",wrapper:"_wrapper_15w5v_32",overlay:"_overlay_15w5v_36",close:"_close_15w5v_42",body:"_body_15w5v_50",logo:"_logo_15w5v_62",text:"_text_15w5v_68",button:"_button_15w5v_72",legal:"_legal_15w5v_87"},J=e=>e&&{left:"flex-start",center:"center",right:"flex-end"}[e],$d={root:"_root_2ic16_1"},wd=()=>{var o;const e=j(),t=C(e);return i("div",{className:$d.root,style:t.root,children:i($e,{children:(o=t==null?void 0:t.root)==null?void 0:o.children})})},it=e=>{const t=L(yo()),[o,n]=ve(!1),r=s=>t.current.on("visible",s),a=s=>t.current.on("click",s),c=()=>n(!0),l=()=>n(!1);return ne(()=>{t.current.emit("visible",o)},[o]),mt(e,()=>({onVisible:r,onClick:a,show:c,hide:l})),{isOpen:o,show:c,hide:l,click:()=>t.current.emit("click")}},xd=pe(({id:e},t)=>{var h,y,x,p,w,m,T;const o=L(null),{isOpen:n,hide:r,click:a}=it(t),c=de({targetRef:o,id:e}),l=j(),s=X(l,c);qe(s,"button.percent_width",(h=s==null?void 0:s.button)==null?void 0:h.width),qe(s,"legal.percent_width",(y=s==null?void 0:s.legal)==null?void 0:y.width);const d=C(s),u={alignItems:J((x=d.root)==null?void 0:x.align)},f={...d==null?void 0:d.button,justifyContent:J((p=d.root)==null?void 0:p.textAlign)},v={...d==null?void 0:d.legal,justifyContent:J((w=d.root)==null?void 0:w.textAlign)};return i("div",{className:P.root,ref:o,style:{display:n?"flex":"none"},children:[i("div",{className:P.overlay,style:d.overlay,onClick:r}),i("div",{className:P.wrapper,children:[i("div",{className:P.close,style:{color:(m=d.close)==null?void 0:m.backgroundColor},onClick:r,children:i(we,{})}),i("a",{href:(T=d.root)==null?void 0:T.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:R(P.content,{[P.desktop]:c==="desktop",[P.tablet]:c==="tablet",[P.laptop]:c==="laptop"}),style:d.root,onClick:a,children:i("div",{className:P.body,style:u,children:[i("div",{className:P.logo,style:d.logo}),i("div",{className:P.text,children:((d==null?void 0:d.children)||[]).map(B=>i(U,{value:B,children:i(wd,{})}))}),i("div",{className:P.button,style:f,children:f==null?void 0:f.children}),i("div",{className:P.legal,style:v,children:v==null?void 0:v.children})]})})]})]})}),Od=K(i(xd,{})),Y={root:"_root_1ifs0_1",content:"_content_1ifs0_5",desktop:"_desktop_1ifs0_18",overlay:"_overlay_1ifs0_23",close:"_close_1ifs0_29",title:"_title_1ifs0_36",wrapper:"_wrapper_1ifs0_51"},M={root:"_root_1ska4_1",desktop:"_desktop_1ska4_10",header:"_header_1ska4_15",logo:"_logo_1ska4_26",container:"_container_1ska4_33",body:"_body_1ska4_44",text:"_text_1ska4_61",button:"_button_1ska4_84",legal:"_legal_1ska4_102"},Td=({onClick:e})=>{var r,a,c,l;const t=j(),o=C(t),n=(t==null?void 0:t.device)||"desktop";return i("a",{href:(r=o.root)==null?void 0:r.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:R(M.root,{[M.desktop]:n==="desktop"}),style:ye(o.root,...ko),onClick:e,children:[i("div",{className:M.header,style:o.header,children:i("div",{className:M.logo,style:o.logo})}),i("div",{className:M.container,style:le(o.root,...ko),children:[i("div",{className:M.body,children:[i("div",{className:M.logo}),i($e,{className:M.text,style:o.text,children:(a=o.text)==null?void 0:a.children})]}),i("div",{children:[i("div",{className:M.button,style:o.button,children:(c=o.button)==null?void 0:c.children}),i("div",{className:M.legal,style:o.legal,children:(l=o.legal)==null?void 0:l.children})]})]})]})},kd=pe(({id:e},t)=>{var u,f;const o=L(null),{isOpen:n,hide:r,click:a}=it(t),c=de({targetRef:o,id:e}),l=j(),s=X(l,c),d=C(s);return De(s),i("div",{className:Y.root,style:{display:n?"flex":"none"},children:[i("div",{className:Y.overlay,style:d.overlay,onClick:r}),i("div",{ref:o,className:R(Y.content,{[Y.desktop]:c==="desktop"}),style:d.root,children:[i("div",{className:Y.close,style:{color:(u=d.close)==null?void 0:u.backgroundColor},onClick:r,children:i(we,{})}),i("div",{className:Y.title,style:d.title,children:(f=d.title)==null?void 0:f.children}),i("div",{className:Y.wrapper,children:(d.children||[]).map(v=>i(U,{value:{...v,device:c},children:i(Td,{onClick:a})}))})]})]})}),Nd=K(i(kd,{})),S={root:"_root_14xbh_1",content:"_content_14xbh_11",close:"_close_14xbh_19",overlay:"_overlay_14xbh_27",body:"_body_14xbh_33",desktop:"_desktop_14xbh_43",laptop:"_laptop_14xbh_48",tablet:"_tablet_14xbh_48",head:"_head_14xbh_53",title:"_title_14xbh_63",logo:"_logo_14xbh_76",wrapper:"_wrapper_14xbh_82",text:"_text_14xbh_89",button:"_button_14xbh_104",buttonHead:"_buttonHead_14xbh_119",buttonTarget:"_buttonTarget_14xbh_138",legal:"_legal_14xbh_154"},k={root:"_root_14sq5_1",left:"_left_14sq5_8",desktop:"_desktop_14sq5_15",teams:"_teams_14sq5_19",logo:"_logo_14sq5_25",league:"_league_14sq5_32",name:"_name_14sq5_37",right:"_right_14sq5_43",odd:"_odd_14sq5_54",oddLabel:"_oddLabel_14sq5_67",oddValue:"_oddValue_14sq5_76",team:"_team_14sq5_19",teamLogo:"_teamLogo_14sq5_100",teamName:"_teamName_14sq5_106"},Cd=()=>{var n,r,a,c,l,s,d;const e=j(),t=C(e),o=(e==null?void 0:e.device)||"desktop";return i("div",{className:R(k.root,{[k.desktop]:o==="desktop"}),children:[i("div",{className:k.left,children:[i("div",{className:k.teams,children:[i("div",{className:k.logo}),i("div",{className:k.logo})]}),i("div",{className:k.body,children:[i("div",{className:k.league,style:t.league,children:(n=t.league)==null?void 0:n.children}),i("div",{className:k.name,style:t.teams,children:[(r=t.teams)==null?void 0:r.teamA," — ",(a=t.teams)==null?void 0:a.teamB]})]})]}),i("div",{className:k.right,children:[i("div",{className:k.team,children:[i("div",{className:k.teamLogo}),i("div",{className:k.teamName,style:t.teams,children:(c=t.teams)==null?void 0:c.teamA})]}),i("div",{className:k.odd,children:[i("div",{className:k.oddLabel,style:t.oddLabel,children:(l=t.oddLabel)==null?void 0:l.children}),i("div",{className:k.oddValue,style:t.oddValue,children:(s=t.oddValue)==null?void 0:s.children})]}),i("div",{className:k.team,children:[i("div",{className:k.teamLogo}),i("div",{className:k.teamName,style:t.teams,children:(d=t.teams)==null?void 0:d.teamB})]})]})]})},Sd=pe(({id:e},t)=>{var x,p,w,m,T,B,D,F,G,ee,te,We,Ue,ke;const o=L(null),{isOpen:n,hide:r,click:a}=it(t),c=de({targetRef:o,id:e}),l=j(),s=X(l,c);qe(s,"buttonWrapper.percent_width",(x=s==null?void 0:s.buttonWrapper)==null?void 0:x.width),qe(s,"legal.percent_width",(p=s==null?void 0:s.legal)==null?void 0:p.width);const d=C(s);De(s);const u={...d.root,alignItems:J((w=d.root)==null?void 0:w.align)},f={...d.content,alignItems:J((m=d.root)==null?void 0:m.align)},v={...d.text,textAlign:(T=d.root)==null?void 0:T.align},h={...d==null?void 0:d.button,justifyContent:J((B=d.root)==null?void 0:B.textAlign)},y={...d==null?void 0:d.legal,justifyContent:J((D=d.root)==null?void 0:D.textAlign)};return i("div",{className:S.root,ref:o,style:{display:n?"flex":"none"},children:[i("div",{className:S.overlay,style:d.overlay,onClick:r}),i("div",{className:R(S.content,{[S.desktop]:c==="desktop",[S.laptop]:c==="laptop",[S.tablet]:c==="tablet"}),children:[i("div",{className:S.close,style:{color:(F=d.close)==null?void 0:F.backgroundColor},onClick:r,children:i(we,{})}),i("a",{ref:o,href:(G=d.root)==null?void 0:G.offer,target:"_blank",rel:"nofollow noopener noreferrer",onClick:a,children:i("div",{className:S.body,style:u,children:[i("div",{className:S.head,children:[i("div",{className:S.title,style:d.title,children:(ee=d.title)==null?void 0:ee.children}),i("div",{className:S.logo,style:d.logo})]}),i("div",{className:S.wrapper,style:f,children:(d.children||[]).map(i_=>i(U,{value:{...i_,device:c},children:i(Cd,{})}))}),i($e,{className:S.text,style:v,children:(te=d.text)==null?void 0:te.children}),i("div",{className:S.button,style:d.buttonWrapper,children:[i("div",{className:S.buttonHead,style:d.buttonHead,children:(We=d.buttonHead)==null?void 0:We.children}),i("div",{className:S.buttonTarget,style:h,children:(Ue=d.button)==null?void 0:Ue.children})]}),i("div",{className:S.legal,style:y,children:(ke=d.legal)==null?void 0:ke.children})]})})]})]})}),Ad=K(i(Sd,{})),q={root:"_root_1slvw_1",background:"_background_1slvw_20",body:"_body_1slvw_29",bookmaker:"_bookmaker_1slvw_39",button:"_button_1slvw_46",rowFirst:"_rowFirst_1slvw_60",rowSecond:"_rowSecond_1slvw_66",legal:"_legal_1slvw_72",legalText:"_legalText_1slvw_88",legalOpen:"_legalOpen_1slvw_98",legalButton:"_legalButton_1slvw_103"},Rd=()=>{var a,c,l,s,d,u,f;const e=j(),t=C(e),[o,n]=Oo(),r=at(e);return i("div",{className:q.root,style:t.root,children:[i("div",{className:q.background,style:t.background}),i("a",{href:(a=t.root)==null?void 0:a.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:q.body,onClick:r,children:[i("div",{children:[i("div",{className:q.rowFirst,style:t.rowFirst,children:(c=t.rowFirst)==null?void 0:c.children}),i("div",{className:q.rowSecond,style:t.rowSecond,children:(l=t.rowSecond)==null?void 0:l.children}),i("div",{className:q.bookmaker,children:"winline"})]}),i("div",{className:q.button,style:t.button,children:(s=t.button)==null?void 0:s.children})]}),i("div",{className:R(q.legal,{[q.legalOpen]:o}),style:t.legalInfo,children:i("span",{className:q.legalText,children:[i("span",{children:(d=t.legalInfo)==null?void 0:d.children}),i("span",{className:q.legalButton,style:t.legalInfoButton,onClick:n,children:o?(u=t.legalInfoButton)==null?void 0:u.openText:(f=t.legalInfoButton)==null?void 0:f.closeText})]})})]})},jd=K(i(()=>{const e=L(null),t=j(),n=X(t,"desktop"),r=C(n);return i("div",{ref:e,children:((r==null?void 0:r.children)||[]).map(a=>i(U,{value:a,children:i(Rd,{})}))})},{})),N={root:"_root_a3kem_1",desktop:"_desktop_a3kem_13",laptop:"_laptop_a3kem_14",promotion:"_promotion_a3kem_18",background:"_background_a3kem_34",content:"_content_a3kem_43",variant2:"_variant2_a3kem_56",logo:"_logo_a3kem_60",left:"_left_a3kem_72",center:"_center_a3kem_86",slide:"_slide_a3kem_92",slide_animated_default:"_slide_animated_default_a3kem_106","fade-in-out":"_fade-in-out_a3kem_1","slide_animated_bottom-top":"_slide_animated_bottom-top_a3kem_109","fade-in-bottom-out-top":"_fade-in-bottom-out-top_a3kem_1","slide_animated_top-bottom":"_slide_animated_top-bottom_a3kem_112",right:"_right_a3kem_116",buttonWrapper:"_buttonWrapper_a3kem_131",button:"_button_a3kem_131",button_animated:"_button_animated_a3kem_162",increase:"_increase_a3kem_1","fade-in-top-out-bottom":"_fade-in-top-out-bottom_a3kem_1"},Co={root:"_root_1cgtj_1",desktop:"_desktop_1cgtj_19"},Ed=()=>{var o;const e=j(),t=C(e);return i("div",{className:R(Co.root,{[Co.desktop]:(e==null?void 0:e.device)==="desktop"}),style:ye(t.root,...xe),children:(o=t.root)==null?void 0:o.children})},H={root:"_root_vjs41_1",odd:"_odd_vjs41_7",oddReverse:"_oddReverse_vjs41_14",oddLabel:"_oddLabel_vjs41_18",oddLogo:"_oddLogo_vjs41_30",coef:"_coef_vjs41_36",coefHead:"_coefHead_vjs41_42",coefValue:"_coefValue_vjs41_47"},Id=()=>{var n,r,a;const e=j(),t=C(e),o=ye(t.root,...xe);return i("div",{className:H.root,children:[i("div",{className:H.odd,children:[i("div",{className:H.oddLogo,style:o}),i("div",{className:H.oddLabel,style:o,children:(n=t.root)==null?void 0:n.valueOne})]}),i("div",{className:H.coef,children:[i("div",{className:H.coefHead,style:t.coef,children:"X"}),i("div",{className:H.coefValue,style:o,children:(r=t.root)==null?void 0:r.valueX})]}),i("div",{className:R(H.odd,H.oddReverse),children:[i("div",{className:H.oddLogo,style:o}),i("div",{className:H.oddLabel,style:o,children:(a=t.root)==null?void 0:a.valueTwo})]})]})},E={root:"_root_1va5h_1",title:"_title_1va5h_8",titleLabel:"_titleLabel_1va5h_12",tablet:"_tablet_1va5h_16",desktop:"_desktop_1va5h_19",laptop:"_laptop_1va5h_19",titleValue:"_titleValue_1va5h_23",team:"_team_1va5h_34",teamLogo:"_teamLogo_1va5h_44",teamName:"_teamName_1va5h_72",teamValue:"_teamValue_1va5h_84"},Pd=()=>{const e=j(),t=C(e);return i("div",{className:R(E.root,{[E.desktop]:(e==null?void 0:e.device)==="desktop",[E.laptop]:(e==null?void 0:e.device)==="laptop",[E.tablet]:(e==null?void 0:e.device)==="tablet"}),style:ye(t.root,...xe),children:[i("div",{className:E.title,children:[i("div",{className:E.titleLabel,style:t.titleLabel,children:t.titleLabel.children}),i("div",{className:E.titleValue,style:t.titleValue,children:t.titleValue.children})]}),i("div",{children:[i("div",{className:E.team,children:[i("div",{className:E.teamLogo,style:t.logo}),i("div",{className:E.teamName,style:t.teamName,children:t.team1Name.children}),i("div",{className:E.teamValue,style:t.value,children:t.value1.children})]}),i("div",{className:E.team,children:[i("div",{className:E.teamLogo,style:t.logo}),i("div",{className:E.teamName,style:t.teamName,children:t.team2Name.children}),i("div",{className:E.teamValue,style:t.value,children:t.value2.children})]})]})]})},Bd=(e=[])=>{var a;const t=e.length,[o,n]=ve(0),r=(a=e[o||0])==null?void 0:a.animationDuration;return ne(()=>{const l=setTimeout(()=>{n(s=>s+1<t?s+1:0)},r);return()=>clearTimeout(l)},[n,t,r,o]),o},Ld=3700,zd=K(i(()=>{var f,v,h,y,x;const e=L(null),t=j(),o=de({targetRef:e}),n=X(t,o),r=C(n),a=at(n),c=p=>({text:i(Ed,{}),matches:i(Id,{}),matchesOneTwo:i(Pd,{})})[p],l=(r.children||[]).filter(Boolean).map(p=>{var w,m;return{...p,animationName:(w=p==null?void 0:p.root)==null?void 0:w.animationName,animationDuration:((m=p==null?void 0:p.root)==null?void 0:m.animationDuration)||Ld}}),s=Bd(l),d=C(l[s]||{}),u=(f=d==null?void 0:d.root)!=null&&f.hasCustomBackground?le((d==null?void 0:d.root)||{},...xe):le(r.background,...xe);return i("a",{ref:e,href:(v=r.root)==null?void 0:v.offer,target:"_blank",rel:"nofollow noopener noreferrer",className:R(N.root,{[N.desktop]:o==="desktop",[N.laptop]:o==="laptop",[N.tablet]:o==="tablet",[N.variant2]:((h=r.root)==null?void 0:h.variant)==="variant2"}),style:r.root,onClick:a,children:[i("div",{className:N.background,style:u}),i("div",{className:N.promotion,style:r.promotion,children:(y=r.promotion)==null?void 0:y.children}),i("div",{className:N.content,children:[i("div",{className:N.left,children:i("div",{className:N.logo,style:r.logo})}),i("div",{className:N.center,children:(r.children||[]).map((p,w)=>{var m,T;return i("div",{className:N.slide,style:{animationName:s===w?N[((m=p.root)==null?void 0:m.animationName)||"fade-in-out"]:"none",animationDuration:`${(T=p.root)==null?void 0:T.animationDuration}ms`},children:i(U,{value:{...p,device:o},children:c(p.name)})})})}),i("div",{className:N.right,children:[i("div",{className:N.logo,style:r.logo}),i("div",{className:N.buttonWrapper,children:i("div",{className:N.button,style:r.button,children:[i("div",{className:N.logo,style:r.logo}),(x=r.button)==null?void 0:x.children]})})]})]})]})},{})),qd=(e,t,o,n,r=wo)=>{const a={...e};return r.forEach(c=>{a[t]={...a[t],[c]:{...a[t][c],[o]:typeof n=="function"?n(Xl(a,`${t}.${c}.${o}`)):n}}}),a};var Z=[],Hd=function(){return Z.some(function(e){return e.activeTargets.length>0})},Dd=function(){return Z.some(function(e){return e.skippedTargets.length>0})},So="ResizeObserver loop completed with undelivered notifications.",Md=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:So}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=So),window.dispatchEvent(e)},Oe;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Oe||(Oe={}));var Q=function(e){return Object.freeze(e)},Ao=function(){function e(t,o){this.inlineSize=t,this.blockSize=o,Q(this)}return e}(),Ro=function(){function e(t,o,n,r){return this.x=t,this.y=o,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Q(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,n=t.y,r=t.top,a=t.right,c=t.bottom,l=t.left,s=t.width,d=t.height;return{x:o,y:n,top:r,right:a,bottom:c,left:l,width:s,height:d}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),st=function(e){return e instanceof SVGElement&&"getBBox"in e},jo=function(e){if(st(e)){var t=e.getBBox(),o=t.width,n=t.height;return!o&&!n}var r=e,a=r.offsetWidth,c=r.offsetHeight;return!(a||c||e.getClientRects().length)},Eo=function(e){var t;if(e instanceof Element)return!0;var o=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},Vd=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Te=typeof window<"u"?window:{},Me=new WeakMap,Io=/auto|scroll/,Fd=/^tb|vertical/,Gd=/msie|trident/i.test(Te.navigator&&Te.navigator.userAgent),V=function(e){return parseFloat(e||"0")},_e=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new Ao((o?t:e)||0,(o?e:t)||0)},Po=Q({devicePixelContentBoxSize:_e(),borderBoxSize:_e(),contentBoxSize:_e(),contentRect:new Ro(0,0,0,0)}),Bo=function(e,t){if(t===void 0&&(t=!1),Me.has(e)&&!t)return Me.get(e);if(jo(e))return Me.set(e,Po),Po;var o=getComputedStyle(e),n=st(e)&&e.ownerSVGElement&&e.getBBox(),r=!Gd&&o.boxSizing==="border-box",a=Fd.test(o.writingMode||""),c=!n&&Io.test(o.overflowY||""),l=!n&&Io.test(o.overflowX||""),s=n?0:V(o.paddingTop),d=n?0:V(o.paddingRight),u=n?0:V(o.paddingBottom),f=n?0:V(o.paddingLeft),v=n?0:V(o.borderTopWidth),h=n?0:V(o.borderRightWidth),y=n?0:V(o.borderBottomWidth),x=n?0:V(o.borderLeftWidth),p=f+d,w=s+u,m=x+h,T=v+y,B=l?e.offsetHeight-T-e.clientHeight:0,D=c?e.offsetWidth-m-e.clientWidth:0,F=r?p+m:0,G=r?w+T:0,ee=n?n.width:V(o.width)-F-D,te=n?n.height:V(o.height)-G-B,We=ee+p+D+m,Ue=te+w+B+T,ke=Q({devicePixelContentBoxSize:_e(Math.round(ee*devicePixelRatio),Math.round(te*devicePixelRatio),a),borderBoxSize:_e(We,Ue,a),contentBoxSize:_e(ee,te,a),contentRect:new Ro(f,s,ee,te)});return Me.set(e,ke),ke},Lo=function(e,t,o){var n=Bo(e,o),r=n.borderBoxSize,a=n.contentBoxSize,c=n.devicePixelContentBoxSize;switch(t){case Oe.DEVICE_PIXEL_CONTENT_BOX:return c;case Oe.BORDER_BOX:return r;default:return a}},zo=function(){function e(t){var o=Bo(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=Q([o.borderBoxSize]),this.contentBoxSize=Q([o.contentBoxSize]),this.devicePixelContentBoxSize=Q([o.devicePixelContentBoxSize])}return e}(),qo=function(e){if(jo(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},Wd=function(){var e=1/0,t=[];Z.forEach(function(c){if(c.activeTargets.length!==0){var l=[];c.activeTargets.forEach(function(d){var u=new zo(d.target),f=qo(d.target);l.push(u),d.lastReportedSize=Lo(d.target,d.observedBox),f<e&&(e=f)}),t.push(function(){c.callback.call(c.observer,l,c.observer)}),c.activeTargets.splice(0,c.activeTargets.length)}});for(var o=0,n=t;o<n.length;o++){var r=n[o];r()}return e},Ho=function(e){Z.forEach(function(o){o.activeTargets.splice(0,o.activeTargets.length),o.skippedTargets.splice(0,o.skippedTargets.length),o.observationTargets.forEach(function(r){r.isActive()&&(qo(r.target)>e?o.activeTargets.push(r):o.skippedTargets.push(r))})})},Ud=function(){var e=0;for(Ho(e);Hd();)e=Wd(),Ho(e);return Dd()&&Md(),e>0},ct,Do=[],Kd=function(){return Do.splice(0).forEach(function(e){return e()})},Xd=function(e){if(!ct){var t=0,o=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return Kd()}).observe(o,n),ct=function(){o.textContent="".concat(t?t--:t++)}}Do.push(e),ct()},Jd=function(e){Xd(function(){requestAnimationFrame(e)})},Ve=0,Yd=function(){return!!Ve},Zd=250,Qd={attributes:!0,characterData:!0,childList:!0,subtree:!0},Mo=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Vo=function(e){return e===void 0&&(e=0),Date.now()+e},lt=!1,e_=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var o=this;if(t===void 0&&(t=Zd),!lt){lt=!0;var n=Vo(t);Jd(function(){var r=!1;try{r=Ud()}finally{if(lt=!1,t=n-Vo(),!Yd())return;r?o.run(1e3):t>0?o.run(t):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,o=function(){return t.observer&&t.observer.observe(document.body,Qd)};document.body?o():Te.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Mo.forEach(function(o){return Te.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Mo.forEach(function(o){return Te.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e}(),dt=new e_,Fo=function(e){!Ve&&e>0&&dt.start(),Ve+=e,!Ve&&dt.stop()},t_=function(e){return!st(e)&&!Vd(e)&&getComputedStyle(e).display==="inline"},o_=function(){function e(t,o){this.target=t,this.observedBox=o||Oe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Lo(this.target,this.observedBox,!0);return t_(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),n_=function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e}(),Fe=new WeakMap,Go=function(e,t){for(var o=0;o<e.length;o+=1)if(e[o].target===t)return o;return-1},Ge=function(){function e(){}return e.connect=function(t,o){var n=new n_(t,o);Fe.set(t,n)},e.observe=function(t,o,n){var r=Fe.get(t),a=r.observationTargets.length===0;Go(r.observationTargets,o)<0&&(a&&Z.push(r),r.observationTargets.push(new o_(o,n&&n.box)),Fo(1),dt.schedule())},e.unobserve=function(t,o){var n=Fe.get(t),r=Go(n.observationTargets,o),a=n.observationTargets.length===1;r>=0&&(a&&Z.splice(Z.indexOf(n),1),n.observationTargets.splice(r,1),Fo(-1))},e.disconnect=function(t){var o=this,n=Fe.get(t);n.observationTargets.slice().forEach(function(r){return o.unobserve(t,r.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),r_=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ge.connect(this,t)}return e.prototype.observe=function(t,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Eo(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ge.observe(this,t,o)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Eo(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ge.unobserve(this,t)},e.prototype.disconnect=function(){Ge.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const a_=Object.freeze(Object.defineProperty({__proto__:null,ResizeObserver:r_,ResizeObserverEntry:zo,ResizeObserverSize:Ao},Symbol.toStringTag,{value:"Module"}));A.BonusCard=jd,A.ComplexGift=yd,A.ComplexPopup=Nd,A.ExpressPopup=Ad,A.SimpleGift=gd,A.SimplePopup=Od,A.WideCard=zd,A.findDeep=ed,A.isValidTemplate=Zl,A.modifyState=qd,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
|