!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap={},t.jQuery,t.Popper)}(this,(function(t,e,n){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=i(e),a=i(n);function s(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)}}function l(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function r(){return(r=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}).apply(this,arguments)}function u(t){var e=this,n=!1;return o.default(this).one(d.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||d.triggerTransitionEnd(e)}),t),this}var d={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=o.default(t).css("transition-duration"),n=o.default(t).css("transition-delay"),i=parseFloat(e),a=parseFloat(n);return i||a?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){o.default(t).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],a=e[i],s=a&&d.isElement(a)?"element":null===(l=a)||"undefined"==typeof l?""+l:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}var l},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?d.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if("undefined"==typeof o.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=o.default.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};d.jQueryDetection(),o.default.fn.emulateTransitionEnd=u,o.default.event.special[d.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(t){if(o.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var f="alert",c=o.default.fn[f],h=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){o.default.removeData(this._element,"bs.alert"),this._element=null},e._getRootElement=function(t){var e=d.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=o.default(t).closest(".alert")[0]),n},e._triggerCloseEvent=function(t){var e=o.default.Event("close.bs.alert");return o.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(o.default(t).removeClass("show"),o.default(t).hasClass("fade")){var n=d.getTransitionDurationFromElement(t);o.default(t).one(d.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){o.default(t).detach().trigger("closed.bs.alert").remove()},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.alert");i||(i=new t(this),n.data("bs.alert",i)),"close"===e&&i[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),t}();o.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',h._handleDismiss(new h)),o.default.fn[f]=h._jQueryInterface,o.default.fn[f].Constructor=h,o.default.fn[f].noConflict=function(){return o.default.fn[f]=c,h._jQueryInterface};var g=o.default.fn.button,m=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=o.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var i=this._element.querySelector('input:not([type="hidden"])');if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains("active"))t=!1;else{var a=n.querySelector(".active");a&&o.default(a).removeClass("active")}t&&("checkbox"!==i.type&&"radio"!==i.type||(i.checked=!this._element.classList.contains("active")),this.shouldAvoidTriggerChange||o.default(i).trigger("change")),i.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),t&&o.default(this._element).toggleClass("active"))},e.dispose=function(){o.default.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(e,n){return this.each((function(){var i=o.default(this),a=i.data("bs.button");a||(a=new t(this),i.data("bs.button",a)),a.shouldAvoidTriggerChange=n,"toggle"===e&&a[e]()}))},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),t}();o.default(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=t.target,n=e;if(o.default(e).hasClass("btn")||(e=o.default(e).closest(".btn")[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var i=e.querySelector('input:not([type="hidden"])');if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||m._jQueryInterface.call(o.default(e),"toggle","INPUT"===n.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=o.default(t.target).closest(".btn")[0];o.default(e).toggleClass("focus",/^focus(in)?$/.test(t.type))})),o.default(window).on("load.bs.button.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,n=t.length;e<n;e++){var i=t[e],o=i.querySelector('input:not([type="hidden"])');o.checked||o.hasAttribute("checked")?i.classList.add("active"):i.classList.remove("active")}for(var a=0,s=(t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;a<s;a++){var l=t[a];"true"===l.getAttribute("aria-pressed")?l.classList.add("active"):l.classList.remove("active")}})),o.default.fn.button=m._jQueryInterface,o.default.fn.button.Constructor=m,o.default.fn.button.noConflict=function(){return o.default.fn.button=g,m._jQueryInterface};var p="carousel",_=".bs.carousel",v=o.default.fn[p],b={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},y={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},E={TOUCH:"touch",PEN:"pen"},w=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide("next")},e.nextWhenVisible=function(){var t=o.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide("prev")},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(d.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(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))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(".active.carousel-item");var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)o.default(this._element).one("slid.bs.carousel",(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var i=t>n?"next":"prev";this._slide(i,this._items[t])}},e.dispose=function(){o.default(this._element).off(_),o.default.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=r({},b,t),d.typeCheckConfig(p,t,y),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&o.default(this._element).on("keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&o.default(this._element).on("mouseenter.bs.carousel",(function(e){return t.pause(e)})).on("mouseleave.bs.carousel",(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&E[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t._pointerEvent&&E[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};o.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(t){return t.preventDefault()})),this._pointerEvent?(o.default(this._element).on("pointerdown.bs.carousel",(function(t){return e(t)})),o.default(this._element).on("pointerup.bs.carousel",(function(t){return n(t)})),this._element.classList.add("pointer-event")):(o.default(this._element).on("touchstart.bs.carousel",(function(t){return e(t)})),o.default(this._element).on("touchmove.bs.carousel",(function(e){return function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),o.default(this._element).on("touchend.bs.carousel",(function(t){return n(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n="next"===t,i="prev"===t,o=this._getItemIndex(e),a=this._items.length-1;if((i&&0===o||n&&o===a)&&!this._config.wrap)return e;var s=(o+("prev"===t?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(".active.carousel-item")),a=o.default.Event("slide.bs.carousel",{relatedTarget:t,direction:e,from:i,to:n});return o.default(this._element).trigger(a),a},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));o.default(e).removeClass("active");var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&o.default(n).addClass("active")}},e._slide=function(t,e){var n,i,a,s=this,l=this._element.querySelector(".active.carousel-item"),r=this._getItemIndex(l),u=e||l&&this._getItemByDirection(t,l),f=this._getItemIndex(u),c=Boolean(this._interval);if("next"===t?(n="carousel-item-left",i="carousel-item-next",a="left"):(n="carousel-item-right",i="carousel-item-prev",a="right"),u&&o.default(u).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(u,a).isDefaultPrevented()&&l&&u){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(u);var h=o.default.Event("slid.bs.carousel",{relatedTarget:u,direction:a,from:r,to:f});if(o.default(this._element).hasClass("slide")){o.default(u).addClass(i),d.reflow(u),o.default(l).addClass(n),o.default(u).addClass(n);var g=parseInt(u.getAttribute("data-interval"),10);g?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=g):this._config.interval=this._config.defaultInterval||this._config.interval;var m=d.getTransitionDurationFromElement(l);o.default(l).one(d.TRANSITION_END,(function(){o.default(u).removeClass(n+" "+i).addClass("active"),o.default(l).removeClass("active "+i+" "+n),s._isSliding=!1,setTimeout((function(){return o.default(s._element).trigger(h)}),0)})).emulateTransitionEnd(m)}else o.default(l).removeClass("active"),o.default(u).addClass("active"),this._isSliding=!1,o.default(this._element).trigger(h);c&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data("bs.carousel"),i=r({},b,o.default(this).data());"object"==typeof e&&(i=r({},i,e));var a="string"==typeof e?e:i.slide;if(n||(n=new t(this,i),o.default(this).data("bs.carousel",n)),"number"==typeof e)n.to(e);else if("string"==typeof a){if("undefined"==typeof n[a])throw new TypeError('No method named "'+a+'"');n[a]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}))},t._dataApiClickHandler=function(e){var n=d.getSelectorFromElement(this);if(n){var i=o.default(n)[0];if(i&&o.default(i).hasClass("carousel")){var a=r({},o.default(i).data(),o.default(this).data()),s=this.getAttribute("data-slide-to");s&&(a.interval=!1),t._jQueryInterface.call(o.default(i),a),s&&o.default(i).data("bs.carousel").to(s),e.preventDefault()}}},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return b}}]),t}();o.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",w._dataApiClickHandler),o.default(window).on("load.bs.carousel.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,n=t.length;e<n;e++){var i=o.default(t[e]);w._jQueryInterface.call(i,i.data())}})),o.default.fn[p]=w._jQueryInterface,o.default.fn[p].Constructor=w,o.default.fn[p].noConflict=function(){return o.default.fn[p]=v,w._jQueryInterface};var T="collapse",C=o.default.fn[T],S={toggle:!0,parent:""},N={toggle:"boolean",parent:"(string|element)"},D=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll('[data-toggle="collapse"]')),i=0,o=n.length;i<o;i++){var a=n[i],s=d.getSelectorFromElement(a),l=[].slice.call(document.querySelectorAll(s)).filter((function(e){return e===t}));null!==s&&l.length>0&&(this._selector=s,this._triggerArray.push(a))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){o.default(this._element).hasClass("show")?this.hide():this.show()},e.show=function(){var e,n,i=this;if(!this._isTransitioning&&!o.default(this._element).hasClass("show")&&(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof i._config.parent?t.getAttribute("data-parent")===i._config.parent:t.classList.contains("collapse")}))).length&&(e=null),!(e&&(n=o.default(e).not(this._selector).data("bs.collapse"))&&n._isTransitioning))){var a=o.default.Event("show.bs.collapse");if(o.default(this._element).trigger(a),!a.isDefaultPrevented()){e&&(t._jQueryInterface.call(o.default(e).not(this._selector),"hide"),n||o.default(e).data("bs.collapse",null));var s=this._getDimension();o.default(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[s]=0,this._triggerArray.length&&o.default(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var l="scroll"+(s[0].toUpperCase()+s.slice(1)),r=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,(function(){o.default(i._element).removeClass("collapsing").addClass("collapse show"),i._element.style[s]="",i.setTransitioning(!1),o.default(i._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(r),this._element.style[s]=this._element[l]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&o.default(this._element).hasClass("show")){var e=o.default.Event("hide.bs.collapse");if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",d.reflow(this._element),o.default(this._element).addClass("collapsing").removeClass("collapse show");var i=this._triggerArray.length;if(i>0)for(var a=0;a<i;a++){var s=this._triggerArray[a],l=d.getSelectorFromElement(s);if(null!==l)o.default([].slice.call(document.querySelectorAll(l))).hasClass("show")||o.default(s).addClass("collapsed").attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var r=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,(function(){t.setTransitioning(!1),o.default(t._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")})).emulateTransitionEnd(r)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){o.default.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=r({},S,t)).toggle=Boolean(t.toggle),d.typeCheckConfig(T,t,N),t},e._getDimension=function(){return o.default(this._element).hasClass("width")?"width":"height"},e._getParent=function(){var e,n=this;d.isElement(this._config.parent)?(e=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',a=[].slice.call(e.querySelectorAll(i));return o.default(a).each((function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])})),e},e._addAriaAndCollapsedClass=function(t,e){var n=o.default(t).hasClass("show");e.length&&o.default(e).toggleClass("collapsed",!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=d.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.collapse"),a=r({},S,n.data(),"object"==typeof e&&e?e:{});if(!i&&a.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(a.toggle=!1),i||(i=new t(this,a),n.data("bs.collapse",i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return S}}]),t}();o.default(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=o.default(this),n=d.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(n));o.default(i).each((function(){var t=o.default(this),n=t.data("bs.collapse")?"toggle":e.data();D._jQueryInterface.call(t,n)}))})),o.default.fn[T]=D._jQueryInterface,o.default.fn[T].Constructor=D,o.default.fn[T].noConflict=function(){return o.default.fn[T]=C,D._jQueryInterface};var k="dropdown",A=o.default.fn[k],I=new RegExp("38|40|27"),j={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},O={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},x=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!o.default(this._element).hasClass("disabled")){var e=o.default(this._menu).hasClass("show");t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||o.default(this._element).hasClass("disabled")||o.default(this._menu).hasClass("show"))){var n={relatedTarget:this._element},i=o.default.Event("show.bs.dropdown",n),s=t._getParentFromElement(this._element);if(o.default(s).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&e){if("undefined"==typeof a.default)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var l=this._element;"parent"===this._config.reference?l=s:d.isElement(this._config.reference)&&(l=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(l=this._config.reference[0])),"scrollParent"!==this._config.boundary&&o.default(s).addClass("position-static"),this._popper=new a.default(l,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===o.default(s).closest(".navbar-nav").length&&o.default(document.body).children().on("mouseover",null,o.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),o.default(this._menu).toggleClass("show"),o.default(s).toggleClass("show").trigger(o.default.Event("shown.bs.dropdown",n))}}},e.hide=function(){if(!this._element.disabled&&!o.default(this._element).hasClass("disabled")&&o.default(this._menu).hasClass("show")){var e={relatedTarget:this._element},n=o.default.Event("hide.bs.dropdown",e),i=t._getParentFromElement(this._element);o.default(i).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),o.default(this._menu).toggleClass("show"),o.default(i).toggleClass("show").trigger(o.default.Event("hidden.bs.dropdown",e)))}},e.dispose=function(){o.default.removeData(this._element,"bs.dropdown"),o.default(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;o.default(this._element).on("click.bs.dropdown",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},e._getConfig=function(t){return t=r({},this.constructor.Default,o.default(this._element).data(),t),d.typeCheckConfig(k,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(".dropdown-menu"))}return this._menu},e._getPlacement=function(){var t=o.default(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?e=o.default(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":o.default(this._menu).hasClass("dropdown-menu-right")&&(e="bottom-end"),e},e._detectNavbar=function(){return o.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),r({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data("bs.dropdown");if(n||(n=new t(this,"object"==typeof e?e:null),o.default(this).data("bs.dropdown",n)),"string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),i=0,a=n.length;i<a;i++){var s=t._getParentFromElement(n[i]),l=o.default(n[i]).data("bs.dropdown"),r={relatedTarget:n[i]};if(e&&"click"===e.type&&(r.clickEvent=e),l){var u=l._menu;if(o.default(s).hasClass("show")&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&o.default.contains(s,e.target))){var d=o.default.Event("hide.bs.dropdown",r);o.default(s).trigger(d),d.isDefaultPrevented()||("ontouchstart"in document.documentElement&&o.default(document.body).children().off("mouseover",null,o.default.noop),n[i].setAttribute("aria-expanded","false"),l._popper&&l._popper.destroy(),o.default(u).removeClass("show"),o.default(s).removeClass("show").trigger(o.default.Event("hidden.bs.dropdown",r)))}}}},t._getParentFromElement=function(t){var e,n=d.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||o.default(e.target).closest(".dropdown-menu").length):!I.test(e.which))&&!this.disabled&&!o.default(this).hasClass("disabled")){var n=t._getParentFromElement(this),i=o.default(n).hasClass("show");if(i||27!==e.which){if(e.preventDefault(),e.stopPropagation(),!i||27===e.which||32===e.which)return 27===e.which&&o.default(n.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void o.default(this).trigger("click");var a=[].slice.call(n.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((function(t){return o.default(t).is(":visible")}));if(0!==a.length){var s=a.indexOf(e.target);38===e.which&&s>0&&s--,40===e.which&&s<a.length-1&&s++,s<0&&(s=0),a[s].focus()}}}},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return j}},{key:"DefaultType",get:function(){return O}}]),t}();o.default(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',x._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",x._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",x._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',(function(t){t.preventDefault(),t.stopPropagation(),x._jQueryInterface.call(o.default(this),"toggle")})).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})),o.default.fn[k]=x._jQueryInterface,o.default.fn[k].Constructor=x,o.default.fn[k].noConflict=function(){return o.default.fn[k]=A,x._jQueryInterface};var P=o.default.fn.modal,R={backdrop:!0,keyboard:!0,focus:!0,show:!0},L={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},q=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){o.default(this._element).hasClass("fade")&&(this._isTransitioning=!0);var n=o.default.Event("show.bs.modal",{relatedTarget:t});o.default(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),o.default(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',(function(t){return e.hide(t)})),o.default(this._dialog).on("mousedown.dismiss.bs.modal",(function(){o.default(e._element).one("mouseup.dismiss.bs.modal",(function(t){o.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return e._showElement(t)})))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=o.default.Event("hide.bs.modal");if(o.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=o.default(this._element).hasClass("fade");if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),o.default(document).off("focusin.bs.modal"),o.default(this._element).removeClass("show"),o.default(this._element).off("click.dismiss.bs.modal"),o.default(this._dialog).off("mousedown.dismiss.bs.modal"),i){var a=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,(function(t){return e._hideModal(t)})).emulateTransitionEnd(a)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return o.default(t).off(".bs.modal")})),o.default(document).off("focusin.bs.modal"),o.default.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=r({},R,t),d.typeCheckConfig("modal",t,L),t},e._triggerBackdropTransition=function(){var t=this;if("static"===this._config.backdrop){var e=o.default.Event("hidePrevented.bs.modal");if(o.default(this._element).trigger(e),e.isDefaultPrevented())return;var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var i=d.getTransitionDurationFromElement(this._dialog);o.default(this._element).off(d.TRANSITION_END),o.default(this._element).one(d.TRANSITION_END,(function(){t._element.classList.remove("modal-static"),n||o.default(t._element).one(d.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,i)})).emulateTransitionEnd(i),this._element.focus()}else this.hide()},e._showElement=function(t){var e=this,n=o.default(this._element).hasClass("fade"),i=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),o.default(this._dialog).hasClass("modal-dialog-scrollable")&&i?i.scrollTop=0:this._element.scrollTop=0,n&&d.reflow(this._element),o.default(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var a=o.default.Event("shown.bs.modal",{relatedTarget:t}),s=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,o.default(e._element).trigger(a)};if(n){var l=d.getTransitionDurationFromElement(this._dialog);o.default(this._dialog).one(d.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},e._enforceFocus=function(){var t=this;o.default(document).off("focusin.bs.modal").on("focusin.bs.modal",(function(e){document!==e.target&&t._element!==e.target&&0===o.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?o.default(this._element).on("keydown.dismiss.bs.modal",(function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()})):this._isShown||o.default(this._element).off("keydown.dismiss.bs.modal")},e._setResizeEvent=function(){var t=this;this._isShown?o.default(window).on("resize.bs.modal",(function(e){return t.handleUpdate(e)})):o.default(window).off("resize.bs.modal")},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){o.default(document.body).removeClass("modal-open"),t._resetAdjustments(),t._resetScrollbar(),o.default(t._element).trigger("hidden.bs.modal")}))},e._removeBackdrop=function(){this._backdrop&&(o.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=o.default(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),o.default(this._backdrop).appendTo(document.body),o.default(this._element).on("click.dismiss.bs.modal",(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&e._triggerBackdropTransition()})),n&&d.reflow(this._backdrop),o.default(this._backdrop).addClass("show"),!t)return;if(!n)return void t();var i=d.getTransitionDurationFromElement(this._backdrop);o.default(this._backdrop).one(d.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){o.default(this._backdrop).removeClass("show");var a=function(){e._removeBackdrop(),t&&t()};if(o.default(this._element).hasClass("fade")){var s=d.getTransitionDurationFromElement(this._backdrop);o.default(this._backdrop).one(d.TRANSITION_END,a).emulateTransitionEnd(s)}else a()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),n=[].slice.call(document.querySelectorAll(".sticky-top"));o.default(e).each((function(e,n){var i=n.style.paddingRight,a=o.default(n).css("padding-right");o.default(n).data("padding-right",i).css("padding-right",parseFloat(a)+t._scrollbarWidth+"px")})),o.default(n).each((function(e,n){var i=n.style.marginRight,a=o.default(n).css("margin-right");o.default(n).data("margin-right",i).css("margin-right",parseFloat(a)-t._scrollbarWidth+"px")}));var i=document.body.style.paddingRight,a=o.default(document.body).css("padding-right");o.default(document.body).data("padding-right",i).css("padding-right",parseFloat(a)+this._scrollbarWidth+"px")}o.default(document.body).addClass("modal-open")},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"));o.default(t).each((function(t,e){var n=o.default(e).data("padding-right");o.default(e).removeData("padding-right"),e.style.paddingRight=n||""}));var e=[].slice.call(document.querySelectorAll(".sticky-top"));o.default(e).each((function(t,e){var n=o.default(e).data("margin-right");"undefined"!=typeof n&&o.default(e).css("margin-right",n).removeData("margin-right")}));var n=o.default(document.body).data("padding-right");o.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each((function(){var i=o.default(this).data("bs.modal"),a=r({},R,o.default(this).data(),"object"==typeof e&&e?e:{});if(i||(i=new t(this,a),o.default(this).data("bs.modal",i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e](n)}else a.show&&i.show(n)}))},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return R}}]),t}();o.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){var e,n=this,i=d.getSelectorFromElement(this);i&&(e=document.querySelector(i));var a=o.default(e).data("bs.modal")?"toggle":r({},o.default(e).data(),o.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var s=o.default(e).one("show.bs.modal",(function(t){t.isDefaultPrevented()||s.one("hidden.bs.modal",(function(){o.default(n).is(":visible")&&n.focus()}))}));q._jQueryInterface.call(o.default(e),a,this)})),o.default.fn.modal=q._jQueryInterface,o.default.fn.modal.Constructor=q,o.default.fn.modal.noConflict=function(){return o.default.fn.modal=P,q._jQueryInterface};var F=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Q={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},B=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,H=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function U(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),a=[].slice.call(i.body.querySelectorAll("*")),s=function(t,n){var i=a[t],s=i.nodeName.toLowerCase();if(-1===o.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var l=[].slice.call(i.attributes),r=[].concat(e["*"]||[],e[s]||[]);l.forEach((function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===F.indexOf(n)||Boolean(t.nodeValue.match(B)||t.nodeValue.match(H));for(var i=e.filter((function(t){return t instanceof RegExp})),o=0,a=i.length;o<a;o++)if(n.match(i[o]))return!0;return!1})(t,r)||i.removeAttribute(t.nodeName)}))},l=0,r=a.length;l<r;l++)s(l);return i.body.innerHTML}var M="tooltip",W=o.default.fn[M],V=new RegExp("(^|\\s)bs-tooltip\\S+","g"),z=["sanitize","whiteList","sanitizeFn"],K={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},X={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Y={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:Q,popperConfig:null},$={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},J=function(){function t(t,e){if("undefined"==typeof a.default)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=o.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(o.default(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),o.default.removeData(this.element,this.constructor.DATA_KEY),o.default(this.element).off(this.constructor.EVENT_KEY),o.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&o.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===o.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=o.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){o.default(this.element).trigger(e);var n=d.findShadowRoot(this.element),i=o.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var s=this.getTipElement(),l=d.getUID(this.constructor.NAME);s.setAttribute("id",l),this.element.setAttribute("aria-describedby",l),this.setContent(),this.config.animation&&o.default(s).addClass("fade");var r="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,u=this._getAttachment(r);this.addAttachmentClass(u);var f=this._getContainer();o.default(s).data(this.constructor.DATA_KEY,this),o.default.contains(this.element.ownerDocument.documentElement,this.tip)||o.default(s).appendTo(f),o.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new a.default(this.element,s,this._getPopperConfig(u)),o.default(s).addClass("show"),"ontouchstart"in document.documentElement&&o.default(document.body).children().on("mouseover",null,o.default.noop);var c=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,o.default(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(o.default(this.tip).hasClass("fade")){var h=d.getTransitionDurationFromElement(this.tip);o.default(this.tip).one(d.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},e.hide=function(t){var e=this,n=this.getTipElement(),i=o.default.Event(this.constructor.Event.HIDE),a=function(){"show"!==e._hoverState&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),o.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(o.default(this.element).trigger(i),!i.isDefaultPrevented()){if(o.default(n).removeClass("show"),"ontouchstart"in document.documentElement&&o.default(document.body).children().off("mouseover",null,o.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,o.default(this.tip).hasClass("fade")){var s=d.getTransitionDurationFromElement(n);o.default(n).one(d.TRANSITION_END,a).emulateTransitionEnd(s)}else a();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){o.default(this.getTipElement()).addClass("bs-tooltip-"+t)},e.getTipElement=function(){return this.tip=this.tip||o.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(o.default(t.querySelectorAll(".tooltip-inner")),this.getTitle()),o.default(t).removeClass("fade show")},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=U(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?o.default(e).parent().is(t)||t.empty().append(e):t.text(o.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return r({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:d.isElement(this.config.container)?o.default(this.config.container):o.default(document).find(this.config.container)},e._getAttachment=function(t){return X[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)o.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var n="hover"===e?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i="hover"===e?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;o.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(i,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},o.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||o.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),o.default(e.getTipElement()).hasClass("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){"show"===e._hoverState&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||o.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){"out"===e._hoverState&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=o.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==z.indexOf(t)&&delete e[t]})),"number"==typeof(t=r({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),d.typeCheckConfig(M,t,this.constructor.DefaultType),t.sanitize&&(t.template=U(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=o.default(this.getTipElement()),e=t.attr("class").match(V);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(o.default(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.tooltip"),a="object"==typeof e&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new t(this,a),n.data("bs.tooltip",i)),"string"==typeof e)){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return Y}},{key:"NAME",get:function(){return M}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return $}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return K}}]),t}();o.default.fn[M]=J._jQueryInterface,o.default.fn[M].Constructor=J,o.default.fn[M].noConflict=function(){return o.default.fn[M]=W,J._jQueryInterface};var G="popover",Z=o.default.fn[G],tt=new RegExp("(^|\\s)bs-popover\\S+","g"),et=r({},J.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),nt=r({},J.DefaultType,{content:"(string|element|function)"}),it={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},ot=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(t){o.default(this.getTipElement()).addClass("bs-popover-"+t)},a.getTipElement=function(){return this.tip=this.tip||o.default(this.config.template)[0],this.tip},a.setContent=function(){var t=o.default(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},a._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},a._cleanTipClass=function(){var t=o.default(this.getTipElement()),e=t.attr("class").match(tt);null!==e&&e.length>0&&t.removeClass(e.join(""))},i._jQueryInterface=function(t){return this.each((function(){var e=o.default(this).data("bs.popover"),n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new i(this,n),o.default(this).data("bs.popover",e)),"string"==typeof t)){if("undefined"==typeof e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},l(i,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return et}},{key:"NAME",get:function(){return G}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return it}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return nt}}]),i}(J);o.default.fn[G]=ot._jQueryInterface,o.default.fn[G].Constructor=ot,o.default.fn[G].noConflict=function(){return o.default.fn[G]=Z,ot._jQueryInterface};var at="scrollspy",st=o.default.fn[at],lt={offset:10,method:"auto",target:""},rt={offset:"number",method:"string",target:"(string|element)"},ut=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,o.default(this._scrollElement).on("scroll.bs.scrollspy",(function(t){return n._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":"position",n="auto"===this._config.method?e:this._config.method,i="position"===n?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,a=d.getSelectorFromElement(t);if(a&&(e=document.querySelector(a)),e){var s=e.getBoundingClientRect();if(s.width||s.height)return[o.default(e)[n]().top+i,a]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){o.default.removeData(this._element,"bs.scrollspy"),o.default(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=r({},lt,"object"==typeof t&&t?t:{})).target&&d.isElement(t.target)){var e=o.default(t.target).attr("id");e||(e=d.getUID(at),o.default(t.target).attr("id",e)),t.target="#"+e}return d.typeCheckConfig(at,t,rt),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})),n=o.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass("active"),n.addClass("active")):(n.addClass("active"),n.parents(".nav, .list-group").prev(".nav-link, .list-group-item").addClass("active"),n.parents(".nav, .list-group").prev(".nav-item").children(".nav-link").addClass("active")),o.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains("active")})).forEach((function(t){return t.classList.remove("active")}))},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data("bs.scrollspy");if(n||(n=new t(this,"object"==typeof e&&e),o.default(this).data("bs.scrollspy",n)),"string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return lt}}]),t}();o.default(window).on("load.bs.scrollspy.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var n=o.default(t[e]);ut._jQueryInterface.call(n,n.data())}})),o.default.fn[at]=ut._jQueryInterface,o.default.fn[at].Constructor=ut,o.default.fn[at].noConflict=function(){return o.default.fn[at]=st,ut._jQueryInterface};var dt=o.default.fn.tab,ft=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&o.default(this._element).hasClass("active")||o.default(this._element).hasClass("disabled"))){var e,n,i=o.default(this._element).closest(".nav, .list-group")[0],a=d.getSelectorFromElement(this._element);if(i){var s="UL"===i.nodeName||"OL"===i.nodeName?"> li > .active":".active";n=(n=o.default.makeArray(o.default(i).find(s)))[n.length-1]}var l=o.default.Event("hide.bs.tab",{relatedTarget:this._element}),r=o.default.Event("show.bs.tab",{relatedTarget:n});if(n&&o.default(n).trigger(l),o.default(this._element).trigger(r),!r.isDefaultPrevented()&&!l.isDefaultPrevented()){a&&(e=document.querySelector(a)),this._activate(this._element,i);var u=function(){var e=o.default.Event("hidden.bs.tab",{relatedTarget:t._element}),i=o.default.Event("shown.bs.tab",{relatedTarget:n});o.default(n).trigger(e),o.default(t._element).trigger(i)};e?this._activate(e,e.parentNode,u):u()}}},e.dispose=function(){o.default.removeData(this._element,"bs.tab"),this._element=null},e._activate=function(t,e,n){var i=this,a=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?o.default(e).children(".active"):o.default(e).find("> li > .active"))[0],s=n&&a&&o.default(a).hasClass("fade"),l=function(){return i._transitionComplete(t,a,n)};if(a&&s){var r=d.getTransitionDurationFromElement(a);o.default(a).removeClass("show").one(d.TRANSITION_END,l).emulateTransitionEnd(r)}else l()},e._transitionComplete=function(t,e,n){if(e){o.default(e).removeClass("active");var i=o.default(e.parentNode).find("> .dropdown-menu .active")[0];i&&o.default(i).removeClass("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(o.default(t).addClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),d.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&o.default(t.parentNode).hasClass("dropdown-menu")){var a=o.default(t).closest(".dropdown")[0];if(a){var s=[].slice.call(a.querySelectorAll(".dropdown-toggle"));o.default(s).addClass("active")}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.tab");if(i||(i=new t(this),n.data("bs.tab",i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),t}();o.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),ft._jQueryInterface.call(o.default(this),"show")})),o.default.fn.tab=ft._jQueryInterface,o.default.fn.tab.Constructor=ft,o.default.fn.tab.noConflict=function(){return o.default.fn.tab=dt,ft._jQueryInterface};var ct=o.default.fn.toast,ht={animation:"boolean",autohide:"boolean",delay:"number"},gt={animation:!0,autohide:!0,delay:500},mt=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=o.default.Event("show.bs.toast");if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),o.default(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),d.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var i=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},e.hide=function(){if(this._element.classList.contains("show")){var t=o.default.Event("hide.bs.toast");o.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),o.default(this._element).off("click.dismiss.bs.toast"),o.default.removeData(this._element,"bs.toast"),this._element=null,this._config=null},e._getConfig=function(t){return t=r({},gt,o.default(this._element).data(),"object"==typeof t&&t?t:{}),d.typeCheckConfig("toast",t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;o.default(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add("hide"),o.default(t._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var n=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.toast");if(i||(i=new t(this,"object"==typeof e&&e),n.data("bs.toast",i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e](this)}}))},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"DefaultType",get:function(){return ht}},{key:"Default",get:function(){return gt}}]),t}();o.default.fn.toast=mt._jQueryInterface,o.default.fn.toast.Constructor=mt,o.default.fn.toast.noConflict=function(){return o.default.fn.toast=ct,mt._jQueryInterface},t.Alert=h,t.Button=m,t.Carousel=w,t.Collapse=D,t.Dropdown=x,t.Modal=q,t.Popover=ot,t.Scrollspy=ut,t.Tab=ft,t.Toast=mt,t.Tooltip=J,t.Util=d,Object.defineProperty(t,"__esModule",{value:!0})}));
(function webpackUniversalModuleDefinition(root, factory){
if(typeof exports==='object'&&typeof module==='object')
module.exports=factory();
else if(typeof define==='function'&&define.amd)
define([], factory);
else if(typeof exports==='object')
exports["SlimSelect"]=factory();
else
root["SlimSelect"]=factory();
})(window, function(){
return  (function(modules){
var installedModules={};
function __webpack_require__(moduleId){
if(installedModules[moduleId]){
return installedModules[moduleId].exports;
}
var module=installedModules[moduleId]={
i: moduleId,
l: false,
exports: {}
};
modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
module.l=true;
return module.exports;
}
__webpack_require__.m=modules;
__webpack_require__.c=installedModules;
__webpack_require__.d=function(exports, name, getter){
if(!__webpack_require__.o(exports, name)){
Object.defineProperty(exports, name, { enumerable: true, get: getter });
}
};
__webpack_require__.r=function(exports){
if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
}
Object.defineProperty(exports, '__esModule', { value: true });
};
__webpack_require__.t=function(value, mode){
if(mode & 1) value=__webpack_require__(value);
if(mode & 8) return value;
if((mode & 4)&&typeof value==='object'&&value&&value.__esModule) return value;
var ns=Object.create(null);
__webpack_require__.r(ns);
Object.defineProperty(ns, 'default', { enumerable: true, value: value });
if(mode & 2&&typeof value!='string') for(var key in value) __webpack_require__.d(ns, key, function(key){ return value[key]; }.bind(null, key));
return ns;
};
__webpack_require__.n=function(module){
var getter=module&&module.__esModule ?
function getDefault(){ return module['default']; } :
function getModuleExports(){ return module; };
__webpack_require__.d(getter, 'a', getter);
return getter;
};
__webpack_require__.o=function(object, property){ return Object.prototype.hasOwnProperty.call(object, property); };
__webpack_require__.p="";
return __webpack_require__(__webpack_require__.s=2);
})
([
(function(module, exports, __webpack_require__){
"use strict";
exports.__esModule=true;
function hasClassInTree(element, className){
function hasClass(e, c){
if(!(!c||!e||!e.classList||!e.classList.contains(c))){
return e;
}
return null;
}
function parentByClass(e, c){
if(!e||e===document){
return null;
}
else if(hasClass(e, c)){
return e;
}else{
return parentByClass(e.parentNode, c);
}}
return hasClass(element, className)||parentByClass(element, className);
}
exports.hasClassInTree=hasClassInTree;
function ensureElementInView(container, element){
var cTop=container.scrollTop + container.offsetTop;
var cBottom=cTop + container.clientHeight;
var eTop=element.offsetTop;
var eBottom=eTop + element.clientHeight;
if(eTop < cTop){
container.scrollTop -=(cTop - eTop);
}
else if(eBottom > cBottom){
container.scrollTop +=(eBottom - cBottom);
}}
exports.ensureElementInView=ensureElementInView;
function putContent(el, currentPosition, isOpen){
var height=el.offsetHeight;
var rect=el.getBoundingClientRect();
var elemTop=(isOpen ? rect.top:rect.top - height);
var elemBottom=(isOpen ? rect.bottom:rect.bottom + height);
if(elemTop <=0){
return 'below';
}
if(elemBottom >=window.innerHeight){
return 'above';
}
return (isOpen ? currentPosition:'below');
}
exports.putContent=putContent;
function debounce(func, wait, immediate){
if(wait===void 0){ wait=100; }
if(immediate===void 0){ immediate=false; }
var timeout;
return function (){
var args=[];
for (var _i=0; _i < arguments.length; _i++){
args[_i]=arguments[_i];
}
var context=self;
var later=function (){
timeout=null;
if(!immediate){
func.apply(context, args);
}};
var callNow=immediate&&!timeout;
clearTimeout(timeout);
timeout=setTimeout(later, wait);
if(callNow){
func.apply(context, args);
}};}
exports.debounce=debounce;
function isValueInArrayOfObjects(selected, key, value){
if(!Array.isArray(selected)){
return selected[key]===value;
}
for (var _i=0, selected_1=selected; _i < selected_1.length; _i++){
var s=selected_1[_i];
if(s&&s[key]&&s[key]===value){
return true;
}}
return false;
}
exports.isValueInArrayOfObjects=isValueInArrayOfObjects;
function highlight(str, search, className){
var completedString=str;
var regex=new RegExp('(' + search.trim() + ')(?![^<]*>[^<>]*</)', 'i');
if(!str.match(regex)){
return str;
}
var matchStartPosition=str.match(regex).index;
var matchEndPosition=matchStartPosition + str.match(regex)[0].toString().length;
var originalTextFoundByRegex=str.substring(matchStartPosition, matchEndPosition);
completedString=completedString.replace(regex, "<mark class=\"" + className + "\">" + originalTextFoundByRegex + "</mark>");
return completedString;
}
exports.highlight=highlight;
function kebabCase(str){
var result=str.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g, function (match){ return '-' + match.toLowerCase(); });
return (str[0]===str[0].toUpperCase())
? result.substring(1)
: result;
}
exports.kebabCase=kebabCase;
(function (){
var w=window;
if(typeof w.CustomEvent==='function'){
return;
}
function CustomEvent(event, params){
params=params||{ bubbles: false, cancelable: false, detail: undefined };
var evt=document.createEvent('CustomEvent');
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
return evt;
}
CustomEvent.prototype=w.Event.prototype;
w.CustomEvent=CustomEvent;
})();
}),
(function(module, exports, __webpack_require__){
"use strict";
exports.__esModule=true;
var Data=(function (){
function Data(info){
this.contentOpen=false;
this.contentPosition='below';
this.isOnChangeEnabled=true;
this.main=info.main;
this.searchValue='';
this.data=[];
this.filtered=null;
this.parseSelectData();
this.setSelectedFromSelect();
}
Data.prototype.newOption=function (info){
return {
id: (info.id ? info.id:String(Math.floor(Math.random() * 100000000))),
value: (info.value ? info.value:''),
text: (info.text ? info.text:''),
innerHTML: (info.innerHTML ? info.innerHTML:''),
selected: (info.selected ? info.selected:false),
display: (info.display!==undefined ? info.display:true),
disabled: (info.disabled ? info.disabled:false),
placeholder: (info.placeholder ? info.placeholder:false),
"class": (info["class"] ? info["class"]:undefined),
data: (info.data ? info.data:{}),
mandatory: (info.mandatory ? info.mandatory:false)
};};
Data.prototype.add=function (data){
this.data.push({
id: String(Math.floor(Math.random() * 100000000)),
value: data.value,
text: data.text,
innerHTML: '',
selected: false,
display: true,
disabled: false,
placeholder: false,
"class": undefined,
mandatory: data.mandatory,
data: {}});
};
Data.prototype.parseSelectData=function (){
this.data=[];
var nodes=this.main.select.element.childNodes;
for (var _i=0, nodes_1=nodes; _i < nodes_1.length; _i++){
var n=nodes_1[_i];
if(n.nodeName==='OPTGROUP'){
var node=n;
var optgroup={
label: node.label,
options: []
};
var options=n.childNodes;
for (var _a=0, options_1=options; _a < options_1.length; _a++){
var o=options_1[_a];
if(o.nodeName==='OPTION'){
var option=this.pullOptionData(o);
optgroup.options.push(option);
if(option.placeholder&&option.text.trim()!==''){
this.main.config.placeholderText=option.text;
}}
}
this.data.push(optgroup);
}
else if(n.nodeName==='OPTION'){
var option=this.pullOptionData(n);
this.data.push(option);
if(option.placeholder&&option.text.trim()!==''){
this.main.config.placeholderText=option.text;
}}
}};
Data.prototype.pullOptionData=function (option){
return {
id: (option.dataset ? option.dataset.id:false)||String(Math.floor(Math.random() * 100000000)),
value: option.value,
text: option.text,
innerHTML: option.innerHTML,
selected: option.selected,
disabled: option.disabled,
placeholder: option.dataset.placeholder==='true',
"class": option.className,
style: option.style.cssText,
data: option.dataset,
mandatory: (option.dataset ? option.dataset.mandatory==='true':false)
};};
Data.prototype.setSelectedFromSelect=function (){
if(this.main.config.isMultiple){
var options=this.main.select.element.options;
var newSelected=[];
for (var _i=0, options_2=options; _i < options_2.length; _i++){
var o=options_2[_i];
if(o.selected){
var newOption=this.getObjectFromData(o.value, 'value');
if(newOption&&newOption.id){
newSelected.push(newOption.id);
}}
}
this.setSelected(newSelected, 'id');
}else{
var element=this.main.select.element;
if(element.selectedIndex!==-1){
var option=element.options[element.selectedIndex];
var value=option.value;
this.setSelected(value, 'value');
}}
};
Data.prototype.setSelected=function (value, type){
if(type===void 0){ type='id'; }
for (var _i=0, _a=this.data; _i < _a.length; _i++){
var d=_a[_i];
if(d.hasOwnProperty('label')){
if(d.hasOwnProperty('options')){
var options=d.options;
if(options){
for (var _b=0, options_3=options; _b < options_3.length; _b++){
var o=options_3[_b];
if(o.placeholder){
continue;
}
o.selected=this.shouldBeSelected(o, value, type);
}}
}}else{
d.selected=this.shouldBeSelected(d, value, type);
}}
};
Data.prototype.shouldBeSelected=function (option, value, type){
if(type===void 0){ type='id'; }
if(Array.isArray(value)){
for (var _i=0, value_1=value; _i < value_1.length; _i++){
var v=value_1[_i];
if(type in option&&String(option[type])===String(v)){
return true;
}}
}else{
if(type in option&&String(option[type])===String(value)){
return true;
}}
return false;
};
Data.prototype.getSelected=function (){
var value={ text: '', placeholder: this.main.config.placeholderText };
var values=[];
for (var _i=0, _a=this.data; _i < _a.length; _i++){
var d=_a[_i];
if(d.hasOwnProperty('label')){
if(d.hasOwnProperty('options')){
var options=d.options;
if(options){
for (var _b=0, options_4=options; _b < options_4.length; _b++){
var o=options_4[_b];
if(o.selected){
if(!this.main.config.isMultiple){
value=o;
}else{
values.push(o);
}}
}}
}}else{
if(d.selected){
if(!this.main.config.isMultiple){
value=d;
}else{
values.push(d);
}}
}}
if(this.main.config.isMultiple){
return values;
}
return value;
};
Data.prototype.addToSelected=function (value, type){
if(type===void 0){ type='id'; }
if(this.main.config.isMultiple){
var values=[];
var selected=this.getSelected();
if(Array.isArray(selected)){
for (var _i=0, selected_1=selected; _i < selected_1.length; _i++){
var s=selected_1[_i];
values.push(s[type]);
}}
values.push(value);
this.setSelected(values, type);
}};
Data.prototype.removeFromSelected=function (value, type){
if(type===void 0){ type='id'; }
if(this.main.config.isMultiple){
var values=[];
var selected=this.getSelected();
for (var _i=0, selected_2=selected; _i < selected_2.length; _i++){
var s=selected_2[_i];
if(String(s[type])!==String(value)){
values.push(s[type]);
}}
this.setSelected(values, type);
}};
Data.prototype.onDataChange=function (){
if(this.main.onChange&&this.isOnChangeEnabled){
this.main.onChange(JSON.parse(JSON.stringify(this.getSelected())));
}};
Data.prototype.getObjectFromData=function (value, type){
if(type===void 0){ type='id'; }
for (var _i=0, _a=this.data; _i < _a.length; _i++){
var d=_a[_i];
if(type in d&&String(d[type])===String(value)){
return d;
}
if(d.hasOwnProperty('options')){
var optgroupObject=d;
if(optgroupObject.options){
for (var _b=0, _c=optgroupObject.options; _b < _c.length; _b++){
var oo=_c[_b];
if(String(oo[type])===String(value)){
return oo;
}}
}}
}
return null;
};
Data.prototype.search=function (search){
this.searchValue=search;
if(search.trim()===''){
this.filtered=null;
return;
}
var searchFilter=this.main.config.searchFilter;
var valuesArray=this.data.slice(0);
search=search.trim();
var filtered=valuesArray.map(function (obj){
if(obj.hasOwnProperty('options')){
var optgroupObj=obj;
var options=[];
if(optgroupObj.options){
options=optgroupObj.options.filter(function (opt){
return searchFilter(opt, search);
});
}
if(options.length!==0){
var optgroup=Object.assign({}, optgroupObj);
optgroup.options=options;
return optgroup;
}}
if(obj.hasOwnProperty('text')){
var optionObj=obj;
if(searchFilter(optionObj, search)){
return obj;
}}
return null;
});
this.filtered=filtered.filter(function (info){ return info; });
};
return Data;
}());
exports.Data=Data;
function validateData(data){
if(!data){
console.error('Data must be an array of objects');
return false;
}
var isValid=false;
var errorCount=0;
for (var _i=0, data_1=data; _i < data_1.length; _i++){
var d=data_1[_i];
if(d.hasOwnProperty('label')){
if(d.hasOwnProperty('options')){
var optgroup=d;
var options=optgroup.options;
if(options){
for (var _a=0, options_5=options; _a < options_5.length; _a++){
var o=options_5[_a];
isValid=validateOption(o);
if(!isValid){
errorCount++;
}}
}}
}else{
var option=d;
isValid=validateOption(option);
if(!isValid){
errorCount++;
}}
}
return errorCount===0;
}
exports.validateData=validateData;
function validateOption(option){
if(option.text===undefined){
console.error('Data object option must have at least have a text value. Check object: ' + JSON.stringify(option));
return false;
}
return true;
}
exports.validateOption=validateOption;
}),
(function(module, exports, __webpack_require__){
"use strict";
exports.__esModule=true;
var config_1=__webpack_require__(3);
var select_1=__webpack_require__(4);
var slim_1=__webpack_require__(5);
var data_1=__webpack_require__(1);
var helper_1=__webpack_require__(0);
var SlimSelect=(function (){
function SlimSelect(info){
var _this=this;
this.ajax=null;
this.addable=null;
this.beforeOnChange=null;
this.onChange=null;
this.beforeOpen=null;
this.afterOpen=null;
this.beforeClose=null;
this.afterClose=null;
var selectElement=this.validate(info);
if(selectElement.dataset.ssid){
this.destroy(selectElement.dataset.ssid);
}
if(info.ajax){
this.ajax=info.ajax;
}
if(info.addable){
this.addable=info.addable;
}
this.config=new config_1.Config({
select: selectElement,
isAjax: (info.ajax ? true:false),
showSearch: info.showSearch,
searchPlaceholder: info.searchPlaceholder,
searchText: info.searchText,
searchingText: info.searchingText,
searchFocus: info.searchFocus,
searchHighlight: info.searchHighlight,
searchFilter: info.searchFilter,
closeOnSelect: info.closeOnSelect,
showContent: info.showContent,
placeholderText: info.placeholder,
allowDeselect: info.allowDeselect,
allowDeselectOption: info.allowDeselectOption,
hideSelectedOption: info.hideSelectedOption,
deselectLabel: info.deselectLabel,
isEnabled: info.isEnabled,
valuesUseText: info.valuesUseText,
showOptionTooltips: info.showOptionTooltips,
selectByGroup: info.selectByGroup,
limit: info.limit,
timeoutDelay: info.timeoutDelay,
addToBody: info.addToBody
});
this.select=new select_1.Select({
select: selectElement,
main: this
});
this.data=new data_1.Data({ main: this });
this.slim=new slim_1.Slim({ main: this });
if(this.select.element.parentNode){
this.select.element.parentNode.insertBefore(this.slim.container, this.select.element.nextSibling);
}
if(info.data){
this.setData(info.data);
}else{
this.render();
}
document.addEventListener('click', function (e){
if(e.target&&!helper_1.hasClassInTree(e.target, _this.config.id)){
_this.close();
}});
if(this.config.showContent==='auto'){
window.addEventListener('scroll', helper_1.debounce(function (e){
if(_this.data.contentOpen){
if(helper_1.putContent(_this.slim.content, _this.data.contentPosition, _this.data.contentOpen)==='above'){
_this.moveContentAbove();
}else{
_this.moveContentBelow();
}}
}), false);
}
if(info.beforeOnChange){
this.beforeOnChange=info.beforeOnChange;
}
if(info.onChange){
this.onChange=info.onChange;
}
if(info.beforeOpen){
this.beforeOpen=info.beforeOpen;
}
if(info.afterOpen){
this.afterOpen=info.afterOpen;
}
if(info.beforeClose){
this.beforeClose=info.beforeClose;
}
if(info.afterClose){
this.afterClose=info.afterClose;
}
if(!this.config.isEnabled){
this.disable();
}}
SlimSelect.prototype.validate=function (info){
var select=(typeof info.select==='string' ? document.querySelector(info.select):info.select);
if(!select){
throw new Error('Could not find select element');
}
if(select.tagName!=='SELECT'){
throw new Error('Element isnt of type select');
}
return select;
};
SlimSelect.prototype.selected=function (){
if(this.config.isMultiple){
var selected=this.data.getSelected();
var outputSelected=[];
for (var _i=0, selected_1=selected; _i < selected_1.length; _i++){
var s=selected_1[_i];
outputSelected.push(s.value);
}
return outputSelected;
}else{
var selected=this.data.getSelected();
return (selected ? selected.value:'');
}};
SlimSelect.prototype.set=function (value, type, close, render){
if(type===void 0){ type='value'; }
if(close===void 0){ close=true; }
if(render===void 0){ render=true; }
if(this.config.isMultiple&&!Array.isArray(value)){
this.data.addToSelected(value, type);
}else{
this.data.setSelected(value, type);
}
this.select.setValue();
this.data.onDataChange();
this.render();
if(close){
this.close();
}};
SlimSelect.prototype.setSelected=function (value, type, close, render){
if(type===void 0){ type='value'; }
if(close===void 0){ close=true; }
if(render===void 0){ render=true; }
this.set(value, type, close, render);
};
SlimSelect.prototype.setData=function (data){
var isValid=data_1.validateData(data);
if(!isValid){
console.error('Validation problem on: #' + this.select.element.id);
return;
}
var newData=JSON.parse(JSON.stringify(data));
var selected=this.data.getSelected();
if(this.config.isAjax&&selected){
if(this.config.isMultiple){
var reverseSelected=selected.reverse();
for (var _i=0, reverseSelected_1=reverseSelected; _i < reverseSelected_1.length; _i++){
var r=reverseSelected_1[_i];
newData.unshift(r);
}}else{
newData.unshift(this.data.getSelected());
newData.unshift({ text: '', placeholder: true });
}}
this.select.create(newData);
this.data.parseSelectData();
this.data.setSelectedFromSelect();
};
SlimSelect.prototype.addData=function (data){
var isValid=data_1.validateData([data]);
if(!isValid){
console.error('Validation problem on: #' + this.select.element.id);
return;
}
this.data.add(this.data.newOption(data));
this.select.create(this.data.data);
this.data.parseSelectData();
this.data.setSelectedFromSelect();
this.render();
};
SlimSelect.prototype.open=function (){
var _this=this;
if(!this.config.isEnabled){
return;
}
if(this.data.contentOpen){
return;
}
if(this.beforeOpen){
this.beforeOpen();
}
if(this.config.isMultiple&&this.slim.multiSelected){
this.slim.multiSelected.plus.classList.add('ss-cross');
}
else if(this.slim.singleSelected){
this.slim.singleSelected.arrowIcon.arrow.classList.remove('arrow-down');
this.slim.singleSelected.arrowIcon.arrow.classList.add('arrow-up');
}
this.slim[(this.config.isMultiple ? 'multiSelected':'singleSelected')].container.classList.add((this.data.contentPosition==='above' ? this.config.openAbove:this.config.openBelow));
if(this.config.addToBody){
var containerRect=this.slim.container.getBoundingClientRect();
this.slim.content.style.top=(containerRect.top + containerRect.height + window.scrollY) + 'px';
this.slim.content.style.left=(containerRect.left + window.scrollX) + 'px';
this.slim.content.style.width=containerRect.width + 'px';
}
this.slim.content.classList.add(this.config.open);
if(this.config.showContent.toLowerCase()==='up'){
this.moveContentAbove();
}
else if(this.config.showContent.toLowerCase()==='down'){
this.moveContentBelow();
}else{
if(helper_1.putContent(this.slim.content, this.data.contentPosition, this.data.contentOpen)==='above'){
this.moveContentAbove();
}else{
this.moveContentBelow();
}}
if(!this.config.isMultiple){
var selected=this.data.getSelected();
if(selected){
var selectedId=selected.id;
var selectedOption=this.slim.list.querySelector('[data-id="' + selectedId + '"]');
if(selectedOption){
helper_1.ensureElementInView(this.slim.list, selectedOption);
}}
}
setTimeout(function (){
_this.data.contentOpen=true;
if(_this.config.searchFocus){
_this.slim.search.input.focus();
}
if(_this.afterOpen){
_this.afterOpen();
}}, this.config.timeoutDelay);
};
SlimSelect.prototype.close=function (){
var _this=this;
if(!this.data.contentOpen){
return;
}
if(this.beforeClose){
this.beforeClose();
}
if(this.config.isMultiple&&this.slim.multiSelected){
this.slim.multiSelected.container.classList.remove(this.config.openAbove);
this.slim.multiSelected.container.classList.remove(this.config.openBelow);
this.slim.multiSelected.plus.classList.remove('ss-cross');
}
else if(this.slim.singleSelected){
this.slim.singleSelected.container.classList.remove(this.config.openAbove);
this.slim.singleSelected.container.classList.remove(this.config.openBelow);
this.slim.singleSelected.arrowIcon.arrow.classList.add('arrow-down');
this.slim.singleSelected.arrowIcon.arrow.classList.remove('arrow-up');
}
this.slim.content.classList.remove(this.config.open);
this.data.contentOpen=false;
this.search('');
setTimeout(function (){
_this.slim.content.removeAttribute('style');
_this.data.contentPosition='below';
if(_this.config.isMultiple&&_this.slim.multiSelected){
_this.slim.multiSelected.container.classList.remove(_this.config.openAbove);
_this.slim.multiSelected.container.classList.remove(_this.config.openBelow);
}
else if(_this.slim.singleSelected){
_this.slim.singleSelected.container.classList.remove(_this.config.openAbove);
_this.slim.singleSelected.container.classList.remove(_this.config.openBelow);
}
_this.slim.search.input.blur();
if(_this.afterClose){
_this.afterClose();
}}, this.config.timeoutDelay);
};
SlimSelect.prototype.moveContentAbove=function (){
var selectHeight=0;
if(this.config.isMultiple&&this.slim.multiSelected){
selectHeight=this.slim.multiSelected.container.offsetHeight;
}
else if(this.slim.singleSelected){
selectHeight=this.slim.singleSelected.container.offsetHeight;
}
var contentHeight=this.slim.content.offsetHeight;
var height=selectHeight + contentHeight - 1;
this.slim.content.style.margin='-' + height + 'px 0 0 0';
this.slim.content.style.height=(height - selectHeight + 1) + 'px';
this.slim.content.style.transformOrigin='center bottom';
this.data.contentPosition='above';
if(this.config.isMultiple&&this.slim.multiSelected){
this.slim.multiSelected.container.classList.remove(this.config.openBelow);
this.slim.multiSelected.container.classList.add(this.config.openAbove);
}
else if(this.slim.singleSelected){
this.slim.singleSelected.container.classList.remove(this.config.openBelow);
this.slim.singleSelected.container.classList.add(this.config.openAbove);
}};
SlimSelect.prototype.moveContentBelow=function (){
this.data.contentPosition='below';
if(this.config.isMultiple&&this.slim.multiSelected){
this.slim.multiSelected.container.classList.remove(this.config.openAbove);
this.slim.multiSelected.container.classList.add(this.config.openBelow);
}
else if(this.slim.singleSelected){
this.slim.singleSelected.container.classList.remove(this.config.openAbove);
this.slim.singleSelected.container.classList.add(this.config.openBelow);
}};
SlimSelect.prototype.enable=function (){
this.config.isEnabled=true;
if(this.config.isMultiple&&this.slim.multiSelected){
this.slim.multiSelected.container.classList.remove(this.config.disabled);
}
else if(this.slim.singleSelected){
this.slim.singleSelected.container.classList.remove(this.config.disabled);
}
this.select.triggerMutationObserver=false;
this.select.element.disabled=false;
this.slim.search.input.disabled=false;
this.select.triggerMutationObserver=true;
};
SlimSelect.prototype.disable=function (){
this.config.isEnabled=false;
if(this.config.isMultiple&&this.slim.multiSelected){
this.slim.multiSelected.container.classList.add(this.config.disabled);
}
else if(this.slim.singleSelected){
this.slim.singleSelected.container.classList.add(this.config.disabled);
}
this.select.triggerMutationObserver=false;
this.select.element.disabled=true;
this.slim.search.input.disabled=true;
this.select.triggerMutationObserver=true;
};
SlimSelect.prototype.search=function (value){
if(this.data.searchValue!==value){
this.slim.search.input.value=value;
if(this.config.isAjax){
var master_1=this;
this.config.isSearching=true;
this.render();
if(this.ajax){
this.ajax(value, function (info){
master_1.config.isSearching=false;
if(Array.isArray(info)){
info.unshift({ text: '', placeholder: true });
master_1.setData(info);
master_1.data.search(value);
master_1.render();
}
else if(typeof info==='string'){
master_1.slim.options(info);
}else{
master_1.render();
}});
}}else{
this.data.search(value);
this.render();
}}
};
SlimSelect.prototype.setSearchText=function (text){
this.config.searchText=text;
};
SlimSelect.prototype.render=function (){
if(this.config.isMultiple){
this.slim.values();
}else{
this.slim.placeholder();
this.slim.deselect();
}
this.slim.options();
};
SlimSelect.prototype.destroy=function (id){
if(id===void 0){ id=null; }
var slim=(id ? document.querySelector('.' + id + '.ss-main'):this.slim.container);
var select=(id ? document.querySelector("[data-ssid=" + id + "]"):this.select.element);
if(!slim||!select){
return;
}
select.style.display='';
delete select.dataset.ssid;
var el=select;
el.slim=null;
if(slim.parentElement){
slim.parentElement.removeChild(slim);
}
if(this.config.addToBody){
var slimContent=(id ? document.querySelector('.' + id + '.ss-content'):this.slim.content);
if(!slimContent){
return;
}
document.body.removeChild(slimContent);
}};
return SlimSelect;
}());
exports["default"]=SlimSelect;
}),
(function(module, exports, __webpack_require__){
"use strict";
exports.__esModule=true;
var Config=(function (){
function Config(info){
this.id='';
this.isMultiple=false;
this.isAjax=false;
this.isSearching=false;
this.showSearch=true;
this.searchFocus=true;
this.searchHighlight=false;
this.closeOnSelect=true;
this.showContent='auto';
this.searchPlaceholder='Search';
this.searchText='No Results';
this.searchingText='Searching...';
this.placeholderText='Select Value';
this.allowDeselect=false;
this.allowDeselectOption=false;
this.hideSelectedOption=false;
this.deselectLabel='x';
this.isEnabled=true;
this.valuesUseText=false;
this.showOptionTooltips=false;
this.selectByGroup=false;
this.limit=0;
this.timeoutDelay=200;
this.addToBody=false;
this.main='ss-main';
this.singleSelected='ss-single-selected';
this.arrow='ss-arrow';
this.multiSelected='ss-multi-selected';
this.add='ss-add';
this.plus='ss-plus';
this.values='ss-values';
this.value='ss-value';
this.valueText='ss-value-text';
this.valueDelete='ss-value-delete';
this.content='ss-content';
this.open='ss-open';
this.openAbove='ss-open-above';
this.openBelow='ss-open-below';
this.search='ss-search';
this.searchHighlighter='ss-search-highlight';
this.addable='ss-addable';
this.list='ss-list';
this.optgroup='ss-optgroup';
this.optgroupLabel='ss-optgroup-label';
this.optgroupLabelSelectable='ss-optgroup-label-selectable';
this.option='ss-option';
this.optionSelected='ss-option-selected';
this.highlighted='ss-highlighted';
this.disabled='ss-disabled';
this.hide='ss-hide';
this.id='ss-' + Math.floor(Math.random() * 100000);
this.style=info.select.style.cssText;
this["class"]=info.select.className.split(' ');
this.isMultiple=info.select.multiple;
this.isAjax=info.isAjax;
this.showSearch=(info.showSearch===false ? false:true);
this.searchFocus=(info.searchFocus===false ? false:true);
this.searchHighlight=(info.searchHighlight===true ? true:false);
this.closeOnSelect=(info.closeOnSelect===false ? false:true);
if(info.showContent){
this.showContent=info.showContent;
}
this.isEnabled=(info.isEnabled===false ? false:true);
if(info.searchPlaceholder){
this.searchPlaceholder=info.searchPlaceholder;
}
if(info.searchText){
this.searchText=info.searchText;
}
if(info.searchingText){
this.searchingText=info.searchingText;
}
if(info.placeholderText){
this.placeholderText=info.placeholderText;
}
this.allowDeselect=(info.allowDeselect===true ? true:false);
this.allowDeselectOption=(info.allowDeselectOption===true ? true:false);
this.hideSelectedOption=(info.hideSelectedOption===true ? true:false);
if(info.deselectLabel){
this.deselectLabel=info.deselectLabel;
}
if(info.valuesUseText){
this.valuesUseText=info.valuesUseText;
}
if(info.showOptionTooltips){
this.showOptionTooltips=info.showOptionTooltips;
}
if(info.selectByGroup){
this.selectByGroup=info.selectByGroup;
}
if(info.limit){
this.limit=info.limit;
}
if(info.searchFilter){
this.searchFilter=info.searchFilter;
}
if(info.timeoutDelay!=null){
this.timeoutDelay=info.timeoutDelay;
}
this.addToBody=(info.addToBody===true ? true:false);
}
Config.prototype.searchFilter=function (opt, search){
return opt.text.toLowerCase().indexOf(search.toLowerCase())!==-1;
};
return Config;
}());
exports.Config=Config;
}),
(function(module, exports, __webpack_require__){
"use strict";
exports.__esModule=true;
var helper_1=__webpack_require__(0);
var Select=(function (){
function Select(info){
this.triggerMutationObserver=true;
this.element=info.select;
this.main=info.main;
if(this.element.disabled){
this.main.config.isEnabled=false;
}
this.addAttributes();
this.addEventListeners();
this.mutationObserver=null;
this.addMutationObserver();
var el=this.element;
el.slim=info.main;
}
Select.prototype.setValue=function (){
if(!this.main.data.getSelected()){
return;
}
if(this.main.config.isMultiple){
var selected=this.main.data.getSelected();
var options=this.element.options;
for (var _i=0, options_1=options; _i < options_1.length; _i++){
var o=options_1[_i];
o.selected=false;
for (var _a=0, selected_1=selected; _a < selected_1.length; _a++){
var s=selected_1[_a];
if(s.value===o.value){
o.selected=true;
}}
}}else{
var selected=this.main.data.getSelected();
this.element.value=(selected ? selected.value:'');
}
this.main.data.isOnChangeEnabled=false;
this.element.dispatchEvent(new CustomEvent('change', { bubbles: true }));
this.main.data.isOnChangeEnabled=true;
};
Select.prototype.addAttributes=function (){
this.element.tabIndex=-1;
this.element.style.display='none';
this.element.dataset.ssid=this.main.config.id;
};
Select.prototype.addEventListeners=function (){
var _this=this;
this.element.addEventListener('change', function (e){
_this.main.data.setSelectedFromSelect();
_this.main.render();
});
};
Select.prototype.addMutationObserver=function (){
var _this=this;
if(this.main.config.isAjax){
return;
}
this.mutationObserver=new MutationObserver(function (mutations){
if(!_this.triggerMutationObserver){
return;
}
_this.main.data.parseSelectData();
_this.main.data.setSelectedFromSelect();
_this.main.render();
mutations.forEach(function (mutation){
if(mutation.attributeName==='class'){
_this.main.slim.updateContainerDivClass(_this.main.slim.container);
}});
});
this.observeMutationObserver();
};
Select.prototype.observeMutationObserver=function (){
if(!this.mutationObserver){
return;
}
this.mutationObserver.observe(this.element, {
attributes: true,
childList: true,
characterData: true
});
};
Select.prototype.disconnectMutationObserver=function (){
if(this.mutationObserver){
this.mutationObserver.disconnect();
}};
Select.prototype.create=function (data){
this.element.innerHTML='';
for (var _i=0, data_1=data; _i < data_1.length; _i++){
var d=data_1[_i];
if(d.hasOwnProperty('options')){
var optgroupObject=d;
var optgroupEl=document.createElement('optgroup');
optgroupEl.label=optgroupObject.label;
if(optgroupObject.options){
for (var _a=0, _b=optgroupObject.options; _a < _b.length; _a++){
var oo=_b[_a];
optgroupEl.appendChild(this.createOption(oo));
}}
this.element.appendChild(optgroupEl);
}else{
this.element.appendChild(this.createOption(d));
}}
};
Select.prototype.createOption=function (info){
var optionEl=document.createElement('option');
optionEl.value=info.value!=='' ? info.value:info.text;
optionEl.innerHTML=info.innerHTML||info.text;
if(info.selected){
optionEl.selected=info.selected;
}
if(info.display===false){
optionEl.style.display='none';
}
if(info.disabled){
optionEl.disabled=true;
}
if(info.placeholder){
optionEl.setAttribute('data-placeholder', 'true');
}
if(info.mandatory){
optionEl.setAttribute('data-mandatory', 'true');
}
if(info["class"]){
info["class"].split(' ').forEach(function (optionClass){
optionEl.classList.add(optionClass);
});
}
if(info.data&&typeof info.data==='object'){
Object.keys(info.data).forEach(function (key){
optionEl.setAttribute('data-' + helper_1.kebabCase(key), info.data[key]);
});
}
return optionEl;
};
return Select;
}());
exports.Select=Select;
}),
(function(module, exports, __webpack_require__){
"use strict";
exports.__esModule=true;
var helper_1=__webpack_require__(0);
var data_1=__webpack_require__(1);
var Slim=(function (){
function Slim(info){
this.main=info.main;
this.container=this.containerDiv();
this.content=this.contentDiv();
this.search=this.searchDiv();
this.list=this.listDiv();
this.options();
this.singleSelected=null;
this.multiSelected=null;
if(this.main.config.isMultiple){
this.multiSelected=this.multiSelectedDiv();
if(this.multiSelected){
this.container.appendChild(this.multiSelected.container);
}}else{
this.singleSelected=this.singleSelectedDiv();
this.container.appendChild(this.singleSelected.container);
}
if(this.main.config.addToBody){
this.content.classList.add(this.main.config.id);
document.body.appendChild(this.content);
}else{
this.container.appendChild(this.content);
}
this.content.appendChild(this.search.container);
this.content.appendChild(this.list);
}
Slim.prototype.containerDiv=function (){
var container=document.createElement('div');
container.style.cssText=this.main.config.style;
this.updateContainerDivClass(container);
return container;
};
Slim.prototype.updateContainerDivClass=function (container){
this.main.config["class"]=this.main.select.element.className.split(' ');
container.className='';
container.classList.add(this.main.config.id);
container.classList.add(this.main.config.main);
for (var _i=0, _a=this.main.config["class"]; _i < _a.length; _i++){
var c=_a[_i];
if(c.trim()!==''){
container.classList.add(c);
}}
};
Slim.prototype.singleSelectedDiv=function (){
var _this=this;
var container=document.createElement('div');
container.classList.add(this.main.config.singleSelected);
var placeholder=document.createElement('span');
placeholder.classList.add('placeholder');
container.appendChild(placeholder);
var deselect=document.createElement('span');
deselect.innerHTML=this.main.config.deselectLabel;
deselect.classList.add('ss-deselect');
deselect.onclick=function (e){
e.stopPropagation();
if(!_this.main.config.isEnabled){
return;
}
_this.main.set('');
};
container.appendChild(deselect);
var arrowContainer=document.createElement('span');
arrowContainer.classList.add(this.main.config.arrow);
var arrowIcon=document.createElement('span');
arrowIcon.classList.add('arrow-down');
arrowContainer.appendChild(arrowIcon);
container.appendChild(arrowContainer);
container.onclick=function (){
if(!_this.main.config.isEnabled){
return;
}
_this.main.data.contentOpen ? _this.main.close():_this.main.open();
};
return {
container: container,
placeholder: placeholder,
deselect: deselect,
arrowIcon: {
container: arrowContainer,
arrow: arrowIcon
}};};
Slim.prototype.placeholder=function (){
var selected=this.main.data.getSelected();
if(selected===null||(selected&&selected.placeholder)){
var placeholder=document.createElement('span');
placeholder.classList.add(this.main.config.disabled);
placeholder.innerHTML=this.main.config.placeholderText;
if(this.singleSelected){
this.singleSelected.placeholder.innerHTML=placeholder.outerHTML;
}}else{
var selectedValue='';
if(selected){
selectedValue=selected.innerHTML&&this.main.config.valuesUseText!==true ? selected.innerHTML:selected.text;
}
if(this.singleSelected){
this.singleSelected.placeholder.innerHTML=(selected ? selectedValue:'');
}}
};
Slim.prototype.deselect=function (){
if(this.singleSelected){
if(!this.main.config.allowDeselect){
this.singleSelected.deselect.classList.add('ss-hide');
return;
}
if(this.main.selected()===''){
this.singleSelected.deselect.classList.add('ss-hide');
}else{
this.singleSelected.deselect.classList.remove('ss-hide');
}}
};
Slim.prototype.multiSelectedDiv=function (){
var _this=this;
var container=document.createElement('div');
container.classList.add(this.main.config.multiSelected);
var values=document.createElement('div');
values.classList.add(this.main.config.values);
container.appendChild(values);
var add=document.createElement('div');
add.classList.add(this.main.config.add);
var plus=document.createElement('span');
plus.classList.add(this.main.config.plus);
plus.onclick=function (e){
if(_this.main.data.contentOpen){
_this.main.close();
e.stopPropagation();
}};
add.appendChild(plus);
container.appendChild(add);
container.onclick=function (e){
if(!_this.main.config.isEnabled){
return;
}
var target=e.target;
if(!target.classList.contains(_this.main.config.valueDelete)){
_this.main.data.contentOpen ? _this.main.close():_this.main.open();
}};
return {
container: container,
values: values,
add: add,
plus: plus
};};
Slim.prototype.values=function (){
if(!this.multiSelected){
return;
}
var currentNodes=this.multiSelected.values.childNodes;
var selected=this.main.data.getSelected();
var exists;
var nodesToRemove=[];
for (var _i=0, currentNodes_1=currentNodes; _i < currentNodes_1.length; _i++){
var c=currentNodes_1[_i];
exists=true;
for (var _a=0, selected_1=selected; _a < selected_1.length; _a++){
var s=selected_1[_a];
if(String(s.id)===String(c.dataset.id)){
exists=false;
}}
if(exists){
nodesToRemove.push(c);
}}
for (var _b=0, nodesToRemove_1=nodesToRemove; _b < nodesToRemove_1.length; _b++){
var n=nodesToRemove_1[_b];
n.classList.add('ss-out');
this.multiSelected.values.removeChild(n);
}
currentNodes=this.multiSelected.values.childNodes;
for (var s=0; s < selected.length; s++){
exists=false;
for (var _c=0, currentNodes_2=currentNodes; _c < currentNodes_2.length; _c++){
var c=currentNodes_2[_c];
if(String(selected[s].id)===String(c.dataset.id)){
exists=true;
}}
if(!exists){
if(currentNodes.length===0||!HTMLElement.prototype.insertAdjacentElement){
this.multiSelected.values.appendChild(this.valueDiv(selected[s]));
}
else if(s===0){
this.multiSelected.values.insertBefore(this.valueDiv(selected[s]), currentNodes[s]);
}else{
currentNodes[s - 1].insertAdjacentElement('afterend', this.valueDiv(selected[s]));
}}
}
if(selected.length===0){
var placeholder=document.createElement('span');
placeholder.classList.add(this.main.config.disabled);
placeholder.innerHTML=this.main.config.placeholderText;
this.multiSelected.values.innerHTML=placeholder.outerHTML;
}};
Slim.prototype.valueDiv=function (optionObj){
var _this=this;
var value=document.createElement('div');
value.classList.add(this.main.config.value);
value.dataset.id=optionObj.id;
var text=document.createElement('span');
text.classList.add(this.main.config.valueText);
text.innerHTML=(optionObj.innerHTML&&this.main.config.valuesUseText!==true ? optionObj.innerHTML:optionObj.text);
value.appendChild(text);
if(!optionObj.mandatory){
var deleteSpan=document.createElement('span');
deleteSpan.classList.add(this.main.config.valueDelete);
deleteSpan.innerHTML=this.main.config.deselectLabel;
deleteSpan.onclick=function (e){
e.preventDefault();
e.stopPropagation();
var shouldUpdate=false;
if(!_this.main.beforeOnChange){
shouldUpdate=true;
}
if(_this.main.beforeOnChange){
var selected=_this.main.data.getSelected();
var currentValues=JSON.parse(JSON.stringify(selected));
for (var i=0; i < currentValues.length; i++){
if(currentValues[i].id===optionObj.id){
currentValues.splice(i, 1);
}}
var beforeOnchange=_this.main.beforeOnChange(currentValues);
if(beforeOnchange!==false){
shouldUpdate=true;
}}
if(shouldUpdate){
_this.main.data.removeFromSelected(optionObj.id, 'id');
_this.main.render();
_this.main.select.setValue();
_this.main.data.onDataChange();
}};
value.appendChild(deleteSpan);
}
return value;
};
Slim.prototype.contentDiv=function (){
var container=document.createElement('div');
container.classList.add(this.main.config.content);
return container;
};
Slim.prototype.searchDiv=function (){
var _this=this;
var container=document.createElement('div');
var input=document.createElement('input');
var addable=document.createElement('div');
container.classList.add(this.main.config.search);
var searchReturn={
container: container,
input: input
};
if(!this.main.config.showSearch){
container.classList.add(this.main.config.hide);
input.readOnly=true;
}
input.type='search';
input.placeholder=this.main.config.searchPlaceholder;
input.tabIndex=0;
input.setAttribute('aria-label', this.main.config.searchPlaceholder);
input.setAttribute('autocapitalize', 'off');
input.setAttribute('autocomplete', 'off');
input.setAttribute('autocorrect', 'off');
input.onclick=function (e){
setTimeout(function (){
var target=e.target;
if(target.value===''){
_this.main.search('');
}}, 10);
};
input.onkeydown=function (e){
if(e.key==='ArrowUp'){
_this.main.open();
_this.highlightUp();
e.preventDefault();
}
else if(e.key==='ArrowDown'){
_this.main.open();
_this.highlightDown();
e.preventDefault();
}
else if(e.key==='Tab'){
if(!_this.main.data.contentOpen){
setTimeout(function (){ _this.main.close(); }, _this.main.config.timeoutDelay);
}else{
_this.main.close();
}}
else if(e.key==='Enter'){
e.preventDefault();
}};
input.onkeyup=function (e){
var target=e.target;
if(e.key==='Enter'){
if(_this.main.addable&&e.ctrlKey){
addable.click();
e.preventDefault();
e.stopPropagation();
return;
}
var highlighted=_this.list.querySelector('.' + _this.main.config.highlighted);
if(highlighted){
highlighted.click();
}}
else if(e.key==='ArrowUp'||e.key==='ArrowDown'){
}
else if(e.key==='Escape'){
_this.main.close();
}else{
if(_this.main.config.showSearch&&_this.main.data.contentOpen){
_this.main.search(target.value);
}else{
input.value='';
}}
e.preventDefault();
e.stopPropagation();
};
input.onfocus=function (){ _this.main.open(); };
container.appendChild(input);
if(this.main.addable){
addable.classList.add(this.main.config.addable);
addable.innerHTML='+';
addable.onclick=function (e){
if(_this.main.addable){
e.preventDefault();
e.stopPropagation();
var inputValue=_this.search.input.value;
if(inputValue.trim()===''){
_this.search.input.focus();
return;
}
var addableValue=_this.main.addable(inputValue);
var addableValueStr_1='';
if(!addableValue){
return;
}
if(typeof addableValue==='object'){
var validValue=data_1.validateOption(addableValue);
if(validValue){
_this.main.addData(addableValue);
addableValueStr_1=(addableValue.value ? addableValue.value:addableValue.text);
}}else{
_this.main.addData(_this.main.data.newOption({
text: addableValue,
value: addableValue
}));
addableValueStr_1=addableValue;
}
_this.main.search('');
setTimeout(function (){
_this.main.set(addableValueStr_1, 'value', false, false);
}, 100);
if(_this.main.config.closeOnSelect){
setTimeout(function (){
_this.main.close();
}, 100);
}}
};
container.appendChild(addable);
searchReturn.addable=addable;
}
return searchReturn;
};
Slim.prototype.highlightUp=function (){
var highlighted=this.list.querySelector('.' + this.main.config.highlighted);
var prev=null;
if(highlighted){
prev=highlighted.previousSibling;
while (prev!==null){
if(prev.classList.contains(this.main.config.disabled)){
prev=prev.previousSibling;
continue;
}else{
break;
}}
}else{
var allOptions=this.list.querySelectorAll('.' + this.main.config.option + ':not(.' + this.main.config.disabled + ')');
prev=allOptions[allOptions.length - 1];
}
if(prev&&prev.classList.contains(this.main.config.optgroupLabel)){
prev=null;
}
if(prev===null){
var parent_1=highlighted.parentNode;
if(parent_1.classList.contains(this.main.config.optgroup)){
if(parent_1.previousSibling){
var prevNodes=parent_1.previousSibling.querySelectorAll('.' + this.main.config.option + ':not(.' + this.main.config.disabled + ')');
if(prevNodes.length){
prev=prevNodes[prevNodes.length - 1];
}}
}}
if(prev){
if(highlighted){
highlighted.classList.remove(this.main.config.highlighted);
}
prev.classList.add(this.main.config.highlighted);
helper_1.ensureElementInView(this.list, prev);
}};
Slim.prototype.highlightDown=function (){
var highlighted=this.list.querySelector('.' + this.main.config.highlighted);
var next=null;
if(highlighted){
next=highlighted.nextSibling;
while (next!==null){
if(next.classList.contains(this.main.config.disabled)){
next=next.nextSibling;
continue;
}else{
break;
}}
}else{
next=this.list.querySelector('.' + this.main.config.option + ':not(.' + this.main.config.disabled + ')');
}
if(next===null&&highlighted!==null){
var parent_2=highlighted.parentNode;
if(parent_2.classList.contains(this.main.config.optgroup)){
if(parent_2.nextSibling){
var sibling=parent_2.nextSibling;
next=sibling.querySelector('.' + this.main.config.option + ':not(.' + this.main.config.disabled + ')');
}}
}
if(next){
if(highlighted){
highlighted.classList.remove(this.main.config.highlighted);
}
next.classList.add(this.main.config.highlighted);
helper_1.ensureElementInView(this.list, next);
}};
Slim.prototype.listDiv=function (){
var list=document.createElement('div');
list.classList.add(this.main.config.list);
return list;
};
Slim.prototype.options=function (content){
if(content===void 0){ content=''; }
var data=this.main.data.filtered||this.main.data.data;
this.list.innerHTML='';
if(content!==''){
var searching=document.createElement('div');
searching.classList.add(this.main.config.option);
searching.classList.add(this.main.config.disabled);
searching.innerHTML=content;
this.list.appendChild(searching);
return;
}
if(this.main.config.isAjax&&this.main.config.isSearching){
var searching=document.createElement('div');
searching.classList.add(this.main.config.option);
searching.classList.add(this.main.config.disabled);
searching.innerHTML=this.main.config.searchingText;
this.list.appendChild(searching);
return;
}
if(data.length===0){
var noResults=document.createElement('div');
noResults.classList.add(this.main.config.option);
noResults.classList.add(this.main.config.disabled);
noResults.innerHTML=this.main.config.searchText;
this.list.appendChild(noResults);
return;
}
var _loop_1=function (d){
if(d.hasOwnProperty('label')){
var item=d;
var optgroupEl_1=document.createElement('div');
optgroupEl_1.classList.add(this_1.main.config.optgroup);
var optgroupLabel=document.createElement('div');
optgroupLabel.classList.add(this_1.main.config.optgroupLabel);
if(this_1.main.config.selectByGroup&&this_1.main.config.isMultiple){
optgroupLabel.classList.add(this_1.main.config.optgroupLabelSelectable);
}
optgroupLabel.innerHTML=item.label;
optgroupEl_1.appendChild(optgroupLabel);
var options=item.options;
if(options){
for (var _i=0, options_1=options; _i < options_1.length; _i++){
var o=options_1[_i];
optgroupEl_1.appendChild(this_1.option(o));
}
if(this_1.main.config.selectByGroup&&this_1.main.config.isMultiple){
var master_1=this_1;
optgroupLabel.addEventListener('click', function (e){
e.preventDefault();
e.stopPropagation();
for (var _i=0, _a=optgroupEl_1.children; _i < _a.length; _i++){
var childEl=_a[_i];
if(childEl.className.indexOf(master_1.main.config.option)!==-1){
childEl.click();
}}
});
}}
this_1.list.appendChild(optgroupEl_1);
}else{
this_1.list.appendChild(this_1.option(d));
}};
var this_1=this;
for (var _i=0, data_2=data; _i < data_2.length; _i++){
var d=data_2[_i];
_loop_1(d);
}};
Slim.prototype.option=function (data){
if(data.placeholder){
var placeholder=document.createElement('div');
placeholder.classList.add(this.main.config.option);
placeholder.classList.add(this.main.config.hide);
return placeholder;
}
var optionEl=document.createElement('div');
optionEl.classList.add(this.main.config.option);
if(data["class"]){
data["class"].split(' ').forEach(function (dataClass){
optionEl.classList.add(dataClass);
});
}
if(data.style){
optionEl.style.cssText=data.style;
}
var selected=this.main.data.getSelected();
optionEl.dataset.id=data.id;
if(this.main.config.searchHighlight&&this.main.slim&&data.innerHTML&&this.main.slim.search.input.value.trim()!==''){
optionEl.innerHTML=helper_1.highlight(data.innerHTML, this.main.slim.search.input.value, this.main.config.searchHighlighter);
}
else if(data.innerHTML){
optionEl.innerHTML=data.innerHTML;
}
if(this.main.config.showOptionTooltips&&optionEl.textContent){
optionEl.setAttribute('title', optionEl.textContent);
}
var master=this;
optionEl.addEventListener('click', function (e){
e.preventDefault();
e.stopPropagation();
var element=this;
var elementID=element.dataset.id;
if(data.selected===true&&master.main.config.allowDeselectOption){
var shouldUpdate=false;
if(!master.main.beforeOnChange||!master.main.config.isMultiple){
shouldUpdate=true;
}
if(master.main.beforeOnChange&&master.main.config.isMultiple){
var selectedValues=master.main.data.getSelected();
var currentValues=JSON.parse(JSON.stringify(selectedValues));
for (var i=0; i < currentValues.length; i++){
if(currentValues[i].id===elementID){
currentValues.splice(i, 1);
}}
var beforeOnchange=master.main.beforeOnChange(currentValues);
if(beforeOnchange!==false){
shouldUpdate=true;
}}
if(shouldUpdate){
if(master.main.config.isMultiple){
master.main.data.removeFromSelected(elementID, 'id');
master.main.render();
master.main.select.setValue();
master.main.data.onDataChange();
}else{
master.main.set('');
}}
}else{
if(data.disabled||data.selected){
return;
}
if(master.main.config.limit&&Array.isArray(selected)&&master.main.config.limit <=selected.length){
return;
}
if(master.main.beforeOnChange){
var value=void 0;
var objectInfo=JSON.parse(JSON.stringify(master.main.data.getObjectFromData(elementID)));
objectInfo.selected=true;
if(master.main.config.isMultiple){
value=JSON.parse(JSON.stringify(selected));
value.push(objectInfo);
}else{
value=JSON.parse(JSON.stringify(objectInfo));
}
var beforeOnchange=master.main.beforeOnChange(value);
if(beforeOnchange!==false){
master.main.set(elementID, 'id', master.main.config.closeOnSelect);
}}else{
master.main.set(elementID, 'id', master.main.config.closeOnSelect);
}}
});
var isSelected=selected&&helper_1.isValueInArrayOfObjects(selected, 'id', data.id);
if(data.disabled||isSelected){
optionEl.onclick=null;
if(!master.main.config.allowDeselectOption){
optionEl.classList.add(this.main.config.disabled);
}
if(master.main.config.hideSelectedOption){
optionEl.classList.add(this.main.config.hide);
}}
if(isSelected){
optionEl.classList.add(this.main.config.optionSelected);
}else{
optionEl.classList.remove(this.main.config.optionSelected);
}
return optionEl;
};
return Slim;
}());
exports.Slim=Slim;
})
])["default"];
});