123456 |
- /*!
- * Splide.js
- * Version : 1.4.0
- * License : MIT
- * Copyright: 2019 Naotoshi Fujita
- */!function(e){var i={};function o(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=i,o.d=function(t,n,e){o.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(n,t){if(1&t&&(n=o(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var i in n)o.d(e,i,function(t){return n[t]}.bind(null,i));return e},o.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(n,"a",n),n},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.p="",o(o.s=0)}([function(t,n,e){"use strict";e.r(n);var s={};e.r(s),e.d(s,"CREATED",function(){return D}),e.d(s,"MOUNTED",function(){return R}),e.d(s,"IDLE",function(){return N}),e.d(s,"MOVING",function(){return V});var i="splide",p={active:"is-active",visible:"is-visible",loading:"is-loading"},a={type:"slide",rewind:!1,speed:400,width:0,height:0,fixedWidth:0,fixedHeight:0,heightRatio:0,perPage:1,perMove:0,start:0,focus:!1,gap:0,padding:0,arrows:!0,arrowPath:"",pagination:!0,autoplay:!1,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,lazyLoad:!1,preloadPages:1,easing:"cubic-bezier(.42,.65,.27,.99)",keyboard:!0,drag:!0,flickThreshold:.6,flickPower:600,flickMaxPages:1,direction:"ltr",cover:!1,accessibility:!0,isNavigation:!1,trimSpace:!0,updateOnMove:!1,breakpoints:!1,classes:{root:i,slider:i+"__slider",track:i+"__track",list:i+"__list",slide:i+"__slide",container:i+"__slide__container",arrows:i+"__arrows",arrow:i+"__arrow",prev:i+"__arrow--prev",next:i+"__arrow--next",pagination:i+"__pagination",page:i+"__pagination__page",clone:i+"__slide--clone",progress:i+"__progress",bar:i+"__progress__bar",autoplay:i+"__autoplay",play:i+"__play",pause:i+"__pause",spinner:i+"__spinner",sr:i+"__sr"},i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay"}};function o(){return(o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}).apply(this,arguments)}function v(e,i){Object.keys(e).some(function(t,n){return i(e[t],t,n)})}function u(n){return Object.keys(n).map(function(t){return n[t]})}function r(t){return"object"==typeof t}function d(t,n){var e=o({},t);return r(e)&&r(n)&&v(n,function(t,n){r(t)?(r(e[n])||(e[n]={}),e[n]=d(e[n],t)):e[n]=t}),e}function c(t){return Array.isArray(t)?t:[t]}function m(t,n,e){return Math.min(Math.max(t,e<n?e:n),e<n?n:e)}function f(t,n){var e=0;return t.replace(/%s/g,function(){return c(n)[e++]})}function O(t){var n=typeof t;return"string"==n?t:"number"==n&&0<t?parseFloat(t)+"px":""}function W(t,n){if("number"==typeof n)return n;var e=g("div",{});return L(e,{position:"absolute",width:n}),x(t,e),n=e.clientWidth,b(e),n}function h(t,n){return t&&n?t.querySelector(n.split(" ")[0]):null}function l(t,n){return t&&u(t.children).filter(function(t){return k(t,n.split(" ")[0])})[0]||null}function g(t,n){var e=document.createElement(t);return v(n,function(t,n){return P(e,n,t)}),e}function y(t){var n=g("div",{});return n.innerHTML=t,n.firstChild}function b(t){c(t).forEach(function(t){t&&t.parentElement.removeChild(t)})}function x(t,n){t&&t.appendChild(n)}function w(t,n){t&&n&&n.parentElement&&n.parentElement.insertBefore(t,n)}function L(e,t){e&&v(t,function(t,n){e.style[n]=t||""})}function E(n,t,e){n&&c(t).forEach(function(t){t&&n.classList[e?"remove":"add"](t)})}function S(t,n){E(t,n,!1)}function _(t,n){E(t,n,!0)}function k(t,n){return!!t&&t.classList.contains(n)}function P(t,n,e){t&&t.setAttribute(n,e)}function I(t,n){return t?t.getAttribute(n):null}function A(n,t){n&&c(t).forEach(function(t){n.removeAttribute(t)})}function C(o,t){var r,s;return{mount:function(){r=t.Elements.list,o.on("transitionend",function(t){t.target===r&&s&&s()},r)},start:function(t,n,e,i){s=i,L(r,{transition:"transform "+o.options.speed+"ms "+o.options.easing,transform:"translate("+e.x+"px,"+e.y+"px)"})}}}function M(i,o){function r(t){var n=o.Slides.getSlide(t),e=i.options;n&&L(n.slide,{transition:"opacity "+e.speed+"ms "+e.easing})}return o.Options.fix({perPage:1,gap:0,padding:0}),o.Drag&&(o.Drag.required=!1),{mount:function(){r(i.index)},start:function(t,n,e,i){r(n),i()}}}var T="loop",H="fade";var j="[SPLIDE]";function q(t){console.error(j+" "+t)}function z(t,n){if(!t)throw new Error(n)}var D=1,R=2,N=3,V=4;function B(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function X(t){var n=I(t.root,"data-splide");if(n)try{t.options=JSON.parse(n)}catch(t){q(t.message)}return{mount:function(){t.State.is(D)&&(t.index=t.options.start)},fix:function(e){var i=d(t.options,e),o=i.breakpoints;o&&v(o,function(t,n){i.breakpoints[n]=d(o[n],e)}),t.options=i}}}function G(e){var i=e.root,o=e.classes;if(!i.id){window.splide=window.splide||{};var t=window.splide.uid||0;window.splide.uid=++t,i.id="splide"+(t<10?"0"+t:t)}var r={mount:function(){var t="was not found.";this.slider=l(i,o.slider),this.track=h(i,"."+o.track),z(this.track,"A track "+t),this.list=l(this.track,o.list),z(this.list,"A list "+t),this.slides=u(this.list.children);var n=a(o.arrows);this.arrows={prev:h(n,"."+o.prev),next:h(n,"."+o.next)};var e=a(o.autoplay);this.bar=h(a(o.progress),"."+o.bar),this.play=h(e,"."+o.play),this.pause=h(e,"."+o.pause),r.track.id=r.track.id||i.id+"-track",r.list.id=r.list.id||i.id+"-list",S(i,s())},destroy:function(){_(i,s())},add:function(t,n){if("string"==typeof t&&(t=y(t)),t instanceof Element){var e=this.slides[n];e?(w(t,e),this.slides.splice(n,0,t)):(x(this.list,t),this.slides.push(t))}},remove:function(t){b(this.slides.splice(t,1)[0])}};function s(){var t=o.root,n=e.options;return[t+"--"+n.type,t+"--"+n.direction,n.drag?t+"--draggable":"",n.isNavigation?t+"--nav":""]}function a(t){return l(i,t)||l(r.slider,t)}return r}function F(r,i){var o,e,s={mount:function(){o=r.options,e=r.is(T),r.on("move",function(t){r.index=t}).on("updated",function(t){o=t;var n=m(r.index,0,s.edgeIndex);r.index=s.rewind(s.trim(n))})},go:function(t,n){var e=this.trim(this.parse(t));i.Track.go(e,this.rewind(e),n)},parse:function(t){var n=r.index,e=String(t).match(/([+\-<>])(\d+)?/),i=e&&e[1]||"",o=e?parseInt(e[2]):0;switch(i){case"+":n+=o||1;break;case"-":n-=o||1;break;case">":n=this.pageToIndex(-1<o?o:this.indexToPage(n)+1);break;case"<":n=this.pageToIndex(-1<o?o:this.indexToPage(n)-1);break;default:n=parseInt(t)}return n},pageToIndex:function(t){if(a())return t;var n=r.length,e=o.perPage,i=t*e;return n-e<=(i-=(this.pageLength*e-n)*Q(i/n))&&i<n&&(i=n-e),i},indexToPage:function(t){if(a())return t;var n=r.length,e=o.perPage;return Q(n-e<=t&&t<n?(n-1)/e:t/e)},trim:function(t){return e||(t=o.rewind?this.rewind(t):m(t,0,this.edgeIndex)),t},rewind:function(t){var n=this.edgeIndex;if(e){for(;n<t;)t-=n+1;for(;t<0;)t+=n+1}else n<t?t=0:t<0&&(t=n);return t},isRtl:function(){return"rtl"===o.direction},get pageLength(){var t=r.length;return a()?t:Math.ceil(t/o.perPage)},get edgeIndex(){var t=r.length;return t?a()||o.isNavigation||e?t-1:t-o.perPage:0},get prevIndex(){var t=r.index-1;return(e||o.rewind)&&(t=this.rewind(t)),-1<t?t:-1},get nextIndex(){var t=r.index+1;return(e||o.rewind)&&(t=this.rewind(t)),r.index<t&&t<=this.edgeIndex||0===t?t:-1}};function a(){return!1!==r.options.focus}return s}function U(l,o){var e=[],f=[],i={mount:function(){var t=this;n(),l.on("refresh",function(){t.destroy(),n()})},destroy:function(){f.forEach(function(t){t.destroy()}),f=[]},register:function(t,n,e){var u,i,o,d,r,s,a=(u=t,i=n,o=e,r=["mounted","updated","resize",(d=l).options.updateOnMove?"move":"moved"].reduce(function(t,n){return t+n+".slide "},"").trim(),s={slide:o,index:u,realIndex:i,container:h(o,"."+d.classes.container),isClone:-1<i,mount:function(){var t=this;if(!this.isClone){var n=u+1;o.id=d.root.id+"-slide"+(n<10?"0"+n:n)}d.on(r,function(){return t.update()}),d.State.is(D)||this.update()},destroy:function(){d.off(r),v(p,function(t){_(o,t)})},update:function(){c(this.isActive(),!1),c(this.isVisible(),!0)},isActive:function(){return d.index===u},isVisible:function(){var t=d.options,n=t.focus,e=t.trimSpace,i=d.index,o=d.length,r="center"===n,s=d.Components.Layout.numInView,a=r?s/2:parseInt(n)||0;if(e){if(i<a)return u<s;if(o-(s-a)<=i)return o-s<=u}return i-a+(r&&s%2==0?1:0)<=u&&u<i+s-a},isWithin:function(t,n){var e=Math.abs(t-u);return d.is("slide")||this.isClone||(e=Math.min(e,d.length-e)),e<n}});function c(t,n){var e=n?"visible":"active",i=p[e];t?(S(o,i),d.emit(e,s)):k(o,i)&&(_(o,i),d.emit(n?"hidden":"inactive",s))}a.mount(),f.push(a)},getSlide:function(n){return f.filter(function(t){return t.index===n})[0]},getSlides:function(t,n){return n?t?f:f.filter(function(t){return!t.isClone}):t?f.map(function(t){return t.slide}):e},getSlidesByPage:function(t){var e=o.Controller.pageToIndex(t),n=l.options,i=!1!==n.focus?1:n.perPage;return f.filter(function(t){var n=t.index;return e<=n&&n<e+i})},get length(){return e.length},get total(){return f.length}};function n(){(e=o.Elements.slides).forEach(function(t,n){i.register(n,-1,t)})}return i}function Y(l,f){var o,n,s=0,e="ttb"===l.options.direction,a=l.is(H);return{mount:function(){var r,s,a,u,d,c;o=f.Elements.list,n=e?(u=l,c=(d=f).Layout,{translate:function(t,n){L(t,{transform:"translateY("+n+"px)"})},toPosition:function(t){return-(t*(c.slideHeight+c.gap)+this.offset)},toIndex:function(t){return Math.round(-(t+this.offset)/(c.slideHeight+c.gap))},trim:function(t){return m(t,-(c.listHeight-(c.height+c.gap)),0)},get offset(){var t,n=c.height,e=c.slideHeight,i=c.gap,o=u.options.focus;return t="center"===o?(n-e)/2:(parseInt(o)||0)*(e+i),(e+i)*d.Clones.length/2-t}}):(r=l,a=(s=f).Layout,{translate:function(t,n){L(t,{transform:"translateX("+n+"px)"})},toPosition:function(t){return this.sign*(t*(a.slideWidth+a.gap)+this.offset)},toIndex:function(t){return Math.round((this.sign*t-this.offset)/(a.slideWidth+a.gap))},trim:function(t){return m(t,this.sign*(a.listWidth-(a.width+a.gap)),0)},get sign(){return s.Controller.isRtl()?1:-1},get offset(){var t,n=a.width,e=a.slideWidth,i=a.gap,o=r.options.focus;return t="center"===o?(n-e)/2:(parseInt(o)||0)*(e+i),(e+i)*s.Clones.length/2-t}})},mounted:function(){var t=this;a||l.on("mounted resize updated",function(){t.jump(l.index)})},go:function(t,n,e){var i=this,o=this.trim(this.toPosition(t)),r=l.index;e||l.emit("move",n,r,t),1<=Math.abs(o-s)||a?f.Transition.start(t,n,this.toCoord(o),function(){i.end(t,n,r,e)}):this.end(t,n,r,e)},end:function(t,n,e,i){L(o,{transition:""}),a||this.jump(n),i||l.emit("moved",n,e,t)},jump:function(t){var n=this.trim(this.toPosition(t));this.translate(n)},translate:function(t){s=t,n.translate(o,t)},toPosition:function(t){return n.toPosition(t)},toIndex:function(t){return n.toIndex(t)},trim:function(t){return!l.options.trimSpace||l.is(T)?t:n.trim(t)},toCoord:function(t){return{x:e?0:t,y:e?t:0}},get position(){return s},get offset(){return n.offset}}}function J(u,d){var c=[];function n(){var i=d.Slides,t=u.options,n=t.perPage,e=t.drag,o=t.flickMaxPages,r=i.length,s=n*(e?o+1:1)+(r<n?n:0);if(r){for(var a=i.getSlides(!1,!1);a.length<s;)a=a.concat(a);a.slice(0,s).forEach(function(t,n){var e=l(t);x(d.Elements.list,e),c.push(e),i.register(n+r,n,e)}),a.slice(-s).forEach(function(t,n){var e=l(t);w(e,a[0]),c.push(e),i.register(n-s,n,e)})}}function l(t){var n=t.cloneNode(!0);return S(n,u.classes.clone),A(n,"id"),n}return{mount:function(){var t=this;u.is(T)&&(n(),u.on("refresh",function(){t.destroy(),n()}))},destroy:function(){b(c),c=[]},get clones(){return c},get length(){return c.length}}}var K=function(){function t(t,n,e){var o,i,r=this;void 0===n&&(n={}),void 0===e&&(e={}),this.root=t instanceof Element?t:h(document,t),z(this.root,"An invalid root element or selector was given."),this.Components={},this.Event=(o=[],{on:function(t,n,e,i){void 0===e&&(e=null),void 0===i&&(i={}),t.split(" ").forEach(function(t){e&&e.addEventListener(t,n,i),o.push({event:t,handler:n,elm:e,options:i})})},off:function(t,i){void 0===i&&(i=null),t.split(" ").forEach(function(t){for(var n in o){var e=o[n];if(e&&e.event===t&&e.elm===i){i&&i.removeEventListener(t,e.handler,e.options),delete o[n];break}}})},emit:function(n){for(var t=arguments.length,e=new Array(1<t?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];o.forEach(function(t){t.elm||t.event.split(".")[0]!==n||t.handler.apply(t,e)})},destroy:function(){o.forEach(function(t){t.elm&&t.elm.removeEventListener(t.event,t.handler,t.options)}),o=[]}}),this.State=(i=D,{set:function(t){i=t},is:function(t){return t===i}}),this.STATES=s,this._o=d(a,n),this._i=0,this._c=e,this.on("move drag",function(){return r.State.set(V)}).on("moved dragged",function(){return r.State.set(N)})}var n,e,i,o=t.prototype;return o.mount=function(t,n){var e,i,o,r,s=this;void 0===t&&(t={}),void 0===n&&(n=null),this.Components=(i=d((e=this)._c,t),o=n,r={},v(i,function(t,n){r[n]=t(e,r,n.toLowerCase())}),o=o||e.is(H)?M:C,r.Transition=o(e,r),r);try{v(this.Components,function(t,n){var e=t.required;void 0===e||e?t.mount&&t.mount():delete s.Components[n]})}catch(t){return q(t.message),null}return v(this.Components,function(t){t.mounted&&t.mounted()}),this.State.set(R),this.emit("mounted"),this.State.set(N),L(this.root,{visibility:"visible"}),this.emit("ready"),this},o.sync=function(t){return this.sibling=t,this},o.on=function(t,n,e,i){return void 0===e&&(e=null),void 0===i&&(i={}),this.Event.on(t,n,e,i),this},o.off=function(t,n){return void 0===n&&(n=null),this.Event.off(t,n),this},o.emit=function(t){for(var n,e=arguments.length,i=new Array(1<e?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return(n=this.Event).emit.apply(n,[t].concat(i)),this},o.go=function(t,n){void 0===n&&(n=!0),(this.State.is(N)||this.State.is(V)&&!n)&&this.Components.Controller.go(t,!1)},o.is=function(t){return t===this._o.type},o.add=function(t,n){void 0===n&&(n=-1),this.Components.Elements.add(t,n),this.refresh()},o.remove=function(t){this.Components.Elements.remove(t),this.refresh()},o.refresh=function(){this.emit("refresh").emit("updated",this.options)},o.destroy=function(){return u(this.Components).reverse().forEach(function(t){t.destroy&&t.destroy()}),this.emit("destroy"),this.Event.destroy(),delete this.Components,this.State.set(D),this},n=t,(e=[{key:"index",get:function(){return this._i},set:function(t){this._i=parseInt(t)}},{key:"length",get:function(){return this.Components.Slides.length}},{key:"options",get:function(){return this._o},set:function(t){this._o=d(this._o,t),this.State.is(D)||this.emit("updated",this._o)}},{key:"classes",get:function(){return this._o.classes}},{key:"i18n",get:function(){return this._o.i18n}}])&&B(n.prototype,e),i&&B(n,i),t}(),Q=Math.floor;function Z(n,e,i){function o(t){d||(a=(s=t-(r=r||t))/e,e<=s&&(r=0,a=1,n()),i&&i(a),u(o))}var r,s,a,u=window.requestAnimationFrame,d=!0;return{pause:function(){d=!0,r=0},play:function(){r=0,d&&(d=!1,u(o))}}}function $(S,_){var t,i,k,P,I=S.root,C="ttb"===S.options.direction,n=_.Elements,o={mount:function(){t=n.list,i=n.track,S.on("resize",function(t,n){var e=null;return function(){e=e||setTimeout(function(){t(),e=null},n)}}(function(){S.emit("resize")},50),window).on("mounted resize",M).on("updated",e),e()},destroy:function(){n.slides.concat([t,i]).forEach(function(t){A(t,"style")})},get width(){return P.width},get height(){return P.height},get listWidth(){return P.listWidth},get listHeight(){return P.listHeight},get slideWidth(){return P.slideWidth},get slideHeight(){return P.slideHeight},get gap(){return P.gap},get padding(){return P.padding},get numInView(){return P.numInView}};function e(){var t,n,e,i,o,r,s,a,u,d,c,l,f,p,h,g,v,m,y,b,x,w,E=S.options;k=_.Slides.getSlides(!0,!0),(P=C?(l=S,p=E,b=(f=_).Elements,x=l.root,w=b.track,{marginProp:"marginBottom",gap:W(x,p.gap),padding:(h=p.padding,g=h.top,v=void 0===g?h:g,m=h.bottom,y=void 0===m?h:m,{top:W(x,v),bottom:W(x,y)}),init:function(){L(w,{paddingTop:O(this.padding.top),paddingBottom:O(this.padding.bottom)})},get width(){return w.clientWidth},get height(){var t=p.height||this.width*p.heightRatio;return z(t,'"height" or "heightRatio" is missing.'),W(l.root,t)-this.padding.top-this.padding.bottom},get listWidth(){return this.width},get listHeight(){return(this.slideHeight+this.gap)*f.Slides.total},get slideWidth(){return W(l.root,p.fixedWidth||this.width)},get slideHeight(){var t=p.fixedHeight||(this.height+this.gap)/p.perPage-this.gap;return W(l.root,t)},get numInView(){return p.fixedHeight?Math.floor((this.height+this.gap)/(this.slideHeight+this.gap))||1:p.perPage}}):(t=S,e=E,u=(n=_).Elements,d=t.root,c=u.track,{marginProp:"rtl"===e.direction?"marginLeft":"marginRight",height:0,listHeight:0,gap:W(d,e.gap),padding:(i=e.padding,o=i.left,r=void 0===o?i:o,s=i.right,a=void 0===s?i:s,{left:W(d,r),right:W(d,a)}),init:function(){L(c,{paddingLeft:O(this.padding.left),paddingRight:O(this.padding.right)})},get width(){return c.clientWidth-this.padding.left-this.padding.right},get listWidth(){return(this.slideWidth+this.gap)*n.Slides.total},get slideWidth(){var t=e.fixedWidth||(this.width+this.gap)/e.perPage-this.gap;return W(d,t)},get slideHeight(){var t=e.height||e.fixedHeight||this.width*e.heightRatio;return W(d,t)},get numInView(){return e.fixedWidth?Math.floor((this.width+this.gap)/(this.slideWidth+this.gap))||1:e.perPage}})).init(),L(I,{maxWidth:O(E.width)}),k.forEach(function(t){var n;L(t.slide,((n={})[P.marginProp]=O(P.gap),n))}),M()}function M(){L(t,{width:O(o.listWidth),height:O(o.listHeight)}),L(i,{height:O(o.height)});var n=O(P.slideWidth),e=O(P.slideHeight);k.forEach(function(t){L(t.container,{height:e}),L(t.slide,{width:n,height:t.container?"":e})})}return o}function tt(u,d){var e,i,o,c=d.Track,l=d.Controller,r=!1,s="ttb"===u.options.direction,f=s?"y":"x",n={required:u.options.drag,disabled:!1,mount:function(){var t=d.Elements.list;u.on("touchstart mousedown",a,t).on("touchmove mousemove",p,t,{passive:!1}).on("touchend touchcancel mouseleave mouseup dragend",h,t),v(t.querySelectorAll("img, a"),function(t){u.on("dragstart",function(t){t.preventDefault()},t,{passive:!1})})}};function a(t){n.disabled||r||!u.State.is(N)||(e=c.toCoord(c.position),i=g(t,{}),o=i)}function p(t){if(i)if(o=g(t,i),r){t.cancelable&&t.preventDefault();var n=e[f]+o.offset[f];c.translate(function(t){if(!u.is(T)){var n=c.trim,e=c.toPosition,i=l.isRtl()?-1:1,o=i*n(e(0)),r=i*n(e(l.edgeIndex));o<(t*=i)?t=5*Math.log(t-o)+o:t<r&&(t=-5*Math.log(r-t)+r),t*=i}return t}(n))}else!function(t){var n=t.offset;if(u.State.is(N)){var e=180*Math.atan(Math.abs(n.y)/Math.abs(n.x))/Math.PI;return s&&(e=90-e),e<30}return}(o)||(u.emit("drag",i),r=!0)}function h(){i=null,r&&(u.emit("dragged",o),function(t){var n=t.velocity[f],e=Math.abs(n);if(0<e){var i=d.Layout,o=u.options,r=n<0?-1:1,s=c.position;e>o.flickThreshold&&Math.abs(t.offset[f])<150&&(s+=r*Math.min(e*o.flickPower,i.width*(o.flickMaxPages||1)));var a=c.toIndex(s);a===u.index&&(a+=l.isRtl()?r:-r),u.is(T)||(a=m(a,0,l.edgeIndex)),l.go(a,o.isNavigation)}}(o),r=!1)}function g(t,n){var e=t.timeStamp,i=t.touches,o=i?i[0]:t,r=o.clientX,s=o.clientY,a=n.to||{},u=a.x,d=void 0===u?r:u,c=a.y,l=void 0===c?s:c,f={x:r-d,y:s-l},p=e-(n.timeStamp||0);return{from:{x:d,y:l},to:{x:r,y:s},offset:f,timeStamp:e,velocity:{x:f.x/p,y:f.y/p}}}return n}function nt(r,o,s){var a,e=[],u={required:r.options.autoplay,mount:function(){var t=r.options,n=o.Elements,e=n.slides,i=n.bar;e.length>t.perPage&&(a=Z(function(){r.go(">")},t.interval,function(t){r.emit(s+":playing",t),i&&L(i,{width:100*t+"%"})}),function(){var t=r.options,n=o.Elements,e=r.sibling,i=[r.root,e?e.root:null];t.pauseOnHover&&(d(i,"mouseleave",rt,!0),d(i,"mouseenter",rt,!1));t.pauseOnFocus&&(d(i,"focusout",st,!0),d(i,"focusin",st,!1));r.on("click",function(){u.play(st),u.play(at)},n.play).on("move",function(){u.play()}).on("destroy",function(){u.pause()}),d([n.pause],"click",at,!1)}(),this.play())},play:function(n){void 0===n&&(n=0),(e=e.filter(function(t){return t!==n})).length||(r.emit(s+":play"),a.play())},pause:function(t){void 0===t&&(t=0),a.pause(),-1===e.indexOf(t)&&e.push(t),1===e.length&&r.emit(s+":pause")}};function d(t,n,e,i){for(var o in t)r.on(n,function(){u[i?"play":"pause"](e)},t[o])}return u}function et(o,r,s){var a,u,n,i=o.classes,d=o.root;function e(t){var n=o.options.perMove;o.go(n?(t?"-":"+")+n:t?"<":">")}function c(){var t=r.Controller,n=t.prevIndex,e=t.nextIndex,i=o.length>o.options.perPage;a.disabled=n<0||!i,u.disabled=e<0||!i,o.emit(s+":updated",a,u,n,e)}function l(t){return y('<button class="'+i.arrow+" "+(t?i.prev:i.next)+'"><svg xmlns="http://www.w3.org/2000/svg"\tviewBox="0 0 40 40"\twidth="40"\theight="40"><path d="'+(o.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")+'" />')}return{required:o.options.arrows,mount:function(){var t=r.Elements;a=t.arrows.prev,u=t.arrows.next,a&&u||!o.options.arrows||(a=l(!0),u=l(!1),n=!0,function(){var t=g("div",{class:i.arrows});x(t,a),x(t,u);var n=r.Elements.slider,e="slider"===o.options.arrows&&n?n:d;w(t,e.firstElementChild)}()),a&&u&&o.on("click",function(){return e(!0)},a).on("click",function(){return e(!1)},u).on("mounted move updated",c),this.arrows={prev:a,next:u}},mounted:function(){o.emit(s+":mounted",a,u)},destroy:function(){[a,u].forEach(function(t){A(t,"disabled")}),n&&b(a.parentElement)}}}function it(a,i,r){var u={},d={required:a.options.pagination,mount:function(){var n,o,r,s,t;n=a.options,o=a.classes,r=g("ul",{class:o.pagination}),s=i.Slides,t=s.getSlides(!1,!0).filter(function(t){return!1!==n.focus||t.index%n.perPage==0}).map(function(t,n){var e=g("li",{}),i=g("button",{class:o.page});return x(e,i),x(r,e),a.on("click",function(){a.go(">"+n)},i),{li:e,button:i,page:n,Slides:s.getSlidesByPage(n)}}),u={list:r,items:t};var e=i.Elements.slider;x("slider"===a.options.pagination&&e?e:a.root,u.list),a.on(ut,c).on(dt,function(){d.destroy(),a.options.pagination&&(d.mount(),d.mounted())})},mounted:function(){var t=a.index;a.emit(r+":mounted",u,this.getItem(t)),c(t,-1)},destroy:function(){b(u.list),u.items&&u.items.forEach(function(t){a.off("click",t.button)}),a.off(ut).off(dt),u={}},getItem:function(t){return u.items[i.Controller.indexToPage(t)]},get data(){return u}};function c(t,n){var e=d.getItem(n),i=d.getItem(t),o=p.active;e&&_(e.button,o),i&&S(i.button,o),a.emit(r+":updated",u,e,i)}return d}function ot(a,i){var u=a.i18n;function n(t,n){P(t,gt,!n),P(t,vt,n?0:-1)}function t(t,n){var e=i.Elements.track.id;P(t,pt,e),P(n,pt,e)}function o(t,n,e,i){var o=a.index,r=-1<e&&o<e?u.last:u.prev,s=-1<i&&i<o?u.first:u.next;P(t,ht,r),P(n,ht,s)}function r(t,n){n&&P(n.button,ft,!0),t.items.forEach(function(t){var n=a.options,e=f(!1===n.focus&&1<n.perPage?u.pageX:u.slideX,t.page+1),i=t.button,o=t.Slides.map(function(t){return t.slide.id});P(i,pt,o.join(" ")),P(i,ht,e)})}function s(t,n,e){n&&A(n.button,ft),e&&P(e.button,ft,!0)}function d(r){i.Slides.getSlides(!0,!0).forEach(function(t){var n=t.slide;l(n)||P(n,"role","button");var e=-1<t.realIndex?t.realIndex:t.index,i=f(u.slideX,e+1),o=r.Components.Slides.getSlide(e);P(n,ht,i),o&&P(n,pt,o.slide.id)})}function c(t,n){var e=t.slide;n?P(e,ft,!0):A(e,ft)}function l(t){return"button"===t.tagName.toLowerCase()}return{required:a.options.accessibility,mount:function(){var e;a.on("visible",function(t){n(t.slide,!0)}).on("hidden",function(t){n(t.slide,!1)}).on("arrows:mounted",t).on("arrows:updated",o).on("pagination:mounted",r).on("pagination:updated",s),a.options.isNavigation&&a.on("navigation:mounted",d).on("active",function(t){c(t,!0)}).on("inactive",function(t){c(t,!1)}),[(e=i.Elements).play,e.pause].forEach(function(t,n){t&&(l(t)||P(t,"role","button"),P(t,pt,e.track.id),P(t,ht,u[0===n?"play":"pause"]))})},destroy:function(){var t=i.Elements,n=i.Arrows.arrows;t.slides.concat([n.prev,n.next,t.play,t.pause]).forEach(function(t){A(t,[gt,vt,pt,ht,ft,"role"])})}}}var rt=1,st=2,at=3,ut="move.page",dt="updated.page",ct="data-splide-lazy",lt={horizontal:{ArrowLeft:"<",ArrowRight:">",Left:"<",Right:">"},vertical:{ArrowUp:"<",ArrowDown:">",Up:"<",Down:">"}},ft="aria-current",pt="aria-controls",ht="aria-label",gt="aria-hidden",vt="tabindex",mt="move.sync",yt=[" ","Enter","Spacebar"],bt={Options:X,Elements:G,Controller:F,Slides:U,Track:Y,Clones:J,Layout:$,Drag:tt,Click:function(t,n){var e=!1;function i(t){e&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}return{required:t.options.drag&&!t.is(H),mount:function(){t.on("click",i,n.Elements.track,{capture:!0}).on("drag",function(){e=!0}).on("moved",function(){e=!1})}}},Autoplay:nt,Cover:function(t,n){function e(e){n.Slides.getSlides(!0,!1).forEach(function(t){var n=h(t,"img");n&&n.src&&i(n,e)})}function i(t,n){void 0===n&&(n=!1),L(t.parentElement,{background:n?"":'center/cover no-repeat url("'+t.src+'")'}),L(t,{display:n?"":"none"})}return{required:t.options.cover,mount:function(){e(!1),t.on("lazyload:loaded",function(t){i(t)}),t.on("updated",function(){return e(!1)})},destroy:function(){e(!0)}}},Arrows:et,Pagination:it,LazyLoad:function(o,t,r){var n=0,i=[],e=o.options.lazyLoad,s="sequential"===e,a=!1;function u(t,n){S(n.slide,p.loading);var e=g("span",{class:o.classes.spinner});x(t.parentElement,e),t.onload=function(){c(t,e,n,!1)},t.onerror=function(){c(t,e,n,!0)},P(t,"src",I(t,ct))}function d(){if(n<i.length){var t=i[n];u(t.img,t.Slide)}n++}function c(t,n,e,i){_(e.slide,p.loading),i||(b(n),L(t,{visibility:"visible"}),o.emit(r+":loaded",t)),s&&!a&&d()}return{required:e,mount:function(){t.Slides.getSlides(!0,!0).forEach(function(t){var n=h(t.slide,"["+ct+"]");n&&(i.push({img:n,Slide:t}),L(n,{visibility:"hidden"}))}),i.length&&(s?d():o.on("mounted moved."+r,function(t){var n,e;n=t||o.index,e=o.options,(i=i.filter(function(t){return!t.Slide.isWithin(n,e.perPage*(e.preloadPages+1))||(u(t.img,t.Slide),!1)})).length||o.off("moved."+r)}))},destroy:function(){a=!0}}},Keyboard:function(e){return{mount:function(){var n=lt["ttb"===e.options.direction?"vertical":"horizontal"];e.on("mounted updated",function(){e.off("keydown",e.root),e.options.keyboard&&e.on("keydown",function(t){n[t.key]&&e.go(n[t.key])},e.root)})}}},Sync:function(i){var o=i.sibling,t=o&&o.options.isNavigation;function r(){i.on(mt,function(t,n,e){o.off(mt).go(o.is(T)?e:t,!1),s()})}function s(){o.on(mt,function(t,n,e){i.off(mt).go(i.is(T)?e:t,!1),r()})}function a(t){i.State.is(N)&&o.go(t)}return{required:!!o,mount:function(){r(),s(),t&&o.Components.Slides.getSlides(!0,!0).forEach(function(t){var n=t.slide,e=t.index;i.on("mouseup touchend",function(t){t.button&&0!==t.button||a(e)},n),i.on("keyup",function(t){-1<yt.indexOf(t.key)&&(t.preventDefault(),a(e))},n,{passive:!1})})},mounted:function(){t&&o.emit("navigation:mounted",i)}}},A11y:ot,Breakpoints:function(e){var i,o,r=e.options.breakpoints,s=[];return{required:r&&matchMedia,mount:function(){s=Object.keys(r).sort(function(t,n){return parseInt(t)-parseInt(n)}).map(function(t){return{point:t,mql:matchMedia("(max-width:"+t+"px)")}}),e.on("mounted resize",function(){var t,n=(t=s.filter(function(t){return t.mql.matches})[0])?t.point:-1;n!==o&&(e.options=r[n]||i,o=n)})},mounted:function(){i=e.options}}}};e.d(n,"Splide",function(){return xt});var xt=function(e){var t,n;function i(t,n){return e.call(this,t,n,bt)||this}return n=e,(t=i).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,i}(K);window.Splide=xt}]);
|