@streamlayer/react 1.24.6 → 1.24.7
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/lib/cjs/advertisement.js +19607 -203
- package/lib/cjs/auth.js +4459 -1
- package/lib/cjs/bet-pack.js +15691 -1
- package/lib/cjs/index.js +19411 -1
- package/lib/cjs/insight.js +13509 -1
- package/lib/cjs/masters.js +20696 -1
- package/lib/cjs/notification.js +13087 -1
- package/lib/cjs/package.json +1 -0
- package/lib/cjs/pause-ad.js +8390 -1
- package/lib/cjs/points.js +7189 -1
- package/lib/cjs/polyfills.js +69 -0
- package/lib/cjs/polymarket.js +16394 -14
- package/lib/cjs/style.css +1 -0
- package/lib/cjs/useStreamLayerApp.js +4711 -1
- package/lib/dist/cjs/index.js +20696 -1
- package/lib/dist/es/index.js +20669 -10
- package/lib/dist/es/polyfills.js +92 -0
- package/lib/es/advertisement.js +2821 -2746
- package/lib/es/analytics.js +1 -1
- package/lib/es/feature.js +60 -56
- package/lib/es/index.js +1 -1
- package/lib/es/index10.js +181 -7
- package/lib/es/index11.js +371 -181
- package/lib/es/index12.js +3 -3
- package/lib/es/index13.js +4 -4
- package/lib/es/index14.js +2 -2
- package/lib/es/index15.js +384 -414
- package/lib/es/index16.js +45 -46
- package/lib/es/index2.js +11 -13
- package/lib/es/index3.js +34 -4
- package/lib/es/index4.js +3 -3
- package/lib/es/index5.js +3 -19
- package/lib/es/index6.js +7 -4
- package/lib/es/index7.js +284 -5
- package/lib/es/index8.js +236 -281
- package/lib/es/index9.js +8 -179
- package/lib/es/insight.js +1 -1
- package/lib/es/masters2.js +9 -10
- package/lib/es/notification.js +5 -5
- package/lib/es/pause-ad.js +1 -1
- package/lib/es/points.js +3 -3
- package/lib/es/polymarket.js +2 -2
- package/lib/es/storage.js +3 -3
- package/lib/es/style.css +1 -0
- package/lib/es/useStreamLayerApp2.js +5654 -4604
- package/lib/source.css +1 -120
- package/package.json +99 -83
- package/lib/cjs/Question.js +0 -1
- package/lib/cjs/analytics.js +0 -1
- package/lib/cjs/feature.js +0 -1
- package/lib/cjs/gamification-feature.js +0 -1
- package/lib/cjs/gamification-feature2.js +0 -1
- package/lib/cjs/hooks-n9ax4LRT.js +0 -1
- package/lib/cjs/index-CfSdnrfA.js +0 -5
- package/lib/cjs/index10.js +0 -1
- package/lib/cjs/index11.js +0 -1
- package/lib/cjs/index12.js +0 -1
- package/lib/cjs/index13.js +0 -4
- package/lib/cjs/index14.js +0 -1
- package/lib/cjs/index15.js +0 -1
- package/lib/cjs/index16.js +0 -5
- package/lib/cjs/index2.js +0 -1
- package/lib/cjs/index3.js +0 -1
- package/lib/cjs/index4.js +0 -5
- package/lib/cjs/index5.js +0 -1
- package/lib/cjs/index6.js +0 -1
- package/lib/cjs/index7.js +0 -1
- package/lib/cjs/index8.js +0 -1
- package/lib/cjs/index9.js +0 -7
- package/lib/cjs/masters2.js +0 -8
- package/lib/cjs/storage.js +0 -1
- package/lib/cjs/theme.js +0 -1
- package/lib/cjs/useStreamLayerApp2.js +0 -17
- package/lib/cjs/utils.js +0 -47
- package/lib/classic/app/advertisement.d.ts +0 -19
- package/lib/classic/app/app.d.ts +0 -23
- package/lib/classic/app/auth.d.ts +0 -4
- package/lib/classic/app/bet-pack.d.ts +0 -10
- package/lib/classic/app/insight.d.ts +0 -13
- package/lib/classic/app/masters.d.ts +0 -19
- package/lib/classic/app/notification.d.ts +0 -5
- package/lib/classic/app/pause-ad.d.ts +0 -27
- package/lib/classic/app/points.d.ts +0 -3
- package/lib/classic/app/polymarket.d.ts +0 -7
- package/lib/classic/app/useStreamLayerApp.d.ts +0 -1
- package/lib/classic/cjs/Question.js +0 -1
- package/lib/classic/cjs/advertisement.js +0 -203
- package/lib/classic/cjs/analytics.js +0 -1
- package/lib/classic/cjs/auth.js +0 -1
- package/lib/classic/cjs/bet-pack.js +0 -5
- package/lib/classic/cjs/feature.js +0 -1
- package/lib/classic/cjs/gamification-feature.js +0 -1
- package/lib/classic/cjs/hooks-n9ax4LRT.js +0 -1
- package/lib/classic/cjs/index-CfSdnrfA.js +0 -5
- package/lib/classic/cjs/index.js +0 -1
- package/lib/classic/cjs/index10.js +0 -1
- package/lib/classic/cjs/index11.js +0 -1
- package/lib/classic/cjs/index12.js +0 -1
- package/lib/classic/cjs/index13.js +0 -4
- package/lib/classic/cjs/index2.js +0 -5
- package/lib/classic/cjs/index3.js +0 -1
- package/lib/classic/cjs/index4.js +0 -1
- package/lib/classic/cjs/index5.js +0 -1
- package/lib/classic/cjs/index6.js +0 -1
- package/lib/classic/cjs/index7.js +0 -7
- package/lib/classic/cjs/index8.js +0 -1
- package/lib/classic/cjs/index9.js +0 -1
- package/lib/classic/cjs/insight.js +0 -1
- package/lib/classic/cjs/notification.js +0 -1
- package/lib/classic/cjs/notification2.js +0 -1
- package/lib/classic/cjs/pause-ad.js +0 -1
- package/lib/classic/cjs/points.js +0 -1
- package/lib/classic/cjs/polymarket.js +0 -14
- package/lib/classic/cjs/useStreamLayerApp.js +0 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +0 -17
- package/lib/classic/cjs/utils.js +0 -47
- package/lib/classic/es/Question.js +0 -503
- package/lib/classic/es/advertisement.js +0 -38792
- package/lib/classic/es/analytics.js +0 -84
- package/lib/classic/es/auth.js +0 -11
- package/lib/classic/es/bet-pack.js +0 -3418
- package/lib/classic/es/feature.js +0 -210
- package/lib/classic/es/gamification-feature.js +0 -4
- package/lib/classic/es/hooks-n9ax4LRT.js +0 -97
- package/lib/classic/es/index.js +0 -15
- package/lib/classic/es/index10.js +0 -321
- package/lib/classic/es/index11.js +0 -2592
- package/lib/classic/es/index12.js +0 -185
- package/lib/classic/es/index13.js +0 -820
- package/lib/classic/es/index2.js +0 -2605
- package/lib/classic/es/index3.js +0 -19
- package/lib/classic/es/index4.js +0 -6
- package/lib/classic/es/index5.js +0 -4
- package/lib/classic/es/index6.js +0 -285
- package/lib/classic/es/index7.js +0 -181
- package/lib/classic/es/index8.js +0 -7
- package/lib/classic/es/index9.js +0 -11
- package/lib/classic/es/insight.js +0 -79
- package/lib/classic/es/notification.js +0 -9
- package/lib/classic/es/notification2.js +0 -1126
- package/lib/classic/es/pause-ad.js +0 -232
- package/lib/classic/es/points.js +0 -76
- package/lib/classic/es/polymarket.js +0 -6617
- package/lib/classic/es/useStreamLayerApp.js +0 -4
- package/lib/classic/es/useStreamLayerApp2.js +0 -11627
- package/lib/classic/es/utils.js +0 -76
- package/lib/classic/index.d.ts +0 -6
- package/lib/classic/masters.d.ts +0 -8
- package/lib/classic/source.css +0 -110
- package/lib/dist/cjs/gamification-feature.js +0 -1
- package/lib/dist/cjs/index-CfSdnrfA.js +0 -5
- package/lib/dist/cjs/masters.js +0 -69
- package/lib/dist/es/gamification-feature.js +0 -4
- package/lib/dist/es/index-CfSdnrfA.js +0 -3775
- package/lib/dist/es/masters.js +0 -22387
- package/lib/dist/index.d.ts +0 -1357
- package/lib/dist/source.css +0 -64
- package/lib/es/index-CfSdnrfA.js +0 -3775
- package/lib/style.css +0 -1
- /package/lib/{classic/es/index-CfSdnrfA.js → es/index-D8wyDNJD.js} +0 -0
|
@@ -1,3418 +0,0 @@
|
|
|
1
|
-
import { jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
2
|
-
import { e as gt } from "./index4.js";
|
|
3
|
-
import $, { forwardRef as Ae, useRef as D, useState as W, useEffect as Y, useLayoutEffect as vt, createContext as He, useMemo as Re, useCallback as qe, memo as wt } from "react";
|
|
4
|
-
import { s as _, u as Se, a as yt, c as Ee } from "./feature.js";
|
|
5
|
-
import bt from "lodash.throttle";
|
|
6
|
-
import { B as te } from "./index6.js";
|
|
7
|
-
import { d as St } from "./index7.js";
|
|
8
|
-
import { Q as Et } from "./index13.js";
|
|
9
|
-
import { d as Tt, e as xt, S as We } from "./useStreamLayerApp2.js";
|
|
10
|
-
import { Y as Ct } from "./hooks-n9ax4LRT.js";
|
|
11
|
-
function _e(t) {
|
|
12
|
-
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
13
|
-
}
|
|
14
|
-
function Oe(t, e) {
|
|
15
|
-
t === void 0 && (t = {}), e === void 0 && (e = {});
|
|
16
|
-
const s = ["__proto__", "constructor", "prototype"];
|
|
17
|
-
Object.keys(e).filter((r) => s.indexOf(r) < 0).forEach((r) => {
|
|
18
|
-
typeof t[r] > "u" ? t[r] = e[r] : _e(e[r]) && _e(t[r]) && Object.keys(e[r]).length > 0 && Oe(t[r], e[r]);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
const Ye = {
|
|
22
|
-
body: {},
|
|
23
|
-
addEventListener() {
|
|
24
|
-
},
|
|
25
|
-
removeEventListener() {
|
|
26
|
-
},
|
|
27
|
-
activeElement: {
|
|
28
|
-
blur() {
|
|
29
|
-
},
|
|
30
|
-
nodeName: ""
|
|
31
|
-
},
|
|
32
|
-
querySelector() {
|
|
33
|
-
return null;
|
|
34
|
-
},
|
|
35
|
-
querySelectorAll() {
|
|
36
|
-
return [];
|
|
37
|
-
},
|
|
38
|
-
getElementById() {
|
|
39
|
-
return null;
|
|
40
|
-
},
|
|
41
|
-
createEvent() {
|
|
42
|
-
return {
|
|
43
|
-
initEvent() {
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
},
|
|
47
|
-
createElement() {
|
|
48
|
-
return {
|
|
49
|
-
children: [],
|
|
50
|
-
childNodes: [],
|
|
51
|
-
style: {},
|
|
52
|
-
setAttribute() {
|
|
53
|
-
},
|
|
54
|
-
getElementsByTagName() {
|
|
55
|
-
return [];
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
createElementNS() {
|
|
60
|
-
return {};
|
|
61
|
-
},
|
|
62
|
-
importNode() {
|
|
63
|
-
return null;
|
|
64
|
-
},
|
|
65
|
-
location: {
|
|
66
|
-
hash: "",
|
|
67
|
-
host: "",
|
|
68
|
-
hostname: "",
|
|
69
|
-
href: "",
|
|
70
|
-
origin: "",
|
|
71
|
-
pathname: "",
|
|
72
|
-
protocol: "",
|
|
73
|
-
search: ""
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
function K() {
|
|
77
|
-
const t = typeof document < "u" ? document : {};
|
|
78
|
-
return Oe(t, Ye), t;
|
|
79
|
-
}
|
|
80
|
-
const Pt = {
|
|
81
|
-
document: Ye,
|
|
82
|
-
navigator: {
|
|
83
|
-
userAgent: ""
|
|
84
|
-
},
|
|
85
|
-
location: {
|
|
86
|
-
hash: "",
|
|
87
|
-
host: "",
|
|
88
|
-
hostname: "",
|
|
89
|
-
href: "",
|
|
90
|
-
origin: "",
|
|
91
|
-
pathname: "",
|
|
92
|
-
protocol: "",
|
|
93
|
-
search: ""
|
|
94
|
-
},
|
|
95
|
-
history: {
|
|
96
|
-
replaceState() {
|
|
97
|
-
},
|
|
98
|
-
pushState() {
|
|
99
|
-
},
|
|
100
|
-
go() {
|
|
101
|
-
},
|
|
102
|
-
back() {
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
CustomEvent: function() {
|
|
106
|
-
return this;
|
|
107
|
-
},
|
|
108
|
-
addEventListener() {
|
|
109
|
-
},
|
|
110
|
-
removeEventListener() {
|
|
111
|
-
},
|
|
112
|
-
getComputedStyle() {
|
|
113
|
-
return {
|
|
114
|
-
getPropertyValue() {
|
|
115
|
-
return "";
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
},
|
|
119
|
-
Image() {
|
|
120
|
-
},
|
|
121
|
-
Date() {
|
|
122
|
-
},
|
|
123
|
-
screen: {},
|
|
124
|
-
setTimeout() {
|
|
125
|
-
},
|
|
126
|
-
clearTimeout() {
|
|
127
|
-
},
|
|
128
|
-
matchMedia() {
|
|
129
|
-
return {};
|
|
130
|
-
},
|
|
131
|
-
requestAnimationFrame(t) {
|
|
132
|
-
return typeof setTimeout > "u" ? (t(), null) : setTimeout(t, 0);
|
|
133
|
-
},
|
|
134
|
-
cancelAnimationFrame(t) {
|
|
135
|
-
typeof setTimeout > "u" || clearTimeout(t);
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
function B() {
|
|
139
|
-
const t = typeof window < "u" ? window : {};
|
|
140
|
-
return Oe(t, Pt), t;
|
|
141
|
-
}
|
|
142
|
-
function Mt(t) {
|
|
143
|
-
return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
|
|
144
|
-
}
|
|
145
|
-
function kt(t) {
|
|
146
|
-
const e = t;
|
|
147
|
-
Object.keys(e).forEach((s) => {
|
|
148
|
-
try {
|
|
149
|
-
e[s] = null;
|
|
150
|
-
} catch {
|
|
151
|
-
}
|
|
152
|
-
try {
|
|
153
|
-
delete e[s];
|
|
154
|
-
} catch {
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
function Te(t, e) {
|
|
159
|
-
return e === void 0 && (e = 0), setTimeout(t, e);
|
|
160
|
-
}
|
|
161
|
-
function le() {
|
|
162
|
-
return Date.now();
|
|
163
|
-
}
|
|
164
|
-
function It(t) {
|
|
165
|
-
const e = B();
|
|
166
|
-
let s;
|
|
167
|
-
return e.getComputedStyle && (s = e.getComputedStyle(t, null)), !s && t.currentStyle && (s = t.currentStyle), s || (s = t.style), s;
|
|
168
|
-
}
|
|
169
|
-
function Lt(t, e) {
|
|
170
|
-
e === void 0 && (e = "x");
|
|
171
|
-
const s = B();
|
|
172
|
-
let r, n, i;
|
|
173
|
-
const l = It(t);
|
|
174
|
-
return s.WebKitCSSMatrix ? (n = l.transform || l.webkitTransform, n.split(",").length > 6 && (n = n.split(", ").map((a) => a.replace(",", ".")).join(", ")), i = new s.WebKitCSSMatrix(n === "none" ? "" : n)) : (i = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = i.toString().split(",")), e === "x" && (s.WebKitCSSMatrix ? n = i.m41 : r.length === 16 ? n = parseFloat(r[12]) : n = parseFloat(r[4])), e === "y" && (s.WebKitCSSMatrix ? n = i.m42 : r.length === 16 ? n = parseFloat(r[13]) : n = parseFloat(r[5])), n || 0;
|
|
175
|
-
}
|
|
176
|
-
function se(t) {
|
|
177
|
-
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
|
|
178
|
-
}
|
|
179
|
-
function At(t) {
|
|
180
|
-
return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
|
|
181
|
-
}
|
|
182
|
-
function N() {
|
|
183
|
-
const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
|
|
184
|
-
for (let s = 1; s < arguments.length; s += 1) {
|
|
185
|
-
const r = s < 0 || arguments.length <= s ? void 0 : arguments[s];
|
|
186
|
-
if (r != null && !At(r)) {
|
|
187
|
-
const n = Object.keys(Object(r)).filter((i) => e.indexOf(i) < 0);
|
|
188
|
-
for (let i = 0, l = n.length; i < l; i += 1) {
|
|
189
|
-
const a = n[i], o = Object.getOwnPropertyDescriptor(r, a);
|
|
190
|
-
o !== void 0 && o.enumerable && (se(t[a]) && se(r[a]) ? r[a].__swiper__ ? t[a] = r[a] : N(t[a], r[a]) : !se(t[a]) && se(r[a]) ? (t[a] = {}, r[a].__swiper__ ? t[a] = r[a] : N(t[a], r[a])) : t[a] = r[a]);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
return t;
|
|
195
|
-
}
|
|
196
|
-
function re(t, e, s) {
|
|
197
|
-
t.style.setProperty(e, s);
|
|
198
|
-
}
|
|
199
|
-
function Xe(t) {
|
|
200
|
-
let {
|
|
201
|
-
swiper: e,
|
|
202
|
-
targetPosition: s,
|
|
203
|
-
side: r
|
|
204
|
-
} = t;
|
|
205
|
-
const n = B(), i = -e.translate;
|
|
206
|
-
let l = null, a;
|
|
207
|
-
const o = e.params.speed;
|
|
208
|
-
e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
|
|
209
|
-
const c = s > i ? "next" : "prev", d = (h, g) => c === "next" && h >= g || c === "prev" && h <= g, p = () => {
|
|
210
|
-
a = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = a);
|
|
211
|
-
const h = Math.max(Math.min((a - l) / o, 1), 0), g = 0.5 - Math.cos(h * Math.PI) / 2;
|
|
212
|
-
let m = i + g * (s - i);
|
|
213
|
-
if (d(m, s) && (m = s), e.wrapperEl.scrollTo({
|
|
214
|
-
[r]: m
|
|
215
|
-
}), d(m, s)) {
|
|
216
|
-
e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
|
|
217
|
-
e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
|
|
218
|
-
[r]: m
|
|
219
|
-
});
|
|
220
|
-
}), n.cancelAnimationFrame(e.cssModeFrameID);
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
e.cssModeFrameID = n.requestAnimationFrame(p);
|
|
224
|
-
};
|
|
225
|
-
p();
|
|
226
|
-
}
|
|
227
|
-
function H(t, e) {
|
|
228
|
-
e === void 0 && (e = "");
|
|
229
|
-
const s = B(), r = [...t.children];
|
|
230
|
-
return s.HTMLSlotElement && t instanceof HTMLSlotElement && r.push(...t.assignedElements()), e ? r.filter((n) => n.matches(e)) : r;
|
|
231
|
-
}
|
|
232
|
-
function Ot(t, e) {
|
|
233
|
-
const s = [e];
|
|
234
|
-
for (; s.length > 0; ) {
|
|
235
|
-
const r = s.shift();
|
|
236
|
-
if (t === r)
|
|
237
|
-
return !0;
|
|
238
|
-
s.push(...r.children, ...r.shadowRoot ? r.shadowRoot.children : [], ...r.assignedElements ? r.assignedElements() : []);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
function zt(t, e) {
|
|
242
|
-
const s = B();
|
|
243
|
-
let r = e.contains(t);
|
|
244
|
-
return !r && s.HTMLSlotElement && e instanceof HTMLSlotElement && (r = [...e.assignedElements()].includes(t), r || (r = Ot(t, e))), r;
|
|
245
|
-
}
|
|
246
|
-
function oe(t) {
|
|
247
|
-
try {
|
|
248
|
-
console.warn(t);
|
|
249
|
-
return;
|
|
250
|
-
} catch {
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
function de(t, e) {
|
|
254
|
-
e === void 0 && (e = []);
|
|
255
|
-
const s = document.createElement(t);
|
|
256
|
-
return s.classList.add(...Array.isArray(e) ? e : Mt(e)), s;
|
|
257
|
-
}
|
|
258
|
-
function _t(t, e) {
|
|
259
|
-
const s = [];
|
|
260
|
-
for (; t.previousElementSibling; ) {
|
|
261
|
-
const r = t.previousElementSibling;
|
|
262
|
-
e ? r.matches(e) && s.push(r) : s.push(r), t = r;
|
|
263
|
-
}
|
|
264
|
-
return s;
|
|
265
|
-
}
|
|
266
|
-
function $t(t, e) {
|
|
267
|
-
const s = [];
|
|
268
|
-
for (; t.nextElementSibling; ) {
|
|
269
|
-
const r = t.nextElementSibling;
|
|
270
|
-
e ? r.matches(e) && s.push(r) : s.push(r), t = r;
|
|
271
|
-
}
|
|
272
|
-
return s;
|
|
273
|
-
}
|
|
274
|
-
function X(t, e) {
|
|
275
|
-
return B().getComputedStyle(t, null).getPropertyValue(e);
|
|
276
|
-
}
|
|
277
|
-
function ce(t) {
|
|
278
|
-
let e = t, s;
|
|
279
|
-
if (e) {
|
|
280
|
-
for (s = 0; (e = e.previousSibling) !== null; )
|
|
281
|
-
e.nodeType === 1 && (s += 1);
|
|
282
|
-
return s;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
function Ue(t, e) {
|
|
286
|
-
const s = [];
|
|
287
|
-
let r = t.parentElement;
|
|
288
|
-
for (; r; )
|
|
289
|
-
e ? r.matches(e) && s.push(r) : s.push(r), r = r.parentElement;
|
|
290
|
-
return s;
|
|
291
|
-
}
|
|
292
|
-
function xe(t, e, s) {
|
|
293
|
-
const r = B();
|
|
294
|
-
return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
|
|
295
|
-
}
|
|
296
|
-
function R(t) {
|
|
297
|
-
return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
|
|
298
|
-
}
|
|
299
|
-
let me;
|
|
300
|
-
function Gt() {
|
|
301
|
-
const t = B(), e = K();
|
|
302
|
-
return {
|
|
303
|
-
smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
|
|
304
|
-
touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
function Qe() {
|
|
308
|
-
return me || (me = Gt()), me;
|
|
309
|
-
}
|
|
310
|
-
let he;
|
|
311
|
-
function Bt(t) {
|
|
312
|
-
let {
|
|
313
|
-
userAgent: e
|
|
314
|
-
} = t === void 0 ? {} : t;
|
|
315
|
-
const s = Qe(), r = B(), n = r.navigator.platform, i = e || r.navigator.userAgent, l = {
|
|
316
|
-
ios: !1,
|
|
317
|
-
android: !1
|
|
318
|
-
}, a = r.screen.width, o = r.screen.height, c = i.match(/(Android);?[\s\/]+([\d.]+)?/);
|
|
319
|
-
let d = i.match(/(iPad).*OS\s([\d_]+)/);
|
|
320
|
-
const p = i.match(/(iPod)(.*OS\s([\d_]+))?/), h = !d && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/), g = n === "Win32";
|
|
321
|
-
let m = n === "MacIntel";
|
|
322
|
-
const T = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
|
|
323
|
-
return !d && m && s.touch && T.indexOf(`${a}x${o}`) >= 0 && (d = i.match(/(Version)\/([\d.]+)/), d || (d = [0, 1, "13_0_0"]), m = !1), c && !g && (l.os = "android", l.android = !0), (d || h || p) && (l.os = "ios", l.ios = !0), l;
|
|
324
|
-
}
|
|
325
|
-
function Ke(t) {
|
|
326
|
-
return t === void 0 && (t = {}), he || (he = Bt(t)), he;
|
|
327
|
-
}
|
|
328
|
-
let ge;
|
|
329
|
-
function Nt() {
|
|
330
|
-
const t = B(), e = Ke();
|
|
331
|
-
let s = !1;
|
|
332
|
-
function r() {
|
|
333
|
-
const a = t.navigator.userAgent.toLowerCase();
|
|
334
|
-
return a.indexOf("safari") >= 0 && a.indexOf("chrome") < 0 && a.indexOf("android") < 0;
|
|
335
|
-
}
|
|
336
|
-
if (r()) {
|
|
337
|
-
const a = String(t.navigator.userAgent);
|
|
338
|
-
if (a.includes("Version/")) {
|
|
339
|
-
const [o, c] = a.split("Version/")[1].split(" ")[0].split(".").map((d) => Number(d));
|
|
340
|
-
s = o < 16 || o === 16 && c < 2;
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
const n = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent), i = r(), l = i || n && e.ios;
|
|
344
|
-
return {
|
|
345
|
-
isSafari: s || i,
|
|
346
|
-
needPerspectiveFix: s,
|
|
347
|
-
need3dFix: l,
|
|
348
|
-
isWebView: n
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
function Je() {
|
|
352
|
-
return ge || (ge = Nt()), ge;
|
|
353
|
-
}
|
|
354
|
-
function Dt(t) {
|
|
355
|
-
let {
|
|
356
|
-
swiper: e,
|
|
357
|
-
on: s,
|
|
358
|
-
emit: r
|
|
359
|
-
} = t;
|
|
360
|
-
const n = B();
|
|
361
|
-
let i = null, l = null;
|
|
362
|
-
const a = () => {
|
|
363
|
-
!e || e.destroyed || !e.initialized || (r("beforeResize"), r("resize"));
|
|
364
|
-
}, o = () => {
|
|
365
|
-
!e || e.destroyed || !e.initialized || (i = new ResizeObserver((p) => {
|
|
366
|
-
l = n.requestAnimationFrame(() => {
|
|
367
|
-
const {
|
|
368
|
-
width: h,
|
|
369
|
-
height: g
|
|
370
|
-
} = e;
|
|
371
|
-
let m = h, T = g;
|
|
372
|
-
p.forEach((M) => {
|
|
373
|
-
let {
|
|
374
|
-
contentBoxSize: w,
|
|
375
|
-
contentRect: u,
|
|
376
|
-
target: f
|
|
377
|
-
} = M;
|
|
378
|
-
f && f !== e.el || (m = u ? u.width : (w[0] || w).inlineSize, T = u ? u.height : (w[0] || w).blockSize);
|
|
379
|
-
}), (m !== h || T !== g) && a();
|
|
380
|
-
});
|
|
381
|
-
}), i.observe(e.el));
|
|
382
|
-
}, c = () => {
|
|
383
|
-
l && n.cancelAnimationFrame(l), i && i.unobserve && e.el && (i.unobserve(e.el), i = null);
|
|
384
|
-
}, d = () => {
|
|
385
|
-
!e || e.destroyed || !e.initialized || r("orientationchange");
|
|
386
|
-
};
|
|
387
|
-
s("init", () => {
|
|
388
|
-
if (e.params.resizeObserver && typeof n.ResizeObserver < "u") {
|
|
389
|
-
o();
|
|
390
|
-
return;
|
|
391
|
-
}
|
|
392
|
-
n.addEventListener("resize", a), n.addEventListener("orientationchange", d);
|
|
393
|
-
}), s("destroy", () => {
|
|
394
|
-
c(), n.removeEventListener("resize", a), n.removeEventListener("orientationchange", d);
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
function Ft(t) {
|
|
398
|
-
let {
|
|
399
|
-
swiper: e,
|
|
400
|
-
extendParams: s,
|
|
401
|
-
on: r,
|
|
402
|
-
emit: n
|
|
403
|
-
} = t;
|
|
404
|
-
const i = [], l = B(), a = function(d, p) {
|
|
405
|
-
p === void 0 && (p = {});
|
|
406
|
-
const h = l.MutationObserver || l.WebkitMutationObserver, g = new h((m) => {
|
|
407
|
-
if (e.__preventObserver__) return;
|
|
408
|
-
if (m.length === 1) {
|
|
409
|
-
n("observerUpdate", m[0]);
|
|
410
|
-
return;
|
|
411
|
-
}
|
|
412
|
-
const T = function() {
|
|
413
|
-
n("observerUpdate", m[0]);
|
|
414
|
-
};
|
|
415
|
-
l.requestAnimationFrame ? l.requestAnimationFrame(T) : l.setTimeout(T, 0);
|
|
416
|
-
});
|
|
417
|
-
g.observe(d, {
|
|
418
|
-
attributes: typeof p.attributes > "u" ? !0 : p.attributes,
|
|
419
|
-
childList: e.isElement || (typeof p.childList > "u" ? !0 : p).childList,
|
|
420
|
-
characterData: typeof p.characterData > "u" ? !0 : p.characterData
|
|
421
|
-
}), i.push(g);
|
|
422
|
-
}, o = () => {
|
|
423
|
-
if (e.params.observer) {
|
|
424
|
-
if (e.params.observeParents) {
|
|
425
|
-
const d = Ue(e.hostEl);
|
|
426
|
-
for (let p = 0; p < d.length; p += 1)
|
|
427
|
-
a(d[p]);
|
|
428
|
-
}
|
|
429
|
-
a(e.hostEl, {
|
|
430
|
-
childList: e.params.observeSlideChildren
|
|
431
|
-
}), a(e.wrapperEl, {
|
|
432
|
-
attributes: !1
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
}, c = () => {
|
|
436
|
-
i.forEach((d) => {
|
|
437
|
-
d.disconnect();
|
|
438
|
-
}), i.splice(0, i.length);
|
|
439
|
-
};
|
|
440
|
-
s({
|
|
441
|
-
observer: !1,
|
|
442
|
-
observeParents: !1,
|
|
443
|
-
observeSlideChildren: !1
|
|
444
|
-
}), r("init", o), r("destroy", c);
|
|
445
|
-
}
|
|
446
|
-
var Vt = {
|
|
447
|
-
on(t, e, s) {
|
|
448
|
-
const r = this;
|
|
449
|
-
if (!r.eventsListeners || r.destroyed || typeof e != "function") return r;
|
|
450
|
-
const n = s ? "unshift" : "push";
|
|
451
|
-
return t.split(" ").forEach((i) => {
|
|
452
|
-
r.eventsListeners[i] || (r.eventsListeners[i] = []), r.eventsListeners[i][n](e);
|
|
453
|
-
}), r;
|
|
454
|
-
},
|
|
455
|
-
once(t, e, s) {
|
|
456
|
-
const r = this;
|
|
457
|
-
if (!r.eventsListeners || r.destroyed || typeof e != "function") return r;
|
|
458
|
-
function n() {
|
|
459
|
-
r.off(t, n), n.__emitterProxy && delete n.__emitterProxy;
|
|
460
|
-
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++)
|
|
461
|
-
l[a] = arguments[a];
|
|
462
|
-
e.apply(r, l);
|
|
463
|
-
}
|
|
464
|
-
return n.__emitterProxy = e, r.on(t, n, s);
|
|
465
|
-
},
|
|
466
|
-
onAny(t, e) {
|
|
467
|
-
const s = this;
|
|
468
|
-
if (!s.eventsListeners || s.destroyed || typeof t != "function") return s;
|
|
469
|
-
const r = e ? "unshift" : "push";
|
|
470
|
-
return s.eventsAnyListeners.indexOf(t) < 0 && s.eventsAnyListeners[r](t), s;
|
|
471
|
-
},
|
|
472
|
-
offAny(t) {
|
|
473
|
-
const e = this;
|
|
474
|
-
if (!e.eventsListeners || e.destroyed || !e.eventsAnyListeners) return e;
|
|
475
|
-
const s = e.eventsAnyListeners.indexOf(t);
|
|
476
|
-
return s >= 0 && e.eventsAnyListeners.splice(s, 1), e;
|
|
477
|
-
},
|
|
478
|
-
off(t, e) {
|
|
479
|
-
const s = this;
|
|
480
|
-
return !s.eventsListeners || s.destroyed || !s.eventsListeners || t.split(" ").forEach((r) => {
|
|
481
|
-
typeof e > "u" ? s.eventsListeners[r] = [] : s.eventsListeners[r] && s.eventsListeners[r].forEach((n, i) => {
|
|
482
|
-
(n === e || n.__emitterProxy && n.__emitterProxy === e) && s.eventsListeners[r].splice(i, 1);
|
|
483
|
-
});
|
|
484
|
-
}), s;
|
|
485
|
-
},
|
|
486
|
-
emit() {
|
|
487
|
-
const t = this;
|
|
488
|
-
if (!t.eventsListeners || t.destroyed || !t.eventsListeners) return t;
|
|
489
|
-
let e, s, r;
|
|
490
|
-
for (var n = arguments.length, i = new Array(n), l = 0; l < n; l++)
|
|
491
|
-
i[l] = arguments[l];
|
|
492
|
-
return typeof i[0] == "string" || Array.isArray(i[0]) ? (e = i[0], s = i.slice(1, i.length), r = t) : (e = i[0].events, s = i[0].data, r = i[0].context || t), s.unshift(r), (Array.isArray(e) ? e : e.split(" ")).forEach((a) => {
|
|
493
|
-
t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((o) => {
|
|
494
|
-
o.apply(r, [a, ...s]);
|
|
495
|
-
}), t.eventsListeners && t.eventsListeners[a] && t.eventsListeners[a].forEach((o) => {
|
|
496
|
-
o.apply(r, s);
|
|
497
|
-
});
|
|
498
|
-
}), t;
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
|
-
function jt() {
|
|
502
|
-
const t = this;
|
|
503
|
-
let e, s;
|
|
504
|
-
const r = t.el;
|
|
505
|
-
typeof t.params.width < "u" && t.params.width !== null ? e = t.params.width : e = r.clientWidth, typeof t.params.height < "u" && t.params.height !== null ? s = t.params.height : s = r.clientHeight, !(e === 0 && t.isHorizontal() || s === 0 && t.isVertical()) && (e = e - parseInt(X(r, "padding-left") || 0, 10) - parseInt(X(r, "padding-right") || 0, 10), s = s - parseInt(X(r, "padding-top") || 0, 10) - parseInt(X(r, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(s) && (s = 0), Object.assign(t, {
|
|
506
|
-
width: e,
|
|
507
|
-
height: s,
|
|
508
|
-
size: t.isHorizontal() ? e : s
|
|
509
|
-
}));
|
|
510
|
-
}
|
|
511
|
-
function Ht() {
|
|
512
|
-
const t = this;
|
|
513
|
-
function e(S, E) {
|
|
514
|
-
return parseFloat(S.getPropertyValue(t.getDirectionLabel(E)) || 0);
|
|
515
|
-
}
|
|
516
|
-
const s = t.params, {
|
|
517
|
-
wrapperEl: r,
|
|
518
|
-
slidesEl: n,
|
|
519
|
-
size: i,
|
|
520
|
-
rtlTranslate: l,
|
|
521
|
-
wrongRTL: a
|
|
522
|
-
} = t, o = t.virtual && s.virtual.enabled, c = o ? t.virtual.slides.length : t.slides.length, d = H(n, `.${t.params.slideClass}, swiper-slide`), p = o ? t.virtual.slides.length : d.length;
|
|
523
|
-
let h = [];
|
|
524
|
-
const g = [], m = [];
|
|
525
|
-
let T = s.slidesOffsetBefore;
|
|
526
|
-
typeof T == "function" && (T = s.slidesOffsetBefore.call(t));
|
|
527
|
-
let M = s.slidesOffsetAfter;
|
|
528
|
-
typeof M == "function" && (M = s.slidesOffsetAfter.call(t));
|
|
529
|
-
const w = t.snapGrid.length, u = t.slidesGrid.length;
|
|
530
|
-
let f = s.spaceBetween, v = -T, y = 0, C = 0;
|
|
531
|
-
if (typeof i > "u")
|
|
532
|
-
return;
|
|
533
|
-
typeof f == "string" && f.indexOf("%") >= 0 ? f = parseFloat(f.replace("%", "")) / 100 * i : typeof f == "string" && (f = parseFloat(f)), t.virtualSize = -f, d.forEach((S) => {
|
|
534
|
-
l ? S.style.marginLeft = "" : S.style.marginRight = "", S.style.marginBottom = "", S.style.marginTop = "";
|
|
535
|
-
}), s.centeredSlides && s.cssMode && (re(r, "--swiper-centered-offset-before", ""), re(r, "--swiper-centered-offset-after", ""));
|
|
536
|
-
const A = s.grid && s.grid.rows > 1 && t.grid;
|
|
537
|
-
A ? t.grid.initSlides(d) : t.grid && t.grid.unsetSlides();
|
|
538
|
-
let I;
|
|
539
|
-
const b = s.slidesPerView === "auto" && s.breakpoints && Object.keys(s.breakpoints).filter((S) => typeof s.breakpoints[S].slidesPerView < "u").length > 0;
|
|
540
|
-
for (let S = 0; S < p; S += 1) {
|
|
541
|
-
I = 0;
|
|
542
|
-
let E;
|
|
543
|
-
if (d[S] && (E = d[S]), A && t.grid.updateSlide(S, E, d), !(d[S] && X(E, "display") === "none")) {
|
|
544
|
-
if (s.slidesPerView === "auto") {
|
|
545
|
-
b && (d[S].style[t.getDirectionLabel("width")] = "");
|
|
546
|
-
const k = getComputedStyle(E), L = E.style.transform, O = E.style.webkitTransform;
|
|
547
|
-
if (L && (E.style.transform = "none"), O && (E.style.webkitTransform = "none"), s.roundLengths)
|
|
548
|
-
I = t.isHorizontal() ? xe(E, "width") : xe(E, "height");
|
|
549
|
-
else {
|
|
550
|
-
const x = e(k, "width"), z = e(k, "padding-left"), U = e(k, "padding-right"), V = e(k, "margin-left"), G = e(k, "margin-right"), j = k.getPropertyValue("box-sizing");
|
|
551
|
-
if (j && j === "border-box")
|
|
552
|
-
I = x + V + G;
|
|
553
|
-
else {
|
|
554
|
-
const {
|
|
555
|
-
clientWidth: mt,
|
|
556
|
-
offsetWidth: ht
|
|
557
|
-
} = E;
|
|
558
|
-
I = x + z + U + V + G + (ht - mt);
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
L && (E.style.transform = L), O && (E.style.webkitTransform = O), s.roundLengths && (I = Math.floor(I));
|
|
562
|
-
} else
|
|
563
|
-
I = (i - (s.slidesPerView - 1) * f) / s.slidesPerView, s.roundLengths && (I = Math.floor(I)), d[S] && (d[S].style[t.getDirectionLabel("width")] = `${I}px`);
|
|
564
|
-
d[S] && (d[S].swiperSlideSize = I), m.push(I), s.centeredSlides ? (v = v + I / 2 + y / 2 + f, y === 0 && S !== 0 && (v = v - i / 2 - f), S === 0 && (v = v - i / 2 - f), Math.abs(v) < 1 / 1e3 && (v = 0), s.roundLengths && (v = Math.floor(v)), C % s.slidesPerGroup === 0 && h.push(v), g.push(v)) : (s.roundLengths && (v = Math.floor(v)), (C - Math.min(t.params.slidesPerGroupSkip, C)) % t.params.slidesPerGroup === 0 && h.push(v), g.push(v), v = v + I + f), t.virtualSize += I + f, y = I, C += 1;
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
if (t.virtualSize = Math.max(t.virtualSize, i) + M, l && a && (s.effect === "slide" || s.effect === "coverflow") && (r.style.width = `${t.virtualSize + f}px`), s.setWrapperSize && (r.style[t.getDirectionLabel("width")] = `${t.virtualSize + f}px`), A && t.grid.updateWrapperSize(I, h), !s.centeredSlides) {
|
|
568
|
-
const S = [];
|
|
569
|
-
for (let E = 0; E < h.length; E += 1) {
|
|
570
|
-
let k = h[E];
|
|
571
|
-
s.roundLengths && (k = Math.floor(k)), h[E] <= t.virtualSize - i && S.push(k);
|
|
572
|
-
}
|
|
573
|
-
h = S, Math.floor(t.virtualSize - i) - Math.floor(h[h.length - 1]) > 1 && h.push(t.virtualSize - i);
|
|
574
|
-
}
|
|
575
|
-
if (o && s.loop) {
|
|
576
|
-
const S = m[0] + f;
|
|
577
|
-
if (s.slidesPerGroup > 1) {
|
|
578
|
-
const E = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / s.slidesPerGroup), k = S * s.slidesPerGroup;
|
|
579
|
-
for (let L = 0; L < E; L += 1)
|
|
580
|
-
h.push(h[h.length - 1] + k);
|
|
581
|
-
}
|
|
582
|
-
for (let E = 0; E < t.virtual.slidesBefore + t.virtual.slidesAfter; E += 1)
|
|
583
|
-
s.slidesPerGroup === 1 && h.push(h[h.length - 1] + S), g.push(g[g.length - 1] + S), t.virtualSize += S;
|
|
584
|
-
}
|
|
585
|
-
if (h.length === 0 && (h = [0]), f !== 0) {
|
|
586
|
-
const S = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
|
|
587
|
-
d.filter((E, k) => !s.cssMode || s.loop ? !0 : k !== d.length - 1).forEach((E) => {
|
|
588
|
-
E.style[S] = `${f}px`;
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
if (s.centeredSlides && s.centeredSlidesBounds) {
|
|
592
|
-
let S = 0;
|
|
593
|
-
m.forEach((k) => {
|
|
594
|
-
S += k + (f || 0);
|
|
595
|
-
}), S -= f;
|
|
596
|
-
const E = S > i ? S - i : 0;
|
|
597
|
-
h = h.map((k) => k <= 0 ? -T : k > E ? E + M : k);
|
|
598
|
-
}
|
|
599
|
-
if (s.centerInsufficientSlides) {
|
|
600
|
-
let S = 0;
|
|
601
|
-
m.forEach((k) => {
|
|
602
|
-
S += k + (f || 0);
|
|
603
|
-
}), S -= f;
|
|
604
|
-
const E = (s.slidesOffsetBefore || 0) + (s.slidesOffsetAfter || 0);
|
|
605
|
-
if (S + E < i) {
|
|
606
|
-
const k = (i - S - E) / 2;
|
|
607
|
-
h.forEach((L, O) => {
|
|
608
|
-
h[O] = L - k;
|
|
609
|
-
}), g.forEach((L, O) => {
|
|
610
|
-
g[O] = L + k;
|
|
611
|
-
});
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
if (Object.assign(t, {
|
|
615
|
-
slides: d,
|
|
616
|
-
snapGrid: h,
|
|
617
|
-
slidesGrid: g,
|
|
618
|
-
slidesSizesGrid: m
|
|
619
|
-
}), s.centeredSlides && s.cssMode && !s.centeredSlidesBounds) {
|
|
620
|
-
re(r, "--swiper-centered-offset-before", `${-h[0]}px`), re(r, "--swiper-centered-offset-after", `${t.size / 2 - m[m.length - 1] / 2}px`);
|
|
621
|
-
const S = -t.snapGrid[0], E = -t.slidesGrid[0];
|
|
622
|
-
t.snapGrid = t.snapGrid.map((k) => k + S), t.slidesGrid = t.slidesGrid.map((k) => k + E);
|
|
623
|
-
}
|
|
624
|
-
if (p !== c && t.emit("slidesLengthChange"), h.length !== w && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), g.length !== u && t.emit("slidesGridLengthChange"), s.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !s.cssMode && (s.effect === "slide" || s.effect === "fade")) {
|
|
625
|
-
const S = `${s.containerModifierClass}backface-hidden`, E = t.el.classList.contains(S);
|
|
626
|
-
p <= s.maxBackfaceHiddenSlides ? E || t.el.classList.add(S) : E && t.el.classList.remove(S);
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
function Rt(t) {
|
|
630
|
-
const e = this, s = [], r = e.virtual && e.params.virtual.enabled;
|
|
631
|
-
let n = 0, i;
|
|
632
|
-
typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
|
|
633
|
-
const l = (a) => r ? e.slides[e.getSlideIndexByData(a)] : e.slides[a];
|
|
634
|
-
if (e.params.slidesPerView !== "auto" && e.params.slidesPerView > 1)
|
|
635
|
-
if (e.params.centeredSlides)
|
|
636
|
-
(e.visibleSlides || []).forEach((a) => {
|
|
637
|
-
s.push(a);
|
|
638
|
-
});
|
|
639
|
-
else
|
|
640
|
-
for (i = 0; i < Math.ceil(e.params.slidesPerView); i += 1) {
|
|
641
|
-
const a = e.activeIndex + i;
|
|
642
|
-
if (a > e.slides.length && !r) break;
|
|
643
|
-
s.push(l(a));
|
|
644
|
-
}
|
|
645
|
-
else
|
|
646
|
-
s.push(l(e.activeIndex));
|
|
647
|
-
for (i = 0; i < s.length; i += 1)
|
|
648
|
-
if (typeof s[i] < "u") {
|
|
649
|
-
const a = s[i].offsetHeight;
|
|
650
|
-
n = a > n ? a : n;
|
|
651
|
-
}
|
|
652
|
-
(n || n === 0) && (e.wrapperEl.style.height = `${n}px`);
|
|
653
|
-
}
|
|
654
|
-
function qt() {
|
|
655
|
-
const t = this, e = t.slides, s = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
|
|
656
|
-
for (let r = 0; r < e.length; r += 1)
|
|
657
|
-
e[r].swiperSlideOffset = (t.isHorizontal() ? e[r].offsetLeft : e[r].offsetTop) - s - t.cssOverflowAdjustment();
|
|
658
|
-
}
|
|
659
|
-
const $e = (t, e, s) => {
|
|
660
|
-
e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
|
|
661
|
-
};
|
|
662
|
-
function Wt(t) {
|
|
663
|
-
t === void 0 && (t = this && this.translate || 0);
|
|
664
|
-
const e = this, s = e.params, {
|
|
665
|
-
slides: r,
|
|
666
|
-
rtlTranslate: n,
|
|
667
|
-
snapGrid: i
|
|
668
|
-
} = e;
|
|
669
|
-
if (r.length === 0) return;
|
|
670
|
-
typeof r[0].swiperSlideOffset > "u" && e.updateSlidesOffset();
|
|
671
|
-
let l = -t;
|
|
672
|
-
n && (l = t), e.visibleSlidesIndexes = [], e.visibleSlides = [];
|
|
673
|
-
let a = s.spaceBetween;
|
|
674
|
-
typeof a == "string" && a.indexOf("%") >= 0 ? a = parseFloat(a.replace("%", "")) / 100 * e.size : typeof a == "string" && (a = parseFloat(a));
|
|
675
|
-
for (let o = 0; o < r.length; o += 1) {
|
|
676
|
-
const c = r[o];
|
|
677
|
-
let d = c.swiperSlideOffset;
|
|
678
|
-
s.cssMode && s.centeredSlides && (d -= r[0].swiperSlideOffset);
|
|
679
|
-
const p = (l + (s.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), h = (l - i[0] + (s.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), g = -(l - d), m = g + e.slidesSizesGrid[o], T = g >= 0 && g <= e.size - e.slidesSizesGrid[o], M = g >= 0 && g < e.size - 1 || m > 1 && m <= e.size || g <= 0 && m >= e.size;
|
|
680
|
-
M && (e.visibleSlides.push(c), e.visibleSlidesIndexes.push(o)), $e(c, M, s.slideVisibleClass), $e(c, T, s.slideFullyVisibleClass), c.progress = n ? -p : p, c.originalProgress = n ? -h : h;
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
function Yt(t) {
|
|
684
|
-
const e = this;
|
|
685
|
-
if (typeof t > "u") {
|
|
686
|
-
const d = e.rtlTranslate ? -1 : 1;
|
|
687
|
-
t = e && e.translate && e.translate * d || 0;
|
|
688
|
-
}
|
|
689
|
-
const s = e.params, r = e.maxTranslate() - e.minTranslate();
|
|
690
|
-
let {
|
|
691
|
-
progress: n,
|
|
692
|
-
isBeginning: i,
|
|
693
|
-
isEnd: l,
|
|
694
|
-
progressLoop: a
|
|
695
|
-
} = e;
|
|
696
|
-
const o = i, c = l;
|
|
697
|
-
if (r === 0)
|
|
698
|
-
n = 0, i = !0, l = !0;
|
|
699
|
-
else {
|
|
700
|
-
n = (t - e.minTranslate()) / r;
|
|
701
|
-
const d = Math.abs(t - e.minTranslate()) < 1, p = Math.abs(t - e.maxTranslate()) < 1;
|
|
702
|
-
i = d || n <= 0, l = p || n >= 1, d && (n = 0), p && (n = 1);
|
|
703
|
-
}
|
|
704
|
-
if (s.loop) {
|
|
705
|
-
const d = e.getSlideIndexByData(0), p = e.getSlideIndexByData(e.slides.length - 1), h = e.slidesGrid[d], g = e.slidesGrid[p], m = e.slidesGrid[e.slidesGrid.length - 1], T = Math.abs(t);
|
|
706
|
-
T >= h ? a = (T - h) / m : a = (T + m - g) / m, a > 1 && (a -= 1);
|
|
707
|
-
}
|
|
708
|
-
Object.assign(e, {
|
|
709
|
-
progress: n,
|
|
710
|
-
progressLoop: a,
|
|
711
|
-
isBeginning: i,
|
|
712
|
-
isEnd: l
|
|
713
|
-
}), (s.watchSlidesProgress || s.centeredSlides && s.autoHeight) && e.updateSlidesProgress(t), i && !o && e.emit("reachBeginning toEdge"), l && !c && e.emit("reachEnd toEdge"), (o && !i || c && !l) && e.emit("fromEdge"), e.emit("progress", n);
|
|
714
|
-
}
|
|
715
|
-
const ve = (t, e, s) => {
|
|
716
|
-
e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
|
|
717
|
-
};
|
|
718
|
-
function Xt() {
|
|
719
|
-
const t = this, {
|
|
720
|
-
slides: e,
|
|
721
|
-
params: s,
|
|
722
|
-
slidesEl: r,
|
|
723
|
-
activeIndex: n
|
|
724
|
-
} = t, i = t.virtual && s.virtual.enabled, l = t.grid && s.grid && s.grid.rows > 1, a = (p) => H(r, `.${s.slideClass}${p}, swiper-slide${p}`)[0];
|
|
725
|
-
let o, c, d;
|
|
726
|
-
if (i)
|
|
727
|
-
if (s.loop) {
|
|
728
|
-
let p = n - t.virtual.slidesBefore;
|
|
729
|
-
p < 0 && (p = t.virtual.slides.length + p), p >= t.virtual.slides.length && (p -= t.virtual.slides.length), o = a(`[data-swiper-slide-index="${p}"]`);
|
|
730
|
-
} else
|
|
731
|
-
o = a(`[data-swiper-slide-index="${n}"]`);
|
|
732
|
-
else
|
|
733
|
-
l ? (o = e.find((p) => p.column === n), d = e.find((p) => p.column === n + 1), c = e.find((p) => p.column === n - 1)) : o = e[n];
|
|
734
|
-
o && (l || (d = $t(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !d && (d = e[0]), c = _t(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((p) => {
|
|
735
|
-
ve(p, p === o, s.slideActiveClass), ve(p, p === d, s.slideNextClass), ve(p, p === c, s.slidePrevClass);
|
|
736
|
-
}), t.emitSlidesClasses();
|
|
737
|
-
}
|
|
738
|
-
const ne = (t, e) => {
|
|
739
|
-
if (!t || t.destroyed || !t.params) return;
|
|
740
|
-
const s = () => t.isElement ? "swiper-slide" : `.${t.params.slideClass}`, r = e.closest(s());
|
|
741
|
-
if (r) {
|
|
742
|
-
let n = r.querySelector(`.${t.params.lazyPreloaderClass}`);
|
|
743
|
-
!n && t.isElement && (r.shadowRoot ? n = r.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
|
|
744
|
-
r.shadowRoot && (n = r.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`), n && n.remove());
|
|
745
|
-
})), n && n.remove();
|
|
746
|
-
}
|
|
747
|
-
}, we = (t, e) => {
|
|
748
|
-
if (!t.slides[e]) return;
|
|
749
|
-
const s = t.slides[e].querySelector('[loading="lazy"]');
|
|
750
|
-
s && s.removeAttribute("loading");
|
|
751
|
-
}, Ce = (t) => {
|
|
752
|
-
if (!t || t.destroyed || !t.params) return;
|
|
753
|
-
let e = t.params.lazyPreloadPrevNext;
|
|
754
|
-
const s = t.slides.length;
|
|
755
|
-
if (!s || !e || e < 0) return;
|
|
756
|
-
e = Math.min(e, s);
|
|
757
|
-
const r = t.params.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(t.params.slidesPerView), n = t.activeIndex;
|
|
758
|
-
if (t.params.grid && t.params.grid.rows > 1) {
|
|
759
|
-
const l = n, a = [l - e];
|
|
760
|
-
a.push(...Array.from({
|
|
761
|
-
length: e
|
|
762
|
-
}).map((o, c) => l + r + c)), t.slides.forEach((o, c) => {
|
|
763
|
-
a.includes(o.column) && we(t, c);
|
|
764
|
-
});
|
|
765
|
-
return;
|
|
766
|
-
}
|
|
767
|
-
const i = n + r - 1;
|
|
768
|
-
if (t.params.rewind || t.params.loop)
|
|
769
|
-
for (let l = n - e; l <= i + e; l += 1) {
|
|
770
|
-
const a = (l % s + s) % s;
|
|
771
|
-
(a < n || a > i) && we(t, a);
|
|
772
|
-
}
|
|
773
|
-
else
|
|
774
|
-
for (let l = Math.max(n - e, 0); l <= Math.min(i + e, s - 1); l += 1)
|
|
775
|
-
l !== n && (l > i || l < n) && we(t, l);
|
|
776
|
-
};
|
|
777
|
-
function Ut(t) {
|
|
778
|
-
const {
|
|
779
|
-
slidesGrid: e,
|
|
780
|
-
params: s
|
|
781
|
-
} = t, r = t.rtlTranslate ? t.translate : -t.translate;
|
|
782
|
-
let n;
|
|
783
|
-
for (let i = 0; i < e.length; i += 1)
|
|
784
|
-
typeof e[i + 1] < "u" ? r >= e[i] && r < e[i + 1] - (e[i + 1] - e[i]) / 2 ? n = i : r >= e[i] && r < e[i + 1] && (n = i + 1) : r >= e[i] && (n = i);
|
|
785
|
-
return s.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
|
|
786
|
-
}
|
|
787
|
-
function Qt(t) {
|
|
788
|
-
const e = this, s = e.rtlTranslate ? e.translate : -e.translate, {
|
|
789
|
-
snapGrid: r,
|
|
790
|
-
params: n,
|
|
791
|
-
activeIndex: i,
|
|
792
|
-
realIndex: l,
|
|
793
|
-
snapIndex: a
|
|
794
|
-
} = e;
|
|
795
|
-
let o = t, c;
|
|
796
|
-
const d = (g) => {
|
|
797
|
-
let m = g - e.virtual.slidesBefore;
|
|
798
|
-
return m < 0 && (m = e.virtual.slides.length + m), m >= e.virtual.slides.length && (m -= e.virtual.slides.length), m;
|
|
799
|
-
};
|
|
800
|
-
if (typeof o > "u" && (o = Ut(e)), r.indexOf(s) >= 0)
|
|
801
|
-
c = r.indexOf(s);
|
|
802
|
-
else {
|
|
803
|
-
const g = Math.min(n.slidesPerGroupSkip, o);
|
|
804
|
-
c = g + Math.floor((o - g) / n.slidesPerGroup);
|
|
805
|
-
}
|
|
806
|
-
if (c >= r.length && (c = r.length - 1), o === i && !e.params.loop) {
|
|
807
|
-
c !== a && (e.snapIndex = c, e.emit("snapIndexChange"));
|
|
808
|
-
return;
|
|
809
|
-
}
|
|
810
|
-
if (o === i && e.params.loop && e.virtual && e.params.virtual.enabled) {
|
|
811
|
-
e.realIndex = d(o);
|
|
812
|
-
return;
|
|
813
|
-
}
|
|
814
|
-
const p = e.grid && n.grid && n.grid.rows > 1;
|
|
815
|
-
let h;
|
|
816
|
-
if (e.virtual && n.virtual.enabled && n.loop)
|
|
817
|
-
h = d(o);
|
|
818
|
-
else if (p) {
|
|
819
|
-
const g = e.slides.find((T) => T.column === o);
|
|
820
|
-
let m = parseInt(g.getAttribute("data-swiper-slide-index"), 10);
|
|
821
|
-
Number.isNaN(m) && (m = Math.max(e.slides.indexOf(g), 0)), h = Math.floor(m / n.grid.rows);
|
|
822
|
-
} else if (e.slides[o]) {
|
|
823
|
-
const g = e.slides[o].getAttribute("data-swiper-slide-index");
|
|
824
|
-
g ? h = parseInt(g, 10) : h = o;
|
|
825
|
-
} else
|
|
826
|
-
h = o;
|
|
827
|
-
Object.assign(e, {
|
|
828
|
-
previousSnapIndex: a,
|
|
829
|
-
snapIndex: c,
|
|
830
|
-
previousRealIndex: l,
|
|
831
|
-
realIndex: h,
|
|
832
|
-
previousIndex: i,
|
|
833
|
-
activeIndex: o
|
|
834
|
-
}), e.initialized && Ce(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== h && e.emit("realIndexChange"), e.emit("slideChange"));
|
|
835
|
-
}
|
|
836
|
-
function Kt(t, e) {
|
|
837
|
-
const s = this, r = s.params;
|
|
838
|
-
let n = t.closest(`.${r.slideClass}, swiper-slide`);
|
|
839
|
-
!n && s.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((a) => {
|
|
840
|
-
!n && a.matches && a.matches(`.${r.slideClass}, swiper-slide`) && (n = a);
|
|
841
|
-
});
|
|
842
|
-
let i = !1, l;
|
|
843
|
-
if (n) {
|
|
844
|
-
for (let a = 0; a < s.slides.length; a += 1)
|
|
845
|
-
if (s.slides[a] === n) {
|
|
846
|
-
i = !0, l = a;
|
|
847
|
-
break;
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
if (n && i)
|
|
851
|
-
s.clickedSlide = n, s.virtual && s.params.virtual.enabled ? s.clickedIndex = parseInt(n.getAttribute("data-swiper-slide-index"), 10) : s.clickedIndex = l;
|
|
852
|
-
else {
|
|
853
|
-
s.clickedSlide = void 0, s.clickedIndex = void 0;
|
|
854
|
-
return;
|
|
855
|
-
}
|
|
856
|
-
r.slideToClickedSlide && s.clickedIndex !== void 0 && s.clickedIndex !== s.activeIndex && s.slideToClickedSlide();
|
|
857
|
-
}
|
|
858
|
-
var Jt = {
|
|
859
|
-
updateSize: jt,
|
|
860
|
-
updateSlides: Ht,
|
|
861
|
-
updateAutoHeight: Rt,
|
|
862
|
-
updateSlidesOffset: qt,
|
|
863
|
-
updateSlidesProgress: Wt,
|
|
864
|
-
updateProgress: Yt,
|
|
865
|
-
updateSlidesClasses: Xt,
|
|
866
|
-
updateActiveIndex: Qt,
|
|
867
|
-
updateClickedSlide: Kt
|
|
868
|
-
};
|
|
869
|
-
function Zt(t) {
|
|
870
|
-
t === void 0 && (t = this.isHorizontal() ? "x" : "y");
|
|
871
|
-
const e = this, {
|
|
872
|
-
params: s,
|
|
873
|
-
rtlTranslate: r,
|
|
874
|
-
translate: n,
|
|
875
|
-
wrapperEl: i
|
|
876
|
-
} = e;
|
|
877
|
-
if (s.virtualTranslate)
|
|
878
|
-
return r ? -n : n;
|
|
879
|
-
if (s.cssMode)
|
|
880
|
-
return n;
|
|
881
|
-
let l = Lt(i, t);
|
|
882
|
-
return l += e.cssOverflowAdjustment(), r && (l = -l), l || 0;
|
|
883
|
-
}
|
|
884
|
-
function es(t, e) {
|
|
885
|
-
const s = this, {
|
|
886
|
-
rtlTranslate: r,
|
|
887
|
-
params: n,
|
|
888
|
-
wrapperEl: i,
|
|
889
|
-
progress: l
|
|
890
|
-
} = s;
|
|
891
|
-
let a = 0, o = 0;
|
|
892
|
-
const c = 0;
|
|
893
|
-
s.isHorizontal() ? a = r ? -t : t : o = t, n.roundLengths && (a = Math.floor(a), o = Math.floor(o)), s.previousTranslate = s.translate, s.translate = s.isHorizontal() ? a : o, n.cssMode ? i[s.isHorizontal() ? "scrollLeft" : "scrollTop"] = s.isHorizontal() ? -a : -o : n.virtualTranslate || (s.isHorizontal() ? a -= s.cssOverflowAdjustment() : o -= s.cssOverflowAdjustment(), i.style.transform = `translate3d(${a}px, ${o}px, ${c}px)`);
|
|
894
|
-
let d;
|
|
895
|
-
const p = s.maxTranslate() - s.minTranslate();
|
|
896
|
-
p === 0 ? d = 0 : d = (t - s.minTranslate()) / p, d !== l && s.updateProgress(t), s.emit("setTranslate", s.translate, e);
|
|
897
|
-
}
|
|
898
|
-
function ts() {
|
|
899
|
-
return -this.snapGrid[0];
|
|
900
|
-
}
|
|
901
|
-
function ss() {
|
|
902
|
-
return -this.snapGrid[this.snapGrid.length - 1];
|
|
903
|
-
}
|
|
904
|
-
function rs(t, e, s, r, n) {
|
|
905
|
-
t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), s === void 0 && (s = !0), r === void 0 && (r = !0);
|
|
906
|
-
const i = this, {
|
|
907
|
-
params: l,
|
|
908
|
-
wrapperEl: a
|
|
909
|
-
} = i;
|
|
910
|
-
if (i.animating && l.preventInteractionOnTransition)
|
|
911
|
-
return !1;
|
|
912
|
-
const o = i.minTranslate(), c = i.maxTranslate();
|
|
913
|
-
let d;
|
|
914
|
-
if (r && t > o ? d = o : r && t < c ? d = c : d = t, i.updateProgress(d), l.cssMode) {
|
|
915
|
-
const p = i.isHorizontal();
|
|
916
|
-
if (e === 0)
|
|
917
|
-
a[p ? "scrollLeft" : "scrollTop"] = -d;
|
|
918
|
-
else {
|
|
919
|
-
if (!i.support.smoothScroll)
|
|
920
|
-
return Xe({
|
|
921
|
-
swiper: i,
|
|
922
|
-
targetPosition: -d,
|
|
923
|
-
side: p ? "left" : "top"
|
|
924
|
-
}), !0;
|
|
925
|
-
a.scrollTo({
|
|
926
|
-
[p ? "left" : "top"]: -d,
|
|
927
|
-
behavior: "smooth"
|
|
928
|
-
});
|
|
929
|
-
}
|
|
930
|
-
return !0;
|
|
931
|
-
}
|
|
932
|
-
return e === 0 ? (i.setTransition(0), i.setTranslate(d), s && (i.emit("beforeTransitionStart", e, n), i.emit("transitionEnd"))) : (i.setTransition(e), i.setTranslate(d), s && (i.emit("beforeTransitionStart", e, n), i.emit("transitionStart")), i.animating || (i.animating = !0, i.onTranslateToWrapperTransitionEnd || (i.onTranslateToWrapperTransitionEnd = function(p) {
|
|
933
|
-
!i || i.destroyed || p.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onTranslateToWrapperTransitionEnd), i.onTranslateToWrapperTransitionEnd = null, delete i.onTranslateToWrapperTransitionEnd, i.animating = !1, s && i.emit("transitionEnd"));
|
|
934
|
-
}), i.wrapperEl.addEventListener("transitionend", i.onTranslateToWrapperTransitionEnd))), !0;
|
|
935
|
-
}
|
|
936
|
-
var is = {
|
|
937
|
-
getTranslate: Zt,
|
|
938
|
-
setTranslate: es,
|
|
939
|
-
minTranslate: ts,
|
|
940
|
-
maxTranslate: ss,
|
|
941
|
-
translateTo: rs
|
|
942
|
-
};
|
|
943
|
-
function ns(t, e) {
|
|
944
|
-
const s = this;
|
|
945
|
-
s.params.cssMode || (s.wrapperEl.style.transitionDuration = `${t}ms`, s.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), s.emit("setTransition", t, e);
|
|
946
|
-
}
|
|
947
|
-
function Ze(t) {
|
|
948
|
-
let {
|
|
949
|
-
swiper: e,
|
|
950
|
-
runCallbacks: s,
|
|
951
|
-
direction: r,
|
|
952
|
-
step: n
|
|
953
|
-
} = t;
|
|
954
|
-
const {
|
|
955
|
-
activeIndex: i,
|
|
956
|
-
previousIndex: l
|
|
957
|
-
} = e;
|
|
958
|
-
let a = r;
|
|
959
|
-
if (a || (i > l ? a = "next" : i < l ? a = "prev" : a = "reset"), e.emit(`transition${n}`), s && i !== l) {
|
|
960
|
-
if (a === "reset") {
|
|
961
|
-
e.emit(`slideResetTransition${n}`);
|
|
962
|
-
return;
|
|
963
|
-
}
|
|
964
|
-
e.emit(`slideChangeTransition${n}`), a === "next" ? e.emit(`slideNextTransition${n}`) : e.emit(`slidePrevTransition${n}`);
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
function as(t, e) {
|
|
968
|
-
t === void 0 && (t = !0);
|
|
969
|
-
const s = this, {
|
|
970
|
-
params: r
|
|
971
|
-
} = s;
|
|
972
|
-
r.cssMode || (r.autoHeight && s.updateAutoHeight(), Ze({
|
|
973
|
-
swiper: s,
|
|
974
|
-
runCallbacks: t,
|
|
975
|
-
direction: e,
|
|
976
|
-
step: "Start"
|
|
977
|
-
}));
|
|
978
|
-
}
|
|
979
|
-
function ls(t, e) {
|
|
980
|
-
t === void 0 && (t = !0);
|
|
981
|
-
const s = this, {
|
|
982
|
-
params: r
|
|
983
|
-
} = s;
|
|
984
|
-
s.animating = !1, !r.cssMode && (s.setTransition(0), Ze({
|
|
985
|
-
swiper: s,
|
|
986
|
-
runCallbacks: t,
|
|
987
|
-
direction: e,
|
|
988
|
-
step: "End"
|
|
989
|
-
}));
|
|
990
|
-
}
|
|
991
|
-
var os = {
|
|
992
|
-
setTransition: ns,
|
|
993
|
-
transitionStart: as,
|
|
994
|
-
transitionEnd: ls
|
|
995
|
-
};
|
|
996
|
-
function ds(t, e, s, r, n) {
|
|
997
|
-
t === void 0 && (t = 0), s === void 0 && (s = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
998
|
-
const i = this;
|
|
999
|
-
let l = t;
|
|
1000
|
-
l < 0 && (l = 0);
|
|
1001
|
-
const {
|
|
1002
|
-
params: a,
|
|
1003
|
-
snapGrid: o,
|
|
1004
|
-
slidesGrid: c,
|
|
1005
|
-
previousIndex: d,
|
|
1006
|
-
activeIndex: p,
|
|
1007
|
-
rtlTranslate: h,
|
|
1008
|
-
wrapperEl: g,
|
|
1009
|
-
enabled: m
|
|
1010
|
-
} = i;
|
|
1011
|
-
if (!m && !r && !n || i.destroyed || i.animating && a.preventInteractionOnTransition)
|
|
1012
|
-
return !1;
|
|
1013
|
-
typeof e > "u" && (e = i.params.speed);
|
|
1014
|
-
const T = Math.min(i.params.slidesPerGroupSkip, l);
|
|
1015
|
-
let M = T + Math.floor((l - T) / i.params.slidesPerGroup);
|
|
1016
|
-
M >= o.length && (M = o.length - 1);
|
|
1017
|
-
const w = -o[M];
|
|
1018
|
-
if (a.normalizeSlideIndex)
|
|
1019
|
-
for (let y = 0; y < c.length; y += 1) {
|
|
1020
|
-
const C = -Math.floor(w * 100), A = Math.floor(c[y] * 100), I = Math.floor(c[y + 1] * 100);
|
|
1021
|
-
typeof c[y + 1] < "u" ? C >= A && C < I - (I - A) / 2 ? l = y : C >= A && C < I && (l = y + 1) : C >= A && (l = y);
|
|
1022
|
-
}
|
|
1023
|
-
if (i.initialized && l !== p && (!i.allowSlideNext && (h ? w > i.translate && w > i.minTranslate() : w < i.translate && w < i.minTranslate()) || !i.allowSlidePrev && w > i.translate && w > i.maxTranslate() && (p || 0) !== l))
|
|
1024
|
-
return !1;
|
|
1025
|
-
l !== (d || 0) && s && i.emit("beforeSlideChangeStart"), i.updateProgress(w);
|
|
1026
|
-
let u;
|
|
1027
|
-
l > p ? u = "next" : l < p ? u = "prev" : u = "reset";
|
|
1028
|
-
const f = i.virtual && i.params.virtual.enabled;
|
|
1029
|
-
if (!(f && n) && (h && -w === i.translate || !h && w === i.translate))
|
|
1030
|
-
return i.updateActiveIndex(l), a.autoHeight && i.updateAutoHeight(), i.updateSlidesClasses(), a.effect !== "slide" && i.setTranslate(w), u !== "reset" && (i.transitionStart(s, u), i.transitionEnd(s, u)), !1;
|
|
1031
|
-
if (a.cssMode) {
|
|
1032
|
-
const y = i.isHorizontal(), C = h ? w : -w;
|
|
1033
|
-
if (e === 0)
|
|
1034
|
-
f && (i.wrapperEl.style.scrollSnapType = "none", i._immediateVirtual = !0), f && !i._cssModeVirtualInitialSet && i.params.initialSlide > 0 ? (i._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
1035
|
-
g[y ? "scrollLeft" : "scrollTop"] = C;
|
|
1036
|
-
})) : g[y ? "scrollLeft" : "scrollTop"] = C, f && requestAnimationFrame(() => {
|
|
1037
|
-
i.wrapperEl.style.scrollSnapType = "", i._immediateVirtual = !1;
|
|
1038
|
-
});
|
|
1039
|
-
else {
|
|
1040
|
-
if (!i.support.smoothScroll)
|
|
1041
|
-
return Xe({
|
|
1042
|
-
swiper: i,
|
|
1043
|
-
targetPosition: C,
|
|
1044
|
-
side: y ? "left" : "top"
|
|
1045
|
-
}), !0;
|
|
1046
|
-
g.scrollTo({
|
|
1047
|
-
[y ? "left" : "top"]: C,
|
|
1048
|
-
behavior: "smooth"
|
|
1049
|
-
});
|
|
1050
|
-
}
|
|
1051
|
-
return !0;
|
|
1052
|
-
}
|
|
1053
|
-
const v = Je().isSafari;
|
|
1054
|
-
return f && !n && v && i.isElement && i.virtual.update(!1, !1, l), i.setTransition(e), i.setTranslate(w), i.updateActiveIndex(l), i.updateSlidesClasses(), i.emit("beforeTransitionStart", e, r), i.transitionStart(s, u), e === 0 ? i.transitionEnd(s, u) : i.animating || (i.animating = !0, i.onSlideToWrapperTransitionEnd || (i.onSlideToWrapperTransitionEnd = function(y) {
|
|
1055
|
-
!i || i.destroyed || y.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onSlideToWrapperTransitionEnd), i.onSlideToWrapperTransitionEnd = null, delete i.onSlideToWrapperTransitionEnd, i.transitionEnd(s, u));
|
|
1056
|
-
}), i.wrapperEl.addEventListener("transitionend", i.onSlideToWrapperTransitionEnd)), !0;
|
|
1057
|
-
}
|
|
1058
|
-
function cs(t, e, s, r) {
|
|
1059
|
-
t === void 0 && (t = 0), s === void 0 && (s = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
1060
|
-
const n = this;
|
|
1061
|
-
if (n.destroyed) return;
|
|
1062
|
-
typeof e > "u" && (e = n.params.speed);
|
|
1063
|
-
const i = n.grid && n.params.grid && n.params.grid.rows > 1;
|
|
1064
|
-
let l = t;
|
|
1065
|
-
if (n.params.loop)
|
|
1066
|
-
if (n.virtual && n.params.virtual.enabled)
|
|
1067
|
-
l = l + n.virtual.slidesBefore;
|
|
1068
|
-
else {
|
|
1069
|
-
let a;
|
|
1070
|
-
if (i) {
|
|
1071
|
-
const h = l * n.params.grid.rows;
|
|
1072
|
-
a = n.slides.find((g) => g.getAttribute("data-swiper-slide-index") * 1 === h).column;
|
|
1073
|
-
} else
|
|
1074
|
-
a = n.getSlideIndexByData(l);
|
|
1075
|
-
const o = i ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
|
|
1076
|
-
centeredSlides: c
|
|
1077
|
-
} = n.params;
|
|
1078
|
-
let d = n.params.slidesPerView;
|
|
1079
|
-
d === "auto" ? d = n.slidesPerViewDynamic() : (d = Math.ceil(parseFloat(n.params.slidesPerView, 10)), c && d % 2 === 0 && (d = d + 1));
|
|
1080
|
-
let p = o - a < d;
|
|
1081
|
-
if (c && (p = p || a < Math.ceil(d / 2)), r && c && n.params.slidesPerView !== "auto" && !i && (p = !1), p) {
|
|
1082
|
-
const h = c ? a < n.activeIndex ? "prev" : "next" : a - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
|
|
1083
|
-
n.loopFix({
|
|
1084
|
-
direction: h,
|
|
1085
|
-
slideTo: !0,
|
|
1086
|
-
activeSlideIndex: h === "next" ? a + 1 : a - o + 1,
|
|
1087
|
-
slideRealIndex: h === "next" ? n.realIndex : void 0
|
|
1088
|
-
});
|
|
1089
|
-
}
|
|
1090
|
-
if (i) {
|
|
1091
|
-
const h = l * n.params.grid.rows;
|
|
1092
|
-
l = n.slides.find((g) => g.getAttribute("data-swiper-slide-index") * 1 === h).column;
|
|
1093
|
-
} else
|
|
1094
|
-
l = n.getSlideIndexByData(l);
|
|
1095
|
-
}
|
|
1096
|
-
return requestAnimationFrame(() => {
|
|
1097
|
-
n.slideTo(l, e, s, r);
|
|
1098
|
-
}), n;
|
|
1099
|
-
}
|
|
1100
|
-
function us(t, e, s) {
|
|
1101
|
-
e === void 0 && (e = !0);
|
|
1102
|
-
const r = this, {
|
|
1103
|
-
enabled: n,
|
|
1104
|
-
params: i,
|
|
1105
|
-
animating: l
|
|
1106
|
-
} = r;
|
|
1107
|
-
if (!n || r.destroyed) return r;
|
|
1108
|
-
typeof t > "u" && (t = r.params.speed);
|
|
1109
|
-
let a = i.slidesPerGroup;
|
|
1110
|
-
i.slidesPerView === "auto" && i.slidesPerGroup === 1 && i.slidesPerGroupAuto && (a = Math.max(r.slidesPerViewDynamic("current", !0), 1));
|
|
1111
|
-
const o = r.activeIndex < i.slidesPerGroupSkip ? 1 : a, c = r.virtual && i.virtual.enabled;
|
|
1112
|
-
if (i.loop) {
|
|
1113
|
-
if (l && !c && i.loopPreventsSliding) return !1;
|
|
1114
|
-
if (r.loopFix({
|
|
1115
|
-
direction: "next"
|
|
1116
|
-
}), r._clientLeft = r.wrapperEl.clientLeft, r.activeIndex === r.slides.length - 1 && i.cssMode)
|
|
1117
|
-
return requestAnimationFrame(() => {
|
|
1118
|
-
r.slideTo(r.activeIndex + o, t, e, s);
|
|
1119
|
-
}), !0;
|
|
1120
|
-
}
|
|
1121
|
-
return i.rewind && r.isEnd ? r.slideTo(0, t, e, s) : r.slideTo(r.activeIndex + o, t, e, s);
|
|
1122
|
-
}
|
|
1123
|
-
function ps(t, e, s) {
|
|
1124
|
-
e === void 0 && (e = !0);
|
|
1125
|
-
const r = this, {
|
|
1126
|
-
params: n,
|
|
1127
|
-
snapGrid: i,
|
|
1128
|
-
slidesGrid: l,
|
|
1129
|
-
rtlTranslate: a,
|
|
1130
|
-
enabled: o,
|
|
1131
|
-
animating: c
|
|
1132
|
-
} = r;
|
|
1133
|
-
if (!o || r.destroyed) return r;
|
|
1134
|
-
typeof t > "u" && (t = r.params.speed);
|
|
1135
|
-
const d = r.virtual && n.virtual.enabled;
|
|
1136
|
-
if (n.loop) {
|
|
1137
|
-
if (c && !d && n.loopPreventsSliding) return !1;
|
|
1138
|
-
r.loopFix({
|
|
1139
|
-
direction: "prev"
|
|
1140
|
-
}), r._clientLeft = r.wrapperEl.clientLeft;
|
|
1141
|
-
}
|
|
1142
|
-
const p = a ? r.translate : -r.translate;
|
|
1143
|
-
function h(u) {
|
|
1144
|
-
return u < 0 ? -Math.floor(Math.abs(u)) : Math.floor(u);
|
|
1145
|
-
}
|
|
1146
|
-
const g = h(p), m = i.map((u) => h(u)), T = n.freeMode && n.freeMode.enabled;
|
|
1147
|
-
let M = i[m.indexOf(g) - 1];
|
|
1148
|
-
if (typeof M > "u" && (n.cssMode || T)) {
|
|
1149
|
-
let u;
|
|
1150
|
-
i.forEach((f, v) => {
|
|
1151
|
-
g >= f && (u = v);
|
|
1152
|
-
}), typeof u < "u" && (M = T ? i[u] : i[u > 0 ? u - 1 : u]);
|
|
1153
|
-
}
|
|
1154
|
-
let w = 0;
|
|
1155
|
-
if (typeof M < "u" && (w = l.indexOf(M), w < 0 && (w = r.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (w = w - r.slidesPerViewDynamic("previous", !0) + 1, w = Math.max(w, 0))), n.rewind && r.isBeginning) {
|
|
1156
|
-
const u = r.params.virtual && r.params.virtual.enabled && r.virtual ? r.virtual.slides.length - 1 : r.slides.length - 1;
|
|
1157
|
-
return r.slideTo(u, t, e, s);
|
|
1158
|
-
} else if (n.loop && r.activeIndex === 0 && n.cssMode)
|
|
1159
|
-
return requestAnimationFrame(() => {
|
|
1160
|
-
r.slideTo(w, t, e, s);
|
|
1161
|
-
}), !0;
|
|
1162
|
-
return r.slideTo(w, t, e, s);
|
|
1163
|
-
}
|
|
1164
|
-
function fs(t, e, s) {
|
|
1165
|
-
e === void 0 && (e = !0);
|
|
1166
|
-
const r = this;
|
|
1167
|
-
if (!r.destroyed)
|
|
1168
|
-
return typeof t > "u" && (t = r.params.speed), r.slideTo(r.activeIndex, t, e, s);
|
|
1169
|
-
}
|
|
1170
|
-
function ms(t, e, s, r) {
|
|
1171
|
-
e === void 0 && (e = !0), r === void 0 && (r = 0.5);
|
|
1172
|
-
const n = this;
|
|
1173
|
-
if (n.destroyed) return;
|
|
1174
|
-
typeof t > "u" && (t = n.params.speed);
|
|
1175
|
-
let i = n.activeIndex;
|
|
1176
|
-
const l = Math.min(n.params.slidesPerGroupSkip, i), a = l + Math.floor((i - l) / n.params.slidesPerGroup), o = n.rtlTranslate ? n.translate : -n.translate;
|
|
1177
|
-
if (o >= n.snapGrid[a]) {
|
|
1178
|
-
const c = n.snapGrid[a], d = n.snapGrid[a + 1];
|
|
1179
|
-
o - c > (d - c) * r && (i += n.params.slidesPerGroup);
|
|
1180
|
-
} else {
|
|
1181
|
-
const c = n.snapGrid[a - 1], d = n.snapGrid[a];
|
|
1182
|
-
o - c <= (d - c) * r && (i -= n.params.slidesPerGroup);
|
|
1183
|
-
}
|
|
1184
|
-
return i = Math.max(i, 0), i = Math.min(i, n.slidesGrid.length - 1), n.slideTo(i, t, e, s);
|
|
1185
|
-
}
|
|
1186
|
-
function hs() {
|
|
1187
|
-
const t = this;
|
|
1188
|
-
if (t.destroyed) return;
|
|
1189
|
-
const {
|
|
1190
|
-
params: e,
|
|
1191
|
-
slidesEl: s
|
|
1192
|
-
} = t, r = e.slidesPerView === "auto" ? t.slidesPerViewDynamic() : e.slidesPerView;
|
|
1193
|
-
let n = t.clickedIndex, i;
|
|
1194
|
-
const l = t.isElement ? "swiper-slide" : `.${e.slideClass}`;
|
|
1195
|
-
if (e.loop) {
|
|
1196
|
-
if (t.animating) return;
|
|
1197
|
-
i = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? n < t.loopedSlides - r / 2 || n > t.slides.length - t.loopedSlides + r / 2 ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), Te(() => {
|
|
1198
|
-
t.slideTo(n);
|
|
1199
|
-
})) : t.slideTo(n) : n > t.slides.length - r ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), Te(() => {
|
|
1200
|
-
t.slideTo(n);
|
|
1201
|
-
})) : t.slideTo(n);
|
|
1202
|
-
} else
|
|
1203
|
-
t.slideTo(n);
|
|
1204
|
-
}
|
|
1205
|
-
var gs = {
|
|
1206
|
-
slideTo: ds,
|
|
1207
|
-
slideToLoop: cs,
|
|
1208
|
-
slideNext: us,
|
|
1209
|
-
slidePrev: ps,
|
|
1210
|
-
slideReset: fs,
|
|
1211
|
-
slideToClosest: ms,
|
|
1212
|
-
slideToClickedSlide: hs
|
|
1213
|
-
};
|
|
1214
|
-
function vs(t, e) {
|
|
1215
|
-
const s = this, {
|
|
1216
|
-
params: r,
|
|
1217
|
-
slidesEl: n
|
|
1218
|
-
} = s;
|
|
1219
|
-
if (!r.loop || s.virtual && s.params.virtual.enabled) return;
|
|
1220
|
-
const i = () => {
|
|
1221
|
-
H(n, `.${r.slideClass}, swiper-slide`).forEach((p, h) => {
|
|
1222
|
-
p.setAttribute("data-swiper-slide-index", h);
|
|
1223
|
-
});
|
|
1224
|
-
}, l = s.grid && r.grid && r.grid.rows > 1, a = r.slidesPerGroup * (l ? r.grid.rows : 1), o = s.slides.length % a !== 0, c = l && s.slides.length % r.grid.rows !== 0, d = (p) => {
|
|
1225
|
-
for (let h = 0; h < p; h += 1) {
|
|
1226
|
-
const g = s.isElement ? de("swiper-slide", [r.slideBlankClass]) : de("div", [r.slideClass, r.slideBlankClass]);
|
|
1227
|
-
s.slidesEl.append(g);
|
|
1228
|
-
}
|
|
1229
|
-
};
|
|
1230
|
-
if (o) {
|
|
1231
|
-
if (r.loopAddBlankSlides) {
|
|
1232
|
-
const p = a - s.slides.length % a;
|
|
1233
|
-
d(p), s.recalcSlides(), s.updateSlides();
|
|
1234
|
-
} else
|
|
1235
|
-
oe("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
|
|
1236
|
-
i();
|
|
1237
|
-
} else if (c) {
|
|
1238
|
-
if (r.loopAddBlankSlides) {
|
|
1239
|
-
const p = r.grid.rows - s.slides.length % r.grid.rows;
|
|
1240
|
-
d(p), s.recalcSlides(), s.updateSlides();
|
|
1241
|
-
} else
|
|
1242
|
-
oe("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
|
|
1243
|
-
i();
|
|
1244
|
-
} else
|
|
1245
|
-
i();
|
|
1246
|
-
s.loopFix({
|
|
1247
|
-
slideRealIndex: t,
|
|
1248
|
-
direction: r.centeredSlides ? void 0 : "next",
|
|
1249
|
-
initial: e
|
|
1250
|
-
});
|
|
1251
|
-
}
|
|
1252
|
-
function ws(t) {
|
|
1253
|
-
let {
|
|
1254
|
-
slideRealIndex: e,
|
|
1255
|
-
slideTo: s = !0,
|
|
1256
|
-
direction: r,
|
|
1257
|
-
setTranslate: n,
|
|
1258
|
-
activeSlideIndex: i,
|
|
1259
|
-
initial: l,
|
|
1260
|
-
byController: a,
|
|
1261
|
-
byMousewheel: o
|
|
1262
|
-
} = t === void 0 ? {} : t;
|
|
1263
|
-
const c = this;
|
|
1264
|
-
if (!c.params.loop) return;
|
|
1265
|
-
c.emit("beforeLoopFix");
|
|
1266
|
-
const {
|
|
1267
|
-
slides: d,
|
|
1268
|
-
allowSlidePrev: p,
|
|
1269
|
-
allowSlideNext: h,
|
|
1270
|
-
slidesEl: g,
|
|
1271
|
-
params: m
|
|
1272
|
-
} = c, {
|
|
1273
|
-
centeredSlides: T,
|
|
1274
|
-
initialSlide: M
|
|
1275
|
-
} = m;
|
|
1276
|
-
if (c.allowSlidePrev = !0, c.allowSlideNext = !0, c.virtual && m.virtual.enabled) {
|
|
1277
|
-
s && (!m.centeredSlides && c.snapIndex === 0 ? c.slideTo(c.virtual.slides.length, 0, !1, !0) : m.centeredSlides && c.snapIndex < m.slidesPerView ? c.slideTo(c.virtual.slides.length + c.snapIndex, 0, !1, !0) : c.snapIndex === c.snapGrid.length - 1 && c.slideTo(c.virtual.slidesBefore, 0, !1, !0)), c.allowSlidePrev = p, c.allowSlideNext = h, c.emit("loopFix");
|
|
1278
|
-
return;
|
|
1279
|
-
}
|
|
1280
|
-
let w = m.slidesPerView;
|
|
1281
|
-
w === "auto" ? w = c.slidesPerViewDynamic() : (w = Math.ceil(parseFloat(m.slidesPerView, 10)), T && w % 2 === 0 && (w = w + 1));
|
|
1282
|
-
const u = m.slidesPerGroupAuto ? w : m.slidesPerGroup;
|
|
1283
|
-
let f = u;
|
|
1284
|
-
f % u !== 0 && (f += u - f % u), f += m.loopAdditionalSlides, c.loopedSlides = f;
|
|
1285
|
-
const v = c.grid && m.grid && m.grid.rows > 1;
|
|
1286
|
-
d.length < w + f || c.params.effect === "cards" && d.length < w + f * 2 ? oe("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : v && m.grid.fill === "row" && oe("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
1287
|
-
const y = [], C = [], A = v ? Math.ceil(d.length / m.grid.rows) : d.length, I = l && A - M < w && !T;
|
|
1288
|
-
let b = I ? M : c.activeIndex;
|
|
1289
|
-
typeof i > "u" ? i = c.getSlideIndex(d.find((x) => x.classList.contains(m.slideActiveClass))) : b = i;
|
|
1290
|
-
const S = r === "next" || !r, E = r === "prev" || !r;
|
|
1291
|
-
let k = 0, L = 0;
|
|
1292
|
-
const O = (v ? d[i].column : i) + (T && typeof n > "u" ? -w / 2 + 0.5 : 0);
|
|
1293
|
-
if (O < f) {
|
|
1294
|
-
k = Math.max(f - O, u);
|
|
1295
|
-
for (let x = 0; x < f - O; x += 1) {
|
|
1296
|
-
const z = x - Math.floor(x / A) * A;
|
|
1297
|
-
if (v) {
|
|
1298
|
-
const U = A - z - 1;
|
|
1299
|
-
for (let V = d.length - 1; V >= 0; V -= 1)
|
|
1300
|
-
d[V].column === U && y.push(V);
|
|
1301
|
-
} else
|
|
1302
|
-
y.push(A - z - 1);
|
|
1303
|
-
}
|
|
1304
|
-
} else if (O + w > A - f) {
|
|
1305
|
-
L = Math.max(O - (A - f * 2), u), I && (L = Math.max(L, w - A + M + 1));
|
|
1306
|
-
for (let x = 0; x < L; x += 1) {
|
|
1307
|
-
const z = x - Math.floor(x / A) * A;
|
|
1308
|
-
v ? d.forEach((U, V) => {
|
|
1309
|
-
U.column === z && C.push(V);
|
|
1310
|
-
}) : C.push(z);
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
if (c.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
1314
|
-
c.__preventObserver__ = !1;
|
|
1315
|
-
}), c.params.effect === "cards" && d.length < w + f * 2 && (C.includes(i) && C.splice(C.indexOf(i), 1), y.includes(i) && y.splice(y.indexOf(i), 1)), E && y.forEach((x) => {
|
|
1316
|
-
d[x].swiperLoopMoveDOM = !0, g.prepend(d[x]), d[x].swiperLoopMoveDOM = !1;
|
|
1317
|
-
}), S && C.forEach((x) => {
|
|
1318
|
-
d[x].swiperLoopMoveDOM = !0, g.append(d[x]), d[x].swiperLoopMoveDOM = !1;
|
|
1319
|
-
}), c.recalcSlides(), m.slidesPerView === "auto" ? c.updateSlides() : v && (y.length > 0 && E || C.length > 0 && S) && c.slides.forEach((x, z) => {
|
|
1320
|
-
c.grid.updateSlide(z, x, c.slides);
|
|
1321
|
-
}), m.watchSlidesProgress && c.updateSlidesOffset(), s) {
|
|
1322
|
-
if (y.length > 0 && E) {
|
|
1323
|
-
if (typeof e > "u") {
|
|
1324
|
-
const x = c.slidesGrid[b], z = c.slidesGrid[b + k] - x;
|
|
1325
|
-
o ? c.setTranslate(c.translate - z) : (c.slideTo(b + Math.ceil(k), 0, !1, !0), n && (c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - z, c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - z));
|
|
1326
|
-
} else if (n) {
|
|
1327
|
-
const x = v ? y.length / m.grid.rows : y.length;
|
|
1328
|
-
c.slideTo(c.activeIndex + x, 0, !1, !0), c.touchEventsData.currentTranslate = c.translate;
|
|
1329
|
-
}
|
|
1330
|
-
} else if (C.length > 0 && S)
|
|
1331
|
-
if (typeof e > "u") {
|
|
1332
|
-
const x = c.slidesGrid[b], z = c.slidesGrid[b - L] - x;
|
|
1333
|
-
o ? c.setTranslate(c.translate - z) : (c.slideTo(b - L, 0, !1, !0), n && (c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - z, c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - z));
|
|
1334
|
-
} else {
|
|
1335
|
-
const x = v ? C.length / m.grid.rows : C.length;
|
|
1336
|
-
c.slideTo(c.activeIndex - x, 0, !1, !0);
|
|
1337
|
-
}
|
|
1338
|
-
}
|
|
1339
|
-
if (c.allowSlidePrev = p, c.allowSlideNext = h, c.controller && c.controller.control && !a) {
|
|
1340
|
-
const x = {
|
|
1341
|
-
slideRealIndex: e,
|
|
1342
|
-
direction: r,
|
|
1343
|
-
setTranslate: n,
|
|
1344
|
-
activeSlideIndex: i,
|
|
1345
|
-
byController: !0
|
|
1346
|
-
};
|
|
1347
|
-
Array.isArray(c.controller.control) ? c.controller.control.forEach((z) => {
|
|
1348
|
-
!z.destroyed && z.params.loop && z.loopFix({
|
|
1349
|
-
...x,
|
|
1350
|
-
slideTo: z.params.slidesPerView === m.slidesPerView ? s : !1
|
|
1351
|
-
});
|
|
1352
|
-
}) : c.controller.control instanceof c.constructor && c.controller.control.params.loop && c.controller.control.loopFix({
|
|
1353
|
-
...x,
|
|
1354
|
-
slideTo: c.controller.control.params.slidesPerView === m.slidesPerView ? s : !1
|
|
1355
|
-
});
|
|
1356
|
-
}
|
|
1357
|
-
c.emit("loopFix");
|
|
1358
|
-
}
|
|
1359
|
-
function ys() {
|
|
1360
|
-
const t = this, {
|
|
1361
|
-
params: e,
|
|
1362
|
-
slidesEl: s
|
|
1363
|
-
} = t;
|
|
1364
|
-
if (!e.loop || !s || t.virtual && t.params.virtual.enabled) return;
|
|
1365
|
-
t.recalcSlides();
|
|
1366
|
-
const r = [];
|
|
1367
|
-
t.slides.forEach((n) => {
|
|
1368
|
-
const i = typeof n.swiperSlideIndex > "u" ? n.getAttribute("data-swiper-slide-index") * 1 : n.swiperSlideIndex;
|
|
1369
|
-
r[i] = n;
|
|
1370
|
-
}), t.slides.forEach((n) => {
|
|
1371
|
-
n.removeAttribute("data-swiper-slide-index");
|
|
1372
|
-
}), r.forEach((n) => {
|
|
1373
|
-
s.append(n);
|
|
1374
|
-
}), t.recalcSlides(), t.slideTo(t.realIndex, 0);
|
|
1375
|
-
}
|
|
1376
|
-
var bs = {
|
|
1377
|
-
loopCreate: vs,
|
|
1378
|
-
loopFix: ws,
|
|
1379
|
-
loopDestroy: ys
|
|
1380
|
-
};
|
|
1381
|
-
function Ss(t) {
|
|
1382
|
-
const e = this;
|
|
1383
|
-
if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
|
|
1384
|
-
const s = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
|
|
1385
|
-
e.isElement && (e.__preventObserver__ = !0), s.style.cursor = "move", s.style.cursor = t ? "grabbing" : "grab", e.isElement && requestAnimationFrame(() => {
|
|
1386
|
-
e.__preventObserver__ = !1;
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
function Es() {
|
|
1390
|
-
const t = this;
|
|
1391
|
-
t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = !0), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
|
|
1392
|
-
t.__preventObserver__ = !1;
|
|
1393
|
-
}));
|
|
1394
|
-
}
|
|
1395
|
-
var Ts = {
|
|
1396
|
-
setGrabCursor: Ss,
|
|
1397
|
-
unsetGrabCursor: Es
|
|
1398
|
-
};
|
|
1399
|
-
function xs(t, e) {
|
|
1400
|
-
e === void 0 && (e = this);
|
|
1401
|
-
function s(r) {
|
|
1402
|
-
if (!r || r === K() || r === B()) return null;
|
|
1403
|
-
r.assignedSlot && (r = r.assignedSlot);
|
|
1404
|
-
const n = r.closest(t);
|
|
1405
|
-
return !n && !r.getRootNode ? null : n || s(r.getRootNode().host);
|
|
1406
|
-
}
|
|
1407
|
-
return s(e);
|
|
1408
|
-
}
|
|
1409
|
-
function Ge(t, e, s) {
|
|
1410
|
-
const r = B(), {
|
|
1411
|
-
params: n
|
|
1412
|
-
} = t, i = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
|
|
1413
|
-
return i && (s <= l || s >= r.innerWidth - l) ? i === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
|
|
1414
|
-
}
|
|
1415
|
-
function Cs(t) {
|
|
1416
|
-
const e = this, s = K();
|
|
1417
|
-
let r = t;
|
|
1418
|
-
r.originalEvent && (r = r.originalEvent);
|
|
1419
|
-
const n = e.touchEventsData;
|
|
1420
|
-
if (r.type === "pointerdown") {
|
|
1421
|
-
if (n.pointerId !== null && n.pointerId !== r.pointerId)
|
|
1422
|
-
return;
|
|
1423
|
-
n.pointerId = r.pointerId;
|
|
1424
|
-
} else r.type === "touchstart" && r.targetTouches.length === 1 && (n.touchId = r.targetTouches[0].identifier);
|
|
1425
|
-
if (r.type === "touchstart") {
|
|
1426
|
-
Ge(e, r, r.targetTouches[0].pageX);
|
|
1427
|
-
return;
|
|
1428
|
-
}
|
|
1429
|
-
const {
|
|
1430
|
-
params: i,
|
|
1431
|
-
touches: l,
|
|
1432
|
-
enabled: a
|
|
1433
|
-
} = e;
|
|
1434
|
-
if (!a || !i.simulateTouch && r.pointerType === "mouse" || e.animating && i.preventInteractionOnTransition)
|
|
1435
|
-
return;
|
|
1436
|
-
!e.animating && i.cssMode && i.loop && e.loopFix();
|
|
1437
|
-
let o = r.target;
|
|
1438
|
-
if (i.touchEventsTarget === "wrapper" && !zt(o, e.wrapperEl) || "which" in r && r.which === 3 || "button" in r && r.button > 0 || n.isTouched && n.isMoved) return;
|
|
1439
|
-
const c = !!i.noSwipingClass && i.noSwipingClass !== "", d = r.composedPath ? r.composedPath() : r.path;
|
|
1440
|
-
c && r.target && r.target.shadowRoot && d && (o = d[0]);
|
|
1441
|
-
const p = i.noSwipingSelector ? i.noSwipingSelector : `.${i.noSwipingClass}`, h = !!(r.target && r.target.shadowRoot);
|
|
1442
|
-
if (i.noSwiping && (h ? xs(p, o) : o.closest(p))) {
|
|
1443
|
-
e.allowClick = !0;
|
|
1444
|
-
return;
|
|
1445
|
-
}
|
|
1446
|
-
if (i.swipeHandler && !o.closest(i.swipeHandler))
|
|
1447
|
-
return;
|
|
1448
|
-
l.currentX = r.pageX, l.currentY = r.pageY;
|
|
1449
|
-
const g = l.currentX, m = l.currentY;
|
|
1450
|
-
if (!Ge(e, r, g))
|
|
1451
|
-
return;
|
|
1452
|
-
Object.assign(n, {
|
|
1453
|
-
isTouched: !0,
|
|
1454
|
-
isMoved: !1,
|
|
1455
|
-
allowTouchCallbacks: !0,
|
|
1456
|
-
isScrolling: void 0,
|
|
1457
|
-
startMoving: void 0
|
|
1458
|
-
}), l.startX = g, l.startY = m, n.touchStartTime = le(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, i.threshold > 0 && (n.allowThresholdMove = !1);
|
|
1459
|
-
let T = !0;
|
|
1460
|
-
o.matches(n.focusableElements) && (T = !1, o.nodeName === "SELECT" && (n.isTouched = !1)), s.activeElement && s.activeElement.matches(n.focusableElements) && s.activeElement !== o && (r.pointerType === "mouse" || r.pointerType !== "mouse" && !o.matches(n.focusableElements)) && s.activeElement.blur();
|
|
1461
|
-
const M = T && e.allowTouchMove && i.touchStartPreventDefault;
|
|
1462
|
-
(i.touchStartForcePreventDefault || M) && !o.isContentEditable && r.preventDefault(), i.freeMode && i.freeMode.enabled && e.freeMode && e.animating && !i.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", r);
|
|
1463
|
-
}
|
|
1464
|
-
function Ps(t) {
|
|
1465
|
-
const e = K(), s = this, r = s.touchEventsData, {
|
|
1466
|
-
params: n,
|
|
1467
|
-
touches: i,
|
|
1468
|
-
rtlTranslate: l,
|
|
1469
|
-
enabled: a
|
|
1470
|
-
} = s;
|
|
1471
|
-
if (!a || !n.simulateTouch && t.pointerType === "mouse") return;
|
|
1472
|
-
let o = t;
|
|
1473
|
-
if (o.originalEvent && (o = o.originalEvent), o.type === "pointermove" && (r.touchId !== null || o.pointerId !== r.pointerId))
|
|
1474
|
-
return;
|
|
1475
|
-
let c;
|
|
1476
|
-
if (o.type === "touchmove") {
|
|
1477
|
-
if (c = [...o.changedTouches].find((y) => y.identifier === r.touchId), !c || c.identifier !== r.touchId) return;
|
|
1478
|
-
} else
|
|
1479
|
-
c = o;
|
|
1480
|
-
if (!r.isTouched) {
|
|
1481
|
-
r.startMoving && r.isScrolling && s.emit("touchMoveOpposite", o);
|
|
1482
|
-
return;
|
|
1483
|
-
}
|
|
1484
|
-
const d = c.pageX, p = c.pageY;
|
|
1485
|
-
if (o.preventedByNestedSwiper) {
|
|
1486
|
-
i.startX = d, i.startY = p;
|
|
1487
|
-
return;
|
|
1488
|
-
}
|
|
1489
|
-
if (!s.allowTouchMove) {
|
|
1490
|
-
o.target.matches(r.focusableElements) || (s.allowClick = !1), r.isTouched && (Object.assign(i, {
|
|
1491
|
-
startX: d,
|
|
1492
|
-
startY: p,
|
|
1493
|
-
currentX: d,
|
|
1494
|
-
currentY: p
|
|
1495
|
-
}), r.touchStartTime = le());
|
|
1496
|
-
return;
|
|
1497
|
-
}
|
|
1498
|
-
if (n.touchReleaseOnEdges && !n.loop) {
|
|
1499
|
-
if (s.isVertical()) {
|
|
1500
|
-
if (p < i.startY && s.translate <= s.maxTranslate() || p > i.startY && s.translate >= s.minTranslate()) {
|
|
1501
|
-
r.isTouched = !1, r.isMoved = !1;
|
|
1502
|
-
return;
|
|
1503
|
-
}
|
|
1504
|
-
} else if (l && (d > i.startX && -s.translate <= s.maxTranslate() || d < i.startX && -s.translate >= s.minTranslate()) || !l && (d < i.startX && s.translate <= s.maxTranslate() || d > i.startX && s.translate >= s.minTranslate()))
|
|
1505
|
-
return;
|
|
1506
|
-
}
|
|
1507
|
-
if (e.activeElement && e.activeElement.matches(r.focusableElements) && e.activeElement !== o.target && o.pointerType !== "mouse" && e.activeElement.blur(), e.activeElement && o.target === e.activeElement && o.target.matches(r.focusableElements)) {
|
|
1508
|
-
r.isMoved = !0, s.allowClick = !1;
|
|
1509
|
-
return;
|
|
1510
|
-
}
|
|
1511
|
-
r.allowTouchCallbacks && s.emit("touchMove", o), i.previousX = i.currentX, i.previousY = i.currentY, i.currentX = d, i.currentY = p;
|
|
1512
|
-
const h = i.currentX - i.startX, g = i.currentY - i.startY;
|
|
1513
|
-
if (s.params.threshold && Math.sqrt(h ** 2 + g ** 2) < s.params.threshold) return;
|
|
1514
|
-
if (typeof r.isScrolling > "u") {
|
|
1515
|
-
let y;
|
|
1516
|
-
s.isHorizontal() && i.currentY === i.startY || s.isVertical() && i.currentX === i.startX ? r.isScrolling = !1 : h * h + g * g >= 25 && (y = Math.atan2(Math.abs(g), Math.abs(h)) * 180 / Math.PI, r.isScrolling = s.isHorizontal() ? y > n.touchAngle : 90 - y > n.touchAngle);
|
|
1517
|
-
}
|
|
1518
|
-
if (r.isScrolling && s.emit("touchMoveOpposite", o), typeof r.startMoving > "u" && (i.currentX !== i.startX || i.currentY !== i.startY) && (r.startMoving = !0), r.isScrolling || o.type === "touchmove" && r.preventTouchMoveFromPointerMove) {
|
|
1519
|
-
r.isTouched = !1;
|
|
1520
|
-
return;
|
|
1521
|
-
}
|
|
1522
|
-
if (!r.startMoving)
|
|
1523
|
-
return;
|
|
1524
|
-
s.allowClick = !1, !n.cssMode && o.cancelable && o.preventDefault(), n.touchMoveStopPropagation && !n.nested && o.stopPropagation();
|
|
1525
|
-
let m = s.isHorizontal() ? h : g, T = s.isHorizontal() ? i.currentX - i.previousX : i.currentY - i.previousY;
|
|
1526
|
-
n.oneWayMovement && (m = Math.abs(m) * (l ? 1 : -1), T = Math.abs(T) * (l ? 1 : -1)), i.diff = m, m *= n.touchRatio, l && (m = -m, T = -T);
|
|
1527
|
-
const M = s.touchesDirection;
|
|
1528
|
-
s.swipeDirection = m > 0 ? "prev" : "next", s.touchesDirection = T > 0 ? "prev" : "next";
|
|
1529
|
-
const w = s.params.loop && !n.cssMode, u = s.touchesDirection === "next" && s.allowSlideNext || s.touchesDirection === "prev" && s.allowSlidePrev;
|
|
1530
|
-
if (!r.isMoved) {
|
|
1531
|
-
if (w && u && s.loopFix({
|
|
1532
|
-
direction: s.swipeDirection
|
|
1533
|
-
}), r.startTranslate = s.getTranslate(), s.setTransition(0), s.animating) {
|
|
1534
|
-
const y = new window.CustomEvent("transitionend", {
|
|
1535
|
-
bubbles: !0,
|
|
1536
|
-
cancelable: !0,
|
|
1537
|
-
detail: {
|
|
1538
|
-
bySwiperTouchMove: !0
|
|
1539
|
-
}
|
|
1540
|
-
});
|
|
1541
|
-
s.wrapperEl.dispatchEvent(y);
|
|
1542
|
-
}
|
|
1543
|
-
r.allowMomentumBounce = !1, n.grabCursor && (s.allowSlideNext === !0 || s.allowSlidePrev === !0) && s.setGrabCursor(!0), s.emit("sliderFirstMove", o);
|
|
1544
|
-
}
|
|
1545
|
-
if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && r.isMoved && r.allowThresholdMove && M !== s.touchesDirection && w && u && Math.abs(m) >= 1) {
|
|
1546
|
-
Object.assign(i, {
|
|
1547
|
-
startX: d,
|
|
1548
|
-
startY: p,
|
|
1549
|
-
currentX: d,
|
|
1550
|
-
currentY: p,
|
|
1551
|
-
startTranslate: r.currentTranslate
|
|
1552
|
-
}), r.loopSwapReset = !0, r.startTranslate = r.currentTranslate;
|
|
1553
|
-
return;
|
|
1554
|
-
}
|
|
1555
|
-
s.emit("sliderMove", o), r.isMoved = !0, r.currentTranslate = m + r.startTranslate;
|
|
1556
|
-
let f = !0, v = n.resistanceRatio;
|
|
1557
|
-
if (n.touchReleaseOnEdges && (v = 0), m > 0 ? (w && u && r.allowThresholdMove && r.currentTranslate > (n.centeredSlides ? s.minTranslate() - s.slidesSizesGrid[s.activeIndex + 1] - (n.slidesPerView !== "auto" && s.slides.length - n.slidesPerView >= 2 ? s.slidesSizesGrid[s.activeIndex + 1] + s.params.spaceBetween : 0) - s.params.spaceBetween : s.minTranslate()) && s.loopFix({
|
|
1558
|
-
direction: "prev",
|
|
1559
|
-
setTranslate: !0,
|
|
1560
|
-
activeSlideIndex: 0
|
|
1561
|
-
}), r.currentTranslate > s.minTranslate() && (f = !1, n.resistance && (r.currentTranslate = s.minTranslate() - 1 + (-s.minTranslate() + r.startTranslate + m) ** v))) : m < 0 && (w && u && r.allowThresholdMove && r.currentTranslate < (n.centeredSlides ? s.maxTranslate() + s.slidesSizesGrid[s.slidesSizesGrid.length - 1] + s.params.spaceBetween + (n.slidesPerView !== "auto" && s.slides.length - n.slidesPerView >= 2 ? s.slidesSizesGrid[s.slidesSizesGrid.length - 1] + s.params.spaceBetween : 0) : s.maxTranslate()) && s.loopFix({
|
|
1562
|
-
direction: "next",
|
|
1563
|
-
setTranslate: !0,
|
|
1564
|
-
activeSlideIndex: s.slides.length - (n.slidesPerView === "auto" ? s.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
|
|
1565
|
-
}), r.currentTranslate < s.maxTranslate() && (f = !1, n.resistance && (r.currentTranslate = s.maxTranslate() + 1 - (s.maxTranslate() - r.startTranslate - m) ** v))), f && (o.preventedByNestedSwiper = !0), !s.allowSlideNext && s.swipeDirection === "next" && r.currentTranslate < r.startTranslate && (r.currentTranslate = r.startTranslate), !s.allowSlidePrev && s.swipeDirection === "prev" && r.currentTranslate > r.startTranslate && (r.currentTranslate = r.startTranslate), !s.allowSlidePrev && !s.allowSlideNext && (r.currentTranslate = r.startTranslate), n.threshold > 0)
|
|
1566
|
-
if (Math.abs(m) > n.threshold || r.allowThresholdMove) {
|
|
1567
|
-
if (!r.allowThresholdMove) {
|
|
1568
|
-
r.allowThresholdMove = !0, i.startX = i.currentX, i.startY = i.currentY, r.currentTranslate = r.startTranslate, i.diff = s.isHorizontal() ? i.currentX - i.startX : i.currentY - i.startY;
|
|
1569
|
-
return;
|
|
1570
|
-
}
|
|
1571
|
-
} else {
|
|
1572
|
-
r.currentTranslate = r.startTranslate;
|
|
1573
|
-
return;
|
|
1574
|
-
}
|
|
1575
|
-
!n.followFinger || n.cssMode || ((n.freeMode && n.freeMode.enabled && s.freeMode || n.watchSlidesProgress) && (s.updateActiveIndex(), s.updateSlidesClasses()), n.freeMode && n.freeMode.enabled && s.freeMode && s.freeMode.onTouchMove(), s.updateProgress(r.currentTranslate), s.setTranslate(r.currentTranslate));
|
|
1576
|
-
}
|
|
1577
|
-
function Ms(t) {
|
|
1578
|
-
const e = this, s = e.touchEventsData;
|
|
1579
|
-
let r = t;
|
|
1580
|
-
r.originalEvent && (r = r.originalEvent);
|
|
1581
|
-
let n;
|
|
1582
|
-
if (r.type === "touchend" || r.type === "touchcancel") {
|
|
1583
|
-
if (n = [...r.changedTouches].find((v) => v.identifier === s.touchId), !n || n.identifier !== s.touchId) return;
|
|
1584
|
-
} else {
|
|
1585
|
-
if (s.touchId !== null || r.pointerId !== s.pointerId) return;
|
|
1586
|
-
n = r;
|
|
1587
|
-
}
|
|
1588
|
-
if (["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(r.type) && !(["pointercancel", "contextmenu"].includes(r.type) && (e.browser.isSafari || e.browser.isWebView)))
|
|
1589
|
-
return;
|
|
1590
|
-
s.pointerId = null, s.touchId = null;
|
|
1591
|
-
const {
|
|
1592
|
-
params: i,
|
|
1593
|
-
touches: l,
|
|
1594
|
-
rtlTranslate: a,
|
|
1595
|
-
slidesGrid: o,
|
|
1596
|
-
enabled: c
|
|
1597
|
-
} = e;
|
|
1598
|
-
if (!c || !i.simulateTouch && r.pointerType === "mouse") return;
|
|
1599
|
-
if (s.allowTouchCallbacks && e.emit("touchEnd", r), s.allowTouchCallbacks = !1, !s.isTouched) {
|
|
1600
|
-
s.isMoved && i.grabCursor && e.setGrabCursor(!1), s.isMoved = !1, s.startMoving = !1;
|
|
1601
|
-
return;
|
|
1602
|
-
}
|
|
1603
|
-
i.grabCursor && s.isMoved && s.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
|
|
1604
|
-
const d = le(), p = d - s.touchStartTime;
|
|
1605
|
-
if (e.allowClick) {
|
|
1606
|
-
const v = r.path || r.composedPath && r.composedPath();
|
|
1607
|
-
e.updateClickedSlide(v && v[0] || r.target, v), e.emit("tap click", r), p < 300 && d - s.lastClickTime < 300 && e.emit("doubleTap doubleClick", r);
|
|
1608
|
-
}
|
|
1609
|
-
if (s.lastClickTime = le(), Te(() => {
|
|
1610
|
-
e.destroyed || (e.allowClick = !0);
|
|
1611
|
-
}), !s.isTouched || !s.isMoved || !e.swipeDirection || l.diff === 0 && !s.loopSwapReset || s.currentTranslate === s.startTranslate && !s.loopSwapReset) {
|
|
1612
|
-
s.isTouched = !1, s.isMoved = !1, s.startMoving = !1;
|
|
1613
|
-
return;
|
|
1614
|
-
}
|
|
1615
|
-
s.isTouched = !1, s.isMoved = !1, s.startMoving = !1;
|
|
1616
|
-
let h;
|
|
1617
|
-
if (i.followFinger ? h = a ? e.translate : -e.translate : h = -s.currentTranslate, i.cssMode)
|
|
1618
|
-
return;
|
|
1619
|
-
if (i.freeMode && i.freeMode.enabled) {
|
|
1620
|
-
e.freeMode.onTouchEnd({
|
|
1621
|
-
currentPos: h
|
|
1622
|
-
});
|
|
1623
|
-
return;
|
|
1624
|
-
}
|
|
1625
|
-
const g = h >= -e.maxTranslate() && !e.params.loop;
|
|
1626
|
-
let m = 0, T = e.slidesSizesGrid[0];
|
|
1627
|
-
for (let v = 0; v < o.length; v += v < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
|
|
1628
|
-
const y = v < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
|
|
1629
|
-
typeof o[v + y] < "u" ? (g || h >= o[v] && h < o[v + y]) && (m = v, T = o[v + y] - o[v]) : (g || h >= o[v]) && (m = v, T = o[o.length - 1] - o[o.length - 2]);
|
|
1630
|
-
}
|
|
1631
|
-
let M = null, w = null;
|
|
1632
|
-
i.rewind && (e.isBeginning ? w = i.virtual && i.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (M = 0));
|
|
1633
|
-
const u = (h - o[m]) / T, f = m < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
|
|
1634
|
-
if (p > i.longSwipesMs) {
|
|
1635
|
-
if (!i.longSwipes) {
|
|
1636
|
-
e.slideTo(e.activeIndex);
|
|
1637
|
-
return;
|
|
1638
|
-
}
|
|
1639
|
-
e.swipeDirection === "next" && (u >= i.longSwipesRatio ? e.slideTo(i.rewind && e.isEnd ? M : m + f) : e.slideTo(m)), e.swipeDirection === "prev" && (u > 1 - i.longSwipesRatio ? e.slideTo(m + f) : w !== null && u < 0 && Math.abs(u) > i.longSwipesRatio ? e.slideTo(w) : e.slideTo(m));
|
|
1640
|
-
} else {
|
|
1641
|
-
if (!i.shortSwipes) {
|
|
1642
|
-
e.slideTo(e.activeIndex);
|
|
1643
|
-
return;
|
|
1644
|
-
}
|
|
1645
|
-
e.navigation && (r.target === e.navigation.nextEl || r.target === e.navigation.prevEl) ? r.target === e.navigation.nextEl ? e.slideTo(m + f) : e.slideTo(m) : (e.swipeDirection === "next" && e.slideTo(M !== null ? M : m + f), e.swipeDirection === "prev" && e.slideTo(w !== null ? w : m));
|
|
1646
|
-
}
|
|
1647
|
-
}
|
|
1648
|
-
function Be() {
|
|
1649
|
-
const t = this, {
|
|
1650
|
-
params: e,
|
|
1651
|
-
el: s
|
|
1652
|
-
} = t;
|
|
1653
|
-
if (s && s.offsetWidth === 0) return;
|
|
1654
|
-
e.breakpoints && t.setBreakpoint();
|
|
1655
|
-
const {
|
|
1656
|
-
allowSlideNext: r,
|
|
1657
|
-
allowSlidePrev: n,
|
|
1658
|
-
snapGrid: i
|
|
1659
|
-
} = t, l = t.virtual && t.params.virtual.enabled;
|
|
1660
|
-
t.allowSlideNext = !0, t.allowSlidePrev = !0, t.updateSize(), t.updateSlides(), t.updateSlidesClasses();
|
|
1661
|
-
const a = l && e.loop;
|
|
1662
|
-
(e.slidesPerView === "auto" || e.slidesPerView > 1) && t.isEnd && !t.isBeginning && !t.params.centeredSlides && !a ? t.slideTo(t.slides.length - 1, 0, !1, !0) : t.params.loop && !l ? t.slideToLoop(t.realIndex, 0, !1, !0) : t.slideTo(t.activeIndex, 0, !1, !0), t.autoplay && t.autoplay.running && t.autoplay.paused && (clearTimeout(t.autoplay.resizeTimeout), t.autoplay.resizeTimeout = setTimeout(() => {
|
|
1663
|
-
t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
|
|
1664
|
-
}, 500)), t.allowSlidePrev = n, t.allowSlideNext = r, t.params.watchOverflow && i !== t.snapGrid && t.checkOverflow();
|
|
1665
|
-
}
|
|
1666
|
-
function ks(t) {
|
|
1667
|
-
const e = this;
|
|
1668
|
-
e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
|
|
1669
|
-
}
|
|
1670
|
-
function Is() {
|
|
1671
|
-
const t = this, {
|
|
1672
|
-
wrapperEl: e,
|
|
1673
|
-
rtlTranslate: s,
|
|
1674
|
-
enabled: r
|
|
1675
|
-
} = t;
|
|
1676
|
-
if (!r) return;
|
|
1677
|
-
t.previousTranslate = t.translate, t.isHorizontal() ? t.translate = -e.scrollLeft : t.translate = -e.scrollTop, t.translate === 0 && (t.translate = 0), t.updateActiveIndex(), t.updateSlidesClasses();
|
|
1678
|
-
let n;
|
|
1679
|
-
const i = t.maxTranslate() - t.minTranslate();
|
|
1680
|
-
i === 0 ? n = 0 : n = (t.translate - t.minTranslate()) / i, n !== t.progress && t.updateProgress(s ? -t.translate : t.translate), t.emit("setTranslate", t.translate, !1);
|
|
1681
|
-
}
|
|
1682
|
-
function Ls(t) {
|
|
1683
|
-
const e = this;
|
|
1684
|
-
ne(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
|
|
1685
|
-
}
|
|
1686
|
-
function As() {
|
|
1687
|
-
const t = this;
|
|
1688
|
-
t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
|
|
1689
|
-
}
|
|
1690
|
-
const et = (t, e) => {
|
|
1691
|
-
const s = K(), {
|
|
1692
|
-
params: r,
|
|
1693
|
-
el: n,
|
|
1694
|
-
wrapperEl: i,
|
|
1695
|
-
device: l
|
|
1696
|
-
} = t, a = !!r.nested, o = e === "on" ? "addEventListener" : "removeEventListener", c = e;
|
|
1697
|
-
!n || typeof n == "string" || (s[o]("touchstart", t.onDocumentTouchStart, {
|
|
1698
|
-
passive: !1,
|
|
1699
|
-
capture: a
|
|
1700
|
-
}), n[o]("touchstart", t.onTouchStart, {
|
|
1701
|
-
passive: !1
|
|
1702
|
-
}), n[o]("pointerdown", t.onTouchStart, {
|
|
1703
|
-
passive: !1
|
|
1704
|
-
}), s[o]("touchmove", t.onTouchMove, {
|
|
1705
|
-
passive: !1,
|
|
1706
|
-
capture: a
|
|
1707
|
-
}), s[o]("pointermove", t.onTouchMove, {
|
|
1708
|
-
passive: !1,
|
|
1709
|
-
capture: a
|
|
1710
|
-
}), s[o]("touchend", t.onTouchEnd, {
|
|
1711
|
-
passive: !0
|
|
1712
|
-
}), s[o]("pointerup", t.onTouchEnd, {
|
|
1713
|
-
passive: !0
|
|
1714
|
-
}), s[o]("pointercancel", t.onTouchEnd, {
|
|
1715
|
-
passive: !0
|
|
1716
|
-
}), s[o]("touchcancel", t.onTouchEnd, {
|
|
1717
|
-
passive: !0
|
|
1718
|
-
}), s[o]("pointerout", t.onTouchEnd, {
|
|
1719
|
-
passive: !0
|
|
1720
|
-
}), s[o]("pointerleave", t.onTouchEnd, {
|
|
1721
|
-
passive: !0
|
|
1722
|
-
}), s[o]("contextmenu", t.onTouchEnd, {
|
|
1723
|
-
passive: !0
|
|
1724
|
-
}), (r.preventClicks || r.preventClicksPropagation) && n[o]("click", t.onClick, !0), r.cssMode && i[o]("scroll", t.onScroll), r.updateOnWindowResize ? t[c](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", Be, !0) : t[c]("observerUpdate", Be, !0), n[o]("load", t.onLoad, {
|
|
1725
|
-
capture: !0
|
|
1726
|
-
}));
|
|
1727
|
-
};
|
|
1728
|
-
function Os() {
|
|
1729
|
-
const t = this, {
|
|
1730
|
-
params: e
|
|
1731
|
-
} = t;
|
|
1732
|
-
t.onTouchStart = Cs.bind(t), t.onTouchMove = Ps.bind(t), t.onTouchEnd = Ms.bind(t), t.onDocumentTouchStart = As.bind(t), e.cssMode && (t.onScroll = Is.bind(t)), t.onClick = ks.bind(t), t.onLoad = Ls.bind(t), et(t, "on");
|
|
1733
|
-
}
|
|
1734
|
-
function zs() {
|
|
1735
|
-
et(this, "off");
|
|
1736
|
-
}
|
|
1737
|
-
var _s = {
|
|
1738
|
-
attachEvents: Os,
|
|
1739
|
-
detachEvents: zs
|
|
1740
|
-
};
|
|
1741
|
-
const Ne = (t, e) => t.grid && e.grid && e.grid.rows > 1;
|
|
1742
|
-
function $s() {
|
|
1743
|
-
const t = this, {
|
|
1744
|
-
realIndex: e,
|
|
1745
|
-
initialized: s,
|
|
1746
|
-
params: r,
|
|
1747
|
-
el: n
|
|
1748
|
-
} = t, i = r.breakpoints;
|
|
1749
|
-
if (!i || i && Object.keys(i).length === 0) return;
|
|
1750
|
-
const l = K(), a = r.breakpointsBase === "window" || !r.breakpointsBase ? r.breakpointsBase : "container", o = ["window", "container"].includes(r.breakpointsBase) || !r.breakpointsBase ? t.el : l.querySelector(r.breakpointsBase), c = t.getBreakpoint(i, a, o);
|
|
1751
|
-
if (!c || t.currentBreakpoint === c) return;
|
|
1752
|
-
const d = (c in i ? i[c] : void 0) || t.originalParams, p = Ne(t, r), h = Ne(t, d), g = t.params.grabCursor, m = d.grabCursor, T = r.enabled;
|
|
1753
|
-
p && !h ? (n.classList.remove(`${r.containerModifierClass}grid`, `${r.containerModifierClass}grid-column`), t.emitContainerClasses()) : !p && h && (n.classList.add(`${r.containerModifierClass}grid`), (d.grid.fill && d.grid.fill === "column" || !d.grid.fill && r.grid.fill === "column") && n.classList.add(`${r.containerModifierClass}grid-column`), t.emitContainerClasses()), g && !m ? t.unsetGrabCursor() : !g && m && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((y) => {
|
|
1754
|
-
if (typeof d[y] > "u") return;
|
|
1755
|
-
const C = r[y] && r[y].enabled, A = d[y] && d[y].enabled;
|
|
1756
|
-
C && !A && t[y].disable(), !C && A && t[y].enable();
|
|
1757
|
-
});
|
|
1758
|
-
const M = d.direction && d.direction !== r.direction, w = r.loop && (d.slidesPerView !== r.slidesPerView || M), u = r.loop;
|
|
1759
|
-
M && s && t.changeDirection(), N(t.params, d);
|
|
1760
|
-
const f = t.params.enabled, v = t.params.loop;
|
|
1761
|
-
Object.assign(t, {
|
|
1762
|
-
allowTouchMove: t.params.allowTouchMove,
|
|
1763
|
-
allowSlideNext: t.params.allowSlideNext,
|
|
1764
|
-
allowSlidePrev: t.params.allowSlidePrev
|
|
1765
|
-
}), T && !f ? t.disable() : !T && f && t.enable(), t.currentBreakpoint = c, t.emit("_beforeBreakpoint", d), s && (w ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !u && v ? (t.loopCreate(e), t.updateSlides()) : u && !v && t.loopDestroy()), t.emit("breakpoint", d);
|
|
1766
|
-
}
|
|
1767
|
-
function Gs(t, e, s) {
|
|
1768
|
-
if (e === void 0 && (e = "window"), !t || e === "container" && !s) return;
|
|
1769
|
-
let r = !1;
|
|
1770
|
-
const n = B(), i = e === "window" ? n.innerHeight : s.clientHeight, l = Object.keys(t).map((a) => {
|
|
1771
|
-
if (typeof a == "string" && a.indexOf("@") === 0) {
|
|
1772
|
-
const o = parseFloat(a.substr(1));
|
|
1773
|
-
return {
|
|
1774
|
-
value: i * o,
|
|
1775
|
-
point: a
|
|
1776
|
-
};
|
|
1777
|
-
}
|
|
1778
|
-
return {
|
|
1779
|
-
value: a,
|
|
1780
|
-
point: a
|
|
1781
|
-
};
|
|
1782
|
-
});
|
|
1783
|
-
l.sort((a, o) => parseInt(a.value, 10) - parseInt(o.value, 10));
|
|
1784
|
-
for (let a = 0; a < l.length; a += 1) {
|
|
1785
|
-
const {
|
|
1786
|
-
point: o,
|
|
1787
|
-
value: c
|
|
1788
|
-
} = l[a];
|
|
1789
|
-
e === "window" ? n.matchMedia(`(min-width: ${c}px)`).matches && (r = o) : c <= s.clientWidth && (r = o);
|
|
1790
|
-
}
|
|
1791
|
-
return r || "max";
|
|
1792
|
-
}
|
|
1793
|
-
var Bs = {
|
|
1794
|
-
setBreakpoint: $s,
|
|
1795
|
-
getBreakpoint: Gs
|
|
1796
|
-
};
|
|
1797
|
-
function Ns(t, e) {
|
|
1798
|
-
const s = [];
|
|
1799
|
-
return t.forEach((r) => {
|
|
1800
|
-
typeof r == "object" ? Object.keys(r).forEach((n) => {
|
|
1801
|
-
r[n] && s.push(e + n);
|
|
1802
|
-
}) : typeof r == "string" && s.push(e + r);
|
|
1803
|
-
}), s;
|
|
1804
|
-
}
|
|
1805
|
-
function Ds() {
|
|
1806
|
-
const t = this, {
|
|
1807
|
-
classNames: e,
|
|
1808
|
-
params: s,
|
|
1809
|
-
rtl: r,
|
|
1810
|
-
el: n,
|
|
1811
|
-
device: i
|
|
1812
|
-
} = t, l = Ns(["initialized", s.direction, {
|
|
1813
|
-
"free-mode": t.params.freeMode && s.freeMode.enabled
|
|
1814
|
-
}, {
|
|
1815
|
-
autoheight: s.autoHeight
|
|
1816
|
-
}, {
|
|
1817
|
-
rtl: r
|
|
1818
|
-
}, {
|
|
1819
|
-
grid: s.grid && s.grid.rows > 1
|
|
1820
|
-
}, {
|
|
1821
|
-
"grid-column": s.grid && s.grid.rows > 1 && s.grid.fill === "column"
|
|
1822
|
-
}, {
|
|
1823
|
-
android: i.android
|
|
1824
|
-
}, {
|
|
1825
|
-
ios: i.ios
|
|
1826
|
-
}, {
|
|
1827
|
-
"css-mode": s.cssMode
|
|
1828
|
-
}, {
|
|
1829
|
-
centered: s.cssMode && s.centeredSlides
|
|
1830
|
-
}, {
|
|
1831
|
-
"watch-progress": s.watchSlidesProgress
|
|
1832
|
-
}], s.containerModifierClass);
|
|
1833
|
-
e.push(...l), n.classList.add(...e), t.emitContainerClasses();
|
|
1834
|
-
}
|
|
1835
|
-
function Fs() {
|
|
1836
|
-
const t = this, {
|
|
1837
|
-
el: e,
|
|
1838
|
-
classNames: s
|
|
1839
|
-
} = t;
|
|
1840
|
-
!e || typeof e == "string" || (e.classList.remove(...s), t.emitContainerClasses());
|
|
1841
|
-
}
|
|
1842
|
-
var Vs = {
|
|
1843
|
-
addClasses: Ds,
|
|
1844
|
-
removeClasses: Fs
|
|
1845
|
-
};
|
|
1846
|
-
function js() {
|
|
1847
|
-
const t = this, {
|
|
1848
|
-
isLocked: e,
|
|
1849
|
-
params: s
|
|
1850
|
-
} = t, {
|
|
1851
|
-
slidesOffsetBefore: r
|
|
1852
|
-
} = s;
|
|
1853
|
-
if (r) {
|
|
1854
|
-
const n = t.slides.length - 1, i = t.slidesGrid[n] + t.slidesSizesGrid[n] + r * 2;
|
|
1855
|
-
t.isLocked = t.size > i;
|
|
1856
|
-
} else
|
|
1857
|
-
t.isLocked = t.snapGrid.length === 1;
|
|
1858
|
-
s.allowSlideNext === !0 && (t.allowSlideNext = !t.isLocked), s.allowSlidePrev === !0 && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = !1), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
|
|
1859
|
-
}
|
|
1860
|
-
var Hs = {
|
|
1861
|
-
checkOverflow: js
|
|
1862
|
-
}, Pe = {
|
|
1863
|
-
init: !0,
|
|
1864
|
-
direction: "horizontal",
|
|
1865
|
-
oneWayMovement: !1,
|
|
1866
|
-
swiperElementNodeName: "SWIPER-CONTAINER",
|
|
1867
|
-
touchEventsTarget: "wrapper",
|
|
1868
|
-
initialSlide: 0,
|
|
1869
|
-
speed: 300,
|
|
1870
|
-
cssMode: !1,
|
|
1871
|
-
updateOnWindowResize: !0,
|
|
1872
|
-
resizeObserver: !0,
|
|
1873
|
-
nested: !1,
|
|
1874
|
-
createElements: !1,
|
|
1875
|
-
eventsPrefix: "swiper",
|
|
1876
|
-
enabled: !0,
|
|
1877
|
-
focusableElements: "input, select, option, textarea, button, video, label",
|
|
1878
|
-
// Overrides
|
|
1879
|
-
width: null,
|
|
1880
|
-
height: null,
|
|
1881
|
-
//
|
|
1882
|
-
preventInteractionOnTransition: !1,
|
|
1883
|
-
// ssr
|
|
1884
|
-
userAgent: null,
|
|
1885
|
-
url: null,
|
|
1886
|
-
// To support iOS's swipe-to-go-back gesture (when being used in-app).
|
|
1887
|
-
edgeSwipeDetection: !1,
|
|
1888
|
-
edgeSwipeThreshold: 20,
|
|
1889
|
-
// Autoheight
|
|
1890
|
-
autoHeight: !1,
|
|
1891
|
-
// Set wrapper width
|
|
1892
|
-
setWrapperSize: !1,
|
|
1893
|
-
// Virtual Translate
|
|
1894
|
-
virtualTranslate: !1,
|
|
1895
|
-
// Effects
|
|
1896
|
-
effect: "slide",
|
|
1897
|
-
// 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
|
|
1898
|
-
// Breakpoints
|
|
1899
|
-
breakpoints: void 0,
|
|
1900
|
-
breakpointsBase: "window",
|
|
1901
|
-
// Slides grid
|
|
1902
|
-
spaceBetween: 0,
|
|
1903
|
-
slidesPerView: 1,
|
|
1904
|
-
slidesPerGroup: 1,
|
|
1905
|
-
slidesPerGroupSkip: 0,
|
|
1906
|
-
slidesPerGroupAuto: !1,
|
|
1907
|
-
centeredSlides: !1,
|
|
1908
|
-
centeredSlidesBounds: !1,
|
|
1909
|
-
slidesOffsetBefore: 0,
|
|
1910
|
-
// in px
|
|
1911
|
-
slidesOffsetAfter: 0,
|
|
1912
|
-
// in px
|
|
1913
|
-
normalizeSlideIndex: !0,
|
|
1914
|
-
centerInsufficientSlides: !1,
|
|
1915
|
-
// Disable swiper and hide navigation when container not overflow
|
|
1916
|
-
watchOverflow: !0,
|
|
1917
|
-
// Round length
|
|
1918
|
-
roundLengths: !1,
|
|
1919
|
-
// Touches
|
|
1920
|
-
touchRatio: 1,
|
|
1921
|
-
touchAngle: 45,
|
|
1922
|
-
simulateTouch: !0,
|
|
1923
|
-
shortSwipes: !0,
|
|
1924
|
-
longSwipes: !0,
|
|
1925
|
-
longSwipesRatio: 0.5,
|
|
1926
|
-
longSwipesMs: 300,
|
|
1927
|
-
followFinger: !0,
|
|
1928
|
-
allowTouchMove: !0,
|
|
1929
|
-
threshold: 5,
|
|
1930
|
-
touchMoveStopPropagation: !1,
|
|
1931
|
-
touchStartPreventDefault: !0,
|
|
1932
|
-
touchStartForcePreventDefault: !1,
|
|
1933
|
-
touchReleaseOnEdges: !1,
|
|
1934
|
-
// Unique Navigation Elements
|
|
1935
|
-
uniqueNavElements: !0,
|
|
1936
|
-
// Resistance
|
|
1937
|
-
resistance: !0,
|
|
1938
|
-
resistanceRatio: 0.85,
|
|
1939
|
-
// Progress
|
|
1940
|
-
watchSlidesProgress: !1,
|
|
1941
|
-
// Cursor
|
|
1942
|
-
grabCursor: !1,
|
|
1943
|
-
// Clicks
|
|
1944
|
-
preventClicks: !0,
|
|
1945
|
-
preventClicksPropagation: !0,
|
|
1946
|
-
slideToClickedSlide: !1,
|
|
1947
|
-
// loop
|
|
1948
|
-
loop: !1,
|
|
1949
|
-
loopAddBlankSlides: !0,
|
|
1950
|
-
loopAdditionalSlides: 0,
|
|
1951
|
-
loopPreventsSliding: !0,
|
|
1952
|
-
// rewind
|
|
1953
|
-
rewind: !1,
|
|
1954
|
-
// Swiping/no swiping
|
|
1955
|
-
allowSlidePrev: !0,
|
|
1956
|
-
allowSlideNext: !0,
|
|
1957
|
-
swipeHandler: null,
|
|
1958
|
-
// '.swipe-handler',
|
|
1959
|
-
noSwiping: !0,
|
|
1960
|
-
noSwipingClass: "swiper-no-swiping",
|
|
1961
|
-
noSwipingSelector: null,
|
|
1962
|
-
// Passive Listeners
|
|
1963
|
-
passiveListeners: !0,
|
|
1964
|
-
maxBackfaceHiddenSlides: 10,
|
|
1965
|
-
// NS
|
|
1966
|
-
containerModifierClass: "swiper-",
|
|
1967
|
-
// NEW
|
|
1968
|
-
slideClass: "swiper-slide",
|
|
1969
|
-
slideBlankClass: "swiper-slide-blank",
|
|
1970
|
-
slideActiveClass: "swiper-slide-active",
|
|
1971
|
-
slideVisibleClass: "swiper-slide-visible",
|
|
1972
|
-
slideFullyVisibleClass: "swiper-slide-fully-visible",
|
|
1973
|
-
slideNextClass: "swiper-slide-next",
|
|
1974
|
-
slidePrevClass: "swiper-slide-prev",
|
|
1975
|
-
wrapperClass: "swiper-wrapper",
|
|
1976
|
-
lazyPreloaderClass: "swiper-lazy-preloader",
|
|
1977
|
-
lazyPreloadPrevNext: 0,
|
|
1978
|
-
// Callbacks
|
|
1979
|
-
runCallbacksOnInit: !0,
|
|
1980
|
-
// Internals
|
|
1981
|
-
_emitClasses: !1
|
|
1982
|
-
};
|
|
1983
|
-
function Rs(t, e) {
|
|
1984
|
-
return function(s) {
|
|
1985
|
-
s === void 0 && (s = {});
|
|
1986
|
-
const r = Object.keys(s)[0], n = s[r];
|
|
1987
|
-
if (typeof n != "object" || n === null) {
|
|
1988
|
-
N(e, s);
|
|
1989
|
-
return;
|
|
1990
|
-
}
|
|
1991
|
-
if (t[r] === !0 && (t[r] = {
|
|
1992
|
-
enabled: !0
|
|
1993
|
-
}), r === "navigation" && t[r] && t[r].enabled && !t[r].prevEl && !t[r].nextEl && (t[r].auto = !0), ["pagination", "scrollbar"].indexOf(r) >= 0 && t[r] && t[r].enabled && !t[r].el && (t[r].auto = !0), !(r in t && "enabled" in n)) {
|
|
1994
|
-
N(e, s);
|
|
1995
|
-
return;
|
|
1996
|
-
}
|
|
1997
|
-
typeof t[r] == "object" && !("enabled" in t[r]) && (t[r].enabled = !0), t[r] || (t[r] = {
|
|
1998
|
-
enabled: !1
|
|
1999
|
-
}), N(e, s);
|
|
2000
|
-
};
|
|
2001
|
-
}
|
|
2002
|
-
const ye = {
|
|
2003
|
-
eventsEmitter: Vt,
|
|
2004
|
-
update: Jt,
|
|
2005
|
-
translate: is,
|
|
2006
|
-
transition: os,
|
|
2007
|
-
slide: gs,
|
|
2008
|
-
loop: bs,
|
|
2009
|
-
grabCursor: Ts,
|
|
2010
|
-
events: _s,
|
|
2011
|
-
breakpoints: Bs,
|
|
2012
|
-
checkOverflow: Hs,
|
|
2013
|
-
classes: Vs
|
|
2014
|
-
}, be = {};
|
|
2015
|
-
let ze = class q {
|
|
2016
|
-
constructor() {
|
|
2017
|
-
let e, s;
|
|
2018
|
-
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
2019
|
-
n[i] = arguments[i];
|
|
2020
|
-
n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? s = n[0] : [e, s] = n, s || (s = {}), s = N({}, s), e && !s.el && (s.el = e);
|
|
2021
|
-
const l = K();
|
|
2022
|
-
if (s.el && typeof s.el == "string" && l.querySelectorAll(s.el).length > 1) {
|
|
2023
|
-
const d = [];
|
|
2024
|
-
return l.querySelectorAll(s.el).forEach((p) => {
|
|
2025
|
-
const h = N({}, s, {
|
|
2026
|
-
el: p
|
|
2027
|
-
});
|
|
2028
|
-
d.push(new q(h));
|
|
2029
|
-
}), d;
|
|
2030
|
-
}
|
|
2031
|
-
const a = this;
|
|
2032
|
-
a.__swiper__ = !0, a.support = Qe(), a.device = Ke({
|
|
2033
|
-
userAgent: s.userAgent
|
|
2034
|
-
}), a.browser = Je(), a.eventsListeners = {}, a.eventsAnyListeners = [], a.modules = [...a.__modules__], s.modules && Array.isArray(s.modules) && a.modules.push(...s.modules);
|
|
2035
|
-
const o = {};
|
|
2036
|
-
a.modules.forEach((d) => {
|
|
2037
|
-
d({
|
|
2038
|
-
params: s,
|
|
2039
|
-
swiper: a,
|
|
2040
|
-
extendParams: Rs(s, o),
|
|
2041
|
-
on: a.on.bind(a),
|
|
2042
|
-
once: a.once.bind(a),
|
|
2043
|
-
off: a.off.bind(a),
|
|
2044
|
-
emit: a.emit.bind(a)
|
|
2045
|
-
});
|
|
2046
|
-
});
|
|
2047
|
-
const c = N({}, Pe, o);
|
|
2048
|
-
return a.params = N({}, c, be, s), a.originalParams = N({}, a.params), a.passedParams = N({}, s), a.params && a.params.on && Object.keys(a.params.on).forEach((d) => {
|
|
2049
|
-
a.on(d, a.params.on[d]);
|
|
2050
|
-
}), a.params && a.params.onAny && a.onAny(a.params.onAny), Object.assign(a, {
|
|
2051
|
-
enabled: a.params.enabled,
|
|
2052
|
-
el: e,
|
|
2053
|
-
// Classes
|
|
2054
|
-
classNames: [],
|
|
2055
|
-
// Slides
|
|
2056
|
-
slides: [],
|
|
2057
|
-
slidesGrid: [],
|
|
2058
|
-
snapGrid: [],
|
|
2059
|
-
slidesSizesGrid: [],
|
|
2060
|
-
// isDirection
|
|
2061
|
-
isHorizontal() {
|
|
2062
|
-
return a.params.direction === "horizontal";
|
|
2063
|
-
},
|
|
2064
|
-
isVertical() {
|
|
2065
|
-
return a.params.direction === "vertical";
|
|
2066
|
-
},
|
|
2067
|
-
// Indexes
|
|
2068
|
-
activeIndex: 0,
|
|
2069
|
-
realIndex: 0,
|
|
2070
|
-
//
|
|
2071
|
-
isBeginning: !0,
|
|
2072
|
-
isEnd: !1,
|
|
2073
|
-
// Props
|
|
2074
|
-
translate: 0,
|
|
2075
|
-
previousTranslate: 0,
|
|
2076
|
-
progress: 0,
|
|
2077
|
-
velocity: 0,
|
|
2078
|
-
animating: !1,
|
|
2079
|
-
cssOverflowAdjustment() {
|
|
2080
|
-
return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
|
|
2081
|
-
},
|
|
2082
|
-
// Locks
|
|
2083
|
-
allowSlideNext: a.params.allowSlideNext,
|
|
2084
|
-
allowSlidePrev: a.params.allowSlidePrev,
|
|
2085
|
-
// Touch Events
|
|
2086
|
-
touchEventsData: {
|
|
2087
|
-
isTouched: void 0,
|
|
2088
|
-
isMoved: void 0,
|
|
2089
|
-
allowTouchCallbacks: void 0,
|
|
2090
|
-
touchStartTime: void 0,
|
|
2091
|
-
isScrolling: void 0,
|
|
2092
|
-
currentTranslate: void 0,
|
|
2093
|
-
startTranslate: void 0,
|
|
2094
|
-
allowThresholdMove: void 0,
|
|
2095
|
-
// Form elements to match
|
|
2096
|
-
focusableElements: a.params.focusableElements,
|
|
2097
|
-
// Last click time
|
|
2098
|
-
lastClickTime: 0,
|
|
2099
|
-
clickTimeout: void 0,
|
|
2100
|
-
// Velocities
|
|
2101
|
-
velocities: [],
|
|
2102
|
-
allowMomentumBounce: void 0,
|
|
2103
|
-
startMoving: void 0,
|
|
2104
|
-
pointerId: null,
|
|
2105
|
-
touchId: null
|
|
2106
|
-
},
|
|
2107
|
-
// Clicks
|
|
2108
|
-
allowClick: !0,
|
|
2109
|
-
// Touches
|
|
2110
|
-
allowTouchMove: a.params.allowTouchMove,
|
|
2111
|
-
touches: {
|
|
2112
|
-
startX: 0,
|
|
2113
|
-
startY: 0,
|
|
2114
|
-
currentX: 0,
|
|
2115
|
-
currentY: 0,
|
|
2116
|
-
diff: 0
|
|
2117
|
-
},
|
|
2118
|
-
// Images
|
|
2119
|
-
imagesToLoad: [],
|
|
2120
|
-
imagesLoaded: 0
|
|
2121
|
-
}), a.emit("_swiper"), a.params.init && a.init(), a;
|
|
2122
|
-
}
|
|
2123
|
-
getDirectionLabel(e) {
|
|
2124
|
-
return this.isHorizontal() ? e : {
|
|
2125
|
-
width: "height",
|
|
2126
|
-
"margin-top": "margin-left",
|
|
2127
|
-
"margin-bottom ": "margin-right",
|
|
2128
|
-
"margin-left": "margin-top",
|
|
2129
|
-
"margin-right": "margin-bottom",
|
|
2130
|
-
"padding-left": "padding-top",
|
|
2131
|
-
"padding-right": "padding-bottom",
|
|
2132
|
-
marginRight: "marginBottom"
|
|
2133
|
-
}[e];
|
|
2134
|
-
}
|
|
2135
|
-
getSlideIndex(e) {
|
|
2136
|
-
const {
|
|
2137
|
-
slidesEl: s,
|
|
2138
|
-
params: r
|
|
2139
|
-
} = this, n = H(s, `.${r.slideClass}, swiper-slide`), i = ce(n[0]);
|
|
2140
|
-
return ce(e) - i;
|
|
2141
|
-
}
|
|
2142
|
-
getSlideIndexByData(e) {
|
|
2143
|
-
return this.getSlideIndex(this.slides.find((s) => s.getAttribute("data-swiper-slide-index") * 1 === e));
|
|
2144
|
-
}
|
|
2145
|
-
recalcSlides() {
|
|
2146
|
-
const e = this, {
|
|
2147
|
-
slidesEl: s,
|
|
2148
|
-
params: r
|
|
2149
|
-
} = e;
|
|
2150
|
-
e.slides = H(s, `.${r.slideClass}, swiper-slide`);
|
|
2151
|
-
}
|
|
2152
|
-
enable() {
|
|
2153
|
-
const e = this;
|
|
2154
|
-
e.enabled || (e.enabled = !0, e.params.grabCursor && e.setGrabCursor(), e.emit("enable"));
|
|
2155
|
-
}
|
|
2156
|
-
disable() {
|
|
2157
|
-
const e = this;
|
|
2158
|
-
e.enabled && (e.enabled = !1, e.params.grabCursor && e.unsetGrabCursor(), e.emit("disable"));
|
|
2159
|
-
}
|
|
2160
|
-
setProgress(e, s) {
|
|
2161
|
-
const r = this;
|
|
2162
|
-
e = Math.min(Math.max(e, 0), 1);
|
|
2163
|
-
const n = r.minTranslate(), i = (r.maxTranslate() - n) * e + n;
|
|
2164
|
-
r.translateTo(i, typeof s > "u" ? 0 : s), r.updateActiveIndex(), r.updateSlidesClasses();
|
|
2165
|
-
}
|
|
2166
|
-
emitContainerClasses() {
|
|
2167
|
-
const e = this;
|
|
2168
|
-
if (!e.params._emitClasses || !e.el) return;
|
|
2169
|
-
const s = e.el.className.split(" ").filter((r) => r.indexOf("swiper") === 0 || r.indexOf(e.params.containerModifierClass) === 0);
|
|
2170
|
-
e.emit("_containerClasses", s.join(" "));
|
|
2171
|
-
}
|
|
2172
|
-
getSlideClasses(e) {
|
|
2173
|
-
const s = this;
|
|
2174
|
-
return s.destroyed ? "" : e.className.split(" ").filter((r) => r.indexOf("swiper-slide") === 0 || r.indexOf(s.params.slideClass) === 0).join(" ");
|
|
2175
|
-
}
|
|
2176
|
-
emitSlidesClasses() {
|
|
2177
|
-
const e = this;
|
|
2178
|
-
if (!e.params._emitClasses || !e.el) return;
|
|
2179
|
-
const s = [];
|
|
2180
|
-
e.slides.forEach((r) => {
|
|
2181
|
-
const n = e.getSlideClasses(r);
|
|
2182
|
-
s.push({
|
|
2183
|
-
slideEl: r,
|
|
2184
|
-
classNames: n
|
|
2185
|
-
}), e.emit("_slideClass", r, n);
|
|
2186
|
-
}), e.emit("_slideClasses", s);
|
|
2187
|
-
}
|
|
2188
|
-
slidesPerViewDynamic(e, s) {
|
|
2189
|
-
e === void 0 && (e = "current"), s === void 0 && (s = !1);
|
|
2190
|
-
const r = this, {
|
|
2191
|
-
params: n,
|
|
2192
|
-
slides: i,
|
|
2193
|
-
slidesGrid: l,
|
|
2194
|
-
slidesSizesGrid: a,
|
|
2195
|
-
size: o,
|
|
2196
|
-
activeIndex: c
|
|
2197
|
-
} = r;
|
|
2198
|
-
let d = 1;
|
|
2199
|
-
if (typeof n.slidesPerView == "number") return n.slidesPerView;
|
|
2200
|
-
if (n.centeredSlides) {
|
|
2201
|
-
let p = i[c] ? Math.ceil(i[c].swiperSlideSize) : 0, h;
|
|
2202
|
-
for (let g = c + 1; g < i.length; g += 1)
|
|
2203
|
-
i[g] && !h && (p += Math.ceil(i[g].swiperSlideSize), d += 1, p > o && (h = !0));
|
|
2204
|
-
for (let g = c - 1; g >= 0; g -= 1)
|
|
2205
|
-
i[g] && !h && (p += i[g].swiperSlideSize, d += 1, p > o && (h = !0));
|
|
2206
|
-
} else if (e === "current")
|
|
2207
|
-
for (let p = c + 1; p < i.length; p += 1)
|
|
2208
|
-
(s ? l[p] + a[p] - l[c] < o : l[p] - l[c] < o) && (d += 1);
|
|
2209
|
-
else
|
|
2210
|
-
for (let p = c - 1; p >= 0; p -= 1)
|
|
2211
|
-
l[c] - l[p] < o && (d += 1);
|
|
2212
|
-
return d;
|
|
2213
|
-
}
|
|
2214
|
-
update() {
|
|
2215
|
-
const e = this;
|
|
2216
|
-
if (!e || e.destroyed) return;
|
|
2217
|
-
const {
|
|
2218
|
-
snapGrid: s,
|
|
2219
|
-
params: r
|
|
2220
|
-
} = e;
|
|
2221
|
-
r.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((l) => {
|
|
2222
|
-
l.complete && ne(e, l);
|
|
2223
|
-
}), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
|
|
2224
|
-
function n() {
|
|
2225
|
-
const l = e.rtlTranslate ? e.translate * -1 : e.translate, a = Math.min(Math.max(l, e.maxTranslate()), e.minTranslate());
|
|
2226
|
-
e.setTranslate(a), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
2227
|
-
}
|
|
2228
|
-
let i;
|
|
2229
|
-
if (r.freeMode && r.freeMode.enabled && !r.cssMode)
|
|
2230
|
-
n(), r.autoHeight && e.updateAutoHeight();
|
|
2231
|
-
else {
|
|
2232
|
-
if ((r.slidesPerView === "auto" || r.slidesPerView > 1) && e.isEnd && !r.centeredSlides) {
|
|
2233
|
-
const l = e.virtual && r.virtual.enabled ? e.virtual.slides : e.slides;
|
|
2234
|
-
i = e.slideTo(l.length - 1, 0, !1, !0);
|
|
2235
|
-
} else
|
|
2236
|
-
i = e.slideTo(e.activeIndex, 0, !1, !0);
|
|
2237
|
-
i || n();
|
|
2238
|
-
}
|
|
2239
|
-
r.watchOverflow && s !== e.snapGrid && e.checkOverflow(), e.emit("update");
|
|
2240
|
-
}
|
|
2241
|
-
changeDirection(e, s) {
|
|
2242
|
-
s === void 0 && (s = !0);
|
|
2243
|
-
const r = this, n = r.params.direction;
|
|
2244
|
-
return e || (e = n === "horizontal" ? "vertical" : "horizontal"), e === n || e !== "horizontal" && e !== "vertical" || (r.el.classList.remove(`${r.params.containerModifierClass}${n}`), r.el.classList.add(`${r.params.containerModifierClass}${e}`), r.emitContainerClasses(), r.params.direction = e, r.slides.forEach((i) => {
|
|
2245
|
-
e === "vertical" ? i.style.width = "" : i.style.height = "";
|
|
2246
|
-
}), r.emit("changeDirection"), s && r.update()), r;
|
|
2247
|
-
}
|
|
2248
|
-
changeLanguageDirection(e) {
|
|
2249
|
-
const s = this;
|
|
2250
|
-
s.rtl && e === "rtl" || !s.rtl && e === "ltr" || (s.rtl = e === "rtl", s.rtlTranslate = s.params.direction === "horizontal" && s.rtl, s.rtl ? (s.el.classList.add(`${s.params.containerModifierClass}rtl`), s.el.dir = "rtl") : (s.el.classList.remove(`${s.params.containerModifierClass}rtl`), s.el.dir = "ltr"), s.update());
|
|
2251
|
-
}
|
|
2252
|
-
mount(e) {
|
|
2253
|
-
const s = this;
|
|
2254
|
-
if (s.mounted) return !0;
|
|
2255
|
-
let r = e || s.params.el;
|
|
2256
|
-
if (typeof r == "string" && (r = document.querySelector(r)), !r)
|
|
2257
|
-
return !1;
|
|
2258
|
-
r.swiper = s, r.parentNode && r.parentNode.host && r.parentNode.host.nodeName === s.params.swiperElementNodeName.toUpperCase() && (s.isElement = !0);
|
|
2259
|
-
const n = () => `.${(s.params.wrapperClass || "").trim().split(" ").join(".")}`;
|
|
2260
|
-
let i = r && r.shadowRoot && r.shadowRoot.querySelector ? r.shadowRoot.querySelector(n()) : H(r, n())[0];
|
|
2261
|
-
return !i && s.params.createElements && (i = de("div", s.params.wrapperClass), r.append(i), H(r, `.${s.params.slideClass}`).forEach((l) => {
|
|
2262
|
-
i.append(l);
|
|
2263
|
-
})), Object.assign(s, {
|
|
2264
|
-
el: r,
|
|
2265
|
-
wrapperEl: i,
|
|
2266
|
-
slidesEl: s.isElement && !r.parentNode.host.slideSlots ? r.parentNode.host : i,
|
|
2267
|
-
hostEl: s.isElement ? r.parentNode.host : r,
|
|
2268
|
-
mounted: !0,
|
|
2269
|
-
// RTL
|
|
2270
|
-
rtl: r.dir.toLowerCase() === "rtl" || X(r, "direction") === "rtl",
|
|
2271
|
-
rtlTranslate: s.params.direction === "horizontal" && (r.dir.toLowerCase() === "rtl" || X(r, "direction") === "rtl"),
|
|
2272
|
-
wrongRTL: X(i, "display") === "-webkit-box"
|
|
2273
|
-
}), !0;
|
|
2274
|
-
}
|
|
2275
|
-
init(e) {
|
|
2276
|
-
const s = this;
|
|
2277
|
-
if (s.initialized || s.mount(e) === !1) return s;
|
|
2278
|
-
s.emit("beforeInit"), s.params.breakpoints && s.setBreakpoint(), s.addClasses(), s.updateSize(), s.updateSlides(), s.params.watchOverflow && s.checkOverflow(), s.params.grabCursor && s.enabled && s.setGrabCursor(), s.params.loop && s.virtual && s.params.virtual.enabled ? s.slideTo(s.params.initialSlide + s.virtual.slidesBefore, 0, s.params.runCallbacksOnInit, !1, !0) : s.slideTo(s.params.initialSlide, 0, s.params.runCallbacksOnInit, !1, !0), s.params.loop && s.loopCreate(void 0, !0), s.attachEvents();
|
|
2279
|
-
const r = [...s.el.querySelectorAll('[loading="lazy"]')];
|
|
2280
|
-
return s.isElement && r.push(...s.hostEl.querySelectorAll('[loading="lazy"]')), r.forEach((n) => {
|
|
2281
|
-
n.complete ? ne(s, n) : n.addEventListener("load", (i) => {
|
|
2282
|
-
ne(s, i.target);
|
|
2283
|
-
});
|
|
2284
|
-
}), Ce(s), s.initialized = !0, Ce(s), s.emit("init"), s.emit("afterInit"), s;
|
|
2285
|
-
}
|
|
2286
|
-
destroy(e, s) {
|
|
2287
|
-
e === void 0 && (e = !0), s === void 0 && (s = !0);
|
|
2288
|
-
const r = this, {
|
|
2289
|
-
params: n,
|
|
2290
|
-
el: i,
|
|
2291
|
-
wrapperEl: l,
|
|
2292
|
-
slides: a
|
|
2293
|
-
} = r;
|
|
2294
|
-
return typeof r.params > "u" || r.destroyed || (r.emit("beforeDestroy"), r.initialized = !1, r.detachEvents(), n.loop && r.loopDestroy(), s && (r.removeClasses(), i && typeof i != "string" && i.removeAttribute("style"), l && l.removeAttribute("style"), a && a.length && a.forEach((o) => {
|
|
2295
|
-
o.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), o.removeAttribute("style"), o.removeAttribute("data-swiper-slide-index");
|
|
2296
|
-
})), r.emit("destroy"), Object.keys(r.eventsListeners).forEach((o) => {
|
|
2297
|
-
r.off(o);
|
|
2298
|
-
}), e !== !1 && (r.el && typeof r.el != "string" && (r.el.swiper = null), kt(r)), r.destroyed = !0), null;
|
|
2299
|
-
}
|
|
2300
|
-
static extendDefaults(e) {
|
|
2301
|
-
N(be, e);
|
|
2302
|
-
}
|
|
2303
|
-
static get extendedDefaults() {
|
|
2304
|
-
return be;
|
|
2305
|
-
}
|
|
2306
|
-
static get defaults() {
|
|
2307
|
-
return Pe;
|
|
2308
|
-
}
|
|
2309
|
-
static installModule(e) {
|
|
2310
|
-
q.prototype.__modules__ || (q.prototype.__modules__ = []);
|
|
2311
|
-
const s = q.prototype.__modules__;
|
|
2312
|
-
typeof e == "function" && s.indexOf(e) < 0 && s.push(e);
|
|
2313
|
-
}
|
|
2314
|
-
static use(e) {
|
|
2315
|
-
return Array.isArray(e) ? (e.forEach((s) => q.installModule(s)), q) : (q.installModule(e), q);
|
|
2316
|
-
}
|
|
2317
|
-
};
|
|
2318
|
-
Object.keys(ye).forEach((t) => {
|
|
2319
|
-
Object.keys(ye[t]).forEach((e) => {
|
|
2320
|
-
ze.prototype[e] = ye[t][e];
|
|
2321
|
-
});
|
|
2322
|
-
});
|
|
2323
|
-
ze.use([Dt, Ft]);
|
|
2324
|
-
const tt = [
|
|
2325
|
-
"eventsPrefix",
|
|
2326
|
-
"injectStyles",
|
|
2327
|
-
"injectStylesUrls",
|
|
2328
|
-
"modules",
|
|
2329
|
-
"init",
|
|
2330
|
-
"_direction",
|
|
2331
|
-
"oneWayMovement",
|
|
2332
|
-
"swiperElementNodeName",
|
|
2333
|
-
"touchEventsTarget",
|
|
2334
|
-
"initialSlide",
|
|
2335
|
-
"_speed",
|
|
2336
|
-
"cssMode",
|
|
2337
|
-
"updateOnWindowResize",
|
|
2338
|
-
"resizeObserver",
|
|
2339
|
-
"nested",
|
|
2340
|
-
"focusableElements",
|
|
2341
|
-
"_enabled",
|
|
2342
|
-
"_width",
|
|
2343
|
-
"_height",
|
|
2344
|
-
"preventInteractionOnTransition",
|
|
2345
|
-
"userAgent",
|
|
2346
|
-
"url",
|
|
2347
|
-
"_edgeSwipeDetection",
|
|
2348
|
-
"_edgeSwipeThreshold",
|
|
2349
|
-
"_freeMode",
|
|
2350
|
-
"_autoHeight",
|
|
2351
|
-
"setWrapperSize",
|
|
2352
|
-
"virtualTranslate",
|
|
2353
|
-
"_effect",
|
|
2354
|
-
"breakpoints",
|
|
2355
|
-
"breakpointsBase",
|
|
2356
|
-
"_spaceBetween",
|
|
2357
|
-
"_slidesPerView",
|
|
2358
|
-
"maxBackfaceHiddenSlides",
|
|
2359
|
-
"_grid",
|
|
2360
|
-
"_slidesPerGroup",
|
|
2361
|
-
"_slidesPerGroupSkip",
|
|
2362
|
-
"_slidesPerGroupAuto",
|
|
2363
|
-
"_centeredSlides",
|
|
2364
|
-
"_centeredSlidesBounds",
|
|
2365
|
-
"_slidesOffsetBefore",
|
|
2366
|
-
"_slidesOffsetAfter",
|
|
2367
|
-
"normalizeSlideIndex",
|
|
2368
|
-
"_centerInsufficientSlides",
|
|
2369
|
-
"_watchOverflow",
|
|
2370
|
-
"roundLengths",
|
|
2371
|
-
"touchRatio",
|
|
2372
|
-
"touchAngle",
|
|
2373
|
-
"simulateTouch",
|
|
2374
|
-
"_shortSwipes",
|
|
2375
|
-
"_longSwipes",
|
|
2376
|
-
"longSwipesRatio",
|
|
2377
|
-
"longSwipesMs",
|
|
2378
|
-
"_followFinger",
|
|
2379
|
-
"allowTouchMove",
|
|
2380
|
-
"_threshold",
|
|
2381
|
-
"touchMoveStopPropagation",
|
|
2382
|
-
"touchStartPreventDefault",
|
|
2383
|
-
"touchStartForcePreventDefault",
|
|
2384
|
-
"touchReleaseOnEdges",
|
|
2385
|
-
"uniqueNavElements",
|
|
2386
|
-
"_resistance",
|
|
2387
|
-
"_resistanceRatio",
|
|
2388
|
-
"_watchSlidesProgress",
|
|
2389
|
-
"_grabCursor",
|
|
2390
|
-
"preventClicks",
|
|
2391
|
-
"preventClicksPropagation",
|
|
2392
|
-
"_slideToClickedSlide",
|
|
2393
|
-
"_loop",
|
|
2394
|
-
"loopAdditionalSlides",
|
|
2395
|
-
"loopAddBlankSlides",
|
|
2396
|
-
"loopPreventsSliding",
|
|
2397
|
-
"_rewind",
|
|
2398
|
-
"_allowSlidePrev",
|
|
2399
|
-
"_allowSlideNext",
|
|
2400
|
-
"_swipeHandler",
|
|
2401
|
-
"_noSwiping",
|
|
2402
|
-
"noSwipingClass",
|
|
2403
|
-
"noSwipingSelector",
|
|
2404
|
-
"passiveListeners",
|
|
2405
|
-
"containerModifierClass",
|
|
2406
|
-
"slideClass",
|
|
2407
|
-
"slideActiveClass",
|
|
2408
|
-
"slideVisibleClass",
|
|
2409
|
-
"slideFullyVisibleClass",
|
|
2410
|
-
"slideNextClass",
|
|
2411
|
-
"slidePrevClass",
|
|
2412
|
-
"slideBlankClass",
|
|
2413
|
-
"wrapperClass",
|
|
2414
|
-
"lazyPreloaderClass",
|
|
2415
|
-
"lazyPreloadPrevNext",
|
|
2416
|
-
"runCallbacksOnInit",
|
|
2417
|
-
"observer",
|
|
2418
|
-
"observeParents",
|
|
2419
|
-
"observeSlideChildren",
|
|
2420
|
-
// modules
|
|
2421
|
-
"a11y",
|
|
2422
|
-
"_autoplay",
|
|
2423
|
-
"_controller",
|
|
2424
|
-
"coverflowEffect",
|
|
2425
|
-
"cubeEffect",
|
|
2426
|
-
"fadeEffect",
|
|
2427
|
-
"flipEffect",
|
|
2428
|
-
"creativeEffect",
|
|
2429
|
-
"cardsEffect",
|
|
2430
|
-
"hashNavigation",
|
|
2431
|
-
"history",
|
|
2432
|
-
"keyboard",
|
|
2433
|
-
"mousewheel",
|
|
2434
|
-
"_navigation",
|
|
2435
|
-
"_pagination",
|
|
2436
|
-
"parallax",
|
|
2437
|
-
"_scrollbar",
|
|
2438
|
-
"_thumbs",
|
|
2439
|
-
"virtual",
|
|
2440
|
-
"zoom",
|
|
2441
|
-
"control"
|
|
2442
|
-
];
|
|
2443
|
-
function Q(t) {
|
|
2444
|
-
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
|
|
2445
|
-
}
|
|
2446
|
-
function J(t, e) {
|
|
2447
|
-
const s = ["__proto__", "constructor", "prototype"];
|
|
2448
|
-
Object.keys(e).filter((r) => s.indexOf(r) < 0).forEach((r) => {
|
|
2449
|
-
typeof t[r] > "u" ? t[r] = e[r] : Q(e[r]) && Q(t[r]) && Object.keys(e[r]).length > 0 ? e[r].__swiper__ ? t[r] = e[r] : J(t[r], e[r]) : t[r] = e[r];
|
|
2450
|
-
});
|
|
2451
|
-
}
|
|
2452
|
-
function st(t) {
|
|
2453
|
-
return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
|
|
2454
|
-
}
|
|
2455
|
-
function rt(t) {
|
|
2456
|
-
return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
|
|
2457
|
-
}
|
|
2458
|
-
function it(t) {
|
|
2459
|
-
return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
|
|
2460
|
-
}
|
|
2461
|
-
function nt(t) {
|
|
2462
|
-
t === void 0 && (t = "");
|
|
2463
|
-
const e = t.split(" ").map((r) => r.trim()).filter((r) => !!r), s = [];
|
|
2464
|
-
return e.forEach((r) => {
|
|
2465
|
-
s.indexOf(r) < 0 && s.push(r);
|
|
2466
|
-
}), s.join(" ");
|
|
2467
|
-
}
|
|
2468
|
-
function qs(t) {
|
|
2469
|
-
return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
|
|
2470
|
-
}
|
|
2471
|
-
function Ws(t) {
|
|
2472
|
-
let {
|
|
2473
|
-
swiper: e,
|
|
2474
|
-
slides: s,
|
|
2475
|
-
passedParams: r,
|
|
2476
|
-
changedParams: n,
|
|
2477
|
-
nextEl: i,
|
|
2478
|
-
prevEl: l,
|
|
2479
|
-
scrollbarEl: a,
|
|
2480
|
-
paginationEl: o
|
|
2481
|
-
} = t;
|
|
2482
|
-
const c = n.filter((b) => b !== "children" && b !== "direction" && b !== "wrapperClass"), {
|
|
2483
|
-
params: d,
|
|
2484
|
-
pagination: p,
|
|
2485
|
-
navigation: h,
|
|
2486
|
-
scrollbar: g,
|
|
2487
|
-
virtual: m,
|
|
2488
|
-
thumbs: T
|
|
2489
|
-
} = e;
|
|
2490
|
-
let M, w, u, f, v, y, C, A;
|
|
2491
|
-
n.includes("thumbs") && r.thumbs && r.thumbs.swiper && !r.thumbs.swiper.destroyed && d.thumbs && (!d.thumbs.swiper || d.thumbs.swiper.destroyed) && (M = !0), n.includes("controller") && r.controller && r.controller.control && d.controller && !d.controller.control && (w = !0), n.includes("pagination") && r.pagination && (r.pagination.el || o) && (d.pagination || d.pagination === !1) && p && !p.el && (u = !0), n.includes("scrollbar") && r.scrollbar && (r.scrollbar.el || a) && (d.scrollbar || d.scrollbar === !1) && g && !g.el && (f = !0), n.includes("navigation") && r.navigation && (r.navigation.prevEl || l) && (r.navigation.nextEl || i) && (d.navigation || d.navigation === !1) && h && !h.prevEl && !h.nextEl && (v = !0);
|
|
2492
|
-
const I = (b) => {
|
|
2493
|
-
e[b] && (e[b].destroy(), b === "navigation" ? (e.isElement && (e[b].prevEl.remove(), e[b].nextEl.remove()), d[b].prevEl = void 0, d[b].nextEl = void 0, e[b].prevEl = void 0, e[b].nextEl = void 0) : (e.isElement && e[b].el.remove(), d[b].el = void 0, e[b].el = void 0));
|
|
2494
|
-
};
|
|
2495
|
-
n.includes("loop") && e.isElement && (d.loop && !r.loop ? y = !0 : !d.loop && r.loop ? C = !0 : A = !0), c.forEach((b) => {
|
|
2496
|
-
if (Q(d[b]) && Q(r[b]))
|
|
2497
|
-
Object.assign(d[b], r[b]), (b === "navigation" || b === "pagination" || b === "scrollbar") && "enabled" in r[b] && !r[b].enabled && I(b);
|
|
2498
|
-
else {
|
|
2499
|
-
const S = r[b];
|
|
2500
|
-
(S === !0 || S === !1) && (b === "navigation" || b === "pagination" || b === "scrollbar") ? S === !1 && I(b) : d[b] = r[b];
|
|
2501
|
-
}
|
|
2502
|
-
}), c.includes("controller") && !w && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && s && m && d.virtual.enabled ? (m.slides = s, m.update(!0)) : n.includes("virtual") && m && d.virtual.enabled && (s && (m.slides = s), m.update(!0)), n.includes("children") && s && d.loop && (A = !0), M && T.init() && T.update(!0), w && (e.controller.control = d.controller.control), u && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (d.pagination.el = o), p.init(), p.render(), p.update()), f && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), e.el.appendChild(a)), a && (d.scrollbar.el = a), g.init(), g.updateSize(), g.setTranslate()), v && (e.isElement && ((!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-button-next"), i.innerHTML = e.hostEl.constructor.nextButtonSvg, i.part.add("button-next"), e.el.appendChild(i)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), l.innerHTML = e.hostEl.constructor.prevButtonSvg, l.part.add("button-prev"), e.el.appendChild(l))), i && (d.navigation.nextEl = i), l && (d.navigation.prevEl = l), h.init(), h.update()), n.includes("allowSlideNext") && (e.allowSlideNext = r.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = r.allowSlidePrev), n.includes("direction") && e.changeDirection(r.direction, !1), (y || A) && e.loopDestroy(), (C || A) && e.loopCreate(), e.update();
|
|
2503
|
-
}
|
|
2504
|
-
function Ys(t, e) {
|
|
2505
|
-
t === void 0 && (t = {}), e === void 0 && (e = !0);
|
|
2506
|
-
const s = {
|
|
2507
|
-
on: {}
|
|
2508
|
-
}, r = {}, n = {};
|
|
2509
|
-
J(s, Pe), s._emitClasses = !0, s.init = !1;
|
|
2510
|
-
const i = {}, l = tt.map((o) => o.replace(/_/, "")), a = Object.assign({}, t);
|
|
2511
|
-
return Object.keys(a).forEach((o) => {
|
|
2512
|
-
typeof t[o] > "u" || (l.indexOf(o) >= 0 ? Q(t[o]) ? (s[o] = {}, n[o] = {}, J(s[o], t[o]), J(n[o], t[o])) : (s[o] = t[o], n[o] = t[o]) : o.search(/on[A-Z]/) === 0 && typeof t[o] == "function" ? e ? r[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : s.on[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : i[o] = t[o]);
|
|
2513
|
-
}), ["navigation", "pagination", "scrollbar"].forEach((o) => {
|
|
2514
|
-
s[o] === !0 && (s[o] = {}), s[o] === !1 && delete s[o];
|
|
2515
|
-
}), {
|
|
2516
|
-
params: s,
|
|
2517
|
-
passedParams: n,
|
|
2518
|
-
rest: i,
|
|
2519
|
-
events: r
|
|
2520
|
-
};
|
|
2521
|
-
}
|
|
2522
|
-
function Xs(t, e) {
|
|
2523
|
-
let {
|
|
2524
|
-
el: s,
|
|
2525
|
-
nextEl: r,
|
|
2526
|
-
prevEl: n,
|
|
2527
|
-
paginationEl: i,
|
|
2528
|
-
scrollbarEl: l,
|
|
2529
|
-
swiper: a
|
|
2530
|
-
} = t;
|
|
2531
|
-
st(e) && r && n && (a.params.navigation.nextEl = r, a.originalParams.navigation.nextEl = r, a.params.navigation.prevEl = n, a.originalParams.navigation.prevEl = n), rt(e) && i && (a.params.pagination.el = i, a.originalParams.pagination.el = i), it(e) && l && (a.params.scrollbar.el = l, a.originalParams.scrollbar.el = l), a.init(s);
|
|
2532
|
-
}
|
|
2533
|
-
function Us(t, e, s, r, n) {
|
|
2534
|
-
const i = [];
|
|
2535
|
-
if (!e) return i;
|
|
2536
|
-
const l = (a) => {
|
|
2537
|
-
i.indexOf(a) < 0 && i.push(a);
|
|
2538
|
-
};
|
|
2539
|
-
if (s && r) {
|
|
2540
|
-
const a = r.map(n), o = s.map(n);
|
|
2541
|
-
a.join("") !== o.join("") && l("children"), r.length !== s.length && l("children");
|
|
2542
|
-
}
|
|
2543
|
-
return tt.filter((a) => a[0] === "_").map((a) => a.replace(/_/, "")).forEach((a) => {
|
|
2544
|
-
if (a in t && a in e)
|
|
2545
|
-
if (Q(t[a]) && Q(e[a])) {
|
|
2546
|
-
const o = Object.keys(t[a]), c = Object.keys(e[a]);
|
|
2547
|
-
o.length !== c.length ? l(a) : (o.forEach((d) => {
|
|
2548
|
-
t[a][d] !== e[a][d] && l(a);
|
|
2549
|
-
}), c.forEach((d) => {
|
|
2550
|
-
t[a][d] !== e[a][d] && l(a);
|
|
2551
|
-
}));
|
|
2552
|
-
} else t[a] !== e[a] && l(a);
|
|
2553
|
-
}), i;
|
|
2554
|
-
}
|
|
2555
|
-
const Qs = (t) => {
|
|
2556
|
-
!t || t.destroyed || !t.params.virtual || t.params.virtual && !t.params.virtual.enabled || (t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.parallax && t.params.parallax && t.params.parallax.enabled && t.parallax.setTranslate());
|
|
2557
|
-
};
|
|
2558
|
-
function ue() {
|
|
2559
|
-
return ue = Object.assign ? Object.assign.bind() : function(t) {
|
|
2560
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
2561
|
-
var s = arguments[e];
|
|
2562
|
-
for (var r in s)
|
|
2563
|
-
Object.prototype.hasOwnProperty.call(s, r) && (t[r] = s[r]);
|
|
2564
|
-
}
|
|
2565
|
-
return t;
|
|
2566
|
-
}, ue.apply(this, arguments);
|
|
2567
|
-
}
|
|
2568
|
-
function at(t) {
|
|
2569
|
-
return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
|
|
2570
|
-
}
|
|
2571
|
-
function lt(t) {
|
|
2572
|
-
const e = [];
|
|
2573
|
-
return $.Children.toArray(t).forEach((s) => {
|
|
2574
|
-
at(s) ? e.push(s) : s.props && s.props.children && lt(s.props.children).forEach((r) => e.push(r));
|
|
2575
|
-
}), e;
|
|
2576
|
-
}
|
|
2577
|
-
function Ks(t) {
|
|
2578
|
-
const e = [], s = {
|
|
2579
|
-
"container-start": [],
|
|
2580
|
-
"container-end": [],
|
|
2581
|
-
"wrapper-start": [],
|
|
2582
|
-
"wrapper-end": []
|
|
2583
|
-
};
|
|
2584
|
-
return $.Children.toArray(t).forEach((r) => {
|
|
2585
|
-
if (at(r))
|
|
2586
|
-
e.push(r);
|
|
2587
|
-
else if (r.props && r.props.slot && s[r.props.slot])
|
|
2588
|
-
s[r.props.slot].push(r);
|
|
2589
|
-
else if (r.props && r.props.children) {
|
|
2590
|
-
const n = lt(r.props.children);
|
|
2591
|
-
n.length > 0 ? n.forEach((i) => e.push(i)) : s["container-end"].push(r);
|
|
2592
|
-
} else
|
|
2593
|
-
s["container-end"].push(r);
|
|
2594
|
-
}), {
|
|
2595
|
-
slides: e,
|
|
2596
|
-
slots: s
|
|
2597
|
-
};
|
|
2598
|
-
}
|
|
2599
|
-
function Js(t, e, s) {
|
|
2600
|
-
if (!s) return null;
|
|
2601
|
-
const r = (d) => {
|
|
2602
|
-
let p = d;
|
|
2603
|
-
return d < 0 ? p = e.length + d : p >= e.length && (p = p - e.length), p;
|
|
2604
|
-
}, n = t.isHorizontal() ? {
|
|
2605
|
-
[t.rtlTranslate ? "right" : "left"]: `${s.offset}px`
|
|
2606
|
-
} : {
|
|
2607
|
-
top: `${s.offset}px`
|
|
2608
|
-
}, {
|
|
2609
|
-
from: i,
|
|
2610
|
-
to: l
|
|
2611
|
-
} = s, a = t.params.loop ? -e.length : 0, o = t.params.loop ? e.length * 2 : e.length, c = [];
|
|
2612
|
-
for (let d = a; d < o; d += 1)
|
|
2613
|
-
d >= i && d <= l && c.push(e[r(d)]);
|
|
2614
|
-
return c.map((d, p) => /* @__PURE__ */ $.cloneElement(d, {
|
|
2615
|
-
swiper: t,
|
|
2616
|
-
style: n,
|
|
2617
|
-
key: d.props.virtualIndex || d.key || `slide-${p}`
|
|
2618
|
-
}));
|
|
2619
|
-
}
|
|
2620
|
-
function ee(t, e) {
|
|
2621
|
-
return typeof window > "u" ? Y(t, e) : vt(t, e);
|
|
2622
|
-
}
|
|
2623
|
-
const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__PURE__ */ Ae(function(t, e) {
|
|
2624
|
-
let {
|
|
2625
|
-
className: s,
|
|
2626
|
-
tag: r = "div",
|
|
2627
|
-
wrapperTag: n = "div",
|
|
2628
|
-
children: i,
|
|
2629
|
-
onSwiper: l,
|
|
2630
|
-
...a
|
|
2631
|
-
} = t === void 0 ? {} : t, o = !1;
|
|
2632
|
-
const [c, d] = W("swiper"), [p, h] = W(null), [g, m] = W(!1), T = D(!1), M = D(null), w = D(null), u = D(null), f = D(null), v = D(null), y = D(null), C = D(null), A = D(null), {
|
|
2633
|
-
params: I,
|
|
2634
|
-
passedParams: b,
|
|
2635
|
-
rest: S,
|
|
2636
|
-
events: E
|
|
2637
|
-
} = Ys(a), {
|
|
2638
|
-
slides: k,
|
|
2639
|
-
slots: L
|
|
2640
|
-
} = Ks(i), O = () => {
|
|
2641
|
-
m(!g);
|
|
2642
|
-
};
|
|
2643
|
-
Object.assign(I.on, {
|
|
2644
|
-
_containerClasses(G, j) {
|
|
2645
|
-
d(j);
|
|
2646
|
-
}
|
|
2647
|
-
});
|
|
2648
|
-
const x = () => {
|
|
2649
|
-
Object.assign(I.on, E), o = !0;
|
|
2650
|
-
const G = {
|
|
2651
|
-
...I
|
|
2652
|
-
};
|
|
2653
|
-
if (delete G.wrapperClass, w.current = new ze(G), w.current.virtual && w.current.params.virtual.enabled) {
|
|
2654
|
-
w.current.virtual.slides = k;
|
|
2655
|
-
const j = {
|
|
2656
|
-
cache: !1,
|
|
2657
|
-
slides: k,
|
|
2658
|
-
renderExternal: h,
|
|
2659
|
-
renderExternalUpdate: !1
|
|
2660
|
-
};
|
|
2661
|
-
J(w.current.params.virtual, j), J(w.current.originalParams.virtual, j);
|
|
2662
|
-
}
|
|
2663
|
-
};
|
|
2664
|
-
M.current || x(), w.current && w.current.on("_beforeBreakpoint", O);
|
|
2665
|
-
const z = () => {
|
|
2666
|
-
o || !E || !w.current || Object.keys(E).forEach((G) => {
|
|
2667
|
-
w.current.on(G, E[G]);
|
|
2668
|
-
});
|
|
2669
|
-
}, U = () => {
|
|
2670
|
-
!E || !w.current || Object.keys(E).forEach((G) => {
|
|
2671
|
-
w.current.off(G, E[G]);
|
|
2672
|
-
});
|
|
2673
|
-
};
|
|
2674
|
-
Y(() => () => {
|
|
2675
|
-
w.current && w.current.off("_beforeBreakpoint", O);
|
|
2676
|
-
}), Y(() => {
|
|
2677
|
-
!T.current && w.current && (w.current.emitSlidesClasses(), T.current = !0);
|
|
2678
|
-
}), ee(() => {
|
|
2679
|
-
if (e && (e.current = M.current), !!M.current)
|
|
2680
|
-
return w.current.destroyed && x(), Xs({
|
|
2681
|
-
el: M.current,
|
|
2682
|
-
nextEl: v.current,
|
|
2683
|
-
prevEl: y.current,
|
|
2684
|
-
paginationEl: C.current,
|
|
2685
|
-
scrollbarEl: A.current,
|
|
2686
|
-
swiper: w.current
|
|
2687
|
-
}, I), l && !w.current.destroyed && l(w.current), () => {
|
|
2688
|
-
w.current && !w.current.destroyed && w.current.destroy(!0, !1);
|
|
2689
|
-
};
|
|
2690
|
-
}, []), ee(() => {
|
|
2691
|
-
z();
|
|
2692
|
-
const G = Us(b, u.current, k, f.current, (j) => j.key);
|
|
2693
|
-
return u.current = b, f.current = k, G.length && w.current && !w.current.destroyed && Ws({
|
|
2694
|
-
swiper: w.current,
|
|
2695
|
-
slides: k,
|
|
2696
|
-
passedParams: b,
|
|
2697
|
-
changedParams: G,
|
|
2698
|
-
nextEl: v.current,
|
|
2699
|
-
prevEl: y.current,
|
|
2700
|
-
scrollbarEl: A.current,
|
|
2701
|
-
paginationEl: C.current
|
|
2702
|
-
}), () => {
|
|
2703
|
-
U();
|
|
2704
|
-
};
|
|
2705
|
-
}), ee(() => {
|
|
2706
|
-
Qs(w.current);
|
|
2707
|
-
}, [p]);
|
|
2708
|
-
function V() {
|
|
2709
|
-
return I.virtual ? Js(w.current, k, p) : k.map((G, j) => /* @__PURE__ */ $.cloneElement(G, {
|
|
2710
|
-
swiper: w.current,
|
|
2711
|
-
swiperSlideIndex: j
|
|
2712
|
-
}));
|
|
2713
|
-
}
|
|
2714
|
-
return /* @__PURE__ */ $.createElement(r, ue({
|
|
2715
|
-
ref: M,
|
|
2716
|
-
className: nt(`${c}${s ? ` ${s}` : ""}`)
|
|
2717
|
-
}, S), /* @__PURE__ */ $.createElement(Zs.Provider, {
|
|
2718
|
-
value: w.current
|
|
2719
|
-
}, L["container-start"], /* @__PURE__ */ $.createElement(n, {
|
|
2720
|
-
className: qs(I.wrapperClass)
|
|
2721
|
-
}, L["wrapper-start"], V(), L["wrapper-end"]), st(I) && /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("div", {
|
|
2722
|
-
ref: y,
|
|
2723
|
-
className: "swiper-button-prev"
|
|
2724
|
-
}), /* @__PURE__ */ $.createElement("div", {
|
|
2725
|
-
ref: v,
|
|
2726
|
-
className: "swiper-button-next"
|
|
2727
|
-
})), it(I) && /* @__PURE__ */ $.createElement("div", {
|
|
2728
|
-
ref: A,
|
|
2729
|
-
className: "swiper-scrollbar"
|
|
2730
|
-
}), rt(I) && /* @__PURE__ */ $.createElement("div", {
|
|
2731
|
-
ref: C,
|
|
2732
|
-
className: "swiper-pagination"
|
|
2733
|
-
}), L["container-end"]));
|
|
2734
|
-
});
|
|
2735
|
-
ot.displayName = "Swiper";
|
|
2736
|
-
const ae = /* @__PURE__ */ Ae(function(t, e) {
|
|
2737
|
-
let {
|
|
2738
|
-
tag: s = "div",
|
|
2739
|
-
children: r,
|
|
2740
|
-
className: n = "",
|
|
2741
|
-
swiper: i,
|
|
2742
|
-
zoom: l,
|
|
2743
|
-
lazy: a,
|
|
2744
|
-
virtualIndex: o,
|
|
2745
|
-
swiperSlideIndex: c,
|
|
2746
|
-
...d
|
|
2747
|
-
} = t === void 0 ? {} : t;
|
|
2748
|
-
const p = D(null), [h, g] = W("swiper-slide"), [m, T] = W(!1);
|
|
2749
|
-
function M(v, y, C) {
|
|
2750
|
-
y === p.current && g(C);
|
|
2751
|
-
}
|
|
2752
|
-
ee(() => {
|
|
2753
|
-
if (typeof c < "u" && (p.current.swiperSlideIndex = c), e && (e.current = p.current), !(!p.current || !i)) {
|
|
2754
|
-
if (i.destroyed) {
|
|
2755
|
-
h !== "swiper-slide" && g("swiper-slide");
|
|
2756
|
-
return;
|
|
2757
|
-
}
|
|
2758
|
-
return i.on("_slideClass", M), () => {
|
|
2759
|
-
i && i.off("_slideClass", M);
|
|
2760
|
-
};
|
|
2761
|
-
}
|
|
2762
|
-
}), ee(() => {
|
|
2763
|
-
i && p.current && !i.destroyed && g(i.getSlideClasses(p.current));
|
|
2764
|
-
}, [i]);
|
|
2765
|
-
const w = {
|
|
2766
|
-
isActive: h.indexOf("swiper-slide-active") >= 0,
|
|
2767
|
-
isVisible: h.indexOf("swiper-slide-visible") >= 0,
|
|
2768
|
-
isPrev: h.indexOf("swiper-slide-prev") >= 0,
|
|
2769
|
-
isNext: h.indexOf("swiper-slide-next") >= 0
|
|
2770
|
-
}, u = () => typeof r == "function" ? r(w) : r, f = () => {
|
|
2771
|
-
T(!0);
|
|
2772
|
-
};
|
|
2773
|
-
return /* @__PURE__ */ $.createElement(s, ue({
|
|
2774
|
-
ref: p,
|
|
2775
|
-
className: nt(`${h}${n ? ` ${n}` : ""}`),
|
|
2776
|
-
"data-swiper-slide-index": o,
|
|
2777
|
-
onLoad: f
|
|
2778
|
-
}, d), l && /* @__PURE__ */ $.createElement(De.Provider, {
|
|
2779
|
-
value: w
|
|
2780
|
-
}, /* @__PURE__ */ $.createElement("div", {
|
|
2781
|
-
className: "swiper-zoom-container",
|
|
2782
|
-
"data-swiper-zoom": typeof l == "number" ? l : void 0
|
|
2783
|
-
}, u(), a && !m && /* @__PURE__ */ $.createElement("div", {
|
|
2784
|
-
className: "swiper-lazy-preloader"
|
|
2785
|
-
}))), !l && /* @__PURE__ */ $.createElement(De.Provider, {
|
|
2786
|
-
value: w
|
|
2787
|
-
}, u(), a && !m && /* @__PURE__ */ $.createElement("div", {
|
|
2788
|
-
className: "swiper-lazy-preloader"
|
|
2789
|
-
})));
|
|
2790
|
-
});
|
|
2791
|
-
ae.displayName = "SwiperSlide";
|
|
2792
|
-
const er = () => ot, tr = /* @__PURE__ */ _(er())({
|
|
2793
|
-
name: "Carousel",
|
|
2794
|
-
class: "c1f9jjsn",
|
|
2795
|
-
propsAsIs: !0
|
|
2796
|
-
}), Me = /* @__PURE__ */ _("div")({
|
|
2797
|
-
name: "ScreenWrap",
|
|
2798
|
-
class: "s25r51y",
|
|
2799
|
-
propsAsIs: !1
|
|
2800
|
-
}), sr = () => te, rr = /* @__PURE__ */ _(sr())({
|
|
2801
|
-
name: "SponsorIconI",
|
|
2802
|
-
class: "s1lvrmx8",
|
|
2803
|
-
propsAsIs: !0
|
|
2804
|
-
}), dt = ({
|
|
2805
|
-
style: t,
|
|
2806
|
-
className: e
|
|
2807
|
-
}) => /* @__PURE__ */ P(rr, {
|
|
2808
|
-
className: e,
|
|
2809
|
-
style: t,
|
|
2810
|
-
name: "icon-masters-logo"
|
|
2811
|
-
}), ct = /* @__PURE__ */ _("div")({
|
|
2812
|
-
name: "ScreenTextBlock",
|
|
2813
|
-
class: "s11xps29",
|
|
2814
|
-
propsAsIs: !1
|
|
2815
|
-
}), ut = /* @__PURE__ */ _("div")({
|
|
2816
|
-
name: "ScreenTitle",
|
|
2817
|
-
class: "s14qstuv",
|
|
2818
|
-
propsAsIs: !1
|
|
2819
|
-
}), ke = /* @__PURE__ */ _("div")({
|
|
2820
|
-
name: "ScreenDescription",
|
|
2821
|
-
class: "s14mdh2e",
|
|
2822
|
-
propsAsIs: !1
|
|
2823
|
-
}), pe = /* @__PURE__ */ _("button")({
|
|
2824
|
-
name: "ScreenButton",
|
|
2825
|
-
class: "sqtjig9",
|
|
2826
|
-
propsAsIs: !1
|
|
2827
|
-
}), ir = /* @__PURE__ */ _("div")({
|
|
2828
|
-
name: "EmergencyContainer",
|
|
2829
|
-
class: "e1f9mu2m",
|
|
2830
|
-
propsAsIs: !1
|
|
2831
|
-
}), nr = /* @__PURE__ */ _("div")({
|
|
2832
|
-
name: "EmergencyScreenTitle",
|
|
2833
|
-
class: "e1n10yo1",
|
|
2834
|
-
propsAsIs: !1
|
|
2835
|
-
}), ar = /* @__PURE__ */ _("div")({
|
|
2836
|
-
name: "EmergencyScreenDescription",
|
|
2837
|
-
class: "e1xecypc",
|
|
2838
|
-
propsAsIs: !1
|
|
2839
|
-
}), lr = () => pe, or = /* @__PURE__ */ _(lr())({
|
|
2840
|
-
name: "EmergencyScreenButton",
|
|
2841
|
-
class: "e1k6zoyu",
|
|
2842
|
-
propsAsIs: !0
|
|
2843
|
-
}), Ie = ({ actionFn: t, description: e, className: s, onEvent: r }) => (Y(() => {
|
|
2844
|
-
r({ type: "slBetPackReady" });
|
|
2845
|
-
}, [r]), /* @__PURE__ */ F(ir, { className: s, children: [
|
|
2846
|
-
/* @__PURE__ */ P(nr, { children: "Something went wrong." }),
|
|
2847
|
-
/* @__PURE__ */ P(ar, { children: e }),
|
|
2848
|
-
/* @__PURE__ */ P(or, { onClick: t, children: "Try again" })
|
|
2849
|
-
] })), dr = /* @__PURE__ */ _("div")({
|
|
2850
|
-
name: "ScreenContainerBox",
|
|
2851
|
-
class: "s28ooi9",
|
|
2852
|
-
propsAsIs: !1
|
|
2853
|
-
}), fe = ({ children: t }) => /* @__PURE__ */ P(dr, { className: "ScreenContainer", children: /* @__PURE__ */ P("div", { children: t }) }), cr = /* @__PURE__ */ _("img")({
|
|
2854
|
-
name: "EndScreenMedia",
|
|
2855
|
-
class: "e8s3kc9",
|
|
2856
|
-
propsAsIs: !1
|
|
2857
|
-
}), ur = () => dt, pr = /* @__PURE__ */ _(ur())({
|
|
2858
|
-
name: "EndScreenSponsorIcon",
|
|
2859
|
-
class: "e1uswib2",
|
|
2860
|
-
propsAsIs: !0
|
|
2861
|
-
}), fr = ({ onEvent: t }) => {
|
|
2862
|
-
const [e, s] = W(
|
|
2863
|
-
0
|
|
2864
|
-
/* FIRST */
|
|
2865
|
-
);
|
|
2866
|
-
return e === 0 ? /* @__PURE__ */ P(fe, { children: /* @__PURE__ */ F(Me, { children: [
|
|
2867
|
-
/* @__PURE__ */ P(pr, {}),
|
|
2868
|
-
/* @__PURE__ */ F(ct, { children: [
|
|
2869
|
-
/* @__PURE__ */ P(ut, { children: "Great picks!" }),
|
|
2870
|
-
/* @__PURE__ */ P(ke, { children: "Stay in the Enhanced Stream for live results, predictions, trivia, polls, and match insights." })
|
|
2871
|
-
] }),
|
|
2872
|
-
/* @__PURE__ */ P(
|
|
2873
|
-
pe,
|
|
2874
|
-
{
|
|
2875
|
-
"data-a": "intr",
|
|
2876
|
-
onClick: () => {
|
|
2877
|
-
s(
|
|
2878
|
-
1
|
|
2879
|
-
/* LAST */
|
|
2880
|
-
);
|
|
2881
|
-
},
|
|
2882
|
-
style: { marginTop: "auto " },
|
|
2883
|
-
children: "Continue"
|
|
2884
|
-
}
|
|
2885
|
-
)
|
|
2886
|
-
] }) }, "end") : /* @__PURE__ */ P(fe, { children: /* @__PURE__ */ F(Me, { children: [
|
|
2887
|
-
/* @__PURE__ */ P(cr, { src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png" }),
|
|
2888
|
-
/* @__PURE__ */ P(ke, { children: "Look for more live match insights, predictions and more." }),
|
|
2889
|
-
/* @__PURE__ */ P(pe, { "data-a": "intr", onClick: () => t({ type: "slOpenGameCenter" }), children: "Open Game Center" })
|
|
2890
|
-
] }) }, "end");
|
|
2891
|
-
}, mr = /* @__PURE__ */ _("div")({
|
|
2892
|
-
name: "Container",
|
|
2893
|
-
class: "cv31tt7",
|
|
2894
|
-
propsAsIs: !1
|
|
2895
|
-
}), Le = ({
|
|
2896
|
-
className: t
|
|
2897
|
-
}) => /* @__PURE__ */ P(mr, {
|
|
2898
|
-
className: t,
|
|
2899
|
-
children: /* @__PURE__ */ P(St, {})
|
|
2900
|
-
}), hr = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(Et, { close: () => {
|
|
2901
|
-
}, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, gr = /* @__PURE__ */ _("span")({
|
|
2902
|
-
name: "NextButton",
|
|
2903
|
-
class: "n991vvm",
|
|
2904
|
-
propsAsIs: !1
|
|
2905
|
-
}), vr = () => te, wr = /* @__PURE__ */ _(vr())({
|
|
2906
|
-
name: "IconArrowRight",
|
|
2907
|
-
class: "inbj36g",
|
|
2908
|
-
propsAsIs: !0
|
|
2909
|
-
}), yr = /* @__PURE__ */ _("div")({
|
|
2910
|
-
name: "StartScreenSponsor",
|
|
2911
|
-
class: "szrvgt",
|
|
2912
|
-
propsAsIs: !1
|
|
2913
|
-
}), br = /* @__PURE__ */ _("div")({
|
|
2914
|
-
name: "StartScreenNote",
|
|
2915
|
-
class: "swqs2ju",
|
|
2916
|
-
propsAsIs: !1
|
|
2917
|
-
}), Sr = ({ countQuestionsAvailable: t, sliderRef: e }) => /* @__PURE__ */ P(fe, { children: /* @__PURE__ */ F(Me, { children: [
|
|
2918
|
-
/* @__PURE__ */ P(dt, {}),
|
|
2919
|
-
/* @__PURE__ */ F(ct, { children: [
|
|
2920
|
-
/* @__PURE__ */ P(yr, { children: "FEATURED GROUPS+" }),
|
|
2921
|
-
/* @__PURE__ */ P(ut, { children: "The First Five" })
|
|
2922
|
-
] }),
|
|
2923
|
-
/* @__PURE__ */ P(ke, { children: "Tee off with these five initial predictions for today’s play." }),
|
|
2924
|
-
/* @__PURE__ */ F(
|
|
2925
|
-
pe,
|
|
2926
|
-
{
|
|
2927
|
-
"data-a": "intr",
|
|
2928
|
-
onClick: () => {
|
|
2929
|
-
e.current?.slideNext();
|
|
2930
|
-
},
|
|
2931
|
-
children: [
|
|
2932
|
-
t ? `${t} questions available` : "See all questions",
|
|
2933
|
-
/* @__PURE__ */ P(gr, { children: /* @__PURE__ */ P(wr, { name: "iconArrowRight" }) })
|
|
2934
|
-
]
|
|
2935
|
-
}
|
|
2936
|
-
),
|
|
2937
|
-
/* @__PURE__ */ P(br, { children: "Note: Some questions may have been resolved as a result of today’s play." })
|
|
2938
|
-
] }) }, "start");
|
|
2939
|
-
function Er(t, e, s, r) {
|
|
2940
|
-
return t.params.createElements && Object.keys(r).forEach((n) => {
|
|
2941
|
-
if (!s[n] && s.auto === !0) {
|
|
2942
|
-
let i = H(t.el, `.${r[n]}`)[0];
|
|
2943
|
-
i || (i = de("div", r[n]), i.className = r[n], t.el.append(i)), s[n] = i, e[n] = i;
|
|
2944
|
-
}
|
|
2945
|
-
}), s;
|
|
2946
|
-
}
|
|
2947
|
-
function Z(t) {
|
|
2948
|
-
return t === void 0 && (t = ""), `.${t.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
|
|
2949
|
-
}
|
|
2950
|
-
function Tr(t) {
|
|
2951
|
-
let {
|
|
2952
|
-
swiper: e,
|
|
2953
|
-
extendParams: s,
|
|
2954
|
-
on: r,
|
|
2955
|
-
emit: n
|
|
2956
|
-
} = t;
|
|
2957
|
-
const i = "swiper-pagination";
|
|
2958
|
-
s({
|
|
2959
|
-
pagination: {
|
|
2960
|
-
el: null,
|
|
2961
|
-
bulletElement: "span",
|
|
2962
|
-
clickable: !1,
|
|
2963
|
-
hideOnClick: !1,
|
|
2964
|
-
renderBullet: null,
|
|
2965
|
-
renderProgressbar: null,
|
|
2966
|
-
renderFraction: null,
|
|
2967
|
-
renderCustom: null,
|
|
2968
|
-
progressbarOpposite: !1,
|
|
2969
|
-
type: "bullets",
|
|
2970
|
-
// 'bullets' or 'progressbar' or 'fraction' or 'custom'
|
|
2971
|
-
dynamicBullets: !1,
|
|
2972
|
-
dynamicMainBullets: 1,
|
|
2973
|
-
formatFractionCurrent: (u) => u,
|
|
2974
|
-
formatFractionTotal: (u) => u,
|
|
2975
|
-
bulletClass: `${i}-bullet`,
|
|
2976
|
-
bulletActiveClass: `${i}-bullet-active`,
|
|
2977
|
-
modifierClass: `${i}-`,
|
|
2978
|
-
currentClass: `${i}-current`,
|
|
2979
|
-
totalClass: `${i}-total`,
|
|
2980
|
-
hiddenClass: `${i}-hidden`,
|
|
2981
|
-
progressbarFillClass: `${i}-progressbar-fill`,
|
|
2982
|
-
progressbarOppositeClass: `${i}-progressbar-opposite`,
|
|
2983
|
-
clickableClass: `${i}-clickable`,
|
|
2984
|
-
lockClass: `${i}-lock`,
|
|
2985
|
-
horizontalClass: `${i}-horizontal`,
|
|
2986
|
-
verticalClass: `${i}-vertical`,
|
|
2987
|
-
paginationDisabledClass: `${i}-disabled`
|
|
2988
|
-
}
|
|
2989
|
-
}), e.pagination = {
|
|
2990
|
-
el: null,
|
|
2991
|
-
bullets: []
|
|
2992
|
-
};
|
|
2993
|
-
let l, a = 0;
|
|
2994
|
-
function o() {
|
|
2995
|
-
return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
|
|
2996
|
-
}
|
|
2997
|
-
function c(u, f) {
|
|
2998
|
-
const {
|
|
2999
|
-
bulletActiveClass: v
|
|
3000
|
-
} = e.params.pagination;
|
|
3001
|
-
u && (u = u[`${f === "prev" ? "previous" : "next"}ElementSibling`], u && (u.classList.add(`${v}-${f}`), u = u[`${f === "prev" ? "previous" : "next"}ElementSibling`], u && u.classList.add(`${v}-${f}-${f}`)));
|
|
3002
|
-
}
|
|
3003
|
-
function d(u, f, v) {
|
|
3004
|
-
if (u = u % v, f = f % v, f === u + 1)
|
|
3005
|
-
return "next";
|
|
3006
|
-
if (f === u - 1)
|
|
3007
|
-
return "previous";
|
|
3008
|
-
}
|
|
3009
|
-
function p(u) {
|
|
3010
|
-
const f = u.target.closest(Z(e.params.pagination.bulletClass));
|
|
3011
|
-
if (!f)
|
|
3012
|
-
return;
|
|
3013
|
-
u.preventDefault();
|
|
3014
|
-
const v = ce(f) * e.params.slidesPerGroup;
|
|
3015
|
-
if (e.params.loop) {
|
|
3016
|
-
if (e.realIndex === v) return;
|
|
3017
|
-
const y = d(e.realIndex, v, e.slides.length);
|
|
3018
|
-
y === "next" ? e.slideNext() : y === "previous" ? e.slidePrev() : e.slideToLoop(v);
|
|
3019
|
-
} else
|
|
3020
|
-
e.slideTo(v);
|
|
3021
|
-
}
|
|
3022
|
-
function h() {
|
|
3023
|
-
const u = e.rtl, f = e.params.pagination;
|
|
3024
|
-
if (o()) return;
|
|
3025
|
-
let v = e.pagination.el;
|
|
3026
|
-
v = R(v);
|
|
3027
|
-
let y, C;
|
|
3028
|
-
const A = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, I = e.params.loop ? Math.ceil(A / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
3029
|
-
if (e.params.loop ? (C = e.previousRealIndex || 0, y = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (y = e.snapIndex, C = e.previousSnapIndex) : (C = e.previousIndex || 0, y = e.activeIndex || 0), f.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
|
|
3030
|
-
const b = e.pagination.bullets;
|
|
3031
|
-
let S, E, k;
|
|
3032
|
-
if (f.dynamicBullets && (l = xe(b[0], e.isHorizontal() ? "width" : "height"), v.forEach((L) => {
|
|
3033
|
-
L.style[e.isHorizontal() ? "width" : "height"] = `${l * (f.dynamicMainBullets + 4)}px`;
|
|
3034
|
-
}), f.dynamicMainBullets > 1 && C !== void 0 && (a += y - (C || 0), a > f.dynamicMainBullets - 1 ? a = f.dynamicMainBullets - 1 : a < 0 && (a = 0)), S = Math.max(y - a, 0), E = S + (Math.min(b.length, f.dynamicMainBullets) - 1), k = (E + S) / 2), b.forEach((L) => {
|
|
3035
|
-
const O = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((x) => `${f.bulletActiveClass}${x}`)].map((x) => typeof x == "string" && x.includes(" ") ? x.split(" ") : x).flat();
|
|
3036
|
-
L.classList.remove(...O);
|
|
3037
|
-
}), v.length > 1)
|
|
3038
|
-
b.forEach((L) => {
|
|
3039
|
-
const O = ce(L);
|
|
3040
|
-
O === y ? L.classList.add(...f.bulletActiveClass.split(" ")) : e.isElement && L.setAttribute("part", "bullet"), f.dynamicBullets && (O >= S && O <= E && L.classList.add(...`${f.bulletActiveClass}-main`.split(" ")), O === S && c(L, "prev"), O === E && c(L, "next"));
|
|
3041
|
-
});
|
|
3042
|
-
else {
|
|
3043
|
-
const L = b[y];
|
|
3044
|
-
if (L && L.classList.add(...f.bulletActiveClass.split(" ")), e.isElement && b.forEach((O, x) => {
|
|
3045
|
-
O.setAttribute("part", x === y ? "bullet-active" : "bullet");
|
|
3046
|
-
}), f.dynamicBullets) {
|
|
3047
|
-
const O = b[S], x = b[E];
|
|
3048
|
-
for (let z = S; z <= E; z += 1)
|
|
3049
|
-
b[z] && b[z].classList.add(...`${f.bulletActiveClass}-main`.split(" "));
|
|
3050
|
-
c(O, "prev"), c(x, "next");
|
|
3051
|
-
}
|
|
3052
|
-
}
|
|
3053
|
-
if (f.dynamicBullets) {
|
|
3054
|
-
const L = Math.min(b.length, f.dynamicMainBullets + 4), O = (l * L - l) / 2 - k * l, x = u ? "right" : "left";
|
|
3055
|
-
b.forEach((z) => {
|
|
3056
|
-
z.style[e.isHorizontal() ? x : "top"] = `${O}px`;
|
|
3057
|
-
});
|
|
3058
|
-
}
|
|
3059
|
-
}
|
|
3060
|
-
v.forEach((b, S) => {
|
|
3061
|
-
if (f.type === "fraction" && (b.querySelectorAll(Z(f.currentClass)).forEach((E) => {
|
|
3062
|
-
E.textContent = f.formatFractionCurrent(y + 1);
|
|
3063
|
-
}), b.querySelectorAll(Z(f.totalClass)).forEach((E) => {
|
|
3064
|
-
E.textContent = f.formatFractionTotal(I);
|
|
3065
|
-
})), f.type === "progressbar") {
|
|
3066
|
-
let E;
|
|
3067
|
-
f.progressbarOpposite ? E = e.isHorizontal() ? "vertical" : "horizontal" : E = e.isHorizontal() ? "horizontal" : "vertical";
|
|
3068
|
-
const k = (y + 1) / I;
|
|
3069
|
-
let L = 1, O = 1;
|
|
3070
|
-
E === "horizontal" ? L = k : O = k, b.querySelectorAll(Z(f.progressbarFillClass)).forEach((x) => {
|
|
3071
|
-
x.style.transform = `translate3d(0,0,0) scaleX(${L}) scaleY(${O})`, x.style.transitionDuration = `${e.params.speed}ms`;
|
|
3072
|
-
});
|
|
3073
|
-
}
|
|
3074
|
-
f.type === "custom" && f.renderCustom ? (b.innerHTML = f.renderCustom(e, y + 1, I), S === 0 && n("paginationRender", b)) : (S === 0 && n("paginationRender", b), n("paginationUpdate", b)), e.params.watchOverflow && e.enabled && b.classList[e.isLocked ? "add" : "remove"](f.lockClass);
|
|
3075
|
-
});
|
|
3076
|
-
}
|
|
3077
|
-
function g() {
|
|
3078
|
-
const u = e.params.pagination;
|
|
3079
|
-
if (o()) return;
|
|
3080
|
-
const f = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
|
|
3081
|
-
let v = e.pagination.el;
|
|
3082
|
-
v = R(v);
|
|
3083
|
-
let y = "";
|
|
3084
|
-
if (u.type === "bullets") {
|
|
3085
|
-
let C = e.params.loop ? Math.ceil(f / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
3086
|
-
e.params.freeMode && e.params.freeMode.enabled && C > f && (C = f);
|
|
3087
|
-
for (let A = 0; A < C; A += 1)
|
|
3088
|
-
u.renderBullet ? y += u.renderBullet.call(e, A, u.bulletClass) : y += `<${u.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${u.bulletClass}"></${u.bulletElement}>`;
|
|
3089
|
-
}
|
|
3090
|
-
u.type === "fraction" && (u.renderFraction ? y = u.renderFraction.call(e, u.currentClass, u.totalClass) : y = `<span class="${u.currentClass}"></span> / <span class="${u.totalClass}"></span>`), u.type === "progressbar" && (u.renderProgressbar ? y = u.renderProgressbar.call(e, u.progressbarFillClass) : y = `<span class="${u.progressbarFillClass}"></span>`), e.pagination.bullets = [], v.forEach((C) => {
|
|
3091
|
-
u.type !== "custom" && (C.innerHTML = y || ""), u.type === "bullets" && e.pagination.bullets.push(...C.querySelectorAll(Z(u.bulletClass)));
|
|
3092
|
-
}), u.type !== "custom" && n("paginationRender", v[0]);
|
|
3093
|
-
}
|
|
3094
|
-
function m() {
|
|
3095
|
-
e.params.pagination = Er(e, e.originalParams.pagination, e.params.pagination, {
|
|
3096
|
-
el: "swiper-pagination"
|
|
3097
|
-
});
|
|
3098
|
-
const u = e.params.pagination;
|
|
3099
|
-
if (!u.el) return;
|
|
3100
|
-
let f;
|
|
3101
|
-
typeof u.el == "string" && e.isElement && (f = e.el.querySelector(u.el)), !f && typeof u.el == "string" && (f = [...document.querySelectorAll(u.el)]), f || (f = u.el), !(!f || f.length === 0) && (e.params.uniqueNavElements && typeof u.el == "string" && Array.isArray(f) && f.length > 1 && (f = [...e.el.querySelectorAll(u.el)], f.length > 1 && (f = f.find((v) => Ue(v, ".swiper")[0] === e.el))), Array.isArray(f) && f.length === 1 && (f = f[0]), Object.assign(e.pagination, {
|
|
3102
|
-
el: f
|
|
3103
|
-
}), f = R(f), f.forEach((v) => {
|
|
3104
|
-
u.type === "bullets" && u.clickable && v.classList.add(...(u.clickableClass || "").split(" ")), v.classList.add(u.modifierClass + u.type), v.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass), u.type === "bullets" && u.dynamicBullets && (v.classList.add(`${u.modifierClass}${u.type}-dynamic`), a = 0, u.dynamicMainBullets < 1 && (u.dynamicMainBullets = 1)), u.type === "progressbar" && u.progressbarOpposite && v.classList.add(u.progressbarOppositeClass), u.clickable && v.addEventListener("click", p), e.enabled || v.classList.add(u.lockClass);
|
|
3105
|
-
}));
|
|
3106
|
-
}
|
|
3107
|
-
function T() {
|
|
3108
|
-
const u = e.params.pagination;
|
|
3109
|
-
if (o()) return;
|
|
3110
|
-
let f = e.pagination.el;
|
|
3111
|
-
f && (f = R(f), f.forEach((v) => {
|
|
3112
|
-
v.classList.remove(u.hiddenClass), v.classList.remove(u.modifierClass + u.type), v.classList.remove(e.isHorizontal() ? u.horizontalClass : u.verticalClass), u.clickable && (v.classList.remove(...(u.clickableClass || "").split(" ")), v.removeEventListener("click", p));
|
|
3113
|
-
})), e.pagination.bullets && e.pagination.bullets.forEach((v) => v.classList.remove(...u.bulletActiveClass.split(" ")));
|
|
3114
|
-
}
|
|
3115
|
-
r("changeDirection", () => {
|
|
3116
|
-
if (!e.pagination || !e.pagination.el) return;
|
|
3117
|
-
const u = e.params.pagination;
|
|
3118
|
-
let {
|
|
3119
|
-
el: f
|
|
3120
|
-
} = e.pagination;
|
|
3121
|
-
f = R(f), f.forEach((v) => {
|
|
3122
|
-
v.classList.remove(u.horizontalClass, u.verticalClass), v.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass);
|
|
3123
|
-
});
|
|
3124
|
-
}), r("init", () => {
|
|
3125
|
-
e.params.pagination.enabled === !1 ? w() : (m(), g(), h());
|
|
3126
|
-
}), r("activeIndexChange", () => {
|
|
3127
|
-
typeof e.snapIndex > "u" && h();
|
|
3128
|
-
}), r("snapIndexChange", () => {
|
|
3129
|
-
h();
|
|
3130
|
-
}), r("snapGridLengthChange", () => {
|
|
3131
|
-
g(), h();
|
|
3132
|
-
}), r("destroy", () => {
|
|
3133
|
-
T();
|
|
3134
|
-
}), r("enable disable", () => {
|
|
3135
|
-
let {
|
|
3136
|
-
el: u
|
|
3137
|
-
} = e.pagination;
|
|
3138
|
-
u && (u = R(u), u.forEach((f) => f.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
|
|
3139
|
-
}), r("lock unlock", () => {
|
|
3140
|
-
h();
|
|
3141
|
-
}), r("click", (u, f) => {
|
|
3142
|
-
const v = f.target, y = R(e.pagination.el);
|
|
3143
|
-
if (e.params.pagination.el && e.params.pagination.hideOnClick && y && y.length > 0 && !v.classList.contains(e.params.pagination.bulletClass)) {
|
|
3144
|
-
if (e.navigation && (e.navigation.nextEl && v === e.navigation.nextEl || e.navigation.prevEl && v === e.navigation.prevEl)) return;
|
|
3145
|
-
const C = y[0].classList.contains(e.params.pagination.hiddenClass);
|
|
3146
|
-
n(C === !0 ? "paginationShow" : "paginationHide"), y.forEach((A) => A.classList.toggle(e.params.pagination.hiddenClass));
|
|
3147
|
-
}
|
|
3148
|
-
});
|
|
3149
|
-
const M = () => {
|
|
3150
|
-
e.el.classList.remove(e.params.pagination.paginationDisabledClass);
|
|
3151
|
-
let {
|
|
3152
|
-
el: u
|
|
3153
|
-
} = e.pagination;
|
|
3154
|
-
u && (u = R(u), u.forEach((f) => f.classList.remove(e.params.pagination.paginationDisabledClass))), m(), g(), h();
|
|
3155
|
-
}, w = () => {
|
|
3156
|
-
e.el.classList.add(e.params.pagination.paginationDisabledClass);
|
|
3157
|
-
let {
|
|
3158
|
-
el: u
|
|
3159
|
-
} = e.pagination;
|
|
3160
|
-
u && (u = R(u), u.forEach((f) => f.classList.add(e.params.pagination.paginationDisabledClass))), T();
|
|
3161
|
-
};
|
|
3162
|
-
Object.assign(e.pagination, {
|
|
3163
|
-
enable: M,
|
|
3164
|
-
disable: w,
|
|
3165
|
-
render: g,
|
|
3166
|
-
update: h,
|
|
3167
|
-
init: m,
|
|
3168
|
-
destroy: T
|
|
3169
|
-
});
|
|
3170
|
-
}
|
|
3171
|
-
const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n }) => {
|
|
3172
|
-
const i = D(), l = D(), { listOfQuestions: a, countQuestionsAvailable: o } = Re(() => {
|
|
3173
|
-
const g = t ? Object.values(t) : [];
|
|
3174
|
-
return {
|
|
3175
|
-
listOfQuestions: g,
|
|
3176
|
-
countQuestionsAvailable: g.filter(({ marketClosed: m }) => !m).length
|
|
3177
|
-
};
|
|
3178
|
-
}, [t]), c = qe(
|
|
3179
|
-
async (g, m) => {
|
|
3180
|
-
try {
|
|
3181
|
-
await e.betPackVote(g, m), s({
|
|
3182
|
-
type: "slVoted",
|
|
3183
|
-
payload: {
|
|
3184
|
-
questionId: g,
|
|
3185
|
-
answerId: m
|
|
3186
|
-
}
|
|
3187
|
-
});
|
|
3188
|
-
} finally {
|
|
3189
|
-
i.current && clearTimeout(i.current), n && (i.current = setTimeout(() => {
|
|
3190
|
-
l.current?.slideNext();
|
|
3191
|
-
}, 2e3));
|
|
3192
|
-
}
|
|
3193
|
-
},
|
|
3194
|
-
[e, s, n]
|
|
3195
|
-
);
|
|
3196
|
-
Y(() => (s({
|
|
3197
|
-
type: "slBetPackReady",
|
|
3198
|
-
payload: {
|
|
3199
|
-
next: () => l.current?.slideNext(),
|
|
3200
|
-
prev: () => l.current?.slidePrev(),
|
|
3201
|
-
current: 0,
|
|
3202
|
-
canNext: !0,
|
|
3203
|
-
canPrev: !1
|
|
3204
|
-
}
|
|
3205
|
-
}), () => {
|
|
3206
|
-
i.current && clearTimeout(i.current);
|
|
3207
|
-
}), [s]);
|
|
3208
|
-
const d = (g) => {
|
|
3209
|
-
const m = g.realIndex;
|
|
3210
|
-
if (s({
|
|
3211
|
-
type: "slBetPackChangeCard",
|
|
3212
|
-
payload: {
|
|
3213
|
-
current: m,
|
|
3214
|
-
canNext: m < Object.keys(t).length + 1,
|
|
3215
|
-
canPrev: m >= 1
|
|
3216
|
-
}
|
|
3217
|
-
}), m !== 0 && m !== Object.keys(t).length + 1 && a[m - 1]?.id) {
|
|
3218
|
-
e.openQuestion(a[m - 1].id, {
|
|
3219
|
-
openedFrom: "bet-pack",
|
|
3220
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3221
|
-
// @ts-expect-error
|
|
3222
|
-
attributes: {
|
|
3223
|
-
id: a[m - 1].id,
|
|
3224
|
-
type: a[m - 1].type,
|
|
3225
|
-
status: a[m - 1].status,
|
|
3226
|
-
attributes: {
|
|
3227
|
-
case: void 0
|
|
3228
|
-
}
|
|
3229
|
-
}
|
|
3230
|
-
});
|
|
3231
|
-
return;
|
|
3232
|
-
}
|
|
3233
|
-
e.closeQuestion();
|
|
3234
|
-
}, [p, h] = W(1.1);
|
|
3235
|
-
return Y(() => {
|
|
3236
|
-
const g = bt(() => {
|
|
3237
|
-
const m = l.current?.size;
|
|
3238
|
-
if (!m)
|
|
3239
|
-
return;
|
|
3240
|
-
const T = 1 + 30 / (m / 100) / 100 * 2;
|
|
3241
|
-
h(Math.ceil(T * 1e3) / 1e3);
|
|
3242
|
-
}, 200);
|
|
3243
|
-
return window.addEventListener("resize", g), g(), () => {
|
|
3244
|
-
window.removeEventListener("resize", g);
|
|
3245
|
-
};
|
|
3246
|
-
}, []), /* @__PURE__ */ F(
|
|
3247
|
-
tr,
|
|
3248
|
-
{
|
|
3249
|
-
slidesPerView: p,
|
|
3250
|
-
spaceBetween: 12,
|
|
3251
|
-
centeredSlides: !0,
|
|
3252
|
-
centerInsufficientSlides: !0,
|
|
3253
|
-
allowTouchMove: r,
|
|
3254
|
-
pagination: {
|
|
3255
|
-
clickable: !0
|
|
3256
|
-
},
|
|
3257
|
-
modules: [Tr],
|
|
3258
|
-
onSlideChange: d,
|
|
3259
|
-
onBeforeSlideChangeStart: () => {
|
|
3260
|
-
i.current && clearTimeout(i.current);
|
|
3261
|
-
},
|
|
3262
|
-
onSwiper: (g) => {
|
|
3263
|
-
l.current = g;
|
|
3264
|
-
},
|
|
3265
|
-
children: [
|
|
3266
|
-
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(Sr, { sliderRef: l, countQuestionsAvailable: o }) }),
|
|
3267
|
-
a.map((g) => g ? /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(fe, { children: /* @__PURE__ */ P(hr, { question: g, vote: c }) }, g.id) }) : null),
|
|
3268
|
-
/* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(fr, { onEvent: s }) })
|
|
3269
|
-
]
|
|
3270
|
-
}
|
|
3271
|
-
);
|
|
3272
|
-
}, Cr = ({ gamification: t, autoplay: e, overlay: s, swipeable: r, onEvent: n }) => {
|
|
3273
|
-
const i = Se(t.betPack.getStore()), { error: l, loading: a, data: o } = i;
|
|
3274
|
-
return a || !Object.hasOwn(i, "data") ? /* @__PURE__ */ P(Le, {}) : l ? /* @__PURE__ */ P(
|
|
3275
|
-
Ie,
|
|
3276
|
-
{
|
|
3277
|
-
onEvent: n,
|
|
3278
|
-
actionFn: () => n({ type: "slHardRefresh" }),
|
|
3279
|
-
description: l instanceof Tt && l.code !== xt.InvalidArgument ? `The event ID was not
|
|
3280
|
-
specified or is invalid.` : `The server is unable to
|
|
3281
|
-
handle this request.`
|
|
3282
|
-
}
|
|
3283
|
-
) : !o || !o.timestamp || !o.data || !Object.keys(o.data).length ? /* @__PURE__ */ P(
|
|
3284
|
-
Ie,
|
|
3285
|
-
{
|
|
3286
|
-
onEvent: n,
|
|
3287
|
-
actionFn: () => n({ type: "slHardRefresh" }),
|
|
3288
|
-
description: `It looks like we couldn't
|
|
3289
|
-
load the questions.`
|
|
3290
|
-
}
|
|
3291
|
-
) : /* @__PURE__ */ P(
|
|
3292
|
-
xr,
|
|
3293
|
-
{
|
|
3294
|
-
data: o.data,
|
|
3295
|
-
gamification: t,
|
|
3296
|
-
onEvent: n,
|
|
3297
|
-
swipeable: r,
|
|
3298
|
-
autoplay: e,
|
|
3299
|
-
overlay: s
|
|
3300
|
-
}
|
|
3301
|
-
);
|
|
3302
|
-
}, Pr = /* @__PURE__ */ _("div")({
|
|
3303
|
-
name: "BetPackContainer",
|
|
3304
|
-
class: "b18vssq2",
|
|
3305
|
-
propsAsIs: !1
|
|
3306
|
-
}), ie = "slBetPackCb", Mr = yt("betPack-ui"), kr = (t, e = {}) => {
|
|
3307
|
-
const { questionId: s, answerId: r } = e, n = { questionId: s, answerId: r };
|
|
3308
|
-
Mr.debug({ id: ie, type: t, ...n }), window.top?.postMessage({ id: ie, type: t, ...n }, "*"), window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers[ie] && window.webkit.messageHandlers[ie].postMessage({ type: t, ...n }), window.slBetPackCb?.postMessage && window.slBetPackCb.postMessage(JSON.stringify({ type: t, ...n, from: "base" }));
|
|
3309
|
-
}, Ir = (t) => {
|
|
3310
|
-
kr(t.type, t.payload);
|
|
3311
|
-
}, Lr = /* @__PURE__ */ _("div")({
|
|
3312
|
-
name: "Container",
|
|
3313
|
-
class: "c1mj28sn",
|
|
3314
|
-
propsAsIs: !1
|
|
3315
|
-
}), Ar = /* @__PURE__ */ _("button")({
|
|
3316
|
-
name: "CloseButton",
|
|
3317
|
-
class: "coc9f01",
|
|
3318
|
-
propsAsIs: !1
|
|
3319
|
-
}), Fe = "b590k5k", Or = () => te, pt = /* @__PURE__ */ _(Or())({
|
|
3320
|
-
name: "IconArrowPrev",
|
|
3321
|
-
class: "i1tkem14",
|
|
3322
|
-
propsAsIs: !0
|
|
3323
|
-
}), zr = () => pt, _r = /* @__PURE__ */ _(zr())({
|
|
3324
|
-
name: "IconArrowNext",
|
|
3325
|
-
class: "i175qlj5",
|
|
3326
|
-
propsAsIs: !0
|
|
3327
|
-
}), $r = /* @__PURE__ */ _("div")({
|
|
3328
|
-
name: "Header",
|
|
3329
|
-
class: "h1foi3kz",
|
|
3330
|
-
propsAsIs: !1
|
|
3331
|
-
}), Gr = /* @__PURE__ */ _("div")({
|
|
3332
|
-
name: "HeaderTitle",
|
|
3333
|
-
class: "hc2d48a",
|
|
3334
|
-
propsAsIs: !1
|
|
3335
|
-
}), Br = /* @__PURE__ */ _("div")({
|
|
3336
|
-
name: "Main",
|
|
3337
|
-
class: "mgfyjlp",
|
|
3338
|
-
propsAsIs: !1
|
|
3339
|
-
}), Nr = /* @__PURE__ */ _("div")({
|
|
3340
|
-
name: "Footer",
|
|
3341
|
-
class: "f1vakhu9",
|
|
3342
|
-
propsAsIs: !1
|
|
3343
|
-
}), Ve = /* @__PURE__ */ _("button")({
|
|
3344
|
-
name: "SlideSwitchButton",
|
|
3345
|
-
class: "spp13y7",
|
|
3346
|
-
propsAsIs: !1
|
|
3347
|
-
});
|
|
3348
|
-
Ae(({ sdk: t, onEvent: e, close: s }, r) => {
|
|
3349
|
-
const [n, i] = W(), [l, a] = W(), o = qe(
|
|
3350
|
-
(c) => {
|
|
3351
|
-
if (c.type === "slBetPackReady") {
|
|
3352
|
-
const { next: d, prev: p, current: h, canNext: g, canPrev: m } = c.payload || {};
|
|
3353
|
-
i({ next: d, prev: p }), a((T) => ({
|
|
3354
|
-
current: T?.current ? T?.current : h,
|
|
3355
|
-
canPrev: T?.current ? T?.canPrev : m,
|
|
3356
|
-
canNext: g
|
|
3357
|
-
}));
|
|
3358
|
-
}
|
|
3359
|
-
if (c.type === "slBetPackChangeCard") {
|
|
3360
|
-
const { current: d, canNext: p, canPrev: h } = c.payload || {};
|
|
3361
|
-
a({ current: d, canNext: p, canPrev: h });
|
|
3362
|
-
}
|
|
3363
|
-
e?.(c);
|
|
3364
|
-
},
|
|
3365
|
-
[e]
|
|
3366
|
-
);
|
|
3367
|
-
return Y(() => () => {
|
|
3368
|
-
const c = t.getFeature(We.GAMES);
|
|
3369
|
-
c && c.betPack?.off();
|
|
3370
|
-
}, [t]), /* @__PURE__ */ F(Lr, { ref: r, children: [
|
|
3371
|
-
/* @__PURE__ */ F($r, { children: [
|
|
3372
|
-
/* @__PURE__ */ F(Gr, { children: [
|
|
3373
|
-
/* @__PURE__ */ P(te, { name: "fgIcon" }),
|
|
3374
|
-
"Featured Groups+"
|
|
3375
|
-
] }),
|
|
3376
|
-
/* @__PURE__ */ P(Ar, { "data-a": "intr", onClick: s, children: /* @__PURE__ */ P(te, { name: "icon-close-btn-gray" }) })
|
|
3377
|
-
] }),
|
|
3378
|
-
/* @__PURE__ */ P(Br, { children: /* @__PURE__ */ P(ft, { sdk: t, onEvent: o, overlay: !0 }) }),
|
|
3379
|
-
/* @__PURE__ */ F(Nr, { children: [
|
|
3380
|
-
/* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n?.prev, disabled: !l?.canPrev, children: /* @__PURE__ */ P(pt, { "data-a": "intr", name: "iconArrowPrev", className: Ee(l?.canPrev && Fe) }) }),
|
|
3381
|
-
/* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n?.next, disabled: !l?.canNext, children: /* @__PURE__ */ P(_r, { "data-a": "intr", name: "iconArrowPrev", className: Ee(l?.canNext && Fe) }) })
|
|
3382
|
-
] })
|
|
3383
|
-
] });
|
|
3384
|
-
});
|
|
3385
|
-
const Dr = ({ user: t, gamification: e, overlay: s, swipeable: r, onEvent: n }) => t.data ? e ? /* @__PURE__ */ P(Cr, { overlay: s, gamification: e, onEvent: n, swipeable: r }) : /* @__PURE__ */ P(Le, {}) : t.error && !t.loading ? /* @__PURE__ */ P(
|
|
3386
|
-
Ie,
|
|
3387
|
-
{
|
|
3388
|
-
onEvent: n,
|
|
3389
|
-
actionFn: () => n({ type: "slHardRefresh" }),
|
|
3390
|
-
description: `You are not authorized to
|
|
3391
|
-
view this resource.`
|
|
3392
|
-
}
|
|
3393
|
-
) : /* @__PURE__ */ P(Le, {}), ft = wt(({ sdk: t, swipeable: e = !0, onEvent: s = Ir, overlay: r }) => {
|
|
3394
|
-
const n = Se(t.featuresList.getStore()), i = Re(() => t.getFeature(We.GAMES), [n]), l = Se(t.getUserStore());
|
|
3395
|
-
return Y(() => (t.writeOverlaySessionId(), () => {
|
|
3396
|
-
t.writeOverlaySessionId("");
|
|
3397
|
-
}), []), /* @__PURE__ */ P(
|
|
3398
|
-
Pr,
|
|
3399
|
-
{
|
|
3400
|
-
className: Ee("SL-BetPack", r && "SL-BetPack--overlay", !r && "SL-BetPack--standalone"),
|
|
3401
|
-
children: /* @__PURE__ */ P(Dr, { overlay: r, user: l, gamification: i, onEvent: s, swipeable: e })
|
|
3402
|
-
}
|
|
3403
|
-
);
|
|
3404
|
-
}), je = (t) => {
|
|
3405
|
-
const e = t.target;
|
|
3406
|
-
e instanceof Element && e.getAttribute("data-a") === "intr" && gt.emit("interactions", {
|
|
3407
|
-
action: "tap",
|
|
3408
|
-
payload: {}
|
|
3409
|
-
});
|
|
3410
|
-
}, Qr = () => {
|
|
3411
|
-
const t = Ct();
|
|
3412
|
-
return Y(() => (document?.addEventListener("click", je), () => {
|
|
3413
|
-
document?.removeEventListener("click", je);
|
|
3414
|
-
}), []), t ? /* @__PURE__ */ P(ft, { sdk: t }) : null;
|
|
3415
|
-
};
|
|
3416
|
-
export {
|
|
3417
|
-
Qr as BetPackProvider
|
|
3418
|
-
};
|