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