1"use strict"; 2 3function _typeof(t) { 4 return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { 5 return typeof t 6 } : function(t) { 7 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 8 })(t) 9}! function() { 10 var i = { 11 d: function(t, n) { 12 for (var e in n) i.o(n, e) && !i.o(t, e) && Object.defineProperty(t, e, { 13 enumerable: !0, 14 get: n[e] 15 }) 16 }, 17 o: function(t, n) { 18 return Object.prototype.hasOwnProperty.call(t, n) 19 }, 20 r: function(t) { 21 "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { 22 value: "Module" 23 }), Object.defineProperty(t, "__esModule", { 24 value: !0 25 }) 26 } 27 }, 28 s = {}; 29 30 function r() { 31 return (r = Object.assign || function(t) { 32 for (var n = 1; n < arguments.length; n++) { 33 var e, i = arguments[n]; 34 for (e in i) Object.prototype.hasOwnProperty.call(i, e) && (t[e] = i[e]) 35 } 36 return t 37 }).apply(this, arguments) 38 } 39 i.r(s), i.d(s, { 40 CREATED: function() { 41 return c 42 }, 43 DESTROYED: function() { 44 return nt 45 }, 46 IDLE: function() { 47 return d 48 }, 49 MOUNTED: function() { 50 return tt 51 }, 52 MOVING: function() { 53 return A 54 } 55 }); 56 var R = Object.keys; 57 58 function y(e, i) { 59 R(e).some(function(t, n) { 60 return i(e[t], t, n) 61 }) 62 } 63 64 function B(n) { 65 return R(n).map(function(t) { 66 return n[t] 67 }) 68 } 69 70 function f(t) { 71 return "object" == _typeof(t) 72 } 73 74 function a(t, n) { 75 var e = r({}, t); 76 return y(n, function(t, n) { 77 f(t) ? (f(e[n]) || (e[n] = {}), e[n] = a(e[n], t)) : e[n] = t 78 }), e 79 } 80 81 function o(t) { 82 return Array.isArray(t) ? t : [t] 83 } 84 85 function b(t, n, e) { 86 return Math.min(Math.max(t, e < n ? e : n), e < n ? n : e) 87 } 88 89 function F(t, n) { 90 var e = 0; 91 return t.replace(/%s/g, function() { 92 return o(n)[e++] 93 }) 94 } 95 96 function w(t) { 97 var n = _typeof(t); 98 return "number" === n && 0 < t ? parseFloat(t) + "px" : "string" === n ? t : "" 99 } 100 101 function G(t) { 102 return t < 10 ? "0" + t : t 103 } 104 105 function x(t, n) { 106 var e; 107 return "string" == typeof n && (_(e = h("div", {}), { 108 position: "absolute", 109 width: n 110 }), m(t, e), n = e.clientWidth, g(e)), +n || 0 111 } 112 113 function u(t, n) { 114 return t ? t.querySelector(n.split(" ")[0]) : null 115 } 116 117 function p(t, n) { 118 return X(t, n)[0] 119 } 120 121 function X(t, n) { 122 return t ? B(t.children).filter(function(t) { 123 return Y(t, n.split(" ")[0]) || t.tagName === n 124 }) : [] 125 } 126 127 function h(t, n) { 128 var e = document.createElement(t); 129 return y(n, function(t, n) { 130 return k(e, n, t) 131 }), e 132 } 133 134 function V(t) { 135 var n = h("div", {}); 136 return n.innerHTML = t, n.firstChild 137 } 138 139 function g(t) { 140 o(t).forEach(function(t) { 141 var n; 142 t && (n = t.parentElement) && n.removeChild(t) 143 }) 144 } 145 146 function m(t, n) { 147 t && t.appendChild(n) 148 } 149 150 function U(t, n) { 151 var e; 152 t && n && ((e = n.parentElement) && e.insertBefore(t, n)) 153 } 154 155 function _(e, t) { 156 e && y(t, function(t, n) { 157 null !== t && (e.style[n] = t) 158 }) 159 } 160 161 function e(n, t, e) { 162 n && o(t).forEach(function(t) { 163 t && n.classList[e ? "remove" : "add"](t) 164 }) 165 } 166 167 function v(t, n) { 168 e(t, n, !1) 169 } 170 171 function E(t, n) { 172 e(t, n, !0) 173 } 174 175 function Y(t, n) { 176 return !!t && t.classList.contains(n) 177 } 178 179 function k(t, n, e) { 180 t && t.setAttribute(n, e) 181 } 182 183 function S(t, n) { 184 return t ? t.getAttribute(n) : "" 185 } 186 187 function P(t, n) {
188 o(n).forEach(function(n) { 189 o(t).forEach(function(t) { 190 return t && t.removeAttribute(n) 191 }) 192 }) 193 } 194 195 function C(t) { 196 return t.getBoundingClientRect() 197 } 198 199 function J(u, c) { 200 var d, l; 201 return { 202 mount: function() { 203 d = c.Elements.list, u.on("transitionend", function(t) { 204 t.target === d && l && l() 205 }, d) 206 }, 207 start: function(t, n, e, i, o) { 208 var r = u.options, 209 s = c.Controller.edgeIndex, 210 a = r.speed; 211 l = o, u.is(z) && (0 === e && s <= n || s <= e && 0 === n) && (a = r.rewindSpeed || a), _(d, { 212 transition: "transform " + a + "ms " + r.easing, 213 transform: "translate(" + i.x + "px," + i.y + "px)" 214 }) 215 } 216 } 217 } 218 219 function K(e, s) { 220 function a(t) { 221 var n = e.options; 222 _(s.Elements.slides[t], { 223 transition: "opacity " + n.speed + "ms " + n.easing 224 }) 225 } 226 return { 227 mount: function() { 228 a(e.index) 229 }, 230 start: function(t, n, e, i, o) { 231 var r = s.Elements.track; 232 _(r, { 233 height: w(r.clientHeight) 234 }), a(n), setTimeout(function() { 235 o(), _(r, { 236 height: "" 237 }) 238 }) 239 } 240 } 241 } 242 var z = "slide", 243 I = "loop", 244 M = "fade"; 245 246 function Q(t) { 247 console.error("[SPLIDE] " + t) 248 } 249 250 function Z(t, n) { 251 if (!t) throw new Error(n) 252 } 253 var t = "splide", 254 T = { 255 active: "is-active", 256 visible: "is-visible", 257 loading: "is-loading" 258 }, 259 $ = { 260 type: "slide", 261 rewind: !1, 262 speed: 400, 263 rewindSpeed: 0, 264 waitForTransition: !0, 265 width: 0, 266 height: 0, 267 fixedWidth: 0, 268 fixedHeight: 0, 269 heightRatio: 0, 270 autoWidth: !1, 271 autoHeight: !1, 272 perPage: 1, 273 perMove: 0, 274 clones: 0, 275 start: 0, 276 focus: !1, 277 gap: 0, 278 padding: 0, 279 arrows: !0, 280 arrowPath: "", 281 pagination: !0, 282 autoplay: !1, 283 interval: 5e3, 284 pauseOnHover: !0, 285 pauseOnFocus: !0, 286 resetProgress: !0, 287 lazyLoad: !1, 288 preloadPages: 1, 289 easing: "cubic-bezier(.42,.65,.27,.99)", 290 keyboard: "global", 291 drag: !0, 292 dragAngleThreshold: 30, 293 swipeDistanceThreshold: 150, 294 flickVelocityThreshold: .6, 295 flickPower: 600, 296 flickMaxPages: 1, 297 direction: "ltr", 298 cover: !1, 299 accessibility: !0, 300 slideFocus: !0, 301 isNavigation: !1, 302 trimSpace: !0, 303 updateOnMove: !1, 304 throttle: 100, 305 destroy: !1, 306 breakpoints: !1, 307 classes: { 308 root: t, 309 slider: t + "__slider", 310 track: t + "__track", 311 list: t + "__list", 312 slide: t + "__slide", 313 container: t + "__slide__container", 314 arrows: t + "__arrows", 315 arrow: t + "__arrow", 316 prev: t + "__arrow--prev", 317 next: t + "__arrow--next", 318 pagination: t + "__pagination", 319 page: t + "__pagination__page", 320 clone: t + "__slide--clone", 321 progress: t + "__progress", 322 bar: t + "__progress__bar", 323 autoplay: t + "__autoplay", 324 play: t + "__play", 325 pause: t + "__pause", 326 spinner: t + "__spinner", 327 sr: t + "__sr" 328 }, 329 i18n: { 330 prev: "Previous slide", 331 next: "Next slide", 332 first: "Go to first slide", 333 last: "Go to last slide", 334 slideX: "Go to slide %s", 335 pageX: "Go to page %s", 336 play: "Start autoplay", 337 pause: "Pause autoplay" 338 } 339 }, 340 c = 1, 341 tt = 2, 342 d = 3, 343 A = 4, 344 nt = 5; 345 346 function n(t, n) { 347 for (var e = 0; e < n.length; e++) { 348 var i = n[e]; 349 i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i) 350 } 351 }(t = ot.prototype).mount = function(t, n) { 352 var e, i, o, r = this; 353 void 0 === t && (t = this._e), void 0 === n && (n = this._t), this.State.set(c), this._e = t, this._t = n, this.Components = (i = a((e = this)._c, t), n = n, o = {}, y(i, function(t, n) { 354 o[n] = t(e, o, n.toLowerCase()) 355 }), n = n || (e.is(M) ? K : J), o.Transition = n(e, o), o); 356 try { 357 y(this.Components, function(t, n) { 358 var e = t.required; 359 void 0 === e || e ? t.mount && t.mount() : delete r.Components[n] 360 }) 361 } catch (t) { 362 return void Q(t.message) 363 } 364 var s = this.State; 365 return s.set(tt), y(this.Components, function(t) { 366 t.mounted && t.mounted() 367 }
367), this.emit("mounted"), s.set(d), this.emit("ready"), _(this.root, { 368 visibility: "visible" 369 }), this.on("move drag", function() { 370 return s.set(A) 371 }).on("moved dragged", function() { 372 return s.set(d) 373 }), this 374 }, t.sync = function(t) { 375 return this.sibling = t, this 376 }, t.on = function(t, n, e, i) { 377 return this.Event.on(t, n, e = void 0 === e ? null : e, i = void 0 === i ? {} : i), this 378 }, t.off = function(t, n) { 379 return this.Event.off(t, n = void 0 === n ? null : n), this 380 }, t.emit = function(t) { 381 for (var n, e = arguments.length, i = new Array(1 < e ? e - 1 : 0), o = 1; o < e; o++) i[o - 1] = arguments[o]; 382 return (n = this.Event).emit.apply(n, [t].concat(i)), this 383 }, t.go = function(t, n) { 384 return void 0 === n && (n = this.options.waitForTransition), (this.State.is(d) || this.State.is(A) && !n) && this.Components.Controller.go(t, !1), this 385 }, t.is = function(t) { 386 return t === this._o.type 387 }, t.add = function(t, n) { 388 return this.Components.Elements.add(t, n = void 0 === n ? -1 : n, this.refresh.bind(this)), this 389 }, t.remove = function(t) { 390 return this.Components.Elements.remove(t), this.refresh(), this 391 }, t.refresh = function() { 392 return this.emit("refresh:before").emit("refresh").emit("resize"), this 393 }, t.destroy = function(n) { 394 var t = this; 395 if (void 0 === n && (n = !0), !this.State.is(c)) return B(this.Components).reverse().forEach(function(t) { 396 t.destroy && t.destroy(n) 397 }), this.emit("destroy", n), this.Event.destroy(), this.State.set(nt), this; 398 this.on("ready", function() { 399 return t.destroy(n) 400 }) 401 }, n(ot.prototype, [{ 402 key: "index", 403 get: function() { 404 return this._i 405 }, 406 set: function(t) { 407 this._i = parseInt(t) 408 } 409 }, { 410 key: "length", 411 get: function() { 412 return this.Components.Elements.length 413 } 414 }, { 415 key: "options", 416 get: function() { 417 return this._o 418 }, 419 set: function(t) { 420 var n = this.State.is(c); 421 n || this.emit("update"), this._o = a(this._o, t), n || this.emit("updated", this._o) 422 } 423 }, { 424 key: "classes", 425 get: function() { 426 return this._o.classes 427 } 428 }, { 429 key: "i18n", 430 get: function() { 431 return this._o.i18n 432 } 433 }]); 434 var O = "rtl", 435 L = "ttb", 436 et = "update.slide", 437 it = Math.floor, 438 W = Math.abs; 439 440 function ot(t, n, e) { 441 var i, o; 442 443 function r(t) { 444 t.elm && t.elm.removeEventListener(t.event, t.handler, t.options) 445 } 446 void 0 === n && (n = {}), void 0 === e && (e = {}), this.root = t instanceof Element ? t : document.querySelector(t), Z(this.root, "An invalid element/selector was given."), this.Components = null, this.Event = (o = [], { 447 on: function(t, n, e, i) { 448 void 0 === e && (e = null), void 0 === i && (i = {}), t.split(" ").forEach(function(t) { 449 e && e.addEventListener(t, n, i), o.push({ 450 event: t, 451 handler: n, 452 elm: e, 453 options: i 454 }) 455 }) 456 }, 457 off: function(t, e) { 458 void 0 === e && (e = null), t.split(" ").forEach(function(n) { 459 o = o.filter(function(t) { 460 return !t || t.event !== n || t.elm !== e || (r(t), !1) 461 }) 462 }) 463 }, 464 emit: function(n) { 465 for (var t = arguments.length, e = new Array(1 < t ? t - 1 : 0), i = 1; i < t; i++) e[i - 1] = arguments[i]; 466 o.forEach(function(t) { 467 t.elm || t.event.split(".")[0] !== n || t.handler.apply(t, e) 468 }) 469 }, 470 destroy: function() { 471 o.forEach(r), o = [] 472 } 473 }), this.State = (i = c, { 474 set: function(t) { 475 i = t 476 }, 477 is: function(t) { 478 return t === i 479 } 480 }), this.STATES = s, this._o = a($, n), this._i = 0, this._c = e, this._e = {}, this._t = null 481 } 482 483 function rt(t, n) { 484 var e; 485 return function() { 486 e = e || setTimeout(function() { 487 t(), e = null 488 }, n) 489 } 490 } 491 var st, H = Math.abs, 492 at = "move.page", 493 ut = "updated.page refresh.page", 494 ct = "data-splide-lazy-srcset", 495 j = "aria-current", 496 q = "aria-controls", 497 D = "aria-label", 498 dt = "aria-hidden", 499 N = "tabindex", 500 lt = { 501 ltr: { 502 ArrowLeft: "<", 503 ArrowRight: ">", 504 Left: "<", 505 Right: ">" 506 }, 507 rtl: { 508 ArrowLeft: ">", 509 ArrowRight: "<", 510 Left: ">", 511 Right: "<" 512 }, 513 ttb: { 514 ArrowUp: "<", 515 ArrowDown: ">", 516 Up: "<", 517 Down: ">" 518 } 519 }, 520 l = "move.sync", 521 ft = "mouseup touchend", 522 ht = [" ", "Enter", "Spacebar"],
523 pt = { 524 Options: function(t) { 525 var n = S(t.root, "data-splide"); 526 if (n) try { 527 t.options = JSON.parse(n) 528 } catch (t) { 529 Q(t.message) 530 } 531 return { 532 mount: function() { 533 t.State.is(c) && (t.index = t.options.start) 534 } 535 } 536 }, 537 Breakpoints: function(i) { 538 var o, r, s = i.options.breakpoints, 539 n = rt(t, 50), 540 a = []; 541 542 function t() { 543 var t, n, e = (e = a.filter(function(t) { 544 return t.mql.matches 545 })[0]) ? e.point : -1; 546 e !== r && (r = e, t = i.State, (n = (e = s[e] || o).destroy) ? (i.options = o, i.destroy("completely" === n)) : (t.is(nt) && i.mount(), i.options = e)) 547 } 548 return { 549 required: s && matchMedia, 550 mount: function() { 551 a = Object.keys(s).sort(function(t, n) { 552 return +t - +n 553 }).map(function(t) { 554 return { 555 point: t, 556 mql: matchMedia("(max-width:" + t + "px)") 557 } 558 }), this.destroy(!0), addEventListener("resize", n), o = i.options, t() 559 }, 560 destroy: function(t) { 561 t && removeEventListener("resize", n) 562 } 563 } 564 }, 565 Controller: function(r, e) { 566 var s, i, a = { 567 mount: function() { 568 s = r.options, i = r.is(I), r.on("move", function(t) { 569 r.index = t 570 }).on("updated refresh", function(t) { 571 s = t || s, r.index = b(r.index, 0, a.edgeIndex) 572 }) 573 }, 574 go: function(t, n) { 575 t = this.trim(this.parse(t)); 576 e.Track.go(t, this.rewind(t), n) 577 }, 578 parse: function(t) { 579 var n = r.index, 580 e = String(t).match(/([+\-<>]+)(\d+)?/), 581 i = e ? e[1] : "", 582 o = e ? parseInt(e[2]) : 0; 583 switch (i) { 584 case "+": 585 n += o || 1; 586 break; 587 case "-": 588 n -= o || 1; 589 break; 590 case ">": 591 case "<": 592 n = function(t, n) { 593 if (-1 < o) return a.toIndex(o); 594 var e = s.perMove, 595 n = n ? -1 : 1; 596 return e ? t + e * n : a.toIndex(a.toPage(t) + n) 597 }(n, "<" === i); 598 break; 599 default: 600 n = parseInt(t) 601 } 602 return n 603 }, 604 toIndex: function(t) { 605 if (o()) return t; 606 var n = r.length, 607 e = s.perPage, 608 t = t * e; 609 return t = n - e <= (t -= (this.pageLength * e - n) * it(t / n)) && t < n ? n - e : t 610 }, 611 toPage: function(t) { 612 if (o()) return t; 613 var n = r.length, 614 e = s.perPage; 615 return it(n - e <= t && t < n ? (n - 1) / e : t / e) 616 }, 617 trim: function(t) { 618 return t = i ? t : s.rewind ? this.rewind(t) : b(t, 0, this.edgeIndex) 619 }, 620 rewind: function(t) { 621 var n = this.edgeIndex; 622 if (i) { 623 for (; n < t;) t -= n + 1; 624 for (; t < 0;) t += n + 1 625 } else n < t ? t = 0 : t < 0 && (t = n); 626 return t 627 }, 628 isRtl: function() { 629 return s.direction === O 630 }, 631 get pageLength() { 632 var t = r.length;
633 return o() ? t : Math.ceil(t / s.perPage) 634 }, 635 get edgeIndex() { 636 var t = r.length; 637 return t ? o() || s.isNavigation || i ? t - 1 : t - s.perPage : 0 638 }, 639 get prevIndex() { 640 var t = r.index - 1; 641 return -1 < (t = i || s.rewind ? this.rewind(t) : t) ? t : -1 642 }, 643 get nextIndex() { 644 var t = r.index + 1; 645 return (i || s.rewind) && (t = this.rewind(t)), r.index < t && t <= this.edgeIndex || 0 === t ? t : -1 646 } 647 }; 648 649 function o() { 650 return !1 !== s.focus 651 } 652 return a 653 }, 654 Elements: function(f, i) { 655 var t, n = f.root, 656 o = f.classes, 657 h = [], 658 r = (n.id || (window.splide = window.splide || {}, t = window.splide.uid || 0, window.splide.uid = ++t, n.id = "splide" + G(t)), { 659 mount: function() { 660 var t = this; 661 this.init(), f.on("refresh", function() { 662 t.destroy(), t.init() 663 }).on("updated", function() { 664 E(n, s()), v(n, s()) 665 }) 666 }, 667 destroy: function() { 668 h.forEach(function(t) { 669 t.destroy() 670 }), h = [], E(n, s()) 671 }, 672 init: function() { 673 var t, e = this; 674 r.slider = p(n, o.slider), r.track = u(n, "." + o.track), r.list = p(r.track, o.list), Z(r.track && r.list, "Track or list was not found."), r.slides = X(r.list, o.slide), t = a(o.arrows), r.arrows = { 675 prev: u(t, "." + o.prev), 676 next: u(t, "." + o.next) 677 }, t = a(o.autoplay), r.bar = u(a(o.progress), "." + o.bar), r.play = u(t, "." + o.play), r.pause = u(t, "." + o.pause), r.track.id = r.track.id || n.id + "-track", r.list.id = r.list.id || n.id + "-list", v(n, s()), this.slides.forEach(function(t, n) { 678 e.register(t, n, -1) 679 }) 680 }, 681 register: function(t, n, e) { 682 i = n, r = e, s = t, a = (o = f).options.updateOnMove, u = "ready.slide updated.slide resized.slide moved.slide" + (a ? " move.slide" : ""); 683 var o, i, r, s, a, u, c, n = c = { 684 slide: s, 685 index: i, 686 realIndex: r, 687 container: p(s, o.classes.container), 688 isClone: -1 < r, 689 mount: function() { 690 var t = this; 691 this.isClone || (s.id = o.root.id + "-slide" + G(i + 1)), o.on(u, function() { 692 return t.update() 693 }).on(et, l).on("click", function() { 694 return o.emit("click", t) 695 }, s), a && o.on("move.slide", function(t) { 696 t === r && d(!0, !1) 697 }), _(s, { 698 display: "" 699 }), this.styles = S(s, "style") || "" 700 }, 701 destroy: function() { 702 o.off(u).off(et).off("click", s), E(s, B(T)), l(), P(this.container, "style") 703 }, 704 update: function() { 705 d(this.isActive(), !1), d(this.isVisible(), !0) 706 }, 707 isActive: function() { 708 return o.index === i 709 }, 710 isVisible: function() { 711 var t = this.isActive(); 712 if (o.is(M) || t) return t;
713 var t = Math.ceil, 714 n = C(o.Components.Elements.track), 715 e = C(s); 716 return o.options.direction === L ? n.top <= e.top && e.bottom <= t(n.bottom) : n.left <= e.left && e.right <= t(n.right) 717 }, 718 isWithin: function(t, n) { 719 t = Math.abs(t - i); 720 return (t = o.is(z) || this.isClone ? t : Math.min(t, o.length - t)) < n 721 } 722 }; 723 724 function d(t, n) { 725 var e = n ? "visible" : "active", 726 i = T[e]; 727 t ? (v(s, i), o.emit(e, c)) : Y(s, i) && (E(s, i), o.emit(n ? "hidden" : "inactive", c)) 728 } 729 730 function l() { 731 k(s, "style", c.styles) 732 } 733 n.mount(), h.push(n) 734 }, 735 getSlide: function(n) { 736 return h.filter(function(t) { 737 return t.index === n 738 })[0] 739 }, 740 getSlides: function(t) { 741 return t ? h : h.filter(function(t) { 742 return !t.isClone 743 }) 744 }, 745 getSlidesByPage: function(t) { 746 var n = i.Controller.toIndex(t), 747 t = f.options, 748 e = !1 !== t.focus ? 1 : t.perPage; 749 return h.filter(function(t) { 750 t = t.index; 751 return n <= t && t < n + e 752 }) 753 }, 754 add: function(t, n, e) { 755 var i, o, r, s; 756 (t = "string" == typeof t ? V(t) : t) instanceof Element && (r = this.slides[n], _(t, { 757 display: "none" 758 }), r ? (U(t, r), this.slides.splice(n, 0, t)) : (m(this.list, t), this.slides.push(t)), i = function() { 759 e && e(t) 760 }, r = t.querySelectorAll("img"), (s = r.length) ? (o = 0, y(r, function(t) { 761 t.onload = t.onerror = function() { 762 ++o === s && i() 763 } 764 })) : i()) 765 }, 766 remove: function(t) { 767 g(this.slides.splice(t, 1)[0]) 768 }, 769 each: function(t) { 770 h.forEach(t) 771 }, 772 get length() { 773 return this.slides.length 774 }, 775 get total() { 776 return h.length 777 } 778 }); 779 780 function s() { 781 var t = o.root, 782 n = f.options; 783 return [t + "--" + n.type, t + "--" + n.direction, n.drag ? t + "--draggable" : "", n.isNavigation ? t + "--nav" : "", T.active] 784 } 785 786 function a(t) { 787 return p(n, t) || p(r.slider, t) 788 } 789 return r 790 }, 791 Track: function(r, s) { 792 var e, n, o, i = r.options.direction === L, 793 a = r.is(M), 794 u = r.options.direction === O, 795 c = !1, 796 d = u ? 1 : -1, 797 l = { 798 sign: d, 799 mount: function() { 800 n = s.Elements, e = s.Layout, o = n.list 801 }, 802 mounted: function() { 803 var t = this; 804 a || (this.jump(0), r.on("mounted resize updated", function() { 805 t.jump(r.index) 806 })) 807 }, 808 go: function(t, n, e) { 809 var i = h(t), 810 o = r.index; 811 r.State.is(A) && c || (c = t !== n, e || r.emit("move", n, o, t), 1 <= Math.abs(i - this.position) || a ? s.Transition.start(t, n, o, this.toCoord(i), function() { 812 f(t, n, o, e) 813 }) : t !== o && "move" === r.options.trimSpace ? s.Controller.go(t + t - o, e) : f(t, n, o, e)) 814 }, 815 jump: function(t) { 816 this.translate(h(t)) 817 }, 818 translate: function(t) { 819 _(o, { 820 transform: "translate" + (i ? "Y" : "X") + "(" + t + "px)" 821 }) 822 }, 823 cancel: function() { 824 r.is(I) ? this.shift() : this.translate(this.position), _(o, { 825 transition: "" 826 }) 827 }, 828 shift: function() { 829 var t = W(this.position), 830 n = W(this.toPosition(0)), 831 e = W(this.toPosition(r.length)), 832 i = e - n; 833 t < n ? t += i : e < t && (t -= i), this.translate(d * t) 834 }, 835 trim: function(t) {
836 return !r.options.trimSpace || r.is(I) ? t : b(t, d * (e.totalSize() - e.size - e.gap), 0) 837 }, 838 toIndex: function(e) { 839 var i = this, 840 o = 0, 841 r = 1 / 0; 842 return n.getSlides(!0).forEach(function(t) { 843 var t = t.index, 844 n = W(i.toPosition(t) - e); 845 n < r && (r = n, o = t) 846 }), o 847 }, 848 toCoord: function(t) { 849 return { 850 x: i ? 0 : t, 851 y: i ? t : 0 852 } 853 }, 854 toPosition: function(t) { 855 var n = e.totalSize(t) - e.slideSize(t) - e.gap; 856 return d * (n + this.offset(t)) 857 }, 858 offset: function(t) { 859 var n = r.options.focus, 860 t = e.slideSize(t); 861 return "center" === n ? -(e.size - t) / 2 : -(parseInt(n) || 0) * (t + e.gap) 862 }, 863 get position() { 864 var t = i ? "top" : u ? "right" : "left"; 865 return C(o)[t] - (C(n.track)[t] - e.padding[t] * d) 866 } 867 }; 868 869 function f(t, n, e, i) { 870 _(o, { 871 transition: "" 872 }), c = !1, a || l.jump(n), i || r.emit("moved", n, e, t) 873 } 874 875 function h(t) { 876 return l.trim(l.toPosition(t)) 877 } 878 return l 879 }, 880 Clones: function(o, t) { 881 var s = [], 882 n = 0, 883 a = t.Elements, 884 u = { 885 mount: function() { 886 var t = this; 887 o.is(I) && (e(), o.on("refresh:before", function() { 888 t.destroy() 889 }).on("refresh", e).on("resize", function() { 890 n !== c() && (t.destroy(), o.refresh()) 891 })) 892 }, 893 destroy: function() { 894 g(s), s = [] 895 }, 896 get clones() { 897 return s 898 }, 899 get length() { 900 return s.length 901 } 902 }; 903 904 function e() { 905 u.destroy(); 906 var e = n = c(), 907 i = a.length, 908 o = a.register; 909 if (i) { 910 for (var r = a.slides; r.length < e;) r = r.concat(r); 911 r.slice(0, e).forEach(function(t, n) { 912 t = d(t); 913 m(a.list, t), s.push(t), o(t, n + i, n % i) 914 }), r.slice(-e).forEach(function(t, n) { 915 t = d(t); 916 U(t, r[0]), s.push(t), o(t, n - e, (i + n - e % i) % i) 917 }) 918 } 919 } 920 921 function c() { 922 var t = o.options; 923 if (t.clones) return t.clones; 924 var n = t.autoWidth || t.autoHeight ? a.length : t.perPage, 925 e = t.direction === L ? "Height" : "Width", 926 i = x(o.root, t["fixed" + e]); 927 return (n = i ? Math.ceil(a.track["client" + e] / i) : n) * (t.drag ? t.flickMaxPages + 1 : 1) 928 } 929 930 function d(t) { 931 t = t.cloneNode(!0); 932 return v(t, o.classes.clone), P(t, "id"), t 933 } 934 return u 935 }, 936 Layout: function(t, n) { 937 var e, i, o, r, s, a, u, c, d, l, f, h, p = n.Elements, 938 g = t.options.direction === L, 939 m = (e = { 940 mount: function() { 941 t.on("resize load", rt(function() { 942 t.emit("resize") 943 }, t.options.throttle), window).on("resize", y).on("updated refresh", v), v(), this.totalSize = g ? this.totalHeight : this.totalWidth, this.slideSize = g ? this.slideHeight : this.slideWidth 944 }, 945 destroy: function() { 946 P([p.list, p.track], "style") 947 }, 948 get size() { 949 return g ? this.height : this.width 950 } 951 }, i = g ? (c = t, f = n.Elements, h = c.root, { 952 margin: "marginBottom", 953 init: function() { 954 this.resize() 955 }, 956 resize: function() { 957 l = c.options, d = f.track, this.gap = x(h, l.gap); 958 var t = l.padding, 959 n = x(h, t.top || t), 960 t = x(h, t.bottom || t); 961 this.padding = { 962 top: n, 963 bottom: t 964 }, _(d, { 965 paddingTop: w(n), 966 paddingBottom: w(t) 967 }) 968 }, 969 totalHeight: function(t) { 970 void 0 === t && (t = c.length - 1); 971 t = f.getSlide(t); 972 return t ? C(t.slide).bottom - C(f.list).top + this.gap : 0 973 }, 974 slideWidth: function() { 975 return x(h, l.fixedWidth || this.width) 976 }, 977 slideHeight: function(t) { 978 if (l.autoHeight) return (t = f.getSlide(t)) ? t.slide.offsetHeight : 0; 979 t = l.fixedHeight || (this.height + this.gap) / l.perPage - this.gap; 980 return x(h, t) 981 }, 982 get width() { 983 return d.clientWidth 984 }, 985 get height() { 986 var t = l.height || this.width * l.heightRatio; 987 return Z(t, '"height" or "heightRatio" is missing.'), x(h, t) - this.padding.top - this.padding.bottom 988 } 989 }) : (o = t, s = n.Elements, a = o.root, { 990 margin: "margin" + ((u = o.options).direction === O ? "Left" : "Right"), 991 height: 0, 992 init: function() { 993 this.resize() 994 }, 995 resize: function() { 996 u = o.options, r = s.track, this.gap = x(a, u.gap); 997 var t = u.padding, 998 n = x(a, t.left || t), 999 t = x(a, t.right || t); 1000 this.padding = { 1001 left: n, 1002 right: t 1003 }, _(r, { 1004 paddingLeft: w(n), 1005 paddingRight: w(t) 1006 }) 1007 }, 1008 totalWidth: function(t) { 1009 void 0 === t && (t = o.length - 1); 1010 var n, t = s.getSlide(t), 1011 e = 0; 1012 return t && (t = C(t.slide), n = C(s.list), e = u.direction === O ? n.right - t.left : t.right - n.left, e += this.gap), e 1013 }, 1014 slideWidth: function(t) { 1015 if (u.autoWidth) return (t = s.getSlide(t)) ? t.slide.offsetWidth : 0; 1016 t = u.fixedWidth || (this.width + this.gap) / u.perPage - this.gap; 1017 return x(a, t) 1018 }, 1019 slideHeight: function() { 1020 var t = u.height || u.fixedHeight || this.width * u.heightRatio; 1021 return x(a, t) 1022 }, 1023 get width() { 1024 return r.clientWidth - this.padding.left - this.padding.right 1025 } 1026 }
1026), R(i).forEach(function(t) { 1027 e[t] || Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(i, t)) 1028 }), e); 1029 1030 function v() { 1031 m.init(), _(t.root, { 1032 maxWidth: w(t.options.width) 1033 }), p.each(function(t) { 1034 t.slide.style[m.margin] = w(m.gap) 1035 }), y() 1036 } 1037 1038 function y() { 1039 var n = t.options, 1040 e = (m.resize(), _(p.track, { 1041 height: w(m.height) 1042 }), n.autoHeight ? null : w(m.slideHeight())); 1043 p.each(function(t) { 1044 _(t.container, { 1045 height: e 1046 }), _(t.slide, { 1047 width: n.autoWidth ? null : w(m.slideWidth(t.index)), 1048 height: t.container ? null : e 1049 }) 1050 }), t.emit("resized") 1051 } 1052 return m 1053 }, 1054 Drag: function(a, u) { 1055 var r, c, d, l, f = u.Track, 1056 h = u.Controller, 1057 s = a.options.direction === L, 1058 p = s ? "y" : "x", 1059 n = { 1060 disabled: !1, 1061 mount: function() { 1062 var t = this, 1063 n = u.Elements, 1064 e = n.track; 1065 a.on("touchstart mousedown", i, e).on("touchmove mousemove", o, e, { 1066 passive: !1 1067 }).on("touchend touchcancel mouseleave mouseup dragend", m, e).on("mounted refresh", function() { 1068 y(n.list.querySelectorAll("img, a"), function(t) { 1069 a.off("dragstart", t).on("dragstart", function(t) { 1070 t.preventDefault() 1071 }, t, { 1072 passive: !1 1073 }) 1074 }) 1075 }).on("mounted updated", function() { 1076 t.disabled = !a.options.drag 1077 }) 1078 } 1079 }; 1080 1081 function i(t) { 1082 n.disabled || l || g(t) 1083 } 1084 1085 function g(t) { 1086 r = f.toCoord(f.position), c = v(t, {}), d = c 1087 } 1088 1089 function o(t) { 1090 var n, e, i, o; 1091 c && (d = v(t, c), l ? (t.cancelable && t.preventDefault(), a.is(M) || (n = r[p] + d.offset[p], f.translate((n = n, a.is(z) && (i = (e = f.sign) * f.trim(f.toPosition(0)), o = e * f.trim(f.toPosition(h.edgeIndex)), (n *= e) < i ? n = i - 7 * Math.log(i - n) : o < n && (n = o + 7 * Math.log(n - o)), n *= e), n)))) : function() { 1092 var t = d.offset; 1093 if (!a.State.is(A) || !a.options.waitForTransition) return t = 180 * Math.atan(H(t.y) / H(t.x)) / Math.PI, (t = s ? 90 - t : t) < a.options.dragAngleThreshold 1094 }() && (a.emit("drag", c), l = !0, f.cancel(), g(t))) 1095 } 1096 1097 function m() { 1098 var t, n, e, i, o, r, s; 1099 c = null, l && (a.emit("dragged", d), r = (t = d).velocity[p], 0 < (s = H(r)) && (n = a.options, r = r < 0 ? -1 : 1, i = e = a.index, a.is(M) || (o = f.position, s > n.flickVelocityThreshold && H(t.offset[p]) < n.swipeDistanceThreshold && (o += r * Math.min(s * n.flickPower, u.Layout.size * (n.flickMaxPages || 1))), i = f.toIndex(o)), i === e && .1 < s && (i = e + r * f.sign), a.is(z) && (i = b(i, 0, h.edgeIndex)), h.go(i, n.isNavigation)), l = !1) 1100 } 1101 1102 function v(t, n) { 1103 var e = t.timeStamp, 1104 i = t.touches, 1105 i = i ? i[0] : t, 1106 t = i.clientX, 1107 i = i.clientY, 1108 o = n.to || {}, 1109 r = o.x,
1110 o = o.y, 1111 r = { 1112 x: t - (void 0 === r ? t : r), 1113 y: i - (void 0 === o ? i : o) 1114 }, 1115 o = e - (n.time || 0); 1116 return { 1117 to: { 1118 x: t, 1119 y: i 1120 }, 1121 offset: r, 1122 time: e, 1123 velocity: { 1124 x: r.x / o, 1125 y: r.y / o 1126 } 1127 } 1128 } 1129 return n 1130 }, 1131 Click: function(t, n) { 1132 var e = !1; 1133 1134 function i(t) { 1135 e && (t.preventDefault(), t.stopPropagation(), t.stopImmediatePropagation()) 1136 } 1137 return { 1138 required: t.options.drag, 1139 mount: function() { 1140 t.on("click", i, n.Elements.track, { 1141 capture: !0 1142 }).on("drag", function() { 1143 e = !0 1144 }).on("dragged", function() { 1145 setTimeout(function() { 1146 e = !1 1147 }) 1148 }) 1149 } 1150 } 1151 }, 1152 Autoplay: function(l, t, f) { 1153 var h, e = [], 1154 p = t.Elements, 1155 g = { 1156 required: l.options.autoplay, 1157 mount: function() { 1158 var t, n, e, i, o, r, s, a, u, c = l.options; 1159 1160 function d(t) { 1161 u || (o || (o = t, s && s < 1 && (o -= s * e)), s = (r = t - o) / e, e <= r && (o = 0, s = 1, n()), i && i(s), a(d)) 1162 } 1163 p.slides.length > c.perPage && (n = function() { 1164 l.go(">") 1165 }, e = c.interval, i = function(t) { 1166 l.emit(f + ":playing", t), p.bar && _(p.bar, { 1167 width: 100 * t + "%" 1168 }) 1169 }, a = window.requestAnimationFrame, u = !0, h = { 1170 pause: function() { 1171 u = !0, o = 0 1172 }, 1173 play: function(t) { 1174 o = 0, t && (s = 0), u && (u = !1, a(d)) 1175 } 1176 }, c = l.options, t = l.sibling, t = [l.root, t ? t.root : null], c.pauseOnHover && (m(t, "mouseleave", 1, !0), m(t, "mouseenter", 1, !1)), c.pauseOnFocus && (m(t, "focusout", 2, !0), m(t, "focusin", 2, !1)), p.play && l.on("click", function() { 1177 g.play(2), g.play(3) 1178 }, p.play), p.pause && m([p.pause], "click", 3, !1), l.on("move refresh", function() { 1179 g.play() 1180 }).on("destroy", function() { 1181 g.pause() 1182 }), this.play()) 1183 }, 1184 play: function(n) { 1185 void 0 === n && (n = 0), (e = e.filter(function(t) { 1186 return t !== n 1187 })).length || (l.emit(f + ":play"), h.play(l.options.resetProgress)) 1188 }, 1189 pause: function(t) { 1190 void 0 === t && (t = 0), h.pause(), -1 === e.indexOf(t) && e.push(t), 1 === e.length && l.emit(f + ":pause") 1191 } 1192 }; 1193 1194 function m(t, n, e, i) { 1195 t.forEach(function(t) { 1196 l.on(n, function() { 1197 g[i ? "play" : "pause"](e) 1198 }, t) 1199 }) 1200 } 1201 return g 1202 }, 1203 Cover: function(t, e) { 1204 function n(n) { 1205 e.Elements.each(function(t) { 1206 t = p(t.slide, "IMG") || p(t.container, "IMG"); 1207 t && t.src && i(t, n) 1208 }) 1209 } 1210 1211 function i(t, n) { 1212 _(t.parentElement, { 1213 background: n ? "" : 'center/cover no-repeat url("' + t.src + '")' 1214 }), _(t, { 1215 display: n ? "" : "none" 1216 }) 1217 } 1218 return { 1219 required: t.options.cover, 1220 mount: function() { 1221 t.on("lazyload:loaded", function(t) { 1222 i(t, !1) 1223 }), t.on("mounted updated refresh", function() { 1224 return n(!1) 1225 }) 1226 }, 1227 destroy: function() { 1228 n(!0) 1229 } 1230 } 1231 }, 1232 Arrows: function(i, o, r) { 1233 var s, a, e, u = i.classes, 1234 c = i.root, 1235 d = o.Elements; 1236 1237 function l() { 1238 var t = o.Controller, 1239 n = t.prevIndex, 1240 t = t.nextIndex, 1241 e = i.length > i.options.perPage || i.is(I); 1242 s.disabled = n < 0 || !e, a.disabled = t < 0 || !e, i.emit(r + ":updated", s, a, n, t) 1243 } 1244 1245 function f(t) { 1246 return V('<button class="' + u.arrow + " " + (t ? u.prev : u.next) + '" type="button"><svg xmlns="http://www.w3.org/2000/svg"\tviewBox="0 0 40 40"\twidth="40"\theight="40"><path d="' + (i.options.arrowPath || "m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z") + '" />') 1247 } 1248 return { 1249 required: i.options.arrows, 1250 mount: function() { 1251 var t, n; 1252 s = d.arrows.prev, a = d.arrows.next, s && a || !i.options.arrows || (s = f(!0), a = f(!1), e = !0, m(t = h("div", { 1253 class: u.arrows 1254 }), s), m(t, a), n = d.slider, U(t, ("slider" === i.options.arrows && n ? n : c).firstElementChild)), s && a && i.on("click", function() { 1255 i.go("<") 1256 }, s).on("click", function() { 1257 i.go(">") 1258 }, a).on("mounted move updated refresh", l), this.arrows = { 1259 prev: s, 1260 next: a 1261 } 1262 }, 1263 mounted: function() { 1264 i.emit(r + ":mounted", s, a) 1265 }, 1266 destroy: function() { 1267 P([s, a], "disabled"), e && g(s.parentElement) 1268 } 1269 } 1270 }, 1271 Pagination: function(s, n, i) { 1272 var a = {}, 1273 u = n.Elements, 1274 c = { 1275 mount: function() { 1276 var n, o, r, t, e = s.options.pagination; 1277 e && (n = s.options, o = s.classes, r = h("ul", { 1278 class: o.pagination 1279 }), t = u.getSlides(!1).filter(function(t) { 1280 return !1 !== n.focus || t.index % n.perPage == 0 1281 }).map(function(t, n) { 1282 var e = h("li", {}), 1283 i = h("button", { 1284 class: o.page, 1285 type: "button" 1286 }); 1287 return m(e, i), m(r, e), s.on("click", function() { 1288 s.go(">" + n) 1289 }, i), { 1290 li: e, 1291 button: i, 1292 page: n, 1293 Slides: u.getSlidesByPage(n) 1294 } 1295 }), a = { 1296 list: r, 1297 items: t 1298 }, t = u.slider, m("slider" === e && t ? t : s.root, a.list), s.on(at, d)), s.off(ut).on(ut, function() { 1299 c.destroy(), s.options.pagination && (c.mount(), c.mounted()) 1300 }) 1301 }, 1302 mounted: function() { 1303 var t; 1304 s.options.pagination && (t = s.index, s.emit(i + ":mounted", a, this.getItem(t)), d(t, -1)) 1305 }, 1306 destroy: function() { 1307 g(a.list), a.items && a.items.forEac
1307h(function(t) { 1308 s.off("click", t.button) 1309 }), s.off(at), a = {} 1310 }, 1311 getItem: function(t) { 1312 return a.items[n.Controller.toPage(t)] 1313 }, 1314 get data() { 1315 return a 1316 } 1317 }; 1318 1319 function d(t, n) { 1320 var n = c.getItem(n), 1321 t = c.getItem(t), 1322 e = T.active; 1323 n && E(n.button, e), t && v(t.button, e), s.emit(i + ":updated", a, n, t) 1324 } 1325 return c 1326 }, 1327 LazyLoad: function(o, t, r) { 1328 var n, e, i = o.options, 1329 s = "sequential" === i.lazyLoad; 1330 1331 function a() { 1332 e = [], n = 0 1333 } 1334 1335 function u(n) { 1336 n = isNaN(n) ? o.index : n, (e = e.filter(function(t) { 1337 return !t.Slide.isWithin(n, i.perPage * (i.preloadPages + 1)) || (c(t.img, t.Slide), !1) 1338 }))[0] || o.off("moved." + r) 1339 } 1340 1341 function c(t, n) { 1342 v(n.slide, T.loading); 1343 var e = h("span", { 1344 class: o.classes.spinner 1345 }); 1346 m(t.parentElement, e), t.onload = function() { 1347 l(t, e, n, !1) 1348 }, t.onerror = function() { 1349 l(t, e, n, !0) 1350 }, k(t, "srcset", S(t, ct) || ""), k(t, "src", S(t, "data-splide-lazy") || "") 1351 } 1352 1353 function d() { 1354 var t; 1355 n < e.length && c((t = e[n]).img, t.Slide), n++ 1356 } 1357 1358 function l(t, n, e, i) { 1359 E(e.slide, T.loading), i || (g(n), _(t, { 1360 display: "" 1361 }), o.emit(r + ":loaded", t).emit("resize")), s && d() 1362 } 1363 return { 1364 required: i.lazyLoad, 1365 mount: function() { 1366 o.on("mounted refresh", function() { 1367 a(), t.Elements.each(function(n) { 1368 y(n.slide.querySelectorAll("[data-splide-lazy], [" + ct + "]"), function(t) { 1369 t.src || t.srcset || (e.push({ 1370 img: t, 1371 Slide: n 1372 }), _(t, { 1373 display: "none" 1374 })) 1375 }) 1376 }), s && d() 1377 }), s || o.on("mounted refresh moved." + r, u) 1378 }, 1379 destroy: a 1380 } 1381 }, 1382 Keyboard: function(i) { 1383 var o; 1384 return { 1385 mount: function() { 1386 i.on("mounted updated", function() { 1387 var t = i.options, 1388 n = i.root, 1389 e = lt[t.direction], 1390 t = t.keyboard; 1391 o && (i.off("keydown", o), P(n, N)), t && ("focused" === t ? k(o = n, N, 0) : o = document, i.on("keydown", function(t) { 1392 e[t.key] && i.go(e[t.key]) 1393 }, o)) 1394 }) 1395 } 1396 } 1397 }, 1398 Sync: function(i) { 1399 var o = i.sibling, 1400 t = o && o.options.isNavigation; 1401 1402 function r() { 1403 i.on(l, function(t, n, e) { 1404 o.off(l).go(o.is(I) ? e : t, !1), s() 1405 }) 1406 } 1407 1408 function s() { 1409 o.on(l, function(t, n, e) { 1410 i.off(l).go(i.is(I) ? e : t, !1), r() 1411 }) 1412 } 1413 1414 function n() {
1415 o.Components.Elements.each(function(t) { 1416 var n = t.slide, 1417 e = t.index; 1418 i.off(ft, n).on(ft, function(t) { 1419 t.button && 0 !== t.button || a(e) 1420 }, n), i.off("keyup", n).on("keyup", function(t) { 1421 -1 < ht.indexOf(t.key) && (t.preventDefault(), a(e)) 1422 }, n, { 1423 passive: !1 1424 }) 1425 }) 1426 } 1427 1428 function a(t) { 1429 i.State.is(d) && o.go(t) 1430 } 1431 return { 1432 required: !!o, 1433 mount: function() { 1434 r(), s(), t && (n(), i.on("refresh", function() { 1435 setTimeout(function() { 1436 n(), o.emit("navigation:updated", i) 1437 }) 1438 })) 1439 }, 1440 mounted: function() { 1441 t && o.emit("navigation:mounted", i) 1442 } 1443 } 1444 }, 1445 A11y: function(r, n) { 1446 var s = r.i18n, 1447 o = n.Elements, 1448 e = [dt, N, q, D, j, "role"]; 1449 1450 function i(t, n) { 1451 k(t, dt, !n), r.options.slideFocus && k(t, N, n ? 0 : -1) 1452 } 1453 1454 function t(t, n) { 1455 var e = o.track.id; 1456 k(t, q, e), k(n, q, e) 1457 } 1458 1459 function a(t, n, e, i) { 1460 var o = r.index, 1461 e = -1 < e && o < e ? s.last : s.prev, 1462 i = -1 < i && i < o ? s.first : s.next; 1463 k(t, D, e), k(n, D, i) 1464 } 1465 1466 function u(t, n) { 1467 n && k(n.button, j, !0), t.items.forEach(function(t) { 1468 var n = r.options, 1469 n = F(!1 === n.focus && 1 < n.perPage ? s.pageX : s.slideX, t.page + 1), 1470 e = t.button, 1471 t = t.Slides.map(function(t) { 1472 return t.slide.id 1473 }); 1474 k(e, q, t.join(" ")), k(e, D, n) 1475 }) 1476 } 1477 1478 function c(t, n, e) { 1479 n && P(n.button, j), e && k(e.button, j, !0) 1480 } 1481 1482 function d(i) { 1483 o.each(function(t) { 1484 var n = t.slide, 1485 e = t.realIndex, 1486 e = (f(n) || k(n, "role", "button"), -1 < e ? e : t.index), 1487 t = F(s.slideX, e + 1), 1488 e = i.Components.Elements.getSlide(e); 1489 k(n, D, t), e && k(n, q, e.slide.id) 1490 }) 1491 } 1492 1493 function l(t, n) { 1494 t = t.slide; 1495 n ? k(t, j, !0) : P(t, j) 1496 } 1497 1498 function f(t) { 1499 return "BUTTON" === t.tagName 1500 } 1501 return { 1502 required: r.options.accessibility, 1503 mount: function() { 1504 r.on("visible", function(t) { 1505 i(t.slide, !0) 1506 }).on("hidden", function(t) { 1507 i(t.slide, !1) 1508 }).on("arrows:mounted", t).on("arrows:updated", a).on("pagination:mounted", u).on("pagination:updated", c).on("refresh", function() { 1509 P(n.Clones.clones, e) 1510 }), r.options.isNavigation && r.on("navigation:mounted navigation:updated", d).on("active", function(t) { 1511 l(t, !0) 1512 }).on("inactive", function(t) { 1513 l(t, !1) 1514 }), ["play", "pause"].forEach(function(t) { 1515 var n = o[t]; 1516 n && (f(n) || k(n, "role", "button"), k(n, q, o.track.id), k(n, D, s[t])) 1517 }) 1518 }, 1519 destroy: function() { 1520 var t = n.Arrows, 1521 t = t ? t.arrows : {}; 1522 P(o.slides.concat([t.prev, t.next, o.play, o.pause]), e) 1523 } 1524 } 1525 } 1526 }, 1527 gt = (t = st = ot, (gt = mt).prototype = Object.create(t.prototype), (gt.prototype.constructor = gt).__proto__ = t, mt); 1528 1529 function mt(t, n) { 1530 return st.call(this, t, n, pt) || this 1531 } 1532 window.Splide = gt 1533}();
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.