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