text: function warn(t){console.error("[Glide warn]: "+t)}function toInt(t){return parseInt(t)}function toFloat(t){return parseFloat(t)}function isString(t){return"string"==typeof t}function isObject(t){var e=void 0===t?"undefined":_typeof(t);return"function"===e||"object"===e&&!!t}function isFunction(t){return"function"==typeof t}function isUndefined(t){return void 0===t}function isArray(t){return t.constructor===Array}function mount(t,e,n){var i={};for(var s in e)isFunction(e[s])?i[s]=e[s](t,i,n):warn("Extension must be a function");for(var r in i)isFunction(i[r].mount)&&i[r].mount();return i}function define(t,e,n){Object.defineProperty(t,e,n)}function sortKeys(t){return Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e[n],e},{})}function mergeOptions(t,e){var n=_extends({},t,e);return e.hasOwnProperty("classes")&&(n.classes=_extends({},t.classes,e.classes),e.classes.hasOwnProperty("direction")&&(n.classes.direction=_extends({},t.classes.direction,e.classes.direction)),e.classes.hasOwnProperty("type")&&(n.classes.type=_extends({},t.classes.type,e.classes.type)),e.classes.hasOwnProperty("slide")&&(n.classes.slide=_extends({},t.classes.slide,e.classes.slide)),e.classes.hasOwnProperty("arrow")&&(n.classes.arrow=_extends({},t.classes.arrow,e.classes.arrow)),e.classes.hasOwnProperty("nav")&&(n.classes.nav=_extends({},t.classes.nav,e.classes.nav))),e.hasOwnProperty("breakpoints")&&(n.breakpoints=_extends({},t.breakpoints,e.breakpoints)),n}function Run(t,e,n){var i={mount:function(){this._o=!1},make:function(i){var s=this;t.disabled||(!t.settings.waitForTransition||t.disable(),this.move=i,n.emit("run.before",this.move),this.calculate(),n.emit("run",this.move),e.Transition.after(function(){s.isStart()&&n.emit("run.start",s.move),s.isEnd()&&n.emit("run.end",s.move),s.isOffset()&&(s._o=!1,n.emit("run.offset",s.move)),n.emit("run.after",s.move),t.enable()}))},calculate:function(){var e=this.move,n=this.length,s=e.steps,r=e.direction,o=1;if("="!==r)if(">"!==r||">"!==s)if("<"!==r||"<"!==s){if("|"===r&&(o=t.settings.perView||1),">"===r||"|"===r&&">"===s){var a=function(e){var n=t.index;return t.isType("carousel")?n+e:n+(e-n%e)}(o);return a>n&&(this._o=!0),void(t.index=function(e,n){var s=i.length;return e>s?t.isType("carousel")?e-(s+1):t.settings.rewind?i.isBound()&&!i.isEnd()?s:0:i.isBound()?s:Math.floor(s/n)*n:e}(a,o))}if("<"===r||"|"===r&&"<"===s){var u=function(e){var n=t.index;return t.isType("carousel")?n-e:(Math.ceil(n/e)-1)*e}(o);return 0>u&&(this._o=!0),void(t.index=function(e,n){var s=i.length;return 0>e?t.isType("carousel")?e+(s+1):t.settings.rewind?i.isBound()&&i.isStart()?s:Math.floor(s/n)*n:0:e}(u,o))}warn("Invalid direction pattern ["+r+s+"] has been used")}else t.index=0;else t.index=n;else t.index=s},isStart:function(){return 0>=t.index},isEnd:function(){return t.index>=this.length},isOffset:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return t?!!this._o&&("|>"===t?"|"===this.move.direction&&">"===this.move.steps:"|<"===t?"|"===this.move.direction&&"<"===this.move.steps:this.move.direction===t):this._o},isBound:function(){return t.isType("slider")&&"center"!==t.settings.focusAt&&t.settings.bound}};return define(i,"move",{get:function(){return this._m},set:function(t){var e=t.substr(1);this._m={direction:t.substr(0,1),steps:e?toInt(e)?toInt(e):e:0}}}),define(i,"length",{get:function(){var n=t.settings,i=e.Html.slides.length;return this.isBound()?i-1-(toInt(n.perView)-1)+toInt(n.focusAt):i-1}}),define(i,"offset",{get:function(){return this._o}}),i}function now(){return(new Date).getTime()}function throttle(t,e,n){var i=void 0,s=void 0,r=void 0,o=void 0,a=0;n||(n={});var u=function(){a=!1===n.leading?0:now(),i=null,o=t.apply(s,r),i||(s=r=null)},c=function(){var c=now();a||!1!==n.leading||(a=c);var l=e-(c-a);return s=this,r=arguments,0>=l||l>e?(i&&(clearTimeout(i),i=null),a=c,o=t.apply(s,r),i||(s=r=null)):i||!1===n.trailing||(i=setTimeout(u,l)),o};return c.cancel=function(){clearTimeout(i),a=0,i=s=r=null},c}function Gaps(t,e,n){var i={apply:function(t){for(var n=0,i=t.length;i>n;n++){var s=t[n].style,r=e.Direction.value;s[MARGIN_TYPE[r][0]]=0!==n?this.value/2+"px":"",n!==t.length-1?s[MARGIN_TYPE[r][1]]=this.value/2+"px":s[MARGIN_TYPE[r][1]]=""}},remove:function(t){for(var e=0,n=t.length;n>e;e++){var i=t[e].style;i.marginLeft="",i.marginRight=""}}};return define(i,"value",{get:function(){return toInt(t.settings.gap)}}),define(i,"grow",{get:function(){return i.value*e.Sizes.length}}),define(i,"reductor",{get:function(){var e=t.settings.perView;return i.value*(e-1)/e}}),n.on(["build.after","update"],throttle(function(){i.apply(e.Html.wrapper.children)},30)),n.on("destroy",function(){i.remove(e.Html.wrapper.children)}),i}function siblings(t){if(t&&t.parentNode){for(var e=t.parentNode.firstChild,n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}return[]}function exist(t){return!!(t&&t instanceof window.HTMLElement)}function Html(t,e){var n={mount:function(){this.root=t.selector,this.track=this.root.querySelector(TRACK_SELECTOR),this.slides=Array.prototype.slice.call(this.wrapper.children).filter(function(e){return!e.classList.contains(t.settings.classes.slide.clone)})}};return define(n,"root",{get:function(){return n._r},set:function(t){isString(t)&&(t=document.querySelector(t)),exist(t)?n._r=t:warn("Root element must be a existing Html node")}}),define(n,"track",{get:function(){return n._t},set:function(t){exist(t)?n._t=t:warn("Could not find track element. Please use "+TRACK_SELECTOR+" attribute.")}}),define(n,"wrapper",{get:function(){return n.track.children[0]}}),n}function Peek(t,e,n){var i={mount:function(){this.value=t.settings.peek}};return define(i,"value",{get:function(){return i._v},set:function(t){isObject(t)?(t.before=toInt(t.before),t.after=toInt(t.after)):t=toInt(t),i._v=t}}),define(i,"reductor",{get:function(){var e=i.value,n=t.settings.perView;return isObject(e)?e.before/n+e.after/n:2*e/n}}),n.on(["resize","update"],function(){i.mount()}),i}function Move(t,e,n){var i={mount:function(){this._o=0},make:function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.offset=i,n.emit("move",{movement:this.value}),e.Transition.after(function(){n.emit("move.after",{movement:t.value})})}};return define(i,"offset",{get:function(){return i._o},set:function(t){i._o=isUndefined(t)?0:toInt(t)}}),define(i,"translate",{get:function(){return e.Sizes.slideWidth*t.index}}),define(i,"value",{get:function(){var t=this.offset,n=this.translate;return e.Direction.is("rtl")?n+t:n-t}}),n.on(["build.before","run"],function(){i.make()}),i}function Sizes(t,e,n){var i={setupSlides:function(){for(var t=this.slideWidth+"px",n=e.Html.slides,i=0;i<n.length;i++)n[i].style.width=t},setupWrapper:function(){e.Html.wrapper.style.width=this.wrapperSize+"px"},remove:function(){for(var t=e.Html.slides,n=0;n<t.length;n++)t[n].style.width="";e.Html.wrapper.style.width=""}};return define(i,"length",{get:function(){return e.Html.slides.length}}),define(i,"width",{get:function(){return e.Html.root.offsetWidth}}),define(i,"wrapperSize",{get:function(){return i.slideWidth*i.length+e.Gaps.grow+e.Clones.grow}}),define(i,"slideWidth",{get:function(){return i.width/t.settings.perView-e.Peek.reductor-e.Gaps.reductor}}),n.on(["build.before","resize","update"],function(){i.setupSlides(),i.setupWrapper()}),n.on("destroy",function(){i.remove()}),i}function Build(t,e,n){var i={mount:function(){n.emit("build.before"),this.typeClass(),this.activeClass(),n.emit("build.after")},typeClass:function(){e.Html.root.classList.add(t.settings.classes.type[t.settings.type])},activeClass:function(){var n=t.settings.classes,i=e.Html.slides[t.index];i&&(i.classList.add(n.slide.active),siblings(i).forEach(function(t){t.classList.remove(n.slide.active)}))},removeClasses:function(){var n=t.settings.classes,i=n.type,s=n.slide;e.Html.root.classList.remove(i[t.settings.type]),e.Html.slides.forEach(function(t){t.classList.remove(s.active)})}};return n.on(["destroy","update"],function(){i.removeClasses()}),n.on(["resize","update"],function(){i.mount()}),n.on("move.after",function(){i.activeClass()}),i}function Clones(t,e,n){var i={mount:function(){this.items=[],t.isType("carousel")&&(this.items=this.collect())},collect:function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=e.Html.slides,s=t.settings,r=s.perView,o=s.classes,a=r+ +!!t.settings.peek+Math.round(r/2),u=i.slice(0,a).reverse(),c=i.slice(-1*a),l=0;l<Math.max(1,Math.floor(r/i.length));l++){for(var f=0;f<u.length;f++){var d=u[f].cloneNode(!0);d.classList.add(o.slide.clone),n.push(d)}for(var h=0;h<c.length;h++){var v=c[h].cloneNode(!0);v.classList.add(o.slide.clone),n.unshift(v)}}return n},append:function(){for(var t=this.items,n=e.Html,i=n.wrapper,s=n.slides,r=Math.floor(t.length/2),o=t.slice(0,r).reverse(),a=t.slice(-1*r).reverse(),u=e.Sizes.slideWidth+"px",c=0;c<a.length;c++)i.appendChild(a[c]);for(var l=0;l<o.length;l++)i.insertBefore(o[l],s[0]);for(var f=0;f<t.length;f++)t[f].style.width=u},remove:function(){for(var t=this.items,n=0;n<t.length;n++)e.Html.wrapper.removeChild(t[n])}};return define(i,"grow",{get:function(){return(e.Sizes.slideWidth+e.Gaps.value)*i.items.length}}),n.on("update",function(){i.remove(),i.mount(),i.append()}),n.on("build.before",function(){t.isType("carousel")&&i.append()}),n.on("destroy",function(){i.remove()}),i}function Resize(t,e,n){var i=new EventsBinder,s={mount:function(){this.bind()},bind:function(){i.on("resize",window,throttle(function(){n.emit("resize")},t.settings.throttle))},unbind:function(){i.off("resize",window)}};return n.on("destroy",function(){s.unbind(),i.destroy()}),s}function Direction(t,e,n){var i={mount:function(){this.value=t.settings.direction},resolve:function(t){var e=t.slice(0,1);return this.is("rtl")?t.split(e).join(FLIPED_MOVEMENTS[e]):t},is:function(t){return this.value===t},addClass:function(){e.Html.root.classList.add(t.settings.classes.direction[this.value])},removeClass:function(){e.Html.root.classList.remove(t.settings.classes.direction[this.value])}};return define(i,"value",{get:function(){return i._v},set:function(t){VALID_DIRECTIONS.indexOf(t)>-1?i._v=t:warn("Direction value must be `ltr` or `rtl`")}}),n.on(["destroy","update"],function(){i.removeClass()}),n.on("update",function(){i.mount()}),n.on(["build.before","update"],function(){i.addClass()}),i}function Rtl(t,e){return{modify:function(t){return e.Direction.is("rtl")?-t:t}}}function Gap(t,e){return{modify:function(t){var n=Math.floor(t/e.Sizes.slideWidth);return t+e.Gaps.value*n}}}function Grow(t,e){return{modify:function(t){return t+e.Clones.grow/2}}}function Peeking(t,e){return{modify:function(n){if(t.settings.focusAt>=0){var i=e.Peek.value;return isObject(i)?n-i.before:n-i}return n}}}function Focusing(t,e){return{modify:function(n){var i=e.Gaps.value,s=e.Sizes.width,r=t.settings.focusAt,o=e.Sizes.slideWidth;return"center"===r?n-(s/2-o/2):n-o*r-i*r}}}function mutator(t,e,n){var i=[Gap,Grow,Peeking,Focusing].concat(t._t,[Rtl]);return{mutate:function(s){for(var r=0;r<i.length;r++){var o=i[r];isFunction(o)&&isFunction(o().modify)?s=o(t,e,n).modify(s):warn("Transformer should be a function that returns an object with `modify()` method")}return s}}}function Translate(t,e,n){var i={set:function(n){var i=mutator(t,e).mutate(n);e.Html.wrapper.style.transform="translate3d("+-1*i+"px, 0px, 0px)"},remove:function(){e.Html.wrapper.style.transform=""},getStartIndex:function(){var n=e.Sizes.length,i=t.index,s=t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?n+(i-s):(i+s)%n},getTravelDistance:function(){var n=e.Sizes.slideWidth*t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?-1*n:n}};return n.on("move",function(s){if(!t.isType("carousel")||!e.Run.isOffset())return i.set(s.movement);e.Transition.after(function(){n.emit("translate.jump"),i.set(e.Sizes.slideWidth*t.index)});var r=e.Sizes.slideWidth*e.Translate.getStartIndex();return i.set(r-e.Translate.getTravelDistance())}),n.on("destroy",function(){i.remove()}),i}function Transition(t,e,n){var i=!1,s={compose:function(e){var n=t.settings;return i?e+" 0ms "+n.animationTimingFunc:e+" "+this.duration+"ms "+n.animationTimingFunc},set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";e.Html.wrapper.style.transition=this.compose(t)},remove:function(){e.Html.wrapper.style.transition=""},after:function(t){setTimeout(function(){t()},this.duration)},enable:function(){i=!1,this.set()},disable:function(){i=!0,this.set()}};return define(s,"duration",{get:function(){var n=t.settings;return t.isType("slider")&&e.Run.offset?n.rewindDuration:n.animationDuration}}),n.on("move",function(){s.set()}),n.on(["build.before","resize","translate.jump"],function(){s.disable()}),n.on("run",function(){s.enable()}),n.on("destroy",function(){s.remove()}),s}function Swipe(t,e,n){var i=new EventsBinder,s=0,r=0,o=0,a=!1,u=!!supportsPassive$1&&{passive:!0},c={mount:function(){this.bindSwipeStart()},start:function(e){if(!a&&!t.disabled){this.disable();var i=this.touches(e);s=null,r=toInt(i.pageX),o=toInt(i.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),n.emit("swipe.start")}},move:function(i){if(!t.disabled){var a=t.settings,u=a.touchAngle,c=a.touchRatio,l=a.classes,f=this.touches(i),d=toInt(f.pageX)-r,h=toInt(f.pageY)-o,v=Math.abs(d<<2),p=Math.abs(h<<2),m=Math.sqrt(v+p);if(180*(s=Math.asin(Math.sqrt(p)/m))/Math.PI>=u)return!1;i.stopPropagation(),e.Move.make(d*toFloat(c)),e.Html.root.classList.add(l.dragging),n.emit("swipe.move")}},end:function(i){if(!t.disabled){var o=t.settings,a=o.perSwipe,u=o.touchAngle,c=o.classes,l=this.touches(i),f=this.threshold(i),d=l.pageX-r,h=180*s/Math.PI;this.enable(),d>f&&u>h?e.Run.make(e.Direction.resolve(a+"<")):-f>d&&u>h?e.Run.make(e.Direction.resolve(a+">")):e.Move.make(),e.Html.root.classList.remove(c.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),n.emit("swipe.end")}},bindSwipeStart:function(){var n=this,s=t.settings,r=s.swipeThreshold,o=s.dragThreshold;r&&i.on(START_EVENTS[0],e.Html.wrapper,function(t){n.start(t)},u),o&&i.on(START_EVENTS[1],e.Html.wrapper,function(t){n.start(t)},u)},unbindSwipeStart:function(){i.off(START_EVENTS[0],e.Html.wrapper,u),i.off(START_EVENTS[1],e.Html.wrapper,u)},bindSwipeMove:function(){var n=this;i.on(MOVE_EVENTS,e.Html.wrapper,throttle(function(t){n.move(t)},t.settings.throttle),u)},unbindSwipeMove:function(){i.off(MOVE_EVENTS,e.Html.wrapper,u)},bindSwipeEnd:function(){var t=this;i.on(END_EVENTS,e.Html.wrapper,function(e){t.end(e)})},unbindSwipeEnd:function(){i.off(END_EVENTS,e.Html.wrapper)},touches:function(t){return MOUSE_EVENTS.indexOf(t.type)>-1?t:t.touches[0]||t.changedTouches[0]},threshold:function(e){var n=t.settings;return MOUSE_EVENTS.indexOf(e.type)>-1?n.dragThreshold:n.swipeThreshold},enable:function(){return a=!1,e.Transition.enable(),this},disable:function(){return a=!0,e.Transition.disable(),this}};return n.on("build.after",function(){e.Html.root.classList.add(t.settings.classes.swipeable)}),n.on("destroy",function(){c.unbindSwipeStart(),c.unbindSwipeMove(),c.unbindSwipeEnd(),i.destroy()}),c}function Images(t,e,n){var i=new EventsBinder,s={mount:function(){this.bind()},bind:function(){i.on("dragstart",e.Html.wrapper,this.dragstart)},unbind:function(){i.off("dragstart",e.Html.wrapper)},dragstart:function(t){t.preventDefault()}};return n.on("destroy",function(){s.unbind(),i.destroy()}),s}function Anchors(t,e,n){var i=new EventsBinder,s=!1,r=!1,o={mount:function(){this._a=e.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){i.on("click",e.Html.wrapper,this.click)},unbind:function(){i.off("click",e.Html.wrapper)},click:function(t){r&&(t.stopPropagation(),t.preventDefault())},detach:function(){if(r=!0,!s){for(var t=0;t<this.items.length;t++)this.items[t].draggable=!1,this.items[t].setAttribute("data-href",this.items[t].getAttribute("href")),this.items[t].removeAttribute("href");s=!0}return this},attach:function(){if(r=!1,s){for(var t=0;t<this.items.length;t++)this.items[t].draggable=!0,this.items[t].setAttribute("href",this.items[t].getAttribute("data-href"));s=!1}return this}};return define(o,"items",{get:function(){return o._a}}),n.on("swipe.move",function(){o.detach()}),n.on("swipe.end",function(){e.Transition.after(function(){o.attach()})}),n.on("destroy",function(){o.attach(),o.unbind(),i.destroy()}),o}function Controls(t,e,n){var i=new EventsBinder,s=!!supportsPassive$1&&{passive:!0},r={mount:function(){this._n=e.Html.root.querySelectorAll(NAV_SELECTOR),this._c=e.Html.root.querySelectorAll(CONTROLS_SELECTOR),this.addBindings()},setActive:function(){for(var t=0;t<this._n.length;t++)this.addClass(this._n[t].children)},removeActive:function(){for(var t=0;t<this._n.length;t++)this.removeClass(this._n[t].children)},addClass:function(e){var n=t.settings,i=e[t.index];i&&(i.classList.add(n.classes.nav.active),siblings(i).forEach(function(t){t.classList.remove(n.classes.nav.active)}))},removeClass:function(e){var n=e[t.index];n&&n.classList.remove(t.settings.classes.nav.active)},addBindings:function(){for(var t=0;t<this._c.length;t++)this.bind(this._c[t].children)},removeBindings:function(){for(var t=0;t<this._c.length;t++)this.unbind(this._c[t].children)},bind:function(t){for(var e=0;e<t.length;e++)i.on("click",t[e],this.click),i.on("touchstart",t[e],this.click,s)},unbind:function(t){for(var e=0;e<t.length;e++)i.off(["click","touchstart"],t[e])},click:function(t){t.preventDefault(),e.Run.make(e.Direction.resolve(t.currentTarget.getAttribute("data-glide-dir")))}};return define(r,"items",{get:function(){return r._c}}),n.on(["mount.after","move.after"],function(){r.setActive()}),n.on("destroy",function(){r.removeBindings(),r.removeActive(),i.destroy()}),r}function Keyboard(t,e,n){var i=new EventsBinder,s={mount:function(){t.settings.keyboard&&this.bind()},bind:function(){i.on("keyup",document,this.press)},unbind:function(){i.off("keyup",document)},press:function(t){39===t.keyCode&&e.Run.make(e.Direction.resolve(">")),37===t.keyCode&&e.Run.make(e.Direction.resolve("<"))}};return n.on(["destroy","update"],function(){s.unbind()}),n.on("update",function(){s.mount()}),n.on("destroy",function(){i.destroy()}),s}function Autoplay(t,e,n){var i=new EventsBinder,s={mount:function(){this.start(),t.settings.hoverpause&&this.bind()},start:function(){var n=this;t.settings.autoplay&&isUndefined(this._i)&&(this._i=setInterval(function(){n.stop(),e.Run.make(">"),n.start()},this.time))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var t=this;i.on("mouseover",e.Html.root,function(){t.stop()}),i.on("mouseout",e.Html.root,function(){t.start()})},unbind:function(){i.off(["mouseover","mouseout"],e.Html.root)}};return define(s,"time",{get:function(){var n=e.Html.slides[t.index].getAttribute("data-glide-autoplay");return toInt(n||t.settings.autoplay)}}),n.on(["destroy","update"],function(){s.unbind()}),n.on(["run.before","pause","destroy","swipe.start","update"],function(){s.stop()}),n.on(["run.after","play","swipe.end"],function(){s.start()}),n.on("update",function(){s.mount()}),n.on("destroy",function(){i.destroy()}),s}function sortBreakpoints(t){return isObject(t)?sortKeys(t):(warn("Breakpoints option must be an object"),{})}function Breakpoints(t,e,n){var i=new EventsBinder,s=t.settings,r=sortBreakpoints(s.breakpoints),o=_extends({},s),a={match:function(t){if(void 0!==window.matchMedia)for(var e in t)if(t.hasOwnProperty(e)&&window.matchMedia("(max-width: "+e+"px)").matches)return t[e];return o}};return _extends(s,a.match(r)),i.on("resize",window,throttle(function(){t.settings=mergeOptions(s,a.match(r))},t.settings.throttle)),n.on("update",function(){r=sortBreakpoints(r),o=_extends({},s)}),n.on("destroy",function(){i.off("resize",window)}),a}var defaults={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"|",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},createClass=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},get=function t(e,n,i){null===e&&(e=Function.prototype);var s=Object.getOwnPropertyDescriptor(e,n);if(void 0===s){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in s)return s.value;var o=s.get;return void 0!==o?o.call(i):void 0},inherits=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},possibleConstructorReturn=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},EventsBus=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};classCallCheck(this,t),this.events=e,this.hop=e.hasOwnProperty}return createClass(t,[{key:"on",value:function(t,e){if(isArray(t))for(var n=0;n<t.length;n++)this.on(t[n],e);this.hop.call(this.events,t)||(this.events[t]=[]);var i=this.events[t].push(e)-1;return{remove:function(){delete this.events[t][i]}}}},{key:"emit",value:function(t,e){if(isArray(t))for(var n=0;n<t.length;n++)this.emit(t[n],e);this.hop.call(this.events,t)&&this.events[t].forEach(function(t){t(e||{})})}}]),t}(),Glide=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};classCallCheck(this,t),this._c={},this._t=[],this._e=new EventsBus,this.disabled=!1,this.selector=e,this.settings=mergeOptions(defaults,n),this.index=this.settings.startAt}return createClass(t,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),isObject(t)?this._c=mount(this,t,this._e):warn("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return isArray(t)?this._t=t:warn("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.settings=mergeOptions(this.settings,t),t.hasOwnProperty("startAt")&&(this.index=t.startAt),this._e.emit("update"),this}},{key:"go",value:function(t){return this._c.Run.make(t),this}},{key:"move",value:function(t){return this._c.Transition.disable(),this._c.Move.make(t),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&(this.settings.autoplay=t),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(t,e){return this._e.on(t,e),this}},{key:"isType",value:function(t){return this.settings.type===t}},{key:"settings",get:function(){return this._o},set:function(t){isObject(t)?this._o=t:warn("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(t){this._i=toInt(t)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(t){this._d=!!t}}]),t}(),MARGIN_TYPE={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]},TRACK_SELECTOR='[data-glide-el="track"]',EventsBinder=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};classCallCheck(this,t),this.listeners=e}return createClass(t,[{key:"on",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];isString(t)&&(t=[t]);for(var s=0;s<t.length;s++)this.listeners[t[s]]=n,e.addEventListener(t[s],this.listeners[t[s]],i)}},{key:"off",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];isString(t)&&(t=[t]);for(var i=0;i<t.length;i++)e.removeEventListener(t[i],this.listeners[t[i]],n)}},{key:"destroy",value:function(){delete this.listeners}}]),t}(),VALID_DIRECTIONS=["ltr","rtl"],FLIPED_MOVEMENTS={">":"<","<":">","=":"="},supportsPassive=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){supportsPassive=!0}});window.addEventListener("testPassive",null,opts),window.removeEventListener("testPassive",null,opts)}catch(t){}var supportsPassive$1=supportsPassive,START_EVENTS=["touchstart","mousedown"],MOVE_EVENTS=["touchmove","mousemove"],END_EVENTS=["touchend","touchcancel","mouseup","mouseleave"],MOUSE_EVENTS=["mousedown","mousemove","mouseup","mouseleave"],NAV_SELECTOR='[data-glide-el="controls[nav]"]',CONTROLS_SELECTOR='[data-glide-el^="controls"]',COMPONENTS={Html:Html,Translate:Translate,Transition:Transition,Direction:Direction,Peek:Peek,Sizes:Sizes,Gaps:Gaps,Move:Move,Clones:Clones,Resize:Resize,Build:Build,Run:Run,Swipe:Swipe,Images:Images,Anchors:Anchors,Controls:Controls,Keyboard:Keyboard,Autoplay:Autoplay,Breakpoints:Breakpoints},Glide$1=function(t){function e(){return classCallCheck(this,e),possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return inherits(e,Glide),createClass(e,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"mount",this).call(this,_extends({},COMPONENTS,t))}}]),e}();export default Glide$1;
  