/*! * Mekari UI v1.0.0-beta (https://bitbucket.org/mekariuitoolkit/mekari-ui-toolkit#readme) * Copyright 2011-2020 Mekari * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ !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=t||self)["mekari-ui"]={},t.jQuery,t.Popper)}(this,function(t,e,i){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,i=i&&i.hasOwnProperty("default")?i.default:i;const n="transitionend";function s(t){let i=!1;return e(this).one(o.TRANSITION_END,()=>{i=!0}),setTimeout(()=>{i||o.triggerTransitionEnd(this)},t),this}const o={TRANSITION_END:"bsTransitionEnd",getUID(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement(t){let e=t.getAttribute("data-target");if(!e||"#"===e){const i=t.getAttribute("href");e=i&&"#"!==i?i.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement(t){if(!t)return 0;let i=e(t).css("transition-duration"),n=e(t).css("transition-delay");const s=parseFloat(i),o=parseFloat(n);return s||o?(i=i.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(i)+parseFloat(n))):0},reflow:t=>t.offsetHeight,triggerTransitionEnd(t){e(t).trigger(n)},supportsTransitionEnd:()=>Boolean(n),isElement:t=>(t[0]||t).nodeType,typeCheckConfig(t,e,i){for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const r=i[s],a=e[s],l=a&&o.isElement(a)?"element":(n=a,{}.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(l))throw new Error(`${t.toUpperCase()}: `+`Option "${s}" provided type "${l}" `+`but expected type "${r}".`)}var n},findShadowRoot(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?o.findShadowRoot(t.parentNode):null}};e.fn.emulateTransitionEnd=s,e.event.special[o.TRANSITION_END]={bindType:n,delegateType:n,handle(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};const r="4.3.1",a="bs.alert",l=`.${a}`,c=e.fn.alert,h={CLOSE:`close${l}`,CLOSED:`closed${l}`,CLICK_DATA_API:`click${l}.data-api`},d={ALERT:"alert",FADE:"fade",SHOW:"show"};class u{constructor(t){this._element=t}static get VERSION(){return r}close(t){let e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)}dispose(){e.removeData(this._element,a),this._element=null}_getRootElement(t){const i=o.getSelectorFromElement(t);let n=!1;return i&&(n=document.querySelector(i)),n||(n=e(t).closest(`.${d.ALERT}`)[0]),n}_triggerCloseEvent(t){const i=e.Event(h.CLOSE);return e(t).trigger(i),i}_removeElement(t){if(e(t).removeClass(d.SHOW),!e(t).hasClass(d.FADE))return void this._destroyElement(t);const i=o.getTransitionDurationFromElement(t);e(t).one(o.TRANSITION_END,e=>this._destroyElement(t,e)).emulateTransitionEnd(i)}_destroyElement(t){e(t).detach().trigger(h.CLOSED).remove()}static _jQueryInterface(t){return this.each(function(){const i=e(this);let n=i.data(a);n||(n=new u(this),i.data(a,n)),"close"===t&&n[t](this)})}static _handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}}e(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',u._handleDismiss(new u)),e.fn.alert=u._jQueryInterface,e.fn.alert.Constructor=u,e.fn.alert.noConflict=()=>(e.fn.alert=c,u._jQueryInterface);const _="4.3.1",g="bs.button",f=`.${g}`,m=e.fn.button,p={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},E={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:'input:not([type="hidden"])',ACTIVE:".active",BUTTON:".btn"},T={CLICK_DATA_API:`click${f}.data-api`,FOCUS_BLUR_DATA_API:`focus${f}.data-api `+`blur${f}.data-api`};class I{constructor(t){this._element=t}static get VERSION(){return _}toggle(){let t=!0,i=!0;const n=e(this._element).closest(E.DATA_TOGGLE)[0];if(n){const s=this._element.querySelector(E.INPUT);if(s){if("radio"===s.type)if(s.checked&&this._element.classList.contains(p.ACTIVE))t=!1;else{const t=n.querySelector(E.ACTIVE);t&&e(t).removeClass(p.ACTIVE)}if(t){if(s.hasAttribute("disabled")||n.hasAttribute("disabled")||s.classList.contains("disabled")||n.classList.contains("disabled"))return;s.checked=!this._element.classList.contains(p.ACTIVE),e(s).trigger("change")}s.focus(),i=!1}}i&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(p.ACTIVE)),t&&e(this._element).toggleClass(p.ACTIVE)}dispose(){e.removeData(this._element,g),this._element=null}static _jQueryInterface(t){return this.each(function(){let i=e(this).data(g);i||(i=new I(this),e(this).data(g,i)),"toggle"===t&&i[t]()})}}e(document).on(T.CLICK_DATA_API,E.DATA_TOGGLE_CARROT,t=>{t.preventDefault();let i=t.target;e(i).hasClass(p.BUTTON)||(i=e(i).closest(E.BUTTON)),I._jQueryInterface.call(e(i),"toggle")}).on(T.FOCUS_BLUR_DATA_API,E.DATA_TOGGLE_CARROT,t=>{const i=e(t.target).closest(E.BUTTON)[0];e(i).toggleClass(p.FOCUS,/^focus(in)?$/.test(t.type))}),e.fn.button=I._jQueryInterface,e.fn.button.Constructor=I,e.fn.button.noConflict=()=>(e.fn.button=m,I._jQueryInterface);const S="carousel",C="4.3.1",A="bs.carousel",D=`.${A}`,O=e.fn[S],v=37,y=39,N=500,w=40,b={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},L={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},P={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},R={SLIDE:`slide${D}`,SLID:`slid${D}`,KEYDOWN:`keydown${D}`,MOUSEENTER:`mouseenter${D}`,MOUSELEAVE:`mouseleave${D}`,TOUCHSTART:`touchstart${D}`,TOUCHMOVE:`touchmove${D}`,TOUCHEND:`touchend${D}`,POINTERDOWN:`pointerdown${D}`,POINTERUP:`pointerup${D}`,DRAG_START:`dragstart${D}`,LOAD_DATA_API:`load${D}.data-api`,CLICK_DATA_API:`click${D}.data-api`},H={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item",POINTER_EVENT:"pointer-event"},$={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",ITEM_IMG:".carousel-item img",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},W={TOUCH:"touch",PEN:"pen"};class k{constructor(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($.INDICATORS),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}static get VERSION(){return C}static get Default(){return b}next(){this._isSliding||this._slide(P.NEXT)}nextWhenVisible(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()}prev(){this._isSliding||this._slide(P.PREV)}pause(t){t||(this._isPaused=!0),this._element.querySelector($.NEXT_PREV)&&(o.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(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))}to(t){this._activeElement=this._element.querySelector($.ACTIVE_ITEM);const i=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void e(this._element).one(R.SLID,()=>this.to(t));if(i===t)return this.pause(),void this.cycle();const n=t>i?P.NEXT:P.PREV;this._slide(n,this._items[t])}dispose(){e(this._element).off(D),e.removeData(this._element,A),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null}_getConfig(t){return t={...b,...t},o.typeCheckConfig(S,t,L),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=w)return;const e=t/this.touchDeltaX;e>0&&this.prev(),e<0&&this.next()}_addEventListeners(){this._config.keyboard&&e(this._element).on(R.KEYDOWN,t=>this._keydown(t)),"hover"===this._config.pause&&e(this._element).on(R.MOUSEENTER,t=>this.pause(t)).on(R.MOUSELEAVE,t=>this.cycle(t)),this._config.touch&&this._addTouchEventListeners()}_addTouchEventListeners(){if(!this._touchSupported)return;const t=t=>{this._pointerEvent&&W[t.originalEvent.pointerType.toUpperCase()]?this.touchStartX=t.originalEvent.clientX:this._pointerEvent||(this.touchStartX=t.originalEvent.touches[0].clientX)},i=t=>{t.originalEvent.touches&&t.originalEvent.touches.length>1?this.touchDeltaX=0:this.touchDeltaX=t.originalEvent.touches[0].clientX-this.touchStartX},n=t=>{this._pointerEvent&&W[t.originalEvent.pointerType.toUpperCase()]&&(this.touchDeltaX=t.originalEvent.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(t=>this.cycle(t),N+this._config.interval))};e(this._element.querySelectorAll($.ITEM_IMG)).on(R.DRAG_START,t=>t.preventDefault()),this._pointerEvent?(e(this._element).on(R.POINTERDOWN,e=>t(e)),e(this._element).on(R.POINTERUP,t=>n(t)),this._element.classList.add(H.POINTER_EVENT)):(e(this._element).on(R.TOUCHSTART,e=>t(e)),e(this._element).on(R.TOUCHMOVE,t=>i(t)),e(this._element).on(R.TOUCHEND,t=>n(t)))}_keydown(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case v:t.preventDefault(),this.prev();break;case y:t.preventDefault(),this.next()}}_getItemIndex(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll($.ITEM)):[],this._items.indexOf(t)}_getItemByDirection(t,e){const i=t===P.NEXT,n=t===P.PREV,s=this._getItemIndex(e),o=this._items.length-1;if((n&&0===s||i&&s===o)&&!this._config.wrap)return e;const r=(s+(t===P.PREV?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]}_triggerSlideEvent(t,i){const n=this._getItemIndex(t),s=this._getItemIndex(this._element.querySelector($.ACTIVE_ITEM)),o=e.Event(R.SLIDE,{relatedTarget:t,direction:i,from:s,to:n});return e(this._element).trigger(o),o}_setActiveIndicatorElement(t){if(this._indicatorsElement){const i=[].slice.call(this._indicatorsElement.querySelectorAll($.ACTIVE));e(i).removeClass(H.ACTIVE);const n=this._indicatorsElement.children[this._getItemIndex(t)];n&&e(n).addClass(H.ACTIVE)}}_slide(t,i){const n=this._element.querySelector($.ACTIVE_ITEM),s=this._getItemIndex(n),r=i||n&&this._getItemByDirection(t,n),a=this._getItemIndex(r),l=Boolean(this._interval);let c,h,d;if(t===P.NEXT?(c=H.LEFT,h=H.NEXT,d=P.LEFT):(c=H.RIGHT,h=H.PREV,d=P.RIGHT),r&&e(r).hasClass(H.ACTIVE))return void(this._isSliding=!1);if(this._triggerSlideEvent(r,d).isDefaultPrevented())return;if(!n||!r)return;this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(r);const u=e.Event(R.SLID,{relatedTarget:r,direction:d,from:s,to:a});if(e(this._element).hasClass(H.SLIDE)){e(r).addClass(h),o.reflow(r),e(n).addClass(c),e(r).addClass(c);const t=parseInt(r.getAttribute("data-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval;const i=o.getTransitionDurationFromElement(n);e(n).one(o.TRANSITION_END,()=>{e(r).removeClass(`${c} ${h}`).addClass(H.ACTIVE),e(n).removeClass(`${H.ACTIVE} ${h} ${c}`),this._isSliding=!1,setTimeout(()=>e(this._element).trigger(u),0)}).emulateTransitionEnd(i)}else e(n).removeClass(H.ACTIVE),e(r).addClass(H.ACTIVE),this._isSliding=!1,e(this._element).trigger(u);l&&this.cycle()}static _jQueryInterface(t){return this.each(function(){let i=e(this).data(A),n={...b,...e(this).data()};"object"==typeof t&&(n={...n,...t});const s="string"==typeof t?t:n.slide;if(i||(i=new k(this,n),e(this).data(A,i)),"number"==typeof t)i.to(t);else if("string"==typeof s){if("undefined"==typeof i[s])throw new TypeError(`No method named "${s}"`);i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())})}static _dataApiClickHandler(t){const i=o.getSelectorFromElement(this);if(!i)return;const n=e(i)[0];if(!n||!e(n).hasClass(H.CAROUSEL))return;const s={...e(n).data(),...e(this).data()},r=this.getAttribute("data-slide-to");r&&(s.interval=!1),k._jQueryInterface.call(e(n),s),r&&e(n).data(A).to(r),t.preventDefault()}}e(document).on(R.CLICK_DATA_API,$.DATA_SLIDE,k._dataApiClickHandler),e(window).on(R.LOAD_DATA_API,()=>{const t=[].slice.call(document.querySelectorAll($.DATA_RIDE));for(let i=0,n=t.length;i(e.fn[S]=O,k._jQueryInterface);const F="collapse",V="4.3.1",M="bs.collapse",U=`.${M}`,j=e.fn[F],x={toggle:!0,parent:""},G={toggle:"boolean",parent:"(string|element)"},B={SHOW:`show${U}`,SHOWN:`shown${U}`,HIDE:`hide${U}`,HIDDEN:`hidden${U}`,CLICK_DATA_API:`click${U}.data-api`},K={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},q={WIDTH:"width",HEIGHT:"height"},Q={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'};class Y{constructor(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}"]`));const i=[].slice.call(document.querySelectorAll(Q.DATA_TOGGLE));for(let e=0,n=i.length;ee===t);null!==s&&r.length>0&&(this._selector=s,this._triggerArray.push(n))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get VERSION(){return V}static get Default(){return x}toggle(){e(this._element).hasClass(K.SHOW)?this.hide():this.show()}show(){if(this._isTransitioning||e(this._element).hasClass(K.SHOW))return;let t,i;if(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(Q.ACTIVES)).filter(t=>"string"==typeof this._config.parent?t.getAttribute("data-parent")===this._config.parent:t.classList.contains(K.COLLAPSE))).length&&(t=null),t&&(i=e(t).not(this._selector).data(M))&&i._isTransitioning)return;const n=e.Event(B.SHOW);if(e(this._element).trigger(n),n.isDefaultPrevented())return;t&&(Y._jQueryInterface.call(e(t).not(this._selector),"hide"),i||e(t).data(M,null));const s=this._getDimension();e(this._element).removeClass(K.COLLAPSE).addClass(K.COLLAPSING),this._element.style[s]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(K.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);const r=`scroll${s[0].toUpperCase()+s.slice(1)}`,a=o.getTransitionDurationFromElement(this._element);e(this._element).one(o.TRANSITION_END,()=>{e(this._element).removeClass(K.COLLAPSING).addClass(K.COLLAPSE).addClass(K.SHOW),this._element.style[s]="",this.setTransitioning(!1),e(this._element).trigger(B.SHOWN)}).emulateTransitionEnd(a),this._element.style[s]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!e(this._element).hasClass(K.SHOW))return;const t=e.Event(B.HIDE);if(e(this._element).trigger(t),t.isDefaultPrevented())return;const i=this._getDimension();this._element.style[i]=`${this._element.getBoundingClientRect()[i]}px`,o.reflow(this._element),e(this._element).addClass(K.COLLAPSING).removeClass(K.COLLAPSE).removeClass(K.SHOW);const n=this._triggerArray.length;if(n>0)for(let t=0;t{this.setTransitioning(!1),e(this._element).removeClass(K.COLLAPSING).addClass(K.COLLAPSE).trigger(B.HIDDEN)}).emulateTransitionEnd(s)}setTransitioning(t){this._isTransitioning=t}dispose(){e.removeData(this._element,M),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null}_getConfig(t){return(t={...x,...t}).toggle=Boolean(t.toggle),o.typeCheckConfig(F,t,G),t}_getDimension(){return e(this._element).hasClass(q.WIDTH)?q.WIDTH:q.HEIGHT}_getParent(){let t;o.isElement(this._config.parent)?(t=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);const i=`[data-toggle="collapse"][data-parent="${this._config.parent}"]`,n=[].slice.call(t.querySelectorAll(i));return e(n).each((t,e)=>{this._addAriaAndCollapsedClass(Y._getTargetFromElement(e),[e])}),t}_addAriaAndCollapsedClass(t,i){const n=e(t).hasClass(K.SHOW);i.length&&e(i).toggleClass(K.COLLAPSED,!n).attr("aria-expanded",n)}static _getTargetFromElement(t){const e=o.getSelectorFromElement(t);return e?document.querySelector(e):null}static _jQueryInterface(t){return this.each(function(){const i=e(this);let n=i.data(M);const s={...x,...i.data(),..."object"==typeof t&&t?t:{}};if(!n&&s.toggle&&/show|hide/.test(t)&&(s.toggle=!1),n||(n=new Y(this,s),i.data(M,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}})}}e(document).on(B.CLICK_DATA_API,Q.DATA_TOGGLE,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();const i=e(this),n=o.getSelectorFromElement(this),s=[].slice.call(document.querySelectorAll(n));e(s).each(function(){const t=e(this),n=t.data(M)?"toggle":i.data();Y._jQueryInterface.call(t,n)})}),e.fn[F]=Y._jQueryInterface,e.fn[F].Constructor=Y,e.fn[F].noConflict=()=>(e.fn[F]=j,Y._jQueryInterface);const X="dropdown",z="4.3.1",Z="bs.dropdown",J=`.${Z}`,tt=e.fn[X],et=27,it=32,nt=9,st=38,ot=40,rt=3,at=new RegExp(`${st}|${ot}|${et}`),lt={HIDE:`hide${J}`,HIDDEN:`hidden${J}`,SHOW:`show${J}`,SHOWN:`shown${J}`,CLICK:`click${J}`,CLICK_DATA_API:`click${J}.data-api`,KEYDOWN_DATA_API:`keydown${J}.data-api`,KEYUP_DATA_API:`keyup${J}.data-api`},ct={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",DROPRIGHT:"dropright",DROPLEFT:"dropleft",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",POSITION_STATIC:"position-static"},ht={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"},dt={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end",RIGHT:"right-start",RIGHTEND:"right-end",LEFT:"left-start",LEFTEND:"left-end"},ut={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},_t={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"};class gt{constructor(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get VERSION(){return z}static get Default(){return ut}static get DefaultType(){return _t}toggle(){if(this._element.disabled||e(this._element).hasClass(ct.DISABLED))return;const t=gt._getParentFromElement(this._element),n=e(this._menu).hasClass(ct.SHOW);if(gt._clearMenus(),n)return;const s={relatedTarget:this._element},r=e.Event(lt.SHOW,s);if(e(t).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof i)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");let n=this._element;"parent"===this._config.reference?n=t:o.isElement(this._config.reference)&&(n=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(n=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e(t).addClass(ct.POSITION_STATIC),this._popper=new i(n,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(t).closest(ht.NAVBAR_NAV).length&&e(document.body).children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass(ct.SHOW),e(t).toggleClass(ct.SHOW).trigger(e.Event(lt.SHOWN,s))}}show(){if(this._element.disabled||e(this._element).hasClass(ct.DISABLED)||e(this._menu).hasClass(ct.SHOW))return;const t={relatedTarget:this._element},i=e.Event(lt.SHOW,t),n=gt._getParentFromElement(this._element);e(n).trigger(i),i.isDefaultPrevented()||(e(this._menu).toggleClass(ct.SHOW),e(n).toggleClass(ct.SHOW).trigger(e.Event(lt.SHOWN,t)))}hide(){if(this._element.disabled||e(this._element).hasClass(ct.DISABLED)||!e(this._menu).hasClass(ct.SHOW))return;const t={relatedTarget:this._element},i=e.Event(lt.HIDE,t),n=gt._getParentFromElement(this._element);e(n).trigger(i),i.isDefaultPrevented()||(e(this._menu).toggleClass(ct.SHOW),e(n).toggleClass(ct.SHOW).trigger(e.Event(lt.HIDDEN,t)))}dispose(){e.removeData(this._element,Z),e(this._element).off(J),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)}update(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()}_addEventListeners(){e(this._element).on(lt.CLICK,t=>{t.preventDefault(),t.stopPropagation(),this.toggle()})}_getConfig(t){return t={...this.constructor.Default,...e(this._element).data(),...t},o.typeCheckConfig(X,t,this.constructor.DefaultType),t}_getMenuElement(){if(!this._menu){const t=gt._getParentFromElement(this._element);t&&(this._menu=t.querySelector(ht.MENU))}return this._menu}_getPlacement(){const t=e(this._element.parentNode);let i=dt.BOTTOM;return t.hasClass(ct.DROPUP)?(i=dt.TOP,e(this._menu).hasClass(ct.MENURIGHT)&&(i=dt.TOPEND)):t.hasClass(ct.DROPRIGHT)?i=dt.RIGHT:t.hasClass(ct.DROPLEFT)?i=dt.LEFT:e(this._menu).hasClass(ct.MENURIGHT)&&(i=dt.BOTTOMEND),i}_detectNavbar(){return e(this._element).closest(".navbar").length>0}_getOffset(){const t={};return"function"==typeof this._config.offset?t.fn=t=>(t.offsets={...t.offsets,...this._config.offset(t.offsets,this._element)||{}},t):t.offset=this._config.offset,t}_getPopperConfig(){const 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}),t}static _jQueryInterface(t){return this.each(function(){let i=e(this).data(Z);if(i||(i=new gt(this,"object"==typeof t?t:null),e(this).data(Z,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}static _clearMenus(t){if(t&&(t.which===rt||"keyup"===t.type&&t.which!==nt))return;const i=[].slice.call(document.querySelectorAll(ht.DATA_TOGGLE));for(let n=0,s=i.length;n0&&o--,t.which===ot&&o{t.stopPropagation()}),e.fn[X]=gt._jQueryInterface,e.fn[X].Constructor=gt,e.fn[X].noConflict=()=>(e.fn[X]=tt,gt._jQueryInterface);const ft="modal",mt="4.3.1",pt="bs.modal",Et=`.${pt}`,Tt=e.fn[ft],It=27,St={backdrop:!0,keyboard:!0,focus:!0,show:!0},Ct={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},At={HIDE:`hide${Et}`,HIDDEN:`hidden${Et}`,SHOW:`show${Et}`,SHOWN:`shown${Et}`,FOCUSIN:`focusin${Et}`,RESIZE:`resize${Et}`,CLICK_DISMISS:`click.dismiss${Et}`,KEYDOWN_DISMISS:`keydown.dismiss${Et}`,MOUSEUP_DISMISS:`mouseup.dismiss${Et}`,MOUSEDOWN_DISMISS:`mousedown.dismiss${Et}`,CLICK_DATA_API:`click${Et}.data-api`},Dt={SCROLLABLE:"modal-dialog-scrollable",SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},Ot={DIALOG:".modal-dialog",MODAL_BODY:".modal-body",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top"};class vt{constructor(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(Ot.DIALOG),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}static get VERSION(){return mt}static get Default(){return St}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;e(this._element).hasClass(Dt.FADE)&&(this._isTransitioning=!0);const i=e.Event(At.SHOW,{relatedTarget:t});e(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(At.CLICK_DISMISS,Ot.DATA_DISMISS,t=>this.hide(t)),e(this._dialog).on(At.MOUSEDOWN_DISMISS,()=>{e(this._element).one(At.MOUSEUP_DISMISS,t=>{e(t.target).is(this._element)&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(t){if(t&&t.preventDefault(),!this._isShown||this._isTransitioning)return;const i=e.Event(At.HIDE);if(e(this._element).trigger(i),!this._isShown||i.isDefaultPrevented())return;this._isShown=!1;const n=e(this._element).hasClass(Dt.FADE);if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off(At.FOCUSIN),e(this._element).removeClass(Dt.SHOW),e(this._element).off(At.CLICK_DISMISS),e(this._dialog).off(At.MOUSEDOWN_DISMISS),n){const t=o.getTransitionDurationFromElement(this._element);e(this._element).one(o.TRANSITION_END,t=>this._hideModal(t)).emulateTransitionEnd(t)}else this._hideModal()}dispose(){[window,this._element,this._dialog].forEach(t=>e(t).off(Et)),e(document).off(At.FOCUSIN),e.removeData(this._element,pt),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}handleUpdate(){this._adjustDialog()}_getConfig(t){return t={...St,...t},o.typeCheckConfig(ft,t,Ct),t}_showElement(t){const i=e(this._element).hasClass(Dt.FADE);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),e(this._dialog).hasClass(Dt.SCROLLABLE)?this._dialog.querySelector(Ot.MODAL_BODY).scrollTop=0:this._element.scrollTop=0,i&&o.reflow(this._element),e(this._element).addClass(Dt.SHOW),this._config.focus&&this._enforceFocus();const n=e.Event(At.SHOWN,{relatedTarget:t}),s=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,e(this._element).trigger(n)};if(i){const t=o.getTransitionDurationFromElement(this._dialog);e(this._dialog).one(o.TRANSITION_END,s).emulateTransitionEnd(t)}else s()}_enforceFocus(){e(document).off(At.FOCUSIN).on(At.FOCUSIN,t=>{document!==t.target&&this._element!==t.target&&0===e(this._element).has(t.target).length&&this._element.focus()})}_setEscapeEvent(){this._isShown&&this._config.keyboard?e(this._element).on(At.KEYDOWN_DISMISS,t=>{t.which===It&&(t.preventDefault(),this.hide())}):this._isShown||e(this._element).off(At.KEYDOWN_DISMISS)}_setResizeEvent(){this._isShown?e(window).on(At.RESIZE,t=>this.handleUpdate(t)):e(window).off(At.RESIZE)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(()=>{e(document.body).removeClass(Dt.OPEN),this._resetAdjustments(),this._resetScrollbar(),e(this._element).trigger(At.HIDDEN)})}_removeBackdrop(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)}_showBackdrop(t){const i=e(this._element).hasClass(Dt.FADE)?Dt.FADE:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=Dt.BACKDROP,i&&this._backdrop.classList.add(i),e(this._backdrop).appendTo(document.body),e(this._element).on(At.CLICK_DISMISS,t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===this._config.backdrop?this._element.focus():this.hide())}),i&&o.reflow(this._backdrop),e(this._backdrop).addClass(Dt.SHOW),!t)return;if(!i)return void t();const n=o.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(o.TRANSITION_END,t).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(Dt.SHOW);const i=()=>{this._removeBackdrop(),t&&t()};if(e(this._element).hasClass(Dt.FADE)){const t=o.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(o.TRANSITION_END,i).emulateTransitionEnd(t)}else i()}else t&&t()}_adjustDialog(){const 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`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}_checkScrollbar(){const t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right{const n=i.style.paddingRight,s=e(i).css("padding-right");e(i).data("padding-right",n).css("padding-right",`${parseFloat(s)+this._scrollbarWidth}px`)}),e(i).each((t,i)=>{const n=i.style.marginRight,s=e(i).css("margin-right");e(i).data("margin-right",n).css("margin-right",`${parseFloat(s)-this._scrollbarWidth}px`)});const n=document.body.style.paddingRight,s=e(document.body).css("padding-right");e(document.body).data("padding-right",n).css("padding-right",`${parseFloat(s)+this._scrollbarWidth}px`)}e(document.body).addClass(Dt.OPEN)}_resetScrollbar(){const t=[].slice.call(document.querySelectorAll(Ot.FIXED_CONTENT));e(t).each((t,i)=>{const n=e(i).data("padding-right");e(i).removeData("padding-right"),i.style.paddingRight=n||""});const i=[].slice.call(document.querySelectorAll(`${Ot.STICKY_CONTENT}`));e(i).each((t,i)=>{const n=e(i).data("margin-right");"undefined"!=typeof n&&e(i).css("margin-right",n).removeData("margin-right")});const n=e(document.body).data("padding-right");e(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""}_getScrollbarWidth(){const t=document.createElement("div");t.className=Dt.SCROLLBAR_MEASURER,document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}static _jQueryInterface(t,i){return this.each(function(){let n=e(this).data(pt);const s={...St,...e(this).data(),..."object"==typeof t&&t?t:{}};if(n||(n=new vt(this,s),e(this).data(pt,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t](i)}else s.show&&n.show(i)})}}e(document).on(At.CLICK_DATA_API,Ot.DATA_TOGGLE,function(t){let i;const n=o.getSelectorFromElement(this);n&&(i=document.querySelector(n));const s=e(i).data(pt)?"toggle":{...e(i).data(),...e(this).data()};"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();const r=e(i).one(At.SHOW,t=>{t.isDefaultPrevented()||r.one(At.HIDDEN,()=>{e(this).is(":visible")&&this.focus()})});vt._jQueryInterface.call(e(i),s,this)}),e.fn[ft]=vt._jQueryInterface,e.fn[ft].Constructor=vt,e.fn[ft].noConflict=()=>(e.fn[ft]=Tt,vt._jQueryInterface);const yt=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Nt={"*":["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","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},wt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,bt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Lt(t,e){const i=t.nodeName.toLowerCase();if(-1!==e.indexOf(i))return-1===yt.indexOf(i)||Boolean(t.nodeValue.match(wt)||t.nodeValue.match(bt));const n=e.filter(t=>t instanceof RegExp);for(let t=0,e=n.length;t{Lt(t,a)||i.removeAttribute(t.nodeName)})}return n.body.innerHTML}const Rt="tooltip",Ht="4.3.1",$t="bs.tooltip",Wt=`.${$t}`,kt=e.fn[Rt],Ft="bs-tooltip",Vt=new RegExp(`(^|\\s)${Ft}\\S+`,"g"),Mt=["sanitize","whiteList","sanitizeFn"],Ut={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"},jt={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},xt={animation:!0,template:'',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:Nt},Gt={SHOW:"show",OUT:"out"},Bt={HIDE:`hide${Wt}`,HIDDEN:`hidden${Wt}`,SHOW:`show${Wt}`,SHOWN:`shown${Wt}`,INSERTED:`inserted${Wt}`,CLICK:`click${Wt}`,FOCUSIN:`focusin${Wt}`,FOCUSOUT:`focusout${Wt}`,MOUSEENTER:`mouseenter${Wt}`,MOUSELEAVE:`mouseleave${Wt}`},Kt={FADE:"fade",SHOW:"show"},qt={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},Qt={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"};class Yt{constructor(t,e){if("undefined"==typeof i)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()}static get VERSION(){return Ht}static get Default(){return xt}static get NAME(){return Rt}static get DATA_KEY(){return $t}static get Event(){return Bt}static get EVENT_KEY(){return Wt}static get DefaultType(){return Ut}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const i=this.constructor.DATA_KEY;let n=e(t.currentTarget).data(i);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(e(this.getTipElement()).hasClass(Kt.SHOW))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null}show(){if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");const t=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(t);const n=o.findShadowRoot(this.element),s=e.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!s)return;const r=this.getTipElement(),a=o.getUID(this.constructor.NAME);r.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&e(r).addClass(Kt.FADE);const l="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,c=this._getAttachment(l);this.addAttachmentClass(c);const h=this._getContainer();e(r).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(r).appendTo(h),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new i(this.element,r,{placement:c,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:qt.ARROW},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:t=>{t.originalPlacement!==t.placement&&this._handlePopperPlacementChange(t)},onUpdate:t=>this._handlePopperPlacementChange(t)}),e(r).addClass(Kt.SHOW),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);const d=()=>{this.config.animation&&this._fixTransition();const t=this._hoverState;this._hoverState=null,e(this.element).trigger(this.constructor.Event.SHOWN),t===Gt.OUT&&this._leave(null,this)};if(e(this.tip).hasClass(Kt.FADE)){const t=o.getTransitionDurationFromElement(this.tip);e(this.tip).one(o.TRANSITION_END,d).emulateTransitionEnd(t)}else d()}}hide(t){const i=this.getTipElement(),n=e.Event(this.constructor.Event.HIDE),s=()=>{this._hoverState!==Gt.SHOW&&i.parentNode&&i.parentNode.removeChild(i),this._cleanTipClass(),this.element.removeAttribute("aria-describedby"),e(this.element).trigger(this.constructor.Event.HIDDEN),null!==this._popper&&this._popper.destroy(),t&&t()};if(e(this.element).trigger(n),!n.isDefaultPrevented()){if(e(i).removeClass(Kt.SHOW),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger[Qt.CLICK]=!1,this._activeTrigger[Qt.FOCUS]=!1,this._activeTrigger[Qt.HOVER]=!1,e(this.tip).hasClass(Kt.FADE)){const t=o.getTransitionDurationFromElement(i);e(i).one(o.TRANSITION_END,s).emulateTransitionEnd(t)}else s();this._hoverState=""}}update(){null!==this._popper&&this._popper.scheduleUpdate()}isWithContent(){return Boolean(this.getTitle())}addAttachmentClass(t){e(this.getTipElement()).addClass(`${Ft}-${t}`)}getTipElement(){return this.tip=this.tip||e(this.config.template)[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(qt.TOOLTIP_INNER)),this.getTitle()),e(t).removeClass(`${Kt.FADE} ${Kt.SHOW}`)}setElementContent(t,i){"object"!=typeof i||!i.nodeType&&!i.jquery?this.config.html?(this.config.sanitize&&(i=Pt(i,this.config.whiteList,this.config.sanitizeFn)),t.html(i)):t.text(i):this.config.html?e(i).parent().is(t)||t.empty().append(i):t.text(e(i).text())}getTitle(){let 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}_getOffset(){const t={};return"function"==typeof this.config.offset?t.fn=t=>(t.offsets={...t.offsets,...this.config.offset(t.offsets,this.element)||{}},t):t.offset=this.config.offset,t}_getContainer(){return!1===this.config.container?document.body:o.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)}_getAttachment(t){return jt[t.toUpperCase()]}_setListeners(){this.config.trigger.split(" ").forEach(t=>{if("click"===t)e(this.element).on(this.constructor.Event.CLICK,this.config.selector,t=>this.toggle(t));else if(t!==Qt.MANUAL){const i=t===Qt.HOVER?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=t===Qt.HOVER?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;e(this.element).on(i,this.config.selector,t=>this._enter(t)).on(n,this.config.selector,t=>this._leave(t))}}),e(this.element).closest(".modal").on("hide.bs.modal",()=>{this.element&&this.hide()}),this.config.selector?this.config={...this.config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const 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",""))}_enter(t,i){const n=this.constructor.DATA_KEY;(i=i||e(t.currentTarget).data(n))||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),t&&(i._activeTrigger["focusin"===t.type?Qt.FOCUS:Qt.HOVER]=!0),e(i.getTipElement()).hasClass(Kt.SHOW)||i._hoverState===Gt.SHOW?i._hoverState=Gt.SHOW:(clearTimeout(i._timeout),i._hoverState=Gt.SHOW,i.config.delay&&i.config.delay.show?i._timeout=setTimeout(()=>{i._hoverState===Gt.SHOW&&i.show()},i.config.delay.show):i.show())}_leave(t,i){const n=this.constructor.DATA_KEY;(i=i||e(t.currentTarget).data(n))||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),t&&(i._activeTrigger["focusout"===t.type?Qt.FOCUS:Qt.HOVER]=!1),i._isWithActiveTrigger()||(clearTimeout(i._timeout),i._hoverState=Gt.OUT,i.config.delay&&i.config.delay.hide?i._timeout=setTimeout(()=>{i._hoverState===Gt.OUT&&i.hide()},i.config.delay.hide):i.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const i=e(this.element).data();return Object.keys(i).forEach(t=>{-1!==Mt.indexOf(t)&&delete i[t]}),"number"==typeof(t={...this.constructor.Default,...i,..."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()),o.typeCheckConfig(Rt,t,this.constructor.DefaultType),t.sanitize&&(t.template=Pt(t.template,t.whiteList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};if(this.config)for(const e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t}_cleanTipClass(){const t=e(this.getTipElement()),i=t.attr("class").match(Vt);null!==i&&i.length&&t.removeClass(i.join(""))}_handlePopperPlacementChange(t){const e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))}_fixTransition(){const t=this.getTipElement(),i=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass(Kt.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=i)}static _jQueryInterface(t){return this.each(function(){let i=e(this).data($t);const n="object"==typeof t&&t;if((i||!/dispose|hide/.test(t))&&(i||(i=new Yt(this,n),e(this).data($t,i)),"string"==typeof t)){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}e.fn[Rt]=Yt._jQueryInterface,e.fn[Rt].Constructor=Yt,e.fn[Rt].noConflict=()=>(e.fn[Rt]=kt,Yt._jQueryInterface);const Xt="popover",zt="4.3.1",Zt="bs.popover",Jt=`.${Zt}`,te=e.fn[Xt],ee="bs-popover",ie=new RegExp(`(^|\\s)${ee}\\S+`,"g"),ne={...Yt.Default,placement:"right",trigger:"click",content:"",template:''},se={...Yt.DefaultType,content:"(string|element|function)"},oe={FADE:"fade",SHOW:"show"},re={TITLE:".popover-header",CONTENT:".popover-body"},ae={HIDE:`hide${Jt}`,HIDDEN:`hidden${Jt}`,SHOW:`show${Jt}`,SHOWN:`shown${Jt}`,INSERTED:`inserted${Jt}`,CLICK:`click${Jt}`,FOCUSIN:`focusin${Jt}`,FOCUSOUT:`focusout${Jt}`,MOUSEENTER:`mouseenter${Jt}`,MOUSELEAVE:`mouseleave${Jt}`};class le extends Yt{static get VERSION(){return zt}static get Default(){return ne}static get NAME(){return Xt}static get DATA_KEY(){return Zt}static get Event(){return ae}static get EVENT_KEY(){return Jt}static get DefaultType(){return se}isWithContent(){return this.getTitle()||this._getContent()}addAttachmentClass(t){e(this.getTipElement()).addClass(`${ee}-${t}`)}getTipElement(){return this.tip=this.tip||e(this.config.template)[0],this.tip}setContent(){const t=e(this.getTipElement());this.setElementContent(t.find(re.TITLE),this.getTitle());let i=this._getContent();"function"==typeof i&&(i=i.call(this.element)),this.setElementContent(t.find(re.CONTENT),i),t.removeClass(`${oe.FADE} ${oe.SHOW}`)}_getContent(){return this.element.getAttribute("data-content")||this.config.content}_cleanTipClass(){const t=e(this.getTipElement()),i=t.attr("class").match(ie);null!==i&&i.length>0&&t.removeClass(i.join(""))}static _jQueryInterface(t){return this.each(function(){let i=e(this).data(Zt);const n="object"==typeof t?t:null;if((i||!/dispose|hide/.test(t))&&(i||(i=new le(this,n),e(this).data(Zt,i)),"string"==typeof t)){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}e.fn[Xt]=le._jQueryInterface,e.fn[Xt].Constructor=le,e.fn[Xt].noConflict=()=>(e.fn[Xt]=te,le._jQueryInterface);const ce="scrollspy",he="4.3.1",de="bs.scrollspy",ue=`.${de}`,_e=e.fn[ce],ge={offset:10,method:"auto",target:""},fe={offset:"number",method:"string",target:"(string|element)"},me={ACTIVATE:`activate${ue}`,SCROLL:`scroll${ue}`,LOAD_DATA_API:`load${ue}.data-api`},pe={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},Ee={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},Te={OFFSET:"offset",POSITION:"position"};class Ie{constructor(t,i){this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(i),this._selector=`${this._config.target} ${Ee.NAV_LINKS},`+`${this._config.target} ${Ee.LIST_ITEMS},`+`${this._config.target} ${Ee.DROPDOWN_ITEMS}`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(me.SCROLL,t=>this._process(t)),this.refresh(),this._process()}static get VERSION(){return he}static get Default(){return ge}refresh(){const t=this._scrollElement===this._scrollElement.window?Te.OFFSET:Te.POSITION,i="auto"===this._config.method?t:this._config.method,n=i===Te.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(t=>{let s;const r=o.getSelectorFromElement(t);if(r&&(s=document.querySelector(r)),s){const t=s.getBoundingClientRect();if(t.width||t.height)return[e(s)[i]().top+n,r]}return null}).filter(t=>t).sort((t,e)=>t[0]-e[0]).forEach(t=>{this._offsets.push(t[0]),this._targets.push(t[1])})}dispose(){e.removeData(this._element,de),e(this._scrollElement).off(ue),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null}_getConfig(t){if("string"!=typeof(t={...ge,..."object"==typeof t&&t?t:{}}).target){let i=e(t.target).attr("id");i||(i=o.getUID(ce),e(t.target).attr("id",i)),t.target=`#${i}`}return o.typeCheckConfig(ce,t,fe),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;){this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&("undefined"==typeof this._offsets[e+1]||t`${e}[data-target="${t}"],${e}[href="${t}"]`),n=e([].slice.call(document.querySelectorAll(i.join(","))));n.hasClass(pe.DROPDOWN_ITEM)?(n.closest(Ee.DROPDOWN).find(Ee.DROPDOWN_TOGGLE).addClass(pe.ACTIVE),n.addClass(pe.ACTIVE)):(n.addClass(pe.ACTIVE),n.parents(Ee.NAV_LIST_GROUP).prev(`${Ee.NAV_LINKS}, ${Ee.LIST_ITEMS}`).addClass(pe.ACTIVE),n.parents(Ee.NAV_LIST_GROUP).prev(Ee.NAV_ITEMS).children(Ee.NAV_LINKS).addClass(pe.ACTIVE)),e(this._scrollElement).trigger(me.ACTIVATE,{relatedTarget:t})}_clear(){[].slice.call(document.querySelectorAll(this._selector)).filter(t=>t.classList.contains(pe.ACTIVE)).forEach(t=>t.classList.remove(pe.ACTIVE))}static _jQueryInterface(t){return this.each(function(){let i=e(this).data(de);if(i||(i=new Ie(this,"object"==typeof t&&t),e(this).data(de,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}e(window).on(me.LOAD_DATA_API,()=>{const t=[].slice.call(document.querySelectorAll(Ee.DATA_SPY));for(let i=t.length;i--;){const n=e(t[i]);Ie._jQueryInterface.call(n,n.data())}}),e.fn[ce]=Ie._jQueryInterface,e.fn[ce].Constructor=Ie,e.fn[ce].noConflict=()=>(e.fn[ce]=_e,Ie._jQueryInterface);const Se="4.3.1",Ce="bs.tab",Ae=`.${Ce}`,De=e.fn.tab,Oe={HIDE:`hide${Ae}`,HIDDEN:`hidden${Ae}`,SHOW:`show${Ae}`,SHOWN:`shown${Ae}`,CLICK_DATA_API:`click${Ae}.data-api`},ve={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},ye={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"};class Ne{constructor(t){this._element=t}static get VERSION(){return Se}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(ve.ACTIVE)||e(this._element).hasClass(ve.DISABLED))return;let t,i;const n=e(this._element).closest(ye.NAV_LIST_GROUP)[0],s=o.getSelectorFromElement(this._element);if(n){const t="UL"===n.nodeName||"OL"===n.nodeName?ye.ACTIVE_UL:ye.ACTIVE;i=(i=e.makeArray(e(n).find(t)))[i.length-1]}const r=e.Event(Oe.HIDE,{relatedTarget:this._element}),a=e.Event(Oe.SHOW,{relatedTarget:i});if(i&&e(i).trigger(r),e(this._element).trigger(a),a.isDefaultPrevented()||r.isDefaultPrevented())return;s&&(t=document.querySelector(s)),this._activate(this._element,n);const l=()=>{const t=e.Event(Oe.HIDDEN,{relatedTarget:this._element}),n=e.Event(Oe.SHOWN,{relatedTarget:i});e(i).trigger(t),e(this._element).trigger(n)};t?this._activate(t,t.parentNode,l):l()}dispose(){e.removeData(this._element,Ce),this._element=null}_activate(t,i,n){const s=(!i||"UL"!==i.nodeName&&"OL"!==i.nodeName?e(i).children(ye.ACTIVE):e(i).find(ye.ACTIVE_UL))[0],r=n&&s&&e(s).hasClass(ve.FADE),a=()=>this._transitionComplete(t,s,n);if(s&&r){const t=o.getTransitionDurationFromElement(s);e(s).removeClass(ve.SHOW).one(o.TRANSITION_END,a).emulateTransitionEnd(t)}else a()}_transitionComplete(t,i,n){if(i){e(i).removeClass(ve.ACTIVE);const t=e(i.parentNode).find(ye.DROPDOWN_ACTIVE_CHILD)[0];t&&e(t).removeClass(ve.ACTIVE),"tab"===i.getAttribute("role")&&i.setAttribute("aria-selected",!1)}if(e(t).addClass(ve.ACTIVE),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),o.reflow(t),t.classList.contains(ve.FADE)&&t.classList.add(ve.SHOW),t.parentNode&&e(t.parentNode).hasClass(ve.DROPDOWN_MENU)){const i=e(t).closest(ye.DROPDOWN)[0];if(i){const t=[].slice.call(i.querySelectorAll(ye.DROPDOWN_TOGGLE));e(t).addClass(ve.ACTIVE)}t.setAttribute("aria-expanded",!0)}n&&n()}static _jQueryInterface(t){return this.each(function(){const i=e(this);let n=i.data(Ce);if(n||(n=new Ne(this),i.data(Ce,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}})}}e(document).on(Oe.CLICK_DATA_API,ye.DATA_TOGGLE,function(t){t.preventDefault(),Ne._jQueryInterface.call(e(this),"show")}),e.fn.tab=Ne._jQueryInterface,e.fn.tab.Constructor=Ne,e.fn.tab.noConflict=()=>(e.fn.tab=De,Ne._jQueryInterface);const we="toast",be="4.3.1",Le="bs.toast",Pe=`.${Le}`,Re=e.fn[we],He={CLICK_DISMISS:`click.dismiss${Pe}`,HIDE:`hide${Pe}`,HIDDEN:`hidden${Pe}`,SHOW:`show${Pe}`,SHOWN:`shown${Pe}`},$e={FADE:"fade",HIDE:"hide",SHOW:"show",SHOWING:"showing"},We={animation:"boolean",autohide:"boolean",delay:"number"},ke={animation:!0,autohide:!0,delay:500},Fe={DATA_DISMISS:'[data-dismiss="toast"]'};class Ve{constructor(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}static get VERSION(){return be}static get DefaultType(){return We}static get Default(){return ke}show(){e(this._element).trigger(He.SHOW),this._config.animation&&this._element.classList.add($e.FADE);const t=()=>{this._element.classList.remove($e.SHOWING),this._element.classList.add($e.SHOW),e(this._element).trigger(He.SHOWN),this._config.autohide&&this.hide()};if(this._element.classList.remove($e.HIDE),this._element.classList.add($e.SHOWING),this._config.animation){const i=o.getTransitionDurationFromElement(this._element);e(this._element).one(o.TRANSITION_END,t).emulateTransitionEnd(i)}else t()}hide(t){this._element.classList.contains($e.SHOW)&&(e(this._element).trigger(He.HIDE),t?this._close():this._timeout=setTimeout(()=>{this._close()},this._config.delay))}dispose(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains($e.SHOW)&&this._element.classList.remove($e.SHOW),e(this._element).off(He.CLICK_DISMISS),e.removeData(this._element,Le),this._element=null,this._config=null}_getConfig(t){return t={...ke,...e(this._element).data(),..."object"==typeof t&&t?t:{}},o.typeCheckConfig(we,t,this.constructor.DefaultType),t}_setListeners(){e(this._element).on(He.CLICK_DISMISS,Fe.DATA_DISMISS,()=>this.hide(!0))}_close(){const t=()=>{this._element.classList.add($e.HIDE),e(this._element).trigger(He.HIDDEN)};if(this._element.classList.remove($e.SHOW),this._config.animation){const i=o.getTransitionDurationFromElement(this._element);e(this._element).one(o.TRANSITION_END,t).emulateTransitionEnd(i)}else t()}static _jQueryInterface(t){return this.each(function(){const i=e(this);let n=i.data(Le);if(n||(n=new Ve(this,"object"==typeof t&&t),i.data(Le,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError(`No method named "${t}"`);n[t](this)}})}}e.fn[we]=Ve._jQueryInterface,e.fn[we].Constructor=Ve,e.fn[we].noConflict=()=>(e.fn[we]=Re,Ve._jQueryInterface);var Me=function(){var t=e(".dropdown-with-pill"),i=e(".dropdown-with-select"),n=e(".dropdown-action--search");t.each(function(){var t=e(this).find(".dropdown-selected-list"),i=e(this).find(".dropdown-menu-list"),n=i.attr("data-select-name"),s=e(this).find(".dropdown-menu .is-selected").map(function(){return e(this).attr("data-val")}).get();t.length||(e(this).append(""),t=e(this).find(".dropdown-selected-list"));var o=s,r=Array.isArray(o),a=0;for(o=r?o:o[Symbol.iterator]();;){var l;if(r){if(a>=o.length)break;l=o[a++]}else{if((a=o.next()).done)break;l=a.value}var c=l,h=e(this).find(".dropdown-item[data-val='"+c+"']").attr("data-id");t.append(""+c+" ")}var d=e(".dropdown-with-pill .badge .ic");Ue(d),i.bind("DOMNodeInserted",function(t){t.target!==i[0]&&t.target.addEventListener("click",je)})}),i.each(function(){var t=e(this).find(".dropdown-menu-list").attr("data-select-name"),i=e(this).find(".dropdown-menu .is-selected"),n=i.attr("data-id"),s=i.text();s?(e(this).find(".dropdown-toggle").html(s),e(this).append("")):e(this).append("")});var s=e(".dropdown-with-pill .dropdown-item"),o=e(".dropdown-with-select .dropdown-item");s.click(je),o.click(je),n.each(function(){var t=e(this).find("input[type='text']"),i=t.closest(".dropdown-menu");t.keyup(function(t){var n=i.find(".dropdown-menu-list .dropdown-item").not(".text-link"),s=t.currentTarget.value.toLocaleLowerCase();n.each(function(){e(this).text().toLocaleLowerCase().includes(s)?e(this).removeClass("d-none"):e(this).addClass("d-none")});var o=i.find(".dropdown-menu-list .dropdown-item.d-none").not(".text-link"),r=i.find("span.dropdown-not-found");o.length===n.length?r.length?r.removeClass("d-none"):i.append('No data found'):r.addClass("d-none")})})},Ue=function(t){t.click(function(){var t=e(this).closest(".badge"),i=t.attr("data-val"),n=t.attr("data-id");t.closest(".dropdown-selected-list").find("input[value='"+n+"']").remove(),t.closest(".dropdown-with-pill").find(".is-selected[data-val='"+i+"']").removeClass("is-selected"),t.remove()})},je=function(){var t,i=e(event.currentTarget);if(i.closest(".dropdown").hasClass("dropdown-with-select")?t=".dropdown-with-select":i.closest(".dropdown").hasClass("dropdown-with-pill")&&(t=".dropdown-with-pill"),!i.hasClass("dropdown-action")){var n=i.closest(t),s=n.find(".dropdown-selected-list");".dropdown-with-select"==t&&n.find(".dropdown-item").removeClass("is-selected"),i.addClass("is-selected");var o=i.attr("data-id"),r=n.find(".dropdown-menu-list").attr("data-select-name");if(".dropdown-with-pill"==t){var a=i.attr("data-val");s.append(""+a+" ");var l=s.find(".badge[data-val='"+a+"'] .ic");Ue(l)}else".dropdown-with-select"==t&&(n.find(".dropdown-toggle").addClass("selected").html(i.text()),s.html(""))}};e(document).ready(function(){Me()});var xe=function(){Ge()},Ge=function(){e(".checkallbox-wrapper").each(function(){var t=e(this).attr("data-checkall"),i=e(this).find(".checkallbox-parent[data-checkall = '"+t+"']"),n=e(this).find("input[type='checkbox'][data-checkall = '"+t+"']").not(".checkallbox-parent");Be(i,n),Ke(i,n),qe(i,n)})},Be=function(t,i){var n=i.length;i.filter(function(){return!0===e(this).is(":checked")}).length===n&&n>0?t.prop("checked",!0):t.prop("checked",!1)},Ke=function(t,i){t.change(function(){e(this).is(":checked")?i.prop("checked",!0):i.prop("checked",!1)})},qe=function(t,e){e.change(function(){Be(t,e)})};e(document).ready(function(){xe()});var Qe=function(){e('[data-toggle="tooltip"]').tooltip({trigger:"hover"})};e(document).ready(function(){Qe()}),t.Alert=u,t.Button=I,t.Carousel=k,t.Collapse=Y,t.Dropdown=gt,t.MekariDropdown=Me,t.MekariForm=xe,t.MekariTooltip=Qe,t.Modal=vt,t.Popover=le,t.Scrollspy=Ie,t.Tab=Ne,t.Toast=Ve,t.Tooltip=Yt,t.Util=o,Object.defineProperty(t,"__esModule",{value:!0})}); //# sourceMappingURL=mekari-ui.min.js.map