/*!
  * Bootstrap carousel.js v4.5.0 (https://getbootstrap.com/)
  * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  */
(function(b,e){"object"===typeof exports&&"undefined"!==typeof module?module.exports=e(require("jquery"),require("./util.js")):"function"===typeof define&&define.amd?define(["jquery","./util.js"],e):(b=b||self,b.BootstrapCarousel=e(b.jQuery,b.Util))})(this,function(b,e){function n(b,c){for(var a=0;a<c.length;a++){var d=c[a];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(b,d.key,d)}}function u(b,c,a){c&&n(b.prototype,c);a&&n(b,a);return b}function r(b,
c){var a=Object.keys(b);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(b);c&&(d=d.filter(function(a){return Object.getOwnPropertyDescriptor(b,a).enumerable}));a.push.apply(a,d)}return a}function l(b){for(var c=1;c<arguments.length;c++){var a=null!=arguments[c]?arguments[c]:{};c%2?r(Object(a),!0).forEach(function(d){var c=a[d];d in b?Object.defineProperty(b,d,{value:c,enumerable:!0,configurable:!0,writable:!0}):b[d]=c}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,
Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach(function(d){Object.defineProperty(b,d,Object.getOwnPropertyDescriptor(a,d))})}return b}b=b&&Object.prototype.hasOwnProperty.call(b,"default")?b["default"]:b;e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e;var v=b.fn.bootstrapcarousel,m={interval:5E3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},w={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},
t={TOUCH:"touch",PEN:"pen"},k=function(){function h(a,b){this._activeElement=this._interval=this._items=null;this._isSliding=this._isPaused=!1;this.touchTimeout=null;this.touchDeltaX=this.touchStartX=0;this._config=this._getConfig(b);this._element=a;this._indicatorsElement=this._element.querySelector(".carousel-indicators");this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints;this._pointerEvent=!(!window.PointerEvent&&!window.MSPointerEvent);this._addEventListeners()}
var c=h.prototype;c.next=function(){this._isSliding||this._slide("next")};c.nextWhenVisible=function(){!document.hidden&&b(this._element).is(":visible")&&"hidden"!==b(this._element).css("visibility")&&this.next()};c.prev=function(){this._isSliding||this._slide("prev")};c.pause=function(a){a||(this._isPaused=!0);this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(e.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null};c.cycle=function(a){a||
(this._isPaused=!1);this._interval&&(clearInterval(this._interval),this._interval=null);this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))};c.to=function(a){var d=this;this._activeElement=this._element.querySelector(".active.carousel-item");var c=this._getItemIndex(this._activeElement);if(!(a>this._items.length-1||0>a))if(this._isSliding)b(this._element).one("slid.bs.carousel",function(){return d.to(a)});
else c===a?(this.pause(),this.cycle()):this._slide(a>c?"next":"prev",this._items[a])};c.dispose=function(){b(this._element).off(".bs.carousel");b.removeData(this._element,"bs.carousel");this._indicatorsElement=this._activeElement=this._isSliding=this._isPaused=this._interval=this._element=this._config=this._items=null};c._getConfig=function(a){a=l(l({},m),a);e.typeCheckConfig("bootstrapcarousel",a,w);return a};c._handleSwipe=function(){var a=Math.abs(this.touchDeltaX);40>=a||(a/=this.touchDeltaX,
this.touchDeltaX=0,0<a&&this.prev(),0>a&&this.next())};c._addEventListeners=function(){var a=this;if(this._config.keyboard)b(this._element).on("keydown.bs.carousel",function(b){return a._keydown(b)});if("hover"===this._config.pause)b(this._element).on("mouseenter.bs.carousel",function(b){return a.pause(b)}).on("mouseleave.bs.carousel",function(b){return a.cycle(b)});this._config.touch&&this._addTouchEventListeners()};c._addTouchEventListeners=function(){var a=this;if(this._touchSupported){var d=function(b){a._pointerEvent&&
t[b.originalEvent.pointerType.toUpperCase()]?a.touchStartX=b.originalEvent.clientX:a._pointerEvent||(a.touchStartX=b.originalEvent.touches[0].clientX)},c=function(b){a._pointerEvent&&t[b.originalEvent.pointerType.toUpperCase()]&&(a.touchDeltaX=b.originalEvent.clientX-a.touchStartX);a._handleSwipe();"hover"===a._config.pause&&(a.pause(),a.touchTimeout&&clearTimeout(a.touchTimeout),a.touchTimeout=setTimeout(function(b){return a.cycle(b)},500+a._config.interval))};b(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",
function(a){return a.preventDefault()});this._pointerEvent?(b(this._element).on("pointerdown.bs.carousel",function(a){return d(a)}),b(this._element).on("pointerup.bs.carousel",function(a){return c(a)}),this._element.classList.add("pointer-event")):(b(this._element).on("touchstart.bs.carousel",function(a){return d(a)}),b(this._element).on("touchmove.bs.carousel",function(b){a.touchDeltaX=b.originalEvent.touches&&1<b.originalEvent.touches.length?0:b.originalEvent.touches[0].clientX-a.touchStartX}),
b(this._element).on("touchend.bs.carousel",function(a){return c(a)}))}};c._keydown=function(a){if(!/input|textarea/i.test(a.target.tagName))switch(a.which){case 37:a.preventDefault();this.prev();break;case 39:a.preventDefault(),this.next()}};c._getItemIndex=function(a){this._items=a&&a.parentNode?[].slice.call(a.parentNode.querySelectorAll(".carousel-item")):[];return this._items.indexOf(a)};c._getItemByDirection=function(a,b){var d="next"===a,c="prev"===a,e=this._getItemIndex(b),g=this._items.length-
1;if((c&&0===e||d&&e===g)&&!this._config.wrap)return b;d=(e+("prev"===a?-1:1))%this._items.length;return-1===d?this._items[this._items.length-1]:this._items[d]};c._triggerSlideEvent=function(a,d){var c=this._getItemIndex(a),f=this._getItemIndex(this._element.querySelector(".active.carousel-item"));c=b.Event("slide.bs.carousel",{relatedTarget:a,direction:d,from:f,to:c});b(this._element).trigger(c);return c};c._setActiveIndicatorElement=function(a){if(this._indicatorsElement){var d=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));
b(d).removeClass("active");(a=this._indicatorsElement.children[this._getItemIndex(a)])&&b(a).addClass("active")}};c._slide=function(a,d){var c=this,f=this._element.querySelector(".active.carousel-item"),h=this._getItemIndex(f),g=d||f&&this._getItemByDirection(a,f),l=this._getItemIndex(g),k=!!this._interval;if("next"===a){var p="carousel-item-left";var q="carousel-item-next";var m="left"}else p="carousel-item-right",q="carousel-item-prev",m="right";if(g&&b(g).hasClass("active"))this._isSliding=!1;
else if(!this._triggerSlideEvent(g,m).isDefaultPrevented()&&f&&g){this._isSliding=!0;k&&this.pause();this._setActiveIndicatorElement(g);var n=b.Event("slid.bs.carousel",{relatedTarget:g,direction:m,from:h,to:l});b(this._element).hasClass("slide")?(b(g).addClass(q),e.reflow(g),b(f).addClass(p),b(g).addClass(p),(h=parseInt(g.getAttribute("data-interval"),10))?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=h):this._config.interval=this._config.defaultInterval||
this._config.interval,h=e.getTransitionDurationFromElement(f),b(f).one(e.TRANSITION_END,function(){b(g).removeClass(p+" "+q).addClass("active");b(f).removeClass("active "+q+" "+p);c._isSliding=!1;setTimeout(function(){return b(c._element).trigger(n)},0)}).emulateTransitionEnd(h)):(b(f).removeClass("active"),b(g).addClass("active"),this._isSliding=!1,b(this._element).trigger(n));k&&this.cycle()}};h._jQueryInterface=function(a){return this.each(function(){var d=b(this).data("bs.carousel"),c=l(l({},
m),b(this).data());"object"===typeof a&&(c=l(l({},c),a));var f="string"===typeof a?a:c.slide;d||(d=new h(this,c),b(this).data("bs.carousel",d));if("number"===typeof a)d.to(a);else if("string"===typeof f){if("undefined"===typeof d[f])throw new TypeError('No method named "'+f+'"');d[f]()}else c.interval&&c.ride&&(d.pause(),d.cycle())})};h._dataApiClickHandler=function(a){var c=e.getSelectorFromElement(this);if(c&&(c=b(c)[0])&&b(c).hasClass("carousel")){var k=l(l({},b(c).data()),b(this).data()),f=this.getAttribute("data-slide-to");
f&&(k.interval=!1);h._jQueryInterface.call(b(c),k);f&&b(c).data("bs.carousel").to(f);a.preventDefault()}};u(h,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return m}}]);return h}();b(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",k._dataApiClickHandler);b(window).on("load.bs.carousel.data-api",function(){for(var e=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),c=0,a=e.length;c<a;c++){var d=b(e[c]);k._jQueryInterface.call(d,
d.data())}});b.fn.bootstrapcarousel=k._jQueryInterface;b.fn.bootstrapcarousel.Constructor=k;b.fn.bootstrapcarousel.noConflict=function(){b.fn.bootstrapcarousel=v;return k._jQueryInterface};return k});