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