1/** 2 * Swiper 9.4.1 3 * Most modern mobile touch slider and framework with hardware accelerated transitions 4 * https://swiperjs.com 5 * 6 * Copyright 2014-2023 Vladimir Kharlampidi 7 * 8 * Released under the MIT License 9 * 10 * Released on: June 13, 2023 11 */ 12 13!(function (e, t) { 14 "object" == typeof exports && "undefined" != typeof module ? (module.exports = t()) : "function" == typeof define && define.amd ? define(t) : ((e = "undefined" != typeof globalThis ? globalThis : e || self).Swiper = t()) 15})(this, function () { 16 "use strict" 17 function e(e) { 18 return null !== e && "object" == typeof e && "constructor" in e && e.constructor === Object 19 } 20 function t(s, a) { 21 void 0 === s && (s = {}), 22 void 0 === a && (a = {}), 23 Object.keys(a).forEach((i) => { 24 void 0 === s[i] ? (s[i] = a[i]) : e(a[i]) && e(s[i]) && Object.keys(a[i]).length > 0 && t(s[i], a[i]) 25 }) 26 } 27 const s = { 28 body: {}, 29 addEventListener() {}, 30 removeEventListener() {}, 31 activeElement: { blur() {}, nodeName: "" }, 32 querySelector: () => null, 33 querySelectorAll: () => [], 34 getElementById: () => null, 35 createEvent: () => ({ initEvent() {} }), 36 createElement: () => ({ children: [], childNodes: [], style: {}, setAttribute() {}, getElementsByTagName: () => [] }), 37 createElementNS: () => ({}), 38 importNode: () => null, 39 location: { hash: "", host: "", hostname: "", href: "", origin: "", pathname: "", protocol: "", search: "" }, 40 } 41 function a() { 42 const e = "undefined" != typeof document ? document : {} 43 return t(e, s), e 44 } 45 const i = { 46 document: s, 47 navigator: { userAgent: "" }, 48 location: { hash: "", host: "", hostname: "", href: "", origin: "", pathname: "", protocol: "", search: "" }, 49 history: { replaceState() {}, pushState() {}, go() {}, back() {} }, 50 CustomEvent: function () { 51 return this 52 }, 53 addEventListener() {}, 54 removeEventListener() {}, 55 getComputedStyle: () => ({ getPropertyValue: () => "" }), 56 Image() {}, 57 Date() {}, 58 screen: {}, 59 setTimeout() {}, 60 clearTimeout() {}, 61 matchMedia: () => ({}), 62 requestAnimationFrame: (e) => ("undefined" == typeof setTimeout ? (e(), null) : setTimeout(e, 0)), 63 cancelAnimationFrame(e) { 64 "undefined" != typeof setTimeout && clearTimeout(e) 65 }, 66 } 67 function r() { 68 const e = "undefined" != typeof window ? window : {} 69 return t(e, i), e 70 } 71 function n(e, t) { 72 return void 0 === t && (t = 0), setTimeout(e, t) 73 } 74 function l() { 75 return Date.now() 76 } 77 function o(e, t) { 78 void 0 === t && (t = "x") 79 const s = r() 80 let a, i, n 81 const l = (function (e) { 82 const t = r() 83 let s 84 return t.getComputedStyle && (s = t.getComputedStyle(e, null)), !s && e.currentStyle && (s = e.currentStyle), s || (s = e.style), s 85 })(e) 86 return ( 87 s.WebKitCSSMatrix 88 ? ((i = l.transform || l.webkitTransform), 89 i.split(",").length > 6 && 90 (i = i 91 .split(", ") 92 .map((e) => e.replace(",", ".")) 93 .join(", ")), 94 (n = new s.WebKitCSSMatrix("none" === i ? "" : i))) 95 : ((n = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,")), (a = n.toString().split(","))), 96 "x" === t && (i = s.WebKitCSSMatrix ? n.m41 : 16 === a.length ? parseFloat(a[12]) : parseFloat(a[4])), 97 "y" === t && (i = s.WebKitCSSMatrix ? n.m42 : 16 === a.length ? parseFloat(a[13]) : parseFloat(a[5])), 98 i || 0 99 ) 100 } 101 function d(e) { 102 return "object" == typeof e && null !== e && e.constructor && "Object" === Object.prototype.toString.call(e).slice(8, -1) 103 } 104 function c(e) { 105 return "undefined" != typeof window && void 0 !== window.HTMLElement ? e instanceof HTMLElement : e && (1 === e.nodeType || 11 === e.nodeType) 106 } 107 function p() { 108 const e = Object(arguments.length <= 0 ? void 0 : arguments[0]), 109 t = ["__proto__", "constructor", "prototype"] 110 for (let s = 1; s < arguments.length; s += 1) { 111 const a = s < 0 || arguments.length <= s ? void 0 : arguments[s] 112 if (null != a && !c(a)) { 113 const s = Object.keys(Object(a)).filter((e) => t.indexOf(e) < 0) 114 for (let t = 0, i = s.length; t < i; t += 1) { 115 const i = s[t], 116 r = Object.getOwnPropertyDescriptor(a, i) 117 void 0 !== r && r.enumerable && (d(e[i]) && d(a[i]) ? (a[i].__swiper__ ? (e[i] = a[i]) : p(e[i], a[i])) : !d(e[i]) && d(a[i]) ? ((e[i] = {}), a[i].__swiper__ ? (e[i] = a[i]) : p(e[i], a[i])) : (e[i] = a[i])) 118 } 119 } 120 } 121 return e 122 } 123 function u(e, t, s) { 124 e.style.setProperty(t, s) 125 } 126 function m(e) { 127 let { swiper: t, targetPosition: s, side: a } = e 128 const i = r(), 129 n = -t.translate 130 let l, 131 o = null 132 const d = t.params.speed 133 ;(t.wrapperEl.style.scrollSnapType = "none"), i.cancelAnimationFrame(t.cssModeFrameID) 134 const c = s > n ? "next" : "prev", 135 p = (e, t) => ("next" === c && e >= t) || ("prev" === c && e <= t), 136 u = () => { 137 ;(l = new Date().getTime()), null === o && (o = l) 138 const e = Math.max(Math.min((l - o) / d, 1), 0), 139 r = 0.5 - Math.cos(e * Math.PI) / 2 140 let c = n + r * (s - n) 141 if ((p(c, s) && (c = s), t.wrapperEl.scrollTo({ [a]: c }), p(c, s))) 142 return ( 143 (t.wrapperEl.style.overflow = "hidden"), 144 (t.wrapperEl.style.scrollSnapType = ""), 145 setTimeout(() => { 146 ;(t.wrapperEl.style.overflow = ""), t.wrapperEl.scrollTo({ [a]: c }) 147 }), 148 void i.cancelAnimationFrame(t.cssModeFrameID) 149 ) 150 t.cssModeFrameID = i.requestAnimationFrame(u) 151 } 152 u() 153 } 154 function h(e) { 155 return e.querySelector(".swiper-slide-transform") || (e.shadowEl && e.shadowEl.querySelector(".swiper-slide-transform")) || e 156 } 157 function f(e, t) { 158 return void 0 === t && (t = ""), [...e.children].filter((e) => e.matches(t)) 159 } 160 function g(e, t) { 161 void 0 === t && (t = []) 162 const s = document.createElement(e) 163 return s.classList.add(...(Array.isArray(t) ? t : [t])), s 164 } 165 function v(e) { 166 const t = r(), 167 s = a(), 168 i = e.getBoundingClientRect(), 169 n = s.body, 170 l = e.clientTop || n.clientTop || 0, 171 o = e.clientLeft || n.clientLeft || 0, 172 d = e === t ? t.scrollY : e.scrollTop, 173 c = e === t ? t.scrollX : e.scrollLeft 174 return { top: i.top + d - l, left: i.left + c - o } 175 } 176 function w(e, t) { 177 return r().getComputedStyle(e, null).getPropertyValue(t) 178 } 179 function b(e) { 180 let t, 181 s = e 182 if (s) { 183 for (t = 0; null !== (s = s.previousSibling); ) 1 === s.nodeType && (t += 1) 184 return t 185 } 186 } 187 function y(e, t) { 188 const s = [] 189 let a = e.parentElement 190 for (; a; ) t ? a.matches(t) && s.push(a) : s.push(a), (a = a.parentElement) 191 return s 192 } 193 function E(e, t) { 194 t && 195 e.addEventListener("transitionend", function s(a) { 196 a.target === e && (t.call(e, a), e.removeEventListener("transitionend", s)) 197 }) 198 } 199 function x(e, t, s) { 200 const a = r() 201 return s ? e["width" === t ? "offsetWidth" : "offsetHeight"] + parseFloat(a.getComputedStyle(e, null).getPropertyValue("width" === t ? "margin-right" : "margin-top")) + parseFloat(a.getComputedStyle(e, null).getPropertyValue("width" === t ? "margin-left" : "margin-bottom")) : e.offsetWidth 202 } 203 let S, T, M 204 function C() { 205 return ( 206 S || 207 (S = (function () { 208 const e = r(), 209 t = a() 210 return { smoothScroll: t.documentElement && t.documentElement.style && "scrollBehavior" in t.documentElement.style, touch: !!("ontouchstart" in e || (e.DocumentTouch && t instanceof e.DocumentTouch)) } 211 })()), 212 S 213 ) 214 } 215 function P(e) { 216 return ( 217 void 0 === e && (e = {}), 218 T || 219 (T = (function (e) { 220 let { userAgent: t } = void 0 === e ? {} : e 221 const s = C(), 222 a = r(), 223 i = a.navigator.platform, 224 n = t || a.navigator.userAgent, 225 l = { ios: !1, android: !1 }, 226 o = a.screen.width, 227 d = a.screen.height, 228 c = n.match(/(Android);?[\s\/]+([\d.]+)?/) 229 let p = n.match(/(iPad).*OS\s([\d_]+)/) 230 const u = n.match(/(iPod)(.*OS\s([\d_]+))?/), 231 m = !p && n.match(/(iPhone\sOS|iOS)\s([\d_]+)/), 232 h = "Win32" === i 233 let f = "MacIntel" === i 234 return ( 235 !p && f && s.touch && ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"].indexOf(`${o}x${d}`) >= 0 && ((p = n.match(/(Version)\/([\d.]+)/)), p || (p = [0, 1, "13_0_0"]), (f = !1)), 236 c && !h && ((l.os = "android"), (l.android = !0)), 237 (p || m || u) && ((l.os = "ios"), (l.ios = !0)), 238 l 239 ) 240 })(e)), 241 T 242 ) 243 } 244 function L() { 245 return ( 246 M || 247 (M = (function () { 248 const e = r() 249 let t = !1 250 function s() { 251 const t = e.navigator.userAgent.toLowerCase() 252 return t.indexOf("safari") >= 0 && t.indexOf("chrome") < 0 && t.indexOf("android") < 0 253 } 254 if (s()) { 255 const s = String(e.navigator.userAgent) 256 if (s.includes("Version/")) { 257 const [e, a] = s 258 .split("Version/")[1] 259 .split(" ")[0] 260 .split(".") 261 .map((e) => Number(e)) 262 t = e < 16 || (16 === e && a < 2) 263 } 264 } 265 return { isSafari: t || s(), needPerspectiveFix: t, isWebView: /(iPhone|iPod|iPad).*AppleWeb
265Kit(?!.*Safari)/i.test(e.navigator.userAgent) } 266 })()), 267 M 268 ) 269 } 270 var z = { 271 on(e, t, s) { 272 const a = this 273 if (!a.eventsListeners || a.destroyed) return a 274 if ("function" != typeof t) return a 275 const i = s ? "unshift" : "push" 276 return ( 277 e.split(" ").forEach((e) => { 278 a.eventsListeners[e] || (a.eventsListeners[e] = []), a.eventsListeners[e][i](t) 279 }), 280 a 281 ) 282 }, 283 once(e, t, s) { 284 const a = this 285 if (!a.eventsListeners || a.destroyed) return a 286 if ("function" != typeof t) return a 287 function i() { 288 a.off(e, i), i.__emitterProxy && delete i.__emitterProxy 289 for (var s = arguments.length, r = new Array(s), n = 0; n < s; n++) r[n] = arguments[n] 290 t.apply(a, r) 291 } 292 return (i.__emitterProxy = t), a.on(e, i, s) 293 }, 294 onAny(e, t) { 295 const s = this 296 if (!s.eventsListeners || s.destroyed) return s 297 if ("function" != typeof e) return s 298 const a = t ? "unshift" : "push" 299 return s.eventsAnyListeners.indexOf(e) < 0 && s.eventsAnyListeners[a](e), s 300 }, 301 offAny(e) { 302 const t = this 303 if (!t.eventsListeners || t.destroyed) return t 304 if (!t.eventsAnyListeners) return t 305 const s = t.eventsAnyListeners.indexOf(e) 306 return s >= 0 && t.eventsAnyListeners.splice(s, 1), t 307 }, 308 off(e, t) { 309 const s = this 310 return !s.eventsListeners || s.destroyed 311 ? s 312 : s.eventsListeners 313 ? (e.split(" ").forEach((e) => { 314 void 0 === t 315 ? (s.eventsListeners[e] = []) 316 : s.eventsListeners[e] && 317 s.eventsListeners[e].forEach((a, i) => { 318 ;(a === t || (a.__emitterProxy && a.__emitterProxy === t)) && s.eventsListeners[e].splice(i, 1) 319 }) 320 }), 321 s) 322 : s 323 }, 324 emit() { 325 const e = this 326 if (!e.eventsListeners || e.destroyed) return e 327 if (!e.eventsListeners) return e 328 let t, s, a 329 for (var i = arguments.length, r = new Array(i), n = 0; n < i; n++) r[n] = arguments[n] 330 "string" == typeof r[0] || Array.isArray(r[0]) ? ((t = r[0]), (s = r.slice(1, r.length)), (a = e)) : ((t = r[0].events), (s = r[0].data), (a = r[0].context || e)), s.unshift(a) 331 return ( 332 (Array.isArray(t) ? t : t.split(" ")).forEach((t) => { 333 e.eventsAnyListeners && 334 e.eventsAnyListeners.length && 335 e.eventsAnyListeners.forEach((e) => { 336 e.apply(a, [t, ...s]) 337 }), 338 e.eventsListeners && 339 e.eventsListeners[t] && 340 e.eventsListeners[t].forEach((e) => { 341 e.apply(a, s) 342 }) 343 }), 344 e 345 ) 346 }, 347 } 348 const A = (e, t) => { 349 if (!e || e.destroyed || !e.params) return 350 const s = t.closest(e.isElement ? "swiper-slide" : `.${e.params.slideClass}`) 351 if (s) { 352 const t = s.querySelector(`.${e.params.lazyPreloaderClass}`) 353 t && t.remove() 354 } 355 }, 356 $ = (e, t) => { 357 if (!e.slides[t]) return 358 const s = e.slides[t].querySelector('[loading="lazy"]') 359 s && s.removeAttribute("loading") 360 }, 361 I = (e) => { 362 if (!e || e.destroyed || !e.params) return 363 let t = e.params.lazyPreloadPrevNext 364 const s = e.slides.length 365 if (!s || !t || t < 0) return 366 t = Math.min(t, s) 367 const a = "auto" === e.params.slidesPerView ? e.slidesPerViewDynamic() : Math.ceil(e.params.slidesPerView), 368 i = e.activeIndex 369 if (e.params.grid && e.params.grid.rows > 1) { 370 const s = i, 371 r = [s - t] 372 return ( 373 r.push(...Array.from({ length: t }).map((e, t) => s + a + t)), 374 void e.slides.forEach((t, s) => { 375 r.includes(t.column) && $(e, s) 376 }) 377 ) 378 } 379 const r = i + a - 1 380 if (e.params.rewind || e.params.loop) 381 for (let a = i - t; a <= r + t; a += 1) { 382 const t = ((a % s) + s) % s 383 ;(t < i || t > r) && $(e, t) 384 } 385 else for (let a = Math.max(i - t, 0); a <= Math.min(r + t, s - 1); a += 1) a !== i && (a > r || a < i) && $(e, a) 386 } 387 var k = { 388 updateSize: function () { 389 const e = this 390 let t, s 391 const a = e.el 392 ;(t = void 0 !== e.params.width && null !== e.params.width ? e.params.width : a.clientWidth), 393 (s = void 0 !== e.params.height && null !== e.params.height ? e.params.height : a.clientHeight), 394 (0 === t && e.isHorizontal()) || 395 (0 === s && e.isVertical()) || 396 ((t = t - parseInt(w(a, "padding-left") || 0, 10) - parseInt(w(a, "padding-right") || 0, 10)), 397 (s = s - parseInt(w(a, "padding-top") || 0, 10) - parseInt(w(a, "padding-bottom") || 0, 10)), 398 Number.isNaN(t) && (t = 0), 399 Number.isNaN(s) && (s = 0), 400 Object.assign(e, { width: t, height: s, size: e.isHorizontal() ? t : s })) 401 }, 402 updateSlides: function () { 403 const e = this 404 function t(t) { 405 return e.isHorizontal() ? t : { "width": "height", "margin-top": "margin-left", "margin-bottom ": "margin-right", "margin-left": "margin-top", "margin-right": "margin-bottom", "padding-left": "padding-top", "padding-right": "padding-bottom", "marginRight": "marginBottom" }[t] 406 } 407 function s(e, s) { 408 return parseFloat(e.getPropertyValue(t(s)) || 0) 409 } 410 const a = e.params, 411 { wrapperEl: i, slidesEl: r, size: n, rtlTranslate: l, wrongRTL: o } = e, 412 d = e.virtual && a.virtual.enabled, 413 c = d ? e.virtual.slides.length : e.slides.length, 414 p = f(r, `.${e.params.slideClass}, swiper-slide`), 415 m = d ? e.virtual.slides.length : p.length 416 let h = [] 417 const g = [], 418 v = [] 419 let b = a.slidesOffsetBefore 420 "function" == typeof b && (b = a.slidesOffsetBefore.call(e)) 421 let y = a.slidesOffsetAfter 422 "function" == typeof y && (y = a.slidesOffsetAfter.call(e)) 423 const E = e.snapGrid.length, 424 S = e.slidesGrid.length 425 let T = a.spaceBetween, 426 M = -b, 427 C = 0, 428 P = 0 429 if (void 0 === n) return 430 "string" == typeof T && T.indexOf("%") >= 0 ? (T = (parseFloat(T.replace("%", "")) / 100) * n) : "string" == typeof T && (T = parseFloat(T)), 431 (e.virtualSize = -T), 432 p.forEach((e) => { 433 l ? (e.style.marginLeft = "") : (e.style.marginRight = ""), (e.style.marginBottom = ""), (e.style.marginTop = "") 434 }), 435 a.centeredSlides && a.cssMode && (u(i, "--swiper-centered-offset-before", ""), u(i, "--swiper-centered-offset-after", "")) 436 const L = a.grid && a.grid.rows > 1 && e.grid 437 let z 438 L && e.grid.initSlides(m) 439 const A = "auto" === a.slidesPerView && a.breakpoints && Object.keys(a.breakpoints).filter((e) => void 0 !== a.breakpoints[e].slidesPerView).length > 0 440 for (let i = 0; i < m; i += 1) { 441 let r 442 if (((z = 0), p[i] && (r = p[i]), L && e.grid.updateSlide(i, r, m, t), !p[i] || "n
442one" !== w(r, "display"))) { 443 if ("auto" === a.slidesPerView) { 444 A && (p[i].style[t("width")] = "") 445 const n = getComputedStyle(r), 446 l = r.style.transform, 447 o = r.style.webkitTransform 448 if ((l && (r.style.transform = "none"), o && (r.style.webkitTransform = "none"), a.roundLengths)) z = e.isHorizontal() ? x(r, "width", !0) : x(r, "height", !0) 449 else { 450 const e = s(n, "width"), 451 t = s(n, "padding-left"), 452 a = s(n, "padding-right"), 453 i = s(n, "margin-left"), 454 l = s(n, "margin-right"), 455 o = n.getPropertyValue("box-sizing") 456 if (o && "border-box" === o) z = e + i + l 457 else { 458 const { clientWidth: s, offsetWidth: n } = r 459 z = e + t + a + i + l + (n - s) 460 } 461 } 462 l && (r.style.transform = l), o && (r.style.webkitTransform = o), a.roundLengths && (z = Math.floor(z)) 463 } else (z = (n - (a.slidesPerView - 1) * T) / a.slidesPerView), a.roundLengths && (z = Math.floor(z)), p[i] && (p[i].style[t("width")] = `${z}px`) 464 p[i] && (p[i].swiperSlideSize = z), 465 v.push(z), 466 a.centeredSlides 467 ? ((M = M + z / 2 + C / 2 + T), 0 === C && 0 !== i && (M = M - n / 2 - T), 0 === i && (M = M - n / 2 - T), Math.abs(M) < 0.001 && (M = 0), a.roundLengths && (M = Math.floor(M)), P % a.slidesPerGroup == 0 && h.push(M), g.push(M)) 468 : (a.roundLengths && (M = Math.floor(M)), (P - Math.min(e.params.slidesPerGroupSkip, P)) % e.params.slidesPerGroup == 0 && h.push(M), g.push(M), (M = M + z + T)), 469 (e.virtualSize += z + T), 470 (C = z), 471 (P += 1) 472 } 473 } 474 if (((e.virtualSize = Math.max(e.virtualSize, n) + y), l && o && ("slide" === a.effect || "coverflow" === a.effect) && (i.style.width = `${e.virtualSize + T}px`), a.setWrapperSize && (i.style[t("width")] = `${e.virtualSize + T}px`), L && e.grid.updateWrapperSize(z, h, t), !a.centeredSlides)) { 475 const t = [] 476 for (let s = 0; s < h.length; s += 1) { 477 let i = h[s] 478 a.roundLengths && (i = Math.floor(i)), h[s] <= e.virtualSize - n && t.push(i) 479 } 480 ;(h = t), Math.floor(e.virtualSize - n) - Math.floor(h[h.length - 1]) > 1 && h.push(e.virtualSize - n) 481 } 482 if (d && a.loop) { 483 const t = v[0] + T 484 if (a.slidesPerGroup > 1) { 485 const s = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / a.slidesPerGroup), 486 i = t * a.slidesPerGroup 487 for (let e = 0; e < s; e += 1) h.push(h[h.length - 1] + i) 488 } 489 for (let s = 0; s < e.virtual.slidesBefore + e.virtual.slidesAfter; s += 1) 1 === a.slidesPerGroup && h.push(h[h.length - 1] + t), g.push(g[g.length - 1] + t), (e.virtualSize += t) 490 } 491 if ((0 === h.length && (h = [0]), 0 !== T)) { 492 const s = e.isHorizontal() && l ? "marginLeft" : t("marginRight") 493 p.filter((e, t) => !(a.cssMode && !a.loop) || t !== p.length - 1).forEach((e) => { 494 e.style[s] = `${T}px` 495 }) 496 } 497 if (a.centeredSlides && a.centeredSlidesBounds) { 498 let e = 0 499 v.forEach((t) => { 500 e += t + (T || 0) 501 }), 502 (e -= T) 503 const t = e - n 504 h = h.map((e) => (e <= 0 ? -b : e > t ? t + y : e)) 505 } 506 if (a.centerInsufficientSlides) { 507 let e = 0 508 if ( 509 (v.forEach((t) => { 510 e += t + (T || 0) 511 }), 512 (e -= T), 513 e < n) 514 ) { 515 const t = (n - e) / 2 516 h.forEach((e, s) => { 517 h[s] = e - t 518 }), 519 g.forEach((e, s) => { 520 g[s] = e + t 521 }) 522 } 523 } 524 if ((Object.assign(e, { slides: p, snapGrid: h, slidesGrid: g, slidesSizesGrid: v }), a.centeredSlides && a.cssMode && !a.centeredSlidesBounds)) { 525 u(i, "--swiper-centered-offset-before", -h[0] + "px"), u(i, "--swiper-centered-offset-after", e.size / 2 - v[v.length - 1] / 2 + "px") 526 const t = -e.snapGrid[0], 527 s = -e.slidesGrid[0] 528 ;(e.snapGrid = e.snapGrid.map((e) => e + t)), (e.slidesGrid = e.slidesGrid.map((e) => e + s)) 529 } 530 if ( 531 (m !== c && e.emit("slidesLengthChange"), 532 h.length !== E && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), 533 g.length !== S && e.emit("slidesGridLengthChange"), 534 a.watchSlidesProgress && e.updateSlidesOffset(), 535 !(d || a.cssMode || ("slide" !== a.effect && "fade" !== a.effect))) 536 ) { 537 const t = `${a.containerModifierClass}backface-hidden`, 538 s = e.el.classList.contains(t) 539 m <= a.maxBackfaceHiddenSlides ? s || e.el.classList.add(t) : s && e.el.classList.remove(t) 540 } 541 }, 542 updateAutoHeight: function (e) { 543 const t = this, 544 s = [], 545 a = t.virtual && t.params.virtual.enabled 546 let i, 547 r = 0 548 "number" == typeof e ? t.setTransition(e) : !0 === e && t.setTransition(t.params.speed) 549 const n = (e) => (a ? t.slides[t.getSlideIndexByData(e)] : t.slides[e]) 550 if ("auto" !== t.params.slidesPerView && t.params.slidesPerView > 1) 551 if (t.params.centeredSlides)
552 (t.visibleSlides || []).forEach((e) => { 553 s.push(e) 554 }) 555 else 556 for (i = 0; i < Math.ceil(t.params.slidesPerView); i += 1) { 557 const e = t.activeIndex + i 558 if (e > t.slides.length && !a) break 559 s.push(n(e)) 560 } 561 else s.push(n(t.activeIndex)) 562 for (i = 0; i < s.length; i += 1) 563 if (void 0 !== s[i]) { 564 const e = s[i].offsetHeight 565 r = e > r ? e : r 566 } 567 ;(r || 0 === r) && (t.wrapperEl.style.height = `${r}px`) 568 }, 569 updateSlidesOffset: function () { 570 const e = this, 571 t = e.slides, 572 s = e.isElement ? (e.isHorizontal() ? e.wrapperEl.offsetLeft : e.wrapperEl.offsetTop) : 0 573 for (let a = 0; a < t.length; a += 1) t[a].swiperSlideOffset = (e.isHorizontal() ? t[a].offsetLeft : t[a].offsetTop) - s - e.cssOverflowAdjustment() 574 }, 575 updateSlidesProgress: function (e) { 576 void 0 === e && (e = (this && this.translate) || 0) 577 const t = this, 578 s = t.params, 579 { slides: a, rtlTranslate: i, snapGrid: r } = t 580 if (0 === a.length) return 581 void 0 === a[0].swiperSlideOffset && t.updateSlidesOffset() 582 let n = -e 583 i && (n = e), 584 a.forEach((e) => { 585 e.classList.remove(s.slideVisibleClass) 586 }), 587 (t.visibleSlidesIndexes = []), 588 (t.visibleSlides = []) 589 let l = s.spaceBetween 590 "string" == typeof l && l.indexOf("%") >= 0 ? (l = (parseFloat(l.replace("%", "")) / 100) * t.size) : "string" == typeof l && (l = parseFloat(l)) 591 for (let e = 0; e < a.length; e += 1) { 592 const o = a[e] 593 let d = o.swiperSlideOffset 594 s.cssMode && s.centeredSlides && (d -= a[0].swiperSlideOffset) 595 const c = (n + (s.centeredSlides ? t.minTranslate() : 0) - d) / (o.swiperSlideSize + l), 596 p = (n - r[0] + (s.centeredSlides ? t.minTranslate() : 0) - d) / (o.swiperSlideSize + l), 597 u = -(n - d), 598 m = u + t.slidesSizesGrid[e] 599 ;((u >= 0 && u < t.size - 1) || (m > 1 && m <= t.size) || (u <= 0 && m >= t.size)) && (t.visibleSlides.push(o), t.visibleSlidesIndexes.push(e), a[e].classList.add(s.slideVisibleClass)), (o.progress = i ? -c : c), (o.originalProgress = i ? -p : p) 600 } 601 }, 602 updateProgress: function (e) { 603 const t = this 604 if (void 0 === e) { 605 const s = t.rtlTranslate ? -1 : 1 606 e = (t && t.translate && t.translate * s) || 0 607 } 608 const s = t.params, 609 a = t.maxTranslate() - t.minTranslate() 610 let { progress: i, isBeginning: r, isEnd: n, progressLoop: l } = t 611 const o = r, 612 d = n 613 if (0 === a) (i = 0), (r = !0), (n = !0) 614 else { 615 i = (e - t.minTranslate()) / a 616 const s = Math.abs(e - t.minTranslate()) < 1, 617 l = Math.abs(e - t.maxTranslate()) < 1 618 ;(r = s || i <= 0), (n = l || i >= 1), s && (i = 0), l && (i = 1) 619 } 620 if (s.loop) { 621 const s = t.getSlideIndexByData(0), 622 a = t.getSlideIndexByData(t.slides.length - 1), 623 i = t.slidesGrid[s], 624 r = t.slidesGrid[a], 625 n = t.slidesGrid[t.slidesGrid.length - 1], 626 o = Math.abs(e) 627 ;(l = o >= i ? (o - i) / n : (o + n - r) / n), l > 1 && (l -= 1) 628 } 629 Object.assign(t, { progress: i, progressLoop: l, isBeginning: r, isEnd: n }), 630 (s.watchSlidesProgress || (s.centeredSlides && s.autoHeight)) && t.updateSlidesProgress(e), 631 r && !o && t.emit("reachBeginning toEdge"), 632 n && !d && t.emit("reachEnd toEdge"), 633 ((o && !r) || (d && !n)) && t.emit("fromEdge"), 634 t.emit("progress", i) 635 }, 636 updateSlidesClasses: function () { 637 const e = this, 638 { slides: t, params: s, slidesEl: a, activeIndex: i } = e, 639 r = e.virtual && s.virtual.enabled, 640 n = (e) => f(a, `.${s.slideClass}${e}, swiper-slide${e}`)[0] 641 let l 642 if ( 643 (t.forEach((e) => { 644 e.classList.remove(s.slideActiveClass, s.slideNextClass, s.slidePrevClass) 645 }), 646 r) 647 ) 648 if (s.loop) { 649 let t = i - e.virtual.slidesBefore 650 t < 0 && (t = e.virtual.slides.length + t), t >= e.virtual.slides.length && (t -= e.virtual.slides.length), (l = n(`[data-swiper-slide-index="${t}"]`)) 651 } else l = n(`[data-swiper-slide-index="${i}"]`) 652 else l = t[i] 653 if (l) { 654 l.classList.add(s.slideActiveClass) 655 let e = (function (e, t) { 656 const s = [] 657 for (; e.nextElementSibling; ) { 658 const a = e.nextElementSibling 659 t ? a.matches(t) && s.push(a) : s.push(a), (e = a) 660 } 661 return s 662 })(l, `.${s.slideClass}, swiper-slide`)[0] 663 s.loop && !e && (e = t[0]), e && e.classList.add(s.slideNextClass) 664 let a = (function (e, t) { 665 const s = [] 666 for (; e.previousElementSibling; ) { 667 const a = e.previousElementSibling 668 t ? a.matches(t) && s.push(a) : s.push(a), (e = a) 669 } 670 return s 671 })(l, `.${s.slideClass}, swiper-slide`)[0] 672 s.loop && 0 === !a && (a = t[t.length - 1]), a && a.classList.add(s.slidePrevClass) 673 } 674 e.emitSlidesClasses() 675 }, 676 updateActiveIndex: function (e) { 677 const t = this, 678 s = t.rtlTranslate ? t.translate : -t.translate, 679 { snapGrid: a, params: i, activeIndex: r, realIndex: n, snapIndex: l } = t 680 let o, 681 d = e 682 const c = (e) => { 683 let s = e - t.virtual.slidesBefore 684 return s < 0 && (s = t.virtual.slides.length + s), s >= t.virtual.slides.length && (s -= t.virtual.slides.length), s 685 } 686 if ( 687 (void 0 === d && 688 (d = (function (e) { 689 const { slidesGrid: t, params: s } = e, 690 a = e.rtlTranslate ? e.translate : -e.translate 691 let i 692 for (let e = 0; e < t.length; e += 1) void 0 !== t[e + 1] ? (a >= t[e] && a < t[e + 1] - (t[e + 1] - t[e]) / 2 ? (i = e) : a >= t[e] && a < t[e + 1] && (i = e + 1)) : a >= t[e] && (i = e) 693 return s.normalizeSlideIndex && (i < 0 || void 0 === i) && (i = 0), i 694 })(t)), 695 a.indexOf(s) >= 0) 696 ) 697 o = a.indexOf(s) 698 else { 699 const e = Math.min(i.slidesPerGroupSkip, d) 700 o = e + Math.floor((d - e) / i.slidesPerGroup) 701 } 702 if ((o >= a.length && (o = a.length - 1), d === r)) return o !== l && ((t.snapIndex = o), t.emit("snapIndexChange")), void (t.params.loop && t.virtual && t.params.virtual.enabled && (t.realIndex = c(d))) 703 let p 704 ;(p = t.virtual && i.virtual.enabled && i.loop ? c(d) : t.slides[d] ? parseInt(t.slides[d].getAttribute("data-swiper-slide-index") || d, 10) : d), 705 Object.assign(t, { previousSnapIndex: l, snapIndex: o, previousRealIndex: n, realIndex: p, previousIndex: r, activeIndex: d }), 706 t.initialized && I(t), 707 t.emit("activeIndexChange"), 708 t.emit("snapIndexChange"), 709 n !== p && t.emit("realIndexChange"), 710 (t.initialized || t.params.runCallbacksOnInit) && t.emit("slideChange") 711 }, 712 updateClickedSlide: function (e) { 713 const t = this, 714 s = t.params, 715 a = e.closest(`.${s.slideClass}, swiper-slide`) 716 let i, 717 r = !1 718 if (a) 719 for (let e = 0; e < t.slides.length; e += 1) 720 if (t.slides[e] === a) { 721 ;(r = !0), (i = e) 722 break 723 } 724 if (!a || !r) return (t.clickedSlide = void 0), void (t.clickedIndex = void 0) 725 ;(t.clickedSlide = a), t.virtual && t.params.virtual.enabled ? (t.clickedIndex = parseInt(a.getAttribute("data-swiper-slide-index"), 10)) : (t.clickedIndex = i), s.slideToClickedSlide && void 0 !== t.clickedIndex && t.clickedIndex !== t.activeIndex && t.slideToClickedSlide() 726 }, 727 } 728 var O = { 729 getTranslate: function (e) { 730 void 0 === e && (e = this.isHorizontal() ? "x" : "y") 731 const { params: t, rtlTranslate: s, translate: a, wrapperEl: i } = this 732 if (t.virtualTranslate) return s ? -a : a 733 if (t.cssMode) return a 734 let r = o(i, e) 735 return (r += this.cssOverflowAdjustment()), s && (r = -r), r || 0 736 }, 737 setTranslate: function (e, t) { 738 const s = this, 739 { rtlTranslate: a, params: i, wrapperEl: r, progress: n } = s 740 let l, 741 o = 0, 742 d = 0 743 s.isHorizontal() ? (o = a ? -e : e) : (d = e), 744 i.roundLengths && ((o = Math.floor(o)), (d = Math.floor(d))), 745 (s.previousTranslate = s.translate), 746 (s.translate = s.isHorizontal() ? o : d), 747 i.cssMode ? (r[s.isHorizontal() ? "scrollLeft" : "scrollTop"] = s.isHorizontal() ? -o : -d) : i.virtualTranslate || (s.isHorizontal() ? (o -= s.cssOverflowAdjustment()) : (d -= s.cssOverflowAdjustment()), (r.style.transform = `translate3d(${o}px, ${d}px, 0px)`)) 748 const c = s.maxTranslate() - s.minTranslate() 749 ;(l = 0 === c ? 0 : (e - s.minTranslate()) / c), l !== n && s.updateProgress(e), s.emit("setTranslate", s.translate, t) 750 }, 751 minTranslate: function () { 752 return -this.snapGrid[0] 753 }, 754 maxTranslate: function () { 755 return -this.snapGrid[this.snapGrid.length - 1] 756 }, 757 translateTo: function (e, t, s, a, i) { 758 void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === s && (s = !0), void 0 === a && (a = !0) 759 const r = this, 760 { params: n, wrapperEl: l } = r 761 if (r.animating && n.preventInteractionOnTransition) return !1 762 const o = r.minTranslate(), 763 d = r.maxTranslate() 764 let c 765 if (((c = a && e > o ? o : a && e < d ? d : e), r.updateProgress(c), n.cssMode)) { 766 const e = r.isHorizontal() 767 if (0 === t) l[e ? "scrollLeft" : "scrollTop"] = -c 768 else { 769 if (!r.support.smoothScroll) return m({ swiper: r, targetPosition: -c, side: e ? "left" : "top" }), !0 770 l.scrollTo({ [e ? "left" : "top"]: -c, behavior: "smooth" }) 771 } 772 return !0 773 } 774 return ( 775 0 === t 776 ? (r.setTransition(0), r.setTranslate(c), s && (r.emit("beforeTransitionStart", t, i), r.emit("transitionEnd"))) 777 : (r.setTransition(t), 778 r.setTranslate(c), 779 s && (r.emit("beforeTransitionStart", t, i), r.emit("transitionStart")), 780 r.animating || 781 ((r.animating = !0), 782 r.onTranslateToWrapperTransitionEnd || 783 (r.onTranslateToWrapperTransitionEnd = function (e) { 784 r && !r.destroyed && e.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), (r.onTranslateToWrapperTransitionEnd = null), delete r.onTranslateToWrapperTransitionEnd, s && r.emit("transitionEnd")) 785 }), 786 r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), 787 !0 788 ) 789 }, 790 } 791 function D(e) { 792 let { swiper: t, runCallbacks: s, direction: a, step: i } = e 793 const { activeIndex: r, previousIndex: n } = t 794 let l = a 795 if ((l || (l = r > n ? "next" : r < n ? "prev" : "reset"), t.emit(`transition${i}`), s && r !== n)) { 796 if ("reset" === l) return void t.emit(`slideResetTransition${i}`) 797 t.emit(`slideChangeTransition${i}`), "next" === l ? t.emit(`slideNextTransition${i}`) : t.emit(`slidePrevTransition${i}`) 798 } 799 } 800 var G = { 801 slideTo: function (e, t, s, a, i) { 802 void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === s && (s = !0), "string" == typeof e && (e = parseInt(e, 10)) 803 const r = this 804 let n = e 805 n < 0 && (n = 0) 806 const { params: l, snapGrid: o, slidesGrid: d, previousIndex: c, activeIndex: p, rtlTranslate: u, wrapperEl: h, enabled: f } = r 807 if ((r.animating && l.preventInteractionOnTransition) || (!f && !a && !i)) return !1 808 const g = Math.min(r.params.slidesPerGroupSkip, n) 809 let v = g + Math.floor((n - g) / r.params.slidesPerGroup) 810 v >= o.length && (v = o.length - 1) 811 const w = -o[v] 812 if (l.normalizeSlideIndex) 813 for (let e = 0; e < d.length; e += 1) { 814 const t = -Math.floor(100 * w), 815 s = Math.floor(100 * d[e]), 816 a = Math.floor(100 * d[e + 1]) 817 void 0 !== d[e + 1] ? (t >= s && t < a - (a - s) / 2 ? (n = e) : t >= s && t < a && (n = e + 1)) : t >= s && (n = e) 818 } 819 if (r.initialized && n !== p) { 820 if (!r.allowSlideNext && (u ? w > r.translate && w > r.minTranslate() : w < r.translate && w < r.minTranslate())) return !1 821 if (!r.allowSlidePrev && w > r.translate && w > r.maxTranslate() && (p || 0) !== n) return !1 822 } 823 let b 824 if ((n !== (c || 0) && s && r.emit("beforeSlideChangeStart"), r.updateProgress(w), (b = n > p ? "next" : n < p ? "prev" : "reset"), (u && -w === r.translate) || (!u && w === r.translate))) 825 return r.updateActiveIndex(n), l.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), "slide" !== l.effect && r.setTranslate(w), "reset" !== b && (r.transitionStart(s, b), r.transitionEnd(s, b)), !1 826 if (l.cssMode) { 827 const e = r.isHorizontal(), 828 s = u ? w : -w 829 if (0 === t) { 830 const t = r.virtual && r.params.virtual.enabled 831 t && ((r.wrapperEl.style.scrollSnapType = "none"), (r._immediateVirtual = !0)), 832 t && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 833 ? ((r._cssModeVirtualInitialSet = !0), 834 requestAnimationFrame(() => { 835 h[e ? "scrollLeft" : "scrollTop"] = s 836 })) 837 : (h[e ? "scrollLeft" : "scrollTop"] = s), 838 t && 839 requestAnimationFrame(() => { 840 ;(r.wrapperEl.style.scrollSnapType = ""), (r._immediateVirtual = !1) 841 }) 842 } else { 843 if (!r.support.smoothScroll) return m({ swiper: r, targetPosition: s, side: e ? "left" : "top" }), !0
844 h.scrollTo({ [e ? "left" : "top"]: s, behavior: "smooth" }) 845 } 846 return !0 847 } 848 return ( 849 r.setTransition(t), 850 r.setTranslate(w), 851 r.updateActiveIndex(n), 852 r.updateSlidesClasses(), 853 r.emit("beforeTransitionStart", t, a), 854 r.transitionStart(s, b), 855 0 === t 856 ? r.transitionEnd(s, b) 857 : r.animating || 858 ((r.animating = !0), 859 r.onSlideToWrapperTransitionEnd || 860 (r.onSlideToWrapperTransitionEnd = function (e) { 861 r && !r.destroyed && e.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), (r.onSlideToWrapperTransitionEnd = null), delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(s, b)) 862 }), 863 r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), 864 !0 865 ) 866 }, 867 slideToLoop: function (e, t, s, a) { 868 if ((void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === s && (s = !0), "string" == typeof e)) { 869 e = parseInt(e, 10) 870 } 871 const i = this 872 let r = e 873 return i.params.loop && (i.virtual && i.params.virtual.enabled ? (r += i.virtual.slidesBefore) : (r = i.getSlideIndexByData(r))), i.slideTo(r, t, s, a) 874 }, 875 slideNext: function (e, t, s) { 876 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0) 877 const a = this, 878 { enabled: i, params: r, animating: n } = a 879 if (!i) return a 880 let l = r.slidesPerGroup 881 "auto" === r.slidesPerView && 1 === r.slidesPerGroup && r.slidesPerGroupAuto && (l = Math.max(a.slidesPerViewDynamic("current", !0), 1)) 882 const o = a.activeIndex < r.slidesPerGroupSkip ? 1 : l, 883 d = a.virtual && r.virtual.enabled 884 if (r.loop) { 885 if (n && !d && r.loopPreventsSliding) return !1 886 a.loopFix({ direction: "next" }), (a._clientLeft = a.wrapperEl.clientLeft) 887 } 888 return r.rewind && a.isEnd ? a.slideTo(0, e, t, s) : a.slideTo(a.activeIndex + o, e, t, s) 889 }, 890 slidePrev: function (e, t, s) { 891 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0) 892 const a = this, 893 { params: i, snapGrid: r, slidesGrid: n, rtlTranslate: l, enabled: o, animating: d } = a 894 if (!o) return a 895 const c = a.virtual && i.virtual.enabled 896 if (i.loop) { 897 if (d && !c && i.loopPreventsSliding) return !1 898 a.loopFix({ direction: "prev" }), (a._clientLeft = a.wrapperEl.clientLeft) 899 } 900 function p(e) { 901 return e < 0 ? -Math.floor(Math.abs(e)) : Math.floor(e) 902 } 903 const u = p(l ? a.translate : -a.translate), 904 m = r.map((e) => p(e)) 905 let h = r[m.indexOf(u) - 1] 906 if (void 0 === h && i.cssMode) { 907 let e 908 r.forEach((t, s) => { 909 u >= t && (e = s) 910 }), 911 void 0 !== e && (h = r[e > 0 ? e - 1 : e]) 912 } 913 let f = 0 914 if ((void 0 !== h && ((f = n.indexOf(h)), f < 0 && (f = a.activeIndex - 1), "auto" === i.slidesPerView && 1 === i.slidesPerGroup && i.slidesPerGroupAuto && ((f = f - a.slidesPerViewDynamic("previous", !0) + 1), (f = Math.max(f, 0)))), i.rewind && a.isBeginning)) { 915 const i = a.params.virtual && a.params.virtual.enabled && a.virtual ? a.virtual.slides.length - 1 : a.slides.length - 1 916 return a.slideTo(i, e, t, s) 917 } 918 return a.slideTo(f, e, t, s) 919 }, 920 slideReset: function (e, t, s) { 921 return void 0 === e && (e = this.params.speed), void 0 === t && (t = !0), this.slideTo(this.activeIndex, e, t, s) 922 }, 923 slideToClosest: function (e, t, s, a) { 924 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0), void 0 === a && (a = 0.5) 925 const i = this 926 let r = i.activeIndex 927 const n = Math.min(i.params.slidesPerGroupSkip, r), 928 l = n + Math.floor((r - n) / i.params.slidesPerGroup), 929 o = i.rtlTranslate ? i.translate : -i.translate 930 if (o >= i.snapGrid[l]) { 931 const e = i.snapGrid[l] 932 o - e > (i.snapGrid[l + 1] - e) * a && (r += i.params.slidesPerGroup) 933 } else { 934 const e = i.snapGrid[l - 1] 935 o - e <= (i.snapGrid[l] - e) * a && (r -= i.params.slidesPerGroup) 936 } 937 return (r = Math.max(r, 0)), (r = Math.min(r, i.slidesGrid.length - 1)), i.slideTo(r, e, t, s) 938 }, 939 slideToClickedSlide: function () { 940 const e = this, 941 { params: t, slidesEl: s } = e, 942 a = "auto" === t.slidesPerView ? e.slidesPerViewDynamic() : t.slidesPerView 943 let i, 944 r = e.clickedIndex 945 const l = e.isElement ? "swiper-slide" : `.${t.slideClass}` 946 if (t.loop) { 947 if (e.animating) return 948 ;(i = parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"), 10)), 949 t.centeredSlides 950 ? r < e.loopedSlides - a / 2 || r > e.slides.length - e.loopedSlides + a / 2 951 ? (e.loopFix(), 952 (r = e.getSlideIndex(f(s, `${l}[data-swiper-slide-index="${i}"]`)[0])), 953 n(() => { 954 e.slideTo(r) 955 })) 956 : e.slideTo(r) 957 : r > e.slides.length - a 958 ? (e.loopFix(), 959 (r = e.getSlideIndex(f(s, `${l}[data-swiper-slide-index="${i}"]`)[0])), 960 n(() => { 961 e.slideTo(r) 962 })) 963 : e.slideTo(r) 964 } else e.slideTo(r) 965 }, 966 } 967 var H = { 968 loopCreate: function (e) { 969 const t = this, 970 { params: s, slidesEl: a } = t 971 if (!s.loop || (t.virtual && t.params.virtual.enabled)) return 972 f(a, `.${s.slideClass}, swiper-slide`).forEach((e, t) => { 973 e.setAttribute("data-swiper-slide-index", t) 974 }), 975 t.loopFix({ slideRealIndex: e, direction: s.centeredSlides ? void 0 : "next" }) 976 }, 977 loopFix: function (e) { 978 let { slideRealIndex: t, slideTo: s = !0, direction: a, setTranslate: i, activeSlideIndex: r, byController: n, byMousewheel: l } = void 0 === e ? {} : e 979 const o = this 980 if (!o.params.loop) return 981 o.emit("beforeLoopFix") 982 const { slides: d, allowSlidePrev: c, allowSlideNext: p, slidesEl: u, params: m } = o 983 if (((o.allowSlidePrev = !0), (o.allowSlideNext = !0), o.virtual && m.virtual.enabled)) 984 return ( 985 s && 986 (m.centeredSlides || 0 !== o.snapIndex 987 ? m.centeredSlides && o.snapIndex < m.slidesPerView 988 ? o.slideTo(o.virtual.slides.length + o.snapIndex, 0, !1, !0) 989 : o.snapIndex === o.snapGrid.length - 1 && o.slideTo(o.virtual.slidesBefore, 0, !1, !0) 990 : o.slideTo(o.virtual.slides.length, 0, !1, !0)), 991 (o.allowSlidePrev = c), 992 (o.allowSlideNext = p), 993 void o.emit("loopFix") 994 ) 995 const h = "auto" === m.slidesPerView ? o.slidesPerViewDynamic() : Math.ceil(parseFloat(m.slidesPerView, 10)) 996 let f = m.loopedSlides || h 997 f % m.slidesPerGroup != 0 && (f += m.slidesPerGroup - (f % m.slidesPerGroup)), (o.loopedSlides = f) 998 const g = [], 999 v = [] 1000 let w = o.activeIndex 1001 void 0 === r ? (r = o.getSlideIndex(o.slides.filter((e) => e.classList.contains(m.slideActiveClass))[0])) : (w = r) 1002 const b = "next" === a || !a, 1003 y = "prev" === a || !a 1004 let E = 0, 1005 x = 0 1006 if (r < f) { 1007 E = Math.max(f - r, m.slidesPerGroup) 1008 for (let e = 0; e < f - r; e += 1) { 1009 const t = e - Math.floor(e / d.length) * d.length 1010 g.push(d.length - t - 1) 1011 } 1012 } else if (r > o.slides.length - 2 * f) { 1013 x = Math.max(r - (o.slides.length - 2 * f), m.slidesPerGroup) 1014 for (let e = 0; e < x; e += 1) { 1015 const t = e - Math.floor(e / d.length) * d.length 1016 v.push(t) 1017 } 1018 } 1019 if ( 1020 (y && 1021 g.forEach((e) => { 1022 ;
1022(o.slides[e].swiperLoopMoveDOM = !0), u.prepend(o.slides[e]), (o.slides[e].swiperLoopMoveDOM = !1) 1023 }), 1024 b && 1025 v.forEach((e) => { 1026 ;(o.slides[e].swiperLoopMoveDOM = !0), u.append(o.slides[e]), (o.slides[e].swiperLoopMoveDOM = !1) 1027 }), 1028 o.recalcSlides(), 1029 "auto" === m.slidesPerView && o.updateSlides(), 1030 m.watchSlidesProgress && o.updateSlidesOffset(), 1031 s) 1032 ) 1033 if (g.length > 0 && y) 1034 if (void 0 === t) { 1035 const e = o.slidesGrid[w], 1036 t = o.slidesGrid[w + E] - e 1037 l ? o.setTranslate(o.translate - t) : (o.slideTo(w + E, 0, !1, !0), i && (o.touches[o.isHorizontal() ? "startX" : "startY"] += t)) 1038 } else i && o.slideToLoop(t, 0, !1, !0) 1039 else if (v.length > 0 && b) 1040 if (void 0 === t) { 1041 const e = o.slidesGrid[w], 1042 t = o.slidesGrid[w - x] - e 1043 l ? o.setTranslate(o.translate - t) : (o.slideTo(w - x, 0, !1, !0), i && (o.touches[o.isHorizontal() ? "startX" : "startY"] += t)) 1044 } else o.slideToLoop(t, 0, !1, !0) 1045 if (((o.allowSlidePrev = c), (o.allowSlideNext = p), o.controller && o.controller.control && !n)) { 1046 const e = { slideRealIndex: t, slideTo: !1, direction: a, setTranslate: i, activeSlideIndex: r, byController: !0 } 1047 Array.isArray(o.controller.control) 1048 ? o.controller.control.forEach((t) => { 1049 !t.destroyed && t.params.loop && t.loopFix(e) 1050 }) 1051 : o.controller.control instanceof o.constructor && o.controller.control.params.loop && o.controller.control.loopFix(e) 1052 } 1053 o.emit("loopFix") 1054 }, 1055 loopDestroy: function () { 1056 const e = this, 1057 { params: t, slidesEl: s } = e 1058 if (!t.loop || (e.virtual && e.params.virtual.enabled)) return 1059 e.recalcSlides() 1060 const a = [] 1061 e.slides.forEach((e) => { 1062 const t = void 0 === e.swiperSlideIndex ? 1 * e.getAttribute("data-swiper-slide-index") : e.swiperSlideIndex 1063 a[t] = e 1064 }), 1065 e.slides.forEach((e) => { 1066 e.removeAttribute("data-swiper-slide-index") 1067 }), 1068 a.forEach((e) => { 1069 s.append(e) 1070 }), 1071 e.recalcSlides(), 1072 e.slideTo(e.realIndex, 0) 1073 }, 1074 } 1075 function X(e) { 1076 const t = this, 1077 s = a(), 1078 i = r(), 1079 n = t.touchEventsData 1080 n.evCache.push(e) 1081 const { params: o, touches: d, enabled: c } = t 1082 if (!c) return 1083 if (!o.simulateTouch && "mouse" === e.pointerType) return 1084 if (t.animating && o.preventInteractionOnTransition) return 1085 !t.animating && o.cssMode && o.loop && t.loopFix() 1086 let p = e 1087 p.originalEvent && (p = p.originalEvent) 1088 let u = p.target 1089 if ("wrapper" === o.touchEventsTarget && !t.wrapperEl.contains(u)) return 1090 if ("which" in p && 3 === p.which) return 1091 if ("button" in p && p.button > 0) return 1092 if (n.isTouched && n.isMoved) return 1093 const m = !!o.noSwipingClass && "" !== o.noSwipingClass, 1094 h = e.composedPath ? e.composedPath() : e.path 1095 m && p.target && p.target.shadowRoot && h && (u = h[0]) 1096 const f = o.noSwipingSelector ? o.noSwipingSelector : `.${o.noSwipingClass}`, 1097 g = !(!p.target || !p.target.shadowRoot) 1098 if ( 1099 o.noSwiping && 1100 (g 1101 ? (function (e, t) { 1102 return ( 1103 void 0 === t && (t = this), 1104 (function t(s) { 1105 if (!s || s === a() || s === r()) return null 1106 s.assignedSlot && (s = s.assignedSlot) 1107 const i = s.closest(e) 1108 return i || s.getRootNode ? i || t(s.getRootNode().host) : null 1109 })(t) 1110 ) 1111 })(f, u) 1112 : u.closest(f)) 1113 ) 1114 return void (t.allowClick = !0) 1115 if (o.swipeHandler && !u.closest(o.swipeHandler)) return 1116 ;(d.currentX = p.pageX), (d.currentY = p.pageY) 1117 const v = d.currentX, 1118 w = d.currentY, 1119 b = o.edgeSwipeDetection || o.iOSEdgeSwipeDetection, 1120 y = o.edgeSwipeThreshold || o.iOSEdgeSwipeThreshold 1121 if (b && (v <= y || v >= i.innerWidth - y)) { 1122 if ("prevent" !== b) return 1123 e.preventDefault() 1124 } 1125 Object.assign(n, { isTouched: !0, isMoved: !1, allowTouchCallbacks: !0, isScrolling: void 0, startMoving: void 0 }), (d.startX = v), (d.startY = w), (n.touchStartTime = l()), (t.allowClick = !0), t.updateSize(), (t.swipeDirection = void 0), o.threshold > 0 && (n.allowThresholdMove = !1) 1126 let E = !0 1127 u.matches(n.focusableElements) && ((E = !1), "SELECT" === u.no
1127deName && (n.isTouched = !1)), s.activeElement && s.activeElement.matches(n.focusableElements) && s.activeElement !== u && s.activeElement.blur() 1128 const x = E && t.allowTouchMove && o.touchStartPreventDefault 1129 ;(!o.touchStartForcePreventDefault && !x) || u.isContentEditable || p.preventDefault(), o.freeMode && o.freeMode.enabled && t.freeMode && t.animating && !o.cssMode && t.freeMode.onTouchStart(), t.emit("touchStart", p) 1130 } 1131 function Y(e) { 1132 const t = a(), 1133 s = this, 1134 i = s.touchEventsData, 1135 { params: r, touches: n, rtlTranslate: o, enabled: d } = s 1136 if (!d) return 1137 if (!r.simulateTouch && "mouse" === e.pointerType) return 1138 let c = e 1139 if ((c.originalEvent && (c = c.originalEvent), !i.isTouched)) return void (i.startMoving && i.isScrolling && s.emit("touchMoveOpposite", c)) 1140 const p = i.evCache.findIndex((e) => e.pointerId === c.pointerId) 1141 p >= 0 && (i.evCache[p] = c) 1142 const u = i.evCache.length > 1 ? i.evCache[0] : c, 1143 m = u.pageX, 1144 h = u.pageY 1145 if (c.preventedByNestedSwiper) return (n.startX = m), void (n.startY = h) 1146 if (!s.allowTouchMove) return c.target.matches(i.focusableElements) || (s.allowClick = !1), void (i.isTouched && (Object.assign(n, { startX: m, startY: h, prevX: s.touches.currentX, prevY: s.touches.currentY, currentX: m, currentY: h }), (i.touchStartTime = l()))) 1147 if (r.touchReleaseOnEdges && !r.loop) 1148 if (s.isVertical()) { 1149 if ((h < n.startY && s.translate <= s.maxTranslate()) || (h > n.startY && s.translate >= s.minTranslate())) return (i.isTouched = !1), void (i.isMoved = !1) 1150 } else if ((m < n.startX && s.translate <= s.maxTranslate()) || (m > n.startX && s.translate >= s.minTranslate())) return 1151 if (t.activeElement && c.target === t.activeElement && c.target.matches(i.focusableElements)) return (i.isMoved = !0), void (s.allowClick = !1) 1152 if ((i.allowTouchCallbacks && s.emit("touchMove", c), c.targetTouches && c.targetTouches.length > 1)) return 1153 ;(n.currentX = m), (n.currentY = h) 1154 const f = n.currentX - n.startX, 1155 g = n.currentY - n.startY 1156 if (s.params.threshold && Math.sqrt(f ** 2 + g ** 2) < s.params.threshold) return 1157 if (void 0 === i.isScrolling) { 1158 let e 1159 ;(s.isHorizontal() && n.currentY === n.startY) || (s.isVertical() && n.currentX === n.startX) ? (i.isScrolling = !1) : f * f + g * g >= 25 && ((e = (180 * Math.atan2(Math.abs(g), Math.abs(f))) / Math.PI), (i.isScrolling = s.isHorizontal() ? e > r.touchAngle : 90 - e > r.touchAngle)) 1160 } 1161 if ((i.isScrolling && s.emit("touchMoveOpposite", c), void 0 === i.startMoving && ((n.currentX === n.startX && n.currentY === n.startY) || (i.startMoving = !0)), i.isScrolling || (s.zoom && s.params.zoom && s.params.zoom.enabled && i.evCache.length > 1))) return void (i.isTouched = !1) 1162 if (!i.startMoving) return 1163 ;(s.allowClick = !1), !r.cssMode && c.cancelable && c.preventDefault(), r.touchMoveStopPropagation && !r.nested && c.stopPropagation() 1164 let v = s.isHorizontal() ? f : g, 1165 w = s.isHorizontal() ? n.currentX - n.previousX : n.currentY - n.previousY 1166 r.oneWayMovement && ((v = Math.abs(v) * (o ? 1 : -1)), (w = Math.abs(w) * (o ? 1 : -1))), (n.diff = v), (v *= r.touchRatio), o && ((v = -v), (w = -w)) 1167 const b = s.touchesDirection 1168 ;(s.swipeDirection = v > 0 ? "prev" : "next"), (s.touchesDirection = w > 0 ? "prev" : "next") 1169 const y = s.params.loop && !r.cssMode 1170 if (!i.isMoved) { 1171 if ((y && s.loopFix({ direction: s.swipeDirection }), (i.startTranslate = s.getTranslate()), s.setTransition(0), s.animating)) { 1172 const e = new window.CustomEvent("transitionend", { bubbles: !0, cancelable: !0 }) 1173 s.wrapperEl.dispatchEvent(e) 1174 } 1175 ;(i.allowMomentumBounce = !1), !r.grabCursor || (!0 !== s.allowSlideNext && !0 !== s.allowSlidePrev) || s.setGrabCursor(!0), s.emit("sliderFirstMove", c) 1176 } 1177 let E 1178 i.isMoved && b !== s.touchesDirection && y && Math.abs(v) >= 1 && (s.loopFix({ direction: s.swipeDirection, setTranslate: !0 }), (E = !0)), s.emit("sliderMove", c), (i.isMoved = !0), (i.currentTranslate = v + i.startTranslate) 1179 let x = !0, 1180 S = r.resistanceRatio 1181 if ( 1182 (r.touchReleaseOnEdges && (S = 0), 1183 v > 0 1184 ? (y && !E && i.currentTranslate > (r.centeredSlides ? s.minTranslate() - s.size / 2 : s.minTranslate()) && s.loopFix({ direction: "prev", setTranslate: !0, activeSlideIndex: 0 }), 1185 i.currentTranslate > s.minTranslate() && ((x = !1), r.resistance && (i.currentTranslate = s.minTranslate() - 1 + (-s.minTranslate() + i.startTranslate + v) ** S))) 1186 : v < 0 && 1187 (y && 1188 !E && 1189 i.currentTranslate < (r.centeredSlides ? s.maxTranslate() + s.size / 2 : s.maxTranslate()) &&
1190 s.loopFix({ direction: "next", setTranslate: !0, activeSlideIndex: s.slides.length - ("auto" === r.slidesPerView ? s.slidesPerViewDynamic() : Math.ceil(parseFloat(r.slidesPerView, 10))) }), 1191 i.currentTranslate < s.maxTranslate() && ((x = !1), r.resistance && (i.currentTranslate = s.maxTranslate() + 1 - (s.maxTranslate() - i.startTranslate - v) ** S))), 1192 x && (c.preventedByNestedSwiper = !0), 1193 !s.allowSlideNext && "next" === s.swipeDirection && i.currentTranslate < i.startTranslate && (i.currentTranslate = i.startTranslate), 1194 !s.allowSlidePrev && "prev" === s.swipeDirection && i.currentTranslate > i.startTranslate && (i.currentTranslate = i.startTranslate), 1195 s.allowSlidePrev || s.allowSlideNext || (i.currentTranslate = i.startTranslate), 1196 r.threshold > 0) 1197 ) { 1198 if (!(Math.abs(v) > r.threshold || i.allowThresholdMove)) return void (i.currentTranslate = i.startTranslate) 1199 if (!i.allowThresholdMove) return (i.allowThresholdMove = !0), (n.startX = n.currentX), (n.startY = n.currentY), (i.currentTranslate = i.startTranslate), void (n.diff = s.isHorizontal() ? n.currentX - n.startX : n.currentY - n.startY) 1200 } 1201 r.followFinger && 1202 !r.cssMode && 1203 (((r.freeMode && r.freeMode.enabled && s.freeMode) || r.watchSlidesProgress) && (s.updateActiveIndex(), s.updateSlidesClasses()), r.freeMode && r.freeMode.enabled && s.freeMode && s.freeMode.onTouchMove(), s.updateProgress(i.currentTranslate), s.setTranslate(i.currentTranslate)) 1204 } 1205 function B(e) { 1206 const t = this, 1207 s = t.touchEventsData, 1208 a = s.evCache.findIndex((t) => t.pointerId === e.pointerId) 1209 if ((a >= 0 && s.evCache.splice(a, 1), ["pointercancel", "pointerout", "pointerleave"].includes(e.type))) { 1210 if (!("pointercancel" === e.type && (t.browser.isSafari || t.browser.isWebView))) return 1211 } 1212 const { params: i, touches: r, rtlTranslate: o, slidesGrid: d, enabled: c } = t 1213 if (!c) return 1214 if (!i.simulateTouch && "mouse" === e.pointerType) return 1215 let p = e 1216 if ((p.originalEvent && (p = p.originalEvent), s.allowTouchCallbacks && t.emit("touchEnd", p), (s.allowTouchCallbacks = !1), !s.isTouched)) return s.isMoved && i.grabCursor && t.setGrabCursor(!1), (s.isMoved = !1), void (s.startMoving = !1) 1217 i.grabCursor && s.isMoved && s.isTouched && (!0 === t.allowSlideNext || !0 === t.allowSlidePrev) && t.setGrabCursor(!1) 1218 const u = l(), 1219 m = u - s.touchStartTime 1220 if (t.allowClick) { 1221 const e = p.path || (p.composedPath && p.composedPath()) 1222 t.updateClickedSlide((e && e[0]) || p.target), t.emit("tap click", p), m < 300 && u - s.lastClickTime < 300 && t.emit("doubleTap doubleClick", p) 1223 } 1224 if ( 1225 ((s.lastClickTime = l()), 1226 n(() => { 1227 t.destroyed || (t.allowClick = !0) 1228 }), 1229 !s.isTouched || !s.isMoved || !t.swipeDirection || 0 === r.diff || s.currentTranslate === s.startTranslate) 1230 ) 1231 return (s.isTouched = !1), (s.isMoved = !1), void (s.startMoving = !1) 1232 let h 1233 if (((s.isTouched = !1), (s.isMoved = !1), (s.startMoving = !1), (h = i.followFinger ? (o ? t.translate : -t.translate) : -s.currentTranslate), i.cssMode)) return 1234 if (i.freeMode && i.freeMode.enabled) return void t.freeMode.onTouchEnd({ currentPos: h }) 1235 let f = 0, 1236 g = t.slidesSizesGrid[0] 1237 for (let e = 0; e < d.length; e += e < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) { 1238 const t = e < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup 1239 void 0 !== d[e + t] ? h >= d[e] && h < d[e + t] && ((f = e), (g = d[e + t] - d[e])) : h >= d[e] && ((f = e), (g = d[d.length - 1] - d[d.length - 2])) 1240 } 1241 let v = null, 1242 w = null 1243 i.rewind && (t.isBeginning ? (w = i.virtual && i.virtual.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1) : t.isEnd && (v = 0)) 1244 const b = (h - d[f]) / g, 1245 y = f < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup 1246 if (m > i.longSwipesMs) { 1247 if (!i.longSwipes) return void t.slideTo(t.activeIndex) 1248 "next" === t.swipeDirection && (b >= i.longSwipesRatio ? t.slideTo(i.rewind && t.isEnd ? v : f + y) : t.slideTo(f)), "prev" === t.swipeDirection && (b > 1 - i.longSwipesRatio ? t.slideTo(f + y) : null !== w && b < 0 && Math.abs(b) > i.longSwipesRatio ? t.slideTo(w) : t.slideTo(f)) 1249 } else { 1250 if (!i.shortSwipes) return void t.slideTo(t.activeIndex) 1251 t.navigation && (p.target === t.navigation.nextEl || p.target === t.navigation.prevEl) ? (p.target === t.navigation.nextEl ? t.slideTo(f + y) : t.slideTo(f)) : ("next" === t.swipeDirection && t.slideTo(null !== v ? v : f + y), "prev" === t.swipeDirection && t.slideTo(null !== w ? w : f)) 1252 } 1253 } 1254 function N() { 1255 const e = this, 1256 { params: t, el: s } = e 1257 if (s && 0 === s.offsetWidth) return 1258 t.breakpoints && e.setBreakpoint() 1259 const { allowSlideNext: a, allowSlidePrev: i, snapGrid: r } = e, 1260 n = e.virtual && e.params.virtual.enabled 1261 ;(e.allowSlideNext = !0), (e.allowSlidePrev = !0), e.updateSize(), e.updateSlides(), e.updateSlidesClasses() 1262 const l = n && t.loop 1263 !("auto" === t.slidesPerView || t.slidesPerView > 1) || !e.isEnd || e.isBeginning || e.params.centeredSlides || l ? (e.params.loop && !n ? e.slideToLoop(e.realIndex, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0)) : e.slideTo(e.slides.length - 1, 0, !1, !0), 1264 e.autoplay && 1265 e.autoplay.running && 1266 e.autoplay.paused && 1267 (clearTimeout(e.autoplay.resizeTimeout), 1268 (e.autoplay.resizeTimeout = setTimeout(() => { 1269 e.autoplay && e.autoplay.running && e.autoplay.paused && e.autoplay.resume() 1270 }, 500))), 1271 (e.allowSlidePrev = i), 1272 (e.allowSlideNext = a), 1273 e.params.watchOverflow && r !== e.snapGrid && e.checkOverflow() 1274 } 1275 function q(e) { 1276 const t = this 1277 t.enabled && (t.allowClick || (t.params.preventClicks && e.preventDefault(), t.params.preventClicksPropagation && t.animating && (e.stopPropagation(), e.stopImmediatePropagation()))) 1278 } 1279 function R() { 1280 const e = this, 1281 { wrapperEl: t, rtlTranslate: s, enabled: a } = e 1282 if (!a) return 1283 let i 1284 ;
1284(e.previousTranslate = e.translate), e.isHorizontal() ? (e.translate = -t.scrollLeft) : (e.translate = -t.scrollTop), 0 === e.translate && (e.translate = 0), e.updateActiveIndex(), e.updateSlidesClasses() 1285 const r = e.maxTranslate() - e.minTranslate() 1286 ;(i = 0 === r ? 0 : (e.translate - e.minTranslate()) / r), i !== e.progress && e.updateProgress(s ? -e.translate : e.translate), e.emit("setTranslate", e.translate, !1) 1287 } 1288 function F(e) { 1289 const t = this 1290 A(t, e.target), t.params.cssMode || ("auto" !== t.params.slidesPerView && !t.params.autoHeight) || t.update() 1291 } 1292 let _ = !1 1293 function V() {} 1294 const j = (e, t) => { 1295 const s = a(), 1296 { params: i, el: r, wrapperEl: n, device: l } = e, 1297 o = !!i.nested, 1298 d = "on" === t ? "addEventListener" : "removeEventListener", 1299 c = t 1300 r[d]("pointerdown", e.onTouchStart, { passive: !1 }), 1301 s[d]("pointermove", e.onTouchMove, { passive: !1, capture: o }), 1302 s[d]("pointerup", e.onTouchEnd, { passive: !0 }), 1303 s[d]("pointercancel", e.onTouchEnd, { passive: !0 }), 1304 s[d]("pointerout", e.onTouchEnd, { passive: !0 }), 1305 s[d]("pointerleave", e.onTouchEnd, { passive: !0 }), 1306 (i.preventClicks || i.preventClicksPropagation) && r[d]("click", e.onClick, !0), 1307 i.cssMode && n[d]("scroll", e.onScroll), 1308 i.updateOnWindowResize ? e[c](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", N, !0) : e[c]("observerUpdate", N, !0), 1309 r[d]("load", e.onLoad, { capture: !0 }) 1310 } 1311 const W = (e, t) => e.grid && t.grid && t.grid.rows > 1 1312 var U = { 1313 init: !0, 1314 direction: "horizontal", 1315 oneWayMovement: !1, 1316 touchEventsTarget: "wrapper", 1317 initialSlide: 0, 1318 speed: 300, 1319 cssMode: !1, 1320 updateOnWindowResize: !0, 1321 resizeObserver: !0, 1322 nested: !1, 1323 createElements: !1, 1324 enabled: !0, 1325 focusableElements: "input, select, option, textarea, button, video, label", 1326 width: null, 1327 height: null, 1328 preventInteractionOnTransition: !1, 1329 userAgent: null, 1330 url: null, 1331 edgeSwipeDetection: !1, 1332 edgeSwipeThreshold: 20, 1333 autoHeight: !1, 1334 setWrapperSize: !1, 1335 virtualTranslate: !1, 1336 effect: "slide", 1337 breakpoints: void 0, 1338 breakpointsBase: "window", 1339 spaceBetween: 0, 1340 slidesPerView: 1, 1341 slidesPerGroup: 1, 1342 slidesPerGroupSkip: 0, 1343 slidesPerGroupAuto: !1, 1344 centeredSlides: !1, 1345 centeredSlidesBounds: !1, 1346 slidesOffsetBefore: 0, 1347 slidesOffsetAfter: 0, 1348 normalizeSlideIndex: !0, 1349 centerInsufficientSlides: !1, 1350 watchOverflow: !0, 1351 roundLengths: !1, 1352 touchRatio: 1, 1353 touchAngle: 45, 1354 simulateTouch: !0, 1355 shortSwipes: !0, 1356 longSwipes: !0, 1357 longSwipesRatio: 0.5, 1358 longSwipesMs: 300, 1359 followFinger: !0, 1360 allowTouchMove: !0, 1361 threshold: 5, 1362 touchMoveStopPropagation: !1, 1363 touchStartPreventDefault: !0, 1364 touchStartForcePreventDefault: !1, 1365 touchReleaseOnEdges: !1, 1366 uniqueNavElements: !0, 1367 resistance: !0, 1368 resistanceRatio: 0.85, 1369 watchSlidesProgress: !1, 1370 grabCursor: !1, 1371 preventClicks: !0, 1372 preventClicksPropagation: !0, 1373 slideToClickedSlide: !1, 1374 loop: !1, 1375 loopedSlides: null, 1376 loopPreventsSliding: !0, 1377 rewind: !1, 1378 allowSlidePrev: !0, 1379 allowSlideNext: !0, 1380 swipeHandler: null, 1381 noSwiping: !0, 1382 noSwipingClass: "swiper-no-swiping", 1383 noSwipingSelector: null, 1384 passiveListeners: !0, 1385 maxBackfaceHiddenSlides: 10, 1386 containerModifierClass: "swiper-", 1387 slideClass: "swiper-slide", 1388 slideActiveClass: "swiper-slide-active", 1389 slideVisibleClass: "swiper-slide-visible", 1390 slideNextClass: "swiper-slide-next", 1391 slidePrevClass: "swiper-slide-prev", 1392 wrapperClass: "swiper-wrapper", 1393 lazyPreloaderClass: "swiper-lazy-preloader", 1394 lazyPreloadPrevNext: 0, 1395 runCallbacksOnInit: !0, 1396 _emitClasses: !1, 1397 } 1398 function K(e, t) { 1399 return function (s) { 1400 void 0 === s && (s = {}) 1401 const a = Object.keys(s)[0], 1402 i = s[a] 1403 "object" == typeof i && null !== i 1404 ? (["navigation", "pagination", "scrollbar"].indexOf(a) >= 0 && !0 === e[a] && (e[a] = { auto: !0 }), 1405 a in e && "enabled" in i ? (!0 === e[a] && (e[a] = { enabled: !0 }), "object" != typeof e[a] || "enabled" in e[a] || (e[a].enabled = !0), e[a] || (e[a] = { enabled: !1 }), p(t, s)) : p(t, s)) 1406 : p(t, s) 1407 } 1408 } 1409 const Z = { 1410 eventsEmitter: z, 1411 update: k, 1412 translate: O, 1413 transition: { 1414 setTransition: function (e, t) { 1415 const s = this 1416 s.params.cssMode || (s.wrapperEl.style.transitionDuration = `${e}ms`), s.emit("setTransition", e, t) 1417 }, 1418 transitionStart: function (e, t) { 1419 void 0 === e && (e = !0) 1420 const s = this, 1421 { params: a } = s 1422 a.cssMode || (a.autoHeight && s.updateAutoHeight(), D({ swiper: s, runCallbacks: e, direction: t, step: "Start" })) 1423 }, 1424 transitionEnd: function (e, t) { 1425 void 0 === e && (e = !0) 1426 const s = this, 1427 { params: a } = s 1428 ;(s.animating = !1), a.cssMode || (s.setTransition(0), D({ swiper: s, runCallbacks: e, direction: t, step: "End" })) 1429 }, 1430 }, 1431 slide: G, 1432 loop: H, 1433 grabCursor: { 1434 setGrabCursor: function (e) { 1435 const t = this 1436 if (!t.params.simulateTouch || (t.params.watchOverflow && t.isLocked) || t.params.cssMode) return 1437 const s = "container" === t.params.touchEventsTarget ? t.el : t.wrapperEl 1438 t.isElement && (t.__preventObserver__ = !0), 1439 (s.style.cursor = "move"), 1440 (s.style.cursor = e ? "grabbing" : "grab"), 1441 t.isElement && 1442 requestAnimationFrame(() => { 1443 t.__preventObserver__ = !1 1444 }) 1445 }, 1446 unsetGrabCursor: function () { 1447 const e = this 1448 ;(e.params.watchOverflow && e.isLocked) || 1449 e.params.cssMode || 1450 (e.isElement && (e.__preventObserver__ = !0), 1451 (e["container" === e.params.touchEventsTarget ? "el" : "wrapperEl"].style.cursor = ""), 1452 e.isElement && 1453 requestAnimationFrame(() => { 1454 e.__preventObserver__ = !1 1455 })) 1456 }, 1457 }, 1458 events: { 1459 attachEvents: function () { 1460 const e = this, 1461 t = a(), 1462 { params: s } = e 1463 ;(e.onTouchStart = X.bind(e)), (e.onTouchMove = Y.bind(e)), (e.onTouchEnd = B.bind(e)), s.cssMode && (e.onScroll = R.bind(e)), (e.onClick = q.bind(e)), (e.onLoad = F.bind(e)), _ || (t.addEventListener("touchstart", V), (_ = !0)), j(e, "on") 1464 }, 1465 detachEvents: function () { 1466 j(this, "off") 1467 }, 1468 }, 1469 breakpoints: { 1470 setBreakpoint: function () { 1471 const e = this, 1472 { realIndex: t, initialized: s, params: a, el: i } = e, 1473 r = a.breakpoints 1474 if (!r || (r && 0 === Object.keys(r).length)) return
1475 const n = e.getBreakpoint(r, e.params.breakpointsBase, e.el) 1476 if (!n || e.currentBreakpoint === n) return 1477 const l = (n in r ? r[n] : void 0) || e.originalParams, 1478 o = W(e, a), 1479 d = W(e, l), 1480 c = a.enabled 1481 o && !d 1482 ? (i.classList.remove(`${a.containerModifierClass}grid`, `${a.containerModifierClass}grid-column`), e.emitContainerClasses()) 1483 : !o && d && (i.classList.add(`${a.containerModifierClass}grid`), ((l.grid.fill && "column" === l.grid.fill) || (!l.grid.fill && "column" === a.grid.fill)) && i.classList.add(`${a.containerModifierClass}grid-column`), e.emitContainerClasses()), 1484 ["navigation", "pagination", "scrollbar"].forEach((t) => { 1485 if (void 0 === l[t]) return 1486 const s = a[t] && a[t].enabled, 1487 i = l[t] && l[t].enabled 1488 s && !i && e[t].disable(), !s && i && e[t].enable() 1489 }) 1490 const u = l.direction && l.direction !== a.direction, 1491 m = a.loop && (l.slidesPerView !== a.slidesPerView || u) 1492 u && s && e.changeDirection(), p(e.params, l) 1493 const h = e.params.enabled 1494 Object.assign(e, { allowTouchMove: e.params.allowTouchMove, allowSlideNext: e.params.allowSlideNext, allowSlidePrev: e.params.allowSlidePrev }), 1495 c && !h ? e.disable() : !c && h && e.enable(), 1496 (e.currentBreakpoint = n), 1497 e.emit("_beforeBreakpoint", l), 1498 m && s && (e.loopDestroy(), e.loopCreate(t), e.updateSlides()), 1499 e.emit("breakpoint", l) 1500 }, 1501 getBreakpoint: function (e, t, s) { 1502 if ((void 0 === t && (t = "window"), !e || ("container" === t && !s))) return 1503 let a = !1 1504 const i = r(), 1505 n = "window" === t ? i.innerHeight : s.clientHeight, 1506 l = Object.keys(e).map((e) => { 1507 if ("string" == typeof e && 0 === e.indexOf("@")) { 1508 const t = parseFloat(e.substr(1)) 1509 return { value: n * t, point: e } 1510 } 1511 return { value: e, point: e } 1512 }) 1513 l.sort((e, t) => parseInt(e.value, 10) - parseInt(t.value, 10)) 1514 for (let e = 0; e < l.length; e += 1) { 1515 const { point: r, value: n } = l[e] 1516 "window" === t ? i.matchMedia(`(min-width: ${n}px)`).matches && (a = r) : n <= s.clientWidth && (a = r) 1517 } 1518 return a || "max" 1519 }, 1520 }, 1521 checkOverflow: { 1522 checkOverflow: function () { 1523 const e = this, 1524 { isLocked: t, params: s } = e, 1525 { slidesOffsetBefore: a } = s 1526 if (a) { 1527 const t = e.slides.length - 1, 1528 s = e.slidesGrid[t] + e.slidesSizesGrid[t] + 2 * a 1529 e.isLocked = e.size > s 1530 } else e.isLocked = 1 === e.snapGrid.length 1531 !0 === s.allowSlideNext && (e.allowSlideNext = !e.isLocked), !0 === s.allowSlidePrev && (e.allowSlidePrev = !e.isLocked), t && t !== e.isLocked && (e.isEnd = !1), t !== e.isLocked && e.emit(e.isLocked ? "lock" : "unlock") 1532 }, 1533 }, 1534 classes: { 1535 addClasses: function () { 1536 const e = this, 1537 { classNames: t, params: s, rtl: a, el: i, device: r } = e, 1538 n = (function (e, t) { 1539 const s = [] 1540 return ( 1541 e.forEach((e) => { 1542 "object" == typeof e 1543 ? Object.keys(e).forEach((a) => { 1544 e[a] && s.push(t + a) 1545 }) 1546 : "string" == typeof e && s.push(t + e) 1547 }), 1548 s 1549 ) 1550 })( 1551 [ 1552 "initialized", 1553 s.direction, 1554 { "free-mode": e.params.freeMode && s.freeMode.enabled }, 1555 { autoheight: s.autoHeight }, 1556 { rtl: a }, 1557 { grid: s.grid && s.grid.rows > 1 }, 1558 { "grid-column": s.grid && s.grid.rows > 1 && "column" === s.grid.fill }, 1559 { android: r.android }, 1560 { ios: r.ios }, 1561 { "css-mode": s.cssMode }, 1562 { centered: s.cssMode && s.centeredSlides }, 1563 { "watch-progress": s.watchSlidesProgress }, 1564 ], 1565 s.containerModifierClass 1566 ) 1567 t.push(...n), i.classList.add(...t), e.emitContainerClasses() 1568 }, 1569 removeClasses: function () { 1570 const { el: e, classNames: t } = this 1571 e.classList.remove(...t), this.emitContainerClasses() 1572 }, 1573 }, 1574 }, 1575 Q = {} 1576 class J { 1577 constructor() { 1578 let e, t 1579 for (var s = arguments.length, i = new Array(s), r = 0; r < s; r++) i[r] = arguments[r] 1580 1 === i.length && i[0].constructor && "Object" === Object.prototype.toString.call(i[0]).slice(8, -1) ? (t = i[0]) : ([e, t] = i), t || (t = {}), (t = p({}, t)), e && !t.el && (t.el = e) 1581 const n = a() 1582 if (t.el && "string" == typeof t.el && n.querySelectorAll(t.el).length > 1) { 1583 const e = [] 1584 return ( 1585 n.querySelectorAll(t.el).forEach((s) => { 1586 const a = p({}, t, { el: s }) 1587 e.push(new J(a)) 1588 }), 1589 e 1590 ) 1591 } 1592 const l = this 1593 ;(l.__swiper__ = !0), (l.support = C()), (l.device = P({ userAgent: t.userAgent })), (l.browser = L()), (l.eventsListeners = {}), (l.eventsAnyListeners = []), (l.modules = [...l.__modules__]), t.modules && Array.isArray(t.modules) && l.modules.push(...t.modules) 1594 const o = {}
1595 l.modules.forEach((e) => { 1596 e({ params: t, swiper: l, extendParams: K(t, o), on: l.on.bind(l), once: l.once.bind(l), off: l.off.bind(l), emit: l.emit.bind(l) }) 1597 }) 1598 const d = p({}, U, o) 1599 return ( 1600 (l.params = p({}, d, Q, t)), 1601 (l.originalParams = p({}, l.params)), 1602 (l.passedParams = p({}, t)), 1603 l.params && 1604 l.params.on && 1605 Object.keys(l.params.on).forEach((e) => { 1606 l.on(e, l.params.on[e]) 1607 }), 1608 l.params && l.params.onAny && l.onAny(l.params.onAny), 1609 Object.assign(l, { 1610 enabled: l.params.enabled, 1611 el: e, 1612 classNames: [], 1613 slides: [], 1614 slidesGrid: [], 1615 snapGrid: [], 1616 slidesSizesGrid: [], 1617 isHorizontal: () => "horizontal" === l.params.direction, 1618 isVertical: () => "vertical" === l.params.direction, 1619 activeIndex: 0, 1620 realIndex: 0, 1621 isBeginning: !0, 1622 isEnd: !1, 1623 translate: 0, 1624 previousTranslate: 0, 1625 progress: 0, 1626 velocity: 0, 1627 animating: !1, 1628 cssOverflowAdjustment() { 1629 return Math.trunc(this.translate / 2 ** 23) * 2 ** 23 1630 }, 1631 allowSlideNext: l.params.allowSlideNext, 1632 allowSlidePrev: l.params.allowSlidePrev, 1633 touchEventsData: { 1634 isTouched: void 0, 1635 isMoved: void 0, 1636 allowTouchCallbacks: void 0, 1637 touchStartTime: void 0, 1638 isScrolling: void 0, 1639 currentTranslate: void 0, 1640 startTranslate: void 0, 1641 allowThresholdMove: void 0, 1642 focusableElements: l.params.focusableElements, 1643 lastClickTime: 0, 1644 clickTimeout: void 0, 1645 velocities: [], 1646 allowMomentumBounce: void 0, 1647 startMoving: void 0, 1648 evCache: [], 1649 }, 1650 allowClick: !0, 1651 allowTouchMove: l.params.allowTouchMove, 1652 touches: { startX: 0, startY: 0, currentX: 0, currentY: 0, diff: 0 }, 1653 imagesToLoad: [], 1654 imagesLoaded: 0, 1655 }), 1656 l.emit("_swiper"), 1657 l.params.init && l.init(), 1658 l 1659 ) 1660 } 1661 getSlideIndex(e) { 1662 const { slidesEl: t, params: s } = this, 1663 a = b(f(t, `.${s.slideClass}, swiper-slide`)[0]) 1664 return b(e) - a 1665 } 1666 getSlideIndexByData(e) { 1667 return this.getSlideIndex(this.slides.filter((t) => 1 * t.getAttribute("data-swiper-slide-index") === e)[0]) 1668 } 1669 recalcSlides() { 1670 const { slidesEl: e, params: t } = this 1671 this.slides = f(e, `.${t.slideClass}, swiper-slide`) 1672 } 1673 enable() { 1674 const e = this 1675 e.enabled || ((e.enabled = !0), e.params.grabCursor && e.setGrabCursor(), e.emit("enable")) 1676 } 1677 disable() { 1678 const e = this 1679 e.enabled && ((e.enabled = !1), e.params.grabCursor && e.unsetGrabCursor(), e.emit("disable")) 1680 } 1681 setProgress(e, t) { 1682 const s = this 1683 e = Math.min(Math.max(e, 0), 1) 1684 const a = s.minTranslate(), 1685 i = (s.maxTranslate() - a) * e + a 1686 s.translateTo(i, void 0 === t ? 0 : t), s.updateActiveIndex(), s.updateSlidesClasses() 1687 } 1688 emitContainerClasses() { 1689 const e = this 1690 if (!e.params._emitClasses || !e.el) return 1691 const t = e.el.className.split(" ").filter((t) => 0 === t.indexOf("swiper") || 0 === t.indexOf(e.params.containerModifierClass)) 1692 e.emit("_containerClasses", t.join(" ")) 1693 } 1694 getSlideClasses(e) { 1695 const t = this 1696 return t.destroyed 1697 ? "" 1698 : e.className 1699 .split(" ") 1700 .filter((e) => 0 === e.indexOf("swiper-slide") || 0 === e.indexOf(t.params.slideClass)) 1701 .join(" ") 1702 } 1703 emitSlidesClasses() { 1704 const e = this 1705 if (!e.params._emitClasses || !e.el) return 1706 const t = [] 1707 e.slides.forEach((s) => { 1708 const a = e.getSlideClasses(s) 1709 t.push({ slideEl: s, classNames: a }), e.emit("_slideClass", s, a) 1710 }), 1711 e.emit("_slideClasses", t) 1712 } 1713 slidesPerViewDynamic(e, t) { 1714 void 0 === e && (e = "current"), void 0 === t && (t = !1) 1715 const { params: s, slides: a, slidesGrid: i, slidesSizesGrid: r, size: n, activeIndex: l } = this 1716 let o = 1 1717 if (s.centeredSlides) { 1718 let e, 1719 t = a[l] ? a[l].swiperSlideSize : 0 1720 for (let s = l + 1; s < a.length; s += 1) a[s] && !e && ((t += a[s].swiperSlideSize), (o += 1), t > n && (e = !0)) 1721 for (let s = l - 1; s >= 0; s -= 1) a[s] && !e && ((t += a[s].swiperSlideSize), (o += 1), t > n && (e = !0)) 1722 } else if ("current" === e) 1723 for (let e = l + 1; e < a.length; e += 1) { 1724 ;(t ? i[e] + r[e] - i[l] < n : i[e] - i[l] < n) && (o += 1) 1725 } 1726 else 1727 for (let e = l - 1; e >= 0; e -= 1) { 1728 i[l] - i[e] < n && (o += 1) 1729 } 1730 return o 1731 } 1732 update() { 1733 const e = this 1734 if (!e || e.destroyed) return 1735 const { snapGrid: t, params: s } = e 1736 function a() { 1737 const t = e.rtlTranslate ? -1 * e.translate : e.translate, 1738 s = Math.min(Math.max(t, e.maxTranslate()), e.minTranslate()) 1739 e.setTranslate(s), e.updateActiveIndex(), e.updateSlidesClasses() 1740 } 1741 let i 1742 if ( 1743 (s.breakpoints && e.setBreakpoint(),
1744 [...e.el.querySelectorAll('[loading="lazy"]')].forEach((t) => { 1745 t.complete && A(e, t) 1746 }), 1747 e.updateSize(), 1748 e.updateSlides(), 1749 e.updateProgress(), 1750 e.updateSlidesClasses(), 1751 s.freeMode && s.freeMode.enabled && !s.cssMode) 1752 ) 1753 a(), s.autoHeight && e.updateAutoHeight() 1754 else { 1755 if (("auto" === s.slidesPerView || s.slidesPerView > 1) && e.isEnd && !s.centeredSlides) { 1756 const t = e.virtual && s.virtual.enabled ? e.virtual.slides : e.slides 1757 i = e.slideTo(t.length - 1, 0, !1, !0) 1758 } else i = e.slideTo(e.activeIndex, 0, !1, !0) 1759 i || a() 1760 } 1761 s.watchOverflow && t !== e.snapGrid && e.checkOverflow(), e.emit("update") 1762 } 1763 changeDirection(e, t) { 1764 void 0 === t && (t = !0) 1765 const s = this, 1766 a = s.params.direction 1767 return ( 1768 e || (e = "horizontal" === a ? "vertical" : "horizontal"), 1769 e === a || 1770 ("horizontal" !== e && "vertical" !== e) || 1771 (s.el.classList.remove(`${s.params.containerModifierClass}${a}`), 1772 s.el.classList.add(`${s.params.containerModifierClass}${e}`), 1773 s.emitContainerClasses(), 1774 (s.params.direction = e), 1775 s.slides.forEach((t) => { 1776 "vertical" === e ? (t.style.width = "") : (t.style.height = "") 1777 }), 1778 s.emit("changeDirection"), 1779 t && s.update()), 1780 s 1781 ) 1782 } 1783 changeLanguageDirection(e) { 1784 const t = this 1785 ;(t.rtl && "rtl" === e) || 1786 (!t.rtl && "ltr" === e) || 1787 ((t.rtl = "rtl" === e), (t.rtlTranslate = "horizontal" === t.params.direction && t.rtl), t.rtl ? (t.el.classList.add(`${t.params.containerModifierClass}rtl`), (t.el.dir = "rtl")) : (t.el.classList.remove(`${t.params.containerModifierClass}rtl`), (t.el.dir = "ltr")), t.update()) 1788 } 1789 mount(e) { 1790 const t = this 1791 if (t.mounted) return !0 1792 let s = e || t.params.el 1793 if (("string" == typeof s && (s = document.querySelector(s)), !s)) return !1 1794 ;(s.swiper = t), s.shadowEl && (t.isElement = !0) 1795 const a = () => `.${(t.params.wrapperClass || "").trim().split(" ").join(".")}` 1796 let i = (() => { 1797 if (s && s.shadowRoot && s.shadowRoot.querySelector) { 1798 return s.shadowRoot.querySelector(a()) 1799 } 1800 return f(s, a())[0] 1801 })() 1802 return ( 1803 !i && 1804 t.params.createElements && 1805 ((i = g("div", t.params.wrapperClass)), 1806 s.append(i), 1807 f(s, `.${t.params.slideClass}`).forEach((e) => { 1808 i.append(e) 1809 })), 1810 Object.assign(t, { 1811 el: s, 1812 wrapperEl: i, 1813 slidesEl: t.isElement ? s : i, 1814 mounted: !0, 1815 rtl: "rtl" === s.dir.toLowerCase() || "rtl" === w(s, "direction"), 1816 rtlTranslate: "horizontal" === t.params.direction && ("rtl" === s.dir.toLowerCase() || "rtl" === w(s, "direction")), 1817 wrongRTL: "-webkit-box" === w(i, "display"), 1818 }), 1819 !0 1820 ) 1821 } 1822 init(e) { 1823 const t = this 1824 if (t.initialized) return t 1825 return ( 1826 !1 === t.mount(e) || 1827 (t.emit("beforeInit"), 1828 t.params.breakpoints && t.setBreakpoint(), 1829 t.addClasses(), 1830 t.updateSize(), 1831 t.updateSlides(), 1832 t.params.watchOverflow && t.checkOverflow(), 1833 t.params.grabCursor && t.enabled && t.setGrabCursor(), 1834 t.params.loop && t.virtual && t.params.virtual.enabled ? t.slideTo(t.params.initialSlide + t.virtual.slidesBefore, 0, t.params.runCallbacksOnInit, !1, !0) : t.slideTo(t.params.initialSlide, 0, t.params.runCallbacksOnInit, !1, !0), 1835 t.params.loop && t.loopCreate(), 1836 t.attachEvents(), 1837 [...t.el.querySelectorAll('[loading="lazy"]')].forEach((e) => { 1838 e.complete 1839 ? A(t, e) 1840 : e.addEventListener("load", (e) => { 1841 A(t, e.target) 1842 }) 1843 }), 1844 I(t), 1845 (t.initialized = !0), 1846 I(t), 1847 t.emit("init"), 1848 t.emit("afterInit")), 1849 t 1850 ) 1851 } 1852 destroy(e, t) { 1853 void 0 === e && (e = !0), void 0 === t && (t = !0) 1854 const s = this, 1855 { params: a, el: i, wrapperEl: r, slides: n } = s 1856 return ( 1857 void 0 === s.params || 1858 s.destroyed || 1859 (s.emit("beforeDestroy"), 1860 (s.initialized = !1), 1861 s.detachEvents(), 1862 a.loop && s.loopDestroy(), 1863 t && 1864 (s.removeClasses(), 1865 i.removeAttribute("style"), 1866 r.removeAttribute("style"), 1867 n && 1868 n.length &&
1869 n.forEach((e) => { 1870 e.classList.remove(a.slideVisibleClass, a.slideActiveClass, a.slideNextClass, a.slidePrevClass), e.removeAttribute("style"), e.removeAttribute("data-swiper-slide-index") 1871 })), 1872 s.emit("destroy"), 1873 Object.keys(s.eventsListeners).forEach((e) => { 1874 s.off(e) 1875 }), 1876 !1 !== e && 1877 ((s.el.swiper = null), 1878 (function (e) { 1879 const t = e 1880 Object.keys(t).forEach((e) => { 1881 try { 1882 t[e] = null 1883 } catch (e) {} 1884 try { 1885 delete t[e] 1886 } catch (e) {} 1887 }) 1888 })(s)), 1889 (s.destroyed = !0)), 1890 null 1891 ) 1892 } 1893 static extendDefaults(e) { 1894 p(Q, e) 1895 } 1896 static get extendedDefaults() { 1897 return Q 1898 } 1899 static get defaults() { 1900 return U 1901 } 1902 static installModule(e) { 1903 J.prototype.__modules__ || (J.prototype.__modules__ = []) 1904 const t = J.prototype.__modules__ 1905 "function" == typeof e && t.indexOf(e) < 0 && t.push(e) 1906 } 1907 static use(e) { 1908 return Array.isArray(e) ? (e.forEach((e) => J.installModule(e)), J) : (J.installModule(e), J) 1909 } 1910 } 1911 function ee(e, t, s, a) { 1912 return ( 1913 e.params.createElements && 1914 Object.keys(a).forEach((i) => { 1915 if (!s[i] && !0 === s.auto) { 1916 let r = f(e.el, `.${a[i]}`)[0] 1917 r || ((r = g("div", a[i])), (r.className = a[i]), e.el.append(r)), (s[i] = r), (t[i] = r) 1918 } 1919 }), 1920 s 1921 ) 1922 } 1923 function te(e) { 1924 return ( 1925 void 0 === e && (e = ""), 1926 `.${e 1927 .trim() 1928 .replace(/([\.:!+\/])/g, "\\$1") 1929 .replace(/ /g, ".")}` 1930 ) 1931 } 1932 function se(e) { 1933 const t = this, 1934 { params: s, slidesEl: a } = t 1935 s.loop && t.loopDestroy() 1936 const i = (e) => { 1937 if ("string" == typeof e) { 1938 const t = document.createElement("div") 1939 ;(t.innerHTML = e), a.append(t.children[0]), (t.innerHTML = "") 1940 } else a.append(e) 1941 } 1942 if ("object" == typeof e && "length" in e) for (let t = 0; t < e.length; t += 1) e[t] && i(e[t]) 1943 else i(e) 1944 t.recalcSlides(), s.loop && t.loopCreate(), (s.observer && !t.isElement) || t.update() 1945 } 1946 function ae(e) { 1947 const t = this, 1948 { params: s, activeIndex: a, slidesEl: i } = t 1949 s.loop && t.loopDestroy() 1950 let r = a + 1 1951 const n = (e) => { 1952 if ("string" == typeof e) { 1953 const t = document.createElement("div") 1954 ;(t.innerHTML = e), i.prepend(t.children[0]), (t.innerHTML = "") 1955 } else i.prepend(e) 1956 } 1957 if ("object" == typeof e && "length" in e) { 1958 for (let t = 0; t < e.length; t += 1) e[t] && n(e[t]) 1959 r = a + e.length 1960 } else n(e) 1961 t.recalcSlides(), s.loop && t.loopCreate(), (s.observer && !t.isElement) || t.update(), t.slideTo(r, 0, !1) 1962 } 1963 function ie(e, t) { 1964 const s = this, 1965 { params: a, activeIndex: i, slidesEl: r } = s 1966 let n = i 1967 a.loop && ((n -= s.loopedSlides), s.loopDestroy(), s.recalcSlides()) 1968 const l = s.slides.length 1969 if (e <= 0) return void s.prependSlide(t) 1970 if (e >= l) return void s.appendSlide(t) 1971 let o = n > e ? n + 1 : n 1972 const d = [] 1973 for (let t = l - 1; t >= e; t -= 1) { 1974 const e = s.slides[t] 1975 e.remove(), d.unshift(e) 1976 } 1977 if ("object" == typeof t && "length" in t) { 1978 for (let e = 0; e < t.length; e += 1) t[e] && r.append(t[e]) 1979 o = n > e ? n + t.length : n 1980 } else r.append(t) 1981 for (let e = 0; e < d.length; e += 1) r.append(d[e]) 1982 s.recalcSlides(), a.loop && s.loopCreate(), (a.observer && !s.isElement) || s.update(), a.loop ? s.slideTo(o + s.loopedSlides, 0, !1) : s.slideTo(o, 0, !1) 1983 } 1984 function re(e) { 1985 const t = this, 1986 { params: s, activeIndex: a } = t 1987 let i = a 1988 s.loop && ((i -= t.loopedSlides), t.loopDestroy()) 1989 let r, 1990 n = i 1991 if ("object" == typeof e && "length" in e) { 1992 for (let s = 0; s < e.length; s += 1) (r = e[s]), t.slides[r] && t.slides[r].remove(), r < n && (n -= 1) 1993 n = Math.max(n, 0) 1994 } else (r = e), t.slides[r] && t.slides[r].remove(), r < n && (n -= 1), (n = Math.max(n, 0)) 1995 t.recalcSlides(), s.loop && t.loopCreate(), (s.observer && !t.isElement) || t.update(
1995), s.loop ? t.slideTo(n + t.loopedSlides, 0, !1) : t.slideTo(n, 0, !1) 1996 } 1997 function ne() { 1998 const e = this, 1999 t = [] 2000 for (let s = 0; s < e.slides.length; s += 1) t.push(s) 2001 e.removeSlide(t) 2002 } 2003 function le(e) { 2004 const { effect: t, swiper: s, on: a, setTranslate: i, setTransition: r, overwriteParams: n, perspective: l, recreateShadows: o, getEffectParams: d } = e 2005 let c 2006 a("beforeInit", () => { 2007 if (s.params.effect !== t) return 2008 s.classNames.push(`${s.params.containerModifierClass}${t}`), l && l() && s.classNames.push(`${s.params.containerModifierClass}3d`) 2009 const e = n ? n() : {} 2010 Object.assign(s.params, e), Object.assign(s.originalParams, e) 2011 }), 2012 a("setTranslate", () => { 2013 s.params.effect === t && i() 2014 }), 2015 a("setTransition", (e, a) => { 2016 s.params.effect === t && r(a) 2017 }), 2018 a("transitionEnd", () => { 2019 if (s.params.effect === t && o) { 2020 if (!d || !d().slideShadows) return 2021 s.slides.forEach((e) => { 2022 e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e) => e.remove()) 2023 }), 2024 o() 2025 } 2026 }), 2027 a("virtualUpdate", () => { 2028 s.params.effect === t && 2029 (s.slides.length || (c = !0), 2030 requestAnimationFrame(() => { 2031 c && s.slides && s.slides.length && (i(), (c = !1)) 2032 })) 2033 }) 2034 } 2035 function oe(e, t) { 2036 const s = h(t) 2037 return s !== t && ((s.style.backfaceVisibility = "hidden"), (s.style["-webkit-backface-visibility"] = "hidden")), s 2038 } 2039 function de(e) { 2040 let { swiper: t, duration: s, transformElements: a, allSlides: i } = e 2041 const { activeIndex: r } = t 2042 if (t.params.virtualTranslate && 0 !== s) { 2043 let e, 2044 s = !1 2045 ;(e = i 2046 ? a 2047 : a.filter((e) => { 2048 const s = e.classList.contains("swiper-slide-transform") 2049 ? ((e) => { 2050 if (!e.parentElement) return t.slides.filter((t) => t.shadowEl && t.shadowEl === e.parentNode)[0] 2051 return e.parentElement 2052 })(e) 2053 : e 2054 return t.getSlideIndex(s) === r 2055 })), 2056 e.forEach((e) => { 2057 E(e, () => { 2058 if (s) return 2059 if (!t || t.destroyed) return 2060 ;(s = !0), (t.animating = !1) 2061 const e = new window.CustomEvent("transitionend", { bubbles: !0, cancelable: !0 }) 2062 t.wrapperEl.dispatchEvent(e) 2063 }) 2064 }) 2065 } 2066 } 2067 function ce(e, t, s) { 2068 const a = "swiper-slide-shadow" + (s ? `-${s}` : ""), 2069 i = h(t) 2070 let r = i.querySelector(`.${a}`) 2071 return r || ((r = g("div", "swiper-slide-shadow" + (s ? `-${s}` : ""))), i.append(r)), r 2072 } 2073 Object.keys(Z).forEach((e) => { 2074 Object.keys(Z[e]).forEach((t) => { 2075 J.prototype[t] = Z[e][t] 2076 }) 2077 }), 2078 J.use([ 2079 function (e) { 2080 let { swiper: t, on: s, emit: a } = e 2081 const i = r() 2082 let n = null, 2083 l = null 2084 const o = () => { 2085 t && !t.destroyed && t.initialized && (a("beforeResize"), a("resize")) 2086 }, 2087 d = () => { 2088 t && !t.destroyed && t.initialized && a("orientationchange") 2089 } 2090 s("init", () => { 2091 t.params.resizeObserver && void 0 !== i.ResizeObserver 2092 ? t && 2093 !t.destroyed && 2094 t.initialized && 2095 ((n = new ResizeObserver((e) => { 2096 l = i.requestAnimationFrame(() => { 2097 const { width: s, height: a } = t 2098 let i = s, 2099 r = a 2100 e.forEach((e) => { 2101 let { contentBoxSize: s, contentRect: a, target: n } = e 2102 ;(n && n !== t.el) || ((i = a ? a.width : (s[0] || s).inlineSize), (r = a ? a.height : (s[0] || s).blockSize)) 2103 }), 2104 (i === s && r === a) || o() 2105 }) 2106 })), 2107 n.observe(t.el)) 2108 : (i.addEventListener("resize", o), i.addEventListener("orientationchange", d)) 2109 }), 2110 s("destroy", () => { 2111 l && i.cancelAnimationFrame(l), n && n.unobserve && t.el && (n.unobserve(t.el), (n = null)), i.removeEventListener("resize", o), i.removeEventListener("orientationchange", d) 2112 }) 2113 }, 2114 function (e) { 2115 let { swiper: t, extendParams: s, on: a, emit: i } = e 2116 const n = [], 2117 l = r(), 2118 o = function (e, s) { 2119 void 0 === s && (s = {}) 2120 const a = new (l.MutationObserver || l.WebkitMutationObserver)((e) => { 2121 if (t.__preventObserver__) return 2122 if (1 === e.length) return void i("observerUpdate", e[0]) 2123 const s = function () { 2124 i("observerUpdate", e[0]) 2125 } 2126 l.requestAnimationFrame ? l.requestAnimationFrame(s) : l.setTimeout(s, 0) 2127 }) 2128 a.observe(e, { attributes: void 0 === s.attributes || s.attributes, childList: void 0 === s.childList || s.childList, characterData: void 0 === s.characterData || s.characterData }), n.push(a) 2129 } 2130 s({ observer: !1, observeParents: !1, observeSlideChildren: !1 }), 2131 a("init", () => { 2132 if (t.params.observer) { 2133 if (t.params.observeParents) { 2134 const e = y(t.el) 2135 for (let t = 0; t < e.length; t += 1) o(e[t]) 2136 } 2137 o(t.el, { childList: t.params.observeSlideChildren }), o(t.wrapperEl, { attributes: !1 }) 2138 } 2139 }), 2140 a("destroy", () => {
2141 n.forEach((e) => { 2142 e.disconnect() 2143 }), 2144 n.splice(0, n.length) 2145 }) 2146 }, 2147 ]) 2148 const pe = [ 2149 function (e) { 2150 let t, 2151 { swiper: s, extendParams: i, on: r, emit: n } = e 2152 i({ virtual: { enabled: !1, slides: [], cache: !0, renderSlide: null, renderExternal: null, renderExternalUpdate: !0, addSlidesBefore: 0, addSlidesAfter: 0 } }) 2153 const l = a() 2154 s.virtual = { cache: {}, from: void 0, to: void 0, slides: [], offset: 0, slidesGrid: [] } 2155 const o = l.createElement("div") 2156 function d(e, t) { 2157 const a = s.params.virtual 2158 if (a.cache && s.virtual.cache[t]) return s.virtual.cache[t] 2159 let i 2160 return ( 2161 a.renderSlide ? ((i = a.renderSlide.call(s, e, t)), "string" == typeof i && ((o.innerHTML = i), (i = o.children[0]))) : (i = s.isElement ? g("swiper-slide") : g("div", s.params.slideClass)), 2162 i.setAttribute("data-swiper-slide-index", t), 2163 a.renderSlide || (i.innerHTML = e), 2164 a.cache && (s.virtual.cache[t] = i), 2165 i 2166 ) 2167 } 2168 function c(e) { 2169 const { slidesPerView: t, slidesPerGroup: a, centeredSlides: i, loop: r } = s.params, 2170 { addSlidesBefore: l, addSlidesAfter: o } = s.params.virtual, 2171 { from: c, to: p, slides: u, slidesGrid: m, offset: h } = s.virtual 2172 s.params.cssMode || s.updateActiveIndex() 2173 const g = s.activeIndex || 0 2174 let v, w, b 2175 ;(v = s.rtlTranslate ? "right" : s.isHorizontal() ? "left" : "top"), i ? ((w = Math.floor(t / 2) + a + o), (b = Math.floor(t / 2) + a + l)) : ((w = t + (a - 1) + o), (b = (r ? t : a) + l)) 2176 let y = g - b, 2177 E = g + w 2178 r || ((y = Math.max(y, 0)), (E = Math.min(E, u.length - 1))) 2179 let x = (s.slidesGrid[y] || 0) - (s.slidesGrid[0] || 0) 2180 function S() { 2181 s.updateSlides(), s.updateProgress(), s.updateSlidesClasses(), n("virtualUpdate") 2182 } 2183 if ((r && g >= b ? ((y -= b), i || (x += s.slidesGrid[0])) : r && g < b && ((y = -b), i && (x += s.slidesGrid[0])), Object.assign(s.virtual, { from: y, to: E, offset: x, slidesGrid: s.slidesGrid, slidesBefore: b, slidesAfter: w }), c === y && p === E && !e)) 2184 return ( 2185 s.slidesGrid !== m && 2186 x !== h && 2187 s.slides.forEach((e) => { 2188 e.style[v] = x - Math.abs(s.cssOverflowAdjustment()) + "px" 2189 }), 2190 s.updateProgress(), 2191 void n("virtualUpdate") 2192 ) 2193 if (s.params.virtual.renderExternal) 2194 return ( 2195 s.params.virtual.renderExternal.call(s, { 2196 offset: x, 2197 from: y, 2198 to: E, 2199 slides: (function () { 2200 const e = [] 2201 for (let t = y; t <= E; t += 1) e.push(u[t]) 2202 return e 2203 })(), 2204 }), 2205 void (s.params.virtual.renderExternalUpdate ? S() : n("virtualUpdate")) 2206 ) 2207 const T = [], 2208 M = [], 2209 C = (e) => { 2210 let t = e 2211 return e < 0 ? (t = u.length + e) : t >= u.length && (t -= u.length), t 2212 } 2213 if (e) 2214 s.slidesEl.querySelectorAll(`.${s.params.slideClass}, swiper-slide`).forEach((e) => { 2215 e.remove() 2216 }) 2217 else 2218 for (let e = c; e <= p; e += 1) 2219 if (e < y || e > E) { 2220 const t = C(e) 2221 s.slidesEl.querySelectorAll(`.${s.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}"]`).forEach((e) => { 2222 e.remove() 2223 }) 2224 } 2225 const P = r ? -u.length : 0, 2226 L = r ? 2 * u.length : u.length 2227 for (let t = P; t < L; t += 1) 2228 if (t >= y && t <= E) { 2229 const s = C(t) 2230 void 0 === p || e ? M.push(s) : (t > p && M.push(s), t < c && T.push(s)) 2231 } 2232 if ( 2233 (M.forEach((e) => { 2234 s.slidesEl.append(d(u[e], e)) 2235 }), 2236 r) 2237 ) 2238 for (let e = T.length - 1; e >= 0; e -= 1) { 2239 const t = T[e] 2240 s.slidesEl.prepend(d(u[t], t)) 2241 } 2242 else 2243 T.sort((e, t) => t - e), 2244 T.forEach((e) => { 2245 s.slidesEl.prepend(d(u[e], e)) 2246 }) 2247 f(s.slidesEl, ".swiper-slide, swiper-slide").forEach((e) => { 2248 e.style[v] = x - Math.abs(s.cssOverflowAdjustment()) + "px" 2249 }), 2250 S() 2251 } 2252 r("beforeInit", () => { 2253 if (!s.params.virtual.enabled) return 2254 let e 2255 if (void 0 === s.passedParams.virtual.slides) { 2256 const t = [...s.slidesEl.children].filter((e) => e.matches(`.${s.params.slideClass}, swiper-slide`)) 2257 t && 2258 t.length && 2259 ((s.virtual.slides = [...t]), 2260 (e = !0), 2261 t.forEach((e, t) => { 2262 e.setAttribute("data-swiper-slide-index", t), (s.virtual.cache[t] = e), e.remove() 2263 })) 2264 } 2265 e || (s.virtual.slides = s.params.virtual.slides), s.classNames.push(`${s.params.containerModifierClass}virtual`), (s.params.watchSlidesProgress = !0), (s.originalParams.watchSlidesProgress = !0), s.params.initialSlide || c() 2266 }), 2267 r("setTranslate", () => { 2268 s.params.virtual.enabled && 2269 (s.params.cssMode && !s._immediateVirtual 2270 ? (clearTimeout(t), 2271 (t = setTimeout(() => { 2272 c() 2273 }, 100))) 2274 : c()) 2275 }), 2276 r("init update resize", () => { 2277 s.params.virtual.enabled && s.params.cssMode && u(s.wrapperEl, "--swiper-virtual-size", `${s.virtualSize}px`) 2278 }), 2279 Object.assign(s.virtual, { 2280 appendSlide: function (e) { 2281 if ("object" == typeof e && "length" in e) for (let t = 0; t < e.length; t += 1) e[t] && s.virtual.slides.push(e[t]) 2282 else s.virtual.slides.push(e) 2283 c(!0) 2284 }, 2285 prependSlide: function (e) { 2286 const t = s.activeIndex 2287 let a = t + 1, 2288 i = 1 2289 if (Array.isArray(e)) { 2290 for (let t = 0; t < e.length; t += 1) e[t] && s.virtual.slides.unshift(e[t]) 2291 ;(a = t + e.length), (i = e.length) 2292 } else s.virtual.slides.unshift(e) 2293 if (s.params.virtual.cache) { 2294 const e = s.virtual.cache, 2295 t = {} 2296 Object.keys(e).forEach((s) => { 2297 const a = e[s], 2298 r = a.getAttribute("data-swiper-slide-index") 2299 r && a.setAttribute("data-swiper-slide-index", parseInt(r, 10) + i), (t[parseInt(s, 10) + i] = a) 2300 }), 2301 (s.virtual.cache = t) 2302 } 2303 c(!0), s.slideTo(a, 0) 2304 }, 2305 removeSlide: function (e) { 2306 if (null == e) return 2307 let t = s.activeIndex 2308 if (Array.isArray(e)) for (let a = e.length - 1; a >= 0; a -= 1) s.virtual.slides.splice(e[a], 1), s.params.virtual.cache && delete s.virtual.cache[e[a]], e[a] < t && (t -= 1), (t = Math.max(t, 0)) 2309 else s.virtual.slides.splice(e, 1), s.params.virtual.cache && delete s.virtual.cache[e], e < t && (t -= 1), (t = Math.max(t, 0)) 2310 c(!0), s.slideTo(t, 0) 2311 }, 2312 removeAllSlides: function () { 2313 ;(s.virtual.slides = []), s.params.virtual.cache && (s.virtual.cache = {}), c(!0), s.slideTo(0, 0) 2314 }, 2315 update: c, 2316 }) 2317 }, 2318 function (e) { 2319 let { swiper: t, extendParams: s, on: i, emit: n } = e 2320 const l = a(), 2321 o = r() 2322 function d(e) { 2323 if (!t.enabled) return 2324 const { rtlTranslate: s } = t 2325 let a = e 2326 a.originalEvent && (a = a.originalEvent) 2327 const i = a.keyCode || a.charCode, 2328 r = t.params.keyboard.pageUpDown, 2329 d = r && 33 === i, 2330 c = r && 34 === i, 2331 p = 37 === i, 2332 u = 39 === i, 2333 m = 38 === i, 2334 h = 40 === i 2335 if (!t.allowSlideNext && ((t.isHorizontal() && u) || (t.isVertical() && h) || c)) return !1 2336 if (!t.allowSlidePrev && ((t.isHorizontal() && p) || (t.isVertical() && m) || d)) return !1 2337 if (!(a.shiftKey || a.altKey || a.ctrlKey || a.metaKey || (l.activeElement && l.activeElement.nodeName && ("input" === l.activeElement.nodeName.toLowerCase() || "textarea" === l.activeElement.nodeName.toLowerCase())))) { 2338 if (t.params.keyboard.onlyInViewport && (d || c || p || u || m || h)) { 2339 let e = !1 2340 if (y(t.el, `.${t.params.slideClass}, swiper-slide`).length > 0 && 0 === y(t.el, `.${t.params.slideActiveClass}`).length) return 2341 const a = t.el, 2342 i = a.clientWidth,
2343 r = a.clientHeight, 2344 n = o.innerWidth, 2345 l = o.innerHeight, 2346 d = v(a) 2347 s && (d.left -= a.scrollLeft) 2348 const c = [ 2349 [d.left, d.top], 2350 [d.left + i, d.top], 2351 [d.left, d.top + r], 2352 [d.left + i, d.top + r], 2353 ] 2354 for (let t = 0; t < c.length; t += 1) { 2355 const s = c[t] 2356 if (s[0] >= 0 && s[0] <= n && s[1] >= 0 && s[1] <= l) { 2357 if (0 === s[0] && 0 === s[1]) continue 2358 e = !0 2359 } 2360 } 2361 if (!e) return 2362 } 2363 t.isHorizontal() 2364 ? ((d || c || p || u) && (a.preventDefault ? a.preventDefault() : (a.returnValue = !1)), (((c || u) && !s) || ((d || p) && s)) && t.slideNext(), (((d || p) && !s) || ((c || u) && s)) && t.slidePrev()) 2365 : ((d || c || m || h) && (a.preventDefault ? a.preventDefault() : (a.returnValue = !1)), (c || h) && t.slideNext(), (d || m) && t.slidePrev()), 2366 n("keyPress", i) 2367 } 2368 } 2369 function c() { 2370 t.keyboard.enabled || (l.addEventListener("keydown", d), (t.keyboard.enabled = !0)) 2371 } 2372 function p() { 2373 t.keyboard.enabled && (l.removeEventListener("keydown", d), (t.keyboard.enabled = !1)) 2374 } 2375 ;(t.keyboard = { enabled: !1 }), 2376 s({ keyboard: { enabled: !1, onlyInViewport: !0, pageUpDown: !0 } }), 2377 i("init", () => { 2378 t.params.keyboard.enabled && c() 2379 }), 2380 i("destroy", () => { 2381 t.keyboard.enabled && p() 2382 }), 2383 Object.assign(t.keyboard, { enable: c, disable: p }) 2384 }, 2385 function (e) { 2386 let { swiper: t, extendParams: s, on: a, emit: i } = e 2387 const o = r() 2388 let d 2389 s({ mousewheel: { enabled: !1, releaseOnEdges: !1, invert: !1, forceToAxis: !1, sensitivity: 1, eventsTarget: "container", thresholdDelta: null, thresholdTime: null, noMousewheelClass: "swiper-no-mousewheel" } }), (t.mousewheel = { enabled: !1 }) 2390 let c, 2391 p = l() 2392 const u = [] 2393 function m() { 2394 t.enabled && (t.mouseEntered = !0) 2395 } 2396 function h() { 2397 t.enabled && (t.mouseEntered = !1) 2398 } 2399 function f(e) { 2400 return ( 2401 !(t.params.mousewheel.thresholdDelta && e.delta < t.params.mousewheel.thresholdDelta) && 2402 !(t.params.mousewheel.thresholdTime && l() - p < t.params.mousewheel.thresholdTime) && 2403 ((e.delta >= 6 && l() - p < 60) || (e.direction < 0 ? (t.isEnd && !t.params.loop) || t.animating || (t.slideNext(), i("scroll", e.raw)) : (t.isBeginning && !t.params.loop) || t.animating || (t.slidePrev(), i("scroll", e.raw)), (p = new o.Date().getTime()), !1)) 2404 ) 2405 } 2406 function g(e) { 2407 let s = e, 2408 a = !0 2409 if (!t.enabled) return 2410 if (e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`)) return 2411 const r = t.params.mousewheel 2412 t.params.cssMode && s.preventDefault() 2413 let o = t.el 2414 "container" !== t.params.mousewheel.eventsTarget && (o = document.querySelector(t.params.mousewheel.eventsTarget)) 2415 const p = o && o.contains(s.target) 2416 if (!t.mouseEntered && !p && !r.releaseOnEdges) return !0 2417 s.originalEvent && (s = s.originalEvent) 2418 let m = 0 2419 const h = t.rtlTranslate ? -1 : 1, 2420 g = (function (e) { 2421 let t = 0, 2422 s = 0, 2423 a = 0, 2424 i = 0 2425 return ( 2426 "detail" in e && (s = e.detail), 2427 "wheelDelta" in e && (s = -e.wheelDelta / 120), 2428 "wheelDeltaY" in e && (s = -e.wheelDeltaY / 120), 2429 "wheelDeltaX" in e && (t = -e.wheelDeltaX / 120), 2430 "axis" in e && e.axis === e.HORIZONTAL_AXIS && ((t = s), (s = 0)), 2431 (a = 10 * t), 2432 (i = 10 * s), 2433 "deltaY" in e && (i = e.deltaY), 2434 "deltaX" in e && (a = e.deltaX), 2435 e.shiftKey && !a && ((a = i), (i = 0)), 2436 (a || i) && e.deltaMode && (1 === e.deltaMode ? ((a *= 40), (i *= 40)) : ((a *= 800), (i *= 800))), 2437 a && !t && (t = a < 1 ? -1 : 1), 2438 i && !s && (s = i < 1 ? -1 : 1), 2439 { spinX: t, spinY: s, pixelX: a, pixelY: i } 2440 ) 2441 })(s) 2442 if (r.forceToAxis) 2443 if (t.isHorizontal()) { 2444 if (!(Math.abs(g.pixelX) > Math.abs(g.pixelY))) return !0 2445 m = -g.pixelX * h 2446 } else { 2447 if (!(Math.abs(g.pixelY) > Math.abs(g.pixelX))) return !0 2448 m = -g.pixelY 2449 } 2450 else m = Math.abs(g.pixelX) > Math.abs(g.pixelY) ? -g.pixelX * h : -g.pixelY 2451 if (0 === m) return !0 2452 r.invert && (m = -m) 2453 let v = t.getTranslate() + m * r.sensitivity 2454 if ((v >= t.minTranslate() && (v = t.minTranslate()), v <= t.maxTranslate() && (v = t.maxTranslate()), (a = !!t.params.loop || !(v === t.minTranslate() || v === t.maxTranslate())), a && t.params.nested && s.stopPropagation(), t.params.freeMode && t.params.freeMode.enabled)) { 2455 const e = { time: l(), delta: Math.abs(m), direction: Math.sign(m) }, 2456 a = c && e.time < c.time + 500 && e.delta <= c.delta && e.direction === c.direction 2457 if (!a) { 2458 c = void 0 2459 let l = t.getTranslate() + m * r.sensitivity 2460 const o = t.isBeginning, 2461 p = t.isEnd 2462 if ( 2463 (l >= t.minTranslate() && (l = t.minTranslate()), 2464 l <= t.maxTranslate() && (l = t.maxTranslate()), 2465 t.setTransition(0), 2466 t.setTranslate(l), 2467 t.updateProgress(), 2468 t.updateActiveIndex(), 2469 t.updateSlidesClasses(), 2470 ((!o && t.isBeginning) || (!p && t.isEnd)) && t.updateSlidesClasses(), 2471 t.params.loop && t.loopFix({ direction: e.direction < 0 ? "next" : "prev", byMousewheel: !0 }), 2472 t.params.freeMode.sticky) 2473 ) { 2474 clearTimeout(d), (d = void 0), u.length >= 15 && u.shift() 2475 const s = u.length ? u[u.length - 1] : void 0, 2476 a = u[0] 2477 if ((u.push(e), s && (e.delta > s.delta || e.direction !== s.direction))) u.splice(0) 2478 else if (u.length >= 15 && e.time - a.time < 500 && a.delta - e.delta >= 1 && e.delta <= 6) { 2479 const s = m > 0 ? 0.8 : 0.2 2480 ;(c = e), 2481 u.splice(0), 2482 (d = n(() => { 2483 t.slideToClosest(t.params.speed, !0, void 0, s) 2484 }, 0)) 2485 } 2486 d || 2487 (d = n(() => { 2488 ;(c = e), u.splice(0), t.slideToClosest(t.params.speed, !0, void 0, 0.5) 2489 }, 500)) 2490 } 2491 if ((a || i("scroll", s), t.params.autoplay && t.params.autoplayDisableOnInteraction && t.autoplay.stop(), l === t.minTranslate() || l === t.maxTranslate())) return !0 2492 } 2493 } else { 2494 const s = { time: l(), delta: Math.abs(m), direction: Math.sign(m), raw: e } 2495 u.length >= 2 && u.shift() 2496 const a = u.length ? u[u.length - 1] : void 0 2497 if ( 2498 (u.push(s), 2499 a ? (s.direction !== a.direction || s.delta > a.delta || s.time > a.time + 150) && f(s) : f(s), 2500 (function (e) { 2501 const s = t.params.mousewheel 2502 if (e.direction < 0) { 2503 if (t.isEnd && !t.params.loop && s.releaseOnEdges) return !0 2504 } else if (t.isBeginning && !t.params.loop && s.releaseOnEdges) return !0 2505 return !1 2506 })(s)) 2507 ) 2508 return !0 2509 } 2510 return s.preventDefault ? s.preventDefault() : (s.returnValue = !1), !1 2511 } 2512 function v(e) { 2513 let s = t.el 2514 "container" !== t.params.mousewheel.eventsTarget && (s = document.querySelector(t.params.mousewheel.eventsTarget)), s[e]("mouseenter", m), s[e]("mouseleave", h), s[e]("wheel", g) 2515 } 2516 function w() { 2517 return t.params.cssMode ? (t.wrapperEl.removeEventListener("wheel", g), !0) : !t.mousewheel.enabled && (v("addEventListener"), (t.mousewheel.enabled = !0), !0) 2518 } 2519 function b() { 2520 return t.params.cssMode ? (t.wrapperEl.addEventListener(event, g), !0) : !!t.mousewheel.enabled && (v("removeEventListener"), (t.mousewheel.enabled = !1), !0) 2521 } 2522 a("init", () => { 2523 !t.params.mousewheel.enabled && t.params.cssMode && b(), t.params.mousewheel.enabled && w() 2524 }), 2525 a("destroy", () => { 2526 t.params.cssMode && w(), t.mousewheel.enabled && b() 2527 }), 2528 Object.assign(t.mousewheel, { enable: w, disable: b }) 2529 }, 2530 function (e) { 2531 let { swiper: t, extendParams: s, on: a, emit: i } = e 2532 s({ navigation: { nextEl: null, prevEl: null, hideOnClick: !1, disabledClass: "swiper-button-disabled", hiddenClass: "swiper-button-hidden", lockClass: "swiper-button-lock", navigationDisabledClass: "swiper-navigation-disabled" } }), (t.navigation = { nextEl: null, prevEl: null }) 2533 const r = (e) => (Array.isArray(e) || (e = [e].filter((e) => !!e)), e) 2534 function n(e) { 2535 let s 2536 return e && "string" == typeof e && t.isElement && ((s = t.el.shadowRoot.querySelector(e)), s) 2537 ? s 2538 : (e && ("string" == typeof e && (s = [...document.querySelectorAll(e)]), t.params.uniqueNavElements && "string" == typeof e && s.length > 1 && 1 === t.el.querySelectorAll(e).length && (s = t.el.querySelector(e))), e && !s ? e : s) 2539 } 2540 function l(e, s) { 2541 const a = t.params.navigation 2542 ;
2542(e = r(e)).forEach((e) => { 2543 e && (e.classList[s ? "add" : "remove"](...a.disabledClass.split(" ")), "BUTTON" === e.tagName && (e.disabled = s), t.params.watchOverflow && t.enabled && e.classList[t.isLocked ? "add" : "remove"](a.lockClass)) 2544 }) 2545 } 2546 function o() { 2547 const { nextEl: e, prevEl: s } = t.navigation 2548 if (t.params.loop) return l(s, !1), void l(e, !1) 2549 l(s, t.isBeginning && !t.params.rewind), l(e, t.isEnd && !t.params.rewind) 2550 } 2551 function d(e) { 2552 e.preventDefault(), (!t.isBeginning || t.params.loop || t.params.rewind) && (t.slidePrev(), i("navigationPrev")) 2553 } 2554 function c(e) { 2555 e.preventDefault(), (!t.isEnd || t.params.loop || t.params.rewind) && (t.slideNext(), i("navigationNext")) 2556 } 2557 function p() { 2558 const e = t.params.navigation 2559 if (((t.params.navigation = ee(t, t.originalParams.navigation, t.params.navigation, { nextEl: "swiper-button-next", prevEl: "swiper-button-prev" })), !e.nextEl && !e.prevEl)) return 2560 let s = n(e.nextEl), 2561 a = n(e.prevEl) 2562 Object.assign(t.navigation, { nextEl: s, prevEl: a }), (s = r(s)), (a = r(a)) 2563 const i = (s, a) => { 2564 s && s.addEventListener("click", "next" === a ? c : d), !t.enabled && s && s.classList.add(...e.lockClass.split(" ")) 2565 } 2566 s.forEach((e) => i(e, "next")), a.forEach((e) => i(e, "prev")) 2567 } 2568 function u() { 2569 let { nextEl: e, prevEl: s } = t.navigation 2570 ;(e = r(e)), (s = r(s)) 2571 const a = (e, s) => { 2572 e.removeEventListener("click", "next" === s ? c : d), e.classList.remove(...t.params.navigation.disabledClass.split(" ")) 2573 } 2574 e.forEach((e) => a(e, "next")), s.forEach((e) => a(e, "prev")) 2575 } 2576 a("init", () => { 2577 !1 === t.params.navigation.enabled ? m() : (p(), o()) 2578 }), 2579 a("toEdge fromEdge lock unlock", () => { 2580 o() 2581 }), 2582 a("destroy", () => { 2583 u() 2584 }), 2585 a("enable disable", () => { 2586 let { nextEl: e, prevEl: s } = t.navigation 2587 ;(e = r(e)), (s = r(s)), [...e, ...s].filter((e) => !!e).forEach((e) => e.classList[t.enabled ? "remove" : "add"](t.params.navigation.lockClass)) 2588 }), 2589 a("click", (e, s) => { 2590 let { nextEl: a, prevEl: n } = t.navigation 2591 ;(a = r(a)), (n = r(n)) 2592 const l = s.target 2593 if (t.params.navigation.hideOnClick && !n.includes(l) && !a.includes(l)) { 2594 if (t.pagination && t.params.pagination && t.params.pagination.clickable && (t.pagination.el === l || t.pagination.el.contains(l))) return 2595 let e 2596 a.length ? (e = a[0].classList.contains(t.params.navigation.hiddenClass)) : n.length && (e = n[0].classList.contains(t.params.navigation.hiddenClass)), 2597 i(!0 === e ? "navigationShow" : "navigationHide"), 2598 [...a, ...n].filter((e) => !!e).forEach((e) => e.classList.toggle(t.params.navigation.hiddenClass)) 2599 } 2600 }) 2601 const m = () => { 2602 t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")), u() 2603 } 2604 Object.assign(t.navigation, { 2605 enable: () => { 2606 t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")), p(), o() 2607 }, 2608 disable: m, 2609 update: o, 2610 init: p, 2611 destroy: u, 2612 }) 2613 }, 2614 function (e) { 2615 let { swiper: t, extendParams: s, on: a, emit: i } = e 2616 const r = "swiper-pagination" 2617 let n 2618 s({ 2619 pagination: { 2620 el: null, 2621 bulletElement: "span", 2622 clickable: !1, 2623 hideOnClick: !1, 2624 renderBullet: null, 2625 renderProgressbar: null, 2626 renderFraction: null, 2627 renderCustom: null, 2628 progressbarOpposite: !1, 2629 type: "bullets", 2630 dynamicBullets: !1, 2631 dynamicMainBullets: 1, 2632 formatFractionCurrent: (e) => e, 2633 formatFractionTotal: (e) => e, 2634 bulletClass: `${r}-bullet`, 2635 bulletActiveClass: `${r}-bullet-active`, 2636 modifierClass: `${r}-`, 2637 currentClass: `${r}-current`, 2638 totalClass: `${r}-total`, 2639 hiddenClass: `${r}-hidden`, 2640 progressbarFillClass: `${r}-progressbar-fill`, 2641 progressbarOppositeClass: `${r}-progressbar-opposite`, 2642 clickableClass: `${r}-clickable`, 2643 lockClass: `${r}-lock`, 2644 horizontalClass: `${r}-horizontal`, 2645 verticalClass: `${r}-vertical`, 2646 paginationDisabledClass: `${r}-disabled`, 2647 }, 2648 }), 2649 (t.pagination = { el: null, bullets: [] }) 2650 let l = 0 2651 const o = (e) => (Array.isArray(e) || (e = [e].filter((e) => !!e)), e) 2652 function d() { 2653 return !t.params.pagination.el || !t.pagination.el || (Array.isArray(t.pagination.el) && 0 === t.pagination.el.length) 2654 } 2655 function c(e, s) { 2656 const { bulletActiveClass: a } = t.params.pagination 2657 e && (e = e[("prev" === s ? "previous" : "next") + "ElementSibling"]) && (e.classList.add(`${a}-${s}`), (e = e[("prev" === s ? "previous" : "next") + "ElementSibling"]) && e.classList.add(`${a}-${s}-${s}`)) 2658 } 2659 function p(e) { 2660 const s = e.target.closest(te(t.params.pagination.bulletClass)) 2661 if (!s) return 2662 e.preventDefault() 2663 const a = b(s) * t.params.slidesPerGroup 2664 if (t.params.loop) { 2665 if (t.realIndex === a) return 2666 const e = t.getSlideIndexByData(a), 2667 s = t.getSlideIndexByData(t.realIndex) 2668 e > t.slides.length - t.loopedSlides && t.loopFix({ direction: e > s ? "next" : "prev", activeSlideIndex: e, slideTo: !1 }), t.slideToLoop(a) 2669 } else t.slideTo(a) 2670 } 2671 function u() { 2672 const e = t.rtl, 2673 s = t.params.pagination 2674 if (d()) return 2675 let a, 2676 r, 2677 p = t.pagination.el 2678 p = o(p) 2679 const u = t.virtual && t.params.virtual.enabled ? t.virtual.slides.length : t.slides.length, 2680 m = t.params.loop ? Math.ceil(u / t.params.slidesPerGroup) : t.snapGrid.length 2681 if ( 2682 (t.params.loop ? ((r = t.previousRealIndex || 0), (a = t.params.slidesPerGroup > 1 ? Math.floor(t.realIndex / t.params.slidesPerGroup) : t.realIndex)) : void 0 !== t.snapIndex ? ((a = t.snapIndex), (r = t.previousSnapIndex)) : ((r = t.previousIndex || 0), (a = t.activeIndex || 0)), 2683 "bullets" === s.type && t.pagination.bullets && t.pagination.bullets.length > 0) 2684 ) { 2685 const i = t.pagination.bullets 2686 let o, d, u 2687 if ( 2688 (s.dynamicBullets && 2689 ((n = x(i[0], t.isHorizontal() ? "width" : "height", !0)), 2690 p.forEach((e) => { 2691 e.style[t.isHorizontal() ? "width" : "height"] = n * (s.dynamicMainBullets + 4) + "px" 2692 }), 2693 s.dynamicMainBullets > 1 && void 0 !== r && ((l += a - (r || 0)), l > s.dynamicMainBullets - 1 ? (l = s.dynamicMainBullets - 1) : l < 0 && (l = 0)), 2694 (o = Math.max(a - l, 0)), 2695 (d = o + (Math.min(i.length, s.dynamicMainBullets) - 1)), 2696 (u = (d + o) / 2)),
2697 i.forEach((e) => { 2698 const t = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((e) => `${s.bulletActiveClass}${e}`)].map((e) => ("string" == typeof e && e.includes(" ") ? e.split(" ") : e)).flat() 2699 e.classList.remove(...t) 2700 }), 2701 p.length > 1) 2702 ) 2703 i.forEach((e) => { 2704 const i = b(e) 2705 i === a ? e.classList.add(...s.bulletActiveClass.split(" ")) : t.isElement && e.setAttribute("part", "bullet"), s.dynamicBullets && (i >= o && i <= d && e.classList.add(...`${s.bulletActiveClass}-main`.split(" ")), i === o && c(e, "prev"), i === d && c(e, "next")) 2706 }) 2707 else { 2708 const e = i[a] 2709 if ( 2710 (e && e.classList.add(...s.bulletActiveClass.split(" ")), 2711 t.isElement && 2712 i.forEach((e, t) => { 2713 e.setAttribute("part", t === a ? "bullet-active" : "bullet") 2714 }), 2715 s.dynamicBullets) 2716 ) { 2717 const e = i[o], 2718 t = i[d] 2719 for (let e = o; e <= d; e += 1) i[e] && i[e].classList.add(...`${s.bulletActiveClass}-main`.split(" ")) 2720 c(e, "prev"), c(t, "next") 2721 } 2722 } 2723 if (s.dynamicBullets) { 2724 const a = Math.min(i.length, s.dynamicMainBullets + 4), 2725 r = (n * a - n) / 2 - u * n, 2726 l = e ? "right" : "left" 2727 i.forEach((e) => { 2728 e.style[t.isHorizontal() ? l : "top"] = `${r}px` 2729 }) 2730 } 2731 } 2732 p.forEach((e, r) => { 2733 if ( 2734 ("fraction" === s.type && 2735 (e.querySelectorAll(te(s.currentClass)).forEach((e) => { 2736 e.textContent = s.formatFractionCurrent(a + 1) 2737 }), 2738 e.querySelectorAll(te(s.totalClass)).forEach((e) => { 2739 e.textContent = s.formatFractionTotal(m) 2740 })), 2741 "progressbar" === s.type) 2742 ) { 2743 let i 2744 i = s.progressbarOpposite ? (t.isHorizontal() ? "vertical" : "horizontal") : t.isHorizontal() ? "horizontal" : "vertical" 2745 const r = (a + 1) / m 2746 let n = 1, 2747 l = 1 2748 "horizontal" === i ? (n = r) : (l = r), 2749 e.querySelectorAll(te(s.progressbarFillClass)).forEach((e) => { 2750 ;(e.style.transform = `translate3d(0,0,0) scaleX(${n}) scaleY(${l})`), (e.style.transitionDuration = `${t.params.speed}ms`) 2751 }) 2752 } 2753 "custom" === s.type && s.renderCustom ? ((e.innerHTML = s.renderCustom(t, a + 1, m)), 0 === r && i("paginationRender", e)) : (0 === r && i("paginationRender", e), i("paginationUpdate", e)), t.params.watchOverflow && t.enabled && e.classList[t.isLocked ? "add" : "remove"](s.lockClass) 2754 }) 2755 } 2756 function m() { 2757 const e = t.params.pagination 2758 if (d()) return 2759 const s = t.virtual && t.params.virtual.enabled ? t.virtual.slides.length : t.slides.length 2760 let a = t.pagination.el 2761 a = o(a) 2762 let r = "" 2763 if ("bullets" === e.type) { 2764 let a = t.params.loop ? Math.ceil(s / t.params.slidesPerGroup) : t.snapGrid.length 2765 t.params.freeMode && t.params.freeMode.enabled && a > s && (a = s) 2766 for (let s = 0; s < a; s += 1) e.renderBullet ? (r += e.renderBullet.call(t, s, e.bulletClass)) : (r += `<${e.bulletElement} ${t.isElement ? 'part="bullet"' : ""} class="${e.bulletClass}"></${e.bulletElement}>`) 2767 } 2768 "fraction" === e.type && (r = e.renderFraction ? e.renderFraction.call(t, e.currentClass, e.totalClass) : `<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`), 2769 "progressbar" === e.type && (r = e.renderProgressbar ? e.renderProgressbar.call(t, e.progressbarFillClass) : `<span class="${e.progressbarFillClass}"></span>`), 2770 (t.pagination.bullets = []), 2771 a.forEach((s) => { 2772 "custom" !== e.type && (s.innerHTML = r || ""), "bullets" === e.type && t.pagination.bullets.push(...s.querySelectorAll(te(e.bulletClass))) 2773 }), 2774 "custom" !== e.type && i("paginationRender", a[0]) 2775 } 2776 function h() { 2777 t.params.pagination = ee(t, t.originalParams.pagination, t.params.pagination, { el: "swiper-pagination" }) 2778 const e = t.params.pagination 2779 if (!e.el) return 2780 let s 2781 "string" == typeof e.el && t.isElement && (s = t.el.shadowRoot.querySelector(e.el)), 2782 s || "string" != typeof e.el || (s = [...document.querySelectorAll(e.el)]), 2783 s || (s = e.el), 2784 s && 2785 0 !== s.length && 2786 (t.params.uniqueNavElements && "string" == typeof e.el && Array.isArray(s) && s.length > 1 && ((s = [...t.el.querySelectorAll(e.el)]), s.length > 1 && (s = s.filter((e) => y(e, ".swiper")[0] === t.el)[0])), 2787 Array.isArray(s) && 1 === s.length && (s = s[0]), 2788 Object.assign(t.pagination, { el: s }), 2789 (s = o(s)),
2790 s.forEach((s) => { 2791 "bullets" === e.type && e.clickable && s.classList.add(e.clickableClass), 2792 s.classList.add(e.modifierClass + e.type), 2793 s.classList.add(t.isHorizontal() ? e.horizontalClass : e.verticalClass), 2794 "bullets" === e.type && e.dynamicBullets && (s.classList.add(`${e.modifierClass}${e.type}-dynamic`), (l = 0), e.dynamicMainBullets < 1 && (e.dynamicMainBullets = 1)), 2795 "progressbar" === e.type && e.progressbarOpposite && s.classList.add(e.progressbarOppositeClass), 2796 e.clickable && s.addEventListener("click", p), 2797 t.enabled || s.classList.add(e.lockClass) 2798 })) 2799 } 2800 function f() { 2801 const e = t.params.pagination 2802 if (d()) return 2803 let s = t.pagination.el 2804 s && 2805 ((s = o(s)), 2806 s.forEach((s) => { 2807 s.classList.remove(e.hiddenClass), s.classList.remove(e.modifierClass + e.type), s.classList.remove(t.isHorizontal() ? e.horizontalClass : e.verticalClass), e.clickable && s.removeEventListener("click", p) 2808 })), 2809 t.pagination.bullets && t.pagination.bullets.forEach((t) => t.classList.remove(...e.bulletActiveClass.split(" "))) 2810 } 2811 a("changeDirection", () => { 2812 if (!t.pagination || !t.pagination.el) return 2813 const e = t.params.pagination 2814 let { el: s } = t.pagination 2815 ;(s = o(s)), 2816 s.forEach((s) => { 2817 s.classList.remove(e.horizontalClass, e.verticalClass), s.classList.add(t.isHorizontal() ? e.horizontalClass : e.verticalClass) 2818 }) 2819 }), 2820 a("init", () => { 2821 !1 === t.params.pagination.enabled ? g() : (h(), m(), u()) 2822 }), 2823 a("activeIndexChange", () => { 2824 void 0 === t.snapIndex && u() 2825 }), 2826 a("snapIndexChange", () => { 2827 u() 2828 }), 2829 a("snapGridLengthChange", () => { 2830 m(), u() 2831 }), 2832 a("destroy", () => { 2833 f() 2834 }), 2835 a("enable disable", () => { 2836 let { el: e } = t.pagination 2837 e && ((e = o(e)), e.forEach((e) => e.classList[t.enabled ? "remove" : "add"](t.params.pagination.lockClass))) 2838 }), 2839 a("lock unlock", () => { 2840 u() 2841 }), 2842 a("click", (e, s) => { 2843 const a = s.target 2844 let { el: r } = t.pagination 2845 if ((Array.isArray(r) || (r = [r].filter((e) => !!e)), t.params.pagination.el && t.params.pagination.hideOnClick && r && r.length > 0 && !a.classList.contains(t.params.pagination.bulletClass))) { 2846 if (t.navigation && ((t.navigation.nextEl && a === t.navigation.nextEl) || (t.navigation.prevEl && a === t.navigation.prevEl))) return 2847 const e = r[0].classList.contains(t.params.pagination.hiddenClass) 2848 i(!0 === e ? "paginationShow" : "paginationHide"), r.forEach((e) => e.classList.toggle(t.params.pagination.hiddenClass)) 2849 } 2850 }) 2851 const g = () => { 2852 t.el.classList.add(t.params.pagination.paginationDisabledClass) 2853 let { el: e } = t.pagination 2854 e && ((e = o(e)), e.forEach((e) => e.classList.add(t.params.pagination.paginationDisabledClass))), f() 2855 } 2856 Object.assign(t.pagination, { 2857 enable: () => { 2858 t.el.classList.remove(t.params.pagination.paginationDisabledClass) 2859 let { el: e } = t.pagination 2860 e && ((e = o(e)), e.forEach((e) => e.classList.remove(t.params.pagination.paginationDisabledClass))), h(), m(), u() 2861 }, 2862 disable: g, 2863 render: m, 2864 update: u, 2865 init: h, 2866 destroy: f, 2867 }) 2868 }, 2869 function (e) { 2870 let { swiper: t, extendParams: s, on: i, emit: r } = e 2871 const l = a() 2872 let o, 2873 d, 2874 c, 2875 p, 2876 u = !1, 2877 m = null, 2878 h = null 2879 function f() { 2880 if (!t.params.scrollbar.el || !t.scrollbar.el) return 2881 const { scrollbar: e, rtlTranslate: s } = t, 2882 { dragEl: a, el: i } = e, 2883 r = t.params.scrollbar, 2884 n = t.params.loop ? t.progressLoop : t.progress 2885 let l = d, 2886 o = (c - d) * n 2887 s ? ((o = -o), o > 0 ? ((l = d - o), (o = 0)) : -o + d > c && (l = c + o)) : o < 0 ? ((l = d + o), (o = 0)) : o + d > c && (l = c - o), 2888 t.isHorizontal() ? ((a.style.transform = `translate3d(${o}px, 0, 0)`), (a.style.width = `${l}px`)) : ((a.style.transform = `translate3d(0px, ${o}
2888px, 0)`), (a.style.height = `${l}px`)), 2889 r.hide && 2890 (clearTimeout(m), 2891 (i.style.opacity = 1), 2892 (m = setTimeout(() => { 2893 ;(i.style.opacity = 0), (i.style.transitionDuration = "400ms") 2894 }, 1e3))) 2895 } 2896 function w() { 2897 if (!t.params.scrollbar.el || !t.scrollbar.el) return 2898 const { scrollbar: e } = t, 2899 { dragEl: s, el: a } = e 2900 ;(s.style.width = ""), 2901 (s.style.height = ""), 2902 (c = t.isHorizontal() ? a.offsetWidth : a.offsetHeight), 2903 (p = t.size / (t.virtualSize + t.params.slidesOffsetBefore - (t.params.centeredSlides ? t.snapGrid[0] : 0))), 2904 (d = "auto" === t.params.scrollbar.dragSize ? c * p : parseInt(t.params.scrollbar.dragSize, 10)), 2905 t.isHorizontal() ? (s.style.width = `${d}px`) : (s.style.height = `${d}px`), 2906 (a.style.display = p >= 1 ? "none" : ""), 2907 t.params.scrollbar.hide && (a.style.opacity = 0), 2908 t.params.watchOverflow && t.enabled && e.el.classList[t.isLocked ? "add" : "remove"](t.params.scrollbar.lockClass) 2909 } 2910 function b(e) { 2911 return t.isHorizontal() ? e.clientX : e.clientY 2912 } 2913 function y(e) { 2914 const { scrollbar: s, rtlTranslate: a } = t, 2915 { el: i } = s 2916 let r 2917 ;(r = (b(e) - v(i)[t.isHorizontal() ? "left" : "top"] - (null !== o ? o : d / 2)) / (c - d)), (r = Math.max(Math.min(r, 1), 0)), a && (r = 1 - r) 2918 const n = t.minTranslate() + (t.maxTranslate() - t.minTranslate()) * r 2919 t.updateProgress(n), t.setTranslate(n), t.updateActiveIndex(), t.updateSlidesClasses() 2920 } 2921 function E(e) { 2922 const s = t.params.scrollbar, 2923 { scrollbar: a, wrapperEl: i } = t, 2924 { el: n, dragEl: l } = a 2925 ;(u = !0), 2926 (o = e.target === l ? b(e) - e.target.getBoundingClientRect()[t.isHorizontal() ? "left" : "top"] : null),
2927 e.preventDefault(), 2928 e.stopPropagation(), 2929 (i.style.transitionDuration = "100ms"), 2930 (l.style.transitionDuration = "100ms"), 2931 y(e), 2932 clearTimeout(h), 2933 (n.style.transitionDuration = "0ms"), 2934 s.hide && (n.style.opacity = 1), 2935 t.params.cssMode && (t.wrapperEl.style["scroll-snap-type"] = "none"), 2936 r("scrollbarDragStart", e) 2937 } 2938 function x(e) { 2939 const { scrollbar: s, wrapperEl: a } = t, 2940 { el: i, dragEl: n } = s 2941 u && (e.preventDefault ? e.preventDefault() : (e.returnValue = !1), y(e), (a.style.transitionDuration = "0ms"), (i.style.transitionDuration = "0ms"), (n.style.transitionDuration = "0ms"), r("scrollbarDragMove", e)) 2942 } 2943 function S(e) { 2944 const s = t.params.scrollbar, 2945 { scrollbar: a, wrapperEl: i } = t, 2946 { el: l } = a 2947 u && 2948 ((u = !1), 2949 t.params.cssMode && ((t.wrapperEl.style["scroll-snap-type"] = ""), (i.style.transitionDuration = "")), 2950 s.hide && 2951 (clearTimeout(h), 2952 (h = n(() => { 2953 ;(l.style.opacity = 0), (l.style.transitionDuration = "400ms") 2954 }, 1e3))), 2955 r("scrollbarDragEnd", e), 2956 s.snapOnRelease && t.slideToClosest()) 2957 } 2958 function T(e) { 2959 const { scrollbar: s, params: a } = t, 2960 i = s.el 2961 if (!i) return 2962 const r = i, 2963 n = !!a.passiveListeners && { passive: !1, capture: !1 }, 2964 o = !!a.passiveListeners && { passive: !0, capture: !1 } 2965 if (!r) return 2966 const d = "on" === e ? "addEventListener" : "removeEventListener" 2967 r[d]("pointerdown", E, n), l[d]("pointermove", x, n), l[d]("pointerup", S, o) 2968 } 2969 function M() { 2970 const { scrollbar: e, el: s } = t 2971 t.params.scrollbar = ee(t, t.originalParams.scrollbar, t.params.scrollbar, { el: "swiper-scrollbar" }) 2972 const a = t.params.scrollbar 2973 if (!a.el) return 2974 let i, r 2975 "string" == typeof a.el && t.isElement && (i = t.el.shadowRoot.querySelector(a.el)), 2976 i || "string" != typeof a.el ? i || (i = a.el) : (i = l.querySelectorAll(a.el)), 2977 t.params.uniqueNavElements && "string" == typeof a.el && i.length > 1 && 1 === s.querySelectorAll(a.el).length && (i = s.querySelector(a.el)), 2978 i.length > 0 && (i = i[0]), 2979 i.classList.add(t.isHorizontal() ? a.horizontalClass : a.verticalClass), 2980 i && ((r = i.querySelector(`.${t.params.scrollbar.dragClass}`)), r || ((r = g("div", t.params.scrollbar.dragClass)), i.append(r))), 2981 Object.assign(e, { el: i, dragEl: r }), 2982 a.draggable && t.params.scrollbar.el && t.scrollbar.el && T("on"), 2983 i && i.classList[t.enabled ? "remove" : "add"](t.params.scrollbar.lockClass) 2984 } 2985 function C() { 2986 const e = t.params.scrollbar, 2987 s = t.scrollbar.el 2988 s && s.classList.remove(t.isHorizontal() ? e.horizontalClass : e.verticalClass), t.params.scrollbar.el && t.scrollbar.el && T("off") 2989 } 2990 s({ 2991 scrollbar: { 2992 el: null, 2993 dragSize: "auto", 2994 hide: !1, 2995 draggable: !1, 2996 snapOnRelease: !0, 2997 lockClass: "swiper-scrollbar-lock", 2998 dragClass: "swiper-scrollbar-drag", 2999 scrollbarDisabledClass: "swiper-scrollbar-disabled", 3000 horizontalClass: "swiper-scrollbar-horizontal", 3001 verticalClass: "swiper-scrollbar-vertical", 3002 }, 3003 }), 3004 (t.scrollbar = { el: null, dragEl: null }), 3005 i("init", () => { 3006 !1 === t.params.scrollbar.enabled ? P() : (M(), w(), f()) 3007 }), 3008 i("update resize observerUpdate lock unlock", () => { 3009 w() 3010 }), 3011 i("setTranslate", () => { 3012 f() 3013 }), 3014 i("setTransition", (e, s) => { 3015 !(function (e) { 3016 t.params.scrollbar.el && t.scrollbar.el && (t.scrollbar.dragEl.style.transitionDuration = `${e}ms`) 3017 })(s) 3018 }), 3019 i("enable disable", () => { 3020 const { el: e } = t.scrollbar 3021 e && e.classList[t.enabled ? "remove" : "add"](t.params.scrollbar.lockClass) 3022 }), 3023 i("destroy", () => { 3024 C() 3025 }) 3026 const P = () => { 3027 t.el.classList.add(t.params.scrollbar.scrollbarDisabledClass), t.scrollbar.el && t.scrollbar.el.classList.add(t.params.scrollbar.scrollbarDisabledClass), C() 3028 } 3029 Object.assign(t.scrollbar, { 3030 enable: () => { 3031 t.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass), t.scrollbar.el && t.scrollbar.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass), M(), w(), f() 3032 }, 3033 disable: P, 3034 updateSize: w, 3035 setTranslate: f, 3036 init: M, 3037 destroy: C, 3038 }) 3039 }, 3040 function (e) { 3041 let { swiper: t, extendParams: s, on: a } = e 3042 s({ parallax: { enabled: !1 } }) 3043 const i = (e, s) => { 3044 const { rtl: a } = t, 3045 i = a ? -1 : 1, 3046 r = e.getAttribute("data-swiper-parallax") || "0" 3047 let n = e.getAttribute("data-swiper-parallax-x"), 3048 l = e.getAttribute("data-swiper-parallax-y") 3049 const o = e.getAttribute("data-swiper-parallax-scale"), 3050 d = e.getAttribute("data-swiper-parallax-opacity"), 3051 c = e.getAttribute("data-swiper-parallax-rotate") 3052 if ((n || l ? ((n = n || "0"), (l = l || "0")) : t.isHorizontal() ? ((n = r), (l = "0")) : ((l = r), (n = "0")), (n = n.indexOf("%") >= 0 ? parseInt(n, 10) * s * i + "%" : n * s * i + "px"), (l = l.indexOf("%") >= 0 ? parseInt(l, 10) * s + "%" : l * s + "px"), null != d)) { 3053 const t = d - (d - 1) * (1 - Math.abs(s)) 3054 e.style.opacity = t 3055 } 3056 let p = `translate3d(${n}, ${l}, 0px)` 3057 if (null != o) { 3058 p += ` scale(${o - (o - 1) * (1 - Math.abs(s))})` 3059 } 3060 if (c && null != c) { 3061 p += ` rotate(${c * s * -1}deg)` 3062 } 3063 e.style.transform = p 3064 }, 3065 r = () => { 3066 const { el: e, slides: s, progress: a, snapGrid: r } = t 3067 f(e, "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").forEach((e) => { 3068 i(e, a) 3069 }),
3070 s.forEach((e, s) => { 3071 let n = e.progress 3072 t.params.slidesPerGroup > 1 && "auto" !== t.params.slidesPerView && (n += Math.ceil(s / 2) - a * (r.length - 1)), 3073 (n = Math.min(Math.max(n, -1), 1)), 3074 e.querySelectorAll("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale], [data-swiper-parallax-rotate]").forEach((e) => { 3075 i(e, n) 3076 }) 3077 }) 3078 } 3079 a("beforeInit", () => { 3080 t.params.parallax.enabled && ((t.params.watchSlidesProgress = !0), (t.originalParams.watchSlidesProgress = !0)) 3081 }), 3082 a("init", () => { 3083 t.params.parallax.enabled && r() 3084 }), 3085 a("setTranslate", () => { 3086 t.params.parallax.enabled && r() 3087 }), 3088 a("setTransition", (e, s) => { 3089 t.params.parallax.enabled && 3090 (function (e) { 3091 void 0 === e && (e = t.params.speed) 3092 const { el: s } = t 3093 s.querySelectorAll("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").forEach((t) => { 3094 let s = parseInt(t.getAttribute("data-swiper-parallax-duration"), 10) || e 3095 0 === e && (s = 0), (t.style.transitionDuration = `${s}ms`) 3096 }) 3097 })(s) 3098 }) 3099 }, 3100 function (e) { 3101 let { swiper: t, extendParams: s, on: a, emit: i } = e 3102 const n = r() 3103 s({ zoom: { enabled: !1, maxRatio: 3, minRatio: 1, toggle: !0, containerClass: "swiper-zoom-container", zoomedSlideClass: "swiper-slide-zoomed" } }), (t.zoom = { enabled: !1 }) 3104 let l, 3105 d, 3106 c = 1, 3107 p = !1 3108 const u = [], 3109 m = { originX: 0, originY: 0, slideEl: void 0, slideWidth: void 0, slideHeight: void 0, imageEl: void 0, imageWrapEl: void 0, maxRatio: 3 }, 3110 h = { isTouched: void 0, isMoved: void 0, currentX: void 0, currentY: void 0, minX: void 0, minY: void 0, maxX: void 0, maxY: void 0, width: void 0, height: void 0, startX: void 0, startY: void 0, touchesStart: {}, touchesCurrent: {} }, 3111 g = { x: void 0, y: void 0, prevPositionX: void 0, prevPositionY: void 0, prevTime: void 0 } 3112 let w = 1 3113 function b() { 3114 if (u.length < 2) return 1 3115 const e = u[0].pageX, 3116 t = u[0].pageY, 3117 s = u[1].pageX, 3118 a = u[1].pageY 3119 return Math.sqrt((s - e) ** 2 + (a - t) ** 2) 3120 } 3121 function E(e) { 3122 const s = t.isElement ? "swiper-slide" : `.${t.params.slideClass}` 3123 return !!e.target.matches(s) || t.slides.filter((t) => t.contains(e.target)).length > 0 3124 } 3125 function x(e) { 3126 if (("mouse" === e.pointerType && u.splice(0, u.length), !E(e))) return 3127 const s = t.params.zoom 3128 if (((l = !1), (d = !1), u.push(e), !(u.length < 2))) { 3129 if (((l = !0), (m.scaleStart = b()), !m.slideEl)) { 3130 ;(m.slideEl = e.target.closest(`.${t.params.slideClass}, swiper-slide`)), m.slideEl || (m.slideEl = t.slides[t.activeIndex]) 3131 let a = m.slideEl.querySelector(`.${s.containerClass}`) 3132 if ((a && (a = a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), (m.imageEl = a), (m.imageWrapEl = a ? y(m.imageEl, `.${s.containerClass}`)[0] : void 0), !m.imageWrapEl)) return void (m.imageEl = void 0) 3133 m.maxRatio = m.imageWrapEl.getAttribute("data-swiper-zoom") || s.maxRatio 3134 } 3135 if (m.imageEl) { 3136 const [e, t] = (function () { 3137 if (u.length < 2) return { x: null, y: null } 3138 const e = m.imageEl.getBoundingClientRect() 3139 return [(u[0].pageX + (u[1].pageX - u[0].pageX) / 2 - e.x) / c, (u[0].pageY + (u[1].pageY - u[0].pageY) / 2 - e.y) / c] 3140 })() 3141 ;(m.originX = e), (m.originY = t), (m.imageEl.style.transitionDuration = "0ms") 3142 } 3143 p = !0 3144 } 3145 } 3146 function S(e) { 3147 if (!E(e)) return 3148 const s = t.params.zoom, 3149 a = t.zoom, 3150 i = u.findIndex((t) => t.pointerId === e.pointerId) 3151 i >= 0 && (u[i] = e), 3152 u.length < 2 || 3153 ((d = !0), 3154 (m.scaleMove = b()), 3155 m.imageEl && 3156 ((a.scale = (m.scaleMove / m.scaleStart) * c), 3157 a.scale > m.maxRatio && (a.scale = m.maxRatio - 1 + (a.scale - m.maxRatio + 1) ** 0.5), 3158 a.scale < s.minRatio && (a.scale = s.minRatio + 1 - (s.minRatio - a.scale + 1) ** 0.5),
3159 (m.imageEl.style.transform = `translate3d(0,0,0) scale(${a.scale})`))) 3160 } 3161 function T(e) { 3162 if (!E(e)) return 3163 if ("mouse" === e.pointerType && "pointerout" === e.type) return 3164 const s = t.params.zoom, 3165 a = t.zoom, 3166 i = u.findIndex((t) => t.pointerId === e.pointerId) 3167 i >= 0 && u.splice(i, 1), 3168 l && 3169 d && 3170 ((l = !1), 3171 (d = !1), 3172 m.imageEl && 3173 ((a.scale = Math.max(Math.min(a.scale, m.maxRatio), s.minRatio)), 3174 (m.imageEl.style.transitionDuration = `${t.params.speed}ms`), 3175 (m.imageEl.style.transform = `translate3d(0,0,0) scale(${a.scale})`), 3176 (c = a.scale), 3177 (p = !1), 3178 a.scale > 1 && m.slideEl ? m.slideEl.classList.add(`${s.zoomedSlideClass}`) : a.scale <= 1 && m.slideEl && m.slideEl.classList.remove(`${s.zoomedSlideClass}`), 3179 1 === a.scale && ((m.originX = 0), (m.originY = 0), (m.slideEl = void 0)))) 3180 } 3181 function M(e) { 3182 if ( 3183 !E(e) || 3184 !(function (e) { 3185 const s = `.${t.params.zoom.containerClass}` 3186 return !!e.target.matches(s) || [...t.el.querySelectorAll(s)].filter((t) => t.contains(e.target)).length > 0 3187 })(e) 3188 ) 3189 return 3190 const s = t.zoom 3191 if (!m.imageEl) return 3192 if (!h.isTouched || !m.slideEl) return 3193 h.isMoved || 3194 ((h.width = m.imageEl.offsetWidth), (h.height = m.imageEl.offsetHeight), (h.startX = o(m.imageWrapEl, "x") || 0), (h.startY = o(m.imageWrapEl, "y") || 0), (m.slideWidth = m.slideEl.offsetWidth), (m.slideHeight = m.slideEl.offsetHeight), (m.imageWrapEl.style.transitionDuration = "0ms")) 3195 const a = h.width * s.scale, 3196 i = h.height * s.scale 3197 if (a < m.slideWidth && i < m.slideHeight) return 3198 ;(h.minX = Math.min(m.slideWidth / 2 - a / 2, 0)), (h.maxX = -h.minX), (h.minY = Math.min(m.slideHeight / 2 - i / 2, 0)), (h.maxY = -h.minY), (h.touchesCurrent.x = u.length > 0 ? u[0].pageX : e.pageX), (h.touchesCurrent.y = u.length > 0 ? u[0].pageY : e.pageY) 3199 if ((Math.max(Math.abs(h.touchesCurrent.x - h.touchesStart.x), Math.abs(h.touchesCurrent.y - h.touchesStart.y)) > 5 && (t.allowClick = !1), !h.isMoved && !p)) { 3200 if (t.isHorizontal() && ((Math.floor(h.minX) === Math.floor(h.startX) && h.touchesCurrent.x < h.touchesStart.x) || (Math.floor(h.maxX) === Math.floor(h.startX) && h.touchesCurrent.x > h.touchesStart.x))) return void (h.isTouched = !1) 3201 if (!t.isHorizontal() && ((Math.floor(h.minY) === Math.floor(h.startY) && h.touchesCurrent.y < h.touchesStart.y) || (Math.floor(h.maxY) === Math.floor(h.startY) && h.touchesCurrent.y > h.touchesStart.y))) return void (h.isTouched = !1) 3202 } 3203 e.cancelable && e.preventDefault(), e.stopPropagation(), (h.isMoved = !0) 3204 const r = (s.scale - c) / (m.maxRatio - t.params.zoom.minRatio), 3205 { originX: n, originY: l } = m 3206 ;(h.currentX = h.touchesCurrent.x - h.touchesStart.x + h.startX + r * (h.width - 2 * n)), 3207 (h.currentY = h.touchesCurrent.y - h.touchesStart.y + h.startY + r * (h.height - 2 * l)), 3208 h.currentX < h.minX && (h.currentX = h.minX + 1 - (h.minX - h.currentX + 1) ** 0.8), 3209 h.currentX > h.maxX && (h.currentX = h.maxX - 1 + (h.currentX - h.maxX + 1) ** 0.8), 3210 h.currentY < h.minY && (h.currentY = h.minY + 1 - (h.minY - h.currentY + 1) ** 0.8), 3211 h.currentY > h.maxY && (h.currentY = h.maxY - 1 + (h.currentY - h.maxY + 1) ** 0.8), 3212 g.prevPositionX || (g.prevPositionX = h.touchesCurrent.x), 3213 g.prevPositionY || (g.prevPositionY = h.touchesCurrent.y), 3214 g.prevTime || (g.prevTime = Date.now()), 3215 (g.x = (h.touchesCurrent.x - g.prevPositionX) / (Date.now() - g.prevTime) / 2), 3216 (g.y = (h.touchesCurrent.y - g.prevPositionY) / (Date.now() - g.prevTime) / 2), 3217 Math.abs(h.touchesCurrent.x - g.prevPositionX) < 2 && (g.x = 0), 3218 Math.abs(h.touchesCurrent.y - g.prevPositionY) < 2 && (g.y = 0), 3219 (g.prevPositionX = h.touchesCurrent.x), 3220 (g.prevPositionY = h.touchesCurrent.y), 3221 (g.prevTime = Date.now()), 3222 (m.imageWrapEl.style.transform = `translate3d(${h.currentX}px, ${h.currentY}px,0)`) 3223 } 3224 function C() { 3225 const e = t.zoom 3226 m.slideEl && 3227 t.activeIndex !== t.slides.indexOf(m.slideEl) && 3228 (m.imageEl && (m.imageEl.style.transform = "translate3d(0,
32280,0) scale(1)"), 3229 m.imageWrapEl && (m.imageWrapEl.style.transform = "translate3d(0,0,0)"), 3230 m.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`), 3231 (e.scale = 1), 3232 (c = 1), 3233 (m.slideEl = void 0), 3234 (m.imageEl = void 0), 3235 (m.imageWrapEl = void 0), 3236 (m.originX = 0), 3237 (m.originY = 0)) 3238 } 3239 function P(e) { 3240 const s = t.zoom, 3241 a = t.params.zoom 3242 if (!m.slideEl) { 3243 e && e.target && (m.slideEl = e.target.closest(`.${t.params.slideClass}, swiper-slide`)), m.slideEl || (t.params.virtual && t.params.virtual.enabled && t.virtual ? (m.slideEl = f(t.slidesEl, `.${t.params.slideActiveClass}`)[0]) : (m.slideEl = t.slides[t.activeIndex])) 3244 let s = m.slideEl.querySelector(`.${a.containerClass}`) 3245 s && (s = s.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), (m.imageEl = s), (m.imageWrapEl = s ? y(m.imageEl, `.${a.containerClass}`)[0] : void 0) 3246 } 3247 if (!m.imageEl || !m.imageWrapEl) return 3248 let i, r, l, o, d, p, u, g, w, b, E, x, S, T, M, C, P, L 3249 t.params.cssMode && ((t.wrapperEl.style.overflow = "hidden"), (t.wrapperEl.style.touchAction = "none")), m.slideEl.classList.add(`${a.zoomedSlideClass}`), void 0 === h.touchesStart.x && e ? ((i = e.pageX), (r = e.pageY)) : ((i = h.touchesStart.x), (r = h.touchesStart.y)) 3250 const z = "number" == typeof e ? e : null 3251 1 === c && z && ((i = void 0), (r = void 0)), 3252 (s.scale = z || m.imageWrapEl.getAttribute("data-swiper-zoom") || a.maxRatio), 3253 (c = z || m.imageWrapEl.getAttribute("data-swiper-zoom") || a.maxRatio), 3254 !e || (1 === c && z) 3255 ? ((u = 0), (g = 0)) 3256 : ((P = m.slideEl.offsetWidth), 3257 (L = m.slideEl.offsetHeight), 3258 (l = v(m.slideEl).left + n.scrollX), 3259 (o = v(m.slideEl).top + n.scrollY), 3260 (d = l + P / 2 - i), 3261 (p = o + L / 2 - r), 3262 (w = m.imageEl.offsetWidth), 3263 (b = m.imageEl.offsetHeight), 3264 (E = w * s.scale), 3265 (x = b * s.scale), 3266 (S = Math.min(P / 2 - E / 2, 0)), 3267 (T = Math.min(L / 2 - x / 2, 0)), 3268 (M = -S), 3269 (C = -T), 3270 (u = d * s.scale), 3271 (g = p * s.scale), 3272 u < S && (u = S), 3273 u > M && (u = M), 3274 g < T && (g = T), 3275 g > C && (g = C)), 3276 z && 1 === s.scale && ((m.originX = 0), (m.originY = 0)), 3277 (m.imageWrapEl.style.transitionDuration = "300ms"), 3278 (m.imageWrapEl.style.transform = `translate3d(${u}px, ${g}px,0)`), 3279 (m.imageEl.style.transitionDuration = "300ms"), 3280 (m.imageEl.style.transform = `translate3d(0,0,0) scale(${s.scale})`) 3281 } 3282 function L() { 3283 const e = t.zoom, 3284 s = t.params.zoom 3285 if (!m.slideEl) { 3286 t.params.virtual && t.params.virtual.enabled && t.virtual ? (m.slideEl = f(t.slidesEl, `.${t.params.slideActiveClass}`)[0]) : (m.slideEl = t.slides[t.activeIndex]) 3287 let e = m.slideEl.querySelector(`.${s.containerClass}`) 3288 e && (e = e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), (m.imageEl = e), (m.imageWrapEl = e ? y(m.imageEl, `.${s.containerClass}`)[0] : void 0) 3289 } 3290 m.imageEl && 3291 m.imageWrapEl && 3292 (t.params.cssMode && ((t.wrapperEl.style.overflow = ""), (t.wrapperEl.style.touchAction = "")), 3293 (e.scale = 1), 3294 (c = 1), 3295 (m.imageWrapEl.style.transitionDuration = "300ms"), 3296 (m.imageWrapEl.style.transform = "translate3d(0,0,0)"), 3297 (m.imageEl.style.transitionDuration = "300ms"), 3298 (m.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), 3299 m.slideEl.classList.remove(`${s.zoomedSlideClass}`), 3300 (m.slideEl = void 0), 3301 (m.originX = 0), 3302 (m.originY = 0)) 3303 } 3304 function z(e) { 3305 const s = t.zoom 3306 s.scale && 1 !== s.scale ? L() : P(e) 3307 } 3308 function A() { 3309 return { passiveListener: !!t.params.passiveListeners && { passive: !0, capture: !1 }, activeListenerWithCapture: !t.params.passiveListeners || { passive: !1, capture: !0 } } 3310 } 3311 function $() { 3312 const e = t.zoom 3313 if (e.enabled) return 3314 e.enabled = !0 3315 const { passiveListener: s, activeListenerWithCapture: a } = A() 3316 t.wrapperEl.addEventListener("pointerdown", x, s), 3317 t.wrapperEl.addEventListener("pointermove", S, a), 3318 ["pointerup", "pointercancel", "pointerout"].forEach((e) => { 3319 t.wrapperEl.addEventListener(e, T, s) 3320 }), 3321 t.wrapperEl.addEventListener("pointermove", M, a) 3322 } 3323 function I() { 3324 const e = t.zoom 3325 if (!e.enabled) return 3326 e.enabled = !1 3327 const { passiveListener: s, activeListenerWithCapture: a } = A() 3328 t.wrapperEl.removeEventListener("pointerdown", x, s), 3329 t.wrapperEl.removeEventListener("pointermove", S, a), 3330 ["pointerup", "pointercancel", "pointerout"].forEach((e) => { 3331 t.wrapperEl.removeEventListener(e, T, s) 3332 }), 3333 t.wrapperEl.removeEventListener("pointermove", M, a) 3334 } 3335 Object.defineProperty(t.zoom, "scale", { 3336 get: () => w, 3337 set(e) { 3338 if (w !== e) { 3339 const t = m.imageEl, 3340 s = m.slideEl 3341 i("zoomChange", e, t, s) 3342 } 3343 w = e
3344 }, 3345 }), 3346 a("init", () => { 3347 t.params.zoom.enabled && $() 3348 }), 3349 a("destroy", () => { 3350 I() 3351 }), 3352 a("touchStart", (e, s) => { 3353 t.zoom.enabled && 3354 (function (e) { 3355 const s = t.device 3356 if (!m.imageEl) return 3357 if (h.isTouched) return 3358 s.android && e.cancelable && e.preventDefault(), (h.isTouched = !0) 3359 const a = u.length > 0 ? u[0] : e 3360 ;(h.touchesStart.x = a.pageX), (h.touchesStart.y = a.pageY) 3361 })(s) 3362 }), 3363 a("touchEnd", (e, s) => { 3364 t.zoom.enabled && 3365 (function () { 3366 const e = t.zoom 3367 if (!m.imageEl) return 3368 if (!h.isTouched || !h.isMoved) return (h.isTouched = !1), void (h.isMoved = !1) 3369 ;(h.isTouched = !1), (h.isMoved = !1) 3370 let s = 300, 3371 a = 300 3372 const i = g.x * s, 3373 r = h.currentX + i, 3374 n = g.y * a, 3375 l = h.currentY + n 3376 0 !== g.x && (s = Math.abs((r - h.currentX) / g.x)), 0 !== g.y && (a = Math.abs((l - h.currentY) / g.y)) 3377 const o = Math.max(s, a) 3378 ;(h.currentX = r), (h.currentY = l) 3379 const d = h.width * e.scale, 3380 c = h.height * e.scale 3381 ;(h.minX = Math.min(m.slideWidth / 2 - d / 2, 0)), 3382 (h.maxX = -h.minX), 3383 (h.minY = Math.min(m.slideHeight / 2 - c / 2, 0)), 3384 (h.maxY = -h.minY), 3385 (h.currentX = Math.max(Math.min(h.currentX, h.maxX), h.minX)), 3386 (h.currentY = Math.max(Math.min(h.currentY, h.maxY), h.minY)), 3387 (m.imageWrapEl.style.transitionDuration = `${o}ms`), 3388 (m.imageWrapEl.style.transform = `translate3d(${h.currentX}px, ${h.currentY}px,0)`) 3389 })() 3390 }), 3391 a("doubleTap", (e, s) => { 3392 !t.animating && t.params.zoom.enabled && t.zoom.enabled && t.params.zoom.toggle && z(s) 3393 }), 3394 a("transitionEnd", () => { 3395 t.zoom.enabled && t.params.zoom.enabled && C() 3396 }), 3397 a("slideChange", () => { 3398 t.zoom.enabled && t.params.zoom.enabled && t.params.cssMode && C() 3399 }), 3400 Object.assign(t.zoom, { enable: $, disable: I, in: P, out: L, toggle: z }) 3401 }, 3402 function (e) { 3403 let { swiper: t, extendParams: s, on: a } = e 3404 function i(e, t) { 3405 const s = (function () { 3406 let e, t, s 3407 return (a, i) => { 3408 for (t = -1, e = a.length; e - t > 1; ) (s = (e + t) >> 1), a[s] <= i ? (t = s) : (e = s) 3409 return e 3410 } 3411 })() 3412 let a, i 3413 return ( 3414 (this.x = e), 3415 (this.y = t), 3416 (this.lastIndex = e.length - 1), 3417 (this.interpolate = function (e) { 3418 return e ? ((i = s(this.x, e)), (a = i - 1), ((e - this.x[a]) * (this.y[i] - this.y[a])) / (this.x[i] - this.x[a]) + this.y[a]) : 0 3419 }), 3420 this 3421 ) 3422 } 3423 function r() { 3424 t.controller.control && t.controller.spline && ((t.controller.spline = void 0), delete t.controller.spline) 3425 } 3426 s({ controller: { control: void 0, inverse: !1, by: "slide" } }), 3427 (t.controller = { control: void 0 }), 3428 a("beforeInit", () => { 3429 if ("undefined" != typeof window && ("string" == typeof t.params.controller.control || t.params.controller.control instanceof HTMLElement)) { 3430 const e = document.querySelector(t.params.controller.control) 3431 if (e && e.swiper) t.controller.control = e.swiper 3432 else if (e) { 3433 const s = (a) => { 3434 ;(t.controller.control = a.detail[0]), t.update(), e.removeEventListener("init", s) 3435 } 3436 e.addEventListener("init", s) 3437 } 3438 } else t.controller.control = t.params.controller.control 3439 }), 3440 a("update", () => { 3441 r() 3442 }), 3443 a("resize", () => { 3444 r() 3445 }), 3446 a("observerUpdate", () => { 3447 r() 3448 }), 3449 a("setTranslate", (e, s, a) => { 3450 t.controller.control && !t.controller.control.destroyed && t.controller.setTranslate(s, a) 3451 }), 3452 a("setTransition", (e, s, a) => { 3453 t.controller.control && !t.controller.control.destroyed && t.controller.setTransition(s, a) 3454 }), 3455 Object.assign(t.controller, { 3456 setTranslate: function (e, s) { 3457 const a = t.controller.control 3458 let r, n 3459 const l = t.constructor 3460 function o(e) { 3461 if (e.destroyed) return 3462 const s = t.rtlTranslate ? -t.translate : t.translate 3463 "slide" === t.params.controller.by && 3464 (!(function (e) { 3465 t.controller.spline = t.params.loop ? new i(t.slidesGrid, e.slidesGrid) : new i(t.snapGrid, e.snapGrid) 3466 })(e), 3467 (n = -t.controller.spline.interpolate(-s))), 3468 (n && "container" !== t.params.controller.by) || ((r = (e.maxTranslate() - e.minTranslate()) / (t.maxTranslate() - t.minTranslate())), (!Number.isNaN(r) && Number.isFinite(r)) || (r = 1), (n = (s - t.minTranslate()) * r + e.minTranslate())), 3469 t.params.controller.inverse && (n = e.maxTranslate() - n), 3470 e.updateProgress(n), 3471 e.setTranslate(n, t), 3472 e.updateActiveIndex(), 3473 e.updateSlidesClasses() 3474 } 3475 if (Array.isArray(a)) for (let e = 0; e < a.length; e += 1) a[e] !== s && a[e] instanceof l && o(a[e]) 3476 else a instanceof l && s !== a && o(a) 3477 }, 3478 setTransition: function (e, s) { 3479 const a = t.constructor, 3480 i = t.controller.control 3481 let r 3482 function l(s) { 3483 s.destroyed || 3484 (s.setTransition(e, t), 3485 0 !== e && 3486 (s.transitionStart(), 3487 s.params.autoHeight && 3488 n(() => { 3489 s.updateAutoHeight() 3490 }), 3491 E(s.wrapperEl, () => { 3492 i && s.transitionEnd() 3493 }))) 3494 } 3495 if (Array.isArray(i)) for (r = 0; r < i.length; r += 1) i[r] !== s && i[r] instanceof a && l(i[r]) 3496 else i instanceof a && s !== i && l(i) 3497 }, 3498 }) 3499 }, 3500 function (e) { 3501 let { swiper: t, extendParams: s, on: a } = e 3502 s({ 3503 a11y: { 3504 enabled: !0, 3505 notificationClass: "swiper-notification", 3506 prevSlideMessage: "Previous slide", 3507 nextSlideMessage: "Next slide", 3508 firstSlideMessage: "This is the first slide", 3509 lastSlideMessage: "This is the last slide", 3510 paginationBulletMessage: "Go to slide {{index}}", 3511 slideLabelMessage: "{{index}} / {{slidesLength}}", 3512 containerMessage: null, 3513 containerRoleDescriptionMessage: null, 3514 itemRoleDescriptionMessage: null, 3515 slideRole: "group", 3516 id: null, 3517 }, 3518 }), 3519 (t.a11y = { clicked: !1 }) 3520 let i = null 3521 function r(e) { 3522 const t = i 3523 0 !== t.length && ((t.innerHTML = ""), (t.innerHTML = e)) 3524 } 3525 const n = (e) => (Array.isArray(e) || (e = [e].filter((e) => !!e)), e) 3526 function l(e) { 3527 ;
3527(e = n(e)).forEach((e) => { 3528 e.setAttribute("tabIndex", "0") 3529 }) 3530 } 3531 function o(e) { 3532 ;(e = n(e)).forEach((e) => { 3533 e.setAttribute("tabIndex", "-1") 3534 }) 3535 } 3536 function d(e, t) { 3537 ;(e = n(e)).forEach((e) => { 3538 e.setAttribute("role", t) 3539 }) 3540 } 3541 function c(e, t) { 3542 ;(e = n(e)).forEach((e) => { 3543 e.setAttribute("aria-roledescription", t) 3544 }) 3545 } 3546 function p(e, t) { 3547 ;(e = n(e)).forEach((e) => { 3548 e.setAttribute("aria-label", t) 3549 }) 3550 } 3551 function u(e) { 3552 ;(e = n(e)).forEach((e) => { 3553 e.setAttribute("aria-disabled", !0) 3554 }) 3555 } 3556 function m(e) { 3557 ;(e = n(e)).forEach((e) => { 3558 e.setAttribute("aria-disabled", !1) 3559 }) 3560 } 3561 function h(e) { 3562 if (13 !== e.keyCode && 32 !== e.keyCode) return 3563 const s = t.params.a11y, 3564 a = e.target 3565 ;(t.pagination && t.pagination.el && (a === t.pagination.el || t.pagination.el.contains(e.target)) && !e.target.matches(te(t.params.pagination.bulletClass))) || 3566 (t.navigation && t.navigation.nextEl && a === t.navigation.nextEl && ((t.isEnd && !t.params.loop) || t.slideNext(), t.isEnd ? r(s.lastSlideMessage) : r(s.nextSlideMessage)), 3567 t.navigation && t.navigation.prevEl && a === t.navigation.prevEl && ((t.isBeginning && !t.params.loop) || t.slidePrev(), t.isBeginning ? r(s.firstSlideMessage) : r(s.prevSlideMessage)), 3568 t.pagination && a.matches(te(t.params.pagination.bulletClass)) && a.click()) 3569 } 3570 function f() { 3571 return t.pagination && t.pagination.bullets && t.pagination.bullets.length 3572 } 3573 function v() { 3574 return f() && t.params.pagination.clickable 3575 } 3576 const w = (e, t, s) => { 3577 l(e), 3578 "BUTTON" !== e.tagName && (d(e, "button"), e.addEventListener("keydown", h)), 3579 p(e, s), 3580 (function (e, t) { 3581 ;(e = n(e)).forEach((e) => { 3582 e.setAttribute("aria-controls", t) 3583 }) 3584 })(e, t) 3585 }, 3586 y = () => { 3587 t.a11y.clicked = !0 3588 }, 3589 E = () => { 3590 requestAnimationFrame(() => { 3591 requestAnimationFrame(() => { 3592 t.destroyed || (t.a11y.clicked = !1) 3593 }) 3594 }) 3595 }, 3596 x = (e) => { 3597 if (t.a11y.clicked) return 3598 const s = e.target.closest(`.${t.params.slideClass}, swiper-slide`) 3599 if (!s || !t.slides.includes(s)) return 3600 const a = t.slides.indexOf(s) === t.activeIndex, 3601 i = t.params.watchSlidesProgress && t.visibleSlides && t.visibleSlides.includes(s) 3602 a || i || (e.sourceCapabilities && e.sourceCapabilities.firesTouchEvents) || (t.isHorizontal() ? (t.el.scrollLeft = 0) : (t.el.scrollTop = 0), t.slideTo(t.slides.indexOf(s), 0)) 3603 }, 3604 S = () => { 3605 const e = t.params.a11y 3606 e.itemRoleDescriptionMessage && c(t.slides, e.itemRoleDescriptionMessage), e.slideRole && d(t.slides, e.slideRole) 3607 const s = t.slides.length 3608 e.slideLabelMessage && 3609 t.slides.forEach((a, i) => { 3610 const r = t.params.loop ? parseInt(a.getAttribute("data-swiper-slide-index"), 10) : i 3611 p(a, e.slideLabelMessage.replace(/\{\{index\}\}/, r + 1).replace(/\{\{slidesLength\}\}/, s)) 3612 }) 3613 }, 3614 T = () => { 3615 const e = t.params.a11y 3616 t.isElement ? t.el.shadowEl.append(i) : t.el.append(i) 3617 const s = t.el 3618 e.containerRoleDescriptionMessage && c(s, e.containerRoleDescriptionMessage), e.containerMessage && p(s, e.containerMessage) 3619 const a = t.wrapperEl, 3620 r = e.id || a.getAttribute("id") || `swiper-wrapper-${((l = 16), void 0 === l && (l = 16), "x".repeat(l).replace(/x/g, () => Math.round(16 * Math.random()).toString(16)))}` 3621 var l 3622 const o = t.params.autoplay && t.params.autoplay.enabled ? "off" : "polite" 3623 var d 3624 ;(d = r),
3625 n(a).forEach((e) => { 3626 e.setAttribute("id", d) 3627 }), 3628 (function (e, t) { 3629 ;(e = n(e)).forEach((e) => { 3630 e.setAttribute("aria-live", t) 3631 }) 3632 })(a, o), 3633 S() 3634 let { nextEl: u, prevEl: m } = t.navigation ? t.navigation : {} 3635 if (((u = n(u)), (m = n(m)), u && u.forEach((t) => w(t, r, e.nextSlideMessage)), m && m.forEach((t) => w(t, r, e.prevSlideMessage)), v())) { 3636 ;(Array.isArray(t.pagination.el) ? t.pagination.el : [t.pagination.el]).forEach((e) => { 3637 e.addEventListener("keydown", h) 3638 }) 3639 } 3640 t.el.addEventListener("focus", x, !0), t.el.addEventListener("pointerdown", y, !0), t.el.addEventListener("pointerup", E, !0) 3641 } 3642 a("beforeInit", () => { 3643 ;(i = g("span", t.params.a11y.notificationClass)), i.setAttribute("aria-live", "assertive"), i.setAttribute("aria-atomic", "true") 3644 }), 3645 a("afterInit", () => { 3646 t.params.a11y.enabled && T() 3647 }), 3648 a("slidesLengthChange snapGridLengthChange slidesGridLengthChange", () => { 3649 t.params.a11y.enabled && S() 3650 }), 3651 a("fromEdge toEdge afterInit lock unlock", () => { 3652 t.params.a11y.enabled && 3653 (function () { 3654 if (t.params.loop || t.params.rewind || !t.navigation) return 3655 const { nextEl: e, prevEl: s } = t.navigation 3656 s && (t.isBeginning ? (u(s), o(s)) : (m(s), l(s))), e && (t.isEnd ? (u(e), o(e)) : (m(e), l(e))) 3657 })() 3658 }), 3659 a("paginationUpdate", () => { 3660 t.params.a11y.enabled && 3661 (function () { 3662 const e = t.params.a11y 3663 f() && 3664 t.pagination.bullets.forEach((s) => { 3665 t.params.pagination.clickable && (l(s), t.params.pagination.renderBullet || (d(s, "button"), p(s, e.paginationBulletMessage.replace(/\{\{index\}\}/, b(s) + 1)))), 3666 s.matches(te(t.params.pagination.bulletActiveClass)) ? s.setAttribute("aria-current", "true") : s.removeAttribute("aria-current") 3667 }) 3668 })() 3669 }), 3670 a("destroy", () => { 3671 t.params.a11y.enabled && 3672 (function () { 3673 i && i.remove() 3674 let { nextEl: e, prevEl: s } = t.navigation ? t.navigation : {} 3675 ;(e = n(e)), 3676 (s = n(s)), 3677 e && e.forEach((e) => e.removeEventListener("keydown", h)), 3678 s && s.forEach((e) => e.removeEventListener("keydown", h)), 3679 v() && 3680 (Array.isArray(t.pagination.el) ? t.pagination.el : [t.pagination.el]).forEach((e) => { 3681 e.removeEventListener("keydown", h) 3682 }) 3683 t.el.removeEventListener("focus", x, !0), t.el.removeEventListener("pointerdown", y, !0), t.el.removeEventListener("pointerup", E, !0) 3684 })() 3685 }) 3686 }, 3687 function (e) { 3688 let { swiper: t, extendParams: s, on: a } = e 3689 s({ history: { enabled: !1, root: "", replaceState: !1, key: "slides", keepQuery: !1 } }) 3690 let i = !1, 3691 n = {} 3692 const l = (e) => 3693 e 3694 .toString() 3695 .replace(/\s+/g, "-") 3696 .replace(/[^\w-]+/g, "") 3697 .replace(/--+/g, "-") 3698 .replace(/^-+/, "") 3699 .replace(/-+$/, ""), 3700 o = (e) => { 3701 const t = r() 3702 let s 3703 s = e ? new URL(e) : t.location 3704 const a = s.pathname 3705 .slice(1) 3706 .split("/") 3707 .filter((e) => "" !== e), 3708 i = a.length 3709 return { key: a[i - 2], value: a[i - 1] } 3710 }, 3711 d = (e, s) => { 3712 const a = r() 3713 if (!i || !t.params.history.enabled) return 3714 let n 3715 n = t.params.url ? new URL(t.params.url) : a.location 3716 const o = t.slides[s] 3717 let d = l(o.getAttribute("data-history")) 3718 if (t.params.history.root.length > 0) { 3719 let s = t.params.history.root 3720 "/" === s[s.length - 1] && (s = s.slice(0, s.length - 1)), (d = `${s}/${e ? `${e}/` : ""}${d}`) 3721 } else n.pathname.includes(e) || (d = `${e ? `${e}/` : ""}${d}`) 3722 t.params.history.keepQuery && (d += n.search) 3723 const c = a.history.state 3724 ;(c && c.value === d) || (t.params.history.replaceState ? a.history.replaceState({ value: d }, null, d) : a.history.pushState({ value: d }, null, d)) 3725 }, 3726 c = (e, s, a) => { 3727 if (s) 3728 for (let i = 0, r = t.slides.length; i < r; i += 1) { 3729 const r = t.slides[i] 3730 if (l(r.getAttribute("data-history")) === s) { 3731 const s = t.getSlideIndex(r) 3732 t.slideTo(s, e, a) 3733 } 3734 } 3735 else t.slideTo(0, e, a) 3736 }, 3737 p = () => { 3738 ;(n = o(t.params.url)), c(t.params.speed, n.value, !1) 3739 } 3740 a("init", () => { 3741 t.params.history.enabled && 3742 (() => { 3743 const e = r() 3744 if (t.params.history) { 3745 if (!e.history || !e.history.pushState) return (t.params.history.enabled = !1), void (t.params.hashNavigation.enabled = !0) 3746 ;(i = !0), (n = o(t.params.url)), n.key || n.value ? (c(0, n.value, t.params.runCallbacksOnInit), t.params.history.replaceState || e.addEventListener("popstate", p)) : t.params.history.replaceState || e.addEventListener("popstate", p) 3747 } 3748 })() 3749 }), 3750 a("destroy", () => { 3751 t.params.history.enabled && 3752 (() => { 3753 const e = r() 3754 t.params.history.replaceState || e.removeEventListener("popstate", p) 3755 })() 3756 }), 3757 a("transitionEnd _freeModeNoMomentumRelease", () => { 3758 i && d(t.params.history.key, t.activeIndex) 3759 }), 3760 a("slideChange", () => { 3761 i && t.params.cssMode && d(t.params.history.key, t.activeIndex) 3762 }) 3763 }, 3764 function (e) { 3765 let { swiper: t, extendParams: s, emit: i, on: n } = e, 3766 l = !1 3767 const o = a(), 3768 d = r() 3769 s({ 3770 hashNavigation: { 3771 enabled: !1, 3772 replaceState: !1, 3773 watchState: !1, 3774 getSlideIndex(e, s) { 3775 if (t.virtual && t.params.virtual.enabled) { 3776 const e = t.slides.filter((e) => e.getAttribute("data-hash") === s)[0] 3777 if (!e) return 0 3778 return parseInt(e.getAttribute("data-swiper-slide-index"), 10) 3779 } 3780 return t.getSlideIndex(f(t.slidesEl, `.${t.params.slideClass}[data-hash="${s}"], swiper-slide[data-hash="${s}"]`)[0]) 3781 }, 3782 }, 3783 }) 3784 const c = () => { 3785 i("hashChange") 3786 const e = o.location.hash.replace("#", ""), 3787 s = t.virtual && t.params.virtual.enabled ? t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`) : t.slides[t.activeIndex] 3788 if (e !== (s ? s.getAttribute("data-hash") : "")) { 3789 const s = t.params.hashNavigation.getSlideIndex(t, e) 3790 if (void 0 === s || Number.isNaN(s)) return 3791 t.slideTo(s) 3792 } 3793 }, 3794 p = () => { 3795 if (!l || !t.params.hashNavigation.enabled) return 3796 const e = t.virtual && t.params.virtual.enabled ? t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`) : t.slides[t.activeIndex], 3797 s = e ? e.getAttribute("data-hash") || e.getAttribute("data-history") : "" 3798 t.params.hashNavigation.replaceState && d.history && d.history.replaceState ? (d.history.replaceState(null, null, `#${s}` || ""), i("hashSet")) : ((o.location.hash = s || ""), i("hashSet")) 3799 } 3800 n("init", () => { 3801 t.params.hashNavigation.enabled && 3802 (() => { 3803 if (!t.params.hashNavigation.enabled || (t.params.history && t.params.history.enabled)) return 3804 l = !0 3805 const e = o.location.hash.replace("#", "") 3806 if (e) { 3807 const s = 0, 3808 a = t.params.hashNavigation.getSlideIndex(t, e) 3809 t.slideTo(a || 0, s, t.params.runCallbacksOnInit, !0) 3810 } 3811 t.params.hashNavigation.watchState && d.addEventListener("hashchange", c) 3812 })() 3813 }), 3814 n("destroy", () => { 3815 t.params.hashNavigation.enabled && t.params.hashNavigation.watchState && d.removeEventListener("hashchange", c) 3816 }), 3817 n("transitionEnd _freeModeNoMomentumRelease", () => { 3818 l && p() 3819 }), 3820 n("slideChange", () => { 3821 l && t.params.cssMode && p() 3822 }) 3823 }, 3824 function (e) { 3825 let t, 3826 s, 3827 { swiper: i, extendParams: r, on: n, emit: l, params: o } = e 3828 ;(i.autoplay = { running: !1, paused: !1, timeLeft: 0 }), r({ autoplay: { enabled: !1, delay: 3e3, waitForTransition: !0, disableOnInteraction: !0, stopOnLastSlide: !1, reverseDirection: !1, pauseOnMouseEnter: !1 } }) 3829 let d, 3830 c, 3831 p, 3832 u, 3833 m, 3834 h, 3835 f, 3836 g = o && o.autoplay ? o.autoplay.delay : 3e3, 3837 v = o && o.autoplay ? o.autoplay.delay : 3e3, 3838 w = new Date().getTime 3839 function b(e) { 3840 i && !i.destroyed && i.wrapperEl && e.target === i.wrapperEl && (i.wrapperEl.removeEventListener("transitionend", b), M()) 3841 } 3842 const y = () => { 3843 if (i.destroyed || !i.autoplay.running) return 3844 i.autoplay.paused ? (c = !0) : c && ((v = d), (c = !1)) 3845 const e = i.autoplay.paused ? d : w + v - new Date().getTime() 3846 ;(i.autoplay.timeLeft = e), 3847 l("autoplayTimeLeft", e, e / g), 3848 (s = requestAnimationFrame(() => { 3849 y() 3850 })) 3851 }, 3852 E = (e) => { 3853 if (i.destroyed || !i.autoplay.running) return 3854 cancelAnimationFrame(s), y() 3855 let a = void 0 === e ? i.params.autoplay.delay : e 3856 ;(g = i.params.autoplay.delay), (v = i.params.autoplay.delay) 3857 const r = (() => { 3858 let e 3859 if (((e = i.virtual && i.params.virtual.enabled ? i.slides.filter((e) => e.classList.contains("swiper-slide-active"))[0] : i.slides[i.activeIndex]), !e)) return 3860 return parseInt(e.getAttribute("data-swiper-autoplay"), 10) 3861 })() 3862 !Number.isNaN(r) && r > 0 && void 0 === e && ((a = r), (g = r), (v = r)), (d = a) 3863 const n = i.params.speed, 3864 o = () => { 3865 i && 3866 !i.destroyed && 3867 (i.params.autoplay.reverseDirection 3868 ? !i.isBeginning || i.params.loop || i.params.rewind 3869 ? (i.slidePrev(n, !0, !0), l("autoplay")) 3870 : i.params.autoplay.stopOnLastSlide || (i.slideTo(i.slides.length - 1, n, !0, !0), l("autoplay")) 3871 : !i.isEnd || i.params.loop || i.params.rewind 3872 ? (i.slideNext(n, !0, !0), l("autoplay")) 3873 : i.params.autoplay.stopOnLastSlide || (i.slideTo(0, n, !0, !0), l("autoplay")), 3874 i.params.cssMode && 3875 ((w = new Date().getTime()), 3876 requestAnimationFrame(() => { 3877 E() 3878 }))) 3879 } 3880 return ( 3881 a > 0 3882 ? (clearTimeout(t), 3883 (t = setTimeout(() => { 3884 o() 3885 }, a))) 3886 : requestAnimationFrame(() => { 3887 o() 3888 }), 3889 a 3890 ) 3891 }, 3892 x = () => { 3893 ;(i.autoplay.running = !0), E(), l("autoplayStart") 3894 }, 3895 S = () => { 3896 ;(i.autoplay.running = !1), clearTimeout(t), cancelAnimationFrame(s), l("autoplayStop") 3897 }, 3898 T = (e, s) => { 3899 if (i.destroyed || !i.autoplay.running) return 3900 clearTimeout(t), e || (f = !0) 3901 const a = () => { 3902 l("autoplayPause"), i.params.autoplay.waitForTransition ? i.wrapperEl.addEventListener("transitionend", b) : M() 3903 } 3904 if (((i.autoplay.paused = !0), s)) return h && (d = i.params.autoplay.delay), (h = !1), void a() 3905 const r = d || i.params.autoplay.delay 3906 ;(d = r - (new Date().getTime() - w)), (i.isEnd && d < 0 && !i.params.loop) || (d < 0 && (d = 0), a()) 3907 }, 3908 M = () => { 3909 ;(i.isEnd && d < 0 && !i.params.loop) || i.destroyed || !i.autoplay.running || ((w
3909= new Date().getTime()), f ? ((f = !1), E(d)) : E(), (i.autoplay.paused = !1), l("autoplayResume")) 3910 }, 3911 C = () => { 3912 if (i.destroyed || !i.autoplay.running) return 3913 const e = a() 3914 "hidden" === e.visibilityState && ((f = !0), T(!0)), "visible" === e.visibilityState && M() 3915 }, 3916 P = (e) => { 3917 "mouse" === e.pointerType && ((f = !0), T(!0)) 3918 }, 3919 L = (e) => { 3920 "mouse" === e.pointerType && i.autoplay.paused && M() 3921 } 3922 n("init", () => { 3923 i.params.autoplay.enabled && (i.params.autoplay.pauseOnMouseEnter && (i.el.addEventListener("pointerenter", P), i.el.addEventListener("pointerleave", L)), a().addEventListener("visibilitychange", C), (w = new Date().getTime()), x()) 3924 }), 3925 n("destroy", () => { 3926 i.el.removeEventListener("pointerenter", P), i.el.removeEventListener("pointerleave", L), a().removeEventListener("visibilitychange", C), i.autoplay.running && S() 3927 }), 3928 n("beforeTransitionStart", (e, t, s) => { 3929 !i.destroyed && i.autoplay.running && (s || !i.params.autoplay.disableOnInteraction ? T(!0, !0) : S()) 3930 }), 3931 n("sliderFirstMove", () => { 3932 !i.destroyed && 3933 i.autoplay.running && 3934 (i.params.autoplay.disableOnInteraction 3935 ? S() 3936 : ((p = !0), 3937 (u = !1), 3938 (f = !1), 3939 (m = setTimeout(() => { 3940 ;(f = !0), (u = !0), T(!0) 3941 }, 200)))) 3942 }), 3943 n("touchEnd", () => { 3944 if (!i.destroyed && i.autoplay.running && p) { 3945 if ((clearTimeout(m), clearTimeout(t), i.params.autoplay.disableOnInteraction)) return (u = !1), void (p = !1) 3946 u && i.params.cssMode && M(), (u = !1), (p = !1) 3947 } 3948 }), 3949 n("slideChange", () => { 3950 !i.destroyed && i.autoplay.running && (h = !0) 3951 }), 3952 Object.assign(i.autoplay, { start: x, stop: S, pause: T, resume: M }) 3953 }, 3954 function (e) { 3955 let { swiper: t, extendParams: s, on: i } = e 3956 s({ thumbs: { swiper: null, multipleActiveThumbs: !0, autoScrollOffset: 0, slideThumbActiveClass: "swiper-slide-thumb-active", thumbsContainerClass: "swiper-thumbs" } }) 3957 let r = !1, 3958 n = !1 3959 function l() { 3960 const e = t.thumbs.swiper 3961 if (!e || e.destroyed) return 3962 const s = e.clickedIndex, 3963 a = e.clickedSlide 3964 if (a && a.classList.contains(t.params.thumbs.slideThumbActiveClass)) return 3965 if (null == s) return 3966 let i 3967 ;(i = e.params.loop ? parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"), 10) : s), t.params.loop ? t.slideToLoop(i) : t.slideTo(i) 3968 } 3969 function o() { 3970 const { thumbs: e } = t.params 3971 if (r) return !1 3972 r = !0 3973 const s = t.constructor 3974 if (e.swiper instanceof s) (t.thumbs.swiper = e.swiper), Object.assign(t.thumbs.swiper.originalParams, { watchSlidesProgress: !0, slideToClickedSlide: !1 }), Object.assign(t.thumbs.swiper.params, { watchSlidesProgress: !0, slideToClickedSlide: !1 }), t.thumbs.swiper.update() 3975 else if (d(e.swiper)) { 3976 const a = Object.assign({}, e.swiper) 3977 Object.assign(a, { watchSlidesProgress: !0, slideToClickedSlide: !1 }), (t.thumbs.swiper = new s(a)), (n = !0) 3978 } 3979 return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass), t.thumbs.swiper.on("tap", l), !0 3980 } 3981 function c(e) { 3982 const s = t.thumbs.swiper 3983 if (!s || s.destroyed) return 3984 const a = "auto" === s.params.slidesPerView ? s.slidesPerViewDynamic() : s.params.slidesPerView 3985 let i = 1 3986 const r = t.params.thumbs.slideThumbActiveClass 3987 if ((t.params.slidesPerView > 1 && !t.params.centeredSlides && (i = t.params.slidesPerView), t.params.thumbs.multipleActiveThumbs || (i = 1), (i = Math.floor(i)), s.slides.forEach((e) => e.classList.remove(r)), s.params.loop || (s.params.virtual && s.params.virtual.enabled))) 3988 for (let e = 0; e < i; e += 1) 3989 f(s.slidesEl, `[data-swiper-slide-index="${t.realIndex + e}"]`).forEach((e) => { 3990 e.classList.add(r) 3991 }) 3992 else for (let e = 0; e < i; e += 1) s.slides[t.realIndex + e] && s.slides[t.realIndex + e].classList.add(r) 3993 const n = t.params.thumbs.autoScrollOffset, 3994 l = n && !s.params.loop 3995 if (t.realIndex !== s.realIndex || l) { 3996 const i = s.activeIndex 3997 let r, o 3998 if (s.params.loop) { 3999 const e = s.slides.filter((e) => e.getAttribute("data-swiper-slide-index") === `${t.realIndex}`)[0] 4000 ;(r = s.slides.indexOf(e)), (o = t.activeIndex > t.previousIndex ? "next" : "prev") 4001 } else (r = t.realIndex), (o = r > t.previousIndex ? "next" : "prev") 4002 l && (r += "next" === o ? n : -1 * n), s.visibleSlidesIndexes && s.visibleSlidesIndexes.indexOf(r) < 0 && (s.params.centeredSlides ? (r = r > i ? r - Math.floor(a / 2) + 1 : r + Math.floor(a / 2) - 1) : r > i && s.params.slidesPerGroup, s.slideTo(r, e ? 0 : void 0)) 4003 } 4004 } 4005 ;(t.thumbs = { swiper: null }), 4006 i("beforeInit", () => { 4007 const { thumbs: e } = t.params 4008 if (e && e.swiper) 4009 if ("string" == typeof e.swiper || e.swiper instanceof HTMLElement) { 4010 const s = a(), 4011 i = () => { 4012 const a = "string" == typeof e.swiper ? s.querySelector(e.swiper) : e.swiper 4013 if (a && a.swiper) (e.swiper = a.swiper), o(), c(!0) 4014 else if (a) { 4015 const s = (i) => { 4016 ;(e.swiper = i.detail[0]), a.removeEventListener("init", s), o(), c(!0), e.swiper.update(
4016), t.update() 4017 } 4018 a.addEventListener("init", s) 4019 } 4020 return a 4021 }, 4022 r = () => { 4023 if (t.destroyed) return 4024 i() || requestAnimationFrame(r) 4025 } 4026 requestAnimationFrame(r) 4027 } else o(), c(!0) 4028 }), 4029 i("slideChange update resize observerUpdate", () => { 4030 c() 4031 }), 4032 i("setTransition", (e, s) => { 4033 const a = t.thumbs.swiper 4034 a && !a.destroyed && a.setTransition(s) 4035 }), 4036 i("beforeDestroy", () => { 4037 const e = t.thumbs.swiper 4038 e && !e.destroyed && n && e.destroy() 4039 }), 4040 Object.assign(t.thumbs, { init: o, update: c }) 4041 }, 4042 function (e) { 4043 let { swiper: t, extendParams: s, emit: a, once: i } = e 4044 s({ freeMode: { enabled: !1, momentum: !0, momentumRatio: 1, momentumBounce: !0, momentumBounceRatio: 1, momentumVelocityRatio: 1, sticky: !1, minimumVelocity: 0.02 } }), 4045 Object.assign(t, { 4046 freeMode: { 4047 onTouchStart: function () { 4048 if (t.params.cssMode) return 4049 const e = t.getTranslate() 4050 t.setTranslate(e), t.setTransition(0), (t.touchEventsData.velocities.length = 0), t.freeMode.onTouchEnd({ currentPos: t.rtl ? t.translate : -t.translate }) 4051 }, 4052 onTouchMove: function () { 4053 if (t.params.cssMode) return 4054 const { touchEventsData: e, touches: s } = t 4055 0 === e.velocities.length && e.velocities.push({ position: s[t.isHorizontal() ? "startX" : "startY"], time: e.touchStartTime }), e.velocities.push({ position: s[t.isHorizontal() ? "currentX" : "currentY"], time: l() }) 4056 }, 4057 onTouchEnd: function (e) { 4058 let { currentPos: s } = e 4059 if (t.params.cssMode) return 4060 const { params: r, wrapperEl: n, rtlTranslate: o, snapGrid: d, touchEventsData: c } = t, 4061 p = l() - c.touchStartTime 4062 if (s < -t.minTranslate()) t.slideTo(t.activeIndex) 4063 else if (s > -t.maxTranslate()) t.slides.length < d.length ? t.slideTo(d.length - 1) : t.slideTo(t.slides.length - 1) 4064 else { 4065 if (r.freeMode.momentum) { 4066 if (c.velocities.length > 1) { 4067 const e = c.velocities.pop(), 4068 s = c.velocities.pop(), 4069 a = e.position - s.position, 4070 i = e.time - s.time 4071 ;(t.velocity = a / i), (t.velocity /= 2), Math.abs(t.velocity) < r.freeMode.minimumVelocity && (t.velocity = 0), (i > 150 || l() - e.time > 300) && (t.velocity = 0) 4072 } else t.velocity = 0 4073 ;(t.velocity *= r.freeMode.momentumVelocityRatio), (c.velocities.length = 0) 4074 let e = 1e3 * r.freeMode.momentumRatio 4075 const s = t.velocity * e 4076 let p = t.translate + s 4077 o && (p = -p) 4078 let u, 4079 m = !1 4080 const h = 20 * Math.abs(t.velocity) * r.freeMode.momentumBounceRatio 4081 let f 4082 if (p < t.maxTranslate()) r.freeMode.momentumBounce ? (p + t.maxTranslate() < -h && (p = t.maxTranslate() - h), (u = t.maxTranslate()), (m = !0), (c.allowMomentumBounce = !0)) : (p = t.maxTranslate()), r.loop && r.centeredSlides && (f = !0) 4083 else if (p > t.minTranslate()) r.freeMode.momentumBounce ? (p - t.minTranslate() > h && (p = t.minTranslate() + h), (u = t.minTranslate()), (m = !0), (c.allowMomentumBounce = !0)) : (p = t.minTranslate()), r.loop && r.centeredSlides && (f = !0) 4084 else if (r.freeMode.sticky) { 4085 let e 4086 for (let t = 0; t < d.length; t += 1) 4087 if (d[t] > -p) { 4088 e = t 4089 break 4090 } 4091 ;(p = Math.abs(d[e] - p) < Math.abs(d[e - 1] - p) || "next" === t.swipeDirection ? d[e]
4091: d[e - 1]), (p = -p) 4092 } 4093 if ( 4094 (f && 4095 i("transitionEnd", () => { 4096 t.loopFix() 4097 }), 4098 0 !== t.velocity) 4099 ) { 4100 if (((e = o ? Math.abs((-p - t.translate) / t.velocity) : Math.abs((p - t.translate) / t.velocity)), r.freeMode.sticky)) { 4101 const s = Math.abs((o ? -p : p) - t.translate), 4102 a = t.slidesSizesGrid[t.activeIndex] 4103 e = s < a ? r.speed : s < 2 * a ? 1.5 * r.speed : 2.5 * r.speed 4104 } 4105 } else if (r.freeMode.sticky) return void t.slideToClosest() 4106 r.freeMode.momentumBounce && m 4107 ? (t.updateProgress(u), 4108 t.setTransition(e), 4109 t.setTranslate(p), 4110 t.transitionStart(!0, t.swipeDirection), 4111 (t.animating = !0), 4112 E(n, () => { 4113 t && 4114 !t.destroyed && 4115 c.allowMomentumBounce && 4116 (a("momentumBounce"), 4117 t.setTransition(r.speed), 4118 setTimeout(() => { 4119 t.setTranslate(u), 4120 E(n, () => { 4121 t && !t.destroyed && t.transitionEnd() 4122 }) 4123 }, 0)) 4124 })) 4125 : t.velocity 4126 ? (a("_freeModeNoMomentumRelease"), 4127 t.updateProgress(p), 4128 t.setTransition(e), 4129 t.setTranslate(p), 4130 t.transitionStart(!0, t.swipeDirection), 4131 t.animating || 4132 ((t.animating = !0), 4133 E(n, () => { 4134 t && !t.destroyed && t.transitionEnd() 4135 }))) 4136 : t.updateProgress(p), 4137 t.updateActiveIndex(), 4138 t.updateSlidesClasses() 4139 } else { 4140 if (r.freeMode.sticky) return void t.slideToClosest() 4141 r.freeMode && a("_freeModeNoMomentumRelease") 4142 } 4143 ;(!r.freeMode.momentum || p >= r.longSwipesMs) && (t.updateProgress(), t.updateActiveIndex(), t.updateSlidesClasses()) 4144 } 4145 }, 4146 }, 4147 }) 4148 }, 4149 function (e) { 4150 let t, 4151 s, 4152 a, 4153 { swiper: i, extendParams: r } = e 4154 r({ grid: { rows: 1, fill: "column" } }) 4155 const n = () => { 4156 let e = i.params.spaceBetween 4157 return "string" == typeof e && e.indexOf("%") >= 0 ? (e = (parseFloat(e.replace("%", "")) / 100) * i.size) : "string" == typeof e && (e = parseFloat(e)), e 4158 } 4159 i.grid = { 4160 initSlides: (e) => { 4161 const { slidesPerView: r } = i.params, 4162 { rows: n, fill: l } = i.params.grid 4163 ;(a = Math.floor(e / n)), (t = Math.floor(e / n) === e / n ? e : Math.ceil(e / n) * n), "auto" !== r && "row" === l && (t = Math.max(t, r * n)), (s = t / n) 4164 }, 4165 updateSlide: (e, r, l, o) => { 4166 const { slidesPerGroup: d } = i.params, 4167 c = n(), 4168 { rows: p, fill: u } = i.params.grid 4169 let m, h, f 4170 if ("row" === u && d > 1) { 4171 const s = Math.floor(e / (d * p)), 4172 a = e - p * d * s, 4173 i = 0 === s ? d : Math.min(Math.ceil((l - s * p * d) / p), d) 4174 ;(f = Math.floor(a / i)), (h = a - f * i + s * d), (m = h + (f * t) / p), (r.style.order = m) 4175 } else "column" === u ? ((h = Math.floor(e / p)), (f = e - h * p), (h > a || (h === a && f === p - 1)) && ((f += 1), f >= p && ((f = 0), (h += 1)))) : ((f = Math.floor(e / s)), (h = e - f * s)) 4176 ;(r.row = f), (r.column = h), (r.style[o("margin-top")] = 0 !== f ? c && `${c}px` : "") 4177 }, 4178 updateWrapperSize: (e, s, a) => { 4179 const { centeredSlides: r, roundLengths: l } = i.params, 4180 o = n(), 4181 { rows: d } = i.params.grid 4182 if (((i.virtualSize = (e + o) * t), (i.virtualSize = Math.
4182ceil(i.virtualSize / d) - o), (i.wrapperEl.style[a("width")] = `${i.virtualSize + o}px`), r)) { 4183 const e = [] 4184 for (let t = 0; t < s.length; t += 1) { 4185 let a = s[t] 4186 l && (a = Math.floor(a)), s[t] < i.virtualSize + s[0] && e.push(a) 4187 } 4188 s.splice(0, s.length), s.push(...e) 4189 } 4190 }, 4191 } 4192 }, 4193 function (e) { 4194 let { swiper: t } = e 4195 Object.assign(t, { appendSlide: se.bind(t), prependSlide: ae.bind(t), addSlide: ie.bind(t), removeSlide: re.bind(t), removeAllSlides: ne.bind(t) }) 4196 }, 4197 function (e) { 4198 let { swiper: t, extendParams: s, on: a } = e 4199 s({ fadeEffect: { crossFade: !1 } }), 4200 le({ 4201 effect: "fade", 4202 swiper: t, 4203 on: a, 4204 setTranslate: () => { 4205 const { slides: e } = t 4206 t.params.fadeEffect 4207 for (let s = 0; s < e.length; s += 1) { 4208 const e = t.slides[s] 4209 let a = -e.swiperSlideOffset 4210 t.params.virtualTranslate || (a -= t.translate) 4211 let i = 0 4212 t.isHorizontal() || ((i = a), (a = 0)) 4213 const r = t.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(e.progress), 0) : 1 + Math.min(Math.max(e.progress, -1), 0), 4214 n = oe(0, e) 4215 ;(n.style.opacity = r), (n.style.transform = `translate3d(${a}px, ${i}px, 0px)`) 4216 } 4217 }, 4218 setTransition: (e) => { 4219 const s = t.slides.map((e) => h(e)) 4220 s.forEach((t) => { 4221 t.style.transitionDuration = `${e}ms` 4222 }), 4223 de({ swiper: t, duration: e, transformElements: s, allSlides: !0 }) 4224 }, 4225 overwriteParams: () => ({ slidesPerView: 1, slidesPerGroup: 1, watchSlidesProgress: !0, spaceBetween: 0, virtualTranslate: !t.params.cssMode }), 4226 }) 4227 }, 4228 function (e) { 4229 let { swiper: t, extendParams: s, on: a } = e 4230 s({ cubeEffect: { slideShadows: !0, shadow: !0, shadowOffset: 20, shadowScale: 0.94 } }) 4231 const i = (e, t, s) => { 4232 let a = s ? e.querySelector(".swiper-slide-shadow-left") : e.querySelector(".swiper-slide-shadow-top"), 4233 i = s ? e.querySelector(".swiper-slide-shadow-right") : e.querySelector(".swiper-slide-shadow-bottom") 4234 a || ((a = g("div", "swiper-slide-shadow-" + (s ? "left" : "top"))), e.append(a)), i || ((i = g("div", "swiper-slide-shadow-" + (s ? "right" : "bottom"))), e.append(i)), a && (a.style.opacity = Math.max(-t, 0)), i && (i.style.opacity = Math.max(t, 0)) 4235 } 4236 le({ 4237 effect: "cube", 4238 swiper: t, 4239 on: a, 4240 setTranslate: () => { 4241 const { el: e, wrapperEl: s, slides: a, width: r, height: n, rtlTranslate: l, size: o, browser: d } = t, 4242 c = t.params.cubeEffect, 4243 p = t.isHorizontal(), 4244 u = t.virtual && t.params.virtual.enabled 4245 let m, 4246 h = 0 4247 c.shadow && (p ? ((m = t.slidesEl.querySelector(".swiper-cube-shadow")), m || ((m = g("div", "swiper-cube-shadow")), t.slidesEl.append(m)), (m.style.height = `${r}px`)) : ((m = e.querySelector(".swiper-cube-shadow")), m || ((m = g("div", "swiper-cube-shadow")), e.append(m)))) 4248 for (let e = 0; e < a.length; e += 1) { 4249 const t = a[e] 4250 let s = e 4251 u && (s = parseInt(t.getAttribute("data-swiper-slide-index"), 10)) 4252 let r = 90 * s, 4253 n = Math.floor(r / 360) 4254 l && ((r = -r), (n = Math.floor(-r / 360))) 4255 const d = Math.max(Math.min(t.progress, 1), -1) 4256 let m = 0, 4257 f = 0, 4258 g = 0 4259 s % 4 == 0 ? ((m = 4 * -n * o), (g = 0)) : (s - 1) % 4 == 0 ? ((m = 0), (g = 4 * -n * o)) : (s - 2) % 4 == 0 ? ((m = o + 4 * n * o), (g = o)) : (s - 3) % 4 == 0 && ((m = -o), (g = 3 * o + 4 * o * n)), l && (m = -m), p || ((f = m), (m = 0)) 4260 const v = `rotateX(${p ? 0 : -r}deg) rotateY(${p ? r : 0}deg) translate3d(${m}px, ${f}px, ${g}px)` 4261 d <= 1 && d > -1 && ((h = 90 * s + 90 * d), l && (h = 90 * -s - 90 * d)), (t.style.transform = v), c.slideShadows && i(t, d, p) 4262 } 4263 if (((s.style.transformOrigin = `50% 50% -${o / 2}px`), (s.style["-webkit-transform-origin"] = `50% 50% -${o / 2}px`), c.shadow)) 4264 if (p) m.style.transform = `translate3d(0px, ${r / 2 + c.shadowOffset}px, ${-r / 2}px) rotateX(90deg) rotateZ(0deg) scale(${c.shadowScale})` 4265 else { 4266 const e = Math.abs(h) - 90 * Math.floor(Math.abs(h) / 90), 4267 t = 1.5 - (Math.sin((2 * e * Math.PI) / 360) / 2 + Math.cos((2 * e * Math.PI) / 360) / 2), 4268 s = c.shadowScale, 4269 a = c.shadowScale / t, 4270 i = c.shadowOffset 4271 m.style.transform = `scale3d(${s}, 1, ${a}) translate3d(0px, ${n / 2 + i}px, ${-n / 2 / a}px) rotateX(-90deg)` 4272 } 4273 const f = (d.isSafari || d.isWebView) && d.needPerspectiveFix ? -o / 2 : 0 4274 ;(s.style.transform = `translate3d(0px,0,${f}px) rotateX(${t.isHorizontal() ? 0 : h}deg) rotateY(${t.isHorizontal() ? -h : 0}deg)`), s.style.setProperty("--swiper-cube-translate-z", `${f}px`) 4275 }, 4276 setTransition: (e) => { 4277 const { el: s, slides: a } = t 4278 if (
4279 (a.forEach((t) => { 4280 ;(t.style.transitionDuration = `${e}ms`), 4281 t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t) => { 4282 t.style.transitionDuration = `${e}ms` 4283 }) 4284 }), 4285 t.params.cubeEffect.shadow && !t.isHorizontal()) 4286 ) { 4287 const t = s.querySelector(".swiper-cube-shadow") 4288 t && (t.style.transitionDuration = `${e}ms`) 4289 } 4290 }, 4291 recreateShadows: () => { 4292 const e = t.isHorizontal() 4293 t.slides.forEach((t) => { 4294 const s = Math.max(Math.min(t.progress, 1), -1) 4295 i(t, s, e) 4296 }) 4297 }, 4298 getEffectParams: () => t.params.cubeEffect, 4299 perspective: () => !0, 4300 overwriteParams: () => ({ slidesPerView: 1, slidesPerGroup: 1, watchSlidesProgress: !0, resistanceRatio: 0, spaceBetween: 0, centeredSlides: !1, virtualTranslate: !0 }), 4301 }) 4302 }, 4303 function (e) { 4304 let { swiper: t, extendParams: s, on: a } = e 4305 s({ flipEffect: { slideShadows: !0, limitRotation: !0 } }) 4306 const i = (e, s, a) => { 4307 let i = t.isHorizontal() ? e.querySelector(".swiper-slide-shadow-left") : e.querySelector(".swiper-slide-shadow-top"), 4308 r = t.isHorizontal() ? e.querySelector(".swiper-slide-shadow-right") : e.querySelector(".swiper-slide-shadow-bottom") 4309 i || (i = ce(0, e, t.isHorizontal() ? "left" : "top")), r || (r = ce(0, e, t.isHorizontal() ? "right" : "bottom")), i && (i.style.opacity = Math.max(-s, 0)), r && (r.style.opacity = Math.max(s, 0)) 4310 } 4311 le({ 4312 effect: "flip", 4313 swiper: t, 4314 on: a, 4315 setTranslate: () => { 4316 const { slides: e, rtlTranslate: s } = t, 4317 a = t.params.flipEffect 4318 for (let r = 0; r < e.length; r += 1) { 4319 const n = e[r] 4320 let l = n.progress 4321 t.params.flipEffect.limitRotation && (l = Math.max(Math.min(n.progress, 1), -1)) 4322 const o = n.swiperSlideOffset 4323 let d = -180 * l, 4324 c = 0, 4325 p = t.params.cssMode ? -o - t.translate : -o, 4326 u = 0 4327 t.isHorizontal() ? s && (d = -d) : ((u = p), (p = 0), (c = -d), (d = 0)), (n.style.zIndex = -Math.abs(Math.round(l)) + e.length), a.slideShadows && i(n, l) 4328 const m = `translate3d(${p}px, ${u}px, 0px) rotateX(${c}deg) rotateY(${d}deg)` 4329 oe(0, n).style.transform = m 4330 } 4331 }, 4332 setTransition: (e) => { 4333 const s = t.slides.map((e) => h(e)) 4334 s.forEach((t) => { 4335 ;(t.style.transitionDuration = `${e}ms`), 4336 t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t) => { 4337 t.style.transitionDuration = `${e}ms` 4338 }) 4339 }), 4340 de({ swiper: t, duration: e, transformElements: s }) 4341 }, 4342 recreateShadows: () => { 4343 t.params.flipEffect 4344 t.slides.forEach((e) => { 4345 let s = e.progress 4346 t.params.flipEffect.limitRotation && (s = Math.max(Math.min(e.progress, 1), -1)), i(e, s) 4347 }) 4348 }, 4349 getEffectParams: () => t.params.flipEffect, 4350 perspective: () => !0, 4351 overwriteParams: () => ({ slidesPerView: 1, slidesPerGroup: 1, watchSlidesProgress: !0, spaceBetween: 0, virtualTranslate: !t.params.cssMode }), 4352 }) 4353 }, 4354 function (e) { 4355 let { swiper: t, extendParams: s, on: a } = e 4356 s({ coverflowEffect: { rotate: 50, stretch: 0, depth: 100, scale: 1, modifier: 1, slideShadows: !0 } }), 4357 le({ 4358 effect: "coverflow", 4359 swiper: t, 4360 on: a, 4361 setTranslate: () => { 4362 const { width: e, height: s, slides: a, slidesSizesGrid: i } = t, 4363 r = t.params.coverflowEffect, 4364 n = t.isHorizontal(), 4365 l = t.translate, 4366 o = n ? e / 2 - l : s / 2 - l, 4367 d = n ? r.rotate : -r.rotate, 4368 c = r.depth 4369 for (let e = 0, t = a.length; e < t; e += 1) { 4370 const t = a[e], 4371 s = i[e], 4372 l = (o - t.swiperSlideOffset - s / 2) / s, 4373 p = "function" == typeof r.modifier ? r.modifier(l) : l * r.modifier 4374 let u = n ? d * p : 0, 4375 m = n ? 0 : d * p, 4376 h = -c * Math.abs(p), 4377 f = r.stretch 4378 "string" == typeof f && -1 !== f.indexOf("%") && (f = (parseFloat(r.stretch) / 100) * s) 4379 let g = n ? 0 : f * p, 4380 v = n ? f * p : 0, 4381 w = 1 - (1 - r.scale) * Math.abs(p) 4382 Math.abs(v) < 0.001 && (v = 0), Math.abs(g) < 0.001 && (g = 0), Math.abs(h) < 0.001 && (h = 0), Math.abs(u) < 0.001 && (u = 0), Math.abs(m) < 0.001 && (m = 0), Math.abs(w) < 0.001 && (w = 0) 4383 const b = `translate3d(${v}px,${g}px,${h}px) rotateX(${m}deg) rotateY(${u}deg) scale(${w})` 4384 if (((oe(0, t).style.transform = b), (t.style.zIndex = 1 - Math.abs(Math.round(p))), r.slideShadows)) { 4385 let e = n ? t.querySelector(".swiper-slide-shadow-left") : t.querySelector(".swiper-slide-shadow-top"), 4386 s = n ? t.querySelector(".swiper-slide-shadow-right") : t.querySelector(".swiper-slide-shadow-bottom") 4387 e || (e = ce(0, t, n ? "left" : "top")), s || (s = ce(0, t, n ? "right" : "bottom")), e && (e.style.opacity = p > 0 ? p : 0), s && (s.style.opacity = -p > 0 ? -p : 0) 4388 } 4389 } 4390 }, 4391 setTransition: (e) => { 4392 t.slides 4393 .map((e) => h(e)) 4394 .forEach((t) => { 4395 ;(t.style.transitionDuration = `${e}ms`), 4396 t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t) => { 4397 t.style.transitionDuration = `${e}ms` 4398 }) 4399 }) 4400 }, 4401 perspective: () => !0, 4402 overwriteParams: () => ({ watchSlidesProgress: !0 }), 4403 }) 4404 }, 4405 function (e) { 4406 let { swiper: t, extendParams: s, on: a } = e 4407 s({ creativeEffect: { limitProgress: 1, shadowPerProgress: !1, progressMultiplier: 1, perspective: !0, prev: { translate: [0, 0, 0], rotate: [0, 0, 0], opacity: 1, scale: 1 }, next: { translate: [0, 0, 0], rotate: [0, 0, 0], opacity: 1, scale: 1 } } }) 4408 const i = (e) => ("string" == typeof e ? e : `${e}px`) 4409 le({ 4410 effect: "creative", 4411 swiper: t, 4412 on: a, 4413 setTranslate: () => { 4414 const { slides: e, wrapperEl: s, slidesSizesGrid: a } = t, 4415 r = t.params.creativeEffect, 4416 { progressMultiplier: n } = r, 4417 l = t.params.centeredSlides 4418 if (l) { 4419 const e = a[0] / 2 - t.params.slidesOffsetBefore || 0 4420 s.style.transform = `translateX(calc(50% - ${e}px))` 4421 } 4422 for (let s = 0; s < e.length; s += 1) { 4423 const a = e[s], 4424 o = a.progress, 4425 d = Math.min(Math.max(a.progress, -r.limitProgress), r.limitProgress) 4426 let c = d 4427 l || (c = Math.min(Math.max(a.originalProgress, -r.limitProgress), r.limitProgress)) 4428 const p = a.swiperSlideOffset, 4429 u = [t.params.cssMode ? -p - t.translate : -p, 0, 0], 4430 m = [0, 0, 0] 4431 let h = !1 4432 t.isHorizontal() || ((u[1] = u[0]), (u[0] = 0)) 4433 let f = { translate: [0, 0, 0], rotate: [0, 0, 0], scale: 1, opacity: 1 } 4434 d < 0 ? ((f = r.next), (h = !0)) : d > 0 && ((f = r.prev), (h = !0)), 4435 u.forEach((e, t) => { 4436 u[t] = `calc(${e}px + (${i(f.translate[t])} * ${Math.abs(d * n)}))` 4437 }), 4438 m.forEach((e, t) => { 4439 m[t] = f.rotate[t] * Math.abs(d * n) 4440 }), 4441 (a.style.zIndex = -Math.abs(Math.round(o)) + e.length) 4442 const g = u.join(", "), 4443 v = `rotateX(${m[0]}deg) rotateY(${m[1]}deg) rotateZ(${m[2]}deg)`, 4444 w = c < 0 ? `scale(${1 + (1 - f.scale) * c * n})` : `scale(${1 - (1 - f.scale) * c * n})`, 4445 b = c < 0 ? 1 + (1 - f.opacity) * c * n : 1 - (1 - f.opacity) * c * n, 4446 y = `translate3d(${g}) ${v} ${w}` 4447 if ((h && f.shadow) || !h) { 4448 let e = a.querySelector(".swiper-slide-shadow") 4449 if ((!e && f.shadow && (e = ce(0, a)), e)) { 4450 const t = r.shadowPerProgress ? d * (1 / r.limitProgress) : d 4451 e.style.opacity = Math.min(Math.max(Math.abs(t), 0), 1) 4452 } 4453 } 4454 const E = oe(0, a) 4455 ;(E.style.transform = y), (E.style.opacity = b), f.origin && (E.style.transformOrigin = f.origin) 4456 } 4457 }, 4458 setTransition: (e) => { 4459 const s = t.slides.map((e) => h(e))
4460 s.forEach((t) => { 4461 ;(t.style.transitionDuration = `${e}ms`), 4462 t.querySelectorAll(".swiper-slide-shadow").forEach((t) => { 4463 t.style.transitionDuration = `${e}ms` 4464 }) 4465 }), 4466 de({ swiper: t, duration: e, transformElements: s, allSlides: !0 }) 4467 }, 4468 perspective: () => t.params.creativeEffect.perspective, 4469 overwriteParams: () => ({ watchSlidesProgress: !0, virtualTranslate: !t.params.cssMode }), 4470 }) 4471 }, 4472 function (e) { 4473 let { swiper: t, extendParams: s, on: a } = e 4474 s({ cardsEffect: { slideShadows: !0, rotate: !0, perSlideRotate: 2, perSlideOffset: 8 } }), 4475 le({ 4476 effect: "cards", 4477 swiper: t, 4478 on: a, 4479 setTranslate: () => { 4480 const { slides: e, activeIndex: s, rtlTranslate: a } = t, 4481 i = t.params.cardsEffect, 4482 { startTranslate: r, isTouched: n } = t.touchEventsData, 4483 l = a ? -t.translate : t.translate 4484 for (let o = 0; o < e.length; o += 1) { 4485 const d = e[o], 4486 c = d.progress, 4487 p = Math.min(Math.max(c, -4), 4) 4488 let u = d.swiperSlideOffset 4489 t.params.centeredSlides && !t.params.cssMode && (t.wrapperEl.style.transform = `translateX(${t.minTranslate()}px)`), t.params.centeredSlides && t.params.cssMode && (u -= e[0].swiperSlideOffset) 4490 let m = t.params.cssMode ? -u - t.translate : -u, 4491 h = 0 4492 const f = -100 * Math.abs(p) 4493 let g = 1, 4494 v = -i.perSlideRotate * p, 4495 w = i.perSlideOffset - 0.75 * Math.abs(p) 4496 const b = t.virtual && t.params.virtual.enabled ? t.virtual.from + o : o, 4497 y = (b === s || b === s - 1) && p > 0 && p < 1 && (n || t.params.cssMode) && l < r, 4498 E = (b === s || b === s + 1) && p < 0 && p > -1 && (n || t.params.cssMode) && l > r 4499 if (y || E) { 4500 const e = (1 - Math.abs((Math.abs(p) - 0.5) / 0.5)) ** 0.5 4501 ;(v += -28 * p * e), (g += -0.5 * e), (w += 96 * e), (h = -25 * e * Math.abs(p) + "%") 4502 } 4503 if (((m = p < 0 ? `calc(${m}px ${a ? "-" : "+"} (${w * Math.abs(p)}%))` : p > 0 ? `calc(${m}px ${a ? "-" : "+"} (-${w * Math.abs(p)}%))` : `${m}px`), !t.isHorizontal())) { 4504 const e = h 4505 ;(h = m), (m = e) 4506 } 4507 const x = p < 0 ? "" + (1 + (1 - g) * p) : "" + (1 - (1 - g) * p), 4508 S = `\n translate3d(${m}, ${h}, ${f}px)\n rotateZ(${i.rotate ? (a ? -v : v) : 0}deg)\n scale(${x})\n ` 4509 if (i.slideShadows) { 4510 let e = d.querySelector(".swiper-slide-shadow") 4511 e || (e = ce(0, d)), e && (e.style.opacity = Math.min(Math.max((Math.abs(p) - 0.5) / 0.5, 0), 1)) 4512 } 4513 d.style.zIndex = -Math.abs(Math.round(c)) + e.length 4514 oe(0, d).style.transform = S 4515 } 4516 }, 4517 setTransition: (e) => { 4518 const s = t.slides.map((e) => h(e)) 4519 s.forEach((t) => { 4520 ;(t.style.transitionDuration = `${e}ms`), 4521 t.querySelectorAll(".swiper-slide-shadow").forEach((t) => { 4522 t.style.transitionDuration = `${e}ms` 4523 }) 4524 }), 4525 de({ swiper: t, duration: e, transformElements: s }) 4526 }, 4527 perspective: () => !0, 4528 overwriteParams: () => ({ watchSlidesProgress: !0, virtualTranslate: !t.params.cssMode }), 4529 }) 4530 }, 4531 ] 4532 return J.use(pe), J 4533})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.