well-waterfall 1.2.12 → 1.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/lib/attributes.d.ts +1 -0
- package/dist/modules/callbacks.d.ts +10 -0
- package/dist/well-waterfall.es.js +382 -360
- package/dist/well-waterfall.es.js.map +1 -1
- package/dist/well-waterfall.umd.js +2 -2
- package/dist/well-waterfall.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -33,14 +33,14 @@ function Ke(e, t = "x") {
|
|
|
33
33
|
function _e(e) {
|
|
34
34
|
return typeof e == "object" && e !== null && e.constructor === Object && Object.prototype.toString.call(e).slice(8, -1) === "Object";
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function wt(e) {
|
|
37
37
|
return typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : !!e && typeof e == "object" && (e.nodeType === 1 || e.nodeType === 11);
|
|
38
38
|
}
|
|
39
39
|
function se(e, ...t) {
|
|
40
40
|
const s = Object(e);
|
|
41
41
|
for (let a = 0; a < t.length; a += 1) {
|
|
42
42
|
const n = t[a];
|
|
43
|
-
if (n == null ||
|
|
43
|
+
if (n == null || wt(n))
|
|
44
44
|
continue;
|
|
45
45
|
const i = n, u = Object.keys(Object(i)).filter((o) => o !== "__proto__" && o !== "constructor" && o !== "prototype");
|
|
46
46
|
for (const o of u) {
|
|
@@ -71,7 +71,7 @@ function Q(e, t = "") {
|
|
|
71
71
|
const s = [...e.children];
|
|
72
72
|
return e instanceof HTMLSlotElement && s.push(...e.assignedElements()), t ? s.filter((a) => a.matches(t)) : s;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Rt(e, t) {
|
|
75
75
|
const s = [t];
|
|
76
76
|
for (; s.length > 0; ) {
|
|
77
77
|
const a = s.shift();
|
|
@@ -83,7 +83,7 @@ function wt(e, t) {
|
|
|
83
83
|
}
|
|
84
84
|
function Pt(e, t) {
|
|
85
85
|
let s = t.contains(e);
|
|
86
|
-
return !s && t instanceof HTMLSlotElement && (s = [...t.assignedElements()].includes(e), s || (s =
|
|
86
|
+
return !s && t instanceof HTMLSlotElement && (s = [...t.assignedElements()].includes(e), s || (s = Rt(e, t))), s;
|
|
87
87
|
}
|
|
88
88
|
function Ne(e) {
|
|
89
89
|
try {
|
|
@@ -144,7 +144,7 @@ function Ze(e, t, s) {
|
|
|
144
144
|
function U(e) {
|
|
145
145
|
return (Array.isArray(e) ? e : [e]).filter((t) => !!t);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function ke(e) {
|
|
148
148
|
return (t) => Math.abs(t) > 0 && e.browser && e.browser.need3dFix && Math.abs(t) % 90 === 0 ? t + 1e-3 : t;
|
|
149
149
|
}
|
|
150
150
|
function le(e, t = "") {
|
|
@@ -171,14 +171,14 @@ function Tt(e = {}) {
|
|
|
171
171
|
return Fe || (Fe = zt(e)), Fe;
|
|
172
172
|
}
|
|
173
173
|
let Xe;
|
|
174
|
-
function
|
|
174
|
+
function kt() {
|
|
175
175
|
if (typeof window > "u")
|
|
176
176
|
return { isSafari: !1, isWebView: !1, need3dFix: !1 };
|
|
177
177
|
const e = Tt(), t = navigator.userAgent, s = t.toLowerCase(), a = s.includes("safari") && !s.includes("chrome") && !s.includes("android"), n = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t), i = a || n && e.ios;
|
|
178
178
|
return { isSafari: a, isWebView: n, need3dFix: i };
|
|
179
179
|
}
|
|
180
180
|
function Et() {
|
|
181
|
-
return Xe || (Xe =
|
|
181
|
+
return Xe || (Xe = kt()), Xe;
|
|
182
182
|
}
|
|
183
183
|
const Oe = (e, t) => {
|
|
184
184
|
if (!e || e.destroyed || !e.params)
|
|
@@ -224,7 +224,7 @@ const Oe = (e, t) => {
|
|
|
224
224
|
for (let u = Math.max(n - t, 0); u <= Math.min(i + t, s - 1); u += 1)
|
|
225
225
|
u !== n && (u > i || u < n) && Ue(e, u);
|
|
226
226
|
};
|
|
227
|
-
function
|
|
227
|
+
function $t(e, t = "window", s) {
|
|
228
228
|
if (!e || t === "container" && !s)
|
|
229
229
|
return;
|
|
230
230
|
let a = !1;
|
|
@@ -252,12 +252,12 @@ function Gt() {
|
|
|
252
252
|
return;
|
|
253
253
|
const m = i, c = (r in m ? m[r] : void 0) || e.originalParams, T = it(e, a), d = it(e, c), l = e.params.grabCursor, g = c.grabCursor, v = a.enabled;
|
|
254
254
|
T && !d ? (n.classList.remove(`${a.containerModifierClass}grid`, `${a.containerModifierClass}grid-column`), e.emitContainerClasses()) : !T && d && (n.classList.add(`${a.containerModifierClass}grid`), (c.grid.fill && c.grid.fill === "column" || !c.grid.fill && a.grid.fill === "column") && n.classList.add(`${a.containerModifierClass}grid-column`), e.emitContainerClasses()), l && !g ? e.unsetGrabCursor() : !l && g && e.setGrabCursor();
|
|
255
|
-
const S = (A,
|
|
255
|
+
const S = (A, w) => A[w];
|
|
256
256
|
["navigation", "pagination", "scrollbar"].forEach((A) => {
|
|
257
|
-
const
|
|
258
|
-
if (typeof
|
|
257
|
+
const w = S(c, A);
|
|
258
|
+
if (typeof w > "u")
|
|
259
259
|
return;
|
|
260
|
-
const _ = S(a, A), P = typeof _ == "object" && _ !== null && _.enabled, b = typeof
|
|
260
|
+
const _ = S(a, A), P = typeof _ == "object" && _ !== null && _.enabled, b = typeof w == "object" && w !== null && w.enabled, M = e[A];
|
|
261
261
|
P && !b && M?.disable?.(), !P && b && M?.enable?.();
|
|
262
262
|
});
|
|
263
263
|
const h = c.direction && c.direction !== a.direction, p = a.loop && (c.slidesPerView !== a.slidesPerView || h), E = a.loop;
|
|
@@ -269,7 +269,7 @@ function Gt() {
|
|
|
269
269
|
allowSlidePrev: e.params.allowSlidePrev
|
|
270
270
|
}), v && !y ? e.disable() : !v && y && e.enable(), e.currentBreakpoint = r, e.emit("_beforeBreakpoint", c), s && (p ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !E && I ? (e.loopCreate(t), e.updateSlides()) : E && !I && e.loopDestroy()), e.emit("breakpoint", c);
|
|
271
271
|
}
|
|
272
|
-
var Bt = { setBreakpoint: Gt, getBreakpoint:
|
|
272
|
+
var Bt = { setBreakpoint: Gt, getBreakpoint: $t };
|
|
273
273
|
function Ht() {
|
|
274
274
|
const e = this, { isLocked: t, params: s } = e, { slidesOffsetBefore: a } = s;
|
|
275
275
|
if (a) {
|
|
@@ -610,7 +610,7 @@ function es(e) {
|
|
|
610
610
|
return;
|
|
611
611
|
let m;
|
|
612
612
|
if (r.type === "touchmove") {
|
|
613
|
-
const A = [...r.changedTouches].find((
|
|
613
|
+
const A = [...r.changedTouches].find((w) => w.identifier === s.touchId);
|
|
614
614
|
if (!A || A.identifier !== s.touchId)
|
|
615
615
|
return;
|
|
616
616
|
m = A;
|
|
@@ -900,8 +900,8 @@ function fs(e = {}) {
|
|
|
900
900
|
const { slides: c, allowSlidePrev: T, allowSlideNext: d, slidesEl: l, params: g } = f, { centeredSlides: v, slidesOffsetBefore: S, slidesOffsetAfter: h, initialSlide: p } = g, E = v || !!S || !!h;
|
|
901
901
|
if (f.allowSlidePrev = !0, f.allowSlideNext = !0, f.virtual && g.virtual?.enabled) {
|
|
902
902
|
if (s) {
|
|
903
|
-
const
|
|
904
|
-
!E && f.snapIndex === 0 ? f.slideTo(
|
|
903
|
+
const $ = f.virtual.slides.length, Y = f.virtual.slidesBefore ?? 0;
|
|
904
|
+
!E && f.snapIndex === 0 ? f.slideTo($, 0, !1, !0) : E && f.snapIndex < g.slidesPerView ? f.slideTo($ + f.snapIndex, 0, !1, !0) : f.snapIndex === f.snapGrid.length - 1 && f.slideTo(Y, 0, !1, !0);
|
|
905
905
|
}
|
|
906
906
|
f.allowSlidePrev = T, f.allowSlideNext = d, f.emit("loopFix");
|
|
907
907
|
return;
|
|
@@ -911,19 +911,19 @@ function fs(e = {}) {
|
|
|
911
911
|
const I = g.slidesPerGroupAuto ? y : g.slidesPerGroup;
|
|
912
912
|
let A = E ? Math.max(I, Math.ceil(y / 2)) : I;
|
|
913
913
|
A % I !== 0 && (A += I - A % I), A += g.loopAdditionalSlides, f.loopedSlides = A;
|
|
914
|
-
const
|
|
915
|
-
c.length < y + A || f.params.effect === "cards" && c.length < y + A * 2 ? Ne("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") :
|
|
916
|
-
const _ = [], P = [], b =
|
|
914
|
+
const w = f.grid && g.grid && g.grid.rows > 1;
|
|
915
|
+
c.length < y + A || f.params.effect === "cards" && c.length < y + A * 2 ? Ne("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") : w && g.grid.fill === "row" && Ne("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
916
|
+
const _ = [], P = [], b = w ? Math.ceil(c.length / g.grid.rows) : c.length, M = u && b - p < y && !E;
|
|
917
917
|
let C = M ? p : f.activeIndex;
|
|
918
|
-
typeof m > "u" ? m = f.getSlideIndex(c.find((
|
|
919
|
-
const x = a === "next" || !a,
|
|
918
|
+
typeof m > "u" ? m = f.getSlideIndex(c.find(($) => $.classList.contains(g.slideActiveClass))) : C = m;
|
|
919
|
+
const x = a === "next" || !a, R = a === "prev" || !a;
|
|
920
920
|
let L = 0, N = 0;
|
|
921
|
-
const z = (
|
|
921
|
+
const z = (w ? c[m].column ?? 0 : m) + (E && typeof n > "u" ? -y / 2 + 0.5 : 0);
|
|
922
922
|
if (z < A) {
|
|
923
923
|
L = Math.max(A - z, I);
|
|
924
|
-
for (let
|
|
925
|
-
const Y =
|
|
926
|
-
if (
|
|
924
|
+
for (let $ = 0; $ < A - z; $ += 1) {
|
|
925
|
+
const Y = $ - Math.floor($ / b) * b;
|
|
926
|
+
if (w) {
|
|
927
927
|
const q = b - Y - 1;
|
|
928
928
|
for (let O = c.length - 1; O >= 0; O -= 1)
|
|
929
929
|
c[O].column === q && _.push(O);
|
|
@@ -932,45 +932,45 @@ function fs(e = {}) {
|
|
|
932
932
|
}
|
|
933
933
|
} else if (z + y > b - A) {
|
|
934
934
|
N = Math.max(z - (b - A * 2), I), M && (N = Math.max(N, y - b + p + 1));
|
|
935
|
-
for (let
|
|
936
|
-
const Y =
|
|
937
|
-
|
|
935
|
+
for (let $ = 0; $ < N; $ += 1) {
|
|
936
|
+
const Y = $ - Math.floor($ / b) * b;
|
|
937
|
+
w ? c.forEach((q, O) => {
|
|
938
938
|
q.column === Y && P.push(O);
|
|
939
939
|
}) : P.push(Y);
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
942
|
if (f.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
943
943
|
f.__preventObserver__ = !1;
|
|
944
|
-
}), f.params.effect === "cards" && c.length < y + A * 2 && (P.includes(m) && P.splice(P.indexOf(m), 1), _.includes(m) && _.splice(_.indexOf(m), 1)),
|
|
945
|
-
const Y = c[
|
|
944
|
+
}), f.params.effect === "cards" && c.length < y + A * 2 && (P.includes(m) && P.splice(P.indexOf(m), 1), _.includes(m) && _.splice(_.indexOf(m), 1)), R && _.forEach(($) => {
|
|
945
|
+
const Y = c[$];
|
|
946
946
|
Y.swiperLoopMoveDOM = !0, l.prepend(Y), Y.swiperLoopMoveDOM = !1;
|
|
947
|
-
}), x && P.forEach((
|
|
948
|
-
const Y = c[
|
|
947
|
+
}), x && P.forEach(($) => {
|
|
948
|
+
const Y = c[$];
|
|
949
949
|
Y.swiperLoopMoveDOM = !0, l.append(Y), Y.swiperLoopMoveDOM = !1;
|
|
950
|
-
}), f.recalcSlides(), g.slidesPerView === "auto" ? f.updateSlides() :
|
|
951
|
-
f.grid.updateSlide(Y,
|
|
950
|
+
}), f.recalcSlides(), g.slidesPerView === "auto" ? f.updateSlides() : w && (_.length > 0 && R || P.length > 0 && x) && f.slides.forEach(($, Y) => {
|
|
951
|
+
f.grid.updateSlide(Y, $, f.slides);
|
|
952
952
|
}), g.watchSlidesProgress && f.updateSlidesOffset(), s) {
|
|
953
|
-
if (_.length > 0 &&
|
|
953
|
+
if (_.length > 0 && R) {
|
|
954
954
|
if (typeof t > "u") {
|
|
955
|
-
const
|
|
955
|
+
const $ = f.slidesGrid[C], q = f.slidesGrid[C + L] - $;
|
|
956
956
|
r ? f.setTranslate(f.translate - q) : (f.slideTo(C + Math.ceil(L), 0, !1, !0), n && (f.touchEventsData.startTranslate = f.touchEventsData.startTranslate - q, f.touchEventsData.currentTranslate = f.touchEventsData.currentTranslate - q));
|
|
957
957
|
} else if (n) {
|
|
958
|
-
const
|
|
959
|
-
f.slideTo(f.activeIndex +
|
|
958
|
+
const $ = w ? _.length / g.grid.rows : _.length;
|
|
959
|
+
f.slideTo(f.activeIndex + $, 0, !1, !0), f.touchEventsData.currentTranslate = f.translate;
|
|
960
960
|
}
|
|
961
961
|
} else if (P.length > 0 && x)
|
|
962
962
|
if (typeof t > "u") {
|
|
963
|
-
const
|
|
963
|
+
const $ = f.slidesGrid[C], q = f.slidesGrid[C - N] - $;
|
|
964
964
|
r ? f.setTranslate(f.translate - q) : (f.slideTo(C - N, 0, !1, !0), n && (f.touchEventsData.startTranslate = f.touchEventsData.startTranslate - q, f.touchEventsData.currentTranslate = f.touchEventsData.currentTranslate - q));
|
|
965
965
|
} else {
|
|
966
|
-
const
|
|
967
|
-
f.slideTo(f.activeIndex -
|
|
966
|
+
const $ = w ? P.length / g.grid.rows : P.length;
|
|
967
|
+
f.slideTo(f.activeIndex - $, 0, !1, !0);
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
970
|
f.allowSlidePrev = T, f.allowSlideNext = d;
|
|
971
971
|
const V = f.controller?.control;
|
|
972
972
|
if (V && !o) {
|
|
973
|
-
const
|
|
973
|
+
const $ = {
|
|
974
974
|
slideRealIndex: t,
|
|
975
975
|
direction: a,
|
|
976
976
|
setTranslate: n,
|
|
@@ -979,11 +979,11 @@ function fs(e = {}) {
|
|
|
979
979
|
};
|
|
980
980
|
Array.isArray(V) ? V.forEach((Y) => {
|
|
981
981
|
!Y.destroyed && Y.params.loop && Y.loopFix({
|
|
982
|
-
|
|
982
|
+
...$,
|
|
983
983
|
slideTo: Y.params.slidesPerView === g.slidesPerView ? s : !1
|
|
984
984
|
});
|
|
985
985
|
}) : V instanceof f.constructor && V.params.loop && V.loopFix({
|
|
986
|
-
|
|
986
|
+
...$,
|
|
987
987
|
slideTo: V.params.slidesPerView === g.slidesPerView ? s : !1
|
|
988
988
|
});
|
|
989
989
|
}
|
|
@@ -1154,8 +1154,8 @@ function vs(e = 0, t, s = !0, a, n) {
|
|
|
1154
1154
|
const S = -r[v];
|
|
1155
1155
|
if (o.normalizeSlideIndex)
|
|
1156
1156
|
for (let A = 0; A < m.length; A += 1) {
|
|
1157
|
-
const
|
|
1158
|
-
typeof m[A + 1] < "u" ?
|
|
1157
|
+
const w = -Math.floor(S * 100), _ = Math.floor(m[A] * 100), P = Math.floor(m[A + 1] * 100);
|
|
1158
|
+
typeof m[A + 1] < "u" ? w >= _ && w < P - (P - _) / 2 ? u = A : w >= _ && w < P && (u = A + 1) : w >= _ && (u = A);
|
|
1159
1159
|
}
|
|
1160
1160
|
if (i.initialized && u !== c && (!i.allowSlideNext && (T ? S > i.translate && S > i.minTranslate() : S < i.translate && S < i.minTranslate()) || !i.allowSlidePrev && S > i.translate && S > i.maxTranslate() && (c || 0) !== u))
|
|
1161
1161
|
return !1;
|
|
@@ -1166,19 +1166,19 @@ function vs(e = 0, t, s = !0, a, n) {
|
|
|
1166
1166
|
if (!(p && n) && (T && -S === i.translate || !T && S === i.translate))
|
|
1167
1167
|
return i.updateActiveIndex(u), o.autoHeight && i.updateAutoHeight(), i.updateSlidesClasses(), o.effect !== "slide" && i.setTranslate(S), h !== "reset" && (i.transitionStart(s, h), i.transitionEnd(s, h)), !1;
|
|
1168
1168
|
if (o.cssMode) {
|
|
1169
|
-
const A = i.isHorizontal(),
|
|
1169
|
+
const A = i.isHorizontal(), w = T ? S : -S;
|
|
1170
1170
|
return t === 0 ? (p && (i.wrapperEl.style.scrollSnapType = "none", i._immediateVirtual = !0), p && !i._cssModeVirtualInitialSet && (i.params.initialSlide ?? 0) > 0 ? (i._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
1171
|
-
d[A ? "scrollLeft" : "scrollTop"] =
|
|
1172
|
-
})) : d[A ? "scrollLeft" : "scrollTop"] =
|
|
1171
|
+
d[A ? "scrollLeft" : "scrollTop"] = w;
|
|
1172
|
+
})) : d[A ? "scrollLeft" : "scrollTop"] = w, p && requestAnimationFrame(() => {
|
|
1173
1173
|
i.wrapperEl.style.scrollSnapType = "", i._immediateVirtual = !1;
|
|
1174
1174
|
})) : d.scrollTo({
|
|
1175
|
-
[A ? "left" : "top"]:
|
|
1175
|
+
[A ? "left" : "top"]: w,
|
|
1176
1176
|
behavior: "smooth"
|
|
1177
1177
|
}), !0;
|
|
1178
1178
|
}
|
|
1179
1179
|
const I = Et().isSafari;
|
|
1180
|
-
return p && !n && I && i.isElement && i.virtual.update(!1, !1, u), i.setTransition(t), i.setTranslate(S), i.updateActiveIndex(u), i.updateSlidesClasses(), i.emit("beforeTransitionStart", t, a), i.transitionStart(s, h), t === 0 ? i.transitionEnd(s, h) : i.animating || (i.animating = !0, i.onSlideToWrapperTransitionEnd || (i.onSlideToWrapperTransitionEnd = function(
|
|
1181
|
-
!i || i.destroyed ||
|
|
1180
|
+
return p && !n && I && i.isElement && i.virtual.update(!1, !1, u), i.setTransition(t), i.setTranslate(S), i.updateActiveIndex(u), i.updateSlidesClasses(), i.emit("beforeTransitionStart", t, a), i.transitionStart(s, h), t === 0 ? i.transitionEnd(s, h) : i.animating || (i.animating = !0, i.onSlideToWrapperTransitionEnd || (i.onSlideToWrapperTransitionEnd = function(w) {
|
|
1181
|
+
!i || i.destroyed || w.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onSlideToWrapperTransitionEnd), i.onSlideToWrapperTransitionEnd = null, delete i.onSlideToWrapperTransitionEnd, i.transitionEnd(s, h));
|
|
1182
1182
|
}), i.wrapperEl.addEventListener("transitionend", i.onSlideToWrapperTransitionEnd)), !0;
|
|
1183
1183
|
}
|
|
1184
1184
|
function Ss() {
|
|
@@ -1300,10 +1300,10 @@ function Ms(e = this.isHorizontal() ? "x" : "y") {
|
|
|
1300
1300
|
function Is() {
|
|
1301
1301
|
return -this.snapGrid[this.snapGrid.length - 1];
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1303
|
+
function ws() {
|
|
1304
1304
|
return -this.snapGrid[0];
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1306
|
+
function Rs(e, t) {
|
|
1307
1307
|
const s = this, { rtlTranslate: a, params: n, wrapperEl: i, progress: u } = s;
|
|
1308
1308
|
let o = 0, r = 0;
|
|
1309
1309
|
const m = 0;
|
|
@@ -1331,8 +1331,8 @@ function Ps(e = 0, t = this.params.speed, s = !0, a = !0, n) {
|
|
|
1331
1331
|
}
|
|
1332
1332
|
var Os = {
|
|
1333
1333
|
getTranslate: Ms,
|
|
1334
|
-
setTranslate:
|
|
1335
|
-
minTranslate:
|
|
1334
|
+
setTranslate: Rs,
|
|
1335
|
+
minTranslate: ws,
|
|
1336
1336
|
maxTranslate: Is,
|
|
1337
1337
|
translateTo: Ps
|
|
1338
1338
|
};
|
|
@@ -1416,7 +1416,7 @@ function zs(e) {
|
|
|
1416
1416
|
}
|
|
1417
1417
|
(n || n === 0) && (t.wrapperEl.style.height = `${n}px`);
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function ks(e, t) {
|
|
1420
1420
|
const s = this, a = s.params;
|
|
1421
1421
|
let n = e.closest(`.${a.slideClass}, swiper-slide`);
|
|
1422
1422
|
!n && s.isElement && t && t.length > 1 && t.includes(e) && [...t.slice(t.indexOf(e) + 1, t.length)].forEach((o) => {
|
|
@@ -1438,7 +1438,7 @@ function $s(e, t) {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
a.slideToClickedSlide && s.clickedIndex !== void 0 && s.clickedIndex !== s.activeIndex && s.slideToClickedSlide();
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1441
|
+
function $s(e) {
|
|
1442
1442
|
const t = this;
|
|
1443
1443
|
if (typeof e > "u") {
|
|
1444
1444
|
const f = t.rtlTranslate ? -1 : 1;
|
|
@@ -1489,65 +1489,65 @@ function Bs() {
|
|
|
1489
1489
|
typeof E == "string" && E.indexOf("%") >= 0 ? E = parseFloat(E.replace("%", "")) / 100 * p : typeof E == "string" && (E = parseFloat(E)), e.virtualSize = -E - g - v, m.forEach((b) => {
|
|
1490
1490
|
i ? b.style.marginLeft = "" : b.style.marginRight = "", b.style.marginBottom = "", b.style.marginTop = "";
|
|
1491
1491
|
}), s.centeredSlides && s.cssMode && (fe(a, "--swiper-centered-offset-before", ""), fe(a, "--swiper-centered-offset-after", "")), s.cssMode && (fe(a, "--swiper-slides-offset-before", `${g}px`), fe(a, "--swiper-slides-offset-after", `${v}px`));
|
|
1492
|
-
const
|
|
1493
|
-
|
|
1492
|
+
const w = s.grid && s.grid.rows > 1 && e.grid;
|
|
1493
|
+
w ? e.grid.initSlides(m) : e.grid && e.grid.unsetSlides();
|
|
1494
1494
|
let _ = 0;
|
|
1495
1495
|
const P = s.slidesPerView === "auto" && s.breakpoints && Object.keys(s.breakpoints).filter((b) => typeof s.breakpoints[b]?.slidesPerView < "u").length > 0;
|
|
1496
1496
|
for (let b = 0; b < f; b += 1) {
|
|
1497
1497
|
_ = 0;
|
|
1498
1498
|
const M = m[b];
|
|
1499
|
-
if (!(M && (
|
|
1499
|
+
if (!(M && (w && e.grid.updateSlide(b, M, m), ce(M, "display") === "none"))) {
|
|
1500
1500
|
if (o && s.slidesPerView === "auto")
|
|
1501
1501
|
s.virtual?.slidesPerViewAutoSlideSize && (_ = s.virtual.slidesPerViewAutoSlideSize), _ && M && (s.roundLengths && (_ = Math.floor(_)), M.style[e.getDirectionLabel("width")] = `${_}px`);
|
|
1502
1502
|
else if (s.slidesPerView === "auto") {
|
|
1503
1503
|
P && (M.style[e.getDirectionLabel("width")] = "");
|
|
1504
|
-
const C = getComputedStyle(M), x = M.style.transform,
|
|
1505
|
-
if (x && (M.style.transform = "none"),
|
|
1504
|
+
const C = getComputedStyle(M), x = M.style.transform, R = M.style.webkitTransform;
|
|
1505
|
+
if (x && (M.style.transform = "none"), R && (M.style.webkitTransform = "none"), s.roundLengths)
|
|
1506
1506
|
_ = e.isHorizontal() ? Ze(M, "width") : Ze(M, "height");
|
|
1507
1507
|
else {
|
|
1508
|
-
const L = t(C, "width"), N = t(C, "padding-left"),
|
|
1509
|
-
if (
|
|
1508
|
+
const L = t(C, "width"), N = t(C, "padding-left"), k = t(C, "padding-right"), z = t(C, "margin-left"), V = t(C, "margin-right"), $ = C.getPropertyValue("box-sizing");
|
|
1509
|
+
if ($ && $ === "border-box")
|
|
1510
1510
|
_ = L + z + V;
|
|
1511
1511
|
else {
|
|
1512
1512
|
const { clientWidth: Y, offsetWidth: q } = M;
|
|
1513
|
-
_ = L + N +
|
|
1513
|
+
_ = L + N + k + z + V + (q - Y);
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
|
-
x && (M.style.transform = x),
|
|
1516
|
+
x && (M.style.transform = x), R && (M.style.webkitTransform = R), s.roundLengths && (_ = Math.floor(_));
|
|
1517
1517
|
} else
|
|
1518
1518
|
_ = (p - (s.slidesPerView - 1) * E) / s.slidesPerView, s.roundLengths && (_ = Math.floor(_)), M && (M.style[e.getDirectionLabel("width")] = `${_}px`);
|
|
1519
1519
|
M && (M.swiperSlideSize = _), d.push(_), s.centeredSlides ? (y = y + _ / 2 + I / 2 + E, I === 0 && b !== 0 && (y = y - p / 2 - E), b === 0 && (y = y - p / 2 - E), Math.abs(y) < 1 / 1e3 && (y = 0), s.roundLengths && (y = Math.floor(y)), A % s.slidesPerGroup === 0 && c.push(y), T.push(y)) : (s.roundLengths && (y = Math.floor(y)), (A - Math.min(e.params.slidesPerGroupSkip, A)) % e.params.slidesPerGroup === 0 && c.push(y), T.push(y), y = y + _ + E), e.virtualSize += _ + E, I = _, A += 1;
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
|
-
if (e.virtualSize = Math.max(e.virtualSize, p) + v, i && u && (s.effect === "slide" || s.effect === "coverflow") && (a.style.width = `${e.virtualSize + E}px`), s.setWrapperSize && (a.style[e.getDirectionLabel("width")] = `${e.virtualSize + E}px`),
|
|
1522
|
+
if (e.virtualSize = Math.max(e.virtualSize, p) + v, i && u && (s.effect === "slide" || s.effect === "coverflow") && (a.style.width = `${e.virtualSize + E}px`), s.setWrapperSize && (a.style[e.getDirectionLabel("width")] = `${e.virtualSize + E}px`), w && e.grid.updateWrapperSize(_, c), !s.centeredSlides) {
|
|
1523
1523
|
const b = s.slidesPerView !== "auto" && s.slidesPerView % 1 !== 0, M = s.snapToSlideEdge && !s.loop && (s.slidesPerView === "auto" || b);
|
|
1524
1524
|
let C = c.length;
|
|
1525
1525
|
if (M) {
|
|
1526
|
-
let
|
|
1526
|
+
let R;
|
|
1527
1527
|
if (s.slidesPerView === "auto") {
|
|
1528
|
-
|
|
1528
|
+
R = 1;
|
|
1529
1529
|
let L = 0;
|
|
1530
1530
|
for (let N = d.length - 1; N >= 0 && (L += d[N] + (N < d.length - 1 ? E : 0), L <= p); N -= 1)
|
|
1531
|
-
|
|
1531
|
+
R = d.length - N;
|
|
1532
1532
|
} else
|
|
1533
|
-
|
|
1534
|
-
C = Math.max(f -
|
|
1533
|
+
R = Math.floor(s.slidesPerView);
|
|
1534
|
+
C = Math.max(f - R, 0);
|
|
1535
1535
|
}
|
|
1536
1536
|
const x = [];
|
|
1537
|
-
for (let
|
|
1538
|
-
let L = c[
|
|
1539
|
-
s.roundLengths && (L = Math.floor(L)), M ?
|
|
1537
|
+
for (let R = 0; R < c.length; R += 1) {
|
|
1538
|
+
let L = c[R];
|
|
1539
|
+
s.roundLengths && (L = Math.floor(L)), M ? R <= C && x.push(L) : c[R] <= e.virtualSize - p && x.push(L);
|
|
1540
1540
|
}
|
|
1541
1541
|
c = x, Math.floor(e.virtualSize - p) - Math.floor(c[c.length - 1]) > 1 && (M || c.push(e.virtualSize - p));
|
|
1542
1542
|
}
|
|
1543
1543
|
if (o && s.loop) {
|
|
1544
1544
|
const b = d[0] + E, M = e.virtual.slidesBefore ?? 0, C = e.virtual.slidesAfter ?? 0, x = M + C;
|
|
1545
1545
|
if (s.slidesPerGroup > 1) {
|
|
1546
|
-
const
|
|
1547
|
-
for (let N = 0; N <
|
|
1546
|
+
const R = Math.ceil(x / s.slidesPerGroup), L = b * s.slidesPerGroup;
|
|
1547
|
+
for (let N = 0; N < R; N += 1)
|
|
1548
1548
|
c.push(c[c.length - 1] + L);
|
|
1549
1549
|
}
|
|
1550
|
-
for (let
|
|
1550
|
+
for (let R = 0; R < x; R += 1)
|
|
1551
1551
|
s.slidesPerGroup === 1 && c.push(c[c.length - 1] + b), T.push(T[T.length - 1] + b), e.virtualSize += b;
|
|
1552
1552
|
}
|
|
1553
1553
|
if (c.length === 0 && (c = [0]), E !== 0) {
|
|
@@ -1641,10 +1641,10 @@ var Ys = {
|
|
|
1641
1641
|
updateAutoHeight: zs,
|
|
1642
1642
|
updateSlidesOffset: Vs,
|
|
1643
1643
|
updateSlidesProgress: Ws,
|
|
1644
|
-
updateProgress:
|
|
1644
|
+
updateProgress: $s,
|
|
1645
1645
|
updateSlidesClasses: Hs,
|
|
1646
1646
|
updateActiveIndex: Ns,
|
|
1647
|
-
updateClickedSlide:
|
|
1647
|
+
updateClickedSlide: ks
|
|
1648
1648
|
};
|
|
1649
1649
|
const Fs = {
|
|
1650
1650
|
eventsEmitter: Ut,
|
|
@@ -2066,52 +2066,52 @@ const Us = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2066
2066
|
const { slidesPerGroup: S, centeredSlides: h, slidesPerView: p, loop: E, initialSlide: y } = e.params;
|
|
2067
2067
|
if (g && !E && (y ?? 0) > 0)
|
|
2068
2068
|
return;
|
|
2069
|
-
const { addSlidesBefore: I, addSlidesAfter: A, slidesPerViewAutoSlideSize:
|
|
2069
|
+
const { addSlidesBefore: I, addSlidesAfter: A, slidesPerViewAutoSlideSize: w } = i(), { from: _, to: P, slides: b, slidesGrid: M, offset: C } = e.virtual;
|
|
2070
2070
|
e.params.cssMode || e.updateActiveIndex();
|
|
2071
2071
|
const x = typeof v > "u" ? e.activeIndex || 0 : v;
|
|
2072
|
-
let
|
|
2073
|
-
e.rtlTranslate ?
|
|
2072
|
+
let R;
|
|
2073
|
+
e.rtlTranslate ? R = "right" : R = e.isHorizontal() ? "left" : "top";
|
|
2074
2074
|
let L;
|
|
2075
2075
|
if (p === "auto")
|
|
2076
|
-
if (
|
|
2076
|
+
if (w) {
|
|
2077
2077
|
let X = e.size;
|
|
2078
|
-
X || (X = e.isHorizontal() ? e.el.getBoundingClientRect().width : e.el.getBoundingClientRect().height), L = Math.max(1, Math.ceil(X /
|
|
2078
|
+
X || (X = e.isHorizontal() ? e.el.getBoundingClientRect().width : e.el.getBoundingClientRect().height), L = Math.max(1, Math.ceil(X / w));
|
|
2079
2079
|
} else
|
|
2080
2080
|
L = 1;
|
|
2081
2081
|
else
|
|
2082
2082
|
L = p ?? 1;
|
|
2083
2083
|
const N = S ?? 1;
|
|
2084
|
-
let
|
|
2085
|
-
h ? (
|
|
2086
|
-
let V = x - z,
|
|
2087
|
-
E || (V = Math.max(V, 0),
|
|
2084
|
+
let k, z;
|
|
2085
|
+
h ? (k = Math.floor(L / 2) + N + A, z = Math.floor(L / 2) + N + I) : (k = L + (N - 1) + A, z = (E ? L : N) + I);
|
|
2086
|
+
let V = x - z, $ = x + k;
|
|
2087
|
+
E || (V = Math.max(V, 0), $ = Math.min($, b.length - 1));
|
|
2088
2088
|
let Y = (e.slidesGrid[V] || 0) - (e.slidesGrid[0] || 0);
|
|
2089
2089
|
E && x >= z ? (V -= z, h || (Y += e.slidesGrid[0])) : E && x < z && (V = -z, h && (Y += e.slidesGrid[0])), Object.assign(e.virtual, {
|
|
2090
2090
|
from: V,
|
|
2091
|
-
to:
|
|
2091
|
+
to: $,
|
|
2092
2092
|
offset: Y,
|
|
2093
2093
|
slidesGrid: e.slidesGrid,
|
|
2094
2094
|
slidesBefore: z,
|
|
2095
|
-
slidesAfter:
|
|
2095
|
+
slidesAfter: k
|
|
2096
2096
|
});
|
|
2097
2097
|
function q() {
|
|
2098
2098
|
e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), a("virtualUpdate");
|
|
2099
2099
|
}
|
|
2100
|
-
if (_ === V && P ===
|
|
2100
|
+
if (_ === V && P === $ && !l) {
|
|
2101
2101
|
e.slidesGrid !== M && Y !== C && e.slides.forEach((X) => {
|
|
2102
|
-
X.style.setProperty(
|
|
2102
|
+
X.style.setProperty(R, `${Y - Math.abs(e.cssOverflowAdjustment())}px`);
|
|
2103
2103
|
}), e.updateProgress(), a("virtualUpdate");
|
|
2104
2104
|
return;
|
|
2105
2105
|
}
|
|
2106
2106
|
const O = i();
|
|
2107
2107
|
if (O.renderExternal) {
|
|
2108
2108
|
const X = [];
|
|
2109
|
-
for (let j = V; j <=
|
|
2109
|
+
for (let j = V; j <= $; j += 1)
|
|
2110
2110
|
X.push(b[j]);
|
|
2111
2111
|
O.renderExternal.call(e, {
|
|
2112
2112
|
offset: Y,
|
|
2113
2113
|
from: V,
|
|
2114
|
-
to:
|
|
2114
|
+
to: $,
|
|
2115
2115
|
slides: X
|
|
2116
2116
|
}), O.renderExternalUpdate ? q() : a("virtualUpdate");
|
|
2117
2117
|
return;
|
|
@@ -2126,7 +2126,7 @@ const Us = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2126
2126
|
});
|
|
2127
2127
|
else
|
|
2128
2128
|
for (let X = _; X <= P; X += 1)
|
|
2129
|
-
if (X < V || X >
|
|
2129
|
+
if (X < V || X > $) {
|
|
2130
2130
|
const j = F(X);
|
|
2131
2131
|
e.slides.filter((J) => J.matches(`.${e.params.slideClass}[data-swiper-slide-index="${j}"], swiper-slide[data-swiper-slide-index="${j}"]`)).forEach((J) => {
|
|
2132
2132
|
J.remove();
|
|
@@ -2134,7 +2134,7 @@ const Us = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2134
2134
|
}
|
|
2135
2135
|
const K = E ? -b.length : 0, ie = E ? b.length * 2 : b.length;
|
|
2136
2136
|
for (let X = K; X < ie; X += 1)
|
|
2137
|
-
if (X >= V && X <=
|
|
2137
|
+
if (X >= V && X <= $) {
|
|
2138
2138
|
const j = F(X);
|
|
2139
2139
|
typeof P > "u" || l ? H.push(j) : (X > P && H.push(j), X < _ && G.push(j));
|
|
2140
2140
|
}
|
|
@@ -2150,7 +2150,7 @@ const Us = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2150
2150
|
e.slidesEl.prepend(r(b[X], X));
|
|
2151
2151
|
});
|
|
2152
2152
|
Q(e.slidesEl, ".swiper-slide, swiper-slide").forEach((X) => {
|
|
2153
|
-
X.style.setProperty(
|
|
2153
|
+
X.style.setProperty(R, `${Y - Math.abs(e.cssOverflowAdjustment())}px`);
|
|
2154
2154
|
}), q();
|
|
2155
2155
|
}
|
|
2156
2156
|
function f(l) {
|
|
@@ -2255,18 +2255,18 @@ const Us = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2255
2255
|
let I = !1;
|
|
2256
2256
|
if (ue(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && ue(e.el, `.${e.params.slideActiveClass}`).length === 0)
|
|
2257
2257
|
return;
|
|
2258
|
-
const A = e.el,
|
|
2258
|
+
const A = e.el, w = A.clientWidth, _ = A.clientHeight, P = window.innerWidth, b = window.innerHeight, M = ze(A);
|
|
2259
2259
|
m && (M.left -= A.scrollLeft);
|
|
2260
2260
|
const C = [
|
|
2261
2261
|
[M.left, M.top],
|
|
2262
|
-
[M.left +
|
|
2262
|
+
[M.left + w, M.top],
|
|
2263
2263
|
[M.left, M.top + _],
|
|
2264
|
-
[M.left +
|
|
2264
|
+
[M.left + w, M.top + _]
|
|
2265
2265
|
];
|
|
2266
2266
|
for (let x = 0; x < C.length; x += 1) {
|
|
2267
|
-
const
|
|
2268
|
-
if (
|
|
2269
|
-
if (
|
|
2267
|
+
const R = C[x];
|
|
2268
|
+
if (R[0] >= 0 && R[0] <= P && R[1] >= 0 && R[1] <= b) {
|
|
2269
|
+
if (R[0] === 0 && R[1] === 0)
|
|
2270
2270
|
continue;
|
|
2271
2271
|
I = !0;
|
|
2272
2272
|
}
|
|
@@ -2313,9 +2313,9 @@ const Us = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2313
2313
|
}
|
|
2314
2314
|
function f(p) {
|
|
2315
2315
|
const A = p;
|
|
2316
|
-
let
|
|
2317
|
-
return A.detail !== void 0 && (_ = A.detail), A.wheelDelta !== void 0 && (_ = -A.wheelDelta / 120), A.wheelDeltaY !== void 0 && (_ = -A.wheelDeltaY / 120), A.wheelDeltaX !== void 0 && (
|
|
2318
|
-
spinX:
|
|
2316
|
+
let w = 0, _ = 0, P = 0, b = 0;
|
|
2317
|
+
return A.detail !== void 0 && (_ = A.detail), A.wheelDelta !== void 0 && (_ = -A.wheelDelta / 120), A.wheelDeltaY !== void 0 && (_ = -A.wheelDeltaY / 120), A.wheelDeltaX !== void 0 && (w = -A.wheelDeltaX / 120), A.axis !== void 0 && A.HORIZONTAL_AXIS !== void 0 && A.axis === A.HORIZONTAL_AXIS && (w = _, _ = 0), P = w * 10, b = _ * 10, A.deltaY !== void 0 && (b = A.deltaY), A.deltaX !== void 0 && (P = A.deltaX), A.shiftKey && !P && (P = b, b = 0), (P || b) && A.deltaMode && (A.deltaMode === 1 ? (P *= 40, b *= 40) : (P *= 800, b *= 800)), P && !w && (w = P < 1 ? -1 : 1), b && !_ && (_ = b < 1 ? -1 : 1), {
|
|
2318
|
+
spinX: w,
|
|
2319
2319
|
spinY: _,
|
|
2320
2320
|
pixelX: P,
|
|
2321
2321
|
pixelY: b
|
|
@@ -2350,8 +2350,8 @@ const Us = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2350
2350
|
e.params.cssMode && E.preventDefault();
|
|
2351
2351
|
let A = e.el;
|
|
2352
2352
|
I.eventsTarget !== "container" && (A = document.querySelector(I.eventsTarget));
|
|
2353
|
-
const
|
|
2354
|
-
if (!o && !
|
|
2353
|
+
const w = A && A.contains(E.target);
|
|
2354
|
+
if (!o && !w && !I.releaseOnEdges)
|
|
2355
2355
|
return !0;
|
|
2356
2356
|
let _ = 0;
|
|
2357
2357
|
const P = e.rtlTranslate ? -1 : 1, b = f(E);
|
|
@@ -2381,28 +2381,28 @@ const Us = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2381
2381
|
raw: p
|
|
2382
2382
|
};
|
|
2383
2383
|
r.length >= 2 && r.shift();
|
|
2384
|
-
const
|
|
2385
|
-
if (r.push(x),
|
|
2384
|
+
const R = r.length ? r[r.length - 1] : void 0;
|
|
2385
|
+
if (r.push(x), R ? (x.direction !== R.direction || x.delta > R.delta || x.time > R.time + 150) && d(x) : d(x), l(x))
|
|
2386
2386
|
return !0;
|
|
2387
2387
|
} else {
|
|
2388
2388
|
const x = {
|
|
2389
2389
|
time: ae(),
|
|
2390
2390
|
delta: Math.abs(_),
|
|
2391
2391
|
direction: Math.sign(_)
|
|
2392
|
-
},
|
|
2393
|
-
if (!
|
|
2392
|
+
}, R = u && x.time < u.time + 500 && x.delta <= u.delta && x.direction === u.direction;
|
|
2393
|
+
if (!R) {
|
|
2394
2394
|
u = void 0;
|
|
2395
2395
|
let L = e.getTranslate() + _ * (I.sensitivity ?? 1);
|
|
2396
|
-
const N = e.isBeginning,
|
|
2397
|
-
if (L >= e.minTranslate() && (L = e.minTranslate()), L <= e.maxTranslate() && (L = e.maxTranslate()), e.setTransition(0), e.setTranslate(L), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses(), (!N && e.isBeginning ||
|
|
2396
|
+
const N = e.isBeginning, k = e.isEnd;
|
|
2397
|
+
if (L >= e.minTranslate() && (L = e.minTranslate()), L <= e.maxTranslate() && (L = e.maxTranslate()), e.setTransition(0), e.setTranslate(L), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses(), (!N && e.isBeginning || !k && e.isEnd) && e.updateSlidesClasses(), e.params.loop && e.loopFix({
|
|
2398
2398
|
direction: x.direction < 0 ? "next" : "prev",
|
|
2399
2399
|
byMousewheel: !0
|
|
2400
2400
|
}), C?.sticky) {
|
|
2401
2401
|
clearTimeout(n), n = void 0, r.length >= 15 && r.shift();
|
|
2402
|
-
const V = r.length ? r[r.length - 1] : void 0,
|
|
2402
|
+
const V = r.length ? r[r.length - 1] : void 0, $ = r[0];
|
|
2403
2403
|
if (r.push(x), V && (x.delta > V.delta || x.direction !== V.direction))
|
|
2404
2404
|
r.splice(0);
|
|
2405
|
-
else if (r.length >= 15 &&
|
|
2405
|
+
else if (r.length >= 15 && $ && x.time - $.time < 500 && $.delta - x.delta >= 1 && x.delta <= 6) {
|
|
2406
2406
|
const Y = _ > 0 ? 0.8 : 0.2;
|
|
2407
2407
|
u = x, r.splice(0), n = Se(() => {
|
|
2408
2408
|
e.destroyed || !e.params || e.slideToClosest(e.params.speed, !0, void 0, Y);
|
|
@@ -2415,7 +2415,7 @@ const Us = ({ swiper: e, extendParams: t, on: s, emit: a }) => {
|
|
|
2415
2415
|
u = x, r.splice(0), e.slideToClosest(e.params.speed, !0, void 0, Y);
|
|
2416
2416
|
}, 500));
|
|
2417
2417
|
}
|
|
2418
|
-
|
|
2418
|
+
R || a("scroll", E);
|
|
2419
2419
|
const z = e.params.autoplay;
|
|
2420
2420
|
if (e.params.autoplay && z?.disableOnInteraction && e.autoplay.stop(), I.releaseOnEdges && (L === e.minTranslate() || L === e.maxTranslate()))
|
|
2421
2421
|
return !0;
|
|
@@ -2549,13 +2549,13 @@ const dt = '<svg class="swiper-navigation-icon" width="11" height="20" viewBox="
|
|
|
2549
2549
|
let I = E.includes(y) || p.includes(y);
|
|
2550
2550
|
if (e.isElement && !I) {
|
|
2551
2551
|
const A = g.composedPath ? g.composedPath() : [];
|
|
2552
|
-
A.length && (I = A.find((
|
|
2552
|
+
A.length && (I = A.find((w) => p.includes(w) || E.includes(w)));
|
|
2553
2553
|
}
|
|
2554
2554
|
if (v.hideOnClick && !I) {
|
|
2555
2555
|
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === y || e.pagination.el.contains(y)))
|
|
2556
2556
|
return;
|
|
2557
2557
|
let A;
|
|
2558
|
-
p.length ? A = p[0].classList.contains(v.hiddenClass) : E.length && (A = E[0].classList.contains(v.hiddenClass)), a(A === !0 ? "navigationShow" : "navigationHide"), [...p, ...E].filter((
|
|
2558
|
+
p.length ? A = p[0].classList.contains(v.hiddenClass) : E.length && (A = E[0].classList.contains(v.hiddenClass)), a(A === !0 ? "navigationShow" : "navigationHide"), [...p, ...E].filter((w) => !!w).forEach((w) => w.classList.toggle(v.hiddenClass));
|
|
2559
2559
|
}
|
|
2560
2560
|
});
|
|
2561
2561
|
const T = () => {
|
|
@@ -2658,7 +2658,7 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
2658
2658
|
return;
|
|
2659
2659
|
const E = U(e.pagination.el);
|
|
2660
2660
|
let y, I;
|
|
2661
|
-
const A = ct(e),
|
|
2661
|
+
const A = ct(e), w = e.params.loop ? Math.ceil(A / (e.params.slidesPerGroup ?? 1)) : e.snapGrid.length;
|
|
2662
2662
|
if (e.params.loop ? (I = e.previousRealIndex || 0, y = (e.params.slidesPerGroup ?? 1) > 1 ? Math.floor(e.realIndex / (e.params.slidesPerGroup ?? 1)) : e.realIndex) : typeof e.snapIndex < "u" ? (y = e.snapIndex, I = e.previousSnapIndex) : (I = e.previousIndex || 0, y = e.activeIndex || 0), p.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
|
|
2663
2663
|
const _ = e.pagination.bullets;
|
|
2664
2664
|
let P = 0, b = 0, M = 0;
|
|
@@ -2677,7 +2677,7 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
2677
2677
|
"-prev",
|
|
2678
2678
|
"-prev-prev",
|
|
2679
2679
|
"-main"
|
|
2680
|
-
].map((
|
|
2680
|
+
].map((R) => `${p.bulletActiveClass}${R}`).flatMap((R) => typeof R == "string" && R.includes(" ") ? R.split(" ") : [R]);
|
|
2681
2681
|
C.classList.remove(...x);
|
|
2682
2682
|
}), E.length > 1)
|
|
2683
2683
|
_.forEach((C) => {
|
|
@@ -2686,17 +2686,17 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
2686
2686
|
});
|
|
2687
2687
|
else {
|
|
2688
2688
|
const C = _[y];
|
|
2689
|
-
if (C && C.classList.add(...p.bulletActiveClass.split(" ")), e.isElement && _.forEach((x,
|
|
2690
|
-
x.setAttribute("part",
|
|
2689
|
+
if (C && C.classList.add(...p.bulletActiveClass.split(" ")), e.isElement && _.forEach((x, R) => {
|
|
2690
|
+
x.setAttribute("part", R === y ? "bullet-active" : "bullet");
|
|
2691
2691
|
}), p.dynamicBullets) {
|
|
2692
|
-
const x = _[P],
|
|
2692
|
+
const x = _[P], R = _[b];
|
|
2693
2693
|
for (let L = P; L <= b; L += 1)
|
|
2694
2694
|
_[L] && _[L].classList.add(...`${p.bulletActiveClass}-main`.split(" "));
|
|
2695
|
-
m(x, "prev"), m(
|
|
2695
|
+
m(x, "prev"), m(R, "next");
|
|
2696
2696
|
}
|
|
2697
2697
|
}
|
|
2698
2698
|
if (p.dynamicBullets) {
|
|
2699
|
-
const C = Math.min(_.length, p.dynamicMainBullets + 4), x = ((i ?? 0) * C - (i ?? 0)) / 2 - M * (i ?? 0),
|
|
2699
|
+
const C = Math.min(_.length, p.dynamicMainBullets + 4), x = ((i ?? 0) * C - (i ?? 0)) / 2 - M * (i ?? 0), R = h ? "right" : "left", L = e.isHorizontal() ? R : "top";
|
|
2700
2700
|
_.forEach((N) => {
|
|
2701
2701
|
N.style[L] = `${x}px`;
|
|
2702
2702
|
});
|
|
@@ -2706,17 +2706,17 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
2706
2706
|
if (p.type === "fraction" && (_.querySelectorAll(oe(p.currentClass)).forEach((b) => {
|
|
2707
2707
|
b.textContent = String(p.formatFractionCurrent(y + 1));
|
|
2708
2708
|
}), _.querySelectorAll(oe(p.totalClass)).forEach((b) => {
|
|
2709
|
-
b.textContent = String(p.formatFractionTotal(
|
|
2709
|
+
b.textContent = String(p.formatFractionTotal(w));
|
|
2710
2710
|
})), p.type === "progressbar") {
|
|
2711
2711
|
let b;
|
|
2712
2712
|
p.progressbarOpposite ? b = e.isHorizontal() ? "vertical" : "horizontal" : b = e.isHorizontal() ? "horizontal" : "vertical";
|
|
2713
|
-
const M = (y + 1) /
|
|
2713
|
+
const M = (y + 1) / w;
|
|
2714
2714
|
let C = 1, x = 1;
|
|
2715
|
-
b === "horizontal" ? C = M : x = M, _.querySelectorAll(oe(p.progressbarFillClass)).forEach((
|
|
2716
|
-
|
|
2715
|
+
b === "horizontal" ? C = M : x = M, _.querySelectorAll(oe(p.progressbarFillClass)).forEach((R) => {
|
|
2716
|
+
R.style.transform = `translate3d(0,0,0) scaleX(${C}) scaleY(${x})`, R.style.transitionDuration = `${e.params.speed}ms`;
|
|
2717
2717
|
});
|
|
2718
2718
|
}
|
|
2719
|
-
p.type === "custom" && p.renderCustom ? (le(_, p.renderCustom(e, y + 1,
|
|
2719
|
+
p.type === "custom" && p.renderCustom ? (le(_, p.renderCustom(e, y + 1, w)), P === 0 && a("paginationRender", _)) : (P === 0 && a("paginationRender", _), a("paginationUpdate", _)), e.params.watchOverflow && e.enabled && _.classList[e.isLocked ? "add" : "remove"](p.lockClass);
|
|
2720
2720
|
});
|
|
2721
2721
|
}
|
|
2722
2722
|
function d() {
|
|
@@ -2793,7 +2793,7 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
2793
2793
|
if (e.navigation && (e.navigation.nextEl && E === e.navigation.nextEl || e.navigation.prevEl && E === e.navigation.prevEl))
|
|
2794
2794
|
return;
|
|
2795
2795
|
const A = y[0].classList.contains(I.hiddenClass);
|
|
2796
|
-
a(A === !0 ? "paginationShow" : "paginationHide"), y.forEach((
|
|
2796
|
+
a(A === !0 ? "paginationShow" : "paginationHide"), y.forEach((w) => w.classList.toggle(I.hiddenClass));
|
|
2797
2797
|
}
|
|
2798
2798
|
});
|
|
2799
2799
|
const v = () => {
|
|
@@ -2841,10 +2841,10 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
2841
2841
|
const b = c();
|
|
2842
2842
|
if (!b.el || !e.scrollbar.el)
|
|
2843
2843
|
return;
|
|
2844
|
-
const { scrollbar: M, rtlTranslate: C } = e, { dragEl: x, el:
|
|
2845
|
-
let N = r,
|
|
2846
|
-
C ? (
|
|
2847
|
-
|
|
2844
|
+
const { scrollbar: M, rtlTranslate: C } = e, { dragEl: x, el: R } = M, L = e.params.loop ? e.progressLoop ?? 0 : e.progress;
|
|
2845
|
+
let N = r, k = (m - r) * L;
|
|
2846
|
+
C ? (k = -k, k > 0 ? (N = r - k, k = 0) : -k + r > m && (N = m + k)) : k < 0 ? (N = r + k, k = 0) : k + r > m && (N = m - k), e.isHorizontal() ? (x.style.transform = `translate3d(${k}px, 0, 0)`, x.style.width = `${N}px`) : (x.style.transform = `translate3d(0px, ${k}px, 0)`, x.style.height = `${N}px`), b.hide && (i && clearTimeout(i), R.style.opacity = "1", i = setTimeout(() => {
|
|
2847
|
+
R.style.opacity = "0", R.style.transitionDuration = "400ms";
|
|
2848
2848
|
}, 1e3));
|
|
2849
2849
|
}
|
|
2850
2850
|
function d(b) {
|
|
@@ -2862,31 +2862,31 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
2862
2862
|
}
|
|
2863
2863
|
function v(b) {
|
|
2864
2864
|
const { scrollbar: M, rtlTranslate: C } = e, { el: x } = M;
|
|
2865
|
-
let
|
|
2866
|
-
|
|
2867
|
-
const L = e.minTranslate() + (e.maxTranslate() - e.minTranslate()) *
|
|
2865
|
+
let R;
|
|
2866
|
+
R = (g(b) - ze(x)[e.isHorizontal() ? "left" : "top"] - (o !== null ? o : r / 2)) / (m - r), R = Math.max(Math.min(R, 1), 0), C && (R = 1 - R);
|
|
2867
|
+
const L = e.minTranslate() + (e.maxTranslate() - e.minTranslate()) * R;
|
|
2868
2868
|
e.updateProgress(L), e.setTranslate(L), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
2869
2869
|
}
|
|
2870
2870
|
function S(b) {
|
|
2871
|
-
const M = c(), { scrollbar: C, wrapperEl: x } = e, { el:
|
|
2872
|
-
n = !0, o = b.target === L ? g(b) - b.target.getBoundingClientRect()[e.isHorizontal() ? "left" : "top"] : null, b.preventDefault(), b.stopPropagation(), x.style.transitionDuration = "100ms", L.style.transitionDuration = "100ms", v(b), u && clearTimeout(u),
|
|
2871
|
+
const M = c(), { scrollbar: C, wrapperEl: x } = e, { el: R, dragEl: L } = C;
|
|
2872
|
+
n = !0, o = b.target === L ? g(b) - b.target.getBoundingClientRect()[e.isHorizontal() ? "left" : "top"] : null, b.preventDefault(), b.stopPropagation(), x.style.transitionDuration = "100ms", L.style.transitionDuration = "100ms", v(b), u && clearTimeout(u), R.style.transitionDuration = "0ms", M.hide && (R.style.opacity = "1"), e.params.cssMode && (e.wrapperEl.style.scrollSnapType = "none"), a("scrollbarDragStart", b);
|
|
2873
2873
|
}
|
|
2874
2874
|
function h(b) {
|
|
2875
|
-
const { scrollbar: M, wrapperEl: C } = e, { el: x, dragEl:
|
|
2876
|
-
n && (b.cancelable && b.preventDefault(), v(b), C.style.transitionDuration = "0ms", x.style.transitionDuration = "0ms",
|
|
2875
|
+
const { scrollbar: M, wrapperEl: C } = e, { el: x, dragEl: R } = M;
|
|
2876
|
+
n && (b.cancelable && b.preventDefault(), v(b), C.style.transitionDuration = "0ms", x.style.transitionDuration = "0ms", R.style.transitionDuration = "0ms", a("scrollbarDragMove", b));
|
|
2877
2877
|
}
|
|
2878
2878
|
function p(b) {
|
|
2879
|
-
const M = c(), { scrollbar: C, wrapperEl: x } = e, { el:
|
|
2879
|
+
const M = c(), { scrollbar: C, wrapperEl: x } = e, { el: R } = C;
|
|
2880
2880
|
n && (n = !1, e.params.cssMode && (e.wrapperEl.style.scrollSnapType = "", x.style.transitionDuration = ""), M.hide && (u && clearTimeout(u), u = Se(() => {
|
|
2881
|
-
|
|
2881
|
+
R.style.opacity = "0", R.style.transitionDuration = "400ms";
|
|
2882
2882
|
}, 1e3)), a("scrollbarDragEnd", b), M.snapOnRelease && e.slideToClosest());
|
|
2883
2883
|
}
|
|
2884
2884
|
function E(b) {
|
|
2885
2885
|
const { scrollbar: M, params: C } = e, x = M.el;
|
|
2886
2886
|
if (!x)
|
|
2887
2887
|
return;
|
|
2888
|
-
const
|
|
2889
|
-
x[N]("pointerdown", S,
|
|
2888
|
+
const R = C.passiveListeners ? { passive: !1, capture: !1 } : !1, L = C.passiveListeners ? { passive: !0, capture: !1 } : !1, N = b === "on" ? "addEventListener" : "removeEventListener";
|
|
2889
|
+
x[N]("pointerdown", S, R), document[N]("pointermove", h, R), document[N]("pointerup", p, L);
|
|
2890
2890
|
}
|
|
2891
2891
|
function y() {
|
|
2892
2892
|
!c().el || !e.scrollbar.el || E("on");
|
|
@@ -2906,15 +2906,15 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
2906
2906
|
return;
|
|
2907
2907
|
} else x || (x = C.el);
|
|
2908
2908
|
e.params.uniqueNavElements && typeof C.el == "string" && x.length > 1 && M.querySelectorAll(C.el).length === 1 && (x = M.querySelector(C.el)), x.length > 0 && (x = x[0]);
|
|
2909
|
-
const
|
|
2910
|
-
|
|
2909
|
+
const R = x;
|
|
2910
|
+
R.classList.add(e.isHorizontal() ? C.horizontalClass : C.verticalClass);
|
|
2911
2911
|
let L = null;
|
|
2912
|
-
|
|
2913
|
-
el:
|
|
2912
|
+
R && (L = R.querySelector(oe(C.dragClass)), L || (L = ne("div", C.dragClass), R.append(L))), Object.assign(b, {
|
|
2913
|
+
el: R,
|
|
2914
2914
|
dragEl: L
|
|
2915
|
-
}), C.draggable && y(),
|
|
2915
|
+
}), C.draggable && y(), R && R.classList[e.enabled ? "remove" : "add"](...de(C.lockClass));
|
|
2916
2916
|
}
|
|
2917
|
-
function
|
|
2917
|
+
function w() {
|
|
2918
2918
|
const b = c(), M = e.scrollbar.el;
|
|
2919
2919
|
M && M.classList.remove(...de(e.isHorizontal() ? b.horizontalClass : b.verticalClass)), I();
|
|
2920
2920
|
}
|
|
@@ -2937,14 +2937,14 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
2937
2937
|
const { el: b } = e.scrollbar;
|
|
2938
2938
|
b && b.classList[e.enabled ? "remove" : "add"](...de(c().lockClass));
|
|
2939
2939
|
}), s("destroy", () => {
|
|
2940
|
-
|
|
2940
|
+
w();
|
|
2941
2941
|
});
|
|
2942
2942
|
const _ = () => {
|
|
2943
2943
|
const b = c();
|
|
2944
2944
|
e.el.classList.remove(...de(b.scrollbarDisabledClass)), e.scrollbar.el && e.scrollbar.el.classList.remove(...de(b.scrollbarDisabledClass)), A(), l(), T();
|
|
2945
2945
|
}, P = () => {
|
|
2946
2946
|
const b = c();
|
|
2947
|
-
e.el.classList.add(...de(b.scrollbarDisabledClass)), e.scrollbar.el && e.scrollbar.el.classList.add(...de(b.scrollbarDisabledClass)),
|
|
2947
|
+
e.el.classList.add(...de(b.scrollbarDisabledClass)), e.scrollbar.el && e.scrollbar.el.classList.add(...de(b.scrollbarDisabledClass)), w();
|
|
2948
2948
|
};
|
|
2949
2949
|
Object.assign(e.scrollbar, {
|
|
2950
2950
|
enable: _,
|
|
@@ -2952,7 +2952,7 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
2952
2952
|
updateSize: l,
|
|
2953
2953
|
setTranslate: T,
|
|
2954
2954
|
init: A,
|
|
2955
|
-
destroy:
|
|
2955
|
+
destroy: w
|
|
2956
2956
|
});
|
|
2957
2957
|
}, ta = ({ swiper: e, extendParams: t, on: s }) => {
|
|
2958
2958
|
t({
|
|
@@ -3129,7 +3129,7 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
3129
3129
|
u = !0;
|
|
3130
3130
|
}
|
|
3131
3131
|
}
|
|
3132
|
-
function
|
|
3132
|
+
function w(O) {
|
|
3133
3133
|
if (!y(O))
|
|
3134
3134
|
return;
|
|
3135
3135
|
const G = n(), H = e.zoom, F = T.findIndex((K) => K.pointerId === O.pointerId);
|
|
@@ -3190,7 +3190,7 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
3190
3190
|
const Z = (F.scale - i) / (d.maxRatio - n().minRatio), { originX: ee, originY: re } = d;
|
|
3191
3191
|
l.currentX = l.touchesCurrent.x - (l.touchesStart.x ?? 0) + j + Z * (l.width - ee * 2), l.currentY = l.touchesCurrent.y - (l.touchesStart.y ?? 0) + J + Z * (l.height - re * 2), l.currentX < l.minX && (l.currentX = l.minX + 1 - (l.minX - l.currentX + 1) ** 0.8), l.currentX > l.maxX && (l.currentX = l.maxX - 1 + (l.currentX - l.maxX + 1) ** 0.8), l.currentY < l.minY && (l.currentY = l.minY + 1 - (l.minY - l.currentY + 1) ** 0.8), l.currentY > l.maxY && (l.currentY = l.maxY - 1 + (l.currentY - l.maxY + 1) ** 0.8), g.prevPositionX || (g.prevPositionX = l.touchesCurrent.x), g.prevPositionY || (g.prevPositionY = l.touchesCurrent.y), g.prevTime || (g.prevTime = Date.now()), g.x = (l.touchesCurrent.x - g.prevPositionX) / (Date.now() - g.prevTime) / 2, g.y = (l.touchesCurrent.y - g.prevPositionY) / (Date.now() - g.prevTime) / 2, Math.abs(l.touchesCurrent.x - g.prevPositionX) < 2 && (g.x = 0), Math.abs(l.touchesCurrent.y - g.prevPositionY) < 2 && (g.y = 0), g.prevPositionX = l.touchesCurrent.x, g.prevPositionY = l.touchesCurrent.y, g.prevTime = Date.now(), d.imageWrapEl.style.transform = `translate3d(${l.currentX}px, ${l.currentY}px,0)`;
|
|
3192
3192
|
}
|
|
3193
|
-
function
|
|
3193
|
+
function R() {
|
|
3194
3194
|
const O = e.zoom;
|
|
3195
3195
|
if (T.length = 0, !d.imageEl)
|
|
3196
3196
|
return;
|
|
@@ -3222,7 +3222,7 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
3222
3222
|
const F = (O.clientX - r.x) * m, K = (O.clientY - r.y) * m, ie = l.width * i, X = l.height * i, j = d.slideWidth, J = d.slideHeight, Z = Math.min(j / 2 - ie / 2, 0), ee = -Z, re = Math.min(J / 2 - X / 2, 0), Ie = -re, he = Math.max(Math.min(l.startX + F, ee), Z), ge = Math.max(Math.min(l.startY + K, Ie), re);
|
|
3223
3223
|
d.imageWrapEl.style.transitionDuration = "0ms", d.imageWrapEl.style.transform = `translate3d(${he}px, ${ge}px, 0)`, r.x = O.clientX, r.y = O.clientY, l.startX = he, l.startY = ge, l.currentX = he, l.currentY = ge;
|
|
3224
3224
|
}
|
|
3225
|
-
function
|
|
3225
|
+
function k(O) {
|
|
3226
3226
|
const G = e.zoom, H = n();
|
|
3227
3227
|
if (!d.slideEl) {
|
|
3228
3228
|
if (O && typeof O != "number" && "target" in O && O.target && (d.slideEl = O.target.closest(`.${e.params.slideClass}, swiper-slide`) ?? void 0), !d.slideEl) {
|
|
@@ -3235,13 +3235,13 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
3235
3235
|
if (!d.imageEl || !d.imageWrapEl || !d.slideEl)
|
|
3236
3236
|
return;
|
|
3237
3237
|
d.maxRatio = h(), e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), d.slideEl.classList.add(`${H.zoomedSlideClass}`);
|
|
3238
|
-
let F, K, ie, X, j, J, Z, ee, re, Ie, he, ge,
|
|
3238
|
+
let F, K, ie, X, j, J, Z, ee, re, Ie, he, ge, we, Re, Ge, Be, He, Ve;
|
|
3239
3239
|
const Ct = O && typeof O != "number";
|
|
3240
3240
|
typeof l.touchesStart.x > "u" && Ct ? (F = O.pageX, K = O.pageY) : (F = l.touchesStart.x, K = l.touchesStart.y);
|
|
3241
3241
|
const We = i, Te = typeof O == "number" ? O : null;
|
|
3242
3242
|
i === 1 && Te && (F = void 0, K = void 0, l.touchesStart.x = void 0, l.touchesStart.y = void 0);
|
|
3243
3243
|
const at = h();
|
|
3244
|
-
G.scale = Te || at, i = Te || at, O && !(i === 1 && Te) ? (He = d.slideEl.offsetWidth, Ve = d.slideEl.offsetHeight, ie = ze(d.slideEl).left + window.scrollX, X = ze(d.slideEl).top + window.scrollY, j = ie + He / 2 - (F ?? 0), J = X + Ve / 2 - (K ?? 0), re = d.imageEl.offsetWidth || d.imageEl.clientWidth, Ie = d.imageEl.offsetHeight || d.imageEl.clientHeight, he = re * G.scale, ge = Ie * G.scale,
|
|
3244
|
+
G.scale = Te || at, i = Te || at, O && !(i === 1 && Te) ? (He = d.slideEl.offsetWidth, Ve = d.slideEl.offsetHeight, ie = ze(d.slideEl).left + window.scrollX, X = ze(d.slideEl).top + window.scrollY, j = ie + He / 2 - (F ?? 0), J = X + Ve / 2 - (K ?? 0), re = d.imageEl.offsetWidth || d.imageEl.clientWidth, Ie = d.imageEl.offsetHeight || d.imageEl.clientHeight, he = re * G.scale, ge = Ie * G.scale, we = Math.min(He / 2 - he / 2, 0), Re = Math.min(Ve / 2 - ge / 2, 0), Ge = -we, Be = -Re, We > 0 && Te && typeof l.currentX == "number" && typeof l.currentY == "number" ? (Z = l.currentX * G.scale / We, ee = l.currentY * G.scale / We) : (Z = j * G.scale, ee = J * G.scale), Z < we && (Z = we), Z > Ge && (Z = Ge), ee < Re && (ee = Re), ee > Be && (ee = Be)) : (Z = 0, ee = 0), Te && G.scale === 1 && (d.originX = 0, d.originY = 0), l.currentX = Z, l.currentY = ee, d.imageWrapEl.style.transitionDuration = "300ms", d.imageWrapEl.style.transform = `translate3d(${Z}px, ${ee}px,0)`, d.imageEl.style.transitionDuration = "300ms", d.imageEl.style.transform = `translate3d(0,0,0) scale(${G.scale})`;
|
|
3245
3245
|
}
|
|
3246
3246
|
function z() {
|
|
3247
3247
|
const O = e.zoom, G = n();
|
|
@@ -3255,9 +3255,9 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
3255
3255
|
}
|
|
3256
3256
|
function V(O) {
|
|
3257
3257
|
const G = e.zoom;
|
|
3258
|
-
G.scale && G.scale !== 1 ? z() :
|
|
3258
|
+
G.scale && G.scale !== 1 ? z() : k(O);
|
|
3259
3259
|
}
|
|
3260
|
-
function
|
|
3260
|
+
function $() {
|
|
3261
3261
|
const O = e.params.passiveListeners ? { passive: !0, capture: !1 } : !1, G = e.params.passiveListeners ? { passive: !1, capture: !0 } : !0;
|
|
3262
3262
|
return { passiveListener: O, activeListenerWithCapture: G };
|
|
3263
3263
|
}
|
|
@@ -3266,8 +3266,8 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
3266
3266
|
if (O.enabled)
|
|
3267
3267
|
return;
|
|
3268
3268
|
O.enabled = !0;
|
|
3269
|
-
const { passiveListener: G, activeListenerWithCapture: H } =
|
|
3270
|
-
e.wrapperEl.addEventListener("pointerdown", A, G), e.wrapperEl.addEventListener("pointermove",
|
|
3269
|
+
const { passiveListener: G, activeListenerWithCapture: H } = $();
|
|
3270
|
+
e.wrapperEl.addEventListener("pointerdown", A, G), e.wrapperEl.addEventListener("pointermove", w, H), ["pointerup", "pointercancel", "pointerout"].forEach((F) => {
|
|
3271
3271
|
e.wrapperEl.addEventListener(F, _, G);
|
|
3272
3272
|
}), e.wrapperEl.addEventListener("pointermove", x, H);
|
|
3273
3273
|
}
|
|
@@ -3276,8 +3276,8 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
3276
3276
|
if (!O.enabled)
|
|
3277
3277
|
return;
|
|
3278
3278
|
O.enabled = !1;
|
|
3279
|
-
const { passiveListener: G, activeListenerWithCapture: H } =
|
|
3280
|
-
e.wrapperEl.removeEventListener("pointerdown", A, G), e.wrapperEl.removeEventListener("pointermove",
|
|
3279
|
+
const { passiveListener: G, activeListenerWithCapture: H } = $();
|
|
3280
|
+
e.wrapperEl.removeEventListener("pointerdown", A, G), e.wrapperEl.removeEventListener("pointermove", w, H), ["pointerup", "pointercancel", "pointerout"].forEach((F) => {
|
|
3281
3281
|
e.wrapperEl.removeEventListener(F, _, G);
|
|
3282
3282
|
}), e.wrapperEl.removeEventListener("pointermove", x, H);
|
|
3283
3283
|
}
|
|
@@ -3288,7 +3288,7 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
3288
3288
|
}), s("touchStart", (O, G) => {
|
|
3289
3289
|
e.zoom.enabled && C(G);
|
|
3290
3290
|
}), s("touchEnd", () => {
|
|
3291
|
-
e.zoom.enabled &&
|
|
3291
|
+
e.zoom.enabled && R();
|
|
3292
3292
|
}), s("doubleTap", (O, G) => {
|
|
3293
3293
|
!e.animating && n().enabled && e.zoom.enabled && n().toggle && V(G);
|
|
3294
3294
|
}), s("transitionEnd", () => {
|
|
@@ -3298,7 +3298,7 @@ const Zs = (e) => !!e.virtual && !!e.params.virtual?.enabled, Qs = (e) => !!e.pa
|
|
|
3298
3298
|
}), Object.assign(e.zoom, {
|
|
3299
3299
|
enable: Y,
|
|
3300
3300
|
disable: q,
|
|
3301
|
-
in:
|
|
3301
|
+
in: k,
|
|
3302
3302
|
out: z,
|
|
3303
3303
|
toggle: V
|
|
3304
3304
|
});
|
|
@@ -3445,13 +3445,13 @@ const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3445
3445
|
return "x".repeat(L).replace(/x/g, N);
|
|
3446
3446
|
}
|
|
3447
3447
|
function f(L) {
|
|
3448
|
-
U(L).forEach((
|
|
3449
|
-
|
|
3448
|
+
U(L).forEach((k) => {
|
|
3449
|
+
k.setAttribute("tabIndex", "0");
|
|
3450
3450
|
});
|
|
3451
3451
|
}
|
|
3452
3452
|
function c(L) {
|
|
3453
|
-
U(L).forEach((
|
|
3454
|
-
|
|
3453
|
+
U(L).forEach((k) => {
|
|
3454
|
+
k.setAttribute("tabIndex", "-1");
|
|
3455
3455
|
});
|
|
3456
3456
|
}
|
|
3457
3457
|
function T(L, N) {
|
|
@@ -3480,25 +3480,25 @@ const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3480
3480
|
});
|
|
3481
3481
|
}
|
|
3482
3482
|
function S(L) {
|
|
3483
|
-
U(L).forEach((
|
|
3484
|
-
|
|
3483
|
+
U(L).forEach((k) => {
|
|
3484
|
+
k.setAttribute("aria-disabled", "true");
|
|
3485
3485
|
});
|
|
3486
3486
|
}
|
|
3487
3487
|
function h(L) {
|
|
3488
|
-
U(L).forEach((
|
|
3489
|
-
|
|
3488
|
+
U(L).forEach((k) => {
|
|
3489
|
+
k.removeAttribute("aria-disabled");
|
|
3490
3490
|
});
|
|
3491
3491
|
}
|
|
3492
3492
|
function p(L) {
|
|
3493
3493
|
if (L.keyCode !== 13 && L.keyCode !== 32)
|
|
3494
3494
|
return;
|
|
3495
|
-
const N = o(),
|
|
3496
|
-
if (!(e.pagination && e.pagination.el && (z === e.pagination.el || e.pagination.el.contains(z)) && !z.matches(oe(
|
|
3495
|
+
const N = o(), k = e.params.pagination, z = L.target;
|
|
3496
|
+
if (!(e.pagination && e.pagination.el && (z === e.pagination.el || e.pagination.el.contains(z)) && !z.matches(oe(k?.bulletClass)))) {
|
|
3497
3497
|
if (e.navigation && e.navigation.prevEl && e.navigation.nextEl) {
|
|
3498
3498
|
const V = U(e.navigation.prevEl);
|
|
3499
3499
|
U(e.navigation.nextEl).includes(z) && (e.isEnd && !e.params.loop || e.slideNext(), e.isEnd ? r(N.lastSlideMessage) : r(N.nextSlideMessage)), V.includes(z) && (e.isBeginning && !e.params.loop || e.slidePrev(), e.isBeginning ? r(N.firstSlideMessage) : r(N.prevSlideMessage));
|
|
3500
3500
|
}
|
|
3501
|
-
e.pagination && z.matches(oe(
|
|
3501
|
+
e.pagination && z.matches(oe(k?.bulletClass)) && z.click();
|
|
3502
3502
|
}
|
|
3503
3503
|
}
|
|
3504
3504
|
function E() {
|
|
@@ -3519,12 +3519,12 @@ const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3519
3519
|
if (!y())
|
|
3520
3520
|
return;
|
|
3521
3521
|
const N = e.params.pagination;
|
|
3522
|
-
e.pagination.bullets.forEach((
|
|
3523
|
-
N.clickable && (f(
|
|
3522
|
+
e.pagination.bullets.forEach((k) => {
|
|
3523
|
+
N.clickable && (f(k), N.renderBullet || (T(k, "button"), l(k, L.paginationBulletMessage.replace(/\{\{index\}\}/, String((Le(k) ?? 0) + 1))))), k.matches(oe(N.bulletActiveClass)) ? k.setAttribute("aria-current", "true") : k.removeAttribute("aria-current");
|
|
3524
3524
|
});
|
|
3525
3525
|
}
|
|
3526
|
-
const
|
|
3527
|
-
f(L), L.tagName !== "BUTTON" && (T(L, "button"), L.addEventListener("keydown", p)), l(L,
|
|
3526
|
+
const w = (L, N, k) => {
|
|
3527
|
+
f(L), L.tagName !== "BUTTON" && (T(L, "button"), L.addEventListener("keydown", p)), l(L, k);
|
|
3528
3528
|
}, _ = (L) => {
|
|
3529
3529
|
i && i !== L.target && !i.contains(L.target) && (n = !0), e.a11y.clicked = !0;
|
|
3530
3530
|
}, P = () => {
|
|
@@ -3543,8 +3543,8 @@ const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3543
3543
|
if (!z || !e.slides.includes(z))
|
|
3544
3544
|
return;
|
|
3545
3545
|
i = z;
|
|
3546
|
-
const V = na(e),
|
|
3547
|
-
if (
|
|
3546
|
+
const V = na(e), $ = (V ? parseInt(z.getAttribute("data-swiper-slide-index") || "0", 10) : e.slides.indexOf(z)) === e.activeIndex, Y = e.params.watchSlidesProgress && e.visibleSlides && e.visibleSlides.includes(z);
|
|
3547
|
+
if ($ || Y)
|
|
3548
3548
|
return;
|
|
3549
3549
|
const q = L.sourceCapabilities;
|
|
3550
3550
|
q && q.firesTouchEvents || (e.isHorizontal() ? e.el.scrollLeft = 0 : e.el.scrollTop = 0, requestAnimationFrame(() => {
|
|
@@ -3553,9 +3553,9 @@ const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3553
3553
|
}, C = () => {
|
|
3554
3554
|
const L = o();
|
|
3555
3555
|
L.itemRoleDescriptionMessage && d(e.slides, L.itemRoleDescriptionMessage), L.slideRole && T(e.slides, L.slideRole);
|
|
3556
|
-
const N = e.slides.length,
|
|
3557
|
-
|
|
3558
|
-
const
|
|
3556
|
+
const N = e.slides.length, k = L.slideLabelMessage;
|
|
3557
|
+
k && e.slides.forEach((z, V) => {
|
|
3558
|
+
const $ = e.params.loop ? parseInt(z.getAttribute("data-swiper-slide-index") || "0", 10) : V, Y = k.replace(/\{\{index\}\}/, String($ + 1)).replace(/\{\{slidesLength\}\}/, String(N));
|
|
3559
3559
|
l(z, Y);
|
|
3560
3560
|
});
|
|
3561
3561
|
}, x = () => {
|
|
@@ -3563,21 +3563,21 @@ const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3563
3563
|
a && e.el.append(a);
|
|
3564
3564
|
const N = e.el;
|
|
3565
3565
|
L.containerRoleDescriptionMessage && d(N, L.containerRoleDescriptionMessage), L.containerMessage && l(N, L.containerMessage), L.containerRole && T(N, L.containerRole);
|
|
3566
|
-
const
|
|
3567
|
-
if (g(
|
|
3566
|
+
const k = e.wrapperEl, z = String(L.id || k.getAttribute("id") || `swiper-wrapper-${m(16)}`);
|
|
3567
|
+
if (g(k, z), L.wrapperLiveRegion) {
|
|
3568
3568
|
const q = e.params.autoplay, O = e.params.autoplay && q?.enabled ? "off" : "polite";
|
|
3569
|
-
v(
|
|
3569
|
+
v(k, O);
|
|
3570
3570
|
}
|
|
3571
3571
|
C();
|
|
3572
|
-
const V = e.navigation ? e.navigation : { nextEl: void 0, prevEl: void 0 },
|
|
3573
|
-
|
|
3572
|
+
const V = e.navigation ? e.navigation : { nextEl: void 0, prevEl: void 0 }, $ = U(V.nextEl), Y = U(V.prevEl);
|
|
3573
|
+
$ && $.forEach((q) => w(q, z, L.nextSlideMessage)), Y && Y.forEach((q) => w(q, z, L.prevSlideMessage)), I() && U(e.pagination.el).forEach((O) => {
|
|
3574
3574
|
O.addEventListener("keydown", p);
|
|
3575
3575
|
}), document.addEventListener("visibilitychange", b), e.el.addEventListener("focus", M, !0), e.el.addEventListener("pointerdown", _, !0), e.el.addEventListener("pointerup", P, !0);
|
|
3576
3576
|
};
|
|
3577
|
-
function
|
|
3577
|
+
function R() {
|
|
3578
3578
|
a && a.remove();
|
|
3579
|
-
const L = e.navigation ? e.navigation : { nextEl: void 0, prevEl: void 0 }, N = U(L.nextEl),
|
|
3580
|
-
N && N.forEach((z) => z.removeEventListener("keydown", p)),
|
|
3579
|
+
const L = e.navigation ? e.navigation : { nextEl: void 0, prevEl: void 0 }, N = U(L.nextEl), k = U(L.prevEl);
|
|
3580
|
+
N && N.forEach((z) => z.removeEventListener("keydown", p)), k && k.forEach((z) => z.removeEventListener("keydown", p)), I() && U(e.pagination.el).forEach((V) => {
|
|
3581
3581
|
V.removeEventListener("keydown", p);
|
|
3582
3582
|
}), document.removeEventListener("visibilitychange", b), e.el && typeof e.el != "string" && (e.el.removeEventListener("focus", M, !0), e.el.removeEventListener("pointerdown", _, !0), e.el.removeEventListener("pointerup", P, !0));
|
|
3583
3583
|
}
|
|
@@ -3592,7 +3592,7 @@ const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3592
3592
|
}), s("paginationUpdate", () => {
|
|
3593
3593
|
o().enabled && A();
|
|
3594
3594
|
}), s("destroy", () => {
|
|
3595
|
-
o().enabled &&
|
|
3595
|
+
o().enabled && R();
|
|
3596
3596
|
});
|
|
3597
3597
|
}, la = ({ swiper: e, extendParams: t, on: s }) => {
|
|
3598
3598
|
t({
|
|
@@ -3766,9 +3766,9 @@ const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3766
3766
|
const V = !!e.params.virtual?.enabled;
|
|
3767
3767
|
if (e.virtual && V ? z = e.slides.find((Y) => Y.classList.contains("swiper-slide-active")) : z = e.slides[e.activeIndex], !z)
|
|
3768
3768
|
return;
|
|
3769
|
-
const
|
|
3770
|
-
if (
|
|
3771
|
-
return parseInt(
|
|
3769
|
+
const $ = z.getAttribute("data-swiper-autoplay");
|
|
3770
|
+
if ($ != null)
|
|
3771
|
+
return parseInt($, 10);
|
|
3772
3772
|
}, I = () => {
|
|
3773
3773
|
let z = i().delay;
|
|
3774
3774
|
const V = y();
|
|
@@ -3779,11 +3779,11 @@ const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3779
3779
|
r !== void 0 && cancelAnimationFrame(r), E();
|
|
3780
3780
|
let V = z;
|
|
3781
3781
|
typeof V > "u" && (V = I(), m = V, f = V), c = V;
|
|
3782
|
-
const
|
|
3782
|
+
const $ = e.params.speed, Y = () => {
|
|
3783
3783
|
if (!e || e.destroyed)
|
|
3784
3784
|
return;
|
|
3785
3785
|
const q = i();
|
|
3786
|
-
q.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(
|
|
3786
|
+
q.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev($, !0, !0), a("autoplay")) : q.stopOnLastSlide || (e.slideTo(e.slides.length - 1, $, !0, !0), a("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext($, !0, !0), a("autoplay")) : q.stopOnLastSlide || (e.slideTo(0, $, !0, !0), a("autoplay")), e.params.cssMode && (T = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
|
|
3787
3787
|
A();
|
|
3788
3788
|
}));
|
|
3789
3789
|
};
|
|
@@ -3792,18 +3792,18 @@ const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3792
3792
|
}, V)) : requestAnimationFrame(() => {
|
|
3793
3793
|
Y();
|
|
3794
3794
|
}), V;
|
|
3795
|
-
},
|
|
3795
|
+
}, w = () => (T = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, A(), a("autoplayStart"), !0), _ = () => (e.autoplay.running = !1, o !== void 0 && clearTimeout(o), r !== void 0 && cancelAnimationFrame(r), a("autoplayStop"), !0), P = (z, V) => {
|
|
3796
3796
|
if (e.destroyed || !e.autoplay.running)
|
|
3797
3797
|
return;
|
|
3798
3798
|
o !== void 0 && clearTimeout(o), z || (S = !0);
|
|
3799
|
-
const
|
|
3799
|
+
const $ = () => {
|
|
3800
3800
|
a("autoplayPause"), i().waitForTransition ? e.wrapperEl.addEventListener("transitionend", p) : b();
|
|
3801
3801
|
};
|
|
3802
3802
|
if (e.autoplay.paused = !0, V) {
|
|
3803
|
-
|
|
3803
|
+
$();
|
|
3804
3804
|
return;
|
|
3805
3805
|
}
|
|
3806
|
-
c = (c || i().delay) - ((/* @__PURE__ */ new Date()).getTime() - T), !(e.isEnd && c < 0 && !e.params.loop) && (c < 0 && (c = 0),
|
|
3806
|
+
c = (c || i().delay) - ((/* @__PURE__ */ new Date()).getTime() - T), !(e.isEnd && c < 0 && !e.params.loop) && (c < 0 && (c = 0), $());
|
|
3807
3807
|
}, b = () => {
|
|
3808
3808
|
e.isEnd && c < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (T = (/* @__PURE__ */ new Date()).getTime(), S ? (S = !1, A(c)) : A(), e.autoplay.paused = !1, a("autoplayResume"));
|
|
3809
3809
|
}, M = () => {
|
|
@@ -3812,25 +3812,25 @@ const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3812
3812
|
z.pointerType === "mouse" && (S = !0, h = !0, !(e.animating || e.autoplay.paused) && P(!0));
|
|
3813
3813
|
}, x = (z) => {
|
|
3814
3814
|
z.pointerType === "mouse" && (h = !1, e.autoplay.paused && b());
|
|
3815
|
-
},
|
|
3815
|
+
}, R = () => {
|
|
3816
3816
|
i().pauseOnMouseEnter && (e.el.addEventListener("pointerenter", C), e.el.addEventListener("pointerleave", x));
|
|
3817
3817
|
}, L = () => {
|
|
3818
3818
|
e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", C), e.el.removeEventListener("pointerleave", x));
|
|
3819
3819
|
}, N = () => {
|
|
3820
3820
|
document.addEventListener("visibilitychange", M);
|
|
3821
|
-
},
|
|
3821
|
+
}, k = () => {
|
|
3822
3822
|
document.removeEventListener("visibilitychange", M);
|
|
3823
3823
|
};
|
|
3824
3824
|
s("init", () => {
|
|
3825
|
-
i().enabled && (
|
|
3825
|
+
i().enabled && (R(), N(), w());
|
|
3826
3826
|
}), s("destroy", () => {
|
|
3827
|
-
L(),
|
|
3827
|
+
L(), k(), e.autoplay.running && _();
|
|
3828
3828
|
}), s("_freeModeStaticRelease", () => {
|
|
3829
3829
|
(g || S) && b();
|
|
3830
3830
|
}), s("_freeModeNoMomentumRelease", () => {
|
|
3831
3831
|
i().disableOnInteraction ? _() : P(!0, !0);
|
|
3832
|
-
}), s("beforeTransitionStart", (z, V,
|
|
3833
|
-
e.destroyed || !e.autoplay.running || (
|
|
3832
|
+
}), s("beforeTransitionStart", (z, V, $) => {
|
|
3833
|
+
e.destroyed || !e.autoplay.running || ($ || !i().disableOnInteraction ? P(!0, !0) : _());
|
|
3834
3834
|
}), s("sliderFirstMove", () => {
|
|
3835
3835
|
if (!(e.destroyed || !e.autoplay.running)) {
|
|
3836
3836
|
if (i().disableOnInteraction) {
|
|
@@ -3852,7 +3852,7 @@ const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
3852
3852
|
}), s("slideChange", () => {
|
|
3853
3853
|
e.destroyed || !e.autoplay.running || e.autoplay.paused && (c = I(), m = I());
|
|
3854
3854
|
}), Object.assign(e.autoplay, {
|
|
3855
|
-
start:
|
|
3855
|
+
start: w,
|
|
3856
3856
|
stop: _,
|
|
3857
3857
|
pause: P,
|
|
3858
3858
|
resume: b
|
|
@@ -4043,8 +4043,8 @@ const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4043
4043
|
}
|
|
4044
4044
|
if (l.momentum) {
|
|
4045
4045
|
if (T.velocities.length > 1) {
|
|
4046
|
-
const
|
|
4047
|
-
e.velocity = P / b, e.velocity /= 2, Math.abs(e.velocity) < l.minimumVelocity && (e.velocity = 0), (b > 150 || ae() -
|
|
4046
|
+
const w = T.velocities.pop(), _ = T.velocities.pop(), P = w.position - _.position, b = w.time - _.time;
|
|
4047
|
+
e.velocity = P / b, e.velocity /= 2, Math.abs(e.velocity) < l.minimumVelocity && (e.velocity = 0), (b > 150 || ae() - w.time > 300) && (e.velocity = 0);
|
|
4048
4048
|
} else
|
|
4049
4049
|
e.velocity = 0;
|
|
4050
4050
|
e.velocity *= l.momentumVelocityRatio, T.velocities.length = 0;
|
|
@@ -4060,20 +4060,20 @@ const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4060
4060
|
else if (p > e.minTranslate())
|
|
4061
4061
|
l.momentumBounce ? (p - e.minTranslate() > I && (p = e.minTranslate() + I), y = e.minTranslate(), E = !0, T.allowMomentumBounce = !0) : p = e.minTranslate(), d.loop && d.centeredSlides && (A = !0);
|
|
4062
4062
|
else if (l.sticky) {
|
|
4063
|
-
let
|
|
4063
|
+
let w = 0;
|
|
4064
4064
|
for (let _ = 0; _ < c.length; _ += 1)
|
|
4065
4065
|
if (c[_] > -p) {
|
|
4066
|
-
|
|
4066
|
+
w = _;
|
|
4067
4067
|
break;
|
|
4068
4068
|
}
|
|
4069
|
-
Math.abs(c[
|
|
4069
|
+
Math.abs(c[w] - p) < Math.abs((c[w - 1] ?? c[w]) - p) || e.swipeDirection === "next" ? p = c[w] : p = c[w - 1], p = -p;
|
|
4070
4070
|
}
|
|
4071
4071
|
if (A && a("transitionEnd", () => {
|
|
4072
4072
|
e.loopFix();
|
|
4073
4073
|
}), e.velocity !== 0) {
|
|
4074
4074
|
if (f ? S = Math.abs((-p - e.translate) / e.velocity) : S = Math.abs((p - e.translate) / e.velocity), l.sticky) {
|
|
4075
|
-
const
|
|
4076
|
-
|
|
4075
|
+
const w = Math.abs((f ? -p : p) - e.translate), _ = e.slidesSizesGrid[e.activeIndex], P = d.speed;
|
|
4076
|
+
w < _ ? S = P : w < 2 * _ ? S = P * 1.5 : S = P * 2.5;
|
|
4077
4077
|
}
|
|
4078
4078
|
} else if (l.sticky) {
|
|
4079
4079
|
e.slideToClosest();
|
|
@@ -4126,10 +4126,10 @@ const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4126
4126
|
});
|
|
4127
4127
|
}, T = (v, S, h) => {
|
|
4128
4128
|
const { slidesPerGroup: p } = e.params, E = r(), { rows: y, fill: I } = a(), A = m() ? e.virtual.slides.length : h.length;
|
|
4129
|
-
let
|
|
4129
|
+
let w, _, P;
|
|
4130
4130
|
if (I === "row" && (p ?? 1) > 1) {
|
|
4131
|
-
const M = p ?? 1, C = Math.floor(v / (M * y)), x = v - y * M * C,
|
|
4132
|
-
P = Math.floor(x /
|
|
4131
|
+
const M = p ?? 1, C = Math.floor(v / (M * y)), x = v - y * M * C, R = C === 0 ? M : Math.min(Math.ceil((A - C * y * M) / y), M);
|
|
4132
|
+
P = Math.floor(x / R), _ = x - P * R + C * M, w = _ + P * n / y, S.style.order = String(w);
|
|
4133
4133
|
} else I === "column" ? (_ = Math.floor(v / y), P = v - _ * y, (_ > u || _ === u && P === y - 1) && (P += 1, P >= y && (P = 0, _ += 1))) : (P = Math.floor(v / i), _ = v - P * i);
|
|
4134
4134
|
const b = S;
|
|
4135
4135
|
b.row = P, b.column = _, S.style.height = `calc((100% - ${(y - 1) * E}px) / ${y})`, S.style.setProperty(e.getDirectionLabel("margin-top"), P !== 0 && E ? `${E}px` : ""), b.swiperSlideGridSet = !0;
|
|
@@ -4138,8 +4138,8 @@ const aa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4138
4138
|
if (e.virtualSize = (v + E) * n, e.virtualSize = Math.ceil(e.virtualSize / y) - E, e.params.cssMode || e.wrapperEl.style.setProperty(e.getDirectionLabel("width"), `${e.virtualSize + E}px`), h) {
|
|
4139
4139
|
const I = [];
|
|
4140
4140
|
for (let A = 0; A < S.length; A += 1) {
|
|
4141
|
-
let
|
|
4142
|
-
p && (
|
|
4141
|
+
let w = S[A];
|
|
4142
|
+
p && (w = Math.floor(w)), S[A] < e.virtualSize + S[0] && I.push(w);
|
|
4143
4143
|
}
|
|
4144
4144
|
S.splice(0, S.length), S.push(...I);
|
|
4145
4145
|
}
|
|
@@ -4297,7 +4297,7 @@ function Me(e, t) {
|
|
|
4297
4297
|
const s = me(t);
|
|
4298
4298
|
return s !== t && (s.style.backfaceVisibility = "hidden", s.style.setProperty("-webkit-backface-visibility", "hidden")), s;
|
|
4299
4299
|
}
|
|
4300
|
-
function
|
|
4300
|
+
function $e({ swiper: e, duration: t, transformElements: s, allSlides: a }) {
|
|
4301
4301
|
const { activeIndex: n } = e, i = (u) => {
|
|
4302
4302
|
if (!u.parentElement)
|
|
4303
4303
|
return e.slides.find((o) => o.shadowRoot && o.shadowRoot === u.parentNode);
|
|
@@ -4349,7 +4349,7 @@ const Ea = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4349
4349
|
const o = e.slides.map((r) => me(r));
|
|
4350
4350
|
o.forEach((r) => {
|
|
4351
4351
|
r.style.transitionDuration = `${u}ms`;
|
|
4352
|
-
}),
|
|
4352
|
+
}), $e({ swiper: e, duration: u, transformElements: o, allSlides: !0 });
|
|
4353
4353
|
},
|
|
4354
4354
|
overwriteParams: () => ({
|
|
4355
4355
|
slidesPerView: 1,
|
|
@@ -4380,27 +4380,27 @@ const Ea = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4380
4380
|
swiper: e,
|
|
4381
4381
|
on: s,
|
|
4382
4382
|
setTranslate: () => {
|
|
4383
|
-
const { el: r, wrapperEl: m, slides: f, width: c, height: T, rtlTranslate: d, size: l } = e, g =
|
|
4383
|
+
const { el: r, wrapperEl: m, slides: f, width: c, height: T, rtlTranslate: d, size: l } = e, g = ke(e), v = a(), S = e.isHorizontal(), h = !!(e.virtual && e.params.virtual?.enabled);
|
|
4384
4384
|
let p = 0, E = null;
|
|
4385
4385
|
v.shadow && (S ? (E = e.wrapperEl.querySelector(".swiper-cube-shadow"), E || (E = ne("div", "swiper-cube-shadow"), e.wrapperEl.append(E)), E.style.height = `${c}px`) : (E = r.querySelector(".swiper-cube-shadow"), E || (E = ne("div", "swiper-cube-shadow"), r.append(E))));
|
|
4386
4386
|
for (let y = 0; y < f.length; y += 1) {
|
|
4387
4387
|
const I = f[y];
|
|
4388
4388
|
let A = y;
|
|
4389
4389
|
h && (A = parseInt(I.getAttribute("data-swiper-slide-index") ?? "0", 10));
|
|
4390
|
-
let
|
|
4391
|
-
d && (
|
|
4390
|
+
let w = A * 90, _ = Math.floor(w / 360);
|
|
4391
|
+
d && (w = -w, _ = Math.floor(-w / 360));
|
|
4392
4392
|
const P = Math.max(Math.min(I.progress ?? 0, 1), -1);
|
|
4393
4393
|
let b = 0, M = 0, C = 0;
|
|
4394
4394
|
A % 4 === 0 ? (b = -_ * 4 * l, C = 0) : (A - 1) % 4 === 0 ? (b = 0, C = -_ * 4 * l) : (A - 2) % 4 === 0 ? (b = l + _ * 4 * l, C = l) : (A - 3) % 4 === 0 && (b = -l, C = 3 * l + l * 4 * _), d && (b = -b), S || (M = b, b = 0);
|
|
4395
|
-
const x = `rotateX(${g(S ? 0 : -
|
|
4395
|
+
const x = `rotateX(${g(S ? 0 : -w)}deg) rotateY(${g(S ? w : 0)}deg) translate3d(${b}px, ${M}px, ${C}px)`;
|
|
4396
4396
|
P <= 1 && P > -1 && (p = A * 90 + P * 90, d && (p = -A * 90 - P * 90)), I.style.transform = x, v.slideShadows && n(I, P, S);
|
|
4397
4397
|
}
|
|
4398
4398
|
if (m.style.transformOrigin = `50% 50% -${l / 2}px`, m.style.setProperty("-webkit-transform-origin", `50% 50% -${l / 2}px`), v.shadow && E)
|
|
4399
4399
|
if (S)
|
|
4400
4400
|
E.style.transform = `translate3d(0px, ${c / 2 + v.shadowOffset}px, ${-c / 2}px) rotateX(89.99deg) rotateZ(0deg) scale(${v.shadowScale})`;
|
|
4401
4401
|
else {
|
|
4402
|
-
const y = Math.abs(p) - Math.floor(Math.abs(p) / 90) * 90, I = 1.5 - (Math.sin(y * 2 * Math.PI / 360) / 2 + Math.cos(y * 2 * Math.PI / 360) / 2), A = v.shadowScale,
|
|
4403
|
-
E.style.transform = `scale3d(${A}, 1, ${
|
|
4402
|
+
const y = Math.abs(p) - Math.floor(Math.abs(p) / 90) * 90, I = 1.5 - (Math.sin(y * 2 * Math.PI / 360) / 2 + Math.cos(y * 2 * Math.PI / 360) / 2), A = v.shadowScale, w = v.shadowScale / I, _ = v.shadowOffset;
|
|
4403
|
+
E.style.transform = `scale3d(${A}, 1, ${w}) translate3d(0px, ${T / 2 + _}px, ${-T / 2 / w}px) rotateX(-89.99deg)`;
|
|
4404
4404
|
}
|
|
4405
4405
|
m.style.transform = `translate3d(0px,0,0px) rotateX(${g(e.isHorizontal() ? 0 : p)}deg) rotateY(${g(e.isHorizontal() ? -p : 0)}deg)`, m.style.setProperty("--swiper-cube-translate-z", "0px");
|
|
4406
4406
|
},
|
|
@@ -4461,7 +4461,7 @@ const Sa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4461
4461
|
swiper: e,
|
|
4462
4462
|
on: s,
|
|
4463
4463
|
setTranslate: () => {
|
|
4464
|
-
const { slides: r, rtlTranslate: m } = e, f = a(), c =
|
|
4464
|
+
const { slides: r, rtlTranslate: m } = e, f = a(), c = ke(e);
|
|
4465
4465
|
for (let T = 0; T < r.length; T += 1) {
|
|
4466
4466
|
const d = r[T];
|
|
4467
4467
|
let l = d.progress ?? 0;
|
|
@@ -4479,7 +4479,7 @@ const Sa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4479
4479
|
f.style.transitionDuration = `${r}ms`, f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((c) => {
|
|
4480
4480
|
c.style.transitionDuration = `${r}ms`;
|
|
4481
4481
|
});
|
|
4482
|
-
}),
|
|
4482
|
+
}), $e({ swiper: e, duration: r, transformElements: m });
|
|
4483
4483
|
},
|
|
4484
4484
|
recreateShadows: () => {
|
|
4485
4485
|
const r = a();
|
|
@@ -4517,15 +4517,15 @@ const Sa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4517
4517
|
swiper: e,
|
|
4518
4518
|
on: s,
|
|
4519
4519
|
setTranslate: () => {
|
|
4520
|
-
const { width: u, height: o, slides: r, slidesSizesGrid: m } = e, f = a(), c = e.isHorizontal(), T = e.translate, d = c ? -T + u / 2 : -T + o / 2, l = c ? f.rotate : -f.rotate, g = f.depth, v =
|
|
4520
|
+
const { width: u, height: o, slides: r, slidesSizesGrid: m } = e, f = a(), c = e.isHorizontal(), T = e.translate, d = c ? -T + u / 2 : -T + o / 2, l = c ? f.rotate : -f.rotate, g = f.depth, v = ke(e);
|
|
4521
4521
|
for (let S = 0, h = r.length; S < h; S += 1) {
|
|
4522
4522
|
const p = r[S], E = m[S], y = p.swiperSlideOffset ?? 0, I = (d - y - E / 2) / E, A = typeof f.modifier == "function" ? f.modifier(I) : I * f.modifier;
|
|
4523
|
-
let
|
|
4524
|
-
Math.abs(C) < 1e-3 && (C = 0), Math.abs(M) < 1e-3 && (M = 0), Math.abs(P) < 1e-3 && (P = 0), Math.abs(
|
|
4525
|
-
const
|
|
4526
|
-
if (L.style.transform =
|
|
4527
|
-
let N = c ? p.querySelector(".swiper-slide-shadow-left") : p.querySelector(".swiper-slide-shadow-top"),
|
|
4528
|
-
N || (N = be("coverflow", p, c ? "left" : "top")),
|
|
4523
|
+
let w = c ? l * A : 0, _ = c ? 0 : l * A, P = -g * Math.abs(A), b = typeof f.stretch == "string" && f.stretch.indexOf("%") !== -1 ? parseFloat(f.stretch) / 100 * E : f.stretch, M = c ? 0 : b * A, C = c ? b * A : 0, x = 1 - (1 - f.scale) * Math.abs(A);
|
|
4524
|
+
Math.abs(C) < 1e-3 && (C = 0), Math.abs(M) < 1e-3 && (M = 0), Math.abs(P) < 1e-3 && (P = 0), Math.abs(w) < 1e-3 && (w = 0), Math.abs(_) < 1e-3 && (_ = 0), Math.abs(x) < 1e-3 && (x = 0);
|
|
4525
|
+
const R = `translate3d(${C}px,${M}px,${P}px) rotateX(${v(_)}deg) rotateY(${v(w)}deg) scale(${x})`, L = Me(f, p);
|
|
4526
|
+
if (L.style.transform = R, p.style.zIndex = String(-Math.abs(Math.round(A)) + 1), f.slideShadows) {
|
|
4527
|
+
let N = c ? p.querySelector(".swiper-slide-shadow-left") : p.querySelector(".swiper-slide-shadow-top"), k = c ? p.querySelector(".swiper-slide-shadow-right") : p.querySelector(".swiper-slide-shadow-bottom");
|
|
4528
|
+
N || (N = be("coverflow", p, c ? "left" : "top")), k || (k = be("coverflow", p, c ? "right" : "bottom")), N && (N.style.opacity = String(A > 0 ? A : 0)), k && (k.style.opacity = String(-A > 0 ? -A : 0));
|
|
4529
4529
|
}
|
|
4530
4530
|
}
|
|
4531
4531
|
},
|
|
@@ -4571,7 +4571,7 @@ const Sa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4571
4571
|
swiper: e,
|
|
4572
4572
|
on: s,
|
|
4573
4573
|
setTranslate: () => {
|
|
4574
|
-
const { slides: o, wrapperEl: r, slidesSizesGrid: m } = e, f = a(), { progressMultiplier: c } = f, T = e.params.centeredSlides, d =
|
|
4574
|
+
const { slides: o, wrapperEl: r, slidesSizesGrid: m } = e, f = a(), { progressMultiplier: c } = f, T = e.params.centeredSlides, d = ke(e);
|
|
4575
4575
|
if (T) {
|
|
4576
4576
|
const l = m[0] / 2 - (e.params.slidesOffsetBefore ?? 0);
|
|
4577
4577
|
r.style.transform = `translateX(calc(50% - ${l}px))`;
|
|
@@ -4593,17 +4593,17 @@ const Sa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4593
4593
|
scale: 1,
|
|
4594
4594
|
opacity: 1
|
|
4595
4595
|
};
|
|
4596
|
-
S < 0 ? (A = f.next, I = !0) : S > 0 && (A = f.prev, I = !0), E.forEach((x,
|
|
4597
|
-
E[
|
|
4598
|
-
}), y.forEach((x,
|
|
4599
|
-
y[
|
|
4596
|
+
S < 0 ? (A = f.next, I = !0) : S > 0 && (A = f.prev, I = !0), E.forEach((x, R) => {
|
|
4597
|
+
E[R] = `calc(${x}px + (${n(A.translate[R])} * ${Math.abs(S * c)}))`;
|
|
4598
|
+
}), y.forEach((x, R) => {
|
|
4599
|
+
y[R] = A.rotate[R] * Math.abs(S * c);
|
|
4600
4600
|
}), g.style.zIndex = String(-Math.abs(Math.round(v)) + o.length);
|
|
4601
|
-
const
|
|
4601
|
+
const w = E.join(", "), _ = `rotateX(${d(y[0])}deg) rotateY(${d(y[1])}deg) rotateZ(${d(y[2])}deg)`, P = h < 0 ? `scale(${1 + (1 - A.scale) * h * c})` : `scale(${1 - (1 - A.scale) * h * c})`, b = h < 0 ? 1 + (1 - A.opacity) * h * c : 1 - (1 - A.opacity) * h * c, M = `translate3d(${w}) ${_} ${P}`;
|
|
4602
4602
|
if (I && A.shadow || !I) {
|
|
4603
4603
|
let x = g.querySelector(".swiper-slide-shadow");
|
|
4604
4604
|
if (!x && A.shadow && (x = be("creative", g)), x) {
|
|
4605
|
-
const
|
|
4606
|
-
x.style.opacity = String(Math.min(Math.max(Math.abs(
|
|
4605
|
+
const R = f.shadowPerProgress ? S * (1 / f.limitProgress) : S;
|
|
4606
|
+
x.style.opacity = String(Math.min(Math.max(Math.abs(R), 0), 1));
|
|
4607
4607
|
}
|
|
4608
4608
|
}
|
|
4609
4609
|
const C = Me(f, g);
|
|
@@ -4616,7 +4616,7 @@ const Sa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4616
4616
|
m.style.transitionDuration = `${o}ms`, m.querySelectorAll(".swiper-slide-shadow").forEach((f) => {
|
|
4617
4617
|
f.style.transitionDuration = `${o}ms`;
|
|
4618
4618
|
});
|
|
4619
|
-
}),
|
|
4619
|
+
}), $e({ swiper: e, duration: o, transformElements: r, allSlides: !0 });
|
|
4620
4620
|
},
|
|
4621
4621
|
perspective: () => a().perspective,
|
|
4622
4622
|
overwriteParams: () => ({
|
|
@@ -4649,7 +4649,7 @@ const Sa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4649
4649
|
let h = e.params.cssMode ? -S - e.translate : -S, p = 0;
|
|
4650
4650
|
const E = -100 * Math.abs(v);
|
|
4651
4651
|
let y = 1, I = -m.perSlideRotate * v, A = m.perSlideOffset - Math.abs(v) * 0.75;
|
|
4652
|
-
const
|
|
4652
|
+
const w = e.virtual && e.params.virtual?.enabled ? e.virtual.from + d : d, _ = (w === o || w === o - 1) && v > 0 && v < 1 && (c || e.params.cssMode) && (T ?? 0) < (f ?? 0), P = (w === o || w === o + 1) && v < 0 && v > -1 && (c || e.params.cssMode) && (T ?? 0) > (f ?? 0);
|
|
4653
4653
|
if (_ || P) {
|
|
4654
4654
|
const x = (1 - Math.abs((Math.abs(v) - 0.5) / 0.5)) ** 0.5;
|
|
4655
4655
|
I += -28 * v * x, y += -0.5 * x, A += 96 * x, p = `${(m.rotate || e.isHorizontal() ? -25 : 0) * x * Math.abs(v)}%`;
|
|
@@ -4678,7 +4678,7 @@ const Sa = ({ swiper: e, extendParams: t, on: s }) => {
|
|
|
4678
4678
|
r.style.transitionDuration = `${u}ms`, r.querySelectorAll(".swiper-slide-shadow").forEach((m) => {
|
|
4679
4679
|
m.style.transitionDuration = `${u}ms`;
|
|
4680
4680
|
});
|
|
4681
|
-
}),
|
|
4681
|
+
}), $e({ swiper: e, duration: u, transformElements: o });
|
|
4682
4682
|
},
|
|
4683
4683
|
perspective: () => !0,
|
|
4684
4684
|
overwriteParams: () => ({
|
|
@@ -4774,20 +4774,20 @@ function Ia() {
|
|
|
4774
4774
|
e.removeAttribute("role");
|
|
4775
4775
|
});
|
|
4776
4776
|
}
|
|
4777
|
-
const ve = "waterfall",
|
|
4778
|
-
function
|
|
4779
|
-
e.allowSlideNext = D(t, In, !0), e.allowSlidePrev = D(t,
|
|
4777
|
+
const ve = "waterfall", To = "waterfall-preload", Eo = "waterfall-postload", vo = "waterfall-content", wa = "waterfall-debug-mode", So = "waterfall-advanced-debug-mode", bo = "waterfall-a11y", Ra = "waterfall-a11y-container-message", Pa = "waterfall-a11y-container-role", Oa = "waterfall-a11y-container-role-description-message", Da = "waterfall-a11y-enabled", Na = "waterfall-a11y-first-slide-message", za = "waterfall-a11y-id", ka = "waterfall-a11y-item-role-description-message", $a = "waterfall-a11y-last-slide-message", Ga = "waterfall-a11y-next-slide-message", Ba = "waterfall-a11y-notification-class", Ha = "waterfall-a11y-pagination-bullet-message", Va = "waterfall-a11y-prev-slide-message", Wa = "waterfall-a11y-scroll-on-focus", Ya = "waterfall-a11y-slide-label-message", Fa = "waterfall-a11y-slide-role", Xa = "waterfall-centered-slides-lmobile", Ua = "waterfall-slides-per-view-lmobile", qa = "waterfall-slides-per-group-lmobile", ja = "waterfall-space-between-lmobile", Ka = "waterfall-centered-slides-tablet", Za = "waterfall-slides-per-view-tablet", yo = "waterfall-slides-per-group-tablet", Qa = "waterfall-space-between-tablet", Ja = "waterfall-centered-slides-desktop", en = "waterfall-slides-per-view-desktop", tn = "waterfall-slides-per-group-desktop", sn = "waterfall-space-between-desktop", an = "waterfall-centered-slides-large", nn = "waterfall-slides-per-view-large", ut = "waterfall-slides-per-group-large", ln = "waterfall-space-between-large", rn = "waterfall-centered-slides-xlarge", on = "waterfall-slides-per-view-xlarge", dn = "waterfall-slides-per-group-xlarge", cn = "waterfall-space-between-xlarge", et = "waterfall-controller", fn = "waterfall-controller-by", un = "waterfall-controller-inverse", Ao = "waterfall-effect-crossfade", pn = "waterfall-coverflow-depth", mn = "waterfall-coverflow-modifier", hn = "waterfall-coverflow-rotate", gn = "waterfall-coverflow-scale", Tn = "waterfall-coverflow-slide-shadows", En = "waterfall-coverflow-stretch", vn = "waterfall-flip-limit-rotation", Sn = "waterfall-flip-slide-shadows", bn = "waterfall-cube-shadow", yn = "waterfall-cube-shadow-offset", An = "waterfall-cube-shadow-scale", _n = "waterfall-cube-slide-shadows", xn = "waterfall-cards-per-slide-offset", Ln = "waterfall-cards-per-slide-rotate", Cn = "waterfall-cards-rotate", Mn = "waterfall-cards-slide-shadows", In = "waterfall-allow-slide-next", wn = "waterfall-allow-slide-prev", Rn = "waterfall-allow-touch-move", Pn = "waterfall-auto-height", On = "waterfall-breakpoints-base", Dn = "waterfall-center-insufficient-slides", Nn = "waterfall-centered-slides", _o = "waterfall-centered-slides-bounds", zn = "waterfall-container-modifier-class", kn = "waterfall-create-elements", $n = "waterfall-css-mode", Gn = "waterfall-direction", Bn = "waterfall-edge-swipe-detection", Hn = "waterfall-edge-swipe-threshold", Vn = "waterfall-effect", Wn = "waterfall-enabled", Yn = "waterfall-events-prefix", Fn = "waterfall-focusable-elements", Xn = "waterfall-follow-finger", Un = "waterfall-grab-cursor", qn = "waterfall-height", jn = "waterfall-init", Kn = "waterfall-initial-slide", Zn = "waterfall-lazy-preload-prev-next", Qn = "waterfall-lazy-preloader-class", Jn = "waterfall-long-swipes", ei = "waterfall-long-swipes-ms", ti = "waterfall-long-swipes-ratio", xo = "waterfall-loop-mode", si = "waterfall-loop-add-blank-slides", ai = "waterfall-loop-additional-slides", ni = "waterfall-loop-prevents-sliding", ii = "waterfall-max-backface-hidden-slides", li = "waterfall-nested", ri = "waterfall-no-swiping", oi = "waterfall-no-swiping-class", di = "waterfall-no-swiping-selector", ci = "waterfall-normalize-slide-index", fi = "waterfall-observe-parents", ui = "waterfall-observe-slide-children", pi = "waterfall-observer", mi = "waterfall-data-one-way-movement", hi = "waterfall-passive-listeners", gi = "waterfall-prevent-clicks", Ti = "waterfall-prevent-clicks-propagation", Ei = "waterfall-prevent-interaction-on-transition", vi = "waterfall-resistance", Si = "waterfall-resistance-ratio", bi = "waterfall-resize-observer", Lo = "waterfall-rewind", yi = "waterfall-round-lengths", Ai = "waterfall-run-callbacks-on-init", _i = "waterfall-set-wrapper-size", xi = "waterfall-short-swipes", Li = "waterfall-simulate-touch", Ci = "waterfall-slide-active-class", Mi = "waterfall-slide-class", Ii = "waterfall-slide-blank-class", wi = "waterfall-slide-fully-visible-class", Ri = "waterfall-slide-next-class", Pi = "waterfall-slide-prev-class", Oi = "waterfall-slide-to-clicked-slide", Di = "waterfall-slide-visible-class", Ni = "waterfall-slides-offset-after", zi = "waterfall-slides-offset-before", ki = "waterfall-slides-per-group", $i = "waterfall-slides-per-group-auto", Gi = "waterfall-slides-per-group-skip", Bi = "waterfall-slides-per-view", Hi = "waterfall-space-between", Vi = "waterfall-speed", Wi = "waterfall-swipe-handler", Yi = "waterfall-swiper-element-node-name", Fi = "waterfall-threshold", Xi = "waterfall-touch-angle", Ui = "waterfall-touch-events-target", qi = "waterfall-touch-move-stop-propagation", ji = "waterfall-touch-ratio", Ki = "waterfall-touch-release-on-edges", Zi = "waterfall-touch-start-force-prevent-default", Qi = "waterfall-touch-start-prevent-default", Ji = "waterfall-unique-nav-elements", el = "waterfall-update-on-window-resize", tl = "waterfall-url", sl = "waterfall-user-agent", Co = "waterfall-virtual-translate", al = "waterfall-watch-overflow", nl = "waterfall-watch-slides-progress", il = "waterfall-width", ll = "waterfall-wrapper-class", rl = "waterfall-hash-replace-state", ol = "waterfall-hash-watch-state", dl = "waterfall-history-keep-query", cl = "waterfall-history-key", fl = "waterfall-history-replace-state", ul = "waterfall-history-root", pl = "waterfall-keyboard-enabled", ml = "waterfall-keyboard-only-in-viewport", hl = "waterfall-keyboard-page-up-down", gl = "waterfall-mouse-enabled", Tl = "waterfall-mouse-events-target", El = "waterfall-mouse-force-to-axis", vl = "waterfall-mouse-invert", Sl = "waterfall-mouse-no-mouse-wheel-class", bl = "waterfall-mouse-release-on-edges", yl = "waterfall-mouse-sensitivity", Al = "waterfall-mouse-threshold-delta", _l = "waterfall-mouse-threshold-time", xl = "waterfall-grid-rows", Ll = "waterfall-grid-fill", Cl = "waterfall-navigation-disabled-class", Ml = "waterfall-navigation-enabled", Il = "waterfall-navigation-hidden-class", wl = "waterfall-navigation-hide-on-click", _t = "waterfall-navigation-lock-class", Rl = "waterfall-navigation-navigation-disabled-class", Pl = "waterfall-pagination-type", Mo = "waterfall-pagination-bullet-class", Ol = "waterfall-pagination-bullet-active-class", Dl = "waterfall-pagination-clickable", Nl = "waterfall-pagination-clickable-class", zl = "waterfall-pagination-current-class", kl = "waterfall-pagination-dynamic-bullets", $l = "waterfall-pagination-dynamic-main-bullets", Gl = "waterfall-pagination-enabled", Bl = "waterfall-pagination-hidden-class", Hl = "waterfall-pagination-hide-on-click", Vl = "waterfall-pagination-horizontal-class", Io = "waterfall-pagination-lock-class", Wl = "waterfall-pagination-modifier-class", Yl = "waterfall-pagination-pagination-disabled-class", Fl = "waterfall-pagination-progressbar-fill-class", Xl = "waterfall-pagination-progressbar-opposite", Ul = "waterfall-pagination-progressbar-opposite-class", ql = "waterfall-pagination-total-class", jl = "waterfall-pagination-vertical-class", Kl = "waterfall-autoplay-mode", xt = "waterfall-smooth-autoplay", Zl = "waterfall-delay", Ql = "waterfall-disable-on-interaction", Jl = "waterfall-reverse-direction", er = "waterfall-pause-on-mouse-enter", tr = "waterfall-stop-on-last-slide", wo = "waterfall-wait-for-transition", sr = "waterfall-free-mode-enabled", ar = "waterfall-free-mode-minimum-velocity", nr = "waterfall-free-mode-momentum", ir = "waterfall-free-mode-momentum-bounce", lr = "waterfall-free-mode-momentum-bounce-ratio", rr = "waterfall-free-mode-momentum-ratio", or = "waterfall-free-mode-momentum-velocity-ratio", dr = "waterfall-free-mode-sticky", Ro = "waterfall-scrollbar-drag-class", cr = "waterfall-scrollbar-drag-size", fr = "waterfall-scrollbar-draggable", ur = "waterfall-scrollbar-enabled", pr = "waterfall-scrollbar-hide", mr = "waterfall-scrollbar-horizontal-class", hr = "waterfall-scrollbar-lock-class", gr = "waterfall-scrollbar-scrollbar-disabled-class", Tr = "waterfall-scrollbar-vertical-class", Er = "waterfall-scrollbar-snap-on-release", tt = "waterfall-thumbs", vr = "waterfall-thumbs-auto-scroll-offset", Sr = "waterfall-thumbs-multiple-active-thumbs", br = "waterfall-slide-thumb-active-class", yr = "waterfall-thumbs-container-class", Ar = "waterfall-add-slide", pt = "waterfall-add-index", _r = "waterfall-append-slide", xr = "waterfall-prepend-slide", Lr = "waterfall-remove-slide", mt = "waterfall-remove-index", Po = "waterfall-remove-all-slides", Oo = "waterfall-zoom", Do = "waterfall-zoom-enabled", Cr = "waterfall-zoom-container-class", Mr = "waterfall-zoom-limit-to-original-size", Ir = "waterfall-zoom-max-ratio", wr = "waterfall-zoom-min-ratio", Rr = "waterfall-zoom-pan-on-mouse-move", Pr = "waterfall-zoom-toggle", Or = "waterfall-zoomed-slide-class", No = "waterfall-zoom-fade", Dr = "waterfall-parallax-enabled", zo = "data-swiper-parallax", ko = "data-swiper-parallax-x", $o = "data-swiper-parallax-y", Go = "data-swiper-parallax-scale", Bo = "data-swiper-parallax-opacity", Ho = "data-swiper-parallax-duration", Nr = "waterfall-callback-slide-change", zr = "waterfall-playback-mode", pe = "waterfall-el", kr = "pagination", $r = "pagination-bullet", Vo = "pagination-bullet-active", Wo = "waterfall-navigation", Gr = "navigation-next", Br = "navigation-prev", Hr = "scrollbar", Vr = "scrollbar-drag", Wr = "slide-count";
|
|
4778
|
+
function Yr(e, t, s) {
|
|
4779
|
+
e.allowSlideNext = D(t, In, !0), e.allowSlidePrev = D(t, wn, !0), e.navigation = {
|
|
4780
4780
|
disabledClass: B(t, Cl, "swiper-button-disabled"),
|
|
4781
4781
|
enabled: D(t, Ml),
|
|
4782
4782
|
hiddenClass: B(t, Il, "swiper-button-hidden"),
|
|
4783
|
-
hideOnClick: D(t,
|
|
4783
|
+
hideOnClick: D(t, wl, !1),
|
|
4784
4784
|
lockClass: B(t, _t, "swiper-button-lock"),
|
|
4785
|
-
navigationDisabledClass: B(t,
|
|
4786
|
-
nextEl: `[${ve}='${s}'] [${pe}=${
|
|
4787
|
-
prevEl: `[${ve}='${s}'] [${pe}=${
|
|
4785
|
+
navigationDisabledClass: B(t, Rl, "swiper-navigation-disabled"),
|
|
4786
|
+
nextEl: `[${ve}='${s}'] [${pe}=${Gr}]`,
|
|
4787
|
+
prevEl: `[${ve}='${s}'] [${pe}=${Br}]`
|
|
4788
4788
|
};
|
|
4789
4789
|
}
|
|
4790
|
-
function
|
|
4790
|
+
function Fr(e, t) {
|
|
4791
4791
|
e.breakpointsBase = B(t, On, "window"), e.breakpoints = {
|
|
4792
4792
|
478: {
|
|
4793
4793
|
centeredSlides: D(t, Xa),
|
|
@@ -4821,8 +4821,8 @@ function Yr(e, t) {
|
|
|
4821
4821
|
}
|
|
4822
4822
|
};
|
|
4823
4823
|
}
|
|
4824
|
-
function
|
|
4825
|
-
const s = t.querySelector(`[${pe}=${
|
|
4824
|
+
function Xr(e, t) {
|
|
4825
|
+
const s = t.querySelector(`[${pe}=${kr}]`);
|
|
4826
4826
|
if (!s) return;
|
|
4827
4827
|
const a = B(t, Pl), n = t.querySelector(`[${pe}=${$r}]`);
|
|
4828
4828
|
e.pagination = {
|
|
@@ -4832,8 +4832,8 @@ function Fr(e, t) {
|
|
|
4832
4832
|
clickable: D(t, Dl, !1),
|
|
4833
4833
|
clickableClass: B(t, Nl, "swiper-pagination-clickable"),
|
|
4834
4834
|
currentClass: B(t, zl, "swiper-pagination-current"),
|
|
4835
|
-
dynamicBullets: D(t,
|
|
4836
|
-
dynamicMainBullets: W(t,
|
|
4835
|
+
dynamicBullets: D(t, kl, !1),
|
|
4836
|
+
dynamicMainBullets: W(t, $l, 1),
|
|
4837
4837
|
el: s || null,
|
|
4838
4838
|
enabled: D(t, Gl),
|
|
4839
4839
|
hiddenClass: B(t, Bl, "swiper-pagination-hidden"),
|
|
@@ -4872,10 +4872,10 @@ function Fr(e, t) {
|
|
|
4872
4872
|
return a === "numberBullets" || a === "bullets" ? "bullets" : a === "fraction" ? "fraction" : a === "progressbar" ? "progressbar" : a === "custom" ? "custom" : "bullets";
|
|
4873
4873
|
}
|
|
4874
4874
|
}
|
|
4875
|
-
function
|
|
4876
|
-
const s = t.querySelector(`[${pe}=${
|
|
4875
|
+
function Ur(e, t) {
|
|
4876
|
+
const s = t.querySelector(`[${pe}=${Hr}]`);
|
|
4877
4877
|
if (!s) return;
|
|
4878
|
-
const a = s?.querySelector(`[${pe}=${
|
|
4878
|
+
const a = s?.querySelector(`[${pe}=${Vr}]`);
|
|
4879
4879
|
e.scrollbar = {
|
|
4880
4880
|
dragClass: a?.getAttribute("class") || "",
|
|
4881
4881
|
dragSize: Ce(t, cr, "auto"),
|
|
@@ -4891,12 +4891,12 @@ function Xr(e, t) {
|
|
|
4891
4891
|
verticalClass: B(t, Tr, "swiper-scrollbar-vertical")
|
|
4892
4892
|
};
|
|
4893
4893
|
}
|
|
4894
|
-
function
|
|
4895
|
-
const s = B(t,
|
|
4894
|
+
function qr(e, t) {
|
|
4895
|
+
const s = B(t, zr, "none");
|
|
4896
4896
|
s === "loop" && (e.loop = !0), s === "rewind" && (e.rewind = !0), s === "none" && (e.loop = !1, e.rewind = !1), e.loopAddBlankSlides = D(t, si, !0), e.loopAdditionalSlides = W(t, ai, 0), e.loopPreventsSliding = D(t, ni, !0);
|
|
4897
4897
|
const a = D(t, Kl, !1), n = D(t, xt, !1);
|
|
4898
4898
|
let i = W(t, Zl, void 0);
|
|
4899
|
-
n && (i = 0), a && (
|
|
4899
|
+
n && (i = 0), a && (jr(), e.autoplay = {
|
|
4900
4900
|
delay: i,
|
|
4901
4901
|
disableOnInteraction: D(t, Ql, !1),
|
|
4902
4902
|
// documentation says default is true, doesn't appear to be correct
|
|
@@ -4905,12 +4905,12 @@ function Ur(e, t) {
|
|
|
4905
4905
|
stopOnLastSlide: D(t, tr, !1)
|
|
4906
4906
|
}), e.speed = W(t, Vi, 300), e.oneWayMovement = D(t, mi, !1);
|
|
4907
4907
|
}
|
|
4908
|
-
function
|
|
4908
|
+
function jr() {
|
|
4909
4909
|
document.querySelectorAll(`[${xt}='true'] .swiper-wrapper`).forEach((e) => {
|
|
4910
4910
|
e.style.transitionTimingFunction = "linear";
|
|
4911
4911
|
});
|
|
4912
4912
|
}
|
|
4913
|
-
function
|
|
4913
|
+
function Kr(e, t) {
|
|
4914
4914
|
const s = B(t, Vn, "slide");
|
|
4915
4915
|
e.effect = s, s === "fade" ? e.fadeEffect = { crossFade: !0 } : s === "coverflow" ? e.coverflowEffect = {
|
|
4916
4916
|
depth: W(t, pn, 100),
|
|
@@ -4934,24 +4934,24 @@ function jr(e, t) {
|
|
|
4934
4934
|
slideShadows: D(t, Mn, !0)
|
|
4935
4935
|
});
|
|
4936
4936
|
}
|
|
4937
|
-
function
|
|
4937
|
+
function Zr(e, t) {
|
|
4938
4938
|
e.autoHeight = D(t, Pn, !1), e.centerInsufficientSlides = D(t, Dn, !1), e.centeredSlides = D(t, Nn, !1), e.direction = Ce(t, Gn, "horizontal"), e.grid = {
|
|
4939
4939
|
fill: Ce(t, Ll, "column"),
|
|
4940
4940
|
rows: W(t, xl, 1)
|
|
4941
|
-
}, e.height = W(t, qn), e.slidesOffsetAfter = W(t, Ni, 0), e.slidesOffsetBefore = W(t, zi, 0), e.slidesPerGroup = W(t,
|
|
4941
|
+
}, e.height = W(t, qn), e.slidesOffsetAfter = W(t, Ni, 0), e.slidesOffsetBefore = W(t, zi, 0), e.slidesPerGroup = W(t, ki, 1), e.slidesPerGroupAuto = D(t, $i, !1), e.slidesPerGroupSkip = W(t, Gi, 0), e.slidesPerView = xa(t, Bi, 1), e.spaceBetween = W(t, Hi, 0), e.width = W(t, il);
|
|
4942
4942
|
}
|
|
4943
|
-
function
|
|
4944
|
-
e.containerModifierClass = B(t, zn, "swiper-"), e.initialSlide = W(t, Kn, 0), e.nested = D(t, li, !1), e.normalizeSlideIndex = D(t, ci, !0), e.slideActiveClass = B(t, Ci, "swiper-slide-active"), e.slideBlankClass = B(t, Ii, "swiper-slide-blank"), e.slideClass = B(t, Mi, "swiper-slide"), e.slideFullyVisibleClass = B(t,
|
|
4943
|
+
function Qr(e, t) {
|
|
4944
|
+
e.containerModifierClass = B(t, zn, "swiper-"), e.initialSlide = W(t, Kn, 0), e.nested = D(t, li, !1), e.normalizeSlideIndex = D(t, ci, !0), e.slideActiveClass = B(t, Ci, "swiper-slide-active"), e.slideBlankClass = B(t, Ii, "swiper-slide-blank"), e.slideClass = B(t, Mi, "swiper-slide"), e.slideFullyVisibleClass = B(t, wi, "swiper-slide-fully-visible"), e.slideNextClass = B(t, Ri, "swiper-slide-next"), e.slidePrevClass = B(t, Pi, "swiper-slide-prev"), e.slideVisibleClass = B(t, Di, "swiper-slide-visible"), e.swipeHandler = B(t, Wi), e.swiperElementNodeName = B(t, Yi, "SWIPER-CONTAINER"), e.wrapperClass = B(t, ll, "swiper-wrapper");
|
|
4945
4945
|
}
|
|
4946
|
-
function
|
|
4946
|
+
function Jr() {
|
|
4947
4947
|
document.querySelectorAll(".swiper-wrapper").forEach((e) => {
|
|
4948
4948
|
e.querySelectorAll(".swiper-slide").forEach((t, s) => {
|
|
4949
|
-
const a = t.querySelector(`[${pe}=${
|
|
4949
|
+
const a = t.querySelector(`[${pe}=${Wr}]`);
|
|
4950
4950
|
a && (a.textContent = (s + 1).toString());
|
|
4951
4951
|
});
|
|
4952
4952
|
});
|
|
4953
4953
|
}
|
|
4954
|
-
function
|
|
4954
|
+
function eo(e, t, s, a) {
|
|
4955
4955
|
const n = B(t, tt, "");
|
|
4956
4956
|
if (!n || n === "")
|
|
4957
4957
|
return;
|
|
@@ -4968,21 +4968,21 @@ function Jr(e, t, s, a) {
|
|
|
4968
4968
|
thumbsContainerClass: B(t, yr, "swiper-thumbs")
|
|
4969
4969
|
}, e;
|
|
4970
4970
|
}
|
|
4971
|
-
function
|
|
4971
|
+
function to(e, t) {
|
|
4972
4972
|
e.keyboard = {
|
|
4973
4973
|
enabled: D(t, pl, !1),
|
|
4974
4974
|
onlyInViewport: D(t, ml, !0),
|
|
4975
4975
|
pageUpDown: D(t, hl, !0)
|
|
4976
4976
|
};
|
|
4977
4977
|
}
|
|
4978
|
-
function
|
|
4978
|
+
function so(e, t) {
|
|
4979
4979
|
e.hashNavigation = {
|
|
4980
4980
|
//getSlideIndex
|
|
4981
4981
|
replaceState: D(t, rl, !1),
|
|
4982
4982
|
watchState: D(t, ol, !1)
|
|
4983
4983
|
};
|
|
4984
4984
|
}
|
|
4985
|
-
function
|
|
4985
|
+
function ao(e, t) {
|
|
4986
4986
|
e.history = {
|
|
4987
4987
|
keepQuery: D(t, dl, !1),
|
|
4988
4988
|
key: B(t, cl, "slides"),
|
|
@@ -4990,7 +4990,7 @@ function so(e, t) {
|
|
|
4990
4990
|
root: B(t, ul, "")
|
|
4991
4991
|
};
|
|
4992
4992
|
}
|
|
4993
|
-
function
|
|
4993
|
+
function no(e, t, s, a) {
|
|
4994
4994
|
const n = B(t, et, "");
|
|
4995
4995
|
if (!n) return;
|
|
4996
4996
|
const i = Ma(s, n, a);
|
|
@@ -5000,16 +5000,16 @@ function ao(e, t, s, a) {
|
|
|
5000
5000
|
inverse: D(t, un, !1)
|
|
5001
5001
|
};
|
|
5002
5002
|
}
|
|
5003
|
-
function
|
|
5003
|
+
function io(e, t) {
|
|
5004
5004
|
return e.a11y = {
|
|
5005
|
-
containerMessage: B(t,
|
|
5005
|
+
containerMessage: B(t, Ra, ""),
|
|
5006
5006
|
containerRole: B(t, Pa, ""),
|
|
5007
5007
|
containerRoleDescriptionMessage: B(t, Oa, ""),
|
|
5008
5008
|
enabled: D(t, Da, !0),
|
|
5009
5009
|
firstSlideMessage: B(t, Na, "This is the first slide"),
|
|
5010
5010
|
id: B(t, za, ""),
|
|
5011
|
-
itemRoleDescriptionMessage: B(t,
|
|
5012
|
-
lastSlideMessage: B(t,
|
|
5011
|
+
itemRoleDescriptionMessage: B(t, ka, ""),
|
|
5012
|
+
lastSlideMessage: B(t, $a, "This is the last slide"),
|
|
5013
5013
|
nextSlideMessage: B(t, Ga, "Next slide"),
|
|
5014
5014
|
notificationClass: B(t, Ba, "swiper-notification"),
|
|
5015
5015
|
paginationBulletMessage: B(t, Ha, "Go to slide {{index}}"),
|
|
@@ -5051,28 +5051,28 @@ function Pe(e, t) {
|
|
|
5051
5051
|
r && s.add(r), u.update();
|
|
5052
5052
|
}), s.forEach((a) => a.remove());
|
|
5053
5053
|
}
|
|
5054
|
-
function
|
|
5054
|
+
function lo() {
|
|
5055
5055
|
Pe(Ar, "add"), Pe(_r, "append"), Pe(xr, "prepend"), Pe(Lr, "remove");
|
|
5056
5056
|
}
|
|
5057
|
-
function
|
|
5057
|
+
function ro(e, t) {
|
|
5058
5058
|
e.zoom = {
|
|
5059
5059
|
containerClass: B(t, Cr, "swiper-zoom-container"),
|
|
5060
5060
|
limitToOriginalSize: D(t, Mr, !1),
|
|
5061
5061
|
maxRatio: W(t, Ir, 3),
|
|
5062
|
-
minRatio: W(t,
|
|
5063
|
-
panOnMouseMove: D(t,
|
|
5062
|
+
minRatio: W(t, wr, 1),
|
|
5063
|
+
panOnMouseMove: D(t, Rr, !1),
|
|
5064
5064
|
toggle: D(t, Pr, !0),
|
|
5065
5065
|
zoomedSlideClass: B(t, Or, "swiper-slide-zoomed")
|
|
5066
5066
|
};
|
|
5067
5067
|
}
|
|
5068
|
-
function
|
|
5069
|
-
e.allowTouchMove = D(t,
|
|
5068
|
+
function oo(e, t) {
|
|
5069
|
+
e.allowTouchMove = D(t, Rn, !0), e.edgeSwipeDetection = D(t, Bn, !1), e.edgeSwipeThreshold = W(t, Hn, 20), e.focusableElements = B(
|
|
5070
5070
|
t,
|
|
5071
5071
|
Fn,
|
|
5072
5072
|
"input, select, option, textarea, button, video, label"
|
|
5073
5073
|
), e.followFinger = D(t, Xn, !0), e.grabCursor = D(t, Un, !1), e.longSwipes = D(t, Jn, !0), e.longSwipesMs = W(t, ei, 300), e.longSwipesRatio = W(t, ti, 0.5), e.noSwiping = D(t, ri, !0), e.noSwipingClass = B(t, oi, "swiper-no-swiping"), e.noSwipingSelector = B(t, di), e.preventClicks = D(t, gi, !0), e.preventClicksPropagation = D(t, Ti, !0), e.preventInteractionOnTransition = D(t, Ei, !1), e.resistance = D(t, vi, !0), e.resistanceRatio = W(t, Si, 0.85), e.shortSwipes = D(t, xi, !0), e.simulateTouch = D(t, Li, !0), e.slideToClickedSlide = D(t, Oi, !1), e.threshold = W(t, Fi, 5), e.touchAngle = W(t, Xi, 45), e.touchEventsTarget = Ce(t, Ui, "wrapper"), e.touchMoveStopPropagation = D(t, qi, !1), e.touchRatio = W(t, ji, 1), e.touchReleaseOnEdges = D(t, Ki, !1), e.touchStartForcePreventDefault = D(t, Zi, !1), e.touchStartPreventDefault = D(t, Qi, !0);
|
|
5074
5074
|
}
|
|
5075
|
-
function
|
|
5075
|
+
function co(e, t) {
|
|
5076
5076
|
e.mousewheel = {
|
|
5077
5077
|
enabled: D(t, gl, !1),
|
|
5078
5078
|
eventsTarget: B(t, Tl, "container"),
|
|
@@ -5085,7 +5085,7 @@ function oo(e, t) {
|
|
|
5085
5085
|
thresholdTime: W(t, _l)
|
|
5086
5086
|
};
|
|
5087
5087
|
}
|
|
5088
|
-
function
|
|
5088
|
+
function fo(e, t) {
|
|
5089
5089
|
e.freeMode = {
|
|
5090
5090
|
enabled: D(t, sr, !1),
|
|
5091
5091
|
minimumVelocity: W(t, ar, 0.02),
|
|
@@ -5097,21 +5097,42 @@ function co(e, t) {
|
|
|
5097
5097
|
sticky: D(t, dr, !1)
|
|
5098
5098
|
};
|
|
5099
5099
|
}
|
|
5100
|
-
function fo(e, t) {
|
|
5101
|
-
e.lazyPreloadPrevNext = W(t, Zn, 0), e.lazyPreloaderClass = B(t, Qn, "swiper-lazy-preloader");
|
|
5102
|
-
}
|
|
5103
5100
|
function uo(e, t) {
|
|
5104
|
-
e.
|
|
5101
|
+
e.lazyPreloadPrevNext = W(t, Zn, 0), e.lazyPreloaderClass = B(t, Qn, "swiper-lazy-preloader");
|
|
5105
5102
|
}
|
|
5106
5103
|
function po(e, t) {
|
|
5107
|
-
e.
|
|
5104
|
+
e.createElements = D(t, kn, !1), e.cssMode = D(t, $n, !1), e.enabled = D(t, Wn, !0), e.eventsPrefix = B(t, Yn, "swiper"), e.init = D(t, jn, !0), e.maxBackfaceHiddenSlides = W(t, ii, 10), e.passiveListeners = D(t, hi, !0), e.roundLengths = D(t, yi, !1), e.runCallbacksOnInit = D(t, Ai, !0), e.setWrapperSize = D(t, _i, !1), e.uniqueNavElements = D(t, Ji, !0), e.url = B(t, tl), e.userAgent = B(t, sl);
|
|
5108
5105
|
}
|
|
5109
5106
|
function mo(e, t) {
|
|
5107
|
+
e.observeParents = D(t, fi, !1), e.observeSlideChildren = D(t, ui, !1), e.observer = D(t, pi, !1), e.resizeObserver = D(t, bi, !0), e.updateOnWindowResize = D(t, el, !0), e.watchOverflow = D(t, al, !0), e.watchSlidesProgress = D(t, nl, !1);
|
|
5108
|
+
}
|
|
5109
|
+
function ho(e, t) {
|
|
5110
5110
|
e.parallax = {
|
|
5111
5111
|
enabled: D(t, Dr, !1)
|
|
5112
5112
|
};
|
|
5113
5113
|
}
|
|
5114
|
-
|
|
5114
|
+
function go(e, t) {
|
|
5115
|
+
const s = B(t, Nr, void 0);
|
|
5116
|
+
if (s) {
|
|
5117
|
+
let a = 0;
|
|
5118
|
+
e.on = {
|
|
5119
|
+
...e.on,
|
|
5120
|
+
slideChange: function() {
|
|
5121
|
+
const n = this, i = n.activeIndex, u = n.slides[i], o = n.slides[a], r = window[s];
|
|
5122
|
+
typeof r == "function" ? r({
|
|
5123
|
+
swiper: n,
|
|
5124
|
+
activeIndex: i,
|
|
5125
|
+
previousIndex: a,
|
|
5126
|
+
activeSlide: u,
|
|
5127
|
+
previousSlide: o
|
|
5128
|
+
}) : console.warn(
|
|
5129
|
+
`Waterfall: Callback function "${s}" not found on window object.`
|
|
5130
|
+
), a = i;
|
|
5131
|
+
}
|
|
5132
|
+
};
|
|
5133
|
+
}
|
|
5134
|
+
}
|
|
5135
|
+
console.log("🚿 Hello from Wellflow Waterfall v1.2.14");
|
|
5115
5136
|
const De = [];
|
|
5116
5137
|
window.waterfalls = De;
|
|
5117
5138
|
function ht(e, t) {
|
|
@@ -5124,16 +5145,16 @@ let Ae = 0;
|
|
|
5124
5145
|
document.addEventListener("DOMContentLoaded", () => {
|
|
5125
5146
|
document.querySelectorAll(`[${ve}]`).forEach((e) => {
|
|
5126
5147
|
e.hasAttribute(tt) || e.hasAttribute(et) || Lt(e, Ae++);
|
|
5127
|
-
}), Ae = ht(`[${ve}][${tt}]`, Ae), Ae = ht(`[${ve}][${et}]`, Ae),
|
|
5148
|
+
}), Ae = ht(`[${ve}][${tt}]`, Ae), Ae = ht(`[${ve}][${et}]`, Ae), Jr(), Ia();
|
|
5128
5149
|
});
|
|
5129
5150
|
function Lt(e, t) {
|
|
5130
5151
|
{
|
|
5131
5152
|
const s = B(e, ve, `Swiper ${t}`);
|
|
5132
5153
|
if (!s) return;
|
|
5133
|
-
const a = !!D(e,
|
|
5154
|
+
const a = !!D(e, wa, !1);
|
|
5134
5155
|
a && console.warn(`Initializing Waterfall: ${s}`);
|
|
5135
5156
|
let n = {};
|
|
5136
|
-
|
|
5157
|
+
Qr(n, e), Fr(n, e), qr(n, e), Yr(n, e, s), Xr(n, e), Ur(n, e), Kr(n, e), fo(n, e), Zr(n, e), eo(n, e, De, a), to(n, e), co(n, e), oo(n, e), so(n, e), ao(n, e), no(n, e, De, a), io(n, e), uo(n, e), mo(n, e), ro(n, e), ho(n, e), go(n, e), po(n, e), lo(), a && console.warn(n);
|
|
5137
5158
|
const i = yt(n), u = e.querySelector(".swiper");
|
|
5138
5159
|
a && console.log("SWIPER: ", u);
|
|
5139
5160
|
const o = u?.querySelectorAll(".swiper-slide") || [];
|
|
@@ -5146,15 +5167,15 @@ function Lt(e, t) {
|
|
|
5146
5167
|
}
|
|
5147
5168
|
}
|
|
5148
5169
|
export {
|
|
5149
|
-
|
|
5150
|
-
|
|
5170
|
+
bo as ATTR_A11Y,
|
|
5171
|
+
Ra as ATTR_A11Y_CONTAINER_MESSAGE,
|
|
5151
5172
|
Pa as ATTR_A11Y_CONTAINER_ROLE,
|
|
5152
5173
|
Oa as ATTR_A11Y_CONTAINER_ROLE_DESCRIPTION_MESSAGE,
|
|
5153
5174
|
Da as ATTR_A11Y_ENABLED,
|
|
5154
5175
|
Na as ATTR_A11Y_FIRST_SLIDE_MESSAGE,
|
|
5155
5176
|
za as ATTR_A11Y_ID,
|
|
5156
|
-
|
|
5157
|
-
|
|
5177
|
+
ka as ATTR_A11Y_ITEM_ROLE_DESCRIPTION_MESSAGE,
|
|
5178
|
+
$a as ATTR_A11Y_LAST_SLIDE_MESSAGE,
|
|
5158
5179
|
Ga as ATTR_A11Y_NEXT_SLIDE_MESSAGE,
|
|
5159
5180
|
Ba as ATTR_A11Y_NOTIFICATION_CLASS,
|
|
5160
5181
|
Ha as ATTR_A11Y_PAGINATION_BULLET_MESSAGE,
|
|
@@ -5162,19 +5183,20 @@ export {
|
|
|
5162
5183
|
Wa as ATTR_A11Y_SCROLL_ON_FOCUS,
|
|
5163
5184
|
Ya as ATTR_A11Y_SLIDE_LABEL_MESSAGE,
|
|
5164
5185
|
Fa as ATTR_A11Y_SLIDE_ROLE,
|
|
5165
|
-
|
|
5186
|
+
So as ATTR_ADVANCED_DEBUG_MODE,
|
|
5166
5187
|
In as ATTR_ALLOW_SLIDE_NEXT,
|
|
5167
|
-
|
|
5168
|
-
|
|
5188
|
+
wn as ATTR_ALLOW_SLIDE_PREV,
|
|
5189
|
+
Rn as ATTR_ALLOW_TOUCH_MOVE,
|
|
5169
5190
|
Kl as ATTR_AUTOPLAY,
|
|
5170
5191
|
Pn as ATTR_AUTO_HEIGHT,
|
|
5171
5192
|
On as ATTR_BREAKPOINTS_BASE,
|
|
5193
|
+
Nr as ATTR_CALLBACK_SLIDE_CHANGE,
|
|
5172
5194
|
xn as ATTR_CARDS_PER_SLIDE_OFFSET,
|
|
5173
5195
|
Ln as ATTR_CARDS_PER_SLIDE_ROTATE,
|
|
5174
5196
|
Cn as ATTR_CARDS_ROTATE,
|
|
5175
5197
|
Mn as ATTR_CARDS_SLIDE_SHADOWS,
|
|
5176
5198
|
Nn as ATTR_CENTERED_SLIDES,
|
|
5177
|
-
|
|
5199
|
+
_o as ATTR_CENTERED_SLIDES_BOUNDS,
|
|
5178
5200
|
Dn as ATTR_CENTER_INSUFFICIENT_SLIDES,
|
|
5179
5201
|
zn as ATTR_CONTAINER_MODIFIER_CLASS,
|
|
5180
5202
|
et as ATTR_CONTROLLER,
|
|
@@ -5186,13 +5208,13 @@ export {
|
|
|
5186
5208
|
gn as ATTR_COVERFLOW_SCALE,
|
|
5187
5209
|
Tn as ATTR_COVERFLOW_SLIDE_SHADOWS,
|
|
5188
5210
|
En as ATTR_COVERFLOW_STRETCH,
|
|
5189
|
-
|
|
5190
|
-
|
|
5211
|
+
kn as ATTR_CREATE_ELEMENTS,
|
|
5212
|
+
$n as ATTR_CSS_MODE,
|
|
5191
5213
|
bn as ATTR_CUBE_SHADOW,
|
|
5192
5214
|
yn as ATTR_CUBE_SHADOW_OFFSET,
|
|
5193
5215
|
An as ATTR_CUBE_SHADOW_SCALE,
|
|
5194
5216
|
_n as ATTR_CUBE_SLIDE_SHADOWS,
|
|
5195
|
-
|
|
5217
|
+
wa as ATTR_DEBUG_MODE,
|
|
5196
5218
|
Zl as ATTR_DELAY,
|
|
5197
5219
|
Ja as ATTR_DESKTOP_CENTERED_SLIDES,
|
|
5198
5220
|
tn as ATTR_DESKTOP_SLIDES_PER_GROUP,
|
|
@@ -5203,7 +5225,7 @@ export {
|
|
|
5203
5225
|
Bn as ATTR_EDGE_SWIPE_DETECTION,
|
|
5204
5226
|
Hn as ATTR_EDGE_SWIPE_THRESHOLD,
|
|
5205
5227
|
Vn as ATTR_EFFECT,
|
|
5206
|
-
|
|
5228
|
+
Ao as ATTR_EFFECT_CROSSFADE,
|
|
5207
5229
|
Wn as ATTR_ENABLED,
|
|
5208
5230
|
Yn as ATTR_EVENTS_PREFIX,
|
|
5209
5231
|
vn as ATTR_FLIP_LIMIT_ROTATION,
|
|
@@ -5246,7 +5268,7 @@ export {
|
|
|
5246
5268
|
Jn as ATTR_LONG_SWIPES,
|
|
5247
5269
|
ei as ATTR_LONG_SWIPES_MS,
|
|
5248
5270
|
ti as ATTR_LONG_SWIPES_RATIO,
|
|
5249
|
-
|
|
5271
|
+
xo as ATTR_LOOP,
|
|
5250
5272
|
ai as ATTR_LOOP_ADD_ADDITIONAL_SLIDES,
|
|
5251
5273
|
si as ATTR_LOOP_ADD_BLANK_SLIDES,
|
|
5252
5274
|
ni as ATTR_LOOP_PREVENTS_SLIDING,
|
|
@@ -5254,7 +5276,7 @@ export {
|
|
|
5254
5276
|
Ar as ATTR_MANIPULATION_ADD_SLIDE,
|
|
5255
5277
|
_r as ATTR_MANIPULATION_APPEND_SLIDE,
|
|
5256
5278
|
xr as ATTR_MANIPULATION_PREPEND_SLIDE,
|
|
5257
|
-
|
|
5279
|
+
Po as ATTR_MANIPULATION_REMOVE_ALL_SLIDES,
|
|
5258
5280
|
mt as ATTR_MANIPULATION_REMOVE_INDEX,
|
|
5259
5281
|
Lr as ATTR_MANIPULATION_REMOVE_SLIDE,
|
|
5260
5282
|
ii as ATTR_MAX_BACKFACE_HIDDEN_SLIDES,
|
|
@@ -5270,9 +5292,9 @@ export {
|
|
|
5270
5292
|
Cl as ATTR_NAVIGATION_DISABLED_CLASS,
|
|
5271
5293
|
Ml as ATTR_NAVIGATION_ENABLED,
|
|
5272
5294
|
Il as ATTR_NAVIGATION_HIDDEN_CLASS,
|
|
5273
|
-
|
|
5295
|
+
wl as ATTR_NAVIGATION_HIDE_ON_CLICK,
|
|
5274
5296
|
_t as ATTR_NAVIGATION_LOCK_CLASS,
|
|
5275
|
-
|
|
5297
|
+
Rl as ATTR_NAVIGATION_NAVIGATION_DISABLED_CLASS,
|
|
5276
5298
|
li as ATTR_NESTED,
|
|
5277
5299
|
ci as ATTR_NORMALIZE_SLIDE_INDEX,
|
|
5278
5300
|
ri as ATTR_NO_SWIPING,
|
|
@@ -5283,17 +5305,17 @@ export {
|
|
|
5283
5305
|
fi as ATTR_OBSERVE_SLIDE_PARENTS,
|
|
5284
5306
|
mi as ATTR_ONE_WAY_MOVEMENT,
|
|
5285
5307
|
Ol as ATTR_PAGINATION_BULLET_ACTIVE_CLASS,
|
|
5286
|
-
|
|
5308
|
+
Mo as ATTR_PAGINATION_BULLET_CLASS,
|
|
5287
5309
|
Dl as ATTR_PAGINATION_CLICKABLE,
|
|
5288
5310
|
Nl as ATTR_PAGINATION_CLICKABLE_CLASS,
|
|
5289
5311
|
zl as ATTR_PAGINATION_CURRENT_CLASS,
|
|
5290
|
-
|
|
5291
|
-
|
|
5312
|
+
kl as ATTR_PAGINATION_DYNAMIC_BULLETS,
|
|
5313
|
+
$l as ATTR_PAGINATION_DYNAMIC_MAIN_BULLETS,
|
|
5292
5314
|
Gl as ATTR_PAGINATION_ENABLED,
|
|
5293
5315
|
Bl as ATTR_PAGINATION_HIDDEN_CLASS,
|
|
5294
5316
|
Hl as ATTR_PAGINATION_HIDE_ON_CLICK,
|
|
5295
5317
|
Vl as ATTR_PAGINATION_HORIZONTAL_CLASS,
|
|
5296
|
-
|
|
5318
|
+
Io as ATTR_PAGINATION_LOCK_CLASS,
|
|
5297
5319
|
Wl as ATTR_PAGINATION_MODIFIER_CLASS,
|
|
5298
5320
|
Yl as ATTR_PAGINATION_PAGINATION_DISABLED_CLASS,
|
|
5299
5321
|
Fl as ATTR_PAGINATION_PROGRESSBAR_FILL_CLASS,
|
|
@@ -5302,16 +5324,16 @@ export {
|
|
|
5302
5324
|
ql as ATTR_PAGINATION_TOTAL_CLASS,
|
|
5303
5325
|
Pl as ATTR_PAGINATION_TYPE,
|
|
5304
5326
|
jl as ATTR_PAGINATION_VERTICAL_CLASS,
|
|
5305
|
-
|
|
5306
|
-
|
|
5327
|
+
zo as ATTR_PARALLAX,
|
|
5328
|
+
Ho as ATTR_PARALLAX_DURATION,
|
|
5307
5329
|
Dr as ATTR_PARALLAX_ENABLED,
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5330
|
+
Bo as ATTR_PARALLAX_OPACITY,
|
|
5331
|
+
Go as ATTR_PARALLAX_SCALE,
|
|
5332
|
+
ko as ATTR_PARALLAX_X,
|
|
5333
|
+
$o as ATTR_PARALLAX_Y,
|
|
5312
5334
|
hi as ATTR_PASSIVE_LISTENERS,
|
|
5313
5335
|
er as ATTR_PAUSE_ON_MOUSE_ENTER,
|
|
5314
|
-
|
|
5336
|
+
zr as ATTR_PLAYBACK_MODE,
|
|
5315
5337
|
gi as ATTR_PREVENT_CLICKS,
|
|
5316
5338
|
Ti as ATTR_PREVENT_CLICKS_PROPAGATION,
|
|
5317
5339
|
Ei as ATTR_PREVENT_INTERACTION_ON_TRANSITION,
|
|
@@ -5319,11 +5341,11 @@ export {
|
|
|
5319
5341
|
Si as ATTR_RESISTANCE_RATIO,
|
|
5320
5342
|
bi as ATTR_RESIZE_OBSERVER,
|
|
5321
5343
|
Jl as ATTR_REVERSE_DIRECTION,
|
|
5322
|
-
|
|
5344
|
+
Lo as ATTR_REWIND,
|
|
5323
5345
|
yi as ATTR_ROUND_LENGTHS,
|
|
5324
5346
|
Ai as ATTR_RUN_CALLBACKS_ON_INIT,
|
|
5325
5347
|
fr as ATTR_SCROLLBAR_DRAGGABLE,
|
|
5326
|
-
|
|
5348
|
+
Ro as ATTR_SCROLLBAR_DRAG_CLASS,
|
|
5327
5349
|
cr as ATTR_SCROLLBAR_DRAG_SIZE,
|
|
5328
5350
|
ur as ATTR_SCROLLBAR_ENABLED,
|
|
5329
5351
|
pr as ATTR_SCROLLBAR_HIDE,
|
|
@@ -5337,15 +5359,15 @@ export {
|
|
|
5337
5359
|
Li as ATTR_SIMULATE_TOUCH,
|
|
5338
5360
|
Ni as ATTR_SLIDES_OFFSET_AFTER,
|
|
5339
5361
|
zi as ATTR_SLIDES_OFFSET_BEFORE,
|
|
5340
|
-
|
|
5341
|
-
|
|
5362
|
+
ki as ATTR_SLIDES_PER_GROUP,
|
|
5363
|
+
$i as ATTR_SLIDES_PER_GROUP_AUTO,
|
|
5342
5364
|
Gi as ATTR_SLIDES_PER_GROUP_SKIP,
|
|
5343
5365
|
Bi as ATTR_SLIDES_PER_VIEW,
|
|
5344
5366
|
Ci as ATTR_SLIDE_ACTIVE_CLASS,
|
|
5345
5367
|
Ii as ATTR_SLIDE_BLANK_CLASS,
|
|
5346
5368
|
Mi as ATTR_SLIDE_CLASS,
|
|
5347
|
-
|
|
5348
|
-
|
|
5369
|
+
wi as ATTR_SLIDE_FULLY_VISIBLE_CLASS,
|
|
5370
|
+
Ri as ATTR_SLIDE_NEXT_CLASS,
|
|
5349
5371
|
Pi as ATTR_SLIDE_PREV_CLASS,
|
|
5350
5372
|
Oi as ATTR_SLIDE_TO_CLICKED_SLIDE,
|
|
5351
5373
|
Di as ATTR_SLIDE_VISIBLE_CLASS,
|
|
@@ -5356,7 +5378,7 @@ export {
|
|
|
5356
5378
|
Yi as ATTR_SWIPER_ELEMENT_NODE_NAME,
|
|
5357
5379
|
Wi as ATTR_SWIPE_HANDLER,
|
|
5358
5380
|
Ka as ATTR_TABLET_CENTERED_SLIDES,
|
|
5359
|
-
|
|
5381
|
+
yo as ATTR_TABLET_SLIDES_PER_GROUP,
|
|
5360
5382
|
Za as ATTR_TABLET_SLIDES_PER_VIEW,
|
|
5361
5383
|
Qa as ATTR_TABLET_SPACE_BETWEEN,
|
|
5362
5384
|
Fi as ATTR_THRESHOLD,
|
|
@@ -5376,39 +5398,39 @@ export {
|
|
|
5376
5398
|
el as ATTR_UPDATE_ON_WINDOW_RESIZE,
|
|
5377
5399
|
tl as ATTR_URL,
|
|
5378
5400
|
sl as ATTR_USER_AGENT,
|
|
5379
|
-
|
|
5380
|
-
|
|
5401
|
+
Co as ATTR_VIRTUAL_TRANSLATE,
|
|
5402
|
+
wo as ATTR_WAIT_FOR_TRANSITION,
|
|
5381
5403
|
al as ATTR_WATCH_OVERFLOW,
|
|
5382
5404
|
nl as ATTR_WATCH_SLIDES_PROGRESS,
|
|
5383
5405
|
ve as ATTR_WATERFALL,
|
|
5384
|
-
|
|
5406
|
+
vo as ATTR_WATERFALL_CONTENT,
|
|
5385
5407
|
pe as ATTR_WATERFALL_ELEMENT,
|
|
5386
|
-
|
|
5387
|
-
|
|
5408
|
+
Eo as ATTR_WATERFALL_POSTLOAD,
|
|
5409
|
+
To as ATTR_WATERFALL_PRELOAD,
|
|
5388
5410
|
il as ATTR_WIDTH,
|
|
5389
5411
|
ll as ATTR_WRAPPER_CLASS,
|
|
5390
5412
|
rn as ATTR_XLARGE_CENTERED_SLIDES,
|
|
5391
5413
|
dn as ATTR_XLARGE_SLIDES_PER_GROUP,
|
|
5392
5414
|
on as ATTR_XLARGE_SLIDES_PER_VIEW,
|
|
5393
5415
|
cn as ATTR_XLARGE_SPACE_BETWEEN,
|
|
5394
|
-
|
|
5416
|
+
Oo as ATTR_ZOOM,
|
|
5395
5417
|
Or as ATTR_ZOOMED_SLIDE_CLASS,
|
|
5396
5418
|
Cr as ATTR_ZOOM_CONTAINER_CLASS,
|
|
5397
|
-
|
|
5398
|
-
|
|
5419
|
+
Do as ATTR_ZOOM_ENABLED,
|
|
5420
|
+
No as ATTR_ZOOM_FADE,
|
|
5399
5421
|
Mr as ATTR_ZOOM_LIMIT_TO_ORIGINAL_SIZE,
|
|
5400
5422
|
Ir as ATTR_ZOOM_MAX_RATIO,
|
|
5401
|
-
|
|
5402
|
-
|
|
5423
|
+
wr as ATTR_ZOOM_MIN_RATIO,
|
|
5424
|
+
Rr as ATTR_ZOOM_PAN_ON_MOUSE_MOVE,
|
|
5403
5425
|
Pr as ATTR_ZOOM_TOGGLE,
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5426
|
+
Wo as EL_NAVIGATION,
|
|
5427
|
+
Gr as EL_NAVIGATION_NEXT,
|
|
5428
|
+
Br as EL_NAVIGATION_PREV,
|
|
5429
|
+
kr as EL_PAGINATION,
|
|
5408
5430
|
$r as EL_PAGINATION_BULLET,
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5431
|
+
Vo as EL_PAGINATION_BULLET_ACTIVE,
|
|
5432
|
+
Hr as EL_SCROLLBAR,
|
|
5433
|
+
Vr as EL_SCROLLBAR_DRAG,
|
|
5434
|
+
Wr as EL_SLIDE_COUNT
|
|
5413
5435
|
};
|
|
5414
5436
|
//# sourceMappingURL=well-waterfall.es.js.map
|