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