From 0683584035278be4ff96b687bb3a236d04d6914b Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 22 Oct 2019 18:37:11 +0100 Subject: [PATCH] test libraryExport --- dist/tidy-carousel.js | 2 +- dist/tidy-carousel.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/tidy-carousel.js b/dist/tidy-carousel.js index 26e3189..1658f37 100644 --- a/dist/tidy-carousel.js +++ b/dist/tidy-carousel.js @@ -193,5 +193,5 @@ eval("module.exports = __webpack_require__(/*! ./dev/index */\"./dev/index.js\") /***/ }) -/******/ })["TidyCarousel.default"]; +/******/ })["default"]; }); \ No newline at end of file diff --git a/dist/tidy-carousel.min.js b/dist/tidy-carousel.min.js index a766299..da5d072 100644 --- a/dist/tidy-carousel.min.js +++ b/dist/tidy-carousel.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.TidyCarousel=e():t.TidyCarousel=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="./dist",r(r.s=0)}([function(t,e,r){t.exports=r(7)},function(t,e){var r,n;n={},function(t,e){function r(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=d}function n(){return t.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(e,n,i){var s=new r;return n&&(s.fill="both",s.duration="auto"),"number"!=typeof e||isNaN(e)?void 0!==e&&Object.getOwnPropertyNames(e).forEach((function(r){if("auto"!=e[r]){if(("number"==typeof s[r]||"duration"==r)&&("number"!=typeof e[r]||isNaN(e[r])))return;if("fill"==r&&-1==c.indexOf(e[r]))return;if("direction"==r&&-1==h.indexOf(e[r]))return;if("playbackRate"==r&&1!==e[r]&&t.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;s[r]=e[r]}})):s.duration=e,s}function s(t,e,r,n){return t<0||t>1||r<0||r>1?d:function(i){function s(t,e,r){return 3*t*(1-r)*(1-r)*r+3*e*(1-r)*r*r+r*r*r}if(i<=0){var o=0;return t>0?o=e/t:!e&&r>0&&(o=n/r),o*i}if(i>=1){var a=0;return r<1?a=(n-1)/(r-1):1==r&&t<1&&(a=(e-1)/(t-1)),1+a*(i-1)}for(var l=0,u=1;l=1)return 1;var n=1/t;return(r+=e*n)-r%n}}function a(t){_||(_=document.createElement("div").style),_.animationTimingFunction="",_.animationTimingFunction=t;var e=_.animationTimingFunction;if(""==e&&n())throw new TypeError(t+" is not a valid value for easing");return e}function l(t){if("linear"==t)return d;var e=b.exec(t);if(e)return s.apply(this,e.slice(1).map(Number));var r=y.exec(t);if(r)return o(Number(r[1]),m);var n=x.exec(t);return n?o(Number(n[1]),{start:f,middle:p,end:m}[n[2]]):g[t]||d}function u(t,e,r){if(null==e)return w;var n=r.delay+t+r.endDelay;return e=Math.min(r.delay+t,n)?A:E}var c="backwards|forwards|both|none".split("|"),h="reverse|alternate|alternate-reverse".split("|"),d=function(t){return t};r.prototype={_setMember:function(e,r){this["_"+e]=r,this._effect&&(this._effect._timingInput[e]=r,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&n())throw new TypeError("iterationStart must be a non-negative number, received: "+t);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&n())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=l(a(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&n())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var f=1,p=.5,m=0,g={ease:s(.25,.1,.25,1),"ease-in":s(.42,0,1,1),"ease-out":s(0,0,.58,1),"ease-in-out":s(.42,0,.58,1),"step-start":o(1,f),"step-middle":o(1,p),"step-end":o(1,m)},_=null,v="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",b=new RegExp("cubic-bezier\\("+v+","+v+","+v+","+v+"\\)"),y=/steps\(\s*(\d+)\s*\)/,x=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,w=0,T=1,A=2,E=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var r in t)e[r]=t[r];return e},t.makeTiming=i,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,r){return i(e=t.numericTimingToObject(e),r)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,r){var n=u(t,e,r),i=function(t,e,r,n,i){switch(n){case T:return"backwards"==e||"both"==e?0:null;case E:return r-i;case A:return"forwards"==e||"both"==e?t:null;case w:return null}}(t,r.fill,e,n,r.delay);if(null===i)return null;var s=function(t,e,r,n,i){var s=i;return 0===t?e!==T&&(s+=r):s+=n/t,s}(r.duration,n,r.iterations,i,r.iterationStart),o=function(t,e,r,n,i,s){var o=t===1/0?e%1:t%1;return 0!==o||r!==A||0===n||0===i&&0!==s||(o=1),o}(s,r.iterationStart,n,r.iterations,i,r.duration),a=function(t,e,r,n){return t===A&&e===1/0?1/0:1===r?Math.floor(n)-1:Math.floor(n)}(n,r.iterations,o,s),l=function(t,e,r){var n=t;if("normal"!==t&&"reverse"!==t){var i=e;"alternate-reverse"===t&&(i+=1),n="normal",i!==1/0&&i%2!=0&&(n="reverse")}return"normal"===n?r:1-r}(r.direction,a,o);return r._easingFunction(l)},t.calculatePhase=u,t.normalizeEasing=a,t.parseEasingFunction=l}(r={}),function(t,e){function r(t,e){return t in l&&l[t][e]||e}function n(t,e,n){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var i=s[t];if(i)for(var a in o.style[t]=e,i){var l=i[a],u=o.style[l];n[l]=r(l,u)}else n[t]=r(t,e)}}function i(t){var e=[];for(var r in t)if(!(r in["easing","offset","composite"])){var n=t[r];Array.isArray(n)||(n=[n]);for(var i,s=n.length,o=0;o1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==s||"accumulate"==s)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=s)throw new TypeError("Invalid composite mode "+s+".")}else s="easing"==i?t.normalizeEasing(s):""+s;n(i,s,r)}return null==r.offset&&(r.offset=null),null==r.easing&&(r.easing="linear"),r})),s=!0,o=-1/0,a=0;a=0&&t.offset<=1})),s||function(){var t=r.length;null==r[t-1].offset&&(r[t-1].offset=1),t>1&&null==r[0].offset&&(r[0].offset=0);for(var e=0,n=r[0].offset,i=1;i=t.applyFrom&&rthis._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,r){this._style[e]=r,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(r)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},a)n.prototype[u]=function(t,e){return function(){var r=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),r}}(u,u in l);for(var c in document.documentElement.style)c in o||c in a||function(t){r(n.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(c);t.apply=function(e,r,n){i(e),e.style._set(t.propertyName(r),n)},t.clear=function(e,r){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(r))}}(n),function(t){window.Element.prototype.animate=function(e,r){var n="";return r&&r.id&&(n=r.id),t.timeline._play(t.KeyframeEffect(this,e,r,n))}}(n),function(t,e){t.Interpolation=function(t,e,r){return function(n){return r(function t(e,r,n){if("number"==typeof e&&"number"==typeof r)return e*(1-n)+r*n;if("boolean"==typeof e&&"boolean"==typeof r)return n<.5?e:r;if(e.length==r.length){for(var i=[],s=0;s0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var r=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=r&&(this.currentTime=r)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var r=this._finishHandlers.indexOf(e);r>=0&&this._finishHandlers.splice(r,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new n(this,this._currentTime,t),r=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){r.forEach((function(t){t.call(e.target,e)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(r,n),function(t,e,r){function n(t){var e=u;u=[],t1e-4?(g=.5/Math.sqrt(v),_=[(d[2][1]-d[1][2])*g,(d[0][2]-d[2][0])*g,(d[1][0]-d[0][1])*g,.25/g]):d[0][0]>d[1][1]&&d[0][0]>d[2][2]?_=[.25*(g=2*Math.sqrt(1+d[0][0]-d[1][1]-d[2][2])),(d[0][1]+d[1][0])/g,(d[0][2]+d[2][0])/g,(d[2][1]-d[1][2])/g]:d[1][1]>d[2][2]?(g=2*Math.sqrt(1+d[1][1]-d[0][0]-d[2][2]),_=[(d[0][1]+d[1][0])/g,.25*g,(d[1][2]+d[2][1])/g,(d[0][2]-d[2][0])/g]):(g=2*Math.sqrt(1+d[2][2]-d[0][0]-d[1][1]),_=[(d[0][2]+d[2][0])/g,(d[1][2]+d[2][1])/g,.25*g,(d[1][0]-d[0][1])/g]),[h,f,p,_,u]}}();t.dot=r,t.makeMatrixDecomposition=function(t){return[a(o(t))]},t.transformListToMatrix=o}(n),function(t){function e(t,e){var r=t.exec(e);if(r)return[r=t.ignoreCase?r[0].toLowerCase():r[0],e.substr(r.length)]}function r(t,e){var r=t(e=e.replace(/^\s*/,""));if(r)return[r[0],r[1].replace(/^\s*/,"")]}function n(t,e,r,n,i){for(var s=[],o=[],a=[],l=function(t,e){for(var r=t,n=e;r&&n;)r>n?r%=n:n%=r;return t*e/(r+n)}(n.length,i.length),u=0;u=1?e:"visible"}]}),["visibility"])}(n),function(t,e){function r(t){t=t.trim(),s.fillStyle="#000",s.fillStyle=t;var e=s.fillStyle;if(s.fillStyle="#fff",s.fillStyle=t,e==s.fillStyle){s.fillRect(0,0,1,1);var r=s.getImageData(0,0,1,1).data;s.clearRect(0,0,1,1);var n=r[3]/255;return[r[0]*n,r[1]*n,r[2]*n,n]}}function n(e,r){return[e,r,function(e){function r(t){return Math.max(0,Math.min(255,t))}if(e[3])for(var n=0;n<3;n++)e[n]=Math.round(r(e[n]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var s=i.getContext("2d");t.addPropertiesHandler(r,n,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,r),t.mergeColors=n}(n),function(t,e){function r(t){function e(){var e=o.exec(t);s=e?e[0]:void 0}function r(){if("("!==s)return function(){var t=Number(s);return e(),t}();e();var t=i();return")"!==s?NaN:(e(),t)}function n(){for(var t=r();"*"===s||"/"===s;){var n=s;e();var i=r();"*"===n?t*=i:t/=i}return t}function i(){for(var t=n();"+"===s||"-"===s;){var r=s;e();var i=n();"+"===r?t+=i:t-=i}return t}var s,o=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),i()}function n(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){e=e.replace(/calc\(/g,"(");var n={};e=e.replace(t,(function(t){return n[t]=null,"U"+t}));for(var i="U("+t.source+")",s=e.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),o=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],a=0;a1?"calc("+r+")":r}]}var o="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",a=n.bind(null,new RegExp(o,"g")),l=n.bind(null,new RegExp(o+"|%","g")),u=n.bind(null,/deg|rad|grad|turn/g);t.parseLength=a,t.parseLengthOrPercent=l,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,l),t.parseAngle=u,t.mergeDimensions=s;var c=t.consumeParenthesised.bind(null,a),h=t.consumeRepeated.bind(void 0,c,/^/),d=t.consumeRepeated.bind(void 0,h,/^,/);t.consumeSizePairList=d;var f=t.mergeNestedRepeated.bind(void 0,i," "),p=t.mergeNestedRepeated.bind(void 0,f,",");t.mergeNonNegativeSizePair=f,t.addPropertiesHandler((function(t){var e=d(t);if(e&&""==e[1])return e[0]}),p,["background-size"]),t.addPropertiesHandler(l,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(l,s,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(n),function(t,e){function r(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function n(e){var n=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,r,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],e);if(n&&4==n[0].length)return n[0]}var i=t.mergeWrappedNestedRepeated.bind(null,(function(t){return"rect("+t+")"}),(function(e,r){return"auto"==e||"auto"==r?[!0,!1,function(n){var i=n?e:r;if("auto"==i)return"auto";var s=t.mergeDimensions(i,i);return s[2](s[0])}]:t.mergeDimensions(e,r)}),", ");t.parseBox=n,t.mergeBoxes=i,t.addPropertiesHandler(n,i,["clip"])}(n),function(t,e){function r(t){return function(e){var r=0;return t.map((function(t){return t===u?e[r++]:t}))}}function n(t){return t}function i(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var r,n=/\s*(\w+)\(([^)]*)\)/g,i=[],s=0;r=n.exec(e);){if(r.index!=s)return;s=r.index+r[0].length;var o=r[1],a=d[o];if(!a)return;var l=r[2].split(","),u=a[0];if(u.length900||e%100!=0))return e}),(function(t,r){return[t,r,e]}),["font-weight"])}(n),function(t){function e(t){var e={};for(var r in t)e[r]=-t[r];return e}function r(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function n(e,n){var i=t.consumeRepeated(r,/^/,n);if(i&&""==i[1]){var o=i[0];if(o[0]=o[0]||"center",o[1]=o[1]||"center",3==e&&(o[2]=o[2]||{px:0}),o.length==e){if(/top|bottom/.test(o[0])||/left|right/.test(o[1])){var a=o[0];o[0]=o[1],o[1]=a}if(/left|right|center|Object/.test(o[0])&&/top|bottom|center|Object/.test(o[1]))return o.map((function(t){return"object"==typeof t?t:s[t]}))}}}function i(n){var i=t.consumeRepeated(r,/^/,n);if(i){for(var o=i[0],a=[{"%":50},{"%":50}],l=0,u=!1,c=0;c=0&&this._cancelHandlers.splice(r,1)}else l.call(this,t,e)},s}}}(),function(t){var e=document.documentElement,r=null,n=!1;try{var i="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(r=e.animate({opacity:[i,i]},{duration:1})).currentTime=0,n=getComputedStyle(e).getPropertyValue("opacity")==i}catch(t){}finally{r&&r.cancel()}if(!n){var s=window.Element.prototype.animate;window.Element.prototype.animate=function(e,r){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),s.call(this,e,r)}}}(r)},function(t,e,r){var n=r(3);"string"==typeof n&&(n=[[t.i,n,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};r(5)(n,i);n.locals&&(t.exports=n.locals)},function(t,e,r){(t.exports=r(4)(!1)).push([t.i,'html,body{margin:0;padding:0}.current-slide{z-index:1}.page-active{background:#fff}.tidy__carousel-wrapper{position:relative;width:100%;height:100%}.tidy__carousel{position:relative;height:30vmin;width:100%;margin:0;padding:0;z-index:1;display:block;overflow:hidden}.tidy__carousel .tidy__carousel-slide{position:absolute;width:inherit;height:inherit;display:inline-block}.tidy__carousel .tidy__carousel-slide>*{width:inherit;height:inherit;display:block;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none}button.tidy__carousel-controller[data-carousel-controller]{position:absolute;transform:translateY(-50%);z-index:1000;top:50%;width:44px;height:44px;border-radius:50%;background:#fff;border:none;z-index:10;display:block;background:#fff;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none;outline:none;cursor:pointer}button.tidy__carousel-controller[data-carousel-controller] svg{position:absolute;left:20%;top:20%;width:60%;height:60%;cursor:pointer;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none}button.tidy__carousel-controller[data-carousel-controller~="left"]{left:10px}button.tidy__carousel-controller[data-carousel-controller~="right"]{right:10px}.tidy__carousel-pager[data-carousel-pager]{position:relative;margin:0;padding:0;z-index:100;width:100%;display:flex;align-items:center;justify-content:center;transform:translateY(-25px);user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none}.tidy__carousel-pager[data-carousel-pager] .tidy__carousel-pager--page{margin:0 5px;width:10px;height:10px;border-radius:100%;border:1px solid #f1f1f1;cursor:pointer;list-style-type:none;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none}\n',""])},function(t,e,r){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=function(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"==typeof btoa){var i=(o=n,a=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(l," */")),s=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot).concat(t," */")}));return[r].concat(s).concat([i]).join("\n")}var o,a,l;return[r].join("\n")}(e,t);return e[2]?"@media ".concat(e[2],"{").concat(r,"}"):r})).join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},i=0;i=0&&h.splice(e,1)}function _(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var n=function(){0;return r.nc}();n&&(t.attrs.nonce=n)}return v(e,t.attrs),m(t,e),e}function v(t,e){Object.keys(e).forEach((function(r){t.setAttribute(r,e[r])}))}function b(t,e){var r,n,i,s;if(e.transform&&t.css){if(!(s="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=s}if(e.singleton){var o=c++;r=u||(u=_(e)),n=w.bind(null,r,o,!1),i=w.bind(null,r,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",v(e,t.attrs),m(t,e),e}(e),n=A.bind(null,r,e),i=function(){g(r),r.href&&URL.revokeObjectURL(r.href)}):(r=_(e),n=T.bind(null,r),i=function(){g(r)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=o()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var r=p(t,e);return f(r,e),function(t){for(var n=[],i=0;i{"path"in Event.prototype||Object.defineProperty(Event.prototype,"path",{get:function(){const t=[];let e=this.target;for(;e;)t.push(e),e=e.parentElement;return-1===t.indexOf(window)&&-1===t.indexOf(document)&&t.push(document),-1===t.indexOf(window)&&t.push(window),t}})};var i=class{constructor(t){this.opts=t||{};for(let t in this.opts)t&&(this[t]=this.opts[t])}get name(){return void 0!==this.opts.name?this.opts.name:null}set name(t){if("string"!=typeof t)throw new TypeError(`Opts.name should be a string, but received instead ${typeof t}`);return t}get container(){const{opts:{container:t}}=this,e=this.name&&`[data-name="${this.name}"]`;switch(typeof t){case"string":return document.querySelector(`${t+(null!==e?e:"")}`);case"object":return t;default:return document.querySelector(`.tidy__carousel${null!==e?e:""}`)}}set container(t){let e;const r=this.name&&`[data-name="${this.name}"]`;switch(typeof t){case"string":if(null===(e=document.querySelector(t+(null!==r?r:""))))throw new TypeError(`Could not find any maching element for "${t}" with the name ${this.name}. Make sure the element is loaded before initializing.`);return e;case"object":if(null===t)throw new TypeError("Please make sure the container element is loaded before initialization.");if(!t instanceof HTMLElement)throw new TypeError("'container' should be a instance of an html element, but received instead other type of object.");if(!t.children.length>2)throw new Error(`The container should have at least two children elements but it has instead ${t.length}`);return t;default:throw new TypeError(`'"container" should be a string (pseudo selector) or boolean, received instead ${typeof t}'`)}}get slides(){if(!this.opts.slides&&!this.container.children.length)throw new Error("Can't find any slides");return this.opts.slides?this.opts.slides:null}set slides(t){if(!Array.isArray(t))throw new TypeError(`The slides it should be an array. Received instead ${typeof t}`);return t}get controllers(){const{opts:{controllers:t}}=this;let e,r=this.name&&`[data-for="${this.name}"]`;switch(typeof t){case"boolean":return e=document.querySelectorAll(`[data-carousel-controller]${null!==r?r:""}`),!!t&&e;case"string":return e=document.querySelectorAll(`${t+(null!==r?r:"")}`);case"object":return t instanceof HTMLCollection?Array.from(t):t;case"undefined":return e=null!==(e=document.querySelectorAll(`[data-carousel-controller]${null!==r?r:""}`))&&Array.from(e);default:throw new TypeError("controllers can only have the following types: string, array/Nodelist")}}set controllers(t){const{opts:{controllers:e}}=this;let r,n=this.name&&`[data-for="${this.name}"]`;switch(typeof t){case"boolean":if(r=document.querySelectorAll(`[carousel-controller]${null!==n?n:""}`),t&&!r.length)throw new TypeError("Could not find any element containing the attribute of carousel-controller. Bind this attribute [carousel-controller] to an element specify the value lef/right.");return!(!t||!r)&&r;case"string":if((r=document.querySelectorAll(`${e+(null!==n?n:"")}`)).length)return r.forEach(t=>{if(!t.hasAttribute("carousel-controller"))throw new TypeError("The controllers selected doesn't have the attribute 'carousel-controller'. Set this attribute to a string left/right");if(t.hasAttribute("carousel-controller")&&""===t.attributes["carousel-controller"].value)throw new TypeError("The controllers selected doesn't have the attribute 'carousel-controller'. Set this attribute to a string left/right")}),r;throw new TypeError("Could not find any element containing the attribute of carousel-controller. Bind this attribute [carousel-controller] to an element specify the value lef/right.");case"object":if(t instanceof NodeList||Array.isArray(t))return t;if(t instanceof HTMLCollection)return Array.from(t);throw new TypeError("controllers can only have the following types: string, array/Nodelist");default:throw new TypeError("controllers can only have the following types: string, array/Nodelist")}}get easing(){return this.opts.easing?this.opts.easing:"ease"}set easing(t){if("string"!=typeof t)throw new TypeError(`'easing' should be a string, received instead ${typeof t}`);return t}get duration(){return this.opts.duration?this.opts.duration:500}set duration(t){if("number"!=typeof t)throw new Error(`Type error: "duration" should be a number instead of ${typeof t}`);if(t<0)throw new Error(`Value error: "duration" should be a number > 0, but received instead ${t}`);return t}get delay(){return this.opts.delay?this.opts.delay:500}set delay(t){if("number"!=typeof t)throw new Error(`Type error: "duration" should be a number instead of ${typeof t}`);if(t<0)throw new Error(`Value error: "duration" should be a number > 0, but received instead ${t}`);return t}get infinite(){return void 0===this.opts.infinite||this.opts.infinite}set infinite(t){if("boolean"!=typeof t)throw new TypeError(`'infinite' option should be a boolean instead of ${typeof t}`);return t}get auto(){return void 0===this.opts.auto||this.opts.auto}set auto(t){if("object"==typeof t)return t.direction?(this.autoDirection=t.direction,t):t;if("boolean"==typeof t)return!0===t?(this.autoDirection="left",{direction:"left"}):(this.autoDirection=null,{direction:null});throw new Error(`Type error: "auto" should be a boolean or an object containing direction instead of ${typeof t}`)}get autoDirection(){return"object"==typeof this.auto?this.auto.direction:"boolean"==typeof this.auto?!0===this.auto?"left":null:void 0}set autoDirection(t){if(null===t)return!1;if("string"!=typeof t)throw new TypeError(`Direction should be a string, received ${typeof t}`);if(!t.toLowerCase().includes("left")&&!t.toLowerCase().includes("right"))throw new Error(`Value error: "direction" can be 'left' or 'right', received instead: ${t}`)}get startAt(){return void 0!==this.opts.startAt?this.opts.startAt:Array.isArray(this.slides)?this.slides.length-1:this.container.children.length-1!=-1?this.container.children.length-1:0}set startAt(t){if("number"!=typeof t)throw new TypeError(`'startAt' should be a number, received instead. ${typeof t}`);if(Array.isArray(this.slides)&&this.slides.length){if(t>=this.slides.length)throw new Error("'startAt' should be a number <= the total slides counting from 0.")}else if(t>=this.container.children.length)throw new Error("'startAt' should be a number <= the total slides counting from 0.");return t}get pager(){const{opts:t}=this;let e=this.name&&`[data-for="${this.name}"]`;switch(typeof t.pager){case"boolean":const r=document.querySelector(`ul[data-carousel-pager]${null!==e?e:""}`);return!(!t.pager||!r)&&r;case"object":let n=t.pager.container;if(n instanceof HTMLElement)return n||!1;if("object"==typeof n)throw new TypeError("Container should be a html element, but received instead an object");if("string"==typeof n){if(null!==(n=document.querySelector(n+(null!==e?e:""))))return n;throw new TypeError(`${n} wasn't found in the document. Make sure the element is available in the DOM before you give me the selector.`)}default:return t.pager}}set pager(t){const{opts:e}=this;let r=this.name&&`[data-for="${this.name}"]`;switch(typeof t){case"boolean":const n=document.querySelector(`ul[data-carousel-pager]${null!==r?r:""}`);return!(!e.pager||!n)&&n;case"object":if(t.container){const e=t.container;return(e instanceof NodeList&&e.length>0||e instanceof HTMLElement)&&e}throw new TypeError(`Pager should be an object containing the container or a string, received instead ${typeof t}.`);default:throw new TypeError(`Pager should be an object containing the container or a string, received instead ${typeof t}.`)}}get pauseOnMouseEnter(){return"boolean"!=typeof this.opts.pauseOnMouseEnter||this.opts.pauseOnMouseEnter}set pauseOnMouseEnter(t){if("boolean"!=typeof t)throw new Error("Value error: warns can only be false or true");return t}get swipe(){return!this.opts.swipe||this.opts.swipe}set swipe(t){if("boolean"!=typeof t)throw new TypeError(`'swipe' should be a boolean, received instead ${typeof t}`);return t}get drag(){return!this.opts.drag||this.opts.drag}set drag(t){if("boolean"!=typeof t)throw new TypeError(`'drag' should be a boolean instead of ${typeof t}`);return t}};r(1);const s=(t,e,r)=>{return new Promise((n,i)=>{for(let s in t)if(void 0!==t[s].animate){const o=t[s].animate([e[s].from,e[s].to],r);o.onfinish=t=>{n(t)},o.onCancel=t=>{i(t)}}else setTimeout(()=>{n()},r.duration)})};var o=class extends i{constructor(t){super(t),this.pages=[]}setActivePage(){this.pages[this.current_slide].classList.remove("page-active"),this.pages[this.next_slide].classList.add("page-active")}doAnimation(t,e,r,n){const i=this.container.children.length-1;let o=t||this.direction,a=null;n&&("left"===this.direction&&(a=this.current_slide-1==-1?i:this.current_slide-1),"right"===this.direction&&(a=this.current_slide+1>i?0:this.current_slide+1));let l={current_slide:this.container.children[this.current_slide],next_slide:this.container.children[null!==a?a:this.next_slide]};const u={easing:this.easing,duration:n?this.duration/2:this.duration};this.direction;const c={current_slide:{from:{transform:`translateX(${e||0}%)`,zIndex:"2"},to:{transform:`translateX(${n?0:"left"===o?-100:100}%)`,zIndex:"2"}},next_slide:{from:{transform:`translateX(${r&&"left"===o?100-r:r&&"right"===o?e-100:"left"!==o||r?-100:100}%)`,zIndex:"1"},to:{transform:`translateX(${n&&"right"===o?-100:n&&"left"===o?100:0}%)`,zIndex:"1"}}};return n||(this.swipe_stopped=!0,this.container.children[this.current_slide].classList.remove("current-slide"),this.container.children[this.next_slide].classList.add("current-slide")),s(l,c,u)}swipeAnimation(t,e){let r=100+e,n=100-e,i=-Math.abs(r);this.container.children[this.current_slide].setAttribute("style",`transform: translateX(${t}%); z-index: 2;`),this.container.children[this.next_slide].setAttribute("style",`transform: translateX(${"left"===this.direction?n:i}%); z-index: 1;`)}generatePager(){const t=this.pager instanceof NodeList?this.pager[0]:this.pager,e=this.container.children.length-1;let r,n;for(r=0;r<=e;r++)t.insertAdjacentHTML("beforeend",``);n=t instanceof NodeList?t[0].childNodes:t.childNodes,this.pages=Array.from(n),this.pages.length>e+1&&this.pages.shift(),this.pages[this.startAt].classList.add("page-active")}generateSlides(){const t=this.container;const e=t=>`${this.slides[t].alt}`,r=t=>`${this.slides[t].html}`;for(let n=0;n<=this.slides.length-1;n++)t.insertAdjacentHTML("beforeend",``),n===this.startAt&&t.children[n].classList.add("current-slide")}setActiveSlide(){null===this.slides?(this.container.children[this.startAt].classList.add("current-slide"),this.opts.beforeAnimation&&this.beforeAnimationStarts(),this.opts.afterAnimation&&this.afterAnimationEnds()):(this.slides[this.startAt].beforeAnimation&&this.beforeAnimationStarts(),this.slides[this.startAt].afterAnimation&&this.afterAnimationEnds())}};var a=class extends o{constructor(t){if(super(t),this.pause=!1,this.current_slide=this.startAt,this.next_slide=this.startAt,this.delay_timer=0,this.duration_timer=0,this.direction=null,this.dragable=!1,this.start_x=0,this.end_x=0,this.current_continue_from=0,this.next_continue_from=0,this.swipe_stopped=!1,this.mouseenter=!1,Array.isArray(this.slides)&&this.generateSlides(),this.pager&&(this.generatePager(),this.pages.forEach(t=>{t.addEventListener("click",this.onPagerClick.bind(this))})),this.setActiveSlide(),this.auto){this.delayTimer()}this.controllers&&this.controllers.forEach(t=>{t.addEventListener("click",this.shouldPause.bind(this))}),this.container.addEventListener("mouseenter",this.onMouseEnter.bind(this)),this.container.addEventListener("mouseleave",this.onMouseLeave.bind(this)),this.drag&&(this.container.addEventListener("mousedown",this.onSwipe.bind(this)),this.container.addEventListener("mousemove",this.onSwipeStart.bind(this),{passive:!0}),this.container.addEventListener("mouseup",this.onSwipeEnd.bind(this))),this.swipe&&(this.container.addEventListener("touchstart",this.onSwipe.bind(this),{passive:!0}),this.container.addEventListener("touchmove",this.onSwipeStart.bind(this),{passive:!0}),this.container.addEventListener("touchend",this.onSwipeEnd.bind(this)))}onSwipe(t){return this.mouseenter=!0,clearTimeout(this.delay_timer),clearTimeout(this.duration_timer),!this.pause&&!this.dragable&&((this.start_x-this.end_x==0||!this.swipe_stopped)&&(this.start_x=t.clientX||t.changedTouches[0].clientX,this.dragable=!0,void(this.current_slide=null===this.current_slide?0:null!==this.next_slide?this.next_slide:this.current_slide)))}onSwipeStart(t){const e=this.container.children.length-1;if(this.mouseenter=!0,this.swipe_stopped)return!1;let r=t.target.clientWidth||t.view.clientWidth;if(this.shouldInfinite(!1),this.dragable){this.end_x=t.pageX||t.changedTouches[0].clientX,this.direction=this.start_x-this.end_x>0?"left":"right",this.shouldInfinite(!1)||(this.current_continue_from=100*(this.end_x-this.start_x)/r,this.next_continue_from=100*(this.start_x-this.end_x)/r,"left"===this.direction&&(this.next_slide=this.current_slide-1<0?e:this.current_slide-1),"right"===this.direction&&(this.next_slide=this.current_slide+1>e?0:this.current_slide+1),this.swipeAnimation(this.current_continue_from,this.next_continue_from))}}onSwipeEnd(t){const e=this.container.children.length-1;if(this.dragable=!1,this.mouseenter=!1,this.current_slide===this.next_slide)return!1;if(this.swipe_stopped||0===this.end_x)return!1;if((this.start_x-this.end_x>100||this.start_x-this.end_x<-100)&&!this.swipe_stopped)this.beforeAnimationStarts(),this.doAnimation(null,this.current_continue_from,this.next_continue_from,!1).then(()=>{this.afterAnimationEnds(),this.end_x=0,this.start_x=0,"left"===this.direction&&(this.current_slide=this.current_slide-1==-1?e:this.current_slide-1),"right"===this.direction&&(this.current_slide=this.current_slide+1>e?0:this.current_slide+1);for(let t of this.container.children)t.hasAttribute("style")&&t.removeAttribute("style")});else{this.next_slide=this.current_slide,this.end_x=0,this.start_x=0;for(let t of this.container.children)t.hasAttribute("style")&&this.doAnimation(null,this.current_continue_from,this.next_continue_from,!0).then(()=>{this.end_x=0,this.start_x=0,t.removeAttribute("style"),this.pause=!1,this.shouldRestart()})}this.mouseenter=!1}beforeAnimationStarts(){this.pause=!0,this.pager&&this.setActivePage(),Array.isArray(this.slides)&&this.slides[this.next_slide].beforeAnimation&&this.slides[this.next_slide].beforeAnimation(this.container.children[this.next_slide],this.next_slide),this.opts.beforeAnimation&&this.opts.beforeAnimation(this.container.children[this.next_slide],this.next_slide)}shouldInfinite(t,e){if(!this.infinite){if(t){if("right"===this.autoDirection){return this.next_slide===this.container.children.length-1}if("left"===this.autoDirection){return 0===this.next_slide}}else if(e){if("right"===this.direction){return this.next_slide===this.container.children.length-1}if("left"===this.direction){return 0===this.next_slide}}else if(!t&&!e){if("right"===this.direction){return this.current_slide===this.container.children.length-1}if("left"===this.direction){return 0===this.current_slide}}return!1}}shouldRestart(){if(this.mouseenter)return!1;this.auto&&this.delayTimer()}afterAnimationEnds(t){this.swipe_stopped=!1,this.pause=!0,this.auto?Array.isArray(this.slides)?"function"==typeof this.slides[this.next_slide].afterAnimation?this.slides[this.next_slide].afterAnimation(this.container.children[this.next_slide],this.next_slide).then(()=>{this.pause=!1,this.shouldRestart()}):(this.pause=!1,this.shouldRestart()):this.opts.afterAnimation?this.opts.afterAnimation(this.container.children[this.next_slide],this.next_slide).then(t=>{this.pause=!1,this.shouldRestart()}):(this.pause=!1,this.shouldRestart()):this.pause=!1}onMouseEnter(){return this.pauseOnMouseEnter&&this.auto&&(clearTimeout(this.delay_timer),this.mouseenter=!0),!1}onMouseLeave(t){this.onSwipeEnd(t),this.auto&&(clearTimeout(this.duration_timer),clearTimeout(this.delay_timer),this.mouseenter=!1,this.delayTimer())}delayTimer(t){if(this.shouldInfinite(!0))return!1;this.pause||(this.delay_timer=setTimeout(()=>{this.autoDirection&&!this.mouseenter&&this.durationTimer()},this.delay))}durationTimer(){const t=this.shouldReset(this.autoDirection);if(this.mouseenter)return!1;this.pause||(this.duration_timer=setTimeout(()=>{if(this.delayTimer(),clearTimeout(this.delay_timer),!this.infinite&&t)return clearTimeout(this.delay_timer);this.mouseenter||this.autoControl()},this.duration))}getDirection(t){return t.path.filter(t=>{if(t.attributes)return t.hasAttribute("data-carousel-controller")})[0].attributes.getNamedItem("data-carousel-controller").value}shouldPause(t){const e=this.getDirection(t),r=this.shouldReset(e);return!this.pause&&(!r&&void this.onArrowClick(t))}shouldReset(t){let e=null!==this.container&&this.container.length-1;return!!e&&("left"===t&&this.next_slide-1==-1||"right"===t&&this.next_slide+1>e)}onArrowClick(t){const e=this.getDirection(t),r=this.container.children.length-1,n=null!==this.direction&&e!==this.direction;if(this.shouldInfinite(!1,!0)&&!n)return!1;this.mouseenter=!1,n&&this.next_slide!==this.current_slide&&(this.next_slide^=this.current_slide,this.current_slide^=this.next_slide,this.next_slide^=this.current_slide,this.next_slide===this.current_slide&&(this.next_slide="left"===e?this.current_slide-1:this.current_slide+1),this.direction=e),n&&this.next_slide===this.current_slide&&("left"===e&&null!==this.current_slide&&null!==this.next_slide&&(this.next_slide=this.current_slide-1==-1?r:this.current_slide-1),"right"===e&&null!==this.current_slide&&null!==this.next_slide&&(this.next_slide=this.current_slide+1>r?0:this.current_slide+1),this.direction=e),"left"!==e||n||(this.current_slide&&null===this.next_slide?this.next_slide=this.current_slide-1==-1?r:this.current_slide-1:this.next_slide===this.current_slide&&null!==this.current_slide&&null!==this.next_slide?this.next_slide=this.current_slide-1==-1?r:this.current_slide-1:(this.current_slide=null===this.current_slide?0:this.current_slide-1==-1?r:this.current_slide-1,this.next_slide=null===this.next_slide?r:0===this.current_slide?r:this.current_slide-1),this.direction=e),"right"!==e||n||(this.current_slide&&null===this.next_slide?this.next_slide=this.current_slide+1>r?0:this.current_slide+1:this.next_slide===this.current_slide&&null!==this.current_slide&&null!==this.next_slide?this.next_slide=this.current_slide+1>r?0:this.current_slide+1:(this.current_slide=null===this.current_slide?0:this.current_slide+1>r?0:this.current_slide+1,this.next_slide=null===this.next_slide?1:this.current_slide+1>r?0:this.current_slide+1),this.direction=e),this.beforeAnimationStarts(),this.doAnimation().then(()=>{this.afterAnimationEnds()})}onPagerClick(t){let e,r;if(t.preventDefault(),this.pause)return!1;if(t.target.id){if(e=parseInt(t.target.id),this.current_slide=null===this.current_slide?0:this.next_slide,this.next_slide=e,r=ee+1?0:this.current_slide+1))),"left"!==this.autoDirection||t?"right"!==this.autoDirection||t||(this.current_slide&&null===this.next_slide?this.next_slide=this.current_slide+1===e+1?0:this.current_slide+1:this.next_slide===this.current_slide&&null!==this.current_slide&&null!==this.next_slide?this.next_slide=this.current_slide+1===e+1?0:this.current_slide+1:(this.current_slide=null===this.current_slide?0:this.current_slide+1>e?0:this.current_slide+1,this.next_slide=null===this.next_slide?1:this.current_slide+1>e?0:this.current_slide+1)):this.current_slide&&null===this.next_slide?this.next_slide=this.current_slide-1==-1?e:this.current_slide-1:this.next_slide===this.current_slide&&null!==this.current_slide&&null!==this.next_slide?this.next_slide=this.current_slide-1==-1?e:this.current_slide-1:(this.current_slide=null===this.current_slide?0:this.current_slide-1==-1?e:this.current_slide-1,this.next_slide=null===this.next_slide?e:0===this.current_slide?e:this.current_slide-1),this.direction=this.autoDirection,this.beforeAnimationStarts(),void this.doAnimation(this.autoDirection).then(this.afterAnimationEnds.bind(this)))):(clearTimeout(this.delay_timer),!1)}};r(2);r.d(e,"default",(function(){return l})),n();class l extends a{constructor(t){super(t)}}}])["TidyCarousel.default"]})); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.TidyCarousel=e():t.TidyCarousel=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="./dist",r(r.s=0)}([function(t,e,r){t.exports=r(7)},function(t,e){var r,n;n={},function(t,e){function r(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=d}function n(){return t.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(e,n,i){var s=new r;return n&&(s.fill="both",s.duration="auto"),"number"!=typeof e||isNaN(e)?void 0!==e&&Object.getOwnPropertyNames(e).forEach((function(r){if("auto"!=e[r]){if(("number"==typeof s[r]||"duration"==r)&&("number"!=typeof e[r]||isNaN(e[r])))return;if("fill"==r&&-1==c.indexOf(e[r]))return;if("direction"==r&&-1==h.indexOf(e[r]))return;if("playbackRate"==r&&1!==e[r]&&t.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;s[r]=e[r]}})):s.duration=e,s}function s(t,e,r,n){return t<0||t>1||r<0||r>1?d:function(i){function s(t,e,r){return 3*t*(1-r)*(1-r)*r+3*e*(1-r)*r*r+r*r*r}if(i<=0){var o=0;return t>0?o=e/t:!e&&r>0&&(o=n/r),o*i}if(i>=1){var a=0;return r<1?a=(n-1)/(r-1):1==r&&t<1&&(a=(e-1)/(t-1)),1+a*(i-1)}for(var l=0,u=1;l=1)return 1;var n=1/t;return(r+=e*n)-r%n}}function a(t){_||(_=document.createElement("div").style),_.animationTimingFunction="",_.animationTimingFunction=t;var e=_.animationTimingFunction;if(""==e&&n())throw new TypeError(t+" is not a valid value for easing");return e}function l(t){if("linear"==t)return d;var e=b.exec(t);if(e)return s.apply(this,e.slice(1).map(Number));var r=y.exec(t);if(r)return o(Number(r[1]),m);var n=x.exec(t);return n?o(Number(n[1]),{start:f,middle:p,end:m}[n[2]]):g[t]||d}function u(t,e,r){if(null==e)return w;var n=r.delay+t+r.endDelay;return e=Math.min(r.delay+t,n)?A:E}var c="backwards|forwards|both|none".split("|"),h="reverse|alternate|alternate-reverse".split("|"),d=function(t){return t};r.prototype={_setMember:function(e,r){this["_"+e]=r,this._effect&&(this._effect._timingInput[e]=r,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&n())throw new TypeError("iterationStart must be a non-negative number, received: "+t);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&n())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=l(a(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&n())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var f=1,p=.5,m=0,g={ease:s(.25,.1,.25,1),"ease-in":s(.42,0,1,1),"ease-out":s(0,0,.58,1),"ease-in-out":s(.42,0,.58,1),"step-start":o(1,f),"step-middle":o(1,p),"step-end":o(1,m)},_=null,v="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",b=new RegExp("cubic-bezier\\("+v+","+v+","+v+","+v+"\\)"),y=/steps\(\s*(\d+)\s*\)/,x=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,w=0,T=1,A=2,E=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var r in t)e[r]=t[r];return e},t.makeTiming=i,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,r){return i(e=t.numericTimingToObject(e),r)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,r){var n=u(t,e,r),i=function(t,e,r,n,i){switch(n){case T:return"backwards"==e||"both"==e?0:null;case E:return r-i;case A:return"forwards"==e||"both"==e?t:null;case w:return null}}(t,r.fill,e,n,r.delay);if(null===i)return null;var s=function(t,e,r,n,i){var s=i;return 0===t?e!==T&&(s+=r):s+=n/t,s}(r.duration,n,r.iterations,i,r.iterationStart),o=function(t,e,r,n,i,s){var o=t===1/0?e%1:t%1;return 0!==o||r!==A||0===n||0===i&&0!==s||(o=1),o}(s,r.iterationStart,n,r.iterations,i,r.duration),a=function(t,e,r,n){return t===A&&e===1/0?1/0:1===r?Math.floor(n)-1:Math.floor(n)}(n,r.iterations,o,s),l=function(t,e,r){var n=t;if("normal"!==t&&"reverse"!==t){var i=e;"alternate-reverse"===t&&(i+=1),n="normal",i!==1/0&&i%2!=0&&(n="reverse")}return"normal"===n?r:1-r}(r.direction,a,o);return r._easingFunction(l)},t.calculatePhase=u,t.normalizeEasing=a,t.parseEasingFunction=l}(r={}),function(t,e){function r(t,e){return t in l&&l[t][e]||e}function n(t,e,n){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var i=s[t];if(i)for(var a in o.style[t]=e,i){var l=i[a],u=o.style[l];n[l]=r(l,u)}else n[t]=r(t,e)}}function i(t){var e=[];for(var r in t)if(!(r in["easing","offset","composite"])){var n=t[r];Array.isArray(n)||(n=[n]);for(var i,s=n.length,o=0;o1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==s||"accumulate"==s)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=s)throw new TypeError("Invalid composite mode "+s+".")}else s="easing"==i?t.normalizeEasing(s):""+s;n(i,s,r)}return null==r.offset&&(r.offset=null),null==r.easing&&(r.easing="linear"),r})),s=!0,o=-1/0,a=0;a=0&&t.offset<=1})),s||function(){var t=r.length;null==r[t-1].offset&&(r[t-1].offset=1),t>1&&null==r[0].offset&&(r[0].offset=0);for(var e=0,n=r[0].offset,i=1;i=t.applyFrom&&rthis._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,r){this._style[e]=r,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(r)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},a)n.prototype[u]=function(t,e){return function(){var r=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),r}}(u,u in l);for(var c in document.documentElement.style)c in o||c in a||function(t){r(n.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(c);t.apply=function(e,r,n){i(e),e.style._set(t.propertyName(r),n)},t.clear=function(e,r){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(r))}}(n),function(t){window.Element.prototype.animate=function(e,r){var n="";return r&&r.id&&(n=r.id),t.timeline._play(t.KeyframeEffect(this,e,r,n))}}(n),function(t,e){t.Interpolation=function(t,e,r){return function(n){return r(function t(e,r,n){if("number"==typeof e&&"number"==typeof r)return e*(1-n)+r*n;if("boolean"==typeof e&&"boolean"==typeof r)return n<.5?e:r;if(e.length==r.length){for(var i=[],s=0;s0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var r=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=r&&(this.currentTime=r)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var r=this._finishHandlers.indexOf(e);r>=0&&this._finishHandlers.splice(r,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new n(this,this._currentTime,t),r=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){r.forEach((function(t){t.call(e.target,e)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(r,n),function(t,e,r){function n(t){var e=u;u=[],t1e-4?(g=.5/Math.sqrt(v),_=[(d[2][1]-d[1][2])*g,(d[0][2]-d[2][0])*g,(d[1][0]-d[0][1])*g,.25/g]):d[0][0]>d[1][1]&&d[0][0]>d[2][2]?_=[.25*(g=2*Math.sqrt(1+d[0][0]-d[1][1]-d[2][2])),(d[0][1]+d[1][0])/g,(d[0][2]+d[2][0])/g,(d[2][1]-d[1][2])/g]:d[1][1]>d[2][2]?(g=2*Math.sqrt(1+d[1][1]-d[0][0]-d[2][2]),_=[(d[0][1]+d[1][0])/g,.25*g,(d[1][2]+d[2][1])/g,(d[0][2]-d[2][0])/g]):(g=2*Math.sqrt(1+d[2][2]-d[0][0]-d[1][1]),_=[(d[0][2]+d[2][0])/g,(d[1][2]+d[2][1])/g,.25*g,(d[1][0]-d[0][1])/g]),[h,f,p,_,u]}}();t.dot=r,t.makeMatrixDecomposition=function(t){return[a(o(t))]},t.transformListToMatrix=o}(n),function(t){function e(t,e){var r=t.exec(e);if(r)return[r=t.ignoreCase?r[0].toLowerCase():r[0],e.substr(r.length)]}function r(t,e){var r=t(e=e.replace(/^\s*/,""));if(r)return[r[0],r[1].replace(/^\s*/,"")]}function n(t,e,r,n,i){for(var s=[],o=[],a=[],l=function(t,e){for(var r=t,n=e;r&&n;)r>n?r%=n:n%=r;return t*e/(r+n)}(n.length,i.length),u=0;u=1?e:"visible"}]}),["visibility"])}(n),function(t,e){function r(t){t=t.trim(),s.fillStyle="#000",s.fillStyle=t;var e=s.fillStyle;if(s.fillStyle="#fff",s.fillStyle=t,e==s.fillStyle){s.fillRect(0,0,1,1);var r=s.getImageData(0,0,1,1).data;s.clearRect(0,0,1,1);var n=r[3]/255;return[r[0]*n,r[1]*n,r[2]*n,n]}}function n(e,r){return[e,r,function(e){function r(t){return Math.max(0,Math.min(255,t))}if(e[3])for(var n=0;n<3;n++)e[n]=Math.round(r(e[n]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var s=i.getContext("2d");t.addPropertiesHandler(r,n,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,r),t.mergeColors=n}(n),function(t,e){function r(t){function e(){var e=o.exec(t);s=e?e[0]:void 0}function r(){if("("!==s)return function(){var t=Number(s);return e(),t}();e();var t=i();return")"!==s?NaN:(e(),t)}function n(){for(var t=r();"*"===s||"/"===s;){var n=s;e();var i=r();"*"===n?t*=i:t/=i}return t}function i(){for(var t=n();"+"===s||"-"===s;){var r=s;e();var i=n();"+"===r?t+=i:t-=i}return t}var s,o=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),i()}function n(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){e=e.replace(/calc\(/g,"(");var n={};e=e.replace(t,(function(t){return n[t]=null,"U"+t}));for(var i="U("+t.source+")",s=e.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),o=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],a=0;a1?"calc("+r+")":r}]}var o="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",a=n.bind(null,new RegExp(o,"g")),l=n.bind(null,new RegExp(o+"|%","g")),u=n.bind(null,/deg|rad|grad|turn/g);t.parseLength=a,t.parseLengthOrPercent=l,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,l),t.parseAngle=u,t.mergeDimensions=s;var c=t.consumeParenthesised.bind(null,a),h=t.consumeRepeated.bind(void 0,c,/^/),d=t.consumeRepeated.bind(void 0,h,/^,/);t.consumeSizePairList=d;var f=t.mergeNestedRepeated.bind(void 0,i," "),p=t.mergeNestedRepeated.bind(void 0,f,",");t.mergeNonNegativeSizePair=f,t.addPropertiesHandler((function(t){var e=d(t);if(e&&""==e[1])return e[0]}),p,["background-size"]),t.addPropertiesHandler(l,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(l,s,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(n),function(t,e){function r(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function n(e){var n=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,r,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],e);if(n&&4==n[0].length)return n[0]}var i=t.mergeWrappedNestedRepeated.bind(null,(function(t){return"rect("+t+")"}),(function(e,r){return"auto"==e||"auto"==r?[!0,!1,function(n){var i=n?e:r;if("auto"==i)return"auto";var s=t.mergeDimensions(i,i);return s[2](s[0])}]:t.mergeDimensions(e,r)}),", ");t.parseBox=n,t.mergeBoxes=i,t.addPropertiesHandler(n,i,["clip"])}(n),function(t,e){function r(t){return function(e){var r=0;return t.map((function(t){return t===u?e[r++]:t}))}}function n(t){return t}function i(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var r,n=/\s*(\w+)\(([^)]*)\)/g,i=[],s=0;r=n.exec(e);){if(r.index!=s)return;s=r.index+r[0].length;var o=r[1],a=d[o];if(!a)return;var l=r[2].split(","),u=a[0];if(u.length900||e%100!=0))return e}),(function(t,r){return[t,r,e]}),["font-weight"])}(n),function(t){function e(t){var e={};for(var r in t)e[r]=-t[r];return e}function r(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function n(e,n){var i=t.consumeRepeated(r,/^/,n);if(i&&""==i[1]){var o=i[0];if(o[0]=o[0]||"center",o[1]=o[1]||"center",3==e&&(o[2]=o[2]||{px:0}),o.length==e){if(/top|bottom/.test(o[0])||/left|right/.test(o[1])){var a=o[0];o[0]=o[1],o[1]=a}if(/left|right|center|Object/.test(o[0])&&/top|bottom|center|Object/.test(o[1]))return o.map((function(t){return"object"==typeof t?t:s[t]}))}}}function i(n){var i=t.consumeRepeated(r,/^/,n);if(i){for(var o=i[0],a=[{"%":50},{"%":50}],l=0,u=!1,c=0;c=0&&this._cancelHandlers.splice(r,1)}else l.call(this,t,e)},s}}}(),function(t){var e=document.documentElement,r=null,n=!1;try{var i="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(r=e.animate({opacity:[i,i]},{duration:1})).currentTime=0,n=getComputedStyle(e).getPropertyValue("opacity")==i}catch(t){}finally{r&&r.cancel()}if(!n){var s=window.Element.prototype.animate;window.Element.prototype.animate=function(e,r){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),s.call(this,e,r)}}}(r)},function(t,e,r){var n=r(3);"string"==typeof n&&(n=[[t.i,n,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};r(5)(n,i);n.locals&&(t.exports=n.locals)},function(t,e,r){(t.exports=r(4)(!1)).push([t.i,'html,body{margin:0;padding:0}.current-slide{z-index:1}.page-active{background:#fff}.tidy__carousel-wrapper{position:relative;width:100%;height:100%}.tidy__carousel{position:relative;height:30vmin;width:100%;margin:0;padding:0;z-index:1;display:block;overflow:hidden}.tidy__carousel .tidy__carousel-slide{position:absolute;width:inherit;height:inherit;display:inline-block}.tidy__carousel .tidy__carousel-slide>*{width:inherit;height:inherit;display:block;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none}button.tidy__carousel-controller[data-carousel-controller]{position:absolute;transform:translateY(-50%);z-index:1000;top:50%;width:44px;height:44px;border-radius:50%;background:#fff;border:none;z-index:10;display:block;background:#fff;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none;outline:none;cursor:pointer}button.tidy__carousel-controller[data-carousel-controller] svg{position:absolute;left:20%;top:20%;width:60%;height:60%;cursor:pointer;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none}button.tidy__carousel-controller[data-carousel-controller~="left"]{left:10px}button.tidy__carousel-controller[data-carousel-controller~="right"]{right:10px}.tidy__carousel-pager[data-carousel-pager]{position:relative;margin:0;padding:0;z-index:100;width:100%;display:flex;align-items:center;justify-content:center;transform:translateY(-25px);user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none}.tidy__carousel-pager[data-carousel-pager] .tidy__carousel-pager--page{margin:0 5px;width:10px;height:10px;border-radius:100%;border:1px solid #f1f1f1;cursor:pointer;list-style-type:none;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none}\n',""])},function(t,e,r){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=function(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"==typeof btoa){var i=(o=n,a=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(l," */")),s=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot).concat(t," */")}));return[r].concat(s).concat([i]).join("\n")}var o,a,l;return[r].join("\n")}(e,t);return e[2]?"@media ".concat(e[2],"{").concat(r,"}"):r})).join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},i=0;i=0&&h.splice(e,1)}function _(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var n=function(){0;return r.nc}();n&&(t.attrs.nonce=n)}return v(e,t.attrs),m(t,e),e}function v(t,e){Object.keys(e).forEach((function(r){t.setAttribute(r,e[r])}))}function b(t,e){var r,n,i,s;if(e.transform&&t.css){if(!(s="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=s}if(e.singleton){var o=c++;r=u||(u=_(e)),n=w.bind(null,r,o,!1),i=w.bind(null,r,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",v(e,t.attrs),m(t,e),e}(e),n=A.bind(null,r,e),i=function(){g(r),r.href&&URL.revokeObjectURL(r.href)}):(r=_(e),n=T.bind(null,r),i=function(){g(r)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=o()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var r=p(t,e);return f(r,e),function(t){for(var n=[],i=0;i{"path"in Event.prototype||Object.defineProperty(Event.prototype,"path",{get:function(){const t=[];let e=this.target;for(;e;)t.push(e),e=e.parentElement;return-1===t.indexOf(window)&&-1===t.indexOf(document)&&t.push(document),-1===t.indexOf(window)&&t.push(window),t}})};var i=class{constructor(t){this.opts=t||{};for(let t in this.opts)t&&(this[t]=this.opts[t])}get name(){return void 0!==this.opts.name?this.opts.name:null}set name(t){if("string"!=typeof t)throw new TypeError(`Opts.name should be a string, but received instead ${typeof t}`);return t}get container(){const{opts:{container:t}}=this,e=this.name&&`[data-name="${this.name}"]`;switch(typeof t){case"string":return document.querySelector(`${t+(null!==e?e:"")}`);case"object":return t;default:return document.querySelector(`.tidy__carousel${null!==e?e:""}`)}}set container(t){let e;const r=this.name&&`[data-name="${this.name}"]`;switch(typeof t){case"string":if(null===(e=document.querySelector(t+(null!==r?r:""))))throw new TypeError(`Could not find any maching element for "${t}" with the name ${this.name}. Make sure the element is loaded before initializing.`);return e;case"object":if(null===t)throw new TypeError("Please make sure the container element is loaded before initialization.");if(!t instanceof HTMLElement)throw new TypeError("'container' should be a instance of an html element, but received instead other type of object.");if(!t.children.length>2)throw new Error(`The container should have at least two children elements but it has instead ${t.length}`);return t;default:throw new TypeError(`'"container" should be a string (pseudo selector) or boolean, received instead ${typeof t}'`)}}get slides(){if(!this.opts.slides&&!this.container.children.length)throw new Error("Can't find any slides");return this.opts.slides?this.opts.slides:null}set slides(t){if(!Array.isArray(t))throw new TypeError(`The slides it should be an array. Received instead ${typeof t}`);return t}get controllers(){const{opts:{controllers:t}}=this;let e,r=this.name&&`[data-for="${this.name}"]`;switch(typeof t){case"boolean":return e=document.querySelectorAll(`[data-carousel-controller]${null!==r?r:""}`),!!t&&e;case"string":return e=document.querySelectorAll(`${t+(null!==r?r:"")}`);case"object":return t instanceof HTMLCollection?Array.from(t):t;case"undefined":return e=null!==(e=document.querySelectorAll(`[data-carousel-controller]${null!==r?r:""}`))&&Array.from(e);default:throw new TypeError("controllers can only have the following types: string, array/Nodelist")}}set controllers(t){const{opts:{controllers:e}}=this;let r,n=this.name&&`[data-for="${this.name}"]`;switch(typeof t){case"boolean":if(r=document.querySelectorAll(`[carousel-controller]${null!==n?n:""}`),t&&!r.length)throw new TypeError("Could not find any element containing the attribute of carousel-controller. Bind this attribute [carousel-controller] to an element specify the value lef/right.");return!(!t||!r)&&r;case"string":if((r=document.querySelectorAll(`${e+(null!==n?n:"")}`)).length)return r.forEach(t=>{if(!t.hasAttribute("carousel-controller"))throw new TypeError("The controllers selected doesn't have the attribute 'carousel-controller'. Set this attribute to a string left/right");if(t.hasAttribute("carousel-controller")&&""===t.attributes["carousel-controller"].value)throw new TypeError("The controllers selected doesn't have the attribute 'carousel-controller'. Set this attribute to a string left/right")}),r;throw new TypeError("Could not find any element containing the attribute of carousel-controller. Bind this attribute [carousel-controller] to an element specify the value lef/right.");case"object":if(t instanceof NodeList||Array.isArray(t))return t;if(t instanceof HTMLCollection)return Array.from(t);throw new TypeError("controllers can only have the following types: string, array/Nodelist");default:throw new TypeError("controllers can only have the following types: string, array/Nodelist")}}get easing(){return this.opts.easing?this.opts.easing:"ease"}set easing(t){if("string"!=typeof t)throw new TypeError(`'easing' should be a string, received instead ${typeof t}`);return t}get duration(){return this.opts.duration?this.opts.duration:500}set duration(t){if("number"!=typeof t)throw new Error(`Type error: "duration" should be a number instead of ${typeof t}`);if(t<0)throw new Error(`Value error: "duration" should be a number > 0, but received instead ${t}`);return t}get delay(){return this.opts.delay?this.opts.delay:500}set delay(t){if("number"!=typeof t)throw new Error(`Type error: "duration" should be a number instead of ${typeof t}`);if(t<0)throw new Error(`Value error: "duration" should be a number > 0, but received instead ${t}`);return t}get infinite(){return void 0===this.opts.infinite||this.opts.infinite}set infinite(t){if("boolean"!=typeof t)throw new TypeError(`'infinite' option should be a boolean instead of ${typeof t}`);return t}get auto(){return void 0===this.opts.auto||this.opts.auto}set auto(t){if("object"==typeof t)return t.direction?(this.autoDirection=t.direction,t):t;if("boolean"==typeof t)return!0===t?(this.autoDirection="left",{direction:"left"}):(this.autoDirection=null,{direction:null});throw new Error(`Type error: "auto" should be a boolean or an object containing direction instead of ${typeof t}`)}get autoDirection(){return"object"==typeof this.auto?this.auto.direction:"boolean"==typeof this.auto?!0===this.auto?"left":null:void 0}set autoDirection(t){if(null===t)return!1;if("string"!=typeof t)throw new TypeError(`Direction should be a string, received ${typeof t}`);if(!t.toLowerCase().includes("left")&&!t.toLowerCase().includes("right"))throw new Error(`Value error: "direction" can be 'left' or 'right', received instead: ${t}`)}get startAt(){return void 0!==this.opts.startAt?this.opts.startAt:Array.isArray(this.slides)?this.slides.length-1:this.container.children.length-1!=-1?this.container.children.length-1:0}set startAt(t){if("number"!=typeof t)throw new TypeError(`'startAt' should be a number, received instead. ${typeof t}`);if(Array.isArray(this.slides)&&this.slides.length){if(t>=this.slides.length)throw new Error("'startAt' should be a number <= the total slides counting from 0.")}else if(t>=this.container.children.length)throw new Error("'startAt' should be a number <= the total slides counting from 0.");return t}get pager(){const{opts:t}=this;let e=this.name&&`[data-for="${this.name}"]`;switch(typeof t.pager){case"boolean":const r=document.querySelector(`ul[data-carousel-pager]${null!==e?e:""}`);return!(!t.pager||!r)&&r;case"object":let n=t.pager.container;if(n instanceof HTMLElement)return n||!1;if("object"==typeof n)throw new TypeError("Container should be a html element, but received instead an object");if("string"==typeof n){if(null!==(n=document.querySelector(n+(null!==e?e:""))))return n;throw new TypeError(`${n} wasn't found in the document. Make sure the element is available in the DOM before you give me the selector.`)}default:return t.pager}}set pager(t){const{opts:e}=this;let r=this.name&&`[data-for="${this.name}"]`;switch(typeof t){case"boolean":const n=document.querySelector(`ul[data-carousel-pager]${null!==r?r:""}`);return!(!e.pager||!n)&&n;case"object":if(t.container){const e=t.container;return(e instanceof NodeList&&e.length>0||e instanceof HTMLElement)&&e}throw new TypeError(`Pager should be an object containing the container or a string, received instead ${typeof t}.`);default:throw new TypeError(`Pager should be an object containing the container or a string, received instead ${typeof t}.`)}}get pauseOnMouseEnter(){return"boolean"!=typeof this.opts.pauseOnMouseEnter||this.opts.pauseOnMouseEnter}set pauseOnMouseEnter(t){if("boolean"!=typeof t)throw new Error("Value error: warns can only be false or true");return t}get swipe(){return!this.opts.swipe||this.opts.swipe}set swipe(t){if("boolean"!=typeof t)throw new TypeError(`'swipe' should be a boolean, received instead ${typeof t}`);return t}get drag(){return!this.opts.drag||this.opts.drag}set drag(t){if("boolean"!=typeof t)throw new TypeError(`'drag' should be a boolean instead of ${typeof t}`);return t}};r(1);const s=(t,e,r)=>{return new Promise((n,i)=>{for(let s in t)if(void 0!==t[s].animate){const o=t[s].animate([e[s].from,e[s].to],r);o.onfinish=t=>{n(t)},o.onCancel=t=>{i(t)}}else setTimeout(()=>{n()},r.duration)})};var o=class extends i{constructor(t){super(t),this.pages=[]}setActivePage(){this.pages[this.current_slide].classList.remove("page-active"),this.pages[this.next_slide].classList.add("page-active")}doAnimation(t,e,r,n){const i=this.container.children.length-1;let o=t||this.direction,a=null;n&&("left"===this.direction&&(a=this.current_slide-1==-1?i:this.current_slide-1),"right"===this.direction&&(a=this.current_slide+1>i?0:this.current_slide+1));let l={current_slide:this.container.children[this.current_slide],next_slide:this.container.children[null!==a?a:this.next_slide]};const u={easing:this.easing,duration:n?this.duration/2:this.duration};this.direction;const c={current_slide:{from:{transform:`translateX(${e||0}%)`,zIndex:"2"},to:{transform:`translateX(${n?0:"left"===o?-100:100}%)`,zIndex:"2"}},next_slide:{from:{transform:`translateX(${r&&"left"===o?100-r:r&&"right"===o?e-100:"left"!==o||r?-100:100}%)`,zIndex:"1"},to:{transform:`translateX(${n&&"right"===o?-100:n&&"left"===o?100:0}%)`,zIndex:"1"}}};return n||(this.swipe_stopped=!0,this.container.children[this.current_slide].classList.remove("current-slide"),this.container.children[this.next_slide].classList.add("current-slide")),s(l,c,u)}swipeAnimation(t,e){let r=100+e,n=100-e,i=-Math.abs(r);this.container.children[this.current_slide].setAttribute("style",`transform: translateX(${t}%); z-index: 2;`),this.container.children[this.next_slide].setAttribute("style",`transform: translateX(${"left"===this.direction?n:i}%); z-index: 1;`)}generatePager(){const t=this.pager instanceof NodeList?this.pager[0]:this.pager,e=this.container.children.length-1;let r,n;for(r=0;r<=e;r++)t.insertAdjacentHTML("beforeend",``);n=t instanceof NodeList?t[0].childNodes:t.childNodes,this.pages=Array.from(n),this.pages.length>e+1&&this.pages.shift(),this.pages[this.startAt].classList.add("page-active")}generateSlides(){const t=this.container;const e=t=>`${this.slides[t].alt}`,r=t=>`${this.slides[t].html}`;for(let n=0;n<=this.slides.length-1;n++)t.insertAdjacentHTML("beforeend",``),n===this.startAt&&t.children[n].classList.add("current-slide")}setActiveSlide(){null===this.slides?(this.container.children[this.startAt].classList.add("current-slide"),this.opts.beforeAnimation&&this.beforeAnimationStarts(),this.opts.afterAnimation&&this.afterAnimationEnds()):(this.slides[this.startAt].beforeAnimation&&this.beforeAnimationStarts(),this.slides[this.startAt].afterAnimation&&this.afterAnimationEnds())}};var a=class extends o{constructor(t){if(super(t),this.pause=!1,this.current_slide=this.startAt,this.next_slide=this.startAt,this.delay_timer=0,this.duration_timer=0,this.direction=null,this.dragable=!1,this.start_x=0,this.end_x=0,this.current_continue_from=0,this.next_continue_from=0,this.swipe_stopped=!1,this.mouseenter=!1,Array.isArray(this.slides)&&this.generateSlides(),this.pager&&(this.generatePager(),this.pages.forEach(t=>{t.addEventListener("click",this.onPagerClick.bind(this))})),this.setActiveSlide(),this.auto){this.delayTimer()}this.controllers&&this.controllers.forEach(t=>{t.addEventListener("click",this.shouldPause.bind(this))}),this.container.addEventListener("mouseenter",this.onMouseEnter.bind(this)),this.container.addEventListener("mouseleave",this.onMouseLeave.bind(this)),this.drag&&(this.container.addEventListener("mousedown",this.onSwipe.bind(this)),this.container.addEventListener("mousemove",this.onSwipeStart.bind(this),{passive:!0}),this.container.addEventListener("mouseup",this.onSwipeEnd.bind(this))),this.swipe&&(this.container.addEventListener("touchstart",this.onSwipe.bind(this),{passive:!0}),this.container.addEventListener("touchmove",this.onSwipeStart.bind(this),{passive:!0}),this.container.addEventListener("touchend",this.onSwipeEnd.bind(this)))}onSwipe(t){return this.mouseenter=!0,clearTimeout(this.delay_timer),clearTimeout(this.duration_timer),!this.pause&&!this.dragable&&((this.start_x-this.end_x==0||!this.swipe_stopped)&&(this.start_x=t.clientX||t.changedTouches[0].clientX,this.dragable=!0,void(this.current_slide=null===this.current_slide?0:null!==this.next_slide?this.next_slide:this.current_slide)))}onSwipeStart(t){const e=this.container.children.length-1;if(this.mouseenter=!0,this.swipe_stopped)return!1;let r=t.target.clientWidth||t.view.clientWidth;if(this.shouldInfinite(!1),this.dragable){this.end_x=t.pageX||t.changedTouches[0].clientX,this.direction=this.start_x-this.end_x>0?"left":"right",this.shouldInfinite(!1)||(this.current_continue_from=100*(this.end_x-this.start_x)/r,this.next_continue_from=100*(this.start_x-this.end_x)/r,"left"===this.direction&&(this.next_slide=this.current_slide-1<0?e:this.current_slide-1),"right"===this.direction&&(this.next_slide=this.current_slide+1>e?0:this.current_slide+1),this.swipeAnimation(this.current_continue_from,this.next_continue_from))}}onSwipeEnd(t){const e=this.container.children.length-1;if(this.dragable=!1,this.mouseenter=!1,this.current_slide===this.next_slide)return!1;if(this.swipe_stopped||0===this.end_x)return!1;if((this.start_x-this.end_x>100||this.start_x-this.end_x<-100)&&!this.swipe_stopped)this.beforeAnimationStarts(),this.doAnimation(null,this.current_continue_from,this.next_continue_from,!1).then(()=>{this.afterAnimationEnds(),this.end_x=0,this.start_x=0,"left"===this.direction&&(this.current_slide=this.current_slide-1==-1?e:this.current_slide-1),"right"===this.direction&&(this.current_slide=this.current_slide+1>e?0:this.current_slide+1);for(let t of this.container.children)t.hasAttribute("style")&&t.removeAttribute("style")});else{this.next_slide=this.current_slide,this.end_x=0,this.start_x=0;for(let t of this.container.children)t.hasAttribute("style")&&this.doAnimation(null,this.current_continue_from,this.next_continue_from,!0).then(()=>{this.end_x=0,this.start_x=0,t.removeAttribute("style"),this.pause=!1,this.shouldRestart()})}this.mouseenter=!1}beforeAnimationStarts(){this.pause=!0,this.pager&&this.setActivePage(),Array.isArray(this.slides)&&this.slides[this.next_slide].beforeAnimation&&this.slides[this.next_slide].beforeAnimation(this.container.children[this.next_slide],this.next_slide),this.opts.beforeAnimation&&this.opts.beforeAnimation(this.container.children[this.next_slide],this.next_slide)}shouldInfinite(t,e){if(!this.infinite){if(t){if("right"===this.autoDirection){return this.next_slide===this.container.children.length-1}if("left"===this.autoDirection){return 0===this.next_slide}}else if(e){if("right"===this.direction){return this.next_slide===this.container.children.length-1}if("left"===this.direction){return 0===this.next_slide}}else if(!t&&!e){if("right"===this.direction){return this.current_slide===this.container.children.length-1}if("left"===this.direction){return 0===this.current_slide}}return!1}}shouldRestart(){if(this.mouseenter)return!1;this.auto&&this.delayTimer()}afterAnimationEnds(t){this.swipe_stopped=!1,this.pause=!0,this.auto?Array.isArray(this.slides)?"function"==typeof this.slides[this.next_slide].afterAnimation?this.slides[this.next_slide].afterAnimation(this.container.children[this.next_slide],this.next_slide).then(()=>{this.pause=!1,this.shouldRestart()}):(this.pause=!1,this.shouldRestart()):this.opts.afterAnimation?this.opts.afterAnimation(this.container.children[this.next_slide],this.next_slide).then(t=>{this.pause=!1,this.shouldRestart()}):(this.pause=!1,this.shouldRestart()):this.pause=!1}onMouseEnter(){return this.pauseOnMouseEnter&&this.auto&&(clearTimeout(this.delay_timer),this.mouseenter=!0),!1}onMouseLeave(t){this.onSwipeEnd(t),this.auto&&(clearTimeout(this.duration_timer),clearTimeout(this.delay_timer),this.mouseenter=!1,this.delayTimer())}delayTimer(t){if(this.shouldInfinite(!0))return!1;this.pause||(this.delay_timer=setTimeout(()=>{this.autoDirection&&!this.mouseenter&&this.durationTimer()},this.delay))}durationTimer(){const t=this.shouldReset(this.autoDirection);if(this.mouseenter)return!1;this.pause||(this.duration_timer=setTimeout(()=>{if(this.delayTimer(),clearTimeout(this.delay_timer),!this.infinite&&t)return clearTimeout(this.delay_timer);this.mouseenter||this.autoControl()},this.duration))}getDirection(t){return t.path.filter(t=>{if(t.attributes)return t.hasAttribute("data-carousel-controller")})[0].attributes.getNamedItem("data-carousel-controller").value}shouldPause(t){const e=this.getDirection(t),r=this.shouldReset(e);return!this.pause&&(!r&&void this.onArrowClick(t))}shouldReset(t){let e=null!==this.container&&this.container.length-1;return!!e&&("left"===t&&this.next_slide-1==-1||"right"===t&&this.next_slide+1>e)}onArrowClick(t){const e=this.getDirection(t),r=this.container.children.length-1,n=null!==this.direction&&e!==this.direction;if(this.shouldInfinite(!1,!0)&&!n)return!1;this.mouseenter=!1,n&&this.next_slide!==this.current_slide&&(this.next_slide^=this.current_slide,this.current_slide^=this.next_slide,this.next_slide^=this.current_slide,this.next_slide===this.current_slide&&(this.next_slide="left"===e?this.current_slide-1:this.current_slide+1),this.direction=e),n&&this.next_slide===this.current_slide&&("left"===e&&null!==this.current_slide&&null!==this.next_slide&&(this.next_slide=this.current_slide-1==-1?r:this.current_slide-1),"right"===e&&null!==this.current_slide&&null!==this.next_slide&&(this.next_slide=this.current_slide+1>r?0:this.current_slide+1),this.direction=e),"left"!==e||n||(this.current_slide&&null===this.next_slide?this.next_slide=this.current_slide-1==-1?r:this.current_slide-1:this.next_slide===this.current_slide&&null!==this.current_slide&&null!==this.next_slide?this.next_slide=this.current_slide-1==-1?r:this.current_slide-1:(this.current_slide=null===this.current_slide?0:this.current_slide-1==-1?r:this.current_slide-1,this.next_slide=null===this.next_slide?r:0===this.current_slide?r:this.current_slide-1),this.direction=e),"right"!==e||n||(this.current_slide&&null===this.next_slide?this.next_slide=this.current_slide+1>r?0:this.current_slide+1:this.next_slide===this.current_slide&&null!==this.current_slide&&null!==this.next_slide?this.next_slide=this.current_slide+1>r?0:this.current_slide+1:(this.current_slide=null===this.current_slide?0:this.current_slide+1>r?0:this.current_slide+1,this.next_slide=null===this.next_slide?1:this.current_slide+1>r?0:this.current_slide+1),this.direction=e),this.beforeAnimationStarts(),this.doAnimation().then(()=>{this.afterAnimationEnds()})}onPagerClick(t){let e,r;if(t.preventDefault(),this.pause)return!1;if(t.target.id){if(e=parseInt(t.target.id),this.current_slide=null===this.current_slide?0:this.next_slide,this.next_slide=e,r=ee+1?0:this.current_slide+1))),"left"!==this.autoDirection||t?"right"!==this.autoDirection||t||(this.current_slide&&null===this.next_slide?this.next_slide=this.current_slide+1===e+1?0:this.current_slide+1:this.next_slide===this.current_slide&&null!==this.current_slide&&null!==this.next_slide?this.next_slide=this.current_slide+1===e+1?0:this.current_slide+1:(this.current_slide=null===this.current_slide?0:this.current_slide+1>e?0:this.current_slide+1,this.next_slide=null===this.next_slide?1:this.current_slide+1>e?0:this.current_slide+1)):this.current_slide&&null===this.next_slide?this.next_slide=this.current_slide-1==-1?e:this.current_slide-1:this.next_slide===this.current_slide&&null!==this.current_slide&&null!==this.next_slide?this.next_slide=this.current_slide-1==-1?e:this.current_slide-1:(this.current_slide=null===this.current_slide?0:this.current_slide-1==-1?e:this.current_slide-1,this.next_slide=null===this.next_slide?e:0===this.current_slide?e:this.current_slide-1),this.direction=this.autoDirection,this.beforeAnimationStarts(),void this.doAnimation(this.autoDirection).then(this.afterAnimationEnds.bind(this)))):(clearTimeout(this.delay_timer),!1)}};r(2);r.d(e,"default",(function(){return l})),n();class l extends a{constructor(t){super(t)}}}]).default})); \ No newline at end of file