@streamlayer/react 0.0.1-debug.1

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