function At(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}var n=this,t=function(){"use strict";var m="splide",l="data-"+m,K=10;function P(n){n.length=0}function R(n){return!o(n)&&"object"==typeof n}function i(n){return Array.isArray(n)}function z(n){return"string"==typeof n}function Q(n){return void 0===n}function o(n){return null===n}function V(n){return n instanceof HTMLElement}function y(n){return i(n)?n:[n]}function b(n,t){y(n).forEach(t)}function Z(n,t){return-1<n.indexOf(t)}function w(n,t){return n.push.apply(n,y(t)),n}var r=Array.prototype;function a(n,t,e){return r.slice.call(n,t,e)}function _(t,n,e){t&&b(n,function(n){n&&t.classList[e?"add":"remove"](n)})}function k(n,t){_(n,z(t)?t.split(" "):t,!0)}function $(n,t){b(t,n.appendChild.bind(n))}function nn(n,e){b(n,function(n){var t=e.parentNode;t&&t.insertBefore(n,e)})}function tn(n,t){return V(n)&&(n.msMatchesSelector||n.matches).call(n,t)}function en(n,t){return n?a(n.children).filter(function(n){return tn(n,t)}):[]}function A(n,t){return t?en(n,t)[0]:n.firstElementChild}function s(n,t,e){if(n)for(var i=Object.keys(n),i=e?i.reverse():i,o=0;o<i.length;o++){var r=i[o];if("__proto__"!==r&&!1===t(n[r],r))break}}function on(i){return a(arguments,1).forEach(function(e){s(e,function(n,t){i[t]=e[t]})}),i}function f(e,n){return s(n,function(n,t){i(n)?e[t]=n.slice():R(n)?e[t]=f(R(e[t])?e[t]:{},n):e[t]=n}),e}function L(t,n){t&&b(n,function(n){t.removeAttribute(n)})}function C(e,n,t){R(n)?s(n,function(n,t){C(e,t,n)}):o(t)?L(e,n):e.setAttribute(n,String(t))}function D(n,t,e){return n=document.createElement(n),t&&(z(t)?k:C)(n,t),e&&$(e,n),n}function M(n,t,e){if(Q(e))return getComputedStyle(n)[t];o(e)||(n=n.style)[t]!==(e=""+e)&&(n[t]=e)}function rn(n,t){M(n,"display",t)}function I(n,t){return n.getAttribute(t)}function un(n,t){return n&&n.classList.contains(t)}function N(n){return n.getBoundingClientRect()}function O(n){b(n,function(n){n&&n.parentNode&&n.parentNode.removeChild(n)})}function sn(n){return A((new DOMParser).parseFromString(n,"text/html").body)}function F(n,t){n.preventDefault(),t&&(n.stopPropagation(),n.stopImmediatePropagation())}function x(n,t){return n&&n.querySelector(t)}function cn(n,t){return a(n.querySelectorAll(t))}function an(n,t){_(n,t,!1)}function E(n){return z(n)?n:n?n+"px":""}function fn(n,t){if(void 0===t&&(t=""),!n)throw new Error("["+m+"] "+t)}function v(n){setTimeout(n)}function ln(){}function h(n){requestAnimationFrame(n)}var dn=Math.min,hn=Math.max,pn=Math.floor,gn=Math.ceil,j=Math.abs;function vn(n,t,e,i){var o=dn(t,e),e=hn(t,e);return i?o<n&&n<e:o<=n&&n<=e}function mn(n,t,e){var i=dn(t,e),e=hn(t,e);return dn(hn(i,n),e)}function yn(n){return(0<n)-(n<0)}function bn(t,n){return b(n,function(n){t=t.replace("%s",""+n)}),t}function wn(n){return n<10?"0"+n:""+n}var xn={};var W="mounted",T="move",En="moved",Sn="shifted",Pn="click",kn="active",_n="inactive",An="visible",Ln="hidden",Cn="slide:keydown",B="refresh",X="updated",S="resize",zn="resized",Dn="repositioned",Mn="scrolled",c="destroy",In="navigation:mounted",Nn="lazyload:loaded";function H(n){var i=n.event,o={},r=[];function t(n,t,i){u(n,t,function(t,e){r=r.filter(function(n){return!!(n[0]!==t||n[1]!==e||i&&n[2]!==i)||(t.removeEventListener(e,n[2],n[3]),!1)})})}function u(n,t,e){b(n,function(n){n&&t.split(" ").forEach(e.bind(null,n))})}function e(){r=r.filter(function(n){return t(n[0],n[1])}),i.offBy(o)}return i.on(c,e,o),{on:function(n,t,e){i.on(n,t,o,e)},off:function(n){i.off(n,o)},emit:i.emit,bind:function(n,t,e,i){u(n,t,function(n,t){r.push([n,t,e,i]),n.addEventListener(t,e,i)})},unbind:t,destroy:e}}function On(t,e,i,o){var r,n,u=Date.now,s=0,c=!0,a=0;function f(){if(!c){var n=u()-r;if(t<=n?(s=1,r=u()):s=n/t,i&&i(s),1===s&&(e(),o)&&++a>=o)return l();h(f)}}function l(){c=!0}function d(){cancelAnimationFrame(n),c=!(n=s=0)}return{start:function(n){n||d(),r=u()-(n?s*t:0),c=!1,h(f)},rewind:function(){r=u(),s=0,i&&i(s)},pause:l,cancel:d,set:function(n){t=n},isPaused:function(){return c}}}function Tn(e,i){var o;return function(){var n=arguments,t=this;o||(o=On(i||0,function(){e.apply(t,n),o=null},null,1)).start()}}var u={marginRight:["marginBottom","marginLeft"],autoWidth:["autoHeight"],fixedWidth:["fixedHeight"],paddingLeft:["paddingTop","paddingRight"],paddingRight:["paddingBottom","paddingLeft"],width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp","ArrowRight"],ArrowRight:["ArrowDown","ArrowLeft"]},Rn=m,Fn=m+"__slider",jn=m+"__track",Wn=m+"__list",Bn=m+"__slide",Xn=Bn+"--clone",Hn=Bn+"__container",Gn=m+"__arrows",n=m+"__arrow",Yn=n+"--prev",qn=n+"--next",t=m+"__pagination",Un=m+"__progress",Jn=Un+"__bar",Kn=m+"__autoplay",Qn=m+"__play",Vn=m+"__pause",G="is-active",Zn="is-prev",$n="is-next",nt="is-visible",tt="is-loading",et=[G,nt,Zn,$n,tt],it="role",Y="aria-controls",ot="aria-current",q="aria-label",rt="aria-hidden",ut="tabindex",d="aria-orientation",st=[it,Y,ot,q,rt,d,ut,"disabled"],ct="slide",U="loop",at="fade";function ft(u,s,e,c){var a,n=H(u),t=n.on,f=n.emit,i=n.bind,o=n.destroy,l=u.Components,r=u.root,d=u.options,h=d.isNavigation,p=d.updateOnMove,g=l.Direction.resolve,v=I(c,"style"),m=-1<e,y=A(c,"."+Hn),b=d.focusableNodes&&cn(c,d.focusableNodes);function w(){var n=bn(d.i18n.slideX,(m?e:s)+1),t=u.splides.map(function(n){return n.splide.root.id}).join(" ");C(c,q,n),C(c,Y,t),C(c,it,"menuitem"),S(P())}function x(){a||E()}function E(){var n,t,e,i,o,r;a||(n=u.index,S(P()),o=u.is(at)?P():(e=N(l.Elements.track),i=N(c),o=g("left"),r=g("right"),pn(e[o])<=gn(i[o])&&pn(i[r])<=gn(e[r])),t=!o&&(!P()||m),C(c,rt,t||null),C(c,ut,!t&&d.slideFocus?0:null),b&&b.forEach(function(n){C(n,ut,t?-1:null)}),o!==un(c,nt)&&(_(c,nt,o),f(o?An:Ln,k)),_(c,Zn,s===n-1),_(c,$n,s===n+1))}function S(n){n!==un(c,G)&&(_(c,G,n),h&&C(c,ot,n||null),f(n?kn:_n,k))}function P(){var n=u.index;return n===s||d.cloneStatus&&n===e}var k={index:s,slideIndex:e,slide:c,container:y,isClone:m,mount:function(){m||(c.id=r.id+"-slide"+wn(s+1)),i(c,"click keydown",function(n){f("click"===n.type?Pn:Cn,k,n)}),t([B,Dn,Sn,En,Mn],E),t(In,w),p&&t(T,x)},destroy:function(){a=!0,o(),an(c,et),L(c,st),C(c,"style",v)},update:E,style:function(n,t,e){M(e&&y||c,n,t)},isWithin:function(n,t){return n=j(n-s),(n=m||!d.rewind&&!u.is(U)?n:dn(n,u.length-n))<=t}};return k}var e,lt=l+"-interval",J={passive:!1,capture:!0},dt="touchmove mousemove",ht="touchend touchcancel mouseup",pt=["Left","Right","Up","Down"],gt="keydown",vt=l+"-lazy",mt=vt+"-srcset",yt="["+vt+"], ["+mt+"]",p=[" ","Enter","Spacebar"],g=Object.freeze({__proto__:null,Options:function(t,n,i){var o,r,e,u=Tn(c);function s(n){n&&removeEventListener("resize",u)}function c(){n=function(n){return n[1].matches};var n=a(r).filter(n)[0]||[];n[0]!==e&&(n=e=n[0],(n=i.breakpoints[n]||o).destroy?(t.options=o,t.destroy("completely"===n.destroy)):(t.state.is(5)&&(s(!0),t.mount()),t.options=n))}return{setup:function(){try{f(i,JSON.parse(I(t.root,l)))}catch(n){fn(!1,n.message)}o=f({},i);var e,n=i.breakpoints;n&&(e="min"===i.mediaQuery,r=Object.keys(n).sort(function(n,t){return e?+t-+n:+n-+t}).map(function(n){return[n,matchMedia("("+(e?"min":"max")+"-width:"+n+"px)")]}),c())},mount:function(){r&&addEventListener("resize",u)},destroy:s}},Direction:function(n,t,i){return{resolve:function(n,t){var e=i.direction;return u[n]["rtl"!==e||t?"ttb"===e?0:-1:1]||n},orient:function(n){return n*("rtl"===i.direction?1:-1)}}},Elements:function(n,t,e){var i,o,r,u,s=H(n).on,c=n.root,a={},f=[];function l(){var n,t;o=A(c,"."+Fn),r=x(c,"."+jn),u=A(r,"."+Wn),fn(r&&u,"A track/list element is missing."),w(f,en(u,"."+Bn+":not(."+Xn+")")),n=g("."+Kn),t=g("."+Gn),on(a,{root:c,slider:o,track:r,list:u,slides:f,arrows:t,autoplay:n,prev:x(t,"."+Yn),next:x(t,"."+qn),bar:x(g("."+Un),"."+Jn),play:x(n,"."+Qn),pause:x(n,"."+Vn)}),t=c.id||""+m+wn(xn[m]=(xn[m]||0)+1),c.id=t,r.id=r.id||t+"-track",u.id=u.id||t+"-list",k(c,i=v())}function d(){[c,r,u].forEach(function(n){L(n,"style")}),P(f),an(c,i)}function h(){d(),l()}function p(){an(c,i),k(c,i=v())}function g(n){return A(c,n)||A(o,n)}function v(){return[Rn+"--"+e.type,Rn+"--"+e.direction,e.drag&&Rn+"--draggable",e.isNavigation&&Rn+"--nav",G]}return on(a,{setup:l,mount:function(){s(B,h,K-2),s(X,p)},destroy:d})},Slides:function(i,o,r){var n=H(i),t=n.on,u=n.emit,s=n.bind,c=(n=o.Elements).slides,a=n.list,f=[];function e(){c.forEach(function(n,t){h(n,t,-1)})}function l(){g(function(n){n.destroy()}),P(f)}function d(){l(),e()}function h(n,t,e){(n=ft(i,t,e,n)).mount(),f.push(n)}function p(n){return n?v(function(n){return!n.isClone}):f}function g(n,t){p(t).forEach(n)}function v(t){return f.filter("function"==typeof t?t:function(n){return z(t)?tn(n.slide,t):Z(y(t),n.index)})}return{mount:function(){e(),t(B,d),t([W,B],function(){f.sort(function(n,t){return n.index-t.index})})},destroy:l,update:function(){g(function(n){n.update()})},register:h,get:p,getIn:function(n){var t=o.Controller,e=t.toIndex(n),i=t.hasFocus()?1:r.perPage;return v(function(n){return vn(n.index,e,e+i-1)})},getAt:function(n){return v(n)[0]},add:function(n,o){b(n,function(n){var t,e,i;V(n=z(n)?sn(n):n)&&((t=c[o])?nn(n,t):$(a,n),k(n,r.classes.slide),e=u.bind(null,S),n=cn(n,"img"),(i=n.length)?n.forEach(function(n){s(n,"load error",function(){--i||e()})}):e())}),u(B)},remove:function(n){O(v(n).map(function(n){return n.slide})),u(B)},forEach:g,filter:v,style:function(t,e,i){g(function(n){n.style(t,e,i)})},getLength:function(n){return(n?c:f).length},isEnough:function(){return f.length>r.perPage}}},Layout:function(n,t,e){var i,o,r=H(n),u=r.on,s=r.bind,c=r.emit,a=t.Slides,f=t.Direction.resolve,l=(t=t.Elements).root,d=t.track,h=t.list,p=a.getAt;function g(){o=null,i="ttb"===e.direction,M(l,"maxWidth",E(e.width)),M(d,f("paddingLeft"),m(!1)),M(d,f("paddingRight"),m(!0)),v()}function v(){var n,t=N(l);o&&o.width===t.width&&o.height===t.height||(M(d,"height",(n="",i&&(fn(n=y(),"height or heightRatio is missing."),n="calc("+n+" - "+m(!1)+" - "+m(!0)+")"),n)),a.style(f("marginRight"),E(e.gap)),a.style("width",(e.autoWidth?"":E(e.fixedWidth)||(i?"":b()))||null),a.style("height",E(e.fixedHeight)||(i?e.autoHeight?"":b():y())||null,!0),o=t,c(zn))}function m(n){var t=e.padding,n=f(n?"right":"left");return t&&E(t[n]||(R(t)?0:t))||"0px"}function y(){return E(e.height||N(h).width*e.heightRatio)}function b(){var n=E(e.gap);return"calc((100%"+(n&&" + "+n)+")/"+(e.perPage||1)+(n&&" - "+n)+")"}function w(n,t){var e=p(n);return e?(n=N(e.slide)[f("right")],e=N(h)[f("left")],j(n-e)+(t?0:x())):0}function x(){var n=p(0);return n&&parseFloat(M(n.slide,f("marginRight")))||0}return{mount:function(){g(),s(window,"resize load",Tn(c.bind(this,S))),u([X,B],g),u(S,v)},listSize:function(){return N(h)[f("width")]},slideSize:function(n,t){return(n=p(n||0))?N(n.slide)[f("width")]+(t?0:x()):0},sliderSize:function(){return w(n.length-1,!0)-w(-1,!0)},totalSize:w,getPadding:function(n){return parseFloat(M(d,f("padding"+(n?"Right":"Left"))))||0}}},Clones:function(c,n,a){var t,e=H(c),i=e.on,o=e.emit,f=n.Elements,l=n.Slides,r=n.Direction.resolve,d=[];function u(){if(t=g()){var r=t,u=l.get().slice(),s=u.length;if(s){for(;u.length<r;)w(u,u);w(u.slice(-r),u.slice(0,r)).forEach(function(n,t){var e,i=t<r,o=(e=n.slide,o=t,k(e=e.cloneNode(!0),a.classes.clone),e.id=c.root.id+"-clone"+wn(o+1),e);i?nn(o,u[0].slide):$(f.list,o),w(d,o),l.register(o,t-r+(i?0:s),n.index)})}o(S)}}function s(){O(d),P(d)}function h(){s(),u()}function p(){t<g()&&o(B)}function g(){var n,t,e=a.clones;return c.is(U)?e||(n=f.list,z(t=a[r("fixedWidth")])&&(t=N(n=D("div",{style:"width: "+t+"; position: absolute;"},n)).width,O(n)),e=(t&&gn(N(f.track)[r("width")]/t)||a[r("autoWidth")]&&c.length||a.perPage)*(a.drag?(a.flickMaxPages||1)+1:2)):e=0,e}return{mount:function(){u(),i(B,h),i([X,S],p)},destroy:s}},Move:function(u,s,c){var a,n=H(u),t=n.on,f=n.emit,i=(n=s.Layout).slideSize,e=n.getPadding,o=n.totalSize,r=n.listSize,l=n.sliderSize,d=(n=s.Direction).resolve,h=n.orient,p=(n=s.Elements).list,g=n.track;function v(){S()||(s.Scroll.cancel(),m(u.index),f(Dn))}function m(n){y(w(n,!0))}function y(n,t){var e,i,o;u.is(at)||(t=t?n:(e=n,e=u.is(U)&&(o=h(e-x()),i=P(!1,e)&&o<0,o=P(!0,e)&&0<o,i||o)?b(e,o):e),p.style.transform="translate"+d("X")+"("+t+"px)",n!==t&&f(Sn))}function b(n,t){var e=n-E(t),i=l();return n-h(i*(gn(j(e)/i)||1))*(t?1:-1)}function w(n,t){var e=h(o(n-1)-(e=n,"center"===(n=c.focus)?(r()-i(e,!0))/2:+n*i(e)||0));return t?(n=e,n=c.trimSpace&&u.is(ct)?mn(n,0,h(l()-r())):n):e}function x(){var n=d("left");return N(p)[n]-N(g)[n]+h(e(!1))}function E(n){return w(n?s.Controller.getEnd():0,!!c.trimSpace)}function S(){return u.state.is(4)&&c.waitForTransition}function P(n,t){t=Q(t)?x():t;var e=!0!==n&&h(t)<h(E(!1)),t=!1!==n&&h(t)>h(E(!0));return e||t}return{mount:function(){a=s.Transition,t([W,zn,X,B],v)},destroy:function(){L(p,"style")},move:function(n,t,e,i){var o,r;S()||(o=u.state.set,r=x(),n!==t&&(a.cancel(),y(b(r,t<n),!0)),o(4),f(T,t,e,n),a.start(t,function(){o(3),f(En,t,e,n),"move"===c.trimSpace&&n!==e&&r===x()?s.Controller.go(e<n?">":"<",!1,i):i&&i()}))},jump:m,translate:y,shift:b,cancel:function(){y(x()),a.cancel()},toIndex:function(n){for(var t=s.Slides.get(),e=0,i=1/0,o=0;o<t.length;o++){var r=t[o].index,u=j(w(r,!0)-n);if(!(u<=i))break;i=u,e=r}return e},toPosition:w,getPosition:x,getLimit:E,isBusy:S,exceededLimit:P}},Controller:function(n,u,s){var o,r,c,t=H(n).on,a=u.Move,f=a.getPosition,l=a.getLimit,e=u.Slides,d=e.isEnough,i=e.getLength,h=n.is(U),p=n.is(ct),g=s.start||0,v=g;function m(){o=i(!0),r=s.perMove,c=s.perPage,g=mn(g,0,o-1)}function y(n,t,e,i,o){var r=t?n:A(n);u.Scroll.scroll(t||e?a.toPosition(r,!0):n,i,function(){L(a.toIndex(a.getPosition())),o&&o()})}function b(n){return x(!1,n)}function w(n){return x(!0,n)}function x(n,t){var e,i,o=r||(C()?1:c),o=E(g+o*(n?-1:1),g);return-1!==o||!p||(e=f(),i=l(!n),j(e-i)<1)?t?o:P(o):n?0:S()}function E(n,t,e){var i;return d()?(i=S(),n<0||i<n?n=vn(0,n,t,!0)||vn(i,t,n,!0)?k(_(n)):h?r||C()?n:n<0?-(o%c||c):o:s.rewind?n<0?i:0:-1:e||n===t||(n=r?n:k(_(t)+(n<t?-1:1)))):n=-1,n}function S(){var n=o-c;return(C()||h&&r)&&(n=o-1),hn(n,0)}function P(n){return h?d()?n%o+(n<0?o:0):-1:n}function k(n){return mn(C()?n:c*n,0,S())}function _(n){return C()||(n=vn(n,o-c,o-1)?o-1:n,n=pn(n/c)),n}function A(n){return n=a.toIndex(n),p?mn(n,0,S()):n}function L(n){n!==g&&(v=g,g=n)}function C(){return!Q(s.focus)||s.isNavigation}return{mount:function(){m(),t([X,B],m,K-1)},go:function(n,t,e){r=g,z(i=n)?(o=(u=i.match(/([+\-<>])(\d+)?/)||[])[1],u=u[2],"+"===o||"-"===o?r=E(g+ +(""+o+(+u||1)),g,!0):">"===o?r=u?k(+u):b(!0):"<"===o&&(r=w(!0))):r=h?i:mn(i,0,S());var i,o,r,u=r;s.useScroll?y(u,!0,!0,s.speed,e):-1<(n=P(u))&&!a.isBusy()&&(t||n!==g)&&(L(n),a.move(u,n,v,e))},scroll:y,getNext:b,getPrev:w,getAdjacent:x,getEnd:S,setIndex:L,getIndex:function(n){return n?v:g},toIndex:k,toPage:_,toDest:A,hasFocus:C}},Arrows:function(o,n,e){var i,t=H(o),r=t.on,u=t.bind,s=t.emit,c=e.classes,a=e.i18n,f=n.Elements,l=n.Controller,d=f.arrows,h=f.prev,p=f.next,g={};function v(){var n,t;!e.arrows||h&&p||(d=D("div",c.arrows),h=m(!0),p=m(!1),i=!0,$(d,[h,p]),nn(d,A("slider"===e.arrows&&f.slider||o.root))),h&&p&&(g.prev?rn(d,!1===e.arrows?"none":""):(n=f.track.id,C(h,Y,n),C(p,Y,n),g.prev=h,g.next=p,t=l.go,r([W,En,X,B,Mn],y),u(p,"click",function(){t(">",!0)}),u(h,"click",function(){t("<",!0)}),s("arrows:mounted",h,p)))}function m(n){return sn('<button class="'+c.arrow+" "+(n?c.prev:c.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40"><path d="'+(e.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")+'" />')}function y(){var n=o.index,t=l.getPrev(),e=l.getNext(),i=-1<t&&n<t?a.last:a.prev,n=-1<e&&e<n?a.first:a.next;h.disabled=t<0,p.disabled=e<0,C(h,q,i),C(p,q,n),s("arrows:updated",h,p,t,e)}return{arrows:g,mount:function(){v(),r(X,v)},destroy:function(){i?O(d):(L(h,st),L(p,st))}}},Autoplay:function(t,e,i){var o,r,u,n=H(t),s=n.on,c=n.bind,a=n.emit,f=On(i.interval,t.go.bind(t,">"),function(n){var t=d.bar;t&&M(t,"width",100*n+"%"),a("autoplay:playing",n)}),l=f.isPaused,d=e.Elements;function h(n){var t=n?"pause":"play",e=d[t];e&&(C(e,Y,d.track.id),C(e,q,i.i18n[t]),c(e,"click",n?g:p))}function p(){l()&&e.Slides.isEnough()&&(f.start(!i.resetProgress),r=o=u=!1,a("autoplay:play"))}function g(n){void 0===n&&(n=!0),l()||(f.pause(),a("autoplay:pause")),u=n}function v(){u||(o||r?g(!1):p())}function m(){var n=e.Slides.getAt(t.index);f.set(n&&+I(n.slide,lt)||i.interval)}return{mount:function(){var n,t=i.autoplay;t&&(h(!0),h(!1),n=d.root,i.pauseOnHover&&c(n,"mouseenter mouseleave",function(n){o="mouseenter"===n.type,v()}),i.pauseOnFocus&&c(n,"focusin focusout",function(n){r="focusin"===n.type,v()}),s([T,"scroll",B],f.rewind),s(T,m),"pause"!==t)&&p()},destroy:f.cancel,play:p,pause:g,isPaused:l}},Cover:function(n,t,e){var i=H(n).on;function o(e){t.Slides.forEach(function(n){var t=A(n.container||n.slide,"img");t&&t.src&&r(e,t,n)})}function r(n,t,e){e.style("background",n?'center/cover no-repeat url("'+t.src+'")':"",!0),rn(t,n?"none":"")}return{mount:function(){e.cover&&(i(Nn,function(n,t){r(!0,n,t)}),i([W,X,B],o.bind(null,!0)))},destroy:function(){o(!1)}}},Scroll:function(c,n,a){var f,l,t=H(c),e=t.on,d=t.emit,h=n.Move,p=h.getPosition,g=h.getLimit,v=h.exceededLimit;function m(){var n=p(),t=h.toIndex(n);vn(t,0,c.length-1)||h.translate(h.shift(n,0<t),!0),l&&l(),d(Mn)}function y(){f&&f.cancel()}function i(){f&&!f.isPaused()&&(y(),m())}return{mount:function(){e(T,y),e([X,B],i)},destroy:y,scroll:function i(o,n,t,r){var e,u=p(),s=1;n=n||(e=j(o-u),hn(e/1.5,800)),l=t,y(),f=On(n,m,function(n){var t=p(),e=(u+(o-u)*(e=n,(n=a.easingFunc)?n(e):1-Math.pow(1-e,4))-p())*s;h.translate(t+e),c.is(ct)&&!r&&v()&&(s*=.6,j(e)<10)&&(e=v(!1),i(g(!e),600,null,!0))},1),d("scroll"),f.start()},cancel:i}},Drag:function(o,r,u){var s,c,a,f,l,d,h,i,p,n=H(o),t=n.on,g=n.emit,v=n.bind,m=n.unbind,y=r.Move,b=r.Scroll,w=r.Controller,x=r.Elements.track,e=(n=r.Direction).resolve,E=n.orient,S=y.getPosition,P=y.exceededLimit,k=!1;function _(){var n=u.drag;O(!n),l="free"===n}function A(n){var t,e;i||(e=u.noDrag,t=N(n),e=!e||!tn(n.target,e),h=!1,!e)||!t&&n.button||(y.isBusy()?F(n,!0):(p=t?x:window,f=a=null,v(p,dt,L,J),v(p,ht,C,J),y.cancel(),b.cancel(),z(n)))}function L(n){var t,e,i;f||g("drag"),(f=n).cancelable&&(t=M(n)-M(c),d?(y.translate(s+t/(k&&o.is(ct)?5:1)),e=200<I(n)-I(c),i=k!==(k=P()),(e||i)&&z(n),g("dragging"),h=!0,F(n)):(i=R(i=u.dragMinThreshold)?i:{mouse:0,touch:+i||10},d=j(t)>(N(n)?i.touch:i.mouse),D()&&F(n)))}function C(n){m(p,dt,L),m(p,ht,C);var t,e,i=o.index;f?((d||n.cancelable&&D())&&(e=t=function(n){if(o.is(U)||!k){var t=c===f&&a||c,e=M(f)-M(t),t=I(n)-I(t),n=I(n)-I(f)<200;if(t&&n)return e/t}return 0}(n),e=S()+yn(e)*dn(j(e)*(u.flickPower||600),l?1/0:r.Layout.listSize()*(u.flickMaxPages||1)),l?w.scroll(e):o.is(at)?w.go(i+E(yn(t))):w.go(w.toDest(e),!0),F(n)),g("dragged")):l||S()===y.toPosition(i)||w.go(i,!0),d=!1}function z(n){a=c,c=n,s=S()}function T(n){!i&&h&&F(n,!0)}function D(){var n=j(M(f)-M(c));return j(M(f,!0)-M(c,!0))<n}function M(n,t){return(N(n)?n.touches[0]:n)["page"+e(t?"Y":"X")]}function I(n){return n.timeStamp}function N(n){return"undefined"!=typeof TouchEvent&&n instanceof TouchEvent}function O(n){i=n}return{mount:function(){v(x,dt,ln,J),v(x,ht,ln,J),v(x,"touchstart mousedown",A,J),v(x,"click",T,{capture:!0}),v(x,"dragstart",F),t([W,X],_)},disable:O,isDragging:function(){return d}}},Keyboard:function(t,n,e){var i,o,r=H(t),u=r.on,s=r.bind,c=r.unbind,a=t.root,f=n.Direction.resolve;function l(){var n=e.keyboard;n&&("focused"===n?C(i=a,ut,0):i=window,s(i,gt,g))}function d(){c(i,gt),V(i)&&L(i,ut)}function h(){var n=o;o=!0,v(function(){o=n})}function p(){d(),l()}function g(n){o||(n=n.key,(n=Z(pt,n)?"Arrow"+n:n)===f("ArrowLeft")?t.go("<"):n===f("ArrowRight")&&t.go(">"))}return{mount:function(){l(),u(X,p),u(T,h)},destroy:d,disable:function(n){o=n}}},LazyLoad:function(e,n,u){var t=H(e),i=t.on,o=t.off,r=t.bind,s=t.emit,c="sequential"===u.lazyLoad,a=[],f=0;function l(){h(),d()}function d(){n.Slides.forEach(function(r){cn(r.slide,yt).forEach(function(n){var t,e,i=I(n,vt),o=I(n,mt);i===n.src&&o===n.srcset||(t=u.classes.spinner,C(e=A(e=n.parentElement,"."+t)||D("span",t,e),it,"presentation"),a.push({o:n,e:r,src:i,srcset:o,c:e}),n.src)||rn(n,"none")})}),c&&v()}function h(){f=0,a=[]}function p(){(a=a.filter(function(n){var t=u.perPage*((u.preloadPages||1)+1)-1;return!n.e.isWithin(e.index,t)||g(n)})).length||o(En)}function g(i){var t=i.o;k(i.e.slide,tt),r(t,"load error",function(n){var t,e;t=i,n="error"===n.type,an((e=t.e).slide,tt),n||(O(t.c),rn(t.o,""),s(Nn,t.o,e),s(S)),c&&v()}),["srcset","src"].forEach(function(n){i[n]&&(C(t,n,i[n]),L(t,"src"===n?vt:mt))})}function v(){f<a.length&&g(a[f++])}return{mount:function(){u.lazyLoad&&(d(),i(B,l),c||i([W,B,En,Mn],p))},destroy:h}},Pagination:function(l,n,d){var h,t=H(l),e=t.on,p=t.emit,g=t.bind,i=t.unbind,v=n.Slides,m=n.Elements,o=n.Controller,y=o.hasFocus,r=o.getIndex,b=[];function u(){if(w(),d.pagination&&v.isEnough()){var n=l.length,t=d.classes,e=d.i18n,i=d.perPage,o="slider"===d.pagination&&m.slider||m.root,r=y()?n:gn(n/i);h=D("ul",t.pagination,o);for(var u=0;u<r;u++){var s=D("li",null,h),c=D("button",{class:t.page,type:"button"},s),a=v.getIn(u).map(function(n){return n.slide.id}),f=!y()&&1<i?e.pageX:e.slideX;g(c,"click",x.bind(null,u)),C(c,Y,a.join(" ")),C(c,q,bn(f,u+1)),b.push({li:s,button:c,page:u})}p("pagination:mounted",{list:h,items:b},E(l.index)),S()}}function w(){h&&(O(h),b.forEach(function(n){i(n.button,"click")}),P(b),h=null)}function x(t){o.go(">"+t,!0,function(){var n=v.getAt(o.toIndex(t));!n||(n=n.slide).setActive&&n.setActive()||n.focus({preventScroll:!0})})}function E(n){return b[o.toPage(n)]}function S(){var n=E(r(!0)),t=E(r());n&&(an(n.button,G),L(n.button,ot)),t&&(k(t.button,G),C(t.button,ot,!0)),p("pagination:updated",{list:h,items:b},n,t)}return{items:b,mount:function(){u(),e([X,B],u),e([T,Mn],S)},destroy:w,getAt:E,update:S}},Sync:function(o,n,e){var i=n.Elements.list,r=[];function t(){var n,t;o.splides.forEach(function(n){var e;n.isParent||(e=n.splide,[o,e].forEach(function(n){var t=H(n),i=n===o?e:o;t.on(T,function(n,t,e){i.go(i.is(U)?e:n)}),r.push(t)}))}),e.isNavigation&&((t=(n=H(o)).on)(Pn,c),t(Cn,a),t([W,X],s),C(i,it,"menu"),r.push(n),n.emit(In,o.splides))}function u(){L(i,st),r.forEach(function(n){n.destroy()}),P(r)}function s(){C(i,d,"ttb"!==e.direction?"horizontal":null)}function c(n){o.go(n.index)}function a(n,t){Z(p,t.key)&&(c(n),F(t))}return{mount:t,destroy:u,remount:function(){u(),t()}}},Wheel:function(e,i,o){var n=H(e).bind;function t(n){var t;n.cancelable&&(t=n.deltaY)&&(e.go((t=t<0)?"<":">"),o.releaseWheel&&!e.state.is(4)&&-1===i.Controller.getAdjacent(t)||F(n))}return{mount:function(){o.wheel&&n(i.Elements.track,"wheel",t,J)}}}}),bt={type:"slide",speed:400,waitForTransition:!0,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,keyboard:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",slideFocus:!0,trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",classes:{slide:Bn,clone:Xn,arrows:Gn,arrow:n,prev:Yn,next:qn,pagination:t,page:t+"__page",spinner:m+"__spinner"},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 wt(n,i,t){var e=H(n).on;return{mount:function(){e([W,B],function(){v(function(){i.Slides.style("transition","opacity "+t.speed+"ms "+t.easing)})})},start:function(n,t){var e=i.Elements.track;M(e,"height",E(N(e).height)),v(function(){t(),M(e,"height","")})},cancel:ln}}function xt(r,n,u){var s,t=H(r).bind,c=n.Move,a=n.Controller,e=n.Elements.list;function i(){f("")}function f(n){M(e,"transition",n)}return{mount:function(){t(e,"transitionend",function(n){n.target===e&&s&&(i(),s())})},start:function(n,t){var e=c.toPosition(n,!0),i=c.getPosition(),o=function(n){var t=u.rewindSpeed;if(r.is(ct)&&t){var e=a.getIndex(!0),i=a.getEnd();if(0===e&&i<=n||i<=e&&0===n)return t}return u.speed}(n);1<=j(e-i)&&1<=o?(f("transform "+o+"ms "+u.easing),c.translate(e,!0),s=t):(c.jump(n),t())},cancel:i}}function Et(n,t){var e,r;function i(n,i){u(n,function(n,t){var e=r[n];r[n]=e&&e.filter(function(n){return n.n?n.n!==i:i||n.t!==t})})}function u(n,t){y(n).join(" ").split(" ").forEach(function(n){n=n.split("."),t(n[0],n[1])})}this.event=(r={},{on:function(n,e,i,o){void 0===o&&(o=K),u(n,function(n,t){r[n]=r[n]||[],w(r[n],{i:n,r:e,t:t,u:o,n:i}).sort(function(n,t){return n.u-t.u})})},off:i,offBy:function(e){s(r,function(n,t){i(t,e)})},emit:function(n){var t=arguments;(r[n]||[]).forEach(function(n){n.r.apply(n,a(t,1))})},destroy:function(){r={}}}),this.Components={},this.state=(e=1,{set:function(n){e=n},is:function(n){return Z(y(n),e)}}),this.splides=[],this.f={},this.a={},fn(n=z(n)?x(document,n):n,n+" is invalid."),this.root=n,f(bt,Et.defaults),f(f(this.f,bt),t||{})}return(n=Et.prototype).mount=function(n,t){var e=this,i=this.state,o=this.Components;return fn(i.is([1,5]),"Already mounted!"),i.set(1),this.s=o,this.l=t||this.l||(this.is(at)?wt:xt),this.a=n||this.a,s(on({},g,this.a,{Transition:this.l}),function(n,t){n=n(e,o,e.f),(o[t]=n).setup&&n.setup()}),s(o,function(n){n.mount&&n.mount()}),this.emit(W),k(this.root,"is-initialized"),i.set(3),this.emit("ready"),this},n.sync=function(n){return this.splides.push({splide:n}),n.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this.s.Sync.remount(),n.Components.Sync.remount()),this},n.go=function(n){return this.s.Controller.go(n),this},n.on=function(n,t){return this.event.on(n,t,null,20),this},n.off=function(n){return this.event.off(n),this},n.emit=function(n){var t;return(t=this.event).emit.apply(t,[n].concat(a(arguments,1))),this},n.add=function(n,t){return this.s.Slides.add(n,t),this},n.remove=function(n){return this.s.Slides.remove(n),this},n.is=function(n){return this.f.type===n},n.refresh=function(){return this.emit(B),this},n.destroy=function(t){void 0===t&&(t=!0);var n=this.event,e=this.state;return e.is(1)?n.on("ready",this.destroy.bind(this,t),this):(s(this.s,function(n){n.destroy&&n.destroy(t)},!0),n.emit(c),n.destroy(),t&&P(this.splides),e.set(5)),this},At((e=Et).prototype,n=[{key:"options",get:function(){return this.f},set:function(n){var t=this.f;f(t,n),this.state.is(1)||this.emit(X,t)}},{key:"length",get:function(){return this.s.Slides.getLength(!0)}},{key:"index",get:function(){return this.s.Controller.getIndex()}}]),Object.defineProperty(e,"prototype",{writable:!1}),(t=Et).defaults={},t.STATES={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,DESTROYED:5},t};"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n="undefined"!=typeof globalThis?globalThis:n||self).Splide=t();