/*! * Splide.js * Version : 4.1.3 * License : MIT * Copyright: 2022 Naotoshi Fujita */ var n,t;n=this,t=function(){"use strict";const p="(prefers-reduced-motion: reduce)";const R=4,F=5;var e={CREATED:1,MOUNTED:2,IDLE:3,MOVING:R,SCROLLING:F,DRAGGING:6,DESTROYED:7};function P(n){n.length=0}function T(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=T(t,"function"),M=T(t,"string"),sn=(T(t,"boolean"),T(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.push(...w(t)),n}const r=Array.prototype;function s(n,t,e){return r.slice.call(n,t,e)}function S(n,t){return r.includes.call(n,t)}function L(t,n,e){t&&g(M(n)?n.split(" "):n,n=>{n&&t.classList.toggle(n,e)})}function _(n,t){L(n,t,!0)}function A(n,t){g(t,n.appendChild.bind(n))}function $(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 v(e,...n){return n.forEach(n=>{u(n,(n,t)=>{o(n)?n=n.slice():cn(n)&&(n=v({},cn(e[t])?e[t]:{},n)),e[t]=n})}),e}function dn(t,n){g(n||E(t),n=>{delete t[n]})}function O(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?O(n,t):n.setAttribute(t,String(o))})}function D(n,t,e){n=document.createElement(n);return t&&(M(t)?_:C)(n,t),e&&A(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 vn(n){b(n)&&n.focus({preventScroll:!0})}function N(n,t){return n.getAttribute(t)}function pn(n,t){return!!n&&n.classList.contains(t)}function j(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){L(n,t,!1)}function bn(n){return n.timeStamp}function z(n){return M(n)?n:n?n+"px":""}const{min:Y,max:wn,floor:xn,ceil:Sn,abs:B,sign:kn}=Math;function En(n,t,e){return B(n-t){t=t.replace("%s",""+n)}),t}function zn(n,t=2){return(""+n).padStart(t,"0")}const Ln={};function c(n,t){g(n,n=>{M(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:T(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:T(f,o),destroy:function(){i?a(o,n=>n[2]===i):P(o)}}}function _n(t,n,e,o){const i=Date["now"];let r,u=0,c,s=!0,a=0;function f(){if(!s){if(u=t?Y((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 S(w(n),t)}}}const H="mounted",J="move",On="moved",Cn="click",Dn="active",In="inactive",Tn="visible",Mn="hidden",K="refresh",U="updated",Nn="resize",jn="resized",Rn="scroll",V="scrolled",Fn="overflow",Gn="navigation:mounted",Xn="autoplay:play",Wn="autoplay:pause",Yn="_sk",Bn="_sh",qn="_ei",Hn="!overflow";const Jn="ArrowLeft",Kn="ArrowRight";const Un="ttb",d={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp",Kn],ArrowRight:["ArrowDown",Jn]};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],st="splide",at="data-"+st;var n=st+"__";const ft=st,lt=n+"track",dt=n+"list",ht=n+"slide",vt=ht+"--clone",pt=ht+"__container",gt=n+"arrows",mt=n+"arrow",yt=mt+"--prev",bt=mt+"--next",wt=n+"pagination",xt=wt+"__page",St=n+"progress"+"__bar",kt=n+"toggle",Et=n+"sr",tn="is-active",At="is-prev",$t="is-next",zt="is-visible",Lt="is-loading",Pt="is-focus-in",_t="is-overflow",Ot=[tn,zt,At,$t,Lt,Pt,_t];n={slide:ht,clone:vt,arrows:gt,arrow:mt,prev:yt,next:bt,pagination:wt,page:xt,spinner:n+"spinner"};function Ct(n,t){if(!n)throw new Error(`[${st}] `+(t||""))}const Dt="touchstart mousedown",It="touchmove mousemove",Tt="touchend touchcancel mouseup click";const en="slide",on="loop",Mt="fade",Nt=(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:v,slideFocus:p}=f,g=s["Elements"],m=s.Direction["resolve"],y=N(r,"style"),b=N(r,nn),w=-1{n=n.splide.Components.Slides.getAt(o);return n?n.slide.id:""}).join(" ");C(r,nn,$n(h.slideX,(w?t:o)+1)),C(r,Vn,n),C(r,Q,p?"button":""),p&&O(r,ot)}function E(){S||A()}function A(){var n,t,e;S||(n=i["index"],(e=$())!==pn(r,tn)&&(L(r,tn,e),C(r,Qn,l&&e||""),u(e?Dn:In,z)),e=function(){if(i.is(Mt))return $();var n=j(g.track),t=j(r),e=m("left",!0),o=m("right",!0);return xn(n[e])<=Sn(t[e])&&xn(t[o])<=Sn(n[o])}(),t=!e&&(!$()||w),i.state.is([R,F])||C(r,tt,t||""),C(yn(r,f.focusableNodes||""),Z,t?-1:""),p&&C(r,Z,t?-1:0),e!==pn(r,zt)&&(L(r,zt,e),u(e?Tn:Mn,z)),e||document.activeElement!==r||(t=s.Slides.getAt(i.index))&&vn(t.slide),L(r,At,o===n-1),L(r,$t,o===n+1))}function $(){var n=i["index"];return n===o||f.cloneStatus&&n===t}const z={index:o,slideIndex:t,slide:r,container:x,isClone:w,mount:function(){w||(r.id=a.id+"-slide"+zn(o+1),C(r,Q,v?"tabpanel":"group"),C(r,ot,h.slide),C(r,nn,b||$n(h.slideLabel,[o+1,i.length]))),c(r,"click",T(u,Cn,z)),c(r,"keydown",T(u,Yn,z)),e([On,Bn,V],A),e(Gn,k),d&&e(J,E)},destroy:function(){S=!0,n.destroy(),W(r,Ot),O(r,ct),C(r,"style",y),C(r,nn,b||"")},update:A,pos:function(){var n=s.Slides.get()[0],t=m("left");return n?B(j(r)[t]-j(n.slide)[t]):0},size:function(){return j(r)[m("width")]},style:function(n,t,e){I(e&&x||r,n,t)},isWithin:function(n,t){let e=B(n-o);return(e=w||!f.rewind&&!i.is(on)?e:Y(e,i.length-e))<=t}};return z};const jt=at+"-interval";const rn={passive:!1,capture:!0};const Rt=at+"-lazy",Ft=Rt+"-srcset",Gt=`[${Rt}], [${Ft}]`;const Xt=[" ","Enter"];const Wt={Breakpoints:(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)=>v(n,t[1]()?t[0]:{}),{});dn(i),h(e,!1,!r.is(1)),i.destroy?o.destroy("completely"===i.destroy):n?(f(!0),o.mount()):t!==i.direction&&o.refresh()}function h(n,t,e){v(i,n),t&&v(Object.getPrototypeOf(i),n),e&&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!==Hn&&l(u[n],`(${e?"min":"max"}-width:${n}px)`)}),u[Hn]&&(a.push([u[Hn],()=>n.Layout&&!n.Layout.isOverflow()]),t.on(Fn,d)),l(c,p),d()},destroy:f,reduce:function(n){matchMedia(p).matches&&(n?v(i,c):dn(i,E(c)))},set:h}},Direction:(n,t,i)=>{return{resolve:function(n,t,e){const o="rtl"!==(e=e||i.direction)||t?e===Un?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{const{on:i,bind:r}=o,u=n["root"],c=e["i18n"],s={},a=[];let f=[],l=[],d,h,v;function p(){d=y(lt),h=fn(d,"."+dt),Ct(d&&h,"A track/list element is missing."),x(a,k(h,`.${ht}:not(.${vt})`)),ln(s,{root:u,track:d,list:h,slides:a,arrows:y(gt),pagination:y(wt),prev:y(yt),next:y(bt),bar:y(St),toggle:y(kt)});var n=u.id||function(n){return""+n+zn(Ln[n]=(Ln[n]||0)+1)}(st),t=e.role;u.id=n,d.id=d.id||n+"-track",h.id=h.id||n+"-list",!N(u,Q)&&"SECTION"!==u.tagName&&t&&C(u,Q,t),C(u,ot,c.carousel),C(h,Q,"presentation"),m()}function g(n){var t=ct.concat("style");P(a),W(u,f),W(d,l),O([d,h],t),O(u,n?t:["style",ot])}function m(){W(u,f),W(d,l),f=b(ft),l=b(lt),_(u,f),_(d,l),C(u,nn,e.label),C(u,nt,e.labelledby)}function y(n){var t,e,n=mn(u,"."+n);return n&&(t=n,e="."+ft,t.closest(e)===u)?n:void 0}function b(n){return[n+"--"+e.type,n+"--"+e.direction,e.drag&&n+"--draggable",e.isNavigation&&n+"--nav",n===ft&&tn]}return ln(s,{setup:p,mount:function(){i(K,g),i(K,p),i(U,m),r(document,Dt+" keydown",n=>{v="keydown"===n.type},{capture:!0}),r(u,"focusin",()=>{L(u,Pt,!!v)})},destroy:g})},Slides:(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(){v(n=>{n.destroy()}),P(l)}function d(n,t,e){const o=Nt(i,t,e,n);o.mount(),l.push(o),l.sort((n,t)=>n.index-t.index)}function h(n){return n?p(n=>!n.isClone):l}function v(n,t){h(t).forEach(n)}function p(t){return l.filter(y(t)?t:n=>M(t)?an(n.slide,t):S(w(t),n.index))}return{mount:function(){e(),t(K,o),t(K,e)},destroy:o,update:function(){v(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 p(n=>An(n.index,e,e+o-1))},getAt:function(n){return p(n)[0]},add:function(n,t){g(n,n=>{if(b(n=M(n)?gn(n):n)){var e=a[t];e?$(n,e):A(f,n),_(n,u.classes.slide);{var e=n,o=T(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(p(n).map(n=>n.slide)),c(K)},forEach:v,filter:p,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:(t,n,e,o)=>{const{on:i,bind:r,emit:u}=o;o=n.Slides;const c=n.Direction["resolve"],{root:s,track:a,list:f}=n.Elements,{getAt:l,style:d}=o;let h,v,p;function g(){h=e.direction===Un,I(s,"maxWidth",z(e.width)),I(a,c("paddingLeft"),y(!1)),I(a,c("paddingRight"),y(!0)),m(!0)}function m(n){var t=j(s);!n&&v.width===t.width&&v.height===t.height||(I(a,"height",function(){let n="";h&&(Ct(n=b(),"height or heightRatio is missing."),n=`calc(${n} - ${y(!1)} - ${y(!0)})`);return n}()),d(c("marginRight"),z(e.gap)),d("width",e.autoWidth?null:z(e.fixedWidth)||(h?"":w())),d("height",z(e.fixedHeight)||(h?e.autoHeight?null:w():b()),!0),v=t,u(jn),p!==(p=$())&&(L(s,_t,p),u(Fn,p)))}function y(n){var t=e["padding"],n=c(n?"right":"left");return t&&z(t[n]||(cn(t)?0:t))||"0px"}function b(){return z(e.height||j(f).width*e.heightRatio)}function w(){var n=z(e.gap);return`calc((100%${n&&" + "+n})/${e.perPage||1}${n&&" - "+n})`}function x(){return j(f)[c("width")]}function S(n=0,t){const e=l(n);return(e?e.size():0)+(t?0:A())}function k(n,t){const e=l(n);return e?e.pos()+e.size()+(t?0:A()):0}function E(n){return k(t.length-1)-k(0)+S(0,n)}function A(){const n=l(0),t=l(1);return n&&t?t.pos()-n.pos()-n.size():0}function $(){return t.is(Mt)||E(!0)>x()}return{mount:function(){g(),r(window,"resize load",function(n,t){const e=_n(t||0,n,void 0,1);return()=>{e.isPaused()&&e.start()}}(T(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:$}},Clones:(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],v),d=p()){{var i=d;const r=f.get().slice(),u=r["length"];if(u){for(;r.length{var e=t{const{on:e,emit:r}=n,u=o.state["set"],c=t["Slides"],{slideSize:s,getPadding:a,listSize:f,sliderSize:l,totalSize:d}=t.Layout,{resolve:h,orient:v}=t.Direction,{list:p,track:g}=t.Elements;let m;function y(){t.Controller.isBusy()||(t.Scroll.cancel(),b(o.index),t.Slides.update())}function b(n){w(k(n,!0))}function w(n,t){o.is(Mt)||(t=t?n:function(n){{var t;o.is(on)&&(t=z(!0,n),(z(!1,n)||t)&&(n=x(n,t)))}return n}(n),I(p,"transform",`translate${h("X")}(${t}px)`),n!==t&&r(Bn))}function x(n,t){var e=n-A(t),o=l();return n-=v(o*(Sn(B(e)/o)||1))*(t?1:-1)}function S(){w(E(),!0),m.cancel()}function k(n,t){var e=v(d(n-1)-(n=n,"center"===(e=i.focus)?(f()-s(n,!0))/2:+e*s(n)||0));return t?(n=e,n=i.trimSpace&&o.is(en)?q(n,0,v(l(!0)-f())):n):e}function E(){var n=h("left");return j(p)[n]-j(g)[n]+v(a(!1))}function A(n){return k(n?t.Controller.getEnd():0,!!i.trimSpace)}function $(n){var t=a(!1),e=v(x(E(),n));return n?t<=e:e<=p[h("scrollWidth")]-j(g)[h("width")]+t}function z(n,t=E()){var e=!0!==n&&v(t)v(A(!0));return e||n}return{mount:function(){m=t.Transition,e([H,jn,U,K],y)},move:function(n,t,e,o){n!==t&&$(e{u(3),r(On,t,e,n),o&&o()})},jump:b,translate:w,shift:x,cancel:S,toIndex:function(t){var e=c.get();let o=0,i=1/0;for(let n=0;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),v=i.is(en),p=T($,!1),g=T($,!0);let m=u.start||0,y,b=m,w,x,S;function k(){w=l(!0),x=u.perMove,S=u.perPage,y=P();var n=d?y:w-1,n=q(m,0,n);(b=n)!==m&&(m=n,c.reposition())}function E(){y!==P()&&e(qn)}function A(n,t,e){var o,i;I()||(t=-1<(o=L(n=function(n){let t=m;{var e,o;M(n)?([,e,o]=n.match(/([+\-<>])(\d+)?/)||[],"+"===e||"-"===e?t=z(m+ +(""+e+(+o||1)),m):">"===e?t=o?_(+o):p(!0):"<"===e&&(t=g(!0))):t=h?n:q(n,0,y)}return t}(n)))&&(t||o!==m),i=n===o||c.canShift(n>b),t&&i&&(C(o),c.move(n,o,b,e)))}function $(n,t){var e=x||(D()?1:S),e=z(m+e*(n?-1:1),m,!(x||D()));return-1===e&&v&&!En(s(),o(!n),1)?n?0:y:t?e:L(e)}function z(n,t,e){var o;return f()||D()?((o=function(n){if(v&&"move"===u.trimSpace&&n!==m)for(var t=s();t===a(n,!0)&&An(n,0,i.length-1,!u.rewind);)ny?n=x||!An(0,n,t,!0)&&!An(y,t,n,!0)?h?e?n<0?-(w%S||S):w:n:u.rewind?n<0?y:0:-1:_(O(n)):e&&n!==t&&(n=_(O(t)+(n=y?w-1:n)/S)}function C(n){n!==m&&(b=m,m=n)}function D(){return!sn(u.focus)||u.isNavigation}function I(){return i.state.is([R,F])&&!!u.waitForTransition}return{mount:function(){k(),t([U,K,qn],k),t(jn,E)},go:A,jump:function(n){const t=r.Breakpoints["set"];var e=u["speed"];t({speed:0}),A(n),t({speed:e})},scroll:function(n,t,e,o){r.Scroll.scroll(n,t,e,()=>{var n=L(c.toIndex(s()));C(d?Y(n,y):n),o&&o()})},getNext:p,getPrev:g,getAdjacent:$,getEnd:P,setIndex:C,getIndex:function(n){return n?b:m},toIndex:_,toPage:O,toDest:function(n){return n=c.toIndex(n),v?q(n,0,y):n},hasFocus:D,isBusy:I}},Arrows:(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,v=a.prev,p=a.next,g,m;const y={};function b(){var n=t.arrows;!n||v&&p||(h=l||D("div",c.arrows),v=k(!0),p=k(!1),g=!0,A(h,[v,p]),l||$(h,d)),v&&p&&(ln(y,{prev:v,next:p}),hn(h,n?"":"none"),_(h,m=gt+"--"+t.direction),n&&(o([H,On,K,V,qn],E),r(p,"click",T(S,">")),r(v,"click",T(S,"<")),E(),C([v,p],Vn,d.id),u("arrows:mounted",v,p))),o(U,w)}function w(){x(),b()}function x(){e.destroy(),W(h,m),g?(G(l?[v,p]:h),v=p=null):O([v,p],ct)}function S(n){f.go(n,!0)}function k(n){return gn(`