diff --git a/assets/js/app.js b/assets/js/app.js index a1cb64e..c80bbe9 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -65,10 +65,12 @@ function mountSlider() { function changeSlideOnClick() { if (homeSection && slider) { homeSection.addEventListener('click', function(e) { - if (e.clientX >= window.innerWidth / 2) { - slider.go('>'); - } else { - slider.go('<'); + if (!e.target.closest('.navigation__link') && !e.target.closest('.social__link')) { + if (e.clientX >= window.innerWidth / 2) { + slider.go('>'); + } else { + slider.go('<'); + } } }); } diff --git a/public/build/app.js b/public/build/app.js index bf22521..14229fd 100644 --- a/public/build/app.js +++ b/public/build/app.js @@ -1,2 +1,2 @@ /*! For license information please see app.js.LICENSE.txt */ -!function(){var t={770:function(){!function(t,n){"use strict";"function"!=typeof t.CustomEvent&&(t.CustomEvent=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=n.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i},t.CustomEvent.prototype=t.Event.prototype),n.addEventListener("touchstart",(function(t){if("true"===t.target.getAttribute("data-swipe-ignore"))return;a=t.target,u=Date.now(),e=t.touches[0].clientX,i=t.touches[0].clientY,r=0,o=0}),!1),n.addEventListener("touchmove",(function(t){if(!e||!i)return;var n=t.touches[0].clientX,u=t.touches[0].clientY;r=e-n,o=i-u}),!1),n.addEventListener("touchend",(function(t){if(a!==t.target)return;var c=parseInt(s(a,"data-swipe-threshold","20"),10),l=s(a,"data-swipe-unit","px"),d=parseInt(s(a,"data-swipe-timeout","500"),10),f=Date.now()-u,v="",p=t.changedTouches||t.touches||[];"vh"===l&&(c=Math.round(c/100*n.documentElement.clientHeight));"vw"===l&&(c=Math.round(c/100*n.documentElement.clientWidth));Math.abs(r)>Math.abs(o)?Math.abs(r)>c&&f0?"swiped-left":"swiped-right"):Math.abs(o)>c&&f0?"swiped-up":"swiped-down");if(""!==v){var h={dir:v.replace(/swiped-/,""),touchType:(p[0]||{}).touchType||"direct",xStart:parseInt(e,10),xEnd:parseInt((p[0]||{}).clientX||-1,10),yStart:parseInt(i,10),yEnd:parseInt((p[0]||{}).clientY||-1,10)};a.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:h})),a.dispatchEvent(new CustomEvent(v,{bubbles:!0,cancelable:!0,detail:h}))}e=null,i=null,u=null}),!1);var e=null,i=null,r=null,o=null,u=null,a=null;function s(t,e,i){for(;t&&t!==n.documentElement;){var r=t.getAttribute(e);if(r)return r;t=t.parentNode}return i}}(window,document)}},n={};function e(i){var r=n[i];if(void 0!==r)return r.exports;var o=n[i]={exports:{}};return t[i](o,o.exports,e),o.exports}!function(){"use strict";function t(t,n){for(var e=0;e-1}function E(t,n){return t.push.apply(t,y(n)),t}function _(t,n,e){t&&b(n,(function(n){n&&t.classList[e?"add":"remove"](n)}))}function S(t,n){_(t,p(n)?n.split(" "):n,!0)}function x(t,n){b(n,t.appendChild.bind(t))}function C(t,n){b(t,(function(t){var e=(n||t).parentNode;e&&e.insertBefore(t,n)}))}function k(t,n){return m(t)&&(t.msMatchesSelector||t.matches).call(t,n)}function L(t,n){var e=t?o(t.children):[];return n?e.filter((function(t){return k(t,n)})):e}function P(t,n){return n?L(t,n)[0]:t.firstElementChild}var A=Object.keys;function M(t,n,e){return t&&(e?A(t).reverse():A(t)).forEach((function(e){"__proto__"!==e&&n(t[e],e)})),t}function D(t){return o(arguments,1).forEach((function(n){M(n,(function(e,i){t[i]=n[i]}))})),t}function z(t){return o(arguments,1).forEach((function(n){M(n,(function(n,e){f(n)?t[e]=n.slice():d(n)?t[e]=z({},d(t[e])?t[e]:{},n):t[e]=n}))})),t}function I(t,n){b(n||A(t),(function(n){delete t[n]}))}function N(t,n){b(t,(function(t){b(n,(function(n){t&&t.removeAttribute(n)}))}))}function T(t,n,e){d(n)?M(n,(function(n,e){T(t,e,n)})):b(t,(function(t){g(e)||""===e?N(t,n):t.setAttribute(n,String(e))}))}function O(t,n,e){var i=document.createElement(t);return n&&(p(n)?S(i,n):T(i,n)),e&&x(e,i),i}function F(t,n,e){if(h(e))return getComputedStyle(t)[n];g(e)||(t.style[n]=""+e)}function X(t,n){F(t,"display",n)}function j(t){t.setActive&&t.setActive()||t.focus({preventScroll:!0})}function R(t,n){return t.getAttribute(n)}function W(t,n){return t&&t.classList.contains(n)}function q(t){return t.getBoundingClientRect()}function G(t){b(t,(function(t){t&&t.parentNode&&t.parentNode.removeChild(t)}))}function B(t){return P((new DOMParser).parseFromString(t,"text/html").body)}function Y(t,n){t.preventDefault(),n&&(t.stopPropagation(),t.stopImmediatePropagation())}function H(t,n){return t&&t.querySelector(n)}function U(t,n){return n?o(t.querySelectorAll(n)):[]}function $(t,n){_(t,n,!1)}function K(t){return t.timeStamp}function J(t){return p(t)?t:t?t+"px":""}var V="splide",Q="data-splide";function Z(t,n){if(!t)throw new Error("[splide] "+(n||""))}var tt=Math.min,nt=Math.max,et=Math.floor,it=Math.ceil,rt=Math.abs;function ot(t,n,e){return rt(t-n)0)-+(t<0)}function ct(t,n){return b(n,(function(n){t=t.replace("%s",""+n)})),t}function lt(t){return t<10?"0"+t:""+t}var dt={};function ft(t){return""+t+lt(dt[t]=(dt[t]||0)+1)}function vt(){var t=[];function n(t,n,e){b(t,(function(t){t&&b(n,(function(n){n.split(" ").forEach((function(n){var i=n.split(".");e(t,i[0],i[1])}))}))}))}return{bind:function(e,i,r,o){n(e,i,(function(n,e,i){var u="addEventListener"in n,a=u?n.removeEventListener.bind(n,e,r,o):n.removeListener.bind(n,r);u?n.addEventListener(e,r,o):n.addListener(r),t.push([n,e,i,r,a])}))},unbind:function(e,i,r){n(e,i,(function(n,e,i){t=t.filter((function(t){return!!(t[0]!==n||t[1]!==e||t[2]!==i||r&&t[3]!==r)||(t[4](),!1)}))}))},dispatch:function(t,n,e){var i;return"function"==typeof CustomEvent?i=new CustomEvent(n,{bubbles:true,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(n,true,!1,e),t.dispatchEvent(i),i},destroy:function(){t.forEach((function(t){t[4]()})),r(t)}}}var pt="mounted",ht="ready",gt="move",mt="moved",yt="click",bt="active",wt="inactive",Et="visible",_t="hidden",St="refresh",xt="updated",Ct="resize",kt="resized",Lt="scroll",Pt="scrolled",At="destroy",Mt="arrows:mounted",Dt="navigation:mounted",zt="autoplay:play",It="autoplay:pause",Nt="lazyload:loaded",Tt="sk",Ot="sh",Ft="ei";function Xt(t){var n=t?t.event.bus:document.createDocumentFragment(),e=vt();return t&&t.event.on(At,e.destroy),D(e,{bus:n,on:function(t,i){e.bind(n,y(t).join(" "),(function(t){i.apply(i,f(t.detail)?t.detail:[])}))},off:u(e.unbind,n),emit:function(t){e.dispatch(n,t,o(arguments,1))}})}function jt(t,n,e,i){var r,o,u=Date.now,a=0,s=!0,l=0;function d(){if(!s){if(a=t?tt((u()-r)/t,1):1,e&&e(a),a>=1&&(n(),r=u(),i&&++l>=i))return f();o=c(d)}}function f(){s=!0}function v(){o&&cancelAnimationFrame(o),a=0,o=0,s=!0}return{start:function(n){n||v(),r=u()-(n?a*t:0),s=!1,o=c(d)},rewind:function(){r=u(),a=0,e&&e(a)},pause:f,cancel:v,set:function(n){t=n},isPaused:function(){return s}}}var Rt="ArrowLeft",Wt="ArrowRight",qt="ArrowUp",Gt="ArrowDown",Bt="ttb",Yt={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[qt,Wt],ArrowRight:[Gt,Rt]};function Ht(t,n,e){return{resolve:function(t,n,i){var r="rtl"!==(i=i||e.direction)||n?i===Bt?0:-1:1;return Yt[t]&&Yt[t][r]||t.replace(/width|left|right/i,(function(t,n){var e=Yt[t.toLowerCase()][r]||t;return n>0?e.charAt(0).toUpperCase()+e.slice(1):e}))},orient:function(t){return t*("rtl"===e.direction?1:-1)}}}var Ut="role",$t="tabindex",Kt="aria-controls",Jt="aria-current",Vt="aria-selected",Qt="aria-label",Zt="aria-labelledby",tn="aria-hidden",nn="aria-orientation",en="aria-roledescription",rn="aria-live",on="aria-busy",un="aria-atomic",an=[Ut,$t,"disabled",Kt,Jt,Qt,Zt,tn,nn,en],sn=V,cn="splide__track",ln="splide__list",dn="splide__slide",fn=dn+"--clone",vn="splide__arrows",pn="splide__arrow",hn=pn+"--prev",gn=pn+"--next",mn="splide__pagination",yn=mn+"__page",bn="splide__progress__bar",wn="splide__toggle",En="is-active",_n="is-prev",Sn="is-next",xn="is-visible",Cn="is-loading",kn="is-focus-in",Ln="is-overflow",Pn=[En,xn,_n,Sn,Cn,kn,Ln],An={slide:dn,clone:fn,arrows:vn,arrow:pn,prev:hn,next:gn,pagination:mn,page:yn,spinner:"splide__spinner"};var Mn="touchstart mousedown",Dn="touchmove mousemove",zn="touchend touchcancel mouseup click";var In="slide",Nn="loop",Tn="fade";function On(t,n,e,i){var r,o=Xt(t),a=o.on,s=o.emit,c=o.bind,l=t.Components,d=t.root,f=t.options,v=f.isNavigation,p=f.updateOnMove,h=f.i18n,g=f.pagination,m=f.slideFocus,y=l.Direction.resolve,b=R(i,"style"),w=R(i,Qt),E=e>-1,S=P(i,".splide__slide__container");function x(){var r=t.splides.map((function(t){var e=t.splide.Components.Slides.getAt(n);return e?e.slide.id:""})).join(" ");T(i,Qt,ct(h.slideX,(E?e:n)+1)),T(i,Kt,r),T(i,Ut,m?"button":""),m&&N(i,en)}function C(){r||k()}function k(){if(!r){var e=t.index;(o=L())!==W(i,En)&&(_(i,En,o),T(i,Jt,v&&o||""),s(o?bt:wt,A)),function(){var n=function(){if(t.is(Tn))return L();var n=q(l.Elements.track),e=q(i),r=y("left",!0),o=y("right",!0);return et(n[r])<=it(e[r])&&et(e[o])<=it(n[o])}(),e=!n&&(!L()||E);t.state.is([4,5])||T(i,tn,e||"");T(U(i,f.focusableNodes||""),$t,e?-1:""),m&&T(i,$t,e?-1:0);n!==W(i,xn)&&(_(i,xn,n),s(n?Et:_t,A));if(!n&&document.activeElement===i){var r=l.Slides.getAt(t.index);r&&j(r.slide)}}(),_(i,_n,n===e-1),_(i,Sn,n===e+1)}var o}function L(){var i=t.index;return i===n||f.cloneStatus&&i===e}var A={index:n,slideIndex:e,slide:i,container:S,isClone:E,mount:function(){E||(i.id=d.id+"-slide"+lt(n+1),T(i,Ut,g?"tabpanel":"group"),T(i,en,h.slide),T(i,Qt,w||ct(h.slideLabel,[n+1,t.length]))),c(i,"click",u(s,yt,A)),c(i,"keydown",u(s,Tt,A)),a([mt,Ot,Pt],k),a(Dt,x),p&&a(gt,C)},destroy:function(){r=!0,o.destroy(),$(i,Pn),N(i,an),T(i,"style",b),T(i,Qt,w||"")},update:k,style:function(t,n,e){F(e&&S||i,t,n)},isWithin:function(e,i){var r=rt(e-n);return E||!f.rewind&&!t.is(Nn)||(r=tt(r,t.length-r)),r<=i}};return A}var Fn="http://www.w3.org/2000/svg",Xn="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";var jn={passive:!1,capture:!0};var Rn={Spacebar:" ",Right:Wt,Left:Rt,Up:qt,Down:Gt};function Wn(t){return t=p(t)?t:t.key,Rn[t]||t}var qn="keydown";var Gn="data-splide-lazy",Bn="data-splide-lazy-srcset",Yn="[data-splide-lazy], [data-splide-lazy-srcset]";var Hn=[" ","Enter"];var Un=Object.freeze({__proto__:null,Media:function(t,e,i){var r=t.state,o=i.breakpoints||{},u=i.reducedMotion||{},a=vt(),s=[];function c(t){t&&a.destroy()}function l(t,n){var e=matchMedia(n);a.bind(e,"change",d),s.push([t,e])}function d(){var n=r.is(7),e=i.direction,o=s.reduce((function(t,n){return z(t,n[1].matches?n[0]:{})}),{});I(i),f(o),i.destroy?t.destroy("completely"===i.destroy):n?(c(!0),t.mount()):e!==i.direction&&t.refresh()}function f(n,e,o){z(i,n),e&&z(Object.getPrototypeOf(i),n),!o&&r.is(1)||t.emit(xt,i)}return{setup:function(){var t="min"===i.mediaQuery;A(o).sort((function(n,e){return t?+n-+e:+e-+n})).forEach((function(n){l(o[n],"("+(t?"min":"max")+"-width:"+n+"px)")})),l(u,n),d()},destroy:c,reduce:function(t){matchMedia(n).matches&&(t?z(i,u):I(i,A(u)))},set:f}},Direction:Ht,Elements:function(t,n,e){var i,o,u,a=Xt(t),s=a.on,c=a.bind,l=t.root,d=e.i18n,f={},p=[],h=[],g=[];function m(){i=w("."+cn),o=P(i,"."+ln),Z(i&&o,"A track/list element is missing."),E(p,L(o,".splide__slide:not(."+fn+")")),M({arrows:vn,pagination:mn,prev:hn,next:gn,bar:bn,toggle:wn},(function(t,n){f[n]=w("."+t)})),D(f,{root:l,track:i,list:o,slides:p}),function(){var t=l.id||ft(V),n=e.role;l.id=t,i.id=i.id||t+"-track",o.id=o.id||t+"-list",!R(l,Ut)&&"SECTION"!==l.tagName&&n&&T(l,Ut,n);T(l,en,d.carousel),T(o,Ut,"presentation")}(),b()}function y(t){var n=an.concat("style");r(p),$(l,h),$(i,g),N([i,o],n),N(l,t?n:["style",en])}function b(){$(l,h),$(i,g),h=x(sn),g=x(cn),S(l,h),S(i,g),T(l,Qt,e.label),T(l,Zt,e.labelledby)}function w(t){var n=H(l,t);return n&&function(t,n){if(v(t.closest))return t.closest(n);for(var e=t;e&&1===e.nodeType&&!k(e,n);)e=e.parentElement;return e}(n,"."+sn)===l?n:void 0}function x(t){return[t+"--"+e.type,t+"--"+e.direction,e.drag&&t+"--draggable",e.isNavigation&&t+"--nav",t===sn&&En]}return D(f,{setup:m,mount:function(){s(St,y),s(St,m),s(xt,b),c(document,"touchstart mousedown keydown",(function(t){u="keydown"===t.type}),{capture:!0}),c(l,"focusin",(function(){_(l,kn,!!u)}))},destroy:y})},Slides:function(t,n,e){var i=Xt(t),o=i.on,a=i.emit,s=i.bind,c=n.Elements,l=c.slides,d=c.list,f=[];function h(){l.forEach((function(t,n){E(t,n,-1)}))}function g(){L((function(t){t.destroy()})),r(f)}function E(n,e,i){var r=On(t,e,i,n);r.mount(),f.push(r),f.sort((function(t,n){return t.index-n.index}))}function _(t){return t?P((function(t){return!t.isClone})):f}function L(t,n){_(n).forEach(t)}function P(t){return f.filter(v(t)?t:function(n){return p(t)?k(n.slide,t):w(y(t),n.index)})}return{mount:function(){h(),o(St,g),o(St,h)},destroy:g,update:function(){L((function(t){t.update()}))},register:E,get:_,getIn:function(t){var i=n.Controller,r=i.toIndex(t),o=i.hasFocus()?1:e.perPage;return P((function(t){return ut(t.index,r,r+o-1)}))},getAt:function(t){return P(t)[0]},add:function(t,n){b(t,(function(t){if(p(t)&&(t=B(t)),m(t)){var i=l[n];i?C(t,i):x(d,t),S(t,e.classes.slide),r=t,o=u(a,Ct),c=U(r,"img"),(f=c.length)?c.forEach((function(t){s(t,"load error",(function(){--f||o()}))})):o()}var r,o,c,f})),a(St)},remove:function(t){G(P(t).map((function(t){return t.slide}))),a(St)},forEach:L,filter:P,style:function(t,n,e){L((function(i){i.style(t,n,e)}))},getLength:function(t){return t?l.length:f.length},isEnough:function(){return f.length>e.perPage}}},Layout:function(t,n,e){var i,r,o,a=Xt(t),s=a.on,c=a.bind,l=a.emit,f=n.Slides,v=n.Direction.resolve,p=n.Elements,h=p.root,g=p.track,m=p.list,y=f.getAt,b=f.style;function w(){i=e.direction===Bt,F(h,"maxWidth",J(e.width)),F(g,v("paddingLeft"),S(!1)),F(g,v("paddingRight"),S(!0)),E(!0)}function E(t){var n=q(h);(t||r.width!==n.width||r.height!==n.height)&&(F(g,"height",function(){var t="";i&&(Z(t=x(),"height or heightRatio is missing."),t="calc("+t+" - "+S(!1)+" - "+S(!0)+")");return t}()),b(v("marginRight"),J(e.gap)),b("width",e.autoWidth?null:J(e.fixedWidth)||(i?"":C())),b("height",J(e.fixedHeight)||(i?e.autoHeight?null:C():x()),!0),r=n,l(kt),o!==(o=D())&&(_(h,Ln,o),l("overflow",o)))}function S(t){var n=e.padding,i=v(t?"right":"left");return n&&J(n[i]||(d(n)?0:n))||"0px"}function x(){return J(e.height||q(m).width*e.heightRatio)}function C(){var t=J(e.gap);return"calc((100%"+(t&&" + "+t)+")/"+(e.perPage||1)+(t&&" - "+t)+")"}function k(){return q(m)[v("width")]}function L(t,n){var e=y(t||0);return e?q(e.slide)[v("width")]+(n?0:M()):0}function P(t,n){var e=y(t);if(e){var i=q(e.slide)[v("right")],r=q(m)[v("left")];return rt(i-r)+(n?0:M())}return 0}function A(n){return P(t.length-1)-P(0)+L(0,n)}function M(){var t=y(0);return t&&parseFloat(F(t.slide,v("marginRight")))||0}function D(){return t.is(Tn)||A(!0)>k()}return{mount:function(){var t,n,e;w(),c(window,"resize load",(t=u(l,Ct),e=jt(n||0,t,null,1),function(){e.isPaused()&&e.start()})),s([xt,St],w),s(Ct,E)},resize:E,listSize:k,slideSize:L,sliderSize:A,totalSize:P,getPadding:function(t){return parseFloat(F(g,v("padding"+(t?"Right":"Left"))))||0},isOverflow:D}},Clones:function(t,n,e){var i,o=Xt(t),u=o.on,a=n.Elements,s=n.Slides,c=n.Direction.resolve,l=[];function d(){u(St,f),u([xt,Ct],p),(i=g())&&(!function(n){var i=s.get().slice(),r=i.length;if(r){for(;i.lengthn.Controller.getEnd();(i<0||r)&&(e=x(e,r))}return e}(e);F(b,"transform","translate"+g("X")+"("+r+"px)"),e!==r&&u(Ot)}}function x(t,n){var e=t-A(n),i=v();return t-=m(i*(it(rt(e)/i)||1))*(n?1:-1)}function C(){S(P(),!0),i.cancel()}function k(t){for(var e=n.Slides.get(),i=0,r=1/0,o=0;oe,s=m(x(P(),o)),o?s>=0:s<=b[g("scrollWidth")]-q(w)[g("width")])&&(C(),S(x(P(),t>e),!0)),a(4),u(gt,n,e,t),i.start(n,(function(){a(3),u(mt,n,e,t),r&&r()}))},jump:_,translate:S,shift:x,cancel:C,toIndex:k,toPosition:L,getPosition:P,getLimit:A,exceededLimit:function(t,n){n=h(n)?P():n;var e=!0!==t&&m(n)m(A(!0));return e||i},reposition:E}},Controller:function(t,n,e){var i,r,o,a,s=Xt(t),c=s.on,l=s.emit,d=n.Move,f=d.getPosition,v=d.getLimit,g=d.toPosition,m=n.Slides,y=m.isEnough,b=m.getLength,w=e.omitEnd,E=t.is(Nn),_=t.is(In),S=u(A,!1),x=u(A,!0),C=e.start||0,k=C;function L(){r=b(!0),o=e.perMove,a=e.perPage,i=z();var t=at(C,0,w?i:r-1);t!==C&&(C=t,d.reposition())}function P(){i!==z()&&l(Ft)}function A(t,n){var e=o||(O()?1:a),r=M(C+e*(t?-1:1),C,!(o||O()));return-1===r&&_&&!ot(f(),v(!t),1)?t?0:i:n?r:D(r)}function M(n,u,s){if(y()||O()){var c=function(n){if(_&&"move"===e.trimSpace&&n!==C)for(var i=f();i===g(n,!0)&&ut(n,0,t.length-1,!e.rewind);)ni?n=o||!ut(0,n,u,!0)&&!ut(i,u,n,!0)?E?s?n<0?-(r%a||a):r:n:e.rewind?n<0?i:0:-1:I(N(n)):s&&n!==u&&(n=I(N(u)+(n0;)if(g(r-1,!0)!==g(t,!0)){t++;break}return at(t,0,r-1)}function I(t){return at(O()?t:a*t,0,i)}function N(t){return O()?tt(t,i):et((t>=i?r-1:t)/a)}function T(t){t!==C&&(k=C,C=t)}function O(){return!h(e.focus)||e.isNavigation}function F(){return t.state.is([4,5])&&!!e.waitForTransition}return{mount:function(){L(),c([xt,St,Ft],L),c(kt,P)},go:function(t,n,e){if(!F()){var r=function(t){var n=C;if(p(t)){var e=t.match(/([+\-<>])(\d+)?/)||[],r=e[1],o=e[2];"+"===r||"-"===r?n=M(C+ +(""+r+(+o||1)),C):">"===r?n=o?I(+o):S(!0):"<"===r&&(n=x(!0))}else n=E?t:at(t,0,i);return n}(t),o=D(r);o>-1&&(n||o!==C)&&(T(o),d.move(r,o,k,e))}},scroll:function(t,e,r,o){n.Scroll.scroll(t,e,r,(function(){var t=D(d.toIndex(f()));T(w?tt(t,i):t),o&&o()}))},getNext:S,getPrev:x,getAdjacent:A,getEnd:z,setIndex:T,getIndex:function(t){return t?k:C},toIndex:I,toPage:N,toDest:function(t){var n=d.toIndex(t);return _?at(n,0,i):n},hasFocus:O,isBusy:F}},Arrows:function(t,n,e){var i,r,o=Xt(t),a=o.on,s=o.bind,c=o.emit,l=e.classes,d=e.i18n,f=n.Elements,v=n.Controller,p=f.arrows,h=f.track,g=p,m=f.prev,y=f.next,b={};function w(){!function(){var t=e.arrows;!t||m&&y||(g=p||O("div",l.arrows),m=L(!0),y=L(!1),i=!0,x(g,[m,y]),!p&&C(g,h));m&&y&&(D(b,{prev:m,next:y}),X(g,t?"":"none"),S(g,r=vn+"--"+e.direction),t&&(a([pt,mt,St,Pt,Ft],P),s(y,"click",u(k,">")),s(m,"click",u(k,"<")),P(),T([m,y],Kt,h.id),c(Mt,m,y)))}(),a(xt,E)}function E(){_(),w()}function _(){o.destroy(),$(g,r),i?(G(p?[m,y]:g),m=y=null):N([m,y],an)}function k(t){v.go(t,!0)}function L(t){return B('