/*! * Splide.js * Version : 4.1.3 * License : MIT * Copyright: 2022 Naotoshi Fujita */ var n,t;n=this,t=function(){"use strict";const v="(prefers-reduced-motion: reduce)";const j=4,F=5;var e={CREATED:1,MOUNTED:2,IDLE:3,MOVING:j,SCROLLING:F,DRAGGING:6,DESTROYED:7};function P(n){n.length=0}function M(n,...t){return n.bind(null,...t)}const m=setTimeout,un=()=>{};function h(n){return requestAnimationFrame(n)}function t(n,t){return typeof t===n}function cn(n){return!i(n)&&t("object",n)}const o=Array.isArray,y=M(t,"function"),N=M(t,"string"),sn=(M(t,"boolean"),M(t,"undefined"));function i(n){return null===n}function b(n){try{return n instanceof(n.ownerDocument.defaultView||window).HTMLElement}catch(n){return!1}}function w(n){return o(n)?n:[n]}function g(n,t){w(n).forEach(t)}function x(n,t){return n.includes(t)}function S(n,t){return n.push(...w(t)),n}const r=Array.prototype;function s(n,t,e){return r.slice.call(n,t,e)}function z(t,n,e){t&&g(N(n)?n.split(" "):n,n=>{n&&t.classList.toggle(n,e)})}function O(n,t){z(n,t,!0)}function $(n,t){g(t,n.appendChild.bind(n))}function A(n,e){g(n,n=>{const t=(e||n).parentNode;t&&t.insertBefore(n,e)})}function an(n,t){return b(n)&&n.matches(t)}function k(n,t){const e=n?s(n.children):[];return t?e.filter(n=>an(n,t)):e}function fn(n,t){return t?k(n,t)[0]:n.firstElementChild}const ln=Object.assign,E=Object.keys;function u(t,e,n){t&&(n?E(t).reverse():E(t)).forEach(n=>{"__proto__"!==n&&e(t[n],n)})}function p(e,...n){return n.forEach(n=>{u(n,(n,t)=>{o(n)?n=n.slice():cn(n)&&(n=p({},cn(e[t])?e[t]:{},n)),e[t]=n})}),e}function dn(t,n){g(n||E(t),n=>{delete t[n]})}function _(n,e){g(n,t=>{g(e,n=>{t&&t.removeAttribute(n)})})}function C(e,t,o){cn(t)?u(t,(n,t)=>{C(e,t,n)}):g(e,n=>{i(o)||""===o?_(n,t):n.setAttribute(t,String(o))})}function D(n,t,e){n=document.createElement(n);return t&&(N(t)?O:C)(n,t),e&&$(e,n),n}function I(n,t,e){if(sn(e))return getComputedStyle(n)[t];i(e)||(n.style[t]=""+e)}function hn(n,t){I(n,"display",t)}function pn(n){b(n)&&n.focus({preventScroll:!0})}function T(n,t){return n.getAttribute(t)}function vn(n,t){return!!n&&n.classList.contains(t)}function R(n){return n.getBoundingClientRect()}function G(n){g(n,n=>{n&&n.parentNode&&n.parentNode.removeChild(n)})}function gn(n){return fn((new DOMParser).parseFromString(n,"text/html").body)}function X(n,t){n.preventDefault(),t&&(n.stopPropagation(),n.stopImmediatePropagation())}function mn(n,t){return n&&n.querySelector(t)}function yn(n,t){return t&&n?s(n.querySelectorAll(t)):[]}function W(n,t){z(n,t,!1)}function bn(n){return n.timeStamp}function L(n){return N(n)?n:n?n+"px":""}const{min:B,max:wn,floor:xn,ceil:Sn,abs:Y,sign:kn}=Math;function En(n,t,e){return Y(n-t){t=t.replace("%s",""+n)}),t}function Ln(n,t=2){return(""+n).padStart(t,"0")}const zn={};function c(n,t){g(n,n=>{N(n)&&n.split(" ").forEach(t)})}function a(t,e){const o=[];for(let n=t.length-1;0<=n;n--)e(t[n])&&o.push(...t.splice(n,1));return o}function Pn(n){const i=n||[],r=n?{}:void 0;return{bind:function(t,n,e,o){c(n,n=>{t.addEventListener(n,e,o),i.push([t.removeEventListener.bind(t,n,e,o),r])})},create:M(Pn,i),destroy:function(){r?a(i,n=>n[1]===r).forEach(n=>{n[0]()}):(i.forEach(n=>{n[0]()}),P(i))}}}function f(n){const o=n||[],i=n?{}:void 0;return{on:function(n,t){c(n,n=>{o.push([n,t,i])})},off:function(n,e){c(n,t=>{a(o,n=>n[0]===t&&(!e||n[1]===e)&&n[2]===i)})},emit:function(t,...e){o.slice().forEach(n=>{n[0]===t&&n[1](...e)})},create:M(f,o),destroy:function(){i?a(o,n=>n[2]===i):P(o)}}}function On(t,n,e,o){const i=Date["now"];let r,u=0,c,s=!0,a=0;function f(){if(!s){if(u=t?B((i()-r)/t,1):1,e&&e(u),1<=u&&(n(),r=i(),o&&++a>=o))return l();c=h(f)}}function l(){s=!0}function d(){c&&cancelAnimationFrame(c),u=0,c=0,s=!0}return{start:function(n){n||d(),r=i()-(n?u*t:0),s=!1,c=h(f)},rewind:function(){r=i(),u=0,e&&e(u)},pause:l,cancel:d,set:function(n){t=n},isPaused:function(){return s}}}function l(n){let t=n;return{set:function(n){t=n},is:function(n){return x(w(n),t)}}}const H="mounted",J="move",_n="moved",Cn="click",Dn="active",In="inactive",Tn="visible",Mn="hidden",K="refresh",U="updated",Nn="resize",Rn="resized",jn="scroll",V="scrolled",Fn="overflow",Gn="navigation:mounted",Xn="autoplay:play",Wn="autoplay:pause",Bn="sk",Yn="sh",qn="!overflow";const Hn="ArrowLeft",Jn="ArrowRight";const Kn="ttb",d={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp",Jn],ArrowRight:["ArrowDown",Hn]};const Q="role",Z="tabindex";const Un="aria-controls",Vn="aria-current",Qn="aria-selected",nn="aria-label",Zn="aria-labelledby",nt="aria-hidden",tt="aria-orientation",et="aria-roledescription",ot="aria-live",it="aria-busy",rt="aria-atomic",ut=[Q,Z,"disabled",Un,Vn,nn,Zn,nt,tt,et],ct="splide",st="data-"+ct;var n=ct+"__";const at=ct,ft=n+"track",lt=n+"list",dt=n+"slide",ht=dt+"--clone",pt=dt+"__container",vt=n+"arrows",gt=n+"arrow",mt=gt+"--prev",yt=gt+"--next",bt=n+"pagination",wt=bt+"__page",xt=n+"progress"+"__bar",St=n+"toggle",kt=n+"sr",tn="is-active",Et="is-prev",$t="is-next",At="is-visible",Lt="is-loading",zt="is-focus-in",Pt="is-overflow",Ot=[tn,At,Et,$t,Lt,zt,Pt];n={slide:dt,clone:ht,arrows:vt,arrow:gt,prev:mt,next:yt,pagination:bt,page:wt,spinner:n+"spinner"};function _t(n,t){if(!n)throw new Error(`[${ct}] `+(t||""))}const Ct="touchstart mousedown",Dt="touchmove mousemove",It="touchend touchcancel mouseup click";const en="slide",on="loop",Tt="fade";function Mt(i,o,t,r){const n=i.event.create(),{on:e,emit:u,bind:c}=n,{Components:s,root:a,options:f}=i,{isNavigation:l,updateOnMove:d,i18n:h,pagination:p,slideFocus:v}=f,g=s["Elements"],m=s.Direction["resolve"],y=T(r,"style"),b=T(r,nn),w=-1{n=n.splide.Components.Slides.getAt(o);return n?n.slide.id:""}).join(" ");C(r,nn,An(h.slideX,(w?t:o)+1)),C(r,Un,n),C(r,Q,v?"button":""),v&&_(r,et)}function E(){S||$()}function $(){var n,t,e;S||(n=i["index"],(e=A())!==vn(r,tn)&&(z(r,tn,e),C(r,Vn,l&&e||""),u(e?Dn:In,L)),e=function(){if(i.is(Tt))return A();var n=R(g.track),t=R(r),e=m("left",!0),o=m("right",!0);return xn(n[e])<=Sn(t[e])&&xn(t[o])<=Sn(n[o])}(),t=!e&&(!A()||w),i.state.is([j,F])||C(r,nt,t||""),C(yn(r,f.focusableNodes||""),Z,t?-1:""),v&&C(r,Z,t?-1:0),e!==vn(r,At)&&(z(r,At,e),u(e?Tn:Mn,L)),e||document.activeElement!==r||(t=s.Slides.getAt(i.index))&&pn(t.slide),z(r,Et,o===n-1),z(r,$t,o===n+1))}function A(){var n=i["index"];return n===o||f.cloneStatus&&n===t}const L={index:o,slideIndex:t,slide:r,container:x,isClone:w,mount:function(){w||(r.id=a.id+"-slide"+Ln(o+1),C(r,Q,p?"tabpanel":"group"),C(r,et,h.slide),C(r,nn,b||An(h.slideLabel,[o+1,i.length]))),c(r,"click",M(u,Cn,L)),c(r,"keydown",M(u,Bn,L)),e([_n,Yn,V],$),e(Gn,k),d&&e(J,E)},destroy:function(){S=!0,n.destroy(),W(r,Ot),_(r,ut),C(r,"style",y),C(r,nn,b||"")},update:$,pos:function(){var n=s.Slides.get()[0],t=m("left");return n?Y(R(r)[t]-R(n.slide)[t]):0},size:function(){return R(r)[m("width")]},style:function(n,t,e){I(e&&x||r,n,t)},isWithin:function(n,t){let e=Y(n-o);return(e=w||!f.rewind&&!i.is(on)?e:B(e,i.length-e))<=t}};return L}const Nt=st+"-interval";const rn={passive:!1,capture:!0};const Rt=st+"-lazy",jt=Rt+"-srcset",Ft=`[${Rt}], [${jt}]`;const Gt=[" ","Enter"];const Xt={Breakpoints:function(o,n,i,t){const r=o["state"],u=i.breakpoints||{},c=i.reducedMotion||{},s=Pn(),a=[];function f(n){n&&s.destroy()}function l(n,t){const e=matchMedia(t);s.bind(e,"change",d),a.push([n,()=>e.matches])}function d(){var n=r.is(7),t=i.direction,e=a.reduce((n,t)=>p(n,t[1]()?t[0]:{}),{});dn(i),h(e),i.destroy?o.destroy("completely"===i.destroy):n?(f(!0),o.mount()):t!==i.direction&&o.refresh()}function h(n,t,e){p(i,n),t&&p(Object.getPrototypeOf(i),n),!e&&r.is(1)||o.emit(U,i)}return{setup:function(){const e="min"===i.mediaQuery;E(u).sort((n,t)=>e?+n-+t:+t-+n).forEach(n=>{n!==qn&&l(u[n],`(${e?"min":"max"}-width:${n}px)`)}),u[qn]&&(a.push([u[qn],()=>n.Layout&&!n.Layout.isOverflow()]),t.on(Fn,d)),l(c,v),d()},destroy:f,reduce:function(n){matchMedia(v).matches&&(n?p(i,c):dn(i,E(c)))},set:h}},Direction:function(n,t,i){return{resolve:function(n,t,e){const o="rtl"!==(e=e||i.direction)||t?e===Kn?0:-1:1;return d[n]&&d[n][o]||n.replace(/width|left|right/i,(n,t)=>{const e=d[n.toLowerCase()][o]||n;return 0{p="keydown"===n.type},{capture:!0}),r(u,"focusin",()=>{z(u,zt,!!p)})},destroy:g})},Slides:function(i,r,u,n){const{on:t,emit:c,bind:s}=n,{slides:a,list:f}=r.Elements,l=[];function e(){a.forEach((n,t)=>{d(n,t,-1)})}function o(){p(n=>{n.destroy()}),P(l)}function d(n,t,e){const o=Mt(i,t,e,n);o.mount(),l.push(o),l.sort((n,t)=>n.index-t.index)}function h(n){return n?v(n=>!n.isClone):l}function p(n,t){h(t).forEach(n)}function v(t){return l.filter(y(t)?t:n=>N(t)?an(n.slide,t):x(w(t),n.index))}return{mount:function(){e(),t(K,o),t(K,e)},destroy:o,update:function(){p(n=>{n.update()})},register:d,get:h,getIn:function(n){const t=r["Controller"],e=t.toIndex(n),o=t.hasFocus()?1:u.perPage;return v(n=>$n(n.index,e,e+o-1))},getAt:function(n){return v(n)[0]},add:function(n,t){g(n,n=>{if(b(n=N(n)?gn(n):n)){var e=a[t];e?A(n,e):$(f,n),O(n,u.classes.slide);{var e=n,o=M(c,Nn);const i=yn(e,"img");let t=i["length"];t?i.forEach(n=>{s(n,"load error",()=>{--t||o()})}):o()}}}),c(K)},remove:function(n){G(v(n).map(n=>n.slide)),c(K)},forEach:p,filter:v,style:function(t,e,o){p(n=>{n.style(t,e,o)})},getLength:function(n){return(n?a:l).length},isEnough:function(){return l.length>u.perPage}}},Layout:function(t,n,e,o){const{on:i,bind:r,emit:u}=o,c=(o=n.Slides,n.Direction["resolve"]),{root:s,track:a,list:f}=n.Elements,{getAt:l,style:d}=o;let h,p,v;function g(){h=e.direction===Kn,I(s,"maxWidth",L(e.width)),I(a,c("paddingLeft"),y(!1)),I(a,c("paddingRight"),y(!0)),m(!0)}function m(n){var t=R(s);!n&&p.width===t.width&&p.height===t.height||(I(a,"height",function(){let n="";h&&(_t(n=b(),"height or heightRatio is missing."),n=`calc(${n} - ${y(!1)} - ${y(!0)})`);return n}()),d(c("marginRight"),L(e.gap)),d("width",e.autoWidth?null:L(e.fixedWidth)||(h?"":w())),d("height",L(e.fixedHeight)||(h?e.autoHeight?null:w():b()),!0),p=t,u(Rn),v!==(v=A())&&(z(s,Pt,v),u(Fn,v)))}function y(n){var t=e["padding"],n=c(n?"right":"left");return t&&L(t[n]||(cn(t)?0:t))||"0px"}function b(){return L(e.height||R(f).width*e.heightRatio)}function w(){var n=L(e.gap);return`calc((100%${n&&" + "+n})/${e.perPage||1}${n&&" - "+n})`}function x(){return R(f)[c("width")]}function S(n=0,t){const e=l(n);return(e?e.size():0)+(t?0:$())}function k(n,t){const e=l(n);return e?e.pos()+e.size()+(t?0:$()):0}function E(n){return k(t.length-1)-k(0)+S(0,n)}function $(){const n=l(0),t=l(1);return n&&t?t.pos()-n.pos()-n.size():0}function A(){return t.is(Tt)||E(!0)>x()}return{mount:function(){g(),r(window,"resize load",function(n,t){const e=On(t||0,n,void 0,1);return()=>{e.isPaused()&&e.start()}}(M(u,Nn))),i([U,K],g),i(Nn,m)},resize:m,listSize:x,slideSize:S,sliderSize:E,totalSize:k,getPadding:function(n){return parseFloat(I(a,c("padding"+(n?"Right":"Left"))))||0},isOverflow:A}},Clones:function(c,e,s,t){const n=t["on"],{Elements:a,Slides:f,Layout:{resize:o}}=e,i=e.Direction["resolve"],l=[];let d;function r(){if(n(K,h),n([U,Nn],p),d=v()){{var i=d;const r=f.get().slice(),u=r["length"];if(u){for(;r.length{var e=ti.Controller.getEnd(),(t<0||e)&&(n=x(n,e)))}return n}(n),I(g,"transform",`translate${p("X")}(${t}px)`),n!==t&&c(Yn))}function x(n,t){var e=n-A(t),o=d();return n-=v(o*(Sn(Y(e)/o)||1))*(t?1:-1)}function S(){w($(),!0),y.cancel()}function k(t){var e=a.get();let o=0,i=1/0;for(let n=0;n{s(3),c(_n,t,e,n),o&&o()})},jump:b,translate:w,shift:x,cancel:S,toIndex:k,toPosition:E,getPosition:$,getLimit:A,exceededLimit:function(n,t=$()){var e=!0!==n&&v(t)v(A(!0));return e||n},reposition:e}},Controller:function(i,r,u,n){const{on:t,emit:e}=n,c=r["Move"],{getPosition:s,getLimit:o,toPosition:a}=c,{isEnough:f,getLength:l}=r.Slides,d=u["omitEnd"],h=i.is(on),p=i.is(en),v=M(L,!1),g=M(L,!0);let m=u.start||0,y,b=m,w,x,S;function k(){w=l(!0),x=u.perMove,S=u.perPage,y=O();var n=d?y:w-1,n=q(m,0,n);(b=n)!==m&&(m=n,c.reposition())}function E(){y!==O()&&e("ei")}function $(n,t,e,o){r.Scroll.scroll(n,t,e,()=>{var n=P(c.toIndex(s()));D(d?B(n,y):n),o&&o()})}function A(n){let t=m;var e,o;return N(n)?([,e,o]=n.match(/([+\-<>])(\d+)?/)||[],"+"===e||"-"===e?t=z(m+ +(""+e+(+o||1)),m):">"===e?t=o?_(+o):v(!0):"<"===e&&(t=g(!0))):t=h?n:q(n,0,y),t}function L(n,t){var e=x||(I()?1:S),e=z(m+e*(n?-1:1),m,!(x||I()));return-1===e&&p&&!En(s(),o(!n),1)?n?0:y:t?e:P(e)}function z(n,t,e){var o;return f()||I()?((o=function(n){if(p&&"move"===u.trimSpace&&n!==m)for(var t=s();t===a(n,!0)&&$n(n,0,i.length-1,!u.rewind);)ny?n=x||!$n(0,n,t,!0)&&!$n(y,t,n,!0)?h?e?n<0?-(w%S||S):w:n:u.rewind?n<0?y:0:-1:_(C(n)):e&&n!==t&&(n=_(C(t)+(n=y?w-1:n)/S)}function D(n){n!==m&&(b=m,m=n)}function I(){return!sn(u.focus)||u.isNavigation}function T(){return i.state.is([j,F])&&!!u.waitForTransition}return{mount:function(){k(),t([U,K,"ei"],k),t(Rn,E)},go:function(n,t,e){var o;T()||-1<(o=P(n=A(n)))&&(t||o!==m)&&(D(o),c.move(n,o,b,e))},jump:function(n){c.cancel(),$(a(P(A(n))),0)},scroll:$,getNext:v,getPrev:g,getAdjacent:L,getEnd:O,setIndex:D,getIndex:function(n){return n?b:m},toIndex:_,toPage:C,toDest:function(n){return n=c.toIndex(n),p?q(n,0,y):n},hasFocus:I,isBusy:T}},Arrows:function(i,n,t,e){const{on:o,bind:r,emit:u}=e,{classes:c,i18n:s}=t,{Elements:a,Controller:f}=n,{arrows:l,track:d}=a;let h=l,p=a.prev,v=a.next,g,m;const y={};function b(){var n=t.arrows;!n||p&&v||(h=l||D("div",c.arrows),p=k(!0),v=k(!1),g=!0,$(h,[p,v]),l||A(h,d)),p&&v&&(ln(y,{prev:p,next:v}),hn(h,n?"":"none"),O(h,m=vt+"--"+t.direction),n&&(o([H,_n,K,V,"ei"],E),r(v,"click",M(S,">")),r(p,"click",M(S,"<")),E(),C([p,v],Un,d.id),u("arrows:mounted",p,v))),o(U,w)}function w(){x(),b()}function x(){e.destroy(),W(h,m),g?(G(l?[p,v]:h),p=v=null):_([p,v],ut)}function S(n){f.go(n,!0)}function k(n){return gn(`