/*! * 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 R=4,rn=5;var t={CREATED:1,MOUNTED:2,IDLE:3,MOVING:R,SCROLLING:rn,DRAGGING:6,DESTROYED:7};function _(n){n.length=0}function i(n,t,e){return Array.prototype.slice.call(n,t,e)}function D(n){return n.bind(null,...i(arguments,1))}const h=setTimeout,un=()=>{};function p(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 m(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 m(n)&&(n.msMatchesSelector||n.matches).call(n,t)}function E(n,t){const e=n?i(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(o){return i(arguments,1).forEach(e=>{b(e,(n,t)=>{o[t]=e[t]})}),o}function d(e){return i(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 z(n,e){g(n,t=>{g(e,n=>{t&&t.removeAttribute(n)})})}function O(e,t,o){cn(t)?b(t,(n,t)=>{O(e,t,n)}):g(e,n=>{u(o)||""===o?z(n,t):n.setAttribute(t,String(o))})}function I(n,t,e){n=document.createElement(n);return t&&(M(t)?C:O)(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 vn(n,t){P(n,"display",t)}function hn(n){n.setActive&&n.setActive()||n.focus({preventScroll:!0})}function T(n,t){return n.getAttribute(t)}function gn(n,t){return n&&n.classList.contains(t)}function N(n){return n.getBoundingClientRect()}function F(n){g(n,n=>{n&&n.parentNode&&n.parentNode.removeChild(n)})}function pn(n){return fn((new DOMParser).parseFromString(n,"text/html").body)}function G(n,t){n.preventDefault(),t&&(n.stopPropagation(),n.stopImmediatePropagation())}function mn(n,t){return n&&n.querySelector(t)}function yn(n,t){return t?i(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",o="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 _n(n){return n<10?"0"+n:""+n}const Cn={};function zn(){let c=[];function e(n,e,o){g(n,t=>{t&&g(e,n=>{n.split(" ").forEach(n=>{n=n.split(".");o(t,n[0],n[1])})})})}return{bind:function(n,t,r,u){e(n,t,(n,t,e)=>{var o="addEventListener"in n,i=o?n.removeEventListener.bind(n,t,r,u):n.removeListener.bind(n,r);o?n.addEventListener(t,r,u):n.addListener(r),c.push([n,t,e,r,i])})},unbind:function(n,t,i){e(n,t,(t,e,o)=>{c=c.filter(n=>!!(n[0]!==t||n[1]!==e||n[2]!==o||i&&n[3]!==i)||(n[4](),!1))})},dispatch:function(n,t,e){let o;return"function"==typeof CustomEvent?o=new CustomEvent(t,{bubbles:!0,detail:e}):(o=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!1,e),n.dispatchEvent(o),o},destroy:function(){c.forEach(n=>{n[4]()}),_(c)}}}const q="mounted",B="move",On="moved",Dn="click",Mn="active",In="inactive",Tn="visible",Nn="hidden",H="refresh",J="updated",Rn="resize",Fn="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(),o=zn();return n&&n.event.on(c,o.destroy),ln(o,{bus:e,on:function(n,t){o.bind(e,y(n).join(" "),n=>{t.apply(t,r(n.detail)?n.detail:[])})},off:D(o.unbind,e),emit:function(n){o.dispatch(e,n,i(arguments,1))}})}function Bn(t,n,e,o){const i=Date["now"];let r,u=0,c,s=!0,a=0;function f(){if(!s){if(u=t?W((i()-r)/t,1):1,e&&e(u),1<=u&&(n(),r=i(),o&&++a>=o))return l();c=p(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=p(f)},rewind:function(){r=i(),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",ot="aria-roledescription",it="aria-live",rt="aria-busy",ut="aria-atomic",ct=[Q,Z,"disabled",Vn,Qn,nn,nt,tt,et,ot];var n=wn+"__";const st=wn,at=n+"track",ft=n+"list",lt=n+"slide",dt=lt+"--clone",vt=lt+"__container",ht=n+"arrows",gt=n+"arrow",pt=gt+"--prev",mt=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",_t=[tn,$t,Et,kt,Lt,At,Pt];n={slide:lt,clone:dt,arrows:ht,arrow:gt,prev:pt,next:mt,pagination:yt,page:bt,spinner:n+"spinner"};const Ct="touchstart mousedown",zt="touchmove mousemove",Ot="touchend touchcancel mouseup click";const en="slide",on="loop",Dt="fade";function Mt(i,o,t,r){const n=V(i),{on:e,emit:u,bind:c}=n,{Components:s,root:a,options:f}=i,{isNavigation:l,updateOnMove:d,i18n:v,pagination:h,slideFocus:g}=f,p=s.Direction["resolve"],m=T(r,"style"),y=T(r,nn),b=-1{n=n.splide.Components.Slides.getAt(o);return n?n.slide.id:""}).join(" ");O(r,nn,Pn(v.slideX,(b?t:o)+1)),O(r,Vn,n),O(r,Q,g?"button":""),g&&z(r,ot)}function E(){x||k()}function k(){var n,t,e;x||(n=i["index"],(e=$())!==gn(r,tn)&&(A(r,tn,e),O(r,Qn,l&&e||""),u(e?Mn:In,L)),e=function(){if(i.is(Dt))return $();var n=N(s.Elements.track),t=N(r),e=p("left",!0),o=p("right",!0);return En(n[e])<=kn(t[e])&&En(t[o])<=kn(n[o])}(),t=!e&&(!$()||b),i.state.is([R,rn])||O(r,tt,t||""),O(yn(r,f.focusableNodes||""),Z,t?-1:""),g&&O(r,Z,t?-1:0),e!==gn(r,$t)&&(A(r,$t,e),u(e?Tn:Nn,L)),e||document.activeElement!==r||(t=s.Slides.getAt(i.index))&&hn(t.slide),A(r,Et,o===n-1),A(r,kt,o===n+1))}function $(){var n=i["index"];return n===o||f.cloneStatus&&n===t}const L={index:o,slideIndex:t,slide:r,container:w,isClone:b,mount:function(){b||(r.id=a.id+"-slide"+_n(o+1),O(r,Q,h?"tabpanel":"group"),O(r,ot,v.slide),O(r,nn,y||Pn(v.slideLabel,[o+1,i.length]))),c(r,"click",D(u,Dn,L)),c(r,"keydown",D(u,Un,L)),e([On,qn,K],k),e(jn,S),d&&e(B,E)},destroy:function(){x=!0,n.destroy(),j(r,_t),z(r,ct),O(r,"style",m),O(r,nn,y||"")},update:k,style:function(n,t,e){P(e&&w||r,n,t)},isWithin:function(n,t){let e=Y(n-o);return(e=b||!f.rewind&&!i.is(on)?e:W(e,i.length-e))<=t}};return L}const It=o+"-interval";const Tt={passive:!1,capture:!0};const Nt={Spacebar:" ",Right:Jn,Left:Hn,Up:a,Down:f};function Rt(n){return n=M(n)?n:n.key,Nt[n]||n}const Ft="keydown";const Gt=o+"-lazy",jt=Gt+"-srcset",Xt=`[${Gt}], [${jt}]`;const Wt=[" ","Enter"];var Yt=Object.freeze({__proto__:null,Media:function(o,n,i){const r=o["state"],t=i.breakpoints||{},u=i.reducedMotion||{},e=zn(),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=i.direction,e=c.reduce((n,t)=>d(n,t[1].matches?t[0]:{}),{});dn(i),l(e),i.destroy?o.destroy("completely"===i.destroy):n?(s(!0),o.mount()):t!==i.direction&&o.refresh()}function l(n,t,e){d(i,n),t&&d(Object.getPrototypeOf(i),n),!e&&r.is(1)||o.emit(J,i)}return{setup:function(){const e="min"===i.mediaQuery;k(t).sort((n,t)=>e?+n-+t:+t-+n).forEach(n=>{a(t[n],`(${e?"min":"max"}-width:${n}px)`)}),a(u,v),f()},destroy:s,reduce:function(n){matchMedia(v).matches&&(n?d(i,u):dn(i,k(u)))},set:l}},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 l[n]&&l[n][o]||n.replace(/width|left|right/i,(n,t)=>{const e=l[n.toLowerCase()][o]||n;return 0{c[t]=m("."+n)}),ln(c,{root:r,track:l,list:d,slides:s});var n=r.id||function(n){return""+n+_n(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",!T(r,Q)&&"SECTION"!==r.tagName&&t&&O(r,Q,t),O(r,ot,u.carousel),O(d,Q,"presentation"),p()}function g(n){var t=ct.concat("style");_(s),j(r,a),j(l,f),z([l,d],t),z(r,n?t:["style",ot])}function p(){j(r,a),j(l,f),a=y(st),f=y(at),C(r,a),C(l,f),O(r,nn,e.label),O(r,nt,e.labelledby)}function m(n){n=mn(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:h,mount:function(){o(H,g),o(H,h),o(J,p),i(document,Ct+" keydown",n=>{v="keydown"===n.type},{capture:!0}),i(r,"focusin",()=>{A(r,At,!!v)})},destroy:g})},Slides:function(i,r,u){const{on:n,emit:c,bind:s}=V(i),{slides:a,list:f}=r.Elements,l=[];function t(){a.forEach((n,t)=>{o(n,t,-1)})}function e(){v(n=>{n.destroy()}),_(l)}function o(n,t,e){const o=Mt(i,t,e,n);o.mount(),l.push(o),l.sort((n,t)=>n.index-t.index)}function d(n){return n?h(n=>!n.isClone):l}function v(n,t){d(t).forEach(n)}function h(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(){v(n=>{n.update()})},register:o,get:d,getIn:function(n){const t=r["Controller"],e=t.toIndex(n),o=t.hasFocus()?1:u.perPage;return h(n=>Ln(n.index,e,e+o-1))},getAt:function(n){return h(n)[0]},add:function(n,t){g(n,n=>{if(m(n=M(n)?pn(n):n)){var e=a[t];e?L(n,e):$(f,n),C(n,u.classes.slide);{var e=n,o=D(c,Rn);const i=yn(e,"img");let t=i["length"];t?i.forEach(n=>{s(n,"load error",()=>{--t||o()})}):o()}}}),c(H)},remove:function(n){F(h(n).map(n=>n.slide)),c(H)},forEach:v,filter:h,style:function(t,e,o){v(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){const{on:o,bind:i,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 v,h,g;function p(){v=e.direction===Kn,P(s,"maxWidth",X(e.width)),P(a,c("paddingLeft"),y(!1)),P(a,c("paddingRight"),y(!0)),m(!0)}function m(n){var t=N(s);!n&&h.width===t.width&&h.height===t.height||(P(a,"height",function(){let n="";v&&(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)||(v?"":w())),d("height",X(e.fixedHeight)||(v?e.autoHeight?null:w():b()),!0),h=t,r(Fn),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||N(f).width*e.heightRatio)}function w(){var n=X(e.gap);return`calc((100%${n&&" + "+n})/${e.perPage||1}${n&&" - "+n})`}function x(){return N(f)[c("width")]}function S(n,t){n=l(n||0);return n?N(n.slide)[c("width")]+(t?0:$()):0}function E(n,t){var e,n=l(n);return n?(n=N(n.slide)[c("right")],e=N(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(){p(),i(window,"resize load",function(n,t){const e=Bn(t||0,n,null,1);return()=>{e.isPaused()&&e.start()}}(D(r,Rn))),o([J,H],p),o(Rn,m)},resize:m,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,o=e.Direction["resolve"],l=[];let d;function i(){if(n(H,v),n([J,Rn],h),d=g()){{var i=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(h,"transform",`translate${d("X")}(${t}px)`),n!==t&&u(qn))}function b(n,t){var e=n-k(t),o=l();return n-=v(o*(kn(Y(e)/o)||1))*(t?1:-1)}function w(){y(E(),!0),p.cancel()}function x(t){var e=c.Slides.get();let o=0,i=1/0;for(let n=0;n{s(3),u(On,t,e,n),o&&o()})},jump:m,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&&v(t)v(k(!0));return e||n},reposition:e}},Controller:function(i,r,u){const{on:n,emit:t}=V(i),c=r["Move"],{getPosition:s,getLimit:o,toPosition:a}=c,{isEnough:f,getLength:e}=r.Slides,l=u["omitEnd"],d=i.is(on),v=i.is(en),h=D(k,!1),g=D(k,!0);let p=u.start||0,m,y=p,b,w,x;function S(){b=e(!0),w=u.perMove,x=u.perPage,m=A();var n=U(p,0,l?m:b-1);n!==p&&(p=n,c.reposition())}function E(){m!==A()&&t("ei")}function k(n,t){var e=w||(z()?1:x),e=$(p+e*(n?-1:1),p,!(w||z()));return-1===e&&v&&!$n(s(),o(!n),1)?n?0:m:t?e:L(e)}function $(n,t,e){var o;return f()||z()?((o=function(n){if(v&&"move"===u.trimSpace&&n!==p)for(var t=s();t===a(n,!0)&&Ln(n,0,i.length-1,!u.rewind);)nm?n=w||!Ln(0,n,t,!0)&&!Ln(m,t,n,!0)?d?e?n<0?-(b%x||x):b:n:u.rewind?n<0?m:0:-1:P(_(n)):e&&n!==t&&(n=P(_(t)+(n=m?b-1:n)/x)}function C(n){n!==p&&(y=p,p=n)}function z(){return!sn(u.focus)||u.isNavigation}function O(){return i.state.is([R,rn])&&!!u.waitForTransition}return{mount:function(){S(),n([J,H,"ei"],S),n(Fn,E)},go:function(n,t,e){var o;O()||-1<(o=L(n=function(n){let t=p;{var e,o;M(n)?([,e,o]=n.match(/([+\-<>])(\d+)?/)||[],"+"===e||"-"===e?t=$(p+ +(""+e+(+o||1)),p):">"===e?t=o?P(+o):h(!0):"<"===e&&(t=g(!0))):t=d?n:U(n,0,m)}return t}(n)))&&(t||o!==p)&&(C(o),c.move(n,o,y,e))},scroll:function(n,t,e,o){r.Scroll.scroll(n,t,e,()=>{var n=L(c.toIndex(s()));C(l?W(n,m):n),o&&o()})},getNext:h,getPrev:g,getAdjacent:k,getEnd:A,setIndex:C,getIndex:function(n){return n?y:p},toIndex:P,toPage:_,toDest:function(n){return n=c.toIndex(n),v?U(n,0,m):n},hasFocus:z,isBusy:O}},Arrows:function(i,n,t){const e=V(i),{on:o,bind:r,emit:u}=e,{classes:c,i18n:s}=t,{Elements:a,Controller:f}=n,{arrows:l,track:d}=a;let v=l,h=a.prev,g=a.next,p,m;const y={};function b(){var n=t.arrows;!n||h&&g||(v=l||I("div",c.arrows),h=E(!0),g=E(!1),p=!0,$(v,[h,g]),l||L(v,d)),h&&g&&(ln(y,{prev:h,next:g}),vn(v,n?"":"none"),C(v,m=ht+"--"+t.direction),n&&(o([q,On,H,K,"ei"],k),r(g,"click",D(S,">")),r(h,"click",D(S,"<")),k(),O([h,g],Vn,d.id),u("arrows:mounted",h,g))),o(J,w)}function w(){x(),b()}function x(){e.destroy(),j(v,m),p?(F(l?[h,g]:v),h=g=null):z([h,g],ct)}function S(n){f.go(n,!0)}function E(n){return pn(`