vendor: 22,125 bytes, lines 1-457
1/** 2 * Swiper 5.4.5 3 * Most modern mobile touch slider and framework with hardware accelerated transitions 4 * http://swiperjs.com 5 * 6 * Copyright 2014-2020 Vladimir Kharlampidi 7 * 8 * Released under the MIT License 9 * 10 * Released on: June 16, 2020 11 */ 12 13!function (e, t) { 14 "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = e || self).Swiper = t() 15}(this, (function () { 16 "use strict"; 17 18 function e(e) { 19 return null !== e && "object" == typeof e && "constructor" in e && e.constructor === Object 20 } 21 22 function t(i, s) { 23 void 0 === i && (i = {}), void 0 === s && (s = {}), Object.keys(s).forEach((function (a) { 24 void 0 === i[a] ? i[a] = s[a] : e(s[a]) && e(i[a]) && Object.keys(s[a]).length > 0 && t(i[a], s[a]) 25 })) 26 } 27 28 var i = "undefined" != typeof document ? document : {}, s = { 29 body: {}, addEventListener: function () { 30 }, removeEventListener: function () { 31 }, activeElement: { 32 blur: function () { 33 }, nodeName: "" 34 }, querySelector: function () { 35 return null 36 }, querySelectorAll: function () { 37 return [] 38 }, getElementById: function () { 39 return null 40 }, createEvent: function () { 41 return { 42 initEvent: function () { 43 } 44 } 45 }, createElement: function () { 46 return { 47 children: [], childNodes: [], style: {}, setAttribute: function () { 48 }, getElementsByTagName: function () { 49 return [] 50 } 51 } 52 }, createElementNS: function () { 53 return {} 54 }, importNode: function () { 55 return null 56 }, location: {hash: "", host: "", hostname: "", href: "", origin: "", pathname: "", protocol: "", search: ""} 57 }; 58 t(i, s); 59 var a = "undefined" != typeof window ? window : {}; 60 t(a, { 61 document: s, 62 navigator: {userAgent: ""}, 63 location: {hash: "", host: "", hostname: "", href: "", origin: "", pathname: "", protocol: "", search: ""}, 64 history: { 65 replaceState: function () { 66 }, pushState: function () { 67 }, go: function () { 68 }, back: function () { 69 } 70 }, 71 CustomEvent: function () { 72 return this 73 }, 74 addEventListener: function () { 75 }, 76 removeEventListener: function () { 77 }, 78 getComputedStyle: function () { 79 return { 80 getPropertyValue: function () { 81 return "" 82 } 83 } 84 }, 85 Image: function () { 86 }, 87 Date: function () { 88 }, 89 screen: {}, 90 setTimeout: function () { 91 }, 92 clearTimeout: function () { 93 }, 94 matchMedia: function () { 95 return {} 96 } 97 }); 98 var r = function (e) { 99 for (var t = 0; t < e.length; t += 1) this[t] = e[t]; 100 return this.length = e.length, this 101 }; 102 103 function n(e, t) { 104 var s = [], n = 0; 105 if (e && !t && e instanceof r) return e; 106 if (e) if ("string" == typeof e) { 107 var o, l, d = e.trim(); 108 if (d.indexOf("<") >= 0 && d.indexOf(">") >= 0) { 109 var h = "div"; 110 for (0 === d.indexOf("<li") && (h = "ul"), 0 === d.indexOf("<tr") && (h = "tbody"), 0 !== d.indexOf("<td") && 0 !== d.indexOf("<th") || (h = "tr"), 0 === d.indexOf("<tbody") && (h = "table"), 0 === d.indexOf("<option") && (h = "select"), (l = i.createElement(h)).innerHTML = d, n = 0; n < l.childNodes.length; n += 1) s.push(l.childNodes[n]) 111 } else for (o = t || "#" !== e[0] || e.match(/[ .<>:~]/) ? (t || i).querySelectorAll(e.trim()) : [i.getElementById(e.trim().split("#")[1])], n = 0; n < o.length; n += 1) o[n] && s.push(o[n]) 112 } else if (e.nodeType || e === a || e === i) s.push(e); else if (e.length > 0 && e[0].nodeType) for (n = 0; n < e.length; n += 1) s.push(e[n]); 113 return new r(s) 114 } 115 116 function o(e) { 117 for (var t = [], i = 0; i < e.length; i += 1) -1 === t.indexOf(e[i]) && t.push(e[i]); 118 return t 119 } 120 121 n.fn = r.prototype, n.Class = r, n.Dom7 = r; 122 var l = { 123 addClass: function (e) { 124 if (void 0 === e) return this; 125 for (var t = e.split(" "), i = 0; i < t.length; i += 1) for (var s = 0; s < this.length; s += 1) void 0 !== this[s] && void 0 !== this[s].classList && this[s].classList.add(t[i]); 126 return this 127 }, removeClass: function (e) { 128 for (var t = e.split(" "), i = 0; i < t.length; i += 1) for (var s = 0; s < this.length; s += 1) void 0 !== this[s] && void 0 !== this[s].classList && this[s].classList.remove(t[i]); 129 return this 130 }, hasClass: function (e) { 131 return !!this[0] && this[0].classList.contains(e) 132 }, toggleClass: function (e) { 133 for (var t = e.split(" "), i = 0; i < t.length; i += 1) for (var s = 0; s < this.length; s += 1) void 0 !== this[s] && void 0 !== this[s].classList && this[s].classList.toggle(t[i]); 134 return this 135 }, attr: function (e, t) { 136 var i = arguments; 137 if (1 === arguments.length && "string" == typeof e) return this[0] ? this[0].getAttribute(e) : void 0; 138 for (var s = 0; s < this.length; s += 1) if (2 === i.length) this[s].setAttribute(e, t); else for (var a in e) this[s][a] = e[a], this[s].setAttribute(a, e[a]); 139 return this 140 }, removeAttr: function (e) { 141 for (var t = 0; t < this.length; t += 1) this[t].removeAttribute(e); 142 return this 143 }, data: function (e, t) { 144 var i; 145 if (void 0 !== t) { 146 for (var s = 0; s < this.length; s += 1) (i = this[s]).dom7ElementDataStorage || (i.dom7ElementDataStorage = {}), i.dom7ElementDataStorage[e] = t; 147 return this 148 } 149 if (i = this[0]) { 150 if (i.dom7ElementDataStorage && e in i.dom7ElementDataStorage) return i.dom7ElementDataStorage[e]; 151 var a = i.getAttribute("data-" + e); 152 return a || void 0 153 } 154 }, transform: function (e) { 155 for (var t = 0; t < this.length; t += 1) { 156 var i = this[t].style; 157 i.webkitTransform = e, i.transform = e 158 } 159 return this 160 }, transition: function (e) { 161 "string" != typeof e && (e += "ms"); 162 for (var t = 0; t < this.length; t += 1) { 163 var i = this[t].style; 164 i.webkitTransitionDuration = e, i.transitionDuration = e 165 } 166 return this 167 }, on: function () { 168 for (var e, t = [], i = arguments.length; i--;) t[i] = arguments[i]; 169 var s = t[0], a = t[1], r = t[2], o = t[3]; 170 171 function l(e) { 172 var t = e.target; 173 if (t) { 174 var i = e.target.dom7EventData || []; 175 if (i.indexOf(e) < 0 && i.unshift(e), n(t).is(a)) r.apply(t, i); else for (var s = n(t).parents(), o = 0; o < s.length; o += 1) n(s[o]).is(a) && r.apply(s[o], i) 176 } 177 } 178 179 function d(e) { 180 var t = e && e.target && e.target.dom7EventData || []; 181 t.indexOf(e) < 0 && t.unshift(e), r.apply(this, t) 182 } 183 184 "function" == typeof t[1] && (s = (e = t)[0], r = e[1], o = e[2], a = void 0), o || (o = !1); 185 for (var h, p = s.split(" "), c = 0; c < this.length; c += 1) { 186 var u = this[c]; 187 if (a) for (h = 0; h < p.length; h += 1) { 188 var v = p[h]; 189 u.dom7LiveListeners || (u.dom7LiveListeners = {}), u.dom7LiveListeners[v] || (u.dom7LiveListeners[v] = []), u.dom7LiveListeners[v].push({ 190 listener: r, 191 proxyListener: l 192 }), u.addEventListener(v, l, o) 193 } else for (h = 0; h < p.length; h += 1) { 194 var f = p[h]; 195 u.dom7Listeners || (u.dom7Listeners = {}), u.dom7Listeners[f] || (u.dom7Listeners[f] = []), u.dom7Listeners[f].push({ 196 listener: r, 197 proxyListener: d 198 }), u.addEventListener(f, d, o) 199 } 200 } 201 return this 202 }, off: function () { 203 for (var e, t = [], i = arguments.length; i--;) t[i] = arguments[i]; 204 var s = t[0], a = t[1], r = t[2], n = t[3]; 205 "function" == typeof t[1] && (s = (e = t)[0], r = e[1], n = e[2], a = void 0), n || (n = !1); 206 for (var o = s.split(" "), l = 0; l < o.length; l += 1) for (var d = o[l], h = 0; h < this.length; h += 1) { 207 var p = this[h], c = void 0; 208 if (!a && p.dom7Listeners ? c = p.dom7Listeners[d] : a && p.dom7LiveListeners && (c = p.dom7LiveListeners[d]), c && c.length) for (var u = c.length - 1; u >= 0; u -= 1) { 209 var v = c[u]; 210 r && v.listener === r || r && v.listener && v.listener.dom7proxy && v.listener.dom7proxy === r ? (p.removeEventListener(d, v.proxyListener, n), c.splice(u, 1)) : r || (p.removeEventListener(d, v.proxyListener, n), c.splice(u, 1)) 211 } 212 } 213 return this 214 }, trigger: function () { 215 for (var e = [], t = arguments.length; t--;) e[t] = arguments[t]; 216 for (var s = e[0].split(" "), r = e[1], n = 0; n < s.length; n += 1) for (var o = s[n], l = 0; l < this.length; l += 1) { 217 var d = this[l], h = void 0; 218 try { 219 h = new a.CustomEvent(o, {detail: r, bubbles: !0, cancelable: !0}) 220 } catch (e) { 221 (h = i.createEvent("Event")).initEvent(o, !0, !0), h.detail = r 222 } 223 d.dom7EventData = e.filter((function (e, t) { 224 return t > 0 225 })), d.dispatchEvent(h), d.dom7EventData = [], delete d.dom7EventData 226 } 227 return this 228 }, transitionEnd: function (e) { 229 var t, i = ["webkitTransitionEnd", "transitionend"], s = this; 230 231 function a(r) { 232 if (r.target === this) for (e.call(this, r), t = 0; t < i.length; t += 1) s.off(i[t], a) 233 } 234 235 if (e) for (t = 0; t < i.length; t += 1) s.on(i[t], a); 236 return this 237 }, outerWidth: function (e) { 238 if (this.length > 0) { 239 if (e) { 240 var t = this.styles(); 241 return this[0].offsetWidth + parseFloat(t.getPropertyValue("margin-right")) + parseFloat(t.getPropertyValue("margin-left")) 242 } 243 return this[0].offsetWidth 244 } 245 return null 246 }, outerHeight: function (e) { 247 if (this.length > 0) { 248 if (e) { 249 var t = this.styles(); 250 return this[0].offsetHeight + parseFloat(t.getPropertyValue("margin-top")) + parseFloat(t.getPropertyValue("margin-bottom")) 251 } 252 return this[0].offsetHeight 253 } 254 return null 255 }, offset: function () { 256 if (this.length > 0) { 257 var e = this[0], t = e.getBoundingClientRect(), s = i.body, r = e.clientTop || s.clientTop || 0, 258 n = e.clientLeft || s.clientLeft || 0, o = e === a ? a.scrollY : e.scrollTop, 259 l = e === a ? a.scrollX : e.scrollLeft; 260 return {top: t.top + o - r, left: t.left + l - n} 261 } 262 return null 263 }, css: function (e, t) { 264 var i; 265 if (1 === arguments.length) { 266 if ("string" != typeof e) { 267 for (i = 0; i < this.length; i += 1) for (var s in e) this[i].style[s] = e[s]; 268 return this 269 } 270 if (this[0]) return a.getComputedStyle(this[0], null).getPropertyValue(e) 271 } 272 if (2 === arguments.length && "string" == typeof e) { 273 for (i = 0; i < this.length; i += 1) this[i].style[e] = t; 274 return this 275 } 276 return this 277 }, each: function (e) { 278 if (!e) return this; 279 for (var t = 0; t < this.length; t += 1) if (!1 === e.call(this[t], t, this[t])) return this; 280 return this 281 }, html: function (e) { 282 if (void 0 === e) return this[0] ? this[0].innerHTML : void 0; 283 for (var t = 0; t < this.length; t += 1) this[t].innerHTML = e; 284 return this 285 }, text: function (e) { 286 if (void 0 === e) return this[0] ? this[0].textContent.trim() : null; 287 for (var t = 0; t < this.length; t += 1) this[t].textContent = e; 288 return this 289 }, is: function (e) { 290 var t, s, o = this[0]; 291 if (!o || void 0 === e) return !1; 292 if ("string" == typeof e) { 293 if (o.matches) return o.matches(e); 294 if (o.webkitMatchesSelector) return o.webkitMatchesSelector(e); 295 if (o.msMatchesSelector) return o.msMatchesSelector(e); 296 for (t = n(e), s = 0; s < t.length; s += 1) if (t[s] === o) return !0; 297 return !1 298 } 299 if (e === i) return o === i; 300 if (e === a) return o === a; 301 if (e.nodeType || e instanceof r) { 302 for (t = e.nodeType ? [e] : e, s = 0; s < t.length; s += 1) if (t[s] === o) return !0; 303 return !1 304 } 305 return !1 306 }, index: function () { 307 var e, t = this[0]; 308 if (t) { 309 for (e = 0; null !== (t = t.previousSibling);) 1 === t.nodeType && (e += 1); 310 return e 311 } 312 }, eq: function (e) { 313 if (void 0 === e) return this; 314 var t, i = this.length; 315 return new r(e > i - 1 ? [] : e < 0 ? (t = i + e) < 0 ? [] : [this[t]] : [this[e]]) 316 }, append: function () { 317 for (var e, t = [], s = arguments.length; s--;) t[s] = arguments[s]; 318 for (var a = 0; a < t.length; a += 1) { 319 e = t[a]; 320 for (var n = 0; n < this.length; n += 1) if ("string" == typeof e) { 321 var o = i.createElement("div"); 322 for (o.innerHTML = e; o.firstChild;) this[n].appendChild(o.firstChild) 323 } else if (e instanceof r) for (var l = 0; l < e.length; l += 1) this[n].appendChild(e[l]); else this[n].appendChild(e) 324 } 325 return this 326 }, prepend: function (e) { 327 var t, s; 328 for (t = 0; t < this.length; t += 1) if ("string" == typeof e) { 329 var a = i.createElement("div"); 330 for (a.innerHTML = e, s = a.childNodes.length - 1; s >= 0; s -= 1) this[t].insertBefore(a.childNodes[s], this[t].childNodes[0]) 331 } else if (e instanceof r) for (s = 0; s < e.length; s += 1) this[t].insertBefore(e[s], this[t].childNodes[0]); else this[t].insertBefore(e, this[t].childNodes[0]); 332 return this 333 }, next: function (e) { 334 return this.length > 0 ? e ? this[0].nextElementSibling && n(this[0].nextElementSibling).is(e) ? new r([this[0].nextElementSibling]) : new r([]) : this[0].nextElementSibling ? new r([this[0].nextElementSibling]) : new r([]) : new r([]) 335 }, nextAll: function (e) { 336 var t = [], i = this[0]; 337 if (!i) return new r([]); 338 for (; i.nextElementSibling;) { 339 var s = i.nextElementSibling; 340 e ? n(s).is(e) && t.push(s) : t.push(s), i = s 341 } 342 return new r(t) 343 }, prev: function (e) { 344 if (this.length > 0) { 345 var t = this[0]; 346 return e ? t.previousElementSibling && n(t.previousElementSibling).is(e) ? new r([t.previousElementSibling]) : new r([]) : t.previousElementSibling ? new r([t.previousElementSibling]) : new r([]) 347 } 348 return new r([]) 349 }, prevAll: function (e) { 350 var t = [], i = this[0]; 351 if (!i) return new r([]); 352 for (; i.previousElementSibling;) { 353 var s = i.previousElementSibling; 354 e ? n(s).is(e) && t.push(s) : t.push(s), i = s 355 } 356 return new r(t) 357 }, parent: function (e) { 358 for (var t = [], i = 0; i < this.length; i += 1) null !== this[i].parentNode && (e ? n(this[i].parentNode).is(e) && t.push(this[i].parentNode) : t.push(this[i].parentNode)); 359 return n(o(t)) 360 }, parents: function (e) { 361 for (var t = [], i = 0; i < this.length; i += 1) for (var s = this[i].parentNode; s;) e ? n(s).is(e) && t.push(s) : t.push(s), s = s.parentNode; 362 return n(o(t)) 363 }, closest: function (e) { 364 var t = this; 365 return void 0 === e ? new r([]) : (t.is(e) || (t = t.parents(e).eq(0)), t) 366 }, find: function (e) { 367 for (var t = [], i = 0; i < this.length; i += 1) for (var s = this[i].querySelectorAll(e), a = 0; a < s.length; a += 1) t.push(s[a]); 368 return new r(t) 369 }, children: function (e) { 370 for (var t = [], i = 0; i < this.length; i += 1) for (var s = this[i].childNodes, a = 0; a < s.length; a += 1) e ? 1 === s[a].nodeType && n(s[a]).is(e) && t.push(s[a]) : 1 === s[a].nodeType && t.push(s[a]); 371 return new r(o(t)) 372 }, filter: function (e) { 373 for (var t = [], i = 0; i < this.length; i += 1) e.call(this[i], i, this[i]) && t.push(this[i]); 374 return new r(t) 375 }, remove: function () { 376 for (var e = 0; e < this.length; e += 1) this[e].parentNode && this[e].parentNode.removeChild(this[e]); 377 return this 378 }, add: function () { 379 for (var e = [], t = arguments.length; t--;) e[t] = arguments[t]; 380 var i, s, a = this; 381 for (i = 0; i < e.length; i += 1) { 382 var r = n(e[i]); 383 for (s = 0; s < r.length; s += 1) a[a.length] = r[s], a.length += 1 384 } 385 return a 386 }, styles: function () { 387 return this[0] ? a.getComputedStyle(this[0], null) : {} 388 } 389 }; 390 Object.keys(l).forEach((function (e) { 391 n.fn[e] = n.fn[e] || l[e] 392 })); 393 var d = { 394 deleteProps: function (e) { 395 var t = e; 396 Object.keys(t).forEach((function (e) { 397 try { 398 t[e] = null 399 } catch (e) { 400 } 401 try { 402 delete t[e] 403 } catch (e) { 404 } 405 })) 406 }, nextTick: function (e, t) { 407 return void 0 === t && (t = 0), setTimeout(e, t) 408 }, now: function () { 409 return Date.now() 410 }, getTranslate: function (e, t) { 411 var i, s, r; 412 void 0 === t && (t = "x"); 413 var n = a.getComputedStyle(e, null); 414 return a.WebKitCSSMatrix ? ((s = n.transform || n.webkitTransform).split(",").length > 6 && (s = s.split(", ").map((function (e) { 415 return e.replace(",", ".") 416 })).join(", ")), r = new a.WebKitCSSMatrix("none" === s ? "" : s)) : i = (r = n.MozTransform || n.OTransform || n.MsTransform || n.msTransform || n.transform || n.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,")).toString().split(","), "x" === t && (s = a.WebKitCSSMatrix ? r.m41 : 16 === i.length ? parseFloat(i[12]) : parseFloat(i[4])), "y" === t && (s = a.WebKitCSSMatrix ? r.m42 : 16 === i.length ? parseFloat(i[13]) : parseFloat(i[5])), s || 0 417 }, parseUrlQuery: function (e) { 418 var t, i, s, r, n = {}, o = e || a.location.href; 419 if ("string" == typeof o && o.length) for (r = (i = (o = o.indexOf("?") > -1 ? o.replace(/\S*\?/, "") : "").split("&").filter((function (e) { 420 return "" !== e 421 }))).length, t = 0; t < r; t += 1) s = i[t].replace(/#\S+/g, "").split("="), n[decodeURIComponent(s[0])] = void 0 === s[1] ? void 0 : decodeURIComponent(s[1]) || ""; 422 return n 423 }, isObject: function (e) { 424 return "object" == typeof e && null !== e && e.constructor && e.constructor === Object 425 }, extend: function () { 426 for (var e = [], t = arguments.length; t--;) e[t] = arguments[t]; 427 for (var i = Object(e[0]), s = 1; s < e.length; s += 1) { 428 var a = e[s]; 429 if (null != a) for (var r = Object.keys(Object(a)), n = 0, o = r.length; n < o; n += 1) { 430 var l = r[n], h = Object.getOwnPropertyDescriptor(a, l); 431 void 0 !== h && h.enumerable && (d.isObject(i[l]) && d.isObject(a[l]) ? d.extend(i[l], a[l]) : !d.isObject(i[l]) && d.isObject(a[l]) ? (i[l] = {}, d.extend(i[l], a[l])) : i[l] = a[l]) 432 } 433 } 434 return i 435 } 436 }, h = { 437 touch: !!("ontouchstart" in a || a.DocumentTouch && i instanceof a.DocumentTouch), 438 pointerEvents: !!a.PointerEvent && "maxTouchPoints" in a.navigator && a.navigator.maxTouchPoints >= 0, 439 observer: "MutationObserver" in a || "WebkitMutationObserver" in a, 440 passiveListener: function () { 441 var e = !1; 442 try { 443 var t = Object.defineProperty({}, "passive", { 444 get: function () { 445 e = !0 446 } 447 }); 448 a.addEventListener("testPassiveListener", null, t) 449 } catch (e) { 450 } 451 return e 452 }(), 453 gestures: "ongesturestart" in a 454 }, p = function (e) { 455 void 0 === e && (e = {}); 456 var t = this; 457 t.params = e, t.eventsListeners = {}
457, t.params && t.params.on && Object.keys(t.params.on).forEach((function (e) { 458 t.on(e, t.params.on[e]) 459 })) 460 }, c = {components: {configurable: !0}}; 461 p.prototype.on = function (e, t, i) { 462 var s = this; 463 if ("function" != typeof t) return s; 464 var a = i ? "unshift" : "push"; 465 return e.split(" ").forEach((function (e) { 466 s.eventsListeners[e] || (s.eventsListeners[e] = []), s.eventsListeners[e][a](t) 467 })), s 468 }, p.prototype.once = function (e, t, i) { 469 var s = this; 470 if ("function" != typeof t) return s; 471 472 function a() { 473 for (var i = [], r = arguments.length; r--;) i[r] = arguments[r]; 474 s.off(e, a), a.f7proxy && delete a.f7proxy, t.apply(s, i) 475 } 476 477 return a.f7proxy = t, s.on(e, a, i) 478 }, p.prototype.off = function (e, t) { 479 var i = this; 480 return i.eventsListeners ? (e.split(" ").forEach((function (e) { 481 void 0 === t ? i.eventsListeners[e] = [] : i.eventsListeners[e] && i.eventsListeners[e].length && i.eventsListeners[e].forEach((function (s, a) { 482 (s === t || s.f7proxy && s.f7proxy === t) && i.eventsListeners[e].splice(a, 1) 483 })) 484 })), i) : i 485 }, p.prototype.emit = function () { 486 for (var e = [], t = arguments.length; t--;) e[t] = arguments[t]; 487 var i, s, a, r = this; 488 if (!r.eventsListeners) return r; 489 "string" == typeof e[0] || Array.isArray(e[0]) ? (i = e[0], s = e.slice(1, e.length), a = r) : (i = e[0].events, s = e[0].data, a = e[0].context || r); 490 var n = Array.isArray(i) ? i : i.split(" "); 491 return n.forEach((function (e) { 492 if (r.eventsListeners && r.eventsListeners[e]) { 493 var t = []; 494 r.eventsListeners[e].forEach((function (e) { 495 t.push(e) 496 })), t.forEach((function (e) { 497 e.apply(a, s) 498 })) 499 } 500 })), r 501 }, p.prototype.useModulesParams = function (e) { 502 var t = this; 503 t.modules && Object.keys(t.modules).forEach((function (i) { 504 var s = t.modules[i]; 505 s.params && d.extend(e, s.params) 506 })) 507 }, p.prototype.useModules = function (e) { 508 void 0 === e && (e = {}); 509 var t = this; 510 t.modules && Object.keys(t.modules).forEach((function (i) { 511 var s = t.modules[i], a = e[i] || {}; 512 s.instance && Object.keys(s.instance).forEach((function (e) { 513 var i = s.instance[e]; 514 t[e] = "function" == typeof i ? i.bind(t) : i 515 })), s.on && t.on && Object.keys(s.on).forEach((function (e) { 516 t.on(e, s.on[e]) 517 })), s.create && s.create.bind(t)(a) 518 })) 519 }, c.components.set = function (e) { 520 this.use && this.use(e) 521 }, p.installModule = function (e) { 522 for (var t = [], i = arguments.length - 1; i-- > 0;) t[i] = arguments[i + 1]; 523 var s = this; 524 s.prototype.modules || (s.prototype.modules = {}); 525 var a = e.name || Object.keys(s.prototype.modules).length + "_" + d.now(); 526 return s.prototype.modules[a] = e, e.proto && Object.keys(e.proto).forEach((function (t) { 527 s.prototype[t] = e.proto[t] 528 })), e.static && Object.keys(e.static).forEach((function (t) { 529 s[t] = e.static[t] 530 })), e.install && e.install.apply(s, t), s 531 }, p.use = function (e) { 532 for (var t = [], i = arguments.length - 1; i-- > 0;) t[i] = arguments[i + 1]; 533 var s = this; 534 return Array.isArray(e) ? (e.forEach((function (e) { 535 return s.installModule(e) 536 })), s) : s.installModule.apply(s, [e].concat(t)) 537 }, Object.defineProperties(p, c); 538 var u = { 539 updateSize: function () { 540 var e, t, i = this.$el; 541 e = void 0 !== this.params.width ? this.params.width : i[0].clientWidth, t = void 0 !== this.params.height ? this.params.height : i[0].clientHeight, 0 === e && this.isHorizontal() || 0 === t && this.isVertical() || (e = e - parseInt(i.css("padding-left"), 10) - parseInt(i.css("padding-right"), 10), t = t - parseInt(i.css("padding-top"), 10) - parseInt(i.css("padding-bottom"), 10), d.extend(this, { 542 width: e, 543 height: t, 544 size: this.isHorizontal() ? e : t 545 })) 546 }, updateSlides: function () { 547 var e = this.params, t = this.$wrapperEl, i = this.size, s = this.rtlTranslate, r = this.wrongRTL, 548 n = this.virtual && e.virtual.enabled, o = n ? this.virtual.slides.length : this.slides.length, 549 l = t.children("." + this.params.slideClass), h = n ? this.virtual.slides.length : l.length, p = [], 550 c = [], u = []; 551 552 function v(t) { 553 return !e.cssMode || t !== l.length - 1 554 } 555 556 var f = e.slidesOffsetBefore; 557 "function" == typeof f && (f = e.slidesOffsetBefore.call(this)); 558 var m = e.slidesOffsetAfter; 559 "function" == typeof m && (m = e.slidesOffsetAfter.call(this)); 560 var g = this.snapGrid.length, b = this.snapGrid.length, w = e.spaceBetween, y = -f, x = 0, E = 0; 561 if (void 0 !== i) { 562 var T, S; 563 "string" == typeof w && w.indexOf("%") >= 0 && (w = parseFloat(w.replace("%", "")) / 100 * i), this.virtualSize = -w, s ? l.css({ 564 marginLeft: "", 565 marginTop: "" 566 }) : l.css({ 567 marginRight: "", 568 marginBottom: "" 569 }), e.slidesPerColumn > 1 && (T = Math.floor(h / e.slidesPerColumn) === h / this.params.slidesPerColumn ? h : Math.ceil(h / e.slidesPerColumn) * e.slidesPerColumn, "auto" !== e.slidesPerView && "row" === e.slidesPerColumnFill && (T = Math.max(T, e.slidesPerView * e.slidesPerColumn))); 570 for (var C, M = e.slidesPerColumn, P = T / M, z = Math.floor(h / e.slidesPerColumn), k = 0; k < h; k += 1) { 571 S = 0; 572 var $ = l.eq(k); 573 if (e.slidesPerColumn > 1) { 574 var L = void 0, I = void 0, D = void 0; 575 if ("row" === e.slidesPerColumnFill && e.slidesPerGroup > 1) { 576 var O = Math.floor(k / (e.slidesPerGroup * e.slidesPerColumn)), 577 A = k - e.slidesPerColumn * e.slidesPerGroup * O, 578 G = 0 === O ? e.slidesPerGroup : Math.min(Math.ceil((h - O * M * e.slidesPerGroup) / M), e.slidesPerGroup); 579 L = (I = A - (D = Math.floor(A / G)) * G + O * e.slidesPerGroup) + D * T / M, $.css({ 580 "-webkit-box-ordinal-group": L, 581 "-moz-box-ordinal-group": L, 582 "-ms-flex-order": L, 583 "-webkit-order": L, 584 order: L 585 }) 586 } else "column" === e.slidesPerColumnFill ? (D = k - (I = Math.floor(k / M)) * M, (I > z || I === z && D === M - 1) && (D += 1) >
586= M && (D = 0, I += 1)) : I = k - (D = Math.floor(k / P)) * P; 587 $.css("margin-" + (this.isHorizontal() ? "top" : "left"), 0 !== D && e.spaceBetween && e.spaceBetween + "px") 588 } 589 if ("none" !== $.css("display")) { 590 if ("auto" === e.slidesPerView) { 591 var H = a.getComputedStyle($[0], null), B = $[0].style.transform, 592 N = $[0].style.webkitTransform; 593 if (B && ($[0].style.transform = "none"), N && ($[0].style.webkitTransform = "none"), e.roundLengths) S = this.isHorizontal() ? $.outerWidth(!0) : $.outerHeight(!0); else if (this.isHorizontal()) { 594 var X = parseFloat(H.getPropertyValue("width")), 595 V = parseFloat(H.getPropertyValue("padding-left")), 596 Y = parseFloat(H.getPropertyValue("padding-right")), 597 F = parseFloat(H.getPropertyValue("margin-left")), 598 W = parseFloat(H.getPropertyValue("margin-right")), 599 R = H.getPropertyValue("box-sizing"); 600 S = R && "border-box" === R ? X + F + W : X + V + Y + F + W 601 } else { 602 var q = parseFloat(H.getPropertyValue("height")), 603 j = parseFloat(H.getPropertyValue("padding-top")), 604 K = parseFloat(H.getPropertyValue("padding-bottom")), 605 U = parseFloat(H.getPropertyValue("margin-top")), 606 _ = parseFloat(H.getPropertyValue("margin-bottom")), 607 Z = H.getPropertyValue("box-sizing"); 608 S = Z && "border-box" === Z ? q + U + _ : q + j + K + U + _ 609 } 610 B && ($[0].style.transform = B), N && ($[0].style.webkitTransform = N), e.roundLengths && (S = Math.floor(S)) 611 } else S = (i - (e.slidesPerView - 1) * w) / e.slidesPerView, e.roundLengths && (S = Math.floor(S)), l[k] && (this.isHorizontal() ? l[k].style.width = S + "px" : l[k].style.height = S + "px"); 612 l[k] && (l[k].swiperSlideSize = S), u.push(S), e.centeredSlides ? (y = y + S / 2 + x / 2 + w, 0 === x && 0 !== k && (y = y - i / 2 - w), 0 === k && (y = y - i / 2 - w), Math.abs(y) < .001 && (y = 0), e.roundLengths && (y = Math.floor(y)), E % e.slidesPerGroup == 0 && p.push(y), c.push(y)) : (e.roundLengths && (y = Math.floor(y)), (E - Math.min(this.params.slidesPerGroupSkip, E)) % this.params.slidesPerGroup == 0 && p.push(y), c.push(y), y = y + S + w), this.virtualSize += S + w, x = S, E += 1 613 } 614 } 615 if (this.virtualSize = Math.max(this.virtualSize, i) + m, s && r && ("slide" === e.effect || "coverflow" === e.effect) && t.css({width: this.virtualSize + e.spaceBetween + "px"}), e.setWrapperSize && (this.isHorizontal() ? t.css({width: this.virtualSize + e.spaceBetween + "px"}) : t.css({height: this.virtualSize + e.spaceBetween + "px"})), e.slidesPerColumn > 1 && (this.virtualSize = (S + e.spaceBetween) * T, this.virtualSize = Math.ceil(this.virtualSize / e.slidesPerColumn) - e.spaceBetween, this.isHorizontal() ? t.css({width: this.virtualSize + e.spaceBetween + "px"}) : t.css({height: this.virtualSize + e.spaceBetween + "px"}), e.centeredSlides)) { 616 C = []; 617 for (var Q = 0; Q < p.length; Q += 1) { 618 var J = p[Q]; 619 e.roundLengths && (J = Math.floor(J)), p[Q] < this.virtualSize + p[0] && C.push(J) 620 } 621 p = C 622 } 623 if (!e.centeredSlides) { 624 C = []; 625 for (var ee = 0; ee < p.length; ee += 1) { 626 var te = p[ee]; 627 e.roundLengths && (te = Math.floor(te)), p[ee] <= this.virtualSize - i && C.push(te) 628 } 629 p = C, Math.floor(this.virtualSize - i) - Math.floor(p[p.length - 1]) > 1 && p.push(this.virtualSize - i) 630 } 631 if (0 === p.length && (p = [0]), 0 !== e.spaceBetween && (this.isHorizontal() ? s ? l.filter(v).css({marginLeft: w + "px"}) : l.filter(v).css({marginRight: w + "px"}) : l.filter(v).css({marginBottom: w + "px"}
631)), e.centeredSlides && e.centeredSlidesBounds) { 632 var ie = 0; 633 u.forEach((function (t) { 634 ie += t + (e.spaceBetween ? e.spaceBetween : 0) 635 })); 636 var se = (ie -= e.spaceBetween) - i; 637 p = p.map((function (e) { 638 return e < 0 ? -f : e > se ? se + m : e 639 })) 640 } 641 if (e.centerInsufficientSlides) { 642 var ae = 0; 643 if (u.forEach((function (t) { 644 ae += t + (e.spaceBetween ? e.spaceBetween : 0) 645 })), (ae -= e.spaceBetween) < i) { 646 var re = (i - ae) / 2; 647 p.forEach((function (e, t) { 648 p[t] = e - re 649 })), c.forEach((function (e, t) { 650 c[t] = e + re 651 })) 652 } 653 } 654 d.extend(this, { 655 slides: l, 656 snapGrid: p, 657 slidesGrid: c, 658 slidesSizesGrid: u 659 }), h !== o && this.emit("slidesLengthChange"), p.length !== g && (this.params.watchOverflow && this.checkOverflow(), this.emit("snapGridLengthChange")), c.length !== b && this.emit("slidesGridLengthChange"), (e.watchSlidesProgress || e.watchSlidesVisibility) && this.updateSlidesOffset() 660 } 661 }, updateAutoHeight: function (e) { 662 var t, i = [], s = 0; 663 if ("number" == typeof e ? this.setTransition(e) : !0 === e && this.setTransition(this.params.speed), "auto" !== this.params.slidesPerView && this.params.slidesPerView > 1) if (this.params.centeredSlides) this.visibleSlides.each((function (e, t) { 664 i.push(t) 665 })); else for (t = 0; t < Math.ceil(this.params.slidesPerView); t += 1) { 666 var a = this.activeIndex + t; 667 if (a > this.slides.length) break; 668 i.push(this.slides.eq(a)[0]) 669 } else i.push(this.slides.eq(this.activeIndex)[0]); 670 for (t = 0; t < i.length; t += 1) if (void 0 !== i[t]) { 671 var r = i[t].offsetHeight; 672 s = r > s ? r : s 673 } 674 s && this.$wrapperEl.css("height", s + "px") 675 }, updateSlidesOffset: function () { 676 for (var e = this.slides, t = 0; t < e.length; t += 1) e[t].swiperSlideOffset = this.isHorizontal() ? e[t].offsetLeft : e[t].offsetTop 677 }, updateSlidesProgress: function (e) { 678 void 0 === e && (e = this && this.translate || 0); 679 var t = this.params, i = this.slides, s = this.rtlTranslate; 680 if (0 !== i.length) { 681 void 0 === i[0].swiperSlideOffset && this.updateSlidesOffset(); 682 var a = -e; 683 s && (a = e), i.removeClass(t.slideVisibleClass), this.visibleSlidesIndexes = [], this.visibleSlides = []; 684 for (var r = 0; r < i.length; r += 1) { 685 var o = i[r], 686 l = (a + (t.centeredSlides ? this.minTranslate() : 0) - o.swiperSlideOffset) / (o.swiperSlideSize + t.spaceBetween); 687 if (t.watchSlidesVisibility || t.centeredSlides && t.autoHeight) { 688 var d = -(a - o.swiperSlideOffset), h = d + this.slidesSizesGrid[r]; 689 (d >= 0 && d < this.size - 1 || h > 1 && h <= this.size || d <= 0 && h >= this.size) && (this.visibleSlides.push(o), this.visibleSlidesIndexes.push(r), i.eq(r).addClass(t.slideVisibleClass)) 690 } 691 o.progress = s ? -l : l 692 } 693 this.visibleSlides = n(this.visibleSlides) 694 } 695 }, updateProgress: function (e) { 696 if (void 0 === e) { 697 var t = this.rtlTranslate ? -1 : 1; 698 e = this && this.translate && this.translate * t || 0 699 } 700 var i = this.params, s = this.maxTranslate() - this.minTranslate(), a = this.progress, r = this.isBeg
700inning, 701 n = this.isEnd, o = r, l = n; 702 0 === s ? (a = 0, r = !0, n = !0) : (r = (a = (e - this.minTranslate()) / s) <= 0, n = a >= 1), d.extend(this, { 703 progress: a, 704 isBeginning: r, 705 isEnd: n 706 }), (i.watchSlidesProgress || i.watchSlidesVisibility || i.centeredSlides && i.autoHeight) && this.updateSlidesProgress(e), r && !o && this.emit("reachBeginning toEdge"), n && !l && this.emit("reachEnd toEdge"), (o && !r || l && !n) && this.emit("fromEdge"), this.emit("progress", a) 707 }, updateSlidesClasses: function () { 708 var e, t = this.slides, i = this.params, s = this.$wrapperEl, a = this.activeIndex, r = this.realIndex, 709 n = this.virtual && i.virtual.enabled; 710 t.removeClass(i.slideActiveClass + " " + i.slideNextClass + " " + i.slidePrevClass + " " + i.slideDuplicateActiveClass + " " + i.slideDuplicateNextClass + " " + i.slideDuplicatePrevClass), (e = n ? this.$wrapperEl.find("." + i.slideClass + '[data-swiper-slide-index="' + a + '"]') : t.eq(a)).addClass(i.slideActiveClass), i.loop && (e.hasClass(i.slideDuplicateClass) ? s.children("." + i.slideClass + ":not(." + i.slideDuplicateClass + ')[data-swiper-slide-index="' + r + '"]').addClass(i.slideDuplicateActiveClass) : s.children("." + i.slideClass + "." + i.slideDuplicateClass + '[data-swiper-slide-index="' + r + '"]').addClass(i.slideDuplicateActiveClass)); 711 var o = e.nextAll("." + i.slideClass).eq(0).addClass(i.slideNextClass); 712 i.loop && 0 === o.length && (o = t.eq(0)).addClass(i.slideNextClass); 713 var l = e.prevAll("." + i.slideClass).eq(0).addClass(i.slidePrevClass); 714 i.loop && 0 === l.length && (l = t.eq(-1)).addClass(i.slidePrevClass), i.loop && (o.hasClass(i.slideDuplicateClass) ? s.children("." + i.slideClass + ":not(." + i.slideDuplicateClass + ')[data-swiper-slide-index="' + o.attr("data-swiper-slide-index") + '"]').addClass(i.slideDuplicateNextClass) : s.children("." + i.slideClass + "." + i.slideDuplicateClass + '[data-swiper-slide-index="' + o.attr("data-swiper-slide-index") + '"]').addClass(i.slideDuplicateNextClass), l.hasClass(i.slideDuplicateClass) ? s.children("." + i.slideClass + ":not(." + i.slideDuplicateClass + ')[data-swiper-slide-index="' + l.attr("data-swiper-slide-index") + '"]').addClass(i.slideDuplicatePrevClass) : s.children("." + i.slideClass + "." + i.slideDuplicateClass + '[data-swiper-slide-index="' + l.attr("data-swiper-slide-index") + '"]').addClass(i.slideDuplicatePrevClass)) 715 }, updateActiveIndex: function (e) { 716 var t, i = this.rtlTranslate ? this.translate : -this.translate, s = this.slidesGrid, a = this.snapGrid, 717 r = this.params, n = this.activeIndex, o = this.realIndex, l = this.snapIndex, h = e; 718 if (void 0 === h) { 719 for (var p = 0; p < s.length; p += 1) void 0 !== s[p + 1] ? i >= s[p] && i < s[p + 1] - (s[p + 1] - s[p]) / 2 ? h = p : i >= s[p] && i < s[p + 1] && (h = p + 1) : i >= s[p] && (h = p);
720 r.normalizeSlideIndex && (h < 0 || void 0 === h) && (h = 0) 721 } 722 if (a.indexOf(i) >= 0) t = a.indexOf(i); else { 723 var c = Math.min(r.slidesPerGroupSkip, h); 724 t = c + Math.floor((h - c) / r.slidesPerGroup) 725 } 726 if (t >= a.length && (t = a.length - 1), h !== n) { 727 var u = parseInt(this.slides.eq(h).attr("data-swiper-slide-index") || h, 10); 728 d.extend(this, { 729 snapIndex: t, 730 realIndex: u, 731 previousIndex: n, 732 activeIndex: h 733 }), this.emit("activeIndexChange"), this.emit("snapIndexChange"), o !== u && this.emit("realIndexChange"), (this.initialized || this.params.runCallbacksOnInit) && this.emit("slideChange") 734 } else t !== l && (this.snapIndex = t, this.emit("snapIndexChange")) 735 }, updateClickedSlide: function (e) { 736 var t = this.params, i = n(e.target).closest("." + t.slideClass)[0], s = !1; 737 if (i) for (var a = 0; a < this.slides.length; a += 1) this.slides[a] === i && (s = !0); 738 if (!i || !s) return this.clickedSlide = void 0, void (this.clickedIndex = void 0); 739 this.clickedSlide = i, this.virtual && this.params.virtual.enabled ? this.clickedIndex = parseInt(n(i).attr("data-swiper-slide-index"), 10) : this.clickedIndex = n(i).index(), t.slideToClickedSlide && void 0 !== this.clickedIndex && this.clickedIndex !== this.activeIndex && this.slideToClickedSlide() 740 } 741 }; 742 var v = { 743 getTranslate: function (e) { 744 void 0 === e && (e = this.isHorizontal() ? "x" : "y"); 745 var t = this.params, i = this.rtlTranslate, s = this.translate, a = this.$wrapperEl; 746 if (t.virtualTranslate) return i ? -s : s; 747 if (t.cssMode) return s; 748 var r = d.getTranslate(a[0], e); 749 return i && (r = -r), r || 0 750 }, setTranslate: function (e, t) { 751 var i = this.rtlTranslate, s = this.params, a = this.$wrapperEl, r = this.wrapperEl, n = this.progress, 752 o = 0, l = 0; 753 this.isHorizontal() ? o = i ? -e : e : l = e, s.roundLengths && (o = Math.floor(o), l = Math.floor(l)), s.cssMode ? r[this.isHorizontal() ? "scrollLeft" : "scrollTop"] = this.isHorizontal() ? -o : -l : s.virtualTranslate || a.transform("translate3d(" + o + "px, " + l + "px, 0px)"), this.previousTranslate = this.translate, this.translate = this.isHorizontal() ? o : l; 754 var d = this.maxTranslate() - this.minTranslate(); 755 (0 === d ? 0 : (e - this.minTranslate()) / d) !== n && this.updateProgress(e), this.emit("setTranslate", this.translate, t) 756 }, minTranslate: function () { 757 return -this.snapGrid[0] 758 }, maxTranslate: function () { 759 return -this.snapGrid[this.snapGrid.length - 1] 760 }, translateTo: function (e, t, i, s, a) { 761 var r; 762 void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === i && (i = !0), void 0 === s && (s = !0); 763 var n = this, o = n.params, l = n.wrapperEl; 764 if (n.animating && o.preventInteractionOnTransition) return !1; 765 var d, h = n.minTranslate(), p = n.maxTranslate(); 766 if (d = s && e > h ? h : s && e < p ? p : e, n.updateProgress(d), o.cssMode) { 767 var c = n.isHorizontal(); 768 return 0 === t ? l[c ? "scrollLeft" : "scrollTop"] = -d : l.scrollTo ? l.scrollTo(((r = {})[c ? "left" : "top"] = -d, r.behavior = "smooth", r)) : l[c ? "scrollLeft" : "scrollTop"] = -d, !0 769 } 770 return 0 === t ? (n.setTransition(0), n.setTranslate(d), i && (n.emit("beforeTransitionStart", t, a), n.emit("transitionEnd"))) : (n.setTransition(t), n.setTranslate(d), i && (n.emit("beforeTransitionStart", t, a), n.emit("transitionStart")), n.animating || (n.animating = !0, n.onTranslateToWrapperTransitionEnd || (n.onTranslateToWrapperTransitionEnd = function (e) { 771 n && !n.destroyed && e.target === this && (n.$wrapperEl[0].removeEventListener("transitionend", n.onTranslateToWrapperTransitionEnd), n.$wrapperEl[0].removeEventListener("webkitTransitionEnd", n.onTranslateToWrapperTransitionEnd), n.onTranslateToWrapperTransitionEnd = null, delete n.onTranslateToWrapperTransitionEnd, i && n.emit("transitionEnd")) 772 }), n.$wrapperEl[0].addEventListener("transitionend", n.onTranslateToWrapperTransitionEnd), n.$wrapperEl[0].addEventListener("webkitTransitionEnd", n.onTranslateToWrapperTransitionEnd))), !0 773 } 774 }; 775 var f = { 776 setTransition: function (e, t) { 777 this.params.cssMode || this.$wrapperEl.transition(e), this.emit
777("setTransition", e, t) 778 }, transitionStart: function (e, t) { 779 void 0 === e && (e = !0); 780 var i = this.activeIndex, s = this.params, a = this.previousIndex; 781 if (!s.cssMode) { 782 s.autoHeight && this.updateAutoHeight(); 783 var r = t; 784 if (r || (r = i > a ? "next" : i < a ? "prev" : "reset"), this.emit("transitionStart"), e && i !== a) { 785 if ("reset" === r) return void this.emit("slideResetTransitionStart"); 786 this.emit("slideChangeTransitionStart"), "next" === r ? this.emit("slideNextTransitionStart") : this.emit("slidePrevTransitionStart") 787 } 788 } 789 }, transitionEnd: function (e, t) { 790 void 0 === e && (e = !0); 791 var i = this.activeIndex, s = this.previousIndex, a = this.params; 792 if (this.animating = !1, !a.cssMode) { 793 this.setTransition(0); 794 var r = t; 795 if (r || (r = i > s ? "next" : i < s ? "prev" : "reset"), this.emit("transitionEnd"), e && i !== s) { 796 if ("reset" === r) return void this.emit("slideResetTransitionEnd"); 797 this.emit("slideChangeTransitionEnd"), "next" === r ? this.emit("slideNextTransitionEnd") : this.emit("slidePrevTransitionEnd") 798 } 799 } 800 } 801 }; 802 var m = { 803 slideTo: function (e, t, i, s) { 804 var a; 805 void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === i && (i = !0); 806 var r = this, n = e; 807 n < 0 && (n = 0); 808 var o = r.params, l = r.snapGrid, d = r.slidesGrid, h = r.previousIndex, p = r.activeIndex, 809 c = r.rtlTranslate, u = r.wrapperEl; 810 if (r.animating && o.preventInteractionOnTransition) return !1; 811 var v = Math.min(r.params.slidesPerGroupSkip, n), f = v + Math.floor((n - v) / r.params.slidesPerGroup); 812 f >= l.length && (f = l.length - 1), (p || o.initialSlide || 0) === (h || 0) && i && r.emit("beforeSlideChangeStart"); 813 var m, g = -l[f]; 814 if (r.updateProgress(g), o.normalizeSlideIndex) for (var b = 0; b < d.length; b += 1) -Math.floor(100 * g) >= Math.floor(100 * d[b]) && (n = b); 815 if (r.initialized && n !== p) { 816 if (!r.allowSlideNext && g < r.translate && g < r.minTranslate()) return !1; 817 if (!r.allowSlidePrev && g > r.translate && g > r.maxTranslate() && (p || 0) !== n) return !1 818 } 819 if (m = n > p ? "next" : n < p ? "prev" : "reset", c && -g === r.translate || !c && g === r.translate) return r.updateActiveIndex(n), o.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), "slide" !== o.effect && r.setTranslate(g), "reset" !== m && (r.transitionStart(i, m), r.transitionEnd(i, m)), !1; 820 if (o.cssMode) { 821 var w = r.isHorizontal(), y = -g; 822 return c && (y = u.scrollWidth - u.offsetWidth - y), 0 === t ? u[w ? "scrollLeft" : "scrollTop"] = y : u.scrollTo ? u.scrollTo(((a = {})[w ? "left" : "top"] = y, a.behavior = "smooth", a)) : u[w ? "scrollLeft" : "scrollTop"] = y, !0 823 } 824 return 0 === t ? (r.setTransition(0), r.setTranslate(g), r.updateActiveIndex(n), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, s), r.transitionStart(i, m), r.transitionEnd(i, m)) : (r.setTransition(t), r.setTranslate(g), r.updateActiveIndex(n), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, s), r.transitionStart(i, m), r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function (e) { 825 r && !r.destroyed && e.target === this && (r.$wrapperEl[0].removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.$wrapperEl[0].removeEventListener("webkitTransitionEnd", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, m)) 826 }), r.$wrapperEl[0].addEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.$wrapperEl[0].addEventListener("webkitTransitionEnd", r.onSlideToWrapperTransitionEnd))), !0 827 }, slideToLoop: function (e, t, i, s) { 828 void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === i && (i = !0); 829 var a = e; 830 return this.params.loop && (a += this.loopedSlides), this.slideTo(a, t, i, s) 831 }, slideNext: function (e, t, i) { 832 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0); 833 var s = this.params, a = this.animating, r = this.activeIndex < s.slidesPerGroupSkip ? 1 : s.slidesPerGroup; 834 if (s.loop) { 835 if (a) return !1; 836 this.loopFix(), this._clientLeft = this.$wrapperEl[0].clientLeft 837 } 838 return this.slideTo(this.activeIndex + r, e, t, i) 839 }, slidePrev: function (e, t, i) { 840 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0); 841 var s = this.params, a = this.animating, r = this.snapGrid, n = this.slidesGrid, o = this.rtlTranslate; 842 if (s.loop) { 843 if (a) return !1; 844 this.loopFix(), this._clientLeft = this.$wrapperEl[0].clientLeft 845 } 846 847 function l(e) { 848 return e < 0 ? -Math.floor(Math.abs(e)) : Math.floor(e) 849 } 850 851 var d, h = l(o ? this.translate : -this.translate), p = r.map((function (e) { 852 return l(e) 853 })), c = (n.map((function (e) { 854 return l(e) 855 })), r[p.indexOf(h)], r[p.indexOf(h) - 1]); 856 return void 0 === c && s.cssMode && r.forEach((function (e) { 857 !c && h >= e && (c = e) 858 })), void 0 !== c && (d = n.indexOf(c)) < 0 && (d = this.activeIndex - 1), this.slideTo(d, e, t, i) 859 }, slideReset: function (e, t, i) { 860 return void 0 === e && (e = this.params.speed), void 0 === t && (t = !0), this.slideTo(this.activeIndex, e, t, i) 861 }, slideToClosest: function (e, t, i, s) { 862 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0), void 0 === s && (s = .5); 863 var a = this.activeIndex, r = Math.min(this.params.slidesPerGroupSkip, a), 864 n = r + Math.floor((a - r) / this.params.slidesPerGroup), 865 o = this.rtlTranslate ? this.translate : -this.translate; 866 if (o >= this.snapGrid[n]) { 867 var l = this.snapGrid[n]; 868 o - l > (this.snapGrid[n + 1] - l) * s && (a += this.params.slidesPerGroup) 869 } else { 870 var d = this.snapGrid[n - 1]; 871 o - d <= (this.snapGrid[n] - d) * s && (a -= this.params.slidesPerGroup) 872 } 873 return a = Math.max(a, 0), a = Math.min(a, this.slidesGrid.length - 1), this.slideTo(a, e, t, i) 874 }, slideToClickedSlide: function () { 875 var e, t = this, i = t.params, s = t.$wrapperEl, 876 a = "auto" === i.slidesPerView ? t.slidesPerViewDynamic() : i.slidesPerView, r = t.clickedIndex; 877 if (i.loop) { 878 if (t.animating) return; 879 e = parseInt(n(t.clickedSlide).attr("data-swiper-slide-index"), 10), i.centeredSlides ? r < t.loopedSlides - a / 2 || r > t.slides.length - t.loopedSlides + a / 2 ? (t.loopFix(), r = s.children("." + i.slideClass + '[data-swiper-slide-index="' + e + '"]:not(.' + i.slideDuplicateClass + ")").eq(0).index(), d.nextTick((function () { 880 t.slideTo(r) 881 }))) : t.slideTo(r) : r > t.slides.length - a ? (t.loopFix(), r = s.children("." + i.slideClass + '[data-swiper-slide-index="' + e + '"]:not(.' + i.slideDuplicateClass + ")").eq(0).index(), d.nextTick((function () { 882 t.slideTo(r) 883 }))) : t.slideTo(r) 884 } else t.slideTo(r) 885 } 886 }; 887 var g = { 888 loopCreate: function () { 889 var e = this, t = e.params, s = e.$wrapperEl; 890 s.children("." + t.slideClass + "." + t.slideDuplicateClass).remove(); 891 var a = s.children("." + t.slideClass); 892 if (t.loopFillGroupWithBlank) { 893 var r = t.slidesPerGroup - a.length % t.slidesPerGroup; 894 if (r !== t.slidesPerGroup) { 895 for (var o = 0; o < r; o += 1) { 896 var l = n(i.createElement("div")).addClass(t.slideClass + " " + t.slideBlankClass); 897 s.append(l) 898 } 899 a = s.children("." + t.slideClass) 900 } 901 } 902 "auto" !== t.slidesPerView || t.loopedSlides || (t.loopedSlides = a.length), e.loopedSlides = Math.ceil(parseFloat(t.loopedSlides || t.slidesPerView, 10)), e.loopedSlides += t.loopAdditionalSlides, e.loopedSlides > a.length && (e.loopedSlides = a.length); 903 var d = [], h = []; 904 a.each((function (t, i) { 905 var s = n(i); 906 t < e.loopedSlides && h.push(i), t < a.length && t >= a.length - e.loopedSlides && d.push(i), s.attr("data-swiper-slide-index", t) 907 })); 908 for (var p = 0; p < h.length; p += 1) s.append(n(h[p].cloneNode(!0)).addClass(t.slideDuplicateClass)); 909 for (var c = d.length - 1; c >= 0; c -= 1) s.prepend(n(d[c].cloneNode(!0)).addClass(t.slideDuplicateClass)) 910 }, loopFix: function () {
911 this.emit("beforeLoopFix"); 912 var e, t = this.activeIndex, i = this.slides, s = this.loopedSlides, a = this.allowSlidePrev, 913 r = this.allowSlideNext, n = this.snapGrid, o = this.rtlTranslate; 914 this.allowSlidePrev = !0, this.allowSlideNext = !0; 915 var l = -n[t] - this.getTranslate(); 916 if (t < s) e = i.length - 3 * s + t, e += s, this.slideTo(e, 0, !1, !0) && 0 !== l && this.setTranslate((o ? -this.translate : this.translate) - l); else if (t >= i.length - s) { 917 e = -i.length + t + s, e += s, this.slideTo(e, 0, !1, !0) && 0 !== l && this.setTranslate((o ? -this.translate : this.translate) - l) 918 } 919 this.allowSlidePrev = a, this.allowSlideNext = r, this.emit("loopFix") 920 }, loopDestroy: function () { 921 var e = this.$wrapperEl, t = this.params, i = this.slides; 922 e.children("." + t.slideClass + "." + t.slideDuplicateClass + ",." + t.slideClass + "." + t.slideBlankClass).remove(), i.removeAttr("data-swiper-slide-index") 923 } 924 }; 925 var b = { 926 setGrabCursor: function (e) { 927 if (!(h.touch || !this.params.simulateTouch || this.params.watchOverflow && this.isLocked || this.params.cssMode)) { 928 var t = this.el; 929 t.style.cursor = "move", t.style.cursor = e ? "-webkit-grabbing" : "-webkit-grab", t.style.cursor = e ? "-moz-grabbin" : "-moz-grab", t.style.cursor = e ? "grabbing" : "grab" 930 } 931 }, unsetGrabCursor: function () { 932 h.touch || this.params.watchOverflow && this.isLocked || this.params.cssMode || (this.el.style.cursor = "") 933 } 934 }; 935 var w, y, x, E, T, S, C, M, P, z, k, $, L, I, D, O = { 936 appendSlide: function (e) { 937 var t = this.$wrapperEl, i = this.params; 938 if (i.loop && this.loopDestroy(), "object" == typeof e && "length" in e) for (var s = 0; s < e.length; s += 1) e[s] && t.append(e[s]); else t.append(e); 939 i.loop && this.loopCreate(), i.observer && h.observer || this.update() 940 }, prependSlide: function (e) { 941 var t = this.params, i = this.$wrapperEl, s = this.activeIndex; 942 t.loop && this.loopDestroy(); 943 var a = s + 1; 944 if ("object" == typeof e && "length" in e) { 945 for (var r = 0; r < e.length; r += 1) e[r] && i.prepend(e[r]); 946 a = s + e.length 947 } else i.prepend(e); 948 t.loop && this.loopCreate(), t.observer && h.observer || this.update(), this.slideTo(a, 0, !1) 949 }, addSlide: function (e, t) { 950 var i = this.$wrapperEl, s = this.params, a = this.activeIndex; 951 s.loop && (a -= this.loopedSlides, this.loopDestroy(), this.slides = i.children("." + s.slideClass)); 952 var r = this.slides.length; 953 if (e <= 0) this.prependSlide(t); else if (e >= r) this.appendSlide(t); else { 954 for (var n = a > e ? a + 1 : a, o = [], l = r - 1; l >= e; l -= 1) { 955 var d = this.slides.eq(l); 956 d.remove(), o.unshift(d) 957 } 958 if ("object" == typeof t && "length" in t) { 959 for (var p = 0; p < t.length; p += 1) t[p] && i.append(t[p]); 960 n = a > e ? a + t.length : a 961 } else i.append(t); 962 for (var c = 0; c < o.length; c += 1) i.append(o[c]); 963 s.loop && this.loopCreate(), s.observer && h.observer || this.update(), s.loop ? this.slideTo(n + this.loopedSlides, 0, !1) : this.slideTo(n, 0, !1) 964 } 965 }, removeSlide: function (e) { 966 var t = this.params, i = this.$wrapperEl, s = this.activeIndex; 967 t.loop && (s -= this.loopedSlides, this.loopDestroy(), this.slides = i.children("." + t.slideClass)); 968 var a, r = s; 969 if ("object" == typeof e && "length" in e) { 970 for (var n = 0; n < e.length; n += 1) a = e[n], this.slides[a] && this.slides.eq(a).remove(), a < r && (r -= 1); 971 r = Math.max(r, 0) 972 } else a = e, this.slides[a] && this.slides.eq(a).remove(), a < r && (r -= 1), r = Math.max(r, 0); 973 t.loop && this.loopCreate(), t.observer && h.observer || this.update(), t.loop ? this.slideTo(r + this.loopedSlides, 0, !1) : this.slideTo(r, 0, !1) 974 }, removeAllSlides: function () { 975 for (var e = [], t = 0; t < this.slides.length; t += 1) e.push(t); 976 this.removeSlide(e) 977 } 978 }, A = (w = a.navigator.platform, y = a.navigator.userAgent, x = { 979 ios: !1, 980 android: !1, 981 androidChrome: !1, 982 desktop: !1, 983 iphone: !1, 984 ipod: !1, 985 ipad: !1, 986 edge: !1, 987 ie: !1, 988 firefox: !1, 989 macos: !1, 990 windows: !1, 991 cordova: !(!a.cordova && !a.phonegap), 992 phonegap: !(!a.cordova && !a.phonegap), 993 electron: !1 994 }, E = a.screen.width, T = a.screen.height, S = y.match(/(Android);?[\s\/]+([\d.]+)?/), C = y.match(/(iPad).*OS\s([\d_]+)/), M = y.match(/(iPod)(.*OS\s([\d_]+))?/), P = !C && y.match(/(iPhone\sOS|iOS)\s([\d_]+)/), z = y.indexOf("MSIE ") >= 0 || y.indexOf("Trident/") >= 0, k = y.indexOf("Edge/") >= 0, $ = y.indexOf("Gecko/") >= 0 && y.indexOf("Firefox/") >= 0, L = "Win32" === w, I = y.toLowerCase().indexOf("electron") >= 0, D = "MacIntel" === w, !C && D && h.touch && (1024 === E && 1366 === T || 834 === E && 1194 === T || 834 === E && 1112 === T || 768 === E && 1024 === T) && (C = y.match(/(Version)\/([\d.]+)/), D = !1), x.ie = z, x.edge = k, x.firefox = $, S && !L && (x.os = "android", x.osVersion = S[2], x.android = !0, x.androidChrome = y.toLowerCase().indexOf("chrome") >= 0), (C || P || M) && (x.os = "ios", x.ios = !0), P && !M && (x.osVersion = P[2].replace(/_/g, "."), x.iphone = !0), C && (x.osVersion = C[2].replace(/_/g, "."), x.ipad = !0), M && (x.osVersion = M[3] ? M[3].replace(/_/g, ".") : null, x.ipod = !0), x.ios && x.osVersion && y.indexOf("Version/") >= 0 && "10" === x.osVersion.split(".")[0] && (x.osVersion = y.toLowerCase().split("version/")[1].split(" ")[0]), x.webView = !(!(P || C || M) || !y.match(/.*AppleWeb
994Kit(?!.*Safari)/i) && !a.navigator.standalone) || a.matchMedia && a.matchMedia("(display-mode: standalone)").matches, x.webview = x.webView, x.standalone = x.webView, x.desktop = !(x.ios || x.android) || I, x.desktop && (x.electron = I, x.macos = D, x.windows = L, x.macos && (x.os = "macos"), x.windows && (x.os = "windows")), x.pixelRatio = a.devicePixelRatio || 1, x); 995 996 function G(e) { 997 var t = this.touchEventsData, s = this.params, r = this.touches; 998 if (!this.animating || !s.preventInteractionOnTransition) { 999 var o = e; 1000 o.originalEvent && (o = o.originalEvent); 1001 var l = n(o.target); 1002 if (("wrapper" !== s.touchEventsTarget || l.closest(this.wrapperEl).length) && (t.isTouchEvent = "touchstart" === o.type, (t.isTouchEvent || !("which" in o) || 3 !== o.which) && !(!t.isTouchEvent && "button" in o && o.button > 0 || t.isTouched && t.isMoved))) if (s.noSwiping && l.closest(s.noSwipingSelector ? s.noSwipingSelector : "." + s.noSwipingClass)[0]) this.allowClick = !0; else if (!s.swipeHandler || l.closest(s.swipeHandler)[0]) { 1003 r.currentX = "touchstart" === o.type ? o.targetTouches[0].pageX : o.pageX, r.currentY = "touchstart" === o.type ? o.targetTouches[0].pageY : o.pageY; 1004 var h = r.currentX, p = r.currentY, c = s.edgeSwipeDetection || s.iOSEdgeSwipeDetection, 1005 u = s.edgeSwipeThreshold || s.iOSEdgeSwipeThreshold; 1006 if (!c || !(h <= u || h >= a.screen.width - u)) { 1007 if (d.extend(t, { 1008 isTouched: !0, 1009 isMoved: !1, 1010 allowTouchCallbacks: !0, 1011 isScrolling: void 0, 1012 startMoving: void 0 1013 }), r.startX = h, r.startY = p, t.touchStartTime = d.now(), this.allowClick = !0, this.updateSize(), this.swipeDirection = void 0, s.threshold > 0 && (t.allowThresholdMove = !1), "touchstart" !== o.type) { 1014 var v = !0; 1015 l.is(t.formElements) && (v = !1), i.activeElement && n(i.activeElement).is(t.formElements) && i.activeElement !== l[0] && i.activeElement.blur(); 1016 var f = v && this.allowTouchMove && s.touchStartPreventDefault; 1017 (s.touchStartForcePreventDefault || f) && o.preventDefault() 1018 } 1019 this.emit("touchStart", o) 1020 } 1021 } 1022 } 1023 } 1024 1025 function H(e) { 1026 var t = this.touchEventsData, s = this.params, a = this.touches, r = this.rtlTranslate, o = e; 1027 if (o.originalEvent && (o = o.originalEvent), t.isTouched) { 1028 if (!t.isTouchEvent || "touchmove" === o.type) { 1029 var l = "touchmove" === o.type && o.targetTouches && (o.targetTouches[0] || o.changedTouches[0]), 1030 h = "touchmove" === o.type ? l.pageX : o.pageX, p = "touchmove" === o.type ? l.pageY : o.pageY; 1031 if (o.preventedByNestedSwiper) return a.startX = h, void (a.startY = p); 1032 if (!this.allowTouchMove) return this.allowClick = !1, void (t.isTouched && (d.extend(a, { 1033 startX: h, 1034 startY: p, 1035 currentX: h, 1036 currentY: p 1037 }), t.touchStartTime = d.now())); 1038 if (t.isTouchEvent && s.touchReleaseOnEdges && !s.loop) if (this.isVertical()) { 1039 if (p < a.startY && this.translate <= this.maxTranslate() || p > a.startY && this.translate >= this.minTranslate()) return t.isTouched = !1, void (t.isMoved = !1) 1040 } else if (h < a.startX && this.translate <= this.maxTranslate() || h > a.startX && this.translate >= this.minTranslate()) return; 1041 if (t.isTouchEvent && i.activeElement && o.target === i.activeElement && n(o.target).is(t.formElements)) return t.isMoved = !0, void (this.allowClick = !1); 1042 if (t.allowTouchCallbacks && this.emit("touchMove", o), !(o.targetTouches && o.targetTouches.length > 1)) { 1043 a.currentX = h, a.currentY = p; 1044 var c = a.currentX - a.startX, u = a.currentY - a.startY; 1045 if (!(this.params.threshold && Math.sqrt(Math.pow(c, 2) + Math.pow(u, 2)) < this.params.threshold)) { 1046 var v; 1047 if (void 0 === t.isScrolling) this.isHorizontal() && a.currentY === a.startY || this.isVertical() && a.currentX === a.startX ? t.isScrolling = !1 : c * c + u * u >= 25 && (v = 180 * Math.atan2(Math.abs(u), Math.abs(c)) / Math.PI, t.isScrolling = this.isHorizontal() ? v > s.touchAngle : 90 - v >
vendor: 9,490 bytes, lines 1047-1140
1047 s.touchAngle); 1048 if (t.isScrolling && this.emit("touchMoveOpposite", o), void 0 === t.startMoving && (a.currentX === a.startX && a.currentY === a.startY || (t.startMoving = !0)), t.isScrolling) t.isTouched = !1; else if (t.startMoving) { 1049 this.allowClick = !1, !s.cssMode && o.cancelable && o.preventDefault(), s.touchMoveStopPropagation && !s.nested && o.stopPropagation(), t.isMoved || (s.loop && this.loopFix(), t.startTranslate = this.getTranslate(), this.setTransition(0), this.animating && this.$wrapperEl.trigger("webkitTransitionEnd transitionend"), t.allowMomentumBounce = !1, !s.grabCursor || !0 !== this.allowSlideNext && !0 !== this.allowSlidePrev || this.setGrabCursor(!0), this.emit("sliderFirstMove", o)), this.emit("sliderMove", o), t.isMoved = !0; 1050 var f = this.isHorizontal() ? c : u; 1051 a.diff = f, f *= s.touchRatio, r && (f = -f), this.swipeDirection = f > 0 ? "prev" : "next", t.currentTranslate = f + t.startTranslate; 1052 var m = !0, g = s.resistanceRatio; 1053 if (s.touchReleaseOnEdges && (g = 0), f > 0 && t.currentTranslate > this.minTranslate() ? (m = !1, s.resistance && (t.currentTranslate = this.minTranslate() - 1 + Math.pow(-this.minTranslate() + t.startTranslate + f, g))) : f < 0 && t.currentTranslate < this.maxTranslate() && (m = !1, s.resistance && (t.currentTranslate = this.maxTranslate() + 1 - Math.pow(this.maxTranslate() - t.startTranslate - f, g))), m && (o.preventedByNestedSwiper = !0), !this.allowSlideNext && "next" === this.swipeDirection && t.currentTranslate < t.startTranslate && (t.currentTranslate = t.startTranslate), !this.allowSlidePrev && "prev" === this.swipeDirection && t.currentTranslate > t.startTranslate && (t.currentTranslate = t.startTranslate), s.threshold > 0) { 1054 if (!(Math.abs(f) > s.threshold || t.allowThresholdMove)) return void (t.currentTranslate = t.startTranslate); 1055 if (!t.allowThresholdMove) return t.allowThresholdMove = !0, a.startX = a.currentX, a.startY = a.currentY, t.currentTranslate = t.startTranslate, void (a.diff = this.isHorizontal() ? a.currentX - a.startX : a.currentY - a.startY) 1056 } 1057 s.followFinger && !s.cssMode && ((s.freeMode || s.watchSlidesProgress || s.watchSlidesVisibility) && (this.updateActiveIndex(), this.updateSlidesClasses()), s.freeMode && (0 === t.velocities.length && t.velocities.push({ 1058 position: a[this.isHorizontal() ? "startX" : "startY"], 1059 time: t.touchStartTime 1060 }), t.velocities.push({ 1061 position: a[this.isHorizontal() ? "currentX" : "currentY"], 1062 time: d.now() 1063 })), this.updateProgress(t.currentTranslate), this.setTranslate(t.currentTranslate)) 1064 } 1065 } 1066 } 1067 } 1068 } else t.startMoving && t.isScrolling && this.emit("touchMoveOpposite", o) 1069 } 1070 1071 function B(e) { 1072 var t = this, i = t.touchEventsData, s = t.params, a = t.touches, r = t.rtlTranslate, n = t.$wrapperEl, 1073 o = t.slidesGrid, l = t.snapGrid, h = e; 1074 if (h.originalEvent && (h = h.originalEvent), i.allowTouchCallbacks && t.emit("touchEnd", h), i.allowTouchCallbacks = !1, !i.isTouched) return i.isMoved && s.grabCursor && t.setGrabCursor(!1), i.isMoved = !1, void (i.startMoving = !1); 1075 s.grabCursor && i.isMoved && i.isTouched && (!0 === t.allowSlideNext || !0 === t.allowSlidePrev) && t.setGrabCursor(!1); 1076 var p, c = d.now(), u = c - i.touchStartTime; 1077 if (t.allowClick && (t.updateClickedSlide(h), t.emit("tap click", h), u < 300 && c - i.lastClickTime < 300 && t.emit("doubleTap doubleClick", h)), i.lastClickTime = d.now(), d.nextTick((function () { 1078 t.destroyed || (t.allowClick = !0) 1079 })), !i.isTouched || !i.isMoved || !t.swipeDirection || 0 === a.diff || i.currentTranslate === i.startTranslate) return i.isTouched = !1, i.isMoved = !1, void (i.startMoving = !1); 1080 if (i.isTouched = !1, i.isMoved = !1, i.startMoving = !1, p = s.followFinger ? r ? t.translate : -t.translate : -i.currentTranslate, !s.cssMode) if (s.freeMode) { 1081 if (p < -t.minTranslate()) return void t.slideTo(t.activeIndex); 1082 if (p > -t.maxTranslate()) return void (t.slides.length < l.length ? t.slideTo(l.length - 1) : t.slideTo(t.slides.length - 1)); 1083 if (s.freeModeMomentum) { 1084 if (i.velocities.length > 1) { 1085 var v = i.velocities.pop(), f = i.velocities.pop(), m = v.position - f.position, 1086 g = v.time - f.time; 1087 t.velocity = m / g, t.velocity /= 2, Math.abs(t.velocity) < s.freeModeMinimumVelocity && (t.velocity = 0), (g > 150 || d.now() - v.time > 300) && (t.velocity = 0) 1088 } else t.velocity = 0; 1089 t.velocity *= s.freeModeMomentumVelocityRatio, i.velocities.length = 0; 1090 var b = 1e3 * s.freeModeMomentumRatio, w = t.velocity * b, y = t.translate + w; 1091 r && (y = -y); 1092 var x, E, T = !1, S = 20 * Math.abs(t.velocity) * s.freeModeMomentumBounceRatio; 1093 if (y < t.maxTranslate()) s.freeModeMomentumBounce ? (y + t.maxTranslate() < -S && (y = t.maxTranslate() - S), x = t.maxTranslate(), T = !0, i.allowMomentumBounce = !0) : y = t.maxTranslate(), s.loop && s.centeredSlides && (E = !0); else if (y > t.minTranslate()) s.freeModeMomentumBounce ? (y - t.minTranslate() > S && (y = t.minTranslate() + S), x = t.minTranslate(), T = !0, i.allowMomentumBounce = !0) : y = t.minTranslate(), s.loop && s.centeredSlides && (E = !0); else if (s.freeModeSticky) { 1094 for (var C, M = 0; M < l.length; M += 1) if (l[M] > -y) { 1095 C = M; 1096 break 1097 } 1098 y = -(y = Math.abs(l[C] - y) < Math.abs(l[C - 1] - y) || "next" === t.swipeDirection ? l[C] : l[C - 1]) 1099 } 1100 if (E && t.once("transitionEnd", (function () { 1101 t.loopFix() 1102 })), 0 !== t.velocity) { 1103 if (b = r ? Math.abs((-y - t.translate) / t.velocity) : Math.abs((y - t.translate) / t.velocity), s.freeModeSticky) { 1104 var P = Math.abs((r ? -y : y) - t.translate), z = t.slidesSizesGrid[t.activeIndex]; 1105 b = P < z ? s.speed : P < 2 * z ? 1.5 * s.speed : 2.5 * s.speed 1106 } 1107 } else if (s.freeModeSticky) return void t.slideToClosest(); 1108 s.freeModeMomentumBounce && T ? (t.updateProgress(x), t.setTransition(b), t.setTranslate(y), t.transitionStart(!0, t.swipeDirection), t.animating = !0, n.transitionEnd((function () { 1109 t && !t.destroyed && i.allowMomentumBounce && (t.emit("momentumBounce"), t.setTransition(s.speed), setTimeout((function () { 1110 t.setTranslate(x), n.transitionEnd((function () { 1111 t && !t.destroyed && t.transitionEnd() 1112 })) 1113 }), 0)) 1114 }))) : t.velocity ? (t.updateProgress(y), t.setTransition(b), t.setTranslate(y), t.transitionStart(!0, t.swipeDirection), t.animating || (t.animating = !0, n.transitionEnd((function () { 1115 t && !t.destroyed && t.transitionEnd() 1116 })))) : t.updateProgress(y), t.updateActiveIndex(), t.updateSlidesClasses() 1117 } else if (s.freeModeSticky) return void t.slideToClosest(); 1118 (!s.freeModeMomentum || u >= s.longSwipesMs) && (t.updateProgress(), t.updateActiveIndex(), t.updateSlidesClasses()) 1119 } else { 1120 for (var k = 0, $ = t.slidesSizesGrid[0], L = 0; L < o.length; L += L < s.slidesPerGroupSkip ? 1 : s.slidesPerGroup) { 1121 var I = L < s.slidesPerGroupSkip - 1 ? 1 : s.slidesPerGroup; 1122 void 0 !== o[L + I] ? p >= o[L] && p < o[L + I] && (k = L, $ = o[L + I] - o[L]) : p >= o[L] && (k = L, $ = o[o.length - 1] - o[o.length - 2]) 1123 } 1124 var D = (p - o[k]) / $, O = k < s.slidesPerGroupSkip - 1 ? 1 : s.slidesPerGroup; 1125 if (u > s.longSwipesMs) { 1126 if (!s.longSwipes) return void t.slideTo(t.activeIndex); 1127 "next" === t.swipeDirection && (D >= s.longSwipesRatio ? t.slideTo(k + O) : t.slideTo(k)), "prev" === t.swipeDirection && (D > 1 - s.longSwipesRatio ? t.slideTo(k + O) : t.slideTo(k)) 1128 } else { 1129 if (!s.shortSwipes) return void t.slideTo(t.activeIndex); 1130 t.navigation && (h.target === t.navigation.nextEl || h.target === t.navigation.prevEl) ? h.target === t.navigation.nextEl ? t.slideTo(k + O) : t.slideTo(k) : ("next" === t.swipeDirection && t.slideTo(k + O), "prev" === t.swipeDirection && t.slideTo(k)) 1131 } 1132 } 1133 } 1134 1135 function N() { 1136 var e = this.params, t = this.el; 1137 if (!t || 0 !== t.offsetWidth) { 1138 e.breakpoints && this.setBreakpoint(); 1139 var i = this.allowSlideNext, s = this.allowSlidePrev, a = this.snapGrid; 1140 this.allowSlideNext = !0, this.allowSlidePrev = !0, this.updateSize(), this.updateSlides(), this.updateSlidesClasses(), ("auto" === e.slidesPerView || e.slidesPerView >
1140 1) && this.isEnd && !this.isBeginning && !this.params.centeredSlides ? this.slideTo(this.slides.length - 1, 0, !1, !0) : this.slideTo(this.activeIndex, 0, !1, !0), this.autoplay && this.autoplay.running && this.autoplay.paused && this.autoplay.run(), this.allowSlidePrev = s, this.allowSlideNext = i, this.params.watchOverflow && a !== this.snapGrid && this.checkOverflow() 1141 } 1142 } 1143 1144 function X(e) { 1145 this.allowClick || (this.params.preventClicks && e.preventDefault(), this.params.preventClicksPropagation && this.animating && (e.stopPropagation(), e.stopImmediatePropagation())) 1146 } 1147 1148 function V() { 1149 var e = this.wrapperEl, t = this.rtlTranslate; 1150 this.previousTranslate = this.translate, this.isHorizontal() ? this.translate = t ? e.scrollWidth - e.offsetWidth - e.scrollLeft : -e.scrollLeft : this.translate = -e.scrollTop, -0 === this.translate && (this.translate = 0), this.updateActiveIndex(), this.updateSlidesClasses(); 1151 var i = this.maxTranslate() - this.minTranslate(); 1152 (0 === i ? 0 : (this.translate - this.minTranslate()) / i) !== this.progress && this.updateProgress(t ? -this.translate : this.translate), this.emit("setTranslate", this.translate, !1) 1153 } 1154 1155 var Y = !1; 1156 1157 function F() { 1158 } 1159 1160 var W = { 1161 init: !0, 1162 direction: "horizontal", 1163 touchEventsTarget: "container", 1164 initialSlide: 0, 1165 speed: 300, 1166 cssMode: !1, 1167 updateOnWindowResize: !0, 1168 preventInteractionOnTransition: !1, 1169 edgeSwipeDetection: !1, 1170 edgeSwipeThreshold: 20, 1171 freeMode: !1, 1172 freeModeMomentum: !0, 1173 freeModeMomentumRatio: 1, 1174 freeModeMomentumBounce: !0, 1175 freeModeMomentumBounceRatio: 1, 1176 freeModeMomentumVelocityRatio: 1, 1177 freeModeSticky: !1, 1178 freeModeMinimumVelocity: .02, 1179 autoHeight: !1, 1180 setWrapperSize: !1, 1181 virtualTranslate: !1, 1182 effect: "slide", 1183 breakpoints: void 0, 1184 spaceBetween: 0, 1185 slidesPerView: 1, 1186 slidesPerColumn: 1, 1187 slidesPerColumnFill: "column", 1188 slidesPerGroup: 1, 1189 slidesPerGroupSkip: 0, 1190 centeredSlides: !1, 1191 centeredSlidesBounds: !1, 1192 slidesOffsetBefore: 0, 1193 slidesOffsetAfter: 0, 1194 normalizeSlideIndex: !0, 1195 centerInsufficientSlides: !1, 1196 watchOverflow: !1, 1197 roundLengths: !1, 1198 touchRatio: 1, 1199 touchAngle: 45, 1200 simulateTouch: !0, 1201 shortSwipes: !0, 1202 longSwipes: !0, 1203 longSwipesRatio: .5, 1204 longSwipesMs: 300, 1205 followFinger: !0, 1206 allowTouchMove: !0, 1207 threshold: 0, 1208 touchMoveStopPropagation: !1, 1209 touchStartPreventDefault: !0, 1210 touchStartForcePreventDefault: !1, 1211 touchReleaseOnEdges: !1, 1212 uniqueNavElements: !0, 1213 resistance: !0, 1214 resistanceRatio: .85, 1215 watchSlidesProgress: !1, 1216 watchSlidesVisibility: !1, 1217 grabCursor: !1, 1218 preventClicks: !0, 1219 preventClicksPropagation: !0, 1220 slideToClickedSlide: !1, 1221 preloadImages: !0, 1222 updateOnImagesReady: !0, 1223 loop: !1, 1224 loopAdditionalSlides: 0, 1225 loopedSlides: null, 1226 loopFillGroupWithBlank: !1, 1227 allowSlidePrev: !0, 1228 allowSlideNext: !0, 1229 swipeHandler: null, 1230 noSwiping: !0, 1231 noSwipingClass: "swiper-no-swiping", 1232 noSwipingSelector: null, 1233 passiveListeners: !0, 1234 containerModifierClass: "swiper-container-", 1235 slideClass: "swiper-slide", 1236 slideBlankClass: "swiper-slide-invisible-blank", 1237 slideActiveClass: "swiper-slide-active", 1238 slideDuplicateActiveClass: "swiper-slide-duplicate-active", 1239 slideVisibleClass: "swiper-slide-visible", 1240 slideDuplicateClass: "swiper-slide-duplicate", 1241 slideNextClass: "swiper-slide-next", 1242 slideDuplicateNextClass: "swiper-slide-duplicate-next", 1243 slidePrevClass: "swiper-slide-prev", 1244 slideDuplicatePrevClass: "swiper-slide-duplicate-prev", 1245 wrapperClass: "swiper-wrapper", 1246 runCallbacksOnInit: !0 1247 }, R = { 1248 update: u, translate: v, transition: f, slide: m, loop: g, grabCursor: b, manipulation: O, events: { 1249 attachEvents: function () { 1250 var e = this.params, t = this.touchEvents, s = this.el, a = this.wrapperEl; 1251 this.onTouchStart = G.bind(this), this.onTouchMove = H.bind(this), this.onTouchEnd = B.bind(this), e.cssMode && (this.onScroll = V.bind(this)), this.onClick = X.bind(this); 1252 var r = !!e.nested; 1253 if (!h.touch && h.pointerEvents) s.addEventListener(t.
1253start, this.onTouchStart, !1), i.addEventListener(t.move, this.onTouchMove, r), i.addEventListener(t.end, this.onTouchEnd, !1); else { 1254 if (h.touch) { 1255 var n = !("touchstart" !== t.start || !h.passiveListener || !e.passiveListeners) && { 1256 passive: !0, 1257 capture: !1 1258 }; 1259 s.addEventListener(t.start, this.onTouchStart, n), s.addEventListener(t.move, this.onTouchMove, h.passiveListener ? { 1260 passive: !1, 1261 capture: r 1262 } : r), s.addEventListener(t.end, this.onTouchEnd, n), t.cancel && s.addEventListener(t.cancel, this.onTouchEnd, n), Y || (i.addEventListener("touchstart", F), Y = !0) 1263 } 1264 (e.simulateTouch && !A.ios && !A.android || e.simulateTouch && !h.touch && A.ios) && (s.addEventListener("mousedown", this.onTouchStart, !1), i.addEventListener("mousemove", this.onTouchMove, r), i.addEventListener("mouseup", this.onTouchEnd, !1)) 1265 } 1266 (e.preventClicks || e.preventClicksPropagation) && s.addEventListener("click", this.onClick, !0), e.cssMode && a.addEventListener("scroll", this.onScroll), e.updateOnWindowResize ? this.on(A.ios || A.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", N, !0) : this.on("observerUpdate", N, !0) 1267 }, detachEvents: function () { 1268 var e = this.params, t = this.touchEvents, s = this.el, a = this.wrapperEl, r = !!e.nested; 1269 if (!h.touch && h.pointerEvents) s.removeEventListener(t.start, this.onTouchStart, !1), i.removeEventListener(t.move, this.onTouchMove, r), i.removeEventListener(t.end, this.onTouchEnd, !1); else { 1270 if (h.touch) { 1271 var n = !("onTouchStart" !== t.start || !h.passiveListener || !e.passiveListeners) && { 1272 passive: !0, 1273 capture: !1 1274 }; 1275 s.removeEventListener(t.start, this.onTouchStart, n), s.removeEventListener(t.move, this.onTouchMove, r), s.removeEventListener(t.end, this.onTouchEnd, n), t.cancel && s.removeEventListener(t.cancel, this.onTouchEnd, n) 1276 } 1277 (e.simulateTouch && !A.ios && !A.android || e.simulateTouch && !h.touch && A.ios) && (s.removeEventListener("mousedown", this.onTouchStart, !1), i.removeEventListener("mousemove", this.onTouchMove, r), i.removeEventListener("mouseup", this.onTouchEnd, !1)) 1278 } 1279 (e.preventClicks || e.preventClicksPropagation) && s.removeEventListener("click", this.onClick, !0), e.cssMode && a.removeEventListener("scroll", this.onScroll), this.off(A.ios || A.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", N) 1280 } 1281 }, breakpoints: { 1282 setBreakpoint: function () { 1283 var e = this.activeIndex, t = this.initialized, i = this.loopedSlides; 1284 void 0 === i && (i = 0); 1285 var s = this.params, a = this.$el, r = s.breakpoints; 1286 if (r && (!r || 0 !== Object.keys(r).length)) { 1287 var n = this.getBreakpoint(r); 1288 if (n && this.currentBreakpoint !== n) { 1289 var o = n in r ? r[n] : void 0; 1290 o && ["slidesPerView", "spaceBetween", "slidesPerGroup", "slidesPerGroupSkip", "slidesPerColumn"].forEach((function (e) { 1291 var t = o[e]; 1292 void 0 !== t && (o[e] = "slidesPerView" !== e || "AUTO" !== t && "auto" !== t ? "slidesPerView" === e ? parseFloat(t) : parseInt(t, 10) : "auto") 1293 })); 1294 var l = o || this.originalParams, h = s.slidesPerColumn > 1, p = l.slidesPerColumn > 1; 1295 h && !p ? a.removeClass(s.containerModifierClass + "multirow " + s.containerModifierClass + "multirow-column") : !h && p && (a.addClass(s.containerModifierClass + "multirow"), "column" === l.slidesPerColumnFill && a.addClass(s.containerModifierClass + "multirow-column")); 1296 var c = l.direction && l.direction !== s.direction, 1297 u = s.loop && (l.slidesPerView !== s.slidesPerView || c); 1298 c && t && this.changeDirection(), d.extend(this.params, l), d.extend(this, { 1299 allowTouchMove: this.params.allowTouchMove, 1300 allowSlideNext: this.params.allowSlideNext, 1301 allowSlidePrev: this.params.allowSlidePrev 1302 }), this.currentBreakpoint = n, u && t && (this.loopDestroy(), this.loopCreate(), this.updateSlides(), this.slideTo(e - i + this.loopedSlides, 0, !1)), this.emit
1302("breakpoint", l) 1303 } 1304 } 1305 }, getBreakpoint: function (e) { 1306 if (e) { 1307 var t = !1, i = Object.keys(e).map((function (e) { 1308 if ("string" == typeof e && 0 === e.indexOf("@")) { 1309 var t = parseFloat(e.substr(1)); 1310 return {value: a.innerHeight * t, point: e} 1311 } 1312 return {value: e, point: e} 1313 })); 1314 i.sort((function (e, t) { 1315 return parseInt(e.value, 10) - parseInt(t.value, 10) 1316 })); 1317 for (var s = 0; s < i.length; s += 1) { 1318 var r = i[s], n = r.point; 1319 r.value <= a.innerWidth && (t = n) 1320 } 1321 return t || "max" 1322 } 1323 } 1324 }, checkOverflow: { 1325 checkOverflow: function () { 1326 var e = this.params, t = this.isLocked, 1327 i = this.slides.length > 0 && e.slidesOffsetBefore + e.spaceBetween * (this.slides.length - 1) + this.slides[0].offsetWidth * this.slides.length; 1328 e.slidesOffsetBefore && e.slidesOffsetAfter && i ? this.isLocked = i <= this.size : this.isLocked = 1 === this.snapGrid.length, this.allowSlideNext = !this.isLocked, this.allowSlidePrev = !this.isLocked, t !== this.isLocked && this.emit(this.isLocked ? "lock" : "unlock"), t && t !== this.isLocked && (this.isEnd = !1, this.navigation && this.navigation.update()) 1329 } 1330 }, classes: { 1331 addClasses: function () { 1332 var e = this.classNames, t = this.params, i = this.rtl, s = this.$el, a = []; 1333 a.push("initialized"), a.push(t.direction), t.freeMode && a.push("free-mode"), t.autoHeight && a.push("autoheight"), i && a.push("rtl"), t.slidesPerColumn > 1 && (a.push("multirow"), "column" === t.slidesPerColumnFill && a.push("multirow-column")), A.android && a.push("android"), A.ios && a.push("ios"), t.cssMode && a.push("css-mode"), a.forEach((function (i) { 1334 e.push(t.containerModifierClass + i) 1335 })), s.addClass(e.join(" ")) 1336 }, removeClasses: function () { 1337 var e = this.$el, t = this.classNames; 1338 e.removeClass(t.join(" ")) 1339 } 1340 }, images: { 1341 loadImage: function (e, t, i, s, r, o) { 1342 var l; 1343 1344 function d() { 1345 o && o() 1346 } 1347 1348 n(e).parent("picture")[0] || e.complete && r ? d() : t ? ((l = new a.Image).onload = d, l.onerror = d, s && (l.sizes = s), i && (l.srcset = i), t && (l.src = t)) : d() 1349 }, preloadImages: function () { 1350 var e = this; 1351 1352 function t() { 1353 null != e && e && !e.destroyed && (void 0 !== e.imagesLoaded && (e.imagesLoaded += 1), e.imagesLoaded === e.imagesToLoad.length && (e.params.updateOnImagesReady && e.update(), e.emit("imagesReady"))) 1354 } 1355 1356 e.imagesToLoad = e.$el.find("img"); 1357 for (var i = 0; i < e.imagesToLoad.length; i += 1) { 1358 var s = e.imagesToLoad[i]; 1359 e.loadImage(s, s.currentSrc || s.getAttribute("src"), s.srcset || s.getAttribute("srcset"), s.sizes || s.getAttribute("sizes"), !0, t) 1360 } 1361 } 1362 } 1363 }, q = {}, j = function (e) { 1364 function t() { 1365 for (var i, s, a, r = [], o = arguments.length; o--;) r[o] = arguments[o]; 1366 1 === r.length && r[0].constructor && r[0].constructor === Object ? a = r[0] : (s = (i = r)[0], a = i[1]), a || (a = {}), a = d.extend({}, a), s && !a.el && (a.el = s), e.call(this, a), Object.keys(R).forEach((function (e) {
vendor: 5,019 bytes, lines 1367-1457
1367 Object.keys(R[e]).forEach((function (i) { 1368 t.prototype[i] || (t.prototype[i] = R[e][i]) 1369 })) 1370 })); 1371 var l = this; 1372 void 0 === l.modules && (l.modules = {}), Object.keys(l.modules).forEach((function (e) { 1373 var t = l.modules[e]; 1374 if (t.params) { 1375 var i = Object.keys(t.params)[0], s = t.params[i]; 1376 if ("object" != typeof s || null === s) return; 1377 if (!(i in a) || !("enabled" in s)) return; 1378 !0 === a[i] && (a[i] = {enabled: !0}), "object" != typeof a[i] || "enabled" in a[i] || (a[i].enabled = !0), a[i] || (a[i] = {enabled: !1}) 1379 } 1380 })); 1381 var p = d.extend({}, W); 1382 l.useModulesParams(p), l.params = d.extend({}, p, q, a), l.originalParams = d.extend({}, l.params), l.passedParams = d.extend({}, a), l.$ = n; 1383 var c = n(l.params.el); 1384 if (s = c[0]) { 1385 if (c.length > 1) { 1386 var u = []; 1387 return c.each((function (e, i) { 1388 var s = d.extend({}, a, {el: i}); 1389 u.push(new t(s)) 1390 })), u 1391 } 1392 var v, f, m; 1393 return s.swiper = l, c.data("swiper", l), s && s.shadowRoot && s.shadowRoot.querySelector ? (v = n(s.shadowRoot.querySelector("." + l.params.wrapperClass))).children = function (e) { 1394 return c.children(e) 1395 } : v = c.children("." + l.params.wrapperClass), d.extend(l, { 1396 $el: c, 1397 el: s, 1398 $wrapperEl: v, 1399 wrapperEl: v[0], 1400 classNames: [], 1401 slides: n(), 1402 slidesGrid: [], 1403 snapGrid: [], 1404 slidesSizesGrid: [], 1405 isHorizontal: function () { 1406 return "horizontal" === l.params.direction 1407 }, 1408 isVertical: function () { 1409 return "vertical" === l.params.direction 1410 }, 1411 rtl: "rtl" === s.dir.toLowerCase() || "rtl" === c.css("direction"), 1412 rtlTranslate: "horizontal" === l.params.direction && ("rtl" === s.dir.toLowerCase() || "rtl" === c.css("direction")), 1413 wrongRTL: "-webkit-box" === v.css("display"), 1414 activeIndex: 0, 1415 realIndex: 0, 1416 isBeginning: !0, 1417 isEnd: !1, 1418 translate: 0, 1419 previousTranslate: 0, 1420 progress: 0, 1421 velocity: 0, 1422 animating: !1, 1423 allowSlideNext: l.params.allowSlideNext, 1424 allowSlidePrev: l.params.allowSlidePrev, 1425 touchEvents: (f = ["touchstart", "touchmove", "touchend", "touchcancel"], m = ["mousedown", "mousemove", "mouseup"], h.pointerEvents && (m = ["pointerdown", "pointermove", "pointerup"]), l.touchEventsTouch = { 1426 start: f[0], 1427 move: f[1], 1428 end: f[2], 1429 cancel: f[3] 1430 }, l.touchEventsDesktop = { 1431 start: m[0], 1432 move: m[1], 1433 end: m[2] 1434 }, h.touch || !l.params.simulateTouch ? l.touchEventsTouch : l.touchEventsDesktop), 1435 touchEventsData: { 1436 isTouched: void 0, 1437 isMoved: void 0, 1438 allowTouchCallbacks: void 0, 1439 touchStartTime: void 0, 1440 isScrolling: void 0, 1441 currentTranslate: void 0, 1442 startTranslate: void 0, 1443 allowThresholdMove: void 0, 1444 formElements: "input, select, option, textarea, button, video, label", 1445 lastClickTime: d.now(), 1446 clickTimeout: void 0, 1447 velocities: [], 1448 allowMomentumBounce: void 0, 1449 isTouchEvent: void 0, 1450 startMoving: void 0 1451 }, 1452 allowClick: !0, 1453 allowTouchMove: l.params.allowTouchMove, 1454 touches: {startX: 0, startY: 0, currentX: 0, currentY: 0, diff: 0}, 1455 imagesToLoad: [], 1456 imagesLoaded: 0 1457 }
1457), l.useModules(), l.params.init && l.init(), l 1458 } 1459 } 1460 1461 e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t; 1462 var i = { 1463 extendedDefaults: {configurable: !0}, 1464 defaults: {configurable: !0}, 1465 Class: {configurable: !0}, 1466 $: {configurable: !0} 1467 }; 1468 return t.prototype.slidesPerViewDynamic = function () { 1469 var e = this.params, t = this.slides, i = this.slidesGrid, s = this.size, a = this.activeIndex, r = 1; 1470 if (e.centeredSlides) { 1471 for (var n, o = t[a].swiperSlideSize, l = a + 1; l < t.length; l += 1) t[l] && !n && (r += 1, (o += t[l].swiperSlideSize) > s && (n = !0)); 1472 for (var d = a - 1; d >= 0; d -= 1) t[d] && !n && (r += 1, (o += t[d].swiperSlideSize) > s && (n = !0)) 1473 } else for (var h = a + 1; h < t.length; h += 1) i[h] - i[a] < s && (r += 1); 1474 return r 1475 }, t.prototype.update = function () { 1476 var e = this; 1477 if (e && !e.destroyed) { 1478 var t = e.snapGrid, i = e.params; 1479 i.breakpoints && e.setBreakpoint(), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), e.params.freeMode ? (s(), e.params.autoHeight && e.updateAutoHeight()) : (("auto" === e.params.slidesPerView || e.params.slidesPerView > 1) && e.isEnd && !e.params.centeredSlides ? e.slideTo(e.slides.length - 1, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0)) || s(), i.watchOverflow && t !== e.snapGrid && e.checkOverflow(), e.emit("update") 1480 } 1481 1482 function s() { 1483 var t = e.rtlTranslate ? -1 * e.translate : e.translate, 1484 i = Math.min(Math.max(t, e.maxTranslate()), e.minTranslate()); 1485 e.setTranslate(i), e.updateActiveIndex(), e.updateSlidesClasses() 1486 } 1487 }, t.prototype.changeDirection = function (e, t) { 1488 void 0 === t && (t = !0); 1489 var i = this.params.direction; 1490 return e || (e = "horizontal" === i ? "vertical" : "horizontal"), e === i || "horizontal" !== e && "vertical" !== e || (this.$el.removeClass("" + this.params.containerModifierClass + i).addClass("" + this.params.containerModifierClass + e), this.params.direction = e, this.slides.each((function (t, i) { 1491 "vertical" === e ? i.style.width = "" : i.style.height = "" 1492 })), this.emit("changeDirection"), t && this.update()), this 1493 }, t.prototype.init = function () {
1494 this.initialized || (this.emit("beforeInit"), this.params.breakpoints && this.setBreakpoint(), this.addClasses(), this.params.loop && this.loopCreate(), this.updateSize(), this.updateSlides(), this.params.watchOverflow && this.checkOverflow(), this.params.grabCursor && this.setGrabCursor(), this.params.preloadImages && this.preloadImages(), this.params.loop ? this.slideTo(this.params.initialSlide + this.loopedSlides, 0, this.params.runCallbacksOnInit) : this.slideTo(this.params.initialSlide, 0, this.params.runCallbacksOnInit), this.attachEvents(), this.initialized = !0, this.emit("init")) 1495 }, t.prototype.destroy = function (e, t) { 1496 void 0 === e && (e = !0), void 0 === t && (t = !0); 1497 var i = this, s = i.params, a = i.$el, r = i.$wrapperEl, n = i.slides; 1498 return void 0 === i.params || i.destroyed || (i.emit("beforeDestroy"), i.initialized = !1, i.detachEvents(), s.loop && i.loopDestroy(), t && (i.removeClasses(), a.removeAttr("style"), r.removeAttr("style"), n && n.length && n.removeClass([s.slideVisibleClass, s.slideActiveClass, s.slideNextClass, s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")), i.emit("destroy"), Object.keys(i.eventsListeners).forEach((function (e) { 1499 i.off(e) 1500 })), !1 !== e && (i.$el[0].swiper = null, i.$el.data("swiper", null), d.deleteProps(i)), i.destroyed = !0), null 1501 }, t.extendDefaults = function (e) { 1502 d.extend(q, e) 1503 }, i.extendedDefaults.get = function () { 1504 return q 1505 }, i.defaults.get = function () { 1506 return W 1507 }, i.Class.get = function () { 1508 return e 1509 }, i.$.get = function () { 1510 return n 1511 }, Object.defineProperties(t, i), t 1512 }(p), K = {name: "device", proto: {device: A}, static: {device: A}}, 1513 U = {name: "support", proto: {support: h}, static: {support: h}}, _ = { 1514 isEdge: !!a.navigator.userAgent.match(/Edge/g), isSafari: function () { 1515 var e = a.navigator.userAgent.toLowerCase(); 1516 return e.indexOf("safari") >= 0 && e.indexOf("chrome") < 0 && e.indexOf("android") < 0 1517 }(), isWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(a.navigator.userAgent) 1518 }, Z = {name: "browser", proto: {browser: _}, static: {browser: _}}, Q = { 1519 name: "resize", create: function () { 1520 var e = this; 1521 d.extend(e, { 1522 resize: { 1523 resizeHandler: function () { 1524 e && !e.destroyed && e.initialized && (e.emit("beforeResize"), e.emit("resize")) 1525 }, orientationChangeHandler: function () { 1526 e && !e.destroyed && e.initialized && e.emit("orientationchange") 1527 } 1528 } 1529 }) 1530 }, on: { 1531 init: function () { 1532 a.addEventListener("resize", this.resize.resizeHandler), a.addEventListener("orientationchange", this.resize.orientationChangeHandler) 1533 }, destroy: function () { 1534 a.removeEventListener("resize", this.resize.resizeHandler), a.removeEventListener("orientationchange", this.resize.orientationChangeHandler) 1535 } 1536 } 1537 }, J = { 1538 func: a.MutationObserver || a.WebkitMutationObserver, attach: function (e, t) { 1539 void 0 === t && (t = {}); 1540 var i = this, s = new (0, J.func)((function (e) { 1541 if (1 !== e.length) { 1542 var t = function () { 1543 i.emit("observerUpdate", e[0]) 1544 }; 1545 a.requestAnimationFrame ? a.requestAnimationFrame(t) : a.setTimeout(t, 0) 1546 } else i.emit("observerUpdate", e[0]) 1547 })); 1548 s.observe(e, { 1549 attributes: void 0 === t.attributes || t.attributes, 1550 childList: void 0 === t.childList || t.childList, 1551 characterData: void 0 === t.characterData || t.characterData 1552 }), i.observer.observers.push(s) 1553 }, init: function () { 1554 if (h.observer && this.params.observer) { 1555 if (this.params.observeParents) for (var e = this.$el.parents(), t = 0; t < e.length; t += 1) this.observer.attach(e[t]); 1556 this.observer.attach(this.$el[0], {childList: this.params.observeSlideChildren}), this.observer.attach(this.$wrapperEl[0], {attributes: !1}) 1557 } 1558 }, destroy: function () {
1559 this.observer.observers.forEach((function (e) { 1560 e.disconnect() 1561 })), this.observer.observers = [] 1562 } 1563 }, ee = { 1564 name: "observer", 1565 params: {observer: !1, observeParents: !1, observeSlideChildren: !1}, 1566 create: function () { 1567 d.extend(this, { 1568 observer: { 1569 init: J.init.bind(this), 1570 attach: J.attach.bind(this), 1571 destroy: J.destroy.bind(this), 1572 observers: [] 1573 } 1574 }) 1575 }, 1576 on: { 1577 init: function () { 1578 this.observer.init() 1579 }, destroy: function () { 1580 this.observer.destroy() 1581 } 1582 } 1583 }, te = { 1584 update: function (e) { 1585 var t = this, i = t.params, s = i.slidesPerView, a = i.slidesPerGroup, r = i.centeredSlides, 1586 n = t.params.virtual, o = n.addSlidesBefore, l = n.addSlidesAfter, h = t.virtual, p = h.from, c = h.to, 1587 u = h.slides, v = h.slidesGrid, f = h.renderSlide, m = h.offset; 1588 t.updateActiveIndex(); 1589 var g, b, w, y = t.activeIndex || 0; 1590 g = t.rtlTranslate ? "right" : t.isHorizontal() ? "left" : "top", r ? (b = Math.floor(s / 2) + a + o, w = Math.floor(s / 2) + a + l) : (b = s + (a - 1) + o, w = a + l); 1591 var x = Math.max((y || 0) - w, 0), E = Math.min((y || 0) + b, u.length - 1), 1592 T = (t.slidesGrid[x] || 0) - (t.slidesGrid[0] || 0); 1593 1594 function S() { 1595 t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.lazy && t.params.lazy.enabled && t.lazy.load() 1596 } 1597 1598 if (d.extend(t.virtual, { 1599 from: x, 1600 to: E, 1601 offset: T, 1602 slidesGrid: t.slidesGrid 1603 }), p === x && c === E && !e) return t.slidesGrid !== v && T !== m && t.slides.css(g, T + "px"), void t.updateProgress(); 1604 if (t.params.virtual.renderExternal) return t.params.virtual.renderExternal.call(t, { 1605 offset: T, 1606 from: x, 1607 to: E, 1608 slides: function () { 1609 for (var e = [], t = x; t <= E; t += 1) e.push(u[t]); 1610 return e 1611 }() 1612 }), void S(); 1613 var C = [], M = []; 1614 if (e) t.$wrapperEl.find("." + t.params.slideClass).remove(); else for (var P = p; P <= c; P += 1) (P < x || P > E) && t.$wrapperEl.find("." + t.params.slideClass + '[data-swiper-slide-index="' + P + '"]').remove(); 1615 for (var z = 0; z < u.length; z += 1) z >= x && z <= E && (void 0 === c || e ? M.push(z) : (z > c && M.push(z), z < p && C.push(z))); 1616 M.forEach((function (e) { 1617 t.$wrapperEl.append(f(u[e], e)) 1618 })), C.sort((function (e, t) { 1619 return t - e 1620 })).forEach((function (e) { 1621 t.$wrapperEl.prepend(f(u[e], e)) 1622 })), t.$wrapperEl.children(".swiper-slide").css(g, T + "px"), S() 1623 }, renderSlide: function (e, t) { 1624 var i = this.params.virtual; 1625 if (i.cache && this.virtual.cache[t]) return this.virtual.cache[t]; 1626 var s = i.renderSlide ? n(i.renderSlide.call(this, e, t)) : n('<div class="' + this.params.slideClass + '" data-swiper-slide-index="' + t + '">' + e + "</div>"); 1627 return s.attr("data-swiper-slide-index") || s.attr("data-swiper-slide-index", t), i.cache && (this.virtual.cache[t] = s), s 1628 }, appendSlide: function (e) { 1629 if ("object" == typeof e && "length" in e) for (var t = 0; t < e.length; t += 1) e[t] && this.virtual.slides.push(e[t]); else this.virtual.slides.push(e); 1630 this.virtual.update(!0) 1631 }, prependSlide: function (e) { 1632 var t = this.activeIndex, i = t + 1, s = 1; 1633 if (Array.isArray(e)) { 1634 for (var a = 0; a < e.length; a += 1) e[a] && this.virtual.slides.unshift(e[a]); 1635 i = t + e.length, s = e.length 1636 } else this.virtual.slides.unshift(e); 1637 if (this.params.virtual.cache) { 1638 var r = this.virtual.cache, n = {}; 1639 Object.keys(r).forEach((function (e) { 1640 var t = r[e], i = t.attr("data-swiper-slide-index"); 1641 i && t.attr("data-swiper-slide-index", parseInt(i, 10) + 1), n[parseInt(e, 10) + s] = t 1642 })), this.virtual.cache = n 1643 } 1644 this.virtual.update(!0), this.slideTo(i, 0) 1645 }, removeSlide: function (e) { 1646 if (null != e) { 1647 var t = this.activeIndex; 1648 if (Array.isArray(e)) for (var i = e.length - 1; i >= 0; i -= 1) this.virtual.slides.splice(e[i], 1), this.params.virtual.cache && delete this.virtual.cache[e[i]], e[i] < t && (t -= 1), t = Math.max(t, 0); else this.virtual.slides.splice(e, 1), this.params.virtual.cache && delete this.virtual.cache[e], e < t && (t -= 1), t = Math.max(t, 0); 1649 this.virtual.update(!0), this.slideTo(t, 0) 1650 } 1651 }, removeAllSlides: function () { 1652 this.virtual.slides = [], this.params.virtual.cache && (this.virtual.cache = {}), this.virtual.update(!0), this.slideTo(0, 0) 1653 } 1654 }, ie = { 1655 name: "virtual", 1656 params: { 1657 virtual: { 1658 enabled: !1, 1659 slides: [], 1660 cache: !0, 1661 renderSlide: null, 1662 renderExternal: null, 1663 addSlidesBefore: 0, 1664 addSlidesAfter: 0 1665 } 1666 }, 1667 create: function () { 1668 d.extend(this, { 1669 virtual: { 1670 update: te.update.bind(this), 1671 appendSlide: te.appendSlide.bind(this),
1672 prependSlide: te.prependSlide.bind(this), 1673 removeSlide: te.removeSlide.bind(this), 1674 removeAllSlides: te.removeAllSlides.bind(this), 1675 renderSlide: te.renderSlide.bind(this), 1676 slides: this.params.virtual.slides, 1677 cache: {} 1678 } 1679 }) 1680 }, 1681 on: { 1682 beforeInit: function () { 1683 if (this.params.virtual.enabled) { 1684 this.classNames.push(this.params.containerModifierClass + "virtual"); 1685 var e = {watchSlidesProgress: !0}; 1686 d.extend(this.params, e), d.extend(this.originalParams, e), this.params.initialSlide || this.virtual.update() 1687 } 1688 }, setTranslate: function () { 1689 this.params.virtual.enabled && this.virtual.update() 1690 } 1691 } 1692 }, se = { 1693 handle: function (e) { 1694 var t = this.rtlTranslate, s = e; 1695 s.originalEvent && (s = s.originalEvent); 1696 var r = s.keyCode || s.charCode, n = this.params.keyboard.pageUpDown, o = n && 33 === r, l = n && 34 === r, 1697 d = 37 === r, h = 39 === r, p = 38 === r, c = 40 === r; 1698 if (!this.allowSlideNext && (this.isHorizontal() && h || this.isVertical() && c || l)) return !1; 1699 if (!this.allowSlidePrev && (this.isHorizontal() && d || this.isVertical() && p || o)) return !1; 1700 if (!(s.shiftKey || s.altKey || s.ctrlKey || s.metaKey || i.activeElement && i.activeElement.nodeName && ("input" === i.activeElement.nodeName.toLowerCase() || "textarea" === i.activeElement.nodeName.toLowerCase()))) { 1701 if (this.params.keyboard.onlyInViewport && (o || l || d || h || p || c)) { 1702 var u = !1; 1703 if (this.$el.parents("." + this.params.slideClass).length > 0 && 0 === this.$el.parents("." + this.params.slideActiveClass).length) return; 1704 var v = a.innerWidth, f = a.innerHeight, m = this.$el.offset(); 1705 t && (m.left -= this.$el[0].scrollLeft); 1706 for (var g = [[m.left, m.top], [m.left + this.width, m.top], [m.left, m.top + this.height], [m.left + this.width, m.top + this.height]], b = 0; b < g.length; b += 1) { 1707 var w = g[b]; 1708 w[0] >= 0 && w[0] <= v && w[1] >= 0 && w[1] <= f && (u = !0) 1709 } 1710 if (!u) return 1711 } 1712 this.isHorizontal() ? ((o || l || d || h) && (s.preventDefault ? s.preventDefault() : s.returnValue = !1), ((l || h) && !t || (o || d) && t) && this.slideNext(), ((o || d) && !t || (l || h) && t) && this.slidePrev()) : ((o || l || p || c) && (s.preventDefault ? s.preventDefault() : s.returnValue = !1), (l || c) && this.slideNext(), (o || p) && this.slidePrev()), this.emit("keyPress", r) 1713 } 1714 }, enable: function () { 1715 this.keyboard.enabled || (n(i).on("keydown", this.keyboard.handle), this.keyboard.enabled = !0) 1716 }, disable: function () { 1717 this.keyboard.enabled && (n(i).off("keydown", this.keyboard.handle), this.keyboard.enabled = !1) 1718 } 1719 }, ae = { 1720 name: "keyboard", 1721 params: {keyboard: {enabled: !1, onlyInViewport: !0, pageUpDown: !0}}, 1722 create: function () { 1723 d.extend(this, { 1724 keyboard: { 1725 enabled: !1, 1726 enable: se.enable.bind(this), 1727 disable: se.disable.bind(this), 1728 handle: se.handle.bind(this) 1729 } 1730 }) 1731 }, 1732 on: { 1733 init: function () { 1734 this.params.keyboard.enabled && this.keyboard.enable() 1735 }, destroy: function () { 1736 this.keyboard.enabled && this.keyboard.disable() 1737 } 1738 } 1739 }; 1740 var re = { 1741 lastScrollTime: d.now(), lastEventBeforeSnap: void 0, recentWheelEvents: [], event: function () { 1742 return a.navigator.userAgent.indexOf("firefox") > -1 ? "DOMMouseScroll" : function () { 1743 var e = "onwheel" in i; 1744 if (!e) { 1745 var t = i.createElement("div"); 1746 t.setAttribute("onwheel", "return;"), e = "function" == typeof t.onwheel 1747 } 1748 return !e && i.implementation && i.implementation.hasFeature && !0 !== i.implementation.hasFeature("", "") && (e = i.implementation.hasFeature("Events.wheel", "3.0")), e 1749 }() ? "wheel" : "mousewheel" 1750 }, normalize: function (e) { 1751 var t = 0, i = 0, s = 0, a = 0; 1752 return "detail" in e && (i = e.detail), "wheelDelta" in e && (i = -e.wheelDelta / 120), "wheelDeltaY" in e && (i = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (t = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS && (t = i, i = 0), s = 10 * t, a = 10 * i, "deltaY" in e && (a = e.deltaY), "deltaX" in e && (s = e.deltaX), e.shiftKey && !s && (s = a, a = 0), (s || a) && e.deltaMode && (1 === e.deltaMode ? (s *= 40, a *= 40) : (s *= 800, a *= 800)), s && !t && (t = s < 1 ? -1 : 1), a && !i && (i = a < 1 ? -1 : 1), { 1753 spinX: t, 1754 spinY: i, 1755 pixelX: s, 1756 pixelY: a 1757 } 1758 }, handleMouseEnter: function () { 1759 this.mouseEntered = !0 1760 }, handleMouseLeave: function () { 1761 this.mouseEntered = !1 1762 }, handle: function (e) { 1763 var t = e, i = this, s = i.params.mousewheel; 1764 i.params.cssMode && t.preventDefault(); 1765 var a = i.$el; 1766 if ("container" !== i.params.mousewheel.eventsTarged && (a = n(i.params.mousewheel.eventsTarged)), !i.mouseEntered && !a[0].contains(t.target) && !s.releaseOnEdges) return !0; 1767 t.originalEvent && (t = t.originalEvent); 1768 var r = 0, o = i.rtlTranslate ? -1 : 1, l = re.normalize(t); 1769 if (s.forceToAxis) if (i.isHorizontal()) { 1770 if (!(Math.abs(l.pixelX) > Math.abs(l.pixelY))) return !0; 1771 r = -l.pixelX * o 1772 } else { 1773 if (!(Math.abs(l.pixelY) > Math.abs(l.pixelX))) return !0; 1774 r = -l.pixelY 1775 } else r = Math.abs(l.pixelX) > Math.abs(l.pixelY) ? -l.pixelX * o : -l.pixelY; 1776 if (0 === r) return !0; 1777 if (s.invert && (r = -r), i.params.freeMode) { 1778 var h = {time: d.now(), delta: Math.abs(r), direction: Math.sign(r)}, 1779 p = i.mousewheel.lastEventBeforeSnap, 1780 c = p && h.time < p.time + 500 && h.delta <= p.delta && h.direction === p.direction; 1781 if (!c) { 1782 i.mousewheel.lastEventBeforeSnap = void 0, i.params.loop && i.loopFix(); 1783 var u = i.getTranslate() + r * s.sensitivity, v = i.isBeginning, f = i.isEnd; 1784 if (u >= i.minTranslate() && (u = i.minTranslate()), u <= i.maxTranslate() && (u = i.maxTranslate()), i.setTransition(0), i.setTranslate(u), i.updateProgress(), i.updateActiveIndex(), i.updateSlidesClasses(), (!v && i.isBeginning || !f && i.isEnd) && i.updateSlidesClasses(), i.params.freeModeSticky) { 1785 clearTimeout(i.mousewheel.timeout), i.mousewheel.timeout = void 0; 1786 var m = i.mousewheel.recentWheelEvents; 1787 m.length >= 15 && m.shift(); 1788 var g = m.length ? m[m.length - 1] : void 0, b = m[0]; 1789 if (m.push(h), g && (h.delta > g.delta || h.direction !== g.direction)) m.splice(0); else if (m.length >= 15 && h.time - b.time < 500 && b.delta - h.delta >= 1 && h.delta <= 6) { 1790 var w = r > 0 ? .8 : .2; 1791 i.mousewheel.lastEventBeforeSnap = h, m.splice(0), i.mousewheel.timeout = d.nextTick((function () { 1792 i.slideToClosest(i.params.speed, !0, void 0, w) 1793 }), 0) 1794 } 1795 i.mousewheel.timeout || (i.mousewheel.timeout = d.nextTick((function () { 1796 i.mousewheel.lastEventBeforeSnap = h, m.splice(0), i.slideToClosest(i.params.speed, !0, void 0, .5) 1797 }), 500)) 1798 } 1799 if (c || i.emit("scroll", t), i.params.autoplay && i.params.autoplayDisableOnInteraction && i.autoplay.stop(), u === i.minTranslate() || u === i.maxTranslate()) return !0 1800 } 1801 } else { 1802 var y = {time: d.now(), delta: Math.abs(r), direction: Math.sign(r), raw: e}, 1803 x = i.mousewheel.recentWheelEvents; 1804 x.length >= 2 && x.shift(); 1805 var E = x.length ? x[x.length - 1] : void 0; 1806 if (x.push(y), E ? (y.direction !== E.direction || y.delta > E.delta || y.time > E.time + 150) && i.mousewheel.animateSlider(y) : i.mousewheel.animateSlider(y), i.mousewheel.releaseScroll(y)) return !0 1807 } 1808 return t.preventDefault ? t.preventDefault() : t.returnValue = !1, !1 1809 }, animateSlider: function (e) { 1810 return e.delta >= 6 && d.now() - this.mousewheel.lastScrollTime < 60 || (e.direction < 0 ? this.isEnd && !this.params.loop || this.animating || (this.slideNext(), this.emit
1810("scroll", e.raw)) : this.isBeginning && !this.params.loop || this.animating || (this.slidePrev(), this.emit("scroll", e.raw)), this.mousewheel.lastScrollTime = (new a.Date).getTime(), !1) 1811 }, releaseScroll: function (e) { 1812 var t = this.params.mousewheel; 1813 if (e.direction < 0) { 1814 if (this.isEnd && !this.params.loop && t.releaseOnEdges) return !0 1815 } else if (this.isBeginning && !this.params.loop && t.releaseOnEdges) return !0; 1816 return !1 1817 }, enable: function () { 1818 var e = re.event(); 1819 if (this.params.cssMode) return this.wrapperEl.removeEventListener(e, this.mousewheel.handle), !0; 1820 if (!e) return !1; 1821 if (this.mousewheel.enabled) return !1; 1822 var t = this.$el; 1823 return "container" !== this.params.mousewheel.eventsTarged && (t = n(this.params.mousewheel.eventsTarged)), t.on("mouseenter", this.mousewheel.handleMouseEnter), t.on("mouseleave", this.mousewheel.handleMouseLeave), t.on(e, this.mousewheel.handle), this.mousewheel.enabled = !0, !0 1824 }, disable: function () { 1825 var e = re.event(); 1826 if (this.params.cssMode) return this.wrapperEl.addEventListener(e, this.mousewheel.handle), !0; 1827 if (!e) return !1; 1828 if (!this.mousewheel.enabled) return !1; 1829 var t = this.$el; 1830 return "container" !== this.params.mousewheel.eventsTarged && (t = n(this.params.mousewheel.eventsTarged)), t.off(e, this.mousewheel.handle), this.mousewheel.enabled = !1, !0 1831 } 1832 }, ne = { 1833 update: function () { 1834 var e = this.params.navigation; 1835 if (!this.params.loop) { 1836 var t = this.navigation, i = t.$nextEl, s = t.$prevEl; 1837 s && s.length > 0 && (this.isBeginning ? s.addClass(e.disabledClass) : s.removeClass(e.disabledClass), s[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](e.lockClass)), i && i.length > 0 && (this.isEnd ? i.addClass(e.disabledClass) : i.removeClass(e.disabledClass), i[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](e.lockClass)) 1838 } 1839 }, onPrevClick: function (e) { 1840 e.preventDefault(), this.isBeginning && !this.params.loop || this.slidePrev() 1841 }, onNextClick: function (e) { 1842 e.preventDefault(), this.isEnd && !this.params.loop || this.slideNext() 1843 }, init: function () { 1844 var e, t, i = this.params.navigation; 1845 (i.nextEl || i.prevEl) && (i.nextEl && (e = n(i.nextEl), this.params.uniqueNavElements && "string" == typeof i.nextEl && e.length > 1 && 1 === this.$el.find(i.nextEl).length && (e = this.$el.find(i.nextEl))), i.prevEl && (t = n(i.prevEl), this.params.uniqueNavElements && "string" == typeof i.prevEl && t.length > 1 && 1 === this.$el.find(i.prevEl).length && (t = this.$el.find(i.prevEl))), e && e.length > 0 && e.on("click", this.navigation.onNextClick), t && t.length > 0 && t.on("click", this.navigation.onPrevClick), d.extend(this.navigation, { 1846 $nextEl: e, 1847 nextEl: e && e[0], 1848 $prevEl: t, 1849 prevEl: t && t[0] 1850 })) 1851 }, destroy: function () { 1852 var e = this.navigation, t = e.$nextEl, i = e.$prevEl; 1853 t && t.length && (t.off("click", this.navigation.onNextClick), t.removeClass(this.params.navigation.disabledClass)), i && i.length && (i.off("click", this.navigation.onPrevClick), i.removeClass(this.params.navigation.disabledClass)) 1854 } 1855 }, oe = { 1856 update: function () { 1857 var e = this.rtl, t = this.params.pagination; 1858 if (t.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) { 1859 var i, 1860 s = this.virtual && this.params.virtual.enabled ? this.virtual.slides.length : this.slides.length, 1861 a = this.pagination.$el, 1862 r = this.params.loop ? Math.ceil((s - 2 * this.loopedSlides) / this.params.slidesPerGroup) : this.snapGrid.length;
1863 if (this.params.loop ? ((i = Math.ceil((this.activeIndex - this.loopedSlides) / this.params.slidesPerGroup)) > s - 1 - 2 * this.loopedSlides && (i -= s - 2 * this.loopedSlides), i > r - 1 && (i -= r), i < 0 && "bullets" !== this.params.paginationType && (i = r + i)) : i = void 0 !== this.snapIndex ? this.snapIndex : this.activeIndex || 0, "bullets" === t.type && this.pagination.bullets && this.pagination.bullets.length > 0) { 1864 var o, l, d, h = this.pagination.bullets; 1865 if (t.dynamicBullets && (this.pagination.bulletSize = h.eq(0)[this.isHorizontal() ? "outerWidth" : "outerHeight"](!0), a.css(this.isHorizontal() ? "width" : "height", this.pagination.bulletSize * (t.dynamicMainBullets + 4) + "px"), t.dynamicMainBullets > 1 && void 0 !== this.previousIndex && (this.pagination.dynamicBulletIndex += i - this.previousIndex, this.pagination.dynamicBulletIndex > t.dynamicMainBullets - 1 ? this.pagination.dynamicBulletIndex = t.dynamicMainBullets - 1 : this.pagination.dynamicBulletIndex < 0 && (this.pagination.dynamicBulletIndex = 0)), o = i - this.pagination.dynamicBulletIndex, d = ((l = o + (Math.min(h.length, t.dynamicMainBullets) - 1)) + o) / 2), h.removeClass(t.bulletActiveClass + " " + t.bulletActiveClass + "-next " + t.bulletActiveClass + "-next-next " + t.bulletActiveClass + "-prev " + t.bulletActiveClass + "-prev-prev " + t.bulletActiveClass + "-main"), a.length > 1) h.each((function (e, s) { 1866 var a = n(s), r = a.index(); 1867 r === i && a.addClass(t.bulletActiveClass), t.dynamicBullets && (r >= o && r <= l && a.addClass(t.bulletActiveClass + "-main"), r === o && a.prev().addClass(t.bulletActiveClass + "-prev").prev().addClass(t.bulletActiveClass + "-prev-prev"), r === l && a.next().addClass(t.bulletActiveClass + "-next").next().addClass(t.bulletActiveClass + "-next-next")) 1868 })); else { 1869 var p = h.eq(i), c = p.index(); 1870 if (p.addClass(t.bulletActiveClass), t.dynamicBullets) { 1871 for (var u = h.eq(o), v = h.eq(l), f = o;
1871 f <= l; f += 1) h.eq(f).addClass(t.bulletActiveClass + "-main"); 1872 if (this.params.loop) if (c >= h.length - t.dynamicMainBullets) { 1873 for (var m = t.dynamicMainBullets; m >= 0; m -= 1) h.eq(h.length - m).addClass(t.bulletActiveClass + "-main"); 1874 h.eq(h.length - t.dynamicMainBullets - 1).addClass(t.bulletActiveClass + "-prev") 1875 } else u.prev().addClass(t.bulletActiveClass + "-prev").prev().addClass(t.bulletActiveClass + "-prev-prev"), v.next().addClass(t.bulletActiveClass + "-next").next().addClass(t.bulletActiveClass + "-next-next"); else u.prev().addClass(t.bulletActiveClass + "-prev").prev().addClass(t.bulletActiveClass + "-prev-prev"), v.next().addClass(t.bulletActiveClass + "-next").next().addClass(t.bulletActiveClass + "-next-next") 1876 } 1877 } 1878 if (t.dynamicBullets) { 1879 var g = Math.min(h.length, t.dynamicMainBullets + 4), 1880 b = (this.pagination.bulletSize * g - this.pagination.bulletSize) / 2 - d * this.pagination.bulletSize, 1881 w = e ? "right" : "left"; 1882 h.css(this.isHorizontal() ? w : "top", b + "px") 1883 } 1884 } 1885 if ("fraction" === t.type && (a.find("." + t.currentClass).text(t.formatFractionCurrent(i + 1)), a.find("." + t.totalClass).text(t.formatFractionTotal(r))), "progressbar" === t.type) { 1886 var y; 1887 y = t.progressbarOpposite ? this.isHorizontal() ? "vertical" : "horizontal" : this.isHorizontal() ? "horizontal" : "vertical"; 1888 var x = (i + 1) / r, E = 1, T = 1; 1889 "horizontal" === y ? E = x : T = x, a.find("." + t.progressbarFillClass).transform("translate3d(0,0,0) scaleX(" + E + ") scaleY(" + T + ")").transition(this.params.speed) 1890 } 1891 "custom" === t.type && t.renderCustom ? (a.html(t.renderCustom(this, i + 1, r)), this.emit("paginationRender", this, a[0])) : this.emit("paginationUpdate", this, a[0]), a[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](t.lockClass) 1892 } 1893 }, render: function () { 1894 var e = this.params.pagination; 1895 if (e.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) { 1896 var t = this.virtual && this.params.virtual.enabled ? this.virtual.slides.length : this.slides.length, 1897 i = this.pagination.$el, s = ""; 1898 if ("bullets" === e.type) { 1899 for (var a = this.params.loop ? Math.ceil((t - 2 * this.loopedSlides) / this.params.slidesPerGroup) : this.snapGrid.length, r = 0; r < a; r += 1) e.renderBullet ? s += e.renderBullet.call(this, r, e.bulletClass) : s += "<" + e.bulletElement + ' class="' + e.bulletClass + '"></' + e.bulletElement + ">"; 1900 i.html(s), this.pagination.bullets = i.find("." + e.bulletClass) 1901 } 1902 "fraction" === e.type && (s = e.renderFraction ? e.renderFraction.call(this, e.currentClass, e.totalClass) : '<span class="' + e.currentClass + '"></span> / <span class="' + e.totalClass + '"></span>', i.html(s)), "progressbar" === e.type && (s = e.renderProgressbar ? e.renderProgressbar.call(this, e.progressbarFillClass) : '<span class="' + e.progressbarFillClass + '"></span>', i.html(s)), "custom" !== e.type && this.emit("paginationRender", this.pagination.$el[0]) 1903 } 1904 }, init: function () { 1905 var e = this, t = e.params.pagination; 1906 if (t.el) { 1907 var i = n(t.el); 1908 0 !== i.length && (e.params.uniqueNavElements && "string" == typeof t.el && i.length > 1 && (i = e.$el.find(t.el)), "bullets" === t.type && t.clickable && i.addClass(t.clickableClass), i.addClass(t.modifierClass + t.type), "bullets" === t.type && t.dynamicBullets && (i.addClass("" + t.modifierClass + t.type + "-dynamic"), e.pagination.dynamicBulletIndex = 0, t.dynamicMainBullets < 1 && (t.dynamicMainBullets = 1)), "progressbar" === t.type && t.progressbarOpposite && i.addClass(t.progressbarOppositeClass), t.clickable && i.on("click", "." + t.bulletClass, (function (t) { 1909 t.preventDefault(); 1910 var i = n(this).index() * e.params.slidesPerGroup; 1911 e.params.loop && (i += e.loopedSlides), e.slideTo(i) 1912 })), d.extend(e.pagination, {$el: i, el: i[0]})) 1913 } 1914 }, destroy: function () { 1915 var e = this.params.pagination; 1916 if (e.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) { 1917 var t = this.pagination.$el; 1918 t.removeClass(e.hiddenClass), t.removeClass(e.modifierClass + e.type), this.pagination.bullets && this.pagination.bullets.removeClass(e.bulletActiveClass), e.clickable && t.off("click", "." + e.bulletClass) 1919 } 1920 } 1921 }, le = { 1922 setTranslate: function () { 1923 if (this.params.scrollbar.el && this.scrollbar.el) { 1924 var e = this.scrollbar, t = this.rtlTranslate, i = this.progress, s = e.dragSize, a = e.trackSize, 1925 r = e.$dragEl, n = e.$el, o = this.params.scrollbar, l = s, d = (a
1925- s) * i; 1926 t ? (d = -d) > 0 ? (l = s - d, d = 0) : -d + s > a && (l = a + d) : d < 0 ? (l = s + d, d = 0) : d + s > a && (l = a - d), this.isHorizontal() ? (r.transform("translate3d(" + d + "px, 0, 0)"), r[0].style.width = l + "px") : (r.transform("translate3d(0px, " + d + "px, 0)"), r[0].style.height = l + "px"), o.hide && (clearTimeout(this.scrollbar.timeout), n[0].style.opacity = 1, this.scrollbar.timeout = setTimeout((function () { 1927 n[0].style.opacity = 0, n.transition(400) 1928 }), 1e3)) 1929 } 1930 }, setTransition: function (e) { 1931 this.params.scrollbar.el && this.scrollbar.el && this.scrollbar.$dragEl.transition(e) 1932 }, updateSize: function () { 1933 if (this.params.scrollbar.el && this.scrollbar.el) { 1934 var e = this.scrollbar, t = e.$dragEl, i = e.$el; 1935 t[0].style.width = "", t[0].style.height = ""; 1936 var s, a = this.isHorizontal() ? i[0].offsetWidth : i[0].offsetHeight, r = this.size / this.virtualSize, 1937 n = r * (a / this.size); 1938 s = "auto" === this.params.scrollbar.dragSize ? a * r : parseInt(this.params.scrollbar.dragSize, 10), this.isHorizontal() ? t[0].style.width = s + "px" : t[0].style.height = s + "px", i[0].style.display = r >= 1 ? "none" : "", this.params.scrollbar.hide && (i[0].style.opacity = 0), d.extend(e, { 1939 trackSize: a, 1940 divider: r, 1941 moveDivider: n, 1942 dragSize: s 1943 }), e.$el[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](this.params.scrollbar.lockClass) 1944 } 1945 }, getPointerPosition: function (e) { 1946 return this.isHorizontal() ? "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].clientX : e.clientX : "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].clientY : e.clientY 1947 }, setDragPosition: function (e) { 1948 var t, i = this.scrollbar, s = this.rtlTranslate, a = i.$el, r = i.dragSize, n = i.trackSize, 1949 o = i.dragStartPos; 1950 t = (i.getPointerPosition(e) - a.offset()[this.isHorizontal() ? "left" : "top"] - (null !== o ? o : r / 2)) / (n - r), t = Math.max(Math.min(t, 1), 0), s && (t = 1 - t); 1951 var l = this.minTranslate() + (this.maxTranslate() - this.minTranslate()) * t; 1952 this.updateProgress(l), this.setTranslate(l), this.updateActiveIndex(), this.updateSlidesClasses() 1953 }, onDragStart: function (e) { 1954 var t = this.params.scrollbar, i = this.scrollbar, s = this.$wrapperEl, a = i.$el, r = i.$dragEl; 1955 this.scrollbar.isTouched = !0, this.scrollbar.dragStartPos = e.target === r[0] || e.target === r ? i.getPointerPosition(e) - e.target.getBoundingClientRect()[this.isHorizontal() ? "left" : "top"] : null, e.preventDefault(), e.stopPropagation(), s.transition(100), r.transition(100), i.setDragPosition(e), clearTimeout(this.scrollbar.dragTimeout), a.transition(0), t.hide && a.css("opacity", 1), this.params.cssMode && this.$wrapperEl.css("scroll-snap-type", "none"), this.emit("scrollbarDragStart", e) 1956 }, onDragMove: function (e) { 1957 var t = this.scrollbar, i = this.$wrapperEl, s = t.$el, a = t.$dragEl; 1958 this.scrollbar.isTouched && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, t.setDragPosition(e), i.transition(0), s.transition(0), a.transition(0), this.emit("scrollbarDragMove", e)) 1959 }, onDragEnd: function (e) { 1960 var t = this.params.scrollbar, i = this.scrollbar, s = this.$wrapperEl, a = i.$el; 1961 this.scrollbar.isTouched && (this.scrollbar.isTouched = !1, this.params.cssMode && (this.$wrapperEl.css("scroll-snap-type", ""), s.transition("")), t.hide && (clearTimeout(this.scrollbar.dragTimeout), this.scrollbar.dragTimeout = d.nextTick((function () { 1962 a.css("opacity", 0), a.transition(400) 1963 }), 1e3)), this.emit("scrollbarDragEnd", e), t.snapOnRelease && this.slideToClosest()) 1964 }, enableDraggable: function () { 1965 if (this.params.scrollbar.el) { 1966 var e = this.scrollbar, t = this.touchEventsTouch, s = this.touchEventsDesktop, a = this.params, 1967 r = e.$el[0], n = !(!h.passiveListener || !a.passiveListeners) && {passive: !1, capture: !1}, 1968 o = !(!h.passiveListener || !a.passiveListeners) && {passive: !0, capture: !1};
vendor: 21,564 bytes, lines 1969-2185
1969 h.touch ? (r.addEventListener(t.start, this.scrollbar.onDragStart, n), r.addEventListener(t.move, this.scrollbar.onDragMove, n), r.addEventListener(t.end, this.scrollbar.onDragEnd, o)) : (r.addEventListener(s.start, this.scrollbar.onDragStart, n), i.addEventListener(s.move, this.scrollbar.onDragMove, n), i.addEventListener(s.end, this.scrollbar.onDragEnd, o)) 1970 } 1971 }, disableDraggable: function () { 1972 if (this.params.scrollbar.el) { 1973 var e = this.scrollbar, t = this.touchEventsTouch, s = this.touchEventsDesktop, a = this.params, 1974 r = e.$el[0], n = !(!h.passiveListener || !a.passiveListeners) && {passive: !1, capture: !1}, 1975 o = !(!h.passiveListener || !a.passiveListeners) && {passive: !0, capture: !1}; 1976 h.touch ? (r.removeEventListener(t.start, this.scrollbar.onDragStart, n), r.removeEventListener(t.move, this.scrollbar.onDragMove, n), r.removeEventListener(t.end, this.scrollbar.onDragEnd, o)) : (r.removeEventListener(s.start, this.scrollbar.onDragStart, n), i.removeEventListener(s.move, this.scrollbar.onDragMove, n), i.removeEventListener(s.end, this.scrollbar.onDragEnd, o)) 1977 } 1978 }, init: function () { 1979 if (this.params.scrollbar.el) { 1980 var e = this.scrollbar, t = this.$el, i = this.params.scrollbar, s = n(i.el); 1981 this.params.uniqueNavElements && "string" == typeof i.el && s.length > 1 && 1 === t.find(i.el).length && (s = t.find(i.el)); 1982 var a = s.find("." + this.params.scrollbar.dragClass); 1983 0 === a.length && (a = n('<div class="' + this.params.scrollbar.dragClass + '"></div>'), s.append(a)), d.extend(e, { 1984 $el: s, 1985 el: s[0], 1986 $dragEl: a, 1987 dragEl: a[0] 1988 }), i.draggable && e.enableDraggable() 1989 } 1990 }, destroy: function () { 1991 this.scrollbar.disableDraggable() 1992 } 1993 }, de = { 1994 setTransform: function (e, t) { 1995 var i = this.rtl, s = n(e), a = i ? -1 : 1, r = s.attr("data-swiper-parallax") || "0", 1996 o = s.attr("data-swiper-parallax-x"), l = s.attr("data-swiper-parallax-y"), 1997 d = s.attr("data-swiper-parallax-scale"), h = s.attr("data-swiper-parallax-opacity"); 1998 if (o || l ? (o = o || "0", l = l || "0") : this.isHorizontal() ? (o = r, l = "0") : (l = r, o = "0"), o = o.indexOf("%") >= 0 ? parseInt(o, 10) * t * a + "%" : o * t * a + "px", l = l.indexOf("%") >= 0 ? parseInt(l, 10) * t + "%" : l * t + "px", null != h) { 1999 var p = h - (h - 1) * (1 - Math.abs(t)); 2000 s[0].style.opacity = p 2001 } 2002 if (null == d) s.transform("translate3d(" + o + ", " + l + ", 0px)"); else { 2003 var c = d - (d - 1) * (1 - Math.abs(t)); 2004 s.transform("translate3d(" + o + ", " + l + ", 0px) scale(" + c + ")") 2005 } 2006 }, setTranslate: function () { 2007 var e = this, t = e.$el, i = e.slides, s = e.progress, a = e.snapGrid; 2008 t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function (t, i) { 2009 e.parallax.setTransform(i, s) 2010 })), i.each((function (t, i) { 2011 var r = i.progress; 2012 e.params.slidesPerGroup > 1 && "auto" !== e.params.slidesPerView && (r += Math.ceil(t / 2) - s * (a.length - 1)), r = Math.min(Math.max(r, -1), 1), n(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function (t, i) { 2013 e.parallax.setTransform(i, r) 2014 })) 2015 })) 2016 }, setTransition: function (e) { 2017 void 0 === e && (e = this.params.speed); 2018 this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function (t, i) { 2019 var s = n(i), a = parseInt(s.attr("data-swiper-parallax-duration"), 10) || e; 2020 0 === e && (a = 0), s.transition(a) 2021 })) 2022 } 2023 }, he = { 2024 getDistanceBetweenTouches: function (e) { 2025 if (e.targetTouches.length < 2) return 1; 2026 var t = e.targetTouches[0].pageX, i = e.targetTouches[0].pageY, s = e.targetTouches[1].pageX, 2027 a = e.targetTouches[1].pageY; 2028 return Math.sqrt(Math.pow(s - t, 2) + Math.pow(a - i, 2)) 2029 }, onGestureStart: function (e) { 2030 var t = this.params.zoom, i = this.zoom, s = i.gesture; 2031 if (i.fakeGestureTouched = !1, i.fakeGestureMoved = !1, !h.gestures) { 2032 if ("touchstart" !== e.type || "touchstart" === e.type && e.targetTouches.length < 2) return; 2033 i.fakeGestureTouched = !0, s.scaleStart = he.getDistanceBetweenTouches(e) 2034 } 2035 s.$slideEl && s.$slideEl.length || (s.$slideEl = n(e.target).closest("." + this.params.slideClass), 0 === s.$slideEl.length && (s.$slideEl = this.slides.eq(this.activeIndex)), s.$imageEl = s.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"), s.$imageWrapEl = s.$imageEl.parent("." + t.containerClass), s.maxRatio = s.$imageWrapEl.attr("data-swiper-zoom") || t.maxRatio, 0 !== s.$imageWrapEl.length) ? (s.$imageEl && s.$imageEl.transition(0), this.zoom.isScaling = !0) : s.$imageEl = void 0 2036 }, onGestureChange: function (e) { 2037 var t = this.params.zoom, i = this.zoom, s = i.gesture; 2038 if (!h.gestures) { 2039 if ("touchmove" !== e.type || "touchmove" === e.type && e.targetTouches.length < 2) return; 2040 i.fakeGestureMoved = !0, s.scaleMove = he.getDistanceBetweenTouches(e) 2041 } 2042 s.$imageEl && 0 !== s.$imageEl.length && (i.scale = h.gestures ? e.scale * i.currentScale : s.scaleMove / s.scaleStart * i.currentScale, i.scale > s.maxRatio && (i.scale = s.maxRatio - 1 + Math.pow(i.scale - s.maxRatio + 1, .5)), i.scale < t.minRatio && (i.scale = t.minRatio + 1 - Math.pow(t.minRatio - i.scale + 1, .5)), s.$imageEl.transform("translate3d(0,0,0) scale(" + i.scale + ")")) 2043 }, onGestureEnd: function (e) { 2044 var t = this.params.zoom, i = this.zoom, s = i.gesture; 2045 if (!h.gestures) { 2046 if (!i.fakeGestureTouched || !i.fakeGestureMoved) return; 2047 if ("touchend" !== e.type || "touchend" === e.type && e.changedTouches.length < 2 && !A.android) return; 2048 i.fakeGestureTouched = !1, i.fakeGestureMoved = !1 2049 } 2050 s.$imageEl && 0 !== s.$imageEl.length && (i.scale = Math.max(Math.min(i.scale, s.maxRatio), t.minRatio), s.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale(" + i.scale + ")"), i.currentScale = i.scale, i.isScaling = !1, 1 === i.scale && (s.$slideEl = void 0)) 2051 }, onTouchStart: function (e) { 2052 var t = this.zoom, i = t.gesture, s = t.image; 2053 i.$imageEl && 0 !== i.$imageEl.length && (s.isTouched || (A.android && e.cancelable && e.preventDefault(), s.isTouched = !0, s.touchesStart.x = "touchstart" === e.type ? e.targetTouches[0].pageX : e.pageX, s.touchesStart.y = "touchstart" === e.type ? e.targetTouches[0].pageY : e.pageY)) 2054 }, onTouchMove: function (e) { 2055 var t = this.zoom, i = t.gesture, s = t.image, a = t.velocity; 2056 if (i.$imageEl && 0 !== i.$imageEl.length && (this.allowClick = !1, s.isTouched && i.$slideEl)) { 2057 s.isMoved || (s.width = i.$imageEl[0].offsetWidth, s.height = i.$imageEl[0].offsetHeight, s.startX = d.getTranslate(i.$imageWrapEl[0], "x") || 0, s.startY = d.getTranslate(i.$imageWrapEl[0], "y") || 0, i.slideWidth = i.$slideEl[0].offsetWidth, i.slideHeight = i.$slideEl[0].offsetHeight, i.$imageWrapEl.transition(0), this.rtl && (s.startX = -s.startX, s.startY = -s.startY)); 2058 var r = s.width * t.scale, n = s.height * t.scale; 2059 if (!(r < i.slideWidth && n < i.slideHeight)) { 2060 if (s.minX = Math.min(i.slideWidth / 2 - r / 2, 0), s.maxX = -s.minX, s.minY = Math.min(i.slideHeight / 2 - n / 2, 0), s.maxY = -s.minY, s.touchesCurrent.x = "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX, s.touchesCurrent.y = "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY, !s.isMoved && !t.isScaling) { 2061 if (this.isHorizontal() && (Math.floor(s.minX) === Math.floor(s.startX) && s.touchesCurrent.x < s.touchesStart.x || Math.floor(s.maxX) === Math.floor(s.startX) && s.touchesCurrent.x > s.touchesStart.x)) return void (s.isTouched = !1); 2062 if (!this.isHorizontal() && (Math.floor(s.minY) === Math.floor(s.startY) && s.touchesCurrent.y < s.touchesStart.y || Math.floor(s.maxY) === Math.floor(s.startY) && s.touchesCurrent.y > s.touchesStart.y)) return void (s.isTouched = !1) 2063 } 2064 e.cancelable && e.preventDefault(), e.stopPropagation(), s.isMoved = !0, s.currentX = s.touchesCurrent.x - s.touchesStart.x + s.startX, s.currentY = s.touchesCurrent.y - s.touchesStart.y + s.startY, s.currentX < s.minX && (s.currentX = s.minX + 1 - Math.pow(s.minX - s.currentX + 1, .8)), s.currentX > s.maxX && (s.currentX = s.maxX - 1 + Math.pow(s.currentX - s.maxX + 1, .8)), s.currentY < s.minY && (s.currentY = s.minY + 1 - Math.pow(s.minY - s.currentY + 1, .8)), s.currentY > s.maxY && (s.currentY = s.maxY - 1 + Math.pow(s.currentY - s.maxY + 1, .8)), a.prevPositionX || (a.prevPositionX = s.touchesCurrent.x), a.prevPositionY || (a.prevPositionY = s.touchesCurrent.y), a.prevTime || (a.prevTime = Date.now()), a.x = (s.touchesCurrent.x - a.prevPositionX) / (Date.now() - a.prevTime) / 2, a.y = (s.touchesCurrent.y - a.prevPositionY) / (Date.now() - a.prevTime) / 2, Math.abs(s.touchesCurrent.x - a.prevPositionX) < 2 && (a.x = 0), Math.abs(s.touchesCurrent.y - a.prevPositionY) < 2 && (a.y = 0), a.prevPositionX = s.touchesCurrent.x, a.prevPositionY = s.touchesCurrent.y, a.prevTime = Date.now(), i.$imageWrapEl.transform("translate3d(" + s.currentX + "px, " + s.currentY + "px,0)") 2065 } 2066 } 2067 }, onTouchEnd: function () { 2068 var e = this.zoom, t = e.gesture, i = e.image, s = e.velocity; 2069 if (t.$imageEl && 0 !== t.$imageEl.length) { 2070 if (!i.isTouched || !i.isMoved) return i.isTouched = !1, void (i.isMoved = !1); 2071 i.isTouched = !1, i.isMoved = !1; 2072 var a = 300, r = 300, n = s.x * a, o = i.currentX + n, l = s.y * r, d = i.currentY + l; 2073 0 !== s.x && (a = Math.abs((o - i.currentX) / s.x)), 0 !== s.y && (r = Math.abs((d - i.currentY) / s.y)); 2074 var h = Math.max(a, r); 2075 i.currentX = o, i.currentY = d; 2076 var p = i.width * e.scale, c = i.height * e.scale; 2077 i.minX = Math.min(t.slideWidth / 2 - p / 2, 0), i.maxX = -i.minX, i.minY = Math.min(t.slideHeight / 2 - c / 2, 0), i.maxY = -i.minY, i.currentX = Math.max(Math.min(i.currentX, i.maxX), i.minX), i.currentY = Math.max(Math.min(i.currentY, i.maxY), i.minY), t.$imageWrapEl.transition(h).transform("translate3d(" + i.currentX + "px, " + i.currentY + "px,0)") 2078 } 2079 }, onTransitionEnd: function () { 2080 var e = this.zoom, t = e.gesture; 2081 t.$slideEl && this.previousIndex !== this.activeIndex && (t.$imageEl && t.$imageEl.transform("translate3d(0,0,0) scale(1)"), t.$imageWrapEl && t.$imageWrapEl.transform("translate3d(0,0,0)"), e.scale = 1, e.currentScale = 1, t.$slideEl = void 0, t.$imageEl = void 0, t.$imageWrapEl = void 0) 2082 }, toggle: function (e) { 2083 var t = this.zoom; 2084 t.scale && 1 !== t.scale ? t.out() : t.in(e) 2085 }, in: function (e) { 2086 var t, i, s, a, r, n, o, l, d, h, p, c, u, v, f, m, g = this.zoom, b = this.params.zoom, w = g.gesture, 2087 y = g.image; 2088 (w.$slideEl || (this.params.virtual && this.params.virtual.enabled && this.virtual ? w.$slideEl = this.$wrapperEl.children("." + this.params.slideActiveClass) : w.$slideEl = this.slides.eq(this.activeIndex), w.$imageEl = w.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"), w.$imageWrapEl = w.$imageEl.parent("." + b.containerClass)), w.$imageEl && 0 !== w.$imageEl.length) && (w.$slideEl.addClass("" + b.zoomedSlideClass), void 0 === y.touchesStart.x && e ? (t = "touchend" === e.type ? e.changedTouches[0].pageX : e.pageX, i = "touchend" === e.type ? e.changedTouches[0].pageY : e.pageY) : (t = y.touchesStart.x, i = y.touchesStart.y), g.scale = w.$imageWrapEl.attr("data-swiper-zoom") || b.maxRatio, g.currentScale = w.$imageWrapEl.attr("data-swiper-zoom") || b.maxRatio, e ? (f = w.$slideEl[0].offsetWidth, m = w.$slideEl[0].offsetHeight, s = w.$slideEl.offset().left + f / 2 - t, a = w.$slideEl.offset().top + m / 2 - i, o = w.$imageEl[0].offsetWidth, l = w.$imageEl[0].offsetHeight, d = o * g.scale, h = l * g.scale, u = -(p = Math.min(f / 2 - d / 2, 0)), v = -(c = Math.min(m / 2 - h / 2, 0)), (r = s * g.scale) < p && (r = p), r > u && (r = u), (n = a * g.scale) < c && (n = c), n > v && (n = v)) : (r = 0, n = 0), w.$imageWrapEl.transition(300).transform("translate3d(" + r + "px, " + n + "px,0)"), w.$imageEl.transition(300).transform("translate3d(0,0,0) scale(" + g.scale + ")")) 2089 }, out: function () { 2090 var e = this.zoom, t = this.params.zoom, i = e.gesture; 2091 i.$slideEl || (this.params.virtual && this.params.virtual.enabled && this.virtual ? i.$slideEl = this.$wrapperEl.children("." + this.params.slideActiveClass) : i.$slideEl = this.slides.eq(this.activeIndex), i.$imageEl = i.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"), i.$imageWrapEl = i.$imageEl.parent("." + t.containerClass)), i.$imageEl && 0 !== i.$imageEl.length && (e.scale = 1, e.currentScale = 1, i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"), i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"), i.$slideEl.removeClass("" + t.zoomedSlideClass), i.$slideEl = void 0) 2092 }, enable: function () { 2093 var e = this.zoom; 2094 if (!e.enabled) { 2095 e.enabled = !0; 2096 var t = !("touchstart" !== this.touchEvents.start || !h.passiveListener || !this.params.passiveListeners) && { 2097 passive: !0, 2098 capture: !1 2099 }, i = !h.passiveListener || {passive: !1, capture: !0}, s = "." + this.params.slideClass; 2100 h.gestures ? (this.$wrapperEl.on("gesturestart", s, e.onGestureStart, t), this.$wrapperEl.on("gesturechange", s, e.onGestureChange, t), this.$wrapperEl.on("gestureend", s, e.onGestureEnd, t)) : "touchstart" === this.touchEvents.start && (this.$wrapperEl.on(this.touchEvents.start, s, e.onGestureStart, t), this.$wrapperEl.on(this.touchEvents.move, s, e.onGestureChange, i), this.$wrapperEl.on(this.touchEvents.end, s, e.onGestureEnd, t), this.touchEvents.cancel && this.$wrapperEl.on(this.touchEvents.cancel, s, e.onGestureEnd, t)), this.$wrapperEl.on(this.touchEvents.move, "." + this.params.zoom.containerClass, e.onTouchMove, i) 2101 } 2102 }, disable: function () { 2103 var e = this.zoom; 2104 if (e.enabled) { 2105 this.zoom.enabled = !1; 2106 var t = !("touchstart" !== this.touchEvents.start || !h.passiveListener || !this.params.passiveListeners) && { 2107 passive: !0, 2108 capture: !1 2109 }, i = !h.passiveListener || {passive: !1, capture: !0}, s = "." + this.params.slideClass; 2110 h.gestures ? (this.$wrapperEl.off("gesturestart", s, e.onGestureStart, t), this.$wrapperEl.off("gesturechange", s, e.onGestureChange, t), this.$wrapperEl.off("gestureend", s, e.onGestureEnd, t)) : "touchstart" === this.touchEvents.start && (this.$wrapperEl.off(this.touchEvents.start, s, e.onGestureStart, t), this.$wrapperEl.off(this.touchEvents.move, s, e.onGestureChange, i), this.$wrapperEl.off(this.touchEvents.end, s, e.onGestureEnd, t), this.touchEvents.cancel && this.$wrapperEl.off(this.touchEvents.cancel, s, e.onGestureEnd, t)), this.$wrapperEl.off(this.touchEvents.move, "." + this.params.zoom.containerClass, e.onTouchMove, i) 2111 } 2112 } 2113 }, pe = { 2114 loadInSlide: function (e, t) { 2115 void 0 === t && (t = !0); 2116 var i = this, s = i.params.lazy; 2117 if (void 0 !== e && 0 !== i.slides.length) { 2118 var a = i.virtual && i.params.virtual.enabled ? i.$wrapperEl.children("." + i.params.slideClass + '[data-swiper-slide-index="' + e + '"]') : i.slides.eq(e), 2119 r = a.find("." + s.elementClass + ":not(." + s.loadedClass + "):not(." + s.loadingClass + ")"); 2120 !a.hasClass(s.elementClass) || a.hasClass(s.loadedClass) || a.hasClass(s.loadingClass) || (r = r.add(a[0])), 0 !== r.length && r.each((function (e, r) { 2121 var o = n(r); 2122 o.addClass(s.loadingClass); 2123 var l = o.attr("data-background"), d = o.attr("data-src"), h = o.attr("data-srcset"), 2124 p = o.attr("data-sizes"), c = o.parent("picture"); 2125 i.loadImage(o[0], d || l, h, p, !1, (function () { 2126 if (null != i && i && (!i || i.params) && !i.destroyed) { 2127 if (l ? (o.css("background-image", 'url("' + l + '")'), o.removeAttr("data-background")) : (h && (o.attr("srcset", h), o.removeAttr("data-srcset")), p && (o.attr("sizes", p), o.removeAttr("data-sizes")), c.length && c.children("source").each((function (e, t) { 2128 var i = n(t); 2129 i.attr("data-srcset") && (i.attr("srcset", i.attr("data-srcset")), i.removeAttr("data-srcset")) 2130 })), d && (o.attr("src", d), o.removeAttr("data-src"))), o.addClass(s.loadedClass).removeClass(s.loadingClass), a.find("." + s.preloaderClass).remove(), i.params.loop && t) { 2131 var e = a.attr("data-swiper-slide-index"); 2132 if (a.hasClass(i.params.slideDuplicateClass)) { 2133 var r = i.$wrapperEl.children('[data-swiper-slide-index="' + e + '"]:not(.' + i.params.slideDuplicateClass + ")"); 2134 i.lazy.loadInSlide(r.index(), !1) 2135 } else { 2136 var u = i.$wrapperEl.children("." + i.params.slideDuplicateClass + '[data-swiper-slide-index="' + e + '"]'); 2137 i.lazy.loadInSlide(u.index(), !1) 2138 } 2139 } 2140 i.emit("lazyImageReady", a[0], o[0]), i.params.autoHeight && i.updateAutoHeight() 2141 } 2142 })), i.emit("lazyImageLoad", a[0], o[0]) 2143 })) 2144 } 2145 }, load: function () { 2146 var e = this, t = e.$wrapperEl, i = e.params, s = e.slides, a = e.activeIndex, 2147 r = e.virtual && i.virtual.enabled, o = i.lazy, l = i.slidesPerView; 2148 2149 function d(e) { 2150 if (r) { 2151 if (t.children("." + i.slideClass + '[data-swiper-slide-index="' + e + '"]').length) return !0 2152 } else if (s[e]) return !0; 2153 return !1 2154 } 2155 2156 function h(e) { 2157 return r ? n(e).attr("data-swiper-slide-index") : n(e).index() 2158 } 2159 2160 if ("auto" === l && (l = 0), e.lazy.initialImageLoaded || (e.lazy.initialImageLoaded = !0), e.params.watchSlidesVisibility) t.children("." + i.slideVisibleClass).each((function (t, i) { 2161 var s = r ? n(i).attr("data-swiper-slide-index") : n(i).index(); 2162 e.lazy.loadInSlide(s) 2163 })); else if (l > 1) for (var p = a; p < a + l; p += 1) d(p) && e.lazy.loadInSlide(p); else e.lazy.loadInSlide(a); 2164 if (o.loadPrevNext) if (l > 1 || o.loadPrevNextAmount && o.loadPrevNextAmount > 1) { 2165 for (var c = o.loadPrevNextAmount, u = l, v = Math.min(a + u + Math.max(c, u), s.length), f = Math.max(a - Math.max(u, c), 0), m = a + l; m < v; m += 1) d(m) && e.lazy.loadInSlide(m); 2166 for (var g = f; g < a; g += 1) d(g) && e.lazy.loadInSlide(g) 2167 } else { 2168 var b = t.children("." + i.slideNextClass); 2169 b.length > 0 && e.lazy.loadInSlide(h(b)); 2170 var w = t.children("." + i.slidePrevClass); 2171 w.length > 0 && e.lazy.loadInSlide(h(w)) 2172 } 2173 } 2174 }, ce = { 2175 LinearSpline: function (e, t) { 2176 var i, s, a, r, n, o = function (e, t) { 2177 for (s = -1, i = e.length; i - s > 1;) e[a = i + s >> 1] <= t ? s = a : i = a; 2178 return i 2179 }; 2180 return this.x = e, this.y = t, this.lastIndex = e.length - 1, this.interpolate = function (e) { 2181 return e ? (n = o(this.x, e), r = n - 1, (e - this.x[r]) * (this.y[n] - this.y[r]) / (this.x[n] - this.x[r]) + this.y[r]) : 0 2182 }, this 2183 }, getInterpolateFunction: function (e) { 2184 this.controller.spline || (this.controller.spline = this.params.loop ? new ce.LinearSpline(this.slidesGrid, e.slidesGrid) : new ce.LinearSpline(this.snapGrid, e.snapGrid)) 2185 }, setTranslate: function (e, t) {
2186 var i, s, a = this, r = a.controller.control; 2187 2188 function n(e) { 2189 var t = a.rtlTranslate ? -a.translate : a.translate; 2190 "slide" === a.params.controller.by && (a.controller.getInterpolateFunction(e), s = -a.controller.spline.interpolate(-t)), s && "container" !== a.params.controller.by || (i = (e.maxTranslate() - e.minTranslate()) / (a.maxTranslate() - a.minTranslate()), s = (t - a.minTranslate()) * i + e.minTranslate()), a.params.controller.inverse && (s = e.maxTranslate() - s), e.updateProgress(s), e.setTranslate(s, a), e.updateActiveIndex(), e.updateSlidesClasses() 2191 } 2192 2193 if (Array.isArray(r)) for (var o = 0; o < r.length; o += 1) r[o] !== t && r[o] instanceof j && n(r[o]); else r instanceof j && t !== r && n(r) 2194 }, setTransition: function (e, t) { 2195 var i, s = this, a = s.controller.control; 2196 2197 function r(t) { 2198 t.setTransition(e, s), 0 !== e && (t.transitionStart(), t.params.autoHeight && d.nextTick((function () { 2199 t.updateAutoHeight() 2200 })), t.$wrapperEl.transitionEnd((function () { 2201 a && (t.params.loop && "slide" === s.params.controller.by && t.loopFix(), t.transitionEnd()) 2202 }))) 2203 } 2204 2205 if (Array.isArray(a)) for (i = 0; i < a.length; i += 1) a[i] !== t && a[i] instanceof j && r(a[i]); else a instanceof j && t !== a && r(a) 2206 } 2207 }, ue = { 2208 makeElFocusable: function (e) { 2209 return e.attr("tabIndex", "0"), e 2210 }, makeElNotFocusable: function (e) { 2211 return e.attr("tabIndex", "-1"), e 2212 }, addElRole: function (e, t) { 2213 return e.attr("role", t), e 2214 }, addElLabel: function (e, t) { 2215 return e.attr("aria-label", t), e 2216 }, disableEl: function (e) { 2217 return e.attr("aria-disabled", !0), e 2218 }, enableEl: function (e) { 2219 return e.attr("aria-disabled", !1), e 2220 }, onEnterKey: function (e) { 2221 var t = this.params.a11y; 2222 if (13 === e.keyCode) { 2223 var i = n(e.target); 2224 this.navigation && this.navigation.$nextEl && i.is(this.navigation.$nextEl) && (this.isEnd && !this.params.loop || this.slideNext(), this.isEnd ? this.a11y.notify(t.lastSlideMessage) : this.a11y.notify(t.nextSlideMessage)), this.navigation && this.navigation.$prevEl && i.is(this.navigation.$prevEl) && (this.isBeginning && !this.params.loop || this.slidePrev(), this.isBeginning ? this.a11y.notify(t.firstSlideMessage) : this.a11y.notify(t.prevSlideMessage)), this.pagination && i.is("." + this.params.pagination.bulletClass) && i[0].click() 2225 } 2226 }, notify: function (e) { 2227 var t = this.a11y.liveRegion; 2228 0 !== t.length && (t.html(""), t.html(e)) 2229 }, updateNavigation: function () { 2230 if (!this.params.loop && this.navigation) { 2231 var e = this.navigation, t = e.$nextEl, i = e.$prevEl; 2232 i && i.length > 0 && (this.isBeginning ? (this.a11y.disableEl(i), this.a11y.makeElNotFocusable(i)) : (this.a11y.enableEl(i), this.a11y.makeElFocusable(i))), t && t.length > 0 && (this.isEnd ? (this.a11y.disableEl(t), this.a11y.makeElNotFocusable(t)) : (this.a11y.enableEl(t), this.a11y.makeElFocusable(t))) 2233 } 2234 }, updatePagination: function () { 2235 var e = this, t = e.params.a11y; 2236 e.pagination && e.params.pagination.clickable && e.pagination.bullets && e.pagination.bullets.length && e.pagination.bullets.each((function (i, s) { 2237 var a = n(s); 2238 e.a11y.makeElFocusable(a), e.a11y.addElRole(a, "button"), e.a11y.addElLabel(a, t.paginationBulletMessage.replace(/\{\{index\}\}/, a.index() + 1)) 2239 })) 2240 }, init: function () { 2241 this.$el.append(this.a11y.liveRegion); 2242 var e, t, i = this.params.a11y; 2243 this.navigation && this.navigation.$nextEl && (e = this.navigation.$nextEl), this.navigation && this.navigation.$prevEl && (t = this.navigation.$prevEl), e && (this.a11y.makeElFocusable(e), this.a11y.addElRole(e, "button"), this.a11y.addElLabel(e, i.nextSlideMessage), e.on("key
2243down", this.a11y.onEnterKey)), t && (this.a11y.makeElFocusable(t), this.a11y.addElRole(t, "button"), this.a11y.addElLabel(t, i.prevSlideMessage), t.on("keydown", this.a11y.onEnterKey)), this.pagination && this.params.pagination.clickable && this.pagination.bullets && this.pagination.bullets.length && this.pagination.$el.on("keydown", "." + this.params.pagination.bulletClass, this.a11y.onEnterKey) 2244 }, destroy: function () { 2245 var e, t; 2246 this.a11y.liveRegion && this.a11y.liveRegion.length > 0 && this.a11y.liveRegion.remove(), this.navigation && this.navigation.$nextEl && (e = this.navigation.$nextEl), this.navigation && this.navigation.$prevEl && (t = this.navigation.$prevEl), e && e.off("keydown", this.a11y.onEnterKey), t && t.off("keydown", this.a11y.onEnterKey), this.pagination && this.params.pagination.clickable && this.pagination.bullets && this.pagination.bullets.length && this.pagination.$el.off("keydown", "." + this.params.pagination.bulletClass, this.a11y.onEnterKey) 2247 } 2248 }, ve = { 2249 init: function () { 2250 if (this.params.history) { 2251 if (!a.history || !a.history.pushState) return this.params.history.enabled = !1, void (this.params.hashNavigation.enabled = !0); 2252 var e = this.history; 2253 e.initialized = !0, e.paths = ve.getPathValues(), (e.paths.key || e.paths.value) && (e.scrollToSlide(0, e.paths.value, this.params.runCallbacksOnInit), this.params.history.replaceState || a.addEventListener("popstate", this.history.setHistoryPopState)) 2254 } 2255 }, destroy: function () { 2256 this.params.history.replaceState || a.removeEventListener("popstate", this.history.setHistoryPopState) 2257 }, setHistoryPopState: function () { 2258 this.history.paths = ve.getPathValues(), this.history.scrollToSlide(this.params.speed, this.history.paths.value, !1) 2259 }, getPathValues: function () { 2260 var e = a.location.pathname.slice(1).split("/").filter((function (e) { 2261 return "" !== e 2262 })), t = e.length; 2263 return {key: e[t - 2], value: e[t - 1]} 2264 }, setHistory: function (e, t) { 2265 if (this.history.initialized && this.params.history.enabled) { 2266 var i = this.slides.eq(t), s = ve.slugify(i.attr("data-history")); 2267 a.location.pathname.includes(e) || (s = e + "/" + s); 2268 var r = a.history.state; 2269 r && r.value === s || (this.params.history.replaceState ? a.history.replaceState({value: s}, null, s) : a.history.pushState({value: s}, null, s)) 2270 } 2271 }, slugify: function (e) { 2272 return e.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, "") 2273 }, scrollToSlide: function (e, t, i) { 2274 if (t) for (var s = 0, a = this.slides.length; s < a; s += 1) { 2275 var r = this.slides.eq(s); 2276 if (ve.slugify(r.attr("data-history")) === t && !r.hasClass(this.params.slideDuplicateClass)) { 2277 var n = r.index(); 2278 this.slideTo(n, e, i) 2279 } 2280 } else this.slideTo(0, e, i) 2281 } 2282 }, fe = { 2283 onHashCange: function () { 2284 this.emit("hashChange"); 2285 var e = i.location.hash.replace("#", ""); 2286 if (e !== this.slides.eq(this.activeIndex).attr("data-hash")) { 2287 var t = this.$wrapperEl.children("." + this.params.slideClass + '[data-hash="' + e + '"]').index(); 2288 if (void 0 === t) return; 2289 this.slideTo(t) 2290 } 2291 }, setHash: function () { 2292 if (this.hashNavigation.initialized && this.params.hashNavigation.enabled) if (this.params.hashNavigation.replaceState && a.history && a.history.replaceState) a.history.replaceState(null, null, "#" + this.slides.eq(this.activeIndex).attr("data-hash") || ""), this.emit("hashSet"); else { 2293 var e = this.slides.eq(this.activeIndex), t = e.attr("data-hash") || e.attr("data-history");
2294 i.location.hash = t || "", this.emit("hashSet") 2295 } 2296 }, init: function () { 2297 if (!(!this.params.hashNavigation.enabled || this.params.history && this.params.history.enabled)) { 2298 this.hashNavigation.initialized = !0; 2299 var e = i.location.hash.replace("#", ""); 2300 if (e) for (var t = 0, s = this.slides.length; t < s; t += 1) { 2301 var r = this.slides.eq(t); 2302 if ((r.attr("data-hash") || r.attr("data-history")) === e && !r.hasClass(this.params.slideDuplicateClass)) { 2303 var o = r.index(); 2304 this.slideTo(o, 0, this.params.runCallbacksOnInit, !0) 2305 } 2306 } 2307 this.params.hashNavigation.watchState && n(a).on("hashchange", this.hashNavigation.onHashCange) 2308 } 2309 }, destroy: function () { 2310 this.params.hashNavigation.watchState && n(a).off("hashchange", this.hashNavigation.onHashCange) 2311 } 2312 }, me = { 2313 run: function () { 2314 var e = this, t = e.slides.eq(e.activeIndex), i = e.params.autoplay.delay; 2315 t.attr("data-swiper-autoplay") && (i = t.attr("data-swiper-autoplay") || e.params.autoplay.delay), clearTimeout(e.autoplay.timeout), e.autoplay.timeout = d.nextTick((function () { 2316 e.params.autoplay.reverseDirection ? e.params.loop ? (e.loopFix(), e.slidePrev(e.params.speed, !0, !0), e.emit("autoplay")) : e.isBeginning ? e.params.autoplay.stopOnLastSlide ? e.autoplay.stop() : (e.slideTo(e.slides.length - 1, e.params.speed, !0, !0), e.emit("autoplay")) : (e.slidePrev(e.params.speed, !0, !0), e.emit("autoplay")) : e.params.loop ? (e.loopFix(), e.slideNext(e.params.speed, !0, !0), e.emit("autoplay")) : e.isEnd ? e.params.autoplay.stopOnLastSlide ? e.autoplay.stop() : (e.slideTo(0, e.params.speed, !0, !0), e.emit("autoplay")) : (e.slideNext(e.params.speed, !0, !0), e.emit("autoplay")), e.params.cssMode && e.autoplay.running && e.autoplay.run() 2317 }), i) 2318 }, start: function () { 2319 return void 0 === this.autoplay.timeout && (!this.autoplay.running && (this.autoplay.running = !0, this.emit("autoplayStart"), this.autoplay.run(), !0)) 2320 }, stop: function () { 2321 return !!this.autoplay.running && (void 0 !== this.autoplay.timeout && (this.autoplay.timeout && (clearTimeout(this.autoplay.timeout), this.autoplay.timeout = void 0), this.autoplay.running = !1, this.emit("autoplayStop"), !0)) 2322 }, pause: function (e) { 2323 this.autoplay.running && (this.autoplay.paused || (this.autoplay.timeout && clearTimeout(this.autoplay.timeout), this.autoplay.paused = !0, 0 !== e && this.params.autoplay.waitForTransition ? (this.$wrapperEl[0].addEventListener("transitionend", this.autoplay.onTransitionEnd), this.$wrapperEl[0].addEventListener("webkitTransitionEnd", this.autoplay.onTransitionEnd)) : (this.autoplay.paused = !1, this.autoplay.run()))) 2324 } 2325 }, ge = { 2326 setTranslate: function () { 2327 for (var e = this.slides, t = 0; t < e.length; t += 1) { 2328 var i = this.slides.eq(t), s = -i[0].swiperSlideOffset; 2329 this.params.virtualTranslate || (s -= this.translate); 2330 var a = 0; 2331 this.isHorizontal() || (a = s, s = 0); 2332 var r = this.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(i[0].progress), 0) : 1 + Math.min(Math.max(i[0].progress, -1), 0); 2333 i.css({opacity: r}).transform("translate3d(" + s + "px, " + a + "px, 0px)") 2334 } 2335 }, setTransition: function (e) { 2336 var t = this, i = t.slides, s = t.$wrapperEl; 2337 if (i.transition(e), t.params.virtualTranslate && 0 !== e) { 2338 var a = !1; 2339 i.transitionEnd((function () { 2340 if (!a && t && !t.destroyed) { 2341 a = !0, t.animating = !1; 2342 for (var e = ["webkitTransitionEnd", "transitionend"], i = 0; i < e.length; i += 1) s.trigger(e[i]) 2343 } 2344 })) 2345 } 2346 } 2347 }, be = { 2348 setTranslate: function () { 2349 var e, t = this.$el, i = this.$wrapperEl, s = this.slides, a = this.width, r = this.height, 2350 o = this.rtlTranslate, l = this.size, d = this.params.cubeEffect, h = this.isHorizontal(), 2351 p = this.virtual && this.params.virtual.enabled, c = 0; 2352 d.shadow && (h ? (0 === (e = i.find(".swiper-cube-shadow")).length && (e = n('<div class="swiper-cube-shadow"></div>'), i.append(e)), e.css({height: a + "px"})) : 0 === (e = t.find(".swiper-cube-shadow")).length && (e = n('<div class="swiper-cube-shadow"></div>'), t.append(e))); 2353 for (var u = 0; u < s.length; u += 1) { 2354 var v = s.eq(u), f = u; 2355 p && (f = parseInt(v.attr("data-swiper-slide-index"), 10)); 2356 var m = 90 * f, g = Math.floor(m / 360);
vendor: 5,239 bytes, lines 2357-2412
2357 o && (m = -m, g = Math.floor(-m / 360)); 2358 var b = Math.max(Math.min(v[0].progress, 1), -1), w = 0, y = 0, x = 0; 2359 f % 4 == 0 ? (w = 4 * -g * l, x = 0) : (f - 1) % 4 == 0 ? (w = 0, x = 4 * -g * l) : (f - 2) % 4 == 0 ? (w = l + 4 * g * l, x = l) : (f - 3) % 4 == 0 && (w = -l, x = 3 * l + 4 * l * g), o && (w = -w), h || (y = w, w = 0); 2360 var E = "rotateX(" + (h ? 0 : -m) + "deg) rotateY(" + (h ? m : 0) + "deg) translate3d(" + w + "px, " + y + "px, " + x + "px)"; 2361 if (b <= 1 && b > -1 && (c = 90 * f + 90 * b, o && (c = 90 * -f - 90 * b)), v.transform(E), d.slideShadows) { 2362 var T = h ? v.find(".swiper-slide-shadow-left") : v.find(".swiper-slide-shadow-top"), 2363 S = h ? v.find(".swiper-slide-shadow-right") : v.find(".swiper-slide-shadow-bottom"); 2364 0 === T.length && (T = n('<div class="swiper-slide-shadow-' + (h ? "left" : "top") + '"></div>'), v.append(T)), 0 === S.length && (S = n('<div class="swiper-slide-shadow-' + (h ? "right" : "bottom") + '"></div>'), v.append(S)), T.length && (T[0].style.opacity = Math.max(-b, 0)), S.length && (S[0].style.opacity = Math.max(b, 0)) 2365 } 2366 } 2367 if (i.css({ 2368 "-webkit-transform-origin": "50% 50% -" + l / 2 + "px", 2369 "-moz-transform-origin": "50% 50% -" + l / 2 + "px", 2370 "-ms-transform-origin": "50% 50% -" + l / 2 + "px", 2371 "transform-origin": "50% 50% -" + l / 2 + "px" 2372 }), d.shadow) if (h) e.transform("translate3d(0px, " + (a / 2 + d.shadowOffset) + "px, " + -a / 2 + "px) rotateX(90deg) rotateZ(0deg) scale(" + d.shadowScale + ")"); else { 2373 var C = Math.abs(c) - 90 * Math.floor(Math.abs(c) / 90), 2374 M = 1.5 - (Math.sin(2 * C * Math.PI / 360) / 2 + Math.cos(2 * C * Math.PI / 360) / 2), 2375 P = d.shadowScale, z = d.shadowScale / M, k = d.shadowOffset; 2376 e.transform("scale3d(" + P + ", 1, " + z + ") translate3d(0px, " + (r / 2 + k) + "px, " + -r / 2 / z + "px) rotateX(-90deg)") 2377 } 2378 var $ = _.isSafari || _.isWebView ? -l / 2 : 0; 2379 i.transform("translate3d(0px,0," + $ + "px) rotateX(" + (this.isHorizontal() ? 0 : c) + "deg) rotateY(" + (this.isHorizontal() ? -c : 0) + "deg)") 2380 }, setTransition: function (e) { 2381 var t = this.$el; 2382 this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), this.params.cubeEffect.shadow && !this.isHorizontal() && t.find(".swiper-cube-shadow").transition(e) 2383 } 2384 }, we = { 2385 setTranslate: function () { 2386 for (var e = this.slides, t = this.rtlTranslate, i = 0; i < e.length; i += 1) { 2387 var s = e.eq(i), a = s[0].progress; 2388 this.params.flipEffect.limitRotation && (a = Math.max(Math.min(s[0].progress, 1), -1)); 2389 var r = -180 * a, o = 0, l = -s[0].swiperSlideOffset, d = 0; 2390 if (this.isHorizontal() ? t && (r = -r) : (d = l, l = 0, o = -r, r = 0), s[0].style.zIndex = -Math.abs(Math.round(a)) + e.length, this.params.flipEffect.slideShadows) { 2391 var h = this.isHorizontal() ? s.find(".swiper-slide-shadow-left") : s.find(".swiper-slide-shadow-top"), 2392 p = this.isHorizontal() ? s.find(".swiper-slide-shadow-right") : s.find(".swiper-slide-shadow-bottom"); 2393 0 === h.length && (h = n('<div class="swiper-slide-shadow-' + (this.isHorizontal() ? "left" : "top") + '"></div>'), s.append(h)), 0 === p.length && (p = n('<div class="swiper-slide-shadow-' + (this.isHorizontal() ? "right" : "bottom") + '"></div>'), s.append(p)), h.length && (h[0].style.opacity = Math.max(-a, 0)), p.length && (p[0].style.opacity = Math.max(a, 0)) 2394 } 2395 s.transform("translate3d(" + l + "px, " + d + "px, 0px) rotateX(" + o + "deg) rotateY(" + r + "deg)") 2396 } 2397 }, setTransition: function (e) { 2398 var t = this, i = t.slides, s = t.activeIndex, a = t.$wrapperEl; 2399 if (i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), t.params.virtualTranslate && 0 !== e) { 2400 var r = !1; 2401 i.eq(s).transitionEnd((function () { 2402 if (!r && t && !t.destroyed) { 2403 r = !0, t.animating = !1; 2404 for (var e = ["webkitTransitionEnd", "transitionend"], i = 0; i < e.length; i += 1) a.trigger(e[i]) 2405 } 2406 })) 2407 } 2408 } 2409 }, ye = { 2410 setTranslate: function () { 2411 for (var e = this.width, t = this.height, i = this.slides, s = this.$wrapperEl, a = this.slidesSizesGrid, r = this.params.coverflowEffect, o = this.isHorizontal(), l = this.translate, d = o ? e / 2 - l : t / 2 - l, p = o ? r.rotate : -r.rotate, c = r.depth, u = 0, v = i.length; u < v; u += 1) { 2412 var f = i.eq(u), m = a[u], g = (d - f[0].swiperSlideOffset - m / 2) / m * r.modifier, b = o ? p * g : 0,
2413 w = o ? 0 : p * g, y = -c * Math.abs(g), x = r.stretch; 2414 "string" == typeof x && -1 !== x.indexOf("%") && (x = parseFloat(r.stretch) / 100 * m); 2415 var E = o ? 0 : x * g, T = o ? x * g : 0, S = 1 - (1 - r.scale) * Math.abs(g); 2416 Math.abs(T) < .001 && (T = 0), Math.abs(E) < .001 && (E = 0), Math.abs(y) < .001 && (y = 0), Math.abs(b) < .001 && (b = 0), Math.abs(w) < .001 && (w = 0), Math.abs(S) < .001 && (S = 0); 2417 var C = "translate3d(" + T + "px," + E + "px," + y + "px) rotateX(" + w + "deg) rotateY(" + b + "deg) scale(" + S + ")"; 2418 if (f.transform(C), f[0].style.zIndex = 1 - Math.abs(Math.round(g)), r.slideShadows) { 2419 var M = o ? f.find(".swiper-slide-shadow-left") : f.find(".swiper-slide-shadow-top"), 2420 P = o ? f.find(".swiper-slide-shadow-right") : f.find(".swiper-slide-shadow-bottom"); 2421 0 === M.length && (M = n('<div class="swiper-slide-shadow-' + (o ? "left" : "top") + '"></div>'), f.append(M)), 0 === P.length && (P = n('<div class="swiper-slide-shadow-' + (o ? "right" : "bottom") + '"></div>'), f.append(P)), M.length && (M[0].style.opacity = g > 0 ? g : 0), P.length && (P[0].style.opacity = -g > 0 ? -g : 0) 2422 } 2423 } 2424 (h.pointerEvents || h.prefixedPointerEvents) && (s[0].style.perspectiveOrigin = d + "px 50%") 2425 }, setTransition: function (e) { 2426 this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e) 2427 } 2428 }, xe = { 2429 init: function () { 2430 var e = this.params.thumbs, t = this.constructor; 2431 e.swiper instanceof t ? (this.thumbs.swiper = e.swiper, d.extend(this.thumbs.swiper.originalParams, { 2432 watchSlidesProgress: !0, 2433 slideToClickedSlide: !1 2434 }), d.extend(this.thumbs.swiper.params, { 2435 watchSlidesProgress: !0, 2436 slideToClickedSlide: !1 2437 })) : d.isObject(e.swiper) && (this.thumbs.swiper = new t(d.extend({}, e.swiper, { 2438 watchSlidesVisibility: !0, 2439 watchSlidesProgress: !0, 2440 slideToClickedSlide: !1 2441 })), this.thumbs.swiperCreated = !0), this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass), this.thumbs.swiper.on("tap", this.thumbs.onThumbClick) 2442 }, onThumbClick: function () { 2443 var e = this.thumbs.swiper; 2444 if (e) { 2445 var t = e.clickedIndex, i = e.clickedSlide; 2446 if (!(i && n(i).hasClass(this.params.thumbs.slideThumbActiveClass) || null == t)) { 2447 var s; 2448 if (s = e.params.loop ? parseInt(n(e.clickedSlide).attr("data-swiper-slide-index"), 10) : t, this.params.loop) { 2449 var a = this.activeIndex; 2450 this.slides.eq(a).hasClass(this.params.slideDuplicateClass) && (this.loopFix(), this._clientLeft = this.$wrapperEl[0].clientLeft, a = this.activeIndex); 2451 var r = this.slides.eq(a).prevAll('[data-swiper-slide-index="' + s + '"]').eq(0).index(), 2452 o = this.slides.eq(a).nextAll('[data-swiper-slide-index="' + s + '"]').eq(0).index(); 2453 s = void 0 === r ? o : void 0 === o ? r : o - a < a - r ? o : r 2454 } 2455 this.slideTo(s) 2456 } 2457 } 2458 }, update: function (e) { 2459 var t = this.thumbs.swiper; 2460 if (t) { 2461 var i = "auto" === t.params.slidesPerView ? t.slidesPerViewDynamic() : t.params.slidesPerView, 2462 s = this.params.thumbs.autoScrollOffset, a = s && !t.params.loop; 2463 if (this.realIndex !== t.realIndex || a) { 2464 var r, n, o = t.activeIndex; 2465 if (t.params.loop) { 2466 t.slides.eq(o).hasClass(t.params.slideDuplicateClass) && (t.loopFix(), t._clientLeft = t.$wrapperEl[0].clientLeft, o = t.activeIndex); 2467 var l = t.slides.eq(o).prevAll('[data-swiper-slide-index="' + this.realIndex + '"]').eq(0).index(), 2468 d = t.slides.eq(o).nextAll('[data-swiper-slide-index="' + this.realIndex + '"]').eq(0).index(); 2469 r = void 0 === l ? d : void 0 === d ? l : d - o == o - l ? o : d - o < o - l ? d : l, n = this.activeIndex > this.previousIndex ? "next" : "prev" 2470 } else n = (r = this.realIndex) > this.previousIndex ? "next" : "prev"; 2471 a && (r += "next" === n ? s : -1 * s), t.visibleSlidesIndexes && t.visibleSlidesIndexes.indexOf(r) < 0 && (t.params.centeredSlides ? r = r > o ? r - Math.floor(i / 2) + 1 : r + Math.floor(i / 2) - 1 : r > o && (r = r - i + 1), t.slideTo(r, e ? 0 : void 0)) 2472 } 2473 var h = 1, p = this.params.thumbs.slideThumbActiveClass; 2474 if (this.params.slidesPerView > 1 && !this.params.centeredSlides && (h = this.params.slidesPerView), this.params.thumbs.multipleActiveThumbs || (h = 1), h = Math.floor(h), t.slides.removeClass(p), t.params.loop || t.params.virtual && t.params.virtual.enabled) for (var c = 0; c < h; c += 1) t.$wrapperEl.children('[data-swiper-slide-index="' + (this.realIndex + c) + '"]').addClass(p); else for (var u = 0; u < h; u += 1) t.slides.eq(this.realIndex + u).addClass(p) 2475 } 2476 } 2477 }, Ee = [K, U, Z, Q, ee, ie, ae, { 2478 name: "mousewheel", 2479 params: { 2480 mousewheel: { 2481 enabled: !1, 2482 releaseOnEdges: !1, 2483 invert: !1, 2484 forceToAxis: !1, 2485 sensitivity: 1, 2486 eventsTarged: "container" 2487 } 2488 }, 2489 create: function () { 2490 d.extend(this, { 2491 mousewheel: { 2492 enabled: !1, 2493 enable: re.enable.bind(this), 2494 disable: re.disable.bind(this), 2495 handle: re.handle.bind(this), 2496 handleMouseEnter: re.handleMouseEnter.bind(this), 2497 handleMouseLeave: re.handleMouseLeave.bind(this), 2498 animateSlider: re.animateSlider.bind(this), 2499 releaseScroll: re.releaseScroll.bind(this), 2500 lastScrollTime: d.now(), 2501 lastEventBeforeSnap: void 0, 2502 recentWheelEvents: [] 2503 } 2504 }) 2505 }, 2506 on: { 2507 init: function () { 2508 !this.params.mousewheel.enabled && this.params.cssMode && this.mousewheel.disable(), this.params.mousewheel.enabled && this.mousewheel.enable() 2509 }, destroy: function () { 2510 this.params.cssMode && this.mousewheel.enable(), this.mousewheel.enabled && this.mousewheel.disable() 2511 } 2512 } 2513 }, {
2514 name: "navigation", 2515 params: { 2516 navigation: { 2517 nextEl: null, 2518 prevEl: null, 2519 hideOnClick: !1, 2520 disabledClass: "swiper-button-disabled", 2521 hiddenClass: "swiper-button-hidden", 2522 lockClass: "swiper-button-lock" 2523 } 2524 }, 2525 create: function () { 2526 d.extend(this, { 2527 navigation: { 2528 init: ne.init.bind(this), 2529 update: ne.update.bind(this), 2530 destroy: ne.destroy.bind(this), 2531 onNextClick: ne.onNextClick.bind(this), 2532 onPrevClick: ne.onPrevClick.bind(this) 2533 } 2534 }) 2535 }, 2536 on: { 2537 init: function () { 2538 this.navigation.init(), this.navigation.update() 2539 }, toEdge: function () { 2540 this.navigation.update() 2541 }, fromEdge: function () { 2542 this.navigation.update() 2543 }, destroy: function () { 2544 this.navigation.destroy() 2545 }, click: function (e) { 2546 var t, i = this.navigation, s = i.$nextEl, a = i.$prevEl; 2547 !this.params.navigation.hideOnClick || n(e.target).is(a) || n(e.target).is(s) || (s ? t = s.hasClass(this.params.navigation.hiddenClass) : a && (t = a.hasClass(this.params.navigation.hiddenClass)), !0 === t ? this.emit("navigationShow", this) : this.emit("navigationHide", this), s && s.toggleClass(this.params.navigation.hiddenClass), a && a.toggleClass(this.params.navigation.hiddenClass)) 2548 } 2549 } 2550 }, { 2551 name: "pagination", 2552 params: { 2553 pagination: { 2554 el: null, 2555 bulletElement: "span", 2556 clickable: !1, 2557 hideOnClick: !1, 2558 renderBullet: null, 2559 renderProgressbar: null, 2560 renderFraction: null, 2561 renderCustom: null, 2562 progressbarOpposite: !1, 2563 type: "bullets", 2564 dynamicBullets: !1, 2565 dynamicMainBullets: 1, 2566 formatFractionCurrent: function (e) { 2567 return e 2568 }, 2569 formatFractionTotal: function (e) { 2570 return e 2571 }, 2572 bulletClass: "swiper-pagination-bullet", 2573 bulletActiveClass: "swiper-pagination-bullet-active", 2574 modifierClass: "swiper-pagination-", 2575 currentClass: "swiper-pagination-current", 2576 totalClass: "swiper-pagination-total", 2577 hiddenClass: "swiper-pagination-hidden", 2578 progressbarFillClass: "swiper-pagination-progressbar-fill", 2579 progressbarOppositeClass: "swiper-pagination-progressbar-opposite", 2580 clickableClass: "swiper-pagination-clickable", 2581 lockClass: "swiper-pagination-lock" 2582 } 2583 }, 2584 create: function () { 2585 d.extend(this, { 2586 pagination: { 2587 init: oe.init.bind(this), 2588 render: oe.render.bind(this), 2589 update: oe.update.bind(this), 2590 destroy: oe.destroy.bind(this), 2591 dynamicBulletIndex: 0 2592 } 2593 }) 2594 }, 2595 on: { 2596 init: function () { 2597 this.pagination.init(), this.pagination.render(), this.pagination.update() 2598 }, activeIndexChange: function () { 2599 (this.params.loop || void 0 === this.snapIndex) && this.pagination.update() 2600 }, snapIndexChange: function () { 2601 this.params.loop || this.pagination.update() 2602 }, slidesLengthChange: function () { 2603 this.params.loop && (this.pagination.render(), this.pagination.update()) 2604 }, snapGridLengthChange: function () { 2605 this.params.loop || (this.pagination.render(), this.pagination.update()) 2606 }, destroy: function () { 2607 this.pagination.destroy() 2608 }, click: function (e) { 2609 this.params.pagination.el && this.params.pagination.hideOnClick && this.pagination.$el.length > 0 && !n(e.target).hasClass(this.params.pagination.bulletClass) && (!0 === this.pagination.$el.hasClass(this.params.pagination.hiddenClass) ? this.emit
vendor: 15,309 bytes, lines 2609-2949
2609("paginationShow", this) : this.emit("paginationHide", this), this.pagination.$el.toggleClass(this.params.pagination.hiddenClass)) 2610 } 2611 } 2612 }, { 2613 name: "scrollbar", 2614 params: { 2615 scrollbar: { 2616 el: null, 2617 dragSize: "auto", 2618 hide: !1, 2619 draggable: !1, 2620 snapOnRelease: !0, 2621 lockClass: "swiper-scrollbar-lock", 2622 dragClass: "swiper-scrollbar-drag" 2623 } 2624 }, 2625 create: function () { 2626 d.extend(this, { 2627 scrollbar: { 2628 init: le.init.bind(this), 2629 destroy: le.destroy.bind(this), 2630 updateSize: le.updateSize.bind(this), 2631 setTranslate: le.setTranslate.bind(this), 2632 setTransition: le.setTransition.bind(this), 2633 enableDraggable: le.enableDraggable.bind(this), 2634 disableDraggable: le.disableDraggable.bind(this), 2635 setDragPosition: le.setDragPosition.bind(this), 2636 getPointerPosition: le.getPointerPosition.bind(this), 2637 onDragStart: le.onDragStart.bind(this), 2638 onDragMove: le.onDragMove.bind(this), 2639 onDragEnd: le.onDragEnd.bind(this), 2640 isTouched: !1, 2641 timeout: null, 2642 dragTimeout: null 2643 } 2644 }) 2645 }, 2646 on: { 2647 init: function () { 2648 this.scrollbar.init(), this.scrollbar.updateSize(), this.scrollbar.setTranslate() 2649 }, update: function () { 2650 this.scrollbar.updateSize() 2651 }, resize: function () { 2652 this.scrollbar.updateSize() 2653 }, observerUpdate: function () { 2654 this.scrollbar.updateSize() 2655 }, setTranslate: function () { 2656 this.scrollbar.setTranslate() 2657 }, setTransition: function (e) { 2658 this.scrollbar.setTransition(e) 2659 }, destroy: function () { 2660 this.scrollbar.destroy() 2661 } 2662 } 2663 }, { 2664 name: "parallax", params: {parallax: {enabled: !1}}, create: function () { 2665 d.extend(this, { 2666 parallax: { 2667 setTransform: de.setTransform.bind(this), 2668 setTranslate: de.setTranslate.bind(this), 2669 setTransition: de.setTransition.bind(this) 2670 } 2671 }) 2672 }, on: { 2673 beforeInit: function () { 2674 this.params.parallax.enabled && (this.params.watchSlidesProgress = !0, this.originalParams.watchSlidesProgress = !0) 2675 }, init: function () { 2676 this.params.parallax.enabled && this.parallax.setTranslate() 2677 }, setTranslate: function () { 2678 this.params.parallax.enabled && this.parallax.setTranslate() 2679 }, setTransition: function (e) { 2680 this.params.parallax.enabled && this.parallax.setTransition(e) 2681 } 2682 } 2683 }, { 2684 name: "zoom", 2685 params: { 2686 zoom: { 2687 enabled: !1, 2688 maxRatio: 3, 2689 minRatio: 1, 2690 toggle: !0, 2691 containerClass: "swiper-zoom-container", 2692 zoomedSlideClass: "swiper-slide-zoomed" 2693 } 2694 }, 2695 create: function () { 2696 var e = this, t = { 2697 enabled: !1, 2698 scale: 1, 2699 currentScale: 1, 2700 isScaling: !1, 2701 gesture: { 2702 $slideEl: void 0, 2703 slideWidth: void 0, 2704 slideHeight: void 0, 2705 $imageEl: void 0, 2706 $imageWrapEl: void 0, 2707 maxRatio: 3 2708 }, 2709 image: { 2710 isTouched: void 0, 2711 isMoved: void 0, 2712 currentX: void 0, 2713 currentY: void 0, 2714 minX: void 0, 2715 minY: void 0, 2716 maxX: void 0, 2717 maxY: void 0, 2718 width: void 0, 2719 height: void 0, 2720 startX: void 0, 2721 startY: void 0, 2722 touchesStart: {}, 2723 touchesCurrent: {} 2724 }, 2725 velocity: {x: void 0, y: void 0, prevPositionX: void 0, prevPositionY: void 0, prevTime: void 0} 2726 }; 2727 "onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function (i) { 2728 t[i] = he[i].bind(e) 2729 })), d.extend(e, {zoom: t}); 2730 var i = 1; 2731 Object.defineProperty(e.zoom, "scale", { 2732 get: function () { 2733 return i 2734 }, set: function (t) { 2735 if (i !== t) { 2736 var s = e.zoom.gesture.$imageEl ? e.zoom.gesture.$imageEl[0] : void 0, 2737 a = e.zoom.gesture.$slideEl ? e.zoom.gesture.$slideEl[0] : void 0; 2738 e.emit("zoomChange", t, s, a) 2739 } 2740 i = t 2741 } 2742 }) 2743 }, 2744 on: { 2745 init: function () { 2746 this.params.zoom.enabled && this.zoom.enable() 2747 }, destroy: function () { 2748 this.zoom.disable() 2749 }, touchStart: function (e) { 2750 this.zoom.enabled && this.zoom.onTouchStart(e) 2751 }, touchEnd: function (e) { 2752 this.zoom.enabled && this.zoom.onTouchEnd(e) 2753 }, doubleTap: function (e) { 2754 this.params.zoom.enabled && this.zoom.enabled && this.params.zoom.toggle && this.zoom.toggle(e) 2755 }, transitionEnd: function () { 2756 this.zoom.enabled && this.params.zoom.enabled && this.zoom.onTransitionEnd() 2757 }, slideChange: function () { 2758 this.zoom.enabled && this.params.zoom.enabled && this.params.cssMode && this.zoom.onTransitionEnd() 2759 } 2760 } 2761 }, { 2762 name: "lazy", 2763 params: { 2764 lazy: { 2765 enabled: !1, 2766 loadPrevNext: !1, 2767 loadPrevNextAmount: 1, 2768 loadOnTransitionStart: !1, 2769 elementClass: "swiper-lazy", 2770 loadingClass: "swiper-lazy-loading", 2771 loadedClass: "swiper-lazy-loaded", 2772 preloaderClass: "swiper-lazy-preloader" 2773 } 2774 }, 2775 create: function () { 2776 d.extend(this, { 2777 lazy: { 2778 initialImageLoaded: !1, 2779 load: pe.load.bind(this), 2780 loadInSlide: pe.loadInSlide.bind(this) 2781 } 2782 }) 2783 }, 2784 on: { 2785 beforeInit: function () { 2786 this.params.lazy.enabled && this.params.preloadImages && (this.params.preloadImages = !1) 2787 }, init: function () { 2788 this.params.lazy.enabled && !this.params.loop && 0 === this.params.initialSlide && this.lazy.load() 2789 }, scroll: function () { 2790 this.params.freeMode && !this.params.freeModeSticky && this.lazy.load() 2791 }, resize: function () { 2792 this.params.lazy.enabled && this.lazy.load() 2793 }, scrollbarDragMove: function () { 2794 this.params.lazy.enabled && this.lazy.load() 2795 }, transitionStart: function () { 2796 this.params.lazy.enabled && (this.params.lazy.loadOnTransitionStart || !this.params.lazy.loadOnTransitionStart && !this.lazy.initialImageLoaded) && this.lazy.load() 2797 }, transitionEnd: function () { 2798 this.params.lazy.enabled && !this.params.lazy.loadOnTransitionStart && this.lazy.load() 2799 }, slideChange: function () { 2800 this.params.lazy.enabled && this.params.cssMode && this.lazy.load() 2801 } 2802 } 2803 }, { 2804 name: "controller", params: {controller: {control: void 0, inverse: !1, by: "slide"}}, create: function () { 2805 d.extend(this, { 2806 controller: { 2807 control: this.params.controller.control, 2808 getInterpolateFunction: ce.getInterpolateFunction.bind(this), 2809 setTranslate: ce.setTranslate.bind(this), 2810 setTransition: ce.setTransition.bind(this) 2811 } 2812 }) 2813 }, on: { 2814 update: function () { 2815 this.controller.control && this.controller.spline && (this.controller.spline = void 0, delete this.controller.spline) 2816 }, resize: function () { 2817 this.controller.control && this.controller.spline && (this.controller.spline = void 0, delete this.controller.spline) 2818 }, observerUpdate: function () { 2819 this.controller.control && this.controller.spline && (this.controller.spline = void 0, delete this.controller.spline) 2820 }, setTranslate: function (e, t) { 2821 this.controller.control && this.controller.setTranslate(e, t) 2822 }, setTransition: function (e, t) { 2823 this.controller.control && this.controller.setTransition(e, t) 2824 } 2825 } 2826 }, { 2827 name: "a11y", 2828 params: { 2829 a11y: { 2830 enabled: !0, 2831 notificationClass: "swiper-notification", 2832 prevSlideMessage: "Previous slide", 2833 nextSlideMessage: "Next slide", 2834 firstSlideMessage: "This is the first slide", 2835 lastSlideMessage: "This is the last slide", 2836 paginationBulletMessage: "Go to slide {{index}}" 2837 } 2838 }, 2839 create: function () { 2840 var e = this; 2841 d.extend(e, {a11y: {liveRegion: n('<span class="' + e.params.a11y.notificationClass + '" aria-live="assertive" aria-atomic="true"></span>')}}), Object.keys(ue).forEach((function (t) { 2842 e.a11y[t] = ue[t].bind(e) 2843 })) 2844 }, 2845 on: { 2846 init: function () { 2847 this.params.a11y.enabled && (this.a11y.init(), this.a11y.updateNavigation()) 2848 }, toEdge: function () { 2849 this.params.a11y.enabled && this.a11y.updateNavigation() 2850 }, fromEdge: function () { 2851 this.params.a11y.enabled && this.a11y.updateNavigation() 2852 }, paginationUpdate: function () { 2853 this.params.a11y.enabled && this.a11y.updatePagination() 2854 }, destroy: function () { 2855 this.params.a11y.enabled && this.a11y.destroy() 2856 } 2857 } 2858 }, { 2859 name: "history", params: {history: {enabled: !1, replaceState: !1, key: "slides"}}, create: function () { 2860 d.extend(this, { 2861 history: { 2862 init: ve.init.bind(this), 2863 setHistory: ve.setHistory.bind(this), 2864 setHistoryPopState: ve.setHistoryPopState.bind(this), 2865 scrollToSlide: ve.scrollToSlide.bind(this), 2866 destroy: ve.destroy.bind(this) 2867 } 2868 }) 2869 }, on: { 2870 init: function () { 2871 this.params.history.enabled && this.history.init() 2872 }, destroy: function () { 2873 this.params.history.enabled && this.history.destroy() 2874 }, transitionEnd: function () { 2875 this.history.initialized && this.history.setHistory(this.params.history.key, this.activeIndex) 2876 }, slideChange: function () { 2877 this.history.initialized && this.params.cssMode && this.history.setHistory(this.params.history.key, this.activeIndex) 2878 } 2879 } 2880 }, { 2881 name: "hash-navigation", 2882 params: {hashNavigation: {enabled: !1, replaceState: !1, watchState: !1}}, 2883 create: function () { 2884 d.extend(this, { 2885 hashNavigation: { 2886 initialized: !1, 2887 init: fe.init.bind(this), 2888 destroy: fe.destroy.bind(this), 2889 setHash: fe.setHash.bind(this), 2890 onHashCange: fe.onHashCange.bind(this) 2891 } 2892 }) 2893 }, 2894 on: { 2895 init: function () { 2896 this.params.hashNavigation.enabled && this.hashNavigation.init() 2897 }, destroy: function () { 2898 this.params.hashNavigation.enabled && this.hashNavigation.destroy() 2899 }, transitionEnd: function () { 2900 this.hashNavigation.initialized && this.hashNavigation.setHash() 2901 }, slideChange: function () { 2902 this.hashNavigation.initialized && this.params.cssMode && this.hashNavigation.setHash() 2903 } 2904 } 2905 }, { 2906 name: "autoplay", 2907 params: { 2908 autoplay: { 2909 enabled: !1, 2910 delay: 3e3, 2911 waitForTransition: !0, 2912 disableOnInteraction: !0, 2913 stopOnLastSlide: !1, 2914 reverseDirection: !1 2915 } 2916 }, 2917 create: function () { 2918 var e = this; 2919 d.extend(e, { 2920 autoplay: { 2921 running: !1, 2922 paused: !1, 2923 run: me.run.bind(e), 2924 start: me.start.bind(e), 2925 stop: me.stop.bind(e), 2926 pause: me.pause.bind(e), 2927 onVisibilityChange: function () { 2928 "hidden" === document.visibilityState && e.autoplay.running && e.autoplay.pause(), "visible" === document.visibilityState && e.autoplay.paused && (e.autoplay.run(), e.autoplay.paused = !1) 2929 }, 2930 onTransitionEnd: function (t) { 2931 e && !e.destroyed && e.$wrapperEl && t.target === this && (e.$wrapperEl[0].removeEventListener("transitionend", e.autoplay.onTransitionEnd), e.$wrapperEl[0].removeEventListener("webkitTransitionEnd", e.autoplay.onTransitionEnd), e.autoplay.paused = !1, e.autoplay.running ? e.autoplay.run() : e.autoplay.stop()) 2932 } 2933 } 2934 }) 2935 }, 2936 on: { 2937 init: function () { 2938 this.params.autoplay.enabled && (this.autoplay.start(), document.addEventListener("visibilitychange", this.autoplay.onVisibilityChange)) 2939 }, beforeTransitionStart: function (e, t) { 2940 this.autoplay.running && (t || !this.params.autoplay.disableOnInteraction ? this.autoplay.pause(e) : this.autoplay.stop()) 2941 }, sliderFirstMove: function () { 2942 this.autoplay.running && (this.params.autoplay.disableOnInteraction ? this.autoplay.stop() : this.autoplay.pause()) 2943 }, touchEnd: function () { 2944 this.params.cssMode && this.autoplay.paused && !this.params.autoplay.disableOnInteraction && this.autoplay.run() 2945 }, destroy: function () { 2946 this.autoplay.running && this.autoplay.stop(), document.removeEventListener("visibilitychange", this.autoplay.onVisibilityChange) 2947 } 2948 } 2949 }, {
2950 name: "effect-fade", params: {fadeEffect: {crossFade: !1}}, create: function () { 2951 d.extend(this, { 2952 fadeEffect: { 2953 setTranslate: ge.setTranslate.bind(this), 2954 setTransition: ge.setTransition.bind(this) 2955 } 2956 }) 2957 }, on: { 2958 beforeInit: function () { 2959 if ("fade" === this.params.effect) { 2960 this.classNames.push(this.params.containerModifierClass + "fade"); 2961 var e = { 2962 slidesPerView: 1, 2963 slidesPerColumn: 1, 2964 slidesPerGroup: 1, 2965 watchSlidesProgress: !0, 2966 spaceBetween: 0, 2967 virtualTranslate: !0 2968 }; 2969 d.extend(this.params, e), d.extend(this.originalParams, e) 2970 } 2971 }, setTranslate: function () { 2972 "fade" === this.params.effect && this.fadeEffect.setTranslate() 2973 }, setTransition: function (e) { 2974 "fade" === this.params.effect && this.fadeEffect.setTransition(e) 2975 } 2976 } 2977 }, { 2978 name: "effect-cube", 2979 params: {cubeEffect: {slideShadows: !0, shadow: !0, shadowOffset: 20, shadowScale: .94}}, 2980 create: function () { 2981 d.extend(this, { 2982 cubeEffect: { 2983 setTranslate: be.setTranslate.bind(this), 2984 setTransition: be.setTransition.bind(this) 2985 } 2986 }) 2987 }, 2988 on: { 2989 beforeInit: function () { 2990 if ("cube" === this.params.effect) { 2991 this.classNames.push(this.params.containerModifierClass + "cube"), this.classNames.push(this.params.containerModifierClass + "3d"); 2992 var e = { 2993 slidesPerView: 1, 2994 slidesPerColumn: 1, 2995 slidesPerGroup: 1, 2996 watchSlidesProgress: !0, 2997 resistanceRatio: 0, 2998 spaceBetween: 0, 2999 centeredSlides: !1, 3000 virtualTranslate: !0 3001 }; 3002 d.extend(this.params, e), d.extend(this.originalParams, e) 3003 } 3004 }, setTranslate: function () { 3005 "cube" === this.params.effect && this.cubeEffect.setTranslate() 3006 }, setTransition: function (e) { 3007 "cube" === this.params.effect && this.cubeEffect.setTransition(e) 3008 } 3009 } 3010 }, { 3011 name: "effect-flip", params: {flipEffect: {slideShadows: !0, limitRotation: !0}}, create: function () { 3012 d.extend(this, { 3013 flipEffect: { 3014 setTranslate: we.setTranslate.bind(this), 3015 setTransition: we.setTransition.bind(this) 3016 } 3017 }) 3018 }, on: { 3019 beforeInit: function () { 3020 if ("flip" === this.params.effect) { 3021 this.classNames.push(this.params.containerModifierClass + "flip"), this.classNames.push(this.params.containerModifierClass + "3d"); 3022 var e = { 3023 slidesPerView: 1, 3024 slidesPerColumn: 1, 3025 slidesPerGroup: 1, 3026 watchSlidesProgress: !0, 3027 spaceBetween: 0, 3028 virtualTranslate: !0 3029 }; 3030 d.extend(this.params, e), d.extend(this.originalParams, e) 3031 } 3032 }, setTranslate: function () { 3033 "flip" === this.params.effect && this.flipEffect.setTranslate() 3034 }, setTransition: function (e) { 3035 "flip" === this.params.effect && this.flipEffect.setTransition(e) 3036 } 3037 } 3038 }, { 3039 name: "effect-coverflow", 3040 params: {coverflowEffect: {rotate: 50, stretch: 0, depth: 100, scale: 1, modifier: 1, slideShadows: !0}}, 3041 create: function () { 3042 d.extend(this, { 3043 coverflowEffect: { 3044 setTranslate: ye.setTranslate.bind(this), 3045 setTransition: ye.setTransition.bind(this) 3046 } 3047 }) 3048 }, 3049 on: { 3050 beforeInit: function () { 3051 "coverflow" === this.params.effect && (this.classNames.push(this.params.containerModifierClass + "coverflow"), this.classNames.push(this.params.containerModifierClass + "3d"), this.params.watchSlidesProgress = !0, this.originalParams.watchSlidesProgress = !0) 3052 }, setTranslate: function () { 3053 "coverflow" === this.params.effect && this.coverflowEffect.setTranslate() 3054 }, setTransition: function (e) { 3055 "coverflow" === this.params.effect && this.coverflowEffect.setTransition(e) 3056 } 3057 } 3058 }, {
vendor: 1,649 bytes, lines 3059-3101
3059 name: "thumbs", 3060 params: { 3061 thumbs: { 3062 swiper: null, 3063 multipleActiveThumbs: !0, 3064 autoScrollOffset: 0, 3065 slideThumbActiveClass: "swiper-slide-thumb-active", 3066 thumbsContainerClass: "swiper-container-thumbs" 3067 } 3068 }, 3069 create: function () { 3070 d.extend(this, { 3071 thumbs: { 3072 swiper: null, 3073 init: xe.init.bind(this), 3074 update: xe.update.bind(this), 3075 onThumbClick: xe.onThumbClick.bind(this) 3076 } 3077 }) 3078 }, 3079 on: { 3080 beforeInit: function () { 3081 var e = this.params.thumbs; 3082 e && e.swiper && (this.thumbs.init(), this.thumbs.update(!0)) 3083 }, slideChange: function () { 3084 this.thumbs.swiper && this.thumbs.update() 3085 }, update: function () { 3086 this.thumbs.swiper && this.thumbs.update() 3087 }, resize: function () { 3088 this.thumbs.swiper && this.thumbs.update() 3089 }, observerUpdate: function () { 3090 this.thumbs.swiper && this.thumbs.update() 3091 }, setTransition: function (e) { 3092 var t = this.thumbs.swiper; 3093 t && t.setTransition(e) 3094 }, beforeDestroy: function () { 3095 var e = this.thumbs.swiper; 3096 e && this.thumbs.swiperCreated && e && e.destroy() 3097 } 3098 } 3099 }]; 3100 return void 0 === j.use && (j.use = j.Class.use, j.installModule = j.Class.installModule), j.use(Ee), j 3101}));
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.